@watermarkinsights/ripple 0.0.1 → 0.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/app-globals-3db2fdd3.js +103 -0
- package/dist/cjs/chartFunctions-0d47b1f4.js +906 -0
- package/dist/cjs/functions-761cb9f2.js +10694 -0
- package/dist/cjs/index-bb947bd5.js +1843 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/interfaces-33cd6161.js +82 -0
- package/dist/cjs/intl-9e9388a7.js +291 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/priv-calendar.cjs.entry.js +580 -0
- package/dist/cjs/priv-chart-popover-old.cjs.entry.js +146 -0
- package/dist/cjs/priv-chart-popover_2.cjs.entry.js +204 -0
- package/dist/cjs/priv-navigator-button.cjs.entry.js +29 -0
- package/dist/cjs/priv-navigator-item.cjs.entry.js +35 -0
- package/dist/cjs/priv-option-list.cjs.entry.js +391 -0
- package/dist/cjs/ripple.cjs.js +25 -0
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +525 -0
- package/dist/cjs/wm-button.cjs.entry.js +280 -0
- package/dist/cjs/wm-chart-bar.cjs.entry.js +444 -0
- package/dist/cjs/wm-chart-column.cjs.entry.js +629 -0
- package/dist/cjs/wm-chart-slice.cjs.entry.js +27 -0
- package/dist/cjs/wm-chart-stack.cjs.entry.js +447 -0
- package/dist/cjs/wm-chart.cjs.entry.js +163 -0
- package/dist/cjs/wm-date-range.cjs.entry.js +591 -0
- package/dist/cjs/wm-datepicker.cjs.entry.js +399 -0
- package/dist/{ripple/wm-tab-panel.entry.js → cjs/wm-file-list.cjs.entry.js} +15 -24
- package/dist/cjs/wm-file.cjs.entry.js +210 -0
- package/dist/cjs/wm-flyout.cjs.entry.js +178 -0
- package/dist/{ripple/wm-modal.entry.js → cjs/wm-input.cjs.entry.js} +108 -110
- package/dist/cjs/wm-line-chart.cjs.entry.js +541 -0
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +220 -0
- package/dist/cjs/wm-modal_3.cjs.entry.js +238 -0
- package/dist/cjs/wm-navigation_3.cjs.entry.js +188 -0
- package/dist/cjs/wm-navigator.cjs.entry.js +334 -0
- package/dist/cjs/wm-nested-select.cjs.entry.js +322 -0
- package/dist/{ripple/wm-textarea.entry.js → cjs/wm-optgroup.cjs.entry.js} +62 -57
- package/dist/cjs/wm-option_2.cjs.entry.js +536 -0
- package/dist/{ripple/wm-navigation.entry.js → cjs/wm-pagination.cjs.entry.js} +204 -91
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +204 -0
- package/dist/{ripple/wm-flyout.entry.js → cjs/wm-search.cjs.entry.js} +168 -139
- package/dist/{ripple/wm-datepicker.entry.js → cjs/wm-snackbar.cjs.entry.js} +152 -223
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +357 -0
- package/dist/cjs/wm-tag-input.cjs.entry.js +985 -0
- package/dist/cjs/wm-tag-option.cjs.entry.js +51 -0
- package/dist/{ripple/wm-modal-pss.entry.js → cjs/wm-textarea.cjs.entry.js} +70 -111
- package/dist/{ripple/wm-progress-indicator.entry.js → cjs/wm-timepicker.cjs.entry.js} +296 -78
- package/dist/cjs/wm-toggletip.cjs.entry.js +252 -0
- package/dist/cjs/wm-uploader.cjs.entry.js +341 -0
- package/dist/cjs/wm-wrapper.cjs.entry.js +21 -0
- package/dist/collection/collection-manifest.json +207 -0
- package/dist/collection/components/charts/chartFunctions.js +831 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +995 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +345 -0
- package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.css +990 -0
- package/dist/collection/components/charts/priv-chart-popover-old/priv-chart-popover-old.js +268 -0
- package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +177 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.css +1326 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.js +549 -0
- package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.css +1236 -0
- package/dist/collection/components/charts/wm-chart-bar/wm-chart-bar.js +725 -0
- package/dist/collection/components/charts/wm-chart-column/wm-chart-column.css +1335 -0
- package/dist/collection/components/charts/wm-chart-column/wm-chart-column.js +914 -0
- package/dist/collection/components/charts/wm-chart-legend/wm-chart-legend.css +1006 -0
- package/dist/collection/components/charts/wm-chart-legend/wm-chart-legend.js +310 -0
- package/dist/collection/components/charts/wm-chart-stack/wm-chart-stack.css +1466 -0
- package/dist/collection/components/charts/wm-chart-stack/wm-chart-stack.js +709 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.css +1208 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +999 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.css +1326 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +320 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.css +967 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +232 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +167 -0
- package/dist/collection/components/datepickers/datepicker.css +1147 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +1415 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +857 -0
- package/dist/collection/components/datepickers/wm-date-range.js +1158 -0
- package/dist/collection/components/datepickers/wm-datepicker.js +875 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.css +999 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +784 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +1259 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +805 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +909 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +363 -0
- package/dist/collection/components/selects/wm-option/wm-option.css +1033 -0
- package/dist/collection/components/selects/wm-option/wm-option.js +665 -0
- package/dist/collection/components/selects/wm-select/wm-select.css +1174 -0
- package/dist/collection/components/selects/wm-select/wm-select.js +878 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.css +1690 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +932 -0
- package/dist/collection/components/wm-button/wm-button.css +1630 -0
- package/dist/collection/components/wm-button/wm-button.js +794 -0
- package/dist/collection/components/wm-file/wm-file.css +1086 -0
- package/dist/collection/components/wm-file/wm-file.js +536 -0
- package/dist/collection/components/wm-file-list/wm-file-list.css +899 -0
- package/dist/collection/components/wm-file-list/wm-file-list.js +118 -0
- package/dist/collection/components/wm-flyout/wm-flyout.css +1091 -0
- package/dist/collection/components/wm-flyout/wm-flyout.js +651 -0
- package/dist/collection/components/wm-input/wm-input.css +1095 -0
- package/dist/collection/components/wm-input/wm-input.js +653 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.css +982 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +515 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.css +927 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.js +199 -0
- package/dist/collection/components/wm-modal/wm-modal-header.css +926 -0
- package/dist/collection/components/wm-modal/wm-modal-header.js +110 -0
- package/dist/collection/components/wm-modal/wm-modal.css +983 -0
- package/dist/collection/components/wm-modal/wm-modal.js +534 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.css +931 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +142 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.css +925 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +86 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.css +1007 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +369 -0
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +926 -0
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +153 -0
- package/dist/collection/components/wm-navigation/wm-navigation-item.css +935 -0
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +140 -0
- package/dist/collection/components/wm-navigation/wm-navigation.css +977 -0
- package/dist/collection/components/wm-navigation/wm-navigation.js +246 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +929 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +90 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +918 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +128 -0
- package/dist/collection/components/wm-navigator/wm-navigator.css +990 -0
- package/dist/collection/components/wm-navigator/wm-navigator.js +597 -0
- package/dist/collection/components/wm-pagination/wm-pagination.css +1044 -0
- package/dist/collection/components/wm-pagination/wm-pagination.js +487 -0
- package/dist/collection/components/wm-search/wm-search.css +983 -0
- package/dist/collection/components/wm-search/wm-search.js +604 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +1150 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +363 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +958 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +233 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +966 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +461 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +906 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +132 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +1423 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +1511 -0
- package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +328 -0
- package/dist/collection/components/wm-textarea/wm-textarea.css +1065 -0
- package/dist/collection/components/wm-textarea/wm-textarea.js +423 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +1174 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +728 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +1296 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +455 -0
- package/dist/collection/components/wm-uploader/wm-uploader.css +1987 -0
- package/dist/collection/components/wm-uploader/wm-uploader.js +760 -0
- package/dist/collection/components/wm-wrapper/wm-wrapper.js +31 -0
- package/dist/collection/dev/action-menu.js +18 -0
- package/dist/collection/dev/button.js +12 -0
- package/dist/collection/dev/chart-bar.js +430 -0
- package/dist/collection/dev/chart-column.js +459 -0
- package/dist/collection/dev/chart-small.js +56 -0
- package/dist/collection/dev/chart-stack.js +205 -0
- package/dist/collection/dev/chart.js +18 -0
- package/dist/collection/dev/date-range.js +14 -0
- package/dist/collection/dev/datepicker.js +46 -0
- package/dist/collection/dev/file-list.js +16 -0
- package/dist/collection/dev/file.js +0 -0
- package/dist/collection/dev/flyout.js +194 -0
- package/dist/collection/dev/input.js +6 -0
- package/dist/collection/dev/line-chart.js +45 -0
- package/dist/collection/dev/modal.js +48 -0
- package/dist/collection/dev/navigation.js +13 -0
- package/dist/collection/dev/navigator.js +34 -0
- package/dist/collection/dev/nested-select.js +36 -0
- package/dist/collection/dev/pagination.js +7 -0
- package/dist/collection/dev/progress-monitor.js +0 -0
- package/dist/collection/dev/pss-modal.js +8 -0
- package/dist/collection/dev/scripts.js +49 -0
- package/dist/collection/dev/search.js +72 -0
- package/dist/collection/dev/select.js +57 -0
- package/dist/collection/dev/snackbar.js +68 -0
- package/dist/collection/dev/tabs.js +44 -0
- package/dist/collection/dev/tag-input.js +32 -0
- package/dist/collection/dev/textarea.js +28 -0
- package/dist/collection/dev/timepicker.js +32 -0
- package/dist/collection/dev/toggletip.js +9 -0
- package/dist/collection/dev/uploader.js +139 -0
- package/dist/collection/global/__mocks__/functions.js +6 -0
- package/dist/collection/global/functions.js +907 -0
- package/dist/{ripple/app-globals-B7cOtGhY.js → collection/global/global.js} +16 -87
- package/dist/collection/global/interfaces.js +94 -0
- package/dist/collection/global/intl.js +281 -0
- package/dist/collection/global/services/__mocks__/http-service.js +130 -0
- package/dist/collection/global/services/http-service.js +50 -0
- package/dist/collection/lang/lang.js +5 -0
- package/dist/collection/lang/missing.js +43 -0
- package/dist/collection/lang/piglatin.js +101 -0
- package/dist/docs/docs.d.ts +435 -0
- package/dist/docs/docs.json +14178 -0
- package/dist/docs/props-reference.json +2079 -0
- package/dist/docs/skill/index.md +33 -0
- package/dist/docs/skill/wm-action-menu.md +116 -0
- package/dist/docs/skill/wm-button.md +121 -0
- package/dist/docs/skill/wm-chart-bar.md +156 -0
- package/dist/docs/skill/wm-chart-column.md +122 -0
- package/dist/docs/skill/wm-chart-legend.md +91 -0
- package/dist/docs/skill/wm-chart-slice.md +101 -0
- package/dist/docs/skill/wm-chart-stack.md +147 -0
- package/dist/docs/skill/wm-chart.md +139 -0
- package/dist/docs/skill/wm-date-range.md +176 -0
- package/dist/docs/skill/wm-datepicker.md +153 -0
- package/dist/docs/skill/wm-file-list.md +105 -0
- package/dist/docs/skill/wm-file.md +91 -0
- package/dist/docs/skill/wm-flyout.md +209 -0
- package/dist/docs/skill/wm-input.md +134 -0
- package/dist/docs/skill/wm-line-chart.md +135 -0
- package/dist/docs/skill/wm-menuitem.md +64 -0
- package/dist/docs/skill/wm-modal-footer.md +81 -0
- package/dist/docs/skill/wm-modal-header.md +71 -0
- package/dist/docs/skill/wm-modal.md +172 -0
- package/dist/docs/skill/wm-navigation-hamburger.md +61 -0
- package/dist/docs/skill/wm-navigation-item.md +78 -0
- package/dist/docs/skill/wm-navigation.md +82 -0
- package/dist/docs/skill/wm-navigator.md +106 -0
- package/dist/docs/skill/wm-nested-select.md +160 -0
- package/dist/docs/skill/wm-optgroup.md +72 -0
- package/dist/docs/skill/wm-option.md +67 -0
- package/dist/docs/skill/wm-pagination.md +114 -0
- package/dist/docs/skill/wm-progress-indicator.md +75 -0
- package/dist/docs/skill/wm-progress-monitor.md +120 -0
- package/dist/docs/skill/wm-progress-slice.md +67 -0
- package/dist/docs/skill/wm-search.md +180 -0
- package/dist/docs/skill/wm-select.md +169 -0
- package/dist/docs/skill/wm-snackbar.md +130 -0
- package/dist/docs/skill/wm-tab-item.md +45 -0
- package/dist/docs/skill/wm-tab-list.md +139 -0
- package/dist/docs/skill/wm-tab-panel.md +39 -0
- package/dist/docs/skill/wm-tag-input.md +187 -0
- package/dist/docs/skill/wm-tag-option.md +60 -0
- package/dist/docs/skill/wm-textarea.md +102 -0
- package/dist/docs/skill/wm-timepicker.md +156 -0
- package/dist/docs/skill/wm-toggletip.md +98 -0
- package/dist/docs/skill/wm-uploader.md +154 -0
- package/dist/docs/skill/wm-wrapper.md +5 -0
- package/dist/esm/app-globals-a1092590.js +101 -0
- package/dist/{ripple/chartFunctions-CmeM8Tyx.js → esm/chartFunctions-58637dc9.js} +159 -3
- package/dist/{ripple/functions-DVLl0rH_.js → esm/functions-65f1594c.js} +374 -7830
- package/dist/esm/index-3425d80d.js +1813 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/interfaces-8778346d.js +77 -0
- package/dist/{ripple/intl-7p27BJSM.js → esm/intl-d518f362.js} +11 -4
- package/dist/esm/loader.js +11 -0
- package/dist/{ripple → esm}/priv-calendar.entry.js +143 -133
- package/dist/esm/priv-chart-popover-old.entry.js +142 -0
- package/dist/esm/priv-chart-popover_2.entry.js +199 -0
- package/dist/{ripple → esm}/priv-navigator-button.entry.js +5 -4
- package/dist/{ripple → esm}/priv-navigator-item.entry.js +5 -4
- package/dist/{ripple → esm}/priv-option-list.entry.js +18 -16
- package/dist/esm/ripple.js +20 -0
- package/dist/esm/wm-action-menu_2.entry.js +520 -0
- package/dist/{ripple/wm-modal-header.entry.js → esm/wm-button.entry.js} +264 -24
- package/dist/esm/wm-chart-bar.entry.js +440 -0
- package/dist/esm/wm-chart-column.entry.js +625 -0
- package/dist/{ripple → esm}/wm-chart-slice.entry.js +6 -1
- package/dist/esm/wm-chart-stack.entry.js +443 -0
- package/dist/esm/wm-chart.entry.js +159 -0
- package/dist/{ripple → esm}/wm-date-range.entry.js +224 -114
- package/dist/esm/wm-datepicker.entry.js +395 -0
- package/dist/{ripple → esm}/wm-file-list.entry.js +5 -4
- package/dist/{ripple → esm}/wm-file.entry.js +48 -24
- package/dist/esm/wm-flyout.entry.js +174 -0
- package/dist/{ripple → esm}/wm-input.entry.js +23 -7
- package/dist/{ripple → esm}/wm-line-chart.entry.js +182 -94
- package/dist/esm/wm-modal-pss_3.entry.js +214 -0
- package/dist/esm/wm-modal_3.entry.js +232 -0
- package/dist/esm/wm-navigation_3.entry.js +182 -0
- package/dist/{ripple → esm}/wm-navigator.entry.js +26 -64
- package/dist/{ripple → esm}/wm-nested-select.entry.js +35 -25
- package/dist/{ripple → esm}/wm-optgroup.entry.js +17 -5
- package/dist/esm/wm-option_2.entry.js +531 -0
- package/dist/{ripple → esm}/wm-pagination.entry.js +16 -14
- package/dist/esm/wm-progress-indicator_3.entry.js +198 -0
- package/dist/{ripple → esm}/wm-search.entry.js +15 -31
- package/dist/{ripple → esm}/wm-snackbar.entry.js +32 -45
- package/dist/esm/wm-tab-item_3.entry.js +351 -0
- package/dist/{ripple → esm}/wm-tag-input.entry.js +169 -65
- package/dist/{ripple → esm}/wm-tag-option.entry.js +14 -2
- package/dist/{ripple/wm-menuitem.entry.js → esm/wm-textarea.entry.js} +65 -100
- package/dist/{ripple → esm}/wm-timepicker.entry.js +33 -12
- package/dist/{ripple → esm}/wm-toggletip.entry.js +105 -33
- package/dist/esm/wm-uploader.entry.js +337 -0
- package/dist/{ripple → esm}/wm-wrapper.entry.js +1 -1
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +1 -0
- package/dist/loader/index.cjs.js +1 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +1 -0
- package/dist/loader/index.js +2 -0
- package/dist/loader/package.json +11 -0
- package/dist/ripple/index.esm.js +0 -1
- package/dist/ripple/p-0d364411.entry.js +1 -0
- package/dist/ripple/p-156c4d1d.entry.js +1 -0
- package/dist/ripple/{wm-modal-footer.entry.js → p-26d8c356.entry.js} +1 -44
- package/dist/ripple/p-2b23ce49.entry.js +1 -0
- package/dist/ripple/p-2b7cc2c1.entry.js +1 -0
- package/dist/ripple/p-34bde06a.entry.js +1 -0
- package/dist/ripple/p-35db9386.entry.js +1 -0
- package/dist/ripple/p-38a987ac.entry.js +1 -0
- package/dist/ripple/p-38b05894.entry.js +1 -0
- package/dist/ripple/p-38dee4ab.entry.js +1 -0
- package/dist/ripple/p-3a19d019.entry.js +1 -0
- package/dist/ripple/p-451d4de2.js +1 -0
- package/dist/ripple/p-507f2cf4.entry.js +1 -0
- package/dist/ripple/p-59f74ead.entry.js +1 -0
- package/dist/ripple/p-5c2fc42a.entry.js +1 -0
- package/dist/ripple/p-680d7606.entry.js +1 -0
- package/dist/ripple/p-683264db.js +1 -0
- package/dist/ripple/p-6db681c8.entry.js +1 -0
- package/dist/ripple/p-6e3c2bbc.js +1 -0
- package/dist/ripple/p-6f1cabab.entry.js +1 -0
- package/dist/ripple/p-72d135ee.entry.js +1 -0
- package/dist/ripple/p-7799953c.entry.js +1 -0
- package/dist/ripple/p-83c3db60.js +2 -0
- package/dist/ripple/{wm-progress-monitor.entry.js → p-83cdad78.entry.js} +1 -71
- package/dist/ripple/p-87ef0cfa.entry.js +1 -0
- package/dist/ripple/p-88e44511.entry.js +1 -0
- package/dist/ripple/p-8f8e4eb8.entry.js +1 -0
- package/dist/ripple/p-936adffb.entry.js +1 -0
- package/dist/ripple/p-9755192c.entry.js +1 -0
- package/dist/ripple/p-9c5c591b.js +1 -0
- package/dist/ripple/p-9ea38d96.entry.js +1 -0
- package/dist/ripple/p-be3e4e7c.entry.js +1 -0
- package/dist/ripple/p-c9c7df12.entry.js +1 -0
- package/dist/ripple/p-d7a1be0b.entry.js +1 -0
- package/dist/ripple/p-dab86523.entry.js +1 -0
- package/dist/ripple/{wm-tab-list.entry.js → p-e4aa6e27.entry.js} +1 -175
- package/dist/ripple/p-ebe9f38c.js +1 -0
- package/dist/ripple/p-ed053612.entry.js +1 -0
- package/dist/ripple/p-f43f621b.entry.js +1 -0
- package/dist/ripple/p-f48d30d6.entry.js +1 -0
- package/dist/ripple/{wm-action-menu.entry.js → p-f6aad57c.entry.js} +1 -201
- package/dist/ripple/p-f6e1beb5.entry.js +1 -0
- package/dist/ripple/p-fc843bb8.entry.js +1 -0
- package/dist/ripple/{priv-chart-popover.entry.js → p-fd997764.entry.js} +1 -134
- package/dist/ripple/p-fffb46ad.entry.js +1 -0
- package/dist/ripple/ripple.esm.js +1 -48
- package/dist/types/components/charts/chartFunctions.d.ts +15 -2
- package/dist/types/components/charts/priv-chart-popover/priv-chart-popover.d.ts +25 -11
- package/dist/types/components/charts/priv-chart-popover-old/priv-chart-popover-old.d.ts +31 -0
- package/dist/types/components/charts/wm-chart/wm-chart-slice.d.ts +52 -0
- package/dist/types/components/charts/wm-chart/wm-chart.d.ts +113 -1
- package/dist/types/components/charts/wm-chart-bar/wm-chart-bar.d.ts +195 -0
- package/dist/types/components/charts/wm-chart-column/wm-chart-column.d.ts +184 -0
- package/dist/types/components/charts/wm-chart-legend/wm-chart-legend.d.ts +110 -0
- package/dist/types/components/charts/wm-chart-stack/wm-chart-stack.d.ts +194 -0
- package/dist/types/components/charts/wm-line-chart/wm-line-chart.d.ts +156 -11
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-indicator.d.ts +53 -1
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-monitor.d.ts +85 -0
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-slice.d.ts +44 -0
- package/dist/types/components/datepickers/priv-calendar/priv-calendar.d.ts +19 -3
- package/dist/types/components/datepickers/wm-date-range.d.ts +205 -14
- package/dist/types/components/datepickers/wm-datepicker.d.ts +189 -11
- package/dist/types/components/selects/priv-option-list/priv-option-list.d.ts +6 -0
- package/dist/types/components/selects/wm-nested-select/wm-nested-select.d.ts +165 -1
- package/dist/types/components/selects/wm-optgroup/wm-optgroup.d.ts +87 -0
- package/dist/types/components/selects/wm-option/wm-option.d.ts +117 -0
- package/dist/types/components/selects/wm-select/wm-select.d.ts +193 -12
- package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +207 -2
- package/dist/types/components/wm-button/wm-button.d.ts +191 -0
- package/dist/types/components/wm-file/wm-file.d.ts +110 -1
- package/dist/types/components/wm-file-list/wm-file-list.d.ts +72 -0
- package/dist/types/components/wm-flyout/wm-flyout.d.ts +205 -0
- package/dist/types/components/wm-input/wm-input.d.ts +161 -1
- package/dist/types/components/wm-menuitem/wm-menuitem.d.ts +79 -0
- package/dist/types/components/wm-modal/wm-modal-footer.d.ts +54 -0
- package/dist/types/components/wm-modal/wm-modal-header.d.ts +30 -0
- package/dist/types/components/wm-modal/wm-modal.d.ts +160 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss-footer.d.ts +4 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss-header.d.ts +4 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss.d.ts +6 -0
- package/dist/types/components/wm-navigation/wm-navigation-hamburger.d.ts +34 -0
- package/dist/types/components/wm-navigation/wm-navigation-item.d.ts +41 -0
- package/dist/types/components/wm-navigation/wm-navigation.d.ts +57 -0
- package/dist/types/components/wm-navigator/priv-navigator-button/priv-navigator-button.d.ts +4 -0
- package/dist/types/components/wm-navigator/priv-navigator-item/priv-navigator-item.d.ts +4 -0
- package/dist/types/components/wm-navigator/wm-navigator.d.ts +93 -4
- package/dist/types/components/wm-pagination/wm-pagination.d.ts +100 -1
- package/dist/types/components/wm-search/wm-search.d.ts +158 -6
- package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +103 -1
- package/dist/types/components/wm-tabs/wm-tab-item/wm-tab-item.d.ts +55 -3
- package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +119 -20
- package/dist/types/components/wm-tabs/wm-tab-panel/wm-tab-panel.d.ts +35 -2
- package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +199 -5
- package/dist/types/components/wm-tag-input/wm-tag-option/wm-tag-option.d.ts +68 -0
- package/dist/types/components/wm-textarea/wm-textarea.d.ts +99 -0
- package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +147 -0
- package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +88 -2
- package/dist/types/components/wm-uploader/wm-uploader.d.ts +145 -3
- package/dist/types/components/wm-wrapper/wm-wrapper.d.ts +3 -0
- package/dist/types/components.d.ts +11523 -95
- package/dist/types/global/functions.d.ts +7 -2
- package/dist/types/global/interfaces.d.ts +92 -2
- package/dist/types/global/intl.d.ts +3 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -28
- package/package.json +4 -33
- package/dist/components/index.d.ts +0 -33
- package/dist/components/priv-calendar.d.ts +0 -11
- package/dist/components/priv-chart-popover.d.ts +0 -11
- package/dist/components/priv-navigator-button.d.ts +0 -11
- package/dist/components/priv-navigator-item.d.ts +0 -11
- package/dist/components/priv-option-list.d.ts +0 -11
- package/dist/components/wm-action-menu.d.ts +0 -11
- package/dist/components/wm-button.d.ts +0 -11
- package/dist/components/wm-chart-slice.d.ts +0 -11
- package/dist/components/wm-chart.d.ts +0 -11
- package/dist/components/wm-date-range.d.ts +0 -11
- package/dist/components/wm-datepicker.d.ts +0 -11
- package/dist/components/wm-file-list.d.ts +0 -11
- package/dist/components/wm-file.d.ts +0 -11
- package/dist/components/wm-flyout.d.ts +0 -11
- package/dist/components/wm-input.d.ts +0 -11
- package/dist/components/wm-line-chart.d.ts +0 -11
- package/dist/components/wm-menuitem.d.ts +0 -11
- package/dist/components/wm-modal-footer.d.ts +0 -11
- package/dist/components/wm-modal-header.d.ts +0 -11
- package/dist/components/wm-modal-pss-footer.d.ts +0 -11
- package/dist/components/wm-modal-pss-header.d.ts +0 -11
- package/dist/components/wm-modal-pss.d.ts +0 -11
- package/dist/components/wm-modal.d.ts +0 -11
- package/dist/components/wm-navigation-hamburger.d.ts +0 -11
- package/dist/components/wm-navigation-item.d.ts +0 -11
- package/dist/components/wm-navigation.d.ts +0 -11
- package/dist/components/wm-navigator.d.ts +0 -11
- package/dist/components/wm-nested-select.d.ts +0 -11
- package/dist/components/wm-optgroup.d.ts +0 -11
- package/dist/components/wm-option.d.ts +0 -11
- package/dist/components/wm-pagination.d.ts +0 -11
- package/dist/components/wm-progress-indicator.d.ts +0 -11
- package/dist/components/wm-progress-monitor.d.ts +0 -11
- package/dist/components/wm-progress-slice.d.ts +0 -11
- package/dist/components/wm-search.d.ts +0 -11
- package/dist/components/wm-select.d.ts +0 -11
- package/dist/components/wm-snackbar.d.ts +0 -11
- package/dist/components/wm-tab-item.d.ts +0 -11
- package/dist/components/wm-tab-list.d.ts +0 -11
- package/dist/components/wm-tab-panel.d.ts +0 -11
- package/dist/components/wm-tag-input.d.ts +0 -11
- package/dist/components/wm-tag-option.d.ts +0 -11
- package/dist/components/wm-textarea.d.ts +0 -11
- package/dist/components/wm-timepicker.d.ts +0 -11
- package/dist/components/wm-toggletip.d.ts +0 -11
- package/dist/components/wm-uploader.d.ts +0 -11
- package/dist/components/wm-wrapper.d.ts +0 -11
- package/dist/ripple/index-CU5QNCKv.js +0 -4167
- package/dist/ripple/interfaces-CrANcZM9.js +0 -53
- package/dist/ripple/wm-button.entry.js +0 -197
- package/dist/ripple/wm-chart.entry.js +0 -157
- package/dist/ripple/wm-modal-pss-footer.entry.js +0 -40
- package/dist/ripple/wm-modal-pss-header.entry.js +0 -39
- package/dist/ripple/wm-navigation-hamburger.entry.js +0 -48
- package/dist/ripple/wm-navigation-item.entry.js +0 -18
- package/dist/ripple/wm-option.entry.js +0 -171
- package/dist/ripple/wm-progress-slice.entry.js +0 -13
- package/dist/ripple/wm-select.entry.js +0 -249
- package/dist/ripple/wm-tab-item.entry.js +0 -63
- package/dist/ripple/wm-uploader.entry.js +0 -313
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
import { h, Host, forceUpdate } from "@stencil/core";
|
|
2
|
+
import { debounce, hideTooltip, intl, showTooltip, truncateText } from "../../global/functions";
|
|
3
|
+
/**
|
|
4
|
+
* Displays a single file row with its name, optional metadata, and configurable action buttons
|
|
5
|
+
* (preview, download, delete). Adapts responsively — at narrow widths action buttons collapse
|
|
6
|
+
* into an action menu. Used as a child of wm-file-list or wm-uploader.
|
|
7
|
+
*
|
|
8
|
+
* @accessibility
|
|
9
|
+
* - Icon-only action buttons include context-specific aria labels that embed the filename
|
|
10
|
+
* (e.g. "Download report.pdf") so screen reader users know which file each button acts on.
|
|
11
|
+
* - A visually-hidden `aria-live` region announces upload progress and validation errors.
|
|
12
|
+
*
|
|
13
|
+
* @usageNotes
|
|
14
|
+
* - A unique `id` is required on every wm-file element.
|
|
15
|
+
* - `name` and `type` are both required; `type` is the file extension only (e.g. `pdf`, not a MIME type).
|
|
16
|
+
* - `show-info` is automatically inherited from the parent wm-file-list or wm-uploader when set there.
|
|
17
|
+
* - Pass an empty string to `file-actions` to render no action buttons.
|
|
18
|
+
*
|
|
19
|
+
* @example {html} Basic file row
|
|
20
|
+
* <wm-file-list>
|
|
21
|
+
* <wm-file id="file-1" name="report" type="pdf" last-updated="1/28/2020 5:29 PM"></wm-file>
|
|
22
|
+
* </wm-file-list>
|
|
23
|
+
*
|
|
24
|
+
* @example {react} Basic file row
|
|
25
|
+
* <WmFileList>
|
|
26
|
+
* <WmFile id="file-1" name="report" type="pdf" lastUpdated="1/28/2020 5:29 PM" />
|
|
27
|
+
* </WmFileList>
|
|
28
|
+
*
|
|
29
|
+
* @example {html} All metadata and all actions
|
|
30
|
+
* <wm-file id="file-2" name="thesis" type="docx" file-actions="preview download delete"
|
|
31
|
+
* show-info="all" size="3 MB" last-updated="3/15/2024 9:00 AM"
|
|
32
|
+
* uploaded-by="Uploaded by Smith, John">
|
|
33
|
+
* </wm-file>
|
|
34
|
+
*
|
|
35
|
+
* @example {react} All metadata and all actions
|
|
36
|
+
* <WmFile id="file-2" name="thesis" type="docx" fileActions="preview download delete"
|
|
37
|
+
* showInfo="all" size="3 MB" lastUpdated="3/15/2024 9:00 AM"
|
|
38
|
+
* uploadedBy="Uploaded by Smith, John" />
|
|
39
|
+
*
|
|
40
|
+
* @example {html} File in error state
|
|
41
|
+
* <wm-file id="file-3" name="report" type="pdf" error-message="Upload failed. Please try again."></wm-file>
|
|
42
|
+
*
|
|
43
|
+
* @example {react} File in error state
|
|
44
|
+
* <WmFile id="file-3" name="report" type="pdf" errorMessage="Upload failed. Please try again." />
|
|
45
|
+
*
|
|
46
|
+
* @requiredSetup
|
|
47
|
+
* - Render it inside wm-file-list or wm-uploader; it is not a standalone control.
|
|
48
|
+
* - Give every wm-file a unique `id`. Its events carry no detail, so `event.target` is the only way
|
|
49
|
+
* to tell which file was acted on.
|
|
50
|
+
* - Handle the events for whichever buttons `file-actions` renders -- `wmFileDelete`,
|
|
51
|
+
* `wmFileDownload`, `wmFilePreview` -- bearing in mind it defaults to download and delete.
|
|
52
|
+
* Deleting is not automatic: wm-uploader listens for `wmFileDelete` only to move focus, so the row
|
|
53
|
+
* stays on screen until you drop the file from your own state.
|
|
54
|
+
* - Handle `wmFileErrorCleared` by clearing the `error-message` you set; the parent only restores
|
|
55
|
+
* focus to the upload button.
|
|
56
|
+
* - Update `progress` as an upload proceeds; it drives the progress bar and the aria-live
|
|
57
|
+
* announcement.
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
export class File {
|
|
61
|
+
constructor() {
|
|
62
|
+
this.fullFilename = `${this.name}.${this.type}`;
|
|
63
|
+
this.debouncedUpdate = debounce(async () => {
|
|
64
|
+
forceUpdate(this.el);
|
|
65
|
+
}, 10);
|
|
66
|
+
this.name = undefined;
|
|
67
|
+
this.type = undefined;
|
|
68
|
+
this.fileActions = "download delete";
|
|
69
|
+
this.lastUpdated = undefined;
|
|
70
|
+
this.progress = undefined;
|
|
71
|
+
this.size = undefined;
|
|
72
|
+
this.uploadedBy = undefined;
|
|
73
|
+
this.errorMessage = undefined;
|
|
74
|
+
this.showInfo = "last-updated";
|
|
75
|
+
}
|
|
76
|
+
get isCondensed() {
|
|
77
|
+
// Breakpoint at which file actions are moved into an action menu
|
|
78
|
+
return this.el.clientWidth < 500;
|
|
79
|
+
}
|
|
80
|
+
get isExtraCondensed() {
|
|
81
|
+
// Breakpoint at which file info is moved into a details element
|
|
82
|
+
return this.el.clientWidth < 414;
|
|
83
|
+
}
|
|
84
|
+
get needsTruncation() {
|
|
85
|
+
const boundsEl = this.el.shadowRoot.querySelector(".left-group");
|
|
86
|
+
const measureEl = this.el.shadowRoot.querySelector(".filename-measure");
|
|
87
|
+
if (boundsEl && measureEl && boundsEl.clientWidth < measureEl.clientWidth) {
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
get isUploading() {
|
|
93
|
+
return this.progress !== undefined && this.progress < 100;
|
|
94
|
+
}
|
|
95
|
+
get previewButtonTooltip() {
|
|
96
|
+
return intl.formatMessage({
|
|
97
|
+
id: "file.previewButtonTooltip",
|
|
98
|
+
defaultMessage: "Preview",
|
|
99
|
+
description: "Tooltip of a button that triggers a file to be previewed",
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
get downloadButtonTooltip() {
|
|
103
|
+
return intl.formatMessage({
|
|
104
|
+
id: "file.downloadButtonTooltip",
|
|
105
|
+
defaultMessage: "Download",
|
|
106
|
+
description: "Tooltip of a button that triggers a file to be downloaded",
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
get deleteButtonTooltip() {
|
|
110
|
+
return intl.formatMessage({
|
|
111
|
+
id: "file.deleteButtonTooltip",
|
|
112
|
+
defaultMessage: "Delete",
|
|
113
|
+
description: "Tooltip of a button that triggers a file to be deleted",
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
get previewActionMessage() {
|
|
117
|
+
return intl.formatMessage({
|
|
118
|
+
id: "file.previewAction",
|
|
119
|
+
defaultMessage: "Preview File",
|
|
120
|
+
description: "Label of a button that triggers a file to be previewed",
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
get downloadActionMessage() {
|
|
124
|
+
return intl.formatMessage({
|
|
125
|
+
id: "file.downloadAction",
|
|
126
|
+
defaultMessage: "Download File",
|
|
127
|
+
description: "Label of a button that triggers a file to be downloaded",
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
get deleteActionMessage() {
|
|
131
|
+
return intl.formatMessage({
|
|
132
|
+
id: "file.deleteAction",
|
|
133
|
+
defaultMessage: "Delete File",
|
|
134
|
+
description: "Label of a button that triggers a file to be delete",
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
get actionMenuLabel() {
|
|
138
|
+
return intl.formatMessage({
|
|
139
|
+
id: "file.actionMenuLabel",
|
|
140
|
+
defaultMessage: "Actions",
|
|
141
|
+
description: "Label of a button that opens a menu of file actions",
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
get clearButtonText() {
|
|
145
|
+
return intl.formatMessage({
|
|
146
|
+
id: "file.clearErrorText",
|
|
147
|
+
defaultMessage: "Clear",
|
|
148
|
+
description: "Text for a button used to clear an error",
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
generateClearButtonLabel(filename) {
|
|
152
|
+
return intl.formatMessage({
|
|
153
|
+
id: "file.clearErrorLabel",
|
|
154
|
+
defaultMessage: "Clear {fileName} error",
|
|
155
|
+
description: "Label for a button used to clear an error, including filename",
|
|
156
|
+
}, { fileName: filename });
|
|
157
|
+
}
|
|
158
|
+
componentWillLoad() {
|
|
159
|
+
if (!this.el.id) {
|
|
160
|
+
console.error("wm-file: a file id is required");
|
|
161
|
+
}
|
|
162
|
+
if (!this.name) {
|
|
163
|
+
console.error('wm-file: "name" is a required property');
|
|
164
|
+
}
|
|
165
|
+
if (!this.type) {
|
|
166
|
+
console.error('wm-file: "type" is a required property');
|
|
167
|
+
}
|
|
168
|
+
// inherit showInfo property from parent
|
|
169
|
+
if (this.el.parentElement && this.el.parentElement.showInfo) {
|
|
170
|
+
this.showInfo = this.el.parentElement.showInfo;
|
|
171
|
+
}
|
|
172
|
+
if (this.showInfo === "time") {
|
|
173
|
+
console.warn("wm-file: show-info='time' is deprecated, use show-info='last-updated'");
|
|
174
|
+
this.showInfo = "last-updated";
|
|
175
|
+
}
|
|
176
|
+
// rerender on resize in case layout needs to change
|
|
177
|
+
const resizeObserver = new ResizeObserver(() => this.debouncedUpdate());
|
|
178
|
+
resizeObserver.observe(this.el);
|
|
179
|
+
}
|
|
180
|
+
truncateFilename() {
|
|
181
|
+
let summaryFilenameEl = this.el.shadowRoot.querySelector("#summary-filename-trunc");
|
|
182
|
+
if (summaryFilenameEl) {
|
|
183
|
+
summaryFilenameEl.textContent = truncateText(summaryFilenameEl, this.fullFilename, summaryFilenameEl.parentElement.clientWidth - 32, 7);
|
|
184
|
+
if (summaryFilenameEl.textContent === this.fullFilename) {
|
|
185
|
+
summaryFilenameEl.classList.remove("-truncated");
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
summaryFilenameEl.classList.add("-truncated");
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
componentDidRender() {
|
|
193
|
+
this.truncateFilename();
|
|
194
|
+
}
|
|
195
|
+
previewFile() {
|
|
196
|
+
this.wmFilePreview.emit();
|
|
197
|
+
}
|
|
198
|
+
downloadFile() {
|
|
199
|
+
this.wmFileDownload.emit();
|
|
200
|
+
}
|
|
201
|
+
deleteFile() {
|
|
202
|
+
this.wmFileDelete.emit();
|
|
203
|
+
}
|
|
204
|
+
handleFilenameMouseEnter(ev) {
|
|
205
|
+
// only show tooltip if file name is being truncated (has ellipses)
|
|
206
|
+
if (ev.target.textContent !== this.fullFilename) {
|
|
207
|
+
showTooltip("bottom", ev.target, this.fullFilename);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
renderFileName() {
|
|
211
|
+
const showDetailsToggle = this.isExtraCondensed && (this.needsTruncation || (this.showInfo !== "none" && !this.errorMessage));
|
|
212
|
+
return (h("div", { class: "left-group" }, h("div", { class: "name-wrapper" }, h("span", { class: "sr-only" }, this.fullFilename), h("span", { "aria-hidden": "true", class: `filename ${showDetailsToggle ? "hidden" : ""}` }, this.fullFilename), this.isUploading && h("span", { class: "sr-only" }, "uploading")), showDetailsToggle && this.renderDetailsToggle()));
|
|
213
|
+
}
|
|
214
|
+
renderFileInfo() {
|
|
215
|
+
return (h("div", { class: "file-info" }, (this.showInfo === "uploaded-by" || this.showInfo === "all") && (h("div", { class: "uploader-name" }, this.uploadedBy)), (this.showInfo === "last-updated" || this.showInfo === "all") && h("div", null, this.lastUpdated), (this.showInfo === "size" || this.showInfo === "all") && h("div", null, this.size)));
|
|
216
|
+
}
|
|
217
|
+
renderActionMenu() {
|
|
218
|
+
const previewItem = (h("wm-menuitem", { icon: "#show", onClick: () => this.previewFile() }, this.previewActionMessage));
|
|
219
|
+
const downloadItem = (h("wm-menuitem", { icon: "#download", onClick: () => this.downloadFile() }, this.downloadActionMessage));
|
|
220
|
+
const deleteItem = (h("wm-menuitem", { icon: "#delete", onClick: () => this.deleteFile() }, this.deleteActionMessage));
|
|
221
|
+
return (h("wm-action-menu", { "action-menu-type": "icon", tooltip: this.actionMenuLabel, "tooltip-position": "bottom", "label-for-identical-buttons": `${this.name} ${this.actionMenuLabel}` }, this.fileActions.includes("preview") && previewItem, this.fileActions.includes("download") && downloadItem, this.fileActions.includes("delete") && deleteItem));
|
|
222
|
+
}
|
|
223
|
+
renderFileActionButtons() {
|
|
224
|
+
const previewButton = (h("wm-button", { class: "preview-button", "button-type": "icononly", tooltip: this.previewButtonTooltip, "tooltip-position": "bottom", "label-for-identical-buttons": `preview ${this.name}`, icon: "#show", onClick: () => this.previewFile() }));
|
|
225
|
+
const downloadButton = (h("wm-button", { class: "download-button", "button-type": "icononly", tooltip: this.downloadButtonTooltip, "tooltip-position": "bottom", "label-for-identical-buttons": `download ${this.name}`, icon: "#download", onClick: () => this.downloadFile() }));
|
|
226
|
+
const deleteButton = (h("wm-button", { class: "delete-button", "button-type": "icononly", tooltip: this.deleteButtonTooltip, "tooltip-position": "bottom", "label-for-identical-buttons": `delete ${this.name}`, icon: "#delete", onClick: () => this.deleteFile() }));
|
|
227
|
+
return (h("div", { class: "file-controls" }, this.fileActions.includes("preview") && previewButton, this.fileActions.includes("download") && downloadButton, this.fileActions.includes("delete") && deleteButton));
|
|
228
|
+
}
|
|
229
|
+
renderFileInProgress() {
|
|
230
|
+
return (h("div", { class: "file-wrapper" }, h("div", { class: "file --progress" }, h("div", { class: "progress", style: {
|
|
231
|
+
background: `linear-gradient(to right, var(--wmcolor-file-progress) ${this.progress}%, transparent ${this.progress}%)`,
|
|
232
|
+
} }), this.renderFileName())));
|
|
233
|
+
}
|
|
234
|
+
renderFileControls() {
|
|
235
|
+
const hasSingleFileAction = this.fileActions.split(" ").length === 1;
|
|
236
|
+
const showActionMenu = this.isCondensed && !hasSingleFileAction;
|
|
237
|
+
return showActionMenu ? this.renderActionMenu() : this.renderFileActionButtons();
|
|
238
|
+
}
|
|
239
|
+
renderDetailsToggle() {
|
|
240
|
+
return (h("details", { id: "file-details" }, h("summary", null, h("div", { class: "filename-measure", "aria-hidden": "true" }, this.fullFilename), h("span", { id: "summary-filename-trunc", onMouseEnter: (ev) => this.handleFilenameMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.fullFilename), h("span", { id: "summary-filename-wrap" }, this.fullFilename)), !this.errorMessage && this.renderFileInfo()));
|
|
241
|
+
}
|
|
242
|
+
renderFile() {
|
|
243
|
+
const showRightGroup = !this.errorMessage && (this.fileActions !== "" || this.showInfo !== "none");
|
|
244
|
+
return (h("div", { class: `file-wrapper` }, h("div", { class: `file ${this.errorMessage ? "--error" : ""} ${this.isCondensed ? "condensed" : ""} ${this.isExtraCondensed ? "extra-condensed" : ""}` }, this.renderFileName(), showRightGroup && (h("div", { class: "right-group" }, !this.isExtraCondensed && this.renderFileInfo(), this.fileActions !== "" && this.renderFileControls())), this.errorMessage && (h("div", { class: "right-group" }, h("wm-button", { "permanently-delete": true, "button-type": "textonly", "label-for-identical-buttons": this.generateClearButtonLabel(this.name), onClick: () => this.wmFileErrorCleared.emit() }, this.clearButtonText))), this.progress == 100 && h("span", { class: "svg-icon svg-success" })), this.errorMessage && h("div", { class: "error-message" }, this.errorMessage)));
|
|
245
|
+
}
|
|
246
|
+
render() {
|
|
247
|
+
return h(Host, { key: '3d6dc80e1864ae1e61f767dbf9e46ffa13267d19', role: "listitem" }, this.isUploading ? this.renderFileInProgress() : this.renderFile());
|
|
248
|
+
}
|
|
249
|
+
static get is() { return "wm-file"; }
|
|
250
|
+
static get encapsulation() { return "shadow"; }
|
|
251
|
+
static get delegatesFocus() { return true; }
|
|
252
|
+
static get originalStyleUrls() {
|
|
253
|
+
return {
|
|
254
|
+
"$": ["wm-file.scss"]
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
static get styleUrls() {
|
|
258
|
+
return {
|
|
259
|
+
"$": ["wm-file.css"]
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
static get properties() {
|
|
263
|
+
return {
|
|
264
|
+
"name": {
|
|
265
|
+
"type": "string",
|
|
266
|
+
"mutable": false,
|
|
267
|
+
"complexType": {
|
|
268
|
+
"original": "string",
|
|
269
|
+
"resolved": "string",
|
|
270
|
+
"references": {}
|
|
271
|
+
},
|
|
272
|
+
"required": true,
|
|
273
|
+
"optional": false,
|
|
274
|
+
"docs": {
|
|
275
|
+
"tags": [{
|
|
276
|
+
"name": "description",
|
|
277
|
+
"text": "Filename without the extension."
|
|
278
|
+
}, {
|
|
279
|
+
"name": "required",
|
|
280
|
+
"text": undefined
|
|
281
|
+
}],
|
|
282
|
+
"text": ""
|
|
283
|
+
},
|
|
284
|
+
"attribute": "name",
|
|
285
|
+
"reflect": false
|
|
286
|
+
},
|
|
287
|
+
"type": {
|
|
288
|
+
"type": "string",
|
|
289
|
+
"mutable": false,
|
|
290
|
+
"complexType": {
|
|
291
|
+
"original": "string",
|
|
292
|
+
"resolved": "string",
|
|
293
|
+
"references": {}
|
|
294
|
+
},
|
|
295
|
+
"required": true,
|
|
296
|
+
"optional": false,
|
|
297
|
+
"docs": {
|
|
298
|
+
"tags": [{
|
|
299
|
+
"name": "description",
|
|
300
|
+
"text": "File extension without the leading dot (e.g. `pdf`, `docx`). Not a MIME type."
|
|
301
|
+
}, {
|
|
302
|
+
"name": "required",
|
|
303
|
+
"text": undefined
|
|
304
|
+
}],
|
|
305
|
+
"text": ""
|
|
306
|
+
},
|
|
307
|
+
"attribute": "type",
|
|
308
|
+
"reflect": false
|
|
309
|
+
},
|
|
310
|
+
"fileActions": {
|
|
311
|
+
"type": "string",
|
|
312
|
+
"mutable": false,
|
|
313
|
+
"complexType": {
|
|
314
|
+
"original": "string",
|
|
315
|
+
"resolved": "string",
|
|
316
|
+
"references": {}
|
|
317
|
+
},
|
|
318
|
+
"required": false,
|
|
319
|
+
"optional": false,
|
|
320
|
+
"docs": {
|
|
321
|
+
"tags": [{
|
|
322
|
+
"name": "description",
|
|
323
|
+
"text": "Space-separated list of action buttons to display. Accepts any combination of\n`preview`, `download`, and `delete`. Pass an empty string to show no actions."
|
|
324
|
+
}, {
|
|
325
|
+
"name": "default",
|
|
326
|
+
"text": "\"download delete\""
|
|
327
|
+
}],
|
|
328
|
+
"text": ""
|
|
329
|
+
},
|
|
330
|
+
"attribute": "file-actions",
|
|
331
|
+
"reflect": false,
|
|
332
|
+
"defaultValue": "\"download delete\""
|
|
333
|
+
},
|
|
334
|
+
"lastUpdated": {
|
|
335
|
+
"type": "string",
|
|
336
|
+
"mutable": false,
|
|
337
|
+
"complexType": {
|
|
338
|
+
"original": "string",
|
|
339
|
+
"resolved": "string | undefined",
|
|
340
|
+
"references": {}
|
|
341
|
+
},
|
|
342
|
+
"required": false,
|
|
343
|
+
"optional": true,
|
|
344
|
+
"docs": {
|
|
345
|
+
"tags": [{
|
|
346
|
+
"name": "description",
|
|
347
|
+
"text": "Upload date/time displayed as file metadata. Any display string is accepted\n(e.g. `\"1/28/2020 5:29 PM\"`)."
|
|
348
|
+
}],
|
|
349
|
+
"text": ""
|
|
350
|
+
},
|
|
351
|
+
"attribute": "last-updated",
|
|
352
|
+
"reflect": false
|
|
353
|
+
},
|
|
354
|
+
"progress": {
|
|
355
|
+
"type": "number",
|
|
356
|
+
"mutable": false,
|
|
357
|
+
"complexType": {
|
|
358
|
+
"original": "number",
|
|
359
|
+
"resolved": "number | undefined",
|
|
360
|
+
"references": {}
|
|
361
|
+
},
|
|
362
|
+
"required": false,
|
|
363
|
+
"optional": true,
|
|
364
|
+
"docs": {
|
|
365
|
+
"tags": [{
|
|
366
|
+
"name": "description",
|
|
367
|
+
"text": "Upload progress as a percentage (0\u2013100). When set and less than 100, the file\nrenders in an in-progress state with a progress bar."
|
|
368
|
+
}],
|
|
369
|
+
"text": ""
|
|
370
|
+
},
|
|
371
|
+
"attribute": "progress",
|
|
372
|
+
"reflect": true
|
|
373
|
+
},
|
|
374
|
+
"size": {
|
|
375
|
+
"type": "string",
|
|
376
|
+
"mutable": false,
|
|
377
|
+
"complexType": {
|
|
378
|
+
"original": "string",
|
|
379
|
+
"resolved": "string | undefined",
|
|
380
|
+
"references": {}
|
|
381
|
+
},
|
|
382
|
+
"required": false,
|
|
383
|
+
"optional": true,
|
|
384
|
+
"docs": {
|
|
385
|
+
"tags": [{
|
|
386
|
+
"name": "description",
|
|
387
|
+
"text": "File size displayed as file metadata. Include the unit in the string\n(e.g. `\"3 MB\"`)."
|
|
388
|
+
}],
|
|
389
|
+
"text": ""
|
|
390
|
+
},
|
|
391
|
+
"attribute": "size",
|
|
392
|
+
"reflect": false
|
|
393
|
+
},
|
|
394
|
+
"uploadedBy": {
|
|
395
|
+
"type": "string",
|
|
396
|
+
"mutable": false,
|
|
397
|
+
"complexType": {
|
|
398
|
+
"original": "string",
|
|
399
|
+
"resolved": "string | undefined",
|
|
400
|
+
"references": {}
|
|
401
|
+
},
|
|
402
|
+
"required": false,
|
|
403
|
+
"optional": true,
|
|
404
|
+
"docs": {
|
|
405
|
+
"tags": [{
|
|
406
|
+
"name": "description",
|
|
407
|
+
"text": "Uploader attribution displayed as file metadata\n(e.g. `\"Uploaded by Smith, John\"`)."
|
|
408
|
+
}],
|
|
409
|
+
"text": ""
|
|
410
|
+
},
|
|
411
|
+
"attribute": "uploaded-by",
|
|
412
|
+
"reflect": false
|
|
413
|
+
},
|
|
414
|
+
"errorMessage": {
|
|
415
|
+
"type": "string",
|
|
416
|
+
"mutable": false,
|
|
417
|
+
"complexType": {
|
|
418
|
+
"original": "string",
|
|
419
|
+
"resolved": "string | undefined",
|
|
420
|
+
"references": {}
|
|
421
|
+
},
|
|
422
|
+
"required": false,
|
|
423
|
+
"optional": true,
|
|
424
|
+
"docs": {
|
|
425
|
+
"tags": [{
|
|
426
|
+
"name": "description",
|
|
427
|
+
"text": "Puts the file row in an error state and displays this message below it."
|
|
428
|
+
}],
|
|
429
|
+
"text": ""
|
|
430
|
+
},
|
|
431
|
+
"attribute": "error-message",
|
|
432
|
+
"reflect": false
|
|
433
|
+
},
|
|
434
|
+
"showInfo": {
|
|
435
|
+
"type": "string",
|
|
436
|
+
"mutable": true,
|
|
437
|
+
"complexType": {
|
|
438
|
+
"original": "\"time\" | \"last-updated\" | \"size\" | \"uploaded-by\" | \"all\" | \"none\"",
|
|
439
|
+
"resolved": "\"all\" | \"last-updated\" | \"none\" | \"size\" | \"time\" | \"uploaded-by\" | undefined",
|
|
440
|
+
"references": {}
|
|
441
|
+
},
|
|
442
|
+
"required": false,
|
|
443
|
+
"optional": true,
|
|
444
|
+
"docs": {
|
|
445
|
+
"tags": [{
|
|
446
|
+
"name": "description",
|
|
447
|
+
"text": "Which metadata to display alongside the filename. Automatically inherited\nfrom the parent wm-file-list or wm-uploader when set there."
|
|
448
|
+
}, {
|
|
449
|
+
"name": "default",
|
|
450
|
+
"text": "\"last-updated\""
|
|
451
|
+
}],
|
|
452
|
+
"text": ""
|
|
453
|
+
},
|
|
454
|
+
"attribute": "show-info",
|
|
455
|
+
"reflect": false,
|
|
456
|
+
"defaultValue": "\"last-updated\""
|
|
457
|
+
}
|
|
458
|
+
};
|
|
459
|
+
}
|
|
460
|
+
static get events() {
|
|
461
|
+
return [{
|
|
462
|
+
"method": "wmFilePreview",
|
|
463
|
+
"name": "wmFilePreview",
|
|
464
|
+
"bubbles": true,
|
|
465
|
+
"cancelable": true,
|
|
466
|
+
"composed": true,
|
|
467
|
+
"docs": {
|
|
468
|
+
"tags": [{
|
|
469
|
+
"name": "description",
|
|
470
|
+
"text": "Fires when the preview button is clicked."
|
|
471
|
+
}],
|
|
472
|
+
"text": ""
|
|
473
|
+
},
|
|
474
|
+
"complexType": {
|
|
475
|
+
"original": "any",
|
|
476
|
+
"resolved": "any",
|
|
477
|
+
"references": {}
|
|
478
|
+
}
|
|
479
|
+
}, {
|
|
480
|
+
"method": "wmFileDownload",
|
|
481
|
+
"name": "wmFileDownload",
|
|
482
|
+
"bubbles": true,
|
|
483
|
+
"cancelable": true,
|
|
484
|
+
"composed": true,
|
|
485
|
+
"docs": {
|
|
486
|
+
"tags": [{
|
|
487
|
+
"name": "description",
|
|
488
|
+
"text": "Fires when the download button is clicked."
|
|
489
|
+
}],
|
|
490
|
+
"text": ""
|
|
491
|
+
},
|
|
492
|
+
"complexType": {
|
|
493
|
+
"original": "any",
|
|
494
|
+
"resolved": "any",
|
|
495
|
+
"references": {}
|
|
496
|
+
}
|
|
497
|
+
}, {
|
|
498
|
+
"method": "wmFileDelete",
|
|
499
|
+
"name": "wmFileDelete",
|
|
500
|
+
"bubbles": true,
|
|
501
|
+
"cancelable": true,
|
|
502
|
+
"composed": true,
|
|
503
|
+
"docs": {
|
|
504
|
+
"tags": [{
|
|
505
|
+
"name": "description",
|
|
506
|
+
"text": "Fires when the delete button is clicked."
|
|
507
|
+
}],
|
|
508
|
+
"text": ""
|
|
509
|
+
},
|
|
510
|
+
"complexType": {
|
|
511
|
+
"original": "any",
|
|
512
|
+
"resolved": "any",
|
|
513
|
+
"references": {}
|
|
514
|
+
}
|
|
515
|
+
}, {
|
|
516
|
+
"method": "wmFileErrorCleared",
|
|
517
|
+
"name": "wmFileErrorCleared",
|
|
518
|
+
"bubbles": true,
|
|
519
|
+
"cancelable": true,
|
|
520
|
+
"composed": true,
|
|
521
|
+
"docs": {
|
|
522
|
+
"tags": [{
|
|
523
|
+
"name": "description",
|
|
524
|
+
"text": "Fires when the user clears a file error by clicking the Clear button."
|
|
525
|
+
}],
|
|
526
|
+
"text": ""
|
|
527
|
+
},
|
|
528
|
+
"complexType": {
|
|
529
|
+
"original": "any",
|
|
530
|
+
"resolved": "any",
|
|
531
|
+
"references": {}
|
|
532
|
+
}
|
|
533
|
+
}];
|
|
534
|
+
}
|
|
535
|
+
static get elementRef() { return "el"; }
|
|
536
|
+
}
|