commons-shared-web-ui 0.0.72 → 0.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/commons-shared-web-ui.mjs +221 -31
- package/fesm2022/commons-shared-web-ui.mjs.map +1 -1
- package/index.d.ts +115 -15
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -45,6 +45,8 @@ import * as i29 from '@angular/cdk/accordion';
|
|
|
45
45
|
import * as i11$2 from 'ngx-quill';
|
|
46
46
|
import * as i11$1 from '@angular/cdk/scrolling';
|
|
47
47
|
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
48
|
+
import * as i5$1 from '@angular/cdk/drag-drop';
|
|
49
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
48
50
|
|
|
49
51
|
type ButtonVariant = 'primary' | 'warning' | 'outline' | 'secondary' | 'success' | 'danger' | 'danger-outline' | 'text';
|
|
50
52
|
interface ButtonLabels {
|
|
@@ -3306,6 +3308,8 @@ interface ConfigFieldNode {
|
|
|
3306
3308
|
visible: boolean;
|
|
3307
3309
|
/** Whether the field is mandatory (required). Only meaningful when `visible` is true. */
|
|
3308
3310
|
mandatory: boolean;
|
|
3311
|
+
/** Column span in the section's 12-column grid (1-12). Freely editable. */
|
|
3312
|
+
colSpan: number;
|
|
3309
3313
|
/** When true, the visibility toggle is locked ON (cannot be hidden). */
|
|
3310
3314
|
lockVisibility: boolean;
|
|
3311
3315
|
/** When true, the mandatory control is locked (cannot be changed). */
|
|
@@ -3345,6 +3349,21 @@ interface ConfigSectionNode {
|
|
|
3345
3349
|
fields: ConfigFieldNode[];
|
|
3346
3350
|
/** Recursively nested child sections. */
|
|
3347
3351
|
subsections: ConfigSectionNode[];
|
|
3352
|
+
/**
|
|
3353
|
+
* Live reference to the schema array `fields` was parsed from (e.g. a section's
|
|
3354
|
+
* `sectionConfig.children`, or the top-level `sectionConfig.children` for a
|
|
3355
|
+
* synthetic bundle). Reordering writes directly into this array so the schema's
|
|
3356
|
+
* own field order — not a separate `sequence` property — drives render order.
|
|
3357
|
+
* Null when there is nothing to reorder into (e.g. an empty section).
|
|
3358
|
+
*/
|
|
3359
|
+
fieldsSource: FieldConfig[] | null;
|
|
3360
|
+
/**
|
|
3361
|
+
* False when this section's own children include a `ROW` wrapper. Reordering is
|
|
3362
|
+
* disabled in that case — flattening a ROW's grouped children into plain
|
|
3363
|
+
* siblings would silently break the row layout, so dragging is turned off
|
|
3364
|
+
* instead of risking a corrupted schema.
|
|
3365
|
+
*/
|
|
3366
|
+
reorderable: boolean;
|
|
3348
3367
|
}
|
|
3349
3368
|
|
|
3350
3369
|
/**
|
|
@@ -3377,6 +3396,16 @@ declare class FieldConfigurationService {
|
|
|
3377
3396
|
toggleFieldVisible(path: number[], fieldIndex: number): void;
|
|
3378
3397
|
/** Toggle a field's mandatory flag. Ignored when locked or hidden. */
|
|
3379
3398
|
toggleFieldMandatory(path: number[], fieldIndex: number): void;
|
|
3399
|
+
/** Set a field's column span, clamped to the 1-12 grid range. */
|
|
3400
|
+
setFieldColSpan(path: number[], fieldIndex: number, colSpan: number): void;
|
|
3401
|
+
/**
|
|
3402
|
+
* Reorder a field within its own section (drag-and-drop). Reordering is scoped to
|
|
3403
|
+
* one section's direct fields — dragging never moves a field across sections.
|
|
3404
|
+
* Rejected (no-op) if the move would place a field above the field it depends on
|
|
3405
|
+
* via `optionConfig.dependencies` (e.g. a "state" field can never sort above the
|
|
3406
|
+
* "country" field it depends on).
|
|
3407
|
+
*/
|
|
3408
|
+
reorderField(path: number[], previousIndex: number, currentIndex: number): void;
|
|
3380
3409
|
/**
|
|
3381
3410
|
* Produce the updated schema. Writes the current tree state onto the working
|
|
3382
3411
|
* clone and returns a fresh deep clone (safe to hand to the host / submit).
|
|
@@ -3398,6 +3427,12 @@ declare class FieldConfigurationService {
|
|
|
3398
3427
|
* derived `visibilityLockedByParent` flag set (drives the disabled toggle in the UI).
|
|
3399
3428
|
*/
|
|
3400
3429
|
private _applyDependencyRules;
|
|
3430
|
+
/**
|
|
3431
|
+
* True when every field with a dependency parent (`parentName`) sorts after that
|
|
3432
|
+
* parent within the given list. Fields whose parent isn't a sibling in this same
|
|
3433
|
+
* list (cross-section dependency, or no such field) are unconstrained here.
|
|
3434
|
+
*/
|
|
3435
|
+
private _isValidFieldOrder;
|
|
3401
3436
|
/** Recursively set visibility on a section and all its descendants (respecting locks). */
|
|
3402
3437
|
private _cascadeVisibility;
|
|
3403
3438
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldConfigurationService, never>;
|
|
@@ -3409,6 +3444,16 @@ interface FieldEventPayload {
|
|
|
3409
3444
|
sectionPath: number[];
|
|
3410
3445
|
fieldIndex: number;
|
|
3411
3446
|
}
|
|
3447
|
+
/** Payload for a field colSpan change, carrying the sub-path from this section down. */
|
|
3448
|
+
interface FieldColSpanPayload extends FieldEventPayload {
|
|
3449
|
+
colSpan: number;
|
|
3450
|
+
}
|
|
3451
|
+
/** Payload for a field drag-reorder, carrying the sub-path from this section down. */
|
|
3452
|
+
interface FieldReorderPayload {
|
|
3453
|
+
sectionPath: number[];
|
|
3454
|
+
previousIndex: number;
|
|
3455
|
+
currentIndex: number;
|
|
3456
|
+
}
|
|
3412
3457
|
/**
|
|
3413
3458
|
* A recursive section/group node in the form-field-configuration tree.
|
|
3414
3459
|
* Emits path-relative events that parents prefix with their own index before
|
|
@@ -3423,6 +3468,8 @@ declare class ConfigSectionNodeComponent {
|
|
|
3423
3468
|
toggleExpanded: EventEmitter<number[]>;
|
|
3424
3469
|
fieldToggleVisible: EventEmitter<FieldEventPayload>;
|
|
3425
3470
|
fieldToggleMandatory: EventEmitter<FieldEventPayload>;
|
|
3471
|
+
fieldColSpanChange: EventEmitter<FieldColSpanPayload>;
|
|
3472
|
+
fieldReorder: EventEmitter<FieldReorderPayload>;
|
|
3426
3473
|
get displayLabel(): string;
|
|
3427
3474
|
get visibleFieldCount(): number;
|
|
3428
3475
|
get hasToggle(): boolean;
|
|
@@ -3430,29 +3477,41 @@ declare class ConfigSectionNodeComponent {
|
|
|
3430
3477
|
onToggleExpanded(): void;
|
|
3431
3478
|
onFieldToggleVisible(fieldIndex: number): void;
|
|
3432
3479
|
onFieldToggleMandatory(fieldIndex: number): void;
|
|
3480
|
+
onFieldColSpanChange(fieldIndex: number, colSpan: number): void;
|
|
3481
|
+
onFieldDrop(event: CdkDragDrop<unknown>): void;
|
|
3433
3482
|
onSubToggleVisible(subIndex: number, subPath: number[]): void;
|
|
3434
3483
|
onSubToggleExpanded(subIndex: number, subPath: number[]): void;
|
|
3435
3484
|
onSubFieldToggleVisible(subIndex: number, payload: FieldEventPayload): void;
|
|
3436
3485
|
onSubFieldToggleMandatory(subIndex: number, payload: FieldEventPayload): void;
|
|
3486
|
+
onSubFieldColSpanChange(subIndex: number, payload: FieldColSpanPayload): void;
|
|
3487
|
+
onSubFieldReorder(subIndex: number, payload: FieldReorderPayload): void;
|
|
3437
3488
|
trackByIndex(index: number): number;
|
|
3438
3489
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigSectionNodeComponent, never>;
|
|
3439
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ConfigSectionNodeComponent, "lib-config-section-node", never, { "section": { "alias": "section"; "required": true; }; "depth": { "alias": "depth"; "required": false; }; "translate": { "alias": "translate"; "required": false; }; }, { "toggleVisible": "toggleVisible"; "toggleExpanded": "toggleExpanded"; "fieldToggleVisible": "fieldToggleVisible"; "fieldToggleMandatory": "fieldToggleMandatory"; }, never, never, false, never>;
|
|
3490
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfigSectionNodeComponent, "lib-config-section-node", never, { "section": { "alias": "section"; "required": true; }; "depth": { "alias": "depth"; "required": false; }; "translate": { "alias": "translate"; "required": false; }; }, { "toggleVisible": "toggleVisible"; "toggleExpanded": "toggleExpanded"; "fieldToggleVisible": "fieldToggleVisible"; "fieldToggleMandatory": "fieldToggleMandatory"; "fieldColSpanChange": "fieldColSpanChange"; "fieldReorder": "fieldReorder"; }, never, never, false, never>;
|
|
3440
3491
|
}
|
|
3441
3492
|
|
|
3442
3493
|
/**
|
|
3443
3494
|
* Form Field Configuration
|
|
3444
3495
|
* ------------------------
|
|
3445
3496
|
* Renders a compact tree of a form schema's sections and fields, each with a
|
|
3446
|
-
* **visibility** toggle
|
|
3447
|
-
*
|
|
3497
|
+
* **visibility** toggle, a **mandatory** control, an editable **column span**,
|
|
3498
|
+
* and a drag handle to **reorder** fields within their own section. Intended to
|
|
3499
|
+
* be embedded inside a `cc-confirmation-modal` on a host page ("Configure fields").
|
|
3448
3500
|
*
|
|
3449
3501
|
* Pass a `FormSchema` via `[schema]`. The input is deep-cloned, so it is never
|
|
3450
3502
|
* mutated. When the user confirms, call `getUpdatedSchema()` to read back the
|
|
3451
|
-
* modified schema (visible/isEnabled/disabled and
|
|
3503
|
+
* modified schema (visible/isEnabled/disabled, required, and colSpan flags
|
|
3504
|
+
* updated, and each section's own children reordered to match the tree).
|
|
3452
3505
|
*
|
|
3453
3506
|
* Fields/sections carrying `lockVisibility: true` cannot be hidden, and
|
|
3454
3507
|
* `lockMandatory: true` freezes their required state.
|
|
3455
3508
|
*
|
|
3509
|
+
* Reordering is scoped to one section's direct fields — a field can never be
|
|
3510
|
+
* dragged into another section, and a field can never be dragged above a field
|
|
3511
|
+
* it depends on via `optionConfig.dependencies` (e.g. "state" can't sort above
|
|
3512
|
+
* "country"). Sections whose children include a `ROW` wrapper can't be
|
|
3513
|
+
* reordered at all (dragging is disabled) to avoid flattening the row layout.
|
|
3514
|
+
*
|
|
3456
3515
|
* @example
|
|
3457
3516
|
* ```html
|
|
3458
3517
|
* <cc-confirmation-modal [isOpen]="open" (confirm)="save()" (cancel)="open = false">
|
|
@@ -3482,6 +3541,8 @@ declare class FormFieldConfigurationComponent implements OnChanges {
|
|
|
3482
3541
|
onToggleExpanded(sectionIndex: number, subPath: number[]): void;
|
|
3483
3542
|
onFieldToggleVisible(sectionIndex: number, payload: FieldEventPayload): void;
|
|
3484
3543
|
onFieldToggleMandatory(sectionIndex: number, payload: FieldEventPayload): void;
|
|
3544
|
+
onFieldColSpanChange(sectionIndex: number, payload: FieldColSpanPayload): void;
|
|
3545
|
+
onFieldReorder(sectionIndex: number, payload: FieldReorderPayload): void;
|
|
3485
3546
|
trackByIndex(index: number): number;
|
|
3486
3547
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldConfigurationComponent, never>;
|
|
3487
3548
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldConfigurationComponent, "lib-form-field-configuration", never, { "schema": { "alias": "schema"; "required": true; }; "translate": { "alias": "translate"; "required": false; }; "showLegend": { "alias": "showLegend"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -3498,14 +3559,16 @@ declare class ConfigFieldNodeComponent {
|
|
|
3498
3559
|
translate?: (key: string) => string;
|
|
3499
3560
|
toggleVisible: EventEmitter<void>;
|
|
3500
3561
|
toggleMandatory: EventEmitter<void>;
|
|
3562
|
+
colSpanChange: EventEmitter<number>;
|
|
3501
3563
|
get displayLabel(): string;
|
|
3564
|
+
onColSpanInput(value: string): void;
|
|
3502
3565
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigFieldNodeComponent, never>;
|
|
3503
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ConfigFieldNodeComponent, "lib-config-field-node", never, { "field": { "alias": "field"; "required": true; }; "translate": { "alias": "translate"; "required": false; }; }, { "toggleVisible": "toggleVisible"; "toggleMandatory": "toggleMandatory"; }, never, never, false, never>;
|
|
3566
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfigFieldNodeComponent, "lib-config-field-node", never, { "field": { "alias": "field"; "required": true; }; "translate": { "alias": "translate"; "required": false; }; }, { "toggleVisible": "toggleVisible"; "toggleMandatory": "toggleMandatory"; "colSpanChange": "colSpanChange"; }, never, never, false, never>;
|
|
3504
3567
|
}
|
|
3505
3568
|
|
|
3506
3569
|
declare class FormFieldConfigurationModule {
|
|
3507
3570
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldConfigurationModule, never>;
|
|
3508
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormFieldConfigurationModule, [typeof FormFieldConfigurationComponent, typeof ConfigSectionNodeComponent, typeof ConfigFieldNodeComponent], [typeof i2$1.CommonModule], [typeof FormFieldConfigurationComponent]>;
|
|
3571
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormFieldConfigurationModule, [typeof FormFieldConfigurationComponent, typeof ConfigSectionNodeComponent, typeof ConfigFieldNodeComponent], [typeof i2$1.CommonModule, typeof i5$1.DragDropModule], [typeof FormFieldConfigurationComponent]>;
|
|
3509
3572
|
static ɵinj: i0.ɵɵInjectorDeclaration<FormFieldConfigurationModule>;
|
|
3510
3573
|
}
|
|
3511
3574
|
|
|
@@ -3517,6 +3580,11 @@ declare class FormFieldConfigurationModule {
|
|
|
3517
3580
|
* clone, so `applyTreeToSchema` simply walks the tree and assigns the node state
|
|
3518
3581
|
* onto those references — there is no positional re-matching, which keeps it robust
|
|
3519
3582
|
* against ROWs, nested groups, and mixed leaf/section children.
|
|
3583
|
+
*
|
|
3584
|
+
* Field order is a plain property of the schema — there is no separate `sequence`
|
|
3585
|
+
* field. Reordering rewrites the schema's own children array in place, so render
|
|
3586
|
+
* order (which simply follows array order, as it always has) reflects the
|
|
3587
|
+
* configurator's choices with no extra sorting logic anywhere else.
|
|
3520
3588
|
*/
|
|
3521
3589
|
declare class ConfigSchemaTreeService {
|
|
3522
3590
|
/**
|
|
@@ -3526,8 +3594,9 @@ declare class ConfigSchemaTreeService {
|
|
|
3526
3594
|
parseSchema(schema: FormSchema): ConfigSectionNode[];
|
|
3527
3595
|
/**
|
|
3528
3596
|
* Write the current tree state back onto the schema the nodes reference.
|
|
3529
|
-
* Sets isEnabled/visible/disabled for visibility
|
|
3530
|
-
*
|
|
3597
|
+
* Sets isEnabled/visible/disabled for visibility, required for mandatory, and
|
|
3598
|
+
* colSpan; and physically reorders each section's own children array to match
|
|
3599
|
+
* the tree's current field order.
|
|
3531
3600
|
*/
|
|
3532
3601
|
applyTreeToSchema(sections: ConfigSectionNode[]): void;
|
|
3533
3602
|
private _buildSections;
|
|
@@ -3536,6 +3605,13 @@ declare class ConfigSchemaTreeService {
|
|
|
3536
3605
|
private _buildField;
|
|
3537
3606
|
private _isSection;
|
|
3538
3607
|
private _applySection;
|
|
3608
|
+
/**
|
|
3609
|
+
* Rewrites `slots` in place so its leaf-field entries follow `fields`' current
|
|
3610
|
+
* order. Section entries (GROUP/SUBFIELDS) keep their original array position —
|
|
3611
|
+
* only the leaf fields move. Safe to call whenever `slots` contains no ROW
|
|
3612
|
+
* (guaranteed by the `reorderable` flag the caller checks).
|
|
3613
|
+
*/
|
|
3614
|
+
private _reorderChildren;
|
|
3539
3615
|
private _applyField;
|
|
3540
3616
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigSchemaTreeService, never>;
|
|
3541
3617
|
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigSchemaTreeService>;
|
|
@@ -3588,6 +3664,12 @@ interface TableColumn {
|
|
|
3588
3664
|
visible?: boolean;
|
|
3589
3665
|
/** Configurator-only flag: when true the column can never be hidden (toggle is replaced by a lock). */
|
|
3590
3666
|
lockVisibility?: boolean;
|
|
3667
|
+
/**
|
|
3668
|
+
* Explicit display order (lower renders first). Columns without a sequence keep their
|
|
3669
|
+
* original relative order, placed after any columns that do have one. Set automatically
|
|
3670
|
+
* by the column configurator when the user reorders columns.
|
|
3671
|
+
*/
|
|
3672
|
+
sequence?: number;
|
|
3591
3673
|
}
|
|
3592
3674
|
interface TableFilter {
|
|
3593
3675
|
key: string;
|
|
@@ -3818,6 +3900,8 @@ declare class TableColumnConfigurationService {
|
|
|
3818
3900
|
loadConfig(config: TableConfig): void;
|
|
3819
3901
|
/** Toggle a column's visibility. Locked columns are ignored. */
|
|
3820
3902
|
toggleColumnVisible(index: number): void;
|
|
3903
|
+
/** Move a column from `previousIndex` to `currentIndex` (drag-and-drop reorder). */
|
|
3904
|
+
reorderColumn(previousIndex: number, currentIndex: number): void;
|
|
3821
3905
|
/**
|
|
3822
3906
|
* Produce the updated config. Writes the current node state onto the working
|
|
3823
3907
|
* clone and returns a fresh deep clone (safe to hand to the host / persist).
|
|
@@ -3825,6 +3909,12 @@ declare class TableColumnConfigurationService {
|
|
|
3825
3909
|
*/
|
|
3826
3910
|
buildUpdatedConfig(): TableConfig | null;
|
|
3827
3911
|
private _buildColumn;
|
|
3912
|
+
/**
|
|
3913
|
+
* Orders columns by `sequence` (ascending). Columns without a `sequence` keep their
|
|
3914
|
+
* original relative order, placed after any columns that do have one — so configs that
|
|
3915
|
+
* never set `sequence` come back untouched (stable sort).
|
|
3916
|
+
*/
|
|
3917
|
+
private _sortBySequence;
|
|
3828
3918
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableColumnConfigurationService, never>;
|
|
3829
3919
|
static ɵprov: i0.ɵɵInjectableDeclaration<TableColumnConfigurationService>;
|
|
3830
3920
|
}
|
|
@@ -3833,15 +3923,17 @@ declare class TableColumnConfigurationService {
|
|
|
3833
3923
|
* Table Column Configuration
|
|
3834
3924
|
* --------------------------
|
|
3835
3925
|
* Renders a compact list of a table config's columns, each with a **visibility**
|
|
3836
|
-
* toggle
|
|
3837
|
-
* ("Configure columns").
|
|
3926
|
+
* toggle and a drag handle for **reordering**. Intended to be embedded inside a
|
|
3927
|
+
* `cc-confirmation-modal` on a host page ("Configure columns").
|
|
3838
3928
|
*
|
|
3839
3929
|
* Pass a `TableConfig` via `[config]`. The input is deep-cloned, so it is never
|
|
3840
|
-
* mutated.
|
|
3841
|
-
*
|
|
3930
|
+
* mutated. Columns load pre-sorted by `sequence` (if set); columns without a
|
|
3931
|
+
* `sequence` keep their original relative order. When the user confirms, call
|
|
3932
|
+
* `getUpdatedConfig()` to read back the modified config (isEnabled/visible flags
|
|
3933
|
+
* and `sequence` updated per column, in the new order).
|
|
3842
3934
|
*
|
|
3843
3935
|
* Columns carrying `lockVisibility: true` cannot be hidden — their toggle is
|
|
3844
|
-
* replaced by a lock icon.
|
|
3936
|
+
* replaced by a lock icon. They can still be dragged to reorder.
|
|
3845
3937
|
*
|
|
3846
3938
|
* @example
|
|
3847
3939
|
* ```html
|
|
@@ -3869,6 +3961,8 @@ declare class TableColumnConfigurationComponent implements OnChanges {
|
|
|
3869
3961
|
*/
|
|
3870
3962
|
getUpdatedConfig(): TableConfig | null;
|
|
3871
3963
|
onToggleVisible(index: number): void;
|
|
3964
|
+
/** Drag-and-drop reorder. Written back as `sequence` on each column by `getUpdatedConfig()`. */
|
|
3965
|
+
onDrop(event: CdkDragDrop<ConfigColumnNode[]>): void;
|
|
3872
3966
|
trackByIndex(index: number): number;
|
|
3873
3967
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableColumnConfigurationComponent, never>;
|
|
3874
3968
|
static ɵcmp: i0.ɵɵComponentDeclaration<TableColumnConfigurationComponent, "lib-table-column-configuration", never, { "config": { "alias": "config"; "required": true; }; "translate": { "alias": "translate"; "required": false; }; "showLegend": { "alias": "showLegend"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -3891,7 +3985,7 @@ declare class ConfigColumnNodeComponent {
|
|
|
3891
3985
|
|
|
3892
3986
|
declare class TableColumnConfigurationModule {
|
|
3893
3987
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableColumnConfigurationModule, never>;
|
|
3894
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TableColumnConfigurationModule, [typeof TableColumnConfigurationComponent, typeof ConfigColumnNodeComponent], [typeof i2$1.CommonModule], [typeof TableColumnConfigurationComponent]>;
|
|
3988
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TableColumnConfigurationModule, [typeof TableColumnConfigurationComponent, typeof ConfigColumnNodeComponent], [typeof i2$1.CommonModule, typeof i5$1.DragDropModule], [typeof TableColumnConfigurationComponent]>;
|
|
3895
3989
|
static ɵinj: i0.ɵɵInjectorDeclaration<TableColumnConfigurationModule>;
|
|
3896
3990
|
}
|
|
3897
3991
|
|
|
@@ -4903,6 +4997,12 @@ declare class SmartTableComponent implements OnInit, OnChanges, AfterViewInit, O
|
|
|
4903
4997
|
private calculateStickyPositions;
|
|
4904
4998
|
private toTitleCase;
|
|
4905
4999
|
get columnCount(): number;
|
|
5000
|
+
/**
|
|
5001
|
+
* Orders `config.columns` by their `sequence` value (ascending). Columns without a
|
|
5002
|
+
* `sequence` are left in their original relative order, placed after any columns that
|
|
5003
|
+
* do have one — so configs that never set `sequence` are left untouched (stable sort).
|
|
5004
|
+
*/
|
|
5005
|
+
private sortColumnsBySequence;
|
|
4906
5006
|
/**
|
|
4907
5007
|
* Filters out actions/action-items that are either explicitly disabled via
|
|
4908
5008
|
* `isEnabled: false` or hidden for the given row by their `visibleWhen` /
|
|
@@ -5228,4 +5328,4 @@ declare class SnackbarModule {
|
|
|
5228
5328
|
}
|
|
5229
5329
|
|
|
5230
5330
|
export { AlertComponent, AlertModule, ButtonComponent, ButtonDropdownComponent, ButtonDropdownModule, ButtonModule, CheckboxComponent, ClickOutsideDirective, ConfigColumnNodeComponent, ConfigFieldNodeComponent, ConfigSchemaTreeService, ConfigSectionNodeComponent, ConfigurableFormComponent, configurableForm_examples_d as ConfigurableFormExamples, ConfigurableFormModule, ConfirmationModalComponent, ConfirmationModalModule, DEFAULT_ITEMS_PER_PAGE, DEFAULT_PAGE_SIZE_OPTIONS, DEFAULT_SIDE_NAV_TOOLTIP_POSITION, DatepickerComponent, DropdownComponent, ExpressionService, FieldConfigurationService, FieldConfiguratorComponent, FieldSelectionComponent, FilterComponent, FilterModule, FilterSidebarComponent, FilterSidebarModule, FilterTableSelectorComponent, FilterTableSelectorModule, FormBuilderModule, FormComponentsModule, FormFieldConfigurationComponent, FormFieldConfigurationModule, InputComponent, MaterialModule, NAV_ORIENTATION_DEFAULT, NAV_VARIANT_DEFAULT, NavComponent, NavModule, PAGINATION_THEME_DARK, PAGINATION_THEME_DEFAULT, PaginationComponent, PaginationModule, RadioComponent, SearchComponent, SharedUiModule, SideNavComponent, SideNavModule, SmartFormComponent, SmartFormController, smartForm_examples_d as SmartFormExamples, SmartFormModule, SmartTableComponent, SmartTableModule, SnackbarComponent, SnackbarModule, SnackbarService, StringUtils, SummaryCardComponent, SummaryCardModule, TableColumnConfigurationComponent, TableColumnConfigurationModule, TableColumnConfigurationService, TimePickerComponent, TimePickerModule, TimeWheelPanelComponent, ToggleComponent, ValidationUtils, appendBaseUrlRecursively, clearLocalStorage, clearSessionStorage, getLocalStorageItem, getSessionStorageItem, removeLocalStorageItem, removeSessionStorageItem, setLocalStorageItem, setSessionStorageItem, translateConfig };
|
|
5231
|
-
export type { ActionVisibility, AlertLabels, AlertVariant, AttachmentConfig, ButtonLabels, ButtonVariant, CheckboxConfig, CheckboxLabels, CheckboxOption, ConfigColumnNode, ConfigFieldNode, ConfigSectionNode, ConfirmationModalConfig, DateConfig, DatePickerConfig, DatepickerLabels, DropdownAction, DropdownConfig, DropdownLabels, DropdownOption, EmailConfig, FieldConfig, FieldEventPayload, FieldType, FilterChangeEvent, FilterConfig, FilterItem, FilterItemType, FilterOutput, FilterPanelConfig, FilterParamMap, FilterSearchConfig, FilterSidebarChangeEvent, FilterSidebarConfig, FilterSidebarOutput, FilterTableConfig, FilterTableSelectorConfig, FormConfig, FormField, FormOption, FormSchema, FormSection, GeneratedConfig, HierarchyCfg, IconInput, InputConfig, InputLabels, InputType, JsonFieldConfig, JsonFormConfig, KeyType, LengthConstraint, LocationConfig, NavItem, NavStyleConfig, NestedStringConfig, NumberConfig, OptionConfig, OptionDTO, OptionItem, PaginationConfig, PaginationLabels, PhoneConfig, QueryParamsConfig, RadioConfig, RadioLabels, RadioOption, RangeConfig, RatingConfig, SearchConfig, SearchLabels, SectionConfig, SelectionConfig, SideNavItem, SideNavSection, SideNavStyleConfig, SnackbarConfig, SnackbarVariant, StepperConfig, SubmitConfig, SuffixActionIcon, SummaryCardConfig, SummaryCardLabels, SummaryCardMeta, TableAction, TableActionItem, TableColumn, TableColumnSubField, TableConfig, TableDataChangeEvent, TableFilter, TableFilterChangeEvent, TableFilterColumn, TableFilterConfig, TableFilterItem, TableFilterLabels, TableFilterOutput, TableLabels, TableOption, TableRowSaveEvent, TableTheme, TextConfig, TimeMode, TimePickerConfig, TimePickerLabels, TimePickerVariant, ToggleConfig, ToggleLabels, UIConfig, UISubType, UIType, UploadedFile, ValidationResult, ValidationRules, VisibilityRule };
|
|
5331
|
+
export type { ActionVisibility, AlertLabels, AlertVariant, AttachmentConfig, ButtonLabels, ButtonVariant, CheckboxConfig, CheckboxLabels, CheckboxOption, ConfigColumnNode, ConfigFieldNode, ConfigSectionNode, ConfirmationModalConfig, DateConfig, DatePickerConfig, DatepickerLabels, DropdownAction, DropdownConfig, DropdownLabels, DropdownOption, EmailConfig, FieldColSpanPayload, FieldConfig, FieldEventPayload, FieldReorderPayload, FieldType, FilterChangeEvent, FilterConfig, FilterItem, FilterItemType, FilterOutput, FilterPanelConfig, FilterParamMap, FilterSearchConfig, FilterSidebarChangeEvent, FilterSidebarConfig, FilterSidebarOutput, FilterTableConfig, FilterTableSelectorConfig, FormConfig, FormField, FormOption, FormSchema, FormSection, GeneratedConfig, HierarchyCfg, IconInput, InputConfig, InputLabels, InputType, JsonFieldConfig, JsonFormConfig, KeyType, LengthConstraint, LocationConfig, NavItem, NavStyleConfig, NestedStringConfig, NumberConfig, OptionConfig, OptionDTO, OptionItem, PaginationConfig, PaginationLabels, PhoneConfig, QueryParamsConfig, RadioConfig, RadioLabels, RadioOption, RangeConfig, RatingConfig, SearchConfig, SearchLabels, SectionConfig, SelectionConfig, SideNavItem, SideNavSection, SideNavStyleConfig, SnackbarConfig, SnackbarVariant, StepperConfig, SubmitConfig, SuffixActionIcon, SummaryCardConfig, SummaryCardLabels, SummaryCardMeta, TableAction, TableActionItem, TableColumn, TableColumnSubField, TableConfig, TableDataChangeEvent, TableFilter, TableFilterChangeEvent, TableFilterColumn, TableFilterConfig, TableFilterItem, TableFilterLabels, TableFilterOutput, TableLabels, TableOption, TableRowSaveEvent, TableTheme, TextConfig, TimeMode, TimePickerConfig, TimePickerLabels, TimePickerVariant, ToggleConfig, ToggleLabels, UIConfig, UISubType, UIType, UploadedFile, ValidationResult, ValidationRules, VisibilityRule };
|