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
@@ -43,10 +43,10 @@ const plt = {
43
43
  ce: (eventName, opts) => new CustomEvent(eventName, opts),
44
44
  };
45
45
  const promiseResolve = (v) => Promise.resolve(v);
46
- const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
46
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
47
47
  try {
48
48
  new CSSStyleSheet();
49
- return typeof new CSSStyleSheet().replace === 'function';
49
+ return typeof new CSSStyleSheet().replaceSync === 'function';
50
50
  }
51
51
  catch (e) { }
52
52
  return false;
@@ -100,9 +100,14 @@ const uniqueTime = (key, measureText) => {
100
100
  const rootAppliedStyles = new WeakMap();
101
101
  const registerStyle = (scopeId, cssText, allowCS) => {
102
102
  let style = styles.get(scopeId);
103
- if (supportsConstructibleStylesheets && allowCS) {
103
+ if (supportsConstructableStylesheets && allowCS) {
104
104
  style = (style || new CSSStyleSheet());
105
- style.replace(cssText);
105
+ if (typeof style === 'string') {
106
+ style = cssText;
107
+ }
108
+ else {
109
+ style.replaceSync(cssText);
110
+ }
106
111
  }
107
112
  else {
108
113
  style = cssText;
@@ -111,7 +116,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
111
116
  };
112
117
  const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
113
118
  let scopeId = getScopeId(cmpMeta);
114
- let style = styles.get(scopeId);
119
+ const style = styles.get(scopeId);
115
120
  // if an element is NOT connected then getRootNode() will return the wrong root node
116
121
  // so the fallback is to always use the document for the root node in those cases
117
122
  styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
@@ -201,7 +206,7 @@ const h = (nodeName, vnodeData, ...children) => {
201
206
  let slotName = null;
202
207
  let simple = false;
203
208
  let lastSimple = false;
204
- let vNodeChildren = [];
209
+ const vNodeChildren = [];
205
210
  const walk = (c) => {
206
211
  for (let i = 0; i < c.length; i++) {
207
212
  child = c[i];
@@ -410,7 +415,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
410
415
  if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
411
416
  try {
412
417
  if (!elm.tagName.includes('-')) {
413
- let n = newValue == null ? '' : newValue;
418
+ const n = newValue == null ? '' : newValue;
414
419
  // Workaround for Safari, moving the <input> caret when re-assigning the same valued
415
420
  if (memberName === 'list') {
416
421
  isProp = false;
@@ -487,7 +492,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
487
492
  };
488
493
  const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
489
494
  // tslint:disable-next-line: prefer-const
490
- let newVNode = newParentVNode.$children$[childIndex];
495
+ const newVNode = newParentVNode.$children$[childIndex];
491
496
  let i = 0;
492
497
  let elm;
493
498
  let childNode;
@@ -820,7 +825,7 @@ const patch = (oldVNode, newVNode) => {
820
825
  };
821
826
  const updateFallbackSlotVisibility = (elm) => {
822
827
  // tslint:disable-next-line: prefer-const
823
- let childNodes = elm.childNodes;
828
+ const childNodes = elm.childNodes;
824
829
  let childNode;
825
830
  let i;
826
831
  let ilen;
@@ -873,8 +878,8 @@ const relocateSlotContent = (elm) => {
873
878
  let relocateNodeData;
874
879
  let j;
875
880
  let i = 0;
876
- let childNodes = elm.childNodes;
877
- let ilen = childNodes.length;
881
+ const childNodes = elm.childNodes;
882
+ const ilen = childNodes.length;
878
883
  for (; i < ilen; i++) {
879
884
  childNode = childNodes[i];
880
885
  if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
@@ -1754,7 +1759,9 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1754
1759
  if (module) {
1755
1760
  return module[exportName];
1756
1761
  }
1762
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1757
1763
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1764
+ /* @vite-ignore */
1758
1765
  /* webpackInclude: /\.entry\.js$/ */
1759
1766
  /* webpackExclude: /\.system\.entry\.js$/ */
1760
1767
  /* webpackMode: "lazy" */
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const Notice = require('./Notice-839702d8.js');
6
- const Trigger = require('./Trigger-cf376531.js');
5
+ const index = require('./index-2a011313.js');
6
+ const Trigger = require('./Trigger-3443997e.js');
7
7
  const GoogleFont = require('./GoogleFont-6c4f0da1.js');
8
- require('./index-1c61bdd3.js');
8
+ require('./index-3efe2a41.js');
9
9
 
10
10
  class ClientIdentifier {
11
11
  constructor() { }
@@ -19,378 +19,15 @@ class ClientIdentifier {
19
19
  }
20
20
  }
21
21
 
22
- var Hex;
23
- (function (Hex) {
24
- function is(value) {
25
- const matchArray = (typeof value == "string" && value.match(/[0-9a-fA-F]/g)) || undefined;
26
- return (typeof value == "string" &&
27
- value.length > 3 &&
28
- value[0] == "#" &&
29
- ((matchArray === null || matchArray === void 0 ? void 0 : matchArray.length) == 3 || (matchArray === null || matchArray === void 0 ? void 0 : matchArray.length) == 6));
30
- }
31
- Hex.is = is;
32
- })(Hex || (Hex = {}));
33
-
34
- var Hsl;
35
- (function (Hsl) {
36
- function is(value) {
37
- const values = typeof value == "string" && value.length > 11 ? value.substring(4, value.length - 1).split(",") : [];
38
- return (typeof value == "string" &&
39
- value.length > 11 &&
40
- value.substr(0, 4) == "hsl(" &&
41
- value.substr(value.length - 1, 1) == ")" &&
42
- values.length == 3 &&
43
- values.every((single, index) => {
44
- var _a, _b;
45
- let result = false;
46
- if (index == 0)
47
- result =
48
- !Number.isNaN(single) &&
49
- ((_a = single.match(/[0-9]/g)) === null || _a === void 0 ? void 0 : _a.length) == single.length &&
50
- Number(single) >= 0 &&
51
- Number(single) <= 360;
52
- else {
53
- const number = single.substr(0, single.length - 1);
54
- result =
55
- single[single.length - 1] == "%" &&
56
- !Number.isNaN(number) &&
57
- ((_b = number.match(/[0-9]/g)) === null || _b === void 0 ? void 0 : _b.length) == number.length &&
58
- Number(number) >= 0 &&
59
- Number(number) <= 100;
60
- }
61
- return result;
62
- }));
63
- }
64
- Hsl.is = is;
65
- })(Hsl || (Hsl = {}));
66
-
67
- const Names = {
68
- aliceblue: "#f0f8ff",
69
- antiquewhite: "#faebd7",
70
- aqua: "#00ffff",
71
- aquamarine: "#7fffd4",
72
- azure: "#f0ffff",
73
- beige: "#f5f5dc",
74
- bisque: "#ffe4c4",
75
- black: "#000000",
76
- blanchedalmond: "#ffebcd",
77
- blue: "#0000ff",
78
- blueviolet: "#8a2be2",
79
- brown: "#a52a2a",
80
- burlywood: "#deb887",
81
- cadetblue: "#5f9ea0",
82
- chartreuse: "#7fff00",
83
- chocolate: "#d2691e",
84
- coral: "#ff7f50",
85
- cornflowerblue: "#6495ed",
86
- cornsilk: "#fff8dc",
87
- crimson: "#dc143c",
88
- cyan: "#00ffff",
89
- darkblue: "#00008b",
90
- darkcyan: "#008b8b",
91
- darkgoldenrod: "#b8860b",
92
- darkgray: "#a9a9a9",
93
- darkgreen: "#006400",
94
- darkgrey: "#a9a9a9",
95
- darkkhaki: "#bdb76b",
96
- darkmagenta: "#8b008b",
97
- darkolivegreen: "#556b2f",
98
- darkorange: "#ff8c00",
99
- darkorchid: "#9932cc",
100
- darkred: "#8b0000",
101
- darksalmon: "#e9967a",
102
- darkseagreen: "#8fbc8f",
103
- darkslateblue: "#483d8b",
104
- darkslategray: "#2f4f4f",
105
- darkslategrey: "#2f4f4f",
106
- darkturquoise: "#00ced1",
107
- darkviolet: "#9400d3",
108
- deeppink: "#ff1493",
109
- deepskyblue: "#00bfff",
110
- dimgray: "#696969",
111
- dimgrey: "#696969",
112
- dodgerblue: "#1e90ff",
113
- firebrick: "#b22222",
114
- floralwhite: "#fffaf0",
115
- forestgreen: "#228b22",
116
- fuchsia: "#ff00ff",
117
- gainsboro: "#dcdcdc",
118
- ghostwhite: "#f8f8ff",
119
- goldenrod: "#daa520",
120
- gold: "#ffd700",
121
- gray: "#808080",
122
- green: "#008000",
123
- greenyellow: "#adff2f",
124
- grey: "#808080",
125
- honeydew: "#f0fff0",
126
- hotpink: "#ff69b4",
127
- indianred: "#cd5c5c",
128
- indigo: "#4b0082",
129
- ivory: "#fffff0",
130
- khaki: "#f0e68c",
131
- lavenderblush: "#fff0f5",
132
- lavender: "#e6e6fa",
133
- lawngreen: "#7cfc00",
134
- lemonchiffon: "#fffacd",
135
- lightblue: "#add8e6",
136
- lightcoral: "#f08080",
137
- lightcyan: "#e0ffff",
138
- lightgoldenrodyellow: "#fafad2",
139
- lightgray: "#d3d3d3",
140
- lightgreen: "#90ee90",
141
- lightgrey: "#d3d3d3",
142
- lightpink: "#ffb6c1",
143
- lightsalmon: "#ffa07a",
144
- lightseagreen: "#20b2aa",
145
- lightskyblue: "#87cefa",
146
- lightslategray: "#778899",
147
- lightslategrey: "#778899",
148
- lightsteelblue: "#b0c4de",
149
- lightyellow: "#ffffe0",
150
- lime: "#00ff00",
151
- limegreen: "#32cd32",
152
- linen: "#faf0e6",
153
- magenta: "#ff00ff",
154
- maroon: "#800000",
155
- mediumaquamarine: "#66cdaa",
156
- mediumblue: "#0000cd",
157
- mediumorchid: "#ba55d3",
158
- mediumpurple: "#9370db",
159
- mediumseagreen: "#3cb371",
160
- mediumslateblue: "#7b68ee",
161
- mediumspringgreen: "#00fa9a",
162
- mediumturquoise: "#48d1cc",
163
- mediumvioletred: "#c71585",
164
- midnightblue: "#191970",
165
- mintcream: "#f5fffa",
166
- mistyrose: "#ffe4e1",
167
- moccasin: "#ffe4b5",
168
- navajowhite: "#ffdead",
169
- navy: "#000080",
170
- oldlace: "#fdf5e6",
171
- olive: "#808000",
172
- olivedrab: "#6b8e23",
173
- orange: "#ffa500",
174
- orangered: "#ff4500",
175
- orchid: "#da70d6",
176
- palegoldenrod: "#eee8aa",
177
- palegreen: "#98fb98",
178
- paleturquoise: "#afeeee",
179
- palevioletred: "#db7093",
180
- papayawhip: "#ffefd5",
181
- peachpuff: "#ffdab9",
182
- peru: "#cd853f",
183
- pink: "#ffc0cb",
184
- plum: "#dda0dd",
185
- powderblue: "#b0e0e6",
186
- purple: "#800080",
187
- rebeccapurple: "#663399",
188
- red: "#ff0000",
189
- rosybrown: "#bc8f8f",
190
- royalblue: "#4169e1",
191
- saddlebrown: "#8b4513",
192
- salmon: "#fa8072",
193
- sandybrown: "#f4a460",
194
- seagreen: "#2e8b57",
195
- seashell: "#fff5ee",
196
- sienna: "#a0522d",
197
- silver: "#c0c0c0",
198
- skyblue: "#87ceeb",
199
- slateblue: "#6a5acd",
200
- slategray: "#708090",
201
- slategrey: "#708090",
202
- snow: "#fffafa",
203
- springgreen: "#00ff7f",
204
- steelblue: "#4682b4",
205
- tan: "#d2b48c",
206
- teal: "#008080",
207
- thistle: "#d8bfd8",
208
- tomato: "#ff6347",
209
- turquoise: "#40e0d0",
210
- violet: "#ee82ee",
211
- wheat: "#f5deb3",
212
- white: "#ffffff",
213
- whitesmoke: "#f5f5f5",
214
- yellow: "#ffff00",
215
- yellowgreen: "#9acd32",
216
- };
217
- var Name;
218
- (function (Name) {
219
- Name.types = () => Object.keys(Names);
220
- function is(value) {
221
- return typeof value == "string" && Name.types().includes(value.toLowerCase());
222
- }
223
- Name.is = is;
224
- })(Name || (Name = {}));
225
-
226
- var Rgb;
227
- (function (Rgb) {
228
- function is(value) {
229
- const values = typeof value == "string" && value.length > 9 ? value.substring(4, value.length - 1).split(",") : [];
230
- return (typeof value == "string" &&
231
- value.length > 9 &&
232
- value.substr(0, 4) == "rgb(" &&
233
- value.substr(value.length - 1, 1) == ")" &&
234
- values.length == 3 &&
235
- values.every((value) => {
236
- var _a;
237
- return !Number.isNaN(value) &&
238
- ((_a = value.match(/[0-9]/g)) === null || _a === void 0 ? void 0 : _a.length) == value.length &&
239
- Number(value) >= 0 &&
240
- Number(value) <= 255;
241
- }));
242
- }
243
- Rgb.is = is;
244
- })(Rgb || (Rgb = {}));
245
-
246
- var CommaRgb;
247
- (function (CommaRgb) {
248
- function is(value) {
249
- const values = typeof value == "string" ? value.split(",") : [];
250
- return (values.length == 3 &&
251
- values.every((value) => {
252
- var _a;
253
- return !Number.isNaN(value) &&
254
- ((_a = value.match(/[0-9]/g)) === null || _a === void 0 ? void 0 : _a.length) == value.length &&
255
- Number(value) >= 0 &&
256
- Number(value) <= 255;
257
- }));
258
- }
259
- CommaRgb.is = is;
260
- function from(color) {
261
- let result;
262
- const colorWithoutSpace = typeof color == "string" ? color.replace(/ /g, "").toLowerCase() : undefined;
263
- if (!colorWithoutSpace)
264
- result = undefined;
265
- else if (CommaRgb.is(colorWithoutSpace))
266
- result = colorWithoutSpace;
267
- else if (Hex.is(colorWithoutSpace))
268
- result = fromHex(colorWithoutSpace);
269
- else if (Rgb.is(colorWithoutSpace))
270
- result = fromRgb(colorWithoutSpace);
271
- else if (Name.is(colorWithoutSpace))
272
- result = fromHex(Names[colorWithoutSpace]);
273
- else if (Hsl.is(colorWithoutSpace))
274
- result = fromHsl(colorWithoutSpace);
275
- return result;
276
- }
277
- CommaRgb.from = from;
278
- function fromHex(hex) {
279
- let result = "0,0,0";
280
- if (hex.length == 7)
281
- result = `${parseInt(hex.substr(1, 2), 16)},${parseInt(hex.substr(3, 2), 16)},${parseInt(hex.substr(5, 2), 16)}`;
282
- else if (hex.length == 4)
283
- result = fromHex(`#${hex[1]}${hex[1]}${hex[2]}${hex[2]}${hex[3]}${hex[3]}`);
284
- return result;
285
- }
286
- CommaRgb.fromHex = fromHex;
287
- function fromRgb(rgb) {
288
- return rgb.substring(4, rgb.length - 1);
289
- }
290
- CommaRgb.fromRgb = fromRgb;
291
- function fromHsl(hsl) {
292
- let result = "";
293
- let h, s, l;
294
- let r, g, b;
295
- const HSL = hsl
296
- .substring(4, hsl.length - 1)
297
- .split(",")
298
- .map((value, index) => Number(index == 0 ? value : value.substr(0, value.length - 1)));
299
- if (HSL.length == 3) {
300
- h = HSL[0] / 360;
301
- s = HSL[1] / 100;
302
- l = HSL[2] / 100;
303
- if (s == 0)
304
- r = g = b = l;
305
- else {
306
- const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
307
- const p = 2 * l - q;
308
- r = hue2rgb(p, q, h + 1 / 3);
309
- g = hue2rgb(p, q, h);
310
- b = hue2rgb(p, q, h - 1 / 3);
311
- }
312
- result = `${Math.round(255 * r)},${Math.round(255 * g)},${Math.round(255 * b)}`;
313
- }
314
- return result;
315
- }
316
- CommaRgb.fromHsl = fromHsl;
317
- function hue2rgb(p, q, t) {
318
- let result = p;
319
- if (t < 0)
320
- t += 1;
321
- if (t > 1)
322
- t -= 1;
323
- if (t < 1 / 6)
324
- result = p + (q - p) * 6 * t;
325
- else if (t < 1 / 2)
326
- result = q;
327
- else if (t < 2 / 3)
328
- result = p + (q - p) * (2 / 3 - t) * 6;
329
- return result;
330
- }
331
- })(CommaRgb || (CommaRgb = {}));
332
-
333
- var Color;
334
- (function (Color) {
335
- function is(value) {
336
- return (typeof value == "string" &&
337
- (CommaRgb.is(value) || Hex.is(value) || Hsl.is(value) || Name.is(value) || Rgb.is(value)));
338
- }
339
- Color.is = is;
340
- function from(value) {
341
- return is(value) ? value : undefined;
342
- }
343
- Color.from = from;
344
- Color.Names = Names;
345
- Color.Name = Name;
346
- Color.CommaRgb = CommaRgb;
347
- Color.Rgb = Rgb;
348
- Color.Hex = Hex;
349
- Color.Hsl = Hsl;
350
- })(Color || (Color = {}));
351
-
352
- function reduce(types, value) {
353
- return types.reduce((r, c) => typeof value == "object" && value != null && typeof value[c] == "string"
354
- ? Object.assign(Object.assign({}, r), { [c]: value[c] }) : r, {});
355
- }
356
- exports.Cosmetic = void 0;
357
- (function (Cosmetic) {
358
- Cosmetic.types = Cosmetic;
359
- function from(value) {
360
- let result = {};
361
- if (typeof value == "object" && value) {
362
- result = {
363
- text: reduce(["background", "color"], value.text),
364
- border: reduce(["background", "color", "style", "radius", "width"], value.border),
365
- gap: typeof value.gap == "string" ? value.gap : undefined,
366
- dangerColor: typeof value.dangerColor == "string"
367
- ? value.dangerColor
368
- : typeof value.danger_color == "string"
369
- ? value.danger_color
370
- : undefined,
371
- fontFamily: typeof value.fontFamily == "string"
372
- ? value.fontFamily
373
- : typeof value.font_family == "string"
374
- ? value.font_family
375
- : undefined,
376
- background: typeof value.background == "string" ? value.background : undefined,
377
- };
378
- Object.keys(result).forEach((key) => {
379
- var _a;
380
- if (result[key] == undefined ||
381
- (typeof result[key] == "object" && result[key] && Object.keys((_a = result[key]) !== null && _a !== void 0 ? _a : {}).length == 0)) {
382
- delete result[key];
383
- }
384
- });
385
- }
386
- return result;
22
+ exports.App = index.App;
23
+ Object.defineProperty(exports, 'Cosmetic', {
24
+ enumerable: true,
25
+ get: function () {
26
+ return index.Cosmetic;
387
27
  }
388
- Cosmetic.from = from;
389
- Cosmetic.Color = Color;
390
- })(exports.Cosmetic || (exports.Cosmetic = {}));
391
-
392
- exports.App = Notice.App;
393
- exports.Notice = Notice.Notice;
28
+ });
29
+ exports.Notice = index.Notice;
30
+ exports.redirect = index.redirect;
394
31
  exports.Message = Trigger.Message;
395
32
  exports.Trigger = Trigger.Trigger;
396
33
  Object.defineProperty(exports, 'GoogleFont', {
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1c61bdd3.js');
5
+ const index = require('./index-3efe2a41.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Esm v2.17.4 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchEsm = () => {
11
11
  return index.promiseResolve();
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["smoothly-google-font.cjs",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder.cjs",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink.cjs",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source.cjs",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-accordion_51.cjs",[[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);
17
+ return index.bootstrapLazy([["smoothly-google-font.cjs",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder.cjs",[[0,"smoothly-reorder"]]],["smoothly-svg.cjs",[[2,"smoothly-svg",{"url":[513],"size":[513],"color":[1]}]]],["smoothly-trigger-sink.cjs",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source.cjs",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-accordion_50.cjs",[[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);
18
18
  });
19
19
  };
20
20