smoothly 0.3.4 → 0.3.6
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/dist/cjs/{index-3efe2a41.js → index-3fb97927.js} +467 -269
- package/dist/cjs/{index-2a011313.js → index-7b75b331.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/smoothly-accordion_53.cjs.entry.js +68 -26
- package/dist/cjs/smoothly-google-font.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-reorder.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +1 -1
- package/dist/cjs/smoothly.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/App.js +38 -46
- package/dist/collection/components/accordion/index.js +65 -55
- package/dist/collection/components/accordion-item/index.js +133 -131
- package/dist/collection/components/app/index.js +37 -32
- package/dist/collection/components/app-demo/index.js +39 -68
- package/dist/collection/components/backtotop/index.js +73 -66
- package/dist/collection/components/button/index.js +144 -141
- package/dist/collection/components/calendar/index.js +277 -268
- package/dist/collection/components/checkbox/index.js +120 -110
- package/dist/collection/components/dialog/index.js +97 -93
- package/dist/collection/components/dialog-demo/index.js +2 -3
- package/dist/collection/components/display/index.js +108 -102
- package/dist/collection/components/display-amount/index.js +68 -63
- package/dist/collection/components/display-date-time/index.js +35 -30
- package/dist/collection/components/display-demo/index.js +23 -129
- package/dist/collection/components/frame/index.js +134 -124
- package/dist/collection/components/google-font/index.js +26 -24
- package/dist/collection/components/icon/index.js +116 -107
- package/dist/collection/components/icon-demo/index.js +11 -7
- package/dist/collection/components/input/index.js +364 -355
- package/dist/collection/components/input-date/index.js +165 -156
- package/dist/collection/components/input-date-range/index.js +220 -213
- package/dist/collection/components/input-demo/index.js +2 -87
- package/dist/collection/components/input-month/index.js +65 -57
- package/dist/collection/components/item/index.js +101 -87
- package/dist/collection/components/menu-options/index.js +287 -275
- package/dist/collection/components/notification/index.js +74 -63
- package/dist/collection/components/notifier/index.js +31 -23
- package/dist/collection/components/option/index.js +227 -223
- package/dist/collection/components/picker/index.js +404 -397
- package/dist/collection/components/popup/index.js +73 -69
- package/dist/collection/components/quiet/index.js +33 -28
- package/dist/collection/components/radio/index.js +98 -91
- package/dist/collection/components/radio-button/index.js +92 -83
- package/dist/collection/components/radio-button/item/index.js +91 -66
- package/dist/collection/components/radio-button/item/style.css +18 -13
- package/dist/collection/components/radio-group/index.js +33 -27
- package/dist/collection/components/reorder/index.js +28 -23
- package/dist/collection/components/room/index.js +73 -71
- package/dist/collection/components/select/index.js +82 -75
- package/dist/collection/components/select-demo/index.js +24 -42
- package/dist/collection/components/selector/index.js +71 -68
- package/dist/collection/components/skeleton/index.js +112 -106
- package/dist/collection/components/spinner/index.js +50 -46
- package/dist/collection/components/submit/index.js +174 -163
- package/dist/collection/components/svg/index.js +65 -60
- package/dist/collection/components/tab/index.js +84 -75
- package/dist/collection/components/tab-switch/index.js +32 -23
- package/dist/collection/components/table/cell/index.js +12 -9
- package/dist/collection/components/table/demo/index.js +13 -59
- package/dist/collection/components/table/expandable/cell/index.js +100 -95
- package/dist/collection/components/table/expandable/row/index.js +85 -79
- package/dist/collection/components/table/header/index.js +33 -28
- package/dist/collection/components/table/index.js +44 -36
- package/dist/collection/components/table/row/index.js +26 -20
- package/dist/collection/components/trigger/index.js +174 -166
- package/dist/collection/components/trigger-sink/index.js +73 -65
- package/dist/collection/components/trigger-source/index.js +71 -63
- package/dist/collection/components/tuple/index.js +19 -17
- package/dist/collection/components/urlencoded/index.js +22 -20
- package/dist/collection/model/Listenable.js +4 -2
- package/dist/custom-elements/index.js +67 -25
- package/dist/esm/{index-1d438ba2.js → index-3b463176.js} +1 -1
- package/dist/esm/{index-4d9efff8.js → index-fcf8bdd3.js} +467 -269
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/smoothly-accordion_53.entry.js +68 -26
- package/dist/esm/smoothly-google-font.entry.js +1 -1
- package/dist/esm/smoothly-radio-group.entry.js +1 -1
- package/dist/esm/smoothly-reorder.entry.js +1 -1
- package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
- package/dist/esm/smoothly-trigger-source.entry.js +1 -1
- package/dist/esm/smoothly.js +3 -3
- package/dist/smoothly/index.esm.js +1 -1
- package/dist/smoothly/{p-d5d4832d.entry.js → p-0833f25c.entry.js} +1 -1
- package/dist/smoothly/{p-919ae3e8.entry.js → p-2bf8c660.entry.js} +1 -1
- package/dist/smoothly/{p-8e4e941e.entry.js → p-3bd18eea.entry.js} +1 -1
- package/dist/smoothly/p-8ab82f55.entry.js +1 -0
- package/dist/smoothly/{p-9bc77fba.entry.js → p-a1c137fc.entry.js} +1 -1
- package/dist/smoothly/p-af90d05a.js +2 -0
- package/dist/smoothly/{p-76e88859.js → p-e5191036.js} +1 -1
- package/dist/smoothly/{p-7a5eda51.entry.js → p-f67259c5.entry.js} +1 -1
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/radio-button/item/index.d.ts +2 -0
- package/dist/types/components.d.ts +3 -1
- package/dist/types/stencil-public-runtime.d.ts +15 -4
- package/loader/package.json +1 -0
- package/package.json +6 -6
- package/dist/smoothly/p-191ee4b8.js +0 -2
- package/dist/smoothly/p-59c574cb.entry.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
export class SmoothlySelect {
|
|
3
3
|
optionSelected() {
|
|
4
4
|
if (this.selectElement)
|
|
@@ -11,85 +11,92 @@ export class SmoothlySelect {
|
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
13
|
return [
|
|
14
|
-
h("select", { ref: e => (this.selectElement = e), id: this.identifier, onChange: () => this.optionSelected(), style: { background: this.background } },
|
|
15
|
-
h("slot", null)),
|
|
14
|
+
h("select", { ref: e => (this.selectElement = e), id: this.identifier, onChange: () => this.optionSelected(), style: { background: this.background } }, h("slot", null)),
|
|
16
15
|
];
|
|
17
16
|
}
|
|
18
17
|
static get is() { return "smoothly-select"; }
|
|
19
18
|
static get encapsulation() { return "scoped"; }
|
|
20
|
-
static get originalStyleUrls() {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"original": "string",
|
|
49
|
-
"resolved": "string | undefined",
|
|
50
|
-
"references": {}
|
|
51
|
-
},
|
|
52
|
-
"required": false,
|
|
53
|
-
"optional": true,
|
|
54
|
-
"docs": {
|
|
55
|
-
"tags": [],
|
|
56
|
-
"text": ""
|
|
57
|
-
},
|
|
58
|
-
"attribute": "background",
|
|
59
|
-
"reflect": true
|
|
60
|
-
},
|
|
61
|
-
"value": {
|
|
62
|
-
"type": "string",
|
|
63
|
-
"mutable": true,
|
|
64
|
-
"complexType": {
|
|
65
|
-
"original": "string",
|
|
66
|
-
"resolved": "string",
|
|
67
|
-
"references": {}
|
|
68
|
-
},
|
|
69
|
-
"required": false,
|
|
70
|
-
"optional": false,
|
|
71
|
-
"docs": {
|
|
72
|
-
"tags": [],
|
|
73
|
-
"text": ""
|
|
19
|
+
static get originalStyleUrls() {
|
|
20
|
+
return {
|
|
21
|
+
"$": ["style.css"]
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
static get styleUrls() {
|
|
25
|
+
return {
|
|
26
|
+
"$": ["style.css"]
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
static get properties() {
|
|
30
|
+
return {
|
|
31
|
+
"identifier": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"mutable": false,
|
|
34
|
+
"complexType": {
|
|
35
|
+
"original": "string",
|
|
36
|
+
"resolved": "string",
|
|
37
|
+
"references": {}
|
|
38
|
+
},
|
|
39
|
+
"required": false,
|
|
40
|
+
"optional": false,
|
|
41
|
+
"docs": {
|
|
42
|
+
"tags": [],
|
|
43
|
+
"text": ""
|
|
44
|
+
},
|
|
45
|
+
"attribute": "identifier",
|
|
46
|
+
"reflect": false
|
|
74
47
|
},
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
48
|
+
"background": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"mutable": false,
|
|
51
|
+
"complexType": {
|
|
52
|
+
"original": "string",
|
|
53
|
+
"resolved": "string | undefined",
|
|
54
|
+
"references": {}
|
|
55
|
+
},
|
|
56
|
+
"required": false,
|
|
57
|
+
"optional": true,
|
|
58
|
+
"docs": {
|
|
59
|
+
"tags": [],
|
|
60
|
+
"text": ""
|
|
61
|
+
},
|
|
62
|
+
"attribute": "background",
|
|
63
|
+
"reflect": true
|
|
88
64
|
},
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
65
|
+
"value": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"mutable": true,
|
|
68
|
+
"complexType": {
|
|
69
|
+
"original": "string",
|
|
70
|
+
"resolved": "string",
|
|
71
|
+
"references": {}
|
|
72
|
+
},
|
|
73
|
+
"required": false,
|
|
74
|
+
"optional": false,
|
|
75
|
+
"docs": {
|
|
76
|
+
"tags": [],
|
|
77
|
+
"text": ""
|
|
78
|
+
},
|
|
79
|
+
"attribute": "value",
|
|
80
|
+
"reflect": false
|
|
93
81
|
}
|
|
94
|
-
}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
static get events() {
|
|
85
|
+
return [{
|
|
86
|
+
"method": "selectionChanged",
|
|
87
|
+
"name": "selectionChanged",
|
|
88
|
+
"bubbles": true,
|
|
89
|
+
"cancelable": true,
|
|
90
|
+
"composed": true,
|
|
91
|
+
"docs": {
|
|
92
|
+
"tags": [],
|
|
93
|
+
"text": ""
|
|
94
|
+
},
|
|
95
|
+
"complexType": {
|
|
96
|
+
"original": "{ identifier: string; value: string }",
|
|
97
|
+
"resolved": "{ identifier: string; value: string; }",
|
|
98
|
+
"references": {}
|
|
99
|
+
}
|
|
100
|
+
}];
|
|
101
|
+
}
|
|
95
102
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
import { Notice } from "../../model";
|
|
3
3
|
export class SmoothlySelectDemo {
|
|
4
4
|
constructor() {
|
|
@@ -16,17 +16,8 @@ export class SmoothlySelectDemo {
|
|
|
16
16
|
render() {
|
|
17
17
|
return [
|
|
18
18
|
h("smoothly-select", { identifier: "currency" }, this.currencies.map(option => this.currency == option ? (h("option", { value: option, selected: true }, option)) : (h("option", { value: option }, option)))),
|
|
19
|
-
h("smoothly-select", { identifier: "language" },
|
|
20
|
-
|
|
21
|
-
h("option", { value: "sv" }, "Swedish"),
|
|
22
|
-
h("option", { value: "da", selected: true }, "Danish"),
|
|
23
|
-
h("option", { value: "no" }, "Norwegian")),
|
|
24
|
-
h("optgroup", { label: "Other" },
|
|
25
|
-
h("option", { value: "en" }, "English"))),
|
|
26
|
-
h("smoothly-select", { identifier: "quantity", ref: e => (this.quantityElement = e) },
|
|
27
|
-
h("option", { value: "1" }, "1"),
|
|
28
|
-
h("option", { value: "2" }, "2"),
|
|
29
|
-
h("option", { value: "3" }, "3")),
|
|
19
|
+
h("smoothly-select", { identifier: "language" }, h("optgroup", { label: "Nordic" }, h("option", { value: "sv" }, "Swedish"), h("option", { value: "da", selected: true }, "Danish"), h("option", { value: "no" }, "Norwegian")), h("optgroup", { label: "Other" }, h("option", { value: "en" }, "English"))),
|
|
20
|
+
h("smoothly-select", { identifier: "quantity", ref: e => (this.quantityElement = e) }, h("option", { value: "1" }, "1"), h("option", { value: "2" }, "2"), h("option", { value: "3" }, "3")),
|
|
30
21
|
h("smoothly-input-date", null, "Date"),
|
|
31
22
|
h("smoothly-input-date", { value: "2021-10-28", max: "2021-12-30", min: "2021-10-10" }, "Date"),
|
|
32
23
|
h("smoothly-input-date-range", { start: "2022-10-28", end: "2022-11-27", min: "2021-10-10", max: "2022-12-30" }),
|
|
@@ -36,19 +27,7 @@ export class SmoothlySelectDemo {
|
|
|
36
27
|
"--padding": "0 0.75em",
|
|
37
28
|
"--input-width": "6rem",
|
|
38
29
|
} }),
|
|
39
|
-
h("smoothly-selector", null,
|
|
40
|
-
h("smoothly-item", { value: "1" }, "January"),
|
|
41
|
-
h("smoothly-item", { value: "2" }, "February"),
|
|
42
|
-
h("smoothly-item", { value: "3" }, "March"),
|
|
43
|
-
h("smoothly-item", { value: "4" }, "April"),
|
|
44
|
-
h("smoothly-item", { value: "5" }, "May"),
|
|
45
|
-
h("smoothly-item", { value: "6" }, "June"),
|
|
46
|
-
h("smoothly-item", { value: "7" }, "July"),
|
|
47
|
-
h("smoothly-item", { value: "8" }, "August"),
|
|
48
|
-
h("smoothly-item", { value: "9" }, "September"),
|
|
49
|
-
h("smoothly-item", { value: "10" }, "October"),
|
|
50
|
-
h("smoothly-item", { value: "11" }, "November"),
|
|
51
|
-
h("smoothly-item", { value: "12" }, "December")),
|
|
30
|
+
h("smoothly-selector", null, h("smoothly-item", { value: "1" }, "January"), h("smoothly-item", { value: "2" }, "February"), h("smoothly-item", { value: "3" }, "March"), h("smoothly-item", { value: "4" }, "April"), h("smoothly-item", { value: "5" }, "May"), h("smoothly-item", { value: "6" }, "June"), h("smoothly-item", { value: "7" }, "July"), h("smoothly-item", { value: "8" }, "August"), h("smoothly-item", { value: "9" }, "September"), h("smoothly-item", { value: "10" }, "October"), h("smoothly-item", { value: "11" }, "November"), h("smoothly-item", { value: "12" }, "December")),
|
|
52
31
|
h("button", { onClick: () => this.alertf() }, "press here"),
|
|
53
32
|
h("smoothly-picker", { label: "Filter", "empty-menu-label": "Sorry, we're out of options.", "max-height": "58px", maxMenuHeight: "20rem", multiple: true, options: [
|
|
54
33
|
{ name: "Big Dog", value: "dog", aliases: ["WOFF"] },
|
|
@@ -101,25 +80,28 @@ export class SmoothlySelectDemo {
|
|
|
101
80
|
h("br", null),
|
|
102
81
|
h("smoothly-picker", { label: "readonly", readonly: true, options: [{ name: "readonly", value: "readonly" }] }),
|
|
103
82
|
h("br", null),
|
|
104
|
-
h("smoothly-tab-switch", null,
|
|
105
|
-
h("smoothly-tab", { label: "test1", open: true }, "Hello world!"),
|
|
106
|
-
h("smoothly-tab", { label: "test2" }, "this is a test message!"),
|
|
107
|
-
h("smoothly-tab", { label: "test3" }, "this is a test message again!")),
|
|
83
|
+
h("smoothly-tab-switch", null, h("smoothly-tab", { label: "test1", open: true }, "Hello world!"), h("smoothly-tab", { label: "test2" }, "this is a test message!"), h("smoothly-tab", { label: "test3" }, "this is a test message again!")),
|
|
108
84
|
];
|
|
109
85
|
}
|
|
110
86
|
static get is() { return "smoothly-select-demo"; }
|
|
111
87
|
static get encapsulation() { return "scoped"; }
|
|
112
|
-
static get originalStyleUrls() {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
"
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
88
|
+
static get originalStyleUrls() {
|
|
89
|
+
return {
|
|
90
|
+
"$": ["style.css"]
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
static get styleUrls() {
|
|
94
|
+
return {
|
|
95
|
+
"$": ["style.css"]
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
static get listeners() {
|
|
99
|
+
return [{
|
|
100
|
+
"name": "selectionChanged",
|
|
101
|
+
"method": "handleSelectionChanged",
|
|
102
|
+
"target": undefined,
|
|
103
|
+
"capture": false,
|
|
104
|
+
"passive": false
|
|
105
|
+
}];
|
|
106
|
+
}
|
|
125
107
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class Selector {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.opened = false;
|
|
@@ -79,19 +79,10 @@ export class Selector {
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
render() {
|
|
82
|
-
return (h(Host, { tabIndex: 2, class: this.missing ? "missing" : "" },
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
h("button", { onClick: e => {
|
|
87
|
-
e.stopPropagation();
|
|
88
|
-
this.filter = "";
|
|
89
|
-
} },
|
|
90
|
-
h("smoothly-icon", { name: "close", size: "small" })))) : undefined,
|
|
91
|
-
this.opened ? h("section", { onClick: () => (this.opened = true) }) : [],
|
|
92
|
-
h("div", { class: this.opened ? "" : "hidden" },
|
|
93
|
-
h("nav", null,
|
|
94
|
-
h("slot", null)))));
|
|
82
|
+
return (h(Host, { tabIndex: 2, class: this.missing ? "missing" : "" }, h("main", { ref: element => (this.mainElement = element) }, "(none)"), this.filter.length != 0 ? (h("aside", { ref: element => (this.aside = element) }, this.filter, h("button", { onClick: e => {
|
|
83
|
+
e.stopPropagation();
|
|
84
|
+
this.filter = "";
|
|
85
|
+
} }, h("smoothly-icon", { name: "close", size: "small" })))) : undefined, this.opened ? h("section", { onClick: () => (this.opened = true) }) : [], h("div", { class: this.opened ? "" : "hidden" }, h("nav", null, h("slot", null)))));
|
|
95
86
|
}
|
|
96
87
|
componentDidRender() {
|
|
97
88
|
const items = [];
|
|
@@ -105,61 +96,73 @@ export class Selector {
|
|
|
105
96
|
}
|
|
106
97
|
static get is() { return "smoothly-selector"; }
|
|
107
98
|
static get encapsulation() { return "scoped"; }
|
|
108
|
-
static get originalStyleUrls() {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
"
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
|
|
135
|
-
|
|
99
|
+
static get originalStyleUrls() {
|
|
100
|
+
return {
|
|
101
|
+
"$": ["style.css"]
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
static get styleUrls() {
|
|
105
|
+
return {
|
|
106
|
+
"$": ["style.css"]
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
static get states() {
|
|
110
|
+
return {
|
|
111
|
+
"opened": {},
|
|
112
|
+
"selectedElement": {},
|
|
113
|
+
"missing": {},
|
|
114
|
+
"filter": {}
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
static get events() {
|
|
118
|
+
return [{
|
|
119
|
+
"method": "selected",
|
|
120
|
+
"name": "selected",
|
|
121
|
+
"bubbles": true,
|
|
122
|
+
"cancelable": true,
|
|
123
|
+
"composed": true,
|
|
124
|
+
"docs": {
|
|
125
|
+
"tags": [],
|
|
126
|
+
"text": ""
|
|
127
|
+
},
|
|
128
|
+
"complexType": {
|
|
129
|
+
"original": "any",
|
|
130
|
+
"resolved": "any",
|
|
131
|
+
"references": {}
|
|
132
|
+
}
|
|
133
|
+
}];
|
|
134
|
+
}
|
|
136
135
|
static get elementRef() { return "element"; }
|
|
137
|
-
static get watchers() {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
136
|
+
static get watchers() {
|
|
137
|
+
return [{
|
|
138
|
+
"propName": "selectedElement",
|
|
139
|
+
"methodName": "onSelectedChange"
|
|
140
|
+
}, {
|
|
141
|
+
"propName": "filter",
|
|
142
|
+
"methodName": "onFilterChange"
|
|
143
|
+
}];
|
|
144
|
+
}
|
|
145
|
+
static get listeners() {
|
|
146
|
+
return [{
|
|
147
|
+
"name": "click",
|
|
148
|
+
"method": "onClick",
|
|
149
|
+
"target": undefined,
|
|
150
|
+
"capture": false,
|
|
151
|
+
"passive": false
|
|
152
|
+
}, {
|
|
153
|
+
"name": "itemSelected",
|
|
154
|
+
"method": "onItemSelected",
|
|
155
|
+
"target": undefined,
|
|
156
|
+
"capture": false,
|
|
157
|
+
"passive": false
|
|
158
|
+
}, {
|
|
159
|
+
"name": "keydown",
|
|
160
|
+
"method": "onKeyDown",
|
|
161
|
+
"target": undefined,
|
|
162
|
+
"capture": false,
|
|
163
|
+
"passive": false
|
|
164
|
+
}];
|
|
165
|
+
}
|
|
163
166
|
}
|
|
164
167
|
function isItem(value) {
|
|
165
168
|
return (typeof value == "object" &&
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class SmoothlySkeleton {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.widths = ["8rem", "9rem", "10rem"];
|
|
@@ -15,114 +15,120 @@ export class SmoothlySkeleton {
|
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "smoothly-skeleton"; }
|
|
17
17
|
static get encapsulation() { return "scoped"; }
|
|
18
|
-
static get originalStyleUrls() {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"original": "string",
|
|
46
|
-
"resolved": "string",
|
|
47
|
-
"references": {}
|
|
48
|
-
},
|
|
49
|
-
"required": false,
|
|
50
|
-
"optional": false,
|
|
51
|
-
"docs": {
|
|
52
|
-
"tags": [],
|
|
53
|
-
"text": ""
|
|
54
|
-
},
|
|
55
|
-
"attribute": "width",
|
|
56
|
-
"reflect": false
|
|
57
|
-
},
|
|
58
|
-
"color": {
|
|
59
|
-
"type": "string",
|
|
60
|
-
"mutable": false,
|
|
61
|
-
"complexType": {
|
|
62
|
-
"original": "string",
|
|
63
|
-
"resolved": "string",
|
|
64
|
-
"references": {}
|
|
65
|
-
},
|
|
66
|
-
"required": false,
|
|
67
|
-
"optional": false,
|
|
68
|
-
"docs": {
|
|
69
|
-
"tags": [],
|
|
70
|
-
"text": ""
|
|
71
|
-
},
|
|
72
|
-
"attribute": "color",
|
|
73
|
-
"reflect": false
|
|
74
|
-
},
|
|
75
|
-
"period": {
|
|
76
|
-
"type": "number",
|
|
77
|
-
"mutable": false,
|
|
78
|
-
"complexType": {
|
|
79
|
-
"original": "number",
|
|
80
|
-
"resolved": "number",
|
|
81
|
-
"references": {}
|
|
82
|
-
},
|
|
83
|
-
"required": false,
|
|
84
|
-
"optional": false,
|
|
85
|
-
"docs": {
|
|
86
|
-
"tags": [],
|
|
87
|
-
"text": ""
|
|
18
|
+
static get originalStyleUrls() {
|
|
19
|
+
return {
|
|
20
|
+
"$": ["style.css"]
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
static get styleUrls() {
|
|
24
|
+
return {
|
|
25
|
+
"$": ["style.css"]
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
static get properties() {
|
|
29
|
+
return {
|
|
30
|
+
"widths": {
|
|
31
|
+
"type": "unknown",
|
|
32
|
+
"mutable": false,
|
|
33
|
+
"complexType": {
|
|
34
|
+
"original": "string[]",
|
|
35
|
+
"resolved": "string[]",
|
|
36
|
+
"references": {}
|
|
37
|
+
},
|
|
38
|
+
"required": false,
|
|
39
|
+
"optional": false,
|
|
40
|
+
"docs": {
|
|
41
|
+
"tags": [],
|
|
42
|
+
"text": ""
|
|
43
|
+
},
|
|
44
|
+
"defaultValue": "[\"8rem\", \"9rem\", \"10rem\"]"
|
|
88
45
|
},
|
|
89
|
-
"
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
"
|
|
46
|
+
"width": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"mutable": true,
|
|
49
|
+
"complexType": {
|
|
50
|
+
"original": "string",
|
|
51
|
+
"resolved": "string",
|
|
52
|
+
"references": {}
|
|
53
|
+
},
|
|
54
|
+
"required": false,
|
|
55
|
+
"optional": false,
|
|
56
|
+
"docs": {
|
|
57
|
+
"tags": [],
|
|
58
|
+
"text": ""
|
|
59
|
+
},
|
|
60
|
+
"attribute": "width",
|
|
61
|
+
"reflect": false
|
|
99
62
|
},
|
|
100
|
-
"
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
"
|
|
104
|
-
|
|
63
|
+
"color": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"mutable": false,
|
|
66
|
+
"complexType": {
|
|
67
|
+
"original": "string",
|
|
68
|
+
"resolved": "string",
|
|
69
|
+
"references": {}
|
|
70
|
+
},
|
|
71
|
+
"required": false,
|
|
72
|
+
"optional": false,
|
|
73
|
+
"docs": {
|
|
74
|
+
"tags": [],
|
|
75
|
+
"text": ""
|
|
76
|
+
},
|
|
77
|
+
"attribute": "color",
|
|
78
|
+
"reflect": false
|
|
105
79
|
},
|
|
106
|
-
"
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"
|
|
115
|
-
"
|
|
80
|
+
"period": {
|
|
81
|
+
"type": "number",
|
|
82
|
+
"mutable": false,
|
|
83
|
+
"complexType": {
|
|
84
|
+
"original": "number",
|
|
85
|
+
"resolved": "number",
|
|
86
|
+
"references": {}
|
|
87
|
+
},
|
|
88
|
+
"required": false,
|
|
89
|
+
"optional": false,
|
|
90
|
+
"docs": {
|
|
91
|
+
"tags": [],
|
|
92
|
+
"text": ""
|
|
93
|
+
},
|
|
94
|
+
"attribute": "period",
|
|
95
|
+
"reflect": false
|
|
116
96
|
},
|
|
117
|
-
"
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
"
|
|
121
|
-
|
|
97
|
+
"distance": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"mutable": false,
|
|
100
|
+
"complexType": {
|
|
101
|
+
"original": "string",
|
|
102
|
+
"resolved": "string",
|
|
103
|
+
"references": {}
|
|
104
|
+
},
|
|
105
|
+
"required": false,
|
|
106
|
+
"optional": false,
|
|
107
|
+
"docs": {
|
|
108
|
+
"tags": [],
|
|
109
|
+
"text": ""
|
|
110
|
+
},
|
|
111
|
+
"attribute": "distance",
|
|
112
|
+
"reflect": false
|
|
122
113
|
},
|
|
123
|
-
"
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
114
|
+
"align": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"mutable": false,
|
|
117
|
+
"complexType": {
|
|
118
|
+
"original": "\"left\" | \"center\" | \"right\"",
|
|
119
|
+
"resolved": "\"center\" | \"left\" | \"right\"",
|
|
120
|
+
"references": {}
|
|
121
|
+
},
|
|
122
|
+
"required": false,
|
|
123
|
+
"optional": false,
|
|
124
|
+
"docs": {
|
|
125
|
+
"tags": [],
|
|
126
|
+
"text": ""
|
|
127
|
+
},
|
|
128
|
+
"attribute": "align",
|
|
129
|
+
"reflect": true,
|
|
130
|
+
"defaultValue": "\"left\""
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
}
|
|
128
134
|
}
|