@watermarkinsights/ripple 3.0.1-0 → 3.0.2-0

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.
Files changed (224) hide show
  1. package/dist/{ripple/functions-316c1b23.js → cjs/functions-e3f5ae65.js} +188 -2391
  2. package/dist/cjs/global-1e540de6.js +38 -0
  3. package/dist/cjs/http-service-9e8c4dd5.js +57 -0
  4. package/dist/cjs/index-d930307d.js +1392 -0
  5. package/dist/cjs/index.cjs.js +2 -0
  6. package/dist/cjs/interfaces-30a74c1f.js +35 -0
  7. package/dist/cjs/loader.cjs.js +22 -0
  8. package/dist/cjs/priv-chart-popover.cjs.entry.js +89 -0
  9. package/dist/cjs/priv-datepicker.cjs.entry.js +672 -0
  10. package/dist/cjs/priv-navigator-button.cjs.entry.js +29 -0
  11. package/dist/cjs/priv-navigator-item.cjs.entry.js +34 -0
  12. package/dist/cjs/ripple.cjs.js +20 -0
  13. package/dist/cjs/wm-action-menu_2.cjs.entry.js +318 -0
  14. package/dist/cjs/wm-button.cjs.entry.js +152 -0
  15. package/dist/cjs/wm-chart-slice.cjs.entry.js +22 -0
  16. package/dist/cjs/wm-chart.cjs.entry.js +508 -0
  17. package/dist/cjs/wm-datepicker.cjs.entry.js +257 -0
  18. package/dist/cjs/wm-input.cjs.entry.js +110 -0
  19. package/dist/cjs/wm-modal-footer.cjs.entry.js +43 -0
  20. package/dist/cjs/wm-modal-header.cjs.entry.js +45 -0
  21. package/dist/cjs/wm-modal.cjs.entry.js +149 -0
  22. package/dist/cjs/wm-navigator.cjs.entry.js +279 -0
  23. package/dist/cjs/wm-network-uploader.cjs.entry.js +431 -0
  24. package/dist/cjs/wm-option_2.cjs.entry.js +483 -0
  25. package/dist/cjs/wm-pagination.cjs.entry.js +176 -0
  26. package/dist/cjs/wm-search.cjs.entry.js +231 -0
  27. package/dist/cjs/wm-snackbar.cjs.entry.js +160 -0
  28. package/dist/cjs/wm-tab-item_3.cjs.entry.js +316 -0
  29. package/dist/cjs/wm-tag-input.cjs.entry.js +538 -0
  30. package/dist/cjs/wm-timepicker.cjs.entry.js +386 -0
  31. package/dist/cjs/wm-toggletip.cjs.entry.js +128 -0
  32. package/dist/cjs/wm-uploader.cjs.entry.js +342 -0
  33. package/dist/cjs/wm-wrapper.cjs.entry.js +21 -0
  34. package/dist/collection/collection-manifest.json +131 -0
  35. package/dist/{ripple/ripple.css → collection/components/wm-action-menu/wm-action-menu.css} +80 -42
  36. package/dist/collection/components/wm-action-menu/wm-action-menu.js +392 -0
  37. package/dist/collection/components/wm-button/wm-button.css +572 -0
  38. package/dist/collection/components/wm-button/wm-button.js +365 -0
  39. package/dist/collection/components/wm-chart/priv-chart-popover/priv-chart-popover.css +132 -0
  40. package/dist/collection/components/wm-chart/priv-chart-popover/priv-chart-popover.js +232 -0
  41. package/dist/collection/components/wm-chart/wm-chart-slice.js +64 -0
  42. package/dist/collection/components/wm-chart/wm-chart.css +337 -0
  43. package/dist/collection/components/wm-chart/wm-chart.js +710 -0
  44. package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.css +374 -0
  45. package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.js +1003 -0
  46. package/dist/collection/components/wm-datepicker/wm-datepicker.css +211 -0
  47. package/dist/collection/components/wm-datepicker/wm-datepicker.js +439 -0
  48. package/dist/collection/components/wm-input/wm-input.css +220 -0
  49. package/dist/collection/components/wm-input/wm-input.js +302 -0
  50. package/dist/collection/components/wm-menuitem/wm-menuitem.css +118 -0
  51. package/dist/collection/components/wm-menuitem/wm-menuitem.js +411 -0
  52. package/dist/collection/components/wm-modal/wm-modal-footer.css +84 -0
  53. package/dist/collection/components/wm-modal/wm-modal-footer.js +159 -0
  54. package/dist/collection/components/wm-modal/wm-modal-header.css +78 -0
  55. package/dist/collection/components/wm-modal/wm-modal-header.js +109 -0
  56. package/dist/collection/components/wm-modal/wm-modal.css +155 -0
  57. package/dist/collection/components/wm-modal/wm-modal.js +356 -0
  58. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +94 -0
  59. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +97 -0
  60. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +67 -0
  61. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +114 -0
  62. package/dist/collection/components/wm-navigator/wm-navigator.css +137 -0
  63. package/dist/collection/components/wm-navigator/wm-navigator.js +468 -0
  64. package/dist/collection/components/wm-option/wm-option.css +162 -0
  65. package/dist/collection/components/wm-option/wm-option.js +394 -0
  66. package/dist/collection/components/wm-pagination/wm-pagination.css +217 -0
  67. package/dist/collection/components/wm-pagination/wm-pagination.js +348 -0
  68. package/dist/collection/components/wm-search/wm-search.css +155 -0
  69. package/dist/collection/components/wm-search/wm-search.js +439 -0
  70. package/dist/collection/components/wm-select/wm-select.css +315 -0
  71. package/dist/collection/components/wm-select/wm-select.js +676 -0
  72. package/dist/collection/components/wm-snackbar/wm-snackbar.css +331 -0
  73. package/dist/collection/components/wm-snackbar/wm-snackbar.js +240 -0
  74. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +104 -0
  75. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +202 -0
  76. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +73 -0
  77. package/dist/{ripple/wm-tab-list.entry.js → collection/components/wm-tabs/wm-tab-list/wm-tab-list.js} +131 -17
  78. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +57 -0
  79. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +104 -0
  80. package/dist/collection/components/wm-tag-input/wm-tag-input.css +431 -0
  81. package/dist/collection/components/wm-tag-input/wm-tag-input.js +754 -0
  82. package/dist/collection/components/wm-timepicker/wm-timepicker.css +370 -0
  83. package/dist/collection/components/wm-timepicker/wm-timepicker.js +567 -0
  84. package/dist/collection/components/wm-toggletip/wm-toggletip.css +350 -0
  85. package/dist/collection/components/wm-toggletip/wm-toggletip.js +217 -0
  86. package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.css +642 -0
  87. package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.js +753 -0
  88. package/dist/collection/components/wm-uploader/wm-uploader.css +666 -0
  89. package/dist/collection/components/wm-uploader/wm-uploader.js +673 -0
  90. package/dist/collection/components/wm-wrapper/wm-wrapper.js +27 -0
  91. package/dist/collection/dev/scripts.js +20 -0
  92. package/dist/collection/global/__mocks__/functions.js +5 -0
  93. package/dist/collection/global/functions.js +420 -0
  94. package/dist/{ripple/app-globals-b5693c90.js → collection/global/global.js} +3 -8
  95. package/dist/{ripple/interfaces-50753346.js → collection/global/interfaces.js} +4 -6
  96. package/dist/collection/global/services/__mocks__/http-service.js +130 -0
  97. package/dist/collection/global/services/http-service.js +50 -0
  98. package/dist/collection/lang/lang.js +5 -0
  99. package/dist/collection/lang/piglatin.js +93 -0
  100. package/dist/esm/functions-0deb7f8e.js +6117 -0
  101. package/dist/esm/global-d6b49e98.js +36 -0
  102. package/dist/{ripple → esm}/http-service-5d037e16.js +0 -0
  103. package/dist/esm/index-5a842e48.js +1363 -0
  104. package/dist/esm/index.js +1 -0
  105. package/dist/esm/interfaces-61c6305b.js +32 -0
  106. package/dist/esm/loader.js +18 -0
  107. package/dist/esm/polyfills/core-js.js +11 -0
  108. package/dist/esm/polyfills/css-shim.js +1 -0
  109. package/dist/esm/polyfills/dom.js +79 -0
  110. package/dist/esm/polyfills/es5-html-element.js +1 -0
  111. package/dist/esm/polyfills/index.js +34 -0
  112. package/dist/esm/polyfills/system.js +6 -0
  113. package/dist/{ripple → esm}/priv-chart-popover.entry.js +2 -2
  114. package/dist/{ripple → esm}/priv-datepicker.entry.js +3 -3
  115. package/dist/{ripple → esm}/priv-navigator-button.entry.js +1 -1
  116. package/dist/{ripple → esm}/priv-navigator-item.entry.js +1 -1
  117. package/dist/esm/ripple.js +18 -0
  118. package/dist/{ripple/wm-action-menu.entry.js → esm/wm-action-menu_2.entry.js} +114 -3
  119. package/dist/{ripple → esm}/wm-button.entry.js +3 -3
  120. package/dist/{ripple → esm}/wm-chart-slice.entry.js +1 -1
  121. package/dist/{ripple → esm}/wm-chart.entry.js +2 -2
  122. package/dist/{ripple → esm}/wm-datepicker.entry.js +27 -32
  123. package/dist/{ripple → esm}/wm-input.entry.js +2 -2
  124. package/dist/{ripple → esm}/wm-modal-footer.entry.js +2 -2
  125. package/dist/{ripple → esm}/wm-modal-header.entry.js +2 -2
  126. package/dist/{ripple → esm}/wm-modal.entry.js +2 -2
  127. package/dist/{ripple → esm}/wm-navigator.entry.js +3 -3
  128. package/dist/{ripple → esm}/wm-network-uploader.entry.js +2 -2
  129. package/dist/{ripple/wm-select.entry.js → esm/wm-option_2.entry.js} +119 -3
  130. package/dist/{ripple → esm}/wm-pagination.entry.js +2 -2
  131. package/dist/{ripple → esm}/wm-search.entry.js +2 -2
  132. package/dist/{ripple → esm}/wm-snackbar.entry.js +2 -2
  133. package/dist/esm/wm-tab-item_3.entry.js +310 -0
  134. package/dist/{ripple → esm}/wm-tag-input.entry.js +2 -2
  135. package/dist/{ripple → esm}/wm-timepicker.entry.js +2 -2
  136. package/dist/{ripple → esm}/wm-toggletip.entry.js +2 -2
  137. package/dist/{ripple → esm}/wm-uploader.entry.js +2 -2
  138. package/dist/{ripple → esm}/wm-wrapper.entry.js +1 -1
  139. package/dist/index.cjs.js +1 -0
  140. package/dist/index.js +1 -0
  141. package/dist/loader/cdn.js +3 -0
  142. package/dist/loader/index.cjs.js +3 -0
  143. package/dist/loader/index.d.ts +13 -0
  144. package/dist/loader/index.es2017.js +3 -0
  145. package/dist/loader/index.js +4 -0
  146. package/dist/loader/package.json +10 -0
  147. package/dist/ripple/index.esm.js +0 -1
  148. package/dist/ripple/p-103f8cae.entry.js +1 -0
  149. package/dist/ripple/p-129d94fa.entry.js +1 -0
  150. package/dist/ripple/p-139fe143.entry.js +1 -0
  151. package/dist/ripple/p-16367805.entry.js +1 -0
  152. package/dist/ripple/p-1d334060.entry.js +1 -0
  153. package/dist/ripple/p-2562f330.entry.js +1 -0
  154. package/dist/ripple/p-278b26ef.entry.js +1 -0
  155. package/dist/ripple/p-2c21bb72.entry.js +1 -0
  156. package/dist/ripple/p-2f5fda71.entry.js +1 -0
  157. package/dist/ripple/p-3e6f04d5.entry.js +1 -0
  158. package/dist/ripple/p-7185de7f.entry.js +1 -0
  159. package/dist/ripple/p-770d0798.entry.js +1 -0
  160. package/dist/ripple/p-846b4c5f.entry.js +1 -0
  161. package/dist/ripple/p-888bec42.js +1 -0
  162. package/dist/ripple/p-90779d53.entry.js +1 -0
  163. package/dist/ripple/p-934543f2.js +1 -0
  164. package/dist/ripple/p-9a087fee.entry.js +1 -0
  165. package/dist/ripple/p-a6d6eae7.js +1 -0
  166. package/dist/ripple/p-a942ad10.entry.js +1 -0
  167. package/dist/ripple/p-bfb4652d.entry.js +1 -0
  168. package/dist/ripple/p-c0fe5201.entry.js +1 -0
  169. package/dist/ripple/p-c2e27acc.entry.js +1 -0
  170. package/dist/ripple/p-c2edda64.entry.js +1 -0
  171. package/dist/ripple/p-d1fdcbcf.entry.js +1 -0
  172. package/dist/ripple/p-d40b6afb.entry.js +1 -0
  173. package/dist/ripple/p-da73db1c.entry.js +1 -0
  174. package/dist/ripple/p-e3843249.js +1 -0
  175. package/dist/ripple/p-ea5cd8b8.js +16 -0
  176. package/dist/ripple/p-ed0f43f4.entry.js +1 -0
  177. package/dist/ripple/p-ffafd363.entry.js +1 -0
  178. package/dist/ripple/ripple.esm.js +1 -125
  179. package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +43 -0
  180. package/dist/types/components/wm-button/wm-button.d.ts +36 -0
  181. package/dist/types/components/wm-chart/priv-chart-popover/priv-chart-popover.d.ts +23 -0
  182. package/dist/types/components/wm-chart/wm-chart-slice.d.ts +8 -0
  183. package/dist/types/components/wm-chart/wm-chart.d.ts +77 -0
  184. package/dist/types/components/wm-datepicker/priv-datepicker/priv-datepicker.d.ts +75 -0
  185. package/dist/types/components/wm-datepicker/wm-datepicker.d.ts +39 -0
  186. package/dist/types/components/wm-input/wm-input.d.ts +30 -0
  187. package/dist/types/components/wm-menuitem/wm-menuitem.d.ts +30 -0
  188. package/dist/types/components/wm-modal/wm-modal-footer.d.ts +15 -0
  189. package/dist/types/components/wm-modal/wm-modal-header.d.ts +12 -0
  190. package/dist/types/components/wm-modal/wm-modal.d.ts +34 -0
  191. package/dist/types/components/wm-navigator/priv-navigator-button/priv-navigator-button.d.ts +10 -0
  192. package/dist/types/components/wm-navigator/priv-navigator-item/priv-navigator-item.d.ts +13 -0
  193. package/dist/types/components/wm-navigator/wm-navigator.d.ts +61 -0
  194. package/dist/types/components/wm-option/wm-option.d.ts +28 -0
  195. package/dist/types/components/wm-pagination/wm-pagination.d.ts +31 -0
  196. package/dist/types/components/wm-search/wm-search.d.ts +78 -0
  197. package/dist/types/components/wm-select/wm-select.d.ts +63 -0
  198. package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +32 -0
  199. package/dist/types/components/wm-tabs/wm-tab-item/wm-tab-item.d.ts +35 -0
  200. package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +50 -0
  201. package/dist/types/components/wm-tabs/wm-tab-panel/wm-tab-panel.d.ts +20 -0
  202. package/dist/types/components/wm-tag-input/{wm-tag-input.d.ts~ds312_tagInputMaxTags → wm-tag-input.d.ts} +1 -1
  203. package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +59 -0
  204. package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +25 -0
  205. package/dist/types/components/wm-uploader/wm-network-uploader/wm-network-uploader.d.ts +85 -0
  206. package/dist/types/components/wm-uploader/wm-uploader.d.ts +75 -0
  207. package/dist/types/components/wm-wrapper/wm-wrapper.d.ts +7 -0
  208. package/dist/types/{components.d.ts~ds312_tagInputMaxTags → components.d.ts} +0 -0
  209. package/dist/types/global/__mocks__/functions.d.ts +5 -0
  210. package/dist/types/global/global.d.ts +1 -0
  211. package/dist/types/global/interfaces.d.ts +33 -0
  212. package/dist/types/global/services/__mocks__/http-service.d.ts +6 -0
  213. package/dist/types/global/services/http-service.d.ts +4 -0
  214. package/dist/types/lang/lang.d.ts +5 -0
  215. package/dist/types/{stencil-public-runtime.d.ts~ds312_tagInputMaxTags → stencil-public-runtime.d.ts} +190 -182
  216. package/package.json +1 -1
  217. package/dist/ripple/css-shim-bbdf0cc6.js +0 -4
  218. package/dist/ripple/dom-1f98a75f.js +0 -73
  219. package/dist/ripple/index-20b65f86.js +0 -2938
  220. package/dist/ripple/shadow-css-67b66845.js +0 -389
  221. package/dist/ripple/wm-menuitem.entry.js +0 -114
  222. package/dist/ripple/wm-option.entry.js +0 -119
  223. package/dist/ripple/wm-tab-item.entry.js +0 -78
  224. package/dist/ripple/wm-tab-panel.entry.js +0 -38
