@praxisui/dynamic-fields 8.0.0-beta.0 → 8.0.0-beta.2
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/fesm2022/praxisui-dynamic-fields.mjs +208 -69
- package/index.d.ts +18 -3
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -249,6 +249,7 @@ interface PraxisDynamicFieldsI18nOverrides {
|
|
|
249
249
|
loading?: PraxisDynamicFieldText;
|
|
250
250
|
loadMore?: PraxisDynamicFieldText;
|
|
251
251
|
endOfList?: PraxisDynamicFieldText;
|
|
252
|
+
noOptionsAvailable?: PraxisDynamicFieldText;
|
|
252
253
|
loadingOptionsAriaLabel?: PraxisDynamicFieldText;
|
|
253
254
|
};
|
|
254
255
|
tree?: {
|
|
@@ -945,6 +946,7 @@ declare abstract class SimpleBaseSelectComponent<T = any> extends SimpleBaseInpu
|
|
|
945
946
|
readonly resourcePath: _angular_core.WritableSignal<string | null>;
|
|
946
947
|
/** Canonical source for derived options */
|
|
947
948
|
readonly optionSource: _angular_core.WritableSignal<OptionSourceMetadata | null>;
|
|
949
|
+
readonly useOptionsFilterEndpoint: _angular_core.WritableSignal<boolean>;
|
|
948
950
|
/** Criteria applied to backend filtering */
|
|
949
951
|
readonly filterCriteria: _angular_core.WritableSignal<Record<string, any>>;
|
|
950
952
|
/** Field used for option labels when loading from backend */
|
|
@@ -972,6 +974,11 @@ declare abstract class SimpleBaseSelectComponent<T = any> extends SimpleBaseInpu
|
|
|
972
974
|
readonly optionsLoaded: _angular_core.OutputEmitterRef<SelectOption<T>[]>;
|
|
973
975
|
readonly openedChange: _angular_core.OutputEmitterRef<boolean>;
|
|
974
976
|
protected matSelect: MatSelect | null;
|
|
977
|
+
private panelClassCacheSignature;
|
|
978
|
+
private panelClassCache;
|
|
979
|
+
private remoteOptionsLoadTimer;
|
|
980
|
+
private remoteOptionsLoadSignature;
|
|
981
|
+
private remoteOptionsLoadDestroyHookRegistered;
|
|
975
982
|
protected readonly global: GlobalConfigService;
|
|
976
983
|
private dependencySub;
|
|
977
984
|
private remoteSelectionHydrationSub;
|
|
@@ -986,6 +993,7 @@ declare abstract class SimpleBaseSelectComponent<T = any> extends SimpleBaseInpu
|
|
|
986
993
|
* Applies typed metadata to the select component.
|
|
987
994
|
*/
|
|
988
995
|
setSelectMetadata(metadata: SimpleSelectMetadata<T>): void;
|
|
996
|
+
private scheduleRemoteOptionsLoad;
|
|
989
997
|
protected setMetadata(metadata: ComponentMetadata): void;
|
|
990
998
|
protected registerMatSelect(select: MatSelect): void;
|
|
991
999
|
protected applySelectAttributes(): void;
|
|
@@ -1034,6 +1042,7 @@ declare abstract class SimpleBaseSelectComponent<T = any> extends SimpleBaseInpu
|
|
|
1034
1042
|
loadingOptionsLabel(): string;
|
|
1035
1043
|
loadMoreOptionsLabel(): string;
|
|
1036
1044
|
endOfOptionsLabel(): string;
|
|
1045
|
+
noOptionsAvailableLabel(): string;
|
|
1037
1046
|
loadingOptionsAriaLabel(): string;
|
|
1038
1047
|
/**
|
|
1039
1048
|
* Ícone para estado "selecionado" em opções do painel.
|
|
@@ -1098,6 +1107,7 @@ declare abstract class SimpleBaseSelectComponent<T = any> extends SimpleBaseInpu
|
|
|
1098
1107
|
protected resolveInlineContextTooltipValue(): string;
|
|
1099
1108
|
/** Configures the CRUD service with the given resource path */
|
|
1100
1109
|
protected configureCrudService(path: string): void;
|
|
1110
|
+
private isOptionsFilterEndpoint;
|
|
1101
1111
|
private resolveSelectedOptionLabel;
|
|
1102
1112
|
private areSelectValuesEqual;
|
|
1103
1113
|
/**
|
|
@@ -2455,6 +2465,9 @@ declare class MaterialAsyncSelectComponent extends SimpleBaseSelectComponent {
|
|
|
2455
2465
|
protected onDependenciesChanged(): void;
|
|
2456
2466
|
private missingOptionLabel;
|
|
2457
2467
|
private loadOptionsErrorLabel;
|
|
2468
|
+
private resolveRemoteOptionValue;
|
|
2469
|
+
private areRemoteOptionValuesEqual;
|
|
2470
|
+
private normalizeRemoteOptionValue;
|
|
2458
2471
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaterialAsyncSelectComponent, never>;
|
|
2459
2472
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaterialAsyncSelectComponent, "pdx-material-async-select", never, { "readonlyMode": { "alias": "readonlyMode"; "required": false; }; "disabledMode": { "alias": "disabledMode"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "presentationMode": { "alias": "presentationMode"; "required": false; }; }, {}, never, never, true, never>;
|
|
2460
2473
|
}
|
|
@@ -5381,12 +5394,17 @@ declare class PdxMaterialRangeSliderComponent extends SimpleBaseInputComponent i
|
|
|
5381
5394
|
* Overrides writeValue to handle both single and range modes.
|
|
5382
5395
|
*/
|
|
5383
5396
|
writeValue(value: unknown): void;
|
|
5397
|
+
setExternalControl(control: AbstractControl): void;
|
|
5398
|
+
setInputMetadata(metadata: MaterialRangeSliderMetadata): void;
|
|
5384
5399
|
/**
|
|
5385
5400
|
* Sets the component metadata and re-initializes validators.
|
|
5386
5401
|
* @param metadata The metadata for the component.
|
|
5387
5402
|
*/
|
|
5388
5403
|
setSliderMetadata(metadata: MaterialRangeSliderMetadata): void;
|
|
5404
|
+
protected setMetadata(metadata: MaterialRangeSliderMetadata): void;
|
|
5389
5405
|
protected getSpecificCssClasses(): string[];
|
|
5406
|
+
private syncRangeGroupFromControlValue;
|
|
5407
|
+
private isRangeSliderValue;
|
|
5390
5408
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PdxMaterialRangeSliderComponent, never>;
|
|
5391
5409
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PdxMaterialRangeSliderComponent, "pdx-material-range-slider", never, { "readonlyMode": { "alias": "readonlyMode"; "required": false; }; "disabledMode": { "alias": "disabledMode"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "presentationMode": { "alias": "presentationMode"; "required": false; }; }, {}, never, never, true, never>;
|
|
5392
5410
|
}
|
|
@@ -6411,9 +6429,6 @@ declare class PraxisErrorStateMatcher implements ErrorStateMatcher {
|
|
|
6411
6429
|
*/
|
|
6412
6430
|
isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
6413
6431
|
}
|
|
6414
|
-
/**
|
|
6415
|
-
* Factory function to create ErrorStateMatcher instances based on strategy
|
|
6416
|
-
*/
|
|
6417
6432
|
declare function createErrorStateMatcher(strategy?: ErrorStateStrategy): ErrorStateMatcher;
|
|
6418
6433
|
/**
|
|
6419
6434
|
* Determines the appropriate error state strategy based on component context
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/dynamic-fields",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.2",
|
|
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": "^20.1.0",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"@angular/cdk": "^20.1.0",
|
|
11
11
|
"@angular/router": "^20.1.0",
|
|
12
12
|
"rxjs": "^7.8.0",
|
|
13
|
-
"@praxisui/core": "^8.0.0-beta.
|
|
14
|
-
"@praxisui/cron-builder": "^8.0.0-beta.
|
|
15
|
-
"@praxisui/dialog": "^8.0.0-beta.
|
|
13
|
+
"@praxisui/core": "^8.0.0-beta.2",
|
|
14
|
+
"@praxisui/cron-builder": "^8.0.0-beta.2",
|
|
15
|
+
"@praxisui/dialog": "^8.0.0-beta.2"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"libphonenumber-js": "^1.12.41",
|