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
|
import { Date, DateRange } from "isoly";
|
|
3
3
|
export class InputDateRange {
|
|
4
4
|
constructor() {
|
|
@@ -22,236 +22,243 @@ export class InputDateRange {
|
|
|
22
22
|
render() {
|
|
23
23
|
var _a;
|
|
24
24
|
return [
|
|
25
|
-
h("section", { onClick: () => (this.open = !this.open) },
|
|
26
|
-
h("smoothly-input", { type: "date", value: this.start, showLabel: this.showLabel, onSmoothlyInput: e => (this.start = e.detail.value) }, "from"),
|
|
27
|
-
h("span", null, "\u2013"),
|
|
28
|
-
h("smoothly-input", { type: "date", showLabel: this.showLabel, value: this.end, onSmoothlyInput: e => (this.end = e.detail.value) }, "to")),
|
|
25
|
+
h("section", { onClick: () => (this.open = !this.open) }, h("smoothly-input", { type: "date", value: this.start, showLabel: this.showLabel, onSmoothlyInput: e => (this.start = e.detail.value) }, "from"), h("span", null, "\u2013"), h("smoothly-input", { type: "date", showLabel: this.showLabel, value: this.end, onSmoothlyInput: e => (this.end = e.detail.value) }, "to")),
|
|
29
26
|
this.open ? h("div", { onClick: () => (this.open = false) }) : [],
|
|
30
|
-
this.open ? (h("nav", null,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
event.stopPropagation();
|
|
35
|
-
}, start: this.start, end: this.end, max: this.max, min: this.min }))) : ([]),
|
|
27
|
+
this.open ? (h("nav", null, h("div", { class: "arrow" }), h("smoothly-calendar", { doubleInput: true, value: (_a = this.value) !== null && _a !== void 0 ? _a : Date.now(), onValueChanged: event => {
|
|
28
|
+
this.value = event.detail;
|
|
29
|
+
event.stopPropagation();
|
|
30
|
+
}, start: this.start, end: this.end, max: this.max, min: this.min }))) : ([]),
|
|
36
31
|
];
|
|
37
32
|
}
|
|
38
33
|
static get is() { return "smoothly-input-date-range"; }
|
|
39
34
|
static get encapsulation() { return "scoped"; }
|
|
40
|
-
static get originalStyleUrls() {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
35
|
+
static get originalStyleUrls() {
|
|
36
|
+
return {
|
|
37
|
+
"$": ["style.scss"]
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
static get styleUrls() {
|
|
41
|
+
return {
|
|
42
|
+
"$": ["style.css"]
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
static get properties() {
|
|
46
|
+
return {
|
|
47
|
+
"value": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"mutable": true,
|
|
50
|
+
"complexType": {
|
|
51
|
+
"original": "Date",
|
|
52
|
+
"resolved": "string | undefined",
|
|
53
|
+
"references": {
|
|
54
|
+
"Date": {
|
|
55
|
+
"location": "import",
|
|
56
|
+
"path": "isoly"
|
|
57
|
+
}
|
|
57
58
|
}
|
|
58
|
-
}
|
|
59
|
+
},
|
|
60
|
+
"required": false,
|
|
61
|
+
"optional": true,
|
|
62
|
+
"docs": {
|
|
63
|
+
"tags": [],
|
|
64
|
+
"text": ""
|
|
65
|
+
},
|
|
66
|
+
"attribute": "value",
|
|
67
|
+
"reflect": false
|
|
59
68
|
},
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"mutable": true,
|
|
72
|
-
"complexType": {
|
|
73
|
-
"original": "Date",
|
|
74
|
-
"resolved": "string | undefined",
|
|
75
|
-
"references": {
|
|
76
|
-
"Date": {
|
|
77
|
-
"location": "import",
|
|
78
|
-
"path": "isoly"
|
|
69
|
+
"start": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"mutable": true,
|
|
72
|
+
"complexType": {
|
|
73
|
+
"original": "Date",
|
|
74
|
+
"resolved": "string | undefined",
|
|
75
|
+
"references": {
|
|
76
|
+
"Date": {
|
|
77
|
+
"location": "import",
|
|
78
|
+
"path": "isoly"
|
|
79
|
+
}
|
|
79
80
|
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
81
|
+
},
|
|
82
|
+
"required": false,
|
|
83
|
+
"optional": true,
|
|
84
|
+
"docs": {
|
|
85
|
+
"tags": [],
|
|
86
|
+
"text": ""
|
|
87
|
+
},
|
|
88
|
+
"attribute": "start",
|
|
89
|
+
"reflect": false
|
|
87
90
|
},
|
|
88
|
-
"
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
"location": "import",
|
|
100
|
-
"path": "isoly"
|
|
91
|
+
"end": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"mutable": true,
|
|
94
|
+
"complexType": {
|
|
95
|
+
"original": "Date",
|
|
96
|
+
"resolved": "string | undefined",
|
|
97
|
+
"references": {
|
|
98
|
+
"Date": {
|
|
99
|
+
"location": "import",
|
|
100
|
+
"path": "isoly"
|
|
101
|
+
}
|
|
101
102
|
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
103
|
+
},
|
|
104
|
+
"required": false,
|
|
105
|
+
"optional": true,
|
|
106
|
+
"docs": {
|
|
107
|
+
"tags": [],
|
|
108
|
+
"text": ""
|
|
109
|
+
},
|
|
110
|
+
"attribute": "end",
|
|
111
|
+
"reflect": false
|
|
109
112
|
},
|
|
110
|
-
"
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
"location": "import",
|
|
122
|
-
"path": "isoly"
|
|
113
|
+
"max": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"mutable": true,
|
|
116
|
+
"complexType": {
|
|
117
|
+
"original": "Date",
|
|
118
|
+
"resolved": "string",
|
|
119
|
+
"references": {
|
|
120
|
+
"Date": {
|
|
121
|
+
"location": "import",
|
|
122
|
+
"path": "isoly"
|
|
123
|
+
}
|
|
123
124
|
}
|
|
124
|
-
}
|
|
125
|
+
},
|
|
126
|
+
"required": false,
|
|
127
|
+
"optional": false,
|
|
128
|
+
"docs": {
|
|
129
|
+
"tags": [],
|
|
130
|
+
"text": ""
|
|
131
|
+
},
|
|
132
|
+
"attribute": "max",
|
|
133
|
+
"reflect": false
|
|
125
134
|
},
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
"
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
"mutable": true,
|
|
138
|
-
"complexType": {
|
|
139
|
-
"original": "Date",
|
|
140
|
-
"resolved": "string",
|
|
141
|
-
"references": {
|
|
142
|
-
"Date": {
|
|
143
|
-
"location": "import",
|
|
144
|
-
"path": "isoly"
|
|
135
|
+
"min": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"mutable": true,
|
|
138
|
+
"complexType": {
|
|
139
|
+
"original": "Date",
|
|
140
|
+
"resolved": "string",
|
|
141
|
+
"references": {
|
|
142
|
+
"Date": {
|
|
143
|
+
"location": "import",
|
|
144
|
+
"path": "isoly"
|
|
145
|
+
}
|
|
145
146
|
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
147
|
+
},
|
|
148
|
+
"required": false,
|
|
149
|
+
"optional": false,
|
|
150
|
+
"docs": {
|
|
151
|
+
"tags": [],
|
|
152
|
+
"text": ""
|
|
153
|
+
},
|
|
154
|
+
"attribute": "min",
|
|
155
|
+
"reflect": false
|
|
153
156
|
},
|
|
154
|
-
"
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
"
|
|
163
|
-
"
|
|
157
|
+
"open": {
|
|
158
|
+
"type": "boolean",
|
|
159
|
+
"mutable": true,
|
|
160
|
+
"complexType": {
|
|
161
|
+
"original": "boolean",
|
|
162
|
+
"resolved": "boolean",
|
|
163
|
+
"references": {}
|
|
164
|
+
},
|
|
165
|
+
"required": false,
|
|
166
|
+
"optional": false,
|
|
167
|
+
"docs": {
|
|
168
|
+
"tags": [],
|
|
169
|
+
"text": ""
|
|
170
|
+
},
|
|
171
|
+
"attribute": "open",
|
|
172
|
+
"reflect": false
|
|
164
173
|
},
|
|
165
|
-
"
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
"
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
"original": "Date",
|
|
205
|
-
"resolved": "string",
|
|
206
|
-
"references": {
|
|
207
|
-
"Date": {
|
|
208
|
-
"location": "import",
|
|
209
|
-
"path": "isoly"
|
|
174
|
+
"showLabel": {
|
|
175
|
+
"type": "boolean",
|
|
176
|
+
"mutable": false,
|
|
177
|
+
"complexType": {
|
|
178
|
+
"original": "boolean",
|
|
179
|
+
"resolved": "boolean",
|
|
180
|
+
"references": {}
|
|
181
|
+
},
|
|
182
|
+
"required": false,
|
|
183
|
+
"optional": false,
|
|
184
|
+
"docs": {
|
|
185
|
+
"tags": [],
|
|
186
|
+
"text": ""
|
|
187
|
+
},
|
|
188
|
+
"attribute": "show-label",
|
|
189
|
+
"reflect": true,
|
|
190
|
+
"defaultValue": "true"
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
static get events() {
|
|
195
|
+
return [{
|
|
196
|
+
"method": "valueChanged",
|
|
197
|
+
"name": "valueChanged",
|
|
198
|
+
"bubbles": true,
|
|
199
|
+
"cancelable": true,
|
|
200
|
+
"composed": true,
|
|
201
|
+
"docs": {
|
|
202
|
+
"tags": [],
|
|
203
|
+
"text": ""
|
|
204
|
+
},
|
|
205
|
+
"complexType": {
|
|
206
|
+
"original": "Date",
|
|
207
|
+
"resolved": "string",
|
|
208
|
+
"references": {
|
|
209
|
+
"Date": {
|
|
210
|
+
"location": "import",
|
|
211
|
+
"path": "isoly"
|
|
212
|
+
}
|
|
210
213
|
}
|
|
211
214
|
}
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
215
|
+
}, {
|
|
216
|
+
"method": "dateRangeSelected",
|
|
217
|
+
"name": "dateRangeSelected",
|
|
218
|
+
"bubbles": true,
|
|
219
|
+
"cancelable": true,
|
|
220
|
+
"composed": true,
|
|
221
|
+
"docs": {
|
|
222
|
+
"tags": [],
|
|
223
|
+
"text": ""
|
|
224
|
+
},
|
|
225
|
+
"complexType": {
|
|
226
|
+
"original": "{ start: Date; end: Date }",
|
|
227
|
+
"resolved": "{ start: string; end: string; }",
|
|
228
|
+
"references": {
|
|
229
|
+
"Date": {
|
|
230
|
+
"location": "import",
|
|
231
|
+
"path": "isoly"
|
|
232
|
+
}
|
|
230
233
|
}
|
|
231
234
|
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
static get watchers() {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
235
|
+
}];
|
|
236
|
+
}
|
|
237
|
+
static get watchers() {
|
|
238
|
+
return [{
|
|
239
|
+
"propName": "value",
|
|
240
|
+
"methodName": "onValue"
|
|
241
|
+
}];
|
|
242
|
+
}
|
|
243
|
+
static get listeners() {
|
|
244
|
+
return [{
|
|
245
|
+
"name": "startChanged",
|
|
246
|
+
"method": "onStartChanged",
|
|
247
|
+
"target": undefined,
|
|
248
|
+
"capture": false,
|
|
249
|
+
"passive": false
|
|
250
|
+
}, {
|
|
251
|
+
"name": "endChanged",
|
|
252
|
+
"method": "onEndChanged",
|
|
253
|
+
"target": undefined,
|
|
254
|
+
"capture": false,
|
|
255
|
+
"passive": false
|
|
256
|
+
}, {
|
|
257
|
+
"name": "dateRangeSet",
|
|
258
|
+
"method": "onDateRangeSet",
|
|
259
|
+
"target": undefined,
|
|
260
|
+
"capture": false,
|
|
261
|
+
"passive": false
|
|
262
|
+
}];
|
|
263
|
+
}
|
|
257
264
|
}
|
|
@@ -1,93 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
export class SmoothlyInputDemo {
|
|
3
3
|
render() {
|
|
4
4
|
return [
|
|
5
|
-
h("form", { action: "done", style: { position: "relative" } },
|
|
6
|
-
h("header", null,
|
|
7
|
-
h("h5", null, "Form")),
|
|
8
|
-
h("main", null,
|
|
9
|
-
h("fieldset", null,
|
|
10
|
-
h("h2", null, "Smoothly Iput"),
|
|
11
|
-
h("h3", null, "Card"),
|
|
12
|
-
h("smoothly-input", { type: "text", name: "name", readonly: true, value: "Readonly", onSmoothlyBlur: () => console.log("smoothly blur") }, "Readonly"),
|
|
13
|
-
h("smoothly-input", { type: "text", name: "name.last", onSmoothlyChange: e => console.log("smoothly change event") }, "Name"),
|
|
14
|
-
h("smoothly-input", { type: "text", name: "name.first", onSmoothlyChange: e => console.log("smoothly change event") }, "Name"),
|
|
15
|
-
h("smoothly-input-date", null),
|
|
16
|
-
h("smoothly-input", { type: "date", name: "date" }, "Date"),
|
|
17
|
-
h("smoothly-input", { type: "date-time", name: "date-time" }, "Date-Time"),
|
|
18
|
-
h("smoothly-input", { type: "divisor", name: "divisor" }, "Divisor"),
|
|
19
|
-
h("smoothly-input", { type: "text", name: "street", value: "street" }, "Street"),
|
|
20
|
-
h("smoothly-input", { type: "card-number", name: "card" }, "Card #"),
|
|
21
|
-
h("smoothly-input", { type: "card-expires", name: "card", style: { width: "calc(60% - 2px)" } }, "Expires"),
|
|
22
|
-
h("smoothly-input", { type: "card-csc", name: "card", style: { width: "calc(40% - 1px)", borderLeft: "none" } }, "CVV/CVC"),
|
|
23
|
-
h("h3", null, "Contact"),
|
|
24
|
-
h("smoothly-input", { type: "postal-code", name: "zip", style: { width: "calc(60% - 2px)" } }, "ZipCode"),
|
|
25
|
-
h("smoothly-input", { type: "text", name: "testing" }, "Texttest"),
|
|
26
|
-
h("smoothly-input", { type: "password", name: "password" }, "Password"),
|
|
27
|
-
h("smoothly-input", { type: "email", name: "email" }, "Email"),
|
|
28
|
-
h("smoothly-input", { type: "price", currency: "SEK", name: "price" }, "Price"),
|
|
29
|
-
h("smoothly-input", { type: "percent", name: "percent" }, "Percent"),
|
|
30
|
-
h("smoothly-input", { type: "phone", name: "phone" }, "Phone"),
|
|
31
|
-
h("smoothly-input-date", null, "Date")),
|
|
32
|
-
h("fieldset", null,
|
|
33
|
-
h("h2", null, "Smoothly Radio"),
|
|
34
|
-
h("h3", null, "Deselectable Radio List with button"),
|
|
35
|
-
h("smoothly-radio-button", { deselectable: true, decoration: "button" },
|
|
36
|
-
h("smoothly-radio-button-item", { value: { some: "content", yes: "sir" } },
|
|
37
|
-
h("span", null, "Option 1"),
|
|
38
|
-
h("span", { slot: "expansion" }, "Some description.")),
|
|
39
|
-
h("smoothly-radio-button-item", { value: { some: "thing", yes: "miss" } },
|
|
40
|
-
h("span", null, "Option 2"),
|
|
41
|
-
h("span", { slot: "expansion" }, "Some other description.")),
|
|
42
|
-
h("smoothly-radio-button-item", { value: { some: "one", yes: "kid" } },
|
|
43
|
-
h("span", null, "Option 3"))),
|
|
44
|
-
h("h3", null, "Radio List with button"),
|
|
45
|
-
h("smoothly-radio-button", { decoration: "button" },
|
|
46
|
-
h("smoothly-radio-button-item", { value: { some: "content", yes: "sir" } },
|
|
47
|
-
h("span", null, "Option 1"),
|
|
48
|
-
h("span", { slot: "expansion" }, "Some description.")),
|
|
49
|
-
h("smoothly-radio-button-item", { value: { some: "thing", yes: "miss" } },
|
|
50
|
-
h("span", null, "Option 2"),
|
|
51
|
-
h("span", { slot: "expansion" }, "Some other description.")),
|
|
52
|
-
h("smoothly-radio-button-item", { value: { some: "one", yes: "kid" } },
|
|
53
|
-
h("span", null, "Option 3"))),
|
|
54
|
-
h("h3", null, "Radio List without button"),
|
|
55
|
-
h("smoothly-radio-button", null,
|
|
56
|
-
h("smoothly-radio-button-item", { value: { some: "content", yes: "sir" }, selected: true },
|
|
57
|
-
h("span", null, "Option 1"),
|
|
58
|
-
h("span", { slot: "expansion" }, "Some description.")),
|
|
59
|
-
h("smoothly-radio-button-item", { value: { some: "thing", yes: "miss" } },
|
|
60
|
-
h("span", null, "Option 2"),
|
|
61
|
-
h("span", { slot: "expansion" }, "Some other description.")),
|
|
62
|
-
h("smoothly-radio-button-item", { value: { some: "one", yes: "kid" } },
|
|
63
|
-
h("span", null, "Option 3"))),
|
|
64
|
-
h("smoothly-radio", { name: "option", value: "1" }, "option 1"),
|
|
65
|
-
h("smoothly-radio", { name: "option", value: "2", checked: true }, "option 2"),
|
|
66
|
-
h("smoothly-radio", { name: "option", value: "3" }, "option 3")),
|
|
67
|
-
h("fieldset", null,
|
|
68
|
-
h("h2", null, "Smoothly Accordion"),
|
|
69
|
-
h("smoothly-accordion", null,
|
|
70
|
-
h("smoothly-accordion-item", { name: "A", open: true },
|
|
71
|
-
h("smoothly-radio", { name: "a", value: "1" }, "a 1"),
|
|
72
|
-
h("smoothly-radio", { name: "a", value: "2", checked: true }, "a 2"),
|
|
73
|
-
h("smoothly-radio", { name: "a", value: "3" }, "a 3")),
|
|
74
|
-
h("smoothly-accordion-item", { name: "B" },
|
|
75
|
-
h("smoothly-radio", { name: "b", value: "1" }, "b 1"),
|
|
76
|
-
h("smoothly-radio", { name: "b", value: "2" }, "b 2"),
|
|
77
|
-
h("smoothly-radio", { name: "b", value: "3" }, "b 3")))),
|
|
78
|
-
h("fieldset", null,
|
|
79
|
-
h("h2", null, "Smoothly checkbox"),
|
|
80
|
-
h("smoothly-checkbox", { selectAll: true, intermediate: true }),
|
|
81
|
-
h("smoothly-checkbox", null),
|
|
82
|
-
h("smoothly-checkbox", { disabled: true })),
|
|
83
|
-
h("fieldset", null,
|
|
84
|
-
h("h2", null, "Smoothly addresses"),
|
|
85
|
-
h("smoothly-address-display", { value: '{ "countryCode": "SE", "street": "Korkstigen 2", "zipCode": "654 31", "city": "Fejksala" }' }),
|
|
86
|
-
h("smoothly-address", { editable: false, value: '{ "countryCode": "SE", "street": "Stigv\u00E4gen 34", "zipCode": "123 45", "city": "Hobbiton" }' }),
|
|
87
|
-
h("smoothly-addresses", { allowed: "billing delivery visit", editable: true, value: '{ "billing": { "countryCode": "SE", "street": "Rundslingan 3", "zipCode": "987 65", "city": "Klotby" }, "visit": { "countryCode": "SE", "street": "G\u00E5ngbanan 34", "zipCode": "543 21", "city": "Trasktr\u00E4sk" } }' }))),
|
|
88
|
-
h("footer", null,
|
|
89
|
-
h("smoothly-submit", { expand: "block", onSubmit: (e) => alert(e), color: "success" }, "Submit"),
|
|
90
|
-
h("smoothly-trigger", { expand: "block", color: "success", onClick: (e) => console.log(e.detail) }, "Trigger"))),
|
|
5
|
+
h("form", { action: "done", style: { position: "relative" } }, h("header", null, h("h5", null, "Form")), h("main", null, h("fieldset", null, h("h2", null, "Smoothly Iput"), h("h3", null, "Card"), h("smoothly-input", { type: "text", name: "name", readonly: true, value: "Readonly", onSmoothlyBlur: () => console.log("smoothly blur") }, "Readonly"), h("smoothly-input", { type: "text", name: "name.last", onSmoothlyChange: e => console.log("smoothly change event") }, "Name"), h("smoothly-input", { type: "text", name: "name.first", onSmoothlyChange: e => console.log("smoothly change event") }, "Name"), h("smoothly-input-date", null), h("smoothly-input", { type: "date", name: "date" }, "Date"), h("smoothly-input", { type: "date-time", name: "date-time" }, "Date-Time"), h("smoothly-input", { type: "divisor", name: "divisor" }, "Divisor"), h("smoothly-input", { type: "text", name: "street", value: "street" }, "Street"), h("smoothly-input", { type: "card-number", name: "card" }, "Card #"), h("smoothly-input", { type: "card-expires", name: "card", style: { width: "calc(60% - 2px)" } }, "Expires"), h("smoothly-input", { type: "card-csc", name: "card", style: { width: "calc(40% - 1px)", borderLeft: "none" } }, "CVV/CVC"), h("h3", null, "Contact"), h("smoothly-input", { type: "postal-code", name: "zip", style: { width: "calc(60% - 2px)" } }, "ZipCode"), h("smoothly-input", { type: "text", name: "testing" }, "Texttest"), h("smoothly-input", { type: "password", name: "password" }, "Password"), h("smoothly-input", { type: "email", name: "email" }, "Email"), h("smoothly-input", { type: "price", currency: "SEK", name: "price" }, "Price"), h("smoothly-input", { type: "percent", name: "percent" }, "Percent"), h("smoothly-input", { type: "phone", name: "phone" }, "Phone"), h("smoothly-input-date", null, "Date")), h("fieldset", null, h("h2", null, "Smoothly Radio"), h("h3", null, "Deselectable Radio List with button"), h("smoothly-radio-button", { deselectable: true, decoration: "button" }, h("smoothly-radio-button-item", { value: { some: "content", yes: "sir" } }, h("span", null, "Option 1"), h("span", { slot: "expansion" }, "Some description.")), h("smoothly-radio-button-item", { value: { some: "thing", yes: "miss" } }, h("span", null, "Option 2"), h("span", { slot: "expansion" }, "Some other description.")), h("smoothly-radio-button-item", { value: { some: "one", yes: "kid" } }, h("span", null, "Option 3"))), h("h3", null, "Radio List with button"), h("smoothly-radio-button", { decoration: "button" }, h("smoothly-radio-button-item", { value: { some: "content", yes: "sir" } }, h("span", null, "Option 1"), h("span", { slot: "expansion" }, "Some description.")), h("smoothly-radio-button-item", { value: { some: "thing", yes: "miss" } }, h("span", null, "Option 2"), h("span", { slot: "expansion" }, "Some other description.")), h("smoothly-radio-button-item", { value: { some: "one", yes: "kid" } }, h("span", null, "Option 3"))), h("h3", null, "Radio List ", h("b", null, "without button")), h("smoothly-radio-button", null, h("smoothly-radio-button-item", { value: { some: "content", yes: "sir" }, selected: true, color: "secondary" }, h("span", null, "Option 1"), h("span", { slot: "expansion" }, "Some description.")), h("smoothly-radio-button-item", { value: { some: "thing", yes: "miss" }, color: "secondary" }, h("span", null, "Option 2"), h("span", { slot: "expansion" }, "Some other description.")), h("smoothly-radio-button-item", { value: { some: "one", yes: "kid" }, color: "secondary" }, h("span", null, "Option 3"))), h("smoothly-radio", { name: "option", value: "1" }, "option 1"), h("smoothly-radio", { name: "option", value: "2", checked: true }, "option 2"), h("smoothly-radio", { name: "option", value: "3" }, "option 3")), h("fieldset", null, h("h2", null, "Smoothly Accordion"), h("smoothly-accordion", null, h("smoothly-accordion-item", { name: "A", open: true }, h("smoothly-radio", { name: "a", value: "1" }, "a 1"), h("smoothly-radio", { name: "a", value: "2", checked: true }, "a 2"), h("smoothly-radio", { name: "a", value: "3" }, "a 3")), h("smoothly-accordion-item", { name: "B" }, h("smoothly-radio", { name: "b", value: "1" }, "b 1"), h("smoothly-radio", { name: "b", value: "2" }, "b 2"), h("smoothly-radio", { name: "b", value: "3" }, "b 3")))), h("fieldset", null, h("h2", null, "Smoothly checkbox"), h("smoothly-checkbox", { selectAll: true, intermediate: true }), h("smoothly-checkbox", null), h("smoothly-checkbox", { disabled: true })), h("fieldset", null, h("h2", null, "Smoothly addresses"), h("smoothly-address-display", { value: '{ "countryCode": "SE", "street": "Korkstigen 2", "zipCode": "654 31", "city": "Fejksala" }' }), h("smoothly-address", { editable: false, value: '{ "countryCode": "SE", "street": "Stigv\u00E4gen 34", "zipCode": "123 45", "city": "Hobbiton" }' }), h("smoothly-addresses", { allowed: "billing delivery visit", editable: true, value: '{ "billing": { "countryCode": "SE", "street": "Rundslingan 3", "zipCode": "987 65", "city": "Klotby" }, "visit": { "countryCode": "SE", "street": "G\u00E5ngbanan 34", "zipCode": "543 21", "city": "Trasktr\u00E4sk" } }' }))), h("footer", null, h("smoothly-submit", { expand: "block", onSubmit: (e) => alert(e), color: "success" }, "Submit"), h("smoothly-trigger", { expand: "block", color: "success", onClick: (e) => console.log(e.detail) }, "Trigger"))),
|
|
91
6
|
h("smoothly-backtotop", null),
|
|
92
7
|
];
|
|
93
8
|
}
|