smoothly 1.1.1-alpha.153 → 1.1.1-alpha.154
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_106.cjs.entry.js +34 -46
- package/dist/cjs/smoothly-app_106.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-picker.cjs.entry.js +2 -4
- package/dist/cjs/smoothly-picker.cjs.entry.js.map +1 -1
- package/dist/collection/components/confirm/index.js +7 -6
- package/dist/collection/components/confirm/index.js.map +1 -1
- package/dist/collection/components/filter/select/index.js +2 -2
- package/dist/collection/components/filter/select/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/clear/index.js +7 -6
- package/dist/collection/components/input/clear/index.js.map +1 -1
- package/dist/collection/components/input/color/index.js +8 -7
- package/dist/collection/components/input/color/index.js.map +1 -1
- package/dist/collection/components/input/date/index.js +9 -8
- package/dist/collection/components/input/date/index.js.map +1 -1
- package/dist/collection/components/input/date/range/index.js +8 -7
- package/dist/collection/components/input/date/range/index.js.map +1 -1
- package/dist/collection/components/input/edit/index.js +7 -6
- package/dist/collection/components/input/edit/index.js.map +1 -1
- package/dist/collection/components/input/file/index.js +7 -6
- 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 +7 -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/range/index.js +9 -10
- package/dist/collection/components/input/range/index.js.map +1 -1
- package/dist/collection/components/input/reset/index.js +7 -6
- package/dist/collection/components/input/reset/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/input/submit/index.js +7 -6
- package/dist/collection/components/input/submit/index.js.map +1 -1
- package/dist/collection/components/item/index.js +8 -9
- package/dist/collection/components/item/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/submit/index.js +7 -6
- package/dist/collection/components/submit/index.js.map +1 -1
- package/dist/components/{p-a1741f92.js → p-06a3b37f.js} +8 -8
- package/dist/components/{p-a1741f92.js.map → p-06a3b37f.js.map} +1 -1
- package/dist/components/{p-49c7e47c.js → p-0c55e4ba.js} +5 -5
- package/dist/components/{p-49c7e47c.js.map → p-0c55e4ba.js.map} +1 -1
- package/dist/components/p-0e4d4967.js.map +1 -1
- package/dist/components/{p-f4047d82.js → p-14bf7254.js} +5 -5
- package/dist/components/p-14bf7254.js.map +1 -0
- package/dist/components/{p-312e7089.js → p-157cd042.js} +9 -9
- package/dist/components/{p-312e7089.js.map → p-157cd042.js.map} +1 -1
- package/dist/components/{p-3a2e080f.js → p-15a4e731.js} +4 -4
- package/dist/components/{p-3a2e080f.js.map → p-15a4e731.js.map} +1 -1
- package/dist/components/{p-20ffe2e3.js → p-183a10bd.js} +5 -5
- package/dist/components/{p-20ffe2e3.js.map → p-183a10bd.js.map} +1 -1
- package/dist/components/{p-97deaa1c.js → p-19c97203.js} +4 -4
- package/dist/components/{p-97deaa1c.js.map → p-19c97203.js.map} +1 -1
- package/dist/components/{p-cc78cf95.js → p-1e9b9cc1.js} +2 -2
- package/dist/components/{p-cc78cf95.js.map → p-1e9b9cc1.js.map} +1 -1
- package/dist/components/{p-c3d69e3a.js → p-1eace7fb.js} +9 -9
- package/dist/components/{p-c3d69e3a.js.map → p-1eace7fb.js.map} +1 -1
- package/dist/components/{p-ba7c6ccc.js → p-270092e2.js} +6 -6
- package/dist/components/{p-ba7c6ccc.js.map → p-270092e2.js.map} +1 -1
- package/dist/components/{p-6610bce8.js → p-29d7798a.js} +3 -3
- package/dist/components/{p-6610bce8.js.map → p-29d7798a.js.map} +1 -1
- package/dist/components/{p-6646f2fa.js → p-306f3f83.js} +2 -2
- package/dist/components/p-306f3f83.js.map +1 -0
- package/dist/components/{p-994966bd.js → p-30979694.js} +8 -8
- package/dist/components/{p-994966bd.js.map → p-30979694.js.map} +1 -1
- package/dist/components/{p-966d875d.js → p-3513b175.js} +2 -2
- package/dist/components/{p-966d875d.js.map → p-3513b175.js.map} +1 -1
- package/dist/components/{p-f4bbfa83.js → p-356cefe4.js} +21 -21
- package/dist/components/{p-f4bbfa83.js.map → p-356cefe4.js.map} +1 -1
- package/dist/components/{p-6d3c939c.js → p-510db4b1.js} +9 -9
- package/dist/components/{p-6d3c939c.js.map → p-510db4b1.js.map} +1 -1
- package/dist/components/{p-6f1fea7a.js → p-51ed260d.js} +4 -6
- package/dist/components/p-51ed260d.js.map +1 -0
- package/dist/components/{p-f5dada5b.js → p-535a337b.js} +2 -2
- package/dist/components/{p-f5dada5b.js.map → p-535a337b.js.map} +1 -1
- package/dist/components/{p-d599c0b9.js → p-5718b5d5.js} +5 -7
- package/dist/components/p-5718b5d5.js.map +1 -0
- package/dist/components/{p-5a7320ab.js → p-591b2da1.js} +2 -2
- package/dist/components/{p-5a7320ab.js.map → p-591b2da1.js.map} +1 -1
- package/dist/components/{p-888b6717.js → p-5f571599.js} +4 -4
- package/dist/components/{p-888b6717.js.map → p-5f571599.js.map} +1 -1
- package/dist/components/{p-584cab03.js → p-65782906.js} +4 -4
- package/dist/components/{p-584cab03.js.map → p-65782906.js.map} +1 -1
- package/dist/components/{p-93714920.js → p-65c25222.js} +9 -9
- package/dist/components/{p-93714920.js.map → p-65c25222.js.map} +1 -1
- package/dist/components/{p-faa096fd.js → p-6aa956c2.js} +8 -8
- package/dist/components/{p-faa096fd.js.map → p-6aa956c2.js.map} +1 -1
- package/dist/components/{p-e640c850.js → p-71cc0823.js} +3 -3
- package/dist/components/{p-e640c850.js.map → p-71cc0823.js.map} +1 -1
- package/dist/components/{p-bf8bae76.js → p-7d80c1d7.js} +3 -5
- package/dist/components/p-7d80c1d7.js.map +1 -0
- package/dist/components/{p-db9d38bd.js → p-857adfea.js} +11 -11
- package/dist/components/{p-db9d38bd.js.map → p-857adfea.js.map} +1 -1
- package/dist/components/{p-d92fedfe.js → p-8ac3877a.js} +3 -5
- package/dist/components/p-8ac3877a.js.map +1 -0
- package/dist/components/{p-8225c00c.js → p-8f9dfb8f.js} +7 -9
- package/dist/components/p-8f9dfb8f.js.map +1 -0
- package/dist/components/{p-76e1cb53.js → p-931bb15e.js} +14 -14
- package/dist/components/{p-76e1cb53.js.map → p-931bb15e.js.map} +1 -1
- package/dist/components/{p-9a664001.js → p-938919ed.js} +10 -10
- package/dist/components/{p-9a664001.js.map → p-938919ed.js.map} +1 -1
- package/dist/components/{p-141ab712.js → p-97930c07.js} +4 -4
- package/dist/components/{p-141ab712.js.map → p-97930c07.js.map} +1 -1
- package/dist/components/{p-3ff30329.js → p-9bcc949a.js} +2 -2
- package/dist/components/{p-3ff30329.js.map → p-9bcc949a.js.map} +1 -1
- package/dist/components/{p-cb14e722.js → p-9c1d3c4b.js} +27 -27
- package/dist/components/{p-cb14e722.js.map → p-9c1d3c4b.js.map} +1 -1
- package/dist/components/{p-fe8f3edb.js → p-a860a1e2.js} +3 -3
- package/dist/components/{p-fe8f3edb.js.map → p-a860a1e2.js.map} +1 -1
- package/dist/components/{p-3b3d5c17.js → p-b0707e9a.js} +2 -2
- package/dist/components/{p-3b3d5c17.js.map → p-b0707e9a.js.map} +1 -1
- package/dist/components/{p-56851111.js → p-b0f69547.js} +3 -3
- package/dist/components/{p-56851111.js.map → p-b0f69547.js.map} +1 -1
- package/dist/components/{p-1b5a3b33.js → p-b2e5799f.js} +3 -5
- package/dist/components/p-b2e5799f.js.map +1 -0
- package/dist/components/{p-69c117d3.js → p-b30a77b3.js} +2 -2
- package/dist/components/{p-69c117d3.js.map → p-b30a77b3.js.map} +1 -1
- package/dist/components/{p-3700fc78.js → p-b5eef554.js} +5 -7
- package/dist/components/p-b5eef554.js.map +1 -0
- package/dist/components/{p-db44f7d1.js → p-b6995d8f.js} +2 -2
- package/dist/components/{p-db44f7d1.js.map → p-b6995d8f.js.map} +1 -1
- package/dist/components/{p-18114078.js → p-b69ad283.js} +14 -14
- package/dist/components/{p-18114078.js.map → p-b69ad283.js.map} +1 -1
- package/dist/components/{p-f02caf03.js → p-be8fe7fc.js} +5 -5
- package/dist/components/{p-f02caf03.js.map → p-be8fe7fc.js.map} +1 -1
- package/dist/components/{p-f77161fc.js → p-c583ef6e.js} +9 -9
- package/dist/components/{p-f77161fc.js.map → p-c583ef6e.js.map} +1 -1
- package/dist/components/{p-6d82937a.js → p-d6f09dca.js} +11 -11
- package/dist/components/{p-6d82937a.js.map → p-d6f09dca.js.map} +1 -1
- package/dist/components/{p-bf8054b9.js → p-d8d2ba53.js} +3 -3
- package/dist/components/{p-bf8054b9.js.map → p-d8d2ba53.js.map} +1 -1
- package/dist/components/{p-ff3256af.js → p-e39df9b3.js} +2 -2
- package/dist/components/p-e39df9b3.js.map +1 -0
- package/dist/components/{p-bcc3fdb4.js → p-edd96458.js} +4 -4
- package/dist/components/{p-bcc3fdb4.js.map → p-edd96458.js.map} +1 -1
- package/dist/components/smoothly-app-demo.js +46 -46
- package/dist/components/smoothly-button-confirm.js +1 -1
- package/dist/components/smoothly-button-demo.js +1 -1
- 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-date-range.js +1 -1
- package/dist/components/smoothly-form-demo-date.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-icon-demo.js +1 -1
- package/dist/components/smoothly-input-checkbox-demo.js +17 -17
- 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-edit.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.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-submit.js +1 -1
- package/dist/components/smoothly-input.js +1 -1
- package/dist/components/smoothly-item.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-submit.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_106.entry.js +34 -46
- package/dist/esm/smoothly-app_106.entry.js.map +1 -1
- package/dist/esm/smoothly-picker.entry.js +2 -4
- package/dist/esm/smoothly-picker.entry.js.map +1 -1
- package/dist/smoothly/{p-c483be7c.entry.js → p-1eda4ec9.entry.js} +2 -2
- package/dist/smoothly/p-1eda4ec9.entry.js.map +1 -0
- package/dist/smoothly/{p-c5841439.entry.js → p-e0dc8cc8.entry.js} +2 -2
- package/dist/smoothly/p-e0dc8cc8.entry.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/confirm/index.d.ts +2 -1
- package/dist/types/components/filter/select/index.d.ts +2 -1
- package/dist/types/components/input/Input.d.ts +2 -1
- package/dist/types/components/input/checkbox/index.d.ts +1 -1
- package/dist/types/components/input/clear/index.d.ts +2 -1
- package/dist/types/components/input/color/index.d.ts +1 -1
- package/dist/types/components/input/date/index.d.ts +1 -1
- package/dist/types/components/input/date/range/index.d.ts +1 -1
- package/dist/types/components/input/edit/index.d.ts +2 -1
- package/dist/types/components/input/file/index.d.ts +1 -1
- package/dist/types/components/input/index.d.ts +1 -1
- package/dist/types/components/input/month/index.d.ts +2 -2
- package/dist/types/components/input/radio/index.d.ts +1 -1
- package/dist/types/components/input/range/index.d.ts +2 -2
- package/dist/types/components/input/reset/index.d.ts +2 -1
- package/dist/types/components/input/select/index.d.ts +1 -1
- package/dist/types/components/input/submit/index.d.ts +2 -1
- package/dist/types/components/item/index.d.ts +2 -1
- package/dist/types/components/picker/index.d.ts +1 -1
- package/dist/types/components/submit/index.d.ts +2 -1
- package/dist/types/components.d.ts +38 -38
- package/package.json +1 -1
- package/dist/components/p-1b5a3b33.js.map +0 -1
- package/dist/components/p-3700fc78.js.map +0 -1
- package/dist/components/p-6646f2fa.js.map +0 -1
- package/dist/components/p-6f1fea7a.js.map +0 -1
- package/dist/components/p-8225c00c.js.map +0 -1
- package/dist/components/p-bf8bae76.js.map +0 -1
- package/dist/components/p-d599c0b9.js.map +0 -1
- package/dist/components/p-d92fedfe.js.map +0 -1
- package/dist/components/p-f4047d82.js.map +0 -1
- package/dist/components/p-ff3256af.js.map +0 -1
- package/dist/smoothly/p-c483be7c.entry.js.map +0 -1
- package/dist/smoothly/p-c5841439.entry.js.map +0 -1
|
@@ -1740,7 +1740,7 @@ const SmoothlyButtonConfirm = class {
|
|
|
1740
1740
|
}
|
|
1741
1741
|
}
|
|
1742
1742
|
render() {
|
|
1743
|
-
return (index.h(index.Host, { key: '
|
|
1743
|
+
return (index.h(index.Host, { key: 'cea74754da3975040b24d3913c714722f11f4325', warning: this.clickTimeStamp }, index.h("smoothly-button", { key: '51cc50dc8bc2408fee1307aece40481d1ab13e46', fill: this.fill, expand: this.expand, size: this.size, shape: this.shape, color: "warning", disabled: this.disabled, type: "button", onClick: event => this.clickHandler(event) }, index.h("smoothly-icon", { key: 'c769f8ff1c725ad1f1e0bc5a9ff35eead0e6a975', name: "alert-outline", fill: this.fill, color: "warning", size: this.size === "icon" ? "tiny" : "small" })), index.h("smoothly-button", { key: 'b580b6fad8b1559c37fc47c3052e63c585146a97', fill: this.fill, expand: this.expand, size: this.size, shape: this.shape, color: this.color, disabled: this.disabled, type: "button", onClick: event => this.clickHandler(event) }, index.h("slot", { key: '3a36b2b3c33d2e7093256cf0d7b20dc1927afdfb' }))));
|
|
1744
1744
|
}
|
|
1745
1745
|
};
|
|
1746
1746
|
SmoothlyButtonConfirm.style = SmoothlyButtonConfirmStyle0;
|
|
@@ -7240,7 +7240,7 @@ const SmoothlyFilterSelect = class {
|
|
|
7240
7240
|
async componentDidLoad() {
|
|
7241
7241
|
this.smoothlyFilterUpdate.emit(this.update.bind(this));
|
|
7242
7242
|
}
|
|
7243
|
-
async smoothlyInputLoadHandler(
|
|
7243
|
+
async smoothlyInputLoadHandler(_) {
|
|
7244
7244
|
var _a, _b;
|
|
7245
7245
|
(_b = (await ((_a = this.selectElement) === null || _a === void 0 ? void 0 : _a.getItems()))) === null || _b === void 0 ? void 0 : _b.forEach(item => this.items.set(item.value, {
|
|
7246
7246
|
state: this.property.split(".").reduceRight((r, e) => ({ [e]: r }), item.value),
|
|
@@ -7320,7 +7320,7 @@ const SmoothlyFilterSelect = class {
|
|
|
7320
7320
|
return result && this.property.split(".").reduceRight((r, e) => property(e, r), result);
|
|
7321
7321
|
}
|
|
7322
7322
|
render() {
|
|
7323
|
-
return (index.h("smoothly-input-select", { key: '
|
|
7323
|
+
return (index.h("smoothly-input-select", { key: '7880e87f45d9227a6663854c8eb427ac39f0bce8', 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: 'b1ec133090f874ce79645ba2e82718d78590282c', slot: "label" }, [this.label.slice(0, 1).toUpperCase(), this.label.slice(1, this.label.length)].join(""))), index.h("slot", { key: '87022479beb55154bc3006ec2ac564865f37a9c8', name: "items" })));
|
|
7324
7324
|
}
|
|
7325
7325
|
get element() { return index.getElement(this); }
|
|
7326
7326
|
};
|
|
@@ -8788,9 +8788,7 @@ const SmoothlyInput = class {
|
|
|
8788
8788
|
selection: { start, end: start, direction: "none" },
|
|
8789
8789
|
});
|
|
8790
8790
|
this.smoothlyInputLooks.emit((looks, color) => { var _a; return ((this.looks = (_a = this.looks) !== null && _a !== void 0 ? _a : looks), !this.color && (this.color = color)); });
|
|
8791
|
-
this.smoothlyInputLoad.emit(() => {
|
|
8792
|
-
return;
|
|
8793
|
-
});
|
|
8791
|
+
this.smoothlyInputLoad.emit(() => { });
|
|
8794
8792
|
!this.readonly && this.smoothlyFormDisable.emit(readonly => (this.readonly = readonly));
|
|
8795
8793
|
(_b = (_a = this.listener).changed) === null || _b === void 0 ? void 0 : _b.call(_a, this);
|
|
8796
8794
|
}
|
|
@@ -8959,10 +8957,10 @@ const SmoothlyInput = class {
|
|
|
8959
8957
|
}
|
|
8960
8958
|
render() {
|
|
8961
8959
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
8962
|
-
return (index.h(index.Host, { key: '
|
|
8960
|
+
return (index.h(index.Host, { key: '4a9666ea82f1537960b347ac0a354c1f15bef25f', class: {
|
|
8963
8961
|
"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) != "",
|
|
8964
8962
|
invalid: !!this.invalid,
|
|
8965
|
-
}, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, index.h("slot", { key: '
|
|
8963
|
+
}, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, index.h("slot", { key: 'f9e5b6ecdb04a238fad16621e19bc0164943f3de', name: "start" }), index.h("div", { key: '787a5bea3dceb297e7e21af91012f81d57178259' }, index.h("input", { key: '7d340393de038da1f53d2dbe871a7a057baec26d', 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: '2732a8c579ba479f52e4facda938cdc160b1a922', class: "label float-on-focus", htmlFor: this.name }, index.h("slot", { key: 'd455230f2b73924029eb42c5e866b7a1f7b06bf5' })), index.h("smoothly-icon", { key: 'bbae4fb321b346af4664195c80b29164d71fa7e7', name: "alert-circle", color: "danger", fill: "clear", size: "small" })), index.h("slot", { key: 'd0d9d576d1423879156523b820727af5c114cea7', name: "end" })));
|
|
8966
8964
|
}
|
|
8967
8965
|
static get watchers() { return {
|
|
8968
8966
|
"currency": ["typeChange", "onCurrency"],
|
|
@@ -9002,9 +9000,7 @@ const SmoothlyInputCheckbox = class {
|
|
|
9002
9000
|
this.initialValue = this.checked;
|
|
9003
9001
|
!this.readonly && this.smoothlyFormDisable.emit(readonly => (this.readonly = readonly));
|
|
9004
9002
|
this.smoothlyInputLooks.emit((looks, color) => { var _a; return ((this.looks = (_a = this.looks) !== null && _a !== void 0 ? _a : looks), !this.color && (this.color = color)); });
|
|
9005
|
-
this.smoothlyInputLoad.emit(() => {
|
|
9006
|
-
return;
|
|
9007
|
-
});
|
|
9003
|
+
this.smoothlyInputLoad.emit(() => { });
|
|
9008
9004
|
(_b = (_a = this.listener).changed) === null || _b === void 0 ? void 0 : _b.call(_a, this);
|
|
9009
9005
|
}
|
|
9010
9006
|
async clear() {
|
|
@@ -9034,7 +9030,7 @@ const SmoothlyInputCheckbox = class {
|
|
|
9034
9030
|
!this.disabled && !this.readonly && (this.checked = !this.checked);
|
|
9035
9031
|
}
|
|
9036
9032
|
render() {
|
|
9037
|
-
return (index.h(index.Host, { key: '
|
|
9033
|
+
return (index.h(index.Host, { key: '9c35b8ab0a50f052f2cfe4efbd4e1cc431cf2909', onMouseDown: (e) => (this.mouseDownPosition = { x: e.clientX, y: e.clientY }), onMouseUp: (e) => { var _a; return ((_a = this.mouseDownPosition) === null || _a === void 0 ? void 0 : _a.x) == e.clientX && this.mouseDownPosition.y == e.clientY && this.click(); } }, index.h("input", { key: '465bb9a8a9273fe74be4bc3c570127fb37a6543c', type: "checkbox", checked: this.checked }), this.checked && index.h("smoothly-icon", { key: '106c05c6ef019930c5f4ba4bf2952a06b985fae2', name: "checkmark-outline", size: "tiny" }), index.h("label", { key: 'bd274e379d5e5b5dec453fd1a6d8acead06017ce' }, index.h("slot", { key: '3c0652f3ee008246aa0c3996cb713bb8f785b9f8' }))));
|
|
9038
9034
|
}
|
|
9039
9035
|
static get watchers() { return {
|
|
9040
9036
|
"checked": ["elementCheck"]
|
|
@@ -9083,7 +9079,7 @@ const SmoothlyInputClear = class {
|
|
|
9083
9079
|
}
|
|
9084
9080
|
render() {
|
|
9085
9081
|
var _a;
|
|
9086
|
-
return (index.h(index.Host, { key: '
|
|
9082
|
+
return (index.h(index.Host, { key: 'ca90e3930975a46303e15b162f67eaf4324f9194', title: this.tooltip }, index.h("smoothly-button", { key: '141a7a0191da6a9a350341088adae4f043218eac', disabled: this.disabled, size: this.size, type: "button", shape: this.shape, expand: this.expand, color: this.color, fill: (_a = this.fill) !== null && _a !== void 0 ? _a : (this.type == "input" ? "clear" : undefined) }, index.h("slot", { key: '76a5800a376578008c4976a05b91a335b8b686c4' }), index.h("smoothly-icon", { key: 'eb047949f6b9482e684c934214ae048891467f5b', name: "close", size: "tiny" }))));
|
|
9087
9083
|
}
|
|
9088
9084
|
};
|
|
9089
9085
|
SmoothlyInputClear.style = SmoothlyInputClearStyle0;
|
|
@@ -9233,7 +9229,7 @@ const SmoothlyInputColor = class {
|
|
|
9233
9229
|
}
|
|
9234
9230
|
render() {
|
|
9235
9231
|
var _a, _b, _c, _d, _e, _f;
|
|
9236
|
-
return (index.h(index.Host, { key: '
|
|
9232
|
+
return (index.h(index.Host, { key: 'cd106f6788816d052223590dfa618fac3bcbcca3', style: {
|
|
9237
9233
|
"--hexCode": this.value,
|
|
9238
9234
|
"--rgb-r": `${Math.round((_a = this.rgb.r) !== null && _a !== void 0 ? _a : 0)}`,
|
|
9239
9235
|
"--rgb-g": `${Math.round((_b = this.rgb.g) !== null && _b !== void 0 ? _b : 0)}`,
|
|
@@ -9242,7 +9238,7 @@ const SmoothlyInputColor = class {
|
|
|
9242
9238
|
"--hsl-s": `${Math.round((_e = this.hsl.s) !== null && _e !== void 0 ? _e : 0)}%`,
|
|
9243
9239
|
"--hsl-l": `${Math.round((_f = this.hsl.l) !== null && _f !== void 0 ? _f : 0)}%`,
|
|
9244
9240
|
"--element-height": `${this.element.clientHeight}px`,
|
|
9245
|
-
} }, index.h("smoothly-input", { key: '
|
|
9241
|
+
} }, index.h("smoothly-input", { key: 'c1529418aef66953f047bfc5b5f883ff7d1c4276', 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: 'aa1350efbb1f3f914fa80a94465ce7d304c1bdb3' })), index.h("div", { key: '965de4d32362fbd7d30c9d7c07b585a1f48939af', class: "color-sample" }), index.h("smoothly-icon", { key: '1b4ff63067bd9a87244130f62393e961aed5161f', color: this.color, name: "options-outline", size: "small", onClick: () => !this.readonly && this.openDropdown() }), this.open && !this.readonly && (index.h("div", { key: '24c25793340d6bb4fe01e273537c6f038b895fe3', class: "rgb-sliders" }, index.h("smoothly-toggle-switch", { key: 'a7cce0602fff66466dd6e9d10a75f1a8a453002f', 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() })))))));
|
|
9246
9242
|
}
|
|
9247
9243
|
get element() { return index.getElement(this); }
|
|
9248
9244
|
static get watchers() { return {
|
|
@@ -9339,13 +9335,13 @@ const SmoothlyInputDate = class {
|
|
|
9339
9335
|
}
|
|
9340
9336
|
render() {
|
|
9341
9337
|
var _a;
|
|
9342
|
-
return (index.h(index.Host, { key: '
|
|
9338
|
+
return (index.h(index.Host, { key: 'bcdf0b39e3fa1c4177ac8b9dd91f206d41be6142' }, index.h("smoothly-input", { key: 'ef49a31e310ce40c0ccc7dec062768f24d5c2904', 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 => {
|
|
9343
9339
|
e.stopPropagation();
|
|
9344
9340
|
this.value = e.detail[this.name];
|
|
9345
|
-
} }, index.h("slot", { key: '
|
|
9341
|
+
} }, index.h("slot", { key: '6d049c53ffcf938969ad777c93fff4e75e83ecee' })), index.h("span", { key: '1bda00f4099ad720cb2e5fc5cdefe4f6ca10f008', class: "icons" }, index.h("slot", { key: '46baa97c1e5039b1a6faf8ee44f9c66f965b32a1', name: "end" })), this.open && !this.readonly && (index.h("nav", { key: 'a76b160955dac9021c34f33aab9d4dfd6c7b1cdf' }, index.h("smoothly-calendar", { key: 'df64a98cb56f2971e5d551bc425b26b5fe873408', doubleInput: false, value: (_a = this.value) !== null && _a !== void 0 ? _a : TimeZone.Date.now(), onSmoothlyValueChange: event => {
|
|
9346
9342
|
this.value = event.detail;
|
|
9347
9343
|
event.stopPropagation();
|
|
9348
|
-
}, max: this.max, min: this.min }, index.h("div", { key: '
|
|
9344
|
+
}, max: this.max, min: this.min }, index.h("div", { key: '2f040161d83b38d30dd2ed86d285ea4b04e990f9', slot: "year-label" }, index.h("slot", { key: '3198a401a5c91ff564ab11d871f6ac5d3d3946b0', name: "year-label" })), index.h("div", { key: '437ed6659e5a5daff4e2906fbb77711a1c498f2c', slot: "month-label" }, index.h("slot", { key: '5965ed354a4193a53214818c5b3ac5da8a0e0f75', name: "month-label" })))))));
|
|
9349
9345
|
}
|
|
9350
9346
|
get element() { return index.getElement(this); }
|
|
9351
9347
|
static get watchers() { return {
|
|
@@ -9441,12 +9437,12 @@ const SmoothlyInputDateRange = class {
|
|
|
9441
9437
|
}
|
|
9442
9438
|
render() {
|
|
9443
9439
|
const locale = navigator.language;
|
|
9444
|
-
return (index.h(index.Host, { key: '
|
|
9440
|
+
return (index.h(index.Host, { key: '3ecc390e44c74c2cb539feb50b18a83b10f1931b', tabindex: 0 }, index.h("section", { key: '34b9954727fbfd27e64a2cc59a833c4ec9321444', onClick: () => !this.readonly && (this.open = !this.open) }, index.h("smoothly-input", { key: 'd7136639c3ddfe4b62b9728936b1f2f8f1deb8fe', type: "text", name: "dateRangeInput", readonly: this.readonly, value: this.start && this.end
|
|
9445
9441
|
? `${format(this.start, "date", locale)} — ${format(this.end, "date", locale)}`
|
|
9446
9442
|
: undefined, invalid: this.invalid, placeholder: this.placeholder, showLabel: this.showLabel, onSmoothlyInput: e => {
|
|
9447
9443
|
e.stopPropagation();
|
|
9448
9444
|
this.inputHandler(e.detail);
|
|
9449
|
-
} }, index.h("slot", { key: '
|
|
9445
|
+
} }, index.h("slot", { key: '8cbea44d23e2fe43cca217c6c99e24de59ad941f' }))), index.h("span", { key: 'd4b1e1ed8607e396f11f641c88cb3ae6259c530d', class: "icons" }, index.h("slot", { key: '3359800d6a43b2cf3dbddd6914cfef724524d8a1', name: "end" })), this.open && (index.h("nav", { key: '9ff44ec74a85a82e61aa2ceb73449d1cd682861d' }, index.h("smoothly-calendar", { key: '5cf75f75dea2797fbaae5ce8c5c7bdb75d7dff73', doubleInput: true, onSmoothlyValueChange: e => e.stopPropagation(), onSmoothlyStartChange: e => {
|
|
9450
9446
|
e.stopPropagation();
|
|
9451
9447
|
this.start = e.detail;
|
|
9452
9448
|
}, onSmoothlyEndChange: e => {
|
|
@@ -9554,7 +9550,7 @@ const SmoothlyInputEdit = class {
|
|
|
9554
9550
|
}
|
|
9555
9551
|
render() {
|
|
9556
9552
|
var _a;
|
|
9557
|
-
return (index.h(index.Host, { key: '
|
|
9553
|
+
return (index.h(index.Host, { key: 'bc3ab235c90866ccac7d53f8adc7efb02d2c95c8', title: this.toolTip }, index.h("smoothly-button", { key: '418e4047351adcbb13b1e5cc3bd0f2c802b23efc', disabled: this.disabled, size: this.size, type: "button", shape: this.shape, expand: this.expand, color: this.color, fill: (_a = this.fill) !== null && _a !== void 0 ? _a : (this.type == "input" ? "clear" : undefined) }, index.h("slot", { key: 'e5fb30091ffdabdebbf33ff57b3212aee4335d53' }), index.h("smoothly-icon", { key: '73f0b50d7c61960713a5a4bb2ce02dcb64c8c0fa', class: "default", name: "create-outline", size: "tiny" }))));
|
|
9558
9554
|
}
|
|
9559
9555
|
};
|
|
9560
9556
|
SmoothlyInputEdit.style = SmoothlyInputEditStyle0;
|
|
@@ -9651,7 +9647,7 @@ const SmoothlyInputFile = class {
|
|
|
9651
9647
|
}
|
|
9652
9648
|
render() {
|
|
9653
9649
|
var _a, _b, _c;
|
|
9654
|
-
return (index.h(index.Host, { key: '
|
|
9650
|
+
return (index.h(index.Host, { key: 'eacbb1c35ce50b9643da94f2e2adbef0e6fac809', 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: '296ca52e0671854fcd807495dd98ef1dd158e645' }, index.h("slot", { key: 'c30ce018c96a41c7009063793aa0a94443e7ddf5', name: "label" })), index.h("div", { key: 'b5c9b5e8c0bf830f44869327eac10e9c7c14881a', class: "input" }, index.h("smoothly-button", { key: '2a556c916aa85721a8354eb67d43c2cf740c8de3', color: this.color, fill: "clear", size: "flexible" }, index.h("slot", { key: 'c96f0c193c2df4320f2d1336c0ca2ab4e47f4c74', name: "button" })), index.h("span", { key: 'fb760b8ffcabff3a6c3c0893e90a7f3a2931c82f' }, (_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : this.placeholder), index.h("div", { key: '7bb93277222175459f2bc07d630ea9f102aa1686', class: "mask", onDrop: e => this.dropHandler(e), onDragLeave: e => this.dragLeaveHandler(e) }), index.h("input", { key: 'a174c0d899425d7f8ba62a499ac09952a597853a', 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: '0b04e7df305b3ae51a1ab85c26fc889be42e9b54' })));
|
|
9655
9651
|
}
|
|
9656
9652
|
static get watchers() { return {
|
|
9657
9653
|
"value": ["valueChanged"]
|
|
@@ -9742,7 +9738,7 @@ const SmoothlyInputMonth = class {
|
|
|
9742
9738
|
}
|
|
9743
9739
|
render() {
|
|
9744
9740
|
var _a, _b;
|
|
9745
|
-
return (index.h(index.Host, { key: '
|
|
9741
|
+
return (index.h(index.Host, { key: 'b20466e490056187bf6498db185b35bde61d7ba8' }, index.h("smoothly-icon", { key: '5c9100c86d04a8fd0943847460b4431c77631745', 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: '41343456da28ab41fe7162c152470616f0710568', 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: '7dcd6d729682cae8027cd76d806b483462a56238', slot: "label" }, index.h("slot", { key: '85984ded23510fdd35e49cbdeb08e91c9a4905cc', 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: 'fb0f703dcbd5666933ae29359d3c55d461f5e5d6', 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: '6dadf3f1c06e5eb26562df2b1784d41ee7dac462', slot: "label" }, index.h("slot", { key: '4330c70a61515a193d456183cc9c615b684d0089', 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: '58108a574b1608f9b7481ab36a0f2e2c32fa879f', name: "caret-forward-outline", size: "tiny", color: this.color, fill: "default", class: { disabled: this.readonly }, onClick: () => this.adjustMonth(1) })));
|
|
9746
9742
|
}
|
|
9747
9743
|
get element() { return index.getElement(this); }
|
|
9748
9744
|
static get watchers() { return {
|
|
@@ -9795,9 +9791,7 @@ const SmoothlyInputRadio = class {
|
|
|
9795
9791
|
}
|
|
9796
9792
|
componentDidLoad() {
|
|
9797
9793
|
!this.valueReceivedOnLoad && this.smoothlyInput.emit({ [this.name]: this.value });
|
|
9798
|
-
this.smoothlyInputLoad.emit(() => {
|
|
9799
|
-
return;
|
|
9800
|
-
});
|
|
9794
|
+
this.smoothlyInputLoad.emit(() => { });
|
|
9801
9795
|
this.initialValue = this.active;
|
|
9802
9796
|
}
|
|
9803
9797
|
handleRegister(event) {
|
|
@@ -9862,7 +9856,7 @@ const SmoothlyInputRadio = class {
|
|
|
9862
9856
|
(_b = (_a = this.listener).changed) === null || _b === void 0 ? void 0 : _b.call(_a, this);
|
|
9863
9857
|
}
|
|
9864
9858
|
render() {
|
|
9865
|
-
return (index.h(index.Host, { key: '
|
|
9859
|
+
return (index.h(index.Host, { key: '700d27de65770ca5c5dcbe74e95667bfe7d87a43', class: "floating-label" }, index.h("slot", { key: 'bbc2dfd812a3d10c34fd28352993a4fc8970fbbe', name: "start" }), index.h("div", { key: 'c32779b2ce3c0154080a9bb38644b0a3d220c7a1' }, index.h("slot", { key: 'e2029ce511a4b1f2e956de4cc47ae43f84840876', name: "label" }), index.h("div", { key: 'd27c391fa328802b5445904252af115ae2dff3cf', class: "options" }, index.h("slot", { key: '4b57998c9c98f4e7bc8b74bbee20a5c784fd9cd9' }))), index.h("slot", { key: '65dac675cb279a6e6e3fb07dc93db96a9ac0c51e', name: "end" })));
|
|
9866
9860
|
}
|
|
9867
9861
|
static get watchers() { return {
|
|
9868
9862
|
"value": ["valueChanged"],
|
|
@@ -9927,9 +9921,7 @@ const SmoothlyInputRange = class {
|
|
|
9927
9921
|
componentWillLoad() {
|
|
9928
9922
|
this.smoothlyInputLooks.emit((looks, color) => { var _a; return ((this.looks = (_a = this.looks) !== null && _a !== void 0 ? _a : looks), (this.color = color)); });
|
|
9929
9923
|
this.smoothlyInput.emit({ [this.name]: this.value });
|
|
9930
|
-
this.smoothlyInputLoad.emit(() => {
|
|
9931
|
-
return;
|
|
9932
|
-
});
|
|
9924
|
+
this.smoothlyInputLoad.emit(() => { });
|
|
9933
9925
|
!this.readonly && this.smoothlyFormDisable.emit(readonly => (this.readonly = readonly));
|
|
9934
9926
|
this.value && (this.initialValue = this.value);
|
|
9935
9927
|
this.valueChanged();
|
|
@@ -9985,10 +9977,10 @@ const SmoothlyInputRange = class {
|
|
|
9985
9977
|
}
|
|
9986
9978
|
render() {
|
|
9987
9979
|
var _a, _b, _c;
|
|
9988
|
-
return (index.h(index.Host, { key: '
|
|
9980
|
+
return (index.h(index.Host, { key: 'e5105e59da10fae37613f841efe9c39b3cfb788c', class: {
|
|
9989
9981
|
"output-side-right": this.outputSide === "right",
|
|
9990
9982
|
"show-label": this.outputSide === "left" && !!this.label,
|
|
9991
|
-
} }, index.h("slot", { key: '
|
|
9983
|
+
} }, index.h("slot", { key: 'd8bd171d1f2ee3a3860d1e14a0820f3d3b0be188', name: "start" }), index.h("div", { key: '776f8bdd48ef111a42287b88be46ff7d12a2277b' }, index.h("label", { key: 'eaeb839ce01b0926f170c296f26e89eb2d3f6dc7', htmlFor: this.name }, this.label), index.h("smoothly-input", { key: '9660e400566ce7242425ff19f71df15ec8b99cd7', 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: '4a3e10dcecba0512635314608fb13c1029f2a3fd', label: (this.type == "percent" ? this.min * 100 : this.min).toString() }), index.h("input", { key: '4e4604f23565167632410dcdcb2d050a24052a5b', 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: 'f725842683d81a65e483a1ccb1705f09d86f8774', label: (this.type == "percent" ? this.max * 100 : this.max).toString() })), index.h("slot", { key: '5ffb13f637ac26d87e15376acb7eb296d4698d24', name: "end" })));
|
|
9992
9984
|
}
|
|
9993
9985
|
get element() { return index.getElement(this); }
|
|
9994
9986
|
static get watchers() { return {
|
|
@@ -10048,7 +10040,7 @@ const SmoothlyInputReset = class {
|
|
|
10048
10040
|
}
|
|
10049
10041
|
render() {
|
|
10050
10042
|
var _a;
|
|
10051
|
-
return (index.h(index.Host, { key: '
|
|
10043
|
+
return (index.h(index.Host, { key: '20dfc88d1661fe2ef726928debf8615980eb62dc', title: this.tooltip }, index.h("smoothly-button", { key: '4d3aec7552ba7ffac0cd8bd8f97267ec66747e75', disabled: this.disabled, size: this.size, type: "button", shape: this.shape, expand: this.expand, color: this.color, fill: (_a = this.fill) !== null && _a !== void 0 ? _a : (this.type == "input" ? "clear" : undefined), onClick: event => this.clickHandler(event) }, index.h("slot", { key: '87a3ca6b3bef1daaaeff417dcc87c81aaabab8cf' }), index.h("smoothly-icon", { key: '214ba8a0a98f79915d090f95ffd7d18b3ec78fec', flip: "x", name: "refresh-outline", size: "tiny" }))));
|
|
10052
10044
|
}
|
|
10053
10045
|
};
|
|
10054
10046
|
SmoothlyInputReset.style = SmoothlyInputResetStyle0;
|
|
@@ -10109,9 +10101,7 @@ const SmoothlyInputSelect = class {
|
|
|
10109
10101
|
componentWillLoad() {
|
|
10110
10102
|
var _a, _b;
|
|
10111
10103
|
this.smoothlyInputLooks.emit((looks, color) => { var _a; return ((this.looks = (_a = this.looks) !== null && _a !== void 0 ? _a : looks), !this.color && (this.color = color)); });
|
|
10112
|
-
this.smoothlyInputLoad.emit(() => {
|
|
10113
|
-
return;
|
|
10114
|
-
});
|
|
10104
|
+
this.smoothlyInputLoad.emit(() => { });
|
|
10115
10105
|
!this.readonly && this.smoothlyFormDisable.emit(readonly => (this.readonly = readonly));
|
|
10116
10106
|
(_b = (_a = this.listener).changed) === null || _b === void 0 ? void 0 : _b.call(_a, this);
|
|
10117
10107
|
}
|
|
@@ -10330,16 +10320,16 @@ const SmoothlyInputSelect = class {
|
|
|
10330
10320
|
this.addedItems = this.addedItems.concat(index.h("smoothly-item", { value: this.filter, selected: true }, this.filter));
|
|
10331
10321
|
}
|
|
10332
10322
|
render() {
|
|
10333
|
-
return (index.h(index.Host, { key: '
|
|
10323
|
+
return (index.h(index.Host, { key: '51d21f6ed824314e90b072d6c5de580724e9413f', tabIndex: 0, class: { "has-value": this.selected.length !== 0, open: this.open, invalid: !!this.invalid }, onClick: (event) => this.handleShowOptions(event) }, index.h("div", { key: 'ea14e37fcced4e3111f7a303c272e212320b9749', class: "select-display", ref: element => (this.displaySelectedElement = element) }, this.placeholder), index.h("div", { key: '0bb8b3298c1bba50938e6e2338f5c8a8dfa15113', class: "icons", ref: element => (this.iconsDiv = element) }, index.h("slot", { key: 'c4cb82714023a2d06ae7a342546cd090a92550f5', name: "end" }), this.looks == "border" && !this.readonly && (index.h("smoothly-icon", { key: '77ee6da1bfe632f4f5c56f3ab7df6e69189ce546', ref: element => (this.toggle = element), size: "tiny", name: this.open ? "caret-down-outline" : "caret-forward-outline" })), index.h("smoothly-icon", { key: 'f74c4749f17302653a57dbca229234308bdc1c42', class: "invalid", name: "alert-circle", color: "danger", fill: "clear", size: "small" })), index.h("slot", { key: 'f396ef7eabdf3270ad12e4df3cc955fbf8cf4128', name: "label" }), index.h("div", { key: 'fe04f07674fe6de58eb36af5bd57949a7719d819', class: { hidden: !this.open, options: true }, ref: (el) => {
|
|
10334
10324
|
this.optionsDiv = el;
|
|
10335
|
-
} }, this.filter.length > 0 && (index.h("smoothly-item", { key: '
|
|
10325
|
+
} }, this.filter.length > 0 && (index.h("smoothly-item", { key: '08ec24f353082ac659e74d92614d0fcf4ebcbc68', selectable: false }, index.h("smoothly-icon", { key: '4d8c38e7087e9325cf42e210d49b778498ff8afa', name: "search-outline", size: "small" }), this.filter, index.h("smoothly-icon", { key: 'f706b965d7e59fe3b42a26d520ab996fec9806f8', name: "backspace-outline", size: "small", onClick: e => {
|
|
10336
10326
|
e.stopPropagation();
|
|
10337
10327
|
this.filter = "";
|
|
10338
10328
|
this.element.focus();
|
|
10339
|
-
} }), this.mutable && (index.h("smoothly-icon", { key: '
|
|
10329
|
+
} }), this.mutable && (index.h("smoothly-icon", { key: 'a1a045151fd58440164ce0202c3437850d525e74', name: "add", size: "small", onClick: e => {
|
|
10340
10330
|
e.stopPropagation();
|
|
10341
10331
|
this.addItem();
|
|
10342
|
-
} })))), index.h("slot", { key: '
|
|
10332
|
+
} })))), index.h("slot", { key: '6ffbfcc4fcffbc41bddc6ed0c4886b40e2779f76' }), this.addedItems)));
|
|
10343
10333
|
}
|
|
10344
10334
|
get element() { return index.getElement(this); }
|
|
10345
10335
|
static get watchers() { return {
|
|
@@ -10400,7 +10390,7 @@ const SmoothlyInputSubmit = class {
|
|
|
10400
10390
|
}
|
|
10401
10391
|
render() {
|
|
10402
10392
|
var _a, _b;
|
|
10403
|
-
return (index.h(index.Host, { key: '
|
|
10393
|
+
return (index.h(index.Host, { key: '98874117c0cc38383e457e20da9635f280c0a79b', title: this.toolTip }, this.delete == true ? (index.h("smoothly-button-confirm", { size: this.size, shape: this.shape, expand: this.expand, color: (_a = this.color) !== null && _a !== void 0 ? _a : "danger", fill: this.fill, onSmoothlyConfirm: () => this.clickHandler() }, index.h("slot", null), index.h("smoothly-icon", { name: "trash-outline", fill: "solid", size: "tiny" }))) : (index.h("smoothly-button", { disabled: this.disabled, size: this.size, type: "button", shape: this.shape, expand: this.expand, color: (_b = this.color) !== null && _b !== void 0 ? _b : "success", fill: this.fill, onClick: () => this.clickHandler() }, index.h("slot", null), this.icon && index.h("smoothly-icon", { name: this.icon, fill: "solid", size: "tiny" })))));
|
|
10404
10394
|
}
|
|
10405
10395
|
};
|
|
10406
10396
|
SmoothlyInputSubmit.style = SmoothlyInputSubmitStyle0;
|
|
@@ -10427,9 +10417,7 @@ const SmoothlyItem = class {
|
|
|
10427
10417
|
this.smoothlyItemSelect.emit(this.element);
|
|
10428
10418
|
}
|
|
10429
10419
|
componentWillLoad() {
|
|
10430
|
-
this.smoothlyInputLoad.emit(() => {
|
|
10431
|
-
return;
|
|
10432
|
-
});
|
|
10420
|
+
this.smoothlyInputLoad.emit(() => { });
|
|
10433
10421
|
}
|
|
10434
10422
|
componentDidLoad() {
|
|
10435
10423
|
if (this.selected && this.selectable)
|
|
@@ -10444,7 +10432,7 @@ const SmoothlyItem = class {
|
|
|
10444
10432
|
: false;
|
|
10445
10433
|
}
|
|
10446
10434
|
render() {
|
|
10447
|
-
return (index.h(index.Host, { key: '
|
|
10435
|
+
return (index.h(index.Host, { key: 'cab36e24e2475963ac671f1593088d5781719553', tabIndex: -1 }, index.h("slot", { key: '9652ec579996fd0d75b183545e0b81a45ad192db' })));
|
|
10448
10436
|
}
|
|
10449
10437
|
get element() { return index.getElement(this); }
|
|
10450
10438
|
static get watchers() { return {
|
|
@@ -12015,7 +12003,7 @@ const SmoothlySubmit = class {
|
|
|
12015
12003
|
(_a = this.parent) === null || _a === void 0 ? void 0 : _a.submit();
|
|
12016
12004
|
}
|
|
12017
12005
|
render() {
|
|
12018
|
-
return (index.h(Button, { key: '
|
|
12006
|
+
return (index.h(Button, { key: 'c7100710fc2cf0bacb5c9bcc39e59a3cf9208998', disabled: this.disabled, type: this.type }, index.h("slot", { key: '3303754f925b636150313fa1fed8f2c4ec251c44' })));
|
|
12019
12007
|
}
|
|
12020
12008
|
};
|
|
12021
12009
|
SmoothlySubmit.style = SmoothlySubmitStyle0;
|