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,803 +0,0 @@
|
|
|
1
|
-
class TextEncoder {
|
|
2
|
-
constructor() {
|
|
3
|
-
this.encoding = "utf-8";
|
|
4
|
-
}
|
|
5
|
-
encode(data) {
|
|
6
|
-
return Uint8Array.from(unescape(encodeURIComponent(data)).split(""), c => c.charCodeAt(0));
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const tables = {
|
|
11
|
-
standard: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
|
|
12
|
-
url: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",
|
|
13
|
-
};
|
|
14
|
-
function encode(value, standard = "standard", padding = "") {
|
|
15
|
-
if (typeof value == "string")
|
|
16
|
-
value = new TextEncoder().encode(value);
|
|
17
|
-
const table = tables[standard];
|
|
18
|
-
const result = [];
|
|
19
|
-
for (let c = 0; c < value.length; c += 3) {
|
|
20
|
-
const c0 = value[c];
|
|
21
|
-
const c1 = c + 1 < value.length ? value[c + 1] : 0;
|
|
22
|
-
const c2 = c + 2 < value.length ? value[c + 2] : 0;
|
|
23
|
-
result.push(table[c0 >>> 2]);
|
|
24
|
-
result.push(table[((c0 & 3) << 4) | (c1 >>> 4)]);
|
|
25
|
-
result.push(table[((c1 & 15) << 2) | (c2 >>> 6)]);
|
|
26
|
-
result.push(table[c2 & 63]);
|
|
27
|
-
}
|
|
28
|
-
const length = Math.ceil((value.length / 3) * 4);
|
|
29
|
-
return result.join("").substr(0, length) + padding.repeat(result.length - length);
|
|
30
|
-
}
|
|
31
|
-
function decode(value, standard = "standard") {
|
|
32
|
-
while (value.endsWith("=") && value.length > 0)
|
|
33
|
-
value = value.substr(0, value.length - 1);
|
|
34
|
-
const table = tables[standard];
|
|
35
|
-
const data = value.split("").map(c => table.indexOf(c));
|
|
36
|
-
const result = new Uint8Array(Math.floor((data.length / 4) * 3));
|
|
37
|
-
for (let c = 0; c < result.length; c += 3) {
|
|
38
|
-
const d0 = data.shift() || 0;
|
|
39
|
-
const d1 = data.shift() || 0;
|
|
40
|
-
const d2 = data.shift() || 0;
|
|
41
|
-
const d3 = data.shift() || 0;
|
|
42
|
-
result[c] = (d0 << 2) | (d1 >>> 4);
|
|
43
|
-
result[c + 1] = ((d1 & 15) << 4) | (d2 >>> 2);
|
|
44
|
-
result[c + 2] = ((d2 & 3) << 6) | d3;
|
|
45
|
-
}
|
|
46
|
-
return result;
|
|
47
|
-
}
|
|
48
|
-
function next(value, increment = 1, standard = "standard") {
|
|
49
|
-
const table = tables[standard];
|
|
50
|
-
const rest = value.length > 1 ? value.substring(0, value.length - 1) : increment > 0 ? "" : table[63];
|
|
51
|
-
const number = (value.length == 0 ? 0 : table.indexOf(value[value.length - 1])) + increment;
|
|
52
|
-
return ((number > 63 || number < 0 ? next(rest, Math.floor(number / 63), standard) : rest) + table[remainder(number, 64)]);
|
|
53
|
-
}
|
|
54
|
-
function remainder(left, right) {
|
|
55
|
-
return left >= 0 ? left % right : remainder(left + right, right);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
const crypto = typeof window != "undefined"
|
|
59
|
-
? window.crypto || window.msCrypto
|
|
60
|
-
: self.crypto || self.msCrypto;
|
|
61
|
-
|
|
62
|
-
var Algorithms;
|
|
63
|
-
(function (Algorithms) {
|
|
64
|
-
function create(create, current, ...secrets) {
|
|
65
|
-
const [first, ...remainder] = isStringArray(secrets)
|
|
66
|
-
? secrets.map(part => Object.fromEntries(part.split(",").map(secret => secret.split(":", 2).map(item => item.trim()))))
|
|
67
|
-
: secrets;
|
|
68
|
-
const result = Object.assign({}, ...Object.entries(first)
|
|
69
|
-
.map(([name, secret]) => [
|
|
70
|
-
name,
|
|
71
|
-
[secret, ...remainder.map(part => part[name]).filter(part => part)],
|
|
72
|
-
])
|
|
73
|
-
.map(([name, secrets]) => ({
|
|
74
|
-
get [name]() {
|
|
75
|
-
return Object.assign(create(secrets), { name });
|
|
76
|
-
},
|
|
77
|
-
})));
|
|
78
|
-
return { current: result[current], ...result };
|
|
79
|
-
}
|
|
80
|
-
Algorithms.create = create;
|
|
81
|
-
})(Algorithms || (Algorithms = {}));
|
|
82
|
-
function isStringArray(value) {
|
|
83
|
-
return Array.isArray(value) && value.length > 0 && typeof value[0] == "string";
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
var Encrypted;
|
|
87
|
-
(function (Encrypted) {
|
|
88
|
-
function is(value) {
|
|
89
|
-
return (typeof value == "object" &&
|
|
90
|
-
(value.key == undefined || typeof value.key == "string") &&
|
|
91
|
-
typeof value.value == "string" &&
|
|
92
|
-
typeof value.salt == "string");
|
|
93
|
-
}
|
|
94
|
-
Encrypted.is = is;
|
|
95
|
-
function stringify(encrypted) {
|
|
96
|
-
encrypted.key = encrypted.key && encrypted.key.length != 4 ? encrypted.key.slice(-2) : encrypted.key;
|
|
97
|
-
return [encrypted.key, encrypted.salt, encrypted.value].join(".");
|
|
98
|
-
}
|
|
99
|
-
Encrypted.stringify = stringify;
|
|
100
|
-
function parse(encryptedString) {
|
|
101
|
-
const splitted = encryptedString.split(".");
|
|
102
|
-
const encrypted = { key: splitted[0], salt: splitted[1], value: splitted[2] };
|
|
103
|
-
return Encrypted.is(encrypted) ? encrypted : undefined;
|
|
104
|
-
}
|
|
105
|
-
Encrypted.parse = parse;
|
|
106
|
-
})(Encrypted || (Encrypted = {}));
|
|
107
|
-
|
|
108
|
-
var Identifier;
|
|
109
|
-
(function (Identifier) {
|
|
110
|
-
function is(value, length) {
|
|
111
|
-
return (typeof value == "string" &&
|
|
112
|
-
(length == undefined || value.length == length) &&
|
|
113
|
-
Array.from(value).every(c => (c >= "0" && c <= "9") || (c >= "A" && c <= "Z") || (c >= "a" && c <= "z") || c == "-" || c == "_"));
|
|
114
|
-
}
|
|
115
|
-
Identifier.is = is;
|
|
116
|
-
function fromUint24(value) {
|
|
117
|
-
return fromHexadecimal(value.toString(16).padStart(6, "0"));
|
|
118
|
-
}
|
|
119
|
-
Identifier.fromUint24 = fromUint24;
|
|
120
|
-
function toUint24(identifier) {
|
|
121
|
-
return Number.parseInt(toHexadecimal(identifier, 6), 16);
|
|
122
|
-
}
|
|
123
|
-
Identifier.toUint24 = toUint24;
|
|
124
|
-
function fromUint48(value) {
|
|
125
|
-
return fromHexadecimal(value.toString(16).padStart(12, "0"));
|
|
126
|
-
}
|
|
127
|
-
Identifier.fromUint48 = fromUint48;
|
|
128
|
-
function toUint48(identifier) {
|
|
129
|
-
return Number.parseInt(toHexadecimal(identifier, 12), 16);
|
|
130
|
-
}
|
|
131
|
-
Identifier.toUint48 = toUint48;
|
|
132
|
-
function fromBinary(identifier) {
|
|
133
|
-
return encode(identifier, "url");
|
|
134
|
-
}
|
|
135
|
-
Identifier.fromBinary = fromBinary;
|
|
136
|
-
function toBinary(identifier) {
|
|
137
|
-
return decode(identifier, "url");
|
|
138
|
-
}
|
|
139
|
-
Identifier.toBinary = toBinary;
|
|
140
|
-
function generate(length) {
|
|
141
|
-
return fromBinary(crypto.getRandomValues(new Uint8Array((length / 4) * 3)));
|
|
142
|
-
}
|
|
143
|
-
Identifier.generate = generate;
|
|
144
|
-
function fromHexadecimal(identifier) {
|
|
145
|
-
if (identifier.length % 2 == 1)
|
|
146
|
-
identifier += "0";
|
|
147
|
-
const result = new Uint8Array(identifier.length / 2);
|
|
148
|
-
for (let index = 0; index < result.length; index++)
|
|
149
|
-
result[index] = Number.parseInt(identifier[index * 2], 16) * 16 + Number.parseInt(identifier[index * 2 + 1], 16);
|
|
150
|
-
return fromBinary(result);
|
|
151
|
-
}
|
|
152
|
-
Identifier.fromHexadecimal = fromHexadecimal;
|
|
153
|
-
function toHexadecimal(identifier, length) {
|
|
154
|
-
const data = decode(identifier, "url");
|
|
155
|
-
let result = [];
|
|
156
|
-
for (const d of data)
|
|
157
|
-
result.push(Math.floor(d / 16).toString(16), (d % 16).toString(16));
|
|
158
|
-
if (length)
|
|
159
|
-
result = result.slice(0, length);
|
|
160
|
-
return result.join("");
|
|
161
|
-
}
|
|
162
|
-
Identifier.toHexadecimal = toHexadecimal;
|
|
163
|
-
function min(length) {
|
|
164
|
-
return "".padStart(length, "A");
|
|
165
|
-
}
|
|
166
|
-
Identifier.min = min;
|
|
167
|
-
function max(length) {
|
|
168
|
-
return "".padStart(length, "_");
|
|
169
|
-
}
|
|
170
|
-
Identifier.max = max;
|
|
171
|
-
function next$1(identifier, increment = 1) {
|
|
172
|
-
const result = next(identifier, increment, "url");
|
|
173
|
-
return result.length == identifier.length ? result : result.substring(result.length - identifier.length);
|
|
174
|
-
}
|
|
175
|
-
Identifier.next = next$1;
|
|
176
|
-
function previous(identifier, decrement = 1) {
|
|
177
|
-
return next$1(identifier, -decrement);
|
|
178
|
-
}
|
|
179
|
-
Identifier.previous = previous;
|
|
180
|
-
Identifier.length = [
|
|
181
|
-
4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 112,
|
|
182
|
-
116, 120, 124, 128,
|
|
183
|
-
];
|
|
184
|
-
(function (Length) {
|
|
185
|
-
function is(value) {
|
|
186
|
-
return typeof value == "number" && value >= 4 && value <= 128 && (value & 252) == value;
|
|
187
|
-
}
|
|
188
|
-
Length.is = is;
|
|
189
|
-
})(Identifier.Length || (Identifier.Length = {}));
|
|
190
|
-
})(Identifier || (Identifier = {}));
|
|
191
|
-
|
|
192
|
-
var Password;
|
|
193
|
-
(function (Password) {
|
|
194
|
-
function is(value) {
|
|
195
|
-
return (typeof value == "string" ||
|
|
196
|
-
(typeof value == "object" && typeof value.hash == "string" && typeof value.salt == "string"));
|
|
197
|
-
}
|
|
198
|
-
Password.is = is;
|
|
199
|
-
async function hash(algorithm, password, salt) {
|
|
200
|
-
if (!salt)
|
|
201
|
-
salt = encode(crypto.getRandomValues(new Uint8Array(64)));
|
|
202
|
-
return {
|
|
203
|
-
hash: await algorithm.sign(salt + password),
|
|
204
|
-
salt,
|
|
205
|
-
};
|
|
206
|
-
}
|
|
207
|
-
Password.hash = hash;
|
|
208
|
-
async function verify(algorithm, hash, password) {
|
|
209
|
-
return (await Password.hash(algorithm, password, hash.salt)).hash == hash.hash;
|
|
210
|
-
}
|
|
211
|
-
Password.verify = verify;
|
|
212
|
-
(function (Hashed) {
|
|
213
|
-
function is(value) {
|
|
214
|
-
return typeof value == "object" && typeof value.hash == "string" && typeof value.salt == "string";
|
|
215
|
-
}
|
|
216
|
-
Hashed.is = is;
|
|
217
|
-
})(Password.Hashed || (Password.Hashed = {}));
|
|
218
|
-
})(Password || (Password = {}));
|
|
219
|
-
|
|
220
|
-
var RandomValue;
|
|
221
|
-
(function (RandomValue) {
|
|
222
|
-
function generate(array) {
|
|
223
|
-
return crypto.getRandomValues(array);
|
|
224
|
-
}
|
|
225
|
-
RandomValue.generate = generate;
|
|
226
|
-
})(RandomValue || (RandomValue = {}));
|
|
227
|
-
|
|
228
|
-
var Algorithm$1;
|
|
229
|
-
(function (Algorithm) {
|
|
230
|
-
function is(value) {
|
|
231
|
-
return value == "HMAC" || value == "RSA" || value == "ECDSA" || value == "RSA-PSS";
|
|
232
|
-
}
|
|
233
|
-
Algorithm.is = is;
|
|
234
|
-
})(Algorithm$1 || (Algorithm$1 = {}));
|
|
235
|
-
|
|
236
|
-
class Base {
|
|
237
|
-
async sign(data) {
|
|
238
|
-
return typeof data == "string"
|
|
239
|
-
? encode(await this.signBinary(new TextEncoder().encode(data)), "url")
|
|
240
|
-
: this.signBinary(data);
|
|
241
|
-
}
|
|
242
|
-
verify(data, signature) {
|
|
243
|
-
if (typeof signature == "string")
|
|
244
|
-
signature = decode(signature, "url");
|
|
245
|
-
return typeof data == "string"
|
|
246
|
-
? this.verifyBinary(new TextEncoder().encode(data), signature)
|
|
247
|
-
: this.verifyBinary(data, signature);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
class ECDSA extends Base {
|
|
252
|
-
constructor(hash, publicKey, privateKey) {
|
|
253
|
-
super();
|
|
254
|
-
this.hash = hash;
|
|
255
|
-
if (publicKey) {
|
|
256
|
-
if (typeof publicKey == "string")
|
|
257
|
-
publicKey = decode(publicKey);
|
|
258
|
-
this.publicKey = crypto.subtle.importKey("spki", publicKey, { name: "ECDSA", namedCurve: hash.replace("SHA", "P") == "P-512" ? "P-521" : hash.replace("SHA", "P") }, false, ["verify"]);
|
|
259
|
-
}
|
|
260
|
-
if (privateKey) {
|
|
261
|
-
if (typeof privateKey == "string")
|
|
262
|
-
privateKey = decode(privateKey);
|
|
263
|
-
this.privateKey = crypto.subtle.importKey("pkcs8", privateKey, { name: "ECDSA", namedCurve: hash.replace("SHA", "P") == "P-512" ? "P-521" : hash.replace("SHA", "P") }, true, ["sign", "verify"]);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
async signBinary(data) {
|
|
267
|
-
return new Uint8Array(await crypto.subtle.sign({ name: "ECDSA", hash: { name: this.hash } }, await this.privateKey, data));
|
|
268
|
-
}
|
|
269
|
-
async verifyBinary(data, signature) {
|
|
270
|
-
return crypto.subtle.verify({ name: "ECDSA", hash: { name: this.hash } }, await this.publicKey, signature, data);
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
var Hash;
|
|
275
|
-
(function (Hash) {
|
|
276
|
-
function is(value) {
|
|
277
|
-
return value == "SHA-1" || value == "SHA-256" || value == "SHA-384" || value == "SHA-512";
|
|
278
|
-
}
|
|
279
|
-
Hash.is = is;
|
|
280
|
-
})(Hash || (Hash = {}));
|
|
281
|
-
|
|
282
|
-
class Symmetric$1 extends Base {
|
|
283
|
-
async verifyBinary(data, signature) {
|
|
284
|
-
return encode(await this.signBinary(data), "url") == encode(signature, "url");
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
class HMAC extends Symmetric$1 {
|
|
289
|
-
constructor(hash, key) {
|
|
290
|
-
super();
|
|
291
|
-
this.hash = hash;
|
|
292
|
-
if (typeof key == "string")
|
|
293
|
-
key = decode(key, "url");
|
|
294
|
-
this.key = crypto.subtle.importKey("raw", key, { name: "HMAC", hash: { name: hash } }, false, ["sign", "verify"]);
|
|
295
|
-
}
|
|
296
|
-
async signBinary(data) {
|
|
297
|
-
return new Uint8Array(await crypto.subtle.sign("HMAC", await this.key, data));
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
class None extends Symmetric$1 {
|
|
302
|
-
signBinary(_) {
|
|
303
|
-
return Promise.resolve(new Uint8Array(0));
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
class Rsa extends Base {
|
|
308
|
-
constructor(variant, publicKey, privateKey) {
|
|
309
|
-
super();
|
|
310
|
-
this.variant = variant;
|
|
311
|
-
this.publicKey = publicKey;
|
|
312
|
-
this.privateKey = privateKey;
|
|
313
|
-
}
|
|
314
|
-
get parameters() {
|
|
315
|
-
return getParameters(this.variant);
|
|
316
|
-
}
|
|
317
|
-
async signBinary(data) {
|
|
318
|
-
return this.privateKey
|
|
319
|
-
? new Uint8Array(await crypto.subtle.sign(this.parameters, await this.privateKey, data))
|
|
320
|
-
: new Uint8Array(0);
|
|
321
|
-
}
|
|
322
|
-
async verifyBinary(data, signature) {
|
|
323
|
-
return !!this.publicKey && crypto.subtle.verify(this.parameters, await this.publicKey, signature, data);
|
|
324
|
-
}
|
|
325
|
-
async export(type, format = "base64") {
|
|
326
|
-
const key = await (type == "private" ? this.privateKey : this.publicKey);
|
|
327
|
-
let result;
|
|
328
|
-
if (key)
|
|
329
|
-
switch (format) {
|
|
330
|
-
case "jwk":
|
|
331
|
-
result = await crypto.subtle.exportKey("jwk", key);
|
|
332
|
-
break;
|
|
333
|
-
case "buffer":
|
|
334
|
-
result = await crypto.subtle.exportKey(type == "private" ? "pkcs8" : "spki", key);
|
|
335
|
-
break;
|
|
336
|
-
case "base64":
|
|
337
|
-
{
|
|
338
|
-
const data = await this.export(type, "buffer");
|
|
339
|
-
result = data && encode(new Uint8Array(data), "standard", "=");
|
|
340
|
-
}
|
|
341
|
-
break;
|
|
342
|
-
case "pem":
|
|
343
|
-
{
|
|
344
|
-
const data = await this.export(type, "base64");
|
|
345
|
-
result =
|
|
346
|
-
data &&
|
|
347
|
-
[
|
|
348
|
-
`-----BEGIN ${type.toUpperCase()} KEY-----`,
|
|
349
|
-
...slice(data, 64),
|
|
350
|
-
`-----END ${type.toUpperCase()} KEY-----`,
|
|
351
|
-
].join("\n");
|
|
352
|
-
}
|
|
353
|
-
break;
|
|
354
|
-
}
|
|
355
|
-
return result;
|
|
356
|
-
}
|
|
357
|
-
static import(variant, hash, publicKey, privateKey) {
|
|
358
|
-
return new Rsa(variant, Rsa.importHelper(variant, hash, "public", publicKey), Rsa.importHelper(variant, hash, "private", privateKey));
|
|
359
|
-
}
|
|
360
|
-
static importHelper(variant, hash, type, key) {
|
|
361
|
-
if (typeof key == "string")
|
|
362
|
-
key = decode(key);
|
|
363
|
-
return (key &&
|
|
364
|
-
crypto.subtle.importKey(type == "private" ? "pkcs8" : "spki", key, { name: getParameters(variant).name, hash: { name: hash } }, true, [type == "private" ? "sign" : "verify"]));
|
|
365
|
-
}
|
|
366
|
-
static generate(variant, hash, length) {
|
|
367
|
-
const keyPair = crypto.subtle.generateKey({
|
|
368
|
-
name: getParameters(variant).name,
|
|
369
|
-
modulusLength: length,
|
|
370
|
-
publicExponent: new Uint8Array([1, 0, 1]),
|
|
371
|
-
hash,
|
|
372
|
-
}, true, ["sign", "verify"]);
|
|
373
|
-
return new Rsa(variant, keyPair.then(value => value.publicKey), keyPair.then(value => value.privateKey));
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
function* slice(data, length) {
|
|
377
|
-
let start = 0;
|
|
378
|
-
while (start < data.length)
|
|
379
|
-
yield data.slice(start, (start = start + length));
|
|
380
|
-
}
|
|
381
|
-
function getParameters(variant) {
|
|
382
|
-
return variant == "PSS" ? { name: "RSA-PSS", saltLength: 128 } : { name: "RSASSA-PKCS1-v1_5" };
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
var Signer;
|
|
386
|
-
(function (Signer) {
|
|
387
|
-
(function (Algorithm) {
|
|
388
|
-
Algorithm.is = Algorithm$1.is;
|
|
389
|
-
})(Signer.Algorithm || (Signer.Algorithm = {}));
|
|
390
|
-
(function (Hash$1) {
|
|
391
|
-
Hash$1.is = Hash.is;
|
|
392
|
-
})(Signer.Hash || (Signer.Hash = {}));
|
|
393
|
-
function generate(algorithm, hash, length) {
|
|
394
|
-
let result;
|
|
395
|
-
switch (algorithm) {
|
|
396
|
-
case "RSA":
|
|
397
|
-
result = Rsa.generate("SSA", hash, length);
|
|
398
|
-
break;
|
|
399
|
-
case "RSA-PSS":
|
|
400
|
-
result = Rsa.generate("PSS", hash, length);
|
|
401
|
-
break;
|
|
402
|
-
}
|
|
403
|
-
return result;
|
|
404
|
-
}
|
|
405
|
-
Signer.generate = generate;
|
|
406
|
-
function create(algorithm, hash, ...keys) {
|
|
407
|
-
let result;
|
|
408
|
-
if (hash != undefined)
|
|
409
|
-
switch (algorithm) {
|
|
410
|
-
case "HMAC":
|
|
411
|
-
result = new HMAC(hash, keys[0]);
|
|
412
|
-
break;
|
|
413
|
-
case "RSA":
|
|
414
|
-
result = Rsa.import("SSA", hash, keys[0], keys[1]);
|
|
415
|
-
break;
|
|
416
|
-
case "RSA-PSS":
|
|
417
|
-
result = Rsa.import("PSS", hash, keys[0], keys[1]);
|
|
418
|
-
break;
|
|
419
|
-
case "ECDSA":
|
|
420
|
-
result = new ECDSA(hash, keys[0], keys[1]);
|
|
421
|
-
break;
|
|
422
|
-
}
|
|
423
|
-
else if (algorithm == "None")
|
|
424
|
-
result = new None();
|
|
425
|
-
return result;
|
|
426
|
-
}
|
|
427
|
-
Signer.create = create;
|
|
428
|
-
})(Signer || (Signer = {}));
|
|
429
|
-
|
|
430
|
-
if (!Uint8Array.__proto__.from) {
|
|
431
|
-
(() => {
|
|
432
|
-
Uint8Array.__proto__.from = function (object, theFunction, thisObject) {
|
|
433
|
-
const typedArrayClass = Uint8Array.__proto__;
|
|
434
|
-
if (typeof this !== "function") {
|
|
435
|
-
throw new TypeError("# is not a constructor");
|
|
436
|
-
}
|
|
437
|
-
if (this.__proto__ !== typedArrayClass) {
|
|
438
|
-
throw new TypeError("this is not a typed array.");
|
|
439
|
-
}
|
|
440
|
-
theFunction = theFunction || (element => element);
|
|
441
|
-
if (typeof theFunction !== "function") {
|
|
442
|
-
throw new TypeError("specified argument is not a function");
|
|
443
|
-
}
|
|
444
|
-
object = Object(object);
|
|
445
|
-
if (!object.length) {
|
|
446
|
-
return new this(0);
|
|
447
|
-
}
|
|
448
|
-
let copyData = [];
|
|
449
|
-
for (const data of copyData) {
|
|
450
|
-
copyData.push(data);
|
|
451
|
-
}
|
|
452
|
-
copyData = copyData.map(theFunction, thisObject);
|
|
453
|
-
const typedArray = new this(copyData.length);
|
|
454
|
-
for (let i = 0; i < typedArray.length; i++) {
|
|
455
|
-
typedArray[i] = copyData[i];
|
|
456
|
-
}
|
|
457
|
-
return typedArray;
|
|
458
|
-
};
|
|
459
|
-
})();
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
var Converter;
|
|
463
|
-
(function (Converter) {
|
|
464
|
-
function is(value) {
|
|
465
|
-
return (typeof value == "object" &&
|
|
466
|
-
Object.values(value).every(v => v &&
|
|
467
|
-
typeof v == "object" &&
|
|
468
|
-
"forward" in v &&
|
|
469
|
-
typeof v.forward == "function" &&
|
|
470
|
-
"backward" in v &&
|
|
471
|
-
typeof v.backward == "function"));
|
|
472
|
-
}
|
|
473
|
-
Converter.is = is;
|
|
474
|
-
})(Converter || (Converter = {}));
|
|
475
|
-
|
|
476
|
-
var Crypto;
|
|
477
|
-
(function (Crypto) {
|
|
478
|
-
function is(value) {
|
|
479
|
-
return Array.isArray(value) && value.every(v => typeof v == "string");
|
|
480
|
-
}
|
|
481
|
-
Crypto.is = is;
|
|
482
|
-
})(Crypto || (Crypto = {}));
|
|
483
|
-
|
|
484
|
-
var Renamer;
|
|
485
|
-
(function (Renamer) {
|
|
486
|
-
function is(value) {
|
|
487
|
-
return typeof value == "object" && Object.entries(value).every(thing => typeof thing[1] == "string");
|
|
488
|
-
}
|
|
489
|
-
Renamer.is = is;
|
|
490
|
-
})(Renamer || (Renamer = {}));
|
|
491
|
-
|
|
492
|
-
var Creatable;
|
|
493
|
-
(function (Creatable) {
|
|
494
|
-
function is(value) {
|
|
495
|
-
return Crypto.is(value) || Converter.is(value) || Renamer.is(value);
|
|
496
|
-
}
|
|
497
|
-
Creatable.is = is;
|
|
498
|
-
(function (Converter$1) {
|
|
499
|
-
Converter$1.is = Converter.is;
|
|
500
|
-
})(Creatable.Converter || (Creatable.Converter = {}));
|
|
501
|
-
(function (Crypto$1) {
|
|
502
|
-
Crypto$1.is = Crypto.is;
|
|
503
|
-
})(Creatable.Crypto || (Creatable.Crypto = {}));
|
|
504
|
-
(function (Renamer$1) {
|
|
505
|
-
Renamer$1.is = Renamer.is;
|
|
506
|
-
})(Creatable.Renamer || (Creatable.Renamer = {}));
|
|
507
|
-
})(Creatable || (Creatable = {}));
|
|
508
|
-
|
|
509
|
-
var Transformer;
|
|
510
|
-
(function (Transformer) {
|
|
511
|
-
function is(value) {
|
|
512
|
-
return typeof value == "object" && typeof value.apply == "function" && typeof value.reverse == "function";
|
|
513
|
-
}
|
|
514
|
-
Transformer.is = is;
|
|
515
|
-
function create(transformer) {
|
|
516
|
-
return {
|
|
517
|
-
apply: transformer.apply ? transformer.apply : (v) => v,
|
|
518
|
-
reverse: transformer.reverse ? transformer.reverse : (v) => v,
|
|
519
|
-
};
|
|
520
|
-
}
|
|
521
|
-
Transformer.create = create;
|
|
522
|
-
})(Transformer || (Transformer = {}));
|
|
523
|
-
|
|
524
|
-
var Asymmetric;
|
|
525
|
-
(function (Asymmetric) {
|
|
526
|
-
function is(value) {
|
|
527
|
-
return (value == "RS256" ||
|
|
528
|
-
value == "RS384" ||
|
|
529
|
-
value == "RS512" ||
|
|
530
|
-
value == "ES256" ||
|
|
531
|
-
value == "ES384" ||
|
|
532
|
-
value == "ES512" ||
|
|
533
|
-
value == "PS256" ||
|
|
534
|
-
value == "PS384" ||
|
|
535
|
-
value == "PS512");
|
|
536
|
-
}
|
|
537
|
-
Asymmetric.is = is;
|
|
538
|
-
})(Asymmetric || (Asymmetric = {}));
|
|
539
|
-
|
|
540
|
-
var Symmetric;
|
|
541
|
-
(function (Symmetric) {
|
|
542
|
-
function is(value) {
|
|
543
|
-
return value == "HS256" || value == "HS384" || value == "HS512";
|
|
544
|
-
}
|
|
545
|
-
Symmetric.is = is;
|
|
546
|
-
})(Symmetric || (Symmetric = {}));
|
|
547
|
-
|
|
548
|
-
var Name;
|
|
549
|
-
(function (Name) {
|
|
550
|
-
function is(value) {
|
|
551
|
-
return value == "none" || Symmetric.is(value) || Asymmetric.is(value);
|
|
552
|
-
}
|
|
553
|
-
Name.is = is;
|
|
554
|
-
(function (Symmetric$1) {
|
|
555
|
-
Symmetric$1.is = Symmetric.is;
|
|
556
|
-
})(Name.Symmetric || (Name.Symmetric = {}));
|
|
557
|
-
(function (Asymmetric$1) {
|
|
558
|
-
Asymmetric$1.is = Asymmetric.is;
|
|
559
|
-
})(Name.Asymmetric || (Name.Asymmetric = {}));
|
|
560
|
-
})(Name || (Name = {}));
|
|
561
|
-
|
|
562
|
-
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
563
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
564
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
565
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
566
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
567
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
568
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
569
|
-
});
|
|
570
|
-
};
|
|
571
|
-
class Algorithm {
|
|
572
|
-
constructor(name, signer) {
|
|
573
|
-
this.name = name;
|
|
574
|
-
this.signer = signer;
|
|
575
|
-
}
|
|
576
|
-
sign(data) {
|
|
577
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
578
|
-
return typeof data == "string" ? this.signer.sign(data) : this.signer.sign(data);
|
|
579
|
-
});
|
|
580
|
-
}
|
|
581
|
-
verify(data, signature) {
|
|
582
|
-
return this.signer.verify(data, signature);
|
|
583
|
-
}
|
|
584
|
-
static create(name, ...keys) {
|
|
585
|
-
let result;
|
|
586
|
-
switch (name) {
|
|
587
|
-
case "ES256":
|
|
588
|
-
result = Signer.create("ECDSA", "SHA-256", keys[0], keys[1]);
|
|
589
|
-
break;
|
|
590
|
-
case "ES384":
|
|
591
|
-
result = Signer.create("ECDSA", "SHA-384", keys[0], keys[1]);
|
|
592
|
-
break;
|
|
593
|
-
case "ES512":
|
|
594
|
-
result = Signer.create("ECDSA", "SHA-512", keys[0], keys[1]);
|
|
595
|
-
break;
|
|
596
|
-
case "PS256":
|
|
597
|
-
result = Signer.create("RSA-PSS", "SHA-256", keys[0], keys[1]);
|
|
598
|
-
break;
|
|
599
|
-
case "PS384":
|
|
600
|
-
result = Signer.create("RSA-PSS", "SHA-384", keys[0], keys[1]);
|
|
601
|
-
break;
|
|
602
|
-
case "PS512":
|
|
603
|
-
result = Signer.create("RSA-PSS", "SHA-512", keys[0], keys[1]);
|
|
604
|
-
break;
|
|
605
|
-
case "HS256":
|
|
606
|
-
result = Signer.create("HMAC", "SHA-256", keys[0]);
|
|
607
|
-
break;
|
|
608
|
-
case "HS384":
|
|
609
|
-
result = Signer.create("HMAC", "SHA-384", keys[0]);
|
|
610
|
-
break;
|
|
611
|
-
case "HS512":
|
|
612
|
-
result = Signer.create("HMAC", "SHA-512", keys[0]);
|
|
613
|
-
break;
|
|
614
|
-
case "RS256":
|
|
615
|
-
result = Signer.create("RSA", "SHA-256", keys[0], keys[1]);
|
|
616
|
-
break;
|
|
617
|
-
case "RS384":
|
|
618
|
-
result = Signer.create("RSA", "SHA-384", keys[0], keys[1]);
|
|
619
|
-
break;
|
|
620
|
-
case "RS512":
|
|
621
|
-
result = Signer.create("RSA", "SHA-512", keys[0], keys[1]);
|
|
622
|
-
break;
|
|
623
|
-
case "none":
|
|
624
|
-
result = Signer.create("None");
|
|
625
|
-
break;
|
|
626
|
-
}
|
|
627
|
-
return result && new Algorithm(name, result);
|
|
628
|
-
}
|
|
629
|
-
static none() {
|
|
630
|
-
return Algorithm.create("none");
|
|
631
|
-
}
|
|
632
|
-
static HS256(key) {
|
|
633
|
-
return Algorithm.create("HS256", key);
|
|
634
|
-
}
|
|
635
|
-
static HS384(key) {
|
|
636
|
-
return Algorithm.create("HS384", key);
|
|
637
|
-
}
|
|
638
|
-
static HS512(key) {
|
|
639
|
-
return Algorithm.create("HS512", key);
|
|
640
|
-
}
|
|
641
|
-
static RS256(publicKey, privateKey) {
|
|
642
|
-
return Algorithm.create("RS256", publicKey, privateKey);
|
|
643
|
-
}
|
|
644
|
-
static RS384(publicKey, privateKey) {
|
|
645
|
-
return Algorithm.create("RS384", publicKey, privateKey);
|
|
646
|
-
}
|
|
647
|
-
static RS512(publicKey, privateKey) {
|
|
648
|
-
return Algorithm.create("RS512", publicKey, privateKey);
|
|
649
|
-
}
|
|
650
|
-
static ES256(publicKey, privateKey) {
|
|
651
|
-
return Algorithm.create("ES256", publicKey, privateKey);
|
|
652
|
-
}
|
|
653
|
-
static ES384(publicKey, privateKey) {
|
|
654
|
-
return Algorithm.create("ES384", publicKey, privateKey);
|
|
655
|
-
}
|
|
656
|
-
static ES512(publicKey, privateKey) {
|
|
657
|
-
return Algorithm.create("ES512", publicKey, privateKey);
|
|
658
|
-
}
|
|
659
|
-
static PS256(publicKey, privateKey) {
|
|
660
|
-
return Algorithm.create("PS256", publicKey, privateKey);
|
|
661
|
-
}
|
|
662
|
-
static PS384(publicKey, privateKey) {
|
|
663
|
-
return Algorithm.create("PS384", publicKey, privateKey);
|
|
664
|
-
}
|
|
665
|
-
static PS512(publicKey, privateKey) {
|
|
666
|
-
return Algorithm.create("PS512", publicKey, privateKey);
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
(function (Algorithm) {
|
|
670
|
-
(function (Name$1) {
|
|
671
|
-
Name$1.is = Name.is;
|
|
672
|
-
(function (Symmetric) {
|
|
673
|
-
Symmetric.is = Name.Symmetric.is;
|
|
674
|
-
})(Name$1.Symmetric || (Name$1.Symmetric = {}));
|
|
675
|
-
(function (Asymmetric) {
|
|
676
|
-
Asymmetric.is = Name.Asymmetric.is;
|
|
677
|
-
})(Name$1.Asymmetric || (Name$1.Asymmetric = {}));
|
|
678
|
-
})(Algorithm.Name || (Algorithm.Name = {}));
|
|
679
|
-
})(Algorithm || (Algorithm = {}));
|
|
680
|
-
|
|
681
|
-
var Token;
|
|
682
|
-
(function (Token) {
|
|
683
|
-
function is(value) {
|
|
684
|
-
return typeof value == "string" && /^[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$/.test(value);
|
|
685
|
-
}
|
|
686
|
-
Token.is = is;
|
|
687
|
-
})(Token || (Token = {}));
|
|
688
|
-
|
|
689
|
-
class Message {
|
|
690
|
-
static is(value) {
|
|
691
|
-
return typeof value == "object" && typeof value.destination == "string" && value.content != undefined;
|
|
692
|
-
}
|
|
693
|
-
static send(message, content, context) {
|
|
694
|
-
if (Message.is(message) && context == undefined) {
|
|
695
|
-
context = content;
|
|
696
|
-
if (!context)
|
|
697
|
-
context = window;
|
|
698
|
-
const destination = message.destination.split("#", 2);
|
|
699
|
-
message = { destination: destination[1], content: message.content };
|
|
700
|
-
context.postMessage(message, destination[0]);
|
|
701
|
-
}
|
|
702
|
-
else if (typeof context != "string") {
|
|
703
|
-
if (!context)
|
|
704
|
-
context = window;
|
|
705
|
-
if (typeof message == "string")
|
|
706
|
-
Message.send({ destination: message, content }, context);
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
static listen(origin, handle, context) {
|
|
710
|
-
const splitted = origin.split("#", 2);
|
|
711
|
-
let destination = "";
|
|
712
|
-
if (splitted.length == 2) {
|
|
713
|
-
origin = splitted[0];
|
|
714
|
-
destination = splitted[1];
|
|
715
|
-
}
|
|
716
|
-
(context || window).addEventListener("message", (e) => {
|
|
717
|
-
const message = e.data;
|
|
718
|
-
if (Message.is(message) &&
|
|
719
|
-
(origin == "*" || e.origin == origin) &&
|
|
720
|
-
(destination == "" || message.destination == destination))
|
|
721
|
-
handle(message.destination, message.content);
|
|
722
|
-
});
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
class Trigger {
|
|
727
|
-
static is(value) {
|
|
728
|
-
return typeof value == "object" && typeof value.name == "string";
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
733
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
734
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
735
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
736
|
-
};
|
|
737
|
-
var _Listenable_listeners;
|
|
738
|
-
class Listenable {
|
|
739
|
-
constructor() {
|
|
740
|
-
_Listenable_listeners.set(this, {});
|
|
741
|
-
}
|
|
742
|
-
listen(property, listener) {
|
|
743
|
-
var _a, _b;
|
|
744
|
-
(_b = (_a = __classPrivateFieldGet(this, _Listenable_listeners, "f")[property]) === null || _a === void 0 ? void 0 : _a.push(listener)) !== null && _b !== void 0 ? _b : (__classPrivateFieldGet(this, _Listenable_listeners, "f")[property] = [listener]);
|
|
745
|
-
listener(this[property]);
|
|
746
|
-
}
|
|
747
|
-
unlisten(property, listener) {
|
|
748
|
-
var _a, _b;
|
|
749
|
-
const index = (_a = __classPrivateFieldGet(this, _Listenable_listeners, "f")[property]) === null || _a === void 0 ? void 0 : _a.indexOf(listener);
|
|
750
|
-
index != undefined && index >= 0 && ((_b = __classPrivateFieldGet(this, _Listenable_listeners, "f")[property]) === null || _b === void 0 ? void 0 : _b.splice(index, 1));
|
|
751
|
-
}
|
|
752
|
-
static load(backend) {
|
|
753
|
-
const result = backend.listenable;
|
|
754
|
-
return Object.defineProperties(result, getProperties(backend));
|
|
755
|
-
function getProperties(backend) {
|
|
756
|
-
return Object.fromEntries(Object.entries(Object.assign(Object.assign({}, Object.getOwnPropertyDescriptors(backend)), Object.getOwnPropertyDescriptors(Object.getPrototypeOf(backend)))).map(([name, descriptor]) => [
|
|
757
|
-
name,
|
|
758
|
-
typeof descriptor.value == "function"
|
|
759
|
-
? {
|
|
760
|
-
get() {
|
|
761
|
-
return backend[name].bind(backend);
|
|
762
|
-
},
|
|
763
|
-
}
|
|
764
|
-
: descriptor.writable || descriptor.set
|
|
765
|
-
? {
|
|
766
|
-
get() {
|
|
767
|
-
return backend[name];
|
|
768
|
-
},
|
|
769
|
-
set(value) {
|
|
770
|
-
var _a;
|
|
771
|
-
backend[name] = value;
|
|
772
|
-
(_a = __classPrivateFieldGet(result, _Listenable_listeners, "f")[name]) === null || _a === void 0 ? void 0 : _a.forEach(listener => listener(value));
|
|
773
|
-
},
|
|
774
|
-
}
|
|
775
|
-
: {
|
|
776
|
-
get() {
|
|
777
|
-
return backend[name];
|
|
778
|
-
},
|
|
779
|
-
},
|
|
780
|
-
]));
|
|
781
|
-
}
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
_Listenable_listeners = new WeakMap();
|
|
785
|
-
|
|
786
|
-
var Data;
|
|
787
|
-
(function (Data) {
|
|
788
|
-
function set(data, [head, ...tail], value) {
|
|
789
|
-
const current = data[head !== null && head !== void 0 ? head : ""];
|
|
790
|
-
return Object.assign(Object.assign({}, data), { [head !== null && head !== void 0 ? head : ""]: !tail.length
|
|
791
|
-
? value
|
|
792
|
-
: set(typeof current == "object" && !(current instanceof Blob) ? current : {}, tail, value) });
|
|
793
|
-
}
|
|
794
|
-
Data.set = set;
|
|
795
|
-
function deepen(data) {
|
|
796
|
-
return Object.entries(data).reduce((result, [name, value]) => set(result, name.split("."), value), {});
|
|
797
|
-
}
|
|
798
|
-
Data.deepen = deepen;
|
|
799
|
-
})(Data || (Data = {}));
|
|
800
|
-
|
|
801
|
-
export { Data as D, Identifier as I, Listenable as L, Message as M, Trigger as T };
|
|
802
|
-
|
|
803
|
-
//# sourceMappingURL=Data-77d2bdbe.js.map
|