@testgorilla/tgo-ui 11.22.3 → 12.0.0
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/testgorilla-tgo-ui-components-accordion.mjs +335 -229
- package/fesm2022/testgorilla-tgo-ui-components-accordion.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-ai-audio-circle.mjs +547 -465
- package/fesm2022/testgorilla-tgo-ui-components-ai-audio-circle.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-ai-caveat.mjs +160 -75
- package/fesm2022/testgorilla-tgo-ui-components-ai-caveat.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-ai-feedback.mjs +678 -278
- package/fesm2022/testgorilla-tgo-ui-components-ai-feedback.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-alert-banner.mjs +337 -274
- package/fesm2022/testgorilla-tgo-ui-components-alert-banner.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-audio-waveform.mjs +351 -192
- package/fesm2022/testgorilla-tgo-ui-components-audio-waveform.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-autocomplete-v2.mjs +1950 -960
- package/fesm2022/testgorilla-tgo-ui-components-autocomplete-v2.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-autocomplete.mjs +1206 -1044
- package/fesm2022/testgorilla-tgo-ui-components-autocomplete.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-avatar.mjs +328 -182
- package/fesm2022/testgorilla-tgo-ui-components-avatar.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-badge.mjs +383 -203
- package/fesm2022/testgorilla-tgo-ui-components-badge.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-breadcrumb.mjs +553 -261
- package/fesm2022/testgorilla-tgo-ui-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-button.mjs +709 -739
- package/fesm2022/testgorilla-tgo-ui-components-button.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-card.mjs +219 -184
- package/fesm2022/testgorilla-tgo-ui-components-card.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-checkbox.mjs +515 -458
- package/fesm2022/testgorilla-tgo-ui-components-checkbox.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-checklist.mjs +423 -162
- package/fesm2022/testgorilla-tgo-ui-components-checklist.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-core.mjs +10784 -10996
- package/fesm2022/testgorilla-tgo-ui-components-core.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-datepicker.mjs +810 -533
- package/fesm2022/testgorilla-tgo-ui-components-datepicker.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-device-control.mjs +473 -116
- package/fesm2022/testgorilla-tgo-ui-components-device-control.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-dialog.mjs +1149 -540
- package/fesm2022/testgorilla-tgo-ui-components-dialog.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-divider.mjs +148 -84
- package/fesm2022/testgorilla-tgo-ui-components-divider.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-donut-chart.mjs +239 -142
- package/fesm2022/testgorilla-tgo-ui-components-donut-chart.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-dropdown.mjs +599 -467
- package/fesm2022/testgorilla-tgo-ui-components-dropdown.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-elevation-shadow.mjs +126 -70
- package/fesm2022/testgorilla-tgo-ui-components-elevation-shadow.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-empty-state.mjs +324 -329
- package/fesm2022/testgorilla-tgo-ui-components-empty-state.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-field.mjs +969 -648
- package/fesm2022/testgorilla-tgo-ui-components-field.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-file-upload.mjs +553 -419
- package/fesm2022/testgorilla-tgo-ui-components-file-upload.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-filter-button.mjs +847 -452
- package/fesm2022/testgorilla-tgo-ui-components-filter-button.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-gaussian-chart.mjs +398 -302
- package/fesm2022/testgorilla-tgo-ui-components-gaussian-chart.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-icon-label.mjs +162 -95
- package/fesm2022/testgorilla-tgo-ui-components-icon-label.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-icon.mjs +1825 -1795
- package/fesm2022/testgorilla-tgo-ui-components-icon.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-infinite-scroll-table.mjs +1018 -672
- package/fesm2022/testgorilla-tgo-ui-components-infinite-scroll-table.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-inline-field.mjs +758 -368
- package/fesm2022/testgorilla-tgo-ui-components-inline-field.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-logo.mjs +204 -212
- package/fesm2022/testgorilla-tgo-ui-components-logo.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-media-card.mjs +183 -48
- package/fesm2022/testgorilla-tgo-ui-components-media-card.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-media-dialog.mjs +243 -79
- package/fesm2022/testgorilla-tgo-ui-components-media-dialog.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-multi-input.mjs +751 -361
- package/fesm2022/testgorilla-tgo-ui-components-multi-input.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-navbar.mjs +1122 -385
- package/fesm2022/testgorilla-tgo-ui-components-navbar.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-overflow-menu.mjs +689 -413
- package/fesm2022/testgorilla-tgo-ui-components-overflow-menu.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-page-header.mjs +227 -92
- package/fesm2022/testgorilla-tgo-ui-components-page-header.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-paginator.mjs +174 -113
- package/fesm2022/testgorilla-tgo-ui-components-paginator.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-password-criteria.mjs +367 -165
- package/fesm2022/testgorilla-tgo-ui-components-password-criteria.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-password-strength.mjs +253 -118
- package/fesm2022/testgorilla-tgo-ui-components-password-strength.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-phone-input.mjs +730 -444
- package/fesm2022/testgorilla-tgo-ui-components-phone-input.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-popover.mjs +533 -221
- package/fesm2022/testgorilla-tgo-ui-components-popover.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-popup-tip.mjs +274 -76
- package/fesm2022/testgorilla-tgo-ui-components-popup-tip.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-progress-bar.mjs +184 -124
- package/fesm2022/testgorilla-tgo-ui-components-progress-bar.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-prompt.mjs +1223 -574
- package/fesm2022/testgorilla-tgo-ui-components-prompt.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-radial-progress.mjs +249 -160
- package/fesm2022/testgorilla-tgo-ui-components-radial-progress.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-radio-button.mjs +447 -439
- package/fesm2022/testgorilla-tgo-ui-components-radio-button.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-rating.mjs +226 -150
- package/fesm2022/testgorilla-tgo-ui-components-rating.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-scale-table.mjs +255 -67
- package/fesm2022/testgorilla-tgo-ui-components-scale-table.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-scale.mjs +205 -162
- package/fesm2022/testgorilla-tgo-ui-components-scale.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-segmented-bar.mjs +245 -153
- package/fesm2022/testgorilla-tgo-ui-components-segmented-bar.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-segmented-button.mjs +274 -140
- package/fesm2022/testgorilla-tgo-ui-components-segmented-button.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-segmented-toggle.mjs +319 -147
- package/fesm2022/testgorilla-tgo-ui-components-segmented-toggle.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-selectable-card.mjs +286 -84
- package/fesm2022/testgorilla-tgo-ui-components-selectable-card.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-side-navigation.mjs +660 -208
- package/fesm2022/testgorilla-tgo-ui-components-side-navigation.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-side-panel.mjs +579 -320
- package/fesm2022/testgorilla-tgo-ui-components-side-panel.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-side-sheet.mjs +419 -200
- package/fesm2022/testgorilla-tgo-ui-components-side-sheet.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-skeleton.mjs +132 -80
- package/fesm2022/testgorilla-tgo-ui-components-skeleton.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-slider.mjs +741 -390
- package/fesm2022/testgorilla-tgo-ui-components-slider.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-snackbar.mjs +455 -329
- package/fesm2022/testgorilla-tgo-ui-components-snackbar.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-spider-chart.mjs +543 -514
- package/fesm2022/testgorilla-tgo-ui-components-spider-chart.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-spinner.mjs +193 -104
- package/fesm2022/testgorilla-tgo-ui-components-spinner.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-stepper.mjs +760 -524
- package/fesm2022/testgorilla-tgo-ui-components-stepper.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-table.mjs +714 -415
- package/fesm2022/testgorilla-tgo-ui-components-table.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-tabs.mjs +847 -438
- package/fesm2022/testgorilla-tgo-ui-components-tabs.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-tag.mjs +535 -275
- package/fesm2022/testgorilla-tgo-ui-components-tag.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-toggle.mjs +316 -246
- package/fesm2022/testgorilla-tgo-ui-components-toggle.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-tooltip.mjs +404 -284
- package/fesm2022/testgorilla-tgo-ui-components-tooltip.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-universal-skills.mjs +664 -383
- package/fesm2022/testgorilla-tgo-ui-components-universal-skills.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-validation-error.mjs +201 -112
- package/fesm2022/testgorilla-tgo-ui-components-validation-error.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-write-with-ai.mjs +1014 -458
- package/fesm2022/testgorilla-tgo-ui-components-write-with-ai.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui.mjs +147 -155
- package/fesm2022/testgorilla-tgo-ui.mjs.map +1 -1
- package/mcp/catalog.json +1 -1
- package/package.json +16 -17
- package/projects/tgo-canopy-ui/theme/_palette.scss +23 -18
- package/types/testgorilla-tgo-ui-components-accordion.d.ts +214 -158
- package/types/testgorilla-tgo-ui-components-ai-audio-circle.d.ts +93 -69
- package/types/testgorilla-tgo-ui-components-ai-caveat.d.ts +37 -34
- package/types/testgorilla-tgo-ui-components-ai-feedback.d.ts +126 -86
- package/types/testgorilla-tgo-ui-components-alert-banner.d.ts +260 -185
- package/types/testgorilla-tgo-ui-components-audio-waveform.d.ts +96 -67
- package/types/testgorilla-tgo-ui-components-autocomplete-v2.d.ts +455 -256
- package/types/testgorilla-tgo-ui-components-autocomplete.d.ts +545 -390
- package/types/testgorilla-tgo-ui-components-avatar.d.ts +128 -102
- package/types/testgorilla-tgo-ui-components-badge.d.ts +191 -139
- package/types/testgorilla-tgo-ui-components-breadcrumb.d.ts +100 -62
- package/types/testgorilla-tgo-ui-components-button.d.ts +479 -340
- package/types/testgorilla-tgo-ui-components-card.d.ts +153 -114
- package/types/testgorilla-tgo-ui-components-checkbox.d.ts +299 -223
- package/types/testgorilla-tgo-ui-components-checklist.d.ts +149 -97
- package/types/testgorilla-tgo-ui-components-core.d.ts +307 -295
- package/types/testgorilla-tgo-ui-components-datepicker.d.ts +404 -299
- package/types/testgorilla-tgo-ui-components-device-control.d.ts +151 -81
- package/types/testgorilla-tgo-ui-components-dialog.d.ts +442 -329
- package/types/testgorilla-tgo-ui-components-divider.d.ts +64 -51
- package/types/testgorilla-tgo-ui-components-donut-chart.d.ts +41 -37
- package/types/testgorilla-tgo-ui-components-dropdown.d.ts +335 -241
- package/types/testgorilla-tgo-ui-components-elevation-shadow.d.ts +48 -43
- package/types/testgorilla-tgo-ui-components-empty-state.d.ts +317 -215
- package/types/testgorilla-tgo-ui-components-field.d.ts +559 -388
- package/types/testgorilla-tgo-ui-components-file-upload.d.ts +230 -168
- package/types/testgorilla-tgo-ui-components-filter-button.d.ts +263 -206
- package/types/testgorilla-tgo-ui-components-gaussian-chart.d.ts +107 -94
- package/types/testgorilla-tgo-ui-components-icon-label.d.ts +84 -61
- package/types/testgorilla-tgo-ui-components-icon.d.ts +137 -110
- package/types/testgorilla-tgo-ui-components-infinite-scroll-table.d.ts +429 -303
- package/types/testgorilla-tgo-ui-components-inline-field.d.ts +338 -254
- package/types/testgorilla-tgo-ui-components-logo.d.ts +119 -101
- package/types/testgorilla-tgo-ui-components-media-card.d.ts +51 -35
- package/types/testgorilla-tgo-ui-components-media-dialog.d.ts +40 -45
- package/types/testgorilla-tgo-ui-components-multi-input.d.ts +283 -194
- package/types/testgorilla-tgo-ui-components-navbar.d.ts +326 -208
- package/types/testgorilla-tgo-ui-components-overflow-menu.d.ts +276 -204
- package/types/testgorilla-tgo-ui-components-page-header.d.ts +67 -50
- package/types/testgorilla-tgo-ui-components-paginator.d.ts +103 -70
- package/types/testgorilla-tgo-ui-components-password-criteria.d.ts +67 -58
- package/types/testgorilla-tgo-ui-components-password-strength.d.ts +66 -57
- package/types/testgorilla-tgo-ui-components-phone-input.d.ts +217 -175
- package/types/testgorilla-tgo-ui-components-popover.d.ts +94 -53
- package/types/testgorilla-tgo-ui-components-popup-tip.d.ts +81 -44
- package/types/testgorilla-tgo-ui-components-progress-bar.d.ts +115 -84
- package/types/testgorilla-tgo-ui-components-prompt.d.ts +315 -219
- package/types/testgorilla-tgo-ui-components-radial-progress.d.ts +146 -107
- package/types/testgorilla-tgo-ui-components-radio-button.d.ts +296 -219
- package/types/testgorilla-tgo-ui-components-rating.d.ts +134 -95
- package/types/testgorilla-tgo-ui-components-scale-table.d.ts +67 -47
- package/types/testgorilla-tgo-ui-components-scale.d.ts +91 -66
- package/types/testgorilla-tgo-ui-components-segmented-bar.d.ts +118 -89
- package/types/testgorilla-tgo-ui-components-segmented-button.d.ts +107 -80
- package/types/testgorilla-tgo-ui-components-segmented-toggle.d.ts +138 -105
- package/types/testgorilla-tgo-ui-components-selectable-card.d.ts +90 -56
- package/types/testgorilla-tgo-ui-components-side-navigation.d.ts +183 -107
- package/types/testgorilla-tgo-ui-components-side-panel.d.ts +156 -145
- package/types/testgorilla-tgo-ui-components-side-sheet.d.ts +98 -89
- package/types/testgorilla-tgo-ui-components-skeleton.d.ts +50 -33
- package/types/testgorilla-tgo-ui-components-slider.d.ts +278 -198
- package/types/testgorilla-tgo-ui-components-snackbar.d.ts +211 -159
- package/types/testgorilla-tgo-ui-components-spider-chart.d.ts +140 -121
- package/types/testgorilla-tgo-ui-components-spinner.d.ts +93 -72
- package/types/testgorilla-tgo-ui-components-stepper.d.ts +480 -338
- package/types/testgorilla-tgo-ui-components-table.d.ts +280 -233
- package/types/testgorilla-tgo-ui-components-tabs.d.ts +282 -183
- package/types/testgorilla-tgo-ui-components-tag.d.ts +266 -193
- package/types/testgorilla-tgo-ui-components-toggle.d.ts +180 -132
- package/types/testgorilla-tgo-ui-components-tooltip.d.ts +142 -105
- package/types/testgorilla-tgo-ui-components-universal-skills.d.ts +165 -144
- package/types/testgorilla-tgo-ui-components-validation-error.d.ts +70 -51
- package/types/testgorilla-tgo-ui-components-write-with-ai.d.ts +210 -133
- package/types/testgorilla-tgo-ui.d.ts +52 -45
|
@@ -1,257 +1,304 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
hidePagination?: boolean;
|
|
27
|
-
noDataRowTpl?: TemplateRef<unknown>;
|
|
28
|
-
sortable?: boolean;
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { AfterViewInit, DestroyRef, ElementRef, EventEmitter, OnChanges, OnInit, PipeTransform, SimpleChanges, TemplateRef, Type } from "@angular/core";
|
|
3
|
+
import { PageEvent } from "@angular/material/paginator";
|
|
4
|
+
import * as i7 from "@angular/material/sort";
|
|
5
|
+
import { Sort as Sort$1 } from "@angular/material/sort";
|
|
6
|
+
import * as i2 from "@angular/material/table";
|
|
7
|
+
import { MatTableDataSource } from "@angular/material/table";
|
|
8
|
+
import { BehaviorSubject, Observable } from "rxjs";
|
|
9
|
+
import * as i9 from "@testgorilla/tgo-ui/components/core";
|
|
10
|
+
import { ApplicationTheme, ApplicationTheme as ApplicationTheme$1 } from "@testgorilla/tgo-ui/components/core";
|
|
11
|
+
import * as i1 from "@angular/common";
|
|
12
|
+
import * as i3 from "@angular/material/tooltip";
|
|
13
|
+
import * as i4 from "@testgorilla/tgo-ui/components/skeleton";
|
|
14
|
+
import * as i5 from "@testgorilla/tgo-ui/components/paginator";
|
|
15
|
+
import * as i6 from "@testgorilla/tgo-ui/components/button";
|
|
16
|
+
import * as i8 from "@testgorilla/tgo-ui/components/icon";
|
|
17
|
+
export interface TableConfig<T = any> {
|
|
18
|
+
columns: TableColumn<T>[];
|
|
19
|
+
pagination?: Pagination;
|
|
20
|
+
title?: string;
|
|
21
|
+
width?: number;
|
|
22
|
+
sort?: Sort;
|
|
23
|
+
hidePagination?: boolean;
|
|
24
|
+
noDataRowTpl?: TemplateRef<unknown>;
|
|
25
|
+
sortable?: boolean;
|
|
29
26
|
}
|
|
30
|
-
interface TableConfigWithPagination<T> extends TableConfig<T> {
|
|
31
|
-
|
|
27
|
+
export interface TableConfigWithPagination<T> extends TableConfig<T> {
|
|
28
|
+
pagination?: Pagination;
|
|
32
29
|
}
|
|
33
|
-
interface TableColumn<T = any> {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
30
|
+
export interface TableColumn<T = any> {
|
|
31
|
+
title?: string;
|
|
32
|
+
key: string;
|
|
33
|
+
allowMultiline?: boolean;
|
|
34
|
+
bold?: boolean;
|
|
35
|
+
showTooltip?: boolean;
|
|
36
|
+
tooltip?: string;
|
|
37
|
+
allowSort?: boolean;
|
|
38
|
+
isSticky?: boolean;
|
|
39
|
+
headerCellTemplate?: TemplateRef<unknown>;
|
|
40
|
+
rowCellTemplate?: TemplateRef<unknown>;
|
|
41
|
+
rowCellTemplateClick?: () => void;
|
|
42
|
+
sortHeader?: string;
|
|
43
|
+
hidden?: boolean;
|
|
44
|
+
order?: number;
|
|
45
|
+
fontSize?: '12px' | '14px';
|
|
46
|
+
field?: string;
|
|
47
|
+
type?: ColumnType;
|
|
48
|
+
function?: (v: T) => string;
|
|
49
|
+
renderer?: (v: T) => ComponentRenderer | string;
|
|
50
|
+
styles?: ColumnStyles;
|
|
51
|
+
sortStart?: SortDirection;
|
|
52
|
+
uniqueId?: string;
|
|
56
53
|
}
|
|
57
|
-
interface Pagination {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
54
|
+
export interface Pagination {
|
|
55
|
+
itemsPerPageOptions: number[];
|
|
56
|
+
itemsPerPage: number;
|
|
57
|
+
currentPage: number;
|
|
58
|
+
totalItems: number;
|
|
62
59
|
}
|
|
63
|
-
type TableData = Record<string, unknown>[];
|
|
64
|
-
interface ColumnEllipse {
|
|
65
|
-
|
|
66
|
-
|
|
60
|
+
export type TableData = Record<string, unknown>[];
|
|
61
|
+
export interface ColumnEllipse {
|
|
62
|
+
index: number;
|
|
63
|
+
showTooltip: boolean;
|
|
67
64
|
}
|
|
68
|
-
interface Sort {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
65
|
+
export interface Sort {
|
|
66
|
+
active: string;
|
|
67
|
+
direction: SortDirection;
|
|
68
|
+
defaultSortStart?: SortDirection;
|
|
72
69
|
}
|
|
73
|
-
type SortDirection = 'asc' | 'desc' | '';
|
|
74
|
-
interface TableDetailColumn<T, TDetail> {
|
|
75
|
-
|
|
76
|
-
|
|
70
|
+
export type SortDirection = 'asc' | 'desc' | '';
|
|
71
|
+
export interface TableDetailColumn<T, TDetail> {
|
|
72
|
+
columnDefs: TableColumn<TDetail>[];
|
|
73
|
+
setDetailRowData: (params: DetailRowDataParams<T, TDetail>) => void;
|
|
77
74
|
}
|
|
78
|
-
interface DetailRowDataParams<T, TDetail> {
|
|
79
|
-
|
|
80
|
-
|
|
75
|
+
export interface DetailRowDataParams<T, TDetail> {
|
|
76
|
+
data: T;
|
|
77
|
+
setDetailDataSource(rowData: TDetail[]): void;
|
|
81
78
|
}
|
|
82
|
-
declare enum ColumnType {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
79
|
+
export declare enum ColumnType {
|
|
80
|
+
FIELD = "field",
|
|
81
|
+
FUNCTION = "function",
|
|
82
|
+
RENDERER = "renderer"
|
|
86
83
|
}
|
|
87
|
-
interface ComponentRenderer {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
84
|
+
export interface ComponentRenderer {
|
|
85
|
+
component: Type<unknown>;
|
|
86
|
+
inputs?: Record<string, unknown>;
|
|
87
|
+
outputs?: {
|
|
88
|
+
[key: string]: (event: unknown) => void;
|
|
89
|
+
};
|
|
93
90
|
}
|
|
94
|
-
interface ColumnStyles {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
91
|
+
export interface ColumnStyles {
|
|
92
|
+
alignment?: ColumnAlignment;
|
|
93
|
+
width?: string;
|
|
94
|
+
'min-width'?: string;
|
|
95
|
+
padding?: string;
|
|
99
96
|
}
|
|
100
|
-
declare enum ColumnAlignment {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
97
|
+
export declare enum ColumnAlignment {
|
|
98
|
+
LEFT = "left",
|
|
99
|
+
RIGHT = "right",
|
|
100
|
+
CENTER = "center"
|
|
104
101
|
}
|
|
105
|
-
declare enum ColumnTypeEnum {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
102
|
+
export declare enum ColumnTypeEnum {
|
|
103
|
+
FIELD = "field",
|
|
104
|
+
FUNCTION = "function",
|
|
105
|
+
RENDERER = "renderer"
|
|
109
106
|
}
|
|
110
|
-
declare enum ColumnAlignmentEnum {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
107
|
+
export declare enum ColumnAlignmentEnum {
|
|
108
|
+
LEFT = "left",
|
|
109
|
+
RIGHT = "right",
|
|
110
|
+
CENTER = "center"
|
|
114
111
|
}
|
|
115
|
-
type DataSource = {
|
|
116
|
-
|
|
112
|
+
export type DataSource = {
|
|
113
|
+
[key: string]: unknown;
|
|
117
114
|
};
|
|
118
|
-
type ScrollSettings = {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
115
|
+
export type ScrollSettings = {
|
|
116
|
+
scrollEnd: boolean;
|
|
117
|
+
horizontalScroll: boolean;
|
|
118
|
+
scrollStart: boolean;
|
|
122
119
|
};
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
120
|
+
export declare class TableComponent<T extends DataSource, TDetail extends DataSource> implements OnChanges, AfterViewInit, OnInit {
|
|
121
|
+
private readonly defaultAppTheme;
|
|
122
|
+
private readonly destroyRef;
|
|
123
|
+
protected readonly isMobile$: Observable<boolean>;
|
|
124
|
+
/**
|
|
125
|
+
* Table configuration
|
|
126
|
+
*
|
|
127
|
+
* @type {TableConfig}
|
|
128
|
+
* @memberof TableComponent
|
|
129
|
+
*/
|
|
130
|
+
config: TableConfigWithPagination<T>;
|
|
131
|
+
/**
|
|
132
|
+
* Input property for providing the table data.
|
|
133
|
+
*
|
|
134
|
+
* @type {TableData}
|
|
135
|
+
* @memberof TableComponent
|
|
136
|
+
*/
|
|
137
|
+
data: TableData;
|
|
138
|
+
/**
|
|
139
|
+
* Input property indicating whether the table is in a loading state.
|
|
140
|
+
*
|
|
141
|
+
* @type {boolean}
|
|
142
|
+
* @memberof TableComponent
|
|
143
|
+
* @default false
|
|
144
|
+
*/
|
|
145
|
+
loading: boolean;
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* Defines the application theme
|
|
149
|
+
* @type {ApplicationTheme}
|
|
150
|
+
* @memberof TableComponent
|
|
151
|
+
*/
|
|
152
|
+
applicationTheme: ApplicationTheme$1;
|
|
153
|
+
/**
|
|
154
|
+
* Data structure to select which columns should be rendered and their capabilities
|
|
155
|
+
*
|
|
156
|
+
* @type {TableDetailColumn}
|
|
157
|
+
* @memberof TableComponent
|
|
158
|
+
*/
|
|
159
|
+
tableDetailColumns: TableDetailColumn<T, TDetail>;
|
|
160
|
+
tableDetails: boolean;
|
|
161
|
+
/**
|
|
162
|
+
* Disable border radius for table
|
|
163
|
+
*
|
|
164
|
+
* @type {boolean}
|
|
165
|
+
* @memberof TableComponent
|
|
166
|
+
*/
|
|
167
|
+
disableBorderRadius: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Condensed table
|
|
170
|
+
*
|
|
171
|
+
* @type {boolean}
|
|
172
|
+
* @memberof TableComponent
|
|
173
|
+
*/
|
|
174
|
+
isCondensed: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Sticky header
|
|
177
|
+
*
|
|
178
|
+
* @type {boolean}
|
|
179
|
+
* @memberof TableComponent
|
|
180
|
+
*/
|
|
181
|
+
stickyHeader: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Max height
|
|
184
|
+
*
|
|
185
|
+
* @type {string}
|
|
186
|
+
* @memberof TableComponent
|
|
187
|
+
*/
|
|
188
|
+
maxHeight: string;
|
|
189
|
+
testId: string | null;
|
|
190
|
+
ariaLabel: string;
|
|
191
|
+
onRowClickEvent: EventEmitter<T & {
|
|
192
|
+
index: number;
|
|
193
|
+
}>;
|
|
194
|
+
onDetailRowClickEvent: EventEmitter<TDetail>;
|
|
195
|
+
paginatorChange: EventEmitter<PageEvent>;
|
|
196
|
+
sortChange: EventEmitter<Sort$1>;
|
|
197
|
+
table: ElementRef<HTMLElement>;
|
|
198
|
+
protected tableData: TableData;
|
|
199
|
+
protected sourceData: TableData;
|
|
200
|
+
protected columnsTooltipState: ColumnEllipse[];
|
|
201
|
+
protected tableConfig: TableConfigWithPagination<T>;
|
|
202
|
+
protected displayedColumns: string[];
|
|
203
|
+
protected columnsDetailToDisplay: string[];
|
|
204
|
+
protected skeletonStyleConfig: {
|
|
205
|
+
background: string;
|
|
206
|
+
'border-radius': string;
|
|
207
|
+
height: string;
|
|
208
|
+
};
|
|
209
|
+
protected dataSourceDetail: MatTableDataSource<TDetail, import("@angular/material/paginator").MatPaginator>;
|
|
210
|
+
protected elementDetail: T | null;
|
|
211
|
+
protected readonly DataType: typeof ColumnType;
|
|
212
|
+
protected scrollSettings$: BehaviorSubject<ScrollSettings>;
|
|
213
|
+
constructor(defaultAppTheme: ApplicationTheme$1, destroyRef: DestroyRef, isMobile$: Observable<boolean>);
|
|
214
|
+
ngOnInit(): void;
|
|
215
|
+
ngAfterViewInit(): void;
|
|
216
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
217
|
+
hasTableScroll(): void;
|
|
218
|
+
callRenderer([rendererFn, element]: [(v: T) => ComponentRenderer | string, T]): ComponentRenderer | string | undefined;
|
|
219
|
+
protected onPaginatorChange(event: PageEvent): void;
|
|
220
|
+
protected onChangeColumnSize(columnIndex: number, showTooltip: boolean): void;
|
|
221
|
+
protected onSortChange(sortState: Sort$1, emitEvent?: boolean): void;
|
|
222
|
+
protected onRowClick(rowParams: T, rowIndex: number): void;
|
|
223
|
+
protected onDetailRowClick(rowParams: TDetail): void;
|
|
224
|
+
protected toggleRow(element: T): void;
|
|
225
|
+
private setTableDetailDataSource;
|
|
226
|
+
private setTableConfig;
|
|
227
|
+
private setTableData;
|
|
228
|
+
private readonly defaultPaginationConfig;
|
|
229
|
+
trackColumnUniqueId: (index: number, column: TableColumn<T>) => string;
|
|
230
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any, any>, [{
|
|
231
|
+
optional: true;
|
|
232
|
+
}, null, null]>;
|
|
233
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any, any>, "ui-table", never, {
|
|
234
|
+
"config": {
|
|
235
|
+
"alias": "config";
|
|
236
|
+
"required": true;
|
|
237
|
+
};
|
|
238
|
+
"data": {
|
|
239
|
+
"alias": "data";
|
|
240
|
+
"required": false;
|
|
241
|
+
};
|
|
242
|
+
"loading": {
|
|
243
|
+
"alias": "loading";
|
|
244
|
+
"required": false;
|
|
245
|
+
};
|
|
246
|
+
"applicationTheme": {
|
|
247
|
+
"alias": "applicationTheme";
|
|
248
|
+
"required": false;
|
|
249
|
+
};
|
|
250
|
+
"tableDetailColumns": {
|
|
251
|
+
"alias": "tableDetailColumns";
|
|
252
|
+
"required": false;
|
|
253
|
+
};
|
|
254
|
+
"tableDetails": {
|
|
255
|
+
"alias": "tableDetails";
|
|
256
|
+
"required": false;
|
|
257
|
+
};
|
|
258
|
+
"disableBorderRadius": {
|
|
259
|
+
"alias": "disableBorderRadius";
|
|
260
|
+
"required": false;
|
|
261
|
+
};
|
|
262
|
+
"isCondensed": {
|
|
263
|
+
"alias": "isCondensed";
|
|
264
|
+
"required": false;
|
|
265
|
+
};
|
|
266
|
+
"stickyHeader": {
|
|
267
|
+
"alias": "stickyHeader";
|
|
268
|
+
"required": false;
|
|
269
|
+
};
|
|
270
|
+
"maxHeight": {
|
|
271
|
+
"alias": "maxHeight";
|
|
272
|
+
"required": false;
|
|
273
|
+
};
|
|
274
|
+
"testId": {
|
|
275
|
+
"alias": "testId";
|
|
276
|
+
"required": false;
|
|
277
|
+
};
|
|
278
|
+
"ariaLabel": {
|
|
279
|
+
"alias": "ariaLabel";
|
|
280
|
+
"required": false;
|
|
212
281
|
};
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
ngAfterViewInit(): void;
|
|
220
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
221
|
-
hasTableScroll(): void;
|
|
222
|
-
callRenderer([rendererFn, element]: [(v: T) => ComponentRenderer | string, T]): ComponentRenderer | string | undefined;
|
|
223
|
-
protected onPaginatorChange(event: PageEvent): void;
|
|
224
|
-
protected onChangeColumnSize(columnIndex: number, showTooltip: boolean): void;
|
|
225
|
-
protected onSortChange(sortState: Sort$1, emitEvent?: boolean): void;
|
|
226
|
-
protected onRowClick(rowParams: T, rowIndex: number): void;
|
|
227
|
-
protected onDetailRowClick(rowParams: TDetail): void;
|
|
228
|
-
protected toggleRow(element: T): void;
|
|
229
|
-
private setTableDetailDataSource;
|
|
230
|
-
private setTableConfig;
|
|
231
|
-
private setTableData;
|
|
232
|
-
private readonly defaultPaginationConfig;
|
|
233
|
-
trackColumnUniqueId: (index: number, column: TableColumn<T>) => string;
|
|
234
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any, any>, [{ optional: true; }, null, null]>;
|
|
235
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any, any>, "ui-table", never, { "config": { "alias": "config"; "required": true; }; "data": { "alias": "data"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "tableDetailColumns": { "alias": "tableDetailColumns"; "required": false; }; "tableDetails": { "alias": "tableDetails"; "required": false; }; "disableBorderRadius": { "alias": "disableBorderRadius"; "required": false; }; "isCondensed": { "alias": "isCondensed"; "required": false; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "onRowClickEvent": "onRowClickEvent"; "onDetailRowClickEvent": "onDetailRowClickEvent"; "paginatorChange": "paginatorChange"; "sortChange": "sortChange"; }, never, ["[title-actions]"], true, never>;
|
|
282
|
+
}, {
|
|
283
|
+
"onRowClickEvent": "onRowClickEvent";
|
|
284
|
+
"onDetailRowClickEvent": "onDetailRowClickEvent";
|
|
285
|
+
"paginatorChange": "paginatorChange";
|
|
286
|
+
"sortChange": "sortChange";
|
|
287
|
+
}, never, ["[title-actions]"], true, never>;
|
|
236
288
|
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<SentenceCasePipe, "sentencecase", true>;
|
|
289
|
+
export declare class SentenceCasePipe implements PipeTransform {
|
|
290
|
+
transform(value: string | undefined): string;
|
|
291
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SentenceCasePipe, never>;
|
|
292
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SentenceCasePipe, "sentencecase", true>;
|
|
242
293
|
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<TableComponentModule>;
|
|
294
|
+
export declare class TableComponentModule {
|
|
295
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponentModule, never>;
|
|
296
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TableComponentModule, never, [typeof i1.CommonModule, typeof i2.MatTableModule, typeof i3.MatTooltipModule, typeof i4.SkeletonComponent, typeof i5.PaginatorComponentModule, typeof i6.ButtonComponentModule, typeof i7.MatSortModule, typeof i8.IconComponentModule, typeof i9.EllipseTextDirective, typeof i9.DynamicComponentDirective, typeof i9.DataPropertyGetterPipe, typeof i9.MemoizeFuncPipe, typeof TableComponent, typeof SentenceCasePipe], [typeof TableComponent]>;
|
|
297
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TableComponentModule>;
|
|
248
298
|
}
|
|
249
|
-
|
|
250
299
|
/**
|
|
251
300
|
* Sorting table columns by order value if set.
|
|
252
301
|
* The rest columns keep the same ordering and displayed after the sorted ones.
|
|
253
302
|
*/
|
|
254
|
-
declare const sortByOrder: <T>(columns: TableColumn<T>[]) => TableColumn<T>[];
|
|
255
|
-
|
|
256
|
-
export { ColumnAlignment, ColumnAlignmentEnum, ColumnType, ColumnTypeEnum, SentenceCasePipe, TableComponent, TableComponentModule, sortByOrder };
|
|
257
|
-
export type { ColumnEllipse, ColumnStyles, ComponentRenderer, DataSource, DetailRowDataParams, Pagination, ScrollSettings, Sort, SortDirection, TableColumn, TableConfig, TableConfigWithPagination, TableData, TableDetailColumn };
|
|
303
|
+
export declare const sortByOrder: <T>(columns: TableColumn<T>[]) => TableColumn<T>[];
|
|
304
|
+
export { ApplicationTheme };
|