@watermarkinsights/ripple 3.7.0 → 3.8.0-2
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/{functions-13b0e88e.js → functions-edfdd03f.js} +67 -41
- package/dist/cjs/{global-c802d13c.js → global-ffd0392c.js} +1 -1
- package/dist/cjs/{index-cd179539.js → index-0e7e3668.js} +96 -64
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/priv-chart-popover.cjs.entry.js +4 -4
- package/dist/cjs/priv-datepicker.cjs.entry.js +23 -18
- package/dist/cjs/priv-navigator-button.cjs.entry.js +3 -3
- package/dist/cjs/priv-navigator-item.cjs.entry.js +2 -2
- package/dist/cjs/ripple.cjs.js +4 -4
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +5 -5
- package/dist/cjs/wm-button.cjs.entry.js +4 -4
- package/dist/cjs/wm-chart-slice.cjs.entry.js +2 -2
- package/dist/cjs/wm-chart.cjs.entry.js +5 -5
- package/dist/cjs/wm-datepicker.cjs.entry.js +13 -4
- package/dist/cjs/wm-input.cjs.entry.js +4 -4
- package/dist/cjs/wm-modal-footer.cjs.entry.js +3 -3
- package/dist/cjs/wm-modal-header.cjs.entry.js +3 -3
- package/dist/cjs/wm-modal.cjs.entry.js +7 -5
- 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 +4 -4
- package/dist/cjs/wm-network-uploader.cjs.entry.js +4 -4
- package/dist/cjs/wm-option_2.cjs.entry.js +6 -6
- package/dist/cjs/wm-pagination.cjs.entry.js +4 -4
- package/dist/cjs/wm-search.cjs.entry.js +4 -4
- package/dist/cjs/wm-snackbar.cjs.entry.js +4 -4
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +7 -7
- package/dist/cjs/wm-tag-input.cjs.entry.js +13 -4
- package/dist/cjs/wm-timepicker.cjs.entry.js +9 -6
- package/dist/cjs/wm-toggletip.cjs.entry.js +4 -4
- package/dist/cjs/wm-uploader.cjs.entry.js +4 -4
- package/dist/cjs/wm-wrapper.cjs.entry.js +2 -2
- 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-button/wm-button.css +1 -3
- package/dist/collection/components/wm-chart/priv-chart-popover/priv-chart-popover.css +0 -1
- package/dist/collection/components/wm-chart/wm-chart-slice.js +51 -0
- package/dist/collection/components/wm-chart/wm-chart.css +3 -1
- package/dist/collection/components/wm-chart/wm-chart.js +1 -1
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.css +3 -5
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.js +39 -15
- package/dist/collection/components/wm-datepicker/wm-datepicker.css +1 -3
- package/dist/collection/components/wm-datepicker/wm-datepicker.js +15 -0
- package/dist/collection/components/wm-input/wm-input.css +1 -3
- package/dist/collection/components/wm-menuitem/wm-menuitem.css +0 -1
- package/dist/collection/components/wm-modal/wm-modal-footer.css +0 -1
- package/dist/collection/components/wm-modal/wm-modal-header.css +0 -1
- package/dist/collection/components/wm-modal/wm-modal.css +0 -1
- package/dist/collection/components/wm-modal/wm-modal.js +3 -1
- 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-item/priv-navigator-item.css +0 -1
- package/dist/collection/components/wm-navigator/wm-navigator.css +0 -1
- package/dist/collection/components/wm-option/wm-option.css +2 -4
- package/dist/collection/components/wm-pagination/wm-pagination.css +0 -1
- package/dist/collection/components/wm-search/wm-search.css +0 -1
- package/dist/collection/components/wm-select/wm-select.css +2 -4
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +2 -4
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +0 -1
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +0 -1
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +0 -1
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +2 -4
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +9 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +2 -4
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +5 -2
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +1 -3
- package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.css +1 -3
- package/dist/collection/components/wm-uploader/wm-uploader.css +1 -3
- package/dist/esm/{functions-6ddad20e.js → functions-6cd52dcf.js} +67 -41
- package/dist/esm/{global-a4da88c7.js → global-51d6ea5f.js} +1 -1
- package/dist/esm/{index-66f8130e.js → index-cd8f9ae2.js} +96 -64
- package/dist/esm/loader.js +4 -4
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/priv-chart-popover.entry.js +4 -4
- package/dist/esm/priv-datepicker.entry.js +23 -18
- package/dist/esm/priv-navigator-button.entry.js +3 -3
- package/dist/esm/priv-navigator-item.entry.js +2 -2
- package/dist/esm/ripple.js +4 -4
- package/dist/esm/wm-action-menu_2.entry.js +5 -5
- package/dist/esm/wm-button.entry.js +4 -4
- package/dist/esm/wm-chart-slice.entry.js +2 -2
- package/dist/esm/wm-chart.entry.js +5 -5
- package/dist/esm/wm-datepicker.entry.js +13 -4
- package/dist/esm/wm-input.entry.js +4 -4
- package/dist/esm/wm-modal-footer.entry.js +3 -3
- package/dist/esm/wm-modal-header.entry.js +3 -3
- package/dist/esm/wm-modal.entry.js +7 -5
- 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 +4 -4
- package/dist/esm/wm-network-uploader.entry.js +4 -4
- package/dist/esm/wm-option_2.entry.js +6 -6
- package/dist/esm/wm-pagination.entry.js +4 -4
- package/dist/esm/wm-search.entry.js +4 -4
- package/dist/esm/wm-snackbar.entry.js +4 -4
- package/dist/esm/wm-tab-item_3.entry.js +7 -7
- package/dist/esm/wm-tag-input.entry.js +13 -4
- package/dist/esm/wm-timepicker.entry.js +9 -6
- package/dist/esm/wm-toggletip.entry.js +4 -4
- package/dist/esm/wm-uploader.entry.js +4 -4
- package/dist/esm/wm-wrapper.entry.js +2 -2
- package/dist/esm-es5/functions-6cd52dcf.js +15 -0
- package/dist/esm-es5/global-51d6ea5f.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-05b44011.system.entry.js +1 -0
- 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-17fef956.entry.js +1 -0
- package/dist/ripple/p-1d7049b5.system.entry.js +1 -0
- package/dist/ripple/p-20856a2d.system.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-2b526a98.entry.js +1 -0
- package/dist/ripple/p-2f63e022.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-45ee5b9d.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-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-58a1e616.system.entry.js +1 -0
- package/dist/ripple/p-5fd47eac.entry.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-6e5a35ae.system.entry.js +1 -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-7ff67db9.entry.js +1 -0
- package/dist/ripple/p-8139cdfe.system.js +1 -0
- package/dist/ripple/p-83028f2c.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-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-a2c2f475.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-a8358b36.entry.js +1 -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-aedd95e6.system.js +1 -0
- package/dist/ripple/p-b1d25dec.entry.js +1 -0
- package/dist/ripple/p-b542340c.system.entry.js +1 -0
- package/dist/ripple/p-c19298a5.system.entry.js +1 -0
- package/dist/ripple/p-c401898d.entry.js +1 -0
- package/dist/ripple/p-ce81ccb4.system.entry.js +1 -0
- package/dist/ripple/p-cfa8106a.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-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/p-fe0a25c1.entry.js +1 -0
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +130 -0
- package/dist/types/components/wm-chart/wm-chart-slice.d.ts +3 -0
- package/dist/types/components/wm-datepicker/priv-datepicker/priv-datepicker.d.ts +6 -2
- package/dist/types/components/wm-datepicker/wm-datepicker.d.ts +1 -0
- package/dist/types/components/wm-modal/wm-modal.d.ts +1 -1
- 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.d.ts +57 -0
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/package.json +1 -1
- package/dist/ripple/p-0068e871.entry.js +0 -1
- package/dist/ripple/p-00999aeb.entry.js +0 -1
- package/dist/ripple/p-08b273ba.entry.js +0 -1
- package/dist/ripple/p-0c58f50d.entry.js +0 -1
- package/dist/ripple/p-11c09317.entry.js +0 -1
- package/dist/ripple/p-196b4c55.entry.js +0 -1
- package/dist/ripple/p-1a3df227.entry.js +0 -1
- package/dist/ripple/p-3590a57f.entry.js +0 -1
- package/dist/ripple/p-3a178ac8.entry.js +0 -1
- package/dist/ripple/p-46371fad.entry.js +0 -1
- package/dist/ripple/p-5548fc7c.js +0 -1
- package/dist/ripple/p-5c73fd59.entry.js +0 -1
- package/dist/ripple/p-66513af1.entry.js +0 -1
- package/dist/ripple/p-828316d6.entry.js +0 -1
- package/dist/ripple/p-857a0bc0.js +0 -16
- package/dist/ripple/p-8b0eb05e.entry.js +0 -1
- package/dist/ripple/p-9624967f.entry.js +0 -1
- package/dist/ripple/p-99db8501.entry.js +0 -1
- package/dist/ripple/p-99e2c5f6.entry.js +0 -1
- package/dist/ripple/p-9baa3039.js +0 -1
- package/dist/ripple/p-b495e06c.entry.js +0 -1
- package/dist/ripple/p-b8aa478f.entry.js +0 -1
- package/dist/ripple/p-bc9ca97b.entry.js +0 -1
- package/dist/ripple/p-bf985c5d.entry.js +0 -1
- package/dist/ripple/p-cd6de442.entry.js +0 -1
- package/dist/ripple/p-cfdf1a79.entry.js +0 -1
- package/dist/ripple/p-d22c957d.entry.js +0 -1
- package/dist/ripple/p-e43b4eda.entry.js +0 -1
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { h, Component, Prop, Host, State, Listen } from "@stencil/core";
|
|
2
|
+
export class NavigationItem {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.isTabbing = false;
|
|
5
|
+
}
|
|
6
|
+
toggleTabbingOn() {
|
|
7
|
+
this.isTabbing = true;
|
|
8
|
+
}
|
|
9
|
+
toggleTabbingOff() {
|
|
10
|
+
this.isTabbing = false;
|
|
11
|
+
}
|
|
12
|
+
componentWillLoad() {
|
|
13
|
+
if (document.body.classList.contains("wmcl-user-is-tabbing")) {
|
|
14
|
+
this.toggleTabbingOn();
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
return (h(Host, { role: "listitem" },
|
|
19
|
+
h("a", { class: `link ${this.active ? "active" : ""} ${this.isTabbing ? "user-is-tabbing" : ""}`, href: this.href },
|
|
20
|
+
h("div", { class: "icon" },
|
|
21
|
+
h("slot", null)),
|
|
22
|
+
h("div", { class: "text" }, this.text))));
|
|
23
|
+
}
|
|
24
|
+
static get is() { return "wm-navigation-item"; }
|
|
25
|
+
static get encapsulation() { return "shadow"; }
|
|
26
|
+
static get originalStyleUrls() { return {
|
|
27
|
+
"$": ["wm-navigation-item.scss"]
|
|
28
|
+
}; }
|
|
29
|
+
static get styleUrls() { return {
|
|
30
|
+
"$": ["wm-navigation-item.css"]
|
|
31
|
+
}; }
|
|
32
|
+
static get properties() { return {
|
|
33
|
+
"href": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"mutable": false,
|
|
36
|
+
"complexType": {
|
|
37
|
+
"original": "string",
|
|
38
|
+
"resolved": "string | undefined",
|
|
39
|
+
"references": {}
|
|
40
|
+
},
|
|
41
|
+
"required": false,
|
|
42
|
+
"optional": true,
|
|
43
|
+
"docs": {
|
|
44
|
+
"tags": [],
|
|
45
|
+
"text": ""
|
|
46
|
+
},
|
|
47
|
+
"attribute": "href",
|
|
48
|
+
"reflect": false
|
|
49
|
+
},
|
|
50
|
+
"text": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"mutable": false,
|
|
53
|
+
"complexType": {
|
|
54
|
+
"original": "string",
|
|
55
|
+
"resolved": "string | undefined",
|
|
56
|
+
"references": {}
|
|
57
|
+
},
|
|
58
|
+
"required": false,
|
|
59
|
+
"optional": true,
|
|
60
|
+
"docs": {
|
|
61
|
+
"tags": [],
|
|
62
|
+
"text": ""
|
|
63
|
+
},
|
|
64
|
+
"attribute": "text",
|
|
65
|
+
"reflect": false
|
|
66
|
+
},
|
|
67
|
+
"active": {
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"mutable": false,
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "boolean",
|
|
72
|
+
"resolved": "boolean | undefined",
|
|
73
|
+
"references": {}
|
|
74
|
+
},
|
|
75
|
+
"required": false,
|
|
76
|
+
"optional": true,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [],
|
|
79
|
+
"text": ""
|
|
80
|
+
},
|
|
81
|
+
"attribute": "active",
|
|
82
|
+
"reflect": false
|
|
83
|
+
}
|
|
84
|
+
}; }
|
|
85
|
+
static get states() { return {
|
|
86
|
+
"isTabbing": {}
|
|
87
|
+
}; }
|
|
88
|
+
static get listeners() { return [{
|
|
89
|
+
"name": "wmUserIsTabbing",
|
|
90
|
+
"method": "toggleTabbingOn",
|
|
91
|
+
"target": "window",
|
|
92
|
+
"capture": false,
|
|
93
|
+
"passive": false
|
|
94
|
+
}, {
|
|
95
|
+
"name": "wmUserIsNotTabbing",
|
|
96
|
+
"method": "toggleTabbingOff",
|
|
97
|
+
"target": "window",
|
|
98
|
+
"capture": false,
|
|
99
|
+
"passive": false
|
|
100
|
+
}]; }
|
|
101
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/* --------------------------------------
|
|
2
|
+
1. Box-shadow
|
|
3
|
+
-------------------------------------- */
|
|
4
|
+
/* --------------------------------------
|
|
5
|
+
2. Border-radius
|
|
6
|
+
-------------------------------------- */
|
|
7
|
+
/* --------------------------------------
|
|
8
|
+
3. Transforms
|
|
9
|
+
-------------------------------------- */
|
|
10
|
+
/* --------------------------------------
|
|
11
|
+
4. Button Focus
|
|
12
|
+
-------------------------------------- */
|
|
13
|
+
/* --------------------------------------
|
|
14
|
+
5. Flex
|
|
15
|
+
-------------------------------------- */
|
|
16
|
+
/* --------------------------------------
|
|
17
|
+
6. Button Hover
|
|
18
|
+
-------------------------------------- */
|
|
19
|
+
/* --------------------------------------
|
|
20
|
+
7. Screen Reader Only
|
|
21
|
+
-------------------------------------- */
|
|
22
|
+
/* --------------------------------------
|
|
23
|
+
8. Label styles
|
|
24
|
+
this mixin includes all the styles for the label
|
|
25
|
+
+ flex rules on the parent container to switch between top and left position
|
|
26
|
+
+ srOnly when label is hidden
|
|
27
|
+
Assumes the following markup:
|
|
28
|
+
div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
|
|
29
|
+
.wrapper is for the flex rules
|
|
30
|
+
.label-wrapper is to set the height of the label when positioned left so it's the same height as
|
|
31
|
+
the input. It can't be done directly on .label because of possible line wrapping.
|
|
32
|
+
When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
|
|
33
|
+
(they can't be aligned on the baseline because of possible description text and error message)
|
|
34
|
+
-------------------------------------- */
|
|
35
|
+
/********************************************************************************************/
|
|
36
|
+
/* DO NOT USE THESE DIRECTLY, ASSIGN THEM TO VARIABLES NAMED AFTER FUNCTIONALITY, SEE BELOW */
|
|
37
|
+
/********************************************************************************************/
|
|
38
|
+
/* BELOW IS BEFORE WE HAD THE COLOR PALETTE FROM UI */
|
|
39
|
+
/* TODO: replace with vars above whenever possible */
|
|
40
|
+
/* Buttons */
|
|
41
|
+
/* VIA */
|
|
42
|
+
.nav {
|
|
43
|
+
-webkit-box-shadow: 0 0 14px 0 rgba(0, 0, 0, 0.14);
|
|
44
|
+
-moz-box-shadow: 0 0 14px 0 rgba(0, 0, 0, 0.14);
|
|
45
|
+
box-shadow: 0 0 14px 0 rgba(0, 0, 0, 0.14);
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: column;
|
|
48
|
+
align-items: center;
|
|
49
|
+
width: 7.5625rem;
|
|
50
|
+
background-color: #fff;
|
|
51
|
+
overflow-x: hidden;
|
|
52
|
+
overflow-y: auto;
|
|
53
|
+
-webkit-overflow-scrolling: touch;
|
|
54
|
+
font-size: 0.875rem;
|
|
55
|
+
height: 100%;
|
|
56
|
+
z-index: 10;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.navlist {
|
|
60
|
+
margin: 0;
|
|
61
|
+
padding: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.toggle-wrapper {
|
|
65
|
+
display: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* COLLAPSIBLE STYLES */
|
|
69
|
+
@media screen and (max-width: 1023px) {
|
|
70
|
+
.nav {
|
|
71
|
+
-ms-transition: transform 0.33s ease;
|
|
72
|
+
-webkit-transition: transform 0.33s ease;
|
|
73
|
+
-moz-transition: transform 0.33s ease;
|
|
74
|
+
transition: transform 0.33s ease;
|
|
75
|
+
position: fixed;
|
|
76
|
+
top: 0;
|
|
77
|
+
bottom: 0;
|
|
78
|
+
left: 0;
|
|
79
|
+
z-index: 100;
|
|
80
|
+
transform: translateX(-100%);
|
|
81
|
+
}
|
|
82
|
+
.nav ul {
|
|
83
|
+
visibility: hidden;
|
|
84
|
+
}
|
|
85
|
+
.nav[aria-expanded=true] {
|
|
86
|
+
transform: translateX(0);
|
|
87
|
+
}
|
|
88
|
+
.nav[aria-expanded=true] ul {
|
|
89
|
+
visibility: visible;
|
|
90
|
+
}
|
|
91
|
+
.nav .toggle-wrapper {
|
|
92
|
+
display: inline-block;
|
|
93
|
+
min-height: 5rem;
|
|
94
|
+
width: 100%;
|
|
95
|
+
display: flex;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
align-items: center;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.overlay {
|
|
101
|
+
width: 100vw;
|
|
102
|
+
height: 100vh;
|
|
103
|
+
max-width: none;
|
|
104
|
+
max-height: none;
|
|
105
|
+
position: fixed !important;
|
|
106
|
+
top: 0;
|
|
107
|
+
bottom: 0;
|
|
108
|
+
left: 0;
|
|
109
|
+
right: 0;
|
|
110
|
+
transform: translate(0%, 0%);
|
|
111
|
+
background-color: rgba(25, 25, 25, 0.4);
|
|
112
|
+
-ms-transition: opacity 0.5s ease-out;
|
|
113
|
+
-webkit-transition: opacity 0.5s ease-out;
|
|
114
|
+
-moz-transition: opacity 0.5s ease-out;
|
|
115
|
+
transition: opacity 0.5s ease-out;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { h, Component, Element, Prop, State, Listen, Host, Watch, Event } from "@stencil/core";
|
|
2
|
+
import { intl } from "../../global/functions";
|
|
3
|
+
export class Navigation {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.open = false;
|
|
6
|
+
this.isTabbing = false;
|
|
7
|
+
this.openTooltipMessage = intl.formatMessage({
|
|
8
|
+
id: "global.openVerb",
|
|
9
|
+
defaultMessage: "Open",
|
|
10
|
+
description: "For a button, to open a user interface element",
|
|
11
|
+
});
|
|
12
|
+
this.closeTooltipMessage = intl.formatMessage({
|
|
13
|
+
id: "global.closeVerb",
|
|
14
|
+
defaultMessage: "Close",
|
|
15
|
+
description: "For a button, to close a user interface element",
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
get ariaExpanded() {
|
|
19
|
+
return window.innerWidth < 1024
|
|
20
|
+
? // if component is in collapsible mode, set aria-expanded according to expanded state
|
|
21
|
+
this.open.toString()
|
|
22
|
+
: // otherwise, do not render attr at all
|
|
23
|
+
undefined;
|
|
24
|
+
}
|
|
25
|
+
toggleTabbingOn() {
|
|
26
|
+
this.isTabbing = true;
|
|
27
|
+
}
|
|
28
|
+
toggleTabbingOff() {
|
|
29
|
+
this.isTabbing = false;
|
|
30
|
+
}
|
|
31
|
+
componentWillLoad() {
|
|
32
|
+
if (document.body.classList.contains("wmcl-user-is-tabbing")) {
|
|
33
|
+
this.toggleTabbingOn();
|
|
34
|
+
}
|
|
35
|
+
this.el.focus = function () {
|
|
36
|
+
this.shadowRoot.querySelector(".toggle").focus();
|
|
37
|
+
/*
|
|
38
|
+
// prevent tooltip from showing on programmatic focus
|
|
39
|
+
requestAnimationFrame(() => {
|
|
40
|
+
this.tooltipVisible = false;
|
|
41
|
+
});
|
|
42
|
+
*/
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
componentDidLoad() {
|
|
46
|
+
// Should fail silently if not found as devs may decide not to use the hamburger component.
|
|
47
|
+
this.hamburgerBtn = document.querySelector("wm-navigation-hamburger");
|
|
48
|
+
}
|
|
49
|
+
updateHamburgerState() {
|
|
50
|
+
this.wmNavigationStateChanged.emit({ open: this.open });
|
|
51
|
+
if (this.open) {
|
|
52
|
+
// wait for nav to be expanded otherwise tooltip will be misplaced.
|
|
53
|
+
// also btn can't be focused right away.
|
|
54
|
+
setTimeout(() => this.toggleEl.focus(), 250);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
// should fail silently if el doesn't exist
|
|
58
|
+
this.hamburgerBtn && this.hamburgerBtn.focus();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
renderOverlay() {
|
|
62
|
+
return (h("div", { class: "overlay", onClick: () => {
|
|
63
|
+
this.open = false;
|
|
64
|
+
} }));
|
|
65
|
+
}
|
|
66
|
+
render() {
|
|
67
|
+
return (h(Host, null,
|
|
68
|
+
this.open ? this.renderOverlay() : "",
|
|
69
|
+
h("nav", { class: "nav", "aria-expanded": this.ariaExpanded },
|
|
70
|
+
h("div", { class: "toggle-wrapper" },
|
|
71
|
+
h("wm-button", { ref: (el) => (this.toggleEl = el), class: `toggle ${this.isTabbing ? "user-is-tabbing" : ""}`, "button-type": "navigational", icon: this.open ? "f156" : "f35c", "icon-size": "2rem", tooltip: this.open ? this.closeTooltipMessage : this.openTooltipMessage, "tooltip-position": "left", tabIndex: this.open ? undefined : -1, onClick: () => {
|
|
72
|
+
this.open = !this.open;
|
|
73
|
+
} })),
|
|
74
|
+
h("ul", { class: "navlist" },
|
|
75
|
+
h("slot", null)))));
|
|
76
|
+
}
|
|
77
|
+
static get is() { return "wm-navigation"; }
|
|
78
|
+
static get encapsulation() { return "shadow"; }
|
|
79
|
+
static get originalStyleUrls() { return {
|
|
80
|
+
"$": ["wm-navigation.scss"]
|
|
81
|
+
}; }
|
|
82
|
+
static get styleUrls() { return {
|
|
83
|
+
"$": ["wm-navigation.css"]
|
|
84
|
+
}; }
|
|
85
|
+
static get properties() { return {
|
|
86
|
+
"open": {
|
|
87
|
+
"type": "boolean",
|
|
88
|
+
"mutable": true,
|
|
89
|
+
"complexType": {
|
|
90
|
+
"original": "boolean",
|
|
91
|
+
"resolved": "boolean",
|
|
92
|
+
"references": {}
|
|
93
|
+
},
|
|
94
|
+
"required": false,
|
|
95
|
+
"optional": false,
|
|
96
|
+
"docs": {
|
|
97
|
+
"tags": [],
|
|
98
|
+
"text": ""
|
|
99
|
+
},
|
|
100
|
+
"attribute": "open",
|
|
101
|
+
"reflect": true,
|
|
102
|
+
"defaultValue": "false"
|
|
103
|
+
}
|
|
104
|
+
}; }
|
|
105
|
+
static get states() { return {
|
|
106
|
+
"isTabbing": {}
|
|
107
|
+
}; }
|
|
108
|
+
static get events() { return [{
|
|
109
|
+
"method": "wmNavigationStateChanged",
|
|
110
|
+
"name": "wmNavigationStateChanged",
|
|
111
|
+
"bubbles": true,
|
|
112
|
+
"cancelable": true,
|
|
113
|
+
"composed": true,
|
|
114
|
+
"docs": {
|
|
115
|
+
"tags": [],
|
|
116
|
+
"text": ""
|
|
117
|
+
},
|
|
118
|
+
"complexType": {
|
|
119
|
+
"original": "any",
|
|
120
|
+
"resolved": "any",
|
|
121
|
+
"references": {}
|
|
122
|
+
}
|
|
123
|
+
}]; }
|
|
124
|
+
static get elementRef() { return "el"; }
|
|
125
|
+
static get watchers() { return [{
|
|
126
|
+
"propName": "open",
|
|
127
|
+
"methodName": "updateHamburgerState"
|
|
128
|
+
}]; }
|
|
129
|
+
static get listeners() { return [{
|
|
130
|
+
"name": "wmUserIsTabbing",
|
|
131
|
+
"method": "toggleTabbingOn",
|
|
132
|
+
"target": "window",
|
|
133
|
+
"capture": false,
|
|
134
|
+
"passive": false
|
|
135
|
+
}, {
|
|
136
|
+
"name": "wmUserIsNotTabbing",
|
|
137
|
+
"method": "toggleTabbingOff",
|
|
138
|
+
"target": "window",
|
|
139
|
+
"capture": false,
|
|
140
|
+
"passive": false
|
|
141
|
+
}]; }
|
|
142
|
+
}
|
package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css
CHANGED
|
@@ -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 */
|
|
@@ -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 */
|
|
@@ -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 */
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
1
|
/* --------------------------------------
|
|
3
2
|
1. Box-shadow
|
|
4
3
|
-------------------------------------- */
|
|
@@ -36,7 +35,6 @@
|
|
|
36
35
|
/********************************************************************************************/
|
|
37
36
|
/* DO NOT USE THESE DIRECTLY, ASSIGN THEM TO VARIABLES NAMED AFTER FUNCTIONALITY, SEE BELOW */
|
|
38
37
|
/********************************************************************************************/
|
|
39
|
-
/* USAGE */
|
|
40
38
|
/* BELOW IS BEFORE WE HAD THE COLOR PALETTE FROM UI */
|
|
41
39
|
/* TODO: replace with vars above whenever possible */
|
|
42
40
|
/* Buttons */
|
|
@@ -77,7 +75,7 @@ wm-option.icon {
|
|
|
77
75
|
line-height: inherit;
|
|
78
76
|
-webkit-font-smoothing: antialiased;
|
|
79
77
|
-moz-osx-font-smoothing: grayscale;
|
|
80
|
-
content: "
|
|
78
|
+
content: "\f131";
|
|
81
79
|
display: inline;
|
|
82
80
|
margin-right: 0.25rem;
|
|
83
81
|
color: #575195;
|
|
@@ -90,7 +88,7 @@ wm-option[aria-selected=true] {
|
|
|
90
88
|
}
|
|
91
89
|
:host([aria-selected=true]) .checkbox:before,
|
|
92
90
|
wm-option[aria-selected=true] .checkbox:before {
|
|
93
|
-
content: "
|
|
91
|
+
content: "\f132";
|
|
94
92
|
}
|
|
95
93
|
|
|
96
94
|
:host([aria-disabled=true]),
|
|
@@ -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 */
|
|
@@ -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 */
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
1
|
/* --------------------------------------
|
|
3
2
|
1. Box-shadow
|
|
4
3
|
-------------------------------------- */
|
|
@@ -36,7 +35,6 @@
|
|
|
36
35
|
/********************************************************************************************/
|
|
37
36
|
/* DO NOT USE THESE DIRECTLY, ASSIGN THEM TO VARIABLES NAMED AFTER FUNCTIONALITY, SEE BELOW */
|
|
38
37
|
/********************************************************************************************/
|
|
39
|
-
/* USAGE */
|
|
40
38
|
/* BELOW IS BEFORE WE HAD THE COLOR PALETTE FROM UI */
|
|
41
39
|
/* TODO: replace with vars above whenever possible */
|
|
42
40
|
/* Buttons */
|
|
@@ -115,7 +113,7 @@
|
|
|
115
113
|
line-height: inherit;
|
|
116
114
|
-webkit-font-smoothing: antialiased;
|
|
117
115
|
-moz-osx-font-smoothing: grayscale;
|
|
118
|
-
content: "
|
|
116
|
+
content: "\f026";
|
|
119
117
|
margin-left: 0.3125rem;
|
|
120
118
|
}
|
|
121
119
|
[dir=RTL] .wrapper.invalid .label:after {
|
|
@@ -172,7 +170,7 @@
|
|
|
172
170
|
line-height: inherit;
|
|
173
171
|
-webkit-font-smoothing: antialiased;
|
|
174
172
|
-moz-osx-font-smoothing: grayscale;
|
|
175
|
-
content: "
|
|
173
|
+
content: "\f140";
|
|
176
174
|
position: absolute;
|
|
177
175
|
right: 0.5625rem;
|
|
178
176
|
pointer-events: none;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
1
|
/* --------------------------------------
|
|
3
2
|
1. Box-shadow
|
|
4
3
|
-------------------------------------- */
|
|
@@ -36,7 +35,6 @@
|
|
|
36
35
|
/********************************************************************************************/
|
|
37
36
|
/* DO NOT USE THESE DIRECTLY, ASSIGN THEM TO VARIABLES NAMED AFTER FUNCTIONALITY, SEE BELOW */
|
|
38
37
|
/********************************************************************************************/
|
|
39
|
-
/* USAGE */
|
|
40
38
|
/* BELOW IS BEFORE WE HAD THE COLOR PALETTE FROM UI */
|
|
41
39
|
/* TODO: replace with vars above whenever possible */
|
|
42
40
|
/* Buttons */
|
|
@@ -138,7 +136,7 @@ wm-snackbar .wm-snackbars .wm-snack-wrapper .wm-snackbar .link.new-window::after
|
|
|
138
136
|
-webkit-font-smoothing: antialiased;
|
|
139
137
|
-moz-osx-font-smoothing: grayscale;
|
|
140
138
|
display: inline;
|
|
141
|
-
content: "
|
|
139
|
+
content: "\f137";
|
|
142
140
|
margin-left: 0.25rem;
|
|
143
141
|
}
|
|
144
142
|
:host .wm-snackbars .wm-snack-wrapper .wm-snackbar .link:hover,
|
|
@@ -223,7 +221,7 @@ wm-snackbar .wm-snackbars .wm-snack-wrapper .wm-snackbar .wm-snackbarmsg .closes
|
|
|
223
221
|
line-height: inherit;
|
|
224
222
|
-webkit-font-smoothing: antialiased;
|
|
225
223
|
-moz-osx-font-smoothing: grayscale;
|
|
226
|
-
content: "
|
|
224
|
+
content: "\f156";
|
|
227
225
|
}
|
|
228
226
|
:host .wm-snackbars .wm-snack-wrapper .wm-snackbar .wm-snackbarmsg .closesnack:hover,
|
|
229
227
|
wm-snackbar .wm-snackbars .wm-snack-wrapper .wm-snackbar .wm-snackbarmsg .closesnack:hover {
|
|
@@ -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 */
|
|
@@ -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 */
|
|
@@ -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 */
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
1
|
/* --------------------------------------
|
|
3
2
|
1. Box-shadow
|
|
4
3
|
-------------------------------------- */
|
|
@@ -36,7 +35,6 @@
|
|
|
36
35
|
/********************************************************************************************/
|
|
37
36
|
/* DO NOT USE THESE DIRECTLY, ASSIGN THEM TO VARIABLES NAMED AFTER FUNCTIONALITY, SEE BELOW */
|
|
38
37
|
/********************************************************************************************/
|
|
39
|
-
/* USAGE */
|
|
40
38
|
/* BELOW IS BEFORE WE HAD THE COLOR PALETTE FROM UI */
|
|
41
39
|
/* TODO: replace with vars above whenever possible */
|
|
42
40
|
/* Buttons */
|
|
@@ -115,7 +113,7 @@ wm-tag-input .wrapper.invalid .label:after {
|
|
|
115
113
|
line-height: inherit;
|
|
116
114
|
-webkit-font-smoothing: antialiased;
|
|
117
115
|
-moz-osx-font-smoothing: grayscale;
|
|
118
|
-
content: "
|
|
116
|
+
content: "\f026";
|
|
119
117
|
margin-left: 0.3125rem;
|
|
120
118
|
}
|
|
121
119
|
[dir=RTL] :host .wrapper.invalid .label:after,
|
|
@@ -267,7 +265,7 @@ wm-tag-input .tag-area [role=option] .remove-btn:before {
|
|
|
267
265
|
line-height: inherit;
|
|
268
266
|
-webkit-font-smoothing: antialiased;
|
|
269
267
|
-moz-osx-font-smoothing: grayscale;
|
|
270
|
-
content: "
|
|
268
|
+
content: "\f156";
|
|
271
269
|
}
|
|
272
270
|
:host input,
|
|
273
271
|
wm-tag-input input {
|
|
@@ -76,6 +76,15 @@ export class TagInput {
|
|
|
76
76
|
if (!this.label) {
|
|
77
77
|
console.error("wm-tag-input must have a label property");
|
|
78
78
|
}
|
|
79
|
+
this.el.focus = function () {
|
|
80
|
+
// if present, send focus to the selected tags list
|
|
81
|
+
if (this.selectedTags) {
|
|
82
|
+
this.shadowRoot.querySelector("ul.tag-area").focus();
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
this.shadowRoot.querySelector("input").focus();
|
|
86
|
+
}
|
|
87
|
+
};
|
|
79
88
|
this.consolidateSelectedTags();
|
|
80
89
|
}
|
|
81
90
|
componentDidLoad() {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
1
|
/* --------------------------------------
|
|
3
2
|
1. Box-shadow
|
|
4
3
|
-------------------------------------- */
|
|
@@ -36,7 +35,6 @@
|
|
|
36
35
|
/********************************************************************************************/
|
|
37
36
|
/* DO NOT USE THESE DIRECTLY, ASSIGN THEM TO VARIABLES NAMED AFTER FUNCTIONALITY, SEE BELOW */
|
|
38
37
|
/********************************************************************************************/
|
|
39
|
-
/* USAGE */
|
|
40
38
|
/* BELOW IS BEFORE WE HAD THE COLOR PALETTE FROM UI */
|
|
41
39
|
/* TODO: replace with vars above whenever possible */
|
|
42
40
|
/* Buttons */
|
|
@@ -126,7 +124,7 @@ wm-timepicker .wrapper.invalid .label:after {
|
|
|
126
124
|
line-height: inherit;
|
|
127
125
|
-webkit-font-smoothing: antialiased;
|
|
128
126
|
-moz-osx-font-smoothing: grayscale;
|
|
129
|
-
content: "
|
|
127
|
+
content: "\f026";
|
|
130
128
|
margin-left: 0.3125rem;
|
|
131
129
|
}
|
|
132
130
|
[dir=RTL] :host .wrapper.invalid .label:after,
|
|
@@ -216,7 +214,7 @@ wm-timepicker .wrapper .inner-wrapper button .clock::after {
|
|
|
216
214
|
line-height: inherit;
|
|
217
215
|
-webkit-font-smoothing: antialiased;
|
|
218
216
|
-moz-osx-font-smoothing: grayscale;
|
|
219
|
-
content: "
|
|
217
|
+
content: "\f150";
|
|
220
218
|
color: #575195;
|
|
221
219
|
font-size: 1.5rem;
|
|
222
220
|
padding: 0;
|
|
@@ -18,7 +18,7 @@ export class Timepicker {
|
|
|
18
18
|
this.buttonAriaLabel = intl.formatMessage({
|
|
19
19
|
id: "time.selectTime",
|
|
20
20
|
defaultMessage: "Select time",
|
|
21
|
-
description: "Button text for screen readers."
|
|
21
|
+
description: "Button text for screen readers.",
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
toggleTabbingOn() {
|
|
@@ -377,7 +377,10 @@ export class Timepicker {
|
|
|
377
377
|
h("button", { id: `btn-${this.uid}`, class: this.isTabbing ? "user-is-tabbing" : "", ref: (el) => (this.buttonEl = el), disabled: this.disabled, "aria-controls": `list-${this.uid}`, "aria-expanded": this.isExpanded ? "true" : "false", "aria-label": this.buttonAriaLabel, "aria-describedby": `time-input-${this.uid}`, onClick: () => (this.isExpanded ? this.close() : this.open()),
|
|
378
378
|
// This addresses an issue in Safari, where clicking buttons does not focus them
|
|
379
379
|
// if the button does not receive focus when clicked, Timepicker incorrectly emits a blur event
|
|
380
|
-
onMouseDown: (
|
|
380
|
+
onMouseDown: (ev) => {
|
|
381
|
+
ev.preventDefault();
|
|
382
|
+
this.buttonEl.focus();
|
|
383
|
+
} },
|
|
381
384
|
h("span", { class: "clock" })),
|
|
382
385
|
h("ul", { class: `options ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, id: `list-${this.uid}`, role: "listbox", "aria-labelledby": `label-${this.uid}`, "aria-describedby": this.isExpanded ? "collapsed" : null, tabindex: -1, ref: (el) => (this.optionsEl = el) }, this.renderOptions())),
|
|
383
386
|
h("div", { id: `error-${this.uid}`, class: "error", "aria-live": "assertive", "aria-atomic": "true" }, this.displayedErrorMessage)))));
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
1
|
/* --------------------------------------
|
|
3
2
|
1. Box-shadow
|
|
4
3
|
-------------------------------------- */
|
|
@@ -36,7 +35,6 @@
|
|
|
36
35
|
/********************************************************************************************/
|
|
37
36
|
/* DO NOT USE THESE DIRECTLY, ASSIGN THEM TO VARIABLES NAMED AFTER FUNCTIONALITY, SEE BELOW */
|
|
38
37
|
/********************************************************************************************/
|
|
39
|
-
/* USAGE */
|
|
40
38
|
/* BELOW IS BEFORE WE HAD THE COLOR PALETTE FROM UI */
|
|
41
39
|
/* TODO: replace with vars above whenever possible */
|
|
42
40
|
/* Buttons */
|
|
@@ -71,7 +69,7 @@ wm-toggletip .button:before {
|
|
|
71
69
|
line-height: inherit;
|
|
72
70
|
-webkit-font-smoothing: antialiased;
|
|
73
71
|
-moz-osx-font-smoothing: grayscale;
|
|
74
|
-
content: "
|
|
72
|
+
content: "\f2fc";
|
|
75
73
|
font-size: 16px;
|
|
76
74
|
color: #4a4a4a;
|
|
77
75
|
background: radial-gradient(white 40%, transparent 0%);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
1
|
/* --------------------------------------
|
|
3
2
|
1. Box-shadow
|
|
4
3
|
-------------------------------------- */
|
|
@@ -36,7 +35,6 @@
|
|
|
36
35
|
/********************************************************************************************/
|
|
37
36
|
/* DO NOT USE THESE DIRECTLY, ASSIGN THEM TO VARIABLES NAMED AFTER FUNCTIONALITY, SEE BELOW */
|
|
38
37
|
/********************************************************************************************/
|
|
39
|
-
/* USAGE */
|
|
40
38
|
/* BELOW IS BEFORE WE HAD THE COLOR PALETTE FROM UI */
|
|
41
39
|
/* TODO: replace with vars above whenever possible */
|
|
42
40
|
/* Buttons */
|
|
@@ -420,7 +418,7 @@ wm-network-uploader .wm-button.-selectoronly:before {
|
|
|
420
418
|
line-height: inherit;
|
|
421
419
|
-webkit-font-smoothing: antialiased;
|
|
422
420
|
-moz-osx-font-smoothing: grayscale;
|
|
423
|
-
content: "
|
|
421
|
+
content: "\f140";
|
|
424
422
|
position: absolute;
|
|
425
423
|
right: 0.5625rem;
|
|
426
424
|
top: 50%;
|