@tilde-nlp/ngx-common 8.1.89 → 8.1.91
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 +155 -79
- package/fesm2022/tilde-nlp-ngx-common.mjs.map +1 -1
- package/index.d.ts +16 -2
- package/package.json +1 -1
|
@@ -3809,6 +3809,15 @@ var ExportFormat;
|
|
|
3809
3809
|
ExportFormat["CSV"] = "csv";
|
|
3810
3810
|
})(ExportFormat || (ExportFormat = {}));
|
|
3811
3811
|
|
|
3812
|
+
var RangeSelectionErrorCode;
|
|
3813
|
+
(function (RangeSelectionErrorCode) {
|
|
3814
|
+
RangeSelectionErrorCode["FromRequired"] = "FROM_REQUIRED";
|
|
3815
|
+
RangeSelectionErrorCode["ToRequired"] = "TO_REQUIRED";
|
|
3816
|
+
RangeSelectionErrorCode["FromOutOfRange"] = "FROM_OUT_OF_RANGE";
|
|
3817
|
+
RangeSelectionErrorCode["ToOutOfRange"] = "TO_OUT_OF_RANGE";
|
|
3818
|
+
RangeSelectionErrorCode["FromGreaterThanTo"] = "FROM_GREATER_THAN_TO";
|
|
3819
|
+
})(RangeSelectionErrorCode || (RangeSelectionErrorCode = {}));
|
|
3820
|
+
|
|
3812
3821
|
const _c0$a = ["*"];
|
|
3813
3822
|
function StatusDisplayComponent_ng_container_1_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
3814
3823
|
i0.ɵɵelement(0, "div", 7);
|
|
@@ -3882,9 +3891,9 @@ const _c3 = ["[additionalActions]", "[batchActions]", "*"];
|
|
|
3882
3891
|
const _c4 = () => [10];
|
|
3883
3892
|
function MultiFunctionalTableComponent_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
3884
3893
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
3885
|
-
i0.ɵɵelementStart(0, "button",
|
|
3894
|
+
i0.ɵɵelementStart(0, "button", 35);
|
|
3886
3895
|
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",
|
|
3896
|
+
i0.ɵɵelementStart(1, "span", 36);
|
|
3888
3897
|
i0.ɵɵtext(2, "cloud_download");
|
|
3889
3898
|
i0.ɵɵelementEnd();
|
|
3890
3899
|
i0.ɵɵelementStart(3, "span");
|
|
@@ -3897,7 +3906,7 @@ function MultiFunctionalTableComponent_button_3_Template(rf, ctx) { if (rf & 1)
|
|
|
3897
3906
|
} }
|
|
3898
3907
|
function MultiFunctionalTableComponent_div_4_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
3899
3908
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
3900
|
-
i0.ɵɵelementStart(0, "div",
|
|
3909
|
+
i0.ɵɵelementStart(0, "div", 41)(1, "button", 42);
|
|
3901
3910
|
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
3911
|
i0.ɵɵelementStart(2, "mat-icon");
|
|
3903
3912
|
i0.ɵɵtext(3, "close");
|
|
@@ -3905,16 +3914,16 @@ function MultiFunctionalTableComponent_div_4_div_7_Template(rf, ctx) { if (rf &
|
|
|
3905
3914
|
} }
|
|
3906
3915
|
function MultiFunctionalTableComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
3907
3916
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
3908
|
-
i0.ɵɵelementStart(0, "div",
|
|
3917
|
+
i0.ɵɵelementStart(0, "div", 37)(1, "button", 38);
|
|
3909
3918
|
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",
|
|
3919
|
+
i0.ɵɵelementStart(2, "span", 39);
|
|
3911
3920
|
i0.ɵɵtext(3, "filter_list");
|
|
3912
3921
|
i0.ɵɵelementEnd();
|
|
3913
3922
|
i0.ɵɵelementStart(4, "span");
|
|
3914
3923
|
i0.ɵɵtext(5);
|
|
3915
3924
|
i0.ɵɵpipe(6, "translate");
|
|
3916
3925
|
i0.ɵɵelementEnd()();
|
|
3917
|
-
i0.ɵɵtemplate(7, MultiFunctionalTableComponent_div_4_div_7_Template, 4, 0, "div",
|
|
3926
|
+
i0.ɵɵtemplate(7, MultiFunctionalTableComponent_div_4_div_7_Template, 4, 0, "div", 40);
|
|
3918
3927
|
i0.ɵɵelementEnd();
|
|
3919
3928
|
} if (rf & 2) {
|
|
3920
3929
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -3927,7 +3936,7 @@ function MultiFunctionalTableComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
3927
3936
|
} }
|
|
3928
3937
|
function MultiFunctionalTableComponent_div_5_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
3929
3938
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
3930
|
-
i0.ɵɵelementStart(0, "button",
|
|
3939
|
+
i0.ɵɵelementStart(0, "button", 47);
|
|
3931
3940
|
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
3941
|
i0.ɵɵelementStart(1, "mat-icon");
|
|
3933
3942
|
i0.ɵɵtext(2, "close");
|
|
@@ -3935,15 +3944,15 @@ function MultiFunctionalTableComponent_div_5_button_7_Template(rf, ctx) { if (rf
|
|
|
3935
3944
|
} }
|
|
3936
3945
|
function MultiFunctionalTableComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
3937
3946
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
3938
|
-
i0.ɵɵelementStart(0, "div",
|
|
3947
|
+
i0.ɵɵelementStart(0, "div", 43)(1, "mat-icon", 44);
|
|
3939
3948
|
i0.ɵɵpipe(2, "translate");
|
|
3940
3949
|
i0.ɵɵtext(3, "search");
|
|
3941
3950
|
i0.ɵɵelementEnd();
|
|
3942
|
-
i0.ɵɵelementStart(4, "input",
|
|
3951
|
+
i0.ɵɵelementStart(4, "input", 45, 6);
|
|
3943
3952
|
i0.ɵɵpipe(6, "translate");
|
|
3944
3953
|
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
3954
|
i0.ɵɵelementEnd();
|
|
3946
|
-
i0.ɵɵtemplate(7, MultiFunctionalTableComponent_div_5_button_7_Template, 3, 0, "button",
|
|
3955
|
+
i0.ɵɵtemplate(7, MultiFunctionalTableComponent_div_5_button_7_Template, 3, 0, "button", 46);
|
|
3947
3956
|
i0.ɵɵelementEnd();
|
|
3948
3957
|
} if (rf & 2) {
|
|
3949
3958
|
const wildSearch_r8 = i0.ɵɵreference(5);
|
|
@@ -3957,7 +3966,7 @@ function MultiFunctionalTableComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
3957
3966
|
} }
|
|
3958
3967
|
function MultiFunctionalTableComponent_tld_filter_bar_7_Template(rf, ctx) { if (rf & 1) {
|
|
3959
3968
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
3960
|
-
i0.ɵɵelementStart(0, "tld-filter-bar",
|
|
3969
|
+
i0.ɵɵelementStart(0, "tld-filter-bar", 48, 7);
|
|
3961
3970
|
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
3971
|
i0.ɵɵelementEnd();
|
|
3963
3972
|
} if (rf & 2) {
|
|
@@ -3965,7 +3974,7 @@ function MultiFunctionalTableComponent_tld_filter_bar_7_Template(rf, ctx) { if (
|
|
|
3965
3974
|
i0.ɵɵproperty("filterRowVisible", ctx_r2.filterBarVisible)("settings", ctx_r2.config.filter.settings);
|
|
3966
3975
|
} }
|
|
3967
3976
|
function MultiFunctionalTableComponent_th_15_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
3968
|
-
i0.ɵɵelementStart(0, "button",
|
|
3977
|
+
i0.ɵɵelementStart(0, "button", 53);
|
|
3969
3978
|
i0.ɵɵpipe(1, "translate");
|
|
3970
3979
|
i0.ɵɵelementStart(2, "mat-icon");
|
|
3971
3980
|
i0.ɵɵtext(3, "arrow_drop_down");
|
|
@@ -3977,11 +3986,11 @@ function MultiFunctionalTableComponent_th_15_button_4_Template(rf, ctx) { if (rf
|
|
|
3977
3986
|
} }
|
|
3978
3987
|
function MultiFunctionalTableComponent_th_15_Template(rf, ctx) { if (rf & 1) {
|
|
3979
3988
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
3980
|
-
i0.ɵɵelementStart(0, "th",
|
|
3989
|
+
i0.ɵɵelementStart(0, "th", 49)(1, "div", 50)(2, "mat-checkbox", 51);
|
|
3981
3990
|
i0.ɵɵpipe(3, "translate");
|
|
3982
3991
|
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
3992
|
i0.ɵɵelementEnd();
|
|
3984
|
-
i0.ɵɵtemplate(4, MultiFunctionalTableComponent_th_15_button_4_Template, 4, 4, "button",
|
|
3993
|
+
i0.ɵɵtemplate(4, MultiFunctionalTableComponent_th_15_button_4_Template, 4, 4, "button", 52);
|
|
3985
3994
|
i0.ɵɵelementEnd()();
|
|
3986
3995
|
} if (rf & 2) {
|
|
3987
3996
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -3992,7 +4001,7 @@ function MultiFunctionalTableComponent_th_15_Template(rf, ctx) { if (rf & 1) {
|
|
|
3992
4001
|
} }
|
|
3993
4002
|
function MultiFunctionalTableComponent_td_16_mat_checkbox_1_Template(rf, ctx) { if (rf & 1) {
|
|
3994
4003
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
3995
|
-
i0.ɵɵelementStart(0, "mat-checkbox",
|
|
4004
|
+
i0.ɵɵelementStart(0, "mat-checkbox", 56);
|
|
3996
4005
|
i0.ɵɵpipe(1, "translate");
|
|
3997
4006
|
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)); });
|
|
3998
4007
|
i0.ɵɵelementEnd();
|
|
@@ -4002,8 +4011,8 @@ function MultiFunctionalTableComponent_td_16_mat_checkbox_1_Template(rf, ctx) {
|
|
|
4002
4011
|
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));
|
|
4003
4012
|
} }
|
|
4004
4013
|
function MultiFunctionalTableComponent_td_16_Template(rf, ctx) { if (rf & 1) {
|
|
4005
|
-
i0.ɵɵelementStart(0, "td",
|
|
4006
|
-
i0.ɵɵtemplate(1, MultiFunctionalTableComponent_td_16_mat_checkbox_1_Template, 2, 5, "mat-checkbox",
|
|
4014
|
+
i0.ɵɵelementStart(0, "td", 54);
|
|
4015
|
+
i0.ɵɵtemplate(1, MultiFunctionalTableComponent_td_16_mat_checkbox_1_Template, 2, 5, "mat-checkbox", 55);
|
|
4007
4016
|
i0.ɵɵelementEnd();
|
|
4008
4017
|
} if (rf & 2) {
|
|
4009
4018
|
const element_r13 = ctx.$implicit;
|
|
@@ -4012,11 +4021,11 @@ function MultiFunctionalTableComponent_td_16_Template(rf, ctx) { if (rf & 1) {
|
|
|
4012
4021
|
i0.ɵɵproperty("ngIf", ctx_r2.isRowCheckboxAlwaysVisible || ctx_r2.hoveredRow === element_r13 || ctx_r2.matSelection.isSelected(element_r13));
|
|
4013
4022
|
} }
|
|
4014
4023
|
function MultiFunctionalTableComponent_tr_17_Template(rf, ctx) { if (rf & 1) {
|
|
4015
|
-
i0.ɵɵelement(0, "tr",
|
|
4024
|
+
i0.ɵɵelement(0, "tr", 57);
|
|
4016
4025
|
} }
|
|
4017
4026
|
function MultiFunctionalTableComponent_tr_18_Template(rf, ctx) { if (rf & 1) {
|
|
4018
4027
|
const _r14 = i0.ɵɵgetCurrentView();
|
|
4019
|
-
i0.ɵɵelementStart(0, "tr",
|
|
4028
|
+
i0.ɵɵelementStart(0, "tr", 58);
|
|
4020
4029
|
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()); });
|
|
4021
4030
|
i0.ɵɵelementEnd();
|
|
4022
4031
|
} if (rf & 2) {
|
|
@@ -4026,7 +4035,7 @@ function MultiFunctionalTableComponent_tr_18_Template(rf, ctx) { if (rf & 1) {
|
|
|
4026
4035
|
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));
|
|
4027
4036
|
} }
|
|
4028
4037
|
function MultiFunctionalTableComponent_th_20_Template(rf, ctx) { if (rf & 1) {
|
|
4029
|
-
i0.ɵɵelementStart(0, "th",
|
|
4038
|
+
i0.ɵɵelementStart(0, "th", 49)(1, "div", 59)(2, "button", 60)(3, "span", 39);
|
|
4030
4039
|
i0.ɵɵtext(4, "more_vert");
|
|
4031
4040
|
i0.ɵɵelementEnd()()()();
|
|
4032
4041
|
} if (rf & 2) {
|
|
@@ -4036,11 +4045,11 @@ function MultiFunctionalTableComponent_th_20_Template(rf, ctx) { if (rf & 1) {
|
|
|
4036
4045
|
i0.ɵɵproperty("matMenuTriggerFor", columnMenu_r18);
|
|
4037
4046
|
} }
|
|
4038
4047
|
function MultiFunctionalTableComponent_td_21_Template(rf, ctx) { if (rf & 1) {
|
|
4039
|
-
i0.ɵɵelement(0, "td",
|
|
4048
|
+
i0.ɵɵelement(0, "td", 54);
|
|
4040
4049
|
} }
|
|
4041
4050
|
function MultiFunctionalTableComponent_ng_container_22_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
4042
|
-
i0.ɵɵelementStart(0, "tr")(1, "td",
|
|
4043
|
-
i0.ɵɵelement(2, "lib-status-display",
|
|
4051
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 62);
|
|
4052
|
+
i0.ɵɵelement(2, "lib-status-display", 63);
|
|
4044
4053
|
i0.ɵɵelementEnd()();
|
|
4045
4054
|
} if (rf & 2) {
|
|
4046
4055
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
@@ -4049,12 +4058,12 @@ function MultiFunctionalTableComponent_ng_container_22_tr_1_Template(rf, ctx) {
|
|
|
4049
4058
|
} }
|
|
4050
4059
|
function MultiFunctionalTableComponent_ng_container_22_Template(rf, ctx) { if (rf & 1) {
|
|
4051
4060
|
i0.ɵɵelementContainerStart(0);
|
|
4052
|
-
i0.ɵɵtemplate(1, MultiFunctionalTableComponent_ng_container_22_tr_1_Template, 3, 1, "tr",
|
|
4061
|
+
i0.ɵɵtemplate(1, MultiFunctionalTableComponent_ng_container_22_tr_1_Template, 3, 1, "tr", 61);
|
|
4053
4062
|
i0.ɵɵelementContainerEnd();
|
|
4054
4063
|
} }
|
|
4055
4064
|
function MultiFunctionalTableComponent_Conditional_23_Template(rf, ctx) { if (rf & 1) {
|
|
4056
4065
|
const _r19 = i0.ɵɵgetCurrentView();
|
|
4057
|
-
i0.ɵɵelementStart(0, "mat-paginator",
|
|
4066
|
+
i0.ɵɵelementStart(0, "mat-paginator", 64);
|
|
4058
4067
|
i0.ɵɵpipe(1, "translate");
|
|
4059
4068
|
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)); });
|
|
4060
4069
|
i0.ɵɵelementEnd();
|
|
@@ -4065,7 +4074,7 @@ function MultiFunctionalTableComponent_Conditional_23_Template(rf, ctx) { if (rf
|
|
|
4065
4074
|
} }
|
|
4066
4075
|
function MultiFunctionalTableComponent_div_27_Template(rf, ctx) { if (rf & 1) {
|
|
4067
4076
|
const _r21 = i0.ɵɵgetCurrentView();
|
|
4068
|
-
i0.ɵɵelementStart(0, "div")(1, "mat-checkbox",
|
|
4077
|
+
i0.ɵɵelementStart(0, "div")(1, "mat-checkbox", 65);
|
|
4069
4078
|
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); });
|
|
4070
4079
|
i0.ɵɵtext(2);
|
|
4071
4080
|
i0.ɵɵpipe(3, "translate");
|
|
@@ -4077,6 +4086,33 @@ function MultiFunctionalTableComponent_div_27_Template(rf, ctx) { if (rf & 1) {
|
|
|
4077
4086
|
i0.ɵɵadvance();
|
|
4078
4087
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, column_r22.displayName), " ");
|
|
4079
4088
|
} }
|
|
4089
|
+
function MultiFunctionalTableComponent_span_52_Template(rf, ctx) { if (rf & 1) {
|
|
4090
|
+
i0.ɵɵelementStart(0, "span");
|
|
4091
|
+
i0.ɵɵtext(1);
|
|
4092
|
+
i0.ɵɵpipe(2, "translate");
|
|
4093
|
+
i0.ɵɵelementEnd();
|
|
4094
|
+
} if (rf & 2) {
|
|
4095
|
+
i0.ɵɵadvance();
|
|
4096
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "MULTI_FUNCTIONAL_TABLE.RANGE_SELECT_ERROR_REQUIRED"), " ");
|
|
4097
|
+
} }
|
|
4098
|
+
function MultiFunctionalTableComponent_span_53_Template(rf, ctx) { if (rf & 1) {
|
|
4099
|
+
i0.ɵɵelementStart(0, "span");
|
|
4100
|
+
i0.ɵɵtext(1);
|
|
4101
|
+
i0.ɵɵpipe(2, "translate");
|
|
4102
|
+
i0.ɵɵelementEnd();
|
|
4103
|
+
} if (rf & 2) {
|
|
4104
|
+
i0.ɵɵadvance();
|
|
4105
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "MULTI_FUNCTIONAL_TABLE.RANGE_SELECT_ERROR_OUT_OF_RANGE"), " ");
|
|
4106
|
+
} }
|
|
4107
|
+
function MultiFunctionalTableComponent_span_54_Template(rf, ctx) { if (rf & 1) {
|
|
4108
|
+
i0.ɵɵelementStart(0, "span");
|
|
4109
|
+
i0.ɵɵtext(1);
|
|
4110
|
+
i0.ɵɵpipe(2, "translate");
|
|
4111
|
+
i0.ɵɵelementEnd();
|
|
4112
|
+
} if (rf & 2) {
|
|
4113
|
+
i0.ɵɵadvance();
|
|
4114
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "MULTI_FUNCTIONAL_TABLE.RANGE_SELECT_ERROR_FROM_GREATER"), " ");
|
|
4115
|
+
} }
|
|
4080
4116
|
class MultiFunctionalTableComponent {
|
|
4081
4117
|
#dataSource;
|
|
4082
4118
|
get dataSource() {
|
|
@@ -4086,6 +4122,12 @@ class MultiFunctionalTableComponent {
|
|
|
4086
4122
|
this.matSelection.setSelection(...(value ?? []));
|
|
4087
4123
|
}
|
|
4088
4124
|
get ignoreAttributeName() { return DISABLE_EXPORT_ATTRIBUTE_NAME; }
|
|
4125
|
+
get rangeSelectionRowCount() {
|
|
4126
|
+
return this.dataSource?.data.length ?? 0;
|
|
4127
|
+
}
|
|
4128
|
+
get rangeSelectionInvalid() {
|
|
4129
|
+
return this.rangeSelectionErrors.length > 0;
|
|
4130
|
+
}
|
|
4089
4131
|
get filterActive() { return this.config.filter?.enabled; }
|
|
4090
4132
|
get showFilterToggle() { return !this.config.filter?.hideFilterToggle; }
|
|
4091
4133
|
get showFilterReset() { return this.config.filter?.settings.filters?.find(filter => filter.selectedValues?.length); }
|
|
@@ -4102,13 +4144,14 @@ class MultiFunctionalTableComponent {
|
|
|
4102
4144
|
this.paginatorUpdate = new EventEmitter();
|
|
4103
4145
|
this.exported = new EventEmitter();
|
|
4104
4146
|
this.selectionChange = this.matSelection.changed.asObservable().pipe(map(() => { return this.matSelection.selected; }));
|
|
4105
|
-
this.rangeSelectionApplied = new EventEmitter();
|
|
4106
4147
|
/** This property will be taken into account only if config.DataSource not set. */
|
|
4107
4148
|
this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : []));
|
|
4108
4149
|
this.dataSourceUpdateEffect = effect(() => { this.updateDataSourceData(); }, ...(ngDevMode ? [{ debugName: "dataSourceUpdateEffect" }] : []));
|
|
4109
4150
|
this.noDataRowIcon = "manage_search";
|
|
4110
4151
|
this.rangeSelectionFrom = null;
|
|
4111
4152
|
this.rangeSelectionTo = null;
|
|
4153
|
+
this.rangeSelectionFromGreaterThanTo = false;
|
|
4154
|
+
this.rangeSelectionErrors = [];
|
|
4112
4155
|
this.isDragging = false;
|
|
4113
4156
|
this.startX = 0;
|
|
4114
4157
|
this.startY = 0;
|
|
@@ -4248,17 +4291,41 @@ class MultiFunctionalTableComponent {
|
|
|
4248
4291
|
toggleElementSelection(element) {
|
|
4249
4292
|
this.matSelection.toggle(element);
|
|
4250
4293
|
}
|
|
4294
|
+
recalculateRangeSelection() {
|
|
4295
|
+
const errors = [];
|
|
4296
|
+
if (this.rangeSelectionFrom == null) {
|
|
4297
|
+
errors.push(RangeSelectionErrorCode.FromRequired);
|
|
4298
|
+
}
|
|
4299
|
+
if (this.rangeSelectionTo == null) {
|
|
4300
|
+
errors.push(RangeSelectionErrorCode.ToRequired);
|
|
4301
|
+
}
|
|
4302
|
+
if (this.rangeSelectionFrom != null && Number.isInteger(this.rangeSelectionFrom) && (this.rangeSelectionFrom < 1 || this.rangeSelectionFrom > this.rangeSelectionRowCount)) {
|
|
4303
|
+
errors.push(RangeSelectionErrorCode.FromOutOfRange);
|
|
4304
|
+
}
|
|
4305
|
+
if (this.rangeSelectionTo != null && Number.isInteger(this.rangeSelectionTo) && (this.rangeSelectionTo < 1 || this.rangeSelectionTo > this.rangeSelectionRowCount)) {
|
|
4306
|
+
errors.push(RangeSelectionErrorCode.ToOutOfRange);
|
|
4307
|
+
}
|
|
4308
|
+
this.rangeSelectionFromGreaterThanTo =
|
|
4309
|
+
this.rangeSelectionFrom != null && this.rangeSelectionTo != null && Number.isInteger(this.rangeSelectionFrom) && Number.isInteger(this.rangeSelectionTo) && this.rangeSelectionFrom > this.rangeSelectionTo;
|
|
4310
|
+
if (this.rangeSelectionFromGreaterThanTo) {
|
|
4311
|
+
errors.push(RangeSelectionErrorCode.FromGreaterThanTo);
|
|
4312
|
+
}
|
|
4313
|
+
this.rangeSelectionErrors = errors;
|
|
4314
|
+
}
|
|
4315
|
+
onRangeSelectionFromChange(value) {
|
|
4316
|
+
this.rangeSelectionFrom = value;
|
|
4317
|
+
this.recalculateRangeSelection();
|
|
4318
|
+
}
|
|
4319
|
+
onRangeSelectionToChange(value) {
|
|
4320
|
+
this.rangeSelectionTo = value;
|
|
4321
|
+
this.recalculateRangeSelection();
|
|
4322
|
+
}
|
|
4251
4323
|
applyRangeSelection() {
|
|
4252
|
-
|
|
4324
|
+
this.recalculateRangeSelection();
|
|
4325
|
+
if (this.rangeSelectionErrors.length) {
|
|
4253
4326
|
return;
|
|
4254
4327
|
}
|
|
4255
|
-
|
|
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);
|
|
4328
|
+
this.selection = this.dataSource?.data.slice(this.rangeSelectionFrom - 1, this.rangeSelectionTo);
|
|
4262
4329
|
}
|
|
4263
4330
|
onMouseDown(event) {
|
|
4264
4331
|
if (this.config.disableMouseDragging) {
|
|
@@ -4444,66 +4511,71 @@ class MultiFunctionalTableComponent {
|
|
|
4444
4511
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.filterBar = _t.first);
|
|
4445
4512
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.paginator = _t.first);
|
|
4446
4513
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tableElementRef = _t.first);
|
|
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"
|
|
4514
|
+
} }, 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: 59, vars: 41, consts: [["tableContainer", ""], ["table", ""], ["columnMenu", "matMenu"], ["rangeSelectMenu", "matMenu"], ["fromField", "ngModel"], ["toField", "ngModel"], ["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", "required", "", "min", "1", 3, "ngModelChange", "max", "ngModel"], [1, "range-select-errors"], [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) {
|
|
4448
4515
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
4449
4516
|
i0.ɵɵprojectionDef(_c2$1);
|
|
4450
|
-
i0.ɵɵelementStart(0, "div",
|
|
4451
|
-
i0.ɵɵtemplate(3, MultiFunctionalTableComponent_button_3_Template, 6, 3, "button",
|
|
4517
|
+
i0.ɵɵelementStart(0, "div", 8)(1, "div", 9)(2, "div", 10);
|
|
4518
|
+
i0.ɵɵtemplate(3, MultiFunctionalTableComponent_button_3_Template, 6, 3, "button", 11)(4, MultiFunctionalTableComponent_div_4_Template, 8, 6, "div", 12);
|
|
4452
4519
|
i0.ɵɵelementEnd();
|
|
4453
|
-
i0.ɵɵtemplate(5, MultiFunctionalTableComponent_div_5_Template, 8, 8, "div",
|
|
4520
|
+
i0.ɵɵtemplate(5, MultiFunctionalTableComponent_div_5_Template, 8, 8, "div", 13);
|
|
4454
4521
|
i0.ɵɵprojection(6);
|
|
4455
4522
|
i0.ɵɵelementEnd();
|
|
4456
|
-
i0.ɵɵtemplate(7, MultiFunctionalTableComponent_tld_filter_bar_7_Template, 2, 2, "tld-filter-bar",
|
|
4523
|
+
i0.ɵɵtemplate(7, MultiFunctionalTableComponent_tld_filter_bar_7_Template, 2, 2, "tld-filter-bar", 14);
|
|
4457
4524
|
i0.ɵɵprojection(8, 1);
|
|
4458
|
-
i0.ɵɵelementStart(9, "div",
|
|
4525
|
+
i0.ɵɵelementStart(9, "div", 15, 0);
|
|
4459
4526
|
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)); });
|
|
4460
|
-
i0.ɵɵelementStart(11, "table",
|
|
4527
|
+
i0.ɵɵelementStart(11, "table", 16, 1);
|
|
4461
4528
|
i0.ɵɵprojection(13, 2);
|
|
4462
|
-
i0.ɵɵelementContainerStart(14,
|
|
4463
|
-
i0.ɵɵtemplate(15, MultiFunctionalTableComponent_th_15_Template, 5, 7, "th",
|
|
4529
|
+
i0.ɵɵelementContainerStart(14, 17);
|
|
4530
|
+
i0.ɵɵtemplate(15, MultiFunctionalTableComponent_th_15_Template, 5, 7, "th", 18)(16, MultiFunctionalTableComponent_td_16_Template, 2, 1, "td", 19);
|
|
4464
4531
|
i0.ɵɵelementContainerEnd();
|
|
4465
|
-
i0.ɵɵtemplate(17, MultiFunctionalTableComponent_tr_17_Template, 1, 0, "tr",
|
|
4466
|
-
i0.ɵɵelementContainerStart(19,
|
|
4467
|
-
i0.ɵɵtemplate(20, MultiFunctionalTableComponent_th_20_Template, 5, 1, "th",
|
|
4532
|
+
i0.ɵɵtemplate(17, MultiFunctionalTableComponent_tr_17_Template, 1, 0, "tr", 20)(18, MultiFunctionalTableComponent_tr_18_Template, 1, 6, "tr", 21);
|
|
4533
|
+
i0.ɵɵelementContainerStart(19, 17);
|
|
4534
|
+
i0.ɵɵtemplate(20, MultiFunctionalTableComponent_th_20_Template, 5, 1, "th", 18)(21, MultiFunctionalTableComponent_td_21_Template, 1, 0, "td", 19);
|
|
4468
4535
|
i0.ɵɵelementContainerEnd();
|
|
4469
|
-
i0.ɵɵtemplate(22, MultiFunctionalTableComponent_ng_container_22_Template, 2, 0, "ng-container",
|
|
4536
|
+
i0.ɵɵtemplate(22, MultiFunctionalTableComponent_ng_container_22_Template, 2, 0, "ng-container", 22);
|
|
4470
4537
|
i0.ɵɵelementEnd()();
|
|
4471
|
-
i0.ɵɵconditionalCreate(23, MultiFunctionalTableComponent_Conditional_23_Template, 2, 8, "mat-paginator",
|
|
4538
|
+
i0.ɵɵconditionalCreate(23, MultiFunctionalTableComponent_Conditional_23_Template, 2, 8, "mat-paginator", 23);
|
|
4472
4539
|
i0.ɵɵelementEnd();
|
|
4473
|
-
i0.ɵɵelementStart(24, "mat-menu", null, 2)(26, "div",
|
|
4540
|
+
i0.ɵɵelementStart(24, "mat-menu", null, 2)(26, "div", 24);
|
|
4474
4541
|
i0.ɵɵlistener("click", function MultiFunctionalTableComponent_Template_div_click_26_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView($event.stopPropagation()); });
|
|
4475
|
-
i0.ɵɵtemplate(27, MultiFunctionalTableComponent_div_27_Template, 4, 4, "div",
|
|
4476
|
-
i0.ɵɵelementStart(28, "div",
|
|
4542
|
+
i0.ɵɵtemplate(27, MultiFunctionalTableComponent_div_27_Template, 4, 4, "div", 25);
|
|
4543
|
+
i0.ɵɵelementStart(28, "div", 26)(29, "button", 27);
|
|
4477
4544
|
i0.ɵɵlistener("click", function MultiFunctionalTableComponent_Template_button_click_29_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.updateDisplayColumns()); });
|
|
4478
4545
|
i0.ɵɵtext(30);
|
|
4479
4546
|
i0.ɵɵpipe(31, "translate");
|
|
4480
4547
|
i0.ɵɵelementEnd()()()();
|
|
4481
|
-
i0.ɵɵelementStart(32, "mat-menu", null, 3)(34, "div",
|
|
4548
|
+
i0.ɵɵelementStart(32, "mat-menu", null, 3)(34, "div", 28);
|
|
4482
4549
|
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",
|
|
4550
|
+
i0.ɵɵelementStart(35, "div", 29);
|
|
4484
4551
|
i0.ɵɵtext(36);
|
|
4485
4552
|
i0.ɵɵpipe(37, "translate");
|
|
4486
4553
|
i0.ɵɵelementEnd();
|
|
4487
|
-
i0.ɵɵelementStart(38, "div",
|
|
4554
|
+
i0.ɵɵelementStart(38, "div", 30)(39, "mat-form-field", 31)(40, "mat-label");
|
|
4488
4555
|
i0.ɵɵtext(41);
|
|
4489
4556
|
i0.ɵɵpipe(42, "translate");
|
|
4490
4557
|
i0.ɵɵelementEnd();
|
|
4491
|
-
i0.ɵɵelementStart(43, "input",
|
|
4492
|
-
i0.ɵɵ
|
|
4558
|
+
i0.ɵɵelementStart(43, "input", 32, 4);
|
|
4559
|
+
i0.ɵɵlistener("ngModelChange", function MultiFunctionalTableComponent_Template_input_ngModelChange_43_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onRangeSelectionFromChange($event)); });
|
|
4493
4560
|
i0.ɵɵelementEnd()();
|
|
4494
|
-
i0.ɵɵelementStart(
|
|
4495
|
-
i0.ɵɵtext(
|
|
4496
|
-
i0.ɵɵpipe(
|
|
4561
|
+
i0.ɵɵelementStart(45, "mat-form-field", 31)(46, "mat-label");
|
|
4562
|
+
i0.ɵɵtext(47);
|
|
4563
|
+
i0.ɵɵpipe(48, "translate");
|
|
4497
4564
|
i0.ɵɵelementEnd();
|
|
4498
|
-
i0.ɵɵelementStart(
|
|
4499
|
-
i0.ɵɵ
|
|
4565
|
+
i0.ɵɵelementStart(49, "input", 32, 5);
|
|
4566
|
+
i0.ɵɵlistener("ngModelChange", function MultiFunctionalTableComponent_Template_input_ngModelChange_49_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onRangeSelectionToChange($event)); });
|
|
4500
4567
|
i0.ɵɵelementEnd()()();
|
|
4501
|
-
i0.ɵɵelementStart(
|
|
4502
|
-
i0.ɵɵ
|
|
4503
|
-
i0.ɵɵ
|
|
4504
|
-
i0.ɵɵ
|
|
4568
|
+
i0.ɵɵelementStart(51, "div", 33);
|
|
4569
|
+
i0.ɵɵtemplate(52, MultiFunctionalTableComponent_span_52_Template, 3, 3, "span", 22)(53, MultiFunctionalTableComponent_span_53_Template, 3, 3, "span", 22)(54, MultiFunctionalTableComponent_span_54_Template, 3, 3, "span", 22);
|
|
4570
|
+
i0.ɵɵelementEnd();
|
|
4571
|
+
i0.ɵɵelementStart(55, "div", 34)(56, "button", 27);
|
|
4572
|
+
i0.ɵɵlistener("click", function MultiFunctionalTableComponent_Template_button_click_56_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.applyRangeSelection()); });
|
|
4573
|
+
i0.ɵɵtext(57);
|
|
4574
|
+
i0.ɵɵpipe(58, "translate");
|
|
4505
4575
|
i0.ɵɵelementEnd()()()();
|
|
4506
4576
|
} if (rf & 2) {
|
|
4577
|
+
const fromField_r23 = i0.ɵɵreference(44);
|
|
4578
|
+
const toField_r24 = i0.ɵɵreference(50);
|
|
4507
4579
|
i0.ɵɵproperty("ngClass.lt-md", "mobile");
|
|
4508
4580
|
i0.ɵɵadvance(3);
|
|
4509
4581
|
i0.ɵɵproperty("ngIf", ctx.exportActive);
|
|
@@ -4532,24 +4604,30 @@ class MultiFunctionalTableComponent {
|
|
|
4532
4604
|
i0.ɵɵadvance(4);
|
|
4533
4605
|
i0.ɵɵproperty("ngForOf", ctx.configurableColumns);
|
|
4534
4606
|
i0.ɵɵadvance(3);
|
|
4535
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(31,
|
|
4607
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(31, 31, "MULTI_FUNCTIONAL_TABLE.COLUMN_SELECT_SAVE"), " ");
|
|
4536
4608
|
i0.ɵɵadvance(6);
|
|
4537
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(37,
|
|
4609
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(37, 33, "MULTI_FUNCTIONAL_TABLE.RANGE_SELECT_TITLE"), " ");
|
|
4538
4610
|
i0.ɵɵadvance(5);
|
|
4539
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(42,
|
|
4611
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(42, 35, "MULTI_FUNCTIONAL_TABLE.RANGE_SELECT_FROM"));
|
|
4540
4612
|
i0.ɵɵadvance(2);
|
|
4541
|
-
i0.ɵɵ
|
|
4542
|
-
i0.ɵɵadvance(
|
|
4543
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
4613
|
+
i0.ɵɵproperty("max", ctx.rangeSelectionRowCount)("ngModel", ctx.rangeSelectionFrom);
|
|
4614
|
+
i0.ɵɵadvance(4);
|
|
4615
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(48, 37, "MULTI_FUNCTIONAL_TABLE.RANGE_SELECT_TO"));
|
|
4544
4616
|
i0.ɵɵadvance(2);
|
|
4545
|
-
i0.ɵɵ
|
|
4617
|
+
i0.ɵɵproperty("max", ctx.rangeSelectionRowCount)("ngModel", ctx.rangeSelectionTo);
|
|
4546
4618
|
i0.ɵɵadvance(3);
|
|
4547
|
-
i0.ɵɵ
|
|
4548
|
-
|
|
4619
|
+
i0.ɵɵproperty("ngIf", (fromField_r23.errors == null ? null : fromField_r23.errors["required"]) || (toField_r24.errors == null ? null : toField_r24.errors["required"]));
|
|
4620
|
+
i0.ɵɵadvance();
|
|
4621
|
+
i0.ɵɵproperty("ngIf", (fromField_r23.errors == null ? null : fromField_r23.errors["min"]) || (fromField_r23.errors == null ? null : fromField_r23.errors["max"]) || (toField_r24.errors == null ? null : toField_r24.errors["min"]) || (toField_r24.errors == null ? null : toField_r24.errors["max"]));
|
|
4622
|
+
i0.ɵɵadvance();
|
|
4623
|
+
i0.ɵɵproperty("ngIf", ctx.rangeSelectionFromGreaterThanTo && !fromField_r23.errors && !toField_r24.errors);
|
|
4624
|
+
i0.ɵɵadvance(3);
|
|
4625
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(58, 39, "MULTI_FUNCTIONAL_TABLE.RANGE_SELECT_APPLY"), " ");
|
|
4626
|
+
} }, 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.RequiredValidator, i4$1.MinValidator, i4$1.MaxValidator, 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%]{width:100%}.range-select-menu[_ngcontent-%COMP%] .range-select-errors[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;color:var(--mat-sys-error);font-size:.75rem;line-height:1.25rem;min-height:1.25rem;margin:4px 0 12px}.range-select-menu[_ngcontent-%COMP%] .range-select-apply[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}"] }); }
|
|
4549
4627
|
}
|
|
4550
4628
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MultiFunctionalTableComponent, [{
|
|
4551
4629
|
type: Component,
|
|
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"] }]
|
|
4630
|
+
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\r\n matInput\r\n type=\"number\"\r\n required\r\n min=\"1\"\r\n [max]=\"rangeSelectionRowCount\"\r\n [ngModel]=\"rangeSelectionFrom\"\r\n (ngModelChange)=\"onRangeSelectionFromChange($event)\"\r\n #fromField=\"ngModel\"\r\n />\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\r\n matInput\r\n type=\"number\"\r\n required\r\n min=\"1\"\r\n [max]=\"rangeSelectionRowCount\"\r\n [ngModel]=\"rangeSelectionTo\"\r\n (ngModelChange)=\"onRangeSelectionToChange($event)\"\r\n #toField=\"ngModel\"\r\n />\r\n </mat-form-field>\r\n </div>\r\n\r\n <div class=\"range-select-errors\">\r\n <span *ngIf=\"fromField.errors?.['required'] || toField.errors?.['required']\">\r\n {{ \"MULTI_FUNCTIONAL_TABLE.RANGE_SELECT_ERROR_REQUIRED\" | translate }}\r\n </span>\r\n <span\r\n *ngIf=\"\r\n fromField.errors?.['min'] ||\r\n fromField.errors?.['max'] ||\r\n toField.errors?.['min'] ||\r\n toField.errors?.['max']\r\n \"\r\n >\r\n {{ \"MULTI_FUNCTIONAL_TABLE.RANGE_SELECT_ERROR_OUT_OF_RANGE\" | translate }}\r\n </span>\r\n <span *ngIf=\"rangeSelectionFromGreaterThanTo && !fromField.errors && !toField.errors\">\r\n {{ \"MULTI_FUNCTIONAL_TABLE.RANGE_SELECT_ERROR_FROM_GREATER\" | translate }}\r\n </span>\r\n </div>\r\n\r\n <div class=\"range-select-apply\">\r\n <button\r\n mat-flat-button\r\n color=\"accent\"\r\n (click)=\"applyRangeSelection()\"\r\n >\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{width:100%}.range-select-menu .range-select-errors{display:flex;flex-direction:column;gap:4px;color:var(--mat-sys-error);font-size:.75rem;line-height:1.25rem;min-height:1.25rem;margin:4px 0 12px}.range-select-menu .range-select-apply button{width:100%}\n"] }]
|
|
4553
4631
|
}], () => [{ type: DOMService }, { type: i1.TranslateService }], { config: [{
|
|
4554
4632
|
type: Input
|
|
4555
4633
|
}], highlightedElements: [{
|
|
@@ -4572,8 +4650,6 @@ class MultiFunctionalTableComponent {
|
|
|
4572
4650
|
type: Output
|
|
4573
4651
|
}], selectionChange: [{
|
|
4574
4652
|
type: Output
|
|
4575
|
-
}], rangeSelectionApplied: [{
|
|
4576
|
-
type: Output
|
|
4577
4653
|
}], headerRowDefs: [{
|
|
4578
4654
|
type: ContentChildren,
|
|
4579
4655
|
args: [MatHeaderRowDef]
|
|
@@ -4605,7 +4681,7 @@ class MultiFunctionalTableComponent {
|
|
|
4605
4681
|
type: ViewChild,
|
|
4606
4682
|
args: [MatTable, { read: ElementRef }]
|
|
4607
4683
|
}], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }] }); })();
|
|
4608
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MultiFunctionalTableComponent, { className: "MultiFunctionalTableComponent", filePath: "lib/multi-functional-table/multi-functional-table.component.ts", lineNumber:
|
|
4684
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MultiFunctionalTableComponent, { className: "MultiFunctionalTableComponent", filePath: "lib/multi-functional-table/multi-functional-table.component.ts", lineNumber: 28 }); })();
|
|
4609
4685
|
|
|
4610
4686
|
class StatusDisplayModule {
|
|
4611
4687
|
static { this.ɵfac = function StatusDisplayModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || StatusDisplayModule)(); }; }
|