smoothly 1.0.0-alpha.13 → 1.0.0-alpha.131
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/{Listenable-63ea2d90.js → Data-e345d3cd.js} +74 -4
- package/dist/cjs/Data-e345d3cd.js.map +1 -0
- package/dist/cjs/Observers-6450f075.js +25 -0
- package/dist/cjs/Observers-6450f075.js.map +1 -0
- package/dist/cjs/{getLanguage-430ecf04.js → getLanguage-28ce96e4.js} +1111 -890
- package/dist/cjs/getLanguage-28ce96e4.js.map +1 -0
- package/dist/cjs/{index-8352a4e0.js → index-6ae370b4.js} +12 -43
- package/dist/cjs/index-6ae370b4.js.map +1 -0
- package/dist/cjs/index.cjs.js +386 -22
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/redirect-2e5d4524.js +104 -0
- package/dist/cjs/redirect-2e5d4524.js.map +1 -0
- package/dist/cjs/smoothly-accordion_70.cjs.entry.js +17204 -0
- package/dist/cjs/smoothly-accordion_70.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-address-display.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-address.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-addresses.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-color.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-country.cjs.entry.js +9 -9
- package/dist/cjs/smoothly-country.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-display-date-time.cjs.entry.js +26 -0
- package/dist/cjs/smoothly-display-date-time.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-google-font.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-reorder.cjs.entry.js +4 -4
- package/dist/cjs/smoothly-reorder.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +4 -4
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +6 -6
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly.cjs.js +4 -3
- package/dist/cjs/smoothly.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +23 -12
- package/dist/collection/components/Button.js +16 -2
- package/dist/collection/components/Button.js.map +1 -1
- package/dist/collection/components/accordion/index.js +32 -12
- package/dist/collection/components/accordion/index.js.map +1 -1
- package/dist/collection/components/accordion-item/index.js +18 -25
- package/dist/collection/components/accordion-item/index.js.map +1 -1
- package/dist/collection/components/app/index.js +147 -1
- package/dist/collection/components/app/index.js.map +1 -1
- package/dist/collection/components/app/room/index.js +240 -0
- package/dist/collection/components/app/room/index.js.map +1 -0
- package/dist/collection/components/app/room/style.css +55 -0
- package/dist/collection/components/app/style.css +89 -101
- package/dist/collection/components/app-demo/index.js +5 -19
- package/dist/collection/components/app-demo/index.js.map +1 -1
- package/dist/collection/components/backtotop/index.js +3 -3
- package/dist/collection/components/backtotop/index.js.map +1 -1
- package/dist/collection/components/burger/index.js +174 -0
- package/dist/collection/components/burger/index.js.map +1 -0
- package/dist/collection/components/burger/style.css +22 -0
- package/dist/collection/components/button/index.js +10 -23
- package/dist/collection/components/button/index.js.map +1 -1
- package/dist/collection/components/button/style.css +13 -17
- package/dist/collection/components/button-demo/index.js +6 -2
- package/dist/collection/components/button-demo/index.js.map +1 -1
- package/dist/collection/components/button-demo/style.css +1 -0
- package/dist/collection/components/calendar/generate.js +1 -1
- package/dist/collection/components/calendar/generate.js.map +1 -1
- package/dist/collection/components/checkbox/index.js +25 -3
- package/dist/collection/components/checkbox/index.js.map +1 -1
- package/dist/collection/components/country/index.js +1 -1
- package/dist/collection/components/display/index.js +24 -3
- package/dist/collection/components/display/index.js.map +1 -1
- package/dist/collection/components/display-amount/index.js +1 -1
- package/dist/collection/components/display-demo/index.js +1 -1
- package/dist/collection/components/display-demo/index.js.map +1 -1
- package/dist/collection/components/filter/index.js +1 -1
- package/dist/collection/components/filter/index.js.map +1 -1
- package/dist/collection/components/filter/input/index.js +16 -9
- package/dist/collection/components/filter/input/index.js.map +1 -1
- package/dist/collection/components/form/index.js +132 -9
- package/dist/collection/components/form/index.js.map +1 -1
- package/dist/collection/components/form/style.css +9 -16
- package/dist/collection/components/frame/index.js +1 -2
- package/dist/collection/components/frame/index.js.map +1 -1
- package/dist/collection/components/icon/index.js +29 -38
- package/dist/collection/components/icon/index.js.map +1 -1
- package/dist/collection/components/icon-demo/index.js.map +1 -1
- package/dist/collection/components/icon-demo/style.css +1 -0
- package/dist/collection/components/input/Changeable.js +8 -0
- package/dist/collection/components/input/Changeable.js.map +1 -0
- package/dist/collection/components/input/Clearable.js.map +1 -0
- package/dist/collection/components/input/Input.js +2 -0
- package/dist/collection/components/input/Input.js.map +1 -0
- package/dist/collection/components/input/Looks.js +2 -0
- package/dist/collection/components/input/Looks.js.map +1 -0
- package/dist/collection/components/input/Submittable.js +8 -0
- package/dist/collection/components/input/Submittable.js.map +1 -0
- package/dist/collection/components/input/clear/index.js +237 -0
- package/dist/collection/components/input/clear/index.js.map +1 -0
- package/dist/collection/components/input/clear/style.css +254 -0
- package/dist/collection/components/{input-date → input/date}/index.js +160 -3
- package/dist/collection/components/input/date/index.js.map +1 -0
- package/dist/collection/components/{input-date-range → input/date/range}/index.js +161 -23
- package/dist/collection/components/input/date/range/index.js.map +1 -0
- package/dist/collection/components/input/date/range/style.css +69 -0
- package/dist/collection/components/input/date/style.css +58 -0
- package/dist/collection/components/input/demo/index.js +95 -0
- package/dist/collection/components/input/demo/index.js.map +1 -0
- package/dist/collection/components/{input-demo → input/demo}/style.css +1 -0
- package/dist/collection/components/input/file/index.js +305 -0
- package/dist/collection/components/input/file/index.js.map +1 -0
- package/dist/collection/components/input/file/style.css +85 -0
- package/dist/collection/components/input/index.js +131 -8
- package/dist/collection/components/input/index.js.map +1 -1
- package/dist/collection/components/{input-month → input/month}/index.js +5 -5
- package/dist/collection/components/input/month/index.js.map +1 -0
- package/dist/collection/components/{selector → input/select}/index.js +176 -5
- package/dist/collection/components/input/select/index.js.map +1 -0
- package/dist/collection/components/input/select/style.css +80 -0
- package/dist/collection/components/input/style.css +23 -8
- package/dist/collection/components/notification/index.js +45 -8
- package/dist/collection/components/notification/index.js.map +1 -1
- package/dist/collection/components/notification/style.css +25 -1
- package/dist/collection/components/notifier/style.css +1 -3
- package/dist/collection/components/picker/demo/index.js +91 -0
- package/dist/collection/components/picker/demo/index.js.map +1 -0
- package/dist/collection/components/picker/demo/style.css +26 -0
- package/dist/collection/components/picker/index.js +197 -396
- package/dist/collection/components/picker/index.js.map +1 -1
- package/dist/collection/components/picker/menu/index.js +422 -0
- package/dist/collection/components/picker/menu/index.js.map +1 -0
- package/dist/collection/components/picker/menu/style.css +44 -0
- package/dist/collection/components/picker/option/index.js +298 -0
- package/dist/collection/components/picker/option/index.js.map +1 -0
- package/dist/collection/components/picker/option/style.css +30 -0
- package/dist/collection/components/picker/slot-elements/index.js +109 -0
- package/dist/collection/components/picker/slot-elements/index.js.map +1 -0
- package/dist/collection/components/picker/slot-elements/style.css +3 -0
- package/dist/collection/components/picker/slotted-elements/index.js +84 -0
- package/dist/collection/components/picker/slotted-elements/index.js.map +1 -0
- package/dist/collection/components/picker/slotted-elements/style.css +3 -0
- package/dist/collection/components/picker/style.css +60 -144
- package/dist/collection/components/radio/index.js +4 -4
- package/dist/collection/components/radio/index.js.map +1 -1
- package/dist/collection/components/radio-button/index.js +35 -10
- package/dist/collection/components/radio-button/index.js.map +1 -1
- package/dist/collection/components/select-demo/index.js +0 -87
- package/dist/collection/components/select-demo/index.js.map +1 -1
- package/dist/collection/components/spinner/style.css +1 -0
- package/dist/collection/components/submit/index.js +64 -5
- package/dist/collection/components/submit/index.js.map +1 -1
- package/dist/collection/components/submit/style.css +224 -0
- package/dist/collection/components/summary/index.js +44 -1
- package/dist/collection/components/summary/index.js.map +1 -1
- package/dist/collection/components/svg/style.css +2 -2
- package/dist/collection/components/table/cell/index.js +1 -1
- package/dist/collection/components/table/cell/index.js.map +1 -1
- package/dist/collection/components/table/cell/style.css +19 -10
- package/dist/collection/components/table/demo/filtered/index.js +4 -3
- package/dist/collection/components/table/demo/filtered/index.js.map +1 -1
- package/dist/collection/components/table/demo/index.js +8 -2
- package/dist/collection/components/table/demo/index.js.map +1 -1
- package/dist/collection/components/table/demo/style.css +2 -0
- package/dist/collection/components/table/expandable/cell/index.js +14 -14
- package/dist/collection/components/table/expandable/cell/index.js.map +1 -1
- package/dist/collection/components/table/expandable/cell/style.css +32 -22
- package/dist/collection/components/table/expandable/row/index.js +9 -32
- package/dist/collection/components/table/expandable/row/index.js.map +1 -1
- package/dist/collection/components/table/expandable/row/style.css +32 -29
- package/dist/collection/components/table/footer/index.js +19 -0
- package/dist/collection/components/table/footer/index.js.map +1 -0
- package/dist/collection/components/table/footer/style.css +13 -0
- package/dist/collection/components/table/header/style.css +2 -2
- package/dist/collection/components/table/index.js +55 -12
- package/dist/collection/components/table/index.js.map +1 -1
- package/dist/collection/components/table/row/index.js +37 -5
- package/dist/collection/components/table/row/index.js.map +1 -1
- package/dist/collection/components/table/row/style.css +4 -1
- package/dist/collection/components/table/style.css +0 -2
- package/dist/collection/components/table/testing/data.js +28 -0
- package/dist/collection/components/table/testing/data.js.map +1 -0
- package/dist/collection/components/table/testing/index.js +28 -0
- package/dist/collection/components/table/testing/index.js.map +1 -0
- package/dist/collection/components/table/testing/style.css +22 -0
- package/dist/collection/components/theme/color/index.js +48 -0
- package/dist/collection/components/theme/color/index.js.map +1 -0
- package/dist/collection/components/theme/color/style.css +8 -0
- package/dist/collection/components/theme/color/variant/index.js +66 -0
- package/dist/collection/components/theme/color/variant/index.js.map +1 -0
- package/dist/collection/components/theme/color/variant/style.css +18 -0
- package/dist/collection/components/theme/colors/index.js +30 -0
- package/dist/collection/components/theme/colors/index.js.map +1 -0
- package/dist/collection/components/theme/colors/style.css +7 -0
- package/dist/collection/components/toggle-switch/index.js +69 -17
- package/dist/collection/components/toggle-switch/index.js.map +1 -1
- package/dist/collection/components/toggle-switch/style.css +19 -12
- package/dist/collection/components/trigger-source/index.js +3 -3
- package/dist/collection/components/trigger-source/index.js.map +1 -1
- package/dist/collection/global/Observers.js +22 -0
- package/dist/collection/global/Observers.js.map +1 -0
- package/dist/collection/global/index.js +5 -0
- package/dist/collection/global/index.js.map +1 -0
- package/dist/collection/index.js +2 -3
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/model/Data.js.map +1 -0
- package/dist/collection/model/Icon.js +23 -0
- package/dist/collection/model/Icon.js.map +1 -0
- package/dist/collection/model/Listenable.js +2 -2
- package/dist/collection/model/Listenable.js.map +1 -1
- package/dist/collection/model/Notice.js +1 -1
- package/dist/collection/model/Notice.js.map +1 -1
- package/dist/collection/model/Option.js.map +1 -1
- package/dist/collection/model/index.js +3 -0
- package/dist/collection/model/index.js.map +1 -1
- package/dist/collection/model/redirect.js +8 -0
- package/dist/collection/model/redirect.js.map +1 -0
- package/dist/collection/smoothly.js +3 -0
- package/dist/collection/smoothly.js.map +1 -0
- package/dist/custom-elements/index.d.ts +94 -34
- package/dist/custom-elements/index.js +5360 -16302
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/{Listenable-fb6f4723.js → Data-37e7c0b9.js} +75 -5
- package/dist/esm/Data-37e7c0b9.js.map +1 -0
- package/dist/esm/Observers-5f08e828.js +25 -0
- package/dist/esm/Observers-5f08e828.js.map +1 -0
- package/dist/esm/{getLanguage-cccb8418.js → getLanguage-5233a597.js} +1111 -890
- package/dist/esm/getLanguage-5233a597.js.map +1 -0
- package/dist/esm/{index-7b57a52c.js → index-c196715a.js} +12 -42
- package/dist/esm/index-c196715a.js.map +1 -0
- package/dist/esm/index.js +388 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +5 -4
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/redirect-b0f87e88.js +101 -0
- package/dist/esm/redirect-b0f87e88.js.map +1 -0
- package/dist/esm/smoothly-accordion_70.entry.js +17131 -0
- package/dist/esm/smoothly-accordion_70.entry.js.map +1 -0
- package/dist/esm/smoothly-address-display.entry.js +1 -1
- package/dist/esm/smoothly-address.entry.js +1 -1
- package/dist/esm/smoothly-addresses.entry.js +1 -1
- package/dist/esm/smoothly-color.entry.js +1 -1
- package/dist/esm/smoothly-country.entry.js +9 -9
- package/dist/esm/smoothly-country.entry.js.map +1 -1
- package/dist/esm/smoothly-display-date-time.entry.js +22 -0
- package/dist/esm/smoothly-display-date-time.entry.js.map +1 -0
- package/dist/esm/smoothly-google-font.entry.js +1 -1
- package/dist/esm/smoothly-radio-group.entry.js +1 -1
- package/dist/esm/smoothly-reorder.entry.js +2 -2
- package/dist/esm/smoothly-reorder.entry.js.map +1 -1
- package/dist/esm/smoothly-trigger-sink.entry.js +2 -2
- package/dist/esm/smoothly-trigger-source.entry.js +4 -4
- package/dist/esm/smoothly-trigger-source.entry.js.map +1 -1
- package/dist/esm/smoothly.js +5 -4
- package/dist/esm/smoothly.js.map +1 -1
- package/dist/smoothly/index.esm.js +1 -1
- package/dist/smoothly/index.esm.js.map +1 -1
- package/dist/smoothly/{p-d4182274.entry.js → p-1efa3261.entry.js} +2 -2
- package/dist/smoothly/p-2a0c2387.js +2 -0
- package/dist/smoothly/p-2a0c2387.js.map +1 -0
- package/dist/smoothly/{p-e136b93e.entry.js → p-4d743f07.entry.js} +2 -2
- package/dist/smoothly/p-4ff439dd.entry.js +2 -0
- package/dist/smoothly/{p-5b28795c.entry.js.map → p-4ff439dd.entry.js.map} +1 -1
- package/dist/smoothly/{p-be2ff772.entry.js → p-5edb65c6.entry.js} +2 -2
- package/dist/smoothly/{p-c49d2094.entry.js → p-663ccbd0.entry.js} +2 -2
- package/dist/smoothly/p-73442332.entry.js +2 -0
- package/dist/smoothly/p-73442332.entry.js.map +1 -0
- package/dist/smoothly/{p-940af6d3.entry.js → p-9992c8c4.entry.js} +2 -2
- package/dist/smoothly/p-a6c4c2d4.entry.js +2 -0
- package/dist/smoothly/p-a6c4c2d4.entry.js.map +1 -0
- package/dist/smoothly/p-b9cb0514.js +2 -0
- package/dist/smoothly/p-b9cb0514.js.map +1 -0
- package/dist/smoothly/p-c833c402.js +2 -0
- package/dist/smoothly/p-c833c402.js.map +1 -0
- package/dist/smoothly/p-ce4e6f44.entry.js +2 -0
- package/dist/smoothly/p-ce4e6f44.entry.js.map +1 -0
- package/dist/smoothly/p-d0b8061e.js +3 -0
- package/dist/smoothly/p-d0b8061e.js.map +1 -0
- package/dist/smoothly/{p-79025273.entry.js → p-dbd1afa9.entry.js} +2 -2
- package/dist/smoothly/p-ede93d69.js +2 -0
- package/dist/smoothly/p-ede93d69.js.map +1 -0
- package/dist/smoothly/{p-712b362e.entry.js → p-f96e41aa.entry.js} +2 -2
- package/dist/smoothly/p-ff8acb9b.entry.js +2 -0
- package/dist/smoothly/p-ff8acb9b.entry.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/smoothly/smoothly.esm.js.map +1 -1
- package/dist/types/components/Button.d.ts +1 -2
- package/dist/types/components/accordion/index.d.ts +1 -1
- package/dist/types/components/accordion-item/index.d.ts +5 -4
- package/dist/types/components/app/index.d.ts +25 -0
- package/dist/types/components/app/room/index.d.ts +25 -0
- package/dist/types/components/app-demo/index.d.ts +2 -0
- package/dist/types/components/backtotop/index.d.ts +1 -1
- package/dist/types/components/burger/index.d.ts +15 -0
- package/dist/types/components/button/index.d.ts +2 -2
- package/dist/types/components/checkbox/index.d.ts +4 -2
- package/dist/types/components/display/index.d.ts +1 -0
- package/dist/types/components/filter/input/index.d.ts +1 -1
- package/dist/types/components/form/index.d.ts +16 -3
- package/dist/types/components/frame/index.d.ts +1 -1
- package/dist/types/components/icon/index.d.ts +3 -9
- package/dist/types/components/input/Changeable.d.ts +7 -0
- package/dist/types/components/input/Input.d.ts +10 -0
- package/dist/types/components/input/Looks.d.ts +1 -0
- package/dist/types/components/input/Submittable.d.ts +6 -0
- package/dist/types/components/input/clear/index.d.ts +17 -0
- package/dist/types/components/input/date/index.d.ts +28 -0
- package/dist/types/components/input/date/range/index.d.ts +33 -0
- package/dist/types/components/input/demo/index.d.ts +8 -0
- package/dist/types/components/input/file/index.d.ts +24 -0
- package/dist/types/components/input/index.d.ts +17 -4
- package/dist/types/components/{input-month → input/month}/index.d.ts +1 -1
- package/dist/types/components/{selector → input/select}/index.d.ts +15 -3
- package/dist/types/components/notification/index.d.ts +3 -1
- package/dist/types/components/picker/demo/index.d.ts +18 -0
- package/dist/types/components/picker/index.d.ts +33 -45
- package/dist/types/components/picker/menu/index.d.ts +53 -0
- package/dist/types/components/picker/option/index.d.ts +23 -0
- package/dist/types/components/picker/slot-elements/index.d.ts +15 -0
- package/dist/types/components/picker/slotted-elements/index.d.ts +8 -0
- package/dist/types/components/radio/index.d.ts +1 -1
- package/dist/types/components/radio-button/index.d.ts +3 -5
- package/dist/types/components/select-demo/index.d.ts +0 -9
- package/dist/types/components/submit/index.d.ts +6 -1
- package/dist/types/components/summary/index.d.ts +4 -0
- package/dist/types/components/table/demo/filtered/index.d.ts +1 -1
- package/dist/types/components/table/expandable/cell/index.d.ts +4 -4
- package/dist/types/components/table/expandable/row/index.d.ts +3 -7
- package/dist/types/components/table/footer/index.d.ts +3 -0
- package/dist/types/components/table/index.d.ts +6 -3
- package/dist/types/components/table/row/index.d.ts +3 -1
- package/dist/types/components/table/testing/data.d.ts +5 -0
- package/dist/types/components/table/testing/index.d.ts +4 -0
- package/dist/types/components/theme/color/index.d.ts +5 -0
- package/dist/types/components/theme/color/variant/index.d.ts +6 -0
- package/dist/types/components/theme/colors/index.d.ts +3 -0
- package/dist/types/components/toggle-switch/index.d.ts +7 -2
- package/dist/types/components/trigger-source/index.d.ts +1 -1
- package/dist/types/components.d.ts +490 -226
- package/dist/types/global/Observers.d.ts +8 -0
- package/dist/types/global/index.d.ts +4 -0
- package/dist/types/index.d.ts +1 -4
- package/dist/types/model/Icon.d.ts +8 -0
- package/dist/types/model/Notice.d.ts +1 -1
- package/dist/types/model/Option.d.ts +24 -6
- package/dist/types/model/index.d.ts +4 -1
- package/dist/types/model/redirect.d.ts +1 -0
- package/dist/types/smoothly.d.ts +3 -0
- package/package.json +16 -16
- package/dist/cjs/Listenable-63ea2d90.js.map +0 -1
- package/dist/cjs/getLanguage-430ecf04.js.map +0 -1
- package/dist/cjs/index-8352a4e0.js.map +0 -1
- package/dist/cjs/index-b282ee83.js +0 -865
- package/dist/cjs/index-b282ee83.js.map +0 -1
- package/dist/cjs/smoothly-accordion_61.cjs.entry.js +0 -28113
- package/dist/cjs/smoothly-accordion_61.cjs.entry.js.map +0 -1
- package/dist/collection/components/App.js +0 -71
- package/dist/collection/components/App.js.map +0 -1
- package/dist/collection/components/form/Clearable.js.map +0 -1
- package/dist/collection/components/form/Data.js.map +0 -1
- package/dist/collection/components/input-date/index.js.map +0 -1
- package/dist/collection/components/input-date/style.css +0 -39
- package/dist/collection/components/input-date-range/index.js.map +0 -1
- package/dist/collection/components/input-date-range/style.css +0 -51
- package/dist/collection/components/input-demo/index.js +0 -45
- package/dist/collection/components/input-demo/index.js.map +0 -1
- package/dist/collection/components/input-month/index.js.map +0 -1
- package/dist/collection/components/menu-options/index.js +0 -413
- package/dist/collection/components/menu-options/index.js.map +0 -1
- package/dist/collection/components/menu-options/style.css +0 -18
- package/dist/collection/components/option/index.js +0 -270
- package/dist/collection/components/option/index.js.map +0 -1
- package/dist/collection/components/option/style.css +0 -42
- package/dist/collection/components/room/index.js +0 -90
- package/dist/collection/components/room/index.js.map +0 -1
- package/dist/collection/components/select/index.js +0 -108
- package/dist/collection/components/select/index.js.map +0 -1
- package/dist/collection/components/select/style.css +0 -20
- package/dist/collection/components/selector/index.js.map +0 -1
- package/dist/collection/components/selector/style.css +0 -46
- package/dist/esm/Listenable-fb6f4723.js.map +0 -1
- package/dist/esm/getLanguage-cccb8418.js.map +0 -1
- package/dist/esm/index-2e948fc3.js +0 -861
- package/dist/esm/index-2e948fc3.js.map +0 -1
- package/dist/esm/index-7b57a52c.js.map +0 -1
- package/dist/esm/smoothly-accordion_61.entry.js +0 -28049
- package/dist/esm/smoothly-accordion_61.entry.js.map +0 -1
- package/dist/smoothly/p-06337b89.js +0 -2
- package/dist/smoothly/p-06337b89.js.map +0 -1
- package/dist/smoothly/p-21341e18.entry.js +0 -2
- package/dist/smoothly/p-21341e18.entry.js.map +0 -1
- package/dist/smoothly/p-5b28795c.entry.js +0 -2
- package/dist/smoothly/p-5b6351f6.js +0 -2
- package/dist/smoothly/p-5b6351f6.js.map +0 -1
- package/dist/smoothly/p-70280a11.js +0 -2
- package/dist/smoothly/p-70280a11.js.map +0 -1
- package/dist/smoothly/p-b49664d8.entry.js +0 -2
- package/dist/smoothly/p-b49664d8.entry.js.map +0 -1
- package/dist/smoothly/p-b82efb2e.entry.js +0 -2
- package/dist/smoothly/p-b82efb2e.entry.js.map +0 -1
- package/dist/smoothly/p-c88ae468.js +0 -3
- package/dist/smoothly/p-c88ae468.js.map +0 -1
- package/dist/types/components/App.d.ts +0 -5
- package/dist/types/components/input-date/index.d.ts +0 -14
- package/dist/types/components/input-date-range/index.d.ts +0 -23
- package/dist/types/components/input-demo/index.d.ts +0 -3
- package/dist/types/components/menu-options/index.d.ts +0 -35
- package/dist/types/components/option/index.d.ts +0 -32
- package/dist/types/components/room/index.d.ts +0 -7
- package/dist/types/components/select/index.d.ts +0 -14
- /package/dist/collection/components/{form → input}/Clearable.js +0 -0
- /package/dist/collection/components/{input-month → input/month}/style.css +0 -0
- /package/dist/collection/{components/form → model}/Data.js +0 -0
- /package/dist/smoothly/{p-d4182274.entry.js.map → p-1efa3261.entry.js.map} +0 -0
- /package/dist/smoothly/{p-e136b93e.entry.js.map → p-4d743f07.entry.js.map} +0 -0
- /package/dist/smoothly/{p-be2ff772.entry.js.map → p-5edb65c6.entry.js.map} +0 -0
- /package/dist/smoothly/{p-c49d2094.entry.js.map → p-663ccbd0.entry.js.map} +0 -0
- /package/dist/smoothly/{p-940af6d3.entry.js.map → p-9992c8c4.entry.js.map} +0 -0
- /package/dist/smoothly/{p-79025273.entry.js.map → p-dbd1afa9.entry.js.map} +0 -0
- /package/dist/smoothly/{p-712b362e.entry.js.map → p-f96e41aa.entry.js.map} +0 -0
- /package/dist/types/components/{form → input}/Clearable.d.ts +0 -0
- /package/dist/types/{components/form → model}/Data.d.ts +0 -0
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { isoly } from "isoly";
|
|
3
3
|
export class InputDateRange {
|
|
4
4
|
constructor() {
|
|
5
|
+
this.color = undefined;
|
|
6
|
+
this.looks = "plain";
|
|
7
|
+
this.name = undefined;
|
|
5
8
|
this.value = undefined;
|
|
6
9
|
this.start = undefined;
|
|
7
10
|
this.end = undefined;
|
|
@@ -12,9 +15,26 @@ export class InputDateRange {
|
|
|
12
15
|
this.labelStart = "from";
|
|
13
16
|
this.labelEnd = "to";
|
|
14
17
|
}
|
|
18
|
+
async clear() {
|
|
19
|
+
this.start = undefined;
|
|
20
|
+
this.end = undefined;
|
|
21
|
+
}
|
|
22
|
+
componentWillLoad() {
|
|
23
|
+
this.smoothlyInputLooks.emit((looks, color) => ((this.looks = looks), !this.color && (this.color = color)));
|
|
24
|
+
if (this.start && this.end)
|
|
25
|
+
this.smoothlyInput.emit({ [this.name]: { start: this.start, end: this.end } });
|
|
26
|
+
}
|
|
15
27
|
onValue(next) {
|
|
16
28
|
this.valueChanged.emit(next);
|
|
17
29
|
}
|
|
30
|
+
smoothlyInputHandler(event) {
|
|
31
|
+
if (event.target != this.element)
|
|
32
|
+
event.stopPropagation();
|
|
33
|
+
}
|
|
34
|
+
smoothlyInputLooksHandler(event) {
|
|
35
|
+
if (event.target != this.element)
|
|
36
|
+
event.stopPropagation();
|
|
37
|
+
}
|
|
18
38
|
onStartChanged(event) {
|
|
19
39
|
this.start = event.detail;
|
|
20
40
|
}
|
|
@@ -22,17 +42,16 @@ export class InputDateRange {
|
|
|
22
42
|
this.end = event.detail;
|
|
23
43
|
}
|
|
24
44
|
onDateRangeSet(event) {
|
|
25
|
-
console.log("dateRangeSet", event.detail);
|
|
26
45
|
this.open = false;
|
|
27
46
|
event.stopPropagation();
|
|
28
|
-
DateRange.is(event.detail) && this.
|
|
47
|
+
isoly.DateRange.is(event.detail) && this.smoothlyInput.emit({ [this.name]: event.detail });
|
|
29
48
|
}
|
|
30
49
|
render() {
|
|
31
50
|
var _a;
|
|
32
51
|
return [
|
|
33
|
-
h("section", { onClick: () => (this.open = !this.open) }, h("smoothly-input", { type: "date", value: this.start, showLabel: this.showLabel, onSmoothlyInput: e => (this.start = e.detail.
|
|
52
|
+
h("section", { onClick: () => (this.open = !this.open) }, h("smoothly-input", { type: "date", name: "start", value: this.start, looks: "plain", showLabel: this.showLabel, onSmoothlyInput: e => (this.start = e.detail.start) }, `${this.labelStart}`), h("span", null, "\u2013"), h("smoothly-input", { type: "date", name: "end", value: this.end, looks: "plain", showLabel: this.showLabel, onSmoothlyInput: e => (this.end = e.detail.end) }, `${this.labelEnd}`)),
|
|
34
53
|
this.open ? h("div", { onClick: () => (this.open = false) }) : [],
|
|
35
|
-
this.open ? (h("nav", null, h("div", { class: "arrow" }), h("smoothly-calendar", { doubleInput: true, value: (_a = this.value) !== null && _a !== void 0 ? _a : Date.now(), onValueChanged: event => {
|
|
54
|
+
this.open ? (h("nav", null, h("div", { class: "arrow" }), h("smoothly-calendar", { doubleInput: true, value: (_a = this.value) !== null && _a !== void 0 ? _a : isoly.Date.now(), onValueChanged: event => {
|
|
36
55
|
this.value = event.detail;
|
|
37
56
|
event.stopPropagation();
|
|
38
57
|
}, start: this.start, end: this.end, max: this.max, min: this.min }))) : ([]),
|
|
@@ -52,14 +71,76 @@ export class InputDateRange {
|
|
|
52
71
|
}
|
|
53
72
|
static get properties() {
|
|
54
73
|
return {
|
|
74
|
+
"color": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"mutable": true,
|
|
77
|
+
"complexType": {
|
|
78
|
+
"original": "Color",
|
|
79
|
+
"resolved": "\"danger\" | \"dark\" | \"default\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\" | undefined",
|
|
80
|
+
"references": {
|
|
81
|
+
"Color": {
|
|
82
|
+
"location": "import",
|
|
83
|
+
"path": "./../../../../model"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"required": false,
|
|
88
|
+
"optional": true,
|
|
89
|
+
"docs": {
|
|
90
|
+
"tags": [],
|
|
91
|
+
"text": ""
|
|
92
|
+
},
|
|
93
|
+
"attribute": "color",
|
|
94
|
+
"reflect": true
|
|
95
|
+
},
|
|
96
|
+
"looks": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"mutable": true,
|
|
99
|
+
"complexType": {
|
|
100
|
+
"original": "Looks",
|
|
101
|
+
"resolved": "\"border\" | \"grid\" | \"line\" | \"plain\"",
|
|
102
|
+
"references": {
|
|
103
|
+
"Looks": {
|
|
104
|
+
"location": "import",
|
|
105
|
+
"path": "../../Looks"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"required": false,
|
|
110
|
+
"optional": false,
|
|
111
|
+
"docs": {
|
|
112
|
+
"tags": [],
|
|
113
|
+
"text": ""
|
|
114
|
+
},
|
|
115
|
+
"attribute": "looks",
|
|
116
|
+
"reflect": true,
|
|
117
|
+
"defaultValue": "\"plain\""
|
|
118
|
+
},
|
|
119
|
+
"name": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"mutable": false,
|
|
122
|
+
"complexType": {
|
|
123
|
+
"original": "string",
|
|
124
|
+
"resolved": "string",
|
|
125
|
+
"references": {}
|
|
126
|
+
},
|
|
127
|
+
"required": false,
|
|
128
|
+
"optional": false,
|
|
129
|
+
"docs": {
|
|
130
|
+
"tags": [],
|
|
131
|
+
"text": ""
|
|
132
|
+
},
|
|
133
|
+
"attribute": "name",
|
|
134
|
+
"reflect": true
|
|
135
|
+
},
|
|
55
136
|
"value": {
|
|
56
137
|
"type": "string",
|
|
57
138
|
"mutable": true,
|
|
58
139
|
"complexType": {
|
|
59
|
-
"original": "Date",
|
|
140
|
+
"original": "isoly.Date",
|
|
60
141
|
"resolved": "string | undefined",
|
|
61
142
|
"references": {
|
|
62
|
-
"
|
|
143
|
+
"isoly": {
|
|
63
144
|
"location": "import",
|
|
64
145
|
"path": "isoly"
|
|
65
146
|
}
|
|
@@ -78,10 +159,10 @@ export class InputDateRange {
|
|
|
78
159
|
"type": "string",
|
|
79
160
|
"mutable": true,
|
|
80
161
|
"complexType": {
|
|
81
|
-
"original": "Date",
|
|
162
|
+
"original": "isoly.Date",
|
|
82
163
|
"resolved": "string | undefined",
|
|
83
164
|
"references": {
|
|
84
|
-
"
|
|
165
|
+
"isoly": {
|
|
85
166
|
"location": "import",
|
|
86
167
|
"path": "isoly"
|
|
87
168
|
}
|
|
@@ -100,10 +181,10 @@ export class InputDateRange {
|
|
|
100
181
|
"type": "string",
|
|
101
182
|
"mutable": true,
|
|
102
183
|
"complexType": {
|
|
103
|
-
"original": "Date",
|
|
184
|
+
"original": "isoly.Date",
|
|
104
185
|
"resolved": "string | undefined",
|
|
105
186
|
"references": {
|
|
106
|
-
"
|
|
187
|
+
"isoly": {
|
|
107
188
|
"location": "import",
|
|
108
189
|
"path": "isoly"
|
|
109
190
|
}
|
|
@@ -122,10 +203,10 @@ export class InputDateRange {
|
|
|
122
203
|
"type": "string",
|
|
123
204
|
"mutable": true,
|
|
124
205
|
"complexType": {
|
|
125
|
-
"original": "Date",
|
|
206
|
+
"original": "isoly.Date",
|
|
126
207
|
"resolved": "string",
|
|
127
208
|
"references": {
|
|
128
|
-
"
|
|
209
|
+
"isoly": {
|
|
129
210
|
"location": "import",
|
|
130
211
|
"path": "isoly"
|
|
131
212
|
}
|
|
@@ -144,10 +225,10 @@ export class InputDateRange {
|
|
|
144
225
|
"type": "string",
|
|
145
226
|
"mutable": true,
|
|
146
227
|
"complexType": {
|
|
147
|
-
"original": "Date",
|
|
228
|
+
"original": "isoly.Date",
|
|
148
229
|
"resolved": "string",
|
|
149
230
|
"references": {
|
|
150
|
-
"
|
|
231
|
+
"isoly": {
|
|
151
232
|
"location": "import",
|
|
152
233
|
"path": "isoly"
|
|
153
234
|
}
|
|
@@ -247,18 +328,18 @@ export class InputDateRange {
|
|
|
247
328
|
"text": ""
|
|
248
329
|
},
|
|
249
330
|
"complexType": {
|
|
250
|
-
"original": "Date",
|
|
331
|
+
"original": "isoly.Date",
|
|
251
332
|
"resolved": "string",
|
|
252
333
|
"references": {
|
|
253
|
-
"
|
|
334
|
+
"isoly": {
|
|
254
335
|
"location": "import",
|
|
255
336
|
"path": "isoly"
|
|
256
337
|
}
|
|
257
338
|
}
|
|
258
339
|
}
|
|
259
340
|
}, {
|
|
260
|
-
"method": "
|
|
261
|
-
"name": "
|
|
341
|
+
"method": "smoothlyInput",
|
|
342
|
+
"name": "smoothlyInput",
|
|
262
343
|
"bubbles": true,
|
|
263
344
|
"cancelable": true,
|
|
264
345
|
"composed": true,
|
|
@@ -267,17 +348,62 @@ export class InputDateRange {
|
|
|
267
348
|
"text": ""
|
|
268
349
|
},
|
|
269
350
|
"complexType": {
|
|
270
|
-
"original": "
|
|
271
|
-
"resolved": "{
|
|
351
|
+
"original": "Data",
|
|
352
|
+
"resolved": "{ [name: string]: Value | Data; }",
|
|
272
353
|
"references": {
|
|
273
|
-
"
|
|
354
|
+
"Data": {
|
|
274
355
|
"location": "import",
|
|
275
|
-
"path": "
|
|
356
|
+
"path": "./../../../../model"
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}, {
|
|
361
|
+
"method": "smoothlyInputLooks",
|
|
362
|
+
"name": "smoothlyInputLooks",
|
|
363
|
+
"bubbles": true,
|
|
364
|
+
"cancelable": true,
|
|
365
|
+
"composed": true,
|
|
366
|
+
"docs": {
|
|
367
|
+
"tags": [],
|
|
368
|
+
"text": ""
|
|
369
|
+
},
|
|
370
|
+
"complexType": {
|
|
371
|
+
"original": "(looks: Looks, color: Color) => void",
|
|
372
|
+
"resolved": "(looks: Looks, color: Color) => void",
|
|
373
|
+
"references": {
|
|
374
|
+
"Looks": {
|
|
375
|
+
"location": "import",
|
|
376
|
+
"path": "../../Looks"
|
|
377
|
+
},
|
|
378
|
+
"Color": {
|
|
379
|
+
"location": "import",
|
|
380
|
+
"path": "./../../../../model"
|
|
276
381
|
}
|
|
277
382
|
}
|
|
278
383
|
}
|
|
279
384
|
}];
|
|
280
385
|
}
|
|
386
|
+
static get methods() {
|
|
387
|
+
return {
|
|
388
|
+
"clear": {
|
|
389
|
+
"complexType": {
|
|
390
|
+
"signature": "() => Promise<void>",
|
|
391
|
+
"parameters": [],
|
|
392
|
+
"references": {
|
|
393
|
+
"Promise": {
|
|
394
|
+
"location": "global"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"return": "Promise<void>"
|
|
398
|
+
},
|
|
399
|
+
"docs": {
|
|
400
|
+
"text": "",
|
|
401
|
+
"tags": []
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
static get elementRef() { return "element"; }
|
|
281
407
|
static get watchers() {
|
|
282
408
|
return [{
|
|
283
409
|
"propName": "value",
|
|
@@ -286,6 +412,18 @@ export class InputDateRange {
|
|
|
286
412
|
}
|
|
287
413
|
static get listeners() {
|
|
288
414
|
return [{
|
|
415
|
+
"name": "smoothlyInput",
|
|
416
|
+
"method": "smoothlyInputHandler",
|
|
417
|
+
"target": undefined,
|
|
418
|
+
"capture": false,
|
|
419
|
+
"passive": false
|
|
420
|
+
}, {
|
|
421
|
+
"name": "smoothlyInputLooks",
|
|
422
|
+
"method": "smoothlyInputLooksHandler",
|
|
423
|
+
"target": undefined,
|
|
424
|
+
"capture": false,
|
|
425
|
+
"passive": false
|
|
426
|
+
}, {
|
|
289
427
|
"name": "startChanged",
|
|
290
428
|
"method": "onStartChanged",
|
|
291
429
|
"target": undefined,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/input/date/range/index.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Listen, Method, Prop, Watch } from \"@stencil/core\"\nimport { isoly } from \"isoly\"\nimport { Clearable } from \"../../Clearable\"\nimport { Input } from \"../../Input\"\nimport { Looks } from \"../../Looks\"\nimport { Color, Data } from \"./../../../../model\"\n\n@Component({\n\ttag: \"smoothly-input-date-range\",\n\tstyleUrl: \"style.scss\",\n\tscoped: true,\n})\nexport class InputDateRange implements Clearable, Input {\n\t@Element() element: HTMLElement\n\t@Prop({ reflect: true, mutable: true }) color?: Color\n\t@Prop({ reflect: true, mutable: true }) looks: Looks = \"plain\"\n\t@Prop({ reflect: true }) name: string\n\t@Prop({ mutable: true }) value?: isoly.Date\n\t@Prop({ mutable: true }) start?: isoly.Date\n\t@Prop({ mutable: true }) end?: isoly.Date\n\t@Prop({ mutable: true }) max: isoly.Date\n\t@Prop({ mutable: true }) min: isoly.Date\n\t@Prop({ mutable: true }) open: boolean\n\t@Prop({ reflect: true }) showLabel = true\n\t@Prop() labelStart = \"from\"\n\t@Prop() labelEnd = \"to\"\n\t@Event() valueChanged: EventEmitter<isoly.Date>\n\t@Event() smoothlyInput: EventEmitter<Data>\n\t@Event() smoothlyInputLooks: EventEmitter<(looks: Looks, color: Color) => void>\n\n\t@Method()\n\tasync clear(): Promise<void> {\n\t\tthis.start = undefined\n\t\tthis.end = undefined\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.smoothlyInputLooks.emit((looks, color) => ((this.looks = looks), !this.color && (this.color = color)))\n\t\tif (this.start && this.end)\n\t\t\tthis.smoothlyInput.emit({ [this.name]: { start: this.start, end: this.end } })\n\t}\n\t@Watch(\"value\")\n\tonValue(next: isoly.Date) {\n\t\tthis.valueChanged.emit(next)\n\t}\n\t@Listen(\"smoothlyInput\")\n\tsmoothlyInputHandler(event: CustomEvent<Record<string, any>>) {\n\t\tif (event.target != this.element)\n\t\t\tevent.stopPropagation()\n\t}\n\t@Listen(\"smoothlyInputLooks\")\n\tsmoothlyInputLooksHandler(event: CustomEvent<(looks: Looks) => void>) {\n\t\tif (event.target != this.element)\n\t\t\tevent.stopPropagation()\n\t}\n\t@Listen(\"startChanged\")\n\tonStartChanged(event: CustomEvent<isoly.Date>) {\n\t\tthis.start = event.detail\n\t}\n\t@Listen(\"endChanged\")\n\tonEndChanged(event: CustomEvent<isoly.Date>) {\n\t\tthis.end = event.detail\n\t}\n\t@Listen(\"dateRangeSet\")\n\tonDateRangeSet(event: CustomEvent<isoly.DateRange>) {\n\t\tthis.open = false\n\t\tevent.stopPropagation()\n\t\tisoly.DateRange.is(event.detail) && this.smoothlyInput.emit({ [this.name]: event.detail })\n\t}\n\trender() {\n\t\treturn [\n\t\t\t<section onClick={() => (this.open = !this.open)}>\n\t\t\t\t<smoothly-input\n\t\t\t\t\ttype=\"date\"\n\t\t\t\t\tname=\"start\"\n\t\t\t\t\tvalue={this.start}\n\t\t\t\t\tlooks=\"plain\"\n\t\t\t\t\tshowLabel={this.showLabel}\n\t\t\t\t\tonSmoothlyInput={e => (this.start = e.detail.start)}>\n\t\t\t\t\t{`${this.labelStart}`}\n\t\t\t\t</smoothly-input>\n\t\t\t\t<span>–</span>\n\t\t\t\t<smoothly-input\n\t\t\t\t\ttype=\"date\"\n\t\t\t\t\tname=\"end\"\n\t\t\t\t\tvalue={this.end}\n\t\t\t\t\tlooks=\"plain\"\n\t\t\t\t\tshowLabel={this.showLabel}\n\t\t\t\t\tonSmoothlyInput={e => (this.end = e.detail.end)}>\n\t\t\t\t\t{`${this.labelEnd}`}\n\t\t\t\t</smoothly-input>\n\t\t\t</section>,\n\t\t\tthis.open ? <div onClick={() => (this.open = false)}></div> : [],\n\t\t\tthis.open ? (\n\t\t\t\t<nav>\n\t\t\t\t\t<div class=\"arrow\"></div>\n\t\t\t\t\t<smoothly-calendar\n\t\t\t\t\t\tdoubleInput={true}\n\t\t\t\t\t\tvalue={this.value ?? isoly.Date.now()}\n\t\t\t\t\t\tonValueChanged={event => {\n\t\t\t\t\t\t\tthis.value = event.detail\n\t\t\t\t\t\t\tevent.stopPropagation()\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tstart={this.start}\n\t\t\t\t\t\tend={this.end}\n\t\t\t\t\t\tmax={this.max}\n\t\t\t\t\t\tmin={this.min}></smoothly-calendar>\n\t\t\t\t</nav>\n\t\t\t) : (\n\t\t\t\t[]\n\t\t\t),\n\t\t]\n\t}\n}\n"]}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
:host[looks="border"]::slotted(smoothly-picker-menu smoothly-input),
|
|
5
|
+
:host[looks="border"] {
|
|
6
|
+
border: rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px;
|
|
7
|
+
}
|
|
8
|
+
:host[looks="line"]::slotted(smoothly-picker-menu smoothly-input),
|
|
9
|
+
:host[looks="line"] {
|
|
10
|
+
border-bottom: rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px;
|
|
11
|
+
}
|
|
12
|
+
:host[looks="grid"]::slotted(smoothly-picker-menu smoothly-input),
|
|
13
|
+
:host[looks="grid"] {
|
|
14
|
+
border: rgba(var(--text-color, var(--smoothly-color-contrast)), .5) solid .5px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:host {
|
|
18
|
+
position: relative;
|
|
19
|
+
display: block;
|
|
20
|
+
width: fit-content;
|
|
21
|
+
background-color: rgb(var(--background-color, var(--smoothly-color-shade)));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:host > nav {
|
|
25
|
+
position: absolute;
|
|
26
|
+
z-index: 10;
|
|
27
|
+
top: 3.5em;
|
|
28
|
+
background-color: rgb(var(--background-color, var(--smoothly-color-shade)));
|
|
29
|
+
max-width: 22em;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:host > div {
|
|
33
|
+
position: fixed;
|
|
34
|
+
top: 0px;
|
|
35
|
+
left: 0px;
|
|
36
|
+
right: 0px;
|
|
37
|
+
bottom: 0px;
|
|
38
|
+
width: 100vw;
|
|
39
|
+
height: 100vh;
|
|
40
|
+
z-index: 2;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host > nav > .arrow {
|
|
44
|
+
position: absolute;
|
|
45
|
+
z-index: 9;
|
|
46
|
+
transform: translate(10em, -0.55em) rotate(45deg);
|
|
47
|
+
width: 1em;
|
|
48
|
+
height: 1em;
|
|
49
|
+
background-color: rgb(var(--background-color, var(--smoothly-color-shade)));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host > section {
|
|
53
|
+
display: flex;
|
|
54
|
+
background-color: var(--background-color, var(--smoothly-color-shade), transparent);
|
|
55
|
+
border-radius: 0.25rem;
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
smoothly-input {
|
|
60
|
+
border-radius: var(--border-radius, none);
|
|
61
|
+
background-color: transparent;
|
|
62
|
+
width: var(--input-width);
|
|
63
|
+
flex-grow: 1;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
span {
|
|
67
|
+
padding: 0.5em 0.2em 0.5em 0.2em;
|
|
68
|
+
align-self: center;
|
|
69
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
:host[looks="border"]::slotted(smoothly-picker-menu smoothly-input),
|
|
5
|
+
:host[looks="border"] {
|
|
6
|
+
border: rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px;
|
|
7
|
+
}
|
|
8
|
+
:host[looks="line"]::slotted(smoothly-picker-menu smoothly-input),
|
|
9
|
+
:host[looks="line"] {
|
|
10
|
+
border-bottom: rgb(var(--text-color, var(--smoothly-color-contrast))) solid 1px;
|
|
11
|
+
}
|
|
12
|
+
:host[looks="grid"]::slotted(smoothly-picker-menu smoothly-input),
|
|
13
|
+
:host[looks="grid"] {
|
|
14
|
+
border: rgba(var(--text-color, var(--smoothly-color-contrast)), .5) solid .5px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
:host {
|
|
19
|
+
position: relative;
|
|
20
|
+
max-width: 100vw;
|
|
21
|
+
background-color: rgb(var(--background-color, var(--smoothly-color-shade)));
|
|
22
|
+
}
|
|
23
|
+
nav {
|
|
24
|
+
position: absolute;
|
|
25
|
+
z-index: 10;
|
|
26
|
+
top: 3.5em;
|
|
27
|
+
background-color: rgb(var(--background-color, var(--smoothly-color-shade)));
|
|
28
|
+
min-width: 18em;
|
|
29
|
+
}
|
|
30
|
+
:host > div {
|
|
31
|
+
position: fixed;
|
|
32
|
+
top: 0;
|
|
33
|
+
left: 0;
|
|
34
|
+
right: 0;
|
|
35
|
+
bottom: 0;
|
|
36
|
+
width: 100vw;
|
|
37
|
+
height: 100vh;
|
|
38
|
+
z-index: 2;
|
|
39
|
+
}
|
|
40
|
+
:host > nav > .arrow {
|
|
41
|
+
position: absolute;
|
|
42
|
+
z-index: 9;
|
|
43
|
+
transform: translate(2em, -0.55em) rotate(45deg);
|
|
44
|
+
width: 1em;
|
|
45
|
+
height: 1em;
|
|
46
|
+
background-color: rgb(var(--background-color, var(--smoothly-color-shade)));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@media screen and (min-width: 400px){
|
|
50
|
+
nav {
|
|
51
|
+
position: absolute;
|
|
52
|
+
z-index: 10;
|
|
53
|
+
top: 3.5em;
|
|
54
|
+
background-color: rgb(var(--background-color, var(--smoothly-color-shade)));
|
|
55
|
+
max-width: 22em;
|
|
56
|
+
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { isoly } from "isoly";
|
|
3
|
+
export class SmoothlyInputDemo {
|
|
4
|
+
handleSelectionChanged(event) {
|
|
5
|
+
console.log("selectionChanged", event.detail);
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return [
|
|
9
|
+
h("h2", null, "Duration"),
|
|
10
|
+
h("smoothly-form", { looks: "border" }, h("smoothly-input", { name: "duration", type: "duration", placeholder: "hh:mm", value: { hours: 5, minutes: 30 }, onSmoothlyInput: e => console.log(e.detail.duration) }, "Duration"), h("smoothly-input", { name: "duration", type: "duration", value: { hours: 5, minutes: 30 }, placeholder: "hh:mm", onSmoothlyInput: e => console.log(e.detail.duration) }, "Varaktighet")),
|
|
11
|
+
h("h2", null, "Submit"),
|
|
12
|
+
h("smoothly-form", { looks: "border" }, h("smoothly-input", { type: "email", name: "email" }, "Email"), h("smoothly-input", { type: "password", name: "password" }, "Password"), h("smoothly-input-clear", { fill: "default", type: "form", color: "danger", slot: "clear" }, "Clear"), h("smoothly-submit", { slot: "submit" }, "Submit")),
|
|
13
|
+
h("h4", null, "Clear"),
|
|
14
|
+
h("smoothly-form", { looks: "border" }, h("smoothly-input", { name: "First Name" }, "First name"), h("smoothly-input", { name: "Last name" }, "Last name", h("smoothly-input-clear", { slot: "end" }, h("smoothly-icon", { name: "close" }))), h("smoothly-input", { type: "phone", name: "Phone" }, "Phone", h("smoothly-input-clear", { slot: "end" }, h("smoothly-icon", { name: "close" }))), h("smoothly-input-clear", { fill: "default", type: "form", color: "danger", slot: "submit" }, "Clear")),
|
|
15
|
+
h("h2", null, "Border"),
|
|
16
|
+
h("smoothly-form", { looks: "border" }, h("smoothly-input", { type: "email", name: "email" }, "Email"), h("smoothly-input", { type: "password", name: "password" }, "Password"), h("smoothly-submit", { slot: "submit", onSubmit: (e) => alert(e), color: "success", fill: "solid" }, "Send")),
|
|
17
|
+
h("h2", null, "Grid"),
|
|
18
|
+
h("h4", null, "Contact"),
|
|
19
|
+
h("smoothly-form", { looks: "grid", method: "GET", action: "https://webhook.site/85bb78f6-b450-4a74-81ac-d7cac6e94bbe" }, h("smoothly-input", { type: "text", name: "name.last" }, "First Name"), h("smoothly-input", { type: "text", name: "name.first" }, "Last Name"), h("smoothly-input", { type: "text", name: "street", value: "Torgny Segerstedts All\u00E9 87" }, "Street"), h("smoothly-input", { type: "postal-code", name: "zip" }, "ZipCode"), h("smoothly-input", { type: "text", name: "city" }, "City"), h("smoothly-input", { type: "text", name: "countryCode" }, "CountryCode"), h("smoothly-input", { type: "phone", name: "phone" }, "Phone"), h("smoothly-input", { type: "email", name: "email" }, "Email"), h("smoothly-submit", { slot: "submit", color: "success", fill: "solid" }, h("smoothly-icon", { name: "checkmark-circle", slot: "start" }), "Submit")),
|
|
20
|
+
h("h4", null, "Card"),
|
|
21
|
+
h("smoothly-form", { looks: "grid", onSmoothlyFormSubmit: (e) => alert(JSON.stringify(e.detail)) }, h("smoothly-input", { type: "card-number", name: "card" }, "Card #"), h("smoothly-submit", { size: "icon", slot: "submit", color: "success", fill: "solid" }, h("smoothly-icon", { name: "checkmark-circle" })), h("smoothly-input", { type: "card-expires", name: "expires" }, "Expires"), h("smoothly-input", { type: "card-csc", name: "csc" }, "CVV/CVC"), h("smoothly-input", { type: "text", name: "name.first" }, "First Name"), h("smoothly-input", { type: "text", name: "name.last" }, "Last Name")),
|
|
22
|
+
h("h4", null, "Contact"),
|
|
23
|
+
h("smoothly-form", { looks: "grid" }, h("smoothly-input", { type: "email", name: "email" }, "Email"), h("smoothly-input", { type: "password", name: "password" }, "Password"), h("smoothly-input", { type: "price", currency: "SEK", name: "price" }, "Price"), h("smoothly-input", { type: "percent", name: "percent" }, "Percent"), h("smoothly-submit", { slot: "submit", color: "success", fill: "solid", size: "icon" }, h("smoothly-icon", { name: "checkmark-circle" }))),
|
|
24
|
+
h("h4", null, "Random"),
|
|
25
|
+
h("smoothly-form", { looks: "grid" }, h("smoothly-input", { type: "text", name: "name", readonly: true, value: "Readonly", onSmoothlyBlur: () => console.log("smoothly blur"), style: { width: "100%" } }, "Readonly"), h("smoothly-input", { type: "text", name: "testing" }, "TextTest"), h("smoothly-input", { type: "date-time", name: "date-time" }, "Date-Time"), h("smoothly-input", { type: "divisor", name: "divisor" }, "Divisor"), h("smoothly-input", { type: "date", name: "date" }, "Date"), h("smoothly-input-date", { name: "some-date" }, "Calendar")),
|
|
26
|
+
h("h2", null, "Line"),
|
|
27
|
+
h("smoothly-form", { looks: "line" }, h("smoothly-input", { type: "text", name: "name.last", onSmoothlyChange: e => console.log("smoothly change event") }, "First Name"), h("smoothly-input", { type: "text", name: "name.first", onSmoothlyChange: e => console.log("smoothly change event") }, "Last Name"), h("smoothly-submit", { slot: "submit", fill: "solid", onSubmit: (e) => alert(e), color: "success" }, "Send")),
|
|
28
|
+
h("h2", null, "Input Alternatives"),
|
|
29
|
+
h("smoothly-form", { looks: "border" }, h("smoothly-input", { type: "text", name: "name.last", onSmoothlyChange: e => console.log("smoothly change event") }, h("smoothly-icon", { name: "checkmark-circle", slot: "start" }), "First Name"), h("smoothly-input", { type: "text", name: "name.first", onSmoothlyChange: e => console.log("smoothly change event") }, "Last Name", h("smoothly-icon", { name: "checkmark-circle", slot: "end" })), h("smoothly-input", { type: "text", name: "name.first", placeholder: "Smith", onSmoothlyChange: e => console.log("smoothly change event") }, "Last Name", h("smoothly-icon", { name: "checkmark-circle", slot: "end" })), h("smoothly-input", { placeholder: "test" }), h("smoothly-submit", { slot: "submit", fill: "solid", onSubmit: (e) => alert(e), color: "success" }, "Send")),
|
|
30
|
+
h("h4", null, "Smoothly checkboxes"),
|
|
31
|
+
h("smoothly-form", null, h("div", null, h("smoothly-checkbox", null, "Check me", h("div", { slot: "expansion" }, "Some context")), h("smoothly-checkbox", null, "Label"), h("smoothly-checkbox", { disabled: true }))),
|
|
32
|
+
h("h4", null, "Smoothly Radio Buttons"),
|
|
33
|
+
h("smoothly-form", { onSmoothlyFormSubmit: e => console.log(e.detail) }, h("smoothly-radio-button", { name: "radioButtonDemo", deselectable: true, decoration: "button" }, h("smoothly-radio-button-item", { value: "test" }, "Option 1", h("div", { slot: "expansion" }, "Some description.")), h("smoothly-radio-button-item", { value: { some: "thing", yes: "miss" } }, "Option 2", h("div", { slot: "expansion" }, "Some other description.")), h("smoothly-radio-button-item", { value: { some: "one", yes: "kid" } }, "Option 3", h("div", { slot: "expansion" }, "Some third description."))), h("smoothly-submit", { slot: "submit", color: "success", fill: "solid", size: "icon" }, h("smoothly-icon", { name: "checkmark-circle" }))),
|
|
34
|
+
h("h4", null, "Radio List without button 1"),
|
|
35
|
+
h("smoothly-form", null, h("smoothly-radio-button", { name: "RadioListWithoutButton" }, h("smoothly-radio-button-item", { value: { some: "content", yes: "sir" }, selected: true, color: "light" }, h("span", null, "Option 1"), h("span", { slot: "expansion" }, "Some description.")), h("smoothly-radio-button-item", { value: { some: "thing", yes: "miss" }, color: "light" }, h("span", null, "Option 2"), h("span", { slot: "expansion" }, "Some other description.")), h("smoothly-radio-button-item", { value: { some: "one", yes: "kid" }, color: "light" }, h("span", null, "Option 3"), h("span", { slot: "expansion" }, "Some third description."))), h("smoothly-submit", { slot: "submit", color: "success", fill: "solid", size: "icon" }, h("smoothly-icon", { name: "checkmark-circle" }))),
|
|
36
|
+
h("h4", null, "Radio List without button 2"),
|
|
37
|
+
h("smoothly-form", null, h("smoothly-radio", { name: "option", value: "1a", style: { width: "100%" } }, "option 1"), h("smoothly-radio", { name: "option", value: "2a", checked: true, style: { width: "100%" } }, "option 2"), h("smoothly-radio", { name: "option", value: "3a", style: { width: "100%" } }, "option 3")),
|
|
38
|
+
h("h4", null, "Smoothly Accordion"),
|
|
39
|
+
h("smoothly-form", null, h("smoothly-accordion", null, h("smoothly-accordion-item", { name: "A", open: true }, h("smoothly-radio", { name: "a", value: "1b" }, "a 1"), h("smoothly-radio", { name: "a", value: "2b", checked: true }, "a 2"), h("smoothly-radio", { name: "a", value: "3b" }, "a 3")), h("smoothly-accordion-item", { name: "B" }, h("smoothly-radio", { name: "b", value: "1c" }, "b 1"), h("smoothly-radio", { name: "b", value: "2c" }, "b 2"), h("smoothly-radio", { name: "b", value: "3c" }, "b 3"))), h("smoothly-submit", { slot: "submit", color: "success", fill: "solid", size: "icon" }, h("smoothly-icon", { name: "checkmark-circle" }))),
|
|
40
|
+
h("h4", null, "Smoothly Picker"),
|
|
41
|
+
h("smoothly-picker-demo", null),
|
|
42
|
+
h("smoothly-back-to-top", null),
|
|
43
|
+
h("h4", null, "Smoothly Date"),
|
|
44
|
+
h("smoothly-input-date", null, "Date"),
|
|
45
|
+
h("smoothly-input-date", { showLabel: false, value: "2021-10-28", max: "2021-12-30", min: "2021-10-10" }, "Date"),
|
|
46
|
+
h("smoothly-form", { looks: "grid", onSmoothlyFormSubmit: e => console.log(e.detail) }, h("smoothly-input-date-range", { name: "testing", start: isoly.Date.now(), end: isoly.Date.nextMonth(isoly.Date.now()), min: "2021-10-10", max: "2024-12-30" }), h("smoothly-input-clear", { type: "form", color: "danger", fill: "solid", slot: "clear" }, "Clear"), h("smoothly-submit", { slot: "submit" }, "submit daterange")),
|
|
47
|
+
h("smoothly-input-date-range", { looks: "grid", start: isoly.Date.now(), end: isoly.Date.nextMonth(isoly.Date.now()), min: "2021-10-10", max: "2025-12-30", showLabel: false, style: {
|
|
48
|
+
"--border-radius": "4px",
|
|
49
|
+
"--padding": "0 0.75em",
|
|
50
|
+
"--input-width": "12ch",
|
|
51
|
+
} }),
|
|
52
|
+
h("br", null),
|
|
53
|
+
h("h4", null, "Smoothly Selector"),
|
|
54
|
+
h("smoothly-input-select", { type: "icon", initialValue: "folder", showSelected: false }, h("smoothly-item", { value: "folder" }, h("smoothly-icon", { color: "dark", name: "folder-outline" })), h("smoothly-item", { value: "camera" }, h("smoothly-icon", { color: "dark", name: "camera-outline" }))),
|
|
55
|
+
h("br", null),
|
|
56
|
+
h("smoothly-input-select", { looks: "line", initialPrompt: "Select...", ref: (element) => (this.selectElement = element) }, h("smoothly-item", { value: "1" }, "January"), h("smoothly-item", { value: "2" }, "February"), h("smoothly-item", { value: "3" }, "March"), h("smoothly-item", { value: "4" }, "April"), h("smoothly-item", { value: "5" }, "May"), h("smoothly-item", { value: "6" }, "June"), h("smoothly-item", { value: "7" }, "July"), h("smoothly-item", { value: "8" }, "August"), h("smoothly-item", { value: "9" }, "September"), h("smoothly-item", { value: "10" }, "October"), h("smoothly-item", { value: "11" }, "November"), h("smoothly-item", { value: "12" }, "December")),
|
|
57
|
+
h("button", { onClick: async () => this.selectElement.reset() }, "Reset select"),
|
|
58
|
+
h("br", null),
|
|
59
|
+
h("smoothly-form", { looks: "grid", onSmoothlyFormSubmit: e => console.log("Submitted", e.detail) }, h("smoothly-input", { type: "text", name: "text" }, "Text"), h("div", null, h("smoothly-input-file", { placeholder: "Select or drag a file here", name: "file" }, h("span", { slot: "label" }, "Testing file input"), h("smoothly-icon", { slot: "button", name: "folder-outline" }))), h("smoothly-input-file", { camera: "back", placeholder: "Capture a photo", name: "image" }, h("span", { slot: "label" }, "Testing camera photo"), h("smoothly-icon", { slot: "button", name: "camera-outline" })), h("smoothly-input-clear", { type: "form", color: "danger", fill: "solid", slot: "clear" }, "Clear"), h("smoothly-submit", { slot: "submit" }, "Submit")),
|
|
60
|
+
h("br", null),
|
|
61
|
+
h("smoothly-form", { looks: "line", onSmoothlyFormSubmit: e => console.log("form input", e.detail) }, h("smoothly-input", { name: "text" }, "Input"), h("smoothly-input-file", { camera: "back", placeholder: "Capture a photo", name: "image" }, h("span", { slot: "label" }, "Testing camera photo"), h("smoothly-icon", { slot: "button", name: "camera-outline" })), h("smoothly-picker", { name: "picker" }, h("span", { slot: "label" }, "Shape"), h("span", { slot: "search" }, "Search"), h("smoothly-picker-option", { value: "circle" }, h("span", { slot: "label" }, "Circle"), h("smoothly-icon", { size: "tiny", name: "ellipse-outline" })), h("smoothly-picker-option", { value: "cube" }, h("span", { slot: "label" }, "Cube"), h("smoothly-icon", { size: "tiny", name: "cube-outline" })), h("smoothly-picker-option", { value: "square", selected: true }, h("span", { slot: "label" }, "Square"), h("smoothly-icon", { size: "tiny", name: "square-outline" }))), h("smoothly-input-select", { name: "select", initialPrompt: "Select...", ref: (element) => (this.selectElement = element) }, h("smoothly-item", { value: "1" }, "January"), h("smoothly-item", { value: "2" }, "February"), h("smoothly-item", { value: "3" }, "March"), h("smoothly-item", { value: "4" }, "April"), h("smoothly-item", { value: "5" }, "May"), h("smoothly-item", { value: "6" }, "June"), h("smoothly-item", { value: "7" }, "July"), h("smoothly-item", { value: "8" }, "August"), h("smoothly-item", { value: "9" }, "September"), h("smoothly-item", { value: "10" }, "October"), h("smoothly-item", { value: "11" }, "November"), h("smoothly-item", { value: "12" }, "December")), h("smoothly-input-date-range", { name: "date-range", start: isoly.Date.now(), end: isoly.Date.nextMonth(isoly.Date.now()), min: "2021-10-10", max: "2025-12-30", showLabel: false, style: {
|
|
62
|
+
"--border-radius": "4px",
|
|
63
|
+
"--padding": "0 0.75em",
|
|
64
|
+
"--input-width": "12ch",
|
|
65
|
+
} }), h("smoothly-input-date", { name: "date", value: "2021-10-28", max: "2021-12-30", min: "2021-10-10" }, "Date"), h("smoothly-submit", { slot: "submit", color: "success", fill: "solid", size: "icon" }, h("smoothly-icon", { name: "checkmark-circle", fill: "solid", size: "medium" }))),
|
|
66
|
+
h("h4", null, "Form with spinner showcase"),
|
|
67
|
+
h("smoothly-form", { looks: "line", processing: true, onSmoothlyFormSubmit: e => console.log("form input", e.detail) }, h("smoothly-input", { name: "text" }, "Input"), h("smoothly-input-file", { camera: "back", placeholder: "Capture a photo", name: "image" }, h("span", { slot: "label" }, "Testing camera photo"), h("smoothly-icon", { slot: "button", name: "camera-outline" })), h("smoothly-picker", { name: "picker" }, h("span", { slot: "label" }, "Shape"), h("span", { slot: "search" }, "Search"), h("smoothly-picker-option", { value: "circle" }, h("span", { slot: "label" }, "Circle"), h("smoothly-icon", { size: "tiny", name: "ellipse-outline" })), h("smoothly-picker-option", { value: "cube" }, h("span", { slot: "label" }, "Cube"), h("smoothly-icon", { size: "tiny", name: "cube-outline" })), h("smoothly-picker-option", { value: "square", selected: true }, h("span", { slot: "label" }, "Square"), h("smoothly-icon", { size: "tiny", name: "square-outline" }))), h("smoothly-input-select", { name: "select", initialPrompt: "Select...", ref: (element) => (this.selectElement = element) }, h("smoothly-item", { value: "1" }, "January"), h("smoothly-item", { value: "2" }, "February"), h("smoothly-item", { value: "3" }, "March"), h("smoothly-item", { value: "4" }, "April"), h("smoothly-item", { value: "5" }, "May"), h("smoothly-item", { value: "6" }, "June"), h("smoothly-item", { value: "7" }, "July"), h("smoothly-item", { value: "8" }, "August"), h("smoothly-item", { value: "9" }, "September"), h("smoothly-item", { value: "10" }, "October"), h("smoothly-item", { value: "11" }, "November"), h("smoothly-item", { value: "12" }, "December")), h("smoothly-input-date-range", { name: "date-range", start: isoly.Date.now(), end: isoly.Date.nextMonth(isoly.Date.now()), min: "2021-10-10", max: "2025-12-30", showLabel: false, style: {
|
|
68
|
+
"--border-radius": "4px",
|
|
69
|
+
"--padding": "0 0.75em",
|
|
70
|
+
"--input-width": "12ch",
|
|
71
|
+
} }), h("smoothly-input-date", { name: "date", value: "2021-10-28", max: "2021-12-30", min: "2021-10-10" }, "Date"), h("smoothly-submit", { slot: "submit", color: "success", fill: "solid", size: "icon" }, h("smoothly-icon", { name: "checkmark-circle", fill: "solid", size: "medium" }))),
|
|
72
|
+
];
|
|
73
|
+
}
|
|
74
|
+
static get is() { return "smoothly-input-demo"; }
|
|
75
|
+
static get originalStyleUrls() {
|
|
76
|
+
return {
|
|
77
|
+
"$": ["style.css"]
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
static get styleUrls() {
|
|
81
|
+
return {
|
|
82
|
+
"$": ["style.css"]
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
static get listeners() {
|
|
86
|
+
return [{
|
|
87
|
+
"name": "selectionChanged",
|
|
88
|
+
"method": "handleSelectionChanged",
|
|
89
|
+
"target": undefined,
|
|
90
|
+
"capture": false,
|
|
91
|
+
"passive": false
|
|
92
|
+
}];
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=index.js.map
|