smoothly 0.3.30 → 0.3.32

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 (114) hide show
  1. package/dist/cjs/{getLanguage-aa9af88b.js → getLanguage-430ecf04.js} +7 -0
  2. package/dist/cjs/{index-7b75b331.js → index-879bbabb.js} +19 -19
  3. package/dist/cjs/{index-3fb97927.js → index-de46f836.js} +7 -1
  4. package/dist/cjs/index.cjs.js +2 -2
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/smoothly-accordion_53.cjs.entry.js +129 -6
  7. package/dist/cjs/smoothly-country.cjs.entry.js +4 -2
  8. package/dist/cjs/smoothly-google-font.cjs.entry.js +2 -1
  9. package/dist/cjs/smoothly-radio-group.cjs.entry.js +1 -1
  10. package/dist/cjs/smoothly-reorder.cjs.entry.js +1 -1
  11. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +4 -1
  12. package/dist/cjs/smoothly-trigger-source.cjs.entry.js +2 -1
  13. package/dist/cjs/smoothly.cjs.js +2 -2
  14. package/dist/collection/collection-manifest.json +2 -2
  15. package/dist/collection/components/accordion/index.js +1 -0
  16. package/dist/collection/components/accordion-item/index.js +5 -0
  17. package/dist/collection/components/app/index.js +3 -0
  18. package/dist/collection/components/app-demo/index.js +3 -0
  19. package/dist/collection/components/backtotop/index.js +1 -0
  20. package/dist/collection/components/button/index.js +5 -0
  21. package/dist/collection/components/calendar/index.js +8 -1
  22. package/dist/collection/components/checkbox/index.js +4 -0
  23. package/dist/collection/components/country/index.js +2 -0
  24. package/dist/collection/components/dialog/index.js +2 -0
  25. package/dist/collection/components/display/index.js +7 -0
  26. package/dist/collection/components/display-amount/index.js +2 -0
  27. package/dist/collection/components/display-date-time/index.js +3 -0
  28. package/dist/collection/components/frame/index.js +5 -0
  29. package/dist/collection/components/google-font/index.js +3 -0
  30. package/dist/collection/components/icon/index.js +4 -0
  31. package/dist/collection/components/input/index.js +6 -0
  32. package/dist/collection/components/input-date/index.js +8 -0
  33. package/dist/collection/components/input-date-range/index.js +6 -0
  34. package/dist/collection/components/input-month/index.js +3 -0
  35. package/dist/collection/components/item/index.js +5 -0
  36. package/dist/collection/components/menu-options/index.js +3 -0
  37. package/dist/collection/components/notification/index.js +2 -1
  38. package/dist/collection/components/option/index.js +5 -0
  39. package/dist/collection/components/picker/index.js +6 -0
  40. package/dist/collection/components/quiet/index.js +3 -0
  41. package/dist/collection/components/radio/index.js +6 -0
  42. package/dist/collection/components/radio-button/index.js +3 -0
  43. package/dist/collection/components/radio-button/item/index.js +5 -0
  44. package/dist/collection/components/room/index.js +6 -0
  45. package/dist/collection/components/select/index.js +5 -0
  46. package/dist/collection/components/selector/index.js +3 -1
  47. package/dist/collection/components/skeleton/index.js +4 -0
  48. package/dist/collection/components/spinner/index.js +1 -0
  49. package/dist/collection/components/submit/index.js +5 -0
  50. package/dist/collection/components/svg/index.js +3 -0
  51. package/dist/collection/components/tab/index.js +4 -0
  52. package/dist/collection/components/tab-switch/index.js +3 -0
  53. package/dist/collection/components/table/expandable/cell/index.js +1 -0
  54. package/dist/collection/components/table/expandable/row/index.js +1 -0
  55. package/dist/collection/components/table/header/index.js +3 -0
  56. package/dist/collection/components/trigger/index.js +5 -0
  57. package/dist/collection/components/trigger-sink/index.js +5 -0
  58. package/dist/collection/components/trigger-source/index.js +3 -0
  59. package/dist/collection/components/tuple/index.js +3 -0
  60. package/dist/collection/components/urlencoded/index.js +3 -0
  61. package/dist/collection/model/Listenable.js +29 -16
  62. package/dist/collection/model/Notice.js +18 -18
  63. package/dist/collection/model/index.js +1 -0
  64. package/dist/custom-elements/index.js +158 -21
  65. package/dist/esm/{getLanguage-3dbe8ccd.js → getLanguage-cccb8418.js} +7 -0
  66. package/dist/esm/{index-fcf8bdd3.js → index-d3421c35.js} +7 -1
  67. package/dist/esm/{index-3b463176.js → index-d7a4e405.js} +19 -19
  68. package/dist/esm/index.js +2 -2
  69. package/dist/esm/loader.js +2 -2
  70. package/dist/esm/polyfills/css-shim.js +1 -1
  71. package/dist/esm/smoothly-accordion_53.entry.js +129 -6
  72. package/dist/esm/smoothly-country.entry.js +4 -2
  73. package/dist/esm/smoothly-google-font.entry.js +2 -1
  74. package/dist/esm/smoothly-radio-group.entry.js +1 -1
  75. package/dist/esm/smoothly-reorder.entry.js +1 -1
  76. package/dist/esm/smoothly-trigger-sink.entry.js +4 -1
  77. package/dist/esm/smoothly-trigger-source.entry.js +2 -1
  78. package/dist/esm/smoothly.js +2 -2
  79. package/dist/smoothly/index.esm.js +1 -1
  80. package/dist/smoothly/{p-af90d05a.js → p-4a0b35b7.js} +0 -0
  81. package/dist/smoothly/p-5b6351f6.js +1 -0
  82. package/dist/smoothly/{p-f67259c5.entry.js → p-5d41e3ca.entry.js} +1 -1
  83. package/dist/smoothly/{p-6acd7162.entry.js → p-6630d923.entry.js} +1 -1
  84. package/dist/smoothly/{p-a1c137fc.entry.js → p-7db49a38.entry.js} +1 -1
  85. package/dist/smoothly/{p-e5191036.js → p-94e08cee.js} +1 -1
  86. package/dist/smoothly/p-c9bb4a18.entry.js +1 -0
  87. package/dist/smoothly/p-e0f4957d.entry.js +1 -0
  88. package/dist/smoothly/p-eb4e2500.entry.js +1 -0
  89. package/dist/smoothly/p-f97fcb32.entry.js +1 -0
  90. package/dist/smoothly/smoothly.esm.js +1 -1
  91. package/dist/types/components/submit/Data.d.ts +1 -1
  92. package/dist/types/components.d.ts +12 -0
  93. package/dist/types/model/Autocomplete.d.ts +1 -1
  94. package/dist/types/model/Color.d.ts +1 -1
  95. package/dist/types/model/Expand.d.ts +1 -1
  96. package/dist/types/model/Fill.d.ts +1 -1
  97. package/dist/types/model/GoogleFont.d.ts +1 -1
  98. package/dist/types/model/Listenable.d.ts +9 -5
  99. package/dist/types/model/Option.d.ts +1 -1
  100. package/dist/types/model/index.d.ts +1 -0
  101. package/dist/types/stencil-public-runtime.d.ts +44 -3
  102. package/dist/types/utilities/Cosmetic/Color/CommaRgb.d.ts +1 -1
  103. package/dist/types/utilities/Cosmetic/Color/Hex.d.ts +1 -1
  104. package/dist/types/utilities/Cosmetic/Color/Hsl.d.ts +1 -1
  105. package/dist/types/utilities/Cosmetic/Color/Name.d.ts +1 -1
  106. package/dist/types/utilities/Cosmetic/Color/Rgb.d.ts +1 -1
  107. package/dist/types/utilities/Cosmetic/Color/index.d.ts +1 -1
  108. package/dist/types/utilities/Cosmetic/index.d.ts +1 -1
  109. package/package.json +30 -3
  110. package/dist/smoothly/p-0833f25c.entry.js +0 -1
  111. package/dist/smoothly/p-2bf8c660.entry.js +0 -1
  112. package/dist/smoothly/p-3bd18eea.entry.js +0 -1
  113. package/dist/smoothly/p-41e29ef7.js +0 -1
  114. package/dist/smoothly/p-9fd866e2.entry.js +0 -1
