smoothly 1.0.0-alpha.99 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Data-50d47740.js +589 -0
- package/dist/cjs/Data-50d47740.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-7e53766b.js → getLanguage-49a534df.js} +1 -5993
- package/dist/cjs/getLanguage-49a534df.js.map +1 -0
- package/dist/cjs/{index-6ae370b4.js → index-43af753b.js} +1 -4
- package/dist/cjs/index-43af753b.js.map +1 -0
- package/dist/cjs/index.cjs.js +3 -14
- 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/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 +11148 -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 +1 -1
- package/dist/cjs/smoothly-google-font.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 +2 -2
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +2 -2
- package/dist/cjs/smoothly.cjs.js +4 -3
- package/dist/cjs/smoothly.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +24 -7
- package/dist/collection/components/Button.js +16 -2
- package/dist/collection/components/Button.js.map +1 -1
- package/dist/collection/components/app/index.js +53 -1
- package/dist/collection/components/app/index.js.map +1 -1
- package/dist/collection/components/app/room/index.js +45 -2
- package/dist/collection/components/app/room/index.js.map +1 -1
- package/dist/collection/components/app/room/style.css +23 -9
- package/dist/collection/components/app/style.css +57 -32
- package/dist/collection/components/app-demo/index.js +1 -2
- package/dist/collection/components/app-demo/index.js.map +1 -1
- package/dist/collection/components/burger/index.js +9 -9
- package/dist/collection/components/burger/index.js.map +1 -1
- package/dist/collection/components/button/index.js +9 -22
- package/dist/collection/components/button/index.js.map +1 -1
- package/dist/collection/components/button/style.css +23 -20
- package/dist/collection/components/button-demo/index.js +3 -1
- 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 +60 -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/display/index.js +4 -1
- package/dist/collection/components/display/index.js.map +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 +84 -301
- package/dist/collection/components/filter/input/index.js.map +1 -1
- package/dist/collection/components/filter/picker/index.js +229 -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 +234 -66
- package/dist/collection/components/form/index.js.map +1 -1
- package/dist/collection/components/form/style.css +3 -1
- package/dist/collection/components/icon/index.js +60 -32
- package/dist/collection/components/icon/index.js.map +1 -1
- package/dist/collection/components/icon/style.css +15 -0
- package/dist/collection/components/icon-demo/index.js +3 -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/Editable.js +19 -0
- package/dist/collection/components/input/Editable.js.map +1 -0
- package/dist/collection/components/input/Input.js +22 -1
- package/dist/collection/components/input/Input.js.map +1 -1
- package/dist/collection/components/input/Looks.js +7 -1
- package/dist/collection/components/input/Looks.js.map +1 -1
- package/dist/collection/components/input/Submittable.js.map +1 -1
- package/dist/collection/components/input/checkbox/index.js +382 -0
- package/dist/collection/components/input/checkbox/index.js.map +1 -0
- package/dist/collection/components/input/checkbox/style.css +75 -0
- package/dist/collection/components/input/clear/index.js +12 -7
- package/dist/collection/components/input/clear/index.js.map +1 -1
- package/dist/collection/components/input/clear/style.css +23 -20
- 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/index.js +8 -8
- package/dist/collection/components/input/date/index.js.map +1 -1
- package/dist/collection/components/input/date/range/index.js +13 -17
- package/dist/collection/components/input/date/range/index.js.map +1 -1
- package/dist/collection/components/input/date/range/style.css +25 -0
- package/dist/collection/components/input/date/style.css +25 -0
- package/dist/collection/components/input/demo/index.js +28 -72
- package/dist/collection/components/input/demo/index.js.map +1 -1
- package/dist/collection/components/input/demo/style.css +15 -0
- package/dist/collection/components/input/edit/index.js +249 -0
- package/dist/collection/components/input/edit/index.js.map +1 -0
- package/dist/collection/components/input/edit/style.css +238 -0
- package/dist/collection/components/input/file/index.js +3 -3
- package/dist/collection/components/input/file/index.js.map +1 -1
- package/dist/collection/components/input/file/style.css +22 -0
- package/dist/collection/components/input/index.js +245 -110
- package/dist/collection/components/input/index.js.map +1 -1
- package/dist/collection/components/input/month/index.js +5 -5
- package/dist/collection/components/input/month/index.js.map +1 -1
- 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 +426 -0
- package/dist/collection/components/input/radio/index.js.map +1 -0
- package/dist/collection/components/{radio-button → input/radio/item}/index.js +60 -72
- 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 +440 -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 +260 -0
- package/dist/collection/components/input/reset/index.js.map +1 -0
- package/dist/collection/components/input/reset/style.css +255 -0
- package/dist/collection/components/input/select/index.js +443 -95
- package/dist/collection/components/input/select/index.js.map +1 -1
- package/dist/collection/components/input/select/style.css +111 -23
- package/dist/collection/components/input/style.css +24 -2
- package/dist/collection/components/input/submit/index.js +269 -0
- package/dist/collection/components/input/submit/index.js.map +1 -0
- package/dist/collection/components/input/submit/style.css +11 -0
- package/dist/collection/components/item/Item.js +11 -0
- package/dist/collection/components/item/Item.js.map +1 -0
- package/dist/collection/components/item/index.js +69 -29
- package/dist/collection/components/item/index.js.map +1 -1
- package/dist/collection/components/item/style.css +1 -3
- 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.map +1 -1
- package/dist/collection/components/picker/demo/index.js +17 -15
- package/dist/collection/components/picker/demo/index.js.map +1 -1
- package/dist/collection/components/picker/demo/style.css +24 -1
- package/dist/collection/components/picker/index.js +172 -7
- package/dist/collection/components/picker/index.js.map +1 -1
- package/dist/collection/components/picker/menu/index.js +74 -3
- package/dist/collection/components/picker/menu/index.js.map +1 -1
- package/dist/collection/components/picker/menu/style.css +16 -6
- package/dist/collection/components/picker/option/index.js +51 -3
- package/dist/collection/components/picker/option/index.js.map +1 -1
- package/dist/collection/components/picker/option/style.css +9 -4
- package/dist/collection/components/picker/style.css +28 -3
- 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/submit/index.js +0 -15
- package/dist/collection/components/submit/index.js.map +1 -1
- package/dist/collection/components/submit/style.css +23 -20
- package/dist/collection/components/summary/index.js +2 -3
- package/dist/collection/components/summary/index.js.map +1 -1
- package/dist/collection/components/summary/style.css +25 -16
- package/dist/collection/components/table/cell/style.css +3 -3
- package/dist/collection/components/table/demo/filtered/Root.js.map +1 -1
- package/dist/collection/components/table/demo/filtered/index.js +30 -15
- 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 -14
- package/dist/collection/components/table/demo/index.js.map +1 -1
- package/dist/collection/components/table/demo/style.css +5 -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 +1 -20
- package/dist/collection/components/table/expandable/cell/index.js.map +1 -1
- package/dist/collection/components/table/expandable/cell/style.css +13 -13
- package/dist/collection/components/table/expandable/row/index.js +1 -20
- package/dist/collection/components/table/expandable/row/index.js.map +1 -1
- package/dist/collection/components/table/expandable/row/style.css +11 -11
- 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 +24 -1
- package/dist/collection/components/table/index.js.map +1 -1
- 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/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/model/Color.js +18 -1
- package/dist/collection/model/Color.js.map +1 -1
- package/dist/collection/model/Data.js +8 -1
- package/dist/collection/model/Data.js.map +1 -1
- package/dist/collection/model/Icon.js +23 -0
- package/dist/collection/model/Icon.js.map +1 -0
- package/dist/collection/model/Listenable.js +16 -3
- package/dist/collection/model/Listenable.js.map +1 -1
- package/dist/collection/model/Option.js.map +1 -1
- package/dist/collection/model/index.js +2 -1
- package/dist/collection/model/index.js.map +1 -1
- package/dist/collection/smoothly.js +1 -1
- package/dist/collection/smoothly.js.map +1 -1
- package/dist/custom-elements/index.d.ts +120 -24
- package/dist/custom-elements/index.js +15445 -33845
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/Data-c8093b5a.js +579 -0
- package/dist/esm/Data-c8093b5a.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-9c833eef.js → getLanguage-1e9ec036.js} +2 -5994
- package/dist/esm/getLanguage-1e9ec036.js.map +1 -0
- package/dist/esm/{index-c196715a.js → index-258984d3.js} +2 -4
- package/dist/esm/index-258984d3.js.map +1 -0
- package/dist/esm/index.js +3 -14
- 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/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 +11065 -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 +1 -1
- package/dist/esm/smoothly-google-font.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 +2 -2
- 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-663ccbd0.entry.js → p-12182a73.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-2e986022.js +2 -0
- package/dist/smoothly/p-2e986022.js.map +1 -0
- package/dist/smoothly/p-303520d1.entry.js +2 -0
- package/dist/smoothly/p-303520d1.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-9992c8c4.entry.js → p-47151a53.entry.js} +2 -2
- package/dist/smoothly/{p-d0b8061e.js → p-5e387578.js} +3 -3
- package/dist/smoothly/p-5e387578.js.map +1 -0
- package/dist/smoothly/{p-b82ef190.entry.js → p-635c813e.entry.js} +2 -2
- package/dist/smoothly/{p-dbd1afa9.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-c4ffc15d.entry.js → p-7a69b43f.entry.js} +2 -2
- package/dist/smoothly/{p-4d743f07.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-b3eac6af.entry.js +2 -0
- package/dist/smoothly/{p-4ff439dd.entry.js.map → p-b3eac6af.entry.js.map} +1 -1
- package/dist/smoothly/{p-f96e41aa.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-ce4e6f44.entry.js → p-eef1c80b.entry.js} +2 -2
- 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/app/index.d.ts +3 -0
- package/dist/types/components/app/room/index.d.ts +4 -2
- package/dist/types/components/app-demo/index.d.ts +1 -0
- package/dist/types/components/burger/index.d.ts +2 -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 +4 -2
- 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 +17 -23
- package/dist/types/components/filter/picker/index.d.ts +25 -0
- package/dist/types/components/filter/toggle/index.d.ts +22 -0
- package/dist/types/components/form/index.d.ts +22 -15
- package/dist/types/components/icon/index.d.ts +4 -6
- package/dist/types/components/input/Editable.d.ts +21 -0
- package/dist/types/components/input/Input.d.ts +19 -7
- package/dist/types/components/input/Looks.d.ts +7 -1
- package/dist/types/components/input/Submittable.d.ts +1 -1
- package/dist/types/components/input/checkbox/index.d.ts +30 -0
- package/dist/types/components/input/color/index.d.ts +24 -0
- package/dist/types/components/input/date/index.d.ts +1 -1
- package/dist/types/components/input/date/range/index.d.ts +2 -2
- package/dist/types/components/input/demo/index.d.ts +3 -6
- package/dist/types/components/input/edit/index.d.ts +18 -0
- package/dist/types/components/input/index.d.ts +30 -21
- package/dist/types/components/input/month/index.d.ts +1 -1
- package/dist/types/components/input/radio/Selected.d.ts +10 -0
- package/dist/types/components/input/radio/index.d.ts +36 -0
- package/dist/types/components/input/radio/item/index.d.ts +15 -0
- package/dist/types/components/input/range/index.d.ts +33 -0
- package/dist/types/components/input/reset/index.d.ts +19 -0
- package/dist/types/components/input/select/index.d.ts +41 -18
- package/dist/types/components/input/submit/index.d.ts +19 -0
- package/dist/types/components/item/Item.d.ts +10 -0
- package/dist/types/components/item/index.d.ts +8 -5
- 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/picker/demo/index.d.ts +7 -2
- package/dist/types/components/picker/index.d.ts +20 -6
- package/dist/types/components/picker/menu/index.d.ts +8 -0
- package/dist/types/components/picker/option/index.d.ts +2 -0
- package/dist/types/components/popup/index.d.ts +1 -1
- package/dist/types/components/submit/index.d.ts +0 -1
- package/dist/types/components/table/demo/filtered/Root.d.ts +2 -0
- package/dist/types/components/table/demo/filtered/index.d.ts +6 -6
- package/dist/types/components/table/demo/index.d.ts +1 -1
- package/dist/types/components/table/expandable/cell/index.d.ts +0 -1
- package/dist/types/components/table/expandable/row/index.d.ts +0 -1
- package/dist/types/components/table/footer/index.d.ts +3 -0
- package/dist/types/components/table/index.d.ts +2 -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/theme/picker/index.d.ts +4 -0
- package/dist/types/components/toggle-switch/index.d.ts +7 -2
- package/dist/types/components.d.ts +658 -182
- package/dist/types/global/Observers.d.ts +8 -0
- package/dist/types/global/index.d.ts +4 -0
- package/dist/types/model/Color.d.ts +7 -1
- package/dist/types/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/Option.d.ts +2 -0
- package/dist/types/model/index.d.ts +1 -1
- package/dist/types/smoothly.d.ts +1 -1
- package/package.json +7 -11
- package/dist/cjs/Data-afbe461d.js +0 -807
- package/dist/cjs/Data-afbe461d.js.map +0 -1
- package/dist/cjs/getLanguage-7e53766b.js.map +0 -1
- package/dist/cjs/index-6ae370b4.js.map +0 -1
- package/dist/cjs/smoothly-accordion_66.cjs.entry.js +0 -29732
- package/dist/cjs/smoothly-accordion_66.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 +0 -8
- package/dist/collection/components/filter/Clearable.js.map +0 -1
- package/dist/collection/components/icon/Icon.js +0 -2
- package/dist/collection/components/icon/Icon.js.map +0 -1
- package/dist/collection/components/input/Changeable.js +0 -8
- package/dist/collection/components/input/Changeable.js.map +0 -1
- 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.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/table/testing/data.js.map +0 -1
- package/dist/collection/components/table/testing/index.js +0 -28
- package/dist/collection/components/table/testing/index.js.map +0 -1
- package/dist/collection/components/table/testing/style.css +0 -8
- package/dist/collection/model/ClientIdentifier.js +0 -13
- package/dist/collection/model/ClientIdentifier.js.map +0 -1
- package/dist/esm/Data-77d2bdbe.js +0 -803
- package/dist/esm/Data-77d2bdbe.js.map +0 -1
- package/dist/esm/getLanguage-9c833eef.js.map +0 -1
- package/dist/esm/index-c196715a.js.map +0 -1
- package/dist/esm/smoothly-accordion_66.entry.js +0 -29663
- package/dist/esm/smoothly-accordion_66.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-1b714a63.js +0 -2
- package/dist/smoothly/p-1b714a63.js.map +0 -1
- package/dist/smoothly/p-1efa3261.entry.js +0 -2
- package/dist/smoothly/p-1efa3261.entry.js.map +0 -1
- package/dist/smoothly/p-4ff439dd.entry.js +0 -2
- package/dist/smoothly/p-74a3586c.js +0 -2
- package/dist/smoothly/p-74a3586c.js.map +0 -1
- package/dist/smoothly/p-8a45ae84.entry.js +0 -2
- package/dist/smoothly/p-8a45ae84.entry.js.map +0 -1
- package/dist/smoothly/p-90b340b4.entry.js +0 -2
- package/dist/smoothly/p-90b340b4.entry.js.map +0 -1
- package/dist/smoothly/p-d0b8061e.js.map +0 -1
- package/dist/types/components/filter/Clearable.d.ts +0 -6
- package/dist/types/components/icon/Icon.d.ts +0 -4
- package/dist/types/components/input/Changeable.d.ts +0 -7
- 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 -13
- 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/model/ClientIdentifier.d.ts +0 -5
- /package/dist/collection/components/{radio-button → lazy}/style.css +0 -0
- /package/dist/collection/components/table/{testing → demo/testing}/data.js +0 -0
- /package/dist/smoothly/{p-663ccbd0.entry.js.map → p-12182a73.entry.js.map} +0 -0
- /package/dist/smoothly/{p-9992c8c4.entry.js.map → p-47151a53.entry.js.map} +0 -0
- /package/dist/smoothly/{p-b82ef190.entry.js.map → p-635c813e.entry.js.map} +0 -0
- /package/dist/smoothly/{p-dbd1afa9.entry.js.map → p-6aebb818.entry.js.map} +0 -0
- /package/dist/smoothly/{p-c4ffc15d.entry.js.map → p-7a69b43f.entry.js.map} +0 -0
- /package/dist/smoothly/{p-4d743f07.entry.js.map → p-7bf147bf.entry.js.map} +0 -0
- /package/dist/smoothly/{p-f96e41aa.entry.js.map → p-cb493516.entry.js.map} +0 -0
- /package/dist/smoothly/{p-ce4e6f44.entry.js.map → p-eef1c80b.entry.js.map} +0 -0
- /package/dist/types/components/table/{testing → demo/testing}/data.d.ts +0 -0
- /package/dist/types/components/table/{testing → demo/testing}/index.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent,
|
|
1
|
+
import { r as registerInstance, c as createEvent, g as getElement } from './index-258984d3.js';
|
|
2
2
|
|
|
3
3
|
const styleCss = "smoothly-reorder>*{cursor:move;transition:transform 0.3s}smoothly-reorder>*.dragging{transition:none;box-shadow:0 0 10px rgba(var(--smoothly-dark-color));z-index:1;user-select:none}";
|
|
4
4
|
|
|
@@ -14,7 +14,7 @@ const SmoothlyReorder = class {
|
|
|
14
14
|
else {
|
|
15
15
|
for (let index = 0; index < this.element.children.length; index++) {
|
|
16
16
|
const element = this.element.children[index];
|
|
17
|
-
if (element instanceof
|
|
17
|
+
if (element instanceof HTMLElement) {
|
|
18
18
|
const bounds = element.getBoundingClientRect();
|
|
19
19
|
result.push({
|
|
20
20
|
top: bounds.top,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"smoothly-reorder.entry.js","mappings":";;AAAA,MAAM,QAAQ,GAAG,uLAAuL;;MCM3L,eAAe;;;;;EAK3B,IAAY,QAAQ;IACnB,IAAI,MAAM,GAAgB,EAAE,CAAA;IAC5B,IAAI,IAAI,CAAC,aAAa;MACrB,MAAM,GAAG,IAAI,CAAC,aAAa,CAAA;SACvB;MACJ,KAAK,IAAI,KAAK,GAA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a,KAAK,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAA;MAC3E,KAAK,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAa,KAAK,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAA;MAC3E,KAAK,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,CAAa,KAAK,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAA;KACvE,CAAC,CAAA;GACF;;;;;;;","names":[],"sources":["./src/components/reorder/style.css?tag=smoothly-reorder","./src/components/reorder/index.tsx"],"sourcesContent":["smoothly-reorder > * {\n\tcursor: move;\n\ttransition: transform 0.3s;\n}\nsmoothly-reorder > *.dragging {\n\ttransition: none;\n\tbox-shadow: 0 0 10px rgba(var(--smoothly-dark-color));\n\tz-index: 1;\n\tuser-select: none;\n}\n","import { Component, Element, Event, EventEmitter } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-reorder\",\n\tstyleUrl: \"style.css\",\n})\nexport class SmoothlyReorder {\n\t@Event() reorder: EventEmitter<[number, number]>\n\t@Element() element: HTMLSmoothlyReorderElement\n\tprivate bounds?: DOMRect\n\tprivate childrenCache?: Draggable[]\n\tprivate get children(): Draggable[] {\n\t\tlet result: Draggable[] = []\n\t\tif (this.childrenCache)\n\t\t\tresult = this.childrenCache\n\t\telse {\n\t\t\tfor (let index = 0; index < this.element.children.length; index++) {\n\t\t\t\tconst element = this.element.children[index]\n\t\t\t\tif (element instanceof HTMLElement) {\n\t\t\t\t\tconst bounds = element.getBoundingClientRect()\n\t\t\t\t\tresult.push({\n\t\t\t\t\t\ttop: bounds.top,\n\t\t\t\t\t\tmiddle: bounds.top + bounds.height / 2,\n\t\t\t\t\t\tbottom: bounds.bottom,\n\t\t\t\t\t\telement: element,\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.childrenCache = result\n\t\t}\n\t\treturn result\n\t}\n\tprivate dragged?: Dragged\n\tprivate move?: { from: number; to: number }\n\n\tprivate onMouseDown(event: MouseEvent) {\n\t\tif (!this.move && this.element.children.length > 1) {\n\t\t\tthis.bounds = this.element.getBoundingClientRect()\n\t\t\tthis.childrenCache = undefined\n\t\t\tconst index = this.getCurrentIndex(event.clientY)\n\t\t\tthis.dragged = {\n\t\t\t\t...this.children[index],\n\t\t\t\tstartY: event.clientY,\n\t\t\t\toffsetY: event.clientY - this.children[index].middle,\n\t\t\t\tindex,\n\t\t\t\theight:\n\t\t\t\t\tindex < this.children.length - 1\n\t\t\t\t\t\t? this.children[index + 1].top - this.children[index].top\n\t\t\t\t\t\t: this.children[index].bottom - this.children[index - 1].bottom,\n\t\t\t}\n\t\t\tthis.dragged.element.className += \" dragging\"\n\t\t}\n\t}\n\n\tprivate onMouseMove(event: MouseEvent) {\n\t\tif (this.dragged && this.bounds && event.clientY >= this.bounds.top && event.clientY <= this.bounds.bottom) {\n\t\t\tconst currentIndex = this.getCurrentIndex(event.clientY - this.dragged.offsetY)\n\t\t\tthis.translate(this.dragged.index, currentIndex, event.clientY - this.dragged.startY)\n\t\t}\n\t}\n\n\tprivate onMouseUp(event: MouseEvent) {\n\t\tif (this.dragged) {\n\t\t\tthis.dragged.element.className = this.dragged.element.className.replace(\" dragging\", \"\")\n\t\t\tconst index = this.getCurrentIndex(event.clientY - this.dragged.offsetY)\n\t\t\tthis.translate(this.dragged.index, index, this.children[index].top - this.dragged.top)\n\t\t\tthis.move = { from: this.dragged.index, to: index }\n\t\t\tthis.dragged = undefined\n\n\t\t\twindow.setTimeout(() => {\n\t\t\t\tif (this.move) {\n\t\t\t\t\tconst children = [...this.children.map(c => c.element)]\n\t\t\t\t\tconst e = children.splice(this.move.from, 1)\n\t\t\t\t\tchildren.splice(this.move.to, 0, ...e)\n\t\t\t\t\tchildren.forEach(child => this.element.removeChild(child))\n\t\t\t\t\tchildren.forEach(child => {\n\t\t\t\t\t\tchild.style.transform = \"\"\n\t\t\t\t\t\tthis.element.appendChild(child)\n\t\t\t\t\t})\n\t\t\t\t\tthis.reorder.emit([this.move.from, this.move.to])\n\t\t\t\t\tthis.move = undefined\n\t\t\t\t}\n\t\t\t}, 500)\n\t\t}\n\t}\n\n\tprivate translate(fromIndex: number, toIndex: number, y: number) {\n\t\tfor (let index = 0; index < this.children.length; index++) {\n\t\t\tlet value: number\n\t\t\tif (this.dragged) {\n\t\t\t\tif (fromIndex < toIndex && index > fromIndex && index <= toIndex)\n\t\t\t\t\tvalue = -this.dragged.height\n\t\t\t\telse if (fromIndex > toIndex && index < fromIndex && index >= toIndex)\n\t\t\t\t\tvalue = this.dragged.height\n\t\t\t\telse\n\t\t\t\t\tvalue = index == fromIndex ? y : 0\n\n\t\t\t\tthis.children[index].element.style.transform = `translateY(${value}px)`\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate getCurrentIndex(y: number): number {\n\t\treturn this.children.findIndex(c => y < c.bottom)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.element.childNodes.forEach(child => {\n\t\t\tchild.addEventListener(\"mousedown\", (e: MouseEvent) => this.onMouseDown(e))\n\t\t\tchild.addEventListener(\"mousemove\", (e: MouseEvent) => this.onMouseMove(e))\n\t\t\tchild.addEventListener(\"mouseup\", (e: MouseEvent) => this.onMouseUp(e))\n\t\t})\n\t}\n}\n"],"version":3}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { T as Trigger, M as Message } from './Data-
|
|
1
|
+
import { r as registerInstance, h } from './index-258984d3.js';
|
|
2
|
+
import { T as Trigger, M as Message } from './Data-c8093b5a.js';
|
|
3
3
|
import './GoogleFont-8474516b.js';
|
|
4
4
|
|
|
5
5
|
const styleCss = ".sc-smoothly-trigger-sink-h{display:block}[hidden].sc-smoothly-trigger-sink-h{display:none}";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
2
|
-
import { M as Message, T as Trigger } from './Data-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-258984d3.js';
|
|
2
|
+
import { M as Message, T as Trigger } from './Data-c8093b5a.js';
|
|
3
3
|
import './GoogleFont-8474516b.js';
|
|
4
4
|
|
|
5
5
|
const styleCss = ".sc-smoothly-trigger-source-h{display:block}[hidden].sc-smoothly-trigger-source-h{display:none}";
|
package/dist/esm/smoothly.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-258984d3.js';
|
|
2
|
+
export { s as setNonce } from './index-258984d3.js';
|
|
3
|
+
import './Observers-5f08e828.js';
|
|
3
4
|
|
|
4
5
|
/*
|
|
5
|
-
Stencil Client Patch Browser v2.22.
|
|
6
|
+
Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
6
7
|
*/
|
|
7
8
|
const patchBrowser = () => {
|
|
8
9
|
const importMeta = import.meta.url;
|
|
@@ -14,7 +15,7 @@ const patchBrowser = () => {
|
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
patchBrowser().then(options => {
|
|
17
|
-
return bootstrapLazy(JSON.parse("[[\"smoothly-accordion_66\",[[0,\"smoothly-app-demo\",{\"baseUrl\":[1,\"base-url\"]}],[0,\"smoothly-input-demo\",null,[[0,\"selectionChanged\",\"handleSelectionChanged\"]]],[2,\"smoothly-table-demo\"],[0,\"smoothly-display-demo\"],[4,\"smoothly-app\",{\"label\":[1],\"color\":[1],\"menuOpen\":[1540,\"menu-open\"],\"selected\":[32]},[[8,\"popstate\",\"locationChangeHandler\"],[0,\"smoothlyRoomSelected\",\"roomSelectedHandler\"],[0,\"smoothlyRoomLoaded\",\"roomLoadedHandler\"],[8,\"click\",\"clickHandler\"]]],[0,\"smoothly-button-demo\"],[0,\"smoothly-dialog-demo\"],[2,\"smoothly-select-demo\"],[6,\"smoothly-app-room\",{\"label\":[513],\"icon\":[513],\"path\":[1],\"to\":[1],\"selected\":[1540],\"getContent\":[64],\"setSelected\":[64]}],[2,\"smoothly-icon-demo\"],[2,\"smoothly-picker-demo\",{\"data\":[32],\"change\":[32]},[[0,\"smoothlyFormSubmit\",\"submitHandler\"]]],[2,\"smoothly-table-demo-filtered\",{\"criteria\":[32],\"data\":[32],\"selector\":[32]},[[0,\"filters\",\"onFilterUpdate\"],[2,\"smoothlyInput\",\"smoothlyInputHandler\"]]],[2,\"smoothly-table-testing\",{\"counter\":[32]}],[6,\"smoothly-input-date\",{\"color\":[1537],\"looks\":[1537],\"name\":[513],\"value\":[1025],\"open\":[1028],\"max\":[1025],\"min\":[1025],\"showLabel\":[516,\"show-label\"],\"disabled\":[1028],\"clear\":[64]},[[0,\"smoothlyInput\",\"smoothlyInputHandler\"],[0,\"smoothlyInputLooks\",\"smoothlyInputLooksHandler\"],[0,\"dateSet\",\"dateSetHandler\"]]],[2,\"smoothly-input-date-range\",{\"color\":[1537],\"looks\":[1537],\"name\":[513],\"value\":[1025],\"start\":[1025],\"end\":[1025],\"max\":[1025],\"min\":[1025],\"open\":[1028],\"showLabel\":[516,\"show-label\"],\"labelStart\":[1,\"label-start\"],\"labelEnd\":[1,\"label-end\"],\"clear\":[64]},[[0,\"smoothlyInput\",\"smoothlyInputHandler\"],[0,\"smoothlyInputLooks\",\"smoothlyInputLooksHandler\"],[0,\"startChanged\",\"onStartChanged\"],[0,\"endChanged\",\"onEndChanged\"],[0,\"dateRangeSet\",\"onDateRangeSet\"]]],[6,\"smoothly-notifier\",{\"notices\":[32]},[[0,\"notice\",\"onNotice\"],[0,\"remove\",\"onRemove\"]]],[6,\"smoothly-dialog\",{\"color\":[513],\"open\":[1540],\"closable\":[516],\"header\":[513]},[[0,\"trigger\",\"TriggerListener\"]]],[2,\"smoothly-burger\",{\"visible\":[1540],\"open\":[1540],\"mediaQuery\":[513,\"media-query\"],\"history\":[32]},[[0,\"click\",\"clickHandler\"],[9,\"resize\",\"resizeHandler\"]]],[6,\"smoothly-checkbox\",{\"size\":[1],\"checked\":[1540],\"intermediate\":[1540],\"name\":[1],\"value\":[8],\"disabled\":[516],\"t\":[32],\"toggle\":[64],\"clear\":[64]}],[6,\"smoothly-input-file\",{\"accept\":[1],\"color\":[1537],\"looks\":[1537],\"camera\":[513],\"name\":[513],\"showLabel\":[516,\"show-label\"],\"value\":[1040],\"placeholder\":[1537],\"dragging\":[32],\"clear\":[64]}],[6,\"smoothly-radio-button-item\",{\"value\":[8],\"selected\":[1540],\"color\":[513]}],[6,\"smoothly-summary\",{\"open\":[1540],\"color\":[1],\"fill\":[1],\"size\":[1]}],[1,\"smoothly-toggle-switch\",{\"selected\":[1540],\"disabled\":[516],\"size\":[513],\"name\":[1],\"value\":[8]}],[0,\"smoothly-urlencoded\",{\"data\":[1]}],[6,\"smoothly-accordion\",{\"value\":[1025],\"removeItem\":[64]},[[0,\"smoothlyOpen\",\"handleOpenClose\"],[0,\"smoothlyClose\",\"handleOpenClose\"],[0,\"smoothlyAccordionItemWillLoad\",\"onAccordionItemDidLoad\"]]],[6,\"smoothly-accordion-item\",{\"name\":[1],\"brand\":[1],\"open\":[1540]}],[2,\"smoothly-display\",{\"type\":[1],\"value\":[8],\"currency\":[1],\"country\":[1],\"format\":[16]}],[2,\"smoothly-display-amount\",{\"amount\":[8],\"currency\":[1],\"toInteger\":[4,\"to-integer\"]}],[2,\"smoothly-frame\",{\"url\":[1],\"name\":[1],\"origin\":[1],\"send\":[64]}],[6,\"smoothly-popup\",{\"visible\":[1540],\"direction\":[1537],\"cssVariables\":[32]}],[6,\"smoothly-quiet\",{\"color\":[1]}],[6,\"smoothly-radio\",{\"name\":[1],\"value\":[1],\"checked\":[1540],\"tab\":[2]}],[6,\"smoothly-radio-button\",{\"name\":[1],\"value\":[1032],\"deselectable\":[516],\"decoration\":[513]},[[2,\"radioItemSelectInternal\",\"radioSelectHandler\"]]],[2,\"smoothly-skeleton\",{\"widths\":[16],\"width\":[1025],\"color\":[1],\"period\":[2],\"distance\":[1],\"align\":[513]}],[2,\"smoothly-svg\",{\"url\":[513],\"size\":[513],\"color\":[1]}],[6,\"smoothly-toggle\",{\"selected\":[1540],\"shape\":[513],\"disabled\":[516],\"name\":[1],\"value\":[8]},[[0,\"click\",\"onClick\"]]],[1,\"smoothly-filter\",{\"placeholder\":[1025],\"criteria\":[1040],\"inputValue\":[1032,\"input-value\"],\"expanded\":[32],\"freeSearchValue\":[32],\"clear\":[64]},[[0,\"filter\",\"filterHandler\"]]],[6,\"smoothly-picker\",{\"looks\":[1537],\"name\":[513],\"open\":[1540],\"mutable\":[516],\"multiple\":[516],\"readonly\":[516],\"validator\":[16],\"selected\":[32],\"display\":[32],\"clear\":[64]},[[0,\"smoothlyInputLooks\",\"smoothlyInputLooksHandler\"],[0,\"smoothlyPickerMenuLoaded\",\"menuLoadedHandler\"],[0,\"smoothlyPickerOptionLoaded\",\"optionLoadedHandler\"],[0,\"smoothlyPickerOptionChange\",\"optionChangeHandler\"],[8,\"click\",\"clickHandler\"],[8,\"focusin\",\"focusHandler\"]]],[1,\"smoothly-filter-input\",{\"name\":[513],\"value\":[1025],\"type\":[513],\"required\":[1540],\"minLength\":[2,\"min-length\"],\"showLabel\":[516,\"show-label\"],\"maxLength\":[2,\"max-length\"],\"autocomplete\":[4],\"pattern\":[16],\"placeholder\":[1],\"disabled\":[4],\"readonly\":[516],\"currency\":[513],\"comparison\":[1],\"criteria\":[32],\"clear\":[64]}],[2,\"smoothly-back-to-top\",{\"opacity\":[1],\"bottom\":[1],\"right\":[1],\"visible\":[32]}],[6,\"smoothly-input-clear\",{\"color\":[513],\"expand\":[513],\"fill\":[513],\"disabled\":[1540],\"size\":[513],\"shape\":[513],\"display\":[1540],\"type\":[513]},[[0,\"click\",\"clickHandler\"]]],[6,\"smoothly-tab\",{\"label\":[1],\"open\":[1540]},[[0,\"click\",\"onClick\"]]],[6,\"smoothly-tab-switch\",{\"selectedElement\":[32]},[[0,\"expansionOpen\",\"openChanged\"]]],[6,\"smoothly-table-expandable-row\",{\"align\":[1],\"open\":[1540],\"allowSpotlight\":[32],\"spotlight\":[32]},[[0,\"smoothlyTableLoad\",\"handleTableLoaded\"]]],[0,\"smoothly-tuple\",{\"tuple\":[16]}],[6,\"smoothly-picker-menu\",{\"looks\":[1],\"multiple\":[516],\"mutable\":[516],\"readonly\":[516],\"validator\":[16],\"backend\":[32],\"options\":[32],\"created\":[32],\"search\":[32],\"valid\":[32],\"display\":[32]},[[0,\"smoothlyPickerOptionLoad\",\"optionLoadHandler\"],[0,\"smoothlyPickerOptionLoaded\",\"optionLoadedHandler\"],[0,\"smoothlyPickerOptionChange\",\"optionChangeHandler\"],[0,\"smoothlySlotEmpty\",\"emptyDisplayHandler\"]]],[2,\"smoothly-calendar\",{\"month\":[1025],\"value\":[1025],\"start\":[1025],\"end\":[1025],\"max\":[1025],\"min\":[1025],\"doubleInput\":[516,\"double-input\"],\"firstSelected\":[32]}],[6,\"smoothly-table-cell\"],[6,\"smoothly-table-expandable-cell\",{\"align\":[1],\"open\":[1540],\"allowSpotlight\":[32],\"spotlight\":[32]},[[0,\"click\",\"onClick\"],[0,\"smoothlyTableLoad\",\"handleTableLoaded\"]]],[6,\"smoothly-table\",{\"root\":[1540],\"align\":[513],\"open\":[1540]},[[0,\"smoothlyExpandableLoad\",\"handleExpandableLoaded\"],[0,\"smoothlyExpandableChange\",\"handleExpandableState\"],[0,\"smoothlySpotlightChange\",\"handleSpotlightState\"],[0,\"smoothlyNestedTable\",\"handleNestedTable\"],[0,\"smoothlyExpansionLoad\",\"handleEvents\"],[0,\"smoothlyExpansionOpen\",\"handleEvents\"]]],[6,\"smoothly-table-header\",{\"name\":[1]}],[6,\"smoothly-table-row\",{\"open\":[1540]},[[0,\"smoothlyExpansionLoad\",\"onExpansionLoad\"],[0,\"smoothlyExpandableChange\",\"onExpansionChange\"],[0,\"smoothlyExpansionOpen\",\"onExpansionOpen\"]]],[2,\"smoothly-input-month\",{\"value\":[1025]}],[1,\"smoothly-picker-option\",{\"selected\":[1540],\"visible\":[1540],\"value\":[1032],\"search\":[1040],\"readonly\":[32],\"slotted\":[32],\"clickHandler\":[64]}],[6,\"smoothly-slot-elements\",{\"clone\":[4],\"nodes\":[1040]}],[6,\"smoothly-submit\",{\"color\":[513],\"expand\":[513],\"fill\":[513],\"disabled\":[516],\"type\":[513],\"size\":[513],\"shape\":[513],\"prevent\":[4]},[[0,\"click\",\"clickHandler\"]]],[6,\"smoothly-input-select\",{\"name\":[1],\"color\":[1537],\"looks\":[1537],\"initialPrompt\":[1,\"initial-prompt\"],\"opened\":[32],\"selectedElement\":[32],\"missing\":[32],\"filter\":[32],\"reset\":[64]},[[0,\"click\",\"onClick\"],[0,\"itemSelected\",\"onItemSelected\"],[0,\"keydown\",\"onKeyDown\"]]],[6,\"smoothly-item\",{\"value\":[8],\"selected\":[1540],\"marked\":[1540],\"filter\":[64]},[[0,\"click\",\"onClick\"]]],[6,\"smoothly-slotted-elements\",{\"clone\":[4]}],[4,\"smoothly-form\",{\"color\":[1537],\"value\":[1040],\"looks\":[513],\"name\":[1],\"method\":[1],\"action\":[1],\"processing\":[1540],\"prevent\":[4],\"changed\":[1540],\"notice\":[32],\"submit\":[64],\"clear\":[64]},[[0,\"smoothlyInputLooks\",\"smoothlyInputLooksHandler\"],[0,\"smoothlyInput\",\"smoothlyInputHandler\"],[0,\"smoothlySubmit\",\"smoothlySubmitHandler\"],[0,\"smoothlyInputLoad\",\"SmoothlyInputLoadHandler\"]]],[6,\"smoothly-button\",{\"color\":[513],\"expand\":[513],\"fill\":[513],\"disabled\":[516],\"type\":[513],\"size\":[513],\"shape\":[513],\"link\":[1],\"download\":[4]}],[2,\"smoothly-spinner\",{\"active\":[516],\"size\":[513]}],[2,\"smoothly-notification\",{\"notice\":[16],\"closable\":[4],\"icon\":[4],\"tick\":[32]},[[0,\"trigger\",\"onTrigger\"]]],[6,\"smoothly-trigger\",{\"color\":[513],\"fill\":[513],\"disabled\":[516],\"type\":[513],\"name\":[1],\"value\":[8]},[[0,\"click\",\"onClick\"]]],[6,\"smoothly-input\",{\"color\":[1537],\"looks\":[1537],\"name\":[513],\"value\":[1032],\"type\":[513],\"required\":[1540],\"minLength\":[1026,\"min-length\"],\"showLabel\":[516,\"show-label\"],\"maxLength\":[1026,\"max-length\"],\"autocomplete\":[1028],\"pattern\":[1040],\"placeholder\":[1537],\"disabled\":[1028],\"readonly\":[1540],\"currency\":[513],\"changed\":[1540],\"initialValue\":[32],\"clear\":[64],\"getFormData\":[64],\"setKeepFocusOnReRender\":[64],\"setSelectionRange\":[64]},[[0,\"smoothlyInputLoad\",\"SmoothlyInputLoadHandler\"]]],[2,\"smoothly-icon\",{\"color\":[513],\"fill\":[513],\"name\":[513],\"size\":[513],\"toolTip\":[1,\"tool-tip\"],\"document\":[32]}]]],[\"smoothly-addresses\",[[2,\"smoothly-addresses\",{\"value\":[16],\"editable\":[16]}]]],[\"smoothly-color\",[[6,\"smoothly-color\",{\"color\":[513]}]]],[\"smoothly-country\",[[2,\"smoothly-country\",{\"value\":[1],\"text\":[1],\"language\":[32]}]]],[\"smoothly-display-date-time\",[[2,\"smoothly-display-date-time\",{\"datetime\":[1]}]]],[\"smoothly-google-font\",[[2,\"smoothly-google-font\",{\"value\":[1]}]]],[\"smoothly-radio-group\",[[4,\"smoothly-radio-group\",{\"orientation\":[513]}]]],[\"smoothly-reorder\",[[0,\"smoothly-reorder\"]]],[\"smoothly-trigger-sink\",[[6,\"smoothly-trigger-sink\",{\"context\":[16],\"destination\":[1],\"filter\":[1]},[[0,\"trigger\",\"TriggerListener\"]]]]],[\"smoothly-trigger-source\",[[6,\"smoothly-trigger-source\",{\"listen\":[1]}]]],[\"smoothly-address-display\",[[2,\"smoothly-address-display\",{\"value\":[16],\"editable\":[4]}]]],[\"smoothly-address\",[[2,\"smoothly-address\",{\"value\":[16],\"editable\":[4]}]]]]"), options);
|
|
18
|
+
return bootstrapLazy(JSON.parse("[[\"smoothly-addresses\",[[2,\"smoothly-addresses\",{\"value\":[16],\"editable\":[16]}]]],[\"smoothly-checkbox\",[[6,\"smoothly-checkbox\",{\"size\":[1],\"checked\":[1540],\"intermediate\":[1540],\"unavailable\":[516],\"disabled\":[516],\"name\":[1],\"value\":[8],\"t\":[32],\"toggle\":[64],\"clear\":[64]}]]],[\"smoothly-accordion\",[[6,\"smoothly-accordion\",{\"value\":[1025],\"removeItem\":[64]},[[0,\"smoothlyOpen\",\"handleOpenClose\"],[0,\"smoothlyClose\",\"handleOpenClose\"],[0,\"smoothlyAccordionItemWillLoad\",\"onAccordionItemDidLoad\"]]]]],[\"smoothly-accordion-item\",[[6,\"smoothly-accordion-item\",{\"name\":[1],\"brand\":[1],\"open\":[1540]}]]],[\"smoothly-color\",[[6,\"smoothly-color\",{\"color\":[513]}]]],[\"smoothly-country\",[[2,\"smoothly-country\",{\"value\":[1],\"text\":[1],\"language\":[32]}]]],[\"smoothly-display-date-time\",[[2,\"smoothly-display-date-time\",{\"datetime\":[1]}]]],[\"smoothly-google-font\",[[2,\"smoothly-google-font\",{\"value\":[1]}]]],[\"smoothly-reorder\",[[0,\"smoothly-reorder\"]]],[\"smoothly-trigger-sink\",[[6,\"smoothly-trigger-sink\",{\"context\":[16],\"destination\":[1],\"filter\":[1]},[[0,\"trigger\",\"TriggerListener\"]]]]],[\"smoothly-trigger-source\",[[6,\"smoothly-trigger-source\",{\"listen\":[1]}]]],[\"smoothly-app_80\",[[0,\"smoothly-app-demo\",{\"baseUrl\":[1,\"base-url\"]}],[0,\"smoothly-input-demo\",{\"duration\":[32]}],[2,\"smoothly-table-demo\"],[0,\"smoothly-display-demo\"],[0,\"smoothly-button-demo\"],[4,\"smoothly-app\",{\"label\":[1],\"color\":[1],\"home\":[1],\"menuOpen\":[1540,\"menu-open\"],\"selected\":[32],\"selectRoom\":[64]},[[8,\"popstate\",\"locationChangeHandler\"],[0,\"smoothlyRoomSelected\",\"roomSelectedHandler\"],[0,\"smoothlyRoomLoaded\",\"roomLoadedHandler\"],[8,\"click\",\"clickHandler\"]]],[0,\"smoothly-dialog-demo\"],[6,\"smoothly-app-room\",{\"label\":[513],\"icon\":[513],\"disabled\":[516],\"path\":[1],\"to\":[1],\"selected\":[1540],\"content\":[16],\"getContent\":[64],\"setSelected\":[64]}],[6,\"smoothly-theme-picker\",{\"element\":[1]}],[2,\"smoothly-select-demo\"],[2,\"smoothly-theme-colors\"],[2,\"smoothly-icon-demo\"],[2,\"smoothly-table-demo-filtered\",{\"criteria\":[32],\"cats\":[32],\"selector\":[32]},[[0,\"smoothlyFilter\",\"onFilterUpdate\"],[0,\"smoothlyInput\",\"smoothlyInputHandler\"]]],[2,\"smoothly-table-testing\",{\"counter\":[32]}],[2,\"smoothly-picker-demo\",{\"counter\":[32],\"data\":[32],\"change\":[32]},[[0,\"smoothlyFormSubmit\",\"submitHandler\"]]],[6,\"smoothly-input-date\",{\"color\":[1537],\"looks\":[1537],\"name\":[513],\"value\":[1025],\"open\":[1028],\"max\":[1025],\"min\":[1025],\"showLabel\":[516,\"show-label\"],\"disabled\":[1028],\"clear\":[64]},[[0,\"smoothlyInput\",\"smoothlyInputHandler\"],[0,\"smoothlyInputLooks\",\"smoothlyInputLooksHandler\"],[0,\"smoothlyDateSet\",\"dateSetHandler\"]]],[2,\"smoothly-input-date-range\",{\"color\":[1537],\"looks\":[1537],\"name\":[513],\"value\":[1025],\"start\":[1025],\"end\":[1025],\"max\":[1025],\"min\":[1025],\"open\":[1028],\"showLabel\":[516,\"show-label\"],\"labelStart\":[1,\"label-start\"],\"labelEnd\":[1,\"label-end\"],\"clear\":[64]},[[0,\"smoothlyInput\",\"smoothlyInputHandler\"],[0,\"smoothlyInputLooks\",\"smoothlyInputLooksHandler\"],[0,\"smoothlyStartChange\",\"onStartChanged\"],[0,\"smoothlyEndChange\",\"onEndChanged\"],[0,\"smoothlyDateRangeSet\",\"onDateRangeSet\"]]],[6,\"smoothly-input-submit\",{\"delete\":[4],\"color\":[1],\"expand\":[513],\"fill\":[513],\"disabled\":[1540],\"display\":[1540],\"shape\":[513],\"type\":[513],\"size\":[513],\"toolTip\":[1,\"tool-tip\"]},[[0,\"click\",\"clickHandler\"]]],[6,\"smoothly-notifier\",{\"notices\":[32]},[[0,\"notice\",\"onNotice\"],[0,\"remove\",\"onRemove\"]]],[6,\"smoothly-dialog\",{\"color\":[513],\"open\":[1540],\"closable\":[516],\"header\":[513]},[[0,\"trigger\",\"TriggerListener\"]]],[2,\"smoothly-input-color\",{\"value\":[1025],\"looks\":[1537],\"name\":[1],\"clear\":[64]},[[0,\"smoothlyInput\",\"smoothlyInputHandler\"],[0,\"smoothlyInputLooks\",\"smoothlyInputLooksHandler\"],[0,\"smoothlyInputLoad\",\"smoothlyInputLoadHandler\"]]],[2,\"smoothly-burger\",{\"visible\":[1540],\"open\":[1540],\"mediaQuery\":[513,\"media-query\"],\"history\":[32]},[[0,\"click\",\"clickHandler\"],[9,\"resize\",\"resizeHandler\"]]],[6,\"smoothly-input-checkbox\",{\"name\":[1],\"changed\":[1028],\"readonly\":[1540],\"checked\":[1028],\"value\":[4],\"looks\":[1537],\"disabled\":[516],\"clear\":[64],\"listen\":[64],\"edit\":[64],\"reset\":[64],\"setInitialValue\":[64]}],[6,\"smoothly-input-edit\",{\"color\":[513],\"expand\":[513],\"fill\":[513],\"disabled\":[1540],\"display\":[1540],\"shape\":[513],\"type\":[513],\"size\":[513],\"toolTip\":[1,\"tool-tip\"]},[[0,\"click\",\"clickHandler\"]]],[6,\"smoothly-input-file\",{\"accept\":[1],\"color\":[1537],\"looks\":[1537],\"camera\":[513],\"name\":[513],\"showLabel\":[516,\"show-label\"],\"value\":[1040],\"placeholder\":[1537],\"dragging\":[32],\"clear\":[64]}],[6,\"smoothly-input-radio-item\",{\"value\":[1032],\"selected\":[1028],\"looks\":[1537],\"name\":[1025]}],[6,\"smoothly-input-reset\",{\"color\":[513],\"expand\":[513],\"fill\":[513],\"disabled\":[1540],\"size\":[513],\"shape\":[513],\"display\":[1540],\"type\":[513],\"tooltip\":[1]},[[0,\"click\",\"clickHandler\"]]],[6,\"smoothly-summary\",{\"open\":[1540],\"color\":[1],\"fill\":[1],\"size\":[1]}],[2,\"smoothly-theme-color\",{\"color\":[1]}],[1,\"smoothly-toggle-switch\",{\"checkmark\":[516],\"selected\":[1540],\"disabled\":[516],\"size\":[513],\"color\":[513],\"fill\":[513]}],[0,\"smoothly-urlencoded\",{\"data\":[1]}],[2,\"smoothly-display-amount\",{\"amount\":[8],\"currency\":[1],\"toInteger\":[4,\"to-integer\"]}],[2,\"smoothly-frame\",{\"url\":[1],\"name\":[1],\"origin\":[1],\"send\":[64]}],[6,\"smoothly-input-radio\",{\"changed\":[1028],\"value\":[1032],\"looks\":[1537],\"clearable\":[4],\"readonly\":[1540],\"name\":[1],\"listen\":[64],\"clear\":[64],\"edit\":[64],\"reset\":[64],\"setInitialValue\":[64]},[[0,\"smoothlyRadioButtonRegister\",\"handleRegister\"],[0,\"smoothlyInputLoad\",\"SmoothlyInputLoadHandler\"],[0,\"smoothlySelect\",\"smoothlyRadioInputHandler\"]]],[6,\"smoothly-input-range\",{\"value\":[1026],\"looks\":[1537],\"changed\":[1028],\"readonly\":[1540],\"min\":[2],\"max\":[2],\"name\":[1],\"labelText\":[1,\"label-text\"],\"step\":[8],\"outputSide\":[1,\"output-side\"],\"clear\":[64],\"listen\":[64],\"edit\":[64],\"reset\":[64],\"setInitialValue\":[64]}],[6,\"smoothly-label\",{\"hue\":[2],\"description\":[1],\"shape\":[513]}],[6,\"smoothly-popup\",{\"visible\":[1540],\"direction\":[1537],\"cssVariables\":[32]}],[6,\"smoothly-quiet\",{\"color\":[1]}],[2,\"smoothly-skeleton\",{\"widths\":[16],\"width\":[1025],\"color\":[1],\"period\":[2],\"distance\":[1],\"align\":[513]}],[2,\"smoothly-svg\",{\"url\":[513],\"size\":[513],\"color\":[1]}],[6,\"smoothly-toggle\",{\"selected\":[1540],\"shape\":[513],\"disabled\":[516],\"name\":[1],\"value\":[8]},[[0,\"click\",\"onClick\"]]],[6,\"smoothly-filter-picker\",{\"label\":[1],\"property\":[1],\"multiple\":[4],\"type\":[1]},[[0,\"smoothlyPickerOptionChange\",\"optionChangeHandler\"]]],[6,\"smoothly-filter\",{\"detailChildren\":[32],\"criteria\":[32],\"expanded\":[32]},[[0,\"smoothlyFilterUpdate\",\"updateHandler\"],[0,\"smoothlyFilterManipulate\",\"manipulateHandler\"],[0,\"smoothlyFilterField\",\"filterFieldHandler\"]]],[6,\"smoothly-filter-input\",{\"property\":[1],\"placeholder\":[1],\"needle\":[32]}],[2,\"smoothly-notification\",{\"notice\":[16],\"closable\":[4],\"icon\":[4],\"tick\":[32]},[[0,\"trigger\",\"onTrigger\"]]],[2,\"smoothly-back-to-top\",{\"opacity\":[1],\"bottom\":[1],\"right\":[1],\"visible\":[32]}],[2,\"smoothly-filter-toggle\",{\"icon\":[1],\"properties\":[16],\"toolTip\":[1,\"tool-tip\"],\"not\":[4],\"flip\":[516],\"active\":[1028]}],[6,\"smoothly-lazy\",{\"show\":[1028],\"content\":[16]}],[6,\"smoothly-input-clear\",{\"color\":[513],\"expand\":[513],\"fill\":[513],\"disabled\":[1540],\"size\":[513],\"shape\":[513],\"display\":[1540],\"type\":[513]},[[0,\"click\",\"clickHandler\"]]],[6,\"smoothly-tab\",{\"label\":[1],\"open\":[1540]},[[0,\"click\",\"onClick\"]]],[6,\"smoothly-tab-switch\",{\"selectedElement\":[32]},[[0,\"expansionOpen\",\"openChanged\"]]],[6,\"smoothly-table-expandable-row\",{\"open\":[1540],\"allowSpotlight\":[32],\"spotlight\":[32]},[[0,\"smoothlyTableLoad\",\"handleTableLoaded\"]]],[2,\"smoothly-theme-color-variant\",{\"color\":[513],\"variant\":[513]}],[0,\"smoothly-tuple\",{\"tuple\":[16]}],[2,\"smoothly-calendar\",{\"month\":[1025],\"value\":[1025],\"start\":[1025],\"end\":[1025],\"max\":[1025],\"min\":[1025],\"doubleInput\":[516,\"double-input\"],\"firstSelected\":[32]}],[6,\"smoothly-button-confirm\",{\"color\":[1],\"name\":[513],\"doubleClickTime\":[2,\"double-click-time\"],\"expand\":[513],\"fill\":[1],\"disabled\":[516],\"shape\":[1],\"type\":[1],\"size\":[1],\"clickTimeStamp\":[32]}],[2,\"smoothly-filter-field\",{\"criteria\":[8],\"clear\":[64]}],[6,\"smoothly-table-cell\"],[6,\"smoothly-table-expandable-cell\",{\"open\":[1540],\"allowSpotlight\":[32],\"spotlight\":[32]},[[0,\"click\",\"onClick\"],[0,\"smoothlyTableLoad\",\"handleTableLoaded\"]]],[2,\"smoothly-load-more\",{\"offset\":[1],\"name\":[1],\"multiple\":[4]}],[6,\"smoothly-table\",{\"root\":[1540],\"color\":[1537],\"align\":[513],\"open\":[1540]},[[0,\"smoothlyExpandableLoad\",\"handleExpandableLoaded\"],[0,\"smoothlyExpandableChange\",\"handleExpandableState\"],[0,\"smoothlySpotlightChange\",\"handleSpotlightState\"],[0,\"smoothlyNestedTable\",\"handleNestedTable\"],[0,\"smoothlyExpansionLoad\",\"handleEvents\"],[0,\"smoothlyExpansionOpen\",\"handleEvents\"]]],[6,\"smoothly-table-footer\"],[6,\"smoothly-table-header\",{\"name\":[1]}],[6,\"smoothly-table-row\",{\"open\":[1540]},[[0,\"smoothlyExpansionLoad\",\"onExpansionLoad\"],[0,\"smoothlyExpandableChange\",\"onExpansionChange\"],[0,\"smoothlyExpansionOpen\",\"onExpansionOpen\"]]],[2,\"smoothly-input-month\",{\"value\":[1025]}],[2,\"smoothly-display\",{\"type\":[1],\"value\":[8],\"currency\":[1],\"country\":[1],\"format\":[16]}],[6,\"smoothly-submit\",{\"color\":[513],\"expand\":[513],\"fill\":[513],\"disabled\":[516],\"type\":[513],\"size\":[513],\"shape\":[513],\"prevent\":[4]},[[0,\"click\",\"clickHandler\"]]],[6,\"smoothly-picker\",{\"looks\":[1537],\"name\":[513],\"changed\":[1028],\"open\":[1540],\"mutable\":[516],\"multiple\":[516],\"readonly\":[1540],\"validator\":[16],\"selected\":[32],\"display\":[32],\"clear\":[64],\"listen\":[64],\"edit\":[64],\"reset\":[64],\"setInitialValue\":[64]},[[0,\"smoothlyInputLooks\",\"smoothlyInputLooksHandler\"],[0,\"smoothlyPickerMenuLoaded\",\"menuLoadedHandler\"],[0,\"smoothlyPickerOptionLoaded\",\"optionLoadedHandler\"],[0,\"smoothlyPickerOptionChange\",\"optionChangeHandler\"],[8,\"click\",\"clickHandler\"],[8,\"focusin\",\"focusHandler\"]]],[4,\"smoothly-form\",{\"color\":[1537],\"value\":[1040],\"type\":[1],\"readonly\":[1028],\"looks\":[513],\"name\":[1],\"action\":[1],\"processing\":[1028],\"prevent\":[4],\"changed\":[1028],\"listen\":[64],\"submit\":[64],\"clear\":[64],\"edit\":[64],\"reset\":[64],\"setInitialValue\":[64]},[[0,\"smoothlyInputLooks\",\"smoothlyInputLooksHandler\"],[0,\"smoothlyInput\",\"smoothlyInputHandler\"],[0,\"smoothlyInputLoad\",\"smoothlyInputLoadHandler\"],[0,\"smoothlyFormDisable\",\"smoothlyFormDisableHandler\"]]],[6,\"smoothly-trigger\",{\"color\":[513],\"fill\":[513],\"disabled\":[516],\"type\":[513],\"name\":[1],\"value\":[8]},[[0,\"click\",\"onClick\"]]],[6,\"smoothly-picker-menu\",{\"looks\":[1],\"open\":[516],\"multiple\":[516],\"mutable\":[516],\"readonly\":[516],\"validator\":[16],\"backend\":[32],\"options\":[32],\"created\":[32],\"search\":[32],\"valid\":[32],\"display\":[32],\"flip\":[32],\"flipChecked\":[32]},[[9,\"scroll\",\"scrollHandler\"],[0,\"smoothlyPickerOptionLoad\",\"optionLoadHandler\"],[0,\"smoothlyPickerOptionLoaded\",\"optionLoadedHandler\"],[0,\"smoothlyPickerOptionChange\",\"optionChangeHandler\"],[0,\"smoothlySlotEmpty\",\"emptyDisplayHandler\"]]],[6,\"smoothly-input-select\",{\"name\":[1],\"color\":[1537],\"looks\":[1537],\"showSelected\":[1540,\"show-selected\"],\"readonly\":[1540],\"multiple\":[4],\"clearable\":[4],\"changed\":[1028],\"placeholder\":[520],\"menuHeight\":[1,\"menu-height\"],\"open\":[32],\"selected\":[32],\"filter\":[32],\"listen\":[64],\"reset\":[64],\"clear\":[64],\"edit\":[64],\"setInitialValue\":[64]},[[0,\"smoothlyInputLoad\",\"smoothlyInputLoadHandler\"],[8,\"click\",\"onWindowClick\"],[0,\"smoothlyItemSelect\",\"onItemSelect\"],[0,\"keydown\",\"onKeyDown\"]]],[6,\"smoothly-button\",{\"color\":[513],\"expand\":[513],\"fill\":[513],\"disabled\":[516],\"type\":[513],\"size\":[513],\"shape\":[513],\"link\":[1]}],[1,\"smoothly-picker-option\",{\"selected\":[1540],\"visible\":[1540],\"value\":[1032],\"search\":[1040],\"position\":[514],\"required\":[516],\"readonly\":[32],\"slotted\":[32],\"clickHandler\":[64]}],[6,\"smoothly-item\",{\"value\":[8],\"selected\":[1540],\"marked\":[1540],\"selectable\":[4],\"filter\":[64]},[[0,\"click\",\"onClick\"]]],[6,\"smoothly-slot-elements\",{\"clone\":[4],\"nodes\":[1040]}],[2,\"smoothly-spinner\",{\"active\":[516],\"size\":[513]}],[6,\"smoothly-slotted-elements\",{\"clone\":[4]}],[6,\"smoothly-input\",{\"color\":[1537],\"delay\":[2],\"looks\":[1537],\"name\":[513],\"value\":[1032],\"type\":[513],\"required\":[516],\"showLabel\":[516,\"show-label\"],\"autocomplete\":[4],\"placeholder\":[513],\"disabled\":[4],\"readonly\":[1540],\"currency\":[513],\"changed\":[1028],\"formatter\":[32],\"initialValue\":[32],\"listen\":[64],\"clear\":[64],\"edit\":[64],\"reset\":[64],\"setInitialValue\":[64],\"getFormData\":[64],\"setKeepFocusOnReRender\":[64],\"setSelectionRange\":[64]},[[0,\"smoothlyInputLoad\",\"SmoothlyInputLoadHandler\"]]],[2,\"smoothly-icon\",{\"color\":[513],\"fill\":[513],\"name\":[513],\"size\":[513],\"rotate\":[514],\"flip\":[513],\"toolTip\":[1,\"tool-tip\"],\"document\":[32]}]]],[\"smoothly-address-display\",[[2,\"smoothly-address-display\",{\"value\":[16],\"editable\":[4]}]]],[\"smoothly-address\",[[2,\"smoothly-address\",{\"value\":[16],\"editable\":[4]}]]]]"), options);
|
|
18
19
|
});
|
|
19
20
|
|
|
20
21
|
//# sourceMappingURL=smoothly.js.map
|
package/dist/esm/smoothly.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"smoothly.js","mappings":"
|
|
1
|
+
{"file":"smoothly.js","mappings":";;;;AAAA;AACA;AACA;AAgBA,MAAM,YAAY,GAAG,MAAM;AA6B3B,IAAI,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AACvC,IAAI,MAAM,IAAI,GAAyD,EAAE,CAAC;AAe1E,IAAI,IAAuB,UAAU,KAAK,EAAE,EAAE;AAC9C,QAAQ,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AAC1D,KAWK;AACL,IAAI,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;;AC1ED,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,IAAI;AAE/B,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC","names":[],"sources":["./node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\n/**\n * Helper method for querying a `meta` tag that contains a nonce value\n * out of a DOM's head.\n *\n * @param doc The DOM containing the `head` to query against\n * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag\n * exists or the tag has no content.\n */\nfunction queryNonceMetaTagContent(doc) {\n var _a, _b, _c;\n return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name=\"csp-nonce\"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;\n}\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cssVarShim) {\n // shim css vars\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n var _a;\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n // Apply CSP nonce to the script tag if it exists\n const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);\n if (nonce != null) {\n script.setAttribute('nonce', nonce);\n }\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{L as e,C as f,M as r,T as n,I as t,D as a}from"./p-2e986022.js";import{G as i}from"./p-bd478a53.js";import{N as o,r as d}from"./p-c833c402.js";class l{constructor(...f){this.listenable=new e;this.client=f.length==1?f[0]:undefined}}var u;(function(e){function f(e){const f=typeof e=="string"&&e.match(/[0-9a-fA-F]/g)||undefined;return typeof e=="string"&&e.length>3&&e[0]=="#"&&((f===null||f===void 0?void 0:f.length)==3||(f===null||f===void 0?void 0:f.length)==6)}e.is=f})(u||(u={}));var c;(function(e){function f(e){const f=typeof e=="string"&&e.length>11?e.substring(4,e.length-1).split(","):[];return typeof e=="string"&&e.length>11&&e.substr(0,4)=="hsl("&&e.substr(e.length-1,1)==")"&&f.length==3&&f.every(((e,f)=>{var r,n;let t=false;if(f==0)t=!Number.isNaN(e)&&((r=e.match(/[0-9]/g))===null||r===void 0?void 0:r.length)==e.length&&Number(e)>=0&&Number(e)<=360;else{const f=e.substr(0,e.length-1);t=e[e.length-1]=="%"&&!Number.isNaN(f)&&((n=f.match(/[0-9]/g))===null||n===void 0?void 0:n.length)==f.length&&Number(f)>=0&&Number(f)<=100}return t}))}e.is=f})(c||(c={}));const s={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var b;(function(e){e.types=()=>Object.keys(s);function f(f){return typeof f=="string"&&e.types().includes(f.toLowerCase())}e.is=f})(b||(b={}));var g;(function(e){function f(e){const f=typeof e=="string"&&e.length>9?e.substring(4,e.length-1).split(","):[];return typeof e=="string"&&e.length>9&&e.substr(0,4)=="rgb("&&e.substr(e.length-1,1)==")"&&f.length==3&&f.every((e=>{var f;return!Number.isNaN(e)&&((f=e.match(/[0-9]/g))===null||f===void 0?void 0:f.length)==e.length&&Number(e)>=0&&Number(e)<=255}))}e.is=f})(g||(g={}));var m;(function(e){function f(e){const f=typeof e=="string"?e.split(","):[];return f.length==3&&f.every((e=>{var f;return!Number.isNaN(e)&&((f=e.match(/[0-9]/g))===null||f===void 0?void 0:f.length)==e.length&&Number(e)>=0&&Number(e)<=255}))}e.is=f;function r(f){let r;const i=typeof f=="string"?f.replace(/ /g,"").toLowerCase():undefined;if(!i)r=undefined;else if(e.is(i))r=i;else if(u.is(i))r=n(i);else if(g.is(i))r=t(i);else if(b.is(i))r=n(s[i]);else if(c.is(i))r=a(i);return r}e.from=r;function n(e){let f="0,0,0";if(e.length==7)f=`${parseInt(e.substr(1,2),16)},${parseInt(e.substr(3,2),16)},${parseInt(e.substr(5,2),16)}`;else if(e.length==4)f=n(`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`);return f}e.fromHex=n;function t(e){return e.substring(4,e.length-1)}e.fromRgb=t;function a(e){let f="";let r,n,t;let a,o,d;const l=e.substring(4,e.length-1).split(",").map(((e,f)=>Number(f==0?e:e.substr(0,e.length-1))));if(l.length==3){r=l[0]/360;n=l[1]/100;t=l[2]/100;if(n==0)a=o=d=t;else{const e=t<.5?t*(1+n):t+n-t*n;const f=2*t-e;a=i(f,e,r+1/3);o=i(f,e,r);d=i(f,e,r-1/3)}f=`${Math.round(255*a)},${Math.round(255*o)},${Math.round(255*d)}`}return f}e.fromHsl=a;function i(e,f,r){let n=e;if(r<0)r+=1;if(r>1)r-=1;if(r<1/6)n=e+(f-e)*6*r;else if(r<1/2)n=f;else if(r<2/3)n=e+(f-e)*(2/3-r)*6;return n}})(m||(m={}));var p;(function(e){function f(e){return typeof e=="string"&&(m.is(e)||u.is(e)||c.is(e)||b.is(e)||g.is(e))}e.is=f;function r(e){return f(e)?e:undefined}e.from=r;e.Names=s;e.Name=b;e.CommaRgb=m;e.Rgb=g;e.Hex=u;e.Hsl=c})(p||(p={}));function y(e,f){return e.reduce(((e,r)=>typeof f=="object"&&f!=null&&typeof f[r]=="string"?Object.assign(Object.assign({},e),{[r]:f[r]}):e),{})}var h;(function(e){e.types=e;function f(e){let f={};if(typeof e=="object"&&e){f={text:y(["background","color"],e.text),border:y(["background","color","style","radius","width"],e.border),gap:typeof e.gap=="string"?e.gap:undefined,dangerColor:typeof e.dangerColor=="string"?e.dangerColor:typeof e.danger_color=="string"?e.danger_color:undefined,fontFamily:typeof e.fontFamily=="string"?e.fontFamily:typeof e.font_family=="string"?e.font_family:undefined,background:typeof e.background=="string"?e.background:undefined};Object.keys(f).forEach((e=>{var r;if(f[e]==undefined||typeof f[e]=="object"&&f[e]&&Object.keys((r=f[e])!==null&&r!==void 0?r:{}).length==0){delete f[e]}}))}return f}e.from=f;e.Color=p})(h||(h={}));const v=Object.freeze({__proto__:null,get Color(){return f},get GoogleFont(){return i},Message:r,Notice:o,Trigger:n,Listenable:e,get Icon(){return t},StateBase:l,get Data(){return a},redirect:d,get Cosmetic(){return h}});export{v as smoothly};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ClientIdentifier","constructor","value","valueCache","localStorage","getItem","undefined","Identifier","generate","setItem","StateBase","parameters","this","listenable","Listenable","client","length","Hex","is","matchArray","match","Hsl","values","substring","split","substr","every","single","index","result","Number","isNaN","_a","number","_b","Names","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","goldenrod","gold","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavenderblush","lavender","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","Name","types","Object","keys","includes","toLowerCase","Rgb","CommaRgb","from","color","colorWithoutSpace","replace","fromHex","fromRgb","ColorName","fromHsl","hex","parseInt","rgb","hsl","h","s","l","r","g","b","HSL","map","q","p","hue2rgb","Math","round","t","Color","ColorCommaRgb","ColorHex","ColorHsl","ColorRgb","ColorNames","reduce","c","Cosmetic","text","border","gap","dangerColor","danger_color","fontFamily","font_family","background","forEach","key","CosmeticColor"],"sources":["./src/model/ClientIdentifier.ts","./src/model/StateBase.ts","./src/utilities/Cosmetic/Color/Hex.ts","./src/utilities/Cosmetic/Color/Hsl.ts","./src/utilities/Cosmetic/Color/Name.ts","./src/utilities/Cosmetic/Color/Rgb.ts","./src/utilities/Cosmetic/Color/CommaRgb.ts","./src/utilities/Cosmetic/Color/index.ts","./src/utilities/Cosmetic/index.ts"],"sourcesContent":["import { Identifier } from \"authly\"\n\nexport abstract class ClientIdentifier {\n\t// eslint-disable-next-line @typescript-eslint/no-empty-function\n\tprivate constructor() {}\n\tprivate static valueCache?: string\n\tstatic get value(): string {\n\t\tClientIdentifier.valueCache = localStorage.getItem(\"clientIdentifier\") || undefined\n\t\tif (!ClientIdentifier.valueCache) {\n\t\t\tClientIdentifier.valueCache = Identifier.generate(12)\n\t\t\tlocalStorage.setItem(\"clientIdentifier\", ClientIdentifier.valueCache)\n\t\t}\n\t\treturn ClientIdentifier.valueCache\n\t}\n}\n","import { HasListenable, Listenable, WithListenable } from \"./Listenable\"\n\nexport abstract class StateBase<T extends StateBase<any, any>, C = undefined> implements HasListenable<T> {\n\tpublic readonly listenable = new Listenable() as WithListenable<T>\n\tprotected readonly client: C\n\t// 2 different signatures depending on if C i set to a type.\n\tprotected constructor(...parameters: C extends undefined ? [] : [client: C]) {\n\t\tthis.client = parameters.length == 1 ? parameters[0] : (undefined as C)\n\t}\n}\n","/**\n * Hex formated as \"#xxxxxx\" or \"#xxx\" where x is 0-9, or a-f or A-F\n */\nexport type Hex = string\nexport namespace Hex {\n\texport function is(value: any | Hex): value is Hex {\n\t\tconst matchArray = (typeof value == \"string\" && value.match(/[0-9a-fA-F]/g)) || undefined\n\t\treturn (\n\t\t\ttypeof value == \"string\" &&\n\t\t\tvalue.length > 3 &&\n\t\t\tvalue[0] == \"#\" &&\n\t\t\t(matchArray?.length == 3 || matchArray?.length == 6)\n\t\t)\n\t}\n}\n","/**\n * Hsl formated as \"hsl(H,S%,L%)\" with no spaces included\n * \t\twith limit: 0 <= H <= 360\n * \t\twith limit: 0 <= S,L <= 100\n */\nexport type Hsl = string\nexport namespace Hsl {\n\texport function is(value: any | Hsl): value is Hsl {\n\t\tconst values = typeof value == \"string\" && value.length > 11 ? value.substring(4, value.length - 1).split(\",\") : []\n\t\treturn (\n\t\t\ttypeof value == \"string\" &&\n\t\t\tvalue.length > 11 &&\n\t\t\tvalue.substr(0, 4) == \"hsl(\" &&\n\t\t\tvalue.substr(value.length - 1, 1) == \")\" &&\n\t\t\tvalues.length == 3 &&\n\t\t\tvalues.every((single: string, index: number) => {\n\t\t\t\tlet result = false\n\t\t\t\tif (index == 0)\n\t\t\t\t\tresult =\n\t\t\t\t\t\t!Number.isNaN(single) &&\n\t\t\t\t\t\tsingle.match(/[0-9]/g)?.length == single.length &&\n\t\t\t\t\t\tNumber(single) >= 0 &&\n\t\t\t\t\t\tNumber(single) <= 360\n\t\t\t\telse {\n\t\t\t\t\tconst number: string = single.substr(0, single.length - 1)\n\t\t\t\t\tresult =\n\t\t\t\t\t\tsingle[single.length - 1] == \"%\" &&\n\t\t\t\t\t\t!Number.isNaN(number) &&\n\t\t\t\t\t\tnumber.match(/[0-9]/g)?.length == number.length &&\n\t\t\t\t\t\tNumber(number) >= 0 &&\n\t\t\t\t\t\tNumber(number) <= 100\n\t\t\t\t}\n\t\t\t\treturn result\n\t\t\t})\n\t\t)\n\t}\n}\n","export const Names = <const>{\n\taliceblue: \"#f0f8ff\",\n\tantiquewhite: \"#faebd7\",\n\taqua: \"#00ffff\",\n\taquamarine: \"#7fffd4\",\n\tazure: \"#f0ffff\",\n\tbeige: \"#f5f5dc\",\n\tbisque: \"#ffe4c4\",\n\tblack: \"#000000\",\n\tblanchedalmond: \"#ffebcd\",\n\tblue: \"#0000ff\",\n\tblueviolet: \"#8a2be2\",\n\tbrown: \"#a52a2a\",\n\tburlywood: \"#deb887\",\n\tcadetblue: \"#5f9ea0\",\n\tchartreuse: \"#7fff00\",\n\tchocolate: \"#d2691e\",\n\tcoral: \"#ff7f50\",\n\tcornflowerblue: \"#6495ed\",\n\tcornsilk: \"#fff8dc\",\n\tcrimson: \"#dc143c\",\n\tcyan: \"#00ffff\",\n\tdarkblue: \"#00008b\",\n\tdarkcyan: \"#008b8b\",\n\tdarkgoldenrod: \"#b8860b\",\n\tdarkgray: \"#a9a9a9\",\n\tdarkgreen: \"#006400\",\n\tdarkgrey: \"#a9a9a9\",\n\tdarkkhaki: \"#bdb76b\",\n\tdarkmagenta: \"#8b008b\",\n\tdarkolivegreen: \"#556b2f\",\n\tdarkorange: \"#ff8c00\",\n\tdarkorchid: \"#9932cc\",\n\tdarkred: \"#8b0000\",\n\tdarksalmon: \"#e9967a\",\n\tdarkseagreen: \"#8fbc8f\",\n\tdarkslateblue: \"#483d8b\",\n\tdarkslategray: \"#2f4f4f\",\n\tdarkslategrey: \"#2f4f4f\",\n\tdarkturquoise: \"#00ced1\",\n\tdarkviolet: \"#9400d3\",\n\tdeeppink: \"#ff1493\",\n\tdeepskyblue: \"#00bfff\",\n\tdimgray: \"#696969\",\n\tdimgrey: \"#696969\",\n\tdodgerblue: \"#1e90ff\",\n\tfirebrick: \"#b22222\",\n\tfloralwhite: \"#fffaf0\",\n\tforestgreen: \"#228b22\",\n\tfuchsia: \"#ff00ff\",\n\tgainsboro: \"#dcdcdc\",\n\tghostwhite: \"#f8f8ff\",\n\tgoldenrod: \"#daa520\",\n\tgold: \"#ffd700\",\n\tgray: \"#808080\",\n\tgreen: \"#008000\",\n\tgreenyellow: \"#adff2f\",\n\tgrey: \"#808080\",\n\thoneydew: \"#f0fff0\",\n\thotpink: \"#ff69b4\",\n\tindianred: \"#cd5c5c\",\n\tindigo: \"#4b0082\",\n\tivory: \"#fffff0\",\n\tkhaki: \"#f0e68c\",\n\tlavenderblush: \"#fff0f5\",\n\tlavender: \"#e6e6fa\",\n\tlawngreen: \"#7cfc00\",\n\tlemonchiffon: \"#fffacd\",\n\tlightblue: \"#add8e6\",\n\tlightcoral: \"#f08080\",\n\tlightcyan: \"#e0ffff\",\n\tlightgoldenrodyellow: \"#fafad2\",\n\tlightgray: \"#d3d3d3\",\n\tlightgreen: \"#90ee90\",\n\tlightgrey: \"#d3d3d3\",\n\tlightpink: \"#ffb6c1\",\n\tlightsalmon: \"#ffa07a\",\n\tlightseagreen: \"#20b2aa\",\n\tlightskyblue: \"#87cefa\",\n\tlightslategray: \"#778899\",\n\tlightslategrey: \"#778899\",\n\tlightsteelblue: \"#b0c4de\",\n\tlightyellow: \"#ffffe0\",\n\tlime: \"#00ff00\",\n\tlimegreen: \"#32cd32\",\n\tlinen: \"#faf0e6\",\n\tmagenta: \"#ff00ff\",\n\tmaroon: \"#800000\",\n\tmediumaquamarine: \"#66cdaa\",\n\tmediumblue: \"#0000cd\",\n\tmediumorchid: \"#ba55d3\",\n\tmediumpurple: \"#9370db\",\n\tmediumseagreen: \"#3cb371\",\n\tmediumslateblue: \"#7b68ee\",\n\tmediumspringgreen: \"#00fa9a\",\n\tmediumturquoise: \"#48d1cc\",\n\tmediumvioletred: \"#c71585\",\n\tmidnightblue: \"#191970\",\n\tmintcream: \"#f5fffa\",\n\tmistyrose: \"#ffe4e1\",\n\tmoccasin: \"#ffe4b5\",\n\tnavajowhite: \"#ffdead\",\n\tnavy: \"#000080\",\n\toldlace: \"#fdf5e6\",\n\tolive: \"#808000\",\n\tolivedrab: \"#6b8e23\",\n\torange: \"#ffa500\",\n\torangered: \"#ff4500\",\n\torchid: \"#da70d6\",\n\tpalegoldenrod: \"#eee8aa\",\n\tpalegreen: \"#98fb98\",\n\tpaleturquoise: \"#afeeee\",\n\tpalevioletred: \"#db7093\",\n\tpapayawhip: \"#ffefd5\",\n\tpeachpuff: \"#ffdab9\",\n\tperu: \"#cd853f\",\n\tpink: \"#ffc0cb\",\n\tplum: \"#dda0dd\",\n\tpowderblue: \"#b0e0e6\",\n\tpurple: \"#800080\",\n\trebeccapurple: \"#663399\",\n\tred: \"#ff0000\",\n\trosybrown: \"#bc8f8f\",\n\troyalblue: \"#4169e1\",\n\tsaddlebrown: \"#8b4513\",\n\tsalmon: \"#fa8072\",\n\tsandybrown: \"#f4a460\",\n\tseagreen: \"#2e8b57\",\n\tseashell: \"#fff5ee\",\n\tsienna: \"#a0522d\",\n\tsilver: \"#c0c0c0\",\n\tskyblue: \"#87ceeb\",\n\tslateblue: \"#6a5acd\",\n\tslategray: \"#708090\",\n\tslategrey: \"#708090\",\n\tsnow: \"#fffafa\",\n\tspringgreen: \"#00ff7f\",\n\tsteelblue: \"#4682b4\",\n\ttan: \"#d2b48c\",\n\tteal: \"#008080\",\n\tthistle: \"#d8bfd8\",\n\ttomato: \"#ff6347\",\n\tturquoise: \"#40e0d0\",\n\tviolet: \"#ee82ee\",\n\twheat: \"#f5deb3\",\n\twhite: \"#ffffff\",\n\twhitesmoke: \"#f5f5f5\",\n\tyellow: \"#ffff00\",\n\tyellowgreen: \"#9acd32\",\n}\nexport type Name = keyof typeof Names\nexport namespace Name {\n\texport const types = () => Object.keys(Names)\n\texport function is(value: any | Name): value is Name {\n\t\treturn typeof value == \"string\" && types().includes(value.toLowerCase())\n\t}\n}\n","/**\n * Formated as \"rgb(r,g,b)\", with no spaces included\n */\nexport type Rgb = string\nexport namespace Rgb {\n\texport function is(value: any | Rgb): value is Rgb {\n\t\tconst values = typeof value == \"string\" && value.length > 9 ? value.substring(4, value.length - 1).split(\",\") : []\n\t\treturn (\n\t\t\ttypeof value == \"string\" &&\n\t\t\tvalue.length > 9 &&\n\t\t\tvalue.substr(0, 4) == \"rgb(\" &&\n\t\t\tvalue.substr(value.length - 1, 1) == \")\" &&\n\t\t\tvalues.length == 3 &&\n\t\t\tvalues.every(\n\t\t\t\t(value: string) =>\n\t\t\t\t\t!Number.isNaN(value) &&\n\t\t\t\t\tvalue.match(/[0-9]/g)?.length == value.length &&\n\t\t\t\t\tNumber(value) >= 0 &&\n\t\t\t\t\tNumber(value) <= 255\n\t\t\t)\n\t\t)\n\t}\n}\n","import { Hex } from \"./Hex\"\nimport { Hsl } from \"./Hsl\"\nimport { Name as ColorName, Names } from \"./Name\"\nimport { Rgb } from \"./Rgb\"\n\n/**\n * Formated as \"r,g,b\", with no spaces included\n */\nexport type CommaRgb = string\nexport namespace CommaRgb {\n\texport function is(value: any | CommaRgb): value is CommaRgb {\n\t\tconst values = typeof value == \"string\" ? value.split(\",\") : []\n\t\treturn (\n\t\t\tvalues.length == 3 &&\n\t\t\tvalues.every(\n\t\t\t\t(value: string) =>\n\t\t\t\t\t!Number.isNaN(value) &&\n\t\t\t\t\tvalue.match(/[0-9]/g)?.length == value.length &&\n\t\t\t\t\tNumber(value) >= 0 &&\n\t\t\t\t\tNumber(value) <= 255\n\t\t\t)\n\t\t)\n\t}\n\texport function from(color: any): CommaRgb | undefined {\n\t\tlet result: CommaRgb | undefined\n\t\tconst colorWithoutSpace: CommaRgb | undefined =\n\t\t\ttypeof color == \"string\" ? color.replace(/ /g, \"\").toLowerCase() : undefined\n\t\tif (!colorWithoutSpace)\n\t\t\tresult = undefined\n\t\telse if (CommaRgb.is(colorWithoutSpace))\n\t\t\tresult = colorWithoutSpace\n\t\telse if (Hex.is(colorWithoutSpace))\n\t\t\tresult = fromHex(colorWithoutSpace)\n\t\telse if (Rgb.is(colorWithoutSpace))\n\t\t\tresult = fromRgb(colorWithoutSpace)\n\t\telse if (ColorName.is(colorWithoutSpace))\n\t\t\tresult = fromHex(Names[colorWithoutSpace])\n\t\telse if (Hsl.is(colorWithoutSpace))\n\t\t\tresult = fromHsl(colorWithoutSpace)\n\t\treturn result\n\t}\n\texport function fromHex(hex: Hex): CommaRgb {\n\t\tlet result: CommaRgb = \"0,0,0\"\n\t\tif (hex.length == 7)\n\t\t\tresult = `${parseInt(hex.substr(1, 2), 16)},${parseInt(hex.substr(3, 2), 16)},${parseInt(hex.substr(5, 2), 16)}`\n\t\telse if (hex.length == 4)\n\t\t\tresult = fromHex(`#${hex[1]}${hex[1]}${hex[2]}${hex[2]}${hex[3]}${hex[3]}`)\n\t\treturn result\n\t}\n\texport function fromRgb(rgb: Rgb): CommaRgb {\n\t\treturn rgb.substring(4, rgb.length - 1)\n\t}\n\texport function fromHsl(hsl: Hsl): CommaRgb {\n\t\tlet result: CommaRgb = \"\"\n\t\tlet h, s, l: number\n\t\tlet r, g, b: number\n\t\tconst HSL: number[] = hsl\n\t\t\t.substring(4, hsl.length - 1)\n\t\t\t.split(\",\")\n\t\t\t.map((value, index) => Number(index == 0 ? value : value.substr(0, value.length - 1)))\n\t\tif (HSL.length == 3) {\n\t\t\th = HSL[0] / 360\n\t\t\ts = HSL[1] / 100\n\t\t\tl = HSL[2] / 100\n\t\t\tif (s == 0)\n\t\t\t\tr = g = b = l\n\t\t\telse {\n\t\t\t\tconst q = l < 0.5 ? l * (1 + s) : l + s - l * s\n\t\t\t\tconst p = 2 * l - q\n\t\t\t\tr = hue2rgb(p, q, h + 1 / 3)\n\t\t\t\tg = hue2rgb(p, q, h)\n\t\t\t\tb = hue2rgb(p, q, h - 1 / 3)\n\t\t\t}\n\t\t\tresult = `${Math.round(255 * r)},${Math.round(255 * g)},${Math.round(255 * b)}`\n\t\t}\n\t\treturn result\n\t}\n\tfunction hue2rgb(p: number, q: number, t: number): number {\n\t\tlet result = p\n\t\tif (t < 0)\n\t\t\tt += 1\n\t\tif (t > 1)\n\t\t\tt -= 1\n\t\tif (t < 1 / 6)\n\t\t\tresult = p + (q - p) * 6 * t\n\t\telse if (t < 1 / 2)\n\t\t\tresult = q\n\t\telse if (t < 2 / 3)\n\t\t\tresult = p + (q - p) * (2 / 3 - t) * 6\n\t\treturn result\n\t}\n}\n","import { CommaRgb as ColorCommaRgb } from \"./CommaRgb\"\nimport { Hex as ColorHex } from \"./Hex\"\nimport { Hsl as ColorHsl } from \"./Hsl\"\nimport { Name as ColorName, Names as ColorNames } from \"./Name\"\nimport { Rgb as ColorRgb } from \"./Rgb\"\n\nexport type Color = ColorCommaRgb | ColorHex | ColorHsl | ColorName | ColorRgb\nexport namespace Color {\n\texport function is(value: any | Color): value is Color {\n\t\treturn (\n\t\t\ttypeof value == \"string\" &&\n\t\t\t(ColorCommaRgb.is(value) || ColorHex.is(value) || ColorHsl.is(value) || ColorName.is(value) || ColorRgb.is(value))\n\t\t)\n\t}\n\texport function from(value: any | Color): Color | undefined {\n\t\treturn is(value) ? value : undefined\n\t}\n\texport const Names = ColorNames\n\texport type Name = ColorName\n\texport const Name = ColorName\n\texport type CommaRgb = ColorCommaRgb\n\texport const CommaRgb = ColorCommaRgb\n\texport type Rgb = ColorRgb\n\texport const Rgb = ColorRgb\n\texport type Hex = ColorHex\n\texport const Hex = ColorHex\n\texport type Hsl = ColorHsl\n\texport const Hsl = ColorHsl\n}\n","import { Color as CosmeticColor } from \"./Color\"\n\nexport type Cosmetic = {\n\ttext?: { background?: string; color?: string }\n\tborder?: {\n\t\tcolor?: string\n\t\tstyle?: string\n\t\tradius?: string\n\t\twidth?: string\n\t}\n\tgap?: string\n\tdangerColor?: string\n\tfontFamily?: string\n\tbackground?: string\n}\n\nfunction reduce(types: string[], value: Record<string, string>) {\n\treturn types.reduce(\n\t\t(r, c) =>\n\t\t\ttypeof value == \"object\" && value != null && typeof value[c] == \"string\"\n\t\t\t\t? {\n\t\t\t\t\t\t...r,\n\t\t\t\t\t\t[c]: value[c],\n\t\t\t\t }\n\t\t\t\t: r,\n\t\t{}\n\t)\n}\nexport namespace Cosmetic {\n\texport const types = Cosmetic\n\texport function from(value: any | Cosmetic): Cosmetic {\n\t\tlet result: Cosmetic = {}\n\t\tif (typeof value == \"object\" && value) {\n\t\t\tresult = {\n\t\t\t\ttext: reduce([\"background\", \"color\"], value.text),\n\t\t\t\tborder: reduce([\"background\", \"color\", \"style\", \"radius\", \"width\"], value.border),\n\t\t\t\tgap: typeof value.gap == \"string\" ? value.gap : undefined,\n\t\t\t\tdangerColor:\n\t\t\t\t\ttypeof value.dangerColor == \"string\"\n\t\t\t\t\t\t? value.dangerColor\n\t\t\t\t\t\t: typeof value.danger_color == \"string\"\n\t\t\t\t\t\t? value.danger_color\n\t\t\t\t\t\t: undefined,\n\t\t\t\tfontFamily:\n\t\t\t\t\ttypeof value.fontFamily == \"string\"\n\t\t\t\t\t\t? value.fontFamily\n\t\t\t\t\t\t: typeof value.font_family == \"string\"\n\t\t\t\t\t\t? value.font_family\n\t\t\t\t\t\t: undefined,\n\t\t\t\tbackground: typeof value.background == \"string\" ? value.background : undefined,\n\t\t\t}\n\t\t\tObject.keys(result).forEach((key: \"text\" | \"border\" | \"gap\" | \"dangerColor\" | \"fontFamily\" | \"background\") => {\n\t\t\t\tif (\n\t\t\t\t\tresult[key] == undefined ||\n\t\t\t\t\t(typeof result[key] == \"object\" && result[key] && Object.keys(result[key] ?? {}).length == 0)\n\t\t\t\t) {\n\t\t\t\t\tdelete result[key]\n\t\t\t\t}\n\t\t\t})\n\t\t}\n\t\treturn result\n\t}\n\texport type Color = CosmeticColor\n\texport const Color = CosmeticColor\n}\n"],"mappings":"qJAEsBA,EAErBC,cAAA,CAEWC,mBACVF,EAAiBG,WAAaC,aAAaC,QAAQ,qBAAuBC,UAC1E,IAAKN,EAAiBG,WAAY,CACjCH,EAAiBG,WAAaI,EAAWC,SAAS,IAClDJ,aAAaK,QAAQ,mBAAoBT,EAAiBG,W,CAE3D,OAAOH,EAAiBG,U,QCVJO,EAIrBT,eAAyBU,GAHTC,KAAAC,WAAa,IAAIC,EAIhCF,KAAKG,OAASJ,EAAWK,QAAU,EAAIL,EAAW,GAAML,S,MCHzCW,GAAjB,SAAiBA,GAChB,SAAgBC,EAAGhB,GAClB,MAAMiB,SAAqBjB,GAAS,UAAYA,EAAMkB,MAAM,iBAAoBd,UAChF,cACQJ,GAAS,UAChBA,EAAMc,OAAS,GACfd,EAAM,IAAM,OACXiB,IAAU,MAAVA,SAAU,SAAVA,EAAYH,SAAU,IAAKG,IAAU,MAAVA,SAAU,SAAVA,EAAYH,SAAU,E,CANpCC,EAAAC,GAAEA,CASlB,EAVD,CAAiBD,MAAG,K,ICEHI,GAAjB,SAAiBA,GAChB,SAAgBH,EAAGhB,GAClB,MAAMoB,SAAgBpB,GAAS,UAAYA,EAAMc,OAAS,GAAKd,EAAMqB,UAAU,EAAGrB,EAAMc,OAAS,GAAGQ,MAAM,KAAO,GACjH,cACQtB,GAAS,UAChBA,EAAMc,OAAS,IACfd,EAA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OvC,EAAiBvL,GAChC,OAAOuL,EAAMuC,QACZ,CAACjB,EAAGkB,WACI/N,GAAS,UAAYA,GAAS,aAAeA,EAAM+N,IAAM,S,+BAE1DlB,GAAC,CACJkB,CAACA,GAAI/N,EAAM+N,KAEXlB,GACJ,GAEF,C,IACiBmB,GAAjB,SAAiBA,GACHA,EAAAzC,MAAQyC,EACrB,SAAgBlC,EAAK9L,GACpB,IAAI2B,EAAmB,GACvB,UAAW3B,GAAS,UAAYA,EAAO,CACtC2B,EAAS,CACRsM,KAAMH,EAAO,CAAC,aAAc,SAAU9N,EAAMiO,MAC5CC,OAAQJ,EAAO,CAAC,aAAc,QAAS,QAAS,SAAU,SAAU9N,EAAMkO,QAC1EC,WAAYnO,EAAMmO,KAAO,SAAWnO,EAAMmO,IAAM/N,UAChDgO,mBACQpO,EAAMoO,aAAe,SACzBpO,EAAMoO,mBACCpO,EAAMqO,cAAgB,SAC7BrO,EAAMqO,aACNjO,UACJkO,kBACQtO,EAAMsO,YAAc,SACxBtO,EAAMsO,kBACCtO,EAAMuO,aAAe,SAC5BvO,EAAMuO,YACNnO,UACJoO,kBAAmBxO,EAAMwO,YAAc,SAAWxO,EAAMwO,WAAapO,WAEtEoL,OAAOC,KAAK9J,GAAQ8M,SAASC,I,MAC5B,GACC/M,EAAO+M,IAAQtO,kBACPuB,EAAO+M,IAAQ,UAAY/M,EAAO+M,IAAQlD,OAAOC,MAAK3J,EAAAH,EAAO+M,MAAI,MAAA5M,SAAA,EAAAA,EAAI,IAAIhB,QAAU,EAC1F,QACMa,EAAO+M,E,KAIjB,OAAO/M,C,CA9BQqM,EAAAlC,KAAIA,EAiCPkC,EAAAR,MAAQmB,CACrB,EApCD,CAAiBX,MAAQ,K"}
|
|
1
|
+
{"version":3,"names":["StateBase","constructor","parameters","this","listenable","Listenable","client","length","undefined","Hex","is","value","matchArray","match","Hsl","values","substring","split","substr","every","single","index","result","Number","isNaN","_a","number","_b","Names","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","goldenrod","gold","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavenderblush","lavender","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","Name","types","Object","keys","includes","toLowerCase","Rgb","CommaRgb","from","color","colorWithoutSpace","replace","fromHex","fromRgb","ColorName","fromHsl","hex","parseInt","rgb","hsl","h","s","l","r","g","b","HSL","map","q","p","hue2rgb","Math","round","t","Color","ColorCommaRgb","ColorHex","ColorHsl","ColorRgb","ColorNames","reduce","c","Cosmetic","text","border","gap","dangerColor","danger_color","fontFamily","font_family","background","forEach","key","CosmeticColor"],"sources":["./src/model/StateBase.ts","./src/utilities/Cosmetic/Color/Hex.ts","./src/utilities/Cosmetic/Color/Hsl.ts","./src/utilities/Cosmetic/Color/Name.ts","./src/utilities/Cosmetic/Color/Rgb.ts","./src/utilities/Cosmetic/Color/CommaRgb.ts","./src/utilities/Cosmetic/Color/index.ts","./src/utilities/Cosmetic/index.ts"],"sourcesContent":["import { HasListenable, Listenable, WithListenable } from \"./Listenable\"\n\nexport abstract class StateBase<T extends StateBase<any, any>, C = undefined> implements HasListenable<T> {\n\tpublic readonly listenable = new Listenable() as WithListenable<T>\n\tprotected readonly client: C\n\t// 2 different signatures depending on if C i set to a type.\n\tprotected constructor(...parameters: C extends undefined ? [] : [client: C]) {\n\t\tthis.client = parameters.length == 1 ? parameters[0] : (undefined as C)\n\t}\n}\n","/**\n * Hex formated as \"#xxxxxx\" or \"#xxx\" where x is 0-9, or a-f or A-F\n */\nexport type Hex = string\nexport namespace Hex {\n\texport function is(value: any | Hex): value is Hex {\n\t\tconst matchArray = (typeof value == \"string\" && value.match(/[0-9a-fA-F]/g)) || undefined\n\t\treturn (\n\t\t\ttypeof value == \"string\" &&\n\t\t\tvalue.length > 3 &&\n\t\t\tvalue[0] == \"#\" &&\n\t\t\t(matchArray?.length == 3 || matchArray?.length == 6)\n\t\t)\n\t}\n}\n","/**\n * Hsl formated as \"hsl(H,S%,L%)\" with no spaces included\n * \t\twith limit: 0 <= H <= 360\n * \t\twith limit: 0 <= S,L <= 100\n */\nexport type Hsl = string\nexport namespace Hsl {\n\texport function is(value: any | Hsl): value is Hsl {\n\t\tconst values = typeof value == \"string\" && value.length > 11 ? value.substring(4, value.length - 1).split(\",\") : []\n\t\treturn (\n\t\t\ttypeof value == \"string\" &&\n\t\t\tvalue.length > 11 &&\n\t\t\tvalue.substr(0, 4) == \"hsl(\" &&\n\t\t\tvalue.substr(value.length - 1, 1) == \")\" &&\n\t\t\tvalues.length == 3 &&\n\t\t\tvalues.every((single: string, index: number) => {\n\t\t\t\tlet result = false\n\t\t\t\tif (index == 0)\n\t\t\t\t\tresult =\n\t\t\t\t\t\t!Number.isNaN(single) &&\n\t\t\t\t\t\tsingle.match(/[0-9]/g)?.length == single.length &&\n\t\t\t\t\t\tNumber(single) >= 0 &&\n\t\t\t\t\t\tNumber(single) <= 360\n\t\t\t\telse {\n\t\t\t\t\tconst number: string = single.substr(0, single.length - 1)\n\t\t\t\t\tresult =\n\t\t\t\t\t\tsingle[single.length - 1] == \"%\" &&\n\t\t\t\t\t\t!Number.isNaN(number) &&\n\t\t\t\t\t\tnumber.match(/[0-9]/g)?.length == number.length &&\n\t\t\t\t\t\tNumber(number) >= 0 &&\n\t\t\t\t\t\tNumber(number) <= 100\n\t\t\t\t}\n\t\t\t\treturn result\n\t\t\t})\n\t\t)\n\t}\n}\n","export const Names = <const>{\n\taliceblue: \"#f0f8ff\",\n\tantiquewhite: \"#faebd7\",\n\taqua: \"#00ffff\",\n\taquamarine: \"#7fffd4\",\n\tazure: \"#f0ffff\",\n\tbeige: \"#f5f5dc\",\n\tbisque: \"#ffe4c4\",\n\tblack: \"#000000\",\n\tblanchedalmond: \"#ffebcd\",\n\tblue: \"#0000ff\",\n\tblueviolet: \"#8a2be2\",\n\tbrown: \"#a52a2a\",\n\tburlywood: \"#deb887\",\n\tcadetblue: \"#5f9ea0\",\n\tchartreuse: \"#7fff00\",\n\tchocolate: \"#d2691e\",\n\tcoral: \"#ff7f50\",\n\tcornflowerblue: \"#6495ed\",\n\tcornsilk: \"#fff8dc\",\n\tcrimson: \"#dc143c\",\n\tcyan: \"#00ffff\",\n\tdarkblue: \"#00008b\",\n\tdarkcyan: \"#008b8b\",\n\tdarkgoldenrod: \"#b8860b\",\n\tdarkgray: \"#a9a9a9\",\n\tdarkgreen: \"#006400\",\n\tdarkgrey: \"#a9a9a9\",\n\tdarkkhaki: \"#bdb76b\",\n\tdarkmagenta: \"#8b008b\",\n\tdarkolivegreen: \"#556b2f\",\n\tdarkorange: \"#ff8c00\",\n\tdarkorchid: \"#9932cc\",\n\tdarkred: \"#8b0000\",\n\tdarksalmon: \"#e9967a\",\n\tdarkseagreen: \"#8fbc8f\",\n\tdarkslateblue: \"#483d8b\",\n\tdarkslategray: \"#2f4f4f\",\n\tdarkslategrey: \"#2f4f4f\",\n\tdarkturquoise: \"#00ced1\",\n\tdarkviolet: \"#9400d3\",\n\tdeeppink: \"#ff1493\",\n\tdeepskyblue: \"#00bfff\",\n\tdimgray: \"#696969\",\n\tdimgrey: \"#696969\",\n\tdodgerblue: \"#1e90ff\",\n\tfirebrick: \"#b22222\",\n\tfloralwhite: \"#fffaf0\",\n\tforestgreen: \"#228b22\",\n\tfuchsia: \"#ff00ff\",\n\tgainsboro: \"#dcdcdc\",\n\tghostwhite: \"#f8f8ff\",\n\tgoldenrod: \"#daa520\",\n\tgold: \"#ffd700\",\n\tgray: \"#808080\",\n\tgreen: \"#008000\",\n\tgreenyellow: \"#adff2f\",\n\tgrey: \"#808080\",\n\thoneydew: \"#f0fff0\",\n\thotpink: \"#ff69b4\",\n\tindianred: \"#cd5c5c\",\n\tindigo: \"#4b0082\",\n\tivory: \"#fffff0\",\n\tkhaki: \"#f0e68c\",\n\tlavenderblush: \"#fff0f5\",\n\tlavender: \"#e6e6fa\",\n\tlawngreen: \"#7cfc00\",\n\tlemonchiffon: \"#fffacd\",\n\tlightblue: \"#add8e6\",\n\tlightcoral: \"#f08080\",\n\tlightcyan: \"#e0ffff\",\n\tlightgoldenrodyellow: \"#fafad2\",\n\tlightgray: \"#d3d3d3\",\n\tlightgreen: \"#90ee90\",\n\tlightgrey: \"#d3d3d3\",\n\tlightpink: \"#ffb6c1\",\n\tlightsalmon: \"#ffa07a\",\n\tlightseagreen: \"#20b2aa\",\n\tlightskyblue: \"#87cefa\",\n\tlightslategray: \"#778899\",\n\tlightslategrey: \"#778899\",\n\tlightsteelblue: \"#b0c4de\",\n\tlightyellow: \"#ffffe0\",\n\tlime: \"#00ff00\",\n\tlimegreen: \"#32cd32\",\n\tlinen: \"#faf0e6\",\n\tmagenta: \"#ff00ff\",\n\tmaroon: \"#800000\",\n\tmediumaquamarine: \"#66cdaa\",\n\tmediumblue: \"#0000cd\",\n\tmediumorchid: \"#ba55d3\",\n\tmediumpurple: \"#9370db\",\n\tmediumseagreen: \"#3cb371\",\n\tmediumslateblue: \"#7b68ee\",\n\tmediumspringgreen: \"#00fa9a\",\n\tmediumturquoise: \"#48d1cc\",\n\tmediumvioletred: \"#c71585\",\n\tmidnightblue: \"#191970\",\n\tmintcream: \"#f5fffa\",\n\tmistyrose: \"#ffe4e1\",\n\tmoccasin: \"#ffe4b5\",\n\tnavajowhite: \"#ffdead\",\n\tnavy: \"#000080\",\n\toldlace: \"#fdf5e6\",\n\tolive: \"#808000\",\n\tolivedrab: \"#6b8e23\",\n\torange: \"#ffa500\",\n\torangered: \"#ff4500\",\n\torchid: \"#da70d6\",\n\tpalegoldenrod: \"#eee8aa\",\n\tpalegreen: \"#98fb98\",\n\tpaleturquoise: \"#afeeee\",\n\tpalevioletred: \"#db7093\",\n\tpapayawhip: \"#ffefd5\",\n\tpeachpuff: \"#ffdab9\",\n\tperu: \"#cd853f\",\n\tpink: \"#ffc0cb\",\n\tplum: \"#dda0dd\",\n\tpowderblue: \"#b0e0e6\",\n\tpurple: \"#800080\",\n\trebeccapurple: \"#663399\",\n\tred: \"#ff0000\",\n\trosybrown: \"#bc8f8f\",\n\troyalblue: \"#4169e1\",\n\tsaddlebrown: \"#8b4513\",\n\tsalmon: \"#fa8072\",\n\tsandybrown: \"#f4a460\",\n\tseagreen: \"#2e8b57\",\n\tseashell: \"#fff5ee\",\n\tsienna: \"#a0522d\",\n\tsilver: \"#c0c0c0\",\n\tskyblue: \"#87ceeb\",\n\tslateblue: \"#6a5acd\",\n\tslategray: \"#708090\",\n\tslategrey: \"#708090\",\n\tsnow: \"#fffafa\",\n\tspringgreen: \"#00ff7f\",\n\tsteelblue: \"#4682b4\",\n\ttan: \"#d2b48c\",\n\tteal: \"#008080\",\n\tthistle: \"#d8bfd8\",\n\ttomato: \"#ff6347\",\n\tturquoise: \"#40e0d0\",\n\tviolet: \"#ee82ee\",\n\twheat: \"#f5deb3\",\n\twhite: \"#ffffff\",\n\twhitesmoke: \"#f5f5f5\",\n\tyellow: \"#ffff00\",\n\tyellowgreen: \"#9acd32\",\n}\nexport type Name = keyof typeof Names\nexport namespace Name {\n\texport const types = () => Object.keys(Names)\n\texport function is(value: any | Name): value is Name {\n\t\treturn typeof value == \"string\" && types().includes(value.toLowerCase())\n\t}\n}\n","/**\n * Formated as \"rgb(r,g,b)\", with no spaces included\n */\nexport type Rgb = string\nexport namespace Rgb {\n\texport function is(value: any | Rgb): value is Rgb {\n\t\tconst values = typeof value == \"string\" && value.length > 9 ? value.substring(4, value.length - 1).split(\",\") : []\n\t\treturn (\n\t\t\ttypeof value == \"string\" &&\n\t\t\tvalue.length > 9 &&\n\t\t\tvalue.substr(0, 4) == \"rgb(\" &&\n\t\t\tvalue.substr(value.length - 1, 1) == \")\" &&\n\t\t\tvalues.length == 3 &&\n\t\t\tvalues.every(\n\t\t\t\t(value: string) =>\n\t\t\t\t\t!Number.isNaN(value) &&\n\t\t\t\t\tvalue.match(/[0-9]/g)?.length == value.length &&\n\t\t\t\t\tNumber(value) >= 0 &&\n\t\t\t\t\tNumber(value) <= 255\n\t\t\t)\n\t\t)\n\t}\n}\n","import { Hex } from \"./Hex\"\nimport { Hsl } from \"./Hsl\"\nimport { Name as ColorName, Names } from \"./Name\"\nimport { Rgb } from \"./Rgb\"\n\n/**\n * Formated as \"r,g,b\", with no spaces included\n */\nexport type CommaRgb = string\nexport namespace CommaRgb {\n\texport function is(value: any | CommaRgb): value is CommaRgb {\n\t\tconst values = typeof value == \"string\" ? value.split(\",\") : []\n\t\treturn (\n\t\t\tvalues.length == 3 &&\n\t\t\tvalues.every(\n\t\t\t\t(value: string) =>\n\t\t\t\t\t!Number.isNaN(value) &&\n\t\t\t\t\tvalue.match(/[0-9]/g)?.length == value.length &&\n\t\t\t\t\tNumber(value) >= 0 &&\n\t\t\t\t\tNumber(value) <= 255\n\t\t\t)\n\t\t)\n\t}\n\texport function from(color: any): CommaRgb | undefined {\n\t\tlet result: CommaRgb | undefined\n\t\tconst colorWithoutSpace: CommaRgb | undefined =\n\t\t\ttypeof color == \"string\" ? color.replace(/ /g, \"\").toLowerCase() : undefined\n\t\tif (!colorWithoutSpace)\n\t\t\tresult = undefined\n\t\telse if (CommaRgb.is(colorWithoutSpace))\n\t\t\tresult = colorWithoutSpace\n\t\telse if (Hex.is(colorWithoutSpace))\n\t\t\tresult = fromHex(colorWithoutSpace)\n\t\telse if (Rgb.is(colorWithoutSpace))\n\t\t\tresult = fromRgb(colorWithoutSpace)\n\t\telse if (ColorName.is(colorWithoutSpace))\n\t\t\tresult = fromHex(Names[colorWithoutSpace])\n\t\telse if (Hsl.is(colorWithoutSpace))\n\t\t\tresult = fromHsl(colorWithoutSpace)\n\t\treturn result\n\t}\n\texport function fromHex(hex: Hex): CommaRgb {\n\t\tlet result: CommaRgb = \"0,0,0\"\n\t\tif (hex.length == 7)\n\t\t\tresult = `${parseInt(hex.substr(1, 2), 16)},${parseInt(hex.substr(3, 2), 16)},${parseInt(hex.substr(5, 2), 16)}`\n\t\telse if (hex.length == 4)\n\t\t\tresult = fromHex(`#${hex[1]}${hex[1]}${hex[2]}${hex[2]}${hex[3]}${hex[3]}`)\n\t\treturn result\n\t}\n\texport function fromRgb(rgb: Rgb): CommaRgb {\n\t\treturn rgb.substring(4, rgb.length - 1)\n\t}\n\texport function fromHsl(hsl: Hsl): CommaRgb {\n\t\tlet result: CommaRgb = \"\"\n\t\tlet h, s, l: number\n\t\tlet r, g, b: number\n\t\tconst HSL: number[] = hsl\n\t\t\t.substring(4, hsl.length - 1)\n\t\t\t.split(\",\")\n\t\t\t.map((value, index) => Number(index == 0 ? value : value.substr(0, value.length - 1)))\n\t\tif (HSL.length == 3) {\n\t\t\th = HSL[0] / 360\n\t\t\ts = HSL[1] / 100\n\t\t\tl = HSL[2] / 100\n\t\t\tif (s == 0)\n\t\t\t\tr = g = b = l\n\t\t\telse {\n\t\t\t\tconst q = l < 0.5 ? l * (1 + s) : l + s - l * s\n\t\t\t\tconst p = 2 * l - q\n\t\t\t\tr = hue2rgb(p, q, h + 1 / 3)\n\t\t\t\tg = hue2rgb(p, q, h)\n\t\t\t\tb = hue2rgb(p, q, h - 1 / 3)\n\t\t\t}\n\t\t\tresult = `${Math.round(255 * r)},${Math.round(255 * g)},${Math.round(255 * b)}`\n\t\t}\n\t\treturn result\n\t}\n\tfunction hue2rgb(p: number, q: number, t: number): number {\n\t\tlet result = p\n\t\tif (t < 0)\n\t\t\tt += 1\n\t\tif (t > 1)\n\t\t\tt -= 1\n\t\tif (t < 1 / 6)\n\t\t\tresult = p + (q - p) * 6 * t\n\t\telse if (t < 1 / 2)\n\t\t\tresult = q\n\t\telse if (t < 2 / 3)\n\t\t\tresult = p + (q - p) * (2 / 3 - t) * 6\n\t\treturn result\n\t}\n}\n","import { CommaRgb as ColorCommaRgb } from \"./CommaRgb\"\nimport { Hex as ColorHex } from \"./Hex\"\nimport { Hsl as ColorHsl } from \"./Hsl\"\nimport { Name as ColorName, Names as ColorNames } from \"./Name\"\nimport { Rgb as ColorRgb } from \"./Rgb\"\n\nexport type Color = ColorCommaRgb | ColorHex | ColorHsl | ColorName | ColorRgb\nexport namespace Color {\n\texport function is(value: any | Color): value is Color {\n\t\treturn (\n\t\t\ttypeof value == \"string\" &&\n\t\t\t(ColorCommaRgb.is(value) || ColorHex.is(value) || ColorHsl.is(value) || ColorName.is(value) || ColorRgb.is(value))\n\t\t)\n\t}\n\texport function from(value: any | Color): Color | undefined {\n\t\treturn is(value) ? value : undefined\n\t}\n\texport const Names = ColorNames\n\texport type Name = ColorName\n\texport const Name = ColorName\n\texport type CommaRgb = ColorCommaRgb\n\texport const CommaRgb = ColorCommaRgb\n\texport type Rgb = ColorRgb\n\texport const Rgb = ColorRgb\n\texport type Hex = ColorHex\n\texport const Hex = ColorHex\n\texport type Hsl = ColorHsl\n\texport const Hsl = ColorHsl\n}\n","import { Color as CosmeticColor } from \"./Color\"\n\nexport type Cosmetic = {\n\ttext?: { background?: string; color?: string }\n\tborder?: {\n\t\tcolor?: string\n\t\tstyle?: string\n\t\tradius?: string\n\t\twidth?: string\n\t}\n\tgap?: string\n\tdangerColor?: string\n\tfontFamily?: string\n\tbackground?: string\n}\n\nfunction reduce(types: string[], value: Record<string, string>) {\n\treturn types.reduce(\n\t\t(r, c) =>\n\t\t\ttypeof value == \"object\" && value != null && typeof value[c] == \"string\"\n\t\t\t\t? {\n\t\t\t\t\t\t...r,\n\t\t\t\t\t\t[c]: value[c],\n\t\t\t\t }\n\t\t\t\t: r,\n\t\t{}\n\t)\n}\nexport namespace Cosmetic {\n\texport const types = Cosmetic\n\texport function from(value: any | Cosmetic): Cosmetic {\n\t\tlet result: Cosmetic = {}\n\t\tif (typeof value == \"object\" && value) {\n\t\t\tresult = {\n\t\t\t\ttext: reduce([\"background\", \"color\"], value.text),\n\t\t\t\tborder: reduce([\"background\", \"color\", \"style\", \"radius\", \"width\"], value.border),\n\t\t\t\tgap: typeof value.gap == \"string\" ? value.gap : undefined,\n\t\t\t\tdangerColor:\n\t\t\t\t\ttypeof value.dangerColor == \"string\"\n\t\t\t\t\t\t? value.dangerColor\n\t\t\t\t\t\t: typeof value.danger_color == \"string\"\n\t\t\t\t\t\t? value.danger_color\n\t\t\t\t\t\t: undefined,\n\t\t\t\tfontFamily:\n\t\t\t\t\ttypeof value.fontFamily == \"string\"\n\t\t\t\t\t\t? value.fontFamily\n\t\t\t\t\t\t: typeof value.font_family == \"string\"\n\t\t\t\t\t\t? value.font_family\n\t\t\t\t\t\t: undefined,\n\t\t\t\tbackground: typeof value.background == \"string\" ? value.background : undefined,\n\t\t\t}\n\t\t\tObject.keys(result).forEach((key: \"text\" | \"border\" | \"gap\" | \"dangerColor\" | \"fontFamily\" | \"background\") => {\n\t\t\t\tif (\n\t\t\t\t\tresult[key] == undefined ||\n\t\t\t\t\t(typeof result[key] == \"object\" && result[key] && Object.keys(result[key] ?? {}).length == 0)\n\t\t\t\t) {\n\t\t\t\t\tdelete result[key]\n\t\t\t\t}\n\t\t\t})\n\t\t}\n\t\treturn result\n\t}\n\texport type Color = CosmeticColor\n\texport const Color = CosmeticColor\n}\n"],"mappings":"4JAEsBA,EAIrBC,eAAyBC,GAHTC,KAAAC,WAAa,IAAIC,EAIhCF,KAAKG,OAASJ,EAAWK,QAAU,EAAIL,EAAW,GAAMM,S,MCHzCC,GAAjB,SAAiBA,GAChB,SAAgBC,EAAGC,GAClB,MAAMC,SAAqBD,GAAS,UAAYA,EAAME,MAAM,iBAAoBL,UAChF,cACQG,GAAS,UAChBA,EAAMJ,OAAS,GACfI,EAAM,IAAM,OACXC,IAAU,MAAVA,SAAU,SAAVA,EAAYL,SAAU,IAAKK,IAAU,MAAVA,SAAU,SAAVA,EAAYL,SAAU,E,CANpCE,EAAAC,GAAEA,CASlB,EAVD,CAAiBD,MAAG,K,ICEHK,GAAjB,SAAiBA,GAChB,SAAgBJ,EAAGC,GAClB,MAAMI,SAAgBJ,GAAS,UAAYA,EAAMJ,OAAS,GAAKI,EAAMK,UAAU,EAAGL,EAAMJ,OAAS,GAAGU,MAAM,KAAO,GACjH,cACQN,GAAS,UAChBA,EAAMJ,OAAS,IACfI,EAAMO,OAAO,EAAG,IAAM,QACtBP,EAAMO,OAAOP,EAAMJ,OAAS,EAAG,IAAM,KACrCQ,EAAOR,QAAU,GACjBQ,EAAOI,OAAM,CAACC,EAAgBC,K,QAC7B,IAAIC,EAAS,MACb,GAAID,GAAS,EACZC,GACEC,OAAOC,MAAMJ,MACdK,EAAAL,EAAOP,MAAM,aAAS,MAAAY,SAAA,SAAAA,EAAElB,SAAUa,EAAOb,QACzCgB,OAAOH,IAAW,GAClBG,OAAOH,IAAW,QACf,CACJ,MAAMM,EAAiBN,EAAOF,OAAO,EAAGE,EAAOb,OAAS,GACxDe,EACCF,EAAOA,EAAOb,OAAS,IAAM,MAC5BgB,OAAOC,MAAME,MACdC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N,EAAMmN,IAAMtN,UAChDuN,mBACQpN,EAAMoN,aAAe,SACzBpN,EAAMoN,mBACCpN,EAAMqN,cAAgB,SAC7BrN,EAAMqN,aACNxN,UACJyN,kBACQtN,EAAMsN,YAAc,SACxBtN,EAAMsN,kBACCtN,EAAMuN,aAAe,SAC5BvN,EAAMuN,YACN1N,UACJ2N,kBAAmBxN,EAAMwN,YAAc,SAAWxN,EAAMwN,WAAa3N,WAEtE2K,OAAOC,KAAK9J,GAAQ8M,SAASC,I,MAC5B,GACC/M,EAAO+M,IAAQ7N,kBACPc,EAAO+M,IAAQ,UAAY/M,EAAO+M,IAAQlD,OAAOC,MAAK3J,EAAAH,EAAO+M,MAAI,MAAA5M,SAAA,EAAAA,EAAI,IAAIlB,QAAU,EAC1F,QACMe,EAAO+M,E,KAIjB,OAAO/M,C,CA9BQqM,EAAAlC,KAAIA,EAiCPkC,EAAAR,MAAQmB,CACrB,EApCD,CAAiBX,MAAQ,K"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as s,h as e}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as s,h as e}from"./p-5e387578.js";const t=".sc-smoothly-addresses-h{display:flex;justify-content:space-around}";const o=class{constructor(e){s(this,e);this.value=undefined;this.editable=undefined}render(){return[this.value.map((s=>e("smoothly-address",{value:s})))]}};o.style=t;export{o as smoothly_addresses};
|
|
2
|
+
//# sourceMappingURL=p-12182a73.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as o,c as t,h as s,g as i}from"./p-5e387578.js";const c=".sc-smoothly-accordion-item-h{display:block}[hidden].sc-smoothly-accordion-item-h{display:none}details.sc-smoothly-accordion-item{padding:0}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>span.sc-smoothly-accordion-item{float:right;margin:0.2em;font-size:60%}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item{font-size:120%;list-style-type:none;cursor:pointer;padding:0.4em;color:rgb(var(--smoothly-text-tint))}details.sc-smoothly-accordion-item>fieldset.sc-smoothly-accordion-item{border:none;margin:0;padding:0}[open].sc-smoothly-accordion-item-h>details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color))}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item::-webkit-details-marker{display:none}details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>svg.sc-smoothly-accordion-item{width:1em;height:auto;margin-bottom:-0.2em;margin-right:0.4em}[open].sc-smoothly-accordion-item-h>details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>svg.sc-smoothly-accordion-item{fill:rgb(var(--smoothly-primary-contrast))}.sc-smoothly-accordion-item-h:not([open])>details.sc-smoothly-accordion-item>summary.sc-smoothly-accordion-item>svg.sc-smoothly-accordion-item{fill:rgb(var(--smoothly-text-tint))}";const e=class{constructor(s){o(this,s);this.smoothlyAccordionItemWillLoad=t(this,"smoothlyAccordionItemWillLoad",7);this.smoothlyOpen=t(this,"smoothlyOpen",7);this.smoothlyClose=t(this,"smoothlyClose",7);this.name=undefined;this.brand=undefined;this.open=undefined}openChanged(o){this.open=o;if(o){this.smoothlyOpen.emit({open:true,name:this.name})}}componentWillLoad(){const o=this.element.getElementsByTagName("summary");if(o.length>0){const t=o=>{if(this.open)this.smoothlyClose.emit({open:this.open,name:this.name});else this.open=true;o.preventDefault()};o[0].addEventListener("click",t);o[0].addEventListener("touch",t)}this.smoothlyAccordionItemWillLoad.emit((o=>{this.parent=o}))}disconnectedCallback(){var o;(o=this.parent)===null||o===void 0?void 0:o.removeItem(this.element)}render(){return s("details",{open:this.open},s("summary",null,this.open?s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},s("path",{d:"M256 48C141.6 48 48 141.6 48 256s93.6 208 208 208 208-93.6 208-208S370.4 48 256 48zm-42.7 318.9L106.7 260.3l29.9-29.9 76.8 76.8 162.1-162.1 29.9 29.9-192.1 191.9z"})):s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},s("path",{d:"M256 48C141.601 48 48 141.601 48 256s93.601 208 208 208 208-93.601 208-208S370.399 48 256 48zm0 374.399c-91.518 0-166.399-74.882-166.399-166.399S164.482 89.6 256 89.6 422.4 164.482 422.4 256 347.518 422.399 256 422.399z"})),this.name,typeof this.brand=="string"?s("span",{class:this.brand.toLowerCase()},this.brand):Array.isArray(this.brand)?this.brand.map((o=>s("span",{class:o.toLowerCase()},o))):[]),s("fieldset",{disabled:!this.open,name:this.name},s("slot",null)))}get element(){return i(this)}static get watchers(){return{open:["openChanged"]}}};e.style=c;export{e as smoothly_accordion_item};
|
|
2
|
+
//# sourceMappingURL=p-21905b32.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["styleCss","SmoothlyAccordionItem","openChanged","isChecked","this","open","smoothlyOpen","emit","name","componentWillLoad","summary","element","getElementsByTagName","length","onClick","e","smoothlyClose","preventDefault","addEventListener","smoothlyAccordionItemWillLoad","parent","disconnectedCallback","_a","removeItem","render","h","xmlns","viewBox","d","brand","class","toLowerCase","Array","isArray","map","b","disabled"],"sources":["./src/components/accordion-item/style.css?tag=smoothly-accordion-item&encapsulation=scoped","./src/components/accordion-item/index.tsx"],"sourcesContent":[":host {\n\tdisplay: block;\n}\n:host[hidden] {\n\tdisplay: none;\n}\ndetails {\n\tpadding: 0;\n}\ndetails > summary > span {\n\tfloat: right;\n\tmargin: 0.2em;\n\tfont-size: 60%;\n}\ndetails > summary {\n\tfont-size: 120%;\n\tlist-style-type: none;\n\tcursor: pointer;\n\tpadding: 0.4em;\n\tcolor: rgb(var(--smoothly-text-tint));\n}\ndetails > fieldset {\n\tborder: none;\n\tmargin: 0;\n\tpadding: 0;\n}\n:host[open] > details > summary {\n\tcolor: rgb(var(--smoothly-primary-contrast));\n\tbackground: rgb(var(--smoothly-primary-color));\n}\ndetails > summary::-webkit-details-marker {\n\tdisplay: none;\n}\ndetails > summary > svg {\n\twidth: 1em;\n\theight: auto;\n\tmargin-bottom: -0.2em;\n\tmargin-right: 0.4em;\n}\n:host[open] > details > summary > svg {\n\tfill: rgb(var(--smoothly-primary-contrast));\n}\n:host:not([open]) > details > summary > svg {\n\tfill: rgb(var(--smoothly-text-tint));\n}\n","import { Component, Element, Event, EventEmitter, h, Prop, Watch } from \"@stencil/core\"\nimport { SmoothlyAccordion } from \"../accordion\"\n\n@Component({\n\ttag: \"smoothly-accordion-item\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyAccordionItem {\n\t@Prop() name: string\n\t@Prop() brand?: string | string[]\n\t@Prop({ mutable: true, reflect: true }) open?: boolean\n\t@Element() element: HTMLSmoothlyAccordionItemElement\n\t@Event() smoothlyAccordionItemWillLoad!: EventEmitter<(parent: SmoothlyAccordion) => void>\n\t@Event() smoothlyOpen!: EventEmitter<{ name: string; open: boolean }>\n\t@Event() smoothlyClose!: EventEmitter<{ name: string; open: boolean }>\n\tprivate parent?: SmoothlyAccordion\n\t@Watch(\"open\")\n\topenChanged(isChecked: boolean) {\n\t\tthis.open = isChecked\n\t\tif (isChecked) {\n\t\t\tthis.smoothlyOpen.emit({\n\t\t\t\topen: true,\n\t\t\t\tname: this.name,\n\t\t\t})\n\t\t}\n\t}\n\tcomponentWillLoad() {\n\t\tconst summary = this.element.getElementsByTagName(\"summary\")\n\t\tif (summary.length > 0) {\n\t\t\tconst onClick = (e: UIEvent) => {\n\t\t\t\tif (this.open)\n\t\t\t\t\tthis.smoothlyClose.emit({ open: this.open, name: this.name })\n\t\t\t\telse\n\t\t\t\t\tthis.open = true\n\t\t\t\te.preventDefault()\n\t\t\t}\n\t\t\tsummary[0].addEventListener(\"click\", onClick)\n\t\t\tsummary[0].addEventListener(\"touch\", onClick)\n\t\t}\n\t\tthis.smoothlyAccordionItemWillLoad.emit(parent => {\n\t\t\tthis.parent = parent\n\t\t})\n\t}\n\tdisconnectedCallback() {\n\t\tthis.parent?.removeItem(this.element)\n\t}\n\trender() {\n\t\treturn (\n\t\t\t<details open={this.open}>\n\t\t\t\t<summary>\n\t\t\t\t\t{this.open ? (\n\t\t\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\">\n\t\t\t\t\t\t\t<path d=\"M256 48C141.6 48 48 141.6 48 256s93.6 208 208 208 208-93.6 208-208S370.4 48 256 48zm-42.7 318.9L106.7 260.3l29.9-29.9 76.8 76.8 162.1-162.1 29.9 29.9-192.1 191.9z\" />\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\">\n\t\t\t\t\t\t\t<path d=\"M256 48C141.601 48 48 141.601 48 256s93.601 208 208 208 208-93.601 208-208S370.399 48 256 48zm0 374.399c-91.518 0-166.399-74.882-166.399-166.399S164.482 89.6 256 89.6 422.4 164.482 422.4 256 347.518 422.399 256 422.399z\" />\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t)}\n\t\t\t\t\t{this.name}\n\t\t\t\t\t{typeof this.brand == \"string\" ? (\n\t\t\t\t\t\t<span class={this.brand.toLowerCase()}>{this.brand}</span>\n\t\t\t\t\t) : Array.isArray(this.brand) ? (\n\t\t\t\t\t\tthis.brand.map(b => <span class={b.toLowerCase()}>{b}</span>)\n\t\t\t\t\t) : (\n\t\t\t\t\t\t[]\n\t\t\t\t\t)}\n\t\t\t\t</summary>\n\t\t\t\t<fieldset disabled={!this.open} name={this.name}>\n\t\t\t\t\t<slot />\n\t\t\t\t</fieldset>\n\t\t\t</details>\n\t\t)\n\t}\n}\n"],"mappings":"yDAAA,MAAMA,EAAW,u2C,MCQJC,EAAqB,M,2PAUjCC,YAAYC,GACXC,KAAKC,KAAOF,EACZ,GAAIA,EAAW,CACdC,KAAKE,aAAaC,KAAK,CACtBF,KAAM,KACNG,KAAMJ,KAAKI,M,EAIdC,oBACC,MAAMC,EAAUN,KAAKO,QAAQC,qBAAqB,WAClD,GAAIF,EAAQG,OAAS,EAAG,CACvB,MAAMC,EAAWC,IAChB,GAAIX,KAAKC,KACRD,KAAKY,cAAcT,KAAK,CAAEF,KAAMD,KAAKC,KAAMG,KAAMJ,KAAKI,YAEtDJ,KAAKC,KAAO,KACbU,EAAEE,gBAAgB,EAEnBP,EAAQ,GAAGQ,iBAAiB,QAASJ,GACrCJ,EAAQ,GAAGQ,iBAAiB,QAASJ,E,CAEtCV,KAAKe,8BAA8BZ,MAAKa,IACvChB,KAAKgB,OAASA,CAAM,G,CAGtBC,uB,OACCC,EAAAlB,KAAKgB,UAAM,MAAAE,SAAA,SAAAA,EAAEC,WAAWnB,KAAKO,Q,CAE9Ba,SACC,OACCC,EAAA,WAASpB,KAAMD,KAAKC,MACnBoB,EAAA,eACErB,KAAKC,KACLoB,EAAA,OAAKC,MAAM,6BAA6BC,QAAQ,eAC/CF,EAAA,QAAMG,EAAE,wKAGTH,EAAA,OAAKC,MAAM,6BAA6BC,QAAQ,eAC/CF,EAAA,QAAMG,EAAE,iOAGTxB,KAAKI,YACEJ,KAAKyB,OAAS,SACrBJ,EAAA,QAAMK,MAAO1B,KAAKyB,MAAME,eAAgB3B,KAAKyB,OAC1CG,MAAMC,QAAQ7B,KAAKyB,OACtBzB,KAAKyB,MAAMK,KAAIC,GAAKV,EAAA,QAAMK,MAAOK,EAAEJ,eAAgBI,KAAU,IAK/DV,EAAA,YAAUW,UAAWhC,KAAKC,KAAMG,KAAMJ,KAAKI,MAC1CiB,EAAA,c"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
class t{get name(){return typeof this._name=="function"?this._name():this._name}get condition(){return typeof this._condition=="function"?this._condition():this._condition}optional(){return new e(this)}readonly(){return new n(this)}array(...t){return s(this,...t)}constructor(t,e){this._name=t;this._condition=e;this.get=t=>this.is(t)?this.getValue(t):undefined;this.flaw=t=>this.is(t)?{type:this.name,...this.condition?{condition:this.condition}:undefined,isFlaw:false,message:"This type is correct."}:{...this.condition?{condition:this.condition}:undefined,...this.createFlaw(t),type:this.name}}getValue(t){return t}createFlaw(t){return{}}createFlawFromType(t,e){return"createFlaw"in t&&typeof t.createFlaw=="function"?t.createFlaw(e):t.flaw(e)}}class e extends t{constructor(t){super((()=>t.name+" | undefined"),t.condition);this.backend=t;this.is=t=>t==undefined||this.backend.is(t)}createFlaw(t){return this.createFlawFromType(this.backend,t)}}class n extends t{constructor(t){super((()=>`Readonly<${t.name}>`),t.condition);this.backend=t;this.is=t=>t==undefined||this.backend.is(t)}createFlaw(t){return this.createFlawFromType(this.backend,t)}}function s(t,...e){return new r(t,e)}const i={length:{is:(t,e)=>t.length==e,condition:t=>`length == ${t}`},minLength:{is:(t,e)=>t.length>=e,condition:t=>`minLength == ${t}`},maxLength:{is:(t,e)=>t.length<=e,condition:t=>`maxLength == ${t}`}};class r extends t{constructor(t,e){super((()=>this.baseName()+"[]"),e.length>0?e.map((t=>i[t.criteria].condition(t.value))).join(" & "):undefined);this.itemType=t;this.options=e;this.is=t=>globalThis.Array.isArray(t)&&this.options.every((e=>i[e.criteria].is(t,e.value)))&&t.every((t=>this.itemType.is(t)))}baseName(){return this.itemType.name.includes(" ")?`(${this.itemType.name})`:this.itemType.name}itemName(t){return`${this.baseName()}[${t}]`}createFlaw(t){const e=globalThis.Array.isArray(t)&&t.flatMap(((t,e)=>{const n=this.itemType.flaw(t);return n.isFlaw??true?[{...n,type:this.itemName(e)}]:[]}))||[];return{...e.length>0?{flaws:e}:undefined}}getValue(t){return t.map((t=>this.itemType.get(t)))}}class o extends t{constructor(t){super(t==undefined?"boolean":t?"true":"false");this.booleanValue=t;this.is=t=>typeof t=="boolean"&&(this.booleanValue==undefined||t==this.booleanValue)}}function u(t){return new o(t)}class c extends t{constructor(t,e){super(e??(()=>(this.backend??=t()).name),(()=>(this.backend??=t()).condition));this.factory=t;this.is=t=>(this.backend??=this.factory()).is(t);this.get=t=>this.backend.get(t)}createFlaw(t){return this.createFlawFromType(this.backend??=this.factory(),t)}}function a(t,e){return new c(t,e)}class h extends t{constructor(t,e,n){super((()=>n??(this.baseType?`${this.baseType.name} & `:"")+`{${globalThis.Object.entries(this.properties).map((([t,e])=>`${t}: ${e.name}`)).join(", ")}}`));this.baseType=t;this.properties=e;this.is=t=>!!(t&&(this.baseType==undefined||this.baseType.is(t))&&typeof t=="object"&&!globalThis.Array.isArray(t)&&globalThis.Object.entries(this.properties).every((([e,n])=>n.is(t[e]))))}extend(t,e){return new h(this,t,e)}omit(t,e){return new h(this.baseType?.omit(t),globalThis.Object.fromEntries(globalThis.Object.entries(this.properties).filter((([e])=>!t.includes(e)))),e??`Omit<${this.name}, ${t.map((t=>`"${String(t)}"`)).join(" | ")}>`)}pick(t,e){return new h(this.baseType?.pick(t),globalThis.Object.fromEntries(globalThis.Object.entries(this.properties).filter((([e])=>t.includes(e)))),e??`Pick<${this.name}, ${t.map((t=>`"${String(t)}"`)).join(" | ")}>`)}createFlaw(t){return{flaws:[this.baseType?this.baseType.flaw(t)?.flaws??[]:[],globalThis.Object.entries(this.properties).map((([e,n])=>[e,n.flaw(t?.[e])])).map((([t,e])=>(e?.isFlaw??true)&&{property:t,...e})).filter((t=>t))].flat().filter((t=>t?.isFlaw??true))}}getValue(t){const e=this.baseType?this.baseType.getValue(t):{};if(e)for(const[n,s]of globalThis.Object.entries(this.properties))if(n in t)e[n]=s.get(t[n]);return e}}function l(t,e){return new h(undefined,t??{},e)}class f extends t{constructor(t){super(typeof t=="string"?`"${t}"`:"string",(()=>{const t=this.getConditionObject();return t instanceof RegExp?`/${t.source}/${t.flags}`:globalThis.Object.keys(t).map((t=>`"${t}"`)).join(" | ")}));this.stringCondition=t;this.is=t=>{const e=this.getConditionObject();return typeof t=="string"&&(e instanceof RegExp?e.test(t):typeof e=="object"?t in e:e)}}getConditionObject(){return this.conditionObject??=Array.isArray(this.stringCondition)?this.stringCondition.reduce(((t,e)=>{t[e]=true;return t}),globalThis.Object.create(null)):typeof this.stringCondition=="string"?{[this.stringCondition]:true}:typeof this.stringCondition=="object"?this.stringCondition:true}}function d(t){return new f(t)}var g;(function(t){t.type=l({message:d().optional(),isFlaw:u().optional(),property:d().optional(),type:d(),flaws:s(a((()=>t.type))).optional(),condition:d().optional()},"Flaw");t.is=t.type.is;t.flaw=t.type.flaw})(g||(g={}));class p extends t{constructor(t,e){super(t);this.isFunction=e;this.is=t=>this.isFunction(t)}}function b(t,e){return new p(t,e)}const w={positive:{is:t=>t>0,condition:"> 0"},negative:{is:t=>t<0,condition:"< 0"},integer:{is:t=>Number.isInteger(t),condition:"Number.isInteger"}};function y(t){return typeof t=="number"?[e=>e==t," == "+t.toString()]:(t=>Array.isArray(t)&&t.every((t=>typeof t=="number")))(t)?[e=>t.map(y).some((t=>t[0](e))),t.join(" | ")]:(t=>Array.isArray(t)&&t.every((t=>typeof t=="string"&&t in w)))(t)?[e=>t.map(y).every((t=>t[0](e))),t.map(y).map((t=>t[1])).join(" & ")]:typeof t==="function"?[t,"custom"]:t in w?[w[t].is,w[t].condition]:[()=>false,"Unknown criteria"]}class m extends t{constructor(t,e){super("number",e);this.isFunction=t;this.is=t=>typeof t=="number"&&!Number.isNaN(t-t)&&(!this.isFunction||this.isFunction(t))}}function v(t){const[e,n]=t==undefined?[undefined,undefined]:y(t);return new m(e,n)}class $ extends t{constructor(t,e){super((()=>`Record<${t.name}, ${e.name}>`));this.keyType=t;this.valueType=e;this.is=t=>!!(t&&typeof t=="object"&&!globalThis.Array.isArray(t)&&globalThis.Object.entries(t).every((([t,e])=>this.keyType.is(this.keyType.name=="number"&&`${+t}`==t?+t:t)&&this.valueType.is(e))))}createFlaw(t){return{flaws:t&&typeof t=="object"&&!globalThis.Array.isArray(t)&&globalThis.Object.entries(t).flatMap((([t,e])=>[this.keyType.flaw(this.keyType.name=="number"&&`${+t}`==t?+t:t),this.valueType.flaw(e)].map(((e,n)=>(e.isFlaw??true)&&{property:t+` (${["key","value"][n]})`,...e})).filter(Boolean)))}}getValue(t){return globalThis.Object.fromEntries(globalThis.Object.entries(t).map((([t,e])=>[t,this.valueType.get(e)])))}}function T(t,e){return new $(t,e)}class j extends t{constructor(...t){super((()=>t.map((t=>t.name)).join(" | ")));this.is=t=>this.types.some((e=>e.is(t)));this.types=t}createFlaw(t){return{flaws:this.types.map((e=>e.flaw(t))).filter((t=>t))}}getValue(t){return this.types.find((e=>e.is(t)))?.get(t)}}function x(...t){return new j(...t)}class F extends t{constructor(){super(...arguments);this.is=t=>t===undefined}}function O(t){return new F(t??"undefined")}var k;(function(t){t.types=["default","primary","secondary","tertiary","success","warning","danger","light","medium","dark"];t.type=d(t.types);t.is=t.type.is})(k||(k={}));var L;(function(t){const e={"*":"https://ionicons.pages.dev/svg/${name}.svg"};const n={};async function s(t){const e=await globalThis.fetch(t);return e.ok?e.text():undefined}async function i(t){var i,r;const o=((i=e[t])!==null&&i!==void 0?i:e["*"]).replace("${name}",t);return(r=n[o])!==null&&r!==void 0?r:n[o]=s(o)}t.load=i;function r(t,...n){for(const s of n)e[s]=t}t.add=r})(L||(L={}));class N{static is(t){return typeof t=="object"&&typeof t.destination=="string"&&t.content!=undefined}static send(t,e,n){if(N.is(t)&&n==undefined){n=e;if(!n)n=window;const s=t.destination.split("#",2);t={destination:s[1],content:t.content};n.postMessage(t,s[0])}else if(typeof n!="string"){if(!n)n=window;if(typeof t=="string")N.send({destination:t,content:e},n)}}static listen(t,e,n){const s=t.split("#",2);let i="";if(s.length==2){t=s[0];i=s[1]}(n||window).addEventListener("message",(n=>{const s=n.data;if(N.is(s)&&(t=="*"||n.origin==t)&&(i==""||s.destination==i))e(s.destination,s.content)}))}}class V{static is(t){return typeof t=="object"&&typeof t.name=="string"}}var B=undefined&&undefined.__classPrivateFieldGet||function(t,e,n,s){if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?s:n==="a"?s.call(t):s?s.value:e.get(t)};var E;class R{constructor(){E.set(this,{})}listen(t,e,n){var s,i;(i=(s=B(this,E,"f")[t])===null||s===void 0?void 0:s.push(e))!==null&&i!==void 0?i:B(this,E,"f")[t]=[e];if(!(n===null||n===void 0?void 0:n.lazy))e(this[t])}unlisten(t,e){var n,s;const i=(n=B(this,E,"f")[t])===null||n===void 0?void 0:n.indexOf(e);i!=undefined&&i>=0&&((s=B(this,E,"f")[t])===null||s===void 0?void 0:s.splice(i,1))}batchListen(t,e){for(const n in t){const s=t[n];s&&this.listen(n,s,e)}}batchUnlisten(t){for(const e in t){const n=t[e];n&&this.unlisten(e,n)}}static load(t){const e=t.listenable;return Object.defineProperties(e,n(t));function n(t){return Object.fromEntries(Object.entries(Object.assign(Object.assign({},Object.getOwnPropertyDescriptors(t)),Object.getOwnPropertyDescriptors(Object.getPrototypeOf(t)))).map((([n,s])=>[n,typeof s.value=="function"?{get(){return t[n].bind(t)}}:s.writable||s.set?{get(){return t[n]},set(s){var i;t[n]=s;(i=B(e,E,"f")[n])===null||i===void 0?void 0:i.forEach((e=>e(t[n])))}}:{get(){return t[n]}}])))}}}E=new WeakMap;var A;(function(t){t.valueType=x(d(),v(),u(),b("Blob",(t=>t instanceof Blob)),O());t.type=T(d(),x(a((()=>t.type),"Data"),t.valueType));function e(t,[n,...s],i){const r=t[n!==null&&n!==void 0?n:""];return Object.assign(Object.assign({},t),{[n!==null&&n!==void 0?n:""]:!s.length?i:e(typeof r=="object"&&!(r instanceof Blob)?r:{},s,i)})}t.set=e;function n(t){return s({},t)}t.deepen=n;function s(t,n){return Object.entries(n).reduce(((t,[n,s])=>e(t,n.split("."),s)),t)}t.merge=s})(A||(A={}));export{k as C,A as D,L as I,R as L,N as M,V as T,t as a,u as b,l as o,T as r,d as s,x as u};
|
|
2
|
+
//# sourceMappingURL=p-2e986022.js.map
|