@praxisui/dynamic-fields 10.0.0-rc.45 → 10.0.0-rc.47
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-11-
|
|
3
|
+
"generatedAt": "2026-11-15T21:11:07.512Z",
|
|
4
4
|
"packageName": "@praxisui/dynamic-fields",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.47",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 76,
|
|
@@ -591,7 +591,7 @@ const PRAXIS_DYNAMIC_FIELDS_EN_US = {
|
|
|
591
591
|
'praxis.dynamicFields.entityLookup.searchStrategy.normalizedDocument': 'Document',
|
|
592
592
|
'praxis.dynamicFields.select.searchStrategyRequired': 'Select how you want to search.',
|
|
593
593
|
'praxis.dynamicFields.select.searchStrategyDigitsOnly': 'Use numbers only for this search.',
|
|
594
|
-
'praxis.dynamicFields.select.searchStrategyDocumentFormat': 'Use only numbers, spaces, periods, or hyphens.',
|
|
594
|
+
'praxis.dynamicFields.select.searchStrategyDocumentFormat': 'Use only numbers, spaces, periods, slashes, or hyphens.',
|
|
595
595
|
'praxis.dynamicFields.select.searchStrategyMinimum': 'Enter at least {{minimum}} characters.',
|
|
596
596
|
'praxis.dynamicFields.entityLookup.dialog.context.filtered': 'Use quick search and active filters to reach the right entity.',
|
|
597
597
|
'praxis.dynamicFields.entityLookup.dialog.currentSelection': 'Current selection: {{value}}',
|
|
@@ -1169,7 +1169,7 @@ const PRAXIS_DYNAMIC_FIELDS_PT_BR = {
|
|
|
1169
1169
|
'praxis.dynamicFields.entityLookup.searchStrategy.normalizedDocument': 'Documento',
|
|
1170
1170
|
'praxis.dynamicFields.select.searchStrategyRequired': 'Selecione como deseja buscar.',
|
|
1171
1171
|
'praxis.dynamicFields.select.searchStrategyDigitsOnly': 'Use apenas números nesta busca.',
|
|
1172
|
-
'praxis.dynamicFields.select.searchStrategyDocumentFormat': 'Use apenas números, espaços, pontos ou hífens.',
|
|
1172
|
+
'praxis.dynamicFields.select.searchStrategyDocumentFormat': 'Use apenas números, espaços, pontos, barras ou hífens.',
|
|
1173
1173
|
'praxis.dynamicFields.select.searchStrategyMinimum': 'Digite pelo menos {{minimum}} caracteres.',
|
|
1174
1174
|
'praxis.dynamicFields.entityLookup.dialog.context.filtered': 'Use a busca rápida e os filtros ativos para chegar à entidade correta.',
|
|
1175
1175
|
'praxis.dynamicFields.entityLookup.dialog.currentSelection': 'Seleção atual: {{value}}',
|
|
@@ -4123,10 +4123,11 @@ class SimpleBaseSelectComponent extends SimpleBaseInputComponent {
|
|
|
4123
4123
|
needLabel,
|
|
4124
4124
|
needValue,
|
|
4125
4125
|
});
|
|
4126
|
+
const metadataLoadOn = metadata.loadOn;
|
|
4126
4127
|
if (needLabel || needValue) {
|
|
4127
4128
|
this.scheduleRemoteOptionsLoad(remoteLoadSignature, () => this.loadSchema(needLabel, needValue));
|
|
4128
4129
|
}
|
|
4129
|
-
else {
|
|
4130
|
+
else if (metadataLoadOn !== 'open' && metadataLoadOn !== 'none') {
|
|
4130
4131
|
this.scheduleRemoteOptionsLoad(remoteLoadSignature, () => this.loadOptions());
|
|
4131
4132
|
}
|
|
4132
4133
|
}
|
|
@@ -14467,6 +14468,7 @@ class MaterialAsyncSelectComponent extends SimpleBaseSelectComponent {
|
|
|
14467
14468
|
searchInput;
|
|
14468
14469
|
autocomplete;
|
|
14469
14470
|
materialPanelOpen = signal(false, ...(ngDevMode ? [{ debugName: "materialPanelOpen" }] : /* istanbul ignore next */ []));
|
|
14471
|
+
comboboxPanelOpen = signal(false, ...(ngDevMode ? [{ debugName: "comboboxPanelOpen" }] : /* istanbul ignore next */ []));
|
|
14470
14472
|
materialCollectionOverlay = viewChild(PdxCollectionOverlayComponent, ...(ngDevMode ? [{ debugName: "materialCollectionOverlay" }] : /* istanbul ignore next */ []));
|
|
14471
14473
|
materialCollectionSearch = viewChild(PdxCollectionSearchComponent, ...(ngDevMode ? [{ debugName: "materialCollectionSearch" }] : /* istanbul ignore next */ []));
|
|
14472
14474
|
materialOverlayTrigger = viewChild('materialOverlayTrigger', ...(ngDevMode ? [{ debugName: "materialOverlayTrigger" }] : /* istanbul ignore next */ []));
|
|
@@ -14603,6 +14605,12 @@ class MaterialAsyncSelectComponent extends SimpleBaseSelectComponent {
|
|
|
14603
14605
|
this.cursorPageIndex = 0;
|
|
14604
14606
|
this.store.clearPages();
|
|
14605
14607
|
this.endReached.set(false);
|
|
14608
|
+
if (!this.materialPanelOpen() &&
|
|
14609
|
+
!this.comboboxPanelOpen() &&
|
|
14610
|
+
term.trim() === '' &&
|
|
14611
|
+
(this.initialLoadStrategy !== 'init' || !this.hasPerformedInitialLoad)) {
|
|
14612
|
+
return of(void 0);
|
|
14613
|
+
}
|
|
14606
14614
|
return this.runQuery(true);
|
|
14607
14615
|
}));
|
|
14608
14616
|
}), takeUntilDestroyed(this.destroyRef))
|
|
@@ -14775,11 +14783,13 @@ class MaterialAsyncSelectComponent extends SimpleBaseSelectComponent {
|
|
|
14775
14783
|
queueMicrotask(() => this.syncComboboxDisplay());
|
|
14776
14784
|
}
|
|
14777
14785
|
onComboboxOpened() {
|
|
14786
|
+
this.comboboxPanelOpen.set(true);
|
|
14778
14787
|
this.openedChange.emit(true);
|
|
14779
14788
|
this.onOpened(true);
|
|
14780
14789
|
queueMicrotask(() => this.attachAutocompleteScrollListener());
|
|
14781
14790
|
}
|
|
14782
14791
|
onComboboxClosed() {
|
|
14792
|
+
this.comboboxPanelOpen.set(false);
|
|
14783
14793
|
this.openedChange.emit(false);
|
|
14784
14794
|
this.detachAutocompleteScrollListener();
|
|
14785
14795
|
this.syncComboboxDisplay(true);
|
|
@@ -14792,9 +14802,19 @@ class MaterialAsyncSelectComponent extends SimpleBaseSelectComponent {
|
|
|
14792
14802
|
this.syncComboboxDisplay();
|
|
14793
14803
|
}
|
|
14794
14804
|
onClearClick() {
|
|
14805
|
+
const isPanelOpen = this.materialPanelOpen() || this.comboboxPanelOpen();
|
|
14795
14806
|
super.onClearClick();
|
|
14807
|
+
if (!isPanelOpen &&
|
|
14808
|
+
this.initialLoadStrategy !== 'init' &&
|
|
14809
|
+
!this.hasPerformedInitialLoad) {
|
|
14810
|
+
this.queryTerm.set('');
|
|
14811
|
+
this.termControl.setValue('', { emitEvent: false });
|
|
14812
|
+
return;
|
|
14813
|
+
}
|
|
14796
14814
|
this.termControl.setValue('', { emitEvent: true });
|
|
14797
|
-
this.
|
|
14815
|
+
if (isPanelOpen || !this.usesSearchCombobox()) {
|
|
14816
|
+
this.searchInput?.nativeElement.focus();
|
|
14817
|
+
}
|
|
14798
14818
|
}
|
|
14799
14819
|
panelActionsVisible() {
|
|
14800
14820
|
if (this.usesSearchCombobox())
|
|
@@ -15025,6 +15045,12 @@ class MaterialAsyncSelectComponent extends SimpleBaseSelectComponent {
|
|
|
15025
15045
|
this.cursorPageIndex = 0;
|
|
15026
15046
|
this.store.clearPages();
|
|
15027
15047
|
this.endReached.set(false);
|
|
15048
|
+
if (!this.materialPanelOpen() &&
|
|
15049
|
+
!this.comboboxPanelOpen() &&
|
|
15050
|
+
!this.hasPerformedInitialLoad &&
|
|
15051
|
+
this.initialLoadStrategy !== 'init') {
|
|
15052
|
+
return;
|
|
15053
|
+
}
|
|
15028
15054
|
this.runQuery(true).pipe(takeUntilDestroyed(this.destroyRef)).subscribe();
|
|
15029
15055
|
}
|
|
15030
15056
|
bindActiveControlValue(control) {
|
|
@@ -15249,8 +15275,8 @@ class MaterialAsyncSelectComponent extends SimpleBaseSelectComponent {
|
|
|
15249
15275
|
this.endReached.set(false);
|
|
15250
15276
|
return of(void 0);
|
|
15251
15277
|
}
|
|
15252
|
-
const term = termResolution.term;
|
|
15253
|
-
const hasSearchTerm =
|
|
15278
|
+
const term = termResolution.term.trim();
|
|
15279
|
+
const hasSearchTerm = term.length > 0;
|
|
15254
15280
|
const optionSource = this.optionSource();
|
|
15255
15281
|
const filter = { ...this.filterCriteria() };
|
|
15256
15282
|
if (term && !optionSource) {
|
|
@@ -15302,8 +15328,8 @@ class MaterialAsyncSelectComponent extends SimpleBaseSelectComponent {
|
|
|
15302
15328
|
? this.crudService.filterOptionSourceOptions(optionSource.key, filter, { pageNumber: page, pageSize: this.pageSize() }, {
|
|
15303
15329
|
...(include || {}),
|
|
15304
15330
|
observeVersionHeader: observeVersion,
|
|
15305
|
-
search: term
|
|
15306
|
-
...(this.selectedLookupSearchStrategyKey()
|
|
15331
|
+
search: hasSearchTerm ? term : undefined,
|
|
15332
|
+
...(hasSearchTerm && this.selectedLookupSearchStrategyKey()
|
|
15307
15333
|
? { searchStrategy: this.selectedLookupSearchStrategyKey() }
|
|
15308
15334
|
: {}),
|
|
15309
15335
|
sortKey: this.selectedLookupSortKey() || undefined,
|
|
@@ -15360,8 +15386,8 @@ class MaterialAsyncSelectComponent extends SimpleBaseSelectComponent {
|
|
|
15360
15386
|
}
|
|
15361
15387
|
let normalized = term;
|
|
15362
15388
|
if (strategy.kind === 'normalized-document') {
|
|
15363
|
-
if (!/^[0-9
|
|
15364
|
-
this.lookupSearchFeedback.set(this.tDynamicFields('select.searchStrategyDocumentFormat', 'Use apenas números, espaços, pontos ou hífens.'));
|
|
15389
|
+
if (!/^[0-9./\-\s]+$/.test(term)) {
|
|
15390
|
+
this.lookupSearchFeedback.set(this.tDynamicFields('select.searchStrategyDocumentFormat', 'Use apenas números, espaços, pontos, barras ou hífens.'));
|
|
15365
15391
|
return { allowed: false };
|
|
15366
15392
|
}
|
|
15367
15393
|
normalized = term.replace(/[^0-9]/g, '');
|
|
@@ -32161,6 +32187,10 @@ class MaterialSearchableSelectComponent extends SimpleBaseSelectComponent {
|
|
|
32161
32187
|
value: o.value,
|
|
32162
32188
|
disabled: !!o.disabled,
|
|
32163
32189
|
}));
|
|
32190
|
+
const loadOn = metadata.loadOn ??
|
|
32191
|
+
this.global.getDynamicFields()?.asyncSelect?.loadOn ??
|
|
32192
|
+
'open';
|
|
32193
|
+
this.initialLoadStrategy = loadOn;
|
|
32164
32194
|
super.setSelectMetadata({
|
|
32165
32195
|
...metadata,
|
|
32166
32196
|
options: mappedOptions,
|
|
@@ -32173,11 +32203,8 @@ class MaterialSearchableSelectComponent extends SimpleBaseSelectComponent {
|
|
|
32173
32203
|
filterCriteria: metadata.filterCriteria,
|
|
32174
32204
|
optionLabelKey: metadata.optionLabelKey,
|
|
32175
32205
|
optionValueKey: metadata.optionValueKey,
|
|
32206
|
+
loadOn,
|
|
32176
32207
|
});
|
|
32177
|
-
const loadOn = metadata.loadOn ??
|
|
32178
|
-
this.global.getDynamicFields()?.asyncSelect?.loadOn ??
|
|
32179
|
-
'open';
|
|
32180
|
-
this.initialLoadStrategy = loadOn;
|
|
32181
32208
|
}
|
|
32182
32209
|
ngOnInit() {
|
|
32183
32210
|
// Estados orquestrados pelo shell; não desabilitar controle
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/dynamic-fields",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.47",
|
|
4
4
|
"description": "Angular Material-based dynamic form fields for Praxis UI with lazy loading and metadata-driven rendering.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"@angular/platform-browser": "^21.0.0",
|
|
12
12
|
"@angular/router": "^21.0.0",
|
|
13
13
|
"rxjs": "^7.8.0",
|
|
14
|
-
"@praxisui/core": "^10.0.0-rc.
|
|
15
|
-
"@praxisui/dialog": "^10.0.0-rc.
|
|
16
|
-
"@praxisui/cron-builder": "^10.0.0-rc.
|
|
14
|
+
"@praxisui/core": "^10.0.0-rc.47",
|
|
15
|
+
"@praxisui/dialog": "^10.0.0-rc.47",
|
|
16
|
+
"@praxisui/cron-builder": "^10.0.0-rc.47"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"libphonenumber-js": "^1.12.41",
|
|
@@ -3119,6 +3119,7 @@ declare class MaterialAsyncSelectComponent extends SimpleBaseSelectComponent {
|
|
|
3119
3119
|
private searchInput?;
|
|
3120
3120
|
private autocomplete?;
|
|
3121
3121
|
readonly materialPanelOpen: _angular_core.WritableSignal<boolean>;
|
|
3122
|
+
readonly comboboxPanelOpen: _angular_core.WritableSignal<boolean>;
|
|
3122
3123
|
private readonly materialCollectionOverlay;
|
|
3123
3124
|
private readonly materialCollectionSearch;
|
|
3124
3125
|
private readonly materialOverlayTrigger;
|