@watermarkinsights/ripple 0.0.0-1 → 0.0.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/components/index.d.ts +33 -0
- package/dist/components/priv-calendar.d.ts +11 -0
- package/dist/components/priv-chart-popover.d.ts +11 -0
- package/dist/components/priv-navigator-button.d.ts +11 -0
- package/dist/components/priv-navigator-item.d.ts +11 -0
- package/dist/components/priv-option-list.d.ts +11 -0
- package/dist/components/wm-action-menu.d.ts +11 -0
- package/dist/components/wm-button.d.ts +11 -0
- package/dist/components/wm-chart-slice.d.ts +11 -0
- package/dist/components/wm-chart.d.ts +11 -0
- package/dist/components/wm-date-range.d.ts +11 -0
- package/dist/components/wm-datepicker.d.ts +11 -0
- package/dist/components/wm-file-list.d.ts +11 -0
- package/dist/components/wm-file.d.ts +11 -0
- package/dist/components/wm-flyout.d.ts +11 -0
- package/dist/components/wm-input.d.ts +11 -0
- package/dist/components/wm-line-chart.d.ts +11 -0
- package/dist/components/wm-menuitem.d.ts +11 -0
- package/dist/components/wm-modal-footer.d.ts +11 -0
- package/dist/components/wm-modal-header.d.ts +11 -0
- package/dist/components/wm-modal-pss-footer.d.ts +11 -0
- package/dist/components/wm-modal-pss-header.d.ts +11 -0
- package/dist/components/wm-modal-pss.d.ts +11 -0
- package/dist/components/wm-modal.d.ts +11 -0
- package/dist/components/wm-navigation-hamburger.d.ts +11 -0
- package/dist/components/wm-navigation-item.d.ts +11 -0
- package/dist/components/wm-navigation.d.ts +11 -0
- package/dist/components/wm-navigator.d.ts +11 -0
- package/dist/components/wm-nested-select.d.ts +11 -0
- package/dist/components/wm-optgroup.d.ts +11 -0
- package/dist/components/wm-option.d.ts +11 -0
- package/dist/components/wm-pagination.d.ts +11 -0
- package/dist/components/wm-progress-indicator.d.ts +11 -0
- package/dist/components/wm-progress-monitor.d.ts +11 -0
- package/dist/components/wm-progress-slice.d.ts +11 -0
- package/dist/components/wm-search.d.ts +11 -0
- package/dist/components/wm-select.d.ts +11 -0
- package/dist/components/wm-snackbar.d.ts +11 -0
- package/dist/components/wm-tab-item.d.ts +11 -0
- package/dist/components/wm-tab-list.d.ts +11 -0
- package/dist/components/wm-tab-panel.d.ts +11 -0
- package/dist/components/wm-tag-input.d.ts +11 -0
- package/dist/components/wm-tag-option.d.ts +11 -0
- package/dist/components/wm-textarea.d.ts +11 -0
- package/dist/components/wm-timepicker.d.ts +11 -0
- package/dist/components/wm-toggletip.d.ts +11 -0
- package/dist/components/wm-uploader.d.ts +11 -0
- package/dist/components/wm-wrapper.d.ts +11 -0
- package/dist/ripple/app-globals-B7cOtGhY.js +170 -0
- package/dist/ripple/chartFunctions-CmeM8Tyx.js +725 -0
- package/dist/ripple/functions-DVLl0rH_.js +18108 -0
- package/dist/ripple/index-CU5QNCKv.js +4167 -0
- package/dist/ripple/index.esm.js +1 -0
- package/dist/ripple/interfaces-CrANcZM9.js +53 -0
- package/dist/ripple/intl-7p27BJSM.js +277 -0
- package/dist/ripple/priv-calendar.entry.js +566 -0
- package/dist/ripple/priv-chart-popover.entry.js +134 -0
- package/dist/ripple/priv-navigator-button.entry.js +24 -0
- package/dist/ripple/priv-navigator-item.entry.js +30 -0
- package/dist/ripple/priv-option-list.entry.js +385 -0
- package/dist/ripple/ripple.esm.js +48 -1
- package/dist/ripple/wm-action-menu.entry.js +201 -0
- package/dist/ripple/wm-button.entry.js +197 -0
- package/dist/ripple/wm-chart-slice.entry.js +18 -0
- package/dist/ripple/wm-chart.entry.js +157 -0
- package/dist/ripple/wm-date-range.entry.js +477 -0
- package/dist/ripple/wm-datepicker.entry.js +247 -0
- package/dist/ripple/wm-file-list.entry.js +18 -0
- package/dist/ripple/wm-file.entry.js +182 -0
- package/dist/ripple/wm-flyout.entry.js +167 -0
- package/dist/ripple/wm-input.entry.js +111 -0
- package/dist/ripple/wm-line-chart.entry.js +449 -0
- package/dist/ripple/wm-menuitem.entry.js +125 -0
- package/dist/ripple/wm-modal-footer.entry.js +44 -0
- package/dist/ripple/wm-modal-header.entry.js +36 -0
- package/dist/ripple/wm-modal-pss-footer.entry.js +40 -0
- package/dist/ripple/wm-modal-pss-header.entry.js +39 -0
- package/dist/ripple/wm-modal-pss.entry.js +135 -0
- package/dist/ripple/wm-modal.entry.js +133 -0
- package/dist/ripple/wm-navigation-hamburger.entry.js +48 -0
- package/dist/ripple/wm-navigation-item.entry.js +18 -0
- package/dist/ripple/wm-navigation.entry.js +116 -0
- package/dist/ripple/wm-navigator.entry.js +368 -0
- package/dist/ripple/wm-nested-select.entry.js +308 -0
- package/dist/ripple/wm-optgroup.entry.js +68 -0
- package/dist/ripple/wm-option.entry.js +171 -0
- package/dist/ripple/wm-pagination.entry.js +223 -0
- package/dist/ripple/wm-progress-indicator.entry.js +107 -0
- package/dist/ripple/wm-progress-monitor.entry.js +71 -0
- package/dist/ripple/wm-progress-slice.entry.js +13 -0
- package/dist/ripple/wm-search.entry.js +208 -0
- package/dist/ripple/wm-select.entry.js +249 -0
- package/dist/ripple/wm-snackbar.entry.js +185 -0
- package/dist/ripple/wm-tab-item.entry.js +63 -0
- package/dist/ripple/wm-tab-list.entry.js +175 -0
- package/dist/ripple/wm-tab-panel.entry.js +32 -0
- package/dist/ripple/wm-tag-input.entry.js +877 -0
- package/dist/ripple/wm-tag-option.entry.js +35 -0
- package/dist/ripple/wm-textarea.entry.js +79 -0
- package/dist/ripple/wm-timepicker.entry.js +300 -0
- package/dist/ripple/wm-toggletip.entry.js +176 -0
- package/dist/ripple/wm-uploader.entry.js +313 -0
- package/dist/ripple/wm-wrapper.entry.js +17 -0
- package/dist/types/components/charts/chartFunctions.d.ts +41 -0
- package/dist/types/components/charts/priv-chart-popover/priv-chart-popover.d.ts +26 -0
- package/dist/types/components/charts/wm-chart/wm-chart-slice.d.ts +11 -0
- package/dist/types/components/charts/wm-chart/wm-chart.d.ts +44 -0
- package/dist/types/components/charts/wm-line-chart/wm-line-chart.d.ts +77 -0
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-indicator.d.ts +34 -0
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-monitor.d.ts +22 -0
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-slice.d.ts +10 -0
- package/dist/types/components/datepickers/priv-calendar/priv-calendar.d.ts +77 -0
- package/dist/types/components/datepickers/wm-date-range.d.ts +73 -0
- package/dist/types/components/datepickers/wm-datepicker.d.ts +49 -0
- package/dist/types/components/selects/priv-option-list/priv-option-list.d.ts +71 -0
- package/dist/types/components/selects/wm-nested-select/wm-nested-select.d.ts +61 -0
- package/dist/types/components/selects/wm-optgroup/wm-optgroup.d.ts +21 -0
- package/dist/types/components/selects/wm-option/wm-option.d.ts +40 -0
- package/dist/types/components/selects/wm-select/wm-select.d.ts +55 -0
- package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +40 -40
- package/dist/types/components/wm-button/wm-button.d.ts +38 -34
- package/dist/types/components/wm-file/wm-file.d.ts +45 -0
- package/dist/types/components/wm-file-list/wm-file-list.d.ts +5 -0
- package/dist/types/components/wm-flyout/wm-flyout.d.ts +47 -0
- package/dist/types/components/wm-input/wm-input.d.ts +49 -28
- package/dist/types/components/wm-menuitem/wm-menuitem.d.ts +26 -27
- package/dist/types/components/wm-modal/wm-modal-footer.d.ts +12 -13
- package/dist/types/components/wm-modal/wm-modal-header.d.ts +8 -10
- package/dist/types/components/wm-modal/wm-modal.d.ts +27 -31
- package/dist/types/components/wm-modal-pss/wm-modal-pss-footer.d.ts +14 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss-header.d.ts +10 -0
- package/dist/types/components/wm-modal-pss/wm-modal-pss.d.ts +33 -0
- package/dist/types/components/wm-navigation/wm-navigation-hamburger.d.ts +16 -0
- package/dist/types/components/wm-navigation/wm-navigation-item.d.ts +9 -0
- package/dist/types/components/wm-navigation/wm-navigation.d.ts +23 -0
- package/dist/types/components/wm-navigator/priv-navigator-button/priv-navigator-button.d.ts +6 -7
- package/dist/types/components/wm-navigator/priv-navigator-item/priv-navigator-item.d.ts +10 -10
- package/dist/types/components/wm-navigator/wm-navigator.d.ts +55 -57
- package/dist/types/components/wm-pagination/wm-pagination.d.ts +30 -28
- package/dist/types/components/wm-search/wm-search.d.ts +71 -75
- package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +28 -28
- package/dist/types/components/wm-tabs/wm-tab-item/wm-tab-item.d.ts +28 -31
- package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +38 -47
- package/dist/types/components/wm-tabs/wm-tab-panel/wm-tab-panel.d.ts +14 -16
- package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +117 -80
- package/dist/types/components/wm-tag-input/wm-tag-option/wm-tag-option.d.ts +18 -0
- package/dist/types/components/wm-textarea/wm-textarea.d.ts +30 -0
- package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +48 -55
- package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +24 -23
- package/dist/types/components/wm-uploader/wm-uploader.d.ts +63 -72
- package/dist/types/components/wm-wrapper/wm-wrapper.d.ts +4 -4
- package/dist/types/components.d.ts +1364 -207
- package/dist/types/global/__mocks__/functions.d.ts +2 -1
- package/dist/types/global/functions.d.ts +62 -10
- package/dist/types/global/interfaces.d.ts +95 -23
- package/dist/types/global/intl.d.ts +62 -0
- package/dist/types/global/services/__mocks__/http-service.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +176 -37
- package/package.json +43 -24
- package/dist/cjs/app-globals-6b0c6e80.js +0 -110
- package/dist/cjs/app-globals-f1dd8fda.js +0 -47
- package/dist/cjs/css-shim-a7379e2b.js +0 -6
- package/dist/cjs/dom-3e7d9c3b.js +0 -75
- package/dist/cjs/functions-65513c61.js +0 -8360
- package/dist/cjs/functions-e3f5ae65.js +0 -6137
- package/dist/cjs/global-eddeee0b.js +0 -36
- package/dist/cjs/http-service-9e8c4dd5.js +0 -57
- package/dist/cjs/index-298ebef1.js +0 -2976
- package/dist/cjs/index-d930307d.js +0 -1392
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/interfaces-30a74c1f.js +0 -35
- package/dist/cjs/interfaces-b2beb752.js +0 -54
- package/dist/cjs/loader.cjs.js +0 -22
- package/dist/cjs/priv-chart-popover.cjs.entry.js +0 -89
- package/dist/cjs/priv-datepicker.cjs.entry.js +0 -672
- package/dist/cjs/priv-navigator-button.cjs.entry.js +0 -29
- package/dist/cjs/priv-navigator-item.cjs.entry.js +0 -34
- package/dist/cjs/ripple.cjs.js +0 -20
- package/dist/cjs/shadow-css-09555044.js +0 -391
- package/dist/cjs/wm-action-menu.cjs.entry.js +0 -206
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +0 -318
- package/dist/cjs/wm-button.cjs.entry.js +0 -152
- package/dist/cjs/wm-chart-slice.cjs.entry.js +0 -22
- package/dist/cjs/wm-chart.cjs.entry.js +0 -508
- package/dist/cjs/wm-datepicker.cjs.entry.js +0 -262
- package/dist/cjs/wm-input.cjs.entry.js +0 -110
- package/dist/cjs/wm-menuitem.cjs.entry.js +0 -118
- package/dist/cjs/wm-modal-footer.cjs.entry.js +0 -43
- package/dist/cjs/wm-modal-header.cjs.entry.js +0 -45
- package/dist/cjs/wm-modal.cjs.entry.js +0 -149
- package/dist/cjs/wm-navigator.cjs.entry.js +0 -279
- package/dist/cjs/wm-network-uploader.cjs.entry.js +0 -431
- package/dist/cjs/wm-option.cjs.entry.js +0 -123
- package/dist/cjs/wm-option_2.cjs.entry.js +0 -483
- package/dist/cjs/wm-pagination.cjs.entry.js +0 -176
- package/dist/cjs/wm-search.cjs.entry.js +0 -231
- package/dist/cjs/wm-select.cjs.entry.js +0 -366
- package/dist/cjs/wm-snackbar.cjs.entry.js +0 -160
- package/dist/cjs/wm-tab-item.cjs.entry.js +0 -82
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +0 -316
- package/dist/cjs/wm-tab-list.cjs.entry.js +0 -205
- package/dist/cjs/wm-tab-panel.cjs.entry.js +0 -42
- package/dist/cjs/wm-tag-input.cjs.entry.js +0 -513
- package/dist/cjs/wm-timepicker.cjs.entry.js +0 -386
- package/dist/cjs/wm-toggletip.cjs.entry.js +0 -128
- package/dist/cjs/wm-uploader.cjs.entry.js +0 -342
- package/dist/cjs/wm-wrapper.cjs.entry.js +0 -21
- package/dist/collection/collection-manifest.json +0 -131
- package/dist/collection/components/wm-action-menu/wm-action-menu.css +0 -122
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +0 -392
- package/dist/collection/components/wm-button/wm-button.css +0 -572
- package/dist/collection/components/wm-button/wm-button.js +0 -365
- package/dist/collection/components/wm-chart/priv-chart-popover/priv-chart-popover.css +0 -132
- package/dist/collection/components/wm-chart/priv-chart-popover/priv-chart-popover.js +0 -232
- package/dist/collection/components/wm-chart/wm-chart-slice.js +0 -64
- package/dist/collection/components/wm-chart/wm-chart.css +0 -337
- package/dist/collection/components/wm-chart/wm-chart.js +0 -710
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.css +0 -365
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.js +0 -1003
- package/dist/collection/components/wm-datepicker/wm-datepicker.css +0 -211
- package/dist/collection/components/wm-datepicker/wm-datepicker.js +0 -445
- package/dist/collection/components/wm-input/wm-input.css +0 -220
- package/dist/collection/components/wm-input/wm-input.js +0 -302
- package/dist/collection/components/wm-menuitem/wm-menuitem.css +0 -118
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +0 -411
- package/dist/collection/components/wm-modal/wm-modal-footer.css +0 -84
- package/dist/collection/components/wm-modal/wm-modal-footer.js +0 -159
- package/dist/collection/components/wm-modal/wm-modal-header.css +0 -78
- package/dist/collection/components/wm-modal/wm-modal-header.js +0 -109
- package/dist/collection/components/wm-modal/wm-modal.css +0 -155
- package/dist/collection/components/wm-modal/wm-modal.js +0 -356
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +0 -94
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +0 -97
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +0 -67
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +0 -114
- package/dist/collection/components/wm-navigator/wm-navigator.css +0 -137
- package/dist/collection/components/wm-navigator/wm-navigator.js +0 -468
- package/dist/collection/components/wm-option/wm-option.css +0 -162
- package/dist/collection/components/wm-option/wm-option.js +0 -394
- package/dist/collection/components/wm-pagination/wm-pagination.css +0 -217
- package/dist/collection/components/wm-pagination/wm-pagination.js +0 -348
- package/dist/collection/components/wm-search/wm-search.css +0 -155
- package/dist/collection/components/wm-search/wm-search.js +0 -439
- package/dist/collection/components/wm-select/wm-select.css +0 -315
- package/dist/collection/components/wm-select/wm-select.js +0 -676
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +0 -331
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +0 -240
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +0 -104
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +0 -202
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +0 -73
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +0 -315
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +0 -57
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +0 -104
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +0 -408
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +0 -707
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +0 -370
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +0 -567
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +0 -350
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +0 -217
- package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.css +0 -642
- package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.js +0 -753
- package/dist/collection/components/wm-uploader/wm-uploader.css +0 -666
- package/dist/collection/components/wm-uploader/wm-uploader.js +0 -673
- package/dist/collection/components/wm-wrapper/wm-wrapper.js +0 -27
- package/dist/collection/dev/scripts.js +0 -20
- package/dist/collection/global/__mocks__/functions.js +0 -5
- package/dist/collection/global/functions.js +0 -420
- package/dist/collection/global/global.js +0 -39
- package/dist/collection/global/interfaces.js +0 -49
- 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/piglatin.js +0 -93
- package/dist/componentlibrary/app-globals-18876ad3.js +0 -45
- package/dist/componentlibrary/app-globals-307a1083.js +0 -108
- package/dist/componentlibrary/componentlibrary.css +0 -84
- package/dist/componentlibrary/css-shim-bbdf0cc6.js +0 -4
- package/dist/componentlibrary/dom-1f98a75f.js +0 -73
- package/dist/componentlibrary/functions-316c1b23.js +0 -8340
- package/dist/componentlibrary/http-service-5d037e16.js +0 -52
- package/dist/componentlibrary/index-d5997567.js +0 -2938
- package/dist/componentlibrary/interfaces-50753346.js +0 -51
- package/dist/componentlibrary/priv-chart-popover.entry.js +0 -85
- package/dist/componentlibrary/priv-datepicker.entry.js +0 -668
- package/dist/componentlibrary/priv-navigator-button.entry.js +0 -25
- package/dist/componentlibrary/priv-navigator-item.entry.js +0 -30
- package/dist/componentlibrary/shadow-css-67b66845.js +0 -389
- package/dist/componentlibrary/wm-action-menu.entry.js +0 -202
- package/dist/componentlibrary/wm-button.entry.js +0 -148
- package/dist/componentlibrary/wm-chart-slice.entry.js +0 -18
- package/dist/componentlibrary/wm-chart.entry.js +0 -504
- package/dist/componentlibrary/wm-datepicker.entry.js +0 -258
- package/dist/componentlibrary/wm-input.entry.js +0 -106
- package/dist/componentlibrary/wm-menuitem.entry.js +0 -114
- package/dist/componentlibrary/wm-modal-footer.entry.js +0 -39
- package/dist/componentlibrary/wm-modal-header.entry.js +0 -41
- package/dist/componentlibrary/wm-modal.entry.js +0 -145
- package/dist/componentlibrary/wm-navigator.entry.js +0 -275
- package/dist/componentlibrary/wm-network-uploader.entry.js +0 -427
- package/dist/componentlibrary/wm-option.entry.js +0 -119
- package/dist/componentlibrary/wm-pagination.entry.js +0 -172
- package/dist/componentlibrary/wm-search.entry.js +0 -227
- package/dist/componentlibrary/wm-select.entry.js +0 -362
- package/dist/componentlibrary/wm-snackbar.entry.js +0 -156
- package/dist/componentlibrary/wm-tab-item.entry.js +0 -78
- package/dist/componentlibrary/wm-tab-list.entry.js +0 -201
- package/dist/componentlibrary/wm-tab-panel.entry.js +0 -38
- package/dist/componentlibrary/wm-tag-input.entry.js +0 -509
- package/dist/componentlibrary/wm-timepicker.entry.js +0 -382
- package/dist/componentlibrary/wm-toggletip.entry.js +0 -124
- package/dist/componentlibrary/wm-uploader.entry.js +0 -338
- package/dist/componentlibrary/wm-wrapper.entry.js +0 -17
- package/dist/esm/app-globals-18876ad3.js +0 -45
- package/dist/esm/app-globals-307a1083.js +0 -108
- package/dist/esm/css-shim-bbdf0cc6.js +0 -4
- package/dist/esm/dom-1f98a75f.js +0 -73
- package/dist/esm/functions-0deb7f8e.js +0 -6117
- package/dist/esm/functions-316c1b23.js +0 -8340
- package/dist/esm/global-e4e96bde.js +0 -34
- package/dist/esm/http-service-5d037e16.js +0 -52
- package/dist/esm/index-5a842e48.js +0 -1363
- package/dist/esm/index-d5997567.js +0 -2938
- package/dist/esm/index.js +0 -1
- package/dist/esm/interfaces-50753346.js +0 -51
- package/dist/esm/interfaces-61c6305b.js +0 -32
- package/dist/esm/loader.js +0 -18
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- 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/priv-chart-popover.entry.js +0 -85
- package/dist/esm/priv-datepicker.entry.js +0 -668
- package/dist/esm/priv-navigator-button.entry.js +0 -25
- package/dist/esm/priv-navigator-item.entry.js +0 -30
- package/dist/esm/ripple.js +0 -18
- package/dist/esm/shadow-css-67b66845.js +0 -389
- package/dist/esm/wm-action-menu.entry.js +0 -202
- package/dist/esm/wm-action-menu_2.entry.js +0 -313
- package/dist/esm/wm-button.entry.js +0 -148
- package/dist/esm/wm-chart-slice.entry.js +0 -18
- package/dist/esm/wm-chart.entry.js +0 -504
- package/dist/esm/wm-datepicker.entry.js +0 -258
- package/dist/esm/wm-input.entry.js +0 -106
- package/dist/esm/wm-menuitem.entry.js +0 -114
- package/dist/esm/wm-modal-footer.entry.js +0 -39
- package/dist/esm/wm-modal-header.entry.js +0 -41
- package/dist/esm/wm-modal.entry.js +0 -145
- package/dist/esm/wm-navigator.entry.js +0 -275
- package/dist/esm/wm-network-uploader.entry.js +0 -427
- package/dist/esm/wm-option.entry.js +0 -119
- package/dist/esm/wm-option_2.entry.js +0 -478
- package/dist/esm/wm-pagination.entry.js +0 -172
- package/dist/esm/wm-search.entry.js +0 -227
- package/dist/esm/wm-select.entry.js +0 -362
- package/dist/esm/wm-snackbar.entry.js +0 -156
- package/dist/esm/wm-tab-item.entry.js +0 -78
- package/dist/esm/wm-tab-item_3.entry.js +0 -310
- package/dist/esm/wm-tab-list.entry.js +0 -201
- package/dist/esm/wm-tab-panel.entry.js +0 -38
- package/dist/esm/wm-tag-input.entry.js +0 -509
- package/dist/esm/wm-timepicker.entry.js +0 -382
- package/dist/esm/wm-toggletip.entry.js +0 -124
- package/dist/esm/wm-uploader.entry.js +0 -338
- package/dist/esm/wm-wrapper.entry.js +0 -17
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/loader/cdn.js +0 -3
- package/dist/loader/index.cjs.js +0 -3
- package/dist/loader/index.d.ts +0 -13
- package/dist/loader/index.es2017.js +0 -3
- package/dist/loader/index.js +0 -4
- package/dist/loader/package.json +0 -10
- package/dist/ripple/p-103f8cae.entry.js +0 -1
- package/dist/ripple/p-139fe143.entry.js +0 -1
- package/dist/ripple/p-16367805.entry.js +0 -1
- package/dist/ripple/p-1d334060.entry.js +0 -1
- package/dist/ripple/p-2562f330.entry.js +0 -1
- package/dist/ripple/p-278b26ef.entry.js +0 -1
- package/dist/ripple/p-2c21bb72.entry.js +0 -1
- package/dist/ripple/p-2f5fda71.entry.js +0 -1
- package/dist/ripple/p-3e6f04d5.entry.js +0 -1
- package/dist/ripple/p-42ca2e15.entry.js +0 -1
- package/dist/ripple/p-454ad552.entry.js +0 -1
- package/dist/ripple/p-6a01e13d.js +0 -1
- package/dist/ripple/p-7185de7f.entry.js +0 -1
- package/dist/ripple/p-846b4c5f.entry.js +0 -1
- package/dist/ripple/p-888bec42.js +0 -1
- package/dist/ripple/p-90779d53.entry.js +0 -1
- package/dist/ripple/p-934543f2.js +0 -1
- package/dist/ripple/p-9a087fee.entry.js +0 -1
- package/dist/ripple/p-a4f6be52.entry.js +0 -1
- package/dist/ripple/p-a6d6eae7.js +0 -1
- package/dist/ripple/p-a942ad10.entry.js +0 -1
- package/dist/ripple/p-bfb4652d.entry.js +0 -1
- package/dist/ripple/p-c2e27acc.entry.js +0 -1
- package/dist/ripple/p-c2edda64.entry.js +0 -1
- package/dist/ripple/p-d1fdcbcf.entry.js +0 -1
- package/dist/ripple/p-d40b6afb.entry.js +0 -1
- package/dist/ripple/p-da73db1c.entry.js +0 -1
- package/dist/ripple/p-ea5cd8b8.js +0 -16
- package/dist/ripple/p-ed0f43f4.entry.js +0 -1
- package/dist/ripple/p-ffafd363.entry.js +0 -1
- package/dist/types/components/wm-chart/priv-chart-popover/priv-chart-popover.d.ts +0 -23
- package/dist/types/components/wm-chart/wm-chart-slice.d.ts +0 -8
- package/dist/types/components/wm-chart/wm-chart.d.ts +0 -77
- package/dist/types/components/wm-datepicker/priv-datepicker/priv-datepicker.d.ts +0 -75
- package/dist/types/components/wm-datepicker/wm-datepicker.d.ts +0 -39
- package/dist/types/components/wm-option/wm-option.d.ts +0 -28
- package/dist/types/components/wm-select/wm-select.d.ts +0 -63
- package/dist/types/components/wm-uploader/wm-network-uploader/wm-network-uploader.d.ts +0 -85
|
@@ -1,411 +0,0 @@
|
|
|
1
|
-
import { h, Component, Element, Event, Listen, Prop, State, Host, Watch } from "@stencil/core";
|
|
2
|
-
import { getIconCodeFromName } from "../../global/interfaces";
|
|
3
|
-
export class Menuitem {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.disabled = false;
|
|
6
|
-
this.focused = false;
|
|
7
|
-
this.icon = undefined;
|
|
8
|
-
this.description = undefined;
|
|
9
|
-
this.descriptionCharLimit = 100;
|
|
10
|
-
this.isKeying = false;
|
|
11
|
-
}
|
|
12
|
-
toggleKeyingOn() {
|
|
13
|
-
this.isKeying = true;
|
|
14
|
-
}
|
|
15
|
-
toggleKeyingOff() {
|
|
16
|
-
this.isKeying = false;
|
|
17
|
-
}
|
|
18
|
-
handleKeydown(ev) {
|
|
19
|
-
switch (ev.key) {
|
|
20
|
-
case "ArrowUp":
|
|
21
|
-
ev.preventDefault();
|
|
22
|
-
this.wmKeyUpPressed.emit(this.el);
|
|
23
|
-
break;
|
|
24
|
-
case "ArrowDown":
|
|
25
|
-
ev.preventDefault();
|
|
26
|
-
this.wmKeyDownPressed.emit(this.el);
|
|
27
|
-
break;
|
|
28
|
-
case "Enter":
|
|
29
|
-
ev.preventDefault();
|
|
30
|
-
if (!this.disabled) {
|
|
31
|
-
this.el.click();
|
|
32
|
-
}
|
|
33
|
-
break;
|
|
34
|
-
case "Escape":
|
|
35
|
-
ev.preventDefault();
|
|
36
|
-
ev.stopPropagation(); // prevents closing of parent modal
|
|
37
|
-
this.wmEscKeyPressed.emit();
|
|
38
|
-
break;
|
|
39
|
-
case "Home":
|
|
40
|
-
ev.preventDefault();
|
|
41
|
-
this.wmHomeKeyPressed.emit();
|
|
42
|
-
break;
|
|
43
|
-
case "End":
|
|
44
|
-
ev.preventDefault();
|
|
45
|
-
this.wmEndKeyPressed.emit();
|
|
46
|
-
break;
|
|
47
|
-
case "Tab":
|
|
48
|
-
this.wmTabKeyPressed.emit();
|
|
49
|
-
break;
|
|
50
|
-
default:
|
|
51
|
-
ev.preventDefault();
|
|
52
|
-
this.wmLetterPressed.emit(ev.key);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
handleClick() {
|
|
56
|
-
if (!this.disabled) {
|
|
57
|
-
this.wmMenuitemClicked.emit();
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
setOnClick() {
|
|
61
|
-
if (this.disabled && this.el.onclick) {
|
|
62
|
-
this.onClickFunc = this.el.onclick;
|
|
63
|
-
this.el.onclick = null;
|
|
64
|
-
}
|
|
65
|
-
else if (!this.disabled && this.onClickFunc) {
|
|
66
|
-
this.el.onclick = this.onClickFunc;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
componentWillLoad() {
|
|
70
|
-
if (this.icon) {
|
|
71
|
-
// in case a name was passed instead of a code, convert it to code (for backwards compatibility)
|
|
72
|
-
this.icon = getIconCodeFromName(this.icon);
|
|
73
|
-
}
|
|
74
|
-
if (this.description) {
|
|
75
|
-
if (this.description.length > this.descriptionCharLimit) {
|
|
76
|
-
console.error(`wm-menuitem description is above the character limit of ${this.descriptionCharLimit}`);
|
|
77
|
-
}
|
|
78
|
-
if (this.icon) {
|
|
79
|
-
console.error("wm-menuitems with descriptions do not support the use of icons");
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
this.setOnClick();
|
|
83
|
-
}
|
|
84
|
-
componentDidLoad() {
|
|
85
|
-
if (this.icon) {
|
|
86
|
-
this.iconEl.classList.add("mdi");
|
|
87
|
-
this.iconEl.innerHTML = `&#x${this.icon};`;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
render() {
|
|
91
|
-
return (h(Host, { tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null },
|
|
92
|
-
h("div", { class: `wrapper ${this.focused && this.isKeying ? "focus" : ""}`, "aria-disabled": this.disabled ? "true" : null },
|
|
93
|
-
h("span", { ref: (el) => (this.iconEl = el) }),
|
|
94
|
-
h("slot", null),
|
|
95
|
-
this.description ? h("div", { class: "description" }, this.description) : "")));
|
|
96
|
-
}
|
|
97
|
-
static get is() { return "wm-menuitem"; }
|
|
98
|
-
static get encapsulation() { return "shadow"; }
|
|
99
|
-
static get originalStyleUrls() { return {
|
|
100
|
-
"$": ["wm-menuitem.scss"]
|
|
101
|
-
}; }
|
|
102
|
-
static get styleUrls() { return {
|
|
103
|
-
"$": ["wm-menuitem.css"]
|
|
104
|
-
}; }
|
|
105
|
-
static get properties() { return {
|
|
106
|
-
"disabled": {
|
|
107
|
-
"type": "boolean",
|
|
108
|
-
"mutable": false,
|
|
109
|
-
"complexType": {
|
|
110
|
-
"original": "boolean",
|
|
111
|
-
"resolved": "boolean",
|
|
112
|
-
"references": {}
|
|
113
|
-
},
|
|
114
|
-
"required": false,
|
|
115
|
-
"optional": false,
|
|
116
|
-
"docs": {
|
|
117
|
-
"tags": [],
|
|
118
|
-
"text": ""
|
|
119
|
-
},
|
|
120
|
-
"attribute": "disabled",
|
|
121
|
-
"reflect": false,
|
|
122
|
-
"defaultValue": "false"
|
|
123
|
-
},
|
|
124
|
-
"focused": {
|
|
125
|
-
"type": "boolean",
|
|
126
|
-
"mutable": false,
|
|
127
|
-
"complexType": {
|
|
128
|
-
"original": "boolean",
|
|
129
|
-
"resolved": "boolean",
|
|
130
|
-
"references": {}
|
|
131
|
-
},
|
|
132
|
-
"required": false,
|
|
133
|
-
"optional": false,
|
|
134
|
-
"docs": {
|
|
135
|
-
"tags": [],
|
|
136
|
-
"text": ""
|
|
137
|
-
},
|
|
138
|
-
"attribute": "focused",
|
|
139
|
-
"reflect": false,
|
|
140
|
-
"defaultValue": "false"
|
|
141
|
-
},
|
|
142
|
-
"icon": {
|
|
143
|
-
"type": "string",
|
|
144
|
-
"mutable": true,
|
|
145
|
-
"complexType": {
|
|
146
|
-
"original": "string",
|
|
147
|
-
"resolved": "string | undefined",
|
|
148
|
-
"references": {}
|
|
149
|
-
},
|
|
150
|
-
"required": false,
|
|
151
|
-
"optional": true,
|
|
152
|
-
"docs": {
|
|
153
|
-
"tags": [],
|
|
154
|
-
"text": ""
|
|
155
|
-
},
|
|
156
|
-
"attribute": "icon",
|
|
157
|
-
"reflect": false,
|
|
158
|
-
"defaultValue": "undefined"
|
|
159
|
-
},
|
|
160
|
-
"description": {
|
|
161
|
-
"type": "string",
|
|
162
|
-
"mutable": false,
|
|
163
|
-
"complexType": {
|
|
164
|
-
"original": "string",
|
|
165
|
-
"resolved": "string | undefined",
|
|
166
|
-
"references": {}
|
|
167
|
-
},
|
|
168
|
-
"required": false,
|
|
169
|
-
"optional": true,
|
|
170
|
-
"docs": {
|
|
171
|
-
"tags": [],
|
|
172
|
-
"text": ""
|
|
173
|
-
},
|
|
174
|
-
"attribute": "description",
|
|
175
|
-
"reflect": false,
|
|
176
|
-
"defaultValue": "undefined"
|
|
177
|
-
}
|
|
178
|
-
}; }
|
|
179
|
-
static get states() { return {
|
|
180
|
-
"isKeying": {}
|
|
181
|
-
}; }
|
|
182
|
-
static get events() { return [{
|
|
183
|
-
"method": "wmMenuitemClicked",
|
|
184
|
-
"name": "wmMenuitemClicked",
|
|
185
|
-
"bubbles": true,
|
|
186
|
-
"cancelable": true,
|
|
187
|
-
"composed": true,
|
|
188
|
-
"docs": {
|
|
189
|
-
"tags": [],
|
|
190
|
-
"text": ""
|
|
191
|
-
},
|
|
192
|
-
"complexType": {
|
|
193
|
-
"original": "HTMLWmMenuitemElement",
|
|
194
|
-
"resolved": "HTMLWmMenuitemElement",
|
|
195
|
-
"references": {
|
|
196
|
-
"HTMLWmMenuitemElement": {
|
|
197
|
-
"location": "global"
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}, {
|
|
202
|
-
"method": "wmKeyUpPressed",
|
|
203
|
-
"name": "wmKeyUpPressed",
|
|
204
|
-
"bubbles": true,
|
|
205
|
-
"cancelable": true,
|
|
206
|
-
"composed": true,
|
|
207
|
-
"docs": {
|
|
208
|
-
"tags": [],
|
|
209
|
-
"text": ""
|
|
210
|
-
},
|
|
211
|
-
"complexType": {
|
|
212
|
-
"original": "HTMLWmMenuitemElement",
|
|
213
|
-
"resolved": "HTMLWmMenuitemElement",
|
|
214
|
-
"references": {
|
|
215
|
-
"HTMLWmMenuitemElement": {
|
|
216
|
-
"location": "global"
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}, {
|
|
221
|
-
"method": "wmKeyDownPressed",
|
|
222
|
-
"name": "wmKeyDownPressed",
|
|
223
|
-
"bubbles": true,
|
|
224
|
-
"cancelable": true,
|
|
225
|
-
"composed": true,
|
|
226
|
-
"docs": {
|
|
227
|
-
"tags": [],
|
|
228
|
-
"text": ""
|
|
229
|
-
},
|
|
230
|
-
"complexType": {
|
|
231
|
-
"original": "HTMLWmMenuitemElement",
|
|
232
|
-
"resolved": "HTMLWmMenuitemElement",
|
|
233
|
-
"references": {
|
|
234
|
-
"HTMLWmMenuitemElement": {
|
|
235
|
-
"location": "global"
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
}, {
|
|
240
|
-
"method": "wmEscKeyPressed",
|
|
241
|
-
"name": "wmEscKeyPressed",
|
|
242
|
-
"bubbles": true,
|
|
243
|
-
"cancelable": true,
|
|
244
|
-
"composed": true,
|
|
245
|
-
"docs": {
|
|
246
|
-
"tags": [],
|
|
247
|
-
"text": ""
|
|
248
|
-
},
|
|
249
|
-
"complexType": {
|
|
250
|
-
"original": "HTMLWmMenuitemElement",
|
|
251
|
-
"resolved": "HTMLWmMenuitemElement",
|
|
252
|
-
"references": {
|
|
253
|
-
"HTMLWmMenuitemElement": {
|
|
254
|
-
"location": "global"
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}, {
|
|
259
|
-
"method": "wmHomeKeyPressed",
|
|
260
|
-
"name": "wmHomeKeyPressed",
|
|
261
|
-
"bubbles": true,
|
|
262
|
-
"cancelable": true,
|
|
263
|
-
"composed": true,
|
|
264
|
-
"docs": {
|
|
265
|
-
"tags": [],
|
|
266
|
-
"text": ""
|
|
267
|
-
},
|
|
268
|
-
"complexType": {
|
|
269
|
-
"original": "HTMLWmMenuitemElement",
|
|
270
|
-
"resolved": "HTMLWmMenuitemElement",
|
|
271
|
-
"references": {
|
|
272
|
-
"HTMLWmMenuitemElement": {
|
|
273
|
-
"location": "global"
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
}, {
|
|
278
|
-
"method": "wmEndKeyPressed",
|
|
279
|
-
"name": "wmEndKeyPressed",
|
|
280
|
-
"bubbles": true,
|
|
281
|
-
"cancelable": true,
|
|
282
|
-
"composed": true,
|
|
283
|
-
"docs": {
|
|
284
|
-
"tags": [],
|
|
285
|
-
"text": ""
|
|
286
|
-
},
|
|
287
|
-
"complexType": {
|
|
288
|
-
"original": "HTMLWmMenuitemElement",
|
|
289
|
-
"resolved": "HTMLWmMenuitemElement",
|
|
290
|
-
"references": {
|
|
291
|
-
"HTMLWmMenuitemElement": {
|
|
292
|
-
"location": "global"
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
}, {
|
|
297
|
-
"method": "wmPageDownItems",
|
|
298
|
-
"name": "wmPageDownItems",
|
|
299
|
-
"bubbles": true,
|
|
300
|
-
"cancelable": true,
|
|
301
|
-
"composed": true,
|
|
302
|
-
"docs": {
|
|
303
|
-
"tags": [],
|
|
304
|
-
"text": ""
|
|
305
|
-
},
|
|
306
|
-
"complexType": {
|
|
307
|
-
"original": "HTMLWmMenuitemElement",
|
|
308
|
-
"resolved": "HTMLWmMenuitemElement",
|
|
309
|
-
"references": {
|
|
310
|
-
"HTMLWmMenuitemElement": {
|
|
311
|
-
"location": "global"
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
}, {
|
|
316
|
-
"method": "wmPageUpItems",
|
|
317
|
-
"name": "wmPageUpItems",
|
|
318
|
-
"bubbles": true,
|
|
319
|
-
"cancelable": true,
|
|
320
|
-
"composed": true,
|
|
321
|
-
"docs": {
|
|
322
|
-
"tags": [],
|
|
323
|
-
"text": ""
|
|
324
|
-
},
|
|
325
|
-
"complexType": {
|
|
326
|
-
"original": "HTMLWmMenuitemElement",
|
|
327
|
-
"resolved": "HTMLWmMenuitemElement",
|
|
328
|
-
"references": {
|
|
329
|
-
"HTMLWmMenuitemElement": {
|
|
330
|
-
"location": "global"
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
}, {
|
|
335
|
-
"method": "wmTabKeyPressed",
|
|
336
|
-
"name": "wmTabKeyPressed",
|
|
337
|
-
"bubbles": true,
|
|
338
|
-
"cancelable": true,
|
|
339
|
-
"composed": true,
|
|
340
|
-
"docs": {
|
|
341
|
-
"tags": [],
|
|
342
|
-
"text": ""
|
|
343
|
-
},
|
|
344
|
-
"complexType": {
|
|
345
|
-
"original": "HTMLWmMenuitemElement",
|
|
346
|
-
"resolved": "HTMLWmMenuitemElement",
|
|
347
|
-
"references": {
|
|
348
|
-
"HTMLWmMenuitemElement": {
|
|
349
|
-
"location": "global"
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
}, {
|
|
354
|
-
"method": "wmLetterPressed",
|
|
355
|
-
"name": "wmLetterPressed",
|
|
356
|
-
"bubbles": true,
|
|
357
|
-
"cancelable": true,
|
|
358
|
-
"composed": true,
|
|
359
|
-
"docs": {
|
|
360
|
-
"tags": [],
|
|
361
|
-
"text": ""
|
|
362
|
-
},
|
|
363
|
-
"complexType": {
|
|
364
|
-
"original": "any",
|
|
365
|
-
"resolved": "any",
|
|
366
|
-
"references": {}
|
|
367
|
-
}
|
|
368
|
-
}]; }
|
|
369
|
-
static get elementRef() { return "el"; }
|
|
370
|
-
static get watchers() { return [{
|
|
371
|
-
"propName": "disabled",
|
|
372
|
-
"methodName": "setOnClick"
|
|
373
|
-
}]; }
|
|
374
|
-
static get listeners() { return [{
|
|
375
|
-
"name": "wmUserIsKeying",
|
|
376
|
-
"method": "toggleKeyingOn",
|
|
377
|
-
"target": "window",
|
|
378
|
-
"capture": false,
|
|
379
|
-
"passive": false
|
|
380
|
-
}, {
|
|
381
|
-
"name": "wmUserIsTabbing",
|
|
382
|
-
"method": "toggleKeyingOn",
|
|
383
|
-
"target": "window",
|
|
384
|
-
"capture": false,
|
|
385
|
-
"passive": false
|
|
386
|
-
}, {
|
|
387
|
-
"name": "wmUserIsNotKeying",
|
|
388
|
-
"method": "toggleKeyingOff",
|
|
389
|
-
"target": "window",
|
|
390
|
-
"capture": false,
|
|
391
|
-
"passive": false
|
|
392
|
-
}, {
|
|
393
|
-
"name": "wmUserIsNotTabbing",
|
|
394
|
-
"method": "toggleKeyingOff",
|
|
395
|
-
"target": "window",
|
|
396
|
-
"capture": false,
|
|
397
|
-
"passive": false
|
|
398
|
-
}, {
|
|
399
|
-
"name": "keydown",
|
|
400
|
-
"method": "handleKeydown",
|
|
401
|
-
"target": undefined,
|
|
402
|
-
"capture": false,
|
|
403
|
-
"passive": false
|
|
404
|
-
}, {
|
|
405
|
-
"name": "click",
|
|
406
|
-
"method": "handleClick",
|
|
407
|
-
"target": undefined,
|
|
408
|
-
"capture": false,
|
|
409
|
-
"passive": false
|
|
410
|
-
}]; }
|
|
411
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/* --------------------------------------
|
|
2
|
-
1. Box-shadow
|
|
3
|
-
-------------------------------------- */
|
|
4
|
-
/* --------------------------------------
|
|
5
|
-
2. Border-radius
|
|
6
|
-
-------------------------------------- */
|
|
7
|
-
/* --------------------------------------
|
|
8
|
-
3. Transforms
|
|
9
|
-
-------------------------------------- */
|
|
10
|
-
/* --------------------------------------
|
|
11
|
-
4. Button Focus
|
|
12
|
-
-------------------------------------- */
|
|
13
|
-
/* --------------------------------------
|
|
14
|
-
5. Flex
|
|
15
|
-
-------------------------------------- */
|
|
16
|
-
/* --------------------------------------
|
|
17
|
-
6. Button Hover
|
|
18
|
-
-------------------------------------- */
|
|
19
|
-
/* --------------------------------------
|
|
20
|
-
7. Screen Reader Only
|
|
21
|
-
-------------------------------------- */
|
|
22
|
-
/* --------------------------------------
|
|
23
|
-
8. Label styles
|
|
24
|
-
this mixin includes all the styles for the label
|
|
25
|
-
+ flex rules on the parent container to switch between top and left position
|
|
26
|
-
+ srOnly when label is hidden
|
|
27
|
-
Assumes the following markup:
|
|
28
|
-
div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
|
|
29
|
-
.wrapper is for the flex rules
|
|
30
|
-
.label-wrapper is to set the height of the label when positioned left so it's the same height as
|
|
31
|
-
the input. It can't be done directly on .label because of possible line wrapping.
|
|
32
|
-
When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
|
|
33
|
-
(they can't be aligned on the baseline because of possible description text and error message)
|
|
34
|
-
-------------------------------------- */
|
|
35
|
-
/********************************************************************************************/
|
|
36
|
-
/* DO NOT USE THESE DIRECTLY, ASSIGN THEM TO VARIABLES NAMED AFTER FUNCTIONALITY, SEE BELOW */
|
|
37
|
-
/********************************************************************************************/
|
|
38
|
-
/* USAGE */
|
|
39
|
-
/* BELOW IS BEFORE WE HAD THE COLOR PALETTE FROM UI */
|
|
40
|
-
/* TODO: replace with vars above whenever possible */
|
|
41
|
-
/* Buttons */
|
|
42
|
-
/* VIA */
|
|
43
|
-
wm-modal-footer {
|
|
44
|
-
-webkit-border-radius: 0px 0px 5px 5px;
|
|
45
|
-
-moz-border-radius: 0px 0px 5px 5px;
|
|
46
|
-
-ms-border-radius: 0px 0px 5px 5px;
|
|
47
|
-
border-radius: 0px 0px 5px 5px;
|
|
48
|
-
margin-top: -1px;
|
|
49
|
-
}
|
|
50
|
-
wm-modal-footer .wm-wrapper {
|
|
51
|
-
display: -webkit-box;
|
|
52
|
-
display: -webkit-flex;
|
|
53
|
-
display: -ms-flexbox;
|
|
54
|
-
display: flex;
|
|
55
|
-
-webkit-box-pack: justify;
|
|
56
|
-
-ms-flex-pack: justify;
|
|
57
|
-
-webkit-justify-content: space-between;
|
|
58
|
-
justify-content: space-between;
|
|
59
|
-
-webkit-box-align: center;
|
|
60
|
-
-webkit-align-items: center;
|
|
61
|
-
-ms-flex-align: center;
|
|
62
|
-
align-items: center;
|
|
63
|
-
}
|
|
64
|
-
@media only screen and (max-width: 650px) {
|
|
65
|
-
wm-modal-footer .wm-wrapper.footer-text {
|
|
66
|
-
flex-direction: column;
|
|
67
|
-
align-items: flex-start;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
wm-modal-footer .wm-wrapper wm-button + wm-button {
|
|
71
|
-
margin-left: 1rem;
|
|
72
|
-
}
|
|
73
|
-
wm-modal-footer .wm-wrapper .wm-info {
|
|
74
|
-
font-size: 0.875rem;
|
|
75
|
-
font-style: italic;
|
|
76
|
-
}
|
|
77
|
-
@media only screen and (max-width: 650px) {
|
|
78
|
-
wm-modal-footer .wm-wrapper .wm-info {
|
|
79
|
-
padding-bottom: 0.625rem;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
wm-modal-footer .wm-wrapper .wm-info:focus {
|
|
83
|
-
outline: none;
|
|
84
|
-
}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { h, Component, Element, Prop, Listen } from "@stencil/core";
|
|
2
|
-
import { checkForFocusableElInShadow } from "../../global/functions";
|
|
3
|
-
export class ModalFooter {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.secondaryText = "";
|
|
6
|
-
this.primaryText = "";
|
|
7
|
-
this.infoText = "";
|
|
8
|
-
this.primaryActionDisabled = false;
|
|
9
|
-
this.deleteStyle = false;
|
|
10
|
-
}
|
|
11
|
-
//Trap focus when user tabs past first element in modal
|
|
12
|
-
focusLastEl() {
|
|
13
|
-
checkForFocusableElInShadow(this.lastElement).focus();
|
|
14
|
-
}
|
|
15
|
-
componentWillLoad() {
|
|
16
|
-
this.uid = this.el.parentElement.uid;
|
|
17
|
-
}
|
|
18
|
-
emitParentPrimaryEvent() {
|
|
19
|
-
const parentModal = this.el.parentElement;
|
|
20
|
-
//@ts-ignore
|
|
21
|
-
parentModal.emitPrimaryEvent();
|
|
22
|
-
}
|
|
23
|
-
emitParentSecondaryEvent() {
|
|
24
|
-
const parentModal = this.el.parentElement;
|
|
25
|
-
//@ts-ignore
|
|
26
|
-
parentModal.emitSecondaryEvent();
|
|
27
|
-
}
|
|
28
|
-
render() {
|
|
29
|
-
return (h("div", { class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` },
|
|
30
|
-
h("div", { class: "wm-info" }, this.infoText),
|
|
31
|
-
h("div", { class: "wm-button-collection" },
|
|
32
|
-
this.secondaryText && (h("wm-button", { onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : null) }, this.secondaryText)),
|
|
33
|
-
h("wm-button", { buttonStyle: this.deleteStyle ? "secondary" : "primary", permanentlyDelete: this.deleteStyle, onClick: () => this.emitParentPrimaryEvent(), disabled: this.primaryActionDisabled, id: `wm-primary-${this.uid}`, ref: (el) => (!this.primaryActionDisabled ? (this.lastElement = el) : null) }, this.primaryText))));
|
|
34
|
-
}
|
|
35
|
-
static get is() { return "wm-modal-footer"; }
|
|
36
|
-
static get originalStyleUrls() { return {
|
|
37
|
-
"$": ["wm-modal-footer.scss"]
|
|
38
|
-
}; }
|
|
39
|
-
static get styleUrls() { return {
|
|
40
|
-
"$": ["wm-modal-footer.css"]
|
|
41
|
-
}; }
|
|
42
|
-
static get properties() { return {
|
|
43
|
-
"secondaryText": {
|
|
44
|
-
"type": "string",
|
|
45
|
-
"mutable": false,
|
|
46
|
-
"complexType": {
|
|
47
|
-
"original": "string",
|
|
48
|
-
"resolved": "string | undefined",
|
|
49
|
-
"references": {}
|
|
50
|
-
},
|
|
51
|
-
"required": false,
|
|
52
|
-
"optional": true,
|
|
53
|
-
"docs": {
|
|
54
|
-
"tags": [],
|
|
55
|
-
"text": ""
|
|
56
|
-
},
|
|
57
|
-
"attribute": "secondary-text",
|
|
58
|
-
"reflect": true,
|
|
59
|
-
"defaultValue": "\"\""
|
|
60
|
-
},
|
|
61
|
-
"primaryText": {
|
|
62
|
-
"type": "string",
|
|
63
|
-
"mutable": false,
|
|
64
|
-
"complexType": {
|
|
65
|
-
"original": "string",
|
|
66
|
-
"resolved": "string | undefined",
|
|
67
|
-
"references": {}
|
|
68
|
-
},
|
|
69
|
-
"required": false,
|
|
70
|
-
"optional": true,
|
|
71
|
-
"docs": {
|
|
72
|
-
"tags": [],
|
|
73
|
-
"text": ""
|
|
74
|
-
},
|
|
75
|
-
"attribute": "primary-text",
|
|
76
|
-
"reflect": true,
|
|
77
|
-
"defaultValue": "\"\""
|
|
78
|
-
},
|
|
79
|
-
"infoText": {
|
|
80
|
-
"type": "string",
|
|
81
|
-
"mutable": false,
|
|
82
|
-
"complexType": {
|
|
83
|
-
"original": "string",
|
|
84
|
-
"resolved": "string | undefined",
|
|
85
|
-
"references": {}
|
|
86
|
-
},
|
|
87
|
-
"required": false,
|
|
88
|
-
"optional": true,
|
|
89
|
-
"docs": {
|
|
90
|
-
"tags": [],
|
|
91
|
-
"text": ""
|
|
92
|
-
},
|
|
93
|
-
"attribute": "info-text",
|
|
94
|
-
"reflect": true,
|
|
95
|
-
"defaultValue": "\"\""
|
|
96
|
-
},
|
|
97
|
-
"primaryActionDisabled": {
|
|
98
|
-
"type": "boolean",
|
|
99
|
-
"mutable": true,
|
|
100
|
-
"complexType": {
|
|
101
|
-
"original": "boolean",
|
|
102
|
-
"resolved": "boolean",
|
|
103
|
-
"references": {}
|
|
104
|
-
},
|
|
105
|
-
"required": false,
|
|
106
|
-
"optional": false,
|
|
107
|
-
"docs": {
|
|
108
|
-
"tags": [],
|
|
109
|
-
"text": ""
|
|
110
|
-
},
|
|
111
|
-
"attribute": "primary-action-disabled",
|
|
112
|
-
"reflect": true,
|
|
113
|
-
"defaultValue": "false"
|
|
114
|
-
},
|
|
115
|
-
"deleteStyle": {
|
|
116
|
-
"type": "boolean",
|
|
117
|
-
"mutable": true,
|
|
118
|
-
"complexType": {
|
|
119
|
-
"original": "boolean",
|
|
120
|
-
"resolved": "boolean",
|
|
121
|
-
"references": {}
|
|
122
|
-
},
|
|
123
|
-
"required": false,
|
|
124
|
-
"optional": false,
|
|
125
|
-
"docs": {
|
|
126
|
-
"tags": [],
|
|
127
|
-
"text": ""
|
|
128
|
-
},
|
|
129
|
-
"attribute": "delete-style",
|
|
130
|
-
"reflect": true,
|
|
131
|
-
"defaultValue": "false"
|
|
132
|
-
},
|
|
133
|
-
"uid": {
|
|
134
|
-
"type": "string",
|
|
135
|
-
"mutable": true,
|
|
136
|
-
"complexType": {
|
|
137
|
-
"original": "string",
|
|
138
|
-
"resolved": "string",
|
|
139
|
-
"references": {}
|
|
140
|
-
},
|
|
141
|
-
"required": true,
|
|
142
|
-
"optional": false,
|
|
143
|
-
"docs": {
|
|
144
|
-
"tags": [],
|
|
145
|
-
"text": ""
|
|
146
|
-
},
|
|
147
|
-
"attribute": "uid",
|
|
148
|
-
"reflect": false
|
|
149
|
-
}
|
|
150
|
-
}; }
|
|
151
|
-
static get elementRef() { return "el"; }
|
|
152
|
-
static get listeners() { return [{
|
|
153
|
-
"name": "focusLastElement",
|
|
154
|
-
"method": "focusLastEl",
|
|
155
|
-
"target": "document",
|
|
156
|
-
"capture": false,
|
|
157
|
-
"passive": false
|
|
158
|
-
}]; }
|
|
159
|
-
}
|