smoothly 0.3.31 → 0.3.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Trigger-3443997e.js → Listenable-c8d2f8ef.js} +55 -0
- package/dist/cjs/{getLanguage-aa9af88b.js → getLanguage-430ecf04.js} +7 -0
- package/dist/cjs/{index-7b75b331.js → index-879bbabb.js} +19 -19
- package/dist/cjs/{index-3fb97927.js → index-de46f836.js} +7 -1
- package/dist/cjs/index.cjs.js +7 -6
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/smoothly-accordion_53.cjs.entry.js +136 -13
- package/dist/cjs/smoothly-country.cjs.entry.js +4 -2
- package/dist/cjs/smoothly-google-font.cjs.entry.js +2 -1
- package/dist/cjs/smoothly-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-reorder.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +7 -4
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +5 -4
- package/dist/cjs/smoothly.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/index.js +1 -0
- package/dist/collection/components/accordion-item/index.js +5 -0
- package/dist/collection/components/app/index.js +3 -0
- package/dist/collection/components/app-demo/index.js +3 -0
- package/dist/collection/components/backtotop/index.js +1 -0
- package/dist/collection/components/button/index.js +5 -0
- package/dist/collection/components/calendar/index.js +8 -1
- package/dist/collection/components/checkbox/index.js +4 -0
- package/dist/collection/components/country/index.js +2 -0
- package/dist/collection/components/dialog/index.js +2 -0
- package/dist/collection/components/display/index.js +7 -0
- package/dist/collection/components/display-amount/index.js +2 -0
- package/dist/collection/components/display-date-time/index.js +3 -0
- package/dist/collection/components/frame/index.js +5 -0
- package/dist/collection/components/google-font/index.js +3 -0
- package/dist/collection/components/icon/index.js +4 -0
- package/dist/collection/components/input/index.js +6 -0
- package/dist/collection/components/input-date/index.js +8 -0
- package/dist/collection/components/input-date-range/index.js +6 -0
- package/dist/collection/components/input-month/index.js +3 -0
- package/dist/collection/components/item/index.js +5 -0
- package/dist/collection/components/menu-options/index.js +3 -0
- package/dist/collection/components/notification/index.js +2 -1
- package/dist/collection/components/option/index.js +5 -0
- package/dist/collection/components/picker/index.js +6 -0
- package/dist/collection/components/quiet/index.js +3 -0
- package/dist/collection/components/radio/index.js +6 -0
- package/dist/collection/components/radio-button/index.js +3 -0
- package/dist/collection/components/radio-button/item/index.js +5 -0
- package/dist/collection/components/room/index.js +6 -0
- package/dist/collection/components/select/index.js +5 -0
- package/dist/collection/components/selector/index.js +3 -1
- package/dist/collection/components/skeleton/index.js +4 -0
- package/dist/collection/components/spinner/index.js +1 -0
- package/dist/collection/components/submit/index.js +5 -0
- package/dist/collection/components/svg/index.js +3 -0
- package/dist/collection/components/tab/index.js +4 -0
- package/dist/collection/components/tab-switch/index.js +3 -0
- package/dist/collection/components/table/expandable/cell/index.js +1 -0
- package/dist/collection/components/table/expandable/row/index.js +1 -0
- package/dist/collection/components/table/header/index.js +3 -0
- package/dist/collection/components/trigger/index.js +5 -0
- package/dist/collection/components/trigger-sink/index.js +5 -0
- package/dist/collection/components/trigger-source/index.js +3 -0
- package/dist/collection/components/tuple/index.js +3 -0
- package/dist/collection/components/urlencoded/index.js +3 -0
- package/dist/collection/index.js +1 -1
- package/dist/collection/model/Listenable.js +29 -16
- package/dist/collection/model/Notice.js +18 -18
- package/dist/collection/model/index.js +1 -0
- package/dist/custom-elements/index.js +213 -22
- package/dist/esm/{Trigger-327e506e.js → Listenable-55a1f6af.js} +55 -1
- package/dist/esm/{getLanguage-3dbe8ccd.js → getLanguage-cccb8418.js} +7 -0
- package/dist/esm/{index-fcf8bdd3.js → index-d3421c35.js} +7 -1
- package/dist/esm/{index-3b463176.js → index-d7a4e405.js} +19 -19
- package/dist/esm/index.js +4 -4
- package/dist/esm/loader.js +2 -2
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/smoothly-accordion_53.entry.js +130 -7
- package/dist/esm/smoothly-country.entry.js +4 -2
- package/dist/esm/smoothly-google-font.entry.js +2 -1
- package/dist/esm/smoothly-radio-group.entry.js +1 -1
- package/dist/esm/smoothly-reorder.entry.js +1 -1
- package/dist/esm/smoothly-trigger-sink.entry.js +5 -2
- package/dist/esm/smoothly-trigger-source.entry.js +3 -2
- package/dist/esm/smoothly.js +2 -2
- package/dist/smoothly/index.esm.js +1 -1
- package/dist/smoothly/p-156763cd.js +1 -0
- package/dist/smoothly/{p-af90d05a.js → p-4a0b35b7.js} +0 -0
- package/dist/smoothly/p-4a78c705.entry.js +1 -0
- package/dist/smoothly/p-4fecfc5d.entry.js +1 -0
- package/dist/smoothly/p-5b6351f6.js +1 -0
- package/dist/smoothly/{p-f67259c5.entry.js → p-5d41e3ca.entry.js} +1 -1
- package/dist/smoothly/{p-6acd7162.entry.js → p-6630d923.entry.js} +1 -1
- package/dist/smoothly/{p-a1c137fc.entry.js → p-7db49a38.entry.js} +1 -1
- package/dist/smoothly/{p-e5191036.js → p-94e08cee.js} +1 -1
- package/dist/smoothly/p-96e8781a.entry.js +1 -0
- package/dist/smoothly/p-e0f4957d.entry.js +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/submit/Data.d.ts +1 -1
- package/dist/types/components.d.ts +12 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/model/Autocomplete.d.ts +1 -1
- package/dist/types/model/Color.d.ts +1 -1
- package/dist/types/model/Expand.d.ts +1 -1
- package/dist/types/model/Fill.d.ts +1 -1
- package/dist/types/model/GoogleFont.d.ts +1 -1
- package/dist/types/model/Listenable.d.ts +9 -5
- package/dist/types/model/Option.d.ts +1 -1
- package/dist/types/model/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +44 -3
- package/dist/types/utilities/Cosmetic/Color/CommaRgb.d.ts +1 -1
- package/dist/types/utilities/Cosmetic/Color/Hex.d.ts +1 -1
- package/dist/types/utilities/Cosmetic/Color/Hsl.d.ts +1 -1
- package/dist/types/utilities/Cosmetic/Color/Name.d.ts +1 -1
- package/dist/types/utilities/Cosmetic/Color/Rgb.d.ts +1 -1
- package/dist/types/utilities/Cosmetic/Color/index.d.ts +1 -1
- package/dist/types/utilities/Cosmetic/index.d.ts +1 -1
- package/package.json +93 -66
- package/dist/smoothly/p-0833f25c.entry.js +0 -1
- package/dist/smoothly/p-2bf8c660.entry.js +0 -1
- package/dist/smoothly/p-3bd18eea.entry.js +0 -1
- package/dist/smoothly/p-41e29ef7.js +0 -1
- package/dist/smoothly/p-9fd866e2.entry.js +0 -1
- package/dist/smoothly/p-b1c579b3.js +0 -1
|
@@ -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
|
}
|
|
@@ -1224,6 +1224,60 @@ class Trigger {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
1226
|
|
|
1227
|
+
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
1228
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
1229
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1230
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
1231
|
+
};
|
|
1232
|
+
var _Listenable_listeners;
|
|
1233
|
+
class Listenable {
|
|
1234
|
+
constructor() {
|
|
1235
|
+
_Listenable_listeners.set(this, {});
|
|
1236
|
+
}
|
|
1237
|
+
listen(property, listener) {
|
|
1238
|
+
var _a, _b;
|
|
1239
|
+
(_b = (_a = __classPrivateFieldGet(this, _Listenable_listeners, "f")[property]) === null || _a === void 0 ? void 0 : _a.push(listener)) !== null && _b !== void 0 ? _b : (__classPrivateFieldGet(this, _Listenable_listeners, "f")[property] = [listener]);
|
|
1240
|
+
listener(this[property]);
|
|
1241
|
+
}
|
|
1242
|
+
unlisten(property, listener) {
|
|
1243
|
+
var _a, _b;
|
|
1244
|
+
const index = (_a = __classPrivateFieldGet(this, _Listenable_listeners, "f")[property]) === null || _a === void 0 ? void 0 : _a.indexOf(listener);
|
|
1245
|
+
index != undefined && index >= 0 && ((_b = __classPrivateFieldGet(this, _Listenable_listeners, "f")[property]) === null || _b === void 0 ? void 0 : _b.splice(index, 1));
|
|
1246
|
+
}
|
|
1247
|
+
static load(backend, listenable) {
|
|
1248
|
+
const result = listenable !== null && listenable !== void 0 ? listenable : new Listenable();
|
|
1249
|
+
return Object.defineProperties(result, getProperties(backend));
|
|
1250
|
+
function getProperties(backend) {
|
|
1251
|
+
return Object.fromEntries(Object.entries(Object.assign(Object.assign({}, Object.getOwnPropertyDescriptors(backend)), Object.getOwnPropertyDescriptors(Object.getPrototypeOf(backend)))).map(([name, descriptor]) => [
|
|
1252
|
+
name,
|
|
1253
|
+
typeof descriptor.value == "function"
|
|
1254
|
+
? {
|
|
1255
|
+
get() {
|
|
1256
|
+
return backend[name].bind(backend);
|
|
1257
|
+
},
|
|
1258
|
+
}
|
|
1259
|
+
: descriptor.writable || descriptor.set
|
|
1260
|
+
? {
|
|
1261
|
+
get() {
|
|
1262
|
+
return backend[name];
|
|
1263
|
+
},
|
|
1264
|
+
set(value) {
|
|
1265
|
+
var _a;
|
|
1266
|
+
backend[name] = value;
|
|
1267
|
+
(_a = __classPrivateFieldGet(result, _Listenable_listeners, "f")[name]) === null || _a === void 0 ? void 0 : _a.forEach(listener => listener(value));
|
|
1268
|
+
},
|
|
1269
|
+
}
|
|
1270
|
+
: {
|
|
1271
|
+
get() {
|
|
1272
|
+
return backend[name].bind(backend);
|
|
1273
|
+
},
|
|
1274
|
+
},
|
|
1275
|
+
]));
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
_Listenable_listeners = new WeakMap();
|
|
1280
|
+
|
|
1227
1281
|
var Hex;
|
|
1228
1282
|
(function (Hex) {
|
|
1229
1283
|
function is(value) {
|
|
@@ -1601,6 +1655,7 @@ const SmoothlyAccordion$1 = class extends HTMLElement {
|
|
|
1601
1655
|
super();
|
|
1602
1656
|
this.__registerHost();
|
|
1603
1657
|
this.items = [];
|
|
1658
|
+
this.value = undefined;
|
|
1604
1659
|
}
|
|
1605
1660
|
valueChanged(value) {
|
|
1606
1661
|
this.updateItems();
|
|
@@ -1653,6 +1708,9 @@ const SmoothlyAccordionItem$1 = class extends HTMLElement {
|
|
|
1653
1708
|
this.smoothlyAccordionItemDidUnload = createEvent(this, "smoothlyAccordionItemDidUnload", 7);
|
|
1654
1709
|
this.smoothlyOpen = createEvent(this, "smoothlyOpen", 7);
|
|
1655
1710
|
this.smoothlyClose = createEvent(this, "smoothlyClose", 7);
|
|
1711
|
+
this.name = undefined;
|
|
1712
|
+
this.brand = undefined;
|
|
1713
|
+
this.open = undefined;
|
|
1656
1714
|
}
|
|
1657
1715
|
openChanged(isChecked) {
|
|
1658
1716
|
this.open = isChecked;
|
|
@@ -1697,6 +1755,7 @@ const SmoothlyApp$1 = class extends HTMLElement {
|
|
|
1697
1755
|
constructor() {
|
|
1698
1756
|
super();
|
|
1699
1757
|
this.__registerHost();
|
|
1758
|
+
this.color = undefined;
|
|
1700
1759
|
}
|
|
1701
1760
|
render() {
|
|
1702
1761
|
return (h("smoothly-notifier", null, h("slot", null)));
|
|
@@ -1708,6 +1767,7 @@ const SmoothlyAppDemo$1 = class extends HTMLElement {
|
|
|
1708
1767
|
constructor() {
|
|
1709
1768
|
super();
|
|
1710
1769
|
this.__registerHost();
|
|
1770
|
+
this.baseUrl = undefined;
|
|
1711
1771
|
}
|
|
1712
1772
|
render() {
|
|
1713
1773
|
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 +1799,7 @@ const SmoothlyBacktotop$1 = class extends HTMLElement {
|
|
|
1739
1799
|
this.opacity = "0.5";
|
|
1740
1800
|
this.bottom = "1rem";
|
|
1741
1801
|
this.right = "1rem";
|
|
1802
|
+
this.visible = undefined;
|
|
1742
1803
|
}
|
|
1743
1804
|
componentWillLoad() {
|
|
1744
1805
|
window.addEventListener("scroll", () => {
|
|
@@ -1767,8 +1828,13 @@ const SmoothlyButton$1 = class extends HTMLElement {
|
|
|
1767
1828
|
constructor() {
|
|
1768
1829
|
super();
|
|
1769
1830
|
this.__registerHost();
|
|
1831
|
+
this.color = undefined;
|
|
1832
|
+
this.expand = undefined;
|
|
1833
|
+
this.fill = undefined;
|
|
1770
1834
|
this.disabled = false;
|
|
1771
1835
|
this.type = "button";
|
|
1836
|
+
this.link = undefined;
|
|
1837
|
+
this.download = undefined;
|
|
1772
1838
|
}
|
|
1773
1839
|
render() {
|
|
1774
1840
|
let result;
|
|
@@ -17609,6 +17675,13 @@ var DateRange$1;
|
|
|
17609
17675
|
: { start: end, end: start };
|
|
17610
17676
|
}
|
|
17611
17677
|
DateRange.create = create;
|
|
17678
|
+
function toDates(value, includeLast = true) {
|
|
17679
|
+
const result = [];
|
|
17680
|
+
for (let current = value.start; includeLast ? current <= value.end : current < value.end; current = Date$2.next(current))
|
|
17681
|
+
result.push(current);
|
|
17682
|
+
return result;
|
|
17683
|
+
}
|
|
17684
|
+
DateRange.toDates = toDates;
|
|
17612
17685
|
function getDays(value) {
|
|
17613
17686
|
const result = value.start <= value.end
|
|
17614
17687
|
? Math.ceil((new globalThis.Date(value.end).getTime() - new globalThis.Date(value.start).getTime()) / (1000 * 3600 * 24))
|
|
@@ -19878,8 +19951,15 @@ const Calendar = class extends HTMLElement {
|
|
|
19878
19951
|
this.endChanged = createEvent(this, "endChanged", 7);
|
|
19879
19952
|
this.dateSet = createEvent(this, "dateSet", 7);
|
|
19880
19953
|
this.dateRangeSet = createEvent(this, "dateRangeSet", 7);
|
|
19881
|
-
this.value = Date$2.now();
|
|
19882
19954
|
this.clickCounter = 0;
|
|
19955
|
+
this.month = undefined;
|
|
19956
|
+
this.value = Date$2.now();
|
|
19957
|
+
this.start = undefined;
|
|
19958
|
+
this.end = undefined;
|
|
19959
|
+
this.max = undefined;
|
|
19960
|
+
this.min = undefined;
|
|
19961
|
+
this.doubleInput = undefined;
|
|
19962
|
+
this.firstSelected = undefined;
|
|
19883
19963
|
}
|
|
19884
19964
|
onStart(next) {
|
|
19885
19965
|
this.startChanged.emit(next);
|
|
@@ -25900,6 +25980,10 @@ const SmoothlyCheckbox$1 = class extends HTMLElement {
|
|
|
25900
25980
|
this.checked = createEvent(this, "checked", 7);
|
|
25901
25981
|
this.selectAll = false;
|
|
25902
25982
|
this.size = "small";
|
|
25983
|
+
this.intermediate = undefined;
|
|
25984
|
+
this.selected = undefined;
|
|
25985
|
+
this.disabled = undefined;
|
|
25986
|
+
this.t = undefined;
|
|
25903
25987
|
}
|
|
25904
25988
|
componentWillLoad() {
|
|
25905
25989
|
this.t = create(this.element);
|
|
@@ -25925,7 +26009,9 @@ const SmoothlyCountry$1 = class extends HTMLElement {
|
|
|
25925
26009
|
constructor() {
|
|
25926
26010
|
super();
|
|
25927
26011
|
this.__registerHost();
|
|
26012
|
+
this.value = undefined;
|
|
25928
26013
|
this.text = "alpha2";
|
|
26014
|
+
this.language = undefined;
|
|
25929
26015
|
}
|
|
25930
26016
|
componentWillLoad() {
|
|
25931
26017
|
this.language = getLanguage(this.element);
|
|
@@ -25946,8 +26032,10 @@ const SmoothlyDialog$1 = class extends HTMLElement {
|
|
|
25946
26032
|
constructor() {
|
|
25947
26033
|
super();
|
|
25948
26034
|
this.__registerHost();
|
|
26035
|
+
this.color = undefined;
|
|
25949
26036
|
this.open = true;
|
|
25950
26037
|
this.closable = false;
|
|
26038
|
+
this.header = undefined;
|
|
25951
26039
|
}
|
|
25952
26040
|
TriggerListener(event) {
|
|
25953
26041
|
if (Trigger.is(event.detail) && event.detail.name == "close")
|
|
@@ -46196,6 +46284,11 @@ const SmoothlyDisplay$1 = class extends HTMLElement {
|
|
|
46196
46284
|
constructor() {
|
|
46197
46285
|
super();
|
|
46198
46286
|
this.__registerHost();
|
|
46287
|
+
this.type = undefined;
|
|
46288
|
+
this.value = undefined;
|
|
46289
|
+
this.currency = undefined;
|
|
46290
|
+
this.country = undefined;
|
|
46291
|
+
this.format = undefined;
|
|
46199
46292
|
}
|
|
46200
46293
|
render() {
|
|
46201
46294
|
var _a, _b;
|
|
@@ -46241,6 +46334,8 @@ const SmoothlyDisplayAmount$1 = class extends HTMLElement {
|
|
|
46241
46334
|
constructor() {
|
|
46242
46335
|
super();
|
|
46243
46336
|
this.__registerHost();
|
|
46337
|
+
this.amount = undefined;
|
|
46338
|
+
this.currency = undefined;
|
|
46244
46339
|
this.toInteger = false;
|
|
46245
46340
|
}
|
|
46246
46341
|
format(amount) {
|
|
@@ -46293,6 +46388,7 @@ const SmoothlyDisplayDateTime$1 = class extends HTMLElement {
|
|
|
46293
46388
|
constructor() {
|
|
46294
46389
|
super();
|
|
46295
46390
|
this.__registerHost();
|
|
46391
|
+
this.datetime = undefined;
|
|
46296
46392
|
}
|
|
46297
46393
|
componentWillLoad() {
|
|
46298
46394
|
console.warn('Component <smoothly-display-date-time> is deprecated, use <smoothly-display type="date-time">.');
|
|
@@ -46329,6 +46425,9 @@ const SmoothlyFrame$1 = class extends HTMLElement {
|
|
|
46329
46425
|
this.__registerHost();
|
|
46330
46426
|
this.trigger = createEvent(this, "trigger", 7);
|
|
46331
46427
|
this.message = createEvent(this, "message", 7);
|
|
46428
|
+
this.url = undefined;
|
|
46429
|
+
this.name = undefined;
|
|
46430
|
+
this.origin = undefined;
|
|
46332
46431
|
}
|
|
46333
46432
|
get contentWindow() {
|
|
46334
46433
|
const iframe = this.element && this.element.firstElementChild ? this.element.firstElementChild : undefined;
|
|
@@ -46367,6 +46466,7 @@ const SmoothlyGoogleFont$1 = class extends HTMLElement {
|
|
|
46367
46466
|
constructor() {
|
|
46368
46467
|
super();
|
|
46369
46468
|
this.__registerHost();
|
|
46469
|
+
this.value = undefined;
|
|
46370
46470
|
}
|
|
46371
46471
|
render() {
|
|
46372
46472
|
return GoogleFont.is(this.value) ? h("style", null, GoogleFont.styleImportString(this.value)) : "";
|
|
@@ -46379,8 +46479,12 @@ const SmoothlyIcon$1 = class extends HTMLElement {
|
|
|
46379
46479
|
constructor() {
|
|
46380
46480
|
super();
|
|
46381
46481
|
this.__registerHost();
|
|
46482
|
+
this.color = undefined;
|
|
46382
46483
|
this.fill = "solid";
|
|
46484
|
+
this.name = undefined;
|
|
46383
46485
|
this.size = "medium";
|
|
46486
|
+
this.toolTip = undefined;
|
|
46487
|
+
this.document = undefined;
|
|
46384
46488
|
}
|
|
46385
46489
|
async loadDocument() {
|
|
46386
46490
|
if (this.name)
|
|
@@ -46914,14 +47018,20 @@ const SmoothlyInput$1 = class extends HTMLElement {
|
|
|
46914
47018
|
this.smoothlyChange = createEvent(this, "smoothlyChange", 7);
|
|
46915
47019
|
this.smoothlyInput = createEvent(this, "smoothlyInput", 7);
|
|
46916
47020
|
this.keepFocusOnReRender = false;
|
|
47021
|
+
this.name = undefined;
|
|
47022
|
+
this.value = undefined;
|
|
46917
47023
|
this.type = "text";
|
|
46918
47024
|
this.required = false;
|
|
46919
47025
|
this.minLength = 0;
|
|
46920
47026
|
this.showLabel = true;
|
|
46921
47027
|
this.maxLength = Number.POSITIVE_INFINITY;
|
|
46922
47028
|
this.autocomplete = true;
|
|
47029
|
+
this.pattern = undefined;
|
|
47030
|
+
this.placeholder = undefined;
|
|
46923
47031
|
this.disabled = false;
|
|
46924
47032
|
this.readonly = false;
|
|
47033
|
+
this.currency = undefined;
|
|
47034
|
+
this.initialValue = undefined;
|
|
46925
47035
|
}
|
|
46926
47036
|
get formatter() {
|
|
46927
47037
|
let result;
|
|
@@ -47119,6 +47229,12 @@ const InputDate = class extends HTMLElement {
|
|
|
47119
47229
|
super();
|
|
47120
47230
|
this.__registerHost();
|
|
47121
47231
|
this.valueChanged = createEvent(this, "valueChanged", 7);
|
|
47232
|
+
this.name = undefined;
|
|
47233
|
+
this.value = undefined;
|
|
47234
|
+
this.open = undefined;
|
|
47235
|
+
this.max = undefined;
|
|
47236
|
+
this.min = undefined;
|
|
47237
|
+
this.disabled = undefined;
|
|
47122
47238
|
}
|
|
47123
47239
|
onStart(next) {
|
|
47124
47240
|
this.valueChanged.emit(next);
|
|
@@ -47156,6 +47272,12 @@ const InputDateRange = class extends HTMLElement {
|
|
|
47156
47272
|
this.__registerHost();
|
|
47157
47273
|
this.valueChanged = createEvent(this, "valueChanged", 7);
|
|
47158
47274
|
this.dateRangeSelected = createEvent(this, "dateRangeSelected", 7);
|
|
47275
|
+
this.value = undefined;
|
|
47276
|
+
this.start = undefined;
|
|
47277
|
+
this.end = undefined;
|
|
47278
|
+
this.max = undefined;
|
|
47279
|
+
this.min = undefined;
|
|
47280
|
+
this.open = undefined;
|
|
47159
47281
|
this.showLabel = true;
|
|
47160
47282
|
this.labelStart = "from";
|
|
47161
47283
|
this.labelEnd = "to";
|
|
@@ -47212,6 +47334,7 @@ const MonthSelector = class extends HTMLElement {
|
|
|
47212
47334
|
super();
|
|
47213
47335
|
this.__registerHost();
|
|
47214
47336
|
this.valueChanged = createEvent(this, "valueChanged", 7);
|
|
47337
|
+
this.value = undefined;
|
|
47215
47338
|
}
|
|
47216
47339
|
onValueChanged(next) {
|
|
47217
47340
|
this.valueChanged.emit(next);
|
|
@@ -47244,6 +47367,9 @@ const Item = class extends HTMLElement {
|
|
|
47244
47367
|
super();
|
|
47245
47368
|
this.__registerHost();
|
|
47246
47369
|
this.itemSelected = createEvent(this, "itemSelected", 7);
|
|
47370
|
+
this.value = undefined;
|
|
47371
|
+
this.selected = undefined;
|
|
47372
|
+
this.marked = undefined;
|
|
47247
47373
|
}
|
|
47248
47374
|
onSelectedChanged(value, old) {
|
|
47249
47375
|
if (value && !old)
|
|
@@ -47285,10 +47411,13 @@ const SmoothlyMenuOptions$1 = class extends HTMLElement {
|
|
|
47285
47411
|
this.optionElements = [];
|
|
47286
47412
|
this.filteredOptions = [];
|
|
47287
47413
|
this.highlightIndex = 0;
|
|
47414
|
+
this.keyword = undefined;
|
|
47288
47415
|
this.toggle = false;
|
|
47289
47416
|
this.emptyMenuLabel = "No Options";
|
|
47290
47417
|
this.newOptionLabel = "Add:";
|
|
47418
|
+
this.maxMenuHeight = undefined;
|
|
47291
47419
|
this.order = false;
|
|
47420
|
+
this.optionStyle = undefined;
|
|
47292
47421
|
this.options = [];
|
|
47293
47422
|
this.resetHighlightOnOptionsChange = true;
|
|
47294
47423
|
this.mutable = false;
|
|
@@ -47394,7 +47523,6 @@ const Notification = class extends HTMLElement {
|
|
|
47394
47523
|
super();
|
|
47395
47524
|
this.__registerHost();
|
|
47396
47525
|
this.remove = createEvent(this, "remove", 7);
|
|
47397
|
-
this.tick = {};
|
|
47398
47526
|
this.listener = notice => {
|
|
47399
47527
|
console.log("changed: ", notice);
|
|
47400
47528
|
if (notice.state == "closed")
|
|
@@ -47402,6 +47530,8 @@ const Notification = class extends HTMLElement {
|
|
|
47402
47530
|
else
|
|
47403
47531
|
this.tick = {};
|
|
47404
47532
|
};
|
|
47533
|
+
this.notice = undefined;
|
|
47534
|
+
this.tick = {};
|
|
47405
47535
|
}
|
|
47406
47536
|
get color() {
|
|
47407
47537
|
let result;
|
|
@@ -47482,8 +47612,13 @@ const SmoothlyOption$1 = class extends HTMLElement {
|
|
|
47482
47612
|
this.optionSelect = createEvent(this, "optionSelect", 7);
|
|
47483
47613
|
this.optionUnselect = createEvent(this, "optionUnselect", 7);
|
|
47484
47614
|
this.optionAdd = createEvent(this, "optionAdd", 7);
|
|
47615
|
+
this.aliases = undefined;
|
|
47485
47616
|
this.dataHighlight = false;
|
|
47617
|
+
this.name = undefined;
|
|
47618
|
+
this.value = undefined;
|
|
47486
47619
|
this.divider = false;
|
|
47620
|
+
this.checkbox = undefined;
|
|
47621
|
+
this.new = undefined;
|
|
47487
47622
|
this.toggle = false;
|
|
47488
47623
|
this.checked = false;
|
|
47489
47624
|
}
|
|
@@ -47519,13 +47654,19 @@ const SmoothlyPicker$1 = class extends HTMLElement {
|
|
|
47519
47654
|
this.menuClose = createEvent(this, "menuClose", 7);
|
|
47520
47655
|
this.notice = createEvent(this, "notice", 7);
|
|
47521
47656
|
this.keepFocusOnReRender = false;
|
|
47657
|
+
this.isOpen = undefined;
|
|
47658
|
+
this.empty = undefined;
|
|
47522
47659
|
this.disabled = false;
|
|
47523
47660
|
this.readonly = false;
|
|
47524
47661
|
this.maxMenuHeight = "inherit";
|
|
47662
|
+
this.maxHeight = undefined;
|
|
47525
47663
|
this.emptyMenuLabel = "No Options";
|
|
47526
47664
|
this.multiple = false;
|
|
47527
47665
|
this.mutable = false;
|
|
47666
|
+
this.optionStyle = undefined;
|
|
47528
47667
|
this.options = [];
|
|
47668
|
+
this.labelSetting = undefined;
|
|
47669
|
+
this.label = undefined;
|
|
47529
47670
|
this.selections = [];
|
|
47530
47671
|
this.selectNoneName = "Select None";
|
|
47531
47672
|
this.selectAllName = "Select All";
|
|
@@ -47729,6 +47870,7 @@ const SmoothlyQuiet$1 = class extends HTMLElement {
|
|
|
47729
47870
|
constructor() {
|
|
47730
47871
|
super();
|
|
47731
47872
|
this.__registerHost();
|
|
47873
|
+
this.color = undefined;
|
|
47732
47874
|
}
|
|
47733
47875
|
render() {
|
|
47734
47876
|
return (h(Host, { color: this.color }, h("slot", null)));
|
|
@@ -47743,6 +47885,10 @@ const SmoothlyRadio$1 = class extends HTMLElement {
|
|
|
47743
47885
|
super();
|
|
47744
47886
|
this.__registerHost();
|
|
47745
47887
|
this.smoothlySelected = createEvent(this, "smoothlySelected", 7);
|
|
47888
|
+
this.name = undefined;
|
|
47889
|
+
this.value = undefined;
|
|
47890
|
+
this.checked = undefined;
|
|
47891
|
+
this.tabIndex = undefined;
|
|
47746
47892
|
}
|
|
47747
47893
|
async onInput(e) {
|
|
47748
47894
|
if (e.target && e.target.value && (this.checked = e.target.checked))
|
|
@@ -47765,6 +47911,9 @@ const SmoothlyRadioButton$1 = class extends HTMLElement {
|
|
|
47765
47911
|
super();
|
|
47766
47912
|
this.__registerHost();
|
|
47767
47913
|
this.radioButtonSelected = createEvent(this, "radioButtonSelected", 7);
|
|
47914
|
+
this.name = undefined;
|
|
47915
|
+
this.value = undefined;
|
|
47916
|
+
this.deselectable = undefined;
|
|
47768
47917
|
this.decoration = "radio";
|
|
47769
47918
|
}
|
|
47770
47919
|
radioSelectHandler(event) {
|
|
@@ -47792,6 +47941,9 @@ const SmoothlyRadioButtonItem$1 = class extends HTMLElement {
|
|
|
47792
47941
|
super();
|
|
47793
47942
|
this.__registerHost();
|
|
47794
47943
|
this.radioItemSelectInternal = createEvent(this, "radioItemSelectInternal", 7);
|
|
47944
|
+
this.value = undefined;
|
|
47945
|
+
this.selected = undefined;
|
|
47946
|
+
this.color = undefined;
|
|
47795
47947
|
}
|
|
47796
47948
|
componentWillLoad() {
|
|
47797
47949
|
this.selected && this.select(this.selected);
|
|
@@ -47924,6 +48076,10 @@ const SmoothlyRoom$1 = class extends HTMLElement {
|
|
|
47924
48076
|
constructor() {
|
|
47925
48077
|
super();
|
|
47926
48078
|
this.__registerHost();
|
|
48079
|
+
this.label = undefined;
|
|
48080
|
+
this.icon = undefined;
|
|
48081
|
+
this.path = undefined;
|
|
48082
|
+
this.to = undefined;
|
|
47927
48083
|
}
|
|
47928
48084
|
render() {
|
|
47929
48085
|
return h("slot", null);
|
|
@@ -47937,6 +48093,9 @@ const SmoothlySelect$1 = class extends HTMLElement {
|
|
|
47937
48093
|
super();
|
|
47938
48094
|
this.__registerHost();
|
|
47939
48095
|
this.selectionChanged = createEvent(this, "selectionChanged", 7);
|
|
48096
|
+
this.identifier = undefined;
|
|
48097
|
+
this.background = undefined;
|
|
48098
|
+
this.value = undefined;
|
|
47940
48099
|
}
|
|
47941
48100
|
optionSelected() {
|
|
47942
48101
|
if (this.selectElement)
|
|
@@ -48053,8 +48212,10 @@ const Selector = class extends HTMLElement {
|
|
|
48053
48212
|
super();
|
|
48054
48213
|
this.__registerHost();
|
|
48055
48214
|
this.selected = createEvent(this, "selected", 7);
|
|
48056
|
-
this.opened = false;
|
|
48057
48215
|
this.items = [];
|
|
48216
|
+
this.initialPrompt = undefined;
|
|
48217
|
+
this.opened = false;
|
|
48218
|
+
this.selectedElement = undefined;
|
|
48058
48219
|
this.missing = false;
|
|
48059
48220
|
this.filter = "";
|
|
48060
48221
|
}
|
|
@@ -48183,6 +48344,10 @@ const SmoothlySkeleton$1 = class extends HTMLElement {
|
|
|
48183
48344
|
super();
|
|
48184
48345
|
this.__registerHost();
|
|
48185
48346
|
this.widths = ["8rem", "9rem", "10rem"];
|
|
48347
|
+
this.width = undefined;
|
|
48348
|
+
this.color = undefined;
|
|
48349
|
+
this.period = undefined;
|
|
48350
|
+
this.distance = undefined;
|
|
48186
48351
|
this.align = "left";
|
|
48187
48352
|
}
|
|
48188
48353
|
componentWillLoad() {
|
|
@@ -48203,6 +48368,7 @@ const SmoothlySpinner$1 = class extends HTMLElement {
|
|
|
48203
48368
|
constructor() {
|
|
48204
48369
|
super();
|
|
48205
48370
|
this.__registerHost();
|
|
48371
|
+
this.active = undefined;
|
|
48206
48372
|
this.size = "large";
|
|
48207
48373
|
}
|
|
48208
48374
|
render() {
|
|
@@ -48235,7 +48401,12 @@ const SmoothlySubmit$1 = class extends HTMLElement {
|
|
|
48235
48401
|
super();
|
|
48236
48402
|
this.__registerHost();
|
|
48237
48403
|
this.submitEvent = createEvent(this, "submit", 7);
|
|
48404
|
+
this.processing = undefined;
|
|
48405
|
+
this.color = undefined;
|
|
48406
|
+
this.expand = undefined;
|
|
48407
|
+
this.fill = undefined;
|
|
48238
48408
|
this.disabled = false;
|
|
48409
|
+
this.prevent = undefined;
|
|
48239
48410
|
}
|
|
48240
48411
|
get form() {
|
|
48241
48412
|
return (this.button && this.button.form) || undefined;
|
|
@@ -48294,6 +48465,9 @@ const SmoothlySvg$1 = class extends HTMLElement {
|
|
|
48294
48465
|
small: { height: "10rem", width: "10rem" },
|
|
48295
48466
|
tiny: { height: "5rem", width: "5rem" },
|
|
48296
48467
|
};
|
|
48468
|
+
this.url = undefined;
|
|
48469
|
+
this.size = undefined;
|
|
48470
|
+
this.color = undefined;
|
|
48297
48471
|
}
|
|
48298
48472
|
render() {
|
|
48299
48473
|
const height = this.size
|
|
@@ -48324,6 +48498,8 @@ const SmoothlyTab$1 = class extends HTMLElement {
|
|
|
48324
48498
|
super();
|
|
48325
48499
|
this.__registerHost();
|
|
48326
48500
|
this.expansionOpen = createEvent(this, "expansionOpen", 7);
|
|
48501
|
+
this.label = undefined;
|
|
48502
|
+
this.open = undefined;
|
|
48327
48503
|
}
|
|
48328
48504
|
openChanged() {
|
|
48329
48505
|
if (this.expansionElement) {
|
|
@@ -48354,6 +48530,7 @@ const SmoothlyTabSwitch$1 = class extends HTMLElement {
|
|
|
48354
48530
|
constructor() {
|
|
48355
48531
|
super();
|
|
48356
48532
|
this.__registerHost();
|
|
48533
|
+
this.selectedElement = undefined;
|
|
48357
48534
|
}
|
|
48358
48535
|
openChanged(event) {
|
|
48359
48536
|
event.stopPropagation();
|
|
@@ -48464,6 +48641,7 @@ const TableExpandableCell = class extends HTMLElement {
|
|
|
48464
48641
|
this.allowSpotlight = true;
|
|
48465
48642
|
this.spotlight = true;
|
|
48466
48643
|
this.align = "left";
|
|
48644
|
+
this.open = undefined;
|
|
48467
48645
|
}
|
|
48468
48646
|
openChanged(value) {
|
|
48469
48647
|
if (this.expansionElement)
|
|
@@ -48518,6 +48696,7 @@ const TableExpandableRow = class extends HTMLElement {
|
|
|
48518
48696
|
this.allowSpotlight = true;
|
|
48519
48697
|
this.spotlight = true;
|
|
48520
48698
|
this.align = "left";
|
|
48699
|
+
this.open = undefined;
|
|
48521
48700
|
}
|
|
48522
48701
|
openChanged() {
|
|
48523
48702
|
if (this.expansionElement)
|
|
@@ -48562,6 +48741,7 @@ const TableHeader = class extends HTMLElement {
|
|
|
48562
48741
|
constructor() {
|
|
48563
48742
|
super();
|
|
48564
48743
|
this.__registerHost();
|
|
48744
|
+
this.name = undefined;
|
|
48565
48745
|
}
|
|
48566
48746
|
render() {
|
|
48567
48747
|
return (h(Host, null, h("slot", null)));
|
|
@@ -48602,8 +48782,13 @@ const SmoothlyTrigger$1 = class extends HTMLElement {
|
|
|
48602
48782
|
super();
|
|
48603
48783
|
this.__registerHost();
|
|
48604
48784
|
this.trigger = createEvent(this, "trigger", 7);
|
|
48785
|
+
this.color = undefined;
|
|
48786
|
+
this.expand = undefined;
|
|
48787
|
+
this.fill = undefined;
|
|
48605
48788
|
this.disabled = false;
|
|
48606
48789
|
this.type = "button";
|
|
48790
|
+
this.name = undefined;
|
|
48791
|
+
this.value = undefined;
|
|
48607
48792
|
}
|
|
48608
48793
|
onClick(e) {
|
|
48609
48794
|
this.trigger.emit({ name: this.name, value: this.value });
|
|
@@ -48631,6 +48816,9 @@ const SmoothlyTriggerSink$1 = class extends HTMLElement {
|
|
|
48631
48816
|
constructor() {
|
|
48632
48817
|
super();
|
|
48633
48818
|
this.__registerHost();
|
|
48819
|
+
this.context = undefined;
|
|
48820
|
+
this.destination = undefined;
|
|
48821
|
+
this.filter = undefined;
|
|
48634
48822
|
}
|
|
48635
48823
|
get filters() {
|
|
48636
48824
|
if (!this.filtersValue)
|
|
@@ -48658,6 +48846,7 @@ const SmoothlyTriggerSource$1 = class extends HTMLElement {
|
|
|
48658
48846
|
this.__registerHost();
|
|
48659
48847
|
this.trigger = createEvent(this, "trigger", 7);
|
|
48660
48848
|
this.message = createEvent(this, "message", 7);
|
|
48849
|
+
this.listen = undefined;
|
|
48661
48850
|
}
|
|
48662
48851
|
componentDidLoad() {
|
|
48663
48852
|
Message.listen(this.listen, (destination, content) => {
|
|
@@ -48678,6 +48867,7 @@ const SmoothlyTuple$1 = class extends HTMLElement {
|
|
|
48678
48867
|
constructor() {
|
|
48679
48868
|
super();
|
|
48680
48869
|
this.__registerHost();
|
|
48870
|
+
this.tuple = undefined;
|
|
48681
48871
|
}
|
|
48682
48872
|
render() {
|
|
48683
48873
|
return [h("b", null, this.tuple[0]), ": ", this.tuple[1], h("br", null)];
|
|
@@ -48688,6 +48878,7 @@ const Urlencoded = class extends HTMLElement {
|
|
|
48688
48878
|
constructor() {
|
|
48689
48879
|
super();
|
|
48690
48880
|
this.__registerHost();
|
|
48881
|
+
this.data = undefined;
|
|
48691
48882
|
}
|
|
48692
48883
|
render() {
|
|
48693
48884
|
return this.data
|
|
@@ -48826,4 +49017,4 @@ const defineCustomElements = (opts) => {
|
|
|
48826
49017
|
}
|
|
48827
49018
|
};
|
|
48828
49019
|
|
|
48829
|
-
export { App, ClientIdentifier, Cosmetic, GoogleFont, Message, Notice, SmoothlyAccordion, SmoothlyAccordionItem, SmoothlyApp, SmoothlyAppDemo, SmoothlyBacktotop, SmoothlyButton, SmoothlyCalendar, SmoothlyCheckbox, SmoothlyCountry, SmoothlyDialog, SmoothlyDialogDemo, SmoothlyDisplay, SmoothlyDisplayAmount, SmoothlyDisplayDateTime, SmoothlyDisplayDemo, SmoothlyFrame, SmoothlyGoogleFont, SmoothlyIcon, SmoothlyIconDemo, SmoothlyInput, SmoothlyInputDate, SmoothlyInputDateRange, SmoothlyInputDemo, SmoothlyInputMonth, SmoothlyItem, SmoothlyMenuOptions, SmoothlyNotification, SmoothlyNotifier, SmoothlyOption, SmoothlyPicker, SmoothlyPopup, SmoothlyQuiet, SmoothlyRadio, SmoothlyRadioButton, SmoothlyRadioButtonItem, SmoothlyRadioGroup, SmoothlyReorder, SmoothlyRoom, SmoothlySelect, SmoothlySelectDemo, SmoothlySelector, SmoothlySkeleton, SmoothlySpinner, SmoothlySubmit, SmoothlySvg, SmoothlyTab, SmoothlyTabSwitch, SmoothlyTable, SmoothlyTableCell, SmoothlyTableDemo, SmoothlyTableExpandableCell, SmoothlyTableExpandableRow, SmoothlyTableHeader, SmoothlyTableRow, SmoothlyTrigger, SmoothlyTriggerSink, SmoothlyTriggerSource, SmoothlyTuple, SmoothlyUrlencoded, Trigger, defineCustomElements, redirect };
|
|
49020
|
+
export { App, ClientIdentifier, Cosmetic, GoogleFont, Listenable, Message, Notice, SmoothlyAccordion, SmoothlyAccordionItem, SmoothlyApp, SmoothlyAppDemo, SmoothlyBacktotop, SmoothlyButton, SmoothlyCalendar, SmoothlyCheckbox, SmoothlyCountry, SmoothlyDialog, SmoothlyDialogDemo, SmoothlyDisplay, SmoothlyDisplayAmount, SmoothlyDisplayDateTime, SmoothlyDisplayDemo, SmoothlyFrame, SmoothlyGoogleFont, SmoothlyIcon, SmoothlyIconDemo, SmoothlyInput, SmoothlyInputDate, SmoothlyInputDateRange, SmoothlyInputDemo, SmoothlyInputMonth, SmoothlyItem, SmoothlyMenuOptions, SmoothlyNotification, SmoothlyNotifier, SmoothlyOption, SmoothlyPicker, SmoothlyPopup, SmoothlyQuiet, SmoothlyRadio, SmoothlyRadioButton, SmoothlyRadioButtonItem, SmoothlyRadioGroup, SmoothlyReorder, SmoothlyRoom, SmoothlySelect, SmoothlySelectDemo, SmoothlySelector, SmoothlySkeleton, SmoothlySpinner, SmoothlySubmit, SmoothlySvg, SmoothlyTab, SmoothlyTabSwitch, SmoothlyTable, SmoothlyTableCell, SmoothlyTableDemo, SmoothlyTableExpandableCell, SmoothlyTableExpandableRow, SmoothlyTableHeader, SmoothlyTableRow, SmoothlyTrigger, SmoothlyTriggerSink, SmoothlyTriggerSource, SmoothlyTuple, SmoothlyUrlencoded, Trigger, defineCustomElements, redirect };
|
|
@@ -697,4 +697,58 @@ class Trigger {
|
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
699
|
|
|
700
|
-
|
|
700
|
+
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
701
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
702
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
703
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
704
|
+
};
|
|
705
|
+
var _Listenable_listeners;
|
|
706
|
+
class Listenable {
|
|
707
|
+
constructor() {
|
|
708
|
+
_Listenable_listeners.set(this, {});
|
|
709
|
+
}
|
|
710
|
+
listen(property, listener) {
|
|
711
|
+
var _a, _b;
|
|
712
|
+
(_b = (_a = __classPrivateFieldGet(this, _Listenable_listeners, "f")[property]) === null || _a === void 0 ? void 0 : _a.push(listener)) !== null && _b !== void 0 ? _b : (__classPrivateFieldGet(this, _Listenable_listeners, "f")[property] = [listener]);
|
|
713
|
+
listener(this[property]);
|
|
714
|
+
}
|
|
715
|
+
unlisten(property, listener) {
|
|
716
|
+
var _a, _b;
|
|
717
|
+
const index = (_a = __classPrivateFieldGet(this, _Listenable_listeners, "f")[property]) === null || _a === void 0 ? void 0 : _a.indexOf(listener);
|
|
718
|
+
index != undefined && index >= 0 && ((_b = __classPrivateFieldGet(this, _Listenable_listeners, "f")[property]) === null || _b === void 0 ? void 0 : _b.splice(index, 1));
|
|
719
|
+
}
|
|
720
|
+
static load(backend, listenable) {
|
|
721
|
+
const result = listenable !== null && listenable !== void 0 ? listenable : new Listenable();
|
|
722
|
+
return Object.defineProperties(result, getProperties(backend));
|
|
723
|
+
function getProperties(backend) {
|
|
724
|
+
return Object.fromEntries(Object.entries(Object.assign(Object.assign({}, Object.getOwnPropertyDescriptors(backend)), Object.getOwnPropertyDescriptors(Object.getPrototypeOf(backend)))).map(([name, descriptor]) => [
|
|
725
|
+
name,
|
|
726
|
+
typeof descriptor.value == "function"
|
|
727
|
+
? {
|
|
728
|
+
get() {
|
|
729
|
+
return backend[name].bind(backend);
|
|
730
|
+
},
|
|
731
|
+
}
|
|
732
|
+
: descriptor.writable || descriptor.set
|
|
733
|
+
? {
|
|
734
|
+
get() {
|
|
735
|
+
return backend[name];
|
|
736
|
+
},
|
|
737
|
+
set(value) {
|
|
738
|
+
var _a;
|
|
739
|
+
backend[name] = value;
|
|
740
|
+
(_a = __classPrivateFieldGet(result, _Listenable_listeners, "f")[name]) === null || _a === void 0 ? void 0 : _a.forEach(listener => listener(value));
|
|
741
|
+
},
|
|
742
|
+
}
|
|
743
|
+
: {
|
|
744
|
+
get() {
|
|
745
|
+
return backend[name].bind(backend);
|
|
746
|
+
},
|
|
747
|
+
},
|
|
748
|
+
]));
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
_Listenable_listeners = new WeakMap();
|
|
753
|
+
|
|
754
|
+
export { Identifier as I, Listenable as L, Message as M, Trigger as T };
|
|
@@ -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))
|