@watermarkinsights/ripple 3.7.0-3 → 3.7.0-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/cjs/{functions-f0693632.js → functions-edfdd03f.js} +509 -483
- package/dist/cjs/{global-69ca443d.js → global-a1adbace.js} +65 -65
- package/dist/cjs/{http-service-494d81de.js → http-service-9e8c4dd5.js} +49 -49
- package/dist/cjs/{index-cd179539.js → index-0e7e3668.js} +96 -64
- package/dist/cjs/{interfaces-a3338581.js → interfaces-30a74c1f.js} +29 -29
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/priv-chart-popover.cjs.entry.js +80 -80
- package/dist/cjs/priv-datepicker.cjs.entry.js +669 -669
- package/dist/cjs/priv-navigator-button.cjs.entry.js +20 -20
- package/dist/cjs/priv-navigator-item.cjs.entry.js +24 -24
- package/dist/cjs/ripple.cjs.js +4 -4
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +343 -343
- package/dist/cjs/wm-button.cjs.entry.js +238 -238
- package/dist/cjs/wm-chart-slice.cjs.entry.js +14 -14
- package/dist/cjs/wm-chart.cjs.entry.js +476 -476
- package/dist/cjs/wm-datepicker.cjs.entry.js +264 -264
- package/dist/cjs/wm-input.cjs.entry.js +136 -136
- package/dist/cjs/wm-modal-footer.cjs.entry.js +33 -33
- package/dist/cjs/wm-modal-header.cjs.entry.js +35 -35
- package/dist/cjs/wm-modal.cjs.entry.js +163 -163
- package/dist/cjs/wm-navigation-hamburger.cjs.entry.js +56 -0
- package/dist/cjs/wm-navigation-item.cjs.entry.js +31 -0
- package/dist/cjs/wm-navigation.cjs.entry.js +87 -0
- package/dist/cjs/wm-navigator.cjs.entry.js +270 -270
- package/dist/cjs/wm-network-uploader.cjs.entry.js +422 -422
- package/dist/cjs/wm-option_2.cjs.entry.js +497 -497
- package/dist/cjs/wm-pagination.cjs.entry.js +169 -169
- package/dist/cjs/wm-search.cjs.entry.js +234 -233
- package/dist/cjs/wm-snackbar.cjs.entry.js +172 -172
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +299 -299
- package/dist/cjs/wm-tag-input.cjs.entry.js +572 -572
- package/dist/cjs/wm-timepicker.cjs.entry.js +382 -382
- package/dist/cjs/wm-toggletip.cjs.entry.js +126 -126
- package/dist/cjs/wm-uploader.cjs.entry.js +348 -348
- package/dist/cjs/wm-wrapper.cjs.entry.js +13 -13
- package/dist/collection/collection-manifest.json +10 -2
- package/dist/collection/components/wm-action-menu/wm-action-menu.css +0 -1
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +460 -460
- package/dist/collection/components/wm-button/wm-button.css +1 -3
- package/dist/collection/components/wm-button/wm-button.js +503 -503
- package/dist/collection/components/wm-chart/priv-chart-popover/priv-chart-popover.css +0 -1
- package/dist/collection/components/wm-chart/priv-chart-popover/priv-chart-popover.js +232 -232
- package/dist/collection/components/wm-chart/wm-chart-slice.js +64 -64
- package/dist/collection/components/wm-chart/wm-chart.css +0 -1
- package/dist/collection/components/wm-chart/wm-chart.js +718 -718
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.css +3 -5
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.js +1015 -1015
- package/dist/collection/components/wm-datepicker/wm-datepicker.css +1 -3
- package/dist/collection/components/wm-datepicker/wm-datepicker.js +468 -468
- package/dist/collection/components/wm-input/wm-input.css +1 -3
- package/dist/collection/components/wm-input/wm-input.js +423 -423
- package/dist/collection/components/wm-menuitem/wm-menuitem.css +0 -1
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +444 -444
- package/dist/collection/components/wm-modal/wm-modal-footer.css +0 -1
- package/dist/collection/components/wm-modal/wm-modal-footer.js +141 -141
- package/dist/collection/components/wm-modal/wm-modal-header.css +0 -1
- package/dist/collection/components/wm-modal/wm-modal-header.js +92 -92
- package/dist/collection/components/wm-modal/wm-modal.css +0 -1
- package/dist/collection/components/wm-modal/wm-modal.js +459 -459
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +86 -0
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +96 -0
- package/dist/collection/components/wm-navigation/wm-navigation-item.css +85 -0
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +101 -0
- package/dist/collection/components/wm-navigation/wm-navigation.css +117 -0
- package/dist/collection/components/wm-navigation/wm-navigation.js +142 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +0 -1
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +97 -97
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +0 -1
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +114 -114
- package/dist/collection/components/wm-navigator/wm-navigator.css +0 -1
- package/dist/collection/components/wm-navigator/wm-navigator.js +468 -468
- package/dist/collection/components/wm-option/wm-option.css +2 -4
- package/dist/collection/components/wm-option/wm-option.js +422 -422
- package/dist/collection/components/wm-pagination/wm-pagination.css +0 -1
- package/dist/collection/components/wm-pagination/wm-pagination.js +368 -368
- package/dist/collection/components/wm-search/wm-search.css +0 -1
- package/dist/collection/components/wm-search/wm-search.js +480 -479
- package/dist/collection/components/wm-select/wm-select.css +2 -4
- package/dist/collection/components/wm-select/wm-select.js +720 -720
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +2 -4
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +297 -297
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +0 -1
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +216 -216
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +0 -1
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +330 -330
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +0 -1
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +104 -104
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +2 -4
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +801 -801
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +2 -4
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +580 -580
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +1 -3
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +241 -241
- package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.css +1 -3
- package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.js +753 -753
- package/dist/collection/components/wm-uploader/wm-uploader.css +1 -3
- package/dist/collection/components/wm-uploader/wm-uploader.js +748 -748
- package/dist/collection/components/wm-wrapper/wm-wrapper.js +27 -27
- package/dist/collection/dev/scripts.js +20 -20
- package/dist/collection/global/__mocks__/functions.js +6 -6
- package/dist/collection/global/functions.js +445 -445
- package/dist/collection/global/global.js +72 -72
- package/dist/collection/global/interfaces.js +49 -49
- package/dist/collection/global/services/__mocks__/http-service.js +130 -130
- package/dist/collection/global/services/http-service.js +50 -50
- package/dist/collection/lang/lang.js +5 -5
- package/dist/collection/lang/missing.js +39 -39
- package/dist/collection/lang/piglatin.js +93 -93
- package/dist/esm/{functions-cbfc81d1.js → functions-6cd52dcf.js} +509 -483
- package/dist/esm/{global-a12289f9.js → global-093289fc.js} +65 -65
- package/dist/esm/{http-service-3dc3b3e7.js → http-service-5d037e16.js} +49 -49
- package/dist/esm/{index-66f8130e.js → index-cd8f9ae2.js} +96 -64
- package/dist/esm/{interfaces-2b97fab2.js → interfaces-61c6305b.js} +29 -29
- package/dist/esm/loader.js +4 -4
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/priv-chart-popover.entry.js +80 -80
- package/dist/esm/priv-datepicker.entry.js +669 -669
- package/dist/esm/priv-navigator-button.entry.js +20 -20
- package/dist/esm/priv-navigator-item.entry.js +24 -24
- package/dist/esm/ripple.js +4 -4
- package/dist/esm/wm-action-menu_2.entry.js +343 -343
- package/dist/esm/wm-button.entry.js +238 -238
- package/dist/esm/wm-chart-slice.entry.js +14 -14
- package/dist/esm/wm-chart.entry.js +476 -476
- package/dist/esm/wm-datepicker.entry.js +264 -264
- package/dist/esm/wm-input.entry.js +136 -136
- package/dist/esm/wm-modal-footer.entry.js +33 -33
- package/dist/esm/wm-modal-header.entry.js +35 -35
- package/dist/esm/wm-modal.entry.js +163 -163
- package/dist/esm/wm-navigation-hamburger.entry.js +52 -0
- package/dist/esm/wm-navigation-item.entry.js +27 -0
- package/dist/esm/wm-navigation.entry.js +83 -0
- package/dist/esm/wm-navigator.entry.js +270 -270
- package/dist/esm/wm-network-uploader.entry.js +422 -422
- package/dist/esm/wm-option_2.entry.js +497 -497
- package/dist/esm/wm-pagination.entry.js +169 -169
- package/dist/esm/wm-search.entry.js +234 -233
- package/dist/esm/wm-snackbar.entry.js +172 -172
- package/dist/esm/wm-tab-item_3.entry.js +299 -299
- package/dist/esm/wm-tag-input.entry.js +572 -572
- package/dist/esm/wm-timepicker.entry.js +382 -382
- package/dist/esm/wm-toggletip.entry.js +126 -126
- package/dist/esm/wm-uploader.entry.js +348 -348
- package/dist/esm/wm-wrapper.entry.js +13 -13
- package/dist/esm-es5/functions-6cd52dcf.js +15 -0
- package/dist/esm-es5/global-093289fc.js +1 -0
- package/dist/esm-es5/http-service-5d037e16.js +1 -0
- package/dist/esm-es5/index-cd8f9ae2.js +1 -0
- package/dist/esm-es5/index.js +0 -0
- package/dist/esm-es5/interfaces-61c6305b.js +1 -0
- package/dist/esm-es5/loader.js +1 -0
- package/dist/esm-es5/priv-chart-popover.entry.js +1 -0
- package/dist/esm-es5/priv-datepicker.entry.js +1 -0
- package/dist/esm-es5/priv-navigator-button.entry.js +1 -0
- package/dist/esm-es5/priv-navigator-item.entry.js +1 -0
- package/dist/esm-es5/ripple.js +1 -0
- package/dist/esm-es5/wm-action-menu_2.entry.js +1 -0
- package/dist/esm-es5/wm-button.entry.js +1 -0
- package/dist/esm-es5/wm-chart-slice.entry.js +1 -0
- package/dist/esm-es5/wm-chart.entry.js +1 -0
- package/dist/esm-es5/wm-datepicker.entry.js +1 -0
- package/dist/esm-es5/wm-input.entry.js +1 -0
- package/dist/esm-es5/wm-modal-footer.entry.js +1 -0
- package/dist/esm-es5/wm-modal-header.entry.js +1 -0
- package/dist/esm-es5/wm-modal.entry.js +1 -0
- package/dist/esm-es5/wm-navigation-hamburger.entry.js +1 -0
- package/dist/esm-es5/wm-navigation-item.entry.js +1 -0
- package/dist/esm-es5/wm-navigation.entry.js +1 -0
- package/dist/esm-es5/wm-navigator.entry.js +1 -0
- package/dist/esm-es5/wm-network-uploader.entry.js +1 -0
- package/dist/esm-es5/wm-option_2.entry.js +1 -0
- package/dist/esm-es5/wm-pagination.entry.js +1 -0
- package/dist/esm-es5/wm-search.entry.js +1 -0
- package/dist/esm-es5/wm-snackbar.entry.js +1 -0
- package/dist/esm-es5/wm-tab-item_3.entry.js +1 -0
- package/dist/esm-es5/wm-tag-input.entry.js +1 -0
- package/dist/esm-es5/wm-timepicker.entry.js +1 -0
- package/dist/esm-es5/wm-toggletip.entry.js +1 -0
- package/dist/esm-es5/wm-uploader.entry.js +1 -0
- package/dist/esm-es5/wm-wrapper.entry.js +1 -0
- package/dist/index.js +1 -1
- package/dist/loader/index.d.ts +0 -1
- package/dist/loader/index.js +1 -1
- package/dist/ripple/p-088e3c4c.system.entry.js +1 -0
- package/dist/ripple/p-08b7ec08.system.js +1 -0
- package/dist/ripple/p-15759528.system.entry.js +1 -0
- package/dist/ripple/p-185e1c7a.entry.js +1 -0
- package/dist/ripple/p-20856a2d.system.js +1 -0
- package/dist/ripple/p-21945452.system.entry.js +1 -0
- package/dist/ripple/p-2206c8d0.entry.js +1 -0
- package/dist/ripple/p-244877c8.entry.js +1 -0
- package/dist/ripple/p-284a9749.system.entry.js +1 -0
- package/dist/ripple/p-2955443e.entry.js +1 -0
- package/dist/ripple/p-2b526a98.entry.js +1 -0
- package/dist/ripple/p-2f63e022.system.entry.js +1 -0
- package/dist/ripple/p-30cb1ddd.system.entry.js +1 -0
- package/dist/ripple/p-313b6073.system.js +1 -0
- package/dist/ripple/p-323c8fbd.entry.js +1 -0
- package/dist/ripple/p-38062c39.js +1 -0
- package/dist/ripple/p-3ba3afca.entry.js +1 -0
- package/dist/ripple/p-45b88169.system.entry.js +1 -0
- package/dist/ripple/p-48ab9e16.entry.js +1 -0
- package/dist/ripple/p-4999f5dc.entry.js +1 -0
- package/dist/ripple/p-4ab257fe.entry.js +1 -0
- package/dist/ripple/p-4ba1bb62.system.js +1 -0
- package/dist/ripple/p-4c0de099.system.entry.js +1 -0
- package/dist/ripple/p-4c75587a.system.entry.js +1 -0
- package/dist/ripple/p-4ed98fb1.system.entry.js +1 -0
- package/dist/ripple/p-504579c2.system.entry.js +1 -0
- package/dist/ripple/p-50ea2036.system.js +1 -0
- package/dist/ripple/p-5870835f.entry.js +1 -0
- package/dist/ripple/p-58a1e616.system.entry.js +1 -0
- package/dist/ripple/p-5ce96720.system.js +1 -0
- package/dist/ripple/p-664c3f62.entry.js +1 -0
- package/dist/ripple/p-6923b8f6.system.js +15 -0
- package/dist/ripple/p-741972e8.system.entry.js +1 -0
- package/dist/ripple/p-764fa608.entry.js +1 -0
- package/dist/ripple/p-77bd8d1b.entry.js +1 -0
- package/dist/ripple/p-7ca9b82f.entry.js +1 -0
- package/dist/ripple/{p-c296ff27.js → p-7e3d3f8e.js} +1 -1
- package/dist/ripple/p-7ff67db9.entry.js +1 -0
- package/dist/ripple/p-864b71bf.system.entry.js +1 -0
- package/dist/ripple/p-87b8fddf.entry.js +1 -0
- package/dist/ripple/{p-43f1298b.js → p-888bec42.js} +0 -0
- package/dist/ripple/p-8a0450fd.entry.js +1 -0
- package/dist/ripple/p-9173f673.entry.js +1 -0
- package/dist/ripple/p-9a9743f5.system.entry.js +1 -0
- package/dist/ripple/p-9f442b49.system.entry.js +1 -0
- package/dist/ripple/p-a208058a.entry.js +1 -0
- package/dist/ripple/p-a2e08282.system.entry.js +1 -0
- package/dist/ripple/p-a3fcdd9f.entry.js +1 -0
- package/dist/ripple/p-a5177480.system.entry.js +1 -0
- package/dist/ripple/p-a588ae81.entry.js +1 -0
- package/dist/ripple/{p-fd8070fb.js → p-a6d6eae7.js} +0 -0
- package/dist/ripple/p-a88d46f9.system.entry.js +1 -0
- package/dist/ripple/p-a8dfec6d.system.entry.js +1 -0
- package/dist/ripple/p-b542340c.system.entry.js +1 -0
- package/dist/ripple/p-bd82c563.entry.js +1 -0
- package/dist/ripple/p-c19298a5.system.entry.js +1 -0
- package/dist/ripple/p-ce79ccd8.system.entry.js +1 -0
- package/dist/ripple/p-ce81ccb4.system.entry.js +1 -0
- package/dist/ripple/p-dadb6c78.js +16 -0
- package/dist/ripple/p-db7f5d60.entry.js +1 -0
- package/dist/ripple/p-dff01b0a.system.entry.js +1 -0
- package/dist/ripple/p-e758db14.system.entry.js +1 -0
- package/dist/ripple/p-e7619eff.system.entry.js +1 -0
- package/dist/ripple/p-ecb6a2e0.entry.js +1 -0
- package/dist/ripple/p-ef344252.entry.js +1 -0
- package/dist/ripple/p-f0dfc5d7.entry.js +1 -0
- package/dist/ripple/p-f2ba1a0f.system.entry.js +1 -0
- package/dist/ripple/p-f92f2d83.entry.js +1 -0
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +130 -0
- package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +48 -48
- package/dist/types/components/wm-button/wm-button.d.ts +44 -44
- package/dist/types/components/wm-chart/priv-chart-popover/priv-chart-popover.d.ts +23 -23
- package/dist/types/components/wm-chart/wm-chart-slice.d.ts +8 -8
- package/dist/types/components/wm-chart/wm-chart.d.ts +82 -82
- package/dist/types/components/wm-datepicker/priv-datepicker/priv-datepicker.d.ts +76 -76
- package/dist/types/components/wm-datepicker/wm-datepicker.d.ts +41 -41
- package/dist/types/components/wm-input/wm-input.d.ts +46 -46
- package/dist/types/components/wm-menuitem/wm-menuitem.d.ts +34 -34
- package/dist/types/components/wm-modal/wm-modal-footer.d.ts +15 -15
- package/dist/types/components/wm-modal/wm-modal-header.d.ts +12 -12
- package/dist/types/components/wm-modal/wm-modal.d.ts +41 -41
- package/dist/types/components/wm-navigation/wm-navigation-hamburger.d.ts +13 -0
- package/dist/types/components/wm-navigation/wm-navigation-item.d.ts +10 -0
- package/dist/types/components/wm-navigation/wm-navigation.d.ts +19 -0
- package/dist/types/components/wm-navigator/priv-navigator-button/priv-navigator-button.d.ts +10 -10
- package/dist/types/components/wm-navigator/priv-navigator-item/priv-navigator-item.d.ts +13 -13
- package/dist/types/components/wm-navigator/wm-navigator.d.ts +61 -61
- package/dist/types/components/wm-option/wm-option.d.ts +32 -32
- package/dist/types/components/wm-pagination/wm-pagination.d.ts +32 -32
- package/dist/types/components/wm-search/wm-search.d.ts +86 -86
- package/dist/types/components/wm-select/wm-select.d.ts +66 -66
- package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +35 -35
- package/dist/types/components/wm-tabs/wm-tab-item/wm-tab-item.d.ts +38 -38
- package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +53 -53
- package/dist/types/components/wm-tabs/wm-tab-panel/wm-tab-panel.d.ts +20 -20
- package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +92 -92
- package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +61 -61
- package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +27 -27
- package/dist/types/components/wm-uploader/wm-network-uploader/wm-network-uploader.d.ts +85 -85
- package/dist/types/components/wm-uploader/wm-uploader.d.ts +80 -80
- package/dist/types/components/wm-wrapper/wm-wrapper.d.ts +7 -7
- package/dist/types/components.d.ts +74 -24
- package/dist/types/global/__mocks__/functions.d.ts +6 -6
- package/dist/types/global/functions.d.ts +40 -40
- package/dist/types/global/global.d.ts +1 -1
- package/dist/types/global/interfaces.d.ts +34 -34
- package/dist/types/global/services/__mocks__/http-service.d.ts +6 -6
- package/dist/types/global/services/http-service.d.ts +4 -4
- package/dist/types/lang/lang.d.ts +5 -5
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/package.json +47 -47
- package/dist/ripple/p-0c488d9d.entry.js +0 -1
- package/dist/ripple/p-0c58f50d.entry.js +0 -1
- package/dist/ripple/p-111f705a.entry.js +0 -1
- package/dist/ripple/p-11c09317.entry.js +0 -1
- package/dist/ripple/p-266e4bc2.entry.js +0 -1
- package/dist/ripple/p-2caeca6b.entry.js +0 -1
- package/dist/ripple/p-30f13477.entry.js +0 -1
- package/dist/ripple/p-4414cb64.entry.js +0 -1
- package/dist/ripple/p-4870d369.entry.js +0 -1
- package/dist/ripple/p-5585f23e.entry.js +0 -1
- package/dist/ripple/p-74438aab.entry.js +0 -1
- package/dist/ripple/p-7d9c18b9.entry.js +0 -1
- package/dist/ripple/p-8a4bac13.entry.js +0 -1
- package/dist/ripple/p-8b0eb05e.entry.js +0 -1
- package/dist/ripple/p-938a5ba4.entry.js +0 -1
- package/dist/ripple/p-99db8501.entry.js +0 -1
- package/dist/ripple/p-9baa3039.js +0 -1
- package/dist/ripple/p-ad73d523.entry.js +0 -1
- package/dist/ripple/p-b5edcf38.js +0 -16
- package/dist/ripple/p-b9656d44.entry.js +0 -1
- package/dist/ripple/p-bc9ca97b.entry.js +0 -1
- package/dist/ripple/p-bd05632b.entry.js +0 -1
- package/dist/ripple/p-c0b0510a.entry.js +0 -1
- package/dist/ripple/p-cd466a5b.entry.js +0 -1
- package/dist/ripple/p-da1435f1.entry.js +0 -1
- package/dist/ripple/p-e3765b8e.entry.js +0 -1
- package/dist/ripple/p-f3569e91.entry.js +0 -1
|
@@ -1,216 +1,216 @@
|
|
|
1
|
-
import { Component, Element, h, Prop, Event, Listen, Host } from "@stencil/core";
|
|
2
|
-
export class TabItem {
|
|
3
|
-
constructor() {
|
|
4
|
-
/**
|
|
5
|
-
* Indicates whether the tab is currently active
|
|
6
|
-
*/
|
|
7
|
-
this.selected = false;
|
|
8
|
-
this.show = true;
|
|
9
|
-
/**
|
|
10
|
-
* The id of the tab, linked to a tab panel.
|
|
11
|
-
*/
|
|
12
|
-
this.tabId = "";
|
|
13
|
-
this.tabClicked = (ev) => {
|
|
14
|
-
ev.preventDefault();
|
|
15
|
-
this.wmTabSelected.emit({ tabId: this.tabId });
|
|
16
|
-
this.tabSelected.emit({ tabId: this.tabId }); // deprecated
|
|
17
|
-
};
|
|
18
|
-
this.tabPressed = (ev) => {
|
|
19
|
-
const key = ev.key;
|
|
20
|
-
if (key === "Enter" || key === " ") {
|
|
21
|
-
ev.preventDefault();
|
|
22
|
-
this.wmTabSelected.emit({ tabId: this.tabId });
|
|
23
|
-
this.tabSelected.emit({ tabId: this.tabId }); // deprecated
|
|
24
|
-
}
|
|
25
|
-
else if (key.includes("Arrow")) {
|
|
26
|
-
ev.preventDefault();
|
|
27
|
-
this.keydownOnTabItem.emit({ tabItem: this.el, key: ev.key });
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
get parentTabList() {
|
|
32
|
-
return this.el.parentElement;
|
|
33
|
-
}
|
|
34
|
-
toggleTabbingOn() {
|
|
35
|
-
this.linkEl && this.linkEl.classList.add("user-is-tabbing");
|
|
36
|
-
}
|
|
37
|
-
toggleTabbingOff() {
|
|
38
|
-
this.linkEl && this.linkEl.classList.remove("user-is-tabbing");
|
|
39
|
-
}
|
|
40
|
-
componentWillLoad() {
|
|
41
|
-
// @ts-ignore
|
|
42
|
-
this.el.focus = function () {
|
|
43
|
-
const linkEl = this.shadowRoot.querySelector("a");
|
|
44
|
-
linkEl && linkEl.focus();
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
componentDidLoad() {
|
|
48
|
-
this.tabItemLoaded.emit();
|
|
49
|
-
}
|
|
50
|
-
render() {
|
|
51
|
-
let classes = this.show ? "" : "hide ";
|
|
52
|
-
classes += this.parentTabList && this.parentTabList.customBackground == "dark" ? "dark" : "";
|
|
53
|
-
let styles = {};
|
|
54
|
-
const padding = this.parentTabList && this.parentTabList.customPadding;
|
|
55
|
-
if (padding) {
|
|
56
|
-
const bkgSize = parseInt(padding, 10) * 2 || 0;
|
|
57
|
-
const units = padding.split(/([0-9]+)/).pop();
|
|
58
|
-
styles = {
|
|
59
|
-
"padding-left": this.parentTabList.customPadding,
|
|
60
|
-
"padding-right": this.parentTabList.customPadding,
|
|
61
|
-
"background-size": `calc(100% - ${bkgSize}${units}) 3px`,
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
return (h(Host, { role: "presentation" },
|
|
65
|
-
h("li", { class: "tab-item", role: "presentation" },
|
|
66
|
-
h("a", { class: `tab ${classes}`, style: styles, role: "tab", ref: (el) => (this.linkEl = el), onClick: this.tabClicked, id: `tab-link-${this.tabId}`, onKeyDown: (ev) => this.tabPressed(ev), "aria-selected": this.selected ? "true" : "false", tabindex: this.selected ? 0 : -1 },
|
|
67
|
-
h("slot", null)))));
|
|
68
|
-
}
|
|
69
|
-
static get is() { return "wm-tab-item"; }
|
|
70
|
-
static get encapsulation() { return "shadow"; }
|
|
71
|
-
static get originalStyleUrls() { return {
|
|
72
|
-
"$": ["wm-tab-item.scss"]
|
|
73
|
-
}; }
|
|
74
|
-
static get styleUrls() { return {
|
|
75
|
-
"$": ["wm-tab-item.css"]
|
|
76
|
-
}; }
|
|
77
|
-
static get properties() { return {
|
|
78
|
-
"selected": {
|
|
79
|
-
"type": "boolean",
|
|
80
|
-
"mutable": false,
|
|
81
|
-
"complexType": {
|
|
82
|
-
"original": "boolean",
|
|
83
|
-
"resolved": "boolean",
|
|
84
|
-
"references": {}
|
|
85
|
-
},
|
|
86
|
-
"required": false,
|
|
87
|
-
"optional": false,
|
|
88
|
-
"docs": {
|
|
89
|
-
"tags": [],
|
|
90
|
-
"text": "Indicates whether the tab is currently active"
|
|
91
|
-
},
|
|
92
|
-
"attribute": "selected",
|
|
93
|
-
"reflect": false,
|
|
94
|
-
"defaultValue": "false"
|
|
95
|
-
},
|
|
96
|
-
"show": {
|
|
97
|
-
"type": "boolean",
|
|
98
|
-
"mutable": false,
|
|
99
|
-
"complexType": {
|
|
100
|
-
"original": "boolean",
|
|
101
|
-
"resolved": "boolean",
|
|
102
|
-
"references": {}
|
|
103
|
-
},
|
|
104
|
-
"required": false,
|
|
105
|
-
"optional": false,
|
|
106
|
-
"docs": {
|
|
107
|
-
"tags": [],
|
|
108
|
-
"text": ""
|
|
109
|
-
},
|
|
110
|
-
"attribute": "show",
|
|
111
|
-
"reflect": false,
|
|
112
|
-
"defaultValue": "true"
|
|
113
|
-
},
|
|
114
|
-
"tabId": {
|
|
115
|
-
"type": "string",
|
|
116
|
-
"mutable": false,
|
|
117
|
-
"complexType": {
|
|
118
|
-
"original": "string",
|
|
119
|
-
"resolved": "string",
|
|
120
|
-
"references": {}
|
|
121
|
-
},
|
|
122
|
-
"required": false,
|
|
123
|
-
"optional": false,
|
|
124
|
-
"docs": {
|
|
125
|
-
"tags": [],
|
|
126
|
-
"text": "The id of the tab, linked to a tab panel."
|
|
127
|
-
},
|
|
128
|
-
"attribute": "tab-id",
|
|
129
|
-
"reflect": false,
|
|
130
|
-
"defaultValue": "\"\""
|
|
131
|
-
}
|
|
132
|
-
}; }
|
|
133
|
-
static get events() { return [{
|
|
134
|
-
"method": "wmTabSelected",
|
|
135
|
-
"name": "wmTabSelected",
|
|
136
|
-
"bubbles": true,
|
|
137
|
-
"cancelable": true,
|
|
138
|
-
"composed": true,
|
|
139
|
-
"docs": {
|
|
140
|
-
"tags": [],
|
|
141
|
-
"text": ""
|
|
142
|
-
},
|
|
143
|
-
"complexType": {
|
|
144
|
-
"original": "{ tabId: string }",
|
|
145
|
-
"resolved": "{ tabId: string; }",
|
|
146
|
-
"references": {}
|
|
147
|
-
}
|
|
148
|
-
}, {
|
|
149
|
-
"method": "tabSelected",
|
|
150
|
-
"name": "tabSelected",
|
|
151
|
-
"bubbles": true,
|
|
152
|
-
"cancelable": true,
|
|
153
|
-
"composed": true,
|
|
154
|
-
"docs": {
|
|
155
|
-
"tags": [],
|
|
156
|
-
"text": ""
|
|
157
|
-
},
|
|
158
|
-
"complexType": {
|
|
159
|
-
"original": "{ tabId: string }",
|
|
160
|
-
"resolved": "{ tabId: string; }",
|
|
161
|
-
"references": {}
|
|
162
|
-
}
|
|
163
|
-
}, {
|
|
164
|
-
"method": "keydownOnTabItem",
|
|
165
|
-
"name": "keydownOnTabItem",
|
|
166
|
-
"bubbles": true,
|
|
167
|
-
"cancelable": true,
|
|
168
|
-
"composed": true,
|
|
169
|
-
"docs": {
|
|
170
|
-
"tags": [],
|
|
171
|
-
"text": ""
|
|
172
|
-
},
|
|
173
|
-
"complexType": {
|
|
174
|
-
"original": "{\
|
|
175
|
-
"resolved": "{ tabItem: HTMLWmTabItemElement; key: string; }",
|
|
176
|
-
"references": {
|
|
177
|
-
"HTMLWmTabItemElement": {
|
|
178
|
-
"location": "global"
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}, {
|
|
183
|
-
"method": "tabItemLoaded",
|
|
184
|
-
"name": "tabItemLoaded",
|
|
185
|
-
"bubbles": true,
|
|
186
|
-
"cancelable": true,
|
|
187
|
-
"composed": true,
|
|
188
|
-
"docs": {
|
|
189
|
-
"tags": [],
|
|
190
|
-
"text": ""
|
|
191
|
-
},
|
|
192
|
-
"complexType": {
|
|
193
|
-
"original": "{ tab: HTMLWmTabItemElement }",
|
|
194
|
-
"resolved": "{ tab: HTMLWmTabItemElement; }",
|
|
195
|
-
"references": {
|
|
196
|
-
"HTMLWmTabItemElement": {
|
|
197
|
-
"location": "global"
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}]; }
|
|
202
|
-
static get elementRef() { return "el"; }
|
|
203
|
-
static get listeners() { return [{
|
|
204
|
-
"name": "keydown",
|
|
205
|
-
"method": "toggleTabbingOn",
|
|
206
|
-
"target": "document",
|
|
207
|
-
"capture": false,
|
|
208
|
-
"passive": false
|
|
209
|
-
}, {
|
|
210
|
-
"name": "click",
|
|
211
|
-
"method": "toggleTabbingOff",
|
|
212
|
-
"target": "document",
|
|
213
|
-
"capture": false,
|
|
214
|
-
"passive": false
|
|
215
|
-
}]; }
|
|
216
|
-
}
|
|
1
|
+
import { Component, Element, h, Prop, Event, Listen, Host } from "@stencil/core";
|
|
2
|
+
export class TabItem {
|
|
3
|
+
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* Indicates whether the tab is currently active
|
|
6
|
+
*/
|
|
7
|
+
this.selected = false;
|
|
8
|
+
this.show = true;
|
|
9
|
+
/**
|
|
10
|
+
* The id of the tab, linked to a tab panel.
|
|
11
|
+
*/
|
|
12
|
+
this.tabId = "";
|
|
13
|
+
this.tabClicked = (ev) => {
|
|
14
|
+
ev.preventDefault();
|
|
15
|
+
this.wmTabSelected.emit({ tabId: this.tabId });
|
|
16
|
+
this.tabSelected.emit({ tabId: this.tabId }); // deprecated
|
|
17
|
+
};
|
|
18
|
+
this.tabPressed = (ev) => {
|
|
19
|
+
const key = ev.key;
|
|
20
|
+
if (key === "Enter" || key === " ") {
|
|
21
|
+
ev.preventDefault();
|
|
22
|
+
this.wmTabSelected.emit({ tabId: this.tabId });
|
|
23
|
+
this.tabSelected.emit({ tabId: this.tabId }); // deprecated
|
|
24
|
+
}
|
|
25
|
+
else if (key.includes("Arrow")) {
|
|
26
|
+
ev.preventDefault();
|
|
27
|
+
this.keydownOnTabItem.emit({ tabItem: this.el, key: ev.key });
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
get parentTabList() {
|
|
32
|
+
return this.el.parentElement;
|
|
33
|
+
}
|
|
34
|
+
toggleTabbingOn() {
|
|
35
|
+
this.linkEl && this.linkEl.classList.add("user-is-tabbing");
|
|
36
|
+
}
|
|
37
|
+
toggleTabbingOff() {
|
|
38
|
+
this.linkEl && this.linkEl.classList.remove("user-is-tabbing");
|
|
39
|
+
}
|
|
40
|
+
componentWillLoad() {
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
this.el.focus = function () {
|
|
43
|
+
const linkEl = this.shadowRoot.querySelector("a");
|
|
44
|
+
linkEl && linkEl.focus();
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
componentDidLoad() {
|
|
48
|
+
this.tabItemLoaded.emit();
|
|
49
|
+
}
|
|
50
|
+
render() {
|
|
51
|
+
let classes = this.show ? "" : "hide ";
|
|
52
|
+
classes += this.parentTabList && this.parentTabList.customBackground == "dark" ? "dark" : "";
|
|
53
|
+
let styles = {};
|
|
54
|
+
const padding = this.parentTabList && this.parentTabList.customPadding;
|
|
55
|
+
if (padding) {
|
|
56
|
+
const bkgSize = parseInt(padding, 10) * 2 || 0;
|
|
57
|
+
const units = padding.split(/([0-9]+)/).pop();
|
|
58
|
+
styles = {
|
|
59
|
+
"padding-left": this.parentTabList.customPadding,
|
|
60
|
+
"padding-right": this.parentTabList.customPadding,
|
|
61
|
+
"background-size": `calc(100% - ${bkgSize}${units}) 3px`,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
return (h(Host, { role: "presentation" },
|
|
65
|
+
h("li", { class: "tab-item", role: "presentation" },
|
|
66
|
+
h("a", { class: `tab ${classes}`, style: styles, role: "tab", ref: (el) => (this.linkEl = el), onClick: this.tabClicked, id: `tab-link-${this.tabId}`, onKeyDown: (ev) => this.tabPressed(ev), "aria-selected": this.selected ? "true" : "false", tabindex: this.selected ? 0 : -1 },
|
|
67
|
+
h("slot", null)))));
|
|
68
|
+
}
|
|
69
|
+
static get is() { return "wm-tab-item"; }
|
|
70
|
+
static get encapsulation() { return "shadow"; }
|
|
71
|
+
static get originalStyleUrls() { return {
|
|
72
|
+
"$": ["wm-tab-item.scss"]
|
|
73
|
+
}; }
|
|
74
|
+
static get styleUrls() { return {
|
|
75
|
+
"$": ["wm-tab-item.css"]
|
|
76
|
+
}; }
|
|
77
|
+
static get properties() { return {
|
|
78
|
+
"selected": {
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"mutable": false,
|
|
81
|
+
"complexType": {
|
|
82
|
+
"original": "boolean",
|
|
83
|
+
"resolved": "boolean",
|
|
84
|
+
"references": {}
|
|
85
|
+
},
|
|
86
|
+
"required": false,
|
|
87
|
+
"optional": false,
|
|
88
|
+
"docs": {
|
|
89
|
+
"tags": [],
|
|
90
|
+
"text": "Indicates whether the tab is currently active"
|
|
91
|
+
},
|
|
92
|
+
"attribute": "selected",
|
|
93
|
+
"reflect": false,
|
|
94
|
+
"defaultValue": "false"
|
|
95
|
+
},
|
|
96
|
+
"show": {
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"mutable": false,
|
|
99
|
+
"complexType": {
|
|
100
|
+
"original": "boolean",
|
|
101
|
+
"resolved": "boolean",
|
|
102
|
+
"references": {}
|
|
103
|
+
},
|
|
104
|
+
"required": false,
|
|
105
|
+
"optional": false,
|
|
106
|
+
"docs": {
|
|
107
|
+
"tags": [],
|
|
108
|
+
"text": ""
|
|
109
|
+
},
|
|
110
|
+
"attribute": "show",
|
|
111
|
+
"reflect": false,
|
|
112
|
+
"defaultValue": "true"
|
|
113
|
+
},
|
|
114
|
+
"tabId": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"mutable": false,
|
|
117
|
+
"complexType": {
|
|
118
|
+
"original": "string",
|
|
119
|
+
"resolved": "string",
|
|
120
|
+
"references": {}
|
|
121
|
+
},
|
|
122
|
+
"required": false,
|
|
123
|
+
"optional": false,
|
|
124
|
+
"docs": {
|
|
125
|
+
"tags": [],
|
|
126
|
+
"text": "The id of the tab, linked to a tab panel."
|
|
127
|
+
},
|
|
128
|
+
"attribute": "tab-id",
|
|
129
|
+
"reflect": false,
|
|
130
|
+
"defaultValue": "\"\""
|
|
131
|
+
}
|
|
132
|
+
}; }
|
|
133
|
+
static get events() { return [{
|
|
134
|
+
"method": "wmTabSelected",
|
|
135
|
+
"name": "wmTabSelected",
|
|
136
|
+
"bubbles": true,
|
|
137
|
+
"cancelable": true,
|
|
138
|
+
"composed": true,
|
|
139
|
+
"docs": {
|
|
140
|
+
"tags": [],
|
|
141
|
+
"text": ""
|
|
142
|
+
},
|
|
143
|
+
"complexType": {
|
|
144
|
+
"original": "{ tabId: string }",
|
|
145
|
+
"resolved": "{ tabId: string; }",
|
|
146
|
+
"references": {}
|
|
147
|
+
}
|
|
148
|
+
}, {
|
|
149
|
+
"method": "tabSelected",
|
|
150
|
+
"name": "tabSelected",
|
|
151
|
+
"bubbles": true,
|
|
152
|
+
"cancelable": true,
|
|
153
|
+
"composed": true,
|
|
154
|
+
"docs": {
|
|
155
|
+
"tags": [],
|
|
156
|
+
"text": ""
|
|
157
|
+
},
|
|
158
|
+
"complexType": {
|
|
159
|
+
"original": "{ tabId: string }",
|
|
160
|
+
"resolved": "{ tabId: string; }",
|
|
161
|
+
"references": {}
|
|
162
|
+
}
|
|
163
|
+
}, {
|
|
164
|
+
"method": "keydownOnTabItem",
|
|
165
|
+
"name": "keydownOnTabItem",
|
|
166
|
+
"bubbles": true,
|
|
167
|
+
"cancelable": true,
|
|
168
|
+
"composed": true,
|
|
169
|
+
"docs": {
|
|
170
|
+
"tags": [],
|
|
171
|
+
"text": ""
|
|
172
|
+
},
|
|
173
|
+
"complexType": {
|
|
174
|
+
"original": "{\n tabItem: HTMLWmTabItemElement;\n key: string;\n }",
|
|
175
|
+
"resolved": "{ tabItem: HTMLWmTabItemElement; key: string; }",
|
|
176
|
+
"references": {
|
|
177
|
+
"HTMLWmTabItemElement": {
|
|
178
|
+
"location": "global"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}, {
|
|
183
|
+
"method": "tabItemLoaded",
|
|
184
|
+
"name": "tabItemLoaded",
|
|
185
|
+
"bubbles": true,
|
|
186
|
+
"cancelable": true,
|
|
187
|
+
"composed": true,
|
|
188
|
+
"docs": {
|
|
189
|
+
"tags": [],
|
|
190
|
+
"text": ""
|
|
191
|
+
},
|
|
192
|
+
"complexType": {
|
|
193
|
+
"original": "{ tab: HTMLWmTabItemElement }",
|
|
194
|
+
"resolved": "{ tab: HTMLWmTabItemElement; }",
|
|
195
|
+
"references": {
|
|
196
|
+
"HTMLWmTabItemElement": {
|
|
197
|
+
"location": "global"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}]; }
|
|
202
|
+
static get elementRef() { return "el"; }
|
|
203
|
+
static get listeners() { return [{
|
|
204
|
+
"name": "keydown",
|
|
205
|
+
"method": "toggleTabbingOn",
|
|
206
|
+
"target": "document",
|
|
207
|
+
"capture": false,
|
|
208
|
+
"passive": false
|
|
209
|
+
}, {
|
|
210
|
+
"name": "click",
|
|
211
|
+
"method": "toggleTabbingOff",
|
|
212
|
+
"target": "document",
|
|
213
|
+
"capture": false,
|
|
214
|
+
"passive": false
|
|
215
|
+
}]; }
|
|
216
|
+
}
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
/********************************************************************************************/
|
|
36
36
|
/* DO NOT USE THESE DIRECTLY, ASSIGN THEM TO VARIABLES NAMED AFTER FUNCTIONALITY, SEE BELOW */
|
|
37
37
|
/********************************************************************************************/
|
|
38
|
-
/* USAGE */
|
|
39
38
|
/* BELOW IS BEFORE WE HAD THE COLOR PALETTE FROM UI */
|
|
40
39
|
/* TODO: replace with vars above whenever possible */
|
|
41
40
|
/* Buttons */
|