smoothly 1.110.0 → 1.112.0
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_98.cjs.entry.js +30 -14
- package/dist/cjs/smoothly-app_98.cjs.entry.js.map +1 -1
- package/dist/collection/components/input/clear/index.js +11 -7
- package/dist/collection/components/input/clear/index.js.map +1 -1
- package/dist/collection/components/input/reset/index.js +12 -8
- package/dist/collection/components/input/reset/index.js.map +1 -1
- package/dist/collection/components/input/submit/index.js +13 -7
- package/dist/collection/components/input/submit/index.js.map +1 -1
- package/dist/components/{p-CKxNCxBn.js → p-BGKOGyFA.js} +2 -2
- package/dist/components/{p-fJkfUsWz.js → p-BRkEF66h.js} +2 -2
- package/dist/components/{p-CrNizZqW.js → p-BX6yRNGo.js} +2 -2
- package/dist/components/{p-DZadnBSZ.js → p-BaBGzDg_.js} +2 -2
- package/dist/components/p-BaBGzDg_.js.map +1 -0
- package/dist/components/{p-p0yn7c4h.js → p-BiwhssQ8.js} +2 -2
- package/dist/components/{p-C8cvGmGP.js → p-Bj9DsW03.js} +2 -2
- package/dist/components/{p-DR3KUEvE.js → p-Bp9BMsim.js} +2 -2
- package/dist/components/{p-DBkHnJdp.js → p-Bs8X_nDB.js} +2 -2
- package/dist/components/{p-fafhoJgv.js → p-C3__jhwf.js} +2 -2
- package/dist/components/p-CG636AEF.js.map +1 -1
- package/dist/components/{p-DqwlZYFh.js → p-CKrPTQ_S.js} +2 -2
- package/dist/components/p-CKrPTQ_S.js.map +1 -0
- package/dist/components/{p-BgXgncGY.js → p-CZ6kkjYF.js} +2 -2
- package/dist/components/{p-DgHAvBgB.js → p-CqSJ0pgl.js} +2 -2
- package/dist/components/{p-C629G4I1.js → p-CqyInbXs.js} +2 -2
- package/dist/components/{p-CyhRVB6K.js → p-CrxXCTnH.js} +2 -2
- package/dist/components/{p-DA_1vtmU.js → p-CtN3gqjJ.js} +2 -2
- package/dist/components/{p-CVp4Wd4u.js → p-D7cDUGTe.js} +2 -2
- package/dist/components/p-D7cDUGTe.js.map +1 -0
- package/dist/components/p-DBuVH8IL.js.map +1 -1
- package/dist/components/{p-CiJgTdse.js → p-DVuQ4t_X.js} +2 -2
- package/dist/components/p-DZ4ogW8V.js.map +1 -1
- package/dist/components/{p-CdYYtJX2.js → p-DbIjGsJb.js} +2 -2
- package/dist/components/{p-HKrMuYSD.js → p-Dx5PGIAk.js} +2 -2
- package/dist/components/{p-DlHIV5_u.js → p-Mk_F6MCP.js} +2 -2
- package/dist/components/{p-C5Bgwjpo.js → p-jatJrx5f.js} +2 -2
- package/dist/components/p-t3cG0BK6.js +2 -0
- package/dist/components/{p-D1cLYdzg.js.map → p-t3cG0BK6.js.map} +1 -1
- package/dist/components/smoothly-app-demo.js +1 -1
- package/dist/components/smoothly-button-demo-standard.js +1 -1
- package/dist/components/smoothly-button-demo.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-schedule.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 +1 -1
- package/dist/components/smoothly-input-clear.js +1 -1
- package/dist/components/smoothly-input-date-demo.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-range-demo.js +1 -1
- package/dist/components/smoothly-input-reset.js +1 -1
- package/dist/components/smoothly-input-submit.js +1 -1
- package/dist/esm/smoothly-app_98.entry.js +30 -14
- package/dist/esm/smoothly-app_98.entry.js.map +1 -1
- package/dist/smoothly/p-23badc13.entry.js +2 -0
- package/dist/smoothly/p-23badc13.entry.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/input/clear/index.d.ts +1 -1
- package/dist/types/components/input/reset/index.d.ts +1 -1
- package/dist/types/components.d.ts +2 -14
- package/package.json +1 -1
- package/dist/components/p-CVp4Wd4u.js.map +0 -1
- package/dist/components/p-D1cLYdzg.js +0 -2
- package/dist/components/p-DZadnBSZ.js.map +0 -1
- package/dist/components/p-DqwlZYFh.js.map +0 -1
- package/dist/smoothly/p-0a7de225.entry.js +0 -2
- package/dist/smoothly/p-0a7de225.entry.js.map +0 -1
- /package/dist/components/{p-CKxNCxBn.js.map → p-BGKOGyFA.js.map} +0 -0
- /package/dist/components/{p-fJkfUsWz.js.map → p-BRkEF66h.js.map} +0 -0
- /package/dist/components/{p-CrNizZqW.js.map → p-BX6yRNGo.js.map} +0 -0
- /package/dist/components/{p-p0yn7c4h.js.map → p-BiwhssQ8.js.map} +0 -0
- /package/dist/components/{p-C8cvGmGP.js.map → p-Bj9DsW03.js.map} +0 -0
- /package/dist/components/{p-DR3KUEvE.js.map → p-Bp9BMsim.js.map} +0 -0
- /package/dist/components/{p-DBkHnJdp.js.map → p-Bs8X_nDB.js.map} +0 -0
- /package/dist/components/{p-fafhoJgv.js.map → p-C3__jhwf.js.map} +0 -0
- /package/dist/components/{p-BgXgncGY.js.map → p-CZ6kkjYF.js.map} +0 -0
- /package/dist/components/{p-DgHAvBgB.js.map → p-CqSJ0pgl.js.map} +0 -0
- /package/dist/components/{p-C629G4I1.js.map → p-CqyInbXs.js.map} +0 -0
- /package/dist/components/{p-CyhRVB6K.js.map → p-CrxXCTnH.js.map} +0 -0
- /package/dist/components/{p-DA_1vtmU.js.map → p-CtN3gqjJ.js.map} +0 -0
- /package/dist/components/{p-CiJgTdse.js.map → p-DVuQ4t_X.js.map} +0 -0
- /package/dist/components/{p-CdYYtJX2.js.map → p-DbIjGsJb.js.map} +0 -0
- /package/dist/components/{p-HKrMuYSD.js.map → p-Dx5PGIAk.js.map} +0 -0
- /package/dist/components/{p-DlHIV5_u.js.map → p-Mk_F6MCP.js.map} +0 -0
- /package/dist/components/{p-C5Bgwjpo.js.map → p-jatJrx5f.js.map} +0 -0
|
@@ -6384,7 +6384,6 @@ const SmoothlyInputClear = class {
|
|
|
6384
6384
|
registerInstance(this, hostRef);
|
|
6385
6385
|
this.smoothlyInputLoad = createEvent(this, "smoothlyInputLoad");
|
|
6386
6386
|
this.fill = "clear";
|
|
6387
|
-
this.disabled = false;
|
|
6388
6387
|
this.size = "icon";
|
|
6389
6388
|
this.display = true;
|
|
6390
6389
|
this.type = "input";
|
|
@@ -6401,10 +6400,16 @@ const SmoothlyInputClear = class {
|
|
|
6401
6400
|
this.display = defined && !p.readonly && !p.disabled;
|
|
6402
6401
|
}
|
|
6403
6402
|
if (p instanceof SmoothlyForm) {
|
|
6404
|
-
this.disabled = p.readonly || Object.values(p.value).filter(val => val).length < 1;
|
|
6405
6403
|
this.display = !p.readonly;
|
|
6406
6404
|
}
|
|
6407
6405
|
});
|
|
6406
|
+
if (typeof this.disabled !== "boolean") {
|
|
6407
|
+
parent.listen(async (p) => {
|
|
6408
|
+
if (p instanceof SmoothlyForm) {
|
|
6409
|
+
this.disabled = p.readonly || Object.values(p.value).filter(val => val).length < 1;
|
|
6410
|
+
}
|
|
6411
|
+
});
|
|
6412
|
+
}
|
|
6408
6413
|
}
|
|
6409
6414
|
}
|
|
6410
6415
|
});
|
|
@@ -6415,7 +6420,7 @@ const SmoothlyInputClear = class {
|
|
|
6415
6420
|
}
|
|
6416
6421
|
render() {
|
|
6417
6422
|
var _a;
|
|
6418
|
-
return (h(Host, { key: '
|
|
6423
|
+
return (h(Host, { key: 'c3057c346978456fae66b50daa28779d57897fe4', title: this.tooltip }, h("smoothly-button", { key: 'ada585112d53669e71813f504c07f4ea51f8365a', 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) }, h("slot", { key: '5300d48ce3c05f9ba4e7492db5069e5252aba1c3' }), h("smoothly-icon", { key: '771161bfba19ad4f9f875481a75c5b7b65d3d143', name: "close", size: "tiny" }))));
|
|
6419
6424
|
}
|
|
6420
6425
|
get element() { return getElement(this); }
|
|
6421
6426
|
};
|
|
@@ -7811,7 +7816,6 @@ const SmoothlyInputReset = class {
|
|
|
7811
7816
|
constructor(hostRef) {
|
|
7812
7817
|
registerInstance(this, hostRef);
|
|
7813
7818
|
this.smoothlyInputLoad = createEvent(this, "smoothlyInputLoad");
|
|
7814
|
-
this.disabled = false;
|
|
7815
7819
|
this.size = "icon";
|
|
7816
7820
|
this.display = true;
|
|
7817
7821
|
this.type = "input";
|
|
@@ -7821,7 +7825,6 @@ const SmoothlyInputReset = class {
|
|
|
7821
7825
|
this.smoothlyInputLoad.emit(parent => {
|
|
7822
7826
|
if (Editable.Element.type.is(parent)) {
|
|
7823
7827
|
this.parent = parent;
|
|
7824
|
-
this.readonlyAtLoad = parent.readonly;
|
|
7825
7828
|
parent.listen(async (p) => {
|
|
7826
7829
|
if (Input.is(p)) {
|
|
7827
7830
|
const defined = typeof p.defined == "boolean" ? p.defined : Boolean(await p.getValue());
|
|
@@ -7829,9 +7832,16 @@ const SmoothlyInputReset = class {
|
|
|
7829
7832
|
}
|
|
7830
7833
|
if (p instanceof SmoothlyForm) {
|
|
7831
7834
|
this.display = !p.readonly;
|
|
7832
|
-
this.disabled = !this.readonlyAtLoad && !p.isDifferentFromInitial;
|
|
7833
7835
|
}
|
|
7834
7836
|
});
|
|
7837
|
+
if (typeof this.disabled !== "boolean") {
|
|
7838
|
+
this.readonlyAtLoad = parent.readonly;
|
|
7839
|
+
parent.listen(async (p) => {
|
|
7840
|
+
if (p instanceof SmoothlyForm) {
|
|
7841
|
+
this.disabled = !this.readonlyAtLoad && !p.isDifferentFromInitial;
|
|
7842
|
+
}
|
|
7843
|
+
});
|
|
7844
|
+
}
|
|
7835
7845
|
}
|
|
7836
7846
|
});
|
|
7837
7847
|
}
|
|
@@ -7843,7 +7853,7 @@ const SmoothlyInputReset = class {
|
|
|
7843
7853
|
}
|
|
7844
7854
|
render() {
|
|
7845
7855
|
var _a;
|
|
7846
|
-
return (h(Host, { key: '
|
|
7856
|
+
return (h(Host, { key: '07fe387d6e31ee4b8733dd797ccbb6bc2a602450', title: this.tooltip }, h("smoothly-button", { key: 'db64da157afc163be326cc342d344881b0dd665c', 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) }, h("slot", { key: '6a6a1f5f60b8dee75d3adeba5a7dfd611a84d256' }), h("smoothly-icon", { key: '5d37c4a5f21cf620ab223979e1b0d0e589b97d73', flip: "x", name: "refresh-outline", size: "tiny" }))));
|
|
7847
7857
|
}
|
|
7848
7858
|
};
|
|
7849
7859
|
SmoothlyInputReset.style = styleCss$D();
|
|
@@ -8219,14 +8229,20 @@ const SmoothlyInputSubmit = class {
|
|
|
8219
8229
|
if (Submittable.is(parent) && Editable.type.is(parent)) {
|
|
8220
8230
|
this.parent = parent;
|
|
8221
8231
|
parent.listen(async (p) => {
|
|
8222
|
-
var _a;
|
|
8223
8232
|
this.display = !p.readonly;
|
|
8224
|
-
this.disabled =
|
|
8225
|
-
!this.delete &&
|
|
8226
|
-
(p.readonly ||
|
|
8227
|
-
("validator" in p && p.validator instanceof Type && !((_a = p.validator) === null || _a === void 0 ? void 0 : _a.is(Data.convertArrays(p.value)))) ||
|
|
8228
|
-
!p.isDifferentFromInitial);
|
|
8229
8233
|
});
|
|
8234
|
+
if (typeof this.disabled !== "boolean") {
|
|
8235
|
+
parent.listen(async (p) => {
|
|
8236
|
+
var _a;
|
|
8237
|
+
this.disabled =
|
|
8238
|
+
!this.delete &&
|
|
8239
|
+
(p.readonly ||
|
|
8240
|
+
("validator" in p &&
|
|
8241
|
+
p.validator instanceof Type &&
|
|
8242
|
+
!((_a = p.validator) === null || _a === void 0 ? void 0 : _a.is(Data.convertArrays(p.value)))) ||
|
|
8243
|
+
!p.isDifferentFromInitial);
|
|
8244
|
+
});
|
|
8245
|
+
}
|
|
8230
8246
|
}
|
|
8231
8247
|
});
|
|
8232
8248
|
}
|
|
@@ -8236,7 +8252,7 @@ const SmoothlyInputSubmit = class {
|
|
|
8236
8252
|
}
|
|
8237
8253
|
render() {
|
|
8238
8254
|
var _a, _b;
|
|
8239
|
-
return (h(Host, { key: '
|
|
8255
|
+
return (h(Host, { key: '4ba889ed871427b4fd99610c5b775068dc05cc54', title: this.tooltip }, this.delete == true ? (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() }, h("slot", null), h("smoothly-icon", { name: "trash-outline", fill: "solid", size: "tiny" }))) : (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() }, h("slot", null), this.icon && h("smoothly-icon", { name: this.icon, fill: "solid", size: "tiny" })))));
|
|
8240
8256
|
}
|
|
8241
8257
|
};
|
|
8242
8258
|
SmoothlyInputSubmit.style = styleCss$B();
|