@inspark/inspark-components 19.0.8 → 19.0.10
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/full/bms.css +1 -1
- package/full/components/table/table.component.d.ts +9 -0
- package/full/components/table/table.component.d.ts.map +1 -1
- package/full/components/tree-table/tree-table.component.d.ts +4 -0
- package/full/components/tree-table/tree-table.component.d.ts.map +1 -1
- package/full/fesm2022/inspark-inspark-components.mjs +188 -110
- package/full/fesm2022/inspark-inspark-components.mjs.map +1 -1
- package/full/index.css +1 -1
- package/package.json +1 -1
|
@@ -727,10 +727,9 @@ const _c4$3 = () => ({ width: "100%", overflow: "visible" });
|
|
|
727
727
|
const _c5$1 = (a0, a1, a2) => ({ rowIndex: a0, rowData: a1, columns: a2 });
|
|
728
728
|
const _c6 = a0 => ({ row_active: a0 });
|
|
729
729
|
const _c7 = (a0, a1, a2, a3, a4, a5) => ({ "row_status_success": a0, "row_status_error": a1, "row_status_warning": a2, "row_status_critical": a3, "row_status_falsevalue": a4, "row_status_pending": a5 });
|
|
730
|
-
const _c8 = a0 => ({
|
|
731
|
-
const _c9 = (
|
|
732
|
-
const _c10 =
|
|
733
|
-
const _c11 = a0 => ({ "is-dropdown-menu__listitem_active": a0 });
|
|
730
|
+
const _c8 = (a0, a1) => ({ data: a0, col: a1 });
|
|
731
|
+
const _c9 = () => ({ standalone: true });
|
|
732
|
+
const _c10 = a0 => ({ "is-dropdown-menu__listitem_active": a0 });
|
|
734
733
|
function TableComponent_span_0_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
735
734
|
i0.ɵɵelementStart(0, "span", 9);
|
|
736
735
|
i0.ɵɵtext(1, "*");
|
|
@@ -960,52 +959,54 @@ function TableComponent_7_ng_template_0_tr_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
960
959
|
i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(6, 4, rowData_r18.groupKey[ctx_r1.groupMode]), " (", ctx_r1.countGroup(rowData_r18.groupKey[ctx_r1.groupMode], ctx_r1.groupMode), " )");
|
|
961
960
|
} }
|
|
962
961
|
function TableComponent_7_ng_template_0_tr_1_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
963
|
-
i0.ɵɵ
|
|
964
|
-
i0.ɵɵ
|
|
965
|
-
i0.ɵɵ
|
|
962
|
+
const _r19 = i0.ɵɵgetCurrentView();
|
|
963
|
+
i0.ɵɵelementStart(0, "td", 40)(1, "input", 41);
|
|
964
|
+
i0.ɵɵlistener("change", function TableComponent_7_ng_template_0_tr_1_td_1_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r19); const rowData_r18 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1._onCheckboxChange($event, rowData_r18)); })("click", function TableComponent_7_ng_template_0_tr_1_td_1_Template_input_click_1_listener($event) { i0.ɵɵrestoreView(_r19); return i0.ɵɵresetView($event.stopPropagation()); });
|
|
965
|
+
i0.ɵɵelementEnd()();
|
|
966
966
|
} if (rf & 2) {
|
|
967
967
|
const rowData_r18 = i0.ɵɵnextContext(2).$implicit;
|
|
968
968
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
969
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction6(
|
|
969
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction6(4, _c7, rowData_r18.sdirparamstatecolor === "success", rowData_r18.sdirparamstatecolor === "error", rowData_r18.sdirparamstatecolor === "warning", rowData_r18.sdirparamstatecolor === "critical", rowData_r18.sdirparamstatecolor === "falsevalue", rowData_r18.sdirparamstatecolor === "pending"));
|
|
970
970
|
i0.ɵɵadvance();
|
|
971
|
-
i0.ɵɵ
|
|
971
|
+
i0.ɵɵstyleProp("pointer-events", ctx_r1.selectionMode === "single" || ctx_r1.selectionMode === "multiple" && ctx_r1.checkboxSelection ? "none" : "auto");
|
|
972
|
+
i0.ɵɵproperty("checked", ctx_r1._isRowSelected(rowData_r18));
|
|
972
973
|
} }
|
|
973
974
|
function TableComponent_7_ng_template_0_tr_1_td_2_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
974
|
-
const
|
|
975
|
+
const _r21 = i0.ɵɵgetCurrentView();
|
|
975
976
|
i0.ɵɵelementStart(0, "div", 44);
|
|
976
|
-
i0.ɵɵlistener("mouseover", function TableComponent_7_ng_template_0_tr_1_td_2_div_1_Template_div_mouseover_0_listener($event) { i0.ɵɵrestoreView(
|
|
977
|
+
i0.ɵɵlistener("mouseover", function TableComponent_7_ng_template_0_tr_1_td_2_div_1_Template_div_mouseover_0_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.showTooltip($event)); });
|
|
977
978
|
i0.ɵɵtext(1);
|
|
978
979
|
i0.ɵɵpipe(2, "propertyValue");
|
|
979
980
|
i0.ɵɵpipe(3, "translate");
|
|
980
981
|
i0.ɵɵpipe(4, "propertyValue");
|
|
981
982
|
i0.ɵɵelementEnd();
|
|
982
983
|
} if (rf & 2) {
|
|
983
|
-
const
|
|
984
|
+
const col_r22 = i0.ɵɵnextContext().$implicit;
|
|
984
985
|
const rowData_r18 = i0.ɵɵnextContext(2).$implicit;
|
|
985
986
|
i0.ɵɵadvance();
|
|
986
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
987
|
+
i0.ɵɵtextInterpolate1(" ", col_r22.translatable ? i0.ɵɵpipeBind1(3, 4, i0.ɵɵpipeBind2(2, 1, rowData_r18, col_r22.field)) : i0.ɵɵpipeBind2(4, 6, rowData_r18, col_r22.field), " ");
|
|
987
988
|
} }
|
|
988
989
|
function TableComponent_7_ng_template_0_tr_1_td_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
989
990
|
i0.ɵɵelementContainer(0);
|
|
990
991
|
} }
|
|
991
992
|
function TableComponent_7_ng_template_0_tr_1_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
992
|
-
const
|
|
993
|
+
const _r20 = i0.ɵɵgetCurrentView();
|
|
993
994
|
i0.ɵɵelementStart(0, "td", 42);
|
|
994
|
-
i0.ɵɵlistener("click", function TableComponent_7_ng_template_0_tr_1_td_2_Template_td_click_0_listener() { i0.ɵɵrestoreView(
|
|
995
|
+
i0.ɵɵlistener("click", function TableComponent_7_ng_template_0_tr_1_td_2_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r20); const rowData_r18 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.activeChange.emit(rowData_r18)); });
|
|
995
996
|
i0.ɵɵtemplate(1, TableComponent_7_ng_template_0_tr_1_td_2_div_1_Template, 5, 9, "div", 43)(2, TableComponent_7_ng_template_0_tr_1_td_2_ng_container_2_Template, 1, 0, "ng-container", 12);
|
|
996
997
|
i0.ɵɵelementEnd();
|
|
997
998
|
} if (rf & 2) {
|
|
998
|
-
const
|
|
999
|
+
const col_r22 = ctx.$implicit;
|
|
999
1000
|
const rowData_r18 = i0.ɵɵnextContext(2).$implicit;
|
|
1000
1001
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
1001
1002
|
i0.ɵɵadvance();
|
|
1002
1003
|
i0.ɵɵproperty("ngIf", !ctx_r1.valueTemplate);
|
|
1003
1004
|
i0.ɵɵadvance();
|
|
1004
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.valueTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(6, _c3$6, i0.ɵɵpureFunction2(3,
|
|
1005
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.valueTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(6, _c3$6, i0.ɵɵpureFunction2(3, _c8, rowData_r18, col_r22)));
|
|
1005
1006
|
} }
|
|
1006
1007
|
function TableComponent_7_ng_template_0_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
1007
1008
|
i0.ɵɵelementStart(0, "tr", 37);
|
|
1008
|
-
i0.ɵɵtemplate(1, TableComponent_7_ng_template_0_tr_1_td_1_Template, 2,
|
|
1009
|
+
i0.ɵɵtemplate(1, TableComponent_7_ng_template_0_tr_1_td_1_Template, 2, 11, "td", 38)(2, TableComponent_7_ng_template_0_tr_1_td_2_Template, 3, 8, "td", 39);
|
|
1009
1010
|
i0.ɵɵelementEnd();
|
|
1010
1011
|
} if (rf & 2) {
|
|
1011
1012
|
const rowData_r18 = i0.ɵɵnextContext().$implicit;
|
|
@@ -1030,15 +1031,15 @@ function TableComponent_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
1030
1031
|
i0.ɵɵtemplate(0, TableComponent_7_ng_template_0_Template, 2, 2, "ng-template", 31);
|
|
1031
1032
|
} }
|
|
1032
1033
|
function TableComponent_8_ng_template_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
1033
|
-
const
|
|
1034
|
+
const _r24 = i0.ɵɵgetCurrentView();
|
|
1034
1035
|
i0.ɵɵelementStart(0, "div", 56)(1, "form", 6)(2, "div", 57)(3, "input", 58, 1);
|
|
1035
1036
|
i0.ɵɵpipe(5, "translate");
|
|
1036
|
-
i0.ɵɵlistener("input", function TableComponent_8_ng_template_0_div_2_Template_input_input_3_listener() { i0.ɵɵrestoreView(
|
|
1037
|
-
i0.ɵɵtwoWayListener("ngModelChange", function TableComponent_8_ng_template_0_div_2_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(
|
|
1037
|
+
i0.ɵɵlistener("input", function TableComponent_8_ng_template_0_div_2_Template_input_input_3_listener() { i0.ɵɵrestoreView(_r24); const ctx_r1 = i0.ɵɵnextContext(3); const dt_r7 = i0.ɵɵreference(2); return i0.ɵɵresetView(ctx_r1.localSearch(dt_r7, ctx_r1.searchText)); });
|
|
1038
|
+
i0.ɵɵtwoWayListener("ngModelChange", function TableComponent_8_ng_template_0_div_2_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r24); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.searchText, $event) || (ctx_r1.searchText = $event); return i0.ɵɵresetView($event); });
|
|
1038
1039
|
i0.ɵɵelementEnd();
|
|
1039
1040
|
i0.ɵɵelementStart(6, "button", 59);
|
|
1040
1041
|
i0.ɵɵpipe(7, "translate");
|
|
1041
|
-
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_div_2_Template_button_click_6_listener() { i0.ɵɵrestoreView(
|
|
1042
|
+
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_div_2_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r24); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.clear()); });
|
|
1042
1043
|
i0.ɵɵelement(8, "i", 60);
|
|
1043
1044
|
i0.ɵɵelementEnd()()()();
|
|
1044
1045
|
} if (rf & 2) {
|
|
@@ -1046,14 +1047,14 @@ function TableComponent_8_ng_template_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
1046
1047
|
i0.ɵɵadvance(3);
|
|
1047
1048
|
i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(5, 4, "SHARED.SEARCH") + ":");
|
|
1048
1049
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.searchText);
|
|
1049
|
-
i0.ɵɵproperty("ngModelOptions", i0.ɵɵpureFunction0(8,
|
|
1050
|
+
i0.ɵɵproperty("ngModelOptions", i0.ɵɵpureFunction0(8, _c9));
|
|
1050
1051
|
i0.ɵɵadvance(3);
|
|
1051
1052
|
i0.ɵɵattribute("title", i0.ɵɵpipeBind1(7, 6, "Reset"));
|
|
1052
1053
|
} }
|
|
1053
1054
|
function TableComponent_8_ng_template_0_button_5_Template(rf, ctx) { if (rf & 1) {
|
|
1054
|
-
const
|
|
1055
|
+
const _r25 = i0.ɵɵgetCurrentView();
|
|
1055
1056
|
i0.ɵɵelementStart(0, "button", 61);
|
|
1056
|
-
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_5_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
1057
|
+
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_5_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r25); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onFilterToolbar($event)); });
|
|
1057
1058
|
i0.ɵɵelement(1, "i", 62);
|
|
1058
1059
|
i0.ɵɵpipe(2, "translate");
|
|
1059
1060
|
i0.ɵɵelementEnd();
|
|
@@ -1062,9 +1063,9 @@ function TableComponent_8_ng_template_0_button_5_Template(rf, ctx) { if (rf & 1)
|
|
|
1062
1063
|
i0.ɵɵpropertyInterpolate("title", i0.ɵɵpipeBind1(2, 1, "Service filter"));
|
|
1063
1064
|
} }
|
|
1064
1065
|
function TableComponent_8_ng_template_0_button_6_Template(rf, ctx) { if (rf & 1) {
|
|
1065
|
-
const
|
|
1066
|
+
const _r26 = i0.ɵɵgetCurrentView();
|
|
1066
1067
|
i0.ɵɵelementStart(0, "button", 63);
|
|
1067
|
-
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_6_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
1068
|
+
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_6_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.treeAction.emit($event)); });
|
|
1068
1069
|
i0.ɵɵelement(1, "i", 64);
|
|
1069
1070
|
i0.ɵɵpipe(2, "translate");
|
|
1070
1071
|
i0.ɵɵelementEnd();
|
|
@@ -1075,9 +1076,9 @@ function TableComponent_8_ng_template_0_button_6_Template(rf, ctx) { if (rf & 1)
|
|
|
1075
1076
|
i0.ɵɵpropertyInterpolate("title", i0.ɵɵpipeBind1(2, 2, "Filter by rubric"));
|
|
1076
1077
|
} }
|
|
1077
1078
|
function TableComponent_8_ng_template_0_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
1078
|
-
const
|
|
1079
|
+
const _r27 = i0.ɵɵgetCurrentView();
|
|
1079
1080
|
i0.ɵɵelementStart(0, "button", 63);
|
|
1080
|
-
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_7_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
1081
|
+
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_7_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r27); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.addAction.emit($event)); });
|
|
1081
1082
|
i0.ɵɵelement(1, "i", 65);
|
|
1082
1083
|
i0.ɵɵpipe(2, "translate");
|
|
1083
1084
|
i0.ɵɵelementEnd();
|
|
@@ -1088,9 +1089,9 @@ function TableComponent_8_ng_template_0_button_7_Template(rf, ctx) { if (rf & 1)
|
|
|
1088
1089
|
i0.ɵɵpropertyInterpolate("title", i0.ɵɵpipeBind1(2, 2, "Add"));
|
|
1089
1090
|
} }
|
|
1090
1091
|
function TableComponent_8_ng_template_0_button_8_Template(rf, ctx) { if (rf & 1) {
|
|
1091
|
-
const
|
|
1092
|
+
const _r28 = i0.ɵɵgetCurrentView();
|
|
1092
1093
|
i0.ɵɵelementStart(0, "button", 63);
|
|
1093
|
-
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_8_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
1094
|
+
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_8_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r28); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.linkAction.emit($event)); });
|
|
1094
1095
|
i0.ɵɵelement(1, "i", 66);
|
|
1095
1096
|
i0.ɵɵpipe(2, "translate");
|
|
1096
1097
|
i0.ɵɵelementEnd();
|
|
@@ -1101,9 +1102,9 @@ function TableComponent_8_ng_template_0_button_8_Template(rf, ctx) { if (rf & 1)
|
|
|
1101
1102
|
i0.ɵɵpropertyInterpolate("title", i0.ɵɵpipeBind1(2, 2, "Link"));
|
|
1102
1103
|
} }
|
|
1103
1104
|
function TableComponent_8_ng_template_0_button_9_Template(rf, ctx) { if (rf & 1) {
|
|
1104
|
-
const
|
|
1105
|
+
const _r29 = i0.ɵɵgetCurrentView();
|
|
1105
1106
|
i0.ɵɵelementStart(0, "button", 63);
|
|
1106
|
-
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_9_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
1107
|
+
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_9_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r29); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.csvAction.emit($event)); });
|
|
1107
1108
|
i0.ɵɵelement(1, "i", 67);
|
|
1108
1109
|
i0.ɵɵpipe(2, "translate");
|
|
1109
1110
|
i0.ɵɵelementEnd();
|
|
@@ -1114,10 +1115,10 @@ function TableComponent_8_ng_template_0_button_9_Template(rf, ctx) { if (rf & 1)
|
|
|
1114
1115
|
i0.ɵɵpropertyInterpolate("title", i0.ɵɵpipeBind1(2, 2, "LOGS.SAVE_TO_CSV"));
|
|
1115
1116
|
} }
|
|
1116
1117
|
function TableComponent_8_ng_template_0_button_10_Template(rf, ctx) { if (rf & 1) {
|
|
1117
|
-
const
|
|
1118
|
+
const _r30 = i0.ɵɵgetCurrentView();
|
|
1118
1119
|
i0.ɵɵelementStart(0, "button", 68);
|
|
1119
1120
|
i0.ɵɵpipe(1, "translate");
|
|
1120
|
-
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_10_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
1121
|
+
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_10_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r30); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.saveAction.emit($event)); });
|
|
1121
1122
|
i0.ɵɵtext(2);
|
|
1122
1123
|
i0.ɵɵpipe(3, "translate");
|
|
1123
1124
|
i0.ɵɵelementEnd();
|
|
@@ -1129,9 +1130,9 @@ function TableComponent_8_ng_template_0_button_10_Template(rf, ctx) { if (rf & 1
|
|
|
1129
1130
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 5, "Save"), " ");
|
|
1130
1131
|
} }
|
|
1131
1132
|
function TableComponent_8_ng_template_0_button_11_Template(rf, ctx) { if (rf & 1) {
|
|
1132
|
-
const
|
|
1133
|
+
const _r31 = i0.ɵɵgetCurrentView();
|
|
1133
1134
|
i0.ɵɵelementStart(0, "button", 63);
|
|
1134
|
-
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_11_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
1135
|
+
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_11_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r31); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.groupEditAction.emit($event)); });
|
|
1135
1136
|
i0.ɵɵelement(1, "i", 69);
|
|
1136
1137
|
i0.ɵɵpipe(2, "translate");
|
|
1137
1138
|
i0.ɵɵelementEnd();
|
|
@@ -1142,9 +1143,9 @@ function TableComponent_8_ng_template_0_button_11_Template(rf, ctx) { if (rf & 1
|
|
|
1142
1143
|
i0.ɵɵpropertyInterpolate("title", i0.ɵɵpipeBind1(2, 2, "groupEdit"));
|
|
1143
1144
|
} }
|
|
1144
1145
|
function TableComponent_8_ng_template_0_button_13_Template(rf, ctx) { if (rf & 1) {
|
|
1145
|
-
const
|
|
1146
|
+
const _r32 = i0.ɵɵgetCurrentView();
|
|
1146
1147
|
i0.ɵɵelementStart(0, "button", 63);
|
|
1147
|
-
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_13_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
1148
|
+
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_13_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r32); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.paramsEditAction.emit($event)); });
|
|
1148
1149
|
i0.ɵɵelement(1, "i", 69);
|
|
1149
1150
|
i0.ɵɵpipe(2, "translate");
|
|
1150
1151
|
i0.ɵɵelementEnd();
|
|
@@ -1155,9 +1156,9 @@ function TableComponent_8_ng_template_0_button_13_Template(rf, ctx) { if (rf & 1
|
|
|
1155
1156
|
i0.ɵɵpropertyInterpolate("title", i0.ɵɵpipeBind1(2, 2, "paramsEdit"));
|
|
1156
1157
|
} }
|
|
1157
1158
|
function TableComponent_8_ng_template_0_button_14_Template(rf, ctx) { if (rf & 1) {
|
|
1158
|
-
const
|
|
1159
|
+
const _r33 = i0.ɵɵgetCurrentView();
|
|
1159
1160
|
i0.ɵɵelementStart(0, "button", 63);
|
|
1160
|
-
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_14_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
1161
|
+
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_14_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r33); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.removeAction.emit($event)); });
|
|
1161
1162
|
i0.ɵɵelement(1, "i", 70);
|
|
1162
1163
|
i0.ɵɵpipe(2, "translate");
|
|
1163
1164
|
i0.ɵɵelementEnd();
|
|
@@ -1168,9 +1169,9 @@ function TableComponent_8_ng_template_0_button_14_Template(rf, ctx) { if (rf & 1
|
|
|
1168
1169
|
i0.ɵɵpropertyInterpolate("title", i0.ɵɵpipeBind1(2, 2, "Delete"));
|
|
1169
1170
|
} }
|
|
1170
1171
|
function TableComponent_8_ng_template_0_button_15_Template(rf, ctx) { if (rf & 1) {
|
|
1171
|
-
const
|
|
1172
|
+
const _r34 = i0.ɵɵgetCurrentView();
|
|
1172
1173
|
i0.ɵɵelementStart(0, "button", 63);
|
|
1173
|
-
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_15_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
1174
|
+
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_15_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r34); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.unlinkAction.emit($event)); });
|
|
1174
1175
|
i0.ɵɵelement(1, "i", 71);
|
|
1175
1176
|
i0.ɵɵpipe(2, "translate");
|
|
1176
1177
|
i0.ɵɵelementEnd();
|
|
@@ -1181,10 +1182,10 @@ function TableComponent_8_ng_template_0_button_15_Template(rf, ctx) { if (rf & 1
|
|
|
1181
1182
|
i0.ɵɵpropertyInterpolate("title", i0.ɵɵpipeBind1(2, 2, "Detach tag from selected items"));
|
|
1182
1183
|
} }
|
|
1183
1184
|
function TableComponent_8_ng_template_0_button_16_Template(rf, ctx) { if (rf & 1) {
|
|
1184
|
-
const
|
|
1185
|
+
const _r35 = i0.ɵɵgetCurrentView();
|
|
1185
1186
|
i0.ɵɵelementStart(0, "button", 72);
|
|
1186
1187
|
i0.ɵɵpipe(1, "translate");
|
|
1187
|
-
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_16_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
1188
|
+
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_16_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r35); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.toggleNodes(true)); });
|
|
1188
1189
|
i0.ɵɵnamespaceSVG();
|
|
1189
1190
|
i0.ɵɵelementStart(2, "svg", 73);
|
|
1190
1191
|
i0.ɵɵelement(3, "path", 74);
|
|
@@ -1193,10 +1194,10 @@ function TableComponent_8_ng_template_0_button_16_Template(rf, ctx) { if (rf & 1
|
|
|
1193
1194
|
i0.ɵɵpropertyInterpolate("title", i0.ɵɵpipeBind1(1, 1, "Expand all"));
|
|
1194
1195
|
} }
|
|
1195
1196
|
function TableComponent_8_ng_template_0_button_17_Template(rf, ctx) { if (rf & 1) {
|
|
1196
|
-
const
|
|
1197
|
+
const _r36 = i0.ɵɵgetCurrentView();
|
|
1197
1198
|
i0.ɵɵelementStart(0, "button", 72);
|
|
1198
1199
|
i0.ɵɵpipe(1, "translate");
|
|
1199
|
-
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_17_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
1200
|
+
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_button_17_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r36); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.toggleNodes(false)); });
|
|
1200
1201
|
i0.ɵɵnamespaceSVG();
|
|
1201
1202
|
i0.ɵɵelementStart(2, "svg", 73);
|
|
1202
1203
|
i0.ɵɵelement(3, "path", 75);
|
|
@@ -1205,17 +1206,17 @@ function TableComponent_8_ng_template_0_button_17_Template(rf, ctx) { if (rf & 1
|
|
|
1205
1206
|
i0.ɵɵpropertyInterpolate("title", i0.ɵɵpipeBind1(1, 1, "Collapse all"));
|
|
1206
1207
|
} }
|
|
1207
1208
|
function TableComponent_8_ng_template_0_div_18_li_6_Template(rf, ctx) { if (rf & 1) {
|
|
1208
|
-
const
|
|
1209
|
+
const _r37 = i0.ɵɵgetCurrentView();
|
|
1209
1210
|
i0.ɵɵelementStart(0, "li", 82)(1, "a", 83);
|
|
1210
|
-
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_div_18_li_6_Template_a_click_1_listener() { const
|
|
1211
|
+
i0.ɵɵlistener("click", function TableComponent_8_ng_template_0_div_18_li_6_Template_a_click_1_listener() { const item_r38 = i0.ɵɵrestoreView(_r37).$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.toggleMode(item_r38.value)); });
|
|
1211
1212
|
i0.ɵɵtext(2);
|
|
1212
1213
|
i0.ɵɵelementEnd()();
|
|
1213
1214
|
} if (rf & 2) {
|
|
1214
|
-
const
|
|
1215
|
+
const item_r38 = ctx.$implicit;
|
|
1215
1216
|
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
1216
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2,
|
|
1217
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c10, item_r38.value === ctx_r1.groupMode));
|
|
1217
1218
|
i0.ɵɵadvance(2);
|
|
1218
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
1219
|
+
i0.ɵɵtextInterpolate1(" ", item_r38.label, " ");
|
|
1219
1220
|
} }
|
|
1220
1221
|
function TableComponent_8_ng_template_0_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
1221
1222
|
i0.ɵɵelementStart(0, "div", 76)(1, "button", 77);
|
|
@@ -1233,11 +1234,11 @@ function TableComponent_8_ng_template_0_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
|
1233
1234
|
i0.ɵɵproperty("ngForOf", ctx_r1.toolbar.groupSort.label);
|
|
1234
1235
|
} }
|
|
1235
1236
|
function TableComponent_8_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
1236
|
-
const
|
|
1237
|
+
const _r23 = i0.ɵɵgetCurrentView();
|
|
1237
1238
|
i0.ɵɵelementStart(0, "div", 46)(1, "div", 47);
|
|
1238
1239
|
i0.ɵɵtemplate(2, TableComponent_8_ng_template_0_div_2_Template, 9, 9, "div", 48);
|
|
1239
1240
|
i0.ɵɵelementStart(3, "div", 49)(4, "in-table-columns-multiselect", 50);
|
|
1240
|
-
i0.ɵɵlistener("columnsChange", function TableComponent_8_ng_template_0_Template_in_table_columns_multiselect_columnsChange_4_listener($event) { i0.ɵɵrestoreView(
|
|
1241
|
+
i0.ɵɵlistener("columnsChange", function TableComponent_8_ng_template_0_Template_in_table_columns_multiselect_columnsChange_4_listener($event) { i0.ɵɵrestoreView(_r23); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.columnsChange($event)); });
|
|
1241
1242
|
i0.ɵɵelementEnd()();
|
|
1242
1243
|
i0.ɵɵtemplate(5, TableComponent_8_ng_template_0_button_5_Template, 3, 3, "button", 51)(6, TableComponent_8_ng_template_0_button_6_Template, 3, 4, "button", 52)(7, TableComponent_8_ng_template_0_button_7_Template, 3, 4, "button", 52)(8, TableComponent_8_ng_template_0_button_8_Template, 3, 4, "button", 52)(9, TableComponent_8_ng_template_0_button_9_Template, 3, 4, "button", 52)(10, TableComponent_8_ng_template_0_button_10_Template, 4, 7, "button", 53)(11, TableComponent_8_ng_template_0_button_11_Template, 3, 4, "button", 52);
|
|
1243
1244
|
i0.ɵɵprojection(12);
|
|
@@ -1315,15 +1316,52 @@ class TableComponent {
|
|
|
1315
1316
|
this.groupInfo = {};
|
|
1316
1317
|
this.groupIndex = {};
|
|
1317
1318
|
this._selection = null;
|
|
1319
|
+
/** O(1) selected-row lookup. Rebuilt whenever selection changes.
|
|
1320
|
+
* Replaces p-tableCheckbox which calls dt.isSelected() (O(M)) for EVERY
|
|
1321
|
+
* row on EVERY CD cycle via TableService.selectionSource$ subscription. */
|
|
1322
|
+
this._selectionSet = new Set();
|
|
1323
|
+
}
|
|
1324
|
+
_rebuildSelectionSet(val) {
|
|
1325
|
+
this._selectionSet = new Set();
|
|
1326
|
+
if (Array.isArray(val)) {
|
|
1327
|
+
const key = this.dataKey || 'id';
|
|
1328
|
+
for (const item of val) {
|
|
1329
|
+
if (item != null) {
|
|
1330
|
+
this._selectionSet.add(item[key] ?? item);
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
/** O(1) check used in template instead of dt.isSelected() */
|
|
1336
|
+
_isRowSelected(row) {
|
|
1337
|
+
const key = this.dataKey || 'id';
|
|
1338
|
+
return this._selectionSet.has(row?.[key] ?? row);
|
|
1339
|
+
}
|
|
1340
|
+
/** Called when native checkbox changes */
|
|
1341
|
+
_onCheckboxChange(event, row) {
|
|
1342
|
+
const checked = event.target.checked;
|
|
1343
|
+
const key = this.dataKey || 'id';
|
|
1344
|
+
const rowKey = row?.[key] ?? row;
|
|
1345
|
+
if (checked) {
|
|
1346
|
+
this._selectionSet.add(rowKey);
|
|
1347
|
+
this._selection = [...(this._selection || []), row];
|
|
1348
|
+
}
|
|
1349
|
+
else {
|
|
1350
|
+
this._selectionSet.delete(rowKey);
|
|
1351
|
+
this._selection = (this._selection || []).filter((item) => (item?.[key] ?? item) !== rowKey);
|
|
1352
|
+
}
|
|
1353
|
+
this.selectionValue = this._selection;
|
|
1318
1354
|
}
|
|
1319
1355
|
set selection(val) {
|
|
1320
1356
|
this._selection = val;
|
|
1357
|
+
this._rebuildSelectionSet(val);
|
|
1321
1358
|
}
|
|
1322
1359
|
get selectionValue() {
|
|
1323
1360
|
return this._selection;
|
|
1324
1361
|
}
|
|
1325
1362
|
set selectionValue(val) {
|
|
1326
1363
|
this._selection = val;
|
|
1364
|
+
this._rebuildSelectionSet(val);
|
|
1327
1365
|
this.selectionChange.emit(val);
|
|
1328
1366
|
}
|
|
1329
1367
|
isRowActive(row) {
|
|
@@ -1556,7 +1594,7 @@ class TableComponent {
|
|
|
1556
1594
|
} if (rf & 2) {
|
|
1557
1595
|
let _t;
|
|
1558
1596
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dt = _t.first);
|
|
1559
|
-
} }, inputs: { columns: "columns", values: "values", scrollHeight: "scrollHeight", scrollable: "scrollable", selectionMode: "selectionMode", label: "label", error: "error", class: "class", required: "required", style: "style", toolbar: "toolbar", checkboxSelection: "checkboxSelection", active: "active", sortField: "sortField", isAscending: "isAscending", dataKey: "dataKey", stateKey: "stateKey", isGrouped: "isGrouped", customSort: "customSort", isGroupedExpanded: "isGroupedExpanded", showHeader: "showHeader", isMobileView: "isMobileView", resizableColumns: "resizableColumns", isTextSearch: "isTextSearch", isSortIcon: "isSortIcon", columnResizeMode: "columnResizeMode", selection: "selection" }, outputs: { activeChange: "activeChange", selectionChange: "selectionChange", addAction: "addAction", treeAction: "treeAction", csvAction: "csvAction", saveAction: "saveAction", removeAction: "removeAction", unlinkAction: "unlinkAction", linkAction: "linkAction", groupEditAction: "groupEditAction", paramsEditAction: "paramsEditAction", sortFunction: "sortFunction", filterFunction: "filterFunction" }, standalone: false, features: [i0.ɵɵProvidersFeature([TableService])], ngContentSelectors: _c1$b, decls: 9, vars: 25, consts: [["dt", ""], ["searchTextInput", ""], ["class", "c-label", 4, "ngIf"], [3, "onFilter", "onSort", "onStateRestore", "onStateSave", "sortFunction", "selectionChange", "selection", "columns", "customSort", "dataKey", "globalFilterFields", "resizableColumns", "scrollHeight", "scrollable", "selectionMode", "sortField", "sortOrder", "stateKey", "stateStorage", "value", "columnResizeMode"], [4, "ngIf"], ["pTemplate", "header"], [1, "c-label"], ["class", "c-label__req", 4, "ngIf"], ["class", "c-label__sub_is-error", 4, "ngIf"], [1, "c-label__req"], [1, "c-label__sub_is-error"], ["pTemplate", "colgroup"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], ["style", "width: 44px;", 4, "ngIf"], [4, "ngFor", "ngForOf"], [2, "width", "44px"], ["class", "u-position-relative u-text_center", "pResizableColumn", "", "style", "width: 44px;", 4, "ngIf"], ["class", "u-position-relative", "pResizableColumn", "", 3, "pSortableColumn", 4, "ngFor", "ngForOf"], ["pResizableColumn", "", 1, "u-position-relative", "u-text_center", 2, "width", "44px"], ["pResizableColumn", "", 1, "u-position-relative", 3, "pSortableColumn"], [1, "p-table-thead-title", 3, "title"], ["class", "u-position-absolute u-position-absolute-right c-sorticon", "style", "display: flex; width: 18px; top: 0; height: 100%;", 3, "field", 4, "ngIf"], [1, "u-position-absolute", "u-position-absolute-right", "c-sorticon", 2, "display", "flex", "width", "18px", "top", "0", "height", "100%", 3, "field"], [3, "ngSwitch", 4, "ngFor", "ngForOf"], [3, "ngSwitch"], ["autofocus", "", "class", "c-input c-input_small ng-pristine ng-valid ng-scope ng-empty ng-touched", "pInputText", "", "type", "text", 3, "input", 4, "ngSwitchCase"], ["appendTo", "body", 3, "options", "style", "onChange", 4, "ngSwitchCase"], ["appendTo", "body", 3, "options", "style", "defaultLabel", "onChange", 4, "ngSwitchCase"], ["autofocus", "", "pInputText", "", "type", "text", 1, "c-input", "c-input_small", "ng-pristine", "ng-valid", "ng-scope", "ng-empty", "ng-touched", 3, "input"], ["appendTo", "body", 3, "onChange", "options"], ["appendTo", "body", 3, "onChange", "options", "defaultLabel"], ["pTemplate", "body"], ["class", "row_hover_highlight", 3, "click", 4, "ngIf"], ["class", "row", 3, "ngClass", "pSelectableRow", 4, "ngIf"], [1, "row_hover_highlight", 3, "click"], [3, "colSpan"], [3, "ngClass"], [1, "row", 3, "ngClass", "pSelectableRow"], ["class", "u-text_center", "style", "width: 44px", 3, "ngClass", 4, "ngIf"], ["class", "u-overflow-visible", 3, "click", 4, "ngFor", "ngForOf"], [1, "u-text_center", 2, "width", "44px", 3, "ngClass"], [3, "
|
|
1597
|
+
} }, inputs: { columns: "columns", values: "values", scrollHeight: "scrollHeight", scrollable: "scrollable", selectionMode: "selectionMode", label: "label", error: "error", class: "class", required: "required", style: "style", toolbar: "toolbar", checkboxSelection: "checkboxSelection", active: "active", sortField: "sortField", isAscending: "isAscending", dataKey: "dataKey", stateKey: "stateKey", isGrouped: "isGrouped", customSort: "customSort", isGroupedExpanded: "isGroupedExpanded", showHeader: "showHeader", isMobileView: "isMobileView", resizableColumns: "resizableColumns", isTextSearch: "isTextSearch", isSortIcon: "isSortIcon", columnResizeMode: "columnResizeMode", selection: "selection" }, outputs: { activeChange: "activeChange", selectionChange: "selectionChange", addAction: "addAction", treeAction: "treeAction", csvAction: "csvAction", saveAction: "saveAction", removeAction: "removeAction", unlinkAction: "unlinkAction", linkAction: "linkAction", groupEditAction: "groupEditAction", paramsEditAction: "paramsEditAction", sortFunction: "sortFunction", filterFunction: "filterFunction" }, standalone: false, features: [i0.ɵɵProvidersFeature([TableService])], ngContentSelectors: _c1$b, decls: 9, vars: 25, consts: [["dt", ""], ["searchTextInput", ""], ["class", "c-label", 4, "ngIf"], [3, "onFilter", "onSort", "onStateRestore", "onStateSave", "sortFunction", "selectionChange", "selection", "columns", "customSort", "dataKey", "globalFilterFields", "resizableColumns", "scrollHeight", "scrollable", "selectionMode", "sortField", "sortOrder", "stateKey", "stateStorage", "value", "columnResizeMode"], [4, "ngIf"], ["pTemplate", "header"], [1, "c-label"], ["class", "c-label__req", 4, "ngIf"], ["class", "c-label__sub_is-error", 4, "ngIf"], [1, "c-label__req"], [1, "c-label__sub_is-error"], ["pTemplate", "colgroup"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], ["style", "width: 44px;", 4, "ngIf"], [4, "ngFor", "ngForOf"], [2, "width", "44px"], ["class", "u-position-relative u-text_center", "pResizableColumn", "", "style", "width: 44px;", 4, "ngIf"], ["class", "u-position-relative", "pResizableColumn", "", 3, "pSortableColumn", 4, "ngFor", "ngForOf"], ["pResizableColumn", "", 1, "u-position-relative", "u-text_center", 2, "width", "44px"], ["pResizableColumn", "", 1, "u-position-relative", 3, "pSortableColumn"], [1, "p-table-thead-title", 3, "title"], ["class", "u-position-absolute u-position-absolute-right c-sorticon", "style", "display: flex; width: 18px; top: 0; height: 100%;", 3, "field", 4, "ngIf"], [1, "u-position-absolute", "u-position-absolute-right", "c-sorticon", 2, "display", "flex", "width", "18px", "top", "0", "height", "100%", 3, "field"], [3, "ngSwitch", 4, "ngFor", "ngForOf"], [3, "ngSwitch"], ["autofocus", "", "class", "c-input c-input_small ng-pristine ng-valid ng-scope ng-empty ng-touched", "pInputText", "", "type", "text", 3, "input", 4, "ngSwitchCase"], ["appendTo", "body", 3, "options", "style", "onChange", 4, "ngSwitchCase"], ["appendTo", "body", 3, "options", "style", "defaultLabel", "onChange", 4, "ngSwitchCase"], ["autofocus", "", "pInputText", "", "type", "text", 1, "c-input", "c-input_small", "ng-pristine", "ng-valid", "ng-scope", "ng-empty", "ng-touched", 3, "input"], ["appendTo", "body", 3, "onChange", "options"], ["appendTo", "body", 3, "onChange", "options", "defaultLabel"], ["pTemplate", "body"], ["class", "row_hover_highlight", 3, "click", 4, "ngIf"], ["class", "row", 3, "ngClass", "pSelectableRow", 4, "ngIf"], [1, "row_hover_highlight", 3, "click"], [3, "colSpan"], [3, "ngClass"], [1, "row", 3, "ngClass", "pSelectableRow"], ["class", "u-text_center", "style", "width: 44px", 3, "ngClass", 4, "ngIf"], ["class", "u-overflow-visible", 3, "click", 4, "ngFor", "ngForOf"], [1, "u-text_center", 2, "width", "44px", 3, "ngClass"], ["type", "checkbox", 1, "in-table-checkbox", 3, "change", "click", "checked"], [1, "u-overflow-visible", 3, "click"], ["class", "p-table-tbody-content", "title", "", 3, "mouseover", 4, "ngIf"], ["title", "", 1, "p-table-tbody-content", 3, "mouseover"], ["pTemplate", "caption"], [1, "o-grid", "o-grid_no-gutter"], [1, "c-tree-table__toolbar-content", "u-display-inline-flex"], ["class", "c-form c-form_inline u-display-inline-block", 4, "ngIf"], [1, "c-btn", "c-btn_border-free", "c-btn_small"], [3, "columnsChange", "columns", "disableActiveCheckboxes"], ["class", "c-btn c-btn_border-free c-btn_small", 3, "click", 4, "ngIf"], ["class", "c-btn c-btn_border-free c-btn_small", 3, "disabled", "click", 4, "ngIf"], ["class", "c-btn c-btn_primary c-btn_small", 3, "disabled", "title", "click", 4, "ngIf"], ["class", "c-btn c-btn_small c-btn_svg-24 c-icon c-icon_svg c-icon_svg-24 c-btn_border-free", 3, "title", "click", 4, "ngIf"], ["class", "c-btn-group", "container", "body", "ngbDropdown", "", 4, "ngIf"], [1, "c-form", "c-form_inline", "u-display-inline-block"], [1, "input-wrapper", "u-margin-right-tiny"], ["autofocus", "", "pInputText", "", "required", "", "tabindex", "1", "type", "search", 1, "search-box", "c-input", "c-input_small", "ng-pristine", "ng-valid", "ng-scope", "ng-empty", "ng-touched", 2, "padding-right", "28px", 3, "input", "ngModelChange", "ngModel", "ngModelOptions", "placeholder"], ["type", "reset", 1, "button-reset", 3, "click"], [1, "in", "in-close"], [1, "c-btn", "c-btn_border-free", "c-btn_small", 3, "click"], [1, "in", "in-filter", 3, "title"], [1, "c-btn", "c-btn_border-free", "c-btn_small", 3, "click", "disabled"], [1, "in", "in-list", 3, "title"], [1, "in", "in-plus", 3, "title"], [1, "in", "in-link", 3, "title"], [1, "in", "in-file-excel-outline", 3, "title"], [1, "c-btn", "c-btn_primary", "c-btn_small", 3, "click", "disabled", "title"], [1, "in", "in-pencil", 3, "title"], [1, "in", "in-trash", 3, "title"], [1, "in", "in-link-off", 3, "title"], [1, "c-btn", "c-btn_small", "c-btn_svg-24", "c-icon", "c-icon_svg", "c-icon_svg-24", "c-btn_border-free", 3, "click", "title"], ["fill", "currentColor", "height", "24", "viewBox", "0 0 24 24", "width", "24", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M20 2H4v2h16V2zM4 20v2h16v-2H4zM12 5l5 6H7l5-6zM17 13l-5 6-5-6h10z"], ["clip-rule", "evenodd", "d", "M17 3l-5 6-5-6h10zM4 13v-2h16v2H4zm8 2l5 6H7l5-6z", "fill-rule", "evenodd"], ["container", "body", "ngbDropdown", "", 1, "c-btn-group"], ["id", "dropdownGroupType", "ngbDropdownToggle", "", 1, "c-btn", "c-btn_border-free", "c-btn_small", 3, "title"], ["aria-hidden", "true", 1, "in", "in-object-group"], ["aria-hidden", "true", 1, "c-caret"], ["aria-labelledby", "dropdownGroupType", "ngbDropdownMenu", "", "role", "menu", 1, "c-dropdown-menu", "c-dropdown-menu_right", "ng-star-inserted"], ["class", "c-dropdown-menu__listitem is-dropdown-menu__listitem_active", "ngbDropdownItem", "", "role", "menuitem", 3, "ngClass", 4, "ngFor", "ngForOf"], ["ngbDropdownItem", "", "role", "menuitem", 1, "c-dropdown-menu__listitem", "is-dropdown-menu__listitem_active", 3, "ngClass"], [1, "c-dropdown-menu__content", 3, "click"]], template: function TableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1560
1598
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
1561
1599
|
i0.ɵɵprojectionDef(_c0$l);
|
|
1562
1600
|
i0.ɵɵtemplate(0, TableComponent_span_0_Template, 4, 3, "span", 2);
|
|
@@ -1582,11 +1620,11 @@ class TableComponent {
|
|
|
1582
1620
|
i0.ɵɵproperty("ngIf", !ctx.bodyTemplate);
|
|
1583
1621
|
i0.ɵɵadvance();
|
|
1584
1622
|
i0.ɵɵproperty("ngIf", ctx.toolbar);
|
|
1585
|
-
} }, dependencies: () => [i1$2.NgClass, i1$2.NgForOf, i1$2.NgIf, i1$2.NgTemplateOutlet, i1$2.
|
|
1623
|
+
} }, dependencies: () => [i1$2.NgClass, i1$2.NgForOf, i1$2.NgIf, i1$2.NgTemplateOutlet, i1$2.NgSwitch, i1$2.NgSwitchCase, i2$2.Table, i2.PrimeTemplate, i2$2.SortableColumn, i2$2.SelectableRow, i2$2.ResizableColumn, i2$2.SortIcon, i2$2.TableHeaderCheckbox, i2$1.ɵNgNoValidate, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.NgControlStatusGroup, i2$1.RequiredValidator, i2$1.NgModel, i2$1.NgForm, i5.Dropdown, i6.MultiSelect, i7.NgbDropdown, i7.NgbDropdownToggle, i7.NgbDropdownMenu, i7.NgbDropdownItem, TableColumnsMultiselectComponent, PropertyValuePipe, i1.TranslatePipe], styles: ["@charset \"UTF-8\";.u-overflow-visible[_ngcontent-%COMP%]{overflow:visible!important}.row_status_success[_ngcontent-%COMP%]{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-success, #31AC51)}.row_status_error[_ngcontent-%COMP%]{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-error, #F95C5D)}.row_status_warning[_ngcontent-%COMP%]{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-warning, #EE9946)}.row_status_critical[_ngcontent-%COMP%]{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-critical, #F95C5D)}.row_status_falsevalue[_ngcontent-%COMP%]{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-falsevalue, #85B3CB)}.row_status_disabled[_ngcontent-%COMP%]{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-disabled)}.row_status_none[_ngcontent-%COMP%]{padding-left:9px!important;border-left:4px solid transparent}.row_status_pending[_ngcontent-%COMP%]{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-pending, #1f85ff)}.button-reset[_ngcontent-%COMP%]{display:flex;align-items:center;position:absolute;right:6px;top:5px;padding:6px;font-size:15px;border:none;outline:0;cursor:pointer;color:var(--colorTextMuted);background-color:transparent}.button-reset[_ngcontent-%COMP%]:hover{color:var(--ids-theme-btn-default-color, #FFFFFF)}.input-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;align-items:baseline}.c-input[_ngcontent-%COMP%]:not(:valid) ~ .button-reset[_ngcontent-%COMP%]{display:none}.in-table-checkbox[_ngcontent-%COMP%]{appearance:none;-webkit-appearance:none;width:var(--p-checkbox-width, 20px);height:var(--p-checkbox-height, 20px);border:1px solid var(--p-checkbox-border-color, #B3B3B3);border-radius:var(--p-checkbox-border-radius, 2px);background:var(--p-checkbox-background, transparent);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;flex-shrink:0;transition:border-color var(--p-checkbox-transition-duration, .15s),background var(--p-checkbox-transition-duration, .15s)}.in-table-checkbox[_ngcontent-%COMP%]:checked{background:var(--p-checkbox-checked-background, #387382);border-color:var(--p-checkbox-checked-border-color, #387382)}.in-table-checkbox[_ngcontent-%COMP%]:checked:after{content:\"\";display:block;width:var(--p-checkbox-icon-size, 14px);height:var(--p-checkbox-icon-size, 14px);background-color:var(--p-checkbox-icon-checked-color, #ffffff);mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='currentColor' d='M5.25 10.15l-2.8-2.8-.7.7 3.5 3.5 7.5-7.5-.7-.7z'/%3E%3C/svg%3E\");-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='currentColor' d='M5.25 10.15l-2.8-2.8-.7.7 3.5 3.5 7.5-7.5-.7-.7z'/%3E%3C/svg%3E\");mask-size:contain;-webkit-mask-size:contain;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center}.in-table-checkbox[_ngcontent-%COMP%]:hover:not(:checked){border-color:var(--p-checkbox-hover-border-color, #999999)}"] }); }
|
|
1586
1624
|
}
|
|
1587
1625
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TableComponent, [{
|
|
1588
1626
|
type: Component,
|
|
1589
|
-
args: [{ standalone: false, selector: 'in-table', providers: [TableService], template: "<span *ngIf=\"label\" class=\"c-label\">\r\n {{label}}\r\n <span *ngIf=\"required\" class=\"c-label__req\">*</span>\r\n <span *ngIf=\"error\" class=\"c-label__sub_is-error\">{{error}}</span>\r\n</span>\r\n<p-table #dt\r\n (onFilter) = onFilter($event)\r\n (onSort)=\"onSort()\"\r\n (onStateRestore)=\"restoreSearchText()\"\r\n (onStateSave)=\"stateSave($event)\"\r\n (sortFunction)=\"sortFunction? sortFunction.emit($event): null\"\r\n [(selection)]=\"selectionValue\"\r\n [class]=\"class\"\r\n [columns]=\"filteredColumns\"\r\n [customSort]=\"customSort\"\r\n [dataKey]=\"dataKey || 'id'\"\r\n [globalFilterFields]=\"globalFilteredColumns\"\r\n [resizableColumns]=\"resizableColumns\"\r\n [scrollHeight]=\"scrollHeight\"\r\n [scrollable]=\"scrollable\"\r\n [selectionMode]=\"selectionMode\"\r\n [sortField]=\"sortField || 'id'\"\r\n [sortOrder]=\"isAscending ? 1 : -1\"\r\n [stateKey]=\"stateKey\"\r\n [stateStorage]=\"'local'\"\r\n [style]=\"style\"\r\n [value]=\"values\"\r\n [columnResizeMode]=\"columnResizeMode\"\r\n>\r\n <ng-template *ngIf=\"colGroupTemplate\" let-columns pTemplate=\"colgroup\">\r\n <ng-container\r\n *ngTemplateOutlet=\"colGroupTemplate; context: {$implicit: { columns: columns}}\"></ng-container>\r\n </ng-template>\r\n\r\n <ng-template *ngIf=\"!colGroupTemplate\" let-columns pTemplate=\"colgroup\">\r\n <colgroup *ngIf=\"!isMobileView\">\r\n <col *ngIf=\"checkboxSelection\" style=\"width: 44px;\">\r\n <col *ngFor=\"let col of filteredColumns; let idx = index\">\r\n </colgroup>\r\n </ng-template>\r\n\r\n <ng-template let-columns pTemplate=\"header\">\r\n <ng-container *ngIf=\"showHeader\">\r\n <tr>\r\n <th *ngIf=\"checkboxSelection\" class=\"u-position-relative u-text_center\" pResizableColumn style=\"width: 44px;\">\r\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\r\n </th>\r\n <th *ngFor=\"let col of filteredColumns\" [pSortableColumn]=\"col.field\" class=\"u-position-relative\"\r\n pResizableColumn>\r\n <div class=\"p-table-thead-title\"\r\n title=\"{{col.label | translate}}\">\r\n {{col.label | translate}}\r\n </div>\r\n <p-sortIcon *ngIf=\"isSortIcon\" [field]=\"col.field\"\r\n class=\"u-position-absolute u-position-absolute-right c-sorticon\"\r\n style=\"display: flex; width: 18px; top: 0; height: 100%;\"></p-sortIcon>\r\n </th>\r\n </tr>\r\n <tr *ngIf=\"toolbar && toolbar.filter && toolbar.filter.active\">\r\n <th *ngIf=\"checkboxSelection\" class=\"u-position-relative u-text_center\" pResizableColumn\r\n style=\"width: 44px;\"></th>\r\n <th *ngFor=\"let col of columns\" [ngSwitch]=\"col.field\">\r\n <input\r\n (input)=\"dt.filter($any($event.target).value, col.field, 'contains')\"\r\n *ngSwitchCase=\"colFilter(col.field)?.type === 'text' ? col.field : ''\"\r\n autofocus=\"\"\r\n class=\"c-input c-input_small ng-pristine ng-valid ng-scope ng-empty ng-touched\"\r\n pInputText\r\n type=\"text\">\r\n\r\n <p-dropdown (onChange)=\"dt.filter($event.value, col.field, 'equals')\"\r\n *ngSwitchCase=\"colFilter(col.field)?.type === 'dropdown' ? col.field : ''\"\r\n [options]=\"colFilter(col.field)?.options\"\r\n [style]=\"{ width: '100%', overflow: 'visible' }\"\r\n appendTo=\"body\"></p-dropdown>\r\n\r\n <p-multiSelect (onChange)=\"dt.filter($event.value, col.field, 'in')\"\r\n *ngSwitchCase=\"colFilter(col.field)?.type === 'multiselect' ? col.field : ''\"\r\n [options]=\"colFilter(col.field)?.options\"\r\n [style]=\"{ width: '100%', overflow: 'visible' }\" appendTo=\"body\"\r\n defaultLabel=\"{{'All' | translate}}\"></p-multiSelect>\r\n <input\r\n (input)=\"dt.filter($any($event.target).value, col.field + '2filter', 'contains')\"\r\n *ngSwitchCase=\"colFilter(col.field)?.type === 'datetext' ? col.field : ''\"\r\n autofocus=\"\"\r\n class=\"c-input c-input_small ng-pristine ng-valid ng-scope ng-empty ng-touched\"\r\n pInputText\r\n type=\"text\">\r\n </th>\r\n </tr>\r\n </ng-container>\r\n </ng-template>\r\n\r\n <ng-template *ngIf=\"bodyTemplate\" let-columns=\"columns\" let-rowData let-rowIndex=\"rowIndex\" pTemplate=\"body\">\r\n <ng-container\r\n *ngTemplateOutlet=\"bodyTemplate; context: {$implicit: { rowIndex: rowIndex, rowData: rowData, columns: columns}}\"></ng-container>\r\n </ng-template>\r\n\r\n <ng-template *ngIf=\"!bodyTemplate\" let-columns=\"columns\" let-index=\"rowIndex\" let-rowData pTemplate=\"body\">\r\n <tr\r\n (click)=\"toggleGroup(index, rowData.groupKey[groupMode])\"\r\n *ngIf=\"isGrouped && isShowGroup(rowData.groupKey[groupMode], index)\"\r\n class=\"row_hover_highlight\">\r\n <td [colSpan]=\"countVisibleColumns() + 1\">\r\n <span>\r\n <i\r\n [ngClass]=\"groupInfo[rowData.groupKey[groupMode]].isExpanded ? 'in fa-fw in-chevron-down' : 'in fa-fw in-chevron-right'\"></i>\r\n <span>{{rowData.groupKey[groupMode] | translate }} ({{countGroup(rowData.groupKey[groupMode], groupMode)}}\r\n )</span>\r\n </span>\r\n </td>\r\n </tr>\r\n <tr *ngIf=\"!isGrouped || groupInfo[(rowData.groupKey[groupMode])].isExpanded\"\r\n [ngClass]=\"{row_active: isRowActive(rowData)}\"\r\n [pSelectableRow]=\"rowData\"\r\n class=\"row\">\r\n <td *ngIf=\"checkboxSelection\" [ngClass]=\"{\r\n 'row_status_success': rowData.sdirparamstatecolor === 'success',\r\n 'row_status_error': rowData.sdirparamstatecolor === 'error',\r\n 'row_status_warning': rowData.sdirparamstatecolor === 'warning',\r\n 'row_status_critical': rowData.sdirparamstatecolor === 'critical',\r\n 'row_status_falsevalue': rowData.sdirparamstatecolor === 'falsevalue',\r\n 'row_status_pending': rowData.sdirparamstatecolor === 'pending'\r\n }\" class=\"u-text_center\"\r\n style=\"width: 44px\"\r\n >\r\n <p-tableCheckbox [value]=\"rowData\"\r\n [ngStyle]=\"{ 'pointer-events': selectionMode === 'single' || selectionMode === 'multiple' && checkboxSelection ? 'none' : 'auto'}\"\r\n ></p-tableCheckbox>\r\n </td>\r\n <td (click)=\"activeChange.emit(rowData)\"\r\n *ngFor=\"let col of filteredColumns\"\r\n class=\"u-overflow-visible\">\r\n <div (mouseover)=\"showTooltip($event)\" *ngIf=\"!valueTemplate\" class=\"p-table-tbody-content\" title>\r\n {{col.translatable ? (rowData | propertyValue: col.field | translate) : (rowData | propertyValue: col.field)}}\r\n </div>\r\n <ng-container\r\n *ngTemplateOutlet=\"valueTemplate; context: {$implicit: { data: rowData, col: col}}\"></ng-container>\r\n </td>\r\n </tr>\r\n </ng-template>\r\n\r\n <ng-template *ngIf=\"toolbar\" pTemplate=\"caption\">\r\n\r\n <div class=\"o-grid o-grid_no-gutter\">\r\n <div class=\"c-tree-table__toolbar-content u-display-inline-flex\">\r\n <div *ngIf=\"isTextSearch\" class=\"c-form c-form_inline u-display-inline-block\">\r\n <form class=\"c-label\">\r\n <div class=\"input-wrapper u-margin-right-tiny\">\r\n <input #searchTextInput\r\n (input)=\"localSearch(dt, searchText)\"\r\n [(ngModel)]=\"searchText\"\r\n [ngModelOptions]=\"{standalone: true}\"\r\n autofocus=\"\"\r\n class=\"search-box c-input c-input_small ng-pristine ng-valid ng-scope ng-empty ng-touched\"\r\n pInputText\r\n placeholder=\"{{('SHARED.SEARCH' | translate) + ':'}}\"\r\n required\r\n style=\"padding-right: 28px\"\r\n tabindex=\"1\"\r\n type=\"search\"\r\n >\r\n <button (click)=\"clear()\" class=\"button-reset\" type=\"reset\"\r\n [attr.title]=\"'Reset' | translate\">\r\n <i class=\"in in-close\"></i>\r\n </button>\r\n </div>\r\n </form>\r\n </div>\r\n <div class=\"c-btn c-btn_border-free c-btn_small\">\r\n <in-table-columns-multiselect (columnsChange)=\"columnsChange($event)\"\r\n [columns]=\"primaryColumns\"\r\n [disableActiveCheckboxes]=\"countVisibleColumns() === 1\"></in-table-columns-multiselect>\r\n </div>\r\n\r\n <button (click)=\"onFilterToolbar($event)\" *ngIf=\"toolbar.filter\"\r\n class=\"c-btn c-btn_border-free c-btn_small\"\r\n >\r\n <i class=\"in in-filter\" title=\"{{'Service filter' | translate}}\"></i>\r\n </button>\r\n\r\n <button (click)=\"treeAction.emit($event)\" *ngIf=\"toolbar.tree\" [disabled]=\"toolbar.tree.disabled\"\r\n class=\"c-btn c-btn_border-free c-btn_small\"\r\n >\r\n <i class=\"in in-list\" title=\"{{'Filter by rubric' | translate}}\"></i>\r\n </button>\r\n\r\n <button (click)=\"addAction.emit($event)\" *ngIf=\"toolbar.add\" [disabled]=\"toolbar.add.disabled\"\r\n class=\"c-btn c-btn_border-free c-btn_small\"\r\n >\r\n <i class=\"in in-plus\" title=\"{{'Add' | translate}}\"></i>\r\n </button>\r\n\r\n <button (click)=\"linkAction.emit($event)\" *ngIf=\"toolbar.link\" [disabled]=\"toolbar.link.disabled\"\r\n class=\"c-btn c-btn_border-free c-btn_small\"\r\n >\r\n <i class=\"in in-link\" title=\"{{'Link' | translate}}\"></i>\r\n </button>\r\n <button (click)=\"csvAction.emit($event)\" *ngIf=\"toolbar.csv\" [disabled]=\"toolbar.csv.disabled\"\r\n class=\"c-btn c-btn_border-free c-btn_small\"\r\n >\r\n <!--Todo: \u0437\u0430\u043C\u0435\u043D\u0438\u0442\u044C \u043D\u0430 in-file-csv-->\r\n <i class=\"in in-file-excel-outline\" title=\"{{'LOGS.SAVE_TO_CSV' | translate}}\"></i>\r\n </button>\r\n <button (click)=\"saveAction.emit($event)\" *ngIf=\"toolbar.save\"\r\n [disabled]=\"toolbar.save.disabled\"\r\n class=\"c-btn c-btn_primary c-btn_small\"\r\n title=\"{{'Save' | translate}}\"\r\n >\r\n {{'Save' | translate}}\r\n </button>\r\n <button (click)=\"groupEditAction.emit($event)\" *ngIf=\"toolbar.groupEdit && toolbar.groupEdit.active\"\r\n [disabled]=\"toolbar.groupEdit.disabled\"\r\n class=\"c-btn c-btn_border-free c-btn_small\">\r\n <i class=\"in in-pencil\" title=\"{{'groupEdit' | translate}}\"></i>\r\n </button>\r\n <ng-content select=\"[buttons]\"></ng-content>\r\n <button (click)=\"paramsEditAction.emit($event)\" *ngIf=\"toolbar.paramsEdit && toolbar.paramsEdit.active\"\r\n [disabled]=\"toolbar.paramsEdit.disabled\"\r\n class=\"c-btn c-btn_border-free c-btn_small\">\r\n <i class=\"in in-pencil\" title=\"{{'paramsEdit' | translate}}\"></i>\r\n </button>\r\n\r\n\r\n <button (click)=\"removeAction.emit($event)\" *ngIf=\"toolbar.remove && toolbar.remove.active\"\r\n [disabled]=\"toolbar.remove.disabled\"\r\n class=\"c-btn c-btn_border-free c-btn_small\">\r\n <i class=\"in in-trash\" title=\"{{'Delete' | translate}}\"></i>\r\n </button>\r\n <button (click)=\"unlinkAction.emit($event)\" *ngIf=\"toolbar.unlink\" [disabled]=\"toolbar.unlink.disabled\"\r\n class=\"c-btn c-btn_border-free c-btn_small\">\r\n <i class=\"in in-link-off\" title=\"{{'Detach tag from selected items' | translate}}\"></i>\r\n </button>\r\n <button (click)=\"toggleNodes(true)\"\r\n *ngIf=\"toolbar.expandAll\"\r\n class=\"c-btn c-btn_small c-btn_svg-24 c-icon c-icon_svg c-icon_svg-24 c-btn_border-free\"\r\n title=\"{{'Expand all' | translate}}\">\r\n <svg fill=\"currentColor\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M20 2H4v2h16V2zM4 20v2h16v-2H4zM12 5l5 6H7l5-6zM17 13l-5 6-5-6h10z\"/>\r\n </svg>\r\n </button>\r\n <button (click)=\"toggleNodes(false)\"\r\n *ngIf=\"toolbar.expandAll\"\r\n class=\"c-btn c-btn_small c-btn_svg-24 c-icon c-icon_svg c-icon_svg-24 c-btn_border-free\"\r\n title=\"{{'Collapse all' | translate}}\">\r\n <svg fill=\"currentColor\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path clip-rule=\"evenodd\" d=\"M17 3l-5 6-5-6h10zM4 13v-2h16v2H4zm8 2l5 6H7l5-6z\" fill-rule=\"evenodd\"/>\r\n </svg>\r\n </button>\r\n\r\n <div *ngIf=\"toolbar.groupSort\"\r\n class=\"c-btn-group\"\r\n container=\"body\"\r\n ngbDropdown>\r\n\r\n <button class=\"c-btn c-btn_border-free c-btn_small\"\r\n id=\"dropdownGroupType\"\r\n ngbDropdownToggle\r\n title=\"{{'Change the way parameters are grouped' | translate}}\">\r\n <i aria-hidden=\"true\" class=\"in in-object-group\"></i>\r\n <i aria-hidden=\"true\" class=\"c-caret\"></i>\r\n </button>\r\n\r\n <ul aria-labelledby=\"dropdownGroupType\"\r\n class=\"c-dropdown-menu c-dropdown-menu_right ng-star-inserted\"\r\n ngbDropdownMenu\r\n role=\"menu\">\r\n <li *ngFor=\"let item of toolbar.groupSort.label\"\r\n [ngClass]=\"{'is-dropdown-menu__listitem_active': item.value === groupMode}\"\r\n class=\"c-dropdown-menu__listitem is-dropdown-menu__listitem_active\"\r\n ngbDropdownItem\r\n role=\"menuitem\">\r\n <a (click)=\"toggleMode(item.value)\" class=\"c-dropdown-menu__content\">\r\n {{item.label}}\r\n </a>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n</p-table>\r\n", styles: ["@charset \"UTF-8\";.u-overflow-visible{overflow:visible!important}.row_status_success{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-success, #31AC51)}.row_status_error{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-error, #F95C5D)}.row_status_warning{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-warning, #EE9946)}.row_status_critical{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-critical, #F95C5D)}.row_status_falsevalue{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-falsevalue, #85B3CB)}.row_status_disabled{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-disabled)}.row_status_none{padding-left:9px!important;border-left:4px solid transparent}.row_status_pending{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-pending, #1f85ff)}.button-reset{display:flex;align-items:center;position:absolute;right:6px;top:5px;padding:6px;font-size:15px;border:none;outline:0;cursor:pointer;color:var(--colorTextMuted);background-color:transparent}.button-reset:hover{color:var(--ids-theme-btn-default-color, #FFFFFF)}.input-wrapper{position:relative;display:flex;align-items:baseline}.c-input:not(:valid)~.button-reset{display:none}\n"] }]
|
|
1627
|
+
args: [{ standalone: false, selector: 'in-table', providers: [TableService], template: "<span *ngIf=\"label\" class=\"c-label\">\r\n {{label}}\r\n <span *ngIf=\"required\" class=\"c-label__req\">*</span>\r\n <span *ngIf=\"error\" class=\"c-label__sub_is-error\">{{error}}</span>\r\n</span>\r\n<p-table #dt\r\n (onFilter) = onFilter($event)\r\n (onSort)=\"onSort()\"\r\n (onStateRestore)=\"restoreSearchText()\"\r\n (onStateSave)=\"stateSave($event)\"\r\n (sortFunction)=\"sortFunction? sortFunction.emit($event): null\"\r\n [(selection)]=\"selectionValue\"\r\n [class]=\"class\"\r\n [columns]=\"filteredColumns\"\r\n [customSort]=\"customSort\"\r\n [dataKey]=\"dataKey || 'id'\"\r\n [globalFilterFields]=\"globalFilteredColumns\"\r\n [resizableColumns]=\"resizableColumns\"\r\n [scrollHeight]=\"scrollHeight\"\r\n [scrollable]=\"scrollable\"\r\n [selectionMode]=\"selectionMode\"\r\n [sortField]=\"sortField || 'id'\"\r\n [sortOrder]=\"isAscending ? 1 : -1\"\r\n [stateKey]=\"stateKey\"\r\n [stateStorage]=\"'local'\"\r\n [style]=\"style\"\r\n [value]=\"values\"\r\n [columnResizeMode]=\"columnResizeMode\"\r\n>\r\n <ng-template *ngIf=\"colGroupTemplate\" let-columns pTemplate=\"colgroup\">\r\n <ng-container\r\n *ngTemplateOutlet=\"colGroupTemplate; context: {$implicit: { columns: columns}}\"></ng-container>\r\n </ng-template>\r\n\r\n <ng-template *ngIf=\"!colGroupTemplate\" let-columns pTemplate=\"colgroup\">\r\n <colgroup *ngIf=\"!isMobileView\">\r\n <col *ngIf=\"checkboxSelection\" style=\"width: 44px;\">\r\n <col *ngFor=\"let col of filteredColumns; let idx = index\">\r\n </colgroup>\r\n </ng-template>\r\n\r\n <ng-template let-columns pTemplate=\"header\">\r\n <ng-container *ngIf=\"showHeader\">\r\n <tr>\r\n <th *ngIf=\"checkboxSelection\" class=\"u-position-relative u-text_center\" pResizableColumn style=\"width: 44px;\">\r\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\r\n </th>\r\n <th *ngFor=\"let col of filteredColumns\" [pSortableColumn]=\"col.field\" class=\"u-position-relative\"\r\n pResizableColumn>\r\n <div class=\"p-table-thead-title\"\r\n title=\"{{col.label | translate}}\">\r\n {{col.label | translate}}\r\n </div>\r\n <p-sortIcon *ngIf=\"isSortIcon\" [field]=\"col.field\"\r\n class=\"u-position-absolute u-position-absolute-right c-sorticon\"\r\n style=\"display: flex; width: 18px; top: 0; height: 100%;\"></p-sortIcon>\r\n </th>\r\n </tr>\r\n <tr *ngIf=\"toolbar && toolbar.filter && toolbar.filter.active\">\r\n <th *ngIf=\"checkboxSelection\" class=\"u-position-relative u-text_center\" pResizableColumn\r\n style=\"width: 44px;\"></th>\r\n <th *ngFor=\"let col of columns\" [ngSwitch]=\"col.field\">\r\n <input\r\n (input)=\"dt.filter($any($event.target).value, col.field, 'contains')\"\r\n *ngSwitchCase=\"colFilter(col.field)?.type === 'text' ? col.field : ''\"\r\n autofocus=\"\"\r\n class=\"c-input c-input_small ng-pristine ng-valid ng-scope ng-empty ng-touched\"\r\n pInputText\r\n type=\"text\">\r\n\r\n <p-dropdown (onChange)=\"dt.filter($event.value, col.field, 'equals')\"\r\n *ngSwitchCase=\"colFilter(col.field)?.type === 'dropdown' ? col.field : ''\"\r\n [options]=\"colFilter(col.field)?.options\"\r\n [style]=\"{ width: '100%', overflow: 'visible' }\"\r\n appendTo=\"body\"></p-dropdown>\r\n\r\n <p-multiSelect (onChange)=\"dt.filter($event.value, col.field, 'in')\"\r\n *ngSwitchCase=\"colFilter(col.field)?.type === 'multiselect' ? col.field : ''\"\r\n [options]=\"colFilter(col.field)?.options\"\r\n [style]=\"{ width: '100%', overflow: 'visible' }\" appendTo=\"body\"\r\n defaultLabel=\"{{'All' | translate}}\"></p-multiSelect>\r\n <input\r\n (input)=\"dt.filter($any($event.target).value, col.field + '2filter', 'contains')\"\r\n *ngSwitchCase=\"colFilter(col.field)?.type === 'datetext' ? col.field : ''\"\r\n autofocus=\"\"\r\n class=\"c-input c-input_small ng-pristine ng-valid ng-scope ng-empty ng-touched\"\r\n pInputText\r\n type=\"text\">\r\n </th>\r\n </tr>\r\n </ng-container>\r\n </ng-template>\r\n\r\n <ng-template *ngIf=\"bodyTemplate\" let-columns=\"columns\" let-rowData let-rowIndex=\"rowIndex\" pTemplate=\"body\">\r\n <ng-container\r\n *ngTemplateOutlet=\"bodyTemplate; context: {$implicit: { rowIndex: rowIndex, rowData: rowData, columns: columns}}\"></ng-container>\r\n </ng-template>\r\n\r\n <ng-template *ngIf=\"!bodyTemplate\" let-columns=\"columns\" let-index=\"rowIndex\" let-rowData pTemplate=\"body\">\r\n <tr\r\n (click)=\"toggleGroup(index, rowData.groupKey[groupMode])\"\r\n *ngIf=\"isGrouped && isShowGroup(rowData.groupKey[groupMode], index)\"\r\n class=\"row_hover_highlight\">\r\n <td [colSpan]=\"countVisibleColumns() + 1\">\r\n <span>\r\n <i\r\n [ngClass]=\"groupInfo[rowData.groupKey[groupMode]].isExpanded ? 'in fa-fw in-chevron-down' : 'in fa-fw in-chevron-right'\"></i>\r\n <span>{{rowData.groupKey[groupMode] | translate }} ({{countGroup(rowData.groupKey[groupMode], groupMode)}}\r\n )</span>\r\n </span>\r\n </td>\r\n </tr>\r\n <tr *ngIf=\"!isGrouped || groupInfo[(rowData.groupKey[groupMode])].isExpanded\"\r\n [ngClass]=\"{row_active: isRowActive(rowData)}\"\r\n [pSelectableRow]=\"rowData\"\r\n class=\"row\">\r\n <td *ngIf=\"checkboxSelection\" [ngClass]=\"{\r\n 'row_status_success': rowData.sdirparamstatecolor === 'success',\r\n 'row_status_error': rowData.sdirparamstatecolor === 'error',\r\n 'row_status_warning': rowData.sdirparamstatecolor === 'warning',\r\n 'row_status_critical': rowData.sdirparamstatecolor === 'critical',\r\n 'row_status_falsevalue': rowData.sdirparamstatecolor === 'falsevalue',\r\n 'row_status_pending': rowData.sdirparamstatecolor === 'pending'\r\n }\" class=\"u-text_center\"\r\n style=\"width: 44px\"\r\n >\r\n <!-- Native checkbox \u2014 no Angular component overhead (no NgModel/CVA/signals).\r\n Uses Set for O(1) state lookup instead of p-tableCheckbox's O(M) isSelected(). -->\r\n <input type=\"checkbox\"\r\n class=\"in-table-checkbox\"\r\n [checked]=\"_isRowSelected(rowData)\"\r\n [style.pointer-events]=\"(selectionMode === 'single' || (selectionMode === 'multiple' && checkboxSelection)) ? 'none' : 'auto'\"\r\n (change)=\"_onCheckboxChange($event, rowData)\"\r\n (click)=\"$event.stopPropagation()\"\r\n >\r\n </td>\r\n <td (click)=\"activeChange.emit(rowData)\"\r\n *ngFor=\"let col of filteredColumns\"\r\n class=\"u-overflow-visible\">\r\n <div (mouseover)=\"showTooltip($event)\" *ngIf=\"!valueTemplate\" class=\"p-table-tbody-content\" title>\r\n {{col.translatable ? (rowData | propertyValue: col.field | translate) : (rowData | propertyValue: col.field)}}\r\n </div>\r\n <ng-container\r\n *ngTemplateOutlet=\"valueTemplate; context: {$implicit: { data: rowData, col: col}}\"></ng-container>\r\n </td>\r\n </tr>\r\n </ng-template>\r\n\r\n <ng-template *ngIf=\"toolbar\" pTemplate=\"caption\">\r\n\r\n <div class=\"o-grid o-grid_no-gutter\">\r\n <div class=\"c-tree-table__toolbar-content u-display-inline-flex\">\r\n <div *ngIf=\"isTextSearch\" class=\"c-form c-form_inline u-display-inline-block\">\r\n <form class=\"c-label\">\r\n <div class=\"input-wrapper u-margin-right-tiny\">\r\n <input #searchTextInput\r\n (input)=\"localSearch(dt, searchText)\"\r\n [(ngModel)]=\"searchText\"\r\n [ngModelOptions]=\"{standalone: true}\"\r\n autofocus=\"\"\r\n class=\"search-box c-input c-input_small ng-pristine ng-valid ng-scope ng-empty ng-touched\"\r\n pInputText\r\n placeholder=\"{{('SHARED.SEARCH' | translate) + ':'}}\"\r\n required\r\n style=\"padding-right: 28px\"\r\n tabindex=\"1\"\r\n type=\"search\"\r\n >\r\n <button (click)=\"clear()\" class=\"button-reset\" type=\"reset\"\r\n [attr.title]=\"'Reset' | translate\">\r\n <i class=\"in in-close\"></i>\r\n </button>\r\n </div>\r\n </form>\r\n </div>\r\n <div class=\"c-btn c-btn_border-free c-btn_small\">\r\n <in-table-columns-multiselect (columnsChange)=\"columnsChange($event)\"\r\n [columns]=\"primaryColumns\"\r\n [disableActiveCheckboxes]=\"countVisibleColumns() === 1\"></in-table-columns-multiselect>\r\n </div>\r\n\r\n <button (click)=\"onFilterToolbar($event)\" *ngIf=\"toolbar.filter\"\r\n class=\"c-btn c-btn_border-free c-btn_small\"\r\n >\r\n <i class=\"in in-filter\" title=\"{{'Service filter' | translate}}\"></i>\r\n </button>\r\n\r\n <button (click)=\"treeAction.emit($event)\" *ngIf=\"toolbar.tree\" [disabled]=\"toolbar.tree.disabled\"\r\n class=\"c-btn c-btn_border-free c-btn_small\"\r\n >\r\n <i class=\"in in-list\" title=\"{{'Filter by rubric' | translate}}\"></i>\r\n </button>\r\n\r\n <button (click)=\"addAction.emit($event)\" *ngIf=\"toolbar.add\" [disabled]=\"toolbar.add.disabled\"\r\n class=\"c-btn c-btn_border-free c-btn_small\"\r\n >\r\n <i class=\"in in-plus\" title=\"{{'Add' | translate}}\"></i>\r\n </button>\r\n\r\n <button (click)=\"linkAction.emit($event)\" *ngIf=\"toolbar.link\" [disabled]=\"toolbar.link.disabled\"\r\n class=\"c-btn c-btn_border-free c-btn_small\"\r\n >\r\n <i class=\"in in-link\" title=\"{{'Link' | translate}}\"></i>\r\n </button>\r\n <button (click)=\"csvAction.emit($event)\" *ngIf=\"toolbar.csv\" [disabled]=\"toolbar.csv.disabled\"\r\n class=\"c-btn c-btn_border-free c-btn_small\"\r\n >\r\n <!--Todo: \u0437\u0430\u043C\u0435\u043D\u0438\u0442\u044C \u043D\u0430 in-file-csv-->\r\n <i class=\"in in-file-excel-outline\" title=\"{{'LOGS.SAVE_TO_CSV' | translate}}\"></i>\r\n </button>\r\n <button (click)=\"saveAction.emit($event)\" *ngIf=\"toolbar.save\"\r\n [disabled]=\"toolbar.save.disabled\"\r\n class=\"c-btn c-btn_primary c-btn_small\"\r\n title=\"{{'Save' | translate}}\"\r\n >\r\n {{'Save' | translate}}\r\n </button>\r\n <button (click)=\"groupEditAction.emit($event)\" *ngIf=\"toolbar.groupEdit && toolbar.groupEdit.active\"\r\n [disabled]=\"toolbar.groupEdit.disabled\"\r\n class=\"c-btn c-btn_border-free c-btn_small\">\r\n <i class=\"in in-pencil\" title=\"{{'groupEdit' | translate}}\"></i>\r\n </button>\r\n <ng-content select=\"[buttons]\"></ng-content>\r\n <button (click)=\"paramsEditAction.emit($event)\" *ngIf=\"toolbar.paramsEdit && toolbar.paramsEdit.active\"\r\n [disabled]=\"toolbar.paramsEdit.disabled\"\r\n class=\"c-btn c-btn_border-free c-btn_small\">\r\n <i class=\"in in-pencil\" title=\"{{'paramsEdit' | translate}}\"></i>\r\n </button>\r\n\r\n\r\n <button (click)=\"removeAction.emit($event)\" *ngIf=\"toolbar.remove && toolbar.remove.active\"\r\n [disabled]=\"toolbar.remove.disabled\"\r\n class=\"c-btn c-btn_border-free c-btn_small\">\r\n <i class=\"in in-trash\" title=\"{{'Delete' | translate}}\"></i>\r\n </button>\r\n <button (click)=\"unlinkAction.emit($event)\" *ngIf=\"toolbar.unlink\" [disabled]=\"toolbar.unlink.disabled\"\r\n class=\"c-btn c-btn_border-free c-btn_small\">\r\n <i class=\"in in-link-off\" title=\"{{'Detach tag from selected items' | translate}}\"></i>\r\n </button>\r\n <button (click)=\"toggleNodes(true)\"\r\n *ngIf=\"toolbar.expandAll\"\r\n class=\"c-btn c-btn_small c-btn_svg-24 c-icon c-icon_svg c-icon_svg-24 c-btn_border-free\"\r\n title=\"{{'Expand all' | translate}}\">\r\n <svg fill=\"currentColor\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M20 2H4v2h16V2zM4 20v2h16v-2H4zM12 5l5 6H7l5-6zM17 13l-5 6-5-6h10z\"/>\r\n </svg>\r\n </button>\r\n <button (click)=\"toggleNodes(false)\"\r\n *ngIf=\"toolbar.expandAll\"\r\n class=\"c-btn c-btn_small c-btn_svg-24 c-icon c-icon_svg c-icon_svg-24 c-btn_border-free\"\r\n title=\"{{'Collapse all' | translate}}\">\r\n <svg fill=\"currentColor\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path clip-rule=\"evenodd\" d=\"M17 3l-5 6-5-6h10zM4 13v-2h16v2H4zm8 2l5 6H7l5-6z\" fill-rule=\"evenodd\"/>\r\n </svg>\r\n </button>\r\n\r\n <div *ngIf=\"toolbar.groupSort\"\r\n class=\"c-btn-group\"\r\n container=\"body\"\r\n ngbDropdown>\r\n\r\n <button class=\"c-btn c-btn_border-free c-btn_small\"\r\n id=\"dropdownGroupType\"\r\n ngbDropdownToggle\r\n title=\"{{'Change the way parameters are grouped' | translate}}\">\r\n <i aria-hidden=\"true\" class=\"in in-object-group\"></i>\r\n <i aria-hidden=\"true\" class=\"c-caret\"></i>\r\n </button>\r\n\r\n <ul aria-labelledby=\"dropdownGroupType\"\r\n class=\"c-dropdown-menu c-dropdown-menu_right ng-star-inserted\"\r\n ngbDropdownMenu\r\n role=\"menu\">\r\n <li *ngFor=\"let item of toolbar.groupSort.label\"\r\n [ngClass]=\"{'is-dropdown-menu__listitem_active': item.value === groupMode}\"\r\n class=\"c-dropdown-menu__listitem is-dropdown-menu__listitem_active\"\r\n ngbDropdownItem\r\n role=\"menuitem\">\r\n <a (click)=\"toggleMode(item.value)\" class=\"c-dropdown-menu__content\">\r\n {{item.label}}\r\n </a>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n</p-table>\r\n", styles: ["@charset \"UTF-8\";.u-overflow-visible{overflow:visible!important}.row_status_success{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-success, #31AC51)}.row_status_error{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-error, #F95C5D)}.row_status_warning{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-warning, #EE9946)}.row_status_critical{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-critical, #F95C5D)}.row_status_falsevalue{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-falsevalue, #85B3CB)}.row_status_disabled{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-disabled)}.row_status_none{padding-left:9px!important;border-left:4px solid transparent}.row_status_pending{padding-left:9px!important;border-left:4px solid var(--ids-theme-status-pending, #1f85ff)}.button-reset{display:flex;align-items:center;position:absolute;right:6px;top:5px;padding:6px;font-size:15px;border:none;outline:0;cursor:pointer;color:var(--colorTextMuted);background-color:transparent}.button-reset:hover{color:var(--ids-theme-btn-default-color, #FFFFFF)}.input-wrapper{position:relative;display:flex;align-items:baseline}.c-input:not(:valid)~.button-reset{display:none}.in-table-checkbox{appearance:none;-webkit-appearance:none;width:var(--p-checkbox-width, 20px);height:var(--p-checkbox-height, 20px);border:1px solid var(--p-checkbox-border-color, #B3B3B3);border-radius:var(--p-checkbox-border-radius, 2px);background:var(--p-checkbox-background, transparent);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;flex-shrink:0;transition:border-color var(--p-checkbox-transition-duration, .15s),background var(--p-checkbox-transition-duration, .15s)}.in-table-checkbox:checked{background:var(--p-checkbox-checked-background, #387382);border-color:var(--p-checkbox-checked-border-color, #387382)}.in-table-checkbox:checked:after{content:\"\";display:block;width:var(--p-checkbox-icon-size, 14px);height:var(--p-checkbox-icon-size, 14px);background-color:var(--p-checkbox-icon-checked-color, #ffffff);mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='currentColor' d='M5.25 10.15l-2.8-2.8-.7.7 3.5 3.5 7.5-7.5-.7-.7z'/%3E%3C/svg%3E\");-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='currentColor' d='M5.25 10.15l-2.8-2.8-.7.7 3.5 3.5 7.5-7.5-.7-.7z'/%3E%3C/svg%3E\");mask-size:contain;-webkit-mask-size:contain;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center}.in-table-checkbox:hover:not(:checked){border-color:var(--p-checkbox-hover-border-color, #999999)}\n"] }]
|
|
1590
1628
|
}], null, { columns: [{
|
|
1591
1629
|
type: Input
|
|
1592
1630
|
}], values: [{
|
|
@@ -2247,25 +2285,27 @@ function TreeTableComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
2247
2285
|
i0.ɵɵproperty("ngForOf", columns_r5);
|
|
2248
2286
|
} }
|
|
2249
2287
|
function TreeTableComponent_ng_template_4_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
2250
|
-
i0.ɵɵ
|
|
2251
|
-
i0.ɵɵ
|
|
2252
|
-
i0.ɵɵ
|
|
2288
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
2289
|
+
i0.ɵɵelementStart(0, "td")(1, "input", 16);
|
|
2290
|
+
i0.ɵɵlistener("change", function TreeTableComponent_ng_template_4_td_1_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r6); const rowNode_r7 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2._onCheckboxChange($event, rowNode_r7)); })("click", function TreeTableComponent_ng_template_4_td_1_Template_input_click_1_listener($event) { i0.ɵɵrestoreView(_r6); return i0.ɵɵresetView($event.stopPropagation()); });
|
|
2291
|
+
i0.ɵɵelementEnd()();
|
|
2253
2292
|
} if (rf & 2) {
|
|
2254
|
-
const
|
|
2293
|
+
const rowNode_r7 = i0.ɵɵnextContext().$implicit;
|
|
2294
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
2255
2295
|
i0.ɵɵadvance();
|
|
2256
|
-
i0.ɵɵproperty("
|
|
2296
|
+
i0.ɵɵproperty("checked", ctx_r2._isRowSelected(rowNode_r7));
|
|
2257
2297
|
} }
|
|
2258
2298
|
function TreeTableComponent_ng_template_4_td_2_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
2259
2299
|
i0.ɵɵelement(0, "p-treeTableToggler", 22);
|
|
2260
2300
|
} if (rf & 2) {
|
|
2261
|
-
const
|
|
2262
|
-
i0.ɵɵproperty("rowNode",
|
|
2301
|
+
const rowNode_r7 = i0.ɵɵnextContext(2).$implicit;
|
|
2302
|
+
i0.ɵɵproperty("rowNode", rowNode_r7);
|
|
2263
2303
|
} }
|
|
2264
2304
|
function TreeTableComponent_ng_template_4_td_2_ng_container_5_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
2265
2305
|
i0.ɵɵelement(0, "i", 24);
|
|
2266
2306
|
} if (rf & 2) {
|
|
2267
|
-
const
|
|
2268
|
-
i0.ɵɵproperty("ngClass",
|
|
2307
|
+
const rowData_r9 = i0.ɵɵnextContext(3).rowData;
|
|
2308
|
+
i0.ɵɵproperty("ngClass", rowData_r9.icon);
|
|
2269
2309
|
} }
|
|
2270
2310
|
function TreeTableComponent_ng_template_4_td_2_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
2271
2311
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -2274,22 +2314,22 @@ function TreeTableComponent_ng_template_4_td_2_ng_container_5_Template(rf, ctx)
|
|
|
2274
2314
|
i0.ɵɵpipe(3, "propertyValue");
|
|
2275
2315
|
i0.ɵɵelementContainerEnd();
|
|
2276
2316
|
} if (rf & 2) {
|
|
2277
|
-
const
|
|
2278
|
-
const
|
|
2279
|
-
const
|
|
2280
|
-
const
|
|
2317
|
+
const ctx_r9 = i0.ɵɵnextContext();
|
|
2318
|
+
const col_r11 = ctx_r9.$implicit;
|
|
2319
|
+
const i_r12 = ctx_r9.index;
|
|
2320
|
+
const rowData_r9 = i0.ɵɵnextContext().rowData;
|
|
2281
2321
|
i0.ɵɵadvance();
|
|
2282
|
-
i0.ɵɵproperty("ngIf",
|
|
2322
|
+
i0.ɵɵproperty("ngIf", rowData_r9.icon && i_r12 == 0);
|
|
2283
2323
|
i0.ɵɵadvance();
|
|
2284
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(3, 2,
|
|
2324
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(3, 2, rowData_r9, col_r11.field), " ");
|
|
2285
2325
|
} }
|
|
2286
2326
|
function TreeTableComponent_ng_template_4_td_2_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
2287
2327
|
i0.ɵɵelementContainer(0);
|
|
2288
2328
|
} }
|
|
2289
2329
|
function TreeTableComponent_ng_template_4_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
2290
|
-
const
|
|
2330
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
2291
2331
|
i0.ɵɵelementStart(0, "td", 17);
|
|
2292
|
-
i0.ɵɵlistener("click", function TreeTableComponent_ng_template_4_td_2_Template_td_click_0_listener() { i0.ɵɵrestoreView(
|
|
2332
|
+
i0.ɵɵlistener("click", function TreeTableComponent_ng_template_4_td_2_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r8); const rowData_r9 = i0.ɵɵnextContext().rowData; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.activeChange.emit(rowData_r9)); });
|
|
2293
2333
|
i0.ɵɵelementStart(1, "div", 18);
|
|
2294
2334
|
i0.ɵɵtemplate(2, TreeTableComponent_ng_template_4_td_2_ng_template_2_Template, 1, 1, "ng-template", 19);
|
|
2295
2335
|
i0.ɵɵelementStart(3, "div", 20);
|
|
@@ -2297,39 +2337,39 @@ function TreeTableComponent_ng_template_4_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
2297
2337
|
i0.ɵɵtemplate(5, TreeTableComponent_ng_template_4_td_2_ng_container_5_Template, 4, 5, "ng-container", 6)(6, TreeTableComponent_ng_template_4_td_2_ng_container_6_Template, 1, 0, "ng-container", 21);
|
|
2298
2338
|
i0.ɵɵelementEnd()()();
|
|
2299
2339
|
} if (rf & 2) {
|
|
2300
|
-
const
|
|
2301
|
-
const
|
|
2302
|
-
const
|
|
2340
|
+
const col_r11 = ctx.$implicit;
|
|
2341
|
+
const i_r12 = ctx.index;
|
|
2342
|
+
const rowData_r9 = i0.ɵɵnextContext().rowData;
|
|
2303
2343
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
2304
2344
|
i0.ɵɵadvance(2);
|
|
2305
|
-
i0.ɵɵproperty("ngIf",
|
|
2345
|
+
i0.ɵɵproperty("ngIf", i_r12 == 0);
|
|
2306
2346
|
i0.ɵɵadvance();
|
|
2307
|
-
i0.ɵɵpropertyInterpolate("title", i0.ɵɵpipeBind2(4, 6,
|
|
2308
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$7,
|
|
2347
|
+
i0.ɵɵpropertyInterpolate("title", i0.ɵɵpipeBind2(4, 6, rowData_r9, col_r11.field));
|
|
2348
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$7, i_r12 == 0));
|
|
2309
2349
|
i0.ɵɵadvance(2);
|
|
2310
2350
|
i0.ɵɵproperty("ngIf", !ctx_r2.valueTemplate);
|
|
2311
2351
|
i0.ɵɵadvance();
|
|
2312
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.valueTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(14, _c3$5, i0.ɵɵpureFunction2(11, _c2$6,
|
|
2352
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.valueTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(14, _c3$5, i0.ɵɵpureFunction2(11, _c2$6, rowData_r9, col_r11)));
|
|
2313
2353
|
} }
|
|
2314
2354
|
function TreeTableComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
2315
2355
|
i0.ɵɵelementStart(0, "tr", 14);
|
|
2316
2356
|
i0.ɵɵtemplate(1, TreeTableComponent_ng_template_4_td_1_Template, 2, 1, "td", 6)(2, TreeTableComponent_ng_template_4_td_2_Template, 7, 16, "td", 15);
|
|
2317
2357
|
i0.ɵɵelementEnd();
|
|
2318
2358
|
} if (rf & 2) {
|
|
2319
|
-
const
|
|
2320
|
-
const
|
|
2321
|
-
const
|
|
2359
|
+
const columns_r13 = ctx.columns;
|
|
2360
|
+
const rowData_r9 = ctx.rowData;
|
|
2361
|
+
const rowNode_r7 = ctx.$implicit;
|
|
2322
2362
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
2323
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$g, ctx_r2.isRowActive(
|
|
2363
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$g, ctx_r2.isRowActive(rowData_r9)))("ttSelectableRow", rowNode_r7);
|
|
2324
2364
|
i0.ɵɵadvance();
|
|
2325
2365
|
i0.ɵɵproperty("ngIf", ctx_r2.checkboxSelection);
|
|
2326
2366
|
i0.ɵɵadvance();
|
|
2327
|
-
i0.ɵɵproperty("ngForOf",
|
|
2367
|
+
i0.ɵɵproperty("ngForOf", columns_r13);
|
|
2328
2368
|
} }
|
|
2329
2369
|
function TreeTableComponent_5_ng_template_0_button_13_Template(rf, ctx) { if (rf & 1) {
|
|
2330
|
-
const
|
|
2370
|
+
const _r16 = i0.ɵɵgetCurrentView();
|
|
2331
2371
|
i0.ɵɵelementStart(0, "button", 39);
|
|
2332
|
-
i0.ɵɵlistener("click", function TreeTableComponent_5_ng_template_0_button_13_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
2372
|
+
i0.ɵɵlistener("click", function TreeTableComponent_5_ng_template_0_button_13_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r16); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.addAction.emit($event)); });
|
|
2333
2373
|
i0.ɵɵelement(1, "i", 40);
|
|
2334
2374
|
i0.ɵɵelementEnd();
|
|
2335
2375
|
} if (rf & 2) {
|
|
@@ -2339,9 +2379,9 @@ function TreeTableComponent_5_ng_template_0_button_13_Template(rf, ctx) { if (rf
|
|
|
2339
2379
|
i0.ɵɵproperty("title", ctx_r2.toolbar.add.title || "\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C");
|
|
2340
2380
|
} }
|
|
2341
2381
|
function TreeTableComponent_5_ng_template_0_button_14_Template(rf, ctx) { if (rf & 1) {
|
|
2342
|
-
const
|
|
2382
|
+
const _r17 = i0.ɵɵgetCurrentView();
|
|
2343
2383
|
i0.ɵɵelementStart(0, "button", 39);
|
|
2344
|
-
i0.ɵɵlistener("click", function TreeTableComponent_5_ng_template_0_button_14_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
2384
|
+
i0.ɵɵlistener("click", function TreeTableComponent_5_ng_template_0_button_14_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r17); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.groupAddAction.emit($event)); });
|
|
2345
2385
|
i0.ɵɵelement(1, "i", 41);
|
|
2346
2386
|
i0.ɵɵelementEnd();
|
|
2347
2387
|
} if (rf & 2) {
|
|
@@ -2351,10 +2391,10 @@ function TreeTableComponent_5_ng_template_0_button_14_Template(rf, ctx) { if (rf
|
|
|
2351
2391
|
i0.ɵɵproperty("title", ctx_r2.toolbar.groupAdd.title || "\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0433\u0440\u0443\u043F\u043F\u0443");
|
|
2352
2392
|
} }
|
|
2353
2393
|
function TreeTableComponent_5_ng_template_0_button_15_Template(rf, ctx) { if (rf & 1) {
|
|
2354
|
-
const
|
|
2394
|
+
const _r18 = i0.ɵɵgetCurrentView();
|
|
2355
2395
|
i0.ɵɵelementStart(0, "button", 42);
|
|
2356
2396
|
i0.ɵɵpipe(1, "translate");
|
|
2357
|
-
i0.ɵɵlistener("click", function TreeTableComponent_5_ng_template_0_button_15_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
2397
|
+
i0.ɵɵlistener("click", function TreeTableComponent_5_ng_template_0_button_15_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r18); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.saveAction.emit($event)); });
|
|
2358
2398
|
i0.ɵɵtext(2);
|
|
2359
2399
|
i0.ɵɵpipe(3, "translate");
|
|
2360
2400
|
i0.ɵɵelementEnd();
|
|
@@ -2366,9 +2406,9 @@ function TreeTableComponent_5_ng_template_0_button_15_Template(rf, ctx) { if (rf
|
|
|
2366
2406
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 5, "Save"), " ");
|
|
2367
2407
|
} }
|
|
2368
2408
|
function TreeTableComponent_5_ng_template_0_button_16_Template(rf, ctx) { if (rf & 1) {
|
|
2369
|
-
const
|
|
2409
|
+
const _r19 = i0.ɵɵgetCurrentView();
|
|
2370
2410
|
i0.ɵɵelementStart(0, "button", 39);
|
|
2371
|
-
i0.ɵɵlistener("click", function TreeTableComponent_5_ng_template_0_button_16_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
2411
|
+
i0.ɵɵlistener("click", function TreeTableComponent_5_ng_template_0_button_16_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r19); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.groupEditAction.emit($event)); });
|
|
2372
2412
|
i0.ɵɵelement(1, "i", 43);
|
|
2373
2413
|
i0.ɵɵpipe(2, "translate");
|
|
2374
2414
|
i0.ɵɵelementEnd();
|
|
@@ -2379,9 +2419,9 @@ function TreeTableComponent_5_ng_template_0_button_16_Template(rf, ctx) { if (rf
|
|
|
2379
2419
|
i0.ɵɵpropertyInterpolate("title", i0.ɵɵpipeBind1(2, 2, "groupEdit"));
|
|
2380
2420
|
} }
|
|
2381
2421
|
function TreeTableComponent_5_ng_template_0_button_17_Template(rf, ctx) { if (rf & 1) {
|
|
2382
|
-
const
|
|
2422
|
+
const _r20 = i0.ɵɵgetCurrentView();
|
|
2383
2423
|
i0.ɵɵelementStart(0, "button", 39);
|
|
2384
|
-
i0.ɵɵlistener("click", function TreeTableComponent_5_ng_template_0_button_17_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
2424
|
+
i0.ɵɵlistener("click", function TreeTableComponent_5_ng_template_0_button_17_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r20); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.removeAction.emit($event)); });
|
|
2385
2425
|
i0.ɵɵelement(1, "i", 44);
|
|
2386
2426
|
i0.ɵɵelementEnd();
|
|
2387
2427
|
} if (rf & 2) {
|
|
@@ -2391,9 +2431,9 @@ function TreeTableComponent_5_ng_template_0_button_17_Template(rf, ctx) { if (rf
|
|
|
2391
2431
|
i0.ɵɵproperty("title", (ctx_r2.toolbar.remove == null ? null : ctx_r2.toolbar.remove.title) || "\u0423\u0434\u0430\u043B\u0438\u0442\u044C");
|
|
2392
2432
|
} }
|
|
2393
2433
|
function TreeTableComponent_5_ng_template_0_button_18_Template(rf, ctx) { if (rf & 1) {
|
|
2394
|
-
const
|
|
2434
|
+
const _r21 = i0.ɵɵgetCurrentView();
|
|
2395
2435
|
i0.ɵɵelementStart(0, "button", 39);
|
|
2396
|
-
i0.ɵɵlistener("click", function TreeTableComponent_5_ng_template_0_button_18_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
2436
|
+
i0.ɵɵlistener("click", function TreeTableComponent_5_ng_template_0_button_18_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.unlinkAction.emit($event)); });
|
|
2397
2437
|
i0.ɵɵelement(1, "i", 45);
|
|
2398
2438
|
i0.ɵɵpipe(2, "translate");
|
|
2399
2439
|
i0.ɵɵelementEnd();
|
|
@@ -2404,9 +2444,9 @@ function TreeTableComponent_5_ng_template_0_button_18_Template(rf, ctx) { if (rf
|
|
|
2404
2444
|
i0.ɵɵpropertyInterpolate("title", i0.ɵɵpipeBind1(2, 2, "Detach tag from selected items"));
|
|
2405
2445
|
} }
|
|
2406
2446
|
function TreeTableComponent_5_ng_template_0_button_19_Template(rf, ctx) { if (rf & 1) {
|
|
2407
|
-
const
|
|
2447
|
+
const _r22 = i0.ɵɵgetCurrentView();
|
|
2408
2448
|
i0.ɵɵelementStart(0, "button", 39);
|
|
2409
|
-
i0.ɵɵlistener("click", function TreeTableComponent_5_ng_template_0_button_19_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
2449
|
+
i0.ɵɵlistener("click", function TreeTableComponent_5_ng_template_0_button_19_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r22); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.csvAction.emit($event)); });
|
|
2410
2450
|
i0.ɵɵelement(1, "i", 46);
|
|
2411
2451
|
i0.ɵɵelementEnd();
|
|
2412
2452
|
} if (rf & 2) {
|
|
@@ -2426,10 +2466,10 @@ function TreeTableComponent_5_ng_template_0_button_20__svg_svg_3_Template(rf, ct
|
|
|
2426
2466
|
i0.ɵɵelementEnd();
|
|
2427
2467
|
} }
|
|
2428
2468
|
function TreeTableComponent_5_ng_template_0_button_20_Template(rf, ctx) { if (rf & 1) {
|
|
2429
|
-
const
|
|
2469
|
+
const _r23 = i0.ɵɵgetCurrentView();
|
|
2430
2470
|
i0.ɵɵelementStart(0, "button", 47);
|
|
2431
2471
|
i0.ɵɵpipe(1, "translate");
|
|
2432
|
-
i0.ɵɵlistener("click", function TreeTableComponent_5_ng_template_0_button_20_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
2472
|
+
i0.ɵɵlistener("click", function TreeTableComponent_5_ng_template_0_button_20_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r23); const ctx_r2 = i0.ɵɵnextContext(3); const dt_r15 = i0.ɵɵreference(1); return i0.ɵɵresetView(ctx_r2.collapse($event, dt_r15)); });
|
|
2433
2473
|
i0.ɵɵtemplate(2, TreeTableComponent_5_ng_template_0_button_20__svg_svg_2_Template, 2, 0, "svg", 48)(3, TreeTableComponent_5_ng_template_0_button_20__svg_svg_3_Template, 2, 0, "svg", 48);
|
|
2434
2474
|
i0.ɵɵelementEnd();
|
|
2435
2475
|
} if (rf & 2) {
|
|
@@ -2441,19 +2481,19 @@ function TreeTableComponent_5_ng_template_0_button_20_Template(rf, ctx) { if (rf
|
|
|
2441
2481
|
i0.ɵɵproperty("ngIf", !ctx_r2.isCollapse);
|
|
2442
2482
|
} }
|
|
2443
2483
|
function TreeTableComponent_5_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
2444
|
-
const
|
|
2484
|
+
const _r14 = i0.ɵɵgetCurrentView();
|
|
2445
2485
|
i0.ɵɵelementStart(0, "div", 26)(1, "div", 27)(2, "div", 28)(3, "form", 29)(4, "div", 30)(5, "input", 31, 1);
|
|
2446
2486
|
i0.ɵɵpipe(7, "translate");
|
|
2447
|
-
i0.ɵɵlistener("input", function TreeTableComponent_5_ng_template_0_Template_input_input_5_listener($event) { i0.ɵɵrestoreView(
|
|
2448
|
-
i0.ɵɵtwoWayListener("ngModelChange", function TreeTableComponent_5_ng_template_0_Template_input_ngModelChange_5_listener($event) { i0.ɵɵrestoreView(
|
|
2487
|
+
i0.ɵɵlistener("input", function TreeTableComponent_5_ng_template_0_Template_input_input_5_listener($event) { i0.ɵɵrestoreView(_r14); i0.ɵɵnextContext(2); const dt_r15 = i0.ɵɵreference(1); return i0.ɵɵresetView(dt_r15.filterGlobal($event.target.value, "contains")); });
|
|
2488
|
+
i0.ɵɵtwoWayListener("ngModelChange", function TreeTableComponent_5_ng_template_0_Template_input_ngModelChange_5_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r2 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r2.searchText, $event) || (ctx_r2.searchText = $event); return i0.ɵɵresetView($event); });
|
|
2449
2489
|
i0.ɵɵelementEnd();
|
|
2450
2490
|
i0.ɵɵelementStart(8, "button", 32);
|
|
2451
2491
|
i0.ɵɵpipe(9, "translate");
|
|
2452
|
-
i0.ɵɵlistener("click", function TreeTableComponent_5_ng_template_0_Template_button_click_8_listener($event) { i0.ɵɵrestoreView(
|
|
2492
|
+
i0.ɵɵlistener("click", function TreeTableComponent_5_ng_template_0_Template_button_click_8_listener($event) { i0.ɵɵrestoreView(_r14); i0.ɵɵnextContext(2); const dt_r15 = i0.ɵɵreference(1); return i0.ɵɵresetView(dt_r15.filterGlobal($event.target.value, "contains")); });
|
|
2453
2493
|
i0.ɵɵelement(10, "i", 33);
|
|
2454
2494
|
i0.ɵɵelementEnd()()()();
|
|
2455
2495
|
i0.ɵɵelementStart(11, "div", 34)(12, "in-table-columns-multiselect", 35);
|
|
2456
|
-
i0.ɵɵlistener("columnsChange", function TreeTableComponent_5_ng_template_0_Template_in_table_columns_multiselect_columnsChange_12_listener($event) { i0.ɵɵrestoreView(
|
|
2496
|
+
i0.ɵɵlistener("columnsChange", function TreeTableComponent_5_ng_template_0_Template_in_table_columns_multiselect_columnsChange_12_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.columnsChange($event)); });
|
|
2457
2497
|
i0.ɵɵelementEnd()();
|
|
2458
2498
|
i0.ɵɵtemplate(13, TreeTableComponent_5_ng_template_0_button_13_Template, 2, 2, "button", 36)(14, TreeTableComponent_5_ng_template_0_button_14_Template, 2, 2, "button", 36)(15, TreeTableComponent_5_ng_template_0_button_15_Template, 4, 7, "button", 37)(16, TreeTableComponent_5_ng_template_0_button_16_Template, 3, 4, "button", 36)(17, TreeTableComponent_5_ng_template_0_button_17_Template, 2, 2, "button", 36)(18, TreeTableComponent_5_ng_template_0_button_18_Template, 3, 4, "button", 36)(19, TreeTableComponent_5_ng_template_0_button_19_Template, 2, 1, "button", 36)(20, TreeTableComponent_5_ng_template_0_button_20_Template, 4, 5, "button", 38);
|
|
2459
2499
|
i0.ɵɵelementEnd()();
|
|
@@ -2506,15 +2546,53 @@ class TreeTableComponent {
|
|
|
2506
2546
|
this.rowIndex = 0;
|
|
2507
2547
|
this.isCollapse = true;
|
|
2508
2548
|
this._selection = null;
|
|
2549
|
+
this._selectionSet = new Set();
|
|
2550
|
+
}
|
|
2551
|
+
_rebuildSelectionSet(val) {
|
|
2552
|
+
this._selectionSet = new Set();
|
|
2553
|
+
if (Array.isArray(val)) {
|
|
2554
|
+
const key = this.dataKey || 'id';
|
|
2555
|
+
for (const item of val) {
|
|
2556
|
+
const data = item?.data ?? item;
|
|
2557
|
+
if (data != null) {
|
|
2558
|
+
this._selectionSet.add(data[key] ?? data);
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2561
|
+
}
|
|
2562
|
+
}
|
|
2563
|
+
_isRowSelected(rowNode) {
|
|
2564
|
+
const key = this.dataKey || 'id';
|
|
2565
|
+
const data = rowNode?.data ?? rowNode;
|
|
2566
|
+
return this._selectionSet.has(data?.[key] ?? data);
|
|
2567
|
+
}
|
|
2568
|
+
_onCheckboxChange(event, rowNode) {
|
|
2569
|
+
const checked = event.target.checked;
|
|
2570
|
+
const key = this.dataKey || 'id';
|
|
2571
|
+
const data = rowNode?.data ?? rowNode;
|
|
2572
|
+
const rowKey = data?.[key] ?? data;
|
|
2573
|
+
if (checked) {
|
|
2574
|
+
this._selectionSet.add(rowKey);
|
|
2575
|
+
this._selection = [...(this._selection || []), rowNode];
|
|
2576
|
+
}
|
|
2577
|
+
else {
|
|
2578
|
+
this._selectionSet.delete(rowKey);
|
|
2579
|
+
this._selection = (this._selection || []).filter((item) => {
|
|
2580
|
+
const d = item?.data ?? item;
|
|
2581
|
+
return (d?.[key] ?? d) !== rowKey;
|
|
2582
|
+
});
|
|
2583
|
+
}
|
|
2584
|
+
this.selectionValue = this._selection;
|
|
2509
2585
|
}
|
|
2510
2586
|
set selection(val) {
|
|
2511
2587
|
this._selection = val;
|
|
2588
|
+
this._rebuildSelectionSet(val);
|
|
2512
2589
|
}
|
|
2513
2590
|
get selectionValue() {
|
|
2514
2591
|
return this._selection;
|
|
2515
2592
|
}
|
|
2516
2593
|
set selectionValue(val) {
|
|
2517
2594
|
this._selection = val;
|
|
2595
|
+
this._rebuildSelectionSet(val);
|
|
2518
2596
|
this.selectionChange.emit(val);
|
|
2519
2597
|
}
|
|
2520
2598
|
isRowActive(row) {
|
|
@@ -2606,7 +2684,7 @@ class TreeTableComponent {
|
|
|
2606
2684
|
} if (rf & 2) {
|
|
2607
2685
|
let _t;
|
|
2608
2686
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);
|
|
2609
|
-
} }, inputs: { columns: "columns", values: "values", scrollHeight: "scrollHeight", scrollable: "scrollable", selectionMode: "selectionMode", label: "label", error: "error", class: "class", required: "required", style: "style", toolbar: "toolbar", checkboxSelection: "checkboxSelection", active: "active", sortField: "sortField", isAscending: "isAscending", dataKey: "dataKey", selection: "selection" }, outputs: { activeChange: "activeChange", selectionChange: "selectionChange", addAction: "addAction", csvAction: "csvAction", saveAction: "saveAction", collapseAction: "collapseAction", removeAction: "removeAction", unlinkAction: "unlinkAction", groupEditAction: "groupEditAction", groupAddAction: "groupAddAction" }, standalone: false, decls: 6, vars: 14, consts: [["dt", ""], ["searchTextInput", ""], ["columnResizeMode", "expand", 3, "selectionChange", "selection", "columns", "resizableColumns", "scrollHeight", "scrollable", "selectionMode", "sortField", "sortOrder", "value"], ["pTemplate", "colgroup"], ["pTemplate", "header"], ["pTemplate", "body"], [4, "ngIf"], ["style", "width:44px;", 4, "ngIf"], [3, "width", 4, "ngFor", "ngForOf"], [2, "width", "44px"], ["class", "u-position-relative", "ttResizableColumn", "", 3, "ttSortableColumn", 4, "ngFor", "ngForOf"], ["ttResizableColumn", "", 1, "u-position-relative", 3, "ttSortableColumn"], [1, "p-treetable-thead-title", 3, "title"], [1, "p-sortable-column-buttons", 3, "field"], [1, "row", 3, "ngClass", "ttSelectableRow"], ["class", "_u-overflow-visible", 3, "click", 4, "ngFor", "ngForOf"], [3, "
|
|
2687
|
+
} }, inputs: { columns: "columns", values: "values", scrollHeight: "scrollHeight", scrollable: "scrollable", selectionMode: "selectionMode", label: "label", error: "error", class: "class", required: "required", style: "style", toolbar: "toolbar", checkboxSelection: "checkboxSelection", active: "active", sortField: "sortField", isAscending: "isAscending", dataKey: "dataKey", selection: "selection" }, outputs: { activeChange: "activeChange", selectionChange: "selectionChange", addAction: "addAction", csvAction: "csvAction", saveAction: "saveAction", collapseAction: "collapseAction", removeAction: "removeAction", unlinkAction: "unlinkAction", groupEditAction: "groupEditAction", groupAddAction: "groupAddAction" }, standalone: false, decls: 6, vars: 14, consts: [["dt", ""], ["searchTextInput", ""], ["columnResizeMode", "expand", 3, "selectionChange", "selection", "columns", "resizableColumns", "scrollHeight", "scrollable", "selectionMode", "sortField", "sortOrder", "value"], ["pTemplate", "colgroup"], ["pTemplate", "header"], ["pTemplate", "body"], [4, "ngIf"], ["style", "width:44px;", 4, "ngIf"], [3, "width", 4, "ngFor", "ngForOf"], [2, "width", "44px"], ["class", "u-position-relative", "ttResizableColumn", "", 3, "ttSortableColumn", 4, "ngFor", "ngForOf"], ["ttResizableColumn", "", 1, "u-position-relative", 3, "ttSortableColumn"], [1, "p-treetable-thead-title", 3, "title"], [1, "p-sortable-column-buttons", 3, "field"], [1, "row", 3, "ngClass", "ttSelectableRow"], ["class", "_u-overflow-visible", 3, "click", 4, "ngFor", "ngForOf"], ["type", "checkbox", 1, "in-table-checkbox", 3, "change", "click", "checked"], [1, "_u-overflow-visible", 3, "click"], [1, "", 2, "display", "flex", "flex-wrap", "nowrap"], [3, "ngIf"], [1, "p-treetable-tbody-content", "cell-content_hover", 2, "flex-grow", "1", 3, "ngClass", "title"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [2, "align-self", "center", 3, "rowNode"], ["class", "u-margin-right-tiny", 3, "ngClass", 4, "ngIf"], [1, "u-margin-right-tiny", 3, "ngClass"], ["pTemplate", "caption"], [1, "o-grid", "o-grid_no-gutter"], [1, "c-tree-table__toolbar-content", "u-display-inline-flex"], [1, "c-form", "c-form_inline", "u-display-inline-block"], [1, "c-label"], [1, "input-wrapper", "u-margin-right-tiny"], ["autofocus", "", "pInputText", "", "required", "", "tabindex", "1", "type", "search", 1, "search-box", "c-input", "c-input_small", "ng-pristine", "ng-valid", "ng-scope", "ng-empty", "ng-touched", 2, "padding-right", "28px", 3, "input", "ngModelChange", "ngModel", "ngModelOptions", "placeholder"], ["type", "reset", 1, "button-reset", 3, "click"], [1, "in", "in-close"], [1, "c-btn", "c-btn_border-free", "c-btn_small"], [3, "columnsChange", "columns"], ["class", "c-btn c-btn_border-free c-btn_small", 3, "disabled", "click", 4, "ngIf"], ["class", "c-btn c-btn_primary c-btn_small", 3, "disabled", "title", "click", 4, "ngIf"], ["class", "c-btn c-btn_small c-btn_svg-24 c-icon c-icon_svg c-icon_svg-24 c-btn_border-free", 3, "title", "click", 4, "ngIf"], [1, "c-btn", "c-btn_border-free", "c-btn_small", 3, "click", "disabled"], [1, "in", "in-plus", 3, "title"], [1, "in", "in-folder-closed", 3, "title"], [1, "c-btn", "c-btn_primary", "c-btn_small", 3, "click", "disabled", "title"], [1, "in", "in-pencil", 3, "title"], [1, "in", "in-trash", 3, "title"], [1, "in", "in-link-off", 3, "title"], ["title", "\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043A\u0430\u043A CSV", 1, "in", "in-file-excel-outline"], [1, "c-btn", "c-btn_small", "c-btn_svg-24", "c-icon", "c-icon_svg", "c-icon_svg-24", "c-btn_border-free", 3, "click", "title"], ["xmlns", "http://www.w3.org/2000/svg", "width", "24", "height", "24", "fill", "currentColor", "viewBox", "0 0 24 24", 4, "ngIf"], ["xmlns", "http://www.w3.org/2000/svg", "width", "24", "height", "24", "fill", "currentColor", "viewBox", "0 0 24 24"], ["d", "M20 2H4v2h16V2zM4 20v2h16v-2H4zM12 5l5 6H7l5-6zM17 13l-5 6-5-6h10z"], ["fill-rule", "evenodd", "d", "M17 3l-5 6-5-6h10zM4 13v-2h16v2H4zm8 2l5 6H7l5-6z", "clip-rule", "evenodd"]], template: function TreeTableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2610
2688
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
2611
2689
|
i0.ɵɵelementStart(0, "p-treeTable", 2, 0);
|
|
2612
2690
|
i0.ɵɵtwoWayListener("selectionChange", function TreeTableComponent_Template_p_treeTable_selectionChange_0_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.selectionValue, $event) || (ctx.selectionValue = $event); return i0.ɵɵresetView($event); });
|
|
@@ -2619,11 +2697,11 @@ class TreeTableComponent {
|
|
|
2619
2697
|
i0.ɵɵproperty("columns", ctx.visibleColumns())("resizableColumns", true)("scrollHeight", ctx.scrollHeight)("scrollable", ctx.scrollable)("selectionMode", ctx.selectionMode)("sortField", ctx.sortField || "id")("sortOrder", ctx.isAscending ? 1 : -1)("value", ctx.values);
|
|
2620
2698
|
i0.ɵɵadvance(5);
|
|
2621
2699
|
i0.ɵɵproperty("ngIf", ctx.toolbar);
|
|
2622
|
-
} }, dependencies: [i1$2.NgClass, i1$2.NgForOf, i1$2.NgIf, i1$2.NgTemplateOutlet, i2$4.TreeTable, i2.PrimeTemplate, i2$4.TreeTableToggler, i2$4.TTSortableColumn, i2$4.TTSortIcon, i2$4.TTResizableColumn, i2$4.TTSelectableRow, i2$4.
|
|
2700
|
+
} }, dependencies: [i1$2.NgClass, i1$2.NgForOf, i1$2.NgIf, i1$2.NgTemplateOutlet, i2$4.TreeTable, i2.PrimeTemplate, i2$4.TreeTableToggler, i2$4.TTSortableColumn, i2$4.TTSortIcon, i2$4.TTResizableColumn, i2$4.TTSelectableRow, i2$4.TTHeaderCheckbox, i2$1.ɵNgNoValidate, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.NgControlStatusGroup, i2$1.RequiredValidator, i2$1.NgModel, i2$1.NgForm, TableColumnsMultiselectComponent, PropertyValuePipe, i1.TranslatePipe], styles: ["@charset \"UTF-8\";.p-sortable-column[_ngcontent-%COMP%]{cursor:pointer;position:relative}.p-sortable-column-buttons[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:18px;height:100%;display:inline-flex;align-items:center;z-index:10000}.p-sortable-column-buttons[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{position:absolute;top:50%;right:0;left:0;transform:translateY(-50%)}.u-overflow-visible[_ngcontent-%COMP%]{overflow:visible!important}.button-reset[_ngcontent-%COMP%]{display:flex;align-items:center;position:absolute;right:6px;top:5px;padding:6px;font-size:15px;border:none;outline:0;cursor:pointer;color:var(--colorTextMuted);background-color:transparent}.button-reset[_ngcontent-%COMP%]:hover{color:var(--colorIcon)}.input-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;align-items:baseline}.c-input[_ngcontent-%COMP%]:not(:valid) ~ .button-reset[_ngcontent-%COMP%]{display:none}"] }); }
|
|
2623
2701
|
}
|
|
2624
2702
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TreeTableComponent, [{
|
|
2625
2703
|
type: Component,
|
|
2626
|
-
args: [{ standalone: false, selector: 'in-tree-table', template: "<p-treeTable #dt\r\n [(selection)]=\"selectionValue\"\r\n [class]=\"class\"\r\n [columns]=\"visibleColumns()\"\r\n [resizableColumns]=\"true\"\r\n [scrollHeight]=\"scrollHeight\"\r\n [scrollable]=\"scrollable\"\r\n [selectionMode]=\"selectionMode\"\r\n [sortField]=\"sortField || 'id'\"\r\n [sortOrder]=\"isAscending ? 1 : -1\"\r\n [style]=\"style\"\r\n [value]=\"values\"\r\n columnResizeMode=\"expand\"\r\n>\r\n <ng-template let-columns pTemplate=\"colgroup\">\r\n <colgroup>\r\n <col *ngIf=\"checkboxSelection\" style=\"width:44px;\">\r\n <col *ngFor=\"let col of visibleColumns()\" [style.width]=\"col.width ? col.width : '10px'\">\r\n </colgroup>\r\n </ng-template>\r\n <ng-template let-columns pTemplate=\"header\">\r\n <tr>\r\n <th *ngIf=\"checkboxSelection\">\r\n <p-treeTableHeaderCheckbox></p-treeTableHeaderCheckbox>\r\n </th>\r\n <th *ngFor=\"let col of columns; let i = index\" [ttSortableColumn]=\"col.field\" class=\"u-position-relative\"\r\n ttResizableColumn>\r\n <div class=\"p-treetable-thead-title\" title=\"{{col.label | translate}}\">\r\n {{col.label | translate}}\r\n </div>\r\n <p-treeTableSortIcon [field]=\"col.field\" class=\"p-sortable-column-buttons\"></p-treeTableSortIcon>\r\n </th>\r\n </tr>\r\n </ng-template>\r\n\r\n <ng-template let-columns=\"columns\" let-rowData=\"rowData\" let-rowNode pTemplate=\"body\">\r\n <tr [ngClass]=\"{row_active: isRowActive(rowData)}\" [ttSelectableRow]=\"rowNode\" class=\"row\">\r\n <td *ngIf=\"checkboxSelection\">\r\n <
|
|
2704
|
+
args: [{ standalone: false, selector: 'in-tree-table', template: "<p-treeTable #dt\r\n [(selection)]=\"selectionValue\"\r\n [class]=\"class\"\r\n [columns]=\"visibleColumns()\"\r\n [resizableColumns]=\"true\"\r\n [scrollHeight]=\"scrollHeight\"\r\n [scrollable]=\"scrollable\"\r\n [selectionMode]=\"selectionMode\"\r\n [sortField]=\"sortField || 'id'\"\r\n [sortOrder]=\"isAscending ? 1 : -1\"\r\n [style]=\"style\"\r\n [value]=\"values\"\r\n columnResizeMode=\"expand\"\r\n>\r\n <ng-template let-columns pTemplate=\"colgroup\">\r\n <colgroup>\r\n <col *ngIf=\"checkboxSelection\" style=\"width:44px;\">\r\n <col *ngFor=\"let col of visibleColumns()\" [style.width]=\"col.width ? col.width : '10px'\">\r\n </colgroup>\r\n </ng-template>\r\n <ng-template let-columns pTemplate=\"header\">\r\n <tr>\r\n <th *ngIf=\"checkboxSelection\">\r\n <p-treeTableHeaderCheckbox></p-treeTableHeaderCheckbox>\r\n </th>\r\n <th *ngFor=\"let col of columns; let i = index\" [ttSortableColumn]=\"col.field\" class=\"u-position-relative\"\r\n ttResizableColumn>\r\n <div class=\"p-treetable-thead-title\" title=\"{{col.label | translate}}\">\r\n {{col.label | translate}}\r\n </div>\r\n <p-treeTableSortIcon [field]=\"col.field\" class=\"p-sortable-column-buttons\"></p-treeTableSortIcon>\r\n </th>\r\n </tr>\r\n </ng-template>\r\n\r\n <ng-template let-columns=\"columns\" let-rowData=\"rowData\" let-rowNode pTemplate=\"body\">\r\n <tr [ngClass]=\"{row_active: isRowActive(rowData)}\" [ttSelectableRow]=\"rowNode\" class=\"row\">\r\n <td *ngIf=\"checkboxSelection\">\r\n <input type=\"checkbox\"\r\n class=\"in-table-checkbox\"\r\n [checked]=\"_isRowSelected(rowNode)\"\r\n (change)=\"_onCheckboxChange($event, rowNode)\"\r\n (click)=\"$event.stopPropagation()\"\r\n >\r\n </td>\r\n <td (click)=\"activeChange.emit(rowData)\" *ngFor=\"let col of columns; let i = index\"\r\n class=\"_u-overflow-visible\">\r\n <div class=\"\" style=\"display: flex; flex-wrap: nowrap;\">\r\n <ng-template [ngIf]=\"i == 0\">\r\n <p-treeTableToggler [rowNode]=\"rowNode\" style=\"align-self: center;\"></p-treeTableToggler>\r\n </ng-template>\r\n <div [ngClass]=\"{ 'p-treetable-tbody-content_has-toggler ': i == 0 }\"\r\n class=\"p-treetable-tbody-content cell-content_hover\"\r\n style=\"flex-grow: 1;\"\r\n title=\"{{rowData | propertyValue: col.field}}\">\r\n <ng-container *ngIf=\"!valueTemplate\">\r\n <i *ngIf=\"rowData.icon && i == 0\" [ngClass]=\"rowData.icon\" class=\"u-margin-right-tiny\"></i>\r\n {{rowData | propertyValue: col.field}}\r\n </ng-container>\r\n\r\n <ng-container\r\n *ngTemplateOutlet=\"valueTemplate; context: {$implicit: { data: rowData, col: col}}\"></ng-container>\r\n </div>\r\n </div>\r\n </td>\r\n </tr>\r\n </ng-template>\r\n\r\n <ng-template *ngIf=\"toolbar\" pTemplate=\"caption\">\r\n\r\n <div class=\"o-grid o-grid_no-gutter\">\r\n <div class=\"c-tree-table__toolbar-content u-display-inline-flex\">\r\n <div class=\"c-form c-form_inline u-display-inline-block\">\r\n <form class=\"c-label\">\r\n <div class=\"input-wrapper u-margin-right-tiny\">\r\n <input #searchTextInput\r\n (input)=\"dt.filterGlobal($any($event.target).value, 'contains')\"\r\n [(ngModel)]=\"searchText\"\r\n [ngModelOptions]=\"{standalone: true}\"\r\n autofocus=\"\"\r\n class=\"search-box c-input c-input_small ng-pristine ng-valid ng-scope ng-empty ng-touched\"\r\n pInputText\r\n placeholder=\"{{('SHARED.SEARCH' | translate) + ':'}}\"\r\n required\r\n style=\"padding-right: 28px\"\r\n tabindex=\"1\"\r\n type=\"search\"\r\n >\r\n <button (click)=\"dt.filterGlobal($any($event.target).value, 'contains')\" class=\"button-reset\" type=\"reset\"\r\n [attr.title]=\"'Reset' | translate\">\r\n <i class=\"in in-close\"></i>\r\n </button>\r\n </div>\r\n </form>\r\n </div>\r\n <div class=\"c-btn c-btn_border-free c-btn_small\">\r\n <in-table-columns-multiselect (columnsChange)=\"columnsChange($event)\"\r\n [columns]=\"columns\"></in-table-columns-multiselect>\r\n </div>\r\n\r\n <button (click)=\"addAction.emit($event)\" *ngIf=\"toolbar.add\" [disabled]=\"toolbar.add.disabled\"\r\n class=\"c-btn c-btn_border-free c-btn_small\"\r\n >\r\n <i class=\"in in-plus\" [title]=\"toolbar.add.title || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C'\"></i>\r\n </button>\r\n\r\n <button (click)=\"groupAddAction.emit($event)\" *ngIf=\"toolbar.groupAdd\" [disabled]=\"toolbar.groupAdd.disabled\"\r\n class=\"c-btn c-btn_border-free c-btn_small\"\r\n >\r\n <i class=\"in in-folder-closed\" [title]=\"toolbar.groupAdd.title || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0433\u0440\u0443\u043F\u043F\u0443'\"></i>\r\n </button>\r\n\r\n\r\n <button (click)=\"saveAction.emit($event)\" *ngIf=\"toolbar.save\"\r\n [disabled]=\"toolbar.save.disabled\"\r\n class=\"c-btn c-btn_primary c-btn_small\"\r\n title=\"{{'Save' | translate}}\"\r\n >\r\n {{'Save' | translate}}\r\n </button>\r\n <button (click)=\"groupEditAction.emit($event)\" *ngIf=\"toolbar.groupEdit && toolbar.groupEdit.active\"\r\n [disabled]=\"toolbar.groupEdit.disabled\"\r\n class=\"c-btn c-btn_border-free c-btn_small\">\r\n <i class=\"in in-pencil\" title=\"{{'groupEdit' | translate}}\"></i>\r\n </button>\r\n <button (click)=\"removeAction.emit($event)\" *ngIf=\"toolbar.remove && toolbar.remove.active\"\r\n [disabled]=\"toolbar.remove.disabled\"\r\n class=\"c-btn c-btn_border-free c-btn_small\">\r\n <i class=\"in in-trash\" [title]=\"toolbar.remove?.title || '\u0423\u0434\u0430\u043B\u0438\u0442\u044C'\"></i>\r\n </button>\r\n <button (click)=\"unlinkAction.emit($event)\" *ngIf=\"toolbar.unlink\" [disabled]=\"toolbar.unlink.disabled\"\r\n class=\"c-btn c-btn_border-free c-btn_small\">\r\n <i class=\"in in-link-off\" title=\"{{'Detach tag from selected items' | translate}}\"></i>\r\n </button>\r\n <button (click)=\"csvAction.emit($event)\" *ngIf=\"toolbar.csv\" [disabled]=\"toolbar.csv.disabled\"\r\n class=\"c-btn c-btn_border-free c-btn_small\"\r\n >\r\n<!-- Todo: \u0437\u0430\u043C\u0435\u043D\u0438\u0442\u044C \u043D\u0430 in-file-csv-->\r\n <i class=\"in in-file-excel-outline\" title=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043A\u0430\u043A CSV\"></i>\r\n </button>\r\n <button *ngIf=\"toolbar.collapse\"\r\n class=\"c-btn c-btn_small c-btn_svg-24 c-icon c-icon_svg c-icon_svg-24 c-btn_border-free\"\r\n (click)=\"collapse($event, dt)\"\r\n title=\"{{(isCollapse ? 'Expand all' : 'Collapse all') | translate}}\">\r\n <svg *ngIf=\"isCollapse\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"currentColor\" viewBox=\"0 0 24 24\">\r\n <path d=\"M20 2H4v2h16V2zM4 20v2h16v-2H4zM12 5l5 6H7l5-6zM17 13l-5 6-5-6h10z\"/>\r\n </svg>\r\n <svg *ngIf=\"!isCollapse\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"currentColor\" viewBox=\"0 0 24 24\">\r\n <path fill-rule=\"evenodd\" d=\"M17 3l-5 6-5-6h10zM4 13v-2h16v2H4zm8 2l5 6H7l5-6z\" clip-rule=\"evenodd\"/>\r\n </svg>\r\n </button>\r\n </div>\r\n </div>\r\n </ng-template>\r\n</p-treeTable>\r\n", styles: ["@charset \"UTF-8\";.p-sortable-column{cursor:pointer;position:relative}.p-sortable-column-buttons{position:absolute;top:0;right:0;width:18px;height:100%;display:inline-flex;align-items:center;z-index:10000}.p-sortable-column-buttons>a{position:absolute;top:50%;right:0;left:0;transform:translateY(-50%)}.u-overflow-visible{overflow:visible!important}.button-reset{display:flex;align-items:center;position:absolute;right:6px;top:5px;padding:6px;font-size:15px;border:none;outline:0;cursor:pointer;color:var(--colorTextMuted);background-color:transparent}.button-reset:hover{color:var(--colorIcon)}.input-wrapper{position:relative;display:flex;align-items:baseline}.c-input:not(:valid)~.button-reset{display:none}\n"] }]
|
|
2627
2705
|
}], null, { columns: [{
|
|
2628
2706
|
type: Input
|
|
2629
2707
|
}], values: [{
|