ng-firebase-table-kxp 1.2.2 → 1.2.3
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component,
|
|
2
|
+
import { Component, Injectable, Optional, EventEmitter, ChangeDetectionStrategy, Output, Input, ViewChild, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import * as i8 from '@angular/forms';
|
|
@@ -33,13 +33,18 @@ import * as i1 from '@angular/fire/compat/firestore';
|
|
|
33
33
|
import * as i3 from 'ngx-toastr';
|
|
34
34
|
|
|
35
35
|
class NgFirebaseTableKxpComponent {
|
|
36
|
-
static { this.ɵfac =
|
|
37
|
-
static { this.ɵcmp = i0.ɵɵ
|
|
36
|
+
static { this.ɵfac = function NgFirebaseTableKxpComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || NgFirebaseTableKxpComponent)(); }; }
|
|
37
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NgFirebaseTableKxpComponent, selectors: [["lib-ng-firebase-table-kxp"]], standalone: false, decls: 2, vars: 0, template: function NgFirebaseTableKxpComponent_Template(rf, ctx) { if (rf & 1) {
|
|
38
|
+
i0.ɵɵelementStart(0, "p");
|
|
39
|
+
i0.ɵɵtext(1, "ng-firebase-table-kxp works!");
|
|
40
|
+
i0.ɵɵelementEnd();
|
|
41
|
+
} }, encapsulation: 2 }); }
|
|
38
42
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgFirebaseTableKxpComponent, [{
|
|
44
|
+
type: Component,
|
|
45
|
+
args: [{ selector: 'lib-ng-firebase-table-kxp', standalone: false, template: ` <p>ng-firebase-table-kxp works!</p> ` }]
|
|
46
|
+
}], null, null); })();
|
|
47
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NgFirebaseTableKxpComponent, { className: "NgFirebaseTableKxpComponent", filePath: "lib/ng-firebase-table-kxp.component.ts", lineNumber: 9 }); })();
|
|
43
48
|
|
|
44
49
|
const TABLE_DEFAULTS = {
|
|
45
50
|
SORT_FIELD: 'createdAt',
|
|
@@ -1244,18 +1249,18 @@ class TableService {
|
|
|
1244
1249
|
console.warn('Falha ao rastrear índice ausente:', trackingError);
|
|
1245
1250
|
}
|
|
1246
1251
|
}
|
|
1247
|
-
static { this.ɵfac =
|
|
1248
|
-
static { this.ɵprov = i0.ɵɵ
|
|
1252
|
+
static { this.ɵfac = function TableService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TableService)(i0.ɵɵinject(i1.AngularFirestore, 8), i0.ɵɵinject(i2.MatDialog, 8), i0.ɵɵinject(i3.ToastrService, 8)); }; }
|
|
1253
|
+
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: TableService, factory: TableService.ɵfac }); }
|
|
1249
1254
|
}
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1255
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TableService, [{
|
|
1256
|
+
type: Injectable
|
|
1257
|
+
}], () => [{ type: i1.AngularFirestore, decorators: [{
|
|
1258
|
+
type: Optional
|
|
1259
|
+
}] }, { type: i2.MatDialog, decorators: [{
|
|
1260
|
+
type: Optional
|
|
1261
|
+
}] }, { type: i3.ToastrService, decorators: [{
|
|
1262
|
+
type: Optional
|
|
1263
|
+
}] }], null); })();
|
|
1259
1264
|
|
|
1260
1265
|
class FilterService {
|
|
1261
1266
|
constructor(tableService) {
|
|
@@ -1659,15 +1664,15 @@ class FilterService {
|
|
|
1659
1664
|
}
|
|
1660
1665
|
return dropdownItems;
|
|
1661
1666
|
}
|
|
1662
|
-
static { this.ɵfac =
|
|
1663
|
-
static { this.ɵprov = i0.ɵɵ
|
|
1667
|
+
static { this.ɵfac = function FilterService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FilterService)(i0.ɵɵinject(TableService)); }; }
|
|
1668
|
+
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: FilterService, factory: FilterService.ɵfac, providedIn: 'root' }); }
|
|
1664
1669
|
}
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1670
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FilterService, [{
|
|
1671
|
+
type: Injectable,
|
|
1672
|
+
args: [{
|
|
1673
|
+
providedIn: 'root',
|
|
1674
|
+
}]
|
|
1675
|
+
}], () => [{ type: TableService }], null); })();
|
|
1671
1676
|
|
|
1672
1677
|
class TooltipService {
|
|
1673
1678
|
constructor() {
|
|
@@ -1798,15 +1803,15 @@ class TooltipService {
|
|
|
1798
1803
|
this.tooltipTimeout = null;
|
|
1799
1804
|
}
|
|
1800
1805
|
}
|
|
1801
|
-
static { this.ɵfac =
|
|
1802
|
-
static { this.ɵprov = i0.ɵɵ
|
|
1806
|
+
static { this.ɵfac = function TooltipService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TooltipService)(); }; }
|
|
1807
|
+
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: TooltipService, factory: TooltipService.ɵfac, providedIn: 'root' }); }
|
|
1803
1808
|
}
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1809
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TooltipService, [{
|
|
1810
|
+
type: Injectable,
|
|
1811
|
+
args: [{
|
|
1812
|
+
providedIn: 'root',
|
|
1813
|
+
}]
|
|
1814
|
+
}], null, null); })();
|
|
1810
1815
|
|
|
1811
1816
|
class PaginationService {
|
|
1812
1817
|
calculateNavigation(event, currentState) {
|
|
@@ -1911,16 +1916,68 @@ class PaginationService {
|
|
|
1911
1916
|
shouldShowNextButton(hasNextPage, isPaginated) {
|
|
1912
1917
|
return hasNextPage || !isPaginated;
|
|
1913
1918
|
}
|
|
1914
|
-
static { this.ɵfac =
|
|
1915
|
-
static { this.ɵprov = i0.ɵɵ
|
|
1919
|
+
static { this.ɵfac = function PaginationService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PaginationService)(); }; }
|
|
1920
|
+
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PaginationService, factory: PaginationService.ɵfac, providedIn: 'root' }); }
|
|
1916
1921
|
}
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1922
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationService, [{
|
|
1923
|
+
type: Injectable,
|
|
1924
|
+
args: [{
|
|
1925
|
+
providedIn: 'root',
|
|
1926
|
+
}]
|
|
1927
|
+
}], null, null); })();
|
|
1923
1928
|
|
|
1929
|
+
function TableTabsComponent_div_0_ng_container_1_ng_container_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
1930
|
+
i0.ɵɵelementStart(0, "span", 6);
|
|
1931
|
+
i0.ɵɵtext(1);
|
|
1932
|
+
i0.ɵɵelementEnd();
|
|
1933
|
+
} if (rf & 2) {
|
|
1934
|
+
const tab_r5 = i0.ɵɵnextContext().$implicit;
|
|
1935
|
+
i0.ɵɵproperty("ngClass", tab_r5.counterClass);
|
|
1936
|
+
i0.ɵɵadvance();
|
|
1937
|
+
i0.ɵɵtextInterpolate1(" ", tab_r5.counter, " ");
|
|
1938
|
+
} }
|
|
1939
|
+
function TableTabsComponent_div_0_ng_container_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
1940
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
1941
|
+
i0.ɵɵelementContainerStart(0);
|
|
1942
|
+
i0.ɵɵelementStart(1, "button", 4);
|
|
1943
|
+
i0.ɵɵlistener("click", function TableTabsComponent_div_0_ng_container_1_ng_container_2_Template_button_click_1_listener() { const j_r2 = i0.ɵɵrestoreView(_r1).index; const i_r3 = i0.ɵɵnextContext().index; const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.onTabSelected(i_r3, j_r2)); });
|
|
1944
|
+
i0.ɵɵtext(2);
|
|
1945
|
+
i0.ɵɵtemplate(3, TableTabsComponent_div_0_ng_container_1_ng_container_2_span_3_Template, 2, 2, "span", 5);
|
|
1946
|
+
i0.ɵɵelementEnd();
|
|
1947
|
+
i0.ɵɵelementContainerEnd();
|
|
1948
|
+
} if (rf & 2) {
|
|
1949
|
+
const tab_r5 = ctx.$implicit;
|
|
1950
|
+
const j_r2 = ctx.index;
|
|
1951
|
+
const i_r3 = i0.ɵɵnextContext().index;
|
|
1952
|
+
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
1953
|
+
i0.ɵɵadvance();
|
|
1954
|
+
i0.ɵɵproperty("ngClass", ctx_r3.isTabSelected(ctx_r3.getRealTabIndex(i_r3, j_r2)) ? "border-b-0 brightness-110" : "");
|
|
1955
|
+
i0.ɵɵadvance();
|
|
1956
|
+
i0.ɵɵtextInterpolate1(" ", tab_r5.label, " ");
|
|
1957
|
+
i0.ɵɵadvance();
|
|
1958
|
+
i0.ɵɵproperty("ngIf", tab_r5.counter !== undefined);
|
|
1959
|
+
} }
|
|
1960
|
+
function TableTabsComponent_div_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
1961
|
+
i0.ɵɵelementContainerStart(0);
|
|
1962
|
+
i0.ɵɵelementStart(1, "div", 3);
|
|
1963
|
+
i0.ɵɵtemplate(2, TableTabsComponent_div_0_ng_container_1_ng_container_2_Template, 4, 3, "ng-container", 2);
|
|
1964
|
+
i0.ɵɵelementEnd();
|
|
1965
|
+
i0.ɵɵelementContainerEnd();
|
|
1966
|
+
} if (rf & 2) {
|
|
1967
|
+
const groupIndex_r6 = ctx.$implicit;
|
|
1968
|
+
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
1969
|
+
i0.ɵɵadvance(2);
|
|
1970
|
+
i0.ɵɵproperty("ngForOf", ctx_r3.getTabGroup(groupIndex_r6));
|
|
1971
|
+
} }
|
|
1972
|
+
function TableTabsComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
1973
|
+
i0.ɵɵelementStart(0, "div", 1);
|
|
1974
|
+
i0.ɵɵtemplate(1, TableTabsComponent_div_0_ng_container_1_Template, 3, 1, "ng-container", 2);
|
|
1975
|
+
i0.ɵɵelementEnd();
|
|
1976
|
+
} if (rf & 2) {
|
|
1977
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
1978
|
+
i0.ɵɵadvance();
|
|
1979
|
+
i0.ɵɵproperty("ngForOf", ctx_r3.getTabGroups());
|
|
1980
|
+
} }
|
|
1924
1981
|
class TableTabsComponent {
|
|
1925
1982
|
constructor() {
|
|
1926
1983
|
this.tabsData = [];
|
|
@@ -1977,20 +2034,36 @@ class TableTabsComponent {
|
|
|
1977
2034
|
isTabSelected(originalIndex) {
|
|
1978
2035
|
return this.selectedTab === originalIndex;
|
|
1979
2036
|
}
|
|
1980
|
-
static { this.ɵfac =
|
|
1981
|
-
static { this.ɵcmp = i0.ɵɵ
|
|
2037
|
+
static { this.ɵfac = function TableTabsComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TableTabsComponent)(); }; }
|
|
2038
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TableTabsComponent, selectors: [["lib-table-tabs"]], inputs: { tabsData: "tabsData", selectedTab: "selectedTab" }, outputs: { tabSelected: "tabSelected" }, standalone: false, decls: 1, vars: 1, consts: [["class", "mx-auto flex flex-col", 4, "ngIf"], [1, "mx-auto", "flex", "flex-col"], [4, "ngFor", "ngForOf"], [1, "mx-auto", "flex", "flex-row"], [1, "border-2", "border-gray-300", "bg-gray-200", "px-4", "py-2", "font-medium", "transition", "hover:brightness-95", 3, "click", "ngClass"], ["class", "ml-2 text-xs font-bold", 3, "ngClass", 4, "ngIf"], [1, "ml-2", "text-xs", "font-bold", 3, "ngClass"]], template: function TableTabsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2039
|
+
i0.ɵɵtemplate(0, TableTabsComponent_div_0_Template, 2, 1, "div", 0);
|
|
2040
|
+
} if (rf & 2) {
|
|
2041
|
+
i0.ɵɵproperty("ngIf", ctx.tabsData && ctx.tabsData.length > 0);
|
|
2042
|
+
} }, dependencies: [i1$1.NgClass, i1$1.NgForOf, i1$1.NgIf], encapsulation: 2, changeDetection: 0 }); }
|
|
1982
2043
|
}
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
2044
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TableTabsComponent, [{
|
|
2045
|
+
type: Component,
|
|
2046
|
+
args: [{ selector: 'lib-table-tabs', standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"mx-auto flex flex-col\" *ngIf=\"tabsData && tabsData.length > 0\">\r\n <ng-container *ngFor=\"let groupIndex of getTabGroups(); let i = index\">\r\n <div class=\"mx-auto flex flex-row\">\r\n <ng-container *ngFor=\"let tab of getTabGroup(groupIndex); let j = index\">\r\n <button\r\n class=\"border-2 border-gray-300 bg-gray-200 px-4 py-2 font-medium transition hover:brightness-95\"\r\n [ngClass]=\"\r\n isTabSelected(getRealTabIndex(i, j))\r\n ? 'border-b-0 brightness-110'\r\n : ''\r\n \"\r\n (click)=\"onTabSelected(i, j)\"\r\n >\r\n {{ tab.label }}\r\n <span\r\n *ngIf=\"tab.counter !== undefined\"\r\n class=\"ml-2 text-xs font-bold\"\r\n [ngClass]=\"tab.counterClass\"\r\n >\r\n {{ tab.counter }}\r\n </span>\r\n </button>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n</div>\r\n\r\n\r\n" }]
|
|
2047
|
+
}], null, { tabsData: [{
|
|
2048
|
+
type: Input
|
|
2049
|
+
}], selectedTab: [{
|
|
2050
|
+
type: Input
|
|
2051
|
+
}], tabSelected: [{
|
|
2052
|
+
type: Output
|
|
2053
|
+
}] }); })();
|
|
2054
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TableTabsComponent, { className: "TableTabsComponent", filePath: "lib/components/table-tabs/table-tabs.component.ts", lineNumber: 16 }); })();
|
|
1993
2055
|
|
|
2056
|
+
function TableTooltipComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
2057
|
+
i0.ɵɵelementStart(0, "div", 1);
|
|
2058
|
+
i0.ɵɵtext(1);
|
|
2059
|
+
i0.ɵɵelementEnd();
|
|
2060
|
+
} if (rf & 2) {
|
|
2061
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
2062
|
+
i0.ɵɵstyleProp("left", ctx_r0.tooltipPosition.x, "px")("top", ctx_r0.tooltipPosition.y, "px")("pointer-events", "none");
|
|
2063
|
+
i0.ɵɵproperty("ngClass", (ctx_r0.tooltipBgColor || "bg-gray-800") + " " + (ctx_r0.tooltipTextColor || "text-white"))("ngStyle", ctx_r0.styles);
|
|
2064
|
+
i0.ɵɵadvance();
|
|
2065
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.tooltipContent, "\n");
|
|
2066
|
+
} }
|
|
1994
2067
|
class TableTooltipComponent {
|
|
1995
2068
|
constructor() {
|
|
1996
2069
|
this.styles = {};
|
|
@@ -2010,18 +2083,829 @@ class TableTooltipComponent {
|
|
|
2010
2083
|
get tooltipTextColor() {
|
|
2011
2084
|
return this.state?.tooltipTextColor ?? 'text-white';
|
|
2012
2085
|
}
|
|
2013
|
-
static { this.ɵfac =
|
|
2014
|
-
static { this.ɵcmp = i0.ɵɵ
|
|
2086
|
+
static { this.ɵfac = function TableTooltipComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TableTooltipComponent)(); }; }
|
|
2087
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TableTooltipComponent, selectors: [["lib-table-tooltip"]], inputs: { state: "state", styles: "styles" }, standalone: false, decls: 1, vars: 1, consts: [["class", "fixed z-50 max-w-md break-words rounded-lg px-3 py-2 text-sm shadow-lg", 3, "ngClass", "ngStyle", "left", "top", "pointer-events", 4, "ngIf"], [1, "fixed", "z-50", "max-w-md", "break-words", "rounded-lg", "px-3", "py-2", "text-sm", "shadow-lg", 3, "ngClass", "ngStyle"]], template: function TableTooltipComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2088
|
+
i0.ɵɵtemplate(0, TableTooltipComponent_div_0_Template, 2, 9, "div", 0);
|
|
2089
|
+
} if (rf & 2) {
|
|
2090
|
+
i0.ɵɵproperty("ngIf", ctx.showTooltip);
|
|
2091
|
+
} }, dependencies: [i1$1.NgClass, i1$1.NgIf, i1$1.NgStyle], encapsulation: 2, changeDetection: 0 }); }
|
|
2015
2092
|
}
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2093
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TableTooltipComponent, [{
|
|
2094
|
+
type: Component,
|
|
2095
|
+
args: [{ selector: 'lib-table-tooltip', standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\r\n *ngIf=\"showTooltip\"\r\n class=\"fixed z-50 max-w-md break-words rounded-lg px-3 py-2 text-sm shadow-lg\"\r\n [ngClass]=\"\r\n (tooltipBgColor || 'bg-gray-800') + ' ' + (tooltipTextColor || 'text-white')\r\n \"\r\n [ngStyle]=\"styles\"\r\n [style.left.px]=\"tooltipPosition.x\"\r\n [style.top.px]=\"tooltipPosition.y\"\r\n [style.pointer-events]=\"'none'\"\r\n>\r\n {{ tooltipContent }}\r\n</div>\r\n" }]
|
|
2096
|
+
}], null, { state: [{
|
|
2097
|
+
type: Input
|
|
2098
|
+
}], styles: [{
|
|
2099
|
+
type: Input
|
|
2100
|
+
}] }); })();
|
|
2101
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TableTooltipComponent, { className: "TableTooltipComponent", filePath: "lib/components/table-tooltip/table-tooltip.component.ts", lineNumber: 10 }); })();
|
|
2024
2102
|
|
|
2103
|
+
const _c0 = () => [25, 50, 100];
|
|
2104
|
+
function TableComponent_div_0_div_2_button_7_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
2105
|
+
i0.ɵɵelement(0, "i");
|
|
2106
|
+
} if (rf & 2) {
|
|
2107
|
+
const ctx_r2 = i0.ɵɵnextContext(4);
|
|
2108
|
+
i0.ɵɵclassMap(ctx_r2.data.actionButton.icon);
|
|
2109
|
+
} }
|
|
2110
|
+
function TableComponent_div_0_div_2_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
2111
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
2112
|
+
i0.ɵɵelementStart(0, "button", 34);
|
|
2113
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_2_button_7_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.data.actionButton.method ? ctx_r2.data.actionButton.method($event) : null); });
|
|
2114
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_div_2_button_7_i_1_Template, 1, 2, "i", 35);
|
|
2115
|
+
i0.ɵɵtext(2);
|
|
2116
|
+
i0.ɵɵelementEnd();
|
|
2117
|
+
} if (rf & 2) {
|
|
2118
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
2119
|
+
i0.ɵɵproperty("ngClass", ctx_r2.getActionButtonClass())("routerLink", ctx_r2.data.actionButton.routerLink);
|
|
2120
|
+
i0.ɵɵadvance();
|
|
2121
|
+
i0.ɵɵproperty("ngIf", ctx_r2.data.actionButton.icon);
|
|
2122
|
+
i0.ɵɵadvance();
|
|
2123
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r2.data.actionButton.label, " ");
|
|
2124
|
+
} }
|
|
2125
|
+
function TableComponent_div_0_div_2_div_8_mat_option_9_Template(rf, ctx) { if (rf & 1) {
|
|
2126
|
+
i0.ɵɵelementStart(0, "mat-option", 43)(1, "div", 25);
|
|
2127
|
+
i0.ɵɵelement(2, "i", 40);
|
|
2128
|
+
i0.ɵɵelementStart(3, "span");
|
|
2129
|
+
i0.ɵɵtext(4);
|
|
2130
|
+
i0.ɵɵelementEnd()()();
|
|
2131
|
+
} if (rf & 2) {
|
|
2132
|
+
const item_r4 = ctx.$implicit;
|
|
2133
|
+
i0.ɵɵproperty("value", item_r4);
|
|
2134
|
+
i0.ɵɵadvance(4);
|
|
2135
|
+
i0.ɵɵtextInterpolate(item_r4.title);
|
|
2136
|
+
} }
|
|
2137
|
+
function TableComponent_div_0_div_2_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
2138
|
+
i0.ɵɵelementStart(0, "div", 36)(1, "div", 37)(2, "div", 38)(3, "mat-form-field", 39)(4, "mat-label", 25);
|
|
2139
|
+
i0.ɵɵelement(5, "i", 40);
|
|
2140
|
+
i0.ɵɵelementStart(6, "span");
|
|
2141
|
+
i0.ɵɵtext(7, "Ordenar por");
|
|
2142
|
+
i0.ɵɵelementEnd()();
|
|
2143
|
+
i0.ɵɵelementStart(8, "mat-select", 41);
|
|
2144
|
+
i0.ɵɵtemplate(9, TableComponent_div_0_div_2_div_8_mat_option_9_Template, 5, 2, "mat-option", 42);
|
|
2145
|
+
i0.ɵɵelementEnd()()()()();
|
|
2146
|
+
} if (rf & 2) {
|
|
2147
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
2148
|
+
i0.ɵɵadvance(8);
|
|
2149
|
+
i0.ɵɵproperty("formControl", ctx_r2.selectSort);
|
|
2150
|
+
i0.ɵɵadvance();
|
|
2151
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.sortableDropdownItems);
|
|
2152
|
+
} }
|
|
2153
|
+
function TableComponent_div_0_div_2_div_9_div_1_div_1_mat_option_5_Template(rf, ctx) { if (rf & 1) {
|
|
2154
|
+
i0.ɵɵelementStart(0, "mat-option", 43)(1, "div", 25);
|
|
2155
|
+
i0.ɵɵelement(2, "i", 51);
|
|
2156
|
+
i0.ɵɵelementStart(3, "span");
|
|
2157
|
+
i0.ɵɵtext(4);
|
|
2158
|
+
i0.ɵɵelementEnd()()();
|
|
2159
|
+
} if (rf & 2) {
|
|
2160
|
+
const item_r6 = ctx.$implicit;
|
|
2161
|
+
i0.ɵɵproperty("value", item_r6);
|
|
2162
|
+
i0.ɵɵadvance(2);
|
|
2163
|
+
i0.ɵɵclassMap(item_r6.icon || "fa fa-filter");
|
|
2164
|
+
i0.ɵɵadvance(2);
|
|
2165
|
+
i0.ɵɵtextInterpolate(item_r6.title);
|
|
2166
|
+
} }
|
|
2167
|
+
function TableComponent_div_0_div_2_div_9_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
2168
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
2169
|
+
i0.ɵɵelementStart(0, "div", 38)(1, "mat-form-field", 39)(2, "mat-label");
|
|
2170
|
+
i0.ɵɵtext(3, "Tipo de filtro");
|
|
2171
|
+
i0.ɵɵelementEnd();
|
|
2172
|
+
i0.ɵɵelementStart(4, "mat-select", 50);
|
|
2173
|
+
i0.ɵɵlistener("selectionChange", function TableComponent_div_0_div_2_div_9_div_1_div_1_Template_mat_select_selectionChange_4_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.onSelectFilterChange()); });
|
|
2174
|
+
i0.ɵɵtemplate(5, TableComponent_div_0_div_2_div_9_div_1_div_1_mat_option_5_Template, 5, 4, "mat-option", 42);
|
|
2175
|
+
i0.ɵɵelementEnd()()();
|
|
2176
|
+
} if (rf & 2) {
|
|
2177
|
+
const ctx_r2 = i0.ɵɵnextContext(5);
|
|
2178
|
+
i0.ɵɵadvance(5);
|
|
2179
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.getAvailableFilterOptions());
|
|
2180
|
+
} }
|
|
2181
|
+
function TableComponent_div_0_div_2_div_9_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
2182
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
2183
|
+
i0.ɵɵelementStart(0, "div", 38)(1, "mat-form-field", 39)(2, "mat-label", 25);
|
|
2184
|
+
i0.ɵɵelement(3, "i", 52);
|
|
2185
|
+
i0.ɵɵelementStart(4, "span");
|
|
2186
|
+
i0.ɵɵtext(5);
|
|
2187
|
+
i0.ɵɵelementEnd()();
|
|
2188
|
+
i0.ɵɵelementStart(6, "input", 53, 2);
|
|
2189
|
+
i0.ɵɵlistener("keyup.enter", function TableComponent_div_0_div_2_div_9_div_1_div_2_Template_input_keyup_enter_6_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.search($event)); });
|
|
2190
|
+
i0.ɵɵelementEnd()()();
|
|
2191
|
+
} if (rf & 2) {
|
|
2192
|
+
let tmp_10_0;
|
|
2193
|
+
const filterGroup_r8 = i0.ɵɵnextContext().$implicit;
|
|
2194
|
+
i0.ɵɵadvance(5);
|
|
2195
|
+
i0.ɵɵtextInterpolate(((tmp_10_0 = filterGroup_r8.get("selectFilter")) == null ? null : tmp_10_0.value == null ? null : tmp_10_0.value.title) || "Filtrar");
|
|
2196
|
+
} }
|
|
2197
|
+
function TableComponent_div_0_div_2_div_9_div_1_div_3_mat_option_5_Template(rf, ctx) { if (rf & 1) {
|
|
2198
|
+
i0.ɵɵelementStart(0, "mat-option", 43);
|
|
2199
|
+
i0.ɵɵtext(1);
|
|
2200
|
+
i0.ɵɵelementEnd();
|
|
2201
|
+
} if (rf & 2) {
|
|
2202
|
+
const item_r9 = ctx.$implicit;
|
|
2203
|
+
i0.ɵɵproperty("value", item_r9);
|
|
2204
|
+
i0.ɵɵadvance();
|
|
2205
|
+
i0.ɵɵtextInterpolate1(" ", item_r9.label, " ");
|
|
2206
|
+
} }
|
|
2207
|
+
function TableComponent_div_0_div_2_div_9_div_1_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
2208
|
+
i0.ɵɵelementStart(0, "div", 38)(1, "mat-form-field", 39)(2, "mat-label");
|
|
2209
|
+
i0.ɵɵtext(3);
|
|
2210
|
+
i0.ɵɵelementEnd();
|
|
2211
|
+
i0.ɵɵelementStart(4, "mat-select", 54);
|
|
2212
|
+
i0.ɵɵtemplate(5, TableComponent_div_0_div_2_div_9_div_1_div_3_mat_option_5_Template, 2, 2, "mat-option", 42);
|
|
2213
|
+
i0.ɵɵelementEnd()()();
|
|
2214
|
+
} if (rf & 2) {
|
|
2215
|
+
let tmp_9_0;
|
|
2216
|
+
let tmp_10_0;
|
|
2217
|
+
const filterGroup_r8 = i0.ɵɵnextContext().$implicit;
|
|
2218
|
+
i0.ɵɵadvance(3);
|
|
2219
|
+
i0.ɵɵtextInterpolate(((tmp_9_0 = filterGroup_r8.get("selectFilter")) == null ? null : tmp_9_0.value == null ? null : tmp_9_0.value.title) || "Selecione");
|
|
2220
|
+
i0.ɵɵadvance(2);
|
|
2221
|
+
i0.ɵɵproperty("ngForOf", (tmp_10_0 = filterGroup_r8.get("selectFilter")) == null ? null : tmp_10_0.value.items);
|
|
2222
|
+
} }
|
|
2223
|
+
function TableComponent_div_0_div_2_div_9_div_1_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
2224
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
2225
|
+
i0.ɵɵelementStart(0, "div", 55)(1, "div", 56)(2, "mat-form-field", 57)(3, "mat-label", 25);
|
|
2226
|
+
i0.ɵɵelement(4, "i", 58);
|
|
2227
|
+
i0.ɵɵelementStart(5, "span");
|
|
2228
|
+
i0.ɵɵtext(6, "Data Inicial");
|
|
2229
|
+
i0.ɵɵelementEnd()();
|
|
2230
|
+
i0.ɵɵelementStart(7, "input", 59);
|
|
2231
|
+
i0.ɵɵlistener("keydown.enter", function TableComponent_div_0_div_2_div_9_div_1_div_4_Template_input_keydown_enter_7_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.search($event)); })("input", function TableComponent_div_0_div_2_div_9_div_1_div_4_Template_input_input_7_listener($event) { i0.ɵɵrestoreView(_r10); const i_r11 = i0.ɵɵnextContext().index; const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.onDateInput($event, "initialDate", i_r11)); });
|
|
2232
|
+
i0.ɵɵelementEnd()();
|
|
2233
|
+
i0.ɵɵelementStart(8, "mat-form-field", 57)(9, "mat-label", 25);
|
|
2234
|
+
i0.ɵɵelement(10, "i", 58);
|
|
2235
|
+
i0.ɵɵelementStart(11, "span");
|
|
2236
|
+
i0.ɵɵtext(12, "Data Final");
|
|
2237
|
+
i0.ɵɵelementEnd()();
|
|
2238
|
+
i0.ɵɵelementStart(13, "input", 60);
|
|
2239
|
+
i0.ɵɵlistener("keydown.enter", function TableComponent_div_0_div_2_div_9_div_1_div_4_Template_input_keydown_enter_13_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.search($event)); })("input", function TableComponent_div_0_div_2_div_9_div_1_div_4_Template_input_input_13_listener($event) { i0.ɵɵrestoreView(_r10); const i_r11 = i0.ɵɵnextContext().index; const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.onDateInput($event, "finalDate", i_r11)); });
|
|
2240
|
+
i0.ɵɵelementEnd()()()();
|
|
2241
|
+
} }
|
|
2242
|
+
function TableComponent_div_0_div_2_div_9_div_1_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
2243
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
2244
|
+
i0.ɵɵelementStart(0, "div", 61)(1, "button", 62);
|
|
2245
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_2_div_9_div_1_div_5_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r12); const i_r11 = i0.ɵɵnextContext().index; const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.removeFilter(i_r11)); });
|
|
2246
|
+
i0.ɵɵelement(2, "i", 63);
|
|
2247
|
+
i0.ɵɵelementEnd()();
|
|
2248
|
+
} }
|
|
2249
|
+
function TableComponent_div_0_div_2_div_9_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
2250
|
+
i0.ɵɵelementStart(0, "div", 46);
|
|
2251
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_div_2_div_9_div_1_div_1_Template, 6, 1, "div", 47)(2, TableComponent_div_0_div_2_div_9_div_1_div_2_Template, 8, 1, "div", 47)(3, TableComponent_div_0_div_2_div_9_div_1_div_3_Template, 6, 2, "div", 47)(4, TableComponent_div_0_div_2_div_9_div_1_div_4_Template, 14, 0, "div", 48)(5, TableComponent_div_0_div_2_div_9_div_1_div_5_Template, 3, 0, "div", 49);
|
|
2252
|
+
i0.ɵɵelementEnd();
|
|
2253
|
+
} if (rf & 2) {
|
|
2254
|
+
let tmp_10_0;
|
|
2255
|
+
let tmp_11_0;
|
|
2256
|
+
let tmp_12_0;
|
|
2257
|
+
const filterGroup_r8 = ctx.$implicit;
|
|
2258
|
+
const ctx_r2 = i0.ɵɵnextContext(4);
|
|
2259
|
+
i0.ɵɵproperty("formGroup", filterGroup_r8);
|
|
2260
|
+
i0.ɵɵadvance();
|
|
2261
|
+
i0.ɵɵproperty("ngIf", ctx_r2.dropdownItems.length > 0);
|
|
2262
|
+
i0.ɵɵadvance();
|
|
2263
|
+
i0.ɵɵproperty("ngIf", ((tmp_10_0 = filterGroup_r8.get("selectFilter")) == null ? null : tmp_10_0.value == null ? null : tmp_10_0.value.arrange) === "filter");
|
|
2264
|
+
i0.ɵɵadvance();
|
|
2265
|
+
i0.ɵɵproperty("ngIf", ((tmp_11_0 = filterGroup_r8.get("selectFilter")) == null ? null : tmp_11_0.value) && ((tmp_11_0 = filterGroup_r8.get("selectFilter")) == null ? null : tmp_11_0.value.hasOwnProperty("items")));
|
|
2266
|
+
i0.ɵɵadvance();
|
|
2267
|
+
i0.ɵɵproperty("ngIf", ((tmp_12_0 = filterGroup_r8.get("selectFilter")) == null ? null : tmp_12_0.value == null ? null : tmp_12_0.value.arrange) === "filterByDate");
|
|
2268
|
+
i0.ɵɵadvance();
|
|
2269
|
+
i0.ɵɵproperty("ngIf", ctx_r2.filtersForm.length > 1);
|
|
2270
|
+
} }
|
|
2271
|
+
function TableComponent_div_0_div_2_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
2272
|
+
i0.ɵɵelementStart(0, "div", 44);
|
|
2273
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_div_2_div_9_div_1_Template, 6, 6, "div", 45);
|
|
2274
|
+
i0.ɵɵelementEnd();
|
|
2275
|
+
} if (rf & 2) {
|
|
2276
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
2277
|
+
i0.ɵɵadvance();
|
|
2278
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.filtersForm.controls);
|
|
2279
|
+
} }
|
|
2280
|
+
function TableComponent_div_0_div_2_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
2281
|
+
const _r13 = i0.ɵɵgetCurrentView();
|
|
2282
|
+
i0.ɵɵelementStart(0, "div")(1, "button", 64);
|
|
2283
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_2_div_11_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r13); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.addFilter()); });
|
|
2284
|
+
i0.ɵɵelement(2, "i", 65);
|
|
2285
|
+
i0.ɵɵtext(3, " Adicionar Filtro ");
|
|
2286
|
+
i0.ɵɵelementEnd()();
|
|
2287
|
+
} }
|
|
2288
|
+
function TableComponent_div_0_div_2_div_12_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
2289
|
+
const _r15 = i0.ɵɵgetCurrentView();
|
|
2290
|
+
i0.ɵɵelementStart(0, "button", 72);
|
|
2291
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_2_div_12_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r15); const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.arrange && ctx_r2.downloadTable !== undefined ? ctx_r2.downloadTable(ctx_r2.arrange, ctx_r2.data.conditions || []) : null); });
|
|
2292
|
+
i0.ɵɵelement(1, "i", 73);
|
|
2293
|
+
i0.ɵɵtext(2, " Exportar ");
|
|
2294
|
+
i0.ɵɵelementEnd();
|
|
2295
|
+
} if (rf & 2) {
|
|
2296
|
+
const ctx_r2 = i0.ɵɵnextContext(4);
|
|
2297
|
+
i0.ɵɵproperty("disabled", ctx_r2.dataSource && ctx_r2.dataSource.filteredData.length <= 0);
|
|
2298
|
+
} }
|
|
2299
|
+
function TableComponent_div_0_div_2_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
2300
|
+
const _r14 = i0.ɵɵgetCurrentView();
|
|
2301
|
+
i0.ɵɵelementStart(0, "div", 66)(1, "button", 67);
|
|
2302
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_2_div_12_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r14); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.search()); });
|
|
2303
|
+
i0.ɵɵelement(2, "i", 68);
|
|
2304
|
+
i0.ɵɵtext(3, " Pesquisar ");
|
|
2305
|
+
i0.ɵɵelementEnd();
|
|
2306
|
+
i0.ɵɵelementStart(4, "button", 69);
|
|
2307
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_2_div_12_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r14); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.resetFilter()); });
|
|
2308
|
+
i0.ɵɵelement(5, "i", 70);
|
|
2309
|
+
i0.ɵɵtext(6, " Resetar ");
|
|
2310
|
+
i0.ɵɵelementEnd();
|
|
2311
|
+
i0.ɵɵtemplate(7, TableComponent_div_0_div_2_div_12_button_7_Template, 3, 1, "button", 71);
|
|
2312
|
+
i0.ɵɵelementEnd();
|
|
2313
|
+
} if (rf & 2) {
|
|
2314
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
2315
|
+
i0.ɵɵadvance(7);
|
|
2316
|
+
i0.ɵɵproperty("ngIf", ctx_r2.data.download !== false && ctx_r2.downloadTable);
|
|
2317
|
+
} }
|
|
2318
|
+
function TableComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
2319
|
+
i0.ɵɵelementStart(0, "div", 22)(1, "div", 23)(2, "div", 24)(3, "div", 25);
|
|
2320
|
+
i0.ɵɵelement(4, "i", 26);
|
|
2321
|
+
i0.ɵɵelementStart(5, "span", 27);
|
|
2322
|
+
i0.ɵɵtext(6, "Filtros e A\u00E7\u00F5es");
|
|
2323
|
+
i0.ɵɵelementEnd()();
|
|
2324
|
+
i0.ɵɵtemplate(7, TableComponent_div_0_div_2_button_7_Template, 3, 4, "button", 28);
|
|
2325
|
+
i0.ɵɵelementEnd()();
|
|
2326
|
+
i0.ɵɵtemplate(8, TableComponent_div_0_div_2_div_8_Template, 10, 2, "div", 29)(9, TableComponent_div_0_div_2_div_9_Template, 2, 1, "div", 30);
|
|
2327
|
+
i0.ɵɵelementStart(10, "div", 31);
|
|
2328
|
+
i0.ɵɵtemplate(11, TableComponent_div_0_div_2_div_11_Template, 4, 0, "div", 32)(12, TableComponent_div_0_div_2_div_12_Template, 8, 1, "div", 33);
|
|
2329
|
+
i0.ɵɵelementEnd()();
|
|
2330
|
+
} if (rf & 2) {
|
|
2331
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
2332
|
+
i0.ɵɵadvance(7);
|
|
2333
|
+
i0.ɵɵproperty("ngIf", ctx_r2.data.actionButton && ctx_r2.data.actionButton.condition);
|
|
2334
|
+
i0.ɵɵadvance();
|
|
2335
|
+
i0.ɵɵproperty("ngIf", ctx_r2.sortableDropdownItems.length > 0);
|
|
2336
|
+
i0.ɵɵadvance();
|
|
2337
|
+
i0.ɵɵproperty("ngIf", ctx_r2.filtersForm.controls.length > 0);
|
|
2338
|
+
i0.ɵɵadvance(2);
|
|
2339
|
+
i0.ɵɵproperty("ngIf", ctx_r2.dropdownItems.length > 0);
|
|
2340
|
+
i0.ɵɵadvance();
|
|
2341
|
+
i0.ɵɵproperty("ngIf", ctx_r2.hasFilterableColumn === true || ctx_r2.hasSortableColumn === true);
|
|
2342
|
+
} }
|
|
2343
|
+
function TableComponent_div_0_div_3_button_7_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
2344
|
+
i0.ɵɵelement(0, "i");
|
|
2345
|
+
} if (rf & 2) {
|
|
2346
|
+
const ctx_r2 = i0.ɵɵnextContext(4);
|
|
2347
|
+
i0.ɵɵclassMap(ctx_r2.data.actionButton.icon);
|
|
2348
|
+
} }
|
|
2349
|
+
function TableComponent_div_0_div_3_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
2350
|
+
const _r16 = i0.ɵɵgetCurrentView();
|
|
2351
|
+
i0.ɵɵelementStart(0, "button", 34);
|
|
2352
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_3_button_7_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r16); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.data.actionButton.method ? ctx_r2.data.actionButton.method($event) : null); });
|
|
2353
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_div_3_button_7_i_1_Template, 1, 2, "i", 35);
|
|
2354
|
+
i0.ɵɵtext(2);
|
|
2355
|
+
i0.ɵɵelementEnd();
|
|
2356
|
+
} if (rf & 2) {
|
|
2357
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
2358
|
+
i0.ɵɵproperty("ngClass", ctx_r2.getActionButtonClass())("routerLink", ctx_r2.data.actionButton.routerLink);
|
|
2359
|
+
i0.ɵɵadvance();
|
|
2360
|
+
i0.ɵɵproperty("ngIf", ctx_r2.data.actionButton.icon);
|
|
2361
|
+
i0.ɵɵadvance();
|
|
2362
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r2.data.actionButton.label, " ");
|
|
2363
|
+
} }
|
|
2364
|
+
function TableComponent_div_0_div_3_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
2365
|
+
const _r17 = i0.ɵɵgetCurrentView();
|
|
2366
|
+
i0.ɵɵelementStart(0, "div", 36)(1, "mat-form-field", 39)(2, "mat-label", 25);
|
|
2367
|
+
i0.ɵɵelement(3, "i", 74);
|
|
2368
|
+
i0.ɵɵtext(4, " Buscar ");
|
|
2369
|
+
i0.ɵɵelementEnd();
|
|
2370
|
+
i0.ɵɵelementStart(5, "input", 75, 3);
|
|
2371
|
+
i0.ɵɵlistener("keyup.enter", function TableComponent_div_0_div_3_div_8_Template_input_keyup_enter_5_listener($event) { i0.ɵɵrestoreView(_r17); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.search($event)); })("keyup", function TableComponent_div_0_div_3_div_8_Template_input_keyup_5_listener() { i0.ɵɵrestoreView(_r17); const filterInput_r18 = i0.ɵɵreference(6); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.applyFilter(filterInput_r18.value)); });
|
|
2372
|
+
i0.ɵɵelementEnd();
|
|
2373
|
+
i0.ɵɵelementStart(7, "mat-icon", 76);
|
|
2374
|
+
i0.ɵɵtext(8, "search");
|
|
2375
|
+
i0.ɵɵelementEnd()()();
|
|
2376
|
+
} }
|
|
2377
|
+
function TableComponent_div_0_div_3_div_9_div_1_div_1_div_1_mat_option_5_Template(rf, ctx) { if (rf & 1) {
|
|
2378
|
+
i0.ɵɵelementStart(0, "mat-option", 43)(1, "div", 25);
|
|
2379
|
+
i0.ɵɵelement(2, "i", 51);
|
|
2380
|
+
i0.ɵɵelementStart(3, "span");
|
|
2381
|
+
i0.ɵɵtext(4);
|
|
2382
|
+
i0.ɵɵelementEnd()()();
|
|
2383
|
+
} if (rf & 2) {
|
|
2384
|
+
const item_r20 = ctx.$implicit;
|
|
2385
|
+
i0.ɵɵproperty("value", item_r20);
|
|
2386
|
+
i0.ɵɵadvance(2);
|
|
2387
|
+
i0.ɵɵclassMap(item_r20.icon || "fa fa-filter");
|
|
2388
|
+
i0.ɵɵadvance(2);
|
|
2389
|
+
i0.ɵɵtextInterpolate(item_r20.title);
|
|
2390
|
+
} }
|
|
2391
|
+
function TableComponent_div_0_div_3_div_9_div_1_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
2392
|
+
const _r19 = i0.ɵɵgetCurrentView();
|
|
2393
|
+
i0.ɵɵelementStart(0, "div", 38)(1, "mat-form-field", 39)(2, "mat-label");
|
|
2394
|
+
i0.ɵɵtext(3, "Tipo de filtro");
|
|
2395
|
+
i0.ɵɵelementEnd();
|
|
2396
|
+
i0.ɵɵelementStart(4, "mat-select", 50);
|
|
2397
|
+
i0.ɵɵlistener("selectionChange", function TableComponent_div_0_div_3_div_9_div_1_div_1_div_1_Template_mat_select_selectionChange_4_listener() { i0.ɵɵrestoreView(_r19); const ctx_r2 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r2.onSelectFilterChange()); });
|
|
2398
|
+
i0.ɵɵtemplate(5, TableComponent_div_0_div_3_div_9_div_1_div_1_div_1_mat_option_5_Template, 5, 4, "mat-option", 42);
|
|
2399
|
+
i0.ɵɵelementEnd()()();
|
|
2400
|
+
} if (rf & 2) {
|
|
2401
|
+
const ctx_r2 = i0.ɵɵnextContext(6);
|
|
2402
|
+
i0.ɵɵadvance(5);
|
|
2403
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.getAvailableFilterOptions());
|
|
2404
|
+
} }
|
|
2405
|
+
function TableComponent_div_0_div_3_div_9_div_1_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
2406
|
+
const _r21 = i0.ɵɵgetCurrentView();
|
|
2407
|
+
i0.ɵɵelementStart(0, "div", 38)(1, "mat-form-field", 39)(2, "mat-label", 25);
|
|
2408
|
+
i0.ɵɵelement(3, "i", 52);
|
|
2409
|
+
i0.ɵɵelementStart(4, "span");
|
|
2410
|
+
i0.ɵɵtext(5);
|
|
2411
|
+
i0.ɵɵelementEnd()();
|
|
2412
|
+
i0.ɵɵelementStart(6, "input", 53, 2);
|
|
2413
|
+
i0.ɵɵlistener("keyup.enter", function TableComponent_div_0_div_3_div_9_div_1_div_1_div_2_Template_input_keyup_enter_6_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r2 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r2.search($event)); });
|
|
2414
|
+
i0.ɵɵelementEnd()()();
|
|
2415
|
+
} if (rf & 2) {
|
|
2416
|
+
let tmp_11_0;
|
|
2417
|
+
const filterGroup_r22 = i0.ɵɵnextContext().$implicit;
|
|
2418
|
+
i0.ɵɵadvance(5);
|
|
2419
|
+
i0.ɵɵtextInterpolate(((tmp_11_0 = filterGroup_r22.get("selectFilter")) == null ? null : tmp_11_0.value == null ? null : tmp_11_0.value.title) || "Filtrar");
|
|
2420
|
+
} }
|
|
2421
|
+
function TableComponent_div_0_div_3_div_9_div_1_div_1_div_3_mat_option_5_Template(rf, ctx) { if (rf & 1) {
|
|
2422
|
+
i0.ɵɵelementStart(0, "mat-option", 43);
|
|
2423
|
+
i0.ɵɵtext(1);
|
|
2424
|
+
i0.ɵɵelementEnd();
|
|
2425
|
+
} if (rf & 2) {
|
|
2426
|
+
const item_r23 = ctx.$implicit;
|
|
2427
|
+
i0.ɵɵproperty("value", item_r23);
|
|
2428
|
+
i0.ɵɵadvance();
|
|
2429
|
+
i0.ɵɵtextInterpolate1(" ", item_r23.label, " ");
|
|
2430
|
+
} }
|
|
2431
|
+
function TableComponent_div_0_div_3_div_9_div_1_div_1_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
2432
|
+
i0.ɵɵelementStart(0, "div", 38)(1, "mat-form-field", 39)(2, "mat-label");
|
|
2433
|
+
i0.ɵɵtext(3);
|
|
2434
|
+
i0.ɵɵelementEnd();
|
|
2435
|
+
i0.ɵɵelementStart(4, "mat-select", 54);
|
|
2436
|
+
i0.ɵɵtemplate(5, TableComponent_div_0_div_3_div_9_div_1_div_1_div_3_mat_option_5_Template, 2, 2, "mat-option", 42);
|
|
2437
|
+
i0.ɵɵelementEnd()()();
|
|
2438
|
+
} if (rf & 2) {
|
|
2439
|
+
let tmp_10_0;
|
|
2440
|
+
let tmp_11_0;
|
|
2441
|
+
const filterGroup_r22 = i0.ɵɵnextContext().$implicit;
|
|
2442
|
+
i0.ɵɵadvance(3);
|
|
2443
|
+
i0.ɵɵtextInterpolate(((tmp_10_0 = filterGroup_r22.get("selectFilter")) == null ? null : tmp_10_0.value == null ? null : tmp_10_0.value.title) || "Selecione");
|
|
2444
|
+
i0.ɵɵadvance(2);
|
|
2445
|
+
i0.ɵɵproperty("ngForOf", (tmp_11_0 = filterGroup_r22.get("selectFilter")) == null ? null : tmp_11_0.value.items);
|
|
2446
|
+
} }
|
|
2447
|
+
function TableComponent_div_0_div_3_div_9_div_1_div_1_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
2448
|
+
const _r24 = i0.ɵɵgetCurrentView();
|
|
2449
|
+
i0.ɵɵelementStart(0, "div", 55)(1, "div", 56)(2, "mat-form-field", 57)(3, "mat-label", 25);
|
|
2450
|
+
i0.ɵɵelement(4, "i", 58);
|
|
2451
|
+
i0.ɵɵelementStart(5, "span");
|
|
2452
|
+
i0.ɵɵtext(6, "Data Inicial");
|
|
2453
|
+
i0.ɵɵelementEnd()();
|
|
2454
|
+
i0.ɵɵelementStart(7, "input", 79);
|
|
2455
|
+
i0.ɵɵlistener("keydown.enter", function TableComponent_div_0_div_3_div_9_div_1_div_1_div_4_Template_input_keydown_enter_7_listener($event) { i0.ɵɵrestoreView(_r24); const ctx_r2 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r2.search($event)); })("input", function TableComponent_div_0_div_3_div_9_div_1_div_1_div_4_Template_input_input_7_listener($event) { i0.ɵɵrestoreView(_r24); const i_r25 = i0.ɵɵnextContext().index; const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.onDateInput($event, "initialDate", i_r25)); })("blur", function TableComponent_div_0_div_3_div_9_div_1_div_1_div_4_Template_input_blur_7_listener() { i0.ɵɵrestoreView(_r24); const ctx_r2 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r2.onDateFilterChange()); });
|
|
2456
|
+
i0.ɵɵelementEnd()();
|
|
2457
|
+
i0.ɵɵelementStart(8, "mat-form-field", 57)(9, "mat-label", 25);
|
|
2458
|
+
i0.ɵɵelement(10, "i", 58);
|
|
2459
|
+
i0.ɵɵelementStart(11, "span");
|
|
2460
|
+
i0.ɵɵtext(12, "Data Final");
|
|
2461
|
+
i0.ɵɵelementEnd()();
|
|
2462
|
+
i0.ɵɵelementStart(13, "input", 80);
|
|
2463
|
+
i0.ɵɵlistener("keydown.enter", function TableComponent_div_0_div_3_div_9_div_1_div_1_div_4_Template_input_keydown_enter_13_listener($event) { i0.ɵɵrestoreView(_r24); const ctx_r2 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r2.search($event)); })("input", function TableComponent_div_0_div_3_div_9_div_1_div_1_div_4_Template_input_input_13_listener($event) { i0.ɵɵrestoreView(_r24); const i_r25 = i0.ɵɵnextContext().index; const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.onDateInput($event, "finalDate", i_r25)); })("blur", function TableComponent_div_0_div_3_div_9_div_1_div_1_div_4_Template_input_blur_13_listener() { i0.ɵɵrestoreView(_r24); const ctx_r2 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r2.onDateFilterChange()); });
|
|
2464
|
+
i0.ɵɵelementEnd()()()();
|
|
2465
|
+
} }
|
|
2466
|
+
function TableComponent_div_0_div_3_div_9_div_1_div_1_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
2467
|
+
const _r26 = i0.ɵɵgetCurrentView();
|
|
2468
|
+
i0.ɵɵelementStart(0, "div", 61)(1, "button", 62);
|
|
2469
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_3_div_9_div_1_div_1_div_5_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r26); const i_r25 = i0.ɵɵnextContext().index; const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.removeFilter(i_r25)); });
|
|
2470
|
+
i0.ɵɵelement(2, "i", 63);
|
|
2471
|
+
i0.ɵɵelementEnd()();
|
|
2472
|
+
} }
|
|
2473
|
+
function TableComponent_div_0_div_3_div_9_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
2474
|
+
i0.ɵɵelementStart(0, "div", 78);
|
|
2475
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_div_3_div_9_div_1_div_1_div_1_Template, 6, 1, "div", 47)(2, TableComponent_div_0_div_3_div_9_div_1_div_1_div_2_Template, 8, 1, "div", 47)(3, TableComponent_div_0_div_3_div_9_div_1_div_1_div_3_Template, 6, 2, "div", 47)(4, TableComponent_div_0_div_3_div_9_div_1_div_1_div_4_Template, 14, 0, "div", 48)(5, TableComponent_div_0_div_3_div_9_div_1_div_1_div_5_Template, 3, 0, "div", 49);
|
|
2476
|
+
i0.ɵɵelementEnd();
|
|
2477
|
+
} if (rf & 2) {
|
|
2478
|
+
let tmp_11_0;
|
|
2479
|
+
let tmp_12_0;
|
|
2480
|
+
let tmp_13_0;
|
|
2481
|
+
const filterGroup_r22 = ctx.$implicit;
|
|
2482
|
+
const ctx_r2 = i0.ɵɵnextContext(5);
|
|
2483
|
+
i0.ɵɵproperty("formGroup", filterGroup_r22);
|
|
2484
|
+
i0.ɵɵadvance();
|
|
2485
|
+
i0.ɵɵproperty("ngIf", ctx_r2.dropdownItems.length > 0);
|
|
2486
|
+
i0.ɵɵadvance();
|
|
2487
|
+
i0.ɵɵproperty("ngIf", ((tmp_11_0 = filterGroup_r22.get("selectFilter")) == null ? null : tmp_11_0.value == null ? null : tmp_11_0.value.arrange) === "filter");
|
|
2488
|
+
i0.ɵɵadvance();
|
|
2489
|
+
i0.ɵɵproperty("ngIf", ((tmp_12_0 = filterGroup_r22.get("selectFilter")) == null ? null : tmp_12_0.value) && ((tmp_12_0 = filterGroup_r22.get("selectFilter")) == null ? null : tmp_12_0.value.hasOwnProperty("items")));
|
|
2490
|
+
i0.ɵɵadvance();
|
|
2491
|
+
i0.ɵɵproperty("ngIf", ((tmp_13_0 = filterGroup_r22.get("selectFilter")) == null ? null : tmp_13_0.value == null ? null : tmp_13_0.value.arrange) === "filterByDate");
|
|
2492
|
+
i0.ɵɵadvance();
|
|
2493
|
+
i0.ɵɵproperty("ngIf", ctx_r2.filtersForm.length > 1);
|
|
2494
|
+
} }
|
|
2495
|
+
function TableComponent_div_0_div_3_div_9_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
2496
|
+
i0.ɵɵelementStart(0, "div", 44);
|
|
2497
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_div_3_div_9_div_1_div_1_Template, 6, 6, "div", 77);
|
|
2498
|
+
i0.ɵɵelementEnd();
|
|
2499
|
+
} if (rf & 2) {
|
|
2500
|
+
const ctx_r2 = i0.ɵɵnextContext(4);
|
|
2501
|
+
i0.ɵɵadvance();
|
|
2502
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.filtersForm.controls);
|
|
2503
|
+
} }
|
|
2504
|
+
function TableComponent_div_0_div_3_div_9_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
2505
|
+
const _r27 = i0.ɵɵgetCurrentView();
|
|
2506
|
+
i0.ɵɵelementStart(0, "div")(1, "button", 64);
|
|
2507
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_3_div_9_div_3_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r27); const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.addFilter()); });
|
|
2508
|
+
i0.ɵɵelement(2, "i", 65);
|
|
2509
|
+
i0.ɵɵtext(3, " Adicionar Filtro ");
|
|
2510
|
+
i0.ɵɵelementEnd()();
|
|
2511
|
+
} }
|
|
2512
|
+
function TableComponent_div_0_div_3_div_9_div_4_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
2513
|
+
const _r29 = i0.ɵɵgetCurrentView();
|
|
2514
|
+
i0.ɵɵelementStart(0, "button", 72);
|
|
2515
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_3_div_9_div_4_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r29); const ctx_r2 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r2.handleDownload()); });
|
|
2516
|
+
i0.ɵɵelement(1, "i", 73);
|
|
2517
|
+
i0.ɵɵtext(2, " Exportar ");
|
|
2518
|
+
i0.ɵɵelementEnd();
|
|
2519
|
+
} if (rf & 2) {
|
|
2520
|
+
const ctx_r2 = i0.ɵɵnextContext(5);
|
|
2521
|
+
i0.ɵɵproperty("disabled", ctx_r2.dataSource && ctx_r2.dataSource.filteredData.length <= 0);
|
|
2522
|
+
} }
|
|
2523
|
+
function TableComponent_div_0_div_3_div_9_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
2524
|
+
const _r28 = i0.ɵɵgetCurrentView();
|
|
2525
|
+
i0.ɵɵelementStart(0, "div", 66)(1, "button", 67);
|
|
2526
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_3_div_9_div_4_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r28); const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.search()); });
|
|
2527
|
+
i0.ɵɵelement(2, "i", 68);
|
|
2528
|
+
i0.ɵɵtext(3, " Pesquisar ");
|
|
2529
|
+
i0.ɵɵelementEnd();
|
|
2530
|
+
i0.ɵɵelementStart(4, "button", 69);
|
|
2531
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_3_div_9_div_4_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r28); const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.resetFilter()); });
|
|
2532
|
+
i0.ɵɵelement(5, "i", 70);
|
|
2533
|
+
i0.ɵɵtext(6, " Resetar ");
|
|
2534
|
+
i0.ɵɵelementEnd();
|
|
2535
|
+
i0.ɵɵtemplate(7, TableComponent_div_0_div_3_div_9_div_4_button_7_Template, 3, 1, "button", 71);
|
|
2536
|
+
i0.ɵɵelementEnd();
|
|
2537
|
+
} if (rf & 2) {
|
|
2538
|
+
const ctx_r2 = i0.ɵɵnextContext(4);
|
|
2539
|
+
i0.ɵɵadvance(7);
|
|
2540
|
+
i0.ɵɵproperty("ngIf", ctx_r2.data.download !== false && ctx_r2.downloadTable);
|
|
2541
|
+
} }
|
|
2542
|
+
function TableComponent_div_0_div_3_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
2543
|
+
i0.ɵɵelementStart(0, "div");
|
|
2544
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_div_3_div_9_div_1_Template, 2, 1, "div", 30);
|
|
2545
|
+
i0.ɵɵelementStart(2, "div", 31);
|
|
2546
|
+
i0.ɵɵtemplate(3, TableComponent_div_0_div_3_div_9_div_3_Template, 4, 0, "div", 32)(4, TableComponent_div_0_div_3_div_9_div_4_Template, 8, 1, "div", 33);
|
|
2547
|
+
i0.ɵɵelementEnd()();
|
|
2548
|
+
} if (rf & 2) {
|
|
2549
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
2550
|
+
i0.ɵɵadvance();
|
|
2551
|
+
i0.ɵɵproperty("ngIf", ctx_r2.filtersForm.controls.length > 0);
|
|
2552
|
+
i0.ɵɵadvance(2);
|
|
2553
|
+
i0.ɵɵproperty("ngIf", ctx_r2.dropdownItems.length > 0);
|
|
2554
|
+
i0.ɵɵadvance();
|
|
2555
|
+
i0.ɵɵproperty("ngIf", ctx_r2.hasFilterableColumn === true || ctx_r2.hasSortableColumn === true);
|
|
2556
|
+
} }
|
|
2557
|
+
function TableComponent_div_0_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
2558
|
+
i0.ɵɵelementStart(0, "div", 22)(1, "div", 23)(2, "div", 24)(3, "div", 25);
|
|
2559
|
+
i0.ɵɵelement(4, "i", 26);
|
|
2560
|
+
i0.ɵɵelementStart(5, "span", 27);
|
|
2561
|
+
i0.ɵɵtext(6, "Filtros e A\u00E7\u00F5es");
|
|
2562
|
+
i0.ɵɵelementEnd()();
|
|
2563
|
+
i0.ɵɵtemplate(7, TableComponent_div_0_div_3_button_7_Template, 3, 4, "button", 28);
|
|
2564
|
+
i0.ɵɵelementEnd()();
|
|
2565
|
+
i0.ɵɵtemplate(8, TableComponent_div_0_div_3_div_8_Template, 9, 0, "div", 29)(9, TableComponent_div_0_div_3_div_9_Template, 5, 3, "div", 32);
|
|
2566
|
+
i0.ɵɵelementEnd();
|
|
2567
|
+
} if (rf & 2) {
|
|
2568
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
2569
|
+
i0.ɵɵadvance(7);
|
|
2570
|
+
i0.ɵɵproperty("ngIf", ctx_r2.data.actionButton && ctx_r2.data.actionButton.condition);
|
|
2571
|
+
i0.ɵɵadvance();
|
|
2572
|
+
i0.ɵɵproperty("ngIf", ctx_r2.hasFilterableColumn === true && ctx_r2.data.showSimpleSearch !== false);
|
|
2573
|
+
i0.ɵɵadvance();
|
|
2574
|
+
i0.ɵɵproperty("ngIf", ctx_r2.dropdownItems.length > 0);
|
|
2575
|
+
} }
|
|
2576
|
+
function TableComponent_div_0_lib_table_tabs_5_Template(rf, ctx) { if (rf & 1) {
|
|
2577
|
+
const _r30 = i0.ɵɵgetCurrentView();
|
|
2578
|
+
i0.ɵɵelementStart(0, "lib-table-tabs", 81);
|
|
2579
|
+
i0.ɵɵlistener("tabSelected", function TableComponent_div_0_lib_table_tabs_5_Template_lib_table_tabs_tabSelected_0_listener($event) { i0.ɵɵrestoreView(_r30); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onTabSelected($event)); });
|
|
2580
|
+
i0.ɵɵelementEnd();
|
|
2581
|
+
} if (rf & 2) {
|
|
2582
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
2583
|
+
i0.ɵɵproperty("tabsData", ctx_r2.data.tabs.tabsData)("selectedTab", ctx_r2.selectedTab);
|
|
2584
|
+
} }
|
|
2585
|
+
function TableComponent_div_0_ng_container_9_ng_container_1_th_1_Template(rf, ctx) { if (rf & 1) {
|
|
2586
|
+
i0.ɵɵelementStart(0, "th", 87);
|
|
2587
|
+
i0.ɵɵtext(1);
|
|
2588
|
+
i0.ɵɵelementEnd();
|
|
2589
|
+
} if (rf & 2) {
|
|
2590
|
+
const col_r31 = i0.ɵɵnextContext(2).$implicit;
|
|
2591
|
+
i0.ɵɵadvance();
|
|
2592
|
+
i0.ɵɵtextInterpolate1(" ", col_r31.title, " ");
|
|
2593
|
+
} }
|
|
2594
|
+
function TableComponent_div_0_ng_container_9_ng_container_1_th_2_Template(rf, ctx) { if (rf & 1) {
|
|
2595
|
+
i0.ɵɵelementStart(0, "th", 88);
|
|
2596
|
+
i0.ɵɵtext(1);
|
|
2597
|
+
i0.ɵɵelementEnd();
|
|
2598
|
+
} if (rf & 2) {
|
|
2599
|
+
const col_r31 = i0.ɵɵnextContext(2).$implicit;
|
|
2600
|
+
i0.ɵɵadvance();
|
|
2601
|
+
i0.ɵɵtextInterpolate1(" ", col_r31.title, " ");
|
|
2602
|
+
} }
|
|
2603
|
+
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_span_2_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
2604
|
+
i0.ɵɵelementStart(0, "a", 93);
|
|
2605
|
+
i0.ɵɵtext(1);
|
|
2606
|
+
i0.ɵɵelementEnd();
|
|
2607
|
+
} if (rf & 2) {
|
|
2608
|
+
const row_r33 = i0.ɵɵnextContext(3).$implicit;
|
|
2609
|
+
const col_r31 = i0.ɵɵnextContext(2).$implicit;
|
|
2610
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
2611
|
+
i0.ɵɵproperty("href", row_r33[col_r31.property], i0.ɵɵsanitizeUrl);
|
|
2612
|
+
i0.ɵɵadvance();
|
|
2613
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r2.getDisplayValue(col_r31, row_r33), " ");
|
|
2614
|
+
} }
|
|
2615
|
+
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_span_2_a_2_Template(rf, ctx) { if (rf & 1) {
|
|
2616
|
+
i0.ɵɵelementStart(0, "a", 93);
|
|
2617
|
+
i0.ɵɵtext(1);
|
|
2618
|
+
i0.ɵɵelementEnd();
|
|
2619
|
+
} if (rf & 2) {
|
|
2620
|
+
const row_r33 = i0.ɵɵnextContext(3).$implicit;
|
|
2621
|
+
const col_r31 = i0.ɵɵnextContext(2).$implicit;
|
|
2622
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
2623
|
+
i0.ɵɵproperty("href", col_r31.hasLink, i0.ɵɵsanitizeUrl);
|
|
2624
|
+
i0.ɵɵadvance();
|
|
2625
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r2.getDisplayValue(col_r31, row_r33), " ");
|
|
2626
|
+
} }
|
|
2627
|
+
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_span_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
2628
|
+
i0.ɵɵelementStart(0, "span");
|
|
2629
|
+
i0.ɵɵtext(1);
|
|
2630
|
+
i0.ɵɵelementEnd();
|
|
2631
|
+
} if (rf & 2) {
|
|
2632
|
+
const row_r33 = i0.ɵɵnextContext(3).$implicit;
|
|
2633
|
+
const col_r31 = i0.ɵɵnextContext(2).$implicit;
|
|
2634
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
2635
|
+
i0.ɵɵadvance();
|
|
2636
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r2.getDisplayValue(col_r31, row_r33), " ");
|
|
2637
|
+
} }
|
|
2638
|
+
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
2639
|
+
i0.ɵɵelementStart(0, "span");
|
|
2640
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_span_2_a_1_Template, 2, 2, "a", 92)(2, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_span_2_a_2_Template, 2, 2, "a", 92)(3, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_span_2_span_3_Template, 2, 1, "span", 32);
|
|
2641
|
+
i0.ɵɵelementEnd();
|
|
2642
|
+
} if (rf & 2) {
|
|
2643
|
+
const col_r31 = i0.ɵɵnextContext(4).$implicit;
|
|
2644
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
2645
|
+
i0.ɵɵadvance();
|
|
2646
|
+
i0.ɵɵproperty("ngIf", col_r31.hasLink === true);
|
|
2647
|
+
i0.ɵɵadvance();
|
|
2648
|
+
i0.ɵɵproperty("ngIf", col_r31.hasLink && ctx_r2.isString(col_r31.hasLink));
|
|
2649
|
+
i0.ɵɵadvance();
|
|
2650
|
+
i0.ɵɵproperty("ngIf", col_r31.hasLink !== true && !ctx_r2.isString(col_r31.hasLink));
|
|
2651
|
+
} }
|
|
2652
|
+
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_ng_template_3_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
2653
|
+
i0.ɵɵelementStart(0, "a", 93);
|
|
2654
|
+
i0.ɵɵtext(1);
|
|
2655
|
+
i0.ɵɵelementEnd();
|
|
2656
|
+
} if (rf & 2) {
|
|
2657
|
+
const row_r33 = i0.ɵɵnextContext(3).$implicit;
|
|
2658
|
+
const col_r31 = i0.ɵɵnextContext(2).$implicit;
|
|
2659
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
2660
|
+
i0.ɵɵproperty("href", row_r33[col_r31.property], i0.ɵɵsanitizeUrl);
|
|
2661
|
+
i0.ɵɵadvance();
|
|
2662
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r2.getDisplayValue(col_r31, row_r33, true), " ");
|
|
2663
|
+
} }
|
|
2664
|
+
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_ng_template_3_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
2665
|
+
i0.ɵɵelementStart(0, "a", 93);
|
|
2666
|
+
i0.ɵɵtext(1);
|
|
2667
|
+
i0.ɵɵelementEnd();
|
|
2668
|
+
} if (rf & 2) {
|
|
2669
|
+
const row_r33 = i0.ɵɵnextContext(3).$implicit;
|
|
2670
|
+
const col_r31 = i0.ɵɵnextContext(2).$implicit;
|
|
2671
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
2672
|
+
i0.ɵɵproperty("href", col_r31.hasLink, i0.ɵɵsanitizeUrl);
|
|
2673
|
+
i0.ɵɵadvance();
|
|
2674
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r2.getDisplayValue(col_r31, row_r33, true), " ");
|
|
2675
|
+
} }
|
|
2676
|
+
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_ng_template_3_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
2677
|
+
i0.ɵɵelementStart(0, "span");
|
|
2678
|
+
i0.ɵɵtext(1);
|
|
2679
|
+
i0.ɵɵelementEnd();
|
|
2680
|
+
} if (rf & 2) {
|
|
2681
|
+
const row_r33 = i0.ɵɵnextContext(3).$implicit;
|
|
2682
|
+
const col_r31 = i0.ɵɵnextContext(2).$implicit;
|
|
2683
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
2684
|
+
i0.ɵɵadvance();
|
|
2685
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r2.getDisplayValue(col_r31, row_r33, true), " ");
|
|
2686
|
+
} }
|
|
2687
|
+
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
2688
|
+
i0.ɵɵtemplate(0, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_ng_template_3_a_0_Template, 2, 2, "a", 92)(1, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_ng_template_3_a_1_Template, 2, 2, "a", 92)(2, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_ng_template_3_span_2_Template, 2, 1, "span", 32);
|
|
2689
|
+
} if (rf & 2) {
|
|
2690
|
+
const col_r31 = i0.ɵɵnextContext(4).$implicit;
|
|
2691
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
2692
|
+
i0.ɵɵproperty("ngIf", col_r31.hasLink === true);
|
|
2693
|
+
i0.ɵɵadvance();
|
|
2694
|
+
i0.ɵɵproperty("ngIf", col_r31.hasLink && ctx_r2.isString(col_r31.hasLink));
|
|
2695
|
+
i0.ɵɵadvance();
|
|
2696
|
+
i0.ɵɵproperty("ngIf", col_r31.hasLink !== true && !ctx_r2.isString(col_r31.hasLink));
|
|
2697
|
+
} }
|
|
2698
|
+
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
2699
|
+
i0.ɵɵelementStart(0, "span");
|
|
2700
|
+
i0.ɵɵelementContainerStart(1);
|
|
2701
|
+
i0.ɵɵtemplate(2, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_span_2_Template, 4, 3, "span", 91);
|
|
2702
|
+
i0.ɵɵelementContainerEnd();
|
|
2703
|
+
i0.ɵɵtemplate(3, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_ng_template_3_Template, 3, 3, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
|
|
2704
|
+
i0.ɵɵelementEnd();
|
|
2705
|
+
} if (rf & 2) {
|
|
2706
|
+
const withinLimit_r34 = i0.ɵɵreference(4);
|
|
2707
|
+
const row_r33 = i0.ɵɵnextContext().$implicit;
|
|
2708
|
+
const col_r31 = i0.ɵɵnextContext(2).$implicit;
|
|
2709
|
+
i0.ɵɵadvance(2);
|
|
2710
|
+
i0.ɵɵproperty("ngIf", col_r31.charLimit && row_r33[col_r31.property] && row_r33[col_r31.property].length > col_r31.charLimit)("ngIfElse", withinLimit_r34);
|
|
2711
|
+
} }
|
|
2712
|
+
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_2_mat_spinner_1_Template(rf, ctx) { if (rf & 1) {
|
|
2713
|
+
i0.ɵɵelement(0, "mat-spinner", 97);
|
|
2714
|
+
} if (rf & 2) {
|
|
2715
|
+
i0.ɵɵproperty("diameter", 32);
|
|
2716
|
+
} }
|
|
2717
|
+
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
2718
|
+
const _r35 = i0.ɵɵgetCurrentView();
|
|
2719
|
+
i0.ɵɵelementStart(0, "div", 94);
|
|
2720
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_2_mat_spinner_1_Template, 1, 1, "mat-spinner", 95);
|
|
2721
|
+
i0.ɵɵelementStart(2, "img", 96);
|
|
2722
|
+
i0.ɵɵlistener("load", function TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_2_Template_img_load_2_listener() { i0.ɵɵrestoreView(_r35); const row_r33 = i0.ɵɵnextContext().$implicit; const col_r31 = i0.ɵɵnextContext(2).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onImageLoad(row_r33, col_r31)); })("error", function TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_2_Template_img_error_2_listener($event) { i0.ɵɵrestoreView(_r35); const row_r33 = i0.ɵɵnextContext().$implicit; const col_r31 = i0.ɵɵnextContext(2).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onImageError($event, row_r33, col_r31, col_r31.image.default)); });
|
|
2723
|
+
i0.ɵɵelementEnd()();
|
|
2724
|
+
} if (rf & 2) {
|
|
2725
|
+
const row_r33 = i0.ɵɵnextContext().$implicit;
|
|
2726
|
+
const col_r31 = i0.ɵɵnextContext(2).$implicit;
|
|
2727
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
2728
|
+
i0.ɵɵadvance();
|
|
2729
|
+
i0.ɵɵproperty("ngIf", ctx_r2.isImageLoading(row_r33, col_r31));
|
|
2730
|
+
i0.ɵɵadvance();
|
|
2731
|
+
i0.ɵɵclassProp("opacity-0", ctx_r2.isImageLoading(row_r33, col_r31));
|
|
2732
|
+
i0.ɵɵproperty("src", col_r31.image.path + "/" + row_r33[col_r31.property], i0.ɵɵsanitizeUrl)("ngClass", col_r31.image.class);
|
|
2733
|
+
} }
|
|
2734
|
+
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_3_mat_spinner_1_Template(rf, ctx) { if (rf & 1) {
|
|
2735
|
+
i0.ɵɵelement(0, "mat-spinner", 97);
|
|
2736
|
+
} if (rf & 2) {
|
|
2737
|
+
i0.ɵɵproperty("diameter", 32);
|
|
2738
|
+
} }
|
|
2739
|
+
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
2740
|
+
const _r36 = i0.ɵɵgetCurrentView();
|
|
2741
|
+
i0.ɵɵelementStart(0, "div", 94);
|
|
2742
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_3_mat_spinner_1_Template, 1, 1, "mat-spinner", 95);
|
|
2743
|
+
i0.ɵɵelementStart(2, "img", 96);
|
|
2744
|
+
i0.ɵɵlistener("load", function TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_3_Template_img_load_2_listener() { i0.ɵɵrestoreView(_r36); const row_r33 = i0.ɵɵnextContext().$implicit; const col_r31 = i0.ɵɵnextContext(2).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onImageLoad(row_r33, col_r31)); })("error", function TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_3_Template_img_error_2_listener($event) { i0.ɵɵrestoreView(_r36); const row_r33 = i0.ɵɵnextContext().$implicit; const col_r31 = i0.ɵɵnextContext(2).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onImageError($event, row_r33, col_r31, col_r31.image.default)); });
|
|
2745
|
+
i0.ɵɵelementEnd()();
|
|
2746
|
+
} if (rf & 2) {
|
|
2747
|
+
const row_r33 = i0.ɵɵnextContext().$implicit;
|
|
2748
|
+
const col_r31 = i0.ɵɵnextContext(2).$implicit;
|
|
2749
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
2750
|
+
i0.ɵɵadvance();
|
|
2751
|
+
i0.ɵɵproperty("ngIf", ctx_r2.isImageLoading(row_r33, col_r31));
|
|
2752
|
+
i0.ɵɵadvance();
|
|
2753
|
+
i0.ɵɵclassProp("opacity-0", ctx_r2.isImageLoading(row_r33, col_r31));
|
|
2754
|
+
i0.ɵɵproperty("src", row_r33[col_r31.property], i0.ɵɵsanitizeUrl)("ngClass", col_r31.image.class);
|
|
2755
|
+
} }
|
|
2756
|
+
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_ng_container_4_button_1_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
2757
|
+
i0.ɵɵelementStart(0, "span", 101);
|
|
2758
|
+
i0.ɵɵtext(1);
|
|
2759
|
+
i0.ɵɵelementEnd();
|
|
2760
|
+
} if (rf & 2) {
|
|
2761
|
+
const iconClass_r38 = i0.ɵɵnextContext().$implicit;
|
|
2762
|
+
i0.ɵɵproperty("ngClass", iconClass_r38.class);
|
|
2763
|
+
i0.ɵɵadvance();
|
|
2764
|
+
i0.ɵɵtextInterpolate(iconClass_r38.text);
|
|
2765
|
+
} }
|
|
2766
|
+
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_ng_container_4_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
2767
|
+
const _r37 = i0.ɵɵgetCurrentView();
|
|
2768
|
+
i0.ɵɵelementStart(0, "button", 99);
|
|
2769
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_ng_container_9_ng_container_1_td_3_ng_container_4_button_1_Template_button_click_0_listener($event) { const iconClass_r38 = i0.ɵɵrestoreView(_r37).$implicit; const row_r33 = i0.ɵɵnextContext(2).$implicit; return i0.ɵɵresetView(iconClass_r38.buttonMethod ? iconClass_r38.buttonMethod(row_r33, $event) : $event.stopPropagation()); });
|
|
2770
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_td_3_ng_container_4_button_1_span_1_Template, 2, 2, "span", 100);
|
|
2771
|
+
i0.ɵɵelementEnd();
|
|
2772
|
+
} if (rf & 2) {
|
|
2773
|
+
const iconClass_r38 = ctx.$implicit;
|
|
2774
|
+
const row_r33 = i0.ɵɵnextContext(2).$implicit;
|
|
2775
|
+
i0.ɵɵadvance();
|
|
2776
|
+
i0.ɵɵproperty("ngIf", iconClass_r38.condition === undefined || iconClass_r38.condition !== undefined && iconClass_r38.condition(row_r33));
|
|
2777
|
+
} }
|
|
2778
|
+
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
2779
|
+
i0.ɵɵelementContainerStart(0);
|
|
2780
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_td_3_ng_container_4_button_1_Template, 2, 1, "button", 98);
|
|
2781
|
+
i0.ɵɵelementContainerEnd();
|
|
2782
|
+
} if (rf & 2) {
|
|
2783
|
+
const col_r31 = i0.ɵɵnextContext(3).$implicit;
|
|
2784
|
+
i0.ɵɵadvance();
|
|
2785
|
+
i0.ɵɵproperty("ngForOf", col_r31.iconClass);
|
|
2786
|
+
} }
|
|
2787
|
+
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_Template(rf, ctx) { if (rf & 1) {
|
|
2788
|
+
const _r32 = i0.ɵɵgetCurrentView();
|
|
2789
|
+
i0.ɵɵelementStart(0, "td", 89);
|
|
2790
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_ng_container_9_ng_container_1_td_3_Template_td_click_0_listener() { const row_r33 = i0.ɵɵrestoreView(_r32).$implicit; const col_r31 = i0.ɵɵnextContext(2).$implicit; return i0.ɵɵresetView(col_r31.method ? col_r31.method(row_r33) : null); })("mouseenter", function TableComponent_div_0_ng_container_9_ng_container_1_td_3_Template_td_mouseenter_0_listener($event) { const row_r33 = i0.ɵɵrestoreView(_r32).$implicit; const col_r31 = i0.ɵɵnextContext(2).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onCellMouseEnter($event, row_r33, col_r31)); })("mouseleave", function TableComponent_div_0_ng_container_9_ng_container_1_td_3_Template_td_mouseleave_0_listener() { i0.ɵɵrestoreView(_r32); const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.onCellMouseLeave()); })("mousemove", function TableComponent_div_0_ng_container_9_ng_container_1_td_3_Template_td_mousemove_0_listener($event) { i0.ɵɵrestoreView(_r32); const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.onCellMouseMove($event)); });
|
|
2791
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_Template, 5, 2, "span", 32)(2, TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_2_Template, 3, 5, "div", 90)(3, TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_3_Template, 3, 5, "div", 90)(4, TableComponent_div_0_ng_container_9_ng_container_1_td_3_ng_container_4_Template, 2, 1, "ng-container", 32);
|
|
2792
|
+
i0.ɵɵelementEnd();
|
|
2793
|
+
} if (rf & 2) {
|
|
2794
|
+
const col_r31 = i0.ɵɵnextContext(2).$implicit;
|
|
2795
|
+
i0.ɵɵadvance();
|
|
2796
|
+
i0.ɵɵproperty("ngIf", !col_r31.image && !col_r31.iconClass && !col_r31.method);
|
|
2797
|
+
i0.ɵɵadvance();
|
|
2798
|
+
i0.ɵɵproperty("ngIf", col_r31.image && col_r31.image.path && !col_r31.iconClass && !col_r31.method);
|
|
2799
|
+
i0.ɵɵadvance();
|
|
2800
|
+
i0.ɵɵproperty("ngIf", col_r31.image && col_r31.image.url && !col_r31.iconClass && !col_r31.method);
|
|
2801
|
+
i0.ɵɵadvance();
|
|
2802
|
+
i0.ɵɵproperty("ngIf", col_r31.iconClass);
|
|
2803
|
+
} }
|
|
2804
|
+
function TableComponent_div_0_ng_container_9_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
2805
|
+
i0.ɵɵelementContainerStart(0);
|
|
2806
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_th_1_Template, 2, 1, "th", 84)(2, TableComponent_div_0_ng_container_9_ng_container_1_th_2_Template, 2, 1, "th", 85)(3, TableComponent_div_0_ng_container_9_ng_container_1_td_3_Template, 5, 4, "td", 86);
|
|
2807
|
+
i0.ɵɵelementContainerEnd();
|
|
2808
|
+
} if (rf & 2) {
|
|
2809
|
+
const col_r31 = i0.ɵɵnextContext().$implicit;
|
|
2810
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
2811
|
+
i0.ɵɵadvance();
|
|
2812
|
+
i0.ɵɵproperty("ngIf", !col_r31.isSortable || ctx_r2.data.pagination === true);
|
|
2813
|
+
i0.ɵɵadvance();
|
|
2814
|
+
i0.ɵɵproperty("ngIf", col_r31.isSortable && ctx_r2.data.pagination === false);
|
|
2815
|
+
} }
|
|
2816
|
+
function TableComponent_div_0_ng_container_9_Template(rf, ctx) { if (rf & 1) {
|
|
2817
|
+
i0.ɵɵelementContainerStart(0, 82);
|
|
2818
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_Template, 4, 2, "ng-container", 83);
|
|
2819
|
+
i0.ɵɵelementContainerEnd();
|
|
2820
|
+
} if (rf & 2) {
|
|
2821
|
+
const col_r31 = ctx.$implicit;
|
|
2822
|
+
i0.ɵɵproperty("matColumnDef", i0.ɵɵinterpolate(col_r31.property));
|
|
2823
|
+
} }
|
|
2824
|
+
function TableComponent_div_0_tr_10_Template(rf, ctx) { if (rf & 1) {
|
|
2825
|
+
i0.ɵɵelement(0, "tr", 102);
|
|
2826
|
+
} }
|
|
2827
|
+
function TableComponent_div_0_tr_11_Template(rf, ctx) { if (rf & 1) {
|
|
2828
|
+
const _r39 = i0.ɵɵgetCurrentView();
|
|
2829
|
+
i0.ɵɵelementStart(0, "tr", 103);
|
|
2830
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_tr_11_Template_tr_click_0_listener() { const row_r40 = i0.ɵɵrestoreView(_r39).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.goToDetails(row_r40)); });
|
|
2831
|
+
i0.ɵɵelementEnd();
|
|
2832
|
+
} if (rf & 2) {
|
|
2833
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
2834
|
+
i0.ɵɵproperty("ngClass", ctx_r2.getTableRowNgClass());
|
|
2835
|
+
} }
|
|
2836
|
+
function TableComponent_div_0_tr_12_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
2837
|
+
i0.ɵɵelementStart(0, "td", 106);
|
|
2838
|
+
i0.ɵɵtext(1, " Nenhum resultado encontrado para a busca ");
|
|
2839
|
+
i0.ɵɵelementEnd();
|
|
2840
|
+
} }
|
|
2841
|
+
function TableComponent_div_0_tr_12_Template(rf, ctx) { if (rf & 1) {
|
|
2842
|
+
i0.ɵɵelementStart(0, "tr", 104);
|
|
2843
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_tr_12_td_1_Template, 2, 0, "td", 105);
|
|
2844
|
+
i0.ɵɵpipe(2, "async");
|
|
2845
|
+
i0.ɵɵelementEnd();
|
|
2846
|
+
} if (rf & 2) {
|
|
2847
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
2848
|
+
i0.ɵɵadvance();
|
|
2849
|
+
i0.ɵɵproperty("ngIf", !i0.ɵɵpipeBind1(2, 1, ctx_r2.isLoading$));
|
|
2850
|
+
} }
|
|
2851
|
+
function TableComponent_div_0_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
2852
|
+
i0.ɵɵelementStart(0, "div", 107);
|
|
2853
|
+
i0.ɵɵelement(1, "mat-spinner");
|
|
2854
|
+
i0.ɵɵelementEnd();
|
|
2855
|
+
} }
|
|
2856
|
+
function TableComponent_div_0_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
2857
|
+
i0.ɵɵelementStart(0, "div", 108);
|
|
2858
|
+
i0.ɵɵtext(1);
|
|
2859
|
+
i0.ɵɵelementEnd();
|
|
2860
|
+
} if (rf & 2) {
|
|
2861
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
2862
|
+
i0.ɵɵadvance();
|
|
2863
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r2.currentPageNumber, " ");
|
|
2864
|
+
} }
|
|
2865
|
+
function TableComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
2866
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
2867
|
+
i0.ɵɵelementStart(0, "div", 6)(1, "div", 7);
|
|
2868
|
+
i0.ɵɵtemplate(2, TableComponent_div_0_div_2_Template, 13, 5, "div", 8)(3, TableComponent_div_0_div_3_Template, 10, 3, "div", 8);
|
|
2869
|
+
i0.ɵɵelementStart(4, "div", 9);
|
|
2870
|
+
i0.ɵɵtemplate(5, TableComponent_div_0_lib_table_tabs_5_Template, 1, 2, "lib-table-tabs", 10);
|
|
2871
|
+
i0.ɵɵelementStart(6, "div", 11)(7, "table", 12, 0);
|
|
2872
|
+
i0.ɵɵtemplate(9, TableComponent_div_0_ng_container_9_Template, 2, 2, "ng-container", 13)(10, TableComponent_div_0_tr_10_Template, 1, 0, "tr", 14)(11, TableComponent_div_0_tr_11_Template, 1, 1, "tr", 15)(12, TableComponent_div_0_tr_12_Template, 3, 3, "tr", 16);
|
|
2873
|
+
i0.ɵɵelementEnd();
|
|
2874
|
+
i0.ɵɵtemplate(13, TableComponent_div_0_div_13_Template, 2, 0, "div", 17);
|
|
2875
|
+
i0.ɵɵpipe(14, "async");
|
|
2876
|
+
i0.ɵɵelementStart(15, "div", 18)(16, "mat-paginator", 19, 1);
|
|
2877
|
+
i0.ɵɵlistener("page", function TableComponent_div_0_Template_mat_paginator_page_16_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onPageChange($event)); });
|
|
2878
|
+
i0.ɵɵelementEnd();
|
|
2879
|
+
i0.ɵɵtemplate(18, TableComponent_div_0_div_18_Template, 2, 1, "div", 20);
|
|
2880
|
+
i0.ɵɵpipe(19, "async");
|
|
2881
|
+
i0.ɵɵelementEnd()()()();
|
|
2882
|
+
i0.ɵɵelement(20, "lib-table-tooltip", 21);
|
|
2883
|
+
i0.ɵɵelementEnd();
|
|
2884
|
+
} if (rf & 2) {
|
|
2885
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
2886
|
+
i0.ɵɵadvance(2);
|
|
2887
|
+
i0.ɵɵproperty("ngIf", ctx_r2.data.pagination === true && (ctx_r2.dropdownItems.length > 0 || ctx_r2.sortableDropdownItems.length > 0 || ctx_r2.data.actionButton));
|
|
2888
|
+
i0.ɵɵadvance();
|
|
2889
|
+
i0.ɵɵproperty("ngIf", ctx_r2.data.pagination === false && (ctx_r2.hasFilterableColumn === true || ctx_r2.dropdownItems.length > 0 || ctx_r2.data.actionButton));
|
|
2890
|
+
i0.ɵɵadvance(2);
|
|
2891
|
+
i0.ɵɵproperty("ngIf", ctx_r2.data.tabs && ctx_r2.data.tabs.tabsData && ctx_r2.data.tabs.tabsData.length > 0);
|
|
2892
|
+
i0.ɵɵadvance(2);
|
|
2893
|
+
i0.ɵɵproperty("dataSource", ctx_r2.dataSource);
|
|
2894
|
+
i0.ɵɵadvance(2);
|
|
2895
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.data.displayedColumns)("ngForTrackBy", ctx_r2.trackByProperty);
|
|
2896
|
+
i0.ɵɵadvance();
|
|
2897
|
+
i0.ɵɵproperty("matHeaderRowDef", ctx_r2.columnProperties);
|
|
2898
|
+
i0.ɵɵadvance();
|
|
2899
|
+
i0.ɵɵproperty("matRowDefColumns", ctx_r2.columnProperties);
|
|
2900
|
+
i0.ɵɵadvance(2);
|
|
2901
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(14, 16, ctx_r2.isLoading$));
|
|
2902
|
+
i0.ɵɵadvance(3);
|
|
2903
|
+
i0.ɵɵproperty("pageSizeOptions", i0.ɵɵpureFunction0(20, _c0))("pageSize", ctx_r2.pageSize)("length", ctx_r2.totalItems)("ngClass", ctx_r2.getPaginatorNgClass());
|
|
2904
|
+
i0.ɵɵadvance(2);
|
|
2905
|
+
i0.ɵɵproperty("ngIf", !i0.ɵɵpipeBind1(19, 18, ctx_r2.isLoading$) && (ctx_r2.dataSource == null ? null : ctx_r2.dataSource.data) && ctx_r2.dataSource.data.length > 0 && (ctx_r2.data == null ? null : ctx_r2.data.filterFn));
|
|
2906
|
+
i0.ɵɵadvance(2);
|
|
2907
|
+
i0.ɵɵproperty("state", ctx_r2.tooltipState)("styles", ctx_r2.getTooltipStyles());
|
|
2908
|
+
} }
|
|
2025
2909
|
class TableComponent {
|
|
2026
2910
|
// CONSTRUCTOR
|
|
2027
2911
|
constructor(router, tableService, filterService, tooltipService, paginationService, firestore, el, cdr) {
|
|
@@ -2704,47 +3588,40 @@ class TableComponent {
|
|
|
2704
3588
|
}
|
|
2705
3589
|
}
|
|
2706
3590
|
}
|
|
2707
|
-
static { this.ɵfac =
|
|
2708
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TableComponent, isStandalone: false, selector: "lib-table", inputs: { data: "data", downloadTable: "downloadTable" }, viewQueries: [{ propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true }, { propertyName: "sort", first: true, predicate: MatSort, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"data\" class=\"card-body\">\n <div class=\"flex flex-col justify-between gap-6\">\n <!-- UNIFIED CONTROL PANEL: FILTERS, SORT & ACTIONS -->\n <div\n class=\"rounded-xl border border-gray-200 bg-white p-4 shadow-lg\"\n *ngIf=\"\n data.pagination === true &&\n (dropdownItems.length > 0 ||\n sortableDropdownItems.length > 0 ||\n data.actionButton)\n \"\n >\n <!-- PANEL HEADER: Title and Custom Action -->\n <div\n class=\"mb-4 flex flex-col items-start justify-between gap-4 border-b-2 border-gray-200 pb-4 md:flex-row md:items-center\"\n >\n <!-- Left Side: Title & Main Action Button -->\n <div class=\"flex flex-wrap items-center gap-4\">\n <div class=\"flex items-center gap-2\">\n <i class=\"fa fa-filter text-xl text-blue-500\"></i>\n <span class=\"text-lg font-semibold text-gray-700\"\n >Filtros e A\u00E7\u00F5es</span\n >\n </div>\n <button\n *ngIf=\"data.actionButton && data.actionButton.condition\"\n [ngClass]=\"getActionButtonClass()\"\n [routerLink]=\"data.actionButton.routerLink\"\n (click)=\"\n data.actionButton.method ? data.actionButton.method($event) : null\n \"\n >\n <i\n *ngIf=\"data.actionButton.icon\"\n [class]=\"data.actionButton.icon\"\n ></i>\n {{ data.actionButton.label }}\n </button>\n </div>\n </div>\n\n <!-- SORT FIELD (Integrated with filters) -->\n <div class=\"mb-4\" *ngIf=\"sortableDropdownItems.length > 0\">\n <div class=\"flex flex-wrap items-center gap-3 p-2\">\n <div class=\"min-w-[200px] flex-1\">\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-sort-alpha-down text-cyan-600\"></i>\n <span>Ordenar por</span>\n </mat-label>\n <mat-select placeholder=\"Selecione...\" [formControl]=\"selectSort\">\n <mat-option\n *ngFor=\"let item of sortableDropdownItems\"\n [value]=\"item\"\n >\n <div class=\"flex items-center gap-2\">\n <i class=\"fa fa-sort-alpha-down text-cyan-600\"></i>\n <span>{{ item.title }}</span>\n </div>\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n </div>\n </div>\n\n <!-- FILTERS CONTENT (WITH REFINEMENTS) -->\n <div class=\"mb-4 space-y-3\" *ngIf=\"filtersForm.controls.length > 0\">\n <div\n [formGroup]=\"$any(filterGroup)\"\n *ngFor=\"let filterGroup of filtersForm.controls; let i = index\"\n class=\"flex flex-wrap items-center gap-3 p-2\"\n >\n <!-- FILTER TYPE SELECTOR -->\n <div class=\"min-w-[200px] flex-1\" *ngIf=\"dropdownItems.length > 0\">\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label>Tipo de filtro</mat-label>\n <mat-select\n placeholder=\"Selecione o tipo...\"\n formControlName=\"selectFilter\"\n (selectionChange)=\"onSelectFilterChange()\"\n >\n <mat-option\n *ngFor=\"let item of getAvailableFilterOptions()\"\n [value]=\"item\"\n >\n <div class=\"flex items-center gap-2\">\n <i\n [class]=\"item.icon || 'fa fa-filter'\"\n class=\"text-sm text-blue-500\"\n ></i>\n <span>{{ item.title }}</span>\n </div>\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n\n <!-- TEXT FILTER -->\n <div\n class=\"min-w-[200px] flex-1\"\n *ngIf=\"\n $any(filterGroup).get('selectFilter')?.value?.arrange === 'filter'\n \"\n >\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-search text-gray-400\"></i>\n <span>{{\n $any(filterGroup).get(\"selectFilter\")?.value?.title ||\n \"Filtrar\"\n }}</span>\n </mat-label>\n <input\n (keyup.enter)=\"search($event)\"\n formControlName=\"typeFilter\"\n matInput\n placeholder=\"Digite para filtrar...\"\n #input\n />\n </mat-form-field>\n </div>\n\n <!-- DROPDOWN FILTER -->\n <div\n class=\"min-w-[200px] flex-1\"\n *ngIf=\"\n $any(filterGroup).get('selectFilter')?.value &&\n $any(filterGroup)\n .get('selectFilter')\n ?.value.hasOwnProperty('items')\n \"\n >\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label>{{\n $any(filterGroup).get(\"selectFilter\")?.value?.title ||\n \"Selecione\"\n }}</mat-label>\n <mat-select\n placeholder=\"Selecione...\"\n formControlName=\"selectItem\"\n multiple\n >\n <mat-option\n *ngFor=\"\n let item of $any(filterGroup).get('selectFilter')?.value\n .items\n \"\n [value]=\"item\"\n >\n {{ item.label }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n\n <!-- DATE FILTER -->\n <div\n class=\"min-w-[340px] flex-auto\"\n *ngIf=\"\n $any(filterGroup).get('selectFilter')?.value?.arrange ===\n 'filterByDate'\n \"\n >\n <div\n class=\"flex flex-col items-stretch gap-3 sm:flex-row sm:items-center\"\n >\n <mat-form-field appearance=\"outline\" class=\"flex-1\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-calendar text-gray-400\"></i>\n <span>Data Inicial</span>\n </mat-label>\n <input\n type=\"text\"\n matInput\n (keydown.enter)=\"search($event)\"\n (input)=\"onDateInput($event, 'initialDate', i)\"\n formControlName=\"initialDate\"\n placeholder=\"DD/MM/AAAA\"\n maxlength=\"10\"\n />\n </mat-form-field>\n\n <mat-form-field appearance=\"outline\" class=\"flex-1\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-calendar text-gray-400\"></i>\n <span>Data Final</span>\n </mat-label>\n <input\n type=\"text\"\n (keydown.enter)=\"search($event)\"\n (input)=\"onDateInput($event, 'finalDate', i)\"\n matInput\n formControlName=\"finalDate\"\n placeholder=\"DD/MM/AAAA\"\n maxlength=\"10\"\n />\n </mat-form-field>\n </div>\n </div>\n\n <!-- REMOVE FILTER BUTTON -->\n <div *ngIf=\"filtersForm.length > 1\" class=\"ml-auto flex-shrink-0\">\n <button\n (click)=\"removeFilter(i)\"\n class=\"flex h-10 w-10 items-center justify-center rounded-full transition-colors duration-300 hover:bg-red-100\"\n matTooltip=\"Remover filtro\"\n >\n <i class=\"fa fa-trash text-red-500 hover:text-red-600\"></i>\n </button>\n </div>\n </div>\n </div>\n\n <!-- PANEL FOOTER: Add Filter & Action Buttons -->\n <div\n class=\"-mb-2 flex items-start justify-between gap-4 border-t border-gray-200 pt-4\"\n >\n <!-- Add Filter Button -->\n <div *ngIf=\"dropdownItems.length > 0\">\n <button\n (click)=\"addFilter()\"\n class=\"transform rounded-full border-2 border-blue-300 bg-blue-50 px-6 py-2 text-sm font-medium text-blue-600 transition-all duration-300 hover:-translate-y-0.5 hover:border-blue-400 hover:bg-blue-100 hover:shadow-md\"\n matTooltip=\"Adicionar novo filtro\"\n >\n <i class=\"fa fa-plus mr-2\"></i>\n Adicionar Filtro\n </button>\n </div>\n\n <!-- Right Side: Search, Reset, Export -->\n <div\n class=\"flex flex-wrap gap-3 self-start sm:self-auto\"\n *ngIf=\"\n this.hasFilterableColumn === true || this.hasSortableColumn === true\n \"\n >\n <button\n (click)=\"search()\"\n type=\"button\"\n class=\"flex items-center gap-2 rounded-lg bg-green-600 px-5 py-2 text-sm font-medium text-white transition-colors hover:bg-green-700\"\n matTooltip=\"Aplicar filtros\"\n >\n <i class=\"fa fa-search\"></i>\n Pesquisar\n </button>\n\n <button\n (click)=\"resetFilter()\"\n class=\"flex items-center gap-2 rounded-lg bg-red-500 px-5 py-2 text-sm font-medium text-white transition-colors hover:bg-red-600\"\n matTooltip=\"Limpar filtros\"\n >\n <i class=\"fas fa-redo-alt\"></i>\n Resetar\n </button>\n\n <button\n *ngIf=\"data.download !== false && downloadTable\"\n class=\"flex items-center gap-2 rounded-lg bg-orange-500 px-5 py-2 text-sm font-medium text-white transition-colors hover:bg-orange-600\"\n matTooltipPosition=\"above\"\n matTooltip=\"Exportar Tabela\"\n [disabled]=\"\n this.dataSource && this.dataSource.filteredData.length <= 0\n \"\n (click)=\"\n $any(arrange) && downloadTable !== undefined\n ? downloadTable($any(arrange), data.conditions || [])\n : null\n \"\n >\n <i class=\"fa fa-download\"></i>\n Exportar\n </button>\n </div>\n </div>\n </div>\n\n <!-- UNIFIED CONTROL PANEL (for non-paginated tables): SEARCH, SORT & FILTERS -->\n <div\n class=\"rounded-xl border border-gray-200 bg-white p-4 shadow-lg\"\n *ngIf=\"\n data.pagination === false &&\n (hasFilterableColumn === true ||\n dropdownItems.length > 0 ||\n data.actionButton)\n \"\n >\n <!-- PANEL HEADER: Title and Custom Action -->\n <div\n class=\"mb-4 flex flex-col items-start justify-between gap-4 border-b-2 border-gray-200 pb-4 md:flex-row md:items-center\"\n >\n <!-- Left Side: Title & Main Action Button -->\n <div class=\"flex flex-wrap items-center gap-4\">\n <div class=\"flex items-center gap-2\">\n <i class=\"fa fa-filter text-xl text-blue-500\"></i>\n <span class=\"text-lg font-semibold text-gray-700\"\n >Filtros e A\u00E7\u00F5es</span\n >\n </div>\n <button\n *ngIf=\"data.actionButton && data.actionButton.condition\"\n [ngClass]=\"getActionButtonClass()\"\n [routerLink]=\"data.actionButton.routerLink\"\n (click)=\"\n data.actionButton.method ? data.actionButton.method($event) : null\n \"\n >\n <i\n *ngIf=\"data.actionButton.icon\"\n [class]=\"data.actionButton.icon\"\n ></i>\n {{ data.actionButton.label }}\n </button>\n </div>\n </div>\n\n <!-- SIMPLE SEARCH -->\n <div\n class=\"mb-4\"\n *ngIf=\"hasFilterableColumn === true && data.showSimpleSearch !== false\"\n >\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-search text-blue-500\"></i>\n Buscar\n </mat-label>\n <input\n matInput\n (keyup.enter)=\"search($event)\"\n (keyup)=\"applyFilter(filterInput.value)\"\n placeholder=\"Digite para filtrar...\"\n #filterInput\n />\n <mat-icon matSuffix class=\"text-gray-500\">search</mat-icon>\n </mat-form-field>\n </div>\n\n <!-- FILTERS PANEL -->\n <div *ngIf=\"dropdownItems.length > 0\">\n <!-- FILTERS CONTENT -->\n <div class=\"mb-4 space-y-3\" *ngIf=\"filtersForm.controls.length > 0\">\n <div\n [formGroup]=\"$any(filterGroup)\"\n *ngFor=\"let filterGroup of filtersForm.controls; let i = index\"\n class=\"flex flex-wrap items-center gap-3\"\n >\n <!-- FILTER TYPE SELECTOR -->\n <div class=\"min-w-[200px] flex-1\" *ngIf=\"dropdownItems.length > 0\">\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label>Tipo de filtro</mat-label>\n <mat-select\n placeholder=\"Selecione o tipo...\"\n formControlName=\"selectFilter\"\n (selectionChange)=\"onSelectFilterChange()\"\n >\n <mat-option\n *ngFor=\"let item of getAvailableFilterOptions()\"\n [value]=\"item\"\n >\n <div class=\"flex items-center gap-2\">\n <i\n [class]=\"item.icon || 'fa fa-filter'\"\n class=\"text-sm text-blue-500\"\n ></i>\n <span>{{ item.title }}</span>\n </div>\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n\n <!-- TEXT FILTER -->\n <div\n class=\"min-w-[200px] flex-1\"\n *ngIf=\"\n $any(filterGroup).get('selectFilter')?.value?.arrange ===\n 'filter'\n \"\n >\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-search text-gray-400\"></i>\n <span>{{\n $any(filterGroup).get(\"selectFilter\")?.value?.title ||\n \"Filtrar\"\n }}</span>\n </mat-label>\n <input\n (keyup.enter)=\"search($event)\"\n formControlName=\"typeFilter\"\n matInput\n placeholder=\"Digite para filtrar...\"\n #input\n />\n </mat-form-field>\n </div>\n\n <!-- DROPDOWN FILTER -->\n <div\n class=\"min-w-[200px] flex-1\"\n *ngIf=\"\n $any(filterGroup).get('selectFilter')?.value &&\n $any(filterGroup)\n .get('selectFilter')\n ?.value.hasOwnProperty('items')\n \"\n >\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label>{{\n $any(filterGroup).get(\"selectFilter\")?.value?.title ||\n \"Selecione\"\n }}</mat-label>\n <mat-select\n placeholder=\"Selecione...\"\n formControlName=\"selectItem\"\n multiple\n >\n <mat-option\n *ngFor=\"\n let item of $any(filterGroup).get('selectFilter')?.value\n .items\n \"\n [value]=\"item\"\n >\n {{ item.label }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n\n <!-- DATE FILTER -->\n <div\n class=\"min-w-[340px] flex-auto\"\n *ngIf=\"\n $any(filterGroup).get('selectFilter')?.value?.arrange ===\n 'filterByDate'\n \"\n >\n <div\n class=\"flex flex-col items-stretch gap-3 sm:flex-row sm:items-center\"\n >\n <mat-form-field appearance=\"outline\" class=\"flex-1\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-calendar text-gray-400\"></i>\n <span>Data Inicial</span>\n </mat-label>\n <input\n type=\"text\"\n matInput\n (keydown.enter)=\"search($event)\"\n (input)=\"onDateInput($event, 'initialDate', i)\"\n (blur)=\"onDateFilterChange()\"\n formControlName=\"initialDate\"\n placeholder=\"DD/MM/AAAA\"\n maxlength=\"10\"\n />\n </mat-form-field>\n\n <mat-form-field appearance=\"outline\" class=\"flex-1\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-calendar text-gray-400\"></i>\n <span>Data Final</span>\n </mat-label>\n <input\n type=\"text\"\n (keydown.enter)=\"search($event)\"\n (input)=\"onDateInput($event, 'finalDate', i)\"\n (blur)=\"onDateFilterChange()\"\n matInput\n formControlName=\"finalDate\"\n placeholder=\"DD/MM/AAAA\"\n maxlength=\"10\"\n />\n </mat-form-field>\n </div>\n </div>\n\n <!-- REMOVE FILTER BUTTON -->\n <div *ngIf=\"filtersForm.length > 1\" class=\"ml-auto flex-shrink-0\">\n <button\n (click)=\"removeFilter(i)\"\n class=\"flex h-10 w-10 items-center justify-center rounded-full transition-colors duration-300 hover:bg-red-100\"\n matTooltip=\"Remover filtro\"\n >\n <i class=\"fa fa-trash text-red-500 hover:text-red-600\"></i>\n </button>\n </div>\n </div>\n </div>\n\n <!-- PANEL FOOTER: Add Filter & Actions -->\n <div\n class=\"-mb-2 flex items-start justify-between gap-4 border-t border-gray-200 pt-4\"\n >\n <!-- Add Filter Button -->\n <div *ngIf=\"dropdownItems.length > 0\">\n <button\n (click)=\"addFilter()\"\n class=\"transform rounded-full border-2 border-blue-300 bg-blue-50 px-6 py-2 text-sm font-medium text-blue-600 transition-all duration-300 hover:-translate-y-0.5 hover:border-blue-400 hover:bg-blue-100 hover:shadow-md\"\n matTooltip=\"Adicionar novo filtro\"\n >\n <i class=\"fa fa-plus mr-2\"></i>\n Adicionar Filtro\n </button>\n </div>\n\n <!-- Action Buttons -->\n <div\n class=\"flex flex-wrap gap-3 self-start sm:self-auto\"\n *ngIf=\"\n this.hasFilterableColumn === true ||\n this.hasSortableColumn === true\n \"\n >\n <button\n (click)=\"search()\"\n type=\"button\"\n class=\"flex items-center gap-2 rounded-lg bg-green-600 px-5 py-2 text-sm font-medium text-white transition-colors hover:bg-green-700\"\n matTooltip=\"Aplicar filtros\"\n >\n <i class=\"fa fa-search\"></i>\n Pesquisar\n </button>\n\n <button\n (click)=\"resetFilter()\"\n class=\"flex items-center gap-2 rounded-lg bg-red-500 px-5 py-2 text-sm font-medium text-white transition-colors hover:bg-red-600\"\n matTooltip=\"Limpar filtros\"\n >\n <i class=\"fas fa-redo-alt\"></i>\n Resetar\n </button>\n\n <button\n *ngIf=\"data.download !== false && downloadTable\"\n class=\"flex items-center gap-2 rounded-lg bg-orange-500 px-5 py-2 text-sm font-medium text-white transition-colors hover:bg-orange-600\"\n matTooltipPosition=\"above\"\n matTooltip=\"Exportar Tabela\"\n [disabled]=\"\n this.dataSource && this.dataSource.filteredData.length <= 0\n \"\n (click)=\"handleDownload()\"\n >\n <i class=\"fa fa-download\"></i>\n Exportar\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"flex flex-col\">\n <!-- TABS COMPONENT -->\n <lib-table-tabs\n *ngIf=\"data.tabs && data.tabs.tabsData && data.tabs.tabsData.length > 0\"\n [tabsData]=\"data.tabs.tabsData\"\n [selectedTab]=\"selectedTab\"\n (tabSelected)=\"onTabSelected($event)\"\n ></lib-table-tabs>\n <div\n class=\"mat-elevation-z8 w-full overflow-x-auto rounded-xl table-container\"\n >\n <table\n mat-table\n [dataSource]=\"dataSource\"\n matSort\n #sort=\"matSort\"\n matSortActive=\"createdAt\"\n matSortDirection=\"desc\"\n >\n <ng-container\n *ngFor=\"let col of data.displayedColumns; trackBy: trackByProperty\"\n matColumnDef=\"{{ col.property }}\"\n >\n <ng-container *matHeaderCellDef>\n <!-- IF THE COLUMN IS NOT SORTABLE, THEN DON'T SHOW THE SORT BUTTONS -->\n <th\n *ngIf=\"!col.isSortable || data.pagination === true\"\n mat-header-cell\n >\n {{ col.title }}\n </th>\n <!-- IF THE COLUMN IS SORTABLE, THEN SHOW THE SORT BUTTONS -->\n <th\n *ngIf=\"col.isSortable && data.pagination === false\"\n mat-header-cell\n mat-sort-header\n >\n {{ col.title }}\n </th>\n <td\n mat-cell\n *matCellDef=\"let row\"\n (click)=\"col.method ? col.method(row) : null\"\n (mouseenter)=\"onCellMouseEnter($event, row, col)\"\n (mouseleave)=\"onCellMouseLeave()\"\n (mousemove)=\"onCellMouseMove($event)\"\n >\n <!-- CHECK IF THE COLUMN MUST BE DISPLAYED -->\n <span *ngIf=\"!col.image && !col.iconClass && !col.method\">\n <ng-container>\n <span\n *ngIf=\"\n col.charLimit &&\n row[col.property] &&\n row[col.property].length > col.charLimit;\n else withinLimit\n \"\n >\n <a\n *ngIf=\"col.hasLink === true\"\n [href]=\"row[col.property]\"\n target=\"_blank\"\n >\n {{ getDisplayValue(col, row) }}\n </a>\n <a\n *ngIf=\"col.hasLink && isString(col.hasLink)\"\n [href]=\"col.hasLink\"\n target=\"_blank\"\n >\n {{ getDisplayValue(col, row) }}\n </a>\n <span\n *ngIf=\"col.hasLink !== true && !isString(col.hasLink)\"\n >\n {{ getDisplayValue(col, row) }}\n </span>\n </span>\n </ng-container>\n <ng-template #withinLimit>\n <a\n *ngIf=\"col.hasLink === true\"\n [href]=\"row[col.property]\"\n target=\"_blank\"\n >\n {{ getDisplayValue(col, row, true) }}\n </a>\n <a\n *ngIf=\"col.hasLink && isString(col.hasLink)\"\n [href]=\"col.hasLink\"\n target=\"_blank\"\n >\n {{ getDisplayValue(col, row, true) }}\n </a>\n <span\n *ngIf=\"col.hasLink !== true && !isString(col.hasLink)\"\n >\n {{ getDisplayValue(col, row, true) }}\n </span>\n </ng-template>\n </span>\n <!------------------- IMAGE ------------------>\n <!-- Imagem com loading -->\n <div\n *ngIf=\"\n col.image && col.image.path && !col.iconClass && !col.method\n \"\n class=\"relative inline-block\"\n >\n <mat-spinner\n *ngIf=\"isImageLoading(row, col)\"\n [diameter]=\"32\"\n class=\"absolute inset-0 m-auto\"\n ></mat-spinner>\n <img\n [src]=\"col.image.path + '/' + row[col.property]\"\n [ngClass]=\"col.image.class\"\n [class.opacity-0]=\"isImageLoading(row, col)\"\n alt=\"\"\n (load)=\"onImageLoad(row, col)\"\n (error)=\"onImageError($event, row, col, col.image.default)\"\n />\n </div>\n\n <!-- Imagem com URL completa e loading -->\n <div\n *ngIf=\"\n col.image && col.image.url && !col.iconClass && !col.method\n \"\n class=\"relative inline-block\"\n >\n <mat-spinner\n *ngIf=\"isImageLoading(row, col)\"\n [diameter]=\"32\"\n class=\"absolute inset-0 m-auto\"\n ></mat-spinner>\n <img\n [src]=\"row[col.property]\"\n [ngClass]=\"col.image.class\"\n [class.opacity-0]=\"isImageLoading(row, col)\"\n alt=\"\"\n (load)=\"onImageLoad(row, col)\"\n (error)=\"onImageError($event, row, col, col.image.default)\"\n />\n </div>\n <ng-container *ngIf=\"col.iconClass\">\n <button\n *ngFor=\"let iconClass of col.iconClass\"\n (click)=\"\n iconClass.buttonMethod\n ? iconClass.buttonMethod(row, $event)\n : $event.stopPropagation()\n \"\n >\n <span\n [ngClass]=\"iconClass.class\"\n *ngIf=\"\n iconClass.condition === undefined ||\n (iconClass.condition !== undefined &&\n $any(iconClass.condition)(row))\n \"\n >{{ iconClass.text }}</span\n >\n </button>\n </ng-container>\n </td>\n </ng-container>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnProperties\"></tr>\n <tr\n [ngClass]=\"getTableRowNgClass()\"\n mat-row\n *matRowDef=\"let row; columns: columnProperties\"\n (click)=\"goToDetails(row)\"\n ></tr>\n\n <!-- ROW SHOWN WHEN THERE IS NO MATCHING DATA. -->\n <tr class=\"mat-row\" *matNoDataRow>\n <td *ngIf=\"!(isLoading$ | async)\" class=\"mat-cell p-4\" colspan=\"4\">\n Nenhum resultado encontrado para a busca\n </td>\n </tr>\n </table>\n\n <div class=\"flex justify-center\" *ngIf=\"isLoading$ | async\">\n <mat-spinner></mat-spinner>\n </div>\n\n <div class=\"paginator-container\">\n <mat-paginator\n #paginator\n [pageSizeOptions]=\"[25, 50, 100]\"\n [pageSize]=\"pageSize\"\n [length]=\"totalItems\"\n showFirstLastButtons\n aria-label=\"Select page of periodic elements\"\n (page)=\"onPageChange($event)\"\n [ngClass]=\"getPaginatorNgClass()\"\n >\n </mat-paginator>\n <div\n *ngIf=\"\n !(isLoading$ | async) &&\n dataSource?.data &&\n dataSource.data.length > 0 &&\n data?.filterFn\n \"\n class=\"page-number-display\"\n >\n {{ currentPageNumber }}\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <!-- TOOLTIP PERSONALIZADO -->\n <lib-table-tooltip\n [state]=\"tooltipState\"\n [styles]=\"getTooltipStyles()\"\n ></lib-table-tooltip>\n</div>\n", styles: ["@charset \"UTF-8\";:host{--table-color: #1976d2;--table-text-color: white;--table-header-bg: #1976d2;--table-header-text: white;--table-scrollbar-bg: #f5f5f5;--table-scrollbar-thumb: var(--table-color)}.table-container::-webkit-scrollbar{width:10px;height:10px;background-color:var(--table-scrollbar-bg, #f5f5f5)}.table-container::-webkit-scrollbar-thumb{background-color:var(--table-scrollbar-thumb, var(--table-color, #1976d2));border-radius:5px}.table-container::-webkit-scrollbar-thumb:hover{background-color:var(--table-scrollbar-thumb, var(--table-color, #1976d2));opacity:.8}.overflow-x-auto::-webkit-scrollbar,.overflow-y-auto::-webkit-scrollbar,.overflow-auto::-webkit-scrollbar{width:10px;height:10px;background-color:var(--table-scrollbar-bg, #f5f5f5)}.overflow-x-auto::-webkit-scrollbar-thumb,.overflow-y-auto::-webkit-scrollbar-thumb,.overflow-auto::-webkit-scrollbar-thumb{background-color:var(--table-scrollbar-thumb, var(--table-color, #1976d2));border-radius:5px}.overflow-x-auto::-webkit-scrollbar-thumb:hover,.overflow-y-auto::-webkit-scrollbar-thumb:hover,.overflow-auto::-webkit-scrollbar-thumb:hover{background-color:var(--table-scrollbar-thumb, var(--table-color, #1976d2));opacity:.8}:host ::ng-deep .mat-table .mat-header-cell,:host ::ng-deep .mat-header-cell,:host ::ng-deep th.mat-header-cell,:host ::ng-deep .mat-mdc-table .mat-mdc-header-cell,:host ::ng-deep .mat-mdc-header-cell,:host ::ng-deep th.mat-mdc-header-cell{background-color:var(--table-header-bg, #1976d2)!important;color:var(--table-header-text, white)!important;font-weight:600}::ng-deep .fa-filter,::ng-deep i.fa-filter{color:var(--table-color, #1976d2)!important}::ng-deep .rounded-xl.border{border-color:var(--table-color, #1976d2)!important}::ng-deep .border-gray-200.rounded-xl{border-color:var(--table-color, #1976d2)!important}::ng-deep .mdc-notched-outline__notch{border-right:none!important}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-bottom:0}::ng-deep .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-bottom:0}.mat-mdc-text-field-wrapper.mdc-text-field--outlined.mdc-text-field--disabled{background:#00000026;background-size:1px 100%!important;background-repeat:repeat-x!important}.mdc-text-field--disabled .mdc-text-field__input{color:#525252}button:not([matTooltip=\"Adicionar novo filtro\"]):not([matTooltip=\"Aplicar filtros\"]):not([matTooltip=\"Limpar filtros\"]):not([matTooltip=\"Exportar Tabela\"]):not(:has(i.fa-plus)):not(:has(i.fa-search)):not(:has(i.fas.fa-redo-alt)):not(:has(i.fa-download)){transition:all .2s ease;cursor:pointer}button:not([matTooltip=\"Adicionar novo filtro\"]):not([matTooltip=\"Aplicar filtros\"]):not([matTooltip=\"Limpar filtros\"]):not([matTooltip=\"Exportar Tabela\"]):not(:has(i.fa-plus)):not(:has(i.fa-search)):not(:has(i.fas.fa-redo-alt)):not(:has(i.fa-download)):hover:not(:disabled){opacity:.9;transform:scale(1.02)}button:not([matTooltip=\"Adicionar novo filtro\"]):not([matTooltip=\"Aplicar filtros\"]):not([matTooltip=\"Limpar filtros\"]):not([matTooltip=\"Exportar Tabela\"]):not(:has(i.fa-plus)):not(:has(i.fa-search)):not(:has(i.fas.fa-redo-alt)):not(:has(i.fa-download)):disabled{opacity:.5;cursor:not-allowed;transform:none}::ng-deep .hide-length .mat-mdc-paginator-range-label{display:none}::ng-deep .hide-next-button .mat-mdc-tooltip-trigger.mat-mdc-paginator-navigation-next.mdc-icon-button.mat-mdc-icon-button.mat-unthemed.mat-mdc-button-base{visibility:hidden}::ng-deep .hide-next-button .mat-mdc-tooltip-trigger.mat-mdc-paginator-navigation-last.mdc-icon-button.mat-mdc-icon-button.mat-unthemed.mat-mdc-button-base.ng-star-inserted{visibility:hidden}::ng-deep .mat-mdc-text-field-wrapper.mdc-text-field.ng-tns-c162-1.mdc-text-field--filled{width:25dvw}::ng-deep .custom-filter .mat-mdc-text-field-wrapper{width:20dvw;max-width:300px}button[matTooltip=\"Adicionar novo filtro\"],button:has(i.fa-plus){display:inline-flex;align-items:center;gap:.5rem;border-radius:9999px;border:2px solid #93c5fd;background-color:#dbeafe;padding:.5rem 1.5rem;font-size:.875rem;font-weight:500;color:#2563eb;transition:all .3s;cursor:pointer;transform:translateY(0)}button[matTooltip=\"Adicionar novo filtro\"]:hover,button:has(i.fa-plus):hover{transform:translateY(-2px);border-color:#60a5fa;background-color:#bfdbfe;box-shadow:0 4px 6px #0000001a}button[matTooltip=\"Aplicar filtros\"],button:has(i.fa-search){display:inline-flex;align-items:center;gap:.5rem;border-radius:.5rem;background-color:#16a34a;padding:.5rem 1.25rem;font-size:.875rem;font-weight:500;color:#fff;transition:background-color .2s;cursor:pointer;border:none}button[matTooltip=\"Aplicar filtros\"]:hover,button:has(i.fa-search):hover{background-color:#15803d}button[matTooltip=\"Aplicar filtros\"]:disabled,button:has(i.fa-search):disabled{opacity:.5;cursor:not-allowed}button[matTooltip=\"Limpar filtros\"],button:has(i.fas.fa-redo-alt){display:inline-flex;align-items:center;gap:.5rem;border-radius:.5rem;background-color:#ef4444;padding:.5rem 1.25rem;font-size:.875rem;font-weight:500;color:#fff;transition:background-color .2s;cursor:pointer;border:none}button[matTooltip=\"Limpar filtros\"]:hover,button:has(i.fas.fa-redo-alt):hover{background-color:#dc2626}button[matTooltip=\"Exportar Tabela\"],button:has(i.fa-download){display:inline-flex;align-items:center;gap:.5rem;border-radius:.5rem;background-color:#f97316;padding:.5rem 1.25rem;font-size:.875rem;font-weight:500;color:#fff;transition:background-color .2s;cursor:pointer;border:none}button[matTooltip=\"Exportar Tabela\"]:hover:not(:disabled),button:has(i.fa-download):hover:not(:disabled){background-color:#ea580c}button[matTooltip=\"Exportar Tabela\"]:disabled,button:has(i.fa-download):disabled{opacity:.5;cursor:not-allowed}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i8.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i8.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i8.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i8.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i8.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i8.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i8.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i9.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i9.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i9.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i9.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i9.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i9.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i9.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i9.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i9.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i9.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: i9.MatNoDataRow, selector: "ng-template[matNoDataRow]" }, { kind: "component", type: i10.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "directive", type: i11.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i11.MatSortHeader, selector: "[mat-sort-header]", inputs: ["mat-sort-header", "arrowPosition", "start", "disabled", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "component", type: i12.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i12.MatLabel, selector: "mat-label" }, { kind: "directive", type: i12.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i13.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i14.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i14.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i15.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: i16.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i17.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: TableTabsComponent, selector: "lib-table-tabs", inputs: ["tabsData", "selectedTab"], outputs: ["tabSelected"] }, { kind: "component", type: TableTooltipComponent, selector: "lib-table-tooltip", inputs: ["state", "styles"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3591
|
+
static { this.ɵfac = function TableComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TableComponent)(i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(TableService), i0.ɵɵdirectiveInject(FilterService), i0.ɵɵdirectiveInject(TooltipService), i0.ɵɵdirectiveInject(PaginationService), i0.ɵɵdirectiveInject(i1.AngularFirestore), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
3592
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TableComponent, selectors: [["lib-table"]], viewQuery: function TableComponent_Query(rf, ctx) { if (rf & 1) {
|
|
3593
|
+
i0.ɵɵviewQuery(MatPaginator, 5);
|
|
3594
|
+
i0.ɵɵviewQuery(MatSort, 5);
|
|
3595
|
+
} if (rf & 2) {
|
|
3596
|
+
let _t;
|
|
3597
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.paginator = _t.first);
|
|
3598
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.sort = _t.first);
|
|
3599
|
+
} }, inputs: { data: "data", downloadTable: "downloadTable" }, standalone: false, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["sort", "matSort"], ["paginator", ""], ["input", ""], ["filterInput", ""], ["withinLimit", ""], ["class", "card-body", 4, "ngIf"], [1, "card-body"], [1, "flex", "flex-col", "justify-between", "gap-6"], ["class", "rounded-xl border border-gray-200 bg-white p-4 shadow-lg", 4, "ngIf"], [1, "flex", "flex-col"], [3, "tabsData", "selectedTab", "tabSelected", 4, "ngIf"], [1, "mat-elevation-z8", "w-full", "overflow-x-auto", "rounded-xl", "table-container"], ["mat-table", "", "matSort", "", "matSortActive", "createdAt", "matSortDirection", "desc", 3, "dataSource"], [3, "matColumnDef", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["mat-header-row", "", 4, "matHeaderRowDef"], ["mat-row", "", 3, "ngClass", "click", 4, "matRowDef", "matRowDefColumns"], ["class", "mat-row", 4, "matNoDataRow"], ["class", "flex justify-center", 4, "ngIf"], [1, "paginator-container"], ["showFirstLastButtons", "", "aria-label", "Select page of periodic elements", 3, "page", "pageSizeOptions", "pageSize", "length", "ngClass"], ["class", "page-number-display", 4, "ngIf"], [3, "state", "styles"], [1, "rounded-xl", "border", "border-gray-200", "bg-white", "p-4", "shadow-lg"], [1, "mb-4", "flex", "flex-col", "items-start", "justify-between", "gap-4", "border-b-2", "border-gray-200", "pb-4", "md:flex-row", "md:items-center"], [1, "flex", "flex-wrap", "items-center", "gap-4"], [1, "flex", "items-center", "gap-2"], [1, "fa", "fa-filter", "text-xl", "text-blue-500"], [1, "text-lg", "font-semibold", "text-gray-700"], [3, "ngClass", "routerLink", "click", 4, "ngIf"], ["class", "mb-4", 4, "ngIf"], ["class", "mb-4 space-y-3", 4, "ngIf"], [1, "-mb-2", "flex", "items-start", "justify-between", "gap-4", "border-t", "border-gray-200", "pt-4"], [4, "ngIf"], ["class", "flex flex-wrap gap-3 self-start sm:self-auto", 4, "ngIf"], [3, "click", "ngClass", "routerLink"], [3, "class", 4, "ngIf"], [1, "mb-4"], [1, "flex", "flex-wrap", "items-center", "gap-3", "p-2"], [1, "min-w-[200px]", "flex-1"], ["appearance", "outline", 1, "w-full"], [1, "fa", "fa-sort-alpha-down", "text-cyan-600"], ["placeholder", "Selecione...", 3, "formControl"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], [1, "mb-4", "space-y-3"], ["class", "flex flex-wrap items-center gap-3 p-2", 3, "formGroup", 4, "ngFor", "ngForOf"], [1, "flex", "flex-wrap", "items-center", "gap-3", "p-2", 3, "formGroup"], ["class", "min-w-[200px] flex-1", 4, "ngIf"], ["class", "min-w-[340px] flex-auto", 4, "ngIf"], ["class", "ml-auto flex-shrink-0", 4, "ngIf"], ["placeholder", "Selecione o tipo...", "formControlName", "selectFilter", 3, "selectionChange"], [1, "text-sm", "text-blue-500"], [1, "fa", "fa-search", "text-gray-400"], ["formControlName", "typeFilter", "matInput", "", "placeholder", "Digite para filtrar...", 3, "keyup.enter"], ["placeholder", "Selecione...", "formControlName", "selectItem", "multiple", ""], [1, "min-w-[340px]", "flex-auto"], [1, "flex", "flex-col", "items-stretch", "gap-3", "sm:flex-row", "sm:items-center"], ["appearance", "outline", 1, "flex-1"], [1, "fa", "fa-calendar", "text-gray-400"], ["type", "text", "matInput", "", "formControlName", "initialDate", "placeholder", "DD/MM/AAAA", "maxlength", "10", 3, "keydown.enter", "input"], ["type", "text", "matInput", "", "formControlName", "finalDate", "placeholder", "DD/MM/AAAA", "maxlength", "10", 3, "keydown.enter", "input"], [1, "ml-auto", "flex-shrink-0"], ["matTooltip", "Remover filtro", 1, "flex", "h-10", "w-10", "items-center", "justify-center", "rounded-full", "transition-colors", "duration-300", "hover:bg-red-100", 3, "click"], [1, "fa", "fa-trash", "text-red-500", "hover:text-red-600"], ["matTooltip", "Adicionar novo filtro", 1, "transform", "rounded-full", "border-2", "border-blue-300", "bg-blue-50", "px-6", "py-2", "text-sm", "font-medium", "text-blue-600", "transition-all", "duration-300", "hover:-translate-y-0.5", "hover:border-blue-400", "hover:bg-blue-100", "hover:shadow-md", 3, "click"], [1, "fa", "fa-plus", "mr-2"], [1, "flex", "flex-wrap", "gap-3", "self-start", "sm:self-auto"], ["type", "button", "matTooltip", "Aplicar filtros", 1, "flex", "items-center", "gap-2", "rounded-lg", "bg-green-600", "px-5", "py-2", "text-sm", "font-medium", "text-white", "transition-colors", "hover:bg-green-700", 3, "click"], [1, "fa", "fa-search"], ["matTooltip", "Limpar filtros", 1, "flex", "items-center", "gap-2", "rounded-lg", "bg-red-500", "px-5", "py-2", "text-sm", "font-medium", "text-white", "transition-colors", "hover:bg-red-600", 3, "click"], [1, "fas", "fa-redo-alt"], ["class", "flex items-center gap-2 rounded-lg bg-orange-500 px-5 py-2 text-sm font-medium text-white transition-colors hover:bg-orange-600", "matTooltipPosition", "above", "matTooltip", "Exportar Tabela", 3, "disabled", "click", 4, "ngIf"], ["matTooltipPosition", "above", "matTooltip", "Exportar Tabela", 1, "flex", "items-center", "gap-2", "rounded-lg", "bg-orange-500", "px-5", "py-2", "text-sm", "font-medium", "text-white", "transition-colors", "hover:bg-orange-600", 3, "click", "disabled"], [1, "fa", "fa-download"], [1, "fa", "fa-search", "text-blue-500"], ["matInput", "", "placeholder", "Digite para filtrar...", 3, "keyup.enter", "keyup"], ["matSuffix", "", 1, "text-gray-500"], ["class", "flex flex-wrap items-center gap-3", 3, "formGroup", 4, "ngFor", "ngForOf"], [1, "flex", "flex-wrap", "items-center", "gap-3", 3, "formGroup"], ["type", "text", "matInput", "", "formControlName", "initialDate", "placeholder", "DD/MM/AAAA", "maxlength", "10", 3, "keydown.enter", "input", "blur"], ["type", "text", "matInput", "", "formControlName", "finalDate", "placeholder", "DD/MM/AAAA", "maxlength", "10", 3, "keydown.enter", "input", "blur"], [3, "tabSelected", "tabsData", "selectedTab"], [3, "matColumnDef"], [4, "matHeaderCellDef"], ["mat-header-cell", "", 4, "ngIf"], ["mat-header-cell", "", "mat-sort-header", "", 4, "ngIf"], ["mat-cell", "", 3, "click", "mouseenter", "mouseleave", "mousemove", 4, "matCellDef"], ["mat-header-cell", ""], ["mat-header-cell", "", "mat-sort-header", ""], ["mat-cell", "", 3, "click", "mouseenter", "mouseleave", "mousemove"], ["class", "relative inline-block", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["target", "_blank", 3, "href", 4, "ngIf"], ["target", "_blank", 3, "href"], [1, "relative", "inline-block"], ["class", "absolute inset-0 m-auto", 3, "diameter", 4, "ngIf"], ["alt", "", 3, "load", "error", "src", "ngClass"], [1, "absolute", "inset-0", "m-auto", 3, "diameter"], [3, "click", 4, "ngFor", "ngForOf"], [3, "click"], [3, "ngClass", 4, "ngIf"], [3, "ngClass"], ["mat-header-row", ""], ["mat-row", "", 3, "click", "ngClass"], [1, "mat-row"], ["class", "mat-cell p-4", "colspan", "4", 4, "ngIf"], ["colspan", "4", 1, "mat-cell", "p-4"], [1, "flex", "justify-center"], [1, "page-number-display"]], template: function TableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3600
|
+
i0.ɵɵtemplate(0, TableComponent_div_0_Template, 21, 21, "div", 5);
|
|
3601
|
+
} if (rf & 2) {
|
|
3602
|
+
i0.ɵɵproperty("ngIf", ctx.data);
|
|
3603
|
+
} }, dependencies: [i1$1.NgClass, i1$1.NgForOf, i1$1.NgIf, i8.DefaultValueAccessor, i8.NgControlStatus, i8.NgControlStatusGroup, i8.MaxLengthValidator, i8.FormControlDirective, i8.FormGroupDirective, i8.FormControlName, i1$2.RouterLink, i9.MatTable, i9.MatHeaderCellDef, i9.MatHeaderRowDef, i9.MatColumnDef, i9.MatCellDef, i9.MatRowDef, i9.MatHeaderCell, i9.MatCell, i9.MatHeaderRow, i9.MatRow, i9.MatNoDataRow, i10.MatPaginator, i11.MatSort, i11.MatSortHeader, i12.MatFormField, i12.MatLabel, i12.MatSuffix, i13.MatInput, i14.MatSelect, i14.MatOption, i15.MatTooltip, i16.MatProgressSpinner, i17.MatIcon, TableTabsComponent, TableTooltipComponent, i1$1.AsyncPipe], styles: ["@charset \"UTF-8\";[_nghost-%COMP%]{--table-color: #1976d2;--table-text-color: white;--table-header-bg: #1976d2;--table-header-text: white;--table-scrollbar-bg: #f5f5f5;--table-scrollbar-thumb: var(--table-color)}.table-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px;background-color:var(--table-scrollbar-bg, #f5f5f5)}.table-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:var(--table-scrollbar-thumb, var(--table-color, #1976d2));border-radius:5px}.table-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:var(--table-scrollbar-thumb, var(--table-color, #1976d2));opacity:.8}.overflow-x-auto[_ngcontent-%COMP%]::-webkit-scrollbar, .overflow-y-auto[_ngcontent-%COMP%]::-webkit-scrollbar, .overflow-auto[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px;background-color:var(--table-scrollbar-bg, #f5f5f5)}.overflow-x-auto[_ngcontent-%COMP%]::-webkit-scrollbar-thumb, .overflow-y-auto[_ngcontent-%COMP%]::-webkit-scrollbar-thumb, .overflow-auto[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:var(--table-scrollbar-thumb, var(--table-color, #1976d2));border-radius:5px}.overflow-x-auto[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover, .overflow-y-auto[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover, .overflow-auto[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:var(--table-scrollbar-thumb, var(--table-color, #1976d2));opacity:.8}[_nghost-%COMP%] .mat-table .mat-header-cell, [_nghost-%COMP%] .mat-header-cell, [_nghost-%COMP%] th.mat-header-cell, [_nghost-%COMP%] .mat-mdc-table .mat-mdc-header-cell, [_nghost-%COMP%] .mat-mdc-header-cell, [_nghost-%COMP%] th.mat-mdc-header-cell{background-color:var(--table-header-bg, #1976d2)!important;color:var(--table-header-text, white)!important;font-weight:600} .fa-filter, i.fa-filter{color:var(--table-color, #1976d2)!important} .rounded-xl.border{border-color:var(--table-color, #1976d2)!important} .border-gray-200.rounded-xl{border-color:var(--table-color, #1976d2)!important} .mdc-notched-outline__notch{border-right:none!important}.mat-mdc-text-field-wrapper.mdc-text-field--outlined[_ngcontent-%COMP%] .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-bottom:0} .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-bottom:0}.mat-mdc-text-field-wrapper.mdc-text-field--outlined.mdc-text-field--disabled[_ngcontent-%COMP%]{background:#00000026;background-size:1px 100%!important;background-repeat:repeat-x!important}.mdc-text-field--disabled[_ngcontent-%COMP%] .mdc-text-field__input[_ngcontent-%COMP%]{color:#525252}button[_ngcontent-%COMP%]:not([matTooltip=\"Adicionar novo filtro\"]):not([matTooltip=\"Aplicar filtros\"]):not([matTooltip=\"Limpar filtros\"]):not([matTooltip=\"Exportar Tabela\"]):not(:has(i.fa-plus)):not(:has(i.fa-search)):not(:has(i.fas.fa-redo-alt)):not(:has(i.fa-download)){transition:all .2s ease;cursor:pointer}button[_ngcontent-%COMP%]:not([matTooltip=\"Adicionar novo filtro\"]):not([matTooltip=\"Aplicar filtros\"]):not([matTooltip=\"Limpar filtros\"]):not([matTooltip=\"Exportar Tabela\"]):not(:has(i.fa-plus)):not(:has(i.fa-search)):not(:has(i.fas.fa-redo-alt)):not(:has(i.fa-download)):hover:not(:disabled){opacity:.9;transform:scale(1.02)}button[_ngcontent-%COMP%]:not([matTooltip=\"Adicionar novo filtro\"]):not([matTooltip=\"Aplicar filtros\"]):not([matTooltip=\"Limpar filtros\"]):not([matTooltip=\"Exportar Tabela\"]):not(:has(i.fa-plus)):not(:has(i.fa-search)):not(:has(i.fas.fa-redo-alt)):not(:has(i.fa-download)):disabled{opacity:.5;cursor:not-allowed;transform:none} .hide-length .mat-mdc-paginator-range-label{display:none} .hide-next-button .mat-mdc-tooltip-trigger.mat-mdc-paginator-navigation-next.mdc-icon-button.mat-mdc-icon-button.mat-unthemed.mat-mdc-button-base{visibility:hidden} .hide-next-button .mat-mdc-tooltip-trigger.mat-mdc-paginator-navigation-last.mdc-icon-button.mat-mdc-icon-button.mat-unthemed.mat-mdc-button-base.ng-star-inserted{visibility:hidden} .mat-mdc-text-field-wrapper.mdc-text-field.ng-tns-c162-1.mdc-text-field--filled{width:25dvw} .custom-filter .mat-mdc-text-field-wrapper{width:20dvw;max-width:300px}button[matTooltip=\"Adicionar novo filtro\"][_ngcontent-%COMP%], button[_ngcontent-%COMP%]:has(i.fa-plus){display:inline-flex;align-items:center;gap:.5rem;border-radius:9999px;border:2px solid #93c5fd;background-color:#dbeafe;padding:.5rem 1.5rem;font-size:.875rem;font-weight:500;color:#2563eb;transition:all .3s;cursor:pointer;transform:translateY(0)}button[matTooltip=\"Adicionar novo filtro\"][_ngcontent-%COMP%]:hover, button[_ngcontent-%COMP%]:has(i.fa-plus):hover{transform:translateY(-2px);border-color:#60a5fa;background-color:#bfdbfe;box-shadow:0 4px 6px #0000001a}button[matTooltip=\"Aplicar filtros\"][_ngcontent-%COMP%], button[_ngcontent-%COMP%]:has(i.fa-search){display:inline-flex;align-items:center;gap:.5rem;border-radius:.5rem;background-color:#16a34a;padding:.5rem 1.25rem;font-size:.875rem;font-weight:500;color:#fff;transition:background-color .2s;cursor:pointer;border:none}button[matTooltip=\"Aplicar filtros\"][_ngcontent-%COMP%]:hover, button[_ngcontent-%COMP%]:has(i.fa-search):hover{background-color:#15803d}button[matTooltip=\"Aplicar filtros\"][_ngcontent-%COMP%]:disabled, button[_ngcontent-%COMP%]:has(i.fa-search):disabled{opacity:.5;cursor:not-allowed}button[matTooltip=\"Limpar filtros\"][_ngcontent-%COMP%], button[_ngcontent-%COMP%]:has(i.fas.fa-redo-alt){display:inline-flex;align-items:center;gap:.5rem;border-radius:.5rem;background-color:#ef4444;padding:.5rem 1.25rem;font-size:.875rem;font-weight:500;color:#fff;transition:background-color .2s;cursor:pointer;border:none}button[matTooltip=\"Limpar filtros\"][_ngcontent-%COMP%]:hover, button[_ngcontent-%COMP%]:has(i.fas.fa-redo-alt):hover{background-color:#dc2626}button[matTooltip=\"Exportar Tabela\"][_ngcontent-%COMP%], button[_ngcontent-%COMP%]:has(i.fa-download){display:inline-flex;align-items:center;gap:.5rem;border-radius:.5rem;background-color:#f97316;padding:.5rem 1.25rem;font-size:.875rem;font-weight:500;color:#fff;transition:background-color .2s;cursor:pointer;border:none}button[matTooltip=\"Exportar Tabela\"][_ngcontent-%COMP%]:hover:not(:disabled), button[_ngcontent-%COMP%]:has(i.fa-download):hover:not(:disabled){background-color:#ea580c}button[matTooltip=\"Exportar Tabela\"][_ngcontent-%COMP%]:disabled, button[_ngcontent-%COMP%]:has(i.fa-download):disabled{opacity:.5;cursor:not-allowed}"], changeDetection: 0 }); }
|
|
2709
3604
|
}
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
args: [{ selector: 'lib-table', standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"data\" class=\"card-body\">\n <div class=\"flex flex-col justify-between gap-6\">\n <!-- UNIFIED CONTROL PANEL: FILTERS, SORT & ACTIONS -->\n <div\n class=\"rounded-xl border border-gray-200 bg-white p-4 shadow-lg\"\n *ngIf=\"\n data.pagination === true &&\n (dropdownItems.length > 0 ||\n sortableDropdownItems.length > 0 ||\n data.actionButton)\n \"\n >\n <!-- PANEL HEADER: Title and Custom Action -->\n <div\n class=\"mb-4 flex flex-col items-start justify-between gap-4 border-b-2 border-gray-200 pb-4 md:flex-row md:items-center\"\n >\n <!-- Left Side: Title & Main Action Button -->\n <div class=\"flex flex-wrap items-center gap-4\">\n <div class=\"flex items-center gap-2\">\n <i class=\"fa fa-filter text-xl text-blue-500\"></i>\n <span class=\"text-lg font-semibold text-gray-700\"\n >Filtros e A\u00E7\u00F5es</span\n >\n </div>\n <button\n *ngIf=\"data.actionButton && data.actionButton.condition\"\n [ngClass]=\"getActionButtonClass()\"\n [routerLink]=\"data.actionButton.routerLink\"\n (click)=\"\n data.actionButton.method ? data.actionButton.method($event) : null\n \"\n >\n <i\n *ngIf=\"data.actionButton.icon\"\n [class]=\"data.actionButton.icon\"\n ></i>\n {{ data.actionButton.label }}\n </button>\n </div>\n </div>\n\n <!-- SORT FIELD (Integrated with filters) -->\n <div class=\"mb-4\" *ngIf=\"sortableDropdownItems.length > 0\">\n <div class=\"flex flex-wrap items-center gap-3 p-2\">\n <div class=\"min-w-[200px] flex-1\">\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-sort-alpha-down text-cyan-600\"></i>\n <span>Ordenar por</span>\n </mat-label>\n <mat-select placeholder=\"Selecione...\" [formControl]=\"selectSort\">\n <mat-option\n *ngFor=\"let item of sortableDropdownItems\"\n [value]=\"item\"\n >\n <div class=\"flex items-center gap-2\">\n <i class=\"fa fa-sort-alpha-down text-cyan-600\"></i>\n <span>{{ item.title }}</span>\n </div>\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n </div>\n </div>\n\n <!-- FILTERS CONTENT (WITH REFINEMENTS) -->\n <div class=\"mb-4 space-y-3\" *ngIf=\"filtersForm.controls.length > 0\">\n <div\n [formGroup]=\"$any(filterGroup)\"\n *ngFor=\"let filterGroup of filtersForm.controls; let i = index\"\n class=\"flex flex-wrap items-center gap-3 p-2\"\n >\n <!-- FILTER TYPE SELECTOR -->\n <div class=\"min-w-[200px] flex-1\" *ngIf=\"dropdownItems.length > 0\">\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label>Tipo de filtro</mat-label>\n <mat-select\n placeholder=\"Selecione o tipo...\"\n formControlName=\"selectFilter\"\n (selectionChange)=\"onSelectFilterChange()\"\n >\n <mat-option\n *ngFor=\"let item of getAvailableFilterOptions()\"\n [value]=\"item\"\n >\n <div class=\"flex items-center gap-2\">\n <i\n [class]=\"item.icon || 'fa fa-filter'\"\n class=\"text-sm text-blue-500\"\n ></i>\n <span>{{ item.title }}</span>\n </div>\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n\n <!-- TEXT FILTER -->\n <div\n class=\"min-w-[200px] flex-1\"\n *ngIf=\"\n $any(filterGroup).get('selectFilter')?.value?.arrange === 'filter'\n \"\n >\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-search text-gray-400\"></i>\n <span>{{\n $any(filterGroup).get(\"selectFilter\")?.value?.title ||\n \"Filtrar\"\n }}</span>\n </mat-label>\n <input\n (keyup.enter)=\"search($event)\"\n formControlName=\"typeFilter\"\n matInput\n placeholder=\"Digite para filtrar...\"\n #input\n />\n </mat-form-field>\n </div>\n\n <!-- DROPDOWN FILTER -->\n <div\n class=\"min-w-[200px] flex-1\"\n *ngIf=\"\n $any(filterGroup).get('selectFilter')?.value &&\n $any(filterGroup)\n .get('selectFilter')\n ?.value.hasOwnProperty('items')\n \"\n >\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label>{{\n $any(filterGroup).get(\"selectFilter\")?.value?.title ||\n \"Selecione\"\n }}</mat-label>\n <mat-select\n placeholder=\"Selecione...\"\n formControlName=\"selectItem\"\n multiple\n >\n <mat-option\n *ngFor=\"\n let item of $any(filterGroup).get('selectFilter')?.value\n .items\n \"\n [value]=\"item\"\n >\n {{ item.label }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n\n <!-- DATE FILTER -->\n <div\n class=\"min-w-[340px] flex-auto\"\n *ngIf=\"\n $any(filterGroup).get('selectFilter')?.value?.arrange ===\n 'filterByDate'\n \"\n >\n <div\n class=\"flex flex-col items-stretch gap-3 sm:flex-row sm:items-center\"\n >\n <mat-form-field appearance=\"outline\" class=\"flex-1\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-calendar text-gray-400\"></i>\n <span>Data Inicial</span>\n </mat-label>\n <input\n type=\"text\"\n matInput\n (keydown.enter)=\"search($event)\"\n (input)=\"onDateInput($event, 'initialDate', i)\"\n formControlName=\"initialDate\"\n placeholder=\"DD/MM/AAAA\"\n maxlength=\"10\"\n />\n </mat-form-field>\n\n <mat-form-field appearance=\"outline\" class=\"flex-1\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-calendar text-gray-400\"></i>\n <span>Data Final</span>\n </mat-label>\n <input\n type=\"text\"\n (keydown.enter)=\"search($event)\"\n (input)=\"onDateInput($event, 'finalDate', i)\"\n matInput\n formControlName=\"finalDate\"\n placeholder=\"DD/MM/AAAA\"\n maxlength=\"10\"\n />\n </mat-form-field>\n </div>\n </div>\n\n <!-- REMOVE FILTER BUTTON -->\n <div *ngIf=\"filtersForm.length > 1\" class=\"ml-auto flex-shrink-0\">\n <button\n (click)=\"removeFilter(i)\"\n class=\"flex h-10 w-10 items-center justify-center rounded-full transition-colors duration-300 hover:bg-red-100\"\n matTooltip=\"Remover filtro\"\n >\n <i class=\"fa fa-trash text-red-500 hover:text-red-600\"></i>\n </button>\n </div>\n </div>\n </div>\n\n <!-- PANEL FOOTER: Add Filter & Action Buttons -->\n <div\n class=\"-mb-2 flex items-start justify-between gap-4 border-t border-gray-200 pt-4\"\n >\n <!-- Add Filter Button -->\n <div *ngIf=\"dropdownItems.length > 0\">\n <button\n (click)=\"addFilter()\"\n class=\"transform rounded-full border-2 border-blue-300 bg-blue-50 px-6 py-2 text-sm font-medium text-blue-600 transition-all duration-300 hover:-translate-y-0.5 hover:border-blue-400 hover:bg-blue-100 hover:shadow-md\"\n matTooltip=\"Adicionar novo filtro\"\n >\n <i class=\"fa fa-plus mr-2\"></i>\n Adicionar Filtro\n </button>\n </div>\n\n <!-- Right Side: Search, Reset, Export -->\n <div\n class=\"flex flex-wrap gap-3 self-start sm:self-auto\"\n *ngIf=\"\n this.hasFilterableColumn === true || this.hasSortableColumn === true\n \"\n >\n <button\n (click)=\"search()\"\n type=\"button\"\n class=\"flex items-center gap-2 rounded-lg bg-green-600 px-5 py-2 text-sm font-medium text-white transition-colors hover:bg-green-700\"\n matTooltip=\"Aplicar filtros\"\n >\n <i class=\"fa fa-search\"></i>\n Pesquisar\n </button>\n\n <button\n (click)=\"resetFilter()\"\n class=\"flex items-center gap-2 rounded-lg bg-red-500 px-5 py-2 text-sm font-medium text-white transition-colors hover:bg-red-600\"\n matTooltip=\"Limpar filtros\"\n >\n <i class=\"fas fa-redo-alt\"></i>\n Resetar\n </button>\n\n <button\n *ngIf=\"data.download !== false && downloadTable\"\n class=\"flex items-center gap-2 rounded-lg bg-orange-500 px-5 py-2 text-sm font-medium text-white transition-colors hover:bg-orange-600\"\n matTooltipPosition=\"above\"\n matTooltip=\"Exportar Tabela\"\n [disabled]=\"\n this.dataSource && this.dataSource.filteredData.length <= 0\n \"\n (click)=\"\n $any(arrange) && downloadTable !== undefined\n ? downloadTable($any(arrange), data.conditions || [])\n : null\n \"\n >\n <i class=\"fa fa-download\"></i>\n Exportar\n </button>\n </div>\n </div>\n </div>\n\n <!-- UNIFIED CONTROL PANEL (for non-paginated tables): SEARCH, SORT & FILTERS -->\n <div\n class=\"rounded-xl border border-gray-200 bg-white p-4 shadow-lg\"\n *ngIf=\"\n data.pagination === false &&\n (hasFilterableColumn === true ||\n dropdownItems.length > 0 ||\n data.actionButton)\n \"\n >\n <!-- PANEL HEADER: Title and Custom Action -->\n <div\n class=\"mb-4 flex flex-col items-start justify-between gap-4 border-b-2 border-gray-200 pb-4 md:flex-row md:items-center\"\n >\n <!-- Left Side: Title & Main Action Button -->\n <div class=\"flex flex-wrap items-center gap-4\">\n <div class=\"flex items-center gap-2\">\n <i class=\"fa fa-filter text-xl text-blue-500\"></i>\n <span class=\"text-lg font-semibold text-gray-700\"\n >Filtros e A\u00E7\u00F5es</span\n >\n </div>\n <button\n *ngIf=\"data.actionButton && data.actionButton.condition\"\n [ngClass]=\"getActionButtonClass()\"\n [routerLink]=\"data.actionButton.routerLink\"\n (click)=\"\n data.actionButton.method ? data.actionButton.method($event) : null\n \"\n >\n <i\n *ngIf=\"data.actionButton.icon\"\n [class]=\"data.actionButton.icon\"\n ></i>\n {{ data.actionButton.label }}\n </button>\n </div>\n </div>\n\n <!-- SIMPLE SEARCH -->\n <div\n class=\"mb-4\"\n *ngIf=\"hasFilterableColumn === true && data.showSimpleSearch !== false\"\n >\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-search text-blue-500\"></i>\n Buscar\n </mat-label>\n <input\n matInput\n (keyup.enter)=\"search($event)\"\n (keyup)=\"applyFilter(filterInput.value)\"\n placeholder=\"Digite para filtrar...\"\n #filterInput\n />\n <mat-icon matSuffix class=\"text-gray-500\">search</mat-icon>\n </mat-form-field>\n </div>\n\n <!-- FILTERS PANEL -->\n <div *ngIf=\"dropdownItems.length > 0\">\n <!-- FILTERS CONTENT -->\n <div class=\"mb-4 space-y-3\" *ngIf=\"filtersForm.controls.length > 0\">\n <div\n [formGroup]=\"$any(filterGroup)\"\n *ngFor=\"let filterGroup of filtersForm.controls; let i = index\"\n class=\"flex flex-wrap items-center gap-3\"\n >\n <!-- FILTER TYPE SELECTOR -->\n <div class=\"min-w-[200px] flex-1\" *ngIf=\"dropdownItems.length > 0\">\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label>Tipo de filtro</mat-label>\n <mat-select\n placeholder=\"Selecione o tipo...\"\n formControlName=\"selectFilter\"\n (selectionChange)=\"onSelectFilterChange()\"\n >\n <mat-option\n *ngFor=\"let item of getAvailableFilterOptions()\"\n [value]=\"item\"\n >\n <div class=\"flex items-center gap-2\">\n <i\n [class]=\"item.icon || 'fa fa-filter'\"\n class=\"text-sm text-blue-500\"\n ></i>\n <span>{{ item.title }}</span>\n </div>\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n\n <!-- TEXT FILTER -->\n <div\n class=\"min-w-[200px] flex-1\"\n *ngIf=\"\n $any(filterGroup).get('selectFilter')?.value?.arrange ===\n 'filter'\n \"\n >\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-search text-gray-400\"></i>\n <span>{{\n $any(filterGroup).get(\"selectFilter\")?.value?.title ||\n \"Filtrar\"\n }}</span>\n </mat-label>\n <input\n (keyup.enter)=\"search($event)\"\n formControlName=\"typeFilter\"\n matInput\n placeholder=\"Digite para filtrar...\"\n #input\n />\n </mat-form-field>\n </div>\n\n <!-- DROPDOWN FILTER -->\n <div\n class=\"min-w-[200px] flex-1\"\n *ngIf=\"\n $any(filterGroup).get('selectFilter')?.value &&\n $any(filterGroup)\n .get('selectFilter')\n ?.value.hasOwnProperty('items')\n \"\n >\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label>{{\n $any(filterGroup).get(\"selectFilter\")?.value?.title ||\n \"Selecione\"\n }}</mat-label>\n <mat-select\n placeholder=\"Selecione...\"\n formControlName=\"selectItem\"\n multiple\n >\n <mat-option\n *ngFor=\"\n let item of $any(filterGroup).get('selectFilter')?.value\n .items\n \"\n [value]=\"item\"\n >\n {{ item.label }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n\n <!-- DATE FILTER -->\n <div\n class=\"min-w-[340px] flex-auto\"\n *ngIf=\"\n $any(filterGroup).get('selectFilter')?.value?.arrange ===\n 'filterByDate'\n \"\n >\n <div\n class=\"flex flex-col items-stretch gap-3 sm:flex-row sm:items-center\"\n >\n <mat-form-field appearance=\"outline\" class=\"flex-1\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-calendar text-gray-400\"></i>\n <span>Data Inicial</span>\n </mat-label>\n <input\n type=\"text\"\n matInput\n (keydown.enter)=\"search($event)\"\n (input)=\"onDateInput($event, 'initialDate', i)\"\n (blur)=\"onDateFilterChange()\"\n formControlName=\"initialDate\"\n placeholder=\"DD/MM/AAAA\"\n maxlength=\"10\"\n />\n </mat-form-field>\n\n <mat-form-field appearance=\"outline\" class=\"flex-1\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-calendar text-gray-400\"></i>\n <span>Data Final</span>\n </mat-label>\n <input\n type=\"text\"\n (keydown.enter)=\"search($event)\"\n (input)=\"onDateInput($event, 'finalDate', i)\"\n (blur)=\"onDateFilterChange()\"\n matInput\n formControlName=\"finalDate\"\n placeholder=\"DD/MM/AAAA\"\n maxlength=\"10\"\n />\n </mat-form-field>\n </div>\n </div>\n\n <!-- REMOVE FILTER BUTTON -->\n <div *ngIf=\"filtersForm.length > 1\" class=\"ml-auto flex-shrink-0\">\n <button\n (click)=\"removeFilter(i)\"\n class=\"flex h-10 w-10 items-center justify-center rounded-full transition-colors duration-300 hover:bg-red-100\"\n matTooltip=\"Remover filtro\"\n >\n <i class=\"fa fa-trash text-red-500 hover:text-red-600\"></i>\n </button>\n </div>\n </div>\n </div>\n\n <!-- PANEL FOOTER: Add Filter & Actions -->\n <div\n class=\"-mb-2 flex items-start justify-between gap-4 border-t border-gray-200 pt-4\"\n >\n <!-- Add Filter Button -->\n <div *ngIf=\"dropdownItems.length > 0\">\n <button\n (click)=\"addFilter()\"\n class=\"transform rounded-full border-2 border-blue-300 bg-blue-50 px-6 py-2 text-sm font-medium text-blue-600 transition-all duration-300 hover:-translate-y-0.5 hover:border-blue-400 hover:bg-blue-100 hover:shadow-md\"\n matTooltip=\"Adicionar novo filtro\"\n >\n <i class=\"fa fa-plus mr-2\"></i>\n Adicionar Filtro\n </button>\n </div>\n\n <!-- Action Buttons -->\n <div\n class=\"flex flex-wrap gap-3 self-start sm:self-auto\"\n *ngIf=\"\n this.hasFilterableColumn === true ||\n this.hasSortableColumn === true\n \"\n >\n <button\n (click)=\"search()\"\n type=\"button\"\n class=\"flex items-center gap-2 rounded-lg bg-green-600 px-5 py-2 text-sm font-medium text-white transition-colors hover:bg-green-700\"\n matTooltip=\"Aplicar filtros\"\n >\n <i class=\"fa fa-search\"></i>\n Pesquisar\n </button>\n\n <button\n (click)=\"resetFilter()\"\n class=\"flex items-center gap-2 rounded-lg bg-red-500 px-5 py-2 text-sm font-medium text-white transition-colors hover:bg-red-600\"\n matTooltip=\"Limpar filtros\"\n >\n <i class=\"fas fa-redo-alt\"></i>\n Resetar\n </button>\n\n <button\n *ngIf=\"data.download !== false && downloadTable\"\n class=\"flex items-center gap-2 rounded-lg bg-orange-500 px-5 py-2 text-sm font-medium text-white transition-colors hover:bg-orange-600\"\n matTooltipPosition=\"above\"\n matTooltip=\"Exportar Tabela\"\n [disabled]=\"\n this.dataSource && this.dataSource.filteredData.length <= 0\n \"\n (click)=\"handleDownload()\"\n >\n <i class=\"fa fa-download\"></i>\n Exportar\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"flex flex-col\">\n <!-- TABS COMPONENT -->\n <lib-table-tabs\n *ngIf=\"data.tabs && data.tabs.tabsData && data.tabs.tabsData.length > 0\"\n [tabsData]=\"data.tabs.tabsData\"\n [selectedTab]=\"selectedTab\"\n (tabSelected)=\"onTabSelected($event)\"\n ></lib-table-tabs>\n <div\n class=\"mat-elevation-z8 w-full overflow-x-auto rounded-xl table-container\"\n >\n <table\n mat-table\n [dataSource]=\"dataSource\"\n matSort\n #sort=\"matSort\"\n matSortActive=\"createdAt\"\n matSortDirection=\"desc\"\n >\n <ng-container\n *ngFor=\"let col of data.displayedColumns; trackBy: trackByProperty\"\n matColumnDef=\"{{ col.property }}\"\n >\n <ng-container *matHeaderCellDef>\n <!-- IF THE COLUMN IS NOT SORTABLE, THEN DON'T SHOW THE SORT BUTTONS -->\n <th\n *ngIf=\"!col.isSortable || data.pagination === true\"\n mat-header-cell\n >\n {{ col.title }}\n </th>\n <!-- IF THE COLUMN IS SORTABLE, THEN SHOW THE SORT BUTTONS -->\n <th\n *ngIf=\"col.isSortable && data.pagination === false\"\n mat-header-cell\n mat-sort-header\n >\n {{ col.title }}\n </th>\n <td\n mat-cell\n *matCellDef=\"let row\"\n (click)=\"col.method ? col.method(row) : null\"\n (mouseenter)=\"onCellMouseEnter($event, row, col)\"\n (mouseleave)=\"onCellMouseLeave()\"\n (mousemove)=\"onCellMouseMove($event)\"\n >\n <!-- CHECK IF THE COLUMN MUST BE DISPLAYED -->\n <span *ngIf=\"!col.image && !col.iconClass && !col.method\">\n <ng-container>\n <span\n *ngIf=\"\n col.charLimit &&\n row[col.property] &&\n row[col.property].length > col.charLimit;\n else withinLimit\n \"\n >\n <a\n *ngIf=\"col.hasLink === true\"\n [href]=\"row[col.property]\"\n target=\"_blank\"\n >\n {{ getDisplayValue(col, row) }}\n </a>\n <a\n *ngIf=\"col.hasLink && isString(col.hasLink)\"\n [href]=\"col.hasLink\"\n target=\"_blank\"\n >\n {{ getDisplayValue(col, row) }}\n </a>\n <span\n *ngIf=\"col.hasLink !== true && !isString(col.hasLink)\"\n >\n {{ getDisplayValue(col, row) }}\n </span>\n </span>\n </ng-container>\n <ng-template #withinLimit>\n <a\n *ngIf=\"col.hasLink === true\"\n [href]=\"row[col.property]\"\n target=\"_blank\"\n >\n {{ getDisplayValue(col, row, true) }}\n </a>\n <a\n *ngIf=\"col.hasLink && isString(col.hasLink)\"\n [href]=\"col.hasLink\"\n target=\"_blank\"\n >\n {{ getDisplayValue(col, row, true) }}\n </a>\n <span\n *ngIf=\"col.hasLink !== true && !isString(col.hasLink)\"\n >\n {{ getDisplayValue(col, row, true) }}\n </span>\n </ng-template>\n </span>\n <!------------------- IMAGE ------------------>\n <!-- Imagem com loading -->\n <div\n *ngIf=\"\n col.image && col.image.path && !col.iconClass && !col.method\n \"\n class=\"relative inline-block\"\n >\n <mat-spinner\n *ngIf=\"isImageLoading(row, col)\"\n [diameter]=\"32\"\n class=\"absolute inset-0 m-auto\"\n ></mat-spinner>\n <img\n [src]=\"col.image.path + '/' + row[col.property]\"\n [ngClass]=\"col.image.class\"\n [class.opacity-0]=\"isImageLoading(row, col)\"\n alt=\"\"\n (load)=\"onImageLoad(row, col)\"\n (error)=\"onImageError($event, row, col, col.image.default)\"\n />\n </div>\n\n <!-- Imagem com URL completa e loading -->\n <div\n *ngIf=\"\n col.image && col.image.url && !col.iconClass && !col.method\n \"\n class=\"relative inline-block\"\n >\n <mat-spinner\n *ngIf=\"isImageLoading(row, col)\"\n [diameter]=\"32\"\n class=\"absolute inset-0 m-auto\"\n ></mat-spinner>\n <img\n [src]=\"row[col.property]\"\n [ngClass]=\"col.image.class\"\n [class.opacity-0]=\"isImageLoading(row, col)\"\n alt=\"\"\n (load)=\"onImageLoad(row, col)\"\n (error)=\"onImageError($event, row, col, col.image.default)\"\n />\n </div>\n <ng-container *ngIf=\"col.iconClass\">\n <button\n *ngFor=\"let iconClass of col.iconClass\"\n (click)=\"\n iconClass.buttonMethod\n ? iconClass.buttonMethod(row, $event)\n : $event.stopPropagation()\n \"\n >\n <span\n [ngClass]=\"iconClass.class\"\n *ngIf=\"\n iconClass.condition === undefined ||\n (iconClass.condition !== undefined &&\n $any(iconClass.condition)(row))\n \"\n >{{ iconClass.text }}</span\n >\n </button>\n </ng-container>\n </td>\n </ng-container>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnProperties\"></tr>\n <tr\n [ngClass]=\"getTableRowNgClass()\"\n mat-row\n *matRowDef=\"let row; columns: columnProperties\"\n (click)=\"goToDetails(row)\"\n ></tr>\n\n <!-- ROW SHOWN WHEN THERE IS NO MATCHING DATA. -->\n <tr class=\"mat-row\" *matNoDataRow>\n <td *ngIf=\"!(isLoading$ | async)\" class=\"mat-cell p-4\" colspan=\"4\">\n Nenhum resultado encontrado para a busca\n </td>\n </tr>\n </table>\n\n <div class=\"flex justify-center\" *ngIf=\"isLoading$ | async\">\n <mat-spinner></mat-spinner>\n </div>\n\n <div class=\"paginator-container\">\n <mat-paginator\n #paginator\n [pageSizeOptions]=\"[25, 50, 100]\"\n [pageSize]=\"pageSize\"\n [length]=\"totalItems\"\n showFirstLastButtons\n aria-label=\"Select page of periodic elements\"\n (page)=\"onPageChange($event)\"\n [ngClass]=\"getPaginatorNgClass()\"\n >\n </mat-paginator>\n <div\n *ngIf=\"\n !(isLoading$ | async) &&\n dataSource?.data &&\n dataSource.data.length > 0 &&\n data?.filterFn\n \"\n class=\"page-number-display\"\n >\n {{ currentPageNumber }}\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <!-- TOOLTIP PERSONALIZADO -->\n <lib-table-tooltip\n [state]=\"tooltipState\"\n [styles]=\"getTooltipStyles()\"\n ></lib-table-tooltip>\n</div>\n", styles: ["@charset \"UTF-8\";:host{--table-color: #1976d2;--table-text-color: white;--table-header-bg: #1976d2;--table-header-text: white;--table-scrollbar-bg: #f5f5f5;--table-scrollbar-thumb: var(--table-color)}.table-container::-webkit-scrollbar{width:10px;height:10px;background-color:var(--table-scrollbar-bg, #f5f5f5)}.table-container::-webkit-scrollbar-thumb{background-color:var(--table-scrollbar-thumb, var(--table-color, #1976d2));border-radius:5px}.table-container::-webkit-scrollbar-thumb:hover{background-color:var(--table-scrollbar-thumb, var(--table-color, #1976d2));opacity:.8}.overflow-x-auto::-webkit-scrollbar,.overflow-y-auto::-webkit-scrollbar,.overflow-auto::-webkit-scrollbar{width:10px;height:10px;background-color:var(--table-scrollbar-bg, #f5f5f5)}.overflow-x-auto::-webkit-scrollbar-thumb,.overflow-y-auto::-webkit-scrollbar-thumb,.overflow-auto::-webkit-scrollbar-thumb{background-color:var(--table-scrollbar-thumb, var(--table-color, #1976d2));border-radius:5px}.overflow-x-auto::-webkit-scrollbar-thumb:hover,.overflow-y-auto::-webkit-scrollbar-thumb:hover,.overflow-auto::-webkit-scrollbar-thumb:hover{background-color:var(--table-scrollbar-thumb, var(--table-color, #1976d2));opacity:.8}:host ::ng-deep .mat-table .mat-header-cell,:host ::ng-deep .mat-header-cell,:host ::ng-deep th.mat-header-cell,:host ::ng-deep .mat-mdc-table .mat-mdc-header-cell,:host ::ng-deep .mat-mdc-header-cell,:host ::ng-deep th.mat-mdc-header-cell{background-color:var(--table-header-bg, #1976d2)!important;color:var(--table-header-text, white)!important;font-weight:600}::ng-deep .fa-filter,::ng-deep i.fa-filter{color:var(--table-color, #1976d2)!important}::ng-deep .rounded-xl.border{border-color:var(--table-color, #1976d2)!important}::ng-deep .border-gray-200.rounded-xl{border-color:var(--table-color, #1976d2)!important}::ng-deep .mdc-notched-outline__notch{border-right:none!important}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-bottom:0}::ng-deep .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-bottom:0}.mat-mdc-text-field-wrapper.mdc-text-field--outlined.mdc-text-field--disabled{background:#00000026;background-size:1px 100%!important;background-repeat:repeat-x!important}.mdc-text-field--disabled .mdc-text-field__input{color:#525252}button:not([matTooltip=\"Adicionar novo filtro\"]):not([matTooltip=\"Aplicar filtros\"]):not([matTooltip=\"Limpar filtros\"]):not([matTooltip=\"Exportar Tabela\"]):not(:has(i.fa-plus)):not(:has(i.fa-search)):not(:has(i.fas.fa-redo-alt)):not(:has(i.fa-download)){transition:all .2s ease;cursor:pointer}button:not([matTooltip=\"Adicionar novo filtro\"]):not([matTooltip=\"Aplicar filtros\"]):not([matTooltip=\"Limpar filtros\"]):not([matTooltip=\"Exportar Tabela\"]):not(:has(i.fa-plus)):not(:has(i.fa-search)):not(:has(i.fas.fa-redo-alt)):not(:has(i.fa-download)):hover:not(:disabled){opacity:.9;transform:scale(1.02)}button:not([matTooltip=\"Adicionar novo filtro\"]):not([matTooltip=\"Aplicar filtros\"]):not([matTooltip=\"Limpar filtros\"]):not([matTooltip=\"Exportar Tabela\"]):not(:has(i.fa-plus)):not(:has(i.fa-search)):not(:has(i.fas.fa-redo-alt)):not(:has(i.fa-download)):disabled{opacity:.5;cursor:not-allowed;transform:none}::ng-deep .hide-length .mat-mdc-paginator-range-label{display:none}::ng-deep .hide-next-button .mat-mdc-tooltip-trigger.mat-mdc-paginator-navigation-next.mdc-icon-button.mat-mdc-icon-button.mat-unthemed.mat-mdc-button-base{visibility:hidden}::ng-deep .hide-next-button .mat-mdc-tooltip-trigger.mat-mdc-paginator-navigation-last.mdc-icon-button.mat-mdc-icon-button.mat-unthemed.mat-mdc-button-base.ng-star-inserted{visibility:hidden}::ng-deep .mat-mdc-text-field-wrapper.mdc-text-field.ng-tns-c162-1.mdc-text-field--filled{width:25dvw}::ng-deep .custom-filter .mat-mdc-text-field-wrapper{width:20dvw;max-width:300px}button[matTooltip=\"Adicionar novo filtro\"],button:has(i.fa-plus){display:inline-flex;align-items:center;gap:.5rem;border-radius:9999px;border:2px solid #93c5fd;background-color:#dbeafe;padding:.5rem 1.5rem;font-size:.875rem;font-weight:500;color:#2563eb;transition:all .3s;cursor:pointer;transform:translateY(0)}button[matTooltip=\"Adicionar novo filtro\"]:hover,button:has(i.fa-plus):hover{transform:translateY(-2px);border-color:#60a5fa;background-color:#bfdbfe;box-shadow:0 4px 6px #0000001a}button[matTooltip=\"Aplicar filtros\"],button:has(i.fa-search){display:inline-flex;align-items:center;gap:.5rem;border-radius:.5rem;background-color:#16a34a;padding:.5rem 1.25rem;font-size:.875rem;font-weight:500;color:#fff;transition:background-color .2s;cursor:pointer;border:none}button[matTooltip=\"Aplicar filtros\"]:hover,button:has(i.fa-search):hover{background-color:#15803d}button[matTooltip=\"Aplicar filtros\"]:disabled,button:has(i.fa-search):disabled{opacity:.5;cursor:not-allowed}button[matTooltip=\"Limpar filtros\"],button:has(i.fas.fa-redo-alt){display:inline-flex;align-items:center;gap:.5rem;border-radius:.5rem;background-color:#ef4444;padding:.5rem 1.25rem;font-size:.875rem;font-weight:500;color:#fff;transition:background-color .2s;cursor:pointer;border:none}button[matTooltip=\"Limpar filtros\"]:hover,button:has(i.fas.fa-redo-alt):hover{background-color:#dc2626}button[matTooltip=\"Exportar Tabela\"],button:has(i.fa-download){display:inline-flex;align-items:center;gap:.5rem;border-radius:.5rem;background-color:#f97316;padding:.5rem 1.25rem;font-size:.875rem;font-weight:500;color:#fff;transition:background-color .2s;cursor:pointer;border:none}button[matTooltip=\"Exportar Tabela\"]:hover:not(:disabled),button:has(i.fa-download):hover:not(:disabled){background-color:#ea580c}button[matTooltip=\"Exportar Tabela\"]:disabled,button:has(i.fa-download):disabled{opacity:.5;cursor:not-allowed}\n"] }]
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
3605
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TableComponent, [{
|
|
3606
|
+
type: Component,
|
|
3607
|
+
args: [{ selector: 'lib-table', standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"data\" class=\"card-body\">\n <div class=\"flex flex-col justify-between gap-6\">\n <!-- UNIFIED CONTROL PANEL: FILTERS, SORT & ACTIONS -->\n <div\n class=\"rounded-xl border border-gray-200 bg-white p-4 shadow-lg\"\n *ngIf=\"\n data.pagination === true &&\n (dropdownItems.length > 0 ||\n sortableDropdownItems.length > 0 ||\n data.actionButton)\n \"\n >\n <!-- PANEL HEADER: Title and Custom Action -->\n <div\n class=\"mb-4 flex flex-col items-start justify-between gap-4 border-b-2 border-gray-200 pb-4 md:flex-row md:items-center\"\n >\n <!-- Left Side: Title & Main Action Button -->\n <div class=\"flex flex-wrap items-center gap-4\">\n <div class=\"flex items-center gap-2\">\n <i class=\"fa fa-filter text-xl text-blue-500\"></i>\n <span class=\"text-lg font-semibold text-gray-700\"\n >Filtros e A\u00E7\u00F5es</span\n >\n </div>\n <button\n *ngIf=\"data.actionButton && data.actionButton.condition\"\n [ngClass]=\"getActionButtonClass()\"\n [routerLink]=\"data.actionButton.routerLink\"\n (click)=\"\n data.actionButton.method ? data.actionButton.method($event) : null\n \"\n >\n <i\n *ngIf=\"data.actionButton.icon\"\n [class]=\"data.actionButton.icon\"\n ></i>\n {{ data.actionButton.label }}\n </button>\n </div>\n </div>\n\n <!-- SORT FIELD (Integrated with filters) -->\n <div class=\"mb-4\" *ngIf=\"sortableDropdownItems.length > 0\">\n <div class=\"flex flex-wrap items-center gap-3 p-2\">\n <div class=\"min-w-[200px] flex-1\">\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-sort-alpha-down text-cyan-600\"></i>\n <span>Ordenar por</span>\n </mat-label>\n <mat-select placeholder=\"Selecione...\" [formControl]=\"selectSort\">\n <mat-option\n *ngFor=\"let item of sortableDropdownItems\"\n [value]=\"item\"\n >\n <div class=\"flex items-center gap-2\">\n <i class=\"fa fa-sort-alpha-down text-cyan-600\"></i>\n <span>{{ item.title }}</span>\n </div>\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n </div>\n </div>\n\n <!-- FILTERS CONTENT (WITH REFINEMENTS) -->\n <div class=\"mb-4 space-y-3\" *ngIf=\"filtersForm.controls.length > 0\">\n <div\n [formGroup]=\"$any(filterGroup)\"\n *ngFor=\"let filterGroup of filtersForm.controls; let i = index\"\n class=\"flex flex-wrap items-center gap-3 p-2\"\n >\n <!-- FILTER TYPE SELECTOR -->\n <div class=\"min-w-[200px] flex-1\" *ngIf=\"dropdownItems.length > 0\">\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label>Tipo de filtro</mat-label>\n <mat-select\n placeholder=\"Selecione o tipo...\"\n formControlName=\"selectFilter\"\n (selectionChange)=\"onSelectFilterChange()\"\n >\n <mat-option\n *ngFor=\"let item of getAvailableFilterOptions()\"\n [value]=\"item\"\n >\n <div class=\"flex items-center gap-2\">\n <i\n [class]=\"item.icon || 'fa fa-filter'\"\n class=\"text-sm text-blue-500\"\n ></i>\n <span>{{ item.title }}</span>\n </div>\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n\n <!-- TEXT FILTER -->\n <div\n class=\"min-w-[200px] flex-1\"\n *ngIf=\"\n $any(filterGroup).get('selectFilter')?.value?.arrange === 'filter'\n \"\n >\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-search text-gray-400\"></i>\n <span>{{\n $any(filterGroup).get(\"selectFilter\")?.value?.title ||\n \"Filtrar\"\n }}</span>\n </mat-label>\n <input\n (keyup.enter)=\"search($event)\"\n formControlName=\"typeFilter\"\n matInput\n placeholder=\"Digite para filtrar...\"\n #input\n />\n </mat-form-field>\n </div>\n\n <!-- DROPDOWN FILTER -->\n <div\n class=\"min-w-[200px] flex-1\"\n *ngIf=\"\n $any(filterGroup).get('selectFilter')?.value &&\n $any(filterGroup)\n .get('selectFilter')\n ?.value.hasOwnProperty('items')\n \"\n >\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label>{{\n $any(filterGroup).get(\"selectFilter\")?.value?.title ||\n \"Selecione\"\n }}</mat-label>\n <mat-select\n placeholder=\"Selecione...\"\n formControlName=\"selectItem\"\n multiple\n >\n <mat-option\n *ngFor=\"\n let item of $any(filterGroup).get('selectFilter')?.value\n .items\n \"\n [value]=\"item\"\n >\n {{ item.label }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n\n <!-- DATE FILTER -->\n <div\n class=\"min-w-[340px] flex-auto\"\n *ngIf=\"\n $any(filterGroup).get('selectFilter')?.value?.arrange ===\n 'filterByDate'\n \"\n >\n <div\n class=\"flex flex-col items-stretch gap-3 sm:flex-row sm:items-center\"\n >\n <mat-form-field appearance=\"outline\" class=\"flex-1\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-calendar text-gray-400\"></i>\n <span>Data Inicial</span>\n </mat-label>\n <input\n type=\"text\"\n matInput\n (keydown.enter)=\"search($event)\"\n (input)=\"onDateInput($event, 'initialDate', i)\"\n formControlName=\"initialDate\"\n placeholder=\"DD/MM/AAAA\"\n maxlength=\"10\"\n />\n </mat-form-field>\n\n <mat-form-field appearance=\"outline\" class=\"flex-1\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-calendar text-gray-400\"></i>\n <span>Data Final</span>\n </mat-label>\n <input\n type=\"text\"\n (keydown.enter)=\"search($event)\"\n (input)=\"onDateInput($event, 'finalDate', i)\"\n matInput\n formControlName=\"finalDate\"\n placeholder=\"DD/MM/AAAA\"\n maxlength=\"10\"\n />\n </mat-form-field>\n </div>\n </div>\n\n <!-- REMOVE FILTER BUTTON -->\n <div *ngIf=\"filtersForm.length > 1\" class=\"ml-auto flex-shrink-0\">\n <button\n (click)=\"removeFilter(i)\"\n class=\"flex h-10 w-10 items-center justify-center rounded-full transition-colors duration-300 hover:bg-red-100\"\n matTooltip=\"Remover filtro\"\n >\n <i class=\"fa fa-trash text-red-500 hover:text-red-600\"></i>\n </button>\n </div>\n </div>\n </div>\n\n <!-- PANEL FOOTER: Add Filter & Action Buttons -->\n <div\n class=\"-mb-2 flex items-start justify-between gap-4 border-t border-gray-200 pt-4\"\n >\n <!-- Add Filter Button -->\n <div *ngIf=\"dropdownItems.length > 0\">\n <button\n (click)=\"addFilter()\"\n class=\"transform rounded-full border-2 border-blue-300 bg-blue-50 px-6 py-2 text-sm font-medium text-blue-600 transition-all duration-300 hover:-translate-y-0.5 hover:border-blue-400 hover:bg-blue-100 hover:shadow-md\"\n matTooltip=\"Adicionar novo filtro\"\n >\n <i class=\"fa fa-plus mr-2\"></i>\n Adicionar Filtro\n </button>\n </div>\n\n <!-- Right Side: Search, Reset, Export -->\n <div\n class=\"flex flex-wrap gap-3 self-start sm:self-auto\"\n *ngIf=\"\n this.hasFilterableColumn === true || this.hasSortableColumn === true\n \"\n >\n <button\n (click)=\"search()\"\n type=\"button\"\n class=\"flex items-center gap-2 rounded-lg bg-green-600 px-5 py-2 text-sm font-medium text-white transition-colors hover:bg-green-700\"\n matTooltip=\"Aplicar filtros\"\n >\n <i class=\"fa fa-search\"></i>\n Pesquisar\n </button>\n\n <button\n (click)=\"resetFilter()\"\n class=\"flex items-center gap-2 rounded-lg bg-red-500 px-5 py-2 text-sm font-medium text-white transition-colors hover:bg-red-600\"\n matTooltip=\"Limpar filtros\"\n >\n <i class=\"fas fa-redo-alt\"></i>\n Resetar\n </button>\n\n <button\n *ngIf=\"data.download !== false && downloadTable\"\n class=\"flex items-center gap-2 rounded-lg bg-orange-500 px-5 py-2 text-sm font-medium text-white transition-colors hover:bg-orange-600\"\n matTooltipPosition=\"above\"\n matTooltip=\"Exportar Tabela\"\n [disabled]=\"\n this.dataSource && this.dataSource.filteredData.length <= 0\n \"\n (click)=\"\n $any(arrange) && downloadTable !== undefined\n ? downloadTable($any(arrange), data.conditions || [])\n : null\n \"\n >\n <i class=\"fa fa-download\"></i>\n Exportar\n </button>\n </div>\n </div>\n </div>\n\n <!-- UNIFIED CONTROL PANEL (for non-paginated tables): SEARCH, SORT & FILTERS -->\n <div\n class=\"rounded-xl border border-gray-200 bg-white p-4 shadow-lg\"\n *ngIf=\"\n data.pagination === false &&\n (hasFilterableColumn === true ||\n dropdownItems.length > 0 ||\n data.actionButton)\n \"\n >\n <!-- PANEL HEADER: Title and Custom Action -->\n <div\n class=\"mb-4 flex flex-col items-start justify-between gap-4 border-b-2 border-gray-200 pb-4 md:flex-row md:items-center\"\n >\n <!-- Left Side: Title & Main Action Button -->\n <div class=\"flex flex-wrap items-center gap-4\">\n <div class=\"flex items-center gap-2\">\n <i class=\"fa fa-filter text-xl text-blue-500\"></i>\n <span class=\"text-lg font-semibold text-gray-700\"\n >Filtros e A\u00E7\u00F5es</span\n >\n </div>\n <button\n *ngIf=\"data.actionButton && data.actionButton.condition\"\n [ngClass]=\"getActionButtonClass()\"\n [routerLink]=\"data.actionButton.routerLink\"\n (click)=\"\n data.actionButton.method ? data.actionButton.method($event) : null\n \"\n >\n <i\n *ngIf=\"data.actionButton.icon\"\n [class]=\"data.actionButton.icon\"\n ></i>\n {{ data.actionButton.label }}\n </button>\n </div>\n </div>\n\n <!-- SIMPLE SEARCH -->\n <div\n class=\"mb-4\"\n *ngIf=\"hasFilterableColumn === true && data.showSimpleSearch !== false\"\n >\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-search text-blue-500\"></i>\n Buscar\n </mat-label>\n <input\n matInput\n (keyup.enter)=\"search($event)\"\n (keyup)=\"applyFilter(filterInput.value)\"\n placeholder=\"Digite para filtrar...\"\n #filterInput\n />\n <mat-icon matSuffix class=\"text-gray-500\">search</mat-icon>\n </mat-form-field>\n </div>\n\n <!-- FILTERS PANEL -->\n <div *ngIf=\"dropdownItems.length > 0\">\n <!-- FILTERS CONTENT -->\n <div class=\"mb-4 space-y-3\" *ngIf=\"filtersForm.controls.length > 0\">\n <div\n [formGroup]=\"$any(filterGroup)\"\n *ngFor=\"let filterGroup of filtersForm.controls; let i = index\"\n class=\"flex flex-wrap items-center gap-3\"\n >\n <!-- FILTER TYPE SELECTOR -->\n <div class=\"min-w-[200px] flex-1\" *ngIf=\"dropdownItems.length > 0\">\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label>Tipo de filtro</mat-label>\n <mat-select\n placeholder=\"Selecione o tipo...\"\n formControlName=\"selectFilter\"\n (selectionChange)=\"onSelectFilterChange()\"\n >\n <mat-option\n *ngFor=\"let item of getAvailableFilterOptions()\"\n [value]=\"item\"\n >\n <div class=\"flex items-center gap-2\">\n <i\n [class]=\"item.icon || 'fa fa-filter'\"\n class=\"text-sm text-blue-500\"\n ></i>\n <span>{{ item.title }}</span>\n </div>\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n\n <!-- TEXT FILTER -->\n <div\n class=\"min-w-[200px] flex-1\"\n *ngIf=\"\n $any(filterGroup).get('selectFilter')?.value?.arrange ===\n 'filter'\n \"\n >\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-search text-gray-400\"></i>\n <span>{{\n $any(filterGroup).get(\"selectFilter\")?.value?.title ||\n \"Filtrar\"\n }}</span>\n </mat-label>\n <input\n (keyup.enter)=\"search($event)\"\n formControlName=\"typeFilter\"\n matInput\n placeholder=\"Digite para filtrar...\"\n #input\n />\n </mat-form-field>\n </div>\n\n <!-- DROPDOWN FILTER -->\n <div\n class=\"min-w-[200px] flex-1\"\n *ngIf=\"\n $any(filterGroup).get('selectFilter')?.value &&\n $any(filterGroup)\n .get('selectFilter')\n ?.value.hasOwnProperty('items')\n \"\n >\n <mat-form-field appearance=\"outline\" class=\"w-full\">\n <mat-label>{{\n $any(filterGroup).get(\"selectFilter\")?.value?.title ||\n \"Selecione\"\n }}</mat-label>\n <mat-select\n placeholder=\"Selecione...\"\n formControlName=\"selectItem\"\n multiple\n >\n <mat-option\n *ngFor=\"\n let item of $any(filterGroup).get('selectFilter')?.value\n .items\n \"\n [value]=\"item\"\n >\n {{ item.label }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n\n <!-- DATE FILTER -->\n <div\n class=\"min-w-[340px] flex-auto\"\n *ngIf=\"\n $any(filterGroup).get('selectFilter')?.value?.arrange ===\n 'filterByDate'\n \"\n >\n <div\n class=\"flex flex-col items-stretch gap-3 sm:flex-row sm:items-center\"\n >\n <mat-form-field appearance=\"outline\" class=\"flex-1\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-calendar text-gray-400\"></i>\n <span>Data Inicial</span>\n </mat-label>\n <input\n type=\"text\"\n matInput\n (keydown.enter)=\"search($event)\"\n (input)=\"onDateInput($event, 'initialDate', i)\"\n (blur)=\"onDateFilterChange()\"\n formControlName=\"initialDate\"\n placeholder=\"DD/MM/AAAA\"\n maxlength=\"10\"\n />\n </mat-form-field>\n\n <mat-form-field appearance=\"outline\" class=\"flex-1\">\n <mat-label class=\"flex items-center gap-2\">\n <i class=\"fa fa-calendar text-gray-400\"></i>\n <span>Data Final</span>\n </mat-label>\n <input\n type=\"text\"\n (keydown.enter)=\"search($event)\"\n (input)=\"onDateInput($event, 'finalDate', i)\"\n (blur)=\"onDateFilterChange()\"\n matInput\n formControlName=\"finalDate\"\n placeholder=\"DD/MM/AAAA\"\n maxlength=\"10\"\n />\n </mat-form-field>\n </div>\n </div>\n\n <!-- REMOVE FILTER BUTTON -->\n <div *ngIf=\"filtersForm.length > 1\" class=\"ml-auto flex-shrink-0\">\n <button\n (click)=\"removeFilter(i)\"\n class=\"flex h-10 w-10 items-center justify-center rounded-full transition-colors duration-300 hover:bg-red-100\"\n matTooltip=\"Remover filtro\"\n >\n <i class=\"fa fa-trash text-red-500 hover:text-red-600\"></i>\n </button>\n </div>\n </div>\n </div>\n\n <!-- PANEL FOOTER: Add Filter & Actions -->\n <div\n class=\"-mb-2 flex items-start justify-between gap-4 border-t border-gray-200 pt-4\"\n >\n <!-- Add Filter Button -->\n <div *ngIf=\"dropdownItems.length > 0\">\n <button\n (click)=\"addFilter()\"\n class=\"transform rounded-full border-2 border-blue-300 bg-blue-50 px-6 py-2 text-sm font-medium text-blue-600 transition-all duration-300 hover:-translate-y-0.5 hover:border-blue-400 hover:bg-blue-100 hover:shadow-md\"\n matTooltip=\"Adicionar novo filtro\"\n >\n <i class=\"fa fa-plus mr-2\"></i>\n Adicionar Filtro\n </button>\n </div>\n\n <!-- Action Buttons -->\n <div\n class=\"flex flex-wrap gap-3 self-start sm:self-auto\"\n *ngIf=\"\n this.hasFilterableColumn === true ||\n this.hasSortableColumn === true\n \"\n >\n <button\n (click)=\"search()\"\n type=\"button\"\n class=\"flex items-center gap-2 rounded-lg bg-green-600 px-5 py-2 text-sm font-medium text-white transition-colors hover:bg-green-700\"\n matTooltip=\"Aplicar filtros\"\n >\n <i class=\"fa fa-search\"></i>\n Pesquisar\n </button>\n\n <button\n (click)=\"resetFilter()\"\n class=\"flex items-center gap-2 rounded-lg bg-red-500 px-5 py-2 text-sm font-medium text-white transition-colors hover:bg-red-600\"\n matTooltip=\"Limpar filtros\"\n >\n <i class=\"fas fa-redo-alt\"></i>\n Resetar\n </button>\n\n <button\n *ngIf=\"data.download !== false && downloadTable\"\n class=\"flex items-center gap-2 rounded-lg bg-orange-500 px-5 py-2 text-sm font-medium text-white transition-colors hover:bg-orange-600\"\n matTooltipPosition=\"above\"\n matTooltip=\"Exportar Tabela\"\n [disabled]=\"\n this.dataSource && this.dataSource.filteredData.length <= 0\n \"\n (click)=\"handleDownload()\"\n >\n <i class=\"fa fa-download\"></i>\n Exportar\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"flex flex-col\">\n <!-- TABS COMPONENT -->\n <lib-table-tabs\n *ngIf=\"data.tabs && data.tabs.tabsData && data.tabs.tabsData.length > 0\"\n [tabsData]=\"data.tabs.tabsData\"\n [selectedTab]=\"selectedTab\"\n (tabSelected)=\"onTabSelected($event)\"\n ></lib-table-tabs>\n <div\n class=\"mat-elevation-z8 w-full overflow-x-auto rounded-xl table-container\"\n >\n <table\n mat-table\n [dataSource]=\"dataSource\"\n matSort\n #sort=\"matSort\"\n matSortActive=\"createdAt\"\n matSortDirection=\"desc\"\n >\n <ng-container\n *ngFor=\"let col of data.displayedColumns; trackBy: trackByProperty\"\n matColumnDef=\"{{ col.property }}\"\n >\n <ng-container *matHeaderCellDef>\n <!-- IF THE COLUMN IS NOT SORTABLE, THEN DON'T SHOW THE SORT BUTTONS -->\n <th\n *ngIf=\"!col.isSortable || data.pagination === true\"\n mat-header-cell\n >\n {{ col.title }}\n </th>\n <!-- IF THE COLUMN IS SORTABLE, THEN SHOW THE SORT BUTTONS -->\n <th\n *ngIf=\"col.isSortable && data.pagination === false\"\n mat-header-cell\n mat-sort-header\n >\n {{ col.title }}\n </th>\n <td\n mat-cell\n *matCellDef=\"let row\"\n (click)=\"col.method ? col.method(row) : null\"\n (mouseenter)=\"onCellMouseEnter($event, row, col)\"\n (mouseleave)=\"onCellMouseLeave()\"\n (mousemove)=\"onCellMouseMove($event)\"\n >\n <!-- CHECK IF THE COLUMN MUST BE DISPLAYED -->\n <span *ngIf=\"!col.image && !col.iconClass && !col.method\">\n <ng-container>\n <span\n *ngIf=\"\n col.charLimit &&\n row[col.property] &&\n row[col.property].length > col.charLimit;\n else withinLimit\n \"\n >\n <a\n *ngIf=\"col.hasLink === true\"\n [href]=\"row[col.property]\"\n target=\"_blank\"\n >\n {{ getDisplayValue(col, row) }}\n </a>\n <a\n *ngIf=\"col.hasLink && isString(col.hasLink)\"\n [href]=\"col.hasLink\"\n target=\"_blank\"\n >\n {{ getDisplayValue(col, row) }}\n </a>\n <span\n *ngIf=\"col.hasLink !== true && !isString(col.hasLink)\"\n >\n {{ getDisplayValue(col, row) }}\n </span>\n </span>\n </ng-container>\n <ng-template #withinLimit>\n <a\n *ngIf=\"col.hasLink === true\"\n [href]=\"row[col.property]\"\n target=\"_blank\"\n >\n {{ getDisplayValue(col, row, true) }}\n </a>\n <a\n *ngIf=\"col.hasLink && isString(col.hasLink)\"\n [href]=\"col.hasLink\"\n target=\"_blank\"\n >\n {{ getDisplayValue(col, row, true) }}\n </a>\n <span\n *ngIf=\"col.hasLink !== true && !isString(col.hasLink)\"\n >\n {{ getDisplayValue(col, row, true) }}\n </span>\n </ng-template>\n </span>\n <!------------------- IMAGE ------------------>\n <!-- Imagem com loading -->\n <div\n *ngIf=\"\n col.image && col.image.path && !col.iconClass && !col.method\n \"\n class=\"relative inline-block\"\n >\n <mat-spinner\n *ngIf=\"isImageLoading(row, col)\"\n [diameter]=\"32\"\n class=\"absolute inset-0 m-auto\"\n ></mat-spinner>\n <img\n [src]=\"col.image.path + '/' + row[col.property]\"\n [ngClass]=\"col.image.class\"\n [class.opacity-0]=\"isImageLoading(row, col)\"\n alt=\"\"\n (load)=\"onImageLoad(row, col)\"\n (error)=\"onImageError($event, row, col, col.image.default)\"\n />\n </div>\n\n <!-- Imagem com URL completa e loading -->\n <div\n *ngIf=\"\n col.image && col.image.url && !col.iconClass && !col.method\n \"\n class=\"relative inline-block\"\n >\n <mat-spinner\n *ngIf=\"isImageLoading(row, col)\"\n [diameter]=\"32\"\n class=\"absolute inset-0 m-auto\"\n ></mat-spinner>\n <img\n [src]=\"row[col.property]\"\n [ngClass]=\"col.image.class\"\n [class.opacity-0]=\"isImageLoading(row, col)\"\n alt=\"\"\n (load)=\"onImageLoad(row, col)\"\n (error)=\"onImageError($event, row, col, col.image.default)\"\n />\n </div>\n <ng-container *ngIf=\"col.iconClass\">\n <button\n *ngFor=\"let iconClass of col.iconClass\"\n (click)=\"\n iconClass.buttonMethod\n ? iconClass.buttonMethod(row, $event)\n : $event.stopPropagation()\n \"\n >\n <span\n [ngClass]=\"iconClass.class\"\n *ngIf=\"\n iconClass.condition === undefined ||\n (iconClass.condition !== undefined &&\n $any(iconClass.condition)(row))\n \"\n >{{ iconClass.text }}</span\n >\n </button>\n </ng-container>\n </td>\n </ng-container>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnProperties\"></tr>\n <tr\n [ngClass]=\"getTableRowNgClass()\"\n mat-row\n *matRowDef=\"let row; columns: columnProperties\"\n (click)=\"goToDetails(row)\"\n ></tr>\n\n <!-- ROW SHOWN WHEN THERE IS NO MATCHING DATA. -->\n <tr class=\"mat-row\" *matNoDataRow>\n <td *ngIf=\"!(isLoading$ | async)\" class=\"mat-cell p-4\" colspan=\"4\">\n Nenhum resultado encontrado para a busca\n </td>\n </tr>\n </table>\n\n <div class=\"flex justify-center\" *ngIf=\"isLoading$ | async\">\n <mat-spinner></mat-spinner>\n </div>\n\n <div class=\"paginator-container\">\n <mat-paginator\n #paginator\n [pageSizeOptions]=\"[25, 50, 100]\"\n [pageSize]=\"pageSize\"\n [length]=\"totalItems\"\n showFirstLastButtons\n aria-label=\"Select page of periodic elements\"\n (page)=\"onPageChange($event)\"\n [ngClass]=\"getPaginatorNgClass()\"\n >\n </mat-paginator>\n <div\n *ngIf=\"\n !(isLoading$ | async) &&\n dataSource?.data &&\n dataSource.data.length > 0 &&\n data?.filterFn\n \"\n class=\"page-number-display\"\n >\n {{ currentPageNumber }}\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <!-- TOOLTIP PERSONALIZADO -->\n <lib-table-tooltip\n [state]=\"tooltipState\"\n [styles]=\"getTooltipStyles()\"\n ></lib-table-tooltip>\n</div>\n", styles: ["@charset \"UTF-8\";:host{--table-color: #1976d2;--table-text-color: white;--table-header-bg: #1976d2;--table-header-text: white;--table-scrollbar-bg: #f5f5f5;--table-scrollbar-thumb: var(--table-color)}.table-container::-webkit-scrollbar{width:10px;height:10px;background-color:var(--table-scrollbar-bg, #f5f5f5)}.table-container::-webkit-scrollbar-thumb{background-color:var(--table-scrollbar-thumb, var(--table-color, #1976d2));border-radius:5px}.table-container::-webkit-scrollbar-thumb:hover{background-color:var(--table-scrollbar-thumb, var(--table-color, #1976d2));opacity:.8}.overflow-x-auto::-webkit-scrollbar,.overflow-y-auto::-webkit-scrollbar,.overflow-auto::-webkit-scrollbar{width:10px;height:10px;background-color:var(--table-scrollbar-bg, #f5f5f5)}.overflow-x-auto::-webkit-scrollbar-thumb,.overflow-y-auto::-webkit-scrollbar-thumb,.overflow-auto::-webkit-scrollbar-thumb{background-color:var(--table-scrollbar-thumb, var(--table-color, #1976d2));border-radius:5px}.overflow-x-auto::-webkit-scrollbar-thumb:hover,.overflow-y-auto::-webkit-scrollbar-thumb:hover,.overflow-auto::-webkit-scrollbar-thumb:hover{background-color:var(--table-scrollbar-thumb, var(--table-color, #1976d2));opacity:.8}:host ::ng-deep .mat-table .mat-header-cell,:host ::ng-deep .mat-header-cell,:host ::ng-deep th.mat-header-cell,:host ::ng-deep .mat-mdc-table .mat-mdc-header-cell,:host ::ng-deep .mat-mdc-header-cell,:host ::ng-deep th.mat-mdc-header-cell{background-color:var(--table-header-bg, #1976d2)!important;color:var(--table-header-text, white)!important;font-weight:600}::ng-deep .fa-filter,::ng-deep i.fa-filter{color:var(--table-color, #1976d2)!important}::ng-deep .rounded-xl.border{border-color:var(--table-color, #1976d2)!important}::ng-deep .border-gray-200.rounded-xl{border-color:var(--table-color, #1976d2)!important}::ng-deep .mdc-notched-outline__notch{border-right:none!important}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-bottom:0}::ng-deep .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-bottom:0}.mat-mdc-text-field-wrapper.mdc-text-field--outlined.mdc-text-field--disabled{background:#00000026;background-size:1px 100%!important;background-repeat:repeat-x!important}.mdc-text-field--disabled .mdc-text-field__input{color:#525252}button:not([matTooltip=\"Adicionar novo filtro\"]):not([matTooltip=\"Aplicar filtros\"]):not([matTooltip=\"Limpar filtros\"]):not([matTooltip=\"Exportar Tabela\"]):not(:has(i.fa-plus)):not(:has(i.fa-search)):not(:has(i.fas.fa-redo-alt)):not(:has(i.fa-download)){transition:all .2s ease;cursor:pointer}button:not([matTooltip=\"Adicionar novo filtro\"]):not([matTooltip=\"Aplicar filtros\"]):not([matTooltip=\"Limpar filtros\"]):not([matTooltip=\"Exportar Tabela\"]):not(:has(i.fa-plus)):not(:has(i.fa-search)):not(:has(i.fas.fa-redo-alt)):not(:has(i.fa-download)):hover:not(:disabled){opacity:.9;transform:scale(1.02)}button:not([matTooltip=\"Adicionar novo filtro\"]):not([matTooltip=\"Aplicar filtros\"]):not([matTooltip=\"Limpar filtros\"]):not([matTooltip=\"Exportar Tabela\"]):not(:has(i.fa-plus)):not(:has(i.fa-search)):not(:has(i.fas.fa-redo-alt)):not(:has(i.fa-download)):disabled{opacity:.5;cursor:not-allowed;transform:none}::ng-deep .hide-length .mat-mdc-paginator-range-label{display:none}::ng-deep .hide-next-button .mat-mdc-tooltip-trigger.mat-mdc-paginator-navigation-next.mdc-icon-button.mat-mdc-icon-button.mat-unthemed.mat-mdc-button-base{visibility:hidden}::ng-deep .hide-next-button .mat-mdc-tooltip-trigger.mat-mdc-paginator-navigation-last.mdc-icon-button.mat-mdc-icon-button.mat-unthemed.mat-mdc-button-base.ng-star-inserted{visibility:hidden}::ng-deep .mat-mdc-text-field-wrapper.mdc-text-field.ng-tns-c162-1.mdc-text-field--filled{width:25dvw}::ng-deep .custom-filter .mat-mdc-text-field-wrapper{width:20dvw;max-width:300px}button[matTooltip=\"Adicionar novo filtro\"],button:has(i.fa-plus){display:inline-flex;align-items:center;gap:.5rem;border-radius:9999px;border:2px solid #93c5fd;background-color:#dbeafe;padding:.5rem 1.5rem;font-size:.875rem;font-weight:500;color:#2563eb;transition:all .3s;cursor:pointer;transform:translateY(0)}button[matTooltip=\"Adicionar novo filtro\"]:hover,button:has(i.fa-plus):hover{transform:translateY(-2px);border-color:#60a5fa;background-color:#bfdbfe;box-shadow:0 4px 6px #0000001a}button[matTooltip=\"Aplicar filtros\"],button:has(i.fa-search){display:inline-flex;align-items:center;gap:.5rem;border-radius:.5rem;background-color:#16a34a;padding:.5rem 1.25rem;font-size:.875rem;font-weight:500;color:#fff;transition:background-color .2s;cursor:pointer;border:none}button[matTooltip=\"Aplicar filtros\"]:hover,button:has(i.fa-search):hover{background-color:#15803d}button[matTooltip=\"Aplicar filtros\"]:disabled,button:has(i.fa-search):disabled{opacity:.5;cursor:not-allowed}button[matTooltip=\"Limpar filtros\"],button:has(i.fas.fa-redo-alt){display:inline-flex;align-items:center;gap:.5rem;border-radius:.5rem;background-color:#ef4444;padding:.5rem 1.25rem;font-size:.875rem;font-weight:500;color:#fff;transition:background-color .2s;cursor:pointer;border:none}button[matTooltip=\"Limpar filtros\"]:hover,button:has(i.fas.fa-redo-alt):hover{background-color:#dc2626}button[matTooltip=\"Exportar Tabela\"],button:has(i.fa-download){display:inline-flex;align-items:center;gap:.5rem;border-radius:.5rem;background-color:#f97316;padding:.5rem 1.25rem;font-size:.875rem;font-weight:500;color:#fff;transition:background-color .2s;cursor:pointer;border:none}button[matTooltip=\"Exportar Tabela\"]:hover:not(:disabled),button:has(i.fa-download):hover:not(:disabled){background-color:#ea580c}button[matTooltip=\"Exportar Tabela\"]:disabled,button:has(i.fa-download):disabled{opacity:.5;cursor:not-allowed}\n"] }]
|
|
3608
|
+
}], () => [{ type: i1$2.Router }, { type: TableService }, { type: FilterService }, { type: TooltipService }, { type: PaginationService }, { type: i1.AngularFirestore }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], { data: [{
|
|
3609
|
+
type: Input
|
|
3610
|
+
}], downloadTable: [{
|
|
3611
|
+
type: Input
|
|
3612
|
+
}], paginator: [{
|
|
3613
|
+
type: ViewChild,
|
|
3614
|
+
args: [MatPaginator]
|
|
3615
|
+
}], sort: [{
|
|
3616
|
+
type: ViewChild,
|
|
3617
|
+
args: [MatSort]
|
|
3618
|
+
}] }); })();
|
|
3619
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TableComponent, { className: "TableComponent", filePath: "lib/components/table/table.component.ts", lineNumber: 64 }); })();
|
|
2724
3620
|
|
|
2725
3621
|
class NgFirebaseTableKxpModule {
|
|
2726
|
-
static { this.ɵfac =
|
|
2727
|
-
static { this.ɵmod = i0.ɵɵ
|
|
2728
|
-
|
|
2729
|
-
TableTabsComponent,
|
|
2730
|
-
TableTooltipComponent], imports: [CommonModule,
|
|
2731
|
-
ReactiveFormsModule,
|
|
2732
|
-
FormsModule,
|
|
2733
|
-
RouterModule,
|
|
2734
|
-
MatTableModule,
|
|
2735
|
-
MatPaginatorModule,
|
|
2736
|
-
MatSortModule,
|
|
2737
|
-
MatFormFieldModule,
|
|
2738
|
-
MatInputModule,
|
|
2739
|
-
MatSelectModule,
|
|
2740
|
-
MatTooltipModule,
|
|
2741
|
-
MatProgressSpinnerModule,
|
|
2742
|
-
MatIconModule,
|
|
2743
|
-
MatDialogModule], exports: [NgFirebaseTableKxpComponent,
|
|
2744
|
-
TableComponent,
|
|
2745
|
-
TableTabsComponent,
|
|
2746
|
-
TableTooltipComponent] }); }
|
|
2747
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NgFirebaseTableKxpModule, providers: [TableService, FilterService, TooltipService, PaginationService], imports: [CommonModule,
|
|
3622
|
+
static { this.ɵfac = function NgFirebaseTableKxpModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || NgFirebaseTableKxpModule)(); }; }
|
|
3623
|
+
static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: NgFirebaseTableKxpModule }); }
|
|
3624
|
+
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [TableService, FilterService, TooltipService, PaginationService], imports: [CommonModule,
|
|
2748
3625
|
ReactiveFormsModule,
|
|
2749
3626
|
FormsModule,
|
|
2750
3627
|
RouterModule,
|
|
@@ -2759,52 +3636,72 @@ class NgFirebaseTableKxpModule {
|
|
|
2759
3636
|
MatIconModule,
|
|
2760
3637
|
MatDialogModule] }); }
|
|
2761
3638
|
}
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
3639
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgFirebaseTableKxpModule, [{
|
|
3640
|
+
type: NgModule,
|
|
3641
|
+
args: [{
|
|
3642
|
+
declarations: [
|
|
3643
|
+
NgFirebaseTableKxpComponent,
|
|
3644
|
+
TableComponent,
|
|
3645
|
+
TableTabsComponent,
|
|
3646
|
+
TableTooltipComponent,
|
|
3647
|
+
],
|
|
3648
|
+
imports: [
|
|
3649
|
+
CommonModule,
|
|
3650
|
+
ReactiveFormsModule,
|
|
3651
|
+
FormsModule,
|
|
3652
|
+
RouterModule,
|
|
3653
|
+
MatTableModule,
|
|
3654
|
+
MatPaginatorModule,
|
|
3655
|
+
MatSortModule,
|
|
3656
|
+
MatFormFieldModule,
|
|
3657
|
+
MatInputModule,
|
|
3658
|
+
MatSelectModule,
|
|
3659
|
+
MatTooltipModule,
|
|
3660
|
+
MatProgressSpinnerModule,
|
|
3661
|
+
MatIconModule,
|
|
3662
|
+
MatDialogModule,
|
|
3663
|
+
],
|
|
3664
|
+
exports: [
|
|
3665
|
+
NgFirebaseTableKxpComponent,
|
|
3666
|
+
TableComponent,
|
|
3667
|
+
TableTabsComponent,
|
|
3668
|
+
TableTooltipComponent,
|
|
3669
|
+
],
|
|
3670
|
+
providers: [TableService, FilterService, TooltipService, PaginationService],
|
|
3671
|
+
}]
|
|
3672
|
+
}], null, null); })();
|
|
3673
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(NgFirebaseTableKxpModule, { declarations: [NgFirebaseTableKxpComponent,
|
|
3674
|
+
TableComponent,
|
|
3675
|
+
TableTabsComponent,
|
|
3676
|
+
TableTooltipComponent], imports: [CommonModule,
|
|
3677
|
+
ReactiveFormsModule,
|
|
3678
|
+
FormsModule,
|
|
3679
|
+
RouterModule,
|
|
3680
|
+
MatTableModule,
|
|
3681
|
+
MatPaginatorModule,
|
|
3682
|
+
MatSortModule,
|
|
3683
|
+
MatFormFieldModule,
|
|
3684
|
+
MatInputModule,
|
|
3685
|
+
MatSelectModule,
|
|
3686
|
+
MatTooltipModule,
|
|
3687
|
+
MatProgressSpinnerModule,
|
|
3688
|
+
MatIconModule,
|
|
3689
|
+
MatDialogModule], exports: [NgFirebaseTableKxpComponent,
|
|
3690
|
+
TableComponent,
|
|
3691
|
+
TableTabsComponent,
|
|
3692
|
+
TableTooltipComponent] }); })();
|
|
2796
3693
|
|
|
2797
3694
|
class NgFirebaseTableKxpService {
|
|
2798
3695
|
constructor() { }
|
|
2799
|
-
static { this.ɵfac =
|
|
2800
|
-
static { this.ɵprov = i0.ɵɵ
|
|
3696
|
+
static { this.ɵfac = function NgFirebaseTableKxpService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || NgFirebaseTableKxpService)(); }; }
|
|
3697
|
+
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: NgFirebaseTableKxpService, factory: NgFirebaseTableKxpService.ɵfac, providedIn: 'root' }); }
|
|
2801
3698
|
}
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
3699
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgFirebaseTableKxpService, [{
|
|
3700
|
+
type: Injectable,
|
|
3701
|
+
args: [{
|
|
3702
|
+
providedIn: 'root',
|
|
3703
|
+
}]
|
|
3704
|
+
}], () => [], null); })();
|
|
2808
3705
|
|
|
2809
3706
|
/*
|
|
2810
3707
|
* Public API Surface of ng-firebase-table-kxp
|