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
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
[color=default] {
|
|
2
|
+
--smoothly-color: var(--smoothly-default-color);
|
|
3
|
+
--smoothly-color-contrast: var(--smoothly-default-contrast);
|
|
4
|
+
--smoothly-color-shade: var(--smoothly-default-shade);
|
|
5
|
+
--smoothly-color-tint: var(--smoothly-default-tint);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
[color=primary] {
|
|
9
|
+
--smoothly-color: var(--smoothly-primary-color);
|
|
10
|
+
--smoothly-color-contrast: var(--smoothly-primary-contrast);
|
|
11
|
+
--smoothly-color-shade: var(--smoothly-primary-shade);
|
|
12
|
+
--smoothly-color-tint: var(--smoothly-primary-tint);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[color=secondary] {
|
|
16
|
+
--smoothly-color: var(--smoothly-secondary-color);
|
|
17
|
+
--smoothly-color-contrast: var(--smoothly-secondary-contrast);
|
|
18
|
+
--smoothly-color-shade: var(--smoothly-secondary-shade);
|
|
19
|
+
--smoothly-color-tint: var(--smoothly-secondary-tint);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[color=tertiary] {
|
|
23
|
+
--smoothly-color: var(--smoothly-tertiary-color);
|
|
24
|
+
--smoothly-color-contrast: var(--smoothly-tertiary-contrast);
|
|
25
|
+
--smoothly-color-shade: var(--smoothly-tertiary-shade);
|
|
26
|
+
--smoothly-color-tint: var(--smoothly-tertiary-tint);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[color=success] {
|
|
30
|
+
--smoothly-color: var(--smoothly-success-color);
|
|
31
|
+
--smoothly-color-contrast: var(--smoothly-success-color);
|
|
32
|
+
--smoothly-color-shade: var(--smoothly-success-shade);
|
|
33
|
+
--smoothly-color-tint: var(--smoothly-success-tint);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[color=warning] {
|
|
37
|
+
--smoothly-color: var(--smoothly-warning-color);
|
|
38
|
+
--smoothly-color-contrast: var(--smoothly-warning-contrast);
|
|
39
|
+
--smoothly-color-shade: var(--smoothly-warning-shade);
|
|
40
|
+
--smoothly-color-tint: var(--smoothly-warning-tint);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[color=danger] {
|
|
44
|
+
--smoothly-color: var(--smoothly-danger-color);
|
|
45
|
+
--smoothly-color-contrast: var(--smoothly-danger-contrast);
|
|
46
|
+
--smoothly-color-shade: var(--smoothly-danger-shade);
|
|
47
|
+
--smoothly-color-tint: var(--smoothly-danger-tint);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
[color=light] {
|
|
51
|
+
--smoothly-color: var(--smoothly-light-color);
|
|
52
|
+
--smoothly-color-contrast: var(--smoothly-light-contrast);
|
|
53
|
+
--smoothly-color-shade: var(--smoothly-light-shade);
|
|
54
|
+
--smoothly-color-tint: var(--smoothly-light-tint);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[color=medium] {
|
|
58
|
+
--smoothly-color: var(--smoothly-medium-color);
|
|
59
|
+
--smoothly-color-contrast: var(--smoothly-medium-contrast);
|
|
60
|
+
--smoothly-color-shade: var(--smoothly-medium-shade);
|
|
61
|
+
--smoothly-color-tint: var(--smoothly-medium-tint);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[color=dark] {
|
|
65
|
+
--smoothly-color: var(--smoothly-dark-color);
|
|
66
|
+
--smoothly-color-contrast: var(--smoothly-dark-contrast);
|
|
67
|
+
--smoothly-color-shade: var(--smoothly-dark-shade);
|
|
68
|
+
--smoothly-color-tint: var(--smoothly-dark-tint);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
:host{
|
|
73
|
+
display: inline-block;
|
|
74
|
+
margin: 1em;
|
|
75
|
+
box-sizing: border-box;
|
|
76
|
+
border-radius: 0.5rem;
|
|
77
|
+
border: solid 1px;
|
|
78
|
+
transition: background 150ms ease-in-out;
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
}
|
|
81
|
+
:host([type=link]){
|
|
82
|
+
display: inline;
|
|
83
|
+
border: none;
|
|
84
|
+
}
|
|
85
|
+
:host([disabled]){
|
|
86
|
+
opacity: 0.5;
|
|
87
|
+
pointer-events: none;
|
|
88
|
+
}
|
|
89
|
+
a,
|
|
90
|
+
button{
|
|
91
|
+
font-size: 110%;
|
|
92
|
+
font-weight: 400;
|
|
93
|
+
border: none;
|
|
94
|
+
background-color: transparent;
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
display: inline-flex;
|
|
97
|
+
gap: 0.5rem;
|
|
98
|
+
}
|
|
99
|
+
button {
|
|
100
|
+
justify-content: center;
|
|
101
|
+
height: 100%;
|
|
102
|
+
width: 100%;
|
|
103
|
+
border-radius: 0.5rem;
|
|
104
|
+
min-width: 8em;
|
|
105
|
+
align-items: center;
|
|
106
|
+
}
|
|
107
|
+
:host(:not([size=icon])) > button {
|
|
108
|
+
padding: 0.8em;
|
|
109
|
+
}
|
|
110
|
+
:host([size=icon]) > button{
|
|
111
|
+
padding: 0.5em;
|
|
112
|
+
}
|
|
113
|
+
:host([shape=rounded]) > button,
|
|
114
|
+
:host([shape=rounded]){
|
|
115
|
+
border-radius: 2rem;
|
|
116
|
+
}
|
|
117
|
+
:host([type=button]) > a {
|
|
118
|
+
text-align: center;
|
|
119
|
+
text-decoration: inherit;
|
|
120
|
+
width: calc(100% - 0.6em);
|
|
121
|
+
}
|
|
122
|
+
:host([size=small]) > button{
|
|
123
|
+
font-size: 100%;
|
|
124
|
+
}
|
|
125
|
+
:host([size=large]) > button{
|
|
126
|
+
font-size: 130%;
|
|
127
|
+
}
|
|
128
|
+
:host(:not([size=icon])){
|
|
129
|
+
min-width: 8em;
|
|
130
|
+
}
|
|
131
|
+
:host([size=flexible]) {
|
|
132
|
+
min-width: unset;
|
|
133
|
+
padding: 0;
|
|
134
|
+
margin: 0;
|
|
135
|
+
display: flex;
|
|
136
|
+
justify-content: center;
|
|
137
|
+
align-items: center;
|
|
138
|
+
border: none;
|
|
139
|
+
}
|
|
140
|
+
:host([size=flexible]) > button {
|
|
141
|
+
min-width: unset;
|
|
142
|
+
padding: 0;
|
|
143
|
+
margin: 0 !important;
|
|
144
|
+
}
|
|
145
|
+
:host([expand]) {
|
|
146
|
+
width: 100%;
|
|
147
|
+
}
|
|
148
|
+
:host([expand=full]) {
|
|
149
|
+
border-left: none;
|
|
150
|
+
border-right: none;
|
|
151
|
+
border-radius: 0;
|
|
152
|
+
}
|
|
153
|
+
:host([shape=rounded]) > button,
|
|
154
|
+
:host([shape=rounded]){
|
|
155
|
+
border-radius: 2rem;
|
|
156
|
+
}
|
|
157
|
+
:host(:not([fill=clear]):hover),
|
|
158
|
+
:host(:not([fill=clear]):focus),
|
|
159
|
+
:host(:not([fill=clear]):active){
|
|
160
|
+
border-color: rgb(var(--smoothly-color-tint)) !important;
|
|
161
|
+
background: rgb(var(--smoothly-color-tint)) !important;
|
|
162
|
+
}
|
|
163
|
+
:host(:not([fill=clear]):hover) > button,
|
|
164
|
+
:host(:not([fill=clear]):focus) > button,
|
|
165
|
+
:host(:not([fill=clear]):active) > button,
|
|
166
|
+
:host(:not([fill=clear]):hover) ::slotted(smoothly-icon),
|
|
167
|
+
:host(:not([fill=clear]):focus) ::slotted(smoothly-icon),
|
|
168
|
+
:host(:not([fill=clear]):active) ::slotted(smoothly-icon){
|
|
169
|
+
color: rgb(var(--smoothly-color-contrast)) !important;
|
|
170
|
+
stroke: rgb(var(--smoothly-color-contrast)) !important;
|
|
171
|
+
fill: rgb(var(--smoothly-color-contrast)) !important;
|
|
172
|
+
}
|
|
173
|
+
:host([fill=clear]:hover) > button,
|
|
174
|
+
:host([fill=clear]:focus) > button,
|
|
175
|
+
:host([fill=clear]:active) > button{
|
|
176
|
+
color: rgb(var(--smoothly-color-tint)) !important;
|
|
177
|
+
stroke: rgb(var(--smoothly-color-tint)) !important;
|
|
178
|
+
fill: rgb(var(--smoothly-color-tint)) !important;
|
|
179
|
+
}
|
|
180
|
+
:host([disabled]){
|
|
181
|
+
opacity: 0.5;
|
|
182
|
+
pointer-events: none;
|
|
183
|
+
}
|
|
184
|
+
:host(:not([fill])),
|
|
185
|
+
:host([fill=default]) {
|
|
186
|
+
background: rgb(var(--smoothly-color));
|
|
187
|
+
border-color: transparent;
|
|
188
|
+
}
|
|
189
|
+
:host([fill=solid]) {
|
|
190
|
+
background: rgb(var(--smoothly-color));
|
|
191
|
+
border-color: rgb(var(--smoothly-color));
|
|
192
|
+
}
|
|
193
|
+
:host([fill=solid]) > button,
|
|
194
|
+
:host([fill=default]) > button{
|
|
195
|
+
stroke: rgb(var(--smoothly-color-contrast));
|
|
196
|
+
fill: rgb(var(--smoothly-color-contrast));
|
|
197
|
+
color: rgb(var(--smoothly-color-contrast));
|
|
198
|
+
}
|
|
199
|
+
:host([fill=outline]) > button,
|
|
200
|
+
:host([fill=clear]) > button{
|
|
201
|
+
stroke: rgb(var(--smoothly-color));
|
|
202
|
+
fill: rgb(var(--smoothly-color));
|
|
203
|
+
color: rgb(var(--smoothly-color));
|
|
204
|
+
}
|
|
205
|
+
:host([fill=outline]) {
|
|
206
|
+
background: transparent;
|
|
207
|
+
border-color: rgb(var(--smoothly-color));
|
|
208
|
+
}
|
|
209
|
+
:host([fill=clear]) {
|
|
210
|
+
background: transparent;
|
|
211
|
+
border-color: transparent;
|
|
212
|
+
}
|
|
213
|
+
::slotted(smoothly-icon[slot=start]),
|
|
214
|
+
::slotted(smoothly-icon[slot=end]){
|
|
215
|
+
font-size: 0.65em;
|
|
216
|
+
}
|
|
217
|
+
:host([hidden]){
|
|
218
|
+
display: none;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
:host(:not([display])) {
|
|
223
|
+
display: none;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
:host() {
|
|
227
|
+
transition: 0.6s;
|
|
228
|
+
margin: 0rem;
|
|
229
|
+
min-width: 0rem;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
:host([type="input"]) {
|
|
233
|
+
line-height: 1;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
:host([type="form"]) {
|
|
237
|
+
margin: 1em 0em;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
:host([type="input"]) ::slotted(smoothly-icon) {
|
|
241
|
+
filter: opacity(60%);
|
|
242
|
+
font-size: 70%;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
:host([type="input"]):hover ::slotted(smoothly-icon) {
|
|
246
|
+
cursor: pointer;
|
|
247
|
+
filter: opacity(100%);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
:host([type="input"]) button {
|
|
251
|
+
padding: 0rem;
|
|
252
|
+
margin: 0rem;
|
|
253
|
+
min-width: 0rem;
|
|
254
|
+
}
|
|
@@ -2,24 +2,42 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { Date } from "isoly";
|
|
3
3
|
export class InputDate {
|
|
4
4
|
constructor() {
|
|
5
|
+
this.color = undefined;
|
|
6
|
+
this.looks = "plain";
|
|
5
7
|
this.name = undefined;
|
|
6
8
|
this.value = undefined;
|
|
7
9
|
this.open = undefined;
|
|
8
10
|
this.max = undefined;
|
|
9
11
|
this.min = undefined;
|
|
12
|
+
this.showLabel = true;
|
|
10
13
|
this.disabled = undefined;
|
|
11
14
|
}
|
|
15
|
+
componentWillLoad() {
|
|
16
|
+
this.smoothlyInputLooks.emit((looks, color) => ((this.looks = looks), !this.color && (this.color = color)));
|
|
17
|
+
}
|
|
18
|
+
async clear() {
|
|
19
|
+
this.value = undefined;
|
|
20
|
+
}
|
|
12
21
|
onStart(next) {
|
|
13
22
|
this.valueChanged.emit(next);
|
|
23
|
+
this.smoothlyInput.emit({ [this.name]: next });
|
|
14
24
|
}
|
|
15
|
-
|
|
25
|
+
smoothlyInputHandler(event) {
|
|
26
|
+
if (event.target != this.element)
|
|
27
|
+
event.stopPropagation();
|
|
28
|
+
}
|
|
29
|
+
smoothlyInputLooksHandler(event) {
|
|
30
|
+
if (event.target != this.element)
|
|
31
|
+
event.stopPropagation();
|
|
32
|
+
}
|
|
33
|
+
dateSetHandler(event) {
|
|
16
34
|
this.open = false;
|
|
17
|
-
|
|
35
|
+
event.stopPropagation();
|
|
18
36
|
}
|
|
19
37
|
render() {
|
|
20
38
|
var _a;
|
|
21
39
|
return [
|
|
22
|
-
h("smoothly-input", { name: this.name, onFocus: () => (this.open = !this.open), onClick: () => (this.open = !this.open), disabled: this.disabled, type: "date", value: this.value, onSmoothlyInput: e => (this.value = e.detail.
|
|
40
|
+
h("smoothly-input", { color: this.color, name: this.name, onFocus: () => (this.open = !this.open), onClick: () => (this.open = !this.open), disabled: this.disabled, type: "date", value: this.value, looks: "plain", showLabel: this.showLabel, onSmoothlyInput: e => (this.value = e.detail[this.name]) }, h("slot", null)),
|
|
23
41
|
this.open && !this.disabled
|
|
24
42
|
? [
|
|
25
43
|
h("div", { onClick: () => (this.open = false) }),
|
|
@@ -45,6 +63,51 @@ export class InputDate {
|
|
|
45
63
|
}
|
|
46
64
|
static get properties() {
|
|
47
65
|
return {
|
|
66
|
+
"color": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"mutable": true,
|
|
69
|
+
"complexType": {
|
|
70
|
+
"original": "Color",
|
|
71
|
+
"resolved": "\"danger\" | \"dark\" | \"default\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\" | undefined",
|
|
72
|
+
"references": {
|
|
73
|
+
"Color": {
|
|
74
|
+
"location": "import",
|
|
75
|
+
"path": "../../../model"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"required": false,
|
|
80
|
+
"optional": true,
|
|
81
|
+
"docs": {
|
|
82
|
+
"tags": [],
|
|
83
|
+
"text": ""
|
|
84
|
+
},
|
|
85
|
+
"attribute": "color",
|
|
86
|
+
"reflect": true
|
|
87
|
+
},
|
|
88
|
+
"looks": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"mutable": true,
|
|
91
|
+
"complexType": {
|
|
92
|
+
"original": "Looks",
|
|
93
|
+
"resolved": "\"border\" | \"grid\" | \"line\" | \"plain\"",
|
|
94
|
+
"references": {
|
|
95
|
+
"Looks": {
|
|
96
|
+
"location": "import",
|
|
97
|
+
"path": "../Looks"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"required": false,
|
|
102
|
+
"optional": false,
|
|
103
|
+
"docs": {
|
|
104
|
+
"tags": [],
|
|
105
|
+
"text": ""
|
|
106
|
+
},
|
|
107
|
+
"attribute": "looks",
|
|
108
|
+
"reflect": true,
|
|
109
|
+
"defaultValue": "\"plain\""
|
|
110
|
+
},
|
|
48
111
|
"name": {
|
|
49
112
|
"type": "string",
|
|
50
113
|
"mutable": false,
|
|
@@ -145,6 +208,24 @@ export class InputDate {
|
|
|
145
208
|
"attribute": "min",
|
|
146
209
|
"reflect": false
|
|
147
210
|
},
|
|
211
|
+
"showLabel": {
|
|
212
|
+
"type": "boolean",
|
|
213
|
+
"mutable": false,
|
|
214
|
+
"complexType": {
|
|
215
|
+
"original": "boolean",
|
|
216
|
+
"resolved": "boolean",
|
|
217
|
+
"references": {}
|
|
218
|
+
},
|
|
219
|
+
"required": false,
|
|
220
|
+
"optional": false,
|
|
221
|
+
"docs": {
|
|
222
|
+
"tags": [],
|
|
223
|
+
"text": ""
|
|
224
|
+
},
|
|
225
|
+
"attribute": "show-label",
|
|
226
|
+
"reflect": true,
|
|
227
|
+
"defaultValue": "true"
|
|
228
|
+
},
|
|
148
229
|
"disabled": {
|
|
149
230
|
"type": "boolean",
|
|
150
231
|
"mutable": true,
|
|
@@ -185,8 +266,72 @@ export class InputDate {
|
|
|
185
266
|
}
|
|
186
267
|
}
|
|
187
268
|
}
|
|
269
|
+
}, {
|
|
270
|
+
"method": "smoothlyInput",
|
|
271
|
+
"name": "smoothlyInput",
|
|
272
|
+
"bubbles": true,
|
|
273
|
+
"cancelable": true,
|
|
274
|
+
"composed": true,
|
|
275
|
+
"docs": {
|
|
276
|
+
"tags": [],
|
|
277
|
+
"text": ""
|
|
278
|
+
},
|
|
279
|
+
"complexType": {
|
|
280
|
+
"original": "Record<string, any>",
|
|
281
|
+
"resolved": "{ [x: string]: any; }",
|
|
282
|
+
"references": {
|
|
283
|
+
"Record": {
|
|
284
|
+
"location": "global"
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}, {
|
|
289
|
+
"method": "smoothlyInputLooks",
|
|
290
|
+
"name": "smoothlyInputLooks",
|
|
291
|
+
"bubbles": true,
|
|
292
|
+
"cancelable": true,
|
|
293
|
+
"composed": true,
|
|
294
|
+
"docs": {
|
|
295
|
+
"tags": [],
|
|
296
|
+
"text": ""
|
|
297
|
+
},
|
|
298
|
+
"complexType": {
|
|
299
|
+
"original": "(looks: Looks, color: Color) => void",
|
|
300
|
+
"resolved": "(looks: Looks, color: Color) => void",
|
|
301
|
+
"references": {
|
|
302
|
+
"Looks": {
|
|
303
|
+
"location": "import",
|
|
304
|
+
"path": "../Looks"
|
|
305
|
+
},
|
|
306
|
+
"Color": {
|
|
307
|
+
"location": "import",
|
|
308
|
+
"path": "../../../model"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
188
312
|
}];
|
|
189
313
|
}
|
|
314
|
+
static get methods() {
|
|
315
|
+
return {
|
|
316
|
+
"clear": {
|
|
317
|
+
"complexType": {
|
|
318
|
+
"signature": "() => Promise<void>",
|
|
319
|
+
"parameters": [],
|
|
320
|
+
"references": {
|
|
321
|
+
"Promise": {
|
|
322
|
+
"location": "global"
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"return": "Promise<void>"
|
|
326
|
+
},
|
|
327
|
+
"docs": {
|
|
328
|
+
"text": "",
|
|
329
|
+
"tags": []
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
static get elementRef() { return "element"; }
|
|
190
335
|
static get watchers() {
|
|
191
336
|
return [{
|
|
192
337
|
"propName": "value",
|
|
@@ -195,6 +340,18 @@ export class InputDate {
|
|
|
195
340
|
}
|
|
196
341
|
static get listeners() {
|
|
197
342
|
return [{
|
|
343
|
+
"name": "smoothlyInput",
|
|
344
|
+
"method": "smoothlyInputHandler",
|
|
345
|
+
"target": undefined,
|
|
346
|
+
"capture": false,
|
|
347
|
+
"passive": false
|
|
348
|
+
}, {
|
|
349
|
+
"name": "smoothlyInputLooks",
|
|
350
|
+
"method": "smoothlyInputLooksHandler",
|
|
351
|
+
"target": undefined,
|
|
352
|
+
"capture": false,
|
|
353
|
+
"passive": false
|
|
354
|
+
}, {
|
|
198
355
|
"name": "dateSet",
|
|
199
356
|
"method": "dateSetHandler",
|
|
200
357
|
"target": undefined,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/input/date/index.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Listen, Method, Prop, Watch } from \"@stencil/core\"\nimport { Date } from \"isoly\"\nimport { Color } from \"../../../model\"\nimport { Clearable } from \"../Clearable\"\nimport { Input } from \"../Input\"\nimport { Looks } from \"../Looks\"\n\n@Component({\n\ttag: \"smoothly-input-date\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class InputDate 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?: Date\n\t@Prop({ mutable: true }) open: boolean\n\t@Prop({ mutable: true }) max: Date\n\t@Prop({ mutable: true }) min: Date\n\t@Prop({ reflect: true }) showLabel = true\n\t@Prop({ mutable: true }) disabled: boolean\n\t@Event() valueChanged: EventEmitter<Date>\n\t@Event() smoothlyInput: EventEmitter<Record<string, any>>\n\t@Event() smoothlyInputLooks: EventEmitter<(looks: Looks, color: Color) => void>\n\n\tcomponentWillLoad() {\n\t\tthis.smoothlyInputLooks.emit((looks, color) => ((this.looks = looks), !this.color && (this.color = color)))\n\t}\n\n\t@Method()\n\tasync clear(): Promise<void> {\n\t\tthis.value = undefined\n\t}\n\t@Watch(\"value\")\n\tonStart(next: Date) {\n\t\tthis.valueChanged.emit(next)\n\t\tthis.smoothlyInput.emit({ [this.name]: 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(\"dateSet\")\n\tdateSetHandler(event: CustomEvent<Date>) {\n\t\tthis.open = false\n\t\tevent.stopPropagation()\n\t}\n\trender() {\n\t\treturn [\n\t\t\t<smoothly-input\n\t\t\t\tcolor={this.color}\n\t\t\t\tname={this.name}\n\t\t\t\tonFocus={() => (this.open = !this.open)}\n\t\t\t\tonClick={() => (this.open = !this.open)}\n\t\t\t\tdisabled={this.disabled}\n\t\t\t\ttype=\"date\"\n\t\t\t\tvalue={this.value}\n\t\t\t\tlooks=\"plain\"\n\t\t\t\tshowLabel={this.showLabel}\n\t\t\t\tonSmoothlyInput={e => (this.value = e.detail[this.name])}>\n\t\t\t\t<slot></slot>\n\t\t\t</smoothly-input>,\n\t\t\tthis.open && !this.disabled\n\t\t\t\t? [\n\t\t\t\t\t\t<div onClick={() => (this.open = false)}></div>,\n\t\t\t\t\t\t<nav>\n\t\t\t\t\t\t\t<div class=\"arrow\"></div>\n\t\t\t\t\t\t\t<smoothly-calendar\n\t\t\t\t\t\t\t\tdoubleInput={false}\n\t\t\t\t\t\t\t\tvalue={this.value ?? Date.now()}\n\t\t\t\t\t\t\t\tonValueChanged={event => {\n\t\t\t\t\t\t\t\t\tthis.value = event.detail\n\t\t\t\t\t\t\t\t\tevent.stopPropagation()\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tmax={this.max}\n\t\t\t\t\t\t\t\tmin={this.min}></smoothly-calendar>\n\t\t\t\t\t\t</nav>,\n\t\t\t\t ]\n\t\t\t\t: [],\n\t\t]\n\t}\n}\n"]}
|