@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
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* --------------------------------------
|
|
3
|
+
1. Box-shadow
|
|
4
|
+
-------------------------------------- */
|
|
5
|
+
/* --------------------------------------
|
|
6
|
+
2. Border-radius
|
|
7
|
+
-------------------------------------- */
|
|
8
|
+
/* --------------------------------------
|
|
9
|
+
3. Transforms
|
|
10
|
+
-------------------------------------- */
|
|
11
|
+
/* --------------------------------------
|
|
12
|
+
4. Button Focus
|
|
13
|
+
-------------------------------------- */
|
|
14
|
+
/* --------------------------------------
|
|
15
|
+
5. Flex
|
|
16
|
+
-------------------------------------- */
|
|
17
|
+
/* --------------------------------------
|
|
18
|
+
6. Button Hover
|
|
19
|
+
-------------------------------------- */
|
|
20
|
+
/* --------------------------------------
|
|
21
|
+
7. Screen Reader Only
|
|
22
|
+
-------------------------------------- */
|
|
23
|
+
/* --------------------------------------
|
|
24
|
+
8. Label styles
|
|
25
|
+
this mixin includes all the styles for the label
|
|
26
|
+
+ flex rules on the parent container to switch between top and left position
|
|
27
|
+
+ srOnly when label is hidden
|
|
28
|
+
Assumes the following markup:
|
|
29
|
+
div.wrapper[.label-left.invalid] > div.label-wrapper > label.label > span.required
|
|
30
|
+
.wrapper is for the flex rules
|
|
31
|
+
.label-wrapper is to set the height of the label when positioned left so it's the same height as
|
|
32
|
+
the input. It can't be done directly on .label because of possible line wrapping.
|
|
33
|
+
When the label is on top there's no line wrapping at all to ensure proper alignment of inlined elements
|
|
34
|
+
(they can't be aligned on the baseline because of possible description text and error message)
|
|
35
|
+
-------------------------------------- */
|
|
36
|
+
/********************************************************************************************/
|
|
37
|
+
/* DO NOT USE THESE DIRECTLY, ASSIGN THEM TO VARIABLES NAMED AFTER FUNCTIONALITY, SEE BELOW */
|
|
38
|
+
/********************************************************************************************/
|
|
39
|
+
/* USAGE */
|
|
40
|
+
/* BELOW IS BEFORE WE HAD THE COLOR PALETTE FROM UI */
|
|
41
|
+
/* TODO: replace with vars above whenever possible */
|
|
42
|
+
/* Buttons */
|
|
43
|
+
/* VIA */
|
|
44
|
+
:host,
|
|
45
|
+
wm-datepicker {
|
|
46
|
+
font-family: inherit;
|
|
47
|
+
}
|
|
48
|
+
:host *,
|
|
49
|
+
wm-datepicker * {
|
|
50
|
+
box-sizing: border-box;
|
|
51
|
+
}
|
|
52
|
+
:host .wrapper,
|
|
53
|
+
wm-datepicker .wrapper {
|
|
54
|
+
display: -webkit-box;
|
|
55
|
+
display: -webkit-flex;
|
|
56
|
+
display: -ms-flexbox;
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
font-size: 0.875rem;
|
|
60
|
+
}
|
|
61
|
+
:host .wrapper .label,
|
|
62
|
+
wm-datepicker .wrapper .label {
|
|
63
|
+
display: block;
|
|
64
|
+
line-height: normal;
|
|
65
|
+
font-weight: 600;
|
|
66
|
+
white-space: nowrap;
|
|
67
|
+
margin-bottom: 0.25rem;
|
|
68
|
+
}
|
|
69
|
+
:host .wrapper .label .required,
|
|
70
|
+
wm-datepicker .wrapper .label .required {
|
|
71
|
+
color: #c0392b;
|
|
72
|
+
}
|
|
73
|
+
:host .wrapper.label-left,
|
|
74
|
+
wm-datepicker .wrapper.label-left {
|
|
75
|
+
flex-direction: row;
|
|
76
|
+
}
|
|
77
|
+
:host .wrapper.label-left .label-wrapper,
|
|
78
|
+
wm-datepicker .wrapper.label-left .label-wrapper {
|
|
79
|
+
line-height: 2.5rem;
|
|
80
|
+
}
|
|
81
|
+
:host .wrapper.label-left .label-wrapper .label,
|
|
82
|
+
wm-datepicker .wrapper.label-left .label-wrapper .label {
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
min-height: 2.5rem;
|
|
86
|
+
white-space: normal;
|
|
87
|
+
margin-bottom: 0;
|
|
88
|
+
margin-right: 0.75rem;
|
|
89
|
+
}
|
|
90
|
+
:host .wrapper.label-none label,
|
|
91
|
+
wm-datepicker .wrapper.label-none label {
|
|
92
|
+
position: absolute !important;
|
|
93
|
+
width: 1px !important;
|
|
94
|
+
height: 1px !important;
|
|
95
|
+
padding: 0 !important;
|
|
96
|
+
border: 0 !important;
|
|
97
|
+
overflow: hidden !important;
|
|
98
|
+
clip: rect(0, 0, 0, 0) !important;
|
|
99
|
+
clip-path: inset(50%) !important;
|
|
100
|
+
white-space: nowrap !important;
|
|
101
|
+
margin: -1px !important;
|
|
102
|
+
}
|
|
103
|
+
:host .wrapper.invalid .label,
|
|
104
|
+
wm-datepicker .wrapper.invalid .label {
|
|
105
|
+
color: #c0392b;
|
|
106
|
+
}
|
|
107
|
+
:host .wrapper.invalid .label:after,
|
|
108
|
+
wm-datepicker .wrapper.invalid .label:after {
|
|
109
|
+
display: inline-block;
|
|
110
|
+
font: normal normal normal 24px/1 "Material Design Icons";
|
|
111
|
+
font-size: inherit;
|
|
112
|
+
text-rendering: auto;
|
|
113
|
+
line-height: inherit;
|
|
114
|
+
-webkit-font-smoothing: antialiased;
|
|
115
|
+
-moz-osx-font-smoothing: grayscale;
|
|
116
|
+
content: "";
|
|
117
|
+
margin-left: 0.3125rem;
|
|
118
|
+
}
|
|
119
|
+
[dir=RTL] :host .wrapper.invalid .label:after,
|
|
120
|
+
[dir=RTL] wm-datepicker .wrapper.invalid .label:after {
|
|
121
|
+
margin-left: 0;
|
|
122
|
+
margin-right: 0.3125rem;
|
|
123
|
+
}
|
|
124
|
+
:host .wrapper.rtl.label-left .label,
|
|
125
|
+
wm-datepicker .wrapper.rtl.label-left .label {
|
|
126
|
+
margin-right: 0;
|
|
127
|
+
margin-left: 0.75rem;
|
|
128
|
+
}
|
|
129
|
+
:host .wrapper,
|
|
130
|
+
wm-datepicker .wrapper {
|
|
131
|
+
position: relative;
|
|
132
|
+
}
|
|
133
|
+
:host .wrapper .required,
|
|
134
|
+
wm-datepicker .wrapper .required {
|
|
135
|
+
color: #c4431c;
|
|
136
|
+
}
|
|
137
|
+
:host .wrapper .inner-wrapper,
|
|
138
|
+
wm-datepicker .wrapper .inner-wrapper {
|
|
139
|
+
display: -webkit-box;
|
|
140
|
+
display: -webkit-flex;
|
|
141
|
+
display: -ms-flexbox;
|
|
142
|
+
display: flex;
|
|
143
|
+
align-items: center;
|
|
144
|
+
height: 2.5rem;
|
|
145
|
+
border: 1px solid;
|
|
146
|
+
border-color: rgba(35, 35, 35, 0.6);
|
|
147
|
+
-webkit-border-radius: 3px;
|
|
148
|
+
-moz-border-radius: 3px;
|
|
149
|
+
-ms-border-radius: 3px;
|
|
150
|
+
border-radius: 3px;
|
|
151
|
+
max-width: 236px;
|
|
152
|
+
/* input is 200px or smaller, button is 36px */
|
|
153
|
+
justify-content: space-between;
|
|
154
|
+
position: relative;
|
|
155
|
+
}
|
|
156
|
+
:host .wrapper .inner-wrapper .date-input,
|
|
157
|
+
wm-datepicker .wrapper .inner-wrapper .date-input {
|
|
158
|
+
-moz-border-top-left-radius: 3px;
|
|
159
|
+
-webkit-border-top-left-radius: 3px;
|
|
160
|
+
border-top-left-radius: 3px;
|
|
161
|
+
-moz-border-bottom-left-radius: 3px;
|
|
162
|
+
-webkit-border-bottom-left-radius: 3px;
|
|
163
|
+
border-bottom-left-radius: 3px;
|
|
164
|
+
border: none;
|
|
165
|
+
font-size: 0.875rem;
|
|
166
|
+
padding: 0.625rem 0.9375rem 0.5rem;
|
|
167
|
+
min-width: 0;
|
|
168
|
+
height: 100%;
|
|
169
|
+
flex: 1;
|
|
170
|
+
margin: 0;
|
|
171
|
+
}
|
|
172
|
+
:host .wrapper .inner-wrapper .date-input:disabled,
|
|
173
|
+
wm-datepicker .wrapper .inner-wrapper .date-input:disabled {
|
|
174
|
+
background-color: #f0f0f0;
|
|
175
|
+
color: #737373;
|
|
176
|
+
}
|
|
177
|
+
:host .wrapper .inner-wrapper .date-input:focus,
|
|
178
|
+
wm-datepicker .wrapper .inner-wrapper .date-input:focus {
|
|
179
|
+
outline: none;
|
|
180
|
+
}
|
|
181
|
+
:host .wrapper.invalid .inner-wrapper,
|
|
182
|
+
wm-datepicker .wrapper.invalid .inner-wrapper {
|
|
183
|
+
-webkit-box-shadow: 0 0 0 1px #c0392b;
|
|
184
|
+
-moz-box-shadow: 0 0 0 1px #c0392b;
|
|
185
|
+
box-shadow: 0 0 0 1px #c0392b;
|
|
186
|
+
border-color: #c0392b;
|
|
187
|
+
}
|
|
188
|
+
:host .wrapper.invalid .error,
|
|
189
|
+
wm-datepicker .wrapper.invalid .error {
|
|
190
|
+
margin-top: 4px;
|
|
191
|
+
margin-bottom: 4px;
|
|
192
|
+
display: block;
|
|
193
|
+
top: 100%;
|
|
194
|
+
left: 0;
|
|
195
|
+
font-style: italic;
|
|
196
|
+
font-size: 0.875rem;
|
|
197
|
+
color: #c0392b;
|
|
198
|
+
}
|
|
199
|
+
:host .wrapper.focus .inner-wrapper,
|
|
200
|
+
wm-datepicker .wrapper.focus .inner-wrapper {
|
|
201
|
+
-webkit-box-shadow: 0 0 0 1px #20cbd4;
|
|
202
|
+
-moz-box-shadow: 0 0 0 1px #20cbd4;
|
|
203
|
+
box-shadow: 0 0 0 1px #20cbd4;
|
|
204
|
+
outline: none;
|
|
205
|
+
border-color: #20cbd4;
|
|
206
|
+
}
|
|
207
|
+
:host .user-is-tabbing .toggle:focus:not(:active),
|
|
208
|
+
wm-datepicker .user-is-tabbing .toggle:focus:not(:active) {
|
|
209
|
+
border: none;
|
|
210
|
+
z-index: 11;
|
|
211
|
+
}
|
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
import { h, Component, Host, Element, Prop, Listen, Watch, State } from "@stencil/core";
|
|
2
|
+
import { generateId, checkForFocusableElInShadow, intl, isRelatedTarget } from "../../global/functions";
|
|
3
|
+
export class DatePicker {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.value = "";
|
|
6
|
+
this.disabled = false;
|
|
7
|
+
this.dateFormat = "US";
|
|
8
|
+
this.errorMessage = "";
|
|
9
|
+
this.labelPosition = "top";
|
|
10
|
+
this.label = "";
|
|
11
|
+
this.requiredField = false;
|
|
12
|
+
this.displayError = "";
|
|
13
|
+
// 1, 2, or 4 digits, separator, 1 or 2 digits, separator, then 1 or 2 or 4 digits
|
|
14
|
+
this.parsableEntry = /^(\d{1}|\d{2}|\d{4})[\-\.\/]\d{1,2}[\-\.\/](\d{1}|\d{2}|\d{4})$/;
|
|
15
|
+
this.isoEntry = /^\d\d\d\d[-]\d\d[-]\d\d$/;
|
|
16
|
+
this.eightDigitsEntry = /^\d{8}$/;
|
|
17
|
+
this.dateFormats = {
|
|
18
|
+
US: intl.formatMessage({
|
|
19
|
+
id: "date.formatUS",
|
|
20
|
+
defaultMessage: "mm/dd/yyyy",
|
|
21
|
+
}),
|
|
22
|
+
INT: intl.formatMessage({
|
|
23
|
+
id: "date.formatINT",
|
|
24
|
+
defaultMessage: "dd/mm/yyyy",
|
|
25
|
+
}),
|
|
26
|
+
ISO: intl.formatMessage({
|
|
27
|
+
id: "date.formatISO",
|
|
28
|
+
defaultMessage: "yyyy/mm/dd",
|
|
29
|
+
}),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
handleTabbingOn() {
|
|
33
|
+
this.dpWrapper && this.dpWrapper.classList.add("user-is-tabbing");
|
|
34
|
+
}
|
|
35
|
+
handleTabbingOff() {
|
|
36
|
+
this.dpWrapper && this.dpWrapper.classList.remove("user-is-tabbing");
|
|
37
|
+
}
|
|
38
|
+
handleError() {
|
|
39
|
+
if (this.errorMessage) {
|
|
40
|
+
this.generateError();
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
this.clearError();
|
|
44
|
+
this.processInput();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
handleValue() {
|
|
48
|
+
this.inputEl.value = this.reformatDate(this.dateFormat, this.value);
|
|
49
|
+
if (this.isValidDate(this.value)) {
|
|
50
|
+
this.lastValidValue = this.value;
|
|
51
|
+
}
|
|
52
|
+
this.processInput();
|
|
53
|
+
}
|
|
54
|
+
handleBlur(ev) {
|
|
55
|
+
// do not validate if clicking to an element that should prevent validation (e.g. close button on modal)
|
|
56
|
+
const shouldPreventValidation = this.preventValidation && isRelatedTarget(ev, this.preventValidation);
|
|
57
|
+
if (!shouldPreventValidation) {
|
|
58
|
+
this.processInput();
|
|
59
|
+
}
|
|
60
|
+
this.dpWrapper.classList.remove("focus");
|
|
61
|
+
}
|
|
62
|
+
generateBlur() {
|
|
63
|
+
this.el.tabIndex = 0;
|
|
64
|
+
this.el.focus();
|
|
65
|
+
this.el.blur();
|
|
66
|
+
}
|
|
67
|
+
generateBlurAndFocusButton() {
|
|
68
|
+
this.generateBlur();
|
|
69
|
+
}
|
|
70
|
+
getActiveElement() {
|
|
71
|
+
return checkForFocusableElInShadow(document.activeElement);
|
|
72
|
+
}
|
|
73
|
+
/* End blur stuff. Back to our normal programming :) */
|
|
74
|
+
handleCellTriggered(ev) {
|
|
75
|
+
let dateElement = ev.detail;
|
|
76
|
+
let isoDate = dateElement.getAttribute("data-year") +
|
|
77
|
+
"-" +
|
|
78
|
+
dateElement.getAttribute("data-month") +
|
|
79
|
+
"-" +
|
|
80
|
+
dateElement.textContent;
|
|
81
|
+
this.inputEl.value = this.reformatDate(this.dateFormat, isoDate);
|
|
82
|
+
this.processInput();
|
|
83
|
+
// Create event to trigger onInput function on host element, to get the updated value
|
|
84
|
+
// Because there are more ways to input than just typing, we are firing this event upon cellTriggered
|
|
85
|
+
let event = document.createEvent("Event");
|
|
86
|
+
event.initEvent("input", true, true);
|
|
87
|
+
this.el.dispatchEvent(event);
|
|
88
|
+
}
|
|
89
|
+
focusHandler() {
|
|
90
|
+
this.dpWrapper.classList.add("focus");
|
|
91
|
+
}
|
|
92
|
+
processInput() {
|
|
93
|
+
let isoDate = this.inputEl.value;
|
|
94
|
+
//If input is 8 digits, add slashes as a courtesy and process anyway
|
|
95
|
+
if (this.eightDigitsEntry.test(this.inputEl.value)) {
|
|
96
|
+
this.inputEl.value = this.addSlashes(this.inputEl.value);
|
|
97
|
+
}
|
|
98
|
+
// if we don't have 2 separators we can't reformat so we'll return what was passed in
|
|
99
|
+
if (this.parsableEntry.test(this.inputEl.value)) {
|
|
100
|
+
//ISO format for submission
|
|
101
|
+
isoDate = this.reformatDate("ISO", this.inputEl.value);
|
|
102
|
+
//User-specific format for display
|
|
103
|
+
this.inputEl.value = this.reformatDate(this.dateFormat, isoDate);
|
|
104
|
+
if (this.isValidDate(isoDate)) {
|
|
105
|
+
//If there's no errorMessage on state, all errors can be cleared. If there IS an error message, it will clear any internal validation errors by overriding them.
|
|
106
|
+
if (this.errorMessage) {
|
|
107
|
+
this.generateError();
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
this.clearError();
|
|
111
|
+
}
|
|
112
|
+
//Update prop passed into calendar to valid date
|
|
113
|
+
this.lastValidValue = isoDate;
|
|
114
|
+
//Prevents error from appearing if input field is empty
|
|
115
|
+
}
|
|
116
|
+
else if (this.inputEl.value.length) {
|
|
117
|
+
this.generateError();
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
else if (this.inputEl.value.length || this.requiredField || this.errorMessage) {
|
|
121
|
+
this.generateError();
|
|
122
|
+
}
|
|
123
|
+
else if (!this.inputEl.value.length && !this.requiredField) {
|
|
124
|
+
this.clearError();
|
|
125
|
+
}
|
|
126
|
+
// value is set to the reformated date or whatever the user passed
|
|
127
|
+
this.value = isoDate;
|
|
128
|
+
}
|
|
129
|
+
// this function reformats date strings to/from the storage format ONLY. US -> INT and vice versa is not supported.
|
|
130
|
+
reformatDate(toFormat, date) {
|
|
131
|
+
if (!date) {
|
|
132
|
+
return "";
|
|
133
|
+
}
|
|
134
|
+
else if (!this.parsableEntry.test(date)) {
|
|
135
|
+
return date;
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
let dateArr = date.replace(/[\-\.]/gi, "/").split("/");
|
|
139
|
+
switch (toFormat) {
|
|
140
|
+
case "US":
|
|
141
|
+
case this.dateFormats["US"]:
|
|
142
|
+
return dateArr[1].padStart(2, "0") + "/" + dateArr[2].padStart(2, "0") + "/" + dateArr[0].padStart(4, "20");
|
|
143
|
+
case "INT":
|
|
144
|
+
case this.dateFormats["INT"]:
|
|
145
|
+
return dateArr[2].padStart(2, "0") + "/" + dateArr[1].padStart(2, "0") + "/" + dateArr[0].padStart(4, "20");
|
|
146
|
+
case "ISO":
|
|
147
|
+
case this.dateFormats["ISO"]:
|
|
148
|
+
if (this.dateFormat === "US" || this.dateFormat === this.dateFormats["US"]) {
|
|
149
|
+
return dateArr[2].padStart(4, "20") + "-" + dateArr[0].padStart(2, "0") + "-" + dateArr[1].padStart(2, "0");
|
|
150
|
+
}
|
|
151
|
+
else if (this.dateFormat === "INT" || this.dateFormat === this.dateFormats["INT"]) {
|
|
152
|
+
return dateArr[2].padStart(4, "20") + "-" + dateArr[1].padStart(2, "0") + "-" + dateArr[0].padStart(2, "0");
|
|
153
|
+
}
|
|
154
|
+
else if (this.dateFormat === "ISO" || this.dateFormat === this.dateFormats["ISO"]) {
|
|
155
|
+
return dateArr[0].padStart(4, "20") + "-" + dateArr[1].padStart(2, "0") + "-" + dateArr[2].padStart(2, "0");
|
|
156
|
+
}
|
|
157
|
+
default:
|
|
158
|
+
return dateArr.join("/");
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
isValidDate(input) {
|
|
163
|
+
// if it's not ISO it's not valid
|
|
164
|
+
if (!input || !this.isoEntry.test(input)) {
|
|
165
|
+
return false;
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
// Parse the ISO date parts to integers
|
|
169
|
+
let parts = input.split("-");
|
|
170
|
+
let day = parseInt(parts[2], 10);
|
|
171
|
+
let month = parseInt(parts[1], 10);
|
|
172
|
+
let year = parseInt(parts[0], 10);
|
|
173
|
+
// Check the ranges of month and year
|
|
174
|
+
if (year < 1000 || year > 3000 || month == 0 || month > 12)
|
|
175
|
+
return false;
|
|
176
|
+
let monthLength = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
177
|
+
// Adjust for leap years
|
|
178
|
+
if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0))
|
|
179
|
+
monthLength[1] = 29;
|
|
180
|
+
// Check the range of the day
|
|
181
|
+
return day > 0 && day <= monthLength[month - 1];
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
generateError() {
|
|
185
|
+
const requiredDateErr = intl.formatMessage({
|
|
186
|
+
id: "date.requiredDateError",
|
|
187
|
+
defaultMessage: "A date is required.",
|
|
188
|
+
});
|
|
189
|
+
const validDateErr = intl.formatMessage({
|
|
190
|
+
id: "date.invalidDate",
|
|
191
|
+
defaultMessage: "Please enter a valid date in the format {dateFormat, select, us {mm/dd/yyyy} int {dd/mm/yyyy} iso {yyyy/mm/dd}}.",
|
|
192
|
+
}, { dateFormat: this.dateFormat.toLowerCase() });
|
|
193
|
+
if (this.errorMessage) {
|
|
194
|
+
this.displayError = this.errorMessage;
|
|
195
|
+
}
|
|
196
|
+
else if (this.inputEl.value.length) {
|
|
197
|
+
this.displayError = validDateErr;
|
|
198
|
+
}
|
|
199
|
+
else if (!this.inputEl.value.length && this.requiredField) {
|
|
200
|
+
this.displayError = requiredDateErr;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
clearError() {
|
|
204
|
+
this.displayError = "";
|
|
205
|
+
}
|
|
206
|
+
addSlashes(input) {
|
|
207
|
+
if (this.dateFormat === "ISO" || this.dateFormat === this.dateFormats["ISO"]) {
|
|
208
|
+
return input.substring(0, 4) + "/" + input.substring(4, 6) + "/" + input.substring(6);
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
return input.substring(0, 2) + "/" + input.substring(2, 4) + "/" + input.substring(4);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
componentWillLoad() {
|
|
215
|
+
if (this.label === "") {
|
|
216
|
+
throw new Error("You must include a label prop for the datepicker input (for accessibility reasons), even if the label position is none.");
|
|
217
|
+
}
|
|
218
|
+
if (this.errorMessage) {
|
|
219
|
+
this.generateError();
|
|
220
|
+
}
|
|
221
|
+
this.uid = this.el.id ? this.el.id : generateId();
|
|
222
|
+
}
|
|
223
|
+
componentDidLoad() {
|
|
224
|
+
// convert passed-in starting date from ISO to locale format, update displayed input to proper format
|
|
225
|
+
this.inputEl.value = this.reformatDate(this.dateFormat, this.value);
|
|
226
|
+
if (this.value && this.isValidDate(this.value)) {
|
|
227
|
+
// update value passed into calendar so that it opens on the specified date
|
|
228
|
+
this.lastValidValue = this.value;
|
|
229
|
+
}
|
|
230
|
+
this.processInput();
|
|
231
|
+
}
|
|
232
|
+
render() {
|
|
233
|
+
const dateFormat = intl.formatMessage({
|
|
234
|
+
id: "date.format",
|
|
235
|
+
defaultMessage: "{dateFormat, select, us {mm/dd/yyyy} int {dd/mm/yyyy} iso {yyyy/mm/dd}}",
|
|
236
|
+
}, { dateFormat: this.dateFormat.toLowerCase() });
|
|
237
|
+
return (h(Host, { id: this.uid, onBlur: () => {
|
|
238
|
+
this.el.removeAttribute("tabindex");
|
|
239
|
+
}, "aria-busy": "false", class: `${this.displayError ? "invalid" : ""}`, invalid: this.displayError ? "true" : null },
|
|
240
|
+
h("div", { ref: (d) => (this.dpWrapper = d), class: `wrapper label-${this.labelPosition} ${this.displayError ? "invalid" : ""}` },
|
|
241
|
+
h("div", { class: "label-wrapper" }, this.labelPosition !== "none" && (h("label", { id: `datepickerLabel-${this.uid}`, htmlFor: `date-input-${this.uid}`, class: "label", title: `${this.label} (${dateFormat})` },
|
|
242
|
+
this.label,
|
|
243
|
+
this.requiredField && (h("span", { "aria-hidden": "true", class: "required" }, "*"))))),
|
|
244
|
+
h("div", null,
|
|
245
|
+
h("div", { class: "inner-wrapper" },
|
|
246
|
+
h("input", { disabled: this.disabled, type: "text", id: `date-input-${this.uid}`, class: "date-input", name: "date", placeholder: dateFormat, onFocus: this.focusHandler.bind(this), onBlur: (ev) => this.handleBlur(ev), ref: (input) => (this.inputEl = input), "aria-describedby": `error-${this.uid}`, "aria-controls": `popup-${this.uid}`, "aria-label": this.label, required: this.requiredField }),
|
|
247
|
+
h("priv-datepicker", { disabled: this.disabled, date: this.lastValidValue ? new Date(this.lastValidValue) : new Date(), parentId: this.uid })),
|
|
248
|
+
h("div", { id: `error-${this.uid}`, class: "error", "aria-live": "assertive", "aria-atomic": "true" }, this.displayError)))));
|
|
249
|
+
}
|
|
250
|
+
static get is() { return "wm-datepicker"; }
|
|
251
|
+
static get encapsulation() { return "shadow"; }
|
|
252
|
+
static get originalStyleUrls() { return {
|
|
253
|
+
"$": ["wm-datepicker.scss"]
|
|
254
|
+
}; }
|
|
255
|
+
static get styleUrls() { return {
|
|
256
|
+
"$": ["wm-datepicker.css"]
|
|
257
|
+
}; }
|
|
258
|
+
static get properties() { return {
|
|
259
|
+
"value": {
|
|
260
|
+
"type": "string",
|
|
261
|
+
"mutable": true,
|
|
262
|
+
"complexType": {
|
|
263
|
+
"original": "string",
|
|
264
|
+
"resolved": "string | undefined",
|
|
265
|
+
"references": {}
|
|
266
|
+
},
|
|
267
|
+
"required": false,
|
|
268
|
+
"optional": true,
|
|
269
|
+
"docs": {
|
|
270
|
+
"tags": [],
|
|
271
|
+
"text": ""
|
|
272
|
+
},
|
|
273
|
+
"attribute": "value",
|
|
274
|
+
"reflect": false,
|
|
275
|
+
"defaultValue": "\"\""
|
|
276
|
+
},
|
|
277
|
+
"disabled": {
|
|
278
|
+
"type": "boolean",
|
|
279
|
+
"mutable": false,
|
|
280
|
+
"complexType": {
|
|
281
|
+
"original": "boolean",
|
|
282
|
+
"resolved": "boolean",
|
|
283
|
+
"references": {}
|
|
284
|
+
},
|
|
285
|
+
"required": false,
|
|
286
|
+
"optional": false,
|
|
287
|
+
"docs": {
|
|
288
|
+
"tags": [],
|
|
289
|
+
"text": ""
|
|
290
|
+
},
|
|
291
|
+
"attribute": "disabled",
|
|
292
|
+
"reflect": false,
|
|
293
|
+
"defaultValue": "false"
|
|
294
|
+
},
|
|
295
|
+
"dateFormat": {
|
|
296
|
+
"type": "string",
|
|
297
|
+
"mutable": true,
|
|
298
|
+
"complexType": {
|
|
299
|
+
"original": "string",
|
|
300
|
+
"resolved": "string",
|
|
301
|
+
"references": {}
|
|
302
|
+
},
|
|
303
|
+
"required": false,
|
|
304
|
+
"optional": false,
|
|
305
|
+
"docs": {
|
|
306
|
+
"tags": [],
|
|
307
|
+
"text": ""
|
|
308
|
+
},
|
|
309
|
+
"attribute": "date-format",
|
|
310
|
+
"reflect": false,
|
|
311
|
+
"defaultValue": "\"US\""
|
|
312
|
+
},
|
|
313
|
+
"errorMessage": {
|
|
314
|
+
"type": "string",
|
|
315
|
+
"mutable": false,
|
|
316
|
+
"complexType": {
|
|
317
|
+
"original": "string",
|
|
318
|
+
"resolved": "string",
|
|
319
|
+
"references": {}
|
|
320
|
+
},
|
|
321
|
+
"required": false,
|
|
322
|
+
"optional": false,
|
|
323
|
+
"docs": {
|
|
324
|
+
"tags": [],
|
|
325
|
+
"text": ""
|
|
326
|
+
},
|
|
327
|
+
"attribute": "error-message",
|
|
328
|
+
"reflect": true,
|
|
329
|
+
"defaultValue": "\"\""
|
|
330
|
+
},
|
|
331
|
+
"labelPosition": {
|
|
332
|
+
"type": "string",
|
|
333
|
+
"mutable": true,
|
|
334
|
+
"complexType": {
|
|
335
|
+
"original": "\"top\" | \"left\" | \"none\"",
|
|
336
|
+
"resolved": "\"left\" | \"none\" | \"top\"",
|
|
337
|
+
"references": {}
|
|
338
|
+
},
|
|
339
|
+
"required": false,
|
|
340
|
+
"optional": false,
|
|
341
|
+
"docs": {
|
|
342
|
+
"tags": [],
|
|
343
|
+
"text": ""
|
|
344
|
+
},
|
|
345
|
+
"attribute": "label-position",
|
|
346
|
+
"reflect": false,
|
|
347
|
+
"defaultValue": "\"top\""
|
|
348
|
+
},
|
|
349
|
+
"label": {
|
|
350
|
+
"type": "string",
|
|
351
|
+
"mutable": true,
|
|
352
|
+
"complexType": {
|
|
353
|
+
"original": "string",
|
|
354
|
+
"resolved": "string",
|
|
355
|
+
"references": {}
|
|
356
|
+
},
|
|
357
|
+
"required": false,
|
|
358
|
+
"optional": false,
|
|
359
|
+
"docs": {
|
|
360
|
+
"tags": [],
|
|
361
|
+
"text": ""
|
|
362
|
+
},
|
|
363
|
+
"attribute": "label",
|
|
364
|
+
"reflect": false,
|
|
365
|
+
"defaultValue": "\"\""
|
|
366
|
+
},
|
|
367
|
+
"requiredField": {
|
|
368
|
+
"type": "boolean",
|
|
369
|
+
"mutable": false,
|
|
370
|
+
"complexType": {
|
|
371
|
+
"original": "boolean",
|
|
372
|
+
"resolved": "boolean",
|
|
373
|
+
"references": {}
|
|
374
|
+
},
|
|
375
|
+
"required": false,
|
|
376
|
+
"optional": false,
|
|
377
|
+
"docs": {
|
|
378
|
+
"tags": [],
|
|
379
|
+
"text": ""
|
|
380
|
+
},
|
|
381
|
+
"attribute": "required-field",
|
|
382
|
+
"reflect": false,
|
|
383
|
+
"defaultValue": "false"
|
|
384
|
+
},
|
|
385
|
+
"preventValidation": {
|
|
386
|
+
"type": "string",
|
|
387
|
+
"mutable": false,
|
|
388
|
+
"complexType": {
|
|
389
|
+
"original": "string",
|
|
390
|
+
"resolved": "string | undefined",
|
|
391
|
+
"references": {}
|
|
392
|
+
},
|
|
393
|
+
"required": false,
|
|
394
|
+
"optional": true,
|
|
395
|
+
"docs": {
|
|
396
|
+
"tags": [],
|
|
397
|
+
"text": ""
|
|
398
|
+
},
|
|
399
|
+
"attribute": "prevent-validation",
|
|
400
|
+
"reflect": false
|
|
401
|
+
}
|
|
402
|
+
}; }
|
|
403
|
+
static get states() { return {
|
|
404
|
+
"displayError": {}
|
|
405
|
+
}; }
|
|
406
|
+
static get elementRef() { return "el"; }
|
|
407
|
+
static get watchers() { return [{
|
|
408
|
+
"propName": "errorMessage",
|
|
409
|
+
"methodName": "handleError"
|
|
410
|
+
}, {
|
|
411
|
+
"propName": "value",
|
|
412
|
+
"methodName": "handleValue"
|
|
413
|
+
}]; }
|
|
414
|
+
static get listeners() { return [{
|
|
415
|
+
"name": "keydown",
|
|
416
|
+
"method": "handleTabbingOn",
|
|
417
|
+
"target": undefined,
|
|
418
|
+
"capture": false,
|
|
419
|
+
"passive": false
|
|
420
|
+
}, {
|
|
421
|
+
"name": "click",
|
|
422
|
+
"method": "handleTabbingOff",
|
|
423
|
+
"target": undefined,
|
|
424
|
+
"capture": false,
|
|
425
|
+
"passive": false
|
|
426
|
+
}, {
|
|
427
|
+
"name": "popupClosed",
|
|
428
|
+
"method": "generateBlurAndFocusButton",
|
|
429
|
+
"target": undefined,
|
|
430
|
+
"capture": false,
|
|
431
|
+
"passive": false
|
|
432
|
+
}, {
|
|
433
|
+
"name": "cellTriggered",
|
|
434
|
+
"method": "handleCellTriggered",
|
|
435
|
+
"target": undefined,
|
|
436
|
+
"capture": false,
|
|
437
|
+
"passive": false
|
|
438
|
+
}]; }
|
|
439
|
+
}
|