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,8 +1,160 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
1
|
import { AppConfig } from './../../classes/Classes';
|
|
3
2
|
import { Component, Input } from '@angular/core';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/router";
|
|
5
|
+
import * as i2 from "../../services/auth.service";
|
|
6
|
+
import * as i3 from "@angular/common";
|
|
7
|
+
import * as i4 from "@angular/material/button";
|
|
8
|
+
import * as i5 from "@angular/material/icon";
|
|
9
|
+
import * as i6 from "@angular/material/menu";
|
|
10
|
+
function NavMenuComponent_header_0_img_3_Template(rf, ctx) { if (rf & 1) {
|
|
11
|
+
i0.ɵɵelement(0, "img", 8);
|
|
12
|
+
} if (rf & 2) {
|
|
13
|
+
var ctx_r1 = i0.ɵɵnextContext(2);
|
|
14
|
+
i0.ɵɵproperty("src", ctx_r1.appConfig.logo, i0.ɵɵsanitizeUrl);
|
|
15
|
+
} }
|
|
16
|
+
function NavMenuComponent_header_0_div_8_div_14_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
17
|
+
var _r13 = i0.ɵɵgetCurrentView();
|
|
18
|
+
i0.ɵɵelementStart(0, "button", 19);
|
|
19
|
+
i0.ɵɵlistener("click", function NavMenuComponent_header_0_div_8_div_14_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r13); var item_r5 = i0.ɵɵnextContext().$implicit; var ctx_r11 = i0.ɵɵnextContext(3); return ctx_r11.redirectTo(item_r5.link); });
|
|
20
|
+
i0.ɵɵtext(1);
|
|
21
|
+
i0.ɵɵelementEnd();
|
|
22
|
+
} if (rf & 2) {
|
|
23
|
+
var item_r5 = i0.ɵɵnextContext().$implicit;
|
|
24
|
+
i0.ɵɵadvance(1);
|
|
25
|
+
i0.ɵɵtextInterpolate(item_r5.display);
|
|
26
|
+
} }
|
|
27
|
+
function NavMenuComponent_header_0_div_8_div_14_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
28
|
+
var _r17 = i0.ɵɵgetCurrentView();
|
|
29
|
+
i0.ɵɵelementStart(0, "button", 19);
|
|
30
|
+
i0.ɵɵlistener("click", function NavMenuComponent_header_0_div_8_div_14_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r17); var item_r5 = i0.ɵɵnextContext().$implicit; var ctx_r15 = i0.ɵɵnextContext(3); return ctx_r15.redirectTo(item_r5.link); });
|
|
31
|
+
i0.ɵɵtext(1);
|
|
32
|
+
i0.ɵɵelementEnd();
|
|
33
|
+
} if (rf & 2) {
|
|
34
|
+
var item_r5 = i0.ɵɵnextContext().$implicit;
|
|
35
|
+
i0.ɵɵadvance(1);
|
|
36
|
+
i0.ɵɵtextInterpolate(item_r5.display);
|
|
37
|
+
} }
|
|
38
|
+
function NavMenuComponent_header_0_div_8_div_14_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
39
|
+
i0.ɵɵelementStart(0, "button", 20);
|
|
40
|
+
i0.ɵɵtext(1);
|
|
41
|
+
i0.ɵɵelementEnd();
|
|
42
|
+
} if (rf & 2) {
|
|
43
|
+
var item_r5 = i0.ɵɵnextContext().$implicit;
|
|
44
|
+
var _r9 = i0.ɵɵreference(5);
|
|
45
|
+
i0.ɵɵproperty("matMenuTriggerFor", _r9);
|
|
46
|
+
i0.ɵɵadvance(1);
|
|
47
|
+
i0.ɵɵtextInterpolate(item_r5.display);
|
|
48
|
+
} }
|
|
49
|
+
function NavMenuComponent_header_0_div_8_div_14_div_6_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
50
|
+
var _r24 = i0.ɵɵgetCurrentView();
|
|
51
|
+
i0.ɵɵelementStart(0, "button", 22);
|
|
52
|
+
i0.ɵɵlistener("click", function NavMenuComponent_header_0_div_8_div_14_div_6_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r24); var subItem_r20 = i0.ɵɵnextContext().$implicit; var ctx_r22 = i0.ɵɵnextContext(4); return ctx_r22.redirectTo(subItem_r20.link); });
|
|
53
|
+
i0.ɵɵtext(1);
|
|
54
|
+
i0.ɵɵelementEnd();
|
|
55
|
+
} if (rf & 2) {
|
|
56
|
+
var subItem_r20 = i0.ɵɵnextContext().$implicit;
|
|
57
|
+
i0.ɵɵadvance(1);
|
|
58
|
+
i0.ɵɵtextInterpolate(subItem_r20.display);
|
|
59
|
+
} }
|
|
60
|
+
function NavMenuComponent_header_0_div_8_div_14_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
61
|
+
i0.ɵɵelementStart(0, "div");
|
|
62
|
+
i0.ɵɵtemplate(1, NavMenuComponent_header_0_div_8_div_14_div_6_button_1_Template, 2, 1, "button", 21);
|
|
63
|
+
i0.ɵɵelementEnd();
|
|
64
|
+
} if (rf & 2) {
|
|
65
|
+
var subItem_r20 = ctx.$implicit;
|
|
66
|
+
var ctx_r10 = i0.ɵɵnextContext(4);
|
|
67
|
+
i0.ɵɵadvance(1);
|
|
68
|
+
i0.ɵɵproperty("ngIf", ctx_r10.myRole[subItem_r20.name] && subItem_r20.showMenu);
|
|
69
|
+
} }
|
|
70
|
+
function NavMenuComponent_header_0_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
71
|
+
i0.ɵɵelementStart(0, "div");
|
|
72
|
+
i0.ɵɵtemplate(1, NavMenuComponent_header_0_div_8_div_14_button_1_Template, 2, 1, "button", 16);
|
|
73
|
+
i0.ɵɵtemplate(2, NavMenuComponent_header_0_div_8_div_14_button_2_Template, 2, 1, "button", 16);
|
|
74
|
+
i0.ɵɵtemplate(3, NavMenuComponent_header_0_div_8_div_14_button_3_Template, 2, 2, "button", 17);
|
|
75
|
+
i0.ɵɵelementStart(4, "mat-menu", null, 18);
|
|
76
|
+
i0.ɵɵtemplate(6, NavMenuComponent_header_0_div_8_div_14_div_6_Template, 2, 1, "div", 15);
|
|
77
|
+
i0.ɵɵelementEnd();
|
|
78
|
+
i0.ɵɵelementEnd();
|
|
79
|
+
} if (rf & 2) {
|
|
80
|
+
var item_r5 = ctx.$implicit;
|
|
81
|
+
var ctx_r4 = i0.ɵɵnextContext(3);
|
|
82
|
+
i0.ɵɵadvance(1);
|
|
83
|
+
i0.ɵɵproperty("ngIf", ctx_r4.myRole[item_r5.name] && !item_r5.capSubItems && item_r5.showMenu);
|
|
84
|
+
i0.ɵɵadvance(1);
|
|
85
|
+
i0.ɵɵproperty("ngIf", ctx_r4.myRole[item_r5.name] && item_r5.capSubItems && item_r5.showMenu && item_r5.ignoreSubsDisplay);
|
|
86
|
+
i0.ɵɵadvance(1);
|
|
87
|
+
i0.ɵɵproperty("ngIf", ctx_r4.myRole[item_r5.name] && item_r5.capSubItems && item_r5.showMenu && !item_r5.ignoreSubsDisplay);
|
|
88
|
+
i0.ɵɵadvance(3);
|
|
89
|
+
i0.ɵɵproperty("ngForOf", item_r5.capSubItems);
|
|
90
|
+
} }
|
|
91
|
+
var _c0 = function (a0) { return { show: a0 }; };
|
|
92
|
+
function NavMenuComponent_header_0_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
93
|
+
var _r27 = i0.ɵɵgetCurrentView();
|
|
94
|
+
i0.ɵɵelementStart(0, "div", 9);
|
|
95
|
+
i0.ɵɵelementStart(1, "button", 10);
|
|
96
|
+
i0.ɵɵlistener("click", function NavMenuComponent_header_0_div_8_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r27); var ctx_r26 = i0.ɵɵnextContext(2); return ctx_r26.redirectTo("login"); });
|
|
97
|
+
i0.ɵɵelementStart(2, "mat-icon");
|
|
98
|
+
i0.ɵɵtext(3, "logout");
|
|
99
|
+
i0.ɵɵelementEnd();
|
|
100
|
+
i0.ɵɵelementEnd();
|
|
101
|
+
i0.ɵɵelementStart(4, "button", 11);
|
|
102
|
+
i0.ɵɵelementStart(5, "mat-icon");
|
|
103
|
+
i0.ɵɵtext(6, "account_circle");
|
|
104
|
+
i0.ɵɵelementEnd();
|
|
105
|
+
i0.ɵɵtext(7);
|
|
106
|
+
i0.ɵɵelementEnd();
|
|
107
|
+
i0.ɵɵelementStart(8, "mat-menu", null, 12);
|
|
108
|
+
i0.ɵɵelementStart(10, "button", 13);
|
|
109
|
+
i0.ɵɵlistener("click", function NavMenuComponent_header_0_div_8_Template_button_click_10_listener() { i0.ɵɵrestoreView(_r27); var ctx_r28 = i0.ɵɵnextContext(2); return ctx_r28.redirectTo("home/user/profile"); });
|
|
110
|
+
i0.ɵɵtext(11, "Profile");
|
|
111
|
+
i0.ɵɵelementEnd();
|
|
112
|
+
i0.ɵɵelementStart(12, "button", 14);
|
|
113
|
+
i0.ɵɵlistener("click", function NavMenuComponent_header_0_div_8_Template_button_click_12_listener() { i0.ɵɵrestoreView(_r27); var ctx_r29 = i0.ɵɵnextContext(2); return ctx_r29.redirectTo("login"); });
|
|
114
|
+
i0.ɵɵtext(13, "Log Off");
|
|
115
|
+
i0.ɵɵelementEnd();
|
|
116
|
+
i0.ɵɵelementEnd();
|
|
117
|
+
i0.ɵɵtemplate(14, NavMenuComponent_header_0_div_8_div_14_Template, 7, 4, "div", 15);
|
|
118
|
+
i0.ɵɵelementEnd();
|
|
119
|
+
} if (rf & 2) {
|
|
120
|
+
var _r3 = i0.ɵɵreference(9);
|
|
121
|
+
var ctx_r2 = i0.ɵɵnextContext(2);
|
|
122
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0, ctx_r2.isExpanded));
|
|
123
|
+
i0.ɵɵadvance(4);
|
|
124
|
+
i0.ɵɵproperty("matMenuTriggerFor", _r3);
|
|
125
|
+
i0.ɵɵadvance(3);
|
|
126
|
+
i0.ɵɵtextInterpolate1(" \u00A0", ctx_r2.loggedUserFullName, "");
|
|
127
|
+
i0.ɵɵadvance(7);
|
|
128
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.appConfig.capItems);
|
|
129
|
+
} }
|
|
130
|
+
function NavMenuComponent_header_0_Template(rf, ctx) { if (rf & 1) {
|
|
131
|
+
var _r31 = i0.ɵɵgetCurrentView();
|
|
132
|
+
i0.ɵɵelementStart(0, "header");
|
|
133
|
+
i0.ɵɵelementStart(1, "nav", 1);
|
|
134
|
+
i0.ɵɵelementStart(2, "div", 2);
|
|
135
|
+
i0.ɵɵtemplate(3, NavMenuComponent_header_0_img_3_Template, 1, 1, "img", 3);
|
|
136
|
+
i0.ɵɵelementStart(4, "div", 4);
|
|
137
|
+
i0.ɵɵtext(5);
|
|
138
|
+
i0.ɵɵelementEnd();
|
|
139
|
+
i0.ɵɵelementStart(6, "button", 5);
|
|
140
|
+
i0.ɵɵlistener("click", function NavMenuComponent_header_0_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r31); var ctx_r30 = i0.ɵɵnextContext(); return ctx_r30.toggle(); });
|
|
141
|
+
i0.ɵɵelement(7, "span", 6);
|
|
142
|
+
i0.ɵɵelementEnd();
|
|
143
|
+
i0.ɵɵtemplate(8, NavMenuComponent_header_0_div_8_Template, 15, 6, "div", 7);
|
|
144
|
+
i0.ɵɵelementEnd();
|
|
145
|
+
i0.ɵɵelementEnd();
|
|
146
|
+
i0.ɵɵelementEnd();
|
|
147
|
+
} if (rf & 2) {
|
|
148
|
+
var ctx_r0 = i0.ɵɵnextContext();
|
|
149
|
+
i0.ɵɵadvance(3);
|
|
150
|
+
i0.ɵɵproperty("ngIf", ctx_r0.appConfig.logo != "");
|
|
151
|
+
i0.ɵɵadvance(2);
|
|
152
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.appConfig.appName, " ");
|
|
153
|
+
i0.ɵɵadvance(1);
|
|
154
|
+
i0.ɵɵattribute("aria-expanded", ctx_r0.isExpanded);
|
|
155
|
+
i0.ɵɵadvance(2);
|
|
156
|
+
i0.ɵɵproperty("ngIf", ctx_r0.myRole);
|
|
157
|
+
} }
|
|
6
158
|
var NavMenuComponent = /** @class */ (function () {
|
|
7
159
|
function NavMenuComponent(router, authService) {
|
|
8
160
|
this.router = router;
|
|
@@ -33,21 +185,23 @@ var NavMenuComponent = /** @class */ (function () {
|
|
|
33
185
|
this.router.navigate([link]);
|
|
34
186
|
}
|
|
35
187
|
};
|
|
36
|
-
NavMenuComponent
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
], NavMenuComponent.prototype, "appConfig", void 0);
|
|
43
|
-
NavMenuComponent = __decorate([
|
|
44
|
-
Component({
|
|
45
|
-
selector: 'spa-nav-menu',
|
|
46
|
-
template: "<header *ngIf=\"loggedin\">\r\n <nav class=\"toolbar navbar navbar-expand-sm navbar-toggleable-sm navbar-light border-bottom box-shadow mb-3 \" style=\"padding-right: 10px;\">\r\n <div class=\"container-fluid\" style=\"padding-right: 0px;\">\r\n <!--<a class=\"navbar-brand\" [routerLink]=\"['/']\">Orbit</a>-->\r\n\r\n <img *ngIf=\"appConfig.logo!=''\" [src]=\"appConfig.logo\" style=\"height: 50px; margin-right: 2em\" />\r\n\r\n\r\n <div style=\"font-size: 20px;\">\r\n {{appConfig.appName}}\r\n </div>\r\n\r\n\r\n <button class=\"navbar-toggler\"\r\n type=\"button\"\r\n data-toggle=\"collapse\"\r\n data-target=\".navbar-collapse\"\r\n aria-label=\"Toggle navigation\"\r\n [attr.aria-expanded]=\"isExpanded\"\r\n (click)=\"toggle()\">\r\n <span class=\"navbar-toggler-icon\"></span>\r\n </button>\r\n\r\n <div *ngIf=\"myRole\" class=\"navbar-collapse collapse d-sm-inline-flex flex-sm-row-reverse stack-top\" style=\"margin-right: 0px;\" [ngClass]=\"{ show: isExpanded }\" >\r\n\r\n <button mat-icon-button (click)=\"redirectTo('login')\"> <mat-icon>logout</mat-icon> </button>\r\n\r\n <button id=\"btnUser\" mat-button [matMenuTriggerFor]=\"profileMenu\" style=\"margin-left:2em\"><mat-icon>account_circle</mat-icon> {{loggedUserFullName}}</button>\r\n\r\n <mat-menu #profileMenu=\"matMenu\">\r\n <button id=\"btnProfile\" mat-menu-item (click)=\"redirectTo('home/user/profile')\" >Profile</button>\r\n <button id=\"btnLogOff\" mat-menu-item (click)=\"redirectTo('login')\">Log Off</button>\r\n </mat-menu>\r\n\r\n <div *ngFor=\"let item of appConfig.capItems\">\r\n\r\n <!-- Menu Item -->\r\n <button id=\"btnMenu\" *ngIf=\"myRole[item.name] && !item.capSubItems && item.showMenu\" mat-button (click)=\"redirectTo(item.link)\">{{item.display}}</button>\r\n\r\n <!-- Menu Item with Sub items ignored -->\r\n <button id=\"btnMenu\" *ngIf=\"myRole[item.name] && item.capSubItems && item.showMenu && item.ignoreSubsDisplay\" mat-button (click)=\"redirectTo(item.link)\">{{item.display}}</button>\r\n\r\n <!-- Menu Item with Sub items to display-->\r\n <button id=\"btnMenu\" *ngIf=\"myRole[item.name] && item.capSubItems && item.showMenu && !item.ignoreSubsDisplay\" mat-button [matMenuTriggerFor]=\"adminMenu\">{{item.display}}</button>\r\n\r\n\r\n <!-- Sub Menu Items -->\r\n <mat-menu #adminMenu=\"matMenu\">\r\n\r\n <div *ngFor=\"let subItem of item.capSubItems\">\r\n\r\n <button *ngIf=\"myRole[subItem.name] && subItem.showMenu\" mat-menu-item (click)=\"redirectTo(subItem.link)\">{{subItem.display}}</button>\r\n\r\n </div>\r\n\r\n </mat-menu>\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </nav>\r\n</header>\r\n",
|
|
47
|
-
styles: ["a.navbar-brand{white-space:normal;text-align:center;word-break:break-all}html{font-size:14px}@media (min-width:768px){html{font-size:16px}}.box-shadow{box-shadow:0 .25rem .75rem rgba(0,0,0,.05)}.toolbar{height:60px;display:flex;align-items:center;background-color:#03a;color:#fff;font-weight:600}.stack-top{z-index:9;margin:20px}"]
|
|
48
|
-
})
|
|
49
|
-
], NavMenuComponent);
|
|
188
|
+
NavMenuComponent.ɵfac = function NavMenuComponent_Factory(t) { return new (t || NavMenuComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i2.AuthService)); };
|
|
189
|
+
NavMenuComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NavMenuComponent, selectors: [["spa-nav-menu"]], inputs: { appConfig: "appConfig" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "toolbar", "navbar", "navbar-expand-sm", "navbar-toggleable-sm", "navbar-light", "border-bottom", "box-shadow", "mb-3", 2, "padding-right", "10px"], [1, "container-fluid", 2, "padding-right", "0px"], ["style", "height: 50px; margin-right: 2em", 3, "src", 4, "ngIf"], [2, "font-size", "20px"], ["type", "button", "data-toggle", "collapse", "data-target", ".navbar-collapse", "aria-label", "Toggle navigation", 1, "navbar-toggler", 3, "click"], [1, "navbar-toggler-icon"], ["class", "navbar-collapse collapse d-sm-inline-flex flex-sm-row-reverse stack-top", "style", "margin-right: 0px;", 3, "ngClass", 4, "ngIf"], [2, "height", "50px", "margin-right", "2em", 3, "src"], [1, "navbar-collapse", "collapse", "d-sm-inline-flex", "flex-sm-row-reverse", "stack-top", 2, "margin-right", "0px", 3, "ngClass"], ["mat-icon-button", "", 3, "click"], ["id", "btnUser", "mat-button", "", 2, "margin-left", "2em", 3, "matMenuTriggerFor"], ["profileMenu", "matMenu"], ["id", "btnProfile", "mat-menu-item", "", 3, "click"], ["id", "btnLogOff", "mat-menu-item", "", 3, "click"], [4, "ngFor", "ngForOf"], ["id", "btnMenu", "mat-button", "", 3, "click", 4, "ngIf"], ["id", "btnMenu", "mat-button", "", 3, "matMenuTriggerFor", 4, "ngIf"], ["adminMenu", "matMenu"], ["id", "btnMenu", "mat-button", "", 3, "click"], ["id", "btnMenu", "mat-button", "", 3, "matMenuTriggerFor"], ["mat-menu-item", "", 3, "click", 4, "ngIf"], ["mat-menu-item", "", 3, "click"]], template: function NavMenuComponent_Template(rf, ctx) { if (rf & 1) {
|
|
190
|
+
i0.ɵɵtemplate(0, NavMenuComponent_header_0_Template, 9, 4, "header", 0);
|
|
191
|
+
} if (rf & 2) {
|
|
192
|
+
i0.ɵɵproperty("ngIf", ctx.loggedin);
|
|
193
|
+
} }, directives: [i3.NgIf, i3.NgClass, i4.MatButton, i5.MatIcon, i6.MatMenuTrigger, i6._MatMenu, i6.MatMenuItem, i3.NgForOf], styles: ["a.navbar-brand[_ngcontent-%COMP%]{white-space:normal;text-align:center;word-break:break-all}html[_ngcontent-%COMP%]{font-size:14px}@media (min-width:768px){html[_ngcontent-%COMP%]{font-size:16px}}.box-shadow[_ngcontent-%COMP%]{box-shadow:0 .25rem .75rem rgba(0,0,0,.05)}.toolbar[_ngcontent-%COMP%]{height:60px;display:flex;align-items:center;background-color:#03a;color:#fff;font-weight:600}.stack-top[_ngcontent-%COMP%]{z-index:9;margin:20px}"] });
|
|
50
194
|
return NavMenuComponent;
|
|
51
195
|
}());
|
|
52
196
|
export { NavMenuComponent };
|
|
53
|
-
|
|
197
|
+
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(NavMenuComponent, [{
|
|
198
|
+
type: Component,
|
|
199
|
+
args: [{
|
|
200
|
+
selector: 'spa-nav-menu',
|
|
201
|
+
templateUrl: './nav-menu.component.html',
|
|
202
|
+
styleUrls: ['./nav-menu.component.css']
|
|
203
|
+
}]
|
|
204
|
+
}], function () { return [{ type: i1.Router }, { type: i2.AuthService }]; }, { appConfig: [{
|
|
205
|
+
type: Input
|
|
206
|
+
}] }); })();
|
|
207
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF2LW1lbnUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vdGluLXNwYS8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL25hdi1tZW51L25hdi1tZW51LmNvbXBvbmVudC50cyIsImxpYi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uc2hvd01lbnUgJiYgIWl0ZW0uaWdub3JlU3Vic0Rpc3BsYXlcIiBtYXQtYnV0dG9uIFttYXRNZW51VHJpZ2dlckZvcl09XCJhZG1pbk1lbnVcIj57e2l0ZW0uZGlzcGxheX19PC9idXR0b24+XHJcblxyXG5cclxuICAgICAgICAgICAgPCEtLSBTdWIgTWVudSBJdGVtcyAtLT5cclxuICAgICAgICAgICAgPG1hdC1tZW51ICNhZG1pbk1lbnU9XCJtYXRNZW51XCI+XHJcblxyXG4gICAgICAgICAgICAgIDxkaXYgKm5nRm9yPVwibGV0IHN1Ykl0ZW0gb2YgaXRlbS5jYXBTdWJJdGVtc1wiPlxyXG5cclxuICAgICAgICAgICAgICAgIDxidXR0b24gKm5nSWY9XCJteVJvbGVbc3ViSXRlbS5uYW1lXSAmJiBzdWJJdGVtLnNob3dNZW51XCIgbWF0LW1lbnUtaXRlbSAoY2xpY2spPVwicmVkaXJlY3RUbyhzdWJJdGVtLmxpbmspXCI+e3tzdWJJdGVtLmRpc3BsYXl9fTwvYnV0dG9uPlxyXG5cclxuICAgICAgICAgICAgICA8L2Rpdj5cclxuXHJcbiAgICAgICAgICAgIDwvbWF0LW1lbnU+XHJcblxyXG4gICAgICAgICAgPC9kaXY+XHJcblxyXG4gICAgICAgIDwvZGl2PlxyXG5cclxuXHJcbiAgICAgIDwvZGl2PlxyXG5cclxuICA8L25hdj5cclxuPC9oZWFkZXI+XHJcbiJdfQ==
|
|
@@ -1,5 +1,60 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
1
|
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/material/checkbox";
|
|
4
|
+
import * as i2 from "@angular/forms";
|
|
5
|
+
import * as i3 from "@angular/material/form-field";
|
|
6
|
+
import * as i4 from "@angular/material/input";
|
|
7
|
+
import * as i5 from "@angular/common";
|
|
8
|
+
import * as i6 from "@angular/material/select";
|
|
9
|
+
import * as i7 from "@angular/material/core";
|
|
10
|
+
function OptionComponent_mat_form_field_4_Template(rf, ctx) { if (rf & 1) {
|
|
11
|
+
var _r3 = i0.ɵɵgetCurrentView();
|
|
12
|
+
i0.ɵɵelementStart(0, "mat-form-field", 5);
|
|
13
|
+
i0.ɵɵelementStart(1, "mat-label");
|
|
14
|
+
i0.ɵɵtext(2);
|
|
15
|
+
i0.ɵɵelementEnd();
|
|
16
|
+
i0.ɵɵelementStart(3, "input", 6);
|
|
17
|
+
i0.ɵɵlistener("ngModelChange", function OptionComponent_mat_form_field_4_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r3); var ctx_r2 = i0.ɵɵnextContext(); return ctx_r2.value = $event; })("change", function OptionComponent_mat_form_field_4_Template_input_change_3_listener() { i0.ɵɵrestoreView(_r3); var ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.changed(); })("keyup.enter", function OptionComponent_mat_form_field_4_Template_input_keyup_enter_3_listener() { i0.ɵɵrestoreView(_r3); var ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.changed(); });
|
|
18
|
+
i0.ɵɵelementEnd();
|
|
19
|
+
i0.ɵɵelementEnd();
|
|
20
|
+
} if (rf & 2) {
|
|
21
|
+
var ctx_r0 = i0.ɵɵnextContext();
|
|
22
|
+
i0.ɵɵadvance(2);
|
|
23
|
+
i0.ɵɵtextInterpolate(ctx_r0.display);
|
|
24
|
+
i0.ɵɵadvance(1);
|
|
25
|
+
i0.ɵɵproperty("ngModel", ctx_r0.value)("placeholder", "Enter " + ctx_r0.display);
|
|
26
|
+
} }
|
|
27
|
+
function OptionComponent_mat_form_field_5_mat_option_4_Template(rf, ctx) { if (rf & 1) {
|
|
28
|
+
i0.ɵɵelementStart(0, "mat-option", 10);
|
|
29
|
+
i0.ɵɵtext(1);
|
|
30
|
+
i0.ɵɵelementEnd();
|
|
31
|
+
} if (rf & 2) {
|
|
32
|
+
var row_r7 = ctx.$implicit;
|
|
33
|
+
var ctx_r6 = i0.ɵɵnextContext(2);
|
|
34
|
+
i0.ɵɵproperty("value", row_r7[ctx_r6.optionValue]);
|
|
35
|
+
i0.ɵɵadvance(1);
|
|
36
|
+
i0.ɵɵtextInterpolate1(" ", row_r7[ctx_r6.optionDisplay], " ");
|
|
37
|
+
} }
|
|
38
|
+
function OptionComponent_mat_form_field_5_Template(rf, ctx) { if (rf & 1) {
|
|
39
|
+
var _r9 = i0.ɵɵgetCurrentView();
|
|
40
|
+
i0.ɵɵelementStart(0, "mat-form-field", 7);
|
|
41
|
+
i0.ɵɵelementStart(1, "mat-label");
|
|
42
|
+
i0.ɵɵtext(2);
|
|
43
|
+
i0.ɵɵelementEnd();
|
|
44
|
+
i0.ɵɵelementStart(3, "mat-select", 8);
|
|
45
|
+
i0.ɵɵlistener("valueChange", function OptionComponent_mat_form_field_5_Template_mat_select_valueChange_3_listener($event) { i0.ɵɵrestoreView(_r9); var ctx_r8 = i0.ɵɵnextContext(); return ctx_r8.value = $event; })("selectionChange", function OptionComponent_mat_form_field_5_Template_mat_select_selectionChange_3_listener() { i0.ɵɵrestoreView(_r9); var ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.changed(); });
|
|
46
|
+
i0.ɵɵtemplate(4, OptionComponent_mat_form_field_5_mat_option_4_Template, 2, 2, "mat-option", 9);
|
|
47
|
+
i0.ɵɵelementEnd();
|
|
48
|
+
i0.ɵɵelementEnd();
|
|
49
|
+
} if (rf & 2) {
|
|
50
|
+
var ctx_r1 = i0.ɵɵnextContext();
|
|
51
|
+
i0.ɵɵadvance(2);
|
|
52
|
+
i0.ɵɵtextInterpolate(ctx_r1.display);
|
|
53
|
+
i0.ɵɵadvance(1);
|
|
54
|
+
i0.ɵɵproperty("value", ctx_r1.value)("placeholder", "Select " + ctx_r1.display)("disabled", ctx_r1.readonly);
|
|
55
|
+
i0.ɵɵadvance(1);
|
|
56
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.options);
|
|
57
|
+
} }
|
|
3
58
|
var OptionComponent = /** @class */ (function () {
|
|
4
59
|
function OptionComponent() {
|
|
5
60
|
this.optionValue = "";
|
|
@@ -12,6 +67,7 @@ var OptionComponent = /** @class */ (function () {
|
|
|
12
67
|
this.enterPress = new EventEmitter();
|
|
13
68
|
}
|
|
14
69
|
OptionComponent.prototype.ngOnInit = function () {
|
|
70
|
+
this.OGValue = this.value;
|
|
15
71
|
};
|
|
16
72
|
OptionComponent.prototype.changed = function () {
|
|
17
73
|
this.valueChange.emit(this.value);
|
|
@@ -20,44 +76,56 @@ var OptionComponent = /** @class */ (function () {
|
|
|
20
76
|
this.valueChange.emit();
|
|
21
77
|
};
|
|
22
78
|
OptionComponent.prototype.resetValue = function () {
|
|
23
|
-
this.value =
|
|
79
|
+
this.value = this.OGValue;
|
|
24
80
|
this.changed();
|
|
25
81
|
};
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
], OptionComponent.prototype, "show", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
Output()
|
|
49
|
-
], OptionComponent.prototype, "valueChange", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
Output()
|
|
52
|
-
], OptionComponent.prototype, "enterPress", void 0);
|
|
53
|
-
OptionComponent = __decorate([
|
|
54
|
-
Component({
|
|
55
|
-
selector: 'spa-option',
|
|
56
|
-
template: "\r\n<mat-checkbox color=\"primary\" style=\"margin-right:5px\" [(ngModel)]=\"show\" (change)=\"resetValue()\" labelPosition=\"after\">{{display}}</mat-checkbox>\r\n\r\n<mat-form-field style=\"margin-right:10px;width: 0px;\" >\r\n<input matInput />\r\n</mat-form-field>\r\n\r\n<mat-form-field style=\"margin-right:30px\" *ngIf=\"show && !options\">\r\n<input matInput [(ngModel)]=\"value\" width=\"100\" (change)=\"changed()\" (keyup.enter)=\"changed()\" [placeholder]=\"'Enter ' + display\" autocomplete=\"off\" />\r\n</mat-form-field>\r\n\r\n\r\n<mat-form-field style=\"margin-right: 20px;\" width=\"100\" *ngIf=\"show && options\">\r\n <mat-label>{{display}}</mat-label>\r\n <mat-select [(value)]=\"value\" (selectionChange)=\"changed()\" [disabled]=\"readonly\" >\r\n <mat-option *ngFor=\"let row of options\" [value]=\"row[optionValue]\">\r\n {{row[optionDisplay]}}\r\n </mat-option>\r\n </mat-select>\r\n</mat-form-field>\r\n\r\n<!-- <spa-text *ngIf=\"show\" style=\"margin-right:30px\" [display]=\"'Enter ' + display\" (enterPress)=\"enterPressed()\" (valueChange)=\"changed($event.target.value)\" width=\"100\" [required]=\"false\" [(value)]=\"value\" ></spa-text> -->\r\n\r\n",
|
|
57
|
-
styles: [""]
|
|
58
|
-
})
|
|
59
|
-
], OptionComponent);
|
|
82
|
+
OptionComponent.ɵfac = function OptionComponent_Factory(t) { return new (t || OptionComponent)(); };
|
|
83
|
+
OptionComponent.ɵcmp = i0.ɵɵdefineComponent({ type: OptionComponent, selectors: [["spa-option"]], inputs: { options: "options", optionValue: "optionValue", optionDisplay: "optionDisplay", readonly: "readonly", value: "value", display: "display", show: "show" }, outputs: { valueChange: "valueChange", enterPress: "enterPress" }, decls: 6, vars: 4, consts: [["color", "primary", "labelPosition", "after", 2, "margin-right", "5px", 3, "ngModel", "ngModelChange", "change"], [2, "margin-right", "10px", "width", "0px"], ["matInput", ""], ["style", "margin-right:30px", 4, "ngIf"], ["style", "margin-right: 20px;", "floatLabel", "always", "width", "100", 4, "ngIf"], [2, "margin-right", "30px"], ["matInput", "", "width", "100", "autocomplete", "off", 3, "ngModel", "placeholder", "ngModelChange", "change", "keyup.enter"], ["floatLabel", "always", "width", "100", 2, "margin-right", "20px"], [3, "value", "placeholder", "disabled", "valueChange", "selectionChange"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"]], template: function OptionComponent_Template(rf, ctx) { if (rf & 1) {
|
|
84
|
+
i0.ɵɵelementStart(0, "mat-checkbox", 0);
|
|
85
|
+
i0.ɵɵlistener("ngModelChange", function OptionComponent_Template_mat_checkbox_ngModelChange_0_listener($event) { return ctx.show = $event; })("change", function OptionComponent_Template_mat_checkbox_change_0_listener() { return ctx.resetValue(); });
|
|
86
|
+
i0.ɵɵtext(1);
|
|
87
|
+
i0.ɵɵelementEnd();
|
|
88
|
+
i0.ɵɵelementStart(2, "mat-form-field", 1);
|
|
89
|
+
i0.ɵɵelement(3, "input", 2);
|
|
90
|
+
i0.ɵɵelementEnd();
|
|
91
|
+
i0.ɵɵtemplate(4, OptionComponent_mat_form_field_4_Template, 4, 3, "mat-form-field", 3);
|
|
92
|
+
i0.ɵɵtemplate(5, OptionComponent_mat_form_field_5_Template, 5, 5, "mat-form-field", 4);
|
|
93
|
+
} if (rf & 2) {
|
|
94
|
+
i0.ɵɵproperty("ngModel", ctx.show);
|
|
95
|
+
i0.ɵɵadvance(1);
|
|
96
|
+
i0.ɵɵtextInterpolate(ctx.display);
|
|
97
|
+
i0.ɵɵadvance(3);
|
|
98
|
+
i0.ɵɵproperty("ngIf", ctx.show && !ctx.options);
|
|
99
|
+
i0.ɵɵadvance(1);
|
|
100
|
+
i0.ɵɵproperty("ngIf", ctx.show && ctx.options);
|
|
101
|
+
} }, directives: [i1.MatCheckbox, i2.NgControlStatus, i2.NgModel, i3.MatFormField, i4.MatInput, i5.NgIf, i3.MatLabel, i2.DefaultValueAccessor, i6.MatSelect, i5.NgForOf, i7.MatOption], styles: [""] });
|
|
60
102
|
return OptionComponent;
|
|
61
103
|
}());
|
|
62
104
|
export { OptionComponent };
|
|
63
|
-
|
|
105
|
+
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(OptionComponent, [{
|
|
106
|
+
type: Component,
|
|
107
|
+
args: [{
|
|
108
|
+
selector: 'spa-option',
|
|
109
|
+
templateUrl: './option.component.html',
|
|
110
|
+
styleUrls: ['./option.component.css']
|
|
111
|
+
}]
|
|
112
|
+
}], function () { return []; }, { options: [{
|
|
113
|
+
type: Input
|
|
114
|
+
}], optionValue: [{
|
|
115
|
+
type: Input
|
|
116
|
+
}], optionDisplay: [{
|
|
117
|
+
type: Input
|
|
118
|
+
}], readonly: [{
|
|
119
|
+
type: Input
|
|
120
|
+
}], value: [{
|
|
121
|
+
type: Input
|
|
122
|
+
}], display: [{
|
|
123
|
+
type: Input
|
|
124
|
+
}], show: [{
|
|
125
|
+
type: Input
|
|
126
|
+
}], valueChange: [{
|
|
127
|
+
type: Output
|
|
128
|
+
}], enterPress: [{
|
|
129
|
+
type: Output
|
|
130
|
+
}] }); })();
|
|
131
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3B0aW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL3Rpbi1zcGEvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9vcHRpb24vb3B0aW9uLmNvbXBvbmVudC50cyIsImxpYi9jb21wb25lbnRzL29wdGlvbi9vcHRpb24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFVLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQzs7Ozs7Ozs7Ozs7SUNTL0UseUNBQ0E7SUFBQSxpQ0FBVztJQUFBLFlBQVc7SUFBQSxpQkFBWTtJQUNsQyxnQ0FDQTtJQURnQixtTkFBbUIsNktBQUEsdUxBQUE7SUFBbkMsaUJBQ0E7SUFBQSxpQkFBaUI7OztJQUZOLGVBQVc7SUFBWCxvQ0FBVztJQUNOLGVBQW1CO0lBQW5CLHNDQUFtQiwwQ0FBQTs7O0lBTy9CLHNDQUNFO0lBQUEsWUFDRjtJQUFBLGlCQUFhOzs7O0lBRjJCL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