smoothly 1.0.0 → 1.0.1-alpha.1
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/{Data-50d47740.js → Submit-02056bd9.js} +26 -1
- package/dist/cjs/Submit-02056bd9.js.map +1 -0
- package/dist/cjs/index.cjs.js +9 -8
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{smoothly-app_80.cjs.entry.js → smoothly-app_81.cjs.entry.js} +168 -140
- package/dist/cjs/smoothly-app_81.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +3 -3
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +3 -3
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/button/index.js +1 -1
- package/dist/collection/components/button/index.js.map +1 -1
- package/dist/collection/components/form/index.js +86 -77
- package/dist/collection/components/form/index.js.map +1 -1
- package/dist/collection/components/input/demo/controlled-form/index.js +50 -0
- package/dist/collection/components/input/demo/controlled-form/index.js.map +1 -0
- package/dist/collection/components/input/demo/controlled-form/style.css +7 -0
- package/dist/collection/components/input/demo/index.js +2 -2
- package/dist/collection/components/input/demo/index.js.map +1 -1
- package/dist/collection/components/input/submit/index.js +3 -12
- package/dist/collection/components/input/submit/index.js.map +1 -1
- package/dist/collection/model/Submit.js +14 -0
- package/dist/collection/model/Submit.js.map +1 -0
- package/dist/collection/model/index.js +1 -0
- package/dist/collection/model/index.js.map +1 -1
- package/dist/collection/smoothly.js +1 -1
- package/dist/collection/smoothly.js.map +1 -1
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +168 -113
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/{Data-c8093b5a.js → Submit-959d713d.js} +26 -2
- package/dist/esm/Submit-959d713d.js.map +1 -0
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{smoothly-app_80.entry.js → smoothly-app_81.entry.js} +137 -110
- package/dist/esm/smoothly-app_81.entry.js.map +1 -0
- package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
- package/dist/esm/smoothly-trigger-source.entry.js +1 -1
- package/dist/esm/smoothly.js +1 -1
- package/dist/smoothly/index.esm.js +1 -1
- package/dist/smoothly/index.esm.js.map +1 -1
- package/dist/smoothly/p-051d2b23.js +2 -0
- package/dist/smoothly/p-051d2b23.js.map +1 -0
- package/dist/smoothly/p-34b080fb.entry.js +2 -0
- package/dist/smoothly/p-34b080fb.entry.js.map +1 -0
- package/dist/smoothly/{p-635c813e.entry.js → p-ed11e814.entry.js} +2 -2
- package/dist/smoothly/{p-7a69b43f.entry.js → p-f0720fed.entry.js} +2 -2
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/smoothly/smoothly.esm.js.map +1 -1
- package/dist/types/components/form/index.d.ts +9 -8
- package/dist/types/components/input/demo/controlled-form/index.d.ts +12 -0
- package/dist/types/components.d.ts +16 -5
- package/dist/types/model/Submit.d.ts +13 -0
- package/dist/types/model/index.d.ts +1 -0
- package/dist/types/smoothly.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/Data-50d47740.js.map +0 -1
- package/dist/cjs/smoothly-app_80.cjs.entry.js.map +0 -1
- package/dist/esm/Data-c8093b5a.js.map +0 -1
- package/dist/esm/smoothly-app_80.entry.js.map +0 -1
- package/dist/smoothly/p-2e986022.js +0 -2
- package/dist/smoothly/p-2e986022.js.map +0 -1
- package/dist/smoothly/p-303520d1.entry.js +0 -2
- package/dist/smoothly/p-303520d1.entry.js.map +0 -1
- /package/dist/smoothly/{p-635c813e.entry.js.map → p-ed11e814.entry.js.map} +0 -0
- /package/dist/smoothly/{p-7a69b43f.entry.js.map → p-f0720fed.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as s,h as i}from"./p-5e387578.js";import{T as t,M as r}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as s,h as i}from"./p-5e387578.js";import{T as t,M as r}from"./p-051d2b23.js";import"./p-bd478a53.js";const e=".sc-smoothly-trigger-sink-h{display:block}[hidden].sc-smoothly-trigger-sink-h{display:none}";const n=class{constructor(i){s(this,i);this.context=undefined;this.destination=undefined;this.filter=undefined}get filters(){if(!this.filtersValue)this.filtersValue=this.filter?this.filter.split(" "):[];return this.filtersValue}TriggerListener(s){if(t.is(s.detail)&&this.filters.some((i=>i==s.detail.name))){r.send(this.destination,s.detail,this.context||window);s.preventDefault();s.stopPropagation()}}render(){return i("slot",null)}};n.style=e;export{n as smoothly_trigger_sink};
|
|
2
|
+
//# sourceMappingURL=p-ed11e814.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as s,c as t,h as o,g as e}from"./p-5e387578.js";import{M as i,T as r}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as s,c as t,h as o,g as e}from"./p-5e387578.js";import{M as i,T as r}from"./p-051d2b23.js";import"./p-bd478a53.js";const n=".sc-smoothly-trigger-source-h{display:block}[hidden].sc-smoothly-trigger-source-h{display:none}";const h=class{constructor(o){s(this,o);this.trigger=t(this,"trigger",7);this.smoothlyMessage=t(this,"smoothlyMessage",7);this.listen=undefined}componentDidLoad(){i.listen(this.listen,((s,t)=>{if(r.is(t))this.trigger.emit(t);else this.smoothlyMessage.emit({destination:s,content:t})}),window)}render(){return o("slot",null)}get element(){return e(this)}};h.style=n;export{h as smoothly_trigger_source};
|
|
2
|
+
//# sourceMappingURL=p-f0720fed.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as o,b as e}from"./p-5e387578.js";export{s as setNonce}from"./p-5e387578.js";import"./p-ede93d69.js";const l=()=>{const e=import.meta.url;const l={};if(e!==""){l.resourcesUrl=new URL(".",e).href}return o(l)};l().then((o=>e(JSON.parse('[["p-12182a73",[[2,"smoothly-addresses",{"value":[16],"editable":[16]}]]],["p-f125610c",[[6,"smoothly-checkbox",{"size":[1],"checked":[1540],"intermediate":[1540],"unavailable":[516],"disabled":[516],"name":[1],"value":[8],"t":[32],"toggle":[64],"clear":[64]}]]],["p-823e02b0",[[6,"smoothly-accordion",{"value":[1025],"removeItem":[64]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemWillLoad","onAccordionItemDidLoad"]]]]],["p-21905b32",[[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}]]],["p-6aebb818",[[6,"smoothly-color",{"color":[513]}]]],["p-6e9aca2e",[[2,"smoothly-country",{"value":[1],"text":[1],"language":[32]}]]],["p-eef1c80b",[[2,"smoothly-display-date-time",{"datetime":[1]}]]],["p-cb493516",[[2,"smoothly-google-font",{"value":[1]}]]],["p-b3eac6af",[[0,"smoothly-reorder"]]],["p-635c813e",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["p-7a69b43f",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["p-303520d1",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}],[0,"smoothly-input-demo",{"duration":[32]}],[2,"smoothly-table-demo"],[0,"smoothly-display-demo"],[0,"smoothly-button-demo"],[4,"smoothly-app",{"label":[1],"color":[1],"home":[1],"menuOpen":[1540,"menu-open"],"selected":[32],"selectRoom":[64]},[[8,"popstate","locationChangeHandler"],[0,"smoothlyRoomSelected","roomSelectedHandler"],[0,"smoothlyRoomLoaded","roomLoadedHandler"],[8,"click","clickHandler"]]],[0,"smoothly-dialog-demo"],[6,"smoothly-app-room",{"label":[513],"icon":[513],"disabled":[516],"path":[1],"to":[1],"selected":[1540],"content":[16],"getContent":[64],"setSelected":[64]}],[6,"smoothly-theme-picker",{"element":[1]}],[2,"smoothly-select-demo"],[2,"smoothly-theme-colors"],[2,"smoothly-icon-demo"],[2,"smoothly-table-demo-filtered",{"criteria":[32],"cats":[32],"selector":[32]},[[0,"smoothlyFilter","onFilterUpdate"],[0,"smoothlyInput","smoothlyInputHandler"]]],[2,"smoothly-table-testing",{"counter":[32]}],[2,"smoothly-picker-demo",{"counter":[32],"data":[32],"change":[32]},[[0,"smoothlyFormSubmit","submitHandler"]]],[6,"smoothly-input-date",{"color":[1537],"looks":[1537],"name":[513],"value":[1025],"open":[1028],"max":[1025],"min":[1025],"showLabel":[516,"show-label"],"disabled":[1028],"clear":[64]},[[0,"smoothlyInput","smoothlyInputHandler"],[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyDateSet","dateSetHandler"]]],[2,"smoothly-input-date-range",{"color":[1537],"looks":[1537],"name":[513],"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"open":[1028],"showLabel":[516,"show-label"],"labelStart":[1,"label-start"],"labelEnd":[1,"label-end"],"clear":[64]},[[0,"smoothlyInput","smoothlyInputHandler"],[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyStartChange","onStartChanged"],[0,"smoothlyEndChange","onEndChanged"],[0,"smoothlyDateRangeSet","onDateRangeSet"]]],[6,"smoothly-input-submit",{"delete":[4],"color":[1],"expand":[513],"fill":[513],"disabled":[1540],"display":[1540],"shape":[513],"type":[513],"size":[513],"toolTip":[1,"tool-tip"]},[[0,"click","clickHandler"]]],[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-input-color",{"value":[1025],"looks":[1537],"name":[1],"clear":[64]},[[0,"smoothlyInput","smoothlyInputHandler"],[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"]]],[2,"smoothly-burger",{"visible":[1540],"open":[1540],"mediaQuery":[513,"media-query"],"history":[32]},[[0,"click","clickHandler"],[9,"resize","resizeHandler"]]],[6,"smoothly-input-checkbox",{"name":[1],"changed":[1028],"readonly":[1540],"checked":[1028],"value":[4],"looks":[1537],"disabled":[516],"clear":[64],"listen":[64],"edit":[64],"reset":[64],"setInitialValue":[64]}],[6,"smoothly-input-edit",{"color":[513],"expand":[513],"fill":[513],"disabled":[1540],"display":[1540],"shape":[513],"type":[513],"size":[513],"toolTip":[1,"tool-tip"]},[[0,"click","clickHandler"]]],[6,"smoothly-input-file",{"accept":[1],"color":[1537],"looks":[1537],"camera":[513],"name":[513],"showLabel":[516,"show-label"],"value":[1040],"placeholder":[1537],"dragging":[32],"clear":[64]}],[6,"smoothly-input-radio-item",{"value":[1032],"selected":[1028],"looks":[1537],"name":[1025]}],[6,"smoothly-input-reset",{"color":[513],"expand":[513],"fill":[513],"disabled":[1540],"size":[513],"shape":[513],"display":[1540],"type":[513],"tooltip":[1]},[[0,"click","clickHandler"]]],[6,"smoothly-summary",{"open":[1540],"color":[1],"fill":[1],"size":[1]}],[2,"smoothly-theme-color",{"color":[1]}],[1,"smoothly-toggle-switch",{"checkmark":[516],"selected":[1540],"disabled":[516],"size":[513],"color":[513],"fill":[513]}],[0,"smoothly-urlencoded",{"data":[1]}],[2,"smoothly-display-amount",{"amount":[8],"currency":[1],"toInteger":[4,"to-integer"]}],[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}],[6,"smoothly-input-radio",{"changed":[1028],"value":[1032],"looks":[1537],"clearable":[4],"readonly":[1540],"name":[1],"listen":[64],"clear":[64],"edit":[64],"reset":[64],"setInitialValue":[64]},[[0,"smoothlyRadioButtonRegister","handleRegister"],[0,"smoothlyInputLoad","SmoothlyInputLoadHandler"],[0,"smoothlySelect","smoothlyRadioInputHandler"]]],[6,"smoothly-input-range",{"value":[1026],"looks":[1537],"changed":[1028],"readonly":[1540],"min":[2],"max":[2],"name":[1],"labelText":[1,"label-text"],"step":[8],"outputSide":[1,"output-side"],"clear":[64],"listen":[64],"edit":[64],"reset":[64],"setInitialValue":[64]}],[6,"smoothly-label",{"hue":[2],"description":[1],"shape":[513]}],[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}],[6,"smoothly-quiet",{"color":[1]}],[2,"smoothly-skeleton",{"widths":[16],"width":[1025],"color":[1],"period":[2],"distance":[1],"align":[513]}],[2,"smoothly-svg",{"url":[513],"size":[513],"color":[1]}],[6,"smoothly-toggle",{"selected":[1540],"shape":[513],"disabled":[516],"name":[1],"value":[8]},[[0,"click","onClick"]]],[6,"smoothly-filter-picker",{"label":[1],"property":[1],"multiple":[4],"type":[1]},[[0,"smoothlyPickerOptionChange","optionChangeHandler"]]],[6,"smoothly-filter",{"detailChildren":[32],"criteria":[32],"expanded":[32]},[[0,"smoothlyFilterUpdate","updateHandler"],[0,"smoothlyFilterManipulate","manipulateHandler"],[0,"smoothlyFilterField","filterFieldHandler"]]],[6,"smoothly-filter-input",{"property":[1],"placeholder":[1],"needle":[32]}],[2,"smoothly-notification",{"notice":[16],"closable":[4],"icon":[4],"tick":[32]},[[0,"trigger","onTrigger"]]],[2,"smoothly-back-to-top",{"opacity":[1],"bottom":[1],"right":[1],"visible":[32]}],[2,"smoothly-filter-toggle",{"icon":[1],"properties":[16],"toolTip":[1,"tool-tip"],"not":[4],"flip":[516],"active":[1028]}],[6,"smoothly-lazy",{"show":[1028],"content":[16]}],[6,"smoothly-input-clear",{"color":[513],"expand":[513],"fill":[513],"disabled":[1540],"size":[513],"shape":[513],"display":[1540],"type":[513]},[[0,"click","clickHandler"]]],[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]],[6,"smoothly-table-expandable-row",{"open":[1540],"allowSpotlight":[32],"spotlight":[32]},[[0,"smoothlyTableLoad","handleTableLoaded"]]],[2,"smoothly-theme-color-variant",{"color":[513],"variant":[513]}],[0,"smoothly-tuple",{"tuple":[16]}],[2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"doubleInput":[516,"double-input"],"firstSelected":[32]}],[6,"smoothly-button-confirm",{"color":[1],"name":[513],"doubleClickTime":[2,"double-click-time"],"expand":[513],"fill":[1],"disabled":[516],"shape":[1],"type":[1],"size":[1],"clickTimeStamp":[32]}],[2,"smoothly-filter-field",{"criteria":[8],"clear":[64]}],[6,"smoothly-table-cell"],[6,"smoothly-table-expandable-cell",{"open":[1540],"allowSpotlight":[32],"spotlight":[32]},[[0,"click","onClick"],[0,"smoothlyTableLoad","handleTableLoaded"]]],[2,"smoothly-load-more",{"offset":[1],"name":[1],"multiple":[4]}],[6,"smoothly-table",{"root":[1540],"color":[1537],"align":[513],"open":[1540]},[[0,"smoothlyExpandableLoad","handleExpandableLoaded"],[0,"smoothlyExpandableChange","handleExpandableState"],[0,"smoothlySpotlightChange","handleSpotlightState"],[0,"smoothlyNestedTable","handleNestedTable"],[0,"smoothlyExpansionLoad","handleEvents"],[0,"smoothlyExpansionOpen","handleEvents"]]],[6,"smoothly-table-footer"],[6,"smoothly-table-header",{"name":[1]}],[6,"smoothly-table-row",{"open":[1540]},[[0,"smoothlyExpansionLoad","onExpansionLoad"],[0,"smoothlyExpandableChange","onExpansionChange"],[0,"smoothlyExpansionOpen","onExpansionOpen"]]],[2,"smoothly-input-month",{"value":[1025]}],[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1],"format":[16]}],[6,"smoothly-submit",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"size":[513],"shape":[513],"prevent":[4]},[[0,"click","clickHandler"]]],[6,"smoothly-picker",{"looks":[1537],"name":[513],"changed":[1028],"open":[1540],"mutable":[516],"multiple":[516],"readonly":[1540],"validator":[16],"selected":[32],"display":[32],"clear":[64],"listen":[64],"edit":[64],"reset":[64],"setInitialValue":[64]},[[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyPickerMenuLoaded","menuLoadedHandler"],[0,"smoothlyPickerOptionLoaded","optionLoadedHandler"],[0,"smoothlyPickerOptionChange","optionChangeHandler"],[8,"click","clickHandler"],[8,"focusin","focusHandler"]]],[4,"smoothly-form",{"color":[1537],"value":[1040],"type":[1],"readonly":[1028],"looks":[513],"name":[1],"action":[1],"processing":[1028],"prevent":[4],"changed":[1028],"listen":[64],"submit":[64],"clear":[64],"edit":[64],"reset":[64],"setInitialValue":[64]},[[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyInput","smoothlyInputHandler"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[0,"smoothlyFormDisable","smoothlyFormDisableHandler"]]],[6,"smoothly-trigger",{"color":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]],[6,"smoothly-picker-menu",{"looks":[1],"open":[516],"multiple":[516],"mutable":[516],"readonly":[516],"validator":[16],"backend":[32],"options":[32],"created":[32],"search":[32],"valid":[32],"display":[32],"flip":[32],"flipChecked":[32]},[[9,"scroll","scrollHandler"],[0,"smoothlyPickerOptionLoad","optionLoadHandler"],[0,"smoothlyPickerOptionLoaded","optionLoadedHandler"],[0,"smoothlyPickerOptionChange","optionChangeHandler"],[0,"smoothlySlotEmpty","emptyDisplayHandler"]]],[6,"smoothly-input-select",{"name":[1],"color":[1537],"looks":[1537],"showSelected":[1540,"show-selected"],"readonly":[1540],"multiple":[4],"clearable":[4],"changed":[1028],"placeholder":[520],"menuHeight":[1,"menu-height"],"open":[32],"selected":[32],"filter":[32],"listen":[64],"reset":[64],"clear":[64],"edit":[64],"setInitialValue":[64]},[[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[8,"click","onWindowClick"],[0,"smoothlyItemSelect","onItemSelect"],[0,"keydown","onKeyDown"]]],[6,"smoothly-button",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"size":[513],"shape":[513],"link":[1]}],[1,"smoothly-picker-option",{"selected":[1540],"visible":[1540],"value":[1032],"search":[1040],"position":[514],"required":[516],"readonly":[32],"slotted":[32],"clickHandler":[64]}],[6,"smoothly-item",{"value":[8],"selected":[1540],"marked":[1540],"selectable":[4],"filter":[64]},[[0,"click","onClick"]]],[6,"smoothly-slot-elements",{"clone":[4],"nodes":[1040]}],[2,"smoothly-spinner",{"active":[516],"size":[513]}],[6,"smoothly-slotted-elements",{"clone":[4]}],[6,"smoothly-input",{"color":[1537],"delay":[2],"looks":[1537],"name":[513],"value":[1032],"type":[513],"required":[516],"showLabel":[516,"show-label"],"autocomplete":[4],"placeholder":[513],"disabled":[4],"readonly":[1540],"currency":[513],"changed":[1028],"formatter":[32],"initialValue":[32],"listen":[64],"clear":[64],"edit":[64],"reset":[64],"setInitialValue":[64],"getFormData":[64],"setKeepFocusOnReRender":[64],"setSelectionRange":[64]},[[0,"smoothlyInputLoad","SmoothlyInputLoadHandler"]]],[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[513],"size":[513],"rotate":[514],"flip":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]],["p-7bf147bf",[[2,"smoothly-address-display",{"value":[16],"editable":[4]}]]],["p-47151a53",[[2,"smoothly-address",{"value":[16],"editable":[4]}]]]]'),o)));
|
|
1
|
+
import{p as o,b as e}from"./p-5e387578.js";export{s as setNonce}from"./p-5e387578.js";import"./p-ede93d69.js";const l=()=>{const e=import.meta.url;const l={};if(e!==""){l.resourcesUrl=new URL(".",e).href}return o(l)};l().then((o=>e(JSON.parse('[["p-12182a73",[[2,"smoothly-addresses",{"value":[16],"editable":[16]}]]],["p-f125610c",[[6,"smoothly-checkbox",{"size":[1],"checked":[1540],"intermediate":[1540],"unavailable":[516],"disabled":[516],"name":[1],"value":[8],"t":[32],"toggle":[64],"clear":[64]}]]],["p-823e02b0",[[6,"smoothly-accordion",{"value":[1025],"removeItem":[64]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemWillLoad","onAccordionItemDidLoad"]]]]],["p-21905b32",[[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}]]],["p-6aebb818",[[6,"smoothly-color",{"color":[513]}]]],["p-6e9aca2e",[[2,"smoothly-country",{"value":[1],"text":[1],"language":[32]}]]],["p-eef1c80b",[[2,"smoothly-display-date-time",{"datetime":[1]}]]],["p-cb493516",[[2,"smoothly-google-font",{"value":[1]}]]],["p-b3eac6af",[[0,"smoothly-reorder"]]],["p-ed11e814",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["p-f0720fed",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["p-34b080fb",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}],[0,"smoothly-input-demo",{"duration":[32]}],[2,"smoothly-table-demo"],[0,"smoothly-display-demo"],[0,"smoothly-button-demo"],[4,"smoothly-app",{"label":[1],"color":[1],"home":[1],"menuOpen":[1540,"menu-open"],"selected":[32],"selectRoom":[64]},[[8,"popstate","locationChangeHandler"],[0,"smoothlyRoomSelected","roomSelectedHandler"],[0,"smoothlyRoomLoaded","roomLoadedHandler"],[8,"click","clickHandler"]]],[0,"smoothly-dialog-demo"],[6,"smoothly-app-room",{"label":[513],"icon":[513],"disabled":[516],"path":[1],"to":[1],"selected":[1540],"content":[16],"getContent":[64],"setSelected":[64]}],[6,"smoothly-theme-picker",{"element":[1]}],[2,"smoothly-select-demo"],[2,"smoothly-theme-colors"],[2,"smoothly-icon-demo"],[2,"smoothly-table-demo-filtered",{"criteria":[32],"cats":[32],"selector":[32]},[[0,"smoothlyFilter","onFilterUpdate"],[0,"smoothlyInput","smoothlyInputHandler"]]],[2,"smoothly-table-testing",{"counter":[32]}],[2,"smoothly-picker-demo",{"counter":[32],"data":[32],"change":[32]},[[0,"smoothlyFormSubmit","submitHandler"]]],[2,"smoothly-input-demo-controlled-form",{"name":[32]}],[6,"smoothly-input-date",{"color":[1537],"looks":[1537],"name":[513],"value":[1025],"open":[1028],"max":[1025],"min":[1025],"showLabel":[516,"show-label"],"disabled":[1028],"clear":[64]},[[0,"smoothlyInput","smoothlyInputHandler"],[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyDateSet","dateSetHandler"]]],[2,"smoothly-input-date-range",{"color":[1537],"looks":[1537],"name":[513],"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"open":[1028],"showLabel":[516,"show-label"],"labelStart":[1,"label-start"],"labelEnd":[1,"label-end"],"clear":[64]},[[0,"smoothlyInput","smoothlyInputHandler"],[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyStartChange","onStartChanged"],[0,"smoothlyEndChange","onEndChanged"],[0,"smoothlyDateRangeSet","onDateRangeSet"]]],[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-input-color",{"value":[1025],"looks":[1537],"name":[1],"clear":[64]},[[0,"smoothlyInput","smoothlyInputHandler"],[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"]]],[2,"smoothly-burger",{"visible":[1540],"open":[1540],"mediaQuery":[513,"media-query"],"history":[32]},[[0,"click","clickHandler"],[9,"resize","resizeHandler"]]],[6,"smoothly-input-checkbox",{"name":[1],"changed":[1028],"readonly":[1540],"checked":[1028],"value":[4],"looks":[1537],"disabled":[516],"clear":[64],"listen":[64],"edit":[64],"reset":[64],"setInitialValue":[64]}],[6,"smoothly-input-file",{"accept":[1],"color":[1537],"looks":[1537],"camera":[513],"name":[513],"showLabel":[516,"show-label"],"value":[1040],"placeholder":[1537],"dragging":[32],"clear":[64]}],[6,"smoothly-input-radio-item",{"value":[1032],"selected":[1028],"looks":[1537],"name":[1025]}],[6,"smoothly-summary",{"open":[1540],"color":[1],"fill":[1],"size":[1]}],[2,"smoothly-theme-color",{"color":[1]}],[1,"smoothly-toggle-switch",{"checkmark":[516],"selected":[1540],"disabled":[516],"size":[513],"color":[513],"fill":[513]}],[0,"smoothly-urlencoded",{"data":[1]}],[2,"smoothly-display-amount",{"amount":[8],"currency":[1],"toInteger":[4,"to-integer"]}],[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}],[6,"smoothly-input-radio",{"changed":[1028],"value":[1032],"looks":[1537],"clearable":[4],"readonly":[1540],"name":[1],"listen":[64],"clear":[64],"edit":[64],"reset":[64],"setInitialValue":[64]},[[0,"smoothlyRadioButtonRegister","handleRegister"],[0,"smoothlyInputLoad","SmoothlyInputLoadHandler"],[0,"smoothlySelect","smoothlyRadioInputHandler"]]],[6,"smoothly-input-range",{"value":[1026],"looks":[1537],"changed":[1028],"readonly":[1540],"min":[2],"max":[2],"name":[1],"labelText":[1,"label-text"],"step":[8],"outputSide":[1,"output-side"],"clear":[64],"listen":[64],"edit":[64],"reset":[64],"setInitialValue":[64]}],[6,"smoothly-label",{"hue":[2],"description":[1],"shape":[513]}],[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}],[6,"smoothly-quiet",{"color":[1]}],[2,"smoothly-skeleton",{"widths":[16],"width":[1025],"color":[1],"period":[2],"distance":[1],"align":[513]}],[2,"smoothly-svg",{"url":[513],"size":[513],"color":[1]}],[6,"smoothly-toggle",{"selected":[1540],"shape":[513],"disabled":[516],"name":[1],"value":[8]},[[0,"click","onClick"]]],[6,"smoothly-filter-picker",{"label":[1],"property":[1],"multiple":[4],"type":[1]},[[0,"smoothlyPickerOptionChange","optionChangeHandler"]]],[6,"smoothly-filter",{"detailChildren":[32],"criteria":[32],"expanded":[32]},[[0,"smoothlyFilterUpdate","updateHandler"],[0,"smoothlyFilterManipulate","manipulateHandler"],[0,"smoothlyFilterField","filterFieldHandler"]]],[6,"smoothly-input-submit",{"delete":[516],"color":[1],"expand":[513],"fill":[513],"disabled":[1540],"display":[1540],"shape":[513],"type":[513],"size":[513],"toolTip":[1,"tool-tip"]}],[6,"smoothly-filter-input",{"property":[1],"placeholder":[1],"needle":[32]}],[2,"smoothly-notification",{"notice":[16],"closable":[4],"icon":[4],"tick":[32]},[[0,"trigger","onTrigger"]]],[2,"smoothly-back-to-top",{"opacity":[1],"bottom":[1],"right":[1],"visible":[32]}],[2,"smoothly-filter-toggle",{"icon":[1],"properties":[16],"toolTip":[1,"tool-tip"],"not":[4],"flip":[516],"active":[1028]}],[6,"smoothly-input-edit",{"color":[513],"expand":[513],"fill":[513],"disabled":[1540],"display":[1540],"shape":[513],"type":[513],"size":[513],"toolTip":[1,"tool-tip"]},[[0,"click","clickHandler"]]],[6,"smoothly-input-reset",{"color":[513],"expand":[513],"fill":[513],"disabled":[1540],"size":[513],"shape":[513],"display":[1540],"type":[513],"tooltip":[1]},[[0,"click","clickHandler"]]],[6,"smoothly-lazy",{"show":[1028],"content":[16]}],[6,"smoothly-input-clear",{"color":[513],"expand":[513],"fill":[513],"disabled":[1540],"size":[513],"shape":[513],"display":[1540],"type":[513]},[[0,"click","clickHandler"]]],[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]],[6,"smoothly-table-expandable-row",{"open":[1540],"allowSpotlight":[32],"spotlight":[32]},[[0,"smoothlyTableLoad","handleTableLoaded"]]],[2,"smoothly-theme-color-variant",{"color":[513],"variant":[513]}],[0,"smoothly-tuple",{"tuple":[16]}],[2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"doubleInput":[516,"double-input"],"firstSelected":[32]}],[2,"smoothly-filter-field",{"criteria":[8],"clear":[64]}],[6,"smoothly-table-cell"],[6,"smoothly-table-expandable-cell",{"open":[1540],"allowSpotlight":[32],"spotlight":[32]},[[0,"click","onClick"],[0,"smoothlyTableLoad","handleTableLoaded"]]],[2,"smoothly-load-more",{"offset":[1],"name":[1],"multiple":[4]}],[6,"smoothly-table",{"root":[1540],"color":[1537],"align":[513],"open":[1540]},[[0,"smoothlyExpandableLoad","handleExpandableLoaded"],[0,"smoothlyExpandableChange","handleExpandableState"],[0,"smoothlySpotlightChange","handleSpotlightState"],[0,"smoothlyNestedTable","handleNestedTable"],[0,"smoothlyExpansionLoad","handleEvents"],[0,"smoothlyExpansionOpen","handleEvents"]]],[6,"smoothly-table-footer"],[6,"smoothly-table-header",{"name":[1]}],[6,"smoothly-table-row",{"open":[1540]},[[0,"smoothlyExpansionLoad","onExpansionLoad"],[0,"smoothlyExpandableChange","onExpansionChange"],[0,"smoothlyExpansionOpen","onExpansionOpen"]]],[2,"smoothly-input-month",{"value":[1025]}],[6,"smoothly-button-confirm",{"color":[1],"name":[513],"doubleClickTime":[2,"double-click-time"],"expand":[513],"fill":[1],"disabled":[516],"shape":[1],"type":[1],"size":[1],"clickTimeStamp":[32]}],[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1],"format":[16]}],[6,"smoothly-submit",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"size":[513],"shape":[513],"prevent":[4]},[[0,"click","clickHandler"]]],[6,"smoothly-picker",{"looks":[1537],"name":[513],"changed":[1028],"open":[1540],"mutable":[516],"multiple":[516],"readonly":[1540],"validator":[16],"selected":[32],"display":[32],"clear":[64],"listen":[64],"edit":[64],"reset":[64],"setInitialValue":[64]},[[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyPickerMenuLoaded","menuLoadedHandler"],[0,"smoothlyPickerOptionLoaded","optionLoadedHandler"],[0,"smoothlyPickerOptionChange","optionChangeHandler"],[8,"click","clickHandler"],[8,"focusin","focusHandler"]]],[6,"smoothly-trigger",{"color":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]],[6,"smoothly-picker-menu",{"looks":[1],"open":[516],"multiple":[516],"mutable":[516],"readonly":[516],"validator":[16],"backend":[32],"options":[32],"created":[32],"search":[32],"valid":[32],"display":[32],"flip":[32],"flipChecked":[32]},[[9,"scroll","scrollHandler"],[0,"smoothlyPickerOptionLoad","optionLoadHandler"],[0,"smoothlyPickerOptionLoaded","optionLoadedHandler"],[0,"smoothlyPickerOptionChange","optionChangeHandler"],[0,"smoothlySlotEmpty","emptyDisplayHandler"]]],[6,"smoothly-input-select",{"name":[1],"color":[1537],"looks":[1537],"showSelected":[1540,"show-selected"],"readonly":[1540],"multiple":[4],"clearable":[4],"changed":[1028],"placeholder":[520],"menuHeight":[1,"menu-height"],"open":[32],"selected":[32],"filter":[32],"listen":[64],"reset":[64],"clear":[64],"edit":[64],"setInitialValue":[64]},[[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[8,"click","onWindowClick"],[0,"smoothlyItemSelect","onItemSelect"],[0,"keydown","onKeyDown"]]],[4,"smoothly-form",{"color":[1537],"value":[1040],"action":[1],"type":[1],"readonly":[1028],"looks":[513],"name":[1],"prevent":[4],"changed":[1028],"processing":[32],"listen":[64],"submit":[64],"clear":[64],"edit":[64],"reset":[64],"setInitialValue":[64]},[[0,"smoothlyInputLooks","smoothlyInputLooksHandler"],[0,"smoothlyInput","smoothlyInputHandler"],[8,"smoothlyFormSubmit","windowSubmitHandler"],[0,"smoothlyFormSubmit","submitHandler"],[0,"smoothlyInputLoad","smoothlyInputLoadHandler"],[0,"smoothlyFormDisable","smoothlyFormDisableHandler"]]],[1,"smoothly-picker-option",{"selected":[1540],"visible":[1540],"value":[1032],"search":[1040],"position":[514],"required":[516],"readonly":[32],"slotted":[32],"clickHandler":[64]}],[6,"smoothly-button",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"size":[513],"shape":[513],"link":[1]}],[6,"smoothly-item",{"value":[8],"selected":[1540],"marked":[1540],"selectable":[4],"filter":[64]},[[0,"click","onClick"]]],[6,"smoothly-slot-elements",{"clone":[4],"nodes":[1040]}],[6,"smoothly-slotted-elements",{"clone":[4]}],[2,"smoothly-spinner",{"active":[516],"size":[513]}],[6,"smoothly-input",{"color":[1537],"delay":[2],"looks":[1537],"name":[513],"value":[1032],"type":[513],"required":[516],"showLabel":[516,"show-label"],"autocomplete":[4],"placeholder":[513],"disabled":[4],"readonly":[1540],"currency":[513],"changed":[1028],"formatter":[32],"initialValue":[32],"listen":[64],"clear":[64],"edit":[64],"reset":[64],"setInitialValue":[64],"getFormData":[64],"setKeepFocusOnReRender":[64],"setSelectionRange":[64]},[[0,"smoothlyInputLoad","SmoothlyInputLoadHandler"]]],[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[513],"size":[513],"rotate":[514],"flip":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]],["p-7bf147bf",[[2,"smoothly-address-display",{"value":[16],"editable":[4]}]]],["p-47151a53",[[2,"smoothly-address",{"value":[16],"editable":[4]}]]]]'),o)));
|
|
2
2
|
//# sourceMappingURL=smoothly.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["patchBrowser","importMeta","import","meta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","JSON","parse"],"sources":["./node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\n/**\n * Helper method for querying a `meta` tag that contains a nonce value\n * out of a DOM's head.\n *\n * @param doc The DOM containing the `head` to query against\n * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag\n * exists or the tag has no content.\n */\nfunction queryNonceMetaTagContent(doc) {\n var _a, _b, _c;\n return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name=\"csp-nonce\"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;\n}\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cssVarShim) {\n // shim css vars\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n var _a;\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n // Apply CSP nonce to the script tag if it exists\n const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);\n if (nonce != null) {\n script.setAttribute('nonce', nonce);\n }\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"8GAkBA,MAAMA,EAAe,KA6BjB,MAAMC,EAAaC,OAAOC,KAAKC,IAC/B,MAAMC,EAA6D,GAenE,GAAuBJ,IAAe,GAAI,CACtCI,EAAKC,aAAe,IAAIC,IAAI,IAAKN,GAAYO,IACrD,CAYI,OAAOC,EAAeJ,EAAK,ECzE/BL,IAAeU,MAAKC,GAEXC,EAAcC,KAAAC,MAAA,
|
|
1
|
+
{"version":3,"names":["patchBrowser","importMeta","import","meta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","JSON","parse"],"sources":["./node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\n/**\n * Helper method for querying a `meta` tag that contains a nonce value\n * out of a DOM's head.\n *\n * @param doc The DOM containing the `head` to query against\n * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag\n * exists or the tag has no content.\n */\nfunction queryNonceMetaTagContent(doc) {\n var _a, _b, _c;\n return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name=\"csp-nonce\"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;\n}\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cssVarShim) {\n // shim css vars\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n var _a;\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n // Apply CSP nonce to the script tag if it exists\n const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);\n if (nonce != null) {\n script.setAttribute('nonce', nonce);\n }\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"8GAkBA,MAAMA,EAAe,KA6BjB,MAAMC,EAAaC,OAAOC,KAAKC,IAC/B,MAAMC,EAA6D,GAenE,GAAuBJ,IAAe,GAAI,CACtCI,EAAKC,aAAe,IAAIC,IAAI,IAAKN,GAAYO,IACrD,CAYI,OAAOC,EAAeJ,EAAK,ECzE/BL,IAAeU,MAAKC,GAEXC,EAAcC,KAAAC,MAAA,6+YAAuCH"}
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { SmoothlyFormCustomEvent } from "../../components";
|
|
3
|
+
import { Color, Data, Notice, Submit } from "../../model";
|
|
3
4
|
import { Clearable } from "../input/Clearable";
|
|
4
5
|
import { Editable } from "../input/Editable";
|
|
5
6
|
import { Looks } from "../input/Looks";
|
|
6
7
|
import { Submittable } from "../input/Submittable";
|
|
7
8
|
export declare class SmoothlyForm implements Clearable, Submittable, Editable {
|
|
9
|
+
element: HTMLSmoothlyFormElement;
|
|
8
10
|
color?: Color;
|
|
9
11
|
value: Readonly<Data>;
|
|
10
|
-
|
|
12
|
+
action?: string;
|
|
13
|
+
type?: "update" | "change" | "fetch" | "create";
|
|
11
14
|
readonly: boolean;
|
|
12
15
|
looks: Looks;
|
|
13
16
|
name?: string;
|
|
14
|
-
action?: string;
|
|
15
|
-
processing: boolean;
|
|
16
17
|
prevent: boolean;
|
|
17
18
|
changed: boolean;
|
|
19
|
+
processing?: Promise<boolean>;
|
|
18
20
|
smoothlyFormInput: EventEmitter<Data>;
|
|
19
|
-
smoothlyFormSubmit: EventEmitter<
|
|
20
|
-
value: Data;
|
|
21
|
-
type: "update" | "change" | "fetch" | "create" | "remove";
|
|
22
|
-
}>;
|
|
21
|
+
smoothlyFormSubmit: EventEmitter<Submit>;
|
|
23
22
|
notice: EventEmitter<Notice>;
|
|
24
23
|
private inputs;
|
|
25
24
|
private readonlyAtLoad;
|
|
@@ -29,6 +28,8 @@ export declare class SmoothlyForm implements Clearable, Submittable, Editable {
|
|
|
29
28
|
watchReadonly(): void;
|
|
30
29
|
smoothlyInputLooksHandler(event: CustomEvent<(looks: Looks, color: Color | undefined) => void>): void;
|
|
31
30
|
smoothlyInputHandler(event: CustomEvent<Record<string, any>>): Promise<void>;
|
|
31
|
+
windowSubmitHandler(event: SmoothlyFormCustomEvent<Submit>): void;
|
|
32
|
+
submitHandler(event: SmoothlyFormCustomEvent<Submit>): void;
|
|
32
33
|
smoothlyInputLoadHandler(event: CustomEvent<(parent: SmoothlyForm) => void>): Promise<void>;
|
|
33
34
|
smoothlyFormDisableHandler(event: CustomEvent): Promise<void>;
|
|
34
35
|
submit(remove?: boolean): Promise<void>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VNode } from "../../../../stencil-public-runtime";
|
|
2
|
+
import { SmoothlyFormCustomEvent } from "../../../../components";
|
|
3
|
+
import { Data } from "../../../../model";
|
|
4
|
+
export declare class SmoothlyInputDemoControlledForm {
|
|
5
|
+
name: string;
|
|
6
|
+
nameChanged(current: string, previous: string): void;
|
|
7
|
+
submitHandler(event: SmoothlyFormCustomEvent<{
|
|
8
|
+
result: (result: boolean) => void;
|
|
9
|
+
value: Data;
|
|
10
|
+
}>): Promise<void>;
|
|
11
|
+
render(): VNode | VNode[];
|
|
12
|
+
}
|
|
@@ -8,7 +8,7 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
|
8
8
|
import { SmoothlyAccordion } from "./components/accordion";
|
|
9
9
|
import { address } from "./components/address-display";
|
|
10
10
|
import { address as address1 } from "./components/address-display/index";
|
|
11
|
-
import { Color, Data, Fill, Icon, Message, Notice, Option, Trigger } from "./model";
|
|
11
|
+
import { Color, Data, Fill, Icon, Message, Notice, Option, Submit, Trigger } from "./model";
|
|
12
12
|
import { FunctionalComponent, JSX } from "./stencil-public-runtime";
|
|
13
13
|
import { Button } from "./components/Button";
|
|
14
14
|
import { CountryCode, Currency, Date, DateRange, DateTime, isoly } from "isoly";
|
|
@@ -187,12 +187,11 @@ export namespace Components {
|
|
|
187
187
|
"looks": Looks;
|
|
188
188
|
"name"?: string;
|
|
189
189
|
"prevent": boolean;
|
|
190
|
-
"processing": boolean;
|
|
191
190
|
"readonly": boolean;
|
|
192
191
|
"reset": () => Promise<void>;
|
|
193
192
|
"setInitialValue": () => Promise<void>;
|
|
194
193
|
"submit": (remove?: boolean) => Promise<void>;
|
|
195
|
-
"type"
|
|
194
|
+
"type"?: "update" | "change" | "fetch" | "create";
|
|
196
195
|
"value": Readonly<Data>;
|
|
197
196
|
}
|
|
198
197
|
interface SmoothlyFrame {
|
|
@@ -298,6 +297,8 @@ export namespace Components {
|
|
|
298
297
|
}
|
|
299
298
|
interface SmoothlyInputDemo {
|
|
300
299
|
}
|
|
300
|
+
interface SmoothlyInputDemoControlledForm {
|
|
301
|
+
}
|
|
301
302
|
interface SmoothlyInputEdit {
|
|
302
303
|
"color"?: Color;
|
|
303
304
|
"disabled": boolean;
|
|
@@ -1032,6 +1033,12 @@ declare global {
|
|
|
1032
1033
|
prototype: HTMLSmoothlyInputDemoElement;
|
|
1033
1034
|
new (): HTMLSmoothlyInputDemoElement;
|
|
1034
1035
|
};
|
|
1036
|
+
interface HTMLSmoothlyInputDemoControlledFormElement extends Components.SmoothlyInputDemoControlledForm, HTMLStencilElement {
|
|
1037
|
+
}
|
|
1038
|
+
var HTMLSmoothlyInputDemoControlledFormElement: {
|
|
1039
|
+
prototype: HTMLSmoothlyInputDemoControlledFormElement;
|
|
1040
|
+
new (): HTMLSmoothlyInputDemoControlledFormElement;
|
|
1041
|
+
};
|
|
1035
1042
|
interface HTMLSmoothlyInputEditElement extends Components.SmoothlyInputEdit, HTMLStencilElement {
|
|
1036
1043
|
}
|
|
1037
1044
|
var HTMLSmoothlyInputEditElement: {
|
|
@@ -1391,6 +1398,7 @@ declare global {
|
|
|
1391
1398
|
"smoothly-input-date": HTMLSmoothlyInputDateElement;
|
|
1392
1399
|
"smoothly-input-date-range": HTMLSmoothlyInputDateRangeElement;
|
|
1393
1400
|
"smoothly-input-demo": HTMLSmoothlyInputDemoElement;
|
|
1401
|
+
"smoothly-input-demo-controlled-form": HTMLSmoothlyInputDemoControlledFormElement;
|
|
1394
1402
|
"smoothly-input-edit": HTMLSmoothlyInputEditElement;
|
|
1395
1403
|
"smoothly-input-file": HTMLSmoothlyInputFileElement;
|
|
1396
1404
|
"smoothly-input-month": HTMLSmoothlyInputMonthElement;
|
|
@@ -1626,9 +1634,8 @@ declare namespace LocalJSX {
|
|
|
1626
1634
|
"name"?: string;
|
|
1627
1635
|
"onNotice"?: (event: SmoothlyFormCustomEvent<Notice>) => void;
|
|
1628
1636
|
"onSmoothlyFormInput"?: (event: SmoothlyFormCustomEvent<Data>) => void;
|
|
1629
|
-
"onSmoothlyFormSubmit"?: (event: SmoothlyFormCustomEvent<
|
|
1637
|
+
"onSmoothlyFormSubmit"?: (event: SmoothlyFormCustomEvent<Submit>) => void;
|
|
1630
1638
|
"prevent"?: boolean;
|
|
1631
|
-
"processing"?: boolean;
|
|
1632
1639
|
"readonly"?: boolean;
|
|
1633
1640
|
"type"?: "update" | "change" | "fetch" | "create";
|
|
1634
1641
|
"value"?: Readonly<Data>;
|
|
@@ -1741,6 +1748,8 @@ declare namespace LocalJSX {
|
|
|
1741
1748
|
}
|
|
1742
1749
|
interface SmoothlyInputDemo {
|
|
1743
1750
|
}
|
|
1751
|
+
interface SmoothlyInputDemoControlledForm {
|
|
1752
|
+
}
|
|
1744
1753
|
interface SmoothlyInputEdit {
|
|
1745
1754
|
"color"?: Color;
|
|
1746
1755
|
"disabled"?: boolean;
|
|
@@ -2115,6 +2124,7 @@ declare namespace LocalJSX {
|
|
|
2115
2124
|
"smoothly-input-date": SmoothlyInputDate;
|
|
2116
2125
|
"smoothly-input-date-range": SmoothlyInputDateRange;
|
|
2117
2126
|
"smoothly-input-demo": SmoothlyInputDemo;
|
|
2127
|
+
"smoothly-input-demo-controlled-form": SmoothlyInputDemoControlledForm;
|
|
2118
2128
|
"smoothly-input-edit": SmoothlyInputEdit;
|
|
2119
2129
|
"smoothly-input-file": SmoothlyInputFile;
|
|
2120
2130
|
"smoothly-input-month": SmoothlyInputMonth;
|
|
@@ -2217,6 +2227,7 @@ declare module "@stencil/core" {
|
|
|
2217
2227
|
"smoothly-input-date": LocalJSX.SmoothlyInputDate & JSXBase.HTMLAttributes<HTMLSmoothlyInputDateElement>;
|
|
2218
2228
|
"smoothly-input-date-range": LocalJSX.SmoothlyInputDateRange & JSXBase.HTMLAttributes<HTMLSmoothlyInputDateRangeElement>;
|
|
2219
2229
|
"smoothly-input-demo": LocalJSX.SmoothlyInputDemo & JSXBase.HTMLAttributes<HTMLSmoothlyInputDemoElement>;
|
|
2230
|
+
"smoothly-input-demo-controlled-form": LocalJSX.SmoothlyInputDemoControlledForm & JSXBase.HTMLAttributes<HTMLSmoothlyInputDemoControlledFormElement>;
|
|
2220
2231
|
"smoothly-input-edit": LocalJSX.SmoothlyInputEdit & JSXBase.HTMLAttributes<HTMLSmoothlyInputEditElement>;
|
|
2221
2232
|
"smoothly-input-file": LocalJSX.SmoothlyInputFile & JSXBase.HTMLAttributes<HTMLSmoothlyInputFileElement>;
|
|
2222
2233
|
"smoothly-input-month": LocalJSX.SmoothlyInputMonth & JSXBase.HTMLAttributes<HTMLSmoothlyInputMonthElement>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
import { Data } from "./Data";
|
|
3
|
+
export interface Submit {
|
|
4
|
+
type?: typeof Submit.types[number];
|
|
5
|
+
result: (result: boolean) => void;
|
|
6
|
+
value: Data;
|
|
7
|
+
}
|
|
8
|
+
export declare namespace Submit {
|
|
9
|
+
const types: readonly ["update", "change", "fetch", "create", "remove"];
|
|
10
|
+
const type: isly.object.ExtendableType<Submit>;
|
|
11
|
+
const is: isly.Type.IsFunction<Submit>;
|
|
12
|
+
const flaw: isly.Type.FlawFunction;
|
|
13
|
+
}
|
package/dist/types/smoothly.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Components, JSX } from "./components";
|
|
2
|
-
export { Autocomplete, Color, Fill, GoogleFont, Message, Notice, Trigger, Option, Listenable, HasListenable, WithListenable, CanBeListenable, Icon, StateBase, Data, redirect, } from "./model";
|
|
2
|
+
export { Autocomplete, Color, Fill, GoogleFont, Message, Notice, Trigger, Option, Listenable, HasListenable, WithListenable, CanBeListenable, Icon, StateBase, Data, redirect, Submit, } from "./model";
|
|
3
3
|
export { Cosmetic } from "./utilities";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"Data-50d47740.js","mappings":";;AAAO,MAAM,IAAI,CAAC;AAClB,IAAI,IAAI,IAAI,GAAG;AACf,QAAQ,OAAO,OAAO,IAAI,CAAC,KAAK,IAAI,UAAU,GAAG,IAAI,CAAC,KAAK,EAAE,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AAI,KACP,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,GAAG,CAAC,IAAI,CAAC,MAAM;UACvB,KAAK;UACL,GAAG,CAAC,OAAO,OAAO,IAAI,QAAQ,IAAI,EAAE,OAAO,YAAY,IAAI,CAAC,GAAG,OAAO,GAAG,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,IAC5F;GACD;EARe,QAAG,MAQlB,CAAA;EACD,SAAgB,MAAM,CAAC,IAA2B;IACjD,OAAO,KAAK,CAAC,EAAE,EAAE,IAAI,CAAC,CAAA;GACtB;EAFe,WAAM,SAErB,CAAA;EACD,SAAgB,KAAK,CAAC,IAAU,EAAE,OAA4B;IAC7D,OAAO,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,EAAE,IAAI,CAAC,CAAA;GACjG;EAFe,UAAK,QAEpB,CAAA;AACF,CAAC,EA/BgBP,YAAI,KAAJA,YAAI;;;;;;;;;;;;","names":["criteriaFunctions","Color","isly.string","Icon","Data","isly.union","isly.number","isly.boolean","isly.fromIs","isly.undefined","isly.record","isly.lazy"],"sources":["./node_modules/isly/dist/mjs/Type.js","./node_modules/isly/dist/mjs/boolean.js","./node_modules/isly/dist/mjs/lazy.js","./node_modules/isly/dist/mjs/object.js","./node_modules/isly/dist/mjs/string.js","./node_modules/isly/dist/mjs/Flaw.js","./node_modules/isly/dist/mjs/fromIs.js","./node_modules/isly/dist/mjs/number.js","./node_modules/isly/dist/mjs/record.js","./node_modules/isly/dist/mjs/union.js","./node_modules/isly/dist/mjs/undefined.js","./src/model/Color.ts","./src/model/Icon.ts","./src/model/Message.ts","./src/model/Trigger.ts","./src/model/Listenable.ts","./src/model/Data.ts"],"sourcesContent":["export class Type {\n get name() {\n return typeof this._name == \"function\" ? this._name() : this._name;\n }\n get condition() {\n return typeof this._condition == \"function\" ? this._condition() : this._condition;\n }\n optional() {\n return new IslyOptional(this);\n }\n readonly() {\n return new IslyReadonly(this);\n }\n array(...options) {\n return array(this, ...options);\n }\n constructor(_name, _condition) {\n this._name = _name;\n this._condition = _condition;\n /**\n * Return the value if the value is valid for the type, otherwise undefined.\n * For objects, unknown properties are filtered.\n *\n * Eg: isly.number().value(NaN) returns undefined\n */\n this.get = value => (this.is(value) ? this.getValue(value) : undefined);\n /**\n * Return a flaw object, describing the flaws of the value compared to expected type.\n *\n * If it is a correct value, according to the type, it returns a Flaw with the message `{message:\"This type is correct.\", isFlaw: false, ... }`\n *\n * Implemented as a closure.\n */\n this.flaw = value => {\n return this.is(value)\n ? {\n type: this.name,\n ...(this.condition ? { condition: this.condition } : undefined),\n isFlaw: false,\n message: \"This type is correct.\",\n }\n : {\n ...(this.condition ? { condition: this.condition } : undefined),\n ...this.createFlaw(value),\n type: this.name,\n };\n };\n }\n getValue(value) {\n return value;\n }\n /**\n * Override this to create custom Flaws.\n * Not necessary for simple types.\n */\n createFlaw(value) {\n return {};\n }\n /**\n * Used by types that use a backend type.\n */\n createFlawFromType(backend, value) {\n return \"createFlaw\" in backend && typeof backend.createFlaw == \"function\"\n ? backend.createFlaw(value)\n : backend.flaw(value);\n }\n}\nclass IslyOptional extends Type {\n constructor(backend) {\n super(() => backend.name + \" | undefined\", backend.condition);\n this.backend = backend;\n this.is = (value => value == undefined || this.backend.is(value));\n }\n createFlaw(value) {\n return this.createFlawFromType(this.backend, value);\n }\n}\nclass IslyReadonly extends Type {\n constructor(backend) {\n super(() => `Readonly<${backend.name}>`, backend.condition);\n this.backend = backend;\n this.is = (value => value == undefined || this.backend.is(value));\n }\n createFlaw(value) {\n return this.createFlawFromType(this.backend, value);\n }\n}\nexport function array(itemType, ...options) {\n return new IslyArray(itemType, options);\n}\nconst criteriaFunctions = {\n length: {\n is: (value, optionValue) => value.length == optionValue,\n condition: optionValue => `length == ${optionValue}`,\n },\n minLength: {\n is: (value, optionValue) => value.length >= optionValue,\n condition: optionValue => `minLength == ${optionValue}`,\n },\n maxLength: {\n is: (value, optionValue) => value.length <= optionValue,\n condition: optionValue => `maxLength == ${optionValue}`,\n },\n};\nexport class IslyArray extends Type {\n constructor(itemType, options) {\n super(() => this.baseName() + \"[]\", options.length > 0 ? options.map(c => criteriaFunctions[c.criteria].condition(c.value)).join(\" & \") : undefined);\n this.itemType = itemType;\n this.options = options;\n this.is = (value => globalThis.Array.isArray(value) &&\n this.options.every(option => criteriaFunctions[option.criteria].is(value, option.value)) &&\n value.every(item => this.itemType.is(item)));\n }\n baseName() {\n return this.itemType.name.includes(\" \") ? `(${this.itemType.name})` : this.itemType.name;\n }\n itemName(index) {\n return `${this.baseName()}[${index}]`;\n }\n createFlaw(value) {\n const flaws = (globalThis.Array.isArray(value) &&\n value.flatMap((item, index) => {\n const subFlaw = this.itemType.flaw(item);\n return subFlaw.isFlaw ?? true ? [{ ...subFlaw, type: this.itemName(index) }] : [];\n })) ||\n [];\n return {\n ...(flaws.length > 0 ? { flaws } : undefined),\n };\n }\n getValue(value) {\n return value.map(item => this.itemType.get(item));\n }\n}\n//# sourceMappingURL=Type.js.map","import { Type } from \"./Type\";\nclass IslyBoolean extends Type {\n constructor(booleanValue) {\n super(booleanValue == undefined ? \"boolean\" : booleanValue ? \"true\" : \"false\");\n this.booleanValue = booleanValue;\n this.is = (value => typeof value == \"boolean\" && (this.booleanValue == undefined || value == this.booleanValue));\n }\n}\nexport function boolean(booleanValue) {\n return new IslyBoolean(booleanValue);\n}\n//# sourceMappingURL=boolean.js.map","import { Type } from \"./Type\";\nclass IslyLazy extends Type {\n constructor(factory, name) {\n super(name ?? (() => (this.backend ??= factory()).name), () => (this.backend ??= factory()).condition);\n this.factory = factory;\n this.is = (value => (this.backend ??= this.factory()).is(value));\n this.get = value => this.backend.get(value);\n }\n createFlaw(value) {\n return this.createFlawFromType((this.backend ??= this.factory()), value);\n }\n}\n/**\n * Late evaluation of a type\n * Can be used for for recursive types.\n *\n * @param factory\n * @param name Provide a name, to avoid infinite loop if the type i recursive\n * @returns\n */\nexport function lazy(factory, name) {\n return new IslyLazy(factory, name);\n}\n//# sourceMappingURL=lazy.js.map","import { Type } from \"./Type\";\nclass IslyObject extends Type {\n constructor(baseType, properties, name) {\n super(() => name ??\n (this.baseType ? `${this.baseType.name} & ` : \"\") +\n `{${globalThis.Object.entries(this.properties)\n .map(([property, type]) => `${property}: ${type.name}`)\n .join(\", \")}}`);\n this.baseType = baseType;\n this.properties = properties;\n this.is = (value => !!(value &&\n (this.baseType == undefined || this.baseType.is(value)) &&\n typeof value == \"object\" &&\n !globalThis.Array.isArray(value) &&\n globalThis.Object.entries(this.properties).every(([property, type]) => type.is(value[property]))));\n }\n extend(properties, name) {\n return new IslyObject(this, properties, name);\n }\n omit(omits, name) {\n return new IslyObject(this.baseType?.omit(omits), globalThis.Object.fromEntries(globalThis.Object.entries(this.properties).filter(([key]) => !omits.includes(key))), name ?? `Omit<${this.name}, ${omits.map(key => `\"${String(key)}\"`).join(\" | \")}>`);\n }\n pick(picks, name) {\n return new IslyObject(this.baseType?.pick(picks), globalThis.Object.fromEntries(globalThis.Object.entries(this.properties).filter(([key]) => picks.includes(key))), name ?? `Pick<${this.name}, ${picks.map(key => `\"${String(key)}\"`).join(\" | \")}>`);\n }\n createFlaw(value) {\n return {\n flaws: [\n this.baseType ? this.baseType.flaw(value)?.flaws ?? [] : [],\n globalThis.Object.entries(this.properties)\n .map(([property, type]) => [property, type.flaw(value?.[property])])\n .map(([property, flaw]) => (flaw?.isFlaw ?? true) && { property, ...flaw })\n .filter(flaw => flaw),\n ]\n .flat()\n .filter(flaw => flaw?.isFlaw ?? true),\n };\n }\n /**\n * get-function on a object returns a object with only specified properties\n */\n getValue(value) {\n const result = this.baseType ? this.baseType.getValue(value) : {};\n if (result)\n for (const [key, type] of globalThis.Object.entries(this.properties))\n if (key in value)\n result[key] = type.get(value[key]);\n return result;\n }\n}\nexport function object(properties, name) {\n return new IslyObject(undefined, properties ?? {}, name);\n}\n//# sourceMappingURL=object.js.map","import { Type } from \"./Type\";\nclass IslyString extends Type {\n constructor(stringCondition) {\n super(typeof stringCondition == \"string\" ? `\"${stringCondition}\"` : \"string\", () => {\n const conditionObject = this.getConditionObject();\n return conditionObject instanceof RegExp\n ? `/${conditionObject.source}/${conditionObject.flags}`\n : globalThis.Object.keys(conditionObject)\n .map(key => `\"${key}\"`)\n .join(\" | \");\n });\n this.stringCondition = stringCondition;\n this.is = (value => {\n const conditionObject = this.getConditionObject();\n return (typeof value == \"string\" &&\n (conditionObject instanceof RegExp\n ? conditionObject.test(value)\n : typeof conditionObject == \"object\"\n ? value in conditionObject //TODO, avoid \"hasOwnProperty toString etc.\"\n : conditionObject));\n });\n }\n getConditionObject() {\n return (this.conditionObject ??= Array.isArray(this.stringCondition)\n ? this.stringCondition.reduce((result, current) => {\n result[current] = true;\n return result;\n }, globalThis.Object.create(null))\n : typeof this.stringCondition == \"string\"\n ? { [this.stringCondition]: true }\n : typeof this.stringCondition == \"object\" // Record or RegExp!\n ? this.stringCondition\n : true);\n }\n}\nexport function string(condition) {\n return new IslyString(condition);\n}\n//# sourceMappingURL=string.js.map","import { boolean } from \"./boolean\";\nimport { lazy } from \"./lazy\";\nimport { object } from \"./object\";\nimport { string } from \"./string\";\nimport { array } from \"./Type\";\nexport var Flaw;\n(function (Flaw) {\n Flaw.type = object({\n message: string().optional(),\n isFlaw: boolean().optional(),\n property: string().optional(),\n type: string(),\n flaws: array(lazy(() => Flaw.type)).optional(),\n condition: string().optional(),\n }, \"Flaw\");\n Flaw.is = Flaw.type.is;\n Flaw.flaw = Flaw.type.flaw;\n})(Flaw || (Flaw = {}));\n//# sourceMappingURL=Flaw.js.map","import { Type } from \"./Type\";\nclass IslyFromIs extends Type {\n constructor(name, isFunction) {\n super(name);\n this.isFunction = isFunction;\n this.is = (value => this.isFunction(value));\n }\n}\nexport function fromIs(name, is) {\n return new IslyFromIs(name, is);\n}\n//# sourceMappingURL=fromIs.js.map","import { Type } from \"./Type\";\nconst criteriaFunctions = {\n positive: {\n is: (value) => value > 0,\n condition: \"> 0\",\n },\n negative: {\n is: (value) => value < 0,\n condition: \"< 0\",\n },\n integer: {\n is: (value) => Number.isInteger(value),\n condition: \"Number.isInteger\",\n },\n};\nfunction fromCriteria(criteria) {\n return /* Eg: criteria == 42 */ typeof criteria == \"number\"\n ? [value => value == criteria, \" == \" + criteria.toString()]\n : // Eg: criteria == [0,1,2]\n ((c) => Array.isArray(c) && c.every(c => typeof c == \"number\"))(criteria)\n ? [value => criteria.map(fromCriteria).some(c => c[0](value)), criteria.join(\" | \")]\n : // Eg: criteria == [\"positive\", \"negative\"]\n ((c) => Array.isArray(c) && c.every(c => typeof c == \"string\" && c in criteriaFunctions))(criteria)\n ? [\n value => criteria.map(fromCriteria).every(c => c[0](value)),\n criteria\n .map(fromCriteria)\n .map(c => c[1])\n .join(\" & \"),\n ]\n : // Eg: criteria == () => true\n typeof criteria === \"function\"\n ? [criteria, \"custom\"]\n : // Eg: criteria == \"positive\"\n criteria in criteriaFunctions\n ? [criteriaFunctions[criteria].is, criteriaFunctions[criteria].condition]\n : // Eg: criteria is unknown\n [() => false, \"Unknown criteria\"];\n}\nclass IslyNumber extends Type {\n constructor(isFunction, condition) {\n super(\"number\", condition);\n this.isFunction = isFunction;\n this.is = (value => typeof value == \"number\" &&\n !Number.isNaN(value - value) && // NaN-NaN==NaN && Infinity-Infinity==NaN && (-Infinity)-(-Infinity)==NaN\n (!this.isFunction || this.isFunction(value)));\n }\n}\n/**\n * NaN, Infinite and -Infinite is not considered to be numbers by this type,\n * since that it is hardly ever desirable when validating input data.\n *\n * @param criteria\n * @returns\n */\nexport function number(criteria) {\n const [isFunction, condition] = criteria == undefined ? [undefined, undefined] : fromCriteria(criteria);\n return new IslyNumber(isFunction, condition);\n}\n//# sourceMappingURL=number.js.map","import { Type } from \"./Type\";\nclass IslyRecord extends Type {\n constructor(keyType, valueType) {\n super(() => `Record<${keyType.name}, ${valueType.name}>`);\n this.keyType = keyType;\n this.valueType = valueType;\n this.is = (value => !!(value &&\n typeof value == \"object\" &&\n !globalThis.Array.isArray(value) &&\n globalThis.Object.entries(value).every(([key, value]) => this.keyType.is(this.keyType.name == \"number\" && `${+key}` == key ? +key : key) && this.valueType.is(value))));\n }\n createFlaw(value) {\n return {\n flaws: value &&\n typeof value == \"object\" &&\n !globalThis.Array.isArray(value) &&\n globalThis.Object.entries(value).flatMap(([key, propertyValue]) => [\n this.keyType.flaw(this.keyType.name == \"number\" && `${+key}` == key ? +key : key),\n this.valueType.flaw(propertyValue),\n ]\n .map((flaw, index) => (flaw.isFlaw ?? true) && { property: key + ` (${[\"key\", \"value\"][index]})`, ...flaw })\n .filter(Boolean)),\n };\n }\n getValue(value) {\n return globalThis.Object.fromEntries(globalThis.Object.entries(value).map(([key, value]) => [key, this.valueType.get(value)]));\n }\n}\nexport function record(keyType, valueType) {\n return new IslyRecord(keyType, valueType);\n}\n//# sourceMappingURL=record.js.map","import { Type } from \"./Type\";\nclass IslyUnion extends Type {\n constructor(...types) {\n super(() => types.map(type => type.name).join(\" | \"));\n this.is = (value => this.types.some(type => type.is(value)));\n this.types = types;\n }\n createFlaw(value) {\n return {\n flaws: this.types.map(type => type.flaw(value)).filter(flaw => flaw),\n };\n }\n getValue(value) {\n return this.types.find(type => type.is(value))?.get(value);\n }\n}\nexport function union(...types) {\n return new IslyUnion(...types);\n}\n//# sourceMappingURL=union.js.map","import { Type } from \"./Type\";\nclass IslyUndefined extends Type {\n constructor() {\n super(...arguments);\n this.is = (value => value === undefined);\n }\n}\nexport function islyUndefined(name) {\n return new IslyUndefined(name ?? \"undefined\");\n}\n//# sourceMappingURL=undefined.js.map","import { isly } from \"isly\"\n\nexport type Color = typeof Color.types[number]\n\nexport namespace Color {\n\texport const types = [\n\t\t\"default\",\n\t\t\"primary\",\n\t\t\"secondary\",\n\t\t\"tertiary\",\n\t\t\"success\",\n\t\t\"warning\",\n\t\t\"danger\",\n\t\t\"light\",\n\t\t\"medium\",\n\t\t\"dark\",\n\t] as const\n\texport const type = isly.string(types)\n\texport const is = type.is\n}\n","type Name =\n\t| \"accessibility\"\n\t| \"add-circle\"\n\t| \"add\"\n\t| \"airplane\"\n\t| \"alarm\"\n\t| \"albums\"\n\t| \"alert-circle\"\n\t| \"alert\"\n\t| \"american-football\"\n\t| \"analytics\"\n\t| \"aperture\"\n\t| \"apps\"\n\t| \"archive\"\n\t| \"arrow-back-circle\"\n\t| \"arrow-back\"\n\t| \"arrow-down-circle\"\n\t| \"arrow-down\"\n\t| \"arrow-forward-circle\"\n\t| \"arrow-forward\"\n\t| \"arrow-redo-circle\"\n\t| \"arrow-redo\"\n\t| \"arrow-undo-circle\"\n\t| \"arrow-undo\"\n\t| \"arrow-up-circle\"\n\t| \"arrow-up\"\n\t| \"at-circle\"\n\t| \"at\"\n\t| \"attach\"\n\t| \"backspace\"\n\t| \"bag\"\n\t| \"bag-add\"\n\t| \"bag-check\"\n\t| \"bag-handle\"\n\t| \"balloon\"\n\t| \"ban\"\n\t| \"bandage\"\n\t| \"barbell\"\n\t| \"bar-chart\"\n\t| \"barcode\"\n\t| \"baseball\"\n\t| \"basketball\"\n\t| \"basket\"\n\t| \"battery-charging\"\n\t| \"battery-dead\"\n\t| \"battery-full\"\n\t| \"battery-half\"\n\t| \"beaker\"\n\t| \"bed\"\n\t| \"beer\"\n\t| \"bicycle\"\n\t| \"bluetooth\"\n\t| \"boat\"\n\t| \"body\"\n\t| \"bonfire\"\n\t| \"bowling-ball\"\n\t| \"bookmarks\"\n\t| \"bookmark\"\n\t| \"book\"\n\t| \"briefcase\"\n\t| \"browsers\"\n\t| \"brush\"\n\t| \"bug\"\n\t| \"build\"\n\t| \"bulb\"\n\t| \"business\"\n\t| \"bus\"\n\t| \"cafe\"\n\t| \"calculator\"\n\t| \"calendar\"\n\t| \"calendar-clear\"\n\t| \"calendar-number\"\n\t| \"call\"\n\t| \"camera-reverse\"\n\t| \"camera\"\n\t| \"card\"\n\t| \"caret-back-circle\"\n\t| \"caret-back\"\n\t| \"caret-down-circle\"\n\t| \"caret-down\"\n\t| \"caret-forward-circle\"\n\t| \"caret-forward\"\n\t| \"caret-up-circle\"\n\t| \"caret-up\"\n\t| \"car-sport\"\n\t| \"car\"\n\t| \"cart\"\n\t| \"cash\"\n\t| \"cellular\"\n\t| \"chatbox-ellipses\"\n\t| \"chatbox\"\n\t| \"chatbubble-ellipses\"\n\t| \"chatbubbles\"\n\t| \"chatbubble\"\n\t| \"checkbox\"\n\t| \"checkmark-circle\"\n\t| \"checkmark-done-circle\"\n\t| \"checkmark-done\"\n\t| \"checkmark\"\n\t| \"chevron-back-circle\"\n\t| \"chevron-back\"\n\t| \"chevron-down-circle\"\n\t| \"chevron-down\"\n\t| \"chevron-forward-circle\"\n\t| \"chevron-forward\"\n\t| \"chevron-up-circle\"\n\t| \"chevron-up\"\n\t| \"clipboard\"\n\t| \"close-circle\"\n\t| \"close\"\n\t| \"cloud-circle\"\n\t| \"cloud-done\"\n\t| \"cloud-download\"\n\t| \"cloud-offline\"\n\t| \"cloud\"\n\t| \"cloud-upload\"\n\t| \"cloudy-night\"\n\t| \"cloudy\"\n\t| \"code-download\"\n\t| \"code-slash\"\n\t| \"code\"\n\t| \"code-working\"\n\t| \"cog\"\n\t| \"color-fill\"\n\t| \"color-filter\"\n\t| \"color-palette\"\n\t| \"color-wand\"\n\t| \"compass\"\n\t| \"construct\"\n\t| \"contract\"\n\t| \"contrast\"\n\t| \"copy\"\n\t| \"create\"\n\t| \"crop\"\n\t| \"cube\"\n\t| \"cut\"\n\t| \"desktop\"\n\t| \"diamond\"\n\t| \"dice\"\n\t| \"disc\"\n\t| \"document-attach\"\n\t| \"document-lock\"\n\t| \"documents\"\n\t| \"document\"\n\t| \"document-text\"\n\t| \"download\"\n\t| \"duplicate\"\n\t| \"ear\"\n\t| \"earth\"\n\t| \"easel\"\n\t| \"egg\"\n\t| \"ellipse\"\n\t| \"ellipsis-horizontal-circle\"\n\t| \"ellipsis-horizontal\"\n\t| \"ellipsis-vertical-circle\"\n\t| \"ellipsis-vertical\"\n\t| \"enter\"\n\t| \"exit\"\n\t| \"expand\"\n\t| \"eyedrop\"\n\t| \"eye-off\"\n\t| \"eye\"\n\t| \"fast-food\"\n\t| \"female\"\n\t| \"file-tray-full\"\n\t| \"file-tray-stacked\"\n\t| \"file-tray\"\n\t| \"film\"\n\t| \"filter\"\n\t| \"filter-circle\"\n\t| \"finger-print\"\n\t| \"fish\"\n\t| \"fitness\"\n\t| \"flag\"\n\t| \"flame\"\n\t| \"flashlight\"\n\t| \"flash-off\"\n\t| \"flash\"\n\t| \"flask\"\n\t| \"flower\"\n\t| \"folder-open\"\n\t| \"folder\"\n\t| \"football\"\n\t| \"footsteps\"\n\t| \"funnel\"\n\t| \"game-controller\"\n\t| \"gift\"\n\t| \"git-branch\"\n\t| \"git-commit\"\n\t| \"git-compare\"\n\t| \"git-merge\"\n\t| \"git-network\"\n\t| \"git-pull-request\"\n\t| \"glasses\"\n\t| \"globe\"\n\t| \"golf\"\n\t| \"grid\"\n\t| \"hammer\"\n\t| \"hand-left\"\n\t| \"hand-right\"\n\t| \"happy\"\n\t| \"hardware-chip\"\n\t| \"headset\"\n\t| \"heart-circle\"\n\t| \"heart-dislike-circle\"\n\t| \"heart-dislike\"\n\t| \"heart-half\"\n\t| \"heart\"\n\t| \"help-buoy\"\n\t| \"help-circle\"\n\t| \"help\"\n\t| \"home\"\n\t| \"hourglass\"\n\t| \"ice-cream\"\n\t| \"id-card\"\n\t| \"images\"\n\t| \"image\"\n\t| \"infinite\"\n\t| \"information-circle\"\n\t| \"information\"\n\t| \"journal\"\n\t| \"invert-mode\"\n\t| \"keypad\"\n\t| \"key\"\n\t| \"language\"\n\t| \"laptop\"\n\t| \"layers\"\n\t| \"leaf\"\n\t| \"library\"\n\t| \"link\"\n\t| \"list-circle\"\n\t| \"list\"\n\t| \"locate\"\n\t| \"location\"\n\t| \"lock-closed\"\n\t| \"lock-open\"\n\t| \"log-in\"\n\t| \"logo-alipay\"\n\t| \"logo-amazon\"\n\t| \"logo-amplify\"\n\t| \"logo-android\"\n\t| \"logo-angular\"\n\t| \"logo-apple-appstore\"\n\t| \"logo-apple\"\n\t| \"logo-apple-ar\"\n\t| \"logo-behance\"\n\t| \"logo-bitbucket\"\n\t| \"logo-bitcoin\"\n\t| \"logo-buffer\"\n\t| \"logo-capacitor\"\n\t| \"logo-chrome\"\n\t| \"logo-closed-captioning\"\n\t| \"logo-codepen\"\n\t| \"logo-css3\"\n\t| \"logo-designernews\"\n\t| \"logo-deviantart\"\n\t| \"logo-discord\"\n\t| \"logo-docker\"\n\t| \"logo-dribbble\"\n\t| \"logo-dropbox\"\n\t| \"logo-edge\"\n\t| \"logo-electron\"\n\t| \"logo-euro\"\n\t| \"logo-facebook\"\n\t| \"logo-firebase\"\n\t| \"logo-firefox\"\n\t| \"logo-flickr\"\n\t| \"logo-foursquare\"\n\t| \"logo-github\"\n\t| \"logo-gitlab\"\n\t| \"logo-google-playstore\"\n\t| \"logo-google\"\n\t| \"logo-hackernews\"\n\t| \"logo-html5\"\n\t| \"logo-instagram\"\n\t| \"logo-ionic\"\n\t| \"logo-ionitron\"\n\t| \"logo-javascript\"\n\t| \"logo-laravel\"\n\t| \"logo-linkedin\"\n\t| \"logo-markdown\"\n\t| \"logo-mastodon\"\n\t| \"logo-medium\"\n\t| \"logo-microsoft\"\n\t| \"logo-nodejs\"\n\t| \"logo-no-smoking\"\n\t| \"logo-npm\"\n\t| \"logo-octocat\"\n\t| \"logo-paypal\"\n\t| \"logo-pinterest\"\n\t| \"logo-playstation\"\n\t| \"logo-pwa\"\n\t| \"logo-python\"\n\t| \"logo-react\"\n\t| \"logo-reddit\"\n\t| \"logo-rss\"\n\t| \"logo-sass\"\n\t| \"logo-skype\"\n\t| \"logo-slack\"\n\t| \"logo-snapchat\"\n\t| \"logo-soundcloud\"\n\t| \"logo-stackoverflow\"\n\t| \"logo-steam\"\n\t| \"logo-stencil\"\n\t| \"logo-tableau\"\n\t| \"logo-tiktok\"\n\t| \"logo-tumblr\"\n\t| \"logo-tux\"\n\t| \"logo-twitch\"\n\t| \"logo-twitter\"\n\t| \"logo-usd\"\n\t| \"log-out\"\n\t| \"logo-web-component\"\n\t| \"logo-venmo\"\n\t| \"logo-whatsapp\"\n\t| \"logo-vercel\"\n\t| \"logo-vimeo\"\n\t| \"logo-windows\"\n\t| \"logo-vk\"\n\t| \"logo-wordpress\"\n\t| \"logo-vue\"\n\t| \"logo-xbox\"\n\t| \"logo-xing\"\n\t| \"logo-yahoo\"\n\t| \"logo-yen\"\n\t| \"logo-youtube\"\n\t| \"magnet\"\n\t| \"mail-open\"\n\t| \"mail\"\n\t| \"mail-unread\"\n\t| \"male-female\"\n\t| \"male\"\n\t| \"man\"\n\t| \"map\"\n\t| \"medal\"\n\t| \"medical\"\n\t| \"medkit\"\n\t| \"megaphone\"\n\t| \"menu\"\n\t| \"mic-circle\"\n\t| \"mic-off-circle\"\n\t| \"mic-off\"\n\t| \"mic\"\n\t| \"moon\"\n\t| \"move\"\n\t| \"musical-notes\"\n\t| \"musical-note\"\n\t| \"navigate-circle\"\n\t| \"navigate\"\n\t| \"newspaper\"\n\t| \"notifications-circle\"\n\t| \"notifications-off-circle\"\n\t| \"notifications-off\"\n\t| \"notifications\"\n\t| \"nuclear\"\n\t| \"nutrition\"\n\t| \"open\"\n\t| \"options\"\n\t| \"paper-plane\"\n\t| \"partly-sunny\"\n\t| \"pause-circle\"\n\t| \"pause\"\n\t| \"paw\"\n\t| \"pencil\"\n\t| \"people-circle\"\n\t| \"people\"\n\t| \"person-add\"\n\t| \"person-circle\"\n\t| \"person-remove\"\n\t| \"person\"\n\t| \"phone-landscape\"\n\t| \"phone-portrait\"\n\t| \"pie-chart\"\n\t| \"pin\"\n\t| \"pint\"\n\t| \"pizza\"\n\t| \"planet\"\n\t| \"play-back-circle\"\n\t| \"play-back\"\n\t| \"play-circle\"\n\t| \"play-forward-circle\"\n\t| \"play-forward\"\n\t| \"play-skip-back-circle\"\n\t| \"play-skip-back\"\n\t| \"play-skip-forward-circle\"\n\t| \"play-skip-forward\"\n\t| \"play\"\n\t| \"podium\"\n\t| \"power\"\n\t| \"pricetags\"\n\t| \"prism\"\n\t| \"pricetag\"\n\t| \"print\"\n\t| \"pulse\"\n\t| \"push\"\n\t| \"qr-code\"\n\t| \"radio-button-off\"\n\t| \"radio-button-on\"\n\t| \"radio\"\n\t| \"rainy\"\n\t| \"reader\"\n\t| \"receipt\"\n\t| \"recording\"\n\t| \"refresh-circle\"\n\t| \"refresh\"\n\t| \"reload-circle\"\n\t| \"reload\"\n\t| \"remove-circle\"\n\t| \"remove\"\n\t| \"reorder-four\"\n\t| \"reorder-three\"\n\t| \"reorder-two\"\n\t| \"repeat\"\n\t| \"resize\"\n\t| \"restaurant\"\n\t| \"return-down-back\"\n\t| \"return-down-forward\"\n\t| \"return-up-back\"\n\t| \"return-up-forward\"\n\t| \"ribbon\"\n\t| \"rocket\"\n\t| \"rose\"\n\t| \"sad\"\n\t| \"save\"\n\t| \"scan-circle\"\n\t| \"scale\"\n\t| \"scan\"\n\t| \"school\"\n\t| \"search-circle\"\n\t| \"search\"\n\t| \"send\"\n\t| \"server\"\n\t| \"settings\"\n\t| \"shapes\"\n\t| \"share-social\"\n\t| \"share\"\n\t| \"shield-checkmark\"\n\t| \"shield-half\"\n\t| \"shield\"\n\t| \"shirt\"\n\t| \"shuffle\"\n\t| \"skull\"\n\t| \"snow\"\n\t| \"sparkles\"\n\t| \"speedometer\"\n\t| \"square\"\n\t| \"star-half\"\n\t| \"star\"\n\t| \"stats-chart\"\n\t| \"stop-circle\"\n\t| \"stop\"\n\t| \"stopwatch\"\n\t| \"storefront\"\n\t| \"subway\"\n\t| \"sunny\"\n\t| \"swap-horizontal\"\n\t| \"swap-vertical\"\n\t| \"sync-circle\"\n\t| \"sync\"\n\t| \"tablet-landscape\"\n\t| \"tablet-portrait\"\n\t| \"telescope\"\n\t| \"tennisball\"\n\t| \"terminal\"\n\t| \"text\"\n\t| \"thermometer\"\n\t| \"thumbs-down\"\n\t| \"thumbs-up\"\n\t| \"thunderstorm\"\n\t| \"ticket\"\n\t| \"timer\"\n\t| \"time\"\n\t| \"today\"\n\t| \"toggle\"\n\t| \"trail-sign\"\n\t| \"train\"\n\t| \"transgender\"\n\t| \"trash-bin\"\n\t| \"trash\"\n\t| \"trending-down\"\n\t| \"trending-up\"\n\t| \"triangle\"\n\t| \"trophy\"\n\t| \"tv\"\n\t| \"umbrella\"\n\t| \"unlink\"\n\t| \"videocam-off\"\n\t| \"walk\"\n\t| \"wallet\"\n\t| \"warning\"\n\t| \"watch\"\n\t| \"water\"\n\t| \"videocam\"\n\t| \"wifi\"\n\t| \"wine\"\n\t| \"volume-high\"\n\t| \"volume-low\"\n\t| \"volume-medium\"\n\t| \"volume-mute\"\n\t| \"volume-off\"\n\t| \"woman\"\n\ntype Variants = \"outline\" | \"sharp\"\nexport type Icon = Name | `${Name}-${Variants}`\n\nexport namespace Icon {\n\tconst names: Record<string, string | undefined> & { \"*\": string } = {\n\t\t\"*\": \"https://ionicons.pages.dev/svg/${name}.svg\",\n\t}\n\tconst cache: { [url: string]: Promise<string | undefined> | undefined } = {}\n\tasync function fetch(url: string): Promise<string | undefined> {\n\t\tconst response = await globalThis.fetch(url)\n\t\treturn response.ok ? response.text() : undefined\n\t}\n\texport async function load(name: string): Promise<string | undefined> {\n\t\tconst url = (names[name] ?? names[\"*\"]).replace(\"${name}\", name)\n\t\treturn cache[url] ?? (cache[url] = fetch(url))\n\t}\n\texport function add(url: string, ...name: string[]): void {\n\t\tfor (const n of name)\n\t\t\tnames[n] = url\n\t}\n}\n","export interface Message<T> {\n\tdestination: string\n\tcontent: T\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport class Message<T> {\n\tstatic is(value: Message<any> | any): value is Message<any> {\n\t\treturn typeof value == \"object\" && typeof value.destination == \"string\" && value.content != undefined\n\t}\n\tstatic send(message: Message<any>, context?: Window): void\n\tstatic send(destination: string, content: any, context?: Window): void\n\tstatic send(message: string | Message<any>, content?: any | Window, context?: Window): void {\n\t\tif (Message.is(message) && context == undefined) {\n\t\t\tcontext = content as Window\n\t\t\tif (!context)\n\t\t\t\tcontext = window\n\t\t\tconst destination = message.destination.split(\"#\", 2)\n\t\t\tmessage = { destination: destination[1], content: message.content }\n\t\t\tcontext.postMessage(message, destination[0])\n\t\t} else if (typeof context != \"string\") {\n\t\t\tif (!context)\n\t\t\t\tcontext = window\n\t\t\tif (typeof message == \"string\")\n\t\t\t\tMessage.send({ destination: message, content }, context)\n\t\t}\n\t}\n\tstatic listen(origin: string, handle: (destination: string, content: any) => void, context?: Window): void {\n\t\tconst splitted = origin.split(\"#\", 2)\n\t\tlet destination = \"\"\n\t\tif (splitted.length == 2) {\n\t\t\torigin = splitted[0]\n\t\t\tdestination = splitted[1]\n\t\t}\n\t\t;(context || window).addEventListener(\"message\", (e: MessageEvent) => {\n\t\t\tconst message = e.data\n\t\t\tif (\n\t\t\t\tMessage.is(message) &&\n\t\t\t\t(origin == \"*\" || e.origin == origin) &&\n\t\t\t\t(destination == \"\" || message.destination == destination)\n\t\t\t)\n\t\t\t\thandle(message.destination, message.content)\n\t\t})\n\t}\n}\n","export interface Trigger {\n\tname: string\n\tvalue?: any\n}\nexport class Trigger {\n\tstatic is(value: Trigger | any): value is Trigger {\n\t\treturn typeof value == \"object\" && typeof value.name == \"string\"\n\t}\n}\n","export type WithListenable<T extends Record<string, any>> = T & Listenable<T>\n\nexport type CanBeListenable = Record<string, any>\n\nexport interface HasListenable<T extends CanBeListenable> {\n\treadonly listenable: WithListenable<T>\n}\n\nexport class Listenable<T extends CanBeListenable> {\n\t#listeners: Listeners<ListenableProperties<T>> = {}\n\tlisten<K extends keyof ListenableProperties<T>>(\n\t\tthis: T & Listenable<T>,\n\t\tproperty: K,\n\t\tlistener: Listener<T[K]>,\n\t\toptions?: { lazy?: boolean }\n\t): void {\n\t\tthis.#listeners[property]?.push(listener) ?? (this.#listeners[property] = [listener])\n\t\tif (!options?.lazy)\n\t\t\tlistener(this[property])\n\t}\n\tunlisten<K extends keyof ListenableProperties<T>>(property: K, listener: Listener<T[K]>): void {\n\t\tconst index = this.#listeners[property]?.indexOf(listener)\n\t\tindex != undefined && index >= 0 && this.#listeners[property]?.splice(index, 1)\n\t}\n\tbatchListen(this: T & Listenable<T>, listeners: ListenerBatch<T>, options?: { lazy?: boolean }) {\n\t\tfor (const key in listeners) {\n\t\t\tconst listener = listeners[key]\n\t\t\tlistener && this.listen(key, listener, options)\n\t\t}\n\t}\n\tbatchUnlisten(listeners: ListenerBatch<T>) {\n\t\tfor (const key in listeners) {\n\t\t\tconst listener = listeners[key]\n\t\t\tlistener && this.unlisten(key, listener)\n\t\t}\n\t}\n\n\tstatic load<T extends HasListenable<CanBeListenable>>(backend: T): WithListenable<T> {\n\t\tconst result = backend.listenable\n\n\t\treturn Object.defineProperties(result, getProperties(backend)) as WithListenable<T>\n\n\t\tfunction getProperties(backend: any) {\n\t\t\treturn Object.fromEntries(\n\t\t\t\t(\n\t\t\t\t\tObject.entries({\n\t\t\t\t\t\t...Object.getOwnPropertyDescriptors(backend),\n\t\t\t\t\t\t...Object.getOwnPropertyDescriptors(Object.getPrototypeOf(backend)),\n\t\t\t\t\t}) as [keyof T, PropertyDescriptor][]\n\t\t\t\t).map(([name, descriptor]) => [\n\t\t\t\t\tname,\n\t\t\t\t\ttypeof descriptor.value == \"function\"\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tget() {\n\t\t\t\t\t\t\t\t\treturn backend[name].bind(backend)\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t }\n\t\t\t\t\t\t: descriptor.writable || descriptor.set\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tget() {\n\t\t\t\t\t\t\t\t\treturn backend[name]\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tset(value: any) {\n\t\t\t\t\t\t\t\t\tbackend[name] = value\n\t\t\t\t\t\t\t\t\tresult.#listeners[name]?.forEach(listener => listener(backend[name]))\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t }\n\t\t\t\t\t\t: {\n\t\t\t\t\t\t\t\tget() {\n\t\t\t\t\t\t\t\t\treturn backend[name]\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t },\n\t\t\t\t])\n\t\t\t)\n\t\t}\n\t}\n}\ntype ListenableProperties<T> = {\n\t// eslint-disable-next-line @typescript-eslint/ban-types\n\t[P in keyof T as T[P] extends Function ? never : P]: T[P]\n}\n\nexport type Listener<V> = (value: V) => void\nexport type Listeners<T> = {\n\t[K in keyof T]?: Listener<T[K]>[]\n}\n\nexport type ListenerBatch<T> = { [K in keyof ListenableProperties<T>]?: Listener<T[K]> }\n","import { isly } from \"isly\"\n\ntype Value = string | number | boolean | Blob | undefined\nexport type Data = { [name: string]: Data | Value }\n\nexport namespace Data {\n\texport const valueType = isly.union<Value, string, number, boolean, Blob, undefined>(\n\t\tisly.string(),\n\t\tisly.number(),\n\t\tisly.boolean(),\n\t\tisly.fromIs(\"Blob\", value => value instanceof Blob),\n\t\tisly.undefined()\n\t)\n\texport const type: isly.Type<Data> = isly.record<Data>(\n\t\tisly.string(),\n\t\tisly.union(\n\t\t\tisly.lazy(() => type, \"Data\"),\n\t\t\tvalueType\n\t\t)\n\t)\n\n\texport function set(data: Data, [head, ...tail]: string[], value: Value): Data {\n\t\tconst current = data[head ?? \"\"]\n\t\treturn {\n\t\t\t...data,\n\t\t\t[head ?? \"\"]: !tail.length\n\t\t\t\t? value\n\t\t\t\t: set(typeof current == \"object\" && !(current instanceof Blob) ? current : {}, tail, value),\n\t\t}\n\t}\n\texport function deepen(data: Record<string, Value>): Data {\n\t\treturn merge({}, data)\n\t}\n\texport function merge(data: Data, changes: Record<string, any>): Data {\n\t\treturn Object.entries(changes).reduce((r, [name, value]) => set(r, name.split(\".\"), value), data)\n\t}\n}\n"],"version":3}
|