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
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import { CurrencyInputMaskDirective } from './currency-input-mask.directive';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export class CurrencyInputModule {
|
|
7
|
+
}
|
|
8
|
+
CurrencyInputModule.ɵmod = i0.ɵɵdefineNgModule({ type: CurrencyInputModule });
|
|
9
|
+
CurrencyInputModule.ɵinj = i0.ɵɵdefineInjector({ factory: function CurrencyInputModule_Factory(t) { return new (t || CurrencyInputModule)(); }, imports: [[
|
|
10
|
+
CommonModule,
|
|
11
|
+
FormsModule
|
|
12
|
+
]] });
|
|
13
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CurrencyInputModule, { declarations: [CurrencyInputMaskDirective], imports: [CommonModule,
|
|
14
|
+
FormsModule], exports: [CurrencyInputMaskDirective] }); })();
|
|
15
|
+
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(CurrencyInputModule, [{
|
|
16
|
+
type: NgModule,
|
|
17
|
+
args: [{
|
|
18
|
+
imports: [
|
|
19
|
+
CommonModule,
|
|
20
|
+
FormsModule
|
|
21
|
+
],
|
|
22
|
+
declarations: [
|
|
23
|
+
CurrencyInputMaskDirective
|
|
24
|
+
],
|
|
25
|
+
exports: [
|
|
26
|
+
CurrencyInputMaskDirective
|
|
27
|
+
]
|
|
28
|
+
}]
|
|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eyBGb3Jtc01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2Zvcm1zJztcclxuXHJcbmltcG9ydCB7IEN1cnJlbmN5SW5wdXRNYXNrRGlyZWN0aXZlIH0gZnJvbSAnLi9jdXJyZW5jeS1pbnB1dC1tYXNrLmRpcmVjdGl2ZSc7XHJcblxyXG5ATmdNb2R1bGUoe1xyXG4gIGltcG9ydHM6IFtcclxuICAgIENvbW1vbk1vZHVsZSxcclxuICAgIEZvcm1zTW9kdWxlXHJcbiAgXSxcclxuICBkZWNsYXJhdGlvbnM6IFtcclxuICAgIEN1cnJlbmN5SW5wdXRNYXNrRGlyZWN0aXZlXHJcbiAgXSxcclxuICBleHBvcnRzOiBbXHJcbiAgICBDdXJyZW5jeUlucHV0TWFza0RpcmVjdGl2ZVxyXG4gIF1cclxufSlcclxuZXhwb3J0IGNsYXNzIEN1cnJlbmN5SW5wdXRNb2R1bGUge1xyXG59XHJcbiJdfQ==
|
|
@@ -1,50 +1,152 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
1
|
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
3
|
-
|
|
2
|
+
import { FormControl, Validators } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/material/form-field";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
import * as i3 from "@angular/material/input";
|
|
7
|
+
import * as i4 from "@angular/forms";
|
|
8
|
+
import * as i5 from "./currency-input-mask.directive";
|
|
9
|
+
function MoneyComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
10
|
+
i0.ɵɵelementStart(0, "span", 4);
|
|
11
|
+
i0.ɵɵtext(1);
|
|
12
|
+
i0.ɵɵelementEnd();
|
|
13
|
+
} if (rf & 2) {
|
|
14
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
15
|
+
i0.ɵɵadvance(1);
|
|
16
|
+
i0.ɵɵtextInterpolate1("", ctx_r0.currency, "\u00A0");
|
|
17
|
+
} }
|
|
18
|
+
function MoneyComponent_mat_error_5_Template(rf, ctx) { if (rf & 1) {
|
|
19
|
+
i0.ɵɵelementStart(0, "mat-error");
|
|
20
|
+
i0.ɵɵtext(1);
|
|
21
|
+
i0.ɵɵelementEnd();
|
|
22
|
+
} if (rf & 2) {
|
|
23
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
24
|
+
i0.ɵɵadvance(1);
|
|
25
|
+
i0.ɵɵtextInterpolate(ctx_r1.validate(ctx_r1.control));
|
|
26
|
+
} }
|
|
27
|
+
const _c0 = function (a0) { return { "width": a0 }; };
|
|
28
|
+
export class MoneyComponent {
|
|
4
29
|
constructor() {
|
|
5
30
|
this.readonly = false;
|
|
31
|
+
this.hint = "";
|
|
6
32
|
this.display = "";
|
|
33
|
+
this.placeholder = "";
|
|
7
34
|
this.value = "";
|
|
8
|
-
this.valueChange = new EventEmitter();
|
|
9
35
|
this.width = "100%";
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
36
|
+
this.currency = "";
|
|
37
|
+
this.valueChange = new EventEmitter();
|
|
38
|
+
this.leave = new EventEmitter();
|
|
39
|
+
this.enterPress = new EventEmitter();
|
|
40
|
+
//validation input
|
|
41
|
+
this.required = true;
|
|
42
|
+
this.min = 0;
|
|
43
|
+
this.max = 9000000000000000; //Math.max 9000000000000000
|
|
44
|
+
//validation
|
|
45
|
+
this.control = new FormControl(this.value, [Validators.required, Validators.min(this.min), Validators.max(this.max)]);
|
|
12
46
|
}
|
|
13
47
|
ngOnInit() {
|
|
48
|
+
if (this.placeholder == "") {
|
|
49
|
+
this.placeholder = "Enter " + this.display;
|
|
50
|
+
}
|
|
14
51
|
}
|
|
15
52
|
ngOnChanges() {
|
|
16
53
|
}
|
|
17
|
-
|
|
18
|
-
this.
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
54
|
+
ngAfterViewInit() {
|
|
55
|
+
this.initControl(this.control);
|
|
56
|
+
}
|
|
57
|
+
initControl(control) {
|
|
58
|
+
if (this.readonly) {
|
|
59
|
+
control.setValidators(null);
|
|
60
|
+
control.updateValueAndValidity();
|
|
61
|
+
}
|
|
62
|
+
if (!this.required && !this.readonly) {
|
|
63
|
+
control.setValidators([Validators.min(this.min), Validators.max(this.max)]);
|
|
64
|
+
this.control.updateValueAndValidity();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
changed(x) {
|
|
68
|
+
this.valueChange.emit(x);
|
|
69
|
+
}
|
|
70
|
+
leaved() {
|
|
71
|
+
this.leave.emit();
|
|
72
|
+
}
|
|
73
|
+
enterPressed() {
|
|
74
|
+
this.enterPress.emit();
|
|
75
|
+
}
|
|
76
|
+
validate(control) {
|
|
77
|
+
if (this.required && control.hasError('required')) {
|
|
78
|
+
return `Required`;
|
|
79
|
+
}
|
|
80
|
+
if (parseFloat(this.value) < this.min) {
|
|
81
|
+
return `Minimun value is ${this.min}`;
|
|
82
|
+
}
|
|
83
|
+
if (parseFloat(this.value) > this.max) {
|
|
84
|
+
return `Maximum value is ${this.max}`;
|
|
85
|
+
}
|
|
86
|
+
if (control.hasError('min')) {
|
|
87
|
+
return `Minimun value is ${this.min}`;
|
|
88
|
+
}
|
|
89
|
+
if (control.hasError('max')) {
|
|
90
|
+
return `Maximum value is ${this.max}`;
|
|
91
|
+
}
|
|
92
|
+
return "";
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
MoneyComponent.ɵfac = function MoneyComponent_Factory(t) { return new (t || MoneyComponent)(); };
|
|
96
|
+
MoneyComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MoneyComponent, selectors: [["spa-money"]], inputs: { readonly: "readonly", hint: "hint", display: "display", placeholder: "placeholder", value: "value", width: "width", currency: "currency", required: "required", min: "min", max: "max" }, outputs: { valueChange: "valueChange", leave: "leave", enterPress: "enterPress" }, features: [i0.ɵɵNgOnChangesFeature], decls: 6, vars: 13, consts: [["hideRequiredMarker", "true", "hideRequiredMarker", "true", 2, "margin-right", "5px", 3, "hintLabel", "ngStyle"], ["matInput", "", "appCurrencyInputMask", "", "autocomplete", "off", 2, "text-align", "right", 3, "min", "max", "ngModel", "placeholder", "formControl", "readonly", "ngModelChange", "keyup.enter", "blur"], ["matPrefix", "", 4, "ngIf"], [4, "ngIf"], ["matPrefix", ""]], template: function MoneyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
97
|
+
i0.ɵɵelementStart(0, "mat-form-field", 0);
|
|
98
|
+
i0.ɵɵelementStart(1, "mat-label");
|
|
99
|
+
i0.ɵɵtext(2);
|
|
100
|
+
i0.ɵɵelementEnd();
|
|
101
|
+
i0.ɵɵelementStart(3, "input", 1);
|
|
102
|
+
i0.ɵɵlistener("ngModelChange", function MoneyComponent_Template_input_ngModelChange_3_listener($event) { return ctx.changed($event); })("keyup.enter", function MoneyComponent_Template_input_keyup_enter_3_listener() { return ctx.enterPressed(); })("blur", function MoneyComponent_Template_input_blur_3_listener() { return ctx.leaved(); });
|
|
103
|
+
i0.ɵɵelementEnd();
|
|
104
|
+
i0.ɵɵtemplate(4, MoneyComponent_span_4_Template, 2, 1, "span", 2);
|
|
105
|
+
i0.ɵɵtemplate(5, MoneyComponent_mat_error_5_Template, 2, 1, "mat-error", 3);
|
|
106
|
+
i0.ɵɵelementEnd();
|
|
107
|
+
} if (rf & 2) {
|
|
108
|
+
i0.ɵɵproperty("hintLabel", ctx.hint)("ngStyle", i0.ɵɵpureFunction1(11, _c0, ctx.width));
|
|
109
|
+
i0.ɵɵadvance(2);
|
|
110
|
+
i0.ɵɵtextInterpolate(ctx.display);
|
|
111
|
+
i0.ɵɵadvance(1);
|
|
112
|
+
i0.ɵɵproperty("min", ctx.min)("max", ctx.max)("ngModel", ctx.value)("placeholder", ctx.placeholder)("formControl", ctx.control)("readonly", ctx.readonly);
|
|
113
|
+
i0.ɵɵadvance(1);
|
|
114
|
+
i0.ɵɵproperty("ngIf", ctx.currency != "");
|
|
115
|
+
i0.ɵɵadvance(1);
|
|
116
|
+
i0.ɵɵproperty("ngIf", ctx.control.invalid);
|
|
117
|
+
} }, directives: [i1.MatFormField, i2.NgStyle, i1.MatLabel, i3.MatInput, i4.DefaultValueAccessor, i5.CurrencyInputMaskDirective, i4.NgControlStatus, i4.FormControlDirective, i2.NgIf, i1.MatPrefix, i1.MatError], styles: ["input.example-right-align[_ngcontent-%COMP%]{-moz-appearance:textfield}.example-right-align[_ngcontent-%COMP%]{text-align:right}input.example-right-align[_ngcontent-%COMP%]::-webkit-inner-spin-button, input.example-right-align[_ngcontent-%COMP%]::-webkit-outer-spin-button{display:none}.curr[_ngcontent-%COMP%]{background-color:red}"] });
|
|
118
|
+
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MoneyComponent, [{
|
|
119
|
+
type: Component,
|
|
120
|
+
args: [{
|
|
121
|
+
selector: 'spa-money',
|
|
122
|
+
templateUrl: './money.component.html',
|
|
123
|
+
styleUrls: ['./money.component.css']
|
|
124
|
+
}]
|
|
125
|
+
}], function () { return []; }, { readonly: [{
|
|
126
|
+
type: Input
|
|
127
|
+
}], hint: [{
|
|
128
|
+
type: Input
|
|
129
|
+
}], display: [{
|
|
130
|
+
type: Input
|
|
131
|
+
}], placeholder: [{
|
|
132
|
+
type: Input
|
|
133
|
+
}], value: [{
|
|
134
|
+
type: Input
|
|
135
|
+
}], width: [{
|
|
136
|
+
type: Input
|
|
137
|
+
}], currency: [{
|
|
138
|
+
type: Input
|
|
139
|
+
}], valueChange: [{
|
|
140
|
+
type: Output
|
|
141
|
+
}], leave: [{
|
|
142
|
+
type: Output
|
|
143
|
+
}], enterPress: [{
|
|
144
|
+
type: Output
|
|
145
|
+
}], required: [{
|
|
146
|
+
type: Input
|
|
147
|
+
}], min: [{
|
|
148
|
+
type: Input
|
|
149
|
+
}], max: [{
|
|
150
|
+
type: Input
|
|
151
|
+
}] }); })();
|
|
152
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9uZXkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vdGluLXNwYS8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL21vbmV5L21vbmV5LmNvbXBvbmVudC50cyIsImxpYi9jb21wb25lbnRzL21vbmV5L21vbmV5LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDL0UsT0FBTyxFQUFFLFdBQVcsRUFBRSxVQUFVLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQzs7Ozs7Ozs7SUNNdkQsK0JBQXFDO0lBQUEsWUFBa0I7SUFBQSxpQkFBTzs7O0lBQXpCLGVBQWtCO0lBQWxCLG9EQUFrQjs7O0lBQ3ZELGlDQUFtQztJQUFBLFlBQXFCO0lBQUEsaUJBQVk7OztJQUFqQyxlQUFxQjtJQUFyQixxREFBcUI7OztBREExRCxNQUFNLE9BQU8sY0FBYztJQUV6QjtRQTRCUyxhQUFRLEdBQUcsS0FBSyxDQUFDO1FBQ2pCLFNBQUksR0FBRyxFQUFFLENBQUM7UUFDVixZQUFPLEdBQUcsRUFBRSxDQUFDO1FBQ2IsZ0JBQVcsR0FBRyxFQUFFLENBQUM7UUFDakIsVUFBSyxHQUFHLEVBQUUsQ0FBQztRQUNYLFV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es/Classes';
|
|
3
2
|
import { Component, Input } from '@angular/core';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
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
|
+
const 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
|
+
const _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); const item_r5 = i0.ɵɵnextContext().$implicit; const ctx_r11 = i0.ɵɵnextContext(3); return ctx_r11.redirectTo(item_r5.link); });
|
|
20
|
+
i0.ɵɵtext(1);
|
|
21
|
+
i0.ɵɵelementEnd();
|
|
22
|
+
} if (rf & 2) {
|
|
23
|
+
const 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
|
+
const _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); const item_r5 = i0.ɵɵnextContext().$implicit; const ctx_r15 = i0.ɵɵnextContext(3); return ctx_r15.redirectTo(item_r5.link); });
|
|
31
|
+
i0.ɵɵtext(1);
|
|
32
|
+
i0.ɵɵelementEnd();
|
|
33
|
+
} if (rf & 2) {
|
|
34
|
+
const 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
|
+
const item_r5 = i0.ɵɵnextContext().$implicit;
|
|
44
|
+
const _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
|
+
const _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); const subItem_r20 = i0.ɵɵnextContext().$implicit; const ctx_r22 = i0.ɵɵnextContext(4); return ctx_r22.redirectTo(subItem_r20.link); });
|
|
53
|
+
i0.ɵɵtext(1);
|
|
54
|
+
i0.ɵɵelementEnd();
|
|
55
|
+
} if (rf & 2) {
|
|
56
|
+
const 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
|
+
const subItem_r20 = ctx.$implicit;
|
|
66
|
+
const 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
|
+
const item_r5 = ctx.$implicit;
|
|
81
|
+
const 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
|
+
const _c0 = function (a0) { return { show: a0 }; };
|
|
92
|
+
function NavMenuComponent_header_0_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
93
|
+
const _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); const 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); const 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); const 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
|
+
const _r3 = i0.ɵɵreference(9);
|
|
121
|
+
const 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
|
+
const _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); const 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
|
+
const 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
|
+
} }
|
|
158
|
+
export class NavMenuComponent {
|
|
7
159
|
constructor(router, authService) {
|
|
8
160
|
this.router = router;
|
|
9
161
|
this.authService = authService;
|
|
@@ -32,20 +184,21 @@ let NavMenuComponent = class NavMenuComponent {
|
|
|
32
184
|
this.router.navigate([link]);
|
|
33
185
|
}
|
|
34
186
|
}
|
|
35
|
-
}
|
|
36
|
-
NavMenuComponent
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
],
|
|
50
|
-
|
|
51
|
-
|
|
187
|
+
}
|
|
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}"] });
|
|
194
|
+
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(NavMenuComponent, [{
|
|
195
|
+
type: Component,
|
|
196
|
+
args: [{
|
|
197
|
+
selector: 'spa-nav-menu',
|
|
198
|
+
templateUrl: './nav-menu.component.html',
|
|
199
|
+
styleUrls: ['./nav-menu.component.css']
|
|
200
|
+
}]
|
|
201
|
+
}], function () { return [{ type: i1.Router }, { type: i2.AuthService }]; }, { appConfig: [{
|
|
202
|
+
type: Input
|
|
203
|
+
}] }); })();
|
|
204
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF2LW1lbnUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vdGluLXNwYS8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL25hdi1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