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