@shoper/phoenix_design_system 1.2.11-1 → 1.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/packages/phoenix/src/components/color_swatches/color_item/color_item.js +0 -6
- package/build/cjs/packages/phoenix/src/components/color_swatches/color_item/color_item.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/color_swatches/color_swatches.js +17 -14
- package/build/cjs/packages/phoenix/src/components/color_swatches/color_swatches.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/color_swatches/color_swatches_constants.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/color_swatches_control/color_swatches_control.js +4 -7
- package/build/cjs/packages/phoenix/src/components/form/color_swatches_control/color_swatches_control.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/select/select.js +1 -3
- package/build/cjs/packages/phoenix/src/components/form/select/select.js.map +1 -1
- package/build/cjs/packages/phoenix/src/index.js +5 -5
- package/build/esm/packages/phoenix/src/components/color_swatches/color_item/color_item.d.ts +0 -1
- package/build/esm/packages/phoenix/src/components/color_swatches/color_item/color_item.js +0 -6
- package/build/esm/packages/phoenix/src/components/color_swatches/color_item/color_item.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/color_swatches/color_swatches.d.ts +3 -1
- package/build/esm/packages/phoenix/src/components/color_swatches/color_swatches.js +17 -14
- package/build/esm/packages/phoenix/src/components/color_swatches/color_swatches.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/color_swatches/color_swatches_constants.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/color_swatches/color_swatches_constants.js +1 -1
- package/build/esm/packages/phoenix/src/components/color_swatches/color_swatches_types.d.ts +1 -2
- package/build/esm/packages/phoenix/src/components/form/color_swatches_control/color_swatches_control.d.ts +0 -1
- package/build/esm/packages/phoenix/src/components/form/color_swatches_control/color_swatches_control.js +4 -7
- package/build/esm/packages/phoenix/src/components/form/color_swatches_control/color_swatches_control.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/select/select.js +1 -3
- package/build/esm/packages/phoenix/src/components/form/select/select.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/slider/slider_types.d.ts +6 -1
- package/build/esm/packages/phoenix/src/components/slider/slider_types.js.map +1 -1
- package/build/esm/packages/phoenix/src/index.js +1 -1
- package/package.json +1 -1
|
@@ -33,8 +33,6 @@ exports.HColorItem = class HColorItem extends phoenix_light_lit_element.PhoenixL
|
|
|
33
33
|
this.setAttribute('aria-label', this.label ? this.label : this.color);
|
|
34
34
|
this.unclickable && this.removeAttribute('tabindex');
|
|
35
35
|
this.classList.add(color_swatches_constants.COLOR_SWATCHES_CSS_CLASSES.colorItem);
|
|
36
|
-
if (!this.value)
|
|
37
|
-
this.value = this.color;
|
|
38
36
|
this.small && this.classList.add(color_swatches_constants.COLOR_SWATCHES_CSS_CLASSES.colorItemSmall);
|
|
39
37
|
}
|
|
40
38
|
attributeChangedCallback(name, value, newValue) {
|
|
@@ -60,10 +58,6 @@ tslib_es6.__decorate([
|
|
|
60
58
|
decorators.property({ type: String }),
|
|
61
59
|
tslib_es6.__metadata("design:type", String)
|
|
62
60
|
], exports.HColorItem.prototype, "color", void 0);
|
|
63
|
-
tslib_es6.__decorate([
|
|
64
|
-
decorators.property({ type: String }),
|
|
65
|
-
tslib_es6.__metadata("design:type", String)
|
|
66
|
-
], exports.HColorItem.prototype, "value", void 0);
|
|
67
61
|
tslib_es6.__decorate([
|
|
68
62
|
decorators.property({ type: String }),
|
|
69
63
|
tslib_es6.__metadata("design:type", String)
|
package/build/cjs/packages/phoenix/src/components/color_swatches/color_item/color_item.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -19,17 +19,11 @@ exports.HColorSwatches = class HColorSwatches extends phoenix_light_lit_element.
|
|
|
19
19
|
const $colorItem = target;
|
|
20
20
|
this.multiple ? this._handleColorClickedForMultipleMode($colorItem) : this._handleColorClickedForSingleMode($colorItem);
|
|
21
21
|
};
|
|
22
|
-
this.
|
|
23
|
-
const detail =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
28
|
-
}, {
|
|
29
|
-
colors: [],
|
|
30
|
-
values: []
|
|
31
|
-
});
|
|
32
|
-
this.dispatchEvent(new CustomEvent(color_swatches_constants.COLOR_SWATCHES_EVENT_NAMES.change, {
|
|
22
|
+
this._dispatchColorSelectEvent = () => {
|
|
23
|
+
const detail = {
|
|
24
|
+
colors: this._setColorsDispatchValue(this.selectedColors)
|
|
25
|
+
};
|
|
26
|
+
this.dispatchEvent(new CustomEvent(color_swatches_constants.COLOR_SWATCHES_EVENT_NAMES.selected, {
|
|
33
27
|
bubbles: true,
|
|
34
28
|
detail
|
|
35
29
|
}));
|
|
@@ -41,7 +35,6 @@ exports.HColorSwatches = class HColorSwatches extends phoenix_light_lit_element.
|
|
|
41
35
|
this._addCssClasses();
|
|
42
36
|
this.numberOfVisibleColors && this._hideItems(this.numberOfVisibleColors);
|
|
43
37
|
this._showAllItemsEvent();
|
|
44
|
-
this.selectedColors = [...this.querySelectorAll('h-color-item[selected]')];
|
|
45
38
|
}
|
|
46
39
|
_addCssClasses() {
|
|
47
40
|
this.querySelectorAll(color_swatches_constants.COLOR_ITEM_TAG_NAME).forEach(($colorItem) => $colorItem.classList.add(color_swatches_constants.COLOR_SWATCHES_CSS_CLASSES.colorSwatchesItem));
|
|
@@ -71,7 +64,7 @@ exports.HColorSwatches = class HColorSwatches extends phoenix_light_lit_element.
|
|
|
71
64
|
? (this.selectedColors = [...this.selectedColors, $colorItem])
|
|
72
65
|
: this._removeExistingColorFromArray($colorItem);
|
|
73
66
|
this._toggleSelectedAttribute($colorItem);
|
|
74
|
-
this.
|
|
67
|
+
this._dispatchColorSelectEvent();
|
|
75
68
|
}
|
|
76
69
|
_handleColorClickedForSingleMode($colorItem) {
|
|
77
70
|
const $previouslySelected = this.selectedColors[0];
|
|
@@ -79,7 +72,7 @@ exports.HColorSwatches = class HColorSwatches extends phoenix_light_lit_element.
|
|
|
79
72
|
if ($previouslySelected && $previouslySelected !== $colorItem)
|
|
80
73
|
$previouslySelected.removeAttribute(color_item_constants.COLOR_ITEM_SELECTED_ATTRIBUTE);
|
|
81
74
|
this.selectedColors = $previouslySelected === $colorItem ? [] : [$colorItem];
|
|
82
|
-
this.
|
|
75
|
+
this._dispatchColorSelectEvent();
|
|
83
76
|
}
|
|
84
77
|
_toggleSelectedAttribute($colorItem) {
|
|
85
78
|
$colorItem.hasAttribute(color_item_constants.COLOR_ITEM_SELECTED_ATTRIBUTE)
|
|
@@ -93,6 +86,16 @@ exports.HColorSwatches = class HColorSwatches extends phoenix_light_lit_element.
|
|
|
93
86
|
const indexOfAlreadyExistingColor = this.selectedColors.indexOf($colorItem);
|
|
94
87
|
this.selectedColors.splice(indexOfAlreadyExistingColor, 1);
|
|
95
88
|
}
|
|
89
|
+
_setColorsDispatchValue(selectedColors) {
|
|
90
|
+
if (this.selectedColors.length > 1)
|
|
91
|
+
return this._getOnlyColorValues(selectedColors);
|
|
92
|
+
if (this.selectedColors.length === 1)
|
|
93
|
+
return selectedColors[0].color;
|
|
94
|
+
return '';
|
|
95
|
+
}
|
|
96
|
+
_getOnlyColorValues(selectedColors) {
|
|
97
|
+
return selectedColors.map((selectedColor) => selectedColor.color);
|
|
98
|
+
}
|
|
96
99
|
};
|
|
97
100
|
tslib_es6.__decorate([
|
|
98
101
|
decorators.property({ type: Boolean }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,4CAAgD;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,4CAAgD;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
package/build/cjs/packages/phoenix/src/components/color_swatches/color_swatches_constants.js
CHANGED
|
@@ -12,7 +12,7 @@ const COLOR_SWATCHES_CSS_CLASSES = {
|
|
|
12
12
|
colorSwatchesItem: `${colorSwatchesBaseCssClass}__color-item`
|
|
13
13
|
};
|
|
14
14
|
const COLOR_SWATCHES_EVENT_NAMES = {
|
|
15
|
-
|
|
15
|
+
selected: 'colorSwatchesSelected',
|
|
16
16
|
markDisabledItems: 'markDisabledItems'
|
|
17
17
|
};
|
|
18
18
|
const COLOR_SWATCHES_HIDDEN_ATTRIBUTE = 'hidden';
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib_es6 = require('../../../../../../external/tslib/tslib.es6.js');
|
|
6
6
|
var lit = require('lit');
|
|
7
7
|
var decorators = require('lit/decorators');
|
|
8
|
-
require('@dreamcommerce/utilities');
|
|
8
|
+
var utilities = require('@dreamcommerce/utilities');
|
|
9
9
|
var phoenix_light_lit_element = require('../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
|
|
10
10
|
var phoenix_custom_element = require('../../../core/decorators/phoenix_custom_element.js');
|
|
11
11
|
var index = require('../../../../external/classnames/index.js');
|
|
@@ -28,14 +28,11 @@ exports.HColorSwatchesControl = class HColorSwatchesControl extends phoenix_ligh
|
|
|
28
28
|
});
|
|
29
29
|
if (cssClasses)
|
|
30
30
|
this.classList.add(cssClasses);
|
|
31
|
-
this._getInitiallySelectedColors();
|
|
32
|
-
}
|
|
33
|
-
_getInitiallySelectedColors() {
|
|
34
|
-
this.selectedColors = [...this.querySelectorAll('h-color-item[selected]')].map((selectedColor) => selectedColor.value ? selectedColor.value : selectedColor.color);
|
|
35
31
|
}
|
|
36
32
|
_setupEvents() {
|
|
37
|
-
this.addEventListener(color_swatches_constants.COLOR_SWATCHES_EVENT_NAMES.
|
|
38
|
-
|
|
33
|
+
this.addEventListener(color_swatches_constants.COLOR_SWATCHES_EVENT_NAMES.selected, (event) => {
|
|
34
|
+
const eventValue = event.detail.colors;
|
|
35
|
+
this.selectedColors = eventValue ? utilities.ArrayUtils.makeAsArray(eventValue) : [];
|
|
39
36
|
});
|
|
40
37
|
}
|
|
41
38
|
render() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;AACA;AACA;AACA;AACA;AACA,oBAAoB,0CAA8C;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;AACA;AACA;AACA;AACA;AACA,oBAAoB,0CAA8C;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -96,9 +96,7 @@ exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
96
96
|
this._dispatchChangeEvent();
|
|
97
97
|
};
|
|
98
98
|
this._dispatchChangeEvent = () => {
|
|
99
|
-
this.dispatchEvent(new Event('change'
|
|
100
|
-
bubbles: true
|
|
101
|
-
}));
|
|
99
|
+
this.dispatchEvent(new Event('change'));
|
|
102
100
|
};
|
|
103
101
|
this._handleResize = debounce['default'](() => {
|
|
104
102
|
this._closeSelect();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,+CAAmD;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,+CAAmD;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -69,8 +69,8 @@ var toggle_button_group = require('./components/groups/toggle_button_group/toggl
|
|
|
69
69
|
var toggle_button = require('./components/groups/toggle_button_group/toggle_button.js');
|
|
70
70
|
var click_outside_controller_messages = require('./controllers/click_outside_controller/click_outside_controller_messages.js');
|
|
71
71
|
var backdrop = require('./components/backdrop/backdrop.js');
|
|
72
|
-
var color_item = require('./components/color_swatches/color_item/color_item.js');
|
|
73
72
|
var color_swatches_control = require('./components/form/color_swatches_control/color_swatches_control.js');
|
|
73
|
+
var color_item = require('./components/color_swatches/color_item/color_item.js');
|
|
74
74
|
var color_swatches = require('./components/color_swatches/color_swatches.js');
|
|
75
75
|
var show_more = require('./components/color_swatches/show-more/show_more.js');
|
|
76
76
|
var visibility_controller = require('./controllers/visibility_controller/visibility_controller.js');
|
|
@@ -421,16 +421,16 @@ Object.defineProperty(exports, 'HBackdrop', {
|
|
|
421
421
|
return backdrop.HBackdrop;
|
|
422
422
|
}
|
|
423
423
|
});
|
|
424
|
-
Object.defineProperty(exports, '
|
|
424
|
+
Object.defineProperty(exports, 'HColorSwatchesControl', {
|
|
425
425
|
enumerable: true,
|
|
426
426
|
get: function () {
|
|
427
|
-
return
|
|
427
|
+
return color_swatches_control.HColorSwatchesControl;
|
|
428
428
|
}
|
|
429
429
|
});
|
|
430
|
-
Object.defineProperty(exports, '
|
|
430
|
+
Object.defineProperty(exports, 'HColorItem', {
|
|
431
431
|
enumerable: true,
|
|
432
432
|
get: function () {
|
|
433
|
-
return
|
|
433
|
+
return color_item.HColorItem;
|
|
434
434
|
}
|
|
435
435
|
});
|
|
436
436
|
Object.defineProperty(exports, 'HColorSwatches', {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element/phoenix_light_lit_element";
|
|
2
2
|
export declare class HColorItem extends PhoenixLightLitElement {
|
|
3
3
|
color: string;
|
|
4
|
-
value: string;
|
|
5
4
|
label?: string;
|
|
6
5
|
disabled: boolean;
|
|
7
6
|
selected: boolean;
|
|
@@ -29,8 +29,6 @@ let HColorItem = class HColorItem extends PhoenixLightLitElement {
|
|
|
29
29
|
this.setAttribute('aria-label', this.label ? this.label : this.color);
|
|
30
30
|
this.unclickable && this.removeAttribute('tabindex');
|
|
31
31
|
this.classList.add(COLOR_SWATCHES_CSS_CLASSES.colorItem);
|
|
32
|
-
if (!this.value)
|
|
33
|
-
this.value = this.color;
|
|
34
32
|
this.small && this.classList.add(COLOR_SWATCHES_CSS_CLASSES.colorItemSmall);
|
|
35
33
|
}
|
|
36
34
|
attributeChangedCallback(name, value, newValue) {
|
|
@@ -56,10 +54,6 @@ __decorate([
|
|
|
56
54
|
property({ type: String }),
|
|
57
55
|
__metadata("design:type", String)
|
|
58
56
|
], HColorItem.prototype, "color", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
property({ type: String }),
|
|
61
|
-
__metadata("design:type", String)
|
|
62
|
-
], HColorItem.prototype, "value", void 0);
|
|
63
57
|
__decorate([
|
|
64
58
|
property({ type: String }),
|
|
65
59
|
__metadata("design:type", String)
|
package/build/esm/packages/phoenix/src/components/color_swatches/color_item/color_item.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,+CAAmD;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,+CAAmD;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -15,5 +15,7 @@ export declare class HColorSwatches extends PhoenixLightLitElement {
|
|
|
15
15
|
private _toggleSelectedAttribute;
|
|
16
16
|
private _isColorAlreadyExistInArray;
|
|
17
17
|
private _removeExistingColorFromArray;
|
|
18
|
-
private
|
|
18
|
+
private _dispatchColorSelectEvent;
|
|
19
|
+
private _setColorsDispatchValue;
|
|
20
|
+
private _getOnlyColorValues;
|
|
19
21
|
}
|
|
@@ -15,17 +15,11 @@ let HColorSwatches = class HColorSwatches extends PhoenixLightLitElement {
|
|
|
15
15
|
const $colorItem = target;
|
|
16
16
|
this.multiple ? this._handleColorClickedForMultipleMode($colorItem) : this._handleColorClickedForSingleMode($colorItem);
|
|
17
17
|
};
|
|
18
|
-
this.
|
|
19
|
-
const detail =
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
}, {
|
|
25
|
-
colors: [],
|
|
26
|
-
values: []
|
|
27
|
-
});
|
|
28
|
-
this.dispatchEvent(new CustomEvent(COLOR_SWATCHES_EVENT_NAMES.change, {
|
|
18
|
+
this._dispatchColorSelectEvent = () => {
|
|
19
|
+
const detail = {
|
|
20
|
+
colors: this._setColorsDispatchValue(this.selectedColors)
|
|
21
|
+
};
|
|
22
|
+
this.dispatchEvent(new CustomEvent(COLOR_SWATCHES_EVENT_NAMES.selected, {
|
|
29
23
|
bubbles: true,
|
|
30
24
|
detail
|
|
31
25
|
}));
|
|
@@ -37,7 +31,6 @@ let HColorSwatches = class HColorSwatches extends PhoenixLightLitElement {
|
|
|
37
31
|
this._addCssClasses();
|
|
38
32
|
this.numberOfVisibleColors && this._hideItems(this.numberOfVisibleColors);
|
|
39
33
|
this._showAllItemsEvent();
|
|
40
|
-
this.selectedColors = [...this.querySelectorAll('h-color-item[selected]')];
|
|
41
34
|
}
|
|
42
35
|
_addCssClasses() {
|
|
43
36
|
this.querySelectorAll(COLOR_ITEM_TAG_NAME).forEach(($colorItem) => $colorItem.classList.add(COLOR_SWATCHES_CSS_CLASSES.colorSwatchesItem));
|
|
@@ -67,7 +60,7 @@ let HColorSwatches = class HColorSwatches extends PhoenixLightLitElement {
|
|
|
67
60
|
? (this.selectedColors = [...this.selectedColors, $colorItem])
|
|
68
61
|
: this._removeExistingColorFromArray($colorItem);
|
|
69
62
|
this._toggleSelectedAttribute($colorItem);
|
|
70
|
-
this.
|
|
63
|
+
this._dispatchColorSelectEvent();
|
|
71
64
|
}
|
|
72
65
|
_handleColorClickedForSingleMode($colorItem) {
|
|
73
66
|
const $previouslySelected = this.selectedColors[0];
|
|
@@ -75,7 +68,7 @@ let HColorSwatches = class HColorSwatches extends PhoenixLightLitElement {
|
|
|
75
68
|
if ($previouslySelected && $previouslySelected !== $colorItem)
|
|
76
69
|
$previouslySelected.removeAttribute(COLOR_ITEM_SELECTED_ATTRIBUTE);
|
|
77
70
|
this.selectedColors = $previouslySelected === $colorItem ? [] : [$colorItem];
|
|
78
|
-
this.
|
|
71
|
+
this._dispatchColorSelectEvent();
|
|
79
72
|
}
|
|
80
73
|
_toggleSelectedAttribute($colorItem) {
|
|
81
74
|
$colorItem.hasAttribute(COLOR_ITEM_SELECTED_ATTRIBUTE)
|
|
@@ -89,6 +82,16 @@ let HColorSwatches = class HColorSwatches extends PhoenixLightLitElement {
|
|
|
89
82
|
const indexOfAlreadyExistingColor = this.selectedColors.indexOf($colorItem);
|
|
90
83
|
this.selectedColors.splice(indexOfAlreadyExistingColor, 1);
|
|
91
84
|
}
|
|
85
|
+
_setColorsDispatchValue(selectedColors) {
|
|
86
|
+
if (this.selectedColors.length > 1)
|
|
87
|
+
return this._getOnlyColorValues(selectedColors);
|
|
88
|
+
if (this.selectedColors.length === 1)
|
|
89
|
+
return selectedColors[0].color;
|
|
90
|
+
return '';
|
|
91
|
+
}
|
|
92
|
+
_getOnlyColorValues(selectedColors) {
|
|
93
|
+
return selectedColors.map((selectedColor) => selectedColor.color);
|
|
94
|
+
}
|
|
92
95
|
};
|
|
93
96
|
__decorate([
|
|
94
97
|
property({ type: Boolean }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,4CAAgD;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,4CAAgD;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
package/build/esm/packages/phoenix/src/components/color_swatches/color_swatches_constants.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare const COLOR_SWATCHES_CSS_CLASSES: {
|
|
|
6
6
|
readonly colorSwatchesItem: "color-swatches__color-item";
|
|
7
7
|
};
|
|
8
8
|
export declare const COLOR_SWATCHES_EVENT_NAMES: {
|
|
9
|
-
readonly
|
|
9
|
+
readonly selected: "colorSwatchesSelected";
|
|
10
10
|
readonly markDisabledItems: "markDisabledItems";
|
|
11
11
|
};
|
|
12
12
|
export declare const COLOR_SWATCHES_HIDDEN_ATTRIBUTE = "hidden";
|
package/build/esm/packages/phoenix/src/components/color_swatches/color_swatches_constants.js
CHANGED
|
@@ -8,7 +8,7 @@ const COLOR_SWATCHES_CSS_CLASSES = {
|
|
|
8
8
|
colorSwatchesItem: `${colorSwatchesBaseCssClass}__color-item`
|
|
9
9
|
};
|
|
10
10
|
const COLOR_SWATCHES_EVENT_NAMES = {
|
|
11
|
-
|
|
11
|
+
selected: 'colorSwatchesSelected',
|
|
12
12
|
markDisabledItems: 'markDisabledItems'
|
|
13
13
|
};
|
|
14
14
|
const COLOR_SWATCHES_HIDDEN_ATTRIBUTE = 'hidden';
|
|
@@ -8,7 +8,6 @@ export declare class HColorSwatchesControl extends PhoenixLightLitElement {
|
|
|
8
8
|
error: boolean;
|
|
9
9
|
selectedColors: string[];
|
|
10
10
|
connectedCallback(): void;
|
|
11
|
-
private _getInitiallySelectedColors;
|
|
12
11
|
private _setupEvents;
|
|
13
12
|
protected render(): TemplateResult | void;
|
|
14
13
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { html } from 'lit';
|
|
3
3
|
import { property, state } from 'lit/decorators';
|
|
4
|
-
import '@dreamcommerce/utilities';
|
|
4
|
+
import { ArrayUtils } from '@dreamcommerce/utilities';
|
|
5
5
|
import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
|
|
6
6
|
import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
|
|
7
7
|
import classnames from '../../../../external/classnames/index.js';
|
|
@@ -24,14 +24,11 @@ let HColorSwatchesControl = class HColorSwatchesControl extends PhoenixLightLitE
|
|
|
24
24
|
});
|
|
25
25
|
if (cssClasses)
|
|
26
26
|
this.classList.add(cssClasses);
|
|
27
|
-
this._getInitiallySelectedColors();
|
|
28
|
-
}
|
|
29
|
-
_getInitiallySelectedColors() {
|
|
30
|
-
this.selectedColors = [...this.querySelectorAll('h-color-item[selected]')].map((selectedColor) => selectedColor.value ? selectedColor.value : selectedColor.color);
|
|
31
27
|
}
|
|
32
28
|
_setupEvents() {
|
|
33
|
-
this.addEventListener(COLOR_SWATCHES_EVENT_NAMES.
|
|
34
|
-
|
|
29
|
+
this.addEventListener(COLOR_SWATCHES_EVENT_NAMES.selected, (event) => {
|
|
30
|
+
const eventValue = event.detail.colors;
|
|
31
|
+
this.selectedColors = eventValue ? ArrayUtils.makeAsArray(eventValue) : [];
|
|
35
32
|
});
|
|
36
33
|
}
|
|
37
34
|
render() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,+CAAmD;AAC1F;AACA;AACA;AACA;AACA;AACA,uBAAuB,0CAA8C;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,+CAAmD;AAC1F;AACA;AACA;AACA;AACA;AACA,uBAAuB,0CAA8C;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -92,9 +92,7 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
92
92
|
this._dispatchChangeEvent();
|
|
93
93
|
};
|
|
94
94
|
this._dispatchChangeEvent = () => {
|
|
95
|
-
this.dispatchEvent(new Event('change'
|
|
96
|
-
bubbles: true
|
|
97
|
-
}));
|
|
95
|
+
this.dispatchEvent(new Event('change'));
|
|
98
96
|
};
|
|
99
97
|
this._handleResize = debounce_1(() => {
|
|
100
98
|
this._closeSelect();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,+CAAmD;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,+CAAmD;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,+CAAmD;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,+CAAmD;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { Options } from '@splidejs/splide';
|
|
1
|
+
import { AnyFunction, Components, Options } from '@splidejs/splide';
|
|
2
2
|
export interface ISlider {
|
|
3
|
+
index: number;
|
|
4
|
+
length: number;
|
|
5
|
+
root: HTMLElement;
|
|
3
6
|
mount(): void;
|
|
4
7
|
sync(slider: ISlider): this;
|
|
5
8
|
go(control: number | string): this;
|
|
9
|
+
on(events: string | string[], callback: AnyFunction): this;
|
|
10
|
+
Components: Components;
|
|
6
11
|
}
|
|
7
12
|
export interface ISliderOptions extends Options {
|
|
8
13
|
mountOnConnectedCallback: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider_types.js","sourceRoot":"","sources":["../../../../../../../src/components/slider/slider_types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"slider_types.js","sourceRoot":"","sources":["../../../../../../../src/components/slider/slider_types.ts"],"names":[],"mappings":"AAAA,OAAiD,kBAAkB,CAAC"}
|
|
@@ -65,8 +65,8 @@ export { HToggleButtonGroup } from './components/groups/toggle_button_group/togg
|
|
|
65
65
|
export { HToggleButton } from './components/groups/toggle_button_group/toggle_button.js';
|
|
66
66
|
export { CLICK_OUTSIDE_CONTROLLER_MESSAGES } from './controllers/click_outside_controller/click_outside_controller_messages.js';
|
|
67
67
|
export { HBackdrop } from './components/backdrop/backdrop.js';
|
|
68
|
-
export { HColorItem } from './components/color_swatches/color_item/color_item.js';
|
|
69
68
|
export { HColorSwatchesControl } from './components/form/color_swatches_control/color_swatches_control.js';
|
|
69
|
+
export { HColorItem } from './components/color_swatches/color_item/color_item.js';
|
|
70
70
|
export { HColorSwatches } from './components/color_swatches/color_swatches.js';
|
|
71
71
|
export { HColorSwatchesShowMore } from './components/color_swatches/show-more/show_more.js';
|
|
72
72
|
export { VisibilityController } from './controllers/visibility_controller/visibility_controller.js';
|