@progress-chef/platform-shared-components 0.0.1
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/README.md +30 -0
- package/assets/IconFont.css +68 -0
- package/assets/IconFont.scss +68 -0
- package/assets/IconFont.ttf +0 -0
- package/assets/IconFont.woff +0 -0
- package/assets/IconFont.woff2 +0 -0
- package/esm2022/lib/atoms/alert/alert.component.mjs +37 -0
- package/esm2022/lib/atoms/alert/alert.module.mjs +20 -0
- package/esm2022/lib/atoms/angular-popup/angular-popup.component.mjs +35 -0
- package/esm2022/lib/atoms/angular-popup/angular-popup.module.mjs +36 -0
- package/esm2022/lib/atoms/atoms.module.mjs +234 -0
- package/esm2022/lib/atoms/avatar/avatar.component.mjs +62 -0
- package/esm2022/lib/atoms/avatar/avatar.module.mjs +20 -0
- package/esm2022/lib/atoms/breadcrumb/breadcrumb.component.mjs +59 -0
- package/esm2022/lib/atoms/breadcrumb/breadcrumb.module.mjs +36 -0
- package/esm2022/lib/atoms/button/button.component.mjs +72 -0
- package/esm2022/lib/atoms/button/button.module.mjs +21 -0
- package/esm2022/lib/atoms/button-group/button-group.component.mjs +52 -0
- package/esm2022/lib/atoms/button-group/button-group.module.mjs +21 -0
- package/esm2022/lib/atoms/checkbox/checkbox.component.mjs +45 -0
- package/esm2022/lib/atoms/checkbox/checkbox.module.mjs +32 -0
- package/esm2022/lib/atoms/clipboard/clipboard.component.mjs +104 -0
- package/esm2022/lib/atoms/clipboard/clipboard.module.mjs +32 -0
- package/esm2022/lib/atoms/container/container.component.mjs +29 -0
- package/esm2022/lib/atoms/container/container.module.mjs +22 -0
- package/esm2022/lib/atoms/dropdown/dropdown.component.mjs +102 -0
- package/esm2022/lib/atoms/dropdown/dropdown.module.mjs +39 -0
- package/esm2022/lib/atoms/dropdowntree/dropdowntree.component.mjs +103 -0
- package/esm2022/lib/atoms/dropdowntree/dropdowntree.module.mjs +43 -0
- package/esm2022/lib/atoms/expansion-panel/expansion-panel.component.mjs +38 -0
- package/esm2022/lib/atoms/expansion-panel/expansion-panel.module.mjs +56 -0
- package/esm2022/lib/atoms/icon/icon.component.mjs +24 -0
- package/esm2022/lib/atoms/icon/icon.module.mjs +17 -0
- package/esm2022/lib/atoms/label/label.component.mjs +26 -0
- package/esm2022/lib/atoms/label/label.module.mjs +20 -0
- package/esm2022/lib/atoms/loading-spinner/loading-spinner.component.mjs +26 -0
- package/esm2022/lib/atoms/loading-spinner/loading-spinner.module.mjs +18 -0
- package/esm2022/lib/atoms/multi-select-dropdown/multi-select-dropdown.component.mjs +101 -0
- package/esm2022/lib/atoms/multi-select-dropdown/multi-select-dropdown.module.mjs +39 -0
- package/esm2022/lib/atoms/notification/notification.component.mjs +69 -0
- package/esm2022/lib/atoms/notification/notification.module.mjs +20 -0
- package/esm2022/lib/atoms/numeric-textbox/numeric-textbox.component.mjs +80 -0
- package/esm2022/lib/atoms/numeric-textbox/numeric-textbox.module.mjs +35 -0
- package/esm2022/lib/atoms/progress-bar/progress-bar.component.mjs +20 -0
- package/esm2022/lib/atoms/progress-bar/progress-bar.module.mjs +24 -0
- package/esm2022/lib/atoms/radio-button/radio-button.component.mjs +51 -0
- package/esm2022/lib/atoms/radio-button/radio-button.module.mjs +39 -0
- package/esm2022/lib/atoms/report-summary/report-summary.component.mjs +47 -0
- package/esm2022/lib/atoms/report-summary/report-summary.module.mjs +24 -0
- package/esm2022/lib/atoms/search-box/search-box.component.mjs +108 -0
- package/esm2022/lib/atoms/search-box/search-box.module.mjs +36 -0
- package/esm2022/lib/atoms/slider/slider.component.mjs +58 -0
- package/esm2022/lib/atoms/slider/slider.module.mjs +28 -0
- package/esm2022/lib/atoms/text-area/text-area.component.mjs +43 -0
- package/esm2022/lib/atoms/text-area/text-area.module.mjs +28 -0
- package/esm2022/lib/atoms/textbox/textbox.component.mjs +102 -0
- package/esm2022/lib/atoms/textbox/textbox.module.mjs +21 -0
- package/esm2022/lib/atoms/timescheduler/timescheduler.component.mjs +62 -0
- package/esm2022/lib/atoms/timescheduler/timescheduler.module.mjs +31 -0
- package/esm2022/lib/atoms/toast-notification/toast-notification.module.mjs +19 -0
- package/esm2022/lib/atoms/toast-notification/toast-notification.service.mjs +45 -0
- package/esm2022/lib/atoms/tooltip/tooltip.component.mjs +35 -0
- package/esm2022/lib/atoms/tooltip/tooltip.module.mjs +20 -0
- package/esm2022/lib/atoms/typography/TypographyType.mjs +2 -0
- package/esm2022/lib/atoms/typography/typography.component.mjs +97 -0
- package/esm2022/lib/atoms/typography/typography.module.mjs +24 -0
- package/esm2022/lib/molecules/card/card-actions/card-actions.component.mjs +21 -0
- package/esm2022/lib/molecules/card/card-body/card-body.component.mjs +14 -0
- package/esm2022/lib/molecules/card/card-footer/card-footer.component.mjs +14 -0
- package/esm2022/lib/molecules/card/card-header/card-header.component.mjs +32 -0
- package/esm2022/lib/molecules/card/card.component.mjs +21 -0
- package/esm2022/lib/molecules/card/card.module.mjs +44 -0
- package/esm2022/lib/molecules/dialog/dialog-actions/dialog-actions.component.mjs +18 -0
- package/esm2022/lib/molecules/dialog/dialog-titlebar/dialog-titlebar.component.mjs +41 -0
- package/esm2022/lib/molecules/dialog/dialog.component.mjs +52 -0
- package/esm2022/lib/molecules/dialog/dialog.module.mjs +40 -0
- package/esm2022/lib/molecules/grid/grid-form/grid-form.component.mjs +112 -0
- package/esm2022/lib/molecules/grid/grid-spacer/grid-spacer.component.mjs +15 -0
- package/esm2022/lib/molecules/grid/grid.component.mjs +278 -0
- package/esm2022/lib/molecules/grid/grid.module.mjs +61 -0
- package/esm2022/lib/molecules/grid-layout/grid-layout-item/grid-layout-item.component.mjs +39 -0
- package/esm2022/lib/molecules/grid-layout/grid-layout.component.mjs +34 -0
- package/esm2022/lib/molecules/grid-layout/grid-layout.module.mjs +33 -0
- package/esm2022/lib/molecules/grid-pagination/grid-pagination-spacer/grid-pagination-spacer.component.mjs +15 -0
- package/esm2022/lib/molecules/grid-pagination/grid-pagination.component.mjs +380 -0
- package/esm2022/lib/molecules/grid-pagination/grid-pagination.module.mjs +69 -0
- package/esm2022/lib/molecules/grid-pagination/kebab-menu-filter.pipe.mjs +22 -0
- package/esm2022/lib/molecules/molecules.module.mjs +74 -0
- package/esm2022/lib/molecules/sidebar/layout/layout.model.mjs +2 -0
- package/esm2022/lib/molecules/sidebar/sidebar.component.mjs +43 -0
- package/esm2022/lib/molecules/sidebar/sidebar.module.mjs +32 -0
- package/esm2022/lib/molecules/tabstrip/tabstrip-tab/tabstrip-tab.component.mjs +25 -0
- package/esm2022/lib/molecules/tabstrip/tabstrip.component.mjs +37 -0
- package/esm2022/lib/molecules/tabstrip/tabstrip.module.mjs +33 -0
- package/esm2022/lib/shared.component.mjs +16 -0
- package/esm2022/lib/shared.module.mjs +40 -0
- package/esm2022/lib/shared.service.mjs +14 -0
- package/esm2022/lib/style-tokens/style-tokens.module.mjs +18 -0
- package/esm2022/progress-chef-platform-shared-components.mjs +5 -0
- package/esm2022/public-api.mjs +98 -0
- package/fesm2022/progress-chef-platform-shared-components.mjs +3970 -0
- package/fesm2022/progress-chef-platform-shared-components.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/atoms/alert/alert.component.d.ts +19 -0
- package/lib/atoms/alert/alert.module.d.ts +8 -0
- package/lib/atoms/angular-popup/angular-popup.component.d.ts +16 -0
- package/lib/atoms/angular-popup/angular-popup.module.d.ts +11 -0
- package/lib/atoms/atoms.module.d.ts +38 -0
- package/lib/atoms/avatar/avatar.component.d.ts +21 -0
- package/lib/atoms/avatar/avatar.module.d.ts +10 -0
- package/lib/atoms/breadcrumb/breadcrumb.component.d.ts +18 -0
- package/lib/atoms/breadcrumb/breadcrumb.module.d.ts +12 -0
- package/lib/atoms/button/button.component.d.ts +26 -0
- package/lib/atoms/button/button.module.d.ts +11 -0
- package/lib/atoms/button-group/button-group.component.d.ts +21 -0
- package/lib/atoms/button-group/button-group.module.d.ts +11 -0
- package/lib/atoms/checkbox/checkbox.component.d.ts +20 -0
- package/lib/atoms/checkbox/checkbox.module.d.ts +11 -0
- package/lib/atoms/clipboard/clipboard.component.d.ts +33 -0
- package/lib/atoms/clipboard/clipboard.module.d.ts +11 -0
- package/lib/atoms/container/container.component.d.ts +12 -0
- package/lib/atoms/container/container.module.d.ts +8 -0
- package/lib/atoms/dropdown/dropdown.component.d.ts +38 -0
- package/lib/atoms/dropdown/dropdown.module.d.ts +11 -0
- package/lib/atoms/dropdowntree/dropdowntree.component.d.ts +36 -0
- package/lib/atoms/dropdowntree/dropdowntree.module.d.ts +12 -0
- package/lib/atoms/expansion-panel/expansion-panel.component.d.ts +16 -0
- package/lib/atoms/expansion-panel/expansion-panel.module.d.ts +17 -0
- package/lib/atoms/icon/icon.component.d.ts +13 -0
- package/lib/atoms/icon/icon.module.d.ts +7 -0
- package/lib/atoms/label/label.component.d.ts +14 -0
- package/lib/atoms/label/label.module.d.ts +10 -0
- package/lib/atoms/loading-spinner/loading-spinner.component.d.ts +13 -0
- package/lib/atoms/loading-spinner/loading-spinner.module.d.ts +8 -0
- package/lib/atoms/multi-select-dropdown/multi-select-dropdown.component.d.ts +37 -0
- package/lib/atoms/multi-select-dropdown/multi-select-dropdown.module.d.ts +11 -0
- package/lib/atoms/notification/notification.component.d.ts +24 -0
- package/lib/atoms/notification/notification.module.d.ts +8 -0
- package/lib/atoms/numeric-textbox/numeric-textbox.component.d.ts +30 -0
- package/lib/atoms/numeric-textbox/numeric-textbox.module.d.ts +10 -0
- package/lib/atoms/progress-bar/progress-bar.component.d.ts +11 -0
- package/lib/atoms/progress-bar/progress-bar.module.d.ts +8 -0
- package/lib/atoms/radio-button/radio-button.component.d.ts +21 -0
- package/lib/atoms/radio-button/radio-button.module.d.ts +11 -0
- package/lib/atoms/report-summary/report-summary.component.d.ts +23 -0
- package/lib/atoms/report-summary/report-summary.module.d.ts +8 -0
- package/lib/atoms/search-box/search-box.component.d.ts +37 -0
- package/lib/atoms/search-box/search-box.module.d.ts +12 -0
- package/lib/atoms/slider/slider.component.d.ts +18 -0
- package/lib/atoms/slider/slider.module.d.ts +9 -0
- package/lib/atoms/text-area/text-area.component.d.ts +20 -0
- package/lib/atoms/text-area/text-area.module.d.ts +10 -0
- package/lib/atoms/textbox/textbox.component.d.ts +34 -0
- package/lib/atoms/textbox/textbox.module.d.ts +11 -0
- package/lib/atoms/timescheduler/timescheduler.component.d.ts +23 -0
- package/lib/atoms/timescheduler/timescheduler.module.d.ts +10 -0
- package/lib/atoms/toast-notification/toast-notification.module.d.ts +8 -0
- package/lib/atoms/toast-notification/toast-notification.service.d.ts +28 -0
- package/lib/atoms/tooltip/tooltip.component.d.ts +17 -0
- package/lib/atoms/tooltip/tooltip.module.d.ts +8 -0
- package/lib/atoms/typography/TypographyType.d.ts +1 -0
- package/lib/atoms/typography/typography.component.d.ts +24 -0
- package/lib/atoms/typography/typography.module.d.ts +8 -0
- package/lib/molecules/card/card-actions/card-actions.component.d.ts +11 -0
- package/lib/molecules/card/card-body/card-body.component.d.ts +8 -0
- package/lib/molecules/card/card-footer/card-footer.component.d.ts +8 -0
- package/lib/molecules/card/card-header/card-header.component.d.ts +14 -0
- package/lib/molecules/card/card.component.d.ts +9 -0
- package/lib/molecules/card/card.module.d.ts +14 -0
- package/lib/molecules/dialog/dialog-actions/dialog-actions.component.d.ts +10 -0
- package/lib/molecules/dialog/dialog-titlebar/dialog-titlebar.component.d.ts +17 -0
- package/lib/molecules/dialog/dialog.component.d.ts +21 -0
- package/lib/molecules/dialog/dialog.module.d.ts +13 -0
- package/lib/molecules/grid/grid-form/grid-form.component.d.ts +34 -0
- package/lib/molecules/grid/grid-spacer/grid-spacer.component.d.ts +8 -0
- package/lib/molecules/grid/grid.component.d.ts +71 -0
- package/lib/molecules/grid/grid.module.d.ts +19 -0
- package/lib/molecules/grid-layout/grid-layout-item/grid-layout-item.component.d.ts +15 -0
- package/lib/molecules/grid-layout/grid-layout.component.d.ts +14 -0
- package/lib/molecules/grid-layout/grid-layout.module.d.ts +10 -0
- package/lib/molecules/grid-pagination/grid-pagination-spacer/grid-pagination-spacer.component.d.ts +8 -0
- package/lib/molecules/grid-pagination/grid-pagination.component.d.ts +90 -0
- package/lib/molecules/grid-pagination/grid-pagination.module.d.ts +19 -0
- package/lib/molecules/grid-pagination/kebab-menu-filter.pipe.d.ts +7 -0
- package/lib/molecules/molecules.module.d.ts +15 -0
- package/lib/molecules/sidebar/layout/layout.model.d.ts +20 -0
- package/lib/molecules/sidebar/sidebar.component.d.ts +14 -0
- package/lib/molecules/sidebar/sidebar.module.d.ts +10 -0
- package/lib/molecules/tabstrip/tabstrip-tab/tabstrip-tab.component.d.ts +10 -0
- package/lib/molecules/tabstrip/tabstrip.component.d.ts +15 -0
- package/lib/molecules/tabstrip/tabstrip.module.d.ts +10 -0
- package/lib/shared.component.d.ts +10 -0
- package/lib/shared.module.d.ts +11 -0
- package/lib/shared.service.d.ts +6 -0
- package/lib/style-tokens/style-tokens.module.d.ts +7 -0
- package/package.json +55 -0
- package/public-api.d.ts +91 -0
|
@@ -0,0 +1,3970 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, NgModule, Component, Input, HostBinding, ViewChild, EventEmitter, Output, ContentChild, ContentChildren, Pipe, HostListener, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
3
|
+
import * as i1 from '@progress/kendo-angular-notification';
|
|
4
|
+
import { NotificationModule as NotificationModule$1, NotificationService } from '@progress/kendo-angular-notification';
|
|
5
|
+
import * as i1$2 from '@angular/common';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import * as i1$1 from '@progress-chef/platform-themes-service';
|
|
8
|
+
import { ThemesModule } from '@progress-chef/platform-themes-service';
|
|
9
|
+
import * as i4 from '@angular/forms';
|
|
10
|
+
import { FormControl, ReactiveFormsModule, FormsModule, FormGroup, Validators } from '@angular/forms';
|
|
11
|
+
import * as i3 from '@progress/kendo-angular-popup';
|
|
12
|
+
import { PopupModule } from '@progress/kendo-angular-popup';
|
|
13
|
+
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
14
|
+
import * as i2 from '@progress/kendo-angular-layout';
|
|
15
|
+
import { LayoutModule } from '@progress/kendo-angular-layout';
|
|
16
|
+
import { userIcon, homeIcon, moreVerticalIcon, chevronDownIcon, chevronUpIcon, trashIcon } from '@progress/kendo-svg-icons';
|
|
17
|
+
import * as i2$1 from '@progress/kendo-angular-navigation';
|
|
18
|
+
import { NavigationModule } from '@progress/kendo-angular-navigation';
|
|
19
|
+
import * as i2$2 from '@progress/kendo-angular-buttons';
|
|
20
|
+
import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
21
|
+
import * as i3$2 from '@progress/kendo-angular-dropdowns';
|
|
22
|
+
import { DropDownsModule, AutoCompleteModule } from '@progress/kendo-angular-dropdowns';
|
|
23
|
+
import * as i3$1 from '@progress/kendo-angular-inputs';
|
|
24
|
+
import { InputsModule } from '@progress/kendo-angular-inputs';
|
|
25
|
+
import * as i3$3 from '@progress/kendo-angular-icons';
|
|
26
|
+
import { IconsModule, IconsService } from '@progress/kendo-angular-icons';
|
|
27
|
+
import { LabelModule } from '@progress/kendo-angular-label';
|
|
28
|
+
import { trigger, transition, style, animate } from '@angular/animations';
|
|
29
|
+
import * as i2$3 from '@progress/kendo-angular-progressbar';
|
|
30
|
+
import { ProgressBarModule } from '@progress/kendo-angular-progressbar';
|
|
31
|
+
import { Subject, Subscription, tap, map } from 'rxjs';
|
|
32
|
+
import { debounceTime } from 'rxjs/operators';
|
|
33
|
+
import * as i2$4 from '@progress/kendo-angular-dateinputs';
|
|
34
|
+
import { DateInputsModule } from '@progress/kendo-angular-dateinputs';
|
|
35
|
+
import * as i2$5 from '@progress/kendo-angular-tooltip';
|
|
36
|
+
import { TooltipsModule } from '@progress/kendo-angular-tooltip';
|
|
37
|
+
import * as i2$6 from '@progress/kendo-angular-dialog';
|
|
38
|
+
import { DialogsModule, DialogModule as DialogModule$1 } from '@progress/kendo-angular-dialog';
|
|
39
|
+
import * as i4$1 from '@progress/kendo-angular-grid';
|
|
40
|
+
import { GridComponent, GridModule } from '@progress/kendo-angular-grid';
|
|
41
|
+
import { orderBy } from '@progress/kendo-data-query';
|
|
42
|
+
|
|
43
|
+
class SharedService {
|
|
44
|
+
constructor() { }
|
|
45
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SharedService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
46
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SharedService, providedIn: 'root' }); }
|
|
47
|
+
}
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SharedService, decorators: [{
|
|
49
|
+
type: Injectable,
|
|
50
|
+
args: [{
|
|
51
|
+
providedIn: 'root'
|
|
52
|
+
}]
|
|
53
|
+
}], ctorParameters: function () { return []; } });
|
|
54
|
+
|
|
55
|
+
class ToastNotificationService {
|
|
56
|
+
constructor(notificationService) {
|
|
57
|
+
this.notificationService = notificationService;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* @param notification
|
|
61
|
+
* default notification config:
|
|
62
|
+
* - content: '',
|
|
63
|
+
* - animation: { type: 'slide', duration: 400 },
|
|
64
|
+
* - position: { horizontal: 'center', vertical: 'top' },
|
|
65
|
+
* - type: { style: 'success', icon: true },
|
|
66
|
+
* - hideAfter: 4000,
|
|
67
|
+
*/
|
|
68
|
+
showToastNotification(notification) {
|
|
69
|
+
const defaultNotification = {
|
|
70
|
+
content: '',
|
|
71
|
+
animation: { type: 'slide', duration: 400 },
|
|
72
|
+
position: { horizontal: 'center', vertical: 'top' },
|
|
73
|
+
type: { style: 'success', icon: true },
|
|
74
|
+
hideAfter: 4000,
|
|
75
|
+
};
|
|
76
|
+
const mergedNotification = { ...defaultNotification, ...notification };
|
|
77
|
+
this.notificationService.show({
|
|
78
|
+
content: mergedNotification.content,
|
|
79
|
+
cssClass: mergedNotification.cssClass,
|
|
80
|
+
animation: mergedNotification.animation,
|
|
81
|
+
position: mergedNotification.position,
|
|
82
|
+
type: mergedNotification.type,
|
|
83
|
+
closable: mergedNotification.closable,
|
|
84
|
+
hideAfter: mergedNotification.hideAfter,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToastNotificationService, deps: [{ token: i1.NotificationService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
88
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToastNotificationService, providedIn: 'root' }); }
|
|
89
|
+
}
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToastNotificationService, decorators: [{
|
|
91
|
+
type: Injectable,
|
|
92
|
+
args: [{
|
|
93
|
+
providedIn: 'root',
|
|
94
|
+
}]
|
|
95
|
+
}], ctorParameters: function () { return [{ type: i1.NotificationService }]; } });
|
|
96
|
+
|
|
97
|
+
class StyleTokensModule {
|
|
98
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StyleTokensModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
99
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: StyleTokensModule, imports: [CommonModule] }); }
|
|
100
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StyleTokensModule, imports: [CommonModule] }); }
|
|
101
|
+
}
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StyleTokensModule, decorators: [{
|
|
103
|
+
type: NgModule,
|
|
104
|
+
args: [{
|
|
105
|
+
declarations: [],
|
|
106
|
+
imports: [
|
|
107
|
+
CommonModule
|
|
108
|
+
]
|
|
109
|
+
}]
|
|
110
|
+
}] });
|
|
111
|
+
|
|
112
|
+
class SharedComponent {
|
|
113
|
+
constructor(themesService) {
|
|
114
|
+
this.themesService = themesService;
|
|
115
|
+
}
|
|
116
|
+
ngOnInit() { }
|
|
117
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SharedComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
118
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SharedComponent, selector: "lib-shared", ngImport: i0, template: ` <p>shared works!</p> `, isInline: true }); }
|
|
119
|
+
}
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SharedComponent, decorators: [{
|
|
121
|
+
type: Component,
|
|
122
|
+
args: [{ selector: 'lib-shared', template: ` <p>shared works!</p> ` }]
|
|
123
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; } });
|
|
124
|
+
|
|
125
|
+
class AngularPopupComponent {
|
|
126
|
+
constructor(themesService) {
|
|
127
|
+
this.themesService = themesService;
|
|
128
|
+
this.show = true;
|
|
129
|
+
this.anchorHorizontalAlign = "right";
|
|
130
|
+
this.anchorVerticalAlign = "bottom";
|
|
131
|
+
this.popupHorizontalAlign = "right";
|
|
132
|
+
this.popupVerticalAlign = "top";
|
|
133
|
+
}
|
|
134
|
+
ngOnInit() { }
|
|
135
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AngularPopupComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
136
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AngularPopupComponent, selector: "lib-angular-popup", inputs: { show: "show", anchor: "anchor", anchorHorizontalAlign: "anchorHorizontalAlign", anchorVerticalAlign: "anchorVerticalAlign", popupHorizontalAlign: "popupHorizontalAlign", popupVerticalAlign: "popupVerticalAlign" }, ngImport: i0, template: "<kendo-popup\n *ngIf=\"show\"\n [anchor]=\"anchor\"\n [anchorAlign]=\"{ horizontal: anchorHorizontalAlign, vertical: anchorVerticalAlign }\"\n [popupAlign]=\"{ horizontal: popupHorizontalAlign, vertical: popupVerticalAlign }\"\n>\n <ng-content></ng-content>\n</kendo-popup>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.PopupComponent, selector: "kendo-popup", inputs: ["animate", "anchor", "anchorAlign", "collision", "popupAlign", "copyAnchorStyles", "popupClass", "positionMode", "offset", "margin"], outputs: ["anchorViewportLeave", "close", "open", "positionChange"], exportAs: ["kendo-popup"] }] }); }
|
|
137
|
+
}
|
|
138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AngularPopupComponent, decorators: [{
|
|
139
|
+
type: Component,
|
|
140
|
+
args: [{ selector: 'lib-angular-popup', template: "<kendo-popup\n *ngIf=\"show\"\n [anchor]=\"anchor\"\n [anchorAlign]=\"{ horizontal: anchorHorizontalAlign, vertical: anchorVerticalAlign }\"\n [popupAlign]=\"{ horizontal: popupHorizontalAlign, vertical: popupVerticalAlign }\"\n>\n <ng-content></ng-content>\n</kendo-popup>\n" }]
|
|
141
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { show: [{
|
|
142
|
+
type: Input
|
|
143
|
+
}], anchor: [{
|
|
144
|
+
type: Input
|
|
145
|
+
}], anchorHorizontalAlign: [{
|
|
146
|
+
type: Input
|
|
147
|
+
}], anchorVerticalAlign: [{
|
|
148
|
+
type: Input
|
|
149
|
+
}], popupHorizontalAlign: [{
|
|
150
|
+
type: Input
|
|
151
|
+
}], popupVerticalAlign: [{
|
|
152
|
+
type: Input
|
|
153
|
+
}] } });
|
|
154
|
+
|
|
155
|
+
class ContainerComponent {
|
|
156
|
+
get class() {
|
|
157
|
+
return `${this.c_class} ${this.padding} ${this.margin}`;
|
|
158
|
+
}
|
|
159
|
+
constructor() {
|
|
160
|
+
this.c_class = "";
|
|
161
|
+
this.padding = "pd-small";
|
|
162
|
+
this.margin = "mr-small";
|
|
163
|
+
}
|
|
164
|
+
ngOnInit() { }
|
|
165
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
166
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ContainerComponent, selector: "lib-container", inputs: { c_class: "c_class", padding: "padding", margin: "margin" }, host: { properties: { "class": "this.class" } }, ngImport: i0, template: "<ng-container [class]=\"class\">\n <ng-content></ng-content>\n</ng-container>\n", styles: [":host(.pd-small){padding:8px}:host(.pd-medium){padding:16px}:host(.pd-large){padding:32px}:host(.mr-small){margin:8px}:host(.mr-medium){margin:16px}:host(.mr-large){margin:32px}:host(.cc-border){border:.5px solid gray}\n"] }); }
|
|
167
|
+
}
|
|
168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ContainerComponent, decorators: [{
|
|
169
|
+
type: Component,
|
|
170
|
+
args: [{ selector: 'lib-container', template: "<ng-container [class]=\"class\">\n <ng-content></ng-content>\n</ng-container>\n", styles: [":host(.pd-small){padding:8px}:host(.pd-medium){padding:16px}:host(.pd-large){padding:32px}:host(.mr-small){margin:8px}:host(.mr-medium){margin:16px}:host(.mr-large){margin:32px}:host(.cc-border){border:.5px solid gray}\n"] }]
|
|
171
|
+
}], ctorParameters: function () { return []; }, propDecorators: { class: [{
|
|
172
|
+
type: HostBinding,
|
|
173
|
+
args: ['class']
|
|
174
|
+
}], c_class: [{
|
|
175
|
+
type: Input
|
|
176
|
+
}], padding: [{
|
|
177
|
+
type: Input
|
|
178
|
+
}], margin: [{
|
|
179
|
+
type: Input
|
|
180
|
+
}] } });
|
|
181
|
+
|
|
182
|
+
class ContainerModule {
|
|
183
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ContainerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
184
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ContainerModule, declarations: [ContainerComponent], imports: [CommonModule], exports: [ContainerComponent] }); }
|
|
185
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ContainerModule, imports: [CommonModule] }); }
|
|
186
|
+
}
|
|
187
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ContainerModule, decorators: [{
|
|
188
|
+
type: NgModule,
|
|
189
|
+
args: [{
|
|
190
|
+
declarations: [
|
|
191
|
+
ContainerComponent
|
|
192
|
+
],
|
|
193
|
+
imports: [CommonModule],
|
|
194
|
+
exports: [
|
|
195
|
+
ContainerComponent
|
|
196
|
+
]
|
|
197
|
+
}]
|
|
198
|
+
}] });
|
|
199
|
+
|
|
200
|
+
class AngularPopupModule {
|
|
201
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AngularPopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
202
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: AngularPopupModule, declarations: [AngularPopupComponent], imports: [CommonModule,
|
|
203
|
+
PopupModule,
|
|
204
|
+
BrowserAnimationsModule,
|
|
205
|
+
ContainerModule], exports: [AngularPopupComponent] }); }
|
|
206
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AngularPopupModule, imports: [CommonModule,
|
|
207
|
+
PopupModule,
|
|
208
|
+
BrowserAnimationsModule,
|
|
209
|
+
ContainerModule] }); }
|
|
210
|
+
}
|
|
211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AngularPopupModule, decorators: [{
|
|
212
|
+
type: NgModule,
|
|
213
|
+
args: [{
|
|
214
|
+
declarations: [
|
|
215
|
+
AngularPopupComponent
|
|
216
|
+
],
|
|
217
|
+
imports: [
|
|
218
|
+
CommonModule,
|
|
219
|
+
PopupModule,
|
|
220
|
+
BrowserAnimationsModule,
|
|
221
|
+
ContainerModule
|
|
222
|
+
],
|
|
223
|
+
exports: [
|
|
224
|
+
AngularPopupComponent
|
|
225
|
+
]
|
|
226
|
+
}]
|
|
227
|
+
}] });
|
|
228
|
+
|
|
229
|
+
const Typography = {
|
|
230
|
+
// h1 styles
|
|
231
|
+
H1_MULISH_36_BOLD: 'h1-mulish-36-bold',
|
|
232
|
+
H1_MULISH_36_REGULAR: 'h1-mulish-36-regular',
|
|
233
|
+
H1_MULISH_36_LIGHT: 'h1-mulish-36-light',
|
|
234
|
+
// h2 styles
|
|
235
|
+
H2_MULISH_24_BOLD: 'h2-mulish-24-bold',
|
|
236
|
+
H2_MULISH_24_REGULAR: 'h2-mulish-24-regular',
|
|
237
|
+
H2_MULISH_24_LIGHT: 'h2-mulish-24-light',
|
|
238
|
+
// h3 styles
|
|
239
|
+
H3_MULISH_18_BOLD: 'h3-mulish-18-bold',
|
|
240
|
+
H3_MULISH_18_REGULAR: 'h3-mulish-18-regular',
|
|
241
|
+
H3_MULISH_18_LIGHT: 'h3-mulish-18-light',
|
|
242
|
+
// h4, h5 and h6 styles
|
|
243
|
+
H4_MULISH_14_BOLD: 'h4-mulish-14-bold',
|
|
244
|
+
H5_MULISH_14_REGULAR: 'h5-mulish-14-regular',
|
|
245
|
+
H6_MULISH_14_LIGHT: 'h6-mulish-14-light',
|
|
246
|
+
// p 16px styles
|
|
247
|
+
P_MULISH_16_BOLD: 'p-mulish-16-bold',
|
|
248
|
+
P_MULISH_16_REGULAR: 'p-mulish-16-regular',
|
|
249
|
+
P_MULISH_16_REGULAR_ITALIC: 'p-mulish-16-regular-italic',
|
|
250
|
+
P_MULISH_16_LIGHT: 'p-mulish-16-light',
|
|
251
|
+
P_MULISH_16_LIGHT_ITALIC: 'p-mulish-16-light-italic',
|
|
252
|
+
// p 14px styles
|
|
253
|
+
P_MULISH_14_BOLD: 'p-mulish-14-bold',
|
|
254
|
+
P_MULISH_14_REGULAR: 'p-mulish-14-regular',
|
|
255
|
+
P_MULISH_14_REGULAR_ITALIC: 'p-mulish-14-regular-italic',
|
|
256
|
+
P_MULISH_14_LIGHT: 'p-mulish-14-light',
|
|
257
|
+
P_MULISH_14_LIGHT_ITALIC: 'p-mulish-14-light-italic',
|
|
258
|
+
// small 12px styles
|
|
259
|
+
SMALL_MULISH_12_BOLD: 'small-mulish-12-bold',
|
|
260
|
+
SMALL_MULISH_12_REGULAR: 'small-mulish-12-regular',
|
|
261
|
+
SMALL_MULISH_12_REGULAR_ITALIC: 'small-mulish-12-regular-italic',
|
|
262
|
+
SMALL_MULISH_12_LIGHT: 'small-mulish-12-light',
|
|
263
|
+
SMALL_MULISH_12_LIGHT_ITALIC: 'small-mulish-12-light-italic',
|
|
264
|
+
// Custom
|
|
265
|
+
BASE_TEXT_MULISH: 'base-text-mulish'
|
|
266
|
+
};
|
|
267
|
+
class TypographyComponent {
|
|
268
|
+
constructor(themesService) {
|
|
269
|
+
this.themesService = themesService;
|
|
270
|
+
this.type = 'P_MULISH_14_REGULAR';
|
|
271
|
+
this.defaultText = "defaultText";
|
|
272
|
+
this.isLabel = false;
|
|
273
|
+
this.hiddenLabel = "";
|
|
274
|
+
this.showDefaultText = true;
|
|
275
|
+
this.font = Typography[this.type];
|
|
276
|
+
this.input_id = null;
|
|
277
|
+
}
|
|
278
|
+
ngAfterViewChecked() {
|
|
279
|
+
// this.timeOutRef = setTimeout(this.checkForLabel, 15000);
|
|
280
|
+
if (!this.input_id) {
|
|
281
|
+
this.checkForLabel();
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
ngOnChanges() {
|
|
285
|
+
this.font = Typography[this.type];
|
|
286
|
+
}
|
|
287
|
+
ngAfterViewInit() {
|
|
288
|
+
this.checkShowDefaultText();
|
|
289
|
+
}
|
|
290
|
+
checkForLabel() {
|
|
291
|
+
let childrenCount = this.labelChild?.nativeElement.childElementCount;
|
|
292
|
+
if (childrenCount > 0) {
|
|
293
|
+
this.input_id = this.labelChild?.nativeElement.getElementsByTagName('input')[0]?.getAttribute('id');
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
checkShowDefaultText() {
|
|
297
|
+
let childrenCount = this.child?.nativeElement.childNodes.length;
|
|
298
|
+
this.showDefaultText = !this.isLabel && (!childrenCount || childrenCount == 0);
|
|
299
|
+
}
|
|
300
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TypographyComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
301
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TypographyComponent, selector: "lib-typography", inputs: { type: "type", defaultText: "defaultText", isLabel: "isLabel", hiddenLabel: "hiddenLabel" }, viewQueries: [{ propertyName: "child", first: true, predicate: ["ref"], descendants: true }, { propertyName: "labelChild", first: true, predicate: ["ref_label"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ng-container>\n <span *ngIf=\"!isLabel\" #ref [class]=\"font\"><ng-content></ng-content></span>\n <label *ngIf=\"isLabel\" #ref_label [class]=\"font\" attr.for=\"{{input_id}}\">\n <span class=\"visually-hidden\">{{hiddenLabel}}</span>\n {{defaultText}}\n <ng-content></ng-content>\n </label>\n <span *ngIf=\"showDefaultText\" [class]=\"font\">\n {{defaultText}}\n </span>\n</ng-container>\n", styles: ["@font-face{font-family:Mulish;src:url(/assets/fonts/Mulish-Light.ttf);font-weight:300;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-LightItalic.ttf);font-weight:300;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Regular.ttf);font-weight:400;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Italic.ttf);font-weight:400;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Bold.ttf);font-weight:700;font-style:normal}.h1-mulish-36-bold{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:36px;line-height:54px;letter-spacing:.8px}.h1-mulish-36-regular{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:36px;line-height:54px;letter-spacing:.8px}.h1-mulish-36-light{font-family:Mulish,sans-serif;font-weight:300;font-style:normal;font-size:36px;line-height:54px;letter-spacing:.8px}.h2-mulish-24-bold{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:24px;line-height:36px;letter-spacing:.8px}.h2-mulish-24-regular{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:36px;letter-spacing:.8px}.h2-mulish-24-light{font-family:Mulish,sans-serif;font-weight:300;font-style:normal;font-size:24px;line-height:36px;letter-spacing:.8px}.h3-mulish-18-bold{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:18px;line-height:27px;letter-spacing:.8px}.h3-mulish-18-regular{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:18px;line-height:27px;letter-spacing:.8px}.h3-mulish-18-light{font-family:Mulish,sans-serif;font-weight:300;font-style:normal;font-size:18px;line-height:27px;letter-spacing:.8px}.h4-mulish-14-bold{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.8px}.h5-mulish-14-regular{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.8px}.h6-mulish-14-light{font-family:Mulish,sans-serif;font-weight:300;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.8px}.p-mulish-16-bold{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:16px;line-height:24px;letter-spacing:.2px}.p-mulish-16-regular{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:16px;line-height:24px;letter-spacing:.2px}.p-mulish-16-regular-italic{font-family:Mulish,sans-serif;font-weight:400;font-style:italic;font-size:16px;line-height:24px;letter-spacing:.2px}.p-mulish-16-light{font-family:Mulish,sans-serif;font-weight:300;font-style:normal;font-size:16px;line-height:24px;letter-spacing:.2px}.p-mulish-16-light-italic{font-family:Mulish,sans-serif;font-weight:300;font-style:italic;font-size:16px;line-height:24px;letter-spacing:.2px}.p-mulish-14-bold{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.2px}.p-mulish-14-regular{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.2px}.p-mulish-14-regular-italic{font-family:Mulish,sans-serif;font-weight:400;font-style:italic;font-size:14px;line-height:21px;letter-spacing:.2px}.p-mulish-14-light{font-family:Mulish,sans-serif;font-weight:300;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.2px}.p-mulish-14-light-italic{font-family:Mulish,sans-serif;font-weight:300;font-style:italic;font-size:14px;line-height:21px;letter-spacing:.2px}.small-mulish-12-bold{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:12px;line-height:18px;letter-spacing:.2px}.small-mulish-12-regular{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:12px;line-height:18px;letter-spacing:.2px}.small-mulish-12-regular-italic{font-family:Mulish,sans-serif;font-weight:400;font-style:italic;font-size:12px;line-height:18px;letter-spacing:.2px}.small-mulish-12-light{font-family:Mulish,sans-serif;font-weight:300;font-style:normal;font-size:12px;line-height:18px;letter-spacing:.2px}.small-mulish-12-light-italic{font-family:Mulish,sans-serif;font-weight:300;font-style:italic;font-size:12px;line-height:18px;letter-spacing:.2px}.base-text-mulish{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:16px;line-height:24px;letter-spacing:0px;text-align:left}.visually-hidden{border:0;padding:0;margin:0;position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);clip-path:inset(50%);white-space:nowrap}label{display:inline}\n"], dependencies: [{ kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
302
|
+
}
|
|
303
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TypographyComponent, decorators: [{
|
|
304
|
+
type: Component,
|
|
305
|
+
args: [{ selector: 'lib-typography', template: "<ng-container>\n <span *ngIf=\"!isLabel\" #ref [class]=\"font\"><ng-content></ng-content></span>\n <label *ngIf=\"isLabel\" #ref_label [class]=\"font\" attr.for=\"{{input_id}}\">\n <span class=\"visually-hidden\">{{hiddenLabel}}</span>\n {{defaultText}}\n <ng-content></ng-content>\n </label>\n <span *ngIf=\"showDefaultText\" [class]=\"font\">\n {{defaultText}}\n </span>\n</ng-container>\n", styles: ["@font-face{font-family:Mulish;src:url(/assets/fonts/Mulish-Light.ttf);font-weight:300;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-LightItalic.ttf);font-weight:300;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Regular.ttf);font-weight:400;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Italic.ttf);font-weight:400;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Bold.ttf);font-weight:700;font-style:normal}.h1-mulish-36-bold{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:36px;line-height:54px;letter-spacing:.8px}.h1-mulish-36-regular{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:36px;line-height:54px;letter-spacing:.8px}.h1-mulish-36-light{font-family:Mulish,sans-serif;font-weight:300;font-style:normal;font-size:36px;line-height:54px;letter-spacing:.8px}.h2-mulish-24-bold{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:24px;line-height:36px;letter-spacing:.8px}.h2-mulish-24-regular{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:36px;letter-spacing:.8px}.h2-mulish-24-light{font-family:Mulish,sans-serif;font-weight:300;font-style:normal;font-size:24px;line-height:36px;letter-spacing:.8px}.h3-mulish-18-bold{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:18px;line-height:27px;letter-spacing:.8px}.h3-mulish-18-regular{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:18px;line-height:27px;letter-spacing:.8px}.h3-mulish-18-light{font-family:Mulish,sans-serif;font-weight:300;font-style:normal;font-size:18px;line-height:27px;letter-spacing:.8px}.h4-mulish-14-bold{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.8px}.h5-mulish-14-regular{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.8px}.h6-mulish-14-light{font-family:Mulish,sans-serif;font-weight:300;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.8px}.p-mulish-16-bold{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:16px;line-height:24px;letter-spacing:.2px}.p-mulish-16-regular{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:16px;line-height:24px;letter-spacing:.2px}.p-mulish-16-regular-italic{font-family:Mulish,sans-serif;font-weight:400;font-style:italic;font-size:16px;line-height:24px;letter-spacing:.2px}.p-mulish-16-light{font-family:Mulish,sans-serif;font-weight:300;font-style:normal;font-size:16px;line-height:24px;letter-spacing:.2px}.p-mulish-16-light-italic{font-family:Mulish,sans-serif;font-weight:300;font-style:italic;font-size:16px;line-height:24px;letter-spacing:.2px}.p-mulish-14-bold{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.2px}.p-mulish-14-regular{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.2px}.p-mulish-14-regular-italic{font-family:Mulish,sans-serif;font-weight:400;font-style:italic;font-size:14px;line-height:21px;letter-spacing:.2px}.p-mulish-14-light{font-family:Mulish,sans-serif;font-weight:300;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.2px}.p-mulish-14-light-italic{font-family:Mulish,sans-serif;font-weight:300;font-style:italic;font-size:14px;line-height:21px;letter-spacing:.2px}.small-mulish-12-bold{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:12px;line-height:18px;letter-spacing:.2px}.small-mulish-12-regular{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:12px;line-height:18px;letter-spacing:.2px}.small-mulish-12-regular-italic{font-family:Mulish,sans-serif;font-weight:400;font-style:italic;font-size:12px;line-height:18px;letter-spacing:.2px}.small-mulish-12-light{font-family:Mulish,sans-serif;font-weight:300;font-style:normal;font-size:12px;line-height:18px;letter-spacing:.2px}.small-mulish-12-light-italic{font-family:Mulish,sans-serif;font-weight:300;font-style:italic;font-size:12px;line-height:18px;letter-spacing:.2px}.base-text-mulish{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:16px;line-height:24px;letter-spacing:0px;text-align:left}.visually-hidden{border:0;padding:0;margin:0;position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);clip-path:inset(50%);white-space:nowrap}label{display:inline}\n"] }]
|
|
306
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { type: [{
|
|
307
|
+
type: Input
|
|
308
|
+
}], defaultText: [{
|
|
309
|
+
type: Input
|
|
310
|
+
}], isLabel: [{
|
|
311
|
+
type: Input
|
|
312
|
+
}], hiddenLabel: [{
|
|
313
|
+
type: Input
|
|
314
|
+
}], child: [{
|
|
315
|
+
type: ViewChild,
|
|
316
|
+
args: ['ref', { static: false }]
|
|
317
|
+
}], labelChild: [{
|
|
318
|
+
type: ViewChild,
|
|
319
|
+
args: ['ref_label', { static: false }]
|
|
320
|
+
}] } });
|
|
321
|
+
|
|
322
|
+
class TypographyModule {
|
|
323
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TypographyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
324
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TypographyModule, declarations: [TypographyComponent], imports: [CommonModule], exports: [TypographyComponent] }); }
|
|
325
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TypographyModule, imports: [CommonModule] }); }
|
|
326
|
+
}
|
|
327
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TypographyModule, decorators: [{
|
|
328
|
+
type: NgModule,
|
|
329
|
+
args: [{
|
|
330
|
+
declarations: [
|
|
331
|
+
TypographyComponent
|
|
332
|
+
],
|
|
333
|
+
imports: [
|
|
334
|
+
CommonModule
|
|
335
|
+
],
|
|
336
|
+
exports: [
|
|
337
|
+
TypographyComponent
|
|
338
|
+
]
|
|
339
|
+
}]
|
|
340
|
+
}] });
|
|
341
|
+
|
|
342
|
+
class AvatarComponent {
|
|
343
|
+
constructor(themesService) {
|
|
344
|
+
this.themesService = themesService;
|
|
345
|
+
this.letters = '';
|
|
346
|
+
this.showInitials = false;
|
|
347
|
+
this.imageURL = '';
|
|
348
|
+
this.size = 'medium';
|
|
349
|
+
this.rounded = 'full';
|
|
350
|
+
this.fillMode = 'solid';
|
|
351
|
+
this.themeColor = 'base';
|
|
352
|
+
this.name = '';
|
|
353
|
+
this.userSvg = userIcon;
|
|
354
|
+
}
|
|
355
|
+
ngOnInit() {
|
|
356
|
+
if (!this.imageURL && this.name.length > 0) {
|
|
357
|
+
this.getInitials();
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
getInitials() {
|
|
361
|
+
let letters = '';
|
|
362
|
+
for (let i = 0; i < this.name.length; i++) {
|
|
363
|
+
if (this.name.charAt(i) === ' ') {
|
|
364
|
+
continue;
|
|
365
|
+
}
|
|
366
|
+
if (this.name.charAt(i) === this.name.charAt(i).toUpperCase()) {
|
|
367
|
+
letters += this.name.charAt(i);
|
|
368
|
+
if (letters.length == 2) {
|
|
369
|
+
break;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
this.letters = letters;
|
|
374
|
+
}
|
|
375
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AvatarComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
376
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AvatarComponent, selector: "lib-avatar", inputs: { showInitials: "showInitials", imageURL: "imageURL", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor", name: "name" }, ngImport: i0, template: "<div class=\"avatar\">\n <kendo-avatar\n *ngIf=\"!showInitials && imageURL\"\n [imageSrc]=\"imageURL\"\n [themeColor]=\"themeColor\"\n [rounded]=\"rounded\"\n [fillMode]=\"fillMode\"\n [size]=\"size\"\n ></kendo-avatar>\n <kendo-avatar\n *ngIf=\"showInitials && imageURL\"\n [imageSrc]=\"imageURL\"\n [themeColor]=\"themeColor\"\n [rounded]=\"rounded\"\n [fillMode]=\"fillMode\"\n [size]=\"size\"\n ></kendo-avatar>\n <kendo-avatar\n *ngIf=\"showInitials && !imageURL\"\n [initials]=\"letters\"\n [themeColor]=\"themeColor\"\n [rounded]=\"rounded\"\n [fillMode]=\"fillMode\"\n [size]=\"size\"\n >\n <lib-typography [defaultText]=\"letters\" type=\"P_MULISH_14_REGULAR\">\n </lib-typography>\n </kendo-avatar>\n <kendo-avatar\n *ngIf=\"!imageURL && !showInitials\"\n [svgIcon]=\"userSvg\"\n [themeColor]=\"themeColor\"\n [rounded]=\"rounded\"\n [fillMode]=\"fillMode\"\n [size]=\"size\"\n ></kendo-avatar>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: i2.AvatarComponent, selector: "kendo-avatar", inputs: ["shape", "size", "rounded", "themeColor", "fillMode", "fill", "border", "iconClass", "width", "height", "cssStyle", "initials", "icon", "imageSrc", "svgIcon"] }, { kind: "component", type: TypographyComponent, selector: "lib-typography", inputs: ["type", "defaultText", "isLabel", "hiddenLabel"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
377
|
+
}
|
|
378
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AvatarComponent, decorators: [{
|
|
379
|
+
type: Component,
|
|
380
|
+
args: [{ selector: 'lib-avatar', template: "<div class=\"avatar\">\n <kendo-avatar\n *ngIf=\"!showInitials && imageURL\"\n [imageSrc]=\"imageURL\"\n [themeColor]=\"themeColor\"\n [rounded]=\"rounded\"\n [fillMode]=\"fillMode\"\n [size]=\"size\"\n ></kendo-avatar>\n <kendo-avatar\n *ngIf=\"showInitials && imageURL\"\n [imageSrc]=\"imageURL\"\n [themeColor]=\"themeColor\"\n [rounded]=\"rounded\"\n [fillMode]=\"fillMode\"\n [size]=\"size\"\n ></kendo-avatar>\n <kendo-avatar\n *ngIf=\"showInitials && !imageURL\"\n [initials]=\"letters\"\n [themeColor]=\"themeColor\"\n [rounded]=\"rounded\"\n [fillMode]=\"fillMode\"\n [size]=\"size\"\n >\n <lib-typography [defaultText]=\"letters\" type=\"P_MULISH_14_REGULAR\">\n </lib-typography>\n </kendo-avatar>\n <kendo-avatar\n *ngIf=\"!imageURL && !showInitials\"\n [svgIcon]=\"userSvg\"\n [themeColor]=\"themeColor\"\n [rounded]=\"rounded\"\n [fillMode]=\"fillMode\"\n [size]=\"size\"\n ></kendo-avatar>\n</div>\n" }]
|
|
381
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { showInitials: [{
|
|
382
|
+
type: Input
|
|
383
|
+
}], imageURL: [{
|
|
384
|
+
type: Input
|
|
385
|
+
}], size: [{
|
|
386
|
+
type: Input
|
|
387
|
+
}], rounded: [{
|
|
388
|
+
type: Input
|
|
389
|
+
}], fillMode: [{
|
|
390
|
+
type: Input
|
|
391
|
+
}], themeColor: [{
|
|
392
|
+
type: Input
|
|
393
|
+
}], name: [{
|
|
394
|
+
type: Input
|
|
395
|
+
}] } });
|
|
396
|
+
|
|
397
|
+
class AvatarModule {
|
|
398
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AvatarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
399
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: AvatarModule, declarations: [AvatarComponent], imports: [LayoutModule, TypographyModule, CommonModule], exports: [AvatarComponent] }); }
|
|
400
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AvatarModule, imports: [LayoutModule, TypographyModule, CommonModule] }); }
|
|
401
|
+
}
|
|
402
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AvatarModule, decorators: [{
|
|
403
|
+
type: NgModule,
|
|
404
|
+
args: [{
|
|
405
|
+
declarations: [AvatarComponent],
|
|
406
|
+
imports: [LayoutModule, TypographyModule, CommonModule],
|
|
407
|
+
exports: [AvatarComponent]
|
|
408
|
+
}]
|
|
409
|
+
}] });
|
|
410
|
+
|
|
411
|
+
const defaultItems = [
|
|
412
|
+
{
|
|
413
|
+
text: 'Home',
|
|
414
|
+
title: 'Home',
|
|
415
|
+
svgIcon: homeIcon,
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
text: 'Products',
|
|
419
|
+
title: 'Products',
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
text: 'Computer peripherals',
|
|
423
|
+
title: 'Computer peripherals',
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
text: 'Keyboards',
|
|
427
|
+
title: 'Keyboards',
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
text: 'Gaming keyboards',
|
|
431
|
+
title: 'Gaming keyboards',
|
|
432
|
+
},
|
|
433
|
+
];
|
|
434
|
+
class BreadcrumbComponent {
|
|
435
|
+
constructor(themesService) {
|
|
436
|
+
this.themesService = themesService;
|
|
437
|
+
this.items = [...defaultItems];
|
|
438
|
+
this.valueChange = new EventEmitter();
|
|
439
|
+
this.homeIcon = homeIcon;
|
|
440
|
+
}
|
|
441
|
+
ngOnInit() { }
|
|
442
|
+
onItemClick(item) {
|
|
443
|
+
const index = this.items.findIndex((e) => e.text === item.text);
|
|
444
|
+
this.items = this.items.slice(0, index + 1);
|
|
445
|
+
this.emitValueChange(this.items);
|
|
446
|
+
}
|
|
447
|
+
refreshBreadCrumb() {
|
|
448
|
+
this.items = [...defaultItems];
|
|
449
|
+
}
|
|
450
|
+
emitValueChange(itemsToBeEmit) {
|
|
451
|
+
this.valueChange.emit(itemsToBeEmit);
|
|
452
|
+
}
|
|
453
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BreadcrumbComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
454
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: BreadcrumbComponent, selector: "lib-breadcrumb", inputs: { items: "items" }, outputs: { valueChange: "valueChange" }, ngImport: i0, template: "<div class=\"item\">\n <kendo-breadcrumb\n [items]=\"items\"\n (itemClick)=\"onItemClick($event)\"\n ></kendo-breadcrumb>\n</div>\n", styles: ["@font-face{font-family:Mulish;src:url(/assets/fonts/Mulish-Light.ttf);font-weight:300;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-LightItalic.ttf);font-weight:300;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Regular.ttf);font-weight:400;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Italic.ttf);font-weight:400;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Bold.ttf);font-weight:700;font-style:normal}.item .k-breadcrumb{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:12px;line-height:18px;letter-spacing:.2px}\n"], dependencies: [{ kind: "component", type: i2$1.BreadCrumbComponent, selector: "kendo-breadcrumb", inputs: ["items", "separatorIcon", "separatorSVGIcon", "collapseMode", "size"], outputs: ["itemClick"], exportAs: ["kendoBreadCrumb"] }] }); }
|
|
455
|
+
}
|
|
456
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BreadcrumbComponent, decorators: [{
|
|
457
|
+
type: Component,
|
|
458
|
+
args: [{ selector: 'lib-breadcrumb', template: "<div class=\"item\">\n <kendo-breadcrumb\n [items]=\"items\"\n (itemClick)=\"onItemClick($event)\"\n ></kendo-breadcrumb>\n</div>\n", styles: ["@font-face{font-family:Mulish;src:url(/assets/fonts/Mulish-Light.ttf);font-weight:300;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-LightItalic.ttf);font-weight:300;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Regular.ttf);font-weight:400;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Italic.ttf);font-weight:400;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Bold.ttf);font-weight:700;font-style:normal}.item .k-breadcrumb{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:12px;line-height:18px;letter-spacing:.2px}\n"] }]
|
|
459
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { items: [{
|
|
460
|
+
type: Input
|
|
461
|
+
}], valueChange: [{
|
|
462
|
+
type: Output
|
|
463
|
+
}] } });
|
|
464
|
+
|
|
465
|
+
class BreadcrumbModule {
|
|
466
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BreadcrumbModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
467
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: BreadcrumbModule, declarations: [BreadcrumbComponent], imports: [CommonModule,
|
|
468
|
+
NavigationModule,
|
|
469
|
+
ButtonsModule,
|
|
470
|
+
DropDownsModule,
|
|
471
|
+
InputsModule], exports: [BreadcrumbComponent] }); }
|
|
472
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BreadcrumbModule, imports: [CommonModule,
|
|
473
|
+
NavigationModule,
|
|
474
|
+
ButtonsModule,
|
|
475
|
+
DropDownsModule,
|
|
476
|
+
InputsModule] }); }
|
|
477
|
+
}
|
|
478
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BreadcrumbModule, decorators: [{
|
|
479
|
+
type: NgModule,
|
|
480
|
+
args: [{
|
|
481
|
+
declarations: [BreadcrumbComponent],
|
|
482
|
+
imports: [
|
|
483
|
+
CommonModule,
|
|
484
|
+
NavigationModule,
|
|
485
|
+
ButtonsModule,
|
|
486
|
+
DropDownsModule,
|
|
487
|
+
InputsModule
|
|
488
|
+
],
|
|
489
|
+
exports: [BreadcrumbComponent]
|
|
490
|
+
}]
|
|
491
|
+
}] });
|
|
492
|
+
|
|
493
|
+
class IconComponent {
|
|
494
|
+
constructor(themesService) {
|
|
495
|
+
this.themesService = themesService;
|
|
496
|
+
this.name = '';
|
|
497
|
+
this.fontSize = 16;
|
|
498
|
+
}
|
|
499
|
+
ngOnInit() { }
|
|
500
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IconComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
501
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: IconComponent, selector: "lib-icon", inputs: { name: "name", fontSize: "fontSize", type: "type" }, ngImport: i0, template: "<i\n class=\"iconfont icon-{{ name }} {{type}}\"\n attr.aria-label=\"{{ name }}\"\n role=\"img\"\n [style.fontSize.px]=\"fontSize\"\n></i>\n", styles: [".error{color:#dc267f}.success{color:#0075db}\n"] }); }
|
|
502
|
+
}
|
|
503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IconComponent, decorators: [{
|
|
504
|
+
type: Component,
|
|
505
|
+
args: [{ selector: 'lib-icon', template: "<i\n class=\"iconfont icon-{{ name }} {{type}}\"\n attr.aria-label=\"{{ name }}\"\n role=\"img\"\n [style.fontSize.px]=\"fontSize\"\n></i>\n", styles: [".error{color:#dc267f}.success{color:#0075db}\n"] }]
|
|
506
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { name: [{
|
|
507
|
+
type: Input
|
|
508
|
+
}], fontSize: [{
|
|
509
|
+
type: Input
|
|
510
|
+
}], type: [{
|
|
511
|
+
type: Input
|
|
512
|
+
}] } });
|
|
513
|
+
|
|
514
|
+
class IconModule {
|
|
515
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
516
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: IconModule, declarations: [IconComponent], exports: [IconComponent] }); }
|
|
517
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IconModule }); }
|
|
518
|
+
}
|
|
519
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IconModule, decorators: [{
|
|
520
|
+
type: NgModule,
|
|
521
|
+
args: [{
|
|
522
|
+
imports: [],
|
|
523
|
+
declarations: [IconComponent],
|
|
524
|
+
exports: [IconComponent],
|
|
525
|
+
}]
|
|
526
|
+
}] });
|
|
527
|
+
|
|
528
|
+
class ButtonComponent {
|
|
529
|
+
constructor(themesService) {
|
|
530
|
+
this.themesService = themesService;
|
|
531
|
+
this.size = 'medium';
|
|
532
|
+
this.rounded = 'medium';
|
|
533
|
+
this.fillMode = 'solid';
|
|
534
|
+
this.themeColor = 'base';
|
|
535
|
+
this.label = '';
|
|
536
|
+
this.iconName = '';
|
|
537
|
+
this.disabled = false;
|
|
538
|
+
this.toggleable = false;
|
|
539
|
+
this.iconPosition = '';
|
|
540
|
+
this.fontType = 'P_MULISH_16_REGULAR';
|
|
541
|
+
this.width = '300';
|
|
542
|
+
this.buttonClick = new EventEmitter();
|
|
543
|
+
this.iconButton = false;
|
|
544
|
+
}
|
|
545
|
+
ngOnInit() { }
|
|
546
|
+
onButtonClick(e) {
|
|
547
|
+
this.buttonClick.emit(e);
|
|
548
|
+
}
|
|
549
|
+
button_size() {
|
|
550
|
+
switch (this.size) {
|
|
551
|
+
case 'small':
|
|
552
|
+
return 'small-btn';
|
|
553
|
+
case 'medium':
|
|
554
|
+
return 'medium-btn';
|
|
555
|
+
case 'large':
|
|
556
|
+
return 'large-btn';
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
560
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ButtonComponent, selector: "lib-button", inputs: { size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor", label: "label", iconName: "iconName", disabled: "disabled", toggleable: "toggleable", iconPosition: "iconPosition", fontType: "fontType", width: "width", iconButton: "iconButton" }, outputs: { buttonClick: "buttonClick" }, ngImport: i0, template: "<button kendoButton [size]=\"size\" [style.width]=\"width\" [fillMode]=\"fillMode\" [rounded]=\"rounded\" [themeColor]=\"themeColor\"\n (click)=\"onButtonClick($event)\" [disabled]=\"disabled\" [toggleable]=\"toggleable\" [ngClass]=\"button_size()\">\n <lib-icon *ngIf=\"iconName.length > 0 && iconPosition === 'before'\" [name]=\"iconName\" class=\"btn-icon before\"></lib-icon>\n <lib-icon *ngIf=\"iconName.length > 0 && iconButton\" [name]=\"iconName\" class=\"btn-icon\"></lib-icon>\n <lib-typography [defaultText]=\"label\" [type]=\"fontType\" class=\"text\">\n </lib-typography>\n <lib-icon *ngIf=\"iconName.length > 0 && iconPosition === 'after'\" [name]=\"iconName\" class=\"btn-icon after\"></lib-icon>\n</button>\n", styles: ["@font-face{font-family:Mulish;src:url(/assets/fonts/Mulish-Light.ttf);font-weight:300;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-LightItalic.ttf);font-weight:300;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Regular.ttf);font-weight:400;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Italic.ttf);font-weight:400;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Bold.ttf);font-weight:700;font-style:normal}.btn-icon{top:1px;position:relative}.before{padding-right:6px}.after{padding-left:6px}button:disabled{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:16px;line-height:24px;letter-spacing:.2px}.small-btn{padding:5px 13px}.medium-btn{padding:7px 13px}.large-btn{padding:9px 13px}.text{bottom:.5px;position:relative}button{border-radius:4px}\n"], dependencies: [{ kind: "component", type: i2$2.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: TypographyComponent, selector: "lib-typography", inputs: ["type", "defaultText", "isLabel", "hiddenLabel"] }, { kind: "component", type: IconComponent, selector: "lib-icon", inputs: ["name", "fontSize", "type"] }, { kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
561
|
+
}
|
|
562
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
563
|
+
type: Component,
|
|
564
|
+
args: [{ selector: 'lib-button', template: "<button kendoButton [size]=\"size\" [style.width]=\"width\" [fillMode]=\"fillMode\" [rounded]=\"rounded\" [themeColor]=\"themeColor\"\n (click)=\"onButtonClick($event)\" [disabled]=\"disabled\" [toggleable]=\"toggleable\" [ngClass]=\"button_size()\">\n <lib-icon *ngIf=\"iconName.length > 0 && iconPosition === 'before'\" [name]=\"iconName\" class=\"btn-icon before\"></lib-icon>\n <lib-icon *ngIf=\"iconName.length > 0 && iconButton\" [name]=\"iconName\" class=\"btn-icon\"></lib-icon>\n <lib-typography [defaultText]=\"label\" [type]=\"fontType\" class=\"text\">\n </lib-typography>\n <lib-icon *ngIf=\"iconName.length > 0 && iconPosition === 'after'\" [name]=\"iconName\" class=\"btn-icon after\"></lib-icon>\n</button>\n", styles: ["@font-face{font-family:Mulish;src:url(/assets/fonts/Mulish-Light.ttf);font-weight:300;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-LightItalic.ttf);font-weight:300;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Regular.ttf);font-weight:400;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Italic.ttf);font-weight:400;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Bold.ttf);font-weight:700;font-style:normal}.btn-icon{top:1px;position:relative}.before{padding-right:6px}.after{padding-left:6px}button:disabled{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:16px;line-height:24px;letter-spacing:.2px}.small-btn{padding:5px 13px}.medium-btn{padding:7px 13px}.large-btn{padding:9px 13px}.text{bottom:.5px;position:relative}button{border-radius:4px}\n"] }]
|
|
565
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { size: [{
|
|
566
|
+
type: Input
|
|
567
|
+
}], rounded: [{
|
|
568
|
+
type: Input
|
|
569
|
+
}], fillMode: [{
|
|
570
|
+
type: Input
|
|
571
|
+
}], themeColor: [{
|
|
572
|
+
type: Input
|
|
573
|
+
}], label: [{
|
|
574
|
+
type: Input
|
|
575
|
+
}], iconName: [{
|
|
576
|
+
type: Input
|
|
577
|
+
}], disabled: [{
|
|
578
|
+
type: Input
|
|
579
|
+
}], toggleable: [{
|
|
580
|
+
type: Input
|
|
581
|
+
}], iconPosition: [{
|
|
582
|
+
type: Input
|
|
583
|
+
}], fontType: [{
|
|
584
|
+
type: Input
|
|
585
|
+
}], width: [{
|
|
586
|
+
type: Input
|
|
587
|
+
}], buttonClick: [{
|
|
588
|
+
type: Output
|
|
589
|
+
}], iconButton: [{
|
|
590
|
+
type: Input
|
|
591
|
+
}] } });
|
|
592
|
+
|
|
593
|
+
class ButtonModule {
|
|
594
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
595
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ButtonModule, declarations: [ButtonComponent], imports: [ButtonsModule, TypographyModule, IconModule, CommonModule], exports: [ButtonComponent] }); }
|
|
596
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonModule, imports: [ButtonsModule, TypographyModule, IconModule, CommonModule] }); }
|
|
597
|
+
}
|
|
598
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonModule, decorators: [{
|
|
599
|
+
type: NgModule,
|
|
600
|
+
args: [{
|
|
601
|
+
imports: [ButtonsModule, TypographyModule, IconModule, CommonModule],
|
|
602
|
+
declarations: [ButtonComponent],
|
|
603
|
+
exports: [ButtonComponent],
|
|
604
|
+
}]
|
|
605
|
+
}] });
|
|
606
|
+
|
|
607
|
+
class ButtonGroupComponent {
|
|
608
|
+
constructor(themesService) {
|
|
609
|
+
this.themesService = themesService;
|
|
610
|
+
this.buttons = [];
|
|
611
|
+
this.selection = 'single';
|
|
612
|
+
this.size = 'medium';
|
|
613
|
+
this.rounded = 'medium';
|
|
614
|
+
this.fillMode = 'solid';
|
|
615
|
+
this.themeColor = 'base';
|
|
616
|
+
this.label = 'button';
|
|
617
|
+
this.disabled = false;
|
|
618
|
+
this.toggleable = true;
|
|
619
|
+
this.buttonClick = new EventEmitter();
|
|
620
|
+
}
|
|
621
|
+
onButtonClick(label) {
|
|
622
|
+
this.buttonClick.emit(label);
|
|
623
|
+
}
|
|
624
|
+
ngOnInit() { }
|
|
625
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonGroupComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
626
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ButtonGroupComponent, selector: "lib-button-group", inputs: { buttons: "buttons", selection: "selection", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor", label: "label", disabled: "disabled", toggleable: "toggleable" }, outputs: { buttonClick: "buttonClick" }, ngImport: i0, template: "<kendo-buttongroup [selection]=\"selection\">\n <button *ngFor=\"let btn of buttons\"\n kendoButton\n [size]=\"size\"\n [fillMode]=\"fillMode\"\n [rounded]=\"rounded\"\n [themeColor]=\"themeColor\"\n [disabled]=\"disabled\"\n [toggleable]=\"toggleable\"\n (click)=\"onButtonClick(btn.label)\"\n [selected]=\"btn.selected\"\n >\n <lib-typography defaultText={{btn.label}} type=\"P_MULISH_16_REGULAR\"></lib-typography>\n <ng-content></ng-content>\n </button>\n</kendo-buttongroup>\n", styles: [""], dependencies: [{ kind: "component", type: i2$2.ButtonGroupComponent, selector: "kendo-buttongroup", inputs: ["disabled", "selection", "width", "tabIndex", "navigable"], outputs: ["navigate"], exportAs: ["kendoButtonGroup"] }, { kind: "component", type: i2$2.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: TypographyComponent, selector: "lib-typography", inputs: ["type", "defaultText", "isLabel", "hiddenLabel"] }, { kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] }); }
|
|
627
|
+
}
|
|
628
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonGroupComponent, decorators: [{
|
|
629
|
+
type: Component,
|
|
630
|
+
args: [{ selector: 'lib-button-group', template: "<kendo-buttongroup [selection]=\"selection\">\n <button *ngFor=\"let btn of buttons\"\n kendoButton\n [size]=\"size\"\n [fillMode]=\"fillMode\"\n [rounded]=\"rounded\"\n [themeColor]=\"themeColor\"\n [disabled]=\"disabled\"\n [toggleable]=\"toggleable\"\n (click)=\"onButtonClick(btn.label)\"\n [selected]=\"btn.selected\"\n >\n <lib-typography defaultText={{btn.label}} type=\"P_MULISH_16_REGULAR\"></lib-typography>\n <ng-content></ng-content>\n </button>\n</kendo-buttongroup>\n" }]
|
|
631
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { buttons: [{
|
|
632
|
+
type: Input
|
|
633
|
+
}], selection: [{
|
|
634
|
+
type: Input
|
|
635
|
+
}], size: [{
|
|
636
|
+
type: Input
|
|
637
|
+
}], rounded: [{
|
|
638
|
+
type: Input
|
|
639
|
+
}], fillMode: [{
|
|
640
|
+
type: Input
|
|
641
|
+
}], themeColor: [{
|
|
642
|
+
type: Input
|
|
643
|
+
}], label: [{
|
|
644
|
+
type: Input
|
|
645
|
+
}], disabled: [{
|
|
646
|
+
type: Input
|
|
647
|
+
}], toggleable: [{
|
|
648
|
+
type: Input
|
|
649
|
+
}], buttonClick: [{
|
|
650
|
+
type: Output
|
|
651
|
+
}] } });
|
|
652
|
+
|
|
653
|
+
class ButtonGroupModule {
|
|
654
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
655
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ButtonGroupModule, declarations: [ButtonGroupComponent], imports: [ButtonsModule, TypographyModule, IconModule, CommonModule], exports: [ButtonGroupComponent] }); }
|
|
656
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonGroupModule, imports: [ButtonsModule, TypographyModule, IconModule, CommonModule] }); }
|
|
657
|
+
}
|
|
658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ButtonGroupModule, decorators: [{
|
|
659
|
+
type: NgModule,
|
|
660
|
+
args: [{
|
|
661
|
+
imports: [ButtonsModule, TypographyModule, IconModule, CommonModule],
|
|
662
|
+
declarations: [ButtonGroupComponent],
|
|
663
|
+
exports: [ButtonGroupComponent],
|
|
664
|
+
}]
|
|
665
|
+
}] });
|
|
666
|
+
|
|
667
|
+
class CheckboxComponent {
|
|
668
|
+
constructor(themesService) {
|
|
669
|
+
this.themesService = themesService;
|
|
670
|
+
this.control = new FormControl();
|
|
671
|
+
this.id = '';
|
|
672
|
+
this.size = 'medium';
|
|
673
|
+
this.rounded = 'none';
|
|
674
|
+
this.label = '';
|
|
675
|
+
this.labelPosition = 'before';
|
|
676
|
+
this.modelChange = new EventEmitter();
|
|
677
|
+
}
|
|
678
|
+
ngOnInit() { }
|
|
679
|
+
emitValueChange(ev) {
|
|
680
|
+
this.modelChange.emit(ev);
|
|
681
|
+
}
|
|
682
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckboxComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
683
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CheckboxComponent, selector: "lib-checkbox", inputs: { control: "control", id: "id", size: "size", rounded: "rounded", label: "label", labelPosition: "labelPosition" }, outputs: { modelChange: "modelChange" }, ngImport: i0, template: "<span *ngIf=\"label.length > 0 && labelPosition === 'before'\">\n <label class=\"k-checkbox-label\" for=\"{{ id }}\">\n <lib-typography [defaultText]=\"label\" type=\"P_MULISH_16_REGULAR\"></lib-typography>\n </label>\n \n</span>\n<input type=\"checkbox\" [size]=\"size\" [rounded]=\"rounded\" [id]=\"id\" (ngModelChange)=\"emitValueChange($event)\"\n [formControl]=\"control\" kendoCheckBox />\n<span *ngIf=\"label.length > 0 && labelPosition === 'after'\">\n \n <label class=\"k-checkbox-label\" for=\"{{ id }}\">\n <lib-typography [defaultText]=\"label\" type=\"P_MULISH_16_REGULAR\">\n </lib-typography>\n </label>\n</span>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.CheckBoxDirective, selector: "input[kendoCheckBox]", inputs: ["size", "rounded"] }, { kind: "directive", type: i4.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: TypographyComponent, selector: "lib-typography", inputs: ["type", "defaultText", "isLabel", "hiddenLabel"] }] }); }
|
|
684
|
+
}
|
|
685
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckboxComponent, decorators: [{
|
|
686
|
+
type: Component,
|
|
687
|
+
args: [{ selector: 'lib-checkbox', template: "<span *ngIf=\"label.length > 0 && labelPosition === 'before'\">\n <label class=\"k-checkbox-label\" for=\"{{ id }}\">\n <lib-typography [defaultText]=\"label\" type=\"P_MULISH_16_REGULAR\"></lib-typography>\n </label>\n \n</span>\n<input type=\"checkbox\" [size]=\"size\" [rounded]=\"rounded\" [id]=\"id\" (ngModelChange)=\"emitValueChange($event)\"\n [formControl]=\"control\" kendoCheckBox />\n<span *ngIf=\"label.length > 0 && labelPosition === 'after'\">\n \n <label class=\"k-checkbox-label\" for=\"{{ id }}\">\n <lib-typography [defaultText]=\"label\" type=\"P_MULISH_16_REGULAR\">\n </lib-typography>\n </label>\n</span>\n" }]
|
|
688
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { control: [{
|
|
689
|
+
type: Input
|
|
690
|
+
}], id: [{
|
|
691
|
+
type: Input
|
|
692
|
+
}], size: [{
|
|
693
|
+
type: Input
|
|
694
|
+
}], rounded: [{
|
|
695
|
+
type: Input
|
|
696
|
+
}], label: [{
|
|
697
|
+
type: Input
|
|
698
|
+
}], labelPosition: [{
|
|
699
|
+
type: Input
|
|
700
|
+
}], modelChange: [{
|
|
701
|
+
type: Output
|
|
702
|
+
}] } });
|
|
703
|
+
|
|
704
|
+
class CheckboxModule {
|
|
705
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
706
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: CheckboxModule, declarations: [CheckboxComponent], imports: [CommonModule,
|
|
707
|
+
InputsModule,
|
|
708
|
+
ReactiveFormsModule,
|
|
709
|
+
TypographyModule], exports: [CheckboxComponent] }); }
|
|
710
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckboxModule, imports: [CommonModule,
|
|
711
|
+
InputsModule,
|
|
712
|
+
ReactiveFormsModule,
|
|
713
|
+
TypographyModule] }); }
|
|
714
|
+
}
|
|
715
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckboxModule, decorators: [{
|
|
716
|
+
type: NgModule,
|
|
717
|
+
args: [{
|
|
718
|
+
declarations: [CheckboxComponent],
|
|
719
|
+
imports: [
|
|
720
|
+
CommonModule,
|
|
721
|
+
InputsModule,
|
|
722
|
+
ReactiveFormsModule,
|
|
723
|
+
TypographyModule
|
|
724
|
+
],
|
|
725
|
+
exports: [CheckboxComponent]
|
|
726
|
+
}]
|
|
727
|
+
}] });
|
|
728
|
+
|
|
729
|
+
class ExpansionPanelComponent {
|
|
730
|
+
constructor(themesService) {
|
|
731
|
+
this.themesService = themesService;
|
|
732
|
+
this.title = "Title";
|
|
733
|
+
this.subtitle = "Subtitle2";
|
|
734
|
+
this.data = "some data";
|
|
735
|
+
this.expanded = true;
|
|
736
|
+
this.customHeader = false;
|
|
737
|
+
this.disabled = false;
|
|
738
|
+
}
|
|
739
|
+
ngOnInit() { }
|
|
740
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExpansionPanelComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
741
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ExpansionPanelComponent, selector: "lib-expansion-panel", inputs: { title: "title", subtitle: "subtitle", data: "data", expanded: "expanded", customHeader: "customHeader", disabled: "disabled" }, ngImport: i0, template: "<kendo-expansionpanel [expanded]=\"expanded\" [disabled]=\"disabled\">\n <ng-template kendoExpansionPanelTitleDirective>\n <div class=\"expansion-header-content\" *ngIf=\"!customHeader\">\n <lib-typography\n [defaultText]=\"title\"\n type=\"H3_MULISH_18_REGULAR\">\n </lib-typography>\n <lib-typography\n [defaultText]=\"subtitle\"\n type=\"H5_MULISH_14_REGULAR\">\n </lib-typography>\n </div>\n <div class=\"expansion-header-content\" *ngIf=\"customHeader\">\n <ng-content select=\"header\"></ng-content>\n </div>\n </ng-template>\n <lib-container\n c_class=\"container\"\n padding=\"pd-small\"\n margin=\"mr-small\">\n <ng-content></ng-content>\n </lib-container>\n</kendo-expansionpanel>\n", styles: [".expansion-header-content{width:100%;display:flex;justify-content:space-between}\n"], dependencies: [{ kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ExpansionPanelComponent, selector: "kendo-expansionpanel", inputs: ["title", "subtitle", "disabled", "expanded", "svgExpandIcon", "svgCollapseIcon", "expandIcon", "collapseIcon", "animation"], outputs: ["expandedChange", "action", "expand", "collapse"], exportAs: ["kendoExpansionPanel"] }, { kind: "directive", type: i2.ExpansionPanelTitleDirective, selector: "[kendoExpansionPanelTitleDirective]" }, { kind: "component", type: ContainerComponent, selector: "lib-container", inputs: ["c_class", "padding", "margin"] }, { kind: "component", type: TypographyComponent, selector: "lib-typography", inputs: ["type", "defaultText", "isLabel", "hiddenLabel"] }] }); }
|
|
742
|
+
}
|
|
743
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExpansionPanelComponent, decorators: [{
|
|
744
|
+
type: Component,
|
|
745
|
+
args: [{ selector: 'lib-expansion-panel', template: "<kendo-expansionpanel [expanded]=\"expanded\" [disabled]=\"disabled\">\n <ng-template kendoExpansionPanelTitleDirective>\n <div class=\"expansion-header-content\" *ngIf=\"!customHeader\">\n <lib-typography\n [defaultText]=\"title\"\n type=\"H3_MULISH_18_REGULAR\">\n </lib-typography>\n <lib-typography\n [defaultText]=\"subtitle\"\n type=\"H5_MULISH_14_REGULAR\">\n </lib-typography>\n </div>\n <div class=\"expansion-header-content\" *ngIf=\"customHeader\">\n <ng-content select=\"header\"></ng-content>\n </div>\n </ng-template>\n <lib-container\n c_class=\"container\"\n padding=\"pd-small\"\n margin=\"mr-small\">\n <ng-content></ng-content>\n </lib-container>\n</kendo-expansionpanel>\n", styles: [".expansion-header-content{width:100%;display:flex;justify-content:space-between}\n"] }]
|
|
746
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { title: [{
|
|
747
|
+
type: Input
|
|
748
|
+
}], subtitle: [{
|
|
749
|
+
type: Input
|
|
750
|
+
}], data: [{
|
|
751
|
+
type: Input
|
|
752
|
+
}], expanded: [{
|
|
753
|
+
type: Input
|
|
754
|
+
}], customHeader: [{
|
|
755
|
+
type: Input
|
|
756
|
+
}], disabled: [{
|
|
757
|
+
type: Input
|
|
758
|
+
}] } });
|
|
759
|
+
|
|
760
|
+
class ExpansionPanelModule {
|
|
761
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExpansionPanelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
762
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ExpansionPanelModule, declarations: [ExpansionPanelComponent], imports: [CommonModule,
|
|
763
|
+
LayoutModule,
|
|
764
|
+
IconsModule,
|
|
765
|
+
ButtonsModule,
|
|
766
|
+
InputsModule,
|
|
767
|
+
LabelModule,
|
|
768
|
+
DropDownsModule,
|
|
769
|
+
BrowserAnimationsModule,
|
|
770
|
+
ContainerModule,
|
|
771
|
+
TypographyModule], exports: [ExpansionPanelComponent] }); }
|
|
772
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExpansionPanelModule, imports: [CommonModule,
|
|
773
|
+
LayoutModule,
|
|
774
|
+
IconsModule,
|
|
775
|
+
ButtonsModule,
|
|
776
|
+
InputsModule,
|
|
777
|
+
LabelModule,
|
|
778
|
+
DropDownsModule,
|
|
779
|
+
BrowserAnimationsModule,
|
|
780
|
+
ContainerModule,
|
|
781
|
+
TypographyModule] }); }
|
|
782
|
+
}
|
|
783
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExpansionPanelModule, decorators: [{
|
|
784
|
+
type: NgModule,
|
|
785
|
+
args: [{
|
|
786
|
+
declarations: [ExpansionPanelComponent],
|
|
787
|
+
imports: [
|
|
788
|
+
CommonModule,
|
|
789
|
+
LayoutModule,
|
|
790
|
+
IconsModule,
|
|
791
|
+
ButtonsModule,
|
|
792
|
+
InputsModule,
|
|
793
|
+
LabelModule,
|
|
794
|
+
DropDownsModule,
|
|
795
|
+
BrowserAnimationsModule,
|
|
796
|
+
ContainerModule,
|
|
797
|
+
TypographyModule
|
|
798
|
+
],
|
|
799
|
+
exports: [ExpansionPanelComponent]
|
|
800
|
+
}]
|
|
801
|
+
}] });
|
|
802
|
+
|
|
803
|
+
class DropdownComponent {
|
|
804
|
+
constructor(themesService) {
|
|
805
|
+
this.themesService = themesService;
|
|
806
|
+
this.id = "sampleId";
|
|
807
|
+
this.label = "";
|
|
808
|
+
this.data = [];
|
|
809
|
+
this.isDisabled = false;
|
|
810
|
+
this.clearButton = false;
|
|
811
|
+
this.fillMode = "solid";
|
|
812
|
+
this.filterable = true;
|
|
813
|
+
this.placeholder = "";
|
|
814
|
+
this.readonly = false;
|
|
815
|
+
this.rounded = "medium";
|
|
816
|
+
this.size = "medium";
|
|
817
|
+
this.suggest = true;
|
|
818
|
+
this.valuePrimitive = false;
|
|
819
|
+
this.modelChange = new EventEmitter();
|
|
820
|
+
this.control = new FormControl();
|
|
821
|
+
this.fontType = 'P_MULISH_14_REGULAR';
|
|
822
|
+
this.focus = false;
|
|
823
|
+
}
|
|
824
|
+
ngOnChanges(changes) {
|
|
825
|
+
if (changes['isDisabled']) {
|
|
826
|
+
if (changes['isDisabled']?.currentValue) {
|
|
827
|
+
this.control.disable();
|
|
828
|
+
}
|
|
829
|
+
else {
|
|
830
|
+
this.control.enable();
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
ngOnInit() {
|
|
835
|
+
}
|
|
836
|
+
ngAfterViewInit() {
|
|
837
|
+
if (this.focus) {
|
|
838
|
+
this.comboBox.focus();
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
emitModelChange(ev) {
|
|
842
|
+
this.modelChange.emit(ev);
|
|
843
|
+
}
|
|
844
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropdownComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
845
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DropdownComponent, selector: "lib-dropdown", inputs: { id: "id", label: "label", data: "data", isDisabled: "isDisabled", clearButton: "clearButton", fillMode: "fillMode", filterable: "filterable", placeholder: "placeholder", readonly: "readonly", rounded: "rounded", size: "size", suggest: "suggest", textField: "textField", value: "value", valueField: "valueField", valuePrimitive: "valuePrimitive", model: "model", control: "control", fontType: "fontType", focus: "focus" }, outputs: { modelChange: "modelChange" }, viewQueries: [{ propertyName: "comboBox", first: true, predicate: ["comboBox"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<span class=\"dropdown\">\n <span *ngIf=\"label.length > 0\">\n <label class=\"checkbox-label\" for=\"{{ id }}\">\n <lib-typography [defaultText]=\"label\" [type]=\"fontType\">\n </lib-typography>\n </label>\n \n </span>\n <kendo-combobox #comboBox [id]=\"id\" [data]=\"data\" [clearButton]=\"clearButton\" [fillMode]=\"fillMode\"\n [filterable]=\"filterable\" [placeholder]=\"placeholder\" [readonly]=\"readonly\" [rounded]=\"rounded\" [size]=\"size\"\n [suggest]=\"suggest\" [textField]=\"textField\" [value]=\"value\" [valueField]=\"valueField\"\n [valuePrimitive]=\"valuePrimitive\" [ngModel]=\"model\" (ngModelChange)=\"emitModelChange($event)\"\n [formControl]=\"control\">\n <ng-template kendoComboBoxHeaderTemplate>\n <ng-content select=\"header\"></ng-content>\n </ng-template>\n <ng-template kendoComboBoxItemTemplate let-data>\n <img *ngIf=\"data.imageUrl && data.imageUrl.length > 0\" [src]=\"data.imageUrl\" [width]=\"18\" [alt]=\"data.imageUrl\" />\n <div ngClass=\"data.imageUrl.length > 0 ? 'rowData' : ''\">\n <lib-typography [defaultText]=\"data.name\" [type]=\"fontType\">\n </lib-typography>\n </div>\n </ng-template>\n </kendo-combobox>\n</span>\n", styles: ["@font-face{font-family:Mulish;src:url(/assets/fonts/Mulish-Light.ttf);font-weight:300;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-LightItalic.ttf);font-weight:300;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Regular.ttf);font-weight:400;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Italic.ttf);font-weight:400;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Bold.ttf);font-weight:700;font-style:normal}.checkbox-label{margin-bottom:8px}::ng-deep .rowData{padding-left:1rem}::ng-deep .k-list-md .k-list-item,::ng-deep .k-list-md .k-list-optionlabel{border-bottom:1px solid #CDD7DD;padding:8px 16px}::ng-deep .k-list-md{border-radius:0 0 8px 8px}::ng-deep .k-list-container{border-radius:0 0 8px 8px}\n"], dependencies: [{ kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$2.HeaderTemplateDirective, selector: "[kendoDropDownListHeaderTemplate],[kendoComboBoxHeaderTemplate],[kendoDropDownTreeHeaderTemplate],[kendoMultiColumnComboBoxHeaderTemplate],[kendoAutoCompleteHeaderTemplate],[kendoMultiSelectHeaderTemplate],[kendoMultiSelectTreeHeaderTemplate]" }, { kind: "directive", type: i3$2.ItemTemplateDirective, selector: "[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]" }, { kind: "component", type: i3$2.ComboBoxComponent, selector: "kendo-combobox", inputs: ["icon", "svgIcon", "showStickyHeader", "focusableId", "allowCustom", "data", "value", "textField", "valueField", "valuePrimitive", "valueNormalizer", "placeholder", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "loading", "suggest", "clearButton", "disabled", "itemDisabled", "readonly", "tabindex", "tabIndex", "filterable", "virtual", "size", "rounded", "fillMode"], outputs: ["valueChange", "selectionChange", "filterChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoComboBox"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: TypographyComponent, selector: "lib-typography", inputs: ["type", "defaultText", "isLabel", "hiddenLabel"] }] }); }
|
|
846
|
+
}
|
|
847
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropdownComponent, decorators: [{
|
|
848
|
+
type: Component,
|
|
849
|
+
args: [{ selector: 'lib-dropdown', template: "<span class=\"dropdown\">\n <span *ngIf=\"label.length > 0\">\n <label class=\"checkbox-label\" for=\"{{ id }}\">\n <lib-typography [defaultText]=\"label\" [type]=\"fontType\">\n </lib-typography>\n </label>\n \n </span>\n <kendo-combobox #comboBox [id]=\"id\" [data]=\"data\" [clearButton]=\"clearButton\" [fillMode]=\"fillMode\"\n [filterable]=\"filterable\" [placeholder]=\"placeholder\" [readonly]=\"readonly\" [rounded]=\"rounded\" [size]=\"size\"\n [suggest]=\"suggest\" [textField]=\"textField\" [value]=\"value\" [valueField]=\"valueField\"\n [valuePrimitive]=\"valuePrimitive\" [ngModel]=\"model\" (ngModelChange)=\"emitModelChange($event)\"\n [formControl]=\"control\">\n <ng-template kendoComboBoxHeaderTemplate>\n <ng-content select=\"header\"></ng-content>\n </ng-template>\n <ng-template kendoComboBoxItemTemplate let-data>\n <img *ngIf=\"data.imageUrl && data.imageUrl.length > 0\" [src]=\"data.imageUrl\" [width]=\"18\" [alt]=\"data.imageUrl\" />\n <div ngClass=\"data.imageUrl.length > 0 ? 'rowData' : ''\">\n <lib-typography [defaultText]=\"data.name\" [type]=\"fontType\">\n </lib-typography>\n </div>\n </ng-template>\n </kendo-combobox>\n</span>\n", styles: ["@font-face{font-family:Mulish;src:url(/assets/fonts/Mulish-Light.ttf);font-weight:300;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-LightItalic.ttf);font-weight:300;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Regular.ttf);font-weight:400;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Italic.ttf);font-weight:400;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Bold.ttf);font-weight:700;font-style:normal}.checkbox-label{margin-bottom:8px}::ng-deep .rowData{padding-left:1rem}::ng-deep .k-list-md .k-list-item,::ng-deep .k-list-md .k-list-optionlabel{border-bottom:1px solid #CDD7DD;padding:8px 16px}::ng-deep .k-list-md{border-radius:0 0 8px 8px}::ng-deep .k-list-container{border-radius:0 0 8px 8px}\n"] }]
|
|
850
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { id: [{
|
|
851
|
+
type: Input
|
|
852
|
+
}], label: [{
|
|
853
|
+
type: Input
|
|
854
|
+
}], data: [{
|
|
855
|
+
type: Input
|
|
856
|
+
}], isDisabled: [{
|
|
857
|
+
type: Input
|
|
858
|
+
}], clearButton: [{
|
|
859
|
+
type: Input
|
|
860
|
+
}], fillMode: [{
|
|
861
|
+
type: Input
|
|
862
|
+
}], filterable: [{
|
|
863
|
+
type: Input
|
|
864
|
+
}], placeholder: [{
|
|
865
|
+
type: Input
|
|
866
|
+
}], readonly: [{
|
|
867
|
+
type: Input
|
|
868
|
+
}], rounded: [{
|
|
869
|
+
type: Input
|
|
870
|
+
}], size: [{
|
|
871
|
+
type: Input
|
|
872
|
+
}], suggest: [{
|
|
873
|
+
type: Input
|
|
874
|
+
}], textField: [{
|
|
875
|
+
type: Input
|
|
876
|
+
}], value: [{
|
|
877
|
+
type: Input
|
|
878
|
+
}], valueField: [{
|
|
879
|
+
type: Input
|
|
880
|
+
}], valuePrimitive: [{
|
|
881
|
+
type: Input
|
|
882
|
+
}], model: [{
|
|
883
|
+
type: Input
|
|
884
|
+
}], modelChange: [{
|
|
885
|
+
type: Output
|
|
886
|
+
}], control: [{
|
|
887
|
+
type: Input
|
|
888
|
+
}], fontType: [{
|
|
889
|
+
type: Input
|
|
890
|
+
}], focus: [{
|
|
891
|
+
type: Input
|
|
892
|
+
}], comboBox: [{
|
|
893
|
+
type: ViewChild,
|
|
894
|
+
args: ['comboBox', { static: false }]
|
|
895
|
+
}] } });
|
|
896
|
+
|
|
897
|
+
class DropdownModule {
|
|
898
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
899
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DropdownModule, declarations: [DropdownComponent], imports: [CommonModule,
|
|
900
|
+
DropDownsModule,
|
|
901
|
+
FormsModule,
|
|
902
|
+
ReactiveFormsModule,
|
|
903
|
+
TypographyModule], exports: [DropdownComponent] }); }
|
|
904
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropdownModule, imports: [CommonModule,
|
|
905
|
+
DropDownsModule,
|
|
906
|
+
FormsModule,
|
|
907
|
+
ReactiveFormsModule,
|
|
908
|
+
TypographyModule] }); }
|
|
909
|
+
}
|
|
910
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropdownModule, decorators: [{
|
|
911
|
+
type: NgModule,
|
|
912
|
+
args: [{
|
|
913
|
+
declarations: [
|
|
914
|
+
DropdownComponent
|
|
915
|
+
],
|
|
916
|
+
imports: [
|
|
917
|
+
CommonModule,
|
|
918
|
+
DropDownsModule,
|
|
919
|
+
FormsModule,
|
|
920
|
+
ReactiveFormsModule,
|
|
921
|
+
TypographyModule
|
|
922
|
+
],
|
|
923
|
+
exports: [
|
|
924
|
+
DropdownComponent
|
|
925
|
+
]
|
|
926
|
+
}]
|
|
927
|
+
}] });
|
|
928
|
+
|
|
929
|
+
class LabelComponent {
|
|
930
|
+
constructor(themesService) {
|
|
931
|
+
this.themesService = themesService;
|
|
932
|
+
this.text = '';
|
|
933
|
+
this.hiddenLabel = '';
|
|
934
|
+
this.labelFont = 'P_MULISH_14_REGULAR';
|
|
935
|
+
}
|
|
936
|
+
ngOnInit() { }
|
|
937
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LabelComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
938
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: LabelComponent, selector: "lib-label", inputs: { text: "text", hiddenLabel: "hiddenLabel", labelFont: "labelFont" }, ngImport: i0, template: "<lib-typography [isLabel]=\"true\" [hiddenLabel]=\"hiddenLabel\" [defaultText]=\"text\" [type]=\"labelFont\">\n <ng-content></ng-content>\n</lib-typography>\n", styles: [""], dependencies: [{ kind: "component", type: TypographyComponent, selector: "lib-typography", inputs: ["type", "defaultText", "isLabel", "hiddenLabel"] }] }); }
|
|
939
|
+
}
|
|
940
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LabelComponent, decorators: [{
|
|
941
|
+
type: Component,
|
|
942
|
+
args: [{ selector: 'lib-label', template: "<lib-typography [isLabel]=\"true\" [hiddenLabel]=\"hiddenLabel\" [defaultText]=\"text\" [type]=\"labelFont\">\n <ng-content></ng-content>\n</lib-typography>\n" }]
|
|
943
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { text: [{
|
|
944
|
+
type: Input
|
|
945
|
+
}], hiddenLabel: [{
|
|
946
|
+
type: Input
|
|
947
|
+
}], labelFont: [{
|
|
948
|
+
type: Input
|
|
949
|
+
}] } });
|
|
950
|
+
|
|
951
|
+
class LabelsModule {
|
|
952
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LabelsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
953
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: LabelsModule, declarations: [LabelComponent], imports: [LabelModule, TypographyModule, CommonModule], exports: [LabelComponent] }); }
|
|
954
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LabelsModule, imports: [LabelModule, TypographyModule, CommonModule] }); }
|
|
955
|
+
}
|
|
956
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LabelsModule, decorators: [{
|
|
957
|
+
type: NgModule,
|
|
958
|
+
args: [{
|
|
959
|
+
imports: [LabelModule, TypographyModule, CommonModule],
|
|
960
|
+
declarations: [LabelComponent],
|
|
961
|
+
exports: [LabelComponent]
|
|
962
|
+
}]
|
|
963
|
+
}] });
|
|
964
|
+
|
|
965
|
+
class LoadingSpinnerComponent {
|
|
966
|
+
constructor(themesService) {
|
|
967
|
+
this.themesService = themesService;
|
|
968
|
+
this.width = 100;
|
|
969
|
+
this.height = 100;
|
|
970
|
+
this.visible = true;
|
|
971
|
+
}
|
|
972
|
+
ngOnInit() { }
|
|
973
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoadingSpinnerComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
974
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: LoadingSpinnerComponent, selector: "lib-loading-spinner", inputs: { width: "width", height: "height", visible: "visible" }, ngImport: i0, template: "<div class=\"chef-loading-spinner\" *ngIf=\"visible\">\n <svg\n [attr.width]=\"width\"\n [attr.height]=\"height\"\n viewBox=\"0 0 100 100\"\n aria-live=\"polite\"\n aria-label=\"Page loading, do not refresh the page\"\n role=\"status\"\n >\n <path\n d=\"M31.6,3.5C5.9,13.6-6.6,42.7,3.5,68.4c10.1,25.7,39.2,38.3,64.9,28.1l-3.1-7.9c-21.3,8.4-45.4-2-53.8-23.3c-8.4-21.3,2-45.4,23.3-53.8L31.6,3.5z\"\n >\n <animateTransform\n attributeName=\"transform\"\n attributeType=\"XML\"\n type=\"rotate\"\n dur=\"2s\"\n from=\"0 50 50\"\n to=\"360 50 50\"\n repeatCount=\"indefinite\"\n ></animateTransform>\n </path>\n <path\n d=\"M42.3,39.6c5.7-4.3,13.9-3.1,18.1,2.7c4.3,5.7,3.1,13.9-2.7,18.1l4.1,5.5c8.8-6.5,10.6-19,4.1-27.7c-6.5-8.8-19-10.6-27.7-4.1L42.3,39.6z\"\n >\n <animateTransform\n attributeName=\"transform\"\n attributeType=\"XML\"\n type=\"rotate\"\n dur=\"2s\"\n from=\"0 50 50\"\n to=\"360 50 50\"\n repeatCount=\"indefinite\"\n ></animateTransform>\n </path>\n <path\n class=\"alt\"\n d=\"M82,35.7C74.1,18,53.4,10.1,35.7,18S10.1,46.6,18,64.3l7.6-3.4c-6-13.5,0-29.3,13.5-35.3s29.3,0,35.3,13.5L82,35.7z\"\n >\n <animateTransform\n attributeName=\"transform\"\n attributeType=\"XML\"\n type=\"rotate\"\n dur=\"2s\"\n from=\"0 50 50\"\n to=\"360 50 50\"\n repeatCount=\"indefinite\"\n ></animateTransform>\n </path>\n </svg>\n</div>\n", styles: [".chef-loading-spinner{--fill: #3864f2;--fill-alt: #597ef4}.chef-loading-spinner{display:inline-block;overflow:hidden}.chef-loading-spinner svg{float:left}.chef-loading-spinner path{fill:var(--fill)}.chef-loading-spinner path.alt{fill:var(--fill-alt)}.chef-loading-spinner[fixed]{display:flex;align-items:center;justify-content:center;position:fixed;inset:0;background:#e0e4e6a6;z-index:190}\n"], dependencies: [{ kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
975
|
+
}
|
|
976
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoadingSpinnerComponent, decorators: [{
|
|
977
|
+
type: Component,
|
|
978
|
+
args: [{ selector: 'lib-loading-spinner', template: "<div class=\"chef-loading-spinner\" *ngIf=\"visible\">\n <svg\n [attr.width]=\"width\"\n [attr.height]=\"height\"\n viewBox=\"0 0 100 100\"\n aria-live=\"polite\"\n aria-label=\"Page loading, do not refresh the page\"\n role=\"status\"\n >\n <path\n d=\"M31.6,3.5C5.9,13.6-6.6,42.7,3.5,68.4c10.1,25.7,39.2,38.3,64.9,28.1l-3.1-7.9c-21.3,8.4-45.4-2-53.8-23.3c-8.4-21.3,2-45.4,23.3-53.8L31.6,3.5z\"\n >\n <animateTransform\n attributeName=\"transform\"\n attributeType=\"XML\"\n type=\"rotate\"\n dur=\"2s\"\n from=\"0 50 50\"\n to=\"360 50 50\"\n repeatCount=\"indefinite\"\n ></animateTransform>\n </path>\n <path\n d=\"M42.3,39.6c5.7-4.3,13.9-3.1,18.1,2.7c4.3,5.7,3.1,13.9-2.7,18.1l4.1,5.5c8.8-6.5,10.6-19,4.1-27.7c-6.5-8.8-19-10.6-27.7-4.1L42.3,39.6z\"\n >\n <animateTransform\n attributeName=\"transform\"\n attributeType=\"XML\"\n type=\"rotate\"\n dur=\"2s\"\n from=\"0 50 50\"\n to=\"360 50 50\"\n repeatCount=\"indefinite\"\n ></animateTransform>\n </path>\n <path\n class=\"alt\"\n d=\"M82,35.7C74.1,18,53.4,10.1,35.7,18S10.1,46.6,18,64.3l7.6-3.4c-6-13.5,0-29.3,13.5-35.3s29.3,0,35.3,13.5L82,35.7z\"\n >\n <animateTransform\n attributeName=\"transform\"\n attributeType=\"XML\"\n type=\"rotate\"\n dur=\"2s\"\n from=\"0 50 50\"\n to=\"360 50 50\"\n repeatCount=\"indefinite\"\n ></animateTransform>\n </path>\n </svg>\n</div>\n", styles: [".chef-loading-spinner{--fill: #3864f2;--fill-alt: #597ef4}.chef-loading-spinner{display:inline-block;overflow:hidden}.chef-loading-spinner svg{float:left}.chef-loading-spinner path{fill:var(--fill)}.chef-loading-spinner path.alt{fill:var(--fill-alt)}.chef-loading-spinner[fixed]{display:flex;align-items:center;justify-content:center;position:fixed;inset:0;background:#e0e4e6a6;z-index:190}\n"] }]
|
|
979
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { width: [{
|
|
980
|
+
type: Input
|
|
981
|
+
}], height: [{
|
|
982
|
+
type: Input
|
|
983
|
+
}], visible: [{
|
|
984
|
+
type: Input
|
|
985
|
+
}] } });
|
|
986
|
+
|
|
987
|
+
class LoadingSpinnerModule {
|
|
988
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoadingSpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
989
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: LoadingSpinnerModule, declarations: [LoadingSpinnerComponent], imports: [CommonModule], exports: [LoadingSpinnerComponent] }); }
|
|
990
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoadingSpinnerModule, imports: [CommonModule] }); }
|
|
991
|
+
}
|
|
992
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoadingSpinnerModule, decorators: [{
|
|
993
|
+
type: NgModule,
|
|
994
|
+
args: [{
|
|
995
|
+
declarations: [LoadingSpinnerComponent],
|
|
996
|
+
imports: [CommonModule],
|
|
997
|
+
exports: [LoadingSpinnerComponent],
|
|
998
|
+
}]
|
|
999
|
+
}] });
|
|
1000
|
+
|
|
1001
|
+
var Type;
|
|
1002
|
+
(function (Type) {
|
|
1003
|
+
Type["success"] = "success";
|
|
1004
|
+
Type["error"] = "error";
|
|
1005
|
+
Type["warning"] = "warning";
|
|
1006
|
+
Type["info"] = "info";
|
|
1007
|
+
Type["none"] = "none";
|
|
1008
|
+
})(Type || (Type = {}));
|
|
1009
|
+
const slideDownAnim = trigger('slideDownAnim', [
|
|
1010
|
+
transition(':enter', [
|
|
1011
|
+
style({
|
|
1012
|
+
opacity: 0,
|
|
1013
|
+
transform: 'translateY(-100%) scale(0.98)',
|
|
1014
|
+
}),
|
|
1015
|
+
animate('300ms ease-out', style({
|
|
1016
|
+
opacity: 1,
|
|
1017
|
+
transform: 'translateY(0%) scale(1)',
|
|
1018
|
+
})),
|
|
1019
|
+
]),
|
|
1020
|
+
transition(':leave', [
|
|
1021
|
+
style({ opacity: 1 }),
|
|
1022
|
+
animate('195ms ease-in', style({ opacity: 0 })),
|
|
1023
|
+
]),
|
|
1024
|
+
]);
|
|
1025
|
+
class NotificationComponent {
|
|
1026
|
+
get theType() {
|
|
1027
|
+
return this.type;
|
|
1028
|
+
}
|
|
1029
|
+
constructor(themesService) {
|
|
1030
|
+
this.themesService = themesService;
|
|
1031
|
+
this.type = Type.info;
|
|
1032
|
+
this.timeout = 8000;
|
|
1033
|
+
this.dismissed = new EventEmitter();
|
|
1034
|
+
this.handleClose = () => {
|
|
1035
|
+
clearTimeout(this.timeOutRef);
|
|
1036
|
+
this.dismissed.emit();
|
|
1037
|
+
};
|
|
1038
|
+
}
|
|
1039
|
+
ngAfterViewInit() {
|
|
1040
|
+
const isInfinite = this.timeout < 1;
|
|
1041
|
+
if (isInfinite) {
|
|
1042
|
+
return;
|
|
1043
|
+
}
|
|
1044
|
+
this.timeOutRef = setTimeout(this.handleClose, this.timeout * 10000);
|
|
1045
|
+
}
|
|
1046
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1047
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: NotificationComponent, selector: "lib-notification", inputs: { type: "type", timeout: "timeout" }, outputs: { dismissed: "dismissed" }, host: { properties: { "@slideDownAnim": "this.slideDownAnim", "class": "this.theType" } }, ngImport: i0, template: "<p>\n <ng-content></ng-content>\n</p>\n<div class=\"shine\"></div>\n<i role=\"button\" (click)=\"handleClose()\" class=\"closebtn test\"> \u00D7 </i>\n", styles: [":host{display:flex;align-items:center;position:relative;width:100%;color:#fff;background-color:#697272;padding:.5em;overflow:hidden;z-index:9999}:host p{margin:0;color:#fff}:host a{color:#fff}:host .closebtn{position:absolute;right:28px;font-size:22px;text-decoration:none}:host.info{background-color:#0075dbe6}:host.info:before{font-family:Material Icons;content:\"\\e86c\";color:currentColor;padding-right:.5em}:host.error{background-color:#ba1e6ae6}:host.error:before{font-family:Material Icons;content:\"\\e002\";color:currentColor;padding-right:.5em}:host .shine{position:absolute;top:0;left:0;width:25%;height:100%;background:linear-gradient(110deg,#fff0 22%,#ffffff1c 50%,#fff0 83%);animation:shine 3s cubic-bezier(.17,.71,.05,.98) forwards;animation-delay:1s;cursor:none}@keyframes shine{0%{transform:translate(-50%)}to{transform:translate(500%)}}\n"], animations: [slideDownAnim] }); }
|
|
1048
|
+
}
|
|
1049
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationComponent, decorators: [{
|
|
1050
|
+
type: Component,
|
|
1051
|
+
args: [{ selector: 'lib-notification', animations: [slideDownAnim], template: "<p>\n <ng-content></ng-content>\n</p>\n<div class=\"shine\"></div>\n<i role=\"button\" (click)=\"handleClose()\" class=\"closebtn test\"> \u00D7 </i>\n", styles: [":host{display:flex;align-items:center;position:relative;width:100%;color:#fff;background-color:#697272;padding:.5em;overflow:hidden;z-index:9999}:host p{margin:0;color:#fff}:host a{color:#fff}:host .closebtn{position:absolute;right:28px;font-size:22px;text-decoration:none}:host.info{background-color:#0075dbe6}:host.info:before{font-family:Material Icons;content:\"\\e86c\";color:currentColor;padding-right:.5em}:host.error{background-color:#ba1e6ae6}:host.error:before{font-family:Material Icons;content:\"\\e002\";color:currentColor;padding-right:.5em}:host .shine{position:absolute;top:0;left:0;width:25%;height:100%;background:linear-gradient(110deg,#fff0 22%,#ffffff1c 50%,#fff0 83%);animation:shine 3s cubic-bezier(.17,.71,.05,.98) forwards;animation-delay:1s;cursor:none}@keyframes shine{0%{transform:translate(-50%)}to{transform:translate(500%)}}\n"] }]
|
|
1052
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { type: [{
|
|
1053
|
+
type: Input
|
|
1054
|
+
}], timeout: [{
|
|
1055
|
+
type: Input
|
|
1056
|
+
}], dismissed: [{
|
|
1057
|
+
type: Output
|
|
1058
|
+
}], slideDownAnim: [{
|
|
1059
|
+
type: HostBinding,
|
|
1060
|
+
args: ['@slideDownAnim']
|
|
1061
|
+
}], theType: [{
|
|
1062
|
+
type: HostBinding,
|
|
1063
|
+
args: ['class']
|
|
1064
|
+
}] } });
|
|
1065
|
+
|
|
1066
|
+
class NotificationModule {
|
|
1067
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1068
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: NotificationModule, declarations: [NotificationComponent], imports: [CommonModule], exports: [NotificationComponent] }); }
|
|
1069
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationModule, imports: [CommonModule] }); }
|
|
1070
|
+
}
|
|
1071
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NotificationModule, decorators: [{
|
|
1072
|
+
type: NgModule,
|
|
1073
|
+
args: [{
|
|
1074
|
+
declarations: [NotificationComponent],
|
|
1075
|
+
imports: [
|
|
1076
|
+
CommonModule,
|
|
1077
|
+
],
|
|
1078
|
+
exports: [NotificationComponent]
|
|
1079
|
+
}]
|
|
1080
|
+
}] });
|
|
1081
|
+
|
|
1082
|
+
class ProgressBarComponent {
|
|
1083
|
+
constructor(themesService) {
|
|
1084
|
+
this.themesService = themesService;
|
|
1085
|
+
this.value = 0;
|
|
1086
|
+
}
|
|
1087
|
+
ngOnInit() { }
|
|
1088
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProgressBarComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1089
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ProgressBarComponent, selector: "lib-progress-bar", inputs: { value: "value" }, ngImport: i0, template: "<kendo-progressbar [value]=\"value\"></kendo-progressbar>\n", styles: [""], dependencies: [{ kind: "component", type: i2$3.ProgressBarComponent, selector: "kendo-progressbar", inputs: ["label", "progressCssStyle", "progressCssClass", "emptyCssStyle", "emptyCssClass", "animation"], outputs: ["animationEnd"], exportAs: ["kendoProgressBar"] }] }); }
|
|
1090
|
+
}
|
|
1091
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProgressBarComponent, decorators: [{
|
|
1092
|
+
type: Component,
|
|
1093
|
+
args: [{ selector: 'lib-progress-bar', template: "<kendo-progressbar [value]=\"value\"></kendo-progressbar>\n" }]
|
|
1094
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { value: [{
|
|
1095
|
+
type: Input
|
|
1096
|
+
}] } });
|
|
1097
|
+
|
|
1098
|
+
class ProgressBarsModule {
|
|
1099
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProgressBarsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1100
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ProgressBarsModule, declarations: [ProgressBarComponent], imports: [ProgressBarModule], exports: [ProgressBarComponent] }); }
|
|
1101
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProgressBarsModule, imports: [ProgressBarModule] }); }
|
|
1102
|
+
}
|
|
1103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProgressBarsModule, decorators: [{
|
|
1104
|
+
type: NgModule,
|
|
1105
|
+
args: [{
|
|
1106
|
+
declarations: [
|
|
1107
|
+
ProgressBarComponent
|
|
1108
|
+
],
|
|
1109
|
+
imports: [
|
|
1110
|
+
ProgressBarModule
|
|
1111
|
+
],
|
|
1112
|
+
exports: [
|
|
1113
|
+
ProgressBarComponent
|
|
1114
|
+
]
|
|
1115
|
+
}]
|
|
1116
|
+
}] });
|
|
1117
|
+
|
|
1118
|
+
class RadioButtonComponent {
|
|
1119
|
+
constructor(themesService) {
|
|
1120
|
+
this.themesService = themesService;
|
|
1121
|
+
this.size = "medium";
|
|
1122
|
+
this.name = "radio1";
|
|
1123
|
+
this.value = "radio1";
|
|
1124
|
+
this.control = new FormControl(null);
|
|
1125
|
+
this.label = "radio1";
|
|
1126
|
+
this.labelPosition = "before";
|
|
1127
|
+
this.id = "sampleId";
|
|
1128
|
+
this.model = '';
|
|
1129
|
+
this.modelChange = new EventEmitter();
|
|
1130
|
+
}
|
|
1131
|
+
ngOnInit() { }
|
|
1132
|
+
emitModelChange(ev) {
|
|
1133
|
+
this.modelChange.emit(ev);
|
|
1134
|
+
}
|
|
1135
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RadioButtonComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1136
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: RadioButtonComponent, selector: "lib-radio-button", inputs: { size: "size", name: "name", value: "value", control: "control", label: "label", labelPosition: "labelPosition", id: "id", model: "model" }, outputs: { modelChange: "modelChange" }, ngImport: i0, template: "<span *ngIf=\"label.length > 0 && labelPosition === 'before'\">\n <label class=\"k-checkbox-label\" for=\"{{ id }}\">\n <lib-typography\n [defaultText]=\"label\"\n type=\"P_MULISH_14_REGULAR\">\n </lib-typography>\n </label>\n \n</span>\n<input \n type=\"radio\"\n [size]=\"size\"\n [name]=\"name\"\n [value]=\"value\"\n [formControl]=\"control\"\n [ngModel]=\"model\"\n (ngModelChange)=\"emitModelChange($event)\"\n [id]=\"id\"\n kendoRadioButton/>\n<span *ngIf=\"label.length > 0 && labelPosition === 'after'\">\n \n <label class=\"k-checkbox-label\" for=\"{{ id }}\">\n <lib-typography\n [defaultText]=\"label\"\n type=\"P_MULISH_14_REGULAR\">\n </lib-typography>\n </label>\n</span>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.RadioButtonDirective, selector: "input[kendoRadioButton]", inputs: ["size"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: TypographyComponent, selector: "lib-typography", inputs: ["type", "defaultText", "isLabel", "hiddenLabel"] }] }); }
|
|
1137
|
+
}
|
|
1138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RadioButtonComponent, decorators: [{
|
|
1139
|
+
type: Component,
|
|
1140
|
+
args: [{ selector: 'lib-radio-button', template: "<span *ngIf=\"label.length > 0 && labelPosition === 'before'\">\n <label class=\"k-checkbox-label\" for=\"{{ id }}\">\n <lib-typography\n [defaultText]=\"label\"\n type=\"P_MULISH_14_REGULAR\">\n </lib-typography>\n </label>\n \n</span>\n<input \n type=\"radio\"\n [size]=\"size\"\n [name]=\"name\"\n [value]=\"value\"\n [formControl]=\"control\"\n [ngModel]=\"model\"\n (ngModelChange)=\"emitModelChange($event)\"\n [id]=\"id\"\n kendoRadioButton/>\n<span *ngIf=\"label.length > 0 && labelPosition === 'after'\">\n \n <label class=\"k-checkbox-label\" for=\"{{ id }}\">\n <lib-typography\n [defaultText]=\"label\"\n type=\"P_MULISH_14_REGULAR\">\n </lib-typography>\n </label>\n</span>\n" }]
|
|
1141
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { size: [{
|
|
1142
|
+
type: Input
|
|
1143
|
+
}], name: [{
|
|
1144
|
+
type: Input
|
|
1145
|
+
}], value: [{
|
|
1146
|
+
type: Input
|
|
1147
|
+
}], control: [{
|
|
1148
|
+
type: Input
|
|
1149
|
+
}], label: [{
|
|
1150
|
+
type: Input
|
|
1151
|
+
}], labelPosition: [{
|
|
1152
|
+
type: Input
|
|
1153
|
+
}], id: [{
|
|
1154
|
+
type: Input
|
|
1155
|
+
}], model: [{
|
|
1156
|
+
type: Input
|
|
1157
|
+
}], modelChange: [{
|
|
1158
|
+
type: Output
|
|
1159
|
+
}] } });
|
|
1160
|
+
|
|
1161
|
+
class RadioButtonModule {
|
|
1162
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RadioButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1163
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: RadioButtonModule, declarations: [RadioButtonComponent], imports: [CommonModule,
|
|
1164
|
+
InputsModule,
|
|
1165
|
+
ReactiveFormsModule,
|
|
1166
|
+
TypographyModule,
|
|
1167
|
+
FormsModule], exports: [RadioButtonComponent] }); }
|
|
1168
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RadioButtonModule, imports: [CommonModule,
|
|
1169
|
+
InputsModule,
|
|
1170
|
+
ReactiveFormsModule,
|
|
1171
|
+
TypographyModule,
|
|
1172
|
+
FormsModule] }); }
|
|
1173
|
+
}
|
|
1174
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RadioButtonModule, decorators: [{
|
|
1175
|
+
type: NgModule,
|
|
1176
|
+
args: [{
|
|
1177
|
+
declarations: [
|
|
1178
|
+
RadioButtonComponent
|
|
1179
|
+
],
|
|
1180
|
+
imports: [
|
|
1181
|
+
CommonModule,
|
|
1182
|
+
InputsModule,
|
|
1183
|
+
ReactiveFormsModule,
|
|
1184
|
+
TypographyModule,
|
|
1185
|
+
FormsModule
|
|
1186
|
+
],
|
|
1187
|
+
exports: [
|
|
1188
|
+
RadioButtonComponent
|
|
1189
|
+
]
|
|
1190
|
+
}]
|
|
1191
|
+
}] });
|
|
1192
|
+
|
|
1193
|
+
class ReportSummaryComponent {
|
|
1194
|
+
constructor(themesService) {
|
|
1195
|
+
this.themesService = themesService;
|
|
1196
|
+
this.leftTitle = '';
|
|
1197
|
+
this.rightTitle = '';
|
|
1198
|
+
this.bannerColor = '';
|
|
1199
|
+
this.isCollapsed = false;
|
|
1200
|
+
this.leftMetaData = [];
|
|
1201
|
+
this.rightMetaData = [];
|
|
1202
|
+
this.isOpened = this.isCollapsed;
|
|
1203
|
+
}
|
|
1204
|
+
ngOnInit() { }
|
|
1205
|
+
toggle() {
|
|
1206
|
+
this.expandBox();
|
|
1207
|
+
}
|
|
1208
|
+
expandBox() {
|
|
1209
|
+
this.isCollapsed = !this.isCollapsed;
|
|
1210
|
+
this.isOpened = this.isOpened;
|
|
1211
|
+
console.log(this.isCollapsed);
|
|
1212
|
+
}
|
|
1213
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReportSummaryComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1214
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ReportSummaryComponent, selector: "lib-report-summary", inputs: { leftTitle: "leftTitle", rightTitle: "rightTitle", bannerColor: "bannerColor", isCollapsed: "isCollapsed", leftMetaData: "leftMetaData", rightMetaData: "rightMetaData" }, host: { properties: { "class.show": "this.isOpened" } }, ngImport: i0, template: "<ng-container>\n <div class=\"accordion\">\n <div class=\"accordion-item\">\n <h2 class=\"accordion-header\">\n <div \n class=\"alert-primary banner-head\"\n (click)=\"toggle()\">\n <span *ngIf=\"leftTitle !== ''\" class=\"left-title\">{{leftTitle}}</span>\n <div class=\"right-head\">\n <span *ngIf=\"rightTitle !== ''\" class=\"right-title\">{{rightTitle}}</span>\n <span *ngIf=\"!isCollapsed\" class=\"collapse-icon k-icon k-i-plus\"></span>\n <span *ngIf=\"isCollapsed\" class=\"collapse-icon k-icon k-i-minus\"></span>\n </div>\n </div>\n </h2>\n <div\n class=\"accordion-collapse collapse show\"\n [ngClass]=\"{ 'show' : isCollapsed }\">\n <div class=\"accordion-body\">\n <div class=\"row\">\n <div class=\"col-sm-6\">\n <table *ngIf=\"leftMetaData.length > 0\" class=\"table table-borderless\">\n <tbody>\n <tr *ngFor=\"let data of leftMetaData\">\n <td class=\"list-title\">{{data.title}}</td>\n <td class=\"list-value\">{{data.value}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n <div *ngIf=\"leftMetaData.length > 0\" class=\"vertical\"></div>\n <div class=\"col-sm-6\">\n <table *ngIf=\"rightMetaData.length > 0\" class=\"table table-borderless\">\n <tbody>\n <tr *ngFor=\"let data of rightMetaData\">\n <td class=\"list-title\">{{data.title}}</td>\n <td class=\"list-value\">{{data.value}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n", styles: [".accordion-button:focus{box-shadow:none}.banner-head{background:#dfe3e5;padding:18px 10px 18px 12px;font-size:15px;font-weight:400;height:54px}.right-head{float:right}.left-title{text-transform:capitalize}.right-title{margin-right:10px;text-transform:capitalize}.collapse{position:relative}.vertical{border-left:1px solid rgb(223,227,229);position:absolute;left:50%;height:70%}.list-title{font-weight:400}.list-value{font-weight:200}\n"], dependencies: [{ kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
1215
|
+
}
|
|
1216
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReportSummaryComponent, decorators: [{
|
|
1217
|
+
type: Component,
|
|
1218
|
+
args: [{ selector: 'lib-report-summary', template: "<ng-container>\n <div class=\"accordion\">\n <div class=\"accordion-item\">\n <h2 class=\"accordion-header\">\n <div \n class=\"alert-primary banner-head\"\n (click)=\"toggle()\">\n <span *ngIf=\"leftTitle !== ''\" class=\"left-title\">{{leftTitle}}</span>\n <div class=\"right-head\">\n <span *ngIf=\"rightTitle !== ''\" class=\"right-title\">{{rightTitle}}</span>\n <span *ngIf=\"!isCollapsed\" class=\"collapse-icon k-icon k-i-plus\"></span>\n <span *ngIf=\"isCollapsed\" class=\"collapse-icon k-icon k-i-minus\"></span>\n </div>\n </div>\n </h2>\n <div\n class=\"accordion-collapse collapse show\"\n [ngClass]=\"{ 'show' : isCollapsed }\">\n <div class=\"accordion-body\">\n <div class=\"row\">\n <div class=\"col-sm-6\">\n <table *ngIf=\"leftMetaData.length > 0\" class=\"table table-borderless\">\n <tbody>\n <tr *ngFor=\"let data of leftMetaData\">\n <td class=\"list-title\">{{data.title}}</td>\n <td class=\"list-value\">{{data.value}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n <div *ngIf=\"leftMetaData.length > 0\" class=\"vertical\"></div>\n <div class=\"col-sm-6\">\n <table *ngIf=\"rightMetaData.length > 0\" class=\"table table-borderless\">\n <tbody>\n <tr *ngFor=\"let data of rightMetaData\">\n <td class=\"list-title\">{{data.title}}</td>\n <td class=\"list-value\">{{data.value}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n", styles: [".accordion-button:focus{box-shadow:none}.banner-head{background:#dfe3e5;padding:18px 10px 18px 12px;font-size:15px;font-weight:400;height:54px}.right-head{float:right}.left-title{text-transform:capitalize}.right-title{margin-right:10px;text-transform:capitalize}.collapse{position:relative}.vertical{border-left:1px solid rgb(223,227,229);position:absolute;left:50%;height:70%}.list-title{font-weight:400}.list-value{font-weight:200}\n"] }]
|
|
1219
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { leftTitle: [{
|
|
1220
|
+
type: Input
|
|
1221
|
+
}], rightTitle: [{
|
|
1222
|
+
type: Input
|
|
1223
|
+
}], bannerColor: [{
|
|
1224
|
+
type: Input
|
|
1225
|
+
}], isCollapsed: [{
|
|
1226
|
+
type: Input
|
|
1227
|
+
}], leftMetaData: [{
|
|
1228
|
+
type: Input
|
|
1229
|
+
}], rightMetaData: [{
|
|
1230
|
+
type: Input
|
|
1231
|
+
}], isOpened: [{
|
|
1232
|
+
type: HostBinding,
|
|
1233
|
+
args: ['class.show']
|
|
1234
|
+
}] } });
|
|
1235
|
+
|
|
1236
|
+
class ReportSummaryModule {
|
|
1237
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReportSummaryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1238
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ReportSummaryModule, declarations: [ReportSummaryComponent], imports: [CommonModule], exports: [ReportSummaryComponent] }); }
|
|
1239
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReportSummaryModule, imports: [CommonModule] }); }
|
|
1240
|
+
}
|
|
1241
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReportSummaryModule, decorators: [{
|
|
1242
|
+
type: NgModule,
|
|
1243
|
+
args: [{
|
|
1244
|
+
declarations: [
|
|
1245
|
+
ReportSummaryComponent
|
|
1246
|
+
],
|
|
1247
|
+
imports: [
|
|
1248
|
+
CommonModule
|
|
1249
|
+
],
|
|
1250
|
+
exports: [
|
|
1251
|
+
ReportSummaryComponent
|
|
1252
|
+
]
|
|
1253
|
+
}]
|
|
1254
|
+
}] });
|
|
1255
|
+
|
|
1256
|
+
class SearchBoxComponent {
|
|
1257
|
+
constructor(themesService) {
|
|
1258
|
+
this.themesService = themesService;
|
|
1259
|
+
this.source = [];
|
|
1260
|
+
this.data = [];
|
|
1261
|
+
this.filterable = true;
|
|
1262
|
+
this.size = 'small';
|
|
1263
|
+
this.rounded = "medium";
|
|
1264
|
+
this.fillMode = "outline";
|
|
1265
|
+
this.clearButton = true;
|
|
1266
|
+
this.icon = 'search';
|
|
1267
|
+
this.autoComplete = true;
|
|
1268
|
+
this.placeholder = '';
|
|
1269
|
+
this.width = 200;
|
|
1270
|
+
this.suggest = false;
|
|
1271
|
+
this.modelChange = new EventEmitter();
|
|
1272
|
+
this.searchClick = new EventEmitter();
|
|
1273
|
+
this.control = new FormControl();
|
|
1274
|
+
this.value = "";
|
|
1275
|
+
this.debounceTimeMs = 300;
|
|
1276
|
+
this.searchSubject = new Subject();
|
|
1277
|
+
this.subscription = new Subscription;
|
|
1278
|
+
}
|
|
1279
|
+
ngAfterViewInit() {
|
|
1280
|
+
if (this.autoComplete) {
|
|
1281
|
+
const contains = (searchTerm) => (item) => item.toLowerCase().indexOf(searchTerm.toLowerCase()) !== -1;
|
|
1282
|
+
this.autocomplete.filterChange
|
|
1283
|
+
.asObservable()
|
|
1284
|
+
.pipe(tap(() => (this.autocomplete.loading = true)), map((searchTerm) => this.source.filter(contains(searchTerm))))
|
|
1285
|
+
.subscribe((data) => {
|
|
1286
|
+
this.data = data;
|
|
1287
|
+
this.autocomplete.loading = false;
|
|
1288
|
+
});
|
|
1289
|
+
}
|
|
1290
|
+
this.subscription = this.searchSubject
|
|
1291
|
+
.pipe(debounceTime(this.debounceTimeMs))
|
|
1292
|
+
.subscribe((ev) => {
|
|
1293
|
+
this.modelChange.next(ev);
|
|
1294
|
+
});
|
|
1295
|
+
}
|
|
1296
|
+
emitValueChange(ev) {
|
|
1297
|
+
this.searchSubject.next(ev);
|
|
1298
|
+
}
|
|
1299
|
+
onSearchClick() {
|
|
1300
|
+
this.searchClick.emit();
|
|
1301
|
+
}
|
|
1302
|
+
ngOnDestroy() {
|
|
1303
|
+
this.subscription.unsubscribe();
|
|
1304
|
+
}
|
|
1305
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SearchBoxComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1306
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SearchBoxComponent, selector: "lib-search-box", inputs: { source: "source", data: "data", filterable: "filterable", size: "size", rounded: "rounded", fillMode: "fillMode", clearButton: "clearButton", icon: "icon", autoComplete: "autoComplete", placeholder: "placeholder", width: "width", suggest: "suggest", control: "control", value: "value", debounceTimeMs: "debounceTimeMs" }, outputs: { modelChange: "modelChange", searchClick: "searchClick" }, viewQueries: [{ propertyName: "autocomplete", first: true, predicate: ["autocomplete"], descendants: true }, { propertyName: "textbox", first: true, predicate: ["textbox"], descendants: true }], ngImport: i0, template: "<div *ngIf=\"!autoComplete\">\n <kendo-textbox [placeholder]=\"placeholder\" [clearButton]=\"clearButton\" [fillMode]=\"fillMode\" [size]=\"size\"\n [rounded]=\"rounded\" [size]=\"size\" [style.width.px]=\"width\" [formControl]=\"control\"\n (ngModelChange)=\"emitValueChange($event)\" [ngModel]=\"value\">\n <ng-template kendoTextBoxSuffixTemplate>\n <lib-icon [name]=\"icon\" (click)=\"onSearchClick()\"></lib-icon>\n </ng-template>\n </kendo-textbox>\n</div>\n<div *ngIf=\"autoComplete\">\n <kendo-autocomplete #autocomplete [data]=\"data\" [filterable]=\"true\" [size]=\"size\" [placeholder]=\"placeholder\"\n [suggest]=\"suggest\" [formControl]=\"control\" (ngModelChange)=\"emitValueChange($event)\" [ngModel]=\"value\">\n </kendo-autocomplete>\n</div>\n", styles: ["kendo-autocomplete{width:200px;font-size:14px;line-height:1.4285714286;font-weight:400}kendo-textbox lib-icon{padding-right:12px}lib-icon{cursor:pointer}\n"], dependencies: [{ kind: "component", type: i3$2.AutoCompleteComponent, selector: "kendo-autocomplete", inputs: ["highlightFirst", "showStickyHeader", "focusableId", "data", "value", "valueField", "placeholder", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "loading", "clearButton", "suggest", "disabled", "itemDisabled", "readonly", "tabindex", "tabIndex", "filterable", "virtual", "size", "rounded", "fillMode"], outputs: ["valueChange", "filterChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoAutoComplete"] }, { kind: "component", type: IconComponent, selector: "lib-icon", inputs: ["name", "fontSize", "type"] }, { kind: "component", type: i3$1.TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "type", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { kind: "directive", type: i3$1.TextBoxSuffixTemplateDirective, selector: "[kendoTextBoxSuffixTemplate]" }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] }); }
|
|
1307
|
+
}
|
|
1308
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SearchBoxComponent, decorators: [{
|
|
1309
|
+
type: Component,
|
|
1310
|
+
args: [{ selector: 'lib-search-box', template: "<div *ngIf=\"!autoComplete\">\n <kendo-textbox [placeholder]=\"placeholder\" [clearButton]=\"clearButton\" [fillMode]=\"fillMode\" [size]=\"size\"\n [rounded]=\"rounded\" [size]=\"size\" [style.width.px]=\"width\" [formControl]=\"control\"\n (ngModelChange)=\"emitValueChange($event)\" [ngModel]=\"value\">\n <ng-template kendoTextBoxSuffixTemplate>\n <lib-icon [name]=\"icon\" (click)=\"onSearchClick()\"></lib-icon>\n </ng-template>\n </kendo-textbox>\n</div>\n<div *ngIf=\"autoComplete\">\n <kendo-autocomplete #autocomplete [data]=\"data\" [filterable]=\"true\" [size]=\"size\" [placeholder]=\"placeholder\"\n [suggest]=\"suggest\" [formControl]=\"control\" (ngModelChange)=\"emitValueChange($event)\" [ngModel]=\"value\">\n </kendo-autocomplete>\n</div>\n", styles: ["kendo-autocomplete{width:200px;font-size:14px;line-height:1.4285714286;font-weight:400}kendo-textbox lib-icon{padding-right:12px}lib-icon{cursor:pointer}\n"] }]
|
|
1311
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { autocomplete: [{
|
|
1312
|
+
type: ViewChild,
|
|
1313
|
+
args: ['autocomplete', { static: false }]
|
|
1314
|
+
}], textbox: [{
|
|
1315
|
+
type: ViewChild,
|
|
1316
|
+
args: ['textbox', { static: false }]
|
|
1317
|
+
}], source: [{
|
|
1318
|
+
type: Input
|
|
1319
|
+
}], data: [{
|
|
1320
|
+
type: Input
|
|
1321
|
+
}], filterable: [{
|
|
1322
|
+
type: Input
|
|
1323
|
+
}], size: [{
|
|
1324
|
+
type: Input
|
|
1325
|
+
}], rounded: [{
|
|
1326
|
+
type: Input
|
|
1327
|
+
}], fillMode: [{
|
|
1328
|
+
type: Input
|
|
1329
|
+
}], clearButton: [{
|
|
1330
|
+
type: Input
|
|
1331
|
+
}], icon: [{
|
|
1332
|
+
type: Input
|
|
1333
|
+
}], autoComplete: [{
|
|
1334
|
+
type: Input
|
|
1335
|
+
}], placeholder: [{
|
|
1336
|
+
type: Input
|
|
1337
|
+
}], width: [{
|
|
1338
|
+
type: Input
|
|
1339
|
+
}], suggest: [{
|
|
1340
|
+
type: Input
|
|
1341
|
+
}], modelChange: [{
|
|
1342
|
+
type: Output
|
|
1343
|
+
}], searchClick: [{
|
|
1344
|
+
type: Output
|
|
1345
|
+
}], control: [{
|
|
1346
|
+
type: Input
|
|
1347
|
+
}], value: [{
|
|
1348
|
+
type: Input
|
|
1349
|
+
}], debounceTimeMs: [{
|
|
1350
|
+
type: Input
|
|
1351
|
+
}] } });
|
|
1352
|
+
|
|
1353
|
+
class SearchBoxModule {
|
|
1354
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SearchBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1355
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SearchBoxModule, declarations: [SearchBoxComponent], imports: [AutoCompleteModule,
|
|
1356
|
+
IconModule,
|
|
1357
|
+
InputsModule,
|
|
1358
|
+
CommonModule,
|
|
1359
|
+
ReactiveFormsModule], exports: [SearchBoxComponent] }); }
|
|
1360
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SearchBoxModule, imports: [AutoCompleteModule,
|
|
1361
|
+
IconModule,
|
|
1362
|
+
InputsModule,
|
|
1363
|
+
CommonModule,
|
|
1364
|
+
ReactiveFormsModule] }); }
|
|
1365
|
+
}
|
|
1366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SearchBoxModule, decorators: [{
|
|
1367
|
+
type: NgModule,
|
|
1368
|
+
args: [{
|
|
1369
|
+
declarations: [SearchBoxComponent],
|
|
1370
|
+
imports: [
|
|
1371
|
+
AutoCompleteModule,
|
|
1372
|
+
IconModule,
|
|
1373
|
+
InputsModule,
|
|
1374
|
+
CommonModule,
|
|
1375
|
+
ReactiveFormsModule,
|
|
1376
|
+
],
|
|
1377
|
+
exports: [SearchBoxComponent],
|
|
1378
|
+
}]
|
|
1379
|
+
}] });
|
|
1380
|
+
|
|
1381
|
+
class SliderComponent {
|
|
1382
|
+
constructor(themesService) {
|
|
1383
|
+
this.themesService = themesService;
|
|
1384
|
+
this.opened = false;
|
|
1385
|
+
this.title = "";
|
|
1386
|
+
this.frameNumber = 0;
|
|
1387
|
+
this.isSlideOpen = this.opened;
|
|
1388
|
+
this.sliderClose = new EventEmitter();
|
|
1389
|
+
this.parentId = '';
|
|
1390
|
+
}
|
|
1391
|
+
ngOnInit() {
|
|
1392
|
+
if (this.parentId) {
|
|
1393
|
+
const element = document.getElementById(this.parentId);
|
|
1394
|
+
const sliderElement = document.getElementById('slider');
|
|
1395
|
+
console.log(sliderElement);
|
|
1396
|
+
var style = window.getComputedStyle(element), margin = parseFloat(style.marginRight), top = parseFloat(style.top);
|
|
1397
|
+
if (margin) {
|
|
1398
|
+
sliderElement.style.right = '-' + style.marginRight;
|
|
1399
|
+
}
|
|
1400
|
+
if (top) {
|
|
1401
|
+
sliderElement.style.top = '-' + style.top;
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
closeSlider(e) {
|
|
1406
|
+
this.toggleSlide();
|
|
1407
|
+
this.sliderClose.emit(e);
|
|
1408
|
+
}
|
|
1409
|
+
toggleSlide() {
|
|
1410
|
+
this.opened = false;
|
|
1411
|
+
this.isSlideOpen = this.opened;
|
|
1412
|
+
}
|
|
1413
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SliderComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1414
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SliderComponent, selector: "lib-slider", inputs: { opened: "opened", title: "title", frameNumber: "frameNumber", parentId: "parentId" }, outputs: { sliderClose: "sliderClose" }, host: { properties: { "class.show": "this.isSlideOpen" } }, ngImport: i0, template: "<div class=\"slider-wrap\" [ngClass]=\"{ 'show' : opened }\">\n <div class=\"slider\" id=\"slider\">\n <div class=\"slider-header\">\n <div class=\"header-content\">\n <div *ngIf='frameNumber > 0' class=\"frame-number\">{{frameNumber}}\n </div>\n <span class=\"head-title\">\n <lib-typography *ngIf=\"title.length > 0\" [defaultText]=\"title\" type=\"H3_MULISH_18_BOLD\">\n </lib-typography>\n </span>\n </div>\n <div>\n <a href=\"javascript:void(0)\" class=\"closebtn\" (click)=\"closeSlider($event)\">\n ×\n </a>\n </div>\n </div>\n <div class=\"slider-body\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n<div *ngIf=\"opened\" class=\"overlay overlay-shown\"></div>\n", styles: [".slider-wrap{position:absolute;top:0;bottom:0;right:0;transform:translate(100%);transition:.3s ease-out;box-shadow:#959da533 6px 20px 14px 14px;width:100%}.slider{position:absolute;inset:0;background:#fff;overflow:auto}.slider-wrap .closebtn{font-size:22px;color:#000;z-index:99;text-decoration:none}.show{transform:translate(0)!important}.overlay{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:background-color,visibility}.overlay.overlay-shown{visibility:hidden;background-color:#0000004d}.overlay-shown{inset:0;position:absolute;display:block;z-index:3;visibility:hidden}.head-title{color:#000;margin-left:20px;font-size:18px;font-weight:600}.frame-number{border-radius:85%;width:24px;height:24px;background:#000;color:#fff;text-align:center;justify-content:center;align-items:center;margin-top:2px;display:flex;font-size:18px;font-weight:600}.slider-header{border-bottom:.4px solid #bbbbbb;display:flex;padding:15px;justify-content:space-between;align-items:center;width:100%;position:sticky;top:0;z-index:10;background:#fff}.header-content{display:flex}.slider-body{margin:24px}\n"], dependencies: [{ kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TypographyComponent, selector: "lib-typography", inputs: ["type", "defaultText", "isLabel", "hiddenLabel"] }] }); }
|
|
1415
|
+
}
|
|
1416
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SliderComponent, decorators: [{
|
|
1417
|
+
type: Component,
|
|
1418
|
+
args: [{ selector: 'lib-slider', template: "<div class=\"slider-wrap\" [ngClass]=\"{ 'show' : opened }\">\n <div class=\"slider\" id=\"slider\">\n <div class=\"slider-header\">\n <div class=\"header-content\">\n <div *ngIf='frameNumber > 0' class=\"frame-number\">{{frameNumber}}\n </div>\n <span class=\"head-title\">\n <lib-typography *ngIf=\"title.length > 0\" [defaultText]=\"title\" type=\"H3_MULISH_18_BOLD\">\n </lib-typography>\n </span>\n </div>\n <div>\n <a href=\"javascript:void(0)\" class=\"closebtn\" (click)=\"closeSlider($event)\">\n ×\n </a>\n </div>\n </div>\n <div class=\"slider-body\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n<div *ngIf=\"opened\" class=\"overlay overlay-shown\"></div>\n", styles: [".slider-wrap{position:absolute;top:0;bottom:0;right:0;transform:translate(100%);transition:.3s ease-out;box-shadow:#959da533 6px 20px 14px 14px;width:100%}.slider{position:absolute;inset:0;background:#fff;overflow:auto}.slider-wrap .closebtn{font-size:22px;color:#000;z-index:99;text-decoration:none}.show{transform:translate(0)!important}.overlay{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:background-color,visibility}.overlay.overlay-shown{visibility:hidden;background-color:#0000004d}.overlay-shown{inset:0;position:absolute;display:block;z-index:3;visibility:hidden}.head-title{color:#000;margin-left:20px;font-size:18px;font-weight:600}.frame-number{border-radius:85%;width:24px;height:24px;background:#000;color:#fff;text-align:center;justify-content:center;align-items:center;margin-top:2px;display:flex;font-size:18px;font-weight:600}.slider-header{border-bottom:.4px solid #bbbbbb;display:flex;padding:15px;justify-content:space-between;align-items:center;width:100%;position:sticky;top:0;z-index:10;background:#fff}.header-content{display:flex}.slider-body{margin:24px}\n"] }]
|
|
1419
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { opened: [{
|
|
1420
|
+
type: Input
|
|
1421
|
+
}], title: [{
|
|
1422
|
+
type: Input
|
|
1423
|
+
}], frameNumber: [{
|
|
1424
|
+
type: Input
|
|
1425
|
+
}], isSlideOpen: [{
|
|
1426
|
+
type: HostBinding,
|
|
1427
|
+
args: ['class.show']
|
|
1428
|
+
}], sliderClose: [{
|
|
1429
|
+
type: Output
|
|
1430
|
+
}], parentId: [{
|
|
1431
|
+
type: Input
|
|
1432
|
+
}] } });
|
|
1433
|
+
|
|
1434
|
+
class SliderModule {
|
|
1435
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1436
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SliderModule, declarations: [SliderComponent], imports: [CommonModule,
|
|
1437
|
+
TypographyModule], exports: [SliderComponent] }); }
|
|
1438
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SliderModule, imports: [CommonModule,
|
|
1439
|
+
TypographyModule] }); }
|
|
1440
|
+
}
|
|
1441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SliderModule, decorators: [{
|
|
1442
|
+
type: NgModule,
|
|
1443
|
+
args: [{
|
|
1444
|
+
declarations: [
|
|
1445
|
+
SliderComponent
|
|
1446
|
+
],
|
|
1447
|
+
imports: [
|
|
1448
|
+
CommonModule,
|
|
1449
|
+
TypographyModule
|
|
1450
|
+
],
|
|
1451
|
+
exports: [
|
|
1452
|
+
SliderComponent
|
|
1453
|
+
]
|
|
1454
|
+
}]
|
|
1455
|
+
}] });
|
|
1456
|
+
|
|
1457
|
+
class TextAreaComponent {
|
|
1458
|
+
constructor(themesService) {
|
|
1459
|
+
this.themesService = themesService;
|
|
1460
|
+
this.placeholder = 'Enter here';
|
|
1461
|
+
this.resizable = 'vertical';
|
|
1462
|
+
this.value = '';
|
|
1463
|
+
this.control = new FormControl();
|
|
1464
|
+
this.inputChange = new EventEmitter();
|
|
1465
|
+
}
|
|
1466
|
+
ngOnInit() { }
|
|
1467
|
+
emitValueChange(ev) {
|
|
1468
|
+
this.inputChange.emit(ev);
|
|
1469
|
+
}
|
|
1470
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextAreaComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1471
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TextAreaComponent, selector: "lib-text-area", inputs: { placeholder: "placeholder", resizable: "resizable", rows: "rows", cols: "cols", width: "width", value: "value", control: "control" }, outputs: { inputChange: "inputChange" }, ngImport: i0, template: "<kendo-textarea\n #textarea\n [placeholder]=\"placeholder\"\n [resizable]=\"resizable\"\n [rows]=\"rows\"\n [cols]=\"cols\"\n [style.width.px]=\"width\"\n [(ngModel)]=\"value\"\n [formControl]=\"control\"\n (ngModelChange)=\"emitValueChange($event)\"\n>\n</kendo-textarea>\n", styles: [""], dependencies: [{ kind: "component", type: i3$1.TextAreaComponent, selector: "kendo-textarea", inputs: ["focusableId", "flow", "rows", "cols", "maxlength", "tabindex", "tabIndex", "resizable", "size", "rounded", "fillMode"], outputs: ["focus", "blur", "valueChange"], exportAs: ["kendoTextArea"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] }); }
|
|
1472
|
+
}
|
|
1473
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextAreaComponent, decorators: [{
|
|
1474
|
+
type: Component,
|
|
1475
|
+
args: [{ selector: 'lib-text-area', template: "<kendo-textarea\n #textarea\n [placeholder]=\"placeholder\"\n [resizable]=\"resizable\"\n [rows]=\"rows\"\n [cols]=\"cols\"\n [style.width.px]=\"width\"\n [(ngModel)]=\"value\"\n [formControl]=\"control\"\n (ngModelChange)=\"emitValueChange($event)\"\n>\n</kendo-textarea>\n" }]
|
|
1476
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { placeholder: [{
|
|
1477
|
+
type: Input
|
|
1478
|
+
}], resizable: [{
|
|
1479
|
+
type: Input
|
|
1480
|
+
}], rows: [{
|
|
1481
|
+
type: Input
|
|
1482
|
+
}], cols: [{
|
|
1483
|
+
type: Input
|
|
1484
|
+
}], width: [{
|
|
1485
|
+
type: Input
|
|
1486
|
+
}], value: [{
|
|
1487
|
+
type: Input
|
|
1488
|
+
}], control: [{
|
|
1489
|
+
type: Input
|
|
1490
|
+
}], inputChange: [{
|
|
1491
|
+
type: Output
|
|
1492
|
+
}] } });
|
|
1493
|
+
|
|
1494
|
+
class TextAreaModule {
|
|
1495
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1496
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TextAreaModule, declarations: [TextAreaComponent], imports: [CommonModule,
|
|
1497
|
+
InputsModule,
|
|
1498
|
+
ReactiveFormsModule], exports: [TextAreaComponent] }); }
|
|
1499
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextAreaModule, imports: [CommonModule,
|
|
1500
|
+
InputsModule,
|
|
1501
|
+
ReactiveFormsModule] }); }
|
|
1502
|
+
}
|
|
1503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextAreaModule, decorators: [{
|
|
1504
|
+
type: NgModule,
|
|
1505
|
+
args: [{
|
|
1506
|
+
declarations: [TextAreaComponent],
|
|
1507
|
+
imports: [
|
|
1508
|
+
CommonModule,
|
|
1509
|
+
InputsModule,
|
|
1510
|
+
ReactiveFormsModule
|
|
1511
|
+
],
|
|
1512
|
+
exports: [TextAreaComponent],
|
|
1513
|
+
}]
|
|
1514
|
+
}] });
|
|
1515
|
+
|
|
1516
|
+
class TextboxComponent {
|
|
1517
|
+
constructor(themesService) {
|
|
1518
|
+
this.themesService = themesService;
|
|
1519
|
+
this.showPassword = false;
|
|
1520
|
+
this.showEyeIcon = false;
|
|
1521
|
+
this.clearButton = true;
|
|
1522
|
+
this.placeholder = 'message';
|
|
1523
|
+
this.width = '300';
|
|
1524
|
+
this.isDisabled = false;
|
|
1525
|
+
this.readonly = false;
|
|
1526
|
+
this.size = "medium";
|
|
1527
|
+
this.rounded = "medium";
|
|
1528
|
+
this.fillMode = "outline";
|
|
1529
|
+
this.control = new FormControl();
|
|
1530
|
+
this.value = '';
|
|
1531
|
+
this.type = '';
|
|
1532
|
+
this.inputChange = new EventEmitter();
|
|
1533
|
+
this.focusEvent = new EventEmitter();
|
|
1534
|
+
this.blurEvent = new EventEmitter();
|
|
1535
|
+
}
|
|
1536
|
+
ngOnChanges(changes) {
|
|
1537
|
+
if (changes['isDisabled']) {
|
|
1538
|
+
if (changes['isDisabled']?.currentValue) {
|
|
1539
|
+
this.control.disable();
|
|
1540
|
+
}
|
|
1541
|
+
else {
|
|
1542
|
+
this.control.enable();
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
ngAfterViewInit() {
|
|
1547
|
+
this.textbox.input.nativeElement.type = this.type;
|
|
1548
|
+
}
|
|
1549
|
+
toggleVisibility() {
|
|
1550
|
+
const inputElement = this.textbox.input.nativeElement;
|
|
1551
|
+
if (inputElement.type === "password") {
|
|
1552
|
+
inputElement.type = "text";
|
|
1553
|
+
this.showPassword = true;
|
|
1554
|
+
}
|
|
1555
|
+
else {
|
|
1556
|
+
inputElement.type = "password";
|
|
1557
|
+
this.showPassword = false;
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
emitValueChange(ev) {
|
|
1561
|
+
this.inputChange.emit(ev);
|
|
1562
|
+
}
|
|
1563
|
+
onFocus() {
|
|
1564
|
+
this.focusEvent.emit();
|
|
1565
|
+
}
|
|
1566
|
+
onBlur() {
|
|
1567
|
+
this.blurEvent.emit();
|
|
1568
|
+
}
|
|
1569
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextboxComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1570
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TextboxComponent, selector: "lib-textbox", inputs: { showEyeIcon: "showEyeIcon", clearButton: "clearButton", placeholder: "placeholder", width: "width", isDisabled: "isDisabled", readonly: "readonly", size: "size", rounded: "rounded", fillMode: "fillMode", control: "control", value: "value", type: "type" }, outputs: { inputChange: "inputChange", focusEvent: "focusEvent", blurEvent: "blurEvent" }, viewQueries: [{ propertyName: "textbox", first: true, predicate: ["textbox"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<kendo-textbox #textbox [style.width.px]=\"width\" [placeholder]=\"placeholder\" [clearButton]=\"clearButton\"\n [fillMode]=\"fillMode\" [readonly]=\"readonly\" [size]=\"size\" [rounded]=\"rounded\" [formControl]=\"control\"\n [(ngModel)]=\"value\" (ngModelChange)=\"emitValueChange($event)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\">\n <ng-template *ngIf=\"this.type === 'password' && showEyeIcon\" kendoTextBoxSuffixTemplate>\n <lib-icon name=\"eye-open\" (click)=\"toggleVisibility()\" *ngIf=\"showPassword\"></lib-icon>\n <lib-icon name=\"eye-closed\" (click)=\"toggleVisibility()\" *ngIf=\"!showPassword\"></lib-icon>\n </ng-template>\n</kendo-textbox>\n", styles: ["kendo-textbox lib-icon{padding-right:12px;cursor:pointer}\n"], dependencies: [{ kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$1.TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "type", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { kind: "directive", type: i3$1.TextBoxSuffixTemplateDirective, selector: "[kendoTextBoxSuffixTemplate]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: IconComponent, selector: "lib-icon", inputs: ["name", "fontSize", "type"] }] }); }
|
|
1571
|
+
}
|
|
1572
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextboxComponent, decorators: [{
|
|
1573
|
+
type: Component,
|
|
1574
|
+
args: [{ selector: 'lib-textbox', template: "<kendo-textbox #textbox [style.width.px]=\"width\" [placeholder]=\"placeholder\" [clearButton]=\"clearButton\"\n [fillMode]=\"fillMode\" [readonly]=\"readonly\" [size]=\"size\" [rounded]=\"rounded\" [formControl]=\"control\"\n [(ngModel)]=\"value\" (ngModelChange)=\"emitValueChange($event)\" (focus)=\"onFocus()\" (blur)=\"onBlur()\">\n <ng-template *ngIf=\"this.type === 'password' && showEyeIcon\" kendoTextBoxSuffixTemplate>\n <lib-icon name=\"eye-open\" (click)=\"toggleVisibility()\" *ngIf=\"showPassword\"></lib-icon>\n <lib-icon name=\"eye-closed\" (click)=\"toggleVisibility()\" *ngIf=\"!showPassword\"></lib-icon>\n </ng-template>\n</kendo-textbox>\n", styles: ["kendo-textbox lib-icon{padding-right:12px;cursor:pointer}\n"] }]
|
|
1575
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { textbox: [{
|
|
1576
|
+
type: ViewChild,
|
|
1577
|
+
args: ['textbox', { static: false }]
|
|
1578
|
+
}], showEyeIcon: [{
|
|
1579
|
+
type: Input
|
|
1580
|
+
}], clearButton: [{
|
|
1581
|
+
type: Input
|
|
1582
|
+
}], placeholder: [{
|
|
1583
|
+
type: Input
|
|
1584
|
+
}], width: [{
|
|
1585
|
+
type: Input
|
|
1586
|
+
}], isDisabled: [{
|
|
1587
|
+
type: Input
|
|
1588
|
+
}], readonly: [{
|
|
1589
|
+
type: Input
|
|
1590
|
+
}], size: [{
|
|
1591
|
+
type: Input
|
|
1592
|
+
}], rounded: [{
|
|
1593
|
+
type: Input
|
|
1594
|
+
}], fillMode: [{
|
|
1595
|
+
type: Input
|
|
1596
|
+
}], control: [{
|
|
1597
|
+
type: Input
|
|
1598
|
+
}], value: [{
|
|
1599
|
+
type: Input
|
|
1600
|
+
}], type: [{
|
|
1601
|
+
type: Input
|
|
1602
|
+
}], inputChange: [{
|
|
1603
|
+
type: Output
|
|
1604
|
+
}], focusEvent: [{
|
|
1605
|
+
type: Output
|
|
1606
|
+
}], blurEvent: [{
|
|
1607
|
+
type: Output
|
|
1608
|
+
}] } });
|
|
1609
|
+
|
|
1610
|
+
class TextboxModule {
|
|
1611
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1612
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TextboxModule, declarations: [TextboxComponent], imports: [CommonModule, InputsModule, ReactiveFormsModule, IconModule], exports: [TextboxComponent] }); }
|
|
1613
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextboxModule, imports: [CommonModule, InputsModule, ReactiveFormsModule, IconModule] }); }
|
|
1614
|
+
}
|
|
1615
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextboxModule, decorators: [{
|
|
1616
|
+
type: NgModule,
|
|
1617
|
+
args: [{
|
|
1618
|
+
declarations: [TextboxComponent],
|
|
1619
|
+
exports: [TextboxComponent],
|
|
1620
|
+
imports: [CommonModule, InputsModule, ReactiveFormsModule, IconModule],
|
|
1621
|
+
}]
|
|
1622
|
+
}] });
|
|
1623
|
+
|
|
1624
|
+
class TimeschedulerComponent {
|
|
1625
|
+
constructor(themesService) {
|
|
1626
|
+
this.themesService = themesService;
|
|
1627
|
+
this.model = new Date();
|
|
1628
|
+
this.modelChange = new EventEmitter();
|
|
1629
|
+
this.size = 'medium';
|
|
1630
|
+
this.rounded = 'medium';
|
|
1631
|
+
this.fillMode = 'solid';
|
|
1632
|
+
this.format = 'MM/dd/yyyy hh:mm a';
|
|
1633
|
+
this.isDisabled = false;
|
|
1634
|
+
this.readonly = false;
|
|
1635
|
+
this.placeholder = '';
|
|
1636
|
+
this.control = new FormControl();
|
|
1637
|
+
}
|
|
1638
|
+
ngOnChanges(changes) {
|
|
1639
|
+
if (changes['isDisabled']) {
|
|
1640
|
+
if (changes['isDisabled']?.currentValue) {
|
|
1641
|
+
this.control.disable();
|
|
1642
|
+
}
|
|
1643
|
+
else {
|
|
1644
|
+
this.control.enable();
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
ngOnInit() { }
|
|
1649
|
+
emitModelChange(ev) {
|
|
1650
|
+
this.modelChange.emit(ev);
|
|
1651
|
+
}
|
|
1652
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeschedulerComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1653
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TimeschedulerComponent, selector: "lib-timescheduler", inputs: { model: "model", size: "size", rounded: "rounded", fillMode: "fillMode", format: "format", isDisabled: "isDisabled", readonly: "readonly", placeholder: "placeholder", control: "control" }, outputs: { modelChange: "modelChange" }, usesOnChanges: true, ngImport: i0, template: "<kendo-datetimepicker [format]=\"format\" [size]=\"size\" [rounded]=\"rounded\" [fillMode]=\"fillMode\" [readonly]=\"readonly\"\n [value]=\"model\" (valueChange)=\"emitModelChange($event)\" [placeholder]=\"placeholder\" [formControl]=\"control\">\n</kendo-datetimepicker>\n", styles: ["@font-face{font-family:Mulish;src:url(/assets/fonts/Mulish-Light.ttf);font-weight:300;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-LightItalic.ttf);font-weight:300;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Regular.ttf);font-weight:400;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Italic.ttf);font-weight:400;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Bold.ttf);font-weight:700;font-style:normal}.k-input{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:16px;line-height:24px;letter-spacing:.2px}\n"], dependencies: [{ kind: "component", type: i2$4.DateTimePickerComponent, selector: "kendo-datetimepicker", inputs: ["focusableId", "value", "format", "twoDigitYearMax", "tabindex", "disabledDates", "popupSettings", "title", "subtitle", "disabled", "readonly", "readOnlyInput", "cancelButton", "formatPlaceholder", "placeholder", "steps", "focusedDate", "calendarType", "animateCalendarNavigation", "weekNumber", "min", "max", "rangeValidation", "disabledDatesValidation", "incompleteDateValidation", "autoCorrectParts", "autoSwitchParts", "autoSwitchKeys", "enableMouseWheel", "allowCaretMode", "autoFill", "adaptiveMode", "defaultTab", "size", "rounded", "fillMode"], outputs: ["valueChange", "open", "close", "focus", "blur"], exportAs: ["kendo-datetimepicker"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] }); }
|
|
1654
|
+
}
|
|
1655
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeschedulerComponent, decorators: [{
|
|
1656
|
+
type: Component,
|
|
1657
|
+
args: [{ selector: 'lib-timescheduler', template: "<kendo-datetimepicker [format]=\"format\" [size]=\"size\" [rounded]=\"rounded\" [fillMode]=\"fillMode\" [readonly]=\"readonly\"\n [value]=\"model\" (valueChange)=\"emitModelChange($event)\" [placeholder]=\"placeholder\" [formControl]=\"control\">\n</kendo-datetimepicker>\n", styles: ["@font-face{font-family:Mulish;src:url(/assets/fonts/Mulish-Light.ttf);font-weight:300;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-LightItalic.ttf);font-weight:300;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Regular.ttf);font-weight:400;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Italic.ttf);font-weight:400;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Bold.ttf);font-weight:700;font-style:normal}.k-input{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:16px;line-height:24px;letter-spacing:.2px}\n"] }]
|
|
1658
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { model: [{
|
|
1659
|
+
type: Input
|
|
1660
|
+
}], modelChange: [{
|
|
1661
|
+
type: Output
|
|
1662
|
+
}], size: [{
|
|
1663
|
+
type: Input
|
|
1664
|
+
}], rounded: [{
|
|
1665
|
+
type: Input
|
|
1666
|
+
}], fillMode: [{
|
|
1667
|
+
type: Input
|
|
1668
|
+
}], format: [{
|
|
1669
|
+
type: Input
|
|
1670
|
+
}], isDisabled: [{
|
|
1671
|
+
type: Input
|
|
1672
|
+
}], readonly: [{
|
|
1673
|
+
type: Input
|
|
1674
|
+
}], placeholder: [{
|
|
1675
|
+
type: Input
|
|
1676
|
+
}], control: [{
|
|
1677
|
+
type: Input
|
|
1678
|
+
}] } });
|
|
1679
|
+
|
|
1680
|
+
class TimeSchedulerModule {
|
|
1681
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeSchedulerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1682
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TimeSchedulerModule, declarations: [TimeschedulerComponent], imports: [DateInputsModule,
|
|
1683
|
+
ButtonsModule,
|
|
1684
|
+
FormsModule,
|
|
1685
|
+
ReactiveFormsModule], exports: [TimeschedulerComponent] }); }
|
|
1686
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeSchedulerModule, imports: [DateInputsModule,
|
|
1687
|
+
ButtonsModule,
|
|
1688
|
+
FormsModule,
|
|
1689
|
+
ReactiveFormsModule] }); }
|
|
1690
|
+
}
|
|
1691
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TimeSchedulerModule, decorators: [{
|
|
1692
|
+
type: NgModule,
|
|
1693
|
+
args: [{
|
|
1694
|
+
imports: [
|
|
1695
|
+
DateInputsModule,
|
|
1696
|
+
ButtonsModule,
|
|
1697
|
+
FormsModule,
|
|
1698
|
+
ReactiveFormsModule
|
|
1699
|
+
],
|
|
1700
|
+
declarations: [TimeschedulerComponent],
|
|
1701
|
+
exports: [TimeschedulerComponent]
|
|
1702
|
+
}]
|
|
1703
|
+
}] });
|
|
1704
|
+
|
|
1705
|
+
class TooltipComponent {
|
|
1706
|
+
constructor(themesService) {
|
|
1707
|
+
this.themesService = themesService;
|
|
1708
|
+
this.position = 'right';
|
|
1709
|
+
this.showOn = 'hover';
|
|
1710
|
+
this.closable = false;
|
|
1711
|
+
this.title = 'tool';
|
|
1712
|
+
}
|
|
1713
|
+
ngOnInit() { }
|
|
1714
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1715
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TooltipComponent, selector: "lib-tooltip", inputs: { position: "position", tooltipWidth: "tooltipWidth", tooltipHeight: "tooltipHeight", showOn: "showOn", closable: "closable", title: "title", callout: "callout" }, ngImport: i0, template: "<div kendoTooltip [tooltipTemplate]=\"template\" [position]=\"position\" [title]=\"title\" [callout]=\"callout\"\n [showOn]=\"showOn\" [tooltipWidth]=\"tooltipWidth\" [tooltipHeight]=\"tooltipHeight\" [closable]=\"closable\">\n <ng-content></ng-content>\n</div>\n\n<ng-template #template>\n <ng-content select=\"div.tooltip-content\"></ng-content>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "directive", type: i2$5.TooltipDirective, selector: "[kendoTooltip]", inputs: ["filter", "position", "titleTemplate", "showOn", "showAfter", "callout", "closable", "offset", "tooltipWidth", "tooltipHeight", "tooltipClass", "collision", "closeTitle", "tooltipTemplate"], exportAs: ["kendoTooltip"] }] }); }
|
|
1716
|
+
}
|
|
1717
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
1718
|
+
type: Component,
|
|
1719
|
+
args: [{ selector: 'lib-tooltip', template: "<div kendoTooltip [tooltipTemplate]=\"template\" [position]=\"position\" [title]=\"title\" [callout]=\"callout\"\n [showOn]=\"showOn\" [tooltipWidth]=\"tooltipWidth\" [tooltipHeight]=\"tooltipHeight\" [closable]=\"closable\">\n <ng-content></ng-content>\n</div>\n\n<ng-template #template>\n <ng-content select=\"div.tooltip-content\"></ng-content>\n</ng-template>\n" }]
|
|
1720
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { position: [{
|
|
1721
|
+
type: Input
|
|
1722
|
+
}], tooltipWidth: [{
|
|
1723
|
+
type: Input
|
|
1724
|
+
}], tooltipHeight: [{
|
|
1725
|
+
type: Input
|
|
1726
|
+
}], showOn: [{
|
|
1727
|
+
type: Input
|
|
1728
|
+
}], closable: [{
|
|
1729
|
+
type: Input
|
|
1730
|
+
}], title: [{
|
|
1731
|
+
type: Input
|
|
1732
|
+
}], callout: [{
|
|
1733
|
+
type: Input
|
|
1734
|
+
}] } });
|
|
1735
|
+
|
|
1736
|
+
class TooltipModule {
|
|
1737
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1738
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TooltipModule, declarations: [TooltipComponent], imports: [TooltipsModule], exports: [TooltipComponent] }); }
|
|
1739
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipModule, imports: [TooltipsModule] }); }
|
|
1740
|
+
}
|
|
1741
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipModule, decorators: [{
|
|
1742
|
+
type: NgModule,
|
|
1743
|
+
args: [{
|
|
1744
|
+
declarations: [TooltipComponent],
|
|
1745
|
+
imports: [
|
|
1746
|
+
TooltipsModule
|
|
1747
|
+
],
|
|
1748
|
+
exports: [TooltipComponent]
|
|
1749
|
+
}]
|
|
1750
|
+
}] });
|
|
1751
|
+
|
|
1752
|
+
class NumericTextboxComponent {
|
|
1753
|
+
constructor(themesService) {
|
|
1754
|
+
this.themesService = themesService;
|
|
1755
|
+
this.id = "sampleId";
|
|
1756
|
+
this.autoCorrect = true;
|
|
1757
|
+
this.width = 200;
|
|
1758
|
+
this.isDisabled = false;
|
|
1759
|
+
this.step = 1;
|
|
1760
|
+
this.format = "n0";
|
|
1761
|
+
this.fillMode = "solid";
|
|
1762
|
+
this.rounded = "medium";
|
|
1763
|
+
this.size = "medium";
|
|
1764
|
+
this.readonly = false;
|
|
1765
|
+
this.placeholder = '';
|
|
1766
|
+
this.modelChange = new EventEmitter();
|
|
1767
|
+
this.control = new FormControl();
|
|
1768
|
+
}
|
|
1769
|
+
ngOnChanges(changes) {
|
|
1770
|
+
if (changes['isDisabled']) {
|
|
1771
|
+
if (changes['isDisabled']?.currentValue) {
|
|
1772
|
+
this.control.disable();
|
|
1773
|
+
}
|
|
1774
|
+
else {
|
|
1775
|
+
this.control.enable();
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
ngOnInit() {
|
|
1780
|
+
}
|
|
1781
|
+
emitModelChange(ev) {
|
|
1782
|
+
this.modelChange.emit(ev);
|
|
1783
|
+
}
|
|
1784
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NumericTextboxComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1785
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: NumericTextboxComponent, selector: "lib-numeric-textbox", inputs: { id: "id", autoCorrect: "autoCorrect", width: "width", isDisabled: "isDisabled", value: "value", min: "min", max: "max", step: "step", format: "format", fillMode: "fillMode", rounded: "rounded", size: "size", readonly: "readonly", placeholder: "placeholder", model: "model", control: "control" }, outputs: { modelChange: "modelChange" }, usesOnChanges: true, ngImport: i0, template: "<kendo-numerictextbox [id]=\"id\" [autoCorrect]=\"autoCorrect\" [style.width.px]=\"width\" [value]=\"value\" [min]=\"min\"\n [max]=\"max\" [step]=\"step\" [fillMode]=\"fillMode\" [rounded]=\"rounded\" [size]=\"size\" [readonly]=\"readonly\"\n [placeholder]=\"placeholder\" [format]=\"format\" [ngModel]=\"model\" (ngModelChange)=\"emitModelChange($event)\"\n [formControl]=\"control\">\n</kendo-numerictextbox>\n", styles: [""], dependencies: [{ kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3$1.NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode"], outputs: ["valueChange", "focus", "blur"], exportAs: ["kendoNumericTextBox"] }] }); }
|
|
1786
|
+
}
|
|
1787
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NumericTextboxComponent, decorators: [{
|
|
1788
|
+
type: Component,
|
|
1789
|
+
args: [{ selector: 'lib-numeric-textbox', template: "<kendo-numerictextbox [id]=\"id\" [autoCorrect]=\"autoCorrect\" [style.width.px]=\"width\" [value]=\"value\" [min]=\"min\"\n [max]=\"max\" [step]=\"step\" [fillMode]=\"fillMode\" [rounded]=\"rounded\" [size]=\"size\" [readonly]=\"readonly\"\n [placeholder]=\"placeholder\" [format]=\"format\" [ngModel]=\"model\" (ngModelChange)=\"emitModelChange($event)\"\n [formControl]=\"control\">\n</kendo-numerictextbox>\n" }]
|
|
1790
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { id: [{
|
|
1791
|
+
type: Input
|
|
1792
|
+
}], autoCorrect: [{
|
|
1793
|
+
type: Input
|
|
1794
|
+
}], width: [{
|
|
1795
|
+
type: Input
|
|
1796
|
+
}], isDisabled: [{
|
|
1797
|
+
type: Input
|
|
1798
|
+
}], value: [{
|
|
1799
|
+
type: Input
|
|
1800
|
+
}], min: [{
|
|
1801
|
+
type: Input
|
|
1802
|
+
}], max: [{
|
|
1803
|
+
type: Input
|
|
1804
|
+
}], step: [{
|
|
1805
|
+
type: Input
|
|
1806
|
+
}], format: [{
|
|
1807
|
+
type: Input
|
|
1808
|
+
}], fillMode: [{
|
|
1809
|
+
type: Input
|
|
1810
|
+
}], rounded: [{
|
|
1811
|
+
type: Input
|
|
1812
|
+
}], size: [{
|
|
1813
|
+
type: Input
|
|
1814
|
+
}], readonly: [{
|
|
1815
|
+
type: Input
|
|
1816
|
+
}], placeholder: [{
|
|
1817
|
+
type: Input
|
|
1818
|
+
}], model: [{
|
|
1819
|
+
type: Input
|
|
1820
|
+
}], modelChange: [{
|
|
1821
|
+
type: Output
|
|
1822
|
+
}], control: [{
|
|
1823
|
+
type: Input
|
|
1824
|
+
}] } });
|
|
1825
|
+
|
|
1826
|
+
class NumericTextboxModule {
|
|
1827
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NumericTextboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1828
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: NumericTextboxModule, declarations: [NumericTextboxComponent], imports: [CommonModule,
|
|
1829
|
+
FormsModule,
|
|
1830
|
+
ReactiveFormsModule,
|
|
1831
|
+
InputsModule], exports: [NumericTextboxComponent] }); }
|
|
1832
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NumericTextboxModule, imports: [CommonModule,
|
|
1833
|
+
FormsModule,
|
|
1834
|
+
ReactiveFormsModule,
|
|
1835
|
+
InputsModule] }); }
|
|
1836
|
+
}
|
|
1837
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NumericTextboxModule, decorators: [{
|
|
1838
|
+
type: NgModule,
|
|
1839
|
+
args: [{
|
|
1840
|
+
declarations: [
|
|
1841
|
+
NumericTextboxComponent
|
|
1842
|
+
],
|
|
1843
|
+
imports: [
|
|
1844
|
+
CommonModule,
|
|
1845
|
+
FormsModule,
|
|
1846
|
+
ReactiveFormsModule,
|
|
1847
|
+
InputsModule
|
|
1848
|
+
],
|
|
1849
|
+
exports: [
|
|
1850
|
+
NumericTextboxComponent
|
|
1851
|
+
]
|
|
1852
|
+
}]
|
|
1853
|
+
}] });
|
|
1854
|
+
|
|
1855
|
+
class DropdowntreeComponent {
|
|
1856
|
+
constructor(themesService) {
|
|
1857
|
+
this.themesService = themesService;
|
|
1858
|
+
this.childrenField = '';
|
|
1859
|
+
this.hasDefaultValue = false;
|
|
1860
|
+
this.isDisabled = false;
|
|
1861
|
+
this.listHeight = 330;
|
|
1862
|
+
this.placeholder = "";
|
|
1863
|
+
this.clearButton = false;
|
|
1864
|
+
this.expandBy = '';
|
|
1865
|
+
this.expandedKeys = [];
|
|
1866
|
+
this.data = [];
|
|
1867
|
+
this.textField = '';
|
|
1868
|
+
this.readonly = false;
|
|
1869
|
+
this.valueField = '';
|
|
1870
|
+
this.footerBtnLabel = '';
|
|
1871
|
+
this.footerBtnIcon = '';
|
|
1872
|
+
this.hasFooterBtn = false;
|
|
1873
|
+
this.rounded = "medium";
|
|
1874
|
+
this.fillMode = "solid";
|
|
1875
|
+
this.size = "medium";
|
|
1876
|
+
this.control = new FormControl();
|
|
1877
|
+
this.selectedItem = new EventEmitter();
|
|
1878
|
+
this.buttonClick = new EventEmitter();
|
|
1879
|
+
}
|
|
1880
|
+
ngOnChanges(changes) {
|
|
1881
|
+
if (changes['isDisabled']) {
|
|
1882
|
+
if (changes['isDisabled']?.currentValue) {
|
|
1883
|
+
this.control.disable();
|
|
1884
|
+
}
|
|
1885
|
+
else {
|
|
1886
|
+
this.control.enable();
|
|
1887
|
+
}
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
ngOnInit() { }
|
|
1891
|
+
valueChange(e) {
|
|
1892
|
+
this.hasDefaultValue = true;
|
|
1893
|
+
this.selectedItem.emit(e);
|
|
1894
|
+
}
|
|
1895
|
+
onButtonClick(e) {
|
|
1896
|
+
this.buttonClick.emit(e);
|
|
1897
|
+
}
|
|
1898
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropdowntreeComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1899
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DropdowntreeComponent, selector: "lib-dropdowntree", inputs: { childrenField: "childrenField", hasDefaultValue: "hasDefaultValue", isDisabled: "isDisabled", listHeight: "listHeight", value: "value", placeholder: "placeholder", clearButton: "clearButton", expandBy: "expandBy", expandedKeys: "expandedKeys", data: "data", textField: "textField", readonly: "readonly", valueField: "valueField", footerBtnLabel: "footerBtnLabel", footerBtnIcon: "footerBtnIcon", hasFooterBtn: "hasFooterBtn", rounded: "rounded", fillMode: "fillMode", size: "size", control: "control" }, outputs: { selectedItem: "selectedItem", buttonClick: "buttonClick" }, usesOnChanges: true, ngImport: i0, template: "<kendo-dropdowntree kendoDropDownTreeExpandable [kendoDropDownTreeHierarchyBinding]=\"data\"\n [childrenField]=\"childrenField\" [textField]=\"textField\" [valueField]=\"valueField\"\n class=\"dropdown\" (valueChange)=\"valueChange($event)\" [placeholder]=\"placeholder\" [ngModel]=\"value\"\n [listHeight]=\"listHeight\" [expandBy]=\"expandBy\" [(expandedKeys)]=\"expandedKeys\" [clearButton]=\"clearButton\"\n [rounded]=\"rounded\" [size]=\"size\" [fillMode]=\"fillMode\" [readonly]=\"readonly\" [formControl]=\"control\">\n\n <ng-template kendoDropDownTreeNodeTemplate let-dataItem>\n <img *ngIf=\"dataItem.imageUrl && dataItem.imageUrl.length > 0\" [src]=\"dataItem.imageUrl\" width=\"24\" height=\"24\"\n [alt]=\"dataItem.imageUrl\" class=\"image\" />\n {{ dataItem.text }}\n </ng-template>\n\n <ng-template *ngIf=\"hasDefaultValue; else myTemplate\" kendoDropDownTreeValueTemplate let-dataItem>\n <img *ngIf=\"dataItem.imageUrl && dataItem.imageUrl.length > 0\" [src]=\"dataItem.imageUrl\" width=\"24\" height=\"24\"\n [alt]=\"dataItem.imageUrl\" class=\"image\" />\n {{ dataItem.text }}\n </ng-template>\n\n <ng-template kendoDropDownTreeItemTemplate let-dataItem #myTemplate>\n {{ dataItem.text }}\n </ng-template>\n\n <ng-template *ngIf=\"hasFooterBtn\" kendoDropDownTreeFooterTemplate>\n <lib-button [label]=\"footerBtnLabel\" fillMode=\"flat\" themeColor=\"primary\" (buttonClick)=\"onButtonClick($event)\"\n iconPosition=\"before\" size=\"medium\" [iconName]=\"footerBtnIcon\" fontType=\"P_MULISH_16_BOLD\"\n class=\"footer-btn\"></lib-button>\n </ng-template>\n\n</kendo-dropdowntree>\n", styles: ["@font-face{font-family:Mulish;src:url(/assets/fonts/Mulish-Light.ttf);font-weight:300;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-LightItalic.ttf);font-weight:300;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Regular.ttf);font-weight:400;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Italic.ttf);font-weight:400;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Bold.ttf);font-weight:700;font-style:normal}.dropdown{width:310px}.image{margin-right:10px;margin-bottom:2px}::ng-deep li .k-treeview-item{padding-top:8px}::ng-deep .k-treeview-md .k-treeview-leaf{width:284px}::ng-deep .k-treeview-item{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:16px;line-height:24px;letter-spacing:.2px}::ng-deep li .k-treeview-item :hover{cursor:pointer}::ng-deep .footer-btn .k-button{height:34px;margin:6px}\n"], dependencies: [{ kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$2.FooterTemplateDirective, selector: "[kendoDropDownListFooterTemplate],[kendoComboBoxFooterTemplate],[kendoDropDownTreeFooterTemplate],[kendoMultiColumnComboBoxFooterTemplate],[kendoAutoCompleteFooterTemplate],[kendoMultiSelectFooterTemplate],[kendoMultiSelectTreeFooterTemplate]" }, { kind: "directive", type: i3$2.ValueTemplateDirective, selector: "[kendoDropDownListValueTemplate],[kendoDropDownTreeValueTemplate]" }, { kind: "component", type: i3$2.DropDownTreeComponent, selector: "kendo-dropdowntree", inputs: ["icon", "svgIcon", "loading", "clearButton", "data", "value", "textField", "valueField", "valueDepth", "hasChildren", "fetchChildren", "placeholder", "popupSettings", "dataItem", "listHeight", "disabled", "readonly", "valuePrimitive", "tabindex", "size", "rounded", "fillMode", "itemDisabled", "isNodeExpanded", "isNodeVisible", "loadOnDemand", "filterable", "filter", "focusableId", "adaptiveMode", "title", "subtitle"], outputs: ["open", "opened", "close", "closed", "nodeExpand", "nodeCollapse", "focus", "blur", "valueChange", "filterChange"], exportAs: ["kendoDropDownTree"] }, { kind: "directive", type: i3$2.DropDownTreeHierarchyBindingDirective, selector: "[kendoDropDownTreeHierarchyBinding]", inputs: ["kendoDropDownTreeHierarchyBinding"] }, { kind: "directive", type: i3$2.DropDownTreesExpandDirective, selector: "[kendoDropDownTreeExpandable], [kendoMultiSelectTreeExpandable]", inputs: ["isNodeExpanded"] }, { kind: "directive", type: i3$2.NodeTemplateDirective, selector: "[kendoDropDownTreeNodeTemplate], [kendoMultiSelectTreeNodeTemplate]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: ButtonComponent, selector: "lib-button", inputs: ["size", "rounded", "fillMode", "themeColor", "label", "iconName", "disabled", "toggleable", "iconPosition", "fontType", "width", "iconButton"], outputs: ["buttonClick"] }] }); }
|
|
1900
|
+
}
|
|
1901
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropdowntreeComponent, decorators: [{
|
|
1902
|
+
type: Component,
|
|
1903
|
+
args: [{ selector: 'lib-dropdowntree', template: "<kendo-dropdowntree kendoDropDownTreeExpandable [kendoDropDownTreeHierarchyBinding]=\"data\"\n [childrenField]=\"childrenField\" [textField]=\"textField\" [valueField]=\"valueField\"\n class=\"dropdown\" (valueChange)=\"valueChange($event)\" [placeholder]=\"placeholder\" [ngModel]=\"value\"\n [listHeight]=\"listHeight\" [expandBy]=\"expandBy\" [(expandedKeys)]=\"expandedKeys\" [clearButton]=\"clearButton\"\n [rounded]=\"rounded\" [size]=\"size\" [fillMode]=\"fillMode\" [readonly]=\"readonly\" [formControl]=\"control\">\n\n <ng-template kendoDropDownTreeNodeTemplate let-dataItem>\n <img *ngIf=\"dataItem.imageUrl && dataItem.imageUrl.length > 0\" [src]=\"dataItem.imageUrl\" width=\"24\" height=\"24\"\n [alt]=\"dataItem.imageUrl\" class=\"image\" />\n {{ dataItem.text }}\n </ng-template>\n\n <ng-template *ngIf=\"hasDefaultValue; else myTemplate\" kendoDropDownTreeValueTemplate let-dataItem>\n <img *ngIf=\"dataItem.imageUrl && dataItem.imageUrl.length > 0\" [src]=\"dataItem.imageUrl\" width=\"24\" height=\"24\"\n [alt]=\"dataItem.imageUrl\" class=\"image\" />\n {{ dataItem.text }}\n </ng-template>\n\n <ng-template kendoDropDownTreeItemTemplate let-dataItem #myTemplate>\n {{ dataItem.text }}\n </ng-template>\n\n <ng-template *ngIf=\"hasFooterBtn\" kendoDropDownTreeFooterTemplate>\n <lib-button [label]=\"footerBtnLabel\" fillMode=\"flat\" themeColor=\"primary\" (buttonClick)=\"onButtonClick($event)\"\n iconPosition=\"before\" size=\"medium\" [iconName]=\"footerBtnIcon\" fontType=\"P_MULISH_16_BOLD\"\n class=\"footer-btn\"></lib-button>\n </ng-template>\n\n</kendo-dropdowntree>\n", styles: ["@font-face{font-family:Mulish;src:url(/assets/fonts/Mulish-Light.ttf);font-weight:300;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-LightItalic.ttf);font-weight:300;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Regular.ttf);font-weight:400;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Italic.ttf);font-weight:400;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Bold.ttf);font-weight:700;font-style:normal}.dropdown{width:310px}.image{margin-right:10px;margin-bottom:2px}::ng-deep li .k-treeview-item{padding-top:8px}::ng-deep .k-treeview-md .k-treeview-leaf{width:284px}::ng-deep .k-treeview-item{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:16px;line-height:24px;letter-spacing:.2px}::ng-deep li .k-treeview-item :hover{cursor:pointer}::ng-deep .footer-btn .k-button{height:34px;margin:6px}\n"] }]
|
|
1904
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { childrenField: [{
|
|
1905
|
+
type: Input
|
|
1906
|
+
}], hasDefaultValue: [{
|
|
1907
|
+
type: Input
|
|
1908
|
+
}], isDisabled: [{
|
|
1909
|
+
type: Input
|
|
1910
|
+
}], listHeight: [{
|
|
1911
|
+
type: Input
|
|
1912
|
+
}], value: [{
|
|
1913
|
+
type: Input
|
|
1914
|
+
}], placeholder: [{
|
|
1915
|
+
type: Input
|
|
1916
|
+
}], clearButton: [{
|
|
1917
|
+
type: Input
|
|
1918
|
+
}], expandBy: [{
|
|
1919
|
+
type: Input
|
|
1920
|
+
}], expandedKeys: [{
|
|
1921
|
+
type: Input
|
|
1922
|
+
}], data: [{
|
|
1923
|
+
type: Input
|
|
1924
|
+
}], textField: [{
|
|
1925
|
+
type: Input
|
|
1926
|
+
}], readonly: [{
|
|
1927
|
+
type: Input
|
|
1928
|
+
}], valueField: [{
|
|
1929
|
+
type: Input
|
|
1930
|
+
}], footerBtnLabel: [{
|
|
1931
|
+
type: Input
|
|
1932
|
+
}], footerBtnIcon: [{
|
|
1933
|
+
type: Input
|
|
1934
|
+
}], hasFooterBtn: [{
|
|
1935
|
+
type: Input
|
|
1936
|
+
}], rounded: [{
|
|
1937
|
+
type: Input
|
|
1938
|
+
}], fillMode: [{
|
|
1939
|
+
type: Input
|
|
1940
|
+
}], size: [{
|
|
1941
|
+
type: Input
|
|
1942
|
+
}], control: [{
|
|
1943
|
+
type: Input
|
|
1944
|
+
}], selectedItem: [{
|
|
1945
|
+
type: Output
|
|
1946
|
+
}], buttonClick: [{
|
|
1947
|
+
type: Output
|
|
1948
|
+
}] } });
|
|
1949
|
+
|
|
1950
|
+
class DropdownTreeModule {
|
|
1951
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropdownTreeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1952
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DropdownTreeModule, declarations: [DropdowntreeComponent], imports: [CommonModule,
|
|
1953
|
+
DropDownsModule,
|
|
1954
|
+
FormsModule,
|
|
1955
|
+
ReactiveFormsModule,
|
|
1956
|
+
TypographyModule,
|
|
1957
|
+
ButtonModule], exports: [DropdowntreeComponent] }); }
|
|
1958
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropdownTreeModule, imports: [CommonModule,
|
|
1959
|
+
DropDownsModule,
|
|
1960
|
+
FormsModule,
|
|
1961
|
+
ReactiveFormsModule,
|
|
1962
|
+
TypographyModule,
|
|
1963
|
+
ButtonModule] }); }
|
|
1964
|
+
}
|
|
1965
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropdownTreeModule, decorators: [{
|
|
1966
|
+
type: NgModule,
|
|
1967
|
+
args: [{
|
|
1968
|
+
declarations: [
|
|
1969
|
+
DropdowntreeComponent
|
|
1970
|
+
],
|
|
1971
|
+
imports: [
|
|
1972
|
+
CommonModule,
|
|
1973
|
+
DropDownsModule,
|
|
1974
|
+
FormsModule,
|
|
1975
|
+
ReactiveFormsModule,
|
|
1976
|
+
TypographyModule,
|
|
1977
|
+
ButtonModule,
|
|
1978
|
+
],
|
|
1979
|
+
exports: [
|
|
1980
|
+
DropdowntreeComponent
|
|
1981
|
+
]
|
|
1982
|
+
}]
|
|
1983
|
+
}] });
|
|
1984
|
+
|
|
1985
|
+
class ClipboardComponent {
|
|
1986
|
+
constructor(themesService) {
|
|
1987
|
+
this.themesService = themesService;
|
|
1988
|
+
this.clipboardData = "";
|
|
1989
|
+
this.tooltipPosition = 'top';
|
|
1990
|
+
this.preCopyText = "Copy";
|
|
1991
|
+
this.postCopyText = "Copied!";
|
|
1992
|
+
this.tooltipText = "";
|
|
1993
|
+
}
|
|
1994
|
+
ngOnInit() {
|
|
1995
|
+
this.tooltipText = this.preCopyText;
|
|
1996
|
+
}
|
|
1997
|
+
async copyToClipboard() {
|
|
1998
|
+
if (!this.clipboardData || this.clipboardData.trim() === '') {
|
|
1999
|
+
throw new Error('Text to copy is empty or invalid.');
|
|
2000
|
+
}
|
|
2001
|
+
await this.copy(this.clipboardData);
|
|
2002
|
+
this.tooltipText = this.postCopyText;
|
|
2003
|
+
}
|
|
2004
|
+
/**
|
|
2005
|
+
* Asynchronously copies text to the clipboard.
|
|
2006
|
+
* @param clipboardData The text to be copied to the clipboard.
|
|
2007
|
+
*/
|
|
2008
|
+
async copy(clipboardData) {
|
|
2009
|
+
// Check if the modern Clipboard API is supported in the browser
|
|
2010
|
+
if (window.navigator.clipboard) {
|
|
2011
|
+
// If supported, use the modern copy method
|
|
2012
|
+
await this.copyModern(clipboardData);
|
|
2013
|
+
return;
|
|
2014
|
+
}
|
|
2015
|
+
// If not supported, fallback to the legacy copy method
|
|
2016
|
+
await this.copyLegacy(clipboardData);
|
|
2017
|
+
}
|
|
2018
|
+
/**
|
|
2019
|
+
* Asynchronously copies text to the clipboard using the modern Clipboard API.
|
|
2020
|
+
* @param clipboardData The text to be copied to the clipboard.
|
|
2021
|
+
*/
|
|
2022
|
+
async copyModern(clipboardData) {
|
|
2023
|
+
try {
|
|
2024
|
+
// Attempt to copy using the modern Clipboard API
|
|
2025
|
+
await window.navigator.clipboard.writeText(clipboardData);
|
|
2026
|
+
}
|
|
2027
|
+
catch (err) {
|
|
2028
|
+
// Handle any errors that occur during the copy operation
|
|
2029
|
+
console.log("Error using the modern Clipboard API[window.navigator.clipboard.writeText]:\n", err);
|
|
2030
|
+
// If there's an error, fall back to the legacy copy method
|
|
2031
|
+
await this.copyLegacy(clipboardData);
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
/**
|
|
2035
|
+
* Asynchronously copies text to the clipboard using a legacy method.
|
|
2036
|
+
* @param clipboardData The text to be copied to the clipboard.
|
|
2037
|
+
* @returns A Promise that resolves with a boolean indicating success.
|
|
2038
|
+
*/
|
|
2039
|
+
async copyLegacy(clipboardData) {
|
|
2040
|
+
return new Promise((resolve, reject) => {
|
|
2041
|
+
try {
|
|
2042
|
+
// Create a hidden textarea element off-screen
|
|
2043
|
+
const el = document.createElement('textarea');
|
|
2044
|
+
el.style.position = 'fixed';
|
|
2045
|
+
el.style.left = '-9999px';
|
|
2046
|
+
el.value = clipboardData;
|
|
2047
|
+
// Append the element to the document body
|
|
2048
|
+
document.body.appendChild(el);
|
|
2049
|
+
// Select the text within the textarea and attempt to copy
|
|
2050
|
+
el.select();
|
|
2051
|
+
const copied = document.execCommand('copy');
|
|
2052
|
+
// Clean up by removing the textarea element
|
|
2053
|
+
document.body.removeChild(el);
|
|
2054
|
+
// Resolve the Promise with a boolean indicating success
|
|
2055
|
+
resolve(copied);
|
|
2056
|
+
}
|
|
2057
|
+
catch (err) {
|
|
2058
|
+
// If there's an error during the legacy copy operation, reject the Promise
|
|
2059
|
+
reject(err);
|
|
2060
|
+
}
|
|
2061
|
+
});
|
|
2062
|
+
}
|
|
2063
|
+
// Once mouse leave the action button reverting the tooltip to original state.
|
|
2064
|
+
revertTooltipText() {
|
|
2065
|
+
this.tooltipText = this.preCopyText;
|
|
2066
|
+
}
|
|
2067
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClipboardComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2068
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ClipboardComponent, selector: "lib-clipboard", inputs: { clipboardData: "clipboardData", tooltipPosition: "tooltipPosition", preCopyText: "preCopyText", postCopyText: "postCopyText" }, ngImport: i0, template: "<lib-tooltip [callout]=\"true\" [position]=\"tooltipPosition\" [showOn]=\" !!tooltipText === false ? 'none' : 'hover' \">\n <div class=\"clipboard\" (click)=\"copyToClipboard()\" (mouseleave)=\"revertTooltipText()\">\n <lib-icon name=\"copy\"></lib-icon>\n <lib-typography defaultText=\"Copy\"></lib-typography>\n </div>\n <div class=\"cb-tooltip-text tooltip-content\">\n {{tooltipText}}\n </div>\n</lib-tooltip>\n", styles: [".clipboard{color:#3864f2;width:5.375rem;height:2.125rem;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:4px 12px;border-radius:.25rem;background-color:#ebecec;border:1px solid #e6eaec}.clipboard:hover{color:#174af0;background-color:#dcdddd;border:1px solid #e4e7eb}.clipboard:active{color:#0e3dd5}.clipboard lib-icon,.clipboard lib-typography{color:#222435}.clipboard lib-typography{padding-left:4px}.cb-tooltip-text{padding:.25rem}\n"], dependencies: [{ kind: "component", type: TooltipComponent, selector: "lib-tooltip", inputs: ["position", "tooltipWidth", "tooltipHeight", "showOn", "closable", "title", "callout"] }, { kind: "component", type: IconComponent, selector: "lib-icon", inputs: ["name", "fontSize", "type"] }, { kind: "component", type: TypographyComponent, selector: "lib-typography", inputs: ["type", "defaultText", "isLabel", "hiddenLabel"] }] }); }
|
|
2069
|
+
}
|
|
2070
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClipboardComponent, decorators: [{
|
|
2071
|
+
type: Component,
|
|
2072
|
+
args: [{ selector: 'lib-clipboard', template: "<lib-tooltip [callout]=\"true\" [position]=\"tooltipPosition\" [showOn]=\" !!tooltipText === false ? 'none' : 'hover' \">\n <div class=\"clipboard\" (click)=\"copyToClipboard()\" (mouseleave)=\"revertTooltipText()\">\n <lib-icon name=\"copy\"></lib-icon>\n <lib-typography defaultText=\"Copy\"></lib-typography>\n </div>\n <div class=\"cb-tooltip-text tooltip-content\">\n {{tooltipText}}\n </div>\n</lib-tooltip>\n", styles: [".clipboard{color:#3864f2;width:5.375rem;height:2.125rem;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:4px 12px;border-radius:.25rem;background-color:#ebecec;border:1px solid #e6eaec}.clipboard:hover{color:#174af0;background-color:#dcdddd;border:1px solid #e4e7eb}.clipboard:active{color:#0e3dd5}.clipboard lib-icon,.clipboard lib-typography{color:#222435}.clipboard lib-typography{padding-left:4px}.cb-tooltip-text{padding:.25rem}\n"] }]
|
|
2073
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { clipboardData: [{
|
|
2074
|
+
type: Input
|
|
2075
|
+
}], tooltipPosition: [{
|
|
2076
|
+
type: Input
|
|
2077
|
+
}], preCopyText: [{
|
|
2078
|
+
type: Input
|
|
2079
|
+
}], postCopyText: [{
|
|
2080
|
+
type: Input
|
|
2081
|
+
}] } });
|
|
2082
|
+
|
|
2083
|
+
class ClipboardModule {
|
|
2084
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClipboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2085
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ClipboardModule, declarations: [ClipboardComponent], imports: [CommonModule,
|
|
2086
|
+
TooltipModule,
|
|
2087
|
+
IconModule,
|
|
2088
|
+
TypographyModule], exports: [ClipboardComponent] }); }
|
|
2089
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClipboardModule, imports: [CommonModule,
|
|
2090
|
+
TooltipModule,
|
|
2091
|
+
IconModule,
|
|
2092
|
+
TypographyModule] }); }
|
|
2093
|
+
}
|
|
2094
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClipboardModule, decorators: [{
|
|
2095
|
+
type: NgModule,
|
|
2096
|
+
args: [{
|
|
2097
|
+
declarations: [ClipboardComponent],
|
|
2098
|
+
imports: [
|
|
2099
|
+
CommonModule,
|
|
2100
|
+
TooltipModule,
|
|
2101
|
+
IconModule,
|
|
2102
|
+
TypographyModule
|
|
2103
|
+
],
|
|
2104
|
+
exports: [ClipboardComponent]
|
|
2105
|
+
}]
|
|
2106
|
+
}] });
|
|
2107
|
+
|
|
2108
|
+
const ALERT_TYPE = {
|
|
2109
|
+
success: 'success',
|
|
2110
|
+
error: 'error',
|
|
2111
|
+
warning: 'warning',
|
|
2112
|
+
info: 'information',
|
|
2113
|
+
};
|
|
2114
|
+
class AlertComponent {
|
|
2115
|
+
get theType() {
|
|
2116
|
+
return this.type;
|
|
2117
|
+
}
|
|
2118
|
+
constructor(themesService) {
|
|
2119
|
+
this.themesService = themesService;
|
|
2120
|
+
this.type = ALERT_TYPE.info;
|
|
2121
|
+
this.dismissed = new EventEmitter();
|
|
2122
|
+
this.onClose = () => {
|
|
2123
|
+
this.dismissed.emit();
|
|
2124
|
+
};
|
|
2125
|
+
}
|
|
2126
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AlertComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2127
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AlertComponent, selector: "lib-alert", inputs: { type: "type" }, outputs: { dismissed: "dismissed" }, host: { properties: { "class": "this.theType" } }, ngImport: i0, template: "<div class=\"icon\">\n <lib-icon name=\"info\"></lib-icon>\n</div>\n<div>\n <ng-content></ng-content>\n</div>\n<div class=\"close\" (click)=\"onClose()\">\n <lib-icon name=\"close\" [fontSize]=\"20\"></lib-icon>\n</div>\n", styles: [":host{display:flex;border-radius:4px;padding:1.125rem 3rem 1.125rem 1rem;position:relative}:host .icon{margin-right:.5rem;display:flex;position:relative}:host.information{color:#003b6e;background-color:#b8d8f5}:host .close{font-weight:700;position:absolute;right:1rem;top:.75rem;cursor:pointer}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "lib-icon", inputs: ["name", "fontSize", "type"] }] }); }
|
|
2128
|
+
}
|
|
2129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AlertComponent, decorators: [{
|
|
2130
|
+
type: Component,
|
|
2131
|
+
args: [{ selector: 'lib-alert', template: "<div class=\"icon\">\n <lib-icon name=\"info\"></lib-icon>\n</div>\n<div>\n <ng-content></ng-content>\n</div>\n<div class=\"close\" (click)=\"onClose()\">\n <lib-icon name=\"close\" [fontSize]=\"20\"></lib-icon>\n</div>\n", styles: [":host{display:flex;border-radius:4px;padding:1.125rem 3rem 1.125rem 1rem;position:relative}:host .icon{margin-right:.5rem;display:flex;position:relative}:host.information{color:#003b6e;background-color:#b8d8f5}:host .close{font-weight:700;position:absolute;right:1rem;top:.75rem;cursor:pointer}\n"] }]
|
|
2132
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { type: [{
|
|
2133
|
+
type: Input
|
|
2134
|
+
}], dismissed: [{
|
|
2135
|
+
type: Output
|
|
2136
|
+
}], theType: [{
|
|
2137
|
+
type: HostBinding,
|
|
2138
|
+
args: ['class']
|
|
2139
|
+
}] } });
|
|
2140
|
+
|
|
2141
|
+
class AlertModule {
|
|
2142
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2143
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: AlertModule, declarations: [AlertComponent], imports: [IconModule], exports: [AlertComponent] }); }
|
|
2144
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AlertModule, imports: [IconModule] }); }
|
|
2145
|
+
}
|
|
2146
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AlertModule, decorators: [{
|
|
2147
|
+
type: NgModule,
|
|
2148
|
+
args: [{
|
|
2149
|
+
declarations: [AlertComponent],
|
|
2150
|
+
imports: [
|
|
2151
|
+
IconModule
|
|
2152
|
+
],
|
|
2153
|
+
exports: [AlertComponent]
|
|
2154
|
+
}]
|
|
2155
|
+
}] });
|
|
2156
|
+
|
|
2157
|
+
class MultiSelectDropdownComponent {
|
|
2158
|
+
constructor(themesService) {
|
|
2159
|
+
this.themesService = themesService;
|
|
2160
|
+
this.label = "";
|
|
2161
|
+
this.id = "sampleId";
|
|
2162
|
+
this.data = [];
|
|
2163
|
+
this.isDisabled = false;
|
|
2164
|
+
this.clearButton = false;
|
|
2165
|
+
this.fillMode = "solid";
|
|
2166
|
+
this.checkboxes = true;
|
|
2167
|
+
this.filterable = true;
|
|
2168
|
+
this.placeholder = "";
|
|
2169
|
+
this.readonly = false;
|
|
2170
|
+
this.rounded = "medium";
|
|
2171
|
+
this.size = "medium";
|
|
2172
|
+
this.valuePrimitive = true;
|
|
2173
|
+
this.modelChange = new EventEmitter();
|
|
2174
|
+
this.control = new FormControl();
|
|
2175
|
+
this.fontType = 'P_MULISH_14_REGULAR';
|
|
2176
|
+
this.focus = false;
|
|
2177
|
+
this.autoClose = false;
|
|
2178
|
+
}
|
|
2179
|
+
ngOnChanges(changes) {
|
|
2180
|
+
if (changes['isDisabled']) {
|
|
2181
|
+
if (changes['isDisabled']?.currentValue) {
|
|
2182
|
+
this.control.disable();
|
|
2183
|
+
}
|
|
2184
|
+
else {
|
|
2185
|
+
this.control.enable();
|
|
2186
|
+
}
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
ngAfterViewInit() {
|
|
2190
|
+
if (this.focus) {
|
|
2191
|
+
this.multiSelect.focus();
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2194
|
+
emitModelChange(ev) {
|
|
2195
|
+
this.modelChange.emit(ev);
|
|
2196
|
+
}
|
|
2197
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultiSelectDropdownComponent, deps: [{ token: i1$1.ThemesService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2198
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MultiSelectDropdownComponent, selector: "lib-multi-select-dropdown", inputs: { label: "label", id: "id", data: "data", isDisabled: "isDisabled", clearButton: "clearButton", fillMode: "fillMode", checkboxes: "checkboxes", filterable: "filterable", placeholder: "placeholder", readonly: "readonly", rounded: "rounded", size: "size", textField: "textField", valueField: "valueField", model: "model", valuePrimitive: "valuePrimitive", control: "control", fontType: "fontType", focus: "focus", autoClose: "autoClose" }, outputs: { modelChange: "modelChange" }, viewQueries: [{ propertyName: "multiSelect", first: true, predicate: ["multiSelect"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<span class=\"multiselect\">\n <span *ngIf=\"label.length > 0\">\n <label class=\"multiselect-label\" for=\"{{ id }}\">\n <lib-typography [defaultText]=\"label\" [type]=\"fontType\">\n </lib-typography>\n </label>\n \n </span>\n <kendo-multiselect #multiSelect [checkboxes]=\"checkboxes\" [autoClose]=\"autoClose\" [id]=\"id\" [data]=\"data\" [(ngModel)]=\"model\"\n [textField]=\"textField\" [valueField]=\"valueField\" [valuePrimitive]=\"valuePrimitive\" [fillMode]=\"fillMode\"\n [clearButton]=\"clearButton\" [filterable]=\"filterable\" [placeholder]=\"placeholder\" [readonly]=\"readonly\"\n [rounded]=\"rounded\" [size]=\"size\" [formControl]=\"control\"\n (ngModelChange)=\"emitModelChange($event)\"></kendo-multiselect>\n</span>\n", styles: [".multiselect-label{margin-bottom:8px}\n"], dependencies: [{ kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$2.MultiSelectComponent, selector: "kendo-multiselect", inputs: ["showStickyHeader", "focusableId", "autoClose", "loading", "data", "value", "valueField", "textField", "tabindex", "tabIndex", "size", "rounded", "fillMode", "placeholder", "adaptiveMode", "title", "subtitle", "disabled", "itemDisabled", "checkboxes", "readonly", "filterable", "virtual", "popupSettings", "listHeight", "valuePrimitive", "clearButton", "tagMapper", "allowCustom", "valueNormalizer"], outputs: ["filterChange", "valueChange", "open", "opened", "close", "closed", "focus", "blur", "removeTag"], exportAs: ["kendoMultiSelect"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: TypographyComponent, selector: "lib-typography", inputs: ["type", "defaultText", "isLabel", "hiddenLabel"] }] }); }
|
|
2199
|
+
}
|
|
2200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultiSelectDropdownComponent, decorators: [{
|
|
2201
|
+
type: Component,
|
|
2202
|
+
args: [{ selector: 'lib-multi-select-dropdown', template: "<span class=\"multiselect\">\n <span *ngIf=\"label.length > 0\">\n <label class=\"multiselect-label\" for=\"{{ id }}\">\n <lib-typography [defaultText]=\"label\" [type]=\"fontType\">\n </lib-typography>\n </label>\n \n </span>\n <kendo-multiselect #multiSelect [checkboxes]=\"checkboxes\" [autoClose]=\"autoClose\" [id]=\"id\" [data]=\"data\" [(ngModel)]=\"model\"\n [textField]=\"textField\" [valueField]=\"valueField\" [valuePrimitive]=\"valuePrimitive\" [fillMode]=\"fillMode\"\n [clearButton]=\"clearButton\" [filterable]=\"filterable\" [placeholder]=\"placeholder\" [readonly]=\"readonly\"\n [rounded]=\"rounded\" [size]=\"size\" [formControl]=\"control\"\n (ngModelChange)=\"emitModelChange($event)\"></kendo-multiselect>\n</span>\n", styles: [".multiselect-label{margin-bottom:8px}\n"] }]
|
|
2203
|
+
}], ctorParameters: function () { return [{ type: i1$1.ThemesService }]; }, propDecorators: { label: [{
|
|
2204
|
+
type: Input
|
|
2205
|
+
}], id: [{
|
|
2206
|
+
type: Input
|
|
2207
|
+
}], data: [{
|
|
2208
|
+
type: Input
|
|
2209
|
+
}], isDisabled: [{
|
|
2210
|
+
type: Input
|
|
2211
|
+
}], clearButton: [{
|
|
2212
|
+
type: Input
|
|
2213
|
+
}], fillMode: [{
|
|
2214
|
+
type: Input
|
|
2215
|
+
}], checkboxes: [{
|
|
2216
|
+
type: Input
|
|
2217
|
+
}], filterable: [{
|
|
2218
|
+
type: Input
|
|
2219
|
+
}], placeholder: [{
|
|
2220
|
+
type: Input
|
|
2221
|
+
}], readonly: [{
|
|
2222
|
+
type: Input
|
|
2223
|
+
}], rounded: [{
|
|
2224
|
+
type: Input
|
|
2225
|
+
}], size: [{
|
|
2226
|
+
type: Input
|
|
2227
|
+
}], textField: [{
|
|
2228
|
+
type: Input
|
|
2229
|
+
}], valueField: [{
|
|
2230
|
+
type: Input
|
|
2231
|
+
}], model: [{
|
|
2232
|
+
type: Input
|
|
2233
|
+
}], valuePrimitive: [{
|
|
2234
|
+
type: Input
|
|
2235
|
+
}], modelChange: [{
|
|
2236
|
+
type: Output
|
|
2237
|
+
}], control: [{
|
|
2238
|
+
type: Input
|
|
2239
|
+
}], fontType: [{
|
|
2240
|
+
type: Input
|
|
2241
|
+
}], focus: [{
|
|
2242
|
+
type: Input
|
|
2243
|
+
}], autoClose: [{
|
|
2244
|
+
type: Input
|
|
2245
|
+
}], multiSelect: [{
|
|
2246
|
+
type: ViewChild,
|
|
2247
|
+
args: ['multiSelect', { static: false }]
|
|
2248
|
+
}] } });
|
|
2249
|
+
|
|
2250
|
+
class MultiSelectDropdownModule {
|
|
2251
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultiSelectDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2252
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: MultiSelectDropdownModule, declarations: [MultiSelectDropdownComponent], imports: [CommonModule,
|
|
2253
|
+
DropDownsModule,
|
|
2254
|
+
FormsModule,
|
|
2255
|
+
ReactiveFormsModule,
|
|
2256
|
+
TypographyModule], exports: [MultiSelectDropdownComponent] }); }
|
|
2257
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultiSelectDropdownModule, imports: [CommonModule,
|
|
2258
|
+
DropDownsModule,
|
|
2259
|
+
FormsModule,
|
|
2260
|
+
ReactiveFormsModule,
|
|
2261
|
+
TypographyModule] }); }
|
|
2262
|
+
}
|
|
2263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultiSelectDropdownModule, decorators: [{
|
|
2264
|
+
type: NgModule,
|
|
2265
|
+
args: [{
|
|
2266
|
+
declarations: [
|
|
2267
|
+
MultiSelectDropdownComponent
|
|
2268
|
+
],
|
|
2269
|
+
imports: [
|
|
2270
|
+
CommonModule,
|
|
2271
|
+
DropDownsModule,
|
|
2272
|
+
FormsModule,
|
|
2273
|
+
ReactiveFormsModule,
|
|
2274
|
+
TypographyModule,
|
|
2275
|
+
],
|
|
2276
|
+
exports: [
|
|
2277
|
+
MultiSelectDropdownComponent
|
|
2278
|
+
],
|
|
2279
|
+
}]
|
|
2280
|
+
}] });
|
|
2281
|
+
|
|
2282
|
+
class ToastNotificationModule {
|
|
2283
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToastNotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2284
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ToastNotificationModule, imports: [CommonModule, NotificationModule$1] }); }
|
|
2285
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToastNotificationModule, providers: [IconsService, NotificationService], imports: [CommonModule, NotificationModule$1] }); }
|
|
2286
|
+
}
|
|
2287
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToastNotificationModule, decorators: [{
|
|
2288
|
+
type: NgModule,
|
|
2289
|
+
args: [{
|
|
2290
|
+
imports: [CommonModule, NotificationModule$1],
|
|
2291
|
+
providers: [IconsService, NotificationService],
|
|
2292
|
+
}]
|
|
2293
|
+
}] });
|
|
2294
|
+
|
|
2295
|
+
class AtomsModule {
|
|
2296
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AtomsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2297
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: AtomsModule, imports: [AlertModule,
|
|
2298
|
+
AngularPopupModule,
|
|
2299
|
+
AvatarModule,
|
|
2300
|
+
BreadcrumbModule,
|
|
2301
|
+
ButtonModule,
|
|
2302
|
+
ButtonGroupModule,
|
|
2303
|
+
CheckboxModule,
|
|
2304
|
+
CommonModule,
|
|
2305
|
+
ContainerModule,
|
|
2306
|
+
DropdownModule,
|
|
2307
|
+
DropdownTreeModule,
|
|
2308
|
+
ExpansionPanelModule,
|
|
2309
|
+
FormsModule,
|
|
2310
|
+
IconModule,
|
|
2311
|
+
LabelsModule,
|
|
2312
|
+
LoadingSpinnerModule,
|
|
2313
|
+
MultiSelectDropdownModule,
|
|
2314
|
+
NotificationModule,
|
|
2315
|
+
NumericTextboxModule,
|
|
2316
|
+
ProgressBarsModule,
|
|
2317
|
+
RadioButtonModule,
|
|
2318
|
+
ReactiveFormsModule,
|
|
2319
|
+
ReportSummaryModule,
|
|
2320
|
+
SearchBoxModule,
|
|
2321
|
+
SliderModule,
|
|
2322
|
+
StyleTokensModule,
|
|
2323
|
+
TextAreaModule,
|
|
2324
|
+
TextboxModule,
|
|
2325
|
+
TimeSchedulerModule,
|
|
2326
|
+
ToastNotificationModule,
|
|
2327
|
+
TooltipModule,
|
|
2328
|
+
TypographyModule,
|
|
2329
|
+
ClipboardModule], exports: [AlertModule,
|
|
2330
|
+
AngularPopupModule,
|
|
2331
|
+
AvatarModule,
|
|
2332
|
+
BreadcrumbModule,
|
|
2333
|
+
ButtonModule,
|
|
2334
|
+
ButtonGroupModule,
|
|
2335
|
+
CheckboxModule,
|
|
2336
|
+
ContainerModule,
|
|
2337
|
+
DropdownModule,
|
|
2338
|
+
DropdownTreeModule,
|
|
2339
|
+
ExpansionPanelModule,
|
|
2340
|
+
IconModule,
|
|
2341
|
+
LabelsModule,
|
|
2342
|
+
LoadingSpinnerModule,
|
|
2343
|
+
MultiSelectDropdownModule,
|
|
2344
|
+
NotificationModule,
|
|
2345
|
+
NumericTextboxModule,
|
|
2346
|
+
ProgressBarsModule,
|
|
2347
|
+
RadioButtonModule,
|
|
2348
|
+
ReportSummaryModule,
|
|
2349
|
+
SearchBoxModule,
|
|
2350
|
+
SliderModule,
|
|
2351
|
+
StyleTokensModule,
|
|
2352
|
+
TextAreaModule,
|
|
2353
|
+
TextboxModule,
|
|
2354
|
+
TimeSchedulerModule,
|
|
2355
|
+
ToastNotificationModule,
|
|
2356
|
+
TooltipModule,
|
|
2357
|
+
TypographyModule,
|
|
2358
|
+
ClipboardModule] }); }
|
|
2359
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AtomsModule, imports: [AlertModule,
|
|
2360
|
+
AngularPopupModule,
|
|
2361
|
+
AvatarModule,
|
|
2362
|
+
BreadcrumbModule,
|
|
2363
|
+
ButtonModule,
|
|
2364
|
+
ButtonGroupModule,
|
|
2365
|
+
CheckboxModule,
|
|
2366
|
+
CommonModule,
|
|
2367
|
+
ContainerModule,
|
|
2368
|
+
DropdownModule,
|
|
2369
|
+
DropdownTreeModule,
|
|
2370
|
+
ExpansionPanelModule,
|
|
2371
|
+
FormsModule,
|
|
2372
|
+
IconModule,
|
|
2373
|
+
LabelsModule,
|
|
2374
|
+
LoadingSpinnerModule,
|
|
2375
|
+
MultiSelectDropdownModule,
|
|
2376
|
+
NotificationModule,
|
|
2377
|
+
NumericTextboxModule,
|
|
2378
|
+
ProgressBarsModule,
|
|
2379
|
+
RadioButtonModule,
|
|
2380
|
+
ReactiveFormsModule,
|
|
2381
|
+
ReportSummaryModule,
|
|
2382
|
+
SearchBoxModule,
|
|
2383
|
+
SliderModule,
|
|
2384
|
+
StyleTokensModule,
|
|
2385
|
+
TextAreaModule,
|
|
2386
|
+
TextboxModule,
|
|
2387
|
+
TimeSchedulerModule,
|
|
2388
|
+
ToastNotificationModule,
|
|
2389
|
+
TooltipModule,
|
|
2390
|
+
TypographyModule,
|
|
2391
|
+
ClipboardModule, AlertModule,
|
|
2392
|
+
AngularPopupModule,
|
|
2393
|
+
AvatarModule,
|
|
2394
|
+
BreadcrumbModule,
|
|
2395
|
+
ButtonModule,
|
|
2396
|
+
ButtonGroupModule,
|
|
2397
|
+
CheckboxModule,
|
|
2398
|
+
ContainerModule,
|
|
2399
|
+
DropdownModule,
|
|
2400
|
+
DropdownTreeModule,
|
|
2401
|
+
ExpansionPanelModule,
|
|
2402
|
+
IconModule,
|
|
2403
|
+
LabelsModule,
|
|
2404
|
+
LoadingSpinnerModule,
|
|
2405
|
+
MultiSelectDropdownModule,
|
|
2406
|
+
NotificationModule,
|
|
2407
|
+
NumericTextboxModule,
|
|
2408
|
+
ProgressBarsModule,
|
|
2409
|
+
RadioButtonModule,
|
|
2410
|
+
ReportSummaryModule,
|
|
2411
|
+
SearchBoxModule,
|
|
2412
|
+
SliderModule,
|
|
2413
|
+
StyleTokensModule,
|
|
2414
|
+
TextAreaModule,
|
|
2415
|
+
TextboxModule,
|
|
2416
|
+
TimeSchedulerModule,
|
|
2417
|
+
ToastNotificationModule,
|
|
2418
|
+
TooltipModule,
|
|
2419
|
+
TypographyModule,
|
|
2420
|
+
ClipboardModule] }); }
|
|
2421
|
+
}
|
|
2422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AtomsModule, decorators: [{
|
|
2423
|
+
type: NgModule,
|
|
2424
|
+
args: [{
|
|
2425
|
+
imports: [
|
|
2426
|
+
AlertModule,
|
|
2427
|
+
AngularPopupModule,
|
|
2428
|
+
AvatarModule,
|
|
2429
|
+
BreadcrumbModule,
|
|
2430
|
+
ButtonModule,
|
|
2431
|
+
ButtonGroupModule,
|
|
2432
|
+
CheckboxModule,
|
|
2433
|
+
CommonModule,
|
|
2434
|
+
ContainerModule,
|
|
2435
|
+
DropdownModule,
|
|
2436
|
+
DropdownTreeModule,
|
|
2437
|
+
ExpansionPanelModule,
|
|
2438
|
+
FormsModule,
|
|
2439
|
+
IconModule,
|
|
2440
|
+
LabelsModule,
|
|
2441
|
+
LoadingSpinnerModule,
|
|
2442
|
+
MultiSelectDropdownModule,
|
|
2443
|
+
NotificationModule,
|
|
2444
|
+
NumericTextboxModule,
|
|
2445
|
+
ProgressBarsModule,
|
|
2446
|
+
RadioButtonModule,
|
|
2447
|
+
ReactiveFormsModule,
|
|
2448
|
+
ReportSummaryModule,
|
|
2449
|
+
SearchBoxModule,
|
|
2450
|
+
SliderModule,
|
|
2451
|
+
StyleTokensModule,
|
|
2452
|
+
TextAreaModule,
|
|
2453
|
+
TextboxModule,
|
|
2454
|
+
TimeSchedulerModule,
|
|
2455
|
+
ToastNotificationModule,
|
|
2456
|
+
TooltipModule,
|
|
2457
|
+
TypographyModule,
|
|
2458
|
+
ClipboardModule
|
|
2459
|
+
],
|
|
2460
|
+
exports: [
|
|
2461
|
+
AlertModule,
|
|
2462
|
+
AngularPopupModule,
|
|
2463
|
+
AvatarModule,
|
|
2464
|
+
BreadcrumbModule,
|
|
2465
|
+
ButtonModule,
|
|
2466
|
+
ButtonGroupModule,
|
|
2467
|
+
CheckboxModule,
|
|
2468
|
+
ContainerModule,
|
|
2469
|
+
DropdownModule,
|
|
2470
|
+
DropdownTreeModule,
|
|
2471
|
+
ExpansionPanelModule,
|
|
2472
|
+
IconModule,
|
|
2473
|
+
LabelsModule,
|
|
2474
|
+
LoadingSpinnerModule,
|
|
2475
|
+
MultiSelectDropdownModule,
|
|
2476
|
+
NotificationModule,
|
|
2477
|
+
NumericTextboxModule,
|
|
2478
|
+
ProgressBarsModule,
|
|
2479
|
+
RadioButtonModule,
|
|
2480
|
+
ReportSummaryModule,
|
|
2481
|
+
SearchBoxModule,
|
|
2482
|
+
SliderModule,
|
|
2483
|
+
StyleTokensModule,
|
|
2484
|
+
TextAreaModule,
|
|
2485
|
+
TextboxModule,
|
|
2486
|
+
TimeSchedulerModule,
|
|
2487
|
+
ToastNotificationModule,
|
|
2488
|
+
TooltipModule,
|
|
2489
|
+
TypographyModule,
|
|
2490
|
+
ClipboardModule
|
|
2491
|
+
],
|
|
2492
|
+
}]
|
|
2493
|
+
}] });
|
|
2494
|
+
|
|
2495
|
+
class CardComponent {
|
|
2496
|
+
constructor() {
|
|
2497
|
+
this.width = '300px';
|
|
2498
|
+
this.orientation = 'vertical';
|
|
2499
|
+
}
|
|
2500
|
+
ngOnInit() { }
|
|
2501
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2502
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CardComponent, selector: "lib-card", inputs: { width: "width", orientation: "orientation" }, ngImport: i0, template: "<kendo-card [width]=\"width\" [orientation]=\"orientation\">\n <ng-content></ng-content>\n</kendo-card>\n", styles: [""], dependencies: [{ kind: "component", type: i2.CardComponent, selector: "kendo-card", inputs: ["orientation", "width"] }] }); }
|
|
2503
|
+
}
|
|
2504
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardComponent, decorators: [{
|
|
2505
|
+
type: Component,
|
|
2506
|
+
args: [{ selector: 'lib-card', template: "<kendo-card [width]=\"width\" [orientation]=\"orientation\">\n <ng-content></ng-content>\n</kendo-card>\n" }]
|
|
2507
|
+
}], propDecorators: { width: [{
|
|
2508
|
+
type: Input
|
|
2509
|
+
}], orientation: [{
|
|
2510
|
+
type: Input
|
|
2511
|
+
}] } });
|
|
2512
|
+
|
|
2513
|
+
class CardHeaderComponent {
|
|
2514
|
+
constructor() {
|
|
2515
|
+
this.title = "";
|
|
2516
|
+
this.subtitle = "";
|
|
2517
|
+
this.cardNumber = 0;
|
|
2518
|
+
this.titleFont = 'H2_MULISH_24_BOLD';
|
|
2519
|
+
this.subtitleFont = 'H5_MULISH_14_REGULAR';
|
|
2520
|
+
}
|
|
2521
|
+
ngOnInit() { }
|
|
2522
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2523
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CardHeaderComponent, selector: "lib-card-header", inputs: { title: "title", subtitle: "subtitle", cardNumber: "cardNumber", titleFont: "titleFont", subtitleFont: "subtitleFont" }, ngImport: i0, template: "<kendo-card-header class=\"k-hstack\">\n <div *ngIf='cardNumber > 0' class=\"card-number\">{{cardNumber}}</div>\n <div class=\"card-title\">\n <lib-typography *ngIf=\"title.length > 0\" [type]=\"titleFont\" [defaultText]=\"title\" kendoCardTitle></lib-typography>\n <lib-typography *ngIf=\"subtitle.length > 0\" [type]=\"subtitleFont\" [defaultText]=\"subtitle\" kendoCardSubtitle></lib-typography>\n </div>\n <ng-content></ng-content>\n</kendo-card-header>\n", styles: ["@font-face{font-family:Mulish;src:url(/assets/fonts/Mulish-Light.ttf);font-weight:300;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-LightItalic.ttf);font-weight:300;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Regular.ttf);font-weight:400;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Italic.ttf);font-weight:400;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Bold.ttf);font-weight:700;font-style:normal}.card-title{display:flex;flex-direction:column}.k-card-header{align-items:center}.card-number{border-radius:85%;width:1.5rem;height:1.5rem;background:#000;color:#fff;text-align:center;justify-content:center;align-items:center;margin-top:.125rem;display:flex;font-size:1.125rem;font-weight:600;margin-right:1rem}\n"], dependencies: [{ kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.CardHeaderComponent, selector: "kendo-card-header" }, { kind: "directive", type: i2.CardTitleDirective, selector: "[kendoCardTitle]" }, { kind: "directive", type: i2.CardSubtitleDirective, selector: "[kendoCardSubtitle]" }, { kind: "component", type: TypographyComponent, selector: "lib-typography", inputs: ["type", "defaultText", "isLabel", "hiddenLabel"] }] }); }
|
|
2524
|
+
}
|
|
2525
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardHeaderComponent, decorators: [{
|
|
2526
|
+
type: Component,
|
|
2527
|
+
args: [{ selector: 'lib-card-header', template: "<kendo-card-header class=\"k-hstack\">\n <div *ngIf='cardNumber > 0' class=\"card-number\">{{cardNumber}}</div>\n <div class=\"card-title\">\n <lib-typography *ngIf=\"title.length > 0\" [type]=\"titleFont\" [defaultText]=\"title\" kendoCardTitle></lib-typography>\n <lib-typography *ngIf=\"subtitle.length > 0\" [type]=\"subtitleFont\" [defaultText]=\"subtitle\" kendoCardSubtitle></lib-typography>\n </div>\n <ng-content></ng-content>\n</kendo-card-header>\n", styles: ["@font-face{font-family:Mulish;src:url(/assets/fonts/Mulish-Light.ttf);font-weight:300;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-LightItalic.ttf);font-weight:300;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Regular.ttf);font-weight:400;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Italic.ttf);font-weight:400;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Bold.ttf);font-weight:700;font-style:normal}.card-title{display:flex;flex-direction:column}.k-card-header{align-items:center}.card-number{border-radius:85%;width:1.5rem;height:1.5rem;background:#000;color:#fff;text-align:center;justify-content:center;align-items:center;margin-top:.125rem;display:flex;font-size:1.125rem;font-weight:600;margin-right:1rem}\n"] }]
|
|
2528
|
+
}], ctorParameters: function () { return []; }, propDecorators: { title: [{
|
|
2529
|
+
type: Input
|
|
2530
|
+
}], subtitle: [{
|
|
2531
|
+
type: Input
|
|
2532
|
+
}], cardNumber: [{
|
|
2533
|
+
type: Input
|
|
2534
|
+
}], titleFont: [{
|
|
2535
|
+
type: Input
|
|
2536
|
+
}], subtitleFont: [{
|
|
2537
|
+
type: Input
|
|
2538
|
+
}] } });
|
|
2539
|
+
|
|
2540
|
+
class CardFooterComponent {
|
|
2541
|
+
constructor() { }
|
|
2542
|
+
ngOnInit() { }
|
|
2543
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2544
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CardFooterComponent, selector: "lib-card-footer", ngImport: i0, template: "<kendo-card-footer class=\"k-hstack\">\n <ng-content></ng-content>\n</kendo-card-footer>\n", styles: [".k-card-footer{justify-content:space-between}\n"], dependencies: [{ kind: "component", type: i2.CardFooterComponent, selector: "kendo-card-footer" }] }); }
|
|
2545
|
+
}
|
|
2546
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardFooterComponent, decorators: [{
|
|
2547
|
+
type: Component,
|
|
2548
|
+
args: [{ selector: 'lib-card-footer', template: "<kendo-card-footer class=\"k-hstack\">\n <ng-content></ng-content>\n</kendo-card-footer>\n", styles: [".k-card-footer{justify-content:space-between}\n"] }]
|
|
2549
|
+
}], ctorParameters: function () { return []; } });
|
|
2550
|
+
|
|
2551
|
+
class CardActionsComponent {
|
|
2552
|
+
constructor() {
|
|
2553
|
+
this.layout = 'stretched';
|
|
2554
|
+
this.orientation = 'horizontal';
|
|
2555
|
+
}
|
|
2556
|
+
ngOnInit() { }
|
|
2557
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2558
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CardActionsComponent, selector: "lib-card-actions", inputs: { layout: "layout", orientation: "orientation" }, ngImport: i0, template: "<kendo-card-actions\n [orientation]=\"orientation\"\n [layout]=\"layout\">\n <ng-content></ng-content>\n</kendo-card-actions>\n", styles: [""], dependencies: [{ kind: "component", type: i2.CardActionsComponent, selector: "kendo-card-actions", inputs: ["orientation", "layout", "actions"], outputs: ["action"] }] }); }
|
|
2559
|
+
}
|
|
2560
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardActionsComponent, decorators: [{
|
|
2561
|
+
type: Component,
|
|
2562
|
+
args: [{ selector: 'lib-card-actions', template: "<kendo-card-actions\n [orientation]=\"orientation\"\n [layout]=\"layout\">\n <ng-content></ng-content>\n</kendo-card-actions>\n" }]
|
|
2563
|
+
}], ctorParameters: function () { return []; }, propDecorators: { layout: [{
|
|
2564
|
+
type: Input
|
|
2565
|
+
}], orientation: [{
|
|
2566
|
+
type: Input
|
|
2567
|
+
}] } });
|
|
2568
|
+
|
|
2569
|
+
class CardBodyComponent {
|
|
2570
|
+
constructor() { }
|
|
2571
|
+
ngOnInit() { }
|
|
2572
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2573
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CardBodyComponent, selector: "lib-card-body", ngImport: i0, template: "<kendo-card-body>\n <ng-content></ng-content>\n</kendo-card-body>\n", styles: [""], dependencies: [{ kind: "component", type: i2.CardBodyComponent, selector: "kendo-card-body" }] }); }
|
|
2574
|
+
}
|
|
2575
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardBodyComponent, decorators: [{
|
|
2576
|
+
type: Component,
|
|
2577
|
+
args: [{ selector: 'lib-card-body', template: "<kendo-card-body>\n <ng-content></ng-content>\n</kendo-card-body>\n" }]
|
|
2578
|
+
}], ctorParameters: function () { return []; } });
|
|
2579
|
+
|
|
2580
|
+
class CardModule {
|
|
2581
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2582
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: CardModule, declarations: [CardComponent,
|
|
2583
|
+
CardHeaderComponent,
|
|
2584
|
+
CardFooterComponent,
|
|
2585
|
+
CardActionsComponent,
|
|
2586
|
+
CardBodyComponent], imports: [CommonModule, LayoutModule, TypographyModule], exports: [CardComponent,
|
|
2587
|
+
CardHeaderComponent,
|
|
2588
|
+
CardFooterComponent,
|
|
2589
|
+
CardActionsComponent,
|
|
2590
|
+
CardBodyComponent] }); }
|
|
2591
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardModule, imports: [CommonModule, LayoutModule, TypographyModule] }); }
|
|
2592
|
+
}
|
|
2593
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardModule, decorators: [{
|
|
2594
|
+
type: NgModule,
|
|
2595
|
+
args: [{
|
|
2596
|
+
declarations: [
|
|
2597
|
+
CardComponent,
|
|
2598
|
+
CardHeaderComponent,
|
|
2599
|
+
CardFooterComponent,
|
|
2600
|
+
CardActionsComponent,
|
|
2601
|
+
CardBodyComponent
|
|
2602
|
+
],
|
|
2603
|
+
imports: [CommonModule, LayoutModule, TypographyModule],
|
|
2604
|
+
exports: [
|
|
2605
|
+
CardComponent,
|
|
2606
|
+
CardHeaderComponent,
|
|
2607
|
+
CardFooterComponent,
|
|
2608
|
+
CardActionsComponent,
|
|
2609
|
+
CardBodyComponent
|
|
2610
|
+
],
|
|
2611
|
+
}]
|
|
2612
|
+
}] });
|
|
2613
|
+
|
|
2614
|
+
class DialogComponent {
|
|
2615
|
+
constructor(elt, ref, renderer) {
|
|
2616
|
+
this.elt = elt;
|
|
2617
|
+
this.ref = ref;
|
|
2618
|
+
this.renderer = renderer;
|
|
2619
|
+
this.opened = true;
|
|
2620
|
+
}
|
|
2621
|
+
ngOnInit() { }
|
|
2622
|
+
ngAfterViewInit() {
|
|
2623
|
+
//detect changes
|
|
2624
|
+
this.ref.detectChanges();
|
|
2625
|
+
// swap the node positions in ng-content to match the original kendo dom structure
|
|
2626
|
+
const contentRefElement = this.contentRef?.nativeElement;
|
|
2627
|
+
const dialogRefElement = this.dialogRef?.nativeElement;
|
|
2628
|
+
const parentDialogElement = dialogRefElement.getElementsByClassName('k-dialog');
|
|
2629
|
+
const libActionsBar = contentRefElement.getElementsByTagName('lib-dialog-actions');
|
|
2630
|
+
const libTitleBar = dialogRefElement.getElementsByTagName('lib-dialog-titlebar');
|
|
2631
|
+
this.renderer.insertBefore(parentDialogElement[0], libTitleBar[0].childNodes[0], contentRefElement.parentElement);
|
|
2632
|
+
this.renderer.appendChild(parentDialogElement[0], libActionsBar[0].childNodes[0]);
|
|
2633
|
+
}
|
|
2634
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2635
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DialogComponent, selector: "lib-dialog", inputs: { width: "width", height: "height", minWidth: "minWidth", maxWidth: "maxWidth", minHeight: "minHeight", maxHeight: "maxHeight", opened: "opened" }, viewQueries: [{ propertyName: "contentRef", first: true, predicate: ["contentRef"], descendants: true }, { propertyName: "dialogRef", first: true, predicate: ["dialogRef"], descendants: true }], ngImport: i0, template: "<div #dialogRef>\n <kendo-dialog\n *ngIf=\"opened\"\n [width]=\"width\"\n [height]=\"height\"\n [minWidth]=\"minWidth\"\n [maxWidth]=\"maxWidth\"\n [minHeight]=\"minHeight\"\n [maxHeight]=\"maxHeight\">\n <div #contentRef>\n <ng-content></ng-content>\n </div>\n </kendo-dialog>\n</div>\n", styles: [":host ::ng-deep .dialog-title .k-button{display:none!important}:host ::ng-deep .k-window-content,:host ::ng-deep .k-prompt-container{padding:1.5rem}:host ::ng-deep .k-window-titlebar{padding:1rem 1.5rem}:host ::ng-deep .k-window-actions{margin:0;border-width:1px 0 0;padding:1rem 1.5rem;position:sticky;z-index:100;gap:1rem}\n"], dependencies: [{ kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$6.DialogComponent, selector: "kendo-dialog", inputs: ["actions", "actionsLayout", "autoFocusedElement", "title", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "animation", "themeColor"], outputs: ["action", "close"], exportAs: ["kendoDialog"] }] }); }
|
|
2636
|
+
}
|
|
2637
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogComponent, decorators: [{
|
|
2638
|
+
type: Component,
|
|
2639
|
+
args: [{ selector: 'lib-dialog', template: "<div #dialogRef>\n <kendo-dialog\n *ngIf=\"opened\"\n [width]=\"width\"\n [height]=\"height\"\n [minWidth]=\"minWidth\"\n [maxWidth]=\"maxWidth\"\n [minHeight]=\"minHeight\"\n [maxHeight]=\"maxHeight\">\n <div #contentRef>\n <ng-content></ng-content>\n </div>\n </kendo-dialog>\n</div>\n", styles: [":host ::ng-deep .dialog-title .k-button{display:none!important}:host ::ng-deep .k-window-content,:host ::ng-deep .k-prompt-container{padding:1.5rem}:host ::ng-deep .k-window-titlebar{padding:1rem 1.5rem}:host ::ng-deep .k-window-actions{margin:0;border-width:1px 0 0;padding:1rem 1.5rem;position:sticky;z-index:100;gap:1rem}\n"] }]
|
|
2640
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }]; }, propDecorators: { contentRef: [{
|
|
2641
|
+
type: ViewChild,
|
|
2642
|
+
args: ['contentRef', { static: false }]
|
|
2643
|
+
}], dialogRef: [{
|
|
2644
|
+
type: ViewChild,
|
|
2645
|
+
args: ['dialogRef', { static: false }]
|
|
2646
|
+
}], width: [{
|
|
2647
|
+
type: Input
|
|
2648
|
+
}], height: [{
|
|
2649
|
+
type: Input
|
|
2650
|
+
}], minWidth: [{
|
|
2651
|
+
type: Input
|
|
2652
|
+
}], maxWidth: [{
|
|
2653
|
+
type: Input
|
|
2654
|
+
}], minHeight: [{
|
|
2655
|
+
type: Input
|
|
2656
|
+
}], maxHeight: [{
|
|
2657
|
+
type: Input
|
|
2658
|
+
}], opened: [{
|
|
2659
|
+
type: Input
|
|
2660
|
+
}] } });
|
|
2661
|
+
|
|
2662
|
+
class DialogTitlebarComponent {
|
|
2663
|
+
constructor(dialogComponent) {
|
|
2664
|
+
this.dialogComponent = dialogComponent;
|
|
2665
|
+
this.title = '';
|
|
2666
|
+
this.titleFont = 'P_MULISH_14_REGULAR';
|
|
2667
|
+
this.closeDialog = new EventEmitter();
|
|
2668
|
+
this.hideCloseIcon = false;
|
|
2669
|
+
}
|
|
2670
|
+
ngOnInit() { }
|
|
2671
|
+
close() {
|
|
2672
|
+
this.closeDialog.emit();
|
|
2673
|
+
}
|
|
2674
|
+
;
|
|
2675
|
+
closeBtn() {
|
|
2676
|
+
if (this.hideCloseIcon) {
|
|
2677
|
+
return 'dialog-title';
|
|
2678
|
+
}
|
|
2679
|
+
return;
|
|
2680
|
+
}
|
|
2681
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogTitlebarComponent, deps: [{ token: DialogComponent }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2682
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DialogTitlebarComponent, selector: "lib-dialog-titlebar", inputs: { title: "title", titleFont: "titleFont", hideCloseIcon: "hideCloseIcon" }, outputs: { closeDialog: "closeDialog" }, ngImport: i0, template: "<kendo-dialog-titlebar (close)=\"close()\" [ngClass]=\"closeBtn()\">\n <lib-typography\n [defaultText]=\"title\"\n [type]=\"titleFont\"\n ></lib-typography>\n</kendo-dialog-titlebar>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2$6.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: TypographyComponent, selector: "lib-typography", inputs: ["type", "defaultText", "isLabel", "hiddenLabel"] }] }); }
|
|
2683
|
+
}
|
|
2684
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogTitlebarComponent, decorators: [{
|
|
2685
|
+
type: Component,
|
|
2686
|
+
args: [{ selector: 'lib-dialog-titlebar', template: "<kendo-dialog-titlebar (close)=\"close()\" [ngClass]=\"closeBtn()\">\n <lib-typography\n [defaultText]=\"title\"\n [type]=\"titleFont\"\n ></lib-typography>\n</kendo-dialog-titlebar>\n" }]
|
|
2687
|
+
}], ctorParameters: function () { return [{ type: DialogComponent }]; }, propDecorators: { title: [{
|
|
2688
|
+
type: Input
|
|
2689
|
+
}], titleFont: [{
|
|
2690
|
+
type: Input
|
|
2691
|
+
}], closeDialog: [{
|
|
2692
|
+
type: Output
|
|
2693
|
+
}], hideCloseIcon: [{
|
|
2694
|
+
type: Input
|
|
2695
|
+
}] } });
|
|
2696
|
+
|
|
2697
|
+
class DialogActionsComponent {
|
|
2698
|
+
constructor() {
|
|
2699
|
+
this.buttonLayout = 'start';
|
|
2700
|
+
}
|
|
2701
|
+
ngOnInit() { }
|
|
2702
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2703
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DialogActionsComponent, selector: "lib-dialog-actions", inputs: { buttonLayout: "buttonLayout" }, ngImport: i0, template: "<kendo-dialog-actions [layout]=\"buttonLayout\">\n <ng-content></ng-content>\n</kendo-dialog-actions>\n", styles: [""], dependencies: [{ kind: "component", type: i2$6.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }] }); }
|
|
2704
|
+
}
|
|
2705
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogActionsComponent, decorators: [{
|
|
2706
|
+
type: Component,
|
|
2707
|
+
args: [{ selector: 'lib-dialog-actions', template: "<kendo-dialog-actions [layout]=\"buttonLayout\">\n <ng-content></ng-content>\n</kendo-dialog-actions>\n" }]
|
|
2708
|
+
}], ctorParameters: function () { return []; }, propDecorators: { buttonLayout: [{
|
|
2709
|
+
type: Input
|
|
2710
|
+
}] } });
|
|
2711
|
+
|
|
2712
|
+
class DialogModule {
|
|
2713
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2714
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DialogModule, declarations: [DialogComponent,
|
|
2715
|
+
DialogTitlebarComponent,
|
|
2716
|
+
DialogActionsComponent], imports: [CommonModule,
|
|
2717
|
+
DialogsModule,
|
|
2718
|
+
ButtonsModule,
|
|
2719
|
+
TypographyModule], exports: [DialogComponent, DialogTitlebarComponent, DialogActionsComponent] }); }
|
|
2720
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogModule, imports: [CommonModule,
|
|
2721
|
+
DialogsModule,
|
|
2722
|
+
ButtonsModule,
|
|
2723
|
+
TypographyModule] }); }
|
|
2724
|
+
}
|
|
2725
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogModule, decorators: [{
|
|
2726
|
+
type: NgModule,
|
|
2727
|
+
args: [{
|
|
2728
|
+
declarations: [
|
|
2729
|
+
DialogComponent,
|
|
2730
|
+
DialogTitlebarComponent,
|
|
2731
|
+
DialogActionsComponent
|
|
2732
|
+
],
|
|
2733
|
+
imports: [
|
|
2734
|
+
CommonModule,
|
|
2735
|
+
DialogsModule,
|
|
2736
|
+
ButtonsModule,
|
|
2737
|
+
TypographyModule
|
|
2738
|
+
],
|
|
2739
|
+
exports: [DialogComponent, DialogTitlebarComponent, DialogActionsComponent],
|
|
2740
|
+
}]
|
|
2741
|
+
}] });
|
|
2742
|
+
|
|
2743
|
+
class GridLayoutComponent {
|
|
2744
|
+
constructor() {
|
|
2745
|
+
this.horizontalAlign = "stretch";
|
|
2746
|
+
this.verticalAlign = "stretch";
|
|
2747
|
+
this.rowGap = 0;
|
|
2748
|
+
this.columnGap = 0;
|
|
2749
|
+
this.rows = [];
|
|
2750
|
+
this.columns = [];
|
|
2751
|
+
}
|
|
2752
|
+
ngOnInit() {
|
|
2753
|
+
}
|
|
2754
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2755
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GridLayoutComponent, selector: "lib-grid-layout", inputs: { horizontalAlign: "horizontalAlign", verticalAlign: "verticalAlign", rowGap: "rowGap", columnGap: "columnGap", rows: "rows", columns: "columns" }, ngImport: i0, template: "<kendo-gridlayout\n [align]=\"{ horizontal: horizontalAlign, vertical: verticalAlign }\"\n [rows]=\"rows\"\n [cols]=\"columns\"\n [gap]=\"{ rows: rowGap, cols: columnGap }\"\n>\n <ng-content></ng-content>\n</kendo-gridlayout>\n", styles: [""], dependencies: [{ kind: "component", type: i2.GridLayoutComponent, selector: "kendo-gridlayout", inputs: ["rows", "cols", "gap", "align"], exportAs: ["kendoGridLayout"] }] }); }
|
|
2756
|
+
}
|
|
2757
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridLayoutComponent, decorators: [{
|
|
2758
|
+
type: Component,
|
|
2759
|
+
args: [{ selector: 'lib-grid-layout', template: "<kendo-gridlayout\n [align]=\"{ horizontal: horizontalAlign, vertical: verticalAlign }\"\n [rows]=\"rows\"\n [cols]=\"columns\"\n [gap]=\"{ rows: rowGap, cols: columnGap }\"\n>\n <ng-content></ng-content>\n</kendo-gridlayout>\n" }]
|
|
2760
|
+
}], ctorParameters: function () { return []; }, propDecorators: { horizontalAlign: [{
|
|
2761
|
+
type: Input
|
|
2762
|
+
}], verticalAlign: [{
|
|
2763
|
+
type: Input
|
|
2764
|
+
}], rowGap: [{
|
|
2765
|
+
type: Input
|
|
2766
|
+
}], columnGap: [{
|
|
2767
|
+
type: Input
|
|
2768
|
+
}], rows: [{
|
|
2769
|
+
type: Input
|
|
2770
|
+
}], columns: [{
|
|
2771
|
+
type: Input
|
|
2772
|
+
}] } });
|
|
2773
|
+
|
|
2774
|
+
class GridLayoutItemComponent {
|
|
2775
|
+
constructor(renderer, elRef) {
|
|
2776
|
+
this.renderer = renderer;
|
|
2777
|
+
this.elRef = elRef;
|
|
2778
|
+
this.rowSpan = 1;
|
|
2779
|
+
this.colSpan = 1;
|
|
2780
|
+
}
|
|
2781
|
+
ngOnInit() {
|
|
2782
|
+
}
|
|
2783
|
+
ngAfterViewInit() {
|
|
2784
|
+
// access the DOM. get the element to unwrap
|
|
2785
|
+
const el = this.elRef.nativeElement; // app-page
|
|
2786
|
+
const parent = this.renderer.parentNode(this.elRef.nativeElement); // parent
|
|
2787
|
+
// move children to parent (everything is moved including comments which angular depends on)
|
|
2788
|
+
while (el.firstChild) { // this line doesn't work with server-rendering
|
|
2789
|
+
this.renderer.appendChild(parent, el.firstChild);
|
|
2790
|
+
}
|
|
2791
|
+
// remove empty element from parent - true to signal that this removed element is a host element
|
|
2792
|
+
this.renderer.removeChild(parent, el, true);
|
|
2793
|
+
}
|
|
2794
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridLayoutItemComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2795
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GridLayoutItemComponent, selector: "lib-grid-layout-item", inputs: { rowNumber: "rowNumber", columnNumber: "columnNumber", rowSpan: "rowSpan", colSpan: "colSpan" }, ngImport: i0, template: "<kendo-gridlayout-item\n [row]=\"rowNumber\"\n [col]=\"columnNumber\"\n [rowSpan]=\"rowSpan\"\n [colSpan]=\"colSpan\"\n>\n <ng-content></ng-content>\n</kendo-gridlayout-item>\n", styles: [""], dependencies: [{ kind: "component", type: i2.GridLayoutItemComponent, selector: "kendo-gridlayout-item", inputs: ["row", "col", "rowSpan", "colSpan"] }] }); }
|
|
2796
|
+
}
|
|
2797
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridLayoutItemComponent, decorators: [{
|
|
2798
|
+
type: Component,
|
|
2799
|
+
args: [{ selector: 'lib-grid-layout-item', template: "<kendo-gridlayout-item\n [row]=\"rowNumber\"\n [col]=\"columnNumber\"\n [rowSpan]=\"rowSpan\"\n [colSpan]=\"colSpan\"\n>\n <ng-content></ng-content>\n</kendo-gridlayout-item>\n" }]
|
|
2800
|
+
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { rowNumber: [{
|
|
2801
|
+
type: Input
|
|
2802
|
+
}], columnNumber: [{
|
|
2803
|
+
type: Input
|
|
2804
|
+
}], rowSpan: [{
|
|
2805
|
+
type: Input
|
|
2806
|
+
}], colSpan: [{
|
|
2807
|
+
type: Input
|
|
2808
|
+
}] } });
|
|
2809
|
+
|
|
2810
|
+
class GridLayoutModule {
|
|
2811
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2812
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GridLayoutModule, declarations: [GridLayoutComponent,
|
|
2813
|
+
GridLayoutItemComponent], imports: [CommonModule,
|
|
2814
|
+
LayoutModule], exports: [GridLayoutComponent,
|
|
2815
|
+
GridLayoutItemComponent] }); }
|
|
2816
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridLayoutModule, imports: [CommonModule,
|
|
2817
|
+
LayoutModule] }); }
|
|
2818
|
+
}
|
|
2819
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridLayoutModule, decorators: [{
|
|
2820
|
+
type: NgModule,
|
|
2821
|
+
args: [{
|
|
2822
|
+
declarations: [
|
|
2823
|
+
GridLayoutComponent,
|
|
2824
|
+
GridLayoutItemComponent
|
|
2825
|
+
],
|
|
2826
|
+
imports: [
|
|
2827
|
+
CommonModule,
|
|
2828
|
+
LayoutModule
|
|
2829
|
+
],
|
|
2830
|
+
exports: [
|
|
2831
|
+
GridLayoutComponent,
|
|
2832
|
+
GridLayoutItemComponent
|
|
2833
|
+
]
|
|
2834
|
+
}]
|
|
2835
|
+
}] });
|
|
2836
|
+
|
|
2837
|
+
class TabstripTabComponent {
|
|
2838
|
+
constructor() {
|
|
2839
|
+
this.title = null;
|
|
2840
|
+
this.customHeader = false;
|
|
2841
|
+
}
|
|
2842
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TabstripTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2843
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TabstripTabComponent, selector: "lib-tabstrip-tab", inputs: { title: "title", customHeader: "customHeader" }, queries: [{ propertyName: "titleRef", first: true, predicate: ["titleRef"], descendants: true }, { propertyName: "contentRef", first: true, predicate: ["contentRef"], descendants: true }], ngImport: i0, template: "<ng-template>\n <ng-content></ng-content>\n</ng-template>\n", styles: [""] }); }
|
|
2844
|
+
}
|
|
2845
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TabstripTabComponent, decorators: [{
|
|
2846
|
+
type: Component,
|
|
2847
|
+
args: [{ selector: 'lib-tabstrip-tab', template: "<ng-template>\n <ng-content></ng-content>\n</ng-template>\n" }]
|
|
2848
|
+
}], propDecorators: { title: [{
|
|
2849
|
+
type: Input
|
|
2850
|
+
}], customHeader: [{
|
|
2851
|
+
type: Input
|
|
2852
|
+
}], titleRef: [{
|
|
2853
|
+
type: ContentChild,
|
|
2854
|
+
args: ['titleRef']
|
|
2855
|
+
}], contentRef: [{
|
|
2856
|
+
type: ContentChild,
|
|
2857
|
+
args: ['contentRef']
|
|
2858
|
+
}] } });
|
|
2859
|
+
|
|
2860
|
+
class TabstripComponent {
|
|
2861
|
+
constructor() {
|
|
2862
|
+
this.height = "50";
|
|
2863
|
+
this.alignment = "start";
|
|
2864
|
+
this.position = "top";
|
|
2865
|
+
this.onTabSelect = new EventEmitter();
|
|
2866
|
+
this.selectedTab = 0;
|
|
2867
|
+
}
|
|
2868
|
+
onTabSelectEvent(e) {
|
|
2869
|
+
this.onTabSelect.emit(e);
|
|
2870
|
+
}
|
|
2871
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TabstripComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2872
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TabstripComponent, selector: "lib-tabstrip", inputs: { height: "height", alignment: "alignment", position: "position", selectedTab: "selectedTab" }, outputs: { onTabSelect: "onTabSelect" }, queries: [{ propertyName: "tabstripTabComponents", predicate: TabstripTabComponent, descendants: true }], ngImport: i0, template: "<kendo-tabstrip\n [tabPosition]=\"position\"\n [tabAlignment]=\"alignment\"\n [height]=\"height\"\n (tabSelect)=\"onTabSelectEvent($event)\"\n [keepTabContent]=\"true\"\n>\n <kendo-tabstrip-tab\n *ngFor=\"let tabstripTabComponent of tabstripTabComponents; let i = index\"\n title=\"{{ tabstripTabComponent.title }}\"\n [selected]=\"i == selectedTab\"\n >\n <ng-template kendoTabTitle *ngIf=\"tabstripTabComponent.customHeader\">\n <ng-container *ngTemplateOutlet=\"tabstripTabComponent.titleRef\">\n </ng-container>\n </ng-template>\n <ng-template kendoTabContent>\n <ng-container *ngTemplateOutlet=\"tabstripTabComponent.contentRef\">\n </ng-container>\n </ng-template>\n </kendo-tabstrip-tab>\n</kendo-tabstrip>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.TabStripComponent, selector: "kendo-tabstrip", inputs: ["height", "animate", "tabAlignment", "tabPosition", "keepTabContent", "closable", "scrollable", "closeIcon", "closeIconClass", "closeSVGIcon", "showContentArea"], outputs: ["tabSelect", "tabClose", "tabScroll"], exportAs: ["kendoTabStrip"] }, { kind: "component", type: i2.TabStripTabComponent, selector: "kendo-tabstrip-tab", inputs: ["title", "disabled", "cssClass", "cssStyle", "selected", "closable", "closeIcon", "closeIconClass", "closeSVGIcon"], exportAs: ["kendoTabStripTab"] }, { kind: "directive", type: i2.TabContentDirective, selector: "[kendoTabContent]" }, { kind: "directive", type: i2.TabTitleDirective, selector: "[kendoTabTitle]" }] }); }
|
|
2873
|
+
}
|
|
2874
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TabstripComponent, decorators: [{
|
|
2875
|
+
type: Component,
|
|
2876
|
+
args: [{ selector: 'lib-tabstrip', template: "<kendo-tabstrip\n [tabPosition]=\"position\"\n [tabAlignment]=\"alignment\"\n [height]=\"height\"\n (tabSelect)=\"onTabSelectEvent($event)\"\n [keepTabContent]=\"true\"\n>\n <kendo-tabstrip-tab\n *ngFor=\"let tabstripTabComponent of tabstripTabComponents; let i = index\"\n title=\"{{ tabstripTabComponent.title }}\"\n [selected]=\"i == selectedTab\"\n >\n <ng-template kendoTabTitle *ngIf=\"tabstripTabComponent.customHeader\">\n <ng-container *ngTemplateOutlet=\"tabstripTabComponent.titleRef\">\n </ng-container>\n </ng-template>\n <ng-template kendoTabContent>\n <ng-container *ngTemplateOutlet=\"tabstripTabComponent.contentRef\">\n </ng-container>\n </ng-template>\n </kendo-tabstrip-tab>\n</kendo-tabstrip>\n" }]
|
|
2877
|
+
}], propDecorators: { height: [{
|
|
2878
|
+
type: Input
|
|
2879
|
+
}], alignment: [{
|
|
2880
|
+
type: Input
|
|
2881
|
+
}], position: [{
|
|
2882
|
+
type: Input
|
|
2883
|
+
}], onTabSelect: [{
|
|
2884
|
+
type: Output
|
|
2885
|
+
}], selectedTab: [{
|
|
2886
|
+
type: Input
|
|
2887
|
+
}], tabstripTabComponents: [{
|
|
2888
|
+
type: ContentChildren,
|
|
2889
|
+
args: [TabstripTabComponent, { descendants: true }]
|
|
2890
|
+
}] } });
|
|
2891
|
+
|
|
2892
|
+
class TabstripModule {
|
|
2893
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TabstripModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2894
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TabstripModule, declarations: [TabstripComponent,
|
|
2895
|
+
TabstripTabComponent], imports: [CommonModule,
|
|
2896
|
+
LayoutModule], exports: [TabstripComponent,
|
|
2897
|
+
TabstripTabComponent] }); }
|
|
2898
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TabstripModule, imports: [CommonModule,
|
|
2899
|
+
LayoutModule] }); }
|
|
2900
|
+
}
|
|
2901
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TabstripModule, decorators: [{
|
|
2902
|
+
type: NgModule,
|
|
2903
|
+
args: [{
|
|
2904
|
+
declarations: [
|
|
2905
|
+
TabstripComponent,
|
|
2906
|
+
TabstripTabComponent
|
|
2907
|
+
],
|
|
2908
|
+
imports: [
|
|
2909
|
+
CommonModule,
|
|
2910
|
+
LayoutModule
|
|
2911
|
+
],
|
|
2912
|
+
exports: [
|
|
2913
|
+
TabstripComponent,
|
|
2914
|
+
TabstripTabComponent
|
|
2915
|
+
]
|
|
2916
|
+
}]
|
|
2917
|
+
}] });
|
|
2918
|
+
|
|
2919
|
+
class SidebarComponent {
|
|
2920
|
+
constructor() {
|
|
2921
|
+
this.isSidebarOpen = true;
|
|
2922
|
+
this.sideNavbarMenus = [];
|
|
2923
|
+
this.routeSideNavItem = new EventEmitter();
|
|
2924
|
+
}
|
|
2925
|
+
ngOnInit() {
|
|
2926
|
+
console.log("Sidebar loaded successfully!");
|
|
2927
|
+
}
|
|
2928
|
+
selectSidenav(event, selectedMenu) {
|
|
2929
|
+
event.stopPropagation();
|
|
2930
|
+
// if (selectedMenu.submenus && selectedMenu.submenus?.length > 0) {
|
|
2931
|
+
// this.toggleSubmenus(event);
|
|
2932
|
+
// }
|
|
2933
|
+
// deactivate all nav
|
|
2934
|
+
this.sideNavbarMenus.forEach(function (menu) {
|
|
2935
|
+
if (menu.submenus && menu.submenus?.length > 0) {
|
|
2936
|
+
menu.submenus.forEach(submenu => (submenu.active = false));
|
|
2937
|
+
}
|
|
2938
|
+
menu.active = false;
|
|
2939
|
+
});
|
|
2940
|
+
// activate the nav the user has clicked on.
|
|
2941
|
+
selectedMenu.active = true;
|
|
2942
|
+
this.routeSideNavItem.emit(selectedMenu);
|
|
2943
|
+
}
|
|
2944
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SidebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2945
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SidebarComponent, selector: "lib-sidebar", inputs: { isSidebarOpen: "isSidebarOpen", sideNavbarMenus: "sideNavbarMenus" }, outputs: { routeSideNavItem: "routeSideNavItem" }, ngImport: i0, template: "<div class=\"sidebar\" [ngClass]=\"{'open': isSidebarOpen}\">\n <ul class=\"nav-list\">\n <li *ngFor=\"let menu of sideNavbarMenus\" (click)=\"selectSidenav($event, menu)\" [class.hidden]=\"!menu.visible\">\n <a [class.active]=\"menu.active\">\n <i class=\"material-icons-outlined icon-size\">{{menu.icon}}</i>\n <lib-typography class=\"links_name\" defaultText={{menu.name}} type=\"BASE_TEXT_MULISH\"></lib-typography>\n <i *ngIf=\"menu.submenus?.length\" class=\"material-icons submenu-arrow\">keyboard_arrow_down</i>\n </a>\n\n <!-- <ul *ngIf=\"menu.submenus?.length\" class=\"submenu\">\n <li *ngFor=\"let submenu of menu.submenus\" (click)=\"selectSidenav($event, submenu)\"\n [class.hidden]=\"!submenu.visible\">\n <a routerLink=\"{{submenu.route}}\" [class.active]=\"submenu.active\">\n <lib-tooltip title=\"{{submenu.name}}\" showOn=\"hover\">\n <i class=\"material-icons-outlined\">{{submenu.icon}}</i>\n </lib-tooltip>\n <lib-typography class=\"links_name\" defaultText={{submenu.name}} type=\"H5_MULISH_14_REGULAR\">\n </lib-typography>\n </a>\n </li>\n </ul> -->\n\n </li>\n </ul>\n</div>\n", styles: ["@import\"material-icons/iconfont/material-icons.css\";.sidebar{position:fixed;left:0;top:69px;height:100vh;width:50px;padding:0;z-index:98;border-right:.5px solid #CCCCCC}.nav-list{padding:initial;height:100%}li{position:relative;list-style:none}li.hidden{display:none}a{display:flex;height:100%;width:100%;padding:12px 0 12px 16px;align-items:center;text-decoration:none;cursor:pointer}.links_name{white-space:nowrap;opacity:0;pointer-events:none}lib-tooltip{height:17px}i{padding-right:2px;font-size:18px}.submenu{list-style:none;margin:0;padding:0}.sidebar .submenu-arrow{display:none}.submenu:not(.show){display:none}.links_name,i{color:var(--font-color)}a.active .links_name,a:hover .links_name,a.active i,a:hover i{color:#3864f2!important}.sidebar.open{width:199px;overflow:hidden}.sidebar.open .links_name{opacity:1;pointer-events:auto;margin-left:16px}.sidebar.open .submenu-arrow{display:block;margin-left:auto;padding-top:3px;padding-right:6px}.sidebar.open .submenu a{padding-left:2rem}.icon-size{width:20px!important;height:18px}\n"], dependencies: [{ kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TypographyComponent, selector: "lib-typography", inputs: ["type", "defaultText", "isLabel", "hiddenLabel"] }] }); }
|
|
2946
|
+
}
|
|
2947
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SidebarComponent, decorators: [{
|
|
2948
|
+
type: Component,
|
|
2949
|
+
args: [{ selector: 'lib-sidebar', template: "<div class=\"sidebar\" [ngClass]=\"{'open': isSidebarOpen}\">\n <ul class=\"nav-list\">\n <li *ngFor=\"let menu of sideNavbarMenus\" (click)=\"selectSidenav($event, menu)\" [class.hidden]=\"!menu.visible\">\n <a [class.active]=\"menu.active\">\n <i class=\"material-icons-outlined icon-size\">{{menu.icon}}</i>\n <lib-typography class=\"links_name\" defaultText={{menu.name}} type=\"BASE_TEXT_MULISH\"></lib-typography>\n <i *ngIf=\"menu.submenus?.length\" class=\"material-icons submenu-arrow\">keyboard_arrow_down</i>\n </a>\n\n <!-- <ul *ngIf=\"menu.submenus?.length\" class=\"submenu\">\n <li *ngFor=\"let submenu of menu.submenus\" (click)=\"selectSidenav($event, submenu)\"\n [class.hidden]=\"!submenu.visible\">\n <a routerLink=\"{{submenu.route}}\" [class.active]=\"submenu.active\">\n <lib-tooltip title=\"{{submenu.name}}\" showOn=\"hover\">\n <i class=\"material-icons-outlined\">{{submenu.icon}}</i>\n </lib-tooltip>\n <lib-typography class=\"links_name\" defaultText={{submenu.name}} type=\"H5_MULISH_14_REGULAR\">\n </lib-typography>\n </a>\n </li>\n </ul> -->\n\n </li>\n </ul>\n</div>\n", styles: ["@import\"material-icons/iconfont/material-icons.css\";.sidebar{position:fixed;left:0;top:69px;height:100vh;width:50px;padding:0;z-index:98;border-right:.5px solid #CCCCCC}.nav-list{padding:initial;height:100%}li{position:relative;list-style:none}li.hidden{display:none}a{display:flex;height:100%;width:100%;padding:12px 0 12px 16px;align-items:center;text-decoration:none;cursor:pointer}.links_name{white-space:nowrap;opacity:0;pointer-events:none}lib-tooltip{height:17px}i{padding-right:2px;font-size:18px}.submenu{list-style:none;margin:0;padding:0}.sidebar .submenu-arrow{display:none}.submenu:not(.show){display:none}.links_name,i{color:var(--font-color)}a.active .links_name,a:hover .links_name,a.active i,a:hover i{color:#3864f2!important}.sidebar.open{width:199px;overflow:hidden}.sidebar.open .links_name{opacity:1;pointer-events:auto;margin-left:16px}.sidebar.open .submenu-arrow{display:block;margin-left:auto;padding-top:3px;padding-right:6px}.sidebar.open .submenu a{padding-left:2rem}.icon-size{width:20px!important;height:18px}\n"] }]
|
|
2950
|
+
}], ctorParameters: function () { return []; }, propDecorators: { isSidebarOpen: [{
|
|
2951
|
+
type: Input
|
|
2952
|
+
}], sideNavbarMenus: [{
|
|
2953
|
+
type: Input
|
|
2954
|
+
}], routeSideNavItem: [{
|
|
2955
|
+
type: Output
|
|
2956
|
+
}] } });
|
|
2957
|
+
|
|
2958
|
+
class SidebarModule {
|
|
2959
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SidebarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2960
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SidebarModule, declarations: [SidebarComponent], imports: [CommonModule,
|
|
2961
|
+
TypographyModule,
|
|
2962
|
+
TooltipModule], exports: [SidebarComponent] }); }
|
|
2963
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SidebarModule, imports: [CommonModule,
|
|
2964
|
+
TypographyModule,
|
|
2965
|
+
TooltipModule] }); }
|
|
2966
|
+
}
|
|
2967
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SidebarModule, decorators: [{
|
|
2968
|
+
type: NgModule,
|
|
2969
|
+
args: [{
|
|
2970
|
+
declarations: [
|
|
2971
|
+
SidebarComponent
|
|
2972
|
+
],
|
|
2973
|
+
imports: [
|
|
2974
|
+
CommonModule,
|
|
2975
|
+
TypographyModule,
|
|
2976
|
+
TooltipModule
|
|
2977
|
+
],
|
|
2978
|
+
exports: [
|
|
2979
|
+
SidebarComponent
|
|
2980
|
+
]
|
|
2981
|
+
}]
|
|
2982
|
+
}] });
|
|
2983
|
+
|
|
2984
|
+
class LibGridComponent {
|
|
2985
|
+
constructor() {
|
|
2986
|
+
this.gridData = [];
|
|
2987
|
+
this.columnData = [];
|
|
2988
|
+
this.pageSize = 0;
|
|
2989
|
+
this.pageable = false;
|
|
2990
|
+
this.sortable = false;
|
|
2991
|
+
this.groupable = false;
|
|
2992
|
+
this.reorderable = false;
|
|
2993
|
+
this.resizable = false;
|
|
2994
|
+
this.checkBoxWidth = 28;
|
|
2995
|
+
this.checkBoxColumnResizable = false;
|
|
2996
|
+
this.checkBoxColumnMenu = false;
|
|
2997
|
+
this.checkBoxColumnShowSelectedAll = true;
|
|
2998
|
+
this.checkBoxRequired = false;
|
|
2999
|
+
this.columnMenu = false;
|
|
3000
|
+
this.mode = 'multiple';
|
|
3001
|
+
this.checkboxOnly = true;
|
|
3002
|
+
this.dragColumns = false;
|
|
3003
|
+
this.navigable = true;
|
|
3004
|
+
this.gridRowSelectByValue = '';
|
|
3005
|
+
this.noRecordsContent = 'No Records Available';
|
|
3006
|
+
this.selectedRowData = new EventEmitter();
|
|
3007
|
+
this.showToolbar = false;
|
|
3008
|
+
this.selectableSettings = {};
|
|
3009
|
+
this.kebabList = [];
|
|
3010
|
+
this.showKebab = false;
|
|
3011
|
+
this.rowDetails = new EventEmitter();
|
|
3012
|
+
this.kebabItemClick = new EventEmitter();
|
|
3013
|
+
this.icon = moreVerticalIcon;
|
|
3014
|
+
this.kebabColumnWidth = 60;
|
|
3015
|
+
this.data = [];
|
|
3016
|
+
this.rowDataOfClickedCell = new EventEmitter();
|
|
3017
|
+
this.preSelected = [];
|
|
3018
|
+
this.preSelectedRecords = [];
|
|
3019
|
+
this.ignoreColumnCellClick = [];
|
|
3020
|
+
this.allowColumnClick = true;
|
|
3021
|
+
this.arrowDownIcon = chevronDownIcon;
|
|
3022
|
+
this.arrowUpIcon = chevronUpIcon;
|
|
3023
|
+
this.expandRowIndex = [];
|
|
3024
|
+
this.customExpandRowColumn = true;
|
|
3025
|
+
this.deleteIcon = trashIcon;
|
|
3026
|
+
this.deleteColumnWidth = 42;
|
|
3027
|
+
this.expandRowColumnWidth = 42;
|
|
3028
|
+
this.deletedRowData = new EventEmitter();
|
|
3029
|
+
this.expandRows = false;
|
|
3030
|
+
this.showDeleteColumn = false;
|
|
3031
|
+
this.setSelectableSettings();
|
|
3032
|
+
}
|
|
3033
|
+
ngOnChanges(changes) {
|
|
3034
|
+
let prevPreSelected = JSON.stringify(changes['preSelected']?.previousValue);
|
|
3035
|
+
let currPreSelected = JSON.stringify(changes['preSelected']?.currentValue);
|
|
3036
|
+
// Check if there is a change in this.preSelected input
|
|
3037
|
+
if (prevPreSelected !== currPreSelected) {
|
|
3038
|
+
// Clear the this.preSelectedRecords array
|
|
3039
|
+
this.preSelectedRecords = [];
|
|
3040
|
+
for (let row = 0; row < changes['preSelected'].currentValue.length; row++) {
|
|
3041
|
+
for (let col = 0; col < this.gridData.length; col++) {
|
|
3042
|
+
// Find the relevant record for a particular id
|
|
3043
|
+
if (this.gridData[col][this.gridRowSelectByValue] ===
|
|
3044
|
+
changes['preSelected'].currentValue[row]) {
|
|
3045
|
+
let found = false;
|
|
3046
|
+
// Check if this record is present in this.data, if yes don't push it in this.preSelectedRecords else push it
|
|
3047
|
+
for (let index = 0; index < this.data.length; index++) {
|
|
3048
|
+
if (this.data[index][this.gridRowSelectByValue] ===
|
|
3049
|
+
this.gridData[col][this.gridRowSelectByValue]) {
|
|
3050
|
+
found = true;
|
|
3051
|
+
}
|
|
3052
|
+
}
|
|
3053
|
+
if (!found) {
|
|
3054
|
+
this.preSelectedRecords.push(this.gridData[col]);
|
|
3055
|
+
}
|
|
3056
|
+
}
|
|
3057
|
+
}
|
|
3058
|
+
}
|
|
3059
|
+
this.selectedRowData.emit(this.preSelectedRecords.concat(this.data));
|
|
3060
|
+
}
|
|
3061
|
+
}
|
|
3062
|
+
ngAfterContentInit() {
|
|
3063
|
+
if (!this.pageable) {
|
|
3064
|
+
this.pageSize = this.gridData.length;
|
|
3065
|
+
}
|
|
3066
|
+
}
|
|
3067
|
+
ngAfterViewInit() {
|
|
3068
|
+
if (this.customExpandRowColumn) {
|
|
3069
|
+
this.expandRowIndex.forEach((id) => {
|
|
3070
|
+
this.grid.expandRow(id);
|
|
3071
|
+
});
|
|
3072
|
+
}
|
|
3073
|
+
}
|
|
3074
|
+
setSelectableSettings() {
|
|
3075
|
+
if (this.checkboxOnly || this.mode === 'single') {
|
|
3076
|
+
this.dragColumns = false;
|
|
3077
|
+
}
|
|
3078
|
+
this.selectableSettings = {
|
|
3079
|
+
checkboxOnly: this.checkboxOnly,
|
|
3080
|
+
mode: this.mode,
|
|
3081
|
+
drag: this.dragColumns,
|
|
3082
|
+
};
|
|
3083
|
+
}
|
|
3084
|
+
// We can extract data out of row number using below function
|
|
3085
|
+
/* extract() {
|
|
3086
|
+
this.extractDataItems = this.mySelection.map(idx => {
|
|
3087
|
+
return this.gridData.find((data: { ProductID: number; }) => data.ProductID === idx);
|
|
3088
|
+
});
|
|
3089
|
+
console.log(this.extractDataItems)
|
|
3090
|
+
this.selectedRowData.emit(this.extractDataItems);
|
|
3091
|
+
} */
|
|
3092
|
+
onSelectionChange(args) {
|
|
3093
|
+
for (let row = 0; row < args.selectedRows.length; row++) {
|
|
3094
|
+
var found = false;
|
|
3095
|
+
for (let col = 0; col < this.data.length; col++) {
|
|
3096
|
+
if (this.data[col][this.gridRowSelectByValue] ===
|
|
3097
|
+
args.selectedRows[row].dataItem[this.gridRowSelectByValue]) {
|
|
3098
|
+
found = true;
|
|
3099
|
+
}
|
|
3100
|
+
}
|
|
3101
|
+
if (!found) {
|
|
3102
|
+
this.data.push(args.selectedRows[row].dataItem);
|
|
3103
|
+
}
|
|
3104
|
+
}
|
|
3105
|
+
if (args.deselectedRows.length !== 0) {
|
|
3106
|
+
for (let row = 0; row < args.deselectedRows.length; row++) {
|
|
3107
|
+
for (let col = 0; col < this.data.length; col++) {
|
|
3108
|
+
if (this.data[col][this.gridRowSelectByValue] ===
|
|
3109
|
+
args.deselectedRows[row].dataItem[this.gridRowSelectByValue]) {
|
|
3110
|
+
this.data.splice(col, 1);
|
|
3111
|
+
}
|
|
3112
|
+
}
|
|
3113
|
+
for (let col = 0; col < this.preSelectedRecords.length; col++) {
|
|
3114
|
+
if (this.preSelectedRecords[col][this.gridRowSelectByValue] ===
|
|
3115
|
+
args.deselectedRows[row].dataItem[this.gridRowSelectByValue]) {
|
|
3116
|
+
this.preSelectedRecords.splice(col, 1);
|
|
3117
|
+
// Remove this element from preselected
|
|
3118
|
+
let index = this.preSelected.indexOf(args.deselectedRows[row].dataItem[this.gridRowSelectByValue]);
|
|
3119
|
+
if (index !== -1) {
|
|
3120
|
+
this.preSelected.splice(index, 1);
|
|
3121
|
+
}
|
|
3122
|
+
}
|
|
3123
|
+
}
|
|
3124
|
+
}
|
|
3125
|
+
}
|
|
3126
|
+
this.selectedRowData.emit(this.preSelectedRecords.concat(this.data));
|
|
3127
|
+
}
|
|
3128
|
+
onKebabClick(item, rowDetails) {
|
|
3129
|
+
this.kebabItemClick.emit({ action: item, rowDetails });
|
|
3130
|
+
}
|
|
3131
|
+
onDetailExpand(rowData) {
|
|
3132
|
+
this.rowDetails.emit(rowData.dataItem);
|
|
3133
|
+
}
|
|
3134
|
+
cellClickHandler(args) {
|
|
3135
|
+
if (this.allowColumnClick) {
|
|
3136
|
+
if (this.ignoreColumnCellClick.includes(args.columnIndex)) {
|
|
3137
|
+
return;
|
|
3138
|
+
}
|
|
3139
|
+
this.rowDataOfClickedCell.emit(args.dataItem);
|
|
3140
|
+
}
|
|
3141
|
+
}
|
|
3142
|
+
expandRow(id) {
|
|
3143
|
+
this.grid.expandRow(id);
|
|
3144
|
+
this.expandRowIndex.push(id);
|
|
3145
|
+
}
|
|
3146
|
+
collapseRow(id) {
|
|
3147
|
+
this.grid.collapseRow(id);
|
|
3148
|
+
this.expandRowIndex.splice(this.expandRowIndex.indexOf(id), 1);
|
|
3149
|
+
}
|
|
3150
|
+
onDelete(rowDetails) {
|
|
3151
|
+
this.deletedRowData.emit(rowDetails);
|
|
3152
|
+
}
|
|
3153
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LibGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3154
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: LibGridComponent, selector: "lib-grid", inputs: { gridData: "gridData", columnData: "columnData", pageSize: "pageSize", pageable: "pageable", sortable: "sortable", groupable: "groupable", reorderable: "reorderable", resizable: "resizable", checkBoxWidth: "checkBoxWidth", checkBoxColumnResizable: "checkBoxColumnResizable", checkBoxColumnMenu: "checkBoxColumnMenu", checkBoxColumnShowSelectedAll: "checkBoxColumnShowSelectedAll", checkBoxRequired: "checkBoxRequired", columnMenu: "columnMenu", mode: "mode", checkboxOnly: "checkboxOnly", dragColumns: "dragColumns", navigable: "navigable", height: "height", gridRowSelectByValue: "gridRowSelectByValue", noRecordsContent: "noRecordsContent", showToolbar: "showToolbar", kebabList: "kebabList", showKebab: "showKebab", icon: "icon", kebabColumnWidth: "kebabColumnWidth", preSelected: "preSelected", ignoreColumnCellClick: "ignoreColumnCellClick", allowColumnClick: "allowColumnClick", expandRowIndex: "expandRowIndex", customExpandRowColumn: "customExpandRowColumn", deleteColumnWidth: "deleteColumnWidth", expandRowColumnWidth: "expandRowColumnWidth", expandRows: "expandRows", showDeleteColumn: "showDeleteColumn" }, outputs: { selectedRowData: "selectedRowData", rowDetails: "rowDetails", kebabItemClick: "kebabItemClick", rowDataOfClickedCell: "rowDataOfClickedCell", deletedRowData: "deletedRowData" }, queries: [{ propertyName: "templateRef", first: true, predicate: ["multiColumnData"], descendants: true }, { propertyName: "detailTemplate", first: true, predicate: ["detailTemplate"], descendants: true }, { propertyName: "impactColumn", first: true, predicate: ["impactColumn"], descendants: true }], viewQueries: [{ propertyName: "grid", first: true, predicate: GridComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<kendo-grid [kendoGridBinding]=\"gridData\" [pageSize]=\"pageSize\" [selectable]=\"selectableSettings\" [pageable]=\"pageable\"\n [sortable]=\"sortable\" [groupable]=\"groupable\" [reorderable]=\"reorderable\" [resizable]=\"resizable\"\n [columnMenu]=\"columnMenu\" [navigable]=\"navigable\" [height]=\"height\" (change)=\"setSelectableSettings()\"\n (selectionChange)=\"onSelectionChange($event)\" [kendoGridSelectBy]=\"gridRowSelectByValue\"\n (detailExpand)=\"onDetailExpand($event)\" [selectedKeys]=\"preSelected\" (cellClick)=\"cellClickHandler($event)\">\n\n <ng-template *ngIf=\"showToolbar\" kendoGridToolbarTemplate>\n <ng-content></ng-content>\n </ng-template>\n\n <ng-template *ngIf=\"this.gridData.length === 0\" kendoGridNoRecordsTemplate>\n <lib-typography [defaultText]=\"noRecordsContent\" type=\"P_MULISH_16_REGULAR\"></lib-typography>\n </ng-template>\n\n <ng-container *ngIf=\"gridData.length > 0\">\n <kendo-grid-checkbox-column *ngIf=\"checkBoxRequired === true\" [width]=\"checkBoxWidth\"\n [resizable]=\"checkBoxColumnResizable\" [columnMenu]=\"checkBoxColumnMenu\"\n [showSelectAll]=\"checkBoxColumnShowSelectedAll\" class=\"checkbox-column\">\n </kendo-grid-checkbox-column>\n\n <kendo-grid-column *ngFor=\"let item of columnData\" [field]=\"item.field\" [title]=\"item.title\"\n [width]=\"item.columnWidth\" class=\"grid-column\">\n <ng-template *ngIf=\"item.custom\" kendoGridCellTemplate let-dataItem>\n <ng-container *ngTemplateOutlet=\"templateRef; context: {$implicit: dataItem}\"></ng-container>\n </ng-template>\n <ng-template *ngIf=\"item.impact\" kendoGridCellTemplate let-dataItem>\n <ng-container *ngTemplateOutlet=\"impactColumn; context: {$implicit: dataItem}\"></ng-container>\n </ng-template>\n </kendo-grid-column>\n\n <kendo-grid-column *ngIf=\"showDeleteColumn\" [width]=\"deleteColumnWidth\" class=\"delete-column\">\n <ng-template kendoGridCellTemplate let-dataItem let-rowIndex=\"rowIndex\">\n <lib-tooltip showOn=\"hover\" position=\"bottom\" class=\"remove-tooltip\">\n <kendo-button [svgIcon]=\"deleteIcon\" title=\"delete\" fillMode=\"clear\" (click)=\"onDelete(dataItem)\"\n class=\"trash-icon\"></kendo-button>\n <div class=\"tooltip-content\">\n <p>Remove</p>\n </div>\n </lib-tooltip>\n </ng-template>\n </kendo-grid-column>\n\n <kendo-grid-column [width]=\"kebabColumnWidth\" class=\"kebab-column\" *ngIf=\"showKebab\">\n <ng-template kendoGridCellTemplate let-dataItem let-rowIndex=\"rowIndex\">\n <kendo-dropdownbutton [svgIcon]=\"icon\" fillMode=\"clear\" [data]=\"kebabList\" class=\"kebab\"\n (itemClick)=\"onKebabClick($event, dataItem)\"\n [popupSettings]=\"{ align: 'right', animate: true, popupClass: 'kebab-list' }\"></kendo-dropdownbutton>\n </ng-template>\n </kendo-grid-column>\n </ng-container>\n\n <ng-template kendoGridDetailTemplate let-dataItem>\n <ng-container *ngTemplateOutlet=\"detailTemplate; context: {$implicit: dataItem}\"></ng-container>\n </ng-template>\n\n <kendo-grid-column *ngIf=\"customExpandRowColumn\" [width]=\"expandRowColumnWidth\" class=\"grid-column\">\n <ng-template kendoGridCellTemplate let-dataItem let-rowIndex=\"rowIndex\">\n <kendo-button *ngIf=\"!expandRowIndex.includes(rowIndex)\" [svgIcon]=\"arrowDownIcon\" (click)=\"expandRow(rowIndex)\"\n fillMode=\"flat\" class=\"arrow-btn\">\n </kendo-button>\n <kendo-button *ngIf=\"expandRowIndex.includes(rowIndex)\" [svgIcon]=\"arrowUpIcon\" (click)=\"collapseRow(rowIndex)\"\n fillMode=\"flat\" class=\"arrow-btn\">\n </kendo-button>\n </ng-template>\n </kendo-grid-column>\n\n</kendo-grid>\n", styles: ["@font-face{font-family:Mulish;src:url(/assets/fonts/Mulish-Light.ttf);font-weight:300;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-LightItalic.ttf);font-weight:300;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Regular.ttf);font-weight:400;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Italic.ttf);font-weight:400;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Bold.ttf);font-weight:700;font-style:normal}::ng-deep .k-menu-group .k-item.k-focus>.k-link{box-shadow:none}::ng-deep .k-grid tr{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.8px}::ng-deep .k-grid tr:hover{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.8px}::ng-deep .k-grid-norecords{text-align:left;opacity:.4}::ng-deep .k-grid-norecords td{padding:14px 0 14px 24px!important}::ng-deep .k-column-title{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:16px;line-height:24px;letter-spacing:.2px}::ng-deep .k-grid .k-hierarchy-cell{width:0;display:none}::ng-deep .k-grid th.k-header{border-width:0}::ng-deep .kebab-column,::ng-deep .delete-column,::ng-deep .grid-column,::ng-deep .checkbox-column{border-left:hidden!important}::ng-deep .checkbox-column{padding:.75rem 0rem .5rem 1rem!important}::ng-deep .k-grid .k-hierarchy-col{width:0;display:none}::ng-deep .k-grid .k-detail-row .k-detail-cell{padding:16px 8px 8px 16px}::ng-deep .k-grid th.k-header input.k-checkbox{margin-left:.5rem}::ng-deep .arrow-btn{padding:.5rem!important}::ng-deep .trash-icon path{color:#dc267f!important}::ng-deep kendo-tooltip.k-tooltip{background-color:#fff;color:#000}::ng-deep .delete-column{padding:8px 0}::ng-deep .k-grid-header{border-bottom-width:0px}\n"], dependencies: [{ kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2$2.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: i2$2.DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: ["arrowIcon", "icon", "svgIcon", "iconClass", "imageUrl", "textField", "data", "size", "rounded", "fillMode", "themeColor", "buttonAttributes"], outputs: ["itemClick", "focus", "blur"], exportAs: ["kendoDropDownButton"] }, { kind: "component", type: i4$1.GridComponent, selector: "kendo-grid", inputs: ["data", "pageSize", "height", "rowHeight", "detailRowHeight", "skip", "scrollable", "selectable", "sort", "size", "trackBy", "filter", "group", "virtualColumns", "filterable", "sortable", "pageable", "groupable", "rowReorderable", "navigable", "navigatable", "autoSize", "rowClass", "rowSticky", "rowSelected", "cellSelected", "resizable", "reorderable", "loading", "columnMenu", "hideHeader", "isDetailExpanded", "isGroupExpanded"], outputs: ["filterChange", "pageChange", "groupChange", "sortChange", "selectionChange", "rowReorder", "dataStateChange", "groupExpand", "groupCollapse", "detailExpand", "detailCollapse", "edit", "cancel", "save", "remove", "add", "cellClose", "cellClick", "pdfExport", "excelExport", "columnResize", "columnReorder", "columnVisibilityChange", "columnLockedChange", "columnStickyChange", "scrollBottom", "contentScroll"], exportAs: ["kendoGrid"] }, { kind: "directive", type: i4$1.ToolbarTemplateDirective, selector: "[kendoGridToolbarTemplate]", inputs: ["position"] }, { kind: "directive", type: i4$1.DataBindingDirective, selector: "[kendoGridBinding]", inputs: ["skip", "sort", "filter", "pageSize", "group", "kendoGridBinding"] }, { kind: "directive", type: i4$1.SelectionDirective, selector: "[kendoGridSelectBy]" }, { kind: "component", type: i4$1.ColumnComponent, selector: "kendo-grid-column", inputs: ["field", "format", "sortable", "groupable", "editor", "filter", "filterable", "editable"] }, { kind: "directive", type: i4$1.DetailTemplateDirective, selector: "[kendoGridDetailTemplate]", inputs: ["kendoGridDetailTemplateShowIf"] }, { kind: "component", type: i4$1.CheckboxColumnComponent, selector: "kendo-grid-checkbox-column", inputs: ["showSelectAll"] }, { kind: "directive", type: i4$1.CellTemplateDirective, selector: "[kendoGridCellTemplate]" }, { kind: "directive", type: i4$1.NoRecordsTemplateDirective, selector: "[kendoGridNoRecordsTemplate]" }, { kind: "component", type: TooltipComponent, selector: "lib-tooltip", inputs: ["position", "tooltipWidth", "tooltipHeight", "showOn", "closable", "title", "callout"] }, { kind: "component", type: TypographyComponent, selector: "lib-typography", inputs: ["type", "defaultText", "isLabel", "hiddenLabel"] }] }); }
|
|
3155
|
+
}
|
|
3156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LibGridComponent, decorators: [{
|
|
3157
|
+
type: Component,
|
|
3158
|
+
args: [{ selector: 'lib-grid', template: "<kendo-grid [kendoGridBinding]=\"gridData\" [pageSize]=\"pageSize\" [selectable]=\"selectableSettings\" [pageable]=\"pageable\"\n [sortable]=\"sortable\" [groupable]=\"groupable\" [reorderable]=\"reorderable\" [resizable]=\"resizable\"\n [columnMenu]=\"columnMenu\" [navigable]=\"navigable\" [height]=\"height\" (change)=\"setSelectableSettings()\"\n (selectionChange)=\"onSelectionChange($event)\" [kendoGridSelectBy]=\"gridRowSelectByValue\"\n (detailExpand)=\"onDetailExpand($event)\" [selectedKeys]=\"preSelected\" (cellClick)=\"cellClickHandler($event)\">\n\n <ng-template *ngIf=\"showToolbar\" kendoGridToolbarTemplate>\n <ng-content></ng-content>\n </ng-template>\n\n <ng-template *ngIf=\"this.gridData.length === 0\" kendoGridNoRecordsTemplate>\n <lib-typography [defaultText]=\"noRecordsContent\" type=\"P_MULISH_16_REGULAR\"></lib-typography>\n </ng-template>\n\n <ng-container *ngIf=\"gridData.length > 0\">\n <kendo-grid-checkbox-column *ngIf=\"checkBoxRequired === true\" [width]=\"checkBoxWidth\"\n [resizable]=\"checkBoxColumnResizable\" [columnMenu]=\"checkBoxColumnMenu\"\n [showSelectAll]=\"checkBoxColumnShowSelectedAll\" class=\"checkbox-column\">\n </kendo-grid-checkbox-column>\n\n <kendo-grid-column *ngFor=\"let item of columnData\" [field]=\"item.field\" [title]=\"item.title\"\n [width]=\"item.columnWidth\" class=\"grid-column\">\n <ng-template *ngIf=\"item.custom\" kendoGridCellTemplate let-dataItem>\n <ng-container *ngTemplateOutlet=\"templateRef; context: {$implicit: dataItem}\"></ng-container>\n </ng-template>\n <ng-template *ngIf=\"item.impact\" kendoGridCellTemplate let-dataItem>\n <ng-container *ngTemplateOutlet=\"impactColumn; context: {$implicit: dataItem}\"></ng-container>\n </ng-template>\n </kendo-grid-column>\n\n <kendo-grid-column *ngIf=\"showDeleteColumn\" [width]=\"deleteColumnWidth\" class=\"delete-column\">\n <ng-template kendoGridCellTemplate let-dataItem let-rowIndex=\"rowIndex\">\n <lib-tooltip showOn=\"hover\" position=\"bottom\" class=\"remove-tooltip\">\n <kendo-button [svgIcon]=\"deleteIcon\" title=\"delete\" fillMode=\"clear\" (click)=\"onDelete(dataItem)\"\n class=\"trash-icon\"></kendo-button>\n <div class=\"tooltip-content\">\n <p>Remove</p>\n </div>\n </lib-tooltip>\n </ng-template>\n </kendo-grid-column>\n\n <kendo-grid-column [width]=\"kebabColumnWidth\" class=\"kebab-column\" *ngIf=\"showKebab\">\n <ng-template kendoGridCellTemplate let-dataItem let-rowIndex=\"rowIndex\">\n <kendo-dropdownbutton [svgIcon]=\"icon\" fillMode=\"clear\" [data]=\"kebabList\" class=\"kebab\"\n (itemClick)=\"onKebabClick($event, dataItem)\"\n [popupSettings]=\"{ align: 'right', animate: true, popupClass: 'kebab-list' }\"></kendo-dropdownbutton>\n </ng-template>\n </kendo-grid-column>\n </ng-container>\n\n <ng-template kendoGridDetailTemplate let-dataItem>\n <ng-container *ngTemplateOutlet=\"detailTemplate; context: {$implicit: dataItem}\"></ng-container>\n </ng-template>\n\n <kendo-grid-column *ngIf=\"customExpandRowColumn\" [width]=\"expandRowColumnWidth\" class=\"grid-column\">\n <ng-template kendoGridCellTemplate let-dataItem let-rowIndex=\"rowIndex\">\n <kendo-button *ngIf=\"!expandRowIndex.includes(rowIndex)\" [svgIcon]=\"arrowDownIcon\" (click)=\"expandRow(rowIndex)\"\n fillMode=\"flat\" class=\"arrow-btn\">\n </kendo-button>\n <kendo-button *ngIf=\"expandRowIndex.includes(rowIndex)\" [svgIcon]=\"arrowUpIcon\" (click)=\"collapseRow(rowIndex)\"\n fillMode=\"flat\" class=\"arrow-btn\">\n </kendo-button>\n </ng-template>\n </kendo-grid-column>\n\n</kendo-grid>\n", styles: ["@font-face{font-family:Mulish;src:url(/assets/fonts/Mulish-Light.ttf);font-weight:300;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-LightItalic.ttf);font-weight:300;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Regular.ttf);font-weight:400;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Italic.ttf);font-weight:400;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Bold.ttf);font-weight:700;font-style:normal}::ng-deep .k-menu-group .k-item.k-focus>.k-link{box-shadow:none}::ng-deep .k-grid tr{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.8px}::ng-deep .k-grid tr:hover{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.8px}::ng-deep .k-grid-norecords{text-align:left;opacity:.4}::ng-deep .k-grid-norecords td{padding:14px 0 14px 24px!important}::ng-deep .k-column-title{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:16px;line-height:24px;letter-spacing:.2px}::ng-deep .k-grid .k-hierarchy-cell{width:0;display:none}::ng-deep .k-grid th.k-header{border-width:0}::ng-deep .kebab-column,::ng-deep .delete-column,::ng-deep .grid-column,::ng-deep .checkbox-column{border-left:hidden!important}::ng-deep .checkbox-column{padding:.75rem 0rem .5rem 1rem!important}::ng-deep .k-grid .k-hierarchy-col{width:0;display:none}::ng-deep .k-grid .k-detail-row .k-detail-cell{padding:16px 8px 8px 16px}::ng-deep .k-grid th.k-header input.k-checkbox{margin-left:.5rem}::ng-deep .arrow-btn{padding:.5rem!important}::ng-deep .trash-icon path{color:#dc267f!important}::ng-deep kendo-tooltip.k-tooltip{background-color:#fff;color:#000}::ng-deep .delete-column{padding:8px 0}::ng-deep .k-grid-header{border-bottom-width:0px}\n"] }]
|
|
3159
|
+
}], ctorParameters: function () { return []; }, propDecorators: { templateRef: [{
|
|
3160
|
+
type: ContentChild,
|
|
3161
|
+
args: ['multiColumnData']
|
|
3162
|
+
}], detailTemplate: [{
|
|
3163
|
+
type: ContentChild,
|
|
3164
|
+
args: ['detailTemplate']
|
|
3165
|
+
}], impactColumn: [{
|
|
3166
|
+
type: ContentChild,
|
|
3167
|
+
args: ['impactColumn']
|
|
3168
|
+
}], grid: [{
|
|
3169
|
+
type: ViewChild,
|
|
3170
|
+
args: [GridComponent]
|
|
3171
|
+
}], gridData: [{
|
|
3172
|
+
type: Input
|
|
3173
|
+
}], columnData: [{
|
|
3174
|
+
type: Input
|
|
3175
|
+
}], pageSize: [{
|
|
3176
|
+
type: Input
|
|
3177
|
+
}], pageable: [{
|
|
3178
|
+
type: Input
|
|
3179
|
+
}], sortable: [{
|
|
3180
|
+
type: Input
|
|
3181
|
+
}], groupable: [{
|
|
3182
|
+
type: Input
|
|
3183
|
+
}], reorderable: [{
|
|
3184
|
+
type: Input
|
|
3185
|
+
}], resizable: [{
|
|
3186
|
+
type: Input
|
|
3187
|
+
}], checkBoxWidth: [{
|
|
3188
|
+
type: Input
|
|
3189
|
+
}], checkBoxColumnResizable: [{
|
|
3190
|
+
type: Input
|
|
3191
|
+
}], checkBoxColumnMenu: [{
|
|
3192
|
+
type: Input
|
|
3193
|
+
}], checkBoxColumnShowSelectedAll: [{
|
|
3194
|
+
type: Input
|
|
3195
|
+
}], checkBoxRequired: [{
|
|
3196
|
+
type: Input
|
|
3197
|
+
}], columnMenu: [{
|
|
3198
|
+
type: Input
|
|
3199
|
+
}], mode: [{
|
|
3200
|
+
type: Input
|
|
3201
|
+
}], checkboxOnly: [{
|
|
3202
|
+
type: Input
|
|
3203
|
+
}], dragColumns: [{
|
|
3204
|
+
type: Input
|
|
3205
|
+
}], navigable: [{
|
|
3206
|
+
type: Input
|
|
3207
|
+
}], height: [{
|
|
3208
|
+
type: Input
|
|
3209
|
+
}], gridRowSelectByValue: [{
|
|
3210
|
+
type: Input
|
|
3211
|
+
}], noRecordsContent: [{
|
|
3212
|
+
type: Input
|
|
3213
|
+
}], selectedRowData: [{
|
|
3214
|
+
type: Output
|
|
3215
|
+
}], showToolbar: [{
|
|
3216
|
+
type: Input
|
|
3217
|
+
}], kebabList: [{
|
|
3218
|
+
type: Input
|
|
3219
|
+
}], showKebab: [{
|
|
3220
|
+
type: Input
|
|
3221
|
+
}], rowDetails: [{
|
|
3222
|
+
type: Output
|
|
3223
|
+
}], kebabItemClick: [{
|
|
3224
|
+
type: Output
|
|
3225
|
+
}], icon: [{
|
|
3226
|
+
type: Input
|
|
3227
|
+
}], kebabColumnWidth: [{
|
|
3228
|
+
type: Input
|
|
3229
|
+
}], rowDataOfClickedCell: [{
|
|
3230
|
+
type: Output
|
|
3231
|
+
}], preSelected: [{
|
|
3232
|
+
type: Input
|
|
3233
|
+
}], ignoreColumnCellClick: [{
|
|
3234
|
+
type: Input
|
|
3235
|
+
}], allowColumnClick: [{
|
|
3236
|
+
type: Input
|
|
3237
|
+
}], expandRowIndex: [{
|
|
3238
|
+
type: Input
|
|
3239
|
+
}], customExpandRowColumn: [{
|
|
3240
|
+
type: Input
|
|
3241
|
+
}], deleteColumnWidth: [{
|
|
3242
|
+
type: Input
|
|
3243
|
+
}], expandRowColumnWidth: [{
|
|
3244
|
+
type: Input
|
|
3245
|
+
}], deletedRowData: [{
|
|
3246
|
+
type: Output
|
|
3247
|
+
}], expandRows: [{
|
|
3248
|
+
type: Input
|
|
3249
|
+
}], showDeleteColumn: [{
|
|
3250
|
+
type: Input
|
|
3251
|
+
}] } });
|
|
3252
|
+
|
|
3253
|
+
class GridSpacerComponent {
|
|
3254
|
+
constructor() { }
|
|
3255
|
+
ngOnInit() {
|
|
3256
|
+
}
|
|
3257
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridSpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3258
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GridSpacerComponent, selector: "lib-grid-spacer", ngImport: i0, template: "<kendo-grid-spacer></kendo-grid-spacer>\n", styles: [":host{flex:1 0 auto}\n"], dependencies: [{ kind: "component", type: i4$1.GridSpacerComponent, selector: "kendo-grid-spacer, kendo-pager-spacer", inputs: ["width"] }] }); }
|
|
3259
|
+
}
|
|
3260
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridSpacerComponent, decorators: [{
|
|
3261
|
+
type: Component,
|
|
3262
|
+
args: [{ selector: 'lib-grid-spacer', template: "<kendo-grid-spacer></kendo-grid-spacer>\n", styles: [":host{flex:1 0 auto}\n"] }]
|
|
3263
|
+
}], ctorParameters: function () { return []; } });
|
|
3264
|
+
|
|
3265
|
+
const createFormGroup = (controls) => {
|
|
3266
|
+
const form = new FormGroup({});
|
|
3267
|
+
for (let controlName of Object.keys(controls)) {
|
|
3268
|
+
form.addControl(controlName, new FormControl(controls[controlName], Validators.required));
|
|
3269
|
+
}
|
|
3270
|
+
return form;
|
|
3271
|
+
};
|
|
3272
|
+
class GridFormComponent {
|
|
3273
|
+
constructor(renderer) {
|
|
3274
|
+
this.renderer = renderer;
|
|
3275
|
+
this.showToolbar = false;
|
|
3276
|
+
this.noRecordsContent = 'No tags added yet';
|
|
3277
|
+
this.showColumns = false;
|
|
3278
|
+
this.gridData = [];
|
|
3279
|
+
this.columnData = [];
|
|
3280
|
+
this.controls = {};
|
|
3281
|
+
this.addOrUpdateRow = new EventEmitter();
|
|
3282
|
+
this.deletedRow = new EventEmitter();
|
|
3283
|
+
this.removeRow = new EventEmitter();
|
|
3284
|
+
this.saveRow = new EventEmitter();
|
|
3285
|
+
}
|
|
3286
|
+
ngOnInit() {
|
|
3287
|
+
}
|
|
3288
|
+
onStateChange(state) {
|
|
3289
|
+
console.log('onStateChange: ', state);
|
|
3290
|
+
}
|
|
3291
|
+
addHandler(args) {
|
|
3292
|
+
this.showColumns = true;
|
|
3293
|
+
this.closeEditor(args.sender);
|
|
3294
|
+
// define all editable fields validators and default values
|
|
3295
|
+
this.formGroup = createFormGroup(this.controls);
|
|
3296
|
+
;
|
|
3297
|
+
// show the new row editor, with the `FormGroup` build above
|
|
3298
|
+
args.sender.addRow(this.formGroup);
|
|
3299
|
+
}
|
|
3300
|
+
editHandler(args) {
|
|
3301
|
+
// define all editable fields validators and default values
|
|
3302
|
+
const { dataItem } = args;
|
|
3303
|
+
this.closeEditor(args.sender);
|
|
3304
|
+
this.formGroup = createFormGroup(dataItem);
|
|
3305
|
+
this.editedRowIndex = args.rowIndex;
|
|
3306
|
+
// put the row in edit mode, with the `FormGroup` build above
|
|
3307
|
+
args.sender.editRow(args.rowIndex, this.formGroup);
|
|
3308
|
+
}
|
|
3309
|
+
cancelHandler(args) {
|
|
3310
|
+
// close the editor for the given row
|
|
3311
|
+
this.closeEditor(args.sender, args.rowIndex);
|
|
3312
|
+
if (this.gridData.length === 0) {
|
|
3313
|
+
this.showColumns = false;
|
|
3314
|
+
}
|
|
3315
|
+
}
|
|
3316
|
+
saveHandler({ sender, rowIndex, formGroup, isNew }) {
|
|
3317
|
+
this.saveRow.emit({ rowData: formGroup.value, isNew });
|
|
3318
|
+
// Close the editor for a given row
|
|
3319
|
+
sender.closeRow(rowIndex);
|
|
3320
|
+
}
|
|
3321
|
+
removeHandler(args) {
|
|
3322
|
+
// remove the current dataItem from the current data source,
|
|
3323
|
+
this.removeRow.emit(args.dataItem);
|
|
3324
|
+
if (this.gridData.length === 0) {
|
|
3325
|
+
this.showColumns = false;
|
|
3326
|
+
}
|
|
3327
|
+
}
|
|
3328
|
+
closeEditor(grid, rowIndex = this.editedRowIndex) {
|
|
3329
|
+
// close the editor
|
|
3330
|
+
grid.closeRow(rowIndex);
|
|
3331
|
+
// reset the helpers
|
|
3332
|
+
this.editedRowIndex = undefined;
|
|
3333
|
+
this.formGroup = undefined;
|
|
3334
|
+
}
|
|
3335
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridFormComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3336
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GridFormComponent, selector: "lib-grid-form", inputs: { showToolbar: "showToolbar", noRecordsContent: "noRecordsContent", gridData: "gridData", columnData: "columnData", controls: "controls" }, outputs: { addOrUpdateRow: "addOrUpdateRow", deletedRow: "deletedRow", removeRow: "removeRow", saveRow: "saveRow" }, queries: [{ propertyName: "templateRef1", first: true, predicate: ["tmp1"], descendants: true }, { propertyName: "templateRef2", first: true, predicate: ["tmp2"], descendants: true }], ngImport: i0, template: "<kendo-grid [kendoGridBinding]=\"gridData\" (dataStateChange)=\"onStateChange($event)\" (edit)=\"editHandler($event)\"\n (cancel)=\"cancelHandler($event)\" (save)=\"saveHandler($event)\" (remove)=\"removeHandler($event)\"\n (add)=\"addHandler($event)\" [navigable]=\"true\">\n <ng-template kendoGridToolbarTemplate>\n <ng-content select=\"header\"></ng-content>\n <lib-grid-spacer></lib-grid-spacer>\n <button kendoGridAddCommand themeColor=\"primary\">\n <ng-content select=\"div.header-add-btn\"></ng-content>\n </button>\n </ng-template>\n <ng-template *ngIf=\"!showColumns\" kendoGridNoRecordsTemplate>\n <lib-typography [defaultText]=\"noRecordsContent\" type=\"P_MULISH_16_REGULAR\"></lib-typography>\n </ng-template>\n <ng-container *ngIf=\"showColumns\">\n <kendo-grid-column *ngFor=\"let item of columnData\" [field]=\"item.field\" [title]=\"item.title\" [editor]=\"item.editor\">\n <ng-template *ngIf=\"item.custom\" kendoGridEditTemplate let-dataItem=\"dataItem\" let-formGroup=\"formGroup\">\n <ng-container\n *ngTemplateOutlet=\"templateRef1; context: {$implicit: dataItem, formGroup: formGroup}\"></ng-container>\n </ng-template>\n <ng-template *ngIf=\"item.custom\" kendoGridCellTemplate let-dataItem>\n <ng-container *ngTemplateOutlet=\"templateRef2; context: {$implicit: dataItem}\"></ng-container>\n </ng-template>\n </kendo-grid-column>\n <kendo-grid-command-column [width]=\"120\">\n <ng-template kendoGridCellTemplate let-isNew=\"isNew\">\n <div class=\"command-column\">\n <lib-tooltip position=\"top\" showOn=\"hover\">\n <div class=\"tooltip-content\">Edit</div>\n <button kendoGridEditCommand fillMode=\"clear\" themeColor=\"primary\">\n <kendo-icon name=\"pencil\"></kendo-icon>\n </button>\n </lib-tooltip>\n <lib-tooltip position=\"top\" showOn=\"hover\">\n <div class=\"tooltip-content\">Remove</div>\n <button kendoGridRemoveCommand fillMode=\"clear\" themeColor=\"error\">\n <kendo-icon name=\"trash\"></kendo-icon>\n </button>\n </lib-tooltip>\n </div>\n <div class=\"command-column\">\n <button kendoGridSaveCommand [disabled]=\"formGroup && formGroup.invalid\" fillMode=\"clear\" themeColor=\"primary\">\n <lib-tooltip position=\"top\" showOn=\"hover\">\n <div class=\"tooltip-content\">Save</div>\n <kendo-icon name=\"save\"></kendo-icon>\n </lib-tooltip>\n </button>\n <button kendoGridCancelCommand fillMode=\"clear\" themeColor=\"error\">\n <lib-tooltip position=\"top\" showOn=\"hover\">\n <div class=\"tooltip-content\">Cancel</div>\n <lib-icon name=\"close\" [fontSize]=\"20\"></lib-icon>\n </lib-tooltip>\n </button>\n </div>\n </ng-template>\n </kendo-grid-command-column>\n </ng-container>\n</kendo-grid>\n", styles: [".command-column{display:flex;justify-content:space-between}::ng-deep .k-grid-header{border-bottom-width:0px}\n"], dependencies: [{ kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconComponent, selector: "lib-icon", inputs: ["name", "fontSize", "type"] }, { kind: "component", type: i3$3.IconComponent, selector: "kendo-icon", inputs: ["name"], exportAs: ["kendoIcon"] }, { kind: "component", type: i4$1.GridComponent, selector: "kendo-grid", inputs: ["data", "pageSize", "height", "rowHeight", "detailRowHeight", "skip", "scrollable", "selectable", "sort", "size", "trackBy", "filter", "group", "virtualColumns", "filterable", "sortable", "pageable", "groupable", "rowReorderable", "navigable", "navigatable", "autoSize", "rowClass", "rowSticky", "rowSelected", "cellSelected", "resizable", "reorderable", "loading", "columnMenu", "hideHeader", "isDetailExpanded", "isGroupExpanded"], outputs: ["filterChange", "pageChange", "groupChange", "sortChange", "selectionChange", "rowReorder", "dataStateChange", "groupExpand", "groupCollapse", "detailExpand", "detailCollapse", "edit", "cancel", "save", "remove", "add", "cellClose", "cellClick", "pdfExport", "excelExport", "columnResize", "columnReorder", "columnVisibilityChange", "columnLockedChange", "columnStickyChange", "scrollBottom", "contentScroll"], exportAs: ["kendoGrid"] }, { kind: "directive", type: i4$1.ToolbarTemplateDirective, selector: "[kendoGridToolbarTemplate]", inputs: ["position"] }, { kind: "directive", type: i4$1.DataBindingDirective, selector: "[kendoGridBinding]", inputs: ["skip", "sort", "filter", "pageSize", "group", "kendoGridBinding"] }, { kind: "directive", type: i4$1.GridToolbarFocusableDirective, selector: " [kendoGridToolbarFocusable], [kendoGridAddCommand], [kendoGridCancelCommand], [kendoGridEditCommand], [kendoGridRemoveCommand], [kendoGridSaveCommand], [kendoGridExcelCommand], [kendoGridPDFCommand] " }, { kind: "component", type: i4$1.ColumnComponent, selector: "kendo-grid-column", inputs: ["field", "format", "sortable", "groupable", "editor", "filter", "filterable", "editable"] }, { kind: "directive", type: i4$1.FocusableDirective, selector: "[kendoGridFocusable], [kendoGridEditCommand], [kendoGridRemoveCommand], [kendoGridSaveCommand], [kendoGridCancelCommand], [kendoGridSelectionCheckbox] ", inputs: ["kendoGridFocusable"] }, { kind: "component", type: i4$1.CommandColumnComponent, selector: "kendo-grid-command-column" }, { kind: "directive", type: i4$1.CellTemplateDirective, selector: "[kendoGridCellTemplate]" }, { kind: "directive", type: i4$1.NoRecordsTemplateDirective, selector: "[kendoGridNoRecordsTemplate]" }, { kind: "directive", type: i4$1.EditTemplateDirective, selector: "[kendoGridEditTemplate]" }, { kind: "component", type: i4$1.EditCommandDirective, selector: "[kendoGridEditCommand]" }, { kind: "component", type: i4$1.CancelCommandDirective, selector: "[kendoGridCancelCommand]" }, { kind: "component", type: i4$1.SaveCommandDirective, selector: "[kendoGridSaveCommand]" }, { kind: "component", type: i4$1.RemoveCommandDirective, selector: "[kendoGridRemoveCommand]" }, { kind: "component", type: i4$1.AddCommandDirective, selector: "[kendoGridAddCommand]" }, { kind: "component", type: TooltipComponent, selector: "lib-tooltip", inputs: ["position", "tooltipWidth", "tooltipHeight", "showOn", "closable", "title", "callout"] }, { kind: "component", type: TypographyComponent, selector: "lib-typography", inputs: ["type", "defaultText", "isLabel", "hiddenLabel"] }, { kind: "component", type: GridSpacerComponent, selector: "lib-grid-spacer" }] }); }
|
|
3337
|
+
}
|
|
3338
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridFormComponent, decorators: [{
|
|
3339
|
+
type: Component,
|
|
3340
|
+
args: [{ selector: 'lib-grid-form', template: "<kendo-grid [kendoGridBinding]=\"gridData\" (dataStateChange)=\"onStateChange($event)\" (edit)=\"editHandler($event)\"\n (cancel)=\"cancelHandler($event)\" (save)=\"saveHandler($event)\" (remove)=\"removeHandler($event)\"\n (add)=\"addHandler($event)\" [navigable]=\"true\">\n <ng-template kendoGridToolbarTemplate>\n <ng-content select=\"header\"></ng-content>\n <lib-grid-spacer></lib-grid-spacer>\n <button kendoGridAddCommand themeColor=\"primary\">\n <ng-content select=\"div.header-add-btn\"></ng-content>\n </button>\n </ng-template>\n <ng-template *ngIf=\"!showColumns\" kendoGridNoRecordsTemplate>\n <lib-typography [defaultText]=\"noRecordsContent\" type=\"P_MULISH_16_REGULAR\"></lib-typography>\n </ng-template>\n <ng-container *ngIf=\"showColumns\">\n <kendo-grid-column *ngFor=\"let item of columnData\" [field]=\"item.field\" [title]=\"item.title\" [editor]=\"item.editor\">\n <ng-template *ngIf=\"item.custom\" kendoGridEditTemplate let-dataItem=\"dataItem\" let-formGroup=\"formGroup\">\n <ng-container\n *ngTemplateOutlet=\"templateRef1; context: {$implicit: dataItem, formGroup: formGroup}\"></ng-container>\n </ng-template>\n <ng-template *ngIf=\"item.custom\" kendoGridCellTemplate let-dataItem>\n <ng-container *ngTemplateOutlet=\"templateRef2; context: {$implicit: dataItem}\"></ng-container>\n </ng-template>\n </kendo-grid-column>\n <kendo-grid-command-column [width]=\"120\">\n <ng-template kendoGridCellTemplate let-isNew=\"isNew\">\n <div class=\"command-column\">\n <lib-tooltip position=\"top\" showOn=\"hover\">\n <div class=\"tooltip-content\">Edit</div>\n <button kendoGridEditCommand fillMode=\"clear\" themeColor=\"primary\">\n <kendo-icon name=\"pencil\"></kendo-icon>\n </button>\n </lib-tooltip>\n <lib-tooltip position=\"top\" showOn=\"hover\">\n <div class=\"tooltip-content\">Remove</div>\n <button kendoGridRemoveCommand fillMode=\"clear\" themeColor=\"error\">\n <kendo-icon name=\"trash\"></kendo-icon>\n </button>\n </lib-tooltip>\n </div>\n <div class=\"command-column\">\n <button kendoGridSaveCommand [disabled]=\"formGroup && formGroup.invalid\" fillMode=\"clear\" themeColor=\"primary\">\n <lib-tooltip position=\"top\" showOn=\"hover\">\n <div class=\"tooltip-content\">Save</div>\n <kendo-icon name=\"save\"></kendo-icon>\n </lib-tooltip>\n </button>\n <button kendoGridCancelCommand fillMode=\"clear\" themeColor=\"error\">\n <lib-tooltip position=\"top\" showOn=\"hover\">\n <div class=\"tooltip-content\">Cancel</div>\n <lib-icon name=\"close\" [fontSize]=\"20\"></lib-icon>\n </lib-tooltip>\n </button>\n </div>\n </ng-template>\n </kendo-grid-command-column>\n </ng-container>\n</kendo-grid>\n", styles: [".command-column{display:flex;justify-content:space-between}::ng-deep .k-grid-header{border-bottom-width:0px}\n"] }]
|
|
3341
|
+
}], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { showToolbar: [{
|
|
3342
|
+
type: Input
|
|
3343
|
+
}], noRecordsContent: [{
|
|
3344
|
+
type: Input
|
|
3345
|
+
}], templateRef1: [{
|
|
3346
|
+
type: ContentChild,
|
|
3347
|
+
args: ['tmp1']
|
|
3348
|
+
}], templateRef2: [{
|
|
3349
|
+
type: ContentChild,
|
|
3350
|
+
args: ['tmp2']
|
|
3351
|
+
}], gridData: [{
|
|
3352
|
+
type: Input
|
|
3353
|
+
}], columnData: [{
|
|
3354
|
+
type: Input
|
|
3355
|
+
}], controls: [{
|
|
3356
|
+
type: Input
|
|
3357
|
+
}], addOrUpdateRow: [{
|
|
3358
|
+
type: Output
|
|
3359
|
+
}], deletedRow: [{
|
|
3360
|
+
type: Output
|
|
3361
|
+
}], removeRow: [{
|
|
3362
|
+
type: Output
|
|
3363
|
+
}], saveRow: [{
|
|
3364
|
+
type: Output
|
|
3365
|
+
}] } });
|
|
3366
|
+
|
|
3367
|
+
class GridsModule {
|
|
3368
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3369
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GridsModule, declarations: [LibGridComponent, GridSpacerComponent, GridFormComponent], imports: [CommonModule,
|
|
3370
|
+
ButtonsModule,
|
|
3371
|
+
IconModule,
|
|
3372
|
+
IconsModule,
|
|
3373
|
+
InputsModule,
|
|
3374
|
+
GridModule,
|
|
3375
|
+
DialogModule$1,
|
|
3376
|
+
FormsModule,
|
|
3377
|
+
TooltipModule,
|
|
3378
|
+
ReactiveFormsModule,
|
|
3379
|
+
TypographyModule], exports: [LibGridComponent, GridSpacerComponent, GridFormComponent] }); }
|
|
3380
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridsModule, imports: [CommonModule,
|
|
3381
|
+
ButtonsModule,
|
|
3382
|
+
IconModule,
|
|
3383
|
+
IconsModule,
|
|
3384
|
+
InputsModule,
|
|
3385
|
+
GridModule,
|
|
3386
|
+
DialogModule$1,
|
|
3387
|
+
FormsModule,
|
|
3388
|
+
TooltipModule,
|
|
3389
|
+
ReactiveFormsModule,
|
|
3390
|
+
TypographyModule] }); }
|
|
3391
|
+
}
|
|
3392
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridsModule, decorators: [{
|
|
3393
|
+
type: NgModule,
|
|
3394
|
+
args: [{
|
|
3395
|
+
declarations: [LibGridComponent, GridSpacerComponent, GridFormComponent],
|
|
3396
|
+
imports: [
|
|
3397
|
+
CommonModule,
|
|
3398
|
+
ButtonsModule,
|
|
3399
|
+
IconModule,
|
|
3400
|
+
IconsModule,
|
|
3401
|
+
InputsModule,
|
|
3402
|
+
GridModule,
|
|
3403
|
+
DialogModule$1,
|
|
3404
|
+
FormsModule,
|
|
3405
|
+
TooltipModule,
|
|
3406
|
+
ReactiveFormsModule,
|
|
3407
|
+
TypographyModule
|
|
3408
|
+
],
|
|
3409
|
+
exports: [LibGridComponent, GridSpacerComponent, GridFormComponent],
|
|
3410
|
+
}]
|
|
3411
|
+
}] });
|
|
3412
|
+
|
|
3413
|
+
class KebabMenuFilterPipe {
|
|
3414
|
+
transform(menu, ...args) {
|
|
3415
|
+
const dataItem = args[0];
|
|
3416
|
+
if (Array.isArray(menu)) {
|
|
3417
|
+
return menu.filter((kebabItem) => {
|
|
3418
|
+
return kebabItem?.isVisible ? kebabItem.isVisible(dataItem) : true;
|
|
3419
|
+
});
|
|
3420
|
+
}
|
|
3421
|
+
return [];
|
|
3422
|
+
}
|
|
3423
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: KebabMenuFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3424
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: KebabMenuFilterPipe, name: "kebabMenuFilter" }); }
|
|
3425
|
+
}
|
|
3426
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: KebabMenuFilterPipe, decorators: [{
|
|
3427
|
+
type: Pipe,
|
|
3428
|
+
args: [{
|
|
3429
|
+
name: "kebabMenuFilter"
|
|
3430
|
+
}]
|
|
3431
|
+
}] });
|
|
3432
|
+
|
|
3433
|
+
class GridPaginationComponent {
|
|
3434
|
+
constructor() {
|
|
3435
|
+
this.gridView = { data: [], total: 0 };
|
|
3436
|
+
this.skip = 0;
|
|
3437
|
+
this.columnData = [];
|
|
3438
|
+
this.pageSize = 0;
|
|
3439
|
+
this.pageable = false;
|
|
3440
|
+
this.sortable = false;
|
|
3441
|
+
this.groupable = false;
|
|
3442
|
+
this.reorderable = false;
|
|
3443
|
+
this.resizable = false;
|
|
3444
|
+
this.checkBoxWidth = 45;
|
|
3445
|
+
this.checkBoxColumnResizable = false;
|
|
3446
|
+
this.checkBoxColumnMenu = false;
|
|
3447
|
+
this.checkBoxColumnShowSelectedAll = true;
|
|
3448
|
+
this.checkBoxRequired = false;
|
|
3449
|
+
this.columnMenu = false;
|
|
3450
|
+
this.mode = 'multiple';
|
|
3451
|
+
this.checkboxOnly = true;
|
|
3452
|
+
this.dragColumns = false;
|
|
3453
|
+
this.navigable = true;
|
|
3454
|
+
this.gridRowSelectByValue = '';
|
|
3455
|
+
this.noRecordsContent = 'No Records Available';
|
|
3456
|
+
this.selectedRowData = new EventEmitter();
|
|
3457
|
+
this.showToolbar = false;
|
|
3458
|
+
this.selectableSettings = {};
|
|
3459
|
+
this.kebabList = [];
|
|
3460
|
+
this.showKebab = false;
|
|
3461
|
+
this.rowDetails = new EventEmitter();
|
|
3462
|
+
this.kebabItemClick = new EventEmitter();
|
|
3463
|
+
this.icon = moreVerticalIcon;
|
|
3464
|
+
this.kebabColumnWidth = 60;
|
|
3465
|
+
this.data = [];
|
|
3466
|
+
this.selectColumn = '';
|
|
3467
|
+
this.rowDataOfClickedCell = new EventEmitter();
|
|
3468
|
+
this.preSelected = [];
|
|
3469
|
+
this.preSelectedRecords = [];
|
|
3470
|
+
this.onPageChange = new EventEmitter();
|
|
3471
|
+
this.ignoreColumnCellClick = [];
|
|
3472
|
+
this.allowColumnClick = false;
|
|
3473
|
+
this.sort = [
|
|
3474
|
+
{
|
|
3475
|
+
field: '',
|
|
3476
|
+
dir: undefined,
|
|
3477
|
+
},
|
|
3478
|
+
];
|
|
3479
|
+
this.hasApiSorting = false;
|
|
3480
|
+
this.sortDirection = new EventEmitter();
|
|
3481
|
+
this.arrowDownIcon = chevronDownIcon;
|
|
3482
|
+
this.arrowUpIcon = chevronUpIcon;
|
|
3483
|
+
this.expandRowIndex = [];
|
|
3484
|
+
this.customExpandRowColumn = false;
|
|
3485
|
+
this.deleteColumnWidth = 42;
|
|
3486
|
+
this.expandRowColumnWidth = 42;
|
|
3487
|
+
this.deletedRowData = new EventEmitter();
|
|
3488
|
+
this.sizes = [];
|
|
3489
|
+
this.pageCount = 0;
|
|
3490
|
+
this.showDeleteColumn = false;
|
|
3491
|
+
this.hideKebabRowIndex = [];
|
|
3492
|
+
this.gridBottomSpace = 24;
|
|
3493
|
+
this.resizeHeight = 0;
|
|
3494
|
+
this.setSelectableSettings();
|
|
3495
|
+
}
|
|
3496
|
+
ngOnInit() {
|
|
3497
|
+
for (let column of this.columnData) {
|
|
3498
|
+
column.sortable = column.sortable == undefined ? true : column.sortable;
|
|
3499
|
+
}
|
|
3500
|
+
if (!this.hasApiSorting) {
|
|
3501
|
+
this.loadGridData();
|
|
3502
|
+
}
|
|
3503
|
+
}
|
|
3504
|
+
ngOnChanges(changes) {
|
|
3505
|
+
let prevPreSelected = JSON.stringify(changes['preSelected']?.previousValue);
|
|
3506
|
+
let currPreSelected = JSON.stringify(changes['preSelected']?.currentValue);
|
|
3507
|
+
// Check if there is a change in this.preSelected input
|
|
3508
|
+
if (prevPreSelected !== currPreSelected) {
|
|
3509
|
+
// Clear the this.preSelectedRecords array
|
|
3510
|
+
this.preSelectedRecords = [];
|
|
3511
|
+
for (let row = 0; row < changes['preSelected'].currentValue.length; row++) {
|
|
3512
|
+
for (let col = 0; col < this.gridView.data.length; col++) {
|
|
3513
|
+
// Find the relevant record for a particular id
|
|
3514
|
+
if (this.gridView.data[col][this.gridRowSelectByValue] ===
|
|
3515
|
+
changes['preSelected'].currentValue[row]) {
|
|
3516
|
+
let found = false;
|
|
3517
|
+
// Check if this record is present in this.data, if yes don't push it in this.preSelectedRecords else push it
|
|
3518
|
+
for (let index = 0; index < this.data.length; index++) {
|
|
3519
|
+
if (this.data[index][this.gridRowSelectByValue] ===
|
|
3520
|
+
this.gridView.data[col][this.gridRowSelectByValue]) {
|
|
3521
|
+
found = true;
|
|
3522
|
+
}
|
|
3523
|
+
}
|
|
3524
|
+
if (!found) {
|
|
3525
|
+
this.preSelectedRecords.push(this.gridView.data[col]);
|
|
3526
|
+
}
|
|
3527
|
+
}
|
|
3528
|
+
}
|
|
3529
|
+
}
|
|
3530
|
+
this.selectedRowData.emit(this.preSelectedRecords.concat(this.data));
|
|
3531
|
+
}
|
|
3532
|
+
}
|
|
3533
|
+
ngAfterContentInit() {
|
|
3534
|
+
if (!this.pageable) {
|
|
3535
|
+
this.pageSize = this.gridView.data.length;
|
|
3536
|
+
}
|
|
3537
|
+
}
|
|
3538
|
+
ngAfterViewInit() {
|
|
3539
|
+
if (this.customExpandRowColumn) {
|
|
3540
|
+
this.expandRowIndex.forEach((id) => {
|
|
3541
|
+
this.grid.expandRow(id);
|
|
3542
|
+
});
|
|
3543
|
+
}
|
|
3544
|
+
this.initialGridHeight = this.gridElement.nativeElement.offsetHeight + this.gridBottomSpace;
|
|
3545
|
+
this.getGridHeight();
|
|
3546
|
+
}
|
|
3547
|
+
pageChange(event) {
|
|
3548
|
+
this.onPageChange.emit(event);
|
|
3549
|
+
}
|
|
3550
|
+
setSelectableSettings() {
|
|
3551
|
+
if (this.checkboxOnly || this.mode === 'single') {
|
|
3552
|
+
this.dragColumns = false;
|
|
3553
|
+
}
|
|
3554
|
+
this.selectableSettings = {
|
|
3555
|
+
checkboxOnly: this.checkboxOnly,
|
|
3556
|
+
mode: this.mode,
|
|
3557
|
+
drag: this.dragColumns,
|
|
3558
|
+
};
|
|
3559
|
+
}
|
|
3560
|
+
// We can extract data out of row number using below function
|
|
3561
|
+
/* extract() {
|
|
3562
|
+
this.extractDataItems = this.mySelection.map(idx => {
|
|
3563
|
+
return this.gridData.find((data: { ProductID: number; }) => data.ProductID === idx);
|
|
3564
|
+
});
|
|
3565
|
+
console.log(this.extractDataItems)
|
|
3566
|
+
this.selectedRowData.emit(this.extractDataItems);
|
|
3567
|
+
} */
|
|
3568
|
+
onSelectionChange(args) {
|
|
3569
|
+
for (let row = 0; row < args.selectedRows.length; row++) {
|
|
3570
|
+
var found = false;
|
|
3571
|
+
for (let col = 0; col < this.data.length; col++) {
|
|
3572
|
+
if (this.data[col][this.gridRowSelectByValue] ===
|
|
3573
|
+
args.selectedRows[row].dataItem[this.gridRowSelectByValue]) {
|
|
3574
|
+
found = true;
|
|
3575
|
+
}
|
|
3576
|
+
}
|
|
3577
|
+
if (!found) {
|
|
3578
|
+
this.data.push(args.selectedRows[row].dataItem);
|
|
3579
|
+
}
|
|
3580
|
+
}
|
|
3581
|
+
if (args.deselectedRows.length !== 0) {
|
|
3582
|
+
for (let row = 0; row < args.deselectedRows.length; row++) {
|
|
3583
|
+
for (let col = 0; col < this.data.length; col++) {
|
|
3584
|
+
if (this.data[col][this.gridRowSelectByValue] ===
|
|
3585
|
+
args.deselectedRows[row].dataItem[this.gridRowSelectByValue]) {
|
|
3586
|
+
this.data.splice(col, 1);
|
|
3587
|
+
}
|
|
3588
|
+
}
|
|
3589
|
+
for (let col = 0; col < this.preSelectedRecords.length; col++) {
|
|
3590
|
+
if (this.preSelectedRecords[col][this.gridRowSelectByValue] ===
|
|
3591
|
+
args.deselectedRows[row].dataItem[this.gridRowSelectByValue]) {
|
|
3592
|
+
this.preSelectedRecords.splice(col, 1);
|
|
3593
|
+
// Remove this element from preselected
|
|
3594
|
+
let index = this.preSelected.indexOf(args.deselectedRows[row].dataItem[this.gridRowSelectByValue]);
|
|
3595
|
+
if (index !== -1) {
|
|
3596
|
+
this.preSelected.splice(index, 1);
|
|
3597
|
+
}
|
|
3598
|
+
}
|
|
3599
|
+
}
|
|
3600
|
+
}
|
|
3601
|
+
}
|
|
3602
|
+
this.selectedRowData.emit(this.preSelectedRecords.concat(this.data));
|
|
3603
|
+
}
|
|
3604
|
+
onKebabClick(item, rowDetails) {
|
|
3605
|
+
this.kebabItemClick.emit({ action: item, rowDetails });
|
|
3606
|
+
}
|
|
3607
|
+
onDetailExpand(rowData) {
|
|
3608
|
+
this.rowDetails.emit(rowData.dataItem);
|
|
3609
|
+
}
|
|
3610
|
+
cellClickHandler(args) {
|
|
3611
|
+
if (this.allowColumnClick) {
|
|
3612
|
+
if (this.ignoreColumnCellClick.includes(args.columnIndex)) {
|
|
3613
|
+
return;
|
|
3614
|
+
}
|
|
3615
|
+
this.rowDataOfClickedCell.emit(args.dataItem);
|
|
3616
|
+
}
|
|
3617
|
+
}
|
|
3618
|
+
sortChange(sort) {
|
|
3619
|
+
this.sort = sort;
|
|
3620
|
+
if (!this.hasApiSorting) {
|
|
3621
|
+
this.loadGridData();
|
|
3622
|
+
}
|
|
3623
|
+
this.sortDirection.emit(this.sort);
|
|
3624
|
+
}
|
|
3625
|
+
loadGridData() {
|
|
3626
|
+
this.gridView = {
|
|
3627
|
+
data: orderBy(this.gridView?.data, this.sort),
|
|
3628
|
+
total: this.gridView?.total,
|
|
3629
|
+
};
|
|
3630
|
+
}
|
|
3631
|
+
expandRow(id) {
|
|
3632
|
+
this.grid.expandRow(id);
|
|
3633
|
+
this.expandRowIndex.push(id);
|
|
3634
|
+
setTimeout(() => {
|
|
3635
|
+
this.getGridHeight();
|
|
3636
|
+
}, 0);
|
|
3637
|
+
}
|
|
3638
|
+
collapseRow(id) {
|
|
3639
|
+
this.grid.collapseRow(id);
|
|
3640
|
+
this.expandRowIndex.splice(this.expandRowIndex.indexOf(id), 1);
|
|
3641
|
+
if (this.expandRowIndex.length == 0) {
|
|
3642
|
+
const windowHeight = window.innerHeight;
|
|
3643
|
+
const viewport = document.getElementById('lib-grid');
|
|
3644
|
+
const gridOffset = viewport.getBoundingClientRect().top + window.scrollY;
|
|
3645
|
+
if (windowHeight > (gridOffset + this.initialGridHeight)) {
|
|
3646
|
+
this.height = '100%';
|
|
3647
|
+
return;
|
|
3648
|
+
}
|
|
3649
|
+
this.getGridHeight();
|
|
3650
|
+
}
|
|
3651
|
+
}
|
|
3652
|
+
onDelete(rowDetails) {
|
|
3653
|
+
this.deletedRowData.emit(rowDetails);
|
|
3654
|
+
}
|
|
3655
|
+
getHeaderHeight() {
|
|
3656
|
+
if (this.gridView?.data?.length === 0) {
|
|
3657
|
+
return 'hide-header';
|
|
3658
|
+
}
|
|
3659
|
+
return 'view-header';
|
|
3660
|
+
}
|
|
3661
|
+
getGridHeight() {
|
|
3662
|
+
const windowHeight = window.innerHeight;
|
|
3663
|
+
const viewport = document.getElementById('lib-grid');
|
|
3664
|
+
const gridOffset = viewport.getBoundingClientRect().top + window.scrollY;
|
|
3665
|
+
const gridHeight = this.gridElement.nativeElement.offsetHeight
|
|
3666
|
+
+ this.gridBottomSpace; //grid should have 24px space at bottom
|
|
3667
|
+
if (gridOffset + gridHeight >= windowHeight) {
|
|
3668
|
+
this.height = windowHeight - (gridOffset + this.gridBottomSpace);
|
|
3669
|
+
}
|
|
3670
|
+
}
|
|
3671
|
+
resize(ev) {
|
|
3672
|
+
if (ev.target.innerHeight > this.resizeHeight) {
|
|
3673
|
+
this.resizeHeight = ev.target.innerHeight;
|
|
3674
|
+
this.height = '100%';
|
|
3675
|
+
}
|
|
3676
|
+
if (this.resizeHeight > window.innerHeight) {
|
|
3677
|
+
this.resizeHeight = 0;
|
|
3678
|
+
}
|
|
3679
|
+
this.getGridHeight();
|
|
3680
|
+
}
|
|
3681
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3682
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GridPaginationComponent, selector: "lib-grid-pagination", inputs: { gridView: "gridView", skip: "skip", columnData: "columnData", pageSize: "pageSize", pageable: "pageable", sortable: "sortable", groupable: "groupable", reorderable: "reorderable", resizable: "resizable", checkBoxWidth: "checkBoxWidth", checkBoxColumnResizable: "checkBoxColumnResizable", checkBoxColumnMenu: "checkBoxColumnMenu", checkBoxColumnShowSelectedAll: "checkBoxColumnShowSelectedAll", checkBoxRequired: "checkBoxRequired", columnMenu: "columnMenu", mode: "mode", checkboxOnly: "checkboxOnly", dragColumns: "dragColumns", navigable: "navigable", gridRowSelectByValue: "gridRowSelectByValue", noRecordsContent: "noRecordsContent", showToolbar: "showToolbar", kebabList: "kebabList", showKebab: "showKebab", icon: "icon", kebabColumnWidth: "kebabColumnWidth", selectColumn: "selectColumn", preSelected: "preSelected", ignoreColumnCellClick: "ignoreColumnCellClick", allowColumnClick: "allowColumnClick", sort: "sort", hasApiSorting: "hasApiSorting", expandRowIndex: "expandRowIndex", customExpandRowColumn: "customExpandRowColumn", deleteColumnWidth: "deleteColumnWidth", expandRowColumnWidth: "expandRowColumnWidth", sizes: "sizes", pageCount: "pageCount", showDeleteColumn: "showDeleteColumn", hideKebabRowIndex: "hideKebabRowIndex" }, outputs: { selectedRowData: "selectedRowData", rowDetails: "rowDetails", kebabItemClick: "kebabItemClick", rowDataOfClickedCell: "rowDataOfClickedCell", onPageChange: "onPageChange", sortDirection: "sortDirection", deletedRowData: "deletedRowData" }, host: { listeners: { "window:resize": "resize($event)" } }, queries: [{ propertyName: "templateRef", first: true, predicate: ["multiColumnData"], descendants: true }, { propertyName: "detailTemplate", first: true, predicate: ["detailTemplate"], descendants: true }, { propertyName: "impactColumn", first: true, predicate: ["impactColumn"], descendants: true }], viewQueries: [{ propertyName: "grid", first: true, predicate: GridComponent, descendants: true }, { propertyName: "gridElement", first: true, predicate: ["gridElement"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div #gridElement (window:resize)=\"resize($event)\" >\n<kendo-grid [data]=\"gridView\" [pageSize]=\"pageSize\" [skip]=\"skip\" [selectable]=\"selectableSettings\"\n [pageable]=\"pageable\" [sortable]=\"sortable\" [groupable]=\"groupable\" [reorderable]=\"reorderable\"\n [resizable]=\"resizable\" [columnMenu]=\"columnMenu\" [navigable]=\"navigable\" [height]=\"height\" [style.height]=\"height\"\n (change)=\"setSelectableSettings()\" (selectionChange)=\"onSelectionChange($event)\"\n [kendoGridSelectBy]=\"gridRowSelectByValue\" (detailExpand)=\"onDetailExpand($event)\" [selectedKeys]=\"preSelected\"\n (pageChange)=\"pageChange($event)\" (cellClick)=\"cellClickHandler($event)\" [sort]=\"sort\"\n (sortChange)=\"sortChange($event)\" [ngClass]=\"getHeaderHeight()\" id=\"lib-grid\">\n\n <ng-template *ngIf=\"showToolbar\" kendoGridToolbarTemplate>\n <ng-content></ng-content>\n </ng-template>\n\n <ng-template *ngIf=\"this.gridView.data.length === 0\" kendoGridNoRecordsTemplate>\n <lib-typography [defaultText]=\"noRecordsContent\" type=\"P_MULISH_16_REGULAR\"></lib-typography>\n </ng-template>\n\n <ng-container *ngIf=\"this.gridView.data.length > 0\">\n <kendo-grid-checkbox-column *ngIf=\"checkBoxRequired === true\" [width]=\"checkBoxWidth\"\n [resizable]=\"checkBoxColumnResizable\" [columnMenu]=\"checkBoxColumnMenu\"\n [showSelectAll]=\"checkBoxColumnShowSelectedAll\" class=\"checkbox-column\">\n </kendo-grid-checkbox-column>\n\n <kendo-grid-column class=\"grid-column\" *ngFor=\"let item of columnData\" [field]=\"item.field\" [title]=\"item.title\"\n [width]=\"item.columnWidth\" [sortable]=\"item.sortable\">\n\n <ng-template *ngIf=\"sortable\" kendoGridHeaderTemplate>\n {{item.title}}\n <span *ngIf=\"sort[0].field === item.field\">\n <span *ngIf=\"sort[0].dir === 'asc'\"></span>\n <span *ngIf=\"sort[0].dir === 'desc'\"></span>\n </span>\n </ng-template>\n\n <ng-template *ngIf=\"item.custom\" kendoGridCellTemplate let-dataItem>\n <ng-container *ngTemplateOutlet=\"templateRef; context: {$implicit: dataItem}\"></ng-container>\n </ng-template>\n <ng-template *ngIf=\"item.impact\" kendoGridCellTemplate let-dataItem>\n <ng-container *ngTemplateOutlet=\"impactColumn; context: {$implicit: dataItem}\"></ng-container>\n </ng-template>\n </kendo-grid-column>\n\n <kendo-grid-column *ngIf=\"showDeleteColumn\" [width]=\"deleteColumnWidth\" class=\"delete-column\" title=\"Action\">\n <ng-template kendoGridCellTemplate let-dataItem let-rowIndex=\"rowIndex\">\n <lib-tooltip showOn=\"hover\" position=\"bottom\" class=\"remove-tooltip\">\n <lib-icon name=\"delete\" class=\"delete-icon\" (click)=\"onDelete(dataItem)\"></lib-icon>\n <div class=\"tooltip-content\">\n <lib-typography defaultText=\"Remove\"></lib-typography>\n </div>\n </lib-tooltip>\n </ng-template>\n </kendo-grid-column>\n\n <kendo-grid-column [width]=\"kebabColumnWidth\" class=\"kebab-column\" *ngIf=\"showKebab\" title=\"Actions\">\n <ng-template kendoGridCellTemplate let-dataItem let-rowIndex=\"rowIndex\">\n <kendo-dropdownbutton *ngIf=\"!hideKebabRowIndex.includes(rowIndex)\" [svgIcon]=\"icon\" fillMode=\"none\" [data]=\"kebabList | kebabMenuFilter : dataItem\" class=\"kebab\"\n (itemClick)=\"onKebabClick($event, dataItem)\" [popupSettings]=\"{ align: 'right', animate: true, popupClass: 'kebab-list' }\">\n </kendo-dropdownbutton>\n </ng-template>\n </kendo-grid-column>\n </ng-container>\n\n <ng-template kendoGridDetailTemplate let-dataItem>\n <ng-container *ngTemplateOutlet=\"detailTemplate; context: {$implicit: dataItem}\"></ng-container>\n </ng-template>\n\n <kendo-grid-column *ngIf=\"customExpandRowColumn\" [width]=\"expandRowColumnWidth\" class=\"grid-column expand-column\">\n <ng-template kendoGridCellTemplate let-dataItem let-rowIndex=\"rowIndex\">\n <kendo-button *ngIf=\"!expandRowIndex.includes(rowIndex)\" [svgIcon]=\"arrowDownIcon\" (click)=\"expandRow(rowIndex)\"\n fillMode=\"none\" class=\"arrow-btn\">\n </kendo-button>\n <kendo-button *ngIf=\"expandRowIndex.includes(rowIndex)\" [svgIcon]=\"arrowUpIcon\" (click)=\"collapseRow(rowIndex)\"\n fillMode=\"none\" class=\"arrow-btn\">\n </kendo-button>\n </ng-template>\n </kendo-grid-column>\n\n <ng-template kendoPagerTemplate let-totalPages=\"totalPages\" let-currentPage=\"currentPage\">\n <kendo-pager-prev-buttons></kendo-pager-prev-buttons>\n <kendo-pager-numeric-buttons [buttonCount]=\"pageCount\"></kendo-pager-numeric-buttons>\n <kendo-pager-next-buttons></kendo-pager-next-buttons>\n <kendo-pager-info></kendo-pager-info>\n <kendo-pager-page-sizes [pageSizes]=\"sizes\"></kendo-pager-page-sizes>\n </ng-template>\n\n</kendo-grid>\n</div>\n", styles: ["@font-face{font-family:Mulish;src:url(/assets/fonts/Mulish-Light.ttf);font-weight:300;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-LightItalic.ttf);font-weight:300;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Regular.ttf);font-weight:400;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Italic.ttf);font-weight:400;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Bold.ttf);font-weight:700;font-style:normal}::ng-deep .k-grid th{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:16px;line-height:24px;letter-spacing:.2px}::ng-deep .k-grid tr{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.8px;height:50px}::ng-deep .k-grid tr:hover{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.8px}::ng-deep .k-grid-norecords{text-align:center!important;opacity:.4}::ng-deep .k-grid-norecords td{padding:14px 0 14px 24px!important}::ng-deep kendo-pager.k-pager-wrap.k-grid-pager{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.2px}::ng-deep .k-grid th.k-header{vertical-align:middle!important;padding-left:16px;padding-right:0}::ng-deep .grid-column,::ng-deep .kebab-column,::ng-deep .delete-column{padding:0!important}::ng-deep .grid-column kendo-button,::ng-deep .kebab-column kendo-button,::ng-deep .delete-column kendo-button{align-items:center!important;justify-content:center!important;display:flex!important}::ng-deep .k-checkbox{width:20px!important;height:20px!important;border-radius:0!important}::ng-deep .k-grid .k-hierarchy-cell,::ng-deep .k-grid .k-hierarchy-col{width:0;display:none}::ng-deep .k-grid .k-detail-row .k-detail-cell{padding:16px!important}::ng-deep .delete-icon{color:#dc267f!important;padding-left:12px;cursor:pointer}::ng-deep .remove-tooltip kendo-tooltip.k-tooltip{background-color:#fff;color:#000}::ng-deep .hide-header .k-grid-header{border:0px!important}::ng-deep .k-grid-toolbar{padding:4px 16px!important;height:50px}::ng-deep .k-grid td:not(.kebab-column):not(.expand-column){padding-left:16px!important}::ng-deep .view-header .k-table-thead tr{height:50px}::ng-deep .hide-header .k-table-thead tr{height:0px}::ng-deep td.kebab-column{display:flex;justify-content:center;align-items:center;height:inherit}::ng-deep .k-grid .k-table-td>.k-checkbox{vertical-align:middle!important}::ng-deep .kebab .k-button,::ng-deep .expand-column .k-button{border:0px}\n"], dependencies: [{ kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2$2.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: i2$2.DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: ["arrowIcon", "icon", "svgIcon", "iconClass", "imageUrl", "textField", "data", "size", "rounded", "fillMode", "themeColor", "buttonAttributes"], outputs: ["itemClick", "focus", "blur"], exportAs: ["kendoDropDownButton"] }, { kind: "component", type: IconComponent, selector: "lib-icon", inputs: ["name", "fontSize", "type"] }, { kind: "component", type: i4$1.GridComponent, selector: "kendo-grid", inputs: ["data", "pageSize", "height", "rowHeight", "detailRowHeight", "skip", "scrollable", "selectable", "sort", "size", "trackBy", "filter", "group", "virtualColumns", "filterable", "sortable", "pageable", "groupable", "rowReorderable", "navigable", "navigatable", "autoSize", "rowClass", "rowSticky", "rowSelected", "cellSelected", "resizable", "reorderable", "loading", "columnMenu", "hideHeader", "isDetailExpanded", "isGroupExpanded"], outputs: ["filterChange", "pageChange", "groupChange", "sortChange", "selectionChange", "rowReorder", "dataStateChange", "groupExpand", "groupCollapse", "detailExpand", "detailCollapse", "edit", "cancel", "save", "remove", "add", "cellClose", "cellClick", "pdfExport", "excelExport", "columnResize", "columnReorder", "columnVisibilityChange", "columnLockedChange", "columnStickyChange", "scrollBottom", "contentScroll"], exportAs: ["kendoGrid"] }, { kind: "directive", type: i4$1.ToolbarTemplateDirective, selector: "[kendoGridToolbarTemplate]", inputs: ["position"] }, { kind: "directive", type: i4$1.SelectionDirective, selector: "[kendoGridSelectBy]" }, { kind: "component", type: i4$1.ColumnComponent, selector: "kendo-grid-column", inputs: ["field", "format", "sortable", "groupable", "editor", "filter", "filterable", "editable"] }, { kind: "directive", type: i4$1.DetailTemplateDirective, selector: "[kendoGridDetailTemplate]", inputs: ["kendoGridDetailTemplateShowIf"] }, { kind: "component", type: i4$1.CheckboxColumnComponent, selector: "kendo-grid-checkbox-column", inputs: ["showSelectAll"] }, { kind: "directive", type: i4$1.CellTemplateDirective, selector: "[kendoGridCellTemplate]" }, { kind: "directive", type: i4$1.NoRecordsTemplateDirective, selector: "[kendoGridNoRecordsTemplate]" }, { kind: "directive", type: i4$1.HeaderTemplateDirective, selector: "[kendoGridHeaderTemplate]" }, { kind: "component", type: i4$1.PagerPrevButtonsComponent, selector: "kendo-pager-prev-buttons" }, { kind: "component", type: i4$1.PagerNextButtonsComponent, selector: "kendo-pager-next-buttons" }, { kind: "component", type: i4$1.PagerNumericButtonsComponent, selector: "kendo-pager-numeric-buttons", inputs: ["buttonCount"] }, { kind: "component", type: i4$1.PagerInfoComponent, selector: "kendo-pager-info" }, { kind: "component", type: i4$1.PagerPageSizesComponent, selector: "kendo-pager-page-sizes", inputs: ["pageSizes"] }, { kind: "directive", type: i4$1.PagerTemplateDirective, selector: "[kendoPagerTemplate]" }, { kind: "component", type: TooltipComponent, selector: "lib-tooltip", inputs: ["position", "tooltipWidth", "tooltipHeight", "showOn", "closable", "title", "callout"] }, { kind: "component", type: TypographyComponent, selector: "lib-typography", inputs: ["type", "defaultText", "isLabel", "hiddenLabel"] }, { kind: "pipe", type: KebabMenuFilterPipe, name: "kebabMenuFilter" }] }); }
|
|
3683
|
+
}
|
|
3684
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridPaginationComponent, decorators: [{
|
|
3685
|
+
type: Component,
|
|
3686
|
+
args: [{ selector: 'lib-grid-pagination', template: "<div #gridElement (window:resize)=\"resize($event)\" >\n<kendo-grid [data]=\"gridView\" [pageSize]=\"pageSize\" [skip]=\"skip\" [selectable]=\"selectableSettings\"\n [pageable]=\"pageable\" [sortable]=\"sortable\" [groupable]=\"groupable\" [reorderable]=\"reorderable\"\n [resizable]=\"resizable\" [columnMenu]=\"columnMenu\" [navigable]=\"navigable\" [height]=\"height\" [style.height]=\"height\"\n (change)=\"setSelectableSettings()\" (selectionChange)=\"onSelectionChange($event)\"\n [kendoGridSelectBy]=\"gridRowSelectByValue\" (detailExpand)=\"onDetailExpand($event)\" [selectedKeys]=\"preSelected\"\n (pageChange)=\"pageChange($event)\" (cellClick)=\"cellClickHandler($event)\" [sort]=\"sort\"\n (sortChange)=\"sortChange($event)\" [ngClass]=\"getHeaderHeight()\" id=\"lib-grid\">\n\n <ng-template *ngIf=\"showToolbar\" kendoGridToolbarTemplate>\n <ng-content></ng-content>\n </ng-template>\n\n <ng-template *ngIf=\"this.gridView.data.length === 0\" kendoGridNoRecordsTemplate>\n <lib-typography [defaultText]=\"noRecordsContent\" type=\"P_MULISH_16_REGULAR\"></lib-typography>\n </ng-template>\n\n <ng-container *ngIf=\"this.gridView.data.length > 0\">\n <kendo-grid-checkbox-column *ngIf=\"checkBoxRequired === true\" [width]=\"checkBoxWidth\"\n [resizable]=\"checkBoxColumnResizable\" [columnMenu]=\"checkBoxColumnMenu\"\n [showSelectAll]=\"checkBoxColumnShowSelectedAll\" class=\"checkbox-column\">\n </kendo-grid-checkbox-column>\n\n <kendo-grid-column class=\"grid-column\" *ngFor=\"let item of columnData\" [field]=\"item.field\" [title]=\"item.title\"\n [width]=\"item.columnWidth\" [sortable]=\"item.sortable\">\n\n <ng-template *ngIf=\"sortable\" kendoGridHeaderTemplate>\n {{item.title}}\n <span *ngIf=\"sort[0].field === item.field\">\n <span *ngIf=\"sort[0].dir === 'asc'\"></span>\n <span *ngIf=\"sort[0].dir === 'desc'\"></span>\n </span>\n </ng-template>\n\n <ng-template *ngIf=\"item.custom\" kendoGridCellTemplate let-dataItem>\n <ng-container *ngTemplateOutlet=\"templateRef; context: {$implicit: dataItem}\"></ng-container>\n </ng-template>\n <ng-template *ngIf=\"item.impact\" kendoGridCellTemplate let-dataItem>\n <ng-container *ngTemplateOutlet=\"impactColumn; context: {$implicit: dataItem}\"></ng-container>\n </ng-template>\n </kendo-grid-column>\n\n <kendo-grid-column *ngIf=\"showDeleteColumn\" [width]=\"deleteColumnWidth\" class=\"delete-column\" title=\"Action\">\n <ng-template kendoGridCellTemplate let-dataItem let-rowIndex=\"rowIndex\">\n <lib-tooltip showOn=\"hover\" position=\"bottom\" class=\"remove-tooltip\">\n <lib-icon name=\"delete\" class=\"delete-icon\" (click)=\"onDelete(dataItem)\"></lib-icon>\n <div class=\"tooltip-content\">\n <lib-typography defaultText=\"Remove\"></lib-typography>\n </div>\n </lib-tooltip>\n </ng-template>\n </kendo-grid-column>\n\n <kendo-grid-column [width]=\"kebabColumnWidth\" class=\"kebab-column\" *ngIf=\"showKebab\" title=\"Actions\">\n <ng-template kendoGridCellTemplate let-dataItem let-rowIndex=\"rowIndex\">\n <kendo-dropdownbutton *ngIf=\"!hideKebabRowIndex.includes(rowIndex)\" [svgIcon]=\"icon\" fillMode=\"none\" [data]=\"kebabList | kebabMenuFilter : dataItem\" class=\"kebab\"\n (itemClick)=\"onKebabClick($event, dataItem)\" [popupSettings]=\"{ align: 'right', animate: true, popupClass: 'kebab-list' }\">\n </kendo-dropdownbutton>\n </ng-template>\n </kendo-grid-column>\n </ng-container>\n\n <ng-template kendoGridDetailTemplate let-dataItem>\n <ng-container *ngTemplateOutlet=\"detailTemplate; context: {$implicit: dataItem}\"></ng-container>\n </ng-template>\n\n <kendo-grid-column *ngIf=\"customExpandRowColumn\" [width]=\"expandRowColumnWidth\" class=\"grid-column expand-column\">\n <ng-template kendoGridCellTemplate let-dataItem let-rowIndex=\"rowIndex\">\n <kendo-button *ngIf=\"!expandRowIndex.includes(rowIndex)\" [svgIcon]=\"arrowDownIcon\" (click)=\"expandRow(rowIndex)\"\n fillMode=\"none\" class=\"arrow-btn\">\n </kendo-button>\n <kendo-button *ngIf=\"expandRowIndex.includes(rowIndex)\" [svgIcon]=\"arrowUpIcon\" (click)=\"collapseRow(rowIndex)\"\n fillMode=\"none\" class=\"arrow-btn\">\n </kendo-button>\n </ng-template>\n </kendo-grid-column>\n\n <ng-template kendoPagerTemplate let-totalPages=\"totalPages\" let-currentPage=\"currentPage\">\n <kendo-pager-prev-buttons></kendo-pager-prev-buttons>\n <kendo-pager-numeric-buttons [buttonCount]=\"pageCount\"></kendo-pager-numeric-buttons>\n <kendo-pager-next-buttons></kendo-pager-next-buttons>\n <kendo-pager-info></kendo-pager-info>\n <kendo-pager-page-sizes [pageSizes]=\"sizes\"></kendo-pager-page-sizes>\n </ng-template>\n\n</kendo-grid>\n</div>\n", styles: ["@font-face{font-family:Mulish;src:url(/assets/fonts/Mulish-Light.ttf);font-weight:300;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-LightItalic.ttf);font-weight:300;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Regular.ttf);font-weight:400;font-style:normal}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Italic.ttf);font-weight:400;font-style:italic}@font-face{font-family:Mulish;src:url(../assets/fonts/Mulish-Bold.ttf);font-weight:700;font-style:normal}::ng-deep .k-grid th{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:16px;line-height:24px;letter-spacing:.2px}::ng-deep .k-grid tr{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.8px;height:50px}::ng-deep .k-grid tr:hover{font-family:Mulish,sans-serif;font-weight:700;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.8px}::ng-deep .k-grid-norecords{text-align:center!important;opacity:.4}::ng-deep .k-grid-norecords td{padding:14px 0 14px 24px!important}::ng-deep kendo-pager.k-pager-wrap.k-grid-pager{font-family:Mulish,sans-serif;font-weight:400;font-style:normal;font-size:14px;line-height:21px;letter-spacing:.2px}::ng-deep .k-grid th.k-header{vertical-align:middle!important;padding-left:16px;padding-right:0}::ng-deep .grid-column,::ng-deep .kebab-column,::ng-deep .delete-column{padding:0!important}::ng-deep .grid-column kendo-button,::ng-deep .kebab-column kendo-button,::ng-deep .delete-column kendo-button{align-items:center!important;justify-content:center!important;display:flex!important}::ng-deep .k-checkbox{width:20px!important;height:20px!important;border-radius:0!important}::ng-deep .k-grid .k-hierarchy-cell,::ng-deep .k-grid .k-hierarchy-col{width:0;display:none}::ng-deep .k-grid .k-detail-row .k-detail-cell{padding:16px!important}::ng-deep .delete-icon{color:#dc267f!important;padding-left:12px;cursor:pointer}::ng-deep .remove-tooltip kendo-tooltip.k-tooltip{background-color:#fff;color:#000}::ng-deep .hide-header .k-grid-header{border:0px!important}::ng-deep .k-grid-toolbar{padding:4px 16px!important;height:50px}::ng-deep .k-grid td:not(.kebab-column):not(.expand-column){padding-left:16px!important}::ng-deep .view-header .k-table-thead tr{height:50px}::ng-deep .hide-header .k-table-thead tr{height:0px}::ng-deep td.kebab-column{display:flex;justify-content:center;align-items:center;height:inherit}::ng-deep .k-grid .k-table-td>.k-checkbox{vertical-align:middle!important}::ng-deep .kebab .k-button,::ng-deep .expand-column .k-button{border:0px}\n"] }]
|
|
3687
|
+
}], ctorParameters: function () { return []; }, propDecorators: { templateRef: [{
|
|
3688
|
+
type: ContentChild,
|
|
3689
|
+
args: ['multiColumnData']
|
|
3690
|
+
}], detailTemplate: [{
|
|
3691
|
+
type: ContentChild,
|
|
3692
|
+
args: ['detailTemplate']
|
|
3693
|
+
}], impactColumn: [{
|
|
3694
|
+
type: ContentChild,
|
|
3695
|
+
args: ['impactColumn']
|
|
3696
|
+
}], grid: [{
|
|
3697
|
+
type: ViewChild,
|
|
3698
|
+
args: [GridComponent]
|
|
3699
|
+
}], gridElement: [{
|
|
3700
|
+
type: ViewChild,
|
|
3701
|
+
args: ['gridElement']
|
|
3702
|
+
}], gridView: [{
|
|
3703
|
+
type: Input
|
|
3704
|
+
}], skip: [{
|
|
3705
|
+
type: Input
|
|
3706
|
+
}], columnData: [{
|
|
3707
|
+
type: Input
|
|
3708
|
+
}], pageSize: [{
|
|
3709
|
+
type: Input
|
|
3710
|
+
}], pageable: [{
|
|
3711
|
+
type: Input
|
|
3712
|
+
}], sortable: [{
|
|
3713
|
+
type: Input
|
|
3714
|
+
}], groupable: [{
|
|
3715
|
+
type: Input
|
|
3716
|
+
}], reorderable: [{
|
|
3717
|
+
type: Input
|
|
3718
|
+
}], resizable: [{
|
|
3719
|
+
type: Input
|
|
3720
|
+
}], checkBoxWidth: [{
|
|
3721
|
+
type: Input
|
|
3722
|
+
}], checkBoxColumnResizable: [{
|
|
3723
|
+
type: Input
|
|
3724
|
+
}], checkBoxColumnMenu: [{
|
|
3725
|
+
type: Input
|
|
3726
|
+
}], checkBoxColumnShowSelectedAll: [{
|
|
3727
|
+
type: Input
|
|
3728
|
+
}], checkBoxRequired: [{
|
|
3729
|
+
type: Input
|
|
3730
|
+
}], columnMenu: [{
|
|
3731
|
+
type: Input
|
|
3732
|
+
}], mode: [{
|
|
3733
|
+
type: Input
|
|
3734
|
+
}], checkboxOnly: [{
|
|
3735
|
+
type: Input
|
|
3736
|
+
}], dragColumns: [{
|
|
3737
|
+
type: Input
|
|
3738
|
+
}], navigable: [{
|
|
3739
|
+
type: Input
|
|
3740
|
+
}], gridRowSelectByValue: [{
|
|
3741
|
+
type: Input
|
|
3742
|
+
}], noRecordsContent: [{
|
|
3743
|
+
type: Input
|
|
3744
|
+
}], selectedRowData: [{
|
|
3745
|
+
type: Output
|
|
3746
|
+
}], showToolbar: [{
|
|
3747
|
+
type: Input
|
|
3748
|
+
}], kebabList: [{
|
|
3749
|
+
type: Input
|
|
3750
|
+
}], showKebab: [{
|
|
3751
|
+
type: Input
|
|
3752
|
+
}], rowDetails: [{
|
|
3753
|
+
type: Output
|
|
3754
|
+
}], kebabItemClick: [{
|
|
3755
|
+
type: Output
|
|
3756
|
+
}], icon: [{
|
|
3757
|
+
type: Input
|
|
3758
|
+
}], kebabColumnWidth: [{
|
|
3759
|
+
type: Input
|
|
3760
|
+
}], selectColumn: [{
|
|
3761
|
+
type: Input
|
|
3762
|
+
}], rowDataOfClickedCell: [{
|
|
3763
|
+
type: Output
|
|
3764
|
+
}], preSelected: [{
|
|
3765
|
+
type: Input
|
|
3766
|
+
}], onPageChange: [{
|
|
3767
|
+
type: Output
|
|
3768
|
+
}], ignoreColumnCellClick: [{
|
|
3769
|
+
type: Input
|
|
3770
|
+
}], allowColumnClick: [{
|
|
3771
|
+
type: Input
|
|
3772
|
+
}], sort: [{
|
|
3773
|
+
type: Input
|
|
3774
|
+
}], hasApiSorting: [{
|
|
3775
|
+
type: Input
|
|
3776
|
+
}], sortDirection: [{
|
|
3777
|
+
type: Output
|
|
3778
|
+
}], expandRowIndex: [{
|
|
3779
|
+
type: Input
|
|
3780
|
+
}], customExpandRowColumn: [{
|
|
3781
|
+
type: Input
|
|
3782
|
+
}], deleteColumnWidth: [{
|
|
3783
|
+
type: Input
|
|
3784
|
+
}], expandRowColumnWidth: [{
|
|
3785
|
+
type: Input
|
|
3786
|
+
}], deletedRowData: [{
|
|
3787
|
+
type: Output
|
|
3788
|
+
}], sizes: [{
|
|
3789
|
+
type: Input
|
|
3790
|
+
}], pageCount: [{
|
|
3791
|
+
type: Input
|
|
3792
|
+
}], showDeleteColumn: [{
|
|
3793
|
+
type: Input
|
|
3794
|
+
}], hideKebabRowIndex: [{
|
|
3795
|
+
type: Input
|
|
3796
|
+
}], resize: [{
|
|
3797
|
+
type: HostListener,
|
|
3798
|
+
args: ['window:resize', ['$event']]
|
|
3799
|
+
}] } });
|
|
3800
|
+
|
|
3801
|
+
class GridPaginationSpacerComponent {
|
|
3802
|
+
constructor() { }
|
|
3803
|
+
ngOnInit() {
|
|
3804
|
+
}
|
|
3805
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridPaginationSpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3806
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: GridPaginationSpacerComponent, selector: "lib-grid-pagination-spacer", ngImport: i0, template: "<kendo-grid-spacer></kendo-grid-spacer>\n", styles: [":host{flex:1 0 auto}\n"], dependencies: [{ kind: "component", type: i4$1.GridSpacerComponent, selector: "kendo-grid-spacer, kendo-pager-spacer", inputs: ["width"] }] }); }
|
|
3807
|
+
}
|
|
3808
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridPaginationSpacerComponent, decorators: [{
|
|
3809
|
+
type: Component,
|
|
3810
|
+
args: [{ selector: 'lib-grid-pagination-spacer', template: "<kendo-grid-spacer></kendo-grid-spacer>\n", styles: [":host{flex:1 0 auto}\n"] }]
|
|
3811
|
+
}], ctorParameters: function () { return []; } });
|
|
3812
|
+
|
|
3813
|
+
class GridPaginationModule {
|
|
3814
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridPaginationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3815
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: GridPaginationModule, declarations: [GridPaginationComponent,
|
|
3816
|
+
GridPaginationSpacerComponent,
|
|
3817
|
+
GridPaginationSpacerComponent,
|
|
3818
|
+
KebabMenuFilterPipe], imports: [CommonModule,
|
|
3819
|
+
ButtonsModule,
|
|
3820
|
+
IconModule,
|
|
3821
|
+
IconsModule,
|
|
3822
|
+
InputsModule,
|
|
3823
|
+
GridModule,
|
|
3824
|
+
DialogModule$1,
|
|
3825
|
+
FormsModule,
|
|
3826
|
+
TooltipModule,
|
|
3827
|
+
ReactiveFormsModule,
|
|
3828
|
+
TypographyModule], exports: [GridPaginationComponent, GridPaginationSpacerComponent] }); }
|
|
3829
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridPaginationModule, imports: [CommonModule,
|
|
3830
|
+
ButtonsModule,
|
|
3831
|
+
IconModule,
|
|
3832
|
+
IconsModule,
|
|
3833
|
+
InputsModule,
|
|
3834
|
+
GridModule,
|
|
3835
|
+
DialogModule$1,
|
|
3836
|
+
FormsModule,
|
|
3837
|
+
TooltipModule,
|
|
3838
|
+
ReactiveFormsModule,
|
|
3839
|
+
TypographyModule] }); }
|
|
3840
|
+
}
|
|
3841
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GridPaginationModule, decorators: [{
|
|
3842
|
+
type: NgModule,
|
|
3843
|
+
args: [{
|
|
3844
|
+
declarations: [
|
|
3845
|
+
GridPaginationComponent,
|
|
3846
|
+
GridPaginationSpacerComponent,
|
|
3847
|
+
GridPaginationSpacerComponent,
|
|
3848
|
+
KebabMenuFilterPipe
|
|
3849
|
+
],
|
|
3850
|
+
imports: [
|
|
3851
|
+
CommonModule,
|
|
3852
|
+
ButtonsModule,
|
|
3853
|
+
IconModule,
|
|
3854
|
+
IconsModule,
|
|
3855
|
+
InputsModule,
|
|
3856
|
+
GridModule,
|
|
3857
|
+
DialogModule$1,
|
|
3858
|
+
FormsModule,
|
|
3859
|
+
TooltipModule,
|
|
3860
|
+
ReactiveFormsModule,
|
|
3861
|
+
TypographyModule
|
|
3862
|
+
],
|
|
3863
|
+
exports: [GridPaginationComponent, GridPaginationSpacerComponent],
|
|
3864
|
+
}]
|
|
3865
|
+
}] });
|
|
3866
|
+
|
|
3867
|
+
class MoleculesModule {
|
|
3868
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MoleculesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3869
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: MoleculesModule, imports: [CardModule,
|
|
3870
|
+
CommonModule,
|
|
3871
|
+
DialogModule,
|
|
3872
|
+
FormsModule,
|
|
3873
|
+
GridsModule,
|
|
3874
|
+
GridLayoutModule,
|
|
3875
|
+
GridPaginationModule,
|
|
3876
|
+
ReactiveFormsModule,
|
|
3877
|
+
SidebarModule,
|
|
3878
|
+
TabstripModule], exports: [CardModule,
|
|
3879
|
+
DialogModule,
|
|
3880
|
+
GridsModule,
|
|
3881
|
+
GridLayoutModule,
|
|
3882
|
+
GridPaginationModule,
|
|
3883
|
+
SidebarModule,
|
|
3884
|
+
TabstripModule] }); }
|
|
3885
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MoleculesModule, imports: [CardModule,
|
|
3886
|
+
CommonModule,
|
|
3887
|
+
DialogModule,
|
|
3888
|
+
FormsModule,
|
|
3889
|
+
GridsModule,
|
|
3890
|
+
GridLayoutModule,
|
|
3891
|
+
GridPaginationModule,
|
|
3892
|
+
ReactiveFormsModule,
|
|
3893
|
+
SidebarModule,
|
|
3894
|
+
TabstripModule, CardModule,
|
|
3895
|
+
DialogModule,
|
|
3896
|
+
GridsModule,
|
|
3897
|
+
GridLayoutModule,
|
|
3898
|
+
GridPaginationModule,
|
|
3899
|
+
SidebarModule,
|
|
3900
|
+
TabstripModule] }); }
|
|
3901
|
+
}
|
|
3902
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MoleculesModule, decorators: [{
|
|
3903
|
+
type: NgModule,
|
|
3904
|
+
args: [{
|
|
3905
|
+
declarations: [],
|
|
3906
|
+
imports: [
|
|
3907
|
+
CardModule,
|
|
3908
|
+
CommonModule,
|
|
3909
|
+
DialogModule,
|
|
3910
|
+
FormsModule,
|
|
3911
|
+
GridsModule,
|
|
3912
|
+
GridLayoutModule,
|
|
3913
|
+
GridPaginationModule,
|
|
3914
|
+
ReactiveFormsModule,
|
|
3915
|
+
SidebarModule,
|
|
3916
|
+
TabstripModule
|
|
3917
|
+
],
|
|
3918
|
+
exports: [
|
|
3919
|
+
CardModule,
|
|
3920
|
+
DialogModule,
|
|
3921
|
+
GridsModule,
|
|
3922
|
+
GridLayoutModule,
|
|
3923
|
+
GridPaginationModule,
|
|
3924
|
+
SidebarModule,
|
|
3925
|
+
TabstripModule
|
|
3926
|
+
],
|
|
3927
|
+
}]
|
|
3928
|
+
}] });
|
|
3929
|
+
|
|
3930
|
+
class SharedModule {
|
|
3931
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3932
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SharedModule, declarations: [SharedComponent], imports: [AtomsModule,
|
|
3933
|
+
CommonModule,
|
|
3934
|
+
MoleculesModule,
|
|
3935
|
+
ThemesModule], exports: [SharedComponent,
|
|
3936
|
+
AtomsModule,
|
|
3937
|
+
MoleculesModule] }); }
|
|
3938
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SharedModule, imports: [AtomsModule,
|
|
3939
|
+
CommonModule,
|
|
3940
|
+
MoleculesModule,
|
|
3941
|
+
ThemesModule, AtomsModule,
|
|
3942
|
+
MoleculesModule] }); }
|
|
3943
|
+
}
|
|
3944
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SharedModule, decorators: [{
|
|
3945
|
+
type: NgModule,
|
|
3946
|
+
args: [{
|
|
3947
|
+
declarations: [SharedComponent],
|
|
3948
|
+
imports: [
|
|
3949
|
+
AtomsModule,
|
|
3950
|
+
CommonModule,
|
|
3951
|
+
MoleculesModule,
|
|
3952
|
+
ThemesModule
|
|
3953
|
+
],
|
|
3954
|
+
exports: [
|
|
3955
|
+
SharedComponent,
|
|
3956
|
+
AtomsModule,
|
|
3957
|
+
MoleculesModule
|
|
3958
|
+
],
|
|
3959
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
3960
|
+
}]
|
|
3961
|
+
}] });
|
|
3962
|
+
|
|
3963
|
+
// services
|
|
3964
|
+
|
|
3965
|
+
/**
|
|
3966
|
+
* Generated bundle index. Do not edit.
|
|
3967
|
+
*/
|
|
3968
|
+
|
|
3969
|
+
export { ALERT_TYPE, AlertComponent, AlertModule, AngularPopupComponent, AngularPopupModule, AtomsModule, AvatarComponent, AvatarModule, BreadcrumbComponent, BreadcrumbModule, ButtonComponent, ButtonGroupComponent, ButtonGroupModule, ButtonModule, CardActionsComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CardModule, CheckboxComponent, CheckboxModule, ClipboardComponent, ClipboardModule, ContainerComponent, ContainerModule, DialogActionsComponent, DialogComponent, DialogModule, DialogTitlebarComponent, DropdownComponent, DropdownModule, DropdownTreeModule, DropdowntreeComponent, ExpansionPanelComponent, ExpansionPanelModule, GridFormComponent, GridLayoutComponent, GridLayoutItemComponent, GridLayoutModule, GridPaginationComponent, GridPaginationModule, GridPaginationSpacerComponent, GridSpacerComponent, GridsModule, IconComponent, IconModule, LabelComponent, LabelsModule, LibGridComponent, LoadingSpinnerComponent, LoadingSpinnerModule, MoleculesModule, MultiSelectDropdownComponent, MultiSelectDropdownModule, NotificationComponent, NotificationModule, NumericTextboxComponent, NumericTextboxModule, ProgressBarComponent, ProgressBarsModule, RadioButtonComponent, RadioButtonModule, ReportSummaryComponent, ReportSummaryModule, SearchBoxComponent, SearchBoxModule, SharedComponent, SharedModule, SharedService, SidebarComponent, SidebarModule, SliderComponent, SliderModule, StyleTokensModule, TabstripComponent, TabstripModule, TabstripTabComponent, TextAreaComponent, TextAreaModule, TextboxComponent, TextboxModule, TimeSchedulerModule, TimeschedulerComponent, ToastNotificationModule, ToastNotificationService, TooltipComponent, TooltipModule, Type, TypographyComponent, TypographyModule };
|
|
3970
|
+
//# sourceMappingURL=progress-chef-platform-shared-components.mjs.map
|