@watermarkinsights/ripple 5.12.0-9 → 5.13.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/LICENSE +21 -0
- package/README.md +1 -1
- package/dist/{esm/chartFunctions-1478f4db.js → components/chartFunctions.js} +31 -11
- package/dist/components/functions.js +17465 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/{collection/global/global.js → components/index.js} +52 -2
- package/dist/{collection/global → components}/interfaces.js +6 -4
- package/dist/{esm/intl-6426ba51.js → components/intl.js} +104 -2
- package/dist/components/priv-calendar.d.ts +11 -0
- package/dist/components/priv-calendar.js +6 -0
- package/dist/{esm/priv-calendar.entry.js → components/priv-calendar2.js} +38 -16
- package/dist/components/priv-chart-popover.d.ts +11 -0
- package/dist/components/priv-chart-popover.js +6 -0
- package/dist/{esm/priv-chart-popover.entry.js → components/priv-chart-popover2.js} +30 -12
- package/dist/components/priv-navigator-button.d.ts +11 -0
- package/dist/components/priv-navigator-button.js +6 -0
- package/dist/{esm/priv-navigator-button.entry.js → components/priv-navigator-button2.js} +26 -9
- package/dist/components/priv-navigator-item.d.ts +11 -0
- package/dist/components/priv-navigator-item.js +6 -0
- package/dist/{esm/priv-navigator-item.entry.js → components/priv-navigator-item2.js} +27 -9
- package/dist/components/priv-option-list.d.ts +11 -0
- package/dist/components/priv-option-list.js +6 -0
- package/dist/{esm/priv-option-list.entry.js → components/priv-option-list2.js} +63 -68
- package/dist/components/wm-action-menu.d.ts +11 -0
- package/dist/components/wm-action-menu.js +6 -0
- package/dist/{cjs/wm-pagination.cjs.entry.js → components/wm-action-menu2.js} +216 -161
- package/dist/components/wm-button.d.ts +11 -0
- package/dist/components/wm-button.js +6 -0
- package/dist/{esm/wm-button.entry.js → components/wm-button2.js} +48 -20
- package/dist/components/wm-chart-slice.d.ts +11 -0
- package/dist/components/wm-chart-slice.js +41 -0
- package/dist/components/wm-chart.d.ts +11 -0
- package/dist/{esm/wm-chart.entry.js → components/wm-chart.js} +70 -25
- package/dist/components/wm-date-range.d.ts +11 -0
- package/dist/{esm/wm-date-range.entry.js → components/wm-date-range.js} +79 -26
- package/dist/components/wm-datepicker.d.ts +11 -0
- package/dist/{esm/wm-datepicker.entry.js → components/wm-datepicker.js} +53 -16
- package/dist/components/wm-file-list.d.ts +11 -0
- package/dist/{esm/wm-file-list.entry.js → components/wm-file-list.js} +28 -9
- package/dist/components/wm-file.d.ts +11 -0
- package/dist/{esm/wm-file.entry.js → components/wm-file.js} +58 -20
- package/dist/components/wm-input.d.ts +11 -0
- package/dist/{esm/wm-input.entry.js → components/wm-input.js} +53 -22
- package/dist/components/wm-line-chart.d.ts +11 -0
- package/dist/{esm/wm-line-chart.entry.js → components/wm-line-chart.js} +77 -36
- package/dist/components/wm-menuitem.d.ts +11 -0
- package/dist/components/wm-menuitem.js +6 -0
- package/dist/{cjs/wm-optgroup.cjs.entry.js → components/wm-menuitem2.js} +130 -58
- package/dist/components/wm-modal-footer.d.ts +11 -0
- package/dist/components/wm-modal-footer.js +73 -0
- package/dist/components/wm-modal-header.d.ts +11 -0
- package/dist/components/wm-modal-header.js +61 -0
- package/dist/components/wm-modal-pss-footer.d.ts +11 -0
- package/dist/{cjs/priv-chart-popover.cjs.entry.js → components/wm-modal-pss-footer.js} +58 -129
- package/dist/components/wm-modal-pss-header.d.ts +11 -0
- package/dist/components/wm-modal-pss-header.js +64 -0
- package/dist/components/wm-modal-pss.d.ts +11 -0
- package/dist/{cjs/wm-textarea.cjs.entry.js → components/wm-modal-pss.js} +141 -67
- package/dist/components/wm-modal.d.ts +11 -0
- package/dist/{cjs/wm-input.cjs.entry.js → components/wm-modal.js} +140 -104
- package/dist/components/wm-navigation-hamburger.d.ts +11 -0
- package/dist/{esm-es5/priv-chart-popover.entry.js → components/wm-navigation-hamburger.js} +70 -1
- package/dist/components/wm-navigation-item.d.ts +11 -0
- package/dist/{ripple/p-713ea307.entry.js → components/wm-navigation-item.js} +40 -1
- package/dist/components/wm-navigation.d.ts +11 -0
- package/dist/{ripple/p-165b5d3d.system.entry.js → components/wm-navigation.js} +144 -1
- package/dist/components/wm-navigator.d.ts +11 -0
- package/dist/{esm/wm-navigator.entry.js → components/wm-navigator.js} +106 -19
- package/dist/components/wm-nested-select.d.ts +11 -0
- package/dist/{esm/wm-nested-select.entry.js → components/wm-nested-select.js} +63 -70
- package/dist/components/wm-optgroup.d.ts +11 -0
- package/dist/{esm/wm-optgroup.entry.js → components/wm-optgroup.js} +48 -11
- package/dist/components/wm-option.d.ts +11 -0
- package/dist/components/wm-option.js +6 -0
- package/dist/{cjs/wm-search.cjs.entry.js → components/wm-option2.js} +168 -166
- package/dist/components/wm-pagination.d.ts +11 -0
- package/dist/{esm/wm-pagination.entry.js → components/wm-pagination.js} +105 -26
- package/dist/components/wm-progress-indicator.d.ts +11 -0
- package/dist/{esm/wm-progress-indicator_3.entry.js → components/wm-progress-indicator.js} +51 -105
- package/dist/components/wm-progress-monitor.d.ts +11 -0
- package/dist/{ripple/p-d530c703.entry.js → components/wm-progress-monitor.js} +93 -1
- package/dist/components/wm-progress-slice.d.ts +11 -0
- package/dist/components/wm-progress-slice.js +37 -0
- package/dist/components/wm-search.d.ts +11 -0
- package/dist/{esm/wm-search.entry.js → components/wm-search.js} +74 -14
- package/dist/components/wm-select.d.ts +11 -0
- package/dist/components/wm-select.js +6 -0
- package/dist/components/wm-select2.js +294 -0
- package/dist/components/wm-snackbar.d.ts +11 -0
- package/dist/{esm/wm-snackbar.entry.js → components/wm-snackbar.js} +46 -17
- package/dist/components/wm-tab-item.d.ts +11 -0
- package/dist/components/wm-tab-item.js +85 -0
- package/dist/components/wm-tab-list.d.ts +11 -0
- package/dist/{cjs/wm-uploader.cjs.entry.js → components/wm-tab-list.js} +174 -282
- package/dist/components/wm-tab-panel.d.ts +11 -0
- package/dist/{cjs/wm-file-list.cjs.entry.js → components/wm-tab-panel.js} +46 -17
- package/dist/components/wm-tag-input.d.ts +11 -0
- package/dist/{esm/wm-tag-input.entry.js → components/wm-tag-input.js} +86 -49
- package/dist/components/wm-tag-option.d.ts +11 -0
- package/dist/components/wm-tag-option.js +63 -0
- package/dist/components/wm-textarea.d.ts +11 -0
- package/dist/{esm/wm-textarea.entry.js → components/wm-textarea.js} +46 -17
- package/dist/components/wm-timepicker.d.ts +11 -0
- package/dist/{esm/wm-timepicker.entry.js → components/wm-timepicker.js} +49 -19
- package/dist/components/wm-toggletip.d.ts +11 -0
- package/dist/{esm/wm-toggletip.entry.js → components/wm-toggletip.js} +37 -16
- package/dist/components/wm-uploader.d.ts +11 -0
- package/dist/{esm/wm-uploader.entry.js → components/wm-uploader.js} +50 -23
- package/dist/components/wm-wrapper.d.ts +11 -0
- package/dist/components/wm-wrapper.js +34 -0
- package/dist/types/components/selects/priv-option-list/priv-option-list.d.ts +0 -6
- package/dist/types/components/wm-pagination/wm-pagination.d.ts +6 -0
- package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +1 -0
- package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +1 -0
- package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +2 -1
- package/dist/types/global/intl.d.ts +22 -0
- package/dist/types/stencil-public-runtime.d.ts +28 -0
- package/package.json +5 -9
- package/dist/cjs/app-globals-b8352f28.js +0 -92
- package/dist/cjs/chartFunctions-7314b414.js +0 -712
- package/dist/cjs/functions-5ac8a62f.js +0 -8462
- package/dist/cjs/index-788526f5.js +0 -1859
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/interfaces-85d78ae9.js +0 -37
- package/dist/cjs/intl-07aaf53c.js +0 -180
- package/dist/cjs/loader.cjs.js +0 -15
- package/dist/cjs/priv-calendar.cjs.entry.js +0 -574
- package/dist/cjs/priv-navigator-button.cjs.entry.js +0 -29
- package/dist/cjs/priv-navigator-item.cjs.entry.js +0 -35
- package/dist/cjs/priv-option-list.cjs.entry.js +0 -430
- package/dist/cjs/ripple.cjs.js +0 -25
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +0 -335
- package/dist/cjs/wm-button.cjs.entry.js +0 -207
- package/dist/cjs/wm-chart-slice.cjs.entry.js +0 -27
- package/dist/cjs/wm-chart.cjs.entry.js +0 -156
- package/dist/cjs/wm-date-range.cjs.entry.js +0 -473
- package/dist/cjs/wm-datepicker.cjs.entry.js +0 -254
- package/dist/cjs/wm-file.cjs.entry.js +0 -194
- package/dist/cjs/wm-line-chart.cjs.entry.js +0 -460
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +0 -217
- package/dist/cjs/wm-modal_3.cjs.entry.js +0 -215
- package/dist/cjs/wm-navigation_3.cjs.entry.js +0 -188
- package/dist/cjs/wm-navigator.cjs.entry.js +0 -327
- package/dist/cjs/wm-nested-select.cjs.entry.js +0 -354
- package/dist/cjs/wm-option_2.cjs.entry.js +0 -439
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +0 -204
- package/dist/cjs/wm-snackbar.cjs.entry.js +0 -177
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +0 -258
- package/dist/cjs/wm-tag-input.cjs.entry.js +0 -886
- package/dist/cjs/wm-tag-option.cjs.entry.js +0 -43
- package/dist/cjs/wm-timepicker.cjs.entry.js +0 -307
- package/dist/cjs/wm-toggletip.cjs.entry.js +0 -183
- package/dist/cjs/wm-wrapper.cjs.entry.js +0 -21
- package/dist/collection/collection-manifest.json +0 -191
- package/dist/collection/components/charts/chartFunctions.js +0 -645
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +0 -908
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +0 -257
- package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +0 -125
- package/dist/collection/components/charts/wm-chart/wm-chart.css +0 -1274
- package/dist/collection/components/charts/wm-chart/wm-chart.js +0 -415
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.css +0 -1067
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +0 -722
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.css +0 -1274
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +0 -264
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.css +0 -909
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +0 -151
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +0 -121
- package/dist/collection/components/datepickers/datepicker.css +0 -1043
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +0 -1279
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +0 -840
- package/dist/collection/components/datepickers/wm-date-range.js +0 -838
- package/dist/collection/components/datepickers/wm-datepicker.js +0 -524
- package/dist/collection/components/selects/priv-option-list/priv-option-list.css +0 -918
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +0 -817
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +0 -1181
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +0 -659
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +0 -830
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +0 -258
- package/dist/collection/components/selects/wm-option/wm-option.css +0 -931
- package/dist/collection/components/selects/wm-option/wm-option.js +0 -530
- package/dist/collection/components/selects/wm-select/wm-select.css +0 -1104
- package/dist/collection/components/selects/wm-select/wm-select.js +0 -596
- package/dist/collection/components/wm-action-menu/wm-action-menu.css +0 -891
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +0 -435
- package/dist/collection/components/wm-button/wm-button.css +0 -1261
- package/dist/collection/components/wm-button/wm-button.js +0 -489
- package/dist/collection/components/wm-file/wm-file.css +0 -927
- package/dist/collection/components/wm-file/wm-file.js +0 -412
- package/dist/collection/components/wm-file-list/wm-file-list.css +0 -820
- package/dist/collection/components/wm-file-list/wm-file-list.js +0 -45
- package/dist/collection/components/wm-input/wm-input.css +0 -992
- package/dist/collection/components/wm-input/wm-input.js +0 -471
- package/dist/collection/components/wm-menuitem/wm-menuitem.css +0 -891
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +0 -419
- package/dist/collection/components/wm-modal/wm-modal-footer.css +0 -852
- package/dist/collection/components/wm-modal/wm-modal-footer.js +0 -141
- package/dist/collection/components/wm-modal/wm-modal-header.css +0 -846
- package/dist/collection/components/wm-modal/wm-modal-header.js +0 -78
- package/dist/collection/components/wm-modal/wm-modal.css +0 -890
- package/dist/collection/components/wm-modal/wm-modal.js +0 -350
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.css +0 -852
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +0 -138
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.css +0 -846
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +0 -82
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.css +0 -927
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +0 -362
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +0 -847
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +0 -119
- package/dist/collection/components/wm-navigation/wm-navigation-item.css +0 -856
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +0 -98
- package/dist/collection/components/wm-navigation/wm-navigation.css +0 -898
- package/dist/collection/components/wm-navigation/wm-navigation.js +0 -190
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +0 -849
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +0 -86
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +0 -830
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +0 -124
- package/dist/collection/components/wm-navigator/wm-navigator.css +0 -903
- package/dist/collection/components/wm-navigator/wm-navigator.js +0 -496
- package/dist/collection/components/wm-pagination/wm-pagination.css +0 -971
- package/dist/collection/components/wm-pagination/wm-pagination.js +0 -311
- package/dist/collection/components/wm-search/wm-search.css +0 -895
- package/dist/collection/components/wm-search/wm-search.js +0 -427
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +0 -1077
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +0 -264
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +0 -868
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +0 -175
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +0 -840
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +0 -268
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +0 -825
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +0 -87
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +0 -1275
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +0 -1221
- package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +0 -243
- package/dist/collection/components/wm-textarea/wm-textarea.css +0 -979
- package/dist/collection/components/wm-textarea/wm-textarea.js +0 -313
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +0 -1093
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +0 -547
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +0 -1153
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +0 -289
- package/dist/collection/components/wm-uploader/wm-uploader.css +0 -1563
- package/dist/collection/components/wm-uploader/wm-uploader.js +0 -603
- package/dist/collection/components/wm-wrapper/wm-wrapper.js +0 -28
- package/dist/collection/dev/button.js +0 -0
- package/dist/collection/dev/chart-small.js +0 -56
- package/dist/collection/dev/chart.js +0 -18
- package/dist/collection/dev/date-range.js +0 -6
- package/dist/collection/dev/datepicker.js +0 -46
- package/dist/collection/dev/file-list.js +0 -16
- package/dist/collection/dev/file.js +0 -0
- package/dist/collection/dev/input.js +0 -6
- package/dist/collection/dev/line-chart.js +0 -0
- package/dist/collection/dev/modal.js +0 -48
- package/dist/collection/dev/navigation.js +0 -13
- package/dist/collection/dev/navigator.js +0 -34
- package/dist/collection/dev/nested-select.js +0 -36
- package/dist/collection/dev/pagination.js +0 -7
- package/dist/collection/dev/progress-monitor.js +0 -0
- package/dist/collection/dev/pss-modal.js +0 -8
- package/dist/collection/dev/scripts.js +0 -49
- package/dist/collection/dev/search.js +0 -72
- package/dist/collection/dev/select.js +0 -57
- package/dist/collection/dev/snackbar.js +0 -54
- package/dist/collection/dev/tabs.js +0 -44
- package/dist/collection/dev/tag-input.js +0 -32
- package/dist/collection/dev/textarea.js +0 -28
- package/dist/collection/dev/timepicker.js +0 -32
- package/dist/collection/dev/toggletip.js +0 -9
- package/dist/collection/dev/uploader.js +0 -139
- package/dist/collection/global/__mocks__/functions.js +0 -6
- package/dist/collection/global/functions.js +0 -825
- package/dist/collection/global/intl.js +0 -172
- package/dist/collection/global/services/__mocks__/http-service.js +0 -130
- package/dist/collection/global/services/http-service.js +0 -50
- package/dist/collection/lang/lang.js +0 -5
- package/dist/collection/lang/missing.js +0 -43
- package/dist/collection/lang/piglatin.js +0 -93
- package/dist/esm/app-globals-f3dbaf3e.js +0 -90
- package/dist/esm/functions-f53b3537.js +0 -8422
- package/dist/esm/index-130e07bb.js +0 -1828
- package/dist/esm/index.js +0 -1
- package/dist/esm/interfaces-cc5b177f.js +0 -34
- package/dist/esm/loader.js +0 -11
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/ripple.js +0 -20
- package/dist/esm/wm-action-menu_2.entry.js +0 -330
- package/dist/esm/wm-chart-slice.entry.js +0 -23
- package/dist/esm/wm-modal-pss_3.entry.js +0 -211
- package/dist/esm/wm-modal_3.entry.js +0 -209
- package/dist/esm/wm-navigation_3.entry.js +0 -182
- package/dist/esm/wm-option_2.entry.js +0 -434
- package/dist/esm/wm-tab-item_3.entry.js +0 -252
- package/dist/esm/wm-tag-option.entry.js +0 -39
- package/dist/esm/wm-wrapper.entry.js +0 -17
- package/dist/esm-es5/app-globals-f3dbaf3e.js +0 -1
- package/dist/esm-es5/chartFunctions-1478f4db.js +0 -1
- package/dist/esm-es5/functions-f53b3537.js +0 -1
- package/dist/esm-es5/index-130e07bb.js +0 -1
- package/dist/esm-es5/index.js +0 -0
- package/dist/esm-es5/interfaces-cc5b177f.js +0 -1
- package/dist/esm-es5/intl-6426ba51.js +0 -1
- package/dist/esm-es5/loader.js +0 -1
- package/dist/esm-es5/priv-calendar.entry.js +0 -1
- package/dist/esm-es5/priv-navigator-button.entry.js +0 -1
- package/dist/esm-es5/priv-navigator-item.entry.js +0 -1
- package/dist/esm-es5/priv-option-list.entry.js +0 -1
- package/dist/esm-es5/ripple.js +0 -1
- package/dist/esm-es5/wm-action-menu_2.entry.js +0 -1
- package/dist/esm-es5/wm-button.entry.js +0 -1
- package/dist/esm-es5/wm-chart-slice.entry.js +0 -1
- package/dist/esm-es5/wm-chart.entry.js +0 -1
- package/dist/esm-es5/wm-date-range.entry.js +0 -1
- package/dist/esm-es5/wm-datepicker.entry.js +0 -1
- package/dist/esm-es5/wm-file-list.entry.js +0 -1
- package/dist/esm-es5/wm-file.entry.js +0 -1
- package/dist/esm-es5/wm-input.entry.js +0 -1
- package/dist/esm-es5/wm-line-chart.entry.js +0 -1
- package/dist/esm-es5/wm-modal-pss_3.entry.js +0 -1
- package/dist/esm-es5/wm-modal_3.entry.js +0 -1
- package/dist/esm-es5/wm-navigation_3.entry.js +0 -1
- package/dist/esm-es5/wm-navigator.entry.js +0 -1
- package/dist/esm-es5/wm-nested-select.entry.js +0 -1
- package/dist/esm-es5/wm-optgroup.entry.js +0 -1
- package/dist/esm-es5/wm-option_2.entry.js +0 -1
- package/dist/esm-es5/wm-pagination.entry.js +0 -1
- package/dist/esm-es5/wm-progress-indicator_3.entry.js +0 -1
- package/dist/esm-es5/wm-search.entry.js +0 -1
- package/dist/esm-es5/wm-snackbar.entry.js +0 -1
- package/dist/esm-es5/wm-tab-item_3.entry.js +0 -1
- package/dist/esm-es5/wm-tag-input.entry.js +0 -1
- package/dist/esm-es5/wm-tag-option.entry.js +0 -1
- package/dist/esm-es5/wm-textarea.entry.js +0 -1
- package/dist/esm-es5/wm-timepicker.entry.js +0 -1
- package/dist/esm-es5/wm-toggletip.entry.js +0 -1
- package/dist/esm-es5/wm-uploader.entry.js +0 -1
- package/dist/esm-es5/wm-wrapper.entry.js +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/loader/cdn.js +0 -2
- package/dist/loader/index.cjs.js +0 -2
- package/dist/loader/index.d.ts +0 -24
- package/dist/loader/index.es2017.js +0 -2
- package/dist/loader/index.js +0 -3
- package/dist/loader/package.json +0 -11
- package/dist/ripple/index.esm.js +0 -0
- package/dist/ripple/p-02bd68af.system.entry.js +0 -1
- package/dist/ripple/p-02e60a11.system.entry.js +0 -1
- package/dist/ripple/p-03fafb82.entry.js +0 -1
- package/dist/ripple/p-043901ab.system.entry.js +0 -1
- package/dist/ripple/p-0d163672.system.entry.js +0 -1
- package/dist/ripple/p-13b1d775.entry.js +0 -1
- package/dist/ripple/p-1f174e18.system.entry.js +0 -1
- package/dist/ripple/p-20b137a3.system.entry.js +0 -1
- package/dist/ripple/p-226217d3.system.entry.js +0 -1
- package/dist/ripple/p-233f14ec.system.entry.js +0 -1
- package/dist/ripple/p-243a7a17.system.entry.js +0 -1
- package/dist/ripple/p-263e42e0.entry.js +0 -1
- package/dist/ripple/p-2732bddd.js +0 -1
- package/dist/ripple/p-27ff3a85.js +0 -1
- package/dist/ripple/p-28f9e202.system.entry.js +0 -1
- package/dist/ripple/p-2c8153c1.entry.js +0 -1
- package/dist/ripple/p-3376581a.system.entry.js +0 -1
- package/dist/ripple/p-368e9ee9.entry.js +0 -1
- package/dist/ripple/p-3a2a3b70.entry.js +0 -1
- package/dist/ripple/p-3b5d106d.entry.js +0 -1
- package/dist/ripple/p-42fa7a77.system.js +0 -1
- package/dist/ripple/p-45b5d2d2.entry.js +0 -1
- package/dist/ripple/p-486b3b56.system.entry.js +0 -1
- package/dist/ripple/p-49e24926.entry.js +0 -1
- package/dist/ripple/p-4fbe205e.system.entry.js +0 -1
- package/dist/ripple/p-50294e3f.entry.js +0 -1
- package/dist/ripple/p-50ea2036.system.js +0 -1
- package/dist/ripple/p-529f179c.system.entry.js +0 -1
- package/dist/ripple/p-53400bc4.system.entry.js +0 -1
- package/dist/ripple/p-55f8aa05.entry.js +0 -1
- package/dist/ripple/p-58734b13.entry.js +0 -1
- package/dist/ripple/p-59cc46a6.entry.js +0 -1
- package/dist/ripple/p-5c62e26d.entry.js +0 -1
- package/dist/ripple/p-6136d0d7.entry.js +0 -1
- package/dist/ripple/p-658f146a.system.entry.js +0 -1
- package/dist/ripple/p-66141f19.entry.js +0 -1
- package/dist/ripple/p-727175e1.system.entry.js +0 -1
- package/dist/ripple/p-73056e10.system.js +0 -1
- package/dist/ripple/p-76f9acec.entry.js +0 -1
- package/dist/ripple/p-791513e7.entry.js +0 -1
- package/dist/ripple/p-7959c4bd.system.entry.js +0 -1
- package/dist/ripple/p-7a1bb29b.js +0 -1
- package/dist/ripple/p-81ac8d49.entry.js +0 -1
- package/dist/ripple/p-823d7b4e.system.entry.js +0 -1
- package/dist/ripple/p-82819500.system.entry.js +0 -1
- package/dist/ripple/p-8634abad.system.entry.js +0 -1
- package/dist/ripple/p-864158de.system.entry.js +0 -1
- package/dist/ripple/p-8c95493c.js +0 -1
- package/dist/ripple/p-94dc80a0.entry.js +0 -1
- package/dist/ripple/p-94fbf6f6.system.entry.js +0 -1
- package/dist/ripple/p-9b739280.entry.js +0 -1
- package/dist/ripple/p-a0edf336.system.entry.js +0 -1
- package/dist/ripple/p-a2544443.system.js +0 -1
- package/dist/ripple/p-a280d710.entry.js +0 -1
- package/dist/ripple/p-a9a7731b.system.entry.js +0 -1
- package/dist/ripple/p-b16f07f1.system.entry.js +0 -1
- package/dist/ripple/p-b78d8ab1.system.js +0 -1
- package/dist/ripple/p-c550716e.js +0 -1
- package/dist/ripple/p-ccae5bec.entry.js +0 -1
- package/dist/ripple/p-cd0cc88d.entry.js +0 -1
- package/dist/ripple/p-cef8a45b.system.js +0 -2
- package/dist/ripple/p-d96291e7.entry.js +0 -1
- package/dist/ripple/p-d9da0502.js +0 -2
- package/dist/ripple/p-e2fbed8c.system.entry.js +0 -1
- package/dist/ripple/p-e6e36701.system.entry.js +0 -1
- package/dist/ripple/p-e8cfa832.entry.js +0 -1
- package/dist/ripple/p-e973024a.entry.js +0 -1
- package/dist/ripple/p-ed24dc42.entry.js +0 -1
- package/dist/ripple/p-ee825214.entry.js +0 -1
- package/dist/ripple/p-ef75bf23.system.entry.js +0 -1
- package/dist/ripple/p-f28106ea.entry.js +0 -1
- package/dist/ripple/p-f471ee29.system.js +0 -1
- package/dist/ripple/p-f66480de.entry.js +0 -1
- package/dist/ripple/p-f778baf4.system.entry.js +0 -1
- package/dist/ripple/p-f9a71cf6.entry.js +0 -1
- package/dist/ripple/p-fc7965e4.system.entry.js +0 -1
- package/dist/ripple/p-fdfa3579.system.entry.js +0 -1
- package/dist/ripple/p-ff60375d.system.entry.js +0 -1
- package/dist/ripple/p-ffbb9fc0.system.js +0 -1
- package/dist/ripple/ripple.css +0 -1
- package/dist/ripple/ripple.esm.js +0 -1
- package/dist/ripple/ripple.js +0 -127
- /package/dist/{collection/dev/action-menu.js → types/test-setup.d.ts} +0 -0
|
@@ -1,172 +0,0 @@
|
|
|
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
|
-
newWindow: intl.formatMessage({
|
|
23
|
-
id: "global.newWindowLink",
|
|
24
|
-
defaultMessage: "Opens in a new window.",
|
|
25
|
-
description: "Indicates that a focused link will open in a new window",
|
|
26
|
-
}),
|
|
27
|
-
next: intl.formatMessage({
|
|
28
|
-
id: "global.next",
|
|
29
|
-
defaultMessage: "next",
|
|
30
|
-
description: "Button text, indicating an action leading to a 'next' state",
|
|
31
|
-
}),
|
|
32
|
-
open: intl.formatMessage({
|
|
33
|
-
id: "global.openVerb",
|
|
34
|
-
defaultMessage: "Open",
|
|
35
|
-
description: "For a button, to open a user interface element",
|
|
36
|
-
}),
|
|
37
|
-
previous: intl.formatMessage({
|
|
38
|
-
id: "global.previous",
|
|
39
|
-
defaultMessage: "previous",
|
|
40
|
-
description: "Button text, indicating an action leading to a 'previous' state",
|
|
41
|
-
}),
|
|
42
|
-
requiredError: intl.formatMessage({
|
|
43
|
-
id: "global.requiredError",
|
|
44
|
-
defaultMessage: "This field is required.",
|
|
45
|
-
description: "Error displayed under a required field when it has not been filled",
|
|
46
|
-
}),
|
|
47
|
-
requiredField: intl.formatMessage({
|
|
48
|
-
id: "global.requiredField",
|
|
49
|
-
defaultMessage: "required field",
|
|
50
|
-
description: "Screen reader text, indicating the currently focused field is required",
|
|
51
|
-
}),
|
|
52
|
-
show: intl.formatMessage({
|
|
53
|
-
id: "global.showVerb",
|
|
54
|
-
defaultMessage: "Show",
|
|
55
|
-
description: "For a button, to show something",
|
|
56
|
-
}),
|
|
57
|
-
// -------------------------------------------------------------------------- //
|
|
58
|
-
// Functions //
|
|
59
|
-
// -------------------------------------------------------------------------- //
|
|
60
|
-
getCharactersEntered: (charCount, charLimit) => intl.formatMessage({
|
|
61
|
-
id: "global.charactersEntered",
|
|
62
|
-
defaultMessage: "{x, number} of {y, number} characters entered.",
|
|
63
|
-
description: "for screen readers",
|
|
64
|
-
}, { x: charCount, y: charLimit }),
|
|
65
|
-
getCharacterLimit: (characterLimit) => intl.formatMessage({
|
|
66
|
-
id: "global.characterLimit",
|
|
67
|
-
defaultMessage: "{limit, number} characters allowed.",
|
|
68
|
-
description: "for screen readers",
|
|
69
|
-
}, { limit: characterLimit }),
|
|
70
|
-
};
|
|
71
|
-
export const uploaderMessages = {
|
|
72
|
-
duplicateName: intl.formatMessage({
|
|
73
|
-
id: "uploader.duplicateName",
|
|
74
|
-
defaultMessage: "A file with this name already exists.",
|
|
75
|
-
}),
|
|
76
|
-
fileLimitExceeded: intl.formatMessage({
|
|
77
|
-
id: "uploader.fileUploadLimitExceeded",
|
|
78
|
-
defaultMessage: "Upload unsuccessful because file selection would exceed the maximum number of files",
|
|
79
|
-
description: "Message displayed when trying to upload too many files",
|
|
80
|
-
}),
|
|
81
|
-
fileLimitReached: intl.formatMessage({
|
|
82
|
-
id: "uploader.fileUploadLimitReached",
|
|
83
|
-
defaultMessage: "The maximum number of files has been reached",
|
|
84
|
-
description: "Message displayed when trying to upload additional files, but the limit has been reached",
|
|
85
|
-
}),
|
|
86
|
-
finishedUploading: intl.formatMessage({
|
|
87
|
-
id: "uploader.finishedUploading",
|
|
88
|
-
defaultMessage: "Finished uploading",
|
|
89
|
-
}),
|
|
90
|
-
waitToUpload: intl.formatMessage({
|
|
91
|
-
id: "uploader.waitToUpload",
|
|
92
|
-
defaultMessage: "Please wait for current upload to complete before uploading new files.",
|
|
93
|
-
description: "Message for screen reader users",
|
|
94
|
-
}),
|
|
95
|
-
zeroFileSize: intl.formatMessage({
|
|
96
|
-
id: "uploader.zeroFileSize",
|
|
97
|
-
defaultMessage: "The file must be more than 0 bytes",
|
|
98
|
-
description: "Error message when user attempts to upload a file of no size",
|
|
99
|
-
}),
|
|
100
|
-
dropInstructions: intl.formatMessage({
|
|
101
|
-
id: "uploader.dropInstructions",
|
|
102
|
-
defaultMessage: "Browse or Drag Files Here",
|
|
103
|
-
description: "Instructions for how to choose files to upload",
|
|
104
|
-
}),
|
|
105
|
-
dropFile: intl.formatMessage({
|
|
106
|
-
id: "uploader.dropFile",
|
|
107
|
-
defaultMessage: "Drop to Upload",
|
|
108
|
-
description: "Prompt for use to drop the file they're currently dragging",
|
|
109
|
-
}),
|
|
110
|
-
fileRequirements: intl.formatMessage({
|
|
111
|
-
id: "uploader.fileRequirements",
|
|
112
|
-
defaultMessage: "File Requirements",
|
|
113
|
-
description: "Expandable button revealing the uploader's file requirements",
|
|
114
|
-
}),
|
|
115
|
-
// -------------------------------------------------------------------------- //
|
|
116
|
-
// Functions //
|
|
117
|
-
// -------------------------------------------------------------------------- //
|
|
118
|
-
getFilesAdded: (numFiles) => intl.formatMessage({
|
|
119
|
-
id: "uploader.filesAdded",
|
|
120
|
-
defaultMessage: "{numFiles, plural, one {1 file added} other {# files added}}",
|
|
121
|
-
}, { numFiles: numFiles }),
|
|
122
|
-
getFileCount: (fileListLength, maxFiles) => intl.formatMessage({
|
|
123
|
-
id: "uploader.fileCount",
|
|
124
|
-
defaultMessage: "{x} of {y} Files",
|
|
125
|
-
description: "A count of the number of files currently uploaded",
|
|
126
|
-
}, { x: fileListLength, y: maxFiles }),
|
|
127
|
-
getFileTooLarge: (maxSize) => intl.formatMessage({
|
|
128
|
-
id: "uploader.fileTooLarge",
|
|
129
|
-
defaultMessage: "The selected file is too large. Maximum file size is {size}",
|
|
130
|
-
}, { size: maxSize }),
|
|
131
|
-
getFilesUploading: (numFilesUploading) => intl.formatMessage({
|
|
132
|
-
id: "uploader.filesUploading",
|
|
133
|
-
defaultMessage: "{num, plural, one {1 file uploading} other {# files uploading}}",
|
|
134
|
-
}, { num: numFilesUploading }),
|
|
135
|
-
getInvalidFileType: (validTypes) => intl.formatMessage({
|
|
136
|
-
id: "uploader.invalidFileType",
|
|
137
|
-
defaultMessage: "The file type is invalid. Accepted types: {validTypes}",
|
|
138
|
-
}, { validTypes }),
|
|
139
|
-
getUploadProgress: (percentage) => intl.formatMessage({
|
|
140
|
-
id: "uploader.uploadProgress",
|
|
141
|
-
defaultMessage: "Upload progress: {percentage}%",
|
|
142
|
-
}, { percentage: percentage }),
|
|
143
|
-
};
|
|
144
|
-
export const chartMessages = {
|
|
145
|
-
interactiveChart: intl.formatMessage({
|
|
146
|
-
id: "chart.interactiveChart",
|
|
147
|
-
defaultMessage: "Interactive chart",
|
|
148
|
-
description: "For screen readers only, a description clarifying the role of the chart widget",
|
|
149
|
-
}),
|
|
150
|
-
};
|
|
151
|
-
export const lineChartMessages = {
|
|
152
|
-
instructions: intl.formatMessage({
|
|
153
|
-
id: "linechart.instructions",
|
|
154
|
-
defaultMessage: "Use Tab and arrow keys to browse elements.",
|
|
155
|
-
description: "For screen readers only, instructions on how to interact with the line chart component",
|
|
156
|
-
}),
|
|
157
|
-
noData: intl.formatMessage({
|
|
158
|
-
id: "linechart.noData",
|
|
159
|
-
defaultMessage: "No Data",
|
|
160
|
-
description: "Message displayed when a data point has missing data",
|
|
161
|
-
}),
|
|
162
|
-
// -------------------------------------------------------------------------- //
|
|
163
|
-
// Functions //
|
|
164
|
-
// -------------------------------------------------------------------------- //
|
|
165
|
-
getChangeSince: (prevXValue) => intl.formatMessage({
|
|
166
|
-
id: "linechart.changeSince",
|
|
167
|
-
defaultMessage: "Change since {time}",
|
|
168
|
-
description: "Indicates a comparison between current and previous data",
|
|
169
|
-
}, {
|
|
170
|
-
time: prevXValue,
|
|
171
|
-
}),
|
|
172
|
-
};
|
|
@@ -1,130 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
const fs = require("fs");
|
|
2
|
-
const en = require("./en.json");
|
|
3
|
-
|
|
4
|
-
const pig = {};
|
|
5
|
-
Object.keys(en).map((k) => {
|
|
6
|
-
let string = en[k].defaultMessage;
|
|
7
|
-
const interpStart = string.indexOf("{");
|
|
8
|
-
const interpEnd = string.lastIndexOf("}") + 1;
|
|
9
|
-
|
|
10
|
-
// if there is an interpolation pattern
|
|
11
|
-
if (interpStart >= 0 && interpEnd > 2) {
|
|
12
|
-
let translInterp = translateSentence(string.slice(0, interpStart));
|
|
13
|
-
|
|
14
|
-
const interp = string.slice(interpStart, interpEnd);
|
|
15
|
-
// what's inside the braces shouldn't be translated
|
|
16
|
-
// unless it's in nested translated, and so on
|
|
17
|
-
// we can set flags to cut the string into pieces
|
|
18
|
-
// which should or should not be translated
|
|
19
|
-
const flags = [];
|
|
20
|
-
for (x = 0; x < interp.length; x++) {
|
|
21
|
-
if (interp[x] == "{") {
|
|
22
|
-
flags.push(x);
|
|
23
|
-
} else if (interp[x] == "}") {
|
|
24
|
-
flags.push(x);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
splits = flags.map((_, i) => {
|
|
29
|
-
if (i < flags.length) return interp.slice(flags[i], flags[i + 1]);
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
splits.map((split, i) => {
|
|
33
|
-
translInterp += i % 2 ? translateSentence(split) : split; // only translate even ones (the odd ones are params)
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
translInterp += translateSentence(string.slice(interpEnd, string.length));
|
|
37
|
-
|
|
38
|
-
const dm = { defaultMessage: translInterp };
|
|
39
|
-
pig[k] = dm;
|
|
40
|
-
} else {
|
|
41
|
-
const dm = { defaultMessage: translateSentence(string) };
|
|
42
|
-
pig[k] = dm;
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
data = JSON.stringify(pig, null, 2);
|
|
46
|
-
|
|
47
|
-
fs.writeFile("src/lang/pig.json", data, (err) => {
|
|
48
|
-
!!err && console.log(err);
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
function pigLatinize(word) {
|
|
52
|
-
const isVowel = (char) => ["a", "e", "i", "o", "u"].includes(char.toLowerCase());
|
|
53
|
-
const isLetter = (char) => RegExp(/^\p{L}/, "u").test(char);
|
|
54
|
-
|
|
55
|
-
const firstLetter = Array.from(word).reduce((l, char, i) => (isLetter(char) && l < 0 ? i : l), -1);
|
|
56
|
-
|
|
57
|
-
const lastLetter = Array.from(word).reduce((l, char, i) => (isLetter(char) ? i : l), -1);
|
|
58
|
-
|
|
59
|
-
if (firstLetter == -1 && lastLetter == -1) return word; // only special chars, don't translate
|
|
60
|
-
|
|
61
|
-
const specialKBefore = word.slice(0, firstLetter) || "";
|
|
62
|
-
const specialKAfter = word.slice(lastLetter + 1, word.length + 1) || "";
|
|
63
|
-
word = word.slice(firstLetter, lastLetter + 1) || "";
|
|
64
|
-
|
|
65
|
-
if (word) {
|
|
66
|
-
if (isVowel(word[0])) {
|
|
67
|
-
word += "yay";
|
|
68
|
-
} else {
|
|
69
|
-
const firstVowel = Array.from(word).reduce((firstV, char, i) => {
|
|
70
|
-
return isVowel(char) && firstV < 0 ? i : firstV;
|
|
71
|
-
}, -1);
|
|
72
|
-
if (word[0] == word[0].toUpperCase()) {
|
|
73
|
-
word =
|
|
74
|
-
word.substring(firstVowel, firstVowel + 1).toUpperCase() +
|
|
75
|
-
word.substring(firstVowel + 1, word.length) +
|
|
76
|
-
word.substring(0, firstVowel).toLowerCase() +
|
|
77
|
-
"ay";
|
|
78
|
-
} else {
|
|
79
|
-
word = word.substring(firstVowel, word.length) + word.substring(0, firstVowel) + "ay";
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
return specialKBefore + word + specialKAfter;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
function translateSentence(string) {
|
|
87
|
-
let words = string.split(" ");
|
|
88
|
-
return words
|
|
89
|
-
.reduce((acc, word) => {
|
|
90
|
-
return acc + " " + pigLatinize(word);
|
|
91
|
-
}, "")
|
|
92
|
-
.substring(1); // rm leading space
|
|
93
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import './index-130e07bb.js';
|
|
2
|
-
|
|
3
|
-
const version = "5.12.0-9";
|
|
4
|
-
|
|
5
|
-
// PRINT RIPPLE VERSION IN CONSOLE
|
|
6
|
-
// test envs return 0 for plugin.length
|
|
7
|
-
// do not print version number there as it causes issues
|
|
8
|
-
if (window.navigator.plugins.length > 0) {
|
|
9
|
-
console.log("%cRipple component library %c%s", "color: #575195; font-weight: bold", "font-weight: bold", version);
|
|
10
|
-
}
|
|
11
|
-
// Dispatching events to track whether user is navigating with keyboard or mouse
|
|
12
|
-
// no longer necessary for keyboard focus indicators (thanks to :focus-visible)
|
|
13
|
-
// but still used in several components for other things (search for isTabbing)
|
|
14
|
-
function wmComponentKeys(ev) {
|
|
15
|
-
if (ev.key == "Tab") {
|
|
16
|
-
var event = new Event("wmUserIsTabbing");
|
|
17
|
-
window.dispatchEvent(event);
|
|
18
|
-
document.querySelector("body").classList.add("wmcl-user-is-tabbing");
|
|
19
|
-
}
|
|
20
|
-
if (ev.key == "ArrowLeft" || ev.key == "ArrowUp" || ev.key == "ArrowRight" || ev.key == "ArrowDown") {
|
|
21
|
-
var event = new Event("wmUserIsKeying");
|
|
22
|
-
window.dispatchEvent(event);
|
|
23
|
-
document.querySelector("body").classList.add("wmcl-user-is-keying");
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
function wmComponentMouseDownOnce() {
|
|
27
|
-
var event = new Event("wmUserIsNotTabbing");
|
|
28
|
-
window.dispatchEvent(event);
|
|
29
|
-
document.querySelector("body").classList.remove("wmcl-user-is-tabbing");
|
|
30
|
-
document.querySelector("body").classList.remove("wmcl-user-is-keying");
|
|
31
|
-
}
|
|
32
|
-
window.addEventListener("keydown", wmComponentKeys);
|
|
33
|
-
window.addEventListener("mousedown", wmComponentMouseDownOnce);
|
|
34
|
-
// TOOLTIP
|
|
35
|
-
// Add a tooltip element
|
|
36
|
-
// This allows tooltips to be always at the highest stacking context (always on top)
|
|
37
|
-
// Element is added withing a container to avoid performance impact
|
|
38
|
-
const tooltipContainer = document.createElement("div");
|
|
39
|
-
tooltipContainer.id = "wm-tooltip-container";
|
|
40
|
-
const tooltipEl = document.createElement("div");
|
|
41
|
-
tooltipEl.id = "wm-tooltip";
|
|
42
|
-
tooltipEl.classList.add("wm-tooltip");
|
|
43
|
-
tooltipEl.setAttribute("popover", "manual");
|
|
44
|
-
tooltipEl.setAttribute("aria-hidden", "true");
|
|
45
|
-
const tooltipStyles = document.createElement("style");
|
|
46
|
-
tooltipStyles.textContent = `
|
|
47
|
-
.wm-tooltip {
|
|
48
|
-
position: fixed;
|
|
49
|
-
overflow: hidden;
|
|
50
|
-
pointer-events: none;
|
|
51
|
-
line-height: normal;
|
|
52
|
-
font-family: inherit;
|
|
53
|
-
font-size: 0.875rem;
|
|
54
|
-
text-transform: none;
|
|
55
|
-
font-weight: normal;
|
|
56
|
-
background: var(--wmcolor-tooltip-background);
|
|
57
|
-
color: var(--wmcolor-tooltip-text);
|
|
58
|
-
z-index: 999999;
|
|
59
|
-
max-width: var(--wmTooltipMaxWidth, 13.75rem);
|
|
60
|
-
margin-right: 1.5rem;
|
|
61
|
-
padding: 0.375rem;
|
|
62
|
-
transition-property: opacity;
|
|
63
|
-
transition-delay: 0s;
|
|
64
|
-
opacity: 0;
|
|
65
|
-
inset: unset;
|
|
66
|
-
top: 0;
|
|
67
|
-
left: 0;
|
|
68
|
-
transform: translateZ(0);
|
|
69
|
-
will-change: transform;
|
|
70
|
-
transform: translate(var(--wmTooltipLeft), var(--wmTooltipTop));
|
|
71
|
-
border: none;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.wm-tooltip:popover-open {
|
|
75
|
-
opacity: 0;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.wm-tooltip.show {
|
|
79
|
-
transition-delay: 500ms;
|
|
80
|
-
opacity: 1;
|
|
81
|
-
}
|
|
82
|
-
`;
|
|
83
|
-
document.head.appendChild(tooltipStyles);
|
|
84
|
-
tooltipContainer.appendChild(tooltipEl);
|
|
85
|
-
document.querySelector("body").appendChild(tooltipContainer);
|
|
86
|
-
const globalFn = () => { };
|
|
87
|
-
|
|
88
|
-
const globalScripts = globalFn;
|
|
89
|
-
|
|
90
|
-
export { globalScripts as g };
|