@shoper/phoenix_design_system 1.2.8 → 1.2.10-1

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.
Files changed (46) hide show
  1. package/build/cjs/packages/phoenix/src/components/color_swatches/color_item/color_item.js +6 -0
  2. package/build/cjs/packages/phoenix/src/components/color_swatches/color_item/color_item.js.map +1 -1
  3. package/build/cjs/packages/phoenix/src/components/color_swatches/color_swatches.js +10 -14
  4. package/build/cjs/packages/phoenix/src/components/color_swatches/color_swatches.js.map +1 -1
  5. package/build/cjs/packages/phoenix/src/components/color_swatches/color_swatches_constants.js +1 -1
  6. package/build/cjs/packages/phoenix/src/components/form/checkbox/checkbox_content.js +1 -1
  7. package/build/cjs/packages/phoenix/src/components/form/checkbox/checkbox_control.js +1 -1
  8. package/build/cjs/packages/phoenix/src/components/form/color_swatches_control/color_swatches_control.js +3 -4
  9. package/build/cjs/packages/phoenix/src/components/form/color_swatches_control/color_swatches_control.js.map +1 -1
  10. package/build/cjs/packages/phoenix/src/components/form/file_picker/file/file.js +1 -0
  11. package/build/cjs/packages/phoenix/src/components/form/file_picker/file/file.js.map +1 -1
  12. package/build/cjs/packages/phoenix/src/components/form/file_picker/file_picker.js +6 -6
  13. package/build/cjs/packages/phoenix/src/components/form/input/input_control.js +1 -1
  14. package/build/cjs/packages/phoenix/src/components/form/radio/radio_content.js +1 -1
  15. package/build/cjs/packages/phoenix/src/components/form/radio/radio_control.js +1 -1
  16. package/build/cjs/packages/phoenix/src/components/form/select/select.js +3 -1
  17. package/build/cjs/packages/phoenix/src/components/form/select/select.js.map +1 -1
  18. package/build/cjs/packages/phoenix/src/components/form/switch/switch_content.js +1 -1
  19. package/build/cjs/packages/phoenix/src/components/form/switch/switch_control.js +1 -1
  20. package/build/cjs/packages/phoenix/src/components/form/textarea/textarea_control.js +1 -1
  21. package/build/esm/packages/phoenix/src/components/color_swatches/color_item/color_item.d.ts +1 -0
  22. package/build/esm/packages/phoenix/src/components/color_swatches/color_item/color_item.js +6 -0
  23. package/build/esm/packages/phoenix/src/components/color_swatches/color_item/color_item.js.map +1 -1
  24. package/build/esm/packages/phoenix/src/components/color_swatches/color_swatches.d.ts +0 -2
  25. package/build/esm/packages/phoenix/src/components/color_swatches/color_swatches.js +10 -14
  26. package/build/esm/packages/phoenix/src/components/color_swatches/color_swatches.js.map +1 -1
  27. package/build/esm/packages/phoenix/src/components/color_swatches/color_swatches_constants.d.ts +1 -1
  28. package/build/esm/packages/phoenix/src/components/color_swatches/color_swatches_constants.js +1 -1
  29. package/build/esm/packages/phoenix/src/components/color_swatches/color_swatches_types.d.ts +2 -1
  30. package/build/esm/packages/phoenix/src/components/form/checkbox/checkbox_content.js +1 -1
  31. package/build/esm/packages/phoenix/src/components/form/checkbox/checkbox_control.js +1 -1
  32. package/build/esm/packages/phoenix/src/components/form/color_swatches_control/color_swatches_control.js +3 -4
  33. package/build/esm/packages/phoenix/src/components/form/color_swatches_control/color_swatches_control.js.map +1 -1
  34. package/build/esm/packages/phoenix/src/components/form/file_picker/file/file.js +1 -0
  35. package/build/esm/packages/phoenix/src/components/form/file_picker/file/file.js.map +1 -1
  36. package/build/esm/packages/phoenix/src/components/form/file_picker/file_picker.d.ts +1 -1
  37. package/build/esm/packages/phoenix/src/components/form/file_picker/file_picker.js +1 -1
  38. package/build/esm/packages/phoenix/src/components/form/input/input_control.js +1 -1
  39. package/build/esm/packages/phoenix/src/components/form/radio/radio_content.js +1 -1
  40. package/build/esm/packages/phoenix/src/components/form/radio/radio_control.js +1 -1
  41. package/build/esm/packages/phoenix/src/components/form/select/select.js +3 -1
  42. package/build/esm/packages/phoenix/src/components/form/select/select.js.map +1 -1
  43. package/build/esm/packages/phoenix/src/components/form/switch/switch_content.js +1 -1
  44. package/build/esm/packages/phoenix/src/components/form/switch/switch_control.js +1 -1
  45. package/build/esm/packages/phoenix/src/components/form/textarea/textarea_control.js +1 -1
  46. package/package.json +1 -1
