smoothly 1.111.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-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-CiJgTdse.js → p-DVuQ4t_X.js} +2 -2
- 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
|
@@ -6386,7 +6386,6 @@ const SmoothlyInputClear = class {
|
|
|
6386
6386
|
index$1.registerInstance(this, hostRef);
|
|
6387
6387
|
this.smoothlyInputLoad = index$1.createEvent(this, "smoothlyInputLoad");
|
|
6388
6388
|
this.fill = "clear";
|
|
6389
|
-
this.disabled = false;
|
|
6390
6389
|
this.size = "icon";
|
|
6391
6390
|
this.display = true;
|
|
6392
6391
|
this.type = "input";
|
|
@@ -6403,10 +6402,16 @@ const SmoothlyInputClear = class {
|
|
|
6403
6402
|
this.display = defined && !p.readonly && !p.disabled;
|
|
6404
6403
|
}
|
|
6405
6404
|
if (p instanceof SmoothlyForm) {
|
|
6406
|
-
this.disabled = p.readonly || Object.values(p.value).filter(val => val).length < 1;
|
|
6407
6405
|
this.display = !p.readonly;
|
|
6408
6406
|
}
|
|
6409
6407
|
});
|
|
6408
|
+
if (typeof this.disabled !== "boolean") {
|
|
6409
|
+
parent.listen(async (p) => {
|
|
6410
|
+
if (p instanceof SmoothlyForm) {
|
|
6411
|
+
this.disabled = p.readonly || Object.values(p.value).filter(val => val).length < 1;
|
|
6412
|
+
}
|
|
6413
|
+
});
|
|
6414
|
+
}
|
|
6410
6415
|
}
|
|
6411
6416
|
}
|
|
6412
6417
|
});
|
|
@@ -6417,7 +6422,7 @@ const SmoothlyInputClear = class {
|
|
|
6417
6422
|
}
|
|
6418
6423
|
render() {
|
|
6419
6424
|
var _a;
|
|
6420
|
-
return (index$1.h(index$1.Host, { key: '
|
|
6425
|
+
return (index$1.h(index$1.Host, { key: 'c3057c346978456fae66b50daa28779d57897fe4', title: this.tooltip }, index$1.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) }, index$1.h("slot", { key: '5300d48ce3c05f9ba4e7492db5069e5252aba1c3' }), index$1.h("smoothly-icon", { key: '771161bfba19ad4f9f875481a75c5b7b65d3d143', name: "close", size: "tiny" }))));
|
|
6421
6426
|
}
|
|
6422
6427
|
get element() { return index$1.getElement(this); }
|
|
6423
6428
|
};
|
|
@@ -7813,7 +7818,6 @@ const SmoothlyInputReset = class {
|
|
|
7813
7818
|
constructor(hostRef) {
|
|
7814
7819
|
index$1.registerInstance(this, hostRef);
|
|
7815
7820
|
this.smoothlyInputLoad = index$1.createEvent(this, "smoothlyInputLoad");
|
|
7816
|
-
this.disabled = false;
|
|
7817
7821
|
this.size = "icon";
|
|
7818
7822
|
this.display = true;
|
|
7819
7823
|
this.type = "input";
|
|
@@ -7823,7 +7827,6 @@ const SmoothlyInputReset = class {
|
|
|
7823
7827
|
this.smoothlyInputLoad.emit(parent => {
|
|
7824
7828
|
if (Editable.Element.type.is(parent)) {
|
|
7825
7829
|
this.parent = parent;
|
|
7826
|
-
this.readonlyAtLoad = parent.readonly;
|
|
7827
7830
|
parent.listen(async (p) => {
|
|
7828
7831
|
if (Input.is(p)) {
|
|
7829
7832
|
const defined = typeof p.defined == "boolean" ? p.defined : Boolean(await p.getValue());
|
|
@@ -7831,9 +7834,16 @@ const SmoothlyInputReset = class {
|
|
|
7831
7834
|
}
|
|
7832
7835
|
if (p instanceof SmoothlyForm) {
|
|
7833
7836
|
this.display = !p.readonly;
|
|
7834
|
-
this.disabled = !this.readonlyAtLoad && !p.isDifferentFromInitial;
|
|
7835
7837
|
}
|
|
7836
7838
|
});
|
|
7839
|
+
if (typeof this.disabled !== "boolean") {
|
|
7840
|
+
this.readonlyAtLoad = parent.readonly;
|
|
7841
|
+
parent.listen(async (p) => {
|
|
7842
|
+
if (p instanceof SmoothlyForm) {
|
|
7843
|
+
this.disabled = !this.readonlyAtLoad && !p.isDifferentFromInitial;
|
|
7844
|
+
}
|
|
7845
|
+
});
|
|
7846
|
+
}
|
|
7837
7847
|
}
|
|
7838
7848
|
});
|
|
7839
7849
|
}
|
|
@@ -7845,7 +7855,7 @@ const SmoothlyInputReset = class {
|
|
|
7845
7855
|
}
|
|
7846
7856
|
render() {
|
|
7847
7857
|
var _a;
|
|
7848
|
-
return (index$1.h(index$1.Host, { key: '
|
|
7858
|
+
return (index$1.h(index$1.Host, { key: '07fe387d6e31ee4b8733dd797ccbb6bc2a602450', title: this.tooltip }, index$1.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) }, index$1.h("slot", { key: '6a6a1f5f60b8dee75d3adeba5a7dfd611a84d256' }), index$1.h("smoothly-icon", { key: '5d37c4a5f21cf620ab223979e1b0d0e589b97d73', flip: "x", name: "refresh-outline", size: "tiny" }))));
|
|
7849
7859
|
}
|
|
7850
7860
|
};
|
|
7851
7861
|
SmoothlyInputReset.style = styleCss$D();
|
|
@@ -8221,14 +8231,20 @@ const SmoothlyInputSubmit = class {
|
|
|
8221
8231
|
if (Submittable.Submittable.is(parent) && Editable.type.is(parent)) {
|
|
8222
8232
|
this.parent = parent;
|
|
8223
8233
|
parent.listen(async (p) => {
|
|
8224
|
-
var _a;
|
|
8225
8234
|
this.display = !p.readonly;
|
|
8226
|
-
this.disabled =
|
|
8227
|
-
!this.delete &&
|
|
8228
|
-
(p.readonly ||
|
|
8229
|
-
("validator" in p && p.validator instanceof Scrollable.Type && !((_a = p.validator) === null || _a === void 0 ? void 0 : _a.is(Scrollable.Data.convertArrays(p.value)))) ||
|
|
8230
|
-
!p.isDifferentFromInitial);
|
|
8231
8235
|
});
|
|
8236
|
+
if (typeof this.disabled !== "boolean") {
|
|
8237
|
+
parent.listen(async (p) => {
|
|
8238
|
+
var _a;
|
|
8239
|
+
this.disabled =
|
|
8240
|
+
!this.delete &&
|
|
8241
|
+
(p.readonly ||
|
|
8242
|
+
("validator" in p &&
|
|
8243
|
+
p.validator instanceof Scrollable.Type &&
|
|
8244
|
+
!((_a = p.validator) === null || _a === void 0 ? void 0 : _a.is(Scrollable.Data.convertArrays(p.value)))) ||
|
|
8245
|
+
!p.isDifferentFromInitial);
|
|
8246
|
+
});
|
|
8247
|
+
}
|
|
8232
8248
|
}
|
|
8233
8249
|
});
|
|
8234
8250
|
}
|
|
@@ -8238,7 +8254,7 @@ const SmoothlyInputSubmit = class {
|
|
|
8238
8254
|
}
|
|
8239
8255
|
render() {
|
|
8240
8256
|
var _a, _b;
|
|
8241
|
-
return (index$1.h(index$1.Host, { key: '
|
|
8257
|
+
return (index$1.h(index$1.Host, { key: '4ba889ed871427b4fd99610c5b775068dc05cc54', title: this.tooltip }, this.delete == true ? (index$1.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$1.h("slot", null), index$1.h("smoothly-icon", { name: "trash-outline", fill: "solid", size: "tiny" }))) : (index$1.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$1.h("slot", null), this.icon && index$1.h("smoothly-icon", { name: this.icon, fill: "solid", size: "tiny" })))));
|
|
8242
8258
|
}
|
|
8243
8259
|
};
|
|
8244
8260
|
SmoothlyInputSubmit.style = styleCss$B();
|