tin-spa 9.0.0 → 9.1.0
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/bundles/tin-spa.umd.js +4416 -1589
- package/bundles/tin-spa.umd.js.map +1 -1
- package/bundles/tin-spa.umd.min.js +2 -2
- package/bundles/tin-spa.umd.min.js.map +1 -1
- package/esm2015/lib/classes/Classes.js +58 -45
- package/esm2015/lib/classes/TinCore.js +137 -0
- package/esm2015/lib/components/activity/activity.component.js +84 -18
- package/esm2015/lib/components/attach/attach.component.js +101 -27
- package/esm2015/lib/components/change-password/change-password.component.js +122 -34
- package/esm2015/lib/components/check/check.component.js +39 -33
- package/esm2015/lib/components/chips/chips.component.js +75 -35
- package/esm2015/lib/components/create-account/create-account.component.js +124 -42
- package/esm2015/lib/components/date/date.component.js +54 -33
- package/esm2015/lib/components/datetime/datetime.component.js +43 -30
- package/esm2015/lib/components/filter/filter.component.js +64 -0
- package/esm2015/lib/components/html/html.component.js +30 -25
- package/esm2015/lib/components/label/label.component.js +109 -21
- package/esm2015/lib/components/loader/loader.component.js +43 -20
- package/esm2015/lib/components/login/login.component.js +194 -76
- package/esm2015/lib/components/logs/logs.component.js +180 -28
- package/esm2015/lib/components/message/messageDialog.component.js +128 -17
- package/esm2015/lib/components/money/currency-input-mask.directive.js +187 -0
- package/esm2015/lib/components/money/currency-input-mask.module.js +30 -0
- package/esm2015/lib/components/money/money.component.js +141 -39
- package/esm2015/lib/components/nav-menu/nav-menu.component.js +174 -21
- package/esm2015/lib/components/option/option.component.js +107 -40
- package/esm2015/lib/components/profile/profile.component.js +143 -53
- package/esm2015/lib/components/recover-account/recover-account.component.js +48 -26
- package/esm2015/lib/components/roles/addRoleDialog.component.js +99 -26
- package/esm2015/lib/components/roles/roles.component.js +153 -73
- package/esm2015/lib/components/select/select.component.js +108 -48
- package/esm2015/lib/components/settings/settings.component.js +76 -21
- package/esm2015/lib/components/signup/signup.component.js +107 -24
- package/esm2015/lib/components/steps/steps.component.js +47 -31
- package/esm2015/lib/components/table/table.component.js +301 -35
- package/esm2015/lib/components/text/text.component.js +146 -71
- package/esm2015/lib/components/tiles/tiles.component.js +75 -21
- package/esm2015/lib/components/timeout/timeout.component.js +65 -22
- package/esm2015/lib/components/tin-spa.component.js +19 -12
- package/esm2015/lib/components/users/users.component.js +308 -65
- package/esm2015/lib/components/viewer/viewer.component.js +64 -39
- package/esm2015/lib/components/viewer/viewerDialog.component.js +73 -18
- package/esm2015/lib/dnd.directive.js +30 -25
- package/esm2015/lib/modules/spa-admin.module.js +65 -51
- package/esm2015/lib/modules/spa-index.module.js +45 -20
- package/esm2015/lib/modules/spa-mat.module.js +40 -25
- package/esm2015/lib/modules/spa-user.module.js +43 -19
- package/esm2015/lib/services/auth.service.js +39 -50
- package/esm2015/lib/services/data.service.js +82 -49
- package/esm2015/lib/services/export.service.js +11 -11
- package/esm2015/lib/services/http.service.js +79 -0
- package/esm2015/lib/services/loader-interceptor.service.js +30 -30
- package/esm2015/lib/services/loader.service.js +11 -11
- package/esm2015/lib/services/log.service.js +12 -12
- package/esm2015/lib/services/message.service.js +11 -17
- package/esm2015/lib/services/storage.service.js +12 -11
- package/esm2015/lib/services/tin-spa.service.js +11 -11
- package/esm2015/lib/tin-spa.module.js +113 -48
- package/esm2015/public-api.js +4 -6
- package/esm2015/tin-spa.js +1 -5
- package/esm5/lib/classes/Classes.js +70 -55
- package/esm5/lib/classes/TinCore.js +164 -0
- package/esm5/lib/components/activity/activity.component.js +82 -15
- package/esm5/lib/components/attach/attach.component.js +100 -24
- package/esm5/lib/components/change-password/change-password.component.js +120 -31
- package/esm5/lib/components/check/check.component.js +37 -30
- package/esm5/lib/components/chips/chips.component.js +73 -32
- package/esm5/lib/components/create-account/create-account.component.js +122 -39
- package/esm5/lib/components/date/date.component.js +52 -30
- package/esm5/lib/components/datetime/datetime.component.js +41 -27
- package/esm5/lib/components/filter/filter.component.js +66 -0
- package/esm5/lib/components/html/html.component.js +28 -22
- package/esm5/lib/components/label/label.component.js +107 -18
- package/esm5/lib/components/loader/loader.component.js +41 -17
- package/esm5/lib/components/login/login.component.js +193 -74
- package/esm5/lib/components/logs/logs.component.js +178 -25
- package/esm5/lib/components/message/messageDialog.component.js +126 -14
- package/esm5/lib/components/money/currency-input-mask.directive.js +193 -0
- package/esm5/lib/components/money/currency-input-mask.module.js +34 -0
- package/esm5/lib/components/money/money.component.js +139 -36
- package/esm5/lib/components/nav-menu/nav-menu.component.js +172 -18
- package/esm5/lib/components/option/option.component.js +105 -37
- package/esm5/lib/components/profile/profile.component.js +141 -50
- package/esm5/lib/components/recover-account/recover-account.component.js +46 -23
- package/esm5/lib/components/roles/addRoleDialog.component.js +97 -23
- package/esm5/lib/components/roles/roles.component.js +152 -72
- package/esm5/lib/components/select/select.component.js +106 -45
- package/esm5/lib/components/settings/settings.component.js +74 -18
- package/esm5/lib/components/signup/signup.component.js +105 -21
- package/esm5/lib/components/steps/steps.component.js +46 -28
- package/esm5/lib/components/table/table.component.js +299 -32
- package/esm5/lib/components/text/text.component.js +144 -68
- package/esm5/lib/components/tiles/tiles.component.js +73 -18
- package/esm5/lib/components/timeout/timeout.component.js +63 -19
- package/esm5/lib/components/tin-spa.component.js +16 -8
- package/esm5/lib/components/users/users.component.js +307 -62
- package/esm5/lib/components/viewer/viewer.component.js +62 -36
- package/esm5/lib/components/viewer/viewerDialog.component.js +71 -15
- package/esm5/lib/dnd.directive.js +28 -22
- package/esm5/lib/modules/spa-admin.module.js +63 -48
- package/esm5/lib/modules/spa-index.module.js +43 -17
- package/esm5/lib/modules/spa-mat.module.js +38 -22
- package/esm5/lib/modules/spa-user.module.js +41 -16
- package/esm5/lib/services/auth.service.js +37 -47
- package/esm5/lib/services/data.service.js +89 -55
- package/esm5/lib/services/export.service.js +9 -8
- package/esm5/lib/services/http.service.js +81 -0
- package/esm5/lib/services/loader-interceptor.service.js +28 -27
- package/esm5/lib/services/loader.service.js +9 -8
- package/esm5/lib/services/log.service.js +11 -9
- package/esm5/lib/services/message.service.js +9 -14
- package/esm5/lib/services/storage.service.js +10 -8
- package/esm5/lib/services/tin-spa.service.js +9 -8
- package/esm5/lib/tin-spa.module.js +111 -45
- package/esm5/public-api.js +4 -6
- package/esm5/tin-spa.js +1 -5
- package/fesm2015/tin-spa.js +4418 -1612
- package/fesm2015/tin-spa.js.map +1 -1
- package/fesm5/tin-spa.js +4442 -1612
- package/fesm5/tin-spa.js.map +1 -1
- package/lib/classes/Classes.d.ts +55 -43
- package/lib/classes/TinCore.d.ts +27 -0
- package/lib/components/activity/activity.component.d.ts +3 -5
- package/lib/components/attach/attach.component.d.ts +3 -5
- package/lib/components/change-password/change-password.component.d.ts +11 -9
- package/lib/components/check/check.component.d.ts +3 -5
- package/lib/components/chips/chips.component.d.ts +3 -5
- package/lib/components/create-account/create-account.component.d.ts +13 -13
- package/lib/components/date/date.component.d.ts +6 -7
- package/lib/components/datetime/datetime.component.d.ts +3 -5
- package/lib/components/filter/filter.component.d.ts +15 -0
- package/lib/components/html/html.component.d.ts +3 -5
- package/lib/components/label/label.component.d.ts +3 -5
- package/lib/components/loader/loader.component.d.ts +3 -5
- package/lib/components/login/login.component.d.ts +12 -14
- package/lib/components/logs/logs.component.d.ts +5 -9
- package/lib/components/message/messageDialog.component.d.ts +3 -5
- package/lib/components/money/currency-input-mask.directive.d.ts +41 -0
- package/lib/components/money/currency-input-mask.module.d.ts +8 -0
- package/lib/components/money/money.component.d.ts +19 -8
- package/lib/components/nav-menu/nav-menu.component.d.ts +3 -5
- package/lib/components/option/option.component.d.ts +4 -5
- package/lib/components/profile/profile.component.d.ts +9 -11
- package/lib/components/recover-account/recover-account.component.d.ts +6 -8
- package/lib/components/roles/addRoleDialog.component.d.ts +5 -7
- package/lib/components/roles/roles.component.d.ts +6 -10
- package/lib/components/select/select.component.d.ts +4 -6
- package/lib/components/settings/settings.component.d.ts +5 -7
- package/lib/components/signup/signup.component.d.ts +6 -8
- package/lib/components/steps/steps.component.d.ts +3 -5
- package/lib/components/table/table.component.d.ts +3 -5
- package/lib/components/text/text.component.d.ts +4 -5
- package/lib/components/tiles/tiles.component.d.ts +3 -5
- package/lib/components/timeout/timeout.component.d.ts +3 -5
- package/lib/components/tin-spa.component.d.ts +3 -5
- package/lib/components/users/users.component.d.ts +8 -13
- package/lib/components/viewer/viewer.component.d.ts +3 -5
- package/lib/components/viewer/viewerDialog.component.d.ts +4 -6
- package/lib/dnd.directive.d.ts +3 -5
- package/lib/modules/spa-admin.module.d.ts +13 -19
- package/lib/modules/spa-index.module.d.ts +10 -11
- package/lib/modules/spa-mat.module.d.ts +30 -32
- package/lib/modules/spa-user.module.d.ts +9 -10
- package/lib/services/auth.service.d.ts +14 -14
- package/lib/services/data.service.d.ts +28 -17
- package/lib/services/export.service.d.ts +3 -4
- package/lib/services/http.service.d.ts +22 -0
- package/lib/services/loader-interceptor.service.d.ts +3 -5
- package/lib/services/loader.service.d.ts +3 -4
- package/lib/services/log.service.d.ts +3 -4
- package/lib/services/message.service.d.ts +3 -4
- package/lib/services/storage.service.d.ts +3 -4
- package/lib/services/tin-spa.service.d.ts +3 -4
- package/lib/tin-spa.module.d.ts +35 -35
- package/package.json +2 -10
- package/public-api.d.ts +3 -5
- package/tin-spa.d.ts +1 -6
- package/__ivy_ngcc__/fesm2015/tin-spa.js +0 -6813
- package/__ivy_ngcc__/fesm2015/tin-spa.js.map +0 -1
- package/esm2015/lib/components/profiles/profiles.component.js +0 -16
- package/esm2015/lib/components/roles/editRoleDialog.component.js +0 -57
- package/esm2015/lib/components/roles/viewRoleDialog.component.js +0 -38
- package/esm2015/lib/components/users/addUserDialog.component.js +0 -53
- package/esm2015/lib/components/users/editUserDialog.component.js +0 -96
- package/esm5/lib/components/profiles/profiles.component.js +0 -18
- package/esm5/lib/components/roles/editRoleDialog.component.js +0 -59
- package/esm5/lib/components/roles/viewRoleDialog.component.js +0 -39
- package/esm5/lib/components/users/addUserDialog.component.js +0 -55
- package/esm5/lib/components/users/editUserDialog.component.js +0 -99
- package/lib/components/activity/activity.component.d.ts.__ivy_ngcc_bak +0 -8
- package/lib/components/attach/attach.component.d.ts.__ivy_ngcc_bak +0 -39
- package/lib/components/change-password/change-password.component.d.ts.__ivy_ngcc_bak +0 -20
- package/lib/components/check/check.component.d.ts.__ivy_ngcc_bak +0 -16
- package/lib/components/chips/chips.component.d.ts.__ivy_ngcc_bak +0 -15
- package/lib/components/create-account/create-account.component.d.ts.__ivy_ngcc_bak +0 -25
- package/lib/components/date/date.component.d.ts.__ivy_ngcc_bak +0 -13
- package/lib/components/datetime/datetime.component.d.ts.__ivy_ngcc_bak +0 -12
- package/lib/components/html/html.component.d.ts.__ivy_ngcc_bak +0 -12
- package/lib/components/label/label.component.d.ts.__ivy_ngcc_bak +0 -8
- package/lib/components/loader/loader.component.d.ts.__ivy_ngcc_bak +0 -9
- package/lib/components/login/login.component.d.ts.__ivy_ngcc_bak +0 -29
- package/lib/components/logs/logs.component.d.ts.__ivy_ngcc_bak +0 -17
- package/lib/components/message/messageDialog.component.d.ts.__ivy_ngcc_bak +0 -12
- package/lib/components/money/money.component.d.ts.__ivy_ngcc_bak +0 -14
- package/lib/components/nav-menu/nav-menu.component.d.ts.__ivy_ngcc_bak +0 -17
- package/lib/components/option/option.component.d.ts.__ivy_ngcc_bak +0 -17
- package/lib/components/profile/profile.component.d.ts.__ivy_ngcc_bak +0 -30
- package/lib/components/profiles/profiles.component.d.ts +0 -10
- package/lib/components/profiles/profiles.component.d.ts.__ivy_ngcc_bak +0 -5
- package/lib/components/recover-account/recover-account.component.d.ts.__ivy_ngcc_bak +0 -15
- package/lib/components/roles/addRoleDialog.component.d.ts.__ivy_ngcc_bak +0 -19
- package/lib/components/roles/editRoleDialog.component.d.ts +0 -24
- package/lib/components/roles/editRoleDialog.component.d.ts.__ivy_ngcc_bak +0 -19
- package/lib/components/roles/roles.component.d.ts.__ivy_ngcc_bak +0 -29
- package/lib/components/roles/viewRoleDialog.component.d.ts +0 -20
- package/lib/components/roles/viewRoleDialog.component.d.ts.__ivy_ngcc_bak +0 -15
- package/lib/components/select/select.component.d.ts.__ivy_ngcc_bak +0 -20
- package/lib/components/settings/settings.component.d.ts.__ivy_ngcc_bak +0 -16
- package/lib/components/signup/signup.component.d.ts.__ivy_ngcc_bak +0 -20
- package/lib/components/steps/steps.component.d.ts.__ivy_ngcc_bak +0 -15
- package/lib/components/table/table.component.d.ts.__ivy_ngcc_bak +0 -25
- package/lib/components/text/text.component.d.ts.__ivy_ngcc_bak +0 -37
- package/lib/components/tiles/tiles.component.d.ts.__ivy_ngcc_bak +0 -11
- package/lib/components/timeout/timeout.component.d.ts.__ivy_ngcc_bak +0 -21
- package/lib/components/tin-spa.component.d.ts.__ivy_ngcc_bak +0 -5
- package/lib/components/users/addUserDialog.component.d.ts +0 -21
- package/lib/components/users/addUserDialog.component.d.ts.__ivy_ngcc_bak +0 -16
- package/lib/components/users/editUserDialog.component.d.ts +0 -32
- package/lib/components/users/editUserDialog.component.d.ts.__ivy_ngcc_bak +0 -27
- package/lib/components/users/users.component.d.ts.__ivy_ngcc_bak +0 -35
- package/lib/components/viewer/viewer.component.d.ts.__ivy_ngcc_bak +0 -16
- package/lib/components/viewer/viewerDialog.component.d.ts.__ivy_ngcc_bak +0 -19
- package/lib/dnd.directive.d.ts.__ivy_ngcc_bak +0 -8
- package/lib/modules/spa-admin.module.d.ts.__ivy_ngcc_bak +0 -2
- package/lib/modules/spa-index.module.d.ts.__ivy_ngcc_bak +0 -2
- package/lib/modules/spa-mat.module.d.ts.__ivy_ngcc_bak +0 -2
- package/lib/modules/spa-user.module.d.ts.__ivy_ngcc_bak +0 -2
- package/lib/services/auth.service.d.ts.__ivy_ngcc_bak +0 -45
- package/lib/services/data.service.d.ts.__ivy_ngcc_bak +0 -23
- package/lib/services/export.service.d.ts.__ivy_ngcc_bak +0 -7
- package/lib/services/loader-interceptor.service.d.ts.__ivy_ngcc_bak +0 -18
- package/lib/services/loader.service.d.ts.__ivy_ngcc_bak +0 -5
- package/lib/services/log.service.d.ts.__ivy_ngcc_bak +0 -16
- package/lib/services/message.service.d.ts.__ivy_ngcc_bak +0 -12
- package/lib/services/storage.service.d.ts.__ivy_ngcc_bak +0 -7
- package/lib/services/tin-spa.service.d.ts.__ivy_ngcc_bak +0 -3
- package/lib/tin-spa.module.d.ts.__ivy_ngcc_bak +0 -2
- package/tin-spa.d.ts.__ivy_ngcc_bak +0 -8
- package/tin-spa.metadata.json +0 -1
|
@@ -1,7 +1,261 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
1
|
import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';
|
|
3
2
|
import { MatTableDataSource } from '@angular/material/table';
|
|
4
3
|
import { ActionResponse, Operator, TableColumnType } from '../../classes/Classes';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/common";
|
|
6
|
+
import * as i2 from "@angular/material/paginator";
|
|
7
|
+
import * as i3 from "@angular/material/button";
|
|
8
|
+
import * as i4 from "@angular/material/form-field";
|
|
9
|
+
import * as i5 from "@angular/material/input";
|
|
10
|
+
import * as i6 from "@angular/forms";
|
|
11
|
+
import * as i7 from "@angular/material/tooltip";
|
|
12
|
+
import * as i8 from "@angular/material/icon";
|
|
13
|
+
import * as i9 from "@angular/material/table";
|
|
14
|
+
var _c0 = ["tablePaginator"];
|
|
15
|
+
function TableComponent_div_1_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
16
|
+
var _r6 = i0.ɵɵgetCurrentView();
|
|
17
|
+
i0.ɵɵelementStart(0, "button", 8);
|
|
18
|
+
i0.ɵɵlistener("click", function TableComponent_div_1_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); var ctx_r5 = i0.ɵɵnextContext(2); return ctx_r5.create(); });
|
|
19
|
+
i0.ɵɵtext(1);
|
|
20
|
+
i0.ɵɵelementEnd();
|
|
21
|
+
} if (rf & 2) {
|
|
22
|
+
var ctx_r3 = i0.ɵɵnextContext(2);
|
|
23
|
+
i0.ɵɵproperty("disabled", !ctx_r3.config.create.enabled);
|
|
24
|
+
i0.ɵɵadvance(1);
|
|
25
|
+
i0.ɵɵtextInterpolate(ctx_r3.config.create.display);
|
|
26
|
+
} }
|
|
27
|
+
function TableComponent_div_1_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
28
|
+
var _r8 = i0.ɵɵgetCurrentView();
|
|
29
|
+
i0.ɵɵelementStart(0, "div", 9);
|
|
30
|
+
i0.ɵɵelementStart(1, "mat-form-field", 10);
|
|
31
|
+
i0.ɵɵelementStart(2, "mat-label");
|
|
32
|
+
i0.ɵɵtext(3, "Filter");
|
|
33
|
+
i0.ɵɵelementEnd();
|
|
34
|
+
i0.ɵɵelementStart(4, "input", 11);
|
|
35
|
+
i0.ɵɵlistener("ngModelChange", function TableComponent_div_1_div_3_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r8); var ctx_r7 = i0.ɵɵnextContext(2); return ctx_r7._filterText = $event; })("keyup", function TableComponent_div_1_div_3_Template_input_keyup_4_listener($event) { i0.ɵɵrestoreView(_r8); var ctx_r9 = i0.ɵɵnextContext(2); return ctx_r9.applyFilter($event.target.value); });
|
|
36
|
+
i0.ɵɵelementEnd();
|
|
37
|
+
i0.ɵɵelementEnd();
|
|
38
|
+
i0.ɵɵelementStart(5, "button", 12);
|
|
39
|
+
i0.ɵɵlistener("click", function TableComponent_div_1_div_3_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r8); var ctx_r10 = i0.ɵɵnextContext(2); return ctx_r10.load(); });
|
|
40
|
+
i0.ɵɵelementStart(6, "mat-icon", 13);
|
|
41
|
+
i0.ɵɵtext(7, "refresh");
|
|
42
|
+
i0.ɵɵelementEnd();
|
|
43
|
+
i0.ɵɵelementEnd();
|
|
44
|
+
i0.ɵɵelementEnd();
|
|
45
|
+
} if (rf & 2) {
|
|
46
|
+
var ctx_r4 = i0.ɵɵnextContext(2);
|
|
47
|
+
i0.ɵɵadvance(4);
|
|
48
|
+
i0.ɵɵproperty("ngModel", ctx_r4._filterText);
|
|
49
|
+
} }
|
|
50
|
+
function TableComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
51
|
+
i0.ɵɵelementStart(0, "div", 4);
|
|
52
|
+
i0.ɵɵelementStart(1, "div", 5);
|
|
53
|
+
i0.ɵɵtemplate(2, TableComponent_div_1_button_2_Template, 2, 2, "button", 6);
|
|
54
|
+
i0.ɵɵelementEnd();
|
|
55
|
+
i0.ɵɵtemplate(3, TableComponent_div_1_div_3_Template, 8, 1, "div", 7);
|
|
56
|
+
i0.ɵɵelementEnd();
|
|
57
|
+
} if (rf & 2) {
|
|
58
|
+
var ctx_r0 = i0.ɵɵnextContext();
|
|
59
|
+
i0.ɵɵadvance(2);
|
|
60
|
+
i0.ɵɵproperty("ngIf", ctx_r0.config.create);
|
|
61
|
+
i0.ɵɵadvance(1);
|
|
62
|
+
i0.ɵɵproperty("ngIf", ctx_r0.config.enableFilter);
|
|
63
|
+
} }
|
|
64
|
+
function TableComponent_div_2_ng_container_2_th_1_Template(rf, ctx) { if (rf & 1) {
|
|
65
|
+
i0.ɵɵelementStart(0, "th", 24);
|
|
66
|
+
i0.ɵɵtext(1);
|
|
67
|
+
i0.ɵɵelementEnd();
|
|
68
|
+
} if (rf & 2) {
|
|
69
|
+
var col_r16 = i0.ɵɵnextContext().$implicit;
|
|
70
|
+
i0.ɵɵadvance(1);
|
|
71
|
+
i0.ɵɵtextInterpolate1(" ", col_r16.display, " ");
|
|
72
|
+
} }
|
|
73
|
+
function TableComponent_div_2_ng_container_2_td_2_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
74
|
+
i0.ɵɵelementStart(0, "div");
|
|
75
|
+
i0.ɵɵtext(1);
|
|
76
|
+
i0.ɵɵelementEnd();
|
|
77
|
+
} if (rf & 2) {
|
|
78
|
+
var row_r21 = i0.ɵɵnextContext().$implicit;
|
|
79
|
+
var col_r16 = i0.ɵɵnextContext().$implicit;
|
|
80
|
+
i0.ɵɵadvance(1);
|
|
81
|
+
i0.ɵɵtextInterpolate1(" ", row_r21[col_r16.name], "");
|
|
82
|
+
} }
|
|
83
|
+
var _c1 = function (a0) { return { "color": a0 }; };
|
|
84
|
+
function TableComponent_div_2_ng_container_2_td_2_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
85
|
+
i0.ɵɵelementStart(0, "div", 29);
|
|
86
|
+
i0.ɵɵtext(1);
|
|
87
|
+
i0.ɵɵelementEnd();
|
|
88
|
+
} if (rf & 2) {
|
|
89
|
+
var row_r21 = i0.ɵɵnextContext().$implicit;
|
|
90
|
+
var col_r16 = i0.ɵɵnextContext().$implicit;
|
|
91
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(2, _c1, col_r16.color.name));
|
|
92
|
+
i0.ɵɵadvance(1);
|
|
93
|
+
i0.ɵɵtextInterpolate1(" ", row_r21[col_r16.name], " ");
|
|
94
|
+
} }
|
|
95
|
+
function TableComponent_div_2_ng_container_2_td_2_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
96
|
+
i0.ɵɵelementStart(0, "div");
|
|
97
|
+
i0.ɵɵtext(1);
|
|
98
|
+
i0.ɵɵelementEnd();
|
|
99
|
+
} if (rf & 2) {
|
|
100
|
+
var row_r21 = i0.ɵɵnextContext().$implicit;
|
|
101
|
+
var col_r16 = i0.ɵɵnextContext().$implicit;
|
|
102
|
+
i0.ɵɵadvance(1);
|
|
103
|
+
i0.ɵɵtextInterpolate1(" ", row_r21[col_r16.name], " ");
|
|
104
|
+
} }
|
|
105
|
+
function TableComponent_div_2_ng_container_2_td_2_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
106
|
+
i0.ɵɵelementStart(0, "div");
|
|
107
|
+
i0.ɵɵtext(1);
|
|
108
|
+
i0.ɵɵpipe(2, "date");
|
|
109
|
+
i0.ɵɵelementEnd();
|
|
110
|
+
} if (rf & 2) {
|
|
111
|
+
var row_r21 = i0.ɵɵnextContext().$implicit;
|
|
112
|
+
var col_r16 = i0.ɵɵnextContext().$implicit;
|
|
113
|
+
i0.ɵɵadvance(1);
|
|
114
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, row_r21[col_r16.name], "dd/MM/yyyy"), "");
|
|
115
|
+
} }
|
|
116
|
+
function TableComponent_div_2_ng_container_2_td_2_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
117
|
+
i0.ɵɵelementStart(0, "div");
|
|
118
|
+
i0.ɵɵtext(1);
|
|
119
|
+
i0.ɵɵpipe(2, "date");
|
|
120
|
+
i0.ɵɵelementEnd();
|
|
121
|
+
} if (rf & 2) {
|
|
122
|
+
var row_r21 = i0.ɵɵnextContext().$implicit;
|
|
123
|
+
var col_r16 = i0.ɵɵnextContext().$implicit;
|
|
124
|
+
i0.ɵɵadvance(1);
|
|
125
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, row_r21[col_r16.name], "dd/MM/yyyy HH:mm"), "");
|
|
126
|
+
} }
|
|
127
|
+
function TableComponent_div_2_ng_container_2_td_2_ng_container_6_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
128
|
+
i0.ɵɵelementStart(0, "mat-icon", 31);
|
|
129
|
+
i0.ɵɵtext(1);
|
|
130
|
+
i0.ɵɵelementEnd();
|
|
131
|
+
} if (rf & 2) {
|
|
132
|
+
var icon_r38 = i0.ɵɵnextContext().$implicit;
|
|
133
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(3, _c1, icon_r38.color))("matTooltip", icon_r38.hint);
|
|
134
|
+
i0.ɵɵadvance(1);
|
|
135
|
+
i0.ɵɵtextInterpolate1(" ", icon_r38.name, " ");
|
|
136
|
+
} }
|
|
137
|
+
function TableComponent_div_2_ng_container_2_td_2_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
138
|
+
i0.ɵɵelementContainerStart(0);
|
|
139
|
+
i0.ɵɵtemplate(1, TableComponent_div_2_ng_container_2_td_2_ng_container_6_mat_icon_1_Template, 2, 5, "mat-icon", 30);
|
|
140
|
+
i0.ɵɵelementContainerEnd();
|
|
141
|
+
} if (rf & 2) {
|
|
142
|
+
var icon_r38 = ctx.$implicit;
|
|
143
|
+
var row_r21 = i0.ɵɵnextContext().$implicit;
|
|
144
|
+
var col_r16 = i0.ɵɵnextContext().$implicit;
|
|
145
|
+
var ctx_r27 = i0.ɵɵnextContext(2);
|
|
146
|
+
i0.ɵɵadvance(1);
|
|
147
|
+
i0.ɵɵproperty("ngIf", col_r16.type == ctx_r27.colType.Icon && ctx_r27.test(row_r21[icon_r38.field], icon_r38.operator, icon_r38.value));
|
|
148
|
+
} }
|
|
149
|
+
function TableComponent_div_2_ng_container_2_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
150
|
+
i0.ɵɵelementStart(0, "td", 25);
|
|
151
|
+
i0.ɵɵtemplate(1, TableComponent_div_2_ng_container_2_td_2_div_1_Template, 2, 1, "div", 26);
|
|
152
|
+
i0.ɵɵtemplate(2, TableComponent_div_2_ng_container_2_td_2_div_2_Template, 2, 4, "div", 27);
|
|
153
|
+
i0.ɵɵtemplate(3, TableComponent_div_2_ng_container_2_td_2_div_3_Template, 2, 1, "div", 26);
|
|
154
|
+
i0.ɵɵtemplate(4, TableComponent_div_2_ng_container_2_td_2_div_4_Template, 3, 4, "div", 26);
|
|
155
|
+
i0.ɵɵtemplate(5, TableComponent_div_2_ng_container_2_td_2_div_5_Template, 3, 4, "div", 26);
|
|
156
|
+
i0.ɵɵtemplate(6, TableComponent_div_2_ng_container_2_td_2_ng_container_6_Template, 2, 1, "ng-container", 28);
|
|
157
|
+
i0.ɵɵelementEnd();
|
|
158
|
+
} if (rf & 2) {
|
|
159
|
+
var row_r21 = ctx.$implicit;
|
|
160
|
+
var col_r16 = i0.ɵɵnextContext().$implicit;
|
|
161
|
+
var ctx_r19 = i0.ɵɵnextContext(2);
|
|
162
|
+
i0.ɵɵadvance(1);
|
|
163
|
+
i0.ɵɵproperty("ngIf", (col_r16.type == ctx_r19.colType.String || col_r16.type == null) && col_r16.color == null);
|
|
164
|
+
i0.ɵɵadvance(1);
|
|
165
|
+
i0.ɵɵproperty("ngIf", (col_r16.type == ctx_r19.colType.String || col_r16.type == null) && col_r16.color != null && ctx_r19.test(row_r21[col_r16.color.field], col_r16.color.operator, col_r16.color.value));
|
|
166
|
+
i0.ɵɵadvance(1);
|
|
167
|
+
i0.ɵɵproperty("ngIf", (col_r16.type == ctx_r19.colType.String || col_r16.type == null) && col_r16.color != null && !ctx_r19.test(row_r21[col_r16.color.field], col_r16.color.operator, col_r16.color.value));
|
|
168
|
+
i0.ɵɵadvance(1);
|
|
169
|
+
i0.ɵɵproperty("ngIf", col_r16.type == ctx_r19.colType.Date);
|
|
170
|
+
i0.ɵɵadvance(1);
|
|
171
|
+
i0.ɵɵproperty("ngIf", col_r16.type == ctx_r19.colType.DateTime);
|
|
172
|
+
i0.ɵɵadvance(1);
|
|
173
|
+
i0.ɵɵproperty("ngForOf", col_r16.icons);
|
|
174
|
+
} }
|
|
175
|
+
function TableComponent_div_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
176
|
+
i0.ɵɵelementContainerStart(0, 22);
|
|
177
|
+
i0.ɵɵtemplate(1, TableComponent_div_2_ng_container_2_th_1_Template, 2, 1, "th", 18);
|
|
178
|
+
i0.ɵɵtemplate(2, TableComponent_div_2_ng_container_2_td_2_Template, 7, 6, "td", 23);
|
|
179
|
+
i0.ɵɵelementContainerEnd();
|
|
180
|
+
} if (rf & 2) {
|
|
181
|
+
var col_r16 = ctx.$implicit;
|
|
182
|
+
i0.ɵɵproperty("matColumnDef", col_r16.name);
|
|
183
|
+
} }
|
|
184
|
+
function TableComponent_div_2_th_4_Template(rf, ctx) { if (rf & 1) {
|
|
185
|
+
i0.ɵɵelementStart(0, "th", 24);
|
|
186
|
+
i0.ɵɵtext(1, " Action ");
|
|
187
|
+
i0.ɵɵelementEnd();
|
|
188
|
+
} }
|
|
189
|
+
function TableComponent_div_2_td_5_ng_container_1_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
190
|
+
var _r50 = i0.ɵɵgetCurrentView();
|
|
191
|
+
i0.ɵɵelementStart(0, "button", 33);
|
|
192
|
+
i0.ɵɵlistener("click", function TableComponent_div_2_td_5_ng_container_1_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r50); var act_r46 = i0.ɵɵnextContext().$implicit; var row_r44 = i0.ɵɵnextContext().$implicit; var ctx_r48 = i0.ɵɵnextContext(2); return ctx_r48.do(act_r46.name, row_r44); });
|
|
193
|
+
i0.ɵɵelementStart(1, "mat-icon");
|
|
194
|
+
i0.ɵɵtext(2);
|
|
195
|
+
i0.ɵɵelementEnd();
|
|
196
|
+
i0.ɵɵelementEnd();
|
|
197
|
+
} if (rf & 2) {
|
|
198
|
+
var act_r46 = i0.ɵɵnextContext().$implicit;
|
|
199
|
+
var row_r44 = i0.ɵɵnextContext().$implicit;
|
|
200
|
+
i0.ɵɵproperty("disabled", act_r46.disable && row_r44[act_r46.disable.field] == act_r46.disable.value)("color", act_r46.color == null ? "primary" : act_r46.color)("matTooltip", act_r46.hint);
|
|
201
|
+
i0.ɵɵadvance(2);
|
|
202
|
+
i0.ɵɵtextInterpolate(act_r46.icon);
|
|
203
|
+
} }
|
|
204
|
+
function TableComponent_div_2_td_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
205
|
+
i0.ɵɵelementContainerStart(0);
|
|
206
|
+
i0.ɵɵtemplate(1, TableComponent_div_2_td_5_ng_container_1_button_1_Template, 3, 4, "button", 32);
|
|
207
|
+
i0.ɵɵelementContainerEnd();
|
|
208
|
+
} if (rf & 2) {
|
|
209
|
+
var act_r46 = ctx.$implicit;
|
|
210
|
+
var row_r44 = i0.ɵɵnextContext().$implicit;
|
|
211
|
+
i0.ɵɵadvance(1);
|
|
212
|
+
i0.ɵɵproperty("ngIf", act_r46.disappear && row_r44[act_r46.disappear.field] != act_r46.disappear.value || !act_r46.disappear);
|
|
213
|
+
} }
|
|
214
|
+
function TableComponent_div_2_td_5_Template(rf, ctx) { if (rf & 1) {
|
|
215
|
+
i0.ɵɵelementStart(0, "td", 25);
|
|
216
|
+
i0.ɵɵtemplate(1, TableComponent_div_2_td_5_ng_container_1_Template, 2, 1, "ng-container", 28);
|
|
217
|
+
i0.ɵɵelementEnd();
|
|
218
|
+
} if (rf & 2) {
|
|
219
|
+
var ctx_r13 = i0.ɵɵnextContext(2);
|
|
220
|
+
i0.ɵɵstyleMap(ctx_r13.styleString + ";padding-right: 0px;");
|
|
221
|
+
i0.ɵɵadvance(1);
|
|
222
|
+
i0.ɵɵproperty("ngForOf", ctx_r13.config.actions);
|
|
223
|
+
} }
|
|
224
|
+
function TableComponent_div_2_tr_6_Template(rf, ctx) { if (rf & 1) {
|
|
225
|
+
i0.ɵɵelement(0, "tr", 34);
|
|
226
|
+
} }
|
|
227
|
+
var _c2 = function (a0) { return { "make-gray": a0 }; };
|
|
228
|
+
function TableComponent_div_2_tr_7_Template(rf, ctx) { if (rf & 1) {
|
|
229
|
+
i0.ɵɵelement(0, "tr", 35);
|
|
230
|
+
} if (rf & 2) {
|
|
231
|
+
var row_r55 = ctx.$implicit;
|
|
232
|
+
var ctx_r15 = i0.ɵɵnextContext(2);
|
|
233
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c2, row_r55[ctx_r15.config.greyout.field] == ctx_r15.config.greyout.value));
|
|
234
|
+
} }
|
|
235
|
+
function TableComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
236
|
+
i0.ɵɵelementStart(0, "div", 14);
|
|
237
|
+
i0.ɵɵelementStart(1, "table", 15);
|
|
238
|
+
i0.ɵɵtemplate(2, TableComponent_div_2_ng_container_2_Template, 3, 1, "ng-container", 16);
|
|
239
|
+
i0.ɵɵelementContainerStart(3, 17);
|
|
240
|
+
i0.ɵɵtemplate(4, TableComponent_div_2_th_4_Template, 2, 0, "th", 18);
|
|
241
|
+
i0.ɵɵtemplate(5, TableComponent_div_2_td_5_Template, 2, 3, "td", 19);
|
|
242
|
+
i0.ɵɵelementContainerEnd();
|
|
243
|
+
i0.ɵɵtemplate(6, TableComponent_div_2_tr_6_Template, 1, 0, "tr", 20);
|
|
244
|
+
i0.ɵɵtemplate(7, TableComponent_div_2_tr_7_Template, 1, 3, "tr", 21);
|
|
245
|
+
i0.ɵɵelementEnd();
|
|
246
|
+
i0.ɵɵelementEnd();
|
|
247
|
+
} if (rf & 2) {
|
|
248
|
+
var ctx_r1 = i0.ɵɵnextContext();
|
|
249
|
+
i0.ɵɵadvance(1);
|
|
250
|
+
i0.ɵɵproperty("dataSource", ctx_r1.data);
|
|
251
|
+
i0.ɵɵadvance(1);
|
|
252
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.config.columns);
|
|
253
|
+
i0.ɵɵadvance(4);
|
|
254
|
+
i0.ɵɵproperty("matHeaderRowDef", ctx_r1.displayedColumns);
|
|
255
|
+
i0.ɵɵadvance(1);
|
|
256
|
+
i0.ɵɵproperty("matRowDefColumns", ctx_r1.displayedColumns);
|
|
257
|
+
} }
|
|
258
|
+
var _c3 = function () { return [10, 50, 100]; };
|
|
5
259
|
var TableComponent = /** @class */ (function () {
|
|
6
260
|
function TableComponent() {
|
|
7
261
|
this.dataChange = new EventEmitter();
|
|
@@ -15,7 +269,6 @@ var TableComponent = /** @class */ (function () {
|
|
|
15
269
|
}
|
|
16
270
|
TableComponent.prototype.ngOnInit = function () {
|
|
17
271
|
var _this = this;
|
|
18
|
-
// console.log("Init")
|
|
19
272
|
this.config.columns.forEach(function (element) {
|
|
20
273
|
_this.displayedColumns.push(element.name);
|
|
21
274
|
});
|
|
@@ -23,7 +276,6 @@ var TableComponent = /** @class */ (function () {
|
|
|
23
276
|
this.styleString = "width: " + 50 * this.config.actions.length + "px";
|
|
24
277
|
};
|
|
25
278
|
TableComponent.prototype.ngOnChanges = function () {
|
|
26
|
-
// console.log("OnChange")
|
|
27
279
|
this.data = new MatTableDataSource(this.data);
|
|
28
280
|
this.data.paginator = this.tablePaginator;
|
|
29
281
|
this.applyFilter(this._filterText);
|
|
@@ -77,35 +329,50 @@ var TableComponent = /** @class */ (function () {
|
|
|
77
329
|
}
|
|
78
330
|
}
|
|
79
331
|
};
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
], TableComponent.prototype, "tablePaginator", void 0);
|
|
101
|
-
TableComponent = __decorate([
|
|
102
|
-
Component({
|
|
103
|
-
selector: 'spa-table',
|
|
104
|
-
template: "<div >\r\n\r\n<div *ngIf=\"config.create.enabled || config.enableFilter\" class=\"row justify-content-between\" style=\"padding-bottom: 10px\">\r\n <div class=\"col\">\r\n<button *ngIf=\"config.create\" [disabled]=\"!config.create.enabled\" mat-raised-button color=\"primary\" (click)=\"create()\">{{config.create.display}}</button>\r\n</div>\r\n <div *ngIf=\"config.enableFilter\" class=\"col d-flex justify-content-end\">\r\n<mat-form-field style=\"font-size:12px;margin-right: 5px;\">\r\n<mat-label>Filter</mat-label>\r\n<input matInput [(ngModel)]=\"_filterText\" (keyup)=\"applyFilter($event.target.value)\" placeholder=\"Enter Filter text\" autocomplete=\"off\">\r\n</mat-form-field>\r\n<button mat-mini-fab color=\"primary\" (click)=\"load()\" style=\"margin-top:5px\" matTooltip=\"refresh data\" matTooltipPosition=\"right\"><mat-icon class=\"refreshIcon\">refresh</mat-icon></button>\r\n</div>\r\n</div>\r\n\r\n<div class=\"mat-elevation-z8\" *ngIf=\"data\">\r\n\r\n <table mat-table [dataSource]=\"data\">\r\n\r\n <ng-container *ngFor=\"let col of config.columns; let i = index\"\r\n\r\n [matColumnDef]=\"col.name\">\r\n <th mat-header-cell *matHeaderCellDef> {{col.display}} </th>\r\n <td mat-cell *matCellDef=\"let row\">\r\n\r\n <!-- String -->\r\n <div *ngIf=\"(col.type==colType.String || col.type == null) && col.color == null\"> {{row[col.name]}}</div>\r\n\r\n <div [ngStyle]=\"{'color':col.color.name}\"\r\n *ngIf=\"(col.type==colType.String || col.type == null) && col.color != null && test(row[col.color.field], col.color.operator, col.color.value )\" >\r\n {{row[col.name]}}\r\n </div>\r\n\r\n <div\r\n *ngIf=\"(col.type==colType.String || col.type == null) && col.color != null && !test(row[col.color.field], col.color.operator, col.color.value )\" >\r\n {{row[col.name]}}\r\n </div>\r\n\r\n <!-- <div [ngStyle]=\"{'color':col.color.name}\"\r\n *ngIf=\"(col.type==colType.String || col.type == null) && col.color != null &&\r\n col.color.operator==op.Equal && row[col.color.field]==col.color.value\" >\r\n {{row[col.name]}}\r\n </div>\r\n\r\n <div [ngStyle]=\"{'color':col.color.name}\"\r\n *ngIf=\"(col.type==colType.String || col.type == null) && col.color != null &&\r\n col.color.operator==op.Greater && row[col.color.field]>col.color.value\" >\r\n {{row[col.name]}}\r\n </div>\r\n\r\n <div [ngStyle]=\"{'color':col.color.name}\"\r\n *ngIf=\"(col.type==colType.String || col.type == null) && col.color != null &&\r\n col.color.operator==op.Less && row[col.color.field]<col.color.value\" >\r\n {{row[col.name]}}\r\n </div>\r\n\r\n <div [ngStyle]=\"{'color':col.color.name}\"\r\n *ngIf=\"(col.type==colType.String || col.type == null) && col.color != null &&\r\n col.color.operator==op.NotEqual && row[col.color.field]!=col.color.value\" >\r\n {{row[col.name]}}\r\n </div> -->\r\n\r\n\r\n <!-- Date -->\r\n <div *ngIf=\"col.type==colType.Date\"> {{row[col.name] | date:'dd/MM/yyyy'}}</div>\r\n\r\n\r\n <!-- DateTime -->\r\n <div *ngIf=\"col.type==colType.DateTime\"> {{row[col.name] | date:'dd/MM/yyyy HH:mm'}}</div>\r\n\r\n\r\n <ng-container *ngFor=\"let icon of col.icons;\">\r\n <!-- <mat-icon *ngIf=\"col.type==colType.Icon && icon.operator==op.Equal && row[icon.field]==icon.value\"\r\n [ngStyle]=\"{'color':icon.color}\"\r\n [matTooltip]=\"icon.hint\" matTooltipPosition=\"above\">\r\n {{icon.name}}\r\n </mat-icon>\r\n\r\n <mat-icon *ngIf=\"col.type==colType.Icon && icon.operator==op.Greater && row[icon.field]>icon.value\"\r\n [ngStyle]=\"{'color':icon.color}\"\r\n [matTooltip]=\"icon.hint\" matTooltipPosition=\"above\">\r\n {{icon.name}}\r\n </mat-icon>\r\n\r\n <mat-icon *ngIf=\"col.type==colType.Icon && icon.operator==op.Less && row[icon.field]<icon.value\"\r\n [ngStyle]=\"{'color':icon.color}\"\r\n [matTooltip]=\"icon.hint\" matTooltipPosition=\"above\">\r\n {{icon.name}}\r\n </mat-icon>\r\n <mat-icon *ngIf=\"col.type==colType.Icon && icon.operator==op.NotEqual && row[icon.field]!=icon.value\"\r\n [ngStyle]=\"{'color':icon.color}\"\r\n [matTooltip]=\"icon.hint\" matTooltipPosition=\"above\">\r\n {{icon.name}}\r\n </mat-icon> -->\r\n\r\n <mat-icon *ngIf=\"col.type==colType.Icon && test(row[icon.field],icon.operator,icon.value)\"\r\n [ngStyle]=\"{'color':icon.color}\"\r\n [matTooltip]=\"icon.hint\" matTooltipPosition=\"above\">\r\n {{icon.name}}\r\n </mat-icon>\r\n\r\n </ng-container>\r\n\r\n </td>\r\n\r\n </ng-container>\r\n\r\n\r\n\r\n\r\n <ng-container matColumnDef=\"Action\">\r\n\r\n <th mat-header-cell *matHeaderCellDef> Action </th>\r\n <td mat-cell *matCellDef=\"let row\" [style]=\"styleString+';padding-right: 0px;'\">\r\n\r\n <ng-container *ngFor=\"let act of config.actions\">\r\n\r\n <button *ngIf=\" (act.disappear && (row[act.disappear.field] != act.disappear.value)) || !act.disappear\" mat-mini-fab\r\n\r\n [disabled]=\"(act.disable && (row[act.disable.field] == act.disable.value))\"\r\n [color]=\"act.color==null? 'primary' : act.color\"\r\n [matTooltip]=\"act.hint\" matTooltipPosition=\"above\"\r\n (click)=\"do(act.name,row)\" style=\"margin-right:5px\">\r\n <mat-icon>{{act.icon}}</mat-icon>\r\n\r\n </button>\r\n\r\n </ng-container>\r\n\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\" [ngClass]=\"{'make-gray': row[config.greyout.field]==config.greyout.value}\"></tr>\r\n\r\n </table>\r\n</div>\r\n<mat-paginator #tablePaginator [pageSizeOptions]=\"[10, 50, 100]\" showFirstLastButtons></mat-paginator>\r\n</div>\r\n\r\n",
|
|
105
|
-
styles: [".mat-mini-fab{width:32px;height:32px}.mat-mini-fab mat-icon{font-size:16px;margin-top:-3px}.make-gray{background-color:#d3d3d3}"]
|
|
106
|
-
})
|
|
107
|
-
], TableComponent);
|
|
332
|
+
TableComponent.ɵfac = function TableComponent_Factory(t) { return new (t || TableComponent)(); };
|
|
333
|
+
TableComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TableComponent, selectors: [["spa-table"]], viewQuery: function TableComponent_Query(rf, ctx) { if (rf & 1) {
|
|
334
|
+
i0.ɵɵviewQuery(_c0, true);
|
|
335
|
+
} if (rf & 2) {
|
|
336
|
+
var _t;
|
|
337
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tablePaginator = _t.first);
|
|
338
|
+
} }, inputs: { config: "config", data: "data" }, outputs: { dataChange: "dataChange", buttonClick: "buttonClick", loadClick: "loadClick", createClick: "createClick" }, features: [i0.ɵɵNgOnChangesFeature], decls: 5, vars: 4, consts: [["class", "row justify-content-between", "style", "padding-bottom: 10px", 4, "ngIf"], ["class", "mat-elevation-z8", 4, "ngIf"], ["showFirstLastButtons", "", 3, "pageSizeOptions"], ["tablePaginator", ""], [1, "row", "justify-content-between", 2, "padding-bottom", "10px"], [1, "col"], ["mat-raised-button", "", "color", "primary", 3, "disabled", "click", 4, "ngIf"], ["class", "col d-flex justify-content-end", 4, "ngIf"], ["mat-raised-button", "", "color", "primary", 3, "disabled", "click"], [1, "col", "d-flex", "justify-content-end"], [2, "font-size", "12px", "margin-right", "5px"], ["matInput", "", "placeholder", "Enter Filter text", "autocomplete", "off", 3, "ngModel", "ngModelChange", "keyup"], ["mat-mini-fab", "", "color", "primary", "matTooltip", "refresh data", "matTooltipPosition", "right", 2, "margin-top", "5px", 3, "click"], [1, "refreshIcon"], [1, "mat-elevation-z8"], ["mat-table", "", 3, "dataSource"], [3, "matColumnDef", 4, "ngFor", "ngForOf"], ["matColumnDef", "Action"], ["mat-header-cell", "", 4, "matHeaderCellDef"], ["mat-cell", "", 3, "style", 4, "matCellDef"], ["mat-header-row", "", 4, "matHeaderRowDef"], ["mat-row", "", 3, "ngClass", 4, "matRowDef", "matRowDefColumns"], [3, "matColumnDef"], ["mat-cell", "", 4, "matCellDef"], ["mat-header-cell", ""], ["mat-cell", ""], [4, "ngIf"], [3, "ngStyle", 4, "ngIf"], [4, "ngFor", "ngForOf"], [3, "ngStyle"], ["matTooltipPosition", "above", 3, "ngStyle", "matTooltip", 4, "ngIf"], ["matTooltipPosition", "above", 3, "ngStyle", "matTooltip"], ["mat-mini-fab", "", "matTooltipPosition", "above", "style", "margin-right:5px", 3, "disabled", "color", "matTooltip", "click", 4, "ngIf"], ["mat-mini-fab", "", "matTooltipPosition", "above", 2, "margin-right", "5px", 3, "disabled", "color", "matTooltip", "click"], ["mat-header-row", ""], ["mat-row", "", 3, "ngClass"]], template: function TableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
339
|
+
i0.ɵɵelementStart(0, "div");
|
|
340
|
+
i0.ɵɵtemplate(1, TableComponent_div_1_Template, 4, 2, "div", 0);
|
|
341
|
+
i0.ɵɵtemplate(2, TableComponent_div_2_Template, 8, 4, "div", 1);
|
|
342
|
+
i0.ɵɵelement(3, "mat-paginator", 2, 3);
|
|
343
|
+
i0.ɵɵelementEnd();
|
|
344
|
+
} if (rf & 2) {
|
|
345
|
+
i0.ɵɵadvance(1);
|
|
346
|
+
i0.ɵɵproperty("ngIf", ctx.config.create.enabled || ctx.config.enableFilter);
|
|
347
|
+
i0.ɵɵadvance(1);
|
|
348
|
+
i0.ɵɵproperty("ngIf", ctx.data);
|
|
349
|
+
i0.ɵɵadvance(1);
|
|
350
|
+
i0.ɵɵproperty("pageSizeOptions", i0.ɵɵpureFunction0(3, _c3));
|
|
351
|
+
} }, directives: [i1.NgIf, i2.MatPaginator, i3.MatButton, i4.MatFormField, i4.MatLabel, i5.MatInput, i6.DefaultValueAccessor, i6.NgControlStatus, i6.NgModel, i7.MatTooltip, i8.MatIcon, i9.MatTable, i1.NgForOf, i9.MatColumnDef, i9.MatHeaderCellDef, i9.MatCellDef, i9.MatHeaderRowDef, i9.MatRowDef, i9.MatHeaderCell, i9.MatCell, i1.NgStyle, i9.MatHeaderRow, i9.MatRow, i1.NgClass], pipes: [i1.DatePipe], styles: [".mat-mini-fab[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mini-fab[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;margin-top:-3px}.make-gray[_ngcontent-%COMP%]{background-color:#d3d3d3}"] });
|
|
108
352
|
return TableComponent;
|
|
109
353
|
}());
|
|
110
354
|
export { TableComponent };
|
|
111
|
-
|
|
355
|
+
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TableComponent, [{
|
|
356
|
+
type: Component,
|
|
357
|
+
args: [{
|
|
358
|
+
selector: 'spa-table',
|
|
359
|
+
templateUrl: './table.component.html',
|
|
360
|
+
styleUrls: ['./table.component.css']
|
|
361
|
+
}]
|
|
362
|
+
}], function () { return []; }, { config: [{
|
|
363
|
+
type: Input
|
|
364
|
+
}], data: [{
|
|
365
|
+
type: Input
|
|
366
|
+
}], dataChange: [{
|
|
367
|
+
type: Output
|
|
368
|
+
}], buttonClick: [{
|
|
369
|
+
type: Output
|
|
370
|
+
}], loadClick: [{
|
|
371
|
+
type: Output
|
|
372
|
+
}], createClick: [{
|
|
373
|
+
type: Output
|
|
374
|
+
}], tablePaginator: [{
|
|
375
|
+
type: ViewChild,
|
|
376
|
+
args: ['tablePaginator']
|
|
377
|
+
}] }); })();
|
|
378
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vdGluLXNwYS8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL3RhYmxlL3RhYmxlLmNvbXBvbmVudC50cyIsImxpYi9jb21wb25lbnRzL3RhYmxlL3RhYmxlLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxNQUFNLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTFGLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBQzdELE9BQU8sRUFBRSxjQUFjLEVBQUUsUUFBUSxFQUFFLGVBQWUsRUFBZSxNQUFNLHVCQUF1QixDQUFDOzs7Ozs7Ozs7Ozs7OztJQ0MvRixpQ0FBdUg7SUFBbkIsc0xBQWtCO0lBQUMsWUFBeUI7SUFBQSxpQkFBUzs7O0lBQTNILHdEQUFtQztJQUFzRCxlQUF5QjtJQUF6QixrREFBeUI7Ozs7SUFFL0ksOEJBQ0Q7SUFBQSwwQ0FDQTtJQUFBLGlDQUFXO0lBQUEsc0JBQU07SUFBQSxpQkFBWTtJQUM3QixpQ0FDQTtJQURnQixvTkFBeUIsbU1BQUE7SUFBekMsaUJBQ0E7SUFBQSxpQkFBaUI7SUFDakIsa0NBQWtJO0lBQTdGLG1MQUFnQjtJQUE2RSxvQ0FBOEI7SUFBQSx1QkFBTztJQUFBLGlCQUFXO0lBQUEsaUJBQVM7SUFDM0wsaUJBQU07OztJQUhVLGVBQXlC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XNwLnZhbHVlID0gaXRlbTtcclxuICAgIHRoaXMuYnV0dG9uQ2xpY2suZW1pdChyZXNwKTtcclxuICB9XHJcblxyXG5cclxuICBjcmVhdGUoKXtcclxuICAgIHRoaXMuY3JlYXRlQ2xpY2suZW1pdCgpO1xyXG4gIH1cclxuXHJcbiAgbG9hZCgpe1xyXG4gICAgdGhpcy5sb2FkQ2xpY2suZW1pdCgpO1xyXG4gIH1cclxuXHJcbiAgdGVzdChhOmFueSwgb3A6IE9wZXJhdG9yLCBiOiBhbnkpe1xyXG5cclxuICAgIGlmIChvcCA9PSBPcGVyYXRvci5FcXVhbCl7XHJcbiAgICAgIGlmIChhID09IGIpe1xyXG4gICAgICAgIHJldHVybiB0cnVlO1xyXG4gICAgICB9ZWxzZXtcclxuICAgICAgICByZXR1cm4gZmFsc2U7XHJcbiAgICAgIH1cclxuXHJcbiAgICB9XHJcblxyXG4gICAgaWYgKG9wID09IE9wZXJhdG9yLkdyZWF0ZXIpIHtcclxuICAgICAgaWYgKGEgPiBiKSB7XHJcbiAgICAgICAgcmV0dXJuIHRydWU7XHJcbiAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgcmV0dXJuIGZhbHNlO1xyXG4gICAgICB9XHJcblxyXG4gICAgfVxyXG5cclxuICAgIGlmIChvcCA9PSBPcGVyYXRvci5MZXNzKSB7XHJcbiAgICAgIGlmIChhIDwgYikge1xyXG4gICAgICAgIHJldHVybiB0cnVlO1xyXG4gICAgICB9IGVsc2Uge1xyXG4gICAgICAgIHJldHVybiBmYWxzZTtcclxuICAgICAgfVxyXG5cclxuICAgIH1cclxuXHJcbiAgICBpZiAob3AgPT0gT3BlcmF0b3IuTm90RXF1YWwpIHtcclxuICAgICAgaWYgKGEgIT0gYikge1xyXG4gICAgICAgIHJldHVybiB0cnVlO1xyXG4gICAgICB9IGVsc2Uge1xyXG4gICAgICAgIHJldHVybiBmYWxzZTtcclxuICAgICAgfVxyXG5cclxuICAgIH1cclxuXHJcblxyXG5cclxu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VwiPiB7e3Jvd1tjb2wubmFtZV0gfCBkYXRlOidkZC9NTS95eXl5IEhIOm1tJ319PC9kaXY+XHJcblxyXG5cclxuICAgICAgICA8bmctY29udGFpbmVyICpuZ0Zvcj1cImxldCBpY29uIG9mIGNvbC5pY29ucztcIj5cclxuICAgICAgICAgIDwhLS0gPG1hdC1pY29uICpuZ0lmPVwiY29sLnR5cGU9PWNvbFR5cGUuSWNvbiAmJiBpY29uLm9wZXJhdG9yPT1vcC5FcXVhbCAmJiByb3dbaWNvbi5maWVsZF09PWljb24udmFsdWVcIlxyXG4gICAgICAgICAgICBbbmdTdHlsZV09XCJ7J2NvbG9yJzppY29uLmNvbG9yfVwiXHJcbiAgICAgICAgICAgIFttYXRUb29sdGlwXT1cImljb24uaGludFwiIG1hdFRvb2x0aXBQb3NpdGlvbj1cImFib3ZlXCI+XHJcbiAgICAgICAgICAgIHt7aWNvbi5uYW1lfX1cclxuICAgICAgICAgIDwvbWF0LWljb24+XHJcblxyXG4gICAgICAgICAgPG1hdC1pY29uICpuZ0lmPVwiY29sLnR5cGU9PWNvbFR5cGUuSWNvbiAmJiBpY29uLm9wZXJhdG9yPT1vcC5HcmVhdGVyICYmIHJvd1tpY29uLmZpZWxkXT5pY29uLnZhbHVlXCJcclxuICAgICAgICAgICAgW25nU3R5bGVdPVwieydjb2xvcic6aWNvbi5jb2xvcn1cIlxyXG4gICAgICAgICAgICBbbWF0VG9vbHRpcF09XCJpY29uLmhpbnRcIiBtYXRUb29sdGlwUG9zaXRpb249XCJhYm92ZVwiPlxyXG4gICAgICAgICAgICB7e2ljb24ubmFtZX19XHJcbiAgICAgICAgICA8L21hdC1pY29uPlxyXG5cclxuICAgICAgICAgIDxtYXQtaWNvbiAqbmdJZj1cImNvbC50eXBlPT1jb2xUeXBlLkljb24gJiYgaWNvbi5vcGVyYXRvcj09b3AuTGVzcyAmJiByb3dbaWNvbi5maWVsZF08aWNvbi52YWx1ZVwiXHJcbiAgICAgICAgICAgIFtuZ1N0eWxlXT1cInsnY29sb3InOmljb24uY29sb3J9XCJcclxuICAgICAgICAgICAgW21hdFRvb2x0aXBdPVwiaWNvbi5oaW50XCIgbWF0VG9vbHRpcFBvc2l0aW9uPVwiYWJvdmVcIj5cclxuICAgICAgICAgICAge3tpY29uLm5hbWV9fVxyXG4gICAgICAgICAgPC9tYXQtaWNvbj5cclxuICAgICAgICAgIDxtYXQtaWNvbiAqbmdJZj1cImNvbC50eXBlPT1jb2xUeXBlLkljb24gJiYgaWNvbi5vcGVyYXRvcj09b3AuTm90RXF1YWwgJiYgcm93W2ljb24uZmllbGRdIT1pY29uLnZhbHVlXCJcclxuICAgICAgICAgICAgW25nU3R5bGVdPVwieydjb2xvcic6aWNvbi5jb2xvcn1cIlxyXG4gICAgICAgICAgICBbbWF0VG9vbHRpcF09XCJpY29uLmhpbnRcIiBtYXRUb29sdGlwUG9zaXRpb249XCJhYm92ZVwiPlxyXG4gICAgICAgICAgICB7e2ljb24ubmFtZX19XHJcbiAgICAgICAgICA8L21hdC1pY29uPiAtLT5cclxuXHJcbiAgICAgICAgICA8bWF0LWljb24gKm5nSWY9XCJjb2wudHlwZT09Y29sVHlwZS5JY29uICYmIHRlc3Qocm93W2ljb24uZmllbGRdLGljb24ub3BlcmF0b3IsaWNvbi52YWx1ZSlcIlxyXG4gICAgICAgICAgICBbbmdTdHlsZV09XCJ7J2NvbG9yJzppY29uLmNvbG9yfVwiXHJcbiAgICAgICAgICAgIFttYXRUb29sdGlwXT1cImljb24uaGludFwiIG1hdFRvb2x0aXBQb3NpdGlvbj1cImFib3ZlXCI+XHJcbiAgICAgICAgICAgIHt7aWNvbi5uYW1lfX1cclxuICAgICAgICAgIDwvbWF0LWljb24+XHJcblxyXG4gICAgICAgIDwvbmctY29udGFpbmVyPlxyXG5cclxuICAgICAgPC90ZD5cclxuXHJcbiAgICA8L25nLWNvbnRhaW5lcj5cclxuXHJcblxyXG5cclxuXHJcbiAgICA8bmctY29udGFpbmVyIG1hdENvbHVtbkR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