sgh-navbar 0.0.44 → 0.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{esm2020 → esm2022}/lib/sgh-navbar.component.mjs +15 -15
- package/{esm2020 → esm2022}/lib/sgh-navbar.module.mjs +77 -77
- package/{esm2020 → esm2022}/lib/sgh-navbar.service.mjs +36 -36
- package/{esm2020 → esm2022}/lib/sidenav/helper.mjs +11 -11
- package/esm2022/lib/sidenav/menu-list-item/menu-list-item.component.mjs +46 -0
- package/{esm2020 → esm2022}/lib/sidenav/nav-data.mjs +96 -96
- package/{esm2020 → esm2022}/lib/sidenav/sidenav-data.mjs +2 -2
- package/esm2022/lib/sidenav/sidenav.component.mjs +112 -0
- package/esm2022/lib/sidenav/sublevel-menu.component.mjs +168 -0
- package/{esm2020 → esm2022}/lib/toolbar/noftification-list/noftification-list.component.mjs +14 -14
- package/esm2022/lib/toolbar/search.pipe.mjs +21 -0
- package/esm2022/lib/toolbar/sub-client-dialog/sub-client-dialog.component.mjs +47 -0
- package/{esm2020 → esm2022}/lib/toolbar/toolbar-data.mjs +8 -8
- package/esm2022/lib/toolbar/toolbar.component.mjs +214 -0
- package/{esm2020 → esm2022}/public-api.mjs +9 -9
- package/{esm2020 → esm2022}/sgh-navbar.mjs +4 -4
- package/{fesm2020 → fesm2022}/sgh-navbar.mjs +693 -693
- package/fesm2022/sgh-navbar.mjs.map +1 -0
- package/index.d.ts +5 -5
- package/lib/sgh-navbar.component.d.ts +8 -8
- package/lib/sgh-navbar.module.d.ts +21 -21
- package/lib/sgh-navbar.service.d.ts +15 -15
- package/lib/sidenav/helper.d.ts +10 -10
- package/lib/sidenav/menu-list-item/menu-list-item.component.d.ts +16 -16
- package/lib/sidenav/nav-data.d.ts +2 -2
- package/lib/sidenav/sidenav-data.d.ts +11 -11
- package/lib/sidenav/sidenav.component.d.ts +25 -25
- package/lib/sidenav/sublevel-menu.component.d.ts +18 -18
- package/lib/toolbar/noftification-list/noftification-list.component.d.ts +8 -8
- package/lib/toolbar/search.pipe.d.ts +7 -7
- package/lib/toolbar/sub-client-dialog/sub-client-dialog.component.d.ts +19 -19
- package/lib/toolbar/toolbar-data.d.ts +32 -32
- package/lib/toolbar/toolbar.component.d.ts +41 -41
- package/package.json +7 -13
- package/public-api.d.ts +6 -6
- package/esm2020/lib/sidenav/menu-list-item/menu-list-item.component.mjs +0 -46
- package/esm2020/lib/sidenav/sidenav.component.mjs +0 -112
- package/esm2020/lib/sidenav/sublevel-menu.component.mjs +0 -168
- package/esm2020/lib/toolbar/search.pipe.mjs +0 -21
- package/esm2020/lib/toolbar/sub-client-dialog/sub-client-dialog.component.mjs +0 -47
- package/esm2020/lib/toolbar/toolbar.component.mjs +0 -214
- package/fesm2015/sgh-navbar.mjs +0 -837
- package/fesm2015/sgh-navbar.mjs.map +0 -1
- package/fesm2020/sgh-navbar.mjs.map +0 -1
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Inject, Output } from '@angular/core';
|
|
2
|
-
import { MAT_DIALOG_DATA } from "@angular/material/dialog";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/material/dialog";
|
|
5
|
-
import * as i2 from "../../sgh-navbar.service";
|
|
6
|
-
import * as i3 from "@angular/common";
|
|
7
|
-
import * as i4 from "@angular/material/radio";
|
|
8
|
-
export class SubClientDialogComponent {
|
|
9
|
-
constructor(data, dialogRef, sghNavbarService) {
|
|
10
|
-
this.data = data;
|
|
11
|
-
this.dialogRef = dialogRef;
|
|
12
|
-
this.sghNavbarService = sghNavbarService;
|
|
13
|
-
this.subClient = new EventEmitter();
|
|
14
|
-
this.client = data.client;
|
|
15
|
-
this.subClientList = data.client.subClientList;
|
|
16
|
-
// find the selected sub client
|
|
17
|
-
let selectedSubClientIndex = this.subClientList.findIndex((subClient) => subClient.checked == true);
|
|
18
|
-
this.selectedSubClient = this.subClientList[selectedSubClientIndex];
|
|
19
|
-
}
|
|
20
|
-
onSubClientSelect(item) {
|
|
21
|
-
// update the sub client list with newly selected values
|
|
22
|
-
this.subClientList.forEach((subClient) => {
|
|
23
|
-
if (subClient == item) {
|
|
24
|
-
subClient.checked = true;
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
subClient.checked = false;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
this.selectedSubClient = item;
|
|
31
|
-
}
|
|
32
|
-
onSelectBtnClick() {
|
|
33
|
-
this.dialogRef.close({ data: { selectedSubClient: this.selectedSubClient } });
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
SubClientDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SubClientDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }, { token: i2.SghNavbarService }], target: i0.ɵɵFactoryTarget.Component });
|
|
37
|
-
SubClientDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SubClientDialogComponent, selector: "lib-subclient-dialog", outputs: { subClient: "subClient" }, ngImport: i0, template: "<div class=\"subclientlist-wrapper dialog-wrapper\">\r\n <h4 class=\"subclientlist-header\">Select Sub Client</h4>\r\n <div class=\"subclientlist-body\">\r\n <div>\r\n <mat-radio-group class=\"subclientlist-radiogrp\" aria-label=\"Select an option\">\r\n <mat-radio-button [value]=\"item.value\" *ngFor=\"let item of subClientList;index as i\" (click)=\"onSubClientSelect(item)\" [checked]=\"item.checked\">{{item.text}}</mat-radio-button>\r\n </mat-radio-group>\r\n </div>\r\n </div>\r\n <div class=\"subclientlist-btns\">\r\n <button class=\"sgh-btn-primary\" (click)=\"onSelectBtnClick()\">Select</button>\r\n </div>\r\n</div>\r\n\r\n", styles: [".subclientlist-wrapper .subclientlist-header{font-weight:500;line-height:48px;display:flex;justify-content:center;align-items:center;padding-bottom:0;margin:0}.subclientlist-wrapper .subclientlist-body{font-weight:400;text-align:center;color:#000;padding:0 15px 15px}.subclientlist-wrapper .subclientlist-body .subclientlist-radiogrp{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}.subclientlist-wrapper .subclientlist-btns{padding:0;min-height:48px}.subclientlist-wrapper button{width:100%;margin-bottom:0}.subclientlist-wrapper .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { kind: "component", type: i4.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }] });
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SubClientDialogComponent, decorators: [{
|
|
39
|
-
type: Component,
|
|
40
|
-
args: [{ selector: 'lib-subclient-dialog', template: "<div class=\"subclientlist-wrapper dialog-wrapper\">\r\n <h4 class=\"subclientlist-header\">Select Sub Client</h4>\r\n <div class=\"subclientlist-body\">\r\n <div>\r\n <mat-radio-group class=\"subclientlist-radiogrp\" aria-label=\"Select an option\">\r\n <mat-radio-button [value]=\"item.value\" *ngFor=\"let item of subClientList;index as i\" (click)=\"onSubClientSelect(item)\" [checked]=\"item.checked\">{{item.text}}</mat-radio-button>\r\n </mat-radio-group>\r\n </div>\r\n </div>\r\n <div class=\"subclientlist-btns\">\r\n <button class=\"sgh-btn-primary\" (click)=\"onSelectBtnClick()\">Select</button>\r\n </div>\r\n</div>\r\n\r\n", styles: [".subclientlist-wrapper .subclientlist-header{font-weight:500;line-height:48px;display:flex;justify-content:center;align-items:center;padding-bottom:0;margin:0}.subclientlist-wrapper .subclientlist-body{font-weight:400;text-align:center;color:#000;padding:0 15px 15px}.subclientlist-wrapper .subclientlist-body .subclientlist-radiogrp{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}.subclientlist-wrapper .subclientlist-btns{padding:0;min-height:48px}.subclientlist-wrapper button{width:100%;margin-bottom:0}.subclientlist-wrapper .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0}\n"] }]
|
|
41
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
42
|
-
type: Inject,
|
|
43
|
-
args: [MAT_DIALOG_DATA]
|
|
44
|
-
}] }, { type: i1.MatDialogRef }, { type: i2.SghNavbarService }]; }, propDecorators: { subClient: [{
|
|
45
|
-
type: Output
|
|
46
|
-
}] } });
|
|
47
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3ViLWNsaWVudC1kaWFsb2cuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2doLW5hdmJhci9zcmMvbGliL3Rvb2xiYXIvc3ViLWNsaWVudC1kaWFsb2cvc3ViLWNsaWVudC1kaWFsb2cuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2doLW5hdmJhci9zcmMvbGliL3Rvb2xiYXIvc3ViLWNsaWVudC1kaWFsb2cvc3ViLWNsaWVudC1kaWFsb2cuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxZQUFZLEVBQUUsTUFBTSxFQUFFLE1BQU0sRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN0RSxPQUFPLEVBQUMsZUFBZSxFQUFlLE1BQU0sMEJBQTBCLENBQUM7Ozs7OztBQVN2RSxNQUFNLE9BQU8sd0JBQXdCO0lBTW5DLFlBQTRDLElBQVMsRUFBVSxTQUFpRCxFQUFVLGdCQUFrQztRQUFoSCxTQUFJLEdBQUosSUFBSSxDQ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