@@ -33,6 +33,8 @@ 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;
36
38
  this.small && this.classList.add(color_swatches_constants.COLOR_SWATCHES_CSS_CLASSES.colorItemSmall);
37
39
  }
38
40
  attributeChangedCallback(name, value, newValue) {
@@ -58,6 +60,10 @@ tslib_es6.__decorate([
58
60
  decorators.property({ type: String }),
59
61
  tslib_es6.__metadata("design:type", String)
60
62
  ], 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);
61
67
  tslib_es6.__decorate([
62
68
  decorators.property({ type: String }),
63
69
  tslib_es6.__metadata("design:type", String)
@@ -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;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -20,10 +20,16 @@ exports.HColorSwatches = class HColorSwatches extends phoenix_light_lit_element.
20
20
  this.multiple ? this._handleColorClickedForMultipleMode($colorItem) : this._handleColorClickedForSingleMode($colorItem);
21
21
  };
22
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, {
23
+ const detail = this.selectedColors.reduce(({ colors: colorsSoFar, values: valuesSoFar }, color) => {
24
+ return {
25
+ colors: [...colorsSoFar, color.color],
26
+ values: [...colorsSoFar, color.value]
27
+ };
28
+ }, {
29
+ colors: [],
30
+ values: []
31
+ });
32
+ this.dispatchEvent(new CustomEvent(color_swatches_constants.COLOR_SWATCHES_EVENT_NAMES.change, {
27
33
  bubbles: true,
28
34
  detail
29
35
  }));
@@ -86,16 +92,6 @@ exports.HColorSwatches = class HColorSwatches extends phoenix_light_lit_element.
86
92
  const indexOfAlreadyExistingColor = this.selectedColors.indexOf($colorItem);
87
93
  this.selectedColors.splice(indexOfAlreadyExistingColor, 1);
88
94
  }
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
- }
99
95
  };
