smoothly 1.0.0-alpha.21 → 1.0.0-alpha.211
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-ae713814.js} +523 -6
- package/dist/cjs/Data-ae713814.js.map +1 -0
- package/dist/cjs/Observers-6450f075.js +25 -0
- package/dist/cjs/Observers-6450f075.js.map +1 -0
- package/dist/cjs/TimeZone-016ac7b0.js +6181 -0
- package/dist/cjs/TimeZone-016ac7b0.js.map +1 -0
- package/dist/cjs/getLanguage-49a534df.js +6118 -0
- package/dist/cjs/getLanguage-49a534df.js.map +1 -0
- package/dist/cjs/{index-8adc5c1b.js → index-43af753b.js} +55 -2
- package/dist/cjs/index-43af753b.js.map +1 -0
- package/dist/cjs/index.cjs.js +22 -17
- 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/{Notice-88ba4c70.js → redirect-2e5d4524.js} +11 -2
- package/dist/cjs/redirect-2e5d4524.js.map +1 -0
- package/dist/cjs/smoothly-accordion-item.cjs.entry.js +61 -0
- package/dist/cjs/smoothly-accordion-item.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-accordion.cjs.entry.js +58 -0
- package/dist/cjs/smoothly-accordion.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-app_80.cjs.entry.js +10897 -0
- package/dist/cjs/smoothly-app_80.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-checkbox.cjs.entry.js +102 -0
- package/dist/cjs/smoothly-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-color.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-country.cjs.entry.js +56 -55
- 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-reorder.cjs.entry.js +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 +37 -15
- 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 +99 -29
- package/dist/collection/components/app/index.js.map +1 -1
- package/dist/collection/components/app/room/index.js +134 -25
- package/dist/collection/components/app/room/index.js.map +1 -1
- package/dist/collection/components/app/room/style.css +39 -10
- package/dist/collection/components/app/style.css +104 -39
- package/dist/collection/components/app-demo/index.js +1 -1
- 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 +60 -14
- package/dist/collection/components/burger/index.js.map +1 -1
- package/dist/collection/components/burger/style.css +2 -2
- 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 +33 -35
- package/dist/collection/components/button-demo/index.js +4 -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/calendar/index.js +16 -16
- package/dist/collection/components/calendar/index.js.map +1 -1
- package/dist/collection/components/checkbox/index.js +82 -29
- package/dist/collection/components/checkbox/index.js.map +1 -1
- package/dist/collection/components/checkbox/style.css +39 -42
- package/dist/collection/components/confirm/index.js +261 -0
- package/dist/collection/components/confirm/index.js.map +1 -0
- package/dist/collection/components/confirm/style.css +15 -0
- package/dist/collection/components/country/index.js +1 -1
- package/dist/collection/components/display/index.js +6 -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 +16 -1
- package/dist/collection/components/display-demo/index.js.map +1 -1
- package/dist/collection/components/filter/Filter.js +17 -0
- package/dist/collection/components/filter/Filter.js.map +1 -0
- package/dist/collection/components/filter/field/index.js +105 -0
- package/dist/collection/components/filter/field/index.js.map +1 -0
- package/dist/collection/components/filter/field/style.css +4 -0
- package/dist/collection/components/filter/index.js +55 -132
- package/dist/collection/components/filter/index.js.map +1 -1
- package/dist/collection/components/filter/input/index.js +64 -302
- package/dist/collection/components/filter/input/index.js.map +1 -1
- package/dist/collection/components/filter/picker/index.js +209 -0
- package/dist/collection/components/filter/picker/index.js.map +1 -0
- package/dist/collection/components/filter/picker/style.css +8 -0
- package/dist/collection/components/filter/style.css +56 -71
- package/dist/collection/components/filter/toggle/index.js +248 -0
- package/dist/collection/components/filter/toggle/index.js.map +1 -0
- package/dist/collection/components/filter/toggle/style.css +8 -0
- package/dist/collection/components/form/index.js +302 -35
- package/dist/collection/components/form/index.js.map +1 -1
- package/dist/collection/components/form/style.css +11 -17
- 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 +1 -1
- package/dist/collection/components/icon-demo/index.js.map +1 -1
- package/dist/collection/components/icon-demo/style.css +5 -6
- package/dist/collection/components/input/Clearable.js.map +1 -0
- package/dist/collection/components/input/Editable.js +18 -0
- package/dist/collection/components/input/Editable.js.map +1 -0
- package/dist/collection/components/input/Input.js +23 -0
- package/dist/collection/components/input/Input.js.map +1 -0
- package/dist/collection/components/input/Looks.js +8 -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/checkbox/index.js +235 -0
- package/dist/collection/components/input/checkbox/index.js.map +1 -0
- package/dist/collection/components/input/checkbox/style.css +31 -0
- package/dist/collection/components/input/clear/index.js +242 -0
- package/dist/collection/components/input/clear/index.js.map +1 -0
- package/dist/collection/components/input/clear/style.css +256 -0
- package/dist/collection/components/input/color/index.js +226 -0
- package/dist/collection/components/input/color/index.js.map +1 -0
- package/dist/collection/components/input/color/style.css +15 -0
- package/dist/collection/components/{input-date-range → input/date}/index.js +153 -99
- package/dist/collection/components/input/date/index.js.map +1 -0
- package/dist/collection/components/input/date/range/index.js +443 -0
- package/dist/collection/components/input/date/range/index.js.map +1 -0
- package/dist/collection/components/input/date/range/style.css +94 -0
- package/dist/collection/components/input/date/style.css +83 -0
- package/dist/collection/components/input/demo/index.js +47 -0
- package/dist/collection/components/input/demo/index.js.map +1 -0
- package/dist/collection/components/input/demo/style.css +15 -0
- package/dist/collection/components/input/edit/index.js +231 -0
- package/dist/collection/components/input/edit/index.js.map +1 -0
- package/dist/collection/components/input/edit/style.css +239 -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 +107 -0
- package/dist/collection/components/input/index.js +329 -104
- package/dist/collection/components/input/index.js.map +1 -1
- package/dist/collection/components/{input-month → input/month}/index.js +8 -8
- package/dist/collection/components/input/month/index.js.map +1 -0
- package/dist/collection/components/input/radio/Selected.js +11 -0
- package/dist/collection/components/input/radio/Selected.js.map +1 -0
- package/dist/collection/components/input/radio/index.js +404 -0
- package/dist/collection/components/input/radio/index.js.map +1 -0
- package/dist/collection/components/input/radio/item/index.js +150 -0
- package/dist/collection/components/input/radio/item/index.js.map +1 -0
- package/dist/collection/components/input/radio/item/style.css +28 -0
- package/dist/collection/components/input/radio/style.css +66 -0
- package/dist/collection/components/input/range/index.js +305 -0
- package/dist/collection/components/input/range/index.js.map +1 -0
- package/dist/collection/components/input/range/style.css +154 -0
- package/dist/collection/components/input/reset/index.js +241 -0
- package/dist/collection/components/input/reset/index.js.map +1 -0
- package/dist/collection/components/input/reset/style.css +259 -0
- package/dist/collection/components/input/select/index.js +452 -0
- package/dist/collection/components/input/select/index.js.map +1 -0
- package/dist/collection/components/input/select/style.css +104 -0
- package/dist/collection/components/input/style.css +47 -10
- package/dist/collection/components/input/submit/index.js +232 -0
- package/dist/collection/components/input/submit/index.js.map +1 -0
- package/dist/collection/components/input/submit/style.css +236 -0
- package/dist/collection/components/item/index.js +5 -5
- package/dist/collection/components/item/index.js.map +1 -1
- package/dist/collection/components/label/index.js +81 -0
- package/dist/collection/components/label/index.js.map +1 -0
- package/dist/collection/components/label/style.css +15 -0
- package/dist/collection/components/lazy/index.js +73 -0
- package/dist/collection/components/lazy/index.js.map +1 -0
- package/dist/collection/components/{radio → load-more}/index.js +35 -46
- package/dist/collection/components/load-more/index.js.map +1 -0
- package/dist/collection/components/load-more/style.css +5 -0
- 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 +30 -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 +429 -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 +76 -136
- package/dist/collection/components/popup/index.js +5 -5
- package/dist/collection/components/popup/index.js.map +1 -1
- package/dist/collection/components/popup/style.css +4 -4
- 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 +226 -0
- package/dist/collection/components/summary/index.js +46 -4
- package/dist/collection/components/summary/index.js.map +1 -1
- package/dist/collection/components/summary/style.css +25 -16
- 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 +18 -11
- package/dist/collection/components/table/demo/filtered/Root.js.map +1 -1
- package/dist/collection/components/table/demo/filtered/index.js +25 -18
- package/dist/collection/components/table/demo/filtered/index.js.map +1 -1
- package/dist/collection/components/table/demo/filtered/style.css +9 -0
- package/dist/collection/components/table/demo/index.js +2 -9
- package/dist/collection/components/table/demo/index.js.map +1 -1
- package/dist/collection/components/table/demo/style.css +7 -0
- package/dist/collection/components/table/demo/testing/data.js +28 -0
- package/dist/collection/components/table/demo/testing/data.js.map +1 -0
- package/dist/collection/components/table/demo/testing/index.js +28 -0
- package/dist/collection/components/table/demo/testing/index.js.map +1 -0
- package/dist/collection/components/table/demo/testing/style.css +32 -0
- package/dist/collection/components/table/expandable/cell/index.js +14 -33
- package/dist/collection/components/table/expandable/cell/index.js.map +1 -1
- package/dist/collection/components/table/expandable/cell/style.css +32 -25
- package/dist/collection/components/table/expandable/row/index.js +9 -51
- 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 +10 -0
- package/dist/collection/components/table/header/style.css +2 -3
- 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/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/theme/picker/index.js +48 -0
- package/dist/collection/components/theme/picker/index.js.map +1 -0
- package/dist/collection/components/theme/picker/style.css +0 -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 -2
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/model/Color.js +18 -1
- package/dist/collection/model/Color.js.map +1 -1
- package/dist/collection/{components/form → model}/Data.js +8 -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 +17 -4
- 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 +4 -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 +176 -50
- package/dist/custom-elements/index.js +13394 -29834
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/{Listenable-fb6f4723.js → Data-0390d600.js} +518 -7
- package/dist/esm/Data-0390d600.js.map +1 -0
- package/dist/esm/Observers-5f08e828.js +25 -0
- package/dist/esm/Observers-5f08e828.js.map +1 -0
- package/dist/esm/TimeZone-c8df4905.js +6181 -0
- package/dist/esm/TimeZone-c8df4905.js.map +1 -0
- package/dist/esm/getLanguage-1e9ec036.js +6116 -0
- package/dist/esm/getLanguage-1e9ec036.js.map +1 -0
- package/dist/esm/{index-6ac4212d.js → index-258984d3.js} +55 -2
- package/dist/esm/index-258984d3.js.map +1 -0
- package/dist/esm/index.js +20 -5
- 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/{Notice-1fa17794.js → redirect-b0f87e88.js} +11 -3
- package/dist/esm/redirect-b0f87e88.js.map +1 -0
- package/dist/esm/smoothly-accordion-item.entry.js +57 -0
- package/dist/esm/smoothly-accordion-item.entry.js.map +1 -0
- package/dist/esm/smoothly-accordion.entry.js +54 -0
- package/dist/esm/smoothly-accordion.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-app_80.entry.js +10814 -0
- package/dist/esm/smoothly-app_80.entry.js.map +1 -0
- package/dist/esm/smoothly-checkbox.entry.js +98 -0
- package/dist/esm/smoothly-checkbox.entry.js.map +1 -0
- package/dist/esm/smoothly-color.entry.js +1 -1
- package/dist/esm/smoothly-country.entry.js +10 -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-reorder.entry.js +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-04fb45e1.entry.js → p-12182a73.entry.js} +2 -2
- package/dist/smoothly/{p-5629e452.entry.js → p-127dcc56.entry.js} +2 -2
- package/dist/smoothly/p-21905b32.entry.js +2 -0
- package/dist/smoothly/p-21905b32.entry.js.map +1 -0
- package/dist/smoothly/p-312ef066.js +2 -0
- package/dist/smoothly/p-312ef066.js.map +1 -0
- package/dist/smoothly/p-47151a53.entry.js +2 -0
- package/dist/smoothly/p-5e387578.js +3 -0
- package/dist/smoothly/p-5e387578.js.map +1 -0
- package/dist/smoothly/{p-0fec28cc.entry.js → p-6aebb818.entry.js} +2 -2
- package/dist/smoothly/p-6e9aca2e.entry.js +2 -0
- package/dist/smoothly/p-6e9aca2e.entry.js.map +1 -0
- package/dist/smoothly/{p-ae467192.entry.js → p-7bf147bf.entry.js} +2 -2
- package/dist/smoothly/p-823e02b0.entry.js +2 -0
- package/dist/smoothly/p-823e02b0.entry.js.map +1 -0
- package/dist/smoothly/p-9b828bde.js +2 -0
- package/dist/smoothly/p-9b828bde.js.map +1 -0
- package/dist/smoothly/p-a0ebd646.entry.js +2 -0
- package/dist/smoothly/p-a0ebd646.entry.js.map +1 -0
- package/dist/smoothly/{p-b3eef141.entry.js → p-b3eac6af.entry.js} +2 -2
- package/dist/smoothly/p-b9165e1d.entry.js +2 -0
- package/dist/smoothly/p-b9165e1d.entry.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-3a6873ed.entry.js → p-cb493516.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-eef1c80b.entry.js +2 -0
- package/dist/smoothly/p-eef1c80b.entry.js.map +1 -0
- package/dist/smoothly/p-f125610c.entry.js +2 -0
- package/dist/smoothly/p-f125610c.entry.js.map +1 -0
- package/dist/smoothly/p-fa664317.js +2 -0
- package/dist/smoothly/p-fa664317.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 +23 -10
- package/dist/types/components/app/room/index.d.ts +21 -7
- package/dist/types/components/app-demo/index.d.ts +1 -0
- package/dist/types/components/backtotop/index.d.ts +1 -1
- package/dist/types/components/burger/index.d.ts +7 -2
- package/dist/types/components/button/index.d.ts +2 -2
- package/dist/types/components/calendar/index.d.ts +5 -5
- package/dist/types/components/checkbox/index.d.ts +7 -3
- package/dist/types/components/confirm/index.d.ts +19 -0
- package/dist/types/components/filter/Filter.d.ts +21 -0
- package/dist/types/components/filter/field/index.d.ts +10 -0
- package/dist/types/components/filter/index.d.ts +13 -12
- package/dist/types/components/filter/input/index.d.ts +15 -23
- package/dist/types/components/filter/picker/index.d.ts +24 -0
- package/dist/types/components/filter/toggle/index.d.ts +22 -0
- package/dist/types/components/form/index.d.ts +23 -7
- package/dist/types/components/icon/index.d.ts +3 -9
- package/dist/types/components/input/Editable.d.ts +20 -0
- package/dist/types/components/input/Input.d.ts +22 -0
- package/dist/types/components/input/Looks.d.ts +7 -0
- package/dist/types/components/input/Submittable.d.ts +6 -0
- package/dist/types/components/input/checkbox/index.d.ts +20 -0
- package/dist/types/components/input/clear/index.d.ts +17 -0
- package/dist/types/components/input/color/index.d.ts +24 -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 +6 -0
- package/dist/types/components/input/edit/index.d.ts +17 -0
- package/dist/types/components/input/file/index.d.ts +24 -0
- package/dist/types/components/input/index.d.ts +30 -11
- package/dist/types/components/{input-month → input/month}/index.d.ts +2 -2
- package/dist/types/components/input/radio/Selected.d.ts +10 -0
- package/dist/types/components/input/radio/index.d.ts +35 -0
- package/dist/types/components/input/radio/item/index.d.ts +15 -0
- package/dist/types/components/input/range/index.d.ts +24 -0
- package/dist/types/components/input/reset/index.d.ts +18 -0
- package/dist/types/components/input/select/index.d.ts +36 -0
- package/dist/types/components/input/submit/index.d.ts +17 -0
- package/dist/types/components/item/index.d.ts +1 -1
- package/dist/types/components/label/index.d.ts +6 -0
- package/dist/types/components/lazy/index.d.ts +7 -0
- package/dist/types/components/load-more/index.d.ts +11 -0
- package/dist/types/components/notification/index.d.ts +3 -1
- package/dist/types/components/picker/demo/index.d.ts +22 -0
- package/dist/types/components/picker/index.d.ts +33 -45
- package/dist/types/components/picker/menu/index.d.ts +54 -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/popup/index.d.ts +1 -1
- 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/Root.d.ts +2 -0
- package/dist/types/components/table/demo/filtered/index.d.ts +7 -7
- package/dist/types/components/table/demo/index.d.ts +1 -1
- package/dist/types/components/table/demo/testing/data.d.ts +5 -0
- package/dist/types/components/table/demo/testing/index.d.ts +4 -0
- package/dist/types/components/table/expandable/cell/index.d.ts +4 -5
- package/dist/types/components/table/expandable/row/index.d.ts +3 -8
- 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/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/theme/picker/index.d.ts +4 -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 +914 -347
- 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 -3
- package/dist/types/model/Color.d.ts +7 -1
- package/dist/types/{components/form → model}/Data.d.ts +4 -0
- package/dist/types/model/Icon.d.ts +8 -0
- package/dist/types/model/Listenable.d.ts +10 -1
- 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 +3 -0
- package/dist/types/model/redirect.d.ts +1 -0
- package/dist/types/smoothly.d.ts +3 -0
- package/package.json +7 -6
- package/dist/cjs/Listenable-63ea2d90.js.map +0 -1
- package/dist/cjs/Notice-88ba4c70.js.map +0 -1
- package/dist/cjs/getLanguage-4f0a45d5.js +0 -12227
- package/dist/cjs/getLanguage-4f0a45d5.js.map +0 -1
- package/dist/cjs/index-8adc5c1b.js.map +0 -1
- package/dist/cjs/index-d16d46f4.js +0 -1224
- package/dist/cjs/index-d16d46f4.js.map +0 -1
- package/dist/cjs/smoothly-accordion_62.cjs.entry.js +0 -28199
- package/dist/cjs/smoothly-accordion_62.cjs.entry.js.map +0 -1
- package/dist/cjs/smoothly-radio-group.cjs.entry.js +0 -22
- package/dist/cjs/smoothly-radio-group.cjs.entry.js.map +0 -1
- package/dist/collection/components/filter/Clearable.js.map +0 -1
- package/dist/collection/components/form/Clearable.js +0 -8
- 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 +0 -206
- package/dist/collection/components/input-date/index.js.map +0 -1
- package/dist/collection/components/input-date/style.css +0 -40
- 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-demo/style.css +0 -4
- 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/radio/index.js.map +0 -1
- package/dist/collection/components/radio/style.css +0 -31
- package/dist/collection/components/radio-button/Selected.js +0 -2
- package/dist/collection/components/radio-button/Selected.js.map +0 -1
- package/dist/collection/components/radio-button/index.js +0 -137
- package/dist/collection/components/radio-button/index.js.map +0 -1
- package/dist/collection/components/radio-button/item/index.js +0 -117
- package/dist/collection/components/radio-button/item/index.js.map +0 -1
- package/dist/collection/components/radio-button/item/style.css +0 -85
- package/dist/collection/components/radio-group/index.js +0 -43
- package/dist/collection/components/radio-group/index.js.map +0 -1
- package/dist/collection/components/radio-group/style.css +0 -36
- 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 +0 -234
- package/dist/collection/components/selector/index.js.map +0 -1
- package/dist/collection/components/selector/style.css +0 -46
- package/dist/custom-elements/index2.js +0 -1222
- package/dist/custom-elements/index2.js.map +0 -1
- package/dist/esm/Listenable-fb6f4723.js.map +0 -1
- package/dist/esm/Notice-1fa17794.js.map +0 -1
- package/dist/esm/getLanguage-ffacd7b7.js +0 -12225
- package/dist/esm/getLanguage-ffacd7b7.js.map +0 -1
- package/dist/esm/index-6ac4212d.js.map +0 -1
- package/dist/esm/index-d5330059.js +0 -1222
- package/dist/esm/index-d5330059.js.map +0 -1
- package/dist/esm/smoothly-accordion_62.entry.js +0 -28134
- package/dist/esm/smoothly-accordion_62.entry.js.map +0 -1
- package/dist/esm/smoothly-radio-group.entry.js +0 -18
- package/dist/esm/smoothly-radio-group.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-16cba662.entry.js +0 -2
- package/dist/smoothly/p-16cba662.entry.js.map +0 -1
- package/dist/smoothly/p-3ad51805.entry.js +0 -2
- package/dist/smoothly/p-3ad51805.entry.js.map +0 -1
- package/dist/smoothly/p-5e34795b.js +0 -2
- package/dist/smoothly/p-5e34795b.js.map +0 -1
- package/dist/smoothly/p-75373584.js +0 -2
- package/dist/smoothly/p-75373584.js.map +0 -1
- package/dist/smoothly/p-75452eb8.js +0 -2
- package/dist/smoothly/p-75452eb8.js.map +0 -1
- package/dist/smoothly/p-ae33d7e1.entry.js +0 -2
- package/dist/smoothly/p-ae33d7e1.entry.js.map +0 -1
- package/dist/smoothly/p-b98cd447.js +0 -3
- package/dist/smoothly/p-b98cd447.js.map +0 -1
- package/dist/smoothly/p-c109fc66.entry.js +0 -2
- package/dist/smoothly/p-c109fc66.entry.js.map +0 -1
- package/dist/smoothly/p-f29cc9ff.entry.js +0 -2
- package/dist/types/components/form/Clearable.d.ts +0 -6
- 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/radio/index.d.ts +0 -13
- package/dist/types/components/radio-button/Selected.d.ts +0 -5
- package/dist/types/components/radio-button/index.d.ts +0 -15
- package/dist/types/components/radio-button/item/index.d.ts +0 -12
- package/dist/types/components/radio-group/index.d.ts +0 -4
- package/dist/types/components/select/index.d.ts +0 -14
- package/dist/types/components/selector/index.d.ts +0 -23
- /package/dist/collection/components/{filter → input}/Clearable.js +0 -0
- /package/dist/collection/components/{input-month → input/month}/style.css +0 -0
- /package/dist/collection/components/{radio-button → lazy}/style.css +0 -0
- /package/dist/smoothly/{p-04fb45e1.entry.js.map → p-12182a73.entry.js.map} +0 -0
- /package/dist/smoothly/{p-5629e452.entry.js.map → p-127dcc56.entry.js.map} +0 -0
- /package/dist/smoothly/{p-f29cc9ff.entry.js.map → p-47151a53.entry.js.map} +0 -0
- /package/dist/smoothly/{p-0fec28cc.entry.js.map → p-6aebb818.entry.js.map} +0 -0
- /package/dist/smoothly/{p-ae467192.entry.js.map → p-7bf147bf.entry.js.map} +0 -0
- /package/dist/smoothly/{p-b3eef141.entry.js.map → p-b3eac6af.entry.js.map} +0 -0
- /package/dist/smoothly/{p-3a6873ed.entry.js.map → p-cb493516.entry.js.map} +0 -0
- /package/dist/types/components/{filter → input}/Clearable.d.ts +0 -0
|
@@ -1,41 +1,55 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { isoly } from "isoly";
|
|
3
|
+
import { tidily } from "tidily";
|
|
4
4
|
export class SmoothlyInput {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.keepFocusOnReRender = false;
|
|
7
|
+
this.listener = {};
|
|
8
|
+
this.color = undefined;
|
|
9
|
+
this.delay = 0;
|
|
10
|
+
this.looks = "plain";
|
|
7
11
|
this.name = undefined;
|
|
8
12
|
this.value = undefined;
|
|
9
13
|
this.type = "text";
|
|
10
14
|
this.required = false;
|
|
11
|
-
this.minLength = 0;
|
|
12
15
|
this.showLabel = true;
|
|
13
|
-
this.maxLength = Number.POSITIVE_INFINITY;
|
|
14
16
|
this.autocomplete = true;
|
|
15
|
-
this.pattern = undefined;
|
|
16
17
|
this.placeholder = undefined;
|
|
17
18
|
this.disabled = false;
|
|
18
19
|
this.readonly = false;
|
|
19
20
|
this.currency = undefined;
|
|
21
|
+
this.changed = false;
|
|
22
|
+
this.formatter = undefined;
|
|
20
23
|
this.initialValue = undefined;
|
|
21
24
|
}
|
|
22
|
-
|
|
25
|
+
async listen(property, listener) {
|
|
26
|
+
this.listener[property] = listener;
|
|
27
|
+
listener(this);
|
|
28
|
+
}
|
|
29
|
+
async SmoothlyInputLoadHandler(event) {
|
|
30
|
+
if (!(event.target && "name" in event.target && event.target.name == this.name)) {
|
|
31
|
+
event.stopPropagation();
|
|
32
|
+
event.detail(this);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
typeChange() {
|
|
23
36
|
let result;
|
|
24
37
|
switch (this.type) {
|
|
25
38
|
case "price":
|
|
26
|
-
result = get("price", this.currency);
|
|
39
|
+
result = tidily.get("price", this.currency);
|
|
27
40
|
break;
|
|
28
41
|
default:
|
|
29
|
-
result = get(this.type, getLocale());
|
|
42
|
+
result = tidily.get(this.type, getLocale());
|
|
30
43
|
break;
|
|
31
44
|
}
|
|
32
|
-
|
|
45
|
+
this.formatter = result || tidily.get("text");
|
|
33
46
|
}
|
|
34
47
|
newState(state) {
|
|
35
|
-
|
|
36
|
-
return formatter.format(StateEditor.copy(formatter.unformat(StateEditor.copy(state))));
|
|
48
|
+
return this.formatter.format(tidily.StateEditor.copy(this.formatter.unformat(tidily.StateEditor.copy(state))));
|
|
37
49
|
}
|
|
38
50
|
valueWatcher(value, before) {
|
|
51
|
+
var _a, _b;
|
|
52
|
+
this.changed = this.initialValue !== this.value;
|
|
39
53
|
if (this.lastValue != value) {
|
|
40
54
|
this.lastValue = value;
|
|
41
55
|
this.state = Object.assign(Object.assign({}, this.state), { value: this.newState({ value: this.formatter.toString(value), selection: this.state.selection }).value });
|
|
@@ -43,19 +57,45 @@ export class SmoothlyInput {
|
|
|
43
57
|
if (value != before) {
|
|
44
58
|
if (typeof value == "string")
|
|
45
59
|
value = value.trim();
|
|
46
|
-
this.
|
|
60
|
+
this.smoothlyInputEmit(value);
|
|
47
61
|
}
|
|
62
|
+
(_b = (_a = this.listener).changed) === null || _b === void 0 ? void 0 : _b.call(_a, this);
|
|
63
|
+
}
|
|
64
|
+
async smoothlyInputEmit(value) {
|
|
65
|
+
var _a;
|
|
66
|
+
(_a = this.abortInputEvent) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
67
|
+
const timeout = window.setTimeout(() => {
|
|
68
|
+
this.abortInputEvent = undefined;
|
|
69
|
+
this.smoothlyInput.emit({ [this.name]: value });
|
|
70
|
+
}, this.delay * 1000);
|
|
71
|
+
this.abortInputEvent = () => {
|
|
72
|
+
this.abortInputEvent = undefined;
|
|
73
|
+
window.clearTimeout(timeout);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
watchingReadonly() {
|
|
77
|
+
var _a, _b;
|
|
78
|
+
(_b = (_a = this.listener).changed) === null || _b === void 0 ? void 0 : _b.call(_a, this);
|
|
48
79
|
}
|
|
49
80
|
onCurrency() {
|
|
50
81
|
this.state = Object.assign(Object.assign({}, this.state), { value: this.newState({ value: this.formatter.toString(this.value), selection: this.state.selection }).value, pattern: this.newState({ value: this.formatter.toString(this.value), selection: this.state.selection }).pattern });
|
|
51
82
|
}
|
|
52
83
|
componentWillLoad() {
|
|
84
|
+
var _a, _b;
|
|
85
|
+
this.typeChange();
|
|
53
86
|
const value = this.formatter.toString(this.value) || "";
|
|
87
|
+
this.lastValue = this.initialValue = this.value;
|
|
54
88
|
const start = value.length;
|
|
55
89
|
this.state = this.newState({
|
|
56
90
|
value,
|
|
57
91
|
selection: { start, end: start, direction: "none" },
|
|
58
92
|
});
|
|
93
|
+
this.smoothlyInputLooks.emit((looks, color) => ((this.looks = looks), !this.color && (this.color = color)));
|
|
94
|
+
this.smoothlyInputLoad.emit(() => {
|
|
95
|
+
return;
|
|
96
|
+
});
|
|
97
|
+
!this.readonly && this.smoothlyFormDisable.emit(readonly => (this.readonly = readonly));
|
|
98
|
+
(_b = (_a = this.listener).changed) === null || _b === void 0 ? void 0 : _b.call(_a, this);
|
|
59
99
|
}
|
|
60
100
|
componentDidRender() {
|
|
61
101
|
if (this.keepFocusOnReRender) {
|
|
@@ -66,6 +106,12 @@ export class SmoothlyInput {
|
|
|
66
106
|
async clear() {
|
|
67
107
|
this.value = undefined;
|
|
68
108
|
}
|
|
109
|
+
async edit(editable) {
|
|
110
|
+
this.readonly = !editable;
|
|
111
|
+
}
|
|
112
|
+
async reset() {
|
|
113
|
+
this.value = this.initialValue;
|
|
114
|
+
}
|
|
69
115
|
async getFormData(name) {
|
|
70
116
|
const result = {};
|
|
71
117
|
const form = document.forms.namedItem(name);
|
|
@@ -92,39 +138,44 @@ export class SmoothlyInput {
|
|
|
92
138
|
this.keepFocusOnReRender = keepFocus;
|
|
93
139
|
}
|
|
94
140
|
async setSelectionRange(start, end, direction) {
|
|
95
|
-
this.state = this.newState(Object.assign(Object.assign({}, this.state), { selection: { start, end, direction: direction
|
|
96
|
-
const after = this.formatter.format(StateEditor.copy(this.formatter.unformat(StateEditor.copy(Object.assign({}, this.state)))));
|
|
141
|
+
this.state = this.newState(Object.assign(Object.assign({}, this.state), { selection: { start, end, direction: direction !== null && direction !== void 0 ? direction : this.state.selection.direction } }));
|
|
142
|
+
const after = this.formatter.format(tidily.StateEditor.copy(this.formatter.unformat(tidily.StateEditor.copy(Object.assign({}, this.state)))));
|
|
97
143
|
this.updateBackend(after, this.inputElement);
|
|
98
144
|
}
|
|
99
145
|
onBlur(event) {
|
|
100
146
|
this.smoothlyBlur.emit();
|
|
147
|
+
if (this.abortInputEvent) {
|
|
148
|
+
this.abortInputEvent();
|
|
149
|
+
const value = typeof this.value == "string" ? this.value.trim() : this.value;
|
|
150
|
+
this.smoothlyInput.emit({ [this.name]: value });
|
|
151
|
+
}
|
|
101
152
|
if (this.initialValue != this.value)
|
|
102
153
|
this.smoothlyChange.emit({ [this.name]: this.value });
|
|
103
|
-
this.initialValue = undefined;
|
|
104
154
|
}
|
|
105
155
|
onFocus(event) {
|
|
106
|
-
|
|
107
|
-
const after = this.formatter.format(StateEditor.copy(this.formatter.unformat(StateEditor.copy(Object.assign({}, this.state)))));
|
|
156
|
+
const after = this.formatter.format(tidily.StateEditor.copy(this.formatter.unformat(tidily.StateEditor.copy(Object.assign({}, this.state)))));
|
|
108
157
|
if (event.target)
|
|
109
|
-
this.updateBackend(after, event.target);
|
|
158
|
+
this.updateBackend(after, event.target, false);
|
|
110
159
|
}
|
|
111
160
|
onClick(event) {
|
|
161
|
+
var _a, _b, _c;
|
|
112
162
|
const backend = event.target;
|
|
113
163
|
this.state = Object.assign(Object.assign({}, this.state), { value: backend.value, selection: {
|
|
114
|
-
start: backend.selectionStart
|
|
115
|
-
end: backend.selectionEnd
|
|
116
|
-
direction: backend.selectionDirection ?
|
|
164
|
+
start: (_a = backend.selectionStart) !== null && _a !== void 0 ? _a : backend.value.length,
|
|
165
|
+
end: (_b = backend.selectionEnd) !== null && _b !== void 0 ? _b : backend.value.length,
|
|
166
|
+
direction: (_c = backend.selectionDirection) !== null && _c !== void 0 ? _c : "none",
|
|
117
167
|
} });
|
|
118
168
|
const after = this.newState(Object.assign({}, this.state));
|
|
119
169
|
this.updateBackend(after, backend);
|
|
120
170
|
}
|
|
121
171
|
onKeyDown(event) {
|
|
172
|
+
var _a, _b, _c;
|
|
122
173
|
if (event.key && !(event.key == "Unidentified")) {
|
|
123
174
|
const backend = event.target;
|
|
124
175
|
this.state = Object.assign(Object.assign({}, this.state), { value: backend.value, selection: {
|
|
125
|
-
start: backend.selectionStart
|
|
126
|
-
end: backend.selectionEnd
|
|
127
|
-
direction: backend.selectionDirection ?
|
|
176
|
+
start: (_a = backend.selectionStart) !== null && _a !== void 0 ? _a : backend.value.length,
|
|
177
|
+
end: (_b = backend.selectionEnd) !== null && _b !== void 0 ? _b : backend.value.length,
|
|
178
|
+
direction: (_c = backend.selectionDirection) !== null && _c !== void 0 ? _c : "none",
|
|
128
179
|
} });
|
|
129
180
|
if ((!((event.ctrlKey || event.metaKey) && (event.key == "v" || event.key == "x" || event.key == "c")) &&
|
|
130
181
|
event.key.length == 1) ||
|
|
@@ -146,8 +197,7 @@ export class SmoothlyInput {
|
|
|
146
197
|
let pasted = event.clipboardData ? event.clipboardData.getData("text") : "";
|
|
147
198
|
const backend = event.target;
|
|
148
199
|
pasted = this.expiresAutocompleteFix(backend, pasted);
|
|
149
|
-
|
|
150
|
-
this.processKey({ key: letter }, backend);
|
|
200
|
+
this.processPaste(pasted, backend);
|
|
151
201
|
}
|
|
152
202
|
onInput(event) {
|
|
153
203
|
var _a;
|
|
@@ -179,26 +229,35 @@ export class SmoothlyInput {
|
|
|
179
229
|
: value;
|
|
180
230
|
return value;
|
|
181
231
|
}
|
|
232
|
+
processPaste(pasted, backend) {
|
|
233
|
+
if (!this.readonly) {
|
|
234
|
+
const after = tidily.Action.paste(this.formatter, this.state, pasted);
|
|
235
|
+
this.updateBackend(after, backend);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
182
238
|
processKey(event, backend) {
|
|
183
239
|
if (!this.readonly) {
|
|
184
|
-
const after = Action.apply(this.formatter, this.state, event);
|
|
240
|
+
const after = tidily.Action.apply(this.formatter, this.state, event);
|
|
185
241
|
this.updateBackend(after, backend);
|
|
186
242
|
}
|
|
187
243
|
}
|
|
188
|
-
updateBackend(after, backend) {
|
|
244
|
+
updateBackend(after, backend, setSelection = true) {
|
|
245
|
+
var _a;
|
|
189
246
|
if (after.value != backend.value)
|
|
190
247
|
backend.value = after.value;
|
|
191
|
-
if (
|
|
192
|
-
backend.selectionStart
|
|
193
|
-
|
|
194
|
-
backend.selectionEnd
|
|
195
|
-
|
|
248
|
+
if (setSelection) {
|
|
249
|
+
if (backend.selectionStart != undefined && after.selection.start != backend.selectionStart)
|
|
250
|
+
backend.selectionStart = after.selection.start;
|
|
251
|
+
if (backend.selectionEnd != undefined && after.selection.end != backend.selectionEnd)
|
|
252
|
+
backend.selectionEnd = after.selection.end;
|
|
253
|
+
backend.selectionDirection = (_a = after.selection.direction) !== null && _a !== void 0 ? _a : backend.selectionDirection;
|
|
254
|
+
}
|
|
196
255
|
this.state = after;
|
|
197
|
-
this.value = this.lastValue = this.formatter.fromString(this.formatter.unformat(StateEditor.copy(Object.assign({}, this.state))).value);
|
|
256
|
+
this.value = this.lastValue = this.formatter.fromString(this.formatter.unformat(tidily.StateEditor.copy(Object.assign({}, this.state))).value);
|
|
198
257
|
}
|
|
199
258
|
render() {
|
|
200
259
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
201
|
-
return (h(Host, { class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "" }, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, h("slot", { name: "start" }), h("div", null, h("input", { name: this.name, type: (_c = this.state) === null || _c === void 0 ? void 0 : _c.type, placeholder: this.placeholder, required: this.required, autocomplete: this.autocomplete ? (_d = this.state) === null || _d === void 0 ? void 0 : _d.autocomplete : "off", disabled: this.disabled, readOnly: this.readonly, pattern: ((_e = this.state) === null || _e === void 0 ? void 0 : _e.pattern) && ((_f = this.state) === null || _f === void 0 ? void 0 : _f.pattern.source), value: (_g = this.state) === null || _g === void 0 ? void 0 : _g.value, onInput: (e) => this.onInput(e), onFocus: e => this.onFocus(e), onClick: e => this.onClick(e), onBlur: e => this.onBlur(e), onKeyDown: e => this.onKeyDown(e), ref: (el) => (this.inputElement = el), onPaste: e => this.onPaste(e) }), h("label", { htmlFor: this.name }, h("slot", null)), h("smoothly-icon", { name: "alert-circle", color: "danger", fill: "clear", size: "small" })), h("slot", { name: "end" })));
|
|
260
|
+
return (h(Host, { class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "" }, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, h("slot", { name: "start" }), h("div", null, h("input", { color: this.color, name: this.name, type: (_c = this.state) === null || _c === void 0 ? void 0 : _c.type, placeholder: this.placeholder, required: this.required, autocomplete: this.autocomplete ? (_d = this.state) === null || _d === void 0 ? void 0 : _d.autocomplete : "off", disabled: this.disabled, readOnly: this.readonly, pattern: ((_e = this.state) === null || _e === void 0 ? void 0 : _e.pattern) && ((_f = this.state) === null || _f === void 0 ? void 0 : _f.pattern.source), value: (_g = this.state) === null || _g === void 0 ? void 0 : _g.value, onInput: (e) => this.onInput(e), onFocus: e => this.onFocus(e), onClick: e => this.onClick(e), onBlur: e => this.onBlur(e), onKeyDown: e => this.onKeyDown(e), ref: (el) => (this.inputElement = el), onPaste: e => this.onPaste(e) }), h("label", { htmlFor: this.name }, h("slot", null)), h("smoothly-icon", { name: "alert-circle", color: "danger", fill: "clear", size: "small" })), h("slot", { name: "end" })));
|
|
202
261
|
}
|
|
203
262
|
static get is() { return "smoothly-input"; }
|
|
204
263
|
static get encapsulation() { return "scoped"; }
|
|
@@ -214,6 +273,69 @@ export class SmoothlyInput {
|
|
|
214
273
|
}
|
|
215
274
|
static get properties() {
|
|
216
275
|
return {
|
|
276
|
+
"color": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"mutable": true,
|
|
279
|
+
"complexType": {
|
|
280
|
+
"original": "Color",
|
|
281
|
+
"resolved": "\"danger\" | \"dark\" | \"default\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\" | undefined",
|
|
282
|
+
"references": {
|
|
283
|
+
"Color": {
|
|
284
|
+
"location": "import",
|
|
285
|
+
"path": "../../model"
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"required": false,
|
|
290
|
+
"optional": true,
|
|
291
|
+
"docs": {
|
|
292
|
+
"tags": [],
|
|
293
|
+
"text": ""
|
|
294
|
+
},
|
|
295
|
+
"attribute": "color",
|
|
296
|
+
"reflect": true
|
|
297
|
+
},
|
|
298
|
+
"delay": {
|
|
299
|
+
"type": "number",
|
|
300
|
+
"mutable": false,
|
|
301
|
+
"complexType": {
|
|
302
|
+
"original": "number",
|
|
303
|
+
"resolved": "number",
|
|
304
|
+
"references": {}
|
|
305
|
+
},
|
|
306
|
+
"required": false,
|
|
307
|
+
"optional": false,
|
|
308
|
+
"docs": {
|
|
309
|
+
"tags": [],
|
|
310
|
+
"text": ""
|
|
311
|
+
},
|
|
312
|
+
"attribute": "delay",
|
|
313
|
+
"reflect": false,
|
|
314
|
+
"defaultValue": "0"
|
|
315
|
+
},
|
|
316
|
+
"looks": {
|
|
317
|
+
"type": "string",
|
|
318
|
+
"mutable": true,
|
|
319
|
+
"complexType": {
|
|
320
|
+
"original": "Looks",
|
|
321
|
+
"resolved": "\"border\" | \"grid\" | \"line\" | \"plain\" | \"transparent\"",
|
|
322
|
+
"references": {
|
|
323
|
+
"Looks": {
|
|
324
|
+
"location": "import",
|
|
325
|
+
"path": "./Looks"
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"required": false,
|
|
330
|
+
"optional": false,
|
|
331
|
+
"docs": {
|
|
332
|
+
"tags": [],
|
|
333
|
+
"text": ""
|
|
334
|
+
},
|
|
335
|
+
"attribute": "looks",
|
|
336
|
+
"reflect": true,
|
|
337
|
+
"defaultValue": "\"plain\""
|
|
338
|
+
},
|
|
217
339
|
"name": {
|
|
218
340
|
"type": "string",
|
|
219
341
|
"mutable": false,
|
|
@@ -252,9 +374,14 @@ export class SmoothlyInput {
|
|
|
252
374
|
"type": "string",
|
|
253
375
|
"mutable": false,
|
|
254
376
|
"complexType": {
|
|
255
|
-
"original": "
|
|
256
|
-
"resolved": "
|
|
257
|
-
"references": {
|
|
377
|
+
"original": "tidily.Type",
|
|
378
|
+
"resolved": "\"text\" | \"divisor\" | \"card-csc\" | \"card-expires\" | \"card-number\" | \"date\" | \"date-time\" | \"duration\" | \"email\" | \"identifier-code\" | \"identifier-pascal\" | \"identifier-snake\" | \"identifier-camel\" | \"identifier-attribute\" | \"identity-number\" | \"integer\" | \"password\" | \"percent\" | \"phone\" | \"postal-code\" | \"price\"",
|
|
379
|
+
"references": {
|
|
380
|
+
"tidily": {
|
|
381
|
+
"location": "import",
|
|
382
|
+
"path": "tidily"
|
|
383
|
+
}
|
|
384
|
+
}
|
|
258
385
|
},
|
|
259
386
|
"required": false,
|
|
260
387
|
"optional": false,
|
|
@@ -268,7 +395,7 @@ export class SmoothlyInput {
|
|
|
268
395
|
},
|
|
269
396
|
"required": {
|
|
270
397
|
"type": "boolean",
|
|
271
|
-
"mutable":
|
|
398
|
+
"mutable": false,
|
|
272
399
|
"complexType": {
|
|
273
400
|
"original": "boolean",
|
|
274
401
|
"resolved": "boolean",
|
|
@@ -284,24 +411,6 @@ export class SmoothlyInput {
|
|
|
284
411
|
"reflect": true,
|
|
285
412
|
"defaultValue": "false"
|
|
286
413
|
},
|
|
287
|
-
"minLength": {
|
|
288
|
-
"type": "number",
|
|
289
|
-
"mutable": true,
|
|
290
|
-
"complexType": {
|
|
291
|
-
"original": "number",
|
|
292
|
-
"resolved": "number",
|
|
293
|
-
"references": {}
|
|
294
|
-
},
|
|
295
|
-
"required": false,
|
|
296
|
-
"optional": false,
|
|
297
|
-
"docs": {
|
|
298
|
-
"tags": [],
|
|
299
|
-
"text": ""
|
|
300
|
-
},
|
|
301
|
-
"attribute": "min-length",
|
|
302
|
-
"reflect": false,
|
|
303
|
-
"defaultValue": "0"
|
|
304
|
-
},
|
|
305
414
|
"showLabel": {
|
|
306
415
|
"type": "boolean",
|
|
307
416
|
"mutable": false,
|
|
@@ -320,27 +429,9 @@ export class SmoothlyInput {
|
|
|
320
429
|
"reflect": true,
|
|
321
430
|
"defaultValue": "true"
|
|
322
431
|
},
|
|
323
|
-
"maxLength": {
|
|
324
|
-
"type": "number",
|
|
325
|
-
"mutable": true,
|
|
326
|
-
"complexType": {
|
|
327
|
-
"original": "number",
|
|
328
|
-
"resolved": "number",
|
|
329
|
-
"references": {}
|
|
330
|
-
},
|
|
331
|
-
"required": false,
|
|
332
|
-
"optional": false,
|
|
333
|
-
"docs": {
|
|
334
|
-
"tags": [],
|
|
335
|
-
"text": ""
|
|
336
|
-
},
|
|
337
|
-
"attribute": "max-length",
|
|
338
|
-
"reflect": false,
|
|
339
|
-
"defaultValue": "Number.POSITIVE_INFINITY"
|
|
340
|
-
},
|
|
341
432
|
"autocomplete": {
|
|
342
433
|
"type": "boolean",
|
|
343
|
-
"mutable":
|
|
434
|
+
"mutable": false,
|
|
344
435
|
"complexType": {
|
|
345
436
|
"original": "boolean",
|
|
346
437
|
"resolved": "boolean",
|
|
@@ -356,28 +447,9 @@ export class SmoothlyInput {
|
|
|
356
447
|
"reflect": false,
|
|
357
448
|
"defaultValue": "true"
|
|
358
449
|
},
|
|
359
|
-
"pattern": {
|
|
360
|
-
"type": "unknown",
|
|
361
|
-
"mutable": true,
|
|
362
|
-
"complexType": {
|
|
363
|
-
"original": "RegExp | undefined",
|
|
364
|
-
"resolved": "RegExp | undefined",
|
|
365
|
-
"references": {
|
|
366
|
-
"RegExp": {
|
|
367
|
-
"location": "global"
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
},
|
|
371
|
-
"required": false,
|
|
372
|
-
"optional": false,
|
|
373
|
-
"docs": {
|
|
374
|
-
"tags": [],
|
|
375
|
-
"text": ""
|
|
376
|
-
}
|
|
377
|
-
},
|
|
378
450
|
"placeholder": {
|
|
379
451
|
"type": "string",
|
|
380
|
-
"mutable":
|
|
452
|
+
"mutable": false,
|
|
381
453
|
"complexType": {
|
|
382
454
|
"original": "string | undefined",
|
|
383
455
|
"resolved": "string | undefined",
|
|
@@ -394,7 +466,7 @@ export class SmoothlyInput {
|
|
|
394
466
|
},
|
|
395
467
|
"disabled": {
|
|
396
468
|
"type": "boolean",
|
|
397
|
-
"mutable":
|
|
469
|
+
"mutable": false,
|
|
398
470
|
"complexType": {
|
|
399
471
|
"original": "boolean",
|
|
400
472
|
"resolved": "boolean",
|
|
@@ -425,17 +497,17 @@ export class SmoothlyInput {
|
|
|
425
497
|
"text": ""
|
|
426
498
|
},
|
|
427
499
|
"attribute": "readonly",
|
|
428
|
-
"reflect":
|
|
500
|
+
"reflect": true,
|
|
429
501
|
"defaultValue": "false"
|
|
430
502
|
},
|
|
431
503
|
"currency": {
|
|
432
504
|
"type": "string",
|
|
433
505
|
"mutable": false,
|
|
434
506
|
"complexType": {
|
|
435
|
-
"original": "Currency",
|
|
436
|
-
"resolved": "\"BTN\" | \"
|
|
507
|
+
"original": "isoly.Currency",
|
|
508
|
+
"resolved": "\"BTN\" | \"CHE\" | \"MKD\" | \"AED\" | \"AFN\" | \"ALL\" | \"AMD\" | \"ANG\" | \"AOA\" | \"ARS\" | \"AUD\" | \"AWG\" | \"AZN\" | \"BAM\" | \"BBD\" | \"BDT\" | \"BGN\" | \"BHD\" | \"BIF\" | \"BMD\" | \"BND\" | \"BOB\" | \"BOV\" | \"BRL\" | \"BSD\" | \"BWP\" | \"BYN\" | \"BZD\" | \"CAD\" | \"CDF\" | \"CHF\" | \"CHW\" | \"CLF\" | \"CLP\" | \"CNY\" | \"COP\" | \"COU\" | \"CRC\" | \"CUC\" | \"CUP\" | \"CVE\" | \"CZK\" | \"DJF\" | \"DKK\" | \"DOP\" | \"DZD\" | \"EGP\" | \"ERN\" | \"ETB\" | \"EUR\" | \"FJD\" | \"FKP\" | \"GBP\" | \"GEL\" | \"GHS\" | \"GIP\" | \"GMD\" | \"GNF\" | \"GTQ\" | \"GYD\" | \"HKD\" | \"HNL\" | \"HRK\" | \"HTG\" | \"HUF\" | \"IDR\" | \"ILS\" | \"INR\" | \"IQD\" | \"IRR\" | \"ISK\" | \"JMD\" | \"JOD\" | \"JPY\" | \"KES\" | \"KGS\" | \"KHR\" | \"KMF\" | \"KPW\" | \"KRW\" | \"KWD\" | \"KYD\" | \"KZT\" | \"LAK\" | \"LBP\" | \"LKR\" | \"LRD\" | \"LSL\" | \"LYD\" | \"MAD\" | \"MDL\" | \"MGA\" | \"MMK\" | \"MNT\" | \"MOP\" | \"MRU\" | \"MUR\" | \"MVR\" | \"MWK\" | \"MXN\" | \"MXV\" | \"MYR\" | \"MZN\" | \"NAD\" | \"NGN\" | \"NIO\" | \"NOK\" | \"NPR\" | \"NZD\" | \"OMR\" | \"PAB\" | \"PEN\" | \"PGK\" | \"PHP\" | \"PKR\" | \"PLN\" | \"PYG\" | \"QAR\" | \"RON\" | \"RSD\" | \"RUB\" | \"RWF\" | \"SAR\" | \"SBD\" | \"SCR\" | \"SDG\" | \"SEK\" | \"SGD\" | \"SHP\" | \"SLL\" | \"SOS\" | \"SRD\" | \"SSP\" | \"STN\" | \"SVC\" | \"SYP\" | \"SZL\" | \"THB\" | \"TJS\" | \"TMT\" | \"TND\" | \"TOP\" | \"TRY\" | \"TTD\" | \"TWD\" | \"TZS\" | \"UAH\" | \"UGX\" | \"USD\" | \"USN\" | \"UYI\" | \"UYU\" | \"UYW\" | \"UZS\" | \"VES\" | \"VND\" | \"VUV\" | \"WST\" | \"XAF\" | \"XAG\" | \"XAU\" | \"XBA\" | \"XBB\" | \"XBC\" | \"XBD\" | \"XCD\" | \"XDR\" | \"XOF\" | \"XPD\" | \"XPF\" | \"XPT\" | \"XSU\" | \"XTS\" | \"XUA\" | \"XXX\" | \"YER\" | \"ZAR\" | \"ZMW\" | \"ZWL\" | undefined",
|
|
437
509
|
"references": {
|
|
438
|
-
"
|
|
510
|
+
"isoly": {
|
|
439
511
|
"location": "import",
|
|
440
512
|
"path": "isoly"
|
|
441
513
|
}
|
|
@@ -449,16 +521,93 @@ export class SmoothlyInput {
|
|
|
449
521
|
},
|
|
450
522
|
"attribute": "currency",
|
|
451
523
|
"reflect": true
|
|
524
|
+
},
|
|
525
|
+
"changed": {
|
|
526
|
+
"type": "boolean",
|
|
527
|
+
"mutable": true,
|
|
528
|
+
"complexType": {
|
|
529
|
+
"original": "boolean",
|
|
530
|
+
"resolved": "boolean",
|
|
531
|
+
"references": {}
|
|
532
|
+
},
|
|
533
|
+
"required": false,
|
|
534
|
+
"optional": false,
|
|
535
|
+
"docs": {
|
|
536
|
+
"tags": [],
|
|
537
|
+
"text": ""
|
|
538
|
+
},
|
|
539
|
+
"attribute": "changed",
|
|
540
|
+
"reflect": false,
|
|
541
|
+
"defaultValue": "false"
|
|
452
542
|
}
|
|
453
543
|
};
|
|
454
544
|
}
|
|
455
545
|
static get states() {
|
|
456
546
|
return {
|
|
547
|
+
"formatter": {},
|
|
457
548
|
"initialValue": {}
|
|
458
549
|
};
|
|
459
550
|
}
|
|
460
551
|
static get events() {
|
|
461
552
|
return [{
|
|
553
|
+
"method": "smoothlyInputLooks",
|
|
554
|
+
"name": "smoothlyInputLooks",
|
|
555
|
+
"bubbles": true,
|
|
556
|
+
"cancelable": true,
|
|
557
|
+
"composed": true,
|
|
558
|
+
"docs": {
|
|
559
|
+
"tags": [],
|
|
560
|
+
"text": ""
|
|
561
|
+
},
|
|
562
|
+
"complexType": {
|
|
563
|
+
"original": "(looks: Looks, color: Color) => void",
|
|
564
|
+
"resolved": "(looks: \"line\" | \"grid\" | \"plain\" | \"border\" | \"transparent\", color: \"success\" | \"default\" | \"primary\" | \"secondary\" | \"tertiary\" | \"warning\" | \"danger\" | \"light\" | \"medium\" | \"dark\") => void",
|
|
565
|
+
"references": {
|
|
566
|
+
"Looks": {
|
|
567
|
+
"location": "import",
|
|
568
|
+
"path": "./Looks"
|
|
569
|
+
},
|
|
570
|
+
"Color": {
|
|
571
|
+
"location": "import",
|
|
572
|
+
"path": "../../model"
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
}, {
|
|
577
|
+
"method": "smoothlyInputLoad",
|
|
578
|
+
"name": "smoothlyInputLoad",
|
|
579
|
+
"bubbles": true,
|
|
580
|
+
"cancelable": true,
|
|
581
|
+
"composed": true,
|
|
582
|
+
"docs": {
|
|
583
|
+
"tags": [],
|
|
584
|
+
"text": ""
|
|
585
|
+
},
|
|
586
|
+
"complexType": {
|
|
587
|
+
"original": "(parent: HTMLElement) => void",
|
|
588
|
+
"resolved": "(parent: HTMLElement) => void",
|
|
589
|
+
"references": {
|
|
590
|
+
"HTMLElement": {
|
|
591
|
+
"location": "global"
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
}, {
|
|
596
|
+
"method": "smoothlyFormDisable",
|
|
597
|
+
"name": "smoothlyFormDisable",
|
|
598
|
+
"bubbles": true,
|
|
599
|
+
"cancelable": true,
|
|
600
|
+
"composed": true,
|
|
601
|
+
"docs": {
|
|
602
|
+
"tags": [],
|
|
603
|
+
"text": ""
|
|
604
|
+
},
|
|
605
|
+
"complexType": {
|
|
606
|
+
"original": "(disabled: boolean) => void",
|
|
607
|
+
"resolved": "(disabled: boolean) => void",
|
|
608
|
+
"references": {}
|
|
609
|
+
}
|
|
610
|
+
}, {
|
|
462
611
|
"method": "smoothlyBlur",
|
|
463
612
|
"name": "smoothlyBlur",
|
|
464
613
|
"bubbles": true,
|
|
@@ -515,6 +664,32 @@ export class SmoothlyInput {
|
|
|
515
664
|
}
|
|
516
665
|
static get methods() {
|
|
517
666
|
return {
|
|
667
|
+
"listen": {
|
|
668
|
+
"complexType": {
|
|
669
|
+
"signature": "(property: \"changed\", listener: (parent: Editable) => Promise<void>) => Promise<void>",
|
|
670
|
+
"parameters": [{
|
|
671
|
+
"tags": [],
|
|
672
|
+
"text": ""
|
|
673
|
+
}, {
|
|
674
|
+
"tags": [],
|
|
675
|
+
"text": ""
|
|
676
|
+
}],
|
|
677
|
+
"references": {
|
|
678
|
+
"Promise": {
|
|
679
|
+
"location": "global"
|
|
680
|
+
},
|
|
681
|
+
"Editable": {
|
|
682
|
+
"location": "import",
|
|
683
|
+
"path": "./Editable"
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
"return": "Promise<void>"
|
|
687
|
+
},
|
|
688
|
+
"docs": {
|
|
689
|
+
"text": "",
|
|
690
|
+
"tags": []
|
|
691
|
+
}
|
|
692
|
+
},
|
|
518
693
|
"clear": {
|
|
519
694
|
"complexType": {
|
|
520
695
|
"signature": "() => Promise<void>",
|
|
@@ -531,6 +706,41 @@ export class SmoothlyInput {
|
|
|
531
706
|
"tags": []
|
|
532
707
|
}
|
|
533
708
|
},
|
|
709
|
+
"edit": {
|
|
710
|
+
"complexType": {
|
|
711
|
+
"signature": "(editable: boolean) => Promise<void>",
|
|
712
|
+
"parameters": [{
|
|
713
|
+
"tags": [],
|
|
714
|
+
"text": ""
|
|
715
|
+
}],
|
|
716
|
+
"references": {
|
|
717
|
+
"Promise": {
|
|
718
|
+
"location": "global"
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
"return": "Promise<void>"
|
|
722
|
+
},
|
|
723
|
+
"docs": {
|
|
724
|
+
"text": "",
|
|
725
|
+
"tags": []
|
|
726
|
+
}
|
|
727
|
+
},
|
|
728
|
+
"reset": {
|
|
729
|
+
"complexType": {
|
|
730
|
+
"signature": "() => Promise<void>",
|
|
731
|
+
"parameters": [],
|
|
732
|
+
"references": {
|
|
733
|
+
"Promise": {
|
|
734
|
+
"location": "global"
|
|
735
|
+
}
|
|
736
|
+
},
|
|
737
|
+
"return": "Promise<void>"
|
|
738
|
+
},
|
|
739
|
+
"docs": {
|
|
740
|
+
"text": "",
|
|
741
|
+
"tags": []
|
|
742
|
+
}
|
|
743
|
+
},
|
|
534
744
|
"getFormData": {
|
|
535
745
|
"complexType": {
|
|
536
746
|
"signature": "(name: string) => Promise<Record<string, any>>",
|
|
@@ -574,7 +784,7 @@ export class SmoothlyInput {
|
|
|
574
784
|
},
|
|
575
785
|
"setSelectionRange": {
|
|
576
786
|
"complexType": {
|
|
577
|
-
"signature": "(start: number, end: number, direction?: Direction) => Promise<void>",
|
|
787
|
+
"signature": "(start: number, end: number, direction?: tidily.Direction) => Promise<void>",
|
|
578
788
|
"parameters": [{
|
|
579
789
|
"tags": [],
|
|
580
790
|
"text": ""
|
|
@@ -589,7 +799,7 @@ export class SmoothlyInput {
|
|
|
589
799
|
"Promise": {
|
|
590
800
|
"location": "global"
|
|
591
801
|
},
|
|
592
|
-
"
|
|
802
|
+
"tidily": {
|
|
593
803
|
"location": "import",
|
|
594
804
|
"path": "tidily"
|
|
595
805
|
}
|
|
@@ -605,16 +815,31 @@ export class SmoothlyInput {
|
|
|
605
815
|
}
|
|
606
816
|
static get watchers() {
|
|
607
817
|
return [{
|
|
818
|
+
"propName": "type",
|
|
819
|
+
"methodName": "typeChange"
|
|
820
|
+
}, {
|
|
608
821
|
"propName": "value",
|
|
609
822
|
"methodName": "valueWatcher"
|
|
823
|
+
}, {
|
|
824
|
+
"propName": "readonly",
|
|
825
|
+
"methodName": "watchingReadonly"
|
|
610
826
|
}, {
|
|
611
827
|
"propName": "currency",
|
|
612
828
|
"methodName": "onCurrency"
|
|
613
829
|
}];
|
|
614
830
|
}
|
|
831
|
+
static get listeners() {
|
|
832
|
+
return [{
|
|
833
|
+
"name": "smoothlyInputLoad",
|
|
834
|
+
"method": "SmoothlyInputLoadHandler",
|
|
835
|
+
"target": undefined,
|
|
836
|
+
"capture": false,
|
|
837
|
+
"passive": false
|
|
838
|
+
}];
|
|
839
|
+
}
|
|
615
840
|
}
|
|
616
841
|
function getLocale() {
|
|
617
842
|
const result = navigator.language;
|
|
618
|
-
return Locale.is(result) ? result : Language.is(result) ? Locale.toLocale(result) : undefined;
|
|
843
|
+
return isoly.Locale.is(result) ? result : isoly.Language.is(result) ? isoly.Locale.toLocale(result) : undefined;
|
|
619
844
|
}
|
|
620
845
|
//# sourceMappingURL=index.js.map
|