@seniorsistemas/data-seniorx-core 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/constants/constants.d.ts +6 -4
- package/core/fixes/fix-zindex.d.ts +2 -0
- package/core/types/semantics.type.d.ts +8 -0
- package/esm2022/core/constants/constants.mjs +7 -5
- package/esm2022/core/fixes/fix-zindex.mjs +24 -0
- package/esm2022/core/types/semantics.type.mjs +1 -1
- package/esm2022/features/combobox/combobox.component.mjs +18 -7
- package/esm2022/features/confirm/confirm.component.mjs +72 -0
- package/esm2022/features/modal/modal.component.mjs +5 -19
- package/esm2022/features/panel/panel.component.mjs +10 -4
- package/esm2022/locales/en.json +7 -1
- package/esm2022/locales/es-CO.json +7 -1
- package/esm2022/locales/pt.json +7 -1
- package/esm2022/providers/custom/button.mjs +93 -0
- package/esm2022/providers/custom/toast.mjs +75 -0
- package/esm2022/providers/primeng-config.provider.mjs +95 -27
- package/esm2022/public-api.mjs +3 -1
- package/features/combobox/combobox.component.d.ts +8 -5
- package/features/confirm/confirm.component.d.ts +19 -0
- package/features/modal/modal.component.d.ts +0 -1
- package/features/panel/panel.component.d.ts +3 -1
- package/fesm2022/seniorsistemas-data-seniorx-core.mjs +414 -73
- package/fesm2022/seniorsistemas-data-seniorx-core.mjs.map +1 -1
- package/package.json +1 -1
- package/providers/custom/button.d.ts +1 -0
- package/providers/custom/toast.d.ts +1 -0
- package/public-api.d.ts +2 -0
|
@@ -7,7 +7,7 @@ import { makeEnvironmentProviders, APP_INITIALIZER, EventEmitter, Component, Inp
|
|
|
7
7
|
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
|
|
8
8
|
import { providePrimeNG } from 'primeng/config';
|
|
9
9
|
import Aura from '@primeng/themes/aura';
|
|
10
|
-
import * as
|
|
10
|
+
import * as i3$1 from '@ngx-translate/core';
|
|
11
11
|
import { TranslateService, TranslateModule } from '@ngx-translate/core';
|
|
12
12
|
import { BehaviorSubject } from 'rxjs';
|
|
13
13
|
import { ViewPlugin, Decoration, keymap, EditorView } from '@codemirror/view';
|
|
@@ -21,58 +21,290 @@ import * as i1$1 from 'primeng/autocomplete';
|
|
|
21
21
|
import { AutoCompleteModule } from 'primeng/autocomplete';
|
|
22
22
|
import * as i3 from '@angular/forms';
|
|
23
23
|
import { NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
24
|
-
import * as
|
|
24
|
+
import * as i2$1 from 'primeng/dialog';
|
|
25
|
+
import { DialogModule } from 'primeng/dialog';
|
|
26
|
+
import * as i3$2 from 'primeng/progressspinner';
|
|
25
27
|
import { ProgressSpinnerModule } from 'primeng/progressspinner';
|
|
26
28
|
import * as i4 from 'primeng/table';
|
|
27
29
|
import { TableModule } from 'primeng/table';
|
|
28
30
|
import * as i5 from 'primeng/tooltip';
|
|
29
31
|
import { TooltipModule } from 'primeng/tooltip';
|
|
30
|
-
import * as i4$1 from 'primeng/dialog';
|
|
31
|
-
import { DialogModule } from 'primeng/dialog';
|
|
32
32
|
import * as i1$3 from 'primeng/panel';
|
|
33
33
|
import { PanelModule } from 'primeng/panel';
|
|
34
|
-
import * as i4$
|
|
34
|
+
import * as i4$1 from 'primeng/inputgroupaddon';
|
|
35
35
|
import { InputGroupAddonModule } from 'primeng/inputgroupaddon';
|
|
36
36
|
import * as i5$1 from 'primeng/inputgroup';
|
|
37
37
|
import { InputGroupModule } from 'primeng/inputgroup';
|
|
38
|
-
import * as i6
|
|
38
|
+
import * as i6 from 'primeng/inputtext';
|
|
39
39
|
import { InputTextModule } from 'primeng/inputtext';
|
|
40
|
-
import * as i3$
|
|
40
|
+
import * as i3$3 from 'primeng/blockui';
|
|
41
41
|
import { BlockUIModule } from 'primeng/blockui';
|
|
42
42
|
import { autocompletion } from '@codemirror/autocomplete';
|
|
43
43
|
import { ayuLight } from 'thememirror';
|
|
44
44
|
import { basicSetup } from 'codemirror';
|
|
45
45
|
import { sql, PostgreSQL } from '@codemirror/lang-sql';
|
|
46
|
-
import * as i2$
|
|
46
|
+
import * as i2$2 from 'primeng/toast';
|
|
47
47
|
import { ToastModule } from 'primeng/toast';
|
|
48
48
|
|
|
49
|
+
function customButton(theme) {
|
|
50
|
+
const colors = [
|
|
51
|
+
{
|
|
52
|
+
color: 'secondary',
|
|
53
|
+
values: {
|
|
54
|
+
color: 0,
|
|
55
|
+
background: 500,
|
|
56
|
+
borderColor: 500,
|
|
57
|
+
hoverColor: 0,
|
|
58
|
+
hoverBackground: 600,
|
|
59
|
+
hoverBorderColor: 600,
|
|
60
|
+
activeColor: 0,
|
|
61
|
+
activeBackground: 700,
|
|
62
|
+
activeBorderColor: 700
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
color: 'success',
|
|
67
|
+
values: {
|
|
68
|
+
color: 0,
|
|
69
|
+
background: 500,
|
|
70
|
+
borderColor: 500,
|
|
71
|
+
hoverColor: 0,
|
|
72
|
+
hoverBackground: 600,
|
|
73
|
+
hoverBorderColor: 600,
|
|
74
|
+
activeColor: 0,
|
|
75
|
+
activeBackground: 700,
|
|
76
|
+
activeBorderColor: 700
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
color: 'info',
|
|
81
|
+
values: {
|
|
82
|
+
color: 0,
|
|
83
|
+
background: 400,
|
|
84
|
+
borderColor: 400,
|
|
85
|
+
hoverColor: 0,
|
|
86
|
+
hoverBackground: 500,
|
|
87
|
+
hoverBorderColor: 500,
|
|
88
|
+
activeColor: 0,
|
|
89
|
+
activeBackground: 600,
|
|
90
|
+
activeBorderColor: 600
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
color: 'warn',
|
|
95
|
+
values: {
|
|
96
|
+
color: 900,
|
|
97
|
+
background: 400,
|
|
98
|
+
borderColor: 400,
|
|
99
|
+
hoverColor: 900,
|
|
100
|
+
hoverBackground: 500,
|
|
101
|
+
hoverBorderColor: 500,
|
|
102
|
+
activeColor: 900,
|
|
103
|
+
activeBackground: 600,
|
|
104
|
+
activeBorderColor: 600
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
color: 'danger',
|
|
109
|
+
values: {
|
|
110
|
+
color: 0,
|
|
111
|
+
background: 500,
|
|
112
|
+
borderColor: 500,
|
|
113
|
+
hoverColor: 0,
|
|
114
|
+
hoverBackground: 600,
|
|
115
|
+
hoverBorderColor: 600,
|
|
116
|
+
activeColor: 0,
|
|
117
|
+
activeBackground: 700,
|
|
118
|
+
activeBorderColor: 700
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
];
|
|
122
|
+
colors.forEach(item => {
|
|
123
|
+
const root = theme.components?.button?.colorScheme?.light?.root?.[item.color];
|
|
124
|
+
const semantic = theme.semantic[item.color];
|
|
125
|
+
const values = item.values;
|
|
126
|
+
if (root && semantic) {
|
|
127
|
+
Object.assign(root, {
|
|
128
|
+
color: semantic[values.color],
|
|
129
|
+
background: semantic[values.background],
|
|
130
|
+
borderColor: semantic[values.borderColor],
|
|
131
|
+
hoverColor: semantic[values.hoverColor],
|
|
132
|
+
hoverBackground: semantic[values.hoverBackground],
|
|
133
|
+
hoverBorderColor: semantic[values.hoverBorderColor],
|
|
134
|
+
activeColor: semantic[values.activeColor],
|
|
135
|
+
activeBackground: semantic[values.activeBackground],
|
|
136
|
+
activeBorderColor: semantic[values.activeBorderColor]
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function customToast(theme) {
|
|
143
|
+
const colors = [
|
|
144
|
+
{
|
|
145
|
+
color: 'info',
|
|
146
|
+
values: {
|
|
147
|
+
background: 200,
|
|
148
|
+
borderColor: 200,
|
|
149
|
+
color: 900,
|
|
150
|
+
detailColor: 800,
|
|
151
|
+
closeButton: {
|
|
152
|
+
focusRing: 200,
|
|
153
|
+
hoverBackground: 200
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
color: 'success',
|
|
159
|
+
values: {
|
|
160
|
+
background: 200,
|
|
161
|
+
borderColor: 200,
|
|
162
|
+
color: 900,
|
|
163
|
+
detailColor: 800,
|
|
164
|
+
closeButton: {
|
|
165
|
+
focusRing: 200,
|
|
166
|
+
hoverBackground: 200
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
color: 'warn',
|
|
172
|
+
values: {
|
|
173
|
+
background: 200,
|
|
174
|
+
borderColor: 200,
|
|
175
|
+
color: 900,
|
|
176
|
+
detailColor: 800,
|
|
177
|
+
closeButton: {
|
|
178
|
+
focusRing: 200,
|
|
179
|
+
hoverBackground: 200
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
color: 'error',
|
|
185
|
+
values: {
|
|
186
|
+
background: 200,
|
|
187
|
+
borderColor: 200,
|
|
188
|
+
color: 900,
|
|
189
|
+
detailColor: 800,
|
|
190
|
+
closeButton: {
|
|
191
|
+
focusRing: 200,
|
|
192
|
+
hoverBackground: 200
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
];
|
|
197
|
+
colors.forEach(item => {
|
|
198
|
+
const color = item.color === 'error' ? 'danger' : item.color;
|
|
199
|
+
const root = theme.components?.toast?.colorScheme?.light?.[item.color];
|
|
200
|
+
const semantic = theme.semantic[color];
|
|
201
|
+
const values = item.values;
|
|
202
|
+
if (root && semantic) {
|
|
203
|
+
Object.assign(root, {
|
|
204
|
+
background: semantic[values.background],
|
|
205
|
+
borderColor: semantic[values.borderColor],
|
|
206
|
+
color: semantic[values.color],
|
|
207
|
+
detailColor: semantic[values.detailColor],
|
|
208
|
+
closeButton: {
|
|
209
|
+
focusRing: { color: semantic[values.closeButton.focusRing], shadow: 'none' },
|
|
210
|
+
hoverBackground: semantic[values.closeButton.hoverBackground]
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
|
|
49
217
|
const SeniorTheme = definePreset(Aura, {
|
|
50
218
|
semantic: {
|
|
51
219
|
primary: {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
220
|
+
0: '#fff',
|
|
221
|
+
50: '#e9f2fb',
|
|
222
|
+
100: '#d4e4f7',
|
|
223
|
+
200: '#aacaf0',
|
|
224
|
+
300: '#7fb0e4',
|
|
225
|
+
400: '#5c99d2',
|
|
226
|
+
500: '#428BCA',
|
|
227
|
+
600: '#3273ac',
|
|
228
|
+
700: '#265f91',
|
|
229
|
+
800: '#1d4b76',
|
|
230
|
+
900: '#163a5d',
|
|
231
|
+
950: '#0f293f',
|
|
232
|
+
1000: '#000'
|
|
63
233
|
},
|
|
64
234
|
secondary: {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
235
|
+
0: '#fff',
|
|
236
|
+
50: '#f1f4f6',
|
|
237
|
+
100: '#e0e6ea',
|
|
238
|
+
200: '#c3ccd3',
|
|
239
|
+
300: '#a6b5bf',
|
|
240
|
+
400: '#8c9eaa',
|
|
241
|
+
500: '#7892A1',
|
|
242
|
+
600: '#627a87',
|
|
243
|
+
700: '#4f636f',
|
|
244
|
+
800: '#3d4c58',
|
|
245
|
+
900: '#2c3741',
|
|
246
|
+
950: '#1e242c',
|
|
247
|
+
1000: '#000'
|
|
248
|
+
},
|
|
249
|
+
success: {
|
|
250
|
+
0: '#fff',
|
|
251
|
+
50: '#e0fafa',
|
|
252
|
+
100: '#b3f0f0',
|
|
253
|
+
200: '#80e5e5',
|
|
254
|
+
300: '#4ddada',
|
|
255
|
+
400: '#26cccc',
|
|
256
|
+
500: '#009999',
|
|
257
|
+
600: '#007a7a',
|
|
258
|
+
700: '#005c5c',
|
|
259
|
+
800: '#004444',
|
|
260
|
+
900: '#002e2e',
|
|
261
|
+
950: '#001a1a',
|
|
262
|
+
1000: '#000'
|
|
263
|
+
},
|
|
264
|
+
info: {
|
|
265
|
+
0: '#fff',
|
|
266
|
+
50: '#f8f5fa',
|
|
267
|
+
100: '#ece3f0',
|
|
268
|
+
200: '#d8c6de',
|
|
269
|
+
300: '#c1a6c7',
|
|
270
|
+
400: '#a47ea9',
|
|
271
|
+
500: '#856191',
|
|
272
|
+
600: '#6d4f77',
|
|
273
|
+
700: '#563d5e',
|
|
274
|
+
800: '#412d47',
|
|
275
|
+
900: '#2c1d30',
|
|
276
|
+
950: '#1a0e1d',
|
|
277
|
+
1000: '#000'
|
|
278
|
+
},
|
|
279
|
+
warn: {
|
|
280
|
+
0: '#fff',
|
|
281
|
+
50: '#fff9ed',
|
|
282
|
+
100: '#fff0cd',
|
|
283
|
+
200: '#ffe09b',
|
|
284
|
+
300: '#fdd066',
|
|
285
|
+
400: '#fab93a',
|
|
286
|
+
500: '#F5A319',
|
|
287
|
+
600: '#d48814',
|
|
288
|
+
700: '#ad6c11',
|
|
289
|
+
800: '#87560e',
|
|
290
|
+
900: '#63400a',
|
|
291
|
+
950: '#3f2b06',
|
|
292
|
+
1000: '#000'
|
|
293
|
+
},
|
|
294
|
+
danger: {
|
|
295
|
+
0: '#fff',
|
|
296
|
+
50: '#fff5f5',
|
|
297
|
+
100: '#ffe3e3',
|
|
298
|
+
200: '#ffbdbd',
|
|
299
|
+
300: '#ff9797',
|
|
300
|
+
400: '#ff6f6f',
|
|
301
|
+
500: '#F45B5B',
|
|
302
|
+
600: '#d94a4a',
|
|
303
|
+
700: '#b53d3d',
|
|
304
|
+
800: '#922f2f',
|
|
305
|
+
900: '#6e2323',
|
|
306
|
+
950: '#4a1616',
|
|
307
|
+
1000: '#000'
|
|
76
308
|
}
|
|
77
309
|
},
|
|
78
310
|
components: {
|
|
@@ -80,16 +312,18 @@ const SeniorTheme = definePreset(Aura, {
|
|
|
80
312
|
colorScheme: {
|
|
81
313
|
light: {
|
|
82
314
|
root: {
|
|
83
|
-
['color.1']: '{emerald-
|
|
84
|
-
['color.2']: '{emerald-
|
|
85
|
-
['color.3']: '{emerald-
|
|
86
|
-
['color.4']: '{emerald-
|
|
315
|
+
['color.1']: '{emerald-300}',
|
|
316
|
+
['color.2']: '{emerald-300}',
|
|
317
|
+
['color.3']: '{emerald-300}',
|
|
318
|
+
['color.4']: '{emerald-300}'
|
|
87
319
|
}
|
|
88
320
|
}
|
|
89
321
|
}
|
|
90
322
|
}
|
|
91
323
|
}
|
|
92
324
|
});
|
|
325
|
+
customButton(SeniorTheme);
|
|
326
|
+
customToast(SeniorTheme);
|
|
93
327
|
function provideDataCoreLib() {
|
|
94
328
|
return makeEnvironmentProviders([
|
|
95
329
|
provideAnimationsAsync(),
|
|
@@ -109,18 +343,36 @@ function serviceProviders() {
|
|
|
109
343
|
}
|
|
110
344
|
|
|
111
345
|
var en = {
|
|
346
|
+
"platform.datacore.cancel": "Cancel",
|
|
347
|
+
"platform.datacore.confirm_dialog": "Confirm Dialog",
|
|
348
|
+
"platform.datacore.default_msg": "Ask your question or inquiry here!",
|
|
112
349
|
"platform.datacore.empty_list": "No items found!",
|
|
113
|
-
"platform.datacore.
|
|
350
|
+
"platform.datacore.no": "No",
|
|
351
|
+
"platform.datacore.remove": "Remove",
|
|
352
|
+
"platform.datacore.search": "Search...",
|
|
353
|
+
"platform.datacore.yes": "Yes"
|
|
114
354
|
};
|
|
115
355
|
|
|
116
356
|
var es = {
|
|
357
|
+
"platform.datacore.cancel": "Cancelar",
|
|
358
|
+
"platform.datacore.confirm_dialog": "Diálogo de Confirmación",
|
|
359
|
+
"platform.datacore.default_msg": "¡Haz tu pregunta o consulta aquí!",
|
|
117
360
|
"platform.datacore.empty_list": "Ningún elemento encontrado!",
|
|
118
|
-
"platform.datacore.
|
|
361
|
+
"platform.datacore.no": "No",
|
|
362
|
+
"platform.datacore.remove": "Eliminar",
|
|
363
|
+
"platform.datacore.search": "Buscar...",
|
|
364
|
+
"platform.datacore.yes": "Sí"
|
|
119
365
|
};
|
|
120
366
|
|
|
121
367
|
var pt = {
|
|
368
|
+
"platform.datacore.cancel": "Cancelar",
|
|
369
|
+
"platform.datacore.confirm_dialog": "Diálogo de Confirmação",
|
|
370
|
+
"platform.datacore.default_msg": "Faça sua pergunta ou solicitação aqui!",
|
|
122
371
|
"platform.datacore.empty_list": "Nenhum item encontrado!",
|
|
123
|
-
"platform.datacore.
|
|
372
|
+
"platform.datacore.no": "Não",
|
|
373
|
+
"platform.datacore.remove": "Remover",
|
|
374
|
+
"platform.datacore.search": "Pesquisar...",
|
|
375
|
+
"platform.datacore.yes": "Sim"
|
|
124
376
|
};
|
|
125
377
|
|
|
126
378
|
const defaultLocale = 'pt';
|
|
@@ -152,13 +404,15 @@ function getSeniorLocale(name) {
|
|
|
152
404
|
}
|
|
153
405
|
|
|
154
406
|
const CONSTANTS = {
|
|
155
|
-
WHITESPACE_REGEX: /\s/,
|
|
156
|
-
PARTIAL_IDENTIFIER_REGEX: /[\w\.]*/,
|
|
157
|
-
FULL_IDENTIFIER_REGEX: /^\w*$/,
|
|
158
|
-
TOAST_DEFAULT_KEY: 'toast-global',
|
|
159
407
|
EMPTY: '',
|
|
408
|
+
FULL_IDENTIFIER_REGEX: /^\w*$/,
|
|
409
|
+
HOUNDRED: 100,
|
|
160
410
|
ONE: 1,
|
|
411
|
+
PARTIAL_IDENTIFIER_REGEX: /[\w\.]*/,
|
|
161
412
|
THREE_K: 3000,
|
|
413
|
+
TOAST_DEFAULT_KEY: 'toast-global',
|
|
414
|
+
TWO_HUNDRED: 200,
|
|
415
|
+
WHITESPACE_REGEX: /\s/,
|
|
162
416
|
ZERO: 0
|
|
163
417
|
};
|
|
164
418
|
|
|
@@ -249,6 +503,29 @@ function sqlDomainFilterDecorator(onClick) {
|
|
|
249
503
|
});
|
|
250
504
|
}
|
|
251
505
|
|
|
506
|
+
function fixDialogMask(visible, zIndex, modal) {
|
|
507
|
+
setTimeout(() => {
|
|
508
|
+
const dialogMask = modal?.el?.nativeElement?.querySelector('div.p-dialog-mask') ?? null;
|
|
509
|
+
if (!dialogMask) {
|
|
510
|
+
return;
|
|
511
|
+
}
|
|
512
|
+
if (visible) {
|
|
513
|
+
dialogMask.style.zIndex = zIndex.toString();
|
|
514
|
+
dialogMask.style.display = 'flex';
|
|
515
|
+
}
|
|
516
|
+
else {
|
|
517
|
+
dialogMask.style.display = 'none';
|
|
518
|
+
}
|
|
519
|
+
}, CONSTANTS.HOUNDRED);
|
|
520
|
+
}
|
|
521
|
+
function fixComboBoxOverlay(autocomplete, zIndex) {
|
|
522
|
+
setTimeout(() => {
|
|
523
|
+
const auto = autocomplete?.el?.nativeElement?.querySelector('.p-autocomplete');
|
|
524
|
+
const overlay = auto?.querySelector('p-overlay');
|
|
525
|
+
overlay.style.zIndex = zIndex.toString();
|
|
526
|
+
}, CONSTANTS.HOUNDRED);
|
|
527
|
+
}
|
|
528
|
+
|
|
252
529
|
function createSqlAutoCompletionHadler(schema) {
|
|
253
530
|
return function sqlAutoCompletionHandler(context) {
|
|
254
531
|
const word = context.matchBefore(CONSTANTS.PARTIAL_IDENTIFIER_REGEX);
|
|
@@ -503,9 +780,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
503
780
|
}] } });
|
|
504
781
|
|
|
505
782
|
class ComboboxComponent extends InputsComponent {
|
|
783
|
+
filteredItems = [];
|
|
784
|
+
autocomplete;
|
|
785
|
+
zIndex = 9999;
|
|
506
786
|
options = [];
|
|
507
787
|
selectedValueEvent = new EventEmitter();
|
|
508
|
-
|
|
788
|
+
ngAfterViewInit() {
|
|
789
|
+
fixComboBoxOverlay(this.autocomplete, this.zIndex);
|
|
790
|
+
}
|
|
509
791
|
onSearch(event) {
|
|
510
792
|
const query = event.query.toLowerCase();
|
|
511
793
|
let arr = Array.isArray(this.options) ? this.options : JSON.parse(this.options);
|
|
@@ -522,13 +804,13 @@ class ComboboxComponent extends InputsComponent {
|
|
|
522
804
|
}
|
|
523
805
|
}
|
|
524
806
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ComboboxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
525
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ComboboxComponent, isStandalone: true, selector: "sdc-combobox", inputs: { options: "options" }, outputs: { selectedValueEvent: "onSelectedItem" }, providers: [
|
|
807
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ComboboxComponent, isStandalone: true, selector: "sdc-combobox", inputs: { zIndex: "zIndex", options: "options" }, outputs: { selectedValueEvent: "onSelectedItem" }, providers: [
|
|
526
808
|
{
|
|
527
809
|
provide: NG_VALUE_ACCESSOR,
|
|
528
810
|
useExisting: forwardRef(() => ComboboxComponent),
|
|
529
811
|
multi: true
|
|
530
812
|
}
|
|
531
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"field-box\">\n <label *ngIf=\"label\" [for]=\"identity.id\">\n <span>{{ label }}</span>\n <span class=\"required-field\" *ngIf=\"required\"> •</span>\n </label>\n\n <p-autocomplete\n (completeMethod)=\"onSearch($event)\"\n (ngModelChange)=\"onInput($event)\"\n [(ngModel)]=\"value\"\n [autoHighlight]=\"true\"\n [disabled]=\"disabled\"\n [dropdown]=\"true\"\n [forceSelection]=\"true\"\n [id]=\"identity.id\"\n [name]=\"identity.name ?? ''\"\n [ngClass]=\"getInvalidClass()\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [showClear]=\"true\"\n [style]=\"getInputStyle()\"\n [suggestions]=\"filteredItems\"\n optionLabel=\"text\"\n optionValue=\"value\"\n />\n\n <small\n *ngIf=\"message\"\n [ngClass]=\"getInvalidMessageClass()\"\n >{{ message }}</small>\n</div>\n\n\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AutoCompleteModule }, { kind: "component", type: i1$1.AutoComplete, selector: "p-autoComplete, p-autocomplete, p-auto-complete", inputs: ["minLength", "delay", "style", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "disabled", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "maxlength", "name", "required", "size", "appendTo", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "field", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "itemSize", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "variant", "fluid"], outputs: ["completeMethod", "onSelect", "onUnselect", "onFocus", "onBlur", "onDropdownClick", "onClear", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }] });
|
|
813
|
+
], viewQueries: [{ propertyName: "autocomplete", first: true, predicate: ["autocomplete"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"field-box\">\n <label *ngIf=\"label\" [for]=\"identity.id\">\n <span>{{ label }}</span>\n <span class=\"required-field\" *ngIf=\"required\"> •</span>\n </label>\n\n <p-autocomplete\n #autocomplete\n (completeMethod)=\"onSearch($event)\"\n (ngModelChange)=\"onInput($event)\"\n [(ngModel)]=\"value\"\n [autoHighlight]=\"true\"\n [disabled]=\"disabled\"\n [dropdown]=\"true\"\n [forceSelection]=\"true\"\n [id]=\"identity.id\"\n [name]=\"identity.name ?? ''\"\n [ngClass]=\"getInvalidClass()\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [showClear]=\"true\"\n [style]=\"getInputStyle()\"\n [suggestions]=\"filteredItems\"\n optionLabel=\"text\"\n optionValue=\"value\"\n />\n\n <small\n *ngIf=\"message\"\n [ngClass]=\"getInvalidMessageClass()\"\n >{{ message }}</small>\n</div>\n\n\n", styles: [""], dependencies: [{ kind: "ngmodule", type: AutoCompleteModule }, { kind: "component", type: i1$1.AutoComplete, selector: "p-autoComplete, p-autocomplete, p-auto-complete", inputs: ["minLength", "delay", "style", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "disabled", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "maxlength", "name", "required", "size", "appendTo", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "field", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "itemSize", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "variant", "fluid"], outputs: ["completeMethod", "onSelect", "onUnselect", "onFocus", "onBlur", "onDropdownClick", "onClear", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }] });
|
|
532
814
|
}
|
|
533
815
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ComboboxComponent, decorators: [{
|
|
534
816
|
type: Component,
|
|
@@ -538,14 +820,82 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
538
820
|
useExisting: forwardRef(() => ComboboxComponent),
|
|
539
821
|
multi: true
|
|
540
822
|
}
|
|
541
|
-
], template: "<div class=\"field-box\">\n <label *ngIf=\"label\" [for]=\"identity.id\">\n <span>{{ label }}</span>\n <span class=\"required-field\" *ngIf=\"required\"> •</span>\n </label>\n\n <p-autocomplete\n (completeMethod)=\"onSearch($event)\"\n (ngModelChange)=\"onInput($event)\"\n [(ngModel)]=\"value\"\n [autoHighlight]=\"true\"\n [disabled]=\"disabled\"\n [dropdown]=\"true\"\n [forceSelection]=\"true\"\n [id]=\"identity.id\"\n [name]=\"identity.name ?? ''\"\n [ngClass]=\"getInvalidClass()\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [showClear]=\"true\"\n [style]=\"getInputStyle()\"\n [suggestions]=\"filteredItems\"\n optionLabel=\"text\"\n optionValue=\"value\"\n />\n\n <small\n *ngIf=\"message\"\n [ngClass]=\"getInvalidMessageClass()\"\n >{{ message }}</small>\n</div>\n\n\n" }]
|
|
542
|
-
}], propDecorators: {
|
|
823
|
+
], template: "<div class=\"field-box\">\n <label *ngIf=\"label\" [for]=\"identity.id\">\n <span>{{ label }}</span>\n <span class=\"required-field\" *ngIf=\"required\"> •</span>\n </label>\n\n <p-autocomplete\n #autocomplete\n (completeMethod)=\"onSearch($event)\"\n (ngModelChange)=\"onInput($event)\"\n [(ngModel)]=\"value\"\n [autoHighlight]=\"true\"\n [disabled]=\"disabled\"\n [dropdown]=\"true\"\n [forceSelection]=\"true\"\n [id]=\"identity.id\"\n [name]=\"identity.name ?? ''\"\n [ngClass]=\"getInvalidClass()\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [showClear]=\"true\"\n [style]=\"getInputStyle()\"\n [suggestions]=\"filteredItems\"\n optionLabel=\"text\"\n optionValue=\"value\"\n />\n\n <small\n *ngIf=\"message\"\n [ngClass]=\"getInvalidMessageClass()\"\n >{{ message }}</small>\n</div>\n\n\n" }]
|
|
824
|
+
}], propDecorators: { autocomplete: [{
|
|
825
|
+
type: ViewChild,
|
|
826
|
+
args: ['autocomplete']
|
|
827
|
+
}], zIndex: [{
|
|
828
|
+
type: Input
|
|
829
|
+
}], options: [{
|
|
543
830
|
type: Input
|
|
544
831
|
}], selectedValueEvent: [{
|
|
545
832
|
type: Output,
|
|
546
833
|
args: ['onSelectedItem']
|
|
547
834
|
}] } });
|
|
548
835
|
|
|
836
|
+
class ConfirmComponent {
|
|
837
|
+
$visible = false;
|
|
838
|
+
config = {
|
|
839
|
+
severity: 'question',
|
|
840
|
+
title: 'platform.datacore.confirm_dialog',
|
|
841
|
+
message: 'platform.datacore.default_msg',
|
|
842
|
+
accept: () => { },
|
|
843
|
+
reject: () => { }
|
|
844
|
+
};
|
|
845
|
+
modal;
|
|
846
|
+
zIndex = 99999;
|
|
847
|
+
get visible() {
|
|
848
|
+
return this.$visible;
|
|
849
|
+
}
|
|
850
|
+
set visible(value) {
|
|
851
|
+
this.$visible = value;
|
|
852
|
+
this.visibleChange.emit(value);
|
|
853
|
+
fixDialogMask(value, this.zIndex, this.modal);
|
|
854
|
+
}
|
|
855
|
+
visibleChange = new EventEmitter();
|
|
856
|
+
set confirm(value) {
|
|
857
|
+
if (value) {
|
|
858
|
+
this.config = value;
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
getLabel(type) {
|
|
862
|
+
const labels = {
|
|
863
|
+
remove: { confirm: 'platform.datacore.remove', deny: 'platform.datacore.cancel' },
|
|
864
|
+
default: { confirm: 'platform.datacore.yes', deny: 'platform.datacore.no' }
|
|
865
|
+
};
|
|
866
|
+
const key = this.config.severity === 'remove' ? 'remove' : 'default';
|
|
867
|
+
return labels[key][type];
|
|
868
|
+
}
|
|
869
|
+
getSeverity() {
|
|
870
|
+
return this.config.severity === 'remove' ? 'danger' : 'primary';
|
|
871
|
+
}
|
|
872
|
+
onConfirm() {
|
|
873
|
+
this.config.accept();
|
|
874
|
+
this.visible = false;
|
|
875
|
+
}
|
|
876
|
+
onDeny() {
|
|
877
|
+
this.config.reject();
|
|
878
|
+
this.visible = false;
|
|
879
|
+
}
|
|
880
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConfirmComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
881
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ConfirmComponent, isStandalone: true, selector: "sdc-confirm", inputs: { zIndex: "zIndex", visible: "visible", confirm: "confirm" }, outputs: { visibleChange: "visibleChange" }, viewQueries: [{ propertyName: "modal", first: true, predicate: ["modal"], descendants: true }], ngImport: i0, template: "<p-dialog\n #modal\n [(visible)]=\"visible\"\n [closable]=\"false\"\n [draggable]=\"false\"\n [header]=\"config.title | translate\"\n [modal]=\"true\"\n [responsive]=\"true\"\n [showHeader]=\"true\"\n position=\"top\"\n>\n <div class=\"content-sizing\">{{ config.message | translate }}</div>\n <ng-template #footer>\n <p-button [label]=\"getLabel('deny') | translate\" severity=\"secondary\" (onClick)=\"onDeny()\" />\n <p-button [label]=\"getLabel('confirm') | translate\" [severity]=\"getSeverity()\" (onClick)=\"onConfirm()\" />\n </ng-template>\n</p-dialog>\n", styles: [".content-sizing{max-width:480px}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: DialogModule }, { kind: "component", type: i2$1.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }] });
|
|
882
|
+
}
|
|
883
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConfirmComponent, decorators: [{
|
|
884
|
+
type: Component,
|
|
885
|
+
args: [{ imports: [ButtonModule, DialogModule, TranslateModule], standalone: true, selector: 'sdc-confirm', template: "<p-dialog\n #modal\n [(visible)]=\"visible\"\n [closable]=\"false\"\n [draggable]=\"false\"\n [header]=\"config.title | translate\"\n [modal]=\"true\"\n [responsive]=\"true\"\n [showHeader]=\"true\"\n position=\"top\"\n>\n <div class=\"content-sizing\">{{ config.message | translate }}</div>\n <ng-template #footer>\n <p-button [label]=\"getLabel('deny') | translate\" severity=\"secondary\" (onClick)=\"onDeny()\" />\n <p-button [label]=\"getLabel('confirm') | translate\" [severity]=\"getSeverity()\" (onClick)=\"onConfirm()\" />\n </ng-template>\n</p-dialog>\n", styles: [".content-sizing{max-width:480px}\n"] }]
|
|
886
|
+
}], propDecorators: { modal: [{
|
|
887
|
+
type: ViewChild,
|
|
888
|
+
args: ['modal']
|
|
889
|
+
}], zIndex: [{
|
|
890
|
+
type: Input
|
|
891
|
+
}], visible: [{
|
|
892
|
+
type: Input
|
|
893
|
+
}], visibleChange: [{
|
|
894
|
+
type: Output
|
|
895
|
+
}], confirm: [{
|
|
896
|
+
type: Input
|
|
897
|
+
}] } });
|
|
898
|
+
|
|
549
899
|
class HyperlinkComponent {
|
|
550
900
|
defaultText = 'Hyperlink';
|
|
551
901
|
clickEvent = new EventEmitter();
|
|
@@ -624,7 +974,7 @@ class ListComponent {
|
|
|
624
974
|
}
|
|
625
975
|
}
|
|
626
976
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
627
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ListComponent, isStandalone: true, selector: "sdc-list", inputs: { loading: "loading", items: "items", actions: "actions" }, ngImport: i0, template: "<p-table [value]=\"[1]\" [tableStyle]=\"getTableStyle()\">\n <ng-template #body>\n <tr *ngIf=\"loading\">\n <td colspan=\"2\" class=\"center-items\">\n <p-progress-spinner\n [style]=\"getStyle()\"\n animationDuration=\".5s\"\n fill=\"transparent\"\n strokeWidth=\"8\"\n />\n </td>\n </tr>\n <tr *ngIf=\"isEmpty()\">\n <td colspan=\"2\" class=\"center-items\">\n {{ 'platform.datacore.empty_list' | translate }}\n </td>\n </tr>\n <tr *ngFor=\"let item of dataItems\">\n <td class=\"row\">\n <div class=\"content\">\n {{ item.content }} \n </div>\n <div class=\"actions\">\n <p-button\n *ngFor=\"let action of dataActions\"\n (onClick)=\"action.action && action.action(action.name, item.id)\"\n [disabled]=\"action.disabled\"\n [icon]=\"action.icon\"\n [label]=\"action.label\"\n [severity]=\"action.severity\"\n pTooltip=\"{{ action.tooltip ?? ''}}\"\n size=\"small\"\n />\n </div>\n </td>\n </tr>\n </ng-template>\n</p-table>", styles: [".row{align-items:center;display:flex;flex-wrap:wrap;gap:5px}.row>.content{flex:1}.row>.actions{flex:0;display:flex;flex-wrap:nowrap;gap:5px}.center-items{display:flex;align-items:center;justify-content:center;text-align:center;text-transform:uppercase;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: ProgressSpinnerModule }, { kind: "component", type: i3$
|
|
977
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ListComponent, isStandalone: true, selector: "sdc-list", inputs: { loading: "loading", items: "items", actions: "actions" }, ngImport: i0, template: "<p-table [value]=\"[1]\" [tableStyle]=\"getTableStyle()\">\n <ng-template #body>\n <tr *ngIf=\"loading\">\n <td colspan=\"2\" class=\"center-items\">\n <p-progress-spinner\n [style]=\"getStyle()\"\n animationDuration=\".5s\"\n fill=\"transparent\"\n strokeWidth=\"8\"\n />\n </td>\n </tr>\n <tr *ngIf=\"isEmpty()\">\n <td colspan=\"2\" class=\"center-items\">\n {{ 'platform.datacore.empty_list' | translate }}\n </td>\n </tr>\n <tr *ngFor=\"let item of dataItems\">\n <td class=\"row\">\n <div class=\"content\">\n {{ item.content }} \n </div>\n <div class=\"actions\">\n <p-button\n *ngFor=\"let action of dataActions\"\n (onClick)=\"action.action && action.action(action.name, item.id)\"\n [disabled]=\"action.disabled\"\n [icon]=\"action.icon\"\n [label]=\"action.label\"\n [severity]=\"action.severity\"\n pTooltip=\"{{ action.tooltip ?? ''}}\"\n size=\"small\"\n />\n </div>\n </td>\n </tr>\n </ng-template>\n</p-table>", styles: [".row{align-items:center;display:flex;flex-wrap:wrap;gap:5px}.row>.content{flex:1}.row>.actions{flex:0;display:flex;flex-wrap:nowrap;gap:5px}.center-items{display:flex;align-items:center;justify-content:center;text-align:center;text-transform:uppercase;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: ProgressSpinnerModule }, { kind: "component", type: i3$2.ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "ngmodule", type: TableModule }, { kind: "component", type: i4.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "virtualRowHeight", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i5.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }] });
|
|
628
978
|
}
|
|
629
979
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ListComponent, decorators: [{
|
|
630
980
|
type: Component,
|
|
@@ -653,7 +1003,7 @@ class ModalComponent {
|
|
|
653
1003
|
this.$visible = value;
|
|
654
1004
|
this.visibleChange.emit(this.visible);
|
|
655
1005
|
this.maximizeModal();
|
|
656
|
-
this.
|
|
1006
|
+
fixDialogMask(value, this.zIndex, this.modal);
|
|
657
1007
|
}
|
|
658
1008
|
get visible() {
|
|
659
1009
|
return this.$visible;
|
|
@@ -670,27 +1020,12 @@ class ModalComponent {
|
|
|
670
1020
|
this.modal.maximize();
|
|
671
1021
|
}
|
|
672
1022
|
}
|
|
673
|
-
fixDialogMask() {
|
|
674
|
-
setTimeout(() => {
|
|
675
|
-
const dialogMask = this.modal?.el?.nativeElement?.querySelector('div.p-dialog-mask') ?? null;
|
|
676
|
-
if (!dialogMask) {
|
|
677
|
-
return;
|
|
678
|
-
}
|
|
679
|
-
if (this.visible) {
|
|
680
|
-
dialogMask.style.zIndex = this.zIndex.toString();
|
|
681
|
-
dialogMask.style.display = 'flex';
|
|
682
|
-
}
|
|
683
|
-
else {
|
|
684
|
-
dialogMask.style.display = 'none';
|
|
685
|
-
}
|
|
686
|
-
}, 100);
|
|
687
|
-
}
|
|
688
1023
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
689
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ModalComponent, isStandalone: true, selector: "sdc-modal", inputs: { footerButtons: "footerButtons", header: "header", height: "height", maximizable: "maximizable", maximize: "maximize", resizable: "resizable", responsive: "responsive", width: "width", zIndex: "zIndex", visible: "visible" }, outputs: { visibleChange: "visibleChange" }, viewQueries: [{ propertyName: "modal", first: true, predicate: ["modal"], descendants: true }], ngImport: i0, template: "<p-dialog\n [(visible)]=\"visible\"\n [contentStyle]=\"getStyle()\"\n [draggable]=\"false\"\n [header]=\"header\"\n [maximizable]=\"maximizable\"\n [modal]=\"true\"\n [resizable]=\"resizable\"\n [responsive]=\"responsive\"\n #modal\n>\n <ng-content></ng-content>\n <ng-template pTemplate=\"footer\">\n <div class=\"footer\">\n <ng-content select=\"[footer]\"></ng-content>\n <p-button\n *ngFor=\"let btn of footerButtons\"\n (onClick)=\"btn.action()\"\n [icon]=\"btn.icon\"\n [id]=\"btn.id\"\n [label]=\"btn.label\"\n [severity]=\"btn.severity ?? 'primary'\"\n ></p-button>\n </div>\n </ng-template>\n</p-dialog>\n", styles: [".footer{display:flex;flex-direction:row-reverse;flex-wrap:nowrap;gap:10px}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: i1$2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: DialogModule }, { kind: "component", type:
|
|
1024
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ModalComponent, isStandalone: true, selector: "sdc-modal", inputs: { footerButtons: "footerButtons", header: "header", height: "height", maximizable: "maximizable", maximize: "maximize", resizable: "resizable", responsive: "responsive", width: "width", zIndex: "zIndex", visible: "visible" }, outputs: { visibleChange: "visibleChange" }, viewQueries: [{ propertyName: "modal", first: true, predicate: ["modal"], descendants: true }], ngImport: i0, template: "<p-dialog\n [(visible)]=\"visible\"\n [contentStyle]=\"getStyle()\"\n [draggable]=\"false\"\n [header]=\"header\"\n [maximizable]=\"maximizable\"\n [modal]=\"true\"\n [resizable]=\"resizable\"\n [responsive]=\"responsive\"\n #modal\n>\n <ng-content></ng-content>\n <ng-template pTemplate=\"footer\">\n <div class=\"footer\">\n <ng-content select=\"[footer]\"></ng-content>\n <p-button\n *ngFor=\"let btn of footerButtons\"\n (onClick)=\"btn.action()\"\n [icon]=\"btn.icon\"\n [id]=\"btn.id\"\n [label]=\"btn.label\"\n [severity]=\"btn.severity ?? 'primary'\"\n ></p-button>\n </div>\n </ng-template>\n</p-dialog>\n", styles: [".footer{display:flex;flex-direction:row-reverse;flex-wrap:nowrap;gap:10px;padding-top:10px}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: i1$2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: DialogModule }, { kind: "component", type: i2$1.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }] });
|
|
690
1025
|
}
|
|
691
1026
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ModalComponent, decorators: [{
|
|
692
1027
|
type: Component,
|
|
693
|
-
args: [{ imports: [ButtonModule, CommonModule, DialogModule], standalone: true, selector: 'sdc-modal', template: "<p-dialog\n [(visible)]=\"visible\"\n [contentStyle]=\"getStyle()\"\n [draggable]=\"false\"\n [header]=\"header\"\n [maximizable]=\"maximizable\"\n [modal]=\"true\"\n [resizable]=\"resizable\"\n [responsive]=\"responsive\"\n #modal\n>\n <ng-content></ng-content>\n <ng-template pTemplate=\"footer\">\n <div class=\"footer\">\n <ng-content select=\"[footer]\"></ng-content>\n <p-button\n *ngFor=\"let btn of footerButtons\"\n (onClick)=\"btn.action()\"\n [icon]=\"btn.icon\"\n [id]=\"btn.id\"\n [label]=\"btn.label\"\n [severity]=\"btn.severity ?? 'primary'\"\n ></p-button>\n </div>\n </ng-template>\n</p-dialog>\n", styles: [".footer{display:flex;flex-direction:row-reverse;flex-wrap:nowrap;gap:10px}\n"] }]
|
|
1028
|
+
args: [{ imports: [ButtonModule, CommonModule, DialogModule], standalone: true, selector: 'sdc-modal', template: "<p-dialog\n [(visible)]=\"visible\"\n [contentStyle]=\"getStyle()\"\n [draggable]=\"false\"\n [header]=\"header\"\n [maximizable]=\"maximizable\"\n [modal]=\"true\"\n [resizable]=\"resizable\"\n [responsive]=\"responsive\"\n #modal\n>\n <ng-content></ng-content>\n <ng-template pTemplate=\"footer\">\n <div class=\"footer\">\n <ng-content select=\"[footer]\"></ng-content>\n <p-button\n *ngFor=\"let btn of footerButtons\"\n (onClick)=\"btn.action()\"\n [icon]=\"btn.icon\"\n [id]=\"btn.id\"\n [label]=\"btn.label\"\n [severity]=\"btn.severity ?? 'primary'\"\n ></p-button>\n </div>\n </ng-template>\n</p-dialog>\n", styles: [".footer{display:flex;flex-direction:row-reverse;flex-wrap:nowrap;gap:10px;padding-top:10px}\n"] }]
|
|
694
1029
|
}], propDecorators: { modal: [{
|
|
695
1030
|
type: ViewChild,
|
|
696
1031
|
args: ['modal']
|
|
@@ -719,16 +1054,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
719
1054
|
}] } });
|
|
720
1055
|
|
|
721
1056
|
class PanelComponent {
|
|
722
|
-
collapsed = false;
|
|
1057
|
+
$collapsed = false;
|
|
1058
|
+
set collapsed(value) {
|
|
1059
|
+
this.$collapsed = value;
|
|
1060
|
+
}
|
|
1061
|
+
get collapsed() {
|
|
1062
|
+
return this.$collapsed;
|
|
1063
|
+
}
|
|
723
1064
|
header = '';
|
|
724
1065
|
showHeader = false;
|
|
725
1066
|
toggleable = false;
|
|
726
1067
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
727
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: PanelComponent, isStandalone: true, selector: "sdc-panel", inputs: { collapsed: "collapsed", header: "header", showHeader: "showHeader", toggleable: "toggleable" }, ngImport: i0, template: "<p-panel
|
|
1068
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: PanelComponent, isStandalone: true, selector: "sdc-panel", inputs: { collapsed: "collapsed", header: "header", showHeader: "showHeader", toggleable: "toggleable" }, ngImport: i0, template: "<p-panel [(collapsed)]=\"collapsed\" [header]=\"header\" [showHeader]=\"showHeader\" [toggleable]=\"toggleable\">\n <p>\n <ng-content></ng-content>\n </p>\n</p-panel>\n", styles: ["p{padding-bottom:0;margin-bottom:0}\n"], dependencies: [{ kind: "ngmodule", type: PanelModule }, { kind: "component", type: i1$3.Panel, selector: "p-panel", inputs: ["toggleable", "header", "collapsed", "style", "styleClass", "iconPos", "expandIcon", "collapseIcon", "showHeader", "toggler", "transitionOptions", "toggleButtonProps"], outputs: ["collapsedChange", "onBeforeToggle", "onAfterToggle"] }] });
|
|
728
1069
|
}
|
|
729
1070
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PanelComponent, decorators: [{
|
|
730
1071
|
type: Component,
|
|
731
|
-
args: [{ imports: [PanelModule], standalone: true, selector: 'sdc-panel', template: "<p-panel
|
|
1072
|
+
args: [{ imports: [PanelModule], standalone: true, selector: 'sdc-panel', template: "<p-panel [(collapsed)]=\"collapsed\" [header]=\"header\" [showHeader]=\"showHeader\" [toggleable]=\"toggleable\">\n <p>\n <ng-content></ng-content>\n </p>\n</p-panel>\n", styles: ["p{padding-bottom:0;margin-bottom:0}\n"] }]
|
|
732
1073
|
}], propDecorators: { collapsed: [{
|
|
733
1074
|
type: Input
|
|
734
1075
|
}], header: [{
|
|
@@ -757,7 +1098,7 @@ class SearchboxComponent {
|
|
|
757
1098
|
this.clearEvent.emit();
|
|
758
1099
|
}
|
|
759
1100
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SearchboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
760
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SearchboxComponent, isStandalone: true, selector: "sdc-searchbox", inputs: { width: "width", disabled: "disabled", placeholder: "placeholder" }, outputs: { searchEvent: "onSearch", clearEvent: "onClear" }, ngImport: i0, template: "<p-inputgroup [ngStyle]=\"getStyles()\" >\n <input\n (keyup.enter)=\"onSearch()\"\n (keyup.esc)=\"onClear()\"\n [(ngModel)]=\"value\"\n [disabled]=\"disabled\"\n [placeholder]=\" placeholder || ('platform.datacore.search' | translate)\"\n pInputText\n type=\"text\"\n />\n\n <p-inputgroup-addon>\n <p-button\n (onClick)=\"onClear()\"\n [disabled]=\"disabled\" \n icon=\"fas fa-times\"\n severity=\"secondary\"\n />\n </p-inputgroup-addon>\n\n <p-inputgroup-addon>\n <p-button\n (onClick)=\"onSearch()\"\n [disabled]=\"disabled\"\n icon=\"fas fa-search\"\n severity=\"secondary\"\n />\n </p-inputgroup-addon>\n</p-inputgroup>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: InputGroupAddonModule }, { kind: "component", type: i4$
|
|
1101
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SearchboxComponent, isStandalone: true, selector: "sdc-searchbox", inputs: { width: "width", disabled: "disabled", placeholder: "placeholder" }, outputs: { searchEvent: "onSearch", clearEvent: "onClear" }, ngImport: i0, template: "<p-inputgroup [ngStyle]=\"getStyles()\" >\n <input\n (keyup.enter)=\"onSearch()\"\n (keyup.esc)=\"onClear()\"\n [(ngModel)]=\"value\"\n [disabled]=\"disabled\"\n [placeholder]=\" placeholder || ('platform.datacore.search' | translate)\"\n pInputText\n type=\"text\"\n />\n\n <p-inputgroup-addon>\n <p-button\n (onClick)=\"onClear()\"\n [disabled]=\"disabled\" \n icon=\"fas fa-times\"\n severity=\"secondary\"\n />\n </p-inputgroup-addon>\n\n <p-inputgroup-addon>\n <p-button\n (onClick)=\"onSearch()\"\n [disabled]=\"disabled\"\n icon=\"fas fa-search\"\n severity=\"secondary\"\n />\n </p-inputgroup-addon>\n</p-inputgroup>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: InputGroupAddonModule }, { kind: "component", type: i4$1.InputGroupAddon, selector: "p-inputgroup-addon, p-inputGroupAddon", inputs: ["style", "styleClass"] }, { kind: "ngmodule", type: InputGroupModule }, { kind: "component", type: i5$1.InputGroup, selector: "p-inputgroup, p-inputGroup, p-input-group", inputs: ["style", "styleClass"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i6.InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }] });
|
|
761
1102
|
}
|
|
762
1103
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SearchboxComponent, decorators: [{
|
|
763
1104
|
type: Component,
|
|
@@ -830,7 +1171,7 @@ class SpinnerComponent {
|
|
|
830
1171
|
};
|
|
831
1172
|
}
|
|
832
1173
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpinnerComponent, deps: [{ token: SpinnerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
833
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SpinnerComponent, isStandalone: true, selector: "sdc-spinner", ngImport: i0, template: "<p-blockUI baseZIndex=\"9999999999\" [blocked]=\"loading\">\n <div class=\"spinner-container\">\n <p-progress-spinner\n [style]=\"getStyle()\"\n animationDuration=\".5s\"\n fill=\"transparent\"\n strokeWidth=\"8\"\n />\n </div>\n</p-blockUI>\n", styles: [".spinner-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center}\n"], dependencies: [{ kind: "ngmodule", type: ProgressSpinnerModule }, { kind: "component", type: i3$
|
|
1174
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SpinnerComponent, isStandalone: true, selector: "sdc-spinner", ngImport: i0, template: "<p-blockUI baseZIndex=\"9999999999\" [blocked]=\"loading\">\n <div class=\"spinner-container\">\n <p-progress-spinner\n [style]=\"getStyle()\"\n animationDuration=\".5s\"\n fill=\"transparent\"\n strokeWidth=\"8\"\n />\n </div>\n</p-blockUI>\n", styles: [".spinner-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center}\n"], dependencies: [{ kind: "ngmodule", type: ProgressSpinnerModule }, { kind: "component", type: i3$2.ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "ngmodule", type: BlockUIModule }, { kind: "component", type: i3$3.BlockUI, selector: "p-blockUI, p-blockui, p-block-ui", inputs: ["target", "autoZIndex", "baseZIndex", "styleClass", "blocked"] }] });
|
|
834
1175
|
}
|
|
835
1176
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpinnerComponent, decorators: [{
|
|
836
1177
|
type: Component,
|
|
@@ -958,7 +1299,7 @@ class TextboxComponent extends InputsComponent {
|
|
|
958
1299
|
useExisting: forwardRef(() => TextboxComponent),
|
|
959
1300
|
multi: true
|
|
960
1301
|
}
|
|
961
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"field-box\">\n <label *ngIf=\"label\" [for]=\"identity.id\">\n <span>{{ label }}</span>\n <span class=\"required-field\" *ngIf=\"required\"> •</span>\n </label>\n\n <input\n (input)=\"onInput($event)\"\n [disabled]=\"disabled\"\n [id]=\"identity.id\"\n [name]=\"identity.name\"\n [ngClass]=\"getInvalidClass()\"\n [ngStyle]=\"getInputStyle()\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [value]=\"value\"\n pInputText\n type=\"text\"\n />\n\n <small\n *ngIf=\"message\"\n [ngClass]=\"getInvalidMessageClass()\"\n >{{ message }}</small>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i6
|
|
1302
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"field-box\">\n <label *ngIf=\"label\" [for]=\"identity.id\">\n <span>{{ label }}</span>\n <span class=\"required-field\" *ngIf=\"required\"> •</span>\n </label>\n\n <input\n (input)=\"onInput($event)\"\n [disabled]=\"disabled\"\n [id]=\"identity.id\"\n [name]=\"identity.name\"\n [ngClass]=\"getInvalidClass()\"\n [ngStyle]=\"getInputStyle()\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [value]=\"value\"\n pInputText\n type=\"text\"\n />\n\n <small\n *ngIf=\"message\"\n [ngClass]=\"getInvalidMessageClass()\"\n >{{ message }}</small>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i6.InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }] });
|
|
962
1303
|
}
|
|
963
1304
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TextboxComponent, decorators: [{
|
|
964
1305
|
type: Component,
|
|
@@ -991,7 +1332,7 @@ class ToastComponent {
|
|
|
991
1332
|
this.$subscriptions.forEach(subscription => subscription?.unsubscribe());
|
|
992
1333
|
}
|
|
993
1334
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ToastComponent, deps: [{ token: MessageService }], target: i0.ɵɵFactoryTarget.Component });
|
|
994
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ToastComponent, isStandalone: true, selector: "sdc-toast", inputs: { key: "key", zIndex: "zIndex" }, viewQueries: [{ propertyName: "toast", first: true, predicate: ["toast"], descendants: true, static: true }], ngImport: i0, template: "<p-toast #toast [key]=\"key\" />\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ToastModule }, { kind: "component", type: i2$
|
|
1335
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ToastComponent, isStandalone: true, selector: "sdc-toast", inputs: { key: "key", zIndex: "zIndex" }, viewQueries: [{ propertyName: "toast", first: true, predicate: ["toast"], descendants: true, static: true }], ngImport: i0, template: "<p-toast #toast [key]=\"key\" />\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ToastModule }, { kind: "component", type: i2$2.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "life", "style", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }] });
|
|
995
1336
|
}
|
|
996
1337
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ToastComponent, decorators: [{
|
|
997
1338
|
type: Component,
|
|
@@ -1048,5 +1389,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1048
1389
|
* Generated bundle index. Do not edit.
|
|
1049
1390
|
*/
|
|
1050
1391
|
|
|
1051
|
-
export { ButtonComponent, CONSTANTS, ComboboxComponent, HyperlinkComponent, ListComponent, ModalComponent, PanelComponent, SQL_HELPER, SearchboxComponent, SpinnerComponent, SpinnerService, SqlEditorComponent, TextboxComponent, ToastComponent, ToastService, createSqlAutoCompletionHadler, getDimensionStyles, provideDataCoreLib, provideTranslations, serviceProviders, sqlDomainFilterDecorator, sqlFormatterHandler, sqlUppercaseHandler };
|
|
1392
|
+
export { ButtonComponent, CONSTANTS, ComboboxComponent, ConfirmComponent, HyperlinkComponent, ListComponent, ModalComponent, PanelComponent, SQL_HELPER, SearchboxComponent, SpinnerComponent, SpinnerService, SqlEditorComponent, TextboxComponent, ToastComponent, ToastService, createSqlAutoCompletionHadler, fixComboBoxOverlay, fixDialogMask, getDimensionStyles, provideDataCoreLib, provideTranslations, serviceProviders, sqlDomainFilterDecorator, sqlFormatterHandler, sqlUppercaseHandler };
|
|
1052
1393
|
//# sourceMappingURL=seniorsistemas-data-seniorx-core.mjs.map
|