smoothly 0.3.5 → 0.3.7

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.
Files changed (103) hide show
  1. package/dist/cjs/{index-3efe2a41.js → index-3fb97927.js} +467 -269
  2. package/dist/cjs/{index-2a011313.js → index-7b75b331.js} +1 -1
  3. package/dist/cjs/index.cjs.js +2 -2
  4. package/dist/cjs/loader.cjs.js +3 -3
  5. package/dist/cjs/smoothly-accordion_53.cjs.entry.js +68 -26
  6. package/dist/cjs/smoothly-google-font.cjs.entry.js +1 -1
  7. package/dist/cjs/smoothly-radio-group.cjs.entry.js +1 -1
  8. package/dist/cjs/smoothly-reorder.cjs.entry.js +1 -1
  9. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +1 -1
  10. package/dist/cjs/smoothly-trigger-source.cjs.entry.js +1 -1
  11. package/dist/cjs/smoothly.cjs.js +3 -3
  12. package/dist/collection/collection-manifest.json +2 -2
  13. package/dist/collection/components/App.js +38 -46
  14. package/dist/collection/components/accordion/index.js +65 -55
  15. package/dist/collection/components/accordion-item/index.js +133 -131
  16. package/dist/collection/components/app/index.js +37 -32
  17. package/dist/collection/components/app-demo/index.js +39 -68
  18. package/dist/collection/components/backtotop/index.js +73 -66
  19. package/dist/collection/components/button/index.js +144 -141
  20. package/dist/collection/components/calendar/index.js +277 -268
  21. package/dist/collection/components/checkbox/index.js +120 -110
  22. package/dist/collection/components/dialog/index.js +97 -93
  23. package/dist/collection/components/dialog-demo/index.js +2 -3
  24. package/dist/collection/components/display/index.js +108 -102
  25. package/dist/collection/components/display-amount/index.js +68 -63
  26. package/dist/collection/components/display-date-time/index.js +35 -30
  27. package/dist/collection/components/display-demo/index.js +23 -129
  28. package/dist/collection/components/frame/index.js +134 -124
  29. package/dist/collection/components/google-font/index.js +26 -24
  30. package/dist/collection/components/icon/index.js +116 -107
  31. package/dist/collection/components/icon-demo/index.js +11 -7
  32. package/dist/collection/components/input/index.js +364 -355
  33. package/dist/collection/components/input-date/index.js +165 -156
  34. package/dist/collection/components/input-date-range/index.js +220 -213
  35. package/dist/collection/components/input-demo/index.js +2 -87
  36. package/dist/collection/components/input-month/index.js +65 -57
  37. package/dist/collection/components/item/index.js +101 -87
  38. package/dist/collection/components/menu-options/index.js +287 -275
  39. package/dist/collection/components/notification/index.js +74 -63
  40. package/dist/collection/components/notifier/index.js +31 -23
  41. package/dist/collection/components/option/index.js +227 -223
  42. package/dist/collection/components/picker/index.js +404 -397
  43. package/dist/collection/components/popup/index.js +73 -69
  44. package/dist/collection/components/quiet/index.js +33 -28
  45. package/dist/collection/components/radio/index.js +98 -91
  46. package/dist/collection/components/radio-button/index.js +92 -83
  47. package/dist/collection/components/radio-button/item/index.js +91 -66
  48. package/dist/collection/components/radio-button/item/style.css +9 -15
  49. package/dist/collection/components/radio-group/index.js +33 -27
  50. package/dist/collection/components/reorder/index.js +28 -23
  51. package/dist/collection/components/room/index.js +73 -71
  52. package/dist/collection/components/select/index.js +82 -75
  53. package/dist/collection/components/select-demo/index.js +24 -42
  54. package/dist/collection/components/selector/index.js +71 -68
  55. package/dist/collection/components/skeleton/index.js +112 -106
  56. package/dist/collection/components/spinner/index.js +50 -46
  57. package/dist/collection/components/submit/index.js +174 -163
  58. package/dist/collection/components/svg/index.js +65 -60
  59. package/dist/collection/components/tab/index.js +84 -75
  60. package/dist/collection/components/tab-switch/index.js +32 -23
  61. package/dist/collection/components/table/cell/index.js +12 -9
  62. package/dist/collection/components/table/demo/index.js +13 -59
  63. package/dist/collection/components/table/expandable/cell/index.js +100 -95
  64. package/dist/collection/components/table/expandable/row/index.js +85 -79
  65. package/dist/collection/components/table/header/index.js +33 -28
  66. package/dist/collection/components/table/index.js +44 -36
  67. package/dist/collection/components/table/row/index.js +26 -20
  68. package/dist/collection/components/trigger/index.js +174 -166
  69. package/dist/collection/components/trigger-sink/index.js +73 -65
  70. package/dist/collection/components/trigger-source/index.js +71 -63
  71. package/dist/collection/components/tuple/index.js +19 -17
  72. package/dist/collection/components/urlencoded/index.js +22 -20
  73. package/dist/collection/model/Listenable.js +4 -2
  74. package/dist/custom-elements/index.js +67 -25
  75. package/dist/esm/{index-1d438ba2.js → index-3b463176.js} +1 -1
  76. package/dist/esm/{index-4d9efff8.js → index-fcf8bdd3.js} +467 -269
  77. package/dist/esm/index.js +2 -2
  78. package/dist/esm/loader.js +3 -3
  79. package/dist/esm/polyfills/css-shim.js +1 -1
  80. package/dist/esm/smoothly-accordion_53.entry.js +68 -26
  81. package/dist/esm/smoothly-google-font.entry.js +1 -1
  82. package/dist/esm/smoothly-radio-group.entry.js +1 -1
  83. package/dist/esm/smoothly-reorder.entry.js +1 -1
  84. package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
  85. package/dist/esm/smoothly-trigger-source.entry.js +1 -1
  86. package/dist/esm/smoothly.js +3 -3
  87. package/dist/smoothly/index.esm.js +1 -1
  88. package/dist/smoothly/{p-d5d4832d.entry.js → p-0833f25c.entry.js} +1 -1
  89. package/dist/smoothly/{p-919ae3e8.entry.js → p-2bf8c660.entry.js} +1 -1
  90. package/dist/smoothly/{p-8e4e941e.entry.js → p-3bd18eea.entry.js} +1 -1
  91. package/dist/smoothly/{p-9bc77fba.entry.js → p-a1c137fc.entry.js} +1 -1
  92. package/dist/smoothly/p-af26b4ed.entry.js +1 -0
  93. package/dist/smoothly/p-af90d05a.js +2 -0
  94. package/dist/smoothly/{p-76e88859.js → p-e5191036.js} +1 -1
  95. package/dist/smoothly/{p-7a5eda51.entry.js → p-f67259c5.entry.js} +1 -1
  96. package/dist/smoothly/smoothly.esm.js +1 -1
  97. package/dist/types/components/radio-button/item/index.d.ts +2 -0
  98. package/dist/types/components.d.ts +3 -1
  99. package/dist/types/stencil-public-runtime.d.ts +15 -4
  100. package/loader/package.json +1 -0
  101. package/package.json +6 -6
  102. package/dist/smoothly/p-191ee4b8.js +0 -2
  103. package/dist/smoothly/p-78b676aa.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import { Component, Element, Event, h, Host, Listen, Method, Prop, State, Watch } from "@stencil/core";
