@ongov/ontario-design-system-component-library 4.3.0 → 5.0.0-alpha.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/dist/cjs/index-88d5cf20.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{ontario-accordion_43.cjs.entry.js → ontario-accordion_44.cjs.entry.js} +738 -296
- package/dist/cjs/ontario-accordion_44.cjs.entry.js.map +1 -0
- package/dist/cjs/ontario-design-system-components.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ontario-card/ontario-card-types.js +29 -2
- package/dist/collection/components/ontario-card/ontario-card-types.js.map +1 -1
- package/dist/collection/components/ontario-card/ontario-card.css +257 -31
- package/dist/collection/components/ontario-card/ontario-card.js +104 -80
- package/dist/collection/components/ontario-card/ontario-card.js.map +1 -1
- package/dist/collection/components/ontario-card/test/ontario-cards.spec.js +23 -13
- package/dist/collection/components/ontario-card/test/ontario-cards.spec.js.map +1 -1
- package/dist/collection/components/ontario-header/ontario-header.js +17 -3
- package/dist/collection/components/ontario-header/ontario-header.js.map +1 -1
- package/dist/collection/components/ontario-header/service-ontario-header.css +0 -3
- package/dist/collection/components/ontario-header/test/ontario-header.spec.js +3 -3
- package/dist/collection/components/ontario-header/test/ontario-header.spec.js.map +1 -1
- package/dist/collection/components/ontario-language-toggle/ontario-language-toggle.js +193 -47
- package/dist/collection/components/ontario-language-toggle/ontario-language-toggle.js.map +1 -1
- package/dist/collection/components/ontario-language-toggle/test/ontario-language-toggle.spec.js +16 -3
- package/dist/collection/components/ontario-language-toggle/test/ontario-language-toggle.spec.js.map +1 -1
- package/dist/collection/components/ontario-search-box/assets/ontario-icon-close.svg +1 -0
- package/dist/collection/components/ontario-search-box/assets/ontario-logo--mobile.svg +6 -0
- package/dist/collection/components/ontario-search-box/ontario-search-box.css +823 -0
- package/dist/collection/components/ontario-search-box/ontario-search-box.js +584 -0
- package/dist/collection/components/ontario-search-box/ontario-search-box.js.map +1 -0
- package/dist/collection/components/ontario-search-box/test/ontario-search-box.e2e.js +20 -0
- package/dist/collection/components/ontario-search-box/test/ontario-search-box.e2e.js.map +1 -0
- package/dist/collection/components/ontario-search-box/test/ontario-search-box.spec.js +19 -0
- package/dist/collection/components/ontario-search-box/test/ontario-search-box.spec.js.map +1 -0
- package/dist/collection/components/ontario-step-indicator/ontario-step-indicator.js +5 -5
- package/dist/collection/components/ontario-table/ontario-table.js +5 -5
- package/dist/collection/components/ontario-textarea/ontario-textarea.js +3 -3
- package/dist/collection/i18n/global.i18n.json +172 -162
- package/dist/collection/utils/common/input/input.js +3 -0
- package/dist/collection/utils/common/input/input.js.map +1 -1
- package/dist/collection/utils/common/input-caption/input-caption.js +5 -3
- package/dist/collection/utils/common/input-caption/input-caption.js.map +1 -1
- package/dist/collection/utils/common/language-types.js +1 -1
- package/dist/collection/utils/common/language-types.js.map +1 -1
- package/dist/collection/utils/helper/utils-types.js +2 -0
- package/dist/collection/utils/helper/utils-types.js.map +1 -0
- package/dist/collection/utils/helper/utils.js +26 -0
- package/dist/collection/utils/helper/utils.js.map +1 -1
- package/dist/components/error-message.js +1 -324
- package/dist/components/error-message.js.map +1 -1
- package/dist/components/event-handler.js +330 -0
- package/dist/components/event-handler.js.map +1 -0
- package/dist/components/global.i18n.js +184 -173
- package/dist/components/global.i18n.js.map +1 -1
- package/dist/components/input.js +3 -0
- package/dist/components/input.js.map +1 -1
- package/dist/components/ontario-card.js +118 -66
- package/dist/components/ontario-card.js.map +1 -1
- package/dist/components/ontario-checkboxes.js +2 -1
- package/dist/components/ontario-checkboxes.js.map +1 -1
- package/dist/components/ontario-date-input.js +2 -1
- package/dist/components/ontario-date-input.js.map +1 -1
- package/dist/components/ontario-dropdown-list.js +2 -1
- package/dist/components/ontario-dropdown-list.js.map +1 -1
- package/dist/components/ontario-header.js +13 -7
- package/dist/components/ontario-header.js.map +1 -1
- package/dist/components/ontario-icon-search2.js +6 -0
- package/dist/components/ontario-icon-search2.js.map +1 -0
- package/dist/components/ontario-input.js +2 -1
- package/dist/components/ontario-input.js.map +1 -1
- package/dist/components/ontario-language-toggle2.js +180 -37
- package/dist/components/ontario-language-toggle2.js.map +1 -1
- package/dist/components/ontario-radio-buttons.js +2 -1
- package/dist/components/ontario-radio-buttons.js.map +1 -1
- package/dist/components/ontario-search-box.d.ts +11 -0
- package/dist/components/ontario-search-box.js +269 -0
- package/dist/components/ontario-search-box.js.map +1 -0
- package/dist/components/ontario-step-indicator.js +5 -5
- package/dist/components/ontario-table.js +5 -5
- package/dist/components/ontario-textarea.js +5 -4
- package/dist/components/ontario-textarea.js.map +1 -1
- package/dist/components/utils.js +28 -0
- package/dist/components/utils.js.map +1 -1
- package/dist/esm/index-603026f7.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{ontario-accordion_43.entry.js → ontario-accordion_44.entry.js} +738 -296
- package/dist/esm/ontario-accordion_44.entry.js.map +1 -0
- package/dist/esm/ontario-design-system-components.js +1 -1
- package/dist/ontario-design-system-components/i18n/global.i18n.json +172 -162
- package/dist/ontario-design-system-components/ontario-design-system-components.esm.js +1 -1
- package/dist/ontario-design-system-components/ontario-design-system-components.esm.js.map +1 -1
- package/dist/ontario-design-system-components/{p-cff41424.entry.js → p-9c3a1be9.entry.js} +2204 -1918
- package/dist/ontario-design-system-components/p-9c3a1be9.entry.js.map +1 -0
- package/dist/types/components/ontario-card/ontario-card-types.d.ts +4 -4
- package/dist/types/components/ontario-card/ontario-card.d.ts +40 -29
- package/dist/types/components/ontario-header/ontario-header.d.ts +13 -2
- package/dist/types/components/ontario-language-toggle/ontario-language-toggle.d.ts +75 -8
- package/dist/types/components/ontario-search-box/ontario-search-box.d.ts +180 -0
- package/dist/types/components.d.ts +211 -22
- package/dist/types/utils/common/input/input.d.ts +2 -1
- package/dist/types/utils/common/input-caption/input-caption.d.ts +7 -1
- package/dist/types/utils/common/language-types.d.ts +2 -1
- package/dist/types/utils/helper/utils-types.d.ts +2 -0
- package/dist/types/utils/helper/utils.d.ts +21 -0
- package/package.json +3 -3
- package/src/components/ontario-card/ontario-card-types.tsx +33 -4
- package/src/components/ontario-card/ontario-card.scss +59 -38
- package/src/components/ontario-card/ontario-card.tsx +98 -70
- package/src/components/ontario-card/readme.md +57 -27
- package/src/components/ontario-card/test/__snapshots__/ontario-cards.spec.tsx.snap +66 -0
- package/src/components/ontario-card/test/ontario-cards.spec.tsx +27 -13
- package/src/components/ontario-card-collection/readme.md +13 -13
- package/src/components/ontario-checkbox/ontario-checkboxes.scss +0 -1
- package/src/components/ontario-header/ontario-header.tsx +13 -4
- package/src/components/ontario-header/service-ontario-header.scss +0 -4
- package/src/components/ontario-header/test/ontario-header.spec.tsx +3 -3
- package/src/components/ontario-hint-text/readme.md +2 -0
- package/src/components/ontario-language-toggle/ontario-language-toggle.tsx +192 -45
- package/src/components/ontario-language-toggle/readme.md +10 -10
- package/src/components/ontario-language-toggle/test/__snapshots__/ontario-language-toggle.spec.tsx.snap +1 -1
- package/src/components/ontario-language-toggle/test/ontario-language-toggle.spec.tsx +17 -3
- package/src/components/ontario-radio-buttons/ontario-radio-buttons.scss +0 -1
- package/src/components/ontario-search-box/assets/ontario-icon-close.svg +1 -0
- package/src/components/ontario-search-box/assets/ontario-logo--mobile.svg +6 -0
- package/src/components/ontario-search-box/ontario-search-box.scss +141 -0
- package/src/components/ontario-search-box/ontario-search-box.tsx +341 -0
- package/src/components/ontario-search-box/readme.md +132 -0
- package/src/components/ontario-search-box/test/__snapshots__/ontario-search-box.spec.tsx.snap +35 -0
- package/src/components/ontario-search-box/test/ontario-search-box.e2e.ts +21 -0
- package/src/components/ontario-search-box/test/ontario-search-box.spec.tsx +22 -0
- package/src/components.d.ts +211 -22
- package/src/french.html +37 -0
- package/src/index.html +292 -38
- package/src/translations/global.i18n.json +172 -162
- package/src/utils/common/input/input.tsx +4 -1
- package/src/utils/common/input-caption/input-caption.tsx +9 -3
- package/src/utils/common/language-types.ts +2 -1
- package/src/utils/helper/utils-types.ts +2 -0
- package/src/utils/helper/utils.ts +30 -0
- package/www/build/ontario-design-system-components.esm.js +1 -1
- package/www/build/ontario-design-system-components.esm.js.map +1 -1
- package/www/build/{p-b61db0f6.js → p-84035ac3.js} +1 -1
- package/www/build/{p-cff41424.entry.js → p-9c3a1be9.entry.js} +2204 -1918
- package/www/build/p-9c3a1be9.entry.js.map +1 -0
- package/www/french.html +37 -0
- package/www/i18n/global.i18n.json +172 -162
- package/www/index.html +266 -38
- package/dist/cjs/ontario-accordion_43.cjs.entry.js.map +0 -1
- package/dist/esm/ontario-accordion_43.entry.js.map +0 -1
- package/dist/ontario-design-system-components/p-cff41424.entry.js.map +0 -1
- package/www/build/p-cff41424.entry.js.map +0 -1
|
@@ -1,154 +1,54 @@
|
|
|
1
|
-
const required = {
|
|
2
|
-
en: 'required',
|
|
3
|
-
fr: 'obligatoire',
|
|
4
|
-
};
|
|
5
|
-
const optional = {
|
|
6
|
-
en: 'optional',
|
|
7
|
-
fr: 'facultative',
|
|
8
|
-
};
|
|
9
1
|
const accessibility = {
|
|
10
|
-
moreInfo: {
|
|
11
|
-
en: 'More information on',
|
|
12
|
-
fr: 'Des renseignements supplémentaires sur',
|
|
13
|
-
},
|
|
14
2
|
checkboxHintExpander: {
|
|
15
3
|
en: 'is available after the last checkbox item.',
|
|
16
4
|
fr: 'suivront à la dernière case à cocher.',
|
|
17
5
|
},
|
|
6
|
+
moreInfo: {
|
|
7
|
+
en: 'More information on',
|
|
8
|
+
fr: 'Des renseignements supplémentaires sur',
|
|
9
|
+
},
|
|
18
10
|
singleHintExpander: {
|
|
19
11
|
en: 'field is available in the next element.',
|
|
20
12
|
fr: 'suivront au prochain élément.',
|
|
21
13
|
},
|
|
22
14
|
};
|
|
23
|
-
const backToTop = {
|
|
24
|
-
top: {
|
|
25
|
-
en: 'Top',
|
|
26
|
-
fr: 'Haut',
|
|
27
|
-
},
|
|
28
|
-
ariaLabel: {
|
|
29
|
-
en: 'Scroll back to the top',
|
|
30
|
-
fr: 'Retour en haut de la page',
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
const loading = {
|
|
34
|
-
en: 'Loading',
|
|
35
|
-
fr: 'Chargement',
|
|
36
|
-
};
|
|
37
|
-
const dropdownList = {
|
|
38
|
-
select: {
|
|
39
|
-
en: 'Select',
|
|
40
|
-
fr: 'Sélectionner',
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
const contactUs = {
|
|
44
|
-
en: 'Contact us',
|
|
45
|
-
fr: 'Contactez-nous',
|
|
46
|
-
};
|
|
47
15
|
const accessibilityLink = {
|
|
48
|
-
text: {
|
|
49
|
-
en: 'Accessibility',
|
|
50
|
-
fr: 'Accessibilité',
|
|
51
|
-
},
|
|
52
16
|
link: {
|
|
53
17
|
en: 'https://www.ontario.ca/page/accessibility',
|
|
54
18
|
fr: 'https://www.ontario.ca/fr/page/accessibilite',
|
|
55
19
|
},
|
|
56
|
-
};
|
|
57
|
-
const privacyLink = {
|
|
58
|
-
text: {
|
|
59
|
-
en: 'Privacy',
|
|
60
|
-
fr: 'Confidentialité',
|
|
61
|
-
},
|
|
62
|
-
link: {
|
|
63
|
-
en: 'https://www.ontario.ca/page/privacy-statement',
|
|
64
|
-
fr: 'https://www.ontario.ca/fr/page/declaration-concernant-la-protection-de-la-vie-privee',
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
const printerLink = {
|
|
68
20
|
text: {
|
|
69
|
-
en:
|
|
70
|
-
fr: '
|
|
71
|
-
},
|
|
72
|
-
link: {
|
|
73
|
-
en: 'https://www.ontario.ca/page/copyright-information',
|
|
74
|
-
fr: 'https://www.ontario.ca/fr/page/droits-dauteur',
|
|
75
|
-
},
|
|
76
|
-
};
|
|
77
|
-
const languageToggle = {
|
|
78
|
-
ariaLabel: {
|
|
79
|
-
en: 'Click to switch language to French',
|
|
80
|
-
fr: 'Cliquez pour changer de langue en anglais',
|
|
21
|
+
en: 'Accessibility',
|
|
22
|
+
fr: 'Accessibilité',
|
|
81
23
|
},
|
|
82
24
|
};
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
en: '
|
|
86
|
-
fr: '
|
|
87
|
-
},
|
|
88
|
-
step: {
|
|
89
|
-
en: 'Step',
|
|
90
|
-
fr: 'Étape',
|
|
25
|
+
const accordion = {
|
|
26
|
+
collapse: {
|
|
27
|
+
en: 'Collapse all',
|
|
28
|
+
fr: 'Réduire tout',
|
|
91
29
|
},
|
|
92
|
-
|
|
93
|
-
en: '
|
|
94
|
-
fr: '
|
|
30
|
+
expand: {
|
|
31
|
+
en: 'Expand all',
|
|
32
|
+
fr: 'Agrandir tout',
|
|
95
33
|
},
|
|
96
|
-
|
|
97
|
-
en: '
|
|
98
|
-
fr: '
|
|
34
|
+
expandCollapseAriaLabel: {
|
|
35
|
+
en: 'Expand or collapse the accordion',
|
|
36
|
+
fr: "Agrandissez ou réduisez l'accordéon",
|
|
99
37
|
},
|
|
100
38
|
};
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
en: '
|
|
104
|
-
fr: '
|
|
105
|
-
},
|
|
106
|
-
logoLink: {
|
|
107
|
-
en: 'https://www.ontario.ca/page/government-ontario',
|
|
108
|
-
fr: 'https://www.ontario.ca/fr/page/gouvernement-de-lontario',
|
|
109
|
-
},
|
|
110
|
-
logoAltText: {
|
|
111
|
-
en: 'Ontario.ca homepage',
|
|
112
|
-
fr: 'Page d’accueil Ontario.ca',
|
|
113
|
-
},
|
|
114
|
-
clearSearchField: {
|
|
115
|
-
en: 'Clear field',
|
|
116
|
-
fr: 'Vider le champ',
|
|
117
|
-
},
|
|
118
|
-
submit: {
|
|
119
|
-
en: 'Submit',
|
|
120
|
-
fr: 'Soumission',
|
|
121
|
-
},
|
|
122
|
-
search: {
|
|
123
|
-
en: 'Search',
|
|
124
|
-
fr: 'Rechercher',
|
|
125
|
-
},
|
|
126
|
-
serviceOntario: {
|
|
127
|
-
en: 'ServiceOntario',
|
|
128
|
-
fr: 'ServiceOntario',
|
|
129
|
-
},
|
|
130
|
-
openMenu: {
|
|
131
|
-
en: 'Show navigation menu',
|
|
132
|
-
fr: 'Ouvrir le menu de navigation',
|
|
133
|
-
},
|
|
134
|
-
closeMenu: {
|
|
135
|
-
en: 'Hide navigation menu',
|
|
136
|
-
fr: 'Fermer le menu de navigation',
|
|
137
|
-
},
|
|
138
|
-
close: {
|
|
139
|
-
en: 'close',
|
|
140
|
-
fr: 'fermer',
|
|
39
|
+
const backToTop = {
|
|
40
|
+
ariaLabel: {
|
|
41
|
+
en: 'Scroll back to the top',
|
|
42
|
+
fr: 'Retour en haut de la page',
|
|
141
43
|
},
|
|
142
|
-
|
|
143
|
-
en: '
|
|
144
|
-
fr: '
|
|
44
|
+
top: {
|
|
45
|
+
en: 'Top',
|
|
46
|
+
fr: 'Haut',
|
|
145
47
|
},
|
|
146
48
|
};
|
|
147
|
-
const
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
fr: 'Ce champ est obligatoire.',
|
|
151
|
-
},
|
|
49
|
+
const contactUs = {
|
|
50
|
+
en: 'Contact us',
|
|
51
|
+
fr: 'Contactez-nous',
|
|
152
52
|
};
|
|
153
53
|
const dateInput = {
|
|
154
54
|
caption: {
|
|
@@ -156,43 +56,23 @@ const dateInput = {
|
|
|
156
56
|
fr: 'Dates exactes',
|
|
157
57
|
},
|
|
158
58
|
day: {
|
|
159
|
-
label: {
|
|
160
|
-
en: 'Day',
|
|
161
|
-
fr: 'Jour',
|
|
162
|
-
},
|
|
163
59
|
accessibility: {
|
|
164
60
|
en: '4 digits',
|
|
165
61
|
fr: '4 chiffres',
|
|
166
62
|
},
|
|
167
|
-
},
|
|
168
|
-
month: {
|
|
169
63
|
label: {
|
|
170
|
-
en: '
|
|
171
|
-
fr: '
|
|
172
|
-
},
|
|
173
|
-
accessibility: {
|
|
174
|
-
en: '1 or 2 digits',
|
|
175
|
-
fr: '1 ou 2 chiffres',
|
|
176
|
-
},
|
|
177
|
-
},
|
|
178
|
-
year: {
|
|
179
|
-
label: {
|
|
180
|
-
en: 'Year',
|
|
181
|
-
fr: 'Année',
|
|
182
|
-
},
|
|
183
|
-
accessibility: {
|
|
184
|
-
en: '1 or 2 digits',
|
|
185
|
-
fr: '1 ou 2 chiffres',
|
|
64
|
+
en: 'Day',
|
|
65
|
+
fr: 'Jour',
|
|
186
66
|
},
|
|
187
67
|
},
|
|
188
68
|
error: {
|
|
189
69
|
en: {
|
|
190
70
|
emptyDay: 'Enter the day.',
|
|
191
|
-
emptyMonth: 'Enter the month.',
|
|
192
|
-
emptyYear: 'Enter the year.',
|
|
193
71
|
emptyDayAndMonth: 'Enter the month and day.',
|
|
194
72
|
emptyDayAndYear: 'Enter the year and day.',
|
|
73
|
+
emptyMonth: 'Enter the month.',
|
|
195
74
|
emptyMonthAndYear: 'Enter the year and month.',
|
|
75
|
+
emptyYear: 'Enter the year.',
|
|
196
76
|
invalidDate: 'Enter a valid date.',
|
|
197
77
|
invalidDay: 'Enter a valid day.',
|
|
198
78
|
invalidMonth: 'Enter a valid month.',
|
|
@@ -200,49 +80,180 @@ const dateInput = {
|
|
|
200
80
|
},
|
|
201
81
|
fr: {
|
|
202
82
|
emptyDay: 'Saisissez le jour.',
|
|
203
|
-
emptyMonth: 'Saisissez le mois.',
|
|
204
|
-
emptyYear: 'Saisissez l’année.',
|
|
205
83
|
emptyDayAndMonth: 'Saisissez le mois et le jour.',
|
|
206
84
|
emptyDayAndYear: 'Saisissez l’année et le jour.',
|
|
85
|
+
emptyMonth: 'Saisissez le mois.',
|
|
207
86
|
emptyMonthAndYear: 'Saisissez l’année et le mois.',
|
|
87
|
+
emptyYear: 'Saisissez l’année.',
|
|
208
88
|
invalidDate: 'Saisissez une date valide.',
|
|
209
89
|
invalidDay: 'Saisissez un jour valide.',
|
|
210
90
|
invalidMonth: 'Saisissez un mois valide.',
|
|
211
91
|
invalidYear: 'Saisissez une année valide.',
|
|
212
92
|
},
|
|
213
93
|
},
|
|
94
|
+
month: {
|
|
95
|
+
accessibility: {
|
|
96
|
+
en: '1 or 2 digits',
|
|
97
|
+
fr: '1 ou 2 chiffres',
|
|
98
|
+
},
|
|
99
|
+
label: {
|
|
100
|
+
en: 'Month',
|
|
101
|
+
fr: 'Mois',
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
year: {
|
|
105
|
+
accessibility: {
|
|
106
|
+
en: '1 or 2 digits',
|
|
107
|
+
fr: '1 ou 2 chiffres',
|
|
108
|
+
},
|
|
109
|
+
label: {
|
|
110
|
+
en: 'Year',
|
|
111
|
+
fr: 'Année',
|
|
112
|
+
},
|
|
113
|
+
},
|
|
214
114
|
};
|
|
215
|
-
const
|
|
216
|
-
|
|
217
|
-
en: '
|
|
218
|
-
fr: '
|
|
115
|
+
const dropdownList = {
|
|
116
|
+
select: {
|
|
117
|
+
en: 'Select',
|
|
118
|
+
fr: 'Sélectionner',
|
|
219
119
|
},
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
120
|
+
};
|
|
121
|
+
const header = {
|
|
122
|
+
clearSearchField: {
|
|
123
|
+
en: 'Clear field',
|
|
124
|
+
fr: 'Vider le champ',
|
|
223
125
|
},
|
|
224
|
-
|
|
225
|
-
en: '
|
|
226
|
-
fr:
|
|
126
|
+
close: {
|
|
127
|
+
en: 'close',
|
|
128
|
+
fr: 'fermer',
|
|
129
|
+
},
|
|
130
|
+
closeMenu: {
|
|
131
|
+
en: 'Hide navigation menu',
|
|
132
|
+
fr: 'Fermer le menu de navigation',
|
|
133
|
+
},
|
|
134
|
+
closeSearch: {
|
|
135
|
+
en: 'Close search bar',
|
|
136
|
+
fr: 'Fermer la barre de recherche',
|
|
137
|
+
},
|
|
138
|
+
logoAltText: {
|
|
139
|
+
en: 'Ontario.ca homepage',
|
|
140
|
+
fr: 'Page d’accueil Ontario.ca',
|
|
141
|
+
},
|
|
142
|
+
logoLink: {
|
|
143
|
+
en: 'https://www.ontario.ca/page/government-ontario',
|
|
144
|
+
fr: 'https://www.ontario.ca/fr/page/gouvernement-de-lontario',
|
|
145
|
+
},
|
|
146
|
+
ontarioSearchURL: {
|
|
147
|
+
en: 'https://www.ontario.ca/search/search-results?query=',
|
|
148
|
+
fr: 'https://www.ontario.ca/fr/recherche/resultats-de-recherche/?query=',
|
|
149
|
+
},
|
|
150
|
+
openMenu: {
|
|
151
|
+
en: 'Show navigation menu',
|
|
152
|
+
fr: 'Ouvrir le menu de navigation',
|
|
153
|
+
},
|
|
154
|
+
search: {
|
|
155
|
+
en: 'Search',
|
|
156
|
+
fr: 'Rechercher',
|
|
157
|
+
},
|
|
158
|
+
serviceOntario: {
|
|
159
|
+
en: 'ServiceOntario',
|
|
160
|
+
fr: 'ServiceOntario',
|
|
161
|
+
},
|
|
162
|
+
submit: {
|
|
163
|
+
en: 'Submit',
|
|
164
|
+
fr: 'Soumission',
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
const input = {
|
|
168
|
+
requiredFieldError: {
|
|
169
|
+
en: 'This is a required field.',
|
|
170
|
+
fr: 'Ce champ est obligatoire.',
|
|
171
|
+
},
|
|
172
|
+
};
|
|
173
|
+
const languageToggle = {
|
|
174
|
+
ariaLabel: {
|
|
175
|
+
en: 'Click to switch the language to English',
|
|
176
|
+
fr: 'Cliquez pour changer la langue en français',
|
|
177
|
+
},
|
|
178
|
+
};
|
|
179
|
+
const loading = {
|
|
180
|
+
en: 'Loading',
|
|
181
|
+
fr: 'Chargement',
|
|
182
|
+
};
|
|
183
|
+
const optional = {
|
|
184
|
+
en: 'optional',
|
|
185
|
+
fr: 'facultative',
|
|
186
|
+
};
|
|
187
|
+
const printerLink = {
|
|
188
|
+
link: {
|
|
189
|
+
en: 'https://www.ontario.ca/page/copyright-information',
|
|
190
|
+
fr: 'https://www.ontario.ca/fr/page/droits-dauteur',
|
|
191
|
+
},
|
|
192
|
+
text: {
|
|
193
|
+
en: "King's Printer for Ontario,",
|
|
194
|
+
fr: 'Imprimeur du Roi pour l’Ontario,',
|
|
195
|
+
},
|
|
196
|
+
};
|
|
197
|
+
const privacyLink = {
|
|
198
|
+
link: {
|
|
199
|
+
en: 'https://www.ontario.ca/page/privacy-statement',
|
|
200
|
+
fr: 'https://www.ontario.ca/fr/page/declaration-concernant-la-protection-de-la-vie-privee',
|
|
201
|
+
},
|
|
202
|
+
text: {
|
|
203
|
+
en: 'Privacy',
|
|
204
|
+
fr: 'Confidentialité',
|
|
205
|
+
},
|
|
206
|
+
};
|
|
207
|
+
const stepIndicator = {
|
|
208
|
+
back: {
|
|
209
|
+
en: 'Back',
|
|
210
|
+
fr: 'Retour',
|
|
211
|
+
},
|
|
212
|
+
complete: {
|
|
213
|
+
en: 'complete',
|
|
214
|
+
fr: 'complet',
|
|
215
|
+
},
|
|
216
|
+
of: {
|
|
217
|
+
en: 'of',
|
|
218
|
+
fr: 'sur',
|
|
219
|
+
},
|
|
220
|
+
step: {
|
|
221
|
+
en: 'Step',
|
|
222
|
+
fr: 'Étape',
|
|
223
|
+
},
|
|
224
|
+
};
|
|
225
|
+
const siteLanguage = {
|
|
226
|
+
fullWord: {
|
|
227
|
+
en: 'English',
|
|
228
|
+
fr: 'Français',
|
|
229
|
+
},
|
|
230
|
+
abbreviation: {
|
|
231
|
+
en: 'en',
|
|
232
|
+
fr: 'fr',
|
|
227
233
|
},
|
|
228
234
|
};
|
|
235
|
+
const required = {
|
|
236
|
+
en: 'required',
|
|
237
|
+
fr: 'obligatoire',
|
|
238
|
+
};
|
|
229
239
|
const translations = {
|
|
230
|
-
required: required,
|
|
231
|
-
optional: optional,
|
|
232
240
|
accessibility: accessibility,
|
|
241
|
+
accessibilityLink: accessibilityLink,
|
|
242
|
+
accordion: accordion,
|
|
233
243
|
backToTop: backToTop,
|
|
234
|
-
loading: loading,
|
|
235
|
-
dropdownList: dropdownList,
|
|
236
244
|
contactUs: contactUs,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
printerLink: printerLink,
|
|
240
|
-
languageToggle: languageToggle,
|
|
241
|
-
stepIndicator: stepIndicator,
|
|
245
|
+
dateInput: dateInput,
|
|
246
|
+
dropdownList: dropdownList,
|
|
242
247
|
header: header,
|
|
243
248
|
input: input,
|
|
244
|
-
|
|
245
|
-
|
|
249
|
+
languageToggle: languageToggle,
|
|
250
|
+
loading: loading,
|
|
251
|
+
optional: optional,
|
|
252
|
+
printerLink: printerLink,
|
|
253
|
+
privacyLink: privacyLink,
|
|
254
|
+
stepIndicator: stepIndicator,
|
|
255
|
+
siteLanguage: siteLanguage,
|
|
256
|
+
required: required,
|
|
246
257
|
};
|
|
247
258
|
|
|
248
259
|
export { translations as t };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"global.i18n.js","mappings":"
|
|
1
|
+
{"file":"global.i18n.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
package/dist/components/input.js
CHANGED
|
@@ -27,6 +27,7 @@ const Input = (_a) => {
|
|
|
27
27
|
onChange,
|
|
28
28
|
onBlur,
|
|
29
29
|
onFocus,
|
|
30
|
+
onClick,
|
|
30
31
|
ariaInvalid,
|
|
31
32
|
ariaDescribedBy,
|
|
32
33
|
ref,
|
|
@@ -47,6 +48,7 @@ const Input = (_a) => {
|
|
|
47
48
|
'onChange',
|
|
48
49
|
'onBlur',
|
|
49
50
|
'onFocus',
|
|
51
|
+
'onClick',
|
|
50
52
|
'ariaInvalid',
|
|
51
53
|
'ariaDescribedBy',
|
|
52
54
|
'ref',
|
|
@@ -70,6 +72,7 @@ const Input = (_a) => {
|
|
|
70
72
|
'onChange': onChange,
|
|
71
73
|
'onBlur': onBlur,
|
|
72
74
|
'onFocus': onFocus,
|
|
75
|
+
'onClick': onClick,
|
|
73
76
|
'inputMode': inputMode,
|
|
74
77
|
'ref': ref,
|
|
75
78
|
'aria-invalid': ariaInvalid,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"input.js","mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"file":"input.js","mappings":";;;;;;;;;;;;;MAwBa,KAAK,GAAoC,CAAC,EAqBtD;QArBsD,EACtD,YAAY,EACZ,SAAS,EACT,EAAE,EACF,IAAI,EACJ,WAAW,EACX,IAAI,EACJ,KAAK,EACL,OAAO,EACP,QAAQ,EACR,SAAS,EACT,OAAO,EACP,QAAQ,EACR,MAAM,EACN,OAAO,EACP,OAAO,EACP,WAAW,EACX,eAAe,EACf,GAAG,EACH,SAAS,OAET,EADG,KAAK,cApB8C,4NAqBtD,CADQ;IAER,QACC,2BACC,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,SAAS,EAChB,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,CAAC,CAAC,QAAQ,EACpB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,GAAG,kBACM,WAAW,sBACP,eAAe,IAC7B,KAAK,EACR,EACD;AACH;;;;","names":[],"sources":["src/utils/common/input/input.tsx"],"sourcesContent":["import { FunctionalComponent, h } from '@stencil/core';\n\nexport type InputProps = {\n\tautoComplete?: string;\n\tclassName?: string;\n\tid: string;\n\tname?: string;\n\ttype: string;\n\tvalue?: string | number;\n\tchecked?: boolean;\n\trequired?: boolean;\n\tinputMode?: string;\n\tplaceholder?: string;\n\tariaInvalid?: boolean;\n\tariaDescribedBy?: string;\n\tonKeyDown?: ((event: Event) => void) | undefined;\n\tonInput?: ((event: Event) => void) | undefined;\n\tonChange?: ((event: Event) => void) | undefined;\n\tonBlur?: ((event: Event) => void) | undefined;\n\tonFocus?: ((event: Event) => void) | undefined;\n\tonClick?: ((event: Event) => void) | undefined;\n\tref?: (el: HTMLInputElement) => HTMLElement;\n};\n\nexport const Input: FunctionalComponent<InputProps> = ({\n\tautoComplete,\n\tclassName,\n\tid,\n\tname,\n\tplaceholder,\n\ttype,\n\tvalue,\n\tchecked,\n\trequired,\n\tonKeyDown,\n\tonInput,\n\tonChange,\n\tonBlur,\n\tonFocus,\n\tonClick,\n\tariaInvalid,\n\tariaDescribedBy,\n\tref,\n\tinputMode,\n\t...props\n}) => {\n\treturn (\n\t\t<input\n\t\t\tautoComplete={autoComplete}\n\t\t\tclass={className}\n\t\t\tid={id}\n\t\t\tname={name}\n\t\t\ttype={type}\n\t\t\tvalue={value}\n\t\t\tchecked={checked}\n\t\t\tplaceholder={placeholder}\n\t\t\trequired={!!required}\n\t\t\tonKeyDown={onKeyDown}\n\t\t\tonInput={onInput}\n\t\t\tonChange={onChange}\n\t\t\tonBlur={onBlur}\n\t\t\tonFocus={onFocus}\n\t\t\tonClick={onClick}\n\t\t\tinputMode={inputMode}\n\t\t\tref={ref}\n\t\t\taria-invalid={ariaInvalid}\n\t\t\taria-describedby={ariaDescribedBy}\n\t\t\t{...props}\n\t\t/>\n\t);\n};\n"],"version":3}
|