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.
- package/dist/cjs/smoothly-app_99.cjs.entry.js +9 -4
- package/dist/cjs/smoothly-app_99.cjs.entry.js.map +1 -1
- package/dist/collection/components/input/select/index.js +4 -4
- package/dist/collection/components/input/select/index.js.map +1 -1
- package/dist/collection/components/input/select/menu.js +5 -0
- package/dist/collection/components/input/select/menu.js.map +1 -1
- package/dist/components/{p-DxMW5Du7.js → p-B1agr2Cu.js} +2 -2
- package/dist/components/{p-BoVqzcqA.js → p-B4ZWPf6K.js} +2 -2
- package/dist/components/{p-CRgTWhgN.js → p-B8xGVFme.js} +2 -2
- package/dist/components/{p-DilrpZI6.js → p-BOgkCDpz.js} +2 -2
- package/dist/components/{p-C5SROPcr.js → p-BiRi-ZIu.js} +2 -2
- package/dist/components/{p-CsbRRVxH.js → p-Bp65xiCy.js} +2 -2
- package/dist/components/{p-CKguOE4o.js → p-C3ntRScd.js} +2 -2
- package/dist/components/{p-BlSr9psC.js → p-C4PyQibs.js} +2 -2
- package/dist/components/{p-5RD9qap_.js → p-CA4ZV5xR.js} +2 -2
- package/dist/components/{p-CG405xpf.js → p-CZY1H_tZ.js} +2 -2
- package/dist/components/{p-DABDOf4i.js → p-Cd3l3tXR.js} +2 -2
- package/dist/components/{p-DdG2-QwQ.js → p-CnPK9tlN.js} +2 -2
- package/dist/components/{p-BW08Z-5c.js → p-D1kz47jP.js} +2 -2
- package/dist/components/{p-B7iMXQWl.js → p-D7ibQkKs.js} +2 -2
- package/dist/components/{p-DJZNwn-w.js → p-DB5eYiPc.js} +2 -2
- package/dist/components/p-DTo2Itg9.js +2 -0
- package/dist/components/p-DTo2Itg9.js.map +1 -0
- package/dist/components/{p-Obm_ForQ.js → p-DcOQ-AL9.js} +2 -2
- package/dist/components/{p-DUuSvBmQ.js → p-DfSSSicA.js} +2 -2
- package/dist/components/{p-CRlfq-AL.js → p-EqRJl32n.js} +2 -2
- package/dist/components/{p-CocCQeEi.js → p-J05ZrIy8.js} +2 -2
- package/dist/components/{p-CeUOn6zh.js → p-_46rt1sK.js} +2 -2
- package/dist/components/{p-C0Z37bUn.js → p-fZNu4CkP.js} +2 -2
- package/dist/components/{p-bROQezlS.js → p-jd_qrwk9.js} +2 -2
- package/dist/components/{p-DES0wbqs.js → p-l7KxEsrG.js} +2 -2
- package/dist/components/smoothly-app-demo.js +1 -1
- package/dist/components/smoothly-button-demo-standard.js +1 -1
- package/dist/components/smoothly-button-demo.js +1 -1
- package/dist/components/smoothly-calendar.js +1 -1
- package/dist/components/smoothly-form-demo-all.js +1 -1
- package/dist/components/smoothly-form-demo-controlled.js +1 -1
- package/dist/components/smoothly-form-demo-date-range.js +1 -1
- package/dist/components/smoothly-form-demo-date.js +1 -1
- package/dist/components/smoothly-form-demo-pet.js +1 -1
- package/dist/components/smoothly-form-demo-schedule.js +1 -1
- package/dist/components/smoothly-form-demo-transparent.js +1 -1
- package/dist/components/smoothly-form-demo-typed.js +1 -1
- package/dist/components/smoothly-form-demo.js +1 -1
- package/dist/components/smoothly-icon-demo.js +1 -1
- package/dist/components/smoothly-input-checkbox-demo.js +1 -1
- package/dist/components/smoothly-input-date-demo.js +1 -1
- package/dist/components/smoothly-input-date-range.js +1 -1
- package/dist/components/smoothly-input-date-time.js +1 -1
- package/dist/components/smoothly-input-date.js +1 -1
- package/dist/components/smoothly-input-demo-standard.js +1 -1
- package/dist/components/smoothly-input-demo-user-input.js +1 -1
- package/dist/components/smoothly-input-demo.js +1 -1
- package/dist/components/smoothly-input-month.js +1 -1
- package/dist/components/smoothly-input-select.js +1 -1
- package/dist/components/smoothly-theme-demo.js +1 -1
- package/dist/components/smoothly-theme-picker.js +1 -1
- package/dist/esm/smoothly-app_99.entry.js +9 -4
- package/dist/esm/smoothly-app_99.entry.js.map +1 -1
- package/dist/smoothly/{p-bf6726da.entry.js → p-53cbd170.entry.js} +2 -2
- package/dist/smoothly/p-53cbd170.entry.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/input/select/menu.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components/p-Bd-a9CG1.js +0 -2
- package/dist/components/p-Bd-a9CG1.js.map +0 -1
- package/dist/smoothly/p-bf6726da.entry.js.map +0 -1
- /package/dist/components/{p-DxMW5Du7.js.map → p-B1agr2Cu.js.map} +0 -0
- /package/dist/components/{p-BoVqzcqA.js.map → p-B4ZWPf6K.js.map} +0 -0
- /package/dist/components/{p-CRgTWhgN.js.map → p-B8xGVFme.js.map} +0 -0
- /package/dist/components/{p-DilrpZI6.js.map → p-BOgkCDpz.js.map} +0 -0
- /package/dist/components/{p-C5SROPcr.js.map → p-BiRi-ZIu.js.map} +0 -0
- /package/dist/components/{p-CsbRRVxH.js.map → p-Bp65xiCy.js.map} +0 -0
- /package/dist/components/{p-CKguOE4o.js.map → p-C3ntRScd.js.map} +0 -0
- /package/dist/components/{p-BlSr9psC.js.map → p-C4PyQibs.js.map} +0 -0
- /package/dist/components/{p-5RD9qap_.js.map → p-CA4ZV5xR.js.map} +0 -0
- /package/dist/components/{p-CG405xpf.js.map → p-CZY1H_tZ.js.map} +0 -0
- /package/dist/components/{p-DABDOf4i.js.map → p-Cd3l3tXR.js.map} +0 -0
- /package/dist/components/{p-DdG2-QwQ.js.map → p-CnPK9tlN.js.map} +0 -0
- /package/dist/components/{p-BW08Z-5c.js.map → p-D1kz47jP.js.map} +0 -0
- /package/dist/components/{p-B7iMXQWl.js.map → p-D7ibQkKs.js.map} +0 -0
- /package/dist/components/{p-DJZNwn-w.js.map → p-DB5eYiPc.js.map} +0 -0
- /package/dist/components/{p-Obm_ForQ.js.map → p-DcOQ-AL9.js.map} +0 -0
- /package/dist/components/{p-DUuSvBmQ.js.map → p-DfSSSicA.js.map} +0 -0
- /package/dist/components/{p-CRlfq-AL.js.map → p-EqRJl32n.js.map} +0 -0
- /package/dist/components/{p-CocCQeEi.js.map → p-J05ZrIy8.js.map} +0 -0
- /package/dist/components/{p-CeUOn6zh.js.map → p-_46rt1sK.js.map} +0 -0
- /package/dist/components/{p-C0Z37bUn.js.map → p-fZNu4CkP.js.map} +0 -0
- /package/dist/components/{p-bROQezlS.js.map → p-jd_qrwk9.js.map} +0 -0
- /package/dist/components/{p-DES0wbqs.js.map → p-l7KxEsrG.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-bf6726da",[[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],"paths":[32],"mobileMode":[32],"setMobileMode":[64],"getContent":[64],"setSelected":[64]},[[8,"smoothlyUrlUpdate","setQuery"]]],[2,"smoothly-tabs-demo",{"extraTab1":[32],"extraTab2":[32]}],[0,"smoothly-notifier-demo"],[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],"dual":[4],"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],"right":[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"],"isSearchPersistent":[4,"is-search-persistent"],"searchPlaceholder":[1,"search-placeholder"],"mutable":[4],"open":[32],"selected":[32],"filter":[32],"addedItems":[32],"display":[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"]],{"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-a2041097",[[2,"smoothly-input-checkbox-demo"]]],["p-bd4c289b",[[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-eb434b94",[[262,"smoothly-color",{"color":[513]}]]],["p-77ef4a4c",[[2,"smoothly-country",{"value":[1],"text":[1],"language":[32]}]]],["p-d4e775c4",[[262,"smoothly-submit",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"size":[513],"shape":[513],"prevent":[4]},[[0,"click","clickHandler"]]]]],["p-4796e508",[[262,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["p-0a167245",[[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-53cbd170",[[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],"paths":[32],"mobileMode":[32],"setMobileMode":[64],"getContent":[64],"setSelected":[64]},[[8,"smoothlyUrlUpdate","setQuery"]]],[2,"smoothly-tabs-demo",{"extraTab1":[32],"extraTab2":[32]}],[0,"smoothly-notifier-demo"],[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],"dual":[4],"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],"right":[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"],"isSearchPersistent":[4,"is-search-persistent"],"searchPlaceholder":[1,"search-placeholder"],"mutable":[4],"open":[32],"selected":[32],"filter":[32],"addedItems":[32],"display":[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"]],{"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-a2041097",[[2,"smoothly-input-checkbox-demo"]]],["p-bd4c289b",[[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-eb434b94",[[262,"smoothly-color",{"color":[513]}]]],["p-77ef4a4c",[[2,"smoothly-country",{"value":[1],"text":[1],"language":[32]}]]],["p-d4e775c4",[[262,"smoothly-submit",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"size":[513],"shape":[513],"prevent":[4]},[[0,"click","clickHandler"]]]]],["p-4796e508",[[262,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["p-0a167245",[[262,"smoothly-trigger-source",{"listen":[1]}]]]]'),e)}));
|
|
2
2
|
//# sourceMappingURL=smoothly.esm.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare namespace menu {
|
|
2
|
+
function insert(items: HTMLSmoothlyItemElement[], item: HTMLSmoothlyItemElement): HTMLSmoothlyItemElement[];
|
|
2
3
|
function next(items: HTMLSmoothlyItemElement[], direction: -1 | 1): {
|
|
3
4
|
current?: HTMLSmoothlyItemElement;
|
|
4
5
|
next: HTMLSmoothlyItemElement;
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as t,H as s,c as e,h as o,d as i,t as l}from"./p-BsZrGTcp.js";import{a as n,E as h}from"./p-iQDU7l2c.js";import{o as c,b as r}from"./p-Dr7iZPxA.js";import{i as a}from"./p-Br0kWrBT.js";import{I as d}from"./p-BLDkKrD6.js";import{d as u}from"./p-DFSiKg4M.js";import{d as m}from"./p-DtGUtK97.js";var p;(function(t){let s;(function(t){t.type=c({value:n(),deselectable:r(),selected:r().optional(),filter:a()});t.is=t.type.is})(s=t.Element||(t.Element={}));t.type=s.type.extend({});t.is=t.type.is})(p||(p={}));var y;(function(t){function s(t){var s;return(s=t.find((t=>t.clientHeight>0)))===null||s===void 0?void 0:s.clientHeight}t.firstItemHeight=s;function e(t,s,e){var o,i;const l=e.endsWith("items")?`${s*+((i=(o=e.match(/^(\d+(\.\d+)?|\.\d+)/g))===null||o===void 0?void 0:o[0])!==null&&i!==void 0?i:"10")}px`:e;t.style.setProperty("--menu-height",l)}t.applyMenuHeight=e;function o(t){t===null||t===void 0?void 0:t.style.setProperty("--element-height",`${t.clientHeight}px`)}t.applyElementHeight=o})(y||(y={}));var b;(function(t){function s(t,s){const e=t.filter((t=>!t.hidden&&!t.disabled));const o=e.findIndex((t=>t.marked));let i;if(o==-1){i=0}else{i=(o+s+e.length)%e.length}return{current:e[o],next:e[i]}}t.next=s;function e(t){return t.some((t=>!t.getAttribute("hidden")))}t.hasVisibleItems=e;function o(t,s){t.map((t=>t.marked=t===s))}t.markOnly=o;function i(t){return t.find((t=>t.selected))}t.findFirstSelected=i;function l(t){return t.find((t=>t.marked))}t.findFirstMarked=l})(b||(b={}));var f;(function(t){function s(t,s,e="smooth"){var o;if(s&&t){t.scrollTo({top:s.offsetTop+s.offsetHeight/2-((o=t.clientHeight)!==null&&o!==void 0?o:0)/2,behavior:e})}}t.centerInView=s})(f||(f={}));const g=()=>`.sc-smoothly-input-select-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}[looks="border"].sc-smoothly-input-select-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"].sc-smoothly-input-select-h:not([readonly]):not([disabled]):focus-within{outline:2px solid rgb(var(--smoothly-input-border-focus))}[looks="border"][readonly].sc-smoothly-input-select-h{border:transparent solid 1px}[looks="line"].sc-smoothly-input-select-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px;position:relative}[looks="line"][readonly].sc-smoothly-input-select-h{border-bottom:transparent solid 1px}[looks="line"].sc-smoothly-input-select-h:not([readonly]):not([disabled]):focus-within::before{content:"";position:absolute;inset:0;pointer-events:none;border-bottom:2px solid rgb(var(--smoothly-input-border-focus));z-index:10}[looks="grid"].sc-smoothly-input-select-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-select-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="grid"].sc-smoothly-input-select-h:not([readonly]):not([disabled]):focus-within{position:relative;box-shadow:0px 0px 0px 2px rgb(var(--smoothly-input-border-focus));outline:none;z-index:10}[looks="transparent"].sc-smoothly-input-select-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-select-h,[looks="transparent"].sc-smoothly-input-select-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-select-h>input.sc-smoothly-input-select,[looks="transparent"].sc-smoothly-input-select-h:not(:focus-within)>input.sc-smoothly-input-select{background-color:transparent}[looks="transparent"].sc-smoothly-input-select-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}[disabled].sc-smoothly-input-select-h{cursor:not-allowed;--smoothly-input-foreground:var(--smoothly-input-disabled-foreground);--smoothly-input-background:var(--smoothly-input-disabled-background);--smoothly-input-border:var(--smoothly-input-disabled-border)}.sc-smoothly-input-select-h.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h .label.sc-smoothly-input-select{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}[right].sc-smoothly-input-select-h .label.sc-smoothly-input-select{transform-origin:top right}.sc-smoothly-input-select-h.floating-label.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.floating-label .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.has-value.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.has-value .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[placeholder].sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[placeholder] .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[readonly].sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[readonly] .sc-smoothly-input-select-s>[slot=label],.floating-label.sc-smoothly-input-select-h .label.sc-smoothly-input-select,.has-value.sc-smoothly-input-select-h .label.sc-smoothly-input-select,.has-text.sc-smoothly-input-select-h .label.sc-smoothly-input-select,[placeholder].sc-smoothly-input-select-h .label.sc-smoothly-input-select,[readonly].sc-smoothly-input-select-h .label.sc-smoothly-input-select,.sc-smoothly-input-select-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-select{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-select-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-select{display:none}.sc-smoothly-input-select-h smoothly-icon.smoothly-invalid.sc-smoothly-input-select{fill:rgb(var(--smoothly-input-invalid-icon, var(--smoothly-danger-color)))}.sc-smoothly-input-select-h{display:flex;justify-content:space-between;flex-direction:row;position:relative;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground));padding-left:var(--input-padding-side)}.open.sc-smoothly-input-select-h{border-radius:var(--smoothly-input-border-radius) var(--smoothly-input-border-radius) 0 0}.sc-smoothly-input-select-h>.select-display.sc-smoothly-input-select{box-sizing:border-box;display:flex;padding:var(--input-value-padding-top) .8rem var(--input-value-padding-bottom) 0;width:100%;white-space:nowrap;gap:1rem}.sc-smoothly-input-select-h>.select-display.sc-smoothly-input-select>.value.sc-smoothly-input-select{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sc-smoothly-input-select-h:not([readonly]):not([disabled])>.select-display.sc-smoothly-input-select{cursor:pointer}.sc-smoothly-input-select-h:not(:has([slot=label]))>.select-display.sc-smoothly-input-select,.sc-smoothly-input-select-h:not([show-label])>.select-display.sc-smoothly-input-select{padding:.6rem .8rem .6rem 0;align-items:center}.sc-smoothly-input-select-h>.select-display.sc-smoothly-input-select smoothly-icon.sc-smoothly-input-select{color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground))}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select{display:flex;flex-direction:row;align-items:center}.sc-smoothly-input-select-h:hover>div.icons.sc-smoothly-input-select-s>smoothly-icon{filter:opacity(100%)}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-down-outline].sc-smoothly-input-select,.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-forward-outline].sc-smoothly-input-select{opacity:.7;height:100%;padding-inline:var(--input-padding-side)}.sc-smoothly-input-select-h:not([readonly]):not([disabled])>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-down-outline].sc-smoothly-input-select,.sc-smoothly-input-select-h:not([readonly]):not([disabled])>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-forward-outline].sc-smoothly-input-select{cursor:pointer}[invalid].sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.smoothly-invalid.sc-smoothly-input-select{display:block;padding:0.5rem}.sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.smoothly-invalid.sc-smoothly-input-select{display:none}.has-value.sc-smoothly-input-select-h:has([slot=label]:not(:empty))>.select-display.sc-smoothly-input-select,.sc-smoothly-input-select-h:not(.has-value)[placeholder]>.select-display.sc-smoothly-input-select{overflow:hidden;width:100%}.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select{display:flex;flex-direction:column;position:absolute;top:var(--element-height);z-index:20;max-height:var(--menu-height, unset);overflow-x:hidden;overflow-y:auto;background-color:rgb(var(--smoothly-input-background));inset-inline:0;border-radius:0 0 var(--smoothly-input-border-radius) var(--smoothly-input-border-radius);border:rgb(var(--smoothly-input-border, var(--smoothly-color-contrast))) solid 1px;border-top:rgba(var(--smoothly-input-border, var(--smoothly-color-contrast)), .4) solid 1px}.sc-smoothly-input-select-h:not(.open)>.dropdown.sc-smoothly-input-select{border:0}[looks="grid"].sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select,[looks=border].sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select,[looks="transparent"].sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select{inset-inline:-1px}.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select>.search.sc-smoothly-input-select{display:flex;position:sticky;align-items:center;top:0;gap:1rem;padding:.7rem .7rem .7rem .25rem;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));fill:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));stroke:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)))}.has-filter-persistent.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select>.search.sc-smoothly-input-select{z-index:1}.sc-smoothly-input-select-h:not(.has-filter):not(.has-filter-persistent)>.dropdown.sc-smoothly-input-select>.search.sc-smoothly-input-select{height:0;padding:0;overflow:hidden;pointer-events:none}.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select>.search.sc-smoothly-input-select::before{content:"";position:absolute;inset:0;background-color:rgba(var(--smoothly-primary-tint), 0.5);z-index:-1}.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select>.search.sc-smoothly-input-select>.search-input.sc-smoothly-input-select{width:100%;background-color:transparent;border:none;outline:none}.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select>.search.sc-smoothly-input-select>smoothly-icon[name="search-outline"].sc-smoothly-input-select,.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select>.search.sc-smoothly-input-select>smoothly-icon[name="backspace-outline"].sc-smoothly-input-select{color:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));fill:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));stroke:rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)))}.sc-smoothly-input-select-h[multiple].sc-smoothly-input-select-s>.dropdown>.menu>smoothly-item{position:relative}.sc-smoothly-input-select-h[multiple].sc-smoothly-input-select-s>.dropdown>.menu>smoothly-item::before{content:"";display:inline-block;width:1rem;height:1rem;margin-right:0.5rem;border:1px solid rgb(var(--smoothly-input-foreground));border-radius:0.15rem;vertical-align:middle}.sc-smoothly-input-select-h[multiple].sc-smoothly-input-select-s>.dropdown>.menu>smoothly-item[selected]::before{border-color:rgb(var(--smoothly-item-selected-foreground))}.sc-smoothly-input-select-h[multiple].sc-smoothly-input-select-s>.dropdown>.menu>smoothly-item:hover::before{border:1px solid rgb(var(--smoothly-item-hover-foreground))}.sc-smoothly-input-select-h[multiple].sc-smoothly-input-select-s>.dropdown>.menu>smoothly-item[selected]::after{content:"✔";position:absolute;left:0.65rem;color:rgb(var(--smoothly-item-selected-foreground))}.sc-smoothly-input-select-h[multiple].sc-smoothly-input-select-s>.dropdown>.menu>smoothly-item:hover::after{color:rgb(var(--smoothly-item-hover-foreground))}.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select{min-width:fit-content}.sc-smoothly-input-select-h>.dropdown.sc-smoothly-input-select>.menu[hidden].sc-smoothly-input-select{display:none}`;const v=t(class t extends s{constructor(t){super();if(t!==false){this.__registerHost()}this.smoothlyInput=e(this,"smoothlyInput");this.smoothlyUserInput=e(this,"smoothlyUserInput");this.smoothlyInputLooks=e(this,"smoothlyInputLooks");this.smoothlyInputLoad=e(this,"smoothlyInputLoad");this.smoothlyFormDisable=e(this,"smoothlyFormDisable");this.smoothlyItemSelect=e(this,"smoothlyItemSelect");this.smoothlySelectOpen=e(this,"smoothlySelectOpen");this.smoothlyFilterChange=e(this,"smoothlyFilterChange");this.isDifferentFromInitial=false;this.initialValue=[];this.initialValueHandled=false;this.observer=h.Observer.create(this);this.items=[];this.displaySeparator='<span style="display:inline-block;width:0.8rem"></span>';this.invalid=false;this.name="selected";this.showLabel=true;this.showSelected=true;this.readonly=false;this.disabled=false;this.inCalendar=false;this.multiple=false;this.clearable=true;this.defined=false;this.required=false;this.searchDisabled=false;this.isSearchPersistent=false;this.mutable=false;this.lastOpen=false;this.open=false;this.selected=[];this.filter="";this.addedItems=[];this.display=[]}componentWillLoad(){this.smoothlyInputLooks.emit(((t,s)=>{var e;return this.looks=(e=this.looks)!==null&&e!==void 0?e:t,!this.color&&(this.color=s)}));this.smoothlyInputLoad.emit((t=>this.parent=t));!this.readonly&&this.smoothlyFormDisable.emit((t=>this.readonly=t));this.observer.publish()}componentDidLoad(){this.selected&&!this.initialValueHandled&&(this.initialValue=[...this.selected]);this.initialValueHandled=true;this.onSelectedChange()}componentDidRender(){var t;(t=this.itemHeight)!==null&&t!==void 0?t:this.itemHeight=y.firstItemHeight(this.items);if(this.menuHeight&&this.itemHeight){y.applyMenuHeight(this.element,this.itemHeight,this.menuHeight)}y.applyElementHeight(this.element);const s=this.open&&!this.lastOpen;if(s&&this.ordered){this.scrollToSelected()}}scrollToSelected(){const t=b.findFirstSelected(this.items);if(t){b.markOnly(this.items,t);f.centerInView(this.dropdownElement,t,"instant")}}async disconnectedCallback(){if(!this.element.isConnected){await this.unregister()}}nameChange(t,s){d.formRename(this,s)}async register(){d.formAdd(this)}async unregister(){d.formRemove(this)}async getValue(){return!this.multiple&&this.selected[0]?this.selected[0].value:this.multiple&&this.selected.length>0?this.selected.map((t=>t.value)):undefined}async getItems(){return this.items}async listen(t){this.observer.subscribe(t)}async reset(){this.selected.forEach((t=>t.selected=t.hidden=false));this.initialValue.forEach((t=>t.selected=true));this.selected=[...this.initialValue];this.displaySelected();this.isDifferentFromInitial=false;this.closeMenu()}async clear(){if(this.clearable){this.selected.forEach((t=>t.selected=t.hidden=false));this.selected=[];this.displaySelected()}}async edit(t){this.readonly=!t}async setInitialValue(){this.isDifferentFromInitial=false;this.initialValue=[...this.selected]}async onSelectedChange(){this.initialValueHandled&&(this.isDifferentFromInitial=!this.areValuesEqual(this.selected,this.initialValue));this.defined=this.selected.length>0;this.smoothlyInput.emit({[this.name]:await this.getValue()});this.observer.publish()}onRequiredChange(){this.items.forEach((t=>t.deselectable=!this.required))}async onFilterChange(t){t=t.toLowerCase();this.smoothlyFilterChange.emit(this.filter);await Promise.all(this.items.map((s=>s.filter(t))))}watchingReadonly(){this.observer.publish()}async smoothlyInputLoadHandler(t){const s=t.target&&"name"in t.target&&t.target.name!==this.name;const e=t.composedPath().some((t=>t==this.iconsElement));if(s||e){t.stopPropagation()}else if(p.Element.is(t.target)){t.stopPropagation();t.target.deselectable=!this.required;this.items.push(t.target)}d.registerSubAction(this,t);this.displaySelected()}onWindowClick(t){if(this.open&&!t.composedPath().includes(this.element)){this.closeMenu()}}onItemDomChange(t){t.stopPropagation();const s=t.target;if(s.selected){this.displaySelected()}}async onItemSelect(t){t.stopPropagation();const s=t.detail.item;if(this.multiple){this.selected=s.selected?[...this.selected,s]:this.selected.filter((t=>t.selected))}else if(s.selected||!this.items.some((t=>t.selected))){this.selected[0]&&(this.selected[0].hidden=this.selected[0].selected=false);this.selected=!s.selected?this.selected.filter((t=>t.selected)):[s];!this.showSelected&&s.selected&&(s.hidden=true)}this.displaySelected();if(t.detail.userInitiated){this.smoothlyUserInput.emit({name:this.name,value:await this.getValue()})}}onClosed(t,s){this.lastOpen=s;if(!t){const t=b.findFirstMarked(this.items);if(t){t.marked=false}}this.smoothlySelectOpen.emit(t)}areValuesEqual(t,s){return t.length===s.length&&s.every((s=>t.includes(s)))}displaySelected(){this.display=this.selected.map((t=>{const s=t.cloneNode(true);s.querySelectorAll("smoothly-icon").forEach((t=>{const s=t.style;s.display="inline-flex";s.verticalAlign="middle"}));return s.innerHTML}))}onKeyDown(t){t.stopPropagation();const s=t.key;if(s=="ArrowUp"||s=="ArrowDown"){t.preventDefault();this.handlerNavigate(s)}else if(s=="Escape"){t.preventDefault();this.handleEscape()}else if(s=="Enter"){t.preventDefault();this.handleEnter()}else if(s==" "&&!this.open){t.preventDefault();this.openMenu()}else if(this.open&&s=="Tab"){this.closeMenu()}}handlerNavigate(t){if(b.hasVisibleItems(this.items)){this.move(t=="ArrowUp"?-1:1)}this.openMenu()}handleEscape(){if(this.filter){this.resetFilter()}else{this.closeMenu()}}handleEnter(){const t=b.findFirstMarked(this.items);if(t===null||t===void 0?void 0:t.value){t.selected=!t.selected}if(!this.multiple){this.closeMenu();this.resetFilter()}}move(t){const{current:s,next:e}=b.next(this.items,t);s&&(s.marked=false);e.marked=true;f.centerInView(this.dropdownElement,e,"smooth")}addItem(){this.addedItems=this.addedItems.concat(o("smoothly-item",{value:this.filter,selected:true},this.filter))}resetFilter(){this.searchElement&&(this.searchElement.value="");this.filter=""}setFilter(t){if(t){this.filter=t;this.openMenu()}else{this.resetFilter()}}openMenu({focus:t}={}){this.open=true;t&&queueMicrotask((()=>{var t;return(t=this.searchElement)===null||t===void 0?void 0:t.focus()}))}closeMenu(){this.open=false;this.resetFilter()}toggleMenu(){if(!this.readonly&&!this.disabled){this.open?this.closeMenu():this.openMenu({focus:true})}}onClick(t){const e=t.composedPath().includes(this.iconsElement)&&!t.composedPath().includes(this.toggleElement);const o=t.composedPath().includes(this.searchElement);const i=t.composedPath().find((t=>t instanceof s&&t.tagName==="SMOOTHLY-ITEM"));if(!e&&!o&&!(i&&this.multiple)){this.toggleMenu()}}render(){return o(i,{key:"25f2bd12bdd838b7405297411a103aeee38d3c5d",class:{"has-value":this.selected.length!==0,open:this.open,"has-filter":this.filter!=="","has-filter-persistent":this.open&&this.isSearchPersistent},onClick:t=>this.onClick(t)},o("div",{key:"95302cdb09bcd5c218e5f05baed904f24dba193a",class:"select-display"},this.display.length>0?o("div",{class:"value",innerHTML:this.display.join(this.displaySeparator)}):this.placeholder),o("div",{key:"fee48291df4fe018b7bd2933cdfc3ddfb9fc469c",class:"icons",ref:t=>this.iconsElement=t},o("smoothly-icon",{key:"8686946d896e5812bb2137c7d564cee0f55a879d",class:"smoothly-invalid",name:"alert-circle",size:"small",tooltip:this.errorMessage}),o("slot",{key:"2fa1e318cf0388d3b9bc937962899c1e3308ba18",name:"end"}),this.looks=="border"&&!this.readonly&&o("smoothly-icon",{key:"0caad9d99e1bc011fbb60b8682556b95149173c3",ref:t=>this.toggleElement=t,size:"tiny",name:this.open?"caret-down-outline":"caret-forward-outline"})),o("slot",{key:"8c3c7a67b3b0d71302bb92bd093b0a16b0382e91",name:"label"}),o("div",{key:"3e7875eeac42fd417c7b47a69830ebb28f34978e",class:"dropdown",ref:t=>this.dropdownElement=t},o("div",{key:"c7053135260263324b3f6a3d933694746df5231d",class:"search"},o("smoothly-icon",{key:"cc144d8b70e0fdb87749c033a03a279840b3d0ba",name:"search-outline",size:"small"}),o("input",{key:"ec12d0f1eeb5786cea018e42289e6b98dc269012",class:"search-input",placeholder:this.searchPlaceholder,ref:t=>this.searchElement=t,disabled:this.searchDisabled,onKeyDown:t=>this.onKeyDown(t),onInput:t=>{var s,e;return t.stopPropagation(),this.setFilter((e=(s=this.searchElement)===null||s===void 0?void 0:s.value)!==null&&e!==void 0?e:"")},onPaste:t=>{var s,e;return t.stopPropagation(),this.setFilter((e=(s=this.searchElement)===null||s===void 0?void 0:s.value)!==null&&e!==void 0?e:"")}}),o("smoothly-icon",{key:"1883da80f3a3f34f3fb83ab2c856e8e9edf4a43a",name:"backspace-outline",size:"small",onClick:()=>{var t;this.resetFilter();(t=this.searchElement)===null||t===void 0?void 0:t.focus()}}),this.mutable&&o("smoothly-icon",{key:"612c07080f7b81e0e3998ce3176e9b44c0c34fa3",name:"add",size:"small",onClick:()=>this.addItem()})),o("div",{key:"27c8a711d5f14efcf0a0e0a74e7276f3b5e19230",class:"menu",hidden:!this.open},o("slot",{key:"ac93c1d16f9ee11c1ed486b1f9d4ed190e665e83"}),this.addedItems)))}get element(){return this}static get watchers(){return{name:[{nameChange:0}],selected:[{onSelectedChange:0}],required:[{onRequiredChange:0}],filter:[{onFilterChange:0}],disabled:[{watchingReadonly:0}],readonly:[{watchingReadonly:0}],open:[{onClosed:0}]}}static get style(){return g()}},[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"],isSearchPersistent:[4,"is-search-persistent"],searchPlaceholder:[1,"search-placeholder"],mutable:[4],open:[32],selected:[32],filter:[32],addedItems:[32],display:[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"]],{name:[{nameChange:0}],selected:[{onSelectedChange:0}],required:[{onRequiredChange:0}],filter:[{onFilterChange:0}],disabled:[{watchingReadonly:0}],readonly:[{watchingReadonly:0}],open:[{onClosed:0}]}]);function w(){if(typeof customElements==="undefined"){return}const t=["smoothly-input-select","smoothly-icon","smoothly-item"];t.forEach((t=>{switch(t){case"smoothly-input-select":if(!customElements.get(l(t))){customElements.define(l(t),v)}break;case"smoothly-icon":if(!customElements.get(l(t))){u()}break;case"smoothly-item":if(!customElements.get(l(t))){m()}break}}))}w();export{v as S,w as d};
|
|
2
|
-
//# sourceMappingURL=p-Bd-a9CG1.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Item","Element","type","isly.object","value","isly.any","deselectable","isly.boolean","selected","optional","filter","isly.function","is","extend","layout","firstItemHeight","items","_a","find","item","clientHeight","applyMenuHeight","element","itemHeight","menuHeight","height","endsWith","_b","match","style","setProperty","applyElementHeight","menu","next","direction","selectable","hidden","disabled","currentIndex","findIndex","marked","index","length","current","hasVisibleItems","some","getAttribute","markOnly","map","i","findFirstSelected","findFirstMarked","scroll","centerInView","container","behavior","scrollTo","top","offsetTop","offsetHeight","styleCss","SmoothlyInputSelect","__stencil_proxyCustomElement","HTMLElement","constructor","registerHost","this","isDifferentFromInitial","initialValue","initialValueHandled","observer","Editable","Observer","create","displaySeparator","invalid","name","showLabel","showSelected","readonly","inCalendar","multiple","clearable","defined","required","searchDisabled","isSearchPersistent","mutable","lastOpen","open","addedItems","display","componentWillLoad","smoothlyInputLooks","emit","looks","color","smoothlyInputLoad","parent","smoothlyFormDisable","publish","componentDidLoad","onSelectedChange","componentDidRender","justOpened","ordered","scrollToSelected","selectedItem","dropdownElement","disconnectedCallback","isConnected","unregister","nameChange","_","oldName","Input","formRename","register","formAdd","formRemove","getValue","undefined","getItems","listen","listener","subscribe","reset","forEach","displaySelected","closeMenu","clear","edit","editable","setInitialValue","areValuesEqual","smoothlyInput","onRequiredChange","onFilterChange","toLowerCase","smoothlyFilterChange","Promise","all","watchingReadonly","smoothlyInputLoadHandler","event","fromSelf","target","fromEndSlot","composedPath","e","iconsElement","stopPropagation","push","registerSubAction","onWindowClick","includes","onItemDomChange","onItemSelect","detail","userInitiated","smoothlyUserInput","onClosed","before","markedItem","smoothlySelectOpen","every","option","clone","cloneNode","querySelectorAll","icon","verticalAlign","innerHTML","onKeyDown","key","preventDefault","handlerNavigate","handleEscape","handleEnter","openMenu","move","resetFilter","addItem","concat","h","searchElement","setFilter","focus","queueMicrotask","toggleMenu","onClick","wasIconsClicked","toggleElement","wasSearchClicked","wasItemClicked","tagName","render","Host","class","join","ref","size","tooltip","errorMessage","el","placeholder","searchPlaceholder","onInput","onPaste"],"sources":["src/components/item/Item.ts","src/components/input/select/layout.ts","src/components/input/select/menu.ts","src/components/input/select/scroll.ts","src/components/input/select/style.css?tag=smoothly-input-select&encapsulation=scoped","src/components/input/select/index.tsx"],"sourcesContent":["import { isly } from \"isly\"\n\nexport interface Item extends Item.Element {}\n\nexport namespace Item {\n\texport interface Element {\n\t\tvalue: any\n\t\tselected?: boolean\n\t\tdeselectable: boolean\n\t\tfilter: (filter: string) => Promise<void>\n\t}\n\texport namespace Element {\n\t\texport const type = isly.object<Element>({\n\t\t\tvalue: isly.any(),\n\t\t\tdeselectable: isly.boolean(),\n\t\t\tselected: isly.boolean().optional(),\n\t\t\tfilter: isly.function(),\n\t\t})\n\t\texport const is = type.is\n\t}\n\texport const type = Element.type.extend<Item>({})\n\texport const is = type.is\n}\n","export namespace layout {\n\texport function firstItemHeight(items: HTMLSmoothlyItemElement[]): number | undefined {\n\t\treturn items.find(item => item.clientHeight > 0)?.clientHeight\n\t}\n\texport function applyMenuHeight(element: HTMLElement, itemHeight: number, menuHeight: MenuHeight): void {\n\t\tconst height = menuHeight.endsWith(\"items\")\n\t\t\t? `${itemHeight * +(menuHeight.match(/^(\\d+(\\.\\d+)?|\\.\\d+)/g)?.[0] ?? \"10\")}px`\n\t\t\t: menuHeight\n\t\telement.style.setProperty(\"--menu-height\", height)\n\t}\n\texport function applyElementHeight(element: HTMLElement) {\n\t\telement?.style.setProperty(\"--element-height\", `${element.clientHeight}px`)\n\t}\n\texport type MenuHeight = `${number}${\"items\" | \"rem\" | \"px\" | \"vh\"}`\n}\n","export namespace menu {\n\texport function next(\n\t\titems: HTMLSmoothlyItemElement[],\n\t\tdirection: -1 | 1\n\t): { current?: HTMLSmoothlyItemElement; next: HTMLSmoothlyItemElement } {\n\t\tconst selectable = items.filter(item => !item.hidden && !item.disabled)\n\t\tconst currentIndex = selectable.findIndex(item => item.marked)\n\t\tlet index: number\n\t\tif (currentIndex == -1) {\n\t\t\tindex = 0\n\t\t} else {\n\t\t\tindex = (currentIndex + direction + selectable.length) % selectable.length\n\t\t}\n\t\treturn { current: selectable[currentIndex], next: selectable[index] }\n\t}\n\texport function hasVisibleItems(items: HTMLSmoothlyItemElement[]): boolean {\n\t\treturn items.some(item => !item.getAttribute(\"hidden\"))\n\t}\n\texport function markOnly(items: HTMLSmoothlyItemElement[], item: HTMLSmoothlyItemElement): void {\n\t\titems.map(i => (i.marked = i === item))\n\t}\n\texport function findFirstSelected(items: HTMLSmoothlyItemElement[]): HTMLSmoothlyItemElement | undefined {\n\t\treturn items.find(item => item.selected)\n\t}\n\texport function findFirstMarked(items: HTMLSmoothlyItemElement[]): HTMLSmoothlyItemElement | undefined {\n\t\treturn items.find(item => item.marked)\n\t}\n}\n","export namespace scroll {\n\texport function centerInView(container?: HTMLElement, item?: HTMLElement, behavior: ScrollBehavior = \"smooth\") {\n\t\tif (item && container) {\n\t\t\tcontainer.scrollTo({\n\t\t\t\ttop: item.offsetTop + item.offsetHeight / 2 - (container.clientHeight ?? 0) / 2,\n\t\t\t\tbehavior,\n\t\t\t})\n\t\t}\n\t}\n}\n","@import \"../shared.css\";\n\n:host {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tflex-direction: row;\n\tposition: relative;\n\tbackground-color: rgb(var(--smoothly-input-background));\n\tcolor: rgb(var(--smoothly-input-foreground));\n\tfill: rgb(var(--smoothly-input-foreground));\n\tstroke: rgb(var(--smoothly-input-foreground));\n\tpadding-left: var(--input-padding-side);\n}\n\n:host.open {\n\tborder-radius: var(--smoothly-input-border-radius) var(--smoothly-input-border-radius) 0 0;\n}\n\n:host>.select-display {\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\tpadding: var(--input-value-padding-top) .8rem var(--input-value-padding-bottom) 0;\n\twidth: 100%;\n\twhite-space: nowrap;\n\tgap: 1rem;\n\n}\n\n:host>.select-display>.value {\n\tmin-width: 0;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n}\n\n:host:not([readonly]):not([disabled])>.select-display {\n\tcursor: pointer;\n}\n\n:host:not(:has([slot=label]))>.select-display,\n:host:not([show-label])>.select-display {\n\tpadding: .6rem .8rem .6rem 0;\n\talign-items: center;\n}\n\n:host>.select-display smoothly-icon {\n\tcolor: rgb(var(--smoothly-input-foreground));\n\tfill: rgb(var(--smoothly-input-foreground));\n\tstroke: rgb(var(--smoothly-input-foreground));\n}\n\n:host>div.icons {\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n}\n\n:host:hover>div.icons::slotted(smoothly-icon) {\n\tfilter: opacity(100%);\n}\n\n:host>div.icons>smoothly-icon[name=caret-down-outline],\n:host>div.icons>smoothly-icon[name=caret-forward-outline] {\n\topacity: .7;\n\theight: 100%;\n\tpadding-inline: var(--input-padding-side);\n}\n:host:not([readonly]):not([disabled])>div.icons>smoothly-icon[name=caret-down-outline],\n:host:not([readonly]):not([disabled])>div.icons>smoothly-icon[name=caret-forward-outline] {\n\tcursor: pointer;\n}\n\n:host[invalid]>div>smoothly-icon.smoothly-invalid {\n\tdisplay: block;\n\tpadding: 0.5rem;\n}\n\n:host>div>smoothly-icon.smoothly-invalid {\n\tdisplay: none\n}\n\n\n:host.has-value:has([slot=label]:not(:empty))>.select-display,\n:host:not(.has-value)[placeholder]>.select-display {\n\toverflow: hidden;\n\twidth: 100%;\n}\n\n\n:host>.dropdown {\n\tdisplay: flex;\n\tflex-direction: column;\n\tposition: absolute;\n\ttop: var(--element-height);\n\tz-index: 20;\n\tmax-height: var(--menu-height, unset);\n\toverflow-x: hidden;\n\toverflow-y: auto;\n\tbackground-color: rgb(var(--smoothly-input-background));\n\tinset-inline: 0;\n\tborder-radius: 0 0 var(--smoothly-input-border-radius) var(--smoothly-input-border-radius);\n\tborder: rgb(var(--smoothly-input-border, var(--smoothly-color-contrast))) solid 1px;\n\tborder-top: rgba(var(--smoothly-input-border, var(--smoothly-color-contrast)), .4) solid 1px;\n}\n:host:not(.open)>.dropdown {\n\tborder: 0;\n}\n:host[looks=\"grid\"]>.dropdown,\n:host[looks=border]>.dropdown,\n:host[looks=\"transparent\"]>.dropdown {\n\tinset-inline: -1px;\n}\n\n:host>.dropdown>.search {\n\tdisplay: flex;\n\tposition: sticky;\n\talign-items: center;\n\ttop: 0;\n\tgap: 1rem;\n\tpadding: .7rem .7rem .7rem .25rem;\n\tbackground-color: rgb(var(--smoothly-input-background));\n\tcolor: rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));\n\tfill: rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));\n\tstroke: rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));\n}\n:host.has-filter-persistent>.dropdown>.search{\n\tz-index: 1;\n}\n:host:not(.has-filter):not(.has-filter-persistent)>.dropdown>.search {\n\t/* hide search */\n\t/* search cant be display: none, since it is the focus element */\n\theight: 0;\n\tpadding: 0;\n\toverflow: hidden;\n\tpointer-events: none;\n}\n:host>.dropdown>.search::before {\n\t/* search have opacity without showing what is underneath */\n\tcontent: \"\";\n\tposition: absolute;\n\tinset: 0;\n\tbackground-color: rgba(var(--smoothly-primary-tint), 0.5);\n\tz-index: -1;\n}\n:host>.dropdown>.search>.search-input {\n\twidth: 100%;\n\tbackground-color: transparent;\n\tborder: none;\n\toutline: none;\n}\n:host>.dropdown>.search>smoothly-icon[name=\"search-outline\"],\n:host>.dropdown>.search>smoothly-icon[name=\"backspace-outline\"] {\n\tcolor: rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));\n\tfill: rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));\n\tstroke: rgb(var(--smoothly-input-foreground, var(--smoothly-color-contrast)));\n}\n\n\n/* --- multiple options --- */\n:host([multiple])::slotted(.dropdown>.menu>smoothly-item) {\n\tposition: relative;\n}\n:host([multiple])::slotted(.dropdown>.menu>smoothly-item::before) {\n\tcontent: \"\";\n\tdisplay: inline-block;\n\twidth: 1rem;\n\theight: 1rem;\n\tmargin-right: 0.5rem;\n\tborder: 1px solid rgb(var(--smoothly-input-foreground));\n\tborder-radius: 0.15rem;\n\tvertical-align: middle;\n}\n:host([multiple])::slotted(.dropdown>.menu>smoothly-item[selected]::before) {\n\tborder-color: rgb(var(--smoothly-item-selected-foreground));\n}\n:host([multiple])::slotted(.dropdown>.menu>smoothly-item:hover::before) {\n\tborder: 1px solid rgb(var(--smoothly-item-hover-foreground));\n}\n:host([multiple])::slotted(.dropdown>.menu>smoothly-item[selected]::after) {\n\tcontent: \"✔\";\n\tposition: absolute;\n\tleft: 0.65rem; \n\tcolor: rgb(var(--smoothly-item-selected-foreground));\n}\n:host([multiple])::slotted(.dropdown>.menu>smoothly-item:hover::after) {\n\tcolor: rgb(var(--smoothly-item-hover-foreground));\n}\n:host>.dropdown {\n\tmin-width: fit-content;\n}\n:host>.dropdown>.menu[hidden] {\n\tdisplay: none;\n}\n\n\n","import {\n\tComponent,\n\tComponentWillLoad,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tMethod,\n\tProp,\n\tState,\n\tVNode,\n\tWatch,\n} from \"@stencil/core\"\nimport { Color, Data } from \"../../../model\"\nimport { Item } from \"../../item/Item\"\nimport { Clearable } from \"../Clearable\"\nimport { Editable } from \"../Editable\"\nimport { Input } from \"../Input\"\nimport { Looks } from \"../Looks\"\nimport { layout } from \"./layout\"\nimport { menu } from \"./menu\"\nimport { scroll } from \"./scroll\"\n\n@Component({\n\ttag: \"smoothly-input-select\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyInputSelect implements Input, Editable, Clearable, ComponentWillLoad {\n\tparent: Editable | undefined\n\tisDifferentFromInitial = false\n\tprivate initialValue: HTMLSmoothlyItemElement[] = []\n\tprivate initialValueHandled = false\n\tprivate observer = Editable.Observer.create(this)\n\tprivate iconsElement?: HTMLElement\n\tprivate toggleElement?: HTMLElement\n\tprivate dropdownElement?: HTMLElement\n\tprivate searchElement?: HTMLInputElement\n\tprivate items: HTMLSmoothlyItemElement[] = []\n\tprivate itemHeight: number | undefined\n\tprivate readonly displaySeparator = '<span style=\"display:inline-block;width:0.8rem\"></span>'\n\t@Element() element: HTMLSmoothlyInputSelectElement\n\t@Prop({ reflect: true }) invalid?: boolean = false\n\t@Prop({ reflect: true }) errorMessage?: string\n\t@Prop({ reflect: true }) name = \"selected\"\n\t@Prop({ reflect: true, mutable: true }) color?: Color\n\t@Prop({ reflect: true, mutable: true }) looks?: Looks\n\t@Prop({ reflect: true }) showLabel = true\n\t@Prop({ reflect: true, mutable: true }) showSelected?: boolean = true\n\t@Prop({ reflect: true, mutable: true }) readonly = false\n\t@Prop({ reflect: true }) disabled = false\n\t@Prop({ reflect: true }) inCalendar = false\n\t@Prop({ reflect: true }) ordered?: boolean\n\t@Prop({ reflect: true }) multiple = false\n\t@Prop() clearable = true\n\t@Prop({ mutable: true }) defined = false\n\t@Prop({ reflect: true }) placeholder?: string | any\n\t@Prop() menuHeight?: layout.MenuHeight\n\t@Prop() required = false\n\t@Prop() searchDisabled = false\n\t@Prop() isSearchPersistent = false\n\t@Prop() searchPlaceholder?: string\n\t@Prop() mutable = false\n\tprivate lastOpen = false\n\t@State() open = false\n\t@State() selected: HTMLSmoothlyItemElement[] = []\n\t@State() filter = \"\"\n\t@State() addedItems: HTMLSmoothlyItemElement[] = []\n\t@State() private display: string[] = []\n\t@Event() smoothlyInput: EventEmitter<Data>\n\t@Event() smoothlyUserInput: EventEmitter<Input.UserInput>\n\t@Event() smoothlyInputLooks: EventEmitter<(looks?: Looks, color?: Color) => void>\n\t@Event() smoothlyInputLoad: EventEmitter<(parent: Editable) => void>\n\t@Event() smoothlyFormDisable: EventEmitter<(disabled: boolean) => void>\n\t@Event() smoothlyItemSelect: EventEmitter<HTMLSmoothlyItemElement>\n\t@Event() smoothlySelectOpen: EventEmitter<boolean>\n\t@Event() smoothlyFilterChange: EventEmitter<string>\n\n\tcomponentWillLoad(): void | Promise<void> {\n\t\tthis.smoothlyInputLooks.emit(\n\t\t\t(looks, color) => ((this.looks = this.looks ?? looks), !this.color && (this.color = color))\n\t\t)\n\t\tthis.smoothlyInputLoad.emit(parent => (this.parent = parent))\n\t\t!this.readonly && this.smoothlyFormDisable.emit(readonly => (this.readonly = readonly))\n\t\tthis.observer.publish()\n\t}\n\tcomponentDidLoad(): void | Promise<void> {\n\t\tthis.selected && !this.initialValueHandled && (this.initialValue = [...this.selected])\n\t\tthis.initialValueHandled = true\n\t\tthis.onSelectedChange()\n\t}\n\tcomponentDidRender(): void | Promise<void> {\n\t\tthis.itemHeight ??= layout.firstItemHeight(this.items)\n\t\tif (this.menuHeight && this.itemHeight) {\n\t\t\tlayout.applyMenuHeight(this.element, this.itemHeight, this.menuHeight)\n\t\t}\n\t\tlayout.applyElementHeight(this.element)\n\n\t\tconst justOpened = this.open && !this.lastOpen\n\t\tif (justOpened && this.ordered) {\n\t\t\tthis.scrollToSelected()\n\t\t}\n\t}\n\tprivate scrollToSelected() {\n\t\tconst selectedItem = menu.findFirstSelected(this.items)\n\t\tif (selectedItem) {\n\t\t\tmenu.markOnly(this.items, selectedItem)\n\t\t\tscroll.centerInView(this.dropdownElement, selectedItem, \"instant\")\n\t\t}\n\t}\n\tasync disconnectedCallback() {\n\t\tif (!this.element.isConnected) {\n\t\t\tawait this.unregister()\n\t\t}\n\t}\n\t@Watch(\"name\")\n\tnameChange(_: string | undefined, oldName: string | undefined) {\n\t\tInput.formRename(this, oldName)\n\t}\n\t@Method()\n\tasync register() {\n\t\tInput.formAdd(this)\n\t}\n\t@Method()\n\tasync unregister() {\n\t\tInput.formRemove(this)\n\t}\n\t@Method()\n\tasync getValue(): Promise<any | any[] | undefined> {\n\t\treturn !this.multiple && this.selected[0]\n\t\t\t? this.selected[0].value\n\t\t\t: this.multiple && this.selected.length > 0\n\t\t\t\t? this.selected.map(item => item.value)\n\t\t\t\t: undefined\n\t}\n\t@Method()\n\tasync getItems(): Promise<HTMLSmoothlyItemElement[]> {\n\t\treturn this.items\n\t}\n\t@Method()\n\tasync listen(listener: Editable.Observer.Listener): Promise<void> {\n\t\tthis.observer.subscribe(listener)\n\t}\n\t@Method()\n\tasync reset(): Promise<void> {\n\t\tthis.selected.forEach(item => (item.selected = item.hidden = false))\n\t\tthis.initialValue.forEach(item => (item.selected = true))\n\t\tthis.selected = [...this.initialValue]\n\t\tthis.displaySelected()\n\t\tthis.isDifferentFromInitial = false\n\t\tthis.closeMenu()\n\t}\n\t@Method()\n\tasync clear(): Promise<void> {\n\t\tif (this.clearable) {\n\t\t\tthis.selected.forEach(item => (item.selected = item.hidden = false))\n\t\t\tthis.selected = []\n\t\t\tthis.displaySelected()\n\t\t}\n\t}\n\t@Method()\n\tasync edit(editable: boolean): Promise<void> {\n\t\tthis.readonly = !editable\n\t}\n\t@Method()\n\tasync setInitialValue(): Promise<void> {\n\t\tthis.isDifferentFromInitial = false\n\t\tthis.initialValue = [...this.selected]\n\t}\n\t@Watch(\"selected\")\n\tasync onSelectedChange() {\n\t\tthis.initialValueHandled && (this.isDifferentFromInitial = !this.areValuesEqual(this.selected, this.initialValue))\n\t\tthis.defined = this.selected.length > 0\n\t\tthis.smoothlyInput.emit({ [this.name]: await this.getValue() })\n\t\tthis.observer.publish()\n\t}\n\t@Watch(\"required\")\n\tonRequiredChange(): void {\n\t\tthis.items.forEach(item => (item.deselectable = !this.required))\n\t}\n\t@Watch(\"filter\")\n\tasync onFilterChange(value: string): Promise<void> {\n\t\tvalue = value.toLowerCase()\n\t\tthis.smoothlyFilterChange.emit(this.filter)\n\t\tawait Promise.all(this.items.map(item => item.filter(value)))\n\t}\n\t@Watch(\"disabled\")\n\t@Watch(\"readonly\")\n\twatchingReadonly(): void {\n\t\tthis.observer.publish()\n\t}\n\t@Listen(\"smoothlyInputLoad\")\n\tasync smoothlyInputLoadHandler(event: CustomEvent<(parent: SmoothlyInputSelect) => void>): Promise<void> {\n\t\tconst fromSelf = event.target && \"name\" in event.target && event.target.name !== this.name\n\t\tconst fromEndSlot = event.composedPath().some(e => e == this.iconsElement)\n\t\tif (fromSelf || fromEndSlot) {\n\t\t\tevent.stopPropagation()\n\t\t} else if (Item.Element.is(event.target)) {\n\t\t\tevent.stopPropagation()\n\t\t\tevent.target.deselectable = !this.required\n\t\t\tthis.items.push(event.target as HTMLSmoothlyItemElement)\n\t\t}\n\t\tInput.registerSubAction(this, event)\n\t\tthis.displaySelected()\n\t}\n\t@Listen(\"click\", { target: \"window\" })\n\tonWindowClick(event: MouseEvent): void {\n\t\tif (this.open && !event.composedPath().includes(this.element)) {\n\t\t\tthis.closeMenu()\n\t\t}\n\t}\n\t@Listen(\"smoothlyItemDOMChange\")\n\tonItemDomChange(e: CustomEvent) {\n\t\te.stopPropagation()\n\t\tconst item = e.target as HTMLSmoothlyItemElement\n\t\tif (item.selected) {\n\t\t\tthis.displaySelected()\n\t\t}\n\t}\n\t@Listen(\"smoothlyItemSelect\")\n\tasync onItemSelect(event: CustomEvent<{ userInitiated: boolean; item: HTMLSmoothlyItemElement }>): Promise<void> {\n\t\tevent.stopPropagation()\n\t\tconst item = event.detail.item\n\t\tif (this.multiple) {\n\t\t\tthis.selected = item.selected ? [...this.selected, item] : this.selected.filter(item => item.selected)\n\t\t} else if (item.selected || !this.items.some(e => e.selected)) {\n\t\t\tthis.selected[0] && (this.selected[0].hidden = this.selected[0].selected = false)\n\t\t\tthis.selected = !item.selected ? this.selected.filter(item => item.selected) : [item]\n\t\t\t!this.showSelected && item.selected && (item.hidden = true)\n\t\t}\n\t\tthis.displaySelected()\n\t\tif (event.detail.userInitiated) {\n\t\t\tthis.smoothlyUserInput.emit({ name: this.name, value: await this.getValue() })\n\t\t}\n\t}\n\t@Watch(\"open\")\n\tonClosed(open: boolean, before: boolean): void {\n\t\tthis.lastOpen = before\n\t\tif (!open) {\n\t\t\tconst markedItem = menu.findFirstMarked(this.items)\n\t\t\tif (markedItem) {\n\t\t\t\tmarkedItem.marked = false\n\t\t\t}\n\t\t}\n\t\tthis.smoothlySelectOpen.emit(open)\n\t}\n\tareValuesEqual(selected: HTMLSmoothlyItemElement[], initialValue: HTMLSmoothlyItemElement[]): boolean {\n\t\treturn selected.length === initialValue.length && initialValue.every(value => selected.includes(value))\n\t}\n\tdisplaySelected(): void {\n\t\tthis.display = this.selected.map(option => {\n\t\t\tconst clone = option.cloneNode(true) as HTMLElement\n\t\t\tclone.querySelectorAll(\"smoothly-icon\").forEach(icon => {\n\t\t\t\tconst style = (icon as HTMLElement).style\n\t\t\t\tstyle.display = \"inline-flex\"\n\t\t\t\tstyle.verticalAlign = \"middle\"\n\t\t\t})\n\t\t\treturn clone.innerHTML\n\t\t})\n\t}\n\tonKeyDown(event: KeyboardEvent) {\n\t\tevent.stopPropagation()\n\t\tconst key = event.key\n\t\tif (key == \"ArrowUp\" || key == \"ArrowDown\") {\n\t\t\tevent.preventDefault()\n\t\t\tthis.handlerNavigate(key)\n\t\t} else if (key == \"Escape\") {\n\t\t\tevent.preventDefault()\n\t\t\tthis.handleEscape()\n\t\t} else if (key == \"Enter\") {\n\t\t\tevent.preventDefault()\n\t\t\tthis.handleEnter()\n\t\t} else if (key == \" \" && !this.open) {\n\t\t\tevent.preventDefault()\n\t\t\tthis.openMenu()\n\t\t} else if (this.open && key == \"Tab\") {\n\t\t\tthis.closeMenu()\n\t\t}\n\t}\n\tprivate handlerNavigate(key: \"ArrowUp\" | \"ArrowDown\") {\n\t\tif (menu.hasVisibleItems(this.items)) {\n\t\t\tthis.move(key == \"ArrowUp\" ? -1 : 1)\n\t\t}\n\t\tthis.openMenu()\n\t}\n\tprivate handleEscape() {\n\t\tif (this.filter) {\n\t\t\tthis.resetFilter()\n\t\t} else {\n\t\t\tthis.closeMenu()\n\t\t}\n\t}\n\tprivate handleEnter() {\n\t\tconst item = menu.findFirstMarked(this.items)\n\t\tif (item?.value) {\n\t\t\titem.selected = !item.selected\n\t\t}\n\t\tif (!this.multiple) {\n\t\t\tthis.closeMenu()\n\t\t\tthis.resetFilter()\n\t\t}\n\t}\n\tprivate move(direction: -1 | 1): void {\n\t\tconst { current, next } = menu.next(this.items, direction)\n\t\tcurrent && (current.marked = false)\n\t\tnext.marked = true\n\t\tscroll.centerInView(this.dropdownElement, next, \"smooth\")\n\t}\n\tprivate addItem() {\n\t\tthis.addedItems = this.addedItems.concat(\n\t\t\t<smoothly-item value={this.filter} selected>\n\t\t\t\t{this.filter}\n\t\t\t</smoothly-item>\n\t\t)\n\t}\n\tprivate resetFilter() {\n\t\tthis.searchElement && (this.searchElement.value = \"\")\n\t\tthis.filter = \"\"\n\t}\n\tprivate setFilter(filter: string) {\n\t\tif (filter) {\n\t\t\tthis.filter = filter\n\t\t\tthis.openMenu()\n\t\t} else {\n\t\t\tthis.resetFilter()\n\t\t}\n\t}\n\tprivate openMenu({ focus }: { focus?: boolean } = {}) {\n\t\tthis.open = true\n\t\tfocus && queueMicrotask(() => this.searchElement?.focus())\n\t}\n\tprivate closeMenu() {\n\t\tthis.open = false\n\t\tthis.resetFilter()\n\t}\n\tprivate toggleMenu() {\n\t\tif (!this.readonly && !this.disabled) {\n\t\t\tthis.open ? this.closeMenu() : this.openMenu({ focus: true })\n\t\t}\n\t}\n\tprivate onClick(e: MouseEvent) {\n\t\tconst wasIconsClicked =\n\t\t\te.composedPath().includes(this.iconsElement!) && !e.composedPath().includes(this.toggleElement!)\n\t\tconst wasSearchClicked = e.composedPath().includes(this.searchElement!)\n\t\tconst wasItemClicked = e\n\t\t\t.composedPath()\n\t\t\t.find(element => element instanceof HTMLElement && element.tagName === \"SMOOTHLY-ITEM\")\n\t\tif (!wasIconsClicked && !wasSearchClicked && !(wasItemClicked && this.multiple)) {\n\t\t\tthis.toggleMenu()\n\t\t}\n\t}\n\trender(): VNode | VNode[] {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={{\n\t\t\t\t\t\"has-value\": this.selected.length !== 0,\n\t\t\t\t\topen: this.open,\n\t\t\t\t\t\"has-filter\": this.filter !== \"\",\n\t\t\t\t\t\"has-filter-persistent\": this.open && this.isSearchPersistent,\n\t\t\t\t}}\n\t\t\t\tonClick={(e: MouseEvent) => this.onClick(e)}>\n\t\t\t\t<div class=\"select-display\">\n\t\t\t\t\t{this.display.length > 0 ? (\n\t\t\t\t\t\t<div class=\"value\" innerHTML={this.display.join(this.displaySeparator)}></div>\n\t\t\t\t\t) : (\n\t\t\t\t\t\tthis.placeholder\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t\t<div class=\"icons\" ref={element => (this.iconsElement = element)}>\n\t\t\t\t\t<smoothly-icon class=\"smoothly-invalid\" name=\"alert-circle\" size=\"small\" tooltip={this.errorMessage} />\n\t\t\t\t\t<slot name=\"end\" />\n\t\t\t\t\t{this.looks == \"border\" && !this.readonly && (\n\t\t\t\t\t\t<smoothly-icon\n\t\t\t\t\t\t\tref={element => (this.toggleElement = element)}\n\t\t\t\t\t\t\tsize=\"tiny\"\n\t\t\t\t\t\t\tname={this.open ? \"caret-down-outline\" : \"caret-forward-outline\"}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t\t<slot name=\"label\" />\n\t\t\t\t<div class=\"dropdown\" ref={(el: HTMLDivElement) => (this.dropdownElement = el)}>\n\t\t\t\t\t<div class=\"search\">\n\t\t\t\t\t\t<smoothly-icon name=\"search-outline\" size=\"small\" />\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass=\"search-input\"\n\t\t\t\t\t\t\tplaceholder={this.searchPlaceholder}\n\t\t\t\t\t\t\tref={el => (this.searchElement = el)}\n\t\t\t\t\t\t\tdisabled={this.searchDisabled}\n\t\t\t\t\t\t\tonKeyDown={e => this.onKeyDown(e)}\n\t\t\t\t\t\t\tonInput={e => (e.stopPropagation(), this.setFilter(this.searchElement?.value ?? \"\"))}\n\t\t\t\t\t\t\tonPaste={e => (e.stopPropagation(), this.setFilter(this.searchElement?.value ?? \"\"))}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<smoothly-icon\n\t\t\t\t\t\t\tname=\"backspace-outline\"\n\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\t\tthis.resetFilter()\n\t\t\t\t\t\t\t\tthis.searchElement?.focus()\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t{this.mutable && <smoothly-icon name=\"add\" size=\"small\" onClick={() => this.addItem()} />}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"menu\" hidden={!this.open}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t{this.addedItems}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"6SAIM,IAAWA,GAAjB,SAAiBA,GAOhB,IAAiBC,GAAjB,SAAiBA,GACHA,EAAAC,KAAOC,EAAqB,CACxCC,MAAOC,IACPC,aAAcC,IACdC,SAAUD,IAAeE,WACzBC,OAAQC,MAEIV,EAAAW,GAAKX,EAAAC,KAAKU,EACvB,EARD,CAAiBX,EAAAD,EAAAC,UAAAD,EAAAC,QAAO,KASXD,EAAAE,KAAOD,EAAQC,KAAKW,OAAa,IACjCb,EAAAY,GAAKZ,EAAAE,KAAKU,EACvB,EAlBD,CAAiBZ,MAAI,KCJf,IAAWc,GAAjB,SAAiBA,GAChB,SAAgBC,EAAgBC,G,MAC/B,OAAOC,EAAAD,EAAME,MAAKC,GAAQA,EAAKC,aAAe,OAAE,MAAAH,SAAA,SAAAA,EAAEG,Y,CADnCN,EAAAC,gBAAeA,EAG/B,SAAgBM,EAAgBC,EAAsBC,EAAoBC,G,QACzE,MAAMC,EAASD,EAAWE,SAAS,SAChC,GAAGH,KAAeI,GAAAV,EAAAO,EAAWI,MAAM,4BAAwB,MAAAX,SAAA,SAAAA,EAAG,MAAE,MAAAU,SAAA,EAAAA,EAAI,UACpEH,EACHF,EAAQO,MAAMC,YAAY,gBAAiBL,E,CAJ5BX,EAAAO,gBAAeA,EAM/B,SAAgBU,EAAmBT,GAClCA,IAAO,MAAPA,SAAO,SAAPA,EAASO,MAAMC,YAAY,mBAAoB,GAAGR,EAAQ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