@watermarkinsights/ripple 5.13.1-alpha.4 → 5.14.0-alpha.2
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-EFussBpV.js → app-globals-5211e147.js} +2 -2
- package/dist/cjs/{chartFunctions-uCzSt0yo.js → chartFunctions-781589c1.js} +3 -2
- package/dist/cjs/{functions-CqAwq8Fq.js → functions-c7404c42.js} +79 -74
- package/dist/cjs/{index-Cig4P4gJ.js → index-788526f5.js} +345 -540
- package/dist/cjs/{intl-BUs7ck9m.js → intl-88adb57d.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -3
- package/dist/cjs/priv-calendar.cjs.entry.js +12 -6
- package/dist/cjs/priv-chart-popover.cjs.entry.js +8 -4
- package/dist/cjs/priv-navigator-button.cjs.entry.js +5 -2
- package/dist/cjs/priv-navigator-item.cjs.entry.js +5 -2
- package/dist/cjs/priv-option-list.cjs.entry.js +16 -10
- package/dist/cjs/ripple.cjs.js +7 -7
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +18 -9
- package/dist/cjs/wm-button.cjs.entry.js +16 -8
- package/dist/cjs/wm-chart-slice.cjs.entry.js +8 -1
- package/dist/cjs/wm-chart.cjs.entry.js +18 -14
- package/dist/cjs/wm-date-range.cjs.entry.js +14 -9
- package/dist/cjs/wm-datepicker.cjs.entry.js +11 -6
- package/dist/cjs/wm-file-list.cjs.entry.js +5 -2
- package/dist/cjs/wm-file.cjs.entry.js +15 -5
- package/dist/cjs/wm-flyout.cjs.entry.js +16 -5
- package/dist/cjs/wm-input.cjs.entry.js +17 -5
- package/dist/cjs/wm-line-chart.cjs.entry.js +28 -18
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +14 -8
- package/dist/cjs/wm-modal_3.cjs.entry.js +14 -7
- package/dist/cjs/wm-navigation_3.cjs.entry.js +18 -9
- package/dist/cjs/wm-navigator.cjs.entry.js +15 -17
- package/dist/cjs/wm-nested-select.cjs.entry.js +16 -11
- package/dist/cjs/wm-optgroup.cjs.entry.js +7 -3
- package/dist/cjs/wm-option_2.cjs.entry.js +17 -10
- package/dist/cjs/wm-pagination.cjs.entry.js +13 -10
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +27 -10
- package/dist/cjs/wm-search.cjs.entry.js +9 -25
- package/dist/cjs/wm-snackbar.cjs.entry.js +10 -8
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +16 -20
- package/dist/cjs/wm-tag-input.cjs.entry.js +25 -12
- package/dist/cjs/wm-tag-option.cjs.entry.js +8 -2
- package/dist/cjs/wm-textarea.cjs.entry.js +12 -5
- package/dist/cjs/wm-timepicker.cjs.entry.js +14 -9
- package/dist/cjs/wm-toggletip.cjs.entry.js +11 -6
- package/dist/cjs/wm-uploader.cjs.entry.js +18 -8
- package/dist/cjs/wm-wrapper.cjs.entry.js +3 -1
- package/dist/collection/collection-manifest.json +7 -2
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +4 -8
- package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +12 -15
- package/dist/collection/components/charts/wm-chart/wm-chart.js +22 -45
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +33 -52
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +16 -23
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +6 -9
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +12 -15
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +12 -21
- package/dist/collection/components/datepickers/wm-date-range.js +19 -39
- package/dist/collection/components/datepickers/wm-datepicker.js +13 -27
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +16 -27
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +22 -46
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +5 -12
- package/dist/collection/components/selects/wm-option/wm-option.js +6 -15
- package/dist/collection/components/selects/wm-select/wm-select.js +19 -41
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +15 -24
- package/dist/collection/components/wm-button/wm-button.js +22 -43
- package/dist/collection/components/wm-file/wm-file.js +18 -29
- package/dist/collection/components/wm-file-list/wm-file-list.js +1 -3
- package/dist/collection/components/wm-flyout/wm-flyout.js +19 -31
- package/dist/collection/components/wm-input/wm-input.js +28 -55
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +4 -10
- package/dist/collection/components/wm-modal/wm-modal-footer.js +5 -15
- package/dist/collection/components/wm-modal/wm-modal-header.js +2 -6
- package/dist/collection/components/wm-modal/wm-modal.js +7 -13
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +5 -15
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +2 -6
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +7 -14
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +4 -5
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +8 -9
- package/dist/collection/components/wm-navigation/wm-navigation.js +2 -4
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +2 -6
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +3 -9
- package/dist/collection/components/wm-navigator/wm-navigator.js +15 -34
- package/dist/collection/components/wm-pagination/wm-pagination.js +11 -21
- package/dist/collection/components/wm-search/wm-search.js +10 -45
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +4 -7
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +6 -18
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +6 -9
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +2 -12
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +32 -50
- package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +10 -18
- package/dist/collection/components/wm-textarea/wm-textarea.js +16 -34
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +15 -27
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +9 -15
- package/dist/collection/components/wm-uploader/wm-uploader.js +22 -37
- package/dist/esm/{app-globals-D6Ly8ONe.js → app-globals-d8f7adb9.js} +2 -2
- package/dist/{components/p-K9lgwbAO.js → esm/chartFunctions-246aabf9.js} +4 -3
- package/dist/{components/p-DdlNyc6u.js → esm/functions-aad18286.js} +80 -75
- package/dist/esm/{index-EopL5zo4.js → index-130e07bb.js} +324 -539
- package/dist/{components/p-DStPjkvu.js → esm/intl-c8686c73.js} +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/priv-calendar.entry.js +10 -6
- package/dist/esm/priv-chart-popover.entry.js +6 -4
- package/dist/esm/priv-navigator-button.entry.js +3 -2
- package/dist/esm/priv-navigator-item.entry.js +3 -2
- package/dist/esm/priv-option-list.entry.js +14 -10
- package/dist/esm/ripple.js +5 -6
- package/dist/esm/wm-action-menu_2.entry.js +16 -9
- package/dist/esm/wm-button.entry.js +14 -8
- package/dist/esm/wm-chart-slice.entry.js +6 -1
- package/dist/esm/wm-chart.entry.js +16 -14
- package/dist/esm/wm-date-range.entry.js +12 -9
- package/dist/esm/wm-datepicker.entry.js +9 -6
- package/dist/esm/wm-file-list.entry.js +3 -2
- package/dist/esm/wm-file.entry.js +13 -5
- package/dist/esm/wm-flyout.entry.js +14 -5
- package/dist/esm/wm-input.entry.js +15 -5
- package/dist/esm/wm-line-chart.entry.js +26 -18
- package/dist/esm/wm-modal-pss_3.entry.js +12 -8
- package/dist/esm/wm-modal_3.entry.js +12 -7
- package/dist/esm/wm-navigation_3.entry.js +16 -9
- package/dist/esm/wm-navigator.entry.js +13 -17
- package/dist/esm/wm-nested-select.entry.js +14 -11
- package/dist/esm/wm-optgroup.entry.js +5 -3
- package/dist/esm/wm-option_2.entry.js +15 -10
- package/dist/esm/wm-pagination.entry.js +11 -10
- package/dist/esm/wm-progress-indicator_3.entry.js +25 -10
- package/dist/esm/wm-search.entry.js +7 -25
- package/dist/esm/wm-snackbar.entry.js +8 -8
- package/dist/esm/wm-tab-item_3.entry.js +14 -20
- package/dist/esm/wm-tag-input.entry.js +23 -12
- package/dist/esm/wm-tag-option.entry.js +6 -2
- package/dist/esm/wm-textarea.entry.js +10 -5
- package/dist/esm/wm-timepicker.entry.js +12 -9
- package/dist/esm/wm-toggletip.entry.js +9 -6
- package/dist/esm/wm-uploader.entry.js +16 -8
- package/dist/esm/wm-wrapper.entry.js +1 -1
- package/dist/esm-es5/{app-globals-D6Ly8ONe.js → app-globals-d8f7adb9.js} +1 -1
- package/dist/esm-es5/chartFunctions-246aabf9.js +1 -0
- package/dist/esm-es5/functions-aad18286.js +1 -0
- package/dist/esm-es5/index-130e07bb.js +1 -0
- package/dist/esm-es5/{intl-DeM2tf6d.js → intl-c8686c73.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/loader/package.json +11 -0
- package/dist/ripple/p-02634e13.entry.js +1 -0
- package/dist/ripple/{p-da5ad94c.system.entry.js → p-043901ab.system.entry.js} +1 -1
- package/dist/ripple/p-0494eb2c.system.js +1 -0
- package/dist/ripple/{p-b0a47a43.system.entry.js → p-07318072.system.entry.js} +1 -1
- package/dist/ripple/p-07a4b825.entry.js +1 -0
- package/dist/ripple/{p-61c089e4.system.entry.js → p-0a4a2582.system.entry.js} +1 -1
- package/dist/ripple/{p-ee8d7025.entry.js → p-0be3f364.entry.js} +1 -1
- package/dist/ripple/{p-69d1e480.system.entry.js → p-1111367a.system.entry.js} +1 -1
- package/dist/ripple/p-13b1d775.entry.js +1 -0
- package/dist/ripple/{p-3b0aaa5d.system.entry.js → p-1a0c51ee.system.entry.js} +1 -1
- package/dist/ripple/p-2785c796.entry.js +1 -0
- package/dist/ripple/{p-6785cd06.system.entry.js → p-2af01e17.system.entry.js} +1 -1
- package/dist/ripple/{p-6f8eecda.system.entry.js → p-2c954741.system.entry.js} +1 -1
- package/dist/ripple/{p-86815489.system.entry.js → p-2e8211ba.system.entry.js} +1 -1
- package/dist/ripple/{p-dc7feffa.system.entry.js → p-366193d0.system.entry.js} +1 -1
- package/dist/ripple/p-496564b3.entry.js +1 -0
- package/dist/ripple/{p-31b8fe9c.system.entry.js → p-4eaab96c.system.entry.js} +1 -1
- package/dist/ripple/p-501aa9b9.entry.js +1 -0
- package/dist/ripple/{p-8d09ca95.system.entry.js → p-58361d0e.system.entry.js} +1 -1
- package/dist/ripple/{p-27ecd83a.system.entry.js → p-5acc08cd.system.entry.js} +1 -1
- package/dist/ripple/p-6646cbd7.system.js +1 -0
- package/dist/{components/p-CLem5EoD.js → ripple/p-66e539e2.entry.js} +1 -42
- package/dist/ripple/p-678483ca.entry.js +1 -0
- package/dist/ripple/{p-c78fa8d0.system.entry.js → p-67f7aa48.system.entry.js} +1 -1
- package/dist/ripple/p-68b63f21.entry.js +1 -0
- package/dist/ripple/p-6b41644b.entry.js +1 -0
- package/dist/ripple/{p-9e10d3eb.entry.js → p-6d0b3395.entry.js} +1 -1
- package/dist/ripple/{p-68705f8f.system.entry.js → p-6d99517c.system.entry.js} +1 -1
- package/dist/ripple/{p-ClenAAhT.system.js → p-6e7c833c.system.js} +1 -1
- package/dist/ripple/p-703841a3.entry.js +1 -0
- package/dist/ripple/{p-ba6080a6.system.entry.js → p-70c6d33e.system.entry.js} +1 -1
- package/dist/ripple/{p-D7x793ET.js → p-723254b6.js} +1 -1
- package/dist/ripple/p-73081234.entry.js +1 -0
- package/dist/ripple/{p-64e6e3b7.entry.js → p-7360ce37.entry.js} +1 -1
- package/dist/ripple/{p-a95f9245.system.entry.js → p-7a6f535f.system.entry.js} +1 -1
- package/dist/ripple/p-823d7b4e.system.entry.js +1 -0
- package/dist/ripple/{p-3bee6a44.system.entry.js → p-86bd3990.system.entry.js} +1 -1
- package/dist/ripple/{p-d92218e6.system.entry.js → p-8cd81897.system.entry.js} +1 -1
- package/dist/ripple/{p-edc1b7cb.entry.js → p-91785165.entry.js} +1 -1
- package/dist/ripple/p-936e4fc3.entry.js +1 -0
- package/dist/ripple/{p-fe31bd98.system.entry.js → p-948173a2.system.entry.js} +1 -1
- package/dist/ripple/{p-49c9063a.entry.js → p-94ef3015.entry.js} +1 -1
- package/dist/ripple/{p-63bb5240.system.entry.js → p-9bfe715c.system.entry.js} +1 -1
- package/dist/ripple/p-a58ae308.system.entry.js +1 -0
- package/dist/ripple/p-a5bdcf1b.entry.js +1 -0
- package/dist/ripple/p-a81d3859.entry.js +1 -0
- package/dist/ripple/{p-957e8a70.entry.js → p-b254cdce.entry.js} +1 -1
- package/dist/ripple/p-b26f4852.entry.js +1 -0
- package/dist/{components/p-DG_w4q3M.js → ripple/p-b55bb2ab.entry.js} +1 -196
- package/dist/{components/wm-progress-monitor.js → ripple/p-b65b9b4c.entry.js} +1 -93
- package/dist/ripple/{p-a7f2af01.entry.js → p-bbb37d6e.entry.js} +1 -1
- package/dist/ripple/p-bf8e69a3.js +1 -0
- package/dist/ripple/p-c234c194.system.js +1 -0
- package/dist/ripple/{p-384d9208.system.entry.js → p-c3ab1c4b.system.entry.js} +1 -1
- package/dist/ripple/p-c4984ca1.system.js +1 -0
- package/dist/ripple/p-c8ef0086.entry.js +1 -0
- package/dist/ripple/p-c94ce42f.js +1 -0
- package/dist/ripple/{p-9a0216ba.entry.js → p-ca6bf276.entry.js} +1 -1
- package/dist/ripple/{p-74243614.system.entry.js → p-cbfb44b5.system.entry.js} +1 -1
- package/dist/ripple/{p-492a8a9f.entry.js → p-cd0cc88d.entry.js} +1 -1
- package/dist/ripple/{p-99d53b0e.system.entry.js → p-cd5c59ef.system.entry.js} +1 -1
- package/dist/ripple/p-cef8a45b.system.js +2 -0
- package/dist/ripple/{p-3e5a7fee.system.entry.js → p-d332cc27.system.entry.js} +1 -1
- package/dist/ripple/{p-ea7a4ac1.system.entry.js → p-d3adbf48.system.entry.js} +1 -1
- package/dist/ripple/{p-ae58e2d1.system.entry.js → p-d4f082db.system.entry.js} +1 -1
- package/dist/{components/wm-toggletip.js → ripple/p-d837c7d4.entry.js} +1 -200
- package/dist/ripple/p-d9da0502.js +2 -0
- package/dist/ripple/{p-0MnNQzHy.js → p-dd680e24.js} +1 -1
- package/dist/ripple/{p-9a72e53c.system.entry.js → p-de13b15f.system.entry.js} +1 -1
- package/dist/ripple/{p-2f1ffab1.system.entry.js → p-de5b5ff0.system.entry.js} +1 -1
- package/dist/ripple/p-e156c0c2.entry.js +1 -0
- package/dist/ripple/{p-fce91d27.system.entry.js → p-e455876c.system.entry.js} +1 -1
- package/dist/ripple/{p-3042aae4.entry.js → p-e9c4ed97.entry.js} +1 -1
- package/dist/ripple/p-eb74d85f.entry.js +1 -0
- package/dist/ripple/p-ed5dfa29.entry.js +1 -0
- package/dist/ripple/{p-84a4735d.system.entry.js → p-ee4026e0.system.entry.js} +1 -1
- package/dist/ripple/{p-4862126f.entry.js → p-f1b36057.entry.js} +1 -1
- package/dist/ripple/{p-e77d4c21.system.entry.js → p-f37094fe.system.entry.js} +1 -1
- package/dist/ripple/p-f912ce26.system.entry.js +1 -0
- package/dist/ripple/p-fadea131.entry.js +1 -0
- package/dist/ripple/{p-cd81d7de.system.entry.js → p-ff650269.system.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -28
- package/package.json +6 -23
- package/dist/components/index.d.ts +0 -33
- package/dist/components/index.js +0 -85
- package/dist/components/p-BlQdbOh_.js +0 -294
- package/dist/components/p-BvE5BEYe.js +0 -146
- package/dist/components/p-BzGDMpdL.js +0 -592
- package/dist/components/p-CWx2NF6K.js +0 -231
- package/dist/components/p-D9GMUh0-.js +0 -231
- package/dist/components/p-DCSxoWXP.js +0 -421
- package/dist/components/p-DvXS4oTB.js +0 -49
- package/dist/components/p-HPnDWE3g.js +0 -1686
- package/dist/components/p-e_A35rK5.js +0 -154
- package/dist/components/priv-calendar.d.ts +0 -11
- package/dist/components/priv-calendar.js +0 -6
- package/dist/components/priv-chart-popover.d.ts +0 -11
- package/dist/components/priv-chart-popover.js +0 -6
- package/dist/components/priv-navigator-button.d.ts +0 -11
- package/dist/components/priv-navigator-button.js +0 -6
- package/dist/components/priv-navigator-item.d.ts +0 -11
- package/dist/components/priv-navigator-item.js +0 -6
- package/dist/components/priv-option-list.d.ts +0 -11
- package/dist/components/priv-option-list.js +0 -6
- package/dist/components/wm-action-menu.d.ts +0 -11
- package/dist/components/wm-action-menu.js +0 -6
- package/dist/components/wm-button.d.ts +0 -11
- package/dist/components/wm-button.js +0 -6
- package/dist/components/wm-chart-slice.d.ts +0 -11
- package/dist/components/wm-chart-slice.js +0 -41
- package/dist/components/wm-chart.d.ts +0 -11
- package/dist/components/wm-chart.js +0 -197
- package/dist/components/wm-date-range.d.ts +0 -11
- package/dist/components/wm-date-range.js +0 -522
- package/dist/components/wm-datepicker.d.ts +0 -11
- package/dist/components/wm-datepicker.js +0 -287
- package/dist/components/wm-file-list.d.ts +0 -11
- package/dist/components/wm-file-list.js +0 -38
- package/dist/components/wm-file.d.ts +0 -11
- package/dist/components/wm-file.js +0 -228
- package/dist/components/wm-flyout.d.ts +0 -11
- package/dist/components/wm-flyout.js +0 -208
- package/dist/components/wm-input.d.ts +0 -11
- package/dist/components/wm-input.js +0 -152
- package/dist/components/wm-line-chart.d.ts +0 -11
- package/dist/components/wm-line-chart.js +0 -497
- package/dist/components/wm-menuitem.d.ts +0 -11
- package/dist/components/wm-menuitem.js +0 -6
- package/dist/components/wm-modal-footer.d.ts +0 -11
- package/dist/components/wm-modal-footer.js +0 -73
- package/dist/components/wm-modal-header.d.ts +0 -11
- package/dist/components/wm-modal-header.js +0 -61
- package/dist/components/wm-modal-pss-footer.d.ts +0 -11
- package/dist/components/wm-modal-pss-footer.js +0 -69
- package/dist/components/wm-modal-pss-header.d.ts +0 -11
- package/dist/components/wm-modal-pss-header.js +0 -64
- package/dist/components/wm-modal-pss.d.ts +0 -11
- package/dist/components/wm-modal-pss.js +0 -162
- package/dist/components/wm-modal.d.ts +0 -11
- package/dist/components/wm-modal.js +0 -161
- package/dist/components/wm-navigation-hamburger.d.ts +0 -11
- package/dist/components/wm-navigation-hamburger.js +0 -70
- package/dist/components/wm-navigation-item.d.ts +0 -11
- package/dist/components/wm-navigation-item.js +0 -40
- package/dist/components/wm-navigation.d.ts +0 -11
- package/dist/components/wm-navigation.js +0 -144
- package/dist/components/wm-navigator.d.ts +0 -11
- package/dist/components/wm-navigator.js +0 -369
- package/dist/components/wm-nested-select.d.ts +0 -11
- package/dist/components/wm-nested-select.js +0 -343
- package/dist/components/wm-optgroup.d.ts +0 -11
- package/dist/components/wm-optgroup.js +0 -107
- package/dist/components/wm-option.d.ts +0 -11
- package/dist/components/wm-option.js +0 -6
- package/dist/components/wm-pagination.d.ts +0 -11
- package/dist/components/wm-pagination.js +0 -251
- package/dist/components/wm-progress-indicator.d.ts +0 -11
- package/dist/components/wm-progress-indicator.js +0 -144
- package/dist/components/wm-progress-monitor.d.ts +0 -11
- package/dist/components/wm-progress-slice.d.ts +0 -11
- package/dist/components/wm-progress-slice.js +0 -37
- package/dist/components/wm-search.d.ts +0 -11
- package/dist/components/wm-search.js +0 -250
- package/dist/components/wm-select.d.ts +0 -11
- package/dist/components/wm-select.js +0 -6
- package/dist/components/wm-snackbar.d.ts +0 -11
- package/dist/components/wm-snackbar.js +0 -209
- package/dist/components/wm-tab-item.d.ts +0 -11
- package/dist/components/wm-tab-item.js +0 -85
- package/dist/components/wm-tab-list.d.ts +0 -11
- package/dist/components/wm-tab-list.js +0 -217
- package/dist/components/wm-tab-panel.d.ts +0 -11
- package/dist/components/wm-tab-panel.js +0 -52
- package/dist/components/wm-tag-input.d.ts +0 -11
- package/dist/components/wm-tag-input.js +0 -919
- package/dist/components/wm-tag-option.d.ts +0 -11
- package/dist/components/wm-tag-option.js +0 -63
- package/dist/components/wm-textarea.d.ts +0 -11
- package/dist/components/wm-textarea.js +0 -113
- package/dist/components/wm-timepicker.d.ts +0 -11
- package/dist/components/wm-timepicker.js +0 -333
- package/dist/components/wm-toggletip.d.ts +0 -11
- package/dist/components/wm-uploader.d.ts +0 -11
- package/dist/components/wm-uploader.js +0 -348
- package/dist/components/wm-wrapper.d.ts +0 -11
- package/dist/components/wm-wrapper.js +0 -34
- package/dist/esm/chartFunctions-Cmh1Ji0o.js +0 -724
- package/dist/esm/functions-C2kwukaR.js +0 -10485
- package/dist/esm/interfaces-COwzv5zO.js +0 -34
- package/dist/esm/intl-DeM2tf6d.js +0 -277
- package/dist/esm-es5/chartFunctions-Cmh1Ji0o.js +0 -1
- package/dist/esm-es5/functions-C2kwukaR.js +0 -1
- package/dist/esm-es5/index-EopL5zo4.js +0 -1
- package/dist/ripple/p-090ee1d9.entry.js +0 -1
- package/dist/ripple/p-25e1a9f9.entry.js +0 -1
- package/dist/ripple/p-30fb07a2.entry.js +0 -1
- package/dist/ripple/p-338b089a.entry.js +0 -1
- package/dist/ripple/p-340b73a9.system.entry.js +0 -1
- package/dist/ripple/p-3611aa0e.entry.js +0 -1
- package/dist/ripple/p-3b828dcd.entry.js +0 -1
- package/dist/ripple/p-3c54de9c.entry.js +0 -1
- package/dist/ripple/p-52e54dca.entry.js +0 -1
- package/dist/ripple/p-54aeadde.entry.js +0 -1
- package/dist/ripple/p-6838c144.entry.js +0 -1
- package/dist/ripple/p-774c49cd.entry.js +0 -1
- package/dist/ripple/p-782951b7.system.entry.js +0 -1
- package/dist/ripple/p-7aa9c503.entry.js +0 -1
- package/dist/ripple/p-85bdcfc2.entry.js +0 -1
- package/dist/ripple/p-9111db61.entry.js +0 -1
- package/dist/ripple/p-9583f20a.entry.js +0 -1
- package/dist/ripple/p-BzeVid5V.system.js +0 -1
- package/dist/ripple/p-C2kwukaR.js +0 -1
- package/dist/ripple/p-CG434V5a.system.js +0 -1
- package/dist/ripple/p-CTau6pR2.system.js +0 -2
- package/dist/ripple/p-CxDIDZPI.js +0 -1
- package/dist/ripple/p-EopL5zo4.js +0 -2
- package/dist/ripple/p-a121c779.entry.js +0 -1
- package/dist/ripple/p-a3c4aa31.entry.js +0 -1
- package/dist/ripple/p-a46a28c9.entry.js +0 -1
- package/dist/ripple/p-a6890863.entry.js +0 -1
- package/dist/ripple/p-b077fe55.system.entry.js +0 -1
- package/dist/ripple/p-c0440211.entry.js +0 -1
- package/dist/ripple/p-d77338ae.entry.js +0 -1
- package/dist/ripple/p-e3fb63fd.entry.js +0 -1
- package/dist/ripple/p-e3fc3c6b.entry.js +0 -1
- package/dist/ripple/p-ec611502.entry.js +0 -1
- package/dist/ripple/p-rcj5tIF6.system.js +0 -1
- package/dist/ripple/p-wFWSStJ9.system.js +0 -1
- /package/dist/cjs/{interfaces-C7YbtGnk.js → interfaces-85d78ae9.js} +0 -0
- /package/dist/{components/p-COwzv5zO.js → esm/interfaces-cc5b177f.js} +0 -0
- /package/dist/esm-es5/{interfaces-COwzv5zO.js → interfaces-cc5b177f.js} +0 -0
- /package/dist/ripple/{p-COwzv5zO.js → p-2732bddd.js} +0 -0
- /package/dist/ripple/{p-ClUp3GkF.system.js → p-42fa7a77.system.js} +0 -0
- /package/dist/ripple/{p-YWpyar7R.system.js → p-50ea2036.system.js} +0 -0
|
@@ -1,34 +0,0 @@
|
|
|
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") ||
|
|
30
|
-
document.documentElement.getAttribute("mode") ||
|
|
31
|
-
defaultMode);
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export { getWmMode as a, getIconCodeFromName as g };
|
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
import { i as intl } from './functions-C2kwukaR.js';
|
|
2
|
-
|
|
3
|
-
const globalMessages = {
|
|
4
|
-
characterLimitReached: intl.formatMessage({
|
|
5
|
-
id: "global.characterLimitReached",
|
|
6
|
-
defaultMessage: "No additional characters will be entered.",
|
|
7
|
-
description: "for screen readers",
|
|
8
|
-
}),
|
|
9
|
-
close: intl.formatMessage({
|
|
10
|
-
id: "global.closeVerb",
|
|
11
|
-
defaultMessage: "Close",
|
|
12
|
-
description: "For a button, to close a user interface element",
|
|
13
|
-
}),
|
|
14
|
-
genericError: intl.formatMessage({
|
|
15
|
-
id: "global.genericError",
|
|
16
|
-
defaultMessage: "An error occurred. Please try again.",
|
|
17
|
-
}),
|
|
18
|
-
hide: intl.formatMessage({
|
|
19
|
-
id: "global.hideVerb",
|
|
20
|
-
defaultMessage: "Hide",
|
|
21
|
-
description: "For a button, to hide something",
|
|
22
|
-
}),
|
|
23
|
-
locked: intl.formatMessage({
|
|
24
|
-
id: "global.locked",
|
|
25
|
-
defaultMessage: "locked",
|
|
26
|
-
description: "For an interactive element, indicating its state cannot be changed",
|
|
27
|
-
}),
|
|
28
|
-
newWindow: intl.formatMessage({
|
|
29
|
-
id: "global.newWindowLink",
|
|
30
|
-
defaultMessage: "Opens in a new window.",
|
|
31
|
-
description: "Indicates that a focused link will open in a new window",
|
|
32
|
-
}),
|
|
33
|
-
next: intl.formatMessage({
|
|
34
|
-
id: "global.next",
|
|
35
|
-
defaultMessage: "next",
|
|
36
|
-
description: "Button text, indicating an action leading to a 'next' state",
|
|
37
|
-
}),
|
|
38
|
-
open: intl.formatMessage({
|
|
39
|
-
id: "global.openVerb",
|
|
40
|
-
defaultMessage: "Open",
|
|
41
|
-
description: "For a button, to open a user interface element",
|
|
42
|
-
}),
|
|
43
|
-
previous: intl.formatMessage({
|
|
44
|
-
id: "global.previous",
|
|
45
|
-
defaultMessage: "previous",
|
|
46
|
-
description: "Button text, indicating an action leading to a 'previous' state",
|
|
47
|
-
}),
|
|
48
|
-
requiredError: intl.formatMessage({
|
|
49
|
-
id: "global.requiredError",
|
|
50
|
-
defaultMessage: "This field is required.",
|
|
51
|
-
description: "Error displayed under a required field when it has not been filled",
|
|
52
|
-
}),
|
|
53
|
-
requiredField: intl.formatMessage({
|
|
54
|
-
id: "global.requiredField",
|
|
55
|
-
defaultMessage: "required field",
|
|
56
|
-
description: "Screen reader text, indicating the currently focused field is required",
|
|
57
|
-
}),
|
|
58
|
-
show: intl.formatMessage({
|
|
59
|
-
id: "global.showVerb",
|
|
60
|
-
defaultMessage: "Show",
|
|
61
|
-
description: "For a button, to show something",
|
|
62
|
-
}),
|
|
63
|
-
// -------------------------------------------------------------------------- //
|
|
64
|
-
// Functions //
|
|
65
|
-
// -------------------------------------------------------------------------- //
|
|
66
|
-
getCharactersEntered: (charCount, charLimit) => intl.formatMessage({
|
|
67
|
-
id: "global.charactersEntered",
|
|
68
|
-
defaultMessage: "{x, number} of {y, number} characters entered.",
|
|
69
|
-
description: "for screen readers",
|
|
70
|
-
}, { x: charCount, y: charLimit }),
|
|
71
|
-
getCharacterLimit: (characterLimit) => intl.formatMessage({
|
|
72
|
-
id: "global.characterLimit",
|
|
73
|
-
defaultMessage: "{limit, number} characters allowed.",
|
|
74
|
-
description: "for screen readers",
|
|
75
|
-
}, { limit: characterLimit }),
|
|
76
|
-
};
|
|
77
|
-
const uploaderMessages = {
|
|
78
|
-
duplicateName: intl.formatMessage({
|
|
79
|
-
id: "uploader.duplicateName",
|
|
80
|
-
defaultMessage: "A file with this name already exists.",
|
|
81
|
-
}),
|
|
82
|
-
fileLimitExceeded: intl.formatMessage({
|
|
83
|
-
id: "uploader.fileUploadLimitExceeded",
|
|
84
|
-
defaultMessage: "Upload unsuccessful because file selection would exceed the maximum number of files",
|
|
85
|
-
description: "Message displayed when trying to upload too many files",
|
|
86
|
-
}),
|
|
87
|
-
fileLimitReached: intl.formatMessage({
|
|
88
|
-
id: "uploader.fileUploadLimitReached",
|
|
89
|
-
defaultMessage: "The maximum number of files has been reached",
|
|
90
|
-
description: "Message displayed when trying to upload additional files, but the limit has been reached",
|
|
91
|
-
}),
|
|
92
|
-
finishedUploading: intl.formatMessage({
|
|
93
|
-
id: "uploader.finishedUploading",
|
|
94
|
-
defaultMessage: "Finished uploading",
|
|
95
|
-
}),
|
|
96
|
-
waitToUpload: intl.formatMessage({
|
|
97
|
-
id: "uploader.waitToUpload",
|
|
98
|
-
defaultMessage: "Please wait for current upload to complete before uploading new files.",
|
|
99
|
-
description: "Message for screen reader users",
|
|
100
|
-
}),
|
|
101
|
-
zeroFileSize: intl.formatMessage({
|
|
102
|
-
id: "uploader.zeroFileSize",
|
|
103
|
-
defaultMessage: "The file must be more than 0 bytes",
|
|
104
|
-
description: "Error message when user attempts to upload a file of no size",
|
|
105
|
-
}),
|
|
106
|
-
dropInstructions: intl.formatMessage({
|
|
107
|
-
id: "uploader.dropInstructions",
|
|
108
|
-
defaultMessage: "Browse or Drag Files Here",
|
|
109
|
-
description: "Instructions for how to choose files to upload",
|
|
110
|
-
}),
|
|
111
|
-
dropFile: intl.formatMessage({
|
|
112
|
-
id: "uploader.dropFile",
|
|
113
|
-
defaultMessage: "Drop to Upload",
|
|
114
|
-
description: "Prompt for use to drop the file they're currently dragging",
|
|
115
|
-
}),
|
|
116
|
-
fileRequirements: intl.formatMessage({
|
|
117
|
-
id: "uploader.fileRequirements",
|
|
118
|
-
defaultMessage: "File Requirements",
|
|
119
|
-
description: "Expandable button revealing the uploader's file requirements",
|
|
120
|
-
}),
|
|
121
|
-
// -------------------------------------------------------------------------- //
|
|
122
|
-
// Functions //
|
|
123
|
-
// -------------------------------------------------------------------------- //
|
|
124
|
-
getFilesAdded: (numFiles) => intl.formatMessage({
|
|
125
|
-
id: "uploader.filesAdded",
|
|
126
|
-
defaultMessage: "{numFiles, plural, one {1 file added} other {# files added}}",
|
|
127
|
-
}, { numFiles: numFiles }),
|
|
128
|
-
getFileCount: (fileListLength, maxFiles) => intl.formatMessage({
|
|
129
|
-
id: "uploader.fileCount",
|
|
130
|
-
defaultMessage: "{x} of {y} Files",
|
|
131
|
-
description: "A count of the number of files currently uploaded",
|
|
132
|
-
}, { x: fileListLength, y: maxFiles }),
|
|
133
|
-
getFileTooLarge: (maxSize) => intl.formatMessage({
|
|
134
|
-
id: "uploader.fileTooLarge",
|
|
135
|
-
defaultMessage: "The selected file is too large. Maximum file size is {size}",
|
|
136
|
-
}, { size: maxSize }),
|
|
137
|
-
getFilesUploading: (numFilesUploading) => intl.formatMessage({
|
|
138
|
-
id: "uploader.filesUploading",
|
|
139
|
-
defaultMessage: "{num, plural, one {1 file uploading} other {# files uploading}}",
|
|
140
|
-
}, { num: numFilesUploading }),
|
|
141
|
-
getInvalidFileType: (validTypes) => intl.formatMessage({
|
|
142
|
-
id: "uploader.invalidFileType",
|
|
143
|
-
defaultMessage: "The file type is invalid. Accepted types: {validTypes}",
|
|
144
|
-
}, { validTypes }),
|
|
145
|
-
getUploadProgress: (percentage) => intl.formatMessage({
|
|
146
|
-
id: "uploader.uploadProgress",
|
|
147
|
-
defaultMessage: "Upload progress: {percentage}%",
|
|
148
|
-
}, { percentage: percentage }),
|
|
149
|
-
};
|
|
150
|
-
const chartMessages = {
|
|
151
|
-
interactiveChart: intl.formatMessage({
|
|
152
|
-
id: "chart.interactiveChart",
|
|
153
|
-
defaultMessage: "Interactive chart",
|
|
154
|
-
description: "For screen readers only, a description clarifying the role of the chart widget",
|
|
155
|
-
}),
|
|
156
|
-
};
|
|
157
|
-
const lineChartMessages = {
|
|
158
|
-
instructions: intl.formatMessage({
|
|
159
|
-
id: "linechart.instructions",
|
|
160
|
-
defaultMessage: "Use Tab and arrow keys to browse elements.",
|
|
161
|
-
description: "For screen readers only, instructions on how to interact with the line chart component",
|
|
162
|
-
}),
|
|
163
|
-
noData: intl.formatMessage({
|
|
164
|
-
id: "linechart.noData",
|
|
165
|
-
defaultMessage: "No Data",
|
|
166
|
-
description: "Message displayed when a data point has missing data",
|
|
167
|
-
}),
|
|
168
|
-
highlightQualifier: intl.formatMessage({
|
|
169
|
-
id: "linechart.highlightQualifier",
|
|
170
|
-
defaultMessage: "highlighted",
|
|
171
|
-
description: "Descriptor for highlighted areas of a chart",
|
|
172
|
-
}),
|
|
173
|
-
// -------------------------------------------------------------------------- //
|
|
174
|
-
// Functions //
|
|
175
|
-
// -------------------------------------------------------------------------- //
|
|
176
|
-
getChangeSince: (prevXValue) => intl.formatMessage({
|
|
177
|
-
id: "linechart.changeSince",
|
|
178
|
-
defaultMessage: "Change since {time}",
|
|
179
|
-
description: "Indicates a comparison between current and previous data",
|
|
180
|
-
}, {
|
|
181
|
-
time: prevXValue,
|
|
182
|
-
}),
|
|
183
|
-
getToggleButtonLabel: (itemCount) => intl.formatMessage({
|
|
184
|
-
id: "linechart.toggleButtonLabel",
|
|
185
|
-
defaultMessage: "Toggle line visibility, list with {itemCount} items",
|
|
186
|
-
}, {
|
|
187
|
-
itemCount: itemCount,
|
|
188
|
-
}),
|
|
189
|
-
getToggleButtonState: (isPressed) => intl.formatMessage({
|
|
190
|
-
id: "linechart.toggleButtonState",
|
|
191
|
-
defaultMessage: "toggle {isPressed, select, true {pressed} other {}}",
|
|
192
|
-
description: "Descriptor and state for a toggle button UI element",
|
|
193
|
-
}, {
|
|
194
|
-
isPressed: isPressed,
|
|
195
|
-
}),
|
|
196
|
-
getLineFocusAnnouncement: (label, lineNumber, lineTotal, lineLength) => intl.formatMessage({
|
|
197
|
-
id: "linechart.getLineFocusAnnouncement",
|
|
198
|
-
defaultMessage: `{label}, line {lineNumber} of {lineTotal} with {lineLength} data points`,
|
|
199
|
-
}, {
|
|
200
|
-
label: label,
|
|
201
|
-
lineNumber: lineNumber,
|
|
202
|
-
lineTotal: lineTotal,
|
|
203
|
-
lineLength: lineLength,
|
|
204
|
-
}),
|
|
205
|
-
};
|
|
206
|
-
const selectMessages = {
|
|
207
|
-
multiPlaceholder: intl.formatMessage({
|
|
208
|
-
id: "select.multiPlaceholder",
|
|
209
|
-
defaultMessage: "Make a selection",
|
|
210
|
-
}),
|
|
211
|
-
singlePlaceholder: intl.formatMessage({
|
|
212
|
-
id: "select.singlePlaceholder",
|
|
213
|
-
defaultMessage: "Select an Option",
|
|
214
|
-
}),
|
|
215
|
-
multiClearSelection: intl.formatMessage({
|
|
216
|
-
id: "select.multiClearSelection",
|
|
217
|
-
defaultMessage: "Clear all Selections",
|
|
218
|
-
description: "Clear as in remove. Use imperative",
|
|
219
|
-
}),
|
|
220
|
-
singleClearSelection: intl.formatMessage({
|
|
221
|
-
id: "select.singleClearSelection",
|
|
222
|
-
defaultMessage: "Clear Selection",
|
|
223
|
-
description: "Clear as in remove. Use imperative",
|
|
224
|
-
}),
|
|
225
|
-
selectionCleared: intl.formatMessage({
|
|
226
|
-
id: "select.selectionCleared",
|
|
227
|
-
defaultMessage: "Selection cleared",
|
|
228
|
-
}),
|
|
229
|
-
searchPlaceholder: intl.formatMessage({
|
|
230
|
-
id: "select.searchPlaceholder",
|
|
231
|
-
defaultMessage: "Search",
|
|
232
|
-
description: "Appears in a search field UI element",
|
|
233
|
-
}),
|
|
234
|
-
allSelected: intl.formatMessage({
|
|
235
|
-
id: "select.allSelected",
|
|
236
|
-
defaultMessage: "All selected",
|
|
237
|
-
description: "Indicates all possible options have been selected",
|
|
238
|
-
}),
|
|
239
|
-
selectAllMessage: intl.formatMessage({
|
|
240
|
-
id: "select.selectAll",
|
|
241
|
-
defaultMessage: "Select All",
|
|
242
|
-
}),
|
|
243
|
-
deselectAllMessage: intl.formatMessage({
|
|
244
|
-
id: "select.deselectAll",
|
|
245
|
-
defaultMessage: "Deselect All",
|
|
246
|
-
}),
|
|
247
|
-
allOptionsSelectedMessage: intl.formatMessage({
|
|
248
|
-
id: "select.allOptionsSelected",
|
|
249
|
-
defaultMessage: "All options selected",
|
|
250
|
-
}),
|
|
251
|
-
allOptionsDeselectedMessage: intl.formatMessage({
|
|
252
|
-
id: "select.allOptionsDeselected",
|
|
253
|
-
defaultMessage: "All options deselected",
|
|
254
|
-
}),
|
|
255
|
-
noSearchResults: intl.formatMessage({
|
|
256
|
-
id: "select.noSearchResults",
|
|
257
|
-
defaultMessage: "No results found. Please try your search again.",
|
|
258
|
-
}),
|
|
259
|
-
optgroupSingleSelectionCount: () => intl.formatMessage({
|
|
260
|
-
id: "select.optgroupSingleSelectionCount",
|
|
261
|
-
defaultMessage: "Item Selected",
|
|
262
|
-
description: "Item refers to an option in a list",
|
|
263
|
-
}),
|
|
264
|
-
// -------------------------------------------------------------------------- //
|
|
265
|
-
// Functions //
|
|
266
|
-
// -------------------------------------------------------------------------- //
|
|
267
|
-
getOptgroupMultipleSelectionCount: (selectionCount) => intl.formatMessage({
|
|
268
|
-
id: "select.optgroupMultipleSelectionCount",
|
|
269
|
-
defaultMessage: "{numberSelected} selected",
|
|
270
|
-
}, { numberSelected: selectionCount }),
|
|
271
|
-
getSearchResultsFound: (numResults) => intl.formatMessage({
|
|
272
|
-
id: "select.searchResultsFound",
|
|
273
|
-
defaultMessage: "{numberResults, plural, one {1 option found} other {# options found}}",
|
|
274
|
-
}, { numberResults: numResults }),
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
export { chartMessages as c, globalMessages as g, lineChartMessages as l, selectMessages as s, uploaderMessages as u };
|
|
@@ -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-EopL5zo4.js";import{i as intl,s as safeMultiplyFloat,c as checkForActiveElInShadow,a as getPosition}from"./functions-C2kwukaR.js";var colors={salmon:"#ff5f4e",cyan:"#19a1a9",forest:"#088000",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,amountToPercent as b,renderSimpleBar as c,renderStackedBar as d,renderDoughnut as e,renderInstructionsText as f,getDetails as g,handleChartKeydown as h,renderLegend as i,renderHiddenValuesMessage as j,exitChart as k,getInterval as l,abbrNumber as m,renderCompletionMessage as n,renderLegendItem as o,removeSegmentInfoHighlight as r};
|