@@ -0,0 +1,394 @@
1
+ import { h, Component, Element, Event, Host, Listen, Prop, Watch } from "@stencil/core";
2
+ export class Option {
3
+ constructor() {
4
+ this.subinfo = undefined;
5
+ this.disabled = false;
6
+ this.selected = false;
7
+ this.focused = false;
8
+ }
9
+ get isMultiChild() {
10
+ var _a;
11
+ return (_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.multiple;
12
+ }
13
+ handleKeydown(ev) {
14
+ switch (ev.keyCode) {
15
+ // Arrow Up
16
+ case 38:
17
+ ev.preventDefault();
18
+ this.wmKeyUpPressed.emit();
19
+ break;
20
+ // Arrow Down
21
+ case 40:
22
+ ev.preventDefault();
23
+ this.wmKeyDownPressed.emit(this.el);
24
+ break;
25
+ // Enter
26
+ case 13:
27
+ ev.preventDefault();
28
+ if (!this.disabled) {
29
+ this.el.click();
30
+ this.wmEnterKeyPressed.emit(this.el);
31
+ }
32
+ break;
33
+ // Space
34
+ case 32:
35
+ ev.preventDefault();
36
+ this.el.click();
37
+ break;
38
+ // Escape
39
+ case 27:
40
+ ev.preventDefault();
41
+ ev.stopPropagation(); // for instance if select is in a modal, esc should close the select but not the modal
42
+ this.wmEscKeyPressed.emit();
43
+ break;
44
+ // Home
45
+ case 36:
46
+ ev.preventDefault();
47
+ this.wmHomeKeyPressed.emit();
48
+ break;
49
+ // End
50
+ case 35:
51
+ ev.preventDefault();
52
+ this.wmEndKeyPressed.emit();
53
+ break;
54
+ // Tab
55
+ case 9:
56
+ this.wmTabKeyPressed.emit();
57
+ break;
58
+ default:
59
+ this.wmLetterPressed.emit(ev.key);
60
+ }
61
+ }
62
+ handleSelection() {
63
+ if (!this.disabled) {
64
+ this.wmOptionSelected.emit();
65
+ // the parent wm-select is in charge of the actual selection
66
+ }
67
+ }
68
+ syncAriaSelected() {
69
+ // this function only keeps the aria-selected attr in sync with the selected prop
70
+ // all the logic for selecting / deselecting happens in the parent wm-select
71
+ this.selected ? this.el.setAttribute("aria-selected", "true") : this.el.removeAttribute("aria-selected");
72
+ }
73
+ syncAriaDisabled() {
74
+ this.disabled ? this.el.setAttribute("aria-disabled", "true") : this.el.removeAttribute("aria-disabled");
75
+ }
76
+ focusHandler(newValue) {
77
+ if (newValue)
78
+ this.el.focus();
79
+ }
80
+ updateDisabledOnClick() {
81
+ if (this.disabled && this.el.onclick) {
82
+ this.onClickFunc = this.el.onclick;
83
+ this.el.onclick = null;
84
+ }
85
+ else if (!this.disabled && this.onClickFunc) {
86
+ this.el.onclick = this.onClickFunc;
87
+ }
88
+ }
89
+ componentWillLoad() {
90
+ this.syncAriaSelected();
91
+ this.syncAriaDisabled();
92
+ this.updateDisabledOnClick();
93
+ }
94
+ render() {
95
+ return (h(Host, { role: "option", tabindex: this.focused ? 0 : -1, class: `${this.subinfo ? "hassubinfo" : ""} ${this.isMultiChild ? "multi-option" : ""}` },
96
+ h("div", { class: `option-wrapper ${this.isMultiChild ? "checkbox" : ""}` },
97
+ h("slot", null)),
98
+ h("div", { class: "subinfo" }, this.subinfo)));
99
+ }
100
+ static get is() { return "wm-option"; }
101
+ static get encapsulation() { return "shadow"; }
102
+ static get originalStyleUrls() { return {
103
+ "$": ["wm-option.scss"]
104
+ }; }
105
+ static get styleUrls() { return {
106
+ "$": ["wm-option.css"]
107
+ }; }
108
+ static get properties() { return {
109
+ "value": {
110
+ "type": "string",
111
+ "mutable": false,
112
+ "complexType": {
113
+ "original": "string | null",
114
+ "resolved": "null | string | undefined",
115
+ "references": {}
116
+ },
117
+ "required": false,
118
+ "optional": true,
119
+ "docs": {
120
+ "tags": [],
121
+ "text": ""
122
+ },
123
+ "attribute": "value",
124
+ "reflect": false
125
+ },
126
+ "subinfo": {
127
+ "type": "string",
128
+ "mutable": true,
129
+ "complexType": {
130
+ "original": "string",
131
+ "resolved": "string | undefined",
132
+ "references": {}
133
+ },
134
+ "required": false,
135
+ "optional": true,
136
+ "docs": {
137
+ "tags": [],
138
+ "text": ""
139
+ },
140
+ "attribute": "subinfo",
141
+ "reflect": false,
142
+ "defaultValue": "undefined"
143
+ },
144
+ "disabled": {
145
+ "type": "boolean",
146
+ "mutable": false,
147
+ "complexType": {
148
+ "original": "boolean",
149
+ "resolved": "boolean",
150
+ "references": {}
151
+ },
152
+ "required": false,
153
+ "optional": false,
154
+ "docs": {
155
+ "tags": [],
156
+ "text": ""
157
+ },
158
+ "attribute": "disabled",
159
+ "reflect": true,
160
+ "defaultValue": "false"
161
+ },
162
+ "selected": {
163
+ "type": "boolean",
164
+ "mutable": false,
165
+ "complexType": {
166
+ "original": "boolean",
167
+ "resolved": "boolean",
168
+ "references": {}
169
+ },
170
+ "required": false,
171
+ "optional": false,
172
+ "docs": {
173
+ "tags": [],
174
+ "text": ""
175
+ },
176
+ "attribute": "selected",
177
+ "reflect": true,
178
+ "defaultValue": "false"
179
+ },
180
+ "focused": {
181
+ "type": "boolean",
182
+ "mutable": false,
183
+ "complexType": {
184
+ "original": "boolean",
185
+ "resolved": "boolean",
186
+ "references": {}
187
+ },
188
+ "required": false,
189
+ "optional": false,
190
+ "docs": {
191
+ "tags": [],
192
+ "text": ""
193
+ },
194
+ "attribute": "focused",
195
+ "reflect": false,
196
+ "defaultValue": "false"
197
+ }
198
+ }; }
199
+ static get events() { return [{
200
+ "method": "wmOptionSelected",
201
+ "name": "wmOptionSelected",
202
+ "bubbles": true,
203
+ "cancelable": true,
204
+ "composed": true,
205
+ "docs": {
206
+ "tags": [],
207
+ "text": ""
208
+ },
209
+ "complexType": {
210
+ "original": "HTMLWmOptionElement",
211
+ "resolved": "HTMLWmOptionElement",
212
+ "references": {
213
+ "HTMLWmOptionElement": {
214
+ "location": "global"
215
+ }
216
+ }
217
+ }
218
+ }, {
219
+ "method": "wmKeyUpPressed",
220
+ "name": "wmKeyUpPressed",
221
+ "bubbles": true,
222
+ "cancelable": true,
223
+ "composed": true,
224
+ "docs": {
225
+ "tags": [],
226
+ "text": ""
227
+ },
228
+ "complexType": {
229
+ "original": "HTMLWmOptionElement",
230
+ "resolved": "HTMLWmOptionElement",
231
+ "references": {
232
+ "HTMLWmOptionElement": {
233
+ "location": "global"
234
+ }
235
+ }
236
+ }
237
+ }, {
238
+ "method": "wmKeyDownPressed",
239
+ "name": "wmKeyDownPressed",
240
+ "bubbles": true,
241
+ "cancelable": true,
242
+ "composed": true,
243
+ "docs": {
244
+ "tags": [],
245
+ "text": ""
246
+ },
247
+ "complexType": {
248
+ "original": "HTMLWmOptionElement",
249
+ "resolved": "HTMLWmOptionElement",
250
+ "references": {
251
+ "HTMLWmOptionElement": {
252
+ "location": "global"
253
+ }
254
+ }
255
+ }
256
+ }, {
257
+ "method": "wmEscKeyPressed",
258
+ "name": "wmEscKeyPressed",
259
+ "bubbles": true,
260
+ "cancelable": true,
261
+ "composed": true,
262
+ "docs": {
263
+ "tags": [],
264
+ "text": ""
265
+ },
266
+ "complexType": {
267
+ "original": "HTMLWmOptionElement",
268
+ "resolved": "HTMLWmOptionElement",
269
+ "references": {
270
+ "HTMLWmOptionElement": {
271
+ "location": "global"
272
+ }
273
+ }
274
+ }
275
+ }, {
276
+ "method": "wmHomeKeyPressed",
277
+ "name": "wmHomeKeyPressed",
278
+ "bubbles": true,
279
+ "cancelable": true,
280
+ "composed": true,
281
+ "docs": {
282
+ "tags": [],
283
+ "text": ""
284
+ },
285
+ "complexType": {
286
+ "original": "HTMLWmOptionElement",
287
+ "resolved": "HTMLWmOptionElement",
288
+ "references": {
289
+ "HTMLWmOptionElement": {
290
+ "location": "global"
291
+ }
292
+ }
293
+ }
294
+ }, {
295
+ "method": "wmEndKeyPressed",
296
+ "name": "wmEndKeyPressed",
297
+ "bubbles": true,
298
+ "cancelable": true,
299
+ "composed": true,
300
+ "docs": {
301
+ "tags": [],
302
+ "text": ""
303
+ },
304
+ "complexType": {
305
+ "original": "HTMLWmOptionElement",
306
+ "resolved": "HTMLWmOptionElement",
307
+ "references": {
308
+ "HTMLWmOptionElement": {
309
+ "location": "global"
310
+ }
311
+ }
312
+ }
313
+ }, {
314
+ "method": "wmTabKeyPressed",
315
+ "name": "wmTabKeyPressed",
316
+ "bubbles": true,
317
+ "cancelable": true,
318
+ "composed": true,
319
+ "docs": {
320
+ "tags": [],
321
+ "text": ""
322
+ },
323
+ "complexType": {
324
+ "original": "HTMLWmOptionElement",
325
+ "resolved": "HTMLWmOptionElement",
326
+ "references": {
327
+ "HTMLWmOptionElement": {
328
+ "location": "global"
329
+ }
330
+ }
331
+ }
332
+ }, {
333
+ "method": "wmEnterKeyPressed",
334
+ "name": "wmEnterKeyPressed",
335
+ "bubbles": true,
336
+ "cancelable": true,
337
+ "composed": true,
338
+ "docs": {
339
+ "tags": [],
340
+ "text": ""
341
+ },
342
+ "complexType": {
343
+ "original": "HTMLWmOptionElement",
344
+ "resolved": "HTMLWmOptionElement",
345
+ "references": {
346
+ "HTMLWmOptionElement": {
347
+ "location": "global"
348
+ }
349
+ }
350
+ }
351
+ }, {
352
+ "method": "wmLetterPressed",
353
+ "name": "wmLetterPressed",
354
+ "bubbles": true,
355
+ "cancelable": true,
356
+ "composed": true,
357
+ "docs": {
358
+ "tags": [],
359
+ "text": ""
360
+ },
361
+ "complexType": {
362
+ "original": "string",
363
+ "resolved": "string",
364
+ "references": {}
365
+ }
366
+ }]; }
367
+ static get elementRef() { return "el"; }
368
+ static get watchers() { return [{
369
+ "propName": "selected",
370
+ "methodName": "syncAriaSelected"
371
+ }, {
372
+ "propName": "disabled",
373
+ "methodName": "syncAriaDisabled"
374
+ }, {
375
+ "propName": "focused",
376
+ "methodName": "focusHandler"
377
+ }, {
378
+ "propName": "disabled",
379
+ "methodName": "updateDisabledOnClick"
380
+ }]; }
381
+ static get listeners() { return [{
382
+ "name": "keydown",
383
+ "method": "handleKeydown",
384
+ "target": undefined,
385
+ "capture": false,
386
+ "passive": false
387
+ }, {
388
+ "name": "click",
389
+ "method": "handleSelection",
390
+ "target": undefined,
391
+ "capture": false,
392
+ "passive": false
393
+ }]; }
394
+ }
@@ -0,0 +1,217 @@
1
+ /* --------------------------------------
2
+ 1. Box-shadow
3
+ -------------------------------------- */
4
+ /* --------------------------------------
5
+ 2. Border-radius
6
+ -------------------------------------- */
7
+ /* --------------------------------------
8
+ 3. Transforms
9
+ -------------------------------------- */
10
+ /* --------------------------------------
11
+ 4. Button Focus
12
+ -------------------------------------- */
13
+ /* --------------------------------------
14
+ 5. Flex
15
+ -------------------------------------- */
16
+ /* --------------------------------------
17
+ 6. Button Hover
18
+ -------------------------------------- */
19
+ /* --------------------------------------
20
+ 7. Screen Reader Only
21
+ -------------------------------------- */
22
+ /* --------------------------------------
23
+ 8. Label styles
24
+ this mixin includes all the styles for the label
25
+ + flex rules on the parent container to switch between top and left position
26
+ + srOnly when label is hidden
27
+ Assumes the following markup:
28
+ div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
29
+ .wrapper is for the flex rules
30
+ .label-wrapper is to set the height of the label when positioned left so it's the same height as
31
+ the input. It can't be done directly on .label because of possible line wrapping.
32
+ When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
33
+ (they can't be aligned on the baseline because of possible description text and error message)
34
+ -------------------------------------- */
35
+ /********************************************************************************************/
36
+ /* DO NOT USE THESE DIRECTLY, ASSIGN THEM TO VARIABLES NAMED AFTER FUNCTIONALITY, SEE BELOW */
37
+ /********************************************************************************************/
38
+ /* USAGE */
39
+ /* BELOW IS BEFORE WE HAD THE COLOR PALETTE FROM UI */
40
+ /* TODO: replace with vars above whenever possible */
41
+ /* Buttons */
42
+ /* VIA */
43
+ nav .largescreen,
44
+ nav .smallscreen {
45
+ margin-bottom: 0.625rem;
46
+ display: -webkit-box;
47
+ display: -webkit-flex;
48
+ display: -ms-flexbox;
49
+ display: flex;
50
+ -webkit-box-align: center;
51
+ -webkit-align-items: center;
52
+ -ms-flex-align: center;
53
+ align-items: center;
54
+ -webkit-box-pack: flex-end;
55
+ -ms-flex-pack: flex-end;
56
+ -webkit-justify-content: flex-end;
57
+ justify-content: flex-end;
58
+ font-size: 0.875rem;
59
+ }
60
+ nav .largescreen .pageview,
61
+ nav .smallscreen .pageview {
62
+ font-size: 0.875rem;
63
+ margin: 0 0.625rem;
64
+ }
65
+ nav .largescreen .paginationbtn,
66
+ nav .smallscreen .paginationbtn {
67
+ position: relative;
68
+ -webkit-box-shadow: none;
69
+ -moz-box-shadow: none;
70
+ box-shadow: none;
71
+ -ms-transition: none;
72
+ -webkit-transition: none;
73
+ -moz-transition: none;
74
+ transition: none;
75
+ border: none;
76
+ color: #575195;
77
+ background-color: transparent;
78
+ margin: 0;
79
+ padding: 0;
80
+ height: 2.5rem;
81
+ width: 2.5rem;
82
+ font-family: inherit;
83
+ letter-spacing: 0.3px;
84
+ font-size: 0.875rem;
85
+ font-weight: 500;
86
+ cursor: pointer;
87
+ text-transform: none;
88
+ }
89
+ nav .largescreen .paginationbtn svg *,
90
+ nav .smallscreen .paginationbtn svg * {
91
+ fill: #565397;
92
+ }
93
+ nav .largescreen .paginationbtn:hover:not([aria-current=page]):not([disabled]),
94
+ nav .smallscreen .paginationbtn:hover:not([aria-current=page]):not([disabled]) {
95
+ text-decoration: underline;
96
+ }
97
+ nav .largescreen .paginationbtn:focus,
98
+ nav .smallscreen .paginationbtn:focus {
99
+ outline: none;
100
+ }
101
+ nav .largescreen .paginationbtn::-moz-focus-inner,
102
+ nav .smallscreen .paginationbtn::-moz-focus-inner {
103
+ border: 0;
104
+ outline: none;
105
+ }
106
+ nav .largescreen .paginationbtn[disabled],
107
+ nav .smallscreen .paginationbtn[disabled] {
108
+ color: #9f9f9f;
109
+ pointer-events: none;
110
+ }
111
+ nav .largescreen .paginationbtn[disabled] svg *,
112
+ nav .smallscreen .paginationbtn[disabled] svg * {
113
+ fill: #9f9f9f;
114
+ }
115
+ nav .largescreen .previousbtn,
116
+ nav .smallscreen .previousbtn {
117
+ margin-right: 0.625rem;
118
+ width: auto !important;
119
+ }
120
+ nav .largescreen .nextbtn,
121
+ nav .smallscreen .nextbtn {
122
+ margin-left: 0.625rem;
123
+ margin-right: 0;
124
+ width: auto !important;
125
+ }
126
+ nav .largescreen .previousbtn,
127
+ nav .largescreen .nextbtn,
128
+ nav .smallscreen .previousbtn,
129
+ nav .smallscreen .nextbtn {
130
+ -ms-transition: none;
131
+ -webkit-transition: none;
132
+ -moz-transition: none;
133
+ transition: none;
134
+ }
135
+ nav .largescreen .ellipsis,
136
+ nav .smallscreen .ellipsis {
137
+ display: inline-block;
138
+ width: 2.5rem;
139
+ text-align: center;
140
+ }
141
+ nav .largescreen .pagebtncontainer.user-is-tabbing :focus:not(.-disabled):not([aria-current=page]),
142
+ nav .smallscreen .pagebtncontainer.user-is-tabbing :focus:not(.-disabled):not([aria-current=page]) {
143
+ -webkit-box-shadow: none;
144
+ -moz-box-shadow: none;
145
+ box-shadow: none;
146
+ }
147
+ nav .largescreen .pagebtncontainer.user-is-tabbing :focus:not(.-disabled):not([aria-current=page]):before,
148
+ nav .smallscreen .pagebtncontainer.user-is-tabbing :focus:not(.-disabled):not([aria-current=page]):before {
149
+ position: absolute;
150
+ content: "";
151
+ height: auto;
152
+ width: 16px;
153
+ top: 0;
154
+ bottom: 0;
155
+ left: 12px;
156
+ right: 0;
157
+ background: linear-gradient(90deg, #3862e9 66%, transparent 0) repeat-x;
158
+ background-size: 6px 2px;
159
+ background-position: 0 2em;
160
+ border-radius: 0;
161
+ line-height: normal;
162
+ }
163
+ nav .largescreen .pagebtncontainer.user-is-tabbing :focus:not(.-disabled):not([aria-current=page]).previousbtn:focus:before,
164
+ nav .smallscreen .pagebtncontainer.user-is-tabbing :focus:not(.-disabled):not([aria-current=page]).previousbtn:focus:before {
165
+ left: 0 !important;
166
+ }
167
+ nav .largescreen .pagebtncontainer.user-is-tabbing :focus:not(.-disabled):not([aria-current=page]).nextbtn:focus:before,
168
+ nav .smallscreen .pagebtncontainer.user-is-tabbing :focus:not(.-disabled):not([aria-current=page]).nextbtn:focus:before {
169
+ left: 0 !important;
170
+ }
171
+ nav .largescreen .pagebtncontainer.user-is-tabbing [aria-current=page]:focus,
172
+ nav .smallscreen .pagebtncontainer.user-is-tabbing [aria-current=page]:focus {
173
+ -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;
174
+ -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;
175
+ 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;
176
+ }
177
+ nav .largescreen .pagebtncontainer.user-is-tabbing [aria-current=page]:focus::-moz-focus-inner,
178
+ nav .smallscreen .pagebtncontainer.user-is-tabbing [aria-current=page]:focus::-moz-focus-inner {
179
+ border: 0;
180
+ }
181
+
182
+ nav .largescreen .user-is-tabbing :focus:not(.-disabled):not([aria-current=page]).previousbtn:focus:before {
183
+ width: 56px !important;
184
+ }
185
+ nav .largescreen .user-is-tabbing :focus:not(.-disabled):not([aria-current=page]).nextbtn:focus:before {
186
+ width: 32px !important;
187
+ }
188
+ nav .largescreen .paginationbtn[aria-current=page] {
189
+ -webkit-border-radius: 50%;
190
+ -moz-border-radius: 50%;
191
+ -ms-border-radius: 50%;
192
+ border-radius: 50%;
193
+ -webkit-box-shadow: 0 2px 2px 0 rgba(87, 81, 149, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.2);
194
+ -moz-box-shadow: 0 2px 2px 0 rgba(87, 81, 149, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.2);
195
+ box-shadow: 0 2px 2px 0 rgba(87, 81, 149, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.2);
196
+ background-color: #575195;
197
+ color: #fff;
198
+ }
199
+ nav .largescreen .paginationbtn[aria-current=page]:hover {
200
+ -webkit-box-shadow: 0 4px 2px 0 rgba(87, 81, 149, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.2);
201
+ -moz-box-shadow: 0 4px 2px 0 rgba(87, 81, 149, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.2);
202
+ box-shadow: 0 4px 2px 0 rgba(87, 81, 149, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.2);
203
+ background: #4e4986;
204
+ }
205
+
206
+ .sr-only {
207
+ position: absolute !important;
208
+ width: 1px !important;
209
+ height: 1px !important;
210
+ padding: 0 !important;
211
+ border: 0 !important;
212
+ overflow: hidden !important;
213
+ clip: rect(0, 0, 0, 0) !important;
214
+ clip-path: inset(50%) !important;
215
+ white-space: nowrap !important;
216
+ margin: -1px !important;
217
+ }