@praxisui/table 3.0.0-beta.3 → 3.0.0-beta.5
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 +4 -1
- package/fesm2022/{praxisui-table-filter-form-dialog-host.component-CZsEBHoS.mjs → praxisui-table-filter-form-dialog-host.component-EHoM1uuJ.mjs} +2 -2
- package/fesm2022/{praxisui-table-filter-form-dialog-host.component-CZsEBHoS.mjs.map → praxisui-table-filter-form-dialog-host.component-EHoM1uuJ.mjs.map} +1 -1
- package/fesm2022/praxisui-table.mjs +714 -131
- package/fesm2022/praxisui-table.mjs.map +1 -1
- package/index.d.ts +90 -45
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnChanges, OnDestroy, EventEmitter, ElementRef, SimpleChanges, OnInit, AfterViewInit, DoCheck, DestroyRef, ChangeDetectorRef, NgZone,
|
|
2
|
+
import { OnChanges, OnDestroy, EventEmitter, ElementRef, SimpleChanges, OnInit, AfterViewInit, DoCheck, DestroyRef, ChangeDetectorRef, NgZone, Provider, AfterContentInit } from '@angular/core';
|
|
3
3
|
import { ActivatedRoute } from '@angular/router';
|
|
4
4
|
import { MatTable, MatTableDataSource } from '@angular/material/table';
|
|
5
5
|
import { MatPaginator, PageEvent } from '@angular/material/paginator';
|
|
@@ -10,7 +10,7 @@ import { CdkDragDrop, CdkDragEnd, CdkDrag, CdkDropList } from '@angular/cdk/drag
|
|
|
10
10
|
import { BehaviorSubject, Subscription, Observable } from 'rxjs';
|
|
11
11
|
import { SettingsPanelService, SettingsValueProvider } from '@praxisui/settings-panel';
|
|
12
12
|
import * as _praxisui_core from '@praxisui/core';
|
|
13
|
-
import { TableConfig, LoggerService, GlobalConfigService, AsyncConfigStorage, FieldMetadata, SchemaIdParams, FormConfig, GenericCrudService, DynamicFormService, SchemaNormalizerService, ComponentKeyService, LoadingState, ColumnDefinition, ConnectionStorage, LoadingOrchestrator, PraxisLoadingRenderer, GlobalActionSpec, IconPickerService, GlobalActionField, TableConfigService, FieldDefinition,
|
|
13
|
+
import { TableConfig, LoggerService, GlobalConfigService, AsyncConfigStorage, FieldMetadata, SchemaIdParams, FormConfig, GenericCrudService, DynamicFormService, SchemaNormalizerService, ComponentKeyService, ComponentDocMeta, LoadingState, ColumnDefinition, ConnectionStorage, LoadingOrchestrator, PraxisLoadingRenderer, GlobalActionSpec, IconPickerService, GlobalActionField, TableConfigService, FieldDefinition, AiCapabilityCategory, AiValueKind, AiCapability, AiCapabilityCatalog } from '@praxisui/core';
|
|
14
14
|
import { FunctionRegistry, DslParser } from '@praxisui/specification';
|
|
15
15
|
import { FormGroup, FormControl, FormBuilder } from '@angular/forms';
|
|
16
16
|
import { MatDialog } from '@angular/material/dialog';
|
|
@@ -173,61 +173,68 @@ declare const PERCENTAGE_PRESETS: FormatPreset[];
|
|
|
173
173
|
declare const STRING_PRESETS: FormatPreset[];
|
|
174
174
|
declare const BOOLEAN_PRESETS: FormatPreset[];
|
|
175
175
|
|
|
176
|
+
interface FormattingLocalization {
|
|
177
|
+
locale?: string;
|
|
178
|
+
dateTime?: {
|
|
179
|
+
dateFormat?: string;
|
|
180
|
+
timeFormat?: string;
|
|
181
|
+
dateTimeFormat?: string;
|
|
182
|
+
};
|
|
183
|
+
number?: {
|
|
184
|
+
decimalSeparator?: string;
|
|
185
|
+
thousandsSeparator?: string;
|
|
186
|
+
defaultPrecision?: number;
|
|
187
|
+
negativeSign?: string;
|
|
188
|
+
negativeSignPosition?: 'before' | 'after';
|
|
189
|
+
};
|
|
190
|
+
currency?: {
|
|
191
|
+
code?: string;
|
|
192
|
+
symbol?: string;
|
|
193
|
+
position?: 'before' | 'after';
|
|
194
|
+
spacing?: boolean;
|
|
195
|
+
precision?: number;
|
|
196
|
+
};
|
|
197
|
+
formatting?: {
|
|
198
|
+
percentageFormat?: string;
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
interface DataFormattingOptions {
|
|
202
|
+
locale?: string;
|
|
203
|
+
localization?: FormattingLocalization | null;
|
|
204
|
+
}
|
|
176
205
|
declare class DataFormattingService {
|
|
177
|
-
private
|
|
178
|
-
private
|
|
179
|
-
private
|
|
180
|
-
private readonly datePipe;
|
|
181
|
-
private readonly decimalPipe;
|
|
182
|
-
private readonly currencyPipe;
|
|
183
|
-
private readonly percentPipe;
|
|
206
|
+
private readonly hostLocale;
|
|
207
|
+
private readonly localePipeCache;
|
|
208
|
+
private readonly numericSeparatorCache;
|
|
184
209
|
private readonly upperCasePipe;
|
|
185
210
|
private readonly lowerCasePipe;
|
|
186
211
|
private readonly titleCasePipe;
|
|
187
|
-
constructor(
|
|
188
|
-
/**
|
|
189
|
-
* Apply formatting to a value based on column type and format string
|
|
190
|
-
*/
|
|
191
|
-
formatValue(value: any, columnType: ColumnDataType$1, formatString: string): any;
|
|
212
|
+
constructor(hostLocale: string);
|
|
192
213
|
/**
|
|
193
|
-
*
|
|
214
|
+
* Apply formatting to a value based on column type and format string.
|
|
215
|
+
* Formatting can honor a runtime locale/localization override before
|
|
216
|
+
* falling back to the host LOCALE_ID.
|
|
194
217
|
*/
|
|
218
|
+
formatValue(value: any, columnType: ColumnDataType$1, formatString: string, options?: DataFormattingOptions): any;
|
|
195
219
|
private coerceValueToType;
|
|
196
|
-
/**
|
|
197
|
-
* Format date values
|
|
198
|
-
*/
|
|
199
220
|
private formatDate;
|
|
200
|
-
/**
|
|
201
|
-
* Format number values
|
|
202
|
-
*/
|
|
203
221
|
private formatNumber;
|
|
204
|
-
/**
|
|
205
|
-
* Format currency values
|
|
206
|
-
*/
|
|
207
222
|
private formatCurrency;
|
|
208
|
-
/**
|
|
209
|
-
* Format percentage values
|
|
210
|
-
*/
|
|
211
223
|
private formatPercentage;
|
|
212
|
-
private removeGrouping;
|
|
213
|
-
/**
|
|
214
|
-
* Format string values
|
|
215
|
-
*/
|
|
216
224
|
private formatString;
|
|
217
|
-
/**
|
|
218
|
-
* Apply string transformations
|
|
219
|
-
*/
|
|
220
225
|
private applyStringTransform;
|
|
221
226
|
private isMaskFormat;
|
|
222
227
|
private applyMask;
|
|
223
|
-
/**
|
|
224
|
-
* Format boolean values
|
|
225
|
-
*/
|
|
226
228
|
private formatBoolean;
|
|
227
|
-
/**
|
|
228
|
-
* Check if formatting is needed for a column
|
|
229
|
-
*/
|
|
230
229
|
needsFormatting(columnType: ColumnDataType$1, formatString: string | null | undefined): boolean;
|
|
230
|
+
private resolveFormattingContext;
|
|
231
|
+
private getLocalePipeBundle;
|
|
232
|
+
private getNumericSeparators;
|
|
233
|
+
private parseDigitsInfo;
|
|
234
|
+
private getNumberOverrides;
|
|
235
|
+
private normalizeNumericInput;
|
|
236
|
+
private composeNumericParts;
|
|
237
|
+
private escapeRegExp;
|
|
231
238
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataFormattingService, never>;
|
|
232
239
|
static ɵprov: i0.ɵɵInjectableDeclaration<DataFormattingService>;
|
|
233
240
|
}
|
|
@@ -250,6 +257,12 @@ declare class TableDefaultsProvider {
|
|
|
250
257
|
|
|
251
258
|
type FilterConfig = {
|
|
252
259
|
alwaysVisibleFields?: string[];
|
|
260
|
+
/**
|
|
261
|
+
* Deep metadata overrides for any field rendered by the filter runtime.
|
|
262
|
+
* This is used by runtime authoring to project field-level patches without
|
|
263
|
+
* mutating the canonical schema metadata returned by the source.
|
|
264
|
+
*/
|
|
265
|
+
fieldMetadataOverrides?: Record<string, Record<string, any>>;
|
|
253
266
|
/**
|
|
254
267
|
* Deep metadata overrides for always-visible fields.
|
|
255
268
|
* Source of truth remains the filter DTO; this map applies controlled
|
|
@@ -394,15 +407,26 @@ declare class PraxisFilter implements OnInit, OnChanges, AfterViewInit, OnDestro
|
|
|
394
407
|
* Keys are field names from the filter DTO schema.
|
|
395
408
|
*/
|
|
396
409
|
alwaysVisibleFieldMetadataOverrides: Record<string, Record<string, any>> | undefined;
|
|
410
|
+
/** Runtime field-level metadata overrides applied by the metadata editor. */
|
|
411
|
+
private fieldMetadataOverrides;
|
|
397
412
|
/** Additional selected field ids to render before pinned always-visible */
|
|
398
413
|
selectedFieldIds: string[];
|
|
399
414
|
tags?: FilterTag[];
|
|
400
415
|
allowSaveTags?: boolean;
|
|
401
416
|
persistenceKey?: string;
|
|
417
|
+
disablePersistence: boolean;
|
|
402
418
|
i18n?: Partial<I18n>;
|
|
403
419
|
changeDebounceMs: number;
|
|
404
420
|
/** Controla a exibição do botão de preferências dentro do filtro */
|
|
405
421
|
showFilterSettings: boolean;
|
|
422
|
+
/** Controla a exibição do botão de filtro avançado */
|
|
423
|
+
showAdvancedButton: boolean;
|
|
424
|
+
/** Controla a exibição do botão de adicionar campos */
|
|
425
|
+
showAddButton: boolean;
|
|
426
|
+
/** Controla a exibição do botão de limpar filtros */
|
|
427
|
+
showClearButton: boolean;
|
|
428
|
+
/** Controla a exibição do botão de pesquisar/aplicar filtros */
|
|
429
|
+
showSearchButton: boolean;
|
|
406
430
|
/** Exibir confirmação ao excluir atalho (tag) */
|
|
407
431
|
confirmTagDelete: boolean;
|
|
408
432
|
/** Move toggles/booleans simples para a área de ações */
|
|
@@ -478,6 +502,7 @@ declare class PraxisFilter implements OnInit, OnChanges, AfterViewInit, OnDestro
|
|
|
478
502
|
gridSelectedMetas: FieldMetadata[];
|
|
479
503
|
gridAlwaysVisibleMetas: FieldMetadata[];
|
|
480
504
|
toggleMetas: FieldMetadata[];
|
|
505
|
+
activeEditableFieldName: string | null;
|
|
481
506
|
advancedConfig?: FormConfig;
|
|
482
507
|
displayedTags: FilterTag[];
|
|
483
508
|
private savedTags;
|
|
@@ -539,6 +564,7 @@ declare class PraxisFilter implements OnInit, OnChanges, AfterViewInit, OnDestro
|
|
|
539
564
|
private resolveSchemaPrefs;
|
|
540
565
|
private domIdSeed;
|
|
541
566
|
private componentKeyId;
|
|
567
|
+
private isPersistenceDisabled;
|
|
542
568
|
private resolveConfigKey;
|
|
543
569
|
getComponentKeyId(): string | null;
|
|
544
570
|
private filterTagsKey;
|
|
@@ -553,6 +579,9 @@ declare class PraxisFilter implements OnInit, OnChanges, AfterViewInit, OnDestro
|
|
|
553
579
|
private readonly global;
|
|
554
580
|
private resolveRuntimeEnvironment;
|
|
555
581
|
private getLogger;
|
|
582
|
+
get activeEditableFieldMeta(): FieldMetadata | null;
|
|
583
|
+
get activeEditableFieldLabel(): string | null;
|
|
584
|
+
isFieldAuthoringEnabled(): boolean;
|
|
556
585
|
private buildFilterLogOptions;
|
|
557
586
|
private isFilterDebugEnabled;
|
|
558
587
|
private logFilterDebug;
|
|
@@ -562,6 +591,9 @@ declare class PraxisFilter implements OnInit, OnChanges, AfterViewInit, OnDestro
|
|
|
562
591
|
private setSchemaLoading;
|
|
563
592
|
private setActiveFiltersCount;
|
|
564
593
|
private loadSavedTagsFromStorage;
|
|
594
|
+
private resolveInputDto;
|
|
595
|
+
private resolveInitialDto;
|
|
596
|
+
private syncFormsFromDto;
|
|
565
597
|
ngOnInit(): Promise<void>;
|
|
566
598
|
ngAfterViewInit(): void;
|
|
567
599
|
onWindowResize(): void;
|
|
@@ -618,13 +650,23 @@ declare class PraxisFilter implements OnInit, OnChanges, AfterViewInit, OnDestro
|
|
|
618
650
|
private isAllowedFilterControlType;
|
|
619
651
|
private inferFilterControlType;
|
|
620
652
|
private cloneAlwaysVisibleMetadataOverrides;
|
|
653
|
+
private cloneFieldMetadataOverrides;
|
|
621
654
|
private sanitizeAlwaysVisibleMetadataOverrides;
|
|
622
655
|
private sanitizeMetadataOverrideValue;
|
|
623
656
|
private mergeAlwaysVisibleMetadata;
|
|
657
|
+
private mergeFieldMetadataOverride;
|
|
624
658
|
ngDoCheck(): void;
|
|
625
659
|
onAlwaysComponents(map: Map<string, any>): void;
|
|
626
660
|
onSelectedComponents(map: Map<string, any>): void;
|
|
627
661
|
onToggleComponents(map: Map<string, any>): void;
|
|
662
|
+
onFieldInteraction(event: Event): void;
|
|
663
|
+
openSelectedFieldEditor(): void;
|
|
664
|
+
private isLocalE2eAuthoringOptInEnabled;
|
|
665
|
+
private openFieldMetadataEditorInternal;
|
|
666
|
+
private applyFieldMetadataPatch;
|
|
667
|
+
private buildFieldMetadataEditorSeed;
|
|
668
|
+
private getEditableFieldMeta;
|
|
669
|
+
private resolveFieldNameFromEvent;
|
|
628
670
|
onAdvancedReady(event: {
|
|
629
671
|
formGroup: FormGroup<Record<string, any>>;
|
|
630
672
|
}): void;
|
|
@@ -706,9 +748,12 @@ declare class PraxisFilter implements OnInit, OnChanges, AfterViewInit, OnDestro
|
|
|
706
748
|
private isEditableElement;
|
|
707
749
|
private focusQuick;
|
|
708
750
|
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisFilter, [null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
709
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisFilter, "praxis-filter", never, { "resourcePath": { "alias": "resourcePath"; "required": true; }; "fieldMetadata": { "alias": "fieldMetadata"; "required": false; }; "filterId": { "alias": "filterId"; "required": false; }; "formId": { "alias": "formId"; "required": false; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "notifyIfOutdated": { "alias": "notifyIfOutdated"; "required": false; }; "snoozeMs": { "alias": "snoozeMs"; "required": false; }; "autoOpenSettingsOnOutdated": { "alias": "autoOpenSettingsOnOutdated"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "value": { "alias": "value"; "required": false; }; "alwaysVisibleFields": { "alias": "alwaysVisibleFields"; "required": false; }; "alwaysVisibleFieldMetadataOverrides": { "alias": "alwaysVisibleFieldMetadataOverrides"; "required": false; }; "selectedFieldIds": { "alias": "selectedFieldIds"; "required": false; }; "tags": { "alias": "tags"; "required": false; }; "allowSaveTags": { "alias": "allowSaveTags"; "required": false; }; "persistenceKey": { "alias": "persistenceKey"; "required": false; }; "i18n": { "alias": "i18n"; "required": false; }; "changeDebounceMs": { "alias": "changeDebounceMs"; "required": false; }; "showFilterSettings": { "alias": "showFilterSettings"; "required": false; }; "confirmTagDelete": { "alias": "confirmTagDelete"; "required": false; }; "placeBooleansInActions": { "alias": "placeBooleansInActions"; "required": false; }; "showToggleLabels": { "alias": "showToggleLabels"; "required": false; }; "useInlineSelectVariant": { "alias": "useInlineSelectVariant"; "required": false; }; "useInlineSearchableSelectVariant": { "alias": "useInlineSearchableSelectVariant"; "required": false; }; "useInlineMultiSelectVariant": { "alias": "useInlineMultiSelectVariant"; "required": false; }; "useInlineInputVariant": { "alias": "useInlineInputVariant"; "required": false; }; "useInlineToggleVariant": { "alias": "useInlineToggleVariant"; "required": false; }; "useInlineRangeVariant": { "alias": "useInlineRangeVariant"; "required": false; }; "useInlineDateVariant": { "alias": "useInlineDateVariant"; "required": false; }; "useInlineDateRangeVariant": { "alias": "useInlineDateRangeVariant"; "required": false; }; "useInlineTimeVariant": { "alias": "useInlineTimeVariant"; "required": false; }; "useInlineTimeRangeVariant": { "alias": "useInlineTimeRangeVariant"; "required": false; }; "useInlineTreeSelectVariant": { "alias": "useInlineTreeSelectVariant"; "required": false; }; "alwaysMinWidth": { "alias": "alwaysMinWidth"; "required": false; }; "alwaysColsMd": { "alias": "alwaysColsMd"; "required": false; }; "alwaysColsLg": { "alias": "alwaysColsLg"; "required": false; }; "tagColor": { "alias": "tagColor"; "required": false; }; "tagVariant": { "alias": "tagVariant"; "required": false; }; "tagButtonColor": { "alias": "tagButtonColor"; "required": false; }; "actionsButtonColor": { "alias": "actionsButtonColor"; "required": false; }; "actionsVariant": { "alias": "actionsVariant"; "required": false; }; "overlayVariant": { "alias": "overlayVariant"; "required": false; }; "overlayBackdrop": { "alias": "overlayBackdrop"; "required": false; }; "advancedOpenMode": { "alias": "advancedOpenMode"; "required": false; }; "advancedClearButtonsEnabled": { "alias": "advancedClearButtonsEnabled"; "required": false; }; }, { "submit": "submit"; "change": "change"; "clear": "clear"; "modeChange": "modeChange"; "requestSearch": "requestSearch"; "tagsChange": "tagsChange"; "selectedFieldIdsChange": "selectedFieldIdsChange"; "metaChanged": "metaChanged"; "schemaStatusChange": "schemaStatusChange"; }, never, never, true, never>;
|
|
751
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisFilter, "praxis-filter", never, { "resourcePath": { "alias": "resourcePath"; "required": true; }; "fieldMetadata": { "alias": "fieldMetadata"; "required": false; }; "filterId": { "alias": "filterId"; "required": false; }; "formId": { "alias": "formId"; "required": false; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "notifyIfOutdated": { "alias": "notifyIfOutdated"; "required": false; }; "snoozeMs": { "alias": "snoozeMs"; "required": false; }; "autoOpenSettingsOnOutdated": { "alias": "autoOpenSettingsOnOutdated"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "value": { "alias": "value"; "required": false; }; "alwaysVisibleFields": { "alias": "alwaysVisibleFields"; "required": false; }; "alwaysVisibleFieldMetadataOverrides": { "alias": "alwaysVisibleFieldMetadataOverrides"; "required": false; }; "selectedFieldIds": { "alias": "selectedFieldIds"; "required": false; }; "tags": { "alias": "tags"; "required": false; }; "allowSaveTags": { "alias": "allowSaveTags"; "required": false; }; "persistenceKey": { "alias": "persistenceKey"; "required": false; }; "disablePersistence": { "alias": "disablePersistence"; "required": false; }; "i18n": { "alias": "i18n"; "required": false; }; "changeDebounceMs": { "alias": "changeDebounceMs"; "required": false; }; "showFilterSettings": { "alias": "showFilterSettings"; "required": false; }; "showAdvancedButton": { "alias": "showAdvancedButton"; "required": false; }; "showAddButton": { "alias": "showAddButton"; "required": false; }; "showClearButton": { "alias": "showClearButton"; "required": false; }; "showSearchButton": { "alias": "showSearchButton"; "required": false; }; "confirmTagDelete": { "alias": "confirmTagDelete"; "required": false; }; "placeBooleansInActions": { "alias": "placeBooleansInActions"; "required": false; }; "showToggleLabels": { "alias": "showToggleLabels"; "required": false; }; "useInlineSelectVariant": { "alias": "useInlineSelectVariant"; "required": false; }; "useInlineSearchableSelectVariant": { "alias": "useInlineSearchableSelectVariant"; "required": false; }; "useInlineMultiSelectVariant": { "alias": "useInlineMultiSelectVariant"; "required": false; }; "useInlineInputVariant": { "alias": "useInlineInputVariant"; "required": false; }; "useInlineToggleVariant": { "alias": "useInlineToggleVariant"; "required": false; }; "useInlineRangeVariant": { "alias": "useInlineRangeVariant"; "required": false; }; "useInlineDateVariant": { "alias": "useInlineDateVariant"; "required": false; }; "useInlineDateRangeVariant": { "alias": "useInlineDateRangeVariant"; "required": false; }; "useInlineTimeVariant": { "alias": "useInlineTimeVariant"; "required": false; }; "useInlineTimeRangeVariant": { "alias": "useInlineTimeRangeVariant"; "required": false; }; "useInlineTreeSelectVariant": { "alias": "useInlineTreeSelectVariant"; "required": false; }; "alwaysMinWidth": { "alias": "alwaysMinWidth"; "required": false; }; "alwaysColsMd": { "alias": "alwaysColsMd"; "required": false; }; "alwaysColsLg": { "alias": "alwaysColsLg"; "required": false; }; "tagColor": { "alias": "tagColor"; "required": false; }; "tagVariant": { "alias": "tagVariant"; "required": false; }; "tagButtonColor": { "alias": "tagButtonColor"; "required": false; }; "actionsButtonColor": { "alias": "actionsButtonColor"; "required": false; }; "actionsVariant": { "alias": "actionsVariant"; "required": false; }; "overlayVariant": { "alias": "overlayVariant"; "required": false; }; "overlayBackdrop": { "alias": "overlayBackdrop"; "required": false; }; "advancedOpenMode": { "alias": "advancedOpenMode"; "required": false; }; "advancedClearButtonsEnabled": { "alias": "advancedClearButtonsEnabled"; "required": false; }; }, { "submit": "submit"; "change": "change"; "clear": "clear"; "modeChange": "modeChange"; "requestSearch": "requestSearch"; "tagsChange": "tagsChange"; "selectedFieldIdsChange": "selectedFieldIdsChange"; "metaChanged": "metaChanged"; "schemaStatusChange": "schemaStatusChange"; }, never, never, true, never>;
|
|
710
752
|
}
|
|
711
753
|
|
|
754
|
+
declare const PRAXIS_FILTER_COMPONENT_METADATA: ComponentDocMeta;
|
|
755
|
+
declare function providePraxisFilterMetadata(): Provider;
|
|
756
|
+
|
|
712
757
|
type SchemaFieldHint = {
|
|
713
758
|
name: string;
|
|
714
759
|
label?: string;
|
|
@@ -821,6 +866,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
821
866
|
autoOpenSettingsOnOutdated: boolean;
|
|
822
867
|
crudContext: any;
|
|
823
868
|
dslFunctionRegistry: FunctionRegistry<any> | null;
|
|
869
|
+
filterCriteria: Record<string, any>;
|
|
824
870
|
rowClick: EventEmitter<any>;
|
|
825
871
|
rowDoubleClick: EventEmitter<any>;
|
|
826
872
|
rowExpansionChange: EventEmitter<RowExpansionChangeEvent>;
|
|
@@ -854,7 +900,6 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
854
900
|
pageIndex: number;
|
|
855
901
|
pageSize: number;
|
|
856
902
|
sortState: Sort;
|
|
857
|
-
filterCriteria: any;
|
|
858
903
|
visibleColumns: ColumnDefinition[];
|
|
859
904
|
visibleDataColumnsForDrag: ColumnDefinition[];
|
|
860
905
|
displayedColumns: string[];
|
|
@@ -1500,7 +1545,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1500
1545
|
getRowMenuIcon(): string;
|
|
1501
1546
|
ngOnDestroy(): void;
|
|
1502
1547
|
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisTable, [null, null, null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
1503
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisTable, "praxis-table", never, { "config": { "alias": "config"; "required": false; }; "resourcePath": { "alias": "resourcePath"; "required": false; }; "data": { "alias": "data"; "required": false; }; "tableId": { "alias": "tableId"; "required": true; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "autoDelete": { "alias": "autoDelete"; "required": false; }; "notifyIfOutdated": { "alias": "notifyIfOutdated"; "required": false; }; "snoozeMs": { "alias": "snoozeMs"; "required": false; }; "autoOpenSettingsOnOutdated": { "alias": "autoOpenSettingsOnOutdated"; "required": false; }; "crudContext": { "alias": "crudContext"; "required": false; }; "dslFunctionRegistry": { "alias": "dslFunctionRegistry"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "dense": { "alias": "dense"; "required": false; }; }, { "rowClick": "rowClick"; "rowDoubleClick": "rowDoubleClick"; "rowExpansionChange": "rowExpansionChange"; "rowAction": "rowAction"; "toolbarAction": "toolbarAction"; "bulkAction": "bulkAction"; "columnReorder": "columnReorder"; "columnReorderAttempt": "columnReorderAttempt"; "beforeDelete": "beforeDelete"; "afterDelete": "afterDelete"; "deleteError": "deleteError"; "beforeBulkDelete": "beforeBulkDelete"; "afterBulkDelete": "afterBulkDelete"; "bulkDeleteError": "bulkDeleteError"; "schemaStatusChange": "schemaStatusChange"; "metadataChange": "metadataChange"; "loadingStateChange": "loadingStateChange"; }, ["toolbar", "projectedFilter"], ["[advancedFilter]", "[toolbar]", "[advancedFilter]", "[toolbar]", "[advancedFilter]", "[toolbar]"], true, never>;
|
|
1548
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisTable, "praxis-table", never, { "config": { "alias": "config"; "required": false; }; "resourcePath": { "alias": "resourcePath"; "required": false; }; "data": { "alias": "data"; "required": false; }; "tableId": { "alias": "tableId"; "required": true; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "autoDelete": { "alias": "autoDelete"; "required": false; }; "notifyIfOutdated": { "alias": "notifyIfOutdated"; "required": false; }; "snoozeMs": { "alias": "snoozeMs"; "required": false; }; "autoOpenSettingsOnOutdated": { "alias": "autoOpenSettingsOnOutdated"; "required": false; }; "crudContext": { "alias": "crudContext"; "required": false; }; "dslFunctionRegistry": { "alias": "dslFunctionRegistry"; "required": false; }; "filterCriteria": { "alias": "filterCriteria"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "dense": { "alias": "dense"; "required": false; }; }, { "rowClick": "rowClick"; "rowDoubleClick": "rowDoubleClick"; "rowExpansionChange": "rowExpansionChange"; "rowAction": "rowAction"; "toolbarAction": "toolbarAction"; "bulkAction": "bulkAction"; "columnReorder": "columnReorder"; "columnReorderAttempt": "columnReorderAttempt"; "beforeDelete": "beforeDelete"; "afterDelete": "afterDelete"; "deleteError": "deleteError"; "beforeBulkDelete": "beforeBulkDelete"; "afterBulkDelete": "afterBulkDelete"; "bulkDeleteError": "bulkDeleteError"; "schemaStatusChange": "schemaStatusChange"; "metadataChange": "metadataChange"; "loadingStateChange": "loadingStateChange"; }, ["toolbar", "projectedFilter"], ["[advancedFilter]", "[toolbar]", "[advancedFilter]", "[toolbar]", "[advancedFilter]", "[toolbar]"], true, never>;
|
|
1504
1549
|
static ngAcceptInputType_enableCustomization: unknown;
|
|
1505
1550
|
}
|
|
1506
1551
|
|
|
@@ -3213,5 +3258,5 @@ interface CapabilityCatalog extends AiCapabilityCatalog {
|
|
|
3213
3258
|
}
|
|
3214
3259
|
declare const TABLE_COMPONENT_AI_CAPABILITIES: CapabilityCatalog;
|
|
3215
3260
|
|
|
3216
|
-
export { BOOLEAN_PRESETS, BehaviorConfigEditorComponent, CURRENCY_PRESETS, ColumnsConfigEditorComponent, DATE_PRESETS, DataFormatterComponent, DataFormattingService, FORMULA_TEMPLATES, FilterConfigService, FilterSettingsComponent, FormulaGeneratorService, JsonConfigEditorComponent, MessagesLocalizationEditorComponent, NUMBER_PRESETS, PERCENTAGE_PRESETS, PRAXIS_TABLE_COMPONENT_METADATA, PraxisFilter, PraxisTable, PraxisTableConfigEditor, PraxisTableToolbar, STRING_PRESETS, TABLE_AI_CAPABILITIES, TABLE_COMPONENT_AI_CAPABILITIES, TASK_PRESETS, TableDefaultsProvider, TableRulesEditorComponent, ToolbarActionsEditorComponent, ValueMappingEditorComponent, VisualFormulaBuilderComponent, buildTableApplyPlan, createTableAuthoringDocument, getActionId, getEnum, getTableCapabilities, hasJsonKey, jsonPathGet, jsonPathMatches, normalizeTableAuthoringDocument, parseLegacyOrTableDocument, providePraxisTableMetadata, registerDateDslFunctions, registerJsonDslFunctions, serializeTableAuthoringDocument, toCanonicalTableConfig, validateTableAuthoringDocument };
|
|
3217
|
-
export type { ActionLike, ArithmeticParams, BehaviorConfigChange, BooleanFormatterOptions, BulkAction, Capability$1 as Capability, CapabilityCatalog$1 as CapabilityCatalog, CapabilityCategory$1 as CapabilityCategory, ColumnChange, ColumnDataType$1 as ColumnDataType, ConcatenationParams, ConditionalMappingParams, CurrencyFormatterOptions, DataMode, DateFormatterOptions, DefaultValueParams, EditorDiagnostic, EditorDocument, FieldSchema, FilterConfig, FilterTag, FormatPreset, FormatterConfig, FormulaDefinition, FormulaParameterSchema, FormulaParams, FormulaTemplate, FormulaType, I18n, JsonEditorEvent, JsonValidationResult, MessagesLocalizationChange, NestedPropertyParams, NumberFormatterOptions, PercentageFormatterOptions, ResourcePathIntent, RowAction, RowExpansionChangeBase, RowExpansionChangeEvent, RowExpansionReasonCode, RowExpansionTrigger, StringFormatterOptions, TableApplyPlan, TableAuthoringDocument, TableBindings, Capability as TableComponentCapability, CapabilityCatalog as TableComponentCapabilityCatalog, CapabilityCategory as TableComponentCapabilityCategory, ValueKind as TableComponentValueKind, TableHorizontalScroll, TableProjectionContext, TableRuntimeContext, TableValidationContext, ToolbarAction, ToolbarActionsChange, ValueKind$1 as ValueKind, ValueMappingPair };
|
|
3261
|
+
export { BOOLEAN_PRESETS, BehaviorConfigEditorComponent, CURRENCY_PRESETS, ColumnsConfigEditorComponent, DATE_PRESETS, DataFormatterComponent, DataFormattingService, FORMULA_TEMPLATES, FilterConfigService, FilterSettingsComponent, FormulaGeneratorService, JsonConfigEditorComponent, MessagesLocalizationEditorComponent, NUMBER_PRESETS, PERCENTAGE_PRESETS, PRAXIS_FILTER_COMPONENT_METADATA, PRAXIS_TABLE_COMPONENT_METADATA, PraxisFilter, PraxisTable, PraxisTableConfigEditor, PraxisTableToolbar, STRING_PRESETS, TABLE_AI_CAPABILITIES, TABLE_COMPONENT_AI_CAPABILITIES, TASK_PRESETS, TableDefaultsProvider, TableRulesEditorComponent, ToolbarActionsEditorComponent, ValueMappingEditorComponent, VisualFormulaBuilderComponent, buildTableApplyPlan, createTableAuthoringDocument, getActionId, getEnum, getTableCapabilities, hasJsonKey, jsonPathGet, jsonPathMatches, normalizeTableAuthoringDocument, parseLegacyOrTableDocument, providePraxisFilterMetadata, providePraxisTableMetadata, registerDateDslFunctions, registerJsonDslFunctions, serializeTableAuthoringDocument, toCanonicalTableConfig, validateTableAuthoringDocument };
|
|
3262
|
+
export type { ActionLike, ArithmeticParams, BehaviorConfigChange, BooleanFormatterOptions, BulkAction, Capability$1 as Capability, CapabilityCatalog$1 as CapabilityCatalog, CapabilityCategory$1 as CapabilityCategory, ColumnChange, ColumnDataType$1 as ColumnDataType, ConcatenationParams, ConditionalMappingParams, CurrencyFormatterOptions, DataFormattingOptions, DataMode, DateFormatterOptions, DefaultValueParams, EditorDiagnostic, EditorDocument, FieldSchema, FilterConfig, FilterTag, FormatPreset, FormatterConfig, FormulaDefinition, FormulaParameterSchema, FormulaParams, FormulaTemplate, FormulaType, I18n, JsonEditorEvent, JsonValidationResult, MessagesLocalizationChange, NestedPropertyParams, NumberFormatterOptions, PercentageFormatterOptions, ResourcePathIntent, RowAction, RowExpansionChangeBase, RowExpansionChangeEvent, RowExpansionReasonCode, RowExpansionTrigger, StringFormatterOptions, TableApplyPlan, TableAuthoringDocument, TableBindings, Capability as TableComponentCapability, CapabilityCatalog as TableComponentCapabilityCatalog, CapabilityCategory as TableComponentCapabilityCategory, ValueKind as TableComponentValueKind, TableHorizontalScroll, TableProjectionContext, TableRuntimeContext, TableValidationContext, ToolbarAction, ToolbarActionsChange, ValueKind$1 as ValueKind, ValueMappingPair };
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/table",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.5",
|
|
4
4
|
"description": "Advanced data table for Angular (Praxis UI) with editing, filtering, sorting, virtualization, and settings panel integration.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^20.0.0",
|
|
7
7
|
"@angular/core": "^20.0.0",
|
|
8
|
-
"@praxisui/core": "^3.0.0-beta.
|
|
9
|
-
"@praxisui/dynamic-fields": "^3.0.0-beta.
|
|
10
|
-
"@praxisui/dynamic-form": "^3.0.0-beta.
|
|
11
|
-
"@praxisui/metadata-editor": "^3.0.0-beta.
|
|
12
|
-
"@praxisui/settings-panel": "^3.0.0-beta.
|
|
13
|
-
"@praxisui/table-rule-builder": "^3.0.0-beta.
|
|
8
|
+
"@praxisui/core": "^3.0.0-beta.5",
|
|
9
|
+
"@praxisui/dynamic-fields": "^3.0.0-beta.5",
|
|
10
|
+
"@praxisui/dynamic-form": "^3.0.0-beta.5",
|
|
11
|
+
"@praxisui/metadata-editor": "^3.0.0-beta.5",
|
|
12
|
+
"@praxisui/settings-panel": "^3.0.0-beta.5",
|
|
13
|
+
"@praxisui/table-rule-builder": "^3.0.0-beta.5"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"tslib": "^2.3.0"
|