@openmrs/ngx-formentry 3.2.1-pre.275 → 3.2.1-pre.276
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/package.json +5 -1
- package/src/app/adult-1.4.json +6858 -0
- package/src/app/adult-1.6.json +8082 -0
- package/src/app/adult.json +5700 -0
- package/src/app/app.component.html +25 -0
- package/src/app/app.component.spec.ts +23 -0
- package/src/app/app.component.ts +414 -0
- package/src/app/app.module.ts +24 -0
- package/src/app/mock/mock-form.ts +101 -0
- package/src/app/mock/mock-obs.ts +440 -0
- package/src/app/mock/mock-translations.ts +73 -0
- package/src/app/mock/obs.json +4188 -0
- package/src/app/mock/orders.json +338 -0
- package/src/app/mock/schema/adult-return.json +72 -0
- package/src/app/mock/schema/compiled-adult-return.json +706 -0
- package/src/app/mock/schema/component_art.json +1705 -0
- package/src/app/mock/schema/component_hospitalization.json +133 -0
- package/src/app/mock/schema/component_preclinic-review.json +480 -0
- package/src/app/ncd-registration-1.0.json +456 -0
- package/src/app/translate/json-loader.ts +10 -0
- package/src/app/translate/translate.module.ts +23 -0
- package/src/assets/.gitkeep +0 -0
- package/src/assets/carbon.select.theme.css +356 -0
- package/src/environments/environment.prod.ts +3 -0
- package/src/environments/environment.ts +15 -0
- package/src/favicon.ico +0 -0
- package/src/index.html +23 -0
- package/src/karma.conf.js +37 -0
- package/src/main.ts +13 -0
- package/src/polyfills.ts +68 -0
- package/src/styles.scss +8 -0
- package/src/test.ts +23 -0
- package/src/translations/en.json +53 -0
- package/src/translations/fr.json +53 -0
- package/src/tsconfig.app.json +13 -0
- package/src/tsconfig.spec.json +9 -0
- package/src/tslint.json +9 -0
- package/src/typings.d.ts +4 -0
- package/.editorconfig +0 -13
- package/.eslintrc.json +0 -45
- package/.prettierignore +0 -40
- package/.prettierrc +0 -6
- package/.turbo/turbo-build:lib.log +0 -37
- package/.yarn/plugins/@yarnpkg/plugin-version.cjs +0 -550
- package/angular.json +0 -164
- package/proxy.conf.json +0 -6
- package/scripts/build.sh +0 -2
- package/tsconfig.json +0 -29
- package/turbo.json +0 -18
- /package/{.yarn/versions/6b8f5374.yml → src/app/app.component.css} +0 -0
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
.ng-select {
|
|
2
|
+
font-family: 'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono',
|
|
3
|
+
'Bitstream Vera Sans Mono', Courier, monospace;
|
|
4
|
+
padding-bottom: 1.25em;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.ng-select.ng-select-disabled .ng-select-container:after {
|
|
8
|
+
border-bottom-color: transparent;
|
|
9
|
+
background-image: linear-gradient(
|
|
10
|
+
to right,
|
|
11
|
+
rgba(0, 0, 0, 0.42) 0%,
|
|
12
|
+
rgba(0, 0, 0, 0.42) 33%,
|
|
13
|
+
transparent 0%
|
|
14
|
+
);
|
|
15
|
+
background-size: 4px 1px;
|
|
16
|
+
background-repeat: repeat-x;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ng-select.ng-select-disabled
|
|
20
|
+
.ng-select-container
|
|
21
|
+
.ng-value-container
|
|
22
|
+
.ng-value {
|
|
23
|
+
color: rgba(0, 0, 0, 0.38);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.ng-select.ng-select-disabled
|
|
27
|
+
.ng-select-container
|
|
28
|
+
.ng-value-container
|
|
29
|
+
.ng-placeholder {
|
|
30
|
+
color: rgba(0, 0, 0, 0.38);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.ng-select.ng-select-disabled .ng-arrow-wrapper .ng-arrow,
|
|
34
|
+
.ng-select.ng-select-disabled .ng-clear-wrapper {
|
|
35
|
+
color: rgba(0, 0, 0, 0.38);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.ng-select.ng-select-focused .ng-select-container:after {
|
|
39
|
+
border-color: var(--color-gray-100);
|
|
40
|
+
border-width: 2px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ng-select.ng-select-focused
|
|
44
|
+
.ng-select-container
|
|
45
|
+
.ng-value-container
|
|
46
|
+
.ng-placeholder {
|
|
47
|
+
transform: translateY(-1.28125em) scale(0.75) perspective(100px)
|
|
48
|
+
translateZ(0.001px);
|
|
49
|
+
color: var(--color-gray-100);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ng-select.ng-select-focused .ng-select-container .ng-arrow-wrapper .ng-arrow {
|
|
53
|
+
color: var(--color-gray-100);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ng-select .ng-has-value .ng-placeholder,
|
|
57
|
+
.ng-select.ng-select-filtered .ng-select-container .ng-placeholder {
|
|
58
|
+
display: initial;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.ng-select .ng-has-value .ng-placeholder,
|
|
62
|
+
.ng-select.ng-select-opened .ng-placeholder {
|
|
63
|
+
transform: translateY(-1.28125em) scale(0.75) perspective(100px)
|
|
64
|
+
translateZ(0.001px);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.ng-select .ng-select-container {
|
|
68
|
+
align-items: baseline;
|
|
69
|
+
min-height: 40px;
|
|
70
|
+
padding: 0 1rem;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.ng-select .ng-select-container:after {
|
|
74
|
+
border-bottom: 1px solid var(--color-gray-100);
|
|
75
|
+
content: '';
|
|
76
|
+
width: 100%;
|
|
77
|
+
bottom: 0;
|
|
78
|
+
left: 0;
|
|
79
|
+
position: absolute;
|
|
80
|
+
transition: border-color 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.ng-select .ng-select-container .ng-value-container {
|
|
84
|
+
align-items: stretch;
|
|
85
|
+
padding: 0;
|
|
86
|
+
border-top: 0.84375em solid transparent;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.ng-select .ng-select-container .ng-value-container .ng-placeholder {
|
|
90
|
+
position: absolute;
|
|
91
|
+
color: rgba(0, 0, 0, 0.54);
|
|
92
|
+
transform-origin: 0 0;
|
|
93
|
+
transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
|
|
94
|
+
color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
|
|
95
|
+
width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.ng-select .ng-select-container .ng-value-container .ng-input {
|
|
99
|
+
bottom: 0.4375em;
|
|
100
|
+
padding: 0 1rem;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.ng-select.ng-select-single .ng-select-container .ng-arrow-wrapper {
|
|
104
|
+
align-self: flex-end;
|
|
105
|
+
bottom: 9px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.ng-select.ng-select-single .ng-select-container .ng-clear-wrapper {
|
|
109
|
+
align-self: center;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.ng-select.ng-select-multiple.ng-select-disabled
|
|
113
|
+
.ng-select-container
|
|
114
|
+
.ng-value-container
|
|
115
|
+
.ng-value {
|
|
116
|
+
background-color: rgba(0, 0, 0, 0.12);
|
|
117
|
+
color: rgba(0, 0, 0, 0.26);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.ng-select.ng-select-multiple
|
|
121
|
+
.ng-select-container
|
|
122
|
+
.ng-value-container
|
|
123
|
+
.ng-value {
|
|
124
|
+
background-color: var(--color-gray-100);
|
|
125
|
+
border-radius: 2px;
|
|
126
|
+
color: #fff;
|
|
127
|
+
padding: 2px 5px;
|
|
128
|
+
margin: 0 0.4375em 0.4375em 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
[dir='rtl']
|
|
132
|
+
.ng-select.ng-select-multiple
|
|
133
|
+
.ng-select-container
|
|
134
|
+
.ng-value-container
|
|
135
|
+
.ng-value {
|
|
136
|
+
margin: 0 0 0.4375em 0.4375em;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.ng-select.ng-select-multiple
|
|
140
|
+
.ng-select-container
|
|
141
|
+
.ng-value-container
|
|
142
|
+
.ng-value.ng-value-disabled {
|
|
143
|
+
background-color: rgba(0, 0, 0, 0.12);
|
|
144
|
+
color: rgba(0, 0, 0, 0.26);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.ng-select.ng-select-multiple
|
|
148
|
+
.ng-select-container
|
|
149
|
+
.ng-value-container
|
|
150
|
+
.ng-value
|
|
151
|
+
.ng-value-label {
|
|
152
|
+
font-size: 14px;
|
|
153
|
+
font-weight: 500;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.ng-select.ng-select-multiple
|
|
157
|
+
.ng-select-container
|
|
158
|
+
.ng-value-container
|
|
159
|
+
.ng-value
|
|
160
|
+
.ng-value-icon {
|
|
161
|
+
color: rgba(255, 255, 255, 0.54);
|
|
162
|
+
padding-right: 5px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
[dir='rtl']
|
|
166
|
+
.ng-select.ng-select-multiple
|
|
167
|
+
.ng-select-container
|
|
168
|
+
.ng-value-container
|
|
169
|
+
.ng-value
|
|
170
|
+
.ng-value-icon {
|
|
171
|
+
padding-left: 5px;
|
|
172
|
+
padding-right: 0;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.ng-select.ng-select-multiple
|
|
176
|
+
.ng-select-container
|
|
177
|
+
.ng-value-container
|
|
178
|
+
.ng-value
|
|
179
|
+
.ng-value-icon:hover {
|
|
180
|
+
color: rgba(255, 255, 255, 0.87);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.ng-select.ng-select-multiple
|
|
184
|
+
.ng-select-container
|
|
185
|
+
.ng-value-container
|
|
186
|
+
.ng-input {
|
|
187
|
+
line-height: 1.375em;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.ng-select.ng-select-multiple .ng-select-container.ng-has-value {
|
|
191
|
+
align-items: center;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.ng-select.ng-select-multiple
|
|
195
|
+
.ng-select-container.ng-has-value
|
|
196
|
+
.ng-value-container {
|
|
197
|
+
padding-bottom: 0;
|
|
198
|
+
padding-top: 0.1875em;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.ng-select.ng-select-multiple
|
|
202
|
+
.ng-select-container.ng-has-value
|
|
203
|
+
.ng-clear-wrapper,
|
|
204
|
+
.ng-select.ng-select-multiple
|
|
205
|
+
.ng-select-container.ng-has-value
|
|
206
|
+
.ng-arrow-wrapper {
|
|
207
|
+
border-top: 0.84375em solid transparent;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.ng-select .ng-clear-wrapper {
|
|
211
|
+
color: rgba(0, 0, 0, 0.54);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.ng-select .ng-clear-wrapper:hover {
|
|
215
|
+
color: rgba(0, 0, 0, 0.87);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.ng-select .ng-arrow-wrapper {
|
|
219
|
+
bottom: 2px;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.ng-select .ng-arrow-wrapper .ng-arrow {
|
|
223
|
+
border-left: 5px solid transparent;
|
|
224
|
+
border-right: 5px solid transparent;
|
|
225
|
+
border-top: 5px solid;
|
|
226
|
+
margin: 0 4px;
|
|
227
|
+
color: rgba(0, 0, 0, 0.54);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.ng-select .ng-spinner-zone {
|
|
231
|
+
top: 3px;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.ng-dropdown-panel {
|
|
235
|
+
background: #fff;
|
|
236
|
+
left: 0;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.ng-dropdown-panel.ng-select-bottom {
|
|
240
|
+
top: calc(100% - 1.25em);
|
|
241
|
+
box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
|
|
242
|
+
0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.ng-dropdown-panel.ng-select-top {
|
|
246
|
+
bottom: calc(100% - 0.84375em);
|
|
247
|
+
box-shadow: 0 -5px 5px -3px rgba(0, 0, 0, 0.2),
|
|
248
|
+
0 -8px 10px 1px rgba(0, 0, 0, 0.14), 0 -3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.ng-dropdown-panel.multiple .ng-option.selected {
|
|
252
|
+
background: #fff;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.ng-dropdown-panel.multiple .ng-option.marked {
|
|
256
|
+
background: rgba(0, 0, 0, 0.04);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.ng-dropdown-panel .ng-dropdown-header {
|
|
260
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
|
|
261
|
+
padding: 0 16px;
|
|
262
|
+
line-height: 3em;
|
|
263
|
+
min-height: 3em;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.ng-dropdown-panel .ng-dropdown-footer {
|
|
267
|
+
border-top: 1px solid rgba(0, 0, 0, 0.12);
|
|
268
|
+
padding: 0 16px;
|
|
269
|
+
line-height: 3em;
|
|
270
|
+
min-height: 3em;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup {
|
|
274
|
+
user-select: none;
|
|
275
|
+
cursor: pointer;
|
|
276
|
+
line-height: 3em;
|
|
277
|
+
height: 3em;
|
|
278
|
+
padding: 0 16px;
|
|
279
|
+
color: rgba(0, 0, 0, 0.54);
|
|
280
|
+
font-weight: 500;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked {
|
|
284
|
+
background: rgba(0, 0, 0, 0.04);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled {
|
|
288
|
+
cursor: default;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected {
|
|
292
|
+
background: rgba(0, 0, 0, 0.12);
|
|
293
|
+
color: var(--color-gray-100);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.ng-dropdown-panel .ng-dropdown-panel-items .ng-option {
|
|
297
|
+
line-height: 3em;
|
|
298
|
+
min-height: 3em;
|
|
299
|
+
white-space: nowrap;
|
|
300
|
+
overflow: hidden;
|
|
301
|
+
text-overflow: ellipsis;
|
|
302
|
+
padding: 0 16px;
|
|
303
|
+
text-decoration: none;
|
|
304
|
+
position: relative;
|
|
305
|
+
color: rgba(0, 0, 0, 0.87);
|
|
306
|
+
text-align: left;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
[dir='rtl'] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option {
|
|
310
|
+
text-align: right;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked {
|
|
314
|
+
background: rgba(0, 0, 0, 0.04);
|
|
315
|
+
color: rgba(0, 0, 0, 0.87);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected {
|
|
319
|
+
background: rgba(0, 0, 0, 0.12);
|
|
320
|
+
color: var(--color-gray-100);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled {
|
|
324
|
+
color: rgba(0, 0, 0, 0.38);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child {
|
|
328
|
+
padding-left: 32px;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
[dir='rtl']
|
|
332
|
+
.ng-dropdown-panel
|
|
333
|
+
.ng-dropdown-panel-items
|
|
334
|
+
.ng-option.ng-option-child {
|
|
335
|
+
padding-right: 32px;
|
|
336
|
+
padding-left: 0;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label {
|
|
340
|
+
padding-right: 5px;
|
|
341
|
+
font-size: 80%;
|
|
342
|
+
font-weight: 400;
|
|
343
|
+
color: rgba(0, 0, 0, 0.38);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
[dir='rtl']
|
|
347
|
+
.ng-dropdown-panel
|
|
348
|
+
.ng-dropdown-panel-items
|
|
349
|
+
.ng-option
|
|
350
|
+
.ng-tag-label {
|
|
351
|
+
padding-left: 5px;
|
|
352
|
+
padding-right: 0;
|
|
353
|
+
}
|
|
354
|
+
.ng-select-container {
|
|
355
|
+
background-color: #f4f4f4;
|
|
356
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// This file can be replaced during build by using the `fileReplacements` array.
|
|
2
|
+
// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
|
|
3
|
+
// The list of file replacements can be found in `angular.json`.
|
|
4
|
+
|
|
5
|
+
export const environment = {
|
|
6
|
+
production: false
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* In development mode, to ignore zone related error stack frames such as
|
|
11
|
+
* `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can
|
|
12
|
+
* import the following file, but please comment it out in production mode
|
|
13
|
+
* because it will have performance impact when throw error
|
|
14
|
+
*/
|
|
15
|
+
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
|
package/src/favicon.ico
ADDED
|
Binary file
|
package/src/index.html
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<title>OpenMRS Formentry</title>
|
|
6
|
+
<base href="/" />
|
|
7
|
+
|
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
9
|
+
<link rel="icon" type="image/x-icon" href="favicon.ico" />
|
|
10
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/6.6.1/system.min.js"></script>
|
|
11
|
+
<script type="systemjs-importmap">
|
|
12
|
+
{
|
|
13
|
+
"imports": {
|
|
14
|
+
"mwc-switch": "https://unpkg.com/@material/mwc-switch@0.18.0/mwc-switch.js?module"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
</script>
|
|
18
|
+
</head>
|
|
19
|
+
|
|
20
|
+
<body>
|
|
21
|
+
<app-root></app-root>
|
|
22
|
+
</body>
|
|
23
|
+
</html>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// Karma configuration file, see link for more information
|
|
2
|
+
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
+
|
|
4
|
+
module.exports = function (config) {
|
|
5
|
+
config.set({
|
|
6
|
+
basePath: '',
|
|
7
|
+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
8
|
+
plugins: [
|
|
9
|
+
require('karma-jasmine'),
|
|
10
|
+
require('karma-chrome-launcher'),
|
|
11
|
+
require('karma-firefox-launcher'),
|
|
12
|
+
require('karma-jasmine-html-reporter'),
|
|
13
|
+
require('karma-coverage-istanbul-reporter'),
|
|
14
|
+
require('@angular-devkit/build-angular/plugins/karma')
|
|
15
|
+
],
|
|
16
|
+
client: {
|
|
17
|
+
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
18
|
+
},
|
|
19
|
+
coverageIstanbulReporter: {
|
|
20
|
+
dir: require('path').join(__dirname, '../coverage'),
|
|
21
|
+
reports: ['html', 'lcovonly'],
|
|
22
|
+
fixWebpackSourcePaths: true
|
|
23
|
+
},
|
|
24
|
+
reporters: ['progress', 'kjhtml'],
|
|
25
|
+
port: 9876,
|
|
26
|
+
colors: true,
|
|
27
|
+
logLevel: config.LOG_INFO,
|
|
28
|
+
autoWatch: true,
|
|
29
|
+
singleRun: false,
|
|
30
|
+
browsers: ['ChromeHeadless'],
|
|
31
|
+
flags: ['--disable-gpu', '--no-sandbox'],
|
|
32
|
+
browserDisconnectTimeout: 100000,
|
|
33
|
+
browserNoActivityTimeout: 100000,
|
|
34
|
+
browserDisconnectTolerance: 3,
|
|
35
|
+
captureTimeout: 100000
|
|
36
|
+
});
|
|
37
|
+
};
|
package/src/main.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { enableProdMode } from '@angular/core';
|
|
2
|
+
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
3
|
+
|
|
4
|
+
import { AppModule } from './app/app.module';
|
|
5
|
+
import { environment } from './environments/environment';
|
|
6
|
+
|
|
7
|
+
if (environment.production) {
|
|
8
|
+
enableProdMode();
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
platformBrowserDynamic()
|
|
12
|
+
.bootstrapModule(AppModule)
|
|
13
|
+
.catch((err) => console.error('Error starting app: ', err));
|
package/src/polyfills.ts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file includes polyfills needed by Angular and is loaded before the app.
|
|
3
|
+
* You can add your own extra polyfills to this file.
|
|
4
|
+
*
|
|
5
|
+
* This file is divided into 2 sections:
|
|
6
|
+
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
|
|
7
|
+
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
|
|
8
|
+
* file.
|
|
9
|
+
*
|
|
10
|
+
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
|
|
11
|
+
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
|
|
12
|
+
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
|
|
13
|
+
*
|
|
14
|
+
* Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/***************************************************************************************************
|
|
18
|
+
* BROWSER POLYFILLS
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
|
|
22
|
+
// import 'core-js/es6/symbol';
|
|
23
|
+
// import 'core-js/es6/object';
|
|
24
|
+
// import 'core-js/es6/function';
|
|
25
|
+
// import 'core-js/es6/parse-int';
|
|
26
|
+
// import 'core-js/es6/parse-float';
|
|
27
|
+
// import 'core-js/es6/number';
|
|
28
|
+
// import 'core-js/es6/math';
|
|
29
|
+
// import 'core-js/es6/string';
|
|
30
|
+
// import 'core-js/es6/date';
|
|
31
|
+
// import 'core-js/es6/array';
|
|
32
|
+
// import 'core-js/es6/regexp';
|
|
33
|
+
// import 'core-js/es6/map';
|
|
34
|
+
// import 'core-js/es6/weak-map';
|
|
35
|
+
// import 'core-js/es6/set';
|
|
36
|
+
|
|
37
|
+
/** IE10 and IE11 requires the following for the Reflect API. */
|
|
38
|
+
// import 'core-js/es6/reflect';
|
|
39
|
+
|
|
40
|
+
/** Evergreen browsers require these. **/
|
|
41
|
+
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* By default, zone.js will patch all possible macroTask and DomEvents
|
|
45
|
+
* user can disable parts of macroTask/DomEvents patch by setting following flags
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
// (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
|
|
49
|
+
// (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
|
|
50
|
+
// (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
|
|
51
|
+
|
|
52
|
+
/*
|
|
53
|
+
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
|
|
54
|
+
* with the following flag, it will bypass `zone.js` patch for IE/Edge
|
|
55
|
+
*/
|
|
56
|
+
// (window as any).__Zone_enable_cross_context_check = true;
|
|
57
|
+
|
|
58
|
+
/***************************************************************************************************
|
|
59
|
+
* Zone JS is required by default for Angular itself.
|
|
60
|
+
*/
|
|
61
|
+
import 'zone.js'; // Included with Angular CLI.
|
|
62
|
+
import 'reflect-metadata';
|
|
63
|
+
|
|
64
|
+
/***************************************************************************************************
|
|
65
|
+
* APPLICATION IMPORTS
|
|
66
|
+
*/
|
|
67
|
+
// @ts-ignore
|
|
68
|
+
window.__importDefault = (mod) => (mod?.__esModule ? mod : { default: mod });
|
package/src/styles.scss
ADDED
package/src/test.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
|
2
|
+
|
|
3
|
+
import 'zone.js/testing';
|
|
4
|
+
import { getTestBed } from '@angular/core/testing';
|
|
5
|
+
import {
|
|
6
|
+
BrowserDynamicTestingModule,
|
|
7
|
+
platformBrowserDynamicTesting
|
|
8
|
+
} from '@angular/platform-browser-dynamic/testing';
|
|
9
|
+
|
|
10
|
+
declare const require: any;
|
|
11
|
+
|
|
12
|
+
// First, initialize the Angular testing environment.
|
|
13
|
+
getTestBed().initTestEnvironment(
|
|
14
|
+
BrowserDynamicTestingModule,
|
|
15
|
+
platformBrowserDynamicTesting(),
|
|
16
|
+
{
|
|
17
|
+
teardown: { destroyAfterEach: false }
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
// Then we find all the tests.
|
|
21
|
+
const context = require.context('./', true, /\.spec\.ts$/);
|
|
22
|
+
// And load the modules.
|
|
23
|
+
context.keys().map(context);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"requiredField": "This field is required!",
|
|
3
|
+
"invalidDate": "Provided date is invalid!",
|
|
4
|
+
"futureDateRestriction": "Future date is not allowed!",
|
|
5
|
+
"minLength": "Min Length should be {minLength}",
|
|
6
|
+
"maxLength": "Max Length should be {maxLength}",
|
|
7
|
+
"maxDate": "Max Date should be {maxDate}",
|
|
8
|
+
"minDate": "Min Date should be {minDate}",
|
|
9
|
+
"max": "Max value should be {max}",
|
|
10
|
+
"min": "Min value should be {min}",
|
|
11
|
+
"previousValue": "Previous Value",
|
|
12
|
+
"add": "Add",
|
|
13
|
+
"remove": "Remove",
|
|
14
|
+
"useValue": "Use Value",
|
|
15
|
+
"componentLoadingFailed": "Component Loading failed...",
|
|
16
|
+
"loadingComponent": "Loading Component...",
|
|
17
|
+
"weeks": "Weeks",
|
|
18
|
+
"selectWeeks": "Select Weeks",
|
|
19
|
+
"enterMoreCharacters": "Please enter 2 or more characters",
|
|
20
|
+
"addSecond":"Add a second",
|
|
21
|
+
"minusSecond":"Minus a second",
|
|
22
|
+
"addMinute":"Add a minute",
|
|
23
|
+
"minusMinute":"Minus a minute",
|
|
24
|
+
"addHour":"Add a hour",
|
|
25
|
+
"minusHour":"Minus a hour",
|
|
26
|
+
"previousMonth":"Previous month",
|
|
27
|
+
"nextMonth":"Next month",
|
|
28
|
+
"previousYear":"Previous year",
|
|
29
|
+
"nextYear":"Next year",
|
|
30
|
+
"previous21Years":"Previous 21 years",
|
|
31
|
+
"next21Years":"Next 21 years",
|
|
32
|
+
"changeToMonthView":"Change to month view",
|
|
33
|
+
"chooseMonthAndYear":"Choose month and year",
|
|
34
|
+
"aFewSecondsAgo": "a few seconds ago",
|
|
35
|
+
"aMinuteAgo": "a minute ago",
|
|
36
|
+
"minutesAgo": " minutes ago",
|
|
37
|
+
"anHourAgo": "an hour ago",
|
|
38
|
+
"hoursAgo": " hours ago",
|
|
39
|
+
"aDayAgo": "a day ago",
|
|
40
|
+
"daysAgo": " days ago",
|
|
41
|
+
"aMonthAgo": "a month ago",
|
|
42
|
+
"monthsAgo": " months ago",
|
|
43
|
+
"aYearAgo": "a year ago",
|
|
44
|
+
"yearsAgo": " years ago",
|
|
45
|
+
"cancel":"Cancel",
|
|
46
|
+
"set":"Set",
|
|
47
|
+
"from":"From",
|
|
48
|
+
"to":"To",
|
|
49
|
+
"fix": "Fix",
|
|
50
|
+
"clearEntry": "Are you sure you want to clear this entry?",
|
|
51
|
+
"deleteEntry": "Are you sure you want to delete this item?",
|
|
52
|
+
"maxEntries": "Cannot have more than {max} entries"
|
|
53
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"requiredField": "Ce champs est requis!",
|
|
3
|
+
"invalidDate": "La date fournie n'est pas valide!",
|
|
4
|
+
"futureDateRestriction": "Une date future n'est pas autorisée!",
|
|
5
|
+
"minLength": "La longueur minimale doit être de {minLength}",
|
|
6
|
+
"maxLength": "La longueur maximale doit être {maxLength}",
|
|
7
|
+
"maxDate": "La date maximale doit être {maxDate}",
|
|
8
|
+
"minDate": "La date minimale doit être {minDate}",
|
|
9
|
+
"max": "La valeur maximale doit être {max}",
|
|
10
|
+
"min": "La valeur minimale doit être {min}",
|
|
11
|
+
"previousValue": "Valeur précédente",
|
|
12
|
+
"add": "Ajouter",
|
|
13
|
+
"remove": "Enlever",
|
|
14
|
+
"useValue": "Utiliser la valeur",
|
|
15
|
+
"componentLoadingFailed": "Le chargement du composant a échoué...",
|
|
16
|
+
"loadingComponent": "Chargement du composant...",
|
|
17
|
+
"weeks": "Semaines",
|
|
18
|
+
"selectWeeks": "Sélectionnez des semaines",
|
|
19
|
+
"enterMoreCharacters": "Veuillez entrer au moins 2 caractères",
|
|
20
|
+
"addSecond": "Ajouter une seconde",
|
|
21
|
+
"minusSecond": "Enlever une seconde",
|
|
22
|
+
"addMinute": " Ajouter une minute",
|
|
23
|
+
"minusMinute": "Enlever une minute",
|
|
24
|
+
"addHour": "Ajouter une heure",
|
|
25
|
+
"minusHour": "Enlever une heure",
|
|
26
|
+
"previousMonth": "Mois précédent",
|
|
27
|
+
"nextMonth": "Mois suivant",
|
|
28
|
+
"previousYear": "Année précédente",
|
|
29
|
+
"nextYear": "Année suivante",
|
|
30
|
+
"previous21Years": "21 dernières années",
|
|
31
|
+
"next21Years": "Prochaines 21 années",
|
|
32
|
+
"changeToMonthView": "Changer pour une vue mensuelle",
|
|
33
|
+
"chooseMonthAndYear": "Choisissez le mois et l'année",
|
|
34
|
+
"aFewSecondsAgo": "il y a quelques secondes",
|
|
35
|
+
"aMinuteAgo": "il y a une minute",
|
|
36
|
+
"minutesAgo": " minutes",
|
|
37
|
+
"anHourAgo": "il y a une heure",
|
|
38
|
+
"hoursAgo": " heures",
|
|
39
|
+
"aDayAgo": "il y a un jour",
|
|
40
|
+
"daysAgo": " jours",
|
|
41
|
+
"aMonthAgo": "il y a un mois",
|
|
42
|
+
"monthsAgo": " mois",
|
|
43
|
+
"aYearAgo": "il y a un an",
|
|
44
|
+
"yearsAgo": " ans",
|
|
45
|
+
"cancel": "Annuler",
|
|
46
|
+
"set": "Paramétrer",
|
|
47
|
+
"from": "A partir de",
|
|
48
|
+
"to": "Jusqu'à",
|
|
49
|
+
"fix": "Corriger",
|
|
50
|
+
"clearEntry": "Êtes-vous sûr(e) de vouloir effacer cette entrée ?",
|
|
51
|
+
"deleteEntry": "Êtes-vous sûr(e) de vouloir supprimer cet élément ?",
|
|
52
|
+
"maxEntries":"Vous ne pouvez pas avoir plus de {max} entrées"
|
|
53
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "../out-tsc/app",
|
|
5
|
+
"types": ["node"]
|
|
6
|
+
},
|
|
7
|
+
"files": ["main.ts", "polyfills.ts"],
|
|
8
|
+
"paths": {
|
|
9
|
+
"ngx-formentry": ["projects/ngx-formentry"],
|
|
10
|
+
"ngx-formentry/*": ["projects/ngx-formentry/*"]
|
|
11
|
+
},
|
|
12
|
+
"include": ["src/**/*.d.ts"]
|
|
13
|
+
}
|