@govtechsg/sgds-web-component 3.11.0 → 3.12.0-rc.1
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/base/sidebar-element.d.ts +112 -0
- package/base/sidebar-element.js +281 -0
- package/base/sidebar-element.js.map +1 -0
- package/components/Checkbox/index.umd.min.js +6 -6
- package/components/Checkbox/index.umd.min.js.map +1 -1
- package/components/ComboBox/index.umd.min.js +240 -240
- package/components/ComboBox/index.umd.min.js.map +1 -1
- package/components/Datepicker/index.umd.min.js +22 -22
- package/components/Datepicker/index.umd.min.js.map +1 -1
- package/components/FileUpload/index.umd.min.js +8 -8
- package/components/FileUpload/index.umd.min.js.map +1 -1
- package/components/Input/index.umd.min.js +14 -14
- package/components/Input/index.umd.min.js.map +1 -1
- package/components/Input/sgds-input.d.ts +1 -0
- package/components/Input/sgds-input.js +1 -4
- package/components/Input/sgds-input.js.map +1 -1
- package/components/Modal/index.umd.min.js.map +1 -1
- package/components/Modal/sgds-modal.d.ts +1 -1
- package/components/Modal/sgds-modal.js +1 -1
- package/components/Modal/sgds-modal.js.map +1 -1
- package/components/QuantityToggle/index.umd.min.js +2 -2
- package/components/QuantityToggle/index.umd.min.js.map +1 -1
- package/components/Radio/index.umd.min.js +9 -9
- package/components/Radio/index.umd.min.js.map +1 -1
- package/components/Select/index.umd.min.js +11 -11
- package/components/Select/index.umd.min.js.map +1 -1
- package/components/Sidebar/index.d.ts +16 -0
- package/components/Sidebar/index.js +10 -0
- package/components/Sidebar/index.js.map +1 -0
- package/components/Sidebar/index.umd.min.js +2428 -0
- package/components/Sidebar/index.umd.min.js.map +1 -0
- package/components/Sidebar/sgds-sidebar-group.d.ts +51 -0
- package/components/Sidebar/sgds-sidebar-group.js +124 -0
- package/components/Sidebar/sgds-sidebar-group.js.map +1 -0
- package/components/Sidebar/sgds-sidebar-item.d.ts +25 -0
- package/components/Sidebar/sgds-sidebar-item.js +73 -0
- package/components/Sidebar/sgds-sidebar-item.js.map +1 -0
- package/components/Sidebar/sgds-sidebar-section.d.ts +55 -0
- package/components/Sidebar/sgds-sidebar-section.js +122 -0
- package/components/Sidebar/sgds-sidebar-section.js.map +1 -0
- package/components/Sidebar/sgds-sidebar.d.ts +85 -0
- package/components/Sidebar/sgds-sidebar.js +319 -0
- package/components/Sidebar/sgds-sidebar.js.map +1 -0
- package/components/Sidebar/sidebar-context.d.ts +51 -0
- package/components/Sidebar/sidebar-context.js +45 -0
- package/components/Sidebar/sidebar-context.js.map +1 -0
- package/components/Sidebar/sidebar-item.js +6 -0
- package/components/Sidebar/sidebar-item.js.map +1 -0
- package/components/Sidebar/sidebar-section.js +6 -0
- package/components/Sidebar/sidebar-section.js.map +1 -0
- package/components/Sidebar/sidebar.js +6 -0
- package/components/Sidebar/sidebar.js.map +1 -0
- package/components/Tab/index.umd.min.js.map +1 -1
- package/components/Tab/sgds-tab-group.d.ts +2 -2
- package/components/Tab/sgds-tab-group.js +2 -2
- package/components/Tab/sgds-tab-group.js.map +1 -1
- package/components/Textarea/index.umd.min.js +6 -6
- package/components/Textarea/index.umd.min.js.map +1 -1
- package/components/Textarea/sgds-textarea.d.ts +2 -0
- package/components/Textarea/sgds-textarea.js +14 -2
- package/components/Textarea/sgds-textarea.js.map +1 -1
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/components/index.js.map +1 -1
- package/components/index.umd.min.js +84 -49
- package/components/index.umd.min.js.map +1 -1
- package/css/fouc.css +6 -2
- package/css/utility.css +21 -1
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/index.umd.min.js +173 -62
- package/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/react/base/sidebar-element.cjs.js +286 -0
- package/react/base/sidebar-element.cjs.js.map +1 -0
- package/react/base/sidebar-element.js +282 -0
- package/react/base/sidebar-element.js.map +1 -0
- package/react/components/Input/sgds-input.cjs.js +1 -4
- package/react/components/Input/sgds-input.cjs.js.map +1 -1
- package/react/components/Input/sgds-input.js +1 -4
- package/react/components/Input/sgds-input.js.map +1 -1
- package/react/components/Modal/sgds-modal.cjs.js +1 -1
- package/react/components/Modal/sgds-modal.cjs.js.map +1 -1
- package/react/components/Modal/sgds-modal.js +1 -1
- package/react/components/Modal/sgds-modal.js.map +1 -1
- package/react/components/Sidebar/sgds-sidebar-group.cjs.js +130 -0
- package/react/components/Sidebar/sgds-sidebar-group.cjs.js.map +1 -0
- package/react/components/Sidebar/sgds-sidebar-group.js +125 -0
- package/react/components/Sidebar/sgds-sidebar-group.js.map +1 -0
- package/react/components/Sidebar/sgds-sidebar-item.cjs.js +79 -0
- package/react/components/Sidebar/sgds-sidebar-item.cjs.js.map +1 -0
- package/react/components/Sidebar/sgds-sidebar-item.js +74 -0
- package/react/components/Sidebar/sgds-sidebar-item.js.map +1 -0
- package/react/components/Sidebar/sgds-sidebar-section.cjs.js +128 -0
- package/react/components/Sidebar/sgds-sidebar-section.cjs.js.map +1 -0
- package/react/components/Sidebar/sgds-sidebar-section.js +123 -0
- package/react/components/Sidebar/sgds-sidebar-section.js.map +1 -0
- package/react/components/Sidebar/sgds-sidebar.cjs.js +325 -0
- package/react/components/Sidebar/sgds-sidebar.cjs.js.map +1 -0
- package/react/components/Sidebar/sgds-sidebar.js +320 -0
- package/react/components/Sidebar/sgds-sidebar.js.map +1 -0
- package/react/components/Sidebar/sidebar-context.cjs.js +54 -0
- package/react/components/Sidebar/sidebar-context.cjs.js.map +1 -0
- package/react/components/Sidebar/sidebar-context.js +46 -0
- package/react/components/Sidebar/sidebar-context.js.map +1 -0
- package/react/components/Sidebar/sidebar-item.cjs.js +11 -0
- package/react/components/Sidebar/sidebar-item.cjs.js.map +1 -0
- package/react/components/Sidebar/sidebar-item.js +7 -0
- package/react/components/Sidebar/sidebar-item.js.map +1 -0
- package/react/components/Sidebar/sidebar-section.cjs.js +11 -0
- package/react/components/Sidebar/sidebar-section.cjs.js.map +1 -0
- package/react/components/Sidebar/sidebar-section.js +7 -0
- package/react/components/Sidebar/sidebar-section.js.map +1 -0
- package/react/components/Sidebar/sidebar.cjs.js +11 -0
- package/react/components/Sidebar/sidebar.cjs.js.map +1 -0
- package/react/components/Sidebar/sidebar.js +7 -0
- package/react/components/Sidebar/sidebar.js.map +1 -0
- package/react/components/Tab/sgds-tab-group.cjs.js +2 -2
- package/react/components/Tab/sgds-tab-group.cjs.js.map +1 -1
- package/react/components/Tab/sgds-tab-group.js +2 -2
- package/react/components/Tab/sgds-tab-group.js.map +1 -1
- package/react/components/Textarea/sgds-textarea.cjs.js +14 -2
- package/react/components/Textarea/sgds-textarea.cjs.js.map +1 -1
- package/react/components/Textarea/sgds-textarea.js +14 -2
- package/react/components/Textarea/sgds-textarea.js.map +1 -1
- package/react/index.cjs.js +68 -60
- package/react/index.cjs.js.map +1 -1
- package/react/index.d.ts +6 -2
- package/react/index.js +6 -2
- package/react/index.js.map +1 -1
- package/react/sidebar/index.cjs.js +40 -0
- package/react/sidebar/index.cjs.js.map +1 -0
- package/react/sidebar/index.d.ts +2 -0
- package/react/sidebar/index.js +16 -0
- package/react/sidebar/index.js.map +1 -0
- package/react/sidebar-group/index.cjs.js +40 -0
- package/react/sidebar-group/index.cjs.js.map +1 -0
- package/react/sidebar-group/index.d.ts +2 -0
- package/react/sidebar-group/index.js +16 -0
- package/react/sidebar-group/index.js.map +1 -0
- package/react/sidebar-item/index.cjs.js +40 -0
- package/react/sidebar-item/index.cjs.js.map +1 -0
- package/react/sidebar-item/index.d.ts +2 -0
- package/react/sidebar-item/index.js +16 -0
- package/react/sidebar-item/index.js.map +1 -0
- package/react/sidebar-section/index.cjs.js +40 -0
- package/react/sidebar-section/index.cjs.js.map +1 -0
- package/react/sidebar-section/index.d.ts +2 -0
- package/react/sidebar-section/index.js +16 -0
- package/react/sidebar-section/index.js.map +1 -0
- package/react/utils/inputValidationController.cjs.js +2 -1
- package/react/utils/inputValidationController.cjs.js.map +1 -1
- package/react/utils/inputValidationController.js +2 -1
- package/react/utils/inputValidationController.js.map +1 -1
- package/react/utils/validatorMixin.cjs.js +24 -6
- package/react/utils/validatorMixin.cjs.js.map +1 -1
- package/react/utils/validatorMixin.js +24 -6
- package/react/utils/validatorMixin.js.map +1 -1
- package/utils/inputValidationController.js +2 -1
- package/utils/inputValidationController.js.map +1 -1
- package/utils/validatorMixin.js +24 -6
- package/utils/validatorMixin.js.map +1 -1
package/react/index.cjs.js
CHANGED
|
@@ -8,12 +8,12 @@ var index$1 = require('./accordion/index.cjs.js');
|
|
|
8
8
|
var index$2 = require('./alert-link/index.cjs.js');
|
|
9
9
|
var index$3 = require('./alert/index.cjs.js');
|
|
10
10
|
var index$4 = require('./badge/index.cjs.js');
|
|
11
|
-
var index$5 = require('./
|
|
12
|
-
var index$6 = require('./
|
|
13
|
-
var index$7 = require('./
|
|
14
|
-
var index$8 = require('./
|
|
15
|
-
var index$9 = require('./
|
|
16
|
-
var index$a = require('./
|
|
11
|
+
var index$5 = require('./breadcrumb-item/index.cjs.js');
|
|
12
|
+
var index$6 = require('./breadcrumb/index.cjs.js');
|
|
13
|
+
var index$7 = require('./button/index.cjs.js');
|
|
14
|
+
var index$8 = require('./card/index.cjs.js');
|
|
15
|
+
var index$9 = require('./checkbox-group/index.cjs.js');
|
|
16
|
+
var index$a = require('./checkbox/index.cjs.js');
|
|
17
17
|
var index$b = require('./close-button/index.cjs.js');
|
|
18
18
|
var index$c = require('./combo-box-option/index.cjs.js');
|
|
19
19
|
var index$d = require('./combo-box/index.cjs.js');
|
|
@@ -47,30 +47,34 @@ var index$E = require('./radio-group/index.cjs.js');
|
|
|
47
47
|
var index$F = require('./radio/index.cjs.js');
|
|
48
48
|
var index$G = require('./select-option/index.cjs.js');
|
|
49
49
|
var index$H = require('./select/index.cjs.js');
|
|
50
|
-
var index$I = require('./
|
|
51
|
-
var index$J = require('./
|
|
52
|
-
var index$K = require('./
|
|
53
|
-
var index$L = require('./
|
|
54
|
-
var index$M = require('./
|
|
55
|
-
var index$N = require('./
|
|
56
|
-
var index$O = require('./
|
|
57
|
-
var index$P = require('./
|
|
58
|
-
var index$Q = require('./
|
|
59
|
-
var index$R = require('./
|
|
60
|
-
var index$S = require('./
|
|
61
|
-
var index$T = require('./
|
|
62
|
-
var index$U = require('./
|
|
63
|
-
var index$V = require('./
|
|
64
|
-
var index$W = require('./
|
|
65
|
-
var index$X = require('./
|
|
66
|
-
var index$Y = require('./
|
|
67
|
-
var index$Z = require('./
|
|
68
|
-
var index$_ = require('./table-
|
|
69
|
-
var index$$ = require('./
|
|
70
|
-
var index$10 = require('./
|
|
71
|
-
var index$11 = require('./
|
|
72
|
-
var index$12 = require('./
|
|
73
|
-
var index$13 = require('./
|
|
50
|
+
var index$I = require('./sidebar-group/index.cjs.js');
|
|
51
|
+
var index$J = require('./sidebar-item/index.cjs.js');
|
|
52
|
+
var index$K = require('./sidebar-section/index.cjs.js');
|
|
53
|
+
var index$L = require('./sidebar/index.cjs.js');
|
|
54
|
+
var index$M = require('./sidenav-item/index.cjs.js');
|
|
55
|
+
var index$N = require('./sidenav-link/index.cjs.js');
|
|
56
|
+
var index$O = require('./sidenav/index.cjs.js');
|
|
57
|
+
var index$P = require('./skeleton/index.cjs.js');
|
|
58
|
+
var index$Q = require('./spinner/index.cjs.js');
|
|
59
|
+
var index$R = require('./stepper/index.cjs.js');
|
|
60
|
+
var index$S = require('./subnav-item/index.cjs.js');
|
|
61
|
+
var index$T = require('./subnav/index.cjs.js');
|
|
62
|
+
var index$U = require('./switch/index.cjs.js');
|
|
63
|
+
var index$V = require('./system-banner-item/index.cjs.js');
|
|
64
|
+
var index$W = require('./system-banner/index.cjs.js');
|
|
65
|
+
var index$X = require('./tab-group/index.cjs.js');
|
|
66
|
+
var index$Y = require('./tab-panel/index.cjs.js');
|
|
67
|
+
var index$Z = require('./tab/index.cjs.js');
|
|
68
|
+
var index$_ = require('./table-cell/index.cjs.js');
|
|
69
|
+
var index$$ = require('./table-head/index.cjs.js');
|
|
70
|
+
var index$10 = require('./table-row/index.cjs.js');
|
|
71
|
+
var index$11 = require('./table/index.cjs.js');
|
|
72
|
+
var index$12 = require('./table-of-contents/index.cjs.js');
|
|
73
|
+
var index$13 = require('./textarea/index.cjs.js');
|
|
74
|
+
var index$14 = require('./thumbnail-card/index.cjs.js');
|
|
75
|
+
var index$15 = require('./toast-container/index.cjs.js');
|
|
76
|
+
var index$16 = require('./toast/index.cjs.js');
|
|
77
|
+
var index$17 = require('./tooltip/index.cjs.js');
|
|
74
78
|
|
|
75
79
|
|
|
76
80
|
|
|
@@ -79,12 +83,12 @@ exports.SgdsAccordion = index$1["default"];
|
|
|
79
83
|
exports.SgdsAlertLink = index$2["default"];
|
|
80
84
|
exports.SgdsAlert = index$3["default"];
|
|
81
85
|
exports.SgdsBadge = index$4["default"];
|
|
82
|
-
exports.
|
|
83
|
-
exports.
|
|
84
|
-
exports.
|
|
85
|
-
exports.
|
|
86
|
-
exports.
|
|
87
|
-
exports.
|
|
86
|
+
exports.SgdsBreadcrumbItem = index$5["default"];
|
|
87
|
+
exports.SgdsBreadcrumb = index$6["default"];
|
|
88
|
+
exports.SgdsButton = index$7["default"];
|
|
89
|
+
exports.SgdsCard = index$8["default"];
|
|
90
|
+
exports.SgdsCheckboxGroup = index$9["default"];
|
|
91
|
+
exports.SgdsCheckbox = index$a["default"];
|
|
88
92
|
exports.SgdsCloseButton = index$b["default"];
|
|
89
93
|
exports.SgdsComboBoxOption = index$c["default"];
|
|
90
94
|
exports.SgdsComboBox = index$d["default"];
|
|
@@ -118,28 +122,32 @@ exports.SgdsRadioGroup = index$E["default"];
|
|
|
118
122
|
exports.SgdsRadio = index$F["default"];
|
|
119
123
|
exports.SgdsSelectOption = index$G["default"];
|
|
120
124
|
exports.SgdsSelect = index$H["default"];
|
|
121
|
-
exports.
|
|
122
|
-
exports.
|
|
123
|
-
exports.
|
|
124
|
-
exports.
|
|
125
|
-
exports.
|
|
126
|
-
exports.
|
|
127
|
-
exports.
|
|
128
|
-
exports.
|
|
129
|
-
exports.
|
|
130
|
-
exports.
|
|
131
|
-
exports.
|
|
132
|
-
exports.
|
|
133
|
-
exports.
|
|
134
|
-
exports.
|
|
135
|
-
exports.
|
|
136
|
-
exports.
|
|
137
|
-
exports.
|
|
138
|
-
exports.
|
|
139
|
-
exports.
|
|
140
|
-
exports.
|
|
141
|
-
exports.
|
|
142
|
-
exports.
|
|
143
|
-
exports.
|
|
144
|
-
exports.
|
|
125
|
+
exports.SgdsSidebarGroup = index$I["default"];
|
|
126
|
+
exports.SgdsSidebarItem = index$J["default"];
|
|
127
|
+
exports.SgdsSidebarSection = index$K["default"];
|
|
128
|
+
exports.SgdsSidebar = index$L["default"];
|
|
129
|
+
exports.SgdsSidenavItem = index$M["default"];
|
|
130
|
+
exports.SgdsSidenavLink = index$N["default"];
|
|
131
|
+
exports.SgdsSidenav = index$O["default"];
|
|
132
|
+
exports.SgdsSkeleton = index$P["default"];
|
|
133
|
+
exports.SgdsSpinner = index$Q["default"];
|
|
134
|
+
exports.SgdsStepper = index$R["default"];
|
|
135
|
+
exports.SgdsSubnavItem = index$S["default"];
|
|
136
|
+
exports.SgdsSubnav = index$T["default"];
|
|
137
|
+
exports.SgdsSwitch = index$U["default"];
|
|
138
|
+
exports.SgdsSystemBannerItem = index$V["default"];
|
|
139
|
+
exports.SgdsSystemBanner = index$W["default"];
|
|
140
|
+
exports.SgdsTabGroup = index$X["default"];
|
|
141
|
+
exports.SgdsTabPanel = index$Y["default"];
|
|
142
|
+
exports.SgdsTab = index$Z["default"];
|
|
143
|
+
exports.SgdsTableCell = index$_["default"];
|
|
144
|
+
exports.SgdsTableHead = index$$["default"];
|
|
145
|
+
exports.SgdsTableRow = index$10["default"];
|
|
146
|
+
exports.SgdsTable = index$11["default"];
|
|
147
|
+
exports.SgdsTableOfContents = index$12["default"];
|
|
148
|
+
exports.SgdsTextarea = index$13["default"];
|
|
149
|
+
exports.SgdsThumbnailCard = index$14["default"];
|
|
150
|
+
exports.SgdsToastContainer = index$15["default"];
|
|
151
|
+
exports.SgdsToast = index$16["default"];
|
|
152
|
+
exports.SgdsTooltip = index$17["default"];
|
|
145
153
|
//# sourceMappingURL=index.cjs.js.map
|
package/react/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/react/index.d.ts
CHANGED
|
@@ -3,12 +3,12 @@ export { default as SgdsAccordion } from './accordion';
|
|
|
3
3
|
export { default as SgdsAlertLink } from './alert-link';
|
|
4
4
|
export { default as SgdsAlert } from './alert';
|
|
5
5
|
export { default as SgdsBadge } from './badge';
|
|
6
|
+
export { default as SgdsBreadcrumbItem } from './breadcrumb-item';
|
|
7
|
+
export { default as SgdsBreadcrumb } from './breadcrumb';
|
|
6
8
|
export { default as SgdsButton } from './button';
|
|
7
9
|
export { default as SgdsCard } from './card';
|
|
8
10
|
export { default as SgdsCheckboxGroup } from './checkbox-group';
|
|
9
11
|
export { default as SgdsCheckbox } from './checkbox';
|
|
10
|
-
export { default as SgdsBreadcrumbItem } from './breadcrumb-item';
|
|
11
|
-
export { default as SgdsBreadcrumb } from './breadcrumb';
|
|
12
12
|
export { default as SgdsCloseButton } from './close-button';
|
|
13
13
|
export { default as SgdsComboBoxOption } from './combo-box-option';
|
|
14
14
|
export { default as SgdsComboBox } from './combo-box';
|
|
@@ -42,6 +42,10 @@ export { default as SgdsRadioGroup } from './radio-group';
|
|
|
42
42
|
export { default as SgdsRadio } from './radio';
|
|
43
43
|
export { default as SgdsSelectOption } from './select-option';
|
|
44
44
|
export { default as SgdsSelect } from './select';
|
|
45
|
+
export { default as SgdsSidebarGroup } from './sidebar-group';
|
|
46
|
+
export { default as SgdsSidebarItem } from './sidebar-item';
|
|
47
|
+
export { default as SgdsSidebarSection } from './sidebar-section';
|
|
48
|
+
export { default as SgdsSidebar } from './sidebar';
|
|
45
49
|
export { default as SgdsSidenavItem } from './sidenav-item';
|
|
46
50
|
export { default as SgdsSidenavLink } from './sidenav-link';
|
|
47
51
|
export { default as SgdsSidenav } from './sidenav';
|
package/react/index.js
CHANGED
|
@@ -4,12 +4,12 @@ export { default as SgdsAccordion } from './accordion/index.js';
|
|
|
4
4
|
export { default as SgdsAlertLink } from './alert-link/index.js';
|
|
5
5
|
export { default as SgdsAlert } from './alert/index.js';
|
|
6
6
|
export { default as SgdsBadge } from './badge/index.js';
|
|
7
|
+
export { default as SgdsBreadcrumbItem } from './breadcrumb-item/index.js';
|
|
8
|
+
export { default as SgdsBreadcrumb } from './breadcrumb/index.js';
|
|
7
9
|
export { default as SgdsButton } from './button/index.js';
|
|
8
10
|
export { default as SgdsCard } from './card/index.js';
|
|
9
11
|
export { default as SgdsCheckboxGroup } from './checkbox-group/index.js';
|
|
10
12
|
export { default as SgdsCheckbox } from './checkbox/index.js';
|
|
11
|
-
export { default as SgdsBreadcrumbItem } from './breadcrumb-item/index.js';
|
|
12
|
-
export { default as SgdsBreadcrumb } from './breadcrumb/index.js';
|
|
13
13
|
export { default as SgdsCloseButton } from './close-button/index.js';
|
|
14
14
|
export { default as SgdsComboBoxOption } from './combo-box-option/index.js';
|
|
15
15
|
export { default as SgdsComboBox } from './combo-box/index.js';
|
|
@@ -43,6 +43,10 @@ export { default as SgdsRadioGroup } from './radio-group/index.js';
|
|
|
43
43
|
export { default as SgdsRadio } from './radio/index.js';
|
|
44
44
|
export { default as SgdsSelectOption } from './select-option/index.js';
|
|
45
45
|
export { default as SgdsSelect } from './select/index.js';
|
|
46
|
+
export { default as SgdsSidebarGroup } from './sidebar-group/index.js';
|
|
47
|
+
export { default as SgdsSidebarItem } from './sidebar-item/index.js';
|
|
48
|
+
export { default as SgdsSidebarSection } from './sidebar-section/index.js';
|
|
49
|
+
export { default as SgdsSidebar } from './sidebar/index.js';
|
|
46
50
|
export { default as SgdsSidenavItem } from './sidenav-item/index.js';
|
|
47
51
|
export { default as SgdsSidenavLink } from './sidenav-link/index.js';
|
|
48
52
|
export { default as SgdsSidenav } from './sidenav/index.js';
|
package/react/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var react = require('@lit/react');
|
|
8
|
+
var sgdsSidebar = require('../components/Sidebar/sgds-sidebar.cjs.js');
|
|
9
|
+
var ceRegistry = require('../utils/ce-registry.cjs.js');
|
|
10
|
+
|
|
11
|
+
function _interopNamespace(e) {
|
|
12
|
+
if (e && e.__esModule) return e;
|
|
13
|
+
var n = Object.create(null);
|
|
14
|
+
if (e) {
|
|
15
|
+
Object.keys(e).forEach(function (k) {
|
|
16
|
+
if (k !== 'default') {
|
|
17
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return e[k]; }
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
n["default"] = e;
|
|
26
|
+
return Object.freeze(n);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
30
|
+
|
|
31
|
+
ceRegistry.register("sgds-sidebar", sgdsSidebar.SgdsSidebar);
|
|
32
|
+
var index = react.createComponent({
|
|
33
|
+
react: React__namespace,
|
|
34
|
+
tagName: "sgds-sidebar",
|
|
35
|
+
elementClass: sgdsSidebar.SgdsSidebar,
|
|
36
|
+
events: {}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
exports["default"] = index;
|
|
40
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../../src/react/sidebar/index.ts"],"sourcesContent":["import * as React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport Component from \"../../components/Sidebar/sgds-sidebar\";\nimport { register } from \"../../utils/ce-registry\";\n\nregister(\"sgds-sidebar\", Component);\n\nexport default createComponent({\n react: React,\n tagName: \"sgds-sidebar\",\n elementClass: Component,\n events: {}\n});\n"],"names":["register","Component","createComponent","React"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKAA,mBAAQ,CAAC,cAAc,EAAEC,uBAAS,CAAC,CAAC;AAEpC,YAAeC,qBAAe,CAAC;AAC7B,IAAA,KAAK,EAAEC,gBAAK;AACZ,IAAA,OAAO,EAAE,cAAc;AACvB,IAAA,YAAY,EAAEF,uBAAS;AACvB,IAAA,MAAM,EAAE,EAAE;AACX,CAAA,CAAC;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { createComponent } from '@lit/react';
|
|
4
|
+
import { SgdsSidebar } from '../components/Sidebar/sgds-sidebar.js';
|
|
5
|
+
import { register } from '../utils/ce-registry.js';
|
|
6
|
+
|
|
7
|
+
register("sgds-sidebar", SgdsSidebar);
|
|
8
|
+
var index = createComponent({
|
|
9
|
+
react: React,
|
|
10
|
+
tagName: "sgds-sidebar",
|
|
11
|
+
elementClass: SgdsSidebar,
|
|
12
|
+
events: {}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export { index as default };
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/react/sidebar/index.ts"],"sourcesContent":["import * as React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport Component from \"../../components/Sidebar/sgds-sidebar\";\nimport { register } from \"../../utils/ce-registry\";\n\nregister(\"sgds-sidebar\", Component);\n\nexport default createComponent({\n react: React,\n tagName: \"sgds-sidebar\",\n elementClass: Component,\n events: {}\n});\n"],"names":["Component"],"mappings":";;;;;;AAKA,QAAQ,CAAC,cAAc,EAAEA,WAAS,CAAC,CAAC;AAEpC,YAAe,eAAe,CAAC;AAC7B,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,OAAO,EAAE,cAAc;AACvB,IAAA,YAAY,EAAEA,WAAS;AACvB,IAAA,MAAM,EAAE,EAAE;AACX,CAAA,CAAC;;;;"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var react = require('@lit/react');
|
|
8
|
+
var sgdsSidebarGroup = require('../components/Sidebar/sgds-sidebar-group.cjs.js');
|
|
9
|
+
var ceRegistry = require('../utils/ce-registry.cjs.js');
|
|
10
|
+
|
|
11
|
+
function _interopNamespace(e) {
|
|
12
|
+
if (e && e.__esModule) return e;
|
|
13
|
+
var n = Object.create(null);
|
|
14
|
+
if (e) {
|
|
15
|
+
Object.keys(e).forEach(function (k) {
|
|
16
|
+
if (k !== 'default') {
|
|
17
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return e[k]; }
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
n["default"] = e;
|
|
26
|
+
return Object.freeze(n);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
30
|
+
|
|
31
|
+
ceRegistry.register("sgds-sidebar-group", sgdsSidebarGroup.SgdsSidebarGroup);
|
|
32
|
+
var index = react.createComponent({
|
|
33
|
+
react: React__namespace,
|
|
34
|
+
tagName: "sgds-sidebar-group",
|
|
35
|
+
elementClass: sgdsSidebarGroup.SgdsSidebarGroup,
|
|
36
|
+
events: {}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
exports["default"] = index;
|
|
40
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../../src/react/sidebar-group/index.ts"],"sourcesContent":["import * as React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport Component from \"../../components/Sidebar/sgds-sidebar-group\";\nimport { register } from \"../../utils/ce-registry\";\n\nregister(\"sgds-sidebar-group\", Component);\n\nexport default createComponent({\n react: React,\n tagName: \"sgds-sidebar-group\",\n elementClass: Component,\n events: {}\n});\n"],"names":["register","Component","createComponent","React"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKAA,mBAAQ,CAAC,oBAAoB,EAAEC,iCAAS,CAAC,CAAC;AAE1C,YAAeC,qBAAe,CAAC;AAC7B,IAAA,KAAK,EAAEC,gBAAK;AACZ,IAAA,OAAO,EAAE,oBAAoB;AAC7B,IAAA,YAAY,EAAEF,iCAAS;AACvB,IAAA,MAAM,EAAE,EAAE;AACX,CAAA,CAAC;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { createComponent } from '@lit/react';
|
|
4
|
+
import { SgdsSidebarGroup } from '../components/Sidebar/sgds-sidebar-group.js';
|
|
5
|
+
import { register } from '../utils/ce-registry.js';
|
|
6
|
+
|
|
7
|
+
register("sgds-sidebar-group", SgdsSidebarGroup);
|
|
8
|
+
var index = createComponent({
|
|
9
|
+
react: React,
|
|
10
|
+
tagName: "sgds-sidebar-group",
|
|
11
|
+
elementClass: SgdsSidebarGroup,
|
|
12
|
+
events: {}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export { index as default };
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/react/sidebar-group/index.ts"],"sourcesContent":["import * as React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport Component from \"../../components/Sidebar/sgds-sidebar-group\";\nimport { register } from \"../../utils/ce-registry\";\n\nregister(\"sgds-sidebar-group\", Component);\n\nexport default createComponent({\n react: React,\n tagName: \"sgds-sidebar-group\",\n elementClass: Component,\n events: {}\n});\n"],"names":["Component"],"mappings":";;;;;;AAKA,QAAQ,CAAC,oBAAoB,EAAEA,gBAAS,CAAC,CAAC;AAE1C,YAAe,eAAe,CAAC;AAC7B,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,OAAO,EAAE,oBAAoB;AAC7B,IAAA,YAAY,EAAEA,gBAAS;AACvB,IAAA,MAAM,EAAE,EAAE;AACX,CAAA,CAAC;;;;"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var react = require('@lit/react');
|
|
8
|
+
var sgdsSidebarItem = require('../components/Sidebar/sgds-sidebar-item.cjs.js');
|
|
9
|
+
var ceRegistry = require('../utils/ce-registry.cjs.js');
|
|
10
|
+
|
|
11
|
+
function _interopNamespace(e) {
|
|
12
|
+
if (e && e.__esModule) return e;
|
|
13
|
+
var n = Object.create(null);
|
|
14
|
+
if (e) {
|
|
15
|
+
Object.keys(e).forEach(function (k) {
|
|
16
|
+
if (k !== 'default') {
|
|
17
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return e[k]; }
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
n["default"] = e;
|
|
26
|
+
return Object.freeze(n);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
30
|
+
|
|
31
|
+
ceRegistry.register("sgds-sidebar-item", sgdsSidebarItem.SgdsSidebarItem);
|
|
32
|
+
var index = react.createComponent({
|
|
33
|
+
react: React__namespace,
|
|
34
|
+
tagName: "sgds-sidebar-item",
|
|
35
|
+
elementClass: sgdsSidebarItem.SgdsSidebarItem,
|
|
36
|
+
events: {}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
exports["default"] = index;
|
|
40
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../../src/react/sidebar-item/index.ts"],"sourcesContent":["import * as React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport Component from \"../../components/Sidebar/sgds-sidebar-item\";\nimport { register } from \"../../utils/ce-registry\";\n\nregister(\"sgds-sidebar-item\", Component);\n\nexport default createComponent({\n react: React,\n tagName: \"sgds-sidebar-item\",\n elementClass: Component,\n events: {}\n});\n"],"names":["register","Component","createComponent","React"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKAA,mBAAQ,CAAC,mBAAmB,EAAEC,+BAAS,CAAC,CAAC;AAEzC,YAAeC,qBAAe,CAAC;AAC7B,IAAA,KAAK,EAAEC,gBAAK;AACZ,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,YAAY,EAAEF,+BAAS;AACvB,IAAA,MAAM,EAAE,EAAE;AACX,CAAA,CAAC;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { createComponent } from '@lit/react';
|
|
4
|
+
import { SgdsSidebarItem } from '../components/Sidebar/sgds-sidebar-item.js';
|
|
5
|
+
import { register } from '../utils/ce-registry.js';
|
|
6
|
+
|
|
7
|
+
register("sgds-sidebar-item", SgdsSidebarItem);
|
|
8
|
+
var index = createComponent({
|
|
9
|
+
react: React,
|
|
10
|
+
tagName: "sgds-sidebar-item",
|
|
11
|
+
elementClass: SgdsSidebarItem,
|
|
12
|
+
events: {}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export { index as default };
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/react/sidebar-item/index.ts"],"sourcesContent":["import * as React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport Component from \"../../components/Sidebar/sgds-sidebar-item\";\nimport { register } from \"../../utils/ce-registry\";\n\nregister(\"sgds-sidebar-item\", Component);\n\nexport default createComponent({\n react: React,\n tagName: \"sgds-sidebar-item\",\n elementClass: Component,\n events: {}\n});\n"],"names":["Component"],"mappings":";;;;;;AAKA,QAAQ,CAAC,mBAAmB,EAAEA,eAAS,CAAC,CAAC;AAEzC,YAAe,eAAe,CAAC;AAC7B,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,YAAY,EAAEA,eAAS;AACvB,IAAA,MAAM,EAAE,EAAE;AACX,CAAA,CAAC;;;;"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var react = require('@lit/react');
|
|
8
|
+
var sgdsSidebarSection = require('../components/Sidebar/sgds-sidebar-section.cjs.js');
|
|
9
|
+
var ceRegistry = require('../utils/ce-registry.cjs.js');
|
|
10
|
+
|
|
11
|
+
function _interopNamespace(e) {
|
|
12
|
+
if (e && e.__esModule) return e;
|
|
13
|
+
var n = Object.create(null);
|
|
14
|
+
if (e) {
|
|
15
|
+
Object.keys(e).forEach(function (k) {
|
|
16
|
+
if (k !== 'default') {
|
|
17
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return e[k]; }
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
n["default"] = e;
|
|
26
|
+
return Object.freeze(n);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
30
|
+
|
|
31
|
+
ceRegistry.register("sgds-sidebar-section", sgdsSidebarSection.SgdsSidebarSection);
|
|
32
|
+
var index = react.createComponent({
|
|
33
|
+
react: React__namespace,
|
|
34
|
+
tagName: "sgds-sidebar-section",
|
|
35
|
+
elementClass: sgdsSidebarSection.SgdsSidebarSection,
|
|
36
|
+
events: {}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
exports["default"] = index;
|
|
40
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../../src/react/sidebar-section/index.ts"],"sourcesContent":["import * as React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport Component from \"../../components/Sidebar/sgds-sidebar-section\";\nimport { register } from \"../../utils/ce-registry\";\n\nregister(\"sgds-sidebar-section\", Component);\n\nexport default createComponent({\n react: React,\n tagName: \"sgds-sidebar-section\",\n elementClass: Component,\n events: {}\n});\n"],"names":["register","Component","createComponent","React"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKAA,mBAAQ,CAAC,sBAAsB,EAAEC,qCAAS,CAAC,CAAC;AAE5C,YAAeC,qBAAe,CAAC;AAC7B,IAAA,KAAK,EAAEC,gBAAK;AACZ,IAAA,OAAO,EAAE,sBAAsB;AAC/B,IAAA,YAAY,EAAEF,qCAAS;AACvB,IAAA,MAAM,EAAE,EAAE;AACX,CAAA,CAAC;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { createComponent } from '@lit/react';
|
|
4
|
+
import { SgdsSidebarSection } from '../components/Sidebar/sgds-sidebar-section.js';
|
|
5
|
+
import { register } from '../utils/ce-registry.js';
|
|
6
|
+
|
|
7
|
+
register("sgds-sidebar-section", SgdsSidebarSection);
|
|
8
|
+
var index = createComponent({
|
|
9
|
+
react: React,
|
|
10
|
+
tagName: "sgds-sidebar-section",
|
|
11
|
+
elementClass: SgdsSidebarSection,
|
|
12
|
+
events: {}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export { index as default };
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/react/sidebar-section/index.ts"],"sourcesContent":["import * as React from \"react\";\nimport { createComponent } from \"@lit/react\";\nimport Component from \"../../components/Sidebar/sgds-sidebar-section\";\nimport { register } from \"../../utils/ce-registry\";\n\nregister(\"sgds-sidebar-section\", Component);\n\nexport default createComponent({\n react: React,\n tagName: \"sgds-sidebar-section\",\n elementClass: Component,\n events: {}\n});\n"],"names":["Component"],"mappings":";;;;;;AAKA,QAAQ,CAAC,sBAAsB,EAAEA,kBAAS,CAAC,CAAC;AAE5C,YAAe,eAAe,CAAC;AAC7B,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,OAAO,EAAE,sBAAsB;AAC/B,IAAA,YAAY,EAAEA,kBAAS;AACvB,IAAA,MAAM,EAAE,EAAE;AACX,CAAA,CAAC;;;;"}
|
|
@@ -9,7 +9,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
class InputValidationController {
|
|
10
10
|
constructor(host, options) {
|
|
11
11
|
(this.host = host).addController(this);
|
|
12
|
-
|
|
12
|
+
// Use the internals from the host if it implements the mixin
|
|
13
|
+
this._internals = host._internals || this.host.attachInternals();
|
|
13
14
|
this.options = Object.assign({ setInvalid: (host, value) => {
|
|
14
15
|
host.invalid = value;
|
|
15
16
|
}, value: (host) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputValidationController.cjs.js","sources":["../../../src/utils/inputValidationController.ts"],"sourcesContent":["import { ReactiveController, ReactiveControllerHost } from \"lit\";\nimport { SgdsFormControl } from \"./formSubmitController\";\nimport { SgdsCheckbox, SgdsInput } from \"../components\";\n\n/**\n * SGDS custom form validation methods and behaviours\n */\nexport class InputValidationController implements ReactiveController {\n host: ReactiveControllerHost & HTMLElement;\n _internals: ElementInternals;\n validationError: keyof ValidityState;\n options: InputValidationControllerOptions;\n\n constructor(host: ReactiveControllerHost & HTMLElement, options?: Partial<InputValidationControllerOptions>) {\n (this.host = host).addController(this);\n this._internals = this.host.attachInternals();\n this.options = {\n setInvalid: (host: SgdsFormControl, value: boolean) => {\n host.invalid = value;\n },\n value: (host: SgdsFormControl) => {\n return host.value;\n },\n input: (host: SgdsFormControl) => host.input,\n ...options\n };\n }\n\n hostConnected(): void {\n this.host.addEventListener(\"invalid\", e => this.handleInvalid(e));\n }\n\n hostDisconnected(): void {\n this.host.removeEventListener(\"invalid\", e => this.handleInvalid(e));\n }\n /**\n * Prevents the native browser error message pop up when reportValidity() called by\n * associated form or the component's reportValidity during constraint validation\n * Sets invalid reactive prop to true\n */\n handleInvalid(e: Event) {\n e.preventDefault();\n this.options.setInvalid(this.host, true);\n }\n\n /**\n * Sets invalid to false when invoked and\n * Updates the ValidityState based on new value, but\n * does not update invalid reactive prop\n * @param e\n */\n handleInput(e: Event) {\n const input = e.target as HTMLInputElement;\n this.options.setInvalid(this.host, false);\n this.validateInput(input);\n }\n /**\n * Validate the input's new value after onChange and\n * update invalid reactive prop\n * @param e\n */\n handleChange(e: Event) {\n const input = e.target as HTMLInputElement;\n this.validateInput(input);\n this.options.setInvalid(this.host, !this.checkValidity());\n }\n\n get form() {\n return this._internals.form;\n }\n\n get validity() {\n return this._internals.validity;\n }\n\n get validationMessage() {\n return this._internals.validationMessage;\n }\n\n get willValidate() {\n return this._internals.willValidate;\n }\n /**\n * Checks the validity and updates the invalid reactive prop of form components\n */\n updateInvalidState() {\n this.options.setInvalid(this.host, !this.checkValidity());\n }\n /**\n * Resets the ValidityState of the control\n */\n resetValidity() {\n return this._internals.setValidity({});\n }\n /**\n * Reports the validity\n */\n checkValidity(): boolean {\n return this._internals.checkValidity();\n }\n /**\n * Reports the validity with a error popup message\n */\n reportValidity(): boolean {\n return this._internals.reportValidity();\n }\n setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void {\n return this._internals.setValidity(flags, message, anchor);\n }\n /**\n * Sets the form control value into FormData,\n * making the value of control accessible via FormData\n */\n setFormValue() {\n const value = this.options.value(this.host) as string | FormData | File;\n this._internals.setFormValue(value);\n }\n /**\n * Updates the ValidityState of the input in form component at current state\n */\n validateInput(input) {\n /** When the form control is disabled, its always valid */\n if (this.options.input(this.host).disabled) {\n return this._internals.setValidity({});\n }\n // get the validity of the internal <input>\n const validState = input.validity;\n // if the input is invalid, show the correct error\n if (!validState.valid) {\n // loop through the error reasons\n for (const state in validState) {\n // if there is an error and corresponding attribute holding\n // the message\n if (validState[state]) {\n this.validationError = state.toString() as keyof ValidityState;\n // set the validity error reason and the corresponding\n // message\n this._internals.setValidity({ [this.validationError]: true }, input.validationMessage, input);\n }\n }\n } else {\n this._internals.setValidity({});\n }\n }\n}\n\nexport interface InputValidationControllerOptions {\n /** A function that sets the value of host invalid reactive prop */\n setInvalid: (host: ReactiveControllerHost & HTMLElement, value: boolean) => void;\n /** A function that gets the value of host value reactive prop */\n value: (host: ReactiveControllerHost & HTMLElement) => unknown;\n /** A function that gets the input control of host value reactive prop */\n input: (host: ReactiveController & HTMLElement) => HTMLInputElement | SgdsInput | SgdsCheckbox;\n}\n"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"inputValidationController.cjs.js","sources":["../../../src/utils/inputValidationController.ts"],"sourcesContent":["import { ReactiveController, ReactiveControllerHost } from \"lit\";\nimport { SgdsFormControl } from \"./formSubmitController\";\nimport { SgdsCheckbox, SgdsInput } from \"../components\";\n\ninterface HostWithInternals extends ReactiveControllerHost, HTMLElement {\n _internals?: ElementInternals;\n}\n\n/**\n * SGDS custom form validation methods and behaviours\n */\nexport class InputValidationController implements ReactiveController {\n host: ReactiveControllerHost & HTMLElement;\n _internals: ElementInternals;\n validationError: keyof ValidityState;\n options: InputValidationControllerOptions;\n\n constructor(host: ReactiveControllerHost & HTMLElement, options?: Partial<InputValidationControllerOptions>) {\n (this.host = host).addController(this);\n // Use the internals from the host if it implements the mixin\n this._internals = (host as HostWithInternals)._internals || this.host.attachInternals();\n this.options = {\n setInvalid: (host: SgdsFormControl, value: boolean) => {\n host.invalid = value;\n },\n value: (host: SgdsFormControl) => {\n return host.value;\n },\n input: (host: SgdsFormControl) => host.input,\n ...options\n };\n }\n\n hostConnected(): void {\n this.host.addEventListener(\"invalid\", e => this.handleInvalid(e));\n }\n\n hostDisconnected(): void {\n this.host.removeEventListener(\"invalid\", e => this.handleInvalid(e));\n }\n /**\n * Prevents the native browser error message pop up when reportValidity() called by\n * associated form or the component's reportValidity during constraint validation\n * Sets invalid reactive prop to true\n */\n handleInvalid(e: Event) {\n e.preventDefault();\n this.options.setInvalid(this.host, true);\n }\n\n /**\n * Sets invalid to false when invoked and\n * Updates the ValidityState based on new value, but\n * does not update invalid reactive prop\n * @param e\n */\n handleInput(e: Event) {\n const input = e.target as HTMLInputElement;\n this.options.setInvalid(this.host, false);\n this.validateInput(input);\n }\n /**\n * Validate the input's new value after onChange and\n * update invalid reactive prop\n * @param e\n */\n handleChange(e: Event) {\n const input = e.target as HTMLInputElement;\n this.validateInput(input);\n this.options.setInvalid(this.host, !this.checkValidity());\n }\n\n get form() {\n return this._internals.form;\n }\n\n get validity() {\n return this._internals.validity;\n }\n\n get validationMessage() {\n return this._internals.validationMessage;\n }\n\n get willValidate() {\n return this._internals.willValidate;\n }\n /**\n * Checks the validity and updates the invalid reactive prop of form components\n */\n updateInvalidState() {\n this.options.setInvalid(this.host, !this.checkValidity());\n }\n /**\n * Resets the ValidityState of the control\n */\n resetValidity() {\n return this._internals.setValidity({});\n }\n /**\n * Reports the validity\n */\n checkValidity(): boolean {\n return this._internals.checkValidity();\n }\n /**\n * Reports the validity with a error popup message\n */\n reportValidity(): boolean {\n return this._internals.reportValidity();\n }\n setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void {\n return this._internals.setValidity(flags, message, anchor);\n }\n /**\n * Sets the form control value into FormData,\n * making the value of control accessible via FormData\n */\n setFormValue() {\n const value = this.options.value(this.host) as string | FormData | File;\n this._internals.setFormValue(value);\n }\n /**\n * Updates the ValidityState of the input in form component at current state\n */\n validateInput(input) {\n /** When the form control is disabled, its always valid */\n if (this.options.input(this.host).disabled) {\n return this._internals.setValidity({});\n }\n // get the validity of the internal <input>\n const validState = input.validity;\n // if the input is invalid, show the correct error\n if (!validState.valid) {\n // loop through the error reasons\n for (const state in validState) {\n // if there is an error and corresponding attribute holding\n // the message\n if (validState[state]) {\n this.validationError = state.toString() as keyof ValidityState;\n // set the validity error reason and the corresponding\n // message\n this._internals.setValidity({ [this.validationError]: true }, input.validationMessage, input);\n }\n }\n } else {\n this._internals.setValidity({});\n }\n }\n}\n\nexport interface InputValidationControllerOptions {\n /** A function that sets the value of host invalid reactive prop */\n setInvalid: (host: ReactiveControllerHost & HTMLElement, value: boolean) => void;\n /** A function that gets the value of host value reactive prop */\n value: (host: ReactiveControllerHost & HTMLElement) => unknown;\n /** A function that gets the input control of host value reactive prop */\n input: (host: ReactiveController & HTMLElement) => HTMLInputElement | SgdsInput | SgdsCheckbox;\n}\n"],"names":[],"mappings":";;;;;AAQA;;AAEG;MACU,yBAAyB,CAAA;IAMpC,WAAY,CAAA,IAA0C,EAAE,OAAmD,EAAA;QACzG,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;;AAEvC,QAAA,IAAI,CAAC,UAAU,GAAI,IAA0B,CAAC,UAAU,IAAI,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC;QACxF,IAAI,CAAC,OAAO,GAAA,MAAA,CAAA,MAAA,CAAA,EACV,UAAU,EAAE,CAAC,IAAqB,EAAE,KAAc,KAAI;AACpD,gBAAA,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;AACvB,aAAC,EACD,KAAK,EAAE,CAAC,IAAqB,KAAI;gBAC/B,OAAO,IAAI,CAAC,KAAK,CAAC;AACpB,aAAC,EACD,KAAK,EAAE,CAAC,IAAqB,KAAK,IAAI,CAAC,KAAK,EACzC,EAAA,OAAO,CACX,CAAC;KACH;IAED,aAAa,GAAA;AACX,QAAA,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;KACnE;IAED,gBAAgB,GAAA;AACd,QAAA,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,SAAS,EAAE,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;KACtE;AACD;;;;AAIG;AACH,IAAA,aAAa,CAAC,CAAQ,EAAA;QACpB,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;KAC1C;AAED;;;;;AAKG;AACH,IAAA,WAAW,CAAC,CAAQ,EAAA;AAClB,QAA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ructor(host, options) {
|
|
7
7
|
(this.host = host).addController(this);
|
|
8
|
-
|
|
8
|
+
// Use the internals from the host if it implements the mixin
|
|
9
|
+
this._internals = host._internals || this.host.attachInternals();
|
|
9
10
|
this.options = Object.assign({ setInvalid: (host, value) => {
|
|
10
11
|
host.invalid = value;
|
|
11
12
|
}, value: (host) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputValidationController.js","sources":["../../../src/utils/inputValidationController.ts"],"sourcesContent":["import { ReactiveController, ReactiveControllerHost } from \"lit\";\nimport { SgdsFormControl } from \"./formSubmitController\";\nimport { SgdsCheckbox, SgdsInput } from \"../components\";\n\n/**\n * SGDS custom form validation methods and behaviours\n */\nexport class InputValidationController implements ReactiveController {\n host: ReactiveControllerHost & HTMLElement;\n _internals: ElementInternals;\n validationError: keyof ValidityState;\n options: InputValidationControllerOptions;\n\n constructor(host: ReactiveControllerHost & HTMLElement, options?: Partial<InputValidationControllerOptions>) {\n (this.host = host).addController(this);\n this._internals = this.host.attachInternals();\n this.options = {\n setInvalid: (host: SgdsFormControl, value: boolean) => {\n host.invalid = value;\n },\n value: (host: SgdsFormControl) => {\n return host.value;\n },\n input: (host: SgdsFormControl) => host.input,\n ...options\n };\n }\n\n hostConnected(): void {\n this.host.addEventListener(\"invalid\", e => this.handleInvalid(e));\n }\n\n hostDisconnected(): void {\n this.host.removeEventListener(\"invalid\", e => this.handleInvalid(e));\n }\n /**\n * Prevents the native browser error message pop up when reportValidity() called by\n * associated form or the component's reportValidity during constraint validation\n * Sets invalid reactive prop to true\n */\n handleInvalid(e: Event) {\n e.preventDefault();\n this.options.setInvalid(this.host, true);\n }\n\n /**\n * Sets invalid to false when invoked and\n * Updates the ValidityState based on new value, but\n * does not update invalid reactive prop\n * @param e\n */\n handleInput(e: Event) {\n const input = e.target as HTMLInputElement;\n this.options.setInvalid(this.host, false);\n this.validateInput(input);\n }\n /**\n * Validate the input's new value after onChange and\n * update invalid reactive prop\n * @param e\n */\n handleChange(e: Event) {\n const input = e.target as HTMLInputElement;\n this.validateInput(input);\n this.options.setInvalid(this.host, !this.checkValidity());\n }\n\n get form() {\n return this._internals.form;\n }\n\n get validity() {\n return this._internals.validity;\n }\n\n get validationMessage() {\n return this._internals.validationMessage;\n }\n\n get willValidate() {\n return this._internals.willValidate;\n }\n /**\n * Checks the validity and updates the invalid reactive prop of form components\n */\n updateInvalidState() {\n this.options.setInvalid(this.host, !this.checkValidity());\n }\n /**\n * Resets the ValidityState of the control\n */\n resetValidity() {\n return this._internals.setValidity({});\n }\n /**\n * Reports the validity\n */\n checkValidity(): boolean {\n return this._internals.checkValidity();\n }\n /**\n * Reports the validity with a error popup message\n */\n reportValidity(): boolean {\n return this._internals.reportValidity();\n }\n setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void {\n return this._internals.setValidity(flags, message, anchor);\n }\n /**\n * Sets the form control value into FormData,\n * making the value of control accessible via FormData\n */\n setFormValue() {\n const value = this.options.value(this.host) as string | FormData | File;\n this._internals.setFormValue(value);\n }\n /**\n * Updates the ValidityState of the input in form component at current state\n */\n validateInput(input) {\n /** When the form control is disabled, its always valid */\n if (this.options.input(this.host).disabled) {\n return this._internals.setValidity({});\n }\n // get the validity of the internal <input>\n const validState = input.validity;\n // if the input is invalid, show the correct error\n if (!validState.valid) {\n // loop through the error reasons\n for (const state in validState) {\n // if there is an error and corresponding attribute holding\n // the message\n if (validState[state]) {\n this.validationError = state.toString() as keyof ValidityState;\n // set the validity error reason and the corresponding\n // message\n this._internals.setValidity({ [this.validationError]: true }, input.validationMessage, input);\n }\n }\n } else {\n this._internals.setValidity({});\n }\n }\n}\n\nexport interface InputValidationControllerOptions {\n /** A function that sets the value of host invalid reactive prop */\n setInvalid: (host: ReactiveControllerHost & HTMLElement, value: boolean) => void;\n /** A function that gets the value of host value reactive prop */\n value: (host: ReactiveControllerHost & HTMLElement) => unknown;\n /** A function that gets the input control of host value reactive prop */\n input: (host: ReactiveController & HTMLElement) => HTMLInputElement | SgdsInput | SgdsCheckbox;\n}\n"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"inputValidationController.js","sources":["../../../src/utils/inputValidationController.ts"],"sourcesContent":["import { ReactiveController, ReactiveControllerHost } from \"lit\";\nimport { SgdsFormControl } from \"./formSubmitController\";\nimport { SgdsCheckbox, SgdsInput } from \"../components\";\n\ninterface HostWithInternals extends ReactiveControllerHost, HTMLElement {\n _internals?: ElementInternals;\n}\n\n/**\n * SGDS custom form validation methods and behaviours\n */\nexport class InputValidationController implements ReactiveController {\n host: ReactiveControllerHost & HTMLElement;\n _internals: ElementInternals;\n validationError: keyof ValidityState;\n options: InputValidationControllerOptions;\n\n constructor(host: ReactiveControllerHost & HTMLElement, options?: Partial<InputValidationControllerOptions>) {\n (this.host = host).addController(this);\n // Use the internals from the host if it implements the mixin\n this._internals = (host as HostWithInternals)._internals || this.host.attachInternals();\n this.options = {\n setInvalid: (host: SgdsFormControl, value: boolean) => {\n host.invalid = value;\n },\n value: (host: SgdsFormControl) => {\n return host.value;\n },\n input: (host: SgdsFormControl) => host.input,\n ...options\n };\n }\n\n hostConnected(): void {\n this.host.addEventListener(\"invalid\", e => this.handleInvalid(e));\n }\n\n hostDisconnected(): void {\n this.host.removeEventListener(\"invalid\", e => this.handleInvalid(e));\n }\n /**\n * Prevents the native browser error message pop up when reportValidity() called by\n * associated form or the component's reportValidity during constraint validation\n * Sets invalid reactive prop to true\n */\n handleInvalid(e: Event) {\n e.preventDefault();\n this.options.setInvalid(this.host, true);\n }\n\n /**\n * Sets invalid to false when invoked and\n * Updates the ValidityState based on new value, but\n * does not update invalid reactive prop\n * @param e\n */\n handleInput(e: Event) {\n const input = e.target as HTMLInputElement;\n this.options.setInvalid(this.host, false);\n this.validateInput(input);\n }\n /**\n * Validate the input's new value after onChange and\n * update invalid reactive prop\n * @param e\n */\n handleChange(e: Event) {\n const input = e.target as HTMLInputElement;\n this.validateInput(input);\n this.options.setInvalid(this.host, !this.checkValidity());\n }\n\n get form() {\n return this._internals.form;\n }\n\n get validity() {\n return this._internals.validity;\n }\n\n get validationMessage() {\n return this._internals.validationMessage;\n }\n\n get willValidate() {\n return this._internals.willValidate;\n }\n /**\n * Checks the validity and updates the invalid reactive prop of form components\n */\n updateInvalidState() {\n this.options.setInvalid(this.host, !this.checkValidity());\n }\n /**\n * Resets the ValidityState of the control\n */\n resetValidity() {\n return this._internals.setValidity({});\n }\n /**\n * Reports the validity\n */\n checkValidity(): boolean {\n return this._internals.checkValidity();\n }\n /**\n * Reports the validity with a error popup message\n */\n reportValidity(): boolean {\n return this._internals.reportValidity();\n }\n setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void {\n return this._internals.setValidity(flags, message, anchor);\n }\n /**\n * Sets the form control value into FormData,\n * making the value of control accessible via FormData\n */\n setFormValue() {\n const value = this.options.value(this.host) as string | FormData | File;\n this._internals.setFormValue(value);\n }\n /**\n * Updates the ValidityState of the input in form component at current state\n */\n validateInput(input) {\n /** When the form control is disabled, its always valid */\n if (this.options.input(this.host).disabled) {\n return this._internals.setValidity({});\n }\n // get the validity of the internal <input>\n const validState = input.validity;\n // if the input is invalid, show the correct error\n if (!validState.valid) {\n // loop through the error reasons\n for (const state in validState) {\n // if there is an error and corresponding attribute holding\n // the message\n if (validState[state]) {\n this.validationError = state.toString() as keyof ValidityState;\n // set the validity error reason and the corresponding\n // message\n this._internals.setValidity({ [this.validationError]: true }, input.validationMessage, input);\n }\n }\n } else {\n this._internals.setValidity({});\n }\n }\n}\n\nexport interface InputValidationControllerOptions {\n /** A function that sets the value of host invalid reactive prop */\n setInvalid: (host: ReactiveControllerHost & HTMLElement, value: boolean) => void;\n /** A function that gets the value of host value reactive prop */\n value: (host: ReactiveControllerHost & HTMLElement) => unknown;\n /** A function that gets the input control of host value reactive prop */\n input: (host: ReactiveController & HTMLElement) => HTMLInputElement | SgdsInput | SgdsCheckbox;\n}\n"],"names":[],"mappings":";AAQA;;AAEG;MACU,yBAAyB,CAAA;IAMp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