smoothly 1.2.1-alpha.19 → 1.2.1-alpha.20
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 +4 -3
- package/dist/cjs/smoothly-app_106.cjs.entry.js.map +1 -1
- package/dist/collection/components/input/index.js +4 -3
- package/dist/collection/components/input/index.js.map +1 -1
- package/dist/components/{p-c4644edc.js → p-04a71815.js} +2 -2
- package/dist/components/{p-c4644edc.js.map → p-04a71815.js.map} +1 -1
- package/dist/components/{p-b3e54eb0.js → p-0608a32b.js} +6 -6
- package/dist/components/{p-b3e54eb0.js.map → p-0608a32b.js.map} +1 -1
- package/dist/components/{p-b2b22306.js → p-184d9baa.js} +2 -2
- package/dist/components/{p-b2b22306.js.map → p-184d9baa.js.map} +1 -1
- package/dist/components/{p-ac996ead.js → p-24f14b31.js} +2 -2
- package/dist/components/{p-ac996ead.js.map → p-24f14b31.js.map} +1 -1
- package/dist/components/{p-d19b3503.js → p-2a828c4b.js} +2 -2
- package/dist/components/{p-d19b3503.js.map → p-2a828c4b.js.map} +1 -1
- package/dist/components/{p-e8216e38.js → p-3089f404.js} +3 -3
- package/dist/components/{p-e8216e38.js.map → p-3089f404.js.map} +1 -1
- package/dist/components/{p-6cdfda1e.js → p-317d9357.js} +2 -2
- package/dist/components/{p-6cdfda1e.js.map → p-317d9357.js.map} +1 -1
- package/dist/components/{p-20435e42.js → p-3fd0d9ce.js} +2 -2
- package/dist/components/{p-20435e42.js.map → p-3fd0d9ce.js.map} +1 -1
- package/dist/components/{p-ff43eec2.js → p-405ebb07.js} +16 -16
- package/dist/components/{p-ff43eec2.js.map → p-405ebb07.js.map} +1 -1
- package/dist/components/{p-04c6f4c5.js → p-4ab9c3c8.js} +3 -3
- package/dist/components/{p-04c6f4c5.js.map → p-4ab9c3c8.js.map} +1 -1
- package/dist/components/{p-1847326a.js → p-4ac558d7.js} +4 -4
- package/dist/components/{p-1847326a.js.map → p-4ac558d7.js.map} +1 -1
- package/dist/components/{p-0d428888.js → p-4d3676e0.js} +2 -2
- package/dist/components/{p-0d428888.js.map → p-4d3676e0.js.map} +1 -1
- package/dist/components/{p-51c231f6.js → p-52ebcc8e.js} +2 -2
- package/dist/components/{p-51c231f6.js.map → p-52ebcc8e.js.map} +1 -1
- package/dist/components/{p-67221d28.js → p-61541fc1.js} +7 -7
- package/dist/components/{p-67221d28.js.map → p-61541fc1.js.map} +1 -1
- package/dist/components/{p-7f7ea2e8.js → p-709e2536.js} +3 -3
- package/dist/components/{p-7f7ea2e8.js.map → p-709e2536.js.map} +1 -1
- package/dist/components/{p-8866a061.js → p-73e9879a.js} +2 -2
- package/dist/components/{p-8866a061.js.map → p-73e9879a.js.map} +1 -1
- package/dist/components/{p-4768de31.js → p-7616ad6b.js} +6 -6
- package/dist/components/{p-4768de31.js.map → p-7616ad6b.js.map} +1 -1
- package/dist/components/{p-893f7863.js → p-7654073e.js} +2 -2
- package/dist/components/{p-893f7863.js.map → p-7654073e.js.map} +1 -1
- package/dist/components/{p-100d067e.js → p-7c10f8c8.js} +5 -4
- package/dist/components/p-7c10f8c8.js.map +1 -0
- package/dist/components/{p-40242809.js → p-8da7e7cf.js} +4 -4
- package/dist/components/{p-40242809.js.map → p-8da7e7cf.js.map} +1 -1
- package/dist/components/{p-2b3e3dd5.js → p-a7d9cabf.js} +5 -5
- package/dist/components/{p-2b3e3dd5.js.map → p-a7d9cabf.js.map} +1 -1
- package/dist/components/{p-8711cea9.js → p-c1619101.js} +6 -6
- package/dist/components/{p-8711cea9.js.map → p-c1619101.js.map} +1 -1
- package/dist/components/{p-36cf532a.js → p-c5849868.js} +2 -2
- package/dist/components/{p-36cf532a.js.map → p-c5849868.js.map} +1 -1
- package/dist/components/{p-762fa4c0.js → p-c781cbd7.js} +3 -3
- package/dist/components/{p-762fa4c0.js.map → p-c781cbd7.js.map} +1 -1
- package/dist/components/{p-5f7dd700.js → p-cecd67cb.js} +3 -3
- package/dist/components/{p-5f7dd700.js.map → p-cecd67cb.js.map} +1 -1
- package/dist/components/{p-dd060f84.js → p-d13c63d5.js} +3 -3
- package/dist/components/{p-dd060f84.js.map → p-d13c63d5.js.map} +1 -1
- package/dist/components/{p-3765cc07.js → p-ea189b69.js} +5 -5
- package/dist/components/{p-3765cc07.js.map → p-ea189b69.js.map} +1 -1
- package/dist/components/{p-fdbc15d4.js → p-ea7dba25.js} +4 -4
- package/dist/components/{p-fdbc15d4.js.map → p-ea7dba25.js.map} +1 -1
- package/dist/components/{p-b84979c7.js → p-ed0a94cc.js} +10 -10
- package/dist/components/{p-b84979c7.js.map → p-ed0a94cc.js.map} +1 -1
- package/dist/components/{p-413e4258.js → p-f8c96f10.js} +3 -3
- package/dist/components/{p-413e4258.js.map → p-f8c96f10.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 +4 -3
- package/dist/esm/smoothly-app_106.entry.js.map +1 -1
- package/dist/smoothly/p-23b77134.entry.js +2 -0
- package/dist/smoothly/p-23b77134.entry.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/package.json +1 -1
- package/dist/components/p-100d067e.js.map +0 -1
- package/dist/smoothly/p-7712f01b.entry.js +0 -2
- package/dist/smoothly/p-7712f01b.entry.js.map +0 -1
|
@@ -8995,6 +8995,7 @@ const SmoothlyInput = class {
|
|
|
8995
8995
|
}
|
|
8996
8996
|
}
|
|
8997
8997
|
typeChange() {
|
|
8998
|
+
var _a, _b;
|
|
8998
8999
|
switch (this.type) {
|
|
8999
9000
|
case "price":
|
|
9000
9001
|
this.stateHandler = InputStateHandler.create("price", {
|
|
@@ -9006,7 +9007,7 @@ const SmoothlyInput = class {
|
|
|
9006
9007
|
this.stateHandler = InputStateHandler.create(this.type, getLocale());
|
|
9007
9008
|
break;
|
|
9008
9009
|
}
|
|
9009
|
-
this.state = this.stateHandler.initialState(this.value);
|
|
9010
|
+
this.state = this.stateHandler.initialState((_a = this.value) !== null && _a !== void 0 ? _a : (_b = this.state) === null || _b === void 0 ? void 0 : _b.value);
|
|
9010
9011
|
}
|
|
9011
9012
|
stateChange() {
|
|
9012
9013
|
this.smoothlyInput.emit({ [this.name]: this.stateHandler.getValue(this.state) });
|
|
@@ -9044,7 +9045,7 @@ const SmoothlyInput = class {
|
|
|
9044
9045
|
}
|
|
9045
9046
|
render() {
|
|
9046
9047
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
9047
|
-
return (index.h(index.Host, { key: '
|
|
9048
|
+
return (index.h(index.Host, { key: 'a13172d6b16931a91710b8f74d093570c6008e63', 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: 'beefb2811e733db33b5d7fb0689727968fc5d9de', name: "start" }), index.h("div", { key: 'ffa17f6f5882d35c6202ca011312af405a2b7e2b' }, index.h("div", { key: 'f1e8f0964775b7d5f0f842ca587f33deb0b653f6', class: "ghost" }, index.h("div", { key: '38cf89f151f099c972ecf14846fea9fa3e1068f3', class: "value" }, (_c = this.state) === null || _c === void 0 ? void 0 : _c.value), index.h("div", { key: '36dd49266aceef29b4ddd063c91ad96a99c96111', class: "remainder" }, (_d = this.state) === null || _d === void 0 ? void 0 : _d.remainder)), index.h("input", { key: '704b50082c3cd68972dc0aee5ec427086ef5b919', 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
9049
|
this.state = this.stateHandler.onKeyDown(event, this.state);
|
|
9049
9050
|
if (event.key == "Enter")
|
|
9050
9051
|
this.smoothlyBlur.emit();
|
|
@@ -9057,7 +9058,7 @@ const SmoothlyInput = class {
|
|
|
9057
9058
|
if (Deep.notEqual(lastValue, this.stateHandler.getValue(this.state)))
|
|
9058
9059
|
this.smoothlyChange.emit({ [this.name]: this.stateHandler.getValue(this.state) });
|
|
9059
9060
|
}
|
|
9060
|
-
} }), index.h("label", { key: '
|
|
9061
|
+
} }), index.h("label", { key: '8a910c7d4c90676467066ab8023f52df72377fd7', class: "label float-on-focus", htmlFor: this.name }, index.h("slot", { key: '38dfbebdb875107ca63df2e6c74c3e17e6d79649' })), index.h("smoothly-icon", { key: 'b42d359c901704dfdceaa88ec0d6a02fcd9c11ef', name: "alert-circle", color: "danger", fill: "clear", size: "small", toolTip: this.errorMessage })), index.h("slot", { key: '3727d0419be165d53b8baac295439f91049f8340', name: "end" })));
|
|
9061
9062
|
}
|
|
9062
9063
|
get element() { return index.getElement(this); }
|
|
9063
9064
|
static get watchers() { return {
|