@gettrx/core-components-angular 2.0.1 → 2.0.3
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/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IsActiveMatchOptions } from '@angular/router';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { OnInit, AfterViewInit, ElementRef, EventEmitter, Renderer2, OnDestroy, ChangeDetectorRef, OnChanges, TemplateRef, ViewContainerRef, SimpleChanges, QueryList, KeyValueDiffers, AfterContentInit, NgZone, PipeTransform, AfterViewChecked, AfterContentChecked } from '@angular/core';
|
|
3
|
+
import { OnInit, AfterViewInit, ElementRef, EventEmitter, Renderer2, OnDestroy, ChangeDetectorRef, OnChanges, TemplateRef, ViewContainerRef, SimpleChanges, QueryList, KeyValueDiffers, AfterContentInit, NgZone, PipeTransform, Type, AfterViewChecked, ComponentRef, AfterContentChecked } from '@angular/core';
|
|
4
4
|
import { ControlValueAccessor, NgControl, FormControl, FormGroup, ValidatorFn } from '@angular/forms';
|
|
5
5
|
import * as rxjs from 'rxjs';
|
|
6
6
|
import { Subject, Subscription } from 'rxjs';
|
|
@@ -2865,10 +2865,74 @@ interface TCOLUMN {
|
|
|
2865
2865
|
}
|
|
2866
2866
|
interface TROW {
|
|
2867
2867
|
id: any;
|
|
2868
|
+
/** Responsive-only: show/hide extra columns after `expandAfter`. Not used for desktop detail panels. */
|
|
2868
2869
|
expand?: TEXPAND;
|
|
2869
2870
|
isSelected?: boolean;
|
|
2870
2871
|
columnsData: TCOLUMN[];
|
|
2871
2872
|
}
|
|
2873
|
+
/** Desktop expandable detail panel mode. Independent of responsive `TROW.expand`. */
|
|
2874
|
+
type ExpandMode = 'single' | 'multiple';
|
|
2875
|
+
/** Where the expand/collapse chevron column is rendered. */
|
|
2876
|
+
type ExpandIconPosition = 'start' | 'end';
|
|
2877
|
+
/**
|
|
2878
|
+
* How the expand detail panel is shown on the responsive table.
|
|
2879
|
+
* Desktop (`gtr-table-main`) always uses inline and ignores this.
|
|
2880
|
+
*/
|
|
2881
|
+
type ExpandDisplayMode = 'inline' | 'modal';
|
|
2882
|
+
interface ExpandedChangeEvent {
|
|
2883
|
+
row: TROW;
|
|
2884
|
+
expanded: boolean;
|
|
2885
|
+
expandedIds: any[];
|
|
2886
|
+
}
|
|
2887
|
+
/**
|
|
2888
|
+
* Payload for the `onExpand` output.
|
|
2889
|
+
* Includes the toggled row plus every row that is currently open.
|
|
2890
|
+
*/
|
|
2891
|
+
interface ExpandEvent {
|
|
2892
|
+
isExpanded: boolean;
|
|
2893
|
+
row: TROW;
|
|
2894
|
+
/** Full row objects currently expanded (order follows `data`). */
|
|
2895
|
+
expandedRows: TROW[];
|
|
2896
|
+
/** Ids of currently expanded rows. */
|
|
2897
|
+
expandedIds: any[];
|
|
2898
|
+
}
|
|
2899
|
+
/**
|
|
2900
|
+
* Per-row expand panel configuration.
|
|
2901
|
+
* Return `null` / `undefined` from `expandConfig` for non-expandable rows.
|
|
2902
|
+
*/
|
|
2903
|
+
interface ExpandComponentConfig {
|
|
2904
|
+
/** Detail component to render. When omitted, the lib shows an empty-state message. */
|
|
2905
|
+
component?: Type<any>;
|
|
2906
|
+
inputs?: Record<string, any>;
|
|
2907
|
+
outputs?: string[];
|
|
2908
|
+
/** Inline styles applied to `.gtr-table-detail-panel`. */
|
|
2909
|
+
panelStyle?: {
|
|
2910
|
+
padding?: string;
|
|
2911
|
+
background?: string;
|
|
2912
|
+
};
|
|
2913
|
+
/** Extra CSS class(es) applied to `.gtr-table-detail-panel`. */
|
|
2914
|
+
panelClass?: string;
|
|
2915
|
+
/**
|
|
2916
|
+
* Responsive only. Default: `'inline'`.
|
|
2917
|
+
* - `inline`: chevron reveals columns + detail panel under the card (current behavior).
|
|
2918
|
+
* - `modal`: chevron reveals columns only; detail opens in `gtr-modal` via popover action.
|
|
2919
|
+
*/
|
|
2920
|
+
displayMode?: ExpandDisplayMode;
|
|
2921
|
+
/** Modal title when `displayMode` is `'modal'`. Default: `'Additional information'`. */
|
|
2922
|
+
modalHeader?: string;
|
|
2923
|
+
/** Maps to `gtr-modal` `modalSize`. Default: `'medium'`. */
|
|
2924
|
+
modalSize?: 'small' | 'medium' | 'large';
|
|
2925
|
+
}
|
|
2926
|
+
/**
|
|
2927
|
+
* Standardized envelope when an expanded detail component emits a named output.
|
|
2928
|
+
*/
|
|
2929
|
+
interface ExpandDetailEvent {
|
|
2930
|
+
rowId: any;
|
|
2931
|
+
row: TROW;
|
|
2932
|
+
component: Type<any>;
|
|
2933
|
+
eventName: string;
|
|
2934
|
+
value: unknown;
|
|
2935
|
+
}
|
|
2872
2936
|
interface SkeletonConfigs {
|
|
2873
2937
|
mainTable: SkeletonMainTableConfigs;
|
|
2874
2938
|
resposvieTable: SkeletonResponsiveTableConfigs;
|
|
@@ -2924,6 +2988,10 @@ declare class GtrTableResponsiveComponent implements OnDestroy, AfterViewChecked
|
|
|
2924
2988
|
dynamicHosts: QueryList<DynamicHostDirective>;
|
|
2925
2989
|
isLoading: boolean;
|
|
2926
2990
|
appDynamicHost: any;
|
|
2991
|
+
onExpand: EventEmitter<ExpandEvent>;
|
|
2992
|
+
onExpandDone(ev: ExpandEvent): void;
|
|
2993
|
+
/** Row whose expand detail is currently shown in the shared modal (modal displayMode only). */
|
|
2994
|
+
modalRow: TROW | null;
|
|
2927
2995
|
constructor(cdRef: ChangeDetectorRef, attributesPipe: GtrFetchAttributePipe);
|
|
2928
2996
|
/**
|
|
2929
2997
|
* Set the hide/show state of checbox.
|
|
@@ -2939,6 +3007,28 @@ declare class GtrTableResponsiveComponent implements OnDestroy, AfterViewChecked
|
|
|
2939
3007
|
* Table data
|
|
2940
3008
|
*/
|
|
2941
3009
|
data: TROW[];
|
|
3010
|
+
/**
|
|
3011
|
+
* Enables optional expandable detail rows. Default off — existing tables unchanged.
|
|
3012
|
+
*/
|
|
3013
|
+
expandable: boolean;
|
|
3014
|
+
/**
|
|
3015
|
+
* single: opening one row collapses others. multiple: several rows can stay open.
|
|
3016
|
+
*/
|
|
3017
|
+
expandMode: ExpandMode;
|
|
3018
|
+
/**
|
|
3019
|
+
* Desktop-only position hint. Responsive chevron stays at bottom.
|
|
3020
|
+
*/
|
|
3021
|
+
expandIconPosition: ExpandIconPosition;
|
|
3022
|
+
/**
|
|
3023
|
+
* Per-row expand panel config (component + inputs + outputs + panelStyle/panelClass).
|
|
3024
|
+
* Same config as desktop. When omitted entirely (and expandable=true), rows still expand
|
|
3025
|
+
* and show an empty-state message.
|
|
3026
|
+
*/
|
|
3027
|
+
expandConfig?: (row: TROW) => ExpandComponentConfig | null | undefined;
|
|
3028
|
+
/**
|
|
3029
|
+
* Optional extra gate. When omitted, expandability is driven by `expandConfig(row)`.
|
|
3030
|
+
*/
|
|
3031
|
+
rowExpandable?: (row: TROW) => boolean;
|
|
2942
3032
|
/**
|
|
2943
3033
|
* Table data
|
|
2944
3034
|
*/
|
|
@@ -2960,6 +3050,15 @@ declare class GtrTableResponsiveComponent implements OnDestroy, AfterViewChecked
|
|
|
2960
3050
|
* Sorting eventemitter
|
|
2961
3051
|
*/
|
|
2962
3052
|
onSort: EventEmitter<any>;
|
|
3053
|
+
/**
|
|
3054
|
+
* Emitted when a detail panel is expanded or collapsed.
|
|
3055
|
+
*/
|
|
3056
|
+
expandedChange: EventEmitter<ExpandedChangeEvent>;
|
|
3057
|
+
/**
|
|
3058
|
+
* Typed events from expanded detail component outputs.
|
|
3059
|
+
*/
|
|
3060
|
+
expandDetailEvent: EventEmitter<ExpandDetailEvent>;
|
|
3061
|
+
private expandedIds;
|
|
2963
3062
|
/**
|
|
2964
3063
|
* To check screen size
|
|
2965
3064
|
*/
|
|
@@ -2986,12 +3085,47 @@ declare class GtrTableResponsiveComponent implements OnDestroy, AfterViewChecked
|
|
|
2986
3085
|
*/
|
|
2987
3086
|
checkRowHiddenState(row: any, column: any, expandAttributes: any, i: number): boolean;
|
|
2988
3087
|
/**
|
|
2989
|
-
*
|
|
3088
|
+
* Legacy column-only expand (when expandable feature flag is off).
|
|
2990
3089
|
*/
|
|
2991
3090
|
expandRow(row: any): void;
|
|
3091
|
+
resolveExpandConfig(row: TROW): ExpandComponentConfig | null;
|
|
3092
|
+
/**
|
|
3093
|
+
* True when the row should show an expand control under the new expandable feature.
|
|
3094
|
+
*/
|
|
3095
|
+
isRowExpandable(row: TROW): boolean;
|
|
3096
|
+
/** True when a concrete detail component is configured for the row. */
|
|
3097
|
+
hasExpandComponent(row: TROW): boolean;
|
|
3098
|
+
/** Extra panel class from expandConfig (if any). */
|
|
3099
|
+
getExpandPanelClass(row: TROW): string | string[] | null;
|
|
3100
|
+
/** Inline panel styles from expandConfig (padding / background). */
|
|
3101
|
+
getExpandPanelStyle(row: TROW): Record<string, string> | null;
|
|
3102
|
+
/** Responsive display mode for the row. Default: inline. */
|
|
3103
|
+
getExpandDisplayMode(row: TROW): ExpandDisplayMode;
|
|
3104
|
+
isExpandModalMode(row: TROW): boolean;
|
|
3105
|
+
/**
|
|
3106
|
+
* Show the kebab when the row has actions, or when modal expand needs a trigger
|
|
3107
|
+
* even without an ACTIONS column.
|
|
3108
|
+
*/
|
|
3109
|
+
shouldShowRowMenu(row: TROW): boolean;
|
|
3110
|
+
/** Popover "Additional information" item for modal displayMode. */
|
|
3111
|
+
shouldShowExpandModalAction(row: TROW): boolean;
|
|
3112
|
+
getExpandModalHeader(row: TROW | null): string;
|
|
3113
|
+
getExpandModalSize(row: TROW | null): 'small' | 'medium' | 'large';
|
|
3114
|
+
openExpandModal(row: TROW, event?: Event): void;
|
|
3115
|
+
closeExpandModal(): void;
|
|
3116
|
+
isExpanded(row: TROW): boolean;
|
|
3117
|
+
/** Whether the bottom chevron should render for this row. */
|
|
3118
|
+
showExpandToggle(row: TROW): boolean;
|
|
3119
|
+
/** Whether the chevron should show the open/rotated state. */
|
|
3120
|
+
isExpandToggleOpen(row: TROW): boolean;
|
|
3121
|
+
onExpandToggle(row: TROW, event: Event): void;
|
|
3122
|
+
toggleExpand(row: TROW): void;
|
|
3123
|
+
/** Rows currently open, in table data order. */
|
|
3124
|
+
getExpandedRows(): TROW[];
|
|
3125
|
+
onExpandDetailEvent(event: ExpandDetailEvent): void;
|
|
2992
3126
|
ngOnDestroy(): void;
|
|
2993
3127
|
static ɵfac: i0.ɵɵFactoryDeclaration<GtrTableResponsiveComponent, never>;
|
|
2994
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GtrTableResponsiveComponent, "gtr-table-responsive", ["gtrTableResponsive"], { "isLoading": { "alias": "isLoading"; "required": false; }; "enableSelection": { "alias": "enableSelection"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "tableResponsiveId": { "alias": "tableResponsiveId"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; }, { "onSelection": "onSelection"; "onAction": "onAction"; "handleEvent": "handleEvent"; "onSort": "onSort"; }, never, never, true, never>;
|
|
3128
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GtrTableResponsiveComponent, "gtr-table-responsive", ["gtrTableResponsive"], { "isLoading": { "alias": "isLoading"; "required": false; }; "enableSelection": { "alias": "enableSelection"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; "expandMode": { "alias": "expandMode"; "required": false; }; "expandIconPosition": { "alias": "expandIconPosition"; "required": false; }; "expandConfig": { "alias": "expandConfig"; "required": false; }; "rowExpandable": { "alias": "rowExpandable"; "required": false; }; "tableResponsiveId": { "alias": "tableResponsiveId"; "required": false; }; "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; }, { "onExpand": "onExpand"; "onSelection": "onSelection"; "onAction": "onAction"; "handleEvent": "handleEvent"; "onSort": "onSort"; "expandedChange": "expandedChange"; "expandDetailEvent": "expandDetailEvent"; }, never, never, true, never>;
|
|
2995
3129
|
}
|
|
2996
3130
|
|
|
2997
3131
|
declare class GtrTableMainComponent implements AfterViewChecked {
|
|
@@ -3020,6 +3154,28 @@ declare class GtrTableMainComponent implements AfterViewChecked {
|
|
|
3020
3154
|
* Table data
|
|
3021
3155
|
*/
|
|
3022
3156
|
data: TROW[];
|
|
3157
|
+
/**
|
|
3158
|
+
* Enables optional expandable detail rows (desktop). Default off — existing tables unchanged.
|
|
3159
|
+
*/
|
|
3160
|
+
expandable: boolean;
|
|
3161
|
+
/**
|
|
3162
|
+
* single: opening one row collapses others. multiple: several rows can stay open.
|
|
3163
|
+
*/
|
|
3164
|
+
expandMode: ExpandMode;
|
|
3165
|
+
/**
|
|
3166
|
+
* start: chevron before selection/data. end: chevron after data columns.
|
|
3167
|
+
*/
|
|
3168
|
+
expandIconPosition: ExpandIconPosition;
|
|
3169
|
+
/**
|
|
3170
|
+
* Per-row expand panel config (component + inputs + outputs).
|
|
3171
|
+
* Return null/undefined for non-expandable rows.
|
|
3172
|
+
* When omitted entirely (and expandable=true), rows still expand and show an empty-state message.
|
|
3173
|
+
*/
|
|
3174
|
+
expandConfig?: (row: TROW) => ExpandComponentConfig | null | undefined;
|
|
3175
|
+
/**
|
|
3176
|
+
* Optional extra gate. When omitted, expandability is driven by `expandConfig(row)`.
|
|
3177
|
+
*/
|
|
3178
|
+
rowExpandable?: (row: TROW) => boolean;
|
|
3023
3179
|
/**
|
|
3024
3180
|
* The selection changed eventemitter
|
|
3025
3181
|
*/
|
|
@@ -3040,7 +3196,44 @@ declare class GtrTableMainComponent implements AfterViewChecked {
|
|
|
3040
3196
|
* Sorting eventemitter
|
|
3041
3197
|
*/
|
|
3042
3198
|
onSort: EventEmitter<any>;
|
|
3199
|
+
/**
|
|
3200
|
+
* Emitted when a detail panel is expanded or collapsed.
|
|
3201
|
+
*/
|
|
3202
|
+
expandedChange: EventEmitter<ExpandedChangeEvent>;
|
|
3203
|
+
/**
|
|
3204
|
+
* Typed events from expanded detail component outputs.
|
|
3205
|
+
*/
|
|
3206
|
+
expandDetailEvent: EventEmitter<ExpandDetailEvent>;
|
|
3207
|
+
/**
|
|
3208
|
+
* Typed events from expanded detail component outputs.
|
|
3209
|
+
*/
|
|
3210
|
+
onExpand: EventEmitter<ExpandEvent>;
|
|
3211
|
+
private expandedIds;
|
|
3043
3212
|
ngAfterViewChecked(): void;
|
|
3213
|
+
get detailColSpan(): number;
|
|
3214
|
+
resolveExpandConfig(row: TROW): ExpandComponentConfig | null;
|
|
3215
|
+
/**
|
|
3216
|
+
* True when the row should show an expand control.
|
|
3217
|
+
* - No expandConfig at all → expandable (lib shows empty-state message)
|
|
3218
|
+
* - expandConfig(row) returns null/undefined → not expandable for that row
|
|
3219
|
+
* - expandConfig(row) returns a config → expandable (component or empty-state if no component)
|
|
3220
|
+
*/
|
|
3221
|
+
isRowExpandable(row: TROW): boolean;
|
|
3222
|
+
/** True when a concrete detail component is configured for the row. */
|
|
3223
|
+
hasExpandComponent(row: TROW): boolean;
|
|
3224
|
+
/** Extra panel class from expandConfig (if any). */
|
|
3225
|
+
getExpandPanelClass(row: TROW): string | string[] | null;
|
|
3226
|
+
/** Inline panel styles from expandConfig (padding / background). */
|
|
3227
|
+
getExpandPanelStyle(row: TROW): Record<string, string> | null;
|
|
3228
|
+
isExpanded(row: TROW): boolean;
|
|
3229
|
+
onExpandToggle(row: TROW, event: Event): void;
|
|
3230
|
+
onRowClick(row: TROW, event: MouseEvent): void;
|
|
3231
|
+
onRowKeydown(row: TROW, event: KeyboardEvent): void;
|
|
3232
|
+
toggleExpand(row: TROW): void;
|
|
3233
|
+
/** Rows currently open, in table data order. */
|
|
3234
|
+
getExpandedRows(): TROW[];
|
|
3235
|
+
onExpandDetailEvent(event: ExpandDetailEvent): void;
|
|
3236
|
+
shouldIgnoreRowExpandClick(event: Event): boolean;
|
|
3044
3237
|
onSorting(sortType: number, column: any): void;
|
|
3045
3238
|
actionDone(event: any, rowId: any, action: any): void;
|
|
3046
3239
|
fetchEvent(e: any): void;
|
|
@@ -3049,7 +3242,7 @@ declare class GtrTableMainComponent implements AfterViewChecked {
|
|
|
3049
3242
|
fectchSelection(): boolean;
|
|
3050
3243
|
selectionDone(event: any, item: any): void;
|
|
3051
3244
|
static ɵfac: i0.ɵɵFactoryDeclaration<GtrTableMainComponent, never>;
|
|
3052
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GtrTableMainComponent, "gtr-table-main", ["gtrTableMain"], { "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "enableSelection": { "alias": "enableSelection"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "tableMainId": { "alias": "tableMainId"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "onSelection": "onSelection"; "onAction": "onAction"; "handleEvent": "handleEvent"; "onSort": "onSort"; }, never, never, true, never>;
|
|
3245
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GtrTableMainComponent, "gtr-table-main", ["gtrTableMain"], { "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "enableSelection": { "alias": "enableSelection"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "tableMainId": { "alias": "tableMainId"; "required": false; }; "data": { "alias": "data"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; "expandMode": { "alias": "expandMode"; "required": false; }; "expandIconPosition": { "alias": "expandIconPosition"; "required": false; }; "expandConfig": { "alias": "expandConfig"; "required": false; }; "rowExpandable": { "alias": "rowExpandable"; "required": false; }; }, { "onSelection": "onSelection"; "onAction": "onAction"; "handleEvent": "handleEvent"; "onSort": "onSort"; "expandedChange": "expandedChange"; "expandDetailEvent": "expandDetailEvent"; "onExpand": "onExpand"; }, never, never, true, never>;
|
|
3053
3246
|
}
|
|
3054
3247
|
|
|
3055
3248
|
declare class GtrTableComponent implements OnDestroy {
|
|
@@ -3094,6 +3287,27 @@ declare class GtrTableComponent implements OnDestroy {
|
|
|
3094
3287
|
* Table data
|
|
3095
3288
|
*/
|
|
3096
3289
|
data: TROW[];
|
|
3290
|
+
/**
|
|
3291
|
+
* Enables optional expandable detail rows on the desktop table. Default off.
|
|
3292
|
+
*/
|
|
3293
|
+
expandable: boolean;
|
|
3294
|
+
/**
|
|
3295
|
+
* single: opening one row collapses others. multiple: several rows can stay open.
|
|
3296
|
+
*/
|
|
3297
|
+
expandMode: ExpandMode;
|
|
3298
|
+
/**
|
|
3299
|
+
* start: chevron before selection/data. end: chevron after data columns.
|
|
3300
|
+
*/
|
|
3301
|
+
expandIconPosition: ExpandIconPosition;
|
|
3302
|
+
/**
|
|
3303
|
+
* Per-row expand panel config (component + inputs + outputs).
|
|
3304
|
+
* When omitted (and expandable=true), rows still expand and show a built-in empty-state message.
|
|
3305
|
+
*/
|
|
3306
|
+
expandConfig?: (row: TROW) => ExpandComponentConfig | null | undefined;
|
|
3307
|
+
/**
|
|
3308
|
+
* Optional extra gate. When omitted, expandability is driven by `expandConfig(row)`.
|
|
3309
|
+
*/
|
|
3310
|
+
rowExpandable?: (row: TROW) => boolean;
|
|
3097
3311
|
/**
|
|
3098
3312
|
* The selection changed eventemitter
|
|
3099
3313
|
* @default '{ value: any; all: boolean }'
|
|
@@ -3115,6 +3329,19 @@ declare class GtrTableComponent implements OnDestroy {
|
|
|
3115
3329
|
* Sorting eventemitter
|
|
3116
3330
|
*/
|
|
3117
3331
|
onSort: EventEmitter<any>;
|
|
3332
|
+
/**
|
|
3333
|
+
* Emitted when a detail panel is expanded or collapsed (desktop table).
|
|
3334
|
+
*/
|
|
3335
|
+
expandedChange: EventEmitter<ExpandedChangeEvent>;
|
|
3336
|
+
/**
|
|
3337
|
+
* Typed events from expanded detail component outputs.
|
|
3338
|
+
*/
|
|
3339
|
+
expandDetailEvent: EventEmitter<ExpandDetailEvent>;
|
|
3340
|
+
/**
|
|
3341
|
+
* Emitted when a row is expanded or collapsed.
|
|
3342
|
+
* Includes the toggled row and all currently open rows.
|
|
3343
|
+
*/
|
|
3344
|
+
onExpand: EventEmitter<ExpandEvent>;
|
|
3118
3345
|
/**
|
|
3119
3346
|
* To check screen size
|
|
3120
3347
|
*/
|
|
@@ -3125,14 +3352,38 @@ declare class GtrTableComponent implements OnDestroy {
|
|
|
3125
3352
|
value: boolean;
|
|
3126
3353
|
id: number;
|
|
3127
3354
|
}): void;
|
|
3355
|
+
onExpandDone(ev: ExpandEvent): void;
|
|
3128
3356
|
fetchEvent(ev: any): void;
|
|
3129
3357
|
sorting(ev: {
|
|
3130
3358
|
value: boolean;
|
|
3131
3359
|
id: number;
|
|
3132
3360
|
}): void;
|
|
3361
|
+
onExpandedChange(ev: ExpandedChangeEvent): void;
|
|
3362
|
+
onExpandDetailEvent(ev: ExpandDetailEvent): void;
|
|
3133
3363
|
ngOnDestroy(): void;
|
|
3134
3364
|
static ɵfac: i0.ɵɵFactoryDeclaration<GtrTableComponent, never>;
|
|
3135
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GtrTableComponent, "gtr-table", ["gtrTable"], { "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "isResponsive": { "alias": "isResponsive"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "enableSelection": { "alias": "enableSelection"; "required": false; }; "tableMainId": { "alias": "tableMainId"; "required": false; }; "tableResponsiveId": { "alias": "tableResponsiveId"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "onSelection": "onSelection"; "onAction": "onAction"; "handleEvent": "handleEvent"; "onSort": "onSort"; }, never, never, true, never>;
|
|
3365
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GtrTableComponent, "gtr-table", ["gtrTable"], { "dataTransactionName": { "alias": "dataTransactionName"; "required": false; }; "isResponsive": { "alias": "isResponsive"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "enableSelection": { "alias": "enableSelection"; "required": false; }; "tableMainId": { "alias": "tableMainId"; "required": false; }; "tableResponsiveId": { "alias": "tableResponsiveId"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; "expandMode": { "alias": "expandMode"; "required": false; }; "expandIconPosition": { "alias": "expandIconPosition"; "required": false; }; "expandConfig": { "alias": "expandConfig"; "required": false; }; "rowExpandable": { "alias": "rowExpandable"; "required": false; }; }, { "onSelection": "onSelection"; "onAction": "onAction"; "handleEvent": "handleEvent"; "onSort": "onSort"; "expandedChange": "expandedChange"; "expandDetailEvent": "expandDetailEvent"; "onExpand": "onExpand"; }, never, never, true, never>;
|
|
3366
|
+
}
|
|
3367
|
+
|
|
3368
|
+
interface DynamicRenderOptions<T = any> {
|
|
3369
|
+
component: Type<T>;
|
|
3370
|
+
inputs?: Record<string, any>;
|
|
3371
|
+
outputs?: string[];
|
|
3372
|
+
onEvent?: (eventName: string, value: unknown) => void;
|
|
3373
|
+
}
|
|
3374
|
+
interface DynamicRenderHandle<T = any> {
|
|
3375
|
+
componentRef: ComponentRef<T>;
|
|
3376
|
+
destroy: () => void;
|
|
3377
|
+
}
|
|
3378
|
+
/**
|
|
3379
|
+
* Shared dynamic component renderer for table cells and expandable detail panels.
|
|
3380
|
+
* Creates the component, applies inputs via setInput, and bridges named outputs.
|
|
3381
|
+
*/
|
|
3382
|
+
declare class DynamicComponentRenderer {
|
|
3383
|
+
render<T = any>(viewContainerRef: ViewContainerRef, options: DynamicRenderOptions<T>): DynamicRenderHandle<T>;
|
|
3384
|
+
applyInputs(componentRef: ComponentRef<any>, inputs?: Record<string, any>): void;
|
|
3385
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponentRenderer, never>;
|
|
3386
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicComponentRenderer>;
|
|
3136
3387
|
}
|
|
3137
3388
|
|
|
3138
3389
|
declare class GtrTabComponent {
|
|
@@ -3521,5 +3772,5 @@ declare class ColorHelper {
|
|
|
3521
3772
|
static getContrastColor(hex: string, contrastValue?: number): EContrastColor;
|
|
3522
3773
|
}
|
|
3523
3774
|
|
|
3524
|
-
export { AutosizeDirective, BreakpointInfix, CContrastBorderColorVariable, ColorHelper, EContrastColor, GtrAccordionComponent, GtrAccordionWrapperComponent, GtrBadgeComponent, GtrButtonCloseDirective, GtrButtonComponent, GtrButtonDirective, GtrButtonDropdownComponent, GtrCalendarComponent, GtrCalendarMonthComponent, GtrCalendarNavigationComponent, GtrCheckboxComponent, GtrComponentName, GtrDatePickerComponent, GtrDateRangePickerComponent, GtrDefaultPageIndex, GtrDisplayValueComponent, GtrDropdownCloseDirective, GtrDropdownComponent, GtrDropdownDividerDirective, GtrDropdownHeaderDirective, GtrDropdownItemDirective, GtrDropdownItemPlainDirective, GtrDropdownMenuDirective, GtrDropdownService, GtrDropdownToggleDirective, GtrFileInputComponent, GtrFormCheckComponent, GtrFormCheckInputDirective, GtrFormCheckLabelDirective, GtrFormControlDirective, GtrFormDirective, GtrFormFeedbackComponent, GtrFormFloatingDirective, GtrFormLabelDirective, GtrFormSelectDirective, GtrFormTextDirective, GtrFormatSelectedValuePipe, GtrHtmlAttributesDirective, GtrIconComponent, GtrInputColorComponent, GtrInputComponent, GtrInputGroupComponent, GtrInputGroupTextDirective, GtrModalComponent, GtrNumericCounterComponent, GtrPageSizeOptions, GtrPaginationComponent, GtrPopoverComponent, GtrRadioButtonComponent, GtrSelectComponent, GtrSelectListLoaderVariation, GtrSkeletonComponent, GtrSkeletonDirective, GtrStatCardComponent, GtrSwitchComponent, GtrTabComponent, GtrTableComponent, GtrTableMainComponent, GtrTableResponsiveComponent, GtrTabsWrapperComponent, GtrTagsInputComponent, GtrTemplateIdDirective, GtrTextareaComponent, GtrTimePickerComponent, GtrToasterComponent, GtrToasterService, GtrTooltipComponent, GtrTrimTextPipe, GtrValidatePagePipe, convert12hTo24h, convert24hTo12h, convertTimeToDate, getAmPm, getDayPeriods, getListOfHours, getListOfMinutes, getListOfSeconds, getSelectedHour, getSelectedMinutes, getSelectedSeconds, getSupportedLocale, isAm, isAmPm, isHour12, isPm, isValidTime, isValidTimeZone };
|
|
3525
|
-
export type { Alignment, BackgroundColors, BadgePositions, BreakpointInfixStrings, Breakpoints, ButtonType$1 as ButtonType, Colors, ColorsGradient, DateTimeFormatOptions, DayPeriod, Directions, GrtPaginationType, GtrCheckboxValueChanged, GtrFileInputList, GtrNumericCounterChangeEvent, GtrPage, GtrPageEvent, GtrPaginationOptions, GtrSelectScroll, IDayPeriods, INavAttributes, INavLinkProps, ITimeValue, InputType, Placements, Positions, Shapes, Sizes, TCOLUMN, THEAD, TROW, TextColors, Triggers };
|
|
3775
|
+
export { AutosizeDirective, BreakpointInfix, CContrastBorderColorVariable, ColorHelper, DynamicComponentRenderer, EContrastColor, GtrAccordionComponent, GtrAccordionWrapperComponent, GtrBadgeComponent, GtrButtonCloseDirective, GtrButtonComponent, GtrButtonDirective, GtrButtonDropdownComponent, GtrCalendarComponent, GtrCalendarMonthComponent, GtrCalendarNavigationComponent, GtrCheckboxComponent, GtrComponentName, GtrDatePickerComponent, GtrDateRangePickerComponent, GtrDefaultPageIndex, GtrDisplayValueComponent, GtrDropdownCloseDirective, GtrDropdownComponent, GtrDropdownDividerDirective, GtrDropdownHeaderDirective, GtrDropdownItemDirective, GtrDropdownItemPlainDirective, GtrDropdownMenuDirective, GtrDropdownService, GtrDropdownToggleDirective, GtrFileInputComponent, GtrFormCheckComponent, GtrFormCheckInputDirective, GtrFormCheckLabelDirective, GtrFormControlDirective, GtrFormDirective, GtrFormFeedbackComponent, GtrFormFloatingDirective, GtrFormLabelDirective, GtrFormSelectDirective, GtrFormTextDirective, GtrFormatSelectedValuePipe, GtrHtmlAttributesDirective, GtrIconComponent, GtrInputColorComponent, GtrInputComponent, GtrInputGroupComponent, GtrInputGroupTextDirective, GtrModalComponent, GtrNumericCounterComponent, GtrPageSizeOptions, GtrPaginationComponent, GtrPopoverComponent, GtrRadioButtonComponent, GtrSelectComponent, GtrSelectListLoaderVariation, GtrSkeletonComponent, GtrSkeletonDirective, GtrStatCardComponent, GtrSwitchComponent, GtrTabComponent, GtrTableComponent, GtrTableMainComponent, GtrTableResponsiveComponent, GtrTabsWrapperComponent, GtrTagsInputComponent, GtrTemplateIdDirective, GtrTextareaComponent, GtrTimePickerComponent, GtrToasterComponent, GtrToasterService, GtrTooltipComponent, GtrTrimTextPipe, GtrValidatePagePipe, convert12hTo24h, convert24hTo12h, convertTimeToDate, getAmPm, getDayPeriods, getListOfHours, getListOfMinutes, getListOfSeconds, getSelectedHour, getSelectedMinutes, getSelectedSeconds, getSupportedLocale, isAm, isAmPm, isHour12, isPm, isValidTime, isValidTimeZone };
|
|
3776
|
+
export type { Alignment, BackgroundColors, BadgePositions, BreakpointInfixStrings, Breakpoints, ButtonType$1 as ButtonType, Colors, ColorsGradient, DateTimeFormatOptions, DayPeriod, Directions, ExpandComponentConfig, ExpandDetailEvent, ExpandDisplayMode, ExpandEvent, ExpandIconPosition, ExpandMode, ExpandedChangeEvent, GrtPaginationType, GtrCheckboxValueChanged, GtrFileInputList, GtrNumericCounterChangeEvent, GtrPage, GtrPageEvent, GtrPaginationOptions, GtrSelectScroll, IDayPeriods, INavAttributes, INavLinkProps, ITimeValue, InputType, Placements, Positions, Shapes, Sizes, TCOLUMN, THEAD, TROW, TextColors, Triggers };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gettrx/core-components-angular",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Angular specific wrappers for @gettrx/core-components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"gettrx",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@angular/core": "^20.0.0",
|
|
23
23
|
"@angular/forms": "^20.0.0",
|
|
24
24
|
"@angular/router": "^20.0.0",
|
|
25
|
-
"@gettrx/core-styles": "2.0.
|
|
25
|
+
"@gettrx/core-styles": "2.0.3",
|
|
26
26
|
"ngx-colors": "^3.6.0"
|
|
27
27
|
},
|
|
28
28
|
"module": "fesm2022/gettrx-core-components-angular.mjs",
|