@praxisui/dynamic-fields 8.0.0-beta.2 → 8.0.0-beta.21
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/README.md +19 -0
- package/docs/dynamic-fields-field-catalog.md +217 -0
- package/docs/dynamic-fields-field-selection-guide.md +181 -0
- package/docs/dynamic-fields-host-custom-field-guide.md +252 -0
- package/docs/dynamic-fields-host-custom-field-troubleshooting.md +160 -0
- package/docs/dynamic-fields-inline-components-guide.md +580 -0
- package/docs/dynamic-fields-inline-filter-catalog.md +497 -0
- package/docs/dynamic-fields-inline-filter-custom-component-guide.md +241 -0
- package/docs/dynamic-fields-inline-filter-inventory.md +247 -0
- package/docs/dynamic-fields-inline-filter-runtime-contract.md +367 -0
- package/docs/dynamic-fields-inline-filter-selection-guide.md +419 -0
- package/docs/dynamic-fields-inline-filter-troubleshooting.md +201 -0
- package/docs/dynamic-fields-inventory.md +206 -0
- package/docs/dynamic-fields-playground-catalog-plan.md +243 -0
- package/docs/generic-crud-service.md +152 -0
- package/fesm2022/praxisui-dynamic-fields-index-CBogy3si.mjs +1 -0
- package/fesm2022/praxisui-dynamic-fields-index-CrHhyUMO.mjs +1 -0
- package/fesm2022/praxisui-dynamic-fields.mjs +15479 -8879
- package/index.d.ts +722 -393
- package/package.json +4 -4
- package/src/lib/base/pdx-base-input-runtime-contract.json-api.md +497 -0
- package/src/lib/base/pdx-base-select-runtime-contract.json-api.md +474 -0
- package/src/lib/components/color-input/pdx-color-input.json-api.md +573 -0
- package/src/lib/components/color-picker/pdx-color-picker.json-api.md +686 -0
- package/src/lib/components/date-input/pdx-date-input.json-api.md +581 -0
- package/src/lib/components/datetime-local-input/pdx-datetime-local-input.json-api.md +560 -0
- package/src/lib/components/email-input/pdx-email-input.json-api.md +546 -0
- package/src/lib/components/field-shell/praxis-field-shell.json-api.md +522 -0
- package/src/lib/components/inline-async-select/pdx-inline-async-select.json-api.md +566 -0
- package/src/lib/components/inline-autocomplete/pdx-inline-autocomplete.json-api.md +554 -0
- package/src/lib/components/inline-color-label/pdx-inline-color-label.json-api.md +615 -0
- package/src/lib/components/inline-currency/pdx-inline-currency.json-api.md +542 -0
- package/src/lib/components/inline-currency-range/pdx-inline-currency-range.json-api.md +630 -0
- package/src/lib/components/inline-date/pdx-inline-date.json-api.md +529 -0
- package/src/lib/components/inline-date-range/pdx-inline-date-range.json-api.md +589 -0
- package/src/lib/components/inline-distance-radius/pdx-inline-distance-radius.json-api.md +649 -0
- package/src/lib/components/inline-entity-lookup/pdx-inline-entity-lookup.json-api.md +617 -0
- package/src/lib/components/inline-input/pdx-inline-input.json-api.md +538 -0
- package/src/lib/components/inline-multi-select/pdx-inline-multi-select.json-api.md +566 -0
- package/src/lib/components/inline-number/pdx-inline-number.json-api.md +533 -0
- package/src/lib/components/inline-pipeline-status/pdx-inline-pipeline-status.json-api.md +619 -0
- package/src/lib/components/inline-range-slider/pdx-inline-range-slider.json-api.md +605 -0
- package/src/lib/components/inline-rating/pdx-inline-rating.json-api.md +594 -0
- package/src/lib/components/inline-relative-period/pdx-inline-relative-period.json-api.md +623 -0
- package/src/lib/components/inline-score-priority/pdx-inline-score-priority.json-api.md +632 -0
- package/src/lib/components/inline-searchable-select/pdx-inline-searchable-select.json-api.md +564 -0
- package/src/lib/components/inline-select/pdx-inline-select.json-api.md +571 -0
- package/src/lib/components/inline-sentiment/pdx-inline-sentiment.json-api.md +661 -0
- package/src/lib/components/inline-time/pdx-inline-time.json-api.md +573 -0
- package/src/lib/components/inline-time-range/pdx-inline-time-range.json-api.md +635 -0
- package/src/lib/components/inline-toggle/pdx-inline-toggle.json-api.md +516 -0
- package/src/lib/components/inline-tree-select/pdx-inline-tree-select.json-api.md +637 -0
- package/src/lib/components/material-async-select/pdx-material-async-select.json-api.md +566 -0
- package/src/lib/components/material-autocomplete/pdx-material-autocomplete.json-api.md +561 -0
- package/src/lib/components/material-avatar/pdx-material-avatar.json-api.md +666 -0
- package/src/lib/components/material-button/pdx-material-button.json-api.md +572 -0
- package/src/lib/components/material-button-toggle/pdx-material-button-toggle.json-api.md +577 -0
- package/src/lib/components/material-checkbox-group/pdx-material-checkbox-group.json-api.md +611 -0
- package/src/lib/components/material-chips/pdx-material-chips.json-api.md +601 -0
- package/src/lib/components/material-colorpicker/pdx-material-colorpicker.json-api.md +545 -0
- package/src/lib/components/material-cpf-cnpj-input/pdx-material-cpf-cnpj-input.json-api.md +531 -0
- package/src/lib/components/material-currency/pdx-material-currency.json-api.md +569 -0
- package/src/lib/components/material-date-range/pdx-material-date-range.json-api.md +624 -0
- package/src/lib/components/material-datepicker/pdx-material-datepicker.json-api.md +539 -0
- package/src/lib/components/material-file-upload/pdx-material-file-upload.json-api.md +511 -0
- package/src/lib/components/material-multi-select/pdx-material-multi-select.json-api.md +596 -0
- package/src/lib/components/material-multi-select-tree/pdx-material-multi-select-tree.json-api.md +623 -0
- package/src/lib/components/material-price-range/pdx-material-price-range.json-api.md +616 -0
- package/src/lib/components/material-radio-group/pdx-material-radio-group.json-api.md +585 -0
- package/src/lib/components/material-range-slider/pdx-material-range-slider.json-api.md +664 -0
- package/src/lib/components/material-rating/pdx-material-rating.json-api.md +551 -0
- package/src/lib/components/material-searchable-select/pdx-material-searchable-select.json-api.md +602 -0
- package/src/lib/components/material-select/pdx-material-select.json-api.md +601 -0
- package/src/lib/components/material-selection-list/pdx-material-selection-list.json-api.md +607 -0
- package/src/lib/components/material-slide-toggle/pdx-material-slide-toggle.json-api.md +522 -0
- package/src/lib/components/material-slider/pdx-material-slider.json-api.md +602 -0
- package/src/lib/components/material-textarea/pdx-material-textarea.json-api.md +598 -0
- package/src/lib/components/material-timepicker/pdx-material-timepicker.json-api.md +554 -0
- package/src/lib/components/material-transfer-list/pdx-material-transfer-list.json-api.md +614 -0
- package/src/lib/components/material-tree-select/pdx-material-tree-select.json-api.md +649 -0
- package/src/lib/components/month-input/pdx-month-input.json-api.md +527 -0
- package/src/lib/components/number-input/pdx-number-input.json-api.md +594 -0
- package/src/lib/components/password-input/pdx-password-input.json-api.md +574 -0
- package/src/lib/components/pdx-material-time-range/pdx-material-time-range.json-api.md +592 -0
- package/src/lib/components/pdx-year-input/pdx-year-input.json-api.md +543 -0
- package/src/lib/components/phone-input/pdx-phone-input.json-api.md +583 -0
- package/src/lib/components/preload-status/pdx-preload-status.json-api.md +455 -0
- package/src/lib/components/search-input/pdx-search-input.json-api.md +536 -0
- package/src/lib/components/text-input/pdx-text-input.json-api.md +600 -0
- package/src/lib/components/time-input/pdx-time-input.json-api.md +546 -0
- package/src/lib/components/url-input/pdx-url-input.json-api.md +542 -0
- package/src/lib/components/week-input/pdx-week-input.json-api.md +533 -0
- package/fesm2022/praxisui-dynamic-fields-index-XvVS6lAQ.mjs +0 -1
package/index.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { WritableSignal, InjectionToken, Provider, OnInit, OnDestroy, AfterViewInit, DestroyRef, ElementRef, ChangeDetectorRef, OnChanges, TemplateRef, EventEmitter, ComponentRef, SimpleChanges, Type, EnvironmentProviders, Injector } from '@angular/core';
|
|
3
|
-
import { AbstractControl, ControlValueAccessor, NgControl, ValidationErrors, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms';
|
|
4
|
-
import { Observable, BehaviorSubject } from 'rxjs';
|
|
5
|
-
import
|
|
2
|
+
import { WritableSignal, InjectionToken, Provider, OnInit, OnDestroy, AfterViewInit, DestroyRef, ElementRef, ChangeDetectorRef, OnChanges, TemplateRef, EventEmitter, ComponentRef, SimpleChanges, DoCheck, AfterViewChecked, Type, EnvironmentProviders, Injector } from '@angular/core';
|
|
3
|
+
import { AbstractControl, ControlValueAccessor, NgControl, ValidationErrors, FormControl, FormGroup, FormArray, FormGroupDirective, NgForm } from '@angular/forms';
|
|
4
|
+
import { Observable, BehaviorSubject, Subscription } from 'rxjs';
|
|
5
|
+
import * as _praxisui_core from '@praxisui/core';
|
|
6
|
+
import { ComponentMetadata, PraxisTextValue, PraxisI18nDictionary, PraxisI18nConfig, PraxisI18nMessageDescriptor, PraxisI18nService, GlobalActionService, GlobalActionRef, OptionSourceMetadata, GenericCrudService, GlobalConfigService, OptionDTO, ComponentDocMeta, ComponentMetadataEditorialDescriptor, ComponentMetadataRegistry, FieldMetadata, MaterialButtonMetadata, FieldArrayConfig, MaterialInputMetadata, MaterialColorInputMetadata, MaterialDateInputMetadata, MaterialDatepickerMetadata, MaterialDateRangeMetadata, DateRangePreset, DateRangeValue, MaterialDatetimeLocalInputMetadata, MaterialEmailInputMetadata, MaterialTextareaMetadata, MaterialNumericMetadata, MaterialCurrencyMetadata, MaterialCpfCnpjMetadata, MaterialPriceRangeMetadata, MaterialMonthInputMetadata, MaterialPasswordMetadata, MaterialSearchInputMetadata, MaterialSelectMetadata, LookupFilterRequest, LookupFilteringMetadata, LookupSortOptionMetadata, LookupFilterDefinitionMetadata, MaterialEntityLookupMetadata, LookupStatusTone, EntityLookupResultState, EntityLookupResult, LookupDialogMetadata, LookupFilterOperator, LookupFilterFieldType, LookupResultColumnMetadata, MaterialAutocompleteMetadata, MaterialToggleMetadata, MaterialRangeSliderMetadata, RangeSliderValue, InlinePeriodRangeMetadata, FieldControlType, MaterialTimepickerMetadata, MaterialTimeRangeMetadata, MaterialTreeNode, MaterialTreeSelectMetadata, MaterialMultiSelectTreeMetadata, MaterialChipsMetadata, RangeSliderMark, RangeSliderSemanticBand, MaterialSliderMetadata, MaterialPhoneMetadata, MaterialTimeInputMetadata, MaterialUrlInputMetadata, MaterialWeekInputMetadata, MaterialColorPickerMetadata, MaterialYearInputMetadata, CapabilityCatalog, ComponentAuthoringManifest, ManifestControlProfile } from '@praxisui/core';
|
|
6
7
|
import { Router } from '@angular/router';
|
|
7
8
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
8
9
|
import { MatSelect } from '@angular/material/select';
|
|
9
10
|
import * as _angular_material_error_options_d_CGdTZUYk from '@angular/material/error-options.d-CGdTZUYk';
|
|
10
11
|
import { MatDatepickerInputEvent, MatDateRangePicker, MatDatepicker } from '@angular/material/datepicker';
|
|
11
12
|
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
13
|
+
import * as _praxisui_dynamic_fields from '@praxisui/dynamic-fields';
|
|
12
14
|
import { MatAutocompleteTrigger } from '@angular/material/autocomplete';
|
|
13
15
|
import { MatMenuTrigger } from '@angular/material/menu';
|
|
14
16
|
import { NestedTreeControl } from '@angular/cdk/tree';
|
|
@@ -406,6 +408,9 @@ interface PraxisDynamicFieldsI18nOverrides {
|
|
|
406
408
|
moveAllToRightAriaLabel?: PraxisDynamicFieldText;
|
|
407
409
|
moveSelectedToLeftAriaLabel?: PraxisDynamicFieldText;
|
|
408
410
|
moveAllToLeftAriaLabel?: PraxisDynamicFieldText;
|
|
411
|
+
availableEmptyText?: PraxisDynamicFieldText;
|
|
412
|
+
selectedEmptyText?: PraxisDynamicFieldText;
|
|
413
|
+
noResultsText?: PraxisDynamicFieldText;
|
|
409
414
|
};
|
|
410
415
|
checkboxGroup?: {
|
|
411
416
|
optionUnavailableDescription?: PraxisDynamicFieldText;
|
|
@@ -541,8 +546,11 @@ declare abstract class SimpleBaseInputComponent implements ControlValueAccessor,
|
|
|
541
546
|
readonly includeReadonly?: boolean;
|
|
542
547
|
readonly includePresentation?: boolean;
|
|
543
548
|
}): boolean;
|
|
549
|
+
protected isValidationVisualSuppressedByState(): boolean;
|
|
544
550
|
protected resolveInlineContextTooltipLabel(): string;
|
|
551
|
+
inputAriaLabel(): string | null;
|
|
545
552
|
protected stringifyInlineContextValue(value: unknown): string;
|
|
553
|
+
protected composeInlineChipDisplayText(label: string, value: string): string;
|
|
546
554
|
private truncateInlineTooltipText;
|
|
547
555
|
private humanizeInlineFieldName;
|
|
548
556
|
/** Gate to control when inline errors may display (debounced for 'change') */
|
|
@@ -739,8 +747,9 @@ interface BasicButtonState {
|
|
|
739
747
|
error: Error | null;
|
|
740
748
|
}
|
|
741
749
|
interface ButtonAction {
|
|
742
|
-
type: 'navigation' | 'external-link' | 'custom' | 'form-action';
|
|
750
|
+
type: 'navigation' | 'external-link' | 'global' | 'custom' | 'form-action';
|
|
743
751
|
target?: string;
|
|
752
|
+
globalAction?: GlobalActionRef;
|
|
744
753
|
payload?: any;
|
|
745
754
|
confirmation?: {
|
|
746
755
|
title: string;
|
|
@@ -756,6 +765,7 @@ declare abstract class SimpleBaseButtonComponent implements OnInit, OnDestroy, B
|
|
|
756
765
|
protected readonly cdr: ChangeDetectorRef;
|
|
757
766
|
protected readonly router: Router;
|
|
758
767
|
protected readonly dialog: MatDialog;
|
|
768
|
+
protected readonly globalActions: GlobalActionService | null;
|
|
759
769
|
protected readonly i18n: PraxisI18nService;
|
|
760
770
|
protected readonly dynamicFieldsI18n: PraxisDynamicFieldsI18nOverrides | null;
|
|
761
771
|
/** Subject para eventos de lifecycle */
|
|
@@ -981,7 +991,7 @@ declare abstract class SimpleBaseSelectComponent<T = any> extends SimpleBaseInpu
|
|
|
981
991
|
private remoteOptionsLoadDestroyHookRegistered;
|
|
982
992
|
protected readonly global: GlobalConfigService;
|
|
983
993
|
private dependencySub;
|
|
984
|
-
|
|
994
|
+
protected remoteSelectionHydrationSub: Subscription | null;
|
|
985
995
|
private hasLoadedOnce;
|
|
986
996
|
/** Options filtered according to the current `searchTerm` */
|
|
987
997
|
readonly filteredOptions: _angular_core.Signal<SelectOption<T>[]>;
|
|
@@ -1136,6 +1146,12 @@ declare abstract class SimpleBaseSelectComponent<T = any> extends SimpleBaseInpu
|
|
|
1136
1146
|
protected extractDependencyValue(raw: any, path?: string): any;
|
|
1137
1147
|
protected applyDependencyCriteria(fragment: Record<string, any>, strategy?: 'merge' | 'replace'): void;
|
|
1138
1148
|
protected onDependenciesChanged(): void;
|
|
1149
|
+
protected resolveDependencyFields(meta: SimpleSelectMetadata<T> & Record<string, any>): string[] | undefined;
|
|
1150
|
+
protected resolveDependencyFilterMap(meta: SimpleSelectMetadata<T> & Record<string, any>): Record<string, string | {
|
|
1151
|
+
key: string;
|
|
1152
|
+
valuePath?: string;
|
|
1153
|
+
}> | undefined;
|
|
1154
|
+
protected resolveDependencyValuePathConfig(meta: SimpleSelectMetadata<T> & Record<string, any>): string | Record<string, string> | undefined;
|
|
1139
1155
|
private getByPath;
|
|
1140
1156
|
private setByPath;
|
|
1141
1157
|
private unsetByPath;
|
|
@@ -1539,6 +1555,8 @@ declare class DynamicFieldLoaderDirective implements OnInit, OnDestroy, OnChange
|
|
|
1539
1555
|
/**
|
|
1540
1556
|
* Reatribui apenas os FormControls existentes aos componentes/shells sem refazer a renderização.
|
|
1541
1557
|
*/
|
|
1558
|
+
private hasSameRenderShape;
|
|
1559
|
+
private updateExistingFieldMetadata;
|
|
1542
1560
|
private rebindControlsOnly;
|
|
1543
1561
|
/** Destroi todos os componentes e limpa o container */
|
|
1544
1562
|
private destroyComponents;
|
|
@@ -1561,7 +1579,6 @@ declare class DynamicFieldLoaderDirective implements OnInit, OnDestroy, OnChange
|
|
|
1561
1579
|
}
|
|
1562
1580
|
|
|
1563
1581
|
declare class MaterialButtonComponent extends SimpleBaseButtonComponent implements OnDestroy {
|
|
1564
|
-
private readonly actionResolver;
|
|
1565
1582
|
private readonly keyboardService;
|
|
1566
1583
|
private unregisterShortcut?;
|
|
1567
1584
|
/** Estado adicional específico do Material Button */
|
|
@@ -1635,6 +1652,50 @@ declare class ConfirmDialogComponent {
|
|
|
1635
1652
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ConfirmDialogComponent, "pdx-confirm-dialog", never, {}, {}, never, never, true, never>;
|
|
1636
1653
|
}
|
|
1637
1654
|
|
|
1655
|
+
declare class EditableCollectionComponent implements BaseDynamicFieldComponent {
|
|
1656
|
+
private readonly dynamicForm;
|
|
1657
|
+
private readonly i18n;
|
|
1658
|
+
private readonly collectionRoot?;
|
|
1659
|
+
private readonly addButton?;
|
|
1660
|
+
readonly metadata: _angular_core.WritableSignal<ComponentMetadata | null>;
|
|
1661
|
+
readonly componentId: _angular_core.WritableSignal<string>;
|
|
1662
|
+
readonly formControl: _angular_core.WritableSignal<AbstractControl<any, any, any> | null>;
|
|
1663
|
+
readonlyMode: boolean;
|
|
1664
|
+
disabledMode: boolean;
|
|
1665
|
+
visible: boolean;
|
|
1666
|
+
presentationMode: boolean;
|
|
1667
|
+
label: string;
|
|
1668
|
+
readonly arrayControl: _angular_core.Signal<FormArray<any> | null>;
|
|
1669
|
+
readonly itemFields: _angular_core.Signal<FieldMetadata[]>;
|
|
1670
|
+
itemGroups(): FormGroup[];
|
|
1671
|
+
readonly arrayConfig: _angular_core.Signal<FieldArrayConfig>;
|
|
1672
|
+
readonly headingId: _angular_core.Signal<string>;
|
|
1673
|
+
readonly errorId: _angular_core.Signal<string>;
|
|
1674
|
+
setInputMetadata(metadata: ComponentMetadata): void;
|
|
1675
|
+
setExternalControl(control: AbstractControl): void;
|
|
1676
|
+
focus(): void;
|
|
1677
|
+
blur(): void;
|
|
1678
|
+
addItem(): void;
|
|
1679
|
+
removeItem(index: number): void;
|
|
1680
|
+
canAdd(): boolean;
|
|
1681
|
+
canShowAdd(): boolean;
|
|
1682
|
+
canRemove(_index: number): boolean;
|
|
1683
|
+
canShowRemove(_index: number): boolean;
|
|
1684
|
+
isInteractionDisabled(): boolean;
|
|
1685
|
+
isItemEditReadonly(): boolean;
|
|
1686
|
+
addLabel(): string;
|
|
1687
|
+
removeLabel(): string;
|
|
1688
|
+
emptyState(): string;
|
|
1689
|
+
hasVisibleErrors(): boolean;
|
|
1690
|
+
itemTitle(group: FormGroup, index: number): string;
|
|
1691
|
+
errorMessages(): string[];
|
|
1692
|
+
trackItem(index: number, group: FormGroup): unknown;
|
|
1693
|
+
private readPath;
|
|
1694
|
+
private t;
|
|
1695
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EditableCollectionComponent, never>;
|
|
1696
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EditableCollectionComponent, "pdx-editable-collection", 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>;
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1638
1699
|
declare class TextInputComponent extends SimpleBaseInputComponent {
|
|
1639
1700
|
readonly validationChange: _angular_core.OutputEmitterRef<ValidationErrors | null>;
|
|
1640
1701
|
readonlyMode: boolean;
|
|
@@ -1702,6 +1763,7 @@ declare class ColorInputComponent extends SimpleBaseInputComponent {
|
|
|
1702
1763
|
ngOnInit(): void;
|
|
1703
1764
|
validateField(): Promise<ValidationErrors | null>;
|
|
1704
1765
|
protected getSpecificCssClasses(): string[];
|
|
1766
|
+
effectiveFloatLabelBehavior(): 'always';
|
|
1705
1767
|
/** Applies component metadata with strong typing. */
|
|
1706
1768
|
setInputMetadata(metadata: MaterialColorInputMetadata): void;
|
|
1707
1769
|
/** Programmatically opens the native color picker if supported. */
|
|
@@ -1793,6 +1855,7 @@ declare class MaterialDatepickerComponent extends SimpleBaseInputComponent {
|
|
|
1793
1855
|
/** Applies component metadata with strong typing. */
|
|
1794
1856
|
setDatepickerMetadata(metadata: MaterialDatepickerMetadata): void;
|
|
1795
1857
|
isReadonlyEffective(): boolean;
|
|
1858
|
+
isInputReadonly(): boolean;
|
|
1796
1859
|
errorStateMatcher(): _angular_material_error_options_d_CGdTZUYk.E;
|
|
1797
1860
|
showClear(): boolean;
|
|
1798
1861
|
onClearClick(): void;
|
|
@@ -1836,6 +1899,7 @@ declare class MaterialDateRangeComponent extends SimpleBaseInputComponent implem
|
|
|
1836
1899
|
readonly maxDate: _angular_core.Signal<any>;
|
|
1837
1900
|
readonly startAt: _angular_core.Signal<any>;
|
|
1838
1901
|
overlayOpen: boolean;
|
|
1902
|
+
private pickerOpen;
|
|
1839
1903
|
private readonly dateAdapter;
|
|
1840
1904
|
picker: MatDateRangePicker<Date>;
|
|
1841
1905
|
readonly shouldShowShortcuts: () => boolean;
|
|
@@ -1846,6 +1910,9 @@ declare class MaterialDateRangeComponent extends SimpleBaseInputComponent implem
|
|
|
1846
1910
|
writeValue(value: unknown): void;
|
|
1847
1911
|
ngOnInit(): void;
|
|
1848
1912
|
protected shouldPropagateRangeGroupChanges(): boolean;
|
|
1913
|
+
private propagateRangeValue;
|
|
1914
|
+
private isEmptyRangeValue;
|
|
1915
|
+
private areDatesEqual;
|
|
1849
1916
|
validateField(): Promise<ValidationErrors | null>;
|
|
1850
1917
|
protected getSpecificCssClasses(): string[];
|
|
1851
1918
|
/** Applies component metadata with strong typing. */
|
|
@@ -2331,13 +2398,14 @@ interface SearchableSelectMetadata {
|
|
|
2331
2398
|
selectAll?: boolean;
|
|
2332
2399
|
maxSelections?: number;
|
|
2333
2400
|
resourcePath?: string;
|
|
2401
|
+
optionSource?: OptionSourceMetadata;
|
|
2334
2402
|
filterCriteria?: Record<string, unknown>;
|
|
2335
2403
|
optionLabelKey?: string;
|
|
2336
2404
|
optionValueKey?: string;
|
|
2337
2405
|
loadOn?: LoadStrategy$1;
|
|
2338
2406
|
dependencyLoadOnChange?: DependencyLoadMode$1;
|
|
2339
2407
|
}
|
|
2340
|
-
declare class MaterialSearchableSelectComponent extends SimpleBaseSelectComponent {
|
|
2408
|
+
declare class MaterialSearchableSelectComponent extends SimpleBaseSelectComponent implements DoCheck {
|
|
2341
2409
|
readonlyMode: boolean;
|
|
2342
2410
|
disabledMode: boolean;
|
|
2343
2411
|
visible: boolean;
|
|
@@ -2346,10 +2414,18 @@ declare class MaterialSearchableSelectComponent extends SimpleBaseSelectComponen
|
|
|
2346
2414
|
private readonly store;
|
|
2347
2415
|
readonly endReached: _angular_core.WritableSignal<boolean>;
|
|
2348
2416
|
private initialLoadStrategy;
|
|
2417
|
+
private disabledModeAppliedToControl;
|
|
2418
|
+
ngDoCheck(): void;
|
|
2349
2419
|
protected defaultPanelClass(): string;
|
|
2350
2420
|
setSelectMetadata(metadata: SearchableSelectMetadata): void;
|
|
2351
2421
|
ngOnInit(): void;
|
|
2352
2422
|
errorStateMatcher(): _angular_material_error_options_d_CGdTZUYk.E;
|
|
2423
|
+
searchableSelectAriaDisabled(): 'true' | null;
|
|
2424
|
+
searchableSelectAriaReadonly(): 'true' | null;
|
|
2425
|
+
isOptionDisabled(option: SelectOption<unknown>): boolean;
|
|
2426
|
+
selectOption(option: SelectOption<unknown>): void;
|
|
2427
|
+
toggleSelectAll(): void;
|
|
2428
|
+
onClearClick(): void;
|
|
2353
2429
|
searchInputAriaLabel(): string;
|
|
2354
2430
|
onSearchInputEvent(event: Event): void;
|
|
2355
2431
|
onOpened(opened: boolean): void;
|
|
@@ -2362,6 +2438,7 @@ declare class MaterialSearchableSelectComponent extends SimpleBaseSelectComponen
|
|
|
2362
2438
|
protected registerMatSelect(select: MatSelect): void;
|
|
2363
2439
|
reload(reset: boolean): void;
|
|
2364
2440
|
protected onDependenciesChanged(): void;
|
|
2441
|
+
private syncDisabledModeControlState;
|
|
2365
2442
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaterialSearchableSelectComponent, never>;
|
|
2366
2443
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaterialSearchableSelectComponent, "pdx-material-searchable-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>;
|
|
2367
2444
|
}
|
|
@@ -2403,6 +2480,13 @@ declare class InlineSearchableSelectComponent extends MaterialSearchableSelectCo
|
|
|
2403
2480
|
|
|
2404
2481
|
type LoadStrategy = 'open' | 'init' | 'none';
|
|
2405
2482
|
type DependencyLoadMode = 'respectLoadOn' | 'immediate' | 'manual';
|
|
2483
|
+
type OptionId = string | number;
|
|
2484
|
+
type AsyncOption = OptionDTO<OptionId>;
|
|
2485
|
+
type AsyncRenderedOption = {
|
|
2486
|
+
label: string;
|
|
2487
|
+
value: unknown;
|
|
2488
|
+
disabled?: boolean;
|
|
2489
|
+
};
|
|
2406
2490
|
interface AsyncSelectMetadata {
|
|
2407
2491
|
selectOptions?: Array<{
|
|
2408
2492
|
label?: string;
|
|
@@ -2440,6 +2524,8 @@ declare class MaterialAsyncSelectComponent extends SimpleBaseSelectComponent {
|
|
|
2440
2524
|
presentationMode: boolean;
|
|
2441
2525
|
private searchInput?;
|
|
2442
2526
|
readonly termControl: FormControl<string | null>;
|
|
2527
|
+
readonly activeLookupFilters: _angular_core.WritableSignal<LookupFilterRequest[]>;
|
|
2528
|
+
readonly selectedLookupSortKey: _angular_core.WritableSignal<string | null>;
|
|
2443
2529
|
private readonly store;
|
|
2444
2530
|
readonly endReached: _angular_core.WritableSignal<boolean>;
|
|
2445
2531
|
private cursorAfter;
|
|
@@ -2456,16 +2542,35 @@ declare class MaterialAsyncSelectComponent extends SimpleBaseSelectComponent {
|
|
|
2456
2542
|
private getSelectedIds;
|
|
2457
2543
|
private preloadSelected;
|
|
2458
2544
|
private refreshOptions;
|
|
2545
|
+
protected currentLookupFiltering(): LookupFilteringMetadata | null;
|
|
2546
|
+
lookupSortOptions(): LookupSortOptionMetadata[];
|
|
2547
|
+
lookupFilterDefinitions(): LookupFilterDefinitionMetadata[];
|
|
2548
|
+
protected initializeLookupFilteringState(): void;
|
|
2549
|
+
protected buildDefaultLookupFilters(filtering: LookupFilteringMetadata): LookupFilterRequest[];
|
|
2550
|
+
protected normalizeLookupFilterValue(operator: LookupFilterRequest['operator'], values: unknown[]): unknown;
|
|
2551
|
+
hasLookupFiltering(): boolean;
|
|
2552
|
+
hasLookupSortOptions(): boolean;
|
|
2553
|
+
hasMultipleLookupSortOptions(): boolean;
|
|
2554
|
+
hasActiveLookupFilters(): boolean;
|
|
2555
|
+
lookupFilterForField(field: string): LookupFilterRequest | undefined;
|
|
2556
|
+
setLookupSortKey(sortKey: string | null): void;
|
|
2557
|
+
clearLookupFilters(field?: string): void;
|
|
2558
|
+
replaceLookupFilters(filters: LookupFilterRequest[]): void;
|
|
2559
|
+
protected refreshLookupQueryState(): void;
|
|
2459
2560
|
private runQuery;
|
|
2460
2561
|
loadMore(): void;
|
|
2461
2562
|
retry(): void;
|
|
2462
2563
|
handleKey(event: KeyboardEvent): void;
|
|
2463
2564
|
protected registerMatSelect(select: MatSelect): void;
|
|
2464
2565
|
reload(reset: boolean): void;
|
|
2566
|
+
protected setupRemoteSelectionHydration(): void;
|
|
2465
2567
|
protected onDependenciesChanged(): void;
|
|
2568
|
+
private ensureCurrentValueLoadedByIds;
|
|
2466
2569
|
private missingOptionLabel;
|
|
2467
2570
|
private loadOptionsErrorLabel;
|
|
2468
|
-
|
|
2571
|
+
protected mapRemoteOption(option: AsyncOption): AsyncRenderedOption;
|
|
2572
|
+
protected resolveRemoteOptionValue(option: AsyncOption): unknown;
|
|
2573
|
+
protected resolveRemoteOptionDisabled(option: AsyncOption): boolean;
|
|
2469
2574
|
private areRemoteOptionValuesEqual;
|
|
2470
2575
|
private normalizeRemoteOptionValue;
|
|
2471
2576
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaterialAsyncSelectComponent, never>;
|
|
@@ -2539,6 +2644,21 @@ type LookupOption = {
|
|
|
2539
2644
|
value: unknown;
|
|
2540
2645
|
disabled?: boolean;
|
|
2541
2646
|
};
|
|
2647
|
+
interface EntityLookupViewModel {
|
|
2648
|
+
id: string;
|
|
2649
|
+
identity: string;
|
|
2650
|
+
code: string;
|
|
2651
|
+
label: string;
|
|
2652
|
+
description: string;
|
|
2653
|
+
status: string;
|
|
2654
|
+
statusTone: LookupStatusTone;
|
|
2655
|
+
selectable: boolean;
|
|
2656
|
+
selectionState: EntityLookupResultState;
|
|
2657
|
+
disabledReason: string;
|
|
2658
|
+
detailHref: string;
|
|
2659
|
+
detailRoute: string;
|
|
2660
|
+
badges: string[];
|
|
2661
|
+
}
|
|
2542
2662
|
interface LookupClearButtonConfig {
|
|
2543
2663
|
enabled?: boolean;
|
|
2544
2664
|
ariaLabel?: string;
|
|
@@ -2552,14 +2672,22 @@ interface LookupAutoSizeConfig {
|
|
|
2552
2672
|
interface LookupMaterialDesignConfig {
|
|
2553
2673
|
density?: string;
|
|
2554
2674
|
}
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2675
|
+
interface LookupFilterChipViewModel {
|
|
2676
|
+
field: string;
|
|
2677
|
+
label: string;
|
|
2678
|
+
valueText: string;
|
|
2679
|
+
}
|
|
2680
|
+
interface SelectedLookupTokenViewModel {
|
|
2681
|
+
identity: string;
|
|
2682
|
+
text: string;
|
|
2683
|
+
title: string;
|
|
2684
|
+
}
|
|
2685
|
+
interface EntityLookupDialogData {
|
|
2686
|
+
metadata: MaterialEntityLookupMetadata;
|
|
2687
|
+
value: unknown;
|
|
2688
|
+
title?: string;
|
|
2689
|
+
}
|
|
2690
|
+
type EntityLookupMetadata = MaterialEntityLookupMetadata & {
|
|
2563
2691
|
optionLabelKey?: string;
|
|
2564
2692
|
optionValueKey?: string;
|
|
2565
2693
|
clearButton?: LookupClearButtonConfig | false | null;
|
|
@@ -2568,10 +2696,12 @@ type EntityLookupMetadata = MaterialSelectMetadata & {
|
|
|
2568
2696
|
density?: string;
|
|
2569
2697
|
};
|
|
2570
2698
|
declare class InlineEntityLookupComponent extends MaterialAsyncSelectComponent {
|
|
2699
|
+
private readonly dialog;
|
|
2571
2700
|
inlineMinWidthPx: number;
|
|
2572
2701
|
inlineMaxWidthPx: number;
|
|
2573
2702
|
private fieldLabelText;
|
|
2574
2703
|
private staticOptions;
|
|
2704
|
+
set initialMetadata(metadata: MaterialEntityLookupMetadata | null | undefined);
|
|
2575
2705
|
private currentMetadata;
|
|
2576
2706
|
setSelectMetadata(metadata: EntityLookupMetadata): void;
|
|
2577
2707
|
protected setMetadata(metadata: MaterialSelectMetadata): void;
|
|
@@ -2582,8 +2712,54 @@ declare class InlineEntityLookupComponent extends MaterialAsyncSelectComponent {
|
|
|
2582
2712
|
hasSelection(): boolean;
|
|
2583
2713
|
selectedCount(): number;
|
|
2584
2714
|
displayText(): string;
|
|
2715
|
+
richLayoutEnabled(): boolean;
|
|
2716
|
+
selectedCardLayout(): boolean;
|
|
2717
|
+
fullFieldLayout(): boolean;
|
|
2718
|
+
showFieldDependencyHint(): boolean;
|
|
2719
|
+
showFieldSearchHint(): boolean;
|
|
2720
|
+
emptyTriggerIconName(): string;
|
|
2721
|
+
emptyTriggerSupportingText(): string;
|
|
2722
|
+
emptyTriggerContextText(): string;
|
|
2723
|
+
selectedLookupView(): EntityLookupViewModel | null;
|
|
2724
|
+
selectedLookupViews(): EntityLookupViewModel[];
|
|
2725
|
+
visibleSelectedLookupTokens(): SelectedLookupTokenViewModel[];
|
|
2726
|
+
hiddenSelectedLookupTokenCount(): number;
|
|
2727
|
+
showSelectedTokenRemove(): boolean;
|
|
2728
|
+
selectedTokenRemoveAriaLabel(text: string): string;
|
|
2729
|
+
onRemoveSelectedToken(event: MouseEvent, identity: string): void;
|
|
2730
|
+
optionLookupView(option: LookupOption): EntityLookupViewModel;
|
|
2731
|
+
showCode(): boolean;
|
|
2732
|
+
showDescription(): boolean;
|
|
2733
|
+
showStatus(): boolean;
|
|
2734
|
+
showAvatar(): boolean;
|
|
2735
|
+
showBadges(): boolean;
|
|
2736
|
+
showDisabledReason(): boolean;
|
|
2737
|
+
showResultCount(): boolean;
|
|
2738
|
+
resultCountText(): string;
|
|
2739
|
+
hasVisibleBadges(item: EntityLookupViewModel): boolean;
|
|
2740
|
+
visibleBadges(item: EntityLookupViewModel): string[];
|
|
2741
|
+
statusBadgeClass(item: EntityLookupViewModel): string;
|
|
2742
|
+
lookupInitials(item: EntityLookupViewModel): string;
|
|
2743
|
+
showDetailAction(item: EntityLookupViewModel): boolean;
|
|
2744
|
+
showChangeAction(): boolean;
|
|
2745
|
+
showCopyCodeAction(item: EntityLookupViewModel): boolean;
|
|
2746
|
+
showCopyIdAction(item: EntityLookupViewModel): boolean;
|
|
2747
|
+
showCreateAction(): boolean;
|
|
2748
|
+
detailActionText(): string;
|
|
2749
|
+
changeActionText(): string;
|
|
2750
|
+
copyCodeActionText(): string;
|
|
2751
|
+
copyIdActionText(): string;
|
|
2752
|
+
createActionText(): string;
|
|
2753
|
+
clearActionText(): string;
|
|
2754
|
+
selectionLimitReachedText(maxSelections: number | null | undefined): string;
|
|
2755
|
+
onDetailAction(event: MouseEvent, item: EntityLookupViewModel): void;
|
|
2756
|
+
onChangeAction(event: MouseEvent): void;
|
|
2757
|
+
onCopyCodeAction(event: MouseEvent, item: EntityLookupViewModel): void;
|
|
2758
|
+
onCopyIdAction(event: MouseEvent, item: EntityLookupViewModel): void;
|
|
2759
|
+
onCreateAction(event: MouseEvent): void;
|
|
2585
2760
|
optionPrimaryText(option: LookupOption): string;
|
|
2586
2761
|
optionSecondaryText(option: LookupOption): string;
|
|
2762
|
+
protected resolveRemoteOptionValue(option: OptionDTO<string | number>): EntityLookupResult<string | number>;
|
|
2587
2763
|
resetOptionText(): string;
|
|
2588
2764
|
showQuickClear(): boolean;
|
|
2589
2765
|
onResetOptionClick(event: MouseEvent): void;
|
|
@@ -2594,34 +2770,234 @@ declare class InlineEntityLookupComponent extends MaterialAsyncSelectComponent {
|
|
|
2594
2770
|
onSearchInput(term: string): void;
|
|
2595
2771
|
showLoadMore(): boolean;
|
|
2596
2772
|
showEndReachedMessage(): boolean;
|
|
2773
|
+
showErrorStateOption(): boolean;
|
|
2774
|
+
showDependencyStateOption(): boolean;
|
|
2775
|
+
showEmptyStateOption(): boolean;
|
|
2776
|
+
onRetryClick(event: MouseEvent): void;
|
|
2777
|
+
errorStateLabel(): string;
|
|
2778
|
+
dependencyStateLabel(): string;
|
|
2779
|
+
emptyStateLabel(): string;
|
|
2597
2780
|
onLoadMoreClick(event: MouseEvent): void;
|
|
2598
2781
|
placeholderText(): string;
|
|
2599
2782
|
searchPlaceholderText(): string;
|
|
2783
|
+
showLookupToolbar(): boolean;
|
|
2784
|
+
showLookupSortControl(): boolean;
|
|
2785
|
+
lookupSortSelectValue(): string;
|
|
2786
|
+
onLookupSortSelectionChange(event: Event): void;
|
|
2787
|
+
activeLookupFilterChips(): LookupFilterChipViewModel[];
|
|
2788
|
+
clearAllLookupFilters(event: MouseEvent): void;
|
|
2789
|
+
clearLookupFilterChip(event: MouseEvent, field: string): void;
|
|
2790
|
+
sortLabelText(): string;
|
|
2791
|
+
sortDefaultOptionText(): string;
|
|
2792
|
+
clearAllFiltersText(): string;
|
|
2793
|
+
currentDialogMetadata(): LookupDialogMetadata | null;
|
|
2794
|
+
dialogEnabled(): boolean;
|
|
2795
|
+
showDialogOption(): boolean;
|
|
2796
|
+
dialogOpenActionText(): string;
|
|
2797
|
+
dialogOpenSupportingText(): string;
|
|
2798
|
+
dialogContextSupportingText(hasActiveFilters: boolean): string;
|
|
2799
|
+
dialogApplyActionText(): string;
|
|
2800
|
+
dialogFilterPanelToggleText(open: boolean): string;
|
|
2801
|
+
dialogFilterPlaceholderText(operator: LookupFilterOperator, type: LookupFilterFieldType): string;
|
|
2802
|
+
dialogFilterOperatorHintText(operator: LookupFilterOperator): string;
|
|
2803
|
+
dialogApplyFiltersActionText(): string;
|
|
2804
|
+
dialogClearFiltersActionText(): string;
|
|
2805
|
+
dialogFilterSelectEmptyText(label: string): string;
|
|
2806
|
+
dialogFilterStartAriaLabelText(label: string): string;
|
|
2807
|
+
dialogFilterEndAriaLabelText(label: string): string;
|
|
2808
|
+
dialogPreviewSelectionStateLabelText(): string;
|
|
2809
|
+
dialogPreviewSelectionStateText(state: EntityLookupResultState): string;
|
|
2810
|
+
dialogSearchAriaLabelText(): string;
|
|
2811
|
+
dialogResultsAriaLabelText(): string;
|
|
2812
|
+
dialogFiltersAriaLabelText(): string;
|
|
2813
|
+
dialogPreviewAriaLabelText(): string;
|
|
2814
|
+
dialogResultOptionAriaLabel(item: EntityLookupViewModel): string;
|
|
2815
|
+
dialogCancelActionText(): string;
|
|
2816
|
+
dialogTitleText(): string;
|
|
2817
|
+
onOpenDialogClick(event: MouseEvent): void;
|
|
2600
2818
|
panelSearchIconName(fallback?: string): string;
|
|
2601
2819
|
panelSearchIconColor(): string | undefined;
|
|
2602
2820
|
panelResetIconName(fallback?: string): string;
|
|
2603
2821
|
panelResetIconColor(): string | undefined;
|
|
2604
2822
|
ariaLabel(): string;
|
|
2823
|
+
interactionDisabled(): boolean;
|
|
2824
|
+
readonlySummaryText(): string;
|
|
2825
|
+
private lookupDialogMetadata;
|
|
2826
|
+
private resolveDialogWidth;
|
|
2827
|
+
private humanizeLookupField;
|
|
2828
|
+
private interpolateLookupText;
|
|
2829
|
+
private lookupDependencyLabels;
|
|
2830
|
+
private missingDependencyLabels;
|
|
2831
|
+
private hasDependencyValue;
|
|
2832
|
+
private humanizeLookupDependencyField;
|
|
2833
|
+
private lookupFilterValueText;
|
|
2834
|
+
inlineTooltipText(): string;
|
|
2605
2835
|
private resolveLookupText;
|
|
2836
|
+
private lookupViewFromValue;
|
|
2606
2837
|
private resolveLookupData;
|
|
2607
2838
|
private buildLookupPrimaryText;
|
|
2608
2839
|
private fallbackLookupText;
|
|
2609
2840
|
private lookupIdKey;
|
|
2841
|
+
private lookupIdKeys;
|
|
2610
2842
|
private lookupLabelKey;
|
|
2843
|
+
private lookupCodeKeys;
|
|
2844
|
+
private lookupLabelKeys;
|
|
2611
2845
|
private lookupSubtitleKey;
|
|
2846
|
+
private lookupSubtitleKeys;
|
|
2847
|
+
private lookupStatusKeys;
|
|
2848
|
+
private resolveLookupSelectable;
|
|
2849
|
+
private lookupBadges;
|
|
2850
|
+
private classifyLookupSelectionState;
|
|
2851
|
+
private resolveStatusTone;
|
|
2612
2852
|
private lookupSeparator;
|
|
2613
2853
|
private normalizeLookupText;
|
|
2854
|
+
private normalizeLookupOptionalText;
|
|
2855
|
+
private parseLookupSelectableValue;
|
|
2614
2856
|
private firstDefined;
|
|
2857
|
+
private lookupSubtitleText;
|
|
2858
|
+
private uniqueLookupKeys;
|
|
2615
2859
|
private equalsOptionValue;
|
|
2860
|
+
private resolveLookupIdentity;
|
|
2861
|
+
private isPrimitiveLookupValue;
|
|
2616
2862
|
private asRecord;
|
|
2863
|
+
private lookupOptionSource;
|
|
2864
|
+
private resolveDetailHref;
|
|
2865
|
+
private resolveDetailRoute;
|
|
2866
|
+
private applyLookupTemplate;
|
|
2617
2867
|
private resolveFieldLabelFromMetadata;
|
|
2618
2868
|
private currentSearchTerm;
|
|
2869
|
+
private hasUnmetDependencies;
|
|
2870
|
+
private resolveDependencyValuePathFor;
|
|
2871
|
+
private hasMeaningfulDependencyValue;
|
|
2619
2872
|
private applyStaticOptionsFilter;
|
|
2620
2873
|
private humanizeFieldName;
|
|
2874
|
+
private maxVisibleSelectedTokens;
|
|
2875
|
+
private removeSelectionByIdentity;
|
|
2621
2876
|
private recalculateInlineSizeBounds;
|
|
2622
2877
|
private resolveWidthBounds;
|
|
2623
2878
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InlineEntityLookupComponent, never>;
|
|
2624
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InlineEntityLookupComponent, "pdx-inline-entity-lookup", never, {}, {}, never, never, true, never>;
|
|
2879
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InlineEntityLookupComponent, "pdx-inline-entity-lookup", never, { "initialMetadata": { "alias": "initialMetadata"; "required": false; }; }, {}, never, never, true, never>;
|
|
2880
|
+
}
|
|
2881
|
+
declare class EntityLookupDialogComponent implements AfterViewInit {
|
|
2882
|
+
readonly data: EntityLookupDialogData;
|
|
2883
|
+
private readonly destroyRef;
|
|
2884
|
+
private readonly hostRef;
|
|
2885
|
+
private readonly dialogRef;
|
|
2886
|
+
readonly lookup: _angular_core.Signal<InlineEntityLookupComponent>;
|
|
2887
|
+
readonly selectionControl: FormControl<unknown>;
|
|
2888
|
+
readonly dialogSearchControl: FormControl<string | null>;
|
|
2889
|
+
readonly filterPanelOpen: FormControl<boolean>;
|
|
2890
|
+
private readonly dialogFilterControls;
|
|
2891
|
+
private readonly dialogFilterSecondaryControls;
|
|
2892
|
+
private previewIdentity;
|
|
2893
|
+
private activeResultIndex;
|
|
2894
|
+
ngAfterViewInit(): void;
|
|
2895
|
+
apply(): void;
|
|
2896
|
+
cancel(): void;
|
|
2897
|
+
applyText(): string;
|
|
2898
|
+
cancelText(): string;
|
|
2899
|
+
searchPlaceholder(): string;
|
|
2900
|
+
dialogSearchAriaLabel(): string;
|
|
2901
|
+
dialogResultsAriaLabel(): string;
|
|
2902
|
+
dialogFiltersAriaLabel(): string;
|
|
2903
|
+
dialogPreviewAriaLabel(): string;
|
|
2904
|
+
showSortControl(): boolean;
|
|
2905
|
+
sortOptions(): _praxisui_core.LookupSortOptionMetadata[];
|
|
2906
|
+
sortValue(): string;
|
|
2907
|
+
onSortChange(event: Event): void;
|
|
2908
|
+
sortLabel(): string;
|
|
2909
|
+
sortDefaultLabel(): string;
|
|
2910
|
+
dialogIntroText(): string;
|
|
2911
|
+
dialogContextText(): string;
|
|
2912
|
+
hasStructuredDialogFilters(): boolean;
|
|
2913
|
+
showFilterPanel(): boolean;
|
|
2914
|
+
toggleFilterPanel(): void;
|
|
2915
|
+
dialogFilterDefinitions(): LookupFilterDefinitionMetadata[];
|
|
2916
|
+
filterPanelToggleText(): string;
|
|
2917
|
+
filterControl(field: string): FormControl<unknown>;
|
|
2918
|
+
filterSecondaryControl(field: string): FormControl<unknown>;
|
|
2919
|
+
dialogFilterLabel(definition: LookupFilterDefinitionMetadata): string;
|
|
2920
|
+
dialogFilterPlaceholder(definition: LookupFilterDefinitionMetadata): string;
|
|
2921
|
+
dialogFilterRangeEndPlaceholder(definition: LookupFilterDefinitionMetadata): string;
|
|
2922
|
+
dialogFilterStartAriaLabel(definition: LookupFilterDefinitionMetadata): string;
|
|
2923
|
+
dialogFilterEndAriaLabel(definition: LookupFilterDefinitionMetadata): string;
|
|
2924
|
+
dialogFilterInputType(definition: LookupFilterDefinitionMetadata): 'text' | 'date' | 'number';
|
|
2925
|
+
useDialogEnumSelect(definition: LookupFilterDefinitionMetadata): boolean;
|
|
2926
|
+
useDialogMultiSelect(definition: LookupFilterDefinitionMetadata): boolean;
|
|
2927
|
+
useDialogRangeInputs(definition: LookupFilterDefinitionMetadata): boolean;
|
|
2928
|
+
dialogFilterSelectEmptyText(definition: LookupFilterDefinitionMetadata): string;
|
|
2929
|
+
dialogEnumOptions(definition: LookupFilterDefinitionMetadata): Array<{
|
|
2930
|
+
value: string;
|
|
2931
|
+
label: string;
|
|
2932
|
+
}>;
|
|
2933
|
+
dialogOperatorHint(definition: LookupFilterDefinitionMetadata): string;
|
|
2934
|
+
applyDialogFiltersText(): string;
|
|
2935
|
+
clearDialogFiltersText(): string;
|
|
2936
|
+
applyDialogFilters(): void;
|
|
2937
|
+
resetDialogFilters(): void;
|
|
2938
|
+
dialogColumns(): LookupResultColumnMetadata[];
|
|
2939
|
+
showResultTable(): boolean;
|
|
2940
|
+
showCardResultLayout(): boolean;
|
|
2941
|
+
showCompactResultLayout(): boolean;
|
|
2942
|
+
dialogColumnLabel(column: LookupResultColumnMetadata): string;
|
|
2943
|
+
columnFlex(column: LookupResultColumnMetadata): string;
|
|
2944
|
+
dialogCellText(option: LookupOption, column: LookupResultColumnMetadata): string;
|
|
2945
|
+
resultOptions(): _praxisui_dynamic_fields.SelectOption<any>[];
|
|
2946
|
+
hasResultRows(): boolean;
|
|
2947
|
+
hasSelection(): boolean;
|
|
2948
|
+
canApply(): boolean;
|
|
2949
|
+
selectedSummaryText(): string;
|
|
2950
|
+
selectedDisabledReason(): string;
|
|
2951
|
+
selectResult(option: LookupOption): void;
|
|
2952
|
+
isSelected(option: LookupOption): boolean;
|
|
2953
|
+
resultOptionDisabled(option: LookupOption): boolean;
|
|
2954
|
+
loadMore(): void;
|
|
2955
|
+
resultState(option: LookupOption): EntityLookupResultState;
|
|
2956
|
+
resultRowTitle(option: LookupOption): string | null;
|
|
2957
|
+
resultRowId(index: number): string;
|
|
2958
|
+
resultRowTabIndex(index: number): number;
|
|
2959
|
+
resultRowAriaLabel(option: LookupOption): string;
|
|
2960
|
+
setActiveResult(index: number, option: LookupOption): void;
|
|
2961
|
+
onResultRowKeydown(event: KeyboardEvent, index: number, option: LookupOption): void;
|
|
2962
|
+
showPreviewDetailAction(item: EntityLookupViewModel): boolean;
|
|
2963
|
+
showPreviewCopyCodeAction(item: EntityLookupViewModel): boolean;
|
|
2964
|
+
showPreviewCopyIdAction(item: EntityLookupViewModel): boolean;
|
|
2965
|
+
showPreviewCreateAction(): boolean;
|
|
2966
|
+
showPreviewClearAction(): boolean;
|
|
2967
|
+
onPreviewDetailAction(event: MouseEvent, item: EntityLookupViewModel): void;
|
|
2968
|
+
onPreviewCopyCodeAction(event: MouseEvent, item: EntityLookupViewModel): void;
|
|
2969
|
+
onPreviewCopyIdAction(event: MouseEvent, item: EntityLookupViewModel): void;
|
|
2970
|
+
onPreviewCreateAction(event: MouseEvent): void;
|
|
2971
|
+
onPreviewClearAction(event: MouseEvent): void;
|
|
2972
|
+
showPreviewPanel(): boolean;
|
|
2973
|
+
previewItem(): EntityLookupViewModel | null;
|
|
2974
|
+
setPreviewFromOption(option: LookupOption): void;
|
|
2975
|
+
previewSelectionStateLabel(): string;
|
|
2976
|
+
previewSelectionStateText(item: EntityLookupViewModel): string;
|
|
2977
|
+
private initializeDialogFilters;
|
|
2978
|
+
private dialogFilterEmptyValue;
|
|
2979
|
+
private serializeDialogFilterSingleValue;
|
|
2980
|
+
private serializeDialogFilterScalarValue;
|
|
2981
|
+
private buildDialogFilterRequest;
|
|
2982
|
+
private normalizeDialogFilterControlValue;
|
|
2983
|
+
private normalizeDialogFilterScalarValue;
|
|
2984
|
+
private resolveDialogFilterFieldValue;
|
|
2985
|
+
private pushDialogEnumOption;
|
|
2986
|
+
private syncPreviewIdentity;
|
|
2987
|
+
private focusResultRow;
|
|
2988
|
+
private normalizeOptionValue;
|
|
2989
|
+
private normalizeInitialDialogValue;
|
|
2990
|
+
private initialSelectionSnapshot;
|
|
2991
|
+
private selectionSnapshot;
|
|
2992
|
+
private selectedValueCount;
|
|
2993
|
+
private toggleMultipleSelection;
|
|
2994
|
+
private dialogCustomCellText;
|
|
2995
|
+
private humanizeColumnField;
|
|
2996
|
+
private optionIdentity;
|
|
2997
|
+
private dialogHasConfiguredColumns;
|
|
2998
|
+
private dialogResultLayout;
|
|
2999
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityLookupDialogComponent, never>;
|
|
3000
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityLookupDialogComponent, "pdx-entity-lookup-dialog", never, {}, {}, never, never, true, never>;
|
|
2625
3001
|
}
|
|
2626
3002
|
|
|
2627
3003
|
declare class InlineMultiSelectComponent extends SimpleBaseSelectComponent {
|
|
@@ -3136,6 +3512,7 @@ declare class InlineRangeSliderComponent extends SimpleBaseInputComponent {
|
|
|
3136
3512
|
maxValue(): number;
|
|
3137
3513
|
stepValue(): number;
|
|
3138
3514
|
showTickMarks(): boolean;
|
|
3515
|
+
valueLabelEnabled(): boolean;
|
|
3139
3516
|
isRangeMode(): boolean;
|
|
3140
3517
|
isInteractionBlocked(): boolean;
|
|
3141
3518
|
hasSelection(): boolean;
|
|
@@ -4051,6 +4428,7 @@ declare class InlinePipelineStatusComponent extends SimpleBaseSelectComponent<un
|
|
|
4051
4428
|
protected resolveInlineContextTooltipValue(): string;
|
|
4052
4429
|
hasSelection(): boolean;
|
|
4053
4430
|
displayText(): string;
|
|
4431
|
+
selectedChipValueText(): string;
|
|
4054
4432
|
showQuickClear(): boolean;
|
|
4055
4433
|
onTriggerIconMouseDown(event: MouseEvent): void;
|
|
4056
4434
|
onQuickClear(event: MouseEvent): void;
|
|
@@ -4440,6 +4818,7 @@ declare class InlineColorLabelComponent extends SimpleBaseSelectComponent<unknow
|
|
|
4440
4818
|
protected resolveInlineContextTooltipValue(): string;
|
|
4441
4819
|
hasSelection(): boolean;
|
|
4442
4820
|
displayText(): string;
|
|
4821
|
+
selectedChipValueText(): string;
|
|
4443
4822
|
showQuickClear(): boolean;
|
|
4444
4823
|
onTriggerIconMouseDown(event: MouseEvent): void;
|
|
4445
4824
|
onQuickClear(event: MouseEvent): void;
|
|
@@ -4497,13 +4876,20 @@ declare class InlineColorLabelComponent extends SimpleBaseSelectComponent<unknow
|
|
|
4497
4876
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InlineColorLabelComponent, "pdx-inline-color-label", 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>;
|
|
4498
4877
|
}
|
|
4499
4878
|
|
|
4500
|
-
declare class MaterialMultiSelectComponent extends SimpleBaseSelectComponent {
|
|
4879
|
+
declare class MaterialMultiSelectComponent extends SimpleBaseSelectComponent implements DoCheck {
|
|
4501
4880
|
readonlyMode: boolean;
|
|
4502
4881
|
disabledMode: boolean;
|
|
4503
4882
|
visible: boolean;
|
|
4504
4883
|
presentationMode: boolean;
|
|
4884
|
+
private disabledModeAppliedToControl;
|
|
4885
|
+
ngDoCheck(): void;
|
|
4505
4886
|
protected defaultPanelClass(): string;
|
|
4506
4887
|
selectAllLabel(): string;
|
|
4888
|
+
multiSelectAriaDisabled(): 'true' | null;
|
|
4889
|
+
multiSelectAriaReadonly(): 'true' | null;
|
|
4890
|
+
selectOption(option: SelectOption<unknown>): void;
|
|
4891
|
+
toggleSelectAll(): void;
|
|
4892
|
+
onClearClick(): void;
|
|
4507
4893
|
setSelectMetadata(metadata: SimpleSelectMetadata<unknown>): void;
|
|
4508
4894
|
/** Disables options when maxSelections reached */
|
|
4509
4895
|
isOptionDisabled(option: SelectOption<unknown>): boolean;
|
|
@@ -4511,6 +4897,7 @@ declare class MaterialMultiSelectComponent extends SimpleBaseSelectComponent {
|
|
|
4511
4897
|
onOptionSelectionChange(option: SelectOption<unknown>, event: MatOptionSelectionChange): void;
|
|
4512
4898
|
errorStateMatcher(): _angular_material_error_options_d_CGdTZUYk.E;
|
|
4513
4899
|
private optionsFromLegacy;
|
|
4900
|
+
private syncDisabledModeControlState;
|
|
4514
4901
|
private normalizeOption;
|
|
4515
4902
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaterialMultiSelectComponent, never>;
|
|
4516
4903
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaterialMultiSelectComponent, "pdx-material-multi-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>;
|
|
@@ -4644,6 +5031,10 @@ declare class MaterialChipsComponent extends SimpleBaseSelectComponent {
|
|
|
4644
5031
|
private mapRawOption;
|
|
4645
5032
|
displayOption: (value: unknown) => string;
|
|
4646
5033
|
selectedOptions(): SelectOption[];
|
|
5034
|
+
isChipsInteractionDisabled(): boolean;
|
|
5035
|
+
canRemoveChips(): boolean;
|
|
5036
|
+
removeChipAriaLabel(option: SelectOption): string;
|
|
5037
|
+
selectOption(option: SelectOption): void;
|
|
4647
5038
|
removeChip(option: SelectOption): void;
|
|
4648
5039
|
onInputTokenEnd(event: MatChipInputEvent): void;
|
|
4649
5040
|
onSearchInputEvent(event: Event): void;
|
|
@@ -4655,13 +5046,24 @@ declare class MaterialChipsComponent extends SimpleBaseSelectComponent {
|
|
|
4655
5046
|
}
|
|
4656
5047
|
|
|
4657
5048
|
declare class MaterialButtonToggleComponent extends SimpleBaseSelectComponent {
|
|
5049
|
+
readonlyMode: boolean;
|
|
5050
|
+
disabledMode: boolean;
|
|
5051
|
+
visible: boolean;
|
|
5052
|
+
presentationMode: boolean;
|
|
4658
5053
|
private asRecord;
|
|
4659
5054
|
private mapRawOption;
|
|
5055
|
+
labelId(): string;
|
|
5056
|
+
groupAriaLabel(): string | null;
|
|
5057
|
+
groupAriaLabelledby(): string | null;
|
|
5058
|
+
toggleInteractionDisabled(): boolean;
|
|
5059
|
+
toggleAriaDisabled(): 'true' | null;
|
|
5060
|
+
toggleAriaReadonly(): 'true' | null;
|
|
5061
|
+
readonlyEffective(): boolean;
|
|
4660
5062
|
setSelectMetadata(metadata: SimpleSelectMetadata<unknown>): void;
|
|
4661
5063
|
protected getSpecificCssClasses(): string[];
|
|
4662
5064
|
onGroupChange(event: MatButtonToggleChange): void;
|
|
4663
5065
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaterialButtonToggleComponent, never>;
|
|
4664
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaterialButtonToggleComponent, "pdx-material-button-toggle", never, {}, {}, never, never, true, never>;
|
|
5066
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaterialButtonToggleComponent, "pdx-material-button-toggle", 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>;
|
|
4665
5067
|
}
|
|
4666
5068
|
|
|
4667
5069
|
declare class MaterialSlideToggleComponent extends SimpleBaseInputComponent {
|
|
@@ -4669,6 +5071,11 @@ declare class MaterialSlideToggleComponent extends SimpleBaseInputComponent {
|
|
|
4669
5071
|
disabledMode: boolean;
|
|
4670
5072
|
visible: boolean;
|
|
4671
5073
|
presentationMode: boolean;
|
|
5074
|
+
requiredEffective(): boolean;
|
|
5075
|
+
toggleInteractionDisabled(): boolean;
|
|
5076
|
+
toggleAriaDisabled(): 'true' | null;
|
|
5077
|
+
toggleAriaReadonly(): 'true' | null;
|
|
5078
|
+
readonlyEffective(): boolean;
|
|
4672
5079
|
/** Applies component metadata with strong typing. */
|
|
4673
5080
|
setInputMetadata(metadata: MaterialToggleMetadata): void;
|
|
4674
5081
|
protected getSpecificCssClasses(): string[];
|
|
@@ -4676,16 +5083,60 @@ declare class MaterialSlideToggleComponent extends SimpleBaseInputComponent {
|
|
|
4676
5083
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaterialSlideToggleComponent, "pdx-material-slide-toggle", 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>;
|
|
4677
5084
|
}
|
|
4678
5085
|
|
|
5086
|
+
interface SliderDistributionBar$1 {
|
|
5087
|
+
id: string;
|
|
5088
|
+
ratio: number;
|
|
5089
|
+
selected: boolean;
|
|
5090
|
+
background?: string;
|
|
5091
|
+
color?: string;
|
|
5092
|
+
label?: string;
|
|
5093
|
+
}
|
|
5094
|
+
interface SliderSemanticBandView$1 {
|
|
5095
|
+
id: string;
|
|
5096
|
+
startPercent: number;
|
|
5097
|
+
widthPercent: number;
|
|
5098
|
+
tone: RangeSliderSemanticBand['tone'];
|
|
5099
|
+
color?: string;
|
|
5100
|
+
label?: string;
|
|
5101
|
+
}
|
|
4679
5102
|
declare class MaterialSliderComponent extends SimpleBaseInputComponent {
|
|
4680
5103
|
readonlyMode: boolean;
|
|
4681
5104
|
disabledMode: boolean;
|
|
4682
5105
|
visible: boolean;
|
|
4683
5106
|
presentationMode: boolean;
|
|
4684
5107
|
/** Display function for slider values */
|
|
4685
|
-
displayWithFn: (value: number) =>
|
|
5108
|
+
displayWithFn: (value: number) => string;
|
|
5109
|
+
sliderStep(): number;
|
|
5110
|
+
valueLabelEnabled(): boolean;
|
|
5111
|
+
showTickMarks(): boolean;
|
|
5112
|
+
trackMode(): 'normal' | 'inverted' | 'none';
|
|
5113
|
+
sliderSize(): 'small' | 'medium' | 'large';
|
|
5114
|
+
markLabels(): RangeSliderMark[];
|
|
5115
|
+
semanticBandViews(): SliderSemanticBandView$1[];
|
|
5116
|
+
distributionBars(): SliderDistributionBar$1[];
|
|
5117
|
+
sliderInteractionDisabled(): boolean;
|
|
5118
|
+
sliderAriaDisabled(): 'true' | null;
|
|
5119
|
+
sliderAriaReadonly(): 'true' | null;
|
|
5120
|
+
readonlyEffective(): boolean;
|
|
5121
|
+
markPosition(value: number): number;
|
|
4686
5122
|
/** Applies component metadata with strong typing. */
|
|
4687
5123
|
setInputMetadata(metadata: MaterialSliderMetadata): void;
|
|
4688
5124
|
protected getSpecificCssClasses(): string[];
|
|
5125
|
+
private currentMetadata;
|
|
5126
|
+
private resolveMarks;
|
|
5127
|
+
private parseJsonArray;
|
|
5128
|
+
private parseJsonObject;
|
|
5129
|
+
private normalizeTone;
|
|
5130
|
+
private resolveSemanticBands;
|
|
5131
|
+
private resolveDistributionBars;
|
|
5132
|
+
private normalizeDistributionColorMode;
|
|
5133
|
+
private isDistributionBarSelected;
|
|
5134
|
+
private resolveDistributionBarBackground;
|
|
5135
|
+
private stringConfig;
|
|
5136
|
+
formatSliderValue(value: unknown): string;
|
|
5137
|
+
private scaleValue;
|
|
5138
|
+
private formatStorageValue;
|
|
5139
|
+
private formatCurrencyValue;
|
|
4689
5140
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaterialSliderComponent, never>;
|
|
4690
5141
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaterialSliderComponent, "pdx-material-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>;
|
|
4691
5142
|
}
|
|
@@ -4694,11 +5145,45 @@ type ThemeColor = 'primary' | 'secondary' | 'tertiary' | 'base' | 'info' | 'succ
|
|
|
4694
5145
|
type Rounded = 'full' | 'large' | 'medium' | 'small' | 'none';
|
|
4695
5146
|
type AvatarSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'none';
|
|
4696
5147
|
type FillMode = 'solid' | 'outline' | 'none';
|
|
5148
|
+
type AvatarStatus = 'online' | 'offline' | 'busy' | 'away' | 'verified' | 'none';
|
|
5149
|
+
type AvatarEmphasis = 'none' | 'ring' | 'halo';
|
|
4697
5150
|
type IconInput = string | SafeHtml | {
|
|
4698
5151
|
name?: string;
|
|
4699
5152
|
svg?: string;
|
|
4700
5153
|
fontClass?: string;
|
|
4701
5154
|
};
|
|
5155
|
+
interface AvatarGroupItem {
|
|
5156
|
+
imageSrc?: string;
|
|
5157
|
+
imageAlt?: string;
|
|
5158
|
+
initials?: string;
|
|
5159
|
+
name?: string;
|
|
5160
|
+
icon?: IconInput;
|
|
5161
|
+
defaultIcon?: IconInput;
|
|
5162
|
+
themeColor?: ThemeColor;
|
|
5163
|
+
rounded?: Rounded;
|
|
5164
|
+
fillMode?: FillMode;
|
|
5165
|
+
status?: AvatarStatus;
|
|
5166
|
+
statusLabel?: string;
|
|
5167
|
+
emphasis?: AvatarEmphasis;
|
|
5168
|
+
emphasisColor?: ThemeColor;
|
|
5169
|
+
emphasisLabel?: string;
|
|
5170
|
+
tooltip?: string;
|
|
5171
|
+
ariaLabel?: string;
|
|
5172
|
+
}
|
|
5173
|
+
interface NormalizedAvatarGroupItem extends AvatarGroupItem {
|
|
5174
|
+
key: string;
|
|
5175
|
+
index: number;
|
|
5176
|
+
initialsText: string;
|
|
5177
|
+
imageUrl: string;
|
|
5178
|
+
label: string;
|
|
5179
|
+
tooltip: string;
|
|
5180
|
+
themeColor: ThemeColor;
|
|
5181
|
+
rounded: Rounded;
|
|
5182
|
+
fillMode: FillMode;
|
|
5183
|
+
status: AvatarStatus;
|
|
5184
|
+
emphasis: AvatarEmphasis;
|
|
5185
|
+
emphasisColor: ThemeColor;
|
|
5186
|
+
}
|
|
4702
5187
|
declare class MaterialAvatarComponent implements OnChanges {
|
|
4703
5188
|
private readonly sanitizer;
|
|
4704
5189
|
private readonly elementRef;
|
|
@@ -4722,6 +5207,12 @@ declare class MaterialAvatarComponent implements OnChanges {
|
|
|
4722
5207
|
private _border;
|
|
4723
5208
|
private _sizePx?;
|
|
4724
5209
|
private _sizeCss?;
|
|
5210
|
+
private _initialsMaxLength;
|
|
5211
|
+
private _groupItems;
|
|
5212
|
+
private _groupMaxVisible;
|
|
5213
|
+
private _groupOverlap;
|
|
5214
|
+
private _emphasis;
|
|
5215
|
+
private _emphasisColor;
|
|
4725
5216
|
set themeColor(value: ThemeColor);
|
|
4726
5217
|
get themeColor(): ThemeColor;
|
|
4727
5218
|
set rounded(value: Rounded);
|
|
@@ -4738,6 +5229,25 @@ declare class MaterialAvatarComponent implements OnChanges {
|
|
|
4738
5229
|
get sizeCss(): string | undefined;
|
|
4739
5230
|
tooltip?: string;
|
|
4740
5231
|
ariaLabel?: string;
|
|
5232
|
+
status?: AvatarStatus;
|
|
5233
|
+
statusLabel?: string;
|
|
5234
|
+
badge?: string | number;
|
|
5235
|
+
badgeLabel?: string;
|
|
5236
|
+
emphasisLabel?: string;
|
|
5237
|
+
set emphasis(value: AvatarEmphasis | undefined);
|
|
5238
|
+
get emphasis(): AvatarEmphasis;
|
|
5239
|
+
set emphasisColor(value: ThemeColor | undefined);
|
|
5240
|
+
get emphasisColor(): ThemeColor;
|
|
5241
|
+
set initialsMaxLength(value: number | string | undefined);
|
|
5242
|
+
get initialsMaxLength(): number;
|
|
5243
|
+
set groupItems(value: AvatarGroupItem[] | undefined);
|
|
5244
|
+
get groupItems(): AvatarGroupItem[];
|
|
5245
|
+
set groupMaxVisible(value: number | string | undefined);
|
|
5246
|
+
get groupMaxVisible(): number;
|
|
5247
|
+
set groupOverlap(value: number | string | undefined);
|
|
5248
|
+
get groupOverlap(): number;
|
|
5249
|
+
groupOverflowLabel?: string;
|
|
5250
|
+
groupLabel?: string;
|
|
4741
5251
|
readonlyMode?: boolean;
|
|
4742
5252
|
disabledMode?: boolean;
|
|
4743
5253
|
visible?: boolean;
|
|
@@ -4750,6 +5260,7 @@ declare class MaterialAvatarComponent implements OnChanges {
|
|
|
4750
5260
|
get style(): NgStyle | undefined;
|
|
4751
5261
|
imageError: EventEmitter<void>;
|
|
4752
5262
|
private readonly _imgFailed;
|
|
5263
|
+
private readonly groupImageFailures;
|
|
4753
5264
|
private readonly controlValue;
|
|
4754
5265
|
private readonly _syncControlValue;
|
|
4755
5266
|
readonly resolvedImageSrc: _angular_core.Signal<string>;
|
|
@@ -4757,6 +5268,7 @@ declare class MaterialAvatarComponent implements OnChanges {
|
|
|
4757
5268
|
readonly hasImage: _angular_core.Signal<boolean>;
|
|
4758
5269
|
readonly hasInitials: _angular_core.Signal<boolean>;
|
|
4759
5270
|
readonly componentCssClasses: _angular_core.Signal<string>;
|
|
5271
|
+
readonly computedHostRole: _angular_core.Signal<"group" | "img">;
|
|
4760
5272
|
readonly resolvedStyle: _angular_core.Signal<{
|
|
4761
5273
|
[x: string]: unknown;
|
|
4762
5274
|
} | null>;
|
|
@@ -4767,10 +5279,41 @@ declare class MaterialAvatarComponent implements OnChanges {
|
|
|
4767
5279
|
private pickImageSrcFromValue;
|
|
4768
5280
|
private normalizeImageUrl;
|
|
4769
5281
|
private normalizeCssSize;
|
|
5282
|
+
private normalizeThemeColor;
|
|
5283
|
+
private normalizeRounded;
|
|
5284
|
+
private normalizeFillMode;
|
|
5285
|
+
private normalizeStatus;
|
|
5286
|
+
private normalizeEmphasis;
|
|
5287
|
+
private initialsFrom;
|
|
5288
|
+
private groupItemLabel;
|
|
5289
|
+
private defaultStatusLabel;
|
|
5290
|
+
private iconNameFrom;
|
|
5291
|
+
private themeStyle;
|
|
5292
|
+
private radiusToken;
|
|
5293
|
+
readonly resolvedStatus: _angular_core.Signal<AvatarStatus>;
|
|
5294
|
+
readonly resolvedStatusLabel: _angular_core.Signal<string>;
|
|
5295
|
+
normalizedBadge(): string;
|
|
5296
|
+
readonly resolvedBadgeLabel: _angular_core.Signal<string>;
|
|
5297
|
+
readonly resolvedEmphasisLabel: _angular_core.Signal<string>;
|
|
4770
5298
|
shouldShowImage(): boolean;
|
|
4771
5299
|
shouldShowIcon(): boolean;
|
|
4772
5300
|
shouldShowInitials(): boolean;
|
|
4773
5301
|
shouldShowDefaultIcon(): boolean;
|
|
5302
|
+
shouldShowStatus(): boolean;
|
|
5303
|
+
shouldShowBadge(): boolean;
|
|
5304
|
+
shouldRenderGroup(): boolean;
|
|
5305
|
+
readonly normalizedGroupItems: _angular_core.Signal<NormalizedAvatarGroupItem[]>;
|
|
5306
|
+
readonly visibleGroupItems: _angular_core.Signal<NormalizedAvatarGroupItem[]>;
|
|
5307
|
+
readonly groupOverflowCount: _angular_core.Signal<number>;
|
|
5308
|
+
groupItemClasses(item: NormalizedAvatarGroupItem): string;
|
|
5309
|
+
groupItemStyle(item: NormalizedAvatarGroupItem): Record<string, string>;
|
|
5310
|
+
groupOverflowStyle(): Record<string, string>;
|
|
5311
|
+
groupOverlapCss(): string;
|
|
5312
|
+
groupImageFailed(index: number): boolean;
|
|
5313
|
+
onGroupImgError(index: number): void;
|
|
5314
|
+
groupIconName(item: AvatarGroupItem): string | null;
|
|
5315
|
+
groupDefaultIconName(item: AvatarGroupItem): string | null;
|
|
5316
|
+
resolvedGroupOverflowLabel(): string;
|
|
4774
5317
|
readonly hasExplicitIcon: _angular_core.Signal<boolean>;
|
|
4775
5318
|
readonly hasDefaultIcon: _angular_core.Signal<boolean>;
|
|
4776
5319
|
normalizedInitials(): string;
|
|
@@ -4783,14 +5326,32 @@ declare class MaterialAvatarComponent implements OnChanges {
|
|
|
4783
5326
|
ngOnChanges(_changes: SimpleChanges): void;
|
|
4784
5327
|
setInputMetadata(meta: ComponentMetadata): void;
|
|
4785
5328
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaterialAvatarComponent, never>;
|
|
4786
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaterialAvatarComponent, "pdx-material-avatar", never, { "imageSrc": { "alias": "imageSrc"; "required": false; }; "imageAlt": { "alias": "imageAlt"; "required": false; }; "initials": { "alias": "initials"; "required": false; }; "name": { "alias": "name"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "defaultIcon": { "alias": "defaultIcon"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "size": { "alias": "size"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; "border": { "alias": "border"; "required": false; }; "sizePx": { "alias": "sizePx"; "required": false; }; "sizeCss": { "alias": "sizeCss"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "readonlyMode": { "alias": "readonlyMode"; "required": false; }; "disabledMode": { "alias": "disabledMode"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "presentationMode": { "alias": "presentationMode"; "required": false; }; "class": { "alias": "class"; "required": false; }; "style": { "alias": "style"; "required": false; }; }, { "imageError": "imageError"; }, never, ["*"], true, never>;
|
|
5329
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaterialAvatarComponent, "pdx-material-avatar", never, { "imageSrc": { "alias": "imageSrc"; "required": false; }; "imageAlt": { "alias": "imageAlt"; "required": false; }; "initials": { "alias": "initials"; "required": false; }; "name": { "alias": "name"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "defaultIcon": { "alias": "defaultIcon"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "size": { "alias": "size"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; "border": { "alias": "border"; "required": false; }; "sizePx": { "alias": "sizePx"; "required": false; }; "sizeCss": { "alias": "sizeCss"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "status": { "alias": "status"; "required": false; }; "statusLabel": { "alias": "statusLabel"; "required": false; }; "badge": { "alias": "badge"; "required": false; }; "badgeLabel": { "alias": "badgeLabel"; "required": false; }; "emphasisLabel": { "alias": "emphasisLabel"; "required": false; }; "emphasis": { "alias": "emphasis"; "required": false; }; "emphasisColor": { "alias": "emphasisColor"; "required": false; }; "initialsMaxLength": { "alias": "initialsMaxLength"; "required": false; }; "groupItems": { "alias": "groupItems"; "required": false; }; "groupMaxVisible": { "alias": "groupMaxVisible"; "required": false; }; "groupOverlap": { "alias": "groupOverlap"; "required": false; }; "groupOverflowLabel": { "alias": "groupOverflowLabel"; "required": false; }; "groupLabel": { "alias": "groupLabel"; "required": false; }; "readonlyMode": { "alias": "readonlyMode"; "required": false; }; "disabledMode": { "alias": "disabledMode"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "presentationMode": { "alias": "presentationMode"; "required": false; }; "class": { "alias": "class"; "required": false; }; "style": { "alias": "style"; "required": false; }; }, { "imageError": "imageError"; }, never, ["*"], true, never>;
|
|
4787
5330
|
}
|
|
4788
5331
|
|
|
4789
|
-
declare class MaterialRadioGroupComponent extends SimpleBaseSelectComponent {
|
|
5332
|
+
declare class MaterialRadioGroupComponent extends SimpleBaseSelectComponent implements DoCheck {
|
|
4790
5333
|
readonlyMode: boolean;
|
|
4791
5334
|
disabledMode: boolean;
|
|
4792
5335
|
visible: boolean;
|
|
4793
5336
|
presentationMode: boolean;
|
|
5337
|
+
private disabledModeAppliedToControl;
|
|
5338
|
+
ngDoCheck(): void;
|
|
5339
|
+
radioInteractionDisabled(): boolean;
|
|
5340
|
+
radioAriaDisabled(): 'true' | null;
|
|
5341
|
+
radioAriaReadonly(): 'true' | null;
|
|
5342
|
+
readonlyEffective(): boolean;
|
|
5343
|
+
radioOptionDisabled(option: SelectOption<unknown>): boolean;
|
|
5344
|
+
radioOptionAriaDisabled(option: SelectOption<unknown>): 'true' | null;
|
|
5345
|
+
onRadioButtonClick(event: MouseEvent): void;
|
|
5346
|
+
onRadioButtonKeydown(event: KeyboardEvent): void;
|
|
5347
|
+
selectOption(option: SelectOption<unknown>): void;
|
|
5348
|
+
radioLabelId(): string;
|
|
5349
|
+
radioHintId(): string;
|
|
5350
|
+
radioErrorId(): string;
|
|
5351
|
+
radioLabelledBy(): string | null;
|
|
5352
|
+
radioDescribedBy(): string | null;
|
|
5353
|
+
isRequiredRadio(): boolean;
|
|
5354
|
+
private syncDisabledModeControlState;
|
|
4794
5355
|
setSelectMetadata(metadata: SimpleSelectMetadata<unknown>): void;
|
|
4795
5356
|
protected getSpecificCssClasses(): string[];
|
|
4796
5357
|
private optionsFromLegacy;
|
|
@@ -4799,11 +5360,20 @@ declare class MaterialRadioGroupComponent extends SimpleBaseSelectComponent {
|
|
|
4799
5360
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaterialRadioGroupComponent, "pdx-material-radio-group", 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>;
|
|
4800
5361
|
}
|
|
4801
5362
|
|
|
4802
|
-
declare class MaterialCheckboxGroupComponent extends SimpleBaseSelectComponent {
|
|
5363
|
+
declare class MaterialCheckboxGroupComponent extends SimpleBaseSelectComponent implements DoCheck {
|
|
4803
5364
|
readonlyMode: boolean;
|
|
4804
5365
|
disabledMode: boolean;
|
|
4805
5366
|
visible: boolean;
|
|
4806
5367
|
presentationMode: boolean;
|
|
5368
|
+
private disabledModeAppliedToControl;
|
|
5369
|
+
ngDoCheck(): void;
|
|
5370
|
+
checkboxInteractionDisabled(): boolean;
|
|
5371
|
+
checkboxAriaDisabled(): 'true' | null;
|
|
5372
|
+
checkboxAriaReadonly(): 'true' | null;
|
|
5373
|
+
readonlyEffective(): boolean;
|
|
5374
|
+
onCheckboxControlClick(event: MouseEvent, stopShellPropagation?: boolean): void;
|
|
5375
|
+
onCheckboxControlKeydown(event: KeyboardEvent): void;
|
|
5376
|
+
private syncDisabledModeControlState;
|
|
4807
5377
|
setSelectMetadata(metadata: SimpleSelectMetadata<unknown>): void;
|
|
4808
5378
|
/** Disables options when maxSelections reached */
|
|
4809
5379
|
isOptionDisabled(option: SelectOption<unknown>): boolean;
|
|
@@ -4820,7 +5390,7 @@ declare class MaterialCheckboxGroupComponent extends SimpleBaseSelectComponent {
|
|
|
4820
5390
|
booleanErrorId(): string;
|
|
4821
5391
|
groupHintId(): string;
|
|
4822
5392
|
groupErrorId(): string;
|
|
4823
|
-
booleanAriaLabel(): string
|
|
5393
|
+
booleanAriaLabel(): string;
|
|
4824
5394
|
booleanLabelledBy(): string | null;
|
|
4825
5395
|
booleanDescribedBy(): string | null;
|
|
4826
5396
|
groupDescribedBy(): string | null;
|
|
@@ -4835,6 +5405,8 @@ declare class MaterialCheckboxGroupComponent extends SimpleBaseSelectComponent {
|
|
|
4835
5405
|
onBooleanCheckboxChange(): void;
|
|
4836
5406
|
onMultipleOptionContentClick(option: SelectOption<unknown>, event: MouseEvent): void;
|
|
4837
5407
|
onSelectAllContentClick(event: MouseEvent): void;
|
|
5408
|
+
selectOption(option: SelectOption<unknown>): void;
|
|
5409
|
+
toggleSelectAll(): void;
|
|
4838
5410
|
private shouldToggleFromBooleanContent;
|
|
4839
5411
|
private shouldToggleFromMultipleContent;
|
|
4840
5412
|
private toggleBooleanCheckbox;
|
|
@@ -4842,10 +5414,10 @@ declare class MaterialCheckboxGroupComponent extends SimpleBaseSelectComponent {
|
|
|
4842
5414
|
private humanizeName;
|
|
4843
5415
|
optionLabelId(option: SelectOption<unknown>): string;
|
|
4844
5416
|
optionDescriptionId(option: SelectOption<unknown>): string | null;
|
|
4845
|
-
optionAriaLabel(option: SelectOption<unknown>): string
|
|
5417
|
+
optionAriaLabel(option: SelectOption<unknown>): string;
|
|
4846
5418
|
optionSupportingText(option: SelectOption<unknown>): string | null;
|
|
4847
5419
|
selectAllLabelId(): string;
|
|
4848
|
-
selectAllAriaLabel(): string
|
|
5420
|
+
selectAllAriaLabel(): string;
|
|
4849
5421
|
selectAllLabelText(): string;
|
|
4850
5422
|
private optionDomToken;
|
|
4851
5423
|
private optionsFromLegacy;
|
|
@@ -4854,11 +5426,30 @@ declare class MaterialCheckboxGroupComponent extends SimpleBaseSelectComponent {
|
|
|
4854
5426
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaterialCheckboxGroupComponent, "pdx-material-checkbox-group", 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>;
|
|
4855
5427
|
}
|
|
4856
5428
|
|
|
4857
|
-
declare class MaterialSelectionListComponent extends SimpleBaseSelectComponent {
|
|
5429
|
+
declare class MaterialSelectionListComponent extends SimpleBaseSelectComponent implements DoCheck {
|
|
4858
5430
|
readonlyMode: boolean;
|
|
4859
5431
|
disabledMode: boolean;
|
|
4860
5432
|
visible: boolean;
|
|
4861
5433
|
presentationMode: boolean;
|
|
5434
|
+
private disabledModeAppliedToControl;
|
|
5435
|
+
ngDoCheck(): void;
|
|
5436
|
+
selectionListInteractionDisabled(): boolean;
|
|
5437
|
+
selectionListAriaDisabled(): 'true' | null;
|
|
5438
|
+
selectionListAriaReadonly(): 'true' | null;
|
|
5439
|
+
selectionOptionDisabled(option: SelectOption<unknown>): boolean;
|
|
5440
|
+
selectionOptionAriaDisabled(option: SelectOption<unknown>): 'true' | null;
|
|
5441
|
+
selectionListLabelId(): string;
|
|
5442
|
+
selectionListHintId(): string;
|
|
5443
|
+
selectionListErrorId(): string;
|
|
5444
|
+
selectionListCounterId(): string;
|
|
5445
|
+
selectionListLabelledBy(): string | null;
|
|
5446
|
+
selectionListDescribedBy(): string | null;
|
|
5447
|
+
isRequiredSelectionList(): boolean;
|
|
5448
|
+
onSelectionOptionClick(event: MouseEvent): void;
|
|
5449
|
+
onSelectionOptionKeydown(event: KeyboardEvent): void;
|
|
5450
|
+
selectOption(option: SelectOption<unknown>): void;
|
|
5451
|
+
toggleSelectAll(): void;
|
|
5452
|
+
private syncDisabledModeControlState;
|
|
4862
5453
|
private asRecord;
|
|
4863
5454
|
private mapRawOption;
|
|
4864
5455
|
setSelectMetadata(metadata: SimpleSelectMetadata<unknown>): void;
|
|
@@ -5161,6 +5752,7 @@ declare class MaterialColorPickerComponent extends SimpleBaseInputComponent {
|
|
|
5161
5752
|
/** Handles color selection from the native input. */
|
|
5162
5753
|
onNativeColorChange(event: Event): void;
|
|
5163
5754
|
protected getSpecificCssClasses(): string[];
|
|
5755
|
+
effectiveFloatLabelBehavior(): 'always';
|
|
5164
5756
|
errorStateMatcher(): _angular_material_error_options_d_CGdTZUYk.E;
|
|
5165
5757
|
isReadonlyEffective(): boolean;
|
|
5166
5758
|
previewColor(): string;
|
|
@@ -5196,6 +5788,7 @@ declare class MaterialRatingComponent extends SimpleBaseInputComponent implement
|
|
|
5196
5788
|
svgIconOutline?: string;
|
|
5197
5789
|
outlineIcon?: string;
|
|
5198
5790
|
disabled: boolean;
|
|
5791
|
+
disabledMode: boolean;
|
|
5199
5792
|
readonlyMode: boolean;
|
|
5200
5793
|
presentationMode: boolean;
|
|
5201
5794
|
tabindex: number;
|
|
@@ -5225,15 +5818,20 @@ declare class MaterialRatingComponent extends SimpleBaseInputComponent implement
|
|
|
5225
5818
|
private getVisualValue;
|
|
5226
5819
|
private getActiveIndexAndHalf;
|
|
5227
5820
|
private applyValue;
|
|
5821
|
+
ratingValueText(): string;
|
|
5822
|
+
effectiveTabIndex(): number;
|
|
5823
|
+
disabledEffective(): boolean;
|
|
5228
5824
|
readonlyEffective(): boolean;
|
|
5825
|
+
ratingAriaLabel(): string;
|
|
5229
5826
|
errorStateMatcher(): _angular_material_error_options_d_CGdTZUYk.E;
|
|
5230
5827
|
setInputMetadata(meta: unknown): void;
|
|
5231
5828
|
private parseSize;
|
|
5232
5829
|
private parseSelectionMode;
|
|
5830
|
+
private interactionBlocked;
|
|
5233
5831
|
private asRecord;
|
|
5234
5832
|
private metadataAsField;
|
|
5235
5833
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaterialRatingComponent, never>;
|
|
5236
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaterialRatingComponent, "pdx-material-rating", never, { "itemsCount": { "alias": "itemsCount"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "precision": { "alias": "precision"; "required": false; }; "allowHalf": { "alias": "allowHalf"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "svgIconOutline": { "alias": "svgIconOutline"; "required": false; }; "outlineIcon": { "alias": "outlineIcon"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonlyMode": { "alias": "readonlyMode"; "required": false; }; "presentationMode": { "alias": "presentationMode"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "size": { "alias": "size"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ratingColor": { "alias": "ratingColor"; "required": false; }; "outlineColor": { "alias": "outlineColor"; "required": false; }; }, {}, ["itemTemplate"], never, true, never>;
|
|
5834
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaterialRatingComponent, "pdx-material-rating", never, { "itemsCount": { "alias": "itemsCount"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "precision": { "alias": "precision"; "required": false; }; "allowHalf": { "alias": "allowHalf"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "svgIconOutline": { "alias": "svgIconOutline"; "required": false; }; "outlineIcon": { "alias": "outlineIcon"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "disabledMode": { "alias": "disabledMode"; "required": false; }; "readonlyMode": { "alias": "readonlyMode"; "required": false; }; "presentationMode": { "alias": "presentationMode"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "size": { "alias": "size"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ratingColor": { "alias": "ratingColor"; "required": false; }; "outlineColor": { "alias": "outlineColor"; "required": false; }; }, {}, ["itemTemplate"], never, true, never>;
|
|
5237
5835
|
}
|
|
5238
5836
|
|
|
5239
5837
|
type PickerView = 'gradient' | 'palette';
|
|
@@ -5352,8 +5950,10 @@ declare class PdxColorPickerComponent extends SimpleBaseInputComponent implement
|
|
|
5352
5950
|
readonlyEffective(): boolean;
|
|
5353
5951
|
errorStateMatcher(): _angular_material_error_options_d_CGdTZUYk.E;
|
|
5354
5952
|
protected getSpecificCssClasses(): string[];
|
|
5953
|
+
effectiveFloatLabelBehavior(): 'always';
|
|
5355
5954
|
setInputMetadata(meta: ComponentMetadata | null): void;
|
|
5356
5955
|
private currentMetadataRecord;
|
|
5956
|
+
private asRecord;
|
|
5357
5957
|
private toFormat;
|
|
5358
5958
|
private toHex;
|
|
5359
5959
|
private toRgb;
|
|
@@ -5376,20 +5976,54 @@ declare class PdxColorPickerComponent extends SimpleBaseInputComponent implement
|
|
|
5376
5976
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PdxColorPickerComponent, "pdx-color-picker", never, { "actionsLayout": { "alias": "actionsLayout"; "required": false; }; "activeView": { "alias": "activeView"; "required": false; }; "adaptiveMode": { "alias": "adaptiveMode"; "required": false; }; "adaptiveTitle": { "alias": "adaptiveTitle"; "required": false; }; "adaptiveSubtitle": { "alias": "adaptiveSubtitle"; "required": false; }; "clearButton": { "alias": "clearButton"; "required": false; }; "disabledMode": { "alias": "disabledMode"; "required": false; }; "readonlyMode": { "alias": "readonlyMode"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "presentationMode": { "alias": "presentationMode"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; "format": { "alias": "format"; "required": false; }; "gradientSettings": { "alias": "gradientSettings"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "paletteSettings": { "alias": "paletteSettings"; "required": false; }; "popupSettings": { "alias": "popupSettings"; "required": false; }; "preview": { "alias": "preview"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "size": { "alias": "size"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "views": { "alias": "views"; "required": false; }; "maxRecent": { "alias": "maxRecent"; "required": false; }; "showRecent": { "alias": "showRecent"; "required": false; }; }, { "valueChange": "valueChange"; "open": "open"; "close": "close"; "cancel": "cancel"; "activeViewChange": "activeViewChange"; "activeColorClick": "activeColorClick"; "focusEvent": "focusEvent"; "blurEvent": "blurEvent"; }, never, never, true, never>;
|
|
5377
5977
|
}
|
|
5378
5978
|
|
|
5379
|
-
|
|
5979
|
+
interface SliderDistributionBar {
|
|
5980
|
+
id: string;
|
|
5981
|
+
ratio: number;
|
|
5982
|
+
selected: boolean;
|
|
5983
|
+
background?: string;
|
|
5984
|
+
color?: string;
|
|
5985
|
+
label?: string;
|
|
5986
|
+
}
|
|
5987
|
+
interface SliderSemanticBandView {
|
|
5988
|
+
id: string;
|
|
5989
|
+
startPercent: number;
|
|
5990
|
+
widthPercent: number;
|
|
5991
|
+
tone: RangeSliderSemanticBand['tone'];
|
|
5992
|
+
color?: string;
|
|
5993
|
+
label?: string;
|
|
5994
|
+
}
|
|
5995
|
+
declare class PdxMaterialRangeSliderComponent extends SimpleBaseInputComponent implements OnInit, AfterViewChecked {
|
|
5380
5996
|
readonlyMode: boolean;
|
|
5381
5997
|
disabledMode: boolean;
|
|
5382
5998
|
visible: boolean;
|
|
5383
5999
|
presentationMode: boolean;
|
|
5384
6000
|
metadata: _angular_core.WritableSignal<MaterialRangeSliderMetadata | null>;
|
|
6001
|
+
private activeRangeThumb;
|
|
5385
6002
|
readonly rangeGroup: FormGroup<{
|
|
5386
6003
|
start: FormControl<number | null>;
|
|
5387
6004
|
end: FormControl<number | null>;
|
|
5388
6005
|
}>;
|
|
5389
6006
|
readonly isRangeMode: _angular_core.Signal<boolean>;
|
|
5390
6007
|
readonly displayWithFn: _angular_core.Signal<(value: number) => string>;
|
|
6008
|
+
readonly sliderStep: _angular_core.Signal<number>;
|
|
6009
|
+
readonly valueLabelEnabled: _angular_core.Signal<boolean>;
|
|
6010
|
+
readonly showTickMarks: _angular_core.Signal<boolean>;
|
|
6011
|
+
readonly trackMode: _angular_core.Signal<_praxisui_core.RangeSliderTrackMode>;
|
|
6012
|
+
readonly sliderSize: _angular_core.Signal<"small" | "large" | "medium">;
|
|
6013
|
+
readonly markLabels: _angular_core.Signal<RangeSliderMark[]>;
|
|
6014
|
+
readonly semanticBandViews: _angular_core.Signal<SliderSemanticBandView[]>;
|
|
6015
|
+
distributionBars(): SliderDistributionBar[];
|
|
6016
|
+
disabledEffective(): boolean;
|
|
6017
|
+
readonlyEffective(): boolean;
|
|
6018
|
+
sliderInteractionDisabled(): boolean;
|
|
6019
|
+
sliderAriaDisabled(): 'true' | null;
|
|
6020
|
+
sliderAriaReadonly(): 'true' | null;
|
|
6021
|
+
rangeAriaInvalidAttribute(): 'true' | null;
|
|
6022
|
+
rangeThumbAriaLabel(thumb: 'start' | 'end'): string;
|
|
6023
|
+
rangeThumbLabelId(thumb: 'start' | 'end'): string;
|
|
5391
6024
|
readonly errorMessage: _angular_core.Signal<string>;
|
|
5392
6025
|
ngOnInit(): void;
|
|
6026
|
+
ngAfterViewChecked(): void;
|
|
5393
6027
|
/**
|
|
5394
6028
|
* Overrides writeValue to handle both single and range modes.
|
|
5395
6029
|
*/
|
|
@@ -5403,8 +6037,34 @@ declare class PdxMaterialRangeSliderComponent extends SimpleBaseInputComponent i
|
|
|
5403
6037
|
setSliderMetadata(metadata: MaterialRangeSliderMetadata): void;
|
|
5404
6038
|
protected setMetadata(metadata: MaterialRangeSliderMetadata): void;
|
|
5405
6039
|
protected getSpecificCssClasses(): string[];
|
|
6040
|
+
markPosition(value: number): number;
|
|
6041
|
+
formatSliderValue(value: unknown): string;
|
|
6042
|
+
onRangePointerDown(event: PointerEvent): void;
|
|
6043
|
+
private isPointerInteractionBlocked;
|
|
6044
|
+
private syncNativeThumbAria;
|
|
6045
|
+
private applyNativeThumbAria;
|
|
6046
|
+
private setOrRemoveAttribute;
|
|
6047
|
+
private closestRangeThumb;
|
|
6048
|
+
private updateActiveRangeThumbFromPointer;
|
|
6049
|
+
private clientXToSliderValue;
|
|
6050
|
+
private valueToTrackClientX;
|
|
6051
|
+
private snapSliderValue;
|
|
6052
|
+
private trackElement;
|
|
5406
6053
|
private syncRangeGroupFromControlValue;
|
|
5407
6054
|
private isRangeSliderValue;
|
|
6055
|
+
private resolveMarks;
|
|
6056
|
+
private parseJsonArray;
|
|
6057
|
+
private parseJsonObject;
|
|
6058
|
+
private normalizeTone;
|
|
6059
|
+
private resolveSemanticBands;
|
|
6060
|
+
private resolveDistributionBars;
|
|
6061
|
+
private normalizeDistributionColorMode;
|
|
6062
|
+
private isDistributionBarSelected;
|
|
6063
|
+
private resolveDistributionBarBackground;
|
|
6064
|
+
private stringConfig;
|
|
6065
|
+
private scaleValue;
|
|
6066
|
+
private formatStorageValue;
|
|
6067
|
+
private formatCurrencyValue;
|
|
5408
6068
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PdxMaterialRangeSliderComponent, never>;
|
|
5409
6069
|
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>;
|
|
5410
6070
|
}
|
|
@@ -5420,6 +6080,9 @@ interface TransferListMetadata extends SimpleSelectMetadata<unknown> {
|
|
|
5420
6080
|
rightLabel?: string;
|
|
5421
6081
|
leftPlaceholder?: string;
|
|
5422
6082
|
rightPlaceholder?: string;
|
|
6083
|
+
leftEmptyText?: string;
|
|
6084
|
+
rightEmptyText?: string;
|
|
6085
|
+
noResultsText?: string;
|
|
5423
6086
|
}
|
|
5424
6087
|
declare class MaterialTransferListComponent extends SimpleBaseSelectComponent {
|
|
5425
6088
|
readonlyMode: boolean;
|
|
@@ -5430,6 +6093,9 @@ declare class MaterialTransferListComponent extends SimpleBaseSelectComponent {
|
|
|
5430
6093
|
rightLabel: string;
|
|
5431
6094
|
leftPlaceholder: string;
|
|
5432
6095
|
rightPlaceholder: string;
|
|
6096
|
+
leftEmptyText: string;
|
|
6097
|
+
rightEmptyText: string;
|
|
6098
|
+
noResultsText: string;
|
|
5433
6099
|
readonly leftOptions: _angular_core.WritableSignal<SelectOption<unknown>[]>;
|
|
5434
6100
|
readonly rightOptions: _angular_core.WritableSignal<SelectOption<unknown>[]>;
|
|
5435
6101
|
readonly leftFilter: _angular_core.WritableSignal<string>;
|
|
@@ -5443,6 +6109,12 @@ declare class MaterialTransferListComponent extends SimpleBaseSelectComponent {
|
|
|
5443
6109
|
moveAllToRightAriaLabel(): string;
|
|
5444
6110
|
moveSelectedToLeftAriaLabel(): string;
|
|
5445
6111
|
moveAllToLeftAriaLabel(): string;
|
|
6112
|
+
leftListAriaLabel(): string;
|
|
6113
|
+
rightListAriaLabel(): string;
|
|
6114
|
+
leftEmptyMessage(): string;
|
|
6115
|
+
rightEmptyMessage(): string;
|
|
6116
|
+
isMaxSelectionReached(): boolean;
|
|
6117
|
+
isInteractionDisabled(): boolean;
|
|
5446
6118
|
ngOnInit(): void;
|
|
5447
6119
|
private updateListsFromValue;
|
|
5448
6120
|
getSelectedOptions(list: MatSelectionList): SelectOption[];
|
|
@@ -5484,6 +6156,8 @@ declare class PdxYearInputComponent extends SimpleBaseInputComponent {
|
|
|
5484
6156
|
/** Metadata for TextInputComponent */
|
|
5485
6157
|
declare const PDX_TEXT_INPUT_COMPONENT_METADATA: ComponentDocMeta;
|
|
5486
6158
|
|
|
6159
|
+
declare const PDX_EDITABLE_COLLECTION_COMPONENT_METADATA: ComponentDocMeta;
|
|
6160
|
+
|
|
5487
6161
|
/** Metadata for NumberInputComponent */
|
|
5488
6162
|
declare const PDX_NUMBER_INPUT_COMPONENT_METADATA: ComponentDocMeta;
|
|
5489
6163
|
|
|
@@ -5502,6 +6176,7 @@ declare const PDX_INLINE_SEARCHABLE_SELECT_COMPONENT_METADATA: ComponentDocMeta;
|
|
|
5502
6176
|
|
|
5503
6177
|
declare const PDX_INLINE_ASYNC_SELECT_COMPONENT_METADATA: ComponentDocMeta;
|
|
5504
6178
|
|
|
6179
|
+
declare const PDX_ENTITY_LOOKUP_COMPONENT_METADATA: ComponentDocMeta;
|
|
5505
6180
|
declare const PDX_INLINE_ENTITY_LOOKUP_COMPONENT_METADATA: ComponentDocMeta;
|
|
5506
6181
|
|
|
5507
6182
|
declare const PDX_INLINE_MULTI_SELECT_COMPONENT_METADATA: ComponentDocMeta;
|
|
@@ -5632,367 +6307,6 @@ declare const PDX_YEAR_INPUT_COMPONENT_METADATA: ComponentDocMeta;
|
|
|
5632
6307
|
|
|
5633
6308
|
declare const PDX_FIELD_SHELL_COMPONENT_METADATA: ComponentDocMeta;
|
|
5634
6309
|
|
|
5635
|
-
/**
|
|
5636
|
-
* Context object passed to action handlers containing all relevant data
|
|
5637
|
-
* about the component state and form context when an action is executed.
|
|
5638
|
-
*
|
|
5639
|
-
* This interface provides maximum flexibility for action handlers to access
|
|
5640
|
-
* both component-specific data and broader form/application context.
|
|
5641
|
-
*
|
|
5642
|
-
* @example Basic usage in action handler
|
|
5643
|
-
* ```typescript
|
|
5644
|
-
* this.registerAction('customAction', async (context: ActionContext) => {
|
|
5645
|
-
* console.log('Field:', context.fieldName);
|
|
5646
|
-
* console.log('Value:', context.fieldValue);
|
|
5647
|
-
* console.log('Metadata:', context.metadata);
|
|
5648
|
-
* return { success: true, data: 'Action completed' };
|
|
5649
|
-
* });
|
|
5650
|
-
* ```
|
|
5651
|
-
*
|
|
5652
|
-
* @example Using actionParam for parameterized actions
|
|
5653
|
-
* ```typescript
|
|
5654
|
-
* // Metadata configuration: action: "navigate:/dashboard"
|
|
5655
|
-
* this.registerAction('navigate', async (context: ActionContext) => {
|
|
5656
|
-
* const url = context.actionParam; // "/dashboard"
|
|
5657
|
-
* await this.router.navigate([url]);
|
|
5658
|
-
* return { success: true };
|
|
5659
|
-
* });
|
|
5660
|
-
* ```
|
|
5661
|
-
*/
|
|
5662
|
-
interface ActionContext {
|
|
5663
|
-
/**
|
|
5664
|
-
* Name/identifier of the field that triggered the action.
|
|
5665
|
-
*
|
|
5666
|
-
* Useful for:
|
|
5667
|
-
* - Logging and debugging
|
|
5668
|
-
* - Field-specific business logic
|
|
5669
|
-
* - Form validation context
|
|
5670
|
-
*
|
|
5671
|
-
* @example "email", "firstName", "submitButton"
|
|
5672
|
-
*/
|
|
5673
|
-
fieldName?: string;
|
|
5674
|
-
/**
|
|
5675
|
-
* Current value of the field that triggered the action.
|
|
5676
|
-
*
|
|
5677
|
-
* For different field types:
|
|
5678
|
-
* - Input fields: string value
|
|
5679
|
-
* - Checkboxes: boolean
|
|
5680
|
-
* - Select: selected option value
|
|
5681
|
-
* - Buttons: typically undefined
|
|
5682
|
-
*
|
|
5683
|
-
* @example "john@example.com", true, ["option1", "option2"]
|
|
5684
|
-
*/
|
|
5685
|
-
fieldValue?: any;
|
|
5686
|
-
/**
|
|
5687
|
-
* Complete metadata configuration object for the field.
|
|
5688
|
-
*
|
|
5689
|
-
* Contains all field configuration including:
|
|
5690
|
-
* - Label, placeholder, validation rules
|
|
5691
|
-
* - UI configuration (appearance, icons, etc.)
|
|
5692
|
-
* - Custom properties specific to the field
|
|
5693
|
-
*
|
|
5694
|
-
* @example MaterialButtonMetadata, MaterialInputMetadata, etc.
|
|
5695
|
-
*/
|
|
5696
|
-
metadata?: any;
|
|
5697
|
-
/**
|
|
5698
|
-
* Complete form data object containing all field values.
|
|
5699
|
-
*
|
|
5700
|
-
* Useful for:
|
|
5701
|
-
* - Cross-field validation
|
|
5702
|
-
* - Conditional logic based on other fields
|
|
5703
|
-
* - Form-wide operations
|
|
5704
|
-
*
|
|
5705
|
-
* @example { email: "user@example.com", name: "John", age: 30 }
|
|
5706
|
-
*/
|
|
5707
|
-
formData?: any;
|
|
5708
|
-
/**
|
|
5709
|
-
* Reference to the Angular component instance that triggered the action.
|
|
5710
|
-
*
|
|
5711
|
-
* Provides access to:
|
|
5712
|
-
* - Component methods and properties
|
|
5713
|
-
* - ElementRef for DOM manipulation
|
|
5714
|
-
* - Angular lifecycle and services
|
|
5715
|
-
*
|
|
5716
|
-
* @example MaterialButtonComponent, MaterialInputComponent instances
|
|
5717
|
-
*/
|
|
5718
|
-
componentInstance?: any;
|
|
5719
|
-
/**
|
|
5720
|
-
* Parameter extracted from action reference after colon separator.
|
|
5721
|
-
*
|
|
5722
|
-
* When action is defined as "actionName:parameter", this contains the parameter part.
|
|
5723
|
-
* Enables parameterized actions without separate configuration.
|
|
5724
|
-
*
|
|
5725
|
-
* @example
|
|
5726
|
-
* - Action: "navigate:/dashboard" → actionParam: "/dashboard"
|
|
5727
|
-
* - Action: "showAlert:Data saved successfully" → actionParam: "Data saved successfully"
|
|
5728
|
-
* - Action: "download:https://example.com/file.pdf" → actionParam: "https://example.com/file.pdf"
|
|
5729
|
-
*/
|
|
5730
|
-
actionParam?: string;
|
|
5731
|
-
}
|
|
5732
|
-
/**
|
|
5733
|
-
* Result object returned by action handlers indicating success/failure
|
|
5734
|
-
* and any associated data or error information.
|
|
5735
|
-
*
|
|
5736
|
-
* Provides a standardized way for action handlers to communicate results
|
|
5737
|
-
* back to the calling component for appropriate user feedback.
|
|
5738
|
-
*
|
|
5739
|
-
* @example Successful action result
|
|
5740
|
-
* ```typescript
|
|
5741
|
-
* return {
|
|
5742
|
-
* success: true,
|
|
5743
|
-
* data: 'Form submitted successfully',
|
|
5744
|
-
* redirect: '/dashboard'
|
|
5745
|
-
* };
|
|
5746
|
-
* ```
|
|
5747
|
-
*
|
|
5748
|
-
* @example Failed action result
|
|
5749
|
-
* ```typescript
|
|
5750
|
-
* return {
|
|
5751
|
-
* success: false,
|
|
5752
|
-
* error: 'Validation failed: Email is required'
|
|
5753
|
-
* };
|
|
5754
|
-
* ```
|
|
5755
|
-
*/
|
|
5756
|
-
interface ActionResult {
|
|
5757
|
-
/**
|
|
5758
|
-
* Indicates whether the action completed successfully.
|
|
5759
|
-
*
|
|
5760
|
-
* - true: Action completed without errors
|
|
5761
|
-
* - false: Action failed or encountered an error
|
|
5762
|
-
*
|
|
5763
|
-
* Used by components to determine appropriate user feedback
|
|
5764
|
-
* (success message, error display, etc.)
|
|
5765
|
-
*/
|
|
5766
|
-
success: boolean;
|
|
5767
|
-
/**
|
|
5768
|
-
* Optional data returned by successful actions.
|
|
5769
|
-
*
|
|
5770
|
-
* Can contain:
|
|
5771
|
-
* - Success messages for user display
|
|
5772
|
-
* - Result data from API calls
|
|
5773
|
-
* - State information for further processing
|
|
5774
|
-
* - Any serializable data relevant to the action
|
|
5775
|
-
*
|
|
5776
|
-
* @example "Form submitted", { userId: 123 }, ["item1", "item2"]
|
|
5777
|
-
*/
|
|
5778
|
-
data?: any;
|
|
5779
|
-
/**
|
|
5780
|
-
* Error message when action fails (success = false).
|
|
5781
|
-
*
|
|
5782
|
-
* Should contain:
|
|
5783
|
-
* - User-friendly error descriptions
|
|
5784
|
-
* - Validation error messages
|
|
5785
|
-
* - Technical error details (for logging)
|
|
5786
|
-
*
|
|
5787
|
-
* Displayed to users or logged for debugging purposes.
|
|
5788
|
-
*
|
|
5789
|
-
* @example "Network error occurred", "Invalid email format", "Access denied"
|
|
5790
|
-
*/
|
|
5791
|
-
error?: string;
|
|
5792
|
-
/**
|
|
5793
|
-
* Optional URL for automatic navigation after action completion.
|
|
5794
|
-
*
|
|
5795
|
-
* When provided, the calling component may automatically redirect
|
|
5796
|
-
* the user to this URL after the action succeeds.
|
|
5797
|
-
*
|
|
5798
|
-
* Useful for:
|
|
5799
|
-
* - Post-submit redirects
|
|
5800
|
-
* - Workflow navigation
|
|
5801
|
-
* - Success page redirection
|
|
5802
|
-
*
|
|
5803
|
-
* @example "/dashboard", "/success", "https://external-site.com"
|
|
5804
|
-
*/
|
|
5805
|
-
redirect?: string;
|
|
5806
|
-
}
|
|
5807
|
-
/**
|
|
5808
|
-
* Function signature for action handlers that can be registered with the ActionResolverService.
|
|
5809
|
-
*
|
|
5810
|
-
* Action handlers receive an ActionContext with all relevant component and form data,
|
|
5811
|
-
* and must return an ActionResult indicating success/failure.
|
|
5812
|
-
*
|
|
5813
|
-
* Handlers can be either synchronous or asynchronous to support both immediate
|
|
5814
|
-
* operations and API calls/complex processing.
|
|
5815
|
-
*
|
|
5816
|
-
* @example Synchronous action handler
|
|
5817
|
-
* ```typescript
|
|
5818
|
-
* const logHandler: ActionHandler = (context) => {
|
|
5819
|
-
* console.log('Field value:', context.fieldValue);
|
|
5820
|
-
* return { success: true, data: 'Logged successfully' };
|
|
5821
|
-
* };
|
|
5822
|
-
* ```
|
|
5823
|
-
*
|
|
5824
|
-
* @example Asynchronous action handler
|
|
5825
|
-
* ```typescript
|
|
5826
|
-
* const saveHandler: ActionHandler = async (context) => {
|
|
5827
|
-
* try {
|
|
5828
|
-
* await apiService.saveData(context.formData);
|
|
5829
|
-
* return { success: true, data: 'Data saved' };
|
|
5830
|
-
* } catch (error) {
|
|
5831
|
-
* return { success: false, error: 'Save failed' };
|
|
5832
|
-
* }
|
|
5833
|
-
* };
|
|
5834
|
-
* ```
|
|
5835
|
-
*
|
|
5836
|
-
* @param context - Complete action execution context
|
|
5837
|
-
* @returns Promise<ActionResult> or ActionResult indicating success/failure
|
|
5838
|
-
*/
|
|
5839
|
-
type ActionHandler = (context: ActionContext) => Promise<ActionResult> | ActionResult;
|
|
5840
|
-
declare class ActionResolverService {
|
|
5841
|
-
private readonly router;
|
|
5842
|
-
private readonly http;
|
|
5843
|
-
private readonly dialog;
|
|
5844
|
-
private readonly actionRegistry;
|
|
5845
|
-
private parseActionPayload;
|
|
5846
|
-
private getJsonValue;
|
|
5847
|
-
private resolveDialogPayload;
|
|
5848
|
-
private splitActionRef;
|
|
5849
|
-
constructor();
|
|
5850
|
-
/**
|
|
5851
|
-
* Registra ações relacionadas a diálogos (unificado PraxisDialog)
|
|
5852
|
-
*/
|
|
5853
|
-
private registerDialogActions;
|
|
5854
|
-
/**
|
|
5855
|
-
* Registra uma nova ação
|
|
5856
|
-
*/
|
|
5857
|
-
registerAction(actionName: string, handler: ActionHandler): void;
|
|
5858
|
-
/**
|
|
5859
|
-
* Remove uma ação registrada
|
|
5860
|
-
*/
|
|
5861
|
-
unregisterAction(actionName: string): void;
|
|
5862
|
-
/**
|
|
5863
|
-
* Executa uma ação por nome
|
|
5864
|
-
*/
|
|
5865
|
-
executeAction(actionRef: string, context?: ActionContext): Promise<ActionResult>;
|
|
5866
|
-
/**
|
|
5867
|
-
* Lista todas as ações registradas
|
|
5868
|
-
*/
|
|
5869
|
-
getRegisteredActions(): string[];
|
|
5870
|
-
/**
|
|
5871
|
-
* Verifica se uma ação existe
|
|
5872
|
-
*/
|
|
5873
|
-
hasAction(actionName: string): boolean;
|
|
5874
|
-
/**
|
|
5875
|
-
* Registra ações built-in (pré-definidas) do sistema ActionResolverService.
|
|
5876
|
-
*
|
|
5877
|
-
* Este método é chamado automaticamente no constructor e registra um conjunto
|
|
5878
|
-
* de ações comuns úteis para aplicações corporativas, eliminando a necessidade
|
|
5879
|
-
* de implementar essas funcionalidades básicas repetidamente.
|
|
5880
|
-
*
|
|
5881
|
-
* Todas as ações built-in seguem padrões corporativos de:
|
|
5882
|
-
* - ✅ Tratamento de erros robusto
|
|
5883
|
-
* - ✅ Logging consistente para auditoria
|
|
5884
|
-
* - ✅ Mensagens user-friendly
|
|
5885
|
-
* - ✅ Segurança (noopener, noreferrer)
|
|
5886
|
-
* - ✅ Compatibilidade cross-browser
|
|
5887
|
-
*
|
|
5888
|
-
* ## 📋 Ações Disponíveis
|
|
5889
|
-
*
|
|
5890
|
-
* ### 📝 Formulários
|
|
5891
|
-
* - **submitForm**: Submete o formulário pai do componente
|
|
5892
|
-
* - **resetForm**: Reseta todos os campos do formulário pai
|
|
5893
|
-
*
|
|
5894
|
-
* ### 🧭 Navegação
|
|
5895
|
-
* - **navigate**: Navegação interna via Angular Router ou externa via window.location
|
|
5896
|
-
* - **openUrl**: Abre URL em nova aba com segurança (noopener, noreferrer)
|
|
5897
|
-
*
|
|
5898
|
-
* ### 📥 Downloads e Dados
|
|
5899
|
-
* - **download**: Inicia download de arquivo via URL
|
|
5900
|
-
* - **copyToClipboard**: Copia texto para área de transferência
|
|
5901
|
-
*
|
|
5902
|
-
* ### 🔔 Interface e Feedback
|
|
5903
|
-
* - **showAlert**: Exibe alerta nativo do navegador
|
|
5904
|
-
* - **log**: Registra mensagem no console para debugging
|
|
5905
|
-
*
|
|
5906
|
-
* ## 🎯 Uso no Metadata
|
|
5907
|
-
*
|
|
5908
|
-
* ```typescript
|
|
5909
|
-
* // Ação simples
|
|
5910
|
-
* const submitButton: MaterialButtonMetadata = {
|
|
5911
|
-
* name: 'submit',
|
|
5912
|
-
* label: 'Enviar',
|
|
5913
|
-
* controlType: 'button',
|
|
5914
|
-
* action: 'submitForm' // ← Ação built-in
|
|
5915
|
-
* };
|
|
5916
|
-
*
|
|
5917
|
-
* // Ação com parâmetro
|
|
5918
|
-
* const linkButton: MaterialButtonMetadata = {
|
|
5919
|
-
* name: 'dashboard',
|
|
5920
|
-
* label: 'Dashboard',
|
|
5921
|
-
* controlType: 'button',
|
|
5922
|
-
* action: 'navigate:/dashboard' // ← Parâmetro após ':'
|
|
5923
|
-
* };
|
|
5924
|
-
*
|
|
5925
|
-
* // Ação de download
|
|
5926
|
-
* const downloadButton: MaterialButtonMetadata = {
|
|
5927
|
-
* name: 'download',
|
|
5928
|
-
* label: 'Download PDF',
|
|
5929
|
-
* controlType: 'button',
|
|
5930
|
-
* action: 'download:https://example.com/report.pdf'
|
|
5931
|
-
* };
|
|
5932
|
-
* ```
|
|
5933
|
-
*
|
|
5934
|
-
* ## ⚠️ Notas Importantes
|
|
5935
|
-
*
|
|
5936
|
-
* - Ações são **case-sensitive**: use exatamente como documentado
|
|
5937
|
-
* - Parâmetros são opcionais: ações funcionam com/sem parâmetros
|
|
5938
|
-
* - Tratamento de erro: todas as ações retornam ActionResult padronizado
|
|
5939
|
-
* - Logging: ações importantes são logadas automaticamente para auditoria
|
|
5940
|
-
* - Segurança: URLs externas usam 'noopener,noreferrer' por padrão
|
|
5941
|
-
*
|
|
5942
|
-
* @private
|
|
5943
|
-
* @see ActionContext - Interface de contexto passada para todas as ações
|
|
5944
|
-
* @see ActionResult - Interface de resultado retornada por todas as ações
|
|
5945
|
-
* @see ActionHandler - Tipo de função para implementar ações customizadas
|
|
5946
|
-
*/
|
|
5947
|
-
private registerBuiltInActions;
|
|
5948
|
-
/**
|
|
5949
|
-
* Encontra o elemento <form> pai de um componente Angular.
|
|
5950
|
-
*
|
|
5951
|
-
* Percorre a árvore DOM a partir do elemento do componente até encontrar
|
|
5952
|
-
* um elemento <form> pai ou chegar ao document.body.
|
|
5953
|
-
*
|
|
5954
|
-
* Usado pelas ações submitForm e resetForm para localizar o formulário
|
|
5955
|
-
* que contém o componente que disparou a ação.
|
|
5956
|
-
*
|
|
5957
|
-
* @param componentInstance - Instância do componente Angular
|
|
5958
|
-
* @returns HTMLFormElement se encontrado, null caso contrário
|
|
5959
|
-
*
|
|
5960
|
-
* @example Estrutura HTML típica
|
|
5961
|
-
* ```html
|
|
5962
|
-
* <form>
|
|
5963
|
-
* <mat-form-field>
|
|
5964
|
-
* <input matInput>
|
|
5965
|
-
* </mat-form-field>
|
|
5966
|
-
* <pdx-material-button action="submitForm">Submit</pdx-material-button>
|
|
5967
|
-
* </form>
|
|
5968
|
-
* ```
|
|
5969
|
-
*
|
|
5970
|
-
* @private
|
|
5971
|
-
*/
|
|
5972
|
-
private findParentForm;
|
|
5973
|
-
/**
|
|
5974
|
-
* Registra ações de estado e validação de formulários.
|
|
5975
|
-
* Chamado durante a inicialização do serviço.
|
|
5976
|
-
*/
|
|
5977
|
-
private registerStateValidationActions;
|
|
5978
|
-
/**
|
|
5979
|
-
* Registra ações de API e manipulação de dados.
|
|
5980
|
-
* Chamado durante a inicialização do serviço.
|
|
5981
|
-
*/
|
|
5982
|
-
private registerApiDataActions;
|
|
5983
|
-
/**
|
|
5984
|
-
* Limpa drafts antigos do localStorage para evitar quota exceeded.
|
|
5985
|
-
*
|
|
5986
|
-
* Remove drafts com mais de 7 dias ou que estejam malformados.
|
|
5987
|
-
* Chamado automaticamente antes de salvar novos drafts.
|
|
5988
|
-
*
|
|
5989
|
-
* @private
|
|
5990
|
-
*/
|
|
5991
|
-
private cleanupOldDrafts;
|
|
5992
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ActionResolverService, never>;
|
|
5993
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ActionResolverService>;
|
|
5994
|
-
}
|
|
5995
|
-
|
|
5996
6310
|
declare class DateUtilsService {
|
|
5997
6311
|
/**
|
|
5998
6312
|
* Parses different date representations into a `Date` object.
|
|
@@ -6319,7 +6633,18 @@ interface DynamicFieldPreviewPreset {
|
|
|
6319
6633
|
label: string;
|
|
6320
6634
|
description: string;
|
|
6321
6635
|
metadataPatch?: Record<string, unknown>;
|
|
6636
|
+
/**
|
|
6637
|
+
* Default value for this preset after the active state metadata is applied.
|
|
6638
|
+
* State recipes still win when they define their own `initialValue`, except
|
|
6639
|
+
* for explicit entries in `stateInitialValues`.
|
|
6640
|
+
*/
|
|
6322
6641
|
initialValue?: unknown;
|
|
6642
|
+
/**
|
|
6643
|
+
* Per-state value overrides for this preset. Precedence:
|
|
6644
|
+
* `stateInitialValues[state]` -> state recipe `initialValue` -> preset
|
|
6645
|
+
* `initialValue` -> default state seed -> generated fallback value.
|
|
6646
|
+
*/
|
|
6647
|
+
stateInitialValues?: Partial<Record<DynamicFieldStateKey, unknown>>;
|
|
6323
6648
|
}
|
|
6324
6649
|
interface DynamicFieldCatalogEntry {
|
|
6325
6650
|
id: string;
|
|
@@ -6403,6 +6728,10 @@ declare const DISPLAY_ACTION_AI_CAPABILITIES: CapabilityCatalog;
|
|
|
6403
6728
|
|
|
6404
6729
|
declare const YEAR_INPUT_AI_CAPABILITIES: CapabilityCatalog;
|
|
6405
6730
|
|
|
6731
|
+
declare const PRAXIS_DYNAMIC_FIELDS_AUTHORING_MANIFEST: ComponentAuthoringManifest;
|
|
6732
|
+
|
|
6733
|
+
declare const PRAXIS_DYNAMIC_FIELDS_AUTHORING_PROFILES: ManifestControlProfile[];
|
|
6734
|
+
|
|
6406
6735
|
/**
|
|
6407
6736
|
* @fileoverview Custom Error State Matcher for Praxis Dynamic Fields
|
|
6408
6737
|
*
|
|
@@ -6659,5 +6988,5 @@ declare function normalizeFormMetadata(input: FieldMetadata[] | JsonSchema): Fie
|
|
|
6659
6988
|
declare const CLEAR_BUTTON_CONTROL_TYPES: Set<string>;
|
|
6660
6989
|
declare function supportsClearButtonControlType(controlType?: string | null): boolean;
|
|
6661
6990
|
|
|
6662
|
-
export {
|
|
6663
|
-
export type {
|
|
6991
|
+
export { BRAZIL_INPUTS_AI_CAPABILITIES, CACHE_TTL, CHIPS_CONTROLS_AI_CAPABILITIES, CLEAR_BUTTON_CONTROL_TYPES, COLOR_CONTROLS_AI_CAPABILITIES, CONTROL_TYPE_AI_CATALOGS, ColorInputComponent, ComponentPreloaderService, ComponentRegistryService, ConfirmDialogComponent, DATE_CONTROLS_AI_CAPABILITIES, DISPLAY_ACTION_AI_CAPABILITIES, DYNAMIC_FIELDS_PLAYGROUND_CATALOG, DYNAMIC_FIELD_BASE_STATE_RECIPES, DYNAMIC_FIELD_DEFAULT_STATE_RECIPE, DYNAMIC_FIELD_DISABLED_STATE_RECIPE, DYNAMIC_FIELD_ERROR_STATE_RECIPE, DYNAMIC_FIELD_FILLED_STATE_RECIPE, DYNAMIC_FIELD_PRESENTATION_STATE_RECIPE, DYNAMIC_FIELD_READONLY_STATE_RECIPE, DateInputComponent, DateUtilsService, DatetimeLocalInputComponent, DynamicFieldLoaderDirective, EditableCollectionComponent, EmailInputComponent, EntityLookupDialogComponent, FILE_UPLOAD_AI_CAPABILITIES, InlineAsyncSelectComponent, InlineAutocompleteComponent, InlineColorLabelComponent, InlineCurrencyComponent, InlineCurrencyRangeComponent, InlineDateComponent, InlineDateRangeComponent, InlineDistanceRadiusComponent, InlineEntityLookupComponent, InlineInputComponent, InlineMonthRangeComponent, InlineMultiSelectComponent, InlineNumberComponent, InlinePeriodRangeComponent, InlinePipelineStatusComponent, InlineRangeSliderComponent, InlineRatingComponent, InlineRelativePeriodComponent, InlineScorePriorityComponent, InlineSearchableSelectComponent, InlineSelectComponent, InlineSentimentComponent, InlineTimeComponent, InlineTimeRangeComponent, InlineToggleComponent, InlineTreeSelectComponent, InlineYearRangeComponent, KeyboardShortcutService, LIST_CONTROLS_AI_CAPABILITIES, LoggerPresets, MAX_LOAD_ATTEMPTS, MaterialAsyncSelectComponent, MaterialAutocompleteComponent, MaterialAvatarComponent, MaterialButtonComponent, MaterialButtonToggleComponent, MaterialCheckboxGroupComponent, MaterialChipsComponent, MaterialColorPickerComponent, MaterialCpfCnpjInputComponent, MaterialCurrencyComponent, MaterialDateRangeComponent, MaterialDatepickerComponent, MaterialFileUploadComponent, MaterialMultiSelectComponent, MaterialMultiSelectTreeComponent, MaterialPriceRangeComponent, MaterialRadioGroupComponent, MaterialRatingComponent, MaterialSearchableSelectComponent, MaterialSelectComponent, MaterialSelectionListComponent, MaterialSlideToggleComponent, MaterialSliderComponent, MaterialTextareaComponent, MaterialTimepickerComponent, MaterialTransferListComponent, MaterialTreeSelectComponent, MonthInputComponent, NUMERIC_INPUTS_AI_CAPABILITIES, NumberInputComponent, OptionStore, PDX_COLOR_INPUT_COMPONENT_METADATA, PDX_COLOR_PICKER_COMPONENT_METADATA, PDX_DATETIME_LOCAL_INPUT_COMPONENT_METADATA, PDX_DATE_INPUT_COMPONENT_METADATA, PDX_EDITABLE_COLLECTION_COMPONENT_METADATA, PDX_EMAIL_INPUT_COMPONENT_METADATA, PDX_ENTITY_LOOKUP_COMPONENT_METADATA, PDX_FIELD_SHELL_COMPONENT_METADATA, PDX_INLINE_ASYNC_SELECT_COMPONENT_METADATA, PDX_INLINE_AUTOCOMPLETE_COMPONENT_METADATA, PDX_INLINE_COLOR_LABEL_COMPONENT_METADATA, PDX_INLINE_CURRENCY_COMPONENT_METADATA, PDX_INLINE_CURRENCY_RANGE_COMPONENT_METADATA, PDX_INLINE_DATE_COMPONENT_METADATA, PDX_INLINE_DATE_RANGE_COMPONENT_METADATA, PDX_INLINE_DISTANCE_RADIUS_COMPONENT_METADATA, PDX_INLINE_ENTITY_LOOKUP_COMPONENT_METADATA, PDX_INLINE_INPUT_COMPONENT_METADATA, PDX_INLINE_MONTH_RANGE_COMPONENT_METADATA, PDX_INLINE_MULTI_SELECT_COMPONENT_METADATA, PDX_INLINE_NUMBER_COMPONENT_METADATA, PDX_INLINE_PERIOD_RANGE_COMPONENT_METADATA, PDX_INLINE_PIPELINE_STATUS_COMPONENT_METADATA, PDX_INLINE_RANGE_SLIDER_COMPONENT_METADATA, PDX_INLINE_RATING_COMPONENT_METADATA, PDX_INLINE_RELATIVE_PERIOD_COMPONENT_METADATA, PDX_INLINE_SCORE_PRIORITY_COMPONENT_METADATA, PDX_INLINE_SEARCHABLE_SELECT_COMPONENT_METADATA, PDX_INLINE_SELECT_COMPONENT_METADATA, PDX_INLINE_SENTIMENT_COMPONENT_METADATA, PDX_INLINE_TIME_COMPONENT_METADATA, PDX_INLINE_TIME_RANGE_COMPONENT_METADATA, PDX_INLINE_TOGGLE_COMPONENT_METADATA, PDX_INLINE_TREE_SELECT_COMPONENT_METADATA, PDX_INLINE_YEAR_RANGE_COMPONENT_METADATA, PDX_MATERIAL_AVATAR_COMPONENT_METADATA, PDX_MATERIAL_BUTTON_COMPONENT_METADATA, PDX_MATERIAL_BUTTON_TOGGLE_COMPONENT_METADATA, PDX_MATERIAL_CHECKBOX_GROUP_COMPONENT_METADATA, PDX_MATERIAL_CHIPS_COMPONENT_METADATA, PDX_MATERIAL_COLORPICKER_COMPONENT_METADATA, PDX_MATERIAL_CPF_CNPJ_INPUT_COMPONENT_METADATA, PDX_MATERIAL_CURRENCY_COMPONENT_METADATA, PDX_MATERIAL_DATEPICKER_COMPONENT_METADATA, PDX_MATERIAL_DATE_RANGE_COMPONENT_METADATA, PDX_MATERIAL_FILE_UPLOAD_COMPONENT_METADATA, PDX_MATERIAL_MULTI_SELECT_COMPONENT_METADATA, PDX_MATERIAL_MULTI_SELECT_TREE_COMPONENT_METADATA, PDX_MATERIAL_PRICE_RANGE_COMPONENT_METADATA, PDX_MATERIAL_RADIO_GROUP_COMPONENT_METADATA, PDX_MATERIAL_RANGE_SLIDER_COMPONENT_METADATA, PDX_MATERIAL_RATING_COMPONENT_METADATA, PDX_MATERIAL_SEARCHABLE_SELECT_COMPONENT_METADATA, PDX_MATERIAL_SELECTION_LIST_COMPONENT_METADATA, PDX_MATERIAL_SELECT_COMPONENT_METADATA, PDX_MATERIAL_SLIDER_COMPONENT_METADATA, PDX_MATERIAL_TEXTAREA_COMPONENT_METADATA, PDX_MATERIAL_TIMEPICKER_COMPONENT_METADATA, PDX_MATERIAL_TIME_RANGE_COMPONENT_METADATA, PDX_MATERIAL_TRANSFER_LIST_COMPONENT_METADATA, PDX_MATERIAL_TREE_SELECT_COMPONENT_METADATA, PDX_MONTH_INPUT_COMPONENT_METADATA, PDX_NUMBER_INPUT_COMPONENT_METADATA, PDX_PASSWORD_INPUT_COMPONENT_METADATA, PDX_PHONE_INPUT_COMPONENT_METADATA, PDX_PRELOAD_STATUS_COMPONENT_METADATA, PDX_SEARCH_INPUT_COMPONENT_METADATA, PDX_TEXT_INPUT_COMPONENT_METADATA, PDX_TIME_INPUT_COMPONENT_METADATA, PDX_URL_INPUT_COMPONENT_METADATA, PDX_WEEK_INPUT_COMPONENT_METADATA, PDX_YEAR_INPUT_COMPONENT_METADATA, PRAXIS_DYNAMIC_FIELDS_AUTHORING_MANIFEST, PRAXIS_DYNAMIC_FIELDS_AUTHORING_PROFILES, PRAXIS_DYNAMIC_FIELDS_EDITORIAL_WAVE_1, PRAXIS_DYNAMIC_FIELDS_EN_US, PRAXIS_DYNAMIC_FIELDS_I18N, PRAXIS_DYNAMIC_FIELDS_LOGGER_BACKEND, PRAXIS_DYNAMIC_FIELDS_PT_BR, PRAXIS_DYNAMIC_FIELDS_WAVE_1_COMPONENT_METADATA, PRICE_RANGE_AI_CAPABILITIES, PasswordInputComponent, PdxColorPickerComponent, PdxMaterialRangeSliderComponent, PdxMaterialTimeRangeComponent, PdxYearInputComponent, PhoneInputComponent, PraxisErrorStateMatcher, PreloadStatusComponent, RETRY_DELAY, SELECT_CONTROLS_AI_CAPABILITIES, SearchInputComponent, SimpleBaseButtonComponent, SimpleBaseInputComponent, SimpleBaseSelectComponent, TEXT_INPUTS_AI_CAPABILITIES, TIME_RANGE_AI_CAPABILITIES, TOGGLE_CONTROLS_AI_CAPABILITIES, TREE_CONTROLS_AI_CAPABILITIES, TextInputComponent, TimeInputComponent, UrlInputComponent, WeekInputComponent, YEAR_INPUT_AI_CAPABILITIES, bindDynamicFieldsLoggerBackendFromInjector, clearDynamicFieldsLoggerBackend, configureDynamicFieldsLogger, createDynamicFieldPreviewRecipe, createErrorStateMatcher, createPraxisDynamicFieldsI18nConfig, emitToDynamicFieldsLoggerBackend, enableDebugForComponent, getControlTypeCatalog, getErrorStateMatcherForField, inferErrorStateStrategy, initializeComponentSystem, initializeComponentSystemSync, isBaseDynamicFieldComponent, isLoadingCapableComponent, isValidJsonSchema, isValueBasedComponent, logger, mapJsonSchemaToFields, mapPropertyToFieldMetadata, normalizeFormMetadata, provideMaterialAvatarMetadata, providePraxisDynamicFields, providePraxisDynamicFieldsCore, providePraxisDynamicFieldsCoreNoDefaults, providePraxisDynamicFieldsI18n, providePraxisDynamicFieldsNoDefaults, providePraxisDynamicFieldsWave1EditorialRegistry, registerPraxisDynamicFieldsWave1EditorialDescriptors, resolvePraxisDynamicFieldsText, setDynamicFieldsLoggerBackend, silenceComponent, supportsClearButtonControlType };
|
|
6992
|
+
export type { BaseDynamicFieldComponent, BaseValidationConfig, ComponentLifecycleEvent, ComponentLoadResult, ComponentRegistration, ConfirmDialogData, DynamicFieldCatalogEntry, DynamicFieldCatalogFamily, DynamicFieldCatalogIconKey, DynamicFieldCatalogIconSemantic, DynamicFieldCatalogIconTone, DynamicFieldCatalogStatus, DynamicFieldCatalogTrack, DynamicFieldDataSourceKind, DynamicFieldDocLinks, DynamicFieldInteractionPattern, DynamicFieldLoaderRenderErrorEvent, DynamicFieldPreviewPreset, DynamicFieldPreviewRecipe, DynamicFieldPreviewStateRecipe, DynamicFieldSnippetRecipe, DynamicFieldStateKey, DynamicFieldsCoreLogOptions, DynamicFieldsCoreLoggerBackend, DynamicFieldsLoggerContext, DynamicFieldsLoggerLevel, ErrorStateStrategy, GradientSettings, IComponentRegistry, JsonSchema, JsonSchemaProperty, LoggerConfig, LoggerLevel, OptionSource, PaletteSettings, PopupSettings, PraxisDynamicFieldText, PraxisDynamicFieldsI18nOptions, PraxisDynamicFieldsI18nOverrides, PreloadStatus, RatingIconState, RegistryStats, SelectOption, ShortcutHandler, ShortcutInfo, SimpleSelectMetadata, TimeRangeValue, ValueChangeOptions };
|