@watermarkinsights/ripple 5.13.0 → 5.13.1-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/app-globals-12979223.js +92 -0
- package/dist/cjs/chartFunctions-5a8c4095.js +742 -0
- package/dist/cjs/functions-0774d303.js +10479 -0
- package/dist/cjs/index-788526f5.js +1863 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/interfaces-85d78ae9.js +37 -0
- package/dist/cjs/intl-4a204fe7.js +283 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/priv-calendar.cjs.entry.js +574 -0
- package/dist/{ripple/wm-optgroup.entry.js → cjs/priv-chart-popover.cjs.entry.js} +120 -48
- package/dist/{ripple/wm-modal-footer.entry.js → cjs/priv-navigator-button.cjs.entry.js} +20 -35
- package/dist/{ripple/wm-navigator.entry.js → cjs/priv-navigator-item.cjs.entry.js} +24 -357
- package/dist/{ripple/wm-search.entry.js → cjs/priv-option-list.cjs.entry.js} +365 -180
- package/dist/cjs/ripple.cjs.js +25 -0
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +335 -0
- package/dist/cjs/wm-button.cjs.entry.js +207 -0
- package/dist/cjs/wm-chart-slice.cjs.entry.js +27 -0
- package/dist/cjs/wm-chart.cjs.entry.js +163 -0
- package/dist/cjs/wm-date-range.cjs.entry.js +484 -0
- package/dist/cjs/wm-datepicker.cjs.entry.js +254 -0
- package/dist/cjs/wm-file-list.cjs.entry.js +23 -0
- package/dist/cjs/wm-file.cjs.entry.js +194 -0
- package/dist/cjs/wm-flyout.cjs.entry.js +180 -0
- package/dist/cjs/wm-input.cjs.entry.js +125 -0
- package/dist/cjs/wm-line-chart.cjs.entry.js +461 -0
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +217 -0
- package/dist/cjs/wm-modal_3.cjs.entry.js +217 -0
- package/dist/cjs/wm-navigation_3.cjs.entry.js +188 -0
- package/dist/cjs/wm-navigator.cjs.entry.js +327 -0
- package/dist/cjs/wm-nested-select.cjs.entry.js +315 -0
- package/dist/cjs/wm-optgroup.cjs.entry.js +74 -0
- package/dist/cjs/wm-option_2.cjs.entry.js +427 -0
- package/dist/cjs/wm-pagination.cjs.entry.js +228 -0
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +204 -0
- package/dist/cjs/wm-search.cjs.entry.js +194 -0
- package/dist/cjs/wm-snackbar.cjs.entry.js +189 -0
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +263 -0
- package/dist/cjs/wm-tag-input.cjs.entry.js +892 -0
- package/dist/cjs/wm-tag-option.cjs.entry.js +43 -0
- package/dist/cjs/wm-textarea.cjs.entry.js +88 -0
- package/dist/cjs/wm-timepicker.cjs.entry.js +307 -0
- package/dist/cjs/wm-toggletip.cjs.entry.js +183 -0
- package/dist/cjs/wm-uploader.cjs.entry.js +325 -0
- package/dist/cjs/wm-wrapper.cjs.entry.js +21 -0
- package/dist/collection/collection-manifest.json +197 -0
- package/dist/collection/components/charts/chartFunctions.js +675 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +1044 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +257 -0
- package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +125 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.css +1497 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.js +422 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.css +1202 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +723 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.css +1497 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +264 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.css +1060 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +151 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +121 -0
- package/dist/collection/components/datepickers/datepicker.css +1179 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +1414 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +840 -0
- package/dist/collection/components/datepickers/wm-date-range.js +849 -0
- package/dist/collection/components/datepickers/wm-datepicker.js +524 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.css +1053 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +780 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +1316 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +620 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +965 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +258 -0
- package/dist/collection/components/selects/wm-option/wm-option.css +1066 -0
- package/dist/collection/components/selects/wm-option/wm-option.js +530 -0
- package/dist/collection/components/selects/wm-select/wm-select.css +1239 -0
- package/dist/collection/components/selects/wm-select/wm-select.js +584 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.css +1026 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +435 -0
- package/dist/collection/components/wm-button/wm-button.css +1571 -0
- package/dist/collection/components/wm-button/wm-button.js +489 -0
- package/dist/collection/components/wm-file/wm-file.css +1062 -0
- package/dist/collection/components/wm-file/wm-file.js +412 -0
- package/dist/collection/components/wm-file-list/wm-file-list.css +955 -0
- package/dist/collection/components/wm-file-list/wm-file-list.js +45 -0
- package/dist/collection/components/wm-flyout/wm-flyout.css +1149 -0
- package/dist/collection/components/wm-flyout/wm-flyout.js +448 -0
- package/dist/collection/components/wm-input/wm-input.css +1139 -0
- package/dist/collection/components/wm-input/wm-input.js +471 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.css +1026 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +419 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.css +980 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.js +142 -0
- package/dist/collection/components/wm-modal/wm-modal-header.css +979 -0
- package/dist/collection/components/wm-modal/wm-modal-header.js +79 -0
- package/dist/collection/components/wm-modal/wm-modal.css +1027 -0
- package/dist/collection/components/wm-modal/wm-modal.js +350 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.css +987 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +138 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.css +981 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +82 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.css +1063 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +362 -0
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +982 -0
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +119 -0
- package/dist/collection/components/wm-navigation/wm-navigation-item.css +991 -0
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +98 -0
- package/dist/collection/components/wm-navigation/wm-navigation.css +1033 -0
- package/dist/collection/components/wm-navigation/wm-navigation.js +190 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +985 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +86 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +965 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +124 -0
- package/dist/collection/components/wm-navigator/wm-navigator.css +1038 -0
- package/dist/collection/components/wm-navigator/wm-navigator.js +496 -0
- package/dist/collection/components/wm-pagination/wm-pagination.css +1106 -0
- package/dist/collection/components/wm-pagination/wm-pagination.js +363 -0
- package/dist/collection/components/wm-search/wm-search.css +1031 -0
- package/dist/collection/components/wm-search/wm-search.js +427 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +1213 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +276 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +1004 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +175 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +976 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +273 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +960 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +87 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +1411 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +1227 -0
- package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +243 -0
- package/dist/collection/components/wm-textarea/wm-textarea.css +1115 -0
- package/dist/collection/components/wm-textarea/wm-textarea.js +313 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +1229 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +547 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +1287 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +289 -0
- package/dist/collection/components/wm-uploader/wm-uploader.css +1873 -0
- package/dist/collection/components/wm-uploader/wm-uploader.js +603 -0
- package/dist/collection/components/wm-wrapper/wm-wrapper.js +28 -0
- package/dist/collection/dev/action-menu.js +0 -0
- package/dist/collection/dev/button.js +0 -0
- package/dist/collection/dev/chart-small.js +56 -0
- package/dist/collection/dev/chart.js +18 -0
- package/dist/collection/dev/date-range.js +6 -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 +0 -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 +60 -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 +841 -0
- package/dist/{ripple/app-globals-B7cOtGhY.js → collection/global/global.js} +2 -84
- package/dist/{ripple/interfaces-CrANcZM9.js → collection/global/interfaces.js} +4 -6
- package/dist/collection/global/intl.js +274 -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/esm/app-globals-8110c96f.js +90 -0
- package/dist/{ripple/chartFunctions-CmeM8Tyx.js → esm/chartFunctions-4095a787.js} +3 -3
- package/dist/{ripple/functions-DVLl0rH_.js → esm/functions-682e95b4.js} +390 -8060
- package/dist/esm/index-130e07bb.js +1832 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/interfaces-cc5b177f.js +34 -0
- package/dist/{ripple/intl-7p27BJSM.js → esm/intl-e0444831.js} +1 -1
- package/dist/esm/loader.js +11 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/priv-calendar.entry.js +570 -0
- package/dist/{ripple/wm-menuitem.entry.js → esm/priv-chart-popover.entry.js} +109 -98
- package/dist/{ripple/wm-modal-header.entry.js → esm/priv-navigator-button.entry.js} +14 -25
- package/dist/{ripple/wm-toggletip.entry.js → esm/priv-navigator-item.entry.js} +19 -164
- package/dist/{ripple/wm-option.entry.js → esm/priv-option-list.entry.js} +347 -129
- package/dist/esm/ripple.js +20 -0
- package/dist/esm/wm-action-menu_2.entry.js +330 -0
- package/dist/esm/wm-button.entry.js +203 -0
- package/dist/{ripple → esm}/wm-chart-slice.entry.js +6 -1
- package/dist/esm/wm-chart.entry.js +159 -0
- package/dist/esm/wm-date-range.entry.js +480 -0
- package/dist/esm/wm-datepicker.entry.js +250 -0
- package/dist/esm/wm-file-list.entry.js +19 -0
- package/dist/{ripple/wm-chart.entry.js → esm/wm-file.entry.js} +169 -136
- package/dist/esm/wm-flyout.entry.js +176 -0
- package/dist/esm/wm-input.entry.js +121 -0
- package/dist/esm/wm-line-chart.entry.js +457 -0
- package/dist/esm/wm-modal-pss_3.entry.js +211 -0
- package/dist/esm/wm-modal_3.entry.js +211 -0
- package/dist/esm/wm-navigation_3.entry.js +182 -0
- package/dist/esm/wm-navigator.entry.js +323 -0
- package/dist/{ripple/wm-select.entry.js → esm/wm-nested-select.entry.js} +199 -137
- package/dist/esm/wm-optgroup.entry.js +70 -0
- package/dist/esm/wm-option_2.entry.js +422 -0
- package/dist/esm/wm-pagination.entry.js +224 -0
- package/dist/esm/wm-progress-indicator_3.entry.js +198 -0
- package/dist/esm/wm-search.entry.js +190 -0
- package/dist/esm/wm-snackbar.entry.js +185 -0
- package/dist/esm/wm-tab-item_3.entry.js +257 -0
- package/dist/esm/wm-tag-input.entry.js +888 -0
- package/dist/{ripple → esm}/wm-tag-option.entry.js +6 -2
- package/dist/esm/wm-textarea.entry.js +84 -0
- package/dist/esm/wm-timepicker.entry.js +303 -0
- package/dist/esm/wm-toggletip.entry.js +179 -0
- package/dist/esm/wm-uploader.entry.js +321 -0
- package/dist/{ripple → esm}/wm-wrapper.entry.js +1 -1
- package/dist/esm-es5/app-globals-8110c96f.js +1 -0
- package/dist/esm-es5/chartFunctions-4095a787.js +1 -0
- package/dist/esm-es5/functions-682e95b4.js +1 -0
- package/dist/esm-es5/index-130e07bb.js +1 -0
- package/dist/esm-es5/index.js +0 -0
- package/dist/esm-es5/interfaces-cc5b177f.js +1 -0
- package/dist/esm-es5/intl-e0444831.js +1 -0
- package/dist/esm-es5/loader.js +1 -0
- package/dist/esm-es5/priv-calendar.entry.js +1 -0
- package/dist/esm-es5/priv-chart-popover.entry.js +1 -0
- package/dist/esm-es5/priv-navigator-button.entry.js +1 -0
- package/dist/{ripple/wm-progress-monitor.entry.js → esm-es5/priv-navigator-item.entry.js} +1 -71
- package/dist/esm-es5/priv-option-list.entry.js +1 -0
- package/dist/esm-es5/ripple.js +1 -0
- package/dist/esm-es5/wm-action-menu_2.entry.js +1 -0
- package/dist/esm-es5/wm-button.entry.js +1 -0
- package/dist/esm-es5/wm-chart-slice.entry.js +1 -0
- package/dist/esm-es5/wm-chart.entry.js +1 -0
- package/dist/esm-es5/wm-date-range.entry.js +1 -0
- package/dist/{ripple/wm-uploader.entry.js → esm-es5/wm-datepicker.entry.js} +1 -313
- package/dist/{ripple/wm-tab-item.entry.js → esm-es5/wm-file-list.entry.js} +1 -63
- package/dist/esm-es5/wm-file.entry.js +1 -0
- package/dist/{ripple/wm-input.entry.js → esm-es5/wm-flyout.entry.js} +1 -111
- package/dist/esm-es5/wm-input.entry.js +1 -0
- package/dist/esm-es5/wm-line-chart.entry.js +1 -0
- package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -0
- package/dist/esm-es5/wm-modal_3.entry.js +1 -0
- package/dist/esm-es5/wm-navigation_3.entry.js +1 -0
- package/dist/esm-es5/wm-navigator.entry.js +1 -0
- package/dist/esm-es5/wm-nested-select.entry.js +1 -0
- package/dist/esm-es5/wm-optgroup.entry.js +1 -0
- package/dist/esm-es5/wm-option_2.entry.js +1 -0
- package/dist/esm-es5/wm-pagination.entry.js +1 -0
- package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -0
- package/dist/esm-es5/wm-search.entry.js +1 -0
- package/dist/esm-es5/wm-snackbar.entry.js +1 -0
- package/dist/esm-es5/wm-tab-item_3.entry.js +1 -0
- package/dist/esm-es5/wm-tag-input.entry.js +1 -0
- package/dist/esm-es5/wm-tag-option.entry.js +1 -0
- package/dist/esm-es5/wm-textarea.entry.js +1 -0
- package/dist/esm-es5/wm-timepicker.entry.js +1 -0
- package/dist/esm-es5/wm-toggletip.entry.js +1 -0
- package/dist/esm-es5/wm-uploader.entry.js +1 -0
- package/dist/esm-es5/wm-wrapper.entry.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +2 -0
- package/dist/loader/index.cjs.js +2 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +2 -0
- package/dist/loader/index.js +3 -0
- package/dist/loader/package.json +11 -0
- package/dist/ripple/index.esm.js +0 -1
- package/dist/ripple/p-00baa278.entry.js +1 -0
- package/dist/ripple/{wm-flyout.entry.js → p-015af452.system.entry.js} +1 -167
- package/dist/ripple/p-039a53d7.entry.js +1 -0
- package/dist/ripple/p-043901ab.system.entry.js +1 -0
- package/dist/ripple/p-0528bf4d.entry.js +1 -0
- package/dist/ripple/p-0d4c017e.system.entry.js +1 -0
- package/dist/ripple/p-11aef4e8.entry.js +1 -0
- package/dist/ripple/p-13b1d775.entry.js +1 -0
- package/dist/ripple/p-14b3b062.system.entry.js +1 -0
- package/dist/ripple/p-15712a55.entry.js +1 -0
- package/dist/ripple/p-187c694f.js +1 -0
- package/dist/ripple/{wm-navigation-item.entry.js → p-18d6408f.system.entry.js} +1 -18
- package/dist/ripple/p-199fd014.system.entry.js +1 -0
- package/dist/ripple/p-1d43bc57.system.entry.js +1 -0
- package/dist/ripple/p-2732bddd.js +1 -0
- package/dist/ripple/p-29d32ee5.system.js +1 -0
- package/dist/ripple/p-31da9108.system.entry.js +1 -0
- package/dist/ripple/p-371c36f5.entry.js +1 -0
- package/dist/ripple/p-37301ba0.system.js +1 -0
- package/dist/ripple/p-42fa7a77.system.js +1 -0
- package/dist/ripple/p-43a28379.entry.js +1 -0
- package/dist/ripple/p-44577815.entry.js +1 -0
- package/dist/ripple/p-45f831ef.entry.js +1 -0
- package/dist/ripple/p-50ea2036.system.js +1 -0
- package/dist/ripple/p-55f880af.entry.js +1 -0
- package/dist/ripple/p-5642cfb5.system.entry.js +1 -0
- package/dist/ripple/p-5a564d92.system.entry.js +1 -0
- package/dist/ripple/p-5f09e972.entry.js +1 -0
- package/dist/ripple/p-61f8a6d4.system.entry.js +1 -0
- package/dist/ripple/p-6439b435.system.entry.js +1 -0
- package/dist/ripple/p-6747a274.system.js +1 -0
- package/dist/ripple/p-704bacb9.system.entry.js +1 -0
- package/dist/ripple/p-72b88618.system.entry.js +1 -0
- package/dist/ripple/p-733c7bd5.system.js +1 -0
- package/dist/ripple/p-7360ce37.entry.js +1 -0
- package/dist/ripple/p-7a08da5c.system.js +1 -0
- package/dist/ripple/{priv-option-list.entry.js → p-7a6f535f.system.entry.js} +1 -385
- package/dist/ripple/p-7c9bf5f6.system.entry.js +1 -0
- package/dist/ripple/p-8194ee04.entry.js +1 -0
- package/dist/ripple/p-823d7b4e.system.entry.js +1 -0
- package/dist/ripple/p-8303bd1e.entry.js +1 -0
- package/dist/ripple/{wm-modal-pss-header.entry.js → p-849384be.system.entry.js} +1 -39
- package/dist/ripple/p-8cd5206a.entry.js +1 -0
- package/dist/ripple/p-8dde12bd.entry.js +1 -0
- package/dist/ripple/p-91a8e524.system.entry.js +1 -0
- package/dist/ripple/p-927df284.system.entry.js +1 -0
- package/dist/ripple/p-932922ed.system.entry.js +1 -0
- package/dist/ripple/p-95d5618f.js +1 -0
- package/dist/ripple/p-9859635f.entry.js +1 -0
- package/dist/ripple/{wm-modal.entry.js → p-9d8c5fb4.system.entry.js} +1 -133
- package/dist/ripple/p-9e7e5948.system.entry.js +1 -0
- package/dist/ripple/p-a02cdb4f.js +1 -0
- package/dist/ripple/p-a399fb79.entry.js +1 -0
- package/dist/ripple/p-a4c26c21.entry.js +1 -0
- package/dist/ripple/{wm-modal-pss-footer.entry.js → p-a685a5fa.entry.js} +1 -40
- package/dist/ripple/p-a70f8d7a.entry.js +1 -0
- package/dist/ripple/p-ac241e42.system.entry.js +1 -0
- package/dist/ripple/p-afa213ca.entry.js +1 -0
- package/dist/ripple/p-b1e4f8d0.entry.js +1 -0
- package/dist/ripple/p-b4a9a118.entry.js +1 -0
- package/dist/ripple/p-b73936b2.system.entry.js +1 -0
- package/dist/ripple/p-bb00a18f.js +1 -0
- package/dist/ripple/p-bbb37d6e.entry.js +1 -0
- package/dist/ripple/{wm-file.entry.js → p-c3ab1c4b.system.entry.js} +1 -182
- package/dist/ripple/p-cd0cc88d.entry.js +1 -0
- package/dist/ripple/{wm-nested-select.entry.js → p-cd5c59ef.system.entry.js} +1 -308
- package/dist/ripple/p-cef8a45b.system.js +2 -0
- package/dist/ripple/p-cf77cdd0.system.entry.js +1 -0
- package/dist/ripple/p-d1950a60.entry.js +1 -0
- package/dist/ripple/p-d4ac08de.system.entry.js +1 -0
- package/dist/ripple/p-d8f0c9b4.system.entry.js +1 -0
- package/dist/ripple/p-d9da0502.js +2 -0
- package/dist/ripple/p-dbd8a6c4.system.entry.js +1 -0
- package/dist/ripple/p-dc600a24.entry.js +1 -0
- package/dist/ripple/p-dc82b6d2.entry.js +1 -0
- package/dist/ripple/p-e12e6b00.system.entry.js +1 -0
- package/dist/ripple/p-e7ee2171.system.entry.js +1 -0
- package/dist/ripple/p-e8f5c8cd.entry.js +1 -0
- package/dist/ripple/{priv-navigator-item.entry.js → p-e9c4ed97.entry.js} +1 -30
- package/dist/ripple/p-ec4c1020.system.entry.js +1 -0
- package/dist/ripple/p-ee01e771.entry.js +1 -0
- package/dist/ripple/p-f2c40a23.system.entry.js +1 -0
- package/dist/ripple/p-f65448ac.entry.js +1 -0
- package/dist/ripple/p-feaa4c19.entry.js +1 -0
- package/dist/ripple/ripple.esm.js +1 -48
- package/dist/ripple/ripple.js +127 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -28
- package/package.json +12 -32
- package/LICENSE +0 -21
- 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/priv-calendar.entry.js +0 -566
- package/dist/ripple/priv-chart-popover.entry.js +0 -134
- package/dist/ripple/priv-navigator-button.entry.js +0 -24
- package/dist/ripple/wm-action-menu.entry.js +0 -201
- package/dist/ripple/wm-button.entry.js +0 -197
- package/dist/ripple/wm-date-range.entry.js +0 -477
- package/dist/ripple/wm-datepicker.entry.js +0 -247
- package/dist/ripple/wm-file-list.entry.js +0 -18
- package/dist/ripple/wm-line-chart.entry.js +0 -449
- package/dist/ripple/wm-modal-pss.entry.js +0 -135
- package/dist/ripple/wm-navigation-hamburger.entry.js +0 -48
- package/dist/ripple/wm-navigation.entry.js +0 -116
- package/dist/ripple/wm-pagination.entry.js +0 -223
- package/dist/ripple/wm-progress-indicator.entry.js +0 -107
- package/dist/ripple/wm-progress-slice.entry.js +0 -13
- package/dist/ripple/wm-snackbar.entry.js +0 -185
- package/dist/ripple/wm-tab-list.entry.js +0 -175
- package/dist/ripple/wm-tab-panel.entry.js +0 -32
- package/dist/ripple/wm-tag-input.entry.js +0 -877
- package/dist/ripple/wm-textarea.entry.js +0 -79
- package/dist/ripple/wm-timepicker.entry.js +0 -300
|
@@ -1,82 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const name = "@watermarkinsights/ripple";
|
|
4
|
-
const version = "5.12.0";
|
|
5
|
-
const description = "Ripple Component Library";
|
|
6
|
-
const module = "dist/index.js";
|
|
7
|
-
const main = "dist/index.cjs.js";
|
|
8
|
-
const types = "dist/types/components.d.ts";
|
|
9
|
-
const collection = "dist/collection/collection-manifest.json";
|
|
10
|
-
const files = [
|
|
11
|
-
"dist/"
|
|
12
|
-
];
|
|
13
|
-
const exports = {
|
|
14
|
-
".": {
|
|
15
|
-
"import": "./dist/ripple/ripple.esm.js",
|
|
16
|
-
require: "./dist/ripple/ripple.cjs.js",
|
|
17
|
-
types: "./dist/types/components.d.ts"
|
|
18
|
-
},
|
|
19
|
-
"./dist/components/*": {
|
|
20
|
-
"import": "./dist/components/*",
|
|
21
|
-
types: "./dist/components/*"
|
|
22
|
-
},
|
|
23
|
-
"./dist/types/*": {
|
|
24
|
-
types: "./dist/types/*"
|
|
25
|
-
},
|
|
26
|
-
"./dist/*": {
|
|
27
|
-
"import": "./dist/*",
|
|
28
|
-
types: "./dist/*"
|
|
29
|
-
},
|
|
30
|
-
"./components/*": {
|
|
31
|
-
"import": "./dist/components/*.js",
|
|
32
|
-
types: "./dist/components/*.d.ts"
|
|
33
|
-
},
|
|
34
|
-
"./loader": {
|
|
35
|
-
"import": "./loader/index.js",
|
|
36
|
-
require: "./loader/index.cjs",
|
|
37
|
-
types: "./loader/index.d.ts"
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
const scripts = {
|
|
41
|
-
build: "stencil build",
|
|
42
|
-
release: "bash ./scripts/release.sh",
|
|
43
|
-
start: "stencil build --dev --watch --serve",
|
|
44
|
-
test: "stencil test --spec --e2e",
|
|
45
|
-
"test.snapshot": "stencil test --spec --e2e -u",
|
|
46
|
-
"test.watch": "stencil test --spec --e2e --watch",
|
|
47
|
-
"test.watchAll": "stencil test --spec --e2e --watchAll",
|
|
48
|
-
"test.coverage": "stencil test --spec --coverage --collectCoverageFrom='src/**/*.{js,jsx,ts,tsx}'",
|
|
49
|
-
extract: "formatjs extract './src/global/intl.ts' './src/**/*.tsx' --out-file './src/lang/en.json' && node './src/lang/piglatin.js'",
|
|
50
|
-
compile: "formatjs compile-folder ./src/lang src/lang/compiled-lang/ --ast",
|
|
51
|
-
missing: "node ./src/lang/missing.js"
|
|
52
|
-
};
|
|
53
|
-
const dependencies = {
|
|
54
|
-
"@formatjs/intl": "^2.10.4"
|
|
55
|
-
};
|
|
56
|
-
const devDependencies = {
|
|
57
|
-
"@axe-core/puppeteer": "^4.9.1",
|
|
58
|
-
"@formatjs/cli": "^6.2.12",
|
|
59
|
-
"@stencil/core": "^4.20.0",
|
|
60
|
-
"@stencil/react-output-target": "^1.0.3",
|
|
61
|
-
"@stencil/sass": "^3.0.12",
|
|
62
|
-
"@types/jest": "^29.5.12",
|
|
63
|
-
jest: "^29.7.0"
|
|
64
|
-
};
|
|
65
|
-
var _package = {
|
|
66
|
-
name: name,
|
|
67
|
-
version: version,
|
|
68
|
-
description: description,
|
|
69
|
-
module: module,
|
|
70
|
-
main: main,
|
|
71
|
-
types: types,
|
|
72
|
-
collection: collection,
|
|
73
|
-
files: files,
|
|
74
|
-
exports: exports,
|
|
75
|
-
scripts: scripts,
|
|
76
|
-
dependencies: dependencies,
|
|
77
|
-
devDependencies: devDependencies
|
|
78
|
-
};
|
|
79
|
-
|
|
1
|
+
import { setMode } from "@stencil/core";
|
|
2
|
+
import { version } from "../../package.json";
|
|
80
3
|
// PRINT RIPPLE VERSION IN CONSOLE
|
|
81
4
|
// test envs return 0 for plugin.length
|
|
82
5
|
// do not print version number there as it causes issues
|
|
@@ -163,8 +86,3 @@ tooltipStyles.textContent = `
|
|
|
163
86
|
document.head.appendChild(tooltipStyles);
|
|
164
87
|
tooltipContainer.appendChild(tooltipEl);
|
|
165
88
|
document.querySelector("body").appendChild(tooltipContainer);
|
|
166
|
-
const globalFn = () => { };
|
|
167
|
-
|
|
168
|
-
const globalScripts = globalFn;
|
|
169
|
-
|
|
170
|
-
export { globalScripts as g };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//List of icon codes with more indicative descriptors to create labels for icon-only buttons
|
|
2
|
-
const iconLabels = {
|
|
2
|
+
export const iconLabels = {
|
|
3
3
|
f156: "Close",
|
|
4
4
|
f3eb: "Edit",
|
|
5
5
|
f739: "Cancel",
|
|
@@ -18,7 +18,7 @@ const iconLabels = {
|
|
|
18
18
|
f645: "Sort hierarchically",
|
|
19
19
|
f4bb: "Sort alphabetically",
|
|
20
20
|
};
|
|
21
|
-
function getIconCodeFromName(icon) {
|
|
21
|
+
export function getIconCodeFromName(icon) {
|
|
22
22
|
return iconCodes[icon] || icon;
|
|
23
23
|
}
|
|
24
24
|
const iconCodes = {
|
|
@@ -43,11 +43,9 @@ const iconCodes = {
|
|
|
43
43
|
"account-settings": "f630",
|
|
44
44
|
"backup-restore": "f06f",
|
|
45
45
|
};
|
|
46
|
-
const defaultMode = "planning";
|
|
47
|
-
const getWmMode = (ref) => {
|
|
46
|
+
export const defaultMode = "planning";
|
|
47
|
+
export const getWmMode = (ref) => {
|
|
48
48
|
return (ref.getAttribute("mode") ||
|
|
49
49
|
document.documentElement.getAttribute("mode") ||
|
|
50
50
|
defaultMode);
|
|
51
51
|
};
|
|
52
|
-
|
|
53
|
-
export { getIconCodeFromName as a, getWmMode as g };
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { intl } from "./functions";
|
|
2
|
+
export const globalMessages = {
|
|
3
|
+
characterLimitReached: intl.formatMessage({
|
|
4
|
+
id: "global.characterLimitReached",
|
|
5
|
+
defaultMessage: "No additional characters will be entered.",
|
|
6
|
+
description: "for screen readers",
|
|
7
|
+
}),
|
|
8
|
+
close: intl.formatMessage({
|
|
9
|
+
id: "global.closeVerb",
|
|
10
|
+
defaultMessage: "Close",
|
|
11
|
+
description: "For a button, to close a user interface element",
|
|
12
|
+
}),
|
|
13
|
+
genericError: intl.formatMessage({
|
|
14
|
+
id: "global.genericError",
|
|
15
|
+
defaultMessage: "An error occurred. Please try again.",
|
|
16
|
+
}),
|
|
17
|
+
hide: intl.formatMessage({
|
|
18
|
+
id: "global.hideVerb",
|
|
19
|
+
defaultMessage: "Hide",
|
|
20
|
+
description: "For a button, to hide something",
|
|
21
|
+
}),
|
|
22
|
+
locked: intl.formatMessage({
|
|
23
|
+
id: "global.locked",
|
|
24
|
+
defaultMessage: "locked",
|
|
25
|
+
description: "For an interactive element, indicating its state cannot be changed",
|
|
26
|
+
}),
|
|
27
|
+
newWindow: intl.formatMessage({
|
|
28
|
+
id: "global.newWindowLink",
|
|
29
|
+
defaultMessage: "Opens in a new window.",
|
|
30
|
+
description: "Indicates that a focused link will open in a new window",
|
|
31
|
+
}),
|
|
32
|
+
next: intl.formatMessage({
|
|
33
|
+
id: "global.next",
|
|
34
|
+
defaultMessage: "next",
|
|
35
|
+
description: "Button text, indicating an action leading to a 'next' state",
|
|
36
|
+
}),
|
|
37
|
+
open: intl.formatMessage({
|
|
38
|
+
id: "global.openVerb",
|
|
39
|
+
defaultMessage: "Open",
|
|
40
|
+
description: "For a button, to open a user interface element",
|
|
41
|
+
}),
|
|
42
|
+
previous: intl.formatMessage({
|
|
43
|
+
id: "global.previous",
|
|
44
|
+
defaultMessage: "previous",
|
|
45
|
+
description: "Button text, indicating an action leading to a 'previous' state",
|
|
46
|
+
}),
|
|
47
|
+
requiredError: intl.formatMessage({
|
|
48
|
+
id: "global.requiredError",
|
|
49
|
+
defaultMessage: "This field is required.",
|
|
50
|
+
description: "Error displayed under a required field when it has not been filled",
|
|
51
|
+
}),
|
|
52
|
+
requiredField: intl.formatMessage({
|
|
53
|
+
id: "global.requiredField",
|
|
54
|
+
defaultMessage: "required field",
|
|
55
|
+
description: "Screen reader text, indicating the currently focused field is required",
|
|
56
|
+
}),
|
|
57
|
+
show: intl.formatMessage({
|
|
58
|
+
id: "global.showVerb",
|
|
59
|
+
defaultMessage: "Show",
|
|
60
|
+
description: "For a button, to show something",
|
|
61
|
+
}),
|
|
62
|
+
// -------------------------------------------------------------------------- //
|
|
63
|
+
// Functions //
|
|
64
|
+
// -------------------------------------------------------------------------- //
|
|
65
|
+
getCharactersEntered: (charCount, charLimit) => intl.formatMessage({
|
|
66
|
+
id: "global.charactersEntered",
|
|
67
|
+
defaultMessage: "{x, number} of {y, number} characters entered.",
|
|
68
|
+
description: "for screen readers",
|
|
69
|
+
}, { x: charCount, y: charLimit }),
|
|
70
|
+
getCharacterLimit: (characterLimit) => intl.formatMessage({
|
|
71
|
+
id: "global.characterLimit",
|
|
72
|
+
defaultMessage: "{limit, number} characters allowed.",
|
|
73
|
+
description: "for screen readers",
|
|
74
|
+
}, { limit: characterLimit }),
|
|
75
|
+
};
|
|
76
|
+
export const uploaderMessages = {
|
|
77
|
+
duplicateName: intl.formatMessage({
|
|
78
|
+
id: "uploader.duplicateName",
|
|
79
|
+
defaultMessage: "A file with this name already exists.",
|
|
80
|
+
}),
|
|
81
|
+
fileLimitExceeded: intl.formatMessage({
|
|
82
|
+
id: "uploader.fileUploadLimitExceeded",
|
|
83
|
+
defaultMessage: "Upload unsuccessful because file selection would exceed the maximum number of files",
|
|
84
|
+
description: "Message displayed when trying to upload too many files",
|
|
85
|
+
}),
|
|
86
|
+
fileLimitReached: intl.formatMessage({
|
|
87
|
+
id: "uploader.fileUploadLimitReached",
|
|
88
|
+
defaultMessage: "The maximum number of files has been reached",
|
|
89
|
+
description: "Message displayed when trying to upload additional files, but the limit has been reached",
|
|
90
|
+
}),
|
|
91
|
+
finishedUploading: intl.formatMessage({
|
|
92
|
+
id: "uploader.finishedUploading",
|
|
93
|
+
defaultMessage: "Finished uploading",
|
|
94
|
+
}),
|
|
95
|
+
waitToUpload: intl.formatMessage({
|
|
96
|
+
id: "uploader.waitToUpload",
|
|
97
|
+
defaultMessage: "Please wait for current upload to complete before uploading new files.",
|
|
98
|
+
description: "Message for screen reader users",
|
|
99
|
+
}),
|
|
100
|
+
zeroFileSize: intl.formatMessage({
|
|
101
|
+
id: "uploader.zeroFileSize",
|
|
102
|
+
defaultMessage: "The file must be more than 0 bytes",
|
|
103
|
+
description: "Error message when user attempts to upload a file of no size",
|
|
104
|
+
}),
|
|
105
|
+
dropInstructions: intl.formatMessage({
|
|
106
|
+
id: "uploader.dropInstructions",
|
|
107
|
+
defaultMessage: "Browse or Drag Files Here",
|
|
108
|
+
description: "Instructions for how to choose files to upload",
|
|
109
|
+
}),
|
|
110
|
+
dropFile: intl.formatMessage({
|
|
111
|
+
id: "uploader.dropFile",
|
|
112
|
+
defaultMessage: "Drop to Upload",
|
|
113
|
+
description: "Prompt for use to drop the file they're currently dragging",
|
|
114
|
+
}),
|
|
115
|
+
fileRequirements: intl.formatMessage({
|
|
116
|
+
id: "uploader.fileRequirements",
|
|
117
|
+
defaultMessage: "File Requirements",
|
|
118
|
+
description: "Expandable button revealing the uploader's file requirements",
|
|
119
|
+
}),
|
|
120
|
+
// -------------------------------------------------------------------------- //
|
|
121
|
+
// Functions //
|
|
122
|
+
// -------------------------------------------------------------------------- //
|
|
123
|
+
getFilesAdded: (numFiles) => intl.formatMessage({
|
|
124
|
+
id: "uploader.filesAdded",
|
|
125
|
+
defaultMessage: "{numFiles, plural, one {1 file added} other {# files added}}",
|
|
126
|
+
}, { numFiles: numFiles }),
|
|
127
|
+
getFileCount: (fileListLength, maxFiles) => intl.formatMessage({
|
|
128
|
+
id: "uploader.fileCount",
|
|
129
|
+
defaultMessage: "{x} of {y} Files",
|
|
130
|
+
description: "A count of the number of files currently uploaded",
|
|
131
|
+
}, { x: fileListLength, y: maxFiles }),
|
|
132
|
+
getFileTooLarge: (maxSize) => intl.formatMessage({
|
|
133
|
+
id: "uploader.fileTooLarge",
|
|
134
|
+
defaultMessage: "The selected file is too large. Maximum file size is {size}",
|
|
135
|
+
}, { size: maxSize }),
|
|
136
|
+
getFilesUploading: (numFilesUploading) => intl.formatMessage({
|
|
137
|
+
id: "uploader.filesUploading",
|
|
138
|
+
defaultMessage: "{num, plural, one {1 file uploading} other {# files uploading}}",
|
|
139
|
+
}, { num: numFilesUploading }),
|
|
140
|
+
getInvalidFileType: (validTypes) => intl.formatMessage({
|
|
141
|
+
id: "uploader.invalidFileType",
|
|
142
|
+
defaultMessage: "The file type is invalid. Accepted types: {validTypes}",
|
|
143
|
+
}, { validTypes }),
|
|
144
|
+
getUploadProgress: (percentage) => intl.formatMessage({
|
|
145
|
+
id: "uploader.uploadProgress",
|
|
146
|
+
defaultMessage: "Upload progress: {percentage}%",
|
|
147
|
+
}, { percentage: percentage }),
|
|
148
|
+
};
|
|
149
|
+
export const chartMessages = {
|
|
150
|
+
interactiveChart: intl.formatMessage({
|
|
151
|
+
id: "chart.interactiveChart",
|
|
152
|
+
defaultMessage: "Interactive chart",
|
|
153
|
+
description: "For screen readers only, a description clarifying the role of the chart widget",
|
|
154
|
+
}),
|
|
155
|
+
};
|
|
156
|
+
export const lineChartMessages = {
|
|
157
|
+
instructions: intl.formatMessage({
|
|
158
|
+
id: "linechart.instructions",
|
|
159
|
+
defaultMessage: "Use Tab and arrow keys to browse elements.",
|
|
160
|
+
description: "For screen readers only, instructions on how to interact with the line chart component",
|
|
161
|
+
}),
|
|
162
|
+
noData: intl.formatMessage({
|
|
163
|
+
id: "linechart.noData",
|
|
164
|
+
defaultMessage: "No Data",
|
|
165
|
+
description: "Message displayed when a data point has missing data",
|
|
166
|
+
}),
|
|
167
|
+
highlightQualifier: intl.formatMessage({
|
|
168
|
+
id: "linechart.highlightQualifier",
|
|
169
|
+
defaultMessage: "highlighted",
|
|
170
|
+
description: "Descriptor for highlighted areas of a chart",
|
|
171
|
+
}),
|
|
172
|
+
// -------------------------------------------------------------------------- //
|
|
173
|
+
// Functions //
|
|
174
|
+
// -------------------------------------------------------------------------- //
|
|
175
|
+
getChangeSince: (prevXValue) => intl.formatMessage({
|
|
176
|
+
id: "linechart.changeSince",
|
|
177
|
+
defaultMessage: "Change since {time}",
|
|
178
|
+
description: "Indicates a comparison between current and previous data",
|
|
179
|
+
}, {
|
|
180
|
+
time: prevXValue,
|
|
181
|
+
}),
|
|
182
|
+
getToggleButtonLabel: (itemCount) => intl.formatMessage({
|
|
183
|
+
id: "linechart.toggleButtonLabel",
|
|
184
|
+
defaultMessage: "Toggle line visibility, list with {itemCount} items",
|
|
185
|
+
}, {
|
|
186
|
+
itemCount: itemCount,
|
|
187
|
+
}),
|
|
188
|
+
getToggleButtonState: (isPressed) => intl.formatMessage({
|
|
189
|
+
id: "linechart.toggleButtonState",
|
|
190
|
+
defaultMessage: "toggle {isPressed, select, true {pressed} other {}}",
|
|
191
|
+
description: "Descriptor and state for a toggle button UI element",
|
|
192
|
+
}, {
|
|
193
|
+
isPressed: isPressed,
|
|
194
|
+
}),
|
|
195
|
+
getLineFocusAnnouncement: (label, lineNumber, lineTotal, lineLength) => intl.formatMessage({
|
|
196
|
+
id: "linechart.getLineFocusAnnouncement",
|
|
197
|
+
defaultMessage: `{label}, line {lineNumber} of {lineTotal} with {lineLength} data points`,
|
|
198
|
+
}, {
|
|
199
|
+
label: label,
|
|
200
|
+
lineNumber: lineNumber,
|
|
201
|
+
lineTotal: lineTotal,
|
|
202
|
+
lineLength: lineLength,
|
|
203
|
+
}),
|
|
204
|
+
};
|
|
205
|
+
export const selectMessages = {
|
|
206
|
+
multiPlaceholder: intl.formatMessage({
|
|
207
|
+
id: "select.multiPlaceholder",
|
|
208
|
+
defaultMessage: "Make a selection",
|
|
209
|
+
}),
|
|
210
|
+
singlePlaceholder: intl.formatMessage({
|
|
211
|
+
id: "select.singlePlaceholder",
|
|
212
|
+
defaultMessage: "Select an Option",
|
|
213
|
+
}),
|
|
214
|
+
multiClearSelection: intl.formatMessage({
|
|
215
|
+
id: "select.multiClearSelection",
|
|
216
|
+
defaultMessage: "Clear all Selections",
|
|
217
|
+
description: "Clear as in remove. Use imperative",
|
|
218
|
+
}),
|
|
219
|
+
singleClearSelection: intl.formatMessage({
|
|
220
|
+
id: "select.singleClearSelection",
|
|
221
|
+
defaultMessage: "Clear Selection",
|
|
222
|
+
description: "Clear as in remove. Use imperative",
|
|
223
|
+
}),
|
|
224
|
+
selectionCleared: intl.formatMessage({
|
|
225
|
+
id: "select.selectionCleared",
|
|
226
|
+
defaultMessage: "Selection cleared",
|
|
227
|
+
}),
|
|
228
|
+
searchPlaceholder: intl.formatMessage({
|
|
229
|
+
id: "select.searchPlaceholder",
|
|
230
|
+
defaultMessage: "Search",
|
|
231
|
+
description: "Appears in a search field UI element",
|
|
232
|
+
}),
|
|
233
|
+
allSelected: intl.formatMessage({
|
|
234
|
+
id: "select.allSelected",
|
|
235
|
+
defaultMessage: "All selected",
|
|
236
|
+
description: "Indicates all possible options have been selected",
|
|
237
|
+
}),
|
|
238
|
+
selectAllMessage: intl.formatMessage({
|
|
239
|
+
id: "select.selectAll",
|
|
240
|
+
defaultMessage: "Select All",
|
|
241
|
+
}),
|
|
242
|
+
deselectAllMessage: intl.formatMessage({
|
|
243
|
+
id: "select.deselectAll",
|
|
244
|
+
defaultMessage: "Deselect All",
|
|
245
|
+
}),
|
|
246
|
+
allOptionsSelectedMessage: intl.formatMessage({
|
|
247
|
+
id: "select.allOptionsSelected",
|
|
248
|
+
defaultMessage: "All options selected",
|
|
249
|
+
}),
|
|
250
|
+
allOptionsDeselectedMessage: intl.formatMessage({
|
|
251
|
+
id: "select.allOptionsDeselected",
|
|
252
|
+
defaultMessage: "All options deselected",
|
|
253
|
+
}),
|
|
254
|
+
noSearchResults: intl.formatMessage({
|
|
255
|
+
id: "select.noSearchResults",
|
|
256
|
+
defaultMessage: "No results found. Please try your search again.",
|
|
257
|
+
}),
|
|
258
|
+
optgroupSingleSelectionCount: () => intl.formatMessage({
|
|
259
|
+
id: "select.optgroupSingleSelectionCount",
|
|
260
|
+
defaultMessage: "Item Selected",
|
|
261
|
+
description: "Item refers to an option in a list",
|
|
262
|
+
}),
|
|
263
|
+
// -------------------------------------------------------------------------- //
|
|
264
|
+
// Functions //
|
|
265
|
+
// -------------------------------------------------------------------------- //
|
|
266
|
+
getOptgroupMultipleSelectionCount: (selectionCount) => intl.formatMessage({
|
|
267
|
+
id: "select.optgroupMultipleSelectionCount",
|
|
268
|
+
defaultMessage: "{numberSelected} selected",
|
|
269
|
+
}, { numberSelected: selectionCount }),
|
|
270
|
+
getSearchResultsFound: (numResults) => intl.formatMessage({
|
|
271
|
+
id: "select.searchResultsFound",
|
|
272
|
+
defaultMessage: "{numberResults, plural, one {1 option found} other {# options found}}",
|
|
273
|
+
}, { numberResults: numResults }),
|
|
274
|
+
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
const state = [
|
|
2
|
+
{
|
|
3
|
+
uuid: "d57a8104-a07e-4e58-97f6-705d55b15845",
|
|
4
|
+
uploader_member_uuid: "fd947ce1-ca75-4b88-ba47-4576104cf845",
|
|
5
|
+
updated_at: "2018-04-16T10:31:48.740000Z",
|
|
6
|
+
organization_uuid: "d57a8104-a07e-4e58-97f6-705d55b15845",
|
|
7
|
+
mime_type: "application/pdf",
|
|
8
|
+
institution_uuid: "c1dac227-b71c-44ae-a4be-eb20929c6e99",
|
|
9
|
+
inserted_at: "2018-09-17T09:33:45.550000Z",
|
|
10
|
+
file_path: "bogusurl.dev",
|
|
11
|
+
file_name: "test.pdf",
|
|
12
|
+
course_uuid: null,
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
uuid: "410ee9ed-af53-4f52-90b1-bf3f054ad86b",
|
|
16
|
+
uploader_member_uuid: "fd947ce1-ca75-4b88-ba47-4576104cf845",
|
|
17
|
+
updated_at: "2019-11-26T20:39:38.990000Z",
|
|
18
|
+
organization_uuid: "8d242cdf-4261-4003-9a91-45575eb7d44e",
|
|
19
|
+
mime_type: "application/pdf",
|
|
20
|
+
institution_uuid: "c1dac227-b71c-44ae-a4be-eb20929c6e99",
|
|
21
|
+
inserted_at: "2019-11-26T20:39:38.990000Z",
|
|
22
|
+
file_path: "anotherbogusurl.dev",
|
|
23
|
+
file_name: "brochure.pdf",
|
|
24
|
+
course_uuid: null,
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
const firstUploadResponseText = {
|
|
28
|
+
url: "aws-path.url",
|
|
29
|
+
updated_at: "2019-07-03T14:11:08.000Z",
|
|
30
|
+
path: "",
|
|
31
|
+
guid: "12345",
|
|
32
|
+
};
|
|
33
|
+
const secondUploadResponseText = {
|
|
34
|
+
url: "aws-path.url",
|
|
35
|
+
updated_at: "2019-07-02T10:14:29.000Z",
|
|
36
|
+
path: "",
|
|
37
|
+
guid: "67890",
|
|
38
|
+
};
|
|
39
|
+
const navigatorResponse = {
|
|
40
|
+
connection_name: "watermarkinsights-idp-qa",
|
|
41
|
+
current_product_id: "dm",
|
|
42
|
+
email: "user@email.net",
|
|
43
|
+
logout_url: "localhost:3333/logout",
|
|
44
|
+
products: [
|
|
45
|
+
{
|
|
46
|
+
description: "Some Aqua description",
|
|
47
|
+
iconUrl: "https://cdn.watermarkinsights.com/images/login/aqua.svg",
|
|
48
|
+
id: "aqua",
|
|
49
|
+
linkUrl: "https://aqua.taskstream.com/sso/login",
|
|
50
|
+
name: "Aqua",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
description: "Some Digital Measures description",
|
|
54
|
+
iconUrl: "https://cdn.watermarkinsights.com/images/login/digitalmeasures.svg",
|
|
55
|
+
id: "dm",
|
|
56
|
+
linkUrl: "https://www.digitalmeasures.com/login/sso/authenticate",
|
|
57
|
+
name: "Digital Measures",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
description: "Some Planning description",
|
|
61
|
+
iconUrl: "https://cdn.watermarkinsights.com/images/login/planningselfstudy.svg",
|
|
62
|
+
id: "planning",
|
|
63
|
+
linkUrl: "https://planning.watermarkinsights.com/login/sso",
|
|
64
|
+
name: "Planning",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
description: "Checking that the component handles anything throwed at it",
|
|
68
|
+
iconUrl: "https://cdn.watermarkinsights.com/images/login/livetext.svg",
|
|
69
|
+
id: "something_bonkers",
|
|
70
|
+
linkUrl: "https://planning.watermarkinsights.com/login/sso",
|
|
71
|
+
name: "Bonkers",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
description: "c1 = livetext",
|
|
75
|
+
iconUrl: "https://cdn.watermarkinsights.com/images/login/livetext.svg",
|
|
76
|
+
id: "c1",
|
|
77
|
+
linkUrl: "https://livetext.fakeurl/login/sso",
|
|
78
|
+
name: "Livetext",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
description: "something with an id containing admin",
|
|
82
|
+
iconUrl: "not.important",
|
|
83
|
+
id: "banana_admin_shoe",
|
|
84
|
+
linkUrl: "irrelevant",
|
|
85
|
+
name: "Platform Admin",
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
};
|
|
89
|
+
const responses = {
|
|
90
|
+
"get-path.url": state,
|
|
91
|
+
"request-upload-path.url0": firstUploadResponseText,
|
|
92
|
+
"request-upload-path.url1": secondUploadResponseText,
|
|
93
|
+
"/platform/navigator/userinfo": navigatorResponse,
|
|
94
|
+
};
|
|
95
|
+
export const getRequest = async (url) => {
|
|
96
|
+
return Promise.resolve(responses[url]);
|
|
97
|
+
};
|
|
98
|
+
export const postRequest = async (url, payload) => {
|
|
99
|
+
switch (url) {
|
|
100
|
+
case "upload-path.url":
|
|
101
|
+
state.push({
|
|
102
|
+
uuid: payload.document_uuid,
|
|
103
|
+
uploader_member_uuid: "fd947ce1-ca75-4b88-ba47-4576104cf845",
|
|
104
|
+
updated_at: "2019-12-10T20:48:10.138Z",
|
|
105
|
+
organization_uuid: payload.organization_uuid,
|
|
106
|
+
mime_type: payload.mime_type,
|
|
107
|
+
institution_uuid: "c1dac227-b71c-44ae-a4be-eb20929c6e99",
|
|
108
|
+
inserted_at: "2019-12-10T20:48:10.138Z",
|
|
109
|
+
file_path: payload.file_path,
|
|
110
|
+
file_name: payload.file_name,
|
|
111
|
+
course_uuid: null,
|
|
112
|
+
});
|
|
113
|
+
return Promise.resolve();
|
|
114
|
+
case "request-download-path.url":
|
|
115
|
+
return Promise.resolve({ url: "aws-download-path.url" });
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
export const deleteRequest = async (url) => {
|
|
119
|
+
const uuid = url.split("/").pop();
|
|
120
|
+
// console.log("uuid: ", uuid);
|
|
121
|
+
const index = state.findIndex((i) => i.uuid === uuid);
|
|
122
|
+
// console.log("index: ", index);
|
|
123
|
+
state.splice(index, 1);
|
|
124
|
+
// console.log("state from DELETE: ", state, Date.now());
|
|
125
|
+
// return new Promise(resolve => setTimeout(() => resolve(), 300));
|
|
126
|
+
return Promise.resolve();
|
|
127
|
+
};
|
|
128
|
+
export const putRequest = (_url, _file) => {
|
|
129
|
+
return Promise.resolve();
|
|
130
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export const getRequest = async (url) => {
|
|
2
|
+
const response = await fetch(url);
|
|
3
|
+
if (!!response && !!response.ok) {
|
|
4
|
+
return await response.json();
|
|
5
|
+
}
|
|
6
|
+
else {
|
|
7
|
+
throw new Error(response.statusText);
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
export const postRequest = async (url, payload) => {
|
|
11
|
+
const response = await fetch(url, {
|
|
12
|
+
method: "POST",
|
|
13
|
+
headers: { "Content-Type": "application/json; charset=utf-8" },
|
|
14
|
+
body: JSON.stringify(payload),
|
|
15
|
+
});
|
|
16
|
+
if (!!response && !!response.ok) {
|
|
17
|
+
return await response.json();
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error(response.statusText);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
export const deleteRequest = async (url) => {
|
|
24
|
+
const response = await fetch(url, { method: "DELETE" });
|
|
25
|
+
if (!!response && !!response.ok) {
|
|
26
|
+
return await response.json();
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
throw new Error(response.statusText);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
export const putRequest = (url, file, onProgress) => {
|
|
33
|
+
return new Promise((resolve, reject) => {
|
|
34
|
+
// there's no way to track progress with the fetch API, so using XHR
|
|
35
|
+
const req = new XMLHttpRequest();
|
|
36
|
+
req.upload.addEventListener("progress", (ev) => onProgress(ev));
|
|
37
|
+
req.addEventListener("readystatechange", function () {
|
|
38
|
+
if (this.readyState === 4 && this.status === 200) {
|
|
39
|
+
resolve(this);
|
|
40
|
+
}
|
|
41
|
+
else if (this.readyState === 4 && this.status !== 200) {
|
|
42
|
+
reject();
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
req.onerror = () => reject();
|
|
46
|
+
req.open("PUT", url, true);
|
|
47
|
+
req.setRequestHeader("Content-Disposition", `attachment;filename="${file.name}"`);
|
|
48
|
+
req.send(file);
|
|
49
|
+
});
|
|
50
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* This script is useful when we translate internally, so we know which keys to translate.
|
|
2
|
+
* Currently Martin Maugeais translates to French and Kristian Manrique to Spanish.
|
|
3
|
+
* This script should be run with `npm run missing`. It may fail otherwise, as fs paths are relative to project root.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
const fs = require("fs");
|
|
7
|
+
const en = require("./en.json");
|
|
8
|
+
const fr = require("./fr.json");
|
|
9
|
+
const es = require("./es.json");
|
|
10
|
+
|
|
11
|
+
const keys = Object.keys(en);
|
|
12
|
+
|
|
13
|
+
let missingFR = {};
|
|
14
|
+
let missingES = {};
|
|
15
|
+
|
|
16
|
+
keys.map((key) => {
|
|
17
|
+
if (!fr[key]) {
|
|
18
|
+
missingFR[key] = en[key];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (!es[key]) {
|
|
22
|
+
missingES[key] = en[key];
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
const dataFR = JSON.stringify(missingFR, null, 2);
|
|
27
|
+
const dataES = JSON.stringify(missingES, null, 2);
|
|
28
|
+
|
|
29
|
+
const totalMissingFR = Object.entries(missingFR).length;
|
|
30
|
+
if (totalMissingFR > 0) {
|
|
31
|
+
fs.writeFile("src/lang/missingTranslationsFR.json", dataFR, (err) => {
|
|
32
|
+
!!err && console.log(err);
|
|
33
|
+
});
|
|
34
|
+
console.log(`${totalMissingFR} french translations missing. See src/lang/missingTranslationsFR.json`);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const totalMissingES = Object.entries(missingES).length;
|
|
38
|
+
if (totalMissingES > 0) {
|
|
39
|
+
fs.writeFile("src/lang/missingTranslationsES.json", dataES, (err) => {
|
|
40
|
+
!!err && console.log(err);
|
|
41
|
+
});
|
|
42
|
+
console.log(`${totalMissingES} spanish translations missing. See src/lang/missingTranslationsES.json`);
|
|
43
|
+
}
|