smoothly 1.2.1-alpha.33 → 1.2.1-alpha.34
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_107.cjs.entry.js +13 -10
- package/dist/cjs/smoothly-app_107.cjs.entry.js.map +1 -1
- package/dist/collection/components/input/clear/index.js +2 -2
- package/dist/collection/components/input/clear/index.js.map +1 -1
- package/dist/collection/components/input/index.js +11 -8
- package/dist/collection/components/input/index.js.map +1 -1
- package/dist/components/{p-8db1de66.js → p-06e94eb0.js} +3 -3
- package/dist/components/{p-8db1de66.js.map → p-06e94eb0.js.map} +1 -1
- package/dist/components/{p-3f3ab0df.js → p-0c9d0809.js} +2 -2
- package/dist/components/{p-3f3ab0df.js.map → p-0c9d0809.js.map} +1 -1
- package/dist/components/{p-abf15e78.js → p-0cd742cf.js} +2 -2
- package/dist/components/{p-abf15e78.js.map → p-0cd742cf.js.map} +1 -1
- package/dist/components/{p-eee39702.js → p-0ddc42e8.js} +3 -3
- package/dist/components/{p-eee39702.js.map → p-0ddc42e8.js.map} +1 -1
- package/dist/components/{p-e50d0b93.js → p-125b5bb2.js} +6 -6
- package/dist/components/{p-e50d0b93.js.map → p-125b5bb2.js.map} +1 -1
- package/dist/components/{p-4e9c05bb.js → p-1513aabc.js} +2 -2
- package/dist/components/{p-4e9c05bb.js.map → p-1513aabc.js.map} +1 -1
- package/dist/components/{p-4e68b95c.js → p-2e8d8347.js} +3 -3
- package/dist/components/{p-4e68b95c.js.map → p-2e8d8347.js.map} +1 -1
- package/dist/components/{p-f0ffd84c.js → p-482b7713.js} +2 -2
- package/dist/components/{p-f0ffd84c.js.map → p-482b7713.js.map} +1 -1
- package/dist/components/{p-bc2368be.js → p-516e62ab.js} +2 -2
- package/dist/components/{p-bc2368be.js.map → p-516e62ab.js.map} +1 -1
- package/dist/components/{p-4886e764.js → p-51d51732.js} +12 -9
- package/dist/components/p-51d51732.js.map +1 -0
- package/dist/components/{p-bca524e6.js → p-5268264b.js} +2 -2
- package/dist/components/{p-bca524e6.js.map → p-5268264b.js.map} +1 -1
- package/dist/components/{p-6ac5a89c.js → p-531d9885.js} +2 -2
- package/dist/components/{p-6ac5a89c.js.map → p-531d9885.js.map} +1 -1
- package/dist/components/{p-e6841bf4.js → p-53ef7cd2.js} +2 -2
- package/dist/components/{p-e6841bf4.js.map → p-53ef7cd2.js.map} +1 -1
- package/dist/components/{p-2fe77106.js → p-60c0addf.js} +4 -4
- package/dist/components/{p-2fe77106.js.map → p-60c0addf.js.map} +1 -1
- package/dist/components/{p-55d4f2c2.js → p-61a23ca0.js} +3 -3
- package/dist/components/{p-55d4f2c2.js.map → p-61a23ca0.js.map} +1 -1
- package/dist/components/{p-80b1c5e2.js → p-6c22a95a.js} +6 -6
- package/dist/components/{p-80b1c5e2.js.map → p-6c22a95a.js.map} +1 -1
- package/dist/components/{p-e16a4907.js → p-7301def9.js} +4 -4
- package/dist/components/{p-e16a4907.js.map → p-7301def9.js.map} +1 -1
- package/dist/components/{p-41780a0f.js → p-7ee3f874.js} +3 -3
- package/dist/components/p-7ee3f874.js.map +1 -0
- package/dist/components/{p-16bf0291.js → p-96491f9d.js} +17 -17
- package/dist/components/{p-16bf0291.js.map → p-96491f9d.js.map} +1 -1
- package/dist/components/{p-066e3240.js → p-a1f3fde9.js} +4 -4
- package/dist/components/{p-066e3240.js.map → p-a1f3fde9.js.map} +1 -1
- package/dist/components/{p-0c0651ff.js → p-a9586d11.js} +7 -7
- package/dist/components/{p-0c0651ff.js.map → p-a9586d11.js.map} +1 -1
- package/dist/components/{p-b202cede.js → p-ac7fb911.js} +7 -7
- package/dist/components/{p-b202cede.js.map → p-ac7fb911.js.map} +1 -1
- package/dist/components/{p-82e22b15.js → p-afffe85e.js} +3 -3
- package/dist/components/{p-82e22b15.js.map → p-afffe85e.js.map} +1 -1
- package/dist/components/{p-e0cf94e5.js → p-b6dda896.js} +5 -5
- package/dist/components/{p-e0cf94e5.js.map → p-b6dda896.js.map} +1 -1
- package/dist/components/{p-89c3b29e.js → p-be89672b.js} +11 -11
- package/dist/components/{p-89c3b29e.js.map → p-be89672b.js.map} +1 -1
- package/dist/components/{p-6ccc8a01.js → p-bfb63e71.js} +2 -2
- package/dist/components/{p-6ccc8a01.js.map → p-bfb63e71.js.map} +1 -1
- package/dist/components/{p-7a62a3b1.js → p-c9c44bdd.js} +2 -2
- package/dist/components/{p-7a62a3b1.js.map → p-c9c44bdd.js.map} +1 -1
- package/dist/components/{p-10160767.js → p-e6d6fd25.js} +5 -5
- package/dist/components/{p-10160767.js.map → p-e6d6fd25.js.map} +1 -1
- package/dist/components/{p-c70e74f5.js → p-ef26341d.js} +2 -2
- package/dist/components/{p-c70e74f5.js.map → p-ef26341d.js.map} +1 -1
- package/dist/components/{p-162cc171.js → p-f07d4901.js} +5 -5
- package/dist/components/{p-162cc171.js.map → p-f07d4901.js.map} +1 -1
- package/dist/components/{p-62808f56.js → p-ff7e1321.js} +4 -4
- package/dist/components/{p-62808f56.js.map → p-ff7e1321.js.map} +1 -1
- package/dist/components/smoothly-app-demo.js +31 -31
- 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 +6 -6
- 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-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_107.entry.js +13 -10
- package/dist/esm/smoothly-app_107.entry.js.map +1 -1
- package/dist/smoothly/p-32aff682.entry.js +2 -0
- package/dist/smoothly/p-32aff682.entry.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/package.json +1 -1
- package/dist/components/p-41780a0f.js.map +0 -1
- package/dist/components/p-4886e764.js.map +0 -1
- package/dist/smoothly/p-6cd3a82b.entry.js +0 -2
- package/dist/smoothly/p-6cd3a82b.entry.js.map +0 -1
|
@@ -8976,13 +8976,17 @@ const SmoothlyInput = class {
|
|
|
8976
8976
|
Input.formRemove(this);
|
|
8977
8977
|
}
|
|
8978
8978
|
async clear() {
|
|
8979
|
-
!this.uneditable &&
|
|
8979
|
+
if (!this.uneditable && this.inputElement) {
|
|
8980
|
+
this.state = this.stateHandler.setValue(this.inputElement, this.state, undefined);
|
|
8981
|
+
}
|
|
8980
8982
|
}
|
|
8981
8983
|
async edit(editable) {
|
|
8982
8984
|
!this.uneditable && (this.readonly = !editable);
|
|
8983
8985
|
}
|
|
8984
8986
|
async reset() {
|
|
8985
|
-
!this.uneditable &&
|
|
8987
|
+
if (!this.uneditable && this.inputElement) {
|
|
8988
|
+
this.state = this.stateHandler.setValue(this.inputElement, this.state, this.initialValue);
|
|
8989
|
+
}
|
|
8986
8990
|
}
|
|
8987
8991
|
async setInitialValue() {
|
|
8988
8992
|
this.changed = false;
|
|
@@ -8996,10 +9000,7 @@ const SmoothlyInput = class {
|
|
|
8996
9000
|
var _a, _b;
|
|
8997
9001
|
switch (this.type) {
|
|
8998
9002
|
case "price":
|
|
8999
|
-
this.stateHandler = InputStateHandler.create("price", {
|
|
9000
|
-
currency: this.currency,
|
|
9001
|
-
toInteger: this.toInteger,
|
|
9002
|
-
});
|
|
9003
|
+
this.stateHandler = InputStateHandler.create("price", { currency: this.currency, toInteger: this.toInteger });
|
|
9003
9004
|
break;
|
|
9004
9005
|
default:
|
|
9005
9006
|
this.stateHandler = InputStateHandler.create(this.type, getLocale());
|
|
@@ -9008,7 +9009,9 @@ const SmoothlyInput = class {
|
|
|
9008
9009
|
this.state = this.stateHandler.initialState((_a = this.value) !== null && _a !== void 0 ? _a : (_b = this.state) === null || _b === void 0 ? void 0 : _b.value);
|
|
9009
9010
|
}
|
|
9010
9011
|
stateChange() {
|
|
9012
|
+
var _a, _b;
|
|
9011
9013
|
this.smoothlyInput.emit({ [this.name]: this.stateHandler.getValue(this.state) });
|
|
9014
|
+
(_b = (_a = this.listener).changed) === null || _b === void 0 ? void 0 : _b.call(_a, this);
|
|
9012
9015
|
}
|
|
9013
9016
|
valueChange(value) {
|
|
9014
9017
|
const lastValue = this.stateHandler.getValue(this.state);
|
|
@@ -9043,7 +9046,7 @@ const SmoothlyInput = class {
|
|
|
9043
9046
|
}
|
|
9044
9047
|
render() {
|
|
9045
9048
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
9046
|
-
return (index.h(index.Host, { key: '
|
|
9049
|
+
return (index.h(index.Host, { key: '6cd7aa8a819bb907669e1ab37160653363eea7d7', 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: '0cb34738baae3f04cf1b571c2216b3b156e37af6', name: "start" }), index.h("div", { key: '7d903f93a5eec82c11ae11ad353ffc4d6367935d' }, index.h("div", { key: '476b41ea405c5535a26c6031fec5a1a7dc525d57', class: "ghost" }, index.h("div", { key: '6df340bc0af606853148a89e35058e117699c9a3', class: "value" }, (_c = this.state) === null || _c === void 0 ? void 0 : _c.value), index.h("div", { key: '8536db3c4b3f11c7b7461af4c5275620ea032d0e', class: "remainder" }, (_d = this.state) === null || _d === void 0 ? void 0 : _d.remainder)), index.h("input", { key: '78716f7025f1b224ece5439cedba196d7eedf471', 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 => {
|
|
9047
9050
|
this.state = this.stateHandler.onKeyDown(event, this.state);
|
|
9048
9051
|
if (event.key == "Enter")
|
|
9049
9052
|
this.smoothlyBlur.emit();
|
|
@@ -9056,7 +9059,7 @@ const SmoothlyInput = class {
|
|
|
9056
9059
|
if (Deep.notEqual(lastValue, this.stateHandler.getValue(this.state)))
|
|
9057
9060
|
this.smoothlyChange.emit({ [this.name]: this.stateHandler.getValue(this.state) });
|
|
9058
9061
|
}
|
|
9059
|
-
} }), index.h("label", { key: '
|
|
9062
|
+
} }), index.h("label", { key: 'f58d7b17ee3d85271d2176af3467d486dad75242', class: "label float-on-focus", htmlFor: this.name }, index.h("slot", { key: 'c60916793141a30eed9a9bee88d91d6f4b0691a8' })), index.h("smoothly-icon", { key: 'ff2b6d441306f6ad9f06b2d9097caa7bfea1d0a0', name: "alert-circle", color: "danger", fill: "clear", size: "small", toolTip: this.errorMessage })), index.h("slot", { key: 'b776850e4b5fb350aac85ba09ea234c075d4ca3b', name: "end" })));
|
|
9060
9063
|
}
|
|
9061
9064
|
get element() { return index.getElement(this); }
|
|
9062
9065
|
static get watchers() { return {
|
|
@@ -9170,7 +9173,7 @@ const SmoothlyInputClear = class {
|
|
|
9170
9173
|
if (Editable.Element.is(parent)) {
|
|
9171
9174
|
parent.listen("changed", async (p) => {
|
|
9172
9175
|
if (Input.is(p)) {
|
|
9173
|
-
this.display = !p.readonly && (typeof p.defined == "boolean" ? p.defined : Boolean(p.
|
|
9176
|
+
this.display = !p.readonly && (typeof p.defined == "boolean" ? p.defined : Boolean(await p.getValue()));
|
|
9174
9177
|
}
|
|
9175
9178
|
if (p instanceof SmoothlyForm) {
|
|
9176
9179
|
this.disabled = p.readonly || Object.values(p.value).filter(val => val).length < 1;
|
|
@@ -9187,7 +9190,7 @@ const SmoothlyInputClear = class {
|
|
|
9187
9190
|
}
|
|
9188
9191
|
render() {
|
|
9189
9192
|
var _a;
|
|
9190
|
-
return (index.h(index.Host, { key: '
|
|
9193
|
+
return (index.h(index.Host, { key: 'a0d238a896afcda6611c7586b27b4e9b287aff44', title: this.tooltip }, index.h("smoothly-button", { key: '2275a4e66801744b2fcf751e089d34d86cdefc2a', 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: '9de9c388ac7d872e12c1520cc5fa74d3619c6b91' }), index.h("smoothly-icon", { key: 'cd5225e037c955febc9ce5f6a9e7c81694da86d0', name: "close", size: "tiny" }))));
|
|
9191
9194
|
}
|
|
9192
9195
|
};
|
|
9193
9196
|
SmoothlyInputClear.style = SmoothlyInputClearStyle0;
|