smoothly 1.2.1-alpha.12 → 1.2.1-alpha.13
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 +11 -9
- package/dist/cjs/smoothly-app_106.cjs.entry.js.map +1 -1
- package/dist/collection/components/input/index.js +11 -9
- package/dist/collection/components/input/index.js.map +1 -1
- package/dist/components/{p-6dcf3459.js → p-005bb52a.js} +2 -2
- package/dist/components/{p-6dcf3459.js.map → p-005bb52a.js.map} +1 -1
- package/dist/components/{p-db41903a.js → p-100d067e.js} +12 -10
- package/dist/components/p-100d067e.js.map +1 -0
- package/dist/components/{p-7b9bdf2a.js → p-15e66616.js} +2 -2
- package/dist/components/{p-7b9bdf2a.js.map → p-15e66616.js.map} +1 -1
- package/dist/components/{p-fee0f359.js → p-163bd817.js} +2 -2
- package/dist/components/{p-fee0f359.js.map → p-163bd817.js.map} +1 -1
- package/dist/components/{p-99ead2c5.js → p-1729ec54.js} +3 -3
- package/dist/components/{p-99ead2c5.js.map → p-1729ec54.js.map} +1 -1
- package/dist/components/{p-1e15b793.js → p-1847326a.js} +4 -4
- package/dist/components/{p-1e15b793.js.map → p-1847326a.js.map} +1 -1
- package/dist/components/{p-00a82884.js → p-20853a04.js} +6 -6
- package/dist/components/{p-00a82884.js.map → p-20853a04.js.map} +1 -1
- package/dist/components/{p-5879c0a2.js → p-275491c7.js} +3 -3
- package/dist/components/{p-5879c0a2.js.map → p-275491c7.js.map} +1 -1
- package/dist/components/{p-23654b8b.js → p-2b3e3dd5.js} +5 -5
- package/dist/components/{p-23654b8b.js.map → p-2b3e3dd5.js.map} +1 -1
- package/dist/components/{p-8acdd8d0.js → p-31af2db0.js} +7 -7
- package/dist/components/{p-8acdd8d0.js.map → p-31af2db0.js.map} +1 -1
- package/dist/components/{p-bd9c50fe.js → p-3765cc07.js} +5 -5
- package/dist/components/{p-bd9c50fe.js.map → p-3765cc07.js.map} +1 -1
- package/dist/components/{p-1e4b5d8f.js → p-413e4258.js} +3 -3
- package/dist/components/{p-1e4b5d8f.js.map → p-413e4258.js.map} +1 -1
- package/dist/components/{p-4f272618.js → p-476fd3b1.js} +4 -4
- package/dist/components/{p-4f272618.js.map → p-476fd3b1.js.map} +1 -1
- package/dist/components/{p-60cb135c.js → p-4bef3e5b.js} +3 -3
- package/dist/components/{p-60cb135c.js.map → p-4bef3e5b.js.map} +1 -1
- package/dist/components/{p-76fb0a4c.js → p-51c231f6.js} +2 -2
- package/dist/components/{p-76fb0a4c.js.map → p-51c231f6.js.map} +1 -1
- package/dist/components/{p-90302295.js → p-5b9429be.js} +2 -2
- package/dist/components/{p-90302295.js.map → p-5b9429be.js.map} +1 -1
- package/dist/components/{p-1797be0c.js → p-5f7dd700.js} +3 -3
- package/dist/components/{p-1797be0c.js.map → p-5f7dd700.js.map} +1 -1
- package/dist/components/{p-aaf83c91.js → p-6cdfda1e.js} +2 -2
- package/dist/components/{p-aaf83c91.js.map → p-6cdfda1e.js.map} +1 -1
- package/dist/components/{p-da906314.js → p-893f7863.js} +2 -2
- package/dist/components/{p-da906314.js.map → p-893f7863.js.map} +1 -1
- package/dist/components/{p-609eabe7.js → p-9651f988.js} +4 -4
- package/dist/components/{p-609eabe7.js.map → p-9651f988.js.map} +1 -1
- package/dist/components/{p-a50318cd.js → p-9e69db0b.js} +2 -2
- package/dist/components/{p-a50318cd.js.map → p-9e69db0b.js.map} +1 -1
- package/dist/components/{p-6daf3f93.js → p-a4df40d3.js} +6 -6
- package/dist/components/{p-6daf3f93.js.map → p-a4df40d3.js.map} +1 -1
- package/dist/components/{p-fa44b695.js → p-bc953568.js} +2 -2
- package/dist/components/{p-fa44b695.js.map → p-bc953568.js.map} +1 -1
- package/dist/components/{p-e7a4ac66.js → p-c8f8c147.js} +16 -16
- package/dist/components/{p-e7a4ac66.js.map → p-c8f8c147.js.map} +1 -1
- package/dist/components/{p-bfdbee5d.js → p-cb33287e.js} +3 -3
- package/dist/components/{p-bfdbee5d.js.map → p-cb33287e.js.map} +1 -1
- package/dist/components/{p-4bccb4ee.js → p-d19b3503.js} +2 -2
- package/dist/components/{p-4bccb4ee.js.map → p-d19b3503.js.map} +1 -1
- package/dist/components/{p-4fb88136.js → p-f029915f.js} +6 -6
- package/dist/components/{p-4fb88136.js.map → p-f029915f.js.map} +1 -1
- package/dist/components/{p-a44fd0aa.js → p-f551738d.js} +2 -2
- package/dist/components/{p-a44fd0aa.js.map → p-f551738d.js.map} +1 -1
- package/dist/components/{p-4ec525c8.js → p-f617a56e.js} +3 -3
- package/dist/components/{p-4ec525c8.js.map → p-f617a56e.js.map} +1 -1
- package/dist/components/{p-d92df881.js → p-fe81e409.js} +10 -10
- package/dist/components/{p-d92df881.js.map → p-fe81e409.js.map} +1 -1
- package/dist/components/smoothly-app-demo.js +30 -30
- package/dist/components/smoothly-filter-field.js +1 -1
- package/dist/components/smoothly-filter-input.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-pet.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 +5 -5
- 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-price-demo.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.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-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/esm/smoothly-app_106.entry.js +11 -9
- package/dist/esm/smoothly-app_106.entry.js.map +1 -1
- package/dist/smoothly/{p-2229dd94.entry.js → p-dbd30071.entry.js} +2 -2
- package/dist/smoothly/{p-2229dd94.entry.js.map → p-dbd30071.entry.js.map} +1 -1
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/package.json +1 -1
- package/dist/components/p-db41903a.js.map +0 -1
|
@@ -9044,18 +9044,20 @@ const SmoothlyInput = class {
|
|
|
9044
9044
|
}
|
|
9045
9045
|
render() {
|
|
9046
9046
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
9047
|
-
return (index.h(index.Host, { key: 'c0c6e0d705065464c9a8641fb90a7eb3db1fd385', class: { "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) != "" }, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, index.h("slot", { key: '38825442b4f5c7853c4c41295d2b6b467100b822', name: "start" }), index.h("div", { key: '68fce946c08fc319c6d86d792f47991c25d40877' }, index.h("div", { key: '34309b2e7afdc17cdc33030b9fcff946e0363243', class: "ghost" }, index.h("div", { key: '44a442387af514de45508fac3f857990e8ec5be6', class: "value" }, (_c = this.state) === null || _c === void 0 ? void 0 : _c.value), index.h("div", { key: '45564be02e80bd749ed8506e5534c3cda41814ff', class: "remainder" }, (_d = this.state) === null || _d === void 0 ? void 0 : _d.remainder)), index.h("input", { key: '
|
|
9047
|
+
return (index.h(index.Host, { key: 'c0c6e0d705065464c9a8641fb90a7eb3db1fd385', class: { "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) != "" }, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, index.h("slot", { key: '38825442b4f5c7853c4c41295d2b6b467100b822', name: "start" }), index.h("div", { key: '68fce946c08fc319c6d86d792f47991c25d40877' }, index.h("div", { key: '34309b2e7afdc17cdc33030b9fcff946e0363243', class: "ghost" }, index.h("div", { key: '44a442387af514de45508fac3f857990e8ec5be6', class: "value" }, (_c = this.state) === null || _c === void 0 ? void 0 : _c.value), index.h("div", { key: '45564be02e80bd749ed8506e5534c3cda41814ff', class: "remainder" }, (_d = this.state) === null || _d === void 0 ? void 0 : _d.remainder)), index.h("input", { key: '39a4f425e7b1b2be463a4e3b8ca9b1e298cb595a', ref: (el) => (this.inputElement = el), color: this.color, name: this.name, type: (_e = this.state) === null || _e === void 0 ? void 0 : _e.type, inputmode: (_f = this.state) === null || _f === void 0 ? void 0 : _f.inputmode, placeholder: this.placeholder, required: this.required, autocomplete: (_g = this.autocomplete) !== null && _g !== void 0 ? _g : (_h = this.state) === null || _h === void 0 ? void 0 : _h.autocomplete, disabled: this.disabled, readOnly: this.readonly, pattern: ((_j = this.state) === null || _j === void 0 ? void 0 : _j.pattern) && ((_k = this.state) === null || _k === void 0 ? void 0 : _k.pattern.source), onKeyDown: event => {
|
|
9048
9048
|
this.state = this.stateHandler.onKeyDown(event, this.state);
|
|
9049
9049
|
if (event.key == "Enter")
|
|
9050
9050
|
this.smoothlyBlur.emit();
|
|
9051
|
-
}, onFocus: event => (this.state = this.stateHandler.onFocus(event, this.state)), onBlur: event => {
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9051
|
+
}, onFocus: event => !this.readonly && (this.state = this.stateHandler.onFocus(event, this.state)), onBlur: event => {
|
|
9052
|
+
if (!this.readonly) {
|
|
9053
|
+
const lastValue = this.stateHandler.getValue(this.state);
|
|
9054
|
+
this.state = this.stateHandler.onBlur(event, this.state);
|
|
9055
|
+
this.smoothlyBlur.emit();
|
|
9056
|
+
this.smoothlyInput.emit({ [this.name]: this.stateHandler.getValue(this.state) });
|
|
9057
|
+
if (Deep.notEqual(lastValue, this.stateHandler.getValue(this.state)))
|
|
9058
|
+
this.smoothlyChange.emit({ [this.name]: this.stateHandler.getValue(this.state) });
|
|
9059
|
+
}
|
|
9060
|
+
} }), index.h("label", { key: '0866c91d37625c3f302079e1197568837df73eba', class: "label float-on-focus", htmlFor: this.name }, index.h("slot", { key: 'a35198bb124977075f6f215b58b0529ceab6eb8f' })), index.h("smoothly-icon", { key: 'eaed09aac882d68b2a0edacb875235c77652fe17', name: "alert-circle", color: "danger", fill: "clear", size: "small", toolTip: this.errorMessage })), index.h("slot", { key: '5ddb19945b1cf2130565eb431da972c79e87e00f', name: "end" })));
|
|
9059
9061
|
}
|
|
9060
9062
|
get element() { return index.getElement(this); }
|
|
9061
9063
|
static get watchers() { return {
|