@@ -20,23 +20,36 @@ export class Listenable {
20
20
  const index = (_a = __classPrivateFieldGet(this, _Listenable_listeners, "f")[property]) === null || _a === void 0 ? void 0 : _a.indexOf(listener);
21
21
  index != undefined && index >= 0 && ((_b = __classPrivateFieldGet(this, _Listenable_listeners, "f")[property]) === null || _b === void 0 ? void 0 : _b.splice(index, 1));
22
22
  }
23
- static load(backend) {
24
- const result = new Listenable();
25
- for (const property in backend) {
26
- if (Object.prototype.hasOwnProperty.call(backend, property)) {
27
- Object.defineProperty(result, property, {
28
- get() {
29
- return backend[property];
30
- },
31
- set(value) {
32
- var _a;
33
- backend[property] = value;
34
- (_a = __classPrivateFieldGet(result, _Listenable_listeners, "f")[property]) === null || _a === void 0 ? void 0 : _a.forEach(listener => listener(value));
35
- },
36
- });
37
- }
23
+ static load(backend, listenable) {
24
+ const result = listenable !== null && listenable !== void 0 ? listenable : new Listenable();
25
+ return Object.defineProperties(result, getProperties(backend));
26
+ function getProperties(backend) {
27
+ return Object.fromEntries(Object.entries(Object.assign(Object.assign({}, Object.getOwnPropertyDescriptors(backend)), Object.getOwnPropertyDescriptors(Object.getPrototypeOf(backend)))).map(([name, descriptor]) => [
28
+ name,
29
+ typeof descriptor.value == "function"
30
+ ? {
31
+ get() {
32
+ return backend[name].bind(backend);
33
+ },
34
+ }
35
+ : descriptor.writable || descriptor.set
36
+ ? {
37
+ get() {
38
+ return backend[name];
39
+ },
40
+ set(value) {
41
+ var _a;
42
+ backend[name] = value;
43
+ (_a = __classPrivateFieldGet(result, _Listenable_listeners, "f")[name]) === null || _a === void 0 ? void 0 : _a.forEach(listener => listener(value));
44
+ },
45
+ }
46
+ : {
47
+ get() {
48
+ return backend[name].bind(backend);
49
+ },
50
+ },
51
+ ]));
38
52
  }
39
- return result;
40
53
  }
41
54
  }
42
55
  _Listenable_listeners = new WeakMap();
@@ -1,4 +1,22 @@
1
1
  export class Notice {
2
+ get state() {
3
+ return this.stateValue;
4
+ }
5
+ set state(value) {
6
+ if (this.stateValue != value) {
7
+ this.stateValue = value;
8
+ this.emit();
9
+ }
10
+ }
11
+ get message() {
12
+ return this.messageValue;
13
+ }
14
+ set message(value) {
15
+ if (this.messageValue != value) {
16
+ this.messageValue = value;
17
+ this.emit();
18
+ }
19
+ }
2
20
  constructor(stateValue, messageValue, task) {
3
21
  this.stateValue = stateValue;
4
22
  this.messageValue = messageValue;
@@ -20,24 +38,6 @@ export class Notice {
20
38
  break;
21
39
  }
22
40
  }
23
- get state() {
24
- return this.stateValue;
25
- }
26
- set state(value) {
27
- if (this.stateValue != value) {
28
- this.stateValue = value;
29
- this.emit();
30
- }
31
- }
32
- get message() {
33
- return this.messageValue;
34
- }
35
- set message(value) {
36
- if (this.messageValue != value) {
37
- this.messageValue = value;
38
- this.emit();
39
- }
40
- }
41
41
  listen(listener) {
42
42
  this.listeners.push(listener);
43
43
  }
@@ -3,3 +3,4 @@ export { GoogleFont } from "./GoogleFont";
3
3
  export { Message } from "./Message";
4
4
  export { Notice } from "./Notice";
5
5
  export { Trigger } from "./Trigger";
6
+ export { Listenable } from "./Listenable";
@@ -1129,6 +1129,24 @@ class Message {
1129
1129
  }
1130
1130
 
1131
1131
  class Notice {
1132
+ get state() {
1133
+ return this.stateValue;
1134
+ }
1135
+ set state(value) {
1136
+ if (this.stateValue != value) {
1137
+ this.stateValue = value;
1138
+ this.emit();
1139
+ }
1140
+ }
1141
+ get message() {
1142
+ return this.messageValue;
1143
+ }
1144
+ set message(value) {
1145
+ if (this.messageValue != value) {
1146
+ this.messageValue = value;
1147
+ this.emit();
1148
+ }
1149
+ }
1132
1150
  constructor(stateValue, messageValue, task) {
1133
1151
  this.stateValue = stateValue;
1134
1152
  this.messageValue = messageValue;
@@ -1148,24 +1166,6 @@ class Notice {
1148
1166
  break;
1149
1167
  }
1150
1168
  }
1151
- get state() {
1152
- return this.stateValue;
1153
- }
1154
- set state(value) {
1155
- if (this.stateValue != value) {
1156
- this.stateValue = value;
1157
- this.emit();
1158
- }
1159
- }
1160
- get message() {
1161
- return this.messageValue;
1162
- }
1163
- set message(value) {
1164
- if (this.messageValue != value) {
1165
- this.messageValue = value;
1166
- this.emit();
1167
- }
1168
- }
1169
1169
  listen(listener) {
1170
1170
  this.listeners.push(listener);
1171
1171
  }
@@ -1601,6 +1601,7 @@ const SmoothlyAccordion$1 = class extends HTMLElement {
1601
1601
  super();
1602
1602
  this.__registerHost();
1603
1603
  this.items = [];
1604
+ this.value = undefined;
1604
1605
  }
1605
1606
  valueChanged(value) {
1606
1607
  this.updateItems();
@@ -1653,6 +1654,9 @@ const SmoothlyAccordionItem$1 = class extends HTMLElement {
1653
1654
  this.smoothlyAccordionItemDidUnload = createEvent(this, "smoothlyAccordionItemDidUnload", 7);
1654
1655
  this.smoothlyOpen = createEvent(this, "smoothlyOpen", 7);
1655
1656
  this.smoothlyClose = createEvent(this, "smoothlyClose", 7);
1657
+ this.name = undefined;
1658
+ this.brand = undefined;
1659
+ this.open = undefined;
1656
1660
  }
1657
1661
  openChanged(isChecked) {
1658
1662
  this.open = isChecked;
@@ -1697,6 +1701,7 @@ const SmoothlyApp$1 = class extends HTMLElement {
1697
1701
  constructor() {
1698
1702
  super();
1699
1703
  this.__registerHost();
1704
+ this.color = undefined;
1700
1705
  }
1701
1706
  render() {
1702
1707
  return (h("smoothly-notifier", null, h("slot", null)));
@@ -1708,6 +1713,7 @@ const SmoothlyAppDemo$1 = class extends HTMLElement {
1708
1713
  constructor() {
1709
1714
  super();
1710
1715
  this.__registerHost();
1716
+ this.baseUrl = undefined;
1711
1717
  }
1712
1718
  render() {
1713
1719
  return (h(App, { label: "Smoothly Demo" }, h("a", { slot: "nav-start", href: "display" }, "Display"), h("a", { slot: "nav-start", href: "https://google.com" }, "External"), h("smoothly-room", { path: "" }, h("smoothly-input", { type: "text" }, "Default"), h("div", { style: { padding: "1em", maxWidth: "12em" } }, h("smoothly-button", { fill: "solid", color: "danger", link: "https://google.com" }, "open"), h("smoothly-button", { fill: "solid", color: "danger", link: "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf", download: true }, "download"), h("smoothly-button", { fill: "solid", color: "danger", onClick: () => alert("clicked") }, "action"), h("smoothly-button", { disabled: true, fill: "solid", color: "danger", onClick: () => alert("clicked") }, "action"), h("smoothly-button", { type: "link", fill: "clear", color: "danger", onClick: () => alert("clicked") }, "action link"))), h("smoothly-room", { path: "input", label: "Input" }, h("smoothly-input-demo", null)), h("smoothly-room", { path: "dialog", label: "Dialog" }, h("smoothly-dialog-demo", null)), h("smoothly-room", { path: "display", label: "Display", icon: "eye-outline" }, h("smoothly-display-demo", null)), h("smoothly-room", { path: "table", label: "Table" }, h("smoothly-table-demo", null)), h("smoothly-room", { path: "select", label: "Select" }, h("smoothly-select-demo", null)), h("smoothly-room", { path: "icon", label: "Icon" }, h("smoothly-icon-demo", null)), h("smoothly-room", { path: "/redirect", label: "Redirect" }, h("smoothly-button", { style: { "max-width": "300px" }, onClick: () => {
@@ -1739,6 +1745,7 @@ const SmoothlyBacktotop$1 = class extends HTMLElement {
1739
1745
  this.opacity = "0.5";
1740
1746
  this.bottom = "1rem";
1741
1747
  this.right = "1rem";
1748
+ this.visible = undefined;
1742
1749
  }
1743
1750
  componentWillLoad() {
1744
1751
  window.addEventListener("scroll", () => {
@@ -1767,8 +1774,13 @@ const SmoothlyButton$1 = class extends HTMLElement {
1767
1774
  constructor() {
1768
1775
  super();
1769
1776
  this.__registerHost();
1777
+ this.color = undefined;
1778
+ this.expand = undefined;
1779
+ this.fill = undefined;
1770
1780
  this.disabled = false;
1771
1781
  this.type = "button";
1782
+ this.link = undefined;
1783
+ this.download = undefined;
1772
1784
  }
1773
1785
  render() {
1774
1786
  let result;
@@ -17609,6 +17621,13 @@ var DateRange$1;
17609
17621
  : { start: end, end: start };
17610
17622
  }
17611
17623
  DateRange.create = create;
17624
+ function toDates(value, includeLast = true) {
17625
+ const result = [];
17626
+ for (let current = value.start; includeLast ? current <= value.end : current < value.end; current = Date$2.next(current))
17627
+ result.push(current);
17628
+ return result;
17629
+ }
17630
+ DateRange.toDates = toDates;
17612
17631
  function getDays(value) {
17613
17632
  const result = value.start <= value.end
17614
17633
  ? Math.ceil((new globalThis.Date(value.end).getTime() - new globalThis.Date(value.start).getTime()) / (1000 * 3600 * 24))
@@ -19878,8 +19897,15 @@ const Calendar = class extends HTMLElement {
19878
19897
  this.endChanged = createEvent(this, "endChanged", 7);
19879
19898
  this.dateSet = createEvent(this, "dateSet", 7);
19880
19899
  this.dateRangeSet = createEvent(this, "dateRangeSet", 7);
19881
- this.value = Date$2.now();
19882
19900
  this.clickCounter = 0;
19901
+ this.month = undefined;
19902
+ this.value = Date$2.now();
19903
+ this.start = undefined;
19904
+ this.end = undefined;
19905
+ this.max = undefined;
19906
+ this.min = undefined;
19907
+ this.doubleInput = undefined;
19908
+ this.firstSelected = undefined;
19883
19909
  }
19884
19910
  onStart(next) {
19885
19911
  this.startChanged.emit(next);
@@ -25900,6 +25926,10 @@ const SmoothlyCheckbox$1 = class extends HTMLElement {
25900
25926
  this.checked = createEvent(this, "checked", 7);
25901
25927
  this.selectAll = false;
25902
25928
  this.size = "small";
25929
+ this.intermediate = undefined;
25930
+ this.selected = undefined;
25931
+ this.disabled = undefined;
25932
+ this.t = undefined;
25903
25933
  }
25904
25934
  componentWillLoad() {
25905
25935
  this.t = create(this.element);
@@ -25925,7 +25955,9 @@ const SmoothlyCountry$1 = class extends HTMLElement {
25925
25955
  constructor() {
25926
25956
  super();
25927
25957
  this.__registerHost();
25958
+ this.value = undefined;
25928
25959
  this.text = "alpha2";
25960
+ this.language = undefined;
25929
25961
  }
25930
25962
  componentWillLoad() {
25931
25963
  this.language = getLanguage(this.element);
@@ -25946,8 +25978,10 @@ const SmoothlyDialog$1 = class extends HTMLElement {
25946
25978
  constructor() {
25947
25979
  super();
25948
25980
  this.__registerHost();
25981
+ this.color = undefined;
25949
25982
  this.open = true;
25950
25983
  this.closable = false;
25984
+ this.header = undefined;
25951
25985
  }
25952
25986
  TriggerListener(event) {
25953
25987
  if (Trigger.is(event.detail) && event.detail.name == "close")
@@ -46196,6 +46230,11 @@ const SmoothlyDisplay$1 = class extends HTMLElement {
46196
46230
  constructor() {
46197
46231
  super();
46198
46232
  this.__registerHost();
46233
+ this.type = undefined;
46234
+ this.value = undefined;
46235
+ this.currency = undefined;
46236
+ this.country = undefined;
46237
+ this.format = undefined;
46199
46238
  }
46200
46239
  render() {
46201
46240
  var _a, _b;
@@ -46241,6 +46280,8 @@ const SmoothlyDisplayAmount$1 = class extends HTMLElement {
46241
46280
  constructor() {
46242
46281
  super();
46243
46282
  this.__registerHost();
46283
+ this.amount = undefined;
46284
+ this.currency = undefined;
46244
46285
  this.toInteger = false;
46245
46286
  }
46246
46287
  format(amount) {
@@ -46293,6 +46334,7 @@ const SmoothlyDisplayDateTime$1 = class extends HTMLElement {
46293
46334
  constructor() {
46294
46335
  super();
46295
46336
  this.__registerHost();
46337
+ this.datetime = undefined;
46296
46338
  }
46297
46339
  componentWillLoad() {
46298
46340
  console.warn('Component <smoothly-display-date-time> is deprecated, use <smoothly-display type="date-time">.');
@@ -46329,6 +46371,9 @@ const SmoothlyFrame$1 = class extends HTMLElement {
46329
46371
  this.__registerHost();
46330
46372
  this.trigger = createEvent(this, "trigger", 7);
46331
46373
  this.message = createEvent(this, "message", 7);
46374
+ this.url = undefined;
46375
+ this.name = undefined;
46376
+ this.origin = undefined;
46332
46377
  }
46333
46378
  get contentWindow() {
46334
46379
  const iframe = this.element && this.element.firstElementChild ? this.element.firstElementChild : undefined;
@@ -46367,6 +46412,7 @@ const SmoothlyGoogleFont$1 = class extends HTMLElement {
46367
46412
  constructor() {
46368
46413
  super();
46369
46414
  this.__registerHost();
46415
+ this.value = undefined;
46370
46416
  }
46371
46417
  render() {
46372
46418
  return GoogleFont.is(this.value) ? h("style", null, GoogleFont.styleImportString(this.value)) : "";
@@ -46379,8 +46425,12 @@ const SmoothlyIcon$1 = class extends HTMLElement {
46379
46425
  constructor() {
46380
46426
  super();
46381
46427
  this.__registerHost();
46428
+ this.color = undefined;
46382
46429
  this.fill = "solid";
46430
+ this.name = undefined;
46383
46431
  this.size = "medium";
46432
+ this.toolTip = undefined;
46433
+ this.document = undefined;
46384
46434
  }
46385
46435
  async loadDocument() {
46386
46436
  if (this.name)
@@ -46914,14 +46964,20 @@ const SmoothlyInput$1 = class extends HTMLElement {
46914
46964
  this.smoothlyChange = createEvent(this, "smoothlyChange", 7);
46915
46965
  this.smoothlyInput = createEvent(this, "smoothlyInput", 7);
46916
46966
  this.keepFocusOnReRender = false;
46967
+ this.name = undefined;
46968
+ this.value = undefined;
46917
46969
  this.type = "text";
46918
46970
  this.required = false;
46919
46971
  this.minLength = 0;
46920
46972
  this.showLabel = true;
46921
46973
  this.maxLength = Number.POSITIVE_INFINITY;
46922
46974
  this.autocomplete = true;
46975
+ this.pattern = undefined;
46976
+ this.placeholder = undefined;
46923
46977
  this.disabled = false;
46924
46978
  this.readonly = false;
46979
+ this.currency = undefined;
46980
+ this.initialValue = undefined;
46925
46981
  }
46926
46982
  get formatter() {
46927
46983
  let result;
@@ -47119,6 +47175,12 @@ const InputDate = class extends HTMLElement {
47119
47175
  super();
47120
47176
  this.__registerHost();
47121
47177
  this.valueChanged = createEvent(this, "valueChanged", 7);
47178
+ this.name = undefined;
47179
+ this.value = undefined;
47180
+ this.open = undefined;
47181
+ this.max = undefined;
47182
+ this.min = undefined;
47183
+ this.disabled = undefined;
47122
47184
  }
47123
47185
  onStart(next) {
47124
47186
  this.valueChanged.emit(next);
@@ -47156,6 +47218,12 @@ const InputDateRange = class extends HTMLElement {
47156
47218
  this.__registerHost();
47157
47219
  this.valueChanged = createEvent(this, "valueChanged", 7);
47158
47220
  this.dateRangeSelected = createEvent(this, "dateRangeSelected", 7);
47221
+ this.value = undefined;
47222
+ this.start = undefined;
47223
+ this.end = undefined;
47224
+ this.max = undefined;
47225
+ this.min = undefined;
47226
+ this.open = undefined;
47159
47227
  this.showLabel = true;
47160
47228
  this.labelStart = "from";
47161
47229
  this.labelEnd = "to";
@@ -47212,6 +47280,7 @@ const MonthSelector = class extends HTMLElement {
47212
47280
  super();
47213
47281
  this.__registerHost();
47214
47282
  this.valueChanged = createEvent(this, "valueChanged", 7);
47283
+ this.value = undefined;
47215
47284
  }
47216
47285
  onValueChanged(next) {
47217
47286
  this.valueChanged.emit(next);
@@ -47244,6 +47313,9 @@ const Item = class extends HTMLElement {
47244
47313
  super();
47245
47314
  this.__registerHost();
47246
47315
  this.itemSelected = createEvent(this, "itemSelected", 7);
47316
+ this.value = undefined;
47317
+ this.selected = undefined;
47318
+ this.marked = undefined;
47247
47319
  }
47248
47320
  onSelectedChanged(value, old) {
47249
47321
  if (value && !old)
@@ -47285,10 +47357,13 @@ const SmoothlyMenuOptions$1 = class extends HTMLElement {
47285
47357
  this.optionElements = [];
47286
47358
  this.filteredOptions = [];
47287
47359
  this.highlightIndex = 0;
47360
+ this.keyword = undefined;
47288
47361
  this.toggle = false;
47289
47362
  this.emptyMenuLabel = "No Options";
47290
47363
  this.newOptionLabel = "Add:";
47364
+ this.maxMenuHeight = undefined;
47291
47365
  this.order = false;
47366
+ this.optionStyle = undefined;
47292
47367
  this.options = [];
47293
47368
  this.resetHighlightOnOptionsChange = true;
47294
47369
  this.mutable = false;
@@ -47394,7 +47469,6 @@ const Notification = class extends HTMLElement {
47394
47469
  super();
47395
47470
  this.__registerHost();
47396
47471
  this.remove = createEvent(this, "remove", 7);
47397
- this.tick = {};
47398
47472
  this.listener = notice => {
47399
47473
  console.log("changed: ", notice);
47400
47474
  if (notice.state == "closed")
@@ -47402,6 +47476,8 @@ const Notification = class extends HTMLElement {
47402
47476
  else
47403
47477
  this.tick = {};
47404
47478
  };
47479
+ this.notice = undefined;
47480
+ this.tick = {};
47405
47481
  }
47406
47482
  get color() {
47407
47483
  let result;
@@ -47482,8 +47558,13 @@ const SmoothlyOption$1 = class extends HTMLElement {
47482
47558
  this.optionSelect = createEvent(this, "optionSelect", 7);
47483
47559
  this.optionUnselect = createEvent(this, "optionUnselect", 7);
47484
47560
  this.optionAdd = createEvent(this, "optionAdd", 7);
47561
+ this.aliases = undefined;
47485
47562
  this.dataHighlight = false;
47563
+ this.name = undefined;
47564
+ this.value = undefined;
47486
47565
  this.divider = false;
47566
+ this.checkbox = undefined;
47567
+ this.new = undefined;
47487
47568
  this.toggle = false;
47488
47569
  this.checked = false;
47489
47570
  }
@@ -47519,13 +47600,19 @@ const SmoothlyPicker$1 = class extends HTMLElement {
47519
47600
  this.menuClose = createEvent(this, "menuClose", 7);
47520
47601
  this.notice = createEvent(this, "notice", 7);
47521
47602
  this.keepFocusOnReRender = false;
47603
+ this.isOpen = undefined;
47604
+ this.empty = undefined;
47522
47605
  this.disabled = false;
47523
47606
  this.readonly = false;
47524
47607
  this.maxMenuHeight = "inherit";
47608
+ this.maxHeight = undefined;
47525
47609
  this.emptyMenuLabel = "No Options";
47526
47610
  this.multiple = false;
47527
47611
  this.mutable = false;
47612
+ this.optionStyle = undefined;
47528
47613
  this.options = [];
47614
+ this.labelSetting = undefined;
47615
+ this.label = undefined;
47529
47616
  this.selections = [];
47530
47617
  this.selectNoneName = "Select None";
47531
47618
  this.selectAllName = "Select All";
@@ -47729,6 +47816,7 @@ const SmoothlyQuiet$1 = class extends HTMLElement {
47729
47816
  constructor() {
47730
47817
  super();
47731
47818
  this.__registerHost();
47819
+ this.color = undefined;
47732
47820
  }
47733
47821
  render() {
47734
47822
  return (h(Host, { color: this.color }, h("slot", null)));
@@ -47743,6 +47831,10 @@ const SmoothlyRadio$1 = class extends HTMLElement {
47743
47831
  super();
47744
47832
  this.__registerHost();
47745
47833
  this.smoothlySelected = createEvent(this, "smoothlySelected", 7);
47834
+ this.name = undefined;
47835
+ this.value = undefined;
47836
+ this.checked = undefined;
47837
+ this.tabIndex = undefined;
47746
47838
  }
47747
47839
  async onInput(e) {
47748
47840
  if (e.target && e.target.value && (this.checked = e.target.checked))
@@ -47765,6 +47857,9 @@ const SmoothlyRadioButton$1 = class extends HTMLElement {
47765
47857
  super();
47766
47858
  this.__registerHost();
47767
47859
  this.radioButtonSelected = createEvent(this, "radioButtonSelected", 7);
47860
+ this.name = undefined;
47861
+ this.value = undefined;
47862
+ this.deselectable = undefined;
47768
47863
  this.decoration = "radio";
47769
47864
  }
47770
47865
  radioSelectHandler(event) {
@@ -47792,6 +47887,9 @@ const SmoothlyRadioButtonItem$1 = class extends HTMLElement {
47792
47887
  super();
47793
47888
  this.__registerHost();
47794
47889
  this.radioItemSelectInternal = createEvent(this, "radioItemSelectInternal", 7);
47890
+ this.value = undefined;
47891
+ this.selected = undefined;
47892
+ this.color = undefined;
47795
47893
  }
47796
47894
  componentWillLoad() {
47797
47895
  this.selected && this.select(this.selected);
@@ -47924,6 +48022,10 @@ const SmoothlyRoom$1 = class extends HTMLElement {
47924
48022
  constructor() {
47925
48023
  super();
47926
48024
  this.__registerHost();
48025
+ this.label = undefined;
48026
+ this.icon = undefined;
48027
+ this.path = undefined;
48028
+ this.to = undefined;
47927
48029
  }
47928
48030
  render() {
47929
48031
  return h("slot", null);
@@ -47937,6 +48039,9 @@ const SmoothlySelect$1 = class extends HTMLElement {
47937
48039
  super();
47938
48040
  this.__registerHost();
47939
48041
  this.selectionChanged = createEvent(this, "selectionChanged", 7);
48042
+ this.identifier = undefined;
48043
+ this.background = undefined;
48044
+ this.value = undefined;
47940
48045
  }
47941
48046
  optionSelected() {
47942
48047
  if (this.selectElement)
@@ -48053,8 +48158,10 @@ const Selector = class extends HTMLElement {
48053
48158
  super();
48054
48159
  this.__registerHost();
48055
48160
  this.selected = createEvent(this, "selected", 7);
48056
- this.opened = false;
48057
48161
  this.items = [];
48162
+ this.initialPrompt = undefined;
48163
+ this.opened = false;
48164
+ this.selectedElement = undefined;
48058
48165
  this.missing = false;
48059
48166
  this.filter = "";
48060
48167
  }
@@ -48183,6 +48290,10 @@ const SmoothlySkeleton$1 = class extends HTMLElement {
48183
48290
  super();
48184
48291
  this.__registerHost();
48185
48292
  this.widths = ["8rem", "9rem", "10rem"];
48293
+ this.width = undefined;
48294
+ this.color = undefined;
48295
+ this.period = undefined;
48296
+ this.distance = undefined;
48186
48297
  this.align = "left";
48187
48298
  }
48188
48299
  componentWillLoad() {
@@ -48203,6 +48314,7 @@ const SmoothlySpinner$1 = class extends HTMLElement {
48203
48314
  constructor() {
48204
48315
  super();
48205
48316
  this.__registerHost();
48317
+ this.active = undefined;
48206
48318
  this.size = "large";
48207
48319
  }
48208
48320
  render() {
@@ -48235,7 +48347,12 @@ const SmoothlySubmit$1 = class extends HTMLElement {
48235
48347
  super();
48236
48348
  this.__registerHost();
48237
48349
  this.submitEvent = createEvent(this, "submit", 7);
48350
+ this.processing = undefined;
48351
+ this.color = undefined;
48352
+ this.expand = undefined;
48353
+ this.fill = undefined;
48238
48354
  this.disabled = false;
48355
+ this.prevent = undefined;
48239
48356
  }
48240
48357
  get form() {
48241
48358
  return (this.button && this.button.form) || undefined;
@@ -48294,6 +48411,9 @@ const SmoothlySvg$1 = class extends HTMLElement {
48294
48411
  small: { height: "10rem", width: "10rem" },
48295
48412
  tiny: { height: "5rem", width: "5rem" },
48296
48413
  };
48414
+ this.url = undefined;
48415
+ this.size = undefined;
48416
+ this.color = undefined;
48297
48417
  }
48298
48418
  render() {
48299
48419
  const height = this.size
@@ -48324,6 +48444,8 @@ const SmoothlyTab$1 = class extends HTMLElement {
48324
48444
  super();
48325
48445
  this.__registerHost();
48326
48446
  this.expansionOpen = createEvent(this, "expansionOpen", 7);
48447
+ this.label = undefined;
48448
+ this.open = undefined;
48327
48449
  }
48328
48450
  openChanged() {
48329
48451
  if (this.expansionElement) {
@@ -48354,6 +48476,7 @@ const SmoothlyTabSwitch$1 = class extends HTMLElement {
48354
48476
  constructor() {
48355
48477
  super();
48356
48478
  this.__registerHost();
48479
+ this.selectedElement = undefined;
48357
48480
  }
48358
48481
  openChanged(event) {
48359
48482
  event.stopPropagation();
@@ -48464,6 +48587,7 @@ const TableExpandableCell = class extends HTMLElement {
48464
48587
  this.allowSpotlight = true;
48465
48588
  this.spotlight = true;
48466
48589
  this.align = "left";
48590
+ this.open = undefined;
48467
48591
  }
48468
48592
  openChanged(value) {
48469
48593
  if (this.expansionElement)
@@ -48518,6 +48642,7 @@ const TableExpandableRow = class extends HTMLElement {
48518
48642
  this.allowSpotlight = true;
48519
48643
  this.spotlight = true;
48520
48644
  this.align = "left";
48645
+ this.open = undefined;
48521
48646
  }
48522
48647
  openChanged() {
48523
48648
  if (this.expansionElement)
@@ -48562,6 +48687,7 @@ const TableHeader = class extends HTMLElement {
48562
48687
  constructor() {
48563
48688
  super();
48564
48689
  this.__registerHost();
48690
+ this.name = undefined;
48565
48691
  }
48566
48692
  render() {
48567
48693
  return (h(Host, null, h("slot", null)));
@@ -48602,8 +48728,13 @@ const SmoothlyTrigger$1 = class extends HTMLElement {
48602
48728
  super();
48603
48729
  this.__registerHost();
48604
48730
  this.trigger = createEvent(this, "trigger", 7);
48731
+ this.color = undefined;
48732
+ this.expand = undefined;
48733
+ this.fill = undefined;
48605
48734
  this.disabled = false;
48606
48735
  this.type = "button";
48736
+ this.name = undefined;
48737
+ this.value = undefined;
48607
48738
  }
48608
48739
  onClick(e) {
48609
48740
  this.trigger.emit({ name: this.name, value: this.value });
@@ -48631,6 +48762,9 @@ const SmoothlyTriggerSink$1 = class extends HTMLElement {
48631
48762
  constructor() {
48632
48763
  super();
48633
48764
  this.__registerHost();
48765
+ this.context = undefined;
48766
+ this.destination = undefined;
48767
+ this.filter = undefined;
48634
48768
  }
48635
48769
  get filters() {
48636
48770
  if (!this.filtersValue)
@@ -48658,6 +48792,7 @@ const SmoothlyTriggerSource$1 = class extends HTMLElement {
48658
48792
  this.__registerHost();
48659
48793
  this.trigger = createEvent(this, "trigger", 7);
48660
48794
  this.message = createEvent(this, "message", 7);
48795
+ this.listen = undefined;
48661
48796
  }
48662
48797
  componentDidLoad() {
48663
48798
  Message.listen(this.listen, (destination, content) => {
@@ -48678,6 +48813,7 @@ const SmoothlyTuple$1 = class extends HTMLElement {
48678
48813
  constructor() {
48679
48814
  super();
48680
48815
  this.__registerHost();
48816
+ this.tuple = undefined;
48681
48817
  }
48682
48818
  render() {
48683
48819
  return [h("b", null, this.tuple[0]), ": ", this.tuple[1], h("br", null)];
@@ -48688,6 +48824,7 @@ const Urlencoded = class extends HTMLElement {
48688
48824
  constructor() {
48689
48825
  super();
48690
48826
  this.__registerHost();
48827
+ this.data = undefined;
48691
48828
  }
48692
48829
  render() {
48693
48830
  return this.data
@@ -3900,6 +3900,13 @@ var DateRange$1;
3900
3900
  : { start: end, end: start };
3901
3901
  }
3902
3902
  DateRange.create = create;
3903
+ function toDates(value, includeLast = true) {
3904
+ const result = [];
3905
+ for (let current = value.start; includeLast ? current <= value.end : current < value.end; current = Date$2.next(current))
3906
+ result.push(current);
3907
+ return result;
3908
+ }
3909
+ DateRange.toDates = toDates;
3903
3910
  function getDays(value) {
3904
3911
  const result = value.start <= value.end
3905
3912
  ? Math.ceil((new globalThis.Date(value.end).getTime() - new globalThis.Date(value.start).getTime()) / (1000 * 3600 * 24))
@@ -60,7 +60,6 @@ const isComplexType = (o) => {
60
60
  *
61
61
  * Modified for Stencil's compiler and vdom
62
62
  */
63
- // const stack: any[] = [];
64
63
  // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
65
64
  // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
66
65
  const h = (nodeName, vnodeData, ...children) => {
@@ -151,6 +150,13 @@ const newVNode = (tag, text) => {
151
150
  };
152
151
  const Host = {};
153
152
  const isHost = (node) => node && node.$tag$ === Host;
153
+ /**
154
+ * Implementation of {@link d.FunctionalUtilities} for Stencil's VDom.
155
+ *
156
+ * Note that these functions convert from {@link d.VNode} to
157
+ * {@link d.ChildNode} to give functional component developers a friendly
158
+ * interface.
159
+ */
154
160
  const vdomFnUtils = {
155
161
  forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
156
162
  map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),