smoothly 0.3.5 → 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 +11 -14
- 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-78b676aa.entry.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
export class SmoothlyAccordion {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.items = [];
|
|
@@ -39,59 +39,69 @@ export class SmoothlyAccordion {
|
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "smoothly-accordion"; }
|
|
41
41
|
static get encapsulation() { return "scoped"; }
|
|
42
|
-
static get originalStyleUrls() {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
42
|
+
static get originalStyleUrls() {
|
|
43
|
+
return {
|
|
44
|
+
"$": ["style.css"]
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
static get styleUrls() {
|
|
48
|
+
return {
|
|
49
|
+
"$": ["style.css"]
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
static get properties() {
|
|
53
|
+
return {
|
|
54
|
+
"value": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"mutable": true,
|
|
57
|
+
"complexType": {
|
|
58
|
+
"original": "string",
|
|
59
|
+
"resolved": "string | undefined",
|
|
60
|
+
"references": {}
|
|
61
|
+
},
|
|
62
|
+
"required": false,
|
|
63
|
+
"optional": true,
|
|
64
|
+
"docs": {
|
|
65
|
+
"tags": [],
|
|
66
|
+
"text": ""
|
|
67
|
+
},
|
|
68
|
+
"attribute": "value",
|
|
69
|
+
"reflect": false
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
}
|
|
67
73
|
static get elementRef() { return "me"; }
|
|
68
|
-
static get watchers() {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
74
|
+
static get watchers() {
|
|
75
|
+
return [{
|
|
76
|
+
"propName": "value",
|
|
77
|
+
"methodName": "valueChanged"
|
|
78
|
+
}];
|
|
79
|
+
}
|
|
80
|
+
static get listeners() {
|
|
81
|
+
return [{
|
|
82
|
+
"name": "smoothlyOpen",
|
|
83
|
+
"method": "handleOpenClose",
|
|
84
|
+
"target": undefined,
|
|
85
|
+
"capture": false,
|
|
86
|
+
"passive": false
|
|
87
|
+
}, {
|
|
88
|
+
"name": "smoothlyClose",
|
|
89
|
+
"method": "handleOpenClose",
|
|
90
|
+
"target": undefined,
|
|
91
|
+
"capture": false,
|
|
92
|
+
"passive": false
|
|
93
|
+
}, {
|
|
94
|
+
"name": "smoothlyAccordionItemDidLoad",
|
|
95
|
+
"method": "onAccordionItemDidLoad",
|
|
96
|
+
"target": undefined,
|
|
97
|
+
"capture": false,
|
|
98
|
+
"passive": false
|
|
99
|
+
}, {
|
|
100
|
+
"name": "smoothlyAccordionItemDidUnload",
|
|
101
|
+
"method": "onAccordionItemDidUnload",
|
|
102
|
+
"target": undefined,
|
|
103
|
+
"capture": false,
|
|
104
|
+
"passive": false
|
|
105
|
+
}];
|
|
106
|
+
}
|
|
97
107
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
export class SmoothlyAccordionItem {
|
|
3
3
|
openChanged(isChecked) {
|
|
4
4
|
this.open = isChecked;
|
|
@@ -28,141 +28,143 @@ export class SmoothlyAccordionItem {
|
|
|
28
28
|
this.smoothlyAccordionItemDidUnload.emit();
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
|
-
return (h("details", { open: this.open },
|
|
32
|
-
h("summary", null,
|
|
33
|
-
this.open ? (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" },
|
|
34
|
-
h("path", { d: "M256 48C141.6 48 48 141.6 48 256s93.6 208 208 208 208-93.6 208-208S370.4 48 256 48zm-42.7 318.9L106.7 260.3l29.9-29.9 76.8 76.8 162.1-162.1 29.9 29.9-192.1 191.9z" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" },
|
|
35
|
-
h("path", { d: "M256 48C141.601 48 48 141.601 48 256s93.601 208 208 208 208-93.601 208-208S370.399 48 256 48zm0 374.399c-91.518 0-166.399-74.882-166.399-166.399S164.482 89.6 256 89.6 422.4 164.482 422.4 256 347.518 422.399 256 422.399z" }))),
|
|
36
|
-
this.name,
|
|
37
|
-
typeof this.brand == "string" ? (h("span", { class: this.brand.toLowerCase() }, this.brand)) : Array.isArray(this.brand) ? (this.brand.map(b => h("span", { class: b.toLowerCase() }, b))) : ([])),
|
|
38
|
-
h("fieldset", { disabled: !this.open, name: this.name },
|
|
39
|
-
h("slot", null))));
|
|
31
|
+
return (h("details", { open: this.open }, h("summary", null, this.open ? (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("path", { d: "M256 48C141.6 48 48 141.6 48 256s93.6 208 208 208 208-93.6 208-208S370.4 48 256 48zm-42.7 318.9L106.7 260.3l29.9-29.9 76.8 76.8 162.1-162.1 29.9 29.9-192.1 191.9z" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("path", { d: "M256 48C141.601 48 48 141.601 48 256s93.601 208 208 208 208-93.601 208-208S370.399 48 256 48zm0 374.399c-91.518 0-166.399-74.882-166.399-166.399S164.482 89.6 256 89.6 422.4 164.482 422.4 256 347.518 422.399 256 422.399z" }))), this.name, typeof this.brand == "string" ? (h("span", { class: this.brand.toLowerCase() }, this.brand)) : Array.isArray(this.brand) ? (this.brand.map(b => h("span", { class: b.toLowerCase() }, b))) : ([])), h("fieldset", { disabled: !this.open, name: this.name }, h("slot", null))));
|
|
40
32
|
}
|
|
41
33
|
static get is() { return "smoothly-accordion-item"; }
|
|
42
34
|
static get encapsulation() { return "scoped"; }
|
|
43
|
-
static get originalStyleUrls() {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"original": "string | string[]",
|
|
72
|
-
"resolved": "string | string[] | undefined",
|
|
73
|
-
"references": {}
|
|
74
|
-
},
|
|
75
|
-
"required": false,
|
|
76
|
-
"optional": true,
|
|
77
|
-
"docs": {
|
|
78
|
-
"tags": [],
|
|
79
|
-
"text": ""
|
|
80
|
-
},
|
|
81
|
-
"attribute": "brand",
|
|
82
|
-
"reflect": false
|
|
83
|
-
},
|
|
84
|
-
"open": {
|
|
85
|
-
"type": "boolean",
|
|
86
|
-
"mutable": true,
|
|
87
|
-
"complexType": {
|
|
88
|
-
"original": "boolean",
|
|
89
|
-
"resolved": "boolean | undefined",
|
|
90
|
-
"references": {}
|
|
91
|
-
},
|
|
92
|
-
"required": false,
|
|
93
|
-
"optional": true,
|
|
94
|
-
"docs": {
|
|
95
|
-
"tags": [],
|
|
96
|
-
"text": ""
|
|
97
|
-
},
|
|
98
|
-
"attribute": "open",
|
|
99
|
-
"reflect": true
|
|
100
|
-
}
|
|
101
|
-
}; }
|
|
102
|
-
static get events() { return [{
|
|
103
|
-
"method": "smoothlyAccordionItemDidLoad",
|
|
104
|
-
"name": "smoothlyAccordionItemDidLoad",
|
|
105
|
-
"bubbles": true,
|
|
106
|
-
"cancelable": true,
|
|
107
|
-
"composed": true,
|
|
108
|
-
"docs": {
|
|
109
|
-
"tags": [],
|
|
110
|
-
"text": ""
|
|
111
|
-
},
|
|
112
|
-
"complexType": {
|
|
113
|
-
"original": "void",
|
|
114
|
-
"resolved": "void",
|
|
115
|
-
"references": {}
|
|
116
|
-
}
|
|
117
|
-
}, {
|
|
118
|
-
"method": "smoothlyAccordionItemDidUnload",
|
|
119
|
-
"name": "smoothlyAccordionItemDidUnload",
|
|
120
|
-
"bubbles": true,
|
|
121
|
-
"cancelable": true,
|
|
122
|
-
"composed": true,
|
|
123
|
-
"docs": {
|
|
124
|
-
"tags": [],
|
|
125
|
-
"text": ""
|
|
126
|
-
},
|
|
127
|
-
"complexType": {
|
|
128
|
-
"original": "void",
|
|
129
|
-
"resolved": "void",
|
|
130
|
-
"references": {}
|
|
131
|
-
}
|
|
132
|
-
}, {
|
|
133
|
-
"method": "smoothlyOpen",
|
|
134
|
-
"name": "smoothlyOpen",
|
|
135
|
-
"bubbles": true,
|
|
136
|
-
"cancelable": true,
|
|
137
|
-
"composed": true,
|
|
138
|
-
"docs": {
|
|
139
|
-
"tags": [],
|
|
140
|
-
"text": ""
|
|
35
|
+
static get originalStyleUrls() {
|
|
36
|
+
return {
|
|
37
|
+
"$": ["style.css"]
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
static get styleUrls() {
|
|
41
|
+
return {
|
|
42
|
+
"$": ["style.css"]
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
static get properties() {
|
|
46
|
+
return {
|
|
47
|
+
"name": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"mutable": false,
|
|
50
|
+
"complexType": {
|
|
51
|
+
"original": "string",
|
|
52
|
+
"resolved": "string",
|
|
53
|
+
"references": {}
|
|
54
|
+
},
|
|
55
|
+
"required": false,
|
|
56
|
+
"optional": false,
|
|
57
|
+
"docs": {
|
|
58
|
+
"tags": [],
|
|
59
|
+
"text": ""
|
|
60
|
+
},
|
|
61
|
+
"attribute": "name",
|
|
62
|
+
"reflect": false
|
|
141
63
|
},
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
64
|
+
"brand": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"mutable": false,
|
|
67
|
+
"complexType": {
|
|
68
|
+
"original": "string | string[]",
|
|
69
|
+
"resolved": "string | string[] | undefined",
|
|
70
|
+
"references": {}
|
|
71
|
+
},
|
|
72
|
+
"required": false,
|
|
73
|
+
"optional": true,
|
|
74
|
+
"docs": {
|
|
75
|
+
"tags": [],
|
|
76
|
+
"text": ""
|
|
77
|
+
},
|
|
78
|
+
"attribute": "brand",
|
|
79
|
+
"reflect": false
|
|
156
80
|
},
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"
|
|
81
|
+
"open": {
|
|
82
|
+
"type": "boolean",
|
|
83
|
+
"mutable": true,
|
|
84
|
+
"complexType": {
|
|
85
|
+
"original": "boolean",
|
|
86
|
+
"resolved": "boolean | undefined",
|
|
87
|
+
"references": {}
|
|
88
|
+
},
|
|
89
|
+
"required": false,
|
|
90
|
+
"optional": true,
|
|
91
|
+
"docs": {
|
|
92
|
+
"tags": [],
|
|
93
|
+
"text": ""
|
|
94
|
+
},
|
|
95
|
+
"attribute": "open",
|
|
96
|
+
"reflect": true
|
|
161
97
|
}
|
|
162
|
-
}
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
static get events() {
|
|
101
|
+
return [{
|
|
102
|
+
"method": "smoothlyAccordionItemDidLoad",
|
|
103
|
+
"name": "smoothlyAccordionItemDidLoad",
|
|
104
|
+
"bubbles": true,
|
|
105
|
+
"cancelable": true,
|
|
106
|
+
"composed": true,
|
|
107
|
+
"docs": {
|
|
108
|
+
"tags": [],
|
|
109
|
+
"text": ""
|
|
110
|
+
},
|
|
111
|
+
"complexType": {
|
|
112
|
+
"original": "void",
|
|
113
|
+
"resolved": "void",
|
|
114
|
+
"references": {}
|
|
115
|
+
}
|
|
116
|
+
}, {
|
|
117
|
+
"method": "smoothlyAccordionItemDidUnload",
|
|
118
|
+
"name": "smoothlyAccordionItemDidUnload",
|
|
119
|
+
"bubbles": true,
|
|
120
|
+
"cancelable": true,
|
|
121
|
+
"composed": true,
|
|
122
|
+
"docs": {
|
|
123
|
+
"tags": [],
|
|
124
|
+
"text": ""
|
|
125
|
+
},
|
|
126
|
+
"complexType": {
|
|
127
|
+
"original": "void",
|
|
128
|
+
"resolved": "void",
|
|
129
|
+
"references": {}
|
|
130
|
+
}
|
|
131
|
+
}, {
|
|
132
|
+
"method": "smoothlyOpen",
|
|
133
|
+
"name": "smoothlyOpen",
|
|
134
|
+
"bubbles": true,
|
|
135
|
+
"cancelable": true,
|
|
136
|
+
"composed": true,
|
|
137
|
+
"docs": {
|
|
138
|
+
"tags": [],
|
|
139
|
+
"text": ""
|
|
140
|
+
},
|
|
141
|
+
"complexType": {
|
|
142
|
+
"original": "{ name: string; open: boolean }",
|
|
143
|
+
"resolved": "{ name: string; open: boolean; }",
|
|
144
|
+
"references": {}
|
|
145
|
+
}
|
|
146
|
+
}, {
|
|
147
|
+
"method": "smoothlyClose",
|
|
148
|
+
"name": "smoothlyClose",
|
|
149
|
+
"bubbles": true,
|
|
150
|
+
"cancelable": true,
|
|
151
|
+
"composed": true,
|
|
152
|
+
"docs": {
|
|
153
|
+
"tags": [],
|
|
154
|
+
"text": ""
|
|
155
|
+
},
|
|
156
|
+
"complexType": {
|
|
157
|
+
"original": "{ name: string; open: boolean }",
|
|
158
|
+
"resolved": "{ name: string; open: boolean; }",
|
|
159
|
+
"references": {}
|
|
160
|
+
}
|
|
161
|
+
}];
|
|
162
|
+
}
|
|
163
163
|
static get elementRef() { return "me"; }
|
|
164
|
-
static get watchers() {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
164
|
+
static get watchers() {
|
|
165
|
+
return [{
|
|
166
|
+
"propName": "open",
|
|
167
|
+
"methodName": "openChanged"
|
|
168
|
+
}];
|
|
169
|
+
}
|
|
168
170
|
}
|
|
@@ -1,38 +1,43 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
export class SmoothlyApp {
|
|
3
3
|
render() {
|
|
4
|
-
return (h("smoothly-notifier", null,
|
|
5
|
-
h("slot", null)));
|
|
4
|
+
return (h("smoothly-notifier", null, h("slot", null)));
|
|
6
5
|
}
|
|
7
6
|
static get is() { return "smoothly-app"; }
|
|
8
|
-
static get originalStyleUrls() {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
7
|
+
static get originalStyleUrls() {
|
|
8
|
+
return {
|
|
9
|
+
"$": ["style.css"]
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
static get styleUrls() {
|
|
13
|
+
return {
|
|
14
|
+
"$": ["style.css"]
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
static get properties() {
|
|
18
|
+
return {
|
|
19
|
+
"color": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"mutable": false,
|
|
22
|
+
"complexType": {
|
|
23
|
+
"original": "Color",
|
|
24
|
+
"resolved": "\"danger\" | \"dark\" | \"default\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\"",
|
|
25
|
+
"references": {
|
|
26
|
+
"Color": {
|
|
27
|
+
"location": "import",
|
|
28
|
+
"path": "../../model"
|
|
29
|
+
}
|
|
25
30
|
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
}
|
|
31
|
+
},
|
|
32
|
+
"required": false,
|
|
33
|
+
"optional": false,
|
|
34
|
+
"docs": {
|
|
35
|
+
"tags": [],
|
|
36
|
+
"text": ""
|
|
37
|
+
},
|
|
38
|
+
"attribute": "color",
|
|
39
|
+
"reflect": false
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
38
43
|
}
|
|
@@ -1,75 +1,46 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
import { redirect } from "../../index";
|
|
3
3
|
import { App } from "../App";
|
|
4
4
|
export class SmoothlyAppDemo {
|
|
5
5
|
render() {
|
|
6
|
-
return (h(App, { label: "Smoothly Demo" },
|
|
7
|
-
|
|
8
|
-
h("
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
h("smoothly-
|
|
23
|
-
h("smoothly-table-demo", null)),
|
|
24
|
-
h("smoothly-room", { path: "select", label: "Select" },
|
|
25
|
-
h("smoothly-select-demo", null)),
|
|
26
|
-
h("smoothly-room", { path: "icon", label: "Icon" },
|
|
27
|
-
h("smoothly-icon-demo", null)),
|
|
28
|
-
h("smoothly-room", { path: "/redirect", label: "Redirect" },
|
|
29
|
-
h("smoothly-button", { style: { "max-width": "300px" }, onClick: () => {
|
|
30
|
-
redirect("/routing/pathParameter1");
|
|
31
|
-
} }, "Internal"),
|
|
32
|
-
h("smoothly-button", { style: { "max-width": "300px" }, onClick: () => {
|
|
33
|
-
redirect("https://google.com");
|
|
34
|
-
} }, "External")),
|
|
35
|
-
h("smoothly-room", { path: /^\/routing\/\w+\/?/, label: "No effect" },
|
|
36
|
-
h("h2", null, "Regex routing")),
|
|
37
|
-
h("smoothly-room", { path: "old", label: "Old", to: "select" }),
|
|
38
|
-
h("span", { slot: "header", style: { width: "100%", maxWidth: "500px" } },
|
|
39
|
-
h("smoothly-picker", { label: "All Animals Selected", style: { minWidth: "100px" }, labelSetting: "hide", "empty-menu-label": "Sorry, we're out of options.", "max-height": "58px", multiple: true, "select-none-name": "Select All", options: [
|
|
40
|
-
{ name: "Big Dog", value: "dog", aliases: ["WOFF"] },
|
|
41
|
-
{ name: "Cat Stevens", value: "cat", aliases: ["moew"], hint: "moew 🐈" },
|
|
42
|
-
{ name: "Noble Pig", value: "pig", hint: "🐷" },
|
|
43
|
-
{ name: "Turtle Wax", value: "turtle" },
|
|
44
|
-
{ name: "Spider Man", value: "spider" },
|
|
45
|
-
{ name: "Phoenix Order Long Wooord", value: "phoenix" },
|
|
46
|
-
{ name: "Horse Back", value: "horse" },
|
|
47
|
-
{ name: "Unicorn Horn", value: "unicorn" },
|
|
48
|
-
{ name: "Talking Parrot Parrot", value: "parrot" },
|
|
49
|
-
{ name: "Hidden Dragon", value: "dragon" },
|
|
50
|
-
{ name: "Scary Kraken", value: "kraken" },
|
|
51
|
-
] })),
|
|
52
|
-
h("smoothly-trigger", { slot: "header", type: "link", name: "logout" },
|
|
53
|
-
h("smoothly-icon", { toolTip: "Log out", name: "log-out", size: "medium" }))));
|
|
6
|
+
return (h(App, { label: "Smoothly Demo" }, h("a", { slot: "nav-start", href: "display" }, "Display"), h("a", { slot: "nav-start", href: "https://google.com" }, "External"), h("smoothly-room", { path: "" }, h("smoothly-input", { type: "text" }, "Default"), h("div", { style: { padding: "1em", maxWidth: "12em" } }, h("smoothly-button", { fill: "solid", color: "danger", link: "https://google.com" }, "open"), h("smoothly-button", { fill: "solid", color: "danger", link: "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf", download: true }, "download"), h("smoothly-button", { fill: "solid", color: "danger", onClick: () => alert("clicked") }, "action"), h("smoothly-button", { type: "link", fill: "clear", color: "danger", onClick: () => alert("clicked") }, "action link"))), h("smoothly-room", { path: "input", label: "Input" }, h("smoothly-input-demo", null)), h("smoothly-room", { path: "dialog", label: "Dialog" }, h("smoothly-dialog-demo", null)), h("smoothly-room", { path: "display", label: "Display", icon: "eye-outline" }, h("smoothly-display-demo", null)), h("smoothly-room", { path: "table", label: "Table" }, h("smoothly-table-demo", null)), h("smoothly-room", { path: "select", label: "Select" }, h("smoothly-select-demo", null)), h("smoothly-room", { path: "icon", label: "Icon" }, h("smoothly-icon-demo", null)), h("smoothly-room", { path: "/redirect", label: "Redirect" }, h("smoothly-button", { style: { "max-width": "300px" }, onClick: () => {
|
|
7
|
+
redirect("/routing/pathParameter1");
|
|
8
|
+
} }, "Internal"), h("smoothly-button", { style: { "max-width": "300px" }, onClick: () => {
|
|
9
|
+
redirect("https://google.com");
|
|
10
|
+
} }, "External")), h("smoothly-room", { path: /^\/routing\/\w+\/?/, label: "No effect" }, h("h2", null, "Regex routing")), h("smoothly-room", { path: "old", label: "Old", to: "select" }), h("span", { slot: "header", style: { width: "100%", maxWidth: "500px" } }, h("smoothly-picker", { label: "All Animals Selected", style: { minWidth: "100px" }, labelSetting: "hide", "empty-menu-label": "Sorry, we're out of options.", "max-height": "58px", multiple: true, "select-none-name": "Select All", options: [
|
|
11
|
+
{ name: "Big Dog", value: "dog", aliases: ["WOFF"] },
|
|
12
|
+
{ name: "Cat Stevens", value: "cat", aliases: ["moew"], hint: "moew 🐈" },
|
|
13
|
+
{ name: "Noble Pig", value: "pig", hint: "🐷" },
|
|
14
|
+
{ name: "Turtle Wax", value: "turtle" },
|
|
15
|
+
{ name: "Spider Man", value: "spider" },
|
|
16
|
+
{ name: "Phoenix Order Long Wooord", value: "phoenix" },
|
|
17
|
+
{ name: "Horse Back", value: "horse" },
|
|
18
|
+
{ name: "Unicorn Horn", value: "unicorn" },
|
|
19
|
+
{ name: "Talking Parrot Parrot", value: "parrot" },
|
|
20
|
+
{ name: "Hidden Dragon", value: "dragon" },
|
|
21
|
+
{ name: "Scary Kraken", value: "kraken" },
|
|
22
|
+
] })), h("smoothly-trigger", { slot: "header", type: "link", name: "logout" }, h("smoothly-icon", { toolTip: "Log out", name: "log-out", size: "medium" }))));
|
|
54
23
|
}
|
|
55
24
|
static get is() { return "smoothly-app-demo"; }
|
|
56
|
-
static get properties() {
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
25
|
+
static get properties() {
|
|
26
|
+
return {
|
|
27
|
+
"baseUrl": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"mutable": false,
|
|
30
|
+
"complexType": {
|
|
31
|
+
"original": "string",
|
|
32
|
+
"resolved": "string",
|
|
33
|
+
"references": {}
|
|
34
|
+
},
|
|
35
|
+
"required": false,
|
|
36
|
+
"optional": false,
|
|
37
|
+
"docs": {
|
|
38
|
+
"tags": [],
|
|
39
|
+
"text": ""
|
|
40
|
+
},
|
|
41
|
+
"attribute": "base-url",
|
|
42
|
+
"reflect": false
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
75
46
|
}
|