@watermarkinsights/ripple 5.16.0-alpha.1 → 5.16.0-alpha.10
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/app-globals-C-IAhycr.js +7 -0
- package/dist/cjs/{chartFunctions-439c6fd4.js → chartFunctions-C8PCmGmn.js} +2 -3
- package/dist/cjs/{functions-dd27bda3.js → functions-DfuY5Jtp.js} +74 -79
- package/dist/cjs/{index-788526f5.js → index-DwhNqnaT.js} +777 -410
- package/dist/cjs/{intl-6d72b4a0.js → intl-Bl-0Yn5n.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -5
- package/dist/cjs/priv-calendar.cjs.entry.js +6 -12
- package/dist/cjs/priv-chart-popover.cjs.entry.js +4 -8
- package/dist/cjs/priv-navigator-button.cjs.entry.js +3 -6
- package/dist/cjs/priv-navigator-item.cjs.entry.js +3 -6
- package/dist/cjs/priv-option-list.cjs.entry.js +10 -16
- package/dist/cjs/ripple.cjs.js +7 -7
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +11 -20
- package/dist/cjs/wm-button.cjs.entry.js +9 -17
- package/dist/cjs/wm-chart-slice.cjs.entry.js +1 -8
- package/dist/cjs/wm-chart.cjs.entry.js +14 -18
- package/dist/cjs/wm-date-range.cjs.entry.js +10 -15
- package/dist/cjs/wm-datepicker.cjs.entry.js +18 -17
- package/dist/cjs/wm-file-list.cjs.entry.js +3 -6
- package/dist/cjs/wm-file.cjs.entry.js +6 -16
- package/dist/cjs/wm-flyout.cjs.entry.js +6 -17
- package/dist/cjs/wm-input.cjs.entry.js +13 -19
- package/dist/cjs/wm-line-chart.cjs.entry.js +18 -28
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +12 -18
- package/dist/cjs/wm-modal_3.cjs.entry.js +12 -19
- package/dist/cjs/wm-navigation_3.cjs.entry.js +13 -22
- package/dist/cjs/wm-navigator.cjs.entry.js +17 -15
- package/dist/cjs/wm-nested-select.cjs.entry.js +21 -20
- package/dist/cjs/wm-optgroup.cjs.entry.js +3 -7
- package/dist/cjs/wm-option_2.cjs.entry.js +19 -20
- package/dist/cjs/wm-pagination.cjs.entry.js +11 -14
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +10 -27
- package/dist/cjs/wm-search.cjs.entry.js +27 -11
- package/dist/cjs/wm-snackbar.cjs.entry.js +10 -12
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +23 -19
- package/dist/cjs/wm-tag-input.cjs.entry.js +42 -48
- package/dist/cjs/wm-tag-option.cjs.entry.js +2 -8
- package/dist/cjs/wm-textarea.cjs.entry.js +13 -14
- package/dist/cjs/wm-timepicker.cjs.entry.js +18 -17
- package/dist/cjs/wm-toggletip.cjs.entry.js +9 -14
- package/dist/cjs/wm-uploader.cjs.entry.js +18 -22
- package/dist/cjs/wm-wrapper.cjs.entry.js +1 -3
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +8 -4
- package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +15 -12
- package/dist/collection/components/charts/wm-chart/wm-chart.js +45 -22
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +52 -33
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +23 -16
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +9 -6
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +15 -12
- package/dist/collection/components/datepickers/datepicker.css +15 -9
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +21 -12
- package/dist/collection/components/datepickers/wm-date-range.js +39 -19
- package/dist/collection/components/datepickers/wm-datepicker.js +39 -19
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +27 -16
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +15 -9
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +56 -26
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +12 -5
- package/dist/collection/components/selects/wm-option/wm-option.js +15 -6
- package/dist/collection/components/selects/wm-select/wm-select.css +15 -9
- package/dist/collection/components/selects/wm-select/wm-select.js +50 -22
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +25 -16
- package/dist/collection/components/wm-button/wm-button.js +44 -23
- package/dist/collection/components/wm-file/wm-file.js +30 -19
- package/dist/collection/components/wm-file-list/wm-file-list.js +4 -2
- package/dist/collection/components/wm-flyout/wm-flyout.js +32 -20
- package/dist/collection/components/wm-input/wm-input.css +15 -9
- package/dist/collection/components/wm-input/wm-input.js +63 -30
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +11 -5
- package/dist/collection/components/wm-modal/wm-modal-footer.js +16 -6
- package/dist/collection/components/wm-modal/wm-modal-header.js +7 -3
- package/dist/collection/components/wm-modal/wm-modal.css +1 -1
- package/dist/collection/components/wm-modal/wm-modal.js +15 -9
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +16 -6
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +7 -3
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +16 -9
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +6 -5
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +10 -9
- package/dist/collection/components/wm-navigation/wm-navigation.js +6 -4
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +7 -3
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +10 -4
- package/dist/collection/components/wm-navigator/wm-navigator.js +34 -15
- package/dist/collection/components/wm-pagination/wm-pagination.js +22 -12
- package/dist/collection/components/wm-search/wm-search.js +47 -12
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +9 -6
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +19 -7
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +10 -7
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +13 -3
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +23 -17
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +79 -54
- package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +18 -10
- package/dist/collection/components/wm-textarea/wm-textarea.css +15 -9
- package/dist/collection/components/wm-textarea/wm-textarea.js +42 -18
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +15 -9
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +36 -18
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +21 -13
- package/dist/collection/components/wm-uploader/wm-uploader.css +21 -10
- package/dist/collection/components/wm-uploader/wm-uploader.js +47 -26
- package/dist/collection/global/intl.js +2 -2
- package/dist/esm/app-globals-CrcR41XQ.js +5 -0
- package/dist/esm/{chartFunctions-6749593d.js → chartFunctions-BocRhQ0T.js} +3 -4
- package/dist/esm/{functions-dabfd76f.js → functions-B9BrPorY.js} +75 -80
- package/dist/esm/{index-130e07bb.js → index-C20glyTb.js} +774 -406
- package/dist/esm/{intl-43676e71.js → intl-D-bH9lQF.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/priv-calendar.entry.js +6 -10
- package/dist/esm/priv-chart-popover.entry.js +4 -6
- package/dist/esm/priv-navigator-button.entry.js +3 -4
- package/dist/esm/priv-navigator-item.entry.js +3 -4
- package/dist/esm/priv-option-list.entry.js +10 -14
- package/dist/esm/ripple.js +6 -5
- package/dist/esm/wm-action-menu_2.entry.js +11 -18
- package/dist/esm/wm-button.entry.js +9 -15
- package/dist/esm/wm-chart-slice.entry.js +1 -6
- package/dist/esm/wm-chart.entry.js +14 -16
- package/dist/esm/wm-date-range.entry.js +10 -13
- package/dist/esm/wm-datepicker.entry.js +18 -15
- package/dist/esm/wm-file-list.entry.js +3 -4
- package/dist/esm/wm-file.entry.js +6 -14
- package/dist/esm/wm-flyout.entry.js +6 -15
- package/dist/esm/wm-input.entry.js +13 -17
- package/dist/esm/wm-line-chart.entry.js +18 -26
- package/dist/esm/wm-modal-pss_3.entry.js +12 -16
- package/dist/esm/wm-modal_3.entry.js +12 -17
- package/dist/esm/wm-navigation_3.entry.js +13 -20
- package/dist/esm/wm-navigator.entry.js +17 -13
- package/dist/esm/wm-nested-select.entry.js +21 -18
- package/dist/esm/wm-optgroup.entry.js +3 -5
- package/dist/esm/wm-option_2.entry.js +19 -18
- package/dist/esm/wm-pagination.entry.js +11 -12
- package/dist/esm/wm-progress-indicator_3.entry.js +10 -25
- package/dist/esm/wm-search.entry.js +27 -9
- package/dist/esm/wm-snackbar.entry.js +10 -10
- package/dist/esm/wm-tab-item_3.entry.js +23 -17
- package/dist/esm/wm-tag-input.entry.js +42 -46
- package/dist/esm/wm-tag-option.entry.js +2 -6
- package/dist/esm/wm-textarea.entry.js +13 -12
- package/dist/esm/wm-timepicker.entry.js +18 -15
- package/dist/esm/wm-toggletip.entry.js +9 -12
- package/dist/esm/wm-uploader.entry.js +18 -20
- package/dist/esm/wm-wrapper.entry.js +1 -1
- package/dist/esm-es5/app-globals-CrcR41XQ.js +1 -0
- package/dist/esm-es5/chartFunctions-BocRhQ0T.js +1 -0
- package/dist/esm-es5/functions-B9BrPorY.js +1 -0
- package/dist/esm-es5/index-C20glyTb.js +1 -0
- package/dist/esm-es5/{intl-43676e71.js → intl-D-bH9lQF.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-calendar.entry.js +1 -1
- package/dist/esm-es5/priv-chart-popover.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/priv-option-list.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-date-range.entry.js +1 -1
- package/dist/esm-es5/wm-datepicker.entry.js +1 -1
- package/dist/esm-es5/wm-file-list.entry.js +1 -1
- package/dist/esm-es5/wm-file.entry.js +1 -1
- package/dist/esm-es5/wm-flyout.entry.js +1 -1
- package/dist/esm-es5/wm-input.entry.js +1 -1
- package/dist/esm-es5/wm-line-chart.entry.js +1 -1
- package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -1
- package/dist/esm-es5/wm-modal_3.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-nested-select.entry.js +1 -1
- package/dist/esm-es5/wm-optgroup.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-progress-indicator_3.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-tag-option.entry.js +1 -1
- package/dist/esm-es5/wm-textarea.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/ripple/p-03e28e65.system.entry.js +1 -0
- package/dist/ripple/{p-f3df715f.entry.js → p-0616bd1c.entry.js} +1 -1
- package/dist/ripple/p-088a84b6.entry.js +1 -0
- package/dist/ripple/p-09116c34.entry.js +1 -0
- package/dist/ripple/{p-59591401.entry.js → p-0a9f8d0d.entry.js} +1 -1
- package/dist/ripple/{p-97ffaa7d.entry.js → p-1a96dc5e.entry.js} +1 -1
- package/dist/ripple/{p-b01f9572.system.entry.js → p-1b8f9ff1.system.entry.js} +1 -1
- package/dist/ripple/p-21728198.entry.js +1 -0
- package/dist/ripple/p-25227bec.entry.js +1 -0
- package/dist/ripple/p-264fb4fc.entry.js +1 -0
- package/dist/ripple/{p-61f9987d.system.entry.js → p-27c1933e.system.entry.js} +1 -1
- package/dist/ripple/p-27de107e.entry.js +1 -0
- package/dist/ripple/p-338835e6.entry.js +1 -0
- package/dist/ripple/p-3678e285.entry.js +1 -0
- package/dist/ripple/p-384f6dc8.entry.js +1 -0
- package/dist/ripple/{p-a5fb4171.system.entry.js → p-3fa20b7a.entry.js} +1 -1
- package/dist/ripple/{p-74f103dd.entry.js → p-476e2913.entry.js} +1 -1
- package/dist/ripple/{p-c699aec8.system.entry.js → p-4a50f797.system.entry.js} +1 -1
- package/dist/ripple/p-5026b7e8.entry.js +1 -0
- package/dist/ripple/{p-9b2281e2.system.entry.js → p-5166de03.system.entry.js} +1 -1
- package/dist/ripple/{p-bc4976e6.entry.js → p-5827cae3.system.entry.js} +1 -1
- package/dist/ripple/{p-ceac4dea.system.entry.js → p-59f7cfd7.system.entry.js} +1 -1
- package/dist/ripple/{p-b23c6351.system.entry.js → p-5a728ced.system.entry.js} +1 -1
- package/dist/ripple/p-5c8e802a.system.entry.js +1 -0
- package/dist/ripple/{p-cd0cc88d.entry.js → p-5cc5b46b.entry.js} +1 -1
- package/dist/ripple/{p-2f7ca1a7.system.entry.js → p-6c66e270.entry.js} +1 -1
- package/dist/ripple/p-6ffa9bfc.entry.js +1 -0
- package/dist/ripple/{p-043901ab.system.entry.js → p-70cdc5ce.system.entry.js} +1 -1
- package/dist/ripple/p-719b7087.system.entry.js +1 -0
- package/dist/ripple/{p-fe93b6b9.system.entry.js → p-734d06dc.system.entry.js} +1 -1
- package/dist/ripple/{p-4fb4deb9.entry.js → p-757b04eb.entry.js} +1 -1
- package/dist/ripple/{p-0bb576c5.system.entry.js → p-7ea000d6.system.entry.js} +1 -1
- package/dist/ripple/{p-30236be3.system.entry.js → p-81783193.system.entry.js} +1 -1
- package/dist/ripple/{p-36fd8aed.system.entry.js → p-82a66121.system.entry.js} +1 -1
- package/dist/ripple/p-85afd9bf.system.entry.js +1 -0
- package/dist/ripple/p-8eWf5O5Z.system.js +1 -0
- package/dist/ripple/p-90d11417.system.entry.js +1 -0
- package/dist/ripple/p-979cd9f4.entry.js +1 -0
- package/dist/ripple/p-B0uE_ID-.system.js +2 -0
- package/dist/ripple/p-B9BrPorY.js +1 -0
- package/dist/ripple/p-BOTV28v8.system.js +1 -0
- package/dist/ripple/{p-ba399879.system.js → p-BVUnLeDz.system.js} +1 -1
- package/dist/ripple/p-Bboe1S7O.js +1 -0
- package/dist/ripple/p-C20glyTb.js +2 -0
- package/dist/ripple/p-CKTNcFzW.system.js +1 -0
- package/dist/ripple/{p-49a347e1.js → p-DAuKYO5n.js} +1 -1
- package/dist/ripple/p-D_issjBT.system.js +1 -0
- package/dist/ripple/p-a1cd3c29.entry.js +1 -0
- package/dist/ripple/p-a634e9f5.entry.js +1 -0
- package/dist/ripple/p-b0653ac3.entry.js +1 -0
- package/dist/ripple/{p-89479d02.system.entry.js → p-b140b04d.system.entry.js} +1 -1
- package/dist/ripple/p-b2433a3c.system.entry.js +1 -0
- package/dist/ripple/{p-091fbc50.system.entry.js → p-b2604e2b.system.entry.js} +1 -1
- package/dist/ripple/{p-72ed488e.system.entry.js → p-b593e93c.system.entry.js} +1 -1
- package/dist/ripple/{p-9328023c.entry.js → p-c164a1cb.entry.js} +1 -1
- package/dist/ripple/p-c344e3c0.entry.js +1 -0
- package/dist/ripple/{p-1955c66a.system.entry.js → p-caef27f1.system.entry.js} +1 -1
- package/dist/ripple/{p-f8995a5e.system.entry.js → p-cf3defe6.system.entry.js} +1 -1
- package/dist/ripple/{p-4c2a044d.system.entry.js → p-d11e4c6e.system.entry.js} +1 -1
- package/dist/ripple/{p-c7d71181.system.entry.js → p-d17bf683.system.entry.js} +1 -1
- package/dist/ripple/{p-fe71ec64.system.entry.js → p-d1ea5d4c.system.entry.js} +1 -1
- package/dist/ripple/{p-c53f5914.entry.js → p-d293be99.system.entry.js} +1 -1
- package/dist/ripple/p-d3bc9393.entry.js +1 -0
- package/dist/ripple/{p-4e6b0a6e.system.entry.js → p-d3d5306c.system.entry.js} +1 -1
- package/dist/ripple/p-d5232e7d.entry.js +1 -0
- package/dist/ripple/{p-6a082957.entry.js → p-d61938ca.entry.js} +1 -1
- package/dist/ripple/p-dECFx5ly.js +1 -0
- package/dist/ripple/p-dc3e43aa.entry.js +1 -0
- package/dist/ripple/{p-57c25b63.entry.js → p-dca6cfbd.entry.js} +1 -1
- package/dist/ripple/{p-f9fa1506.system.entry.js → p-de4c51e2.system.entry.js} +1 -1
- package/dist/ripple/{p-8ec2e944.system.entry.js → p-e2e2929f.system.entry.js} +1 -1
- package/dist/ripple/p-e63b30bd.system.entry.js +1 -0
- package/dist/ripple/{p-2823d02b.system.entry.js → p-e6e4e23a.system.entry.js} +1 -1
- package/dist/ripple/p-e9b67596.entry.js +1 -0
- package/dist/ripple/p-ebd318c6.entry.js +1 -0
- package/dist/ripple/p-ee0e88ed.entry.js +1 -0
- package/dist/ripple/{p-92a50b38.system.entry.js → p-ef56fc5a.system.entry.js} +1 -1
- package/dist/ripple/{p-12d6ab73.system.entry.js → p-f878d184.system.entry.js} +1 -1
- package/dist/ripple/{p-c4896784.system.entry.js → p-fb4367a8.system.entry.js} +1 -1
- package/dist/ripple/p-fc35bcf9.entry.js +1 -0
- package/dist/ripple/p-ffd7de48.entry.js +1 -0
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/datepickers/wm-datepicker.d.ts +1 -0
- package/dist/types/components/selects/wm-nested-select/wm-nested-select.d.ts +1 -0
- package/dist/types/components/selects/wm-select/wm-select.d.ts +1 -0
- package/dist/types/components/wm-input/wm-input.d.ts +1 -0
- package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +1 -0
- package/dist/types/components/wm-textarea/wm-textarea.d.ts +1 -0
- package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +1 -0
- package/dist/types/components/wm-uploader/wm-uploader.d.ts +1 -0
- package/dist/types/components.d.ts +986 -0
- package/dist/types/stencil-public-runtime.d.ts +37 -2
- package/package.json +2 -2
- package/dist/cjs/app-globals-f56991b7.js +0 -92
- package/dist/esm/app-globals-cc7a1bd5.js +0 -90
- package/dist/esm-es5/app-globals-cc7a1bd5.js +0 -1
- package/dist/esm-es5/chartFunctions-6749593d.js +0 -1
- package/dist/esm-es5/functions-dabfd76f.js +0 -1
- package/dist/esm-es5/index-130e07bb.js +0 -1
- package/dist/loader/package.json +0 -11
- package/dist/ripple/p-0189929d.entry.js +0 -1
- package/dist/ripple/p-0c89b82c.entry.js +0 -1
- package/dist/ripple/p-12ac8f93.js +0 -1
- package/dist/ripple/p-13b1d775.entry.js +0 -1
- package/dist/ripple/p-144ce232.entry.js +0 -1
- package/dist/ripple/p-1497ccfc.entry.js +0 -1
- package/dist/ripple/p-1a3037aa.entry.js +0 -1
- package/dist/ripple/p-22b55b6f.entry.js +0 -1
- package/dist/ripple/p-257d2d5c.entry.js +0 -1
- package/dist/ripple/p-30201dc9.entry.js +0 -1
- package/dist/ripple/p-36d2b888.entry.js +0 -1
- package/dist/ripple/p-3f98056c.js +0 -1
- package/dist/ripple/p-41120a33.system.js +0 -1
- package/dist/ripple/p-492aa9fe.system.entry.js +0 -1
- package/dist/ripple/p-4a29bb8c.entry.js +0 -1
- package/dist/ripple/p-4cebf2d7.entry.js +0 -1
- package/dist/ripple/p-56d54fe6.system.entry.js +0 -1
- package/dist/ripple/p-5cff41e0.entry.js +0 -1
- package/dist/ripple/p-5ef786db.system.entry.js +0 -1
- package/dist/ripple/p-6a03a172.entry.js +0 -1
- package/dist/ripple/p-6abc1227.entry.js +0 -1
- package/dist/ripple/p-6d12cfb7.system.entry.js +0 -1
- package/dist/ripple/p-81ce2697.entry.js +0 -1
- package/dist/ripple/p-823d7b4e.system.entry.js +0 -1
- package/dist/ripple/p-89316785.system.js +0 -1
- package/dist/ripple/p-8a569d3b.entry.js +0 -1
- package/dist/ripple/p-8f987f71.entry.js +0 -1
- package/dist/ripple/p-92cb12d3.entry.js +0 -1
- package/dist/ripple/p-94f776eb.entry.js +0 -1
- package/dist/ripple/p-a2c8937d.js +0 -1
- package/dist/ripple/p-b34552b0.system.entry.js +0 -1
- package/dist/ripple/p-b39ab477.entry.js +0 -1
- package/dist/ripple/p-bb9f6920.entry.js +0 -1
- package/dist/ripple/p-bd48c50a.entry.js +0 -1
- package/dist/ripple/p-c1aa877a.system.js +0 -1
- package/dist/ripple/p-c31e1379.entry.js +0 -1
- package/dist/ripple/p-cef8a45b.system.js +0 -2
- package/dist/ripple/p-d333d851.system.entry.js +0 -1
- package/dist/ripple/p-d9da0502.js +0 -2
- package/dist/ripple/p-e59a48a6.system.js +0 -1
- /package/dist/cjs/{interfaces-85d78ae9.js → interfaces-C7YbtGnk.js} +0 -0
- /package/dist/esm/{interfaces-cc5b177f.js → interfaces-COwzv5zO.js} +0 -0
- /package/dist/esm-es5/{interfaces-cc5b177f.js → interfaces-COwzv5zO.js} +0 -0
- /package/dist/ripple/{p-2732bddd.js → p-COwzv5zO.js} +0 -0
- /package/dist/ripple/{p-42fa7a77.system.js → p-ClUp3GkF.system.js} +0 -0
- /package/dist/ripple/{p-50ea2036.system.js → p-YWpyar7R.system.js} +0 -0
|
@@ -260,6 +260,25 @@ export declare function setPlatformHelpers(helpers: {
|
|
|
260
260
|
* @returns the base path
|
|
261
261
|
*/
|
|
262
262
|
export declare function getAssetPath(path: string): string;
|
|
263
|
+
/**
|
|
264
|
+
* Method to render a virtual DOM tree to a container element.
|
|
265
|
+
*
|
|
266
|
+
* @example
|
|
267
|
+
* ```tsx
|
|
268
|
+
* import { render } from '@stencil/core';
|
|
269
|
+
*
|
|
270
|
+
* const vnode = (
|
|
271
|
+
* <div>
|
|
272
|
+
* <h1>Hello, world!</h1>
|
|
273
|
+
* </div>
|
|
274
|
+
* );
|
|
275
|
+
* render(vnode, document.body);
|
|
276
|
+
* ```
|
|
277
|
+
*
|
|
278
|
+
* @param vnode - The virtual DOM tree to render
|
|
279
|
+
* @param container - The container element to render the virtual DOM tree to
|
|
280
|
+
*/
|
|
281
|
+
export declare function render(vnode: VNode, container: Element): void;
|
|
263
282
|
/**
|
|
264
283
|
* Used to manually set the base path where assets can be found. For lazy-loaded
|
|
265
284
|
* builds the asset path is automatically set and assets copied to the correct
|
|
@@ -826,7 +845,8 @@ export declare namespace JSXBase {
|
|
|
826
845
|
}
|
|
827
846
|
interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
828
847
|
open?: boolean;
|
|
829
|
-
|
|
848
|
+
name?: string;
|
|
849
|
+
onToggle?: (event: ToggleEvent) => void;
|
|
830
850
|
}
|
|
831
851
|
interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
832
852
|
cite?: string;
|
|
@@ -1015,6 +1035,8 @@ export declare namespace JSXBase {
|
|
|
1015
1035
|
autoPlay?: boolean;
|
|
1016
1036
|
autoplay?: boolean | string;
|
|
1017
1037
|
controls?: boolean;
|
|
1038
|
+
controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1039
|
+
controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1018
1040
|
crossOrigin?: string;
|
|
1019
1041
|
crossorigin?: string;
|
|
1020
1042
|
loop?: boolean;
|
|
@@ -1530,6 +1552,13 @@ export declare namespace JSXBase {
|
|
|
1530
1552
|
z?: number | string;
|
|
1531
1553
|
zoomAndPan?: string;
|
|
1532
1554
|
}
|
|
1555
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
|
|
1556
|
+
interface ToggleEvent extends Event {
|
|
1557
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */
|
|
1558
|
+
readonly newState: string;
|
|
1559
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */
|
|
1560
|
+
readonly oldState: string;
|
|
1561
|
+
}
|
|
1533
1562
|
interface DOMAttributes<T> extends JSXAttributes<T> {
|
|
1534
1563
|
slot?: string;
|
|
1535
1564
|
part?: string;
|
|
@@ -1546,6 +1575,10 @@ export declare namespace JSXBase {
|
|
|
1546
1575
|
onCompositionstartCapture?: (event: CompositionEvent) => void;
|
|
1547
1576
|
onCompositionupdate?: (event: CompositionEvent) => void;
|
|
1548
1577
|
onCompositionupdateCapture?: (event: CompositionEvent) => void;
|
|
1578
|
+
onBeforeToggle?: (event: ToggleEvent) => void;
|
|
1579
|
+
onBeforeToggleCapture?: (event: ToggleEvent) => void;
|
|
1580
|
+
onToggle?: (event: ToggleEvent) => void;
|
|
1581
|
+
onToggleCapture?: (event: ToggleEvent) => void;
|
|
1549
1582
|
onFocus?: (event: FocusEvent) => void;
|
|
1550
1583
|
onFocusCapture?: (event: FocusEvent) => void;
|
|
1551
1584
|
onFocusin?: (event: FocusEvent) => void;
|
|
@@ -1575,7 +1608,7 @@ export declare namespace JSXBase {
|
|
|
1575
1608
|
onKeyUp?: (event: KeyboardEvent) => void;
|
|
1576
1609
|
onKeyUpCapture?: (event: KeyboardEvent) => void;
|
|
1577
1610
|
onAuxClick?: (event: MouseEvent) => void;
|
|
1578
|
-
onClick?: (event:
|
|
1611
|
+
onClick?: (event: PointerEvent) => void;
|
|
1579
1612
|
onClickCapture?: (event: MouseEvent) => void;
|
|
1580
1613
|
onContextMenu?: (event: MouseEvent) => void;
|
|
1581
1614
|
onContextMenuCapture?: (event: MouseEvent) => void;
|
|
@@ -1655,6 +1688,8 @@ export declare namespace JSXBase {
|
|
|
1655
1688
|
onTransitionRunCapture?: (event: TransitionEvent) => void;
|
|
1656
1689
|
onTransitionStart?: (event: TransitionEvent) => void;
|
|
1657
1690
|
onTransitionStartCapture?: (event: TransitionEvent) => void;
|
|
1691
|
+
[key: `aria-${string}`]: string | boolean | undefined;
|
|
1692
|
+
[key: `aria${string}`]: string | boolean | undefined;
|
|
1658
1693
|
}
|
|
1659
1694
|
}
|
|
1660
1695
|
export interface JSXAttributes<T = Element> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@watermarkinsights/ripple",
|
|
3
|
-
"version": "5.16.0-alpha.
|
|
3
|
+
"version": "5.16.0-alpha.10",
|
|
4
4
|
"description": "Ripple Component Library",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"@types/jest": "^29.5.12",
|
|
37
37
|
"jest": "^29.7.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "a905f1be4ccb87c4c890a2e65e7b184f11868104"
|
|
40
40
|
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
require('./index-788526f5.js');
|
|
4
|
-
|
|
5
|
-
const version = "5.16.0-alpha.1";
|
|
6
|
-
|
|
7
|
-
// PRINT RIPPLE VERSION IN CONSOLE
|
|
8
|
-
// test envs return 0 for plugin.length
|
|
9
|
-
// do not print version number there as it causes issues
|
|
10
|
-
if (window.navigator.plugins.length > 0) {
|
|
11
|
-
console.log("%cRipple component library %c%s", "color: #575195; font-weight: bold", "font-weight: bold", version);
|
|
12
|
-
}
|
|
13
|
-
// Dispatching events to track whether user is navigating with keyboard or mouse
|
|
14
|
-
// no longer necessary for keyboard focus indicators (thanks to :focus-visible)
|
|
15
|
-
// but still used in several components for other things (search for isTabbing)
|
|
16
|
-
function wmComponentKeys(ev) {
|
|
17
|
-
if (ev.key == "Tab") {
|
|
18
|
-
var event = new Event("wmUserIsTabbing");
|
|
19
|
-
window.dispatchEvent(event);
|
|
20
|
-
document.querySelector("body").classList.add("wmcl-user-is-tabbing");
|
|
21
|
-
}
|
|
22
|
-
if (ev.key == "ArrowLeft" || ev.key == "ArrowUp" || ev.key == "ArrowRight" || ev.key == "ArrowDown") {
|
|
23
|
-
var event = new Event("wmUserIsKeying");
|
|
24
|
-
window.dispatchEvent(event);
|
|
25
|
-
document.querySelector("body").classList.add("wmcl-user-is-keying");
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function wmComponentMouseDownOnce() {
|
|
29
|
-
var event = new Event("wmUserIsNotTabbing");
|
|
30
|
-
window.dispatchEvent(event);
|
|
31
|
-
document.querySelector("body").classList.remove("wmcl-user-is-tabbing");
|
|
32
|
-
document.querySelector("body").classList.remove("wmcl-user-is-keying");
|
|
33
|
-
}
|
|
34
|
-
window.addEventListener("keydown", wmComponentKeys);
|
|
35
|
-
window.addEventListener("mousedown", wmComponentMouseDownOnce);
|
|
36
|
-
// TOOLTIP
|
|
37
|
-
// Add a tooltip element
|
|
38
|
-
// This allows tooltips to be always at the highest stacking context (always on top)
|
|
39
|
-
// Element is added withing a container to avoid performance impact
|
|
40
|
-
const tooltipContainer = document.createElement("div");
|
|
41
|
-
tooltipContainer.id = "wm-tooltip-container";
|
|
42
|
-
const tooltipEl = document.createElement("div");
|
|
43
|
-
tooltipEl.id = "wm-tooltip";
|
|
44
|
-
tooltipEl.classList.add("wm-tooltip");
|
|
45
|
-
tooltipEl.setAttribute("popover", "manual");
|
|
46
|
-
tooltipEl.setAttribute("aria-hidden", "true");
|
|
47
|
-
const tooltipStyles = document.createElement("style");
|
|
48
|
-
tooltipStyles.textContent = `
|
|
49
|
-
.wm-tooltip {
|
|
50
|
-
position: fixed;
|
|
51
|
-
overflow: hidden;
|
|
52
|
-
pointer-events: none;
|
|
53
|
-
line-height: normal;
|
|
54
|
-
font-family: inherit;
|
|
55
|
-
font-size: 0.875rem;
|
|
56
|
-
text-transform: none;
|
|
57
|
-
font-weight: normal;
|
|
58
|
-
background: var(--wmcolor-tooltip-background);
|
|
59
|
-
color: var(--wmcolor-tooltip-text);
|
|
60
|
-
z-index: 999999;
|
|
61
|
-
max-width: var(--wmTooltipMaxWidth, 13.75rem);
|
|
62
|
-
margin-right: 1.5rem;
|
|
63
|
-
padding: 0.375rem;
|
|
64
|
-
transition-property: opacity;
|
|
65
|
-
transition-delay: 0s;
|
|
66
|
-
opacity: 0;
|
|
67
|
-
inset: unset;
|
|
68
|
-
top: 0;
|
|
69
|
-
left: 0;
|
|
70
|
-
transform: translateZ(0);
|
|
71
|
-
will-change: transform;
|
|
72
|
-
transform: translate(var(--wmTooltipLeft), var(--wmTooltipTop));
|
|
73
|
-
border: none;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.wm-tooltip:popover-open {
|
|
77
|
-
opacity: 0;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.wm-tooltip.show {
|
|
81
|
-
transition-delay: 500ms;
|
|
82
|
-
opacity: 1;
|
|
83
|
-
}
|
|
84
|
-
`;
|
|
85
|
-
document.head.appendChild(tooltipStyles);
|
|
86
|
-
tooltipContainer.appendChild(tooltipEl);
|
|
87
|
-
document.querySelector("body").appendChild(tooltipContainer);
|
|
88
|
-
const globalFn = () => { };
|
|
89
|
-
|
|
90
|
-
const globalScripts = globalFn;
|
|
91
|
-
|
|
92
|
-
exports.globalScripts = globalScripts;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import './index-130e07bb.js';
|
|
2
|
-
|
|
3
|
-
const version = "5.16.0-alpha.1";
|
|
4
|
-
|
|
5
|
-
// PRINT RIPPLE VERSION IN CONSOLE
|
|
6
|
-
// test envs return 0 for plugin.length
|
|
7
|
-
// do not print version number there as it causes issues
|
|
8
|
-
if (window.navigator.plugins.length > 0) {
|
|
9
|
-
console.log("%cRipple component library %c%s", "color: #575195; font-weight: bold", "font-weight: bold", version);
|
|
10
|
-
}
|
|
11
|
-
// Dispatching events to track whether user is navigating with keyboard or mouse
|
|
12
|
-
// no longer necessary for keyboard focus indicators (thanks to :focus-visible)
|
|
13
|
-
// but still used in several components for other things (search for isTabbing)
|
|
14
|
-
function wmComponentKeys(ev) {
|
|
15
|
-
if (ev.key == "Tab") {
|
|
16
|
-
var event = new Event("wmUserIsTabbing");
|
|
17
|
-
window.dispatchEvent(event);
|
|
18
|
-
document.querySelector("body").classList.add("wmcl-user-is-tabbing");
|
|
19
|
-
}
|
|
20
|
-
if (ev.key == "ArrowLeft" || ev.key == "ArrowUp" || ev.key == "ArrowRight" || ev.key == "ArrowDown") {
|
|
21
|
-
var event = new Event("wmUserIsKeying");
|
|
22
|
-
window.dispatchEvent(event);
|
|
23
|
-
document.querySelector("body").classList.add("wmcl-user-is-keying");
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
function wmComponentMouseDownOnce() {
|
|
27
|
-
var event = new Event("wmUserIsNotTabbing");
|
|
28
|
-
window.dispatchEvent(event);
|
|
29
|
-
document.querySelector("body").classList.remove("wmcl-user-is-tabbing");
|
|
30
|
-
document.querySelector("body").classList.remove("wmcl-user-is-keying");
|
|
31
|
-
}
|
|
32
|
-
window.addEventListener("keydown", wmComponentKeys);
|
|
33
|
-
window.addEventListener("mousedown", wmComponentMouseDownOnce);
|
|
34
|
-
// TOOLTIP
|
|
35
|
-
// Add a tooltip element
|
|
36
|
-
// This allows tooltips to be always at the highest stacking context (always on top)
|
|
37
|
-
// Element is added withing a container to avoid performance impact
|
|
38
|
-
const tooltipContainer = document.createElement("div");
|
|
39
|
-
tooltipContainer.id = "wm-tooltip-container";
|
|
40
|
-
const tooltipEl = document.createElement("div");
|
|
41
|
-
tooltipEl.id = "wm-tooltip";
|
|
42
|
-
tooltipEl.classList.add("wm-tooltip");
|
|
43
|
-
tooltipEl.setAttribute("popover", "manual");
|
|
44
|
-
tooltipEl.setAttribute("aria-hidden", "true");
|
|
45
|
-
const tooltipStyles = document.createElement("style");
|
|
46
|
-
tooltipStyles.textContent = `
|
|
47
|
-
.wm-tooltip {
|
|
48
|
-
position: fixed;
|
|
49
|
-
overflow: hidden;
|
|
50
|
-
pointer-events: none;
|
|
51
|
-
line-height: normal;
|
|
52
|
-
font-family: inherit;
|
|
53
|
-
font-size: 0.875rem;
|
|
54
|
-
text-transform: none;
|
|
55
|
-
font-weight: normal;
|
|
56
|
-
background: var(--wmcolor-tooltip-background);
|
|
57
|
-
color: var(--wmcolor-tooltip-text);
|
|
58
|
-
z-index: 999999;
|
|
59
|
-
max-width: var(--wmTooltipMaxWidth, 13.75rem);
|
|
60
|
-
margin-right: 1.5rem;
|
|
61
|
-
padding: 0.375rem;
|
|
62
|
-
transition-property: opacity;
|
|
63
|
-
transition-delay: 0s;
|
|
64
|
-
opacity: 0;
|
|
65
|
-
inset: unset;
|
|
66
|
-
top: 0;
|
|
67
|
-
left: 0;
|
|
68
|
-
transform: translateZ(0);
|
|
69
|
-
will-change: transform;
|
|
70
|
-
transform: translate(var(--wmTooltipLeft), var(--wmTooltipTop));
|
|
71
|
-
border: none;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.wm-tooltip:popover-open {
|
|
75
|
-
opacity: 0;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.wm-tooltip.show {
|
|
79
|
-
transition-delay: 500ms;
|
|
80
|
-
opacity: 1;
|
|
81
|
-
}
|
|
82
|
-
`;
|
|
83
|
-
document.head.appendChild(tooltipStyles);
|
|
84
|
-
tooltipContainer.appendChild(tooltipEl);
|
|
85
|
-
document.querySelector("body").appendChild(tooltipContainer);
|
|
86
|
-
const globalFn = () => { };
|
|
87
|
-
|
|
88
|
-
const globalScripts = globalFn;
|
|
89
|
-
|
|
90
|
-
export { globalScripts as g };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./index-130e07bb.js";var version="5.16.0-alpha.1";if(window.navigator.plugins.length>0){console.log("%cRipple component library %c%s","color: #575195; font-weight: bold","font-weight: bold",version)}function wmComponentKeys(o){if(o.key=="Tab"){var n=new Event("wmUserIsTabbing");window.dispatchEvent(n);document.querySelector("body").classList.add("wmcl-user-is-tabbing")}if(o.key=="ArrowLeft"||o.key=="ArrowUp"||o.key=="ArrowRight"||o.key=="ArrowDown"){var n=new Event("wmUserIsKeying");window.dispatchEvent(n);document.querySelector("body").classList.add("wmcl-user-is-keying")}}function wmComponentMouseDownOnce(){var o=new Event("wmUserIsNotTabbing");window.dispatchEvent(o);document.querySelector("body").classList.remove("wmcl-user-is-tabbing");document.querySelector("body").classList.remove("wmcl-user-is-keying")}window.addEventListener("keydown",wmComponentKeys);window.addEventListener("mousedown",wmComponentMouseDownOnce);var tooltipContainer=document.createElement("div");tooltipContainer.id="wm-tooltip-container";var tooltipEl=document.createElement("div");tooltipEl.id="wm-tooltip";tooltipEl.classList.add("wm-tooltip");tooltipEl.setAttribute("popover","manual");tooltipEl.setAttribute("aria-hidden","true");var tooltipStyles=document.createElement("style");tooltipStyles.textContent="\n.wm-tooltip {\n position: fixed;\n overflow: hidden;\n pointer-events: none;\n line-height: normal;\n font-family: inherit;\n font-size: 0.875rem;\n text-transform: none;\n font-weight: normal;\n background: var(--wmcolor-tooltip-background);\n color: var(--wmcolor-tooltip-text);\n z-index: 999999;\n max-width: var(--wmTooltipMaxWidth, 13.75rem);\n margin-right: 1.5rem;\n padding: 0.375rem;\n transition-property: opacity;\n transition-delay: 0s;\n opacity: 0;\n inset: unset;\n top: 0;\n left: 0;\n transform: translateZ(0);\n will-change: transform;\n transform: translate(var(--wmTooltipLeft), var(--wmTooltipTop));\n border: none;\n}\n\n.wm-tooltip:popover-open {\n opacity: 0;\n}\n\n.wm-tooltip.show {\n transition-delay: 500ms;\n opacity: 1;\n}\n";document.head.appendChild(tooltipStyles);tooltipContainer.appendChild(tooltipEl);document.querySelector("body").appendChild(tooltipContainer);var globalFn=function(){};var globalScripts=globalFn;export{globalScripts as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function o(e){try{c(n["throw"](e))}catch(e){i(e)}}function c(e){e.done?r(e.value):a(e.value).then(s,o)}c((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return c([e,t])}}function c(o){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(r=0)),r)try{if(n=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(o[0]===6&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}if(i[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];a=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++){if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return e.concat(i||Array.prototype.slice.call(t))};import{h}from"./index-130e07bb.js";import{i as intl,c as checkForActiveElInShadow,e as safeMultiplyFloat,f as getPosition}from"./functions-dabfd76f.js";var colors={salmon:"#ff5f4e",cyan:"#19a1a9",forest:"#088000",sleet:"#7f97ad",midnight:"#2e1b46",lavender:"#8b86ca",periwinkle:"#575195",gray:"#6b6b6b"};var allChartsDetails={doughnut:{size:155,colors:[colors.forest,colors.gray],thickness:.73,padding:25,category:"doughnut"},doughnut1:{size:130,colors:[colors.lavender,colors.midnight,colors.gray],thickness:.5,padding:90,category:"doughnut"},doughnut2:{size:130,colors:[colors.periwinkle,colors.cyan,colors.midnight,colors.salmon,colors.gray],thickness:.5,padding:90,category:"doughnut"},doughnut3:{size:130,colors:[colors.lavender,colors.midnight,"#0089e4",colors.forest,"#ea8500","#d54f41","#146ca9"],thickness:.5,padding:90,category:"doughnut"},bar:{size:350,colors:[colors.forest,colors.gray],padding:0,category:"stackedBar"},bar2:{size:400,colors:[colors.gray,colors.lavender,colors.periwinkle,colors.midnight,colors.cyan,colors.salmon],padding:0,category:"stackedBar"},bar3:{size:300,colors:["#0d696e",colors.cyan,"#8e4129",colors.salmon],padding:0,category:"stackedBar"},bar4:{size:400,colors:[colors.salmon,colors.cyan,colors.periwinkle],padding:0,category:"stackedBar"},bar5:{size:400,colors:[colors.gray,colors.lavender,colors.midnight,"#0089e4",colors.forest,"#ea8500","#d54f41","#146ca9"],padding:0,category:"stackedBar"},bar6:{size:400,colors:[colors.lavender],padding:0,category:"simpleBar"},bar7:{size:400,colors:[colors.periwinkle,colors.cyan,colors.salmon,colors.gray],padding:0,category:"simpleBar"}};function showValue(e){return e==="percentage"||e==="amount"?"show-values":""}var textHiddenMessage=intl.formatMessage({id:"chart.hiddenValues",defaultMessage:"Values are hidden when too close together.",description:"Text displayed when a chart has some values hidden"});var seeDetailsMessage=intl.formatMessage({id:"chart.clickToSeeDetails",defaultMessage:"Click or use arrow keys to see details.",description:"Text displayed, guiding user to interact to see more details."});function abbrNumber(e){return e>999||e<-999?Math.round(e/100)/10+"K":e}function amountToPercent(e,t,r){return r?Math.round(e*100/t):Math.round(e*1e4/t)/100}function amountToDegree(e,t){return e*360/t}function toFixed(e){return parseFloat((Math.floor(e*100)/100).toFixed(2))}function polarToCartesian(e,t,r,n){var a=toFixed(e+e*t*Math.cos(Math.PI*r/180));var i=toFixed(e+e*t*Math.sin(Math.PI*r/180));if(n!==undefined){var s=toFixed(e+e*t*Math.cos(Math.PI*n/180));var o=toFixed(e+e*t*Math.sin(Math.PI*n/180));return{x1:a,y1:i,x2:s,y2:o}}return{x:a,y:i}}function getArc(e,t,r,n,a){var i=toFixed(a/2*e);return"A ".concat(i,", ").concat(i," 0 ").concat(t," ").concat(toFixed(r),", ").concat(toFixed(n))}function scale(e,t,r,n,a){var i=(e-t)*(a-n)/(r-t)+n;return i<n?n:i>a?a:i}function minSpacing(e){return scale(e,300,900,70,150)}function getMaxTicks(e){return Math.round(e/minSpacing(e))}function getInterval(e,t){var r=e/t;var n=Math.pow(10,Math.floor(Math.log10(r)));var a=r/n;var i;if(a>5){i=10*n}else if(a>3){i=5*n}else if(a>2){i=3*n}else if(a>1.5){i=2*n}else if(a>1){i=1.5*n}else{i=n}return i}function handleSliceKeyDown(e){if(this.popoverEl&&this.popoverEl.open&&e.key==="Enter"){var t=this.popoverEl.querySelector("button");t&&t.click()}}function handleSliceClick(e,t){if(this.popoverEl&&!this.isTabbing){t.coords={x:e.clientX,y:e.clientY};openPopover(this.popoverEl,t);highlightSegmentInfo(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),t)}}function handleSliceFocus(e,t){if(this.popoverEl&&this.isTabbing){this.focusedSliceId=t.id;t.coords=getPosition(e.target);t.coords.x=t.coords.x+30;t.coords.y=t.coords.y+30;openPopover(this.popoverEl,t);highlightSegmentInfo(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),t)}}function handleChartKeydown(e){switch(e.key){case"ArrowUp":case"ArrowLeft":e.preventDefault();this.isTabbing=true;focusPrevious.call(this);break;case"ArrowRight":case"ArrowDown":e.preventDefault();this.isTabbing=true;focusNext.call(this);break;case"Tab":exitChart.call(this);break;case"Escape":this.popoverEl.open=false;this.userIsNavigating=false;break}}function openPopover(e,t){e.open=false;if(t.title&&t.text){e.sliceDetails=Object.assign({},t);window.setTimeout((function(){return e.open=true}),30)}}function focusNext(){var e=checkForActiveElInShadow(document.activeElement);var t=(this.sliceEls.indexOf(e)+1)%this.sliceEls.length;focusSlice.call(this,t)}function focusPrevious(){if(this.sliceEls){var e=checkForActiveElInShadow(document.activeElement);var t=this.sliceEls.indexOf(e);if(t===-1){t=0}else if(t===0){t=this.sliceEls.length-1}else{t-=1}focusSlice.call(this,t)}}function focusSlice(e){var t=this;if(this.sliceEls&&this.el){this.userIsNavigating=true;this.componentWrapperEl.tabIndex=-1;this.el.focusable=false;this.sliceEls.map((function(e){e.tabIndex=-1;e.focusable=false}));this.sliceEls[e].tabIndex=0;this.sliceEls[e].focusable=true;this.sliceEls[e].focus();this.focusedSliceId=this.sliceEls[e].id;window.setTimeout((function(){if(t.popoverEl){t.popoverEl.open=true}}),10)}}function exitChart(){var e=this;this.focusedSliceId=undefined;this.sliceEls&&this.sliceEls.map((function(e){e.tabIndex=-1;e.focusable=false}));this.userIsNavigating=false;window.setTimeout((function(){e.componentWrapperEl.tabIndex=0;e.el.focusable=true;if(e.popoverEl){e.popoverEl.open=false}}),100)}function getDetails(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,a;var i=this;return __generator(this,(function(s){this.slicesDetails=[];t=0;r=Array.from(this.el.children);this.total=r.reduce((function(e,t){var r=parseInt(t.getAttribute("amount")||"0");return e+r}),0);n=__spreadArray([],allChartsDetails[e].colors,true);if(this.chartType==="bar2"){if(r.length<=5){n.splice(1,1)}if(r.length<=4){n.splice(2,1)}}if(e==="bar3"&&r.length===2){n=[n[1],n[3]]}if(e==="doughnut2"&&r.length<5){n.splice(2,1);if(r.length<4){n.shift()}}if(e==="bar5"&&!this.notStartedColor){n.shift()}a=0;r.forEach((function(r,s){var o=r.getAttribute("amount");if(o==null)return;var c=parseInt(o||"0");var u=amountToPercent(c,i.total,true);var h=s;if(e==="bar6"){h=0}var l={amount:c,visualAmount:c,perc:u,legend:r.getAttribute("legend"),color:n[h]||colors.gray,offset:t,id:"".concat(i.uid,"-").concat(a+1),title:r.getAttribute("popover-title"),text:r.getAttribute("popover-text"),buttonText:r.getAttribute("popover-button-text"),sliceRef:r,inSmallCluster:false,index:a};t+=c;i.slicesDetails.push(l);a++}));return[2]}))}))}function sortSlicesDetails(e,t){var r=__spreadArray([],e,true).sort((function(e,t){return e.amount===t.amount?0:e.amount>t.amount?-1:1}));var n=0;r.filter((function(e){return e.amount>0})).forEach((function(e,a){var i=r[a===0?r.length-1:a-1];var s=r[a===r.length-1?0:a+1];var o=amountToPercent(i.amount,t,true);var c=amountToPercent(s.amount,t,true);var u=e.perc===0?8:5;var h=e.perc<4;var l=o<u;var d=c<u;var f=h&&(l||d);e.inSmallCluster=f;e.offset=n;n+=e.amount}));return r}function getPathData(e,t,r){var n=amountToDegree(t,this.total)-90;var a=e/this.total*360;var i=n+a;var s=a>180?"1 1":"0 1";var o=a>180?"1 0":"0 0";var c=this.chartDetails.size/2;var u=this.chartDetails.thickness;var h=1;var l=r==="doughnut";var d=1.5;var f=l?2.25:3;if(a===360){i-=.01}var v=polarToCartesian(c,h,n+d,i);var g=polarToCartesian(c,u,n+f,i);var p="M ".concat(v.x1,", ").concat(v.y1," ");var m=getArc(h,s,v.x2,v.y2,this.chartDetails.size);var b=" L ".concat(g.x2,", ").concat(g.y2," ");var x=getArc(u,o,g.x1,g.y1,this.chartDetails.size);return p+m+b+x+" z"}function renderInstructionsText(){var e=intl.formatMessage({id:"chart.instructions",defaultMessage:"Use arrow keys to browse elements, press Tab to exit.",description:"For screen readers only, instructions on how to interact with the chart component"});return h("div",{id:"chart-instructions"},e)}function renderFilter(){return h("defs",null,h("filter",{id:"wmHoverDropShadow"},h("feGaussianBlur",{stdDeviation:"3"}),h("feOffset",{result:"offsetblur"}),h("feFlood",{"flood-color":"#333"}),h("feComposite",{operator:"in",in2:"offsetblur"}),h("feMerge",null,h("feMergeNode",null),h("feMergeNode",{in:"SourceGraphic"}))))}function applyMinimumAngle(e,t,r){var n=t.map((function(e){return amountToDegree(e.amount,r)}));var a=n.some((function(t){return t!==0&&t<e}));if(a){var i=n.map((function(t){return t==0?t:Math.max(t,e)}));var s=i.reduce((function(t,r){return t+(r>e&&r!==0?r:0)}),0);var o=i.reduce((function(t,r){return t+(r>e&&r!==0?0:r)}),0);var c=360-o;var u=s-c;var h=u/c;var l=i.map((function(t){return t>e?t-h*t:t==0?0:e}));var d=0;t=t.map((function(e,t){var n=l[t]/360*r;var a=d;d+=n;return Object.assign(Object.assign({},e),{visualAmount:n,offset:a})}))}return t}function renderDoughnut(e){var t=this;var r=this.chartDetails.size+this.chartDetails.padding;var n=e==="doughnut";var a=n?this.slicesDetails:sortSlicesDetails(this.slicesDetails,this.total);a=applyMinimumAngle(7,a,this.total);var i=a[0].amount;var s=amountToPercent(i,this.total,true);if(s===0&&i>0){s="<1%"}else if(s===100&&i<this.total){s=">99%"}else{s=s+"%"}return h("div",{class:"chart-wrapper doughnut-wrapper"},h("svg",{width:r+"px",height:r+"px",id:"graphic-".concat(this.uid),class:"doughnut-svg"},renderFilter(),a.map((function(r){return renderPath.call(t,r,e)})),renderFocusOutline.call(this),n?h("text",{class:"value",x:"50%",y:"50%","font-size":"1.5rem","font-weight":"500","text-anchor":"middle","dominant-baseline":"middle"},s):h("g",{transform:"translate(".concat(this.chartDetails.padding/2,", ").concat(this.chartDetails.padding/2,")"),"text-anchor":"middle","dominant-baseline":"middle"},a.map((function(e){return e.amount>0&&!e.inSmallCluster?renderDoughnutText.call(t,e):""})))))}function highlightSegmentInfo(e,t){e.forEach((function(e){if(e.dataset.segmentindex&&parseInt(e.dataset.segmentindex)!==t.index){e.classList.add("faded")}else{e.classList.remove("faded")}}))}function removeSegmentInfoHighlight(e){e.forEach((function(e){e.classList.remove("faded")}))}function renderPath(e,t){var r=this;var n=amountToPercent(e.amount,this.total,true)+"%";return!isNaN(e.amount)&&h("g",{transform:"translate(".concat(this.chartDetails.padding/2,", ").concat(this.chartDetails.padding/2,")")},h("path",{id:e.id,class:"segment doughnut-segment",fill:e.visualAmount?e.color:"transparent",d:getPathData.call(this,e.visualAmount,e.offset,t),onClick:function(t){return handleSliceClick.call(r,t,e)},onFocus:function(t){return handleSliceFocus.call(r,t,e)},onKeyDown:function(e){return handleSliceKeyDown.call(r,e)},role:"img","aria-label":"".concat(e.legend,", ").concat(n),"data-segmentindex":e.index}))}function renderFocusOutline(){return this.isTabbing?h("g",{transform:"translate(".concat(this.chartDetails.padding/2,", ").concat(this.chartDetails.padding/2,")")},h("use",{tabindex:-1,id:"kfbg1",xlinkHref:"#".concat(this.focusedSliceId)}),h("use",{tabindex:-1,id:"kfstroke",xlinkHref:"#".concat(this.focusedSliceId)}),h("use",{tabindex:-1,id:"kfbg2",xlinkHref:"#".concat(this.focusedSliceId)})):""}function renderDoughnutText(e){var t=amountToDegree(e.offset+e.visualAmount/2,this.total);var r=polarToCartesian(this.chartDetails.size/2,1.4,t-90),n=r.x,a=r.y;var i;if(e.perc===0&&e.amount>0){i="<1%"}else if(e.perc===100&&e.amount<this.total){i=">99%"}else{i=e.perc+"%"}return h("text",{class:"value",x:n+"px",y:a+"px","data-segmentindex":e.index},i)}function renderStackedBar(e){var t=this;var r=e==="bar";var n=this.el.shadowRoot.querySelectorAll(".value");if(n.length>0){requestAnimationFrame((function(){var e=[];var r=4;var a=false;n.forEach((function(t){t.classList.remove("hidden");var n=parseInt(t.dataset.value);if(e.length>0&&n!=0){var i=t.getBoundingClientRect().left-r;e.forEach((function(e){var r=parseInt(e.dataset.value);var s=e.getBoundingClientRect().right>i;if(s){var o=n<r?t:e;o.classList.add("hidden");a=true}}))}if(!t.classList.contains("hidden")&&n>0){e.push(t)}}));(t.isBar||t.isDoughnut)&&t.showHiddenValuesMessage(a)}))}return h("div",{class:"chart-wrapper bar-wrapper"},r?h("div",{class:"single-perc"},amountToPercent(this.slicesDetails[0].amount,this.total,true)+"%"):"",this.chartType==="bar3"&&this.drawAxis(),h("div",{class:"inner-stacked-bar-wrapper ".concat(showValue(this.valueFormat))},!r?h("div",{class:"values ".concat(this.valueFormat)},this.slicesDetails.map((function(e){return t.renderBarText(e,5)}))):"",h("div",{class:"stacked-bar-segments-wrapper"},this.slicesDetails.map((function(e){return renderStackedBarSegment.call(t,e,5)}))),r?renderCompletionMessage.call(this):""),this.chartType==="bar3"?h("div",{class:"bar3-axis-label","aria-hidden":"true"},h("span",null,"0%"),h("span",null,"100%")):"")}function renderStackedBarSegment(e,t){var r=this;var n=amountToPercent(e.amount,this.total,false);var a=this.el.shadowRoot.querySelector(".stacked-bar-segments-wrapper");var i=a?a.offsetWidth:this.el.offsetWidth;var s=n/100*i>=t;var o=s||e.amount==0?"".concat(n,"%"):"".concat(t,"px");var c="";if(this.valueFormat=="percentage"){c="".concat(amountToPercent(e.amount,this.total,true)," %")}else if(this.valueFormat=="amount"){c=e.amount.toString()}return h("div",{class:"segment stacked-bar-segment ".concat(amountToPercent(e.amount,this.total,false)===0?"zero":""," ").concat(s?"":"fixed-width"),style:{backgroundColor:e.color,width:o},onClick:function(t){return handleSliceClick.call(r,t,e)},onFocus:function(t){return handleSliceFocus.call(r,t,e)},onKeyDown:function(e){return handleSliceKeyDown.call(r,e)},"data-segmentindex":e.index},h("span",{class:"sr-only"},"".concat(e.legend," ").concat(c)))}function renderSimpleBar(e){var t=this;var r=this.slicesDetails.map((function(e){return e.amount})).reduce((function(e,t){return e>t?e:t}));var n=parseInt(getComputedStyle(this.el).getPropertyValue("--labelWidth"),10);var a=48;var i=this.el.getBoundingClientRect().width;var s=i-n-a;var o=getMaxTicks(s);var c=getInterval(r,o);var u=o*c;var l=Math.floor((u-r)/c);o-=l;this.el.style.setProperty("--backgroundSize",100/o+"%");this.el.style.setProperty("--labelWidth",this.labelWidth);if(e==="bar7"&&!this.showBarLegend){this.el.style.setProperty("--labelWidth","0px")}var d=[];this.slicesDetails.forEach((function(n){n.legend&&d.push(renderSimpleBarLegend(n.legend,t.showBarLegend,e));d.push(renderSimpleBarItem.call(t,n,c,o,r))}));var f=[];for(var v=1;v<=o;v++){var g=abbrNumber(safeMultiplyFloat(v,c));f.push(h("div",{class:"tick"},h("span",null,g)))}var p=e==="bar6"&&this.showGrid&&this.el.getBoundingClientRect().width>300;return h("div",{class:"chart-wrapper simple-bar-wrapper"},h("div",{class:"chart ".concat(showValue(this.valueFormat))},p&&h("div",{class:"gridlines"}),h("div",{class:"rows"},d)),p&&h("div",{class:"x-axis","aria-hidden":"true"},h("div",{class:"zero"},h("span",null,"0")),f))}function renderSimpleBarLegend(e,t,r){var n=r==="bar7"&&!t?" hidden":"";return h("label",{class:"label".concat(n)},e)}function renderSimpleBarItem(e,t,r,n){var a=this;var i=this.currentChartType==="bar6"?t*r:n;var s=amountToPercent(e.amount,i,false);var o=s?s+"%":"1px";var c=abbrNumber(e.amount);var u=this.valueFormat==="amount"?c:"";if(this.currentChartType==="bar6"&&this.valueFormat==="percentage"){u=e.amount+"%"}else if(this.currentChartType==="bar7"&&this.valueFormat==="percentage"){u=(this.total===0?"0":amountToPercent(e.amount,this.total,true))+"%"}return h("div",{class:"bar segment",style:{backgroundColor:e.color,width:o},onClick:function(t){return handleSliceClick.call(a,t,e)},onFocus:function(t){return handleSliceFocus.call(a,t,e)},onKeyDown:function(e){return handleSliceKeyDown.call(a,e)},"data-segmentindex":e.index},h("div",{class:"value"},u))}function renderLegend(e){var t=this;if(this.showLegend){var r=this.slicesDetails.reduce((function(e,t){return e=t.inSmallCluster?true:e}),false);this.isDoughnut&&this.showHiddenValuesMessage(r);return h("div",{class:"legend-wrapper"},h("div",{class:"legend ".concat(e," ").concat(this.mode==="bar"?"--top":"--bottom"),"aria-hidden":"true"},this.slicesDetails.map((function(e){var r=t.printModeFormat=="amount"?"".concat(e.amount,"/").concat(t.total):"".concat(amountToPercent(e.amount,t.total,true),"%");if(!!e.amount||!!e.legend){return renderLegendItem.call(t,{key:e.legend,color:e.color},r,e)}}))),this.isDoughnut&&!this.printMode&&renderHiddenValuesMessage())}}function renderLegendItem(e,t,r){var n=this;if(t===void 0){t=""}if(r===void 0){r=null}var a=function(e){if(r){r.coords={x:e.clientX,y:e.clientY};openPopover(n.popoverEl,r);highlightSegmentInfo(Array.from(n.el.shadowRoot.querySelectorAll("[data-segmentindex")),r)}};return h("div",{class:"legend-item",onClick:function(e){return a(e)},"data-segmentindex":r?r.index:null},h("div",{class:"legend-color",style:{backgroundColor:e.color}}),h("div",{class:"legend-text"},e.key,t&&h("span",{class:"print-value ".concat(this.printMode?"force-visible":"")},": ",t)))}function renderCompletionMessage(){if(this.completionMessage){return h("div",{class:"completion-message"},this.completionMessage)}}function renderHiddenValuesMessage(){return h("div",{class:"hidden-values-warning hidden"},textHiddenMessage,h("br",null),seeDetailsMessage)}export{allChartsDetails as a,renderSimpleBar as b,renderStackedBar as c,renderDoughnut as d,renderInstructionsText as e,renderLegend as f,getDetails as g,handleChartKeydown as h,renderHiddenValuesMessage as i,exitChart as j,amountToPercent as k,renderCompletionMessage as l,renderLegendItem as m,abbrNumber as n,getInterval as o,removeSegmentInfoHighlight as r};
|