Skip to content

Commit

Permalink
Merge branch 'testing'
Browse files Browse the repository at this point in the history
* testing:
  Updated readme, changelog, and dependency JSON
  0.7.0 release prep
  Synced up dependencies with GitHub
  Adds support for 'auto' placement in popovers
  Pre-1.0.0 merge
  Adding ability to provide a 'size' attribute on the modal cmp.

# Conflicts:
#	dependency.json
  • Loading branch information
kevinberonilla committed Jul 14, 2017
2 parents b015084 + ddf2406 commit 00b41b6
Show file tree
Hide file tree
Showing 59 changed files with 933 additions and 202 deletions.
39 changes: 39 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,44 @@
# Strike by Appiphony

### Release 0.7.0 — July 14, 2017
#### New Features
* **Strike Radio Group:** A form element for accepting a single selection based on descriptive options
#### Improvements
* **All Strike Components:** Added version numbers and the BSD 2-Clause License to all `*.cmp` and `*.cls` files <a href="https://github.com/appiphony/Strike-Components/issues/29" target="_blank">[GitHub Issue #29]</a>
* **Strike Datepicker:** Added the `yearsBefore` and `yearsAfter` attributes to limit the year select options <a href="https://github.com/appiphony/Strike-Components/issues/3" target="_blank">[GitHub Issue #3]</a>
* **Strike Datepicker:** Added the `helpTextPlacement` attribute to enable custom `helpText` popover positioning <a href="https://github.com/appiphony/Strike-Components/issues/20" target="_blank">[GitHub Issue #20]</a>
* **Strike Input:** Added the `helpTextPlacement` attribute to enable custom `helpText` popover positioning <a href="https://github.com/appiphony/Strike-Components/issues/20" target="_blank">[GitHub Issue #20]</a>
* **Strike Lookup:** Added the `helpTextPlacement` attribute to enable custom `helpText` popover positioning <a href="https://github.com/appiphony/Strike-Components/issues/20" target="_blank">[GitHub Issue #20]</a>
* **Strike Modal:** Added the `size` attribute to enable large modals <a href="https://github.com/appiphony/Strike-Components/pull/35" target="_blank">[GitHub Pull Request #35]</a>&nbsp;<a href="https://github.com/mbowen000" target="_blank">[Credit: mbowen000]</a>
* **Strike Multi Lookup:** Added the `helpTextPlacement` attribute to enable custom `helpText` popover positioning <a href="https://github.com/appiphony/Strike-Components/issues/20" target="_blank">[GitHub Issue #20]</a>
* **Strike Multi Select Picklist:** Added the `helpTextPlacement` attribute to enable custom `helpText` popover positioning <a href="https://github.com/appiphony/Strike-Components/issues/20" target="_blank">[GitHub Issue #20]</a>
* **Strike Multi Select Picklist:** Added the `externalValueChange` Aura method to enable rerendering of selection pills based on the `value` attribute <a href="https://github.com/appiphony/Strike-Components/issues/33" target="_blank">[GitHub Issue #33]</a>
* **Strike Popover:** Added support for the `'auto '` prefix on all `placement` values <a href="https://github.com/appiphony/Strike-Components/pull/27" target="_blank">[GitHub Pull Request #27]</a>&nbsp;<a href="https://github.com/dsharrison" target="_blank">[Credit: dsharrison]</a>
* **Strike Select:** Added the `helpTextPlacement` attribute to enable custom `helpText` popover positioning <a href="https://github.com/appiphony/Strike-Components/issues/20" target="_blank">[GitHub Issue #20]</a>
* **Strike Textarea:** Added the `helpTextPlacement` attribute to enable custom `helpText` popover positioning <a href="https://github.com/appiphony/Strike-Components/issues/20" target="_blank">[GitHub Issue #20]</a>
* **Strike Tooltip:** Added support for the `'auto '` prefix on all `placement` values <a href="https://github.com/appiphony/Strike-Components/pull/27" target="_blank">[GitHub Pull Request #27]</a>&nbsp;<a href="https://github.com/dsharrison" target="_blank">[Credit: dsharrison]</a>
#### Bug Fixes
* **Strike Chart:** Fixed an issue where pie charts were being cut off with certain legend text lengths <a href="https://github.com/appiphony/Strike-Components/issues/32" target="_blank">[GitHub Issue #32]</a>
* **Strike Data Grid:** Fixed an issue where responsive mobile headers were displaying incorrect values <a href="https://github.com/appiphony/Strike-Components/issues/30" target="_blank">[GitHub Issue #30]</a>
* **Strike Input:** Fixed a typo where the `tabindex` attribute was incorrectly camel-cased <a href="https://github.com/appiphony/Strike-Components/issues/37" target="_blank">[GitHub Issue #37]</a>
* **Strike Input:** Fixed an issue where `tabindex` was not being applied to toggles
* **Strike Multi Select Picklist:** Fixed an issue where pre-populated selection would appear twice on load <a href="https://github.com/appiphony/Strike-Components/issues/15" target="_blank">[GitHub Issue #15]</a>
* **Strike Multi Select Picklist:** Fixed an issue where the component was causing a warning with Locker Service enabled <a href="https://github.com/appiphony/Strike-Components/issues/25" target="_blank">[GitHub Issue #25]</a>

---

### Release 0.5.0 — April 21, 2017
#### Improvements
* **Strike Pill:** Renamed the `type` attribute to `variant`
* **Strike Tile:** Renamed the `source` attribute to `avatarSource`
#### Bug Fixes
* **Strike Input:** Fixed an issue where the types `datetime-local` and `month` were incorrectly styled on mobile devices
* **Strike Pill:** Fixed an issue where clicking SVG icons would not propagate click events in Microsoft Edge
* **Strike Textarea:** Fixed an issue where assigning a negative value to `maxlength` would cause the component to break
* **Strike Tile:** Fixed an issue where clicking SVG icons would not propagate click events in Microsoft Edge

---

### Release 0.6.0 — May 5, 2017
#### New Features
* **Strike Data Grid:** A sortable and responsive data table component which accepts JSON data
Expand Down
3 changes: 2 additions & 1 deletion README.md
@@ -1,6 +1,6 @@
# Strike by Appiphony
### Work smarter (not harder) with Salesforce Lightning Components
Current release: 0.6.0
Current release: 0.7.0
See it in action here: <a href="http://www.lightningstrike.io" target="_blank">http://www.lightningstrike.io</a>

---
Expand All @@ -17,6 +17,7 @@ See it in action here: <a href="http://www.lightningstrike.io" target="_blank">h
* Multi Select Picklists
* Pills
* Popovers
* Radio Group
* Selects
* SVGs
* Textareas
Expand Down
20 changes: 19 additions & 1 deletion aura/strike_badge/strike_badge.cmp
@@ -1,3 +1,11 @@
<!--
Strike by Appiphony

Version: 0.7.0
Website: http://www.lightningstrike.io
GitHub: https://github.com/appiphony/Strike-Components
License: BSD 2-Clause License
-->
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes" access="global" >
<aura:attribute name="label" type="String" />
<aura:attribute name="class" type="String" />
Expand All @@ -6,4 +14,14 @@

<lightning:badge label="{!v.label}" class="{!if(empty(v.theme), '', 'slds-theme--' + v.theme) + ' ' + v.class}"/>

</aura:component>
</aura:component>
<!--
Copyright 2017 Appiphony, LLC

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
18 changes: 18 additions & 0 deletions aura/strike_chart/strike_chart.cmp
@@ -1,3 +1,11 @@
<!--
Strike by Appiphony

Version: 0.7.0
Website: http://www.lightningstrike.io
GitHub: https://github.com/appiphony/Strike-Components
License: BSD 2-Clause License
-->
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes" access="global">
<ltng:require scripts="/resource/d3" afterScriptsLoaded="{!c.onInit}"/>
<aura:attribute name="scriptsLoaded" type="Boolean" default="{!false}"/>
Expand Down Expand Up @@ -101,3 +109,13 @@
</div>
</div>
</aura:component>
<!--
Copyright 2017 Appiphony, LLC

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
13 changes: 7 additions & 6 deletions aura/strike_chart/strike_chartHelper.js
Expand Up @@ -620,7 +620,7 @@
var chartWidth = component.get('v.containerWidth');
var chartHeight = helper.getHeight(chartWidth);

var size = chartWidth * .6;
var size = chartWidth * .55;
var radius = size / 2;
var colors = helper.getColors();

Expand Down Expand Up @@ -698,7 +698,7 @@

var circleParams = {
parent: legend,
circleX: 0,
circleX: -11,
circleY: -legendCircleRadius / 2,
radius: legendCircleRadius,
cssClass: '',
Expand All @@ -710,14 +710,15 @@
helper.addCircle(circleParams);

var getLabel = function (d) {
return d.data.segment;
let label = d.data.segment;
return label.length > 15 ? label.slice(0, 12) + '...' : label
}

var legendLabelParams = {
parent: legend,
cssClass: '',
rotation: 0,
x: legendCircleRadius + 15,
x: legendCircleRadius - 6,
y: 0,
fontSize: size * .04,
textAnchor: '',
Expand Down Expand Up @@ -775,7 +776,7 @@

var parentGroupingWidth = parentGrouping._groups[0][0].getBBox().width;
var parentGroupingHeight = parentGrouping._groups[0][0].getBBox().height;
var centeredX = Math.ceil(((chartWidth - parentGroupingWidth) / 2) + radius);
var centeredX = Math.ceil(((chartWidth - parentGroupingWidth) / 2) + radius) + 10;
var centeredY = Math.ceil(((chartHeight - parentGroupingHeight) / 2) + radius);

parentGrouping.attr('transform', 'translate(' + centeredX + ',' + centeredY + ')');
Expand Down Expand Up @@ -1390,4 +1391,4 @@
'#e49e24', '#c03a38', '#fdb665', '#63b07f', '#0d716a', '#95caf6', '#97e2b3'
]);
}
})
})
27 changes: 23 additions & 4 deletions aura/strike_dataGrid/strike_dataGrid.cmp
@@ -1,10 +1,19 @@
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes" access="global">
<!--
Strike by Appiphony

Version: 0.7.0
Website: http://www.lightningstrike.io
GitHub: https://github.com/appiphony/Strike-Components
License: BSD 2-Clause License
-->
<aura:component >
<!-- External -->
<aura:attribute name="data" type="Object" description="data provided by end user to build a table"/>
<aura:attribute name="fixed" type="Boolean" description="determines if fixed layout class gets added to table" default="{!false}"/>
<aura:attribute name="responsive" type="Boolean" description="determines if table is responsive/mobile-friendly" default="{!false}"/>
<aura:attribute name="class" type="String" description="classlist that can be added to the table"/>
<!-- /External -->

<!-- Internal -->
<aura:attribute name="formattedData" type="Object" description="formatted grid data" access="private"/>
<aura:attribute name="showTable" type="Boolean" description="determines when the table is done being created" default="{!false}" access="private"/>
Expand All @@ -16,7 +25,7 @@
<aura:handler name="init" value="{!this}" action="{!c.init}"/>

<aura:if isTrue="{!v.showTable}">
<table id="data-grid" class="{!'slds-table slds-table--bordered slds-table--cell-buffer' + if(v.responsive, ' slds-max-medium-table--stacked') + if(v.fixed, ' slds-table--fixed-layout', ' slds-table--resizable-cols')}">
<table class="{!'slds-table slds-table--bordered slds-table--cell-buffer ' + if(v.responsive, 'slds-max-medium-table--stacked ') + if(v.fixed, 'slds-table--fixed-layout ', 'slds-table--resizable-cols ') + v.class}">
<thead>
<tr class="slds-text-title--caps">
<aura:iteration items="{!v.formattedData.columns}" var="column">
Expand Down Expand Up @@ -56,4 +65,14 @@
</tbody>
</table>
</aura:if>
</aura:component>
</aura:component>
<!--
Copyright 2017 Appiphony, LLC

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->

0 comments on commit 00b41b6

Please sign in to comment.