@watermarkinsights/ripple 3.9.0-3 → 3.9.0-6
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/{chartFunctions-a1dd1291.js → chartFunctions-01bb841e.js} +18 -17
- package/dist/cjs/{functions-0750b767.js → functions-33825afb.js} +12 -0
- package/dist/cjs/{global-f2a6d27b.js → global-d016e7de.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/priv-chart-popover.cjs.entry.js +1 -1
- package/dist/cjs/priv-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/ripple.cjs.js +2 -2
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +1 -1
- package/dist/cjs/wm-button.cjs.entry.js +2 -2
- package/dist/cjs/wm-chart.cjs.entry.js +2 -2
- package/dist/cjs/wm-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/wm-input.cjs.entry.js +1 -1
- package/dist/cjs/wm-modal-header.cjs.entry.js +1 -1
- package/dist/cjs/wm-modal.cjs.entry.js +1 -1
- package/dist/cjs/wm-navigation_3.cjs.entry.js +1 -1
- package/dist/cjs/wm-navigator.cjs.entry.js +1 -1
- package/dist/cjs/wm-network-uploader.cjs.entry.js +48 -16
- package/dist/cjs/wm-option_2.cjs.entry.js +1 -1
- package/dist/cjs/wm-pagination.cjs.entry.js +1 -1
- package/dist/cjs/wm-progress-indicator.cjs.entry.js +2 -2
- package/dist/cjs/wm-progress-monitor.cjs.entry.js +3 -7
- package/dist/cjs/wm-search.cjs.entry.js +1 -1
- package/dist/cjs/wm-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +1 -1
- package/dist/cjs/wm-tag-input.cjs.entry.js +1 -1
- package/dist/cjs/wm-timepicker.cjs.entry.js +1 -1
- package/dist/cjs/wm-toggletip.cjs.entry.js +1 -1
- package/dist/cjs/wm-uploader.cjs.entry.js +49 -17
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +3 -7
- package/dist/collection/components/wm-button/wm-button.css +19 -19
- package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.css +19 -19
- package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.js +47 -15
- package/dist/collection/components/wm-uploader/wm-uploader.css +23 -19
- package/dist/collection/components/wm-uploader/wm-uploader.js +48 -16
- package/dist/collection/global/chartFunctions.js +17 -16
- package/dist/collection/lang/missing.js +7 -3
- package/dist/esm/{chartFunctions-fc11df2b.js → chartFunctions-4be35472.js} +18 -17
- package/dist/esm/{functions-b478ef24.js → functions-a326c899.js} +12 -0
- package/dist/esm/{global-64333900.js → global-9823b157.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/priv-chart-popover.entry.js +1 -1
- package/dist/esm/priv-datepicker.entry.js +1 -1
- package/dist/esm/ripple.js +2 -2
- package/dist/esm/wm-action-menu_2.entry.js +1 -1
- package/dist/esm/wm-button.entry.js +2 -2
- package/dist/esm/wm-chart.entry.js +2 -2
- package/dist/esm/wm-datepicker.entry.js +1 -1
- package/dist/esm/wm-input.entry.js +1 -1
- package/dist/esm/wm-modal-header.entry.js +1 -1
- package/dist/esm/wm-modal.entry.js +1 -1
- package/dist/esm/wm-navigation_3.entry.js +1 -1
- package/dist/esm/wm-navigator.entry.js +1 -1
- package/dist/esm/wm-network-uploader.entry.js +48 -16
- package/dist/esm/wm-option_2.entry.js +1 -1
- package/dist/esm/wm-pagination.entry.js +1 -1
- package/dist/esm/wm-progress-indicator.entry.js +2 -2
- package/dist/esm/wm-progress-monitor.entry.js +3 -7
- package/dist/esm/wm-search.entry.js +1 -1
- package/dist/esm/wm-snackbar.entry.js +1 -1
- package/dist/esm/wm-tab-item_3.entry.js +1 -1
- package/dist/esm/wm-tag-input.entry.js +1 -1
- package/dist/esm/wm-timepicker.entry.js +1 -1
- package/dist/esm/wm-toggletip.entry.js +1 -1
- package/dist/esm/wm-uploader.entry.js +49 -17
- package/dist/esm-es5/{chartFunctions-fc11df2b.js → chartFunctions-4be35472.js} +1 -1
- package/dist/esm-es5/{functions-b478ef24.js → functions-a326c899.js} +1 -1
- package/dist/esm-es5/{global-64333900.js → global-9823b157.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
- package/dist/esm-es5/priv-datepicker.entry.js +1 -1
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
- package/dist/esm-es5/wm-button.entry.js +1 -1
- package/dist/esm-es5/wm-chart.entry.js +1 -1
- package/dist/esm-es5/wm-datepicker.entry.js +1 -1
- package/dist/esm-es5/wm-input.entry.js +1 -1
- package/dist/esm-es5/wm-modal-header.entry.js +1 -1
- package/dist/esm-es5/wm-modal.entry.js +1 -1
- package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigator.entry.js +1 -1
- package/dist/esm-es5/wm-network-uploader.entry.js +1 -1
- package/dist/esm-es5/wm-option_2.entry.js +1 -1
- package/dist/esm-es5/wm-pagination.entry.js +1 -1
- package/dist/esm-es5/wm-progress-indicator.entry.js +1 -1
- package/dist/esm-es5/wm-progress-monitor.entry.js +1 -1
- package/dist/esm-es5/wm-search.entry.js +1 -1
- package/dist/esm-es5/wm-snackbar.entry.js +1 -1
- package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
- package/dist/esm-es5/wm-tag-input.entry.js +1 -1
- package/dist/esm-es5/wm-timepicker.entry.js +1 -1
- package/dist/esm-es5/wm-toggletip.entry.js +1 -1
- package/dist/esm-es5/wm-uploader.entry.js +1 -1
- package/dist/ripple/{p-e90f6915.system.js → p-0404f9e8.system.js} +1 -1
- package/dist/ripple/p-09341809.system.entry.js +1 -0
- package/dist/ripple/{p-fe2a30d3.entry.js → p-0c45ad74.entry.js} +1 -1
- package/dist/ripple/{p-2b9c54e7.system.entry.js → p-0ff4d5d1.system.entry.js} +1 -1
- package/dist/ripple/{p-fd9380f2.system.entry.js → p-12681f66.system.entry.js} +1 -1
- package/dist/ripple/{p-647edff3.system.entry.js → p-19331b32.system.entry.js} +1 -1
- package/dist/ripple/{p-2cc9e6cf.system.entry.js → p-1a2b34ee.system.entry.js} +1 -1
- package/dist/ripple/{p-c20a179f.system.entry.js → p-2d20de1e.system.entry.js} +1 -1
- package/dist/ripple/{p-30e1daf7.system.entry.js → p-33d23baa.system.entry.js} +1 -1
- package/dist/ripple/{p-bf3fbca8.js → p-33ee2cf6.js} +1 -1
- package/dist/ripple/{p-2587031d.system.entry.js → p-34b5af5b.system.entry.js} +1 -1
- package/dist/ripple/{p-b325c35a.system.entry.js → p-36456289.system.entry.js} +1 -1
- package/dist/ripple/p-3710ef3e.system.entry.js +1 -0
- package/dist/ripple/{p-0b23a4fe.entry.js → p-407735b2.entry.js} +1 -1
- package/dist/ripple/p-49bb18cc.entry.js +1 -0
- package/dist/ripple/{p-ea33bda7.system.entry.js → p-5c199fd5.system.entry.js} +1 -1
- package/dist/ripple/{p-1b7be30d.system.entry.js → p-66b6f53d.system.entry.js} +1 -1
- package/dist/ripple/{p-f2566a42.system.entry.js → p-6ea8120e.system.entry.js} +1 -1
- package/dist/ripple/{p-d7ff84eb.entry.js → p-70165cfb.entry.js} +1 -1
- package/dist/ripple/{p-063bc67c.system.entry.js → p-76678c87.system.entry.js} +1 -1
- package/dist/ripple/{p-70ececb5.entry.js → p-767d370a.entry.js} +1 -1
- package/dist/ripple/{p-34736928.entry.js → p-777105ef.entry.js} +1 -1
- package/dist/ripple/p-77cd6501.system.js +1 -0
- package/dist/ripple/p-7918cebe.entry.js +1 -0
- package/dist/ripple/{p-1b2c3251.system.entry.js → p-7b10708b.system.entry.js} +1 -1
- package/dist/ripple/{p-4f23cdc6.entry.js → p-8aefc87b.entry.js} +1 -1
- package/dist/ripple/{p-3eb3a1f8.entry.js → p-8c11c2cb.entry.js} +1 -1
- package/dist/ripple/{p-8a583f84.entry.js → p-8caffd40.entry.js} +1 -1
- package/dist/ripple/{p-29d527c8.entry.js → p-90d6e070.entry.js} +1 -1
- package/dist/ripple/{p-7674c9b0.system.entry.js → p-95139f95.system.entry.js} +1 -1
- package/dist/ripple/{p-30db4ad7.entry.js → p-97647fa9.entry.js} +1 -1
- package/dist/ripple/{p-7a2a0d2e.js → p-9c940014.js} +1 -1
- package/dist/ripple/{p-2296c2c3.entry.js → p-9f07588b.entry.js} +1 -1
- package/dist/ripple/{p-cb7d8ade.system.entry.js → p-9fae30ed.system.entry.js} +1 -1
- package/dist/ripple/{p-8daa2613.system.entry.js → p-a11f9b93.system.entry.js} +1 -1
- package/dist/ripple/p-b96c7863.system.entry.js +1 -0
- package/dist/ripple/{p-935a266f.entry.js → p-b9c1b0bf.entry.js} +1 -1
- package/dist/ripple/{p-8be292a2.system.js → p-bb73ebab.system.js} +1 -1
- package/dist/ripple/{p-d648d193.entry.js → p-c233717a.entry.js} +1 -1
- package/dist/ripple/p-c3720168.system.entry.js +1 -0
- package/dist/ripple/{p-803f1f22.entry.js → p-c9e598b4.entry.js} +1 -1
- package/dist/ripple/{p-c8bbf15e.entry.js → p-d17345cb.entry.js} +1 -1
- package/dist/ripple/p-d9912bd5.entry.js +1 -0
- package/dist/ripple/{p-f62fc5ea.system.entry.js → p-dc32ec0c.system.entry.js} +1 -1
- package/dist/ripple/{p-5743d4bc.system.entry.js → p-dddae010.system.entry.js} +1 -1
- package/dist/ripple/{p-76b96f77.entry.js → p-e7212c03.entry.js} +1 -1
- package/dist/ripple/{p-cfb62ded.entry.js → p-e802ba67.entry.js} +1 -1
- package/dist/ripple/p-e9951aa1.js +1 -0
- package/dist/ripple/{p-c1c7b0b1.system.js → p-ed6c5269.system.js} +2 -2
- package/dist/ripple/p-f2b9a140.entry.js +1 -0
- package/dist/ripple/{p-492ad5d0.system.entry.js → p-f5486f80.system.entry.js} +1 -1
- package/dist/ripple/{p-a14ac623.entry.js → p-f70cc1ab.entry.js} +1 -1
- package/dist/ripple/{p-7f0c64ac.entry.js → p-fdbfae1c.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/charts/wm-progress-monitor/wm-progress-monitor.d.ts +1 -1
- package/dist/types/components/wm-uploader/wm-network-uploader/wm-network-uploader.d.ts +2 -2
- package/dist/types/components/wm-uploader/wm-uploader.d.ts +2 -2
- package/package.json +1 -1
- package/dist/ripple/p-1e2c46f1.entry.js +0 -1
- package/dist/ripple/p-366e00f9.js +0 -1
- package/dist/ripple/p-5e5f162c.system.entry.js +0 -1
- package/dist/ripple/p-6f9e8fbc.entry.js +0 -1
- package/dist/ripple/p-7ef7bb76.system.entry.js +0 -1
- package/dist/ripple/p-84fb34b5.entry.js +0 -1
- package/dist/ripple/p-bfe93d8d.system.entry.js +0 -1
- package/dist/ripple/p-e6f0f663.entry.js +0 -1
- package/dist/ripple/p-f99d8fe3.system.js +0 -1
- package/dist/ripple/p-fe0abd10.system.entry.js +0 -1
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-98c6524c.js');
|
|
6
|
-
const functions = require('./functions-
|
|
6
|
+
const functions = require('./functions-33825afb.js');
|
|
7
7
|
|
|
8
|
-
const wmUploaderCss = "@charset \"UTF-8\";:host .wm-button,wm-uploader .wm-button{-ms-transition:background-color 500ms cubic-bezier(0.4, 0, 0.2, 1), color 500ms cubic-bezier(0.4, 0, 0.2, 1), border 500ms cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition:background-color 500ms cubic-bezier(0.4, 0, 0.2, 1), color 500ms cubic-bezier(0.4, 0, 0.2, 1), border 500ms cubic-bezier(0.4, 0, 0.2, 1);-moz-transition:background-color 500ms cubic-bezier(0.4, 0, 0.2, 1), color 500ms cubic-bezier(0.4, 0, 0.2, 1), border 500ms cubic-bezier(0.4, 0, 0.2, 1);transition:background-color 500ms cubic-bezier(0.4, 0, 0.2, 1), color 500ms cubic-bezier(0.4, 0, 0.2, 1), border 500ms cubic-bezier(0.4, 0, 0.2, 1);-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;border-radius:5px;width:inherit;border:2px solid #575195;color:#575195;font-family:inherit;font-size:0.75rem;font-weight:700;height:2.75rem;padding:0 1.3333333333em;cursor:pointer;position:relative;background:#fff;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-decoration:none;text-transform:uppercase;letter-spacing:0.01875rem;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}@media screen and (min-width: 48rem){:host .wm-button,wm-uploader .wm-button{height:3.3333333333em}}:host .wm-button.nowrap,wm-uploader .wm-button.nowrap{display:inline-block;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host .wm-button:focus,wm-uploader .wm-button:focus{outline:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}:host .wm-button::-moz-focus-inner,wm-uploader .wm-button::-moz-focus-inner{border:0;outline:none}:host .wm-button.user-is-tabbing:focus:not(:disabled):not(.disabled) :host .wm-button.-textonly .button-text,wm-uploader .wm-button.user-is-tabbing:focus:not(:disabled):not(.disabled) :host .wm-button.-textonly .button-text,:host .wm-button.user-is-tabbing:focus:not(:disabled):not(.disabled) wm-uploader .wm-button.-textonly .button-text,wm-uploader .wm-button.user-is-tabbing:focus:not(:disabled):not(.disabled) wm-uploader .wm-button.-textonly .button-text{background:-webkit-gradient(linear, left top, right top, color-stop(66%, #3862e9), color-stop(0, transparent)) repeat-x;background:linear-gradient(90deg, #3862e9 66%, transparent 0) repeat-x;background-size:6px 3px;background-position:0 1em;border-radius:0;line-height:normal}:host .wm-button.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled),wm-uploader .wm-button.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled){-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}:host .wm-button.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled):not(.dark),wm-uploader .wm-button.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled):not(.dark){-webkit-box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e;-moz-box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e;box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e}:host .wm-button.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled):not(.dark)::-moz-focus-inner,wm-uploader .wm-button.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled):not(.dark)::-moz-focus-inner{border:0}:host .wm-button.dark:not(.-textonly):not(:disabled):not(.disabled),wm-uploader .wm-button.dark:not(.-textonly):not(:disabled):not(.disabled){background:transparent;border:2px solid #fff;color:#fff}:host .wm-button.dark:not(.-textonly):not(:disabled):not(.disabled):hover,wm-uploader .wm-button.dark:not(.-textonly):not(:disabled):not(.disabled):hover{color:#575195;background:#e6e6e6;border:2px solid #e6e6e6}:host .wm-button.dark.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled).dark,wm-uploader .wm-button.dark.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled).dark{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;-webkit-box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #c6b4e3;-moz-box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #c6b4e3;box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #c6b4e3;outline:none}:host .wm-button:active:not(:disabled):not(.disabled):not(.-textonly):not(.-actionbutton):not(.displayedoption),wm-uploader .wm-button:active:not(:disabled):not(.disabled):not(.-textonly):not(.-actionbutton):not(.displayedoption){-ms-transform:scale(0.9, 0.9);-webkit-transform:scale(0.9, 0.9);-moz-transform:scale(0.9, 0.9);transform:scale(0.9, 0.9)}:host .wm-button:hover,wm-uploader .wm-button:hover{background:#464177;color:#fff}:host .wm-button .mdi,wm-uploader .wm-button .mdi{display:inline-block;font:normal normal normal 24px/1 \"Material Design Icons\";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host .wm-button:not(.-icononly):not(.-navigational) .mdi,wm-uploader .wm-button:not(.-icononly):not(.-navigational) .mdi{margin-right:0.3125rem}:host .wm-button[dir=RTL] :not(.-icononly) .mdi,wm-uploader .wm-button[dir=RTL] :not(.-icononly) .mdi{margin-left:0.3125rem;margin-right:0}:host .wm-button.-primary:not(.-textonly),wm-uploader .wm-button.-primary:not(.-textonly){background:#575195;color:#fff}:host .wm-button.-primary:not(.-textonly):not(:focus),wm-uploader .wm-button.-primary:not(.-textonly):not(:focus){-webkit-box-shadow:0 2px 2px 0 rgba(87, 81, 149, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.2);-moz-box-shadow:0 2px 2px 0 rgba(87, 81, 149, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.2);box-shadow:0 2px 2px 0 rgba(87, 81, 149, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.2)}:host .wm-button.-primary:not(.-textonly):hover,wm-uploader .wm-button.-primary:not(.-textonly):hover{background:#464177}:host .wm-button.-primary:not(.-textonly).dark:not(:disabled):not(.disabled),wm-uploader .wm-button.-primary:not(.-textonly).dark:not(:disabled):not(.disabled){color:#575195;background:#fff;border:2px solid #fff}:host .wm-button.-primary:not(.-textonly).dark:not(:disabled):not(.disabled):hover,wm-uploader .wm-button.-primary:not(.-textonly).dark:not(:disabled):not(.disabled):hover{color:#575195;background:#e6e6e6;border:2px solid #e6e6e6}:host .wm-button.-textonly,wm-uploader .wm-button.-textonly{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;display:inline-block;letter-spacing:0;text-transform:none;text-align:initial;font-size:0.875rem;border:none;background:transparent;padding-left:0;padding-right:0;height:auto;border-radius:0;line-height:1}:host .wm-button.-textonly+.-textonly,wm-uploader .wm-button.-textonly+.-textonly{margin-left:0.3125rem}:host .wm-button.-textonly:focus,wm-uploader .wm-button.-textonly:focus{outline:none}:host .wm-button.-textonly::-moz-focus-inner,wm-uploader .wm-button.-textonly::-moz-focus-inner{border:0;outline:none}:host .wm-button.-textonly.user-is-tabbing:focus:not(:disabled):not(.disabled) .button-text,wm-uploader .wm-button.-textonly.user-is-tabbing:focus:not(:disabled):not(.disabled) .button-text{background:-webkit-gradient(linear, left top, right top, color-stop(66%, #3862e9), color-stop(0, transparent)) repeat-x;background:linear-gradient(90deg, #3862e9 66%, transparent 0) repeat-x;background-size:6px 3px;background-position:0 1em;border-radius:0;line-height:normal}:host .wm-button.-textonly.user-is-tabbing:focus:not(:disabled):not(.disabled).dark .button-text,wm-uploader .wm-button.-textonly.user-is-tabbing:focus:not(:disabled):not(.disabled).dark .button-text{background:-webkit-gradient(linear, left top, right top, color-stop(66%, #fff), color-stop(0, transparent)) repeat-x;background:linear-gradient(90deg, #fff 66%, transparent 0) repeat-x;background-size:6px 3px;background-position:0 1em;border-radius:0;line-height:normal}:host .wm-button.-textonly.small,wm-uploader .wm-button.-textonly.small{font-size:0.625rem}:host .wm-button.-textonly:hover:not(:disabled):not(.disabled):not(.-permanentlydelete),wm-uploader .wm-button.-textonly:hover:not(:disabled):not(.disabled):not(.-permanentlydelete){text-decoration:underline;color:#454077}:host .wm-button.-textonly.-permanentlydelete,wm-uploader .wm-button.-textonly.-permanentlydelete{color:#c0392b}:host .wm-button.-textonly.-permanentlydelete:hover,wm-uploader .wm-button.-textonly.-permanentlydelete:hover{text-decoration:underline;color:#c0392b !important}:host .wm-button.-textonly.dark,wm-uploader .wm-button.-textonly.dark{color:#fff}:host .wm-button.-textonly.dark:hover,wm-uploader .wm-button.-textonly.dark:hover{text-decoration:underline;color:#fff !important}:host .wm-button.-icononly,wm-uploader .wm-button.-icononly,:host .wm-button.-navigational,wm-uploader .wm-button.-navigational{-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%;font-size:1rem;padding:0;height:auto;line-height:1;min-width:2.75rem;min-height:2.75rem;text-align:center;letter-spacing:normal}:host .wm-button.-icononly:not(:focus),wm-uploader .wm-button.-icononly:not(:focus),:host .wm-button.-navigational:not(:focus),wm-uploader .wm-button.-navigational:not(:focus){-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}@media screen and (min-width: 48rem){:host .wm-button.-icononly,wm-uploader .wm-button.-icononly,:host .wm-button.-navigational,wm-uploader .wm-button.-navigational{min-width:2.5rem;min-height:2.5rem}}:host .wm-button.-icononly,wm-uploader .wm-button.-icononly{border-width:1px !important}:host .wm-button.-icononly:before,wm-uploader .wm-button.-icononly:before{display:inline-block;font:normal normal normal 24px/1 \"Material Design Icons\";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host .wm-button.-navigational,wm-uploader .wm-button.-navigational{border:none !important;background-color:transparent}:host .wm-button.-navigational:not(.dark):not(:disabled),wm-uploader .wm-button.-navigational:not(.dark):not(:disabled){color:#575195}:host .wm-button.-navigational:not(.dark):not(:disabled):hover,wm-uploader .wm-button.-navigational:not(.dark):not(:disabled):hover,:host .wm-button.-navigational:not(.dark):not(:disabled).selected,wm-uploader .wm-button.-navigational:not(.dark):not(:disabled).selected{background-color:#d7d6d9}:host .wm-button.-navigational:before,wm-uploader .wm-button.-navigational:before{display:inline-block;font:normal normal normal 24px/1 \"Material Design Icons\";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host .wm-button.-permanentlydelete:not(.-textonly),wm-uploader .wm-button.-permanentlydelete:not(.-textonly){background:#c0392b;border-color:#c0392b;color:#fff}:host .wm-button.-permanentlydelete:not(.-textonly):hover,wm-uploader .wm-button.-permanentlydelete:not(.-textonly):hover{background:#9a2e22;border-color:#9a2e22}:host .wm-button.-pairnegative,wm-uploader .wm-button.-pairnegative{background:#cc4c3e;border-color:#cc4c3e;color:#fff}:host .wm-button.-pairnegative:hover,wm-uploader .wm-button.-pairnegative:hover{background:#a33d32;border-color:#a33d32}:host .wm-button.-pairpositive,wm-uploader .wm-button.-pairpositive{background:#15868d;border-color:#15868d;color:#fff}:host .wm-button.-pairpositive:hover,wm-uploader .wm-button.-pairpositive:hover{background:#116b71;border-color:#116b71}:host .wm-button.-selectoronly,wm-uploader .wm-button.-selectoronly{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;display:block;background:transparent;border:1px solid #575195;border-radius:3px 3px 3px 3px;height:2.75rem;min-width:11.4375rem;padding:0 1.875rem 0 0.9375rem;line-height:normal;font-family:inherit;color:#575195;font-weight:500;font-size:0.875rem;text-transform:none;letter-spacing:0.01875rem;text-align:left}@media screen and (min-width: 48rem){:host .wm-button.-selectoronly,wm-uploader .wm-button.-selectoronly{height:2.5rem}}:host .wm-button.-selectoronly:before,wm-uploader .wm-button.-selectoronly:before{display:inline-block;font:normal normal normal 24px/1 \"Material Design Icons\";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:\"\";position:absolute;right:0.5625rem;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);pointer-events:none}:host .wm-button.-selectoronly:hover:not(:disabled):not(.disabled),wm-uploader .wm-button.-selectoronly:hover:not(:disabled):not(.disabled){background:transparent;text-decoration:none}:host .wm-button.-selectoronly:active,wm-uploader .wm-button.-selectoronly:active{-ms-transform:scale(1, 1) !important;-webkit-transform:scale(1, 1) !important;transform:scale(1, 1) !important}:host .wm-button.-selectoronly::-moz-focus-inner,wm-uploader .wm-button.-selectoronly::-moz-focus-inner{border:0}:host .wm-button.-selectoronly .overflowcontrol,wm-uploader .wm-button.-selectoronly .overflowcontrol{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:visible}:host .wm-button:disabled,wm-uploader .wm-button:disabled,:host .wm-button.disabled,wm-uploader .wm-button.disabled{background:inherit;border-color:#737373;color:#737373;cursor:default;pointer-events:none}:host .wm-button:disabled.dark,wm-uploader .wm-button:disabled.dark,:host .wm-button.disabled.dark,wm-uploader .wm-button.disabled.dark{color:#a6a6a6;border-color:#a6a6a6}:host .wm-button:disabled.-primary,wm-uploader .wm-button:disabled.-primary,:host .wm-button:disabled.-permanentlydelete,wm-uploader .wm-button:disabled.-permanentlydelete,:host .wm-button:disabled.-pairnegative,wm-uploader .wm-button:disabled.-pairnegative,:host .wm-button:disabled.-pairpositive,wm-uploader .wm-button:disabled.-pairpositive,:host .wm-button.disabled.-primary,wm-uploader .wm-button.disabled.-primary,:host .wm-button.disabled.-permanentlydelete,wm-uploader .wm-button.disabled.-permanentlydelete,:host .wm-button.disabled.-pairnegative,wm-uploader .wm-button.disabled.-pairnegative,:host .wm-button.disabled.-pairpositive,wm-uploader .wm-button.disabled.-pairpositive{background:#737373;color:#fff;border-color:#737373}:host .wm-button:disabled.-primary.dark,wm-uploader .wm-button:disabled.-primary.dark,:host .wm-button.disabled.-primary.dark,wm-uploader .wm-button.disabled.-primary.dark{background:#a6a6a6;border-color:#a6a6a6;color:#353b48}:host .wm-button:disabled.-secondary,wm-uploader .wm-button:disabled.-secondary,:host .wm-button.disabled.-secondary,wm-uploader .wm-button.disabled.-secondary{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}:host .wm-button:disabled.-selectoronly,wm-uploader .wm-button:disabled.-selectoronly,:host .wm-button.disabled.-selectoronly,wm-uploader .wm-button.disabled.-selectoronly{color:#737373}:host .wm-button:disabled.-textonly,wm-uploader .wm-button:disabled.-textonly,:host .wm-button.disabled.-textonly,wm-uploader .wm-button.disabled.-textonly{color:#6b6b6b;background:transparent}:host a.wm-button,wm-uploader a.wm-button,:host label.wm-button,wm-uploader label.wm-button{height:auto;padding-top:0.75rem;padding-bottom:0.75rem}:host,wm-uploader{width:100%;height:100%;display:block;position:relative}:host[dir=RTL] .mdi,wm-uploader[dir=RTL] .mdi{margin-left:0.3125rem;margin-right:0}:host input:focus+.wm-button.user-is-tabbing,wm-uploader input:focus+.wm-button.user-is-tabbing{-webkit-box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e !important;-moz-box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e !important;box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e !important}:host *,wm-uploader *{-webkit-box-sizing:border-box;box-sizing:border-box}.sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;border:0 !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;white-space:nowrap !important;margin:-1px !important}.header{margin-bottom:1rem}.header .slot-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:start;align-items:flex-start}.header .info-wrapper{-ms-flex-align:center;align-items:center}.header .info-wrapper .info{font-size:0.875rem;margin-left:1rem}.footer{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:end;align-items:flex-end;padding:0.9375rem 1.875rem}.footer .notif-wrapper{-ms-flex-align:end;align-items:flex-end}.footer .filecount-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.footer .filecount-wrapper .filecount{font-size:0.875rem;margin-right:1rem}.notif-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-bottom:1rem}.notif{padding-top:0.25rem;font-size:0.875rem;font-style:italic;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.info-wrapper{position:relative;display:-ms-flexbox;display:flex}.file-info{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.file-info+.file-controls{-ms-flex:none;flex:none;margin-left:1rem}.empty-block{margin:5rem auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.empty-block .upload-file{margin-bottom:1.875rem}.empty-block .empty-message{font-size:0.875rem;margin-bottom:0.4375rem}.empty-block .empty-message.large{font-size:1.5rem}.empty-block .info-wrapper{-ms-flex-pack:center;justify-content:center;width:100%}.empty-block .info-wrapper .wm-button{width:auto}.list-container{overflow-y:auto}.list-container.type1{padding:0 1.875rem;height:16.25rem}ul{list-style:none;padding:0;width:100%}ul li{font-size:0.875rem}ul li .file{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;position:relative;height:3.75rem;padding:0.5rem 1.25rem;background:#f4f4f4;border:1px solid #6b6b6b;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center}ul li .file+.file{margin-top:1.25rem}ul li .file .filename{font-weight:500}ul li .file wm-button+wm-button{margin-left:1rem}ul.file-list .file.--saved,ul.inprogress-list .file{margin-bottom:1.625rem}ul .progress{position:absolute;left:0;top:0;right:0;height:8px}ul.error-list li{margin-bottom:1.25rem;color:#c0392b}ul.error-list li .file{border:1px solid #c0392b;background-color:#f5ebea;height:3.75rem}ul.error-list li .error-message{padding-top:0.25rem;font-style:italic}";
|
|
8
|
+
const wmUploaderCss = "@charset \"UTF-8\";:host .wm-button,wm-uploader .wm-button{-ms-transition:background-color 500ms cubic-bezier(0.4, 0, 0.2, 1), color 500ms cubic-bezier(0.4, 0, 0.2, 1), border 500ms cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition:background-color 500ms cubic-bezier(0.4, 0, 0.2, 1), color 500ms cubic-bezier(0.4, 0, 0.2, 1), border 500ms cubic-bezier(0.4, 0, 0.2, 1);-moz-transition:background-color 500ms cubic-bezier(0.4, 0, 0.2, 1), color 500ms cubic-bezier(0.4, 0, 0.2, 1), border 500ms cubic-bezier(0.4, 0, 0.2, 1);transition:background-color 500ms cubic-bezier(0.4, 0, 0.2, 1), color 500ms cubic-bezier(0.4, 0, 0.2, 1), border 500ms cubic-bezier(0.4, 0, 0.2, 1);-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;border-radius:5px;width:inherit;border:2px solid #575195;color:#575195;font-family:inherit;font-size:0.75rem;font-weight:700;height:2.75rem;padding:0 1.3333333333em;cursor:pointer;position:relative;background:#fff;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-decoration:none;text-transform:uppercase;letter-spacing:0.01875rem;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}@media screen and (min-width: 48rem){:host .wm-button,wm-uploader .wm-button{height:3.3333333333em}}:host .wm-button.nowrap,wm-uploader .wm-button.nowrap{display:inline-block;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host .wm-button:focus,wm-uploader .wm-button:focus{outline:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}:host .wm-button::-moz-focus-inner,wm-uploader .wm-button::-moz-focus-inner{border:0;outline:none}:host .wm-button.user-is-tabbing:focus:not(:disabled):not(.disabled) :host .wm-button.-textonly .button-text,wm-uploader .wm-button.user-is-tabbing:focus:not(:disabled):not(.disabled) :host .wm-button.-textonly .button-text,:host .wm-button.user-is-tabbing:focus:not(:disabled):not(.disabled) wm-uploader .wm-button.-textonly .button-text,wm-uploader .wm-button.user-is-tabbing:focus:not(:disabled):not(.disabled) wm-uploader .wm-button.-textonly .button-text{background:-webkit-gradient(linear, left top, right top, color-stop(66%, #3862e9), color-stop(0, transparent)) repeat-x;background:linear-gradient(90deg, #3862e9 66%, transparent 0) repeat-x;background-size:6px 3px;background-position:0 1em;border-radius:0;line-height:normal}:host .wm-button.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled),wm-uploader .wm-button.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled){-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}:host .wm-button.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled):not(.dark),wm-uploader .wm-button.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled):not(.dark){-webkit-box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e;-moz-box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e;box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e}:host .wm-button.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled):not(.dark)::-moz-focus-inner,wm-uploader .wm-button.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled):not(.dark)::-moz-focus-inner{border:0}:host .wm-button.dark:not(.-textonly):not(:disabled):not(.disabled),wm-uploader .wm-button.dark:not(.-textonly):not(:disabled):not(.disabled){background:transparent;border:2px solid #fff;color:#fff}:host .wm-button.dark:not(.-textonly):not(:disabled):not(.disabled):hover,wm-uploader .wm-button.dark:not(.-textonly):not(:disabled):not(.disabled):hover{color:#575195;background:#e6e6e6;border:2px solid #e6e6e6}:host .wm-button.dark.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled).dark,wm-uploader .wm-button.dark.user-is-tabbing:focus:not(.-textonly):not(:disabled):not(.disabled).dark{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;-webkit-box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #c6b4e3;-moz-box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #c6b4e3;box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #c6b4e3;outline:none}:host .wm-button:active:not(:disabled):not(.disabled):not(.-textonly):not(.-actionbutton):not(.displayedoption),wm-uploader .wm-button:active:not(:disabled):not(.disabled):not(.-textonly):not(.-actionbutton):not(.displayedoption){-ms-transform:scale(0.9, 0.9);-webkit-transform:scale(0.9, 0.9);-moz-transform:scale(0.9, 0.9);transform:scale(0.9, 0.9)}:host .wm-button:hover:not(:disabled):not(.disabled),wm-uploader .wm-button:hover:not(:disabled):not(.disabled){background:#464177;color:#fff}:host .wm-button .mdi,wm-uploader .wm-button .mdi{display:inline-block;font:normal normal normal 24px/1 \"Material Design Icons\";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host .wm-button:not(.-icononly):not(.-navigational) .mdi,wm-uploader .wm-button:not(.-icononly):not(.-navigational) .mdi{margin-right:0.3125rem}:host .wm-button[dir=RTL] :not(.-icononly) .mdi,wm-uploader .wm-button[dir=RTL] :not(.-icononly) .mdi{margin-left:0.3125rem;margin-right:0}:host .wm-button.-primary:not(.-textonly),wm-uploader .wm-button.-primary:not(.-textonly){background:#575195;color:#fff}:host .wm-button.-primary:not(.-textonly):not(:focus),wm-uploader .wm-button.-primary:not(.-textonly):not(:focus){-webkit-box-shadow:0 2px 2px 0 rgba(87, 81, 149, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.2);-moz-box-shadow:0 2px 2px 0 rgba(87, 81, 149, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.2);box-shadow:0 2px 2px 0 rgba(87, 81, 149, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.2)}:host .wm-button.-primary:not(.-textonly):hover:not(:disabled):not(.disabled),wm-uploader .wm-button.-primary:not(.-textonly):hover:not(:disabled):not(.disabled){background:#464177}:host .wm-button.-primary:not(.-textonly).dark:not(:disabled):not(.disabled),wm-uploader .wm-button.-primary:not(.-textonly).dark:not(:disabled):not(.disabled){color:#575195;background:#fff;border:2px solid #fff}:host .wm-button.-primary:not(.-textonly).dark:not(:disabled):not(.disabled):hover,wm-uploader .wm-button.-primary:not(.-textonly).dark:not(:disabled):not(.disabled):hover{color:#575195;background:#e6e6e6;border:2px solid #e6e6e6}:host .wm-button.-textonly,wm-uploader .wm-button.-textonly{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;display:inline-block;letter-spacing:0;text-transform:none;text-align:initial;font-size:0.875rem;border:none;background:transparent;padding-left:0;padding-right:0;height:auto;border-radius:0;line-height:1}:host .wm-button.-textonly+.-textonly,wm-uploader .wm-button.-textonly+.-textonly{margin-left:0.3125rem}:host .wm-button.-textonly:focus,wm-uploader .wm-button.-textonly:focus{outline:none}:host .wm-button.-textonly::-moz-focus-inner,wm-uploader .wm-button.-textonly::-moz-focus-inner{border:0;outline:none}:host .wm-button.-textonly.user-is-tabbing:focus:not(:disabled):not(.disabled) .button-text,wm-uploader .wm-button.-textonly.user-is-tabbing:focus:not(:disabled):not(.disabled) .button-text{background:-webkit-gradient(linear, left top, right top, color-stop(66%, #3862e9), color-stop(0, transparent)) repeat-x;background:linear-gradient(90deg, #3862e9 66%, transparent 0) repeat-x;background-size:6px 3px;background-position:0 1em;border-radius:0;line-height:normal}:host .wm-button.-textonly.user-is-tabbing:focus:not(:disabled):not(.disabled).dark .button-text,wm-uploader .wm-button.-textonly.user-is-tabbing:focus:not(:disabled):not(.disabled).dark .button-text{background:-webkit-gradient(linear, left top, right top, color-stop(66%, #fff), color-stop(0, transparent)) repeat-x;background:linear-gradient(90deg, #fff 66%, transparent 0) repeat-x;background-size:6px 3px;background-position:0 1em;border-radius:0;line-height:normal}:host .wm-button.-textonly.small,wm-uploader .wm-button.-textonly.small{font-size:0.625rem}:host .wm-button.-textonly:hover:not(:disabled):not(.disabled):not(.-permanentlydelete),wm-uploader .wm-button.-textonly:hover:not(:disabled):not(.disabled):not(.-permanentlydelete){text-decoration:underline;color:#454077}:host .wm-button.-textonly.-permanentlydelete,wm-uploader .wm-button.-textonly.-permanentlydelete{color:#c0392b}:host .wm-button.-textonly.-permanentlydelete:hover:not(:disabled):not(.disabled),wm-uploader .wm-button.-textonly.-permanentlydelete:hover:not(:disabled):not(.disabled){text-decoration:underline;color:#c0392b !important}:host .wm-button.-textonly.dark,wm-uploader .wm-button.-textonly.dark{color:#fff}:host .wm-button.-textonly.dark:hover:not(:disabled):not(.disabled),wm-uploader .wm-button.-textonly.dark:hover:not(:disabled):not(.disabled){text-decoration:underline;color:#fff !important}:host .wm-button.-icononly,wm-uploader .wm-button.-icononly,:host .wm-button.-navigational,wm-uploader .wm-button.-navigational{-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;border-radius:50%;font-size:1rem;padding:0;height:auto;line-height:1;min-width:2.75rem;min-height:2.75rem;text-align:center;letter-spacing:normal}:host .wm-button.-icononly:not(:focus),wm-uploader .wm-button.-icononly:not(:focus),:host .wm-button.-navigational:not(:focus),wm-uploader .wm-button.-navigational:not(:focus){-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}@media screen and (min-width: 48rem){:host .wm-button.-icononly,wm-uploader .wm-button.-icononly,:host .wm-button.-navigational,wm-uploader .wm-button.-navigational{min-width:2.5rem;min-height:2.5rem}}:host .wm-button.-icononly,wm-uploader .wm-button.-icononly{border-width:1px !important}:host .wm-button.-icononly:before,wm-uploader .wm-button.-icononly:before{display:inline-block;font:normal normal normal 24px/1 \"Material Design Icons\";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host .wm-button.-navigational,wm-uploader .wm-button.-navigational{border:none !important;background-color:transparent}:host .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled),wm-uploader .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled){color:#575195}:host .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled):hover,wm-uploader .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled):hover,:host .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled).selected,wm-uploader .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled).selected{background-color:#d7d6d9}:host .wm-button.-navigational:before,wm-uploader .wm-button.-navigational:before{display:inline-block;font:normal normal normal 24px/1 \"Material Design Icons\";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host .wm-button.-permanentlydelete:not(.-textonly),wm-uploader .wm-button.-permanentlydelete:not(.-textonly){background:#c0392b;border-color:#c0392b;color:#fff}:host .wm-button.-permanentlydelete:not(.-textonly):hover:not(:disabled):not(.disabled),wm-uploader .wm-button.-permanentlydelete:not(.-textonly):hover:not(:disabled):not(.disabled){background:#9a2e22;border-color:#9a2e22}:host .wm-button.-pairnegative,wm-uploader .wm-button.-pairnegative{background:#cc4c3e;border-color:#cc4c3e;color:#fff}:host .wm-button.-pairnegative:hover:not(:disabled):not(.disabled),wm-uploader .wm-button.-pairnegative:hover:not(:disabled):not(.disabled){background:#a33d32;border-color:#a33d32}:host .wm-button.-pairpositive,wm-uploader .wm-button.-pairpositive{background:#15868d;border-color:#15868d;color:#fff}:host .wm-button.-pairpositive:hover:not(:disabled):not(.disabled),wm-uploader .wm-button.-pairpositive:hover:not(:disabled):not(.disabled){background:#116b71;border-color:#116b71}:host .wm-button.-selectoronly,wm-uploader .wm-button.-selectoronly{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;display:block;background:transparent;border:1px solid #575195;border-radius:3px 3px 3px 3px;height:2.75rem;min-width:11.4375rem;padding:0 1.875rem 0 0.9375rem;line-height:normal;font-family:inherit;color:#575195;font-weight:500;font-size:0.875rem;text-transform:none;letter-spacing:0.01875rem;text-align:left}@media screen and (min-width: 48rem){:host .wm-button.-selectoronly,wm-uploader .wm-button.-selectoronly{height:2.5rem}}:host .wm-button.-selectoronly:before,wm-uploader .wm-button.-selectoronly:before{display:inline-block;font:normal normal normal 24px/1 \"Material Design Icons\";font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:\"\";position:absolute;right:0.5625rem;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);pointer-events:none}:host .wm-button.-selectoronly:hover:not(:disabled):not(.disabled),wm-uploader .wm-button.-selectoronly:hover:not(:disabled):not(.disabled){background:transparent;text-decoration:none}:host .wm-button.-selectoronly:active,wm-uploader .wm-button.-selectoronly:active{-ms-transform:scale(1, 1) !important;-webkit-transform:scale(1, 1) !important;transform:scale(1, 1) !important}:host .wm-button.-selectoronly::-moz-focus-inner,wm-uploader .wm-button.-selectoronly::-moz-focus-inner{border:0}:host .wm-button.-selectoronly .overflowcontrol,wm-uploader .wm-button.-selectoronly .overflowcontrol{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:visible}:host .wm-button:disabled,wm-uploader .wm-button:disabled,:host .wm-button.disabled,wm-uploader .wm-button.disabled{background:inherit;border-color:#737373;color:#737373;cursor:default;pointer-events:none}:host .wm-button:disabled.dark,wm-uploader .wm-button:disabled.dark,:host .wm-button.disabled.dark,wm-uploader .wm-button.disabled.dark{color:#a6a6a6;border-color:#a6a6a6}:host .wm-button:disabled.-primary,wm-uploader .wm-button:disabled.-primary,:host .wm-button:disabled.-permanentlydelete,wm-uploader .wm-button:disabled.-permanentlydelete,:host .wm-button:disabled.-pairnegative,wm-uploader .wm-button:disabled.-pairnegative,:host .wm-button:disabled.-pairpositive,wm-uploader .wm-button:disabled.-pairpositive,:host .wm-button.disabled.-primary,wm-uploader .wm-button.disabled.-primary,:host .wm-button.disabled.-permanentlydelete,wm-uploader .wm-button.disabled.-permanentlydelete,:host .wm-button.disabled.-pairnegative,wm-uploader .wm-button.disabled.-pairnegative,:host .wm-button.disabled.-pairpositive,wm-uploader .wm-button.disabled.-pairpositive{background:#737373;color:#fff;border-color:#737373}:host .wm-button:disabled.-primary.dark,wm-uploader .wm-button:disabled.-primary.dark,:host .wm-button.disabled.-primary.dark,wm-uploader .wm-button.disabled.-primary.dark{background:#a6a6a6;border-color:#a6a6a6;color:#353b48}:host .wm-button:disabled.-secondary,wm-uploader .wm-button:disabled.-secondary,:host .wm-button.disabled.-secondary,wm-uploader .wm-button.disabled.-secondary{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}:host .wm-button:disabled.-selectoronly,wm-uploader .wm-button:disabled.-selectoronly,:host .wm-button.disabled.-selectoronly,wm-uploader .wm-button.disabled.-selectoronly{color:#737373}:host .wm-button:disabled.-textonly,wm-uploader .wm-button:disabled.-textonly,:host .wm-button.disabled.-textonly,wm-uploader .wm-button.disabled.-textonly{color:#6b6b6b;background:transparent}:host a.wm-button,wm-uploader a.wm-button,:host label.wm-button,wm-uploader label.wm-button{height:auto;padding-top:0.75rem;padding-bottom:0.75rem}:host,wm-uploader{width:100%;height:100%;display:block;position:relative}:host[dir=RTL] .mdi,wm-uploader[dir=RTL] .mdi{margin-left:0.3125rem;margin-right:0}:host input:focus+.wm-button.user-is-tabbing,wm-uploader input:focus+.wm-button.user-is-tabbing{-webkit-box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e !important;-moz-box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e !important;box-shadow:0 2px 2px 0 rgba(244, 243, 246, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 0 4px 3px #61279e !important}:host *,wm-uploader *{-webkit-box-sizing:border-box;box-sizing:border-box}.wm-button.disabled{pointer-events:initial !important}.sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;border:0 !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;white-space:nowrap !important;margin:-1px !important}.header{margin-bottom:1rem}.header .slot-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:start;align-items:flex-start}.header .info-wrapper{-ms-flex-align:center;align-items:center}.header .info-wrapper .info{font-size:0.875rem;margin-left:1rem}.footer{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:end;align-items:flex-end;padding:0.9375rem 1.875rem}.footer .notif-wrapper{-ms-flex-align:end;align-items:flex-end}.footer .filecount-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.footer .filecount-wrapper .filecount{font-size:0.875rem;margin-right:1rem}.notif-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-bottom:1rem}.notif{padding-top:0.25rem;font-size:0.875rem;font-style:italic;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.info-wrapper{position:relative;display:-ms-flexbox;display:flex}.file-info{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.file-info+.file-controls{-ms-flex:none;flex:none;margin-left:1rem}.empty-block{margin:5rem auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.empty-block .upload-file{margin-bottom:1.875rem}.empty-block .empty-message{font-size:0.875rem;margin-bottom:0.4375rem}.empty-block .empty-message.large{font-size:1.5rem}.empty-block .info-wrapper{-ms-flex-pack:center;justify-content:center;width:100%}.empty-block .info-wrapper .wm-button{width:auto}.list-container{overflow-y:auto}.list-container.type1{padding:0 1.875rem;height:16.25rem}ul{list-style:none;padding:0;width:100%}ul li{font-size:0.875rem}ul li .file{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;border-radius:3px;position:relative;height:3.75rem;padding:0.5rem 1.25rem;background:#f4f4f4;border:1px solid #6b6b6b;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center}ul li .file+.file{margin-top:1.25rem}ul li .file .filename{font-weight:500}ul li .file wm-button+wm-button{margin-left:1rem}ul.file-list .file.--saved,ul.inprogress-list .file{margin-bottom:1.625rem}ul .progress{position:absolute;left:0;top:0;right:0;height:8px}ul.error-list li{margin-bottom:1.25rem;color:#c0392b}ul.error-list li .file{border:1px solid #c0392b;background-color:#f5ebea;height:3.75rem}ul.error-list li .error-message{padding-top:0.25rem;font-style:italic}";
|
|
9
9
|
|
|
10
10
|
const Uploader = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -143,7 +143,7 @@ const Uploader = class {
|
|
|
143
143
|
isEmpty() {
|
|
144
144
|
return !this.fileList.length && !this.errorList.length;
|
|
145
145
|
}
|
|
146
|
-
isDisabled() {
|
|
146
|
+
get isDisabled() {
|
|
147
147
|
const isMax = !!this.maxFiles && this.fileList.length >= this.maxFiles;
|
|
148
148
|
if (!this.notif) {
|
|
149
149
|
if (isMax) {
|
|
@@ -264,21 +264,53 @@ const Uploader = class {
|
|
|
264
264
|
this.parseRejectedFiles();
|
|
265
265
|
}
|
|
266
266
|
componentDidLoad() {
|
|
267
|
-
// awkward way to handle Edge bug where file input dialog doesn't open on Enter key
|
|
268
|
-
// first, detect polyfill by checking the class name that it adds to the component
|
|
269
|
-
// (it's important NOT to execute the code below in normal browsers as it would open the dialog twice)
|
|
270
|
-
this.el.classList.contains("sc-wm-uploader-h") &&
|
|
271
|
-
// then add an even listener to force a click event when Enter key is pressed
|
|
272
|
-
this.inputEl &&
|
|
273
|
-
this.inputEl.addEventListener("keydown", (ev) => {
|
|
274
|
-
if (this.inputEl && ev.key === "Enter") {
|
|
275
|
-
this.inputEl.click();
|
|
276
|
-
}
|
|
277
|
-
});
|
|
278
267
|
if (document.body.classList.contains("wmcl-user-is-tabbing")) {
|
|
279
268
|
this.toggleTabbingOn();
|
|
280
269
|
}
|
|
281
270
|
}
|
|
271
|
+
uploadButtonOnClick(ev) {
|
|
272
|
+
if (this.isDisabled) {
|
|
273
|
+
// this is a temporary fix.
|
|
274
|
+
// we need the disabled button to be programmatically focusable
|
|
275
|
+
// to allow return focus after closing the browser file panel
|
|
276
|
+
// since it's focusable the button should respond when activated
|
|
277
|
+
// it looks disabled, and announces the reason why the action cannot
|
|
278
|
+
// be taken when activated.
|
|
279
|
+
// this is not pretty duplicating a intl message + the logic of isDisabled,
|
|
280
|
+
// but not worth a bigger refactor since this is only until we get the UX for disabled elements and refactor all interactive els.
|
|
281
|
+
ev.preventDefault();
|
|
282
|
+
if (this.liveRegion) {
|
|
283
|
+
const isMax = !!this.maxFiles && this.fileList.length >= this.maxFiles;
|
|
284
|
+
let errMsg = "";
|
|
285
|
+
if (this.numFilesInProgress > 0) {
|
|
286
|
+
errMsg = functions.intl.formatMessage({
|
|
287
|
+
id: "uploader.waitToUpload",
|
|
288
|
+
defaultMessage: "Please wait for current upload to complete before uploading new files.",
|
|
289
|
+
description: "Message for screen reader users",
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
else if (isMax) {
|
|
293
|
+
errMsg = functions.intl.formatMessage({
|
|
294
|
+
id: "uploader.fileUploadLimit",
|
|
295
|
+
defaultMessage: "You have reached the file upload limit.",
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
if (errMsg) {
|
|
299
|
+
// clear and set again to re-announce if button is clicked several times
|
|
300
|
+
// (can't be done inside setTimeout because of scope, hence the promise)
|
|
301
|
+
this.liveRegion.innerHTML = "";
|
|
302
|
+
new Promise((resolve) => {
|
|
303
|
+
setTimeout(() => {
|
|
304
|
+
resolve("");
|
|
305
|
+
}, 500);
|
|
306
|
+
}).then(() => (this.liveRegion.innerHTML = errMsg));
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
this.clearErrors();
|
|
312
|
+
}
|
|
313
|
+
}
|
|
282
314
|
renderUploadSvg() {
|
|
283
315
|
return (index.h("svg", { class: "upload-file", width: "91", height: "84", viewBox: "0 0 91 84" }, index.h("path", { transform: "rotate(-180.000000) translate(-452, -255.5)", fill: "#eae8ec", d: "M361,249.681818 L361,197.318182 C361,194.118182 365.555061,191.5 371.122358,191.5 L391.316463,191.5 L391.286495,200.562515 L369.871211,200.600292 L369.885404,200.622146 L369.886423,246.655947 L443.657038,246.840767 L443.657038,200.622146 L421.683537,200.622146 L421.683537,191.5 L441.978865,191.5 C447.546162,191.5 452,194.118182 452,197.318182 L452,249.681818 C452,252.881818 447.546162,255.5 441.978865,255.5 L371.122358,255.5 C365.504449,255.5 361,252.881818 361,249.681818 Z M391.5,207 L406,221 L420.5,207 L409.625,207 L409.625,172 L402.375,172 L402.375,207 L391.5,207 Z" })));
|
|
284
316
|
}
|
|
@@ -294,7 +326,7 @@ const Uploader = class {
|
|
|
294
326
|
return this.notif ? index.h("div", { class: "notif" }, this.notif.message) : "";
|
|
295
327
|
}
|
|
296
328
|
renderUploadButton(classes) {
|
|
297
|
-
return (index.h("div", { class: "info-wrapper" }, index.h("input", {
|
|
329
|
+
return (index.h("div", { class: "info-wrapper" }, index.h("input", { name: this.inputId, id: this.inputId, class: "sr-only", type: "file", multiple: true, onClick: (ev) => this.uploadButtonOnClick(ev), onChange: (ev) => this.handleFiles(ev) }), index.h("label", { htmlFor: this.inputId, class: `wm-button ${classes}${this.isTabbing ? " user-is-tabbing" : ""}` }, this.renderIcon(), this.buttonText), this.renderInfo()));
|
|
298
330
|
}
|
|
299
331
|
renderEmptyState() {
|
|
300
332
|
return (index.h("div", { class: "empty-block" }, this.renderUploadSvg(), index.h("div", { class: `empty-message` }, this.emptyStateText), this.renderUploadButton("-primary empty-button"), this.renderNotif()));
|
|
@@ -328,13 +360,13 @@ const Uploader = class {
|
|
|
328
360
|
}
|
|
329
361
|
}
|
|
330
362
|
renderHeader() {
|
|
331
|
-
return (this.tempUploaderType === "2" && (index.h("div", { class: "header" }, index.h("div", { class: "slot-wrapper" }, index.h("slot", null), index.h("div", { class: "notif-wrapper" }, this.renderUploadButton(`-secondary ${this.isDisabled
|
|
363
|
+
return (this.tempUploaderType === "2" && (index.h("div", { class: "header" }, index.h("div", { class: "slot-wrapper" }, index.h("slot", null), index.h("div", { class: "notif-wrapper" }, this.renderUploadButton(`-secondary ${this.isDisabled ? "disabled" : ""}`), this.renderNotif())))));
|
|
332
364
|
}
|
|
333
365
|
renderFooter() {
|
|
334
366
|
return (this.tempUploaderType === "1" && (index.h("div", { class: "footer" }, index.h("div", { class: "notif-wrapper" }, index.h("div", { class: "filecount-wrapper" }, index.h("div", { class: "filecount" }, functions.intl.formatMessage({
|
|
335
367
|
id: "uploader.filesAdded",
|
|
336
368
|
defaultMessage: "{numFiles, plural, one {1 file added} other {# files added}}",
|
|
337
|
-
}, { numFiles: this.fileList.length })), this.renderUploadButton(`-primary ${this.isDisabled
|
|
369
|
+
}, { numFiles: this.fileList.length })), this.renderUploadButton(`-primary ${this.isDisabled ? "disabled" : ""}`)), this.renderNotif()))));
|
|
338
370
|
}
|
|
339
371
|
renderWithItems() {
|
|
340
372
|
return (index.h("div", null, this.renderHeader(), index.h("div", { class: `list-container type${this.tempUploaderType}` }, this.renderErrorList(), this.renderFileList()), this.renderFooter()));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Component, h, Host, Element, Prop, Event, forceUpdate } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { debounce } from "../../../global/functions";
|
|
3
3
|
export class ProgressMonitor {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.doughnutWidth = 300;
|
|
6
6
|
this.modeInitialized = false;
|
|
7
|
-
this.
|
|
7
|
+
this.debouncedUpdate = debounce(() => forceUpdate(this.el), 50);
|
|
8
8
|
}
|
|
9
9
|
get parsedBreakpoint() {
|
|
10
10
|
const asNumber = this.parseToNum(this.breakpoint ? this.breakpoint : this.el.children.length);
|
|
@@ -18,17 +18,13 @@ export class ProgressMonitor {
|
|
|
18
18
|
}
|
|
19
19
|
componentWillLoad() {
|
|
20
20
|
// rerender on resize in case layout needs to change
|
|
21
|
-
const resizeObserver = new ResizeObserver(() => this.
|
|
22
|
-
// handles cases when just Progress Monitor resizes, and when just document resizes
|
|
21
|
+
const resizeObserver = new ResizeObserver(() => this.debouncedUpdate());
|
|
23
22
|
resizeObserver.observe(this.el);
|
|
24
|
-
resizeObserver.observe(document.body);
|
|
25
23
|
}
|
|
26
24
|
componentDidLoad() {
|
|
27
25
|
// emit initial mode for Indicators, must happen post-load as this.el measurement is needed
|
|
28
26
|
this.wmProgressMonitorModeChange.emit(this.mode);
|
|
29
27
|
this.modeInitialized = true;
|
|
30
|
-
// once indicators have initialized modes, rerender to reveal
|
|
31
|
-
forceUpdate(this.el);
|
|
32
28
|
}
|
|
33
29
|
componentWillUpdate() {
|
|
34
30
|
// store prevMode before every render except first to determine when it has changed
|
|
@@ -155,8 +155,8 @@ wm-button .wm-button:active:not(:disabled):not(.disabled):not(.-textonly):not(.-
|
|
|
155
155
|
-moz-transform: scale(0.9, 0.9);
|
|
156
156
|
transform: scale(0.9, 0.9);
|
|
157
157
|
}
|
|
158
|
-
:host .wm-button:hover,
|
|
159
|
-
wm-button .wm-button:hover {
|
|
158
|
+
:host .wm-button:hover:not(:disabled):not(.disabled),
|
|
159
|
+
wm-button .wm-button:hover:not(:disabled):not(.disabled) {
|
|
160
160
|
background: #464177;
|
|
161
161
|
color: #fff;
|
|
162
162
|
}
|
|
@@ -190,8 +190,8 @@ wm-button .wm-button.-primary:not(.-textonly):not(:focus) {
|
|
|
190
190
|
-moz-box-shadow: 0 2px 2px 0 rgba(87, 81, 149, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.2);
|
|
191
191
|
box-shadow: 0 2px 2px 0 rgba(87, 81, 149, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.2);
|
|
192
192
|
}
|
|
193
|
-
:host .wm-button.-primary:not(.-textonly):hover,
|
|
194
|
-
wm-button .wm-button.-primary:not(.-textonly):hover {
|
|
193
|
+
:host .wm-button.-primary:not(.-textonly):hover:not(:disabled):not(.disabled),
|
|
194
|
+
wm-button .wm-button.-primary:not(.-textonly):hover:not(:disabled):not(.disabled) {
|
|
195
195
|
background: #464177;
|
|
196
196
|
}
|
|
197
197
|
:host .wm-button.-primary:not(.-textonly).dark:not(:disabled):not(.disabled),
|
|
@@ -266,8 +266,8 @@ wm-button .wm-button.-textonly:hover:not(:disabled):not(.disabled):not(.-permane
|
|
|
266
266
|
wm-button .wm-button.-textonly.-permanentlydelete {
|
|
267
267
|
color: #c0392b;
|
|
268
268
|
}
|
|
269
|
-
:host .wm-button.-textonly.-permanentlydelete:hover,
|
|
270
|
-
wm-button .wm-button.-textonly.-permanentlydelete:hover {
|
|
269
|
+
:host .wm-button.-textonly.-permanentlydelete:hover:not(:disabled):not(.disabled),
|
|
270
|
+
wm-button .wm-button.-textonly.-permanentlydelete:hover:not(:disabled):not(.disabled) {
|
|
271
271
|
text-decoration: underline;
|
|
272
272
|
color: #c0392b !important;
|
|
273
273
|
}
|
|
@@ -275,8 +275,8 @@ wm-button .wm-button.-textonly.-permanentlydelete:hover {
|
|
|
275
275
|
wm-button .wm-button.-textonly.dark {
|
|
276
276
|
color: #fff;
|
|
277
277
|
}
|
|
278
|
-
:host .wm-button.-textonly.dark:hover,
|
|
279
|
-
wm-button .wm-button.-textonly.dark:hover {
|
|
278
|
+
:host .wm-button.-textonly.dark:hover:not(:disabled):not(.disabled),
|
|
279
|
+
wm-button .wm-button.-textonly.dark:hover:not(:disabled):not(.disabled) {
|
|
280
280
|
text-decoration: underline;
|
|
281
281
|
color: #fff !important;
|
|
282
282
|
}
|
|
@@ -330,13 +330,13 @@ wm-button .wm-button.-navigational {
|
|
|
330
330
|
border: none !important;
|
|
331
331
|
background-color: transparent;
|
|
332
332
|
}
|
|
333
|
-
:host .wm-button.-navigational:not(.dark):not(:disabled),
|
|
334
|
-
wm-button .wm-button.-navigational:not(.dark):not(:disabled) {
|
|
333
|
+
:host .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled),
|
|
334
|
+
wm-button .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled) {
|
|
335
335
|
color: #575195;
|
|
336
336
|
}
|
|
337
|
-
:host .wm-button.-navigational:not(.dark):not(:disabled):hover,
|
|
338
|
-
wm-button .wm-button.-navigational:not(.dark):not(:disabled):hover, :host .wm-button.-navigational:not(.dark):not(:disabled).selected,
|
|
339
|
-
wm-button .wm-button.-navigational:not(.dark):not(:disabled).selected {
|
|
337
|
+
:host .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled):hover,
|
|
338
|
+
wm-button .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled):hover, :host .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled).selected,
|
|
339
|
+
wm-button .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled).selected {
|
|
340
340
|
background-color: #d7d6d9;
|
|
341
341
|
}
|
|
342
342
|
:host .wm-button.-navigational:before,
|
|
@@ -355,8 +355,8 @@ wm-button .wm-button.-permanentlydelete:not(.-textonly) {
|
|
|
355
355
|
border-color: #c0392b;
|
|
356
356
|
color: #fff;
|
|
357
357
|
}
|
|
358
|
-
:host .wm-button.-permanentlydelete:not(.-textonly):hover,
|
|
359
|
-
wm-button .wm-button.-permanentlydelete:not(.-textonly):hover {
|
|
358
|
+
:host .wm-button.-permanentlydelete:not(.-textonly):hover:not(:disabled):not(.disabled),
|
|
359
|
+
wm-button .wm-button.-permanentlydelete:not(.-textonly):hover:not(:disabled):not(.disabled) {
|
|
360
360
|
background: #9a2e22;
|
|
361
361
|
border-color: #9a2e22;
|
|
362
362
|
}
|
|
@@ -366,8 +366,8 @@ wm-button .wm-button.-pairnegative {
|
|
|
366
366
|
border-color: #cc4c3e;
|
|
367
367
|
color: #fff;
|
|
368
368
|
}
|
|
369
|
-
:host .wm-button.-pairnegative:hover,
|
|
370
|
-
wm-button .wm-button.-pairnegative:hover {
|
|
369
|
+
:host .wm-button.-pairnegative:hover:not(:disabled):not(.disabled),
|
|
370
|
+
wm-button .wm-button.-pairnegative:hover:not(:disabled):not(.disabled) {
|
|
371
371
|
background: #a33d32;
|
|
372
372
|
border-color: #a33d32;
|
|
373
373
|
}
|
|
@@ -377,8 +377,8 @@ wm-button .wm-button.-pairpositive {
|
|
|
377
377
|
border-color: #15868d;
|
|
378
378
|
color: #fff;
|
|
379
379
|
}
|
|
380
|
-
:host .wm-button.-pairpositive:hover,
|
|
381
|
-
wm-button .wm-button.-pairpositive:hover {
|
|
380
|
+
:host .wm-button.-pairpositive:hover:not(:disabled):not(.disabled),
|
|
381
|
+
wm-button .wm-button.-pairpositive:hover:not(:disabled):not(.disabled) {
|
|
382
382
|
background: #116b71;
|
|
383
383
|
border-color: #116b71;
|
|
384
384
|
}
|
|
@@ -155,8 +155,8 @@ wm-network-uploader .wm-button:active:not(:disabled):not(.disabled):not(.-texton
|
|
|
155
155
|
-moz-transform: scale(0.9, 0.9);
|
|
156
156
|
transform: scale(0.9, 0.9);
|
|
157
157
|
}
|
|
158
|
-
:host .wm-button:hover,
|
|
159
|
-
wm-network-uploader .wm-button:hover {
|
|
158
|
+
:host .wm-button:hover:not(:disabled):not(.disabled),
|
|
159
|
+
wm-network-uploader .wm-button:hover:not(:disabled):not(.disabled) {
|
|
160
160
|
background: #464177;
|
|
161
161
|
color: #fff;
|
|
162
162
|
}
|
|
@@ -190,8 +190,8 @@ wm-network-uploader .wm-button.-primary:not(.-textonly):not(:focus) {
|
|
|
190
190
|
-moz-box-shadow: 0 2px 2px 0 rgba(87, 81, 149, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.2);
|
|
191
191
|
box-shadow: 0 2px 2px 0 rgba(87, 81, 149, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.2);
|
|
192
192
|
}
|
|
193
|
-
:host .wm-button.-primary:not(.-textonly):hover,
|
|
194
|
-
wm-network-uploader .wm-button.-primary:not(.-textonly):hover {
|
|
193
|
+
:host .wm-button.-primary:not(.-textonly):hover:not(:disabled):not(.disabled),
|
|
194
|
+
wm-network-uploader .wm-button.-primary:not(.-textonly):hover:not(:disabled):not(.disabled) {
|
|
195
195
|
background: #464177;
|
|
196
196
|
}
|
|
197
197
|
:host .wm-button.-primary:not(.-textonly).dark:not(:disabled):not(.disabled),
|
|
@@ -266,8 +266,8 @@ wm-network-uploader .wm-button.-textonly:hover:not(:disabled):not(.disabled):not
|
|
|
266
266
|
wm-network-uploader .wm-button.-textonly.-permanentlydelete {
|
|
267
267
|
color: #c0392b;
|
|
268
268
|
}
|
|
269
|
-
:host .wm-button.-textonly.-permanentlydelete:hover,
|
|
270
|
-
wm-network-uploader .wm-button.-textonly.-permanentlydelete:hover {
|
|
269
|
+
:host .wm-button.-textonly.-permanentlydelete:hover:not(:disabled):not(.disabled),
|
|
270
|
+
wm-network-uploader .wm-button.-textonly.-permanentlydelete:hover:not(:disabled):not(.disabled) {
|
|
271
271
|
text-decoration: underline;
|
|
272
272
|
color: #c0392b !important;
|
|
273
273
|
}
|
|
@@ -275,8 +275,8 @@ wm-network-uploader .wm-button.-textonly.-permanentlydelete:hover {
|
|
|
275
275
|
wm-network-uploader .wm-button.-textonly.dark {
|
|
276
276
|
color: #fff;
|
|
277
277
|
}
|
|
278
|
-
:host .wm-button.-textonly.dark:hover,
|
|
279
|
-
wm-network-uploader .wm-button.-textonly.dark:hover {
|
|
278
|
+
:host .wm-button.-textonly.dark:hover:not(:disabled):not(.disabled),
|
|
279
|
+
wm-network-uploader .wm-button.-textonly.dark:hover:not(:disabled):not(.disabled) {
|
|
280
280
|
text-decoration: underline;
|
|
281
281
|
color: #fff !important;
|
|
282
282
|
}
|
|
@@ -330,13 +330,13 @@ wm-network-uploader .wm-button.-navigational {
|
|
|
330
330
|
border: none !important;
|
|
331
331
|
background-color: transparent;
|
|
332
332
|
}
|
|
333
|
-
:host .wm-button.-navigational:not(.dark):not(:disabled),
|
|
334
|
-
wm-network-uploader .wm-button.-navigational:not(.dark):not(:disabled) {
|
|
333
|
+
:host .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled),
|
|
334
|
+
wm-network-uploader .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled) {
|
|
335
335
|
color: #575195;
|
|
336
336
|
}
|
|
337
|
-
:host .wm-button.-navigational:not(.dark):not(:disabled):hover,
|
|
338
|
-
wm-network-uploader .wm-button.-navigational:not(.dark):not(:disabled):hover, :host .wm-button.-navigational:not(.dark):not(:disabled).selected,
|
|
339
|
-
wm-network-uploader .wm-button.-navigational:not(.dark):not(:disabled).selected {
|
|
337
|
+
:host .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled):hover,
|
|
338
|
+
wm-network-uploader .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled):hover, :host .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled).selected,
|
|
339
|
+
wm-network-uploader .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled).selected {
|
|
340
340
|
background-color: #d7d6d9;
|
|
341
341
|
}
|
|
342
342
|
:host .wm-button.-navigational:before,
|
|
@@ -355,8 +355,8 @@ wm-network-uploader .wm-button.-permanentlydelete:not(.-textonly) {
|
|
|
355
355
|
border-color: #c0392b;
|
|
356
356
|
color: #fff;
|
|
357
357
|
}
|
|
358
|
-
:host .wm-button.-permanentlydelete:not(.-textonly):hover,
|
|
359
|
-
wm-network-uploader .wm-button.-permanentlydelete:not(.-textonly):hover {
|
|
358
|
+
:host .wm-button.-permanentlydelete:not(.-textonly):hover:not(:disabled):not(.disabled),
|
|
359
|
+
wm-network-uploader .wm-button.-permanentlydelete:not(.-textonly):hover:not(:disabled):not(.disabled) {
|
|
360
360
|
background: #9a2e22;
|
|
361
361
|
border-color: #9a2e22;
|
|
362
362
|
}
|
|
@@ -366,8 +366,8 @@ wm-network-uploader .wm-button.-pairnegative {
|
|
|
366
366
|
border-color: #cc4c3e;
|
|
367
367
|
color: #fff;
|
|
368
368
|
}
|
|
369
|
-
:host .wm-button.-pairnegative:hover,
|
|
370
|
-
wm-network-uploader .wm-button.-pairnegative:hover {
|
|
369
|
+
:host .wm-button.-pairnegative:hover:not(:disabled):not(.disabled),
|
|
370
|
+
wm-network-uploader .wm-button.-pairnegative:hover:not(:disabled):not(.disabled) {
|
|
371
371
|
background: #a33d32;
|
|
372
372
|
border-color: #a33d32;
|
|
373
373
|
}
|
|
@@ -377,8 +377,8 @@ wm-network-uploader .wm-button.-pairpositive {
|
|
|
377
377
|
border-color: #15868d;
|
|
378
378
|
color: #fff;
|
|
379
379
|
}
|
|
380
|
-
:host .wm-button.-pairpositive:hover,
|
|
381
|
-
wm-network-uploader .wm-button.-pairpositive:hover {
|
|
380
|
+
:host .wm-button.-pairpositive:hover:not(:disabled):not(.disabled),
|
|
381
|
+
wm-network-uploader .wm-button.-pairpositive:hover:not(:disabled):not(.disabled) {
|
|
382
382
|
background: #116b71;
|
|
383
383
|
border-color: #116b71;
|
|
384
384
|
}
|
|
@@ -127,7 +127,7 @@ export class NetworkUploader {
|
|
|
127
127
|
isEmpty() {
|
|
128
128
|
return !this.fileList.length && !this.inProgressList.length && !this.errorList.length;
|
|
129
129
|
}
|
|
130
|
-
isDisabled() {
|
|
130
|
+
get isDisabled() {
|
|
131
131
|
const isMax = !!this.maxFiles && this.fileList.length >= this.maxFiles;
|
|
132
132
|
if (!this.notif) {
|
|
133
133
|
if (isMax) {
|
|
@@ -347,21 +347,53 @@ export class NetworkUploader {
|
|
|
347
347
|
}
|
|
348
348
|
componentDidLoad() {
|
|
349
349
|
this.getExistingFiles();
|
|
350
|
-
// awkward way to handle Edge bug where file input dialog doesn't open on Enter key
|
|
351
|
-
// first, detect polyfill by checking the class name that it adds to the component
|
|
352
|
-
// (it's important NOT to execute the code below in normal browsers as it would open the dialog twice)
|
|
353
|
-
this.el.classList.contains("sc-wm-uploader-h") &&
|
|
354
|
-
// then add an even listener to force a click event when Enter key is pressed
|
|
355
|
-
this.inputEl &&
|
|
356
|
-
this.inputEl.addEventListener("keydown", (ev) => {
|
|
357
|
-
if (this.inputEl && ev.key === "Enter") {
|
|
358
|
-
this.inputEl.click();
|
|
359
|
-
}
|
|
360
|
-
});
|
|
361
350
|
if (document.body.classList.contains("wmcl-user-is-tabbing")) {
|
|
362
351
|
this.toggleTabbingOn();
|
|
363
352
|
}
|
|
364
353
|
}
|
|
354
|
+
uploadButtonOnClick(ev) {
|
|
355
|
+
if (this.isDisabled) {
|
|
356
|
+
// this is a temporary fix.
|
|
357
|
+
// we need the disabled button to be programmatically focusable
|
|
358
|
+
// to allow return focus after closing the browser file panel
|
|
359
|
+
// since it's focusable the button should respond when activated
|
|
360
|
+
// it looks disabled, and announces the reason why the action cannot
|
|
361
|
+
// be taken when activated.
|
|
362
|
+
// this is not pretty duplicating a intl message + the logic of isDisabled,
|
|
363
|
+
// but not worth a bigger refactor since this is only until we get the UX for disabled elements and refactor all interactive els.
|
|
364
|
+
ev.preventDefault();
|
|
365
|
+
if (this.liveRegion) {
|
|
366
|
+
const isMax = !!this.maxFiles && this.fileList.length >= this.maxFiles;
|
|
367
|
+
let errMsg = "";
|
|
368
|
+
if (this.numFilesInProgress > 0) {
|
|
369
|
+
errMsg = intl.formatMessage({
|
|
370
|
+
id: "uploader.waitToUpload",
|
|
371
|
+
defaultMessage: "Please wait for current upload to complete before uploading new files.",
|
|
372
|
+
description: "Message for screen reader users",
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
else if (isMax) {
|
|
376
|
+
errMsg = intl.formatMessage({
|
|
377
|
+
id: "uploader.fileUploadLimit",
|
|
378
|
+
defaultMessage: "You have reached the file upload limit.",
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
if (errMsg) {
|
|
382
|
+
// clear and set again to re-announce if button is clicked several times
|
|
383
|
+
// (can't be done inside setTimeout because of scope, hence the promise)
|
|
384
|
+
this.liveRegion.innerHTML = "";
|
|
385
|
+
new Promise((resolve) => {
|
|
386
|
+
setTimeout(() => {
|
|
387
|
+
resolve("");
|
|
388
|
+
}, 500);
|
|
389
|
+
}).then(() => (this.liveRegion.innerHTML = errMsg));
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
else {
|
|
394
|
+
this.clearErrors();
|
|
395
|
+
}
|
|
396
|
+
}
|
|
365
397
|
renderUploadSvg() {
|
|
366
398
|
return (h("svg", { class: "upload-file", width: "91", height: "84", viewBox: "0 0 91 84" },
|
|
367
399
|
h("path", { transform: "rotate(-180.000000) translate(-452, -255.5)", fill: "#eae8ec", d: "M361,249.681818 L361,197.318182 C361,194.118182 365.555061,191.5 371.122358,191.5 L391.316463,191.5 L391.286495,200.562515 L369.871211,200.600292 L369.885404,200.622146 L369.886423,246.655947 L443.657038,246.840767 L443.657038,200.622146 L421.683537,200.622146 L421.683537,191.5 L441.978865,191.5 C447.546162,191.5 452,194.118182 452,197.318182 L452,249.681818 C452,252.881818 447.546162,255.5 441.978865,255.5 L371.122358,255.5 C365.504449,255.5 361,252.881818 361,249.681818 Z M391.5,207 L406,221 L420.5,207 L409.625,207 L409.625,172 L402.375,172 L402.375,207 L391.5,207 Z" })));
|
|
@@ -376,7 +408,7 @@ export class NetworkUploader {
|
|
|
376
408
|
}
|
|
377
409
|
renderUploadButton(classes) {
|
|
378
410
|
return (h("div", { class: "notif-wrapper" },
|
|
379
|
-
h("input", {
|
|
411
|
+
h("input", { name: this.inputId, id: this.inputId, class: "sr-only", type: "file", multiple: true, onClick: (ev) => this.uploadButtonOnClick(ev), onChange: (e) => this.handleFiles(e) }),
|
|
380
412
|
h("label", { htmlFor: this.inputId, class: `wm-button ${classes}${this.isTabbing ? " user-is-tabbing" : ""}` },
|
|
381
413
|
this.renderIcon(),
|
|
382
414
|
this.buttonText),
|
|
@@ -387,7 +419,7 @@ export class NetworkUploader {
|
|
|
387
419
|
h("div", { class: "header" },
|
|
388
420
|
h("div", { class: "descr" },
|
|
389
421
|
h("slot", null)),
|
|
390
|
-
this.renderUploadButton(this.isDisabled
|
|
422
|
+
this.renderUploadButton(this.isDisabled ? "disabled" : "")),
|
|
391
423
|
this.renderErrorList(),
|
|
392
424
|
this.renderInProgressList(),
|
|
393
425
|
this.renderFileList()));
|
|
@@ -633,7 +665,7 @@ export class NetworkUploader {
|
|
|
633
665
|
},
|
|
634
666
|
"maxSize": {
|
|
635
667
|
"type": "number",
|
|
636
|
-
"mutable":
|
|
668
|
+
"mutable": true,
|
|
637
669
|
"complexType": {
|
|
638
670
|
"original": "number",
|
|
639
671
|
"resolved": "number",
|
|
@@ -155,8 +155,8 @@ wm-uploader .wm-button:active:not(:disabled):not(.disabled):not(.-textonly):not(
|
|
|
155
155
|
-moz-transform: scale(0.9, 0.9);
|
|
156
156
|
transform: scale(0.9, 0.9);
|
|
157
157
|
}
|
|
158
|
-
:host .wm-button:hover,
|
|
159
|
-
wm-uploader .wm-button:hover {
|
|
158
|
+
:host .wm-button:hover:not(:disabled):not(.disabled),
|
|
159
|
+
wm-uploader .wm-button:hover:not(:disabled):not(.disabled) {
|
|
160
160
|
background: #464177;
|
|
161
161
|
color: #fff;
|
|
162
162
|
}
|
|
@@ -190,8 +190,8 @@ wm-uploader .wm-button.-primary:not(.-textonly):not(:focus) {
|
|
|
190
190
|
-moz-box-shadow: 0 2px 2px 0 rgba(87, 81, 149, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.2);
|
|
191
191
|
box-shadow: 0 2px 2px 0 rgba(87, 81, 149, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.2);
|
|
192
192
|
}
|
|
193
|
-
:host .wm-button.-primary:not(.-textonly):hover,
|
|
194
|
-
wm-uploader .wm-button.-primary:not(.-textonly):hover {
|
|
193
|
+
:host .wm-button.-primary:not(.-textonly):hover:not(:disabled):not(.disabled),
|
|
194
|
+
wm-uploader .wm-button.-primary:not(.-textonly):hover:not(:disabled):not(.disabled) {
|
|
195
195
|
background: #464177;
|
|
196
196
|
}
|
|
197
197
|
:host .wm-button.-primary:not(.-textonly).dark:not(:disabled):not(.disabled),
|
|
@@ -266,8 +266,8 @@ wm-uploader .wm-button.-textonly:hover:not(:disabled):not(.disabled):not(.-perma
|
|
|
266
266
|
wm-uploader .wm-button.-textonly.-permanentlydelete {
|
|
267
267
|
color: #c0392b;
|
|
268
268
|
}
|
|
269
|
-
:host .wm-button.-textonly.-permanentlydelete:hover,
|
|
270
|
-
wm-uploader .wm-button.-textonly.-permanentlydelete:hover {
|
|
269
|
+
:host .wm-button.-textonly.-permanentlydelete:hover:not(:disabled):not(.disabled),
|
|
270
|
+
wm-uploader .wm-button.-textonly.-permanentlydelete:hover:not(:disabled):not(.disabled) {
|
|
271
271
|
text-decoration: underline;
|
|
272
272
|
color: #c0392b !important;
|
|
273
273
|
}
|
|
@@ -275,8 +275,8 @@ wm-uploader .wm-button.-textonly.-permanentlydelete:hover {
|
|
|
275
275
|
wm-uploader .wm-button.-textonly.dark {
|
|
276
276
|
color: #fff;
|
|
277
277
|
}
|
|
278
|
-
:host .wm-button.-textonly.dark:hover,
|
|
279
|
-
wm-uploader .wm-button.-textonly.dark:hover {
|
|
278
|
+
:host .wm-button.-textonly.dark:hover:not(:disabled):not(.disabled),
|
|
279
|
+
wm-uploader .wm-button.-textonly.dark:hover:not(:disabled):not(.disabled) {
|
|
280
280
|
text-decoration: underline;
|
|
281
281
|
color: #fff !important;
|
|
282
282
|
}
|
|
@@ -330,13 +330,13 @@ wm-uploader .wm-button.-navigational {
|
|
|
330
330
|
border: none !important;
|
|
331
331
|
background-color: transparent;
|
|
332
332
|
}
|
|
333
|
-
:host .wm-button.-navigational:not(.dark):not(:disabled),
|
|
334
|
-
wm-uploader .wm-button.-navigational:not(.dark):not(:disabled) {
|
|
333
|
+
:host .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled),
|
|
334
|
+
wm-uploader .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled) {
|
|
335
335
|
color: #575195;
|
|
336
336
|
}
|
|
337
|
-
:host .wm-button.-navigational:not(.dark):not(:disabled):hover,
|
|
338
|
-
wm-uploader .wm-button.-navigational:not(.dark):not(:disabled):hover, :host .wm-button.-navigational:not(.dark):not(:disabled).selected,
|
|
339
|
-
wm-uploader .wm-button.-navigational:not(.dark):not(:disabled).selected {
|
|
337
|
+
:host .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled):hover,
|
|
338
|
+
wm-uploader .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled):hover, :host .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled).selected,
|
|
339
|
+
wm-uploader .wm-button.-navigational:not(.dark):not(:disabled):not(.disabled).selected {
|
|
340
340
|
background-color: #d7d6d9;
|
|
341
341
|
}
|
|
342
342
|
:host .wm-button.-navigational:before,
|
|
@@ -355,8 +355,8 @@ wm-uploader .wm-button.-permanentlydelete:not(.-textonly) {
|
|
|
355
355
|
border-color: #c0392b;
|
|
356
356
|
color: #fff;
|
|
357
357
|
}
|
|
358
|
-
:host .wm-button.-permanentlydelete:not(.-textonly):hover,
|
|
359
|
-
wm-uploader .wm-button.-permanentlydelete:not(.-textonly):hover {
|
|
358
|
+
:host .wm-button.-permanentlydelete:not(.-textonly):hover:not(:disabled):not(.disabled),
|
|
359
|
+
wm-uploader .wm-button.-permanentlydelete:not(.-textonly):hover:not(:disabled):not(.disabled) {
|
|
360
360
|
background: #9a2e22;
|
|
361
361
|
border-color: #9a2e22;
|
|
362
362
|
}
|
|
@@ -366,8 +366,8 @@ wm-uploader .wm-button.-pairnegative {
|
|
|
366
366
|
border-color: #cc4c3e;
|
|
367
367
|
color: #fff;
|
|
368
368
|
}
|
|
369
|
-
:host .wm-button.-pairnegative:hover,
|
|
370
|
-
wm-uploader .wm-button.-pairnegative:hover {
|
|
369
|
+
:host .wm-button.-pairnegative:hover:not(:disabled):not(.disabled),
|
|
370
|
+
wm-uploader .wm-button.-pairnegative:hover:not(:disabled):not(.disabled) {
|
|
371
371
|
background: #a33d32;
|
|
372
372
|
border-color: #a33d32;
|
|
373
373
|
}
|
|
@@ -377,8 +377,8 @@ wm-uploader .wm-button.-pairpositive {
|
|
|
377
377
|
border-color: #15868d;
|
|
378
378
|
color: #fff;
|
|
379
379
|
}
|
|
380
|
-
:host .wm-button.-pairpositive:hover,
|
|
381
|
-
wm-uploader .wm-button.-pairpositive:hover {
|
|
380
|
+
:host .wm-button.-pairpositive:hover:not(:disabled):not(.disabled),
|
|
381
|
+
wm-uploader .wm-button.-pairpositive:hover:not(:disabled):not(.disabled) {
|
|
382
382
|
background: #116b71;
|
|
383
383
|
border-color: #116b71;
|
|
384
384
|
}
|
|
@@ -533,6 +533,10 @@ wm-uploader * {
|
|
|
533
533
|
box-sizing: border-box;
|
|
534
534
|
}
|
|
535
535
|
|
|
536
|
+
.wm-button.disabled {
|
|
537
|
+
pointer-events: initial !important;
|
|
538
|
+
}
|
|
539
|
+
|
|
536
540
|
.sr-only {
|
|
537
541
|
position: absolute !important;
|
|
538
542
|
width: 1px !important;
|