smoothly 1.16.0 → 1.18.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 (30) hide show
  1. package/dist/cjs/smoothly-app_99.cjs.entry.js +10 -9
  2. package/dist/cjs/smoothly-app_99.cjs.entry.js.map +1 -1
  3. package/dist/collection/components/input/date/time/index.js +6 -5
  4. package/dist/collection/components/input/date/time/index.js.map +1 -1
  5. package/dist/collection/components/input/demo/index.js +4 -4
  6. package/dist/collection/components/input/demo/index.js.map +1 -1
  7. package/dist/components/{p-601d4fcc.js → p-0f172b43.js} +2 -2
  8. package/dist/components/{p-601d4fcc.js.map → p-0f172b43.js.map} +1 -1
  9. package/dist/components/{p-298b33fe.js → p-29e1b4f3.js} +8 -8
  10. package/dist/components/p-29e1b4f3.js.map +1 -0
  11. package/dist/components/{p-62d76797.js → p-6ca55f53.js} +3 -3
  12. package/dist/components/{p-62d76797.js.map → p-6ca55f53.js.map} +1 -1
  13. package/dist/components/{p-3bc98439.js → p-9598a8c3.js} +7 -6
  14. package/dist/components/p-9598a8c3.js.map +1 -0
  15. package/dist/components/{p-9fb82b7f.js → p-bc061caa.js} +2 -2
  16. package/dist/components/{p-9fb82b7f.js.map → p-bc061caa.js.map} +1 -1
  17. package/dist/components/smoothly-app-demo.js +5 -5
  18. package/dist/components/smoothly-form-demo-pet.js +1 -1
  19. package/dist/components/smoothly-form-demo.js +1 -1
  20. package/dist/components/smoothly-input-date-time.js +1 -1
  21. package/dist/components/smoothly-input-demo-standard.js +1 -1
  22. package/dist/components/smoothly-input-demo.js +1 -1
  23. package/dist/esm/smoothly-app_99.entry.js +10 -9
  24. package/dist/esm/smoothly-app_99.entry.js.map +1 -1
  25. package/dist/smoothly/{p-4ce2b8a4.entry.js → p-1082c0c7.entry.js} +2 -2
  26. package/dist/smoothly/{p-4ce2b8a4.entry.js.map → p-1082c0c7.entry.js.map} +1 -1
  27. package/dist/smoothly/smoothly.esm.js +1 -1
  28. package/package.json +1 -1
  29. package/dist/components/p-298b33fe.js.map +0 -1
  30. package/dist/components/p-3bc98439.js.map +0 -1
@@ -9764,6 +9764,7 @@ const SmoothlyInputDateTime = class {
9764
9764
  this.smoothlyInputLoad.emit(parent => (this.parent = parent));
9765
9765
  !this.readonly && this.smoothlyFormDisable.emit(readonly => (this.readonly = readonly));
9766
9766
  this.observer.publish();
9767
+ this.valueChange(this.value);
9767
9768
  }
9768
9769
  async disconnectedCallback() {
9769
9770
  if (!this.element.isConnected)
@@ -9846,22 +9847,22 @@ const SmoothlyInputDateTime = class {
9846
9847
  this.changed = false;
9847
9848
  }
9848
9849
  render() {
9849
- return (index.h(index.Host, { key: 'b62edf4ec82241f178230b6437a0bb8310e739eb' }, index.h("smoothly-input", { key: 'a2d514c20bd8aa429571f4bc426bdd7bf6e4efb3', color: this.color, looks: this.looks == "transparent" ? this.looks : undefined, name: "date", onFocus: () => !this.readonly && !this.disabled && (this.open = !this.open), onClick: () => !this.readonly && !this.disabled && (this.open = !this.open), readonly: this.readonly, disabled: this.disabled, type: "date", value: this.date, showLabel: this.showLabel, onSmoothlyInputLoad: e => e.stopPropagation(), onSmoothlyInput: e => {
9850
+ return (index.h(index.Host, { key: '7f10ecf3cd527d11b3403e0544461203302e35bb' }, index.h("smoothly-input", { key: 'ee3c4e651c7ac2dee043de41dbe1df6ace4d18ee', color: this.color, looks: this.looks == "transparent" ? this.looks : undefined, name: "date", onFocus: () => !this.readonly && !this.disabled && (this.open = !this.open), onClick: () => !this.readonly && !this.disabled && (this.open = !this.open), readonly: this.readonly, disabled: this.disabled, type: "date", value: this.date, showLabel: this.showLabel, onSmoothlyInputLoad: e => e.stopPropagation(), onSmoothlyInput: e => {
9850
9851
  e.stopPropagation();
9851
9852
  this.date = e.detail.date;
9852
- } }, index.h("slot", { key: '09155a628aa5902a8eb69dafafa52aa4e1b4b334' })), index.h("smoothly-input", { key: '2436383e1dd6d9d94899aeb50cf702656b5529de', name: "hour", type: "integer", max: 23, pad: 2, value: this.hour, readonly: this.readonly, disabled: this.disabled, placeholder: "hh", onSmoothlyInputLoad: e => e.stopPropagation(), onSmoothlyInput: e => {
9853
+ } }, index.h("slot", { key: '2eadf286b3d52e5d71a03f5938d82fb9d7933e0b' })), index.h("smoothly-input", { key: 'ed277c8fadf8ab3290cd763e2c2b8e0c2d58d27d', name: "hour", type: "integer", max: 23, pad: 2, value: this.hour, readonly: this.readonly, disabled: this.disabled, placeholder: "hh", onSmoothlyInputLoad: e => e.stopPropagation(), onSmoothlyInput: e => {
9853
9854
  e.stopPropagation();
9854
9855
  this.hour = e.detail.hour;
9855
- } }), index.h("span", { key: '4a1d470871e94cd0346c12f409ca0d5100964b44', class: "colon" }, ":"), index.h("smoothly-input", { key: 'ca6ed49b251dab93f96080372f9e4e90c7ea57d9', name: "minute", type: "integer", max: 59, pad: 2, value: this.minute, readonly: this.readonly, disabled: this.disabled, placeholder: "mm", onSmoothlyInputLoad: e => e.stopPropagation(), onSmoothlyInput: e => {
9856
+ } }), index.h("span", { key: 'c23863ead234dbed6d6f35bc507d153eaf458068', class: "colon" }, ":"), index.h("smoothly-input", { key: 'a3cc30652291520b946d1e2b59bf43f8f92e2299', name: "minute", type: "integer", max: 59, pad: 2, value: this.minute, readonly: this.readonly, disabled: this.disabled, placeholder: "mm", onSmoothlyInputLoad: e => e.stopPropagation(), onSmoothlyInput: e => {
9856
9857
  e.stopPropagation();
9857
9858
  this.minute = e.detail.minute;
9858
- } }), index.h("span", { key: 'deadce35d8d6921539f09f348ab42fde74f4d550', class: "icons" }, index.h("smoothly-icon", { key: '846cc166103806478ad080b89f598f15594fff92', class: "smoothly-invalid", name: "alert-circle", color: "danger", fill: "clear", size: "small", toolTip: this.errorMessage }), index.h("slot", { key: 'b358f111627d79ba1fcccd55838ea62340388e46', name: "end" })), this.open && !this.readonly && (index.h("nav", { key: '17445b9cdd49cb20cd58719ffe391f03ce50b583' }, index.h("smoothly-calendar", { key: '7a590b7c7f1281ee8e95f792483399c00edebd4f', doubleInput: false, value: this.value, min: this.min ? TimeZone.DateTime.getDate(this.min) : undefined, max: this.max ? TimeZone.DateTime.getDate(this.max) : undefined, onSmoothlyValueChange: e => {
9859
+ } }), index.h("span", { key: '7fd01be380f7bab89f4f1b591d7d664e02833faf', class: "icons" }, index.h("smoothly-icon", { key: '2ddae3a3e39130641e060c16f56c860b0834e871', class: "smoothly-invalid", name: "alert-circle", color: "danger", fill: "clear", size: "small", toolTip: this.errorMessage }), index.h("slot", { key: '95145be65d6367ea30b5025a66b53017e1ccda88', name: "end" })), this.open && !this.readonly && (index.h("nav", { key: 'bccd852edd3653a2c58587b9cd880a3617ea503a' }, index.h("smoothly-calendar", { key: '1451fdfcb5b19d767077c3cabb0f86f929622454', doubleInput: false, value: this.value ? TimeZone.DateTime.getDate(this.value) : undefined, min: this.min ? TimeZone.DateTime.getDate(this.min) : undefined, max: this.max ? TimeZone.DateTime.getDate(this.max) : undefined, onSmoothlyValueChange: e => {
9859
9860
  this.date = e.detail;
9860
9861
  e.stopPropagation();
9861
9862
  }, onSmoothlyDateSet: e => {
9862
9863
  this.open = false;
9863
9864
  e.stopPropagation();
9864
- } }, index.h("div", { key: 'd92438e7c0c25f00c888916ab65a02e1b380b95d', slot: "year-label" }, index.h("slot", { key: '5f26a8e7c2f00bda65a1edab27353e6aa02e6d19', name: "year-label" })), index.h("div", { key: '3a3b6ee62f17acd8c915559cdea259fbced5971b', slot: "month-label" }, index.h("slot", { key: '304c3db5d497f329bd43cd55c308f2810febab61', name: "month-label" })))))));
9865
+ } }, index.h("div", { key: '7310c24d398698616f9ff5d1e09112fc49c5f79d', slot: "year-label" }, index.h("slot", { key: '28841d170ddc30e4c99002fea3869e4cfedbba77', name: "year-label" })), index.h("div", { key: '6ea61abd3c7c8b12fbab098b2747212b97dcc60e', slot: "month-label" }, index.h("slot", { key: '26704048950f52ab6629e0fcf7bfd177deccaba9', name: "month-label" })))))));
9865
9866
  }
9866
9867
  get element() { return index.getElement(this); }
9867
9868
  static get watchers() { return {
@@ -9887,14 +9888,14 @@ const SmoothlyInputDemo = class {
9887
9888
  this.alphanumeric = "!@##";
9888
9889
  }
9889
9890
  render() {
9890
- return (index.h(index.Host, { key: '898e42a3aae72b4d52bc01e2e6fec22fb49f7894' }, index.h("smoothly-input-demo-standard", { key: 'c84c56932a3ca7b3ad70bea508955b37e269b24b' }), index.h("div", { key: '5b25db08e200dd0e6216e372c5c897c601490593', class: "inputs" }, index.h("h2", { key: 'f9aa7e790295584eb8ea78e0c372cffb4b93e84e' }, "Calendar"), index.h("smoothly-input-date", { key: '45f80826e17da5ab6106986f762b6e1624d6d069', name: "some-date" }, "Calendar"), index.h("smoothly-input-date-time", { key: '0a707e376f4ff18db494c247d9ae9a8e3c620fcf', name: "someDateTime" }, "DateTime"), index.h("h2", { key: 'e4981b4702b6d1505838adf9ad181c1d75c75be2' }, "Date Range"), index.h("smoothly-input-date-range", { key: 'ba262ba7d3a809b0c59907fa12d36017ac77d162', name: "testing", start: TimeZone.Date.now(), end: TimeZone.Date.nextMonth(TimeZone.Date.now()), min: "2021-10-01", max: "2025-01-31" }), index.h("smoothly-input-date-range", { key: '30d4fa41617d5a46a9b41737b090ae7af71a0e1f', name: "testing", start: TimeZone.Date.now(), end: TimeZone.Date.nextMonth(TimeZone.Date.now()), min: "2021-10-10", max: "2024-12-30" }, index.h("smoothly-input-reset", { key: '1cdbb7d09b5a09781c75787a70b6b124ea4ea0f8', slot: "end", size: "icon" })), index.h("smoothly-input-date-range", { key: '0b81346ba5f45cfb274acfa50b589fd9120459f6', looks: "grid", start: TimeZone.Date.now(), end: TimeZone.Date.nextMonth(TimeZone.Date.now()), min: "2021-10-10", max: "2025-12-30", showLabel: false, style: {
9891
+ return (index.h(index.Host, { key: '898e42a3aae72b4d52bc01e2e6fec22fb49f7894' }, index.h("smoothly-input-demo-standard", { key: 'c84c56932a3ca7b3ad70bea508955b37e269b24b' }), index.h("div", { key: '5b25db08e200dd0e6216e372c5c897c601490593', class: "inputs" }, index.h("h2", { key: 'f9aa7e790295584eb8ea78e0c372cffb4b93e84e' }, "Calendar"), index.h("smoothly-input-date", { key: '45f80826e17da5ab6106986f762b6e1624d6d069', name: "some-date" }, "Calendar"), index.h("smoothly-input-date-time", { key: 'c75a8089a839a9c0d8d20123f5a1e146133a11d4', name: "someDateTime", value: TimeZone.DateTime.now() }, "DateTime"), index.h("h2", { key: '67158067f11b2ec07eb9404ff9718bc6d8e8ee20' }, "Date Range"), index.h("smoothly-input-date-range", { key: '17d22c2f9912f5e3302e37209dc513dccd078a20', name: "testing", start: TimeZone.Date.now(), end: TimeZone.Date.nextMonth(TimeZone.Date.now()), min: "2021-10-01", max: "2025-01-31" }), index.h("smoothly-input-date-range", { key: '3846779d3d760c296adb062be9994befa2efa1fb', name: "testing", start: TimeZone.Date.now(), end: TimeZone.Date.nextMonth(TimeZone.Date.now()), min: "2021-10-10", max: "2024-12-30" }, index.h("smoothly-input-reset", { key: '65090bc301777f6f71736903803e55515e41583f', slot: "end", size: "icon" })), index.h("smoothly-input-date-range", { key: 'd983f82136b3c73347d0c9fc20f0c15243e792e0', looks: "grid", start: TimeZone.Date.now(), end: TimeZone.Date.nextMonth(TimeZone.Date.now()), min: "2021-10-10", max: "2025-12-30", showLabel: false, style: {
9891
9892
  "--smoothly-input-border-radius": "0.5rem",
9892
- } }, index.h("smoothly-input-clear", { key: '58a9b0265ea8ffeb6dd25b4cd2b856a9c4afa84e', slot: "end", size: "icon" })), index.h("h2", { key: '11914eeddc03def00e7ad925a23cfe447a5f9b98' }, "Date"), index.h("smoothly-input-date", { key: 'e767c0b627ee97ebbfda56daa3e0bee37f43d934' }, "Date"), index.h("smoothly-input-date", { key: '43fdb115a61f70b40e93964c5881bfe10caf0ac6', showLabel: false, value: "2021-10-28", max: "2021-12-30", min: "2021-10-10" }, "Date"), index.h("smoothly-input-date", { key: 'a481fa967fa1b736626614b9764912366e90b7c9', value: "2021-10-28" }, "Date", index.h("smoothly-input-reset", { key: '877e16c0db2d61ad054b8a79873cdd4ff11198b9', slot: "end", size: "icon" })), index.h("smoothly-input-date", { key: 'fc079cb329e6ade1b05b792fdd38471daf5b939d', value: "2021-10-28" }, "Date", index.h("smoothly-input-clear", { key: '04e5c619668ce8ee036a7fcf68dbb5475057ad33', slot: "end", size: "icon" })), index.h("h2", { key: '352db5f41baa5d77b0b9c324124ccd8b6b603487' }, "Select"), index.h("div", { key: '9e30637687db9eeedf21a691a69e650c9ec20d8d', class: "select-div" }, index.h("smoothly-input-select", { key: 'b81069e847d16dea7e64987449b61c28d23e959e', name: "select-dessert", looks: "border" }, index.h("label", { key: '1674251c630961135941b7c3e163c3b8c36647d6', slot: "label" }, "Select with clear button"), index.h("smoothly-item", { key: '76ef6769049168385989f09c7c00b73c80fae3c3', value: "1" }, "Ice cream"), index.h("smoothly-item", { key: '0c0ff5745c705c3517354744a82d3040a1908380', value: "2" }, "Sponge cake"), index.h("smoothly-item", { key: '2f406e2c1a29b327b740873a0512b58c5e8ffee4', value: "3", disabled: true }, "Disabled Item"), index.h("smoothly-item", { key: '63165ef47474188599e1d5990c52fa7aac59da46', value: "4" }, "Cookie"), index.h("smoothly-item", { key: 'db928ccd74dfcb21c384010c16b15c710f6c348e', value: "5" }, "Croissant"), index.h("smoothly-item", { key: 'b4e3986af23bdac024b28c6c8a5cfb5ea1e1edc3', value: "6" }, "Chocolate fondue"), index.h("smoothly-input-clear", { key: '4815a44cfe40b5152c9ad94320da440e96626849', size: "icon", slot: "end" })), index.h("smoothly-input-select", { key: '5888df7b123845d0ae451f10f1dce0e6f0a51a1d', multiple: true, name: "select-dessert-multiple", looks: "border" }, index.h("label", { key: '90b78f7fc9711181bd66a33d761333eb0e4e0030', slot: "label" }, "Select multiple with reset button"), index.h("smoothly-item", { key: 'f3e9a603c80a2562b967f3e25c178eec9ae830d2', value: "ice cream" }, "Ice cream"), index.h("smoothly-item", { key: 'e74af1d8c162fcfe278ab02a6862c91ce139dfc4', value: "sponge cake" }, "Sponge cake"), index.h("smoothly-item", { key: '5055ea6836e7fa80ab48cfec353b09a843bf5dc5', selected: true, value: "cookie" }, "Cookie"), index.h("smoothly-item", { key: 'fb0215a750b470ad0011c28d3f6f5532802dc090', value: "croissant" }, "Croissant"), index.h("smoothly-item", { key: 'fcf701cccc5919b9fb5e276460f42ee8c54c6be1', selected: true, value: "chocolate fondue" }, "Chocolate fondue"), index.h("smoothly-input-reset", { key: '3cd340fad69acad3ddd65025e0d442f5eaa50ac9', size: "icon", slot: "end" })), index.h("smoothly-input-select", { key: 'e57893d60f6e0ead8088790f59efd8b32b998b2d', name: "spirit-animals", looks: "border", mutable: true }, index.h("label", { key: 'f402235dac5bdbcfe195f884443712f65e2885e0', slot: "label" }, "Select or add new options"), index.h("smoothly-item", { key: 'ae5f0ef5846a4f54e678ec3307350247491fd20a', value: "manatee" }, "Manatee"), index.h("smoothly-item", { key: 'cdb11bbf169345d31793a2def8879c05772b386a', selected: true, value: "cthulu" }, "Cthulu")), index.h("smoothly-input-select", { key: '3de1af65992f7d307b68f8b11e5f20b6960a036d', name: "select-icon", clearable: false, showSelected: false }, index.h("smoothly-item", { key: 'd8a6a789431a97f2811b70f686a8688c2245fdfb', value: "folder", selected: true }, index.h("smoothly-icon", { key: 'ecd76b9cb6143ccda76ffdbafd9442c3eecab763', size: "small", name: "folder-outline" })), index.h("smoothly-item", { key: '7d7c84a37ec7a6a4067365c6a8711b3748b1788e', value: "camera" }, index.h("smoothly-icon", { key: '88ce40e3176f4fca2356dbb694ff442ff659136b', size: "small", name: "camera-outline" }))), index.h("smoothly-input-select", { key: '785709f29e464bf58fcea800aff4189d005ca2c9', ordered: true, menuHeight: "7.5items", placeholder: "Select...", name: "select-month" }, index.h("label", { key: 'b2d8530ba923c60c14e4d81a3a05a561d4464313', slot: "label" }, "Alphabet ordered select"), Array.from({ length: 26 })
9893
+ } }, index.h("smoothly-input-clear", { key: 'acc25239f7cc9440c0ec5fa36cc120e4f5d316a1', slot: "end", size: "icon" })), index.h("h2", { key: '6d0a086cfc810cfb6dc35817daf861d5c6c55003' }, "Date"), index.h("smoothly-input-date", { key: 'c4c69377a0b1279de36cde54264e61a6a41c0ef9' }, "Date"), index.h("smoothly-input-date", { key: 'b682e26e5bee518f5c3ac4ee253f3203a941c6be', showLabel: false, value: "2021-10-28", max: "2021-12-30", min: "2021-10-10" }, "Date"), index.h("smoothly-input-date", { key: '571b2059429fbdfd6a86a5f37c82c25fb64d195d', value: "2021-10-28" }, "Date", index.h("smoothly-input-reset", { key: 'fed44a7f74903643b1ad7f268ba1b17da781332c', slot: "end", size: "icon" })), index.h("smoothly-input-date", { key: 'c01d7ebfd3ccb7116f6ed352f878703d7aac85c1', value: "2021-10-28" }, "Date", index.h("smoothly-input-clear", { key: 'f61941c675981953b37136be925b60159282fa60', slot: "end", size: "icon" })), index.h("h2", { key: 'f2a12cef213eff60445fa476934269fed3182d53' }, "Select"), index.h("div", { key: '9ead4113c0eae89f3efb8b37c2caa00e3f79a853', class: "select-div" }, index.h("smoothly-input-select", { key: '8882d672b4a1de80beb39d217c844aa72d9a721b', name: "select-dessert", looks: "border" }, index.h("label", { key: '9a9559b1475745cb8b5effed6b7e0cdc2c709e5f', slot: "label" }, "Select with clear button"), index.h("smoothly-item", { key: 'e2124c30e5bc6953b16775800506b4eab448f91a', value: "1" }, "Ice cream"), index.h("smoothly-item", { key: '6b6e9e846776abb846c91b10463c15c01dfced9a', value: "2" }, "Sponge cake"), index.h("smoothly-item", { key: 'e57c51f1e02e0489ff33ce3ea389056d448dfbcf', value: "3", disabled: true }, "Disabled Item"), index.h("smoothly-item", { key: '1c0126c51bfa3dd32c4820c8fffaeceaeec16e7b', value: "4" }, "Cookie"), index.h("smoothly-item", { key: '38260b8888e79b5379d4a6d25d7112608eaebee0', value: "5" }, "Croissant"), index.h("smoothly-item", { key: '3ab0d50627b0c64a233989142379cd9d27c0b300', value: "6" }, "Chocolate fondue"), index.h("smoothly-input-clear", { key: 'a138dd06e4987a27239a83f5b27d1cc80385e077', size: "icon", slot: "end" })), index.h("smoothly-input-select", { key: 'f2c455f0d0d6dd96c720f15426d5aa3b036c2515', multiple: true, name: "select-dessert-multiple", looks: "border" }, index.h("label", { key: '9e21085dab1da4250c8acb8779315f628cf22be4', slot: "label" }, "Select multiple with reset button"), index.h("smoothly-item", { key: 'a9a9bccd893e9ec28ad0e1bf344da607a11bbd72', value: "ice cream" }, "Ice cream"), index.h("smoothly-item", { key: '2ddfada9b851af84ea7989e13a438fe96e4620c1', value: "sponge cake" }, "Sponge cake"), index.h("smoothly-item", { key: '07da9263d39abda81d3b3270b68109fb0b821db4', selected: true, value: "cookie" }, "Cookie"), index.h("smoothly-item", { key: '6f42556b55807df870fcc025feca4d7ebaa35750', value: "croissant" }, "Croissant"), index.h("smoothly-item", { key: '3e62c89dc903e2661c16a2210153ba2819ae86bf', selected: true, value: "chocolate fondue" }, "Chocolate fondue"), index.h("smoothly-input-reset", { key: 'c779f9514a6887a145037b7bb1eb21d105b7837b', size: "icon", slot: "end" })), index.h("smoothly-input-select", { key: '27cdd21f93dfdb40a9f14bb34babb3bea6ce5f1e', name: "spirit-animals", looks: "border", mutable: true }, index.h("label", { key: 'acfe0fa884742923964996db0a84bb3009154704', slot: "label" }, "Select or add new options"), index.h("smoothly-item", { key: '09b13ecd8cb772306f3868ec2fd00a4cc690bdc9', value: "manatee" }, "Manatee"), index.h("smoothly-item", { key: '279da0a08318d881b09c02edfaa9ffb1634f11d3', selected: true, value: "cthulu" }, "Cthulu")), index.h("smoothly-input-select", { key: '9fd650bf631777108fa1accedea8f75a5eebc66f', name: "select-icon", clearable: false, showSelected: false }, index.h("smoothly-item", { key: '797ce1c441e79b25d78e32fc2a46607fa0fd49df', value: "folder", selected: true }, index.h("smoothly-icon", { key: '9e593efa771e5fc65de6472644ef0f57352c81e9', size: "small", name: "folder-outline" })), index.h("smoothly-item", { key: 'fe0ace3a9b5f22f50a4522a807ff567224e2afe6', value: "camera" }, index.h("smoothly-icon", { key: '9a4beedd2d273c0cf40905b30ff88e35d6c594d3', size: "small", name: "camera-outline" }))), index.h("smoothly-input-select", { key: '295d464f9ee2f293c469a99eb064a65f714f40f8', ordered: true, menuHeight: "7.5items", placeholder: "Select...", name: "select-month" }, index.h("label", { key: '22da5776a511b87afee2f17d6147a33d07866b76', slot: "label" }, "Alphabet ordered select"), Array.from({ length: 26 })
9893
9894
  .map((_, i) => String.fromCharCode(i + 65))
9894
- .map(char => (index.h("smoothly-item", { value: char, selected: char == "H" }, char)))), index.h("smoothly-input-select", { key: '547732722e521764f6efd5b093c922f7dce08467', multiple: true, menuHeight: "7.5items", placeholder: "Select...", name: "select-month" }, index.h("label", { key: '8c83d41b2c49d62df53417e1b2eba9754ea439fc', slot: "label" }, "Month multiple select"), index.h("smoothly-item", { key: '91a273a7279b66ef35b9735e0b3e4bdfc6c6e795', value: "1" }, "January"), index.h("smoothly-item", { key: 'f58024ba104d8e46bda48233d8ad14c5e26b4b19', value: "2" }, "February"), index.h("smoothly-item", { key: '0ac720a3cbae6157d251e194b7bb2aa6d2d1a318', value: "3" }, "March"), index.h("smoothly-item", { key: '48e991c953f74b77ce1f7c1d6ec57df73d2ad9c8', value: "4" }, "April"), index.h("smoothly-item", { key: '487b8e09445dcab1867d58dfe6fa7f774572bdb7', value: "5" }, "May"), index.h("smoothly-item", { key: 'f6c3bb9720dd9582019ac26dd36393c136ad5200', value: "6" }, "June"), index.h("smoothly-item", { key: 'd27ff235108a7441e6e4aa0794e31fe702c31b21', value: "7" }, "July"), index.h("smoothly-item", { key: '91a1de0d2c053d7736e2c43543077c8b27e70679', value: "8" }, "August"), index.h("smoothly-item", { key: '9180bf26ee2d7daa4a6c07ebecf71a50f8d4eddb', value: "9" }, "September"), index.h("smoothly-item", { key: '7526a4bf7871475577f05d2c19f71251adc65112', value: "10" }, "October"), index.h("smoothly-item", { key: 'bc06ade0abeb3928ab63b23fd184ffaa2fe8caad', value: "11" }, "November"), index.h("smoothly-item", { key: 'a759d0ac14994c3888db77a43b693ec7118afe65', value: "12" }, "December")), index.h("div", { key: '48123702f91eee7c64c5a3142b9818604a963416', class: "select-div-row" }, index.h("smoothly-input-select", { key: 'cbd21bf3b3c4a4595e5efe623ea101e836d175c9', name: "select-icon", clearable: false, showSelected: false }, index.h("smoothly-item", { key: '1b1af5d7ba533dfb966940a2351ba9b909d50877', value: "folder", selected: true }, index.h("smoothly-icon", { key: '9e062d3d5674f6fd81f8fbfe2f195d4e253e4254', size: "small", name: "folder-outline" })), index.h("smoothly-item", { key: '97e6e7af4fb31f1efdcc424d2b5c7bb6d73fa379', value: "camera" }, index.h("smoothly-icon", { key: '1f850e7d1ab19ff94a24d2239b940bb7a7e33450', size: "small", name: "camera-outline" })), index.h("smoothly-item", { key: '81211a1cd413d17a575efa961cc3f4c2b2a24409', value: "boat" }, index.h("smoothly-icon", { key: '16d60f0b8495472787f114606fe600bf82ebd703', size: "small", name: "boat-outline" }))), index.h("smoothly-input-select", { key: '79f3f11252dcbc27529add01c0590cbf9a476c20', name: "select-number", clearable: false }, this.numbers.map(number => (index.h("smoothly-item", { value: "number", selected: number === 3 }, number)))), index.h("smoothly-input", { key: '8d1e1949d808d582e227f47c8375649e58eb910f', name: "name", value: "Sten Qvist" }, "Name"))), index.h("h2", { key: '831c4145709aeb1723ac01524dff485f60bd375d' }, "Duration"), index.h("smoothly-input", { key: '7a0ef2d4e70a00fd3fb16d3dde20135ee1382c9f', name: "duration", type: "duration", placeholder: "hh:mm", value: this.duration, onSmoothlyInput: e => (this.duration = e.detail.duration) }, "Duration"), index.h("smoothly-input", { key: '6838adf1fcbd8f23c2f49676fb58d63057d7dcc0', name: "duration", type: "duration", value: this.duration, placeholder: "-hh:mm", onSmoothlyInput: e => {
9895
+ .map(char => (index.h("smoothly-item", { value: char, selected: char == "H" }, char)))), index.h("smoothly-input-select", { key: '81b9a017ee15255a6cba2318cb9477f2be2d5f22', multiple: true, menuHeight: "7.5items", placeholder: "Select...", name: "select-month" }, index.h("label", { key: 'b92ca178a15b02f8536d3c224e9fe7b36ac892b8', slot: "label" }, "Month multiple select"), index.h("smoothly-item", { key: 'ffd6286d229bf71eb5544dc52a58df3122a2513d', value: "1" }, "January"), index.h("smoothly-item", { key: 'e4a22d0955ad5410a2139f892e14dea0b0b55156', value: "2" }, "February"), index.h("smoothly-item", { key: 'fcce98a409347d92c5c19fe77495c48338c12d15', value: "3" }, "March"), index.h("smoothly-item", { key: '2e027f8ef516a80e679acf0bd8f62dd1cba05587', value: "4" }, "April"), index.h("smoothly-item", { key: 'de6324c78827e1a7d2bc961bb4fe5673fccf87b2', value: "5" }, "May"), index.h("smoothly-item", { key: 'e6d1807aa96262803b7b9a1c600d09829f9ba189', value: "6" }, "June"), index.h("smoothly-item", { key: '3a7fb723a65053aa34ee41c53bd3070e8f36a365', value: "7" }, "July"), index.h("smoothly-item", { key: '113919ca16511db9bc80a34f6f656a17c3503e28', value: "8" }, "August"), index.h("smoothly-item", { key: '3715c80d775c0320a04ec9a00297944d47317889', value: "9" }, "September"), index.h("smoothly-item", { key: '11de769e9dd9d758e5ec7386aa5bff768fa43848', value: "10" }, "October"), index.h("smoothly-item", { key: '4096dfe05ee0cf7bb87dedc5c6ae9b6ac92c57b2', value: "11" }, "November"), index.h("smoothly-item", { key: 'fb307e113ff2683993e0046e4678d4b0e39781c0', value: "12" }, "December")), index.h("div", { key: '6a79a92f279d59f361dd045a9e48673c0352fb8d', class: "select-div-row" }, index.h("smoothly-input-select", { key: '6157eaad78ef767d3879a8f83611cdcb0ce4065a', name: "select-icon", clearable: false, showSelected: false }, index.h("smoothly-item", { key: 'de6cc27701a324492a202fd6751735f2de02a979', value: "folder", selected: true }, index.h("smoothly-icon", { key: '76b35d23e809e2907faca5d50e87207a91b479c0', size: "small", name: "folder-outline" })), index.h("smoothly-item", { key: '4cb2dac5e01d41ad21905fd96e976977b1fc557c', value: "camera" }, index.h("smoothly-icon", { key: '8daa318964e7f5e5d109c5bc91ee47eecb9989f8', size: "small", name: "camera-outline" })), index.h("smoothly-item", { key: '1c5730a83a8460f4734d65b69ec355689baa3cb5', value: "boat" }, index.h("smoothly-icon", { key: '611adfb6c633930b0a9d2039751ae0e37dc08fa0', size: "small", name: "boat-outline" }))), index.h("smoothly-input-select", { key: 'ec11b07ed1979e997351b32a39b708f238a998d0', name: "select-number", clearable: false }, this.numbers.map(number => (index.h("smoothly-item", { value: "number", selected: number === 3 }, number)))), index.h("smoothly-input", { key: '54877a107184367840cf835742cfda950cc8f88d', name: "name", value: "Sten Qvist" }, "Name"))), index.h("h2", { key: 'd16675548b59b59f6c352034195983945eb94ebc' }, "Duration"), index.h("smoothly-input", { key: '35ab660bcfb0cb1fb2d026c55a0f2a20f6804231', name: "duration", type: "duration", placeholder: "hh:mm", value: this.duration, onSmoothlyInput: e => (this.duration = e.detail.duration) }, "Duration"), index.h("smoothly-input", { key: 'd1a85921f80cea2b1a0322c4950a2ce8e7a544be', name: "duration", type: "duration", value: this.duration, placeholder: "-hh:mm", onSmoothlyInput: e => {
9895
9896
  const duration = e.detail.duration;
9896
9897
  this.duration = duration;
9897
- } }, "Duration"), index.h("h2", { key: '664344d0ba40adce085bf233113c7d5c65395b00' }, "Integer with Min/Max"), index.h("smoothly-input", { key: '1bdac9816d19f2385d6c460e545e7bca51f24721', name: "days", type: "integer", min: 0, max: 365 }, "Days per year (0-365)"), index.h("smoothly-input", { key: '94dac0012c47e960373fa49de1a07718f1162028', name: "hour", type: "integer", min: 0, max: 23 }, "Hours per day (0-23)"), index.h("smoothly-input", { key: '02c7850748ae75474d3bd9866fa7d65a728c6d76', name: "minute", type: "integer", min: 0, max: 59 }, "Minutes per hour (0-59)"), index.h("smoothly-input", { key: '10dea9a9dceb86169132dc63d5f59cf75adf4858', name: "minute", type: "integer", min: 18, max: 120 }, "Age (18-120)"), index.h("h2", { key: '20e6f37f44c0ead4c9cb75ed9ce179183a26df96' }, "Invalid text with warning icon and tooltip"), index.h("smoothly-input", { key: 'dcbb187b84c439d7ab01183e75c409dbc5dd7aef', name: "alphanumeric", invalid: !/^[a-zA-Z0-9]+$/.test(this.alphanumeric), errorMessage: "Only alphanumeric allowed", value: this.alphanumeric, onSmoothlyInput: e => (this.alphanumeric = e.detail.alphanumeric) }, "Alphanumeric"), index.h("h2", { key: 'fc02ccf8d09b9ee0f2d30cd4275c95b10d1e9701' }, "Identifiers"), index.h("smoothly-input", { key: 'b9841c3652b5300c7e5085470273e85faca2dd15', type: "identifier-code" }, "Code"), index.h("smoothly-input", { key: '7f35845b6249f01890db694e23bf63ee097944cf', type: "identifier-attribute" }, "Attribute"), index.h("smoothly-input", { key: 'da0c4ecb4ef72e74965d69dc09234c10ab332ee2', type: "identifier-snake" }, "Snake"), index.h("smoothly-input", { key: '7463653a03bf919a7caa7e020669b3492b0470d9', type: "identifier-pascal" }, "Pascal"), index.h("smoothly-input", { key: '29c4627676c9da8e2352617b3254d53bf953ccf4', type: "identifier-camel" }, "Camel"), index.h("h2", { key: 'fd029120fc34e12e80a95d9c7fc787c3a5d42d13' }, "Input Alternatives"), index.h("smoothly-input", { key: '10a908a9fc5906372f557b6fc7fe81d8e4b989d8', type: "text", name: "name.last", onSmoothlyChange: e => console.log("smoothly change event") }, index.h("smoothly-icon", { key: 'a009310374cd729a7192e45896a5a5c95b1ee67c', name: "checkmark-circle", slot: "start" }), "First Name"), index.h("smoothly-input", { key: '3d11c8ab5fdd631cd6b51f3eb25120962a75c23d', type: "text", name: "name.first", onSmoothlyChange: e => console.log("smoothly change event") }, "Last Name", index.h("smoothly-icon", { key: 'fc8de3ba973117904a60e76ac251e76342f6fbc9', name: "checkmark-circle", slot: "end" })), index.h("smoothly-input", { key: 'f6cf7b6548e5f59be71f2f0bde8426aaf27b7468', type: "text", name: "name.first", placeholder: "Smith", onSmoothlyChange: e => console.log("smoothly change event") }, "Last Name", index.h("smoothly-icon", { key: '1e8b569ec282979fb5cff16d76d0d614a40a9f42', name: "checkmark-circle", slot: "end" })), index.h("smoothly-input", { key: 'b3c9fba5bbd2b1eb9472709f7c9ec75d5afb335f', placeholder: "test" }), index.h("smoothly-input-submit", { key: '47607993d4e5d00e083004e23fda5692c21f016e', slot: "submit", fill: "solid", onSubmit: (e) => alert(e), color: "success" }), index.h("h4", { key: 'cd8ac47c2a74cb73c15f9e178776cf5587da0c94' }, "Smoothly checkboxes"), index.h("div", { key: '0132393278b0aaf54ae2b19745c5b7dcd9d0b890', class: "checkbox-group" }, index.h("smoothly-input-checkbox", { key: '66f16b0bd9165417e002b369cbf39f7889ffb0b3', disabled: true, name: "first-checkbox" }, index.h("smoothly-icon", { key: '0a6d2b2fd25b05c530877784b4ee249c24a25663', name: "checkmark-circle", slot: "start", size: "tiny" }), "First"), index.h("smoothly-input-checkbox", { key: '62036c53272eb1bd99155ed1c8f3262de4a4105b', name: "second-checkbox", checked: true }, index.h("smoothly-icon", { key: '63f984fa5004de72307e4e695d5c21d1db138a43', name: "checkmark-circle", slot: "start", size: "tiny" }), "second", index.h("smoothly-input-clear", { key: '8e93098557950fe33d5b0af42923d61e38cdeca7', size: "icon", slot: "end" })), index.h("smoothly-input-checkbox", { key: '5d388aecd4290d345e2975c3df48f28f3dcc58d3', name: "third-checkbox" }, "3rd")), index.h("h4", { key: '968d1428d10941207d8418025f9083b53cbf0584' }, "Smoothly Radio Buttons"), index.h("smoothly-input-radio", { key: 'd6eae15b0c72d4092e83ce1f686012eda413d476', clearable: true, name: "radioFirstInput" }, index.h("smoothly-icon", { key: 'f0402ad7bfa06f8efb5f0378e7fa67a383237cf4', name: "checkmark-circle", slot: "start" }), index.h("label", { key: 'eec0d5de4c3db4bb3f3813ee8ff6596c3b87b697', slot: "label" }, "Clearable"), index.h("smoothly-input-radio-item", { key: 'ef961c59e5335b26a693a4041f29b75abc576da4', value: "first" }, "Label 1"), index.h("smoothly-input-radio-item", { key: 'b485ef15b4a23c6a7b83faa6fef615269b7a707b', selected: true, value: "second" }, "Label 2"), index.h("smoothly-input-radio-item", { key: 'a42d006d32a0aae44a0059c770ef5a46341338ce', value: "third" }, "Label 3"), index.h("smoothly-input-clear", { key: 'deadcbab55ed1d5f0561cd83edab5386d234f6a5', size: "icon", slot: "end" })), index.h("smoothly-input-radio", { key: 'b7125855aa49593db1158509e15f2bf60faf1041', name: "radioSecondInput" }, index.h("label", { key: 'e7bf64c7131d7489c4ffa9249dc56bea1b54d041', slot: "label" }, "Not clearable"), index.h("smoothly-input-radio-item", { key: '440a07b624d04a40c89a775766503c3b9eb79e28', value: "first" }, "Label 1"), index.h("smoothly-input-radio-item", { key: 'd0a65783c056dac89b26619f0d12b0c85862202d', value: "second" }, "Label 2"), index.h("smoothly-input-radio-item", { key: '100ef7fb5d3832eb255a93249b67dbe13bc8d457', value: "third" }, "Label 3"), index.h("smoothly-input-radio-item", { key: '1dca434401e473650d1b22ce68fd16d0d4d54da4', value: "fourth" }, "Label 4"), index.h("smoothly-input-radio-item", { key: 'b39315ceca35ae4b6d57f896f5e6810549da3fc5', value: "fifth" }, "Label 5"), index.h("smoothly-input-radio-item", { key: 'cc1d15d8a6747074f1a99f5373b093fa934addc2', value: "sixth" }, "Label 6")), index.h("smoothly-input-range-demo", { key: 'a710ee590d39b7779a1d2c535a8ee575a9e11bfe' }), index.h("smoothly-input-color-demo", { key: '108a02584b23f301a2d2aefe9e57985ef6e30dac' }), index.h("smoothly-input-price-demo", { key: '4d28f120dfa5c2c19c292f22bf5b9d7f7564b117' }), index.h("smoothly-back-to-top", { key: '0ccc6f790656be6f21f3c9e38c401076aaa57ea1' }))));
9898
+ } }, "Duration"), index.h("h2", { key: 'abee3266126d0e8ae3431c3cb033796f27f375f5' }, "Integer with Min/Max"), index.h("smoothly-input", { key: 'f17ced3f91227636d05528c3f3ce5bbabe89ca41', name: "days", type: "integer", min: 0, max: 365 }, "Days per year (0-365)"), index.h("smoothly-input", { key: '75c4eef9773545af7bd59ce4ea874145410808d1', name: "hour", type: "integer", min: 0, max: 23 }, "Hours per day (0-23)"), index.h("smoothly-input", { key: '7a082ee76dfdfeecf5846e8f996ab7b65be0c65d', name: "minute", type: "integer", min: 0, max: 59 }, "Minutes per hour (0-59)"), index.h("smoothly-input", { key: '69c964f735b258e13dac0aff798ae0a598a1feb6', name: "minute", type: "integer", min: 18, max: 120 }, "Age (18-120)"), index.h("h2", { key: 'b30a2e28a78a590e4a257d0f576b6158ba5f4e35' }, "Invalid text with warning icon and tooltip"), index.h("smoothly-input", { key: '757832fcb76537f6bda5e005939a2be7c8ae4226', name: "alphanumeric", invalid: !/^[a-zA-Z0-9]+$/.test(this.alphanumeric), errorMessage: "Only alphanumeric allowed", value: this.alphanumeric, onSmoothlyInput: e => (this.alphanumeric = e.detail.alphanumeric) }, "Alphanumeric"), index.h("h2", { key: '3a78eb9e57dab38c02ba22e253ba7257b8f8c17d' }, "Identifiers"), index.h("smoothly-input", { key: 'e7bc6c7a3fa0d34ee67f6d28a66f5bae4a0889e8', type: "identifier-code" }, "Code"), index.h("smoothly-input", { key: 'fa1ae3da7404c1634b0d5fb38d8e2e78030b9f44', type: "identifier-attribute" }, "Attribute"), index.h("smoothly-input", { key: '5289c5ba45b12b70e8de64266ca7d3dc006256b3', type: "identifier-snake" }, "Snake"), index.h("smoothly-input", { key: '2914367e528136633a25e322de4e6dcc479b45f9', type: "identifier-pascal" }, "Pascal"), index.h("smoothly-input", { key: 'fac5c9c205a347972d7b9c543088b868408e36da', type: "identifier-camel" }, "Camel"), index.h("h2", { key: 'b796b00c68806a19a074f0ac8b218faeb87e58eb' }, "Input Alternatives"), index.h("smoothly-input", { key: '4e00318c442bb1ca99d20c7887f2a4acc4ff1283', type: "text", name: "name.last", onSmoothlyChange: e => console.log("smoothly change event") }, index.h("smoothly-icon", { key: '8cdeba6f2f3074237ffb0b415d4716acd31623a9', name: "checkmark-circle", slot: "start" }), "First Name"), index.h("smoothly-input", { key: 'cb13d6b827f8a08c309488b697f0a31b2f88b16d', type: "text", name: "name.first", onSmoothlyChange: e => console.log("smoothly change event") }, "Last Name", index.h("smoothly-icon", { key: '9705c7c99cd0d3e6cb74fe50eb9271cfd7c930bb', name: "checkmark-circle", slot: "end" })), index.h("smoothly-input", { key: '439bd463d34e957e4b6b99486731a5176a046772', type: "text", name: "name.first", placeholder: "Smith", onSmoothlyChange: e => console.log("smoothly change event") }, "Last Name", index.h("smoothly-icon", { key: '5dfdc12e1f5ac46e368647d3ffa71074175d0ec2', name: "checkmark-circle", slot: "end" })), index.h("smoothly-input", { key: '03963e472107778d63a7e6c7993a266bf43a0554', placeholder: "test" }), index.h("smoothly-input-submit", { key: '85b71d57c0d90034453f94a54c9a689ea93dfe0a', slot: "submit", fill: "solid", onSubmit: (e) => alert(e), color: "success" }), index.h("h4", { key: '0a4d6204eea474230180f22b219def2c90c09f9a' }, "Smoothly checkboxes"), index.h("div", { key: 'b2f40bb76260fd75e39c140fe2c9d27ab313463d', class: "checkbox-group" }, index.h("smoothly-input-checkbox", { key: '47766a0825c018c706f8a946d29e334c0147d6fe', disabled: true, name: "first-checkbox" }, index.h("smoothly-icon", { key: '353bab14678f57ff18684b205c3edc5ea638357c', name: "checkmark-circle", slot: "start", size: "tiny" }), "First"), index.h("smoothly-input-checkbox", { key: '06c78f99bf6174a7d2fb0f8a5f71fe7183d53895', name: "second-checkbox", checked: true }, index.h("smoothly-icon", { key: '5f86f2a3a317783f80659b2dc1028b281eb8a10d', name: "checkmark-circle", slot: "start", size: "tiny" }), "second", index.h("smoothly-input-clear", { key: '0343887337da9e875fd507ec4672061d20ea909d', size: "icon", slot: "end" })), index.h("smoothly-input-checkbox", { key: 'c3a2081c706c2aa0548eacd2e93afd946a97bd0f', name: "third-checkbox" }, "3rd")), index.h("h4", { key: 'fea87e53049a7ee065ab5c684c8c60131ea18256' }, "Smoothly Radio Buttons"), index.h("smoothly-input-radio", { key: 'd822629ae61f361e8f97e183aa6a451eb7cd2de3', clearable: true, name: "radioFirstInput" }, index.h("smoothly-icon", { key: '2df7ac54118e203e773dbdfecce9a502576dd6d3', name: "checkmark-circle", slot: "start" }), index.h("label", { key: 'e2a267a3c2aa60a3efd294bef5a952054a14eadf', slot: "label" }, "Clearable"), index.h("smoothly-input-radio-item", { key: '95f599c5d9ccc4175351fb838c0fbdfef570ee96', value: "first" }, "Label 1"), index.h("smoothly-input-radio-item", { key: '091ac26ea562be9fab9f75a0648311cdde57a673', selected: true, value: "second" }, "Label 2"), index.h("smoothly-input-radio-item", { key: 'e6f52bbaa83bdc1a191db696cd65a1b846b40f19', value: "third" }, "Label 3"), index.h("smoothly-input-clear", { key: '59bd5ea4f4c3292a61213eecad4d6f5a15ca285c', size: "icon", slot: "end" })), index.h("smoothly-input-radio", { key: 'e15078e3f15a9bd36eea76fba70d202e888edc87', name: "radioSecondInput" }, index.h("label", { key: 'cc82a8483b6de0bd68f596c4fdcba1e339eca0b3', slot: "label" }, "Not clearable"), index.h("smoothly-input-radio-item", { key: 'ce8345a69841811b7f4069ffe20dc993352d588d', value: "first" }, "Label 1"), index.h("smoothly-input-radio-item", { key: 'fcef36a1d73ecbad3d7df993eb52810f53432e4b', value: "second" }, "Label 2"), index.h("smoothly-input-radio-item", { key: '0c305da291e768e2c67a2f03e0a371c01286e617', value: "third" }, "Label 3"), index.h("smoothly-input-radio-item", { key: '019c7cc953dea60aa0f587bbbcc1711fe2a5d8ef', value: "fourth" }, "Label 4"), index.h("smoothly-input-radio-item", { key: 'b610b2a0b0688d7367fbec279ab34659a69552fa', value: "fifth" }, "Label 5"), index.h("smoothly-input-radio-item", { key: '0dcd6dde06d1a09a8ab4db93d18eb28f468b3fa5', value: "sixth" }, "Label 6")), index.h("smoothly-input-range-demo", { key: '7a5e5d7ec81a9a6ea6e613b3e8d94cb4a7235420' }), index.h("smoothly-input-color-demo", { key: '2ff385307261bf5e3d53ce47db7ef2eff082334c' }), index.h("smoothly-input-price-demo", { key: 'bf31451d40ced189ae2f39236d7b26a1462c825b' }), index.h("smoothly-back-to-top", { key: '9971fd8a577064996ba4ffdc67b51f0cb0cc9971' }))));
9898
9899
  }
9899
9900
  };
9900
9901
  SmoothlyInputDemo.style = SmoothlyInputDemoStyle0;