@shoper/phoenix_design_system 1.3.2 → 1.3.4
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/form/color_swatches_control/color_swatches_control.js +11 -0
- package/build/cjs/packages/phoenix/src/components/form/color_swatches_control/color_swatches_control.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/color_swatches_control/color_swatches_control.d.ts +3 -0
- package/build/esm/packages/phoenix/src/components/form/color_swatches_control/color_swatches_control.js +11 -0
- package/build/esm/packages/phoenix/src/components/form/color_swatches_control/color_swatches_control.js.map +1 -1
- package/package.json +1 -1
|
@@ -15,8 +15,15 @@ var color_swatches_constants = require('../../color_swatches/color_swatches_cons
|
|
|
15
15
|
exports.HColorSwatchesControl = class HColorSwatchesControl extends phoenix_light_lit_element.PhoenixLightLitElement {
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments);
|
|
18
|
+
this.multiple = false;
|
|
18
19
|
this.selectedColors = [];
|
|
19
20
|
}
|
|
21
|
+
get name() {
|
|
22
|
+
return this.controlName;
|
|
23
|
+
}
|
|
24
|
+
get id() {
|
|
25
|
+
return this.controlId;
|
|
26
|
+
}
|
|
20
27
|
selectColors(values) {
|
|
21
28
|
if (!this._$colorSwatches)
|
|
22
29
|
return;
|
|
@@ -89,6 +96,10 @@ tslib_es6.__decorate([
|
|
|
89
96
|
decorators.property({ type: Boolean }),
|
|
90
97
|
tslib_es6.__metadata("design:type", Boolean)
|
|
91
98
|
], exports.HColorSwatchesControl.prototype, "error", void 0);
|
|
99
|
+
tslib_es6.__decorate([
|
|
100
|
+
decorators.property({ type: Boolean }),
|
|
101
|
+
tslib_es6.__metadata("design:type", Boolean)
|
|
102
|
+
], exports.HColorSwatchesControl.prototype, "multiple", void 0);
|
|
92
103
|
tslib_es6.__decorate([
|
|
93
104
|
decorators.property(),
|
|
94
105
|
tslib_es6.__metadata("design:type", Array)
|
|
@@ -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,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;AACA;AACA;AACA;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,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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,10 @@ export declare class HColorSwatchesControl extends PhoenixLightLitElement {
|
|
|
6
6
|
disabled: boolean;
|
|
7
7
|
required: boolean;
|
|
8
8
|
error: boolean;
|
|
9
|
+
multiple: boolean;
|
|
9
10
|
selectedColors: string[];
|
|
11
|
+
get name(): string;
|
|
12
|
+
get id(): string;
|
|
10
13
|
selectColors(values: string[]): void;
|
|
11
14
|
clearAllColors(): void;
|
|
12
15
|
private _$colorSwatches;
|
|
@@ -11,8 +11,15 @@ import { COLOR_SWATCHES_EVENT_NAMES } from '../../color_swatches/color_swatches_
|
|
|
11
11
|
let HColorSwatchesControl = class HColorSwatchesControl extends PhoenixLightLitElement {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments);
|
|
14
|
+
this.multiple = false;
|
|
14
15
|
this.selectedColors = [];
|
|
15
16
|
}
|
|
17
|
+
get name() {
|
|
18
|
+
return this.controlName;
|
|
19
|
+
}
|
|
20
|
+
get id() {
|
|
21
|
+
return this.controlId;
|
|
22
|
+
}
|
|
16
23
|
selectColors(values) {
|
|
17
24
|
if (!this._$colorSwatches)
|
|
18
25
|
return;
|
|
@@ -85,6 +92,10 @@ __decorate([
|
|
|
85
92
|
property({ type: Boolean }),
|
|
86
93
|
__metadata("design:type", Boolean)
|
|
87
94
|
], HColorSwatchesControl.prototype, "error", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
property({ type: Boolean }),
|
|
97
|
+
__metadata("design:type", Boolean)
|
|
98
|
+
], HColorSwatchesControl.prototype, "multiple", void 0);
|
|
88
99
|
__decorate([
|
|
89
100
|
property(),
|
|
90
101
|
__metadata("design:type", Array)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,+CAAmD;AAC1F;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;AACA;AACA;AACA;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,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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|