@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.
- package/dist/{ripple/functions-316c1b23.js → cjs/functions-e3f5ae65.js} +188 -2391
- package/dist/cjs/global-1e540de6.js +38 -0
- package/dist/cjs/http-service-9e8c4dd5.js +57 -0
- package/dist/cjs/index-d930307d.js +1392 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/interfaces-30a74c1f.js +35 -0
- package/dist/cjs/loader.cjs.js +22 -0
- package/dist/cjs/priv-chart-popover.cjs.entry.js +89 -0
- package/dist/cjs/priv-datepicker.cjs.entry.js +672 -0
- package/dist/cjs/priv-navigator-button.cjs.entry.js +29 -0
- package/dist/cjs/priv-navigator-item.cjs.entry.js +34 -0
- package/dist/cjs/ripple.cjs.js +20 -0
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +318 -0
- package/dist/cjs/wm-button.cjs.entry.js +152 -0
- package/dist/cjs/wm-chart-slice.cjs.entry.js +22 -0
- package/dist/cjs/wm-chart.cjs.entry.js +508 -0
- package/dist/cjs/wm-datepicker.cjs.entry.js +257 -0
- package/dist/cjs/wm-input.cjs.entry.js +110 -0
- package/dist/cjs/wm-modal-footer.cjs.entry.js +43 -0
- package/dist/cjs/wm-modal-header.cjs.entry.js +45 -0
- package/dist/cjs/wm-modal.cjs.entry.js +149 -0
- package/dist/cjs/wm-navigator.cjs.entry.js +279 -0
- package/dist/cjs/wm-network-uploader.cjs.entry.js +431 -0
- package/dist/cjs/wm-option_2.cjs.entry.js +483 -0
- package/dist/cjs/wm-pagination.cjs.entry.js +176 -0
- package/dist/cjs/wm-search.cjs.entry.js +231 -0
- package/dist/cjs/wm-snackbar.cjs.entry.js +160 -0
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +316 -0
- package/dist/cjs/wm-tag-input.cjs.entry.js +538 -0
- package/dist/cjs/wm-timepicker.cjs.entry.js +386 -0
- package/dist/cjs/wm-toggletip.cjs.entry.js +128 -0
- package/dist/cjs/wm-uploader.cjs.entry.js +342 -0
- package/dist/cjs/wm-wrapper.cjs.entry.js +21 -0
- package/dist/collection/collection-manifest.json +131 -0
- package/dist/{ripple/ripple.css → collection/components/wm-action-menu/wm-action-menu.css} +80 -42
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +392 -0
- package/dist/collection/components/wm-button/wm-button.css +572 -0
- package/dist/collection/components/wm-button/wm-button.js +365 -0
- package/dist/collection/components/wm-chart/priv-chart-popover/priv-chart-popover.css +132 -0
- package/dist/collection/components/wm-chart/priv-chart-popover/priv-chart-popover.js +232 -0
- package/dist/collection/components/wm-chart/wm-chart-slice.js +64 -0
- package/dist/collection/components/wm-chart/wm-chart.css +337 -0
- package/dist/collection/components/wm-chart/wm-chart.js +710 -0
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.css +374 -0
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.js +1003 -0
- package/dist/collection/components/wm-datepicker/wm-datepicker.css +211 -0
- package/dist/collection/components/wm-datepicker/wm-datepicker.js +439 -0
- package/dist/collection/components/wm-input/wm-input.css +220 -0
- package/dist/collection/components/wm-input/wm-input.js +302 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.css +118 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +411 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.css +84 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.js +159 -0
- package/dist/collection/components/wm-modal/wm-modal-header.css +78 -0
- package/dist/collection/components/wm-modal/wm-modal-header.js +109 -0
- package/dist/collection/components/wm-modal/wm-modal.css +155 -0
- package/dist/collection/components/wm-modal/wm-modal.js +356 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +94 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +97 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +67 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +114 -0
- package/dist/collection/components/wm-navigator/wm-navigator.css +137 -0
- package/dist/collection/components/wm-navigator/wm-navigator.js +468 -0
- package/dist/collection/components/wm-option/wm-option.css +162 -0
- package/dist/collection/components/wm-option/wm-option.js +394 -0
- package/dist/collection/components/wm-pagination/wm-pagination.css +217 -0
- package/dist/collection/components/wm-pagination/wm-pagination.js +348 -0
- package/dist/collection/components/wm-search/wm-search.css +155 -0
- package/dist/collection/components/wm-search/wm-search.js +439 -0
- package/dist/collection/components/wm-select/wm-select.css +315 -0
- package/dist/collection/components/wm-select/wm-select.js +676 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +331 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +240 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +104 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +202 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +73 -0
- package/dist/{ripple/wm-tab-list.entry.js → collection/components/wm-tabs/wm-tab-list/wm-tab-list.js} +131 -17
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +57 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +104 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +431 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +754 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +370 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +567 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +350 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +217 -0
- package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.css +642 -0
- package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.js +753 -0
- package/dist/collection/components/wm-uploader/wm-uploader.css +666 -0
- package/dist/collection/components/wm-uploader/wm-uploader.js +673 -0
- package/dist/collection/components/wm-wrapper/wm-wrapper.js +27 -0
- package/dist/collection/dev/scripts.js +20 -0
- package/dist/collection/global/__mocks__/functions.js +5 -0
- package/dist/collection/global/functions.js +420 -0
- package/dist/{ripple/app-globals-b5693c90.js → collection/global/global.js} +3 -8
- package/dist/{ripple/interfaces-50753346.js → collection/global/interfaces.js} +4 -6
- package/dist/collection/global/services/__mocks__/http-service.js +130 -0
- package/dist/collection/global/services/http-service.js +50 -0
- package/dist/collection/lang/lang.js +5 -0
- package/dist/collection/lang/piglatin.js +93 -0
- package/dist/esm/functions-0deb7f8e.js +6117 -0
- package/dist/esm/global-d6b49e98.js +36 -0
- package/dist/{ripple → esm}/http-service-5d037e16.js +0 -0
- package/dist/esm/index-5a842e48.js +1363 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/interfaces-61c6305b.js +32 -0
- package/dist/esm/loader.js +18 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/{ripple → esm}/priv-chart-popover.entry.js +2 -2
- package/dist/{ripple → esm}/priv-datepicker.entry.js +3 -3
- package/dist/{ripple → esm}/priv-navigator-button.entry.js +1 -1
- package/dist/{ripple → esm}/priv-navigator-item.entry.js +1 -1
- package/dist/esm/ripple.js +18 -0
- package/dist/{ripple/wm-action-menu.entry.js → esm/wm-action-menu_2.entry.js} +114 -3
- package/dist/{ripple → esm}/wm-button.entry.js +3 -3
- package/dist/{ripple → esm}/wm-chart-slice.entry.js +1 -1
- package/dist/{ripple → esm}/wm-chart.entry.js +2 -2
- package/dist/{ripple → esm}/wm-datepicker.entry.js +27 -32
- package/dist/{ripple → esm}/wm-input.entry.js +2 -2
- package/dist/{ripple → esm}/wm-modal-footer.entry.js +2 -2
- package/dist/{ripple → esm}/wm-modal-header.entry.js +2 -2
- package/dist/{ripple → esm}/wm-modal.entry.js +2 -2
- package/dist/{ripple → esm}/wm-navigator.entry.js +3 -3
- package/dist/{ripple → esm}/wm-network-uploader.entry.js +2 -2
- package/dist/{ripple/wm-select.entry.js → esm/wm-option_2.entry.js} +119 -3
- package/dist/{ripple → esm}/wm-pagination.entry.js +2 -2
- package/dist/{ripple → esm}/wm-search.entry.js +2 -2
- package/dist/{ripple → esm}/wm-snackbar.entry.js +2 -2
- package/dist/esm/wm-tab-item_3.entry.js +310 -0
- package/dist/{ripple → esm}/wm-tag-input.entry.js +2 -2
- package/dist/{ripple → esm}/wm-timepicker.entry.js +2 -2
- package/dist/{ripple → esm}/wm-toggletip.entry.js +2 -2
- package/dist/{ripple → esm}/wm-uploader.entry.js +2 -2
- package/dist/{ripple → esm}/wm-wrapper.entry.js +1 -1
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +3 -0
- package/dist/loader/index.cjs.js +3 -0
- package/dist/loader/index.d.ts +13 -0
- package/dist/loader/index.es2017.js +3 -0
- package/dist/loader/index.js +4 -0
- package/dist/loader/package.json +10 -0
- package/dist/ripple/index.esm.js +0 -1
- package/dist/ripple/p-103f8cae.entry.js +1 -0
- package/dist/ripple/p-129d94fa.entry.js +1 -0
- package/dist/ripple/p-139fe143.entry.js +1 -0
- package/dist/ripple/p-16367805.entry.js +1 -0
- package/dist/ripple/p-1d334060.entry.js +1 -0
- package/dist/ripple/p-2562f330.entry.js +1 -0
- package/dist/ripple/p-278b26ef.entry.js +1 -0
- package/dist/ripple/p-2c21bb72.entry.js +1 -0
- package/dist/ripple/p-2f5fda71.entry.js +1 -0
- package/dist/ripple/p-3e6f04d5.entry.js +1 -0
- package/dist/ripple/p-7185de7f.entry.js +1 -0
- package/dist/ripple/p-770d0798.entry.js +1 -0
- package/dist/ripple/p-846b4c5f.entry.js +1 -0
- package/dist/ripple/p-888bec42.js +1 -0
- package/dist/ripple/p-90779d53.entry.js +1 -0
- package/dist/ripple/p-934543f2.js +1 -0
- package/dist/ripple/p-9a087fee.entry.js +1 -0
- package/dist/ripple/p-a6d6eae7.js +1 -0
- package/dist/ripple/p-a942ad10.entry.js +1 -0
- package/dist/ripple/p-bfb4652d.entry.js +1 -0
- package/dist/ripple/p-c0fe5201.entry.js +1 -0
- package/dist/ripple/p-c2e27acc.entry.js +1 -0
- package/dist/ripple/p-c2edda64.entry.js +1 -0
- package/dist/ripple/p-d1fdcbcf.entry.js +1 -0
- package/dist/ripple/p-d40b6afb.entry.js +1 -0
- package/dist/ripple/p-da73db1c.entry.js +1 -0
- package/dist/ripple/p-e3843249.js +1 -0
- package/dist/ripple/p-ea5cd8b8.js +16 -0
- package/dist/ripple/p-ed0f43f4.entry.js +1 -0
- package/dist/ripple/p-ffafd363.entry.js +1 -0
- package/dist/ripple/ripple.esm.js +1 -125
- package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +43 -0
- package/dist/types/components/wm-button/wm-button.d.ts +36 -0
- package/dist/types/components/wm-chart/priv-chart-popover/priv-chart-popover.d.ts +23 -0
- package/dist/types/components/wm-chart/wm-chart-slice.d.ts +8 -0
- package/dist/types/components/wm-chart/wm-chart.d.ts +77 -0
- package/dist/types/components/wm-datepicker/priv-datepicker/priv-datepicker.d.ts +75 -0
- package/dist/types/components/wm-datepicker/wm-datepicker.d.ts +39 -0
- package/dist/types/components/wm-input/wm-input.d.ts +30 -0
- package/dist/types/components/wm-menuitem/wm-menuitem.d.ts +30 -0
- package/dist/types/components/wm-modal/wm-modal-footer.d.ts +15 -0
- package/dist/types/components/wm-modal/wm-modal-header.d.ts +12 -0
- package/dist/types/components/wm-modal/wm-modal.d.ts +34 -0
- package/dist/types/components/wm-navigator/priv-navigator-button/priv-navigator-button.d.ts +10 -0
- package/dist/types/components/wm-navigator/priv-navigator-item/priv-navigator-item.d.ts +13 -0
- package/dist/types/components/wm-navigator/wm-navigator.d.ts +61 -0
- package/dist/types/components/wm-option/wm-option.d.ts +28 -0
- package/dist/types/components/wm-pagination/wm-pagination.d.ts +31 -0
- package/dist/types/components/wm-search/wm-search.d.ts +78 -0
- package/dist/types/components/wm-select/wm-select.d.ts +63 -0
- package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +32 -0
- package/dist/types/components/wm-tabs/wm-tab-item/wm-tab-item.d.ts +35 -0
- package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +50 -0
- package/dist/types/components/wm-tabs/wm-tab-panel/wm-tab-panel.d.ts +20 -0
- package/dist/types/components/wm-tag-input/{wm-tag-input.d.ts~ds312_tagInputMaxTags → wm-tag-input.d.ts} +1 -1
- package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +59 -0
- package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +25 -0
- package/dist/types/components/wm-uploader/wm-network-uploader/wm-network-uploader.d.ts +85 -0
- package/dist/types/components/wm-uploader/wm-uploader.d.ts +75 -0
- package/dist/types/components/wm-wrapper/wm-wrapper.d.ts +7 -0
- package/dist/types/{components.d.ts~ds312_tagInputMaxTags → components.d.ts} +0 -0
- package/dist/types/global/__mocks__/functions.d.ts +5 -0
- package/dist/types/global/global.d.ts +1 -0
- package/dist/types/global/interfaces.d.ts +33 -0
- package/dist/types/global/services/__mocks__/http-service.d.ts +6 -0
- package/dist/types/global/services/http-service.d.ts +4 -0
- package/dist/types/lang/lang.d.ts +5 -0
- package/dist/types/{stencil-public-runtime.d.ts~ds312_tagInputMaxTags → stencil-public-runtime.d.ts} +190 -182
- package/package.json +1 -1
- package/dist/ripple/css-shim-bbdf0cc6.js +0 -4
- package/dist/ripple/dom-1f98a75f.js +0 -73
- package/dist/ripple/index-20b65f86.js +0 -2938
- package/dist/ripple/shadow-css-67b66845.js +0 -389
- package/dist/ripple/wm-menuitem.entry.js +0 -114
- package/dist/ripple/wm-option.entry.js +0 -119
- package/dist/ripple/wm-tab-item.entry.js +0 -78
- package/dist/ripple/wm-tab-panel.entry.js +0 -38
package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
:host *,
|
|
44
|
+
priv-navigator-button * {
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
}
|
|
47
|
+
:host .navigator,
|
|
48
|
+
priv-navigator-button .navigator {
|
|
49
|
+
color: #575195;
|
|
50
|
+
padding: 0 1.25rem;
|
|
51
|
+
position: static !important;
|
|
52
|
+
height: 100%;
|
|
53
|
+
background: transparent;
|
|
54
|
+
border: none;
|
|
55
|
+
min-height: 3.75rem;
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
border-radius: 0;
|
|
58
|
+
top: 50%;
|
|
59
|
+
}
|
|
60
|
+
:host .navigator img,
|
|
61
|
+
priv-navigator-button .navigator img {
|
|
62
|
+
height: 2.25rem;
|
|
63
|
+
width: 2.25rem;
|
|
64
|
+
vertical-align: middle;
|
|
65
|
+
}
|
|
66
|
+
:host .navigator:hover,
|
|
67
|
+
priv-navigator-button .navigator:hover {
|
|
68
|
+
background: #dcdbde;
|
|
69
|
+
}
|
|
70
|
+
:host .navigator:active, :host .navigator:focus,
|
|
71
|
+
priv-navigator-button .navigator:active,
|
|
72
|
+
priv-navigator-button .navigator:focus {
|
|
73
|
+
outline: none;
|
|
74
|
+
}
|
|
75
|
+
:host .navigator.user-is-tabbing:focus,
|
|
76
|
+
priv-navigator-button .navigator.user-is-tabbing:focus {
|
|
77
|
+
-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;
|
|
78
|
+
-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;
|
|
79
|
+
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;
|
|
80
|
+
}
|
|
81
|
+
:host .navigator.user-is-tabbing:focus::-moz-focus-inner,
|
|
82
|
+
priv-navigator-button .navigator.user-is-tabbing:focus::-moz-focus-inner {
|
|
83
|
+
border: 0;
|
|
84
|
+
}
|
|
85
|
+
:host button:after,
|
|
86
|
+
priv-navigator-button button:after {
|
|
87
|
+
vertical-align: middle;
|
|
88
|
+
height: 2.25rem;
|
|
89
|
+
width: 2.25rem;
|
|
90
|
+
background-size: 36px;
|
|
91
|
+
display: inline-block;
|
|
92
|
+
background-image: url(https://cdn.watermarkinsights.com/images/icons/appswitchericon_purple.svg);
|
|
93
|
+
content: "";
|
|
94
|
+
}
|
package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Component, Element, h, Prop, Event } from "@stencil/core";
|
|
2
|
+
export class PrivNavigatorButton {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.expanded = false;
|
|
5
|
+
this.altText = "";
|
|
6
|
+
this.isTabbing = false;
|
|
7
|
+
}
|
|
8
|
+
handleClick() {
|
|
9
|
+
this.buttonActivated.emit();
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
const { handleClick, altText } = this;
|
|
13
|
+
const tabbingClass = this.isTabbing ? "user-is-tabbing" : "";
|
|
14
|
+
return (h("button", { "aria-expanded": this.expanded.toString(), class: `navigator ${tabbingClass}`, onClick: handleClick.bind(this), "aria-label": altText }));
|
|
15
|
+
}
|
|
16
|
+
static get is() { return "priv-navigator-button"; }
|
|
17
|
+
static get encapsulation() { return "shadow"; }
|
|
18
|
+
static get originalStyleUrls() { return {
|
|
19
|
+
"$": ["priv-navigator-button.scss"]
|
|
20
|
+
}; }
|
|
21
|
+
static get styleUrls() { return {
|
|
22
|
+
"$": ["priv-navigator-button.css"]
|
|
23
|
+
}; }
|
|
24
|
+
static get properties() { return {
|
|
25
|
+
"expanded": {
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"mutable": true,
|
|
28
|
+
"complexType": {
|
|
29
|
+
"original": "boolean",
|
|
30
|
+
"resolved": "boolean",
|
|
31
|
+
"references": {}
|
|
32
|
+
},
|
|
33
|
+
"required": false,
|
|
34
|
+
"optional": false,
|
|
35
|
+
"docs": {
|
|
36
|
+
"tags": [],
|
|
37
|
+
"text": ""
|
|
38
|
+
},
|
|
39
|
+
"attribute": "expanded",
|
|
40
|
+
"reflect": false,
|
|
41
|
+
"defaultValue": "false"
|
|
42
|
+
},
|
|
43
|
+
"altText": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"mutable": false,
|
|
46
|
+
"complexType": {
|
|
47
|
+
"original": "string",
|
|
48
|
+
"resolved": "string",
|
|
49
|
+
"references": {}
|
|
50
|
+
},
|
|
51
|
+
"required": false,
|
|
52
|
+
"optional": false,
|
|
53
|
+
"docs": {
|
|
54
|
+
"tags": [],
|
|
55
|
+
"text": ""
|
|
56
|
+
},
|
|
57
|
+
"attribute": "alt-text",
|
|
58
|
+
"reflect": false,
|
|
59
|
+
"defaultValue": "\"\""
|
|
60
|
+
},
|
|
61
|
+
"isTabbing": {
|
|
62
|
+
"type": "boolean",
|
|
63
|
+
"mutable": true,
|
|
64
|
+
"complexType": {
|
|
65
|
+
"original": "boolean",
|
|
66
|
+
"resolved": "boolean",
|
|
67
|
+
"references": {}
|
|
68
|
+
},
|
|
69
|
+
"required": false,
|
|
70
|
+
"optional": false,
|
|
71
|
+
"docs": {
|
|
72
|
+
"tags": [],
|
|
73
|
+
"text": ""
|
|
74
|
+
},
|
|
75
|
+
"attribute": "is-tabbing",
|
|
76
|
+
"reflect": false,
|
|
77
|
+
"defaultValue": "false"
|
|
78
|
+
}
|
|
79
|
+
}; }
|
|
80
|
+
static get events() { return [{
|
|
81
|
+
"method": "buttonActivated",
|
|
82
|
+
"name": "buttonActivated",
|
|
83
|
+
"bubbles": true,
|
|
84
|
+
"cancelable": true,
|
|
85
|
+
"composed": true,
|
|
86
|
+
"docs": {
|
|
87
|
+
"tags": [],
|
|
88
|
+
"text": ""
|
|
89
|
+
},
|
|
90
|
+
"complexType": {
|
|
91
|
+
"original": "any",
|
|
92
|
+
"resolved": "any",
|
|
93
|
+
"references": {}
|
|
94
|
+
}
|
|
95
|
+
}]; }
|
|
96
|
+
static get elementRef() { return "el"; }
|
|
97
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
:host,
|
|
44
|
+
priv-navigator-item {
|
|
45
|
+
list-style: none;
|
|
46
|
+
border-bottom: 1px solid #e0dde4;
|
|
47
|
+
width: 100%;
|
|
48
|
+
display: block;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
}
|
|
51
|
+
:host .navoption,
|
|
52
|
+
priv-navigator-item .navoption {
|
|
53
|
+
color: #404248;
|
|
54
|
+
padding: 0.9375rem 1.25rem;
|
|
55
|
+
background: #fff;
|
|
56
|
+
font-size: 0.875rem;
|
|
57
|
+
}
|
|
58
|
+
:host .navoption.selected, :host .navoption:hover,
|
|
59
|
+
priv-navigator-item .navoption.selected,
|
|
60
|
+
priv-navigator-item .navoption:hover {
|
|
61
|
+
background: #e5e5e5;
|
|
62
|
+
}
|
|
63
|
+
:host .navoption.focused:not(.selected),
|
|
64
|
+
priv-navigator-item .navoption.focused:not(.selected) {
|
|
65
|
+
background: #f4f4f4;
|
|
66
|
+
opacity: 1;
|
|
67
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { Component, Element, h, Prop, Event, Listen } from "@stencil/core";
|
|
2
|
+
export class PrivNavigatorItem {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.selected = false;
|
|
5
|
+
this.focused = false;
|
|
6
|
+
this.link = "";
|
|
7
|
+
}
|
|
8
|
+
handleKeyDown(ev) {
|
|
9
|
+
const key = ev.key;
|
|
10
|
+
const el = this.el;
|
|
11
|
+
if (key !== "Tab") {
|
|
12
|
+
ev.preventDefault();
|
|
13
|
+
}
|
|
14
|
+
this.keydownOnNavItem.emit({ navItem: el, key: key });
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
const selectedClass = this.selected ? "selected" : "";
|
|
18
|
+
const focusedClass = this.focused ? "focused" : "";
|
|
19
|
+
return (h("div", { class: `navoption ${selectedClass} ${focusedClass}` },
|
|
20
|
+
h("slot", null)));
|
|
21
|
+
}
|
|
22
|
+
static get is() { return "priv-navigator-item"; }
|
|
23
|
+
static get encapsulation() { return "shadow"; }
|
|
24
|
+
static get originalStyleUrls() { return {
|
|
25
|
+
"$": ["priv-navigator-item.scss"]
|
|
26
|
+
}; }
|
|
27
|
+
static get styleUrls() { return {
|
|
28
|
+
"$": ["priv-navigator-item.css"]
|
|
29
|
+
}; }
|
|
30
|
+
static get properties() { return {
|
|
31
|
+
"selected": {
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"mutable": true,
|
|
34
|
+
"complexType": {
|
|
35
|
+
"original": "boolean",
|
|
36
|
+
"resolved": "boolean",
|
|
37
|
+
"references": {}
|
|
38
|
+
},
|
|
39
|
+
"required": false,
|
|
40
|
+
"optional": false,
|
|
41
|
+
"docs": {
|
|
42
|
+
"tags": [],
|
|
43
|
+
"text": ""
|
|
44
|
+
},
|
|
45
|
+
"attribute": "selected",
|
|
46
|
+
"reflect": false,
|
|
47
|
+
"defaultValue": "false"
|
|
48
|
+
},
|
|
49
|
+
"focused": {
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"mutable": true,
|
|
52
|
+
"complexType": {
|
|
53
|
+
"original": "boolean",
|
|
54
|
+
"resolved": "boolean",
|
|
55
|
+
"references": {}
|
|
56
|
+
},
|
|
57
|
+
"required": false,
|
|
58
|
+
"optional": false,
|
|
59
|
+
"docs": {
|
|
60
|
+
"tags": [],
|
|
61
|
+
"text": ""
|
|
62
|
+
},
|
|
63
|
+
"attribute": "focused",
|
|
64
|
+
"reflect": false,
|
|
65
|
+
"defaultValue": "false"
|
|
66
|
+
},
|
|
67
|
+
"link": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"mutable": true,
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "string",
|
|
72
|
+
"resolved": "string",
|
|
73
|
+
"references": {}
|
|
74
|
+
},
|
|
75
|
+
"required": false,
|
|
76
|
+
"optional": false,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [],
|
|
79
|
+
"text": ""
|
|
80
|
+
},
|
|
81
|
+
"attribute": "link",
|
|
82
|
+
"reflect": false,
|
|
83
|
+
"defaultValue": "\"\""
|
|
84
|
+
}
|
|
85
|
+
}; }
|
|
86
|
+
static get events() { return [{
|
|
87
|
+
"method": "keydownOnNavItem",
|
|
88
|
+
"name": "keydownOnNavItem",
|
|
89
|
+
"bubbles": true,
|
|
90
|
+
"cancelable": true,
|
|
91
|
+
"composed": true,
|
|
92
|
+
"docs": {
|
|
93
|
+
"tags": [],
|
|
94
|
+
"text": ""
|
|
95
|
+
},
|
|
96
|
+
"complexType": {
|
|
97
|
+
"original": "{\n navItem: HTMLPrivNavigatorItemElement;\n key: string;\n }",
|
|
98
|
+
"resolved": "{ navItem: HTMLPrivNavigatorItemElement; key: string; }",
|
|
99
|
+
"references": {
|
|
100
|
+
"HTMLPrivNavigatorItemElement": {
|
|
101
|
+
"location": "global"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}]; }
|
|
106
|
+
static get elementRef() { return "el"; }
|
|
107
|
+
static get listeners() { return [{
|
|
108
|
+
"name": "keydown",
|
|
109
|
+
"method": "handleKeyDown",
|
|
110
|
+
"target": undefined,
|
|
111
|
+
"capture": false,
|
|
112
|
+
"passive": false
|
|
113
|
+
}]; }
|
|
114
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
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
|
+
:host,
|
|
44
|
+
wm-navigator {
|
|
45
|
+
height: 100%;
|
|
46
|
+
min-width: 0;
|
|
47
|
+
position: relative;
|
|
48
|
+
display: inline-block;
|
|
49
|
+
}
|
|
50
|
+
:host .wrapper,
|
|
51
|
+
wm-navigator .wrapper {
|
|
52
|
+
overflow: auto;
|
|
53
|
+
font-size: 1.125rem;
|
|
54
|
+
min-width: 13.125rem;
|
|
55
|
+
width: auto;
|
|
56
|
+
max-height: 80vh;
|
|
57
|
+
text-align: left;
|
|
58
|
+
position: absolute;
|
|
59
|
+
z-index: 50;
|
|
60
|
+
top: 100%;
|
|
61
|
+
right: 20px;
|
|
62
|
+
left: auto;
|
|
63
|
+
background: #fff;
|
|
64
|
+
letter-spacing: normal;
|
|
65
|
+
-webkit-box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.2);
|
|
66
|
+
-moz-box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.2);
|
|
67
|
+
box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.2);
|
|
68
|
+
-ms-transition: transform 0.25s ease;
|
|
69
|
+
-webkit-transition: transform 0.25s ease;
|
|
70
|
+
-moz-transition: transform 0.25s ease;
|
|
71
|
+
transition: transform 0.25s ease;
|
|
72
|
+
-ms-transform-origin: center top;
|
|
73
|
+
-webkit-transform-origin: center top;
|
|
74
|
+
-moz-transform-origin: center top;
|
|
75
|
+
transform-origin: center top;
|
|
76
|
+
-ms-transform: scale(1, 1);
|
|
77
|
+
-webkit-transform: scale(1, 1);
|
|
78
|
+
-moz-transform: scale(1, 1);
|
|
79
|
+
transform: scale(1, 1);
|
|
80
|
+
}
|
|
81
|
+
:host .wrapper .user,
|
|
82
|
+
wm-navigator .wrapper .user {
|
|
83
|
+
background: #f4f4f4;
|
|
84
|
+
padding: 0.625rem 1.25rem;
|
|
85
|
+
font-size: 0.875rem;
|
|
86
|
+
}
|
|
87
|
+
:host .wrapper .user p,
|
|
88
|
+
wm-navigator .wrapper .user p {
|
|
89
|
+
margin: 0;
|
|
90
|
+
}
|
|
91
|
+
:host .wrapper .user p:first-child,
|
|
92
|
+
wm-navigator .wrapper .user p:first-child {
|
|
93
|
+
font-weight: 700;
|
|
94
|
+
text-transform: capitalize;
|
|
95
|
+
}
|
|
96
|
+
:host .wrapper h2,
|
|
97
|
+
wm-navigator .wrapper h2 {
|
|
98
|
+
background: #2e1b46;
|
|
99
|
+
color: #fff;
|
|
100
|
+
font-weight: 700;
|
|
101
|
+
margin: 0;
|
|
102
|
+
padding: 0.625rem 1.25rem;
|
|
103
|
+
font-size: 0.875rem;
|
|
104
|
+
}
|
|
105
|
+
:host .wrapper [role=listbox],
|
|
106
|
+
wm-navigator .wrapper [role=listbox] {
|
|
107
|
+
list-style: none;
|
|
108
|
+
margin: 0;
|
|
109
|
+
padding-left: 0;
|
|
110
|
+
}
|
|
111
|
+
:host .wrapper.hide,
|
|
112
|
+
wm-navigator .wrapper.hide {
|
|
113
|
+
-ms-transform: scale(1, 0);
|
|
114
|
+
-webkit-transform: scale(1, 0);
|
|
115
|
+
-moz-transform: scale(1, 0);
|
|
116
|
+
transform: scale(1, 0);
|
|
117
|
+
}
|
|
118
|
+
:host .wrapper.right,
|
|
119
|
+
wm-navigator .wrapper.right {
|
|
120
|
+
right: auto;
|
|
121
|
+
left: 20px;
|
|
122
|
+
}
|
|
123
|
+
:host img,
|
|
124
|
+
wm-navigator img {
|
|
125
|
+
transform: scale(0.8);
|
|
126
|
+
transform-origin: left center;
|
|
127
|
+
display: block;
|
|
128
|
+
}
|
|
129
|
+
:host .logout,
|
|
130
|
+
wm-navigator .logout {
|
|
131
|
+
text-align: center;
|
|
132
|
+
text-transform: capitalize;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
priv-navigator-item:focus {
|
|
136
|
+
outline: none;
|
|
137
|
+
}
|