@watermarkinsights/ripple 3.8.0-4 → 3.8.0-5
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/README.md +3 -3
- package/dist/cjs/{functions-1f0edc61.js → functions-83193a8d.js} +506 -532
- package/dist/cjs/{global-80d74e31.js → global-2f521eb7.js} +65 -65
- package/dist/cjs/{http-service-9e8c4dd5.js → http-service-494d81de.js} +49 -49
- package/dist/cjs/{index-0e7e3668.js → index-cd179539.js} +64 -96
- package/dist/cjs/{interfaces-30a74c1f.js → interfaces-a3338581.js} +29 -29
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/priv-chart-popover.cjs.entry.js +79 -79
- package/dist/cjs/priv-datepicker.cjs.entry.js +674 -674
- package/dist/cjs/priv-navigator-button.cjs.entry.js +19 -19
- package/dist/cjs/priv-navigator-item.cjs.entry.js +24 -24
- package/dist/cjs/ripple.cjs.js +3 -3
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +342 -342
- package/dist/cjs/wm-button.cjs.entry.js +228 -228
- package/dist/cjs/wm-chart-slice.cjs.entry.js +14 -14
- package/dist/cjs/wm-chart.cjs.entry.js +475 -475
- package/dist/cjs/wm-datepicker.cjs.entry.js +273 -273
- package/dist/cjs/wm-input.cjs.entry.js +136 -136
- package/dist/cjs/wm-modal-footer.cjs.entry.js +32 -32
- package/dist/cjs/wm-modal-header.cjs.entry.js +35 -35
- package/dist/cjs/wm-modal.cjs.entry.js +164 -164
- package/dist/cjs/wm-navigation_3.cjs.entry.js +220 -220
- package/dist/cjs/wm-navigator.cjs.entry.js +269 -269
- package/dist/cjs/wm-network-uploader.cjs.entry.js +422 -422
- package/dist/cjs/wm-option_2.cjs.entry.js +497 -497
- package/dist/cjs/wm-pagination.cjs.entry.js +168 -168
- package/dist/cjs/wm-search.cjs.entry.js +233 -233
- package/dist/cjs/wm-snackbar.cjs.entry.js +172 -172
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +298 -298
- package/dist/cjs/wm-tag-input.cjs.entry.js +581 -581
- package/dist/cjs/wm-timepicker.cjs.entry.js +385 -385
- package/dist/cjs/wm-toggletip.cjs.entry.js +126 -126
- package/dist/cjs/wm-uploader.cjs.entry.js +348 -348
- package/dist/cjs/wm-wrapper.cjs.entry.js +13 -13
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +460 -460
- package/dist/collection/components/wm-button/wm-button.css +6 -1
- package/dist/collection/components/wm-button/wm-button.js +491 -491
- package/dist/collection/components/wm-chart/priv-chart-popover/priv-chart-popover.js +232 -232
- package/dist/collection/components/wm-chart/wm-chart-slice.js +115 -115
- package/dist/collection/components/wm-chart/wm-chart.js +718 -718
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.css +4 -3
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.js +1039 -1039
- package/dist/collection/components/wm-datepicker/wm-datepicker.css +2 -1
- package/dist/collection/components/wm-datepicker/wm-datepicker.js +483 -483
- package/dist/collection/components/wm-input/wm-input.css +2 -1
- package/dist/collection/components/wm-input/wm-input.js +423 -423
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +444 -444
- package/dist/collection/components/wm-modal/wm-modal-footer.js +141 -141
- package/dist/collection/components/wm-modal/wm-modal-header.js +92 -92
- package/dist/collection/components/wm-modal/wm-modal.js +461 -461
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +2 -1
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +152 -152
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +105 -105
- package/dist/collection/components/wm-navigation/wm-navigation.js +193 -193
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +97 -97
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +114 -114
- package/dist/collection/components/wm-navigator/wm-navigator.js +468 -468
- package/dist/collection/components/wm-option/wm-option.css +3 -2
- package/dist/collection/components/wm-option/wm-option.js +422 -422
- package/dist/collection/components/wm-pagination/wm-pagination.js +368 -368
- package/dist/collection/components/wm-search/wm-search.js +480 -480
- package/dist/collection/components/wm-select/wm-select.css +3 -2
- package/dist/collection/components/wm-select/wm-select.js +720 -720
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +3 -2
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +297 -297
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +2 -2
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +216 -216
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +330 -330
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +104 -104
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +3 -2
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +810 -810
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +3 -2
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +583 -583
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +2 -1
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +241 -241
- package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.css +2 -1
- package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.js +753 -753
- package/dist/collection/components/wm-uploader/wm-uploader.css +2 -1
- package/dist/collection/components/wm-uploader/wm-uploader.js +748 -748
- package/dist/collection/components/wm-wrapper/wm-wrapper.js +27 -27
- package/dist/collection/dev/scripts.js +20 -20
- package/dist/collection/global/__mocks__/functions.js +6 -6
- package/dist/collection/global/functions.js +468 -468
- package/dist/collection/global/global.js +72 -72
- package/dist/collection/global/interfaces.js +49 -49
- package/dist/collection/global/services/__mocks__/http-service.js +130 -130
- package/dist/collection/global/services/http-service.js +50 -50
- package/dist/collection/lang/lang.js +5 -5
- package/dist/collection/lang/missing.js +39 -39
- package/dist/collection/lang/piglatin.js +93 -93
- package/dist/esm/{functions-b130b95f.js → functions-7eebdc16.js} +506 -532
- package/dist/esm/{global-22a1aa43.js → global-0dc2eb57.js} +65 -65
- package/dist/esm/{http-service-5d037e16.js → http-service-3dc3b3e7.js} +49 -49
- package/dist/esm/{index-cd8f9ae2.js → index-66f8130e.js} +64 -96
- package/dist/esm/{interfaces-61c6305b.js → interfaces-2b97fab2.js} +29 -29
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/priv-chart-popover.entry.js +79 -79
- package/dist/esm/priv-datepicker.entry.js +674 -674
- package/dist/esm/priv-navigator-button.entry.js +19 -19
- package/dist/esm/priv-navigator-item.entry.js +24 -24
- package/dist/esm/ripple.js +3 -3
- package/dist/esm/wm-action-menu_2.entry.js +342 -342
- package/dist/esm/wm-button.entry.js +228 -228
- package/dist/esm/wm-chart-slice.entry.js +14 -14
- package/dist/esm/wm-chart.entry.js +475 -475
- package/dist/esm/wm-datepicker.entry.js +273 -273
- package/dist/esm/wm-input.entry.js +136 -136
- package/dist/esm/wm-modal-footer.entry.js +32 -32
- package/dist/esm/wm-modal-header.entry.js +35 -35
- package/dist/esm/wm-modal.entry.js +164 -164
- package/dist/esm/wm-navigation_3.entry.js +220 -220
- package/dist/esm/wm-navigator.entry.js +269 -269
- package/dist/esm/wm-network-uploader.entry.js +422 -422
- package/dist/esm/wm-option_2.entry.js +497 -497
- package/dist/esm/wm-pagination.entry.js +168 -168
- package/dist/esm/wm-search.entry.js +233 -233
- package/dist/esm/wm-snackbar.entry.js +172 -172
- package/dist/esm/wm-tab-item_3.entry.js +298 -298
- package/dist/esm/wm-tag-input.entry.js +581 -581
- package/dist/esm/wm-timepicker.entry.js +385 -385
- package/dist/esm/wm-toggletip.entry.js +126 -126
- package/dist/esm/wm-uploader.entry.js +348 -348
- package/dist/esm/wm-wrapper.entry.js +13 -13
- package/dist/esm-es5/functions-7eebdc16.js +15 -0
- package/dist/esm-es5/{global-22a1aa43.js → global-0dc2eb57.js} +1 -1
- package/dist/esm-es5/{http-service-5d037e16.js → http-service-3dc3b3e7.js} +1 -1
- package/dist/esm-es5/index-66f8130e.js +1 -0
- package/dist/esm-es5/{interfaces-61c6305b.js → interfaces-2b97fab2.js} +0 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
- package/dist/esm-es5/priv-datepicker.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
- package/dist/esm-es5/wm-button.entry.js +1 -1
- package/dist/esm-es5/wm-chart-slice.entry.js +1 -1
- package/dist/esm-es5/wm-chart.entry.js +1 -1
- package/dist/esm-es5/wm-datepicker.entry.js +1 -1
- package/dist/esm-es5/wm-input.entry.js +1 -1
- package/dist/esm-es5/wm-modal-footer.entry.js +1 -1
- package/dist/esm-es5/wm-modal-header.entry.js +1 -1
- package/dist/esm-es5/wm-modal.entry.js +1 -1
- package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigator.entry.js +1 -1
- package/dist/esm-es5/wm-network-uploader.entry.js +1 -1
- package/dist/esm-es5/wm-option_2.entry.js +1 -1
- package/dist/esm-es5/wm-pagination.entry.js +1 -1
- package/dist/esm-es5/wm-search.entry.js +1 -1
- package/dist/esm-es5/wm-snackbar.entry.js +1 -1
- package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
- package/dist/esm-es5/wm-tag-input.entry.js +1 -1
- package/dist/esm-es5/wm-timepicker.entry.js +1 -1
- package/dist/esm-es5/wm-toggletip.entry.js +1 -1
- package/dist/esm-es5/wm-uploader.entry.js +1 -1
- package/dist/esm-es5/wm-wrapper.entry.js +1 -1
- package/dist/loader/index.d.ts +1 -0
- package/dist/ripple/{p-880d231c.system.js → p-00e0bf57.system.js} +1 -1
- package/dist/ripple/p-061a0f47.entry.js +1 -0
- package/dist/ripple/p-0b345e33.system.entry.js +1 -0
- package/dist/ripple/p-0b746618.entry.js +1 -0
- package/dist/ripple/p-0c58f50d.entry.js +1 -0
- package/dist/ripple/p-0d8bd4ee.entry.js +1 -0
- package/dist/ripple/p-0f8d7b58.system.entry.js +1 -0
- package/dist/ripple/p-119a14c1.entry.js +1 -0
- package/dist/ripple/{p-26d5f144.system.js → p-149db379.system.js} +1 -1
- package/dist/ripple/{p-040262af.system.entry.js → p-18af6ca6.system.entry.js} +1 -1
- package/dist/ripple/{p-12bd075c.system.entry.js → p-1ec7130b.system.entry.js} +1 -1
- package/dist/ripple/{p-c19298a5.system.entry.js → p-261ea633.system.entry.js} +1 -1
- package/dist/ripple/{p-9a9743f5.system.entry.js → p-2d49a016.system.entry.js} +1 -1
- package/dist/ripple/p-312f22ca.entry.js +1 -0
- package/dist/ripple/p-37907055.entry.js +1 -0
- package/dist/ripple/p-3c592c3b.entry.js +1 -0
- package/dist/ripple/{p-888bec42.js → p-43f1298b.js} +0 -0
- package/dist/ripple/p-48b385e6.entry.js +1 -0
- package/dist/ripple/p-501404ff.entry.js +1 -0
- package/dist/ripple/p-593e891e.entry.js +1 -0
- package/dist/ripple/p-5a08d74b.entry.js +1 -0
- package/dist/ripple/p-5a87e7d6.entry.js +1 -0
- package/dist/ripple/p-62a0f6a4.system.entry.js +1 -0
- package/dist/ripple/{p-e2398de1.js → p-6b6643f9.js} +1 -1
- package/dist/ripple/p-7093d32b.entry.js +1 -0
- package/dist/ripple/p-716fd2fa.system.entry.js +1 -0
- package/dist/ripple/{p-450d329a.system.entry.js → p-71bb4f49.system.entry.js} +1 -1
- package/dist/ripple/{p-e758db14.system.entry.js → p-7a9aac92.system.entry.js} +1 -1
- package/dist/ripple/{p-504579c2.system.entry.js → p-7bc744bf.system.entry.js} +1 -1
- package/dist/ripple/p-7fc8d607.system.entry.js +1 -0
- package/dist/ripple/p-820a1198.entry.js +1 -0
- package/dist/ripple/p-8b0eb05e.entry.js +1 -0
- package/dist/ripple/p-8bc0b663.system.entry.js +1 -0
- package/dist/ripple/p-99548d58.system.js +1 -0
- package/dist/ripple/p-99db8501.entry.js +1 -0
- package/dist/ripple/p-9b8f993d.entry.js +1 -0
- package/dist/ripple/p-9baa3039.js +1 -0
- package/dist/ripple/p-9d02957d.system.js +1 -0
- package/dist/ripple/p-a59094c9.system.entry.js +1 -0
- package/dist/ripple/p-a59713ca.entry.js +1 -0
- package/dist/ripple/p-a7e0ab85.entry.js +1 -0
- package/dist/ripple/{p-a5177480.system.entry.js → p-b3ce2033.system.entry.js} +1 -1
- package/dist/ripple/{p-6b8753b3.system.entry.js → p-bb31d263.system.entry.js} +1 -1
- package/dist/ripple/p-c34de6f3.system.entry.js +1 -0
- package/dist/ripple/p-c3615fa0.system.entry.js +1 -0
- package/dist/ripple/p-c45caf33.system.entry.js +1 -0
- package/dist/ripple/{p-6eed4845.system.entry.js → p-c652f945.system.entry.js} +1 -1
- package/dist/ripple/p-c68975d3.entry.js +1 -0
- package/dist/ripple/p-ca21ca3a.js +16 -0
- package/dist/ripple/p-cb283dba.system.entry.js +1 -0
- package/dist/ripple/p-ceabb993.entry.js +1 -0
- package/dist/ripple/p-d044fcf4.system.js +15 -0
- package/dist/ripple/p-d0643c9b.entry.js +1 -0
- package/dist/ripple/p-de09f545.system.entry.js +1 -0
- package/dist/ripple/{p-db4f099c.system.entry.js → p-dea73ebd.system.entry.js} +1 -1
- package/dist/ripple/p-e639b06c.system.entry.js +1 -0
- package/dist/ripple/{p-eb63bbcb.system.entry.js → p-eb0c2d8f.system.entry.js} +1 -1
- package/dist/ripple/p-f4fcd826.entry.js +1 -0
- package/dist/ripple/{p-08b7ec08.system.js → p-f5df5903.system.js} +0 -0
- package/dist/ripple/{p-08987f25.system.entry.js → p-f781014a.system.entry.js} +1 -1
- package/dist/ripple/p-f927e5da.entry.js +1 -0
- package/dist/ripple/{p-a6d6eae7.js → p-fd8070fb.js} +0 -0
- package/dist/ripple/p-ffc746cb.entry.js +1 -0
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +48 -48
- package/dist/types/components/wm-button/wm-button.d.ts +43 -43
- package/dist/types/components/wm-chart/priv-chart-popover/priv-chart-popover.d.ts +23 -23
- package/dist/types/components/wm-chart/wm-chart-slice.d.ts +11 -11
- package/dist/types/components/wm-chart/wm-chart.d.ts +82 -82
- package/dist/types/components/wm-datepicker/priv-datepicker/priv-datepicker.d.ts +80 -80
- package/dist/types/components/wm-datepicker/wm-datepicker.d.ts +42 -42
- package/dist/types/components/wm-input/wm-input.d.ts +46 -46
- package/dist/types/components/wm-menuitem/wm-menuitem.d.ts +34 -34
- package/dist/types/components/wm-modal/wm-modal-footer.d.ts +15 -15
- package/dist/types/components/wm-modal/wm-modal-header.d.ts +12 -12
- package/dist/types/components/wm-modal/wm-modal.d.ts +41 -41
- package/dist/types/components/wm-navigation/wm-navigation-hamburger.d.ts +20 -20
- package/dist/types/components/wm-navigation/wm-navigation-item.d.ts +11 -11
- package/dist/types/components/wm-navigation/wm-navigation.d.ts +28 -28
- package/dist/types/components/wm-navigator/priv-navigator-button/priv-navigator-button.d.ts +10 -10
- package/dist/types/components/wm-navigator/priv-navigator-item/priv-navigator-item.d.ts +13 -13
- package/dist/types/components/wm-navigator/wm-navigator.d.ts +61 -61
- package/dist/types/components/wm-option/wm-option.d.ts +32 -32
- package/dist/types/components/wm-pagination/wm-pagination.d.ts +32 -32
- package/dist/types/components/wm-search/wm-search.d.ts +86 -86
- package/dist/types/components/wm-select/wm-select.d.ts +66 -66
- package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +35 -35
- package/dist/types/components/wm-tabs/wm-tab-item/wm-tab-item.d.ts +38 -38
- package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +53 -53
- package/dist/types/components/wm-tabs/wm-tab-panel/wm-tab-panel.d.ts +20 -20
- package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +92 -92
- package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +61 -61
- package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +27 -27
- package/dist/types/components/wm-uploader/wm-network-uploader/wm-network-uploader.d.ts +85 -85
- package/dist/types/components/wm-uploader/wm-uploader.d.ts +80 -80
- package/dist/types/components/wm-wrapper/wm-wrapper.d.ts +7 -7
- package/dist/types/components.d.ts +24 -24
- package/dist/types/global/__mocks__/functions.d.ts +6 -6
- package/dist/types/global/functions.d.ts +42 -42
- package/dist/types/global/global.d.ts +1 -1
- package/dist/types/global/interfaces.d.ts +34 -34
- package/dist/types/global/services/__mocks__/http-service.d.ts +6 -6
- package/dist/types/global/services/http-service.d.ts +4 -4
- package/dist/types/lang/lang.d.ts +5 -5
- package/dist/types/stencil-public-runtime.d.ts +4 -6
- package/package.json +47 -47
- package/dist/esm-es5/functions-b130b95f.js +0 -15
- package/dist/esm-es5/index-cd8f9ae2.js +0 -1
- package/dist/ripple/p-08f8a387.system.js +0 -15
- package/dist/ripple/p-11e94b56.system.entry.js +0 -1
- package/dist/ripple/p-16b81b95.system.entry.js +0 -1
- package/dist/ripple/p-1aa63d75.entry.js +0 -1
- package/dist/ripple/p-1bc95574.system.entry.js +0 -1
- package/dist/ripple/p-20856a2d.system.js +0 -1
- package/dist/ripple/p-244877c8.entry.js +0 -1
- package/dist/ripple/p-28c23453.system.entry.js +0 -1
- package/dist/ripple/p-313b6073.system.js +0 -1
- package/dist/ripple/p-38062c39.js +0 -1
- package/dist/ripple/p-3ba3afca.entry.js +0 -1
- package/dist/ripple/p-3faf2b4d.entry.js +0 -1
- package/dist/ripple/p-4372e470.entry.js +0 -1
- package/dist/ripple/p-4be373bc.entry.js +0 -1
- package/dist/ripple/p-5345ef2c.entry.js +0 -1
- package/dist/ripple/p-5866f8c0.entry.js +0 -1
- package/dist/ripple/p-64176f58.entry.js +0 -1
- package/dist/ripple/p-6aa11b0c.system.entry.js +0 -1
- package/dist/ripple/p-6c1a8429.system.entry.js +0 -1
- package/dist/ripple/p-764fa608.entry.js +0 -1
- package/dist/ripple/p-7e118839.entry.js +0 -1
- package/dist/ripple/p-8a0450fd.entry.js +0 -1
- package/dist/ripple/p-8dd28361.entry.js +0 -1
- package/dist/ripple/p-91e122c6.entry.js +0 -1
- package/dist/ripple/p-97909b0f.entry.js +0 -1
- package/dist/ripple/p-a6cc08a5.system.entry.js +0 -1
- package/dist/ripple/p-a8584619.system.entry.js +0 -1
- package/dist/ripple/p-a9dd6fe1.entry.js +0 -1
- package/dist/ripple/p-add208d8.entry.js +0 -1
- package/dist/ripple/p-b3568fc3.system.entry.js +0 -1
- package/dist/ripple/p-b635fdfe.system.entry.js +0 -1
- package/dist/ripple/p-bfef8d9c.entry.js +0 -1
- package/dist/ripple/p-c0fd9e19.system.entry.js +0 -1
- package/dist/ripple/p-ce80b46d.entry.js +0 -1
- package/dist/ripple/p-d0ab4cf2.entry.js +0 -1
- package/dist/ripple/p-d0d3421d.system.entry.js +0 -1
- package/dist/ripple/p-d43a4e01.entry.js +0 -1
- package/dist/ripple/p-d4e46468.entry.js +0 -1
- package/dist/ripple/p-ddf5044a.entry.js +0 -1
- package/dist/ripple/p-e03a7b17.entry.js +0 -1
- package/dist/ripple/p-ea22b946.js +0 -16
- package/dist/ripple/p-ef344252.entry.js +0 -1
- package/dist/ripple/p-f44803ff.system.entry.js +0 -1
- package/dist/ripple/p-fa35e47b.entry.js +0 -1
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
const version = "3.8.0-
|
|
1
|
+
const version = "3.8.0-5";
|
|
2
2
|
|
|
3
|
-
// PRINT RIPPLE VERSION IN CONSOLE
|
|
4
|
-
// test envs return 0 for plugin.length
|
|
5
|
-
// do not print version number there as it causes issues
|
|
6
|
-
if (window.navigator.plugins.length > 0) {
|
|
7
|
-
console.log("Ripple component library", version);
|
|
8
|
-
}
|
|
9
|
-
// USER-IS-TABBING CLASSES (FOR FOCUS INDICATORS)
|
|
10
|
-
// Dispatching events to track whether user is navigating with keyboard or mouse
|
|
11
|
-
function wmComponentKeys(ev) {
|
|
12
|
-
var key = ev.key || ev.keyCode;
|
|
13
|
-
if (key == "Tab" || key === 9) {
|
|
14
|
-
var event = new Event("wmUserIsTabbing");
|
|
15
|
-
window.dispatchEvent(event);
|
|
16
|
-
document.querySelector("body").classList.add("wmcl-user-is-tabbing");
|
|
17
|
-
}
|
|
18
|
-
if (key == "ArrowLeft" ||
|
|
19
|
-
key === 37 ||
|
|
20
|
-
key == "ArrowUp" ||
|
|
21
|
-
key === 38 ||
|
|
22
|
-
key == "ArrowRight" ||
|
|
23
|
-
key === 39 ||
|
|
24
|
-
key == "ArrowDown" ||
|
|
25
|
-
key === 40) {
|
|
26
|
-
var event = new Event("wmUserIsKeying");
|
|
27
|
-
window.dispatchEvent(event);
|
|
28
|
-
document.querySelector("body").classList.add("wmcl-user-is-keying");
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function wmComponentMouseDownOnce() {
|
|
32
|
-
var event = new Event("wmUserIsNotTabbing");
|
|
33
|
-
window.dispatchEvent(event);
|
|
34
|
-
document.querySelector("body").classList.remove("wmcl-user-is-tabbing");
|
|
35
|
-
document.querySelector("body").classList.remove("wmcl-user-is-keying");
|
|
36
|
-
}
|
|
37
|
-
window.addEventListener("keydown", wmComponentKeys);
|
|
38
|
-
window.addEventListener("mousedown", wmComponentMouseDownOnce);
|
|
39
|
-
// TOOLTIP
|
|
40
|
-
// Add a tooltip element
|
|
41
|
-
// This allows tooltips to be always at the highest stacking context (always on top)
|
|
42
|
-
// Element is added withing a container to avoid performance impact
|
|
43
|
-
const tooltipContainer = document.createElement("div");
|
|
44
|
-
tooltipContainer.id = "wm-tooltip-container";
|
|
45
|
-
const tooltipEl = document.createElement("div");
|
|
46
|
-
tooltipEl.id = "wm-tooltip";
|
|
47
|
-
tooltipEl.setAttribute("aria-hidden", "true");
|
|
48
|
-
tooltipEl.style.position = "fixed";
|
|
49
|
-
tooltipEl.style.overflow = "hidden";
|
|
50
|
-
tooltipEl.style.pointerEvents = "none";
|
|
51
|
-
tooltipEl.style.lineHeight = "normal";
|
|
52
|
-
tooltipEl.style.fontFamily = "inherit";
|
|
53
|
-
tooltipEl.style.fontSize = "0.875rem";
|
|
54
|
-
tooltipEl.style.textTransform = "none";
|
|
55
|
-
tooltipEl.style.fontWeight = "normal";
|
|
56
|
-
tooltipEl.style.background = "black";
|
|
57
|
-
tooltipEl.style.color = "#fff";
|
|
58
|
-
tooltipEl.style.zIndex = "999999";
|
|
59
|
-
tooltipEl.style.maxWidth = "13.75rem";
|
|
60
|
-
tooltipEl.style.marginRight = "1.5rem";
|
|
61
|
-
tooltipEl.style.padding = "0.375rem";
|
|
62
|
-
tooltipEl.style.transitionProperty = "opacity";
|
|
63
|
-
tooltipEl.style.transitionDelay = "opacity";
|
|
64
|
-
tooltipEl.style.opacity = "0";
|
|
65
|
-
tooltipContainer.appendChild(tooltipEl);
|
|
66
|
-
const body = document.querySelector("body");
|
|
3
|
+
// PRINT RIPPLE VERSION IN CONSOLE
|
|
4
|
+
// test envs return 0 for plugin.length
|
|
5
|
+
// do not print version number there as it causes issues
|
|
6
|
+
if (window.navigator.plugins.length > 0) {
|
|
7
|
+
console.log("Ripple component library", version);
|
|
8
|
+
}
|
|
9
|
+
// USER-IS-TABBING CLASSES (FOR FOCUS INDICATORS)
|
|
10
|
+
// Dispatching events to track whether user is navigating with keyboard or mouse
|
|
11
|
+
function wmComponentKeys(ev) {
|
|
12
|
+
var key = ev.key || ev.keyCode;
|
|
13
|
+
if (key == "Tab" || key === 9) {
|
|
14
|
+
var event = new Event("wmUserIsTabbing");
|
|
15
|
+
window.dispatchEvent(event);
|
|
16
|
+
document.querySelector("body").classList.add("wmcl-user-is-tabbing");
|
|
17
|
+
}
|
|
18
|
+
if (key == "ArrowLeft" ||
|
|
19
|
+
key === 37 ||
|
|
20
|
+
key == "ArrowUp" ||
|
|
21
|
+
key === 38 ||
|
|
22
|
+
key == "ArrowRight" ||
|
|
23
|
+
key === 39 ||
|
|
24
|
+
key == "ArrowDown" ||
|
|
25
|
+
key === 40) {
|
|
26
|
+
var event = new Event("wmUserIsKeying");
|
|
27
|
+
window.dispatchEvent(event);
|
|
28
|
+
document.querySelector("body").classList.add("wmcl-user-is-keying");
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function wmComponentMouseDownOnce() {
|
|
32
|
+
var event = new Event("wmUserIsNotTabbing");
|
|
33
|
+
window.dispatchEvent(event);
|
|
34
|
+
document.querySelector("body").classList.remove("wmcl-user-is-tabbing");
|
|
35
|
+
document.querySelector("body").classList.remove("wmcl-user-is-keying");
|
|
36
|
+
}
|
|
37
|
+
window.addEventListener("keydown", wmComponentKeys);
|
|
38
|
+
window.addEventListener("mousedown", wmComponentMouseDownOnce);
|
|
39
|
+
// TOOLTIP
|
|
40
|
+
// Add a tooltip element
|
|
41
|
+
// This allows tooltips to be always at the highest stacking context (always on top)
|
|
42
|
+
// Element is added withing a container to avoid performance impact
|
|
43
|
+
const tooltipContainer = document.createElement("div");
|
|
44
|
+
tooltipContainer.id = "wm-tooltip-container";
|
|
45
|
+
const tooltipEl = document.createElement("div");
|
|
46
|
+
tooltipEl.id = "wm-tooltip";
|
|
47
|
+
tooltipEl.setAttribute("aria-hidden", "true");
|
|
48
|
+
tooltipEl.style.position = "fixed";
|
|
49
|
+
tooltipEl.style.overflow = "hidden";
|
|
50
|
+
tooltipEl.style.pointerEvents = "none";
|
|
51
|
+
tooltipEl.style.lineHeight = "normal";
|
|
52
|
+
tooltipEl.style.fontFamily = "inherit";
|
|
53
|
+
tooltipEl.style.fontSize = "0.875rem";
|
|
54
|
+
tooltipEl.style.textTransform = "none";
|
|
55
|
+
tooltipEl.style.fontWeight = "normal";
|
|
56
|
+
tooltipEl.style.background = "black";
|
|
57
|
+
tooltipEl.style.color = "#fff";
|
|
58
|
+
tooltipEl.style.zIndex = "999999";
|
|
59
|
+
tooltipEl.style.maxWidth = "13.75rem";
|
|
60
|
+
tooltipEl.style.marginRight = "1.5rem";
|
|
61
|
+
tooltipEl.style.padding = "0.375rem";
|
|
62
|
+
tooltipEl.style.transitionProperty = "opacity";
|
|
63
|
+
tooltipEl.style.transitionDelay = "opacity";
|
|
64
|
+
tooltipEl.style.opacity = "0";
|
|
65
|
+
tooltipContainer.appendChild(tooltipEl);
|
|
66
|
+
const body = document.querySelector("body");
|
|
67
67
|
body.appendChild(tooltipContainer);
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
const getRequest = async (url) => {
|
|
2
|
-
const response = await fetch(url);
|
|
3
|
-
if (!!response && !!response.ok) {
|
|
4
|
-
return await response.json();
|
|
5
|
-
}
|
|
6
|
-
else {
|
|
7
|
-
throw new Error(response.statusText);
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
const postRequest = async (url, payload) => {
|
|
11
|
-
const response = await fetch(url, {
|
|
12
|
-
method: "POST",
|
|
13
|
-
headers: { "Content-Type": "application/json; charset=utf-8" },
|
|
14
|
-
body: JSON.stringify(payload),
|
|
15
|
-
});
|
|
16
|
-
if (!!response && !!response.ok) {
|
|
17
|
-
return await response.json();
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error(response.statusText);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
const deleteRequest = async (url) => {
|
|
24
|
-
const response = await fetch(url, { method: "DELETE" });
|
|
25
|
-
if (!!response && !!response.ok) {
|
|
26
|
-
return await response.json();
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
throw new Error(response.statusText);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const putRequest = (url, file, onProgress) => {
|
|
33
|
-
return new Promise((resolve, reject) => {
|
|
34
|
-
// there's no way to track progress with the fetch API, so using XHR
|
|
35
|
-
const req = new XMLHttpRequest();
|
|
36
|
-
req.upload.addEventListener("progress", (ev) => onProgress(ev));
|
|
37
|
-
req.addEventListener("readystatechange", function () {
|
|
38
|
-
if (this.readyState === 4 && this.status === 200) {
|
|
39
|
-
resolve(this);
|
|
40
|
-
}
|
|
41
|
-
else if (this.readyState === 4 && this.status !== 200) {
|
|
42
|
-
reject();
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
req.onerror = () => reject();
|
|
46
|
-
req.open("PUT", url, true);
|
|
47
|
-
req.setRequestHeader("Content-Disposition", `attachment;filename="${file.name}"`);
|
|
48
|
-
req.send(file);
|
|
49
|
-
});
|
|
1
|
+
const getRequest = async (url) => {
|
|
2
|
+
const response = await fetch(url);
|
|
3
|
+
if (!!response && !!response.ok) {
|
|
4
|
+
return await response.json();
|
|
5
|
+
}
|
|
6
|
+
else {
|
|
7
|
+
throw new Error(response.statusText);
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
const postRequest = async (url, payload) => {
|
|
11
|
+
const response = await fetch(url, {
|
|
12
|
+
method: "POST",
|
|
13
|
+
headers: { "Content-Type": "application/json; charset=utf-8" },
|
|
14
|
+
body: JSON.stringify(payload),
|
|
15
|
+
});
|
|
16
|
+
if (!!response && !!response.ok) {
|
|
17
|
+
return await response.json();
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error(response.statusText);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const deleteRequest = async (url) => {
|
|
24
|
+
const response = await fetch(url, { method: "DELETE" });
|
|
25
|
+
if (!!response && !!response.ok) {
|
|
26
|
+
return await response.json();
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
throw new Error(response.statusText);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const putRequest = (url, file, onProgress) => {
|
|
33
|
+
return new Promise((resolve, reject) => {
|
|
34
|
+
// there's no way to track progress with the fetch API, so using XHR
|
|
35
|
+
const req = new XMLHttpRequest();
|
|
36
|
+
req.upload.addEventListener("progress", (ev) => onProgress(ev));
|
|
37
|
+
req.addEventListener("readystatechange", function () {
|
|
38
|
+
if (this.readyState === 4 && this.status === 200) {
|
|
39
|
+
resolve(this);
|
|
40
|
+
}
|
|
41
|
+
else if (this.readyState === 4 && this.status !== 200) {
|
|
42
|
+
reject();
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
req.onerror = () => reject();
|
|
46
|
+
req.open("PUT", url, true);
|
|
47
|
+
req.setRequestHeader("Content-Disposition", `attachment;filename="${file.name}"`);
|
|
48
|
+
req.send(file);
|
|
49
|
+
});
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
export { postRequest as a, deleteRequest as d, getRequest as g, putRequest as p };
|
|
@@ -347,6 +347,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
347
347
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
348
348
|
if (memberName === 'list') {
|
|
349
349
|
isProp = false;
|
|
350
|
+
// tslint:disable-next-line: triple-equals
|
|
350
351
|
}
|
|
351
352
|
else if (oldValue == null || elm[memberName] != n) {
|
|
352
353
|
elm[memberName] = n;
|
|
@@ -886,29 +887,6 @@ const then = (promise, thenFn) => {
|
|
|
886
887
|
};
|
|
887
888
|
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
888
889
|
;
|
|
889
|
-
/**
|
|
890
|
-
* Parse a new property value for a given property type.
|
|
891
|
-
*
|
|
892
|
-
* While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
|
|
893
|
-
* it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
|
|
894
|
-
* 1. `any`, the type given to `propValue` in the function signature
|
|
895
|
-
* 2. the type stored from `propType`.
|
|
896
|
-
*
|
|
897
|
-
* This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
|
|
898
|
-
*
|
|
899
|
-
* Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
|
|
900
|
-
* a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
|
|
901
|
-
* based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
|
|
902
|
-
* ```tsx
|
|
903
|
-
* <my-cmp prop-val={0}></my-cmp>
|
|
904
|
-
* ```
|
|
905
|
-
*
|
|
906
|
-
* HTML prop values on the other hand, will always a string
|
|
907
|
-
*
|
|
908
|
-
* @param propValue the new value to coerce to some type
|
|
909
|
-
* @param propType the type of the prop, expressed as a binary number
|
|
910
|
-
* @returns the parsed/coerced value
|
|
911
|
-
*/
|
|
912
890
|
const parsePropertyValue = (propValue, propType) => {
|
|
913
891
|
// ensure this value is of the correct prop type
|
|
914
892
|
if (propValue != null && !isComplexType(propValue)) {
|
|
@@ -1014,14 +992,14 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1014
992
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1015
993
|
plt.jmp(() => {
|
|
1016
994
|
const propName = attrNameToPropName.get(attrName);
|
|
1017
|
-
// In a
|
|
995
|
+
// In a webcomponent lifecyle the attributeChangedCallback runs prior to connectedCallback
|
|
1018
996
|
// in the case where an attribute was set inline.
|
|
1019
997
|
// ```html
|
|
1020
998
|
// <my-component some-attribute="some-value"></my-component>
|
|
1021
999
|
// ```
|
|
1022
1000
|
//
|
|
1023
|
-
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
1024
|
-
//
|
|
1001
|
+
// There is an edge case where a developer sets the attribute inline on a custom element and then programatically
|
|
1002
|
+
// changes it before it has been upgraded as shown below:
|
|
1025
1003
|
//
|
|
1026
1004
|
// ```html
|
|
1027
1005
|
// <!-- this component has _not_ been upgraded yet -->
|
|
@@ -1031,13 +1009,13 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1031
1009
|
// el = document.querySelector("#test");
|
|
1032
1010
|
// el.someAttribute = "another-value";
|
|
1033
1011
|
// // upgrade component
|
|
1034
|
-
//
|
|
1012
|
+
// cutsomElements.define('my-component', MyComponent);
|
|
1035
1013
|
// </script>
|
|
1036
1014
|
// ```
|
|
1037
1015
|
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1038
1016
|
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1039
1017
|
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1040
|
-
// the connectedCallback attempts to unshadow it will use "some-value" as the
|
|
1018
|
+
// the connectedCallback attempts to unshadow it will use "some-value" as the intial value rather than "another-value"
|
|
1041
1019
|
//
|
|
1042
1020
|
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
|
1043
1021
|
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
@@ -1051,14 +1029,6 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1051
1029
|
newValue = this[propName];
|
|
1052
1030
|
delete this[propName];
|
|
1053
1031
|
}
|
|
1054
|
-
else if (prototype.hasOwnProperty(propName) &&
|
|
1055
|
-
typeof this[propName] === 'number' &&
|
|
1056
|
-
this[propName] == newValue) {
|
|
1057
|
-
// if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
|
|
1058
|
-
// APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
|
|
1059
|
-
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1060
|
-
return;
|
|
1061
|
-
}
|
|
1062
1032
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1063
1033
|
});
|
|
1064
1034
|
};
|
|
@@ -1144,7 +1114,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1144
1114
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1145
1115
|
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1146
1116
|
if (ancestorComponent && ancestorComponent['s-rc']) {
|
|
1147
|
-
// this is the
|
|
1117
|
+
// this is the intial load and this component it has an ancestor component
|
|
1148
1118
|
// but the ancestor component has NOT fired its will update lifecycle yet
|
|
1149
1119
|
// so let's just cool our jets and wait for the ancestor to continue first
|
|
1150
1120
|
// this will get fired off when the ancestor component
|
|
@@ -1227,73 +1197,71 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1227
1197
|
let isBootstrapping = true;
|
|
1228
1198
|
Object.assign(plt, options);
|
|
1229
1199
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
1230
|
-
lazyBundles.map((lazyBundle) => {
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
{
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1200
|
+
lazyBundles.map((lazyBundle) => lazyBundle[1].map((compactMeta) => {
|
|
1201
|
+
const cmpMeta = {
|
|
1202
|
+
$flags$: compactMeta[0],
|
|
1203
|
+
$tagName$: compactMeta[1],
|
|
1204
|
+
$members$: compactMeta[2],
|
|
1205
|
+
$listeners$: compactMeta[3],
|
|
1206
|
+
};
|
|
1207
|
+
{
|
|
1208
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
1209
|
+
}
|
|
1210
|
+
{
|
|
1211
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
1212
|
+
}
|
|
1213
|
+
{
|
|
1214
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1215
|
+
}
|
|
1216
|
+
{
|
|
1217
|
+
cmpMeta.$watchers$ = {};
|
|
1218
|
+
}
|
|
1219
|
+
const tagName = cmpMeta.$tagName$;
|
|
1220
|
+
const HostElement = class extends HTMLElement {
|
|
1221
|
+
// StencilLazyHost
|
|
1222
|
+
constructor(self) {
|
|
1223
|
+
// @ts-ignore
|
|
1224
|
+
super(self);
|
|
1225
|
+
self = this;
|
|
1226
|
+
registerHost(self, cmpMeta);
|
|
1227
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1228
|
+
// this component is using shadow dom
|
|
1229
|
+
// and this browser supports shadow dom
|
|
1230
|
+
// add the read-only property "shadowRoot" to the host element
|
|
1231
|
+
// adding the shadow root build conditionals to minimize runtime
|
|
1232
|
+
{
|
|
1263
1233
|
{
|
|
1264
|
-
{
|
|
1265
|
-
self.attachShadow({ mode: 'open' });
|
|
1266
|
-
}
|
|
1234
|
+
self.attachShadow({ mode: 'open' });
|
|
1267
1235
|
}
|
|
1268
1236
|
}
|
|
1269
1237
|
}
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
if (isBootstrapping) {
|
|
1276
|
-
// connectedCallback will be processed once all components have been registered
|
|
1277
|
-
deferredConnectedCallbacks.push(this);
|
|
1278
|
-
}
|
|
1279
|
-
else {
|
|
1280
|
-
plt.jmp(() => connectedCallback(this));
|
|
1281
|
-
}
|
|
1238
|
+
}
|
|
1239
|
+
connectedCallback() {
|
|
1240
|
+
if (appLoadFallback) {
|
|
1241
|
+
clearTimeout(appLoadFallback);
|
|
1242
|
+
appLoadFallback = null;
|
|
1282
1243
|
}
|
|
1283
|
-
|
|
1284
|
-
|
|
1244
|
+
if (isBootstrapping) {
|
|
1245
|
+
// connectedCallback will be processed once all components have been registered
|
|
1246
|
+
deferredConnectedCallbacks.push(this);
|
|
1285
1247
|
}
|
|
1286
|
-
|
|
1287
|
-
|
|
1248
|
+
else {
|
|
1249
|
+
plt.jmp(() => connectedCallback(this));
|
|
1288
1250
|
}
|
|
1289
|
-
};
|
|
1290
|
-
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1291
|
-
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1292
|
-
cmpTags.push(tagName);
|
|
1293
|
-
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1294
1251
|
}
|
|
1295
|
-
|
|
1296
|
-
|
|
1252
|
+
disconnectedCallback() {
|
|
1253
|
+
plt.jmp(() => disconnectedCallback(this));
|
|
1254
|
+
}
|
|
1255
|
+
componentOnReady() {
|
|
1256
|
+
return getHostRef(this).$onReadyPromise$;
|
|
1257
|
+
}
|
|
1258
|
+
};
|
|
1259
|
+
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1260
|
+
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1261
|
+
cmpTags.push(tagName);
|
|
1262
|
+
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1263
|
+
}
|
|
1264
|
+
}));
|
|
1297
1265
|
{
|
|
1298
1266
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1299
1267
|
visibilityStyle.setAttribute('data-styles', '');
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
//List of icon codes with more indicative descriptors to create labels for icon-only buttons
|
|
2
|
-
function getIconCodeFromName(icon) {
|
|
3
|
-
return iconCodes[icon] || icon;
|
|
4
|
-
}
|
|
5
|
-
const iconCodes = {
|
|
6
|
-
close: "f156",
|
|
7
|
-
pencil: "f3eb",
|
|
8
|
-
cancel: "f739",
|
|
9
|
-
check: "f12c",
|
|
10
|
-
delete: "f1c0",
|
|
11
|
-
magnify: "f349",
|
|
12
|
-
export: "f207",
|
|
13
|
-
"dots-vertical": "f1d9",
|
|
14
|
-
"arrow-left": "f04d",
|
|
15
|
-
"arrow-right": "f054",
|
|
16
|
-
"chevron-left": "f141",
|
|
17
|
-
"chevron-right": "f142",
|
|
18
|
-
"menu-left": "f35e",
|
|
19
|
-
"menu-down": "f35d",
|
|
20
|
-
"keyboard-backspace": "f30d",
|
|
21
|
-
"file-tree": "f645",
|
|
22
|
-
"sort-alphabetical": "f4bb",
|
|
23
|
-
"checkbox-marked-circle": "f133",
|
|
24
|
-
"account-settings": "f630",
|
|
25
|
-
"backup-restore": "f06f",
|
|
26
|
-
};
|
|
27
|
-
const defaultMode = "planning";
|
|
28
|
-
const getWmMode = (ref) => {
|
|
29
|
-
return ref.getAttribute("mode") || document.documentElement.getAttribute("mode") || defaultMode;
|
|
1
|
+
//List of icon codes with more indicative descriptors to create labels for icon-only buttons
|
|
2
|
+
function getIconCodeFromName(icon) {
|
|
3
|
+
return iconCodes[icon] || icon;
|
|
4
|
+
}
|
|
5
|
+
const iconCodes = {
|
|
6
|
+
close: "f156",
|
|
7
|
+
pencil: "f3eb",
|
|
8
|
+
cancel: "f739",
|
|
9
|
+
check: "f12c",
|
|
10
|
+
delete: "f1c0",
|
|
11
|
+
magnify: "f349",
|
|
12
|
+
export: "f207",
|
|
13
|
+
"dots-vertical": "f1d9",
|
|
14
|
+
"arrow-left": "f04d",
|
|
15
|
+
"arrow-right": "f054",
|
|
16
|
+
"chevron-left": "f141",
|
|
17
|
+
"chevron-right": "f142",
|
|
18
|
+
"menu-left": "f35e",
|
|
19
|
+
"menu-down": "f35d",
|
|
20
|
+
"keyboard-backspace": "f30d",
|
|
21
|
+
"file-tree": "f645",
|
|
22
|
+
"sort-alphabetical": "f4bb",
|
|
23
|
+
"checkbox-marked-circle": "f133",
|
|
24
|
+
"account-settings": "f630",
|
|
25
|
+
"backup-restore": "f06f",
|
|
26
|
+
};
|
|
27
|
+
const defaultMode = "planning";
|
|
28
|
+
const getWmMode = (ref) => {
|
|
29
|
+
return ref.getAttribute("mode") || document.documentElement.getAttribute("mode") || defaultMode;
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
export { getWmMode as a, getIconCodeFromName as g };
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
import './global-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-66f8130e.js';
|
|
2
|
+
import './global-0dc2eb57.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Esm v2.
|
|
5
|
+
Stencil Client Patch Esm v2.8.1 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchEsm = () => {
|
|
8
8
|
return promiseResolve();
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@";function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}var VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.substr(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
|
|
1
|
+
var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@";function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}var VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.substr(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\."+t,"."+r)}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t=s.scopeId+"-"+this.count,o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|