smoothly 1.123.0 → 1.124.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 (90) hide show
  1. package/dist/cjs/smoothly-app_99.cjs.entry.js +9 -4
  2. package/dist/cjs/smoothly-app_99.cjs.entry.js.map +1 -1
  3. package/dist/collection/components/input/select/index.js +4 -4
  4. package/dist/collection/components/input/select/index.js.map +1 -1
  5. package/dist/collection/components/input/select/menu.js +5 -0
  6. package/dist/collection/components/input/select/menu.js.map +1 -1
  7. package/dist/components/{p-DxMW5Du7.js → p-B1agr2Cu.js} +2 -2
  8. package/dist/components/{p-BoVqzcqA.js → p-B4ZWPf6K.js} +2 -2
  9. package/dist/components/{p-CRgTWhgN.js → p-B8xGVFme.js} +2 -2
  10. package/dist/components/{p-DilrpZI6.js → p-BOgkCDpz.js} +2 -2
  11. package/dist/components/{p-C5SROPcr.js → p-BiRi-ZIu.js} +2 -2
  12. package/dist/components/{p-CsbRRVxH.js → p-Bp65xiCy.js} +2 -2
  13. package/dist/components/{p-CKguOE4o.js → p-C3ntRScd.js} +2 -2
  14. package/dist/components/{p-BlSr9psC.js → p-C4PyQibs.js} +2 -2
  15. package/dist/components/{p-5RD9qap_.js → p-CA4ZV5xR.js} +2 -2
  16. package/dist/components/{p-CG405xpf.js → p-CZY1H_tZ.js} +2 -2
  17. package/dist/components/{p-DABDOf4i.js → p-Cd3l3tXR.js} +2 -2
  18. package/dist/components/{p-DdG2-QwQ.js → p-CnPK9tlN.js} +2 -2
  19. package/dist/components/{p-BW08Z-5c.js → p-D1kz47jP.js} +2 -2
  20. package/dist/components/{p-B7iMXQWl.js → p-D7ibQkKs.js} +2 -2
  21. package/dist/components/{p-DJZNwn-w.js → p-DB5eYiPc.js} +2 -2
  22. package/dist/components/p-DTo2Itg9.js +2 -0
  23. package/dist/components/p-DTo2Itg9.js.map +1 -0
  24. package/dist/components/{p-Obm_ForQ.js → p-DcOQ-AL9.js} +2 -2
  25. package/dist/components/{p-DUuSvBmQ.js → p-DfSSSicA.js} +2 -2
  26. package/dist/components/{p-CRlfq-AL.js → p-EqRJl32n.js} +2 -2
  27. package/dist/components/{p-CocCQeEi.js → p-J05ZrIy8.js} +2 -2
  28. package/dist/components/{p-CeUOn6zh.js → p-_46rt1sK.js} +2 -2
  29. package/dist/components/{p-C0Z37bUn.js → p-fZNu4CkP.js} +2 -2
  30. package/dist/components/{p-bROQezlS.js → p-jd_qrwk9.js} +2 -2
  31. package/dist/components/{p-DES0wbqs.js → p-l7KxEsrG.js} +2 -2
  32. package/dist/components/smoothly-app-demo.js +1 -1
  33. package/dist/components/smoothly-button-demo-standard.js +1 -1
  34. package/dist/components/smoothly-button-demo.js +1 -1
  35. package/dist/components/smoothly-calendar.js +1 -1
  36. package/dist/components/smoothly-form-demo-all.js +1 -1
  37. package/dist/components/smoothly-form-demo-controlled.js +1 -1
  38. package/dist/components/smoothly-form-demo-date-range.js +1 -1
  39. package/dist/components/smoothly-form-demo-date.js +1 -1
  40. package/dist/components/smoothly-form-demo-pet.js +1 -1
  41. package/dist/components/smoothly-form-demo-schedule.js +1 -1
  42. package/dist/components/smoothly-form-demo-transparent.js +1 -1
  43. package/dist/components/smoothly-form-demo-typed.js +1 -1
  44. package/dist/components/smoothly-form-demo.js +1 -1
  45. package/dist/components/smoothly-icon-demo.js +1 -1
  46. package/dist/components/smoothly-input-checkbox-demo.js +1 -1
  47. package/dist/components/smoothly-input-date-demo.js +1 -1
  48. package/dist/components/smoothly-input-date-range.js +1 -1
  49. package/dist/components/smoothly-input-date-time.js +1 -1
  50. package/dist/components/smoothly-input-date.js +1 -1
  51. package/dist/components/smoothly-input-demo-standard.js +1 -1
  52. package/dist/components/smoothly-input-demo-user-input.js +1 -1
  53. package/dist/components/smoothly-input-demo.js +1 -1
  54. package/dist/components/smoothly-input-month.js +1 -1
  55. package/dist/components/smoothly-input-select.js +1 -1
  56. package/dist/components/smoothly-theme-demo.js +1 -1
  57. package/dist/components/smoothly-theme-picker.js +1 -1
  58. package/dist/esm/smoothly-app_99.entry.js +9 -4
  59. package/dist/esm/smoothly-app_99.entry.js.map +1 -1
  60. package/dist/smoothly/{p-bf6726da.entry.js → p-53cbd170.entry.js} +2 -2
  61. package/dist/smoothly/p-53cbd170.entry.js.map +1 -0
  62. package/dist/smoothly/smoothly.esm.js +1 -1
  63. package/dist/types/components/input/select/menu.d.ts +1 -0
  64. package/package.json +1 -1
  65. package/dist/components/p-Bd-a9CG1.js +0 -2
  66. package/dist/components/p-Bd-a9CG1.js.map +0 -1
  67. package/dist/smoothly/p-bf6726da.entry.js.map +0 -1
  68. /package/dist/components/{p-DxMW5Du7.js.map → p-B1agr2Cu.js.map} +0 -0
  69. /package/dist/components/{p-BoVqzcqA.js.map → p-B4ZWPf6K.js.map} +0 -0
  70. /package/dist/components/{p-CRgTWhgN.js.map → p-B8xGVFme.js.map} +0 -0
  71. /package/dist/components/{p-DilrpZI6.js.map → p-BOgkCDpz.js.map} +0 -0
  72. /package/dist/components/{p-C5SROPcr.js.map → p-BiRi-ZIu.js.map} +0 -0
  73. /package/dist/components/{p-CsbRRVxH.js.map → p-Bp65xiCy.js.map} +0 -0
  74. /package/dist/components/{p-CKguOE4o.js.map → p-C3ntRScd.js.map} +0 -0
  75. /package/dist/components/{p-BlSr9psC.js.map → p-C4PyQibs.js.map} +0 -0
  76. /package/dist/components/{p-5RD9qap_.js.map → p-CA4ZV5xR.js.map} +0 -0
  77. /package/dist/components/{p-CG405xpf.js.map → p-CZY1H_tZ.js.map} +0 -0
  78. /package/dist/components/{p-DABDOf4i.js.map → p-Cd3l3tXR.js.map} +0 -0
  79. /package/dist/components/{p-DdG2-QwQ.js.map → p-CnPK9tlN.js.map} +0 -0
  80. /package/dist/components/{p-BW08Z-5c.js.map → p-D1kz47jP.js.map} +0 -0
  81. /package/dist/components/{p-B7iMXQWl.js.map → p-D7ibQkKs.js.map} +0 -0
  82. /package/dist/components/{p-DJZNwn-w.js.map → p-DB5eYiPc.js.map} +0 -0
  83. /package/dist/components/{p-Obm_ForQ.js.map → p-DcOQ-AL9.js.map} +0 -0
  84. /package/dist/components/{p-DUuSvBmQ.js.map → p-DfSSSicA.js.map} +0 -0
  85. /package/dist/components/{p-CRlfq-AL.js.map → p-EqRJl32n.js.map} +0 -0
  86. /package/dist/components/{p-CocCQeEi.js.map → p-J05ZrIy8.js.map} +0 -0
  87. /package/dist/components/{p-CeUOn6zh.js.map → p-_46rt1sK.js.map} +0 -0
  88. /package/dist/components/{p-C0Z37bUn.js.map → p-fZNu4CkP.js.map} +0 -0
  89. /package/dist/components/{p-bROQezlS.js.map → p-jd_qrwk9.js.map} +0 -0
  90. /package/dist/components/{p-DES0wbqs.js.map → p-l7KxEsrG.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{p as e,H as o,h as t,d as a,t as s}from"./p-BsZrGTcp.js";import{d as m}from"./p-mmAi00ak.js";import{d as l}from"./p-Cl8L61mt.js";import{d as c}from"./p-CN3iME9d.js";import{d as i}from"./p-DG2pfnCV.js";import{d}from"./p-uFR5K4vd.js";import{d as f}from"./p-DvZK__s-.js";import{d as b}from"./p-F8qX8ZuL.js";import{d as r}from"./p-BLDkKrD6.js";import{d as n}from"./p-DFSiKg4M.js";import{d as y}from"./p-BWF43Ktc.js";import{d as p}from"./p-BAMxyPpe.js";import{d as u}from"./p-e3dhSqSH.js";import{d as h}from"./p-BkrgS2Eo.js";import{d as k}from"./p-CXd0RCW9.js";import{d as j}from"./p-BR6cMQkb.js";import{d as g}from"./p-CcJ_7PQR.js";import{d as v}from"./p-CvhP-Vls.js";import{d as E}from"./p-WyNQ9SZM.js";import{d as x}from"./p-CMhSJk_G.js";import{d as C}from"./p-Bd-a9CG1.js";import{d as S}from"./p-C3bp3FF4.js";import{d as F}from"./p-DtGUtK97.js";import{d as P}from"./p-MWZzvkuh.js";import{d as z}from"./p-D6t9mpY2.js";const D=e(class e extends o{constructor(e){super();if(e!==false){this.__registerHost()}}render(){return t(a,{key:"2b2e779dc35f9f35173515a6db59425654d7446a"},t("h2",{key:"b2423e5f45a6841b6fedcb7db17626ed192ee15d"},"All inputs"),t("smoothly-form",{key:"ac6fc721d22456edb5104ba9553c423d6f8bdebe",looks:"grid",type:"create",readonly:true,action:"https://api.toiletapi.com/upload/6b12fd2f-e896-46f9-b38f-25cf42cee4b4",onSmoothlyFormSubmit:e=>{Object.entries(e.detail.value).forEach((([e,o])=>console.log(e,o)))}},t("smoothly-input",{key:"4ec033bb9d51a7edc81cce2a1fde55bd21458318",readonly:true,name:"First Name",value:"John"},"First name"),t("smoothly-input",{key:"8d6abee797b1c9b60efeb068c828453174401012",showLabel:false,name:"Last name",value:"Doe"},"Last name",t("smoothly-input-clear",{key:"8caeac3cbd2290eaeeda549aea083d4499b960c5",size:"icon",slot:"end"})),t("smoothly-input",{key:"9a22277ed064a84b98a8c68c5f176758735748f0",type:"phone",name:"Phone",value:"777888999"},"Phone",t("smoothly-input-reset",{key:"2b45ff8ceaf71289d350e102d53123dc1c82600f",size:"icon",slot:"end"})),t("smoothly-input-radio",{key:"15856b48204c21b5f7318df22130e17aa3e14e8d",clearable:true,name:"radioFirstInput"},t("label",{key:"c94b6e0c185c8ab4325161a6e4249863017e5eb2",slot:"label"},"Clearable"),t("smoothly-input-radio-item",{key:"e978bde5ec519ab872eac3fb2a7d75b493099f31",value:"first"},"Label 1"),t("smoothly-input-radio-item",{key:"3c30fd0d9b549f93c912759f8329570db377df79",selected:true,value:"second"},"Label 2"),t("smoothly-input-radio-item",{key:"2f3f773cade1c39fa2a121b24ba2778a42d9a9b0",value:"third"},"Label 3")),t("smoothly-input-color",{key:"f1e0b0b1e759c85c5de1f3a8af9818b41c692bdb",name:"color"},"Color"),t("smoothly-input-select",{key:"7e1069ff0515224e17145539afefec11979ed88c",multiple:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},t("label",{key:"c42749acb44e6e7db99f4e7981f20ad0c09f1694",slot:"label"},"Month multiple select"),t("smoothly-item",{key:"fdd0c90294bdf50d77ccf187777fdd804760b8ac",value:"1"},"January"),t("smoothly-item",{key:"4f0c9d90f6909eaacccd5d385e317832f5a8b213",value:"2"},"February"),t("smoothly-item",{key:"7779ea4af1f17cb48ef0249b7857262deb6c485d",value:"3"},"March"),t("smoothly-item",{key:"5f15c3d32240bfb7c3b8d0a61f90599697b8e2a0",value:"4"},"April"),t("smoothly-item",{key:"0952c95b2cf623f5573d70b5fa39b1c1ce008f16",value:"5"},"May"),t("smoothly-item",{key:"1352e9245e39341d99d1bc8d051691b6b70dac37",value:"6"},"June"),t("smoothly-item",{key:"7eddedff608a9148cb2b9c17f23ac2108b2190fd",value:"7"},"July"),t("smoothly-item",{key:"627e81c5c7ddd5e1230b6eead20ac7932edbff9a",value:"8"},"August"),t("smoothly-item",{key:"587bcf666e0bc92c14f5665f975563f06a419bac",value:"9"},"September"),t("smoothly-item",{key:"896f05e2b88d7613cbc7f21b2aa4c58f1ae3938d",value:"10"},"October"),t("smoothly-item",{key:"fb539afa5edd3fe8391df5fc9d63fcb84940512c",value:"11"},"November"),t("smoothly-item",{key:"959e9af2c479a299431f302041649bd86f5db331",value:"12"},"December")),t("smoothly-input-select",{key:"64e83fb7dba19c8c21b5697eade0c7c5404d330c",name:"select-icon",clearable:false,showSelected:false},t("smoothly-item",{key:"b1a055ab1c73f28e0b49e626561aeff83efb124b",value:"folder",selected:true},t("smoothly-icon",{key:"9ba931c9dd28c9f88168f5ab94fd80bc6f7f6bc0",size:"small",name:"folder-outline"})),t("smoothly-item",{key:"acd791714a16504b5dc6a56f2fbfc89cf1ef4600",value:"camera"},t("smoothly-icon",{key:"d65e7beb3c74941bf494769126124ef79ce800d0",size:"small",name:"camera-outline"}))),t("smoothly-input-checkbox",{key:"d6f2f199daf447bb0992ca8839b89e4e14166846",name:"checkbox"},"Check the box"),t("smoothly-input-checkbox",{key:"79885d84642626f7cba6d348d0044f2c8037007e",name:"checkbox2",checked:true},"Check the box 2"),t("smoothly-input-range",{key:"7e791279c3b1bd2898d4c5e9e35ef9df76aa14cf",step:1,name:"range3",value:20,label:"Range"}),t("smoothly-input",{key:"f7b07cef9882952dc91be6484c04ba459ef5db62",name:"pets.0.name"},"First Pet's Name"),t("smoothly-input-range",{key:"44b404105c6d9aa19c7f14ac529e7b8ab3f964e9",name:"pets.0.age",max:100,step:1,label:"First Pet's Age"}),t("smoothly-input",{key:"aca9bc7aebd243f8e82158d1c60b7a69886e9a02",name:"pets.1.name"},"Second Pet's Name"),t("smoothly-input-range",{key:"674b16d94949bcbd3fd4980b0b262ba580efbd5b",name:"pets.1.age",max:100,step:1,label:"Second Pet's Age"}),t("smoothly-input",{key:"b25175ffa941b70d606a66db0f97e61547faf5b9",name:"pets.2.name"},"Third Pet's Name"),t("smoothly-input-range",{key:"0113d466fc09afc4734a65500cdc20b06267d77d",name:"pets.2.age",max:100,step:1,label:"Third Pet's Age"}),t("smoothly-input-range",{key:"d06183dd7731f6a70070ff0d823fb18ad8e4a10f",dual:true,name:"dualRange",min:0,max:100,step:1,label:"Dual Range"}),t("smoothly-input-file",{key:"ed5cf91c1db69c748cf52d4a99601fc2ddd675eb",name:"profile",placeholder:"Click or drag your profile picture here..."},t("span",{key:"f72fba530a1ee1d6f6a021544863dbb892f5a955",slot:"label"},"Profile"),t("smoothly-icon",{key:"dae1cc212fb3ea87ec62ac7e40c7d489bcb5cb1d",slot:"button",name:"person-circle-outline",size:"tiny",fill:"default"})),t("smoothly-input",{key:"0e9e8dc38f055440bba351cb5b7c3186d480f661",type:"duration",name:"duration",value:{}},"Duration"),t("smoothly-input-clear",{key:"ce7946c654f4a4cef855455a94311b08eee47108",fill:"default",type:"form",color:"warning",slot:"clear",size:"icon",shape:"rounded"}),t("smoothly-input-edit",{key:"c77b9febf666fac99980b868327a3a03946edb1a",fill:"default",type:"form",color:"tertiary",slot:"edit",size:"icon",shape:"rounded"}),t("smoothly-input-reset",{key:"d1597484a38571db597eecca554f706f484b8d08",fill:"default",type:"form",color:"warning",slot:"reset",size:"icon",shape:"rounded"}),t("smoothly-input-submit",{key:"0fb965b190a21ff54bb69a34b41bf8b264b06b81",delete:true,slot:"delete",color:"danger",size:"icon",shape:"rounded"}),t("smoothly-input-submit",{key:"2003e45ab3c0fa5301cbbc39717b9c2dd3b74af5",fill:"default",color:"success",slot:"submit",size:"icon",shape:"rounded"})))}},[2,"smoothly-form-demo-all"]);function M(){if(typeof customElements==="undefined"){return}const e=["smoothly-form-demo-all","smoothly-button","smoothly-button-confirm","smoothly-display","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-form","smoothly-icon","smoothly-input","smoothly-input-checkbox","smoothly-input-clear","smoothly-input-color","smoothly-input-edit","smoothly-input-file","smoothly-input-radio","smoothly-input-radio-item","smoothly-input-range","smoothly-input-reset","smoothly-input-select","smoothly-input-submit","smoothly-item","smoothly-spinner","smoothly-toggle-switch"];e.forEach((e=>{switch(e){case"smoothly-form-demo-all":if(!customElements.get(s(e))){customElements.define(s(e),D)}break;case"smoothly-button":if(!customElements.get(s(e))){m()}break;case"smoothly-button-confirm":if(!customElements.get(s(e))){l()}break;case"smoothly-display":if(!customElements.get(s(e))){c()}break;case"smoothly-display-json":if(!customElements.get(s(e))){i()}break;case"smoothly-display-json-object":if(!customElements.get(s(e))){d()}break;case"smoothly-display-json-primitive":if(!customElements.get(s(e))){f()}break;case"smoothly-display-json-record-key":if(!customElements.get(s(e))){b()}break;case"smoothly-form":if(!customElements.get(s(e))){r()}break;case"smoothly-icon":if(!customElements.get(s(e))){n()}break;case"smoothly-input":if(!customElements.get(s(e))){y()}break;case"smoothly-input-checkbox":if(!customElements.get(s(e))){p()}break;case"smoothly-input-clear":if(!customElements.get(s(e))){u()}break;case"smoothly-input-color":if(!customElements.get(s(e))){h()}break;case"smoothly-input-edit":if(!customElements.get(s(e))){k()}break;case"smoothly-input-file":if(!customElements.get(s(e))){j()}break;case"smoothly-input-radio":if(!customElements.get(s(e))){g()}break;case"smoothly-input-radio-item":if(!customElements.get(s(e))){v()}break;case"smoothly-input-range":if(!customElements.get(s(e))){E()}break;case"smoothly-input-reset":if(!customElements.get(s(e))){x()}break;case"smoothly-input-select":if(!customElements.get(s(e))){C()}break;case"smoothly-input-submit":if(!customElements.get(s(e))){S()}break;case"smoothly-item":if(!customElements.get(s(e))){F()}break;case"smoothly-spinner":if(!customElements.get(s(e))){P()}break;case"smoothly-toggle-switch":if(!customElements.get(s(e))){z()}break}}))}M();export{D as S,M as d};
2
- //# sourceMappingURL=p-Obm_ForQ.js.map
1
+ import{p as e,H as o,h as t,d as a,t as s}from"./p-BsZrGTcp.js";import{d as m}from"./p-mmAi00ak.js";import{d as l}from"./p-Cl8L61mt.js";import{d as c}from"./p-CN3iME9d.js";import{d as i}from"./p-DG2pfnCV.js";import{d as f}from"./p-uFR5K4vd.js";import{d}from"./p-DvZK__s-.js";import{d as b}from"./p-F8qX8ZuL.js";import{d as r}from"./p-BLDkKrD6.js";import{d as n}from"./p-DFSiKg4M.js";import{d as y}from"./p-BWF43Ktc.js";import{d as p}from"./p-BAMxyPpe.js";import{d as u}from"./p-e3dhSqSH.js";import{d as h}from"./p-BkrgS2Eo.js";import{d as k}from"./p-CXd0RCW9.js";import{d as j}from"./p-BR6cMQkb.js";import{d as g}from"./p-CcJ_7PQR.js";import{d as v}from"./p-CvhP-Vls.js";import{d as E}from"./p-WyNQ9SZM.js";import{d as x}from"./p-CMhSJk_G.js";import{d as C}from"./p-DTo2Itg9.js";import{d as S}from"./p-C3bp3FF4.js";import{d as F}from"./p-DtGUtK97.js";import{d as D}from"./p-MWZzvkuh.js";import{d as P}from"./p-D6t9mpY2.js";const z=e(class e extends o{constructor(e){super();if(e!==false){this.__registerHost()}}render(){return t(a,{key:"2b2e779dc35f9f35173515a6db59425654d7446a"},t("h2",{key:"b2423e5f45a6841b6fedcb7db17626ed192ee15d"},"All inputs"),t("smoothly-form",{key:"ac6fc721d22456edb5104ba9553c423d6f8bdebe",looks:"grid",type:"create",readonly:true,action:"https://api.toiletapi.com/upload/6b12fd2f-e896-46f9-b38f-25cf42cee4b4",onSmoothlyFormSubmit:e=>{Object.entries(e.detail.value).forEach((([e,o])=>console.log(e,o)))}},t("smoothly-input",{key:"4ec033bb9d51a7edc81cce2a1fde55bd21458318",readonly:true,name:"First Name",value:"John"},"First name"),t("smoothly-input",{key:"8d6abee797b1c9b60efeb068c828453174401012",showLabel:false,name:"Last name",value:"Doe"},"Last name",t("smoothly-input-clear",{key:"8caeac3cbd2290eaeeda549aea083d4499b960c5",size:"icon",slot:"end"})),t("smoothly-input",{key:"9a22277ed064a84b98a8c68c5f176758735748f0",type:"phone",name:"Phone",value:"777888999"},"Phone",t("smoothly-input-reset",{key:"2b45ff8ceaf71289d350e102d53123dc1c82600f",size:"icon",slot:"end"})),t("smoothly-input-radio",{key:"15856b48204c21b5f7318df22130e17aa3e14e8d",clearable:true,name:"radioFirstInput"},t("label",{key:"c94b6e0c185c8ab4325161a6e4249863017e5eb2",slot:"label"},"Clearable"),t("smoothly-input-radio-item",{key:"e978bde5ec519ab872eac3fb2a7d75b493099f31",value:"first"},"Label 1"),t("smoothly-input-radio-item",{key:"3c30fd0d9b549f93c912759f8329570db377df79",selected:true,value:"second"},"Label 2"),t("smoothly-input-radio-item",{key:"2f3f773cade1c39fa2a121b24ba2778a42d9a9b0",value:"third"},"Label 3")),t("smoothly-input-color",{key:"f1e0b0b1e759c85c5de1f3a8af9818b41c692bdb",name:"color"},"Color"),t("smoothly-input-select",{key:"7e1069ff0515224e17145539afefec11979ed88c",multiple:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},t("label",{key:"c42749acb44e6e7db99f4e7981f20ad0c09f1694",slot:"label"},"Month multiple select"),t("smoothly-item",{key:"fdd0c90294bdf50d77ccf187777fdd804760b8ac",value:"1"},"January"),t("smoothly-item",{key:"4f0c9d90f6909eaacccd5d385e317832f5a8b213",value:"2"},"February"),t("smoothly-item",{key:"7779ea4af1f17cb48ef0249b7857262deb6c485d",value:"3"},"March"),t("smoothly-item",{key:"5f15c3d32240bfb7c3b8d0a61f90599697b8e2a0",value:"4"},"April"),t("smoothly-item",{key:"0952c95b2cf623f5573d70b5fa39b1c1ce008f16",value:"5"},"May"),t("smoothly-item",{key:"1352e9245e39341d99d1bc8d051691b6b70dac37",value:"6"},"June"),t("smoothly-item",{key:"7eddedff608a9148cb2b9c17f23ac2108b2190fd",value:"7"},"July"),t("smoothly-item",{key:"627e81c5c7ddd5e1230b6eead20ac7932edbff9a",value:"8"},"August"),t("smoothly-item",{key:"587bcf666e0bc92c14f5665f975563f06a419bac",value:"9"},"September"),t("smoothly-item",{key:"896f05e2b88d7613cbc7f21b2aa4c58f1ae3938d",value:"10"},"October"),t("smoothly-item",{key:"fb539afa5edd3fe8391df5fc9d63fcb84940512c",value:"11"},"November"),t("smoothly-item",{key:"959e9af2c479a299431f302041649bd86f5db331",value:"12"},"December")),t("smoothly-input-select",{key:"64e83fb7dba19c8c21b5697eade0c7c5404d330c",name:"select-icon",clearable:false,showSelected:false},t("smoothly-item",{key:"b1a055ab1c73f28e0b49e626561aeff83efb124b",value:"folder",selected:true},t("smoothly-icon",{key:"9ba931c9dd28c9f88168f5ab94fd80bc6f7f6bc0",size:"small",name:"folder-outline"})),t("smoothly-item",{key:"acd791714a16504b5dc6a56f2fbfc89cf1ef4600",value:"camera"},t("smoothly-icon",{key:"d65e7beb3c74941bf494769126124ef79ce800d0",size:"small",name:"camera-outline"}))),t("smoothly-input-checkbox",{key:"d6f2f199daf447bb0992ca8839b89e4e14166846",name:"checkbox"},"Check the box"),t("smoothly-input-checkbox",{key:"79885d84642626f7cba6d348d0044f2c8037007e",name:"checkbox2",checked:true},"Check the box 2"),t("smoothly-input-range",{key:"7e791279c3b1bd2898d4c5e9e35ef9df76aa14cf",step:1,name:"range3",value:20,label:"Range"}),t("smoothly-input",{key:"f7b07cef9882952dc91be6484c04ba459ef5db62",name:"pets.0.name"},"First Pet's Name"),t("smoothly-input-range",{key:"44b404105c6d9aa19c7f14ac529e7b8ab3f964e9",name:"pets.0.age",max:100,step:1,label:"First Pet's Age"}),t("smoothly-input",{key:"aca9bc7aebd243f8e82158d1c60b7a69886e9a02",name:"pets.1.name"},"Second Pet's Name"),t("smoothly-input-range",{key:"674b16d94949bcbd3fd4980b0b262ba580efbd5b",name:"pets.1.age",max:100,step:1,label:"Second Pet's Age"}),t("smoothly-input",{key:"b25175ffa941b70d606a66db0f97e61547faf5b9",name:"pets.2.name"},"Third Pet's Name"),t("smoothly-input-range",{key:"0113d466fc09afc4734a65500cdc20b06267d77d",name:"pets.2.age",max:100,step:1,label:"Third Pet's Age"}),t("smoothly-input-range",{key:"d06183dd7731f6a70070ff0d823fb18ad8e4a10f",dual:true,name:"dualRange",min:0,max:100,step:1,label:"Dual Range"}),t("smoothly-input-file",{key:"ed5cf91c1db69c748cf52d4a99601fc2ddd675eb",name:"profile",placeholder:"Click or drag your profile picture here..."},t("span",{key:"f72fba530a1ee1d6f6a021544863dbb892f5a955",slot:"label"},"Profile"),t("smoothly-icon",{key:"dae1cc212fb3ea87ec62ac7e40c7d489bcb5cb1d",slot:"button",name:"person-circle-outline",size:"tiny",fill:"default"})),t("smoothly-input",{key:"0e9e8dc38f055440bba351cb5b7c3186d480f661",type:"duration",name:"duration",value:{}},"Duration"),t("smoothly-input-clear",{key:"ce7946c654f4a4cef855455a94311b08eee47108",fill:"default",type:"form",color:"warning",slot:"clear",size:"icon",shape:"rounded"}),t("smoothly-input-edit",{key:"c77b9febf666fac99980b868327a3a03946edb1a",fill:"default",type:"form",color:"tertiary",slot:"edit",size:"icon",shape:"rounded"}),t("smoothly-input-reset",{key:"d1597484a38571db597eecca554f706f484b8d08",fill:"default",type:"form",color:"warning",slot:"reset",size:"icon",shape:"rounded"}),t("smoothly-input-submit",{key:"0fb965b190a21ff54bb69a34b41bf8b264b06b81",delete:true,slot:"delete",color:"danger",size:"icon",shape:"rounded"}),t("smoothly-input-submit",{key:"2003e45ab3c0fa5301cbbc39717b9c2dd3b74af5",fill:"default",color:"success",slot:"submit",size:"icon",shape:"rounded"})))}},[2,"smoothly-form-demo-all"]);function M(){if(typeof customElements==="undefined"){return}const e=["smoothly-form-demo-all","smoothly-button","smoothly-button-confirm","smoothly-display","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-form","smoothly-icon","smoothly-input","smoothly-input-checkbox","smoothly-input-clear","smoothly-input-color","smoothly-input-edit","smoothly-input-file","smoothly-input-radio","smoothly-input-radio-item","smoothly-input-range","smoothly-input-reset","smoothly-input-select","smoothly-input-submit","smoothly-item","smoothly-spinner","smoothly-toggle-switch"];e.forEach((e=>{switch(e){case"smoothly-form-demo-all":if(!customElements.get(s(e))){customElements.define(s(e),z)}break;case"smoothly-button":if(!customElements.get(s(e))){m()}break;case"smoothly-button-confirm":if(!customElements.get(s(e))){l()}break;case"smoothly-display":if(!customElements.get(s(e))){c()}break;case"smoothly-display-json":if(!customElements.get(s(e))){i()}break;case"smoothly-display-json-object":if(!customElements.get(s(e))){f()}break;case"smoothly-display-json-primitive":if(!customElements.get(s(e))){d()}break;case"smoothly-display-json-record-key":if(!customElements.get(s(e))){b()}break;case"smoothly-form":if(!customElements.get(s(e))){r()}break;case"smoothly-icon":if(!customElements.get(s(e))){n()}break;case"smoothly-input":if(!customElements.get(s(e))){y()}break;case"smoothly-input-checkbox":if(!customElements.get(s(e))){p()}break;case"smoothly-input-clear":if(!customElements.get(s(e))){u()}break;case"smoothly-input-color":if(!customElements.get(s(e))){h()}break;case"smoothly-input-edit":if(!customElements.get(s(e))){k()}break;case"smoothly-input-file":if(!customElements.get(s(e))){j()}break;case"smoothly-input-radio":if(!customElements.get(s(e))){g()}break;case"smoothly-input-radio-item":if(!customElements.get(s(e))){v()}break;case"smoothly-input-range":if(!customElements.get(s(e))){E()}break;case"smoothly-input-reset":if(!customElements.get(s(e))){x()}break;case"smoothly-input-select":if(!customElements.get(s(e))){C()}break;case"smoothly-input-submit":if(!customElements.get(s(e))){S()}break;case"smoothly-item":if(!customElements.get(s(e))){F()}break;case"smoothly-spinner":if(!customElements.get(s(e))){D()}break;case"smoothly-toggle-switch":if(!customElements.get(s(e))){P()}break}}))}M();export{z as S,M as d};
2
+ //# sourceMappingURL=p-DcOQ-AL9.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as o,h as t,d as c,t as a}from"./p-BsZrGTcp.js";import{d as l}from"./p-CCwzp3Kg.js";import{d as s}from"./p-mmAi00ak.js";import{d}from"./p-Cl8L61mt.js";import{d as f}from"./p-bROQezlS.js";import{d as b}from"./p-BLDkKrD6.js";import{d as i}from"./p-DFSiKg4M.js";import{d as n}from"./p-BWF43Ktc.js";import{d as m}from"./p-BAMxyPpe.js";import{d as r}from"./p-e3dhSqSH.js";import{d as y}from"./p-CcJ_7PQR.js";import{d as h}from"./p-CvhP-Vls.js";import{d as k}from"./p-Bd-a9CG1.js";import{d as u}from"./p-DtGUtK97.js";import{d as p}from"./p-MWZzvkuh.js";import{d as g}from"./p-D6t9mpY2.js";import{d as z}from"./p-DNSImvvt.js";const C=()=>`smoothly-button-demo{display:block;margin:1rem}smoothly-button-demo>section>div{display:flex;align-items:center}smoothly-button-demo smoothly-button{margin:.2em .5em}`;const w=e(class e extends o{constructor(e){super();if(e!==false){this.__registerHost()}}render(){return t(c,{key:"41fbe591e1a0c9ab6d1d73335a9b9f4a5a3c4d93"},t("section",{key:"59b6da9df3532752d3e5dcf9763c527d165bcf1f"},t("smoothly-button-demo-standard",{key:"27bf9cd1746a1718bf887dcef5d79230b01318ff"})),t("section",{key:"e7e87e4c84c0e8df43d56f217196e27a9bb5670e"},t("h4",{key:"8bf5cff46e4146474a9b91bfe8b83db89dd13c3a"},"Confirm button (two clicks)"),t("div",{key:"3c341489427dbf76dc4e9a200c23f58174696591"},t("smoothly-button-confirm",{key:"75793866c6111afbd5aeadf1bc6251f1efa9d592",name:"confirm",shape:"rounded",color:"danger",size:"large"},"Delete"),t("smoothly-button-confirm",{key:"14bdceddb01044ae6979af4a0c8efe0970e81e3d",name:"confirm-icon",shape:"rounded",color:"success",size:"icon"},t("smoothly-icon",{key:"33058b7d3638a0ca28aee23a5fb238d60356b16d",name:"checkmark-outline",size:"tiny"})),t("smoothly-button-confirm",{key:"d7d306d14262d7b43c5c37af91ffb79f0be82b14",name:"confirm-icon",shape:"rounded",color:"danger",size:"icon",fill:"outline"},t("smoothly-icon",{key:"7ea300edde779ca34db97bb2fe60f0051b1e366d",name:"trash-outline",size:"tiny",fill:"outline"}))),t("smoothly-toggle-switch-demo",{key:"c6e8b4c78605733c73bab3c1aa8ae5e770cc14e4"}),t("h4",{key:"8e92524469b1b4e0a59d14907e8df2f4e7680887"},"Links with icons"),t("smoothly-button",{key:"4ca461c47396b88dd9c276248d2fb425255e26f8",type:"link"},t("smoothly-icon",{key:"07c089e06c38afc5d0abe83491c38716486225c6",name:"checkmark-circle",slot:"start"}),"type link"),t("smoothly-button",{key:"b1c765d706ee22acb4368b8a67b1faddb591581a",type:"button",color:"warning",fill:"default"},t("smoothly-icon",{key:"d3188cb32fd389fb88a3a1e760fe33867265c5fc",name:"call",slot:"start"}),t("a",{key:"9bdf562304a25ce3024ca58cb53fff7c4b04acb6",href:"https://google.com"},"link")),t("smoothly-button",{key:"5da225cc3dfd1638a54fc9ce533cd038cccc808e",link:"https://google.com",type:"link"},t("smoothly-icon",{key:"a2417e1fbdff1b064e1cc3f61c4fc1615291e44d",name:"arrow-forward",slot:"end"}),"link + type link"),t("h4",{key:"54a1da928e2c9c48638a12dd3768c001ba38a77f"},"Size and Color test"),t("smoothly-button",{key:"bce9b7538f39f17b0377f723310eadbad511ed80",color:"primary",fill:"solid",size:"small",shape:"rounded"},"Color Primary + Small"),t("smoothly-button",{key:"210799c91bfe94fb54b3434fd99e67075cc91b43",color:"secondary",fill:"solid",shape:"rounded"},"Color Secondary + Default"),t("smoothly-button",{key:"374856692cefcb96deb1a38758eb4fec6f7808ab",color:"warning",fill:"solid",size:"large"},"Color Warning + Large"),t("smoothly-button",{key:"e807e6793fb358e6ced92caecb1d0feab2f011c7",color:"danger",fill:"solid",size:"small",shape:"rounded"},"Color Danger + Small"),t("smoothly-button",{key:"9bcde023dd0e12a84835bdd3d0c93d7602485246",color:"success",fill:"solid",size:"small",shape:"rounded"},"Color Success + Small"),t("smoothly-button",{key:"f98fb61b19dfbc7bbf29a740e7a5ae1997861c80",color:"tertiary",fill:"solid",size:"small",shape:"rounded"},"Color Tertiary + Small"),t("smoothly-button",{key:"6a46ea925f111b8c1d8b4510577d57f10e49ed1e",color:"dark",fill:"solid",size:"small",shape:"rounded"},"Color Dark + Small"),t("smoothly-button",{key:"3ced819c355f03ef775ace7ccfbb0206bbc07b6a",color:"medium",fill:"solid",size:"small",shape:"rounded"},"Color Medium + Small"),t("smoothly-button",{key:"3257cef08250f67f8ec2666130e3ea0645a8e2c7",color:"light",fill:"solid",size:"small",shape:"rounded"},"Color Light + Small"),t("h4",{key:"0a0800062a9f545328408b50f91d9f080cdee158"},"Expand examples"),t("smoothly-button",{key:"02fabfb6c3583fb8853d82c4b97245428253774a",color:"secondary",fill:"solid",expand:"full"},"Color Secondary + Default"),t("smoothly-button",{key:"51ddb0b657a2648909072cac84055478db97f95d",color:"warning",fill:"solid",expand:"block"},"Color Warning + Large"),t("h4",{key:"52624dee081a11c096585822d810cf4288059379"},"Fill examples"),t("div",{key:"2c1eeadd860b6115dd7fdd0b2f4f8538a564269a"},t("smoothly-button",{key:"9e5454cac152c3eaea53cb55f607ca32ab09ff62",shape:"rounded",color:"primary",fill:"solid"},t("smoothly-icon",{key:"188d4c19f60645acb41e0f47f4a96da2e544b8c0",name:"checkmark-circle",slot:"start"}),"Fill Solid"),t("smoothly-button",{key:"8587e3a0015b27248dd5b0cfa801e8abd962c5ab",shape:"rounded",color:"secondary",fill:"outline"},t("smoothly-icon",{key:"557848720b2df5e0425ba66f892b5bf29fa5ea2f",name:"checkmark-circle",slot:"start"}),"Fill Outline"),t("smoothly-button",{key:"bb9406a007325c258a6a7b1039fcb1665c0abd3a",shape:"rounded",color:"tertiary",fill:"clear"},t("smoothly-icon",{key:"ed23a5661e678f293cbfa5745d684e6b10dc8c1a",name:"checkmark-circle",slot:"start"}),"Fill Clear"),t("smoothly-button",{key:"910b4a12a963dc64747c0d37eac3ce437215982f",size:"icon",shape:"rounded",color:"success",fill:"solid"},t("smoothly-icon",{key:"f32e72f63b447d69655d51eb23fb23671132c34f",name:"basketball"}))),t("h4",{key:"13a6bf24881c6eb2c7753b6cc5a23dfe8c16f5bc"},'Buttons with Icon in "start"'),t("div",{key:"cc0e96b1435883957159795474f8cf7aead9586d"},t("smoothly-button",{key:"963d08b7ffe3533daa1a933ce66263616258f92b",shape:"rounded",fill:"solid",color:"warning"},t("smoothly-icon",{key:"6fd017cf57e5ebdf63078003e02d92c68c8f4af5",name:"checkmark-circle",slot:"start"}),"Check"),t("smoothly-button",{key:"0bfde99dba0e56974c4132d2ef6c727c9a2a809f",shape:"rounded",fill:"solid",color:"secondary"},t("smoothly-icon",{key:"5780d006fe5a007b68f17c537934ebae8fb23480",name:"basketball",slot:"start"}),"Check"),t("smoothly-button",{key:"00e418dec2de5f78e40f56a38bff2e66f0ea8744",shape:"rounded",fill:"solid",color:"success"},t("smoothly-icon",{key:"eed0a2bb3c839dd3d914dc0a07e1e3c51e3c5bf3",name:"call",slot:"start"}),"Check"),t("smoothly-button",{key:"7ccffbe4c12666ce4f167f0fdc9b6bc7078faeb0",size:"icon",fill:"solid",shape:"rounded",color:"success"},t("smoothly-icon",{key:"56531f0dd24f7c5bb0ae63fcf7b82935b60d24f2",name:"call"})),t("smoothly-button",{key:"8466fd4b388ad0e5411ba5f31975aaf6a1b0680b",size:"flexible",fill:"solid",color:"success"},t("smoothly-icon",{key:"1472f81c21140b5a8ee4408a947657cd673bd1dc",name:"airplane"}))),t("h4",{key:"0e2ac17f379dd54737037e4d3b32ad256ebf8494"},'Buttons with Icon in "end"'),t("smoothly-button",{key:"a4350f353ce14cb9adb6b362b0b11e527c0cd9fe",fill:"solid",color:"light"},"Go Forward",t("smoothly-icon",{key:"c8e56f3ab255349c872b991ec76de6c6ab878066",name:"arrow-forward",slot:"end"})),t("h4",{key:"4a318ff840e33a41e1afbdc2e328430ac4bbc830"},"Test for icon button"),t("div",{key:"9305973351f925768f74b64f7b790c92b1588839"},t("smoothly-button",{key:"da959f375b10df462b6bf8df9d5104dce89fb9d0",size:"icon",fill:"solid",shape:"rounded",color:"success"},t("smoothly-icon",{key:"141d5fa125a2a34220c4cf0320ec45ca3fe31139",name:"call"})),t("smoothly-button",{key:"0987067c106765e51df6f9586aa1d45d942ef125",size:"icon",shape:"rounded",color:"warning",fill:"solid"},t("smoothly-icon",{key:"5fa23e7a1d9b315af5354b55fc4eefd9835e0a44",name:"search-outline"})),t("smoothly-button",{key:"60e76fbb66064799f114cc841c813f9ee1d7d065",size:"icon",shape:"rounded",color:"secondary"},t("smoothly-icon",{key:"1ae4510d90d1b47baadee8f6ed7dd492066bd3e9",name:"checkmark-circle"}))),t("h4",{key:"fadbc9d0a253d68f24b030d2d52d73d5947d335a"},"Link examples"),t("div",{key:"8b4ced5d7bbb2e479073f04cfb98e7f98b41f01c"},t("smoothly-button",{key:"128369132e142d37361b6d640fde4d2743e145a7",type:"link"},"type link"),t("smoothly-button",{key:"b9f05aa9925ca88c1aa65f4e0b3040bed9d01e83",type:"button",fill:"clear"},t("a",{key:"9b565879faf7af07377103494a04b9c3c3a53c8a",href:"https://google.com"},"link")),t("smoothly-button",{key:"69355e4bbbf46fd49597bc3db62d31548d112f87",link:"https://google.com",type:"link"},"link + type link")),t("h4",{key:"dbc23f33d5d74c0147f658672f7a4fcfb166df9d"},"Disabled buttons"),t("div",{key:"0b6d087a8e7ca3a3c1b94159f126962b6c622b20"},t("smoothly-button",{key:"636c5d7b4ddfee2ca6b912b8c8f65e06b5a64136",disabled:true,fill:"solid",color:"secondary"},"Disabled"),t("smoothly-button",{key:"da4a2457eef26c077d603bd3482764ce357918ad",type:"link",link:"https://google.com",disabled:true},"Disabled link"))),t("smoothly-back-to-top",{key:"2906fd515608fe4a3c880755bbb9dfee63d94889"}))}static get style(){return C()}},[0,"smoothly-button-demo"]);function E(){if(typeof customElements==="undefined"){return}const e=["smoothly-button-demo","smoothly-back-to-top","smoothly-button","smoothly-button-confirm","smoothly-button-demo-standard","smoothly-form","smoothly-icon","smoothly-input","smoothly-input-checkbox","smoothly-input-clear","smoothly-input-radio","smoothly-input-radio-item","smoothly-input-select","smoothly-item","smoothly-spinner","smoothly-toggle-switch","smoothly-toggle-switch-demo"];e.forEach((e=>{switch(e){case"smoothly-button-demo":if(!customElements.get(a(e))){customElements.define(a(e),w)}break;case"smoothly-back-to-top":if(!customElements.get(a(e))){l()}break;case"smoothly-button":if(!customElements.get(a(e))){s()}break;case"smoothly-button-confirm":if(!customElements.get(a(e))){d()}break;case"smoothly-button-demo-standard":if(!customElements.get(a(e))){f()}break;case"smoothly-form":if(!customElements.get(a(e))){b()}break;case"smoothly-icon":if(!customElements.get(a(e))){i()}break;case"smoothly-input":if(!customElements.get(a(e))){n()}break;case"smoothly-input-checkbox":if(!customElements.get(a(e))){m()}break;case"smoothly-input-clear":if(!customElements.get(a(e))){r()}break;case"smoothly-input-radio":if(!customElements.get(a(e))){y()}break;case"smoothly-input-radio-item":if(!customElements.get(a(e))){h()}break;case"smoothly-input-select":if(!customElements.get(a(e))){k()}break;case"smoothly-item":if(!customElements.get(a(e))){u()}break;case"smoothly-spinner":if(!customElements.get(a(e))){p()}break;case"smoothly-toggle-switch":if(!customElements.get(a(e))){g()}break;case"smoothly-toggle-switch-demo":if(!customElements.get(a(e))){z()}break}}))}E();export{w as S,E as d};
2
- //# sourceMappingURL=p-DUuSvBmQ.js.map
1
+ import{p as e,H as o,h as t,d as c,t as a}from"./p-BsZrGTcp.js";import{d as l}from"./p-CCwzp3Kg.js";import{d as s}from"./p-mmAi00ak.js";import{d}from"./p-Cl8L61mt.js";import{d as f}from"./p-jd_qrwk9.js";import{d as b}from"./p-BLDkKrD6.js";import{d as i}from"./p-DFSiKg4M.js";import{d as n}from"./p-BWF43Ktc.js";import{d as m}from"./p-BAMxyPpe.js";import{d as r}from"./p-e3dhSqSH.js";import{d as y}from"./p-CcJ_7PQR.js";import{d as h}from"./p-CvhP-Vls.js";import{d as k}from"./p-DTo2Itg9.js";import{d as u}from"./p-DtGUtK97.js";import{d as p}from"./p-MWZzvkuh.js";import{d as g}from"./p-D6t9mpY2.js";import{d as w}from"./p-DNSImvvt.js";const z=()=>`smoothly-button-demo{display:block;margin:1rem}smoothly-button-demo>section>div{display:flex;align-items:center}smoothly-button-demo smoothly-button{margin:.2em .5em}`;const C=e(class e extends o{constructor(e){super();if(e!==false){this.__registerHost()}}render(){return t(c,{key:"41fbe591e1a0c9ab6d1d73335a9b9f4a5a3c4d93"},t("section",{key:"59b6da9df3532752d3e5dcf9763c527d165bcf1f"},t("smoothly-button-demo-standard",{key:"27bf9cd1746a1718bf887dcef5d79230b01318ff"})),t("section",{key:"e7e87e4c84c0e8df43d56f217196e27a9bb5670e"},t("h4",{key:"8bf5cff46e4146474a9b91bfe8b83db89dd13c3a"},"Confirm button (two clicks)"),t("div",{key:"3c341489427dbf76dc4e9a200c23f58174696591"},t("smoothly-button-confirm",{key:"75793866c6111afbd5aeadf1bc6251f1efa9d592",name:"confirm",shape:"rounded",color:"danger",size:"large"},"Delete"),t("smoothly-button-confirm",{key:"14bdceddb01044ae6979af4a0c8efe0970e81e3d",name:"confirm-icon",shape:"rounded",color:"success",size:"icon"},t("smoothly-icon",{key:"33058b7d3638a0ca28aee23a5fb238d60356b16d",name:"checkmark-outline",size:"tiny"})),t("smoothly-button-confirm",{key:"d7d306d14262d7b43c5c37af91ffb79f0be82b14",name:"confirm-icon",shape:"rounded",color:"danger",size:"icon",fill:"outline"},t("smoothly-icon",{key:"7ea300edde779ca34db97bb2fe60f0051b1e366d",name:"trash-outline",size:"tiny",fill:"outline"}))),t("smoothly-toggle-switch-demo",{key:"c6e8b4c78605733c73bab3c1aa8ae5e770cc14e4"}),t("h4",{key:"8e92524469b1b4e0a59d14907e8df2f4e7680887"},"Links with icons"),t("smoothly-button",{key:"4ca461c47396b88dd9c276248d2fb425255e26f8",type:"link"},t("smoothly-icon",{key:"07c089e06c38afc5d0abe83491c38716486225c6",name:"checkmark-circle",slot:"start"}),"type link"),t("smoothly-button",{key:"b1c765d706ee22acb4368b8a67b1faddb591581a",type:"button",color:"warning",fill:"default"},t("smoothly-icon",{key:"d3188cb32fd389fb88a3a1e760fe33867265c5fc",name:"call",slot:"start"}),t("a",{key:"9bdf562304a25ce3024ca58cb53fff7c4b04acb6",href:"https://google.com"},"link")),t("smoothly-button",{key:"5da225cc3dfd1638a54fc9ce533cd038cccc808e",link:"https://google.com",type:"link"},t("smoothly-icon",{key:"a2417e1fbdff1b064e1cc3f61c4fc1615291e44d",name:"arrow-forward",slot:"end"}),"link + type link"),t("h4",{key:"54a1da928e2c9c48638a12dd3768c001ba38a77f"},"Size and Color test"),t("smoothly-button",{key:"bce9b7538f39f17b0377f723310eadbad511ed80",color:"primary",fill:"solid",size:"small",shape:"rounded"},"Color Primary + Small"),t("smoothly-button",{key:"210799c91bfe94fb54b3434fd99e67075cc91b43",color:"secondary",fill:"solid",shape:"rounded"},"Color Secondary + Default"),t("smoothly-button",{key:"374856692cefcb96deb1a38758eb4fec6f7808ab",color:"warning",fill:"solid",size:"large"},"Color Warning + Large"),t("smoothly-button",{key:"e807e6793fb358e6ced92caecb1d0feab2f011c7",color:"danger",fill:"solid",size:"small",shape:"rounded"},"Color Danger + Small"),t("smoothly-button",{key:"9bcde023dd0e12a84835bdd3d0c93d7602485246",color:"success",fill:"solid",size:"small",shape:"rounded"},"Color Success + Small"),t("smoothly-button",{key:"f98fb61b19dfbc7bbf29a740e7a5ae1997861c80",color:"tertiary",fill:"solid",size:"small",shape:"rounded"},"Color Tertiary + Small"),t("smoothly-button",{key:"6a46ea925f111b8c1d8b4510577d57f10e49ed1e",color:"dark",fill:"solid",size:"small",shape:"rounded"},"Color Dark + Small"),t("smoothly-button",{key:"3ced819c355f03ef775ace7ccfbb0206bbc07b6a",color:"medium",fill:"solid",size:"small",shape:"rounded"},"Color Medium + Small"),t("smoothly-button",{key:"3257cef08250f67f8ec2666130e3ea0645a8e2c7",color:"light",fill:"solid",size:"small",shape:"rounded"},"Color Light + Small"),t("h4",{key:"0a0800062a9f545328408b50f91d9f080cdee158"},"Expand examples"),t("smoothly-button",{key:"02fabfb6c3583fb8853d82c4b97245428253774a",color:"secondary",fill:"solid",expand:"full"},"Color Secondary + Default"),t("smoothly-button",{key:"51ddb0b657a2648909072cac84055478db97f95d",color:"warning",fill:"solid",expand:"block"},"Color Warning + Large"),t("h4",{key:"52624dee081a11c096585822d810cf4288059379"},"Fill examples"),t("div",{key:"2c1eeadd860b6115dd7fdd0b2f4f8538a564269a"},t("smoothly-button",{key:"9e5454cac152c3eaea53cb55f607ca32ab09ff62",shape:"rounded",color:"primary",fill:"solid"},t("smoothly-icon",{key:"188d4c19f60645acb41e0f47f4a96da2e544b8c0",name:"checkmark-circle",slot:"start"}),"Fill Solid"),t("smoothly-button",{key:"8587e3a0015b27248dd5b0cfa801e8abd962c5ab",shape:"rounded",color:"secondary",fill:"outline"},t("smoothly-icon",{key:"557848720b2df5e0425ba66f892b5bf29fa5ea2f",name:"checkmark-circle",slot:"start"}),"Fill Outline"),t("smoothly-button",{key:"bb9406a007325c258a6a7b1039fcb1665c0abd3a",shape:"rounded",color:"tertiary",fill:"clear"},t("smoothly-icon",{key:"ed23a5661e678f293cbfa5745d684e6b10dc8c1a",name:"checkmark-circle",slot:"start"}),"Fill Clear"),t("smoothly-button",{key:"910b4a12a963dc64747c0d37eac3ce437215982f",size:"icon",shape:"rounded",color:"success",fill:"solid"},t("smoothly-icon",{key:"f32e72f63b447d69655d51eb23fb23671132c34f",name:"basketball"}))),t("h4",{key:"13a6bf24881c6eb2c7753b6cc5a23dfe8c16f5bc"},'Buttons with Icon in "start"'),t("div",{key:"cc0e96b1435883957159795474f8cf7aead9586d"},t("smoothly-button",{key:"963d08b7ffe3533daa1a933ce66263616258f92b",shape:"rounded",fill:"solid",color:"warning"},t("smoothly-icon",{key:"6fd017cf57e5ebdf63078003e02d92c68c8f4af5",name:"checkmark-circle",slot:"start"}),"Check"),t("smoothly-button",{key:"0bfde99dba0e56974c4132d2ef6c727c9a2a809f",shape:"rounded",fill:"solid",color:"secondary"},t("smoothly-icon",{key:"5780d006fe5a007b68f17c537934ebae8fb23480",name:"basketball",slot:"start"}),"Check"),t("smoothly-button",{key:"00e418dec2de5f78e40f56a38bff2e66f0ea8744",shape:"rounded",fill:"solid",color:"success"},t("smoothly-icon",{key:"eed0a2bb3c839dd3d914dc0a07e1e3c51e3c5bf3",name:"call",slot:"start"}),"Check"),t("smoothly-button",{key:"7ccffbe4c12666ce4f167f0fdc9b6bc7078faeb0",size:"icon",fill:"solid",shape:"rounded",color:"success"},t("smoothly-icon",{key:"56531f0dd24f7c5bb0ae63fcf7b82935b60d24f2",name:"call"})),t("smoothly-button",{key:"8466fd4b388ad0e5411ba5f31975aaf6a1b0680b",size:"flexible",fill:"solid",color:"success"},t("smoothly-icon",{key:"1472f81c21140b5a8ee4408a947657cd673bd1dc",name:"airplane"}))),t("h4",{key:"0e2ac17f379dd54737037e4d3b32ad256ebf8494"},'Buttons with Icon in "end"'),t("smoothly-button",{key:"a4350f353ce14cb9adb6b362b0b11e527c0cd9fe",fill:"solid",color:"light"},"Go Forward",t("smoothly-icon",{key:"c8e56f3ab255349c872b991ec76de6c6ab878066",name:"arrow-forward",slot:"end"})),t("h4",{key:"4a318ff840e33a41e1afbdc2e328430ac4bbc830"},"Test for icon button"),t("div",{key:"9305973351f925768f74b64f7b790c92b1588839"},t("smoothly-button",{key:"da959f375b10df462b6bf8df9d5104dce89fb9d0",size:"icon",fill:"solid",shape:"rounded",color:"success"},t("smoothly-icon",{key:"141d5fa125a2a34220c4cf0320ec45ca3fe31139",name:"call"})),t("smoothly-button",{key:"0987067c106765e51df6f9586aa1d45d942ef125",size:"icon",shape:"rounded",color:"warning",fill:"solid"},t("smoothly-icon",{key:"5fa23e7a1d9b315af5354b55fc4eefd9835e0a44",name:"search-outline"})),t("smoothly-button",{key:"60e76fbb66064799f114cc841c813f9ee1d7d065",size:"icon",shape:"rounded",color:"secondary"},t("smoothly-icon",{key:"1ae4510d90d1b47baadee8f6ed7dd492066bd3e9",name:"checkmark-circle"}))),t("h4",{key:"fadbc9d0a253d68f24b030d2d52d73d5947d335a"},"Link examples"),t("div",{key:"8b4ced5d7bbb2e479073f04cfb98e7f98b41f01c"},t("smoothly-button",{key:"128369132e142d37361b6d640fde4d2743e145a7",type:"link"},"type link"),t("smoothly-button",{key:"b9f05aa9925ca88c1aa65f4e0b3040bed9d01e83",type:"button",fill:"clear"},t("a",{key:"9b565879faf7af07377103494a04b9c3c3a53c8a",href:"https://google.com"},"link")),t("smoothly-button",{key:"69355e4bbbf46fd49597bc3db62d31548d112f87",link:"https://google.com",type:"link"},"link + type link")),t("h4",{key:"dbc23f33d5d74c0147f658672f7a4fcfb166df9d"},"Disabled buttons"),t("div",{key:"0b6d087a8e7ca3a3c1b94159f126962b6c622b20"},t("smoothly-button",{key:"636c5d7b4ddfee2ca6b912b8c8f65e06b5a64136",disabled:true,fill:"solid",color:"secondary"},"Disabled"),t("smoothly-button",{key:"da4a2457eef26c077d603bd3482764ce357918ad",type:"link",link:"https://google.com",disabled:true},"Disabled link"))),t("smoothly-back-to-top",{key:"2906fd515608fe4a3c880755bbb9dfee63d94889"}))}static get style(){return z()}},[0,"smoothly-button-demo"]);function E(){if(typeof customElements==="undefined"){return}const e=["smoothly-button-demo","smoothly-back-to-top","smoothly-button","smoothly-button-confirm","smoothly-button-demo-standard","smoothly-form","smoothly-icon","smoothly-input","smoothly-input-checkbox","smoothly-input-clear","smoothly-input-radio","smoothly-input-radio-item","smoothly-input-select","smoothly-item","smoothly-spinner","smoothly-toggle-switch","smoothly-toggle-switch-demo"];e.forEach((e=>{switch(e){case"smoothly-button-demo":if(!customElements.get(a(e))){customElements.define(a(e),C)}break;case"smoothly-back-to-top":if(!customElements.get(a(e))){l()}break;case"smoothly-button":if(!customElements.get(a(e))){s()}break;case"smoothly-button-confirm":if(!customElements.get(a(e))){d()}break;case"smoothly-button-demo-standard":if(!customElements.get(a(e))){f()}break;case"smoothly-form":if(!customElements.get(a(e))){b()}break;case"smoothly-icon":if(!customElements.get(a(e))){i()}break;case"smoothly-input":if(!customElements.get(a(e))){n()}break;case"smoothly-input-checkbox":if(!customElements.get(a(e))){m()}break;case"smoothly-input-clear":if(!customElements.get(a(e))){r()}break;case"smoothly-input-radio":if(!customElements.get(a(e))){y()}break;case"smoothly-input-radio-item":if(!customElements.get(a(e))){h()}break;case"smoothly-input-select":if(!customElements.get(a(e))){k()}break;case"smoothly-item":if(!customElements.get(a(e))){u()}break;case"smoothly-spinner":if(!customElements.get(a(e))){p()}break;case"smoothly-toggle-switch":if(!customElements.get(a(e))){g()}break;case"smoothly-toggle-switch-demo":if(!customElements.get(a(e))){w()}break}}))}E();export{C as S,E as d};
2
+ //# sourceMappingURL=p-DfSSSicA.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as o,h as e,d as i,t as n}from"./p-BsZrGTcp.js";import{i as l}from"./p-BVKhAhsB.js";import{E as h}from"./p-iQDU7l2c.js";import{I as a}from"./p-BLDkKrD6.js";import{d as r}from"./p-DFSiKg4M.js";import{d as c}from"./p-Bd-a9CG1.js";import{d as m}from"./p-DtGUtK97.js";function u(t){const s=new Date(t);s.setDate(1);let o=-((s.getDay()+6)%7)+1;const e=[];for(let s=0;s<6;s++){const i=[];for(let s=0;s<7;s++){const s=new Date(t);s.setUTCDate(o++);i.push(l.Date.create(s))}if(s<5||l.Date.firstOfMonth(i[0])==l.Date.firstOfMonth(t)){e.push(i)}}return e}function d(){const t=new globalThis.Date;t.setDate(t.getDate()-t.getDay()+1);const s=[];for(let o=0;o<7;o++){s.push(t.toLocaleString(undefined,{weekday:"short"}));t.setDate(t.getDate()+1)}return s}function y(t){const s=new globalThis.Date(t);const o=[];for(let e=0;e<12;e++){s.setMonth(e,28);const i=l.Date.create(s);o.push({date:i,name:s.toLocaleString(undefined,{month:"long"}),selected:i.substr(0,7)==t.substr(0,7)})}return o}function f(t,s,o){const e=new globalThis.Date(t);const i=s?l.Date.getYear(s):(new Date).getFullYear()-50;const n=o?l.Date.getYear(o):(new Date).getFullYear()+50;const h=[];for(let s=i;s<=n;s++){e.setFullYear(s);const o=l.Date.create(e);h.push({date:o,name:e.toLocaleString(undefined,{year:"numeric"}),selected:o==t})}return h}const p=()=>`.sc-smoothly-input-month-h{display:flex;flex-direction:row;justify-content:space-between;background-color:rgb(var(--smoothly-input-background))}.sc-smoothly-input-month-h:not([in-calendar])>smoothly-input-select.sc-smoothly-input-month{display:flex;flex:1}[looks=line].sc-smoothly-input-month-h,[looks=border].sc-smoothly-input-month-h,[looks=transparent].sc-smoothly-input-month-h{gap:2em}.sc-smoothly-input-month-h:not([previous])>smoothly-icon.sc-smoothly-input-month:first-of-type,.sc-smoothly-input-month-h:not([next])>smoothly-icon.sc-smoothly-input-month:last-of-type{display:none}.sc-smoothly-input-month-h>smoothly-icon.sc-smoothly-input-month{display:flex;align-self:center;cursor:pointer}.sc-smoothly-input-month-h>smoothly-icon.disabled.sc-smoothly-input-month{opacity:0.5;cursor:not-allowed}`;const v=t(class t extends s{constructor(t){super();if(t!==false){this.__registerHost()}this.smoothlyInput=o(this,"smoothlyInput");this.smoothlyUserInput=o(this,"smoothlyUserInput");this.smoothlyInputLoad=o(this,"smoothlyInputLoad");this.smoothlyFormDisable=o(this,"smoothlyFormDisable");this.smoothlyInputLooks=o(this,"smoothlyInputLooks");this.value=l.Date.now();this.next=false;this.previous=false;this.inCalendar=false;this.showLabel=true;this.allowPreviousMonth=true;this.allowNextMonth=true;this.observer=h.Observer.create(this)}componentWillLoad(){this.smoothlyInputLooks.emit((t=>{var s;return this.looks=(s=this.looks)!==null&&s!==void 0?s:t}));this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));this.valueChanged()}valueChanged(){this.smoothlyInput.emit({[this.name]:this.value})}adjustMonth(t){var s;if(!this.readonly){const o=l.Date.parse((s=this.value)!==null&&s!==void 0?s:l.Date.now());o.setMonth(o.getMonth()+t);this.value=l.Date.create(o)}}async disconnectedCallback(){if(!this.element.isConnected){await this.unregister()}}setAllowPreviousMonth(){var t,s;const o=l.Date.previousMonth((t=this.value)!==null&&t!==void 0?t:l.Date.now()).substring(0,7);const e=(s=this.min)===null||s===void 0?void 0:s.substring(0,7);this.allowPreviousMonth=!e||o>=e}setAllowNextMonth(){var t,s;const o=l.Date.nextMonth((t=this.value)!==null&&t!==void 0?t:l.Date.now()).substring(0,7);const e=(s=this.max)===null||s===void 0?void 0:s.substring(0,7);this.allowNextMonth=!e||o<=e}nameChange(t,s){a.formRename(this,s)}async register(){a.formAdd(this)}async unregister(){a.formRemove(this)}async getValue(){return this.value}async clear(){var t,s;(t=this.year)===null||t===void 0?void 0:t.clear();(s=this.month)===null||s===void 0?void 0:s.clear()}async listen(t){this.observer.subscribe(t)}async edit(t){this.readonly=!t}async reset(){var t,s;(t=this.year)===null||t===void 0?void 0:t.reset();(s=this.month)===null||s===void 0?void 0:s.reset()}async setInitialValue(){var t,s;(t=this.year)===null||t===void 0?void 0:t.setInitialValue();(s=this.month)===null||s===void 0?void 0:s.setInitialValue()}inputHandler(t){if(t.target!=this.element){t.stopPropagation();const s=t.detail[`${this.name}-year`];const o=t.detail[`${this.name}-month`];if(o&&l.Date.is(o)){this.value=l.Date.firstOfMonth(o)}else if(s&&l.Date.is(s)){this.value=l.Date.firstOfMonth(s)}}}smoothlyInputLooksHandler(t){if(t.target!=this.element){t.stopPropagation();t.detail(this.looks,this.color)}}async smoothlyInputLoadHandler(t){if(t.target!=this.element){t.stopPropagation()}}render(){var t,s;return e(i,{key:"24ca26112a36f8f6337339152021cd5acfd04408"},e("smoothly-icon",{key:"a67121015379d6a0faadf6eb869324bbfdbd146e",name:"caret-back-outline",size:"tiny",color:this.color,fill:"default",class:{disabled:this.readonly||!this.allowPreviousMonth},onClick:()=>this.allowPreviousMonth&&this.adjustMonth(-1)}),e("smoothly-input-select",{key:"14f7906ad5a9ba3e91afec77d8bd841fc1df5f23",ref:t=>this.year=t,name:`${this.name}-year`,readonly:this.readonly,menuHeight:"5.5items",required:true,ordered:true,inCalendar:this.inCalendar,showLabel:this.showLabel,onSmoothlyInput:t=>this.inputHandler(t),onSmoothlyUserInput:t=>{const s=t.detail.value;if(s&&l.Date.is(s)){const t=l.Date.firstOfMonth(s);this.smoothlyUserInput.emit({name:this.name,value:t})}},searchDisabled:true},e("div",{key:"975e5cf4e7044d3fe0c59eaec95ca4df60b94a84",slot:"label"},e("slot",{key:"f643c99feb9f9c44a45f3edf8e92e053a59ddf34",name:"year-label"})),f((t=this.value)!==null&&t!==void 0?t:l.Date.now(),this.min,this.max).map((t=>e("smoothly-item",{key:t.date,value:t.date,selected:t.selected||this.value==t.date},t.name)))),e("smoothly-input-select",{key:"660d45c6f7d8a8e1f0922be07103f9b3af6cdc5b",ref:t=>this.month=t,name:`${this.name}-month`,readonly:this.readonly,color:this.color,looks:this.looks,menuHeight:"5.5items",required:true,ordered:true,inCalendar:this.inCalendar,showLabel:this.showLabel,onSmoothlyInput:t=>this.inputHandler(t),onSmoothlyUserInput:t=>{const s=t.detail.value;if(s&&l.Date.is(s)){const t=l.Date.firstOfMonth(s);this.smoothlyUserInput.emit({name:this.name,value:t})}},searchDisabled:true},e("div",{key:"54ec84b0ce44034e6443f540d8db2e2ab04b20e9",slot:"label"},e("slot",{key:"cc8ef88cf3edc267fe0e8a61222d779df6b91075",name:"month-label"})),y((s=this.value)!==null&&s!==void 0?s:l.Date.now()).map((t=>e("smoothly-item",{key:t.date,value:t.date,selected:t.selected||this.value==t.date},t.name)))),e("smoothly-icon",{key:"82ebdb05ec217778b024e7ab30b641c4ce1e5a91",name:"caret-forward-outline",size:"tiny",color:this.color,fill:"default",class:{disabled:this.readonly||!this.allowNextMonth},onClick:()=>this.allowNextMonth&&this.adjustMonth(1)}))}get element(){return this}static get watchers(){return{value:[{valueChanged:0},{setAllowPreviousMonth:0},{setAllowNextMonth:0}],min:[{setAllowPreviousMonth:0}],max:[{setAllowNextMonth:0}],name:[{nameChange:0}]}}static get style(){return p()}},[262,"smoothly-input-month",{readonly:[1540],color:[513],looks:[1537],name:[513],value:[1025],max:[1025],min:[1025],next:[516],previous:[516],inCalendar:[516,"in-calendar"],showLabel:[516,"show-label"],allowPreviousMonth:[32],allowNextMonth:[32],register:[64],unregister:[64],getValue:[64],clear:[64],listen:[64],edit:[64],reset:[64],setInitialValue:[64]},[[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"]],{value:[{valueChanged:0},{setAllowPreviousMonth:0},{setAllowNextMonth:0}],min:[{setAllowPreviousMonth:0}],max:[{setAllowNextMonth:0}],name:[{nameChange:0}]}]);function b(){if(typeof customElements==="undefined"){return}const t=["smoothly-input-month","smoothly-icon","smoothly-input-select","smoothly-item"];t.forEach((t=>{switch(t){case"smoothly-input-month":if(!customElements.get(n(t))){customElements.define(n(t),v)}break;case"smoothly-icon":if(!customElements.get(n(t))){r()}break;case"smoothly-input-select":if(!customElements.get(n(t))){c()}break;case"smoothly-item":if(!customElements.get(n(t))){m()}break}}))}b();export{v as S,b as d,u as m,d as w};
2
- //# sourceMappingURL=p-CRlfq-AL.js.map
1
+ import{p as t,H as s,c as o,h as e,d as i,t as n}from"./p-BsZrGTcp.js";import{i as l}from"./p-BVKhAhsB.js";import{E as h}from"./p-iQDU7l2c.js";import{I as a}from"./p-BLDkKrD6.js";import{d as r}from"./p-DFSiKg4M.js";import{d as c}from"./p-DTo2Itg9.js";import{d as m}from"./p-DtGUtK97.js";function u(t){const s=new Date(t);s.setDate(1);let o=-((s.getDay()+6)%7)+1;const e=[];for(let s=0;s<6;s++){const i=[];for(let s=0;s<7;s++){const s=new Date(t);s.setUTCDate(o++);i.push(l.Date.create(s))}if(s<5||l.Date.firstOfMonth(i[0])==l.Date.firstOfMonth(t)){e.push(i)}}return e}function d(){const t=new globalThis.Date;t.setDate(t.getDate()-t.getDay()+1);const s=[];for(let o=0;o<7;o++){s.push(t.toLocaleString(undefined,{weekday:"short"}));t.setDate(t.getDate()+1)}return s}function y(t){const s=new globalThis.Date(t);const o=[];for(let e=0;e<12;e++){s.setMonth(e,28);const i=l.Date.create(s);o.push({date:i,name:s.toLocaleString(undefined,{month:"long"}),selected:i.substr(0,7)==t.substr(0,7)})}return o}function f(t,s,o){const e=new globalThis.Date(t);const i=s?l.Date.getYear(s):(new Date).getFullYear()-50;const n=o?l.Date.getYear(o):(new Date).getFullYear()+50;const h=[];for(let s=i;s<=n;s++){e.setFullYear(s);const o=l.Date.create(e);h.push({date:o,name:e.toLocaleString(undefined,{year:"numeric"}),selected:o==t})}return h}const p=()=>`.sc-smoothly-input-month-h{display:flex;flex-direction:row;justify-content:space-between;background-color:rgb(var(--smoothly-input-background))}.sc-smoothly-input-month-h:not([in-calendar])>smoothly-input-select.sc-smoothly-input-month{display:flex;flex:1}[looks=line].sc-smoothly-input-month-h,[looks=border].sc-smoothly-input-month-h,[looks=transparent].sc-smoothly-input-month-h{gap:2em}.sc-smoothly-input-month-h:not([previous])>smoothly-icon.sc-smoothly-input-month:first-of-type,.sc-smoothly-input-month-h:not([next])>smoothly-icon.sc-smoothly-input-month:last-of-type{display:none}.sc-smoothly-input-month-h>smoothly-icon.sc-smoothly-input-month{display:flex;align-self:center;cursor:pointer}.sc-smoothly-input-month-h>smoothly-icon.disabled.sc-smoothly-input-month{opacity:0.5;cursor:not-allowed}`;const v=t(class t extends s{constructor(t){super();if(t!==false){this.__registerHost()}this.smoothlyInput=o(this,"smoothlyInput");this.smoothlyUserInput=o(this,"smoothlyUserInput");this.smoothlyInputLoad=o(this,"smoothlyInputLoad");this.smoothlyFormDisable=o(this,"smoothlyFormDisable");this.smoothlyInputLooks=o(this,"smoothlyInputLooks");this.value=l.Date.now();this.next=false;this.previous=false;this.inCalendar=false;this.showLabel=true;this.allowPreviousMonth=true;this.allowNextMonth=true;this.observer=h.Observer.create(this)}componentWillLoad(){this.smoothlyInputLooks.emit((t=>{var s;return this.looks=(s=this.looks)!==null&&s!==void 0?s:t}));this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));this.valueChanged()}valueChanged(){this.smoothlyInput.emit({[this.name]:this.value})}adjustMonth(t){var s;if(!this.readonly){const o=l.Date.parse((s=this.value)!==null&&s!==void 0?s:l.Date.now());o.setMonth(o.getMonth()+t);this.value=l.Date.create(o)}}async disconnectedCallback(){if(!this.element.isConnected){await this.unregister()}}setAllowPreviousMonth(){var t,s;const o=l.Date.previousMonth((t=this.value)!==null&&t!==void 0?t:l.Date.now()).substring(0,7);const e=(s=this.min)===null||s===void 0?void 0:s.substring(0,7);this.allowPreviousMonth=!e||o>=e}setAllowNextMonth(){var t,s;const o=l.Date.nextMonth((t=this.value)!==null&&t!==void 0?t:l.Date.now()).substring(0,7);const e=(s=this.max)===null||s===void 0?void 0:s.substring(0,7);this.allowNextMonth=!e||o<=e}nameChange(t,s){a.formRename(this,s)}async register(){a.formAdd(this)}async unregister(){a.formRemove(this)}async getValue(){return this.value}async clear(){var t,s;(t=this.year)===null||t===void 0?void 0:t.clear();(s=this.month)===null||s===void 0?void 0:s.clear()}async listen(t){this.observer.subscribe(t)}async edit(t){this.readonly=!t}async reset(){var t,s;(t=this.year)===null||t===void 0?void 0:t.reset();(s=this.month)===null||s===void 0?void 0:s.reset()}async setInitialValue(){var t,s;(t=this.year)===null||t===void 0?void 0:t.setInitialValue();(s=this.month)===null||s===void 0?void 0:s.setInitialValue()}inputHandler(t){if(t.target!=this.element){t.stopPropagation();const s=t.detail[`${this.name}-year`];const o=t.detail[`${this.name}-month`];if(o&&l.Date.is(o)){this.value=l.Date.firstOfMonth(o)}else if(s&&l.Date.is(s)){this.value=l.Date.firstOfMonth(s)}}}smoothlyInputLooksHandler(t){if(t.target!=this.element){t.stopPropagation();t.detail(this.looks,this.color)}}async smoothlyInputLoadHandler(t){if(t.target!=this.element){t.stopPropagation()}}render(){var t,s;return e(i,{key:"24ca26112a36f8f6337339152021cd5acfd04408"},e("smoothly-icon",{key:"a67121015379d6a0faadf6eb869324bbfdbd146e",name:"caret-back-outline",size:"tiny",color:this.color,fill:"default",class:{disabled:this.readonly||!this.allowPreviousMonth},onClick:()=>this.allowPreviousMonth&&this.adjustMonth(-1)}),e("smoothly-input-select",{key:"14f7906ad5a9ba3e91afec77d8bd841fc1df5f23",ref:t=>this.year=t,name:`${this.name}-year`,readonly:this.readonly,menuHeight:"5.5items",required:true,ordered:true,inCalendar:this.inCalendar,showLabel:this.showLabel,onSmoothlyInput:t=>this.inputHandler(t),onSmoothlyUserInput:t=>{const s=t.detail.value;if(s&&l.Date.is(s)){const t=l.Date.firstOfMonth(s);this.smoothlyUserInput.emit({name:this.name,value:t})}},searchDisabled:true},e("div",{key:"975e5cf4e7044d3fe0c59eaec95ca4df60b94a84",slot:"label"},e("slot",{key:"f643c99feb9f9c44a45f3edf8e92e053a59ddf34",name:"year-label"})),f((t=this.value)!==null&&t!==void 0?t:l.Date.now(),this.min,this.max).map((t=>e("smoothly-item",{key:t.date,value:t.date,selected:t.selected||this.value==t.date},t.name)))),e("smoothly-input-select",{key:"660d45c6f7d8a8e1f0922be07103f9b3af6cdc5b",ref:t=>this.month=t,name:`${this.name}-month`,readonly:this.readonly,color:this.color,looks:this.looks,menuHeight:"5.5items",required:true,ordered:true,inCalendar:this.inCalendar,showLabel:this.showLabel,onSmoothlyInput:t=>this.inputHandler(t),onSmoothlyUserInput:t=>{const s=t.detail.value;if(s&&l.Date.is(s)){const t=l.Date.firstOfMonth(s);this.smoothlyUserInput.emit({name:this.name,value:t})}},searchDisabled:true},e("div",{key:"54ec84b0ce44034e6443f540d8db2e2ab04b20e9",slot:"label"},e("slot",{key:"cc8ef88cf3edc267fe0e8a61222d779df6b91075",name:"month-label"})),y((s=this.value)!==null&&s!==void 0?s:l.Date.now()).map((t=>e("smoothly-item",{key:t.date,value:t.date,selected:t.selected||this.value==t.date},t.name)))),e("smoothly-icon",{key:"82ebdb05ec217778b024e7ab30b641c4ce1e5a91",name:"caret-forward-outline",size:"tiny",color:this.color,fill:"default",class:{disabled:this.readonly||!this.allowNextMonth},onClick:()=>this.allowNextMonth&&this.adjustMonth(1)}))}get element(){return this}static get watchers(){return{value:[{valueChanged:0},{setAllowPreviousMonth:0},{setAllowNextMonth:0}],min:[{setAllowPreviousMonth:0}],max:[{setAllowNextMonth:0}],name:[{nameChange:0}]}}static get style(){return p()}},[262,"smoothly-input-month",{readonly:[1540],color:[513],looks:[1537],name:[513],value:[1025],max:[1025],min:[1025],next:[516],previous:[516],inCalendar:[516,"in-calendar"],showLabel:[516,"show-label"],allowPreviousMonth:[32],allowNextMonth:[32],register:[64],unregister:[64],getValue:[64],clear:[64],listen:[64],edit:[64],reset:[64],setInitialValue:[64]},[[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"]],{value:[{valueChanged:0},{setAllowPreviousMonth:0},{setAllowNextMonth:0}],min:[{setAllowPreviousMonth:0}],max:[{setAllowNextMonth:0}],name:[{nameChange:0}]}]);function b(){if(typeof customElements==="undefined"){return}const t=["smoothly-input-month","smoothly-icon","smoothly-input-select","smoothly-item"];t.forEach((t=>{switch(t){case"smoothly-input-month":if(!customElements.get(n(t))){customElements.define(n(t),v)}break;case"smoothly-icon":if(!customElements.get(n(t))){r()}break;case"smoothly-input-select":if(!customElements.get(n(t))){c()}break;case"smoothly-item":if(!customElements.get(n(t))){m()}break}}))}b();export{v as S,b as d,u as m,d as w};
2
+ //# sourceMappingURL=p-EqRJl32n.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as t,h as o,F as a,d as s,t as m}from"./p-BsZrGTcp.js";import{R as c}from"./p-Br0kWrBT.js";import{d as i}from"./p-mmAi00ak.js";import{d as r}from"./p-Cl8L61mt.js";import{d as l}from"./p-DES0wbqs.js";import{d as n}from"./p-BE5E3Jm6.js";import{d as f}from"./p-CN3iME9d.js";import{d}from"./p-DG2pfnCV.js";import{d as b}from"./p-uFR5K4vd.js";import{d as y}from"./p-DvZK__s-.js";import{d as p}from"./p-F8qX8ZuL.js";import{d as h}from"./p-BLDkKrD6.js";import{d as u}from"./p-DFSiKg4M.js";import{d as k}from"./p-BWF43Ktc.js";import{d as j}from"./p-BAMxyPpe.js";import{d as g}from"./p-e3dhSqSH.js";import{d as v}from"./p-BkrgS2Eo.js";import{d as E}from"./p-CG405xpf.js";import{d as w}from"./p-CsbRRVxH.js";import{d as O}from"./p-BW08Z-5c.js";import{d as S}from"./p-BR6cMQkb.js";import{d as F}from"./p-CRlfq-AL.js";import{d as P}from"./p-CcJ_7PQR.js";import{d as x}from"./p-CvhP-Vls.js";import{d as C}from"./p-WyNQ9SZM.js";import{d as z}from"./p-CMhSJk_G.js";import{d as D}from"./p-Bd-a9CG1.js";import{d as H}from"./p-C3bp3FF4.js";import{d as R}from"./p-DtGUtK97.js";import{d as B}from"./p-MWZzvkuh.js";import{d as I}from"./p-Cvc3SMPo.js";import{d as N}from"./p-2Y5tLcQ1.js";import{d as M}from"./p-D6t9mpY2.js";const q=()=>`.sc-smoothly-form-demo-pet-h{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:auto auto;grid-column-gap:2rem}.sc-smoothly-form-demo-pet-h smoothly-input-checkbox[name="hasOwner"].sc-smoothly-form-demo-pet,.sc-smoothly-form-demo-pet-h>smoothly-form.sc-smoothly-form-demo-pet smoothly-tabs.sc-smoothly-form-demo-pet{flex-basis:100%}`;const L=e(class e extends t{constructor(e){super();if(e!==false){this.__registerHost()}this.hasOwner=false;this.owner={}}render(){var e,t;return o(s,{key:"3555b678ce1821ff509e6c6bf7cd5f846150361e"},o("h2",{key:"977304593cbf95b3a07e55d27bcba52421c3a806"},"Pet"),o("h3",{key:"30d9e280ca0f61806f9267fd2cb64b0018a13fd0"},"Value"),o("smoothly-form",{key:"9fea67b46ff29a01b7a15aa482cd7d756c766315",looks:"border",onSmoothlyFormSubmit:e=>alert(JSON.stringify(e.detail)),onSmoothlyFormInput:e=>this.value=Object.assign({},e.detail)},o("smoothly-input",{key:"0e4dcd3f6853fcd923db4e2aec019d5448a9985c",type:"text",name:"name.first",value:"Johnny"},"Name",o("smoothly-input-reset",{key:"5741904cab68af6d1be19fe0f8a54490b84d21ba",slot:"end"})),o("smoothly-input",{key:"c866df63069281710b3a331655de6d052402b139",type:"integer",name:"age"},"Age (Years)"),o("smoothly-input-checkbox",{key:"0b1b661bf19f1ca7fa08fe79af51082843d3170c",name:"hasOwner",onSmoothlyInputLoad:e=>e.stopPropagation(),onSmoothlyInput:e=>{this.hasOwner=e.detail.hasOwner;e.stopPropagation()}},"Has Owner",o("smoothly-input-reset",{key:"b11ab6e4f6c4f5c3b58b7b1d697031830ef6c897",slot:"end"})),this.hasOwner&&o(a,{key:"f73c34c51c677c929481e3467a4a1720d2af6192"},o("smoothly-input",{key:"93e88b422344bf296bc08e1c87153ee5e171f116",type:"text",name:"owner.firstName",value:this.owner.firstName,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{firstName:e.detail["owner.firstName"]})},"Owner First Name",o("smoothly-input-reset",{key:"b7364d965671c8389a4ebf10b6dff81a8f83579d",slot:"end"})),o("smoothly-input",{key:"e02d9a248eadadca31f2b7e54a4fe2d7dcb78ab7",type:"text",name:"owner.lastName",value:this.owner.lastName,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{lastName:e.detail["owner.lastName"]})},"Owner Last Name"),o("smoothly-input-file",{key:"c62884a682169ef822236373673f6b21c960fe79",name:"owner.picture"},o("span",{key:"dee1e245fbb06cfff787b50beff581bc48dff312",slot:"label"},"Owner picture")),o("smoothly-input-date",{key:"968c755e88629fd76f61cc109f8a7c85c6b87b14",name:"owner.birthday",value:this.owner.birthday,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{birthday:e.detail["owner.birthday"]})},"Owner birthday",o("smoothly-input-reset",{key:"bdc545954853494c63ec34555b90f35f12a081c1",slot:"end"})),o("smoothly-input-date-range",{key:"e18ac1955b66407c2dd2aebb3d1b616752cba832",name:"owner.ownedRange",start:(e=this.owner.ownedRange)===null||e===void 0?void 0:e.start,end:(t=this.owner.ownedRange)===null||t===void 0?void 0:t.end,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{ownedRange:e.detail["owner.ownedRange"]})},"Owner ownedRange",o("smoothly-input-reset",{key:"56d1ce3d8b2a0a0daf1b0e66b5e5fd2fca291d12",slot:"end"})),o("smoothly-input-range",{key:"aa6cf832bc63235bc0590ac6cab2da6b1d5923f0",name:"owner.height",step:1,max:250,value:this.owner.height,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{height:e.detail["owner.height"]})},"Owner's Height",o("smoothly-input-reset",{key:"ecae9fdf30760aa00a799a24729221ef0bb26786",slot:"end"})),o("smoothly-input-select",{key:"587127c00899a6b985a1ba41f73c906e94abf504",name:"owner.favoriteHat"},o("span",{key:"02289ec45dd570ca382776beb9fa34d2552d92da",slot:"label"},"Owner's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((e,t)=>o("smoothly-item",{value:e,key:t,selected:this.owner.favoriteHat==e},e))),o("smoothly-input-reset",{key:"52aeef0a52c37c0ad9236c99e3a5af20c26f7c6d",slot:"end"})),o("smoothly-input-color",{key:"2640d32a91c9e12b2ffb9564e44e43bd24d97162",name:"owner.favoriteColor",value:this.owner.favoriteColor?c.toHex(this.owner.favoriteColor):undefined,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{favoriteColor:e.detail["owner.favoriteColor"]})},"Owner's Favorite Color",o("smoothly-input-reset",{key:"9253ea9ae7e24f1fc70da6f7ab04bbe38599024a",slot:"end"})),o("smoothly-input-radio",{key:"f6b4f1e0b3c1e8eef422c154b22454610e7e6af3",name:"owner.favoritePizza",value:this.owner.favoritePizza,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{favoritePizza:e.detail["owner.favoritePizza"]})},o("span",{key:"6ec795591acadf04027319369d72e9470787945f",slot:"label"},"Owner's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((e,t)=>o("smoothly-input-radio-item",{value:e,key:t},e)))),o("smoothly-input-checkbox",{key:"34815b0ebee805a4481312379025218fd46f01c7",name:"owner.hasPet",checked:this.owner.hasPet,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{hasPet:e.detail["owner.hasPet"]})},"Has Pet")),o("smoothly-tabs",{key:"ae43c2284ea51f72e415e00a1ada8cab10afebdb"},o("smoothly-tab",{key:"6485c24546d14f5845987da38646066c8f066c61",label:"Dog",name:"dog"},o("smoothly-input",{key:"257d6b7f1140ff7210173fb0e5de4704000bc432",type:"text",name:"dog.breed"},"Breed"),o("smoothly-input-file",{key:"a75e2029fe5b630410fee39462d197489a5291db",name:"dog.picture"},o("span",{key:"7d881935f028284bb80a3e33a47baf59813bc63a",slot:"label"},"Dog picture")),o("smoothly-input-date-time",{key:"f8991e1f543ad09a241977a2570a473597c79a80",name:"dog.lastWalk"},"Time of last walk"),o("smoothly-input-date",{key:"abdf29fd0b95142a6a28aacbc2a3de52b28acfa6",name:"dog.birthday"},"Dog birthday"),o("smoothly-input-date-range",{key:"07710a1af7f884114fee361d80b27e9351cd85d5",name:"dog.dateRange"},"Dog date range"),o("smoothly-input-select",{key:"1307c6bdafc9598e829ee60c4ce7c1b1546dc7af",name:"dog.favoriteHat"},o("span",{key:"4ed1cd24bba8e63db60d63cffdd1417023117a2d",slot:"label"},"Dog's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((e,t)=>o("smoothly-item",{value:e,key:t},e)))),o("smoothly-input-color",{key:"0b049778a99bee6df6d2ec48dbc071697136fe16",name:"dog.favoriteColor"},"Dog's Favorite Color"),o("smoothly-input-radio",{key:"c65093016a5b90c6bb25e85e4e3575124712c7be",name:"dog.favoritePizza"},o("span",{key:"9565009584ed77b05040ed9468700f116adb563c",slot:"label"},"Dog's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((e,t)=>o("smoothly-input-radio-item",{value:e,key:t},e)))),o("smoothly-input-checkbox",{key:"666be38409bc89d3e4650ad9401c854327ebefc1",name:"dog.hasPet"},"Has Pet")),o("smoothly-tab",{key:"fb5f8f5459b5f642b0c6a2439b319a42002959a4",label:"Cat",name:"cat",open:true},o("smoothly-input",{key:"682f5638f562e61dd092f83eccf7925f720cf194",name:"cat.favoriteFood"},"Favorite Food")),o("smoothly-tab",{key:"c5482174c9405a1136f012fa82cca350c2ed83c2",label:"Parrot",name:"parrot"},o("smoothly-input",{key:"f78b450a29382f8f856ebbff27745c953af53308",type:"price",name:"parrot.price",currency:"EUR"},"Summary Price"),o("smoothly-input-file",{key:"efbd349e10beda447d69c20474c692e2688bcaab",name:"parrot.picture"},o("span",{key:"01a1817ed064f0181742eb5aeb3f2723338f84e7",slot:"label"},"Summary picture"),o("smoothly-input-clear",{key:"be120da97155f2f5591d924aa32604d6086e31c1",slot:"end"})),o("smoothly-input-date",{key:"e59e3a24b479cfbd94eb3c6c7c5f394f93049274",name:"parrot.birthday"},"Summary birthday"),o("smoothly-input-date-range",{key:"4e918229a0745964257c0fb32f0ecd1a4283cdca",name:"parrot.ownedRange",start:"2020-01-01",end:"2020-01-15"},"Summary ownedRange",o("smoothly-input-reset",{key:"514983470344439c22cc6b68bace5b1609f04f89",slot:"end"})),o("smoothly-input-range",{key:"cca92a33c0bc46d7bf85e86e467b9f703063d35d",name:"parrot.height",label:"Height"},o("smoothly-input-reset",{key:"edb1126fcabc71b9d98f33257c8d282982e8ea36",slot:"end"})),o("smoothly-input-select",{key:"868654a72f5642b033392aa33b3b107b1d7ddfa4",name:"parrot.favoriteHat"},o("span",{key:"f811c0c08c4277aba3e85da353903b0185bb9df7",slot:"label"},"Summary's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((e,t)=>o("smoothly-item",{value:e,key:t},e)))),o("smoothly-input-month",{key:"4226a5e036817f3a80fce926c6761cee1a8bcd66",name:"parrot.month"},o("span",{key:"61570b4fc31693fd2d3f81bea327cfc890ea6c54",slot:"month-label"},"Summary month")),o("smoothly-input-color",{key:"23a77f1358748ee93995b71253bf43641593fc3c",name:"parrot.color"},"Summary Color"),o("smoothly-input-radio",{key:"a32718e3246ec6ffa4cb33eab22c6e549ef764f0",name:"parrot.favoritePizza"},o("span",{key:"5283e5e305bbc586ac74665518f077a2b20e261a",slot:"label"},"Summary's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((e,t)=>o("smoothly-input-radio-item",{value:e,key:t},e)))),o("smoothly-input-checkbox",{key:"15c5b92cd4ee1c6f46880327a7737abba978cb6a",name:"parrot.hasPet"},"Has Pet"))),o("smoothly-input-submit",{key:"975b1bbb887c933a2eacb4bc1a79dfdf99d73972",size:"icon",slot:"submit",color:"success",fill:"solid"})),o("smoothly-display",{key:"09fef0282ab5dea1bceacee812f4d9563c21ed2c",type:"json",value:this.value}))}static get style(){return q()}},[2,"smoothly-form-demo-pet",{hasOwner:[32],owner:[32],value:[32]}]);function G(){if(typeof customElements==="undefined"){return}const e=["smoothly-form-demo-pet","smoothly-button","smoothly-button-confirm","smoothly-calendar","smoothly-date-text","smoothly-display","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-form","smoothly-icon","smoothly-input","smoothly-input-checkbox","smoothly-input-clear","smoothly-input-color","smoothly-input-date","smoothly-input-date-range","smoothly-input-date-time","smoothly-input-file","smoothly-input-month","smoothly-input-radio","smoothly-input-radio-item","smoothly-input-range","smoothly-input-reset","smoothly-input-select","smoothly-input-submit","smoothly-item","smoothly-spinner","smoothly-tab","smoothly-tabs","smoothly-toggle-switch"];e.forEach((e=>{switch(e){case"smoothly-form-demo-pet":if(!customElements.get(m(e))){customElements.define(m(e),L)}break;case"smoothly-button":if(!customElements.get(m(e))){i()}break;case"smoothly-button-confirm":if(!customElements.get(m(e))){r()}break;case"smoothly-calendar":if(!customElements.get(m(e))){l()}break;case"smoothly-date-text":if(!customElements.get(m(e))){n()}break;case"smoothly-display":if(!customElements.get(m(e))){f()}break;case"smoothly-display-json":if(!customElements.get(m(e))){d()}break;case"smoothly-display-json-object":if(!customElements.get(m(e))){b()}break;case"smoothly-display-json-primitive":if(!customElements.get(m(e))){y()}break;case"smoothly-display-json-record-key":if(!customElements.get(m(e))){p()}break;case"smoothly-form":if(!customElements.get(m(e))){h()}break;case"smoothly-icon":if(!customElements.get(m(e))){u()}break;case"smoothly-input":if(!customElements.get(m(e))){k()}break;case"smoothly-input-checkbox":if(!customElements.get(m(e))){j()}break;case"smoothly-input-clear":if(!customElements.get(m(e))){g()}break;case"smoothly-input-color":if(!customElements.get(m(e))){v()}break;case"smoothly-input-date":if(!customElements.get(m(e))){E()}break;case"smoothly-input-date-range":if(!customElements.get(m(e))){w()}break;case"smoothly-input-date-time":if(!customElements.get(m(e))){O()}break;case"smoothly-input-file":if(!customElements.get(m(e))){S()}break;case"smoothly-input-month":if(!customElements.get(m(e))){F()}break;case"smoothly-input-radio":if(!customElements.get(m(e))){P()}break;case"smoothly-input-radio-item":if(!customElements.get(m(e))){x()}break;case"smoothly-input-range":if(!customElements.get(m(e))){C()}break;case"smoothly-input-reset":if(!customElements.get(m(e))){z()}break;case"smoothly-input-select":if(!customElements.get(m(e))){D()}break;case"smoothly-input-submit":if(!customElements.get(m(e))){H()}break;case"smoothly-item":if(!customElements.get(m(e))){R()}break;case"smoothly-spinner":if(!customElements.get(m(e))){B()}break;case"smoothly-tab":if(!customElements.get(m(e))){I()}break;case"smoothly-tabs":if(!customElements.get(m(e))){N()}break;case"smoothly-toggle-switch":if(!customElements.get(m(e))){M()}break}}))}G();export{L as S,G as d};
2
- //# sourceMappingURL=p-CocCQeEi.js.map
1
+ import{p as e,H as t,h as o,F as a,d as s,t as m}from"./p-BsZrGTcp.js";import{R as c}from"./p-Br0kWrBT.js";import{d as i}from"./p-mmAi00ak.js";import{d as r}from"./p-Cl8L61mt.js";import{d as l}from"./p-l7KxEsrG.js";import{d as n}from"./p-BE5E3Jm6.js";import{d as f}from"./p-CN3iME9d.js";import{d}from"./p-DG2pfnCV.js";import{d as b}from"./p-uFR5K4vd.js";import{d as y}from"./p-DvZK__s-.js";import{d as p}from"./p-F8qX8ZuL.js";import{d as h}from"./p-BLDkKrD6.js";import{d as u}from"./p-DFSiKg4M.js";import{d as k}from"./p-BWF43Ktc.js";import{d as j}from"./p-BAMxyPpe.js";import{d as g}from"./p-e3dhSqSH.js";import{d as v}from"./p-BkrgS2Eo.js";import{d as E}from"./p-CZY1H_tZ.js";import{d as w}from"./p-Bp65xiCy.js";import{d as O}from"./p-D1kz47jP.js";import{d as S}from"./p-BR6cMQkb.js";import{d as P}from"./p-EqRJl32n.js";import{d as F}from"./p-CcJ_7PQR.js";import{d as x}from"./p-CvhP-Vls.js";import{d as z}from"./p-WyNQ9SZM.js";import{d as C}from"./p-CMhSJk_G.js";import{d as D}from"./p-DTo2Itg9.js";import{d as H}from"./p-C3bp3FF4.js";import{d as I}from"./p-DtGUtK97.js";import{d as R}from"./p-MWZzvkuh.js";import{d as B}from"./p-Cvc3SMPo.js";import{d as N}from"./p-2Y5tLcQ1.js";import{d as M}from"./p-D6t9mpY2.js";const K=()=>`.sc-smoothly-form-demo-pet-h{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:auto auto;grid-column-gap:2rem}.sc-smoothly-form-demo-pet-h smoothly-input-checkbox[name="hasOwner"].sc-smoothly-form-demo-pet,.sc-smoothly-form-demo-pet-h>smoothly-form.sc-smoothly-form-demo-pet smoothly-tabs.sc-smoothly-form-demo-pet{flex-basis:100%}`;const Z=e(class e extends t{constructor(e){super();if(e!==false){this.__registerHost()}this.hasOwner=false;this.owner={}}render(){var e,t;return o(s,{key:"3555b678ce1821ff509e6c6bf7cd5f846150361e"},o("h2",{key:"977304593cbf95b3a07e55d27bcba52421c3a806"},"Pet"),o("h3",{key:"30d9e280ca0f61806f9267fd2cb64b0018a13fd0"},"Value"),o("smoothly-form",{key:"9fea67b46ff29a01b7a15aa482cd7d756c766315",looks:"border",onSmoothlyFormSubmit:e=>alert(JSON.stringify(e.detail)),onSmoothlyFormInput:e=>this.value=Object.assign({},e.detail)},o("smoothly-input",{key:"0e4dcd3f6853fcd923db4e2aec019d5448a9985c",type:"text",name:"name.first",value:"Johnny"},"Name",o("smoothly-input-reset",{key:"5741904cab68af6d1be19fe0f8a54490b84d21ba",slot:"end"})),o("smoothly-input",{key:"c866df63069281710b3a331655de6d052402b139",type:"integer",name:"age"},"Age (Years)"),o("smoothly-input-checkbox",{key:"0b1b661bf19f1ca7fa08fe79af51082843d3170c",name:"hasOwner",onSmoothlyInputLoad:e=>e.stopPropagation(),onSmoothlyInput:e=>{this.hasOwner=e.detail.hasOwner;e.stopPropagation()}},"Has Owner",o("smoothly-input-reset",{key:"b11ab6e4f6c4f5c3b58b7b1d697031830ef6c897",slot:"end"})),this.hasOwner&&o(a,{key:"f73c34c51c677c929481e3467a4a1720d2af6192"},o("smoothly-input",{key:"93e88b422344bf296bc08e1c87153ee5e171f116",type:"text",name:"owner.firstName",value:this.owner.firstName,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{firstName:e.detail["owner.firstName"]})},"Owner First Name",o("smoothly-input-reset",{key:"b7364d965671c8389a4ebf10b6dff81a8f83579d",slot:"end"})),o("smoothly-input",{key:"e02d9a248eadadca31f2b7e54a4fe2d7dcb78ab7",type:"text",name:"owner.lastName",value:this.owner.lastName,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{lastName:e.detail["owner.lastName"]})},"Owner Last Name"),o("smoothly-input-file",{key:"c62884a682169ef822236373673f6b21c960fe79",name:"owner.picture"},o("span",{key:"dee1e245fbb06cfff787b50beff581bc48dff312",slot:"label"},"Owner picture")),o("smoothly-input-date",{key:"968c755e88629fd76f61cc109f8a7c85c6b87b14",name:"owner.birthday",value:this.owner.birthday,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{birthday:e.detail["owner.birthday"]})},"Owner birthday",o("smoothly-input-reset",{key:"bdc545954853494c63ec34555b90f35f12a081c1",slot:"end"})),o("smoothly-input-date-range",{key:"e18ac1955b66407c2dd2aebb3d1b616752cba832",name:"owner.ownedRange",start:(e=this.owner.ownedRange)===null||e===void 0?void 0:e.start,end:(t=this.owner.ownedRange)===null||t===void 0?void 0:t.end,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{ownedRange:e.detail["owner.ownedRange"]})},"Owner ownedRange",o("smoothly-input-reset",{key:"56d1ce3d8b2a0a0daf1b0e66b5e5fd2fca291d12",slot:"end"})),o("smoothly-input-range",{key:"aa6cf832bc63235bc0590ac6cab2da6b1d5923f0",name:"owner.height",step:1,max:250,value:this.owner.height,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{height:e.detail["owner.height"]})},"Owner's Height",o("smoothly-input-reset",{key:"ecae9fdf30760aa00a799a24729221ef0bb26786",slot:"end"})),o("smoothly-input-select",{key:"587127c00899a6b985a1ba41f73c906e94abf504",name:"owner.favoriteHat"},o("span",{key:"02289ec45dd570ca382776beb9fa34d2552d92da",slot:"label"},"Owner's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((e,t)=>o("smoothly-item",{value:e,key:t,selected:this.owner.favoriteHat==e},e))),o("smoothly-input-reset",{key:"52aeef0a52c37c0ad9236c99e3a5af20c26f7c6d",slot:"end"})),o("smoothly-input-color",{key:"2640d32a91c9e12b2ffb9564e44e43bd24d97162",name:"owner.favoriteColor",value:this.owner.favoriteColor?c.toHex(this.owner.favoriteColor):undefined,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{favoriteColor:e.detail["owner.favoriteColor"]})},"Owner's Favorite Color",o("smoothly-input-reset",{key:"9253ea9ae7e24f1fc70da6f7ab04bbe38599024a",slot:"end"})),o("smoothly-input-radio",{key:"f6b4f1e0b3c1e8eef422c154b22454610e7e6af3",name:"owner.favoritePizza",value:this.owner.favoritePizza,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{favoritePizza:e.detail["owner.favoritePizza"]})},o("span",{key:"6ec795591acadf04027319369d72e9470787945f",slot:"label"},"Owner's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((e,t)=>o("smoothly-input-radio-item",{value:e,key:t},e)))),o("smoothly-input-checkbox",{key:"34815b0ebee805a4481312379025218fd46f01c7",name:"owner.hasPet",checked:this.owner.hasPet,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{hasPet:e.detail["owner.hasPet"]})},"Has Pet")),o("smoothly-tabs",{key:"ae43c2284ea51f72e415e00a1ada8cab10afebdb"},o("smoothly-tab",{key:"6485c24546d14f5845987da38646066c8f066c61",label:"Dog",name:"dog"},o("smoothly-input",{key:"257d6b7f1140ff7210173fb0e5de4704000bc432",type:"text",name:"dog.breed"},"Breed"),o("smoothly-input-file",{key:"a75e2029fe5b630410fee39462d197489a5291db",name:"dog.picture"},o("span",{key:"7d881935f028284bb80a3e33a47baf59813bc63a",slot:"label"},"Dog picture")),o("smoothly-input-date-time",{key:"f8991e1f543ad09a241977a2570a473597c79a80",name:"dog.lastWalk"},"Time of last walk"),o("smoothly-input-date",{key:"abdf29fd0b95142a6a28aacbc2a3de52b28acfa6",name:"dog.birthday"},"Dog birthday"),o("smoothly-input-date-range",{key:"07710a1af7f884114fee361d80b27e9351cd85d5",name:"dog.dateRange"},"Dog date range"),o("smoothly-input-select",{key:"1307c6bdafc9598e829ee60c4ce7c1b1546dc7af",name:"dog.favoriteHat"},o("span",{key:"4ed1cd24bba8e63db60d63cffdd1417023117a2d",slot:"label"},"Dog's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((e,t)=>o("smoothly-item",{value:e,key:t},e)))),o("smoothly-input-color",{key:"0b049778a99bee6df6d2ec48dbc071697136fe16",name:"dog.favoriteColor"},"Dog's Favorite Color"),o("smoothly-input-radio",{key:"c65093016a5b90c6bb25e85e4e3575124712c7be",name:"dog.favoritePizza"},o("span",{key:"9565009584ed77b05040ed9468700f116adb563c",slot:"label"},"Dog's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((e,t)=>o("smoothly-input-radio-item",{value:e,key:t},e)))),o("smoothly-input-checkbox",{key:"666be38409bc89d3e4650ad9401c854327ebefc1",name:"dog.hasPet"},"Has Pet")),o("smoothly-tab",{key:"fb5f8f5459b5f642b0c6a2439b319a42002959a4",label:"Cat",name:"cat",open:true},o("smoothly-input",{key:"682f5638f562e61dd092f83eccf7925f720cf194",name:"cat.favoriteFood"},"Favorite Food")),o("smoothly-tab",{key:"c5482174c9405a1136f012fa82cca350c2ed83c2",label:"Parrot",name:"parrot"},o("smoothly-input",{key:"f78b450a29382f8f856ebbff27745c953af53308",type:"price",name:"parrot.price",currency:"EUR"},"Summary Price"),o("smoothly-input-file",{key:"efbd349e10beda447d69c20474c692e2688bcaab",name:"parrot.picture"},o("span",{key:"01a1817ed064f0181742eb5aeb3f2723338f84e7",slot:"label"},"Summary picture"),o("smoothly-input-clear",{key:"be120da97155f2f5591d924aa32604d6086e31c1",slot:"end"})),o("smoothly-input-date",{key:"e59e3a24b479cfbd94eb3c6c7c5f394f93049274",name:"parrot.birthday"},"Summary birthday"),o("smoothly-input-date-range",{key:"4e918229a0745964257c0fb32f0ecd1a4283cdca",name:"parrot.ownedRange",start:"2020-01-01",end:"2020-01-15"},"Summary ownedRange",o("smoothly-input-reset",{key:"514983470344439c22cc6b68bace5b1609f04f89",slot:"end"})),o("smoothly-input-range",{key:"cca92a33c0bc46d7bf85e86e467b9f703063d35d",name:"parrot.height",label:"Height"},o("smoothly-input-reset",{key:"edb1126fcabc71b9d98f33257c8d282982e8ea36",slot:"end"})),o("smoothly-input-select",{key:"868654a72f5642b033392aa33b3b107b1d7ddfa4",name:"parrot.favoriteHat"},o("span",{key:"f811c0c08c4277aba3e85da353903b0185bb9df7",slot:"label"},"Summary's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((e,t)=>o("smoothly-item",{value:e,key:t},e)))),o("smoothly-input-month",{key:"4226a5e036817f3a80fce926c6761cee1a8bcd66",name:"parrot.month"},o("span",{key:"61570b4fc31693fd2d3f81bea327cfc890ea6c54",slot:"month-label"},"Summary month")),o("smoothly-input-color",{key:"23a77f1358748ee93995b71253bf43641593fc3c",name:"parrot.color"},"Summary Color"),o("smoothly-input-radio",{key:"a32718e3246ec6ffa4cb33eab22c6e549ef764f0",name:"parrot.favoritePizza"},o("span",{key:"5283e5e305bbc586ac74665518f077a2b20e261a",slot:"label"},"Summary's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((e,t)=>o("smoothly-input-radio-item",{value:e,key:t},e)))),o("smoothly-input-checkbox",{key:"15c5b92cd4ee1c6f46880327a7737abba978cb6a",name:"parrot.hasPet"},"Has Pet"))),o("smoothly-input-submit",{key:"975b1bbb887c933a2eacb4bc1a79dfdf99d73972",size:"icon",slot:"submit",color:"success",fill:"solid"})),o("smoothly-display",{key:"09fef0282ab5dea1bceacee812f4d9563c21ed2c",type:"json",value:this.value}))}static get style(){return K()}},[2,"smoothly-form-demo-pet",{hasOwner:[32],owner:[32],value:[32]}]);function q(){if(typeof customElements==="undefined"){return}const e=["smoothly-form-demo-pet","smoothly-button","smoothly-button-confirm","smoothly-calendar","smoothly-date-text","smoothly-display","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-form","smoothly-icon","smoothly-input","smoothly-input-checkbox","smoothly-input-clear","smoothly-input-color","smoothly-input-date","smoothly-input-date-range","smoothly-input-date-time","smoothly-input-file","smoothly-input-month","smoothly-input-radio","smoothly-input-radio-item","smoothly-input-range","smoothly-input-reset","smoothly-input-select","smoothly-input-submit","smoothly-item","smoothly-spinner","smoothly-tab","smoothly-tabs","smoothly-toggle-switch"];e.forEach((e=>{switch(e){case"smoothly-form-demo-pet":if(!customElements.get(m(e))){customElements.define(m(e),Z)}break;case"smoothly-button":if(!customElements.get(m(e))){i()}break;case"smoothly-button-confirm":if(!customElements.get(m(e))){r()}break;case"smoothly-calendar":if(!customElements.get(m(e))){l()}break;case"smoothly-date-text":if(!customElements.get(m(e))){n()}break;case"smoothly-display":if(!customElements.get(m(e))){f()}break;case"smoothly-display-json":if(!customElements.get(m(e))){d()}break;case"smoothly-display-json-object":if(!customElements.get(m(e))){b()}break;case"smoothly-display-json-primitive":if(!customElements.get(m(e))){y()}break;case"smoothly-display-json-record-key":if(!customElements.get(m(e))){p()}break;case"smoothly-form":if(!customElements.get(m(e))){h()}break;case"smoothly-icon":if(!customElements.get(m(e))){u()}break;case"smoothly-input":if(!customElements.get(m(e))){k()}break;case"smoothly-input-checkbox":if(!customElements.get(m(e))){j()}break;case"smoothly-input-clear":if(!customElements.get(m(e))){g()}break;case"smoothly-input-color":if(!customElements.get(m(e))){v()}break;case"smoothly-input-date":if(!customElements.get(m(e))){E()}break;case"smoothly-input-date-range":if(!customElements.get(m(e))){w()}break;case"smoothly-input-date-time":if(!customElements.get(m(e))){O()}break;case"smoothly-input-file":if(!customElements.get(m(e))){S()}break;case"smoothly-input-month":if(!customElements.get(m(e))){P()}break;case"smoothly-input-radio":if(!customElements.get(m(e))){F()}break;case"smoothly-input-radio-item":if(!customElements.get(m(e))){x()}break;case"smoothly-input-range":if(!customElements.get(m(e))){z()}break;case"smoothly-input-reset":if(!customElements.get(m(e))){C()}break;case"smoothly-input-select":if(!customElements.get(m(e))){D()}break;case"smoothly-input-submit":if(!customElements.get(m(e))){H()}break;case"smoothly-item":if(!customElements.get(m(e))){I()}break;case"smoothly-spinner":if(!customElements.get(m(e))){R()}break;case"smoothly-tab":if(!customElements.get(m(e))){B()}break;case"smoothly-tabs":if(!customElements.get(m(e))){N()}break;case"smoothly-toggle-switch":if(!customElements.get(m(e))){M()}break}}))}q();export{Z as S,q as d};
2
+ //# sourceMappingURL=p-J05ZrIy8.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as t,h as o,d as s,t as a}from"./p-BsZrGTcp.js";import{i}from"./p-BVKhAhsB.js";import{d as m}from"./p-mmAi00ak.js";import{d as n}from"./p-DES0wbqs.js";import{d as r}from"./p-BE5E3Jm6.js";import{d}from"./p-CN3iME9d.js";import{d as l}from"./p-DG2pfnCV.js";import{d as c}from"./p-uFR5K4vd.js";import{d as h}from"./p-DvZK__s-.js";import{d as u}from"./p-F8qX8ZuL.js";import{d as f}from"./p-DFSiKg4M.js";import{d as p}from"./p-BWF43Ktc.js";import{d as y}from"./p-BAMxyPpe.js";import{d as b}from"./p-BkrgS2Eo.js";import{d as k}from"./p-CG405xpf.js";import{d as j}from"./p-CsbRRVxH.js";import{d as g}from"./p-BW08Z-5c.js";import{d as x}from"./p-CRlfq-AL.js";import{d as E}from"./p-CcJ_7PQR.js";import{d as v}from"./p-CvhP-Vls.js";import{d as C}from"./p-WyNQ9SZM.js";import{d as I}from"./p-Bd-a9CG1.js";import{d as S}from"./p-DtGUtK97.js";import{d as U}from"./p-D6t9mpY2.js";const w=()=>`.sc-smoothly-input-demo-user-input-h{max-width:min(100%, 56rem);margin-inline:auto;display:grid;grid-template-columns:12rem 1fr;gap:1rem}.sc-smoothly-input-demo-user-input-h>div.sc-smoothly-input-demo-user-input{grid-column:1 / -1}@media (max-width: 48rem){.sc-smoothly-input-demo-user-input-h{grid-template-columns:1fr}}`;const B=e(class e extends t{constructor(e){super();if(e!==false){this.__registerHost()}this.values=["zero","one","two","three","four","five"];this.colors=["#ff0000","#00ff00","#0000ff","#ffff00","#00ffff","#ff00ff"]}increment(e){return e===undefined?0:(e+1)%this.values.length}render(){var e,t;return o(s,{key:"f2a4d41e58f06ede6a72fb3f8b172ffba324ba1d"},o("div",{key:"6730bc3f89a2d8a01d2225b520709d8ccf3e7890"},o("h2",{key:"8894c809fd95504f8f01579a11a975b8f143c656"},"User Input Event"),o("p",{key:"741a6f7d9baf8b8bda50330141d87a0160d7bacb"},"These inputs demonstrate how user input is handled. The ",o("code",{key:"467a82db0e06629f333754223ce39645339d777d"},"smoothlyUserInput")," event fires only when the user interacts with an input, not when its value is changed programmatically (such as by clicking the buttons above).",o("br",{key:"ab05e1e07d915dbc118a72a9bdd0e6a091bb21f1"}),"Check the console to see the details of each ",o("code",{key:"efa4627f8e89c03732e2dcab4d1fdce5d0ac1ef6"},"smoothlyUserInput")," event.")),o("smoothly-button",{key:"2dd9580d4ef091d5c2c6a0591b9318ebb7359fe2",color:"tertiary",onClick:()=>this.textIndex=this.increment(this.textIndex)},"Change text"),o("smoothly-input",{key:"0f616b3fd91d0b759f3dbb5d8c8c3ff8f46347b8",looks:"border",name:"demo-user-input-text",value:this.textIndex===undefined?"":this.values[this.textIndex],onSmoothlyUserInput:e=>console.debug(e.type,e.detail.name,e.detail.value)},"Text input"),o("smoothly-button",{key:"190d254c825bd58806a35853aff82a48a7e80f7a",onClick:()=>this.selectIndex=this.increment(this.selectIndex),color:"tertiary"},"Next select item"),o("smoothly-input-select",{key:"1f8241f1cbd29d9c72b91c064d00960fcf8e67be",looks:"border",name:"demo-user-input-select",onSmoothlyUserInput:e=>console.debug(e.type,e.detail.name,e.detail.value)},o("span",{key:"0ee1caf5240b16279f225e77c61eec8ddfa9af96",slot:"label"},"Select input"),this.values.map(((e,t)=>o("smoothly-item",{value:t,selected:t==this.selectIndex},e)))),o("smoothly-button",{key:"ab912c84539c520b0822afcba1f467ad486a3502",color:"tertiary",onClick:()=>this.checkboxChecked=!this.checkboxChecked},"Toggle checkbox"),o("smoothly-input-checkbox",{key:"4561b0608b11b9da9acaa0dd48d80284994bbdba",looks:"border",name:"demo-user-input-checkbox",checked:this.checkboxChecked,onSmoothlyUserInput:e=>console.debug(e.type,e.detail.name,e.detail.value)},"Checkbox input"),o("smoothly-button",{key:"aaae7c8f2458babc9631388b0e968528fd138148",color:"tertiary",onClick:()=>this.radioIndex=this.increment(this.radioIndex)},"Next radio item"),o("smoothly-input-radio",{key:"f70403edaf65e8ff1358461a0d773e1aaeee8718",looks:"border",name:"demo-user-input-radio",onSmoothlyUserInput:e=>console.debug(e.type,e.detail.name,e.detail.value)},o("span",{key:"9c8c3237fdf0ff4aac2dbbf6c7c1b9832993929b",slot:"label"},"Radio input"),this.values.map(((e,t)=>o("smoothly-input-radio-item",{value:e,selected:t==this.radioIndex},e)))),o("smoothly-button",{key:"8eae0440201647bbceb3ad3464ddadbaefc4ea38",color:"tertiary",onClick:()=>this.rangeValue=this.increment(this.rangeValue)},"Next range value"),o("smoothly-input-range",{key:"ff18785f22364aa89c709f0a156c3c824e802a26",looks:"border",name:"demo-user-input-range",step:1,min:0,max:this.values.length,value:this.rangeValue,label:"Range Input",onSmoothlyUserInput:e=>console.debug(e.type,e.detail.name,e.detail.value)}),o("smoothly-button",{key:"d6bdc4a1471dccd98a001044bf22375e38c11279",color:"tertiary",onClick:()=>this.colorIndex=this.increment(this.colorIndex)},"Next color"),o("smoothly-input-color",{key:"c65c8a43e19bb1502da3098d57288d139ffe2faf",looks:"border",name:"demo-user-input-color",value:typeof this.colorIndex=="number"?this.colors[this.colorIndex]:undefined,onSmoothlyUserInput:e=>console.debug(e.type,e.detail.name,e.detail.value)},"Color input"),o("smoothly-button",{key:"6d0f8d7e46b889fcbc94d5dd79b274fc623cd7ba",color:"tertiary",onClick:()=>this.dateValue=this.dateValue?i.Date.next(this.dateValue):i.Date.now()},"Next day"),o("smoothly-input-date",{key:"3e2c83fc75562f0d755cb5440bc2d1aa539dcde9",looks:"border",name:"demo-user-input-date",value:this.dateValue,onSmoothlyUserInput:e=>console.debug(e.type,e.detail.name,e.detail.value)},"Date input"),o("smoothly-button",{key:"c9db4d875e2fcb1f913fcd941f6d9ba9eb6393ee",color:"tertiary",onClick:()=>this.datetimeValue=this.datetimeValue?i.DateTime.nextDay(this.datetimeValue):i.DateTime.now()},"Next date time"),o("smoothly-input-date-time",{key:"2a582db04d01beb54682436d3663a0adeeeb897f",looks:"border",name:"demo-user-input-datetime",value:this.datetimeValue,onSmoothlyUserInput:e=>console.debug(e.type,e.detail.name,e.detail.value)},"Date time input"),o("smoothly-button",{key:"c1623f533dc310005f206282f3ba11a6697b15ca",color:"tertiary",onClick:()=>this.dateRangeValue=this.dateRangeValue?{start:i.Date.next(this.dateRangeValue.start),end:i.Date.next(this.dateRangeValue.end)}:{start:i.Date.now(),end:i.Date.next(i.Date.now(),10)}},"Next date range"),o("smoothly-input-date-range",{key:"f884728adae7e57072deef782aab61f8b57d8147",looks:"border",name:"demo-user-input-daterange",start:(e=this.dateRangeValue)===null||e===void 0?void 0:e.start,end:(t=this.dateRangeValue)===null||t===void 0?void 0:t.end,onSmoothlyUserInput:e=>console.debug(e.type,e.detail.name,e.detail.value)},"Date range input"))}static get style(){return w()}},[2,"smoothly-input-demo-user-input",{textIndex:[32],selectIndex:[32],checkboxChecked:[32],radioIndex:[32],rangeValue:[32],colorIndex:[32],dateValue:[32],datetimeValue:[32],dateRangeValue:[32]}]);function D(){if(typeof customElements==="undefined"){return}const e=["smoothly-input-demo-user-input","smoothly-button","smoothly-calendar","smoothly-date-text","smoothly-display","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-icon","smoothly-input","smoothly-input-checkbox","smoothly-input-color","smoothly-input-date","smoothly-input-date-range","smoothly-input-date-time","smoothly-input-month","smoothly-input-radio","smoothly-input-radio-item","smoothly-input-range","smoothly-input-select","smoothly-item","smoothly-toggle-switch"];e.forEach((e=>{switch(e){case"smoothly-input-demo-user-input":if(!customElements.get(a(e))){customElements.define(a(e),B)}break;case"smoothly-button":if(!customElements.get(a(e))){m()}break;case"smoothly-calendar":if(!customElements.get(a(e))){n()}break;case"smoothly-date-text":if(!customElements.get(a(e))){r()}break;case"smoothly-display":if(!customElements.get(a(e))){d()}break;case"smoothly-display-json":if(!customElements.get(a(e))){l()}break;case"smoothly-display-json-object":if(!customElements.get(a(e))){c()}break;case"smoothly-display-json-primitive":if(!customElements.get(a(e))){h()}break;case"smoothly-display-json-record-key":if(!customElements.get(a(e))){u()}break;case"smoothly-icon":if(!customElements.get(a(e))){f()}break;case"smoothly-input":if(!customElements.get(a(e))){p()}break;case"smoothly-input-checkbox":if(!customElements.get(a(e))){y()}break;case"smoothly-input-color":if(!customElements.get(a(e))){b()}break;case"smoothly-input-date":if(!customElements.get(a(e))){k()}break;case"smoothly-input-date-range":if(!customElements.get(a(e))){j()}break;case"smoothly-input-date-time":if(!customElements.get(a(e))){g()}break;case"smoothly-input-month":if(!customElements.get(a(e))){x()}break;case"smoothly-input-radio":if(!customElements.get(a(e))){E()}break;case"smoothly-input-radio-item":if(!customElements.get(a(e))){v()}break;case"smoothly-input-range":if(!customElements.get(a(e))){C()}break;case"smoothly-input-select":if(!customElements.get(a(e))){I()}break;case"smoothly-item":if(!customElements.get(a(e))){S()}break;case"smoothly-toggle-switch":if(!customElements.get(a(e))){U()}break}}))}D();export{B as S,D as d};
2
- //# sourceMappingURL=p-CeUOn6zh.js.map
1
+ import{p as e,H as t,h as o,d as s,t as a}from"./p-BsZrGTcp.js";import{i}from"./p-BVKhAhsB.js";import{d as m}from"./p-mmAi00ak.js";import{d as n}from"./p-l7KxEsrG.js";import{d as r}from"./p-BE5E3Jm6.js";import{d as l}from"./p-CN3iME9d.js";import{d}from"./p-DG2pfnCV.js";import{d as c}from"./p-uFR5K4vd.js";import{d as h}from"./p-DvZK__s-.js";import{d as u}from"./p-F8qX8ZuL.js";import{d as f}from"./p-DFSiKg4M.js";import{d as p}from"./p-BWF43Ktc.js";import{d as y}from"./p-BAMxyPpe.js";import{d as b}from"./p-BkrgS2Eo.js";import{d as k}from"./p-CZY1H_tZ.js";import{d as j}from"./p-Bp65xiCy.js";import{d as g}from"./p-D1kz47jP.js";import{d as x}from"./p-EqRJl32n.js";import{d as E}from"./p-CcJ_7PQR.js";import{d as v}from"./p-CvhP-Vls.js";import{d as C}from"./p-WyNQ9SZM.js";import{d as I}from"./p-DTo2Itg9.js";import{d as S}from"./p-DtGUtK97.js";import{d as U}from"./p-D6t9mpY2.js";const w=()=>`.sc-smoothly-input-demo-user-input-h{max-width:min(100%, 56rem);margin-inline:auto;display:grid;grid-template-columns:12rem 1fr;gap:1rem}.sc-smoothly-input-demo-user-input-h>div.sc-smoothly-input-demo-user-input{grid-column:1 / -1}@media (max-width: 48rem){.sc-smoothly-input-demo-user-input-h{grid-template-columns:1fr}}`;const D=e(class e extends t{constructor(e){super();if(e!==false){this.__registerHost()}this.values=["zero","one","two","three","four","five"];this.colors=["#ff0000","#00ff00","#0000ff","#ffff00","#00ffff","#ff00ff"]}increment(e){return e===undefined?0:(e+1)%this.values.length}render(){var e,t;return o(s,{key:"f2a4d41e58f06ede6a72fb3f8b172ffba324ba1d"},o("div",{key:"6730bc3f89a2d8a01d2225b520709d8ccf3e7890"},o("h2",{key:"8894c809fd95504f8f01579a11a975b8f143c656"},"User Input Event"),o("p",{key:"741a6f7d9baf8b8bda50330141d87a0160d7bacb"},"These inputs demonstrate how user input is handled. The ",o("code",{key:"467a82db0e06629f333754223ce39645339d777d"},"smoothlyUserInput")," event fires only when the user interacts with an input, not when its value is changed programmatically (such as by clicking the buttons above).",o("br",{key:"ab05e1e07d915dbc118a72a9bdd0e6a091bb21f1"}),"Check the console to see the details of each ",o("code",{key:"efa4627f8e89c03732e2dcab4d1fdce5d0ac1ef6"},"smoothlyUserInput")," event.")),o("smoothly-button",{key:"2dd9580d4ef091d5c2c6a0591b9318ebb7359fe2",color:"tertiary",onClick:()=>this.textIndex=this.increment(this.textIndex)},"Change text"),o("smoothly-input",{key:"0f616b3fd91d0b759f3dbb5d8c8c3ff8f46347b8",looks:"border",name:"demo-user-input-text",value:this.textIndex===undefined?"":this.values[this.textIndex],onSmoothlyUserInput:e=>console.debug(e.type,e.detail.name,e.detail.value)},"Text input"),o("smoothly-button",{key:"190d254c825bd58806a35853aff82a48a7e80f7a",onClick:()=>this.selectIndex=this.increment(this.selectIndex),color:"tertiary"},"Next select item"),o("smoothly-input-select",{key:"1f8241f1cbd29d9c72b91c064d00960fcf8e67be",looks:"border",name:"demo-user-input-select",onSmoothlyUserInput:e=>console.debug(e.type,e.detail.name,e.detail.value)},o("span",{key:"0ee1caf5240b16279f225e77c61eec8ddfa9af96",slot:"label"},"Select input"),this.values.map(((e,t)=>o("smoothly-item",{value:t,selected:t==this.selectIndex},e)))),o("smoothly-button",{key:"ab912c84539c520b0822afcba1f467ad486a3502",color:"tertiary",onClick:()=>this.checkboxChecked=!this.checkboxChecked},"Toggle checkbox"),o("smoothly-input-checkbox",{key:"4561b0608b11b9da9acaa0dd48d80284994bbdba",looks:"border",name:"demo-user-input-checkbox",checked:this.checkboxChecked,onSmoothlyUserInput:e=>console.debug(e.type,e.detail.name,e.detail.value)},"Checkbox input"),o("smoothly-button",{key:"aaae7c8f2458babc9631388b0e968528fd138148",color:"tertiary",onClick:()=>this.radioIndex=this.increment(this.radioIndex)},"Next radio item"),o("smoothly-input-radio",{key:"f70403edaf65e8ff1358461a0d773e1aaeee8718",looks:"border",name:"demo-user-input-radio",onSmoothlyUserInput:e=>console.debug(e.type,e.detail.name,e.detail.value)},o("span",{key:"9c8c3237fdf0ff4aac2dbbf6c7c1b9832993929b",slot:"label"},"Radio input"),this.values.map(((e,t)=>o("smoothly-input-radio-item",{value:e,selected:t==this.radioIndex},e)))),o("smoothly-button",{key:"8eae0440201647bbceb3ad3464ddadbaefc4ea38",color:"tertiary",onClick:()=>this.rangeValue=this.increment(this.rangeValue)},"Next range value"),o("smoothly-input-range",{key:"ff18785f22364aa89c709f0a156c3c824e802a26",looks:"border",name:"demo-user-input-range",step:1,min:0,max:this.values.length,value:this.rangeValue,label:"Range Input",onSmoothlyUserInput:e=>console.debug(e.type,e.detail.name,e.detail.value)}),o("smoothly-button",{key:"d6bdc4a1471dccd98a001044bf22375e38c11279",color:"tertiary",onClick:()=>this.colorIndex=this.increment(this.colorIndex)},"Next color"),o("smoothly-input-color",{key:"c65c8a43e19bb1502da3098d57288d139ffe2faf",looks:"border",name:"demo-user-input-color",value:typeof this.colorIndex=="number"?this.colors[this.colorIndex]:undefined,onSmoothlyUserInput:e=>console.debug(e.type,e.detail.name,e.detail.value)},"Color input"),o("smoothly-button",{key:"6d0f8d7e46b889fcbc94d5dd79b274fc623cd7ba",color:"tertiary",onClick:()=>this.dateValue=this.dateValue?i.Date.next(this.dateValue):i.Date.now()},"Next day"),o("smoothly-input-date",{key:"3e2c83fc75562f0d755cb5440bc2d1aa539dcde9",looks:"border",name:"demo-user-input-date",value:this.dateValue,onSmoothlyUserInput:e=>console.debug(e.type,e.detail.name,e.detail.value)},"Date input"),o("smoothly-button",{key:"c9db4d875e2fcb1f913fcd941f6d9ba9eb6393ee",color:"tertiary",onClick:()=>this.datetimeValue=this.datetimeValue?i.DateTime.nextDay(this.datetimeValue):i.DateTime.now()},"Next date time"),o("smoothly-input-date-time",{key:"2a582db04d01beb54682436d3663a0adeeeb897f",looks:"border",name:"demo-user-input-datetime",value:this.datetimeValue,onSmoothlyUserInput:e=>console.debug(e.type,e.detail.name,e.detail.value)},"Date time input"),o("smoothly-button",{key:"c1623f533dc310005f206282f3ba11a6697b15ca",color:"tertiary",onClick:()=>this.dateRangeValue=this.dateRangeValue?{start:i.Date.next(this.dateRangeValue.start),end:i.Date.next(this.dateRangeValue.end)}:{start:i.Date.now(),end:i.Date.next(i.Date.now(),10)}},"Next date range"),o("smoothly-input-date-range",{key:"f884728adae7e57072deef782aab61f8b57d8147",looks:"border",name:"demo-user-input-daterange",start:(e=this.dateRangeValue)===null||e===void 0?void 0:e.start,end:(t=this.dateRangeValue)===null||t===void 0?void 0:t.end,onSmoothlyUserInput:e=>console.debug(e.type,e.detail.name,e.detail.value)},"Date range input"))}static get style(){return w()}},[2,"smoothly-input-demo-user-input",{textIndex:[32],selectIndex:[32],checkboxChecked:[32],radioIndex:[32],rangeValue:[32],colorIndex:[32],dateValue:[32],datetimeValue:[32],dateRangeValue:[32]}]);function N(){if(typeof customElements==="undefined"){return}const e=["smoothly-input-demo-user-input","smoothly-button","smoothly-calendar","smoothly-date-text","smoothly-display","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-icon","smoothly-input","smoothly-input-checkbox","smoothly-input-color","smoothly-input-date","smoothly-input-date-range","smoothly-input-date-time","smoothly-input-month","smoothly-input-radio","smoothly-input-radio-item","smoothly-input-range","smoothly-input-select","smoothly-item","smoothly-toggle-switch"];e.forEach((e=>{switch(e){case"smoothly-input-demo-user-input":if(!customElements.get(a(e))){customElements.define(a(e),D)}break;case"smoothly-button":if(!customElements.get(a(e))){m()}break;case"smoothly-calendar":if(!customElements.get(a(e))){n()}break;case"smoothly-date-text":if(!customElements.get(a(e))){r()}break;case"smoothly-display":if(!customElements.get(a(e))){l()}break;case"smoothly-display-json":if(!customElements.get(a(e))){d()}break;case"smoothly-display-json-object":if(!customElements.get(a(e))){c()}break;case"smoothly-display-json-primitive":if(!customElements.get(a(e))){h()}break;case"smoothly-display-json-record-key":if(!customElements.get(a(e))){u()}break;case"smoothly-icon":if(!customElements.get(a(e))){f()}break;case"smoothly-input":if(!customElements.get(a(e))){p()}break;case"smoothly-input-checkbox":if(!customElements.get(a(e))){y()}break;case"smoothly-input-color":if(!customElements.get(a(e))){b()}break;case"smoothly-input-date":if(!customElements.get(a(e))){k()}break;case"smoothly-input-date-range":if(!customElements.get(a(e))){j()}break;case"smoothly-input-date-time":if(!customElements.get(a(e))){g()}break;case"smoothly-input-month":if(!customElements.get(a(e))){x()}break;case"smoothly-input-radio":if(!customElements.get(a(e))){E()}break;case"smoothly-input-radio-item":if(!customElements.get(a(e))){v()}break;case"smoothly-input-range":if(!customElements.get(a(e))){C()}break;case"smoothly-input-select":if(!customElements.get(a(e))){I()}break;case"smoothly-item":if(!customElements.get(a(e))){S()}break;case"smoothly-toggle-switch":if(!customElements.get(a(e))){U()}break}}))}N();export{D as S,N as d};
2
+ //# sourceMappingURL=p-_46rt1sK.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as t,h as o,d as s,t as m}from"./p-BsZrGTcp.js";import{d as a}from"./p-mmAi00ak.js";import{d as c}from"./p-Cl8L61mt.js";import{d as n}from"./p-DES0wbqs.js";import{d as l}from"./p-BE5E3Jm6.js";import{d as r}from"./p-BLDkKrD6.js";import{d as i}from"./p-DFSiKg4M.js";import{d as f}from"./p-BWF43Ktc.js";import{d as b}from"./p-CG405xpf.js";import{d as p}from"./p-CsbRRVxH.js";import{d}from"./p-BR6cMQkb.js";import{d as u}from"./p-CRlfq-AL.js";import{d as y}from"./p-Bd-a9CG1.js";import{d as h}from"./p-C3bp3FF4.js";import{d as k}from"./p-DtGUtK97.js";import{d as E}from"./p-MWZzvkuh.js";const j=e(class e extends t{constructor(e){super();if(e!==false){this.__registerHost()}}render(){return o(s,{key:"673b06b46e297f0abc1c49bcf7ee7acf46cb0295"},o("h2",{key:"4ffa92eb6f9261555d777d05c3e78c404a7df03a"},"Transparent"),o("smoothly-form",{key:"03c25db049779ee90220f0028f18e6e70c037408",looks:"transparent",onSmoothlyFormSubmit:e=>console.log(e.detail.value)},o("smoothly-input-file",{key:"99424c41ab07b388c9e9c35c799e2daec342389b",name:"file"},o("span",{key:"4b686a0fe7159e757d1a76070e2b6246e17a15dc",slot:"label"},"File"),o("smoothly-icon",{key:"8e323ca63e51c6b5acb6d4d8b31641dbbd4e98b0",slot:"button",name:"folder-open-outline",size:"small"})),o("smoothly-input",{key:"fba6aa2567e053902d9100831573d2fc6aaac1b2",type:"duration",looks:"transparent",placeholder:"h:mm"},"Input"),o("smoothly-input-date",{key:"49eeabd20143a15cf14ff6289a3aa28be531a5d9"},"Date"),o("smoothly-input-date-range",{key:"ea4235cc90265d0b73c96d2f2ee9665ba62c40e4"},"Date Range"),o("smoothly-input-select",{key:"ed44815dd57ba74c31a436fff6ece4edcd8091ae",name:"transport"},o("smoothly-item",{key:"f7679b58d170d3bbf264fc67556b21ecc55c7b3e",value:"plane"},o("smoothly-icon",{key:"a16734c2ed81ae0985db7328c389818d717f976e",name:"airplane-outline"})),o("smoothly-item",{key:"8c08a4ce4812a1ecb8d0304c002b6179f586a21f",value:"car"},o("smoothly-icon",{key:"2488556ed2e45e6e4fff17c647ae987b8f4f1773",name:"car-outline"})),o("smoothly-item",{key:"5b0cb1c46c7783a49b954b5eba8bafcd23cf2985",value:"bus",selected:true},o("smoothly-icon",{key:"62b98cc6a689f5c1d49eee728b697321a85283f8",name:"bus-outline"}))),o("smoothly-input-submit",{key:"5a229bbbd0cf22d44080a22d583403569ca62a5f",icon:"checkbox-outline"})))}},[2,"smoothly-form-demo-transparent"]);function x(){if(typeof customElements==="undefined"){return}const e=["smoothly-form-demo-transparent","smoothly-button","smoothly-button-confirm","smoothly-calendar","smoothly-date-text","smoothly-form","smoothly-icon","smoothly-input","smoothly-input-date","smoothly-input-date-range","smoothly-input-file","smoothly-input-month","smoothly-input-select","smoothly-input-submit","smoothly-item","smoothly-spinner"];e.forEach((e=>{switch(e){case"smoothly-form-demo-transparent":if(!customElements.get(m(e))){customElements.define(m(e),j)}break;case"smoothly-button":if(!customElements.get(m(e))){a()}break;case"smoothly-button-confirm":if(!customElements.get(m(e))){c()}break;case"smoothly-calendar":if(!customElements.get(m(e))){n()}break;case"smoothly-date-text":if(!customElements.get(m(e))){l()}break;case"smoothly-form":if(!customElements.get(m(e))){r()}break;case"smoothly-icon":if(!customElements.get(m(e))){i()}break;case"smoothly-input":if(!customElements.get(m(e))){f()}break;case"smoothly-input-date":if(!customElements.get(m(e))){b()}break;case"smoothly-input-date-range":if(!customElements.get(m(e))){p()}break;case"smoothly-input-file":if(!customElements.get(m(e))){d()}break;case"smoothly-input-month":if(!customElements.get(m(e))){u()}break;case"smoothly-input-select":if(!customElements.get(m(e))){y()}break;case"smoothly-input-submit":if(!customElements.get(m(e))){h()}break;case"smoothly-item":if(!customElements.get(m(e))){k()}break;case"smoothly-spinner":if(!customElements.get(m(e))){E()}break}}))}x();export{j as S,x as d};
2
- //# sourceMappingURL=p-C0Z37bUn.js.map
1
+ import{p as e,H as t,h as o,d as s,t as m}from"./p-BsZrGTcp.js";import{d as a}from"./p-mmAi00ak.js";import{d as c}from"./p-Cl8L61mt.js";import{d as n}from"./p-l7KxEsrG.js";import{d as l}from"./p-BE5E3Jm6.js";import{d as r}from"./p-BLDkKrD6.js";import{d as i}from"./p-DFSiKg4M.js";import{d as f}from"./p-BWF43Ktc.js";import{d as b}from"./p-CZY1H_tZ.js";import{d as p}from"./p-Bp65xiCy.js";import{d}from"./p-BR6cMQkb.js";import{d as y}from"./p-EqRJl32n.js";import{d as u}from"./p-DTo2Itg9.js";import{d as h}from"./p-C3bp3FF4.js";import{d as k}from"./p-DtGUtK97.js";import{d as E}from"./p-MWZzvkuh.js";const j=e(class e extends t{constructor(e){super();if(e!==false){this.__registerHost()}}render(){return o(s,{key:"673b06b46e297f0abc1c49bcf7ee7acf46cb0295"},o("h2",{key:"4ffa92eb6f9261555d777d05c3e78c404a7df03a"},"Transparent"),o("smoothly-form",{key:"03c25db049779ee90220f0028f18e6e70c037408",looks:"transparent",onSmoothlyFormSubmit:e=>console.log(e.detail.value)},o("smoothly-input-file",{key:"99424c41ab07b388c9e9c35c799e2daec342389b",name:"file"},o("span",{key:"4b686a0fe7159e757d1a76070e2b6246e17a15dc",slot:"label"},"File"),o("smoothly-icon",{key:"8e323ca63e51c6b5acb6d4d8b31641dbbd4e98b0",slot:"button",name:"folder-open-outline",size:"small"})),o("smoothly-input",{key:"fba6aa2567e053902d9100831573d2fc6aaac1b2",type:"duration",looks:"transparent",placeholder:"h:mm"},"Input"),o("smoothly-input-date",{key:"49eeabd20143a15cf14ff6289a3aa28be531a5d9"},"Date"),o("smoothly-input-date-range",{key:"ea4235cc90265d0b73c96d2f2ee9665ba62c40e4"},"Date Range"),o("smoothly-input-select",{key:"ed44815dd57ba74c31a436fff6ece4edcd8091ae",name:"transport"},o("smoothly-item",{key:"f7679b58d170d3bbf264fc67556b21ecc55c7b3e",value:"plane"},o("smoothly-icon",{key:"a16734c2ed81ae0985db7328c389818d717f976e",name:"airplane-outline"})),o("smoothly-item",{key:"8c08a4ce4812a1ecb8d0304c002b6179f586a21f",value:"car"},o("smoothly-icon",{key:"2488556ed2e45e6e4fff17c647ae987b8f4f1773",name:"car-outline"})),o("smoothly-item",{key:"5b0cb1c46c7783a49b954b5eba8bafcd23cf2985",value:"bus",selected:true},o("smoothly-icon",{key:"62b98cc6a689f5c1d49eee728b697321a85283f8",name:"bus-outline"}))),o("smoothly-input-submit",{key:"5a229bbbd0cf22d44080a22d583403569ca62a5f",icon:"checkbox-outline"})))}},[2,"smoothly-form-demo-transparent"]);function x(){if(typeof customElements==="undefined"){return}const e=["smoothly-form-demo-transparent","smoothly-button","smoothly-button-confirm","smoothly-calendar","smoothly-date-text","smoothly-form","smoothly-icon","smoothly-input","smoothly-input-date","smoothly-input-date-range","smoothly-input-file","smoothly-input-month","smoothly-input-select","smoothly-input-submit","smoothly-item","smoothly-spinner"];e.forEach((e=>{switch(e){case"smoothly-form-demo-transparent":if(!customElements.get(m(e))){customElements.define(m(e),j)}break;case"smoothly-button":if(!customElements.get(m(e))){a()}break;case"smoothly-button-confirm":if(!customElements.get(m(e))){c()}break;case"smoothly-calendar":if(!customElements.get(m(e))){n()}break;case"smoothly-date-text":if(!customElements.get(m(e))){l()}break;case"smoothly-form":if(!customElements.get(m(e))){r()}break;case"smoothly-icon":if(!customElements.get(m(e))){i()}break;case"smoothly-input":if(!customElements.get(m(e))){f()}break;case"smoothly-input-date":if(!customElements.get(m(e))){b()}break;case"smoothly-input-date-range":if(!customElements.get(m(e))){p()}break;case"smoothly-input-file":if(!customElements.get(m(e))){d()}break;case"smoothly-input-month":if(!customElements.get(m(e))){y()}break;case"smoothly-input-select":if(!customElements.get(m(e))){u()}break;case"smoothly-input-submit":if(!customElements.get(m(e))){h()}break;case"smoothly-item":if(!customElements.get(m(e))){k()}break;case"smoothly-spinner":if(!customElements.get(m(e))){E()}break}}))}x();export{j as S,x as d};
2
+ //# sourceMappingURL=p-fZNu4CkP.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,h as o,d as s,t as a}from"./p-BsZrGTcp.js";import{C as d,F as l,I as m}from"./p-Br0kWrBT.js";import"./p-BVKhAhsB.js";import"./p-DoFURPl2.js";import{d as c}from"./p-mmAi00ak.js";import{d as n}from"./p-BLDkKrD6.js";import{d as i}from"./p-DFSiKg4M.js";import{d as b}from"./p-BWF43Ktc.js";import{d as r}from"./p-BAMxyPpe.js";import{d as h}from"./p-e3dhSqSH.js";import{d as u}from"./p-CcJ_7PQR.js";import{d as p}from"./p-CvhP-Vls.js";import{d as f}from"./p-Bd-a9CG1.js";import{d as y}from"./p-DtGUtK97.js";import{d as k}from"./p-MWZzvkuh.js";const x=()=>`.sc-smoothly-button-demo-standard-h smoothly-input-select.sc-smoothly-button-demo-standard smoothly-item.sc-smoothly-button-demo-standard{display:flex}.sc-smoothly-button-demo-standard-h .buttons.sc-smoothly-button-demo-standard{display:flex;flex-wrap:wrap;gap:0.5rem}.sc-smoothly-button-demo-standard-h .buttons.sc-smoothly-button-demo-standard>smoothly-button.sc-smoothly-button-demo-standard{margin-block:0}.sc-smoothly-button-demo-standard-h .height-text.sc-smoothly-button-demo-standard{border-left:3px dotted rgb(var(--smoothly-default-contrast));padding-inline:1rem;align-content:center}`;const v=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.props={};this.heightText=""}updateInputHeightText(){setTimeout((()=>{const t=Number(getComputedStyle(document.documentElement).fontSize.replace("px",""));if(this.lastButton){const e=this.lastButton.clientHeight;this.heightText=`${e/t}rem (${e}px)`}}),100)}render(){return o(s,{key:"d6e6ca6091ae99e7203ec3d88a00d4b486f5f3bd"},o("h2",{key:"b62fd377ec00749b0f0f7b8cff1e2e2fdceb318d"},"Button Standard"),o("smoothly-form",{key:"c9c1113d5c7073b66d0cfbd90bfa552ca3104d37",onSmoothlyFormInput:t=>this.props=t.detail,looks:"grid"},o("smoothly-input-checkbox",{key:"0666c152084c24ec1596ab16d09b04da4f885752",name:"text.useColor",checked:true},"Use Color as Text"),o("smoothly-input-select",{key:"77fa423c1bed60c446bad2fee6ef4927610ac8af",name:"size"},o("span",{key:"d5cd74d1252542454a5fb6441d2099da14a53023",slot:"label"},"Size"),["small","large","icon","flexible"].map((t=>o("smoothly-item",{value:t,key:t},t)))),o("smoothly-input",{key:"b6df255a745261b34ef164f04c5458c77a9c286b",name:"text.value",value:"Button"},"Text",o("smoothly-input-clear",{key:"0ee5dff1bd206c5db7d1928773cef6890fb2ed80",slot:"end"})),o("smoothly-input-radio",{key:"f6f3027ea26fc6c6d077b79bbb228b6cd0809e54",name:"expand",clearable:true},o("span",{key:"33436d08686b4714e0cfdb0cea7ba6b082b666ed",slot:"label"},"Expand"),o("smoothly-input-radio-item",{key:"be55407c3191954aca07baf6aa027ac6bbe9d106",value:"block"},"block"),o("smoothly-input-radio-item",{key:"1e94daa9639011bf686019ba4883524f0073fae6",value:"full"},"full"),o("smoothly-input-clear",{key:"3b51e51710dbac5a260d3396546285234f55ad9e",slot:"end"})),o("smoothly-input-select",{key:"73b66b593f926e9035e4502bb8978deac7675d76",name:"fill"},o("span",{key:"5b143acb8c018f8c37d50788d77c8935fb5e014f",slot:"label"},"Fill"),l.values.map((t=>o("smoothly-item",{value:t,key:t},t)))),o("smoothly-input-checkbox",{key:"ef134a75c0dc58a8ef42ab5f382132eb8163452a",name:"disabled"},"Disabled"),o("smoothly-input-select",{key:"ad79838c8c83d40eeb08b1c5b83d6e82a9b6c87c",name:"type"},o("span",{key:"1581c9346c7c2443324996f8e2b79d03f31241da",slot:"label"},"Type"),["button","submit","reset","link"].map((t=>o("smoothly-item",{value:t,key:t},t)))),o("smoothly-input-checkbox",{key:"05a368b01328adf76df30553a714934b582c16f6",name:"rounded"},"Rounded"),o("smoothly-input-select",{key:"a8298ce4893589cdef6de8b311d393e1d4d7bd1d",name:"icon",menuHeight:"8items"},o("span",{key:"f0a06face2985f21d7159adb1ce523483268644a",slot:"label"},"Icon"),m.Name.values.map((t=>o("smoothly-item",{value:t,key:t},o("smoothly-icon",{name:t,size:"small",tooltip:t})))),o("smoothly-input-clear",{key:"5791bab3057dac0dfcbd69b3c593b331878b4ed0",slot:"end"})),o("smoothly-input",{key:"8c650a560e278a4aac4040ee101e4e1346ca3a54",name:"tooltip",value:"Tooltip"},"Tooltip",o("smoothly-input-clear",{key:"e67bfad19b0bc374f025055140a689bb45ec4dbb",slot:"end"}))),o("div",{key:"0c312b6d27ddb2a1a80c04661345c703b2622414",class:"buttons"},d.values.map(((t,e,s)=>{var a,d;return o("smoothly-button",{onClick:e=>console.log(`Clicked button with color: ${t}`,e),tooltip:this.props.tooltip,ref:t=>s.length-1==e&&(this.lastButton=t),color:t,expand:this.props.expand,fill:this.props.fill,disabled:this.props.disabled,shape:this.props.rounded?"rounded":undefined,size:this.props.size,type:this.props.type,key:t},this.props.icon?o("smoothly-icon",{name:this.props.icon}):undefined,((a=this.props.text)===null||a===void 0?void 0:a.useColor)?t:(d=this.props.text)===null||d===void 0?void 0:d.value)})),o("div",{key:"638acf6f59bd885acb4262f43e377afc22e35b79",class:"height-text"},this.heightText)))}static get watchers(){return{props:[{updateInputHeightText:0}]}}static get style(){return x()}},[2,"smoothly-button-demo-standard",{props:[32],heightText:[32],lastButton:[32]},undefined,{props:[{updateInputHeightText:0}]}]);function g(){if(typeof customElements==="undefined"){return}const t=["smoothly-button-demo-standard","smoothly-button","smoothly-form","smoothly-icon","smoothly-input","smoothly-input-checkbox","smoothly-input-clear","smoothly-input-radio","smoothly-input-radio-item","smoothly-input-select","smoothly-item","smoothly-spinner"];t.forEach((t=>{switch(t){case"smoothly-button-demo-standard":if(!customElements.get(a(t))){customElements.define(a(t),v)}break;case"smoothly-button":if(!customElements.get(a(t))){c()}break;case"smoothly-form":if(!customElements.get(a(t))){n()}break;case"smoothly-icon":if(!customElements.get(a(t))){i()}break;case"smoothly-input":if(!customElements.get(a(t))){b()}break;case"smoothly-input-checkbox":if(!customElements.get(a(t))){r()}break;case"smoothly-input-clear":if(!customElements.get(a(t))){h()}break;case"smoothly-input-radio":if(!customElements.get(a(t))){u()}break;case"smoothly-input-radio-item":if(!customElements.get(a(t))){p()}break;case"smoothly-input-select":if(!customElements.get(a(t))){f()}break;case"smoothly-item":if(!customElements.get(a(t))){y()}break;case"smoothly-spinner":if(!customElements.get(a(t))){k()}break}}))}g();export{v as S,g as d};
2
- //# sourceMappingURL=p-bROQezlS.js.map
1
+ import{p as t,H as e,h as o,d as s,t as a}from"./p-BsZrGTcp.js";import{C as l,F as d,I as m}from"./p-Br0kWrBT.js";import"./p-BVKhAhsB.js";import"./p-DoFURPl2.js";import{d as c}from"./p-mmAi00ak.js";import{d as n}from"./p-BLDkKrD6.js";import{d as i}from"./p-DFSiKg4M.js";import{d as b}from"./p-BWF43Ktc.js";import{d as r}from"./p-BAMxyPpe.js";import{d as h}from"./p-e3dhSqSH.js";import{d as u}from"./p-CcJ_7PQR.js";import{d as p}from"./p-CvhP-Vls.js";import{d as f}from"./p-DTo2Itg9.js";import{d as y}from"./p-DtGUtK97.js";import{d as k}from"./p-MWZzvkuh.js";const x=()=>`.sc-smoothly-button-demo-standard-h smoothly-input-select.sc-smoothly-button-demo-standard smoothly-item.sc-smoothly-button-demo-standard{display:flex}.sc-smoothly-button-demo-standard-h .buttons.sc-smoothly-button-demo-standard{display:flex;flex-wrap:wrap;gap:0.5rem}.sc-smoothly-button-demo-standard-h .buttons.sc-smoothly-button-demo-standard>smoothly-button.sc-smoothly-button-demo-standard{margin-block:0}.sc-smoothly-button-demo-standard-h .height-text.sc-smoothly-button-demo-standard{border-left:3px dotted rgb(var(--smoothly-default-contrast));padding-inline:1rem;align-content:center}`;const g=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.props={};this.heightText=""}updateInputHeightText(){setTimeout((()=>{const t=Number(getComputedStyle(document.documentElement).fontSize.replace("px",""));if(this.lastButton){const e=this.lastButton.clientHeight;this.heightText=`${e/t}rem (${e}px)`}}),100)}render(){return o(s,{key:"d6e6ca6091ae99e7203ec3d88a00d4b486f5f3bd"},o("h2",{key:"b62fd377ec00749b0f0f7b8cff1e2e2fdceb318d"},"Button Standard"),o("smoothly-form",{key:"c9c1113d5c7073b66d0cfbd90bfa552ca3104d37",onSmoothlyFormInput:t=>this.props=t.detail,looks:"grid"},o("smoothly-input-checkbox",{key:"0666c152084c24ec1596ab16d09b04da4f885752",name:"text.useColor",checked:true},"Use Color as Text"),o("smoothly-input-select",{key:"77fa423c1bed60c446bad2fee6ef4927610ac8af",name:"size"},o("span",{key:"d5cd74d1252542454a5fb6441d2099da14a53023",slot:"label"},"Size"),["small","large","icon","flexible"].map((t=>o("smoothly-item",{value:t,key:t},t)))),o("smoothly-input",{key:"b6df255a745261b34ef164f04c5458c77a9c286b",name:"text.value",value:"Button"},"Text",o("smoothly-input-clear",{key:"0ee5dff1bd206c5db7d1928773cef6890fb2ed80",slot:"end"})),o("smoothly-input-radio",{key:"f6f3027ea26fc6c6d077b79bbb228b6cd0809e54",name:"expand",clearable:true},o("span",{key:"33436d08686b4714e0cfdb0cea7ba6b082b666ed",slot:"label"},"Expand"),o("smoothly-input-radio-item",{key:"be55407c3191954aca07baf6aa027ac6bbe9d106",value:"block"},"block"),o("smoothly-input-radio-item",{key:"1e94daa9639011bf686019ba4883524f0073fae6",value:"full"},"full"),o("smoothly-input-clear",{key:"3b51e51710dbac5a260d3396546285234f55ad9e",slot:"end"})),o("smoothly-input-select",{key:"73b66b593f926e9035e4502bb8978deac7675d76",name:"fill"},o("span",{key:"5b143acb8c018f8c37d50788d77c8935fb5e014f",slot:"label"},"Fill"),d.values.map((t=>o("smoothly-item",{value:t,key:t},t)))),o("smoothly-input-checkbox",{key:"ef134a75c0dc58a8ef42ab5f382132eb8163452a",name:"disabled"},"Disabled"),o("smoothly-input-select",{key:"ad79838c8c83d40eeb08b1c5b83d6e82a9b6c87c",name:"type"},o("span",{key:"1581c9346c7c2443324996f8e2b79d03f31241da",slot:"label"},"Type"),["button","submit","reset","link"].map((t=>o("smoothly-item",{value:t,key:t},t)))),o("smoothly-input-checkbox",{key:"05a368b01328adf76df30553a714934b582c16f6",name:"rounded"},"Rounded"),o("smoothly-input-select",{key:"a8298ce4893589cdef6de8b311d393e1d4d7bd1d",name:"icon",menuHeight:"8items"},o("span",{key:"f0a06face2985f21d7159adb1ce523483268644a",slot:"label"},"Icon"),m.Name.values.map((t=>o("smoothly-item",{value:t,key:t},o("smoothly-icon",{name:t,size:"small",tooltip:t})))),o("smoothly-input-clear",{key:"5791bab3057dac0dfcbd69b3c593b331878b4ed0",slot:"end"})),o("smoothly-input",{key:"8c650a560e278a4aac4040ee101e4e1346ca3a54",name:"tooltip",value:"Tooltip"},"Tooltip",o("smoothly-input-clear",{key:"e67bfad19b0bc374f025055140a689bb45ec4dbb",slot:"end"}))),o("div",{key:"0c312b6d27ddb2a1a80c04661345c703b2622414",class:"buttons"},l.values.map(((t,e,s)=>{var a,l;return o("smoothly-button",{onClick:e=>console.log(`Clicked button with color: ${t}`,e),tooltip:this.props.tooltip,ref:t=>s.length-1==e&&(this.lastButton=t),color:t,expand:this.props.expand,fill:this.props.fill,disabled:this.props.disabled,shape:this.props.rounded?"rounded":undefined,size:this.props.size,type:this.props.type,key:t},this.props.icon?o("smoothly-icon",{name:this.props.icon}):undefined,((a=this.props.text)===null||a===void 0?void 0:a.useColor)?t:(l=this.props.text)===null||l===void 0?void 0:l.value)})),o("div",{key:"638acf6f59bd885acb4262f43e377afc22e35b79",class:"height-text"},this.heightText)))}static get watchers(){return{props:[{updateInputHeightText:0}]}}static get style(){return x()}},[2,"smoothly-button-demo-standard",{props:[32],heightText:[32],lastButton:[32]},undefined,{props:[{updateInputHeightText:0}]}]);function v(){if(typeof customElements==="undefined"){return}const t=["smoothly-button-demo-standard","smoothly-button","smoothly-form","smoothly-icon","smoothly-input","smoothly-input-checkbox","smoothly-input-clear","smoothly-input-radio","smoothly-input-radio-item","smoothly-input-select","smoothly-item","smoothly-spinner"];t.forEach((t=>{switch(t){case"smoothly-button-demo-standard":if(!customElements.get(a(t))){customElements.define(a(t),g)}break;case"smoothly-button":if(!customElements.get(a(t))){c()}break;case"smoothly-form":if(!customElements.get(a(t))){n()}break;case"smoothly-icon":if(!customElements.get(a(t))){i()}break;case"smoothly-input":if(!customElements.get(a(t))){b()}break;case"smoothly-input-checkbox":if(!customElements.get(a(t))){r()}break;case"smoothly-input-clear":if(!customElements.get(a(t))){h()}break;case"smoothly-input-radio":if(!customElements.get(a(t))){u()}break;case"smoothly-input-radio-item":if(!customElements.get(a(t))){p()}break;case"smoothly-input-select":if(!customElements.get(a(t))){f()}break;case"smoothly-item":if(!customElements.get(a(t))){y()}break;case"smoothly-spinner":if(!customElements.get(a(t))){k()}break}}))}v();export{g as S,v as d};
2
+ //# sourceMappingURL=p-jd_qrwk9.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as o,c as s,h as a,F as l,t as e}from"./p-BsZrGTcp.js";import{i as r}from"./p-BVKhAhsB.js";import{w as c,m as n,d as h}from"./p-CRlfq-AL.js";import{d}from"./p-DFSiKg4M.js";import{d as i}from"./p-Bd-a9CG1.js";import{d as m}from"./p-DtGUtK97.js";const y=()=>`.sc-smoothly-calendar-h{display:block;--other-month-opacity:0.5;padding:0.5em;border:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-calendar-h>smoothly-input-month.sc-smoothly-calendar{padding:0 0.5em}.sc-smoothly-calendar-h>table.sc-smoothly-calendar{table-layout:fixed;width:100%}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>thead.sc-smoothly-calendar>tr.sc-smoothly-calendar>th.sc-smoothly-calendar,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar{text-align:center;padding:0.5em;min-width:2em;box-sizing:border-box;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground));-webkit-user-select:none;user-select:none}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar{position:relative;cursor:pointer}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.currentMonth.sc-smoothly-calendar{color:rgb(var(--smoothly-default-contrast))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:not(.currentMonth){color:rgba(var(--smoothly-default-contrast), var(--other-month-opacity))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).selected,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).dateRange,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).selected,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).dateRange{color:rgba(var(--smoothly-default-contrast))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6),.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7){color:rgb(var(--smoothly-calendar-weekend-foreground, var(--smoothly-danger-color)))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6):not(.currentMonth),.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7):not(.currentMonth){color:rgba(var(--smoothly-calendar-weekend-foreground, var(--smoothly-danger-color)), var(--other-month-opacity))}>table>tr>td.sc-smoothly-calendar-h:not(.selected,.disable).sc-smoothly-calendar:hover{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.selected.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.today.sc-smoothly-calendar::before{content:"";inset:2px;position:absolute;border:1px solid currentColor}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.dateRange.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.disable.sc-smoothly-calendar{cursor:not-allowed;opacity:0.5}`;const b=t(class t extends o{constructor(t){super();if(t!==false){this.__registerHost()}this.smoothlyDateSet=s(this,"smoothlyDateSet");this.smoothlyDateRangeSet=s(this,"smoothlyDateRangeSet");this.clickCounter=0}componentWillLoad(){this.onStart();this.onEnd()}onStart(){this.startInternal=this.start}onEnd(){this.endInternal=this.end}async jumpTo(t){var o,s,a,l;const e=r.Date.Year.is(t.Y)?t.Y:(s=(o=this.month)===null||o===void 0?void 0:o.substring(0,4))!==null&&s!==void 0?s:r.Date.now().substring(0,4);const c=r.Date.Month.is(t.M)?t.M:(l=(a=this.month)===null||a===void 0?void 0:a.substring(5,7))!==null&&l!==void 0?l:r.Date.now().substring(5,7);const n=`${e}-${c}-01`;if(r.Date.is(n)){this.month=n}}onClick(t){this.value=t;this.smoothlyDateSet.emit(this.value)}onClickDoubleInput(t){this.clickCounter+=1;if(this.clickCounter%2==1){this.startInternal=this.endInternal=this.frozenDate=t}else{const o=this.startInternal>t?t:this.startInternal;const s=this.endInternal<t?t:this.endInternal;this.startInternal=o;this.endInternal=s}this.clickCounter%2==0&&this.startInternal&&this.endInternal&&this.smoothlyDateRangeSet.emit({start:this.startInternal,end:this.endInternal})}onHover(t){if(this.doubleInput&&this.clickCounter%2==1){if(t<this.frozenDate){this.startInternal=t;this.endInternal=this.frozenDate}else{this.startInternal=this.frozenDate;this.endInternal=t}}}withinLimit(t){return(!this.min||t>=this.min)&&(!this.max||t<=this.max)}render(){var t,o,s;return a(l,{key:"51ec0570b1b71eb9ff8bca9984ecf40550abe435"},a("smoothly-input-month",{key:"1beb2d18f5a08e93d88fddca59675078d8662715",name:"month",value:(t=this.month)!==null&&t!==void 0?t:this.value,min:this.min,max:this.max,inCalendar:true,next:true,previous:true,showLabel:false,onSmoothlyInput:t=>{t.stopPropagation();"month"in t.detail&&typeof t.detail.month=="string"&&(this.month=t.detail.month)},onSmoothlyUserInput:t=>t.stopPropagation()},a("div",{key:"14ed1a3cc6dd8fe89d7ac4f1450f391ccb0bff77",slot:"year-label"},a("slot",{key:"c07b485adf7b6b4aa71d3ceb10d530aa029c652d",name:"year-label"})),a("div",{key:"cd1e232ded9c2ac84156de7419bc46bdd4e01680",slot:"month-label"},a("slot",{key:"1255e6cef5898b90aba12716639774957e09cd86",name:"month-label"}))),a("table",{key:"8ada3e2ac6abf42710c8611d9264ddbc7691e307"},a("thead",{key:"1f686102dc5f57bbc838d11d984e85407d44fdda"},a("tr",{key:"41ab20afc9b1a4491f5070345f779dc6238dd8d3"},c().map((t=>a("th",null,t))))),n((s=(o=this.month)!==null&&o!==void 0?o:this.value)!==null&&s!==void 0?s:r.Date.now()).map((t=>a("tr",null,t.map((t=>{var o,s,l,e;return a("td",{tabindex:1,onMouseOver:this.withinLimit(t)?()=>this.onHover(t):undefined,onClick:this.withinLimit(t)?()=>this.doubleInput?this.onClickDoubleInput(t):this.onClick(t):undefined,class:{selected:t==this.value||this.doubleInput&&(t==this.startInternal||t==this.endInternal),today:t==r.Date.now(),currentMonth:r.Date.firstOfMonth((s=(o=this.month)!==null&&o!==void 0?o:this.value)!==null&&s!==void 0?s:r.Date.now())==r.Date.firstOfMonth(t),dateRange:this.doubleInput&&t>((l=this.startInternal)!==null&&l!==void 0?l:"")&&t<((e=this.endInternal)!==null&&e!==void 0?e:""),disable:!this.withinLimit(t)}},t.substring(8,10))})))))))}get element(){return this}static get watchers(){return{start:[{onStart:0}],end:[{onEnd:0}]}}static get style(){return y()}},[262,"smoothly-calendar",{month:[1025],value:[1025],start:[1],end:[1],max:[1025],min:[1025],doubleInput:[516,"double-input"],startInternal:[32],endInternal:[32],jumpTo:[64]},undefined,{start:[{onStart:0}],end:[{onEnd:0}]}]);function u(){if(typeof customElements==="undefined"){return}const t=["smoothly-calendar","smoothly-icon","smoothly-input-month","smoothly-input-select","smoothly-item"];t.forEach((t=>{switch(t){case"smoothly-calendar":if(!customElements.get(e(t))){customElements.define(e(t),b)}break;case"smoothly-icon":if(!customElements.get(e(t))){d()}break;case"smoothly-input-month":if(!customElements.get(e(t))){h()}break;case"smoothly-input-select":if(!customElements.get(e(t))){i()}break;case"smoothly-item":if(!customElements.get(e(t))){m()}break}}))}u();export{b as C,u as d};
2
- //# sourceMappingURL=p-DES0wbqs.js.map
1
+ import{p as t,H as o,c as s,h as a,F as l,t as e}from"./p-BsZrGTcp.js";import{i as r}from"./p-BVKhAhsB.js";import{w as c,m as n,d as h}from"./p-EqRJl32n.js";import{d}from"./p-DFSiKg4M.js";import{d as i}from"./p-DTo2Itg9.js";import{d as m}from"./p-DtGUtK97.js";const y=()=>`.sc-smoothly-calendar-h{display:block;--other-month-opacity:0.5;padding:0.5em;border:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-calendar-h>smoothly-input-month.sc-smoothly-calendar{padding:0 0.5em}.sc-smoothly-calendar-h>table.sc-smoothly-calendar{table-layout:fixed;width:100%}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>thead.sc-smoothly-calendar>tr.sc-smoothly-calendar>th.sc-smoothly-calendar,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar{text-align:center;padding:0.5em;min-width:2em;box-sizing:border-box;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground));-webkit-user-select:none;user-select:none}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar{position:relative;cursor:pointer}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.currentMonth.sc-smoothly-calendar{color:rgb(var(--smoothly-default-contrast))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:not(.currentMonth){color:rgba(var(--smoothly-default-contrast), var(--other-month-opacity))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).selected,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).dateRange,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).selected,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).dateRange{color:rgba(var(--smoothly-default-contrast))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6),.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7){color:rgb(var(--smoothly-calendar-weekend-foreground, var(--smoothly-danger-color)))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6):not(.currentMonth),.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7):not(.currentMonth){color:rgba(var(--smoothly-calendar-weekend-foreground, var(--smoothly-danger-color)), var(--other-month-opacity))}>table>tr>td.sc-smoothly-calendar-h:not(.selected,.disable).sc-smoothly-calendar:hover{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.selected.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.today.sc-smoothly-calendar::before{content:"";inset:2px;position:absolute;border:1px solid currentColor}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.dateRange.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.disable.sc-smoothly-calendar{cursor:not-allowed;opacity:0.5}`;const b=t(class t extends o{constructor(t){super();if(t!==false){this.__registerHost()}this.smoothlyDateSet=s(this,"smoothlyDateSet");this.smoothlyDateRangeSet=s(this,"smoothlyDateRangeSet");this.clickCounter=0}componentWillLoad(){this.onStart();this.onEnd()}onStart(){this.startInternal=this.start}onEnd(){this.endInternal=this.end}async jumpTo(t){var o,s,a,l;const e=r.Date.Year.is(t.Y)?t.Y:(s=(o=this.month)===null||o===void 0?void 0:o.substring(0,4))!==null&&s!==void 0?s:r.Date.now().substring(0,4);const c=r.Date.Month.is(t.M)?t.M:(l=(a=this.month)===null||a===void 0?void 0:a.substring(5,7))!==null&&l!==void 0?l:r.Date.now().substring(5,7);const n=`${e}-${c}-01`;if(r.Date.is(n)){this.month=n}}onClick(t){this.value=t;this.smoothlyDateSet.emit(this.value)}onClickDoubleInput(t){this.clickCounter+=1;if(this.clickCounter%2==1){this.startInternal=this.endInternal=this.frozenDate=t}else{const o=this.startInternal>t?t:this.startInternal;const s=this.endInternal<t?t:this.endInternal;this.startInternal=o;this.endInternal=s}this.clickCounter%2==0&&this.startInternal&&this.endInternal&&this.smoothlyDateRangeSet.emit({start:this.startInternal,end:this.endInternal})}onHover(t){if(this.doubleInput&&this.clickCounter%2==1){if(t<this.frozenDate){this.startInternal=t;this.endInternal=this.frozenDate}else{this.startInternal=this.frozenDate;this.endInternal=t}}}withinLimit(t){return(!this.min||t>=this.min)&&(!this.max||t<=this.max)}render(){var t,o,s;return a(l,{key:"51ec0570b1b71eb9ff8bca9984ecf40550abe435"},a("smoothly-input-month",{key:"1beb2d18f5a08e93d88fddca59675078d8662715",name:"month",value:(t=this.month)!==null&&t!==void 0?t:this.value,min:this.min,max:this.max,inCalendar:true,next:true,previous:true,showLabel:false,onSmoothlyInput:t=>{t.stopPropagation();"month"in t.detail&&typeof t.detail.month=="string"&&(this.month=t.detail.month)},onSmoothlyUserInput:t=>t.stopPropagation()},a("div",{key:"14ed1a3cc6dd8fe89d7ac4f1450f391ccb0bff77",slot:"year-label"},a("slot",{key:"c07b485adf7b6b4aa71d3ceb10d530aa029c652d",name:"year-label"})),a("div",{key:"cd1e232ded9c2ac84156de7419bc46bdd4e01680",slot:"month-label"},a("slot",{key:"1255e6cef5898b90aba12716639774957e09cd86",name:"month-label"}))),a("table",{key:"8ada3e2ac6abf42710c8611d9264ddbc7691e307"},a("thead",{key:"1f686102dc5f57bbc838d11d984e85407d44fdda"},a("tr",{key:"41ab20afc9b1a4491f5070345f779dc6238dd8d3"},c().map((t=>a("th",null,t))))),n((s=(o=this.month)!==null&&o!==void 0?o:this.value)!==null&&s!==void 0?s:r.Date.now()).map((t=>a("tr",null,t.map((t=>{var o,s,l,e;return a("td",{tabindex:1,onMouseOver:this.withinLimit(t)?()=>this.onHover(t):undefined,onClick:this.withinLimit(t)?()=>this.doubleInput?this.onClickDoubleInput(t):this.onClick(t):undefined,class:{selected:t==this.value||this.doubleInput&&(t==this.startInternal||t==this.endInternal),today:t==r.Date.now(),currentMonth:r.Date.firstOfMonth((s=(o=this.month)!==null&&o!==void 0?o:this.value)!==null&&s!==void 0?s:r.Date.now())==r.Date.firstOfMonth(t),dateRange:this.doubleInput&&t>((l=this.startInternal)!==null&&l!==void 0?l:"")&&t<((e=this.endInternal)!==null&&e!==void 0?e:""),disable:!this.withinLimit(t)}},t.substring(8,10))})))))))}get element(){return this}static get watchers(){return{start:[{onStart:0}],end:[{onEnd:0}]}}static get style(){return y()}},[262,"smoothly-calendar",{month:[1025],value:[1025],start:[1],end:[1],max:[1025],min:[1025],doubleInput:[516,"double-input"],startInternal:[32],endInternal:[32],jumpTo:[64]},undefined,{start:[{onStart:0}],end:[{onEnd:0}]}]);function u(){if(typeof customElements==="undefined"){return}const t=["smoothly-calendar","smoothly-icon","smoothly-input-month","smoothly-input-select","smoothly-item"];t.forEach((t=>{switch(t){case"smoothly-calendar":if(!customElements.get(e(t))){customElements.define(e(t),b)}break;case"smoothly-icon":if(!customElements.get(e(t))){d()}break;case"smoothly-input-month":if(!customElements.get(e(t))){h()}break;case"smoothly-input-select":if(!customElements.get(e(t))){i()}break;case"smoothly-item":if(!customElements.get(e(t))){m()}break}}))}u();export{b as C,u as d};
2
+ //# sourceMappingURL=p-l7KxEsrG.js.map
@@ -1,2 +1,2 @@
1
- import{p as o,H as e,h as t,t as s}from"./p-BsZrGTcp.js";import{d as m}from"./p-B2SQlYXg.js";import{d as a}from"./p-Doc1GrjW.js";import{d as l}from"./p-CCwzp3Kg.js";import{d as r}from"./p-BWdGj6F8.js";import{d as i}from"./p-mmAi00ak.js";import{d as c}from"./p-Cl8L61mt.js";import{d}from"./p-DUuSvBmQ.js";import{d as p}from"./p-bROQezlS.js";import{d as n}from"./p-DES0wbqs.js";import{d as f}from"./p-BE5E3Jm6.js";import{d as y}from"./p-DfwyarvV.js";import{d as b}from"./p-8kVBmIEY.js";import{d as h}from"./p-CN3iME9d.js";import{d as u}from"./p-BKKtlLzJ.js";import{d as k}from"./p-CY71xgKe.js";import{d as j}from"./p-DG2pfnCV.js";import{d as E}from"./p-uFR5K4vd.js";import{d as g}from"./p-DvZK__s-.js";import{d as C}from"./p-F8qX8ZuL.js";import{d as D}from"./p-BLDkKrD6.js";import{d as w}from"./p-DilrpZI6.js";import{d as B}from"./p-Obm_ForQ.js";import{d as v}from"./p-yIbGvKho.js";import{d as x}from"./p-C5SROPcr.js";import{d as S}from"./p-B7iMXQWl.js";import{d as Q}from"./p-BlSr9psC.js";import{d as T}from"./p-XXG8KYEH.js";import{d as A}from"./p-CocCQeEi.js";import{d as K}from"./p-DDlDQL4g.js";import{d as R}from"./p-DdG2-QwQ.js";import{d as W}from"./p-C0Z37bUn.js";import{d as M}from"./p-5RD9qap_.js";import{d as F}from"./p-Bt-mtf0k.js";import{d as G}from"./p-DFSiKg4M.js";import{d as I}from"./p-BoVqzcqA.js";import{d as L}from"./p-BWF43Ktc.js";import{d as z}from"./p-BAMxyPpe.js";import{d as Z}from"./p-e3dhSqSH.js";import{d as H}from"./p-BkrgS2Eo.js";import{d as V}from"./p-BeMfiXqA.js";import{d as X}from"./p-CG405xpf.js";import{d as q}from"./p-DxMW5Du7.js";import{d as N}from"./p-CsbRRVxH.js";import{d as _}from"./p-BW08Z-5c.js";import{d as J}from"./p-DJZNwn-w.js";import{d as O}from"./p-CMEM-pz8.js";import{d as U}from"./p-CKguOE4o.js";import{d as Y}from"./p-CeUOn6zh.js";import{d as P}from"./p-CXd0RCW9.js";import{d as $}from"./p-BR6cMQkb.js";import{d as oo}from"./p-CRlfq-AL.js";import{d as eo}from"./p-DTVTH7QY.js";import{d as to}from"./p-CcJ_7PQR.js";import{d as so}from"./p-CvhP-Vls.js";import{d as mo}from"./p-WyNQ9SZM.js";import{d as ao}from"./p-DAB4uIiw.js";import{d as lo}from"./p-CMhSJk_G.js";import{d as ro}from"./p-Bd-a9CG1.js";import{d as io}from"./p-C3bp3FF4.js";import{d as co}from"./p-DtGUtK97.js";import{d as po}from"./p-Dbwl2AV3.js";import{d as no}from"./p-CcJJSSNp.js";import{d as fo}from"./p-BMCHQuiC.js";import{d as yo}from"./p-1IbSjfRJ.js";import{d as bo}from"./p-Bdn7S2FK.js";import{d as ho}from"./p-CI8xrsZF.js";import{d as uo}from"./p-Cu84ppD4.js";import{d as ko}from"./p-MWZzvkuh.js";import{d as jo}from"./p-DaxzTpsr.js";import{d as Eo}from"./p-Cvc3SMPo.js";import{d as go}from"./p-nBkQozv8.js";import{d as Co}from"./p-ca1ZzpjQ.js";import{d as Do}from"./p-CFSQhgLX.js";import{d as wo}from"./p-B_8v46jP.js";import{d as Bo}from"./p-Du3BErGp.js";import{d as vo}from"./p-i49ZmE4D.js";import{d as xo}from"./p-F7kTA33j.js";import{d as So}from"./p-B2_ScOnh.js";import{d as Qo}from"./p-DXFBAVrd.js";import{d as To}from"./p-DGKXbkuc.js";import{d as Ao}from"./p-6t4TTe9M.js";import{d as Ko}from"./p-BNCRANHq.js";import{d as Ro}from"./p-DWA8xW2u.js";import{d as Wo}from"./p-gELDTDod.js";import{d as Mo}from"./p-DDxHDn3A.js";import{d as Fo}from"./p-KvtHm4oA.js";import{d as Go}from"./p-7Bkv44Kg.js";import{d as Io}from"./p-2Y5tLcQ1.js";import{d as Lo}from"./p-Cg9sulGk.js";import{d as zo}from"./p-BmOu5krL.js";import{d as Zo}from"./p-BnYCDLp0.js";import{d as Ho}from"./p-BaA80q8p.js";import{d as Vo}from"./p-DABDOf4i.js";import{d as Xo}from"./p-CW-4QxIV.js";import{d as qo}from"./p-CRgTWhgN.js";import{d as No}from"./p-D6t9mpY2.js";import{d as _o}from"./p-DNSImvvt.js";import{d as Jo}from"./p-BCX9Z_Id.js";const Oo=o(class o extends e{constructor(o){super();if(o!==false){this.__registerHost()}}urlChangeHandler(o){console.log("smoothlyUrlChange",o.detail)}render(){return t("smoothly-app",{key:"86d6cc67b58d8c7c04b9fd7e33891dfacb529943",color:"dark",label:"Smoothly Demo",home:"/root",ref:o=>this.app=o},t("smoothly-app-room",{key:"7012500cb2629c53e1156372722e8ef2b6d047eb",path:"/"},t("section",{key:"759dafafbd63e7fff5bf0acd0502e8eec36e8c64",style:{padding:"1em",maxWidth:"32em",margin:"0 auto"}},t("header",{key:"0ed18baa408a674f906abc32425ce6037662a476"},t("h1",{key:"22cb0dc61fece9d2d7acae6a55db19ccc57261df"},"Welcome")),t("p",{key:"d914f970b834d217cd2dfd7d2d05cd0c4b5dcb65"},"Smoothly is a component library written in ",t("a",{key:"3626d6388b49307f475e4071ef114039dcb51f60",href:"http://stenciljs.com"},"Stencil"),". It can therefore be used across web based frontend toolchains such as React, Vue, Angular, Svelte, and even plain HTML."),t("p",{key:"319549bf6b8cca5d5f9042b1f74c29e884545a59"},"This is particularly useful when trying to unifying the user experience across projects written in different technology stacks. It is also written to minimize the amount of code you need to write to achieve a nice user experience."))),t("smoothly-app-room",{key:"4c752059c00ad39c3bee1d36bdac99bfad027f5f",path:"/form",label:"Forms",content:t("smoothly-form-demo",null)}),t("smoothly-app-room",{key:"02b7dd008a64194f348bfb0679217ebbea05fac9",path:"/input",label:"Inputs",content:t("smoothly-input-demo",null)}),t("smoothly-app-room",{key:"41c7489608d0da9a8d4a2ab9b1a56c425cc36f21",path:"/table",label:"Tables",content:t("smoothly-table-demo",null)}),t("smoothly-app-room",{key:"b10b3c95084e9f27a6ebeaf5170bb10be8226c87",path:"/button",label:"Buttons",content:t("smoothly-button-demo",null)}),t("smoothly-app-room",{key:"f20620084dd779b954fa440b559db2bdccf0b3a3",path:"/icon",label:"Icons",content:t("smoothly-icon-demo",null)}),t("smoothly-app-room",{key:"5078c24c13064315cf8f761809e60cdfc1734c41",path:"/theme",label:"Theming",content:t("smoothly-theme-demo",null)}),t("smoothly-app-room",{key:"2a54a53a694e23460e96b9fb04483204f9e1c347",path:"/notifier",label:"Notices",content:t("smoothly-notifier-demo",null)}),t("smoothly-app-room",{key:"d57766baebf8df0791e1e5f845c2bac7d7b8729f",path:"/dialog",label:"Dialogs",content:t("smoothly-dialog-demo",null),slot:"nav-end"}),t("smoothly-app-room",{key:"d5bde6145e9950a3ddcda8e24d811203a4b69f27",path:"/display",label:"Display",content:t("smoothly-display-demo",null),slot:"nav-end"}),t("smoothly-app-room",{key:"3d56ef533e12cb88ec84bd2fdc63a60e64031083",path:"/tabs",label:"Tabs",slot:"nav-end"},t("smoothly-tabs-demo",{key:"271d70eb22cc0152161d42c137a3d00c19c6bba3"})),t("smoothly-app-room",{key:"c0cbe202e3d74ceacd8e88795c58ece2c1392bf5",path:"/links",label:"Links",slot:"nav-end"},t("smoothly-input",{key:"a39f0e568b614baaf271585da4ee013e48ff24fe",type:"text"},"Default"),t("div",{key:"a75dc6524b85da5e0c81b75a9b74d020c2723384",style:{padding:"1em",maxWidth:"12em"}},t("smoothly-button",{key:"a3820b0c802acc358ee3ab4ca9483411bdff04a8",fill:"solid",color:"danger",link:"https://google.com"},"open"),t("smoothly-button",{key:"fd1c12e214b53d8acdb8828cb616356ae8fe94e9",fill:"solid",color:"danger",link:"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",type:"download"},"download"),t("smoothly-button",{key:"f7c9c0a9eb4ca942f56e02b840087398a2688cd8",fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),t("smoothly-button",{key:"ebce581340217e91d6abf1bbff7538f77c5842ae",disabled:true,fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),t("smoothly-button",{key:"01c20890774174c6ec793de4711d8e0530630108",type:"link",fill:"clear",color:"danger",onClick:()=>alert("clicked")},"action link"))),t("smoothly-app-room",{key:"42945bb6698943a783d0502f3ff0a08cb6ad583e",path:"/redirect",label:"Redirect",slot:"nav-end"},t("smoothly-button",{key:"b022c14f0680b1ca5f511cd87ab152a9ffb5b15d",type:"link",link:"/input"},"To input"),t("smoothly-button",{key:"566a1821001da85b67ce9f68f74b590c5319f060",type:"link",link:"../button"},"To button"),t("smoothly-button",{key:"e99bbe6cbb348b2c8b2dba558458c08dea22db21",type:"link",link:new URL("/hidden",window.location.origin).href},"To hidden"),t("smoothly-button",{key:"61e59ec9039a63b1d9c50c6705dc0098027be92a",type:"link",link:"/redirect"},"To redirect"),t("smoothly-button",{key:"511eba63ae34b4151e99ce482cb532849ab91dd7",type:"link",link:"nested"},"To redirect nested, relative path")),t("smoothly-app-room",{key:"bac6fa14c1c0dd2ebda292fe70255e53f466dc00",path:"/hidden"},t("p",{key:"1acd1207b775790f189fd8d8c3fb96a5b8d8a991"},"hello world!")),t("smoothly-app-room",{key:"2ecda7ecb183b382bb2987195af5a96e13e3b8b1",path:"/redirect/nested"},"this is a nested room"))}},[0,"smoothly-app-demo",{baseUrl:[1,"base-url"]},[[8,"smoothlyUrlChange","urlChangeHandler"]]]);function Uo(){if(typeof customElements==="undefined"){return}const o=["smoothly-app-demo","smoothly-app","smoothly-app-room","smoothly-back-to-top","smoothly-burger","smoothly-button","smoothly-button-confirm","smoothly-button-demo","smoothly-button-demo-standard","smoothly-calendar","smoothly-date-text","smoothly-dialog","smoothly-dialog-demo","smoothly-display","smoothly-display-demo","smoothly-display-demo-json","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-form","smoothly-form-demo","smoothly-form-demo-all","smoothly-form-demo-card","smoothly-form-demo-controlled","smoothly-form-demo-date","smoothly-form-demo-date-range","smoothly-form-demo-login","smoothly-form-demo-pet","smoothly-form-demo-prices","smoothly-form-demo-schedule","smoothly-form-demo-transparent","smoothly-form-demo-typed","smoothly-frame","smoothly-icon","smoothly-icon-demo","smoothly-input","smoothly-input-checkbox","smoothly-input-clear","smoothly-input-color","smoothly-input-color-demo","smoothly-input-date","smoothly-input-date-demo","smoothly-input-date-range","smoothly-input-date-time","smoothly-input-demo","smoothly-input-demo-radio","smoothly-input-demo-standard","smoothly-input-demo-user-input","smoothly-input-edit","smoothly-input-file","smoothly-input-month","smoothly-input-price-demo","smoothly-input-radio","smoothly-input-radio-item","smoothly-input-range","smoothly-input-range-demo","smoothly-input-reset","smoothly-input-select","smoothly-input-submit","smoothly-item","smoothly-label","smoothly-lazy","smoothly-load-more","smoothly-modal","smoothly-notification","smoothly-notifier","smoothly-notifier-demo","smoothly-spinner","smoothly-summary","smoothly-tab","smoothly-table","smoothly-table-body","smoothly-table-cell","smoothly-table-demo","smoothly-table-demo-colspan","smoothly-table-demo-filler-row","smoothly-table-demo-group","smoothly-table-demo-nested-no-cell","smoothly-table-demo-nested-no-cell-inner","smoothly-table-demo-simple","smoothly-table-expandable-cell","smoothly-table-expandable-row","smoothly-table-filler-row","smoothly-table-foot","smoothly-table-head","smoothly-table-row","smoothly-table-row-group","smoothly-tabs","smoothly-tabs-demo","smoothly-theme-color","smoothly-theme-color-variant","smoothly-theme-colors","smoothly-theme-demo","smoothly-theme-guide","smoothly-theme-picker","smoothly-toggle-switch","smoothly-toggle-switch-demo","smoothly-trigger"];o.forEach((o=>{switch(o){case"smoothly-app-demo":if(!customElements.get(s(o))){customElements.define(s(o),Oo)}break;case"smoothly-app":if(!customElements.get(s(o))){m()}break;case"smoothly-app-room":if(!customElements.get(s(o))){a()}break;case"smoothly-back-to-top":if(!customElements.get(s(o))){l()}break;case"smoothly-burger":if(!customElements.get(s(o))){r()}break;case"smoothly-button":if(!customElements.get(s(o))){i()}break;case"smoothly-button-confirm":if(!customElements.get(s(o))){c()}break;case"smoothly-button-demo":if(!customElements.get(s(o))){d()}break;case"smoothly-button-demo-standard":if(!customElements.get(s(o))){p()}break;case"smoothly-calendar":if(!customElements.get(s(o))){n()}break;case"smoothly-date-text":if(!customElements.get(s(o))){f()}break;case"smoothly-dialog":if(!customElements.get(s(o))){y()}break;case"smoothly-dialog-demo":if(!customElements.get(s(o))){b()}break;case"smoothly-display":if(!customElements.get(s(o))){h()}break;case"smoothly-display-demo":if(!customElements.get(s(o))){u()}break;case"smoothly-display-demo-json":if(!customElements.get(s(o))){k()}break;case"smoothly-display-json":if(!customElements.get(s(o))){j()}break;case"smoothly-display-json-object":if(!customElements.get(s(o))){E()}break;case"smoothly-display-json-primitive":if(!customElements.get(s(o))){g()}break;case"smoothly-display-json-record-key":if(!customElements.get(s(o))){C()}break;case"smoothly-form":if(!customElements.get(s(o))){D()}break;case"smoothly-form-demo":if(!customElements.get(s(o))){w()}break;case"smoothly-form-demo-all":if(!customElements.get(s(o))){B()}break;case"smoothly-form-demo-card":if(!customElements.get(s(o))){v()}break;case"smoothly-form-demo-controlled":if(!customElements.get(s(o))){x()}break;case"smoothly-form-demo-date":if(!customElements.get(s(o))){S()}break;case"smoothly-form-demo-date-range":if(!customElements.get(s(o))){Q()}break;case"smoothly-form-demo-login":if(!customElements.get(s(o))){T()}break;case"smoothly-form-demo-pet":if(!customElements.get(s(o))){A()}break;case"smoothly-form-demo-prices":if(!customElements.get(s(o))){K()}break;case"smoothly-form-demo-schedule":if(!customElements.get(s(o))){R()}break;case"smoothly-form-demo-transparent":if(!customElements.get(s(o))){W()}break;case"smoothly-form-demo-typed":if(!customElements.get(s(o))){M()}break;case"smoothly-frame":if(!customElements.get(s(o))){F()}break;case"smoothly-icon":if(!customElements.get(s(o))){G()}break;case"smoothly-icon-demo":if(!customElements.get(s(o))){I()}break;case"smoothly-input":if(!customElements.get(s(o))){L()}break;case"smoothly-input-checkbox":if(!customElements.get(s(o))){z()}break;case"smoothly-input-clear":if(!customElements.get(s(o))){Z()}break;case"smoothly-input-color":if(!customElements.get(s(o))){H()}break;case"smoothly-input-color-demo":if(!customElements.get(s(o))){V()}break;case"smoothly-input-date":if(!customElements.get(s(o))){X()}break;case"smoothly-input-date-demo":if(!customElements.get(s(o))){q()}break;case"smoothly-input-date-range":if(!customElements.get(s(o))){N()}break;case"smoothly-input-date-time":if(!customElements.get(s(o))){_()}break;case"smoothly-input-demo":if(!customElements.get(s(o))){J()}break;case"smoothly-input-demo-radio":if(!customElements.get(s(o))){O()}break;case"smoothly-input-demo-standard":if(!customElements.get(s(o))){U()}break;case"smoothly-input-demo-user-input":if(!customElements.get(s(o))){Y()}break;case"smoothly-input-edit":if(!customElements.get(s(o))){P()}break;case"smoothly-input-file":if(!customElements.get(s(o))){$()}break;case"smoothly-input-month":if(!customElements.get(s(o))){oo()}break;case"smoothly-input-price-demo":if(!customElements.get(s(o))){eo()}break;case"smoothly-input-radio":if(!customElements.get(s(o))){to()}break;case"smoothly-input-radio-item":if(!customElements.get(s(o))){so()}break;case"smoothly-input-range":if(!customElements.get(s(o))){mo()}break;case"smoothly-input-range-demo":if(!customElements.get(s(o))){ao()}break;case"smoothly-input-reset":if(!customElements.get(s(o))){lo()}break;case"smoothly-input-select":if(!customElements.get(s(o))){ro()}break;case"smoothly-input-submit":if(!customElements.get(s(o))){io()}break;case"smoothly-item":if(!customElements.get(s(o))){co()}break;case"smoothly-label":if(!customElements.get(s(o))){po()}break;case"smoothly-lazy":if(!customElements.get(s(o))){no()}break;case"smoothly-load-more":if(!customElements.get(s(o))){fo()}break;case"smoothly-modal":if(!customElements.get(s(o))){yo()}break;case"smoothly-notification":if(!customElements.get(s(o))){bo()}break;case"smoothly-notifier":if(!customElements.get(s(o))){ho()}break;case"smoothly-notifier-demo":if(!customElements.get(s(o))){uo()}break;case"smoothly-spinner":if(!customElements.get(s(o))){ko()}break;case"smoothly-summary":if(!customElements.get(s(o))){jo()}break;case"smoothly-tab":if(!customElements.get(s(o))){Eo()}break;case"smoothly-table":if(!customElements.get(s(o))){go()}break;case"smoothly-table-body":if(!customElements.get(s(o))){Co()}break;case"smoothly-table-cell":if(!customElements.get(s(o))){Do()}break;case"smoothly-table-demo":if(!customElements.get(s(o))){wo()}break;case"smoothly-table-demo-colspan":if(!customElements.get(s(o))){Bo()}break;case"smoothly-table-demo-filler-row":if(!customElements.get(s(o))){vo()}break;case"smoothly-table-demo-group":if(!customElements.get(s(o))){xo()}break;case"smoothly-table-demo-nested-no-cell":if(!customElements.get(s(o))){So()}break;case"smoothly-table-demo-nested-no-cell-inner":if(!customElements.get(s(o))){Qo()}break;case"smoothly-table-demo-simple":if(!customElements.get(s(o))){To()}break;case"smoothly-table-expandable-cell":if(!customElements.get(s(o))){Ao()}break;case"smoothly-table-expandable-row":if(!customElements.get(s(o))){Ko()}break;case"smoothly-table-filler-row":if(!customElements.get(s(o))){Ro()}break;case"smoothly-table-foot":if(!customElements.get(s(o))){Wo()}break;case"smoothly-table-head":if(!customElements.get(s(o))){Mo()}break;case"smoothly-table-row":if(!customElements.get(s(o))){Fo()}break;case"smoothly-table-row-group":if(!customElements.get(s(o))){Go()}break;case"smoothly-tabs":if(!customElements.get(s(o))){Io()}break;case"smoothly-tabs-demo":if(!customElements.get(s(o))){Lo()}break;case"smoothly-theme-color":if(!customElements.get(s(o))){zo()}break;case"smoothly-theme-color-variant":if(!customElements.get(s(o))){Zo()}break;case"smoothly-theme-colors":if(!customElements.get(s(o))){Ho()}break;case"smoothly-theme-demo":if(!customElements.get(s(o))){Vo()}break;case"smoothly-theme-guide":if(!customElements.get(s(o))){Xo()}break;case"smoothly-theme-picker":if(!customElements.get(s(o))){qo()}break;case"smoothly-toggle-switch":if(!customElements.get(s(o))){No()}break;case"smoothly-toggle-switch-demo":if(!customElements.get(s(o))){_o()}break;case"smoothly-trigger":if(!customElements.get(s(o))){Jo()}break}}))}Uo();const Yo=Oo;const Po=Uo;export{Yo as SmoothlyAppDemo,Po as defineCustomElement};
1
+ import{p as o,H as e,h as t,t as s}from"./p-BsZrGTcp.js";import{d as m}from"./p-B2SQlYXg.js";import{d as a}from"./p-Doc1GrjW.js";import{d as l}from"./p-CCwzp3Kg.js";import{d as r}from"./p-BWdGj6F8.js";import{d as i}from"./p-mmAi00ak.js";import{d as c}from"./p-Cl8L61mt.js";import{d}from"./p-DfSSSicA.js";import{d as p}from"./p-jd_qrwk9.js";import{d as n}from"./p-l7KxEsrG.js";import{d as f}from"./p-BE5E3Jm6.js";import{d as y}from"./p-DfwyarvV.js";import{d as b}from"./p-8kVBmIEY.js";import{d as h}from"./p-CN3iME9d.js";import{d as u}from"./p-BKKtlLzJ.js";import{d as k}from"./p-CY71xgKe.js";import{d as j}from"./p-DG2pfnCV.js";import{d as E}from"./p-uFR5K4vd.js";import{d as g}from"./p-DvZK__s-.js";import{d as C}from"./p-F8qX8ZuL.js";import{d as D}from"./p-BLDkKrD6.js";import{d as w}from"./p-BOgkCDpz.js";import{d as B}from"./p-DcOQ-AL9.js";import{d as v}from"./p-yIbGvKho.js";import{d as x}from"./p-BiRi-ZIu.js";import{d as S}from"./p-D7ibQkKs.js";import{d as K}from"./p-C4PyQibs.js";import{d as T}from"./p-XXG8KYEH.js";import{d as A}from"./p-J05ZrIy8.js";import{d as I}from"./p-DDlDQL4g.js";import{d as Z}from"./p-CnPK9tlN.js";import{d as Q}from"./p-fZNu4CkP.js";import{d as R}from"./p-CA4ZV5xR.js";import{d as F}from"./p-Bt-mtf0k.js";import{d as L}from"./p-DFSiKg4M.js";import{d as M}from"./p-B4ZWPf6K.js";import{d as W}from"./p-BWF43Ktc.js";import{d as G}from"./p-BAMxyPpe.js";import{d as z}from"./p-e3dhSqSH.js";import{d as H}from"./p-BkrgS2Eo.js";import{d as P}from"./p-BeMfiXqA.js";import{d as V}from"./p-CZY1H_tZ.js";import{d as X}from"./p-B1agr2Cu.js";import{d as Y}from"./p-Bp65xiCy.js";import{d as _}from"./p-D1kz47jP.js";import{d as J}from"./p-DB5eYiPc.js";import{d as N}from"./p-CMEM-pz8.js";import{d as q}from"./p-C3ntRScd.js";import{d as U}from"./p-_46rt1sK.js";import{d as O}from"./p-CXd0RCW9.js";import{d as $}from"./p-BR6cMQkb.js";import{d as oo}from"./p-EqRJl32n.js";import{d as eo}from"./p-DTVTH7QY.js";import{d as to}from"./p-CcJ_7PQR.js";import{d as so}from"./p-CvhP-Vls.js";import{d as mo}from"./p-WyNQ9SZM.js";import{d as ao}from"./p-DAB4uIiw.js";import{d as lo}from"./p-CMhSJk_G.js";import{d as ro}from"./p-DTo2Itg9.js";import{d as io}from"./p-C3bp3FF4.js";import{d as co}from"./p-DtGUtK97.js";import{d as po}from"./p-Dbwl2AV3.js";import{d as no}from"./p-CcJJSSNp.js";import{d as fo}from"./p-BMCHQuiC.js";import{d as yo}from"./p-1IbSjfRJ.js";import{d as bo}from"./p-Bdn7S2FK.js";import{d as ho}from"./p-CI8xrsZF.js";import{d as uo}from"./p-Cu84ppD4.js";import{d as ko}from"./p-MWZzvkuh.js";import{d as jo}from"./p-DaxzTpsr.js";import{d as Eo}from"./p-Cvc3SMPo.js";import{d as go}from"./p-nBkQozv8.js";import{d as Co}from"./p-ca1ZzpjQ.js";import{d as Do}from"./p-CFSQhgLX.js";import{d as wo}from"./p-B_8v46jP.js";import{d as Bo}from"./p-Du3BErGp.js";import{d as vo}from"./p-i49ZmE4D.js";import{d as xo}from"./p-F7kTA33j.js";import{d as So}from"./p-B2_ScOnh.js";import{d as Ko}from"./p-DXFBAVrd.js";import{d as To}from"./p-DGKXbkuc.js";import{d as Ao}from"./p-6t4TTe9M.js";import{d as Io}from"./p-BNCRANHq.js";import{d as Zo}from"./p-DWA8xW2u.js";import{d as Qo}from"./p-gELDTDod.js";import{d as Ro}from"./p-DDxHDn3A.js";import{d as Fo}from"./p-KvtHm4oA.js";import{d as Lo}from"./p-7Bkv44Kg.js";import{d as Mo}from"./p-2Y5tLcQ1.js";import{d as Wo}from"./p-Cg9sulGk.js";import{d as Go}from"./p-BmOu5krL.js";import{d as zo}from"./p-BnYCDLp0.js";import{d as Ho}from"./p-BaA80q8p.js";import{d as Po}from"./p-Cd3l3tXR.js";import{d as Vo}from"./p-CW-4QxIV.js";import{d as Xo}from"./p-B8xGVFme.js";import{d as Yo}from"./p-D6t9mpY2.js";import{d as _o}from"./p-DNSImvvt.js";import{d as Jo}from"./p-BCX9Z_Id.js";const No=o(class o extends e{constructor(o){super();if(o!==false){this.__registerHost()}}urlChangeHandler(o){console.log("smoothlyUrlChange",o.detail)}render(){return t("smoothly-app",{key:"86d6cc67b58d8c7c04b9fd7e33891dfacb529943",color:"dark",label:"Smoothly Demo",home:"/root",ref:o=>this.app=o},t("smoothly-app-room",{key:"7012500cb2629c53e1156372722e8ef2b6d047eb",path:"/"},t("section",{key:"759dafafbd63e7fff5bf0acd0502e8eec36e8c64",style:{padding:"1em",maxWidth:"32em",margin:"0 auto"}},t("header",{key:"0ed18baa408a674f906abc32425ce6037662a476"},t("h1",{key:"22cb0dc61fece9d2d7acae6a55db19ccc57261df"},"Welcome")),t("p",{key:"d914f970b834d217cd2dfd7d2d05cd0c4b5dcb65"},"Smoothly is a component library written in ",t("a",{key:"3626d6388b49307f475e4071ef114039dcb51f60",href:"http://stenciljs.com"},"Stencil"),". It can therefore be used across web based frontend toolchains such as React, Vue, Angular, Svelte, and even plain HTML."),t("p",{key:"319549bf6b8cca5d5f9042b1f74c29e884545a59"},"This is particularly useful when trying to unifying the user experience across projects written in different technology stacks. It is also written to minimize the amount of code you need to write to achieve a nice user experience."))),t("smoothly-app-room",{key:"4c752059c00ad39c3bee1d36bdac99bfad027f5f",path:"/form",label:"Forms",content:t("smoothly-form-demo",null)}),t("smoothly-app-room",{key:"02b7dd008a64194f348bfb0679217ebbea05fac9",path:"/input",label:"Inputs",content:t("smoothly-input-demo",null)}),t("smoothly-app-room",{key:"41c7489608d0da9a8d4a2ab9b1a56c425cc36f21",path:"/table",label:"Tables",content:t("smoothly-table-demo",null)}),t("smoothly-app-room",{key:"b10b3c95084e9f27a6ebeaf5170bb10be8226c87",path:"/button",label:"Buttons",content:t("smoothly-button-demo",null)}),t("smoothly-app-room",{key:"f20620084dd779b954fa440b559db2bdccf0b3a3",path:"/icon",label:"Icons",content:t("smoothly-icon-demo",null)}),t("smoothly-app-room",{key:"5078c24c13064315cf8f761809e60cdfc1734c41",path:"/theme",label:"Theming",content:t("smoothly-theme-demo",null)}),t("smoothly-app-room",{key:"2a54a53a694e23460e96b9fb04483204f9e1c347",path:"/notifier",label:"Notices",content:t("smoothly-notifier-demo",null)}),t("smoothly-app-room",{key:"d57766baebf8df0791e1e5f845c2bac7d7b8729f",path:"/dialog",label:"Dialogs",content:t("smoothly-dialog-demo",null),slot:"nav-end"}),t("smoothly-app-room",{key:"d5bde6145e9950a3ddcda8e24d811203a4b69f27",path:"/display",label:"Display",content:t("smoothly-display-demo",null),slot:"nav-end"}),t("smoothly-app-room",{key:"3d56ef533e12cb88ec84bd2fdc63a60e64031083",path:"/tabs",label:"Tabs",slot:"nav-end"},t("smoothly-tabs-demo",{key:"271d70eb22cc0152161d42c137a3d00c19c6bba3"})),t("smoothly-app-room",{key:"c0cbe202e3d74ceacd8e88795c58ece2c1392bf5",path:"/links",label:"Links",slot:"nav-end"},t("smoothly-input",{key:"a39f0e568b614baaf271585da4ee013e48ff24fe",type:"text"},"Default"),t("div",{key:"a75dc6524b85da5e0c81b75a9b74d020c2723384",style:{padding:"1em",maxWidth:"12em"}},t("smoothly-button",{key:"a3820b0c802acc358ee3ab4ca9483411bdff04a8",fill:"solid",color:"danger",link:"https://google.com"},"open"),t("smoothly-button",{key:"fd1c12e214b53d8acdb8828cb616356ae8fe94e9",fill:"solid",color:"danger",link:"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",type:"download"},"download"),t("smoothly-button",{key:"f7c9c0a9eb4ca942f56e02b840087398a2688cd8",fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),t("smoothly-button",{key:"ebce581340217e91d6abf1bbff7538f77c5842ae",disabled:true,fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),t("smoothly-button",{key:"01c20890774174c6ec793de4711d8e0530630108",type:"link",fill:"clear",color:"danger",onClick:()=>alert("clicked")},"action link"))),t("smoothly-app-room",{key:"42945bb6698943a783d0502f3ff0a08cb6ad583e",path:"/redirect",label:"Redirect",slot:"nav-end"},t("smoothly-button",{key:"b022c14f0680b1ca5f511cd87ab152a9ffb5b15d",type:"link",link:"/input"},"To input"),t("smoothly-button",{key:"566a1821001da85b67ce9f68f74b590c5319f060",type:"link",link:"../button"},"To button"),t("smoothly-button",{key:"e99bbe6cbb348b2c8b2dba558458c08dea22db21",type:"link",link:new URL("/hidden",window.location.origin).href},"To hidden"),t("smoothly-button",{key:"61e59ec9039a63b1d9c50c6705dc0098027be92a",type:"link",link:"/redirect"},"To redirect"),t("smoothly-button",{key:"511eba63ae34b4151e99ce482cb532849ab91dd7",type:"link",link:"nested"},"To redirect nested, relative path")),t("smoothly-app-room",{key:"bac6fa14c1c0dd2ebda292fe70255e53f466dc00",path:"/hidden"},t("p",{key:"1acd1207b775790f189fd8d8c3fb96a5b8d8a991"},"hello world!")),t("smoothly-app-room",{key:"2ecda7ecb183b382bb2987195af5a96e13e3b8b1",path:"/redirect/nested"},"this is a nested room"))}},[0,"smoothly-app-demo",{baseUrl:[1,"base-url"]},[[8,"smoothlyUrlChange","urlChangeHandler"]]]);function qo(){if(typeof customElements==="undefined"){return}const o=["smoothly-app-demo","smoothly-app","smoothly-app-room","smoothly-back-to-top","smoothly-burger","smoothly-button","smoothly-button-confirm","smoothly-button-demo","smoothly-button-demo-standard","smoothly-calendar","smoothly-date-text","smoothly-dialog","smoothly-dialog-demo","smoothly-display","smoothly-display-demo","smoothly-display-demo-json","smoothly-display-json","smoothly-display-json-object","smoothly-display-json-primitive","smoothly-display-json-record-key","smoothly-form","smoothly-form-demo","smoothly-form-demo-all","smoothly-form-demo-card","smoothly-form-demo-controlled","smoothly-form-demo-date","smoothly-form-demo-date-range","smoothly-form-demo-login","smoothly-form-demo-pet","smoothly-form-demo-prices","smoothly-form-demo-schedule","smoothly-form-demo-transparent","smoothly-form-demo-typed","smoothly-frame","smoothly-icon","smoothly-icon-demo","smoothly-input","smoothly-input-checkbox","smoothly-input-clear","smoothly-input-color","smoothly-input-color-demo","smoothly-input-date","smoothly-input-date-demo","smoothly-input-date-range","smoothly-input-date-time","smoothly-input-demo","smoothly-input-demo-radio","smoothly-input-demo-standard","smoothly-input-demo-user-input","smoothly-input-edit","smoothly-input-file","smoothly-input-month","smoothly-input-price-demo","smoothly-input-radio","smoothly-input-radio-item","smoothly-input-range","smoothly-input-range-demo","smoothly-input-reset","smoothly-input-select","smoothly-input-submit","smoothly-item","smoothly-label","smoothly-lazy","smoothly-load-more","smoothly-modal","smoothly-notification","smoothly-notifier","smoothly-notifier-demo","smoothly-spinner","smoothly-summary","smoothly-tab","smoothly-table","smoothly-table-body","smoothly-table-cell","smoothly-table-demo","smoothly-table-demo-colspan","smoothly-table-demo-filler-row","smoothly-table-demo-group","smoothly-table-demo-nested-no-cell","smoothly-table-demo-nested-no-cell-inner","smoothly-table-demo-simple","smoothly-table-expandable-cell","smoothly-table-expandable-row","smoothly-table-filler-row","smoothly-table-foot","smoothly-table-head","smoothly-table-row","smoothly-table-row-group","smoothly-tabs","smoothly-tabs-demo","smoothly-theme-color","smoothly-theme-color-variant","smoothly-theme-colors","smoothly-theme-demo","smoothly-theme-guide","smoothly-theme-picker","smoothly-toggle-switch","smoothly-toggle-switch-demo","smoothly-trigger"];o.forEach((o=>{switch(o){case"smoothly-app-demo":if(!customElements.get(s(o))){customElements.define(s(o),No)}break;case"smoothly-app":if(!customElements.get(s(o))){m()}break;case"smoothly-app-room":if(!customElements.get(s(o))){a()}break;case"smoothly-back-to-top":if(!customElements.get(s(o))){l()}break;case"smoothly-burger":if(!customElements.get(s(o))){r()}break;case"smoothly-button":if(!customElements.get(s(o))){i()}break;case"smoothly-button-confirm":if(!customElements.get(s(o))){c()}break;case"smoothly-button-demo":if(!customElements.get(s(o))){d()}break;case"smoothly-button-demo-standard":if(!customElements.get(s(o))){p()}break;case"smoothly-calendar":if(!customElements.get(s(o))){n()}break;case"smoothly-date-text":if(!customElements.get(s(o))){f()}break;case"smoothly-dialog":if(!customElements.get(s(o))){y()}break;case"smoothly-dialog-demo":if(!customElements.get(s(o))){b()}break;case"smoothly-display":if(!customElements.get(s(o))){h()}break;case"smoothly-display-demo":if(!customElements.get(s(o))){u()}break;case"smoothly-display-demo-json":if(!customElements.get(s(o))){k()}break;case"smoothly-display-json":if(!customElements.get(s(o))){j()}break;case"smoothly-display-json-object":if(!customElements.get(s(o))){E()}break;case"smoothly-display-json-primitive":if(!customElements.get(s(o))){g()}break;case"smoothly-display-json-record-key":if(!customElements.get(s(o))){C()}break;case"smoothly-form":if(!customElements.get(s(o))){D()}break;case"smoothly-form-demo":if(!customElements.get(s(o))){w()}break;case"smoothly-form-demo-all":if(!customElements.get(s(o))){B()}break;case"smoothly-form-demo-card":if(!customElements.get(s(o))){v()}break;case"smoothly-form-demo-controlled":if(!customElements.get(s(o))){x()}break;case"smoothly-form-demo-date":if(!customElements.get(s(o))){S()}break;case"smoothly-form-demo-date-range":if(!customElements.get(s(o))){K()}break;case"smoothly-form-demo-login":if(!customElements.get(s(o))){T()}break;case"smoothly-form-demo-pet":if(!customElements.get(s(o))){A()}break;case"smoothly-form-demo-prices":if(!customElements.get(s(o))){I()}break;case"smoothly-form-demo-schedule":if(!customElements.get(s(o))){Z()}break;case"smoothly-form-demo-transparent":if(!customElements.get(s(o))){Q()}break;case"smoothly-form-demo-typed":if(!customElements.get(s(o))){R()}break;case"smoothly-frame":if(!customElements.get(s(o))){F()}break;case"smoothly-icon":if(!customElements.get(s(o))){L()}break;case"smoothly-icon-demo":if(!customElements.get(s(o))){M()}break;case"smoothly-input":if(!customElements.get(s(o))){W()}break;case"smoothly-input-checkbox":if(!customElements.get(s(o))){G()}break;case"smoothly-input-clear":if(!customElements.get(s(o))){z()}break;case"smoothly-input-color":if(!customElements.get(s(o))){H()}break;case"smoothly-input-color-demo":if(!customElements.get(s(o))){P()}break;case"smoothly-input-date":if(!customElements.get(s(o))){V()}break;case"smoothly-input-date-demo":if(!customElements.get(s(o))){X()}break;case"smoothly-input-date-range":if(!customElements.get(s(o))){Y()}break;case"smoothly-input-date-time":if(!customElements.get(s(o))){_()}break;case"smoothly-input-demo":if(!customElements.get(s(o))){J()}break;case"smoothly-input-demo-radio":if(!customElements.get(s(o))){N()}break;case"smoothly-input-demo-standard":if(!customElements.get(s(o))){q()}break;case"smoothly-input-demo-user-input":if(!customElements.get(s(o))){U()}break;case"smoothly-input-edit":if(!customElements.get(s(o))){O()}break;case"smoothly-input-file":if(!customElements.get(s(o))){$()}break;case"smoothly-input-month":if(!customElements.get(s(o))){oo()}break;case"smoothly-input-price-demo":if(!customElements.get(s(o))){eo()}break;case"smoothly-input-radio":if(!customElements.get(s(o))){to()}break;case"smoothly-input-radio-item":if(!customElements.get(s(o))){so()}break;case"smoothly-input-range":if(!customElements.get(s(o))){mo()}break;case"smoothly-input-range-demo":if(!customElements.get(s(o))){ao()}break;case"smoothly-input-reset":if(!customElements.get(s(o))){lo()}break;case"smoothly-input-select":if(!customElements.get(s(o))){ro()}break;case"smoothly-input-submit":if(!customElements.get(s(o))){io()}break;case"smoothly-item":if(!customElements.get(s(o))){co()}break;case"smoothly-label":if(!customElements.get(s(o))){po()}break;case"smoothly-lazy":if(!customElements.get(s(o))){no()}break;case"smoothly-load-more":if(!customElements.get(s(o))){fo()}break;case"smoothly-modal":if(!customElements.get(s(o))){yo()}break;case"smoothly-notification":if(!customElements.get(s(o))){bo()}break;case"smoothly-notifier":if(!customElements.get(s(o))){ho()}break;case"smoothly-notifier-demo":if(!customElements.get(s(o))){uo()}break;case"smoothly-spinner":if(!customElements.get(s(o))){ko()}break;case"smoothly-summary":if(!customElements.get(s(o))){jo()}break;case"smoothly-tab":if(!customElements.get(s(o))){Eo()}break;case"smoothly-table":if(!customElements.get(s(o))){go()}break;case"smoothly-table-body":if(!customElements.get(s(o))){Co()}break;case"smoothly-table-cell":if(!customElements.get(s(o))){Do()}break;case"smoothly-table-demo":if(!customElements.get(s(o))){wo()}break;case"smoothly-table-demo-colspan":if(!customElements.get(s(o))){Bo()}break;case"smoothly-table-demo-filler-row":if(!customElements.get(s(o))){vo()}break;case"smoothly-table-demo-group":if(!customElements.get(s(o))){xo()}break;case"smoothly-table-demo-nested-no-cell":if(!customElements.get(s(o))){So()}break;case"smoothly-table-demo-nested-no-cell-inner":if(!customElements.get(s(o))){Ko()}break;case"smoothly-table-demo-simple":if(!customElements.get(s(o))){To()}break;case"smoothly-table-expandable-cell":if(!customElements.get(s(o))){Ao()}break;case"smoothly-table-expandable-row":if(!customElements.get(s(o))){Io()}break;case"smoothly-table-filler-row":if(!customElements.get(s(o))){Zo()}break;case"smoothly-table-foot":if(!customElements.get(s(o))){Qo()}break;case"smoothly-table-head":if(!customElements.get(s(o))){Ro()}break;case"smoothly-table-row":if(!customElements.get(s(o))){Fo()}break;case"smoothly-table-row-group":if(!customElements.get(s(o))){Lo()}break;case"smoothly-tabs":if(!customElements.get(s(o))){Mo()}break;case"smoothly-tabs-demo":if(!customElements.get(s(o))){Wo()}break;case"smoothly-theme-color":if(!customElements.get(s(o))){Go()}break;case"smoothly-theme-color-variant":if(!customElements.get(s(o))){zo()}break;case"smoothly-theme-colors":if(!customElements.get(s(o))){Ho()}break;case"smoothly-theme-demo":if(!customElements.get(s(o))){Po()}break;case"smoothly-theme-guide":if(!customElements.get(s(o))){Vo()}break;case"smoothly-theme-picker":if(!customElements.get(s(o))){Xo()}break;case"smoothly-toggle-switch":if(!customElements.get(s(o))){Yo()}break;case"smoothly-toggle-switch-demo":if(!customElements.get(s(o))){_o()}break;case"smoothly-trigger":if(!customElements.get(s(o))){Jo()}break}}))}qo();const Uo=No;const Oo=qo;export{Uo as SmoothlyAppDemo,Oo as defineCustomElement};
2
2
  //# sourceMappingURL=smoothly-app-demo.js.map
@@ -1,2 +1,2 @@
1
- import{S as o,d as s}from"./p-bROQezlS.js";const t=o;const p=s;export{t as SmoothlyButtonDemoStandard,p as defineCustomElement};
1
+ import{S as o,d as s}from"./p-jd_qrwk9.js";const r=o;const t=s;export{r as SmoothlyButtonDemoStandard,t as defineCustomElement};
2
2
  //# sourceMappingURL=smoothly-button-demo-standard.js.map
@@ -1,2 +1,2 @@
1
- import{S as o,d as s}from"./p-DUuSvBmQ.js";const t=o;const m=s;export{t as SmoothlyButtonDemo,m as defineCustomElement};
1
+ import{S as o,d as s}from"./p-DfSSSicA.js";const t=o;const S=s;export{t as SmoothlyButtonDemo,S as defineCustomElement};
2
2
  //# sourceMappingURL=smoothly-button-demo.js.map
@@ -1,2 +1,2 @@
1
- import{C as s,d as o}from"./p-DES0wbqs.js";const t=s;const p=o;export{t as SmoothlyCalendar,p as defineCustomElement};
1
+ import{C as s,d as o}from"./p-l7KxEsrG.js";const r=s;const t=o;export{r as SmoothlyCalendar,t as defineCustomElement};
2
2
  //# sourceMappingURL=smoothly-calendar.js.map
@@ -1,2 +1,2 @@
1
- import{S as o,d as s}from"./p-Obm_ForQ.js";const r=o;const t=s;export{r as SmoothlyFormDemoAll,t as defineCustomElement};
1
+ import{S as o,d as s}from"./p-DcOQ-AL9.js";const t=o;const c=s;export{t as SmoothlyFormDemoAll,c as defineCustomElement};
2
2
  //# sourceMappingURL=smoothly-form-demo-all.js.map
@@ -1,2 +1,2 @@
1
- import{S as o,d as s}from"./p-C5SROPcr.js";const r=o;const t=s;export{r as SmoothlyFormDemoControlled,t as defineCustomElement};
1
+ import{S as o,d as s}from"./p-BiRi-ZIu.js";const t=o;const i=s;export{t as SmoothlyFormDemoControlled,i as defineCustomElement};
2
2
  //# sourceMappingURL=smoothly-form-demo-controlled.js.map
@@ -1,2 +1,2 @@
1
- import{S as s,d as o}from"./p-BlSr9psC.js";const p=s;const r=o;export{p as SmoothlyFormDemoDateRange,r as defineCustomElement};
1
+ import{S as s,d as o}from"./p-C4PyQibs.js";const t=s;const p=o;export{t as SmoothlyFormDemoDateRange,p as defineCustomElement};
2
2
  //# sourceMappingURL=smoothly-form-demo-date-range.js.map