@vgip/meta-ui 1.5.6 → 1.5.8

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.
Files changed (98) hide show
  1. package/esm2020/lib/fieldAbstract.mjs +6 -6
  2. package/esm2020/lib/fieldComposite/index.mjs +65 -0
  3. package/esm2020/lib/fieldList/index.mjs +68 -0
  4. package/esm2020/lib/fieldReference/index.mjs +823 -0
  5. package/esm2020/lib/fieldSelect/index.mjs +488 -0
  6. package/esm2020/lib/index.mjs +10 -18
  7. package/esm2020/lib/layout/index.mjs +151 -0
  8. package/esm2020/lib/metaField/index.mjs +139 -0
  9. package/esm2020/lib/refDialog/index.mjs +127 -0
  10. package/esm2020/lib/resource/index.mjs +480 -0
  11. package/esm2020/lib/resourceCard/index.mjs +42 -0
  12. package/esm2020/lib/services/metaReference/index.mjs +2 -3
  13. package/fesm2015/vgip-meta-ui-fieldAbstract-2d0882f1.mjs +382 -0
  14. package/fesm2015/vgip-meta-ui-fieldAbstract-2d0882f1.mjs.map +1 -0
  15. package/fesm2015/vgip-meta-ui-index-0068fb77.mjs +368 -0
  16. package/fesm2015/vgip-meta-ui-index-0068fb77.mjs.map +1 -0
  17. package/fesm2015/vgip-meta-ui-index-3488da98.mjs +130 -0
  18. package/fesm2015/vgip-meta-ui-index-3488da98.mjs.map +1 -0
  19. package/fesm2015/vgip-meta-ui-index-4d489d76.mjs +71 -0
  20. package/fesm2015/vgip-meta-ui-index-4d489d76.mjs.map +1 -0
  21. package/fesm2015/vgip-meta-ui-index-5615e618.mjs +95 -0
  22. package/fesm2015/vgip-meta-ui-index-5615e618.mjs.map +1 -0
  23. package/fesm2015/vgip-meta-ui-index-65c10356.mjs +57 -0
  24. package/fesm2015/vgip-meta-ui-index-65c10356.mjs.map +1 -0
  25. package/fesm2015/vgip-meta-ui-index-6a77fa96.mjs +74 -0
  26. package/fesm2015/vgip-meta-ui-index-6a77fa96.mjs.map +1 -0
  27. package/fesm2015/vgip-meta-ui-index-6bd006d4.mjs +496 -0
  28. package/fesm2015/vgip-meta-ui-index-6bd006d4.mjs.map +1 -0
  29. package/fesm2015/vgip-meta-ui-index-8f5be5a7.mjs +24 -0
  30. package/fesm2015/vgip-meta-ui-index-8f5be5a7.mjs.map +1 -0
  31. package/fesm2015/vgip-meta-ui-index-92be02c0.mjs +145 -0
  32. package/fesm2015/vgip-meta-ui-index-92be02c0.mjs.map +1 -0
  33. package/fesm2015/vgip-meta-ui-index-934aeabf.mjs +68 -0
  34. package/fesm2015/vgip-meta-ui-index-934aeabf.mjs.map +1 -0
  35. package/fesm2015/vgip-meta-ui-index-9b5ee0c4.mjs +88 -0
  36. package/fesm2015/vgip-meta-ui-index-9b5ee0c4.mjs.map +1 -0
  37. package/fesm2015/vgip-meta-ui-index-a308ba4f.mjs +856 -0
  38. package/fesm2015/vgip-meta-ui-index-a308ba4f.mjs.map +1 -0
  39. package/fesm2015/vgip-meta-ui-index-def34ca9.mjs +1882 -0
  40. package/fesm2015/vgip-meta-ui-index-def34ca9.mjs.map +1 -0
  41. package/fesm2015/vgip-meta-ui-index-fa0b1b8b.mjs +460 -0
  42. package/fesm2015/vgip-meta-ui-index-fa0b1b8b.mjs.map +1 -0
  43. package/fesm2015/vgip-meta-ui-metaModel.pipe-725f401c.mjs +28 -0
  44. package/fesm2015/vgip-meta-ui-metaModel.pipe-725f401c.mjs.map +1 -0
  45. package/fesm2015/vgip-meta-ui-relativeTimeBuilder-31791ce4.mjs +51 -0
  46. package/fesm2015/vgip-meta-ui-relativeTimeBuilder-31791ce4.mjs.map +1 -0
  47. package/fesm2015/vgip-meta-ui.mjs +40 -5083
  48. package/fesm2015/vgip-meta-ui.mjs.map +1 -1
  49. package/fesm2020/vgip-meta-ui-fieldAbstract-2d0882f1.mjs +382 -0
  50. package/fesm2020/vgip-meta-ui-fieldAbstract-2d0882f1.mjs.map +1 -0
  51. package/fesm2020/vgip-meta-ui-index-0068fb77.mjs +368 -0
  52. package/fesm2020/vgip-meta-ui-index-0068fb77.mjs.map +1 -0
  53. package/fesm2020/vgip-meta-ui-index-3488da98.mjs +130 -0
  54. package/fesm2020/vgip-meta-ui-index-3488da98.mjs.map +1 -0
  55. package/fesm2020/vgip-meta-ui-index-3907f4b1.mjs +1879 -0
  56. package/fesm2020/vgip-meta-ui-index-3907f4b1.mjs.map +1 -0
  57. package/fesm2020/vgip-meta-ui-index-3d8c2fcd.mjs +856 -0
  58. package/fesm2020/vgip-meta-ui-index-3d8c2fcd.mjs.map +1 -0
  59. package/fesm2020/vgip-meta-ui-index-5615e618.mjs +95 -0
  60. package/fesm2020/vgip-meta-ui-index-5615e618.mjs.map +1 -0
  61. package/fesm2020/vgip-meta-ui-index-65c10356.mjs +57 -0
  62. package/fesm2020/vgip-meta-ui-index-65c10356.mjs.map +1 -0
  63. package/fesm2020/vgip-meta-ui-index-6f96198b.mjs +70 -0
  64. package/fesm2020/vgip-meta-ui-index-6f96198b.mjs.map +1 -0
  65. package/fesm2020/vgip-meta-ui-index-710246ac.mjs +73 -0
  66. package/fesm2020/vgip-meta-ui-index-710246ac.mjs.map +1 -0
  67. package/fesm2020/vgip-meta-ui-index-8f5be5a7.mjs +24 -0
  68. package/fesm2020/vgip-meta-ui-index-8f5be5a7.mjs.map +1 -0
  69. package/fesm2020/vgip-meta-ui-index-934aeabf.mjs +68 -0
  70. package/fesm2020/vgip-meta-ui-index-934aeabf.mjs.map +1 -0
  71. package/fesm2020/vgip-meta-ui-index-9b5ee0c4.mjs +88 -0
  72. package/fesm2020/vgip-meta-ui-index-9b5ee0c4.mjs.map +1 -0
  73. package/fesm2020/vgip-meta-ui-index-e743527e.mjs +495 -0
  74. package/fesm2020/vgip-meta-ui-index-e743527e.mjs.map +1 -0
  75. package/fesm2020/vgip-meta-ui-index-e8e3b16a.mjs +142 -0
  76. package/fesm2020/vgip-meta-ui-index-e8e3b16a.mjs.map +1 -0
  77. package/fesm2020/vgip-meta-ui-index-fa0b1b8b.mjs +460 -0
  78. package/fesm2020/vgip-meta-ui-index-fa0b1b8b.mjs.map +1 -0
  79. package/fesm2020/vgip-meta-ui-metaModel.pipe-725f401c.mjs +28 -0
  80. package/fesm2020/vgip-meta-ui-metaModel.pipe-725f401c.mjs.map +1 -0
  81. package/fesm2020/vgip-meta-ui-relativeTimeBuilder-31791ce4.mjs +51 -0
  82. package/fesm2020/vgip-meta-ui-relativeTimeBuilder-31791ce4.mjs.map +1 -0
  83. package/fesm2020/vgip-meta-ui.mjs +39 -5083
  84. package/fesm2020/vgip-meta-ui.mjs.map +1 -1
  85. package/lib/fieldComposite/index.d.ts +12 -0
  86. package/lib/fieldList/index.d.ts +14 -0
  87. package/lib/fieldReference/index.d.ts +73 -0
  88. package/lib/fieldSelect/index.d.ts +48 -0
  89. package/lib/index.d.ts +31 -23
  90. package/lib/layout/index.d.ts +39 -0
  91. package/lib/metaField/index.d.ts +26 -0
  92. package/lib/refDialog/index.d.ts +33 -0
  93. package/lib/resource/index.d.ts +58 -0
  94. package/lib/resourceCard/index.d.ts +18 -0
  95. package/lib/services/metaReference/index.d.ts +1 -1
  96. package/package.json +1 -1
  97. package/esm2020/lib/field.mjs +0 -2325
  98. package/lib/field.d.ts +0 -292
