@inspark/inspark-components 19.0.47 → 19.0.49
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/components/table/table.component.d.ts +2 -3
- package/full/components/table/table.component.d.ts.map +1 -1
- package/full/components/tree-table/tree-table.component.d.ts +2 -0
- package/full/components/tree-table/tree-table.component.d.ts.map +1 -1
- package/full/fesm2022/inspark-inspark-components.mjs +54 -29
- package/full/fesm2022/inspark-inspark-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -102,10 +102,9 @@ export declare class TableComponent implements OnInit, AfterContentInit {
|
|
|
102
102
|
ngAfterContentInit(): void;
|
|
103
103
|
/** O(1) check used in template instead of dt.isSelected() */
|
|
104
104
|
_isRowSelected(row: any): boolean;
|
|
105
|
-
/**
|
|
105
|
+
/** Check — uses filteredValue when filter is active, full values otherwise */
|
|
106
106
|
_isAllSelected(): boolean;
|
|
107
|
-
/** Select/deselect all rows
|
|
108
|
-
* (O(N log N) sort) used by p-tableHeaderCheckbox.toggleRowsWithCheckbox(). */
|
|
107
|
+
/** Select/deselect all rows respecting active filter */
|
|
109
108
|
_onHeaderCheckboxChange(event: Event): void;
|
|
110
109
|
/** Called when native checkbox changes */
|
|
111
110
|
_onCheckboxChange(event: Event, row: any): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.component.d.ts","sourceRoot":"","sources":["../../../../../projects/inspark-components/src/components/table/table.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAIhB,YAAY,EAES,MAAM,EAE3B,SAAS,EACT,WAAW,EAEZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,KAAK,EAA4B,MAAM,eAAe,CAAC;AAE/D,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAUlD,OAAO,EAAC,YAAY,EAAC,MAAM,qDAAqD,CAAC;AAEjF,OAAO,EAAC,YAAY,EAAE,OAAO,EAAE,mBAAmB,EA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,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;IACzC,aAAa,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,MAAQ;;IAMlB;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,+BAA+B;IAwB9C,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAIjC,OAAO,CAAC,MAAM,CAAC,8BAA8B;IA2B7C;;gFAE4E;IAC5E,OAAO,CAAC,aAAa,CAAkB;IAEvC,OAAO,CAAC,oBAAoB;IAU5B,kBAAkB;IAiBlB,6DAA6D;IACtD,cAAc,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO;IAKxC,
|
|
1
|
+
{"version":3,"file":"table.component.d.ts","sourceRoot":"","sources":["../../../../../projects/inspark-components/src/components/table/table.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAIhB,YAAY,EAES,MAAM,EAE3B,SAAS,EACT,WAAW,EAEZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,KAAK,EAA4B,MAAM,eAAe,CAAC;AAE/D,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAUlD,OAAO,EAAC,YAAY,EAAC,MAAM,qDAAqD,CAAC;AAEjF,OAAO,EAAC,YAAY,EAAE,OAAO,EAAE,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;;;;;;;;;;;;;;AAI3E,wBAAgB,YAAY,CAAC,OAAO,EAAE,cAAc,cAEnD;AAED,qBAQa,cAAe,YAAW,MAAM,EAAE,gBAAgB;IAEpD,OAAO,EAAE,YAAY,EAAE,CAAM;IACtC,eAAe,EAAE,YAAY,EAAE,CAAM;IACrC,qBAAqB,EAAE,MAAM,EAAE,CAAM;IACrC,cAAc,EAAE,YAAY,EAAE,CAAM;IAC3B,MAAM,QAAM;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,QAAQ,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AS/B,UAAU,CAAC,IAAI,KAAA;yCAzdJ,cAAc;2CAAd,cAAc;CAoe1B;AAGD,qBAMa,oBAAoB;yCAApB,oBAAoB;0CAApB,oBAAoB,UA7epB,cAAc,6WAAd,cAAc;0CA6ed,oBAAoB;CAChC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AfterContentInit, EventEmitter, QueryList, TemplateRef } from '@angular/core';
|
|
2
|
+
import { TreeTable } from 'primeng/treetable';
|
|
2
3
|
import { InsparkTemplate } from '../inspark.shared';
|
|
3
4
|
import { TableRowData } from '../../utils/hybrid/prime-table/table-row-data.model';
|
|
4
5
|
import { TableColumns } from '../../interface';
|
|
@@ -10,6 +11,7 @@ import * as i4 from "@ngx-translate/core";
|
|
|
10
11
|
import * as i5 from "@angular/forms";
|
|
11
12
|
import * as i6 from "../table/table.component";
|
|
12
13
|
export declare class TreeTableComponent implements AfterContentInit {
|
|
14
|
+
dt: TreeTable;
|
|
13
15
|
columns: TableColumns[];
|
|
14
16
|
scrollHeight: string;
|
|
15
17
|
scrollable: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-table.component.d.ts","sourceRoot":"","sources":["../../../../../projects/inspark-components/src/components/tree-table/tree-table.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAGhB,YAAY,EAIZ,SAAS,EACT,WAAW,
|
|
1
|
+
{"version":3,"file":"tree-table.component.d.ts","sourceRoot":"","sources":["../../../../../projects/inspark-components/src/components/tree-table/tree-table.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAGhB,YAAY,EAIZ,SAAS,EACT,WAAW,EAEZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAKlD,OAAO,EAAC,YAAY,EAAC,MAAM,qDAAqD,CAAC;AACjF,OAAO,EAAC,YAAY,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AAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,GAAG,IAAI;IAiCxE,IAAa,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,EAG7B;IACD,IAAI,MAAM,IAAI,GAAG,EAAE,CAAyB;IAC5C,OAAO,CAAC,OAAO,CAAa;IAE5B,IAAa,SAAS,CAAC,GAAG,KAAA,EAGzB;IAED,IAAI,cAAc,QAEjB;IAED,IAAI,cAAc,CAAC,GAAG,KAAA,EAIrB;IAEM,WAAW,CAAC,GAAG,EAAE,YAAY;IAI7B,cAAc,IAAI,YAAY,EAAE;IAIhC,aAAa,CAAC,IAAI,KAAA;IAGzB,kBAAkB;IAyElB,QAAQ,CAAC,KAAK,KAAA,EAAE,EAAE,KAAA;IAQlB,cAAc,CAAC,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,OAAO;yCAzTnC,kBAAkB;2CAAlB,kBAAkB;CAqU9B;AAGD,qBAKa,wBAAwB;yCAAxB,wBAAwB;0CAAxB,wBAAwB,UA7UxB,kBAAkB,yKAAlB,kBAAkB;0CA6UlB,wBAAwB;CACpC"}
|
|
@@ -657,12 +657,12 @@ class TableColumnsMultiselectComponent {
|
|
|
657
657
|
}] }); })();
|
|
658
658
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TableColumnsMultiselectComponent, { className: "TableColumnsMultiselectComponent", filePath: "components/table/table-columns-multiselect/table-columns-multiselect.component.ts", lineNumber: 10 }); })();
|
|
659
659
|
|
|
660
|
-
const _c0$
|
|
660
|
+
const _c0$h = [[["", "buttons", ""]]];
|
|
661
661
|
const _c1$b = ["[buttons]"];
|
|
662
662
|
const _c2$6 = a0 => ({ columns: a0 });
|
|
663
663
|
const _c3$5 = a0 => ({ $implicit: a0 });
|
|
664
664
|
const _c4$3 = (a0, a1) => ({ $implicit: a0, columns: a1 });
|
|
665
|
-
const _c5$
|
|
665
|
+
const _c5$2 = () => ({ width: "100%", overflow: "visible" });
|
|
666
666
|
const _c6 = (a0, a1, a2) => ({ rowIndex: a0, rowData: a1, columns: a2 });
|
|
667
667
|
const _c7 = a0 => ({ row_active: a0 });
|
|
668
668
|
const _c8 = (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 });
|
|
@@ -802,7 +802,7 @@ function TableComponent_ng_template_5_ng_container_0_ng_template_2_tr_3_th_2_p_d
|
|
|
802
802
|
let tmp_11_0;
|
|
803
803
|
const col_r8 = i0.ɵɵnextContext().$implicit;
|
|
804
804
|
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
805
|
-
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(3, _c5$
|
|
805
|
+
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(3, _c5$2));
|
|
806
806
|
i0.ɵɵproperty("options", (tmp_11_0 = ctx_r1.colFilter(col_r8.field)) == null ? null : tmp_11_0.options);
|
|
807
807
|
} }
|
|
808
808
|
function TableComponent_ng_template_5_ng_container_0_ng_template_2_tr_3_th_2_p_multiSelect_3_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -815,7 +815,7 @@ function TableComponent_ng_template_5_ng_container_0_ng_template_2_tr_3_th_2_p_m
|
|
|
815
815
|
let tmp_12_0;
|
|
816
816
|
const col_r8 = i0.ɵɵnextContext().$implicit;
|
|
817
817
|
const ctx_r1 = i0.ɵɵnextContext(5);
|
|
818
|
-
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(6, _c5$
|
|
818
|
+
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(6, _c5$2));
|
|
819
819
|
i0.ɵɵpropertyInterpolate("defaultLabel", i0.ɵɵpipeBind1(1, 4, "All"));
|
|
820
820
|
i0.ɵɵproperty("options", (tmp_12_0 = ctx_r1.colFilter(col_r8.field)) == null ? null : tmp_12_0.options);
|
|
821
821
|
} }
|
|
@@ -1369,21 +1369,23 @@ class TableComponent {
|
|
|
1369
1369
|
const key = this.dataKey || 'id';
|
|
1370
1370
|
return this._selectionSet.has(row?.[key] ?? row);
|
|
1371
1371
|
}
|
|
1372
|
-
/**
|
|
1372
|
+
/** Check — uses filteredValue when filter is active, full values otherwise */
|
|
1373
1373
|
_isAllSelected() {
|
|
1374
|
-
|
|
1374
|
+
const data = this.dt?.filteredValue ?? this.values;
|
|
1375
|
+
if (!data || data.length === 0) {
|
|
1375
1376
|
return false;
|
|
1376
1377
|
}
|
|
1377
|
-
|
|
1378
|
+
const key = this.dataKey || 'id';
|
|
1379
|
+
return data.every(row => this._selectionSet.has(row?.[key] ?? row));
|
|
1378
1380
|
}
|
|
1379
|
-
/** Select/deselect all rows
|
|
1380
|
-
* (O(N log N) sort) used by p-tableHeaderCheckbox.toggleRowsWithCheckbox(). */
|
|
1381
|
+
/** Select/deselect all rows respecting active filter */
|
|
1381
1382
|
_onHeaderCheckboxChange(event) {
|
|
1382
1383
|
const checked = event.target.checked;
|
|
1383
1384
|
const key = this.dataKey || 'id';
|
|
1385
|
+
const data = this.dt?.filteredValue ?? this.values;
|
|
1384
1386
|
if (checked) {
|
|
1385
|
-
this._selectionSet = new Set((
|
|
1386
|
-
this._selection = [...(
|
|
1387
|
+
this._selectionSet = new Set((data || []).map(row => row?.[key] ?? row));
|
|
1388
|
+
this._selection = [...(data || [])];
|
|
1387
1389
|
}
|
|
1388
1390
|
else {
|
|
1389
1391
|
this._selectionSet = new Set();
|
|
@@ -1650,7 +1652,7 @@ class TableComponent {
|
|
|
1650
1652
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dt = _t.first);
|
|
1651
1653
|
} }, 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", ""], ["defaultHeaderTemplate", ""], ["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"], [4, "ngIf", "ngIfElse"], ["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"], ["type", "checkbox", 1, "in-table-checkbox", 3, "change", "click", "checked"], ["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"], [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) {
|
|
1652
1654
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
1653
|
-
i0.ɵɵprojectionDef(_c0$
|
|
1655
|
+
i0.ɵɵprojectionDef(_c0$h);
|
|
1654
1656
|
i0.ɵɵtemplate(0, TableComponent_span_0_Template, 4, 3, "span", 3);
|
|
1655
1657
|
i0.ɵɵelementStart(1, "p-table", 4, 0);
|
|
1656
1658
|
i0.ɵɵlistener("onFilter", function TableComponent_Template_p_table_onFilter_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onFilter($event)); })("onSort", function TableComponent_Template_p_table_onSort_1_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onSort()); })("onStateRestore", function TableComponent_Template_p_table_onStateRestore_1_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.restoreSearchText()); })("onStateSave", function TableComponent_Template_p_table_onStateSave_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.stateSave($event)); })("sortFunction", function TableComponent_Template_p_table_sortFunction_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.sortFunction ? ctx.sortFunction.emit($event) : null); });
|
|
@@ -2278,11 +2280,12 @@ class TooltipComponent {
|
|
|
2278
2280
|
}], () => [], null); })();
|
|
2279
2281
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TooltipComponent, { className: "TooltipComponent", filePath: "components/tooltip/tooltip.component.ts", lineNumber: 10 }); })();
|
|
2280
2282
|
|
|
2281
|
-
const _c0$
|
|
2282
|
-
const _c1$7 = a0 => ({
|
|
2283
|
-
const _c2$5 =
|
|
2284
|
-
const _c3$4 = a0 => ({
|
|
2285
|
-
const _c4$2 =
|
|
2283
|
+
const _c0$g = ["dt"];
|
|
2284
|
+
const _c1$7 = a0 => ({ row_active: a0 });
|
|
2285
|
+
const _c2$5 = a0 => ({ "p-treetable-tbody-content_has-toggler ": a0 });
|
|
2286
|
+
const _c3$4 = (a0, a1) => ({ data: a0, col: a1 });
|
|
2287
|
+
const _c4$2 = a0 => ({ $implicit: a0 });
|
|
2288
|
+
const _c5$1 = () => ({ standalone: true });
|
|
2286
2289
|
function TreeTableComponent_ng_template_2_col_1_Template(rf, ctx) { if (rf & 1) {
|
|
2287
2290
|
i0.ɵɵelement(0, "col", 9);
|
|
2288
2291
|
} }
|
|
@@ -2404,11 +2407,11 @@ function TreeTableComponent_ng_template_4_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
2404
2407
|
i0.ɵɵproperty("ngIf", i_r14 == 0);
|
|
2405
2408
|
i0.ɵɵadvance();
|
|
2406
2409
|
i0.ɵɵpropertyInterpolate("title", i0.ɵɵpipeBind2(4, 6, rowData_r9, col_r13.field));
|
|
2407
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9,
|
|
2410
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c2$5, i_r14 == 0));
|
|
2408
2411
|
i0.ɵɵadvance(2);
|
|
2409
2412
|
i0.ɵɵproperty("ngIf", !ctx_r2.valueTemplate);
|
|
2410
2413
|
i0.ɵɵadvance();
|
|
2411
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.valueTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(14,
|
|
2414
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.valueTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(14, _c4$2, i0.ɵɵpureFunction2(11, _c3$4, rowData_r9, col_r13)));
|
|
2412
2415
|
} }
|
|
2413
2416
|
function TreeTableComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
2414
2417
|
i0.ɵɵelementStart(0, "tr", 15);
|
|
@@ -2419,7 +2422,7 @@ function TreeTableComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
2419
2422
|
const rowData_r9 = ctx.rowData;
|
|
2420
2423
|
const rowNode_r10 = ctx.$implicit;
|
|
2421
2424
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
2422
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4,
|
|
2425
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$7, ctx_r2.isRowActive(rowData_r9)))("ttSelectableRow", rowNode_r10);
|
|
2423
2426
|
i0.ɵɵadvance();
|
|
2424
2427
|
i0.ɵɵproperty("ngIf", ctx_r2.checkboxSelection);
|
|
2425
2428
|
i0.ɵɵadvance();
|
|
@@ -2561,7 +2564,7 @@ function TreeTableComponent_5_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
2561
2564
|
i0.ɵɵadvance(5);
|
|
2562
2565
|
i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(7, 13, "SHARED.SEARCH") + ":");
|
|
2563
2566
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.searchText);
|
|
2564
|
-
i0.ɵɵproperty("ngModelOptions", i0.ɵɵpureFunction0(17,
|
|
2567
|
+
i0.ɵɵproperty("ngModelOptions", i0.ɵɵpureFunction0(17, _c5$1));
|
|
2565
2568
|
i0.ɵɵadvance(3);
|
|
2566
2569
|
i0.ɵɵattribute("title", i0.ɵɵpipeBind1(9, 15, "Reset"));
|
|
2567
2570
|
i0.ɵɵadvance(4);
|
|
@@ -2664,21 +2667,35 @@ class TreeTableComponent {
|
|
|
2664
2667
|
return selectedCount > 0 && selectedCount < descKeys.length;
|
|
2665
2668
|
}
|
|
2666
2669
|
_isAllSelected() {
|
|
2667
|
-
|
|
2670
|
+
const data = this.dt?.filteredNodes ?? this.values;
|
|
2671
|
+
if (!data || data.length === 0) {
|
|
2668
2672
|
return false;
|
|
2669
2673
|
}
|
|
2670
|
-
|
|
2674
|
+
const allKeys = data.flatMap(node => this._flattenTree(node)).map(row => {
|
|
2675
|
+
const key = this.dataKey || 'id';
|
|
2676
|
+
return row?.[key] ?? row;
|
|
2677
|
+
});
|
|
2678
|
+
return allKeys.length > 0 && allKeys.every(k => this._selectionSet.has(k));
|
|
2671
2679
|
}
|
|
2672
2680
|
_onHeaderCheckboxChange(event) {
|
|
2673
2681
|
const checked = event.target.checked;
|
|
2674
2682
|
const key = this.dataKey || 'id';
|
|
2683
|
+
const data = this.dt?.filteredNodes ?? this.values;
|
|
2675
2684
|
if (checked) {
|
|
2676
|
-
|
|
2677
|
-
|
|
2685
|
+
const newKeys = (data || []).flatMap(node => this._flattenTree(node)).map(row => row?.[key] ?? row);
|
|
2686
|
+
newKeys.forEach(k => this._selectionSet.add(k));
|
|
2687
|
+
const existing = new Set((this._selection || []).map((i) => (i?.data ?? i)?.[key]));
|
|
2688
|
+
const toAdd = (data || []).flatMap(node => this._flattenTreeNodes(node))
|
|
2689
|
+
.filter((n) => !existing.has((n?.data ?? n)?.[key]));
|
|
2690
|
+
this._selection = [...(this._selection || []), ...toAdd];
|
|
2678
2691
|
}
|
|
2679
2692
|
else {
|
|
2680
|
-
|
|
2681
|
-
|
|
2693
|
+
const keysToRemove = new Set((data || []).flatMap(node => this._flattenTree(node)).map(row => row?.[key] ?? row));
|
|
2694
|
+
keysToRemove.forEach(k => this._selectionSet.delete(k));
|
|
2695
|
+
this._selection = (this._selection || []).filter((item) => {
|
|
2696
|
+
const d = item?.data ?? item;
|
|
2697
|
+
return !keysToRemove.has(d?.[key] ?? d);
|
|
2698
|
+
});
|
|
2682
2699
|
}
|
|
2683
2700
|
this.selectionValue = this._selection;
|
|
2684
2701
|
}
|
|
@@ -2848,6 +2865,11 @@ class TreeTableComponent {
|
|
|
2848
2865
|
} if (rf & 2) {
|
|
2849
2866
|
let _t;
|
|
2850
2867
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);
|
|
2868
|
+
} }, viewQuery: function TreeTableComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2869
|
+
i0.ɵɵviewQuery(_c0$g, 5);
|
|
2870
|
+
} if (rf & 2) {
|
|
2871
|
+
let _t;
|
|
2872
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dt = _t.first);
|
|
2851
2873
|
} }, inputs: { columns: "columns", 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", values: "values", 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"], ["type", "checkbox", 1, "in-table-checkbox", 3, "change", "click", "checked"], ["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", "indeterminate"], [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) {
|
|
2852
2874
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
2853
2875
|
i0.ɵɵelementStart(0, "p-treeTable", 2, 0);
|
|
@@ -2866,7 +2888,10 @@ class TreeTableComponent {
|
|
|
2866
2888
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TreeTableComponent, [{
|
|
2867
2889
|
type: Component,
|
|
2868
2890
|
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 <input type=\"checkbox\"\r\n class=\"in-table-checkbox\"\r\n [checked]=\"_isAllSelected()\"\r\n (change)=\"_onHeaderCheckboxChange($event)\"\r\n (click)=\"$event.stopPropagation()\"\r\n >\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 <!-- rowData = plain data; rowNode = PrimeNG wrapper used for selection cascade -->\r\n <input type=\"checkbox\"\r\n class=\"in-table-checkbox\"\r\n [checked]=\"_isRowSelected(rowData)\"\r\n [indeterminate]=\"_isIndeterminate(rowData)\"\r\n (change)=\"_onCheckboxChange($event, rowNode, rowData)\"\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}:host-context(.theme-light) .in-table-checkbox,:host-context(.theme-contrast) .in-table-checkbox{border-color:#00000073}:host-context(.theme-light) .in-table-checkbox:hover:not(:checked):not(:indeterminate),:host-context(.theme-contrast) .in-table-checkbox:hover:not(:checked):not(:indeterminate){border-color:#000000b3}.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:indeterminate{background:var(--p-checkbox-checked-background, #387382);border-color:var(--p-checkbox-checked-border-color, #387382)}.in-table-checkbox:indeterminate:after{content:\"\";display:block;width:calc(var(--p-checkbox-icon-size, 14px) - 2px);height:2px;background-color:var(--p-checkbox-icon-checked-color, #ffffff);margin:auto}.in-table-checkbox:hover:not(:checked):not(:indeterminate){border-color:var(--p-checkbox-hover-border-color, #999999)}.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"] }]
|
|
2869
|
-
}], null, {
|
|
2891
|
+
}], null, { dt: [{
|
|
2892
|
+
type: ViewChild,
|
|
2893
|
+
args: ['dt']
|
|
2894
|
+
}], columns: [{
|
|
2870
2895
|
type: Input
|
|
2871
2896
|
}], scrollHeight: [{
|
|
2872
2897
|
type: Input
|
|
@@ -2924,7 +2949,7 @@ class TreeTableComponent {
|
|
|
2924
2949
|
}], selection: [{
|
|
2925
2950
|
type: Input
|
|
2926
2951
|
}] }); })();
|
|
2927
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TreeTableComponent, { className: "TreeTableComponent", filePath: "components/tree-table/tree-table.component.ts", lineNumber:
|
|
2952
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TreeTableComponent, { className: "TreeTableComponent", filePath: "components/tree-table/tree-table.component.ts", lineNumber: 32 }); })();
|
|
2928
2953
|
class TreeTableComponentModule {
|
|
2929
2954
|
static { this.ɵfac = function TreeTableComponentModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TreeTableComponentModule)(); }; }
|
|
2930
2955
|
static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: TreeTableComponentModule }); }
|