@tilde-nlp/ngx-common 8.1.87 → 8.1.89
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/tilde-nlp-ngx-common.mjs +156 -80
- package/fesm2022/tilde-nlp-ngx-common.mjs.map +1 -1
- package/index.d.ts +24 -18
- package/package.json +1 -1
|
@@ -20,7 +20,7 @@ import * as i2$4 from '@ngbracket/ngx-layout/flex';
|
|
|
20
20
|
import * as i3 from '@ngbracket/ngx-layout/extended';
|
|
21
21
|
import * as i1$2 from '@angular/common/http';
|
|
22
22
|
import { HttpErrorResponse, provideHttpClient, withInterceptorsFromDi, HttpClient } from '@angular/common/http';
|
|
23
|
-
import * as
|
|
23
|
+
import * as i16 from '@angular/material/paginator';
|
|
24
24
|
import { MatPaginatorIntl, MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
|
|
25
25
|
import * as i2$6 from '@angular/material/progress-spinner';
|
|
26
26
|
import { MatProgressSpinner, MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
@@ -3882,9 +3882,9 @@ const _c3 = ["[additionalActions]", "[batchActions]", "*"];
|
|
|
3882
3882
|
const _c4 = () => [10];
|
|
3883
3883
|
function MultiFunctionalTableComponent_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
3884
3884
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
3885
|
-
i0.ɵɵelementStart(0, "button",
|
|
3885
|
+
i0.ɵɵelementStart(0, "button", 32);
|
|
3886
3886
|
i0.ɵɵlistener("click", function MultiFunctionalTableComponent_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.export()); });
|
|
3887
|
-
i0.ɵɵelementStart(1, "span",
|
|
3887
|
+
i0.ɵɵelementStart(1, "span", 33);
|
|
3888
3888
|
i0.ɵɵtext(2, "cloud_download");
|
|
3889
3889
|
i0.ɵɵelementEnd();
|
|
3890
3890
|
i0.ɵɵelementStart(3, "span");
|
|
@@ -3897,7 +3897,7 @@ function MultiFunctionalTableComponent_button_3_Template(rf, ctx) { if (rf & 1)
|
|
|
3897
3897
|
} }
|
|
3898
3898
|
function MultiFunctionalTableComponent_div_4_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
3899
3899
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
3900
|
-
i0.ɵɵelementStart(0, "div",
|
|
3900
|
+
i0.ɵɵelementStart(0, "div", 38)(1, "button", 39);
|
|
3901
3901
|
i0.ɵɵlistener("click", function MultiFunctionalTableComponent_div_4_div_7_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.clearFilters()); });
|
|
3902
3902
|
i0.ɵɵelementStart(2, "mat-icon");
|
|
3903
3903
|
i0.ɵɵtext(3, "close");
|
|
@@ -3905,16 +3905,16 @@ function MultiFunctionalTableComponent_div_4_div_7_Template(rf, ctx) { if (rf &
|
|
|
3905
3905
|
} }
|
|
3906
3906
|
function MultiFunctionalTableComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
3907
3907
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
3908
|
-
i0.ɵɵelementStart(0, "div",
|
|
3908
|
+
i0.ɵɵelementStart(0, "div", 34)(1, "button", 35);
|
|
3909
3909
|
i0.ɵɵlistener("click", function MultiFunctionalTableComponent_div_4_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.toggleFilterBar()); });
|
|
3910
|
-
i0.ɵɵelementStart(2, "span",
|
|
3910
|
+
i0.ɵɵelementStart(2, "span", 36);
|
|
3911
3911
|
i0.ɵɵtext(3, "filter_list");
|
|
3912
3912
|
i0.ɵɵelementEnd();
|
|
3913
3913
|
i0.ɵɵelementStart(4, "span");
|
|
3914
3914
|
i0.ɵɵtext(5);
|
|
3915
3915
|
i0.ɵɵpipe(6, "translate");
|
|
3916
3916
|
i0.ɵɵelementEnd()();
|
|
3917
|
-
i0.ɵɵtemplate(7, MultiFunctionalTableComponent_div_4_div_7_Template, 4, 0, "div",
|
|
3917
|
+
i0.ɵɵtemplate(7, MultiFunctionalTableComponent_div_4_div_7_Template, 4, 0, "div", 37);
|
|
3918
3918
|
i0.ɵɵelementEnd();
|
|
3919
3919
|
} if (rf & 2) {
|
|
3920
3920
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -3927,7 +3927,7 @@ function MultiFunctionalTableComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
3927
3927
|
} }
|
|
3928
3928
|
function MultiFunctionalTableComponent_div_5_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
3929
3929
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
3930
|
-
i0.ɵɵelementStart(0, "button",
|
|
3930
|
+
i0.ɵɵelementStart(0, "button", 44);
|
|
3931
3931
|
i0.ɵɵlistener("click", function MultiFunctionalTableComponent_div_5_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r7); i0.ɵɵnextContext(); const wildSearch_r8 = i0.ɵɵreference(5); const ctx_r2 = i0.ɵɵnextContext(); wildSearch_r8.value = ""; return i0.ɵɵresetView(ctx_r2.search({ target: { value: "" } })); });
|
|
3932
3932
|
i0.ɵɵelementStart(1, "mat-icon");
|
|
3933
3933
|
i0.ɵɵtext(2, "close");
|
|
@@ -3935,15 +3935,15 @@ function MultiFunctionalTableComponent_div_5_button_7_Template(rf, ctx) { if (rf
|
|
|
3935
3935
|
} }
|
|
3936
3936
|
function MultiFunctionalTableComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
3937
3937
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
3938
|
-
i0.ɵɵelementStart(0, "div",
|
|
3938
|
+
i0.ɵɵelementStart(0, "div", 40)(1, "mat-icon", 41);
|
|
3939
3939
|
i0.ɵɵpipe(2, "translate");
|
|
3940
3940
|
i0.ɵɵtext(3, "search");
|
|
3941
3941
|
i0.ɵɵelementEnd();
|
|
3942
|
-
i0.ɵɵelementStart(4, "input",
|
|
3942
|
+
i0.ɵɵelementStart(4, "input", 42, 4);
|
|
3943
3943
|
i0.ɵɵpipe(6, "translate");
|
|
3944
3944
|
i0.ɵɵlistener("keyup", function MultiFunctionalTableComponent_div_5_Template_input_keyup_4_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.search($event)); });
|
|
3945
3945
|
i0.ɵɵelementEnd();
|
|
3946
|
-
i0.ɵɵtemplate(7, MultiFunctionalTableComponent_div_5_button_7_Template, 3, 0, "button",
|
|
3946
|
+
i0.ɵɵtemplate(7, MultiFunctionalTableComponent_div_5_button_7_Template, 3, 0, "button", 43);
|
|
3947
3947
|
i0.ɵɵelementEnd();
|
|
3948
3948
|
} if (rf & 2) {
|
|
3949
3949
|
const wildSearch_r8 = i0.ɵɵreference(5);
|
|
@@ -3957,75 +3957,90 @@ function MultiFunctionalTableComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
3957
3957
|
} }
|
|
3958
3958
|
function MultiFunctionalTableComponent_tld_filter_bar_7_Template(rf, ctx) { if (rf & 1) {
|
|
3959
3959
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
3960
|
-
i0.ɵɵelementStart(0, "tld-filter-bar",
|
|
3960
|
+
i0.ɵɵelementStart(0, "tld-filter-bar", 45, 5);
|
|
3961
3961
|
i0.ɵɵlistener("filterBarChange", function MultiFunctionalTableComponent_tld_filter_bar_7_Template_tld_filter_bar_filterBarChange_0_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.filtersChanged($event)); });
|
|
3962
3962
|
i0.ɵɵelementEnd();
|
|
3963
3963
|
} if (rf & 2) {
|
|
3964
3964
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
3965
3965
|
i0.ɵɵproperty("filterRowVisible", ctx_r2.filterBarVisible)("settings", ctx_r2.config.filter.settings);
|
|
3966
3966
|
} }
|
|
3967
|
+
function MultiFunctionalTableComponent_th_15_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
3968
|
+
i0.ɵɵelementStart(0, "button", 50);
|
|
3969
|
+
i0.ɵɵpipe(1, "translate");
|
|
3970
|
+
i0.ɵɵelementStart(2, "mat-icon");
|
|
3971
|
+
i0.ɵɵtext(3, "arrow_drop_down");
|
|
3972
|
+
i0.ɵɵelementEnd()();
|
|
3973
|
+
} if (rf & 2) {
|
|
3974
|
+
i0.ɵɵnextContext(2);
|
|
3975
|
+
const rangeSelectMenu_r11 = i0.ɵɵreference(33);
|
|
3976
|
+
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(1, 2, "MULTI_FUNCTIONAL_TABLE.RANGE_SELECT_TITLE"))("matMenuTriggerFor", rangeSelectMenu_r11);
|
|
3977
|
+
} }
|
|
3967
3978
|
function MultiFunctionalTableComponent_th_15_Template(rf, ctx) { if (rf & 1) {
|
|
3968
3979
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
3969
|
-
i0.ɵɵelementStart(0, "th",
|
|
3970
|
-
i0.ɵɵpipe(
|
|
3971
|
-
i0.ɵɵlistener("change", function
|
|
3980
|
+
i0.ɵɵelementStart(0, "th", 46)(1, "div", 47)(2, "mat-checkbox", 48);
|
|
3981
|
+
i0.ɵɵpipe(3, "translate");
|
|
3982
|
+
i0.ɵɵlistener("change", function MultiFunctionalTableComponent_th_15_Template_mat_checkbox_change_2_listener() { i0.ɵɵrestoreView(_r10); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.toggleAllRowSelection()); });
|
|
3983
|
+
i0.ɵɵelementEnd();
|
|
3984
|
+
i0.ɵɵtemplate(4, MultiFunctionalTableComponent_th_15_button_4_Template, 4, 4, "button", 49);
|
|
3972
3985
|
i0.ɵɵelementEnd()();
|
|
3973
3986
|
} if (rf & 2) {
|
|
3974
3987
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
3975
|
-
i0.ɵɵadvance();
|
|
3976
|
-
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(
|
|
3988
|
+
i0.ɵɵadvance(2);
|
|
3989
|
+
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(3, 5, "MULTI_FUNCTIONAL_TABLE.SELECT_ALL"))("disabled", ctx_r2.config.batchConfig.checkBoxesDisabled)("checked", ctx_r2.matSelection.hasValue() && ctx_r2.isAllSelected())("indeterminate", ctx_r2.matSelection.hasValue() && !ctx_r2.isAllSelected());
|
|
3990
|
+
i0.ɵɵadvance(2);
|
|
3991
|
+
i0.ɵɵproperty("ngIf", ctx_r2.config.batchConfig == null ? null : ctx_r2.config.batchConfig.rangeSelection);
|
|
3977
3992
|
} }
|
|
3978
3993
|
function MultiFunctionalTableComponent_td_16_mat_checkbox_1_Template(rf, ctx) { if (rf & 1) {
|
|
3979
|
-
const
|
|
3980
|
-
i0.ɵɵelementStart(0, "mat-checkbox",
|
|
3994
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
3995
|
+
i0.ɵɵelementStart(0, "mat-checkbox", 53);
|
|
3981
3996
|
i0.ɵɵpipe(1, "translate");
|
|
3982
|
-
i0.ɵɵlistener("click", function MultiFunctionalTableComponent_td_16_mat_checkbox_1_Template_mat_checkbox_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
3997
|
+
i0.ɵɵlistener("click", function MultiFunctionalTableComponent_td_16_mat_checkbox_1_Template_mat_checkbox_click_0_listener($event) { i0.ɵɵrestoreView(_r12); return i0.ɵɵresetView($event.stopPropagation()); })("change", function MultiFunctionalTableComponent_td_16_mat_checkbox_1_Template_mat_checkbox_change_0_listener() { i0.ɵɵrestoreView(_r12); const element_r13 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.toggleElementSelection(element_r13)); });
|
|
3983
3998
|
i0.ɵɵelementEnd();
|
|
3984
3999
|
} if (rf & 2) {
|
|
3985
|
-
const
|
|
4000
|
+
const element_r13 = i0.ɵɵnextContext().$implicit;
|
|
3986
4001
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
3987
|
-
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(1, 3, "MULTI_FUNCTIONAL_TABLE.SELECT"))("disabled", ctx_r2.config.batchConfig.checkBoxesDisabled || ctx_r2.preselectedItems.includes(
|
|
4002
|
+
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(1, 3, "MULTI_FUNCTIONAL_TABLE.SELECT"))("disabled", ctx_r2.config.batchConfig.checkBoxesDisabled || ctx_r2.preselectedItems.includes(element_r13) && ctx_r2.disablePreselectedItems)("checked", ctx_r2.matSelection.isSelected(element_r13));
|
|
3988
4003
|
} }
|
|
3989
4004
|
function MultiFunctionalTableComponent_td_16_Template(rf, ctx) { if (rf & 1) {
|
|
3990
|
-
i0.ɵɵelementStart(0, "td",
|
|
3991
|
-
i0.ɵɵtemplate(1, MultiFunctionalTableComponent_td_16_mat_checkbox_1_Template, 2, 5, "mat-checkbox",
|
|
4005
|
+
i0.ɵɵelementStart(0, "td", 51);
|
|
4006
|
+
i0.ɵɵtemplate(1, MultiFunctionalTableComponent_td_16_mat_checkbox_1_Template, 2, 5, "mat-checkbox", 52);
|
|
3992
4007
|
i0.ɵɵelementEnd();
|
|
3993
4008
|
} if (rf & 2) {
|
|
3994
|
-
const
|
|
4009
|
+
const element_r13 = ctx.$implicit;
|
|
3995
4010
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
3996
4011
|
i0.ɵɵadvance();
|
|
3997
|
-
i0.ɵɵproperty("ngIf", ctx_r2.isRowCheckboxAlwaysVisible || ctx_r2.hoveredRow ===
|
|
4012
|
+
i0.ɵɵproperty("ngIf", ctx_r2.isRowCheckboxAlwaysVisible || ctx_r2.hoveredRow === element_r13 || ctx_r2.matSelection.isSelected(element_r13));
|
|
3998
4013
|
} }
|
|
3999
4014
|
function MultiFunctionalTableComponent_tr_17_Template(rf, ctx) { if (rf & 1) {
|
|
4000
|
-
i0.ɵɵelement(0, "tr",
|
|
4015
|
+
i0.ɵɵelement(0, "tr", 54);
|
|
4001
4016
|
} }
|
|
4002
4017
|
function MultiFunctionalTableComponent_tr_18_Template(rf, ctx) { if (rf & 1) {
|
|
4003
|
-
const
|
|
4004
|
-
i0.ɵɵelementStart(0, "tr",
|
|
4005
|
-
i0.ɵɵlistener("click", function MultiFunctionalTableComponent_tr_18_Template_tr_click_0_listener() { const
|
|
4018
|
+
const _r14 = i0.ɵɵgetCurrentView();
|
|
4019
|
+
i0.ɵɵelementStart(0, "tr", 55);
|
|
4020
|
+
i0.ɵɵlistener("click", function MultiFunctionalTableComponent_tr_18_Template_tr_click_0_listener() { const row_r15 = i0.ɵɵrestoreView(_r14).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView((ctx_r2.config == null ? null : ctx_r2.config.rowClickCallback) && (!ctx_r2.config.disableRowClick || !(ctx_r2.config == null ? null : ctx_r2.config.disableRowClick(row_r15))) ? ctx_r2.config == null ? null : ctx_r2.config.rowClickCallback(row_r15) : null); })("mouseover", function MultiFunctionalTableComponent_tr_18_Template_tr_mouseover_0_listener() { const ctx_r15 = i0.ɵɵrestoreView(_r14); const row_r15 = ctx_r15.$implicit; const index_r17 = ctx_r15.index; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.rowHovered(index_r17, row_r15)); })("mouseleave", function MultiFunctionalTableComponent_tr_18_Template_tr_mouseleave_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.rowHoverLeave()); });
|
|
4006
4021
|
i0.ɵɵelementEnd();
|
|
4007
4022
|
} if (rf & 2) {
|
|
4008
|
-
const
|
|
4009
|
-
const
|
|
4023
|
+
const row_r15 = ctx.$implicit;
|
|
4024
|
+
const index_r17 = ctx.index;
|
|
4010
4025
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
4011
|
-
i0.ɵɵclassProp("row-clickable", (ctx_r2.config == null ? null : ctx_r2.config.rowClickCallback) && (!ctx_r2.config.disableRowClick || !(ctx_r2.config == null ? null : ctx_r2.config.disableRowClick(
|
|
4026
|
+
i0.ɵɵclassProp("row-clickable", (ctx_r2.config == null ? null : ctx_r2.config.rowClickCallback) && (!ctx_r2.config.disableRowClick || !(ctx_r2.config == null ? null : ctx_r2.config.disableRowClick(row_r15))))("highlight-error", ctx_r2.highlightErrorElement(index_r17, row_r15))("highlight", ctx_r2.isElementHighlighted(index_r17, row_r15));
|
|
4012
4027
|
} }
|
|
4013
4028
|
function MultiFunctionalTableComponent_th_20_Template(rf, ctx) { if (rf & 1) {
|
|
4014
|
-
i0.ɵɵelementStart(0, "th",
|
|
4029
|
+
i0.ɵɵelementStart(0, "th", 46)(1, "div", 56)(2, "button", 57)(3, "span", 36);
|
|
4015
4030
|
i0.ɵɵtext(4, "more_vert");
|
|
4016
4031
|
i0.ɵɵelementEnd()()()();
|
|
4017
4032
|
} if (rf & 2) {
|
|
4018
4033
|
i0.ɵɵnextContext();
|
|
4019
|
-
const
|
|
4034
|
+
const columnMenu_r18 = i0.ɵɵreference(25);
|
|
4020
4035
|
i0.ɵɵadvance(2);
|
|
4021
|
-
i0.ɵɵproperty("matMenuTriggerFor",
|
|
4036
|
+
i0.ɵɵproperty("matMenuTriggerFor", columnMenu_r18);
|
|
4022
4037
|
} }
|
|
4023
4038
|
function MultiFunctionalTableComponent_td_21_Template(rf, ctx) { if (rf & 1) {
|
|
4024
|
-
i0.ɵɵelement(0, "td",
|
|
4039
|
+
i0.ɵɵelement(0, "td", 51);
|
|
4025
4040
|
} }
|
|
4026
4041
|
function MultiFunctionalTableComponent_ng_container_22_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
4027
|
-
i0.ɵɵelementStart(0, "tr")(1, "td",
|
|
4028
|
-
i0.ɵɵelement(2, "lib-status-display",
|
|
4042
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 59);
|
|
4043
|
+
i0.ɵɵelement(2, "lib-status-display", 60);
|
|
4029
4044
|
i0.ɵɵelementEnd()();
|
|
4030
4045
|
} if (rf & 2) {
|
|
4031
4046
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
@@ -4034,33 +4049,33 @@ function MultiFunctionalTableComponent_ng_container_22_tr_1_Template(rf, ctx) {
|
|
|
4034
4049
|
} }
|
|
4035
4050
|
function MultiFunctionalTableComponent_ng_container_22_Template(rf, ctx) { if (rf & 1) {
|
|
4036
4051
|
i0.ɵɵelementContainerStart(0);
|
|
4037
|
-
i0.ɵɵtemplate(1, MultiFunctionalTableComponent_ng_container_22_tr_1_Template, 3, 1, "tr",
|
|
4052
|
+
i0.ɵɵtemplate(1, MultiFunctionalTableComponent_ng_container_22_tr_1_Template, 3, 1, "tr", 58);
|
|
4038
4053
|
i0.ɵɵelementContainerEnd();
|
|
4039
4054
|
} }
|
|
4040
4055
|
function MultiFunctionalTableComponent_Conditional_23_Template(rf, ctx) { if (rf & 1) {
|
|
4041
|
-
const
|
|
4042
|
-
i0.ɵɵelementStart(0, "mat-paginator",
|
|
4056
|
+
const _r19 = i0.ɵɵgetCurrentView();
|
|
4057
|
+
i0.ɵɵelementStart(0, "mat-paginator", 61);
|
|
4043
4058
|
i0.ɵɵpipe(1, "translate");
|
|
4044
|
-
i0.ɵɵlistener("page", function MultiFunctionalTableComponent_Conditional_23_Template_mat_paginator_page_0_listener($event) { i0.ɵɵrestoreView(
|
|
4059
|
+
i0.ɵɵlistener("page", function MultiFunctionalTableComponent_Conditional_23_Template_mat_paginator_page_0_listener($event) { i0.ɵɵrestoreView(_r19); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.paginatorChange($event)); });
|
|
4045
4060
|
i0.ɵɵelementEnd();
|
|
4046
4061
|
} if (rf & 2) {
|
|
4047
|
-
const
|
|
4048
|
-
i0.ɵɵproperty("pageSize",
|
|
4062
|
+
const paginatorConfig_r20 = i0.ɵɵnextContext().config.paginator;
|
|
4063
|
+
i0.ɵɵproperty("pageSize", paginatorConfig_r20.pageSize ?? 10)("hidePageSize", !paginatorConfig_r20.showPageSize)("showFirstLastButtons", paginatorConfig_r20.showFirstLastButtons)("pageSizeOptions", paginatorConfig_r20.pageSizeOptions ?? i0.ɵɵpureFunction0(7, _c4));
|
|
4049
4064
|
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(1, 5, "MULTI_FUNCTIONAL_TABLE.PAGINATOR_LABEL"));
|
|
4050
4065
|
} }
|
|
4051
4066
|
function MultiFunctionalTableComponent_div_27_Template(rf, ctx) { if (rf & 1) {
|
|
4052
|
-
const
|
|
4053
|
-
i0.ɵɵelementStart(0, "div")(1, "mat-checkbox",
|
|
4054
|
-
i0.ɵɵtwoWayListener("ngModelChange", function MultiFunctionalTableComponent_div_27_Template_mat_checkbox_ngModelChange_1_listener($event) { const
|
|
4067
|
+
const _r21 = i0.ɵɵgetCurrentView();
|
|
4068
|
+
i0.ɵɵelementStart(0, "div")(1, "mat-checkbox", 62);
|
|
4069
|
+
i0.ɵɵtwoWayListener("ngModelChange", function MultiFunctionalTableComponent_div_27_Template_mat_checkbox_ngModelChange_1_listener($event) { const column_r22 = i0.ɵɵrestoreView(_r21).$implicit; i0.ɵɵtwoWayBindingSet(column_r22.selected, $event) || (column_r22.selected = $event); return i0.ɵɵresetView($event); });
|
|
4055
4070
|
i0.ɵɵtext(2);
|
|
4056
4071
|
i0.ɵɵpipe(3, "translate");
|
|
4057
4072
|
i0.ɵɵelementEnd()();
|
|
4058
4073
|
} if (rf & 2) {
|
|
4059
|
-
const
|
|
4074
|
+
const column_r22 = ctx.$implicit;
|
|
4060
4075
|
i0.ɵɵadvance();
|
|
4061
|
-
i0.ɵɵtwoWayProperty("ngModel",
|
|
4076
|
+
i0.ɵɵtwoWayProperty("ngModel", column_r22.selected);
|
|
4062
4077
|
i0.ɵɵadvance();
|
|
4063
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2,
|
|
4078
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, column_r22.displayName), " ");
|
|
4064
4079
|
} }
|
|
4065
4080
|
class MultiFunctionalTableComponent {
|
|
4066
4081
|
#dataSource;
|
|
@@ -4087,10 +4102,13 @@ class MultiFunctionalTableComponent {
|
|
|
4087
4102
|
this.paginatorUpdate = new EventEmitter();
|
|
4088
4103
|
this.exported = new EventEmitter();
|
|
4089
4104
|
this.selectionChange = this.matSelection.changed.asObservable().pipe(map(() => { return this.matSelection.selected; }));
|
|
4105
|
+
this.rangeSelectionApplied = new EventEmitter();
|
|
4090
4106
|
/** This property will be taken into account only if config.DataSource not set. */
|
|
4091
4107
|
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : []));
|
|
4092
4108
|
this.dataSourceUpdateEffect = effect(() => { this.updateDataSourceData(); }, ...(ngDevMode ? [{ debugName: "dataSourceUpdateEffect" }] : []));
|
|
4093
4109
|
this.noDataRowIcon = "manage_search";
|
|
4110
|
+
this.rangeSelectionFrom = null;
|
|
4111
|
+
this.rangeSelectionTo = null;
|
|
4094
4112
|
this.isDragging = false;
|
|
4095
4113
|
this.startX = 0;
|
|
4096
4114
|
this.startY = 0;
|
|
@@ -4230,6 +4248,18 @@ class MultiFunctionalTableComponent {
|
|
|
4230
4248
|
toggleElementSelection(element) {
|
|
4231
4249
|
this.matSelection.toggle(element);
|
|
4232
4250
|
}
|
|
4251
|
+
applyRangeSelection() {
|
|
4252
|
+
if (this.rangeSelectionFrom == null || this.rangeSelectionTo == null) {
|
|
4253
|
+
return;
|
|
4254
|
+
}
|
|
4255
|
+
const start = Math.min(this.rangeSelectionFrom, this.rangeSelectionTo);
|
|
4256
|
+
const end = Math.max(this.rangeSelectionFrom, this.rangeSelectionTo);
|
|
4257
|
+
const selectedIndexes = [];
|
|
4258
|
+
for (let index = start; index <= end; index++) {
|
|
4259
|
+
selectedIndexes.push(index);
|
|
4260
|
+
}
|
|
4261
|
+
this.rangeSelectionApplied.emit(selectedIndexes);
|
|
4262
|
+
}
|
|
4233
4263
|
onMouseDown(event) {
|
|
4234
4264
|
if (this.config.disableMouseDragging) {
|
|
4235
4265
|
return;
|
|
@@ -4414,40 +4444,65 @@ class MultiFunctionalTableComponent {
|
|
|
4414
4444
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.filterBar = _t.first);
|
|
4415
4445
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.paginator = _t.first);
|
|
4416
4446
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tableElementRef = _t.first);
|
|
4417
|
-
} }, inputs: { config: "config", highlightedElements: "highlightedElements", trackByFn: "trackByFn", highlightedErrorElements: "highlightedErrorElements", selection: "selection", isRowCheckboxAlwaysVisible: "isRowCheckboxAlwaysVisible", disablePreselectedItems: "disablePreselectedItems", data: [1, "data"] }, outputs: { filterBarChange: "filterBarChange", paginatorUpdate: "paginatorUpdate", exported: "exported", selectionChange: "selectionChange" }, standalone: false, ngContentSelectors: _c3, decls:
|
|
4447
|
+
} }, inputs: { config: "config", highlightedElements: "highlightedElements", trackByFn: "trackByFn", highlightedErrorElements: "highlightedErrorElements", selection: "selection", isRowCheckboxAlwaysVisible: "isRowCheckboxAlwaysVisible", disablePreselectedItems: "disablePreselectedItems", data: [1, "data"] }, outputs: { filterBarChange: "filterBarChange", paginatorUpdate: "paginatorUpdate", exported: "exported", selectionChange: "selectionChange", rangeSelectionApplied: "rangeSelectionApplied" }, standalone: false, ngContentSelectors: _c3, decls: 53, vars: 36, consts: [["tableContainer", ""], ["table", ""], ["columnMenu", "matMenu"], ["rangeSelectMenu", "matMenu"], ["wildSearch", ""], ["filterBar", ""], ["fxLayout", "column", "fxLayoutGap", "0.75rem", 3, "ngClass.lt-md"], ["fxLayout", "row", "fxLayout.lt-md", "column", "fxLayoutGap.lt-md", "0.75rem"], ["fxFlex", "", "fxLayout.lt-md", "column", "fxLayoutGap", "0.75rem", "fxLayoutAlign", "start center", "fxLayoutAlign.lt-md", "start start", 1, "action-row"], ["class", "export-data", "mat-stroked-button", "", "color", "accent", 3, "click", 4, "ngIf"], ["fxFlex", "", "fxLayoutGap", "0.5rem", "fxLayoutAlign", "start center", 4, "ngIf"], ["fxLayout", "row", "fxLayoutAlign", "start center", "class", "wild-search-wrapper", 4, "ngIf"], [3, "filterRowVisible", "settings", "filterBarChange", 4, "ngIf"], [1, "table-overflow", 3, "mousedown", "mouseup", "mouseleave", "mousemove"], ["mat-table", "", 3, "dataSource", "trackBy"], [3, "matColumnDef"], ["class", "row-select", "mat-header-cell", "", "disable-export", "", 4, "matHeaderCellDef"], ["class", "row-select", "mat-cell", "", "disable-export", "", 4, "matCellDef"], ["mat-header-row", "", 4, "matHeaderRowDef", "matHeaderRowDefSticky"], ["mat-row", "", 3, "row-clickable", "highlight-error", "highlight", "click", "mouseover", "mouseleave", 4, "matRowDef", "matRowDefColumns"], [4, "ngIf"], [3, "pageSize", "hidePageSize", "showFirstLastButtons", "pageSizeOptions"], [1, "column-select-menu", 3, "click"], [4, "ngFor", "ngForOf"], [1, "column-select-save"], ["mat-flat-button", "", "color", "accent", 3, "click"], [1, "range-select-menu", 3, "click", "keydown"], [1, "range-select-title"], [1, "range-select-inputs"], ["appearance", "outline", 1, "range-select-field"], ["matInput", "", "type", "number", "min", "1", 3, "ngModelChange", "ngModel"], [1, "range-select-apply"], ["mat-stroked-button", "", "color", "accent", 1, "export-data", 3, "click"], [1, "material-icons-outlined"], ["fxFlex", "", "fxLayoutGap", "0.5rem", "fxLayoutAlign", "start center"], ["mat-stroked-button", "", "color", "accent", 3, "click"], [1, "material-icons"], ["class", "clear-filters-wrapper", 4, "ngIf"], [1, "clear-filters-wrapper"], ["mat-icon-button", "", 3, "click"], ["fxLayout", "row", "fxLayoutAlign", "start center", 1, "wild-search-wrapper"], [1, "search-icon", 3, "matTooltip"], ["type", "text", 3, "keyup", "value", "placeholder"], ["mat-icon-button", "", "class", "wild-search-clear-btn", 3, "click", 4, "ngIf"], ["mat-icon-button", "", 1, "wild-search-clear-btn", 3, "click"], [3, "filterBarChange", "filterRowVisible", "settings"], ["mat-header-cell", "", "disable-export", "", 1, "row-select"], [1, "batch-header"], [3, "change", "matTooltip", "disabled", "checked", "indeterminate"], ["class", "range-select-trigger", "mat-icon-button", "", 3, "matTooltip", "matMenuTriggerFor", 4, "ngIf"], ["mat-icon-button", "", 1, "range-select-trigger", 3, "matTooltip", "matMenuTriggerFor"], ["mat-cell", "", "disable-export", "", 1, "row-select"], [3, "matTooltip", "disabled", "checked", "click", "change", 4, "ngIf"], [3, "click", "change", "matTooltip", "disabled", "checked"], ["mat-header-row", ""], ["mat-row", "", 3, "click", "mouseover", "mouseleave"], [1, "column-selector-wrapper"], ["mat-icon-button", "", "color", "accent", 1, "column-selector", 3, "matMenuTriggerFor"], [4, "matNoDataRow"], ["colspan", "99"], [3, "config"], [3, "page", "pageSize", "hidePageSize", "showFirstLastButtons", "pageSizeOptions"], [3, "ngModelChange", "ngModel"]], template: function MultiFunctionalTableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4418
4448
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
4419
4449
|
i0.ɵɵprojectionDef(_c2$1);
|
|
4420
|
-
i0.ɵɵelementStart(0, "div",
|
|
4421
|
-
i0.ɵɵtemplate(3, MultiFunctionalTableComponent_button_3_Template, 6, 3, "button",
|
|
4450
|
+
i0.ɵɵelementStart(0, "div", 6)(1, "div", 7)(2, "div", 8);
|
|
4451
|
+
i0.ɵɵtemplate(3, MultiFunctionalTableComponent_button_3_Template, 6, 3, "button", 9)(4, MultiFunctionalTableComponent_div_4_Template, 8, 6, "div", 10);
|
|
4422
4452
|
i0.ɵɵelementEnd();
|
|
4423
|
-
i0.ɵɵtemplate(5, MultiFunctionalTableComponent_div_5_Template, 8, 8, "div",
|
|
4453
|
+
i0.ɵɵtemplate(5, MultiFunctionalTableComponent_div_5_Template, 8, 8, "div", 11);
|
|
4424
4454
|
i0.ɵɵprojection(6);
|
|
4425
4455
|
i0.ɵɵelementEnd();
|
|
4426
|
-
i0.ɵɵtemplate(7, MultiFunctionalTableComponent_tld_filter_bar_7_Template, 2, 2, "tld-filter-bar",
|
|
4456
|
+
i0.ɵɵtemplate(7, MultiFunctionalTableComponent_tld_filter_bar_7_Template, 2, 2, "tld-filter-bar", 12);
|
|
4427
4457
|
i0.ɵɵprojection(8, 1);
|
|
4428
|
-
i0.ɵɵelementStart(9, "div",
|
|
4458
|
+
i0.ɵɵelementStart(9, "div", 13, 0);
|
|
4429
4459
|
i0.ɵɵlistener("mousedown", function MultiFunctionalTableComponent_Template_div_mousedown_9_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onMouseDown($event)); })("mouseup", function MultiFunctionalTableComponent_Template_div_mouseup_9_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onMouseUp()); })("mouseleave", function MultiFunctionalTableComponent_Template_div_mouseleave_9_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onMouseUp()); })("mousemove", function MultiFunctionalTableComponent_Template_div_mousemove_9_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onMouseMove($event)); });
|
|
4430
|
-
i0.ɵɵelementStart(11, "table",
|
|
4460
|
+
i0.ɵɵelementStart(11, "table", 14, 1);
|
|
4431
4461
|
i0.ɵɵprojection(13, 2);
|
|
4432
|
-
i0.ɵɵelementContainerStart(14,
|
|
4433
|
-
i0.ɵɵtemplate(15, MultiFunctionalTableComponent_th_15_Template,
|
|
4462
|
+
i0.ɵɵelementContainerStart(14, 15);
|
|
4463
|
+
i0.ɵɵtemplate(15, MultiFunctionalTableComponent_th_15_Template, 5, 7, "th", 16)(16, MultiFunctionalTableComponent_td_16_Template, 2, 1, "td", 17);
|
|
4434
4464
|
i0.ɵɵelementContainerEnd();
|
|
4435
|
-
i0.ɵɵtemplate(17, MultiFunctionalTableComponent_tr_17_Template, 1, 0, "tr",
|
|
4436
|
-
i0.ɵɵelementContainerStart(19,
|
|
4437
|
-
i0.ɵɵtemplate(20, MultiFunctionalTableComponent_th_20_Template, 5, 1, "th",
|
|
4465
|
+
i0.ɵɵtemplate(17, MultiFunctionalTableComponent_tr_17_Template, 1, 0, "tr", 18)(18, MultiFunctionalTableComponent_tr_18_Template, 1, 6, "tr", 19);
|
|
4466
|
+
i0.ɵɵelementContainerStart(19, 15);
|
|
4467
|
+
i0.ɵɵtemplate(20, MultiFunctionalTableComponent_th_20_Template, 5, 1, "th", 16)(21, MultiFunctionalTableComponent_td_21_Template, 1, 0, "td", 17);
|
|
4438
4468
|
i0.ɵɵelementContainerEnd();
|
|
4439
|
-
i0.ɵɵtemplate(22, MultiFunctionalTableComponent_ng_container_22_Template, 2, 0, "ng-container",
|
|
4469
|
+
i0.ɵɵtemplate(22, MultiFunctionalTableComponent_ng_container_22_Template, 2, 0, "ng-container", 20);
|
|
4440
4470
|
i0.ɵɵelementEnd()();
|
|
4441
|
-
i0.ɵɵconditionalCreate(23, MultiFunctionalTableComponent_Conditional_23_Template, 2, 8, "mat-paginator",
|
|
4471
|
+
i0.ɵɵconditionalCreate(23, MultiFunctionalTableComponent_Conditional_23_Template, 2, 8, "mat-paginator", 21);
|
|
4442
4472
|
i0.ɵɵelementEnd();
|
|
4443
|
-
i0.ɵɵelementStart(24, "mat-menu", null, 2)(26, "div",
|
|
4473
|
+
i0.ɵɵelementStart(24, "mat-menu", null, 2)(26, "div", 22);
|
|
4444
4474
|
i0.ɵɵlistener("click", function MultiFunctionalTableComponent_Template_div_click_26_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView($event.stopPropagation()); });
|
|
4445
|
-
i0.ɵɵtemplate(27, MultiFunctionalTableComponent_div_27_Template, 4, 4, "div",
|
|
4446
|
-
i0.ɵɵelementStart(28, "div",
|
|
4475
|
+
i0.ɵɵtemplate(27, MultiFunctionalTableComponent_div_27_Template, 4, 4, "div", 23);
|
|
4476
|
+
i0.ɵɵelementStart(28, "div", 24)(29, "button", 25);
|
|
4447
4477
|
i0.ɵɵlistener("click", function MultiFunctionalTableComponent_Template_button_click_29_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.updateDisplayColumns()); });
|
|
4448
4478
|
i0.ɵɵtext(30);
|
|
4449
4479
|
i0.ɵɵpipe(31, "translate");
|
|
4450
4480
|
i0.ɵɵelementEnd()()()();
|
|
4481
|
+
i0.ɵɵelementStart(32, "mat-menu", null, 3)(34, "div", 26);
|
|
4482
|
+
i0.ɵɵlistener("click", function MultiFunctionalTableComponent_Template_div_click_34_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView($event.stopPropagation()); })("keydown", function MultiFunctionalTableComponent_Template_div_keydown_34_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView($event.stopPropagation()); });
|
|
4483
|
+
i0.ɵɵelementStart(35, "div", 27);
|
|
4484
|
+
i0.ɵɵtext(36);
|
|
4485
|
+
i0.ɵɵpipe(37, "translate");
|
|
4486
|
+
i0.ɵɵelementEnd();
|
|
4487
|
+
i0.ɵɵelementStart(38, "div", 28)(39, "mat-form-field", 29)(40, "mat-label");
|
|
4488
|
+
i0.ɵɵtext(41);
|
|
4489
|
+
i0.ɵɵpipe(42, "translate");
|
|
4490
|
+
i0.ɵɵelementEnd();
|
|
4491
|
+
i0.ɵɵelementStart(43, "input", 30);
|
|
4492
|
+
i0.ɵɵtwoWayListener("ngModelChange", function MultiFunctionalTableComponent_Template_input_ngModelChange_43_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.rangeSelectionFrom, $event) || (ctx.rangeSelectionFrom = $event); return i0.ɵɵresetView($event); });
|
|
4493
|
+
i0.ɵɵelementEnd()();
|
|
4494
|
+
i0.ɵɵelementStart(44, "mat-form-field", 29)(45, "mat-label");
|
|
4495
|
+
i0.ɵɵtext(46);
|
|
4496
|
+
i0.ɵɵpipe(47, "translate");
|
|
4497
|
+
i0.ɵɵelementEnd();
|
|
4498
|
+
i0.ɵɵelementStart(48, "input", 30);
|
|
4499
|
+
i0.ɵɵtwoWayListener("ngModelChange", function MultiFunctionalTableComponent_Template_input_ngModelChange_48_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.rangeSelectionTo, $event) || (ctx.rangeSelectionTo = $event); return i0.ɵɵresetView($event); });
|
|
4500
|
+
i0.ɵɵelementEnd()()();
|
|
4501
|
+
i0.ɵɵelementStart(49, "div", 31)(50, "button", 25);
|
|
4502
|
+
i0.ɵɵlistener("click", function MultiFunctionalTableComponent_Template_button_click_50_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.applyRangeSelection()); });
|
|
4503
|
+
i0.ɵɵtext(51);
|
|
4504
|
+
i0.ɵɵpipe(52, "translate");
|
|
4505
|
+
i0.ɵɵelementEnd()()()();
|
|
4451
4506
|
} if (rf & 2) {
|
|
4452
4507
|
i0.ɵɵproperty("ngClass.lt-md", "mobile");
|
|
4453
4508
|
i0.ɵɵadvance(3);
|
|
@@ -4477,12 +4532,24 @@ class MultiFunctionalTableComponent {
|
|
|
4477
4532
|
i0.ɵɵadvance(4);
|
|
4478
4533
|
i0.ɵɵproperty("ngForOf", ctx.configurableColumns);
|
|
4479
4534
|
i0.ɵɵadvance(3);
|
|
4480
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(31,
|
|
4481
|
-
|
|
4535
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(31, 26, "MULTI_FUNCTIONAL_TABLE.COLUMN_SELECT_SAVE"), " ");
|
|
4536
|
+
i0.ɵɵadvance(6);
|
|
4537
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(37, 28, "MULTI_FUNCTIONAL_TABLE.RANGE_SELECT_TITLE"), " ");
|
|
4538
|
+
i0.ɵɵadvance(5);
|
|
4539
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(42, 30, "MULTI_FUNCTIONAL_TABLE.RANGE_SELECT_FROM"));
|
|
4540
|
+
i0.ɵɵadvance(2);
|
|
4541
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx.rangeSelectionFrom);
|
|
4542
|
+
i0.ɵɵadvance(3);
|
|
4543
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(47, 32, "MULTI_FUNCTIONAL_TABLE.RANGE_SELECT_TO"));
|
|
4544
|
+
i0.ɵɵadvance(2);
|
|
4545
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx.rangeSelectionTo);
|
|
4546
|
+
i0.ɵɵadvance(3);
|
|
4547
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(52, 34, "MULTI_FUNCTIONAL_TABLE.RANGE_SELECT_APPLY"), " ");
|
|
4548
|
+
} }, dependencies: [i1$1.NgForOf, i1$1.NgIf, i4$2.MatTable, i4$2.MatHeaderCellDef, i4$2.MatHeaderRowDef, i4$2.MatColumnDef, i4$2.MatCellDef, i4$2.MatRowDef, i4$2.MatHeaderCell, i4$2.MatCell, i4$2.MatHeaderRow, i4$2.MatRow, i4$2.MatNoDataRow, i2$2.MatButton, i2$2.MatIconButton, i6$1.MatMenu, i6$1.MatMenuTrigger, i7.MatCheckbox, i9.MatFormField, i9.MatLabel, i9.MatInput, i4$1.DefaultValueAccessor, i4$1.NumberValueAccessor, i4$1.NgControlStatus, i4$1.MinValidator, i4$1.NgModel, FilterBarComponent, i2$4.DefaultLayoutDirective, i2$4.DefaultLayoutGapDirective, i2$4.DefaultLayoutAlignDirective, i2$4.DefaultFlexDirective, i3.DefaultClassDirective, i2$3.MatTooltip, StatusDisplayComponent, i2.MatIcon, i16.MatPaginator, i1.TranslatePipe], styles: ["[_nghost-%COMP%] th, [_nghost-%COMP%] tr{white-space:nowrap}[_nghost-%COMP%] td:not(:first-of-type){padding-right:10px!important}[_nghost-%COMP%] tr.mat-mdc-row:hover, [_nghost-%COMP%] tr.mat-mdc-row.highlight{background-color:var(--base-95)}[_nghost-%COMP%] tr.mat-mdc-row.highlight-error{background-color:var(--warning-light)}[_nghost-%COMP%] .export-data .mdc-button__label{display:flex;align-items:center}[_nghost-%COMP%] .mat-mdc-cell, [_nghost-%COMP%] .mat-mdc-header-cell, [_nghost-%COMP%] .mdc-data-table__row:last-child{border-bottom-color:var(--base-70)}[_nghost-%COMP%] .mdc-data-table__row:last-child{border-bottom-width:1px;border-bottom-style:solid}[_nghost-%COMP%] .mdc-data-table__cell:nth-child(2), [_nghost-%COMP%] .mdc-data-table__header-cell:nth-child(2){padding:0 16px 0 10px}[_nghost-%COMP%] td+.cdk-column-columnSelect{display:none}[_nghost-%COMP%] .clear-filters-wrapper .mat-mdc-icon-button, [_nghost-%COMP%] .clear-filters-wrapper .mat-mdc-icon-button .mat-mdc-button-touch-target{height:36px!important;width:36px!important}[_nghost-%COMP%] .clear-filters-wrapper mat-icon{margin-top:-2px;margin-left:-2px}[_nghost-%COMP%] .filter-active{background-color:var(--neutral-95)}[_nghost-%COMP%] .row-actions{opacity:0}[_nghost-%COMP%] .mobile .row-actions, [_nghost-%COMP%] .highlight .row-actions{opacity:1}[_nghost-%COMP%] .mat-mdc-paginator-range-actions button{padding:8px}table[_ngcontent-%COMP%]{width:100%}.wild-search-wrapper[_ngcontent-%COMP%]{position:relative;padding:5px 10px;border-radius:4px;border:1px solid var(--neutral-50);margin:0 8px}.wild-search-wrapper[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin-right:30px}.wild-search-wrapper[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{color:var(--base-40)}.wild-search-wrapper[_ngcontent-%COMP%] .wild-search-clear-btn[_ngcontent-%COMP%]{position:absolute;right:3px}.wild-search-wrapper[_ngcontent-%COMP%] .mat-mdc-icon-button[_ngcontent-%COMP%], .wild-search-wrapper[_ngcontent-%COMP%] .mat-mdc-icon-button[_ngcontent-%COMP%] .mat-mdc-button-touch-target[_ngcontent-%COMP%]{height:33px!important;width:33px!important}.wild-search-wrapper[_ngcontent-%COMP%] .mat-mdc-icon-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .wild-search-wrapper[_ngcontent-%COMP%] .mat-mdc-icon-button[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%], .wild-search-wrapper[_ngcontent-%COMP%] .mat-mdc-icon-button[_ngcontent-%COMP%] .material-icons-outlined[_ngcontent-%COMP%]{top:5px!important;left:5px!important}.mobile[_ngcontent-%COMP%] .wild-search-wrapper[_ngcontent-%COMP%]{margin:0}.column-selector-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:end}.column-select-menu[_ngcontent-%COMP%]{padding:8px 18px 8px 8px}.column-select-save[_ngcontent-%COMP%]{padding-left:8px;padding-top:8px}.column-select-save[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}.row-clickable[_ngcontent-%COMP%]{cursor:pointer}.row-clickable[_ngcontent-%COMP%]:active{background-color:var(--base-70)!important}.material-icons[_ngcontent-%COMP%], .material-icons-outlined[_ngcontent-%COMP%]{margin-right:.5rem}.table-action-button[_ngcontent-%COMP%]{margin-bottom:1rem}th.mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type, td.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, td.mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type{padding:0 0 0 10px}.row-select[_ngcontent-%COMP%]{width:0}.table-overflow[_ngcontent-%COMP%]{overflow-x:auto}.table-dragable[_ngcontent-%COMP%]{cursor:grab;-webkit-user-select:none;user-select:none}.table-dragable[_ngcontent-%COMP%]:active{cursor:grabbing}.table-sticky-header[_ngcontent-%COMP%]{max-height:70vh}.batch-header[_ngcontent-%COMP%]{display:flex;align-items:center}.range-select-trigger.mat-mdc-icon-button[_ngcontent-%COMP%]{margin-left:-4px}.range-select-menu[_ngcontent-%COMP%]{padding:12px 16px;min-width:240px}.range-select-menu[_ngcontent-%COMP%] .range-select-title[_ngcontent-%COMP%]{font-size:1rem;font-weight:500;margin-bottom:12px}.range-select-menu[_ngcontent-%COMP%] .range-select-inputs[_ngcontent-%COMP%]{display:flex;gap:12px}.range-select-menu[_ngcontent-%COMP%] .range-select-field[_ngcontent-%COMP%], .range-select-menu[_ngcontent-%COMP%] .range-select-apply[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}"] }); }
|
|
4482
4549
|
}
|
|
4483
4550
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MultiFunctionalTableComponent, [{
|
|
4484
4551
|
type: Component,
|
|
4485
|
-
args: [{ selector: 'tld-multi-functional-table', standalone: false, template: "<div [ngClass.lt-md]=\"'mobile'\" fxLayout=\"column\" fxLayoutGap=\"0.75rem\">\r\n <div fxLayout=\"row\" fxLayout.lt-md=\"column\" fxLayoutGap.lt-md=\"0.75rem\">\r\n <div\r\n fxFlex\r\n fxLayout.lt-md=\"column\"\r\n fxLayoutGap=\"0.75rem\"\r\n fxLayoutAlign=\"start center\"\r\n fxLayoutAlign.lt-md=\"start start\"\r\n class=\"action-row\"\r\n >\r\n <button\r\n class=\"export-data\"\r\n mat-stroked-button\r\n color=\"accent\"\r\n *ngIf=\"exportActive\"\r\n (click)=\"export()\"\r\n >\r\n <span class=\"material-icons-outlined\">cloud_download</span>\r\n <span>{{ \"MULTI_FUNCTIONAL_TABLE.EXPORT\" | translate }}</span>\r\n </button>\r\n\r\n <div\r\n *ngIf=\"filterActive && showFilterToggle\"\r\n fxFlex\r\n fxLayoutGap=\"0.5rem\"\r\n fxLayoutAlign=\"start center\"\r\n >\r\n <button\r\n [class.filter-active]=\"filterBarVisible\"\r\n mat-stroked-button\r\n color=\"accent\"\r\n (click)=\"toggleFilterBar()\"\r\n >\r\n <span class=\"material-icons\">filter_list</span>\r\n <span>{{ \"MULTI_FUNCTIONAL_TABLE.FILTER_TOGGLE\" | translate }}</span>\r\n </button>\r\n\r\n <div *ngIf=\"showFilterReset\" class=\"clear-filters-wrapper\">\r\n <button mat-icon-button (click)=\"clearFilters()\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n *ngIf=\"showSearch\"\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"start center\"\r\n class=\"wild-search-wrapper\"\r\n >\r\n <mat-icon\r\n class=\"search-icon\"\r\n [matTooltip]=\"hideSearchTooltip ? '' : (searchTooltip | translate)\"\r\n >search</mat-icon\r\n >\r\n <input\r\n [value]=\"config.filter?.settings?.searchValue ?? ''\"\r\n #wildSearch\r\n type=\"text\"\r\n [placeholder]=\"searchTitle | translate\"\r\n (keyup)=\"search($event)\"\r\n />\r\n <button\r\n *ngIf=\"showSearchClearButton && wildSearch.value\"\r\n mat-icon-button\r\n class=\"wild-search-clear-btn\"\r\n (click)=\"wildSearch.value = ''; search({ target: { value: '' } })\"\r\n >\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n\r\n <ng-content select=\"[additionalActions]\"></ng-content>\r\n </div>\r\n\r\n <tld-filter-bar\r\n *ngIf=\"config.filter && config.filter.enabled\"\r\n #filterBar\r\n [filterRowVisible]=\"filterBarVisible\"\r\n [settings]=\"config.filter.settings\"\r\n (filterBarChange)=\"filtersChanged($event)\"\r\n >\r\n </tld-filter-bar>\r\n\r\n <ng-content select=\"[batchActions]\"></ng-content>\r\n\r\n <div\r\n #tableContainer\r\n class=\"table-overflow\"\r\n [class.table-sticky-header]=\"config?.stickyHeader\"\r\n [class.table-dragable]=\"tableOverflow && !config?.disableMouseDragging\"\r\n (mousedown)=\"onMouseDown($event)\"\r\n (mouseup)=\"onMouseUp()\"\r\n (mouseleave)=\"onMouseUp()\"\r\n (mousemove)=\"onMouseMove($event)\"\r\n >\r\n <table\r\n #table\r\n mat-table\r\n [dataSource]=\"dataSource!\"\r\n [trackBy]=\"trackByFn\"\r\n >\r\n <ng-content></ng-content>\r\n <ng-container [matColumnDef]=\"batchColumnName\">\r\n <th class=\"row-select\" mat-header-cell *matHeaderCellDef disable-export>\r\n <mat-checkbox\r\n [matTooltip]=\"'MULTI_FUNCTIONAL_TABLE.SELECT_ALL' | translate\"\r\n [disabled]=\"config.batchConfig!.checkBoxesDisabled\"\r\n (change)=\"toggleAllRowSelection()\"\r\n [checked]=\"matSelection.hasValue() && isAllSelected()\"\r\n [indeterminate]=\"matSelection.hasValue() && !isAllSelected()\"\r\n >\r\n </mat-checkbox>\r\n </th>\r\n <td\r\n class=\"row-select\"\r\n mat-cell\r\n *matCellDef=\"let element\"\r\n disable-export\r\n >\r\n <mat-checkbox\r\n [matTooltip]=\"'MULTI_FUNCTIONAL_TABLE.SELECT' | translate\"\r\n *ngIf=\"\r\n isRowCheckboxAlwaysVisible ||\r\n hoveredRow === element ||\r\n matSelection.isSelected(element)\r\n \"\r\n [disabled]=\"\r\n config.batchConfig!.checkBoxesDisabled ||\r\n (preselectedItems.includes(element) && disablePreselectedItems)\r\n \"\r\n (click)=\"$event.stopPropagation()\"\r\n (change)=\"toggleElementSelection(element)\"\r\n [checked]=\"matSelection.isSelected(element)\"\r\n >\r\n </mat-checkbox>\r\n </td>\r\n </ng-container>\r\n <tr\r\n mat-header-row\r\n *matHeaderRowDef=\"displayColumns; sticky: config?.stickyHeader ?? false\"\r\n ></tr>\r\n <tr\r\n mat-row\r\n *matRowDef=\"let row; let index = index; columns: displayColumns\"\r\n (click)=\"\r\n config?.rowClickCallback && (!config.disableRowClick || !config?.disableRowClick(row))\r\n ? config?.rowClickCallback(row)\r\n : null\r\n \"\r\n (mouseover)=\"rowHovered(index,row)\"\r\n (mouseleave)=\"rowHoverLeave()\"\r\n [class.row-clickable]=\"\r\n config?.rowClickCallback && (!config.disableRowClick || !config?.disableRowClick(row))\r\n \"\r\n [class.highlight-error]=\"highlightErrorElement(index, row)\"\r\n [class.highlight]=\"isElementHighlighted(index,row)\"\r\n ></tr>\r\n\r\n <ng-container [matColumnDef]=\"columnSelectColumnName\">\r\n <th class=\"row-select\" mat-header-cell *matHeaderCellDef disable-export>\r\n <div class=\"column-selector-wrapper\">\r\n <button\r\n class=\"column-selector\"\r\n mat-icon-button\r\n color=\"accent\"\r\n [matMenuTriggerFor]=\"columnMenu\"\r\n >\r\n <span class=\"material-icons\">more_vert</span>\r\n </button>\r\n </div>\r\n </th>\r\n <td\r\n class=\"row-select\"\r\n mat-cell\r\n *matCellDef=\"let element\"\r\n disable-export\r\n ></td>\r\n </ng-container>\r\n <ng-container *ngIf=\"noDataRowActive\">\r\n <tr *matNoDataRow>\r\n <!-- add random number to make sure it takes full width -->\r\n <td colspan=\"99\">\r\n <lib-status-display [config]=\"noDataRowConfig\"></lib-status-display>\r\n </td>\r\n </tr>\r\n </ng-container>\r\n </table>\r\n </div>\r\n\r\n @if(config.paginator?.enabled){\r\n @let paginatorConfig = config.paginator!;\r\n\r\n <mat-paginator \r\n [pageSize]=\"paginatorConfig.pageSize ?? 10\" \r\n [hidePageSize]=\"!paginatorConfig.showPageSize\" \r\n [showFirstLastButtons]=\"paginatorConfig.showFirstLastButtons\"\r\n [attr.aria-label]=\"'MULTI_FUNCTIONAL_TABLE.PAGINATOR_LABEL' | translate\" \r\n [pageSizeOptions]=\"paginatorConfig.pageSizeOptions ?? [10]\" \r\n (page)=\"paginatorChange($event)\">\r\n </mat-paginator>\r\n }\r\n</div>\r\n\r\n<mat-menu #columnMenu=\"matMenu\">\r\n <div class=\"column-select-menu\" (click)=\"$event.stopPropagation()\">\r\n <div *ngFor=\"let column of configurableColumns\">\r\n <mat-checkbox [(ngModel)]=\"column.selected\">\r\n {{ column.displayName | translate }}\r\n </mat-checkbox>\r\n </div>\r\n\r\n <div class=\"column-select-save\">\r\n <button\r\n mat-flat-button\r\n color=\"accent\"\r\n (click)=\"updateDisplayColumns()\"\r\n >\r\n {{ \"MULTI_FUNCTIONAL_TABLE.COLUMN_SELECT_SAVE\" | translate }}\r\n </button>\r\n </div>\r\n </div>\r\n</mat-menu>\r\n", styles: [":host ::ng-deep th,:host ::ng-deep tr{white-space:nowrap}:host ::ng-deep td:not(:first-of-type){padding-right:10px!important}:host ::ng-deep tr.mat-mdc-row:hover,:host ::ng-deep tr.mat-mdc-row.highlight{background-color:var(--base-95)}:host ::ng-deep tr.mat-mdc-row.highlight-error{background-color:var(--warning-light)}:host ::ng-deep .export-data .mdc-button__label{display:flex;align-items:center}:host ::ng-deep .mat-mdc-cell,:host ::ng-deep .mat-mdc-header-cell,:host ::ng-deep .mdc-data-table__row:last-child{border-bottom-color:var(--base-70)}:host ::ng-deep .mdc-data-table__row:last-child{border-bottom-width:1px;border-bottom-style:solid}:host ::ng-deep .mdc-data-table__cell:nth-child(2),:host ::ng-deep .mdc-data-table__header-cell:nth-child(2){padding:0 16px 0 10px}:host ::ng-deep td+.cdk-column-columnSelect{display:none}:host ::ng-deep .clear-filters-wrapper .mat-mdc-icon-button,:host ::ng-deep .clear-filters-wrapper .mat-mdc-icon-button .mat-mdc-button-touch-target{height:36px!important;width:36px!important}:host ::ng-deep .clear-filters-wrapper mat-icon{margin-top:-2px;margin-left:-2px}:host ::ng-deep .filter-active{background-color:var(--neutral-95)}:host ::ng-deep .row-actions{opacity:0}:host ::ng-deep .mobile .row-actions,:host ::ng-deep .highlight .row-actions{opacity:1}:host ::ng-deep .mat-mdc-paginator-range-actions button{padding:8px}table{width:100%}.wild-search-wrapper{position:relative;padding:5px 10px;border-radius:4px;border:1px solid var(--neutral-50);margin:0 8px}.wild-search-wrapper input{margin-right:30px}.wild-search-wrapper .search-icon{color:var(--base-40)}.wild-search-wrapper .wild-search-clear-btn{position:absolute;right:3px}.wild-search-wrapper .mat-mdc-icon-button,.wild-search-wrapper .mat-mdc-icon-button .mat-mdc-button-touch-target{height:33px!important;width:33px!important}.wild-search-wrapper .mat-mdc-icon-button mat-icon,.wild-search-wrapper .mat-mdc-icon-button .material-icons,.wild-search-wrapper .mat-mdc-icon-button .material-icons-outlined{top:5px!important;left:5px!important}.mobile .wild-search-wrapper{margin:0}.column-selector-wrapper{display:flex;justify-content:end}.column-select-menu{padding:8px 18px 8px 8px}.column-select-save{padding-left:8px;padding-top:8px}.column-select-save button{width:100%}.row-clickable{cursor:pointer}.row-clickable:active{background-color:var(--base-70)!important}.material-icons,.material-icons-outlined{margin-right:.5rem}.table-action-button{margin-bottom:1rem}th.mat-mdc-header-cell:first-of-type,td.mat-mdc-cell:first-of-type,td.mat-mdc-footer-cell:first-of-type{padding:0 0 0 10px}.row-select{width:0}.table-overflow{overflow-x:auto}.table-dragable{cursor:grab;-webkit-user-select:none;user-select:none}.table-dragable:active{cursor:grabbing}.table-sticky-header{max-height:70vh}\n"] }]
|
|
4552
|
+
args: [{ selector: 'tld-multi-functional-table', standalone: false, template: "<div [ngClass.lt-md]=\"'mobile'\" fxLayout=\"column\" fxLayoutGap=\"0.75rem\">\r\n <div fxLayout=\"row\" fxLayout.lt-md=\"column\" fxLayoutGap.lt-md=\"0.75rem\">\r\n <div\r\n fxFlex\r\n fxLayout.lt-md=\"column\"\r\n fxLayoutGap=\"0.75rem\"\r\n fxLayoutAlign=\"start center\"\r\n fxLayoutAlign.lt-md=\"start start\"\r\n class=\"action-row\"\r\n >\r\n <button\r\n class=\"export-data\"\r\n mat-stroked-button\r\n color=\"accent\"\r\n *ngIf=\"exportActive\"\r\n (click)=\"export()\"\r\n >\r\n <span class=\"material-icons-outlined\">cloud_download</span>\r\n <span>{{ \"MULTI_FUNCTIONAL_TABLE.EXPORT\" | translate }}</span>\r\n </button>\r\n\r\n <div\r\n *ngIf=\"filterActive && showFilterToggle\"\r\n fxFlex\r\n fxLayoutGap=\"0.5rem\"\r\n fxLayoutAlign=\"start center\"\r\n >\r\n <button\r\n [class.filter-active]=\"filterBarVisible\"\r\n mat-stroked-button\r\n color=\"accent\"\r\n (click)=\"toggleFilterBar()\"\r\n >\r\n <span class=\"material-icons\">filter_list</span>\r\n <span>{{ \"MULTI_FUNCTIONAL_TABLE.FILTER_TOGGLE\" | translate }}</span>\r\n </button>\r\n\r\n <div *ngIf=\"showFilterReset\" class=\"clear-filters-wrapper\">\r\n <button mat-icon-button (click)=\"clearFilters()\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n *ngIf=\"showSearch\"\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"start center\"\r\n class=\"wild-search-wrapper\"\r\n >\r\n <mat-icon\r\n class=\"search-icon\"\r\n [matTooltip]=\"hideSearchTooltip ? '' : (searchTooltip | translate)\"\r\n >search</mat-icon\r\n >\r\n <input\r\n [value]=\"config.filter?.settings?.searchValue ?? ''\"\r\n #wildSearch\r\n type=\"text\"\r\n [placeholder]=\"searchTitle | translate\"\r\n (keyup)=\"search($event)\"\r\n />\r\n <button\r\n *ngIf=\"showSearchClearButton && wildSearch.value\"\r\n mat-icon-button\r\n class=\"wild-search-clear-btn\"\r\n (click)=\"wildSearch.value = ''; search({ target: { value: '' } })\"\r\n >\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n\r\n <ng-content select=\"[additionalActions]\"></ng-content>\r\n </div>\r\n\r\n <tld-filter-bar\r\n *ngIf=\"config.filter && config.filter.enabled\"\r\n #filterBar\r\n [filterRowVisible]=\"filterBarVisible\"\r\n [settings]=\"config.filter.settings\"\r\n (filterBarChange)=\"filtersChanged($event)\"\r\n >\r\n </tld-filter-bar>\r\n\r\n <ng-content select=\"[batchActions]\"></ng-content>\r\n\r\n <div\r\n #tableContainer\r\n class=\"table-overflow\"\r\n [class.table-sticky-header]=\"config?.stickyHeader\"\r\n [class.table-dragable]=\"tableOverflow && !config?.disableMouseDragging\"\r\n (mousedown)=\"onMouseDown($event)\"\r\n (mouseup)=\"onMouseUp()\"\r\n (mouseleave)=\"onMouseUp()\"\r\n (mousemove)=\"onMouseMove($event)\"\r\n >\r\n <table\r\n #table\r\n mat-table\r\n [dataSource]=\"dataSource!\"\r\n [trackBy]=\"trackByFn\"\r\n >\r\n <ng-content></ng-content>\r\n <ng-container [matColumnDef]=\"batchColumnName\">\r\n <th class=\"row-select\" mat-header-cell *matHeaderCellDef disable-export>\r\n <div class=\"batch-header\">\r\n <mat-checkbox\r\n [matTooltip]=\"'MULTI_FUNCTIONAL_TABLE.SELECT_ALL' | translate\"\r\n [disabled]=\"config.batchConfig!.checkBoxesDisabled\"\r\n (change)=\"toggleAllRowSelection()\"\r\n [checked]=\"matSelection.hasValue() && isAllSelected()\"\r\n [indeterminate]=\"matSelection.hasValue() && !isAllSelected()\"\r\n >\r\n </mat-checkbox>\r\n <button\r\n *ngIf=\"config.batchConfig?.rangeSelection\"\r\n class=\"range-select-trigger\"\r\n mat-icon-button\r\n [matTooltip]=\"'MULTI_FUNCTIONAL_TABLE.RANGE_SELECT_TITLE' | translate\"\r\n [matMenuTriggerFor]=\"rangeSelectMenu\"\r\n >\r\n <mat-icon>arrow_drop_down</mat-icon>\r\n </button>\r\n </div>\r\n </th>\r\n <td\r\n class=\"row-select\"\r\n mat-cell\r\n *matCellDef=\"let element\"\r\n disable-export\r\n >\r\n <mat-checkbox\r\n [matTooltip]=\"'MULTI_FUNCTIONAL_TABLE.SELECT' | translate\"\r\n *ngIf=\"\r\n isRowCheckboxAlwaysVisible ||\r\n hoveredRow === element ||\r\n matSelection.isSelected(element)\r\n \"\r\n [disabled]=\"\r\n config.batchConfig!.checkBoxesDisabled ||\r\n (preselectedItems.includes(element) && disablePreselectedItems)\r\n \"\r\n (click)=\"$event.stopPropagation()\"\r\n (change)=\"toggleElementSelection(element)\"\r\n [checked]=\"matSelection.isSelected(element)\"\r\n >\r\n </mat-checkbox>\r\n </td>\r\n </ng-container>\r\n <tr\r\n mat-header-row\r\n *matHeaderRowDef=\"displayColumns; sticky: config?.stickyHeader ?? false\"\r\n ></tr>\r\n <tr\r\n mat-row\r\n *matRowDef=\"let row; let index = index; columns: displayColumns\"\r\n (click)=\"\r\n config?.rowClickCallback && (!config.disableRowClick || !config?.disableRowClick(row))\r\n ? config?.rowClickCallback(row)\r\n : null\r\n \"\r\n (mouseover)=\"rowHovered(index,row)\"\r\n (mouseleave)=\"rowHoverLeave()\"\r\n [class.row-clickable]=\"\r\n config?.rowClickCallback && (!config.disableRowClick || !config?.disableRowClick(row))\r\n \"\r\n [class.highlight-error]=\"highlightErrorElement(index, row)\"\r\n [class.highlight]=\"isElementHighlighted(index,row)\"\r\n ></tr>\r\n\r\n <ng-container [matColumnDef]=\"columnSelectColumnName\">\r\n <th class=\"row-select\" mat-header-cell *matHeaderCellDef disable-export>\r\n <div class=\"column-selector-wrapper\">\r\n <button\r\n class=\"column-selector\"\r\n mat-icon-button\r\n color=\"accent\"\r\n [matMenuTriggerFor]=\"columnMenu\"\r\n >\r\n <span class=\"material-icons\">more_vert</span>\r\n </button>\r\n </div>\r\n </th>\r\n <td\r\n class=\"row-select\"\r\n mat-cell\r\n *matCellDef=\"let element\"\r\n disable-export\r\n ></td>\r\n </ng-container>\r\n <ng-container *ngIf=\"noDataRowActive\">\r\n <tr *matNoDataRow>\r\n <!-- add random number to make sure it takes full width -->\r\n <td colspan=\"99\">\r\n <lib-status-display [config]=\"noDataRowConfig\"></lib-status-display>\r\n </td>\r\n </tr>\r\n </ng-container>\r\n </table>\r\n </div>\r\n\r\n @if(config.paginator?.enabled){\r\n @let paginatorConfig = config.paginator!;\r\n\r\n <mat-paginator \r\n [pageSize]=\"paginatorConfig.pageSize ?? 10\" \r\n [hidePageSize]=\"!paginatorConfig.showPageSize\" \r\n [showFirstLastButtons]=\"paginatorConfig.showFirstLastButtons\"\r\n [attr.aria-label]=\"'MULTI_FUNCTIONAL_TABLE.PAGINATOR_LABEL' | translate\" \r\n [pageSizeOptions]=\"paginatorConfig.pageSizeOptions ?? [10]\" \r\n (page)=\"paginatorChange($event)\">\r\n </mat-paginator>\r\n }\r\n</div>\r\n\r\n<mat-menu #columnMenu=\"matMenu\">\r\n <div class=\"column-select-menu\" (click)=\"$event.stopPropagation()\">\r\n <div *ngFor=\"let column of configurableColumns\">\r\n <mat-checkbox [(ngModel)]=\"column.selected\">\r\n {{ column.displayName | translate }}\r\n </mat-checkbox>\r\n </div>\r\n\r\n <div class=\"column-select-save\">\r\n <button\r\n mat-flat-button\r\n color=\"accent\"\r\n (click)=\"updateDisplayColumns()\"\r\n >\r\n {{ \"MULTI_FUNCTIONAL_TABLE.COLUMN_SELECT_SAVE\" | translate }}\r\n </button>\r\n </div>\r\n </div>\r\n</mat-menu>\r\n\r\n<mat-menu #rangeSelectMenu=\"matMenu\">\r\n <div\r\n class=\"range-select-menu\"\r\n (click)=\"$event.stopPropagation()\"\r\n (keydown)=\"$event.stopPropagation()\"\r\n >\r\n <div class=\"range-select-title\">\r\n {{ \"MULTI_FUNCTIONAL_TABLE.RANGE_SELECT_TITLE\" | translate }}\r\n </div>\r\n\r\n <div class=\"range-select-inputs\">\r\n <mat-form-field appearance=\"outline\" class=\"range-select-field\">\r\n <mat-label>{{ \"MULTI_FUNCTIONAL_TABLE.RANGE_SELECT_FROM\" | translate }}</mat-label>\r\n <input matInput type=\"number\" min=\"1\" [(ngModel)]=\"rangeSelectionFrom\" />\r\n </mat-form-field>\r\n\r\n <mat-form-field appearance=\"outline\" class=\"range-select-field\">\r\n <mat-label>{{ \"MULTI_FUNCTIONAL_TABLE.RANGE_SELECT_TO\" | translate }}</mat-label>\r\n <input matInput type=\"number\" min=\"1\" [(ngModel)]=\"rangeSelectionTo\" />\r\n </mat-form-field>\r\n </div>\r\n\r\n <div class=\"range-select-apply\">\r\n <button mat-flat-button color=\"accent\" (click)=\"applyRangeSelection()\">\r\n {{ \"MULTI_FUNCTIONAL_TABLE.RANGE_SELECT_APPLY\" | translate }}\r\n </button>\r\n </div>\r\n </div>\r\n</mat-menu>\r\n", styles: [":host ::ng-deep th,:host ::ng-deep tr{white-space:nowrap}:host ::ng-deep td:not(:first-of-type){padding-right:10px!important}:host ::ng-deep tr.mat-mdc-row:hover,:host ::ng-deep tr.mat-mdc-row.highlight{background-color:var(--base-95)}:host ::ng-deep tr.mat-mdc-row.highlight-error{background-color:var(--warning-light)}:host ::ng-deep .export-data .mdc-button__label{display:flex;align-items:center}:host ::ng-deep .mat-mdc-cell,:host ::ng-deep .mat-mdc-header-cell,:host ::ng-deep .mdc-data-table__row:last-child{border-bottom-color:var(--base-70)}:host ::ng-deep .mdc-data-table__row:last-child{border-bottom-width:1px;border-bottom-style:solid}:host ::ng-deep .mdc-data-table__cell:nth-child(2),:host ::ng-deep .mdc-data-table__header-cell:nth-child(2){padding:0 16px 0 10px}:host ::ng-deep td+.cdk-column-columnSelect{display:none}:host ::ng-deep .clear-filters-wrapper .mat-mdc-icon-button,:host ::ng-deep .clear-filters-wrapper .mat-mdc-icon-button .mat-mdc-button-touch-target{height:36px!important;width:36px!important}:host ::ng-deep .clear-filters-wrapper mat-icon{margin-top:-2px;margin-left:-2px}:host ::ng-deep .filter-active{background-color:var(--neutral-95)}:host ::ng-deep .row-actions{opacity:0}:host ::ng-deep .mobile .row-actions,:host ::ng-deep .highlight .row-actions{opacity:1}:host ::ng-deep .mat-mdc-paginator-range-actions button{padding:8px}table{width:100%}.wild-search-wrapper{position:relative;padding:5px 10px;border-radius:4px;border:1px solid var(--neutral-50);margin:0 8px}.wild-search-wrapper input{margin-right:30px}.wild-search-wrapper .search-icon{color:var(--base-40)}.wild-search-wrapper .wild-search-clear-btn{position:absolute;right:3px}.wild-search-wrapper .mat-mdc-icon-button,.wild-search-wrapper .mat-mdc-icon-button .mat-mdc-button-touch-target{height:33px!important;width:33px!important}.wild-search-wrapper .mat-mdc-icon-button mat-icon,.wild-search-wrapper .mat-mdc-icon-button .material-icons,.wild-search-wrapper .mat-mdc-icon-button .material-icons-outlined{top:5px!important;left:5px!important}.mobile .wild-search-wrapper{margin:0}.column-selector-wrapper{display:flex;justify-content:end}.column-select-menu{padding:8px 18px 8px 8px}.column-select-save{padding-left:8px;padding-top:8px}.column-select-save button{width:100%}.row-clickable{cursor:pointer}.row-clickable:active{background-color:var(--base-70)!important}.material-icons,.material-icons-outlined{margin-right:.5rem}.table-action-button{margin-bottom:1rem}th.mat-mdc-header-cell:first-of-type,td.mat-mdc-cell:first-of-type,td.mat-mdc-footer-cell:first-of-type{padding:0 0 0 10px}.row-select{width:0}.table-overflow{overflow-x:auto}.table-dragable{cursor:grab;-webkit-user-select:none;user-select:none}.table-dragable:active{cursor:grabbing}.table-sticky-header{max-height:70vh}.batch-header{display:flex;align-items:center}.range-select-trigger.mat-mdc-icon-button{margin-left:-4px}.range-select-menu{padding:12px 16px;min-width:240px}.range-select-menu .range-select-title{font-size:1rem;font-weight:500;margin-bottom:12px}.range-select-menu .range-select-inputs{display:flex;gap:12px}.range-select-menu .range-select-field,.range-select-menu .range-select-apply button{width:100%}\n"] }]
|
|
4486
4553
|
}], () => [{ type: DOMService }, { type: i1.TranslateService }], { config: [{
|
|
4487
4554
|
type: Input
|
|
4488
4555
|
}], highlightedElements: [{
|
|
@@ -4505,6 +4572,8 @@ class MultiFunctionalTableComponent {
|
|
|
4505
4572
|
type: Output
|
|
4506
4573
|
}], selectionChange: [{
|
|
4507
4574
|
type: Output
|
|
4575
|
+
}], rangeSelectionApplied: [{
|
|
4576
|
+
type: Output
|
|
4508
4577
|
}], headerRowDefs: [{
|
|
4509
4578
|
type: ContentChildren,
|
|
4510
4579
|
args: [MatHeaderRowDef]
|
|
@@ -4567,6 +4636,8 @@ class MultiFunctionalTableModule {
|
|
|
4567
4636
|
TranslateModule,
|
|
4568
4637
|
MatMenuModule,
|
|
4569
4638
|
MatCheckboxModule,
|
|
4639
|
+
MatFormFieldModule,
|
|
4640
|
+
MatInputModule,
|
|
4570
4641
|
FormsModule,
|
|
4571
4642
|
FilterBarModule,
|
|
4572
4643
|
FlexLayoutModule,
|
|
@@ -4590,6 +4661,8 @@ class MultiFunctionalTableModule {
|
|
|
4590
4661
|
TranslateModule,
|
|
4591
4662
|
MatMenuModule,
|
|
4592
4663
|
MatCheckboxModule,
|
|
4664
|
+
MatFormFieldModule,
|
|
4665
|
+
MatInputModule,
|
|
4593
4666
|
FormsModule,
|
|
4594
4667
|
FilterBarModule,
|
|
4595
4668
|
FlexLayoutModule,
|
|
@@ -4617,6 +4690,8 @@ class MultiFunctionalTableModule {
|
|
|
4617
4690
|
TranslateModule,
|
|
4618
4691
|
MatMenuModule,
|
|
4619
4692
|
MatCheckboxModule,
|
|
4693
|
+
MatFormFieldModule,
|
|
4694
|
+
MatInputModule,
|
|
4620
4695
|
FormsModule,
|
|
4621
4696
|
FilterBarModule,
|
|
4622
4697
|
FlexLayoutModule,
|
|
@@ -10153,8 +10228,8 @@ function StatusPillComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
10153
10228
|
} if (rf & 2) {
|
|
10154
10229
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
10155
10230
|
const pillContent_r2 = i0.ɵɵreference(3);
|
|
10156
|
-
i0.ɵɵclassMap(i0.ɵɵ
|
|
10157
|
-
i0.ɵɵproperty("
|
|
10231
|
+
i0.ɵɵclassMap(i0.ɵɵinterpolate2("status-pill status-pill--", ctx_r0.size(), " status-pill--clickable ", i0.ɵɵpipeBind1(1, 6, ctx_r0.status())));
|
|
10232
|
+
i0.ɵɵproperty("matTooltip", ctx_r0.tooltip());
|
|
10158
10233
|
i0.ɵɵadvance(2);
|
|
10159
10234
|
i0.ɵɵproperty("ngTemplateOutlet", pillContent_r2);
|
|
10160
10235
|
} }
|
|
@@ -10166,8 +10241,8 @@ function StatusPillComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
10166
10241
|
} if (rf & 2) {
|
|
10167
10242
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
10168
10243
|
const pillContent_r2 = i0.ɵɵreference(3);
|
|
10169
|
-
i0.ɵɵclassMap(i0.ɵɵ
|
|
10170
|
-
i0.ɵɵproperty("
|
|
10244
|
+
i0.ɵɵclassMap(i0.ɵɵinterpolate2("status-pill status-pill--", ctx_r0.size(), " ", i0.ɵɵpipeBind1(1, 6, ctx_r0.status())));
|
|
10245
|
+
i0.ɵɵproperty("matTooltip", ctx_r0.tooltip());
|
|
10171
10246
|
i0.ɵɵadvance(2);
|
|
10172
10247
|
i0.ɵɵproperty("ngTemplateOutlet", pillContent_r2);
|
|
10173
10248
|
} }
|
|
@@ -10188,29 +10263,30 @@ function StatusPillComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
10188
10263
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
10189
10264
|
i0.ɵɵconditional(ctx_r0.icon() ? 0 : -1);
|
|
10190
10265
|
i0.ɵɵadvance();
|
|
10191
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r0.
|
|
10266
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.statusLabel(), " ");
|
|
10192
10267
|
} }
|
|
10193
10268
|
class StatusPillComponent {
|
|
10194
10269
|
constructor() {
|
|
10195
10270
|
this.icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
|
|
10196
10271
|
this.size = input('default', ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
10197
10272
|
this.status = input(...(ngDevMode ? [undefined, { debugName: "status" }] : []));
|
|
10273
|
+
this.statusLabel = input(...(ngDevMode ? [undefined, { debugName: "statusLabel" }] : []));
|
|
10198
10274
|
this.type = input('default', ...(ngDevMode ? [{ debugName: "type" }] : []));
|
|
10199
10275
|
this.tooltip = input(...(ngDevMode ? [undefined, { debugName: "tooltip" }] : []));
|
|
10200
10276
|
}
|
|
10201
10277
|
static { this.ɵfac = function StatusPillComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || StatusPillComponent)(); }; }
|
|
10202
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: StatusPillComponent, selectors: [["lib-status-pill"]], inputs: { icon: [1, "icon"], size: [1, "size"], status: [1, "status"], type: [1, "type"], tooltip: [1, "tooltip"] }, ngContentSelectors: _c0, decls: 4, vars: 1, consts: [["pillContent", ""], ["type", "button", 3, "class", "
|
|
10278
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: StatusPillComponent, selectors: [["lib-status-pill"]], inputs: { icon: [1, "icon"], size: [1, "size"], status: [1, "status"], statusLabel: [1, "statusLabel"], type: [1, "type"], tooltip: [1, "tooltip"] }, ngContentSelectors: _c0, decls: 4, vars: 1, consts: [["pillContent", ""], ["type", "button", 3, "class", "matTooltip"], [3, "class", "matTooltip"], ["type", "button", 3, "matTooltip"], [3, "ngTemplateOutlet"], [3, "matTooltip"], [1, "material-icons", "material-icons-outlined"]], template: function StatusPillComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10203
10279
|
i0.ɵɵprojectionDef();
|
|
10204
10280
|
i0.ɵɵconditionalCreate(0, StatusPillComponent_Conditional_0_Template, 3, 8, "button", 1)(1, StatusPillComponent_Conditional_1_Template, 3, 8, "div", 2);
|
|
10205
10281
|
i0.ɵɵtemplate(2, StatusPillComponent_ng_template_2_Template, 3, 2, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
10206
10282
|
} if (rf & 2) {
|
|
10207
10283
|
i0.ɵɵconditional(ctx.type() === "clickable" ? 0 : 1);
|
|
10208
|
-
} }, dependencies: [CommonModule, i1$1.
|
|
10284
|
+
} }, dependencies: [CommonModule, i1$1.NgTemplateOutlet, MatTooltipModule, i2$3.MatTooltip, MatIconModule, i1$1.LowerCasePipe], styles: [".status-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border:1px solid;border-radius:9999px;font-size:12px;font-weight:600;line-height:1.2;white-space:nowrap}.status-pill--clickable[_ngcontent-%COMP%]{appearance:none;background:transparent;cursor:pointer;color:inherit;text-align:inherit}.status-pill--small[_ngcontent-%COMP%]{gap:2px;padding:4px 8px;font-size:10px;font-weight:500}.status-pill--small[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:14px}.material-icons[_ngcontent-%COMP%]{font-size:16px}"] }); }
|
|
10209
10285
|
}
|
|
10210
10286
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StatusPillComponent, [{
|
|
10211
10287
|
type: Component,
|
|
10212
|
-
args: [{ selector: 'lib-status-pill', imports: [CommonModule, MatTooltipModule, MatIconModule], template: "@if (type() === \"clickable\") {\r\n\t<button type=\"button\" class=\"status-pill status-pill--{{ size() }} status-pill--clickable
|
|
10213
|
-
}], null, { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }] }); })();
|
|
10288
|
+
args: [{ selector: 'lib-status-pill', imports: [CommonModule, MatTooltipModule, MatIconModule], template: "@if (type() === \"clickable\") {\r\n\t<button type=\"button\" class=\"status-pill status-pill--{{ size() }} status-pill--clickable {{ status() | lowercase }}\" [matTooltip]=\"tooltip()\">\r\n\t\t<ng-container [ngTemplateOutlet]=\"pillContent\"></ng-container>\r\n\t</button>\r\n} @else {\r\n\t<div class=\"status-pill status-pill--{{ size() }} {{ status() | lowercase }}\" [matTooltip]=\"tooltip()\">\r\n\t\t<ng-container [ngTemplateOutlet]=\"pillContent\"></ng-container>\r\n\t</div>\r\n}\r\n\r\n<ng-template #pillContent>\r\n\t@if (icon()) {\r\n\t\t<span class=\"material-icons material-icons-outlined\">{{ icon() }}</span>\r\n\t}\r\n\r\n\t{{ statusLabel() }}\r\n\r\n\t<ng-content></ng-content>\r\n</ng-template>\r\n", styles: [".status-pill{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border:1px solid;border-radius:9999px;font-size:12px;font-weight:600;line-height:1.2;white-space:nowrap}.status-pill--clickable{appearance:none;background:transparent;cursor:pointer;color:inherit;text-align:inherit}.status-pill--small{gap:2px;padding:4px 8px;font-size:10px;font-weight:500}.status-pill--small .material-icons{font-size:14px}.material-icons{font-size:16px}\n"] }]
|
|
10289
|
+
}], null, { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], statusLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "statusLabel", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }] }); })();
|
|
10214
10290
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(StatusPillComponent, { className: "StatusPillComponent", filePath: "lib/status-pill/status-pill.component.ts", lineNumber: 15 }); })();
|
|
10215
10291
|
|
|
10216
10292
|
/*
|