1
+ import { h, Host } from "@stencil/core";
2
2
  export class SmoothlyMenuOptions {
3
3
  constructor() {
4
4
  this.optionElements = [];
@@ -97,301 +97,313 @@ export class SmoothlyMenuOptions {
97
97
  return (h(Host, { style: { "--max-menu-height": this.maxMenuHeight } }, this.filteredOptions.length > 0 ? (this.filteredOptions.map((option, index) => (h("smoothly-option", { style: this.optionStyle, toggle: this.toggle, ref: el => {
98
98
  index == 0 && (this.firstOptionsElement = el !== null && el !== void 0 ? el : this.firstOptionsElement);
99
99
  el && (this.optionElements[index] = el);
100
- }, checked: option.checked, value: option.value, name: option.name, divider: option.divider, "data-highlight": this.highlightIndex == index }, option.hint ? h("div", { slot: "hint" }, option.hint) : undefined)))) : this.mutable ? (h("smoothly-option", { style: this.optionStyle, value: this.keyword, name: this.keyword, "data-highlight": 0, new: true },
101
- h("div", { slot: "left" },
102
- h("smoothly-icon", { name: "square-outline", size: "small" }),
103
- " ",
104
- this.newOptionLabel))) : (h("div", null, this.emptyMenuLabel))));
100
+ }, checked: option.checked, value: option.value, name: option.name, divider: option.divider, "data-highlight": this.highlightIndex == index }, option.hint ? h("div", { slot: "hint" }, option.hint) : undefined)))) : this.mutable ? (h("smoothly-option", { style: this.optionStyle, value: this.keyword, name: this.keyword, "data-highlight": 0, new: true }, h("div", { slot: "left" }, h("smoothly-icon", { name: "square-outline", size: "small" }), " ", this.newOptionLabel))) : (h("div", null, this.emptyMenuLabel))));
105
101
  }
106
102
  static get is() { return "smoothly-menu-options"; }
107
103
  static get encapsulation() { return "shadow"; }
108
- static get originalStyleUrls() { return {
109
- "$": ["style.scss"]
110
- }; }
111
- static get styleUrls() { return {
112
- "$": ["style.css"]
113
- }; }
114
- static get properties() { return {
115
- "toggle": {
116
- "type": "boolean",
117
- "mutable": false,
118
- "complexType": {
119
- "original": "boolean",
120
- "resolved": "boolean",
121
- "references": {}
122
- },
123
- "required": false,
124
- "optional": false,
125
- "docs": {
126
- "tags": [],
127
- "text": ""
128
- },
129
- "attribute": "toggle",
130
- "reflect": false,
131
- "defaultValue": "false"
132
- },
133
- "emptyMenuLabel": {
134
- "type": "string",
135
- "mutable": true,
136
- "complexType": {
137
- "original": "string",
138
- "resolved": "string",
139
- "references": {}
140
- },
141
- "required": false,
142
- "optional": false,
143
- "docs": {
144
- "tags": [],
145
- "text": ""
146
- },
147
- "attribute": "empty-menu-label",
148
- "reflect": false,
149
- "defaultValue": "\"No Options\""
150
- },
151
- "newOptionLabel": {
152
- "type": "string",
153
- "mutable": false,
154
- "complexType": {
155
- "original": "string",
156
- "resolved": "string",
157
- "references": {}
158
- },
159
- "required": false,
160
- "optional": false,
161
- "docs": {
162
- "tags": [],
163
- "text": ""
164
- },
165
- "attribute": "new-option-label",
166
- "reflect": false,
167
- "defaultValue": "\"Add:\""
168
- },
169
- "maxMenuHeight": {
170
- "type": "string",
171
- "mutable": false,
172
- "complexType": {
173
- "original": "\"inherit\"",
174
- "resolved": "\"inherit\"",
175
- "references": {}
104
+ static get originalStyleUrls() {
105
+ return {
106
+ "$": ["style.scss"]
107
+ };
108
+ }
109
+ static get styleUrls() {
110
+ return {
111
+ "$": ["style.css"]
112
+ };
113
+ }
114
+ static get properties() {
115
+ return {
116
+ "toggle": {
117
+ "type": "boolean",
118
+ "mutable": false,
119
+ "complexType": {
120
+ "original": "boolean",
121
+ "resolved": "boolean",
122
+ "references": {}
123
+ },
124
+ "required": false,
125
+ "optional": false,
126
+ "docs": {
127
+ "tags": [],
128
+ "text": ""
129
+ },
130
+ "attribute": "toggle",
131
+ "reflect": false,
132
+ "defaultValue": "false"
176
133
  },
177
- "required": false,
178
- "optional": false,
179
- "docs": {
180
- "tags": [],
181
- "text": ""
134
+ "emptyMenuLabel": {
135
+ "type": "string",
136
+ "mutable": true,
137
+ "complexType": {
138
+ "original": "string",
139
+ "resolved": "string",
140
+ "references": {}
141
+ },
142
+ "required": false,
143
+ "optional": false,
144
+ "docs": {
145
+ "tags": [],
146
+ "text": ""
147
+ },
148
+ "attribute": "empty-menu-label",
149
+ "reflect": false,
150
+ "defaultValue": "\"No Options\""
182
151
  },
183
- "attribute": "max-menu-height",
184
- "reflect": false
185
- },
186
- "order": {
187
- "type": "boolean",
188
- "mutable": false,
189
- "complexType": {
190
- "original": "boolean",
191
- "resolved": "boolean",
192
- "references": {}
152
+ "newOptionLabel": {
153
+ "type": "string",
154
+ "mutable": false,
155
+ "complexType": {
156
+ "original": "string",
157
+ "resolved": "string",
158
+ "references": {}
159
+ },
160
+ "required": false,
161
+ "optional": false,
162
+ "docs": {
163
+ "tags": [],
164
+ "text": ""
165
+ },
166
+ "attribute": "new-option-label",
167
+ "reflect": false,
168
+ "defaultValue": "\"Add:\""
193
169
  },
194
- "required": false,
195
- "optional": false,
196
- "docs": {
197
- "tags": [],
198
- "text": ""
170
+ "maxMenuHeight": {
171
+ "type": "string",
172
+ "mutable": false,
173
+ "complexType": {
174
+ "original": "\"inherit\"",
175
+ "resolved": "\"inherit\"",
176
+ "references": {}
177
+ },
178
+ "required": false,
179
+ "optional": false,
180
+ "docs": {
181
+ "tags": [],
182
+ "text": ""
183
+ },
184
+ "attribute": "max-menu-height",
185
+ "reflect": false
199
186
  },
200
- "attribute": "order",
201
- "reflect": false,
202
- "defaultValue": "false"
203
- },
204
- "optionStyle": {
205
- "type": "any",
206
- "mutable": false,
207
- "complexType": {
208
- "original": "any",
209
- "resolved": "any",
210
- "references": {}
187
+ "order": {
188
+ "type": "boolean",
189
+ "mutable": false,
190
+ "complexType": {
191
+ "original": "boolean",
192
+ "resolved": "boolean",
193
+ "references": {}
194
+ },
195
+ "required": false,
196
+ "optional": false,
197
+ "docs": {
198
+ "tags": [],
199
+ "text": ""
200
+ },
201
+ "attribute": "order",
202
+ "reflect": false,
203
+ "defaultValue": "false"
211
204
  },
212
- "required": false,
213
- "optional": false,
214
- "docs": {
215
- "tags": [],
216
- "text": ""
205
+ "optionStyle": {
206
+ "type": "any",
207
+ "mutable": false,
208
+ "complexType": {
209
+ "original": "any",
210
+ "resolved": "any",
211
+ "references": {}
212
+ },
213
+ "required": false,
214
+ "optional": false,
215
+ "docs": {
216
+ "tags": [],
217
+ "text": ""
218
+ },
219
+ "attribute": "option-style",
220
+ "reflect": false
217
221
  },
218
- "attribute": "option-style",
219
- "reflect": false
220
- },
221
- "options": {
222
- "type": "unknown",
223
- "mutable": true,
224
- "complexType": {
225
- "original": "Option[]",
226
- "resolved": "Option[]",
227
- "references": {
228
- "Option": {
229
- "location": "import",
230
- "path": "../../model"
222
+ "options": {
223
+ "type": "unknown",
224
+ "mutable": true,
225
+ "complexType": {
226
+ "original": "Option[]",
227
+ "resolved": "Option[]",
228
+ "references": {
229
+ "Option": {
230
+ "location": "import",
231
+ "path": "../../model"
232
+ }
231
233
  }
232
- }
233
- },
234
- "required": false,
235
- "optional": false,
236
- "docs": {
237
- "tags": [],
238
- "text": ""
239
- },
240
- "defaultValue": "[]"
241
- },
242
- "resetHighlightOnOptionsChange": {
243
- "type": "boolean",
244
- "mutable": true,
245
- "complexType": {
246
- "original": "boolean",
247
- "resolved": "boolean",
248
- "references": {}
249
- },
250
- "required": false,
251
- "optional": false,
252
- "docs": {
253
- "tags": [],
254
- "text": ""
255
- },
256
- "attribute": "reset-highlight-on-options-change",
257
- "reflect": false,
258
- "defaultValue": "true"
259
- },
260
- "mutable": {
261
- "type": "boolean",
262
- "mutable": false,
263
- "complexType": {
264
- "original": "boolean",
265
- "resolved": "boolean",
266
- "references": {}
267
- },
268
- "required": false,
269
- "optional": false,
270
- "docs": {
271
- "tags": [],
272
- "text": ""
273
- },
274
- "attribute": "mutable",
275
- "reflect": false,
276
- "defaultValue": "false"
277
- }
278
- }; }
279
- static get states() { return {
280
- "filteredOptions": {},
281
- "highlightIndex": {},
282
- "keyword": {}
283
- }; }
284
- static get events() { return [{
285
- "method": "menuEmpty",
286
- "name": "menuEmpty",
287
- "bubbles": true,
288
- "cancelable": true,
289
- "composed": true,
290
- "docs": {
291
- "tags": [],
292
- "text": ""
234
+ },
235
+ "required": false,
236
+ "optional": false,
237
+ "docs": {
238
+ "tags": [],
239
+ "text": ""
240
+ },
241
+ "defaultValue": "[]"
293
242
  },
294
- "complexType": {
295
- "original": "boolean",
296
- "resolved": "boolean",
297
- "references": {}
298
- }
299
- }]; }
300
- static get methods() { return {
301
- "moveHighlight": {
302
- "complexType": {
303
- "signature": "(step: number) => Promise<void>",
304
- "parameters": [{
305
- "tags": [],
306
- "text": ""
307
- }],
308
- "references": {
309
- "Promise": {
310
- "location": "global"
311
- }
243
+ "resetHighlightOnOptionsChange": {
244
+ "type": "boolean",
245
+ "mutable": true,
246
+ "complexType": {
247
+ "original": "boolean",
248
+ "resolved": "boolean",
249
+ "references": {}
250
+ },
251
+ "required": false,
252
+ "optional": false,
253
+ "docs": {
254
+ "tags": [],
255
+ "text": ""
312
256
  },
313
- "return": "Promise<void>"
257
+ "attribute": "reset-highlight-on-options-change",
258
+ "reflect": false,
259
+ "defaultValue": "true"
314
260
  },
315
- "docs": {
316
- "text": "",
317
- "tags": []
261
+ "mutable": {
262
+ "type": "boolean",
263
+ "mutable": false,
264
+ "complexType": {
265
+ "original": "boolean",
266
+ "resolved": "boolean",
267
+ "references": {}
268
+ },
269
+ "required": false,
270
+ "optional": false,
271
+ "docs": {
272
+ "tags": [],
273
+ "text": ""
274
+ },
275
+ "attribute": "mutable",
276
+ "reflect": false,
277
+ "defaultValue": "false"
318
278
  }
319
- },
320
- "setHighlight": {
321
- "complexType": {
322
- "signature": "(newIndex: number | string, scrollToHighlight?: boolean) => Promise<void>",
323
- "parameters": [{
324
- "tags": [],
325
- "text": ""
326
- }, {
327
- "tags": [],
328
- "text": ""
329
- }],
330
- "references": {
331
- "Promise": {
332
- "location": "global"
333
- }
279
+ };
280
+ }
281
+ static get states() {
282
+ return {
283
+ "filteredOptions": {},
284
+ "highlightIndex": {},
285
+ "keyword": {}
286
+ };
287
+ }
288
+ static get events() {
289
+ return [{
290
+ "method": "menuEmpty",
291
+ "name": "menuEmpty",
292
+ "bubbles": true,
293
+ "cancelable": true,
294
+ "composed": true,
295
+ "docs": {
296
+ "tags": [],
297
+ "text": ""
334
298
  },
335
- "return": "Promise<void>"
299
+ "complexType": {
300
+ "original": "boolean",
301
+ "resolved": "boolean",
302
+ "references": {}
303
+ }
304
+ }];
305
+ }
306
+ static get methods() {
307
+ return {
308
+ "moveHighlight": {
309
+ "complexType": {
310
+ "signature": "(step: number) => Promise<void>",
311
+ "parameters": [{
312
+ "tags": [],
313
+ "text": ""
314
+ }],
315
+ "references": {
316
+ "Promise": {
317
+ "location": "global"
318
+ }
319
+ },
320
+ "return": "Promise<void>"
321
+ },
322
+ "docs": {
323
+ "text": "",
324
+ "tags": []
325
+ }
336
326
  },
337
- "docs": {
338
- "text": "",
339
- "tags": []
340
- }
341
- },
342
- "getHighlighted": {
343
- "complexType": {
344
- "signature": "() => Promise<Option | undefined>",
345
- "parameters": [],
346
- "references": {
347
- "Promise": {
348
- "location": "global"
327
+ "setHighlight": {
328
+ "complexType": {
329
+ "signature": "(newIndex: number | string, scrollToHighlight?: boolean) => Promise<void>",
330
+ "parameters": [{
331
+ "tags": [],
332
+ "text": ""
333
+ }, {
334
+ "tags": [],
335
+ "text": ""
336
+ }],
337
+ "references": {
338
+ "Promise": {
339
+ "location": "global"
340
+ }
349
341
  },
350
- "Option": {
351
- "location": "import",
352
- "path": "../../model"
353
- }
342
+ "return": "Promise<void>"
354
343
  },
355
- "return": "Promise<Option | undefined>"
344
+ "docs": {
345
+ "text": "",
346
+ "tags": []
347
+ }
356
348
  },
357
- "docs": {
358
- "text": "",
359
- "tags": []
360
- }
361
- },
362
- "filterOptions": {
363
- "complexType": {
364
- "signature": "(keyword: string, excludeValues?: string[]) => Promise<void>",
365
- "parameters": [{
366
- "tags": [],
367
- "text": ""
368
- }, {
369
- "tags": [],
370
- "text": ""
371
- }],
372
- "references": {
373
- "Promise": {
374
- "location": "global"
375
- }
349
+ "getHighlighted": {
350
+ "complexType": {
351
+ "signature": "() => Promise<Option | undefined>",
352
+ "parameters": [],
353
+ "references": {
354
+ "Promise": {
355
+ "location": "global"
356
+ },
357
+ "Option": {
358
+ "location": "import",
359
+ "path": "../../model"
360
+ }
361
+ },
362
+ "return": "Promise<Option | undefined>"
376
363
  },
377
- "return": "Promise<void>"
364
+ "docs": {
365
+ "text": "",
366
+ "tags": []
367
+ }
378
368
  },
379
- "docs": {
380
- "text": "",
381
- "tags": []
369
+ "filterOptions": {
370
+ "complexType": {
371
+ "signature": "(keyword: string, excludeValues?: string[]) => Promise<void>",
372
+ "parameters": [{
373
+ "tags": [],
374
+ "text": ""
375
+ }, {
376
+ "tags": [],
377
+ "text": ""
378
+ }],
379
+ "references": {
380
+ "Promise": {
381
+ "location": "global"
382
+ }
383
+ },
384
+ "return": "Promise<void>"
385
+ },
386
+ "docs": {
387
+ "text": "",
388
+ "tags": []
389
+ }
382
390
  }
383
- }
384
- }; }
391
+ };
392
+ }
385
393
  static get elementRef() { return "element"; }
386
- static get watchers() { return [{
387
- "propName": "options",
388
- "methodName": "optionsChangeHandler"
389
- }]; }
390
- static get listeners() { return [{
391
- "name": "optionHover",
392
- "method": "optionHoverHandler",
393
- "target": undefined,
394
- "capture": false,
395
- "passive": false
396
- }]; }
394
+ static get watchers() {
395
+ return [{
396
+ "propName": "options",
397
+ "methodName": "optionsChangeHandler"
398
+ }];
399
+ }
400
+ static get listeners() {
401
+ return [{
402
+ "name": "optionHover",
403
+ "method": "optionHoverHandler",
404
+ "target": undefined,
405
+ "capture": false,
406
+ "passive": false
407
+ }];
408
+ }
397
409
  }