@@ -0,0 +1,495 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component } from '@angular/core';
3
+ import { F as FieldAbstract } from './vgip-meta-ui-fieldAbstract-2d0882f1.mjs';
4
+ import * as i2 from '@angular/forms';
5
+ import { ControlContainer, NgForm } from '@angular/forms';
6
+ import { M as MetaRefDialog, b as MetaReferenceService, a as MetaResourceService } from './vgip-meta-ui-index-3907f4b1.mjs';
7
+ import * as i1 from '@angular/common';
8
+ import { M as MetaModelPipe } from './vgip-meta-ui-metaModel.pipe-725f401c.mjs';
9
+ import 'rxjs';
10
+ import 'rxjs/operators';
11
+ import './vgip-meta-ui-index-3488da98.mjs';
12
+ import '@angular/common/http';
13
+ import '@angular/router';
14
+ import './vgip-meta-ui-index-e8e3b16a.mjs';
15
+
16
+ class FieldSelect extends FieldAbstract {
17
+ constructor(referenceService, metaResource, viewContainerRef) {
18
+ super();
19
+ this.referenceService = referenceService;
20
+ this.metaResource = metaResource;
21
+ this.viewContainerRef = viewContainerRef;
22
+ this.isCreatable = false;
23
+ this.clickout = (event) => {
24
+ if (event.target.className === 'Vlt-dropdown__link' && this.elementRef.nativeElement.contains(event.target)) {
25
+ this.focus();
26
+ }
27
+ else if (event.target !== this.input &&
28
+ !event.target.classList.contains('Vlt-dropdown__block') &&
29
+ !this.detectSearchBlock(event.target)) {
30
+ this.dismissDropdown();
31
+ }
32
+ else if (this.detectSearchBlock(event.target)) {
33
+ event.target.focus();
34
+ }
35
+ else {
36
+ this.focus();
37
+ }
38
+ };
39
+ this.keydown = (event) => {
40
+ switch (event.key) {
41
+ case 'ArrowDown': {
42
+ this.showDropdown();
43
+ if (typeof (this.activeSuggestionIndex) === 'undefined') {
44
+ this.activeSuggestionIndex = 0;
45
+ }
46
+ else {
47
+ this.activeSuggestionIndex++;
48
+ if (this.activeSuggestionIndex >= this.options.length) {
49
+ this.activeSuggestionIndex = 0;
50
+ }
51
+ }
52
+ this.ensureDropdownOptionIsVisible();
53
+ event.preventDefault();
54
+ event.stopPropagation();
55
+ break;
56
+ }
57
+ case 'ArrowUp': {
58
+ this.showDropdown();
59
+ if (typeof (this.activeSuggestionIndex) === 'undefined') {
60
+ this.activeSuggestionIndex = this.options.length - 1;
61
+ }
62
+ else {
63
+ this.activeSuggestionIndex--;
64
+ if (this.activeSuggestionIndex < 0) {
65
+ this.activeSuggestionIndex = this.options.length - 1;
66
+ }
67
+ }
68
+ this.ensureDropdownOptionIsVisible();
69
+ event.preventDefault();
70
+ event.stopPropagation();
71
+ break;
72
+ }
73
+ case 'Enter':
74
+ case 'Space':
75
+ case ' ': {
76
+ if (typeof (this.activeSuggestionIndex) !== 'undefined') {
77
+ event.preventDefault();
78
+ event.stopPropagation();
79
+ this.onOptionSelect(event, this.options[this.activeSuggestionIndex]);
80
+ if (!this.multiple) {
81
+ delete this.activeSuggestionIndex;
82
+ }
83
+ }
84
+ break;
85
+ }
86
+ case 'Escape': {
87
+ event.preventDefault();
88
+ event.stopPropagation();
89
+ this.dismissDropdown();
90
+ break;
91
+ }
92
+ case 'Backspace': {
93
+ if (!this.dropdown.classList.contains('Vlt-dropdown--expanded')) {
94
+ event.preventDefault();
95
+ event.stopPropagation();
96
+ this.clear();
97
+ }
98
+ break;
99
+ }
100
+ }
101
+ };
102
+ }
103
+ get options() {
104
+ return this.filteredOptions || this.asyncOptions || this.meta.options || this.meta.picklist || [];
105
+ }
106
+ get groupedOptions() {
107
+ return this.options.reduce((r, { group }) => {
108
+ if (!r.some(o => o.group === group)) {
109
+ r.push({ group, groupItem: this.options.filter(v => v.group === group) });
110
+ }
111
+ return r;
112
+ }, []);
113
+ }
114
+ get resourceService() {
115
+ if (!this.metaResourceService) {
116
+ const metaResourceConfig = {
117
+ integrationCode: this.integrationCode,
118
+ resourceType: this.resourceType
119
+ };
120
+ this.metaResourceService = this.metaResource.new(metaResourceConfig);
121
+ }
122
+ return this.metaResourceService;
123
+ }
124
+ get optionsBackup() {
125
+ return this.asyncOptions || this.meta.options || this.meta.picklist || [];
126
+ }
127
+ static setup(instance, parent, meta) { }
128
+ ngOnInit() {
129
+ // console.log('parent', this.parent);
130
+ this.validationAttributes = ['required'];
131
+ this.multiple = (this.meta.type === 'multipicklist') || this.meta.multiple;
132
+ const origValue = this.parent[this.meta.name];
133
+ if (this.meta.reference) {
134
+ this.isCreatable = true;
135
+ }
136
+ Object.defineProperty(this.parent, this.meta.name, {
137
+ set: (value) => {
138
+ if (this.multiple) {
139
+ if (value && value instanceof Array === false) {
140
+ for (const o of this.options) {
141
+ if ((value.id || value) === (o.id || o.value || o.name || 0)) {
142
+ this.model = [o];
143
+ this.value = [this.modelToValue(o, this.meta.valueType)];
144
+ break;
145
+ }
146
+ }
147
+ }
148
+ if (!value || value.length) {
149
+ const values = (value instanceof Array) ? value : (value || '').split(';'); // should not handle incorrect values
150
+ this.value = [];
151
+ this.model = [];
152
+ for (const v of values) {
153
+ if (v) {
154
+ for (const o of this.options) {
155
+ if ((v.id || v) === (o.id || o.value || o.name || 0)) {
156
+ this.model.push(o);
157
+ this.value.push(this.modelToValue(o, this.meta.valueType));
158
+ break;
159
+ }
160
+ }
161
+ }
162
+ }
163
+ if (!this.model.length && !this.isPersistedParent) {
164
+ delete this.model;
165
+ delete this.value;
166
+ delete this.showText;
167
+ }
168
+ else {
169
+ this.showText = (this.model || []).map((o) => o.label || o).join(', ');
170
+ }
171
+ }
172
+ }
173
+ else {
174
+ if (value) {
175
+ for (const o of this.options) {
176
+ if ((value.id || value) === (o.id || o.value || o.name || o)) {
177
+ this.model = o;
178
+ this.value = this.modelToValue(o, this.meta.valueType);
179
+ this.showText = o.label || o;
180
+ break;
181
+ }
182
+ }
183
+ }
184
+ else {
185
+ delete this.model;
186
+ delete this.value;
187
+ delete this.showText;
188
+ }
189
+ }
190
+ this.onSubjectChange(this.model);
191
+ this.meta.$optional = this.isOptional;
192
+ },
193
+ get: () => this.value,
194
+ enumerable: this.sendToServer,
195
+ configurable: true
196
+ });
197
+ if (origValue) {
198
+ this.parent[this.meta.name] = origValue;
199
+ }
200
+ if (this.default && !this.model) {
201
+ setTimeout(() => {
202
+ this.parent[this.meta.name] = this.default.id || this.default;
203
+ }, 0);
204
+ }
205
+ if (typeof (this.meta.enabled) !== undefined) {
206
+ if (typeof (this.meta.enabled) === 'object') {
207
+ for (const par of Object.keys(this.meta.enabled)) {
208
+ const parValue = this.parent[par];
209
+ if (parValue) {
210
+ // logic for specific values, this works only for true
211
+ }
212
+ else {
213
+ this.logicalDisabled = true;
214
+ this.clear();
215
+ }
216
+ this.filterOptions();
217
+ this.parentChangeSubject.subscribe((value) => {
218
+ if (value && value.hasOwnProperty(par)) {
219
+ this.logicalDisabled = !value[par];
220
+ if (this.logicalDisabled) {
221
+ this.clear();
222
+ }
223
+ else {
224
+ this.filterOptions();
225
+ }
226
+ }
227
+ });
228
+ }
229
+ }
230
+ }
231
+ if (this.meta.search) {
232
+ const searchParams = this.meta.search.params;
233
+ if (searchParams) {
234
+ for (const par of Object.keys(searchParams)) {
235
+ const parValue = this.parent[searchParams[par]];
236
+ if (parValue) {
237
+ const params = {};
238
+ params[par] = parValue;
239
+ this.searchOptions(params);
240
+ }
241
+ this.parentChangeSubject.subscribe((value) => {
242
+ if (value && value.hasOwnProperty(searchParams[par])) {
243
+ this.searchOptions(value);
244
+ }
245
+ });
246
+ }
247
+ }
248
+ }
249
+ }
250
+ onActivated(ev) {
251
+ // ev.preventDefault();
252
+ // ev.stopPropagation();
253
+ this.input = ev.srcElement;
254
+ if (!this.dropdown) {
255
+ this.dropdown = ev.srcElement.parentNode.parentNode.parentNode;
256
+ this.searchInput = this.dropdown.querySelector('.vgip-search_input');
257
+ }
258
+ this.showDropdown();
259
+ }
260
+ detectSearchBlock(element) {
261
+ return this.elementRef.nativeElement.querySelector('.Vlt-search_wrap').contains(element);
262
+ }
263
+ onBlur(ev) {
264
+ let internalControl = false;
265
+ if (ev.relatedTarget) {
266
+ if (!this.detectSearchBlock(ev.relatedTarget) && !this.elementRef.nativeElement.contains(ev.relatedTarget)) {
267
+ this.dismissDropdown();
268
+ }
269
+ else {
270
+ internalControl = true;
271
+ }
272
+ }
273
+ if (this.keyListenerActive && !internalControl) {
274
+ this.input.removeEventListener('keydown', this.keydown);
275
+ if (this.searchInput) {
276
+ this.searchInput.removeEventListener('keydown', this.keydown);
277
+ }
278
+ setTimeout(() => {
279
+ if (!this.keyListenerActive) {
280
+ document.removeEventListener('click', this.clickout);
281
+ }
282
+ }, 400);
283
+ delete this.keyListenerActive;
284
+ }
285
+ this.onLeave.emit(ev);
286
+ }
287
+ onOptionSelect(ev, option) {
288
+ if (ev) {
289
+ ev.preventDefault();
290
+ ev.stopPropagation();
291
+ }
292
+ this.focus();
293
+ if (this.multiple) {
294
+ if (!this.model) {
295
+ this.model = [];
296
+ }
297
+ const optionIndex = this.model.indexOf(option);
298
+ if (optionIndex === -1) {
299
+ this.model.push(option);
300
+ }
301
+ else {
302
+ this.model.splice(optionIndex, 1);
303
+ if (!this.model.length) {
304
+ delete this.model;
305
+ }
306
+ }
307
+ this.onModelChange(this.model);
308
+ if (this.model) {
309
+ this.showText = (this.model || []).map((o) => o.label || o).join(', ');
310
+ }
311
+ else {
312
+ delete this.showText;
313
+ }
314
+ }
315
+ else {
316
+ this.dismissDropdown();
317
+ if (typeof option !== 'undefined') {
318
+ this.model = option;
319
+ this.onModelChange(option);
320
+ this.showText = option.label || (option.id === '' ? '--empty--' : option);
321
+ if (typeof (option) === 'object' && !option.id && option.id !== '') {
322
+ delete this.showText;
323
+ }
324
+ }
325
+ }
326
+ }
327
+ clear(ev) {
328
+ delete this.model;
329
+ this.onModelChange(this.model);
330
+ delete this.showText;
331
+ if (ev) {
332
+ ev.preventDefault();
333
+ ev.stopPropagation();
334
+ return false;
335
+ }
336
+ }
337
+ openResource(ev) {
338
+ const refDialogComponent = this.viewContainerRef.createComponent(MetaRefDialog);
339
+ this.referenceService.openDialog(refDialogComponent, this.metaResource, this.integrationCode, this.meta.reference, null).subscribe((result) => {
340
+ if (result) {
341
+ const existingOptions = (this.meta.options || []).find((o) => (o.id === result.id && o.type === result.type));
342
+ if (existingOptions) {
343
+ existingOptions.label = result.label;
344
+ }
345
+ else {
346
+ if (!this.meta.options) {
347
+ this.meta.options = [];
348
+ }
349
+ this.meta.options.unshift(result);
350
+ }
351
+ this.onOptionSelect(ev, result);
352
+ }
353
+ });
354
+ }
355
+ showDropdown() {
356
+ this.dropdown.classList.add('Vlt-dropdown--expanded');
357
+ if (!this.keyListenerActive) {
358
+ if (this.searchInput) {
359
+ this.searchInput.focus(); // Focus directly on search input first visit
360
+ this.searchInput.addEventListener('keydown', this.keydown);
361
+ }
362
+ this.input.addEventListener('keydown', this.keydown);
363
+ setTimeout(() => {
364
+ document.addEventListener('click', this.clickout);
365
+ }, 200);
366
+ this.keyListenerActive = true;
367
+ if (this.options && this.model) {
368
+ for (let suggestionIndex = 0; suggestionIndex < this.options.length; suggestionIndex++) {
369
+ if (this.model === this.options[suggestionIndex]) {
370
+ this.activeSuggestionIndex = suggestionIndex;
371
+ }
372
+ }
373
+ }
374
+ }
375
+ this.ensureDropdownIsVisible();
376
+ }
377
+ dismissDropdown(event) {
378
+ if (event) {
379
+ this.focus();
380
+ }
381
+ if (this.dropdown) {
382
+ this.dropdown.classList.remove('Vlt-dropdown--expanded');
383
+ }
384
+ if (this.searchInput) {
385
+ this.clearSearchField();
386
+ }
387
+ delete this.activeSuggestionIndex;
388
+ }
389
+ onSearchChange() {
390
+ const search = new RegExp(this.searchInputText, 'gi');
391
+ if (this.searchInputText === '') {
392
+ this.filteredOptions = [...this.optionsBackup];
393
+ }
394
+ this.filteredOptions = this.optionsBackup.filter(option => option.label.match(search));
395
+ }
396
+ clearSearchField() {
397
+ this.searchInputText = '';
398
+ this.onSearchChange();
399
+ }
400
+ ensureDropdownIsVisible() {
401
+ setTimeout(() => {
402
+ const holder = this.dropdown.closest('.Vlt-card__content');
403
+ if (holder) {
404
+ const el = this.elementRef.nativeElement.querySelector('.Vlt-dropdown__panel');
405
+ const elRect = el.getBoundingClientRect();
406
+ const holderRect = holder.getBoundingClientRect();
407
+ if (holderRect.top + holderRect.height < elRect.top + elRect.height) {
408
+ el.scrollIntoView({ block: 'end' });
409
+ }
410
+ }
411
+ }, 400);
412
+ }
413
+ ensureDropdownOptionIsVisible() {
414
+ if (!this.dropdownScrollContainer) {
415
+ this.dropdownScrollContainer = this.dropdown.querySelector('.Vlt-dropdown__scroll');
416
+ }
417
+ if (this.dropdownScrollContainer && typeof (this.activeSuggestionIndex) === 'number') {
418
+ const scrollTop = 44 * this.activeSuggestionIndex;
419
+ const scrollBottom = 44 * (this.activeSuggestionIndex - 7);
420
+ if (scrollTop < this.dropdownScrollContainer.scrollTop) {
421
+ this.dropdownScrollContainer.scrollTop = scrollTop;
422
+ }
423
+ else if (scrollBottom > this.dropdownScrollContainer.scrollTop) {
424
+ this.dropdownScrollContainer.scrollTop = scrollBottom;
425
+ }
426
+ }
427
+ }
428
+ filterOptions() {
429
+ this.asyncOptions = [];
430
+ if (!this.logicalDisabled) {
431
+ for (const o of this.meta.options) {
432
+ if (o.for) {
433
+ for (const par of Object.keys(o.for)) {
434
+ const parValue = this.parent[par];
435
+ if (o.for[par].indexOf(parValue) !== -1) {
436
+ this.asyncOptions.push(o);
437
+ }
438
+ }
439
+ }
440
+ else {
441
+ this.asyncOptions.push(o);
442
+ }
443
+ }
444
+ }
445
+ // remove current selection if not one of the filtered options
446
+ if (this.asyncOptions.indexOf(this.model) === -1) {
447
+ delete this.model;
448
+ delete this.value;
449
+ delete this.showText;
450
+ delete this.parent[this.meta.name];
451
+ }
452
+ }
453
+ searchOptions(params) {
454
+ let searchUrl = `/fields/${this.meta.name}/search`;
455
+ if (this.meta.search) {
456
+ if (this.meta.search.url) {
457
+ searchUrl = this.meta.search.url;
458
+ }
459
+ const searchParams = this.meta.search.params;
460
+ if (searchParams) {
461
+ for (const par of Object.keys(searchParams)) {
462
+ const val = this.parent[searchParams[par]];
463
+ if (val) {
464
+ searchUrl += `${searchUrl.indexOf('?') === -1 ? '?' : '&'}${par}=${val.id || val}`;
465
+ }
466
+ }
467
+ }
468
+ }
469
+ this.searching = true;
470
+ this.resourceService.getByPath(searchUrl).subscribe((options) => {
471
+ this.asyncOptions = options;
472
+ let validValue = false;
473
+ if (this.value) {
474
+ for (const o of options) {
475
+ if ((o.id || o) === (this.value.id || this.value)) {
476
+ validValue = true;
477
+ }
478
+ }
479
+ if (!validValue) {
480
+ this.clear();
481
+ }
482
+ }
483
+ delete this.searching;
484
+ });
485
+ }
486
+ }
487
+ FieldSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: FieldSelect, deps: [{ token: MetaReferenceService }, { token: MetaResourceService }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
488
+ FieldSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0", type: FieldSelect, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<div class='vgip-meta-field-preview' *ngIf='preview && model'>\n <div class='vgip-meta-field-label'>{{meta.label || meta.name}}</div>\n <div class='vgip-meta-field-value __gu'>\n {{model.label || model.id || model}}\n </div>\n</div>\n<div *ngIf='!preview' class=\"Vlt-form__element\"\n [ngClass]=\"{ 'Vlt-form__element--big': !meta.small ,'has-value': f.value, active: keyListenerActive, 'Vlt-form__element--error': f.invalid && ((f | metaModel)._parent.submitted || (ft | metaModel ).touched), 'no-x': meta.noX }\">\n <div class=\"Vlt-composite Vlt-dropdown Vlt-input\" style='display: block;'\n [ngClass]=\"{ 'has-append-button': isCreatable && !disabled }\">\n <div class=\"Vlt-select\">\n <label class='wrapper'>\n <label class='Vlt-truncate'>{{meta.label || meta.name}}<span\n *ngIf='validations.required && options.length' class='Vlt-red'>*</span></label>\n <input class='main' [required]='validations.required && !!options.length' readonly [ngModel]='showText'\n #ft='ngModel' [ngModelOptions]=\"{standalone: true}\" type=\"text\"\n [placeholder]=\"meta.placeholder || ' '\" (click)='onActivated($event)' (focus)='onActivated($event)'\n (blur)='onBlur($event)' [ngClass]=\"{ 'standalone': meta.standalone }\"\n [disabled]='disabled' [attr.aria-label]='meta.label' />\n </label>\n <select class='model' [required]='validations.required && !!options.length' style='display: none;'\n [(ngModel)]='model' [ngModelOptions]=\"{standalone: meta.standalone}\"\n (ngModelChange)=\"onModelChange($event)\" #f='ngModel' [name]='name'></select>\n <div *ngIf='searching' class='search-progress'>\n <div class=\"container\">\n <div class=\"bar Vlt-bg-purple\"></div>\n </div>\n </div>\n <div class='Vlt-composite__append right-actions'>\n <div *ngIf='model && !meta.noX && !disabled' class=\"Vlt-composite__append--icon\"\n (click)='clear($event)'>\n <div class=\"Vlt-composite__icon\">\n <svg>\n <use xlink:href=\"volta/volta-icons.svg#Vlt-icon-cross\" />\n </svg>\n </div>\n </div>\n </div>\n </div>\n <div class='Vlt-dropdown__panel'>\n <div class=\"Vlt-dropdown__panel__content Vlt-dropdown__panel__content--scroll-area\">\n <!-- <div class=\"Vlt-dropdown__title\" style='padding-left: 15px;'>\n Select ({{options.length}})\n <div class=\"Vlt-dropdown__close Vlt-white\" (click)='dismissDropdown($event)'>\n <svg class='Vlt-icon Vlt-icon--small'><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-cross\"/></svg>\n </div>\n </div> -->\n <div class=\"Vlt-dropdown__block Vlt-search_wrap\">\n <div *ngIf=\"optionsBackup.length > 12\" class=\"Vlt-composite\">\n <div class=\"Vlt-composite__prepend Vlt-composite__prepend--icon\"\n style=\"top: 0; padding-top: 15px;\">\n <div class=\"Vlt-composite__icon\">\n <svg class='Vlt-grey'>\n <use xlink:href=\"volta/volta-icons.svg#Vlt-icon-search\"></use>\n </svg>\n </div>\n </div>\n <div class=\"Vlt-input\">\n <input type=\"text\" class=\"vgip-search_input\" [(ngModel)]=\"searchInputText\" placeholder=\"Search\" (input)=\"onSearchChange()\" (blur)='onBlur($event)' [ngModelOptions]=\"{standalone: true}\">\n </div>\n <div class=\"Vlt-composite__append--icon\"\n style=\"top: 2px;\" (click)=\"clearSearchField()\" [hidden]=\"searchInputText === ''\">\n <div class=\"Vlt-composite__icon\">\n <svg class='Vlt-icon Vlt-icon--small'>\n <use xlink:href=\"volta/volta-icons.svg#Vlt-icon-cross\"/>\n </svg>\n </div>\n </div>\n </div>\n </div>\n <div *ngIf='dropdown' class='Vlt-dropdown__scroll'>\n <div [ngClass]=\"{ 'Vlt-dropdown__link--selected': activeSuggestionIndex === i }\"\n (click)='onOptionSelect($event, option)' *ngFor='let option of options; let i = index'\n class=\"Vlt-dropdown__link\">\n <div *ngIf='multiple' class=\"Vlt-checkbox\" style='width: 100%;'>\n <label>\n <span class=\"Vlt-checkbox__button\">\n <input type=\"checkbox\" [checked]='model && model.indexOf(option) !== -1' />\n <span class=\"Vlt-checkbox__icon\"></span>\n </span>\n {{option.label || (option.id === '' ? '--empty--' : option)}}\n </label>\n </div>\n <div *ngIf='!multiple' style='padding: 12px 20px;'>{{option.label || (option.id === '' ?\n '--empty--' : option)}}</div>\n </div>\n <!-- No Option Found -->\n <div class=\"Vlt-dropdown__link\" *ngIf=\"options.length === 0\">\n <div style='padding: 12px 20px;'>No Option Found</div>\n </div>\n </div>\n <div *ngIf='!multiple' class=\"Vlt-dropdown__block\"></div>\n <div *ngIf='multiple' class=\"Vlt-dropdown__block Vlt-dropdown__block--nowrap\"\n style='padding: 8px 16px 16px;'>\n <button (click)='clear($event)' type='button'\n class=\"Vlt-btn Vlt-btn--secondary Vlt-btn--app Vlt-btn--small Vlt-btn--outline\"\n style='margin-right: 8px;'>Clear all</button>\n <button (click)='dismissDropdown($event)' type='button'\n class=\"Vlt-btn Vlt-btn--secondary Vlt-btn--app Vlt-btn--small\">Done</button>\n </div>\n </div>\n </div>\n <!-- <span *ngIf='isCreatable'>\n <button type='button' (click)='openResource($event)' class=\"Vlt-btn Vlt-btn--secondary Vlt-btn--icon Vlt-btn--large\" style='margin-left: 12px;'>\n <svg><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-plus\"/></svg>\n </button>\n </span> -->\n <div *ngIf='isCreatable && !disabled' class=\"Vlt-composite__append\">\n <button (focus)='onActivated($event)' (blur)='onBlur($event)' type='button' (click)='openResource($event)'\n class=\"Vlt-btn Vlt-btn--white Vlt-btn--icon add-button\" aria-label='Add new'>\n <svg>\n <use xlink:href=\"volta/volta-icons.svg#Vlt-icon-plus\" />\n </svg>\n </button>\n </div>\n </div>\n <small *ngIf='f.invalid && ((f | metaModel)._parent.submitted || ((ft | metaModel).touched && keyListenerActive))'\n class=\"Vlt-form__element__error\">\n <span *ngIf=\"f.errors.required\">Required.&nbsp;</span>\n <span *ngIf=\"f.errors.custom\">{{f.errors.custom}}&nbsp;</span>\n </small>\n <small *ngIf='meta.hint' class=\"Vlt-form__element__hint\">{{meta.hint}}</small>\n</div>\n", styles: [".Vlt-form__element.no-x input.main{padding-right:40px}.Vlt-form__element--big:not(.has-value)>.Vlt-input>.Vlt-select>label>label{font-size:1.6rem;margin-top:-.8rem;top:50%}.Vlt-form__element--big input[readonly].main:not([disabled]){background:var(--vgip-meta-input-bg-color);border:1px solid var(--vgip-meta-input-border-color)}.Vlt-form__element--big:hover input[readonly].main,.Vlt-form__element--big:hover .Vlt-composite__append button,.Vlt-form__element--big:focus input[readonly].main,.Vlt-form__element--big:focus .Vlt-composite__append button,.Vlt-form__element--big.active input[readonly].main,.Vlt-form__element--big.active .Vlt-composite__append button{border-color:var(--vgip-meta-input-active-border-color)}.Vlt-form__element--big.Vlt-form__element--error input[readonly].main,.Vlt-form__element--big.Vlt-form__element--error .Vlt-composite__append button{border-color:#f25a6b;box-shadow:none}.Vlt-form__element--big .Vlt-select:after{background-image:var(--vgip-meta-dropdown-icon);margin-right:2px}.Vlt-form__element--big .Vlt-form__element__hint{color:var(--vgip-meta-input-hint-color)}.Vlt-composite.has-append-button input[readonly].main{border-top-right-radius:0;border-bottom-right-radius:0;border-right:0}.Vlt-composite.has-append-button .Vlt-select:after{margin-right:-10px}.Vlt-composite__append{z-index:initial}.Vlt-composite__append button{height:48px;background:var(--vgip-meta-input-bg-color);border-color:var(--vgip-meta-input-border-color);padding-right:16px;padding-left:16px;border-left:0}.Vlt-composite__append button:hover{background:var(--vgip-meta-input-action-hover-bg-color)}.Vlt-composite__append button svg{margin:-2px 0 0;fill:var(--vgip-meta-input-accent-color)}.Vlt-dropdown__panel{width:100%}.Vlt-dropdown__panel .Vlt-dropdown__link{padding:0 20px 0 0}.Vlt-dropdown__panel .Vlt-dropdown__link.Vlt-dropdown__link--selected{background:rgba(44,45,48,.05)}.Vlt-dropdown__panel label{margin-top:0;padding:12px 20px;top:0;left:0;pointer-events:initial;position:initial;color:initial;font-size:inherit;transition:none;cursor:pointer}.Vlt-dropdown__panel label input{height:0}input.main{cursor:pointer;padding-right:76px}.Vlt-input.has-append-button .Vlt-composite__append.right-actions{right:42px}.Vlt-composite__append.right-actions{position:absolute;top:5px;right:53px;cursor:pointer}.Vlt-composite__append.right-actions .Vlt-composite__append--icon{width:36px;outline:none;position:initial;display:inline-block}.Vlt-composite__append.right-actions .Vlt-composite__append--icon svg{height:14px;width:14px}.Vlt-composite__append.right-actions .Vlt-composite__append--icon:hover svg,.Vlt-composite__append.right-actions .Vlt-composite__append--icon:focus svg{fill:var(--vgip-meta-input-accent-color)}.Vlt-search_wrap{padding-top:10px}.Vlt-search_wrap .vgip-search_input{padding:8px 36px 8px 38px;width:100%;border:1px solid var(--vgip-meta-input-border-color)!important;border-radius:6px!important}.Vlt-search_wrap .vgip-search_input:focus,.Vlt-search_wrap .vgip-search_input:active,.Vlt-search_wrap .vgip-search_input:hover{border-color:var(--vgip-meta-input-active-border-color)!important}.Vlt-search_wrap .Vlt-composite__append--icon{cursor:pointer}.Vlt-search_wrap .Vlt-composite__append--icon svg{height:14px;width:14px}.Vlt-search_wrap .Vlt-composite__append--icon:focus svg,.Vlt-search_wrap .Vlt-composite__append--icon:active svg,.Vlt-search_wrap .Vlt-composite__append--icon:hover svg{fill:var(--vgip-meta-input-accent-color)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.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: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: MetaModelPipe, name: "metaModel" }], viewProviders: [{ provide: ControlContainer, useExisting: NgForm }] });
489
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: FieldSelect, decorators: [{
490
+ type: Component,
491
+ args: [{ viewProviders: [{ provide: ControlContainer, useExisting: NgForm }], template: "<div class='vgip-meta-field-preview' *ngIf='preview && model'>\n <div class='vgip-meta-field-label'>{{meta.label || meta.name}}</div>\n <div class='vgip-meta-field-value __gu'>\n {{model.label || model.id || model}}\n </div>\n</div>\n<div *ngIf='!preview' class=\"Vlt-form__element\"\n [ngClass]=\"{ 'Vlt-form__element--big': !meta.small ,'has-value': f.value, active: keyListenerActive, 'Vlt-form__element--error': f.invalid && ((f | metaModel)._parent.submitted || (ft | metaModel ).touched), 'no-x': meta.noX }\">\n <div class=\"Vlt-composite Vlt-dropdown Vlt-input\" style='display: block;'\n [ngClass]=\"{ 'has-append-button': isCreatable && !disabled }\">\n <div class=\"Vlt-select\">\n <label class='wrapper'>\n <label class='Vlt-truncate'>{{meta.label || meta.name}}<span\n *ngIf='validations.required && options.length' class='Vlt-red'>*</span></label>\n <input class='main' [required]='validations.required && !!options.length' readonly [ngModel]='showText'\n #ft='ngModel' [ngModelOptions]=\"{standalone: true}\" type=\"text\"\n [placeholder]=\"meta.placeholder || ' '\" (click)='onActivated($event)' (focus)='onActivated($event)'\n (blur)='onBlur($event)' [ngClass]=\"{ 'standalone': meta.standalone }\"\n [disabled]='disabled' [attr.aria-label]='meta.label' />\n </label>\n <select class='model' [required]='validations.required && !!options.length' style='display: none;'\n [(ngModel)]='model' [ngModelOptions]=\"{standalone: meta.standalone}\"\n (ngModelChange)=\"onModelChange($event)\" #f='ngModel' [name]='name'></select>\n <div *ngIf='searching' class='search-progress'>\n <div class=\"container\">\n <div class=\"bar Vlt-bg-purple\"></div>\n </div>\n </div>\n <div class='Vlt-composite__append right-actions'>\n <div *ngIf='model && !meta.noX && !disabled' class=\"Vlt-composite__append--icon\"\n (click)='clear($event)'>\n <div class=\"Vlt-composite__icon\">\n <svg>\n <use xlink:href=\"volta/volta-icons.svg#Vlt-icon-cross\" />\n </svg>\n </div>\n </div>\n </div>\n </div>\n <div class='Vlt-dropdown__panel'>\n <div class=\"Vlt-dropdown__panel__content Vlt-dropdown__panel__content--scroll-area\">\n <!-- <div class=\"Vlt-dropdown__title\" style='padding-left: 15px;'>\n Select ({{options.length}})\n <div class=\"Vlt-dropdown__close Vlt-white\" (click)='dismissDropdown($event)'>\n <svg class='Vlt-icon Vlt-icon--small'><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-cross\"/></svg>\n </div>\n </div> -->\n <div class=\"Vlt-dropdown__block Vlt-search_wrap\">\n <div *ngIf=\"optionsBackup.length > 12\" class=\"Vlt-composite\">\n <div class=\"Vlt-composite__prepend Vlt-composite__prepend--icon\"\n style=\"top: 0; padding-top: 15px;\">\n <div class=\"Vlt-composite__icon\">\n <svg class='Vlt-grey'>\n <use xlink:href=\"volta/volta-icons.svg#Vlt-icon-search\"></use>\n </svg>\n </div>\n </div>\n <div class=\"Vlt-input\">\n <input type=\"text\" class=\"vgip-search_input\" [(ngModel)]=\"searchInputText\" placeholder=\"Search\" (input)=\"onSearchChange()\" (blur)='onBlur($event)' [ngModelOptions]=\"{standalone: true}\">\n </div>\n <div class=\"Vlt-composite__append--icon\"\n style=\"top: 2px;\" (click)=\"clearSearchField()\" [hidden]=\"searchInputText === ''\">\n <div class=\"Vlt-composite__icon\">\n <svg class='Vlt-icon Vlt-icon--small'>\n <use xlink:href=\"volta/volta-icons.svg#Vlt-icon-cross\"/>\n </svg>\n </div>\n </div>\n </div>\n </div>\n <div *ngIf='dropdown' class='Vlt-dropdown__scroll'>\n <div [ngClass]=\"{ 'Vlt-dropdown__link--selected': activeSuggestionIndex === i }\"\n (click)='onOptionSelect($event, option)' *ngFor='let option of options; let i = index'\n class=\"Vlt-dropdown__link\">\n <div *ngIf='multiple' class=\"Vlt-checkbox\" style='width: 100%;'>\n <label>\n <span class=\"Vlt-checkbox__button\">\n <input type=\"checkbox\" [checked]='model && model.indexOf(option) !== -1' />\n <span class=\"Vlt-checkbox__icon\"></span>\n </span>\n {{option.label || (option.id === '' ? '--empty--' : option)}}\n </label>\n </div>\n <div *ngIf='!multiple' style='padding: 12px 20px;'>{{option.label || (option.id === '' ?\n '--empty--' : option)}}</div>\n </div>\n <!-- No Option Found -->\n <div class=\"Vlt-dropdown__link\" *ngIf=\"options.length === 0\">\n <div style='padding: 12px 20px;'>No Option Found</div>\n </div>\n </div>\n <div *ngIf='!multiple' class=\"Vlt-dropdown__block\"></div>\n <div *ngIf='multiple' class=\"Vlt-dropdown__block Vlt-dropdown__block--nowrap\"\n style='padding: 8px 16px 16px;'>\n <button (click)='clear($event)' type='button'\n class=\"Vlt-btn Vlt-btn--secondary Vlt-btn--app Vlt-btn--small Vlt-btn--outline\"\n style='margin-right: 8px;'>Clear all</button>\n <button (click)='dismissDropdown($event)' type='button'\n class=\"Vlt-btn Vlt-btn--secondary Vlt-btn--app Vlt-btn--small\">Done</button>\n </div>\n </div>\n </div>\n <!-- <span *ngIf='isCreatable'>\n <button type='button' (click)='openResource($event)' class=\"Vlt-btn Vlt-btn--secondary Vlt-btn--icon Vlt-btn--large\" style='margin-left: 12px;'>\n <svg><use xlink:href=\"volta/volta-icons.svg#Vlt-icon-plus\"/></svg>\n </button>\n </span> -->\n <div *ngIf='isCreatable && !disabled' class=\"Vlt-composite__append\">\n <button (focus)='onActivated($event)' (blur)='onBlur($event)' type='button' (click)='openResource($event)'\n class=\"Vlt-btn Vlt-btn--white Vlt-btn--icon add-button\" aria-label='Add new'>\n <svg>\n <use xlink:href=\"volta/volta-icons.svg#Vlt-icon-plus\" />\n </svg>\n </button>\n </div>\n </div>\n <small *ngIf='f.invalid && ((f | metaModel)._parent.submitted || ((ft | metaModel).touched && keyListenerActive))'\n class=\"Vlt-form__element__error\">\n <span *ngIf=\"f.errors.required\">Required.&nbsp;</span>\n <span *ngIf=\"f.errors.custom\">{{f.errors.custom}}&nbsp;</span>\n </small>\n <small *ngIf='meta.hint' class=\"Vlt-form__element__hint\">{{meta.hint}}</small>\n</div>\n", styles: [".Vlt-form__element.no-x input.main{padding-right:40px}.Vlt-form__element--big:not(.has-value)>.Vlt-input>.Vlt-select>label>label{font-size:1.6rem;margin-top:-.8rem;top:50%}.Vlt-form__element--big input[readonly].main:not([disabled]){background:var(--vgip-meta-input-bg-color);border:1px solid var(--vgip-meta-input-border-color)}.Vlt-form__element--big:hover input[readonly].main,.Vlt-form__element--big:hover .Vlt-composite__append button,.Vlt-form__element--big:focus input[readonly].main,.Vlt-form__element--big:focus .Vlt-composite__append button,.Vlt-form__element--big.active input[readonly].main,.Vlt-form__element--big.active .Vlt-composite__append button{border-color:var(--vgip-meta-input-active-border-color)}.Vlt-form__element--big.Vlt-form__element--error input[readonly].main,.Vlt-form__element--big.Vlt-form__element--error .Vlt-composite__append button{border-color:#f25a6b;box-shadow:none}.Vlt-form__element--big .Vlt-select:after{background-image:var(--vgip-meta-dropdown-icon);margin-right:2px}.Vlt-form__element--big .Vlt-form__element__hint{color:var(--vgip-meta-input-hint-color)}.Vlt-composite.has-append-button input[readonly].main{border-top-right-radius:0;border-bottom-right-radius:0;border-right:0}.Vlt-composite.has-append-button .Vlt-select:after{margin-right:-10px}.Vlt-composite__append{z-index:initial}.Vlt-composite__append button{height:48px;background:var(--vgip-meta-input-bg-color);border-color:var(--vgip-meta-input-border-color);padding-right:16px;padding-left:16px;border-left:0}.Vlt-composite__append button:hover{background:var(--vgip-meta-input-action-hover-bg-color)}.Vlt-composite__append button svg{margin:-2px 0 0;fill:var(--vgip-meta-input-accent-color)}.Vlt-dropdown__panel{width:100%}.Vlt-dropdown__panel .Vlt-dropdown__link{padding:0 20px 0 0}.Vlt-dropdown__panel .Vlt-dropdown__link.Vlt-dropdown__link--selected{background:rgba(44,45,48,.05)}.Vlt-dropdown__panel label{margin-top:0;padding:12px 20px;top:0;left:0;pointer-events:initial;position:initial;color:initial;font-size:inherit;transition:none;cursor:pointer}.Vlt-dropdown__panel label input{height:0}input.main{cursor:pointer;padding-right:76px}.Vlt-input.has-append-button .Vlt-composite__append.right-actions{right:42px}.Vlt-composite__append.right-actions{position:absolute;top:5px;right:53px;cursor:pointer}.Vlt-composite__append.right-actions .Vlt-composite__append--icon{width:36px;outline:none;position:initial;display:inline-block}.Vlt-composite__append.right-actions .Vlt-composite__append--icon svg{height:14px;width:14px}.Vlt-composite__append.right-actions .Vlt-composite__append--icon:hover svg,.Vlt-composite__append.right-actions .Vlt-composite__append--icon:focus svg{fill:var(--vgip-meta-input-accent-color)}.Vlt-search_wrap{padding-top:10px}.Vlt-search_wrap .vgip-search_input{padding:8px 36px 8px 38px;width:100%;border:1px solid var(--vgip-meta-input-border-color)!important;border-radius:6px!important}.Vlt-search_wrap .vgip-search_input:focus,.Vlt-search_wrap .vgip-search_input:active,.Vlt-search_wrap .vgip-search_input:hover{border-color:var(--vgip-meta-input-active-border-color)!important}.Vlt-search_wrap .Vlt-composite__append--icon{cursor:pointer}.Vlt-search_wrap .Vlt-composite__append--icon svg{height:14px;width:14px}.Vlt-search_wrap .Vlt-composite__append--icon:focus svg,.Vlt-search_wrap .Vlt-composite__append--icon:active svg,.Vlt-search_wrap .Vlt-composite__append--icon:hover svg{fill:var(--vgip-meta-input-accent-color)}\n"] }]
492
+ }], ctorParameters: function () { return [{ type: MetaReferenceService }, { type: MetaResourceService }, { type: i0.ViewContainerRef }]; } });
493
+
494
+ export { FieldSelect };
495
+ //# sourceMappingURL=vgip-meta-ui-index-e743527e.mjs.map