@umbraco-ui/uui-color-swatches 1.3.0-rc.0 → 1.3.0
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/custom-elements.json
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
{
|
|
10
10
|
"name": "value",
|
|
11
11
|
"description": "Value of selected option.",
|
|
12
|
-
"type": "
|
|
13
|
-
"default": "\"
|
|
12
|
+
"type": "string",
|
|
13
|
+
"default": "\"\""
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"name": "label",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"name": "value",
|
|
29
29
|
"attribute": "value",
|
|
30
30
|
"description": "Value of selected option.",
|
|
31
|
-
"type": "
|
|
32
|
-
"default": "\"
|
|
31
|
+
"type": "string",
|
|
32
|
+
"default": "\"\""
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"name": "swatches",
|
package/lib/index.js
CHANGED
|
@@ -56,7 +56,7 @@ let UUIColorSwatchesElement = class extends LabelMixin("label", LitElement) {
|
|
|
56
56
|
this.value = this._selectedElement.value || "";
|
|
57
57
|
this.dispatchEvent(new UUIColorSwatchesEvent(UUIColorSwatchesEvent.CHANGE));
|
|
58
58
|
};
|
|
59
|
-
this.
|
|
59
|
+
this._onDeselected = (event) => {
|
|
60
60
|
const target = event.target;
|
|
61
61
|
if (!this.swatches.includes(target))
|
|
62
62
|
return;
|
|
@@ -74,7 +74,7 @@ let UUIColorSwatchesElement = class extends LabelMixin("label", LitElement) {
|
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
this.addEventListener(UUISelectableEvent.SELECTED, this._onSelected);
|
|
77
|
-
this.addEventListener(UUISelectableEvent.
|
|
77
|
+
this.addEventListener(UUISelectableEvent.DESELECTED, this._onDeselected);
|
|
78
78
|
}
|
|
79
79
|
get _activeElement() {
|
|
80
80
|
return this.__activeElement;
|
|
@@ -11,9 +11,8 @@ export declare class UUIColorSwatchesElement extends UUIColorSwatchesElement_bas
|
|
|
11
11
|
static styles: import("lit").CSSResult[];
|
|
12
12
|
/**
|
|
13
13
|
* Value of selected option.
|
|
14
|
-
*
|
|
14
|
+
*
|
|
15
15
|
* @attr
|
|
16
|
-
* @default ""
|
|
17
16
|
*/
|
|
18
17
|
value: string;
|
|
19
18
|
swatches: Array<UUIColorSwatchElement>;
|
|
@@ -26,7 +25,7 @@ export declare class UUIColorSwatchesElement extends UUIColorSwatchesElement_bas
|
|
|
26
25
|
protected willUpdate(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
27
26
|
private _handleSlotChange;
|
|
28
27
|
private _onSelected;
|
|
29
|
-
private
|
|
28
|
+
private _onDeselected;
|
|
30
29
|
/**
|
|
31
30
|
* Deselects all swatches.
|
|
32
31
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbraco-ui/uui-color-swatches",
|
|
3
|
-
"version": "1.3.0
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Umbraco",
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"custom-elements.json"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@umbraco-ui/uui-base": "1.3.0
|
|
34
|
-
"@umbraco-ui/uui-color-swatch": "1.3.0
|
|
33
|
+
"@umbraco-ui/uui-base": "1.3.0",
|
|
34
|
+
"@umbraco-ui/uui-color-swatch": "1.3.0"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "npm run analyze && tsc --build --force && rollup -c rollup.config.js",
|
|
38
|
-
"clean": "tsc --build --clean && rimraf -g dist lib/*.js lib/**/*.js custom-elements.json",
|
|
38
|
+
"clean": "tsc --build --clean && rimraf -g dist lib/*.js lib/**/*.js *.tgz lib/**/*.d.ts custom-elements.json",
|
|
39
39
|
"analyze": "web-component-analyzer **/*.element.ts --outFile custom-elements.json"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://uui.umbraco.com/?path=/story/uui-color-swatches",
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "e662ac3be21cef08076d1dbb978748c2dd30e596"
|
|
46
46
|
}
|