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.
Files changed (94) hide show
  1. package/dist/cjs/smoothly-app_98.cjs.entry.js +30 -14
  2. package/dist/cjs/smoothly-app_98.cjs.entry.js.map +1 -1
  3. package/dist/collection/components/input/clear/index.js +11 -7
  4. package/dist/collection/components/input/clear/index.js.map +1 -1
  5. package/dist/collection/components/input/reset/index.js +12 -8
  6. package/dist/collection/components/input/reset/index.js.map +1 -1
  7. package/dist/collection/components/input/submit/index.js +13 -7
  8. package/dist/collection/components/input/submit/index.js.map +1 -1
  9. package/dist/components/{p-CKxNCxBn.js → p-BGKOGyFA.js} +2 -2
  10. package/dist/components/{p-fJkfUsWz.js → p-BRkEF66h.js} +2 -2
  11. package/dist/components/{p-CrNizZqW.js → p-BX6yRNGo.js} +2 -2
  12. package/dist/components/{p-DZadnBSZ.js → p-BaBGzDg_.js} +2 -2
  13. package/dist/components/p-BaBGzDg_.js.map +1 -0
  14. package/dist/components/{p-p0yn7c4h.js → p-BiwhssQ8.js} +2 -2
  15. package/dist/components/{p-C8cvGmGP.js → p-Bj9DsW03.js} +2 -2
  16. package/dist/components/{p-DR3KUEvE.js → p-Bp9BMsim.js} +2 -2
  17. package/dist/components/{p-DBkHnJdp.js → p-Bs8X_nDB.js} +2 -2
  18. package/dist/components/{p-fafhoJgv.js → p-C3__jhwf.js} +2 -2
  19. package/dist/components/p-CG636AEF.js.map +1 -1
  20. package/dist/components/{p-DqwlZYFh.js → p-CKrPTQ_S.js} +2 -2
  21. package/dist/components/p-CKrPTQ_S.js.map +1 -0
  22. package/dist/components/{p-BgXgncGY.js → p-CZ6kkjYF.js} +2 -2
  23. package/dist/components/{p-DgHAvBgB.js → p-CqSJ0pgl.js} +2 -2
  24. package/dist/components/{p-C629G4I1.js → p-CqyInbXs.js} +2 -2
  25. package/dist/components/{p-CyhRVB6K.js → p-CrxXCTnH.js} +2 -2
  26. package/dist/components/{p-DA_1vtmU.js → p-CtN3gqjJ.js} +2 -2
  27. package/dist/components/{p-CVp4Wd4u.js → p-D7cDUGTe.js} +2 -2
  28. package/dist/components/p-D7cDUGTe.js.map +1 -0
  29. package/dist/components/p-DBuVH8IL.js.map +1 -1
  30. package/dist/components/{p-CiJgTdse.js → p-DVuQ4t_X.js} +2 -2
  31. package/dist/components/p-DZ4ogW8V.js.map +1 -1
  32. package/dist/components/{p-CdYYtJX2.js → p-DbIjGsJb.js} +2 -2
  33. package/dist/components/{p-HKrMuYSD.js → p-Dx5PGIAk.js} +2 -2
  34. package/dist/components/{p-DlHIV5_u.js → p-Mk_F6MCP.js} +2 -2
  35. package/dist/components/{p-C5Bgwjpo.js → p-jatJrx5f.js} +2 -2
  36. package/dist/components/p-t3cG0BK6.js +2 -0
  37. package/dist/components/{p-D1cLYdzg.js.map → p-t3cG0BK6.js.map} +1 -1
  38. package/dist/components/smoothly-app-demo.js +1 -1
  39. package/dist/components/smoothly-button-demo-standard.js +1 -1
  40. package/dist/components/smoothly-button-demo.js +1 -1
  41. package/dist/components/smoothly-form-demo-all.js +1 -1
  42. package/dist/components/smoothly-form-demo-card.js +1 -1
  43. package/dist/components/smoothly-form-demo-controlled.js +1 -1
  44. package/dist/components/smoothly-form-demo-date-range.js +1 -1
  45. package/dist/components/smoothly-form-demo-date.js +1 -1
  46. package/dist/components/smoothly-form-demo-login.js +1 -1
  47. package/dist/components/smoothly-form-demo-pet.js +1 -1
  48. package/dist/components/smoothly-form-demo-prices.js +1 -1
  49. package/dist/components/smoothly-form-demo-schedule.js +1 -1
  50. package/dist/components/smoothly-form-demo-transparent.js +1 -1
  51. package/dist/components/smoothly-form-demo-typed.js +1 -1
  52. package/dist/components/smoothly-form-demo.js +1 -1
  53. package/dist/components/smoothly-icon-demo.js +1 -1
  54. package/dist/components/smoothly-input-checkbox-demo.js +1 -1
  55. package/dist/components/smoothly-input-clear.js +1 -1
  56. package/dist/components/smoothly-input-date-demo.js +1 -1
  57. package/dist/components/smoothly-input-demo-standard.js +1 -1
  58. package/dist/components/smoothly-input-demo.js +1 -1
  59. package/dist/components/smoothly-input-range-demo.js +1 -1
  60. package/dist/components/smoothly-input-reset.js +1 -1
  61. package/dist/components/smoothly-input-submit.js +1 -1
  62. package/dist/esm/smoothly-app_98.entry.js +30 -14
  63. package/dist/esm/smoothly-app_98.entry.js.map +1 -1
  64. package/dist/smoothly/p-23badc13.entry.js +2 -0
  65. package/dist/smoothly/p-23badc13.entry.js.map +1 -0
  66. package/dist/smoothly/smoothly.esm.js +1 -1
  67. package/dist/types/components/input/clear/index.d.ts +1 -1
  68. package/dist/types/components/input/reset/index.d.ts +1 -1
  69. package/dist/types/components.d.ts +2 -14
  70. package/package.json +1 -1
  71. package/dist/components/p-CVp4Wd4u.js.map +0 -1
  72. package/dist/components/p-D1cLYdzg.js +0 -2
  73. package/dist/components/p-DZadnBSZ.js.map +0 -1
  74. package/dist/components/p-DqwlZYFh.js.map +0 -1
  75. package/dist/smoothly/p-0a7de225.entry.js +0 -2
  76. package/dist/smoothly/p-0a7de225.entry.js.map +0 -1
  77. /package/dist/components/{p-CKxNCxBn.js.map → p-BGKOGyFA.js.map} +0 -0
  78. /package/dist/components/{p-fJkfUsWz.js.map → p-BRkEF66h.js.map} +0 -0
  79. /package/dist/components/{p-CrNizZqW.js.map → p-BX6yRNGo.js.map} +0 -0
  80. /package/dist/components/{p-p0yn7c4h.js.map → p-BiwhssQ8.js.map} +0 -0
  81. /package/dist/components/{p-C8cvGmGP.js.map → p-Bj9DsW03.js.map} +0 -0
  82. /package/dist/components/{p-DR3KUEvE.js.map → p-Bp9BMsim.js.map} +0 -0
  83. /package/dist/components/{p-DBkHnJdp.js.map → p-Bs8X_nDB.js.map} +0 -0
  84. /package/dist/components/{p-fafhoJgv.js.map → p-C3__jhwf.js.map} +0 -0
  85. /package/dist/components/{p-BgXgncGY.js.map → p-CZ6kkjYF.js.map} +0 -0
  86. /package/dist/components/{p-DgHAvBgB.js.map → p-CqSJ0pgl.js.map} +0 -0
  87. /package/dist/components/{p-C629G4I1.js.map → p-CqyInbXs.js.map} +0 -0
  88. /package/dist/components/{p-CyhRVB6K.js.map → p-CrxXCTnH.js.map} +0 -0
  89. /package/dist/components/{p-DA_1vtmU.js.map → p-CtN3gqjJ.js.map} +0 -0
  90. /package/dist/components/{p-CiJgTdse.js.map → p-DVuQ4t_X.js.map} +0 -0
  91. /package/dist/components/{p-CdYYtJX2.js.map → p-DbIjGsJb.js.map} +0 -0
  92. /package/dist/components/{p-HKrMuYSD.js.map → p-Dx5PGIAk.js.map} +0 -0
  93. /package/dist/components/{p-DlHIV5_u.js.map → p-Mk_F6MCP.js.map} +0 -0
  94. /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: '660f4822b0bbd4a73a5b2db9eda230fb54f86581', title: this.tooltip }, h("smoothly-button", { key: '04e1befe3503073f4afbc6be33ea2d0b7c7149d7', 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: 'c3e17aa940535baa194883e7e669e9da61bd1ded' }), h("smoothly-icon", { key: '64a216ff1d5c24d4603e3e810a9f978fcf2914a6', name: "close", size: "tiny" }))));
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: 'cff6bf87e1bc037cec6f46d6c2588fcea30a91a3', title: this.tooltip }, h("smoothly-button", { key: 'b26d4ea446cf62de69d817f1d3799b0f12e2ced9', 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: 'aed086c207c6ed79df2552b4d03377191f6f8751' }), h("smoothly-icon", { key: 'cd506e93eca085433eb3a3d6fd5e37a714001960', flip: "x", name: "refresh-outline", size: "tiny" }))));
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: '5bc6d17920c9a5dfa81e81b02df300b661e960f9', 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" })))));
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();