@watermarkinsights/ripple 0.0.1 → 0.1.0-alpha.1
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-3db2fdd3.js +103 -0
- package/dist/cjs/chartFunctions-0d47b1f4.js +906 -0
- package/dist/cjs/functions-761cb9f2.js +10694 -0
- package/dist/cjs/index-bb947bd5.js +1843 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/interfaces-33cd6161.js +82 -0
- package/dist/cjs/intl-9e9388a7.js +291 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/priv-calendar.cjs.entry.js +580 -0
- package/dist/cjs/priv-chart-popover-old.cjs.entry.js +146 -0
- package/dist/cjs/priv-chart-popover_2.cjs.entry.js +204 -0
- package/dist/cjs/priv-navigator-button.cjs.entry.js +29 -0
- package/dist/cjs/priv-navigator-item.cjs.entry.js +35 -0
- package/dist/cjs/priv-option-list.cjs.entry.js +391 -0
- package/dist/cjs/ripple.cjs.js +25 -0
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +525 -0
- package/dist/cjs/wm-button.cjs.entry.js +280 -0
- package/dist/cjs/wm-chart-bar.cjs.entry.js +444 -0
- package/dist/cjs/wm-chart-column.cjs.entry.js +629 -0
- package/dist/cjs/wm-chart-slice.cjs.entry.js +27 -0
- package/dist/cjs/wm-chart-stack.cjs.entry.js +447 -0
- package/dist/cjs/wm-chart.cjs.entry.js +163 -0
- package/dist/cjs/wm-date-range.cjs.entry.js +591 -0
- package/dist/cjs/wm-datepicker.cjs.entry.js +399 -0
- package/dist/{ripple/wm-tab-panel.entry.js → cjs/wm-file-list.cjs.entry.js} +15 -24
- package/dist/cjs/wm-file.cjs.entry.js +210 -0
- package/dist/cjs/wm-flyout.cjs.entry.js +178 -0
- package/dist/{ripple/wm-modal.entry.js → cjs/wm-input.cjs.entry.js} +108 -110
- package/dist/cjs/wm-line-chart.cjs.entry.js +541 -0
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +220 -0
- package/dist/cjs/wm-modal_3.cjs.entry.js +238 -0
- package/dist/cjs/wm-navigation_3.cjs.entry.js +188 -0
- package/dist/cjs/wm-navigator.cjs.entry.js +334 -0
- package/dist/cjs/wm-nested-select.cjs.entry.js +322 -0
- package/dist/{ripple/wm-textarea.entry.js → cjs/wm-optgroup.cjs.entry.js} +62 -57
- package/dist/cjs/wm-option_2.cjs.entry.js +536 -0
- package/dist/{ripple/wm-navigation.entry.js → cjs/wm-pagination.cjs.entry.js} +204 -91
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +204 -0
- package/dist/{ripple/wm-flyout.entry.js → cjs/wm-search.cjs.entry.js} +168 -139
- package/dist/{ripple/wm-datepicker.entry.js → cjs/wm-snackbar.cjs.entry.js} +152 -223
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +357 -0
- package/dist/cjs/wm-tag-input.cjs.entry.js +985 -0
- package/dist/cjs/wm-tag-option.cjs.entry.js +51 -0
- package/dist/{ripple/wm-modal-pss.entry.js → cjs/wm-textarea.cjs.entry.js} +70 -111
- package/dist/{ripple/wm-progress-indicator.entry.js → cjs/wm-timepicker.cjs.entry.js} +296 -78
- package/dist/cjs/wm-toggletip.cjs.entry.js +252 -0
- package/dist/cjs/wm-uploader.cjs.entry.js +341 -0
- package/dist/cjs/wm-wrapper.cjs.entry.js +21 -0
- package/dist/collection/collection-manifest.json +207 -0
- package/dist/collection/components/charts/chartFunctions.js +831 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +995 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +345 -0
- package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.css +990 -0
- package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.js +268 -0
- package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +177 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.css +1326 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.js +549 -0
- package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.css +1236 -0
- package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.js +725 -0
- package/dist/collection/components/charts/wm-chart-column/wm-chart-column.css +1335 -0
- package/dist/collection/components/charts/wm-chart-column/wm-chart-column.js +914 -0
- package/dist/collection/components/charts/wm-chart-legend/wm-chart-legend.css +1006 -0
- package/dist/collection/components/charts/wm-chart-legend/wm-chart-legend.js +310 -0
- package/dist/collection/components/charts/wm-chart-stack/wm-chart-stack.css +1466 -0
- package/dist/collection/components/charts/wm-chart-stack/wm-chart-stack.js +709 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.css +1208 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +999 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.css +1326 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +320 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.css +967 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +232 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +167 -0
- package/dist/collection/components/datepickers/datepicker.css +1147 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +1415 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +857 -0
- package/dist/collection/components/datepickers/wm-date-range.js +1158 -0
- package/dist/collection/components/datepickers/wm-datepicker.js +875 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.css +999 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +784 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +1259 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +805 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +909 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +363 -0
- package/dist/collection/components/selects/wm-option/wm-option.css +1033 -0
- package/dist/collection/components/selects/wm-option/wm-option.js +665 -0
- package/dist/collection/components/selects/wm-select/wm-select.css +1174 -0
- package/dist/collection/components/selects/wm-select/wm-select.js +878 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.css +1690 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +932 -0
- package/dist/collection/components/wm-button/wm-button.css +1630 -0
- package/dist/collection/components/wm-button/wm-button.js +794 -0
- package/dist/collection/components/wm-file/wm-file.css +1086 -0
- package/dist/collection/components/wm-file/wm-file.js +536 -0
- package/dist/collection/components/wm-file-list/wm-file-list.css +899 -0
- package/dist/collection/components/wm-file-list/wm-file-list.js +118 -0
- package/dist/collection/components/wm-flyout/wm-flyout.css +1091 -0
- package/dist/collection/components/wm-flyout/wm-flyout.js +651 -0
- package/dist/collection/components/wm-input/wm-input.css +1095 -0
- package/dist/collection/components/wm-input/wm-input.js +653 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.css +982 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +515 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.css +927 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.js +199 -0
- package/dist/collection/components/wm-modal/wm-modal-header.css +926 -0
- package/dist/collection/components/wm-modal/wm-modal-header.js +110 -0
- package/dist/collection/components/wm-modal/wm-modal.css +983 -0
- package/dist/collection/components/wm-modal/wm-modal.js +534 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.css +931 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +142 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.css +925 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +86 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.css +1007 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +369 -0
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +926 -0
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +153 -0
- package/dist/collection/components/wm-navigation/wm-navigation-item.css +935 -0
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +140 -0
- package/dist/collection/components/wm-navigation/wm-navigation.css +977 -0
- package/dist/collection/components/wm-navigation/wm-navigation.js +246 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +929 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +90 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +918 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +128 -0
- package/dist/collection/components/wm-navigator/wm-navigator.css +990 -0
- package/dist/collection/components/wm-navigator/wm-navigator.js +597 -0
- package/dist/collection/components/wm-pagination/wm-pagination.css +1044 -0
- package/dist/collection/components/wm-pagination/wm-pagination.js +487 -0
- package/dist/collection/components/wm-search/wm-search.css +983 -0
- package/dist/collection/components/wm-search/wm-search.js +604 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +1150 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +363 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +958 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +233 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +966 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +461 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +906 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +132 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +1423 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +1511 -0
- package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +328 -0
- package/dist/collection/components/wm-textarea/wm-textarea.css +1065 -0
- package/dist/collection/components/wm-textarea/wm-textarea.js +423 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +1174 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +728 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +1296 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +455 -0
- package/dist/collection/components/wm-uploader/wm-uploader.css +1987 -0
- package/dist/collection/components/wm-uploader/wm-uploader.js +760 -0
- package/dist/collection/components/wm-wrapper/wm-wrapper.js +31 -0
- package/dist/collection/dev/action-menu.js +18 -0
- package/dist/collection/dev/button.js +12 -0
- package/dist/collection/dev/chart-bar.js +430 -0
- package/dist/collection/dev/chart-column.js +459 -0
- package/dist/collection/dev/chart-small.js +56 -0
- package/dist/collection/dev/chart-stack.js +205 -0
- package/dist/collection/dev/chart.js +18 -0
- package/dist/collection/dev/date-range.js +14 -0
- package/dist/collection/dev/datepicker.js +46 -0
- package/dist/collection/dev/file-list.js +16 -0
- package/dist/collection/dev/file.js +0 -0
- package/dist/collection/dev/flyout.js +194 -0
- package/dist/collection/dev/input.js +6 -0
- package/dist/collection/dev/line-chart.js +45 -0
- package/dist/collection/dev/modal.js +48 -0
- package/dist/collection/dev/navigation.js +13 -0
- package/dist/collection/dev/navigator.js +34 -0
- package/dist/collection/dev/nested-select.js +36 -0
- package/dist/collection/dev/pagination.js +7 -0
- package/dist/collection/dev/progress-monitor.js +0 -0
- package/dist/collection/dev/pss-modal.js +8 -0
- package/dist/collection/dev/scripts.js +49 -0
- package/dist/collection/dev/search.js +72 -0
- package/dist/collection/dev/select.js +57 -0
- package/dist/collection/dev/snackbar.js +68 -0
- package/dist/collection/dev/tabs.js +44 -0
- package/dist/collection/dev/tag-input.js +32 -0
- package/dist/collection/dev/textarea.js +28 -0
- package/dist/collection/dev/timepicker.js +32 -0
- package/dist/collection/dev/toggletip.js +9 -0
- package/dist/collection/dev/uploader.js +139 -0
- package/dist/collection/global/__mocks__/functions.js +6 -0
- package/dist/collection/global/functions.js +907 -0
- package/dist/{ripple/app-globals-B7cOtGhY.js → collection/global/global.js} +16 -87
- package/dist/collection/global/interfaces.js +94 -0
- package/dist/collection/global/intl.js +281 -0
- package/dist/collection/global/services/__mocks__/http-service.js +130 -0
- package/dist/collection/global/services/http-service.js +50 -0
- package/dist/collection/lang/lang.js +5 -0
- package/dist/collection/lang/missing.js +43 -0
- package/dist/collection/lang/piglatin.js +101 -0
- package/dist/docs/docs.d.ts +435 -0
- package/dist/docs/docs.json +14178 -0
- package/dist/docs/props-reference.json +2079 -0
- package/dist/docs/skill/index.md +33 -0
- package/dist/docs/skill/wm-action-menu.md +116 -0
- package/dist/docs/skill/wm-button.md +121 -0
- package/dist/docs/skill/wm-chart-bar.md +156 -0
- package/dist/docs/skill/wm-chart-column.md +122 -0
- package/dist/docs/skill/wm-chart-legend.md +91 -0
- package/dist/docs/skill/wm-chart-slice.md +101 -0
- package/dist/docs/skill/wm-chart-stack.md +147 -0
- package/dist/docs/skill/wm-chart.md +139 -0
- package/dist/docs/skill/wm-date-range.md +176 -0
- package/dist/docs/skill/wm-datepicker.md +153 -0
- package/dist/docs/skill/wm-file-list.md +105 -0
- package/dist/docs/skill/wm-file.md +91 -0
- package/dist/docs/skill/wm-flyout.md +209 -0
- package/dist/docs/skill/wm-input.md +134 -0
- package/dist/docs/skill/wm-line-chart.md +135 -0
- package/dist/docs/skill/wm-menuitem.md +64 -0
- package/dist/docs/skill/wm-modal-footer.md +81 -0
- package/dist/docs/skill/wm-modal-header.md +71 -0
- package/dist/docs/skill/wm-modal.md +172 -0
- package/dist/docs/skill/wm-navigation-hamburger.md +61 -0
- package/dist/docs/skill/wm-navigation-item.md +78 -0
- package/dist/docs/skill/wm-navigation.md +82 -0
- package/dist/docs/skill/wm-navigator.md +106 -0
- package/dist/docs/skill/wm-nested-select.md +160 -0
- package/dist/docs/skill/wm-optgroup.md +72 -0
- package/dist/docs/skill/wm-option.md +67 -0
- package/dist/docs/skill/wm-pagination.md +114 -0
- package/dist/docs/skill/wm-progress-indicator.md +75 -0
- package/dist/docs/skill/wm-progress-monitor.md +120 -0
- package/dist/docs/skill/wm-progress-slice.md +67 -0
- package/dist/docs/skill/wm-search.md +180 -0
- package/dist/docs/skill/wm-select.md +169 -0
- package/dist/docs/skill/wm-snackbar.md +130 -0
- package/dist/docs/skill/wm-tab-item.md +45 -0
- package/dist/docs/skill/wm-tab-list.md +139 -0
- package/dist/docs/skill/wm-tab-panel.md +39 -0
- package/dist/docs/skill/wm-tag-input.md +187 -0
- package/dist/docs/skill/wm-tag-option.md +60 -0
- package/dist/docs/skill/wm-textarea.md +102 -0
- package/dist/docs/skill/wm-timepicker.md +156 -0
- package/dist/docs/skill/wm-toggletip.md +98 -0
- package/dist/docs/skill/wm-uploader.md +154 -0
- package/dist/docs/skill/wm-wrapper.md +5 -0
- package/dist/esm/app-globals-a1092590.js +101 -0
- package/dist/{ripple/chartFunctions-CmeM8Tyx.js → esm/chartFunctions-58637dc9.js} +159 -3
- package/dist/{ripple/functions-DVLl0rH_.js → esm/functions-65f1594c.js} +374 -7830
- package/dist/esm/index-3425d80d.js +1813 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/interfaces-8778346d.js +77 -0
- package/dist/{ripple/intl-7p27BJSM.js → esm/intl-d518f362.js} +11 -4
- package/dist/esm/loader.js +11 -0
- package/dist/{ripple → esm}/priv-calendar.entry.js +143 -133
- package/dist/esm/priv-chart-popover-old.entry.js +142 -0
- package/dist/esm/priv-chart-popover_2.entry.js +199 -0
- package/dist/{ripple → esm}/priv-navigator-button.entry.js +5 -4
- package/dist/{ripple → esm}/priv-navigator-item.entry.js +5 -4
- package/dist/{ripple → esm}/priv-option-list.entry.js +18 -16
- package/dist/esm/ripple.js +20 -0
- package/dist/esm/wm-action-menu_2.entry.js +520 -0
- package/dist/{ripple/wm-modal-header.entry.js → esm/wm-button.entry.js} +264 -24
- package/dist/esm/wm-chart-bar.entry.js +440 -0
- package/dist/esm/wm-chart-column.entry.js +625 -0
- package/dist/{ripple → esm}/wm-chart-slice.entry.js +6 -1
- package/dist/esm/wm-chart-stack.entry.js +443 -0
- package/dist/esm/wm-chart.entry.js +159 -0
- package/dist/{ripple → esm}/wm-date-range.entry.js +224 -114
- package/dist/esm/wm-datepicker.entry.js +395 -0
- package/dist/{ripple → esm}/wm-file-list.entry.js +5 -4
- package/dist/{ripple → esm}/wm-file.entry.js +48 -24
- package/dist/esm/wm-flyout.entry.js +174 -0
- package/dist/{ripple → esm}/wm-input.entry.js +23 -7
- package/dist/{ripple → esm}/wm-line-chart.entry.js +182 -94
- package/dist/esm/wm-modal-pss_3.entry.js +214 -0
- package/dist/esm/wm-modal_3.entry.js +232 -0
- package/dist/esm/wm-navigation_3.entry.js +182 -0
- package/dist/{ripple → esm}/wm-navigator.entry.js +26 -64
- package/dist/{ripple → esm}/wm-nested-select.entry.js +35 -25
- package/dist/{ripple → esm}/wm-optgroup.entry.js +17 -5
- package/dist/esm/wm-option_2.entry.js +531 -0
- package/dist/{ripple → esm}/wm-pagination.entry.js +16 -14
- package/dist/esm/wm-progress-indicator_3.entry.js +198 -0
- package/dist/{ripple → esm}/wm-search.entry.js +15 -31
- package/dist/{ripple → esm}/wm-snackbar.entry.js +32 -45
- package/dist/esm/wm-tab-item_3.entry.js +351 -0
- package/dist/{ripple → esm}/wm-tag-input.entry.js +169 -65
- package/dist/{ripple → esm}/wm-tag-option.entry.js +14 -2
- package/dist/{ripple/wm-menuitem.entry.js → esm/wm-textarea.entry.js} +65 -100
- package/dist/{ripple → esm}/wm-timepicker.entry.js +33 -12
- package/dist/{ripple → esm}/wm-toggletip.entry.js +105 -33
- package/dist/esm/wm-uploader.entry.js +337 -0
- package/dist/{ripple → esm}/wm-wrapper.entry.js +1 -1
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +1 -0
- package/dist/loader/index.cjs.js +1 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +1 -0
- package/dist/loader/index.js +2 -0
- package/dist/loader/package.json +11 -0
- package/dist/ripple/index.esm.js +0 -1
- package/dist/ripple/p-0d364411.entry.js +1 -0
- package/dist/ripple/p-156c4d1d.entry.js +1 -0
- package/dist/ripple/{wm-modal-footer.entry.js → p-26d8c356.entry.js} +1 -44
- package/dist/ripple/p-2b23ce49.entry.js +1 -0
- package/dist/ripple/p-2b7cc2c1.entry.js +1 -0
- package/dist/ripple/p-34bde06a.entry.js +1 -0
- package/dist/ripple/p-35db9386.entry.js +1 -0
- package/dist/ripple/p-38a987ac.entry.js +1 -0
- package/dist/ripple/p-38b05894.entry.js +1 -0
- package/dist/ripple/p-38dee4ab.entry.js +1 -0
- package/dist/ripple/p-3a19d019.entry.js +1 -0
- package/dist/ripple/p-451d4de2.js +1 -0
- package/dist/ripple/p-507f2cf4.entry.js +1 -0
- package/dist/ripple/p-59f74ead.entry.js +1 -0
- package/dist/ripple/p-5c2fc42a.entry.js +1 -0
- package/dist/ripple/p-680d7606.entry.js +1 -0
- package/dist/ripple/p-683264db.js +1 -0
- package/dist/ripple/p-6db681c8.entry.js +1 -0
- package/dist/ripple/p-6e3c2bbc.js +1 -0
- package/dist/ripple/p-6f1cabab.entry.js +1 -0
- package/dist/ripple/p-72d135ee.entry.js +1 -0
- package/dist/ripple/p-7799953c.entry.js +1 -0
- package/dist/ripple/p-83c3db60.js +2 -0
- package/dist/ripple/{wm-progress-monitor.entry.js → p-83cdad78.entry.js} +1 -71
- package/dist/ripple/p-87ef0cfa.entry.js +1 -0
- package/dist/ripple/p-88e44511.entry.js +1 -0
- package/dist/ripple/p-8f8e4eb8.entry.js +1 -0
- package/dist/ripple/p-936adffb.entry.js +1 -0
- package/dist/ripple/p-9755192c.entry.js +1 -0
- package/dist/ripple/p-9c5c591b.js +1 -0
- package/dist/ripple/p-9ea38d96.entry.js +1 -0
- package/dist/ripple/p-be3e4e7c.entry.js +1 -0
- package/dist/ripple/p-c9c7df12.entry.js +1 -0
- package/dist/ripple/p-d7a1be0b.entry.js +1 -0
- package/dist/ripple/p-dab86523.entry.js +1 -0
- package/dist/ripple/{wm-tab-list.entry.js → p-e4aa6e27.entry.js} +1 -175
- package/dist/ripple/p-ebe9f38c.js +1 -0
- package/dist/ripple/p-ed053612.entry.js +1 -0
- package/dist/ripple/p-f43f621b.entry.js +1 -0
- package/dist/ripple/p-f48d30d6.entry.js +1 -0
- package/dist/ripple/{wm-action-menu.entry.js → p-f6aad57c.entry.js} +1 -201
- package/dist/ripple/p-f6e1beb5.entry.js +1 -0
- package/dist/ripple/p-fc843bb8.entry.js +1 -0
- package/dist/ripple/{priv-chart-popover.entry.js → p-fd997764.entry.js} +1 -134
- package/dist/ripple/p-fffb46ad.entry.js +1 -0
- package/dist/ripple/ripple.esm.js +1 -48
- package/dist/types/components/charts/chartFunctions.d.ts +15 -2
- package/dist/types/components/charts/priv-chart-popover/priv-chart-popover.d.ts +25 -11
- package/dist/types/components/charts/priv-chart-popover-old/priv-chart-popover-old.d.ts +31 -0
- package/dist/types/components/charts/wm-chart/wm-chart-slice.d.ts +52 -0
- package/dist/types/components/charts/wm-chart/wm-chart.d.ts +113 -1
- package/dist/types/components/charts/wm-chart-bar/wm-chart-bar.d.ts +195 -0
- package/dist/types/components/charts/wm-chart-column/wm-chart-column.d.ts +184 -0
- package/dist/types/components/charts/wm-chart-legend/wm-chart-legend.d.ts +110 -0
- package/dist/types/components/charts/wm-chart-stack/wm-chart-stack.d.ts +194 -0
- package/dist/types/components/charts/wm-line-chart/wm-line-chart.d.ts +156 -11
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-indicator.d.ts +53 -1
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-monitor.d.ts +85 -0
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-slice.d.ts +44 -0
- package/dist/types/components/datepickers/priv-calendar/priv-calendar.d.ts +19 -3
- package/dist/types/components/datepickers/wm-date-range.d.ts +205 -14
- package/dist/types/components/datepickers/wm-datepicker.d.ts +189 -11
- package/dist/types/components/selects/priv-option-list/priv-option-list.d.ts +6 -0
- package/dist/types/components/selects/wm-nested-select/wm-nested-select.d.ts +165 -1
- package/dist/types/components/selects/wm-optgroup/wm-optgroup.d.ts +87 -0
- package/dist/types/components/selects/wm-option/wm-option.d.ts +117 -0
- package/dist/types/components/selects/wm-select/wm-select.d.ts +193 -12
- package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +207 -2
- package/dist/types/components/wm-button/wm-button.d.ts +191 -0
- package/dist/types/components/wm-file/wm-file.d.ts +110 -1
- package/dist/types/components/wm-file-list/wm-file-list.d.ts +72 -0
- package/dist/types/components/wm-flyout/wm-flyout.d.ts +205 -0
- package/dist/types/components/wm-input/wm-input.d.ts +161 -1
- package/dist/types/components/wm-menuitem/wm-menuitem.d.ts +79 -0
- package/dist/types/components/wm-modal/wm-modal-footer.d.ts +54 -0
- package/dist/types/components/wm-modal/wm-modal-header.d.ts +30 -0
- package/dist/types/components/wm-modal/wm-modal.d.ts +160 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss-footer.d.ts +4 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss-header.d.ts +4 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss.d.ts +6 -0
- package/dist/types/components/wm-navigation/wm-navigation-hamburger.d.ts +34 -0
- package/dist/types/components/wm-navigation/wm-navigation-item.d.ts +41 -0
- package/dist/types/components/wm-navigation/wm-navigation.d.ts +57 -0
- package/dist/types/components/wm-navigator/priv-navigator-button/priv-navigator-button.d.ts +4 -0
- package/dist/types/components/wm-navigator/priv-navigator-item/priv-navigator-item.d.ts +4 -0
- package/dist/types/components/wm-navigator/wm-navigator.d.ts +93 -4
- package/dist/types/components/wm-pagination/wm-pagination.d.ts +100 -1
- package/dist/types/components/wm-search/wm-search.d.ts +158 -6
- package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +103 -1
- package/dist/types/components/wm-tabs/wm-tab-item/wm-tab-item.d.ts +55 -3
- package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +119 -20
- package/dist/types/components/wm-tabs/wm-tab-panel/wm-tab-panel.d.ts +35 -2
- package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +199 -5
- package/dist/types/components/wm-tag-input/wm-tag-option/wm-tag-option.d.ts +68 -0
- package/dist/types/components/wm-textarea/wm-textarea.d.ts +99 -0
- package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +147 -0
- package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +88 -2
- package/dist/types/components/wm-uploader/wm-uploader.d.ts +145 -3
- package/dist/types/components/wm-wrapper/wm-wrapper.d.ts +3 -0
- package/dist/types/components.d.ts +11523 -95
- package/dist/types/global/functions.d.ts +7 -2
- package/dist/types/global/interfaces.d.ts +92 -2
- package/dist/types/global/intl.d.ts +3 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -28
- package/package.json +4 -33
- package/dist/components/index.d.ts +0 -33
- package/dist/components/priv-calendar.d.ts +0 -11
- package/dist/components/priv-chart-popover.d.ts +0 -11
- package/dist/components/priv-navigator-button.d.ts +0 -11
- package/dist/components/priv-navigator-item.d.ts +0 -11
- package/dist/components/priv-option-list.d.ts +0 -11
- package/dist/components/wm-action-menu.d.ts +0 -11
- package/dist/components/wm-button.d.ts +0 -11
- package/dist/components/wm-chart-slice.d.ts +0 -11
- package/dist/components/wm-chart.d.ts +0 -11
- package/dist/components/wm-date-range.d.ts +0 -11
- package/dist/components/wm-datepicker.d.ts +0 -11
- package/dist/components/wm-file-list.d.ts +0 -11
- package/dist/components/wm-file.d.ts +0 -11
- package/dist/components/wm-flyout.d.ts +0 -11
- package/dist/components/wm-input.d.ts +0 -11
- package/dist/components/wm-line-chart.d.ts +0 -11
- package/dist/components/wm-menuitem.d.ts +0 -11
- package/dist/components/wm-modal-footer.d.ts +0 -11
- package/dist/components/wm-modal-header.d.ts +0 -11
- package/dist/components/wm-modal-pss-footer.d.ts +0 -11
- package/dist/components/wm-modal-pss-header.d.ts +0 -11
- package/dist/components/wm-modal-pss.d.ts +0 -11
- package/dist/components/wm-modal.d.ts +0 -11
- package/dist/components/wm-navigation-hamburger.d.ts +0 -11
- package/dist/components/wm-navigation-item.d.ts +0 -11
- package/dist/components/wm-navigation.d.ts +0 -11
- package/dist/components/wm-navigator.d.ts +0 -11
- package/dist/components/wm-nested-select.d.ts +0 -11
- package/dist/components/wm-optgroup.d.ts +0 -11
- package/dist/components/wm-option.d.ts +0 -11
- package/dist/components/wm-pagination.d.ts +0 -11
- package/dist/components/wm-progress-indicator.d.ts +0 -11
- package/dist/components/wm-progress-monitor.d.ts +0 -11
- package/dist/components/wm-progress-slice.d.ts +0 -11
- package/dist/components/wm-search.d.ts +0 -11
- package/dist/components/wm-select.d.ts +0 -11
- package/dist/components/wm-snackbar.d.ts +0 -11
- package/dist/components/wm-tab-item.d.ts +0 -11
- package/dist/components/wm-tab-list.d.ts +0 -11
- package/dist/components/wm-tab-panel.d.ts +0 -11
- package/dist/components/wm-tag-input.d.ts +0 -11
- package/dist/components/wm-tag-option.d.ts +0 -11
- package/dist/components/wm-textarea.d.ts +0 -11
- package/dist/components/wm-timepicker.d.ts +0 -11
- package/dist/components/wm-toggletip.d.ts +0 -11
- package/dist/components/wm-uploader.d.ts +0 -11
- package/dist/components/wm-wrapper.d.ts +0 -11
- package/dist/ripple/index-CU5QNCKv.js +0 -4167
- package/dist/ripple/interfaces-CrANcZM9.js +0 -53
- package/dist/ripple/wm-button.entry.js +0 -197
- package/dist/ripple/wm-chart.entry.js +0 -157
- package/dist/ripple/wm-modal-pss-footer.entry.js +0 -40
- package/dist/ripple/wm-modal-pss-header.entry.js +0 -39
- package/dist/ripple/wm-navigation-hamburger.entry.js +0 -48
- package/dist/ripple/wm-navigation-item.entry.js +0 -18
- package/dist/ripple/wm-option.entry.js +0 -171
- package/dist/ripple/wm-progress-slice.entry.js +0 -13
- package/dist/ripple/wm-select.entry.js +0 -249
- package/dist/ripple/wm-tab-item.entry.js +0 -63
- package/dist/ripple/wm-uploader.entry.js +0 -313
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
### Uploader
|
|
2
|
+
- **Element:** `<wm-uploader>`
|
|
3
|
+
|
|
4
|
+
**Purpose:** File upload component for attaching files. Composed of a trigger button and a list of
|
|
5
|
+
wm-file children. Two variants: `'select'` opens the browser file picker; `'drop'` adds a
|
|
6
|
+
drag-and-drop area. The component emits events when files are selected and when file
|
|
7
|
+
actions are triggered -- the application is responsible for validation, upload, and managing
|
|
8
|
+
the file list. Use wm-file-list instead when displaying files without uploading.
|
|
9
|
+
|
|
10
|
+
**When to use:**
|
|
11
|
+
|
|
12
|
+
- **Uploading files that will be stored and accessed later** -- when users need to attach supporting documents, evidence files, or other assets to a record (not to import data), Uploader is the right component; it is explicitly designed for file storage workflows, not data ingestion.
|
|
13
|
+
- **File upload is part of the user's primary workflow** -- use the drop variant when users frequently upload documents and benefit from a prominent drag-and-drop area; use the select variant when uploading is a secondary action and a compact button trigger is more appropriate.
|
|
14
|
+
- **Enforcing file type, size, or count constraints** -- when the upload has restrictions, use file-types, max-size, and max-files to communicate those constraints visibly to users; the component surfaces the constraints in the UI.
|
|
15
|
+
- **Providing per-file actions after upload** -- when users need to preview, download, or delete individual uploaded files, use file-actions on each wm-file child to configure which actions are available per file.
|
|
16
|
+
|
|
17
|
+
**Do not use for:**
|
|
18
|
+
|
|
19
|
+
- **Read-only file display** -- if no new files need to be uploaded and the user only needs to view, download, or delete existing files, use wm-file-list instead; Uploader adds unnecessary upload affordances when no upload action is required.
|
|
20
|
+
- **Full-page drop zone when multiple upload areas or competing page interactions exist** -- drop-area="page" is only appropriate when uploading is the singular primary action on that page.
|
|
21
|
+
- **Not keeping progress up to date on wm-file during upload** -- the progress property must be kept current during upload to ensure the progress bar renders correctly and screen readers receive accurate status announcements. This is mandatory, not optional.
|
|
22
|
+
|
|
23
|
+
**Variants / types:**
|
|
24
|
+
|
|
25
|
+
- `uploader-type="select"` -- a compact button trigger for file selection
|
|
26
|
+
- `uploader-type="drop"` -- a prominent drag-and-drop area
|
|
27
|
+
- `drop-area="component"` -- the drop zone is scoped to the component itself
|
|
28
|
+
- `drop-area="page"` -- the entire page acts as a drop zone; only appropriate when uploading is the singular primary action on the page
|
|
29
|
+
|
|
30
|
+
**Usage notes:**
|
|
31
|
+
|
|
32
|
+
- `button-text` is required.
|
|
33
|
+
- Validate files (type, size, count) in the `wmUploaderFilesSelected` handler; set
|
|
34
|
+
`error-message` on the uploader or on individual wm-file elements externally.
|
|
35
|
+
- Announce file deletions to screen readers using wm-snackbar.
|
|
36
|
+
- `drop-area="page"` expands the drop zone to the full page while dragging; only valid
|
|
37
|
+
when `uploader-type="drop"`.
|
|
38
|
+
|
|
39
|
+
**Props:**
|
|
40
|
+
- `button-text` -- Label text on the upload trigger button, e.g. `'Attach files'`. Should
|
|
41
|
+
match the action verb used in any surrounding instructions. _(required)_
|
|
42
|
+
- `drop-area` -- Scope of the drop zone when `uploader-type="drop"`. `'component'` limits
|
|
43
|
+
the drop area to the component; `'page'` expands it to cover the full page while dragging. _(type: `"component" | "page"`; default: `"component"`)_
|
|
44
|
+
- `error-message` -- Puts the uploader in an error state with this message (e.g. `'Please add at
|
|
45
|
+
least one file'`).
|
|
46
|
+
- `file-types` -- Space-separated file extensions displayed to the user as accepted types
|
|
47
|
+
(e.g. `'pdf docx xlsx'`). Actual validation must be handled in the
|
|
48
|
+
`wmUploaderFilesSelected` handler. _(default: `"pdf txt log xml doc docx xls xlsx ppt pptx gif jpg jpeg png csv"`)_
|
|
49
|
+
- `icon` -- Icon displayed on the upload button. Accepts the same formats as wm-button:
|
|
50
|
+
`'#icon-name'` for a Ripple icon or `'/path/to/file.svg#symbol-id'` for a local SVG
|
|
51
|
+
sprite. _(required)_
|
|
52
|
+
- `label` -- Optional label displayed above the upload button. Use when the uploader is
|
|
53
|
+
required (pair with `required-field`) or needs a descriptive heading.
|
|
54
|
+
- `max-files` -- Maximum number of files displayed to the user. Disables the upload button
|
|
55
|
+
when reached. Validation must be handled in the application.
|
|
56
|
+
- `max-size` -- Maximum file size displayed to the user (e.g. `'100 MB'`). Validation must
|
|
57
|
+
be handled in the `wmUploaderFilesSelected` handler.
|
|
58
|
+
- `required-field` -- Displays a required-field asterisk next to the label. Must be used together
|
|
59
|
+
with the `label` prop.
|
|
60
|
+
- `show-info` -- Which metadata to show for each wm-file child in the list. _(type: `"none" | "size" | "time"`; default: `"time"`)_
|
|
61
|
+
- `uploader-type` -- File selection method. `'select'` opens the browser file picker; `'drop'`
|
|
62
|
+
adds a drag-and-drop area. _(type: `"drop" | "select"`; default: `"select"`)_
|
|
63
|
+
|
|
64
|
+
**Slots:**
|
|
65
|
+
- _(default)_ -- One or more wm-file children representing the current file list.
|
|
66
|
+
|
|
67
|
+
**Events:**
|
|
68
|
+
- `wmUploaderFilesSelected` -- Fires when the user selects files via the file picker or drops them onto
|
|
69
|
+
the drop zone. The host application should validate the files (type, size, count) and
|
|
70
|
+
begin the upload process. Detail: `File[] -- array of browser `File` objects selected or dropped by the user.`
|
|
71
|
+
|
|
72
|
+
**Required setup:**
|
|
73
|
+
|
|
74
|
+
- Handle `wmUploaderFilesSelected` (`event.detail` is an array of browser `File` objects) and hold
|
|
75
|
+
the files in your own state.
|
|
76
|
+
- Validate type, size, and count in that handler and report problems through `error-message`.
|
|
77
|
+
`file-types` and `max-size` are shown to the user but not enforced, and `max-files` only
|
|
78
|
+
disables the control once that many wm-file children exist.
|
|
79
|
+
- Render a wm-file per accepted file, and handle its `wmFileDelete` -- identify the file with
|
|
80
|
+
`event.target.id` -- by removing it from state.
|
|
81
|
+
- Update each wm-file `progress` as the upload proceeds; it drives the progress bar and the
|
|
82
|
+
aria-live announcement.
|
|
83
|
+
|
|
84
|
+
**Accessibility:**
|
|
85
|
+
|
|
86
|
+
- The number of in-progress uploads and aggregate upload percentage are announced via
|
|
87
|
+
`aria-live` regions.
|
|
88
|
+
- Deletion focus is managed automatically: moves to the next file, then the previous file,
|
|
89
|
+
then the upload button.
|
|
90
|
+
- The `progress` prop on wm-file children must be kept up to date for proper screen reader
|
|
91
|
+
accessibility.
|
|
92
|
+
|
|
93
|
+
**Related components:**
|
|
94
|
+
|
|
95
|
+
- `<wm-file-list>` -- if no new files need to be uploaded and the use case is purely displaying and acting on existing files, use File List; Uploader is only warranted when the user needs to add new files. The two are commonly paired: Uploader to add, File List to display files from a different source.
|
|
96
|
+
- `<wm-button>` with a custom file input -- Uploader handles progress tracking, error states, per-file actions, accessibility, and responsive behavior that a bare button cannot; always prefer Uploader for file upload workflows.
|
|
97
|
+
|
|
98
|
+
**Code example:**
|
|
99
|
+
|
|
100
|
+
_Select variant_
|
|
101
|
+
|
|
102
|
+
```html
|
|
103
|
+
<wm-uploader button-text="Attach files" icon="#attach" label="Project documents">
|
|
104
|
+
<wm-file id="f1" name="proposal" type="pdf" size="1.2 MB"></wm-file>
|
|
105
|
+
</wm-uploader>
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
_Select variant with file list management_
|
|
109
|
+
|
|
110
|
+
```react
|
|
111
|
+
// wmUploaderFilesSelected emits a FileList -- use Array.from() to iterate.
|
|
112
|
+
// Extract name (without extension) and type (extension only) for each wm-file child.
|
|
113
|
+
// wmFileDelete fires on the wm-file element; use e.target.id to identify which to remove.
|
|
114
|
+
// showInfo on the uploader propagates automatically to all wm-file children.
|
|
115
|
+
let nextId = 1;
|
|
116
|
+
const [files, setFiles] = useState([]);
|
|
117
|
+
|
|
118
|
+
const handleFilesSelected = (e) => {
|
|
119
|
+
const newFiles = Array.from(e.detail).map((file) => {
|
|
120
|
+
const lastDot = file.name.lastIndexOf(".");
|
|
121
|
+
const name = lastDot > 0 ? file.name.slice(0, lastDot) : file.name;
|
|
122
|
+
const type = lastDot > 0 ? file.name.slice(lastDot + 1) : "file";
|
|
123
|
+
return { id: String(nextId++), name, type, size: `${(file.size / 1024).toFixed(1)} KB` };
|
|
124
|
+
});
|
|
125
|
+
setFiles((prev) => [...prev, ...newFiles]);
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
const handleDelete = (e) => {
|
|
129
|
+
const id = e.target.id;
|
|
130
|
+
setFiles((prev) => prev.filter((f) => f.id !== id));
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
<WmUploader buttonText="Attach files" icon="#attach" label="Project documents" showInfo="size"
|
|
134
|
+
onWmUploaderFilesSelected={handleFilesSelected}>
|
|
135
|
+
{files.map((f) => (
|
|
136
|
+
<WmFile key={f.id} id={f.id} name={f.name} type={f.type} size={f.size}
|
|
137
|
+
onWmFileDelete={handleDelete} />
|
|
138
|
+
))}
|
|
139
|
+
</WmUploader>
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
_Drop variant_
|
|
143
|
+
|
|
144
|
+
```html
|
|
145
|
+
<wm-uploader uploader-type="drop" button-text="Upload files" icon="#upload">
|
|
146
|
+
</wm-uploader>
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
_Drop variant_
|
|
150
|
+
|
|
151
|
+
```react
|
|
152
|
+
<WmUploader uploaderType="drop" buttonText="Upload files" icon="#upload"
|
|
153
|
+
onWmUploaderFilesSelected={handleFilesSelected} />
|
|
154
|
+
```
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import './index-3425d80d.js';
|
|
2
|
+
|
|
3
|
+
const version = "0.1.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
|
+
const body = document.querySelector("body");
|
|
84
|
+
if (body) {
|
|
85
|
+
document.head.appendChild(tooltipStyles);
|
|
86
|
+
tooltipContainer.appendChild(tooltipEl);
|
|
87
|
+
body.appendChild(tooltipContainer);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
document.addEventListener("DOMContentLoaded", () => {
|
|
91
|
+
const body = document.querySelector("body");
|
|
92
|
+
document.head.appendChild(tooltipStyles);
|
|
93
|
+
tooltipContainer.appendChild(tooltipEl);
|
|
94
|
+
body.appendChild(tooltipContainer);
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
const globalFn = () => { };
|
|
98
|
+
|
|
99
|
+
const globalScripts = globalFn;
|
|
100
|
+
|
|
101
|
+
export { globalScripts as g };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h } from './index-
|
|
2
|
-
import { i as intl,
|
|
1
|
+
import { h } from './index-3425d80d.js';
|
|
2
|
+
import { i as intl, c as checkForActiveElInShadow, e as safeMultiplyFloat, f as getPosition } from './functions-65f1594c.js';
|
|
3
3
|
|
|
4
4
|
const colors = {
|
|
5
5
|
salmon: "#ff5f4e",
|
|
@@ -180,6 +180,7 @@ function handleSliceKeyDown(ev) {
|
|
|
180
180
|
}
|
|
181
181
|
function handleSliceClick(ev, s) {
|
|
182
182
|
if (this.popoverEl && !this.isTabbing) {
|
|
183
|
+
this.componentWrapperEl.classList.toggle("interactive-popover", !!s.buttonText);
|
|
183
184
|
s.coords = { x: ev.clientX, y: ev.clientY };
|
|
184
185
|
openPopover(this.popoverEl, s);
|
|
185
186
|
highlightSegmentInfo(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")), s);
|
|
@@ -187,6 +188,7 @@ function handleSliceClick(ev, s) {
|
|
|
187
188
|
}
|
|
188
189
|
function handleSliceFocus(ev, s) {
|
|
189
190
|
if (this.popoverEl && this.isTabbing) {
|
|
191
|
+
this.componentWrapperEl.classList.toggle("interactive-popover", !!s.buttonText);
|
|
190
192
|
this.focusedSliceId = s.id;
|
|
191
193
|
s.coords = getPosition(ev.target);
|
|
192
194
|
s.coords.x = s.coords.x + 30;
|
|
@@ -721,5 +723,159 @@ function renderHiddenValuesMessage() {
|
|
|
721
723
|
h("br", null),
|
|
722
724
|
seeDetailsMessage));
|
|
723
725
|
}
|
|
726
|
+
function formatDisplayValue(amount, amountTotal, valueFormat, decimalPlaces = 0) {
|
|
727
|
+
switch (valueFormat) {
|
|
728
|
+
case "amount":
|
|
729
|
+
return amount.toFixed(decimalPlaces);
|
|
730
|
+
case "percentage":
|
|
731
|
+
const percentage = (amount / amountTotal) * 100;
|
|
732
|
+
if (amount > 0 && percentage < 1)
|
|
733
|
+
return "<1%";
|
|
734
|
+
if (percentage > 99 && amount !== amountTotal)
|
|
735
|
+
return ">99%";
|
|
736
|
+
return `${Math.round(percentage).toFixed(0)}%`;
|
|
737
|
+
default:
|
|
738
|
+
case "none":
|
|
739
|
+
return "";
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
function isNiceInterval(interval, niceValues = [1, 1.5, 2, 2.5, 3, 5, 10]) {
|
|
743
|
+
const magnitude = Math.pow(10, Math.floor(Math.log10(interval)));
|
|
744
|
+
const normalized = interval / magnitude;
|
|
745
|
+
const normalizedComparision = niceValues.some((nice) => Math.abs(normalized - nice) < 0.0001); // check equality with floating point tolerance
|
|
746
|
+
return normalizedComparision;
|
|
747
|
+
}
|
|
748
|
+
function inferDecimalPlacesFromFloat(value) {
|
|
749
|
+
// Trims floating point noise and returns significant decimal places, or return 2 for non-terminating values (2/3)
|
|
750
|
+
if (value === 0 || !Number.isFinite(value))
|
|
751
|
+
return 0;
|
|
752
|
+
const maxPlaces = 15;
|
|
753
|
+
let scaled = Math.abs(value);
|
|
754
|
+
for (let n = 0; n <= maxPlaces; n++) {
|
|
755
|
+
// Each iteration, compare the scaled value to the nearest whole number
|
|
756
|
+
// If the difference is less than the noise margin, return the number of times scaled (decimal places)
|
|
757
|
+
// Otherwise scale up by 10 and loop
|
|
758
|
+
const nearest = Math.round(scaled);
|
|
759
|
+
const noiseMargin = 1e-9;
|
|
760
|
+
if (Math.abs(scaled - nearest) < noiseMargin) {
|
|
761
|
+
return n;
|
|
762
|
+
}
|
|
763
|
+
scaled *= 10;
|
|
764
|
+
}
|
|
765
|
+
return 2;
|
|
766
|
+
}
|
|
767
|
+
function inferDecimalPlacesForUnitValue(value) {
|
|
768
|
+
// Works with units K and M. Returns decimal places taking unit conversion into account
|
|
769
|
+
if (value === 0 || !Number.isFinite(value))
|
|
770
|
+
return 0;
|
|
771
|
+
const abs = Math.abs(value);
|
|
772
|
+
let displayUnitValue = abs;
|
|
773
|
+
if (abs >= 1000000) {
|
|
774
|
+
displayUnitValue = abs / 1000000;
|
|
775
|
+
}
|
|
776
|
+
else if (abs >= 1000) {
|
|
777
|
+
displayUnitValue = abs / 1000;
|
|
778
|
+
}
|
|
779
|
+
return Math.max(inferDecimalPlacesFromFloat(abs), inferDecimalPlacesFromFloat(displayUnitValue));
|
|
780
|
+
}
|
|
781
|
+
function suffixNumber(value, decimalPlaces) {
|
|
782
|
+
const hasDecimalPlaces = decimalPlaces !== undefined;
|
|
783
|
+
if (value >= 1000000) {
|
|
784
|
+
const scaled = value / 1000000;
|
|
785
|
+
if (hasDecimalPlaces) {
|
|
786
|
+
return `${scaled.toFixed(decimalPlaces)}M`;
|
|
787
|
+
}
|
|
788
|
+
return `${scaled.toFixed(value % 1000000 === 0 ? 0 : 1)}M`;
|
|
789
|
+
}
|
|
790
|
+
if (value >= 1000) {
|
|
791
|
+
const scaled = value / 1000;
|
|
792
|
+
if (hasDecimalPlaces) {
|
|
793
|
+
return `${scaled.toFixed(decimalPlaces)}K`;
|
|
794
|
+
}
|
|
795
|
+
return `${scaled.toFixed(value % 1000 === 0 ? 0 : 1)}K`;
|
|
796
|
+
}
|
|
797
|
+
if (hasDecimalPlaces) {
|
|
798
|
+
return value.toFixed(decimalPlaces);
|
|
799
|
+
}
|
|
800
|
+
return value.toString();
|
|
801
|
+
}
|
|
802
|
+
function findLargestNiceInterval(maxIntervals, total) {
|
|
803
|
+
// Given a max number of intervals and a total, iterate down until a nice way to divide the total is found.
|
|
804
|
+
// Otherwise, return 1 interval
|
|
805
|
+
for (let intervals = maxIntervals; intervals >= 1; intervals--) {
|
|
806
|
+
const candidateInterval = total / intervals;
|
|
807
|
+
if (isNiceInterval(candidateInterval)) {
|
|
808
|
+
return { numIntervals: intervals, interval: candidateInterval };
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
return { numIntervals: 1, interval: total };
|
|
812
|
+
}
|
|
813
|
+
function findNiceRoundNumber(value) {
|
|
814
|
+
// Given a value, find the next "nice" round number >= that value.
|
|
815
|
+
// Examples: 982 → 1000, 45 → 50, 1234 → 1500, 7 → 10
|
|
816
|
+
if (value <= 0)
|
|
817
|
+
return 0;
|
|
818
|
+
const niceValues = [1, 1.5, 2, 2.5, 3, 5, 10];
|
|
819
|
+
const magnitude = Math.pow(10, Math.floor(Math.log10(value)));
|
|
820
|
+
const normalized = value / magnitude;
|
|
821
|
+
// Find the smallest nice value that is >= the normalized value
|
|
822
|
+
for (const nice of niceValues) {
|
|
823
|
+
if (nice >= normalized) {
|
|
824
|
+
return nice * magnitude;
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
// Fallback: next order of magnitude
|
|
828
|
+
return 10 * magnitude;
|
|
829
|
+
}
|
|
830
|
+
function computeLegendData(data) {
|
|
831
|
+
const seen = new Set();
|
|
832
|
+
const result = [];
|
|
833
|
+
data.forEach((groupItems) => {
|
|
834
|
+
groupItems.forEach((item) => {
|
|
835
|
+
if (!seen.has(item.barLegend)) {
|
|
836
|
+
seen.add(item.barLegend);
|
|
837
|
+
result.push(item);
|
|
838
|
+
}
|
|
839
|
+
});
|
|
840
|
+
});
|
|
841
|
+
return result;
|
|
842
|
+
}
|
|
843
|
+
function groupProcessedData(data) {
|
|
844
|
+
const groups = new Map();
|
|
845
|
+
data.forEach((item) => {
|
|
846
|
+
var _a;
|
|
847
|
+
let groupName = (_a = item.groupName) !== null && _a !== void 0 ? _a : null;
|
|
848
|
+
if (!groups.has(groupName)) {
|
|
849
|
+
groups.set(groupName, []);
|
|
850
|
+
}
|
|
851
|
+
groups.get(groupName).push(item);
|
|
852
|
+
});
|
|
853
|
+
return groups;
|
|
854
|
+
}
|
|
855
|
+
function sortGroupedData(data) {
|
|
856
|
+
const barData = [...data];
|
|
857
|
+
// Determine group order and barLegend order by first occurrences
|
|
858
|
+
const groupOrder = [];
|
|
859
|
+
barData.forEach((item) => {
|
|
860
|
+
if (item.groupName && !groupOrder.includes(item.groupName)) {
|
|
861
|
+
groupOrder.push(item.groupName);
|
|
862
|
+
}
|
|
863
|
+
});
|
|
864
|
+
const barLegendOrder = barData
|
|
865
|
+
.filter((item) => item.groupName === groupOrder[0])
|
|
866
|
+
.map((item) => item.barLegend);
|
|
867
|
+
// Two step sorting: sort by group order, then by barLegend order
|
|
868
|
+
const sortedBarData = barData.sort((a, b) => {
|
|
869
|
+
const groupIndexA = groupOrder.indexOf(a.groupName || "");
|
|
870
|
+
const groupIndexB = groupOrder.indexOf(b.groupName || "");
|
|
871
|
+
if (groupIndexA !== groupIndexB) {
|
|
872
|
+
return groupIndexA - groupIndexB;
|
|
873
|
+
}
|
|
874
|
+
const legendIndexA = barLegendOrder.indexOf(a.barLegend);
|
|
875
|
+
const legendIndexB = barLegendOrder.indexOf(b.barLegend);
|
|
876
|
+
return legendIndexA - legendIndexB;
|
|
877
|
+
});
|
|
878
|
+
return sortedBarData;
|
|
879
|
+
}
|
|
724
880
|
|
|
725
|
-
export { allChartsDetails as a,
|
|
881
|
+
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, formatDisplayValue as l, renderCompletionMessage as m, renderLegendItem as n, findNiceRoundNumber as o, computeLegendData as p, groupProcessedData as q, removeSegmentInfoHighlight as r, sortGroupedData as s, findLargestNiceInterval as t, suffixNumber as u, getMaxTicks as v, inferDecimalPlacesForUnitValue as w, getInterval as x };
|