100
96
  tslib_es6.__decorate([
101
97
  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;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;"}
@@ -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
- selected: 'colorSwatchesSelected',
15
+ change: 'change',
16
16
  markDisabledItems: 'markDisabledItems'
17
17
  };
18
18
  const COLOR_SWATCHES_HIDDEN_ATTRIBUTE = 'hidden';
@@ -7,8 +7,8 @@ var lit = require('lit');
7
7
  var decorators = require('lit/decorators');
8
8
  var phoenix_light_lit_element = require('../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
9
9
  var phoenix_custom_element = require('../../../core/decorators/phoenix_custom_element.js');
10
- var control_props_sync_consumer_controller = require('../controllers/props_synchronizing/control_props_sync_consumer_controller.js');
11
10
  var ifDefined_js = require('lit-html/directives/if-defined.js');
11
+ var control_props_sync_consumer_controller = require('../controllers/props_synchronizing/control_props_sync_consumer_controller.js');
12
12
  var checkbox_constants = require('./checkbox_constants.js');
13
13
  var label_constants = require('../label/label_constants.js');
14
14
 
@@ -9,8 +9,8 @@ var decorators_js = require('@lit/reactive-element/decorators.js');
9
9
  var index = require('../../../../external/classnames/index.js');
10
10
  var litHtml = require('lit-html');
11
11
  var ref_js = require('lit-html/directives/ref.js');
12
- var control_props_sync_consumer_controller = require('../controllers/props_synchronizing/control_props_sync_consumer_controller.js');
13
12
  var ifDefined_js = require('lit-html/directives/if-defined.js');
13
+ var control_props_sync_consumer_controller = require('../controllers/props_synchronizing/control_props_sync_consumer_controller.js');
14
14
  var checkbox_constants = require('./checkbox_constants.js');
15
15
 
16
16
  exports.HCheckboxControl = class HCheckboxControl extends phoenix_light_lit_element.PhoenixLightLitElement {
@@ -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
- var utilities = require('@dreamcommerce/utilities');
8
+ 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');
@@ -30,9 +30,8 @@ exports.HColorSwatchesControl = class HColorSwatchesControl extends phoenix_ligh
30
30
  this.classList.add(cssClasses);
31
31
  }
32
32
  _setupEvents() {
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) : [];
33
+ this.addEventListener(color_swatches_constants.COLOR_SWATCHES_EVENT_NAMES.change, (event) => {
34
+ this.selectedColors = event.detail.values;
36
35
  });
37
36
  }
38
37
  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;"}
@@ -35,6 +35,7 @@ exports.HFile = class HFile extends phoenix_light_lit_element.PhoenixLightLitEle
35
35
  class="${file_picker_constants.FILE_ITEM_CSS_CLASSES.fileRemoveButton}"
36
36
  @click="${this._handleClick}"
37
37
  aria-label="${this.removeButtonText} ${this.name}"
38
+ type="button"
38
39
  >
39
40
  ${this.removeButtonIconName
40
41
  ? lit.html `<h-icon
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,kDAAsD;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,kDAAsD;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -12,8 +12,8 @@ var ref_js = require('lit-html/directives/ref.js');
12
12
  var v4 = require('../../../../../../external/uuid/dist/esm-browser/v4.js');
13
13
  var file_picker_constants = require('./file_picker_constants.js');
14
14
  var file_model = require('./file/file_model.js');
15
+ var ifDefined_js = require('lit-html/directives/if-defined.js');
15
16
  var input_constants = require('../input/input_constants.js');
16
- var ifDefined = require('lit/directives/if-defined');
17
17
 
18
18
  exports.HFilePicker = class HFilePicker extends phoenix_light_lit_element.PhoenixLightLitElement {
19
19
  constructor() {
@@ -78,11 +78,11 @@ exports.HFilePicker = class HFilePicker extends phoenix_light_lit_element.Phoeni
78
78
  ${ref_js.ref(this._$fileInputRef)}
79
79
  type="file"
80
80
  class="${file_picker_constants.FILE_PICKER_CONTROL_CSS_CLASSES.filePickerInput}"
81
- id="${ifDefined.ifDefined(this.controlId)}"
82
- name="${ifDefined.ifDefined(this.controlName)}"
81
+ id="${ifDefined_js.ifDefined(this.controlId)}"
82
+ name="${ifDefined_js.ifDefined(this.controlName)}"
83
83
  ?disabled="${this.disabled}"
84
84
  ?required="${this.required}"
85
- accept="${ifDefined.ifDefined(this.accept)}"
85
+ accept="${ifDefined_js.ifDefined(this.accept)}"
86
86
  @change="${this._handleChangeEvent}"
87
87
  hidden
88
88
  />
@@ -91,7 +91,7 @@ exports.HFilePicker = class HFilePicker extends phoenix_light_lit_element.Phoeni
91
91
  ? lit.html ` <h-file-picker-label
92
92
  control-id="${this.controlId}"
93
93
  label-text="${this.labelText}"
94
- label-icon-name="${ifDefined.ifDefined(this.labelIconName)}"
94
+ label-icon-name="${ifDefined_js.ifDefined(this.labelIconName)}"
95
95
  />`
96
96
  : lit.nothing}
97
97
  ${((_b = this._file) === null || _b === void 0 ? void 0 : _b.name)
@@ -99,7 +99,7 @@ exports.HFilePicker = class HFilePicker extends phoenix_light_lit_element.Phoeni
99
99
  name="${this._file.name}"
100
100
  id="${this._file.id}"
101
101
  remove-button-text="${this.removeButtonText}"
102
- remove-button-icon-name="${ifDefined.ifDefined(this.removeButtonIconName)}"
102
+ remove-button-icon-name="${ifDefined_js.ifDefined(this.removeButtonIconName)}"
103
103
  />`
104
104
  : lit.nothing}
105
105
  `;
@@ -7,9 +7,9 @@ var lit = require('lit');
7
7
  var decorators = require('lit/decorators');
8
8
  var phoenix_light_lit_element = require('../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
9
9
  var phoenix_custom_element = require('../../../core/decorators/phoenix_custom_element.js');
10
+ var ifDefined_js = require('lit-html/directives/if-defined.js');
10
11
  var input_constants = require('./input_constants.js');
11
12
  var control_props_sync_consumer_controller = require('../controllers/props_synchronizing/control_props_sync_consumer_controller.js');
12
- var ifDefined_js = require('lit-html/directives/if-defined.js');
13
13
 
14
14
  exports.HInputControl = class HInputControl extends phoenix_light_lit_element.PhoenixLightLitElement {
15
15
  constructor() {
@@ -7,8 +7,8 @@ var lit = require('lit');
7
7
  var decorators = require('lit/decorators');
8
8
  var phoenix_light_lit_element = require('../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
9
9
  var phoenix_custom_element = require('../../../core/decorators/phoenix_custom_element.js');
10
- var control_props_sync_consumer_controller = require('../controllers/props_synchronizing/control_props_sync_consumer_controller.js');
11
10
  var ifDefined_js = require('lit-html/directives/if-defined.js');
11
+ var control_props_sync_consumer_controller = require('../controllers/props_synchronizing/control_props_sync_consumer_controller.js');
12
12
  var label_constants = require('../label/label_constants.js');
13
13
  var radio_constants = require('./radio_constants.js');
14
14
 
@@ -7,8 +7,8 @@ var lit = require('lit');
7
7
  var decorators = require('lit/decorators');
8
8
  var phoenix_light_lit_element = require('../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
9
9
  var phoenix_custom_element = require('../../../core/decorators/phoenix_custom_element.js');
10
- var control_props_sync_consumer_controller = require('../controllers/props_synchronizing/control_props_sync_consumer_controller.js');
11
10
  var ifDefined_js = require('lit-html/directives/if-defined.js');
11
+ var control_props_sync_consumer_controller = require('../controllers/props_synchronizing/control_props_sync_consumer_controller.js');
12
12
  var radio_constants = require('./radio_constants.js');
13
13
 
14
14
  exports.HRadioControl = class HRadioControl extends phoenix_light_lit_element.PhoenixLightLitElement {
@@ -96,7 +96,9 @@ 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'));
99
+ this.dispatchEvent(new Event('change', {
100
+ bubbles: true
101
+ }));
100
102
  };
101
103
  this._handleResize = debounce['default'](() => {
102
104
  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;AACA;AACA;"}
@@ -7,8 +7,8 @@ var lit = require('lit');
7
7
  var decorators = require('lit/decorators');
8
8
  var phoenix_light_lit_element = require('../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
9
9
  var phoenix_custom_element = require('../../../core/decorators/phoenix_custom_element.js');
10
- var control_props_sync_consumer_controller = require('../controllers/props_synchronizing/control_props_sync_consumer_controller.js');
11
10
  var ifDefined_js = require('lit-html/directives/if-defined.js');
11
+ var control_props_sync_consumer_controller = require('../controllers/props_synchronizing/control_props_sync_consumer_controller.js');
12
12
  var label_constants = require('../label/label_constants.js');
13
13
  var switch_constants = require('./switch_constants.js');
14
14
 
@@ -7,8 +7,8 @@ var lit = require('lit');
7
7
  var decorators = require('lit/decorators');
8
8
  var phoenix_light_lit_element = require('../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
9
9
  var phoenix_custom_element = require('../../../core/decorators/phoenix_custom_element.js');
10
- var control_props_sync_consumer_controller = require('../controllers/props_synchronizing/control_props_sync_consumer_controller.js');
11
10
  var ifDefined_js = require('lit-html/directives/if-defined.js');
11
+ var control_props_sync_consumer_controller = require('../controllers/props_synchronizing/control_props_sync_consumer_controller.js');
12
12
  var switch_constants = require('./switch_constants.js');
13
13
 
14
14
  exports.HSwitchControl = class HSwitchControl extends phoenix_light_lit_element.PhoenixLightLitElement {
@@ -7,8 +7,8 @@ var lit = require('lit');
7
7
  var decorators = require('lit/decorators');
8
8
  var phoenix_light_lit_element = require('../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
9
9
  var phoenix_custom_element = require('../../../core/decorators/phoenix_custom_element.js');
10
- var control_props_sync_consumer_controller = require('../controllers/props_synchronizing/control_props_sync_consumer_controller.js');
11
10
  var ifDefined_js = require('lit-html/directives/if-defined.js');
11
+ var control_props_sync_consumer_controller = require('../controllers/props_synchronizing/control_props_sync_consumer_controller.js');
12
12
  var textarea_constants = require('./textarea_constants.js');
13
13
 
14
14
  exports.HTextareaControl = class HTextareaControl extends phoenix_light_lit_element.PhoenixLightLitElement {
@@ -1,6 +1,7 @@
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;
4
5
  label?: string;
5
6
  disabled: boolean;
6
7
  selected: boolean;
@@ -29,6 +29,8 @@ 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;
32
34
  this.small && this.classList.add(COLOR_SWATCHES_CSS_CLASSES.colorItemSmall);
33
35
  }
34
36
  attributeChangedCallback(name, value, newValue) {
@@ -54,6 +56,10 @@ __decorate([
54
56
  property({ type: String }),
55
57
  __metadata("design:type", String)
56
58
  ], HColorItem.prototype, "color", void 0);
59
+ __decorate([
60
+ property({ type: String }),
61
+ __metadata("design:type", String)
62
+ ], HColorItem.prototype, "value", void 0);
57
63
  __decorate([
58
64
  property({ type: String }),
59
65
  __metadata("design:type", String)
@@ -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;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -16,6 +16,4 @@ export declare class HColorSwatches extends PhoenixLightLitElement {
16
16
  private _isColorAlreadyExistInArray;
17
17
  private _removeExistingColorFromArray;
18
18
  private _dispatchColorSelectEvent;
19
- private _setColorsDispatchValue;
20
- private _getOnlyColorValues;
21
19
  }
@@ -16,10 +16,16 @@ let HColorSwatches = class HColorSwatches extends PhoenixLightLitElement {
16
16
  this.multiple ? this._handleColorClickedForMultipleMode($colorItem) : this._handleColorClickedForSingleMode($colorItem);
17
17
  };
18
18
  this._dispatchColorSelectEvent = () => {
19
- const detail = {
20
- colors: this._setColorsDispatchValue(this.selectedColors)
21
- };
22
- this.dispatchEvent(new CustomEvent(COLOR_SWATCHES_EVENT_NAMES.selected, {
19
+ const detail = this.selectedColors.reduce(({ colors: colorsSoFar, values: valuesSoFar }, color) => {
20
+ return {
21
+ colors: [...colorsSoFar, color.color],
22
+ values: [...colorsSoFar, color.value]
23
+ };
24
+ }, {
25
+ colors: [],
26
+ values: []
27
+ });
28
+ this.dispatchEvent(new CustomEvent(COLOR_SWATCHES_EVENT_NAMES.change, {
23
29
  bubbles: true,
24
30
  detail
25
31
  }));
@@ -82,16 +88,6 @@ let HColorSwatches = class HColorSwatches extends PhoenixLightLitElement {
82
88
  const indexOfAlreadyExistingColor = this.selectedColors.indexOf($colorItem);
83
89
  this.selectedColors.splice(indexOfAlreadyExistingColor, 1);
84
90
  }
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
- }
95
91
  };
96
92
  __decorate([
97
93
  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;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;"}
@@ -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 selected: "colorSwatchesSelected";
9
+ readonly change: "change";
10
10
  readonly markDisabledItems: "markDisabledItems";
11
11
  };
12
12
  export declare const COLOR_SWATCHES_HIDDEN_ATTRIBUTE = "hidden";
@@ -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
- selected: 'colorSwatchesSelected',
11
+ change: 'change',
12
12
  markDisabledItems: 'markDisabledItems'
13
13
  };
14
14
  const COLOR_SWATCHES_HIDDEN_ATTRIBUTE = 'hidden';
@@ -1,3 +1,4 @@
1
1
  export interface IColorSelectValue {
2
- colors: string | string[] | undefined;
2
+ colors: string[];
3
+ values: string[];
3
4
  }
@@ -3,8 +3,8 @@ import { html, nothing } from 'lit';
3
3
  import { property } from 'lit/decorators';
4
4
  import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
5
5
  import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
6
- import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
7
6
  import { ifDefined } from 'lit-html/directives/if-defined.js';
7
+ import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
8
8
  import { CHECKBOX_CONTROL_CSS_CLASSES, CHECKBOX_SLOTS } from './checkbox_constants.js';
9
9
  import { LABEL_CSS_CLASSES } from '../label/label_constants.js';
10
10
 
@@ -5,8 +5,8 @@ import { property } from '@lit/reactive-element/decorators.js';
5
5
  import classnames from '../../../../external/classnames/index.js';
6
6
  import { html } from 'lit-html';
7
7
  import { createRef, ref } from 'lit-html/directives/ref.js';
8
- import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
9
8
  import { ifDefined } from 'lit-html/directives/if-defined.js';
9
+ import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
10
10
  import { CHECKBOX_CONTROL_EVENTS, CHECKBOX_CONTROL_CSS_CLASSES } from './checkbox_constants.js';
11
11
 
12
12
  let HCheckboxControl = class HCheckboxControl extends PhoenixLightLitElement {
@@ -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 { ArrayUtils } from '@dreamcommerce/utilities';
4
+ import '@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';
@@ -26,9 +26,8 @@ let HColorSwatchesControl = class HColorSwatchesControl extends PhoenixLightLitE
26
26
  this.classList.add(cssClasses);
27
27
  }
28
28
  _setupEvents() {
29
- this.addEventListener(COLOR_SWATCHES_EVENT_NAMES.selected, (event) => {
30
- const eventValue = event.detail.colors;
31
- this.selectedColors = eventValue ? ArrayUtils.makeAsArray(eventValue) : [];
29
+ this.addEventListener(COLOR_SWATCHES_EVENT_NAMES.change, (event) => {
30
+ this.selectedColors = event.detail.values;
32
31
  });
33
32
  }
34
33
  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;"}
@@ -31,6 +31,7 @@ let HFile = class HFile extends PhoenixLightLitElement {
31
31
  class="${FILE_ITEM_CSS_CLASSES.fileRemoveButton}"
32
32
  @click="${this._handleClick}"
33
33
  aria-label="${this.removeButtonText} ${this.name}"
34
+ type="button"
34
35
  >
35
36
  ${this.removeButtonIconName
36
37
  ? html `<h-icon
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,kDAAsD;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,kDAAsD;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,6 +1,6 @@
1
1
  import { TemplateResult } from 'lit';
2
- import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element/phoenix_light_lit_element";
3
2
  import type { TInputControlType } from "../input/input_types";
3
+ import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element/phoenix_light_lit_element";
4
4
  export declare class HFilePicker extends PhoenixLightLitElement {
5
5
  controlId: string;
6
6
  controlName: string;
@@ -8,8 +8,8 @@ import { createRef, ref } from 'lit-html/directives/ref.js';
8
8
  import v4 from '../../../../../../external/uuid/dist/esm-browser/v4.js';
9
9
  import { FILE_PICKER_CONTROL_CSS_CLASSES, FILE_ITEM_EVENT_NAMES, FILE_PICKER_LABEL_EVENT_NAMES } from './file_picker_constants.js';
10
10
  import { FileItem } from './file/file_model.js';
11
+ import { ifDefined } from 'lit-html/directives/if-defined.js';
11
12
  import { INPUT_CONTROL_TYPES } from '../input/input_constants.js';
12
- import { ifDefined } from 'lit/directives/if-defined';
13
13
 
14
14
  let HFilePicker = class HFilePicker extends PhoenixLightLitElement {
15
15
  constructor() {
@@ -3,9 +3,9 @@ import { html } from 'lit';
3
3
  import { property } from 'lit/decorators';
4
4
  import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
5
5
  import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
6
+ import { ifDefined } from 'lit-html/directives/if-defined.js';
6
7
  import { INPUT_CONTROL_TYPES, INPUT_CONTROL_EVENTS, INPUT_CONTROL_CSS_CLASSES } from './input_constants.js';
7
8
  import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
8
- import { ifDefined } from 'lit-html/directives/if-defined.js';
9
9
 
10
10
  let HInputControl = class HInputControl extends PhoenixLightLitElement {
11
11
  constructor() {
@@ -3,8 +3,8 @@ import { html, nothing } from 'lit';
3
3
  import { property } from 'lit/decorators';
4
4
  import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
5
5
  import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
6
- import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
7
6
  import { ifDefined } from 'lit-html/directives/if-defined.js';
7
+ import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
8
8
  import { LABEL_CSS_CLASSES } from '../label/label_constants.js';
9
9
  import { RADIO_CONTROL_CSS_CLASSES, RADIO_SLOTS } from './radio_constants.js';
10
10
 
@@ -3,8 +3,8 @@ import { html } from 'lit';
3
3
  import { property } from 'lit/decorators';
4
4
  import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
5
5
  import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
6
- import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
7
6
  import { ifDefined } from 'lit-html/directives/if-defined.js';
7
+ import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
8
8
  import { RADIO_CONTROL_EVENTS, RADIO_CONTROL_CSS_CLASSES } from './radio_constants.js';
9
9
 
10
10
  let HRadioControl = class HRadioControl extends PhoenixLightLitElement {
@@ -92,7 +92,9 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
92
92
  this._dispatchChangeEvent();
93
93
  };
94
94
  this._dispatchChangeEvent = () => {
95
- this.dispatchEvent(new Event('change'));
95
+ this.dispatchEvent(new Event('change', {
96
+ bubbles: true
97
+ }));
96
98
  };
97
99
  this._handleResize = debounce_1(() => {
98
100
  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;AACA;AACA;"}
@@ -3,8 +3,8 @@ import { html, nothing } from 'lit';
3
3
  import { property } from 'lit/decorators';
4
4
  import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
5
5
  import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
6
- import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
7
6
  import { ifDefined } from 'lit-html/directives/if-defined.js';
7
+ import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
8
8
  import { LABEL_CSS_CLASSES } from '../label/label_constants.js';
9
9
  import { SWITCH_CONTROL_CSS_CLASSES, SWITCH_SLOTS } from './switch_constants.js';
10
10
 
@@ -3,8 +3,8 @@ import { html } from 'lit';
3
3
  import { property } from 'lit/decorators';
4
4
  import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
5
5
  import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
6
- import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
7
6
  import { ifDefined } from 'lit-html/directives/if-defined.js';
7
+ import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
8
8
  import { SWITCH_CONTROL_EVENTS, SWITCH_CONTROL_CSS_CLASSES } from './switch_constants.js';
9
9
 
10
10
  let HSwitchControl = class HSwitchControl extends PhoenixLightLitElement {
@@ -3,8 +3,8 @@ import { html, nothing } from 'lit';
3
3
  import { property } from 'lit/decorators';
4
4
  import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
5
5
  import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
6
- import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
7
6
  import { ifDefined } from 'lit-html/directives/if-defined.js';
7
+ import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
8
8
  import { TEXTAREA_CONTROL_EVENTS, TEXTAREA_CONTROL_CSS_CLASSES } from './textarea_constants.js';
9
9
 
10
10
  let HTextareaControl = class HTextareaControl extends PhoenixLightLitElement {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@shoper/phoenix_design_system",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "1.2.8",
5
+ "version": "1.2.10-1",
6
6
  "description": "phoenix design system",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",