smoothly 0.3.38 → 1.0.0-alpha.10
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/GoogleFont-6c4f0da1.js +2 -0
- package/dist/cjs/GoogleFont-6c4f0da1.js.map +1 -0
- package/dist/cjs/Listenable-c8d2f8ef.js +2 -0
- package/dist/cjs/Listenable-c8d2f8ef.js.map +1 -0
- package/dist/cjs/getLanguage-430ecf04.js +2 -0
- package/dist/cjs/getLanguage-430ecf04.js.map +1 -0
- package/dist/cjs/{index-de46f836.js → index-8352a4e0.js} +106 -1
- package/dist/cjs/index-8352a4e0.js.map +1 -0
- package/dist/cjs/{index-879bbabb.js → index-b282ee83.js} +3 -1
- package/dist/cjs/index-b282ee83.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -2
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +6 -3
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/{smoothly-accordion_53.cjs.entry.js → smoothly-accordion_60.cjs.entry.js} +5430 -460
- package/dist/cjs/smoothly-accordion_60.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-address-display.cjs.entry.js +32 -0
- package/dist/cjs/smoothly-address-display.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-address.cjs.entry.js +23 -0
- package/dist/cjs/smoothly-address.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-addresses.cjs.entry.js +23 -0
- package/dist/cjs/smoothly-addresses.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-color.cjs.entry.js +22 -0
- package/dist/cjs/smoothly-color.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-country.cjs.entry.js +3 -1
- package/dist/cjs/smoothly-country.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-google-font.cjs.entry.js +3 -1
- package/dist/cjs/smoothly-google-font.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-radio-group.cjs.entry.js +3 -1
- package/dist/cjs/smoothly-radio-group.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-reorder.cjs.entry.js +3 -1
- package/dist/cjs/smoothly-reorder.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +3 -1
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +3 -1
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly.cjs.js +9 -3
- package/dist/cjs/smoothly.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +12 -1
- package/dist/collection/components/App.js +1 -0
- package/dist/collection/components/App.js.map +1 -0
- package/dist/collection/components/Button.js +5 -0
- package/dist/collection/components/Button.js.map +1 -0
- package/dist/collection/components/accordion/index.js +1 -0
- package/dist/collection/components/accordion/index.js.map +1 -0
- package/dist/collection/components/accordion-item/index.js +1 -0
- package/dist/collection/components/accordion-item/index.js.map +1 -0
- package/dist/collection/components/address/index.js +65 -0
- package/dist/collection/components/address/index.js.map +1 -0
- package/dist/collection/components/address/style.css +4 -0
- package/dist/collection/components/address-display/index.js +72 -0
- package/dist/collection/components/address-display/index.js.map +1 -0
- package/dist/collection/components/address-display/style.css +4 -0
- package/dist/collection/components/addresses/index.js +62 -0
- package/dist/collection/components/addresses/index.js.map +1 -0
- package/dist/collection/components/addresses/style.css +4 -0
- package/dist/collection/components/app/index.js +1 -0
- package/dist/collection/components/app/index.js.map +1 -0
- package/dist/collection/components/app-demo/index.js +1 -0
- package/dist/collection/components/app-demo/index.js.map +1 -0
- package/dist/collection/components/backtotop/index.js +1 -0
- package/dist/collection/components/backtotop/index.js.map +1 -0
- package/dist/collection/components/button/index.js +50 -26
- package/dist/collection/components/button/index.js.map +1 -0
- package/dist/collection/components/button/style.css +184 -31
- package/dist/collection/components/calendar/generate.js +1 -0
- package/dist/collection/components/calendar/generate.js.map +1 -0
- package/dist/collection/components/calendar/index.js +25 -46
- package/dist/collection/components/calendar/index.js.map +1 -0
- package/dist/collection/components/calendar/style.css +8 -12
- package/dist/collection/components/checkbox/index.js +90 -41
- package/dist/collection/components/checkbox/index.js.map +1 -0
- package/dist/collection/components/checkbox/style.css +56 -9
- package/dist/collection/components/checkbox/translation/index.js +1 -0
- package/dist/collection/components/checkbox/translation/index.js.map +1 -0
- package/dist/collection/components/checkbox/translation/sv.js +1 -0
- package/dist/collection/components/checkbox/translation/sv.js.map +1 -0
- package/dist/collection/components/color/index.js +48 -0
- package/dist/collection/components/color/index.js.map +1 -0
- package/dist/collection/components/color/style.css +69 -0
- package/dist/collection/components/country/index.js +1 -0
- package/dist/collection/components/country/index.js.map +1 -0
- package/dist/collection/components/dialog/index.js +1 -0
- package/dist/collection/components/dialog/index.js.map +1 -0
- package/dist/collection/components/dialog-demo/index.js +1 -0
- package/dist/collection/components/dialog-demo/index.js.map +1 -0
- package/dist/collection/components/display/index.js +1 -0
- package/dist/collection/components/display/index.js.map +1 -0
- package/dist/collection/components/display-amount/index.js +1 -0
- package/dist/collection/components/display-amount/index.js.map +1 -0
- package/dist/collection/components/display-date-time/index.js +1 -0
- package/dist/collection/components/display-date-time/index.js.map +1 -0
- package/dist/collection/components/display-demo/index.js +2 -1
- package/dist/collection/components/display-demo/index.js.map +1 -0
- package/dist/collection/components/filter/Clearable.js +8 -0
- package/dist/collection/components/filter/Clearable.js.map +1 -0
- package/dist/collection/components/filter/index.js +186 -0
- package/dist/collection/components/filter/index.js.map +1 -0
- package/dist/collection/components/filter/input/index.js +376 -0
- package/dist/collection/components/filter/input/index.js.map +1 -0
- package/dist/collection/components/filter/input/style.css +5 -0
- package/dist/collection/components/filter/style.css +106 -0
- package/dist/collection/components/form/Clearable.js +8 -0
- package/dist/collection/components/form/Clearable.js.map +1 -0
- package/dist/collection/components/form/Data.js +15 -0
- package/dist/collection/components/form/Data.js.map +1 -0
- package/dist/collection/components/form/index.js +251 -0
- package/dist/collection/components/form/index.js.map +1 -0
- package/dist/collection/components/form/style.css +50 -0
- package/dist/collection/components/frame/index.js +13 -9
- package/dist/collection/components/frame/index.js.map +1 -0
- package/dist/collection/components/google-font/index.js +1 -0
- package/dist/collection/components/google-font/index.js.map +1 -0
- package/dist/collection/components/icon/index.js +7 -1
- package/dist/collection/components/icon/index.js.map +1 -0
- package/dist/collection/components/icon-demo/index.js +1 -0
- package/dist/collection/components/icon-demo/index.js.map +1 -0
- package/dist/collection/components/input/index.js +38 -10
- package/dist/collection/components/input/index.js.map +1 -0
- package/dist/collection/components/input/style.css +11 -6
- package/dist/collection/components/input-date/index.js +3 -26
- package/dist/collection/components/input-date/index.js.map +1 -0
- package/dist/collection/components/input-date/style.css +4 -4
- package/dist/collection/components/input-date-range/index.js +1 -0
- package/dist/collection/components/input-date-range/index.js.map +1 -0
- package/dist/collection/components/input-demo/index.js +38 -1
- package/dist/collection/components/input-demo/index.js.map +1 -0
- package/dist/collection/components/input-demo/style.css +4 -0
- package/dist/collection/components/input-month/index.js +1 -0
- package/dist/collection/components/input-month/index.js.map +1 -0
- package/dist/collection/components/item/index.js +1 -0
- package/dist/collection/components/item/index.js.map +1 -0
- package/dist/collection/components/menu-options/index.js +1 -0
- package/dist/collection/components/menu-options/index.js.map +1 -0
- package/dist/collection/components/notification/index.js +1 -0
- package/dist/collection/components/notification/index.js.map +1 -0
- package/dist/collection/components/notifier/index.js +1 -0
- package/dist/collection/components/notifier/index.js.map +1 -0
- package/dist/collection/components/option/index.js +1 -0
- package/dist/collection/components/option/index.js.map +1 -0
- package/dist/collection/components/picker/index.js +1 -0
- package/dist/collection/components/picker/index.js.map +1 -0
- package/dist/collection/components/popup/index.js +1 -0
- package/dist/collection/components/popup/index.js.map +1 -0
- package/dist/collection/components/quiet/index.js +1 -0
- package/dist/collection/components/quiet/index.js.map +1 -0
- package/dist/collection/components/radio/index.js +1 -0
- package/dist/collection/components/radio/index.js.map +1 -0
- package/dist/collection/components/radio/style.css +1 -1
- package/dist/collection/components/radio-button/Selected.js +1 -0
- package/dist/collection/components/radio-button/Selected.js.map +1 -0
- package/dist/collection/components/radio-button/index.js +1 -0
- package/dist/collection/components/radio-button/index.js.map +1 -0
- package/dist/collection/components/radio-button/item/index.js +6 -6
- package/dist/collection/components/radio-button/item/index.js.map +1 -0
- package/dist/collection/components/radio-button/item/style.css +4 -19
- package/dist/collection/components/radio-group/index.js +1 -0
- package/dist/collection/components/radio-group/index.js.map +1 -0
- package/dist/collection/components/reorder/Draggable.js +1 -0
- package/dist/collection/components/reorder/Draggable.js.map +1 -0
- package/dist/collection/components/reorder/Dragged.js +1 -0
- package/dist/collection/components/reorder/Dragged.js.map +1 -0
- package/dist/collection/components/reorder/index.js +1 -0
- package/dist/collection/components/reorder/index.js.map +1 -0
- package/dist/collection/components/room/index.js +1 -0
- package/dist/collection/components/room/index.js.map +1 -0
- package/dist/collection/components/select/index.js +1 -0
- package/dist/collection/components/select/index.js.map +1 -0
- package/dist/collection/components/select-demo/index.js +1 -1
- package/dist/collection/components/select-demo/index.js.map +1 -0
- package/dist/collection/components/selector/index.js +1 -0
- package/dist/collection/components/selector/index.js.map +1 -0
- package/dist/collection/components/skeleton/index.js +1 -0
- package/dist/collection/components/skeleton/index.js.map +1 -0
- package/dist/collection/components/spinner/index.js +1 -0
- package/dist/collection/components/spinner/index.js.map +1 -0
- package/dist/collection/components/submit/index.js +59 -116
- package/dist/collection/components/submit/index.js.map +1 -0
- package/dist/collection/components/summary/index.js +92 -0
- package/dist/collection/components/summary/index.js.map +1 -0
- package/dist/collection/components/summary/style.css +31 -0
- package/dist/collection/components/svg/index.js +1 -0
- package/dist/collection/components/svg/index.js.map +1 -0
- package/dist/collection/components/tab/index.js +1 -0
- package/dist/collection/components/tab/index.js.map +1 -0
- package/dist/collection/components/tab-switch/index.js +1 -0
- package/dist/collection/components/tab-switch/index.js.map +1 -0
- package/dist/collection/components/table/Selector.js +44 -0
- package/dist/collection/components/table/Selector.js.map +1 -0
- package/dist/collection/components/table/cell/index.js +1 -0
- package/dist/collection/components/table/cell/index.js.map +1 -0
- package/dist/collection/components/table/cell/style.css +10 -0
- package/dist/collection/components/table/demo/filtered/Root.js +2 -0
- package/dist/collection/components/table/demo/filtered/Root.js.map +1 -0
- package/dist/collection/components/table/demo/filtered/index.js +66 -0
- package/dist/collection/components/table/demo/filtered/index.js.map +1 -0
- package/dist/collection/components/table/demo/filtered/style.css +3 -0
- package/dist/collection/components/table/demo/index.js +4 -1
- package/dist/collection/components/table/demo/index.js.map +1 -0
- package/dist/collection/components/table/expandable/cell/index.js +1 -5
- package/dist/collection/components/table/expandable/cell/index.js.map +1 -0
- package/dist/collection/components/table/expandable/cell/style.css +10 -0
- package/dist/collection/components/table/expandable/row/index.js +1 -0
- package/dist/collection/components/table/expandable/row/index.js.map +1 -0
- package/dist/collection/components/table/header/index.js +1 -0
- package/dist/collection/components/table/header/index.js.map +1 -0
- package/dist/collection/components/table/header/style.css +11 -0
- package/dist/collection/components/table/index.js +20 -0
- package/dist/collection/components/table/index.js.map +1 -0
- package/dist/collection/components/table/row/index.js +1 -0
- package/dist/collection/components/table/row/index.js.map +1 -0
- package/dist/collection/components/toggle/style.css +36 -0
- package/dist/collection/components/toggle/toggle.js +129 -0
- package/dist/collection/components/toggle/toggle.js.map +1 -0
- package/dist/collection/components/toggle-switch/index.js +118 -0
- package/dist/collection/components/toggle-switch/index.js.map +1 -0
- package/dist/collection/components/toggle-switch/style.css +56 -0
- package/dist/collection/components/trigger/index.js +1 -23
- package/dist/collection/components/trigger/index.js.map +1 -0
- package/dist/collection/components/trigger/style.css +2 -2
- package/dist/collection/components/trigger-sink/index.js +1 -0
- package/dist/collection/components/trigger-sink/index.js.map +1 -0
- package/dist/collection/components/trigger-source/index.js +1 -0
- package/dist/collection/components/trigger-source/index.js.map +1 -0
- package/dist/collection/components/tuple/index.js +1 -0
- package/dist/collection/components/tuple/index.js.map +1 -0
- package/dist/collection/components/urlencoded/index.js +1 -0
- package/dist/collection/components/urlencoded/index.js.map +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/model/Autocomplete.js +1 -0
- package/dist/collection/model/Autocomplete.js.map +1 -0
- package/dist/collection/model/ClientIdentifier.js +1 -0
- package/dist/collection/model/ClientIdentifier.js.map +1 -0
- package/dist/collection/model/Color.js +1 -0
- package/dist/collection/model/Color.js.map +1 -0
- package/dist/collection/model/Fill.js +1 -0
- package/dist/collection/model/Fill.js.map +1 -0
- package/dist/collection/model/GoogleFont.js +1 -0
- package/dist/collection/model/GoogleFont.js.map +1 -0
- package/dist/collection/model/Listenable.js +1 -0
- package/dist/collection/model/Listenable.js.map +1 -0
- package/dist/collection/model/Message.js +1 -0
- package/dist/collection/model/Message.js.map +1 -0
- package/dist/collection/model/Notice.js +1 -0
- package/dist/collection/model/Notice.js.map +1 -0
- package/dist/collection/model/Option.js +1 -0
- package/dist/collection/model/Option.js.map +1 -0
- package/dist/collection/model/Trigger.js +1 -0
- package/dist/collection/model/Trigger.js.map +1 -0
- package/dist/collection/model/index.js +1 -0
- package/dist/collection/model/index.js.map +1 -0
- package/dist/collection/utilities/Cosmetic/Color/CommaRgb.js +1 -0
- package/dist/collection/utilities/Cosmetic/Color/CommaRgb.js.map +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Hex.js +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Hex.js.map +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Hsl.js +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Hsl.js.map +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Name.js +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Name.js.map +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Rgb.js +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Rgb.js.map +1 -0
- package/dist/collection/utilities/Cosmetic/Color/index.js +1 -0
- package/dist/collection/utilities/Cosmetic/Color/index.js.map +1 -0
- package/dist/collection/utilities/Cosmetic/index.js +1 -0
- package/dist/collection/utilities/Cosmetic/index.js.map +1 -0
- package/dist/collection/utilities/index.js +1 -0
- package/dist/collection/utilities/index.js.map +1 -0
- package/dist/custom-elements/index.d.ts +66 -0
- package/dist/custom-elements/index.js +5708 -644
- package/dist/custom-elements/index.js.map +1 -0
- package/dist/esm/GoogleFont-8474516b.js +2 -0
- package/dist/esm/GoogleFont-8474516b.js.map +1 -0
- package/dist/esm/Listenable-55a1f6af.js +2 -0
- package/dist/esm/Listenable-55a1f6af.js.map +1 -0
- package/dist/esm/getLanguage-cccb8418.js +2 -0
- package/dist/esm/getLanguage-cccb8418.js.map +1 -0
- package/dist/esm/{index-d7a4e405.js → index-2e948fc3.js} +3 -1
- package/dist/esm/index-2e948fc3.js.map +1 -0
- package/dist/esm/{index-d3421c35.js → index-7b57a52c.js} +106 -2
- package/dist/esm/index-7b57a52c.js.map +1 -0
- package/dist/esm/index.js +4 -2
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +6 -3
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/{smoothly-accordion_53.entry.js → smoothly-accordion_60.entry.js} +5423 -460
- package/dist/esm/smoothly-accordion_60.entry.js.map +1 -0
- package/dist/esm/smoothly-address-display.entry.js +28 -0
- package/dist/esm/smoothly-address-display.entry.js.map +1 -0
- package/dist/esm/smoothly-address.entry.js +19 -0
- package/dist/esm/smoothly-address.entry.js.map +1 -0
- package/dist/esm/smoothly-addresses.entry.js +19 -0
- package/dist/esm/smoothly-addresses.entry.js.map +1 -0
- package/dist/esm/smoothly-color.entry.js +18 -0
- package/dist/esm/smoothly-color.entry.js.map +1 -0
- package/dist/esm/smoothly-country.entry.js +3 -1
- package/dist/esm/smoothly-country.entry.js.map +1 -0
- package/dist/esm/smoothly-google-font.entry.js +3 -1
- package/dist/esm/smoothly-google-font.entry.js.map +1 -0
- package/dist/esm/smoothly-radio-group.entry.js +3 -1
- package/dist/esm/smoothly-radio-group.entry.js.map +1 -0
- package/dist/esm/smoothly-reorder.entry.js +3 -1
- package/dist/esm/smoothly-reorder.entry.js.map +1 -0
- package/dist/esm/smoothly-trigger-sink.entry.js +3 -1
- package/dist/esm/smoothly-trigger-sink.entry.js.map +1 -0
- package/dist/esm/smoothly-trigger-source.entry.js +3 -1
- package/dist/esm/smoothly-trigger-source.entry.js.map +1 -0
- package/dist/esm/smoothly.js +6 -3
- package/dist/esm/smoothly.js.map +1 -0
- package/dist/smoothly/index.esm.js +2 -1
- package/dist/smoothly/index.esm.js.map +1 -0
- package/dist/smoothly/p-156763cd.js +2 -1
- package/dist/smoothly/p-156763cd.js.map +1 -0
- package/dist/smoothly/p-5200d31c.entry.js +2 -0
- package/dist/smoothly/p-5200d31c.entry.js.map +1 -0
- package/dist/smoothly/p-5b28795c.entry.js +2 -0
- package/dist/smoothly/p-5b28795c.entry.js.map +1 -0
- package/dist/smoothly/p-5b6351f6.js +2 -1
- package/dist/smoothly/p-5b6351f6.js.map +1 -0
- package/dist/smoothly/p-70280a11.js +2 -0
- package/dist/smoothly/p-70280a11.js.map +1 -0
- package/dist/smoothly/p-712b362e.entry.js +2 -0
- package/dist/smoothly/p-712b362e.entry.js.map +1 -0
- package/dist/smoothly/p-79025273.entry.js +2 -0
- package/dist/smoothly/p-79025273.entry.js.map +1 -0
- package/dist/smoothly/p-940af6d3.entry.js +2 -0
- package/dist/smoothly/p-940af6d3.entry.js.map +1 -0
- package/dist/smoothly/{p-6630d923.entry.js → p-b49664d8.entry.js} +2 -1
- package/dist/smoothly/p-b49664d8.entry.js.map +1 -0
- package/dist/smoothly/p-bd478a53.js +2 -1
- package/dist/smoothly/p-bd478a53.js.map +1 -0
- package/dist/smoothly/p-c49d2094.entry.js +2 -0
- package/dist/smoothly/p-c49d2094.entry.js.map +1 -0
- package/dist/smoothly/p-c88ae468.js +3 -0
- package/dist/smoothly/p-c88ae468.js.map +1 -0
- package/dist/smoothly/p-c9a64fb5.entry.js +2 -0
- package/dist/smoothly/p-c9a64fb5.entry.js.map +1 -0
- package/dist/smoothly/p-d4182274.entry.js +2 -0
- package/dist/smoothly/p-d4182274.entry.js.map +1 -0
- package/dist/smoothly/p-d4d04558.entry.js +2 -0
- package/dist/smoothly/p-d4d04558.entry.js.map +1 -0
- package/dist/smoothly/p-e136b93e.entry.js +2 -0
- package/dist/smoothly/p-e136b93e.entry.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +2 -1
- package/dist/smoothly/smoothly.esm.js.map +1 -0
- package/dist/types/components/Button.d.ts +10 -0
- package/dist/types/components/address/index.d.ts +6 -0
- package/dist/types/components/address-display/index.d.ts +13 -0
- package/dist/types/components/addresses/index.d.ts +6 -0
- package/dist/types/components/button/index.d.ts +7 -5
- package/dist/types/components/calendar/index.d.ts +1 -3
- package/dist/types/components/checkbox/index.d.ts +6 -7
- package/dist/types/components/color/index.d.ts +5 -0
- package/dist/types/components/filter/Clearable.d.ts +6 -0
- package/dist/types/components/filter/index.d.ts +16 -0
- package/dist/types/components/filter/input/index.d.ts +25 -0
- package/dist/types/components/form/Clearable.d.ts +6 -0
- package/dist/types/components/form/Data.d.ts +9 -0
- package/dist/types/components/form/index.d.ts +20 -0
- package/dist/types/components/frame/index.d.ts +2 -2
- package/dist/types/components/input/index.d.ts +3 -8
- package/dist/types/components/input-date/index.d.ts +0 -2
- package/dist/types/components/radio-button/item/index.d.ts +1 -1
- package/dist/types/components/submit/index.d.ts +7 -11
- package/dist/types/components/summary/index.d.ts +7 -0
- package/dist/types/components/table/Selector.d.ts +10 -0
- package/dist/types/components/table/demo/filtered/Root.d.ts +27 -0
- package/dist/types/components/table/demo/filtered/index.d.ts +13 -0
- package/dist/types/components/table/expandable/cell/index.d.ts +0 -1
- package/dist/types/components/table/index.d.ts +1 -0
- package/dist/types/components/toggle/toggle.d.ts +9 -0
- package/dist/types/components/toggle-switch/index.d.ts +8 -0
- package/dist/types/components/trigger/index.d.ts +1 -2
- package/dist/types/components.d.ts +286 -31
- package/dist/types/index.d.ts +1 -1
- package/dist/types/model/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +20 -0
- package/loader/index.d.ts +9 -0
- package/package.json +6 -3
- package/dist/collection/components/submit/Data.js +0 -12
- package/dist/collection/components/submit/style.css +0 -37
- package/dist/collection/model/Expand.js +0 -1
- package/dist/smoothly/p-4a0b35b7.js +0 -2
- package/dist/smoothly/p-4fecfc5d.entry.js +0 -1
- package/dist/smoothly/p-5d41e3ca.entry.js +0 -1
- package/dist/smoothly/p-7d95afef.entry.js +0 -1
- package/dist/smoothly/p-7db49a38.entry.js +0 -1
- package/dist/smoothly/p-94e08cee.js +0 -1
- package/dist/smoothly/p-96e8781a.entry.js +0 -1
- package/dist/smoothly/p-e0f4957d.entry.js +0 -1
- package/dist/types/components/submit/Data.d.ts +0 -7
- package/dist/types/model/Expand.d.ts +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Clearable.js","sourceRoot":"","sources":["../../../src/components/filter/Clearable.ts"],"names":[],"mappings":"AAGA,MAAM,KAAW,SAAS,CAIzB;AAJD,WAAiB,SAAS;EACzB,SAAgB,EAAE,CAAC,KAAsB;IACxC,OAAO,KAAK,IAAI,OAAO,KAAK,IAAI,QAAQ,IAAI,OAAO,KAAK,CAAC,KAAK,IAAI,UAAU,CAAA;EAC7E,CAAC;EAFe,YAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,SAAS,KAAT,SAAS,QAIzB","sourcesContent":["export interface Clearable {\n\tclear(): Promise<void>\n}\nexport namespace Clearable {\n\texport function is(value: Clearable | any): value is Clearable {\n\t\treturn value && typeof value == \"object\" && typeof value.clear == \"function\"\n\t}\n}\n"]}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import * as selectively from "selectively";
|
|
3
|
+
import { create as selectivelyCreate } from "selectively";
|
|
4
|
+
import { Clearable } from "./Clearable";
|
|
5
|
+
export class SmoothlyFilter {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.inputs = new Map();
|
|
8
|
+
this.placeholder = undefined;
|
|
9
|
+
this.expanded = false;
|
|
10
|
+
this.freeSearchValue = undefined;
|
|
11
|
+
this.criteria = {};
|
|
12
|
+
this.inputValue = undefined;
|
|
13
|
+
}
|
|
14
|
+
filterHandler(event) {
|
|
15
|
+
event.stopPropagation();
|
|
16
|
+
if (Clearable.is(event.target)) {
|
|
17
|
+
const target = event.target;
|
|
18
|
+
Object.keys(event.detail).forEach(key => this.inputs.set(key, target));
|
|
19
|
+
}
|
|
20
|
+
!this.freeSearchValue
|
|
21
|
+
? this.filters.emit((this.criteria = Object.assign(Object.assign({}, this.criteria), event.detail)))
|
|
22
|
+
: this.filters.emit(selectively.and(selectively.any(selectively.includes(this.freeSearchValue)), (this.criteria = Object.assign(Object.assign({}, this.criteria), event.detail))));
|
|
23
|
+
}
|
|
24
|
+
onKeyDown() {
|
|
25
|
+
var _a;
|
|
26
|
+
this.freeSearchValue = (_a = this.freeSearchElement) === null || _a === void 0 ? void 0 : _a.value;
|
|
27
|
+
this.inputValue = selectively.includes(this.freeSearchValue);
|
|
28
|
+
this.filters.emit(selectively.any(this.inputValue));
|
|
29
|
+
}
|
|
30
|
+
async clear(event) {
|
|
31
|
+
new Set(this.inputs.values()).forEach(input => input.clear());
|
|
32
|
+
this.filters.emit((this.criteria = {}));
|
|
33
|
+
}
|
|
34
|
+
render() {
|
|
35
|
+
return [
|
|
36
|
+
h("smoothly-form", { looks: "border" }, h("smoothly-input", { name: "filter", ref: element => (this.freeSearchElement = element), value: selectivelyCreate(this.criteria).stringify(), onKeyDown: () => this.onKeyDown(), placeholder: this.placeholder, readonly: true }, h("section", { slot: "start" }, h("slot", { name: "start" })), h("slot", null), h("section", { slot: "end" }, h("smoothly-icon", { class: Object.keys(this.criteria).length >= 1 ? "btn clear" : "btn hidden", name: "close", size: "tiny", onClick: e => this.clear(e) }), h("aside", { class: "btn", onClick: () => {
|
|
37
|
+
this.expanded = !this.expanded;
|
|
38
|
+
} }, this.expanded ? (h("smoothly-icon", { name: "options", size: "small" })) : (h("smoothly-icon", { name: "options-outline", size: "small" })))))),
|
|
39
|
+
h("section", { hidden: !this.expanded, class: this.expanded ? "container arrow-top" : "hidden" }, h("div", { hidden: !this.expanded, class: this.expanded ? "container-wrapper" : "hidden" }, this.expanded && h("slot", { name: "filter" }))),
|
|
40
|
+
];
|
|
41
|
+
}
|
|
42
|
+
static get is() { return "smoothly-filter"; }
|
|
43
|
+
static get encapsulation() { return "shadow"; }
|
|
44
|
+
static get originalStyleUrls() {
|
|
45
|
+
return {
|
|
46
|
+
"$": ["style.css"]
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
static get styleUrls() {
|
|
50
|
+
return {
|
|
51
|
+
"$": ["style.css"]
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
static get properties() {
|
|
55
|
+
return {
|
|
56
|
+
"placeholder": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"mutable": true,
|
|
59
|
+
"complexType": {
|
|
60
|
+
"original": "string | undefined",
|
|
61
|
+
"resolved": "string | undefined",
|
|
62
|
+
"references": {}
|
|
63
|
+
},
|
|
64
|
+
"required": false,
|
|
65
|
+
"optional": false,
|
|
66
|
+
"docs": {
|
|
67
|
+
"tags": [],
|
|
68
|
+
"text": ""
|
|
69
|
+
},
|
|
70
|
+
"attribute": "placeholder",
|
|
71
|
+
"reflect": false
|
|
72
|
+
},
|
|
73
|
+
"criteria": {
|
|
74
|
+
"type": "unknown",
|
|
75
|
+
"mutable": true,
|
|
76
|
+
"complexType": {
|
|
77
|
+
"original": "Record<string, Criteria>",
|
|
78
|
+
"resolved": "{ [x: string]: Criteria; }",
|
|
79
|
+
"references": {
|
|
80
|
+
"Record": {
|
|
81
|
+
"location": "global"
|
|
82
|
+
},
|
|
83
|
+
"Criteria": {
|
|
84
|
+
"location": "import",
|
|
85
|
+
"path": "selectively"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": false,
|
|
90
|
+
"optional": false,
|
|
91
|
+
"docs": {
|
|
92
|
+
"tags": [],
|
|
93
|
+
"text": ""
|
|
94
|
+
},
|
|
95
|
+
"defaultValue": "{}"
|
|
96
|
+
},
|
|
97
|
+
"inputValue": {
|
|
98
|
+
"type": "any",
|
|
99
|
+
"mutable": true,
|
|
100
|
+
"complexType": {
|
|
101
|
+
"original": "Criteria",
|
|
102
|
+
"resolved": "Helper[] | Rule | number | string | { [property: string]: Helper | Helper[]; }",
|
|
103
|
+
"references": {
|
|
104
|
+
"Criteria": {
|
|
105
|
+
"location": "import",
|
|
106
|
+
"path": "selectively"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"required": false,
|
|
111
|
+
"optional": false,
|
|
112
|
+
"docs": {
|
|
113
|
+
"tags": [],
|
|
114
|
+
"text": ""
|
|
115
|
+
},
|
|
116
|
+
"attribute": "input-value",
|
|
117
|
+
"reflect": false
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
static get states() {
|
|
122
|
+
return {
|
|
123
|
+
"expanded": {},
|
|
124
|
+
"freeSearchValue": {}
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
static get events() {
|
|
128
|
+
return [{
|
|
129
|
+
"method": "filters",
|
|
130
|
+
"name": "filters",
|
|
131
|
+
"bubbles": true,
|
|
132
|
+
"cancelable": true,
|
|
133
|
+
"composed": true,
|
|
134
|
+
"docs": {
|
|
135
|
+
"tags": [],
|
|
136
|
+
"text": ""
|
|
137
|
+
},
|
|
138
|
+
"complexType": {
|
|
139
|
+
"original": "Criteria",
|
|
140
|
+
"resolved": "Helper[] | Rule | number | string | { [property: string]: Helper | Helper[]; }",
|
|
141
|
+
"references": {
|
|
142
|
+
"Criteria": {
|
|
143
|
+
"location": "import",
|
|
144
|
+
"path": "selectively"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}];
|
|
149
|
+
}
|
|
150
|
+
static get methods() {
|
|
151
|
+
return {
|
|
152
|
+
"clear": {
|
|
153
|
+
"complexType": {
|
|
154
|
+
"signature": "(event: MouseEvent) => Promise<void>",
|
|
155
|
+
"parameters": [{
|
|
156
|
+
"tags": [],
|
|
157
|
+
"text": ""
|
|
158
|
+
}],
|
|
159
|
+
"references": {
|
|
160
|
+
"Promise": {
|
|
161
|
+
"location": "global"
|
|
162
|
+
},
|
|
163
|
+
"MouseEvent": {
|
|
164
|
+
"location": "global"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"return": "Promise<void>"
|
|
168
|
+
},
|
|
169
|
+
"docs": {
|
|
170
|
+
"text": "",
|
|
171
|
+
"tags": []
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
static get listeners() {
|
|
177
|
+
return [{
|
|
178
|
+
"name": "filter",
|
|
179
|
+
"method": "filterHandler",
|
|
180
|
+
"target": undefined,
|
|
181
|
+
"capture": false,
|
|
182
|
+
"passive": false
|
|
183
|
+
}];
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/filter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAC9F,OAAO,KAAK,WAAW,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAY,MAAM,aAAa,CAAA;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAOvC,MAAM,OAAO,cAAc;;IAElB,WAAM,GAAG,IAAI,GAAG,EAAqB,CAAA;;oBAEzB,KAAK;;oBAEqC,EAAE;;;EAIhE,aAAa,CAAC,KAA4C;IACzD,KAAK,CAAC,eAAe,EAAE,CAAA;IAEvB,IAAI,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;MAC/B,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAA;MAC3B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAA;KACtE;IACD,CAAC,IAAI,CAAC,eAAe;MACpB,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,mCAAQ,IAAI,CAAC,QAAQ,GAAK,KAAK,CAAC,MAAM,CAAE,CAAC,CAAC;MAC5E,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CACjB,WAAW,CAAC,GAAG,CACd,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,EAC3D,CAAC,IAAI,CAAC,QAAQ,mCAAQ,IAAI,CAAC,QAAQ,GAAK,KAAK,CAAC,MAAM,CAAE,CAAC,CACvD,CACA,CAAA;EACL,CAAC;EAED,SAAS;;IACR,IAAI,CAAC,eAAe,GAAG,MAAA,IAAI,CAAC,iBAAiB,0CAAE,KAAK,CAAA;IACpD,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;IAC5D,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAA;EACpD,CAAC;EAGD,KAAK,CAAC,KAAK,CAAC,KAAiB;IAC5B,IAAI,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAA;IAC7D,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC,CAAC,CAAA;EACxC,CAAC;EAED,MAAM;IACL,OAAO;MACN,qBAAe,KAAK,EAAC,QAAQ;QAC5B,sBACC,IAAI,EAAC,QAAQ,EACb,GAAG,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,iBAAiB,GAAG,OAAO,CAAC,EAClD,KAAK,EAAE,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,SAAS,EAAE,EACnD,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,EAAE,EACjC,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,QAAQ;UACR,eAAS,IAAI,EAAC,OAAO;YACpB,YAAM,IAAI,EAAC,OAAO,GAAG,CACZ;UACV,eAAQ;UACR,eAAS,IAAI,EAAC,KAAK;YAClB,qBACC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,YAAY,EAC1E,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,MAAM,EACX,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAC1B;YACF,aACC,KAAK,EAAC,KAAK,EACX,OAAO,EAAE,GAAG,EAAE;gBACb,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAA;cAC/B,CAAC,IACA,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAChB,qBAAe,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,OAAO,GAAG,CAC7C,CAAC,CAAC,CAAC,CACH,qBAAe,IAAI,EAAC,iBAAiB,EAAC,IAAI,EAAC,OAAO,GAAG,CACrD,CACM,CACC,CACM,CACF;MAEhB,eAAS,MAAM,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,QAAQ;QACvF,WAAK,MAAM,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,QAAQ,IAChF,IAAI,CAAC,QAAQ,IAAI,YAAM,IAAI,EAAC,QAAQ,GAAG,CACnC,CACG;KACV,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Event, EventEmitter, h, Listen, Method, Prop, State } from \"@stencil/core\"\nimport * as selectively from \"selectively\"\nimport { create as selectivelyCreate, Criteria } from \"selectively\"\nimport { Clearable } from \"./Clearable\"\n\n@Component({\n\ttag: \"smoothly-filter\",\n\tstyleUrl: \"style.css\",\n\tshadow: true,\n})\nexport class SmoothlyFilter {\n\tprivate freeSearchElement?: HTMLSmoothlyInputElement\n\tprivate inputs = new Map<string, Clearable>()\n\t@Prop({ mutable: true }) placeholder: string | undefined\n\t@State() expanded = false\n\t@State() freeSearchValue: string\n\t@Prop({ mutable: true }) criteria: Record<string, Criteria> = {}\n\t@Prop({ mutable: true }) inputValue: Criteria\n\n\t@Listen(\"filter\")\n\tfilterHandler(event: CustomEvent<Record<string, Criteria>>) {\n\t\tevent.stopPropagation()\n\n\t\tif (Clearable.is(event.target)) {\n\t\t\tconst target = event.target\n\t\t\tObject.keys(event.detail).forEach(key => this.inputs.set(key, target))\n\t\t}\n\t\t!this.freeSearchValue\n\t\t\t? this.filters.emit((this.criteria = { ...this.criteria, ...event.detail }))\n\t\t\t: this.filters.emit(\n\t\t\t\t\tselectively.and(\n\t\t\t\t\t\tselectively.any(selectively.includes(this.freeSearchValue)),\n\t\t\t\t\t\t(this.criteria = { ...this.criteria, ...event.detail })\n\t\t\t\t\t)\n\t\t\t )\n\t}\n\t@Event() filters: EventEmitter<Criteria>\n\tonKeyDown() {\n\t\tthis.freeSearchValue = this.freeSearchElement?.value\n\t\tthis.inputValue = selectively.includes(this.freeSearchValue)\n\t\tthis.filters.emit(selectively.any(this.inputValue))\n\t}\n\n\t@Method()\n\tasync clear(event: MouseEvent): Promise<void> {\n\t\tnew Set(this.inputs.values()).forEach(input => input.clear())\n\t\tthis.filters.emit((this.criteria = {}))\n\t}\n\n\trender() {\n\t\treturn [\n\t\t\t<smoothly-form looks=\"border\">\n\t\t\t\t<smoothly-input\n\t\t\t\t\tname=\"filter\"\n\t\t\t\t\tref={element => (this.freeSearchElement = element)}\n\t\t\t\t\tvalue={selectivelyCreate(this.criteria).stringify()}\n\t\t\t\t\tonKeyDown={() => this.onKeyDown()}\n\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\treadonly>\n\t\t\t\t\t<section slot=\"start\">\n\t\t\t\t\t\t<slot name=\"start\" />\n\t\t\t\t\t</section>\n\t\t\t\t\t<slot />\n\t\t\t\t\t<section slot=\"end\">\n\t\t\t\t\t\t<smoothly-icon\n\t\t\t\t\t\t\tclass={Object.keys(this.criteria).length >= 1 ? \"btn clear\" : \"btn hidden\"}\n\t\t\t\t\t\t\tname=\"close\"\n\t\t\t\t\t\t\tsize=\"tiny\"\n\t\t\t\t\t\t\tonClick={e => this.clear(e)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<aside\n\t\t\t\t\t\t\tclass=\"btn\"\n\t\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\t\tthis.expanded = !this.expanded\n\t\t\t\t\t\t\t}}>\n\t\t\t\t\t\t\t{this.expanded ? (\n\t\t\t\t\t\t\t\t<smoothly-icon name=\"options\" size=\"small\" />\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<smoothly-icon name=\"options-outline\" size=\"small\" />\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</aside>\n\t\t\t\t\t</section>\n\t\t\t\t</smoothly-input>\n\t\t\t</smoothly-form>,\n\n\t\t\t<section hidden={!this.expanded} class={this.expanded ? \"container arrow-top\" : \"hidden\"}>\n\t\t\t\t<div hidden={!this.expanded} class={this.expanded ? \"container-wrapper\" : \"hidden\"}>\n\t\t\t\t\t{this.expanded && <slot name=\"filter\" />}\n\t\t\t\t</div>\n\t\t\t</section>,\n\t\t]\n\t}\n}\n"]}
|
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import * as selectively from "selectively";
|
|
3
|
+
export class SmoothlyFilterInput {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.name = undefined;
|
|
6
|
+
this.value = undefined;
|
|
7
|
+
this.type = "text";
|
|
8
|
+
this.required = false;
|
|
9
|
+
this.minLength = 0;
|
|
10
|
+
this.showLabel = true;
|
|
11
|
+
this.maxLength = Number.POSITIVE_INFINITY;
|
|
12
|
+
this.autocomplete = true;
|
|
13
|
+
this.pattern = undefined;
|
|
14
|
+
this.placeholder = undefined;
|
|
15
|
+
this.disabled = false;
|
|
16
|
+
this.readonly = false;
|
|
17
|
+
this.currency = undefined;
|
|
18
|
+
this.comparison = "includes";
|
|
19
|
+
this.criteria = undefined;
|
|
20
|
+
}
|
|
21
|
+
onFilter() {
|
|
22
|
+
this.value = this.smoothlyInput.value;
|
|
23
|
+
let criteria;
|
|
24
|
+
switch (this.comparison) {
|
|
25
|
+
case "equals":
|
|
26
|
+
criteria = this.value;
|
|
27
|
+
break;
|
|
28
|
+
case "less":
|
|
29
|
+
criteria = selectively.lesserThan(this.value);
|
|
30
|
+
break;
|
|
31
|
+
case "greater":
|
|
32
|
+
criteria = selectively.greaterThan(this.value);
|
|
33
|
+
break;
|
|
34
|
+
case "starts":
|
|
35
|
+
criteria = selectively.startsWith(this.value);
|
|
36
|
+
break;
|
|
37
|
+
case "ends":
|
|
38
|
+
criteria = selectively.endsWith(this.value);
|
|
39
|
+
break;
|
|
40
|
+
default:
|
|
41
|
+
case "includes":
|
|
42
|
+
criteria = selectively.includes(this.value);
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
this.filter.emit({ [this.name]: criteria });
|
|
46
|
+
}
|
|
47
|
+
async clear() {
|
|
48
|
+
this.value = "";
|
|
49
|
+
}
|
|
50
|
+
render() {
|
|
51
|
+
return [
|
|
52
|
+
h("smoothly-input", { name: this.name, ref: (element) => (this.smoothlyInput = element), value: this.value, onKeyDown: () => this.onFilter(), onSmoothlyInput: e => {
|
|
53
|
+
this.value = e.detail.value;
|
|
54
|
+
}, placeholder: this.placeholder }, h("div", { slot: "start" }, h("slot", { name: "start" })), h("slot", null)),
|
|
55
|
+
];
|
|
56
|
+
}
|
|
57
|
+
static get is() { return "smoothly-filter-input"; }
|
|
58
|
+
static get encapsulation() { return "shadow"; }
|
|
59
|
+
static get originalStyleUrls() {
|
|
60
|
+
return {
|
|
61
|
+
"$": ["style.css"]
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
static get styleUrls() {
|
|
65
|
+
return {
|
|
66
|
+
"$": ["style.css"]
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
static get properties() {
|
|
70
|
+
return {
|
|
71
|
+
"name": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"mutable": false,
|
|
74
|
+
"complexType": {
|
|
75
|
+
"original": "string",
|
|
76
|
+
"resolved": "string",
|
|
77
|
+
"references": {}
|
|
78
|
+
},
|
|
79
|
+
"required": false,
|
|
80
|
+
"optional": false,
|
|
81
|
+
"docs": {
|
|
82
|
+
"tags": [],
|
|
83
|
+
"text": ""
|
|
84
|
+
},
|
|
85
|
+
"attribute": "name",
|
|
86
|
+
"reflect": true
|
|
87
|
+
},
|
|
88
|
+
"value": {
|
|
89
|
+
"type": "any",
|
|
90
|
+
"mutable": true,
|
|
91
|
+
"complexType": {
|
|
92
|
+
"original": "any",
|
|
93
|
+
"resolved": "any",
|
|
94
|
+
"references": {}
|
|
95
|
+
},
|
|
96
|
+
"required": false,
|
|
97
|
+
"optional": false,
|
|
98
|
+
"docs": {
|
|
99
|
+
"tags": [],
|
|
100
|
+
"text": ""
|
|
101
|
+
},
|
|
102
|
+
"attribute": "value",
|
|
103
|
+
"reflect": false
|
|
104
|
+
},
|
|
105
|
+
"type": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"mutable": false,
|
|
108
|
+
"complexType": {
|
|
109
|
+
"original": "string",
|
|
110
|
+
"resolved": "string",
|
|
111
|
+
"references": {}
|
|
112
|
+
},
|
|
113
|
+
"required": false,
|
|
114
|
+
"optional": false,
|
|
115
|
+
"docs": {
|
|
116
|
+
"tags": [],
|
|
117
|
+
"text": ""
|
|
118
|
+
},
|
|
119
|
+
"attribute": "type",
|
|
120
|
+
"reflect": true,
|
|
121
|
+
"defaultValue": "\"text\""
|
|
122
|
+
},
|
|
123
|
+
"required": {
|
|
124
|
+
"type": "boolean",
|
|
125
|
+
"mutable": true,
|
|
126
|
+
"complexType": {
|
|
127
|
+
"original": "boolean",
|
|
128
|
+
"resolved": "boolean",
|
|
129
|
+
"references": {}
|
|
130
|
+
},
|
|
131
|
+
"required": false,
|
|
132
|
+
"optional": false,
|
|
133
|
+
"docs": {
|
|
134
|
+
"tags": [],
|
|
135
|
+
"text": ""
|
|
136
|
+
},
|
|
137
|
+
"attribute": "required",
|
|
138
|
+
"reflect": true,
|
|
139
|
+
"defaultValue": "false"
|
|
140
|
+
},
|
|
141
|
+
"minLength": {
|
|
142
|
+
"type": "number",
|
|
143
|
+
"mutable": false,
|
|
144
|
+
"complexType": {
|
|
145
|
+
"original": "number",
|
|
146
|
+
"resolved": "number",
|
|
147
|
+
"references": {}
|
|
148
|
+
},
|
|
149
|
+
"required": false,
|
|
150
|
+
"optional": false,
|
|
151
|
+
"docs": {
|
|
152
|
+
"tags": [],
|
|
153
|
+
"text": ""
|
|
154
|
+
},
|
|
155
|
+
"attribute": "min-length",
|
|
156
|
+
"reflect": false,
|
|
157
|
+
"defaultValue": "0"
|
|
158
|
+
},
|
|
159
|
+
"showLabel": {
|
|
160
|
+
"type": "boolean",
|
|
161
|
+
"mutable": false,
|
|
162
|
+
"complexType": {
|
|
163
|
+
"original": "boolean",
|
|
164
|
+
"resolved": "boolean",
|
|
165
|
+
"references": {}
|
|
166
|
+
},
|
|
167
|
+
"required": false,
|
|
168
|
+
"optional": false,
|
|
169
|
+
"docs": {
|
|
170
|
+
"tags": [],
|
|
171
|
+
"text": ""
|
|
172
|
+
},
|
|
173
|
+
"attribute": "show-label",
|
|
174
|
+
"reflect": true,
|
|
175
|
+
"defaultValue": "true"
|
|
176
|
+
},
|
|
177
|
+
"maxLength": {
|
|
178
|
+
"type": "number",
|
|
179
|
+
"mutable": false,
|
|
180
|
+
"complexType": {
|
|
181
|
+
"original": "number",
|
|
182
|
+
"resolved": "number",
|
|
183
|
+
"references": {}
|
|
184
|
+
},
|
|
185
|
+
"required": false,
|
|
186
|
+
"optional": false,
|
|
187
|
+
"docs": {
|
|
188
|
+
"tags": [],
|
|
189
|
+
"text": ""
|
|
190
|
+
},
|
|
191
|
+
"attribute": "max-length",
|
|
192
|
+
"reflect": false,
|
|
193
|
+
"defaultValue": "Number.POSITIVE_INFINITY"
|
|
194
|
+
},
|
|
195
|
+
"autocomplete": {
|
|
196
|
+
"type": "boolean",
|
|
197
|
+
"mutable": false,
|
|
198
|
+
"complexType": {
|
|
199
|
+
"original": "boolean",
|
|
200
|
+
"resolved": "boolean",
|
|
201
|
+
"references": {}
|
|
202
|
+
},
|
|
203
|
+
"required": false,
|
|
204
|
+
"optional": false,
|
|
205
|
+
"docs": {
|
|
206
|
+
"tags": [],
|
|
207
|
+
"text": ""
|
|
208
|
+
},
|
|
209
|
+
"attribute": "autocomplete",
|
|
210
|
+
"reflect": false,
|
|
211
|
+
"defaultValue": "true"
|
|
212
|
+
},
|
|
213
|
+
"pattern": {
|
|
214
|
+
"type": "unknown",
|
|
215
|
+
"mutable": false,
|
|
216
|
+
"complexType": {
|
|
217
|
+
"original": "RegExp",
|
|
218
|
+
"resolved": "RegExp | undefined",
|
|
219
|
+
"references": {
|
|
220
|
+
"RegExp": {
|
|
221
|
+
"location": "global"
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"required": false,
|
|
226
|
+
"optional": true,
|
|
227
|
+
"docs": {
|
|
228
|
+
"tags": [],
|
|
229
|
+
"text": ""
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"placeholder": {
|
|
233
|
+
"type": "string",
|
|
234
|
+
"mutable": false,
|
|
235
|
+
"complexType": {
|
|
236
|
+
"original": "string",
|
|
237
|
+
"resolved": "string | undefined",
|
|
238
|
+
"references": {}
|
|
239
|
+
},
|
|
240
|
+
"required": false,
|
|
241
|
+
"optional": true,
|
|
242
|
+
"docs": {
|
|
243
|
+
"tags": [],
|
|
244
|
+
"text": ""
|
|
245
|
+
},
|
|
246
|
+
"attribute": "placeholder",
|
|
247
|
+
"reflect": false
|
|
248
|
+
},
|
|
249
|
+
"disabled": {
|
|
250
|
+
"type": "boolean",
|
|
251
|
+
"mutable": false,
|
|
252
|
+
"complexType": {
|
|
253
|
+
"original": "boolean",
|
|
254
|
+
"resolved": "boolean",
|
|
255
|
+
"references": {}
|
|
256
|
+
},
|
|
257
|
+
"required": false,
|
|
258
|
+
"optional": false,
|
|
259
|
+
"docs": {
|
|
260
|
+
"tags": [],
|
|
261
|
+
"text": ""
|
|
262
|
+
},
|
|
263
|
+
"attribute": "disabled",
|
|
264
|
+
"reflect": false,
|
|
265
|
+
"defaultValue": "false"
|
|
266
|
+
},
|
|
267
|
+
"readonly": {
|
|
268
|
+
"type": "boolean",
|
|
269
|
+
"mutable": false,
|
|
270
|
+
"complexType": {
|
|
271
|
+
"original": "boolean",
|
|
272
|
+
"resolved": "boolean",
|
|
273
|
+
"references": {}
|
|
274
|
+
},
|
|
275
|
+
"required": false,
|
|
276
|
+
"optional": false,
|
|
277
|
+
"docs": {
|
|
278
|
+
"tags": [],
|
|
279
|
+
"text": ""
|
|
280
|
+
},
|
|
281
|
+
"attribute": "readonly",
|
|
282
|
+
"reflect": false,
|
|
283
|
+
"defaultValue": "false"
|
|
284
|
+
},
|
|
285
|
+
"currency": {
|
|
286
|
+
"type": "string",
|
|
287
|
+
"mutable": false,
|
|
288
|
+
"complexType": {
|
|
289
|
+
"original": "Currency",
|
|
290
|
+
"resolved": "\"BTN\" | \"MKD\" | \"CHE\" | \"AED\" | \"AFN\" | \"ALL\" | \"AMD\" | \"ANG\" | \"AOA\" | \"ARS\" | \"AUD\" | \"AWG\" | \"AZN\" | \"BAM\" | \"BBD\" | \"BDT\" | \"BGN\" | \"BHD\" | \"BIF\" | \"BMD\" | \"BND\" | \"BOB\" | \"BOV\" | \"BRL\" | \"BSD\" | \"BWP\" | \"BYN\" | \"BZD\" | \"CAD\" | \"CDF\" | \"CHF\" | \"CHW\" | \"CLF\" | \"CLP\" | \"CNY\" | \"COP\" | \"COU\" | \"CRC\" | \"CUC\" | \"CUP\" | \"CVE\" | \"CZK\" | \"DJF\" | \"DKK\" | \"DOP\" | \"DZD\" | \"EGP\" | \"ERN\" | \"ETB\" | \"EUR\" | \"FJD\" | \"FKP\" | \"GBP\" | \"GEL\" | \"GHS\" | \"GIP\" | \"GMD\" | \"GNF\" | \"GTQ\" | \"GYD\" | \"HKD\" | \"HNL\" | \"HRK\" | \"HTG\" | \"HUF\" | \"IDR\" | \"ILS\" | \"INR\" | \"IQD\" | \"IRR\" | \"ISK\" | \"JMD\" | \"JOD\" | \"JPY\" | \"KES\" | \"KGS\" | \"KHR\" | \"KMF\" | \"KPW\" | \"KRW\" | \"KWD\" | \"KYD\" | \"KZT\" | \"LAK\" | \"LBP\" | \"LKR\" | \"LRD\" | \"LSL\" | \"LYD\" | \"MAD\" | \"MDL\" | \"MGA\" | \"MMK\" | \"MNT\" | \"MOP\" | \"MRU\" | \"MUR\" | \"MVR\" | \"MWK\" | \"MXN\" | \"MXV\" | \"MYR\" | \"MZN\" | \"NAD\" | \"NGN\" | \"NIO\" | \"NOK\" | \"NPR\" | \"NZD\" | \"OMR\" | \"PAB\" | \"PEN\" | \"PGK\" | \"PHP\" | \"PKR\" | \"PLN\" | \"PYG\" | \"QAR\" | \"RON\" | \"RSD\" | \"RUB\" | \"RWF\" | \"SAR\" | \"SBD\" | \"SCR\" | \"SDG\" | \"SEK\" | \"SGD\" | \"SHP\" | \"SLL\" | \"SOS\" | \"SRD\" | \"SSP\" | \"STN\" | \"SVC\" | \"SYP\" | \"SZL\" | \"THB\" | \"TJS\" | \"TMT\" | \"TND\" | \"TOP\" | \"TRY\" | \"TTD\" | \"TWD\" | \"TZS\" | \"UAH\" | \"UGX\" | \"USD\" | \"USN\" | \"UYI\" | \"UYU\" | \"UYW\" | \"UZS\" | \"VES\" | \"VND\" | \"VUV\" | \"WST\" | \"XAF\" | \"XAG\" | \"XAU\" | \"XBA\" | \"XBB\" | \"XBC\" | \"XBD\" | \"XCD\" | \"XDR\" | \"XOF\" | \"XPD\" | \"XPF\" | \"XPT\" | \"XSU\" | \"XTS\" | \"XUA\" | \"XXX\" | \"YER\" | \"ZAR\" | \"ZMW\" | \"ZWL\" | undefined",
|
|
291
|
+
"references": {
|
|
292
|
+
"Currency": {
|
|
293
|
+
"location": "import",
|
|
294
|
+
"path": "isoly"
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"required": false,
|
|
299
|
+
"optional": true,
|
|
300
|
+
"docs": {
|
|
301
|
+
"tags": [],
|
|
302
|
+
"text": ""
|
|
303
|
+
},
|
|
304
|
+
"attribute": "currency",
|
|
305
|
+
"reflect": true
|
|
306
|
+
},
|
|
307
|
+
"comparison": {
|
|
308
|
+
"type": "string",
|
|
309
|
+
"mutable": false,
|
|
310
|
+
"complexType": {
|
|
311
|
+
"original": "\"equals\" | \"less\" | \"greater\" | \"starts\" | \"ends\" | \"includes\"",
|
|
312
|
+
"resolved": "\"ends\" | \"equals\" | \"greater\" | \"includes\" | \"less\" | \"starts\"",
|
|
313
|
+
"references": {}
|
|
314
|
+
},
|
|
315
|
+
"required": false,
|
|
316
|
+
"optional": false,
|
|
317
|
+
"docs": {
|
|
318
|
+
"tags": [],
|
|
319
|
+
"text": ""
|
|
320
|
+
},
|
|
321
|
+
"attribute": "comparison",
|
|
322
|
+
"reflect": false,
|
|
323
|
+
"defaultValue": "\"includes\""
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
static get states() {
|
|
328
|
+
return {
|
|
329
|
+
"criteria": {}
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
static get events() {
|
|
333
|
+
return [{
|
|
334
|
+
"method": "filter",
|
|
335
|
+
"name": "filter",
|
|
336
|
+
"bubbles": true,
|
|
337
|
+
"cancelable": true,
|
|
338
|
+
"composed": true,
|
|
339
|
+
"docs": {
|
|
340
|
+
"tags": [],
|
|
341
|
+
"text": ""
|
|
342
|
+
},
|
|
343
|
+
"complexType": {
|
|
344
|
+
"original": "Criteria",
|
|
345
|
+
"resolved": "Helper[] | Rule | number | string | { [property: string]: Helper | Helper[]; }",
|
|
346
|
+
"references": {
|
|
347
|
+
"Criteria": {
|
|
348
|
+
"location": "import",
|
|
349
|
+
"path": "selectively"
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}];
|
|
354
|
+
}
|
|
355
|
+
static get methods() {
|
|
356
|
+
return {
|
|
357
|
+
"clear": {
|
|
358
|
+
"complexType": {
|
|
359
|
+
"signature": "() => Promise<void>",
|
|
360
|
+
"parameters": [],
|
|
361
|
+
"references": {
|
|
362
|
+
"Promise": {
|
|
363
|
+
"location": "global"
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
"return": "Promise<void>"
|
|
367
|
+
},
|
|
368
|
+
"docs": {
|
|
369
|
+
"text": "",
|
|
370
|
+
"tags": []
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/filter/input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAEtF,OAAO,KAAK,WAAW,MAAM,aAAa,CAAA;AAQ1C,MAAM,OAAO,mBAAmB;;;;gBAKC,MAAM;oBACa,KAAK;qBACpC,CAAC;qBACgB,IAAI;qBACb,MAAM,CAAC,iBAAiB;wBAC7B,IAAI;;;oBAGR,KAAK;oBACL,KAAK;;sBAE6D,UAAU;;;EAIvF,QAAQ;IACf,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAA;IACrC,IAAI,QAA8B,CAAA;IAClC,QAAQ,IAAI,CAAC,UAAU,EAAE;MACxB,KAAK,QAAQ;QACZ,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAA;QACrB,MAAK;MACN,KAAK,MAAM;QACV,QAAQ,GAAG,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC7C,MAAK;MACN,KAAK,SAAS;QACb,QAAQ,GAAG,WAAW,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC9C,MAAK;MACN,KAAK,QAAQ;QACZ,QAAQ,GAAG,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC7C,MAAK;MACN,KAAK,MAAM;QACV,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC3C,MAAK;MACN,QAAQ;MACR,KAAK,UAAU;QACd,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC3C,MAAK;KACN;IACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAA;EAC5C,CAAC;EAED,KAAK,CAAC,KAAK;IACV,IAAI,CAAC,KAAK,GAAG,EAAE,CAAA;EAChB,CAAC;EAED,MAAM;IACL,OAAO;MACN,sBACC,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,GAAG,EAAE,CAAC,OAAiC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,EAC1E,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,EAChC,eAAe,EAAE,CAAC,CAAC,EAAE;UACpB,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAA;QAC5B,CAAC,EACD,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,WAAK,IAAI,EAAC,OAAO;UAChB,YAAM,IAAI,EAAC,OAAO,GAAG,CAChB;QACN,eAAQ,CACQ;KACjB,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Event, EventEmitter, h, Method, Prop, State } from \"@stencil/core\"\nimport { Currency } from \"isoly\"\nimport * as selectively from \"selectively\"\nimport { Criteria } from \"selectively\"\n\n@Component({\n\ttag: \"smoothly-filter-input\",\n\tstyleUrl: \"style.css\",\n\tshadow: true,\n})\nexport class SmoothlyFilterInput {\n\tsmoothlyInput: HTMLSmoothlyInputElement\n\n\t@Prop({ reflect: true }) name: string\n\t@Prop({ mutable: true }) value: any\n\t@Prop({ reflect: true }) type = \"text\"\n\t@Prop({ mutable: true, reflect: true }) required = false\n\t@Prop() minLength = 0\n\t@Prop({ reflect: true }) showLabel = true\n\t@Prop() maxLength: number = Number.POSITIVE_INFINITY\n\t@Prop() autocomplete = true\n\t@Prop() pattern?: RegExp\n\t@Prop() placeholder?: string\n\t@Prop() disabled = false\n\t@Prop() readonly = false\n\t@Prop({ reflect: true }) currency?: Currency\n\t@Prop() comparison: \"equals\" | \"less\" | \"greater\" | \"starts\" | \"ends\" | \"includes\" = \"includes\"\n\t@State() criteria: Criteria\n\n\t@Event() filter: EventEmitter<Criteria>\n\tprivate onFilter() {\n\t\tthis.value = this.smoothlyInput.value\n\t\tlet criteria: selectively.Criteria\n\t\tswitch (this.comparison) {\n\t\t\tcase \"equals\":\n\t\t\t\tcriteria = this.value\n\t\t\t\tbreak\n\t\t\tcase \"less\":\n\t\t\t\tcriteria = selectively.lesserThan(this.value)\n\t\t\t\tbreak\n\t\t\tcase \"greater\":\n\t\t\t\tcriteria = selectively.greaterThan(this.value)\n\t\t\t\tbreak\n\t\t\tcase \"starts\":\n\t\t\t\tcriteria = selectively.startsWith(this.value)\n\t\t\t\tbreak\n\t\t\tcase \"ends\":\n\t\t\t\tcriteria = selectively.endsWith(this.value)\n\t\t\t\tbreak\n\t\t\tdefault:\n\t\t\tcase \"includes\":\n\t\t\t\tcriteria = selectively.includes(this.value)\n\t\t\t\tbreak\n\t\t}\n\t\tthis.filter.emit({ [this.name]: criteria })\n\t}\n\t@Method()\n\tasync clear() {\n\t\tthis.value = \"\"\n\t}\n\n\trender() {\n\t\treturn [\n\t\t\t<smoothly-input\n\t\t\t\tname={this.name}\n\t\t\t\tref={(element: HTMLSmoothlyInputElement) => (this.smoothlyInput = element)}\n\t\t\t\tvalue={this.value}\n\t\t\t\tonKeyDown={() => this.onFilter()}\n\t\t\t\tonSmoothlyInput={e => {\n\t\t\t\t\tthis.value = e.detail.value\n\t\t\t\t}}\n\t\t\t\tplaceholder={this.placeholder}>\n\t\t\t\t<div slot=\"start\">\n\t\t\t\t\t<slot name=\"start\" />\n\t\t\t\t</div>\n\t\t\t\t<slot />\n\t\t\t</smoothly-input>,\n\t\t]\n\t}\n}\n"]}
|