smoothly 1.1.1-alpha.144 → 1.1.1-alpha.145
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/smoothly-app_104.cjs.entry.js +47 -47
- package/dist/cjs/smoothly-app_104.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-picker-menu_3.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-picker-menu_3.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-picker.cjs.entry.js +3 -3
- package/dist/cjs/smoothly-picker.cjs.entry.js.map +1 -1
- package/dist/collection/components/filter/select/index.js +8 -9
- package/dist/collection/components/filter/select/index.js.map +1 -1
- package/dist/collection/components/form/index.js +5 -6
- package/dist/collection/components/form/index.js.map +1 -1
- package/dist/collection/components/input/Input.js.map +1 -1
- package/dist/collection/components/input/checkbox/index.js +8 -9
- package/dist/collection/components/input/checkbox/index.js.map +1 -1
- package/dist/collection/components/input/color/index.js +9 -10
- package/dist/collection/components/input/color/index.js.map +1 -1
- package/dist/collection/components/input/date/index.js +12 -13
- package/dist/collection/components/input/date/index.js.map +1 -1
- package/dist/collection/components/input/date/range/index.js +9 -10
- package/dist/collection/components/input/date/range/index.js.map +1 -1
- package/dist/collection/components/input/file/index.js +8 -9
- package/dist/collection/components/input/file/index.js.map +1 -1
- package/dist/collection/components/input/index.js +9 -10
- package/dist/collection/components/input/index.js.map +1 -1
- package/dist/collection/components/input/month/index.js +6 -6
- package/dist/collection/components/input/month/index.js.map +1 -1
- package/dist/collection/components/input/radio/index.js +8 -9
- package/dist/collection/components/input/radio/index.js.map +1 -1
- package/dist/collection/components/input/radio/item/index.js +5 -6
- package/dist/collection/components/input/radio/item/index.js.map +1 -1
- package/dist/collection/components/input/range/index.js +9 -10
- package/dist/collection/components/input/range/index.js.map +1 -1
- package/dist/collection/components/input/select/index.js +11 -12
- package/dist/collection/components/input/select/index.js.map +1 -1
- package/dist/collection/components/picker/index.js +8 -9
- package/dist/collection/components/picker/index.js.map +1 -1
- package/dist/collection/components/picker/menu/index.js +3 -3
- package/dist/collection/components/picker/menu/index.js.map +1 -1
- package/dist/components/{p-9c49e612.js → p-029aba2a.js} +6 -6
- package/dist/components/p-029aba2a.js.map +1 -0
- package/dist/components/{p-0dc6a580.js → p-02e6e1da.js} +4 -4
- package/dist/components/{p-0dc6a580.js.map → p-02e6e1da.js.map} +1 -1
- package/dist/components/{p-064ad075.js → p-06c37aa3.js} +3 -3
- package/dist/components/{p-064ad075.js.map → p-06c37aa3.js.map} +1 -1
- package/dist/components/{p-77118ec8.js → p-0bdde9ab.js} +6 -6
- package/dist/components/{p-77118ec8.js.map → p-0bdde9ab.js.map} +1 -1
- package/dist/components/{p-50b4b8e5.js → p-1037df70.js} +3 -3
- package/dist/components/{p-50b4b8e5.js.map → p-1037df70.js.map} +1 -1
- package/dist/components/{p-3eab9f52.js → p-10f7253f.js} +2 -2
- package/dist/components/{p-3eab9f52.js.map → p-10f7253f.js.map} +1 -1
- package/dist/components/{p-c1df829c.js → p-20463703.js} +9 -9
- package/dist/components/{p-c1df829c.js.map → p-20463703.js.map} +1 -1
- package/dist/components/{p-a0cfbfb1.js → p-216dc4e5.js} +8 -8
- package/dist/components/{p-a0cfbfb1.js.map → p-216dc4e5.js.map} +1 -1
- package/dist/components/{p-78305d11.js → p-21f8e14b.js} +5 -5
- package/dist/components/p-21f8e14b.js.map +1 -0
- package/dist/components/{p-b3c61604.js → p-253ca040.js} +8 -8
- package/dist/components/{p-b3c61604.js.map → p-253ca040.js.map} +1 -1
- package/dist/components/{p-5b32bce3.js → p-29530fcb.js} +12 -12
- package/dist/components/{p-5b32bce3.js.map → p-29530fcb.js.map} +1 -1
- package/dist/components/{p-deb3fa47.js → p-34f351a2.js} +2 -2
- package/dist/components/{p-deb3fa47.js.map → p-34f351a2.js.map} +1 -1
- package/dist/components/{p-049f2bc4.js → p-3cde06c0.js} +3 -3
- package/dist/components/{p-049f2bc4.js.map → p-3cde06c0.js.map} +1 -1
- package/dist/components/{p-2a0ef401.js → p-49c8125f.js} +20 -20
- package/dist/components/{p-2a0ef401.js.map → p-49c8125f.js.map} +1 -1
- package/dist/components/{p-7ba03719.js → p-4fad1e29.js} +3 -3
- package/dist/components/{p-7ba03719.js.map → p-4fad1e29.js.map} +1 -1
- package/dist/components/{p-fde8b50d.js → p-518f122d.js} +6 -6
- package/dist/components/p-518f122d.js.map +1 -0
- package/dist/components/{p-ab7ba000.js → p-520082cb.js} +4 -4
- package/dist/components/{p-ab7ba000.js.map → p-520082cb.js.map} +1 -1
- package/dist/components/{p-ada4633c.js → p-520c65bc.js} +4 -4
- package/dist/components/{p-ada4633c.js.map → p-520c65bc.js.map} +1 -1
- package/dist/components/{p-3d81320b.js → p-67c3dfc9.js} +3 -3
- package/dist/components/{p-3d81320b.js.map → p-67c3dfc9.js.map} +1 -1
- package/dist/components/{p-0a6b1a73.js → p-77ef1aa4.js} +4 -4
- package/dist/components/p-77ef1aa4.js.map +1 -0
- package/dist/components/{p-809996a3.js → p-7c697796.js} +7 -7
- package/dist/components/p-7c697796.js.map +1 -0
- package/dist/components/{p-282093b0.js → p-7d9663a0.js} +7 -7
- package/dist/components/p-7d9663a0.js.map +1 -0
- package/dist/components/{p-702b3951.js → p-7ffe97a1.js} +4 -4
- package/dist/components/p-7ffe97a1.js.map +1 -0
- package/dist/components/{p-e5626c82.js → p-8592b288.js} +2 -2
- package/dist/components/{p-e5626c82.js.map → p-8592b288.js.map} +1 -1
- package/dist/components/{p-47dcc502.js → p-86f9decf.js} +2 -2
- package/dist/components/{p-47dcc502.js.map → p-86f9decf.js.map} +1 -1
- package/dist/components/{p-b9baf30a.js → p-879e2677.js} +4 -4
- package/dist/components/{p-b9baf30a.js.map → p-879e2677.js.map} +1 -1
- package/dist/components/{p-056e349c.js → p-88c9a573.js} +4 -4
- package/dist/components/p-88c9a573.js.map +1 -0
- package/dist/components/{p-31245344.js → p-8fbacda5.js} +9 -9
- package/dist/components/{p-31245344.js.map → p-8fbacda5.js.map} +1 -1
- package/dist/components/{p-782a198d.js → p-98ac5d0d.js} +9 -9
- package/dist/components/p-98ac5d0d.js.map +1 -0
- package/dist/components/{p-4b6f0f31.js → p-9d6730de.js} +8 -8
- package/dist/components/{p-4b6f0f31.js.map → p-9d6730de.js.map} +1 -1
- package/dist/components/{p-63c6b0a2.js → p-ab205a76.js} +3 -3
- package/dist/components/p-ab205a76.js.map +1 -0
- package/dist/components/{p-e79201ff.js → p-abe804db.js} +4 -4
- package/dist/components/p-abe804db.js.map +1 -0
- package/dist/components/{p-4902e083.js → p-b38f0271.js} +12 -12
- package/dist/components/p-b38f0271.js.map +1 -0
- package/dist/components/{p-d2c0ced4.js → p-c9eaeb36.js} +23 -23
- package/dist/components/{p-d2c0ced4.js.map → p-c9eaeb36.js.map} +1 -1
- package/dist/components/{p-17ffb374.js → p-ccc410db.js} +10 -10
- package/dist/components/{p-17ffb374.js.map → p-ccc410db.js.map} +1 -1
- package/dist/components/{p-601f42fd.js → p-d036020c.js} +5 -5
- package/dist/components/p-d036020c.js.map +1 -0
- package/dist/components/{p-2f6bb6bd.js → p-de3e9a78.js} +6 -6
- package/dist/components/{p-2f6bb6bd.js.map → p-de3e9a78.js.map} +1 -1
- package/dist/components/{p-20bb9e36.js → p-e2c24eb2.js} +15 -15
- package/dist/components/{p-20bb9e36.js.map → p-e2c24eb2.js.map} +1 -1
- package/dist/components/{p-b7dcee2a.js → p-eda4e812.js} +2 -2
- package/dist/components/{p-b7dcee2a.js.map → p-eda4e812.js.map} +1 -1
- package/dist/components/{p-db859682.js → p-f0cfd27f.js} +3 -3
- package/dist/components/{p-db859682.js.map → p-f0cfd27f.js.map} +1 -1
- package/dist/components/{p-548895f3.js → p-f1b35aa4.js} +3 -3
- package/dist/components/p-f1b35aa4.js.map +1 -0
- package/dist/components/{p-4e7ae4a3.js → p-f62680da.js} +4 -4
- package/dist/components/{p-4e7ae4a3.js.map → p-f62680da.js.map} +1 -1
- package/dist/components/smoothly-app-demo.js +40 -40
- package/dist/components/smoothly-calendar.js +1 -1
- package/dist/components/smoothly-filter-field.js +1 -1
- package/dist/components/smoothly-filter-input.js +1 -1
- package/dist/components/smoothly-filter-select.js +1 -1
- package/dist/components/smoothly-filter.js +1 -1
- package/dist/components/smoothly-form-demo-all.js +1 -1
- package/dist/components/smoothly-form-demo-card.js +1 -1
- package/dist/components/smoothly-form-demo-controlled.js +1 -1
- package/dist/components/smoothly-form-demo-login.js +1 -1
- package/dist/components/smoothly-form-demo-prices.js +1 -1
- package/dist/components/smoothly-form-demo-transparent.js +1 -1
- package/dist/components/smoothly-form-demo-typed.js +1 -1
- package/dist/components/smoothly-form-demo.js +1 -1
- package/dist/components/smoothly-form.js +1 -1
- package/dist/components/smoothly-icon-demo.js +1 -1
- package/dist/components/smoothly-input-checkbox-demo.js +15 -15
- package/dist/components/smoothly-input-checkbox.js +1 -1
- package/dist/components/smoothly-input-clear.js +1 -1
- package/dist/components/smoothly-input-color-demo.js +1 -1
- package/dist/components/smoothly-input-color.js +1 -1
- package/dist/components/smoothly-input-date-range.js +1 -1
- package/dist/components/smoothly-input-date.js +1 -1
- package/dist/components/smoothly-input-demo-standard.js +1 -1
- package/dist/components/smoothly-input-demo.js +1 -1
- package/dist/components/smoothly-input-file.js +1 -1
- package/dist/components/smoothly-input-month.js +1 -1
- package/dist/components/smoothly-input-price-demo.js +1 -1
- package/dist/components/smoothly-input-radio-item.js +1 -1
- package/dist/components/smoothly-input-radio.js +1 -1
- package/dist/components/smoothly-input-range-demo.js +1 -1
- package/dist/components/smoothly-input-range.js +1 -1
- package/dist/components/smoothly-input-reset.js +1 -1
- package/dist/components/smoothly-input-select.js +1 -1
- package/dist/components/smoothly-input.js +1 -1
- package/dist/components/smoothly-next-demo.js +1 -1
- package/dist/components/smoothly-next-table-demo-filtered.js +1 -1
- package/dist/components/smoothly-picker-demo.js +5 -5
- package/dist/components/smoothly-picker-menu.js +1 -1
- package/dist/components/smoothly-picker.js +1 -1
- package/dist/components/smoothly-table-demo-filtered.js +1 -1
- package/dist/components/smoothly-table-demo.js +1 -1
- package/dist/components/smoothly-table-testing.js +1 -1
- package/dist/components/smoothly-theme-demo.js +1 -1
- package/dist/components/smoothly-theme-picker.js +1 -1
- package/dist/esm/smoothly-app_104.entry.js +47 -47
- package/dist/esm/smoothly-app_104.entry.js.map +1 -1
- package/dist/esm/smoothly-picker-menu_3.entry.js +1 -1
- package/dist/esm/smoothly-picker-menu_3.entry.js.map +1 -1
- package/dist/esm/smoothly-picker.entry.js +3 -3
- package/dist/esm/smoothly-picker.entry.js.map +1 -1
- package/dist/smoothly/{p-b5be10be.entry.js → p-1508fa4c.entry.js} +2 -2
- package/dist/smoothly/p-1508fa4c.entry.js.map +1 -0
- package/dist/smoothly/{p-cfe547e6.entry.js → p-6bc9065b.entry.js} +2 -2
- package/dist/smoothly/p-6bc9065b.entry.js.map +1 -0
- package/dist/smoothly/p-f13c223e.entry.js +2 -0
- package/dist/smoothly/p-f13c223e.entry.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/filter/select/index.d.ts +3 -3
- package/dist/types/components/form/index.d.ts +2 -2
- package/dist/types/components/input/Input.d.ts +1 -1
- package/dist/types/components/input/checkbox/index.d.ts +2 -2
- package/dist/types/components/input/color/index.d.ts +2 -2
- package/dist/types/components/input/date/index.d.ts +2 -2
- package/dist/types/components/input/date/range/index.d.ts +2 -2
- package/dist/types/components/input/file/index.d.ts +2 -2
- package/dist/types/components/input/index.d.ts +2 -2
- package/dist/types/components/input/month/index.d.ts +3 -3
- package/dist/types/components/input/radio/index.d.ts +2 -2
- package/dist/types/components/input/radio/item/index.d.ts +1 -1
- package/dist/types/components/input/range/index.d.ts +2 -2
- package/dist/types/components/input/select/index.d.ts +2 -2
- package/dist/types/components/picker/index.d.ts +3 -3
- package/dist/types/components/picker/menu/index.d.ts +1 -1
- package/dist/types/components.d.ts +39 -39
- package/package.json +1 -1
- package/dist/components/p-056e349c.js.map +0 -1
- package/dist/components/p-0a6b1a73.js.map +0 -1
- package/dist/components/p-282093b0.js.map +0 -1
- package/dist/components/p-4902e083.js.map +0 -1
- package/dist/components/p-548895f3.js.map +0 -1
- package/dist/components/p-601f42fd.js.map +0 -1
- package/dist/components/p-63c6b0a2.js.map +0 -1
- package/dist/components/p-702b3951.js.map +0 -1
- package/dist/components/p-782a198d.js.map +0 -1
- package/dist/components/p-78305d11.js.map +0 -1
- package/dist/components/p-809996a3.js.map +0 -1
- package/dist/components/p-9c49e612.js.map +0 -1
- package/dist/components/p-e79201ff.js.map +0 -1
- package/dist/components/p-fde8b50d.js.map +0 -1
- package/dist/smoothly/p-3b2a9fbf.entry.js +0 -2
- package/dist/smoothly/p-3b2a9fbf.entry.js.map +0 -1
- package/dist/smoothly/p-b5be10be.entry.js.map +0 -1
- package/dist/smoothly/p-cfe547e6.entry.js.map +0 -1
|
@@ -7229,10 +7229,10 @@ const SmoothlyFilterSelect = class {
|
|
|
7229
7229
|
this.menuHeight = undefined;
|
|
7230
7230
|
this.multiple = false;
|
|
7231
7231
|
this.type = "string";
|
|
7232
|
-
this.looks =
|
|
7232
|
+
this.looks = undefined;
|
|
7233
7233
|
}
|
|
7234
7234
|
componentWillLoad() {
|
|
7235
|
-
this.smoothlyInputLooks.emit(looks => (this.looks = looks));
|
|
7235
|
+
this.smoothlyInputLooks.emit(looks => { var _a; return (this.looks = (_a = this.looks) !== null && _a !== void 0 ? _a : looks); });
|
|
7236
7236
|
}
|
|
7237
7237
|
async componentDidLoad() {
|
|
7238
7238
|
this.smoothlyFilterUpdate.emit(this.update.bind(this));
|
|
@@ -7317,7 +7317,7 @@ const SmoothlyFilterSelect = class {
|
|
|
7317
7317
|
return result && this.property.split(".").reduceRight((r, e) => property(e, r), result);
|
|
7318
7318
|
}
|
|
7319
7319
|
render() {
|
|
7320
|
-
return (index.h("smoothly-input-select", { key: '
|
|
7320
|
+
return (index.h("smoothly-input-select", { key: '7ae9928e80c12151cf0565c25742882ab9e58b8a', ref: e => (this.selectElement = e), name: this.property, looks: this.looks, multiple: this.multiple, menuHeight: this.menuHeight, onSmoothlyInputLooks: e => e.stopPropagation(), onSmoothlyItemSelect: e => e.stopPropagation(), onSmoothlyInput: e => this.selectHandler(e) }, this.label && (index.h("span", { key: 'b312b8873cb50ad55de7ec2e7ad70d2799d08346', slot: "label" }, [this.label.slice(0, 1).toUpperCase(), this.label.slice(1, this.label.length)].join(""))), index.h("slot", { key: 'c68e541981ac0714557f981bedd4ea27b35561d1', name: "items" })));
|
|
7321
7321
|
}
|
|
7322
7322
|
get element() { return index.getElement(this); }
|
|
7323
7323
|
};
|
|
@@ -8249,7 +8249,7 @@ const SmoothlyForm = class {
|
|
|
8249
8249
|
this.validator = undefined;
|
|
8250
8250
|
this.type = this.action ? "create" : undefined;
|
|
8251
8251
|
this.readonly = false;
|
|
8252
|
-
this.looks =
|
|
8252
|
+
this.looks = undefined;
|
|
8253
8253
|
this.name = undefined;
|
|
8254
8254
|
this.prevent = true;
|
|
8255
8255
|
this.changed = false;
|
|
@@ -8379,7 +8379,7 @@ const SmoothlyForm = class {
|
|
|
8379
8379
|
await Promise.all([...this.inputs.values()].map(input => Editable.Element.type.is(input) && input.setInitialValue()));
|
|
8380
8380
|
}
|
|
8381
8381
|
render() {
|
|
8382
|
-
return (index.h(index.Host, { key: '
|
|
8382
|
+
return (index.h(index.Host, { key: '8db2bd988a6d36741f2db6c2e7a54bc5afa9f940' }, index.h("smoothly-spinner", { key: '0d17aa5f230cad7f94ed4adadb76091d8aef81e5', overlay: true, hidden: !this.processing }), index.h("form", { key: '09fab657f7f2d09eca3346ab65f6dbe6ad3fdf37', onSubmit: !this.prevent ? undefined : e => e.preventDefault(), name: this.name }, index.h("fieldset", { key: '97b089bde361133677f7848a0825e3fa6b1b5991' }, index.h("slot", { key: 'ce538fca925a608658ff6ddcb39e14b01a193fc1' })), index.h("div", { key: '2632d3fe7777acafaa402a937407e8bee9f59e0f' }, index.h("slot", { key: '9e14ffef6ead8b8859dc29da3726b348bb85a0ca', name: "clear" }), index.h("slot", { key: 'ded085da1c9059c448e136f2d92611c9ac8232af', name: "edit" }), index.h("slot", { key: '779b97b5e85d94cf9f3b055ff6bdf6ec11432181', name: "reset" }), index.h("slot", { key: '48d4b972be33e58de7bfd715f7ee9e9f1cfaaf31', name: "delete" }), index.h("slot", { key: 'ceaa9ab1727f375ac9efc533f4545321bb64e7b1', name: "submit" })))));
|
|
8383
8383
|
}
|
|
8384
8384
|
get element() { return index.getElement(this); }
|
|
8385
8385
|
static get watchers() { return {
|
|
@@ -8653,7 +8653,7 @@ const SmoothlyInput = class {
|
|
|
8653
8653
|
this.uneditable = this.readonly;
|
|
8654
8654
|
this.listener = {};
|
|
8655
8655
|
this.color = undefined;
|
|
8656
|
-
this.looks =
|
|
8656
|
+
this.looks = undefined;
|
|
8657
8657
|
this.name = undefined;
|
|
8658
8658
|
this.value = undefined;
|
|
8659
8659
|
this.type = "text";
|
|
@@ -8726,7 +8726,7 @@ const SmoothlyInput = class {
|
|
|
8726
8726
|
value,
|
|
8727
8727
|
selection: { start, end: start, direction: "none" },
|
|
8728
8728
|
});
|
|
8729
|
-
this.smoothlyInputLooks.emit((looks, color) => ((this.looks = looks), !this.color && (this.color = color)));
|
|
8729
|
+
this.smoothlyInputLooks.emit((looks, color) => { var _a; return ((this.looks = (_a = this.looks) !== null && _a !== void 0 ? _a : looks), !this.color && (this.color = color)); });
|
|
8730
8730
|
this.smoothlyInputLoad.emit(() => {
|
|
8731
8731
|
return;
|
|
8732
8732
|
});
|
|
@@ -8898,10 +8898,10 @@ const SmoothlyInput = class {
|
|
|
8898
8898
|
}
|
|
8899
8899
|
render() {
|
|
8900
8900
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
8901
|
-
return (index.h(index.Host, { key: '
|
|
8901
|
+
return (index.h(index.Host, { key: '102a79826fbd94c20706c57edf720bed5e5f5955', class: {
|
|
8902
8902
|
"has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "",
|
|
8903
8903
|
invalid: !!this.invalid,
|
|
8904
|
-
}, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, index.h("slot", { key: '
|
|
8904
|
+
}, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, index.h("slot", { key: '73f7a9644e1c7a21024da254aa466177b7384b68', name: "start" }), index.h("div", { key: '57794c3c882d031c8ec72352e80fb7f4f93258df' }, index.h("input", { key: 'b0b5e63efb83c48449034686bdb3fcd703bd156a', color: this.color, name: this.name, type: (_c = this.state) === null || _c === void 0 ? void 0 : _c.type, inputmode: (_d = this.state) === null || _d === void 0 ? void 0 : _d.inputmode, placeholder: this.placeholder, required: this.required, autocomplete: this.autocomplete ? (_e = this.state) === null || _e === void 0 ? void 0 : _e.autocomplete : "off", disabled: this.disabled, readOnly: this.readonly, pattern: ((_f = this.state) === null || _f === void 0 ? void 0 : _f.pattern) && ((_g = this.state) === null || _g === void 0 ? void 0 : _g.pattern.source), value: (_h = this.state) === null || _h === void 0 ? void 0 : _h.value, onInput: (e) => this.onInput(e), onFocus: e => this.onFocus(e), onClick: e => this.onClick(e), onBlur: e => this.onBlur(e), onKeyDown: e => this.onKeyDown(e), ref: (el) => (this.inputElement = el), onPaste: e => this.onPaste(e) }), index.h("label", { key: '842f25036ac8553d496196f27dfcfb70828118c5', class: "label float-on-focus", htmlFor: this.name }, index.h("slot", { key: 'e7b53446371776783029f3f88a918902537de64f' })), index.h("smoothly-icon", { key: '08bb54f7da7870f01299970011e193f2c66921a8', name: "alert-circle", color: "danger", fill: "clear", size: "small" })), index.h("slot", { key: '815adbc27facde011d4f7612634e115ecff1d5bc', name: "end" })));
|
|
8905
8905
|
}
|
|
8906
8906
|
static get watchers() { return {
|
|
8907
8907
|
"currency": ["typeChange", "onCurrency"],
|
|
@@ -8932,7 +8932,7 @@ const SmoothlyInputCheckbox = class {
|
|
|
8932
8932
|
this.readonly = false;
|
|
8933
8933
|
this.checked = false;
|
|
8934
8934
|
this.value = this.checked;
|
|
8935
|
-
this.looks =
|
|
8935
|
+
this.looks = undefined;
|
|
8936
8936
|
this.color = undefined;
|
|
8937
8937
|
this.disabled = undefined;
|
|
8938
8938
|
}
|
|
@@ -8940,7 +8940,7 @@ const SmoothlyInputCheckbox = class {
|
|
|
8940
8940
|
var _a, _b;
|
|
8941
8941
|
this.initialValue = this.checked;
|
|
8942
8942
|
!this.readonly && this.smoothlyFormDisable.emit(readonly => (this.readonly = readonly));
|
|
8943
|
-
this.smoothlyInputLooks.emit((looks, color) => ((this.looks = looks), (this.color = color)));
|
|
8943
|
+
this.smoothlyInputLooks.emit((looks, color) => { var _a; return ((this.looks = (_a = this.looks) !== null && _a !== void 0 ? _a : looks), !this.color && (this.color = color)); });
|
|
8944
8944
|
this.smoothlyInputLoad.emit(() => {
|
|
8945
8945
|
return;
|
|
8946
8946
|
});
|
|
@@ -8973,7 +8973,7 @@ const SmoothlyInputCheckbox = class {
|
|
|
8973
8973
|
!this.disabled && !this.readonly && (this.checked = !this.checked);
|
|
8974
8974
|
}
|
|
8975
8975
|
render() {
|
|
8976
|
-
return (index.h(index.Host, { key: '
|
|
8976
|
+
return (index.h(index.Host, { key: 'a4d2b1536735268498128c427701c5a43d9db83e', onClick: () => this.inputHandler() }, index.h("input", { key: '6686fe73fe7a349ed4e391f90b7c9d9b7d6aafcd', type: "checkbox", checked: this.checked }), this.checked && index.h("smoothly-icon", { key: 'b02c92c0dc37759efb99a553db9a41f522f9e76b', name: "checkmark-outline", size: "tiny" }), index.h("label", { key: '317b14039a27eb6dc6fb3b002b61d3c1fe0cc0fd' }, index.h("slot", { key: 'adef65ba4451bfd065385a6ed1ea999e8be27b4e' }))));
|
|
8977
8977
|
}
|
|
8978
8978
|
static get watchers() { return {
|
|
8979
8979
|
"checked": ["elementCheck"]
|
|
@@ -9041,7 +9041,7 @@ const SmoothlyInputColor = class {
|
|
|
9041
9041
|
this.rgb = { r: undefined, g: undefined, b: undefined };
|
|
9042
9042
|
this.hsl = { h: undefined, s: undefined, l: undefined };
|
|
9043
9043
|
this.value = undefined;
|
|
9044
|
-
this.looks =
|
|
9044
|
+
this.looks = undefined;
|
|
9045
9045
|
this.color = undefined;
|
|
9046
9046
|
this.changed = false;
|
|
9047
9047
|
this.readonly = false;
|
|
@@ -9054,7 +9054,7 @@ const SmoothlyInputColor = class {
|
|
|
9054
9054
|
componentWillLoad() {
|
|
9055
9055
|
this.value && this.setInitialValue();
|
|
9056
9056
|
this.value && (this.rgb = Scrollable.Color.Hex.toRGB(this.value));
|
|
9057
|
-
this.smoothlyInputLooks.emit((looks, color) => ((this.looks = looks), (this.color = color)));
|
|
9057
|
+
this.smoothlyInputLooks.emit((looks, color) => { var _a; return ((this.looks = (_a = this.looks) !== null && _a !== void 0 ? _a : looks), (this.color = color)); });
|
|
9058
9058
|
this.smoothlyInput.emit({
|
|
9059
9059
|
[this.name]: this.output === "rgb"
|
|
9060
9060
|
? {
|
|
@@ -9172,7 +9172,7 @@ const SmoothlyInputColor = class {
|
|
|
9172
9172
|
}
|
|
9173
9173
|
render() {
|
|
9174
9174
|
var _a, _b, _c, _d, _e, _f;
|
|
9175
|
-
return (index.h(index.Host, { key: '
|
|
9175
|
+
return (index.h(index.Host, { key: 'f41ed020ed9b6ef9009e722b6cf1a4828f38987b', style: {
|
|
9176
9176
|
"--hexCode": this.value,
|
|
9177
9177
|
"--rgb-r": `${Math.round((_a = this.rgb.r) !== null && _a !== void 0 ? _a : 0)}`,
|
|
9178
9178
|
"--rgb-g": `${Math.round((_b = this.rgb.g) !== null && _b !== void 0 ? _b : 0)}`,
|
|
@@ -9181,7 +9181,7 @@ const SmoothlyInputColor = class {
|
|
|
9181
9181
|
"--hsl-s": `${Math.round((_e = this.hsl.s) !== null && _e !== void 0 ? _e : 0)}%`,
|
|
9182
9182
|
"--hsl-l": `${Math.round((_f = this.hsl.l) !== null && _f !== void 0 ? _f : 0)}%`,
|
|
9183
9183
|
"--element-height": `${this.element.clientHeight}px`,
|
|
9184
|
-
} }, index.h("smoothly-input", { key: '
|
|
9184
|
+
} }, index.h("smoothly-input", { key: '8eb1b0295940116951fcd4cd7c28d5898ea282d5', value: this.value, name: this.name, looks: undefined, color: this.color, type: "hex-color", showLabel: this.showLabel, readonly: this.readonly, onSmoothlyInput: event => (event === null || event === void 0 ? void 0 : event.stopPropagation(), this.hexInputHandler(event.detail[this.name])) }, index.h("slot", { key: 'abf902751a8b55b776c1609830aafb5355ba37c3' })), index.h("div", { key: '8cea7592d8e024cdf278e3cedc6db6649de91117', class: "color-sample" }), index.h("smoothly-icon", { key: '60591e7df9b318cad9a4999bb93bb8ad9b0dc411', color: this.color, name: "options-outline", size: "small", onClick: () => !this.readonly && this.openDropdown() }), this.open && !this.readonly && (index.h("div", { key: 'df84ce622ad29ff8ef2a0ea699b8f6de6c1b0598', class: "rgb-sliders" }, index.h("smoothly-toggle-switch", { key: '9777e50a6d3c5001e0f69c8acda3c89e3cf7cb22', title: `${this.sliderMode === "rgb" ? "To HSL" : "To RGB"}`, onSmoothlyToggleSwitchChange: event => this.handleSwitchMode(event), size: "tiny", checkmark: false, selected: this.sliderMode === "hsl" }), Object.entries(this.rgb).map(([key, value]) => (index.h("smoothly-input-range", { style: this.sliderMode != "rgb" ? { display: "none" } : {}, name: key, min: 0, max: 255, color: undefined, type: "text", value: value, step: 1, outputSide: "right", onSmoothlyInput: event => this.sliderInputHandler(event), label: key.toUpperCase() }))), Object.entries(this.hsl).map(([key, value]) => (index.h("smoothly-input-range", { style: this.sliderMode != "hsl" ? { display: "none" } : {}, name: key, min: 0, max: key === "h" ? 359 : 1, color: undefined, type: key === "s" || key === "l" ? "percent" : "text", value: (key === "s" || key === "l") && value ? value / 100 : value, step: key === "s" || key === "l" ? 0.01 : 1, outputSide: "right", onSmoothlyInput: event => this.sliderInputHandler(event), label: key.toUpperCase() })))))));
|
|
9185
9185
|
}
|
|
9186
9186
|
get element() { return index.getElement(this); }
|
|
9187
9187
|
static get watchers() { return {
|
|
@@ -9213,7 +9213,7 @@ const SmoothlyInputDate = class {
|
|
|
9213
9213
|
this.smoothlyFormDisable = index.createEvent(this, "smoothlyFormDisable", 7);
|
|
9214
9214
|
this.listener = {};
|
|
9215
9215
|
this.color = undefined;
|
|
9216
|
-
this.looks =
|
|
9216
|
+
this.looks = undefined;
|
|
9217
9217
|
this.name = undefined;
|
|
9218
9218
|
this.changed = false;
|
|
9219
9219
|
this.readonly = false;
|
|
@@ -9227,7 +9227,7 @@ const SmoothlyInputDate = class {
|
|
|
9227
9227
|
componentWillLoad() {
|
|
9228
9228
|
this.setInitialValue();
|
|
9229
9229
|
this.smoothlyInputLoad.emit(_ => { });
|
|
9230
|
-
this.smoothlyInputLooks.emit((looks, color) => ((this.looks = looks), !this.color && (this.color = color)));
|
|
9230
|
+
this.smoothlyInputLooks.emit((looks, color) => { var _a; return ((this.looks = (_a = this.looks) !== null && _a !== void 0 ? _a : looks), !this.color && (this.color = color)); });
|
|
9231
9231
|
!this.readonly && this.smoothlyFormDisable.emit(readonly => (this.readonly = readonly));
|
|
9232
9232
|
}
|
|
9233
9233
|
async listen(property, listener) {
|
|
@@ -9273,16 +9273,16 @@ const SmoothlyInputDate = class {
|
|
|
9273
9273
|
}
|
|
9274
9274
|
render() {
|
|
9275
9275
|
var _a;
|
|
9276
|
-
return (index.h(index.Host, { key: '
|
|
9276
|
+
return (index.h(index.Host, { key: '5b2e64048cdf0dd5de9e581ab7dec03c1ecaeba2' }, index.h("smoothly-input", { key: 'f8196d27fb114f3448636e2786eccde3ef8d5c81', color: this.color, looks: this.looks == "transparent" ? this.looks : undefined, name: this.name, onFocus: () => !this.readonly && (this.open = !this.open), onClick: () => !this.readonly && (this.open = !this.open), readonly: this.readonly, invalid: this.invalid, type: "date", value: this.value, showLabel: this.showLabel, onSmoothlyInputLoad: e => e.stopPropagation(), onSmoothlyInput: e => {
|
|
9277
9277
|
e.stopPropagation();
|
|
9278
9278
|
this.value = e.detail[this.name];
|
|
9279
|
-
} }, index.h("slot", { key: '
|
|
9279
|
+
} }, index.h("slot", { key: '5dc9d28afe1d9bd0956b034de1d249f29ea42147' })), index.h("span", { key: '8a95c5c9f67ef562984bcf38ec0c2feb9d773be7', class: "icons" }, index.h("slot", { key: '6555e8de4293358303d3defbbf671c90d797fa12', name: "end" })), this.open &&
|
|
9280
9280
|
!this.readonly && [
|
|
9281
|
-
index.h("div", { key: '
|
|
9282
|
-
index.h("nav", { key: '
|
|
9281
|
+
index.h("div", { key: '26169dafb41be0c70e5badecb81cf05b9e3c6975', onClick: () => (this.open = false) }),
|
|
9282
|
+
index.h("nav", { key: '26e1b3a88b8ec7b1b88f66385b687d0ddeeaf362' }, index.h("div", { key: '12473d6b09401f03699c94abb1bceae1a53e23ea', class: "arrow" }), index.h("smoothly-calendar", { key: '079bfe2918ed52910fc1ecccd9f3155161f78854', doubleInput: false, value: (_a = this.value) !== null && _a !== void 0 ? _a : TimeZone.Date.now(), onSmoothlyValueChange: event => {
|
|
9283
9283
|
this.value = event.detail;
|
|
9284
9284
|
event.stopPropagation();
|
|
9285
|
-
}, max: this.max, min: this.min }, index.h("div", { key: '
|
|
9285
|
+
}, max: this.max, min: this.min }, index.h("div", { key: 'f8deed206e39fd524818545140af46e007152c98', slot: "year-label" }, index.h("slot", { key: 'dac08aac0c2ed1f361a36d18e593ee645ab46b39', name: "year-label" })), index.h("div", { key: 'f904f6e9f4b73f4c05f2310d6774fc8912336126', slot: "month-label" }, index.h("slot", { key: '92dfa1aa0a8de42b15f13da59ca573d86c526347', name: "month-label" })))),
|
|
9286
9286
|
]));
|
|
9287
9287
|
}
|
|
9288
9288
|
get element() { return index.getElement(this); }
|
|
@@ -9305,7 +9305,7 @@ const SmoothlyInputDateRange = class {
|
|
|
9305
9305
|
this.listener = {};
|
|
9306
9306
|
this.name = "dateRange";
|
|
9307
9307
|
this.color = undefined;
|
|
9308
|
-
this.looks =
|
|
9308
|
+
this.looks = undefined;
|
|
9309
9309
|
this.readonly = false;
|
|
9310
9310
|
this.showLabel = true;
|
|
9311
9311
|
this.start = undefined;
|
|
@@ -9322,7 +9322,7 @@ const SmoothlyInputDateRange = class {
|
|
|
9322
9322
|
this.setInitialValue();
|
|
9323
9323
|
this.updateValue();
|
|
9324
9324
|
this.smoothlyInputLoad.emit(_ => { });
|
|
9325
|
-
this.smoothlyInputLooks.emit((looks, color) => ((this.looks = looks), !this.color && (this.color = color)));
|
|
9325
|
+
this.smoothlyInputLooks.emit((looks, color) => { var _a; return ((this.looks = (_a = this.looks) !== null && _a !== void 0 ? _a : looks), !this.color && (this.color = color)); });
|
|
9326
9326
|
this.start && this.end && this.smoothlyInput.emit({ [this.name]: { start: this.start, end: this.end } });
|
|
9327
9327
|
!this.readonly && this.smoothlyFormDisable.emit(readonly => (this.readonly = readonly));
|
|
9328
9328
|
}
|
|
@@ -9374,12 +9374,12 @@ const SmoothlyInputDateRange = class {
|
|
|
9374
9374
|
}
|
|
9375
9375
|
render() {
|
|
9376
9376
|
const locale = navigator.language;
|
|
9377
|
-
return (index.h(index.Host, { key: '
|
|
9377
|
+
return (index.h(index.Host, { key: '0d13cfa842b849bfd9608be232d2d3a1667f0496', tabindex: 0 }, index.h("section", { key: '609e72b67c97b6f85f8e565e9fc3f96278c91cea', onClick: () => !this.readonly && (this.open = !this.open) }, index.h("smoothly-input", { key: '2beda4d2e6084b9ac9bad476940761aaafe8116d', type: "text", name: "dateRangeInput", readonly: this.readonly, value: this.start && this.end
|
|
9378
9378
|
? `${format(this.start, "date", locale)} — ${format(this.end, "date", locale)}`
|
|
9379
9379
|
: undefined, invalid: this.invalid, placeholder: this.placeholder, showLabel: this.showLabel, onSmoothlyInput: e => {
|
|
9380
9380
|
e.stopPropagation();
|
|
9381
9381
|
this.inputHandler(e.detail);
|
|
9382
|
-
} }, index.h("slot", { key: '
|
|
9382
|
+
} }, index.h("slot", { key: '48d70cd5debd4d2124db979027647c925eb92f61' }))), index.h("span", { key: '90ec3d16861f3335e4d36d88dc1001f37c053127', class: "icons" }, index.h("slot", { key: '0fb22022aa1a8f43d4c66fd9979100164cfb82a0', name: "end" })), this.open && index.h("div", { key: 'fe5ead0dedf79e5f3d5d969ae516a076a5b2d587', onClick: () => (this.open = false) }), this.open && (index.h("nav", { key: 'ea82a81aadaa3c76168a97f7b66b6d58c476e7f0' }, index.h("div", { key: '60dbba9c87ddd59e23150adf9ae455139d3aa09d', class: "arrow" }), index.h("smoothly-calendar", { key: '62027c9060591f71c7a509fb1a7db09adfc5c90c', doubleInput: true, onSmoothlyValueChange: e => e.stopPropagation(), onSmoothlyStartChange: e => {
|
|
9383
9383
|
e.stopPropagation();
|
|
9384
9384
|
this.start = e.detail;
|
|
9385
9385
|
}, onSmoothlyEndChange: e => {
|
|
@@ -9507,7 +9507,7 @@ const SmoothlyInputFile = class {
|
|
|
9507
9507
|
this.readonly = false;
|
|
9508
9508
|
this.accept = undefined;
|
|
9509
9509
|
this.color = undefined;
|
|
9510
|
-
this.looks =
|
|
9510
|
+
this.looks = undefined;
|
|
9511
9511
|
this.camera = undefined;
|
|
9512
9512
|
this.name = undefined;
|
|
9513
9513
|
this.showLabel = true;
|
|
@@ -9521,7 +9521,7 @@ const SmoothlyInputFile = class {
|
|
|
9521
9521
|
return this.transfer.files;
|
|
9522
9522
|
}
|
|
9523
9523
|
componentWillLoad() {
|
|
9524
|
-
this.smoothlyInputLooks.emit((looks, color) => ((this.looks = looks), !this.color && (this.color = color)));
|
|
9524
|
+
this.smoothlyInputLooks.emit((looks, color) => { var _a; return ((this.looks = (_a = this.looks) !== null && _a !== void 0 ? _a : looks), !this.color && (this.color = color)); });
|
|
9525
9525
|
this.smoothlyInput.emit({ [this.name]: this.value });
|
|
9526
9526
|
this.smoothlyInputLoad.emit(() => { });
|
|
9527
9527
|
!this.readonly && this.smoothlyFormDisable.emit(readonly => (this.readonly = readonly));
|
|
@@ -9584,7 +9584,7 @@ const SmoothlyInputFile = class {
|
|
|
9584
9584
|
}
|
|
9585
9585
|
render() {
|
|
9586
9586
|
var _a, _b, _c;
|
|
9587
|
-
return (index.h(index.Host, { key: '
|
|
9587
|
+
return (index.h(index.Host, { key: '3840a05fb38bbb94d9d7f922b70abd70bf68f3b9', class: { dragging: this.dragging, "has-value": !!this.value }, tabindex: 0, onClick: (e) => this.clickHandler(e), onDragOver: (e) => this.dragOverHandler(e), onDragEnter: (e) => this.dragEnterHandler(e) }, index.h("label", { key: '796604782bb3896880bbb1a4877fea20f5b4a714' }, index.h("slot", { key: '3ed236d6e298fbb5bf4a182d263587ce876daaa9', name: "label" })), index.h("div", { key: '8f7fdec5e503c82f3ea062aff12b74b6cb39b190', class: "input" }, index.h("smoothly-button", { key: '39fa7e965699f944ff4d8abf6aa8ea481a4d17fb', color: this.color, fill: "clear", size: "flexible" }, index.h("slot", { key: 'e448ffeb5d43a243ac6be01944cec7ddf63f6542', name: "button" })), index.h("span", { key: 'a210009eda5924b32b0766504ac8de957479872e' }, (_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : this.placeholder), index.h("div", { key: '78a9239678504e8f7a9af52d94c5702d95289d6e', class: "mask", onDrop: e => this.dropHandler(e), onDragLeave: e => this.dragLeaveHandler(e) }), index.h("input", { key: 'f8e94fbd4ca9b082fee12ab5c470203011be3c85', ref: element => (this.input = element), type: "file", capture: this.camera == "back" ? "environment" : "user", accept: (_c = this.accept) !== null && _c !== void 0 ? _c : (!this.camera ? undefined : "image/jpeg"), files: this.files, onInput: e => this.inputHandler(e) })), index.h("slot", { key: 'a1b467bb31342406cac7ce6db6582624ae72b3ac' })));
|
|
9588
9588
|
}
|
|
9589
9589
|
static get watchers() { return {
|
|
9590
9590
|
"value": ["valueChanged"]
|
|
@@ -9614,7 +9614,7 @@ const SmoothlyInputMonth = class {
|
|
|
9614
9614
|
this.showLabel = true;
|
|
9615
9615
|
}
|
|
9616
9616
|
componentWillLoad() {
|
|
9617
|
-
this.smoothlyInputLooks.emit(looks => (this.looks = looks));
|
|
9617
|
+
this.smoothlyInputLooks.emit(looks => { var _a; return (this.looks = (_a = this.looks) !== null && _a !== void 0 ? _a : looks); });
|
|
9618
9618
|
this.smoothlyInputLoad.emit(() => { });
|
|
9619
9619
|
!this.readonly && this.smoothlyFormDisable.emit(readonly => (this.readonly = readonly));
|
|
9620
9620
|
this.valueChanged();
|
|
@@ -9675,7 +9675,7 @@ const SmoothlyInputMonth = class {
|
|
|
9675
9675
|
}
|
|
9676
9676
|
render() {
|
|
9677
9677
|
var _a, _b;
|
|
9678
|
-
return (index.h(index.Host, { key: '
|
|
9678
|
+
return (index.h(index.Host, { key: '21e587a94e9a4dd53b05520be28c83ef29a54c19' }, index.h("smoothly-icon", { key: '4740d4a8825d9834fd6cf02e3197a49c8cde66bc', name: "caret-back-outline", size: "tiny", color: this.color, fill: "default", class: { disabled: this.readonly }, onClick: () => this.adjustMonth(-1) }), index.h("smoothly-input-select", { key: '6f783bfb05c7ce1f6bd5c5f99b03f653306d3950', ref: e => (this.year = e), name: `${this.name}-year`, readonly: this.readonly, changed: this.changed, menuHeight: "5.5items", required: true, inCalendar: this.inCalendar, showLabel: this.showLabel, onSmoothlyInput: e => this.inputHandler(e), searchDisabled: true }, index.h("div", { key: 'a7fb003ca92e5aba1e398c2cadf939d66b7c10b0', slot: "label" }, index.h("slot", { key: 'abb1f5efeefbff753f2a1cecfa6d015970cd1888', name: "year-label" })), years((_a = this.value) !== null && _a !== void 0 ? _a : TimeZone.Date.now()).map(year => (index.h("smoothly-item", { key: year.date, value: year.date, selected: year.selected || this.value == year.date }, year.name)))), index.h("smoothly-input-select", { key: 'fe9cd212596fd073cc16c6d37ddd932d985c52a8', ref: e => (this.month = e), name: `${this.name}-month`, readonly: this.readonly, color: this.color, looks: this.looks, changed: this.changed, menuHeight: "5.5items", required: true, inCalendar: this.inCalendar, showLabel: this.showLabel, onSmoothlyInput: e => this.inputHandler(e), searchDisabled: true }, index.h("div", { key: '9000e5459dd332c11cde2446a63ac7502ee967ad', slot: "label" }, index.h("slot", { key: '6ea59c87ac23f136bc645f3d5a2cedadec34a2f5', name: "month-label" })), months((_b = this.value) !== null && _b !== void 0 ? _b : TimeZone.Date.now()).map(month => (index.h("smoothly-item", { key: month.date, value: month.date, selected: month.selected || this.value == month.date }, month.name)))), index.h("smoothly-icon", { key: '39f22e5eb52257fb42fad7f0b3da004613046b56', name: "caret-forward-outline", size: "tiny", color: this.color, fill: "default", class: { disabled: this.readonly }, onClick: () => this.adjustMonth(1) })));
|
|
9679
9679
|
}
|
|
9680
9680
|
get element() { return index.getElement(this); }
|
|
9681
9681
|
static get watchers() { return {
|
|
@@ -9713,7 +9713,7 @@ const SmoothlyInputRadio = class {
|
|
|
9713
9713
|
this.listener = {};
|
|
9714
9714
|
this.changed = false;
|
|
9715
9715
|
this.value = undefined;
|
|
9716
|
-
this.looks =
|
|
9716
|
+
this.looks = undefined;
|
|
9717
9717
|
this.color = undefined;
|
|
9718
9718
|
this.clearable = undefined;
|
|
9719
9719
|
this.readonly = false;
|
|
@@ -9722,7 +9722,7 @@ const SmoothlyInputRadio = class {
|
|
|
9722
9722
|
}
|
|
9723
9723
|
componentWillLoad() {
|
|
9724
9724
|
var _a, _b;
|
|
9725
|
-
this.smoothlyInputLooks.emit((looks, color) => ((this.looks = looks), (this.color = color)));
|
|
9725
|
+
this.smoothlyInputLooks.emit((looks, color) => { var _a; return ((this.looks = (_a = this.looks) !== null && _a !== void 0 ? _a : looks), (this.color = color)); });
|
|
9726
9726
|
!this.readonly && this.smoothlyFormDisable.emit(readonly => (this.readonly = readonly));
|
|
9727
9727
|
(_b = (_a = this.listener).changed) === null || _b === void 0 ? void 0 : _b.call(_a, this);
|
|
9728
9728
|
}
|
|
@@ -9795,7 +9795,7 @@ const SmoothlyInputRadio = class {
|
|
|
9795
9795
|
(_b = (_a = this.listener).changed) === null || _b === void 0 ? void 0 : _b.call(_a, this);
|
|
9796
9796
|
}
|
|
9797
9797
|
render() {
|
|
9798
|
-
return (index.h(index.Host, { key: '
|
|
9798
|
+
return (index.h(index.Host, { key: '1b05355d10542a1f45e96de12d96aecb6e79d4ca', class: "floating-label" }, index.h("slot", { key: 'd7f86c98b38271b65c30ceab7fb7e4faa333184a', name: "start" }), index.h("div", { key: 'f2d1a750872ef96d0d9eeae6505da0faa2739612' }, index.h("slot", { key: '608b188a348a38aee7d97b1df1fb54651d39d696', name: "label" }), index.h("div", { key: '6ae510fcade699b433860e8ce62f56171cabb25c', class: "options" }, index.h("slot", { key: '68cf98beaf5a3ea16c5216b79a1bb4cce3a79098' }))), index.h("slot", { key: '4c964a4447f2c23e620fd712a65b47a8932794a6', name: "end" })));
|
|
9799
9799
|
}
|
|
9800
9800
|
static get watchers() { return {
|
|
9801
9801
|
"value": ["valueChanged"],
|
|
@@ -9814,7 +9814,7 @@ const SmoothlyInputRadioItem = class {
|
|
|
9814
9814
|
this.smoothlyRadioButtonRegister = index.createEvent(this, "smoothlyRadioButtonRegister", 7);
|
|
9815
9815
|
this.value = undefined;
|
|
9816
9816
|
this.selected = false;
|
|
9817
|
-
this.looks =
|
|
9817
|
+
this.looks = undefined;
|
|
9818
9818
|
this.name = undefined;
|
|
9819
9819
|
}
|
|
9820
9820
|
componentWillLoad() {
|
|
@@ -9825,7 +9825,7 @@ const SmoothlyInputRadioItem = class {
|
|
|
9825
9825
|
this.smoothlySelect.emit({ value: this.value, selected: this.selected, select: s => (this.selected = s) });
|
|
9826
9826
|
}
|
|
9827
9827
|
render() {
|
|
9828
|
-
return (index.h(index.Host, { key: '
|
|
9828
|
+
return (index.h(index.Host, { key: 'e70574d5f3d746ff7777424f61d22258f6200adc', onClick: () => this.inputHandler() }, index.h("input", { key: 'c557567668427976b7ed8fc18b5d914283cfa663', name: this.name, type: "radio", checked: this.selected }), index.h("smoothly-icon", { key: 'f57bfccbe9131365095d85d23e2b0c16c7d9d3b9', name: this.selected ? "checkmark-circle" : "ellipse-outline", size: "small", fill: "outline", color: this.selected ? "success" : "medium", toolTip: "Select" }), index.h("label", { key: '9caf6cf93fc8bc15f4c05797635e4e2f94819656' }, index.h("slot", { key: '90910dc708da9124a135c8e28a557475a671e7c1' }))));
|
|
9829
9829
|
}
|
|
9830
9830
|
get element() { return index.getElement(this); }
|
|
9831
9831
|
};
|
|
@@ -9844,7 +9844,7 @@ const SmoothlyInputRange = class {
|
|
|
9844
9844
|
this.listener = {};
|
|
9845
9845
|
this.initialValue = undefined;
|
|
9846
9846
|
this.value = undefined;
|
|
9847
|
-
this.looks =
|
|
9847
|
+
this.looks = undefined;
|
|
9848
9848
|
this.color = undefined;
|
|
9849
9849
|
this.changed = false;
|
|
9850
9850
|
this.readonly = false;
|
|
@@ -9858,7 +9858,7 @@ const SmoothlyInputRange = class {
|
|
|
9858
9858
|
this.showInput = false;
|
|
9859
9859
|
}
|
|
9860
9860
|
componentWillLoad() {
|
|
9861
|
-
this.smoothlyInputLooks.emit((looks, color) => ((this.looks = looks), (this.color = color)));
|
|
9861
|
+
this.smoothlyInputLooks.emit((looks, color) => { var _a; return ((this.looks = (_a = this.looks) !== null && _a !== void 0 ? _a : looks), (this.color = color)); });
|
|
9862
9862
|
this.smoothlyInput.emit({ [this.name]: this.value });
|
|
9863
9863
|
this.smoothlyInputLoad.emit(() => {
|
|
9864
9864
|
return;
|
|
@@ -9918,10 +9918,10 @@ const SmoothlyInputRange = class {
|
|
|
9918
9918
|
}
|
|
9919
9919
|
render() {
|
|
9920
9920
|
var _a, _b, _c;
|
|
9921
|
-
return (index.h(index.Host, { key: '
|
|
9921
|
+
return (index.h(index.Host, { key: 'a99802548f02e977fd84cfae1ad676e01d6f6eea', class: {
|
|
9922
9922
|
"output-side-right": this.outputSide === "right",
|
|
9923
9923
|
"show-label": this.outputSide === "left" && !!this.label,
|
|
9924
|
-
} }, index.h("slot", { key: '
|
|
9924
|
+
} }, index.h("slot", { key: '317a6c29a47f9e281e76854cfc8b1f6074555cc3', name: "start" }), index.h("div", { key: 'd1643a60528e10e658fa9feda0ce07b97ff1924c' }, index.h("label", { key: '56829bd6bcf336b6432802e1cddab7f94a4a19f6', htmlFor: this.name }, this.label), index.h("smoothly-input", { key: 'd84d5e707e583282af1d97b59c516717faf35ded', ref: e => (this.input = e), looks: undefined, color: this.color, showLabel: this.outputSide === "left" && !!this.label, type: this.type, onSmoothlyInputLoad: e => (e.stopPropagation(), this.inputHandler(e)), onSmoothlyBlur: e => this.inputHandler(e), onSmoothlyInput: e => e.stopPropagation(), value: this.type == "percent" ? this.value : (_a = this.value) === null || _a === void 0 ? void 0 : _a.toString(), placeholder: this.outputSide === "right" ? "-" : undefined, readonly: this.readonly }, this.label), index.h("smoothly-display", { key: '8e9d240630480623b90fe6938509b76edd5e1cfc', label: (this.type == "percent" ? this.min * 100 : this.min).toString() }), index.h("input", { key: '3c99580c646adbb5fb8fd6d7b1b9d8eb2d0029a9', name: this.name, part: "range", type: "range", min: this.min, max: this.max, step: (_b = this.step) !== null && _b !== void 0 ? _b : "any", disabled: this.readonly, onInput: event => this.inputHandler(event), value: (_c = this.value) !== null && _c !== void 0 ? _c : this.min }), index.h("smoothly-display", { key: 'c210a370cc76858a86a95d532ad17d1e4b4b9ce7', label: (this.type == "percent" ? this.max * 100 : this.max).toString() })), index.h("slot", { key: 'f30dcd70736c5df09d9b401251b6cb70c80fe1c2', name: "end" })));
|
|
9925
9925
|
}
|
|
9926
9926
|
get element() { return index.getElement(this); }
|
|
9927
9927
|
static get watchers() { return {
|
|
@@ -10020,7 +10020,7 @@ const SmoothlyInputSelect = class {
|
|
|
10020
10020
|
this.invalid = false;
|
|
10021
10021
|
this.name = "selected";
|
|
10022
10022
|
this.color = undefined;
|
|
10023
|
-
this.looks =
|
|
10023
|
+
this.looks = undefined;
|
|
10024
10024
|
this.showLabel = true;
|
|
10025
10025
|
this.showSelected = true;
|
|
10026
10026
|
this.readonly = false;
|
|
@@ -10041,7 +10041,7 @@ const SmoothlyInputSelect = class {
|
|
|
10041
10041
|
}
|
|
10042
10042
|
componentWillLoad() {
|
|
10043
10043
|
var _a, _b;
|
|
10044
|
-
this.smoothlyInputLooks.emit((looks, color) => ((this.looks = looks), !this.color && (this.color = color)));
|
|
10044
|
+
this.smoothlyInputLooks.emit((looks, color) => { var _a; return ((this.looks = (_a = this.looks) !== null && _a !== void 0 ? _a : looks), !this.color && (this.color = color)); });
|
|
10045
10045
|
this.smoothlyInputLoad.emit(() => {
|
|
10046
10046
|
return;
|
|
10047
10047
|
});
|
|
@@ -10263,16 +10263,16 @@ const SmoothlyInputSelect = class {
|
|
|
10263
10263
|
this.addedItems = this.addedItems.concat(index.h("smoothly-item", { value: this.filter, selected: true }, this.filter));
|
|
10264
10264
|
}
|
|
10265
10265
|
render() {
|
|
10266
|
-
return (index.h(index.Host, { key: '
|
|
10266
|
+
return (index.h(index.Host, { key: 'ec468e4b702ea1ef7194eb2d318c4b0da53cb04a', tabIndex: 0, class: { "has-value": this.selected.length !== 0, open: this.open, invalid: !!this.invalid }, onClick: (event) => this.handleShowOptions(event) }, index.h("div", { key: '0fc0a92ae378a8a7450e1ad9a61e26ff3e186ddd', class: "select-display", ref: element => (this.displaySelectedElement = element) }, this.placeholder), index.h("div", { key: '4abb30289ea9c2e8c3905f352b6e1a25469b1af2', class: "icons", ref: element => (this.iconsDiv = element) }, index.h("slot", { key: '0bf4675c6d472c85a6cd708f5d71c3eef5cbaa92', name: "end" }), this.looks == "border" && !this.readonly && (index.h("smoothly-icon", { key: 'a2960997d88802ee694e5e45b5c6107495883b58', ref: element => (this.toggle = element), size: "tiny", name: this.open ? "caret-down-outline" : "caret-forward-outline" })), index.h("smoothly-icon", { key: 'a39e0eb1112f1166399b6f238ad995e64b95912d', class: "invalid", name: "alert-circle", color: "danger", fill: "clear", size: "small" })), index.h("slot", { key: '5d468e0ec3b82805ed98c08f07fe7a1df33f7a1e', name: "label" }), index.h("div", { key: '1edc208177418d3e4c30fb2e139b617311f05216', class: { hidden: !this.open, options: true }, ref: (el) => {
|
|
10267
10267
|
this.optionsDiv = el;
|
|
10268
|
-
} }, this.filter.length > 0 && (index.h("smoothly-item", { key: '
|
|
10268
|
+
} }, this.filter.length > 0 && (index.h("smoothly-item", { key: '1dec2882cf871c073eb8bc14623a60e41ea61ff1', selectable: false }, index.h("smoothly-icon", { key: '1db123a88644a570f4e9abfe082aeba729565803', name: "search-outline", size: "small" }), this.filter, index.h("smoothly-icon", { key: '196530525176e237dc3b8ada3dda485a088a2659', name: "backspace-outline", size: "small", onClick: e => {
|
|
10269
10269
|
e.stopPropagation();
|
|
10270
10270
|
this.filter = "";
|
|
10271
10271
|
this.element.focus();
|
|
10272
|
-
} }), this.mutable && (index.h("smoothly-icon", { key: '
|
|
10272
|
+
} }), this.mutable && (index.h("smoothly-icon", { key: '506456232544c188319ecd741ba05bbd8fc081fc', name: "add", size: "small", onClick: e => {
|
|
10273
10273
|
e.stopPropagation();
|
|
10274
10274
|
this.addItem();
|
|
10275
|
-
} })))), index.h("slot", { key: '
|
|
10275
|
+
} })))), index.h("slot", { key: '0b0dd3a5d2afe9773abdc30dd3f6204399cd7ac8' }), this.addedItems)));
|
|
10276
10276
|
}
|
|
10277
10277
|
get element() { return index.getElement(this); }
|
|
10278
10278
|
static get watchers() { return {
|