smoothly 0.2.8 → 0.2.11

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 (70) hide show
  1. package/dist/cjs/{Trigger-cf376531.js → Trigger-3443997e.js} +92 -55
  2. package/dist/cjs/{Notice-839702d8.js → index-2a011313.js} +381 -5
  3. package/dist/cjs/{index-1c61bdd3.js → index-3efe2a41.js} +18 -11
  4. package/dist/cjs/index.cjs.js +11 -374
  5. package/dist/cjs/loader.cjs.js +3 -3
  6. package/dist/cjs/{smoothly-accordion_51.cjs.entry.js → smoothly-accordion_50.cjs.entry.js} +522 -13123
  7. package/dist/cjs/smoothly-google-font.cjs.entry.js +1 -1
  8. package/dist/cjs/smoothly-radio-group.cjs.entry.js +1 -1
  9. package/dist/cjs/smoothly-reorder.cjs.entry.js +1 -1
  10. package/dist/cjs/smoothly-svg.cjs.entry.js +41 -0
  11. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +2 -2
  12. package/dist/cjs/smoothly-trigger-source.cjs.entry.js +2 -2
  13. package/dist/cjs/smoothly.cjs.js +3 -3
  14. package/dist/collection/collection-manifest.json +1 -1
  15. package/dist/collection/components/App.js +9 -4
  16. package/dist/collection/components/app-demo/index.js +10 -0
  17. package/dist/collection/components/display/index.js +27 -2
  18. package/dist/collection/components/display-date-time/index.js +3 -0
  19. package/dist/collection/components/display-demo/index.js +16 -12
  20. package/dist/collection/components/input-date/index.js +18 -1
  21. package/dist/collection/components/input-demo/index.js +3 -1
  22. package/dist/collection/components/room/index.js +7 -3
  23. package/dist/collection/components/submit/Data.js +12 -0
  24. package/dist/collection/components/submit/index.js +10 -4
  25. package/dist/collection/index.js +1 -1
  26. package/dist/collection/{demo → model}/Listenable.js +11 -6
  27. package/dist/custom-elements/index.js +566 -13090
  28. package/dist/esm/{Trigger-365408f0.js → Trigger-327e506e.js} +92 -55
  29. package/dist/esm/{Notice-608b552c.js → index-1d438ba2.js} +381 -6
  30. package/dist/esm/{index-a3737440.js → index-4d9efff8.js} +18 -11
  31. package/dist/esm/index.js +5 -375
  32. package/dist/esm/loader.js +3 -3
  33. package/dist/esm/{smoothly-accordion_51.entry.js → smoothly-accordion_50.entry.js} +522 -13122
  34. package/dist/esm/smoothly-google-font.entry.js +1 -1
  35. package/dist/esm/smoothly-radio-group.entry.js +1 -1
  36. package/dist/esm/smoothly-reorder.entry.js +1 -1
  37. package/dist/esm/smoothly-svg.entry.js +37 -0
  38. package/dist/esm/smoothly-trigger-sink.entry.js +2 -2
  39. package/dist/esm/smoothly-trigger-source.entry.js +2 -2
  40. package/dist/esm/smoothly.js +3 -3
  41. package/dist/smoothly/index.esm.js +1 -1
  42. package/dist/smoothly/p-191ee4b8.js +2 -0
  43. package/dist/smoothly/p-76e88859.js +1 -0
  44. package/dist/smoothly/{p-0215b4da.entry.js → p-7a5eda51.entry.js} +1 -1
  45. package/dist/smoothly/p-8aefcb54.entry.js +1 -0
  46. package/dist/smoothly/{p-eec1c703.entry.js → p-8e4e941e.entry.js} +1 -1
  47. package/dist/smoothly/{p-993534fa.entry.js → p-919ae3e8.entry.js} +1 -1
  48. package/dist/smoothly/p-956089d5.entry.js +1 -0
  49. package/dist/smoothly/{p-6f009ac9.entry.js → p-9bc77fba.entry.js} +1 -1
  50. package/dist/smoothly/p-b1c579b3.js +1 -0
  51. package/dist/smoothly/{p-8ae38136.entry.js → p-d5d4832d.entry.js} +1 -1
  52. package/dist/smoothly/smoothly.esm.js +1 -1
  53. package/dist/types/components/App.d.ts +1 -0
  54. package/dist/types/components/display/index.d.ts +2 -1
  55. package/dist/types/components/display-date-time/index.d.ts +3 -1
  56. package/dist/types/components/input-date/index.d.ts +1 -0
  57. package/dist/types/components/room/index.d.ts +1 -1
  58. package/dist/types/components/submit/Data.d.ts +7 -0
  59. package/dist/types/components/submit/index.d.ts +2 -3
  60. package/dist/types/components.d.ts +153 -44
  61. package/dist/types/index.d.ts +1 -1
  62. package/dist/types/model/Listenable.d.ts +10 -0
  63. package/package.json +14 -37
  64. package/dist/collection/demo/State.js +0 -40
  65. package/dist/smoothly/p-0cba3e3d.js +0 -1
  66. package/dist/smoothly/p-6ca0d36c.js +0 -1
  67. package/dist/smoothly/p-7a30d9b8.js +0 -1
  68. package/dist/smoothly/p-9d825b5a.entry.js +0 -1
  69. package/dist/types/demo/Listenable.d.ts +0 -6
  70. package/dist/types/demo/State.d.ts +0 -8
@@ -21,10 +21,10 @@ const plt = {
21
21
  ce: (eventName, opts) => new CustomEvent(eventName, opts),
22
22
  };
23
23
  const promiseResolve = (v) => Promise.resolve(v);
24
- const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
24
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
25
25
  try {
26
26
  new CSSStyleSheet();
27
- return typeof new CSSStyleSheet().replace === 'function';
27
+ return typeof new CSSStyleSheet().replaceSync === 'function';
28
28
  }
29
29
  catch (e) { }
30
30
  return false;
@@ -78,9 +78,14 @@ const uniqueTime = (key, measureText) => {
78
78
  const rootAppliedStyles = new WeakMap();
79
79
  const registerStyle = (scopeId, cssText, allowCS) => {
80
80
  let style = styles.get(scopeId);
81
- if (supportsConstructibleStylesheets && allowCS) {
81
+ if (supportsConstructableStylesheets && allowCS) {
82
82
  style = (style || new CSSStyleSheet());
83
- style.replace(cssText);
83
+ if (typeof style === 'string') {
84
+ style = cssText;
85
+ }
86
+ else {
87
+ style.replaceSync(cssText);
88
+ }
84
89
  }
85
90
  else {
86
91
  style = cssText;
@@ -89,7 +94,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
89
94
  };
90
95
  const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
91
96
  let scopeId = getScopeId(cmpMeta);
92
- let style = styles.get(scopeId);
97
+ const style = styles.get(scopeId);
93
98
  // if an element is NOT connected then getRootNode() will return the wrong root node
94
99
  // so the fallback is to always use the document for the root node in those cases
95
100
  styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
@@ -179,7 +184,7 @@ const h = (nodeName, vnodeData, ...children) => {
179
184
  let slotName = null;
180
185
  let simple = false;
181
186
  let lastSimple = false;
182
- let vNodeChildren = [];
187
+ const vNodeChildren = [];
183
188
  const walk = (c) => {
184
189
  for (let i = 0; i < c.length; i++) {
185
190
  child = c[i];
@@ -388,7 +393,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
388
393
  if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
389
394
  try {
390
395
  if (!elm.tagName.includes('-')) {
391
- let n = newValue == null ? '' : newValue;
396
+ const n = newValue == null ? '' : newValue;
392
397
  // Workaround for Safari, moving the <input> caret when re-assigning the same valued
393
398
  if (memberName === 'list') {
394
399
  isProp = false;
@@ -465,7 +470,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
465
470
  };
466
471
  const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
467
472
  // tslint:disable-next-line: prefer-const
468
- let newVNode = newParentVNode.$children$[childIndex];
473
+ const newVNode = newParentVNode.$children$[childIndex];
469
474
  let i = 0;
470
475
  let elm;
471
476
  let childNode;
@@ -798,7 +803,7 @@ const patch = (oldVNode, newVNode) => {
798
803
  };
799
804
  const updateFallbackSlotVisibility = (elm) => {
800
805
  // tslint:disable-next-line: prefer-const
801
- let childNodes = elm.childNodes;
806
+ const childNodes = elm.childNodes;
802
807
  let childNode;
803
808
  let i;
804
809
  let ilen;
@@ -851,8 +856,8 @@ const relocateSlotContent = (elm) => {
851
856
  let relocateNodeData;
852
857
  let j;
853
858
  let i = 0;
854
- let childNodes = elm.childNodes;
855
- let ilen = childNodes.length;
859
+ const childNodes = elm.childNodes;
860
+ const ilen = childNodes.length;
856
861
  for (; i < ilen; i++) {
857
862
  childNode = childNodes[i];
858
863
  if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
@@ -1732,7 +1737,9 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1732
1737
  if (module) {
1733
1738
  return module[exportName];
1734
1739
  }
1740
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1735
1741
  return import(
1742
+ /* @vite-ignore */
1736
1743
  /* webpackInclude: /\.entry\.js$/ */
1737
1744
  /* webpackExclude: /\.system\.entry\.js$/ */
1738
1745
  /* webpackMode: "lazy" */
package/dist/esm/index.js CHANGED
@@ -1,8 +1,8 @@
1
- export { A as App, N as Notice } from './Notice-608b552c.js';
2
- import { I as Identifier } from './Trigger-365408f0.js';
3
- export { M as Message, T as Trigger } from './Trigger-365408f0.js';
1
+ export { A as App, C as Cosmetic, N as Notice, r as redirect } from './index-1d438ba2.js';
2
+ import { I as Identifier } from './Trigger-327e506e.js';
3
+ export { M as Message, T as Trigger } from './Trigger-327e506e.js';
4
4
  export { G as GoogleFont } from './GoogleFont-8474516b.js';
5
- import './index-a3737440.js';
5
+ import './index-4d9efff8.js';
6
6
 
7
7
  class ClientIdentifier {
8
8
  constructor() { }
@@ -16,374 +16,4 @@ class ClientIdentifier {
16
16
  }
17
17
  }
18
18
 
19
- var Hex;
20
- (function (Hex) {
21
- function is(value) {
22
- const matchArray = (typeof value == "string" && value.match(/[0-9a-fA-F]/g)) || undefined;
23
- return (typeof value == "string" &&
24
- value.length > 3 &&
25
- value[0] == "#" &&
26
- ((matchArray === null || matchArray === void 0 ? void 0 : matchArray.length) == 3 || (matchArray === null || matchArray === void 0 ? void 0 : matchArray.length) == 6));
27
- }
28
- Hex.is = is;
29
- })(Hex || (Hex = {}));
30
-
31
- var Hsl;
32
- (function (Hsl) {
33
- function is(value) {
34
- const values = typeof value == "string" && value.length > 11 ? value.substring(4, value.length - 1).split(",") : [];
35
- return (typeof value == "string" &&
36
- value.length > 11 &&
37
- value.substr(0, 4) == "hsl(" &&
38
- value.substr(value.length - 1, 1) == ")" &&
39
- values.length == 3 &&
40
- values.every((single, index) => {
41
- var _a, _b;
42
- let result = false;
43
- if (index == 0)
44
- result =
45
- !Number.isNaN(single) &&
46
- ((_a = single.match(/[0-9]/g)) === null || _a === void 0 ? void 0 : _a.length) == single.length &&
47
- Number(single) >= 0 &&
48
- Number(single) <= 360;
49
- else {
50
- const number = single.substr(0, single.length - 1);
51
- result =
52
- single[single.length - 1] == "%" &&
53
- !Number.isNaN(number) &&
54
- ((_b = number.match(/[0-9]/g)) === null || _b === void 0 ? void 0 : _b.length) == number.length &&
55
- Number(number) >= 0 &&
56
- Number(number) <= 100;
57
- }
58
- return result;
59
- }));
60
- }
61
- Hsl.is = is;
62
- })(Hsl || (Hsl = {}));
63
-
64
- const Names = {
65
- aliceblue: "#f0f8ff",
66
- antiquewhite: "#faebd7",
67
- aqua: "#00ffff",
68
- aquamarine: "#7fffd4",
69
- azure: "#f0ffff",
70
- beige: "#f5f5dc",
71
- bisque: "#ffe4c4",
72
- black: "#000000",
73
- blanchedalmond: "#ffebcd",
74
- blue: "#0000ff",
75
- blueviolet: "#8a2be2",
76
- brown: "#a52a2a",
77
- burlywood: "#deb887",
78
- cadetblue: "#5f9ea0",
79
- chartreuse: "#7fff00",
80
- chocolate: "#d2691e",
81
- coral: "#ff7f50",
82
- cornflowerblue: "#6495ed",
83
- cornsilk: "#fff8dc",
84
- crimson: "#dc143c",
85
- cyan: "#00ffff",
86
- darkblue: "#00008b",
87
- darkcyan: "#008b8b",
88
- darkgoldenrod: "#b8860b",
89
- darkgray: "#a9a9a9",
90
- darkgreen: "#006400",
91
- darkgrey: "#a9a9a9",
92
- darkkhaki: "#bdb76b",
93
- darkmagenta: "#8b008b",
94
- darkolivegreen: "#556b2f",
95
- darkorange: "#ff8c00",
96
- darkorchid: "#9932cc",
97
- darkred: "#8b0000",
98
- darksalmon: "#e9967a",
99
- darkseagreen: "#8fbc8f",
100
- darkslateblue: "#483d8b",
101
- darkslategray: "#2f4f4f",
102
- darkslategrey: "#2f4f4f",
103
- darkturquoise: "#00ced1",
104
- darkviolet: "#9400d3",
105
- deeppink: "#ff1493",
106
- deepskyblue: "#00bfff",
107
- dimgray: "#696969",
108
- dimgrey: "#696969",
109
- dodgerblue: "#1e90ff",
110
- firebrick: "#b22222",
111
- floralwhite: "#fffaf0",
112
- forestgreen: "#228b22",
113
- fuchsia: "#ff00ff",
114
- gainsboro: "#dcdcdc",
115
- ghostwhite: "#f8f8ff",
116
- goldenrod: "#daa520",
117
- gold: "#ffd700",
118
- gray: "#808080",
119
- green: "#008000",
120
- greenyellow: "#adff2f",
121
- grey: "#808080",
122
- honeydew: "#f0fff0",
123
- hotpink: "#ff69b4",
124
- indianred: "#cd5c5c",
125
- indigo: "#4b0082",
126
- ivory: "#fffff0",
127
- khaki: "#f0e68c",
128
- lavenderblush: "#fff0f5",
129
- lavender: "#e6e6fa",
130
- lawngreen: "#7cfc00",
131
- lemonchiffon: "#fffacd",
132
- lightblue: "#add8e6",
133
- lightcoral: "#f08080",
134
- lightcyan: "#e0ffff",
135
- lightgoldenrodyellow: "#fafad2",
136
- lightgray: "#d3d3d3",
137
- lightgreen: "#90ee90",
138
- lightgrey: "#d3d3d3",
139
- lightpink: "#ffb6c1",
140
- lightsalmon: "#ffa07a",
141
- lightseagreen: "#20b2aa",
142
- lightskyblue: "#87cefa",
143
- lightslategray: "#778899",
144
- lightslategrey: "#778899",
145
- lightsteelblue: "#b0c4de",
146
- lightyellow: "#ffffe0",
147
- lime: "#00ff00",
148
- limegreen: "#32cd32",
149
- linen: "#faf0e6",
150
- magenta: "#ff00ff",
151
- maroon: "#800000",
152
- mediumaquamarine: "#66cdaa",
153
- mediumblue: "#0000cd",
154
- mediumorchid: "#ba55d3",
155
- mediumpurple: "#9370db",
156
- mediumseagreen: "#3cb371",
157
- mediumslateblue: "#7b68ee",
158
- mediumspringgreen: "#00fa9a",
159
- mediumturquoise: "#48d1cc",
160
- mediumvioletred: "#c71585",
161
- midnightblue: "#191970",
162
- mintcream: "#f5fffa",
163
- mistyrose: "#ffe4e1",
164
- moccasin: "#ffe4b5",
165
- navajowhite: "#ffdead",
166
- navy: "#000080",
167
- oldlace: "#fdf5e6",
168
- olive: "#808000",
169
- olivedrab: "#6b8e23",
170
- orange: "#ffa500",
171
- orangered: "#ff4500",
172
- orchid: "#da70d6",
173
- palegoldenrod: "#eee8aa",
174
- palegreen: "#98fb98",
175
- paleturquoise: "#afeeee",
176
- palevioletred: "#db7093",
177
- papayawhip: "#ffefd5",
178
- peachpuff: "#ffdab9",
179
- peru: "#cd853f",
180
- pink: "#ffc0cb",
181
- plum: "#dda0dd",
182
- powderblue: "#b0e0e6",
183
- purple: "#800080",
184
- rebeccapurple: "#663399",
185
- red: "#ff0000",
186
- rosybrown: "#bc8f8f",
187
- royalblue: "#4169e1",
188
- saddlebrown: "#8b4513",
189
- salmon: "#fa8072",
190
- sandybrown: "#f4a460",
191
- seagreen: "#2e8b57",
192
- seashell: "#fff5ee",
193
- sienna: "#a0522d",
194
- silver: "#c0c0c0",
195
- skyblue: "#87ceeb",
196
- slateblue: "#6a5acd",
197
- slategray: "#708090",
198
- slategrey: "#708090",
199
- snow: "#fffafa",
200
- springgreen: "#00ff7f",
201
- steelblue: "#4682b4",
202
- tan: "#d2b48c",
203
- teal: "#008080",
204
- thistle: "#d8bfd8",
205
- tomato: "#ff6347",
206
- turquoise: "#40e0d0",
207
- violet: "#ee82ee",
208
- wheat: "#f5deb3",
209
- white: "#ffffff",
210
- whitesmoke: "#f5f5f5",
211
- yellow: "#ffff00",
212
- yellowgreen: "#9acd32",
213
- };
214
- var Name;
215
- (function (Name) {
216
- Name.types = () => Object.keys(Names);
217
- function is(value) {
218
- return typeof value == "string" && Name.types().includes(value.toLowerCase());
219
- }
220
- Name.is = is;
221
- })(Name || (Name = {}));
222
-
223
- var Rgb;
224
- (function (Rgb) {
225
- function is(value) {
226
- const values = typeof value == "string" && value.length > 9 ? value.substring(4, value.length - 1).split(",") : [];
227
- return (typeof value == "string" &&
228
- value.length > 9 &&
229
- value.substr(0, 4) == "rgb(" &&
230
- value.substr(value.length - 1, 1) == ")" &&
231
- values.length == 3 &&
232
- values.every((value) => {
233
- var _a;
234
- return !Number.isNaN(value) &&
235
- ((_a = value.match(/[0-9]/g)) === null || _a === void 0 ? void 0 : _a.length) == value.length &&
236
- Number(value) >= 0 &&
237
- Number(value) <= 255;
238
- }));
239
- }
240
- Rgb.is = is;
241
- })(Rgb || (Rgb = {}));
242
-
243
- var CommaRgb;
244
- (function (CommaRgb) {
245
- function is(value) {
246
- const values = typeof value == "string" ? value.split(",") : [];
247
- return (values.length == 3 &&
248
- values.every((value) => {
249
- var _a;
250
- return !Number.isNaN(value) &&
251
- ((_a = value.match(/[0-9]/g)) === null || _a === void 0 ? void 0 : _a.length) == value.length &&
252
- Number(value) >= 0 &&
253
- Number(value) <= 255;
254
- }));
255
- }
256
- CommaRgb.is = is;
257
- function from(color) {
258
- let result;
259
- const colorWithoutSpace = typeof color == "string" ? color.replace(/ /g, "").toLowerCase() : undefined;
260
- if (!colorWithoutSpace)
261
- result = undefined;
262
- else if (CommaRgb.is(colorWithoutSpace))
263
- result = colorWithoutSpace;
264
- else if (Hex.is(colorWithoutSpace))
265
- result = fromHex(colorWithoutSpace);
266
- else if (Rgb.is(colorWithoutSpace))
267
- result = fromRgb(colorWithoutSpace);
268
- else if (Name.is(colorWithoutSpace))
269
- result = fromHex(Names[colorWithoutSpace]);
270
- else if (Hsl.is(colorWithoutSpace))
271
- result = fromHsl(colorWithoutSpace);
272
- return result;
273
- }
274
- CommaRgb.from = from;
275
- function fromHex(hex) {
276
- let result = "0,0,0";
277
- if (hex.length == 7)
278
- result = `${parseInt(hex.substr(1, 2), 16)},${parseInt(hex.substr(3, 2), 16)},${parseInt(hex.substr(5, 2), 16)}`;
279
- else if (hex.length == 4)
280
- result = fromHex(`#${hex[1]}${hex[1]}${hex[2]}${hex[2]}${hex[3]}${hex[3]}`);
281
- return result;
282
- }
283
- CommaRgb.fromHex = fromHex;
284
- function fromRgb(rgb) {
285
- return rgb.substring(4, rgb.length - 1);
286
- }
287
- CommaRgb.fromRgb = fromRgb;
288
- function fromHsl(hsl) {
289
- let result = "";
290
- let h, s, l;
291
- let r, g, b;
292
- const HSL = hsl
293
- .substring(4, hsl.length - 1)
294
- .split(",")
295
- .map((value, index) => Number(index == 0 ? value : value.substr(0, value.length - 1)));
296
- if (HSL.length == 3) {
297
- h = HSL[0] / 360;
298
- s = HSL[1] / 100;
299
- l = HSL[2] / 100;
300
- if (s == 0)
301
- r = g = b = l;
302
- else {
303
- const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
304
- const p = 2 * l - q;
305
- r = hue2rgb(p, q, h + 1 / 3);
306
- g = hue2rgb(p, q, h);
307
- b = hue2rgb(p, q, h - 1 / 3);
308
- }
309
- result = `${Math.round(255 * r)},${Math.round(255 * g)},${Math.round(255 * b)}`;
310
- }
311
- return result;
312
- }
313
- CommaRgb.fromHsl = fromHsl;
314
- function hue2rgb(p, q, t) {
315
- let result = p;
316
- if (t < 0)
317
- t += 1;
318
- if (t > 1)
319
- t -= 1;
320
- if (t < 1 / 6)
321
- result = p + (q - p) * 6 * t;
322
- else if (t < 1 / 2)
323
- result = q;
324
- else if (t < 2 / 3)
325
- result = p + (q - p) * (2 / 3 - t) * 6;
326
- return result;
327
- }
328
- })(CommaRgb || (CommaRgb = {}));
329
-
330
- var Color;
331
- (function (Color) {
332
- function is(value) {
333
- return (typeof value == "string" &&
334
- (CommaRgb.is(value) || Hex.is(value) || Hsl.is(value) || Name.is(value) || Rgb.is(value)));
335
- }
336
- Color.is = is;
337
- function from(value) {
338
- return is(value) ? value : undefined;
339
- }
340
- Color.from = from;
341
- Color.Names = Names;
342
- Color.Name = Name;
343
- Color.CommaRgb = CommaRgb;
344
- Color.Rgb = Rgb;
345
- Color.Hex = Hex;
346
- Color.Hsl = Hsl;
347
- })(Color || (Color = {}));
348
-
349
- function reduce(types, value) {
350
- return types.reduce((r, c) => typeof value == "object" && value != null && typeof value[c] == "string"
351
- ? Object.assign(Object.assign({}, r), { [c]: value[c] }) : r, {});
352
- }
353
- var Cosmetic;
354
- (function (Cosmetic) {
355
- Cosmetic.types = Cosmetic;
356
- function from(value) {
357
- let result = {};
358
- if (typeof value == "object" && value) {
359
- result = {
360
- text: reduce(["background", "color"], value.text),
361
- border: reduce(["background", "color", "style", "radius", "width"], value.border),
362
- gap: typeof value.gap == "string" ? value.gap : undefined,
363
- dangerColor: typeof value.dangerColor == "string"
364
- ? value.dangerColor
365
- : typeof value.danger_color == "string"
366
- ? value.danger_color
367
- : undefined,
368
- fontFamily: typeof value.fontFamily == "string"
369
- ? value.fontFamily
370
- : typeof value.font_family == "string"
371
- ? value.font_family
372
- : undefined,
373
- background: typeof value.background == "string" ? value.background : undefined,
374
- };
375
- Object.keys(result).forEach((key) => {
376
- var _a;
377
- if (result[key] == undefined ||
378
- (typeof result[key] == "object" && result[key] && Object.keys((_a = result[key]) !== null && _a !== void 0 ? _a : {}).length == 0)) {
379
- delete result[key];
380
- }
381
- });
382
- }
383
- return result;
384
- }
385
- Cosmetic.from = from;
386
- Cosmetic.Color = Color;
387
- })(Cosmetic || (Cosmetic = {}));
388
-
389
- export { ClientIdentifier, Cosmetic };
19
+ export { ClientIdentifier };
@@ -1,7 +1,7 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-a3737440.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-4d9efff8.js';
2
2
 
3
3
  /*
4
- Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Esm v2.17.4 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  const patchEsm = () => {
7
7
  return promiseResolve();
@@ -10,7 +10,7 @@ const patchEsm = () => {
10
10
  const defineCustomElements = (win, options) => {
11
11
  if (typeof window === 'undefined') return Promise.resolve();
12
12
  return patchEsm().then(() => {
13
- return bootstrapLazy([["smoothly-google-font",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-accordion_51",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}],[0,"smoothly-input-demo"],[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]],[0,"smoothly-display-demo"],[2,"smoothly-table-demo"],[4,"smoothly-app",{"color":[1]}],[0,"smoothly-dialog-demo"],[2,"smoothly-icon-demo"],[6,"smoothly-button",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"link":[1],"download":[4]}],[4,"smoothly-room",{"label":[1],"icon":[1],"path":[1],"to":[1]}],[2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"open":[1028],"showLabel":[516,"show-label"]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]],[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[1,"smoothly-picker",{"disabled":[516],"readonly":[516],"maxMenuHeight":[1,"max-menu-height"],"maxHeight":[1,"max-height"],"emptyMenuLabel":[1025,"empty-menu-label"],"multiple":[516],"mutable":[4],"optionStyle":[8,"option-style"],"options":[16],"labelSetting":[513,"label-setting"],"label":[513],"selections":[1040],"selectNoneName":[1025,"select-none-name"],"selectAllName":[1025,"select-all-name"],"selectionName":[1025,"selection-name"],"newOptionLabel":[1025,"new-option-label"],"valueValidator":[16],"isOpen":[32],"empty":[32]},[[0,"optionSelect","optionSelectHandler"],[0,"optionAdd","optionAddHandler"],[0,"menuEmpty","emptyHandler"]]],[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-backtotop",{"opacity":[1],"bottom":[1],"right":[1],"visible":[32]}],[2,"smoothly-checkbox",{"selectAll":[4,"select-all"],"size":[1],"intermediate":[1540],"selected":[1540],"disabled":[1540],"t":[32]}],[6,"smoothly-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540]},[[0,"click","onClick"]]],[6,"smoothly-table-expandable-row",{"align":[1],"open":[1540]},[[0,"click","onClick"]]],[0,"smoothly-urlencoded",{"data":[1]}],[6,"smoothly-accordion",{"value":[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]],[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}],[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1]}],[2,"smoothly-display-amount",{"amount":[8],"currency":[1]}],[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}],[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}],[6,"smoothly-quiet",{"color":[1]}],[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}],[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}],[2,"smoothly-skeleton",{"widths":[16],"width":[1],"color":[1],"period":[2],"distance":[1],"align":[513]}],[2,"smoothly-svg",{"url":[513],"size":[513],"color":[1]}],[6,"smoothly-table",null,[[0,"expansionLoad","handleEvents"],[0,"expansionOpen","handleEvents"]]],[6,"smoothly-table-cell"],[6,"smoothly-table-header",{"name":[1]}],[6,"smoothly-table-row",null,[[0,"expansionLoad","onExpansionLoad"],[0,"expansionOpen","onExpansionOpen"]]],[6,"smoothly-input-date",{"value":[1025],"open":[1028],"max":[1025],"min":[1025],"disabled":[1028]},[[0,"dateSet","dateSetHandler"]]],[1,"smoothly-menu-options",{"emptyMenuLabel":[1025,"empty-menu-label"],"newOptionLabel":[1,"new-option-label"],"maxMenuHeight":[1,"max-menu-height"],"order":[4],"optionStyle":[8,"option-style"],"options":[1040],"resetHighlightOnOptionsChange":[1028,"reset-highlight-on-options-change"],"mutable":[4],"filteredOptions":[32],"highlightIndex":[32],"keyword":[32],"moveHighlight":[64],"setHighlight":[64],"getHighlighted":[64],"filterOptions":[64]},[[0,"optionHover","optionHoverHandler"]]],[2,"smoothly-notification",{"notice":[16],"tick":[32]},[[0,"trigger","onTrigger"]]],[2,"smoothly-display-date-time",{"datetime":[1]}],[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]],[0,"smoothly-tuple",{"tuple":[16]}],[1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537],"divider":[1540],"new":[4]}],[2,"smoothly-spinner",{"active":[516],"size":[513]}],[2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"doubleInput":[516,"double-input"],"firstSelected":[32]}],[6,"smoothly-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[1026,"min-length"],"showLabel":[516,"show-label"],"maxLength":[1026,"max-length"],"autocomplete":[1028],"pattern":[1040],"placeholder":[1025],"disabled":[1028],"readonly":[1028],"currency":[513],"initialValue":[32],"getFormData":[64],"setKeepFocusOnReRender":[64],"setSelectionRange":[64]}],[2,"smoothly-input-month",{"value":[1025]}],[6,"smoothly-selector",{"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]],[6,"smoothly-item",{"value":[8],"selected":[1540],"filter":[64]},[[0,"click","onClick"]]],[6,"smoothly-trigger",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]],[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]]], options);
13
+ return bootstrapLazy([["smoothly-google-font",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder",[[0,"smoothly-reorder"]]],["smoothly-svg",[[2,"smoothly-svg",{"url":[513],"size":[513],"color":[1]}]]],["smoothly-trigger-sink",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-accordion_50",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}],[0,"smoothly-input-demo"],[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]],[2,"smoothly-table-demo"],[0,"smoothly-display-demo"],[4,"smoothly-app",{"color":[1]}],[0,"smoothly-dialog-demo"],[2,"smoothly-icon-demo"],[6,"smoothly-button",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"link":[1],"download":[4]}],[4,"smoothly-room",{"label":[1],"icon":[1],"path":[1],"to":[1]}],[2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"open":[1028],"showLabel":[516,"show-label"]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]],[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[1,"smoothly-picker",{"disabled":[516],"readonly":[516],"maxMenuHeight":[1,"max-menu-height"],"maxHeight":[1,"max-height"],"emptyMenuLabel":[1025,"empty-menu-label"],"multiple":[516],"mutable":[4],"optionStyle":[8,"option-style"],"options":[16],"labelSetting":[513,"label-setting"],"label":[513],"selections":[1040],"selectNoneName":[1025,"select-none-name"],"selectAllName":[1025,"select-all-name"],"selectionName":[1025,"selection-name"],"newOptionLabel":[1025,"new-option-label"],"valueValidator":[16],"isOpen":[32],"empty":[32]},[[0,"optionSelect","optionSelectHandler"],[0,"optionAdd","optionAddHandler"],[0,"menuEmpty","emptyHandler"]]],[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-backtotop",{"opacity":[1],"bottom":[1],"right":[1],"visible":[32]}],[2,"smoothly-checkbox",{"selectAll":[4,"select-all"],"size":[1],"intermediate":[1540],"selected":[1540],"disabled":[1540],"t":[32]}],[6,"smoothly-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540]},[[0,"click","onClick"]]],[6,"smoothly-table-expandable-row",{"align":[1],"open":[1540]},[[0,"click","onClick"]]],[0,"smoothly-urlencoded",{"data":[1]}],[6,"smoothly-accordion",{"value":[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]],[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}],[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1],"format":[16]}],[2,"smoothly-display-amount",{"amount":[8],"currency":[1]}],[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}],[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}],[6,"smoothly-quiet",{"color":[1]}],[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}],[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}],[2,"smoothly-skeleton",{"widths":[16],"width":[1],"color":[1],"period":[2],"distance":[1],"align":[513]}],[6,"smoothly-table",null,[[0,"expansionLoad","handleEvents"],[0,"expansionOpen","handleEvents"]]],[6,"smoothly-table-cell"],[6,"smoothly-table-header",{"name":[1]}],[6,"smoothly-table-row",null,[[0,"expansionLoad","onExpansionLoad"],[0,"expansionOpen","onExpansionOpen"]]],[6,"smoothly-input-date",{"name":[513],"value":[1025],"open":[1028],"max":[1025],"min":[1025],"disabled":[1028]},[[0,"dateSet","dateSetHandler"]]],[1,"smoothly-menu-options",{"emptyMenuLabel":[1025,"empty-menu-label"],"newOptionLabel":[1,"new-option-label"],"maxMenuHeight":[1,"max-menu-height"],"order":[4],"optionStyle":[8,"option-style"],"options":[1040],"resetHighlightOnOptionsChange":[1028,"reset-highlight-on-options-change"],"mutable":[4],"filteredOptions":[32],"highlightIndex":[32],"keyword":[32],"moveHighlight":[64],"setHighlight":[64],"getHighlighted":[64],"filterOptions":[64]},[[0,"optionHover","optionHoverHandler"]]],[2,"smoothly-notification",{"notice":[16],"tick":[32]},[[0,"trigger","onTrigger"]]],[2,"smoothly-display-date-time",{"datetime":[1]}],[2,"smoothly-spinner",{"active":[516],"size":[513]}],[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]],[0,"smoothly-tuple",{"tuple":[16]}],[1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537],"divider":[1540],"new":[4]}],[2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"doubleInput":[516,"double-input"],"firstSelected":[32]}],[6,"smoothly-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[1026,"min-length"],"showLabel":[516,"show-label"],"maxLength":[1026,"max-length"],"autocomplete":[1028],"pattern":[1040],"placeholder":[1025],"disabled":[1028],"readonly":[1028],"currency":[513],"initialValue":[32],"getFormData":[64],"setKeepFocusOnReRender":[64],"setSelectionRange":[64]}],[2,"smoothly-input-month",{"value":[1025]}],[6,"smoothly-selector",{"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]],[6,"smoothly-item",{"value":[8],"selected":[1540],"filter":[64]},[[0,"click","onClick"]]],[6,"smoothly-trigger",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]],[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]]], options);
14
14
  });
15
15
  };
16
16