smoothly 1.111.0 → 1.112.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/cjs/smoothly-app_98.cjs.entry.js +30 -14
  2. package/dist/cjs/smoothly-app_98.cjs.entry.js.map +1 -1
  3. package/dist/collection/components/input/clear/index.js +11 -7
  4. package/dist/collection/components/input/clear/index.js.map +1 -1
  5. package/dist/collection/components/input/reset/index.js +12 -8
  6. package/dist/collection/components/input/reset/index.js.map +1 -1
  7. package/dist/collection/components/input/submit/index.js +13 -7
  8. package/dist/collection/components/input/submit/index.js.map +1 -1
  9. package/dist/components/{p-CKxNCxBn.js → p-BGKOGyFA.js} +2 -2
  10. package/dist/components/{p-fJkfUsWz.js → p-BRkEF66h.js} +2 -2
  11. package/dist/components/{p-CrNizZqW.js → p-BX6yRNGo.js} +2 -2
  12. package/dist/components/{p-DZadnBSZ.js → p-BaBGzDg_.js} +2 -2
  13. package/dist/components/p-BaBGzDg_.js.map +1 -0
  14. package/dist/components/{p-p0yn7c4h.js → p-BiwhssQ8.js} +2 -2
  15. package/dist/components/{p-C8cvGmGP.js → p-Bj9DsW03.js} +2 -2
  16. package/dist/components/{p-DR3KUEvE.js → p-Bp9BMsim.js} +2 -2
  17. package/dist/components/{p-DBkHnJdp.js → p-Bs8X_nDB.js} +2 -2
  18. package/dist/components/{p-fafhoJgv.js → p-C3__jhwf.js} +2 -2
  19. package/dist/components/{p-DqwlZYFh.js → p-CKrPTQ_S.js} +2 -2
  20. package/dist/components/p-CKrPTQ_S.js.map +1 -0
  21. package/dist/components/{p-BgXgncGY.js → p-CZ6kkjYF.js} +2 -2
  22. package/dist/components/{p-DgHAvBgB.js → p-CqSJ0pgl.js} +2 -2
  23. package/dist/components/{p-C629G4I1.js → p-CqyInbXs.js} +2 -2
  24. package/dist/components/{p-CyhRVB6K.js → p-CrxXCTnH.js} +2 -2
  25. package/dist/components/{p-DA_1vtmU.js → p-CtN3gqjJ.js} +2 -2
  26. package/dist/components/{p-CVp4Wd4u.js → p-D7cDUGTe.js} +2 -2
  27. package/dist/components/p-D7cDUGTe.js.map +1 -0
  28. package/dist/components/{p-CiJgTdse.js → p-DVuQ4t_X.js} +2 -2
  29. package/dist/components/{p-CdYYtJX2.js → p-DbIjGsJb.js} +2 -2
  30. package/dist/components/{p-HKrMuYSD.js → p-Dx5PGIAk.js} +2 -2
  31. package/dist/components/{p-DlHIV5_u.js → p-Mk_F6MCP.js} +2 -2
  32. package/dist/components/{p-C5Bgwjpo.js → p-jatJrx5f.js} +2 -2
  33. package/dist/components/p-t3cG0BK6.js +2 -0
  34. package/dist/components/{p-D1cLYdzg.js.map → p-t3cG0BK6.js.map} +1 -1
  35. package/dist/components/smoothly-app-demo.js +1 -1
  36. package/dist/components/smoothly-button-demo-standard.js +1 -1
  37. package/dist/components/smoothly-button-demo.js +1 -1
  38. package/dist/components/smoothly-form-demo-all.js +1 -1
  39. package/dist/components/smoothly-form-demo-card.js +1 -1
  40. package/dist/components/smoothly-form-demo-controlled.js +1 -1
  41. package/dist/components/smoothly-form-demo-date-range.js +1 -1
  42. package/dist/components/smoothly-form-demo-date.js +1 -1
  43. package/dist/components/smoothly-form-demo-login.js +1 -1
  44. package/dist/components/smoothly-form-demo-pet.js +1 -1
  45. package/dist/components/smoothly-form-demo-prices.js +1 -1
  46. package/dist/components/smoothly-form-demo-schedule.js +1 -1
  47. package/dist/components/smoothly-form-demo-transparent.js +1 -1
  48. package/dist/components/smoothly-form-demo-typed.js +1 -1
  49. package/dist/components/smoothly-form-demo.js +1 -1
  50. package/dist/components/smoothly-icon-demo.js +1 -1
  51. package/dist/components/smoothly-input-checkbox-demo.js +1 -1
  52. package/dist/components/smoothly-input-clear.js +1 -1
  53. package/dist/components/smoothly-input-date-demo.js +1 -1
  54. package/dist/components/smoothly-input-demo-standard.js +1 -1
  55. package/dist/components/smoothly-input-demo.js +1 -1
  56. package/dist/components/smoothly-input-range-demo.js +1 -1
  57. package/dist/components/smoothly-input-reset.js +1 -1
  58. package/dist/components/smoothly-input-submit.js +1 -1
  59. package/dist/esm/smoothly-app_98.entry.js +30 -14
  60. package/dist/esm/smoothly-app_98.entry.js.map +1 -1
  61. package/dist/smoothly/p-23badc13.entry.js +2 -0
  62. package/dist/smoothly/p-23badc13.entry.js.map +1 -0
  63. package/dist/smoothly/smoothly.esm.js +1 -1
  64. package/dist/types/components/input/clear/index.d.ts +1 -1
  65. package/dist/types/components/input/reset/index.d.ts +1 -1
  66. package/dist/types/components.d.ts +2 -14
  67. package/package.json +1 -1
  68. package/dist/components/p-CVp4Wd4u.js.map +0 -1
  69. package/dist/components/p-D1cLYdzg.js +0 -2
  70. package/dist/components/p-DZadnBSZ.js.map +0 -1
  71. package/dist/components/p-DqwlZYFh.js.map +0 -1
  72. package/dist/smoothly/p-0a7de225.entry.js +0 -2
  73. package/dist/smoothly/p-0a7de225.entry.js.map +0 -1
  74. /package/dist/components/{p-CKxNCxBn.js.map → p-BGKOGyFA.js.map} +0 -0
  75. /package/dist/components/{p-fJkfUsWz.js.map → p-BRkEF66h.js.map} +0 -0
  76. /package/dist/components/{p-CrNizZqW.js.map → p-BX6yRNGo.js.map} +0 -0
  77. /package/dist/components/{p-p0yn7c4h.js.map → p-BiwhssQ8.js.map} +0 -0
  78. /package/dist/components/{p-C8cvGmGP.js.map → p-Bj9DsW03.js.map} +0 -0
  79. /package/dist/components/{p-DR3KUEvE.js.map → p-Bp9BMsim.js.map} +0 -0
  80. /package/dist/components/{p-DBkHnJdp.js.map → p-Bs8X_nDB.js.map} +0 -0
  81. /package/dist/components/{p-fafhoJgv.js.map → p-C3__jhwf.js.map} +0 -0
  82. /package/dist/components/{p-BgXgncGY.js.map → p-CZ6kkjYF.js.map} +0 -0
  83. /package/dist/components/{p-DgHAvBgB.js.map → p-CqSJ0pgl.js.map} +0 -0
  84. /package/dist/components/{p-C629G4I1.js.map → p-CqyInbXs.js.map} +0 -0
  85. /package/dist/components/{p-CyhRVB6K.js.map → p-CrxXCTnH.js.map} +0 -0
  86. /package/dist/components/{p-DA_1vtmU.js.map → p-CtN3gqjJ.js.map} +0 -0
  87. /package/dist/components/{p-CiJgTdse.js.map → p-DVuQ4t_X.js.map} +0 -0
  88. /package/dist/components/{p-CdYYtJX2.js.map → p-DbIjGsJb.js.map} +0 -0
  89. /package/dist/components/{p-HKrMuYSD.js.map → p-Dx5PGIAk.js.map} +0 -0
  90. /package/dist/components/{p-DlHIV5_u.js.map → p-Mk_F6MCP.js.map} +0 -0
  91. /package/dist/components/{p-C5Bgwjpo.js.map → p-jatJrx5f.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{p as e,b as o}from"./p-CdFSoe1d.js";export{s as setNonce}from"./p-CdFSoe1d.js";import{g as l}from"./p-B_K1otJx.js";var t=()=>{const o=import.meta.url;const l={};if(o!==""){l.resourcesUrl=new URL(".",o).href}return e(l)};t().then((async e=>{await l();return o(JSON.parse('[["p-0a7de225",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]},[[8,"smoothlyUrlChange","urlChangeHandler"]]],[2,"smoothly-form-demo"],[2,"smoothly-input-demo",{"duration":[32],"alphanumeric":[32]}],[2,"smoothly-table-demo"],[0,"smoothly-button-demo"],[2,"smoothly-icon-demo",{"display":[32],"props":[32]}],[2,"smoothly-theme-demo"],[0,"smoothly-display-demo",{"downloadingSpinner":[32]}],[2,"smoothly-dialog-demo",{"openModal":[32],"openTallModal":[32],"showFrame":[32]}],[260,"smoothly-app",{"label":[513],"color":[1],"home":[1],"menuOpen":[1540,"menu-open"],"navBreakpoint":[513,"nav-breakpoint"],"mobileMode":[32],"selected":[32],"selectRoom":[64]},[[8,"popstate","locationChangeHandler"],[0,"smoothlyRoomSelect","roomSelectedHandler"],[0,"smoothlyRoomLoad","roomLoadedHandler"],[8,"click","clickHandler"]],{"selected":[{"selectedChanged":0}]}],[262,"smoothly-app-room",{"label":[513],"icon":[513],"disabled":[516],"path":[1],"selected":[1540],"content":[16],"mobileMode":[32],"setMobileMode":[64],"getContent":[64],"setSelected":[64]},[[8,"smoothlyUrlUpdate","setQuery"]]],[2,"smoothly-tabs-demo",{"extraTab1":[32],"extraTab2":[32]}],[2,"smoothly-form-demo-pet",{"hasOwner":[32],"owner":[32],"value":[32]}],[2,"smoothly-input-demo-standard",{"duration":[32],"options":[32]}],[2,"smoothly-form-demo-all"],[2,"smoothly-input-demo-user-input",{"textIndex":[32],"selectIndex":[32],"checkboxChecked":[32],"radioIndex":[32],"rangeValue":[32],"colorIndex":[32],"dateValue":[32],"datetimeValue":[32],"dateRangeValue":[32]}],[2,"smoothly-form-demo-transparent"],[2,"smoothly-table-demo-group"],[2,"smoothly-form-demo-schedule"],[2,"smoothly-form-demo-typed"],[2,"smoothly-table-demo-colspan"],[2,"smoothly-table-demo-nested-no-cell",{"loadingIndex":[32],"loadedRows":[32]}],[2,"smoothly-form-demo-controlled",{"name":[32],"currency":[32],"date":[32]},null,{"name":[{"nameChanged":0}]}],[2,"smoothly-form-demo-date"],[2,"smoothly-form-demo-date-range"],[2,"smoothly-table-demo-filler-row",{"cats":[32]}],[2,"smoothly-table-demo-simple"],[2,"smoothly-button-demo-standard",{"props":[32],"heightText":[32],"lastButton":[32]},null,{"props":[{"updateInputHeightText":0}]}],[2,"smoothly-input-date-demo",{"date":[32],"alwaysShowGuide":[32]}],[0,"smoothly-input-color-demo"],[0,"smoothly-input-range-demo"],[2,"smoothly-form-demo-login"],[2,"smoothly-form-demo-prices"],[2,"smoothly-form-demo-card"],[0,"smoothly-display-demo-json"],[2,"smoothly-input-demo-radio",{"selected":[32]},null,{"selected":[{"selectedChange":0}]}],[2,"smoothly-theme-guide"],[2,"smoothly-input-price-demo",{"currencies":[32],"currency":[32]}],[262,"smoothly-notifier",{"icon":[4],"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[262,"smoothly-theme-picker",{"element":[1]}],[262,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-theme-colors"],[2,"smoothly-toggle-switch-demo"],[2,"smoothly-burger",{"open":[1540]},[[0,"click","clickHandler"]],{"open":[{"openChanged":0}]}],[262,"smoothly-modal",{"open":[1540],"closable":[516],"align":[513],"closeModal":[64],"openModal":[64]},null,{"open":[{"openChanged":0}]}],[2,"smoothly-frame",{"url":[1],"name":[513],"origin":[1],"send":[64]}],[262,"smoothly-label",{"hue":[2],"description":[1],"shape":[513]}],[2,"smoothly-table-demo-nested-no-cell-inner",{"data":[16]}],[2,"smoothly-notification",{"notice":[16],"closable":[4],"icon":[4],"tick":[32]},[[0,"trigger","onTrigger"]],{"notice":[{"onUpdatedNotice":0}]}],[262,"smoothly-table-filler-row"],[2,"smoothly-back-to-top",{"opacity":[1],"bottom":[1],"right":[1],"visible":[32]}],[262,"smoothly-summary",{"open":[1540]}],[2,"smoothly-theme-color",{"color":[1]}],[262,"smoothly-table-row-group",{"align":[516],"open":[1540]}],[262,"smoothly-table-foot"],[2,"smoothly-theme-color-variant",{"color":[513],"variant":[513]}],[262,"smoothly-input-edit",{"color":[1],"expand":[513],"fill":[513],"disabled":[1540],"display":[1540],"shape":[513],"type":[513],"size":[513],"tooltip":[1]},[[0,"click","clickHandler"]]],[262,"smoothly-lazy",{"show":[1028],"content":[16]}],[262,"smoothly-table-expandable-cell",{"span":[514],"open":[1540],"close":[64]},null,{"open":[{"openChange":0}]}],[262,"smoothly-table-expandable-row",{"open":[1540]},null,{"open":[{"openChange":0}]}],[262,"smoothly-input-date-time",{"color":[1537],"looks":[1537],"name":[513],"readonly":[1540],"disabled":[516],"invalid":[516],"errorMessage":[513,"error-message"],"value":[1025],"open":[1028],"showLabel":[516,"show-label"],"min":[1],"max":[1],"date":[32],"hour":[32],"minute":[32],"register":[64],"unregister":[64],"getValue":[64],"listen":[64],"clear":[64],"edit":[64],"reset":[64],"setInitialValue":[64]},[[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[8,"click","onWindowClick"]],{"name":[{"nameChange":0}],"date":[{"handleChange":0}],"hour":[{"handleChange":0}],"minute":[{"handleChange":0}],"value":[{"valueChange":0}],"disabled":[{"watchingReadonly":0}],"readonly":[{"watchingReadonly":0}]}],[2,"smoothly-load-more",{"triggerMode":[1,"trigger-mode"],"name":[1],"multiple":[4],"inView":[32]}],[262,"smoothly-tab",{"label":[1],"name":[1],"tooltip":[1],"open":[1540],"disabled":[516]},[[0,"smoothlyInputLoad","onInputLoad"],[0,"smoothlyInput","onInputLoad"]],{"open":[{"openHandler":0}]}],[262,"smoothly-tabs",{"tabs":[513],"numberOfTabs":[2,"number-of-tabs"],"tabElements":[32],"selectedElement":[32],"removeTab":[64]},[[0,"smoothlyTabLoad","onInputLoad"],[0,"smoothlyTabOpen","openChanged"]],{"selectedElement":[{"onSelectedChange":0}]}],[262,"smoothly-trigger",{"color":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]],[262,"smoothly-table-cell",{"span":[514]}],[262,"smoothly-input-file",{"readonly":[1540],"disabled":[516],"accept":[1],"color":[1537],"looks":[1537],"camera":[513],"name":[513],"showLabel":[516,"show-label"],"value":[1040],"placeholder":[1537],"dragging":[32],"register":[64],"unregister":[64],"getValue":[64],"clear":[64],"listen":[64],"edit":[64],"reset":[64],"setInitialValue":[64],"binary":[64]},[[0,"smoothlyInputLoad","smoothlyInputLoadHandler"]],{"name":[{"nameChange":0}],"value":[{"valueChanged":0}]}],[262,"smoothly-table",{"columns":[2]},[[0,"smoothlyTableExpandableRowChange","smoothlyTableExpandableRowChange"],[0,"smoothlyTableExpandableCellChange","smoothlyTableExpandableCellChange"]]],[262,"smoothly-table-body"],[262,"smoothly-table-head",{"scrolled":[32],"depth":[32]}],[262,"smoothly-input-color",{"value":[1025],"looks":[1537],"color":[1537],"readonly":[1540],"disabled":[516],"output":[1],"name":[513],"showLabel":[516,"show-label"],"open":[32],"sliderMode":[32],"register":[64],"unregister":[64],"getValue":[64],"clear":[64],"listen":[64],"edit":[64],"reset":[64],"setInitialValue":[64]},[[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[8,"click","onWindowClick"]],{"name":[{"nameChange":0}],"disabled":[{"watchingReadonly":0}],"readonly":[{"watchingReadonly":0}],"value":[{"valueChanged":0}]}],[262,"smoothly-table-row",null,[[0,"smoothlyTableExpandableCellRegister","smoothlyTableExpandableCellRegisterHandler"],[0,"smoothlyTableExpandableCellChange","smoothlyTableExpandableCellChangeHandler"]]],[262,"smoothly-input-date-range",{"locale":[513],"name":[513],"color":[1537],"looks":[1537],"readonly":[1540],"disabled":[516],"showLabel":[516,"show-label"],"start":[1025],"end":[1025],"placeholder":[513],"alwaysShowGuide":[516,"always-show-guide"],"invalid":[516],"errorMessage":[513,"error-message"],"max":[1],"min":[1],"open":[32],"startHasText":[32],"endHasText":[32],"register":[64],"unregister":[64],"getValue":[64],"listen":[64],"edit":[64],"reset":[64],"setInitialValue":[64],"clear":[64]},[[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[8,"click","onWindowClick"]],{"start":[{"startChanged":0}],"end":[{"endChanged":0}],"disabled":[{"watchingReadonly":0}],"readonly":[{"watchingReadonly":0}],"name":[{"nameChange":0}]}],[262,"smoothly-input-checkbox",{"name":[513],"readonly":[1540],"disabled":[516],"checked":[1540],"value":[16],"looks":[1537],"color":[1537],"register":[64],"unregister":[64],"getValue":[64],"clear":[64],"listen":[64],"edit":[64],"reset":[64],"setInitialValue":[64]},[[0,"smoothlyInputLoad","smoothlyInputLoadHandler"]],{"name":[{"nameChange":0}],"disabled":[{"handleDisabledChange":0}],"readonly":[{"handleDisabledChange":0}],"checked":[{"elementCheck":0}]}],[262,"smoothly-input-range",{"value":[1026],"looks":[1537],"color":[1537],"defined":[1028],"readonly":[1540],"disabled":[516],"type":[1],"min":[2],"max":[2],"name":[513],"step":[2],"outputSide":[1,"output-side"],"label":[1],"showInput":[32],"register":[64],"unregister":[64],"getValue":[64],"clear":[64],"listen":[64],"edit":[64],"reset":[64],"setInitialValue":[64]},[[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[0,"smoothlyInputLooks","smoothlyInputLooksHandler"]],{"name":[{"nameChange":0}],"value":[{"valueChanged":0}],"disabled":[{"watchingReadonly":0}],"readonly":[{"watchingReadonly":0}]}],[262,"smoothly-input-date",{"locale":[513],"color":[1537],"looks":[1537],"name":[513],"readonly":[1540],"disabled":[516],"invalid":[516],"errorMessage":[513,"error-message"],"placeholder":[513],"alwaysShowGuide":[516,"always-show-guide"],"value":[1025],"open":[1028],"max":[1025],"min":[1025],"showLabel":[516,"show-label"],"hasText":[32],"register":[64],"unregister":[64],"getValue":[64],"listen":[64],"clear":[64],"edit":[64],"reset":[64],"setInitialValue":[64]},[[0,"smoothlyInput","smoothlyInputHandler"],[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[8,"click","onWindowClick"],[0,"smoothlyDateSet","dateSetHandler"]],{"name":[{"nameChange":0}],"value":[{"onValueChange":0}],"disabled":[{"watchingReadonly":0}],"readonly":[{"watchingReadonly":0}]}],[262,"smoothly-input-clear",{"color":[1],"expand":[513],"fill":[513],"disabled":[1540],"size":[513],"shape":[513],"display":[1540],"type":[513],"tooltip":[1]},[[0,"click","clickHandler"]]],[262,"smoothly-input-reset",{"color":[1],"expand":[513],"fill":[513],"disabled":[1540],"size":[513],"shape":[513],"display":[1540],"type":[513],"tooltip":[1]},[[0,"click","clickHandler"]]],[262,"smoothly-input-radio-item",{"value":[1032],"selected":[1540],"looks":[1537],"name":[1025],"disabled":[32]}],[2,"smoothly-toggle-switch",{"checkmark":[516],"selected":[1540],"disabled":[516],"size":[513],"color":[513],"fill":[513]}],[262,"smoothly-input-radio",{"value":[1032],"looks":[1537],"color":[1537],"direction":[513],"clearable":[4],"readonly":[1540],"disabled":[516],"name":[513],"showLabel":[516,"show-label"],"listen":[64],"register":[64],"unregister":[64],"getValue":[64],"clear":[64],"edit":[64],"reset":[64],"setInitialValue":[64]},[[0,"smoothlyRadioItemRegister","handleRegister"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[0,"smoothlyRadioItemSelect","smoothlyRadioInputHandler"]],{"name":[{"nameChange":0}],"value":[{"valueChanged":0}],"disabled":[{"watchingReadonly":0}],"readonly":[{"watchingReadonly":0}]}],[262,"smoothly-input-submit",{"delete":[516],"color":[1],"icon":[8],"expand":[513],"fill":[513],"disabled":[1540],"display":[1540],"shape":[513],"size":[513],"tooltip":[1]}],[2,"smoothly-date-text",{"locale":[1],"readonly":[516],"disabled":[516],"showLabel":[516,"show-label"],"value":[1],"parts":[32],"order":[32],"separator":[32],"focusedIndex":[32],"setValue":[64],"select":[64],"deselect":[64]},[[0,"beforeinput","beforeInputHandler"],[2,"input","inputHandler"]],{"parts":[{"partsHandler":0}],"focusedIndex":[{"focusedIndexHandler":0}]}],[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]},null,{"start":[{"onStart":0}],"end":[{"onEnd":0}]}],[262,"smoothly-button-confirm",{"color":[1],"name":[513],"doubleClickTime":[2,"double-click-time"],"expand":[513],"fill":[1],"disabled":[516],"shape":[1],"size":[1],"clickTimeStamp":[32]}],[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}]}],[260,"smoothly-form",{"color":[1537],"value":[1040],"action":[1],"validator":[16],"type":[1],"readonly":[1028],"looks":[513],"name":[513],"prevent":[4],"processing":[1040],"removeInput":[64],"listen":[64],"submit":[64],"clear":[64],"edit":[64],"reset":[64],"setInitialValue":[64]},[[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyInput","smoothlyInputHandler"],[0,"smoothlyKeydown","smoothlyKeydownHandler"],[8,"smoothlyFormSubmit","windowSubmitHandler"],[0,"smoothlyFormSubmit","submitHandler"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[0,"smoothlyFormDisable","smoothlyFormDisableHandler"]],{"value":[{"watchValue":0}],"readonly":[{"watchReadonly":0}]}],[2,"smoothly-display",{"type":[1],"label":[1],"value":[8],"collapseDepth":[2,"collapse-depth"],"toInteger":[4,"to-integer"],"currency":[1],"country":[1],"format":[16]}],[2,"smoothly-display-json",{"value":[8],"collapseDepth":[2,"collapse-depth"]}],[262,"smoothly-input",{"color":[1537],"looks":[1537],"name":[513],"value":[1032],"type":[513],"required":[516],"showLabel":[516,"show-label"],"autocomplete":[1],"placeholder":[513],"disabled":[516],"readonly":[1540],"toInteger":[4,"to-integer"],"currency":[513],"min":[2],"max":[2],"pad":[2],"invalid":[516],"errorMessage":[513,"error-message"],"copyable":[516],"initialValue":[32],"state":[32],"copied":[32],"getValue":[64],"setValue":[64],"setFocus":[64],"setSelection":[64],"listen":[64],"register":[64],"unregister":[64],"clear":[64],"edit":[64],"reset":[64],"setInitialValue":[64],"setCustomInitialValue":[64]},[[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[0,"input","onEvent"],[0,"beforeinput","onEvent"]],{"name":[{"nameChange":0}],"currency":[{"typeChange":0}],"type":[{"typeChange":0}],"state":[{"stateChange":0}],"value":[{"valueChange":0}],"disabled":[{"readonlyChange":0}],"readonly":[{"readonlyChange":0}]}],[2,"smoothly-spinner",{"size":[513],"overlay":[516]}],[262,"smoothly-input-select",{"invalid":[516],"errorMessage":[513,"error-message"],"name":[513],"color":[1537],"looks":[1537],"showLabel":[516,"show-label"],"showSelected":[1540,"show-selected"],"readonly":[1540],"disabled":[516],"inCalendar":[516,"in-calendar"],"ordered":[516],"multiple":[516],"clearable":[4],"defined":[1028],"placeholder":[520],"menuHeight":[1,"menu-height"],"required":[4],"searchDisabled":[4,"search-disabled"],"mutable":[4],"open":[32],"selected":[32],"filter":[32],"addedItems":[32],"register":[64],"unregister":[64],"getValue":[64],"getItems":[64],"listen":[64],"reset":[64],"clear":[64],"edit":[64],"setInitialValue":[64]},[[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[8,"click","onWindowClick"],[0,"smoothlyItemDOMChange","onItemDomChange"],[0,"smoothlyItemSelect","onItemSelect"],[0,"keydown","onKeyDown"]],{"name":[{"nameChange":0}],"selected":[{"onSelectedChange":0}],"required":[{"onRequiredChange":0}],"filter":[{"onFilterChange":0}],"disabled":[{"watchingReadonly":0}],"readonly":[{"watchingReadonly":0}],"open":[{"onClosed":0}]}],[2,"smoothly-display-json-object",{"value":[16],"collapseDepth":[2,"collapse-depth"],"open":[32],"empty":[32]}],[2,"smoothly-display-json-primitive",{"value":[8]}],[2,"smoothly-display-json-record-key",{"value":[8]}],[262,"smoothly-item",{"value":[8],"selected":[1540],"marked":[1540],"disabled":[516],"deselectable":[4],"filter":[64]},[[0,"click","clickHandler"]],{"selected":[{"selectedWatcher":0}]}],[262,"smoothly-button",{"color":[513],"expand":[513],"fill":[513],"tooltip":[513],"disabled":[516],"type":[513],"size":[513],"shape":[513],"link":[1]}],[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[513],"size":[513],"rotate":[514],"flip":[513],"tooltip":[1],"latestPromise":[32]},null,{"tooltip":[{"nameChanged":0}],"name":[{"nameChanged":0}]}]]],["p-2fbd48bb",[[2,"smoothly-input-checkbox-demo"]]],["p-acfa35c3",[[262,"smoothly-checkbox",{"size":[1],"checked":[1540],"intermediate":[1540],"unavailable":[516],"disabled":[516],"name":[513],"value":[8],"t":[32],"toggle":[64],"clear":[64]},null,{"checked":[{"unavailableChanged":0}],"unavailable":[{"unavailableChanged":0}]}]]],["p-05059140",[[262,"smoothly-color",{"color":[513]}]]],["p-7da124ca",[[2,"smoothly-country",{"value":[1],"text":[1],"language":[32]}]]],["p-7a59c6a9",[[262,"smoothly-submit",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"size":[513],"shape":[513],"prevent":[4]},[[0,"click","clickHandler"]]]]],["p-13d05a22",[[262,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["p-5e123fe2",[[262,"smoothly-trigger-source",{"listen":[1]}]]]]'),e)}));
1
+ import{p as e,b as o}from"./p-CdFSoe1d.js";export{s as setNonce}from"./p-CdFSoe1d.js";import{g as l}from"./p-B_K1otJx.js";var t=()=>{const o=import.meta.url;const l={};if(o!==""){l.resourcesUrl=new URL(".",o).href}return e(l)};t().then((async e=>{await l();return o(JSON.parse('[["p-23badc13",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]},[[8,"smoothlyUrlChange","urlChangeHandler"]]],[2,"smoothly-form-demo"],[2,"smoothly-input-demo",{"duration":[32],"alphanumeric":[32]}],[2,"smoothly-table-demo"],[0,"smoothly-button-demo"],[2,"smoothly-icon-demo",{"display":[32],"props":[32]}],[2,"smoothly-theme-demo"],[0,"smoothly-display-demo",{"downloadingSpinner":[32]}],[2,"smoothly-dialog-demo",{"openModal":[32],"openTallModal":[32],"showFrame":[32]}],[260,"smoothly-app",{"label":[513],"color":[1],"home":[1],"menuOpen":[1540,"menu-open"],"navBreakpoint":[513,"nav-breakpoint"],"mobileMode":[32],"selected":[32],"selectRoom":[64]},[[8,"popstate","locationChangeHandler"],[0,"smoothlyRoomSelect","roomSelectedHandler"],[0,"smoothlyRoomLoad","roomLoadedHandler"],[8,"click","clickHandler"]],{"selected":[{"selectedChanged":0}]}],[262,"smoothly-app-room",{"label":[513],"icon":[513],"disabled":[516],"path":[1],"selected":[1540],"content":[16],"mobileMode":[32],"setMobileMode":[64],"getContent":[64],"setSelected":[64]},[[8,"smoothlyUrlUpdate","setQuery"]]],[2,"smoothly-tabs-demo",{"extraTab1":[32],"extraTab2":[32]}],[2,"smoothly-form-demo-pet",{"hasOwner":[32],"owner":[32],"value":[32]}],[2,"smoothly-input-demo-standard",{"duration":[32],"options":[32]}],[2,"smoothly-form-demo-all"],[2,"smoothly-input-demo-user-input",{"textIndex":[32],"selectIndex":[32],"checkboxChecked":[32],"radioIndex":[32],"rangeValue":[32],"colorIndex":[32],"dateValue":[32],"datetimeValue":[32],"dateRangeValue":[32]}],[2,"smoothly-form-demo-transparent"],[2,"smoothly-table-demo-group"],[2,"smoothly-form-demo-schedule"],[2,"smoothly-form-demo-typed"],[2,"smoothly-table-demo-colspan"],[2,"smoothly-table-demo-nested-no-cell",{"loadingIndex":[32],"loadedRows":[32]}],[2,"smoothly-form-demo-controlled",{"name":[32],"currency":[32],"date":[32]},null,{"name":[{"nameChanged":0}]}],[2,"smoothly-form-demo-date"],[2,"smoothly-form-demo-date-range"],[2,"smoothly-table-demo-filler-row",{"cats":[32]}],[2,"smoothly-table-demo-simple"],[2,"smoothly-button-demo-standard",{"props":[32],"heightText":[32],"lastButton":[32]},null,{"props":[{"updateInputHeightText":0}]}],[2,"smoothly-input-date-demo",{"date":[32],"alwaysShowGuide":[32]}],[0,"smoothly-input-color-demo"],[0,"smoothly-input-range-demo"],[2,"smoothly-form-demo-login"],[2,"smoothly-form-demo-prices"],[2,"smoothly-form-demo-card"],[0,"smoothly-display-demo-json"],[2,"smoothly-input-demo-radio",{"selected":[32]},null,{"selected":[{"selectedChange":0}]}],[2,"smoothly-theme-guide"],[2,"smoothly-input-price-demo",{"currencies":[32],"currency":[32]}],[262,"smoothly-notifier",{"icon":[4],"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[262,"smoothly-theme-picker",{"element":[1]}],[262,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-theme-colors"],[2,"smoothly-toggle-switch-demo"],[2,"smoothly-burger",{"open":[1540]},[[0,"click","clickHandler"]],{"open":[{"openChanged":0}]}],[262,"smoothly-modal",{"open":[1540],"closable":[516],"align":[513],"closeModal":[64],"openModal":[64]},null,{"open":[{"openChanged":0}]}],[2,"smoothly-frame",{"url":[1],"name":[513],"origin":[1],"send":[64]}],[262,"smoothly-label",{"hue":[2],"description":[1],"shape":[513]}],[2,"smoothly-table-demo-nested-no-cell-inner",{"data":[16]}],[2,"smoothly-notification",{"notice":[16],"closable":[4],"icon":[4],"tick":[32]},[[0,"trigger","onTrigger"]],{"notice":[{"onUpdatedNotice":0}]}],[262,"smoothly-table-filler-row"],[2,"smoothly-back-to-top",{"opacity":[1],"bottom":[1],"right":[1],"visible":[32]}],[262,"smoothly-summary",{"open":[1540]}],[2,"smoothly-theme-color",{"color":[1]}],[262,"smoothly-table-row-group",{"align":[516],"open":[1540]}],[262,"smoothly-table-foot"],[2,"smoothly-theme-color-variant",{"color":[513],"variant":[513]}],[262,"smoothly-input-edit",{"color":[1],"expand":[513],"fill":[513],"disabled":[1540],"display":[1540],"shape":[513],"type":[513],"size":[513],"tooltip":[1]},[[0,"click","clickHandler"]]],[262,"smoothly-lazy",{"show":[1028],"content":[16]}],[262,"smoothly-table-expandable-cell",{"span":[514],"open":[1540],"close":[64]},null,{"open":[{"openChange":0}]}],[262,"smoothly-table-expandable-row",{"open":[1540]},null,{"open":[{"openChange":0}]}],[262,"smoothly-input-date-time",{"color":[1537],"looks":[1537],"name":[513],"readonly":[1540],"disabled":[516],"invalid":[516],"errorMessage":[513,"error-message"],"value":[1025],"open":[1028],"showLabel":[516,"show-label"],"min":[1],"max":[1],"date":[32],"hour":[32],"minute":[32],"register":[64],"unregister":[64],"getValue":[64],"listen":[64],"clear":[64],"edit":[64],"reset":[64],"setInitialValue":[64]},[[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[8,"click","onWindowClick"]],{"name":[{"nameChange":0}],"date":[{"handleChange":0}],"hour":[{"handleChange":0}],"minute":[{"handleChange":0}],"value":[{"valueChange":0}],"disabled":[{"watchingReadonly":0}],"readonly":[{"watchingReadonly":0}]}],[2,"smoothly-load-more",{"triggerMode":[1,"trigger-mode"],"name":[1],"multiple":[4],"inView":[32]}],[262,"smoothly-tab",{"label":[1],"name":[1],"tooltip":[1],"open":[1540],"disabled":[516]},[[0,"smoothlyInputLoad","onInputLoad"],[0,"smoothlyInput","onInputLoad"]],{"open":[{"openHandler":0}]}],[262,"smoothly-tabs",{"tabs":[513],"numberOfTabs":[2,"number-of-tabs"],"tabElements":[32],"selectedElement":[32],"removeTab":[64]},[[0,"smoothlyTabLoad","onInputLoad"],[0,"smoothlyTabOpen","openChanged"]],{"selectedElement":[{"onSelectedChange":0}]}],[262,"smoothly-trigger",{"color":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]],[262,"smoothly-table-cell",{"span":[514]}],[262,"smoothly-input-file",{"readonly":[1540],"disabled":[516],"accept":[1],"color":[1537],"looks":[1537],"camera":[513],"name":[513],"showLabel":[516,"show-label"],"value":[1040],"placeholder":[1537],"dragging":[32],"register":[64],"unregister":[64],"getValue":[64],"clear":[64],"listen":[64],"edit":[64],"reset":[64],"setInitialValue":[64],"binary":[64]},[[0,"smoothlyInputLoad","smoothlyInputLoadHandler"]],{"name":[{"nameChange":0}],"value":[{"valueChanged":0}]}],[262,"smoothly-table",{"columns":[2]},[[0,"smoothlyTableExpandableRowChange","smoothlyTableExpandableRowChange"],[0,"smoothlyTableExpandableCellChange","smoothlyTableExpandableCellChange"]]],[262,"smoothly-table-body"],[262,"smoothly-table-head",{"scrolled":[32],"depth":[32]}],[262,"smoothly-input-color",{"value":[1025],"looks":[1537],"color":[1537],"readonly":[1540],"disabled":[516],"output":[1],"name":[513],"showLabel":[516,"show-label"],"open":[32],"sliderMode":[32],"register":[64],"unregister":[64],"getValue":[64],"clear":[64],"listen":[64],"edit":[64],"reset":[64],"setInitialValue":[64]},[[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[8,"click","onWindowClick"]],{"name":[{"nameChange":0}],"disabled":[{"watchingReadonly":0}],"readonly":[{"watchingReadonly":0}],"value":[{"valueChanged":0}]}],[262,"smoothly-table-row",null,[[0,"smoothlyTableExpandableCellRegister","smoothlyTableExpandableCellRegisterHandler"],[0,"smoothlyTableExpandableCellChange","smoothlyTableExpandableCellChangeHandler"]]],[262,"smoothly-input-date-range",{"locale":[513],"name":[513],"color":[1537],"looks":[1537],"readonly":[1540],"disabled":[516],"showLabel":[516,"show-label"],"start":[1025],"end":[1025],"placeholder":[513],"alwaysShowGuide":[516,"always-show-guide"],"invalid":[516],"errorMessage":[513,"error-message"],"max":[1],"min":[1],"open":[32],"startHasText":[32],"endHasText":[32],"register":[64],"unregister":[64],"getValue":[64],"listen":[64],"edit":[64],"reset":[64],"setInitialValue":[64],"clear":[64]},[[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[8,"click","onWindowClick"]],{"start":[{"startChanged":0}],"end":[{"endChanged":0}],"disabled":[{"watchingReadonly":0}],"readonly":[{"watchingReadonly":0}],"name":[{"nameChange":0}]}],[262,"smoothly-input-checkbox",{"name":[513],"readonly":[1540],"disabled":[516],"checked":[1540],"value":[16],"looks":[1537],"color":[1537],"register":[64],"unregister":[64],"getValue":[64],"clear":[64],"listen":[64],"edit":[64],"reset":[64],"setInitialValue":[64]},[[0,"smoothlyInputLoad","smoothlyInputLoadHandler"]],{"name":[{"nameChange":0}],"disabled":[{"handleDisabledChange":0}],"readonly":[{"handleDisabledChange":0}],"checked":[{"elementCheck":0}]}],[262,"smoothly-input-range",{"value":[1026],"looks":[1537],"color":[1537],"defined":[1028],"readonly":[1540],"disabled":[516],"type":[1],"min":[2],"max":[2],"name":[513],"step":[2],"outputSide":[1,"output-side"],"label":[1],"showInput":[32],"register":[64],"unregister":[64],"getValue":[64],"clear":[64],"listen":[64],"edit":[64],"reset":[64],"setInitialValue":[64]},[[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[0,"smoothlyInputLooks","smoothlyInputLooksHandler"]],{"name":[{"nameChange":0}],"value":[{"valueChanged":0}],"disabled":[{"watchingReadonly":0}],"readonly":[{"watchingReadonly":0}]}],[262,"smoothly-input-date",{"locale":[513],"color":[1537],"looks":[1537],"name":[513],"readonly":[1540],"disabled":[516],"invalid":[516],"errorMessage":[513,"error-message"],"placeholder":[513],"alwaysShowGuide":[516,"always-show-guide"],"value":[1025],"open":[1028],"max":[1025],"min":[1025],"showLabel":[516,"show-label"],"hasText":[32],"register":[64],"unregister":[64],"getValue":[64],"listen":[64],"clear":[64],"edit":[64],"reset":[64],"setInitialValue":[64]},[[0,"smoothlyInput","smoothlyInputHandler"],[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[8,"click","onWindowClick"],[0,"smoothlyDateSet","dateSetHandler"]],{"name":[{"nameChange":0}],"value":[{"onValueChange":0}],"disabled":[{"watchingReadonly":0}],"readonly":[{"watchingReadonly":0}]}],[262,"smoothly-input-clear",{"color":[1],"expand":[513],"fill":[513],"disabled":[1540],"size":[513],"shape":[513],"display":[1540],"type":[513],"tooltip":[1]},[[0,"click","clickHandler"]]],[262,"smoothly-input-reset",{"color":[1],"expand":[513],"fill":[513],"disabled":[1540],"size":[513],"shape":[513],"display":[1540],"type":[513],"tooltip":[1]},[[0,"click","clickHandler"]]],[262,"smoothly-input-radio-item",{"value":[1032],"selected":[1540],"looks":[1537],"name":[1025],"disabled":[32]}],[2,"smoothly-toggle-switch",{"checkmark":[516],"selected":[1540],"disabled":[516],"size":[513],"color":[513],"fill":[513]}],[262,"smoothly-input-radio",{"value":[1032],"looks":[1537],"color":[1537],"direction":[513],"clearable":[4],"readonly":[1540],"disabled":[516],"name":[513],"showLabel":[516,"show-label"],"listen":[64],"register":[64],"unregister":[64],"getValue":[64],"clear":[64],"edit":[64],"reset":[64],"setInitialValue":[64]},[[0,"smoothlyRadioItemRegister","handleRegister"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[0,"smoothlyRadioItemSelect","smoothlyRadioInputHandler"]],{"name":[{"nameChange":0}],"value":[{"valueChanged":0}],"disabled":[{"watchingReadonly":0}],"readonly":[{"watchingReadonly":0}]}],[262,"smoothly-input-submit",{"delete":[516],"color":[1],"icon":[8],"expand":[513],"fill":[513],"disabled":[1540],"display":[1540],"shape":[513],"size":[513],"tooltip":[1]}],[2,"smoothly-date-text",{"locale":[1],"readonly":[516],"disabled":[516],"showLabel":[516,"show-label"],"value":[1],"parts":[32],"order":[32],"separator":[32],"focusedIndex":[32],"setValue":[64],"select":[64],"deselect":[64]},[[0,"beforeinput","beforeInputHandler"],[2,"input","inputHandler"]],{"parts":[{"partsHandler":0}],"focusedIndex":[{"focusedIndexHandler":0}]}],[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]},null,{"start":[{"onStart":0}],"end":[{"onEnd":0}]}],[262,"smoothly-button-confirm",{"color":[1],"name":[513],"doubleClickTime":[2,"double-click-time"],"expand":[513],"fill":[1],"disabled":[516],"shape":[1],"size":[1],"clickTimeStamp":[32]}],[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}]}],[260,"smoothly-form",{"color":[1537],"value":[1040],"action":[1],"validator":[16],"type":[1],"readonly":[1028],"looks":[513],"name":[513],"prevent":[4],"processing":[1040],"removeInput":[64],"listen":[64],"submit":[64],"clear":[64],"edit":[64],"reset":[64],"setInitialValue":[64]},[[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyInput","smoothlyInputHandler"],[0,"smoothlyKeydown","smoothlyKeydownHandler"],[8,"smoothlyFormSubmit","windowSubmitHandler"],[0,"smoothlyFormSubmit","submitHandler"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[0,"smoothlyFormDisable","smoothlyFormDisableHandler"]],{"value":[{"watchValue":0}],"readonly":[{"watchReadonly":0}]}],[2,"smoothly-display",{"type":[1],"label":[1],"value":[8],"collapseDepth":[2,"collapse-depth"],"toInteger":[4,"to-integer"],"currency":[1],"country":[1],"format":[16]}],[2,"smoothly-display-json",{"value":[8],"collapseDepth":[2,"collapse-depth"]}],[262,"smoothly-input",{"color":[1537],"looks":[1537],"name":[513],"value":[1032],"type":[513],"required":[516],"showLabel":[516,"show-label"],"autocomplete":[1],"placeholder":[513],"disabled":[516],"readonly":[1540],"toInteger":[4,"to-integer"],"currency":[513],"min":[2],"max":[2],"pad":[2],"invalid":[516],"errorMessage":[513,"error-message"],"copyable":[516],"initialValue":[32],"state":[32],"copied":[32],"getValue":[64],"setValue":[64],"setFocus":[64],"setSelection":[64],"listen":[64],"register":[64],"unregister":[64],"clear":[64],"edit":[64],"reset":[64],"setInitialValue":[64],"setCustomInitialValue":[64]},[[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[0,"input","onEvent"],[0,"beforeinput","onEvent"]],{"name":[{"nameChange":0}],"currency":[{"typeChange":0}],"type":[{"typeChange":0}],"state":[{"stateChange":0}],"value":[{"valueChange":0}],"disabled":[{"readonlyChange":0}],"readonly":[{"readonlyChange":0}]}],[2,"smoothly-spinner",{"size":[513],"overlay":[516]}],[262,"smoothly-input-select",{"invalid":[516],"errorMessage":[513,"error-message"],"name":[513],"color":[1537],"looks":[1537],"showLabel":[516,"show-label"],"showSelected":[1540,"show-selected"],"readonly":[1540],"disabled":[516],"inCalendar":[516,"in-calendar"],"ordered":[516],"multiple":[516],"clearable":[4],"defined":[1028],"placeholder":[520],"menuHeight":[1,"menu-height"],"required":[4],"searchDisabled":[4,"search-disabled"],"mutable":[4],"open":[32],"selected":[32],"filter":[32],"addedItems":[32],"register":[64],"unregister":[64],"getValue":[64],"getItems":[64],"listen":[64],"reset":[64],"clear":[64],"edit":[64],"setInitialValue":[64]},[[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[8,"click","onWindowClick"],[0,"smoothlyItemDOMChange","onItemDomChange"],[0,"smoothlyItemSelect","onItemSelect"],[0,"keydown","onKeyDown"]],{"name":[{"nameChange":0}],"selected":[{"onSelectedChange":0}],"required":[{"onRequiredChange":0}],"filter":[{"onFilterChange":0}],"disabled":[{"watchingReadonly":0}],"readonly":[{"watchingReadonly":0}],"open":[{"onClosed":0}]}],[2,"smoothly-display-json-object",{"value":[16],"collapseDepth":[2,"collapse-depth"],"open":[32],"empty":[32]}],[2,"smoothly-display-json-primitive",{"value":[8]}],[2,"smoothly-display-json-record-key",{"value":[8]}],[262,"smoothly-item",{"value":[8],"selected":[1540],"marked":[1540],"disabled":[516],"deselectable":[4],"filter":[64]},[[0,"click","clickHandler"]],{"selected":[{"selectedWatcher":0}]}],[262,"smoothly-button",{"color":[513],"expand":[513],"fill":[513],"tooltip":[513],"disabled":[516],"type":[513],"size":[513],"shape":[513],"link":[1]}],[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[513],"size":[513],"rotate":[514],"flip":[513],"tooltip":[1],"latestPromise":[32]},null,{"tooltip":[{"nameChanged":0}],"name":[{"nameChanged":0}]}]]],["p-2fbd48bb",[[2,"smoothly-input-checkbox-demo"]]],["p-acfa35c3",[[262,"smoothly-checkbox",{"size":[1],"checked":[1540],"intermediate":[1540],"unavailable":[516],"disabled":[516],"name":[513],"value":[8],"t":[32],"toggle":[64],"clear":[64]},null,{"checked":[{"unavailableChanged":0}],"unavailable":[{"unavailableChanged":0}]}]]],["p-05059140",[[262,"smoothly-color",{"color":[513]}]]],["p-7da124ca",[[2,"smoothly-country",{"value":[1],"text":[1],"language":[32]}]]],["p-7a59c6a9",[[262,"smoothly-submit",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"size":[513],"shape":[513],"prevent":[4]},[[0,"click","clickHandler"]]]]],["p-13d05a22",[[262,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["p-5e123fe2",[[262,"smoothly-trigger-source",{"listen":[1]}]]]]'),e)}));
2
2
  //# sourceMappingURL=smoothly.esm.js.map
@@ -6,7 +6,7 @@ export declare class SmoothlyInputClear {
6
6
  color?: Color;
7
7
  expand?: "block" | "full";
8
8
  fill?: Fill;
9
- disabled: boolean;
9
+ disabled?: boolean;
10
10
  size: "small" | "large" | "icon" | "flexible";
11
11
  shape?: "rounded";
12
12
  display: boolean;
@@ -6,7 +6,7 @@ export declare class SmoothlyInputReset {
6
6
  color?: Color;
7
7
  expand?: "block" | "full";
8
8
  fill?: Fill;
9
- disabled: boolean;
9
+ disabled?: boolean;
10
10
  size: "flexible" | "small" | "large" | "icon";
11
11
  shape?: "rounded";
12
12
  display: boolean;
@@ -381,10 +381,7 @@ export namespace Components {
381
381
  }
382
382
  interface SmoothlyInputClear {
383
383
  "color"?: Color;
384
- /**
385
- * @default false
386
- */
387
- "disabled": boolean;
384
+ "disabled"?: boolean;
388
385
  /**
389
386
  * @default true
390
387
  */
@@ -737,10 +734,7 @@ export namespace Components {
737
734
  }
738
735
  interface SmoothlyInputReset {
739
736
  "color"?: Color;
740
- /**
741
- * @default false
742
- */
743
- "disabled": boolean;
737
+ "disabled"?: boolean;
744
738
  /**
745
739
  * @default true
746
740
  */
@@ -2948,9 +2942,6 @@ declare namespace LocalJSX {
2948
2942
  }
2949
2943
  interface SmoothlyInputClear {
2950
2944
  "color"?: Color;
2951
- /**
2952
- * @default false
2953
- */
2954
2945
  "disabled"?: boolean;
2955
2946
  /**
2956
2947
  * @default true
@@ -3286,9 +3277,6 @@ declare namespace LocalJSX {
3286
3277
  }
3287
3278
  interface SmoothlyInputReset {
3288
3279
  "color"?: Color;
3289
- /**
3290
- * @default false
3291
- */
3292
3280
  "disabled"?: boolean;
3293
3281
  /**
3294
3282
  * @default true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smoothly",
3
- "version": "1.111.0",
3
+ "version": "1.112.0",
4
4
  "description": "Web component library written in Stencil.",
5
5
  "author": "Utily",
6
6
  "license": "MIT",
@@ -1 +0,0 @@
1
- {"version":3,"names":["styleCss","SmoothlyInputSubmit","__stencil_proxyCustomElement","HTMLElement","constructor","registerHost","this","delete","icon","disabled","display","size","tooltip","componentWillLoad","smoothlyInputLoad","emit","parent","Submittable","is","Editable","type","listen","async","p","readonly","validator","isly.Type","_a","Data","convertArrays","value","isDifferentFromInitial","clickHandler","submit","render","h","Host","key","title","shape","expand","color","fill","onSmoothlyConfirm","name","_b","onClick"],"sources":["src/components/input/submit/style.css?tag=smoothly-input-submit&encapsulation=scoped","src/components/input/submit/index.tsx"],"sourcesContent":["@import \"../../button/style.css\"; \n\n:host {\n\tdisplay: flex;\n}\n\n:host(:not([display])) {\n\tdisplay: none;\n}\n\n:host::slotted(smoothly-button button > * > * + smoothly-icon),\n:host::slotted(smoothly-button-confirm button > * > * + smoothly-icon) {\n\tdisplay: none;\n}\n\n:host([disabled]) {\n\tcursor: not-allowed\n}\n","import { Component, ComponentWillLoad, Event, EventEmitter, h, Host, Prop, VNode } from \"@stencil/core\"\nimport { isly } from \"isly\"\nimport { Color, Data, Fill, Icon } from \"../../../model\"\nimport { Editable } from \"../Editable\"\nimport { Submittable } from \"../Submittable\"\n\n@Component({\n\ttag: \"smoothly-input-submit\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyInputSubmit implements ComponentWillLoad {\n\tprivate parent?: Submittable & Editable\n\t@Prop({ reflect: true }) delete = false\n\t@Prop() color?: Color\n\t@Prop() icon: Icon | false = \"checkmark-outline\"\n\t@Prop({ reflect: true }) expand?: \"block\" | \"full\"\n\t@Prop({ reflect: true }) fill?: Fill\n\t@Prop({ reflect: true, mutable: true }) disabled = false\n\t@Prop({ reflect: true, mutable: true }) display = false\n\t@Prop({ reflect: true }) shape?: \"rounded\"\n\t@Prop({ reflect: true }) size: \"flexible\" | \"small\" | \"large\" | \"icon\" = \"icon\"\n\t@Prop() tooltip = this.delete ? \"Remove\" : \"Submit\"\n\t@Event() smoothlyInputLoad: EventEmitter<(parent: Editable) => void>\n\tcomponentWillLoad(): void {\n\t\tthis.smoothlyInputLoad.emit(parent => {\n\t\t\tif (Submittable.is(parent) && Editable.type.is(parent)) {\n\t\t\t\tthis.parent = parent\n\t\t\t\tparent.listen(async p => {\n\t\t\t\t\tthis.display = !p.readonly\n\t\t\t\t\tthis.disabled =\n\t\t\t\t\t\t!this.delete &&\n\t\t\t\t\t\t(p.readonly ||\n\t\t\t\t\t\t\t(\"validator\" in p && p.validator instanceof isly.Type && !p.validator?.is(Data.convertArrays(p.value))) ||\n\t\t\t\t\t\t\t!p.isDifferentFromInitial)\n\t\t\t\t})\n\t\t\t}\n\t\t})\n\t}\n\tclickHandler() {\n\t\tthis.parent?.submit(this.delete)\n\t}\n\n\trender(): VNode | VNode[] {\n\t\treturn (\n\t\t\t<Host title={this.tooltip}>\n\t\t\t\t{this.delete == true ? (\n\t\t\t\t\t<smoothly-button-confirm\n\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\tshape={this.shape}\n\t\t\t\t\t\texpand={this.expand}\n\t\t\t\t\t\tcolor={this.color ?? \"danger\"}\n\t\t\t\t\t\tfill={this.fill}\n\t\t\t\t\t\tonSmoothlyConfirm={() => this.clickHandler()}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t<smoothly-icon name=\"trash-outline\" fill=\"solid\" size=\"tiny\" />\n\t\t\t\t\t</smoothly-button-confirm>\n\t\t\t\t) : (\n\t\t\t\t\t<smoothly-button\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\ttype={\"button\"}\n\t\t\t\t\t\tshape={this.shape}\n\t\t\t\t\t\texpand={this.expand}\n\t\t\t\t\t\tcolor={this.color ?? \"success\"}\n\t\t\t\t\t\tfill={this.fill}\n\t\t\t\t\t\tonClick={() => this.clickHandler()}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t{this.icon && <smoothly-icon name={this.icon} fill=\"solid\" size=\"tiny\" />}\n\t\t\t\t\t</smoothly-button>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"mXAAA,MAAMA,EAAW,IAAM,0nO,MCWVC,EAAmBC,EAAA,MAAAD,UAAAE,EALhC,WAAAC,CAAAC,G,+FAO0BC,KAAAC,OAAS,MAE1BD,KAAAE,KAAqB,oBAGWF,KAAAG,SAAW,MACXH,KAAAI,QAAU,MAEzBJ,KAAAK,KAAgD,OACjEL,KAAAM,QAAUN,KAAKC,OAAS,SAAW,QAoD3C,CAlDA,iBAAAM,GACCP,KAAKQ,kBAAkBC,MAAKC,IAC3B,GAAIC,EAAYC,GAAGF,IAAWG,EAASC,KAAKF,GAAGF,GAAS,CACvDV,KAAKU,OAASA,EACdA,EAAOK,QAAOC,MAAMC,I,MACnBjB,KAAKI,SAAWa,EAAEC,SAClBlB,KAAKG,UACHH,KAAKC,SACLgB,EAAEC,UACD,cAAeD,GAAKA,EAAEE,qBAAqBC,MAAcC,EAAAJ,EAAEE,aAAS,MAAAE,SAAA,SAAAA,EAAET,GAAGU,EAAKC,cAAcN,EAAEO,WAC9FP,EAAEQ,uBAAuB,G,KAKhC,YAAAC,G,OACCL,EAAArB,KAAKU,UAAM,MAAAW,SAAA,SAAAA,EAAEM,OAAO3B,KAAKC,O,CAG1B,MAAA2B,G,QACC,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAOhC,KAAKM,SAChBN,KAAKC,QAAU,KACf4B,EAAA,2BACCxB,KAAML,KAAKK,KACX4B,MAAOjC,KAAKiC,MACZC,OAAQlC,KAAKkC,OACbC,OAAOd,EAAArB,KAAKmC,SAAK,MAAAd,SAAA,EAAAA,EAAI,SACrBe,KAAMpC,KAAKoC,KACXC,kBAAmB,IAAMrC,KAAK0B,gBAC9BG,EAAA,aACAA,EAAA,iBAAeS,KAAK,gBAAgBF,KAAK,QAAQ/B,KAAK,UAGvDwB,EAAA,mBACC1B,SAAUH,KAAKG,SACfE,KAAML,KAAKK,KACXS,KAAM,SACNmB,MAAOjC,KAAKiC,MACZC,OAAQlC,KAAKkC,OACbC,OAAOI,EAAAvC,KAAKmC,SAAK,MAAAI,SAAA,EAAAA,EAAI,UACrBH,KAAMpC,KAAKoC,KACXI,QAAS,IAAMxC,KAAK0B,gBACpBG,EAAA,aACC7B,KAAKE,MAAQ2B,EAAA,iBAAeS,KAAMtC,KAAKE,KAAMkC,KAAK,QAAQ/B,KAAK,U","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- import{p as o,H as s,h as m,d as e,t}from"./p-BsZrGTcp.js";import{d as r}from"./p-BHEtq3Ue.js";import{d as a}from"./p-DX3KKRD9.js";import{d as l}from"./p-BqAN7jax.js";import{d as i}from"./p-B8ljN4o0.js";import{d as c}from"./p-DM5CKilY.js";import{d}from"./p-CR3Ni_o7.js";import{d as f}from"./p-B-l1S16Z.js";import{d as p}from"./p-Ud7Qhkgt.js";import{d as n}from"./p-C3FORjes.js";import{d as y}from"./p-DgaHxdNI.js";import{d as h}from"./p-CyhRVB6K.js";import{d as u}from"./p-CiJgTdse.js";import{d as b}from"./p-CrNizZqW.js";import{d as k}from"./p-HKrMuYSD.js";import{d as j}from"./p-fJkfUsWz.js";import{d as E}from"./p-p0yn7c4h.js";import{d as g}from"./p-DBkHnJdp.js";import{d as D}from"./p-DlHIV5_u.js";import{d as C}from"./p-C8cvGmGP.js";import{d as B}from"./p-C5Bgwjpo.js";import{d as x}from"./p-DgHAvBgB.js";import{d as R}from"./p-BiQsRsV4.js";import{d as v}from"./p-R4uIvvER.js";import{d as w}from"./p-C_f8s6n5.js";import{d as H}from"./p-DZadnBSZ.js";import{d as I}from"./p-nrkV1PqR.js";import{d as S}from"./p-C9zTTp-4.js";import{d as V}from"./p-DKggy9E3.js";import{d as q}from"./p-CGG77xzV.js";import{d as z}from"./p-C519IJGa.js";import{d as G}from"./p-CioJtwj-.js";import{d as J}from"./p-DTqtObrT.js";import{d as K}from"./p-BDhPxj59.js";import{d as N}from"./p-DXHBXAV0.js";import{d as T}from"./p-D2FsRCII.js";import{d as Z}from"./p-DqwlZYFh.js";import{d as U}from"./p-RNCr3p17.js";import{d as W}from"./p-CVp4Wd4u.js";import{d as X}from"./p-BS2SWUX6.js";import{d as Y}from"./p-CsLlJDsh.js";import{d as A}from"./p-DSsOLbj6.js";import{d as F}from"./p-2Y5tLcQ1.js";import{d as L}from"./p-DMzn0Iz0.js";const M=()=>`.sc-smoothly-form-demo-h{display:flex;margin-top:2em;margin-bottom:10em}.sc-smoothly-form-demo-h>div.sc-smoothly-form-demo{margin:auto;width:1200px;max-width:calc(100% - 0.5rem)}`;const O=o(class o extends s{constructor(o){super();if(o!==false){this.__registerHost()}}render(){return m(e,{key:"1ddc9511911663c0c6732b9e9b00b3e68d008216"},m("div",{key:"8716afd31e7b741071f8fee4b939c7c1a2067343"},m("smoothly-form-demo-all",{key:"0856d387645fdb66fddb050be10ed906fde59b58"}),m("smoothly-form-demo-pet",{key:"4f2b563802b34dcfb8905bcaedd5d6c1d9a53e40"}),m("smoothly-form-demo-card",{key:"c362f29b57a6b321f0db6cbb4088fccdf1ba4ac7"}),m("smoothly-form-demo-login",{key:"a14e189b9455e4ca98911c987f5082c2d52e14ef"}),m("smoothly-form-demo-prices",{key:"1244782f93a5e5cca8af5d076d6adf594c22eb65"}),m("smoothly-form-demo-typed",{key:"15e40ae537693e1c19ddce3c50311718aa76c531"}),m("smoothly-form-demo-transparent",{key:"2ecde43fd255a80832e8302a7ffbdc2e4c1308da"}),m("smoothly-form-demo-date",{key:"e31bcebea1a06295cbcb5c3cf09f24e1e4678244"}),m("smoothly-form-demo-schedule",{key:"c82d53e933bce5540f10ef60fb3d17b4566abd06"}),m("smoothly-form-demo-date-range",{key:"4789cc150fa75b61bf578777cc86db216d75ca13"}),m("smoothly-form-demo-controlled",{key:"451ad913671046be1255752b103066eeac96eae8"})))}static get style(){return M()}},[2,"smoothly-form-demo"]);function P(){if(typeof customElements==="undefined"){return}const o=["smoothly-form-demo","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-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-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-edit","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"];o.forEach((o=>{switch(o){case"smoothly-form-demo":if(!customElements.get(t(o))){customElements.define(t(o),O)}break;case"smoothly-button":if(!customElements.get(t(o))){r()}break;case"smoothly-button-confirm":if(!customElements.get(t(o))){a()}break;case"smoothly-calendar":if(!customElements.get(t(o))){l()}break;case"smoothly-date-text":if(!customElements.get(t(o))){i()}break;case"smoothly-display":if(!customElements.get(t(o))){c()}break;case"smoothly-display-json":if(!customElements.get(t(o))){d()}break;case"smoothly-display-json-object":if(!customElements.get(t(o))){f()}break;case"smoothly-display-json-primitive":if(!customElements.get(t(o))){p()}break;case"smoothly-display-json-record-key":if(!customElements.get(t(o))){n()}break;case"smoothly-form":if(!customElements.get(t(o))){y()}break;case"smoothly-form-demo-all":if(!customElements.get(t(o))){h()}break;case"smoothly-form-demo-card":if(!customElements.get(t(o))){u()}break;case"smoothly-form-demo-controlled":if(!customElements.get(t(o))){b()}break;case"smoothly-form-demo-date":if(!customElements.get(t(o))){k()}break;case"smoothly-form-demo-date-range":if(!customElements.get(t(o))){j()}break;case"smoothly-form-demo-login":if(!customElements.get(t(o))){E()}break;case"smoothly-form-demo-pet":if(!customElements.get(t(o))){g()}break;case"smoothly-form-demo-prices":if(!customElements.get(t(o))){D()}break;case"smoothly-form-demo-schedule":if(!customElements.get(t(o))){C()}break;case"smoothly-form-demo-transparent":if(!customElements.get(t(o))){B()}break;case"smoothly-form-demo-typed":if(!customElements.get(t(o))){x()}break;case"smoothly-icon":if(!customElements.get(t(o))){R()}break;case"smoothly-input":if(!customElements.get(t(o))){v()}break;case"smoothly-input-checkbox":if(!customElements.get(t(o))){w()}break;case"smoothly-input-clear":if(!customElements.get(t(o))){H()}break;case"smoothly-input-color":if(!customElements.get(t(o))){I()}break;case"smoothly-input-date":if(!customElements.get(t(o))){S()}break;case"smoothly-input-date-range":if(!customElements.get(t(o))){V()}break;case"smoothly-input-date-time":if(!customElements.get(t(o))){q()}break;case"smoothly-input-edit":if(!customElements.get(t(o))){z()}break;case"smoothly-input-file":if(!customElements.get(t(o))){G()}break;case"smoothly-input-month":if(!customElements.get(t(o))){J()}break;case"smoothly-input-radio":if(!customElements.get(t(o))){K()}break;case"smoothly-input-radio-item":if(!customElements.get(t(o))){N()}break;case"smoothly-input-range":if(!customElements.get(t(o))){T()}break;case"smoothly-input-reset":if(!customElements.get(t(o))){Z()}break;case"smoothly-input-select":if(!customElements.get(t(o))){U()}break;case"smoothly-input-submit":if(!customElements.get(t(o))){W()}break;case"smoothly-item":if(!customElements.get(t(o))){X()}break;case"smoothly-spinner":if(!customElements.get(t(o))){Y()}break;case"smoothly-tab":if(!customElements.get(t(o))){A()}break;case"smoothly-tabs":if(!customElements.get(t(o))){F()}break;case"smoothly-toggle-switch":if(!customElements.get(t(o))){L()}break}}))}P();export{O as S,P as d};
2
- //# sourceMappingURL=p-D1cLYdzg.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["styleCss","SmoothlyInputClear","__stencil_proxyCustomElement","HTMLElement","constructor","registerHost","this","fill","disabled","size","display","type","tooltip","componentWillLoad","smoothlyInputLoad","emit","parent","Clearable","is","Editable","Element","listen","async","p","Input","defined","Boolean","getValue","readonly","SmoothlyForm","Object","values","value","filter","val","length","clickHandler","_a","clear","render","h","Host","key","title","shape","expand","color","undefined","name"],"sources":["src/components/input/clear/style.css?tag=smoothly-input-clear&encapsulation=scoped","src/components/input/clear/index.tsx"],"sourcesContent":["@import \"../../button/style.css\";\n\n:host {\n\tdisplay: flex;\n}\n\n:host(:not([display])) {\n\tdisplay: none;\n}\n\n:host([type=\"input\"])::slotted(smoothly-button>button) {\n\tcursor: pointer;\n\tfilter: opacity(60%);\n\t--smoothly-button-foreground: var(--smoothly-input-foreground);\n\tbackground-color: transparent;\n}\n\n:host::slotted(smoothly-button>button > * > * + smoothly-icon) {\n\tdisplay: none;\n}\n\n:host([disabled]) {\n\tcursor: not-allowed\n}\n\n:host([type=\"input\"]):hover ::slotted(smoothly-icon) {\n\tcursor: pointer;\n\tfilter: opacity(100%);\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Listen, Prop } from \"@stencil/core\"\nimport { Color, Fill } from \"../../../model\"\nimport { SmoothlyForm } from \"../../form\"\nimport { Clearable } from \"../Clearable\"\nimport { Editable } from \"../Editable\"\nimport { Input } from \"../Input\"\n\n@Component({\n\ttag: \"smoothly-input-clear\",\n\tstyleUrl: \"./style.css\",\n\tscoped: true,\n})\nexport class SmoothlyInputClear {\n\t@Element() element: HTMLSmoothlyInputClearElement\n\t@Prop() color?: Color\n\t@Prop({ reflect: true }) expand?: \"block\" | \"full\"\n\t@Prop({ reflect: true }) fill?: Fill = \"clear\"\n\t@Prop({ reflect: true, mutable: true }) disabled = false\n\t@Prop({ reflect: true }) size: \"small\" | \"large\" | \"icon\" | \"flexible\" = \"icon\"\n\t@Prop({ reflect: true }) shape?: \"rounded\"\n\t@Prop({ reflect: true, mutable: true }) display = true\n\t@Prop({ reflect: true }) type: \"form\" | \"input\" = \"input\"\n\t@Prop() tooltip = \"Clear\"\n\tprivate parent?: Clearable | (Clearable & Editable)\n\t@Event() smoothlyInputLoad: EventEmitter<(parent: Editable) => void>\n\n\tasync componentWillLoad() {\n\t\tthis.smoothlyInputLoad.emit(parent => {\n\t\t\tif (Clearable.is(parent)) {\n\t\t\t\tthis.parent = parent\n\t\t\t\tif (Editable.Element.is(parent)) {\n\t\t\t\t\tparent.listen(async p => {\n\t\t\t\t\t\tif (Input.is(p)) {\n\t\t\t\t\t\t\tconst defined = typeof p.defined == \"boolean\" ? p.defined : Boolean(await p.getValue())\n\t\t\t\t\t\t\tthis.display = defined && !p.readonly && !p.disabled\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (p instanceof SmoothlyForm) {\n\t\t\t\t\t\t\tthis.disabled = p.readonly || Object.values(p.value).filter(val => val).length < 1\n\t\t\t\t\t\t\tthis.display = !p.readonly\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t}\n\t@Listen(\"click\")\n\tclickHandler() {\n\t\tthis.parent?.clear()\n\t}\n\trender() {\n\t\treturn (\n\t\t\t<Host title={this.tooltip}>\n\t\t\t\t<smoothly-button\n\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\tsize={this.size}\n\t\t\t\t\ttype={\"button\"}\n\t\t\t\t\tshape={this.shape}\n\t\t\t\t\texpand={this.expand}\n\t\t\t\t\tcolor={this.color}\n\t\t\t\t\tfill={this.fill ?? (this.type == \"input\" ? \"clear\" : undefined)}>\n\t\t\t\t\t<slot />\n\t\t\t\t\t<smoothly-icon name=\"close\" size=\"tiny\" />\n\t\t\t\t</smoothly-button>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"qOAAA,MAAMA,EAAW,IAAM,q3O,MCYVC,EAAkBC,EAAA,MAAAD,UAAAE,EAL/B,WAAAC,CAAAC,G,+FAS0BC,KAAAC,KAAc,QACCD,KAAAE,SAAW,MAC1BF,KAAAG,KAAgD,OAEjCH,KAAAI,QAAU,KACzBJ,KAAAK,KAAyB,QAC1CL,KAAAM,QAAU,OA4ClB,CAxCA,uBAAMC,GACLP,KAAKQ,kBAAkBC,MAAKC,IAC3B,GAAIC,EAAUC,GAAGF,GAAS,CACzBV,KAAKU,OAASA,EACd,GAAIG,EAASC,QAAQF,GAAGF,GAAS,CAChCA,EAAOK,QAAOC,MAAMC,IACnB,GAAIC,EAAMN,GAAGK,GAAI,CAChB,MAAME,SAAiBF,EAAEE,SAAW,UAAYF,EAAEE,QAAUC,cAAcH,EAAEI,YAC5ErB,KAAKI,QAAUe,IAAYF,EAAEK,WAAaL,EAAEf,Q,CAE7C,GAAIe,aAAaM,EAAc,CAC9BvB,KAAKE,SAAWe,EAAEK,UAAYE,OAAOC,OAAOR,EAAES,OAAOC,QAAOC,GAAOA,IAAKC,OAAS,EACjF7B,KAAKI,SAAWa,EAAEK,Q,UAQxB,YAAAQ,G,OACCC,EAAA/B,KAAKU,UAAM,MAAAqB,SAAA,SAAAA,EAAEC,O,CAEd,MAAAC,G,MACC,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAOrC,KAAKM,SACjB4B,EAAA,mBAAAE,IAAA,2CACClC,SAAUF,KAAKE,SACfC,KAAMH,KAAKG,KACXE,KAAM,SACNiC,MAAOtC,KAAKsC,MACZC,OAAQvC,KAAKuC,OACbC,MAAOxC,KAAKwC,MACZvC,MAAM8B,EAAA/B,KAAKC,QAAI,MAAA8B,SAAA,EAAAA,EAAK/B,KAAKK,MAAQ,QAAU,QAAUoC,WACrDP,EAAA,QAAAE,IAAA,6CACAF,EAAA,iBAAAE,IAAA,2CAAeM,KAAK,QAAQvC,KAAK,U","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["styleCss","SmoothlyInputReset","__stencil_proxyCustomElement","HTMLElement","constructor","registerHost","this","disabled","size","display","type","tooltip","componentWillLoad","smoothlyInputLoad","emit","parent","Editable","Element","is","readonlyAtLoad","readonly","listen","async","p","Input","defined","Boolean","getValue","isDifferentFromInitial","SmoothlyForm","clickHandler","event","stopPropagation","_a","reset","_b","edit","render","h","Host","key","title","shape","expand","color","fill","undefined","onClick","flip","name"],"sources":["src/components/input/reset/style.css?tag=smoothly-input-reset&encapsulation=scoped","src/components/input/reset/index.tsx"],"sourcesContent":["@import \"../../button/style.css\";\n\n:host(:not([display])) {\n\tdisplay: none;\n}\n\n:host([type=\"input\"])::slotted(smoothly-button>button) {\n\tcursor: pointer;\n\tfilter: opacity(60%);\n\t--smoothly-button-foreground: var(--smoothly-input-foreground);\n\tbackground-color: transparent;\n}\n\n:host::slotted(smoothly-button>button > * > * + smoothly-icon) {\n\tdisplay: none;\n}\n\n:host([disabled]) {\n\tcursor: not-allowed\n}\n\n:host([type=\"input\"]):hover ::slotted(smoothly-icon) {\n\tcursor: pointer;\n\tfilter: opacity(100%);\n}\n","import { Component, Event, EventEmitter, h, Host, Listen, Prop } from \"@stencil/core\"\nimport { Color, Fill } from \"../../../model\"\nimport { SmoothlyForm } from \"../../form\"\nimport { Editable } from \"../Editable\"\nimport { Input } from \"../Input\"\n\n@Component({\n\ttag: \"smoothly-input-reset\",\n\tstyleUrl: \"./style.css\",\n\tscoped: true,\n})\nexport class SmoothlyInputReset {\n\treadonlyAtLoad: boolean\n\t@Prop() color?: Color\n\t@Prop({ reflect: true }) expand?: \"block\" | \"full\"\n\t@Prop({ reflect: true }) fill?: Fill\n\t@Prop({ reflect: true, mutable: true }) disabled = false\n\t@Prop({ reflect: true }) size: \"flexible\" | \"small\" | \"large\" | \"icon\" = \"icon\"\n\t@Prop({ reflect: true }) shape?: \"rounded\"\n\t@Prop({ reflect: true, mutable: true }) display = true\n\t@Prop({ reflect: true }) type: \"form\" | \"input\" = \"input\"\n\t@Prop() tooltip = \"Reset\"\n\tprivate parent?: Editable.Element\n\t@Event() smoothlyInputLoad: EventEmitter<(parent: Editable) => void>\n\n\tasync componentWillLoad() {\n\t\tthis.smoothlyInputLoad.emit(parent => {\n\t\t\tif (Editable.Element.type.is(parent)) {\n\t\t\t\tthis.parent = parent\n\t\t\t\tthis.readonlyAtLoad = parent.readonly\n\t\t\t\tparent.listen(async p => {\n\t\t\t\t\tif (Input.is(p)) {\n\t\t\t\t\t\tconst defined = typeof p.defined == \"boolean\" ? p.defined : Boolean(await p.getValue())\n\t\t\t\t\t\tthis.display = p.readonly || !defined ? false : p.isDifferentFromInitial\n\t\t\t\t\t}\n\t\t\t\t\tif (p instanceof SmoothlyForm) {\n\t\t\t\t\t\tthis.display = !p.readonly\n\t\t\t\t\t\tthis.disabled = !this.readonlyAtLoad && !p.isDifferentFromInitial\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}\n\t\t})\n\t}\n\t@Listen(\"click\")\n\tclickHandler(event: MouseEvent) {\n\t\tevent.stopPropagation()\n\t\tthis.parent?.reset()\n\t\tthis.parent instanceof SmoothlyForm && this.readonlyAtLoad && this.parent?.edit(false)\n\t}\n\trender() {\n\t\treturn (\n\t\t\t<Host title={this.tooltip}>\n\t\t\t\t<smoothly-button\n\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\tsize={this.size}\n\t\t\t\t\ttype={\"button\"}\n\t\t\t\t\tshape={this.shape}\n\t\t\t\t\texpand={this.expand}\n\t\t\t\t\tcolor={this.color}\n\t\t\t\t\tfill={this.fill ?? (this.type == \"input\" ? \"clear\" : undefined)}\n\t\t\t\t\tonClick={event => this.clickHandler(event)}>\n\t\t\t\t\t<slot />\n\t\t\t\t\t<smoothly-icon flip=\"x\" name=\"refresh-outline\" size=\"tiny\" />\n\t\t\t\t</smoothly-button>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"8NAAA,MAAMA,EAAW,IAAM,60O,MCWVC,EAAkBC,EAAA,MAAAD,UAAAE,EAL/B,WAAAC,CAAAC,G,+FAUyCC,KAAAC,SAAW,MAC1BD,KAAAE,KAAgD,OAEjCF,KAAAG,QAAU,KACzBH,KAAAI,KAAyB,QAC1CJ,KAAAK,QAAU,OA8ClB,CA1CA,uBAAMC,GACLN,KAAKO,kBAAkBC,MAAKC,IAC3B,GAAIC,EAASC,QAAQP,KAAKQ,GAAGH,GAAS,CACrCT,KAAKS,OAASA,EACdT,KAAKa,eAAiBJ,EAAOK,SAC7BL,EAAOM,QAAOC,MAAMC,IACnB,GAAIC,EAAMN,GAAGK,GAAI,CAChB,MAAME,SAAiBF,EAAEE,SAAW,UAAYF,EAAEE,QAAUC,cAAcH,EAAEI,YAC5ErB,KAAKG,QAAUc,EAAEH,WAAaK,EAAU,MAAQF,EAAEK,sB,CAEnD,GAAIL,aAAaM,EAAc,CAC9BvB,KAAKG,SAAWc,EAAEH,SAClBd,KAAKC,UAAYD,KAAKa,iBAAmBI,EAAEK,sB,SAOhD,YAAAE,CAAaC,G,QACZA,EAAMC,mBACNC,EAAA3B,KAAKS,UAAM,MAAAkB,SAAA,SAAAA,EAAEC,QACb5B,KAAKS,kBAAkBc,GAAgBvB,KAAKa,kBAAkBgB,EAAA7B,KAAKS,UAAM,MAAAoB,SAAA,SAAAA,EAAEC,KAAK,O,CAEjF,MAAAC,G,MACC,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAOnC,KAAKK,SACjB2B,EAAA,mBAAAE,IAAA,2CACCjC,SAAUD,KAAKC,SACfC,KAAMF,KAAKE,KACXE,KAAM,SACNgC,MAAOpC,KAAKoC,MACZC,OAAQrC,KAAKqC,OACbC,MAAOtC,KAAKsC,MACZC,MAAMZ,EAAA3B,KAAKuC,QAAI,MAAAZ,SAAA,EAAAA,EAAK3B,KAAKI,MAAQ,QAAU,QAAUoC,UACrDC,QAAShB,GAASzB,KAAKwB,aAAaC,IACpCO,EAAA,QAAAE,IAAA,6CACAF,EAAA,iBAAAE,IAAA,2CAAeQ,KAAK,IAAIC,KAAK,kBAAkBzC,KAAK,U","ignoreList":[]}