ng-firebase-table-kxp 1.2.5 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/table/table.component.mjs +365 -379
- package/fesm2015/ng-firebase-table-kxp.mjs +364 -381
- package/fesm2015/ng-firebase-table-kxp.mjs.map +1 -1
- package/fesm2020/ng-firebase-table-kxp.mjs +364 -378
- package/fesm2020/ng-firebase-table-kxp.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2179,278 +2179,278 @@ function TableComponent_div_0_div_2_button_7_i_1_Template(rf, ctx) {
|
|
|
2179
2179
|
i0.ɵɵelement(0, "i");
|
|
2180
2180
|
}
|
|
2181
2181
|
if (rf & 2) {
|
|
2182
|
-
const
|
|
2183
|
-
i0.ɵɵclassMap(
|
|
2182
|
+
const ctx_r16 = i0.ɵɵnextContext(4);
|
|
2183
|
+
i0.ɵɵclassMap(ctx_r16.data.actionButton.icon);
|
|
2184
2184
|
}
|
|
2185
2185
|
}
|
|
2186
2186
|
function TableComponent_div_0_div_2_button_7_Template(rf, ctx) {
|
|
2187
2187
|
if (rf & 1) {
|
|
2188
|
-
const
|
|
2189
|
-
i0.ɵɵelementStart(0, "button",
|
|
2190
|
-
i0.ɵɵlistener("click", function TableComponent_div_0_div_2_button_7_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
2191
|
-
i0.ɵɵtemplate(1, TableComponent_div_0_div_2_button_7_i_1_Template, 1, 2, "i",
|
|
2188
|
+
const _r18 = i0.ɵɵgetCurrentView();
|
|
2189
|
+
i0.ɵɵelementStart(0, "button", 30);
|
|
2190
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_2_button_7_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r18); const ctx_r17 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r17.data.actionButton.method ? ctx_r17.data.actionButton.method($event) : null); });
|
|
2191
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_div_2_button_7_i_1_Template, 1, 2, "i", 31);
|
|
2192
2192
|
i0.ɵɵtext(2);
|
|
2193
2193
|
i0.ɵɵelementEnd();
|
|
2194
2194
|
}
|
|
2195
2195
|
if (rf & 2) {
|
|
2196
|
-
const
|
|
2197
|
-
i0.ɵɵproperty("ngClass",
|
|
2196
|
+
const ctx_r11 = i0.ɵɵnextContext(3);
|
|
2197
|
+
i0.ɵɵproperty("ngClass", ctx_r11.getActionButtonClass())("routerLink", ctx_r11.data.actionButton.routerLink);
|
|
2198
2198
|
i0.ɵɵadvance(1);
|
|
2199
|
-
i0.ɵɵproperty("ngIf",
|
|
2199
|
+
i0.ɵɵproperty("ngIf", ctx_r11.data.actionButton.icon);
|
|
2200
2200
|
i0.ɵɵadvance(1);
|
|
2201
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
2201
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r11.data.actionButton.label, " ");
|
|
2202
2202
|
}
|
|
2203
2203
|
}
|
|
2204
2204
|
function TableComponent_div_0_div_2_div_8_mat_option_9_Template(rf, ctx) {
|
|
2205
2205
|
if (rf & 1) {
|
|
2206
|
-
i0.ɵɵelementStart(0, "mat-option",
|
|
2207
|
-
i0.ɵɵelement(2, "i",
|
|
2206
|
+
i0.ɵɵelementStart(0, "mat-option", 39)(1, "div", 21);
|
|
2207
|
+
i0.ɵɵelement(2, "i", 36);
|
|
2208
2208
|
i0.ɵɵelementStart(3, "span");
|
|
2209
2209
|
i0.ɵɵtext(4);
|
|
2210
2210
|
i0.ɵɵelementEnd()()();
|
|
2211
2211
|
}
|
|
2212
2212
|
if (rf & 2) {
|
|
2213
|
-
const
|
|
2214
|
-
i0.ɵɵproperty("value",
|
|
2213
|
+
const item_r20 = ctx.$implicit;
|
|
2214
|
+
i0.ɵɵproperty("value", item_r20);
|
|
2215
2215
|
i0.ɵɵadvance(4);
|
|
2216
|
-
i0.ɵɵtextInterpolate(
|
|
2216
|
+
i0.ɵɵtextInterpolate(item_r20.title);
|
|
2217
2217
|
}
|
|
2218
2218
|
}
|
|
2219
2219
|
function TableComponent_div_0_div_2_div_8_Template(rf, ctx) {
|
|
2220
2220
|
if (rf & 1) {
|
|
2221
|
-
i0.ɵɵelementStart(0, "div",
|
|
2222
|
-
i0.ɵɵelement(5, "i",
|
|
2221
|
+
i0.ɵɵelementStart(0, "div", 32)(1, "div", 33)(2, "div", 34)(3, "mat-form-field", 35)(4, "mat-label", 21);
|
|
2222
|
+
i0.ɵɵelement(5, "i", 36);
|
|
2223
2223
|
i0.ɵɵelementStart(6, "span");
|
|
2224
2224
|
i0.ɵɵtext(7, "Ordenar por");
|
|
2225
2225
|
i0.ɵɵelementEnd()();
|
|
2226
|
-
i0.ɵɵelementStart(8, "mat-select",
|
|
2227
|
-
i0.ɵɵtemplate(9, TableComponent_div_0_div_2_div_8_mat_option_9_Template, 5, 2, "mat-option",
|
|
2226
|
+
i0.ɵɵelementStart(8, "mat-select", 37);
|
|
2227
|
+
i0.ɵɵtemplate(9, TableComponent_div_0_div_2_div_8_mat_option_9_Template, 5, 2, "mat-option", 38);
|
|
2228
2228
|
i0.ɵɵelementEnd()()()()();
|
|
2229
2229
|
}
|
|
2230
2230
|
if (rf & 2) {
|
|
2231
|
-
const
|
|
2231
|
+
const ctx_r12 = i0.ɵɵnextContext(3);
|
|
2232
2232
|
i0.ɵɵadvance(8);
|
|
2233
|
-
i0.ɵɵproperty("formControl",
|
|
2233
|
+
i0.ɵɵproperty("formControl", ctx_r12.selectSort);
|
|
2234
2234
|
i0.ɵɵadvance(1);
|
|
2235
|
-
i0.ɵɵproperty("ngForOf",
|
|
2235
|
+
i0.ɵɵproperty("ngForOf", ctx_r12.sortableDropdownItems);
|
|
2236
2236
|
}
|
|
2237
2237
|
}
|
|
2238
2238
|
function TableComponent_div_0_div_2_div_9_div_1_div_1_mat_option_5_Template(rf, ctx) {
|
|
2239
2239
|
if (rf & 1) {
|
|
2240
|
-
i0.ɵɵelementStart(0, "mat-option",
|
|
2241
|
-
i0.ɵɵelement(2, "i",
|
|
2240
|
+
i0.ɵɵelementStart(0, "mat-option", 39)(1, "div", 21);
|
|
2241
|
+
i0.ɵɵelement(2, "i", 47);
|
|
2242
2242
|
i0.ɵɵelementStart(3, "span");
|
|
2243
2243
|
i0.ɵɵtext(4);
|
|
2244
2244
|
i0.ɵɵelementEnd()()();
|
|
2245
2245
|
}
|
|
2246
2246
|
if (rf & 2) {
|
|
2247
|
-
const
|
|
2248
|
-
i0.ɵɵproperty("value",
|
|
2247
|
+
const item_r30 = ctx.$implicit;
|
|
2248
|
+
i0.ɵɵproperty("value", item_r30);
|
|
2249
2249
|
i0.ɵɵadvance(2);
|
|
2250
|
-
i0.ɵɵclassMap(
|
|
2250
|
+
i0.ɵɵclassMap(item_r30.icon || "fa fa-filter");
|
|
2251
2251
|
i0.ɵɵadvance(2);
|
|
2252
|
-
i0.ɵɵtextInterpolate(
|
|
2252
|
+
i0.ɵɵtextInterpolate(item_r30.title);
|
|
2253
2253
|
}
|
|
2254
2254
|
}
|
|
2255
2255
|
function TableComponent_div_0_div_2_div_9_div_1_div_1_Template(rf, ctx) {
|
|
2256
2256
|
if (rf & 1) {
|
|
2257
|
-
const
|
|
2258
|
-
i0.ɵɵelementStart(0, "div",
|
|
2257
|
+
const _r32 = i0.ɵɵgetCurrentView();
|
|
2258
|
+
i0.ɵɵelementStart(0, "div", 34)(1, "mat-form-field", 35)(2, "mat-label");
|
|
2259
2259
|
i0.ɵɵtext(3, "Tipo de filtro");
|
|
2260
2260
|
i0.ɵɵelementEnd();
|
|
2261
|
-
i0.ɵɵelementStart(4, "mat-select",
|
|
2262
|
-
i0.ɵɵlistener("selectionChange", function TableComponent_div_0_div_2_div_9_div_1_div_1_Template_mat_select_selectionChange_4_listener() { i0.ɵɵrestoreView(
|
|
2263
|
-
i0.ɵɵtemplate(5, TableComponent_div_0_div_2_div_9_div_1_div_1_mat_option_5_Template, 5, 4, "mat-option",
|
|
2261
|
+
i0.ɵɵelementStart(4, "mat-select", 46);
|
|
2262
|
+
i0.ɵɵlistener("selectionChange", function TableComponent_div_0_div_2_div_9_div_1_div_1_Template_mat_select_selectionChange_4_listener() { i0.ɵɵrestoreView(_r32); const ctx_r31 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r31.onSelectFilterChange()); });
|
|
2263
|
+
i0.ɵɵtemplate(5, TableComponent_div_0_div_2_div_9_div_1_div_1_mat_option_5_Template, 5, 4, "mat-option", 38);
|
|
2264
2264
|
i0.ɵɵelementEnd()()();
|
|
2265
2265
|
}
|
|
2266
2266
|
if (rf & 2) {
|
|
2267
|
-
const
|
|
2267
|
+
const ctx_r24 = i0.ɵɵnextContext(5);
|
|
2268
2268
|
i0.ɵɵadvance(5);
|
|
2269
|
-
i0.ɵɵproperty("ngForOf",
|
|
2269
|
+
i0.ɵɵproperty("ngForOf", ctx_r24.getAvailableFilterOptions());
|
|
2270
2270
|
}
|
|
2271
2271
|
}
|
|
2272
2272
|
function TableComponent_div_0_div_2_div_9_div_1_div_2_Template(rf, ctx) {
|
|
2273
2273
|
if (rf & 1) {
|
|
2274
|
-
const
|
|
2275
|
-
i0.ɵɵelementStart(0, "div",
|
|
2276
|
-
i0.ɵɵelement(3, "i",
|
|
2274
|
+
const _r35 = i0.ɵɵgetCurrentView();
|
|
2275
|
+
i0.ɵɵelementStart(0, "div", 34)(1, "mat-form-field", 35)(2, "mat-label", 21);
|
|
2276
|
+
i0.ɵɵelement(3, "i", 48);
|
|
2277
2277
|
i0.ɵɵelementStart(4, "span");
|
|
2278
2278
|
i0.ɵɵtext(5);
|
|
2279
2279
|
i0.ɵɵelementEnd()();
|
|
2280
|
-
i0.ɵɵelementStart(6, "input",
|
|
2281
|
-
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(
|
|
2280
|
+
i0.ɵɵelementStart(6, "input", 49, 50);
|
|
2281
|
+
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(_r35); const ctx_r34 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r34.search($event)); });
|
|
2282
2282
|
i0.ɵɵelementEnd()()();
|
|
2283
2283
|
}
|
|
2284
2284
|
if (rf & 2) {
|
|
2285
|
-
const
|
|
2285
|
+
const filterGroup_r22 = i0.ɵɵnextContext().$implicit;
|
|
2286
2286
|
let tmp_0_0;
|
|
2287
2287
|
i0.ɵɵadvance(5);
|
|
2288
|
-
i0.ɵɵtextInterpolate(((tmp_0_0 =
|
|
2288
|
+
i0.ɵɵtextInterpolate(((tmp_0_0 = filterGroup_r22.get("selectFilter")) == null ? null : tmp_0_0.value == null ? null : tmp_0_0.value.title) || "Filtrar");
|
|
2289
2289
|
}
|
|
2290
2290
|
}
|
|
2291
2291
|
function TableComponent_div_0_div_2_div_9_div_1_div_3_mat_option_5_Template(rf, ctx) {
|
|
2292
2292
|
if (rf & 1) {
|
|
2293
|
-
i0.ɵɵelementStart(0, "mat-option",
|
|
2293
|
+
i0.ɵɵelementStart(0, "mat-option", 39);
|
|
2294
2294
|
i0.ɵɵtext(1);
|
|
2295
2295
|
i0.ɵɵelementEnd();
|
|
2296
2296
|
}
|
|
2297
2297
|
if (rf & 2) {
|
|
2298
|
-
const
|
|
2299
|
-
i0.ɵɵproperty("value",
|
|
2298
|
+
const item_r38 = ctx.$implicit;
|
|
2299
|
+
i0.ɵɵproperty("value", item_r38);
|
|
2300
2300
|
i0.ɵɵadvance(1);
|
|
2301
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
2301
|
+
i0.ɵɵtextInterpolate1(" ", item_r38.label, " ");
|
|
2302
2302
|
}
|
|
2303
2303
|
}
|
|
2304
2304
|
function TableComponent_div_0_div_2_div_9_div_1_div_3_Template(rf, ctx) {
|
|
2305
2305
|
if (rf & 1) {
|
|
2306
|
-
i0.ɵɵelementStart(0, "div",
|
|
2306
|
+
i0.ɵɵelementStart(0, "div", 34)(1, "mat-form-field", 35)(2, "mat-label");
|
|
2307
2307
|
i0.ɵɵtext(3);
|
|
2308
2308
|
i0.ɵɵelementEnd();
|
|
2309
|
-
i0.ɵɵelementStart(4, "mat-select",
|
|
2310
|
-
i0.ɵɵtemplate(5, TableComponent_div_0_div_2_div_9_div_1_div_3_mat_option_5_Template, 2, 2, "mat-option",
|
|
2309
|
+
i0.ɵɵelementStart(4, "mat-select", 51);
|
|
2310
|
+
i0.ɵɵtemplate(5, TableComponent_div_0_div_2_div_9_div_1_div_3_mat_option_5_Template, 2, 2, "mat-option", 38);
|
|
2311
2311
|
i0.ɵɵelementEnd()()();
|
|
2312
2312
|
}
|
|
2313
2313
|
if (rf & 2) {
|
|
2314
|
-
const
|
|
2314
|
+
const filterGroup_r22 = i0.ɵɵnextContext().$implicit;
|
|
2315
2315
|
let tmp_0_0;
|
|
2316
2316
|
let tmp_1_0;
|
|
2317
2317
|
i0.ɵɵadvance(3);
|
|
2318
|
-
i0.ɵɵtextInterpolate(((tmp_0_0 =
|
|
2318
|
+
i0.ɵɵtextInterpolate(((tmp_0_0 = filterGroup_r22.get("selectFilter")) == null ? null : tmp_0_0.value == null ? null : tmp_0_0.value.title) || "Selecione");
|
|
2319
2319
|
i0.ɵɵadvance(2);
|
|
2320
|
-
i0.ɵɵproperty("ngForOf", (tmp_1_0 =
|
|
2320
|
+
i0.ɵɵproperty("ngForOf", (tmp_1_0 = filterGroup_r22.get("selectFilter")) == null ? null : tmp_1_0.value.items);
|
|
2321
2321
|
}
|
|
2322
2322
|
}
|
|
2323
2323
|
function TableComponent_div_0_div_2_div_9_div_1_div_4_Template(rf, ctx) {
|
|
2324
2324
|
if (rf & 1) {
|
|
2325
|
-
const
|
|
2326
|
-
i0.ɵɵelementStart(0, "div",
|
|
2327
|
-
i0.ɵɵelement(4, "i",
|
|
2325
|
+
const _r41 = i0.ɵɵgetCurrentView();
|
|
2326
|
+
i0.ɵɵelementStart(0, "div", 52)(1, "div", 53)(2, "mat-form-field", 54)(3, "mat-label", 21);
|
|
2327
|
+
i0.ɵɵelement(4, "i", 55);
|
|
2328
2328
|
i0.ɵɵelementStart(5, "span");
|
|
2329
2329
|
i0.ɵɵtext(6, "Data Inicial");
|
|
2330
2330
|
i0.ɵɵelementEnd()();
|
|
2331
|
-
i0.ɵɵelementStart(7, "input",
|
|
2332
|
-
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(
|
|
2331
|
+
i0.ɵɵelementStart(7, "input", 56);
|
|
2332
|
+
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(_r41); const ctx_r40 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r40.search($event)); })("input", function TableComponent_div_0_div_2_div_9_div_1_div_4_Template_input_input_7_listener($event) { i0.ɵɵrestoreView(_r41); const i_r23 = i0.ɵɵnextContext().index; const ctx_r42 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r42.onDateInput($event, "initialDate", i_r23)); });
|
|
2333
2333
|
i0.ɵɵelementEnd()();
|
|
2334
|
-
i0.ɵɵelementStart(8, "mat-form-field",
|
|
2335
|
-
i0.ɵɵelement(10, "i",
|
|
2334
|
+
i0.ɵɵelementStart(8, "mat-form-field", 54)(9, "mat-label", 21);
|
|
2335
|
+
i0.ɵɵelement(10, "i", 55);
|
|
2336
2336
|
i0.ɵɵelementStart(11, "span");
|
|
2337
2337
|
i0.ɵɵtext(12, "Data Final");
|
|
2338
2338
|
i0.ɵɵelementEnd()();
|
|
2339
|
-
i0.ɵɵelementStart(13, "input",
|
|
2340
|
-
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(
|
|
2339
|
+
i0.ɵɵelementStart(13, "input", 57);
|
|
2340
|
+
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(_r41); const ctx_r44 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r44.search($event)); })("input", function TableComponent_div_0_div_2_div_9_div_1_div_4_Template_input_input_13_listener($event) { i0.ɵɵrestoreView(_r41); const i_r23 = i0.ɵɵnextContext().index; const ctx_r45 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r45.onDateInput($event, "finalDate", i_r23)); });
|
|
2341
2341
|
i0.ɵɵelementEnd()()()();
|
|
2342
2342
|
}
|
|
2343
2343
|
}
|
|
2344
2344
|
function TableComponent_div_0_div_2_div_9_div_1_div_5_Template(rf, ctx) {
|
|
2345
2345
|
if (rf & 1) {
|
|
2346
|
-
const
|
|
2347
|
-
i0.ɵɵelementStart(0, "div",
|
|
2348
|
-
i0.ɵɵlistener("click", function TableComponent_div_0_div_2_div_9_div_1_div_5_Template_button_click_1_listener() { i0.ɵɵrestoreView(
|
|
2349
|
-
i0.ɵɵelement(2, "i",
|
|
2346
|
+
const _r49 = i0.ɵɵgetCurrentView();
|
|
2347
|
+
i0.ɵɵelementStart(0, "div", 58)(1, "button", 59);
|
|
2348
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_2_div_9_div_1_div_5_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r49); const i_r23 = i0.ɵɵnextContext().index; const ctx_r47 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r47.removeFilter(i_r23)); });
|
|
2349
|
+
i0.ɵɵelement(2, "i", 60);
|
|
2350
2350
|
i0.ɵɵelementEnd()();
|
|
2351
2351
|
}
|
|
2352
2352
|
}
|
|
2353
2353
|
function TableComponent_div_0_div_2_div_9_div_1_Template(rf, ctx) {
|
|
2354
2354
|
if (rf & 1) {
|
|
2355
|
-
i0.ɵɵelementStart(0, "div",
|
|
2356
|
-
i0.ɵɵtemplate(1, TableComponent_div_0_div_2_div_9_div_1_div_1_Template, 6, 1, "div",
|
|
2357
|
-
i0.ɵɵtemplate(2, TableComponent_div_0_div_2_div_9_div_1_div_2_Template, 8, 1, "div",
|
|
2358
|
-
i0.ɵɵtemplate(3, TableComponent_div_0_div_2_div_9_div_1_div_3_Template, 6, 2, "div",
|
|
2359
|
-
i0.ɵɵtemplate(4, TableComponent_div_0_div_2_div_9_div_1_div_4_Template, 14, 0, "div",
|
|
2360
|
-
i0.ɵɵtemplate(5, TableComponent_div_0_div_2_div_9_div_1_div_5_Template, 3, 0, "div",
|
|
2355
|
+
i0.ɵɵelementStart(0, "div", 42);
|
|
2356
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_div_2_div_9_div_1_div_1_Template, 6, 1, "div", 43);
|
|
2357
|
+
i0.ɵɵtemplate(2, TableComponent_div_0_div_2_div_9_div_1_div_2_Template, 8, 1, "div", 43);
|
|
2358
|
+
i0.ɵɵtemplate(3, TableComponent_div_0_div_2_div_9_div_1_div_3_Template, 6, 2, "div", 43);
|
|
2359
|
+
i0.ɵɵtemplate(4, TableComponent_div_0_div_2_div_9_div_1_div_4_Template, 14, 0, "div", 44);
|
|
2360
|
+
i0.ɵɵtemplate(5, TableComponent_div_0_div_2_div_9_div_1_div_5_Template, 3, 0, "div", 45);
|
|
2361
2361
|
i0.ɵɵelementEnd();
|
|
2362
2362
|
}
|
|
2363
2363
|
if (rf & 2) {
|
|
2364
|
-
const
|
|
2365
|
-
const
|
|
2364
|
+
const filterGroup_r22 = ctx.$implicit;
|
|
2365
|
+
const ctx_r21 = i0.ɵɵnextContext(4);
|
|
2366
2366
|
let tmp_2_0;
|
|
2367
2367
|
let tmp_3_0;
|
|
2368
2368
|
let tmp_4_0;
|
|
2369
|
-
i0.ɵɵproperty("formGroup",
|
|
2369
|
+
i0.ɵɵproperty("formGroup", filterGroup_r22);
|
|
2370
2370
|
i0.ɵɵadvance(1);
|
|
2371
|
-
i0.ɵɵproperty("ngIf",
|
|
2371
|
+
i0.ɵɵproperty("ngIf", ctx_r21.dropdownItems.length > 0);
|
|
2372
2372
|
i0.ɵɵadvance(1);
|
|
2373
|
-
i0.ɵɵproperty("ngIf", ((tmp_2_0 =
|
|
2373
|
+
i0.ɵɵproperty("ngIf", ((tmp_2_0 = filterGroup_r22.get("selectFilter")) == null ? null : tmp_2_0.value == null ? null : tmp_2_0.value.arrange) === "filter");
|
|
2374
2374
|
i0.ɵɵadvance(1);
|
|
2375
|
-
i0.ɵɵproperty("ngIf", ((tmp_3_0 =
|
|
2375
|
+
i0.ɵɵproperty("ngIf", ((tmp_3_0 = filterGroup_r22.get("selectFilter")) == null ? null : tmp_3_0.value) && ((tmp_3_0 = filterGroup_r22.get("selectFilter")) == null ? null : tmp_3_0.value.hasOwnProperty("items")));
|
|
2376
2376
|
i0.ɵɵadvance(1);
|
|
2377
|
-
i0.ɵɵproperty("ngIf", ((tmp_4_0 =
|
|
2377
|
+
i0.ɵɵproperty("ngIf", ((tmp_4_0 = filterGroup_r22.get("selectFilter")) == null ? null : tmp_4_0.value == null ? null : tmp_4_0.value.arrange) === "filterByDate");
|
|
2378
2378
|
i0.ɵɵadvance(1);
|
|
2379
|
-
i0.ɵɵproperty("ngIf",
|
|
2379
|
+
i0.ɵɵproperty("ngIf", ctx_r21.filtersForm.length > 1);
|
|
2380
2380
|
}
|
|
2381
2381
|
}
|
|
2382
2382
|
function TableComponent_div_0_div_2_div_9_Template(rf, ctx) {
|
|
2383
2383
|
if (rf & 1) {
|
|
2384
|
-
i0.ɵɵelementStart(0, "div",
|
|
2385
|
-
i0.ɵɵtemplate(1, TableComponent_div_0_div_2_div_9_div_1_Template, 6, 6, "div",
|
|
2384
|
+
i0.ɵɵelementStart(0, "div", 40);
|
|
2385
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_div_2_div_9_div_1_Template, 6, 6, "div", 41);
|
|
2386
2386
|
i0.ɵɵelementEnd();
|
|
2387
2387
|
}
|
|
2388
2388
|
if (rf & 2) {
|
|
2389
|
-
const
|
|
2389
|
+
const ctx_r13 = i0.ɵɵnextContext(3);
|
|
2390
2390
|
i0.ɵɵadvance(1);
|
|
2391
|
-
i0.ɵɵproperty("ngForOf",
|
|
2391
|
+
i0.ɵɵproperty("ngForOf", ctx_r13.filtersForm.controls);
|
|
2392
2392
|
}
|
|
2393
2393
|
}
|
|
2394
2394
|
function TableComponent_div_0_div_2_div_11_Template(rf, ctx) {
|
|
2395
2395
|
if (rf & 1) {
|
|
2396
|
-
const
|
|
2397
|
-
i0.ɵɵelementStart(0, "div")(1, "button",
|
|
2398
|
-
i0.ɵɵlistener("click", function TableComponent_div_0_div_2_div_11_Template_button_click_1_listener() { i0.ɵɵrestoreView(
|
|
2399
|
-
i0.ɵɵelement(2, "i",
|
|
2396
|
+
const _r51 = i0.ɵɵgetCurrentView();
|
|
2397
|
+
i0.ɵɵelementStart(0, "div")(1, "button", 61);
|
|
2398
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_2_div_11_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r51); const ctx_r50 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r50.addFilter()); });
|
|
2399
|
+
i0.ɵɵelement(2, "i", 62);
|
|
2400
2400
|
i0.ɵɵtext(3, " Adicionar Filtro ");
|
|
2401
2401
|
i0.ɵɵelementEnd()();
|
|
2402
2402
|
}
|
|
2403
2403
|
}
|
|
2404
2404
|
function TableComponent_div_0_div_2_div_12_button_7_Template(rf, ctx) {
|
|
2405
2405
|
if (rf & 1) {
|
|
2406
|
-
const
|
|
2407
|
-
i0.ɵɵelementStart(0, "button",
|
|
2408
|
-
i0.ɵɵlistener("click", function TableComponent_div_0_div_2_div_12_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
2409
|
-
i0.ɵɵelement(1, "i",
|
|
2406
|
+
const _r54 = i0.ɵɵgetCurrentView();
|
|
2407
|
+
i0.ɵɵelementStart(0, "button", 69);
|
|
2408
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_2_div_12_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r54); const ctx_r53 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r53.arrange && ctx_r53.downloadTable !== undefined ? ctx_r53.downloadTable(ctx_r53.arrange, ctx_r53.data.conditions || []) : null); });
|
|
2409
|
+
i0.ɵɵelement(1, "i", 70);
|
|
2410
2410
|
i0.ɵɵtext(2, " Exportar ");
|
|
2411
2411
|
i0.ɵɵelementEnd();
|
|
2412
2412
|
}
|
|
2413
2413
|
if (rf & 2) {
|
|
2414
|
-
const
|
|
2415
|
-
i0.ɵɵproperty("disabled",
|
|
2414
|
+
const ctx_r52 = i0.ɵɵnextContext(4);
|
|
2415
|
+
i0.ɵɵproperty("disabled", ctx_r52.dataSource && ctx_r52.dataSource.filteredData.length <= 0);
|
|
2416
2416
|
}
|
|
2417
2417
|
}
|
|
2418
2418
|
function TableComponent_div_0_div_2_div_12_Template(rf, ctx) {
|
|
2419
2419
|
if (rf & 1) {
|
|
2420
|
-
const
|
|
2421
|
-
i0.ɵɵelementStart(0, "div",
|
|
2422
|
-
i0.ɵɵlistener("click", function TableComponent_div_0_div_2_div_12_Template_button_click_1_listener() { i0.ɵɵrestoreView(
|
|
2423
|
-
i0.ɵɵelement(2, "i",
|
|
2420
|
+
const _r56 = i0.ɵɵgetCurrentView();
|
|
2421
|
+
i0.ɵɵelementStart(0, "div", 63)(1, "button", 64);
|
|
2422
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_2_div_12_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r56); const ctx_r55 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r55.search()); });
|
|
2423
|
+
i0.ɵɵelement(2, "i", 65);
|
|
2424
2424
|
i0.ɵɵtext(3, " Pesquisar ");
|
|
2425
2425
|
i0.ɵɵelementEnd();
|
|
2426
|
-
i0.ɵɵelementStart(4, "button",
|
|
2427
|
-
i0.ɵɵlistener("click", function TableComponent_div_0_div_2_div_12_Template_button_click_4_listener() { i0.ɵɵrestoreView(
|
|
2428
|
-
i0.ɵɵelement(5, "i",
|
|
2426
|
+
i0.ɵɵelementStart(4, "button", 66);
|
|
2427
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_2_div_12_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r56); const ctx_r57 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r57.resetFilter()); });
|
|
2428
|
+
i0.ɵɵelement(5, "i", 67);
|
|
2429
2429
|
i0.ɵɵtext(6, " Resetar ");
|
|
2430
2430
|
i0.ɵɵelementEnd();
|
|
2431
|
-
i0.ɵɵtemplate(7, TableComponent_div_0_div_2_div_12_button_7_Template, 3, 1, "button",
|
|
2431
|
+
i0.ɵɵtemplate(7, TableComponent_div_0_div_2_div_12_button_7_Template, 3, 1, "button", 68);
|
|
2432
2432
|
i0.ɵɵelementEnd();
|
|
2433
2433
|
}
|
|
2434
2434
|
if (rf & 2) {
|
|
2435
|
-
const
|
|
2435
|
+
const ctx_r15 = i0.ɵɵnextContext(3);
|
|
2436
2436
|
i0.ɵɵadvance(7);
|
|
2437
|
-
i0.ɵɵproperty("ngIf",
|
|
2437
|
+
i0.ɵɵproperty("ngIf", ctx_r15.data.download !== false && ctx_r15.downloadTable);
|
|
2438
2438
|
}
|
|
2439
2439
|
}
|
|
2440
2440
|
function TableComponent_div_0_div_2_Template(rf, ctx) {
|
|
2441
2441
|
if (rf & 1) {
|
|
2442
|
-
i0.ɵɵelementStart(0, "div",
|
|
2443
|
-
i0.ɵɵelement(4, "i",
|
|
2444
|
-
i0.ɵɵelementStart(5, "span",
|
|
2442
|
+
i0.ɵɵelementStart(0, "div", 18)(1, "div", 19)(2, "div", 20)(3, "div", 21);
|
|
2443
|
+
i0.ɵɵelement(4, "i", 22);
|
|
2444
|
+
i0.ɵɵelementStart(5, "span", 23);
|
|
2445
2445
|
i0.ɵɵtext(6, "Filtros e A\u00E7\u00F5es");
|
|
2446
2446
|
i0.ɵɵelementEnd()();
|
|
2447
|
-
i0.ɵɵtemplate(7, TableComponent_div_0_div_2_button_7_Template, 3, 4, "button",
|
|
2447
|
+
i0.ɵɵtemplate(7, TableComponent_div_0_div_2_button_7_Template, 3, 4, "button", 24);
|
|
2448
2448
|
i0.ɵɵelementEnd()();
|
|
2449
|
-
i0.ɵɵtemplate(8, TableComponent_div_0_div_2_div_8_Template, 10, 2, "div",
|
|
2450
|
-
i0.ɵɵtemplate(9, TableComponent_div_0_div_2_div_9_Template, 2, 1, "div",
|
|
2451
|
-
i0.ɵɵelementStart(10, "div",
|
|
2452
|
-
i0.ɵɵtemplate(11, TableComponent_div_0_div_2_div_11_Template, 4, 0, "div",
|
|
2453
|
-
i0.ɵɵtemplate(12, TableComponent_div_0_div_2_div_12_Template, 8, 1, "div",
|
|
2449
|
+
i0.ɵɵtemplate(8, TableComponent_div_0_div_2_div_8_Template, 10, 2, "div", 25);
|
|
2450
|
+
i0.ɵɵtemplate(9, TableComponent_div_0_div_2_div_9_Template, 2, 1, "div", 26);
|
|
2451
|
+
i0.ɵɵelementStart(10, "div", 27);
|
|
2452
|
+
i0.ɵɵtemplate(11, TableComponent_div_0_div_2_div_11_Template, 4, 0, "div", 28);
|
|
2453
|
+
i0.ɵɵtemplate(12, TableComponent_div_0_div_2_div_12_Template, 8, 1, "div", 29);
|
|
2454
2454
|
i0.ɵɵelementEnd()();
|
|
2455
2455
|
}
|
|
2456
2456
|
if (rf & 2) {
|
|
@@ -2472,275 +2472,275 @@ function TableComponent_div_0_div_3_button_7_i_1_Template(rf, ctx) {
|
|
|
2472
2472
|
i0.ɵɵelement(0, "i");
|
|
2473
2473
|
}
|
|
2474
2474
|
if (rf & 2) {
|
|
2475
|
-
const
|
|
2476
|
-
i0.ɵɵclassMap(
|
|
2475
|
+
const ctx_r61 = i0.ɵɵnextContext(4);
|
|
2476
|
+
i0.ɵɵclassMap(ctx_r61.data.actionButton.icon);
|
|
2477
2477
|
}
|
|
2478
2478
|
}
|
|
2479
2479
|
function TableComponent_div_0_div_3_button_7_Template(rf, ctx) {
|
|
2480
2480
|
if (rf & 1) {
|
|
2481
|
-
const
|
|
2482
|
-
i0.ɵɵelementStart(0, "button",
|
|
2483
|
-
i0.ɵɵlistener("click", function TableComponent_div_0_div_3_button_7_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
2484
|
-
i0.ɵɵtemplate(1, TableComponent_div_0_div_3_button_7_i_1_Template, 1, 2, "i",
|
|
2481
|
+
const _r63 = i0.ɵɵgetCurrentView();
|
|
2482
|
+
i0.ɵɵelementStart(0, "button", 30);
|
|
2483
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_3_button_7_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r63); const ctx_r62 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r62.data.actionButton.method ? ctx_r62.data.actionButton.method($event) : null); });
|
|
2484
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_div_3_button_7_i_1_Template, 1, 2, "i", 31);
|
|
2485
2485
|
i0.ɵɵtext(2);
|
|
2486
2486
|
i0.ɵɵelementEnd();
|
|
2487
2487
|
}
|
|
2488
2488
|
if (rf & 2) {
|
|
2489
|
-
const
|
|
2490
|
-
i0.ɵɵproperty("ngClass",
|
|
2489
|
+
const ctx_r58 = i0.ɵɵnextContext(3);
|
|
2490
|
+
i0.ɵɵproperty("ngClass", ctx_r58.getActionButtonClass())("routerLink", ctx_r58.data.actionButton.routerLink);
|
|
2491
2491
|
i0.ɵɵadvance(1);
|
|
2492
|
-
i0.ɵɵproperty("ngIf",
|
|
2492
|
+
i0.ɵɵproperty("ngIf", ctx_r58.data.actionButton.icon);
|
|
2493
2493
|
i0.ɵɵadvance(1);
|
|
2494
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
2494
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r58.data.actionButton.label, " ");
|
|
2495
2495
|
}
|
|
2496
2496
|
}
|
|
2497
2497
|
function TableComponent_div_0_div_3_div_8_Template(rf, ctx) {
|
|
2498
2498
|
if (rf & 1) {
|
|
2499
|
-
const
|
|
2500
|
-
i0.ɵɵelementStart(0, "div",
|
|
2501
|
-
i0.ɵɵelement(3, "i",
|
|
2499
|
+
const _r66 = i0.ɵɵgetCurrentView();
|
|
2500
|
+
i0.ɵɵelementStart(0, "div", 32)(1, "mat-form-field", 35)(2, "mat-label", 21);
|
|
2501
|
+
i0.ɵɵelement(3, "i", 71);
|
|
2502
2502
|
i0.ɵɵtext(4, " Buscar ");
|
|
2503
2503
|
i0.ɵɵelementEnd();
|
|
2504
|
-
i0.ɵɵelementStart(5, "input",
|
|
2505
|
-
i0.ɵɵlistener("keyup.enter", function TableComponent_div_0_div_3_div_8_Template_input_keyup_enter_5_listener($event) { i0.ɵɵrestoreView(
|
|
2504
|
+
i0.ɵɵelementStart(5, "input", 72, 73);
|
|
2505
|
+
i0.ɵɵlistener("keyup.enter", function TableComponent_div_0_div_3_div_8_Template_input_keyup_enter_5_listener($event) { i0.ɵɵrestoreView(_r66); const ctx_r65 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r65.search($event)); })("keyup", function TableComponent_div_0_div_3_div_8_Template_input_keyup_5_listener() { i0.ɵɵrestoreView(_r66); const _r64 = i0.ɵɵreference(6); const ctx_r67 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r67.applyFilter(_r64.value)); });
|
|
2506
2506
|
i0.ɵɵelementEnd();
|
|
2507
|
-
i0.ɵɵelementStart(7, "mat-icon",
|
|
2507
|
+
i0.ɵɵelementStart(7, "mat-icon", 74);
|
|
2508
2508
|
i0.ɵɵtext(8, "search");
|
|
2509
2509
|
i0.ɵɵelementEnd()()();
|
|
2510
2510
|
}
|
|
2511
2511
|
}
|
|
2512
2512
|
function TableComponent_div_0_div_3_div_9_div_1_div_1_div_1_mat_option_5_Template(rf, ctx) {
|
|
2513
2513
|
if (rf & 1) {
|
|
2514
|
-
i0.ɵɵelementStart(0, "mat-option",
|
|
2515
|
-
i0.ɵɵelement(2, "i",
|
|
2514
|
+
i0.ɵɵelementStart(0, "mat-option", 39)(1, "div", 21);
|
|
2515
|
+
i0.ɵɵelement(2, "i", 47);
|
|
2516
2516
|
i0.ɵɵelementStart(3, "span");
|
|
2517
2517
|
i0.ɵɵtext(4);
|
|
2518
2518
|
i0.ɵɵelementEnd()()();
|
|
2519
2519
|
}
|
|
2520
2520
|
if (rf & 2) {
|
|
2521
|
-
const
|
|
2522
|
-
i0.ɵɵproperty("value",
|
|
2521
|
+
const item_r80 = ctx.$implicit;
|
|
2522
|
+
i0.ɵɵproperty("value", item_r80);
|
|
2523
2523
|
i0.ɵɵadvance(2);
|
|
2524
|
-
i0.ɵɵclassMap(
|
|
2524
|
+
i0.ɵɵclassMap(item_r80.icon || "fa fa-filter");
|
|
2525
2525
|
i0.ɵɵadvance(2);
|
|
2526
|
-
i0.ɵɵtextInterpolate(
|
|
2526
|
+
i0.ɵɵtextInterpolate(item_r80.title);
|
|
2527
2527
|
}
|
|
2528
2528
|
}
|
|
2529
2529
|
function TableComponent_div_0_div_3_div_9_div_1_div_1_div_1_Template(rf, ctx) {
|
|
2530
2530
|
if (rf & 1) {
|
|
2531
|
-
const
|
|
2532
|
-
i0.ɵɵelementStart(0, "div",
|
|
2531
|
+
const _r82 = i0.ɵɵgetCurrentView();
|
|
2532
|
+
i0.ɵɵelementStart(0, "div", 34)(1, "mat-form-field", 35)(2, "mat-label");
|
|
2533
2533
|
i0.ɵɵtext(3, "Tipo de filtro");
|
|
2534
2534
|
i0.ɵɵelementEnd();
|
|
2535
|
-
i0.ɵɵelementStart(4, "mat-select",
|
|
2536
|
-
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(
|
|
2537
|
-
i0.ɵɵtemplate(5, TableComponent_div_0_div_3_div_9_div_1_div_1_div_1_mat_option_5_Template, 5, 4, "mat-option",
|
|
2535
|
+
i0.ɵɵelementStart(4, "mat-select", 46);
|
|
2536
|
+
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(_r82); const ctx_r81 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r81.onSelectFilterChange()); });
|
|
2537
|
+
i0.ɵɵtemplate(5, TableComponent_div_0_div_3_div_9_div_1_div_1_div_1_mat_option_5_Template, 5, 4, "mat-option", 38);
|
|
2538
2538
|
i0.ɵɵelementEnd()()();
|
|
2539
2539
|
}
|
|
2540
2540
|
if (rf & 2) {
|
|
2541
|
-
const
|
|
2541
|
+
const ctx_r74 = i0.ɵɵnextContext(6);
|
|
2542
2542
|
i0.ɵɵadvance(5);
|
|
2543
|
-
i0.ɵɵproperty("ngForOf",
|
|
2543
|
+
i0.ɵɵproperty("ngForOf", ctx_r74.getAvailableFilterOptions());
|
|
2544
2544
|
}
|
|
2545
2545
|
}
|
|
2546
2546
|
function TableComponent_div_0_div_3_div_9_div_1_div_1_div_2_Template(rf, ctx) {
|
|
2547
2547
|
if (rf & 1) {
|
|
2548
|
-
const
|
|
2549
|
-
i0.ɵɵelementStart(0, "div",
|
|
2550
|
-
i0.ɵɵelement(3, "i",
|
|
2548
|
+
const _r85 = i0.ɵɵgetCurrentView();
|
|
2549
|
+
i0.ɵɵelementStart(0, "div", 34)(1, "mat-form-field", 35)(2, "mat-label", 21);
|
|
2550
|
+
i0.ɵɵelement(3, "i", 48);
|
|
2551
2551
|
i0.ɵɵelementStart(4, "span");
|
|
2552
2552
|
i0.ɵɵtext(5);
|
|
2553
2553
|
i0.ɵɵelementEnd()();
|
|
2554
|
-
i0.ɵɵelementStart(6, "input",
|
|
2555
|
-
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(
|
|
2554
|
+
i0.ɵɵelementStart(6, "input", 49, 50);
|
|
2555
|
+
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(_r85); const ctx_r84 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r84.search($event)); });
|
|
2556
2556
|
i0.ɵɵelementEnd()()();
|
|
2557
2557
|
}
|
|
2558
2558
|
if (rf & 2) {
|
|
2559
|
-
const
|
|
2559
|
+
const filterGroup_r72 = i0.ɵɵnextContext().$implicit;
|
|
2560
2560
|
let tmp_0_0;
|
|
2561
2561
|
i0.ɵɵadvance(5);
|
|
2562
|
-
i0.ɵɵtextInterpolate(((tmp_0_0 =
|
|
2562
|
+
i0.ɵɵtextInterpolate(((tmp_0_0 = filterGroup_r72.get("selectFilter")) == null ? null : tmp_0_0.value == null ? null : tmp_0_0.value.title) || "Filtrar");
|
|
2563
2563
|
}
|
|
2564
2564
|
}
|
|
2565
2565
|
function TableComponent_div_0_div_3_div_9_div_1_div_1_div_3_mat_option_5_Template(rf, ctx) {
|
|
2566
2566
|
if (rf & 1) {
|
|
2567
|
-
i0.ɵɵelementStart(0, "mat-option",
|
|
2567
|
+
i0.ɵɵelementStart(0, "mat-option", 39);
|
|
2568
2568
|
i0.ɵɵtext(1);
|
|
2569
2569
|
i0.ɵɵelementEnd();
|
|
2570
2570
|
}
|
|
2571
2571
|
if (rf & 2) {
|
|
2572
|
-
const
|
|
2573
|
-
i0.ɵɵproperty("value",
|
|
2572
|
+
const item_r88 = ctx.$implicit;
|
|
2573
|
+
i0.ɵɵproperty("value", item_r88);
|
|
2574
2574
|
i0.ɵɵadvance(1);
|
|
2575
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
2575
|
+
i0.ɵɵtextInterpolate1(" ", item_r88.label, " ");
|
|
2576
2576
|
}
|
|
2577
2577
|
}
|
|
2578
2578
|
function TableComponent_div_0_div_3_div_9_div_1_div_1_div_3_Template(rf, ctx) {
|
|
2579
2579
|
if (rf & 1) {
|
|
2580
|
-
i0.ɵɵelementStart(0, "div",
|
|
2580
|
+
i0.ɵɵelementStart(0, "div", 34)(1, "mat-form-field", 35)(2, "mat-label");
|
|
2581
2581
|
i0.ɵɵtext(3);
|
|
2582
2582
|
i0.ɵɵelementEnd();
|
|
2583
|
-
i0.ɵɵelementStart(4, "mat-select",
|
|
2584
|
-
i0.ɵɵtemplate(5, TableComponent_div_0_div_3_div_9_div_1_div_1_div_3_mat_option_5_Template, 2, 2, "mat-option",
|
|
2583
|
+
i0.ɵɵelementStart(4, "mat-select", 51);
|
|
2584
|
+
i0.ɵɵtemplate(5, TableComponent_div_0_div_3_div_9_div_1_div_1_div_3_mat_option_5_Template, 2, 2, "mat-option", 38);
|
|
2585
2585
|
i0.ɵɵelementEnd()()();
|
|
2586
2586
|
}
|
|
2587
2587
|
if (rf & 2) {
|
|
2588
|
-
const
|
|
2588
|
+
const filterGroup_r72 = i0.ɵɵnextContext().$implicit;
|
|
2589
2589
|
let tmp_0_0;
|
|
2590
2590
|
let tmp_1_0;
|
|
2591
2591
|
i0.ɵɵadvance(3);
|
|
2592
|
-
i0.ɵɵtextInterpolate(((tmp_0_0 =
|
|
2592
|
+
i0.ɵɵtextInterpolate(((tmp_0_0 = filterGroup_r72.get("selectFilter")) == null ? null : tmp_0_0.value == null ? null : tmp_0_0.value.title) || "Selecione");
|
|
2593
2593
|
i0.ɵɵadvance(2);
|
|
2594
|
-
i0.ɵɵproperty("ngForOf", (tmp_1_0 =
|
|
2594
|
+
i0.ɵɵproperty("ngForOf", (tmp_1_0 = filterGroup_r72.get("selectFilter")) == null ? null : tmp_1_0.value.items);
|
|
2595
2595
|
}
|
|
2596
2596
|
}
|
|
2597
2597
|
function TableComponent_div_0_div_3_div_9_div_1_div_1_div_4_Template(rf, ctx) {
|
|
2598
2598
|
if (rf & 1) {
|
|
2599
|
-
const
|
|
2600
|
-
i0.ɵɵelementStart(0, "div",
|
|
2601
|
-
i0.ɵɵelement(4, "i",
|
|
2599
|
+
const _r91 = i0.ɵɵgetCurrentView();
|
|
2600
|
+
i0.ɵɵelementStart(0, "div", 52)(1, "div", 53)(2, "mat-form-field", 54)(3, "mat-label", 21);
|
|
2601
|
+
i0.ɵɵelement(4, "i", 55);
|
|
2602
2602
|
i0.ɵɵelementStart(5, "span");
|
|
2603
2603
|
i0.ɵɵtext(6, "Data Inicial");
|
|
2604
2604
|
i0.ɵɵelementEnd()();
|
|
2605
|
-
i0.ɵɵelementStart(7, "input",
|
|
2606
|
-
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(
|
|
2605
|
+
i0.ɵɵelementStart(7, "input", 77);
|
|
2606
|
+
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(_r91); const ctx_r90 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r90.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(_r91); const i_r73 = i0.ɵɵnextContext().index; const ctx_r92 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r92.onDateInput($event, "initialDate", i_r73)); })("blur", function TableComponent_div_0_div_3_div_9_div_1_div_1_div_4_Template_input_blur_7_listener() { i0.ɵɵrestoreView(_r91); const ctx_r94 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r94.onDateFilterChange()); });
|
|
2607
2607
|
i0.ɵɵelementEnd()();
|
|
2608
|
-
i0.ɵɵelementStart(8, "mat-form-field",
|
|
2609
|
-
i0.ɵɵelement(10, "i",
|
|
2608
|
+
i0.ɵɵelementStart(8, "mat-form-field", 54)(9, "mat-label", 21);
|
|
2609
|
+
i0.ɵɵelement(10, "i", 55);
|
|
2610
2610
|
i0.ɵɵelementStart(11, "span");
|
|
2611
2611
|
i0.ɵɵtext(12, "Data Final");
|
|
2612
2612
|
i0.ɵɵelementEnd()();
|
|
2613
|
-
i0.ɵɵelementStart(13, "input",
|
|
2614
|
-
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(
|
|
2613
|
+
i0.ɵɵelementStart(13, "input", 78);
|
|
2614
|
+
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(_r91); const ctx_r95 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r95.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(_r91); const i_r73 = i0.ɵɵnextContext().index; const ctx_r96 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r96.onDateInput($event, "finalDate", i_r73)); })("blur", function TableComponent_div_0_div_3_div_9_div_1_div_1_div_4_Template_input_blur_13_listener() { i0.ɵɵrestoreView(_r91); const ctx_r98 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r98.onDateFilterChange()); });
|
|
2615
2615
|
i0.ɵɵelementEnd()()()();
|
|
2616
2616
|
}
|
|
2617
2617
|
}
|
|
2618
2618
|
function TableComponent_div_0_div_3_div_9_div_1_div_1_div_5_Template(rf, ctx) {
|
|
2619
2619
|
if (rf & 1) {
|
|
2620
|
-
const
|
|
2621
|
-
i0.ɵɵelementStart(0, "div",
|
|
2622
|
-
i0.ɵɵlistener("click", function TableComponent_div_0_div_3_div_9_div_1_div_1_div_5_Template_button_click_1_listener() { i0.ɵɵrestoreView(
|
|
2623
|
-
i0.ɵɵelement(2, "i",
|
|
2620
|
+
const _r101 = i0.ɵɵgetCurrentView();
|
|
2621
|
+
i0.ɵɵelementStart(0, "div", 58)(1, "button", 59);
|
|
2622
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_3_div_9_div_1_div_1_div_5_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r101); const i_r73 = i0.ɵɵnextContext().index; const ctx_r99 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r99.removeFilter(i_r73)); });
|
|
2623
|
+
i0.ɵɵelement(2, "i", 60);
|
|
2624
2624
|
i0.ɵɵelementEnd()();
|
|
2625
2625
|
}
|
|
2626
2626
|
}
|
|
2627
2627
|
function TableComponent_div_0_div_3_div_9_div_1_div_1_Template(rf, ctx) {
|
|
2628
2628
|
if (rf & 1) {
|
|
2629
|
-
i0.ɵɵelementStart(0, "div",
|
|
2630
|
-
i0.ɵɵtemplate(1, TableComponent_div_0_div_3_div_9_div_1_div_1_div_1_Template, 6, 1, "div",
|
|
2631
|
-
i0.ɵɵtemplate(2, TableComponent_div_0_div_3_div_9_div_1_div_1_div_2_Template, 8, 1, "div",
|
|
2632
|
-
i0.ɵɵtemplate(3, TableComponent_div_0_div_3_div_9_div_1_div_1_div_3_Template, 6, 2, "div",
|
|
2633
|
-
i0.ɵɵtemplate(4, TableComponent_div_0_div_3_div_9_div_1_div_1_div_4_Template, 14, 0, "div",
|
|
2634
|
-
i0.ɵɵtemplate(5, TableComponent_div_0_div_3_div_9_div_1_div_1_div_5_Template, 3, 0, "div",
|
|
2629
|
+
i0.ɵɵelementStart(0, "div", 76);
|
|
2630
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_div_3_div_9_div_1_div_1_div_1_Template, 6, 1, "div", 43);
|
|
2631
|
+
i0.ɵɵtemplate(2, TableComponent_div_0_div_3_div_9_div_1_div_1_div_2_Template, 8, 1, "div", 43);
|
|
2632
|
+
i0.ɵɵtemplate(3, TableComponent_div_0_div_3_div_9_div_1_div_1_div_3_Template, 6, 2, "div", 43);
|
|
2633
|
+
i0.ɵɵtemplate(4, TableComponent_div_0_div_3_div_9_div_1_div_1_div_4_Template, 14, 0, "div", 44);
|
|
2634
|
+
i0.ɵɵtemplate(5, TableComponent_div_0_div_3_div_9_div_1_div_1_div_5_Template, 3, 0, "div", 45);
|
|
2635
2635
|
i0.ɵɵelementEnd();
|
|
2636
2636
|
}
|
|
2637
2637
|
if (rf & 2) {
|
|
2638
|
-
const
|
|
2639
|
-
const
|
|
2638
|
+
const filterGroup_r72 = ctx.$implicit;
|
|
2639
|
+
const ctx_r71 = i0.ɵɵnextContext(5);
|
|
2640
2640
|
let tmp_2_0;
|
|
2641
2641
|
let tmp_3_0;
|
|
2642
2642
|
let tmp_4_0;
|
|
2643
|
-
i0.ɵɵproperty("formGroup",
|
|
2643
|
+
i0.ɵɵproperty("formGroup", filterGroup_r72);
|
|
2644
2644
|
i0.ɵɵadvance(1);
|
|
2645
|
-
i0.ɵɵproperty("ngIf",
|
|
2645
|
+
i0.ɵɵproperty("ngIf", ctx_r71.dropdownItems.length > 0);
|
|
2646
2646
|
i0.ɵɵadvance(1);
|
|
2647
|
-
i0.ɵɵproperty("ngIf", ((tmp_2_0 =
|
|
2647
|
+
i0.ɵɵproperty("ngIf", ((tmp_2_0 = filterGroup_r72.get("selectFilter")) == null ? null : tmp_2_0.value == null ? null : tmp_2_0.value.arrange) === "filter");
|
|
2648
2648
|
i0.ɵɵadvance(1);
|
|
2649
|
-
i0.ɵɵproperty("ngIf", ((tmp_3_0 =
|
|
2649
|
+
i0.ɵɵproperty("ngIf", ((tmp_3_0 = filterGroup_r72.get("selectFilter")) == null ? null : tmp_3_0.value) && ((tmp_3_0 = filterGroup_r72.get("selectFilter")) == null ? null : tmp_3_0.value.hasOwnProperty("items")));
|
|
2650
2650
|
i0.ɵɵadvance(1);
|
|
2651
|
-
i0.ɵɵproperty("ngIf", ((tmp_4_0 =
|
|
2651
|
+
i0.ɵɵproperty("ngIf", ((tmp_4_0 = filterGroup_r72.get("selectFilter")) == null ? null : tmp_4_0.value == null ? null : tmp_4_0.value.arrange) === "filterByDate");
|
|
2652
2652
|
i0.ɵɵadvance(1);
|
|
2653
|
-
i0.ɵɵproperty("ngIf",
|
|
2653
|
+
i0.ɵɵproperty("ngIf", ctx_r71.filtersForm.length > 1);
|
|
2654
2654
|
}
|
|
2655
2655
|
}
|
|
2656
2656
|
function TableComponent_div_0_div_3_div_9_div_1_Template(rf, ctx) {
|
|
2657
2657
|
if (rf & 1) {
|
|
2658
|
-
i0.ɵɵelementStart(0, "div",
|
|
2659
|
-
i0.ɵɵtemplate(1, TableComponent_div_0_div_3_div_9_div_1_div_1_Template, 6, 6, "div",
|
|
2658
|
+
i0.ɵɵelementStart(0, "div", 40);
|
|
2659
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_div_3_div_9_div_1_div_1_Template, 6, 6, "div", 75);
|
|
2660
2660
|
i0.ɵɵelementEnd();
|
|
2661
2661
|
}
|
|
2662
2662
|
if (rf & 2) {
|
|
2663
|
-
const
|
|
2663
|
+
const ctx_r68 = i0.ɵɵnextContext(4);
|
|
2664
2664
|
i0.ɵɵadvance(1);
|
|
2665
|
-
i0.ɵɵproperty("ngForOf",
|
|
2665
|
+
i0.ɵɵproperty("ngForOf", ctx_r68.filtersForm.controls);
|
|
2666
2666
|
}
|
|
2667
2667
|
}
|
|
2668
2668
|
function TableComponent_div_0_div_3_div_9_div_3_Template(rf, ctx) {
|
|
2669
2669
|
if (rf & 1) {
|
|
2670
|
-
const
|
|
2671
|
-
i0.ɵɵelementStart(0, "div")(1, "button",
|
|
2672
|
-
i0.ɵɵlistener("click", function TableComponent_div_0_div_3_div_9_div_3_Template_button_click_1_listener() { i0.ɵɵrestoreView(
|
|
2673
|
-
i0.ɵɵelement(2, "i",
|
|
2670
|
+
const _r103 = i0.ɵɵgetCurrentView();
|
|
2671
|
+
i0.ɵɵelementStart(0, "div")(1, "button", 61);
|
|
2672
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_3_div_9_div_3_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r103); const ctx_r102 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r102.addFilter()); });
|
|
2673
|
+
i0.ɵɵelement(2, "i", 62);
|
|
2674
2674
|
i0.ɵɵtext(3, " Adicionar Filtro ");
|
|
2675
2675
|
i0.ɵɵelementEnd()();
|
|
2676
2676
|
}
|
|
2677
2677
|
}
|
|
2678
2678
|
function TableComponent_div_0_div_3_div_9_div_4_button_7_Template(rf, ctx) {
|
|
2679
2679
|
if (rf & 1) {
|
|
2680
|
-
const
|
|
2681
|
-
i0.ɵɵelementStart(0, "button",
|
|
2682
|
-
i0.ɵɵlistener("click", function TableComponent_div_0_div_3_div_9_div_4_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
2683
|
-
i0.ɵɵelement(1, "i",
|
|
2680
|
+
const _r106 = i0.ɵɵgetCurrentView();
|
|
2681
|
+
i0.ɵɵelementStart(0, "button", 69);
|
|
2682
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_3_div_9_div_4_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r106); const ctx_r105 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r105.handleDownload()); });
|
|
2683
|
+
i0.ɵɵelement(1, "i", 70);
|
|
2684
2684
|
i0.ɵɵtext(2, " Exportar ");
|
|
2685
2685
|
i0.ɵɵelementEnd();
|
|
2686
2686
|
}
|
|
2687
2687
|
if (rf & 2) {
|
|
2688
|
-
const
|
|
2689
|
-
i0.ɵɵproperty("disabled",
|
|
2688
|
+
const ctx_r104 = i0.ɵɵnextContext(5);
|
|
2689
|
+
i0.ɵɵproperty("disabled", ctx_r104.dataSource && ctx_r104.dataSource.filteredData.length <= 0);
|
|
2690
2690
|
}
|
|
2691
2691
|
}
|
|
2692
2692
|
function TableComponent_div_0_div_3_div_9_div_4_Template(rf, ctx) {
|
|
2693
2693
|
if (rf & 1) {
|
|
2694
|
-
const
|
|
2695
|
-
i0.ɵɵelementStart(0, "div",
|
|
2696
|
-
i0.ɵɵlistener("click", function TableComponent_div_0_div_3_div_9_div_4_Template_button_click_1_listener() { i0.ɵɵrestoreView(
|
|
2697
|
-
i0.ɵɵelement(2, "i",
|
|
2694
|
+
const _r108 = i0.ɵɵgetCurrentView();
|
|
2695
|
+
i0.ɵɵelementStart(0, "div", 63)(1, "button", 64);
|
|
2696
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_3_div_9_div_4_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r108); const ctx_r107 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r107.search()); });
|
|
2697
|
+
i0.ɵɵelement(2, "i", 65);
|
|
2698
2698
|
i0.ɵɵtext(3, " Pesquisar ");
|
|
2699
2699
|
i0.ɵɵelementEnd();
|
|
2700
|
-
i0.ɵɵelementStart(4, "button",
|
|
2701
|
-
i0.ɵɵlistener("click", function TableComponent_div_0_div_3_div_9_div_4_Template_button_click_4_listener() { i0.ɵɵrestoreView(
|
|
2702
|
-
i0.ɵɵelement(5, "i",
|
|
2700
|
+
i0.ɵɵelementStart(4, "button", 66);
|
|
2701
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_div_3_div_9_div_4_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r108); const ctx_r109 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r109.resetFilter()); });
|
|
2702
|
+
i0.ɵɵelement(5, "i", 67);
|
|
2703
2703
|
i0.ɵɵtext(6, " Resetar ");
|
|
2704
2704
|
i0.ɵɵelementEnd();
|
|
2705
|
-
i0.ɵɵtemplate(7, TableComponent_div_0_div_3_div_9_div_4_button_7_Template, 3, 1, "button",
|
|
2705
|
+
i0.ɵɵtemplate(7, TableComponent_div_0_div_3_div_9_div_4_button_7_Template, 3, 1, "button", 68);
|
|
2706
2706
|
i0.ɵɵelementEnd();
|
|
2707
2707
|
}
|
|
2708
2708
|
if (rf & 2) {
|
|
2709
|
-
const
|
|
2709
|
+
const ctx_r70 = i0.ɵɵnextContext(4);
|
|
2710
2710
|
i0.ɵɵadvance(7);
|
|
2711
|
-
i0.ɵɵproperty("ngIf",
|
|
2711
|
+
i0.ɵɵproperty("ngIf", ctx_r70.data.download !== false && ctx_r70.downloadTable);
|
|
2712
2712
|
}
|
|
2713
2713
|
}
|
|
2714
2714
|
function TableComponent_div_0_div_3_div_9_Template(rf, ctx) {
|
|
2715
2715
|
if (rf & 1) {
|
|
2716
2716
|
i0.ɵɵelementStart(0, "div");
|
|
2717
|
-
i0.ɵɵtemplate(1, TableComponent_div_0_div_3_div_9_div_1_Template, 2, 1, "div",
|
|
2718
|
-
i0.ɵɵelementStart(2, "div",
|
|
2719
|
-
i0.ɵɵtemplate(3, TableComponent_div_0_div_3_div_9_div_3_Template, 4, 0, "div",
|
|
2720
|
-
i0.ɵɵtemplate(4, TableComponent_div_0_div_3_div_9_div_4_Template, 8, 1, "div",
|
|
2717
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_div_3_div_9_div_1_Template, 2, 1, "div", 26);
|
|
2718
|
+
i0.ɵɵelementStart(2, "div", 27);
|
|
2719
|
+
i0.ɵɵtemplate(3, TableComponent_div_0_div_3_div_9_div_3_Template, 4, 0, "div", 28);
|
|
2720
|
+
i0.ɵɵtemplate(4, TableComponent_div_0_div_3_div_9_div_4_Template, 8, 1, "div", 29);
|
|
2721
2721
|
i0.ɵɵelementEnd()();
|
|
2722
2722
|
}
|
|
2723
2723
|
if (rf & 2) {
|
|
2724
|
-
const
|
|
2724
|
+
const ctx_r60 = i0.ɵɵnextContext(3);
|
|
2725
2725
|
i0.ɵɵadvance(1);
|
|
2726
|
-
i0.ɵɵproperty("ngIf",
|
|
2726
|
+
i0.ɵɵproperty("ngIf", ctx_r60.filtersForm.controls.length > 0);
|
|
2727
2727
|
i0.ɵɵadvance(2);
|
|
2728
|
-
i0.ɵɵproperty("ngIf",
|
|
2728
|
+
i0.ɵɵproperty("ngIf", ctx_r60.dropdownItems.length > 0);
|
|
2729
2729
|
i0.ɵɵadvance(1);
|
|
2730
|
-
i0.ɵɵproperty("ngIf",
|
|
2730
|
+
i0.ɵɵproperty("ngIf", ctx_r60.hasFilterableColumn === true || ctx_r60.hasSortableColumn === true);
|
|
2731
2731
|
}
|
|
2732
2732
|
}
|
|
2733
2733
|
function TableComponent_div_0_div_3_Template(rf, ctx) {
|
|
2734
2734
|
if (rf & 1) {
|
|
2735
|
-
i0.ɵɵelementStart(0, "div",
|
|
2736
|
-
i0.ɵɵelement(4, "i",
|
|
2737
|
-
i0.ɵɵelementStart(5, "span",
|
|
2735
|
+
i0.ɵɵelementStart(0, "div", 18)(1, "div", 19)(2, "div", 20)(3, "div", 21);
|
|
2736
|
+
i0.ɵɵelement(4, "i", 22);
|
|
2737
|
+
i0.ɵɵelementStart(5, "span", 23);
|
|
2738
2738
|
i0.ɵɵtext(6, "Filtros e A\u00E7\u00F5es");
|
|
2739
2739
|
i0.ɵɵelementEnd()();
|
|
2740
|
-
i0.ɵɵtemplate(7, TableComponent_div_0_div_3_button_7_Template, 3, 4, "button",
|
|
2740
|
+
i0.ɵɵtemplate(7, TableComponent_div_0_div_3_button_7_Template, 3, 4, "button", 24);
|
|
2741
2741
|
i0.ɵɵelementEnd()();
|
|
2742
|
-
i0.ɵɵtemplate(8, TableComponent_div_0_div_3_div_8_Template, 9, 0, "div",
|
|
2743
|
-
i0.ɵɵtemplate(9, TableComponent_div_0_div_3_div_9_Template, 5, 3, "div",
|
|
2742
|
+
i0.ɵɵtemplate(8, TableComponent_div_0_div_3_div_8_Template, 9, 0, "div", 25);
|
|
2743
|
+
i0.ɵɵtemplate(9, TableComponent_div_0_div_3_div_9_Template, 5, 3, "div", 28);
|
|
2744
2744
|
i0.ɵɵelementEnd();
|
|
2745
2745
|
}
|
|
2746
2746
|
if (rf & 2) {
|
|
@@ -2755,9 +2755,9 @@ function TableComponent_div_0_div_3_Template(rf, ctx) {
|
|
|
2755
2755
|
}
|
|
2756
2756
|
function TableComponent_div_0_lib_table_tabs_5_Template(rf, ctx) {
|
|
2757
2757
|
if (rf & 1) {
|
|
2758
|
-
const
|
|
2759
|
-
i0.ɵɵelementStart(0, "lib-table-tabs",
|
|
2760
|
-
i0.ɵɵlistener("tabSelected", function TableComponent_div_0_lib_table_tabs_5_Template_lib_table_tabs_tabSelected_0_listener($event) { i0.ɵɵrestoreView(
|
|
2758
|
+
const _r111 = i0.ɵɵgetCurrentView();
|
|
2759
|
+
i0.ɵɵelementStart(0, "lib-table-tabs", 79);
|
|
2760
|
+
i0.ɵɵlistener("tabSelected", function TableComponent_div_0_lib_table_tabs_5_Template_lib_table_tabs_tabSelected_0_listener($event) { i0.ɵɵrestoreView(_r111); const ctx_r110 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r110.onTabSelected($event)); });
|
|
2761
2761
|
i0.ɵɵelementEnd();
|
|
2762
2762
|
}
|
|
2763
2763
|
if (rf & 2) {
|
|
@@ -2767,56 +2767,56 @@ function TableComponent_div_0_lib_table_tabs_5_Template(rf, ctx) {
|
|
|
2767
2767
|
}
|
|
2768
2768
|
function TableComponent_div_0_ng_container_9_ng_container_1_th_1_Template(rf, ctx) {
|
|
2769
2769
|
if (rf & 1) {
|
|
2770
|
-
i0.ɵɵelementStart(0, "th",
|
|
2770
|
+
i0.ɵɵelementStart(0, "th", 85);
|
|
2771
2771
|
i0.ɵɵtext(1);
|
|
2772
2772
|
i0.ɵɵelementEnd();
|
|
2773
2773
|
}
|
|
2774
2774
|
if (rf & 2) {
|
|
2775
|
-
const
|
|
2775
|
+
const col_r112 = i0.ɵɵnextContext(2).$implicit;
|
|
2776
2776
|
i0.ɵɵadvance(1);
|
|
2777
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
2777
|
+
i0.ɵɵtextInterpolate1(" ", col_r112.title, " ");
|
|
2778
2778
|
}
|
|
2779
2779
|
}
|
|
2780
2780
|
function TableComponent_div_0_ng_container_9_ng_container_1_th_2_Template(rf, ctx) {
|
|
2781
2781
|
if (rf & 1) {
|
|
2782
|
-
i0.ɵɵelementStart(0, "th",
|
|
2782
|
+
i0.ɵɵelementStart(0, "th", 86);
|
|
2783
2783
|
i0.ɵɵtext(1);
|
|
2784
2784
|
i0.ɵɵelementEnd();
|
|
2785
2785
|
}
|
|
2786
2786
|
if (rf & 2) {
|
|
2787
|
-
const
|
|
2787
|
+
const col_r112 = i0.ɵɵnextContext(2).$implicit;
|
|
2788
2788
|
i0.ɵɵadvance(1);
|
|
2789
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
2789
|
+
i0.ɵɵtextInterpolate1(" ", col_r112.title, " ");
|
|
2790
2790
|
}
|
|
2791
2791
|
}
|
|
2792
2792
|
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_span_2_a_1_Template(rf, ctx) {
|
|
2793
2793
|
if (rf & 1) {
|
|
2794
|
-
i0.ɵɵelementStart(0, "a",
|
|
2794
|
+
i0.ɵɵelementStart(0, "a", 92);
|
|
2795
2795
|
i0.ɵɵtext(1);
|
|
2796
2796
|
i0.ɵɵelementEnd();
|
|
2797
2797
|
}
|
|
2798
2798
|
if (rf & 2) {
|
|
2799
|
-
const
|
|
2800
|
-
const
|
|
2801
|
-
const
|
|
2802
|
-
i0.ɵɵproperty("href",
|
|
2799
|
+
const row_r119 = i0.ɵɵnextContext(3).$implicit;
|
|
2800
|
+
const col_r112 = i0.ɵɵnextContext(2).$implicit;
|
|
2801
|
+
const ctx_r127 = i0.ɵɵnextContext(2);
|
|
2802
|
+
i0.ɵɵproperty("href", row_r119[col_r112.property], i0.ɵɵsanitizeUrl);
|
|
2803
2803
|
i0.ɵɵadvance(1);
|
|
2804
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
2804
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r127.getDisplayValue(col_r112, row_r119), " ");
|
|
2805
2805
|
}
|
|
2806
2806
|
}
|
|
2807
2807
|
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_span_2_a_2_Template(rf, ctx) {
|
|
2808
2808
|
if (rf & 1) {
|
|
2809
|
-
i0.ɵɵelementStart(0, "a",
|
|
2809
|
+
i0.ɵɵelementStart(0, "a", 92);
|
|
2810
2810
|
i0.ɵɵtext(1);
|
|
2811
2811
|
i0.ɵɵelementEnd();
|
|
2812
2812
|
}
|
|
2813
2813
|
if (rf & 2) {
|
|
2814
|
-
const
|
|
2815
|
-
const
|
|
2816
|
-
const
|
|
2817
|
-
i0.ɵɵproperty("href",
|
|
2814
|
+
const row_r119 = i0.ɵɵnextContext(3).$implicit;
|
|
2815
|
+
const col_r112 = i0.ɵɵnextContext(2).$implicit;
|
|
2816
|
+
const ctx_r128 = i0.ɵɵnextContext(2);
|
|
2817
|
+
i0.ɵɵproperty("href", col_r112.hasLink, i0.ɵɵsanitizeUrl);
|
|
2818
2818
|
i0.ɵɵadvance(1);
|
|
2819
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
2819
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r128.getDisplayValue(col_r112, row_r119), " ");
|
|
2820
2820
|
}
|
|
2821
2821
|
}
|
|
2822
2822
|
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_span_2_span_3_Template(rf, ctx) {
|
|
@@ -2826,60 +2826,60 @@ function TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_span_2_s
|
|
|
2826
2826
|
i0.ɵɵelementEnd();
|
|
2827
2827
|
}
|
|
2828
2828
|
if (rf & 2) {
|
|
2829
|
-
const
|
|
2830
|
-
const
|
|
2831
|
-
const
|
|
2829
|
+
const row_r119 = i0.ɵɵnextContext(3).$implicit;
|
|
2830
|
+
const col_r112 = i0.ɵɵnextContext(2).$implicit;
|
|
2831
|
+
const ctx_r129 = i0.ɵɵnextContext(2);
|
|
2832
2832
|
i0.ɵɵadvance(1);
|
|
2833
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
2833
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r129.getDisplayValue(col_r112, row_r119), " ");
|
|
2834
2834
|
}
|
|
2835
2835
|
}
|
|
2836
2836
|
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_span_2_Template(rf, ctx) {
|
|
2837
2837
|
if (rf & 1) {
|
|
2838
2838
|
i0.ɵɵelementStart(0, "span");
|
|
2839
|
-
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_span_2_a_1_Template, 2, 2, "a",
|
|
2840
|
-
i0.ɵɵtemplate(2, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_span_2_a_2_Template, 2, 2, "a",
|
|
2841
|
-
i0.ɵɵtemplate(3, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_span_2_span_3_Template, 2, 1, "span",
|
|
2839
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_span_2_a_1_Template, 2, 2, "a", 91);
|
|
2840
|
+
i0.ɵɵtemplate(2, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_span_2_a_2_Template, 2, 2, "a", 91);
|
|
2841
|
+
i0.ɵɵtemplate(3, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_span_2_span_3_Template, 2, 1, "span", 28);
|
|
2842
2842
|
i0.ɵɵelementEnd();
|
|
2843
2843
|
}
|
|
2844
2844
|
if (rf & 2) {
|
|
2845
|
-
const
|
|
2846
|
-
const
|
|
2845
|
+
const col_r112 = i0.ɵɵnextContext(4).$implicit;
|
|
2846
|
+
const ctx_r124 = i0.ɵɵnextContext(2);
|
|
2847
2847
|
i0.ɵɵadvance(1);
|
|
2848
|
-
i0.ɵɵproperty("ngIf",
|
|
2848
|
+
i0.ɵɵproperty("ngIf", col_r112.hasLink === true);
|
|
2849
2849
|
i0.ɵɵadvance(1);
|
|
2850
|
-
i0.ɵɵproperty("ngIf",
|
|
2850
|
+
i0.ɵɵproperty("ngIf", col_r112.hasLink && ctx_r124.isString(col_r112.hasLink));
|
|
2851
2851
|
i0.ɵɵadvance(1);
|
|
2852
|
-
i0.ɵɵproperty("ngIf",
|
|
2852
|
+
i0.ɵɵproperty("ngIf", col_r112.hasLink !== true && !ctx_r124.isString(col_r112.hasLink));
|
|
2853
2853
|
}
|
|
2854
2854
|
}
|
|
2855
2855
|
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_ng_template_3_a_0_Template(rf, ctx) {
|
|
2856
2856
|
if (rf & 1) {
|
|
2857
|
-
i0.ɵɵelementStart(0, "a",
|
|
2857
|
+
i0.ɵɵelementStart(0, "a", 92);
|
|
2858
2858
|
i0.ɵɵtext(1);
|
|
2859
2859
|
i0.ɵɵelementEnd();
|
|
2860
2860
|
}
|
|
2861
2861
|
if (rf & 2) {
|
|
2862
|
-
const
|
|
2863
|
-
const
|
|
2864
|
-
const
|
|
2865
|
-
i0.ɵɵproperty("href",
|
|
2862
|
+
const row_r119 = i0.ɵɵnextContext(3).$implicit;
|
|
2863
|
+
const col_r112 = i0.ɵɵnextContext(2).$implicit;
|
|
2864
|
+
const ctx_r137 = i0.ɵɵnextContext(2);
|
|
2865
|
+
i0.ɵɵproperty("href", row_r119[col_r112.property], i0.ɵɵsanitizeUrl);
|
|
2866
2866
|
i0.ɵɵadvance(1);
|
|
2867
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
2867
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r137.getDisplayValue(col_r112, row_r119, true), " ");
|
|
2868
2868
|
}
|
|
2869
2869
|
}
|
|
2870
2870
|
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_ng_template_3_a_1_Template(rf, ctx) {
|
|
2871
2871
|
if (rf & 1) {
|
|
2872
|
-
i0.ɵɵelementStart(0, "a",
|
|
2872
|
+
i0.ɵɵelementStart(0, "a", 92);
|
|
2873
2873
|
i0.ɵɵtext(1);
|
|
2874
2874
|
i0.ɵɵelementEnd();
|
|
2875
2875
|
}
|
|
2876
2876
|
if (rf & 2) {
|
|
2877
|
-
const
|
|
2878
|
-
const
|
|
2879
|
-
const
|
|
2880
|
-
i0.ɵɵproperty("href",
|
|
2877
|
+
const row_r119 = i0.ɵɵnextContext(3).$implicit;
|
|
2878
|
+
const col_r112 = i0.ɵɵnextContext(2).$implicit;
|
|
2879
|
+
const ctx_r138 = i0.ɵɵnextContext(2);
|
|
2880
|
+
i0.ɵɵproperty("href", col_r112.hasLink, i0.ɵɵsanitizeUrl);
|
|
2881
2881
|
i0.ɵɵadvance(1);
|
|
2882
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
2882
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r138.getDisplayValue(col_r112, row_r119, true), " ");
|
|
2883
2883
|
}
|
|
2884
2884
|
}
|
|
2885
2885
|
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_ng_template_3_span_2_Template(rf, ctx) {
|
|
@@ -2889,49 +2889,49 @@ function TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_ng_templ
|
|
|
2889
2889
|
i0.ɵɵelementEnd();
|
|
2890
2890
|
}
|
|
2891
2891
|
if (rf & 2) {
|
|
2892
|
-
const
|
|
2893
|
-
const
|
|
2894
|
-
const
|
|
2892
|
+
const row_r119 = i0.ɵɵnextContext(3).$implicit;
|
|
2893
|
+
const col_r112 = i0.ɵɵnextContext(2).$implicit;
|
|
2894
|
+
const ctx_r139 = i0.ɵɵnextContext(2);
|
|
2895
2895
|
i0.ɵɵadvance(1);
|
|
2896
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
2896
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r139.getDisplayValue(col_r112, row_r119, true), " ");
|
|
2897
2897
|
}
|
|
2898
2898
|
}
|
|
2899
2899
|
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_ng_template_3_Template(rf, ctx) {
|
|
2900
2900
|
if (rf & 1) {
|
|
2901
|
-
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",
|
|
2902
|
-
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_ng_template_3_a_1_Template, 2, 2, "a",
|
|
2903
|
-
i0.ɵɵtemplate(2, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_ng_template_3_span_2_Template, 2, 1, "span",
|
|
2901
|
+
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", 91);
|
|
2902
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_ng_template_3_a_1_Template, 2, 2, "a", 91);
|
|
2903
|
+
i0.ɵɵtemplate(2, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_ng_template_3_span_2_Template, 2, 1, "span", 28);
|
|
2904
2904
|
}
|
|
2905
2905
|
if (rf & 2) {
|
|
2906
|
-
const
|
|
2907
|
-
const
|
|
2908
|
-
i0.ɵɵproperty("ngIf",
|
|
2906
|
+
const col_r112 = i0.ɵɵnextContext(4).$implicit;
|
|
2907
|
+
const ctx_r126 = i0.ɵɵnextContext(2);
|
|
2908
|
+
i0.ɵɵproperty("ngIf", col_r112.hasLink === true);
|
|
2909
2909
|
i0.ɵɵadvance(1);
|
|
2910
|
-
i0.ɵɵproperty("ngIf",
|
|
2910
|
+
i0.ɵɵproperty("ngIf", col_r112.hasLink && ctx_r126.isString(col_r112.hasLink));
|
|
2911
2911
|
i0.ɵɵadvance(1);
|
|
2912
|
-
i0.ɵɵproperty("ngIf",
|
|
2912
|
+
i0.ɵɵproperty("ngIf", col_r112.hasLink !== true && !ctx_r126.isString(col_r112.hasLink));
|
|
2913
2913
|
}
|
|
2914
2914
|
}
|
|
2915
2915
|
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_Template(rf, ctx) {
|
|
2916
2916
|
if (rf & 1) {
|
|
2917
2917
|
i0.ɵɵelementStart(0, "span");
|
|
2918
2918
|
i0.ɵɵelementContainerStart(1);
|
|
2919
|
-
i0.ɵɵtemplate(2, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_span_2_Template, 4, 3, "span",
|
|
2919
|
+
i0.ɵɵtemplate(2, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_span_2_Template, 4, 3, "span", 89);
|
|
2920
2920
|
i0.ɵɵelementContainerEnd();
|
|
2921
|
-
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,
|
|
2921
|
+
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, 90, i0.ɵɵtemplateRefExtractor);
|
|
2922
2922
|
i0.ɵɵelementEnd();
|
|
2923
2923
|
}
|
|
2924
2924
|
if (rf & 2) {
|
|
2925
|
-
const
|
|
2926
|
-
const
|
|
2927
|
-
const
|
|
2925
|
+
const _r125 = i0.ɵɵreference(4);
|
|
2926
|
+
const row_r119 = i0.ɵɵnextContext().$implicit;
|
|
2927
|
+
const col_r112 = i0.ɵɵnextContext(2).$implicit;
|
|
2928
2928
|
i0.ɵɵadvance(2);
|
|
2929
|
-
i0.ɵɵproperty("ngIf",
|
|
2929
|
+
i0.ɵɵproperty("ngIf", col_r112.charLimit && row_r119[col_r112.property] && row_r119[col_r112.property].length > col_r112.charLimit)("ngIfElse", _r125);
|
|
2930
2930
|
}
|
|
2931
2931
|
}
|
|
2932
2932
|
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_2_mat_spinner_1_Template(rf, ctx) {
|
|
2933
2933
|
if (rf & 1) {
|
|
2934
|
-
i0.ɵɵelement(0, "mat-spinner",
|
|
2934
|
+
i0.ɵɵelement(0, "mat-spinner", 96);
|
|
2935
2935
|
}
|
|
2936
2936
|
if (rf & 2) {
|
|
2937
2937
|
i0.ɵɵproperty("diameter", 32);
|
|
@@ -2939,27 +2939,27 @@ function TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_2_mat_spinn
|
|
|
2939
2939
|
}
|
|
2940
2940
|
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_2_Template(rf, ctx) {
|
|
2941
2941
|
if (rf & 1) {
|
|
2942
|
-
const
|
|
2943
|
-
i0.ɵɵelementStart(0, "div",
|
|
2944
|
-
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_2_mat_spinner_1_Template, 1, 1, "mat-spinner",
|
|
2945
|
-
i0.ɵɵelementStart(2, "img",
|
|
2946
|
-
i0.ɵɵlistener("load", function TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_2_Template_img_load_2_listener() { i0.ɵɵrestoreView(
|
|
2942
|
+
const _r152 = i0.ɵɵgetCurrentView();
|
|
2943
|
+
i0.ɵɵelementStart(0, "div", 93);
|
|
2944
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_2_mat_spinner_1_Template, 1, 1, "mat-spinner", 94);
|
|
2945
|
+
i0.ɵɵelementStart(2, "img", 95);
|
|
2946
|
+
i0.ɵɵlistener("load", function TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_2_Template_img_load_2_listener() { i0.ɵɵrestoreView(_r152); const row_r119 = i0.ɵɵnextContext().$implicit; const col_r112 = i0.ɵɵnextContext(2).$implicit; const ctx_r150 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r150.onImageLoad(row_r119, col_r112)); })("error", function TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_2_Template_img_error_2_listener($event) { i0.ɵɵrestoreView(_r152); const row_r119 = i0.ɵɵnextContext().$implicit; const col_r112 = i0.ɵɵnextContext(2).$implicit; const ctx_r154 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r154.onImageError($event, row_r119, col_r112, col_r112.image.default)); });
|
|
2947
2947
|
i0.ɵɵelementEnd()();
|
|
2948
2948
|
}
|
|
2949
2949
|
if (rf & 2) {
|
|
2950
|
-
const
|
|
2951
|
-
const
|
|
2952
|
-
const
|
|
2950
|
+
const row_r119 = i0.ɵɵnextContext().$implicit;
|
|
2951
|
+
const col_r112 = i0.ɵɵnextContext(2).$implicit;
|
|
2952
|
+
const ctx_r121 = i0.ɵɵnextContext(2);
|
|
2953
2953
|
i0.ɵɵadvance(1);
|
|
2954
|
-
i0.ɵɵproperty("ngIf",
|
|
2954
|
+
i0.ɵɵproperty("ngIf", ctx_r121.isImageLoading(row_r119, col_r112));
|
|
2955
2955
|
i0.ɵɵadvance(1);
|
|
2956
|
-
i0.ɵɵclassProp("opacity-0",
|
|
2957
|
-
i0.ɵɵproperty("src",
|
|
2956
|
+
i0.ɵɵclassProp("opacity-0", ctx_r121.isImageLoading(row_r119, col_r112));
|
|
2957
|
+
i0.ɵɵproperty("src", col_r112.image.path + "/" + row_r119[col_r112.property], i0.ɵɵsanitizeUrl)("ngClass", col_r112.image.class);
|
|
2958
2958
|
}
|
|
2959
2959
|
}
|
|
2960
2960
|
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_3_mat_spinner_1_Template(rf, ctx) {
|
|
2961
2961
|
if (rf & 1) {
|
|
2962
|
-
i0.ɵɵelement(0, "mat-spinner",
|
|
2962
|
+
i0.ɵɵelement(0, "mat-spinner", 96);
|
|
2963
2963
|
}
|
|
2964
2964
|
if (rf & 2) {
|
|
2965
2965
|
i0.ɵɵproperty("diameter", 32);
|
|
@@ -2967,125 +2967,125 @@ function TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_3_mat_spinn
|
|
|
2967
2967
|
}
|
|
2968
2968
|
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_3_Template(rf, ctx) {
|
|
2969
2969
|
if (rf & 1) {
|
|
2970
|
-
const
|
|
2971
|
-
i0.ɵɵelementStart(0, "div",
|
|
2972
|
-
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_3_mat_spinner_1_Template, 1, 1, "mat-spinner",
|
|
2973
|
-
i0.ɵɵelementStart(2, "img",
|
|
2974
|
-
i0.ɵɵlistener("load", function TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_3_Template_img_load_2_listener() { i0.ɵɵrestoreView(
|
|
2970
|
+
const _r162 = i0.ɵɵgetCurrentView();
|
|
2971
|
+
i0.ɵɵelementStart(0, "div", 93);
|
|
2972
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_3_mat_spinner_1_Template, 1, 1, "mat-spinner", 94);
|
|
2973
|
+
i0.ɵɵelementStart(2, "img", 95);
|
|
2974
|
+
i0.ɵɵlistener("load", function TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_3_Template_img_load_2_listener() { i0.ɵɵrestoreView(_r162); const row_r119 = i0.ɵɵnextContext().$implicit; const col_r112 = i0.ɵɵnextContext(2).$implicit; const ctx_r160 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r160.onImageLoad(row_r119, col_r112)); })("error", function TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_3_Template_img_error_2_listener($event) { i0.ɵɵrestoreView(_r162); const row_r119 = i0.ɵɵnextContext().$implicit; const col_r112 = i0.ɵɵnextContext(2).$implicit; const ctx_r164 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r164.onImageError($event, row_r119, col_r112, col_r112.image.default)); });
|
|
2975
2975
|
i0.ɵɵelementEnd()();
|
|
2976
2976
|
}
|
|
2977
2977
|
if (rf & 2) {
|
|
2978
|
-
const
|
|
2979
|
-
const
|
|
2980
|
-
const
|
|
2978
|
+
const row_r119 = i0.ɵɵnextContext().$implicit;
|
|
2979
|
+
const col_r112 = i0.ɵɵnextContext(2).$implicit;
|
|
2980
|
+
const ctx_r122 = i0.ɵɵnextContext(2);
|
|
2981
2981
|
i0.ɵɵadvance(1);
|
|
2982
|
-
i0.ɵɵproperty("ngIf",
|
|
2982
|
+
i0.ɵɵproperty("ngIf", ctx_r122.isImageLoading(row_r119, col_r112));
|
|
2983
2983
|
i0.ɵɵadvance(1);
|
|
2984
|
-
i0.ɵɵclassProp("opacity-0",
|
|
2985
|
-
i0.ɵɵproperty("src",
|
|
2984
|
+
i0.ɵɵclassProp("opacity-0", ctx_r122.isImageLoading(row_r119, col_r112));
|
|
2985
|
+
i0.ɵɵproperty("src", row_r119[col_r112.property], i0.ɵɵsanitizeUrl)("ngClass", col_r112.image.class);
|
|
2986
2986
|
}
|
|
2987
2987
|
}
|
|
2988
2988
|
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_ng_container_4_button_1_span_1_Template(rf, ctx) {
|
|
2989
2989
|
if (rf & 1) {
|
|
2990
|
-
i0.ɵɵelementStart(0, "span",
|
|
2990
|
+
i0.ɵɵelementStart(0, "span", 100);
|
|
2991
2991
|
i0.ɵɵtext(1);
|
|
2992
2992
|
i0.ɵɵelementEnd();
|
|
2993
2993
|
}
|
|
2994
2994
|
if (rf & 2) {
|
|
2995
|
-
const
|
|
2996
|
-
i0.ɵɵproperty("ngClass",
|
|
2995
|
+
const iconClass_r170 = i0.ɵɵnextContext().$implicit;
|
|
2996
|
+
i0.ɵɵproperty("ngClass", iconClass_r170.class);
|
|
2997
2997
|
i0.ɵɵadvance(1);
|
|
2998
|
-
i0.ɵɵtextInterpolate(
|
|
2998
|
+
i0.ɵɵtextInterpolate(iconClass_r170.text);
|
|
2999
2999
|
}
|
|
3000
3000
|
}
|
|
3001
3001
|
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_ng_container_4_button_1_Template(rf, ctx) {
|
|
3002
3002
|
if (rf & 1) {
|
|
3003
|
-
const
|
|
3004
|
-
i0.ɵɵelementStart(0, "button",
|
|
3005
|
-
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 restoredCtx = i0.ɵɵrestoreView(
|
|
3006
|
-
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",
|
|
3003
|
+
const _r174 = i0.ɵɵgetCurrentView();
|
|
3004
|
+
i0.ɵɵelementStart(0, "button", 98);
|
|
3005
|
+
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 restoredCtx = i0.ɵɵrestoreView(_r174); const iconClass_r170 = restoredCtx.$implicit; const row_r119 = i0.ɵɵnextContext(2).$implicit; return i0.ɵɵresetView(iconClass_r170.buttonMethod ? iconClass_r170.buttonMethod(row_r119, $event) : $event.stopPropagation()); });
|
|
3006
|
+
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", 99);
|
|
3007
3007
|
i0.ɵɵelementEnd();
|
|
3008
3008
|
}
|
|
3009
3009
|
if (rf & 2) {
|
|
3010
|
-
const
|
|
3011
|
-
const
|
|
3010
|
+
const iconClass_r170 = ctx.$implicit;
|
|
3011
|
+
const row_r119 = i0.ɵɵnextContext(2).$implicit;
|
|
3012
3012
|
i0.ɵɵadvance(1);
|
|
3013
|
-
i0.ɵɵproperty("ngIf",
|
|
3013
|
+
i0.ɵɵproperty("ngIf", iconClass_r170.condition === undefined || iconClass_r170.condition !== undefined && iconClass_r170.condition(row_r119));
|
|
3014
3014
|
}
|
|
3015
3015
|
}
|
|
3016
3016
|
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_ng_container_4_Template(rf, ctx) {
|
|
3017
3017
|
if (rf & 1) {
|
|
3018
3018
|
i0.ɵɵelementContainerStart(0);
|
|
3019
|
-
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_td_3_ng_container_4_button_1_Template, 2, 1, "button",
|
|
3019
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_td_3_ng_container_4_button_1_Template, 2, 1, "button", 97);
|
|
3020
3020
|
i0.ɵɵelementContainerEnd();
|
|
3021
3021
|
}
|
|
3022
3022
|
if (rf & 2) {
|
|
3023
|
-
const
|
|
3023
|
+
const col_r112 = i0.ɵɵnextContext(3).$implicit;
|
|
3024
3024
|
i0.ɵɵadvance(1);
|
|
3025
|
-
i0.ɵɵproperty("ngForOf",
|
|
3025
|
+
i0.ɵɵproperty("ngForOf", col_r112.iconClass);
|
|
3026
3026
|
}
|
|
3027
3027
|
}
|
|
3028
3028
|
function TableComponent_div_0_ng_container_9_ng_container_1_td_3_Template(rf, ctx) {
|
|
3029
3029
|
if (rf & 1) {
|
|
3030
|
-
const
|
|
3031
|
-
i0.ɵɵelementStart(0, "td",
|
|
3032
|
-
i0.ɵɵlistener("click", function TableComponent_div_0_ng_container_9_ng_container_1_td_3_Template_td_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(
|
|
3033
|
-
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_Template, 5, 2, "span",
|
|
3034
|
-
i0.ɵɵtemplate(2, TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_2_Template, 3, 5, "div",
|
|
3035
|
-
i0.ɵɵtemplate(3, TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_3_Template, 3, 5, "div",
|
|
3036
|
-
i0.ɵɵtemplate(4, TableComponent_div_0_ng_container_9_ng_container_1_td_3_ng_container_4_Template, 2, 1, "ng-container",
|
|
3030
|
+
const _r180 = i0.ɵɵgetCurrentView();
|
|
3031
|
+
i0.ɵɵelementStart(0, "td", 87);
|
|
3032
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_ng_container_9_ng_container_1_td_3_Template_td_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r180); const row_r119 = restoredCtx.$implicit; const col_r112 = i0.ɵɵnextContext(2).$implicit; return i0.ɵɵresetView(col_r112.method ? col_r112.method(row_r119) : null); })("mouseenter", function TableComponent_div_0_ng_container_9_ng_container_1_td_3_Template_td_mouseenter_0_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r180); const row_r119 = restoredCtx.$implicit; const col_r112 = i0.ɵɵnextContext(2).$implicit; const ctx_r181 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r181.onCellMouseEnter($event, row_r119, col_r112)); })("mouseleave", function TableComponent_div_0_ng_container_9_ng_container_1_td_3_Template_td_mouseleave_0_listener() { i0.ɵɵrestoreView(_r180); const ctx_r183 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r183.onCellMouseLeave()); })("mousemove", function TableComponent_div_0_ng_container_9_ng_container_1_td_3_Template_td_mousemove_0_listener($event) { i0.ɵɵrestoreView(_r180); const ctx_r184 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r184.onCellMouseMove($event)); });
|
|
3033
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_td_3_span_1_Template, 5, 2, "span", 28);
|
|
3034
|
+
i0.ɵɵtemplate(2, TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_2_Template, 3, 5, "div", 88);
|
|
3035
|
+
i0.ɵɵtemplate(3, TableComponent_div_0_ng_container_9_ng_container_1_td_3_div_3_Template, 3, 5, "div", 88);
|
|
3036
|
+
i0.ɵɵtemplate(4, TableComponent_div_0_ng_container_9_ng_container_1_td_3_ng_container_4_Template, 2, 1, "ng-container", 28);
|
|
3037
3037
|
i0.ɵɵelementEnd();
|
|
3038
3038
|
}
|
|
3039
3039
|
if (rf & 2) {
|
|
3040
|
-
const
|
|
3040
|
+
const col_r112 = i0.ɵɵnextContext(2).$implicit;
|
|
3041
3041
|
i0.ɵɵadvance(1);
|
|
3042
|
-
i0.ɵɵproperty("ngIf", !
|
|
3042
|
+
i0.ɵɵproperty("ngIf", !col_r112.image && !col_r112.iconClass && !col_r112.method);
|
|
3043
3043
|
i0.ɵɵadvance(1);
|
|
3044
|
-
i0.ɵɵproperty("ngIf",
|
|
3044
|
+
i0.ɵɵproperty("ngIf", col_r112.image && col_r112.image.path && !col_r112.iconClass && !col_r112.method);
|
|
3045
3045
|
i0.ɵɵadvance(1);
|
|
3046
|
-
i0.ɵɵproperty("ngIf",
|
|
3046
|
+
i0.ɵɵproperty("ngIf", col_r112.image && col_r112.image.url && !col_r112.iconClass && !col_r112.method);
|
|
3047
3047
|
i0.ɵɵadvance(1);
|
|
3048
|
-
i0.ɵɵproperty("ngIf",
|
|
3048
|
+
i0.ɵɵproperty("ngIf", col_r112.iconClass);
|
|
3049
3049
|
}
|
|
3050
3050
|
}
|
|
3051
3051
|
function TableComponent_div_0_ng_container_9_ng_container_1_Template(rf, ctx) {
|
|
3052
3052
|
if (rf & 1) {
|
|
3053
3053
|
i0.ɵɵelementContainerStart(0);
|
|
3054
|
-
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_th_1_Template, 2, 1, "th",
|
|
3055
|
-
i0.ɵɵtemplate(2, TableComponent_div_0_ng_container_9_ng_container_1_th_2_Template, 2, 1, "th",
|
|
3056
|
-
i0.ɵɵtemplate(3, TableComponent_div_0_ng_container_9_ng_container_1_td_3_Template, 5, 4, "td",
|
|
3054
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_th_1_Template, 2, 1, "th", 82);
|
|
3055
|
+
i0.ɵɵtemplate(2, TableComponent_div_0_ng_container_9_ng_container_1_th_2_Template, 2, 1, "th", 83);
|
|
3056
|
+
i0.ɵɵtemplate(3, TableComponent_div_0_ng_container_9_ng_container_1_td_3_Template, 5, 4, "td", 84);
|
|
3057
3057
|
i0.ɵɵelementContainerEnd();
|
|
3058
3058
|
}
|
|
3059
3059
|
if (rf & 2) {
|
|
3060
|
-
const
|
|
3061
|
-
const
|
|
3060
|
+
const col_r112 = i0.ɵɵnextContext().$implicit;
|
|
3061
|
+
const ctx_r113 = i0.ɵɵnextContext(2);
|
|
3062
3062
|
i0.ɵɵadvance(1);
|
|
3063
|
-
i0.ɵɵproperty("ngIf", !
|
|
3063
|
+
i0.ɵɵproperty("ngIf", !col_r112.isSortable || ctx_r113.data.pagination === true);
|
|
3064
3064
|
i0.ɵɵadvance(1);
|
|
3065
|
-
i0.ɵɵproperty("ngIf",
|
|
3065
|
+
i0.ɵɵproperty("ngIf", col_r112.isSortable && ctx_r113.data.pagination === false);
|
|
3066
3066
|
}
|
|
3067
3067
|
}
|
|
3068
3068
|
function TableComponent_div_0_ng_container_9_Template(rf, ctx) {
|
|
3069
3069
|
if (rf & 1) {
|
|
3070
|
-
i0.ɵɵelementContainerStart(0,
|
|
3071
|
-
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_Template, 4, 2, "ng-container",
|
|
3070
|
+
i0.ɵɵelementContainerStart(0, 80);
|
|
3071
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_ng_container_9_ng_container_1_Template, 4, 2, "ng-container", 81);
|
|
3072
3072
|
i0.ɵɵelementContainerEnd();
|
|
3073
3073
|
}
|
|
3074
3074
|
if (rf & 2) {
|
|
3075
|
-
const
|
|
3076
|
-
i0.ɵɵpropertyInterpolate("matColumnDef",
|
|
3075
|
+
const col_r112 = ctx.$implicit;
|
|
3076
|
+
i0.ɵɵpropertyInterpolate("matColumnDef", col_r112.property);
|
|
3077
3077
|
}
|
|
3078
3078
|
}
|
|
3079
3079
|
function TableComponent_div_0_tr_10_Template(rf, ctx) {
|
|
3080
3080
|
if (rf & 1) {
|
|
3081
|
-
i0.ɵɵelement(0, "tr",
|
|
3081
|
+
i0.ɵɵelement(0, "tr", 101);
|
|
3082
3082
|
}
|
|
3083
3083
|
}
|
|
3084
3084
|
function TableComponent_div_0_tr_11_Template(rf, ctx) {
|
|
3085
3085
|
if (rf & 1) {
|
|
3086
|
-
const
|
|
3087
|
-
i0.ɵɵelementStart(0, "tr",
|
|
3088
|
-
i0.ɵɵlistener("click", function TableComponent_div_0_tr_11_Template_tr_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(
|
|
3086
|
+
const _r189 = i0.ɵɵgetCurrentView();
|
|
3087
|
+
i0.ɵɵelementStart(0, "tr", 102);
|
|
3088
|
+
i0.ɵɵlistener("click", function TableComponent_div_0_tr_11_Template_tr_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r189); const row_r187 = restoredCtx.$implicit; const ctx_r188 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r188.goToDetails(row_r187)); });
|
|
3089
3089
|
i0.ɵɵelementEnd();
|
|
3090
3090
|
}
|
|
3091
3091
|
if (rf & 2) {
|
|
@@ -3095,15 +3095,15 @@ function TableComponent_div_0_tr_11_Template(rf, ctx) {
|
|
|
3095
3095
|
}
|
|
3096
3096
|
function TableComponent_div_0_tr_12_td_1_Template(rf, ctx) {
|
|
3097
3097
|
if (rf & 1) {
|
|
3098
|
-
i0.ɵɵelementStart(0, "td",
|
|
3098
|
+
i0.ɵɵelementStart(0, "td", 105);
|
|
3099
3099
|
i0.ɵɵtext(1, " Nenhum resultado encontrado para a busca ");
|
|
3100
3100
|
i0.ɵɵelementEnd();
|
|
3101
3101
|
}
|
|
3102
3102
|
}
|
|
3103
3103
|
function TableComponent_div_0_tr_12_Template(rf, ctx) {
|
|
3104
3104
|
if (rf & 1) {
|
|
3105
|
-
i0.ɵɵelementStart(0, "tr",
|
|
3106
|
-
i0.ɵɵtemplate(1, TableComponent_div_0_tr_12_td_1_Template, 2, 0, "td",
|
|
3105
|
+
i0.ɵɵelementStart(0, "tr", 103);
|
|
3106
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_tr_12_td_1_Template, 2, 0, "td", 104);
|
|
3107
3107
|
i0.ɵɵpipe(2, "async");
|
|
3108
3108
|
i0.ɵɵelementEnd();
|
|
3109
3109
|
}
|
|
@@ -3115,27 +3115,15 @@ function TableComponent_div_0_tr_12_Template(rf, ctx) {
|
|
|
3115
3115
|
}
|
|
3116
3116
|
function TableComponent_div_0_div_13_Template(rf, ctx) {
|
|
3117
3117
|
if (rf & 1) {
|
|
3118
|
-
i0.ɵɵelementStart(0, "div",
|
|
3118
|
+
i0.ɵɵelementStart(0, "div", 106);
|
|
3119
3119
|
i0.ɵɵelement(1, "mat-spinner");
|
|
3120
3120
|
i0.ɵɵelementEnd();
|
|
3121
3121
|
}
|
|
3122
3122
|
}
|
|
3123
|
-
function TableComponent_div_0_div_18_Template(rf, ctx) {
|
|
3124
|
-
if (rf & 1) {
|
|
3125
|
-
i0.ɵɵelementStart(0, "div", 108);
|
|
3126
|
-
i0.ɵɵtext(1);
|
|
3127
|
-
i0.ɵɵelementEnd();
|
|
3128
|
-
}
|
|
3129
|
-
if (rf & 2) {
|
|
3130
|
-
const ctx_r11 = i0.ɵɵnextContext(2);
|
|
3131
|
-
i0.ɵɵadvance(1);
|
|
3132
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r11.currentPageNumber, " ");
|
|
3133
|
-
}
|
|
3134
|
-
}
|
|
3135
3123
|
const _c0 = function () { return [25, 50, 100]; };
|
|
3136
3124
|
function TableComponent_div_0_Template(rf, ctx) {
|
|
3137
3125
|
if (rf & 1) {
|
|
3138
|
-
const
|
|
3126
|
+
const _r192 = i0.ɵɵgetCurrentView();
|
|
3139
3127
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2);
|
|
3140
3128
|
i0.ɵɵtemplate(2, TableComponent_div_0_div_2_Template, 13, 5, "div", 3);
|
|
3141
3129
|
i0.ɵɵtemplate(3, TableComponent_div_0_div_3_Template, 10, 3, "div", 3);
|
|
@@ -3150,12 +3138,9 @@ function TableComponent_div_0_Template(rf, ctx) {
|
|
|
3150
3138
|
i0.ɵɵtemplate(13, TableComponent_div_0_div_13_Template, 2, 0, "div", 13);
|
|
3151
3139
|
i0.ɵɵpipe(14, "async");
|
|
3152
3140
|
i0.ɵɵelementStart(15, "div", 14)(16, "mat-paginator", 15, 16);
|
|
3153
|
-
i0.ɵɵlistener("page", function TableComponent_div_0_Template_mat_paginator_page_16_listener($event) { i0.ɵɵrestoreView(
|
|
3154
|
-
i0.ɵɵelementEnd();
|
|
3155
|
-
i0.ɵɵ
|
|
3156
|
-
i0.ɵɵpipe(19, "async");
|
|
3157
|
-
i0.ɵɵelementEnd()()()();
|
|
3158
|
-
i0.ɵɵelement(20, "lib-table-tooltip", 18);
|
|
3141
|
+
i0.ɵɵlistener("page", function TableComponent_div_0_Template_mat_paginator_page_16_listener($event) { i0.ɵɵrestoreView(_r192); const ctx_r191 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r191.onPageChange($event)); });
|
|
3142
|
+
i0.ɵɵelementEnd()()()()();
|
|
3143
|
+
i0.ɵɵelement(18, "lib-table-tooltip", 17);
|
|
3159
3144
|
i0.ɵɵelementEnd();
|
|
3160
3145
|
}
|
|
3161
3146
|
if (rf & 2) {
|
|
@@ -3175,11 +3160,9 @@ function TableComponent_div_0_Template(rf, ctx) {
|
|
|
3175
3160
|
i0.ɵɵadvance(1);
|
|
3176
3161
|
i0.ɵɵproperty("matRowDefColumns", ctx_r0.columnProperties);
|
|
3177
3162
|
i0.ɵɵadvance(2);
|
|
3178
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(14,
|
|
3163
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(14, 15, ctx_r0.isLoading$));
|
|
3179
3164
|
i0.ɵɵadvance(3);
|
|
3180
|
-
i0.ɵɵproperty("pageSizeOptions", i0.ɵɵpureFunction0(
|
|
3181
|
-
i0.ɵɵadvance(2);
|
|
3182
|
-
i0.ɵɵproperty("ngIf", !i0.ɵɵpipeBind1(19, 18, ctx_r0.isLoading$) && (ctx_r0.dataSource == null ? null : ctx_r0.dataSource.data) && ctx_r0.dataSource.data.length > 0 && (ctx_r0.data == null ? null : ctx_r0.data.filterFn));
|
|
3165
|
+
i0.ɵɵproperty("pageSizeOptions", i0.ɵɵpureFunction0(17, _c0))("pageSize", ctx_r0.pageSize)("length", ctx_r0.totalItems)("ngClass", ctx_r0.getPaginatorNgClass());
|
|
3183
3166
|
i0.ɵɵadvance(2);
|
|
3184
3167
|
i0.ɵɵproperty("state", ctx_r0.tooltipState)("styles", ctx_r0.getTooltipStyles());
|
|
3185
3168
|
}
|
|
@@ -3911,9 +3894,9 @@ TableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TableCompone
|
|
|
3911
3894
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.paginator = _t.first);
|
|
3912
3895
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.sort = _t.first);
|
|
3913
3896
|
}
|
|
3914
|
-
}, inputs: { data: "data", downloadTable: "downloadTable" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["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"], ["sort", "matSort"], [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, "pageSizeOptions", "pageSize", "length", "ngClass", "page"], ["paginator", ""], [
|
|
3897
|
+
}, inputs: { data: "data", downloadTable: "downloadTable" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["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"], ["sort", "matSort"], [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, "pageSizeOptions", "pageSize", "length", "ngClass", "page"], ["paginator", ""], [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, "ngClass", "routerLink", "click"], [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"], ["input", ""], ["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, "disabled", "click"], [1, "fa", "fa-download"], [1, "fa", "fa-search", "text-blue-500"], ["matInput", "", "placeholder", "Digite para filtrar...", 3, "keyup.enter", "keyup"], ["filterInput", ""], ["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, "tabsData", "selectedTab", "tabSelected"], [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"], ["withinLimit", ""], ["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, "src", "ngClass", "load", "error"], [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, "ngClass", "click"], [1, "mat-row"], ["class", "mat-cell p-4", "colspan", "4", 4, "ngIf"], ["colspan", "4", 1, "mat-cell", "p-4"], [1, "flex", "justify-center"]], template: function TableComponent_Template(rf, ctx) {
|
|
3915
3898
|
if (rf & 1) {
|
|
3916
|
-
i0.ɵɵtemplate(0, TableComponent_div_0_Template,
|
|
3899
|
+
i0.ɵɵtemplate(0, TableComponent_div_0_Template, 19, 18, "div", 0);
|
|
3917
3900
|
}
|
|
3918
3901
|
if (rf & 2) {
|
|
3919
3902
|
i0.ɵɵproperty("ngIf", ctx.data);
|
|
@@ -3922,7 +3905,7 @@ TableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TableCompone
|
|
|
3922
3905
|
(function () {
|
|
3923
3906
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TableComponent, [{
|
|
3924
3907
|
type: Component,
|
|
3925
|
-
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:rgba(0,0,0,.15);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"] }]
|
|
3908
|
+
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:rgba(0,0,0,.15);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"] }]
|
|
3926
3909
|
}], function () { return [{ type: i1$2.Router }, { type: TableService }, { type: FilterService }, { type: TooltipService }, { type: PaginationService }, { type: i1.AngularFirestore }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, { data: [{
|
|
3927
3910
|
type: Input
|
|
3928
3911
|
}], downloadTable: [{
|