coer-elements 0.0.8 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- package/components/index.d.ts +2 -2
- package/esm2022/coer-elements.mjs +2 -2
- package/esm2022/components/index.mjs +3 -3
- package/esm2022/components/lib/coer-alert/coer-alert.component.mjs +227 -0
- package/esm2022/components/lib/components.module.mjs +92 -0
- package/esm2022/public_api.mjs +3 -0
- package/esm2022/tools/index.mjs +2 -9
- package/esm2022/tools/{src/ControlValue.mjs → lib/controlValue.mjs} +3 -1
- package/fesm2022/coer-elements.mjs +33 -680
- package/fesm2022/coer-elements.mjs.map +1 -1
- package/index.d.ts +5 -1
- package/package.json +1 -1
- package/public_api.d.ts +2 -0
- package/src/styles/bootstrap.scss +15 -0
- package/src/styles/coer-elements.scss +29 -0
- package/{styles → src/styles}/colors.scss +27 -1
- package/src/styles/containers.scss +34 -0
- package/src/styles/cursores.scss +11 -0
- package/src/styles/layout.scss +21 -0
- package/src/styles/scroll-bar.scss +20 -0
- package/styles/{index.css → coer-elements.css} +268 -26
- package/tools/index.d.ts +1 -8
- package/tools/{src/ControlValue.d.ts → lib/controlValue.d.ts} +2 -0
- package/components/index.ts +0 -2
- package/components/src/coer-alert/coer-alert.component.html +0 -56
- package/components/src/coer-alert/coer-alert.component.scss +0 -100
- package/components/src/coer-alert/coer-alert.component.ts +0 -249
- package/components/src/components.module.ts +0 -97
- package/esm2022/components/src/coer-alert/coer-alert.component.mjs +0 -227
- package/esm2022/components/src/components.module.mjs +0 -92
- package/esm2022/index.mjs +0 -2
- package/esm2022/interfaces/index.mjs +0 -7
- package/esm2022/interfaces/src/IAppSource.interface.mjs +0 -2
- package/esm2022/interfaces/src/IBreadcrumb.interface.mjs +0 -2
- package/esm2022/interfaces/src/ICoerRef.interface.mjs +0 -2
- package/esm2022/interfaces/src/IGoBack.interface.mjs +0 -2
- package/esm2022/interfaces/src/IPatch.interface.mjs +0 -2
- package/esm2022/interfaces/src/IScreenSize.interface.mjs +0 -2
- package/esm2022/tools/src/Breadcrumbs.class.mjs +0 -63
- package/esm2022/tools/src/DateTime.class.mjs +0 -22
- package/esm2022/tools/src/Files.class.mjs +0 -93
- package/esm2022/tools/src/Page.class.mjs +0 -162
- package/esm2022/tools/src/Screen.class.mjs +0 -43
- package/esm2022/tools/src/Source.class.mjs +0 -80
- package/esm2022/tools/src/Tools.mjs +0 -200
- package/interfaces/index.d.ts +0 -6
- package/interfaces/index.ts +0 -6
- package/interfaces/src/IAppSource.interface.d.ts +0 -4
- package/interfaces/src/IAppSource.interface.ts +0 -4
- package/interfaces/src/IBreadcrumb.interface.d.ts +0 -6
- package/interfaces/src/IBreadcrumb.interface.ts +0 -6
- package/interfaces/src/ICoerRef.interface.d.ts +0 -10
- package/interfaces/src/ICoerRef.interface.ts +0 -11
- package/interfaces/src/IGoBack.interface.d.ts +0 -6
- package/interfaces/src/IGoBack.interface.ts +0 -6
- package/interfaces/src/IPatch.interface.d.ts +0 -5
- package/interfaces/src/IPatch.interface.ts +0 -5
- package/interfaces/src/IScreenSize.interface.d.ts +0 -5
- package/interfaces/src/IScreenSize.interface.ts +0 -5
- package/styles/index.scss +0 -98
- package/tools/index.ts +0 -8
- package/tools/src/Breadcrumbs.class.d.ts +0 -18
- package/tools/src/Breadcrumbs.class.ts +0 -84
- package/tools/src/ControlValue.ts +0 -63
- package/tools/src/DateTime.class.d.ts +0 -11
- package/tools/src/DateTime.class.ts +0 -27
- package/tools/src/Files.class.d.ts +0 -16
- package/tools/src/Files.class.ts +0 -119
- package/tools/src/Page.class.d.ts +0 -66
- package/tools/src/Page.class.ts +0 -197
- package/tools/src/Screen.class.d.ts +0 -11
- package/tools/src/Screen.class.ts +0 -50
- package/tools/src/Source.class.d.ts +0 -20
- package/tools/src/Source.class.ts +0 -107
- package/tools/src/Tools.d.ts +0 -33
- package/tools/src/Tools.ts +0 -217
- /package/components/{src → lib}/coer-alert/coer-alert.component.d.ts +0 -0
- /package/components/{src → lib}/components.module.d.ts +0 -0
@@ -1,92 +0,0 @@
|
|
1
|
-
import { NgModule } from '@angular/core';
|
2
|
-
import { CommonModule } from '@angular/common';
|
3
|
-
import { RouterModule } from '@angular/router';
|
4
|
-
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
5
|
-
//import { DirectivesModule } from 'src/app/shared/directives/directives.module';
|
6
|
-
//import { PipesModule } from 'src/app/shared/pipes/pipes.module';
|
7
|
-
//Angular Material
|
8
|
-
//import { MatButtonModule } from '@angular/material/button';
|
9
|
-
//import { MatCheckboxModule } from '@angular/material/checkbox';
|
10
|
-
//import { MatInputModule } from '@angular/material/input';
|
11
|
-
//import { MatFormFieldModule } from '@angular/material/form-field';
|
12
|
-
//import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
13
|
-
//import { MatTabsModule } from '@angular/material/tabs';
|
14
|
-
//Components
|
15
|
-
import { CoerAlert } from './coer-alert/coer-alert.component';
|
16
|
-
import * as i0 from "@angular/core";
|
17
|
-
//import { CoerButton } from './coer-button/coer-button.component';
|
18
|
-
//import { CoerCheckbox } from './coer-checkbox/coer-checkbox.component';
|
19
|
-
//import { CoerFilebox } from './coer-filebox/coer-filebox.component';
|
20
|
-
//import { CoerForm } from './coer-form/coer-form.component';
|
21
|
-
//import { CoerGrid } from './coer-grid/coer-grid.component';
|
22
|
-
//import { CoerModal } from './coer-modal/coer-modal.component';
|
23
|
-
//import { CoerNumberBox } from './coer-numberbox/coer-numberbox.component';
|
24
|
-
//import { CoerPageTitle } from './coer-page-title/coer-page-title.component';
|
25
|
-
//import { CoerSelectbox } from './coer-selectbox/coer-selectbox.component';
|
26
|
-
//import { CoerSwitch } from './coer-switch/coer-switch.component';
|
27
|
-
//import { CoerTab } from './coer-tab/coer-tab.component';
|
28
|
-
//import { CoerTextarea } from './coer-textarea/coer-textarea.component';
|
29
|
-
//import { CoerTextBox } from './coer-textbox/coer-textbox.component';
|
30
|
-
export class ComponentsModule {
|
31
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
32
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: ComponentsModule, declarations: [CoerAlert], imports: [CommonModule,
|
33
|
-
RouterModule,
|
34
|
-
FormsModule,
|
35
|
-
ReactiveFormsModule], exports: [CoerAlert] }); }
|
36
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ComponentsModule, imports: [CommonModule,
|
37
|
-
RouterModule,
|
38
|
-
FormsModule,
|
39
|
-
ReactiveFormsModule] }); }
|
40
|
-
}
|
41
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ComponentsModule, decorators: [{
|
42
|
-
type: NgModule,
|
43
|
-
args: [{
|
44
|
-
imports: [
|
45
|
-
CommonModule,
|
46
|
-
RouterModule,
|
47
|
-
FormsModule,
|
48
|
-
ReactiveFormsModule,
|
49
|
-
//PipesModule,
|
50
|
-
//MatButtonModule,
|
51
|
-
//MatCheckboxModule,
|
52
|
-
//MatInputModule,
|
53
|
-
//MatFormFieldModule,
|
54
|
-
//MatSlideToggleModule,
|
55
|
-
//MatTabsModule,
|
56
|
-
//DirectivesModule
|
57
|
-
],
|
58
|
-
declarations: [
|
59
|
-
CoerAlert,
|
60
|
-
//CoerButton,
|
61
|
-
//CoerCheckbox,
|
62
|
-
//CoerFilebox,
|
63
|
-
//CoerForm,
|
64
|
-
//CoerGrid,
|
65
|
-
//CoerModal,
|
66
|
-
//CoerNumberBox,
|
67
|
-
//CoerPageTitle,
|
68
|
-
//CoerSelectbox,
|
69
|
-
//CoerSwitch,
|
70
|
-
//CoerTextarea,
|
71
|
-
//CoerTab,
|
72
|
-
//CoerTextBox,
|
73
|
-
],
|
74
|
-
exports: [
|
75
|
-
CoerAlert,
|
76
|
-
//CoerButton,
|
77
|
-
//CoerCheckbox,
|
78
|
-
//CoerFilebox,
|
79
|
-
//CoerForm,
|
80
|
-
//CoerGrid,
|
81
|
-
//CoerModal,
|
82
|
-
//CoerNumberBox,
|
83
|
-
//CoerPageTitle,
|
84
|
-
//CoerSelectbox,
|
85
|
-
//CoerSwitch,
|
86
|
-
//CoerTextarea,
|
87
|
-
//CoerTab,
|
88
|
-
//CoerTextBox,
|
89
|
-
]
|
90
|
-
}]
|
91
|
-
}] });
|
92
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50cy5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb2VyLWVsZW1lbnRzL2NvbXBvbmVudHMvc3JjL2NvbXBvbmVudHMubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsV0FBVyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDbEUsaUZBQWlGO0FBQ2pGLGtFQUFrRTtBQUVsRSxrQkFBa0I7QUFDbEIsNkRBQTZEO0FBQzdELGlFQUFpRTtBQUNqRSwyREFBMkQ7QUFDM0Qsb0VBQW9FO0FBQ3BFLHdFQUF3RTtBQUN4RSx5REFBeUQ7QUFFekQsWUFBWTtBQUNaLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQzs7QUFDOUQsbUVBQW1FO0FBQ25FLHlFQUF5RTtBQUN6RSxzRUFBc0U7QUFDdEUsNkRBQTZEO0FBQzdELDZEQUE2RD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veCxcclxuICAgICAgICAvL0NvZXJGaWxlYm94LFxyXG4gICAgICAgIC8vQ29lckZvcm0sXHJcbiAgICAgICAgLy9Db2VyR3JpZCxcclxuICAgICAgICAvL0NvZXJNb2RhbCxcclxuICAgICAgICAvL0NvZXJOdW1iZXJCb3gsXHJcbiAgICAgICAgLy9Db2VyUGFnZVRpdGxlLFxyXG4gICAgICAgIC8vQ29lclNlbGVjdGJveCxcclxuICAgICAgICAvL0NvZXJTd2l0Y2gsXHJcbiAgICAgICAgLy9Db2VyVGV4dGFyZWEsXHJcbiAgICAgICAgLy9Db2VyVGFiLFxyXG4gICAgICAgIC8vQ29lclRleHRCb3gsXHJcbiAgICBdLFxyXG4gICAgZXhwb3J0czogW1xyXG4gICAgICAgIENvZXJBbGVydCxcclxuICAgICAgICAvL0NvZXJCdXR0b24sXHJcbiAgICAgICAgLy9Db2VyQ2hlY2tib3gsXHJcbiAgICAgICAgLy9Db2VyRmlsZWJveCxcclxuICAgICAgICAvL0NvZXJGb3JtLFxyXG4gICAgICAgIC8vQ29lckdyaWQsXHJcbiAgICAgICAgLy9Db2VyTW9kYWwsXHJcbiAgICAgICAgLy9Db2VyTnVtYmVyQm94LFxyXG4gICAgICAgIC8vQ29lclBhZ2VUaXRsZSxcclxuICAgICAgICAvL0NvZXJTZWxlY3Rib3gsXHJcbiAgICAgICAgLy9Db2VyU3dpdGNoLFxyXG4gICAgICAgIC8vQ29lclRleHRhcmVhLFxyXG4gICAgICAgIC8vQ29lclRhYixcclxuICAgICAgICAvL0NvZXJUZXh0Qm94LFxyXG4gICAgXVxyXG59KVxyXG5leHBvcnQgY2xhc3MgQ29tcG9uZW50c01vZHVsZSB7IH1cclxuLy9leHBvcnQgKiBmcm9tICcuL2NvZXItYWxlcnQvY29lci1hbGVydC5jb21wb25lbnQnO1xyXG4vL2V4cG9ydCAqIGZyb20gJy4vY29lci1idXR0b24vY29lci1idXR0b24uY29tcG9uZW50JztcclxuLy9leHBvcnQgKiBmcm9tICcuL2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94L2NvZXItdGV4dGJveC5jb21wb25lbnQnOyJdfQ==
|
package/esm2022/index.mjs
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
export * from './tools';
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9jb2VyLWVsZW1lbnRzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi90b29scyc7Il19
|
@@ -1,7 +0,0 @@
|
|
1
|
-
export * from './src/IAppSource.interface';
|
2
|
-
export * from './src/IBreadcrumb.interface';
|
3
|
-
export * from './src/ICoerRef.interface';
|
4
|
-
export * from './src/IGoBack.interface';
|
5
|
-
export * from './src/IPatch.interface';
|
6
|
-
export * from './src/IScreenSize.interface';
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb2VyLWVsZW1lbnRzL2ludGVyZmFjZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGNBQWMsMEJBQTBCLENBQUM7QUFDekMsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLGNBQWMsNkJBQTZCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3NyYy9JQXBwU291cmNlLmludGVyZmFjZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vc3JjL0lCcmVhZGNydW1iLmludGVyZmFjZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vc3JjL0lDb2VyUmVmLmludGVyZmFjZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vc3JjL0lHb0JhY2suaW50ZXJmYWNlJztcclxuZXhwb3J0ICogZnJvbSAnLi9zcmMvSVBhdGNoLmludGVyZmFjZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vc3JjL0lTY3JlZW5TaXplLmludGVyZmFjZSc7ICJdfQ==
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSUFwcFNvdXJjZS5pbnRlcmZhY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb2VyLWVsZW1lbnRzL2ludGVyZmFjZXMvc3JjL0lBcHBTb3VyY2UuaW50ZXJmYWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIElBcHBTb3VyY2Uge1xyXG4gICAgcGFnZTogc3RyaW5nO1xyXG4gICAgcGF0aDogc3RyaW5nO1xyXG59Il19
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSUJyZWFkY3J1bWIuaW50ZXJmYWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29lci1lbGVtZW50cy9pbnRlcmZhY2VzL3NyYy9JQnJlYWRjcnVtYi5pbnRlcmZhY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgSUJyZWFkY3J1bWIge1xyXG4gICAgcGFnZTogc3RyaW5nO1xyXG4gICAgcGF0aD86IHN0cmluZyB8IG51bGw7XHJcbiAgICBxdWVyeVBhcmFtcz86IGFueTtcclxuICAgIGNsaWNrPzogKCgpID0+IGFueSk7XHJcbn0iXX0=
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSUNvZXJSZWYuaW50ZXJmYWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29lci1lbGVtZW50cy9pbnRlcmZhY2VzL3NyYy9JQ29lclJlZi5pbnRlcmZhY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFRlbXBsYXRlUmVmLCBXcml0YWJsZVNpZ25hbCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xyXG5cclxuZXhwb3J0IGludGVyZmFjZSBJQ29lclJlZiB7XHJcbiAgICBjb2VyUmVmOiBXcml0YWJsZVNpZ25hbDxzdHJpbmc+O1xyXG4gICAgdGl0bGU6IFdyaXRhYmxlU2lnbmFsPHN0cmluZz47XHJcbiAgICBpY29uOiBXcml0YWJsZVNpZ25hbDxzdHJpbmc+O1xyXG4gICAgaXNEaXNhYmxlZDogV3JpdGFibGVTaWduYWw8Ym9vbGVhbj47XHJcbiAgICBzaG93OiBXcml0YWJsZVNpZ25hbDxib29sZWFuPjtcclxuICAgIHRvb2x0aXA6IFdyaXRhYmxlU2lnbmFsPHN0cmluZz47XHJcbiAgICB0ZW1wbGF0ZTogVGVtcGxhdGVSZWY8YW55PjtcclxufVxyXG4iXX0=
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSUdvQmFjay5pbnRlcmZhY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb2VyLWVsZW1lbnRzL2ludGVyZmFjZXMvc3JjL0lHb0JhY2suaW50ZXJmYWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIElHb0JhY2sge1xyXG4gICAgc2hvdzogYm9vbGVhbjtcclxuICAgIHBhdGg/OiBzdHJpbmcgfCBudWxsO1xyXG4gICAgcXVlcnlQYXJhbXM/OiBhbnk7XHJcbiAgICBjbGljaz86ICgoKSA9PiBhbnkpO1xyXG59Il19
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSVBhdGNoLmludGVyZmFjZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvZXItZWxlbWVudHMvaW50ZXJmYWNlcy9zcmMvSVBhdGNoLmludGVyZmFjZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBJUGF0Y2gge1xyXG4gICAgb3A6ICdyZW1vdmUnIHwgJ2FkZCcgfCAncmVwbGFjZSc7XHJcbiAgICBwYXRoOiBzdHJpbmc7XHJcbiAgICB2YWx1ZTogYW55O1xyXG59Il19
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSVNjcmVlblNpemUuaW50ZXJmYWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29lci1lbGVtZW50cy9pbnRlcmZhY2VzL3NyYy9JU2NyZWVuU2l6ZS5pbnRlcmZhY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgSVNjcmVlblNpemUge1xyXG4gICAgd2lkdGg6IG51bWJlcjtcclxuICAgIGhlaWdodDogbnVtYmVyO1xyXG4gICAgYnJlYWtwb2luOiAneHMnIHwgJ3NtJyB8ICdtZCcgfCAnbGcnIHwgJ3hsJyB8ICd4eGwnO1xyXG59Il19
|
@@ -1,63 +0,0 @@
|
|
1
|
-
import { Tools } from "./Tools";
|
2
|
-
export class Breadcrumbs {
|
3
|
-
static { this.storage = 'COER-System'; }
|
4
|
-
/** */
|
5
|
-
static Add(page, path) {
|
6
|
-
const breadcrumbs = this.Get();
|
7
|
-
const paths = breadcrumbs.map(item => item.path);
|
8
|
-
if (!paths.includes(path)) {
|
9
|
-
breadcrumbs.push({ page, path });
|
10
|
-
this.Save(breadcrumbs);
|
11
|
-
}
|
12
|
-
}
|
13
|
-
/** */
|
14
|
-
static Get() {
|
15
|
-
let storage = sessionStorage.getItem(this.storage);
|
16
|
-
if (storage) {
|
17
|
-
storage = JSON.parse(storage);
|
18
|
-
if (storage.hasOwnProperty('breadcrumbs')) {
|
19
|
-
return Tools.BreakReference(storage.breadcrumbs);
|
20
|
-
}
|
21
|
-
}
|
22
|
-
return [];
|
23
|
-
}
|
24
|
-
/** Source */
|
25
|
-
static GetFirst() {
|
26
|
-
const breadcrumbs = this.Get();
|
27
|
-
return (breadcrumbs.length > 0) ? breadcrumbs.shift() : null;
|
28
|
-
}
|
29
|
-
/** */
|
30
|
-
static Save(breadcrumbs) {
|
31
|
-
let storage = sessionStorage.getItem(this.storage);
|
32
|
-
if (storage)
|
33
|
-
storage = JSON.parse(storage);
|
34
|
-
storage = Object.assign({}, storage, { breadcrumbs });
|
35
|
-
sessionStorage.setItem(this.storage, JSON.stringify(storage));
|
36
|
-
}
|
37
|
-
/** */
|
38
|
-
static Remove(path) {
|
39
|
-
let breadcrumbs = this.Get();
|
40
|
-
const index = breadcrumbs.findIndex(x => x.path.toLowerCase().trim() === path.toLowerCase().trim());
|
41
|
-
if (index >= 0) {
|
42
|
-
breadcrumbs = Tools.BreakReference(breadcrumbs).splice(0, index + 1);
|
43
|
-
this.Save(breadcrumbs);
|
44
|
-
}
|
45
|
-
}
|
46
|
-
/** */
|
47
|
-
static SetLast(page, path) {
|
48
|
-
const breadcrumbs = this.Get();
|
49
|
-
if (breadcrumbs.length > 0) {
|
50
|
-
breadcrumbs[breadcrumbs.length - 1] = { page, path };
|
51
|
-
this.Save(breadcrumbs);
|
52
|
-
}
|
53
|
-
}
|
54
|
-
/** */
|
55
|
-
static RemoveLast() {
|
56
|
-
const breadcrumbs = this.Get();
|
57
|
-
if (breadcrumbs.length > 0) {
|
58
|
-
breadcrumbs.pop();
|
59
|
-
this.Save(breadcrumbs);
|
60
|
-
}
|
61
|
-
}
|
62
|
-
}
|
63
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQnJlYWRjcnVtYnMuY2xhc3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb2VyLWVsZW1lbnRzL3Rvb2xzL3NyYy9CcmVhZGNydW1icy5jbGFzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBRWhDLE1BQU0sT0FBTyxXQUFXO2FBRUksWUFBTyxHQUFHLGFBQWEsQ0FBQztJQUVoRCxNQUFNO0lBQ0MsTUFBTSxDQUFDLEdBQUcsQ0FBQyxJQUFZLEVBQUUsSUFBWTtRQUN4QyxNQUFNLFdBQVcsR0FBRyxJQUFJLENBQUMsR0FBRyxFQUFFLENBQUM7UUFDL0IsTUFBTSxLQUFLLEdBQUcsV0F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1bWJzID0gdGhpcy5HZXQoKTtcclxuICAgICAgICBjb25zdCBwYXRocyA9IGJyZWFkY3J1bWJzLm1hcChpdGVtID0+IGl0ZW0ucGF0aCk7XHJcblxyXG4gICAgICAgIGlmICghcGF0aHMuaW5jbHVkZXMocGF0aCkpIHtcclxuICAgICAgICAgICAgYnJlYWRjcnVtYnMucHVzaCh7IHBhZ2UsIHBhdGggfSk7XHJcbiAgICAgICAgICAgIHRoaXMuU2F2ZShicmVhZGNydW1icyk7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuXHJcbiAgICAvKiogKi9cclxuICAgIHB1YmxpYyBzdGF0aWMgR2V0KCk6IElBcHBTb3VyY2VbXSB7XHJcbiAgICAgICAgbGV0IHN0b3JhZ2UgPSBzZXNzaW9uU3RvcmFnZS5nZXRJdGVtKHRoaXMuc3RvcmFnZSkgYXMgYW55O1xyXG5cclxuICAgICAgICBpZiAoc3RvcmFnZSkge1xyXG4gICAgICAgICAgICBzdG9yYWdlID0gSlNPTi5wYXJzZShzdG9yYWdlKTtcclxuXHJcbiAgICAgICAgICAgIGlmIChzdG9yYWdlLmhhc093blByb3BlcnR5KCdicmVhZGNydW1icycpKSB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gVG9vbHMuQnJlYWtSZWZlcmVuY2Uoc3RvcmFnZS5icmVhZGNydW1icyk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIHJldHVybiBbXTtcclxuICAgIH1cclxuXHJcblxyXG4gICAgLyoqIFNvdXJjZSAqL1xyXG4gICAgcHVibGljIHN0YXRpYyBHZXRGaXJzdCgpOiBJQXBwU291cmNlIHwgbnVsbCB7XHJcbiAgICAgICAgY29uc3QgYnJlYWRjcnVtYnMgPSB0aGlzLkdldCgpO1xyXG4gICAgICAgIHJldHVybiAoYnJlYWRjcnVtYnMubGVuZ3RoID4gMCkgPyBicmVhZGNydW1icy5zaGlmdCgpISA6IG51bGw7XHJcbiAg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W5nLCBwYXRoOiBzdHJpbmcpOiB2b2lkIHtcclxuICAgICAgICBjb25zdCBicmVhZGNydW1icyA9IHRoaXMuR2V0KCk7XHJcblxyXG4gICAgICAgIGlmIChicmVhZGNydW1icy5sZW5ndGggPiAwKSB7XHJcbiAgICAgICAgICAgIGJyZWFkY3J1bWJzW2JyZWFkY3J1bWJzLmxlbmd0aCAtIDFdID0geyBwYWdlLCBwYXRoIH07XHJcbiAgICAgICAgICAgIHRoaXMuU2F2ZShicmVhZGNydW1icyk7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuXHJcbiAgICAvKiogKi9cclxuICAgIHB1YmxpYyBzdGF0aWMgUmVtb3ZlTGFzdCgpOiB2b2lkIHtcclxuICAgICAgICBjb25zdCBicmVhZGNydW1icyA9IHRoaXMuR2V0KCk7XHJcblxyXG4gICAgICAgIGlmIChicmVhZGNydW1icy5sZW5ndGggPiAwKSB7XHJcbiAgICAgICAgICAgIGJyZWFkY3J1bWJzLnBvcCgpO1xyXG4gICAgICAgICAgICB0aGlzLlNhdmUoYnJlYWRjcnVtYnMpO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxufSJdfQ==
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import moment from "moment";
|
2
|
-
export class DateTime {
|
3
|
-
/** Get UTC Offset */
|
4
|
-
static GetUTCOffset() {
|
5
|
-
return moment().utcOffset();
|
6
|
-
}
|
7
|
-
/** Convert UTC Date to Local Zone */
|
8
|
-
static ToLocalZone(utcDate) {
|
9
|
-
return moment(utcDate).add(DateTime.GetUTCOffset(), 'minutes').format('YYYY-MM-DD HH:mm:ss');
|
10
|
-
}
|
11
|
-
/** Convert Local Zone Date to UTC */
|
12
|
-
static ToUTC(utcDate) {
|
13
|
-
return moment(utcDate).subtract(DateTime.GetUTCOffset(), 'minutes').format('YYYY-MM-DD HH:mm:ss');
|
14
|
-
}
|
15
|
-
/** DD MMM YYYY */
|
16
|
-
static GetDateFormat(date) {
|
17
|
-
if ((typeof date === 'string'))
|
18
|
-
date = date.replaceAll('/', '-');
|
19
|
-
return moment(date).parseZone().local(true).format('DD MMM YYYY');
|
20
|
-
}
|
21
|
-
}
|
22
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGF0ZVRpbWUuY2xhc3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb2VyLWVsZW1lbnRzL3Rvb2xzL3NyYy9EYXRlVGltZS5jbGFzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLE1BQU0sTUFBTSxRQUFRLENBQUM7QUFFNUIsTUFBTSxPQUFPLFFBQVE7SUFDakIscUJBQXFCO0lBQ2QsTUFBTSxDQUFDLFlBQVk7UUFDdEIsT0FBTyxNQUFNLEVBQUUsQ0FBQyxTQUFTLEVBQUUsQ0FBQztJQUNoQyxDQUFDO0lBR0QscUNBQXFDO0lBQzlCLE1BQU0sQ0FBQyxXQUFXLENBQUMsT0FBc0M7UUFDNUQsT0FBTyxNQUFNLENBQUMsT0FBTyxDQUFDLENBQUMsR0FBRyxDQUFDLFFBQVEsQ0FBQyxZQUFZLEVBQUUsRUFBRSxTQUFTLENBQUMsQ0FBQyxNQUFNLENBQUMscUJBQXFCLENBQUMsQ0FBQztJQUNqRyxDQUFDO0lBR0QscUNBQXFDO0lBQzlCLE1BQU0sQ0FBQyxLQUFLLENBQUMsT0FBc0M7UUFDdEQsT0FBTyxNQUFNLENBQUMsT0FBTyxDQUFDLENBQUMsUUFBUSxDQUFDLFFBQVEsQ0FBQyxZQUFZLEVBQUUsRUFBRSxTQUFTLENBQUMsQ0FBQyxNQUFNLENBQUMscUJBQXFCLENBQUMsQ0FBQztJQUN0RyxDQUFDO0lBR0Qsa0JBQWtCO0lBQ1gsTUFBTSxDQUFDLGFBQWEsQ0FBQyxJQUFtQztRQUMzRCxJQUFJLENBQUMsT0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RjRGF0ZSkuc3VidHJhY3QoRGF0ZVRpbWUuR2V0VVRDT2Zmc2V0KCksICdtaW51dGVzJykuZm9ybWF0KCdZWVlZLU1NLUREIEhIOm1tOnNzJyk7XHJcbiAgICB9XHJcblxyXG5cclxuICAgIC8qKiBERCBNTU0gWVlZWSAqL1xyXG4gICAgcHVibGljIHN0YXRpYyBHZXREYXRlRm9ybWF0KGRhdGU6IHN0cmluZyB8IERhdGUgfCBtb21lbnQuTW9tZW50KTogc3RyaW5nIHtcclxuICAgICAgICBpZiAoKHR5cGVvZiBkYXRlID09PSAnc3RyaW5nJykpIGRhdGUgPSBkYXRlLnJlcGxhY2VBbGwoJy8nLCAnLScpO1xyXG4gICAgICAgIHJldHVybiBtb21lbnQoZGF0ZSkucGFyc2Vab25lKCkubG9jYWwodHJ1ZSkuZm9ybWF0KCdERCBNTU0gWVlZWScpO1xyXG4gICAgfVxyXG59Il19
|
@@ -1,93 +0,0 @@
|
|
1
|
-
import * as XLSX from 'xlsx';
|
2
|
-
import { Tools } from './Tools';
|
3
|
-
export class Files {
|
4
|
-
static { this.EXCEL_EXTENSIONS = ['xls', 'xlsx', 'csv']; }
|
5
|
-
/** Get Extension File */
|
6
|
-
static GetExtension(file) {
|
7
|
-
const fileName = file.name;
|
8
|
-
if (fileName.includes('.')) {
|
9
|
-
let worlds = fileName.split('.');
|
10
|
-
if (worlds.length > 0) {
|
11
|
-
let extension = worlds.pop();
|
12
|
-
extension = extension.trim().toLowerCase();
|
13
|
-
if (extension.length > 0)
|
14
|
-
return extension;
|
15
|
-
}
|
16
|
-
}
|
17
|
-
return null;
|
18
|
-
}
|
19
|
-
/** Is Excel File */
|
20
|
-
static IsExcel(file) {
|
21
|
-
const EXTENSION = Files.GetExtension(file);
|
22
|
-
return Tools.IsNotNull(EXTENSION)
|
23
|
-
? this.EXCEL_EXTENSIONS.includes(EXTENSION)
|
24
|
-
: false;
|
25
|
-
}
|
26
|
-
/** Read excel file */
|
27
|
-
static ReadExcel(file) {
|
28
|
-
return new Promise(Resolve => {
|
29
|
-
let columns = [];
|
30
|
-
let rows = [];
|
31
|
-
const reader = new FileReader();
|
32
|
-
reader.readAsArrayBuffer(file);
|
33
|
-
reader.onload = () => {
|
34
|
-
const dataBytes = new Uint8Array(reader.result);
|
35
|
-
if (dataBytes) {
|
36
|
-
const workbook = XLSX.read(dataBytes, {});
|
37
|
-
const sheet = workbook.Sheets[workbook.SheetNames[0]];
|
38
|
-
let dataSheet = XLSX.utils.sheet_to_json(sheet, {
|
39
|
-
header: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
|
40
|
-
});
|
41
|
-
//Get Headers
|
42
|
-
for (const column in dataSheet[0]) {
|
43
|
-
columns.push(Tools.FirstCharToLower(String(dataSheet[0][column]).replaceAll(' ', '')));
|
44
|
-
}
|
45
|
-
//Get Rows
|
46
|
-
rows = XLSX.utils.sheet_to_json(sheet, { header: columns });
|
47
|
-
rows.shift();
|
48
|
-
rows = rows.map(row => {
|
49
|
-
const item = Tools.BreakReference(row);
|
50
|
-
delete item['__rowNum__'];
|
51
|
-
return item;
|
52
|
-
});
|
53
|
-
}
|
54
|
-
Resolve({ columns, rows });
|
55
|
-
};
|
56
|
-
reader.onerror = () => { Resolve({ columns, rows }); };
|
57
|
-
});
|
58
|
-
}
|
59
|
-
/** Export to excel file */
|
60
|
-
static ExportExcel(data, fileName = 'coer_report', sheetName = 'Sheet1') {
|
61
|
-
sheetName = Tools.CleanUpBlanks(sheetName);
|
62
|
-
fileName = Tools.CleanUpBlanks(fileName);
|
63
|
-
if (fileName.endsWith('.xls') || fileName.endsWith('.xlsx') || fileName.endsWith('.csv')) {
|
64
|
-
if (fileName.includes('.xls')) {
|
65
|
-
fileName = fileName.replaceAll('.xls', '.xlsx');
|
66
|
-
}
|
67
|
-
if (fileName.includes('.csv')) {
|
68
|
-
fileName = fileName.replaceAll('.csv', '.xlsx');
|
69
|
-
}
|
70
|
-
}
|
71
|
-
else {
|
72
|
-
fileName += '.xlsx';
|
73
|
-
}
|
74
|
-
const WORK_SHEET = XLSX.utils.json_to_sheet(data);
|
75
|
-
const WORK_BOOK = XLSX.utils.book_new();
|
76
|
-
XLSX.utils.book_append_sheet(WORK_BOOK, WORK_SHEET, 'Sheet1');
|
77
|
-
XLSX.writeFile(WORK_BOOK, fileName);
|
78
|
-
}
|
79
|
-
/** Convert file to string base64 */
|
80
|
-
static ConvertToBase64(file) {
|
81
|
-
return new Promise(Resolve => {
|
82
|
-
const reader = new FileReader();
|
83
|
-
reader.readAsDataURL(file);
|
84
|
-
reader.onload = () => {
|
85
|
-
Resolve(reader.result?.toString() || '');
|
86
|
-
};
|
87
|
-
reader.onerror = () => {
|
88
|
-
Resolve('');
|
89
|
-
};
|
90
|
-
});
|
91
|
-
}
|
92
|
-
}
|
93
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRmlsZXMuY2xhc3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb2VyLWVsZW1lbnRzL3Rvb2xzL3NyYy9GaWxlcy5jbGFzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssSUFBSSxNQUFNLE1BQU0sQ0FBQztBQUM3QixPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBRWhDLE1BQU0sT0FBTyxLQUFLO2FBQ1MscUJBQWdCLEdBQWEsQ0FBQyxLQUFLLEVBQUUsTUFBTSxFQUFFLEtBQUssQ0FBQyxDQUFDO0lBRTNFLHlCQUF5QjtJQUNsQixNQUFNLENBQUMsWUFBWSxDQUFDLElBQVU7UUFDakMsTUFBTSxRQUFRLEdBQUcsSUFBSSxDQUFDLElBQUksQ0FBQztRQUUzQ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clxuXHJcbiAgICAgICAgICAgIGlmICh3b3JsZHMubGVuZ3RoID4gMCkge1xyXG4gICAgICAgICAgICAgICAgbGV0IGV4dGVuc2lvbiA9IHdvcmxkcy5wb3AoKSE7XHJcbiAgICAgICAgICAgICAgICBleHRlbnNpb24gPSBleHRlbnNpb24udHJpbSgpLnRvTG93ZXJDYXNlKCk7XHJcbiAgICAgICAgICAgICAgICBpZiAoZXh0ZW5zaW9uLmxlbmd0aCA+IDApIHJldHVybiBleHRlbnNpb247XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIHJldHVybiBudWxsO1xyXG4gICAgfVxyXG5cclxuXHJcbiAgICAvKiogSXMgRXhjZWwgRmlsZSAqL1xyXG4gICAgcHVibGljIHN0YXRpYyBJc0V4Y2VsKGZpbGU6IEZpbGUpOiBib29sZWFuIHtcclxuICAgICAgICBjb25zdCBFWFRFTlNJT04gPSBGaWxlcy5HZXRFeHRlbnNpb24oZmlsZSk7XHJcblxyXG4gICAgICAgIHJldHVybiBUb29scy5Jc05vdE51bGwoRVhURU5TSU9OKVxyXG4gICAgICAgICAgICA/IHRoaXMuRVhDRUxfRVhURU5TSU9OUy5pbmNsdWRlcyhFWFRFTlNJT04hKVxyXG4gICAgICAgICAgICA6IGZhbHNlO1xyXG4gICAgfVxyXG5cclxuXHJcbiAgICAvKiogUmVhZCBleGNlbCBmaWxlICovXHJcbiAgICBwdWJsaWMgc3RhdGljIFJlYWRFeGNlbDxUPihmaWxlOiBGaWxlKSB7XHJcbiAgICAgICAgcmV0dXJuIG5ldyBQcm9taXNlPHsgY29sdW1uczogc3RyaW5nW107IHJvd3M6IFRbXTsgfT4oUmVzb2x2ZSA9PiB7XHJcbiAgICAgICAgICAgIGxldCBjb2x1bW5zOiBzdHJpbmdbXSA9IFtdO1xyXG4gICAgICAgICAgICBsZXQgcm93czogVFtdID0gW107XHJcblxyXG4gICAgICAgICAgICBjb25zdCByZWFkZXIgPSBuZXcgRmlsZVJlYWRlcigpO1xyXG4gICAgICAgICAgICByZWFkZXIucmVhZEFzQXJyYXlCdWZmZXIoZmlsZSk7XHJcblxyXG4gICAgICAgICAgICByZWFkZXIub25sb2FkID0gKCkgPT4ge1xyXG4gICAgICAgICAgICAgICAgY29uc3QgZGF0YUJ5dGVzID0gbmV3IFVpbnQ4QXJyYXkocmVhZGVyLnJlc3VsdCBhcyBhbnkpO1xyXG5cclxuICAgICAgICAgICAgICAgIGlmIChkYXRhQnl0ZXMpIHtcclxuICAgICAgICAgICAgICAgICAgICBjb25zdCB3b3JrYm9vayA9IFhMU1gucmVhZChkYXRhQnl0ZXMsIHt9KTtcclxuICAgICAgICAgICAgICAgICAgICBjb25zdCBzaGVldCA9IHdvcmtib29rLlNoZWV0c1t3b3JrYm9vay5TaGVldE5hbWVzWzBdXTtcclxuICAgICAgICAgICAgICAgICAgICBsZXQgZGF0YVNoZWV0OiBhbnlbXSA9IFhMU1gudXRpbHMuc2hlZXRfdG9fanNvbihzaGVldCwge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBoZWFkZXI6IFsnQScsICdCJywgJ0MnLCAnRCcsICdFJywgJ0YnLCAnRycsICdIJywgJ0knLCAnSicsICdLJywgJ0wnLCAnTScsICdOJywgJ08nLCAnUCcsICdRJywgJ1InLCAnUycsICdUJywgJ1UnLCAnVicsICdXJywgJ1gnLCAnWScsICdaJ11cclxuICAgICAgICAgICAgICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgICAgICAgICAgICAgLy9HZXQgSGVhZGVyc1xyXG4gICAgICAgICAgICAgICAgICAgIGZvcihjb25zdCBjb2x1bW4gaW4gZGF0YVNoZWV0WzBdKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbHVtbnMucHVzaChUb29scy5GaXJzdENoYXJUb0xvd2VyKFN0cmluZyhkYXRhU2hlZXRbMF1bY29sdW1uXSkucmVwbGFjZUFsbCgnICcsICcnKSkpO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgLy9HZXQgUm93c1xyXG4gICAgICAgICAgICAgICAgICAgIHJvd3MgPSBYTFNYLnV0aWxzLnNoZWV0X3RvX2pzb24oc2hlZXQsIHsgaGVhZGVyOiBjb2x1bW5zIH0pO1xyXG4gICAgICAgICAgICAgICAgICAgIHJvd3Muc2hpZnQoKTtcclxuXHJcbiAgICAgICAgICAgICAgICAgICAgcm93cyA9IHJvd3MubWFwKHJvdyA9PiB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGl0ZW0gPSBUb29scy5CcmVha1JlZmVyZW5jZTxhbnk+KHJvdyk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGRlbGV0ZSBpdGVtWydfX3Jvd051bV9fJ107XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBpdGVtO1xyXG4gICAgICAgICAgICAgICAgICAgIH0pO1xyXG4gICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgIFJlc29sdmUoeyBjb2x1bW5zLCByb3dzIH0pO1xyXG4gICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICByZWFkZXIub25lcnJvciA9ICgpID0+IHsgUmVzb2x2ZSh7IGNvbHVtbnMsIHJvd3MgfSkgfVxyXG4gICAgICAgIH0pO1xyXG4gICAgfVxyXG5cclxuXHJcbiAgICAvKiogRXhwb3J0IHRvIGV4Y2VsIGZpbGUgKi9cclxuICAgIHB1YmxpYyBzdGF0aWMgRXhwb3J0RXhjZWw8VD4oZGF0YTogVFtdLCBmaWxlTmFtZTogc3RyaW5nID0gJ2NvZXJfcmVwb3J0Jywgc2hlZXROYW1lOiBzdHJpbmcgPSAnU2hlZXQxJykge1xyXG4gICAgICAgIHNoZWV0TmFtZSA9IFRvb2xzLkNsZWFuVXBCbGFua3Moc2hlZXROYW1lKTtcclxuICAgICAgICBmaWxlTmFtZSA9IFRvb2xzLkNsZWFuVXBCbGFua3MoZmlsZU5hbWUpO1xyXG5cclxuICAgICAgICBpZihmaWxlTmFtZS5lbmRzV2l0aCgnLnhscycpIHx8IGZpbGVOYW1lLmVuZHNXaXRoKCcueGxzeCcpIHx8IGZpbGVOYW1lLmVuZHNXaXRoKCcuY3N2JykpIHtcclxuICAgICAgICAgICAgaWYgKGZpbGVOYW1lLmluY2x1ZGVzKCcueGxzJykpIHtcclxuICAgICAgICAgICAgICAgIGZpbGVOYW1lID0gZmlsZU5hbWUucmVwbGFjZUFsbCgnLnhscycsICcueGxzeCcpO1xyXG4gICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICBpZiAoZmlsZU5hbWUuaW5jbHVkZXMoJy5jc3YnKSkge1xyXG4gICAgICAgICAgICAgICAgZmlsZU5hbWUgPSBmaWxlTmFtZS5yZXBsYWNlQWxsKCcuY3N2JywgJy54bHN4Jyk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIGVsc2Uge1xyXG4gICAgICAgICAgICBmaWxlTmFtZSArPSAnLnhsc3gnO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgY29uc3QgV09SS19TSEVFVCA9IFhMU1gudXRpbHMuanNvbl90b19zaGVldChkYXRhKTtcclxuICAgICAgICBjb25zdCBXT1JLX0JPT0sgPSBYTFNYLnV0aWxzLmJvb2tfbmV3KCk7XHJcbiAgICAgICAgWExTWC51dGlscy5ib29rX2FwcGVuZF9zaGVldChXT1JLX0JPT0ssIFdPUktfU0hFRVQsICdTaGVldDEnKTtcclxuICAgICAgICBYTFNYLndyaXRlRmlsZShXT1JLX0JPT0ssIGZpbGVOYW1lKTtcclxuICAgIH1cclxuXHJcblxyXG4gICAgLyoqIENvbnZlcnQgZmlsZSB0byBzdHJpbmcgYmFzZTY0ICovXHJcbiAgICBwdWJsaWMgc3RhdGljIENvbnZlcnRUb0Jhc2U2NChmaWxlOiBGaWxlKSB7XHJcbiAgICAgICAgcmV0dXJuIG5ldyBQcm9taXNlPHN0cmluZz4oUmVzb2x2ZSA9PiB7XHJcbiAgICAgICAgICAgIGNvbnN0IHJlYWRlciA9IG5ldyBGaWxlUmVhZGVyKCk7XHJcbiAgICAgICAgICAgIHJlYWRlci5yZWFkQXNEYXRhVVJMKGZpbGUpO1xyXG5cclxuICAgICAgICAgICAgcmVhZGVyLm9ubG9hZCA9ICgpID0+IHtcclxuICAgICAgICAgICAgICAgIFJlc29sdmUocmVhZGVyLnJlc3VsdD8udG9TdHJpbmcoKSB8fCAnJyk7XHJcbiAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgIHJlYWRlci5vbmVycm9yID0gKCkgPT4ge1xyXG4gICAgICAgICAgICAgICAgUmVzb2x2ZSgnJyk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9KTtcclxuICAgIH1cclxufSJdfQ==
|
@@ -1,162 +0,0 @@
|
|
1
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
2
|
-
import { Component, Inject, inject } from '@angular/core';
|
3
|
-
import { CoerAlert } from '../../components';
|
4
|
-
import { Source } from './Source.class';
|
5
|
-
import { Tools } from './Tools';
|
6
|
-
import { Breadcrumbs } from './Breadcrumbs.class';
|
7
|
-
import * as i0 from "@angular/core";
|
8
|
-
export class Page {
|
9
|
-
constructor(page) {
|
10
|
-
//Injection
|
11
|
-
this.alert = inject(CoerAlert);
|
12
|
-
this.router = inject(Router);
|
13
|
-
this.activatedRoute = inject(ActivatedRoute);
|
14
|
-
/** */
|
15
|
-
this.isUpdate = false;
|
16
|
-
/** */
|
17
|
-
this.isLoading = false;
|
18
|
-
/** */
|
19
|
-
this.isReady = false;
|
20
|
-
/** */
|
21
|
-
this.enableAnimations = false;
|
22
|
-
/** */
|
23
|
-
this.breadcrumbs = [];
|
24
|
-
/** */
|
25
|
-
this.pageResponse = null;
|
26
|
-
/** */
|
27
|
-
this.goBack = { show: false };
|
28
|
-
//Private Variables
|
29
|
-
this._page = '';
|
30
|
-
this._source = null;
|
31
|
-
this._preventDestroy = false;
|
32
|
-
/** */
|
33
|
-
this.GoBack = (path) => (() => {
|
34
|
-
if (path)
|
35
|
-
Breadcrumbs.Remove(path);
|
36
|
-
else
|
37
|
-
Breadcrumbs.RemoveLast();
|
38
|
-
});
|
39
|
-
/** Returns true if the value is null or undefined, false otherwise */
|
40
|
-
this.IsNotNull = Tools.IsNotNull;
|
41
|
-
/** Returns true if the value is null or undefined, false otherwise */
|
42
|
-
this.IsNull = Tools.IsNull;
|
43
|
-
/** Returns true if the value is null or undefined or contains only whitespace, false otherwise */
|
44
|
-
this.IsOnlyWhiteSpace = Tools.IsOnlyWhiteSpace;
|
45
|
-
this.SetPageName(page);
|
46
|
-
this.SetSource();
|
47
|
-
this.GetSource();
|
48
|
-
this.GetNavigation();
|
49
|
-
this.SetGoBack();
|
50
|
-
this.GetPageResponse();
|
51
|
-
}
|
52
|
-
ngAfterViewInit() {
|
53
|
-
this.routeParams = this.activatedRoute.snapshot.params;
|
54
|
-
this.queryParams = this.activatedRoute.snapshot.queryParams;
|
55
|
-
setTimeout(() => {
|
56
|
-
this.isReady = true;
|
57
|
-
this.RunPage();
|
58
|
-
setTimeout(() => { this.enableAnimations = true; }, 1000);
|
59
|
-
});
|
60
|
-
}
|
61
|
-
ngOnDestroy() {
|
62
|
-
if (!this._preventDestroy)
|
63
|
-
Source.ClearPageResponse();
|
64
|
-
}
|
65
|
-
/** Main method. Starts after ngAfterViewInit() */
|
66
|
-
RunPage() { }
|
67
|
-
;
|
68
|
-
/** Rename the last breadcrumb and update the url id */
|
69
|
-
SetPageName(name, id = null) {
|
70
|
-
this._page = name;
|
71
|
-
let path = this.router.url;
|
72
|
-
if (path.includes('?'))
|
73
|
-
path = path.split('?')[0];
|
74
|
-
if (id) {
|
75
|
-
const PATH_ARRAY = path.split('/');
|
76
|
-
const PATH_ID = Tools.BreakReference(PATH_ARRAY).pop();
|
77
|
-
if (PATH_ID) {
|
78
|
-
PATH_ARRAY[PATH_ARRAY.length - 1] = String(id);
|
79
|
-
path = PATH_ARRAY.join('/');
|
80
|
-
}
|
81
|
-
}
|
82
|
-
if (this.breadcrumbs.length > 0) {
|
83
|
-
this.breadcrumbs[this.breadcrumbs.length - 1].page = name;
|
84
|
-
this.breadcrumbs[this.breadcrumbs.length - 1].path = path;
|
85
|
-
Breadcrumbs.SetLast(name, path);
|
86
|
-
}
|
87
|
-
this.router.navigateByUrl(path);
|
88
|
-
}
|
89
|
-
/** */
|
90
|
-
SetSource() {
|
91
|
-
Source.Set(this._page);
|
92
|
-
}
|
93
|
-
/** */
|
94
|
-
GetSource() {
|
95
|
-
this._source = Source.Get();
|
96
|
-
}
|
97
|
-
/** */
|
98
|
-
GetPageResponse() {
|
99
|
-
this.pageResponse = Source.GetPageResponse();
|
100
|
-
}
|
101
|
-
/** */
|
102
|
-
GetNavigation() {
|
103
|
-
if (this._source) {
|
104
|
-
this.breadcrumbs = Breadcrumbs.Get().map(item => Object.assign({
|
105
|
-
page: item.page,
|
106
|
-
path: item.path,
|
107
|
-
click: this.GoBack(item.path)
|
108
|
-
}));
|
109
|
-
}
|
110
|
-
else
|
111
|
-
this.breadcrumbs = [{ page: this._page }];
|
112
|
-
}
|
113
|
-
/** */
|
114
|
-
SetGoBack() {
|
115
|
-
if (this._source) {
|
116
|
-
this.goBack = {
|
117
|
-
show: true,
|
118
|
-
path: this._source.path,
|
119
|
-
click: this.GoBack()
|
120
|
-
};
|
121
|
-
}
|
122
|
-
}
|
123
|
-
/** Navigate to previous page */
|
124
|
-
GoToSource(pageResponse = null) {
|
125
|
-
if (this._source) {
|
126
|
-
Breadcrumbs.RemoveLast();
|
127
|
-
this.SetPageResponse(pageResponse);
|
128
|
-
Tools.Sleep().then(_ => this.router.navigateByUrl(this._source.path));
|
129
|
-
}
|
130
|
-
}
|
131
|
-
;
|
132
|
-
/** */
|
133
|
-
SetPageResponse(pageResponse = null) {
|
134
|
-
if (Tools.IsNotNull(pageResponse)) {
|
135
|
-
this._preventDestroy = true;
|
136
|
-
Source.SetPageResponse(pageResponse);
|
137
|
-
}
|
138
|
-
}
|
139
|
-
;
|
140
|
-
/** */
|
141
|
-
ReloadPage() {
|
142
|
-
Breadcrumbs.RemoveLast();
|
143
|
-
Tools.Sleep().then(_ => window.location.reload());
|
144
|
-
}
|
145
|
-
/** */
|
146
|
-
Log(value, log = null) {
|
147
|
-
if (Tools.IsNotNull(log))
|
148
|
-
console.log({ log, value });
|
149
|
-
else
|
150
|
-
console.log(value);
|
151
|
-
}
|
152
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: Page, deps: [{ token: String }], target: i0.ɵɵFactoryTarget.Component }); }
|
153
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: Page, selector: "ng-component", ngImport: i0, template: '', isInline: true }); }
|
154
|
-
}
|
155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: Page, decorators: [{
|
156
|
-
type: Component,
|
157
|
-
args: [{ template: '' }]
|
158
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
159
|
-
type: Inject,
|
160
|
-
args: [String]
|
161
|
-
}] }] });
|
162
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGFnZS5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvZXItZWxlbWVudHMvdG9vbHMvc3JjL1BhZ2UuY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUN6RCxPQUFPLEVBQWlCLFNBQVMsRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFhLE1BQU0sZUFBZSxDQUFDO0FBRXBGLE9BQU8sRUFB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JcblxyXG5cclxuICAgIC8qKiAqL1xyXG4gICAgcHJpdmF0ZSBHZXROYXZpZ2F0aW9uKCk6IHZvaWQge1xyXG4gICAgICAgIGlmICh0aGlzLl9zb3VyY2UpIHtcclxuICAgICAgICAgICAgdGhpcy5icmVhZGNydW1icyA9IEJyZWFkY3J1bWJzLkdldCgpLm1hcChpdGVtID0+IE9iamVjdC5hc3NpZ24oe1xyXG4gICAgICAgICAgICAgICAgcGFnZTogaXRlbS5wYWdlLFxyXG4gICAgICAgICAgICAgICAgcGF0aDogaXRlbS5wYXRoLFxyXG4gICAgICAgICAgICAgICAgY2xpY2s6IHRoaXMuR29CYWNrKGl0ZW0ucGF0aClcclxuICAgICAgICAgICAgfSkpO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgZWxzZSB0aGlzLmJyZWFkY3J1bWJzID0gW3sgcGFnZTogdGhpcy5fcGFnZSB9XTtcclxuICAgIH1cclxuXHJcblxyXG4gICAgLyoqICovXHJcbiAgICBwcml2YXRlIFNldEdvQmFjaygpOiB2b2lkIHtcclxuICAgICAgICBpZiAodGhpcy5fc291cmNlKSB7XHJcbiAgICAgICAgICAgIHRoaXMuZ29CYWNrID0ge1xyXG4gICAgICAgICAgICAgICAgc2hvdzogdHJ1ZSxcclxuICAgICAgICAgICAgICAgIHBhdGg6IHRoaXMuX3NvdXJjZS5wYXRoLFxyXG4gICAgICAgICAgICAgICAgY2xpY2s6IHRoaXMuR29CYWNrKClcclxuICAgICAgICAgICAgfTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG5cclxuICAgIC8qKiAqL1xyXG4gICAgcHJpdmF0ZSBHb0JhY2sgPSAocGF0aD86IHN0cmluZykgPT4gKCgpID0+IHtcclxuICAgICAgICBpZiAocGF0aCkgQnJlYWRjcnVtYnMuUmVtb3ZlKHBhdGgpO1xyXG4gICAgICAgIGVsc2UgQnJlYWRjcnVtYnMuUmVtb3ZlTGFzdCgpO1xyXG4gICAgfSk7XHJcblxyXG5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LCBsb2c6IHN0cmluZyB8IG51bGwgPSBudWxsKTogdm9pZCB7XHJcbiAgICAgICAgaWYgKFRvb2xzLklzTm90TnVsbChsb2cpKSBjb25zb2xlLmxvZyh7IGxvZywgdmFsdWUgfSk7XHJcbiAgICAgICAgZWxzZSBjb25zb2xlLmxvZyh2YWx1ZSk7XHJcbiAgICB9XHJcblxyXG5cclxuICAgIC8qKiBSZXR1cm5zIHRydWUgaWYgdGhlIHZhbHVlIGlzIG51bGwgb3IgdW5kZWZpbmVkLCBmYWxzZSBvdGhlcndpc2UgKi9cclxuICAgIHByb3RlY3RlZCBJc05vdE51bGwgPSBUb29scy5Jc05vdE51bGw7XHJcblxyXG4gICAgLyoqIFJldHVybnMgdHJ1ZSBpZiB0aGUgdmFsdWUgaXMgbnVsbCBvciB1bmRlZmluZWQsIGZhbHNlIG90aGVyd2lzZSAqL1xyXG4gICAgcHJvdGVjdGVkIElzTnVsbCA9IFRvb2xzLklzTnVsbDtcclxuXHJcbiAgICAvKiogUmV0dXJucyB0cnVlIGlmIHRoZSB2YWx1ZSBpcyBudWxsIG9yIHVuZGVmaW5lZCBvciBjb250YWlucyBvbmx5IHdoaXRlc3BhY2UsIGZhbHNlIG90aGVyd2lzZSAqL1xyXG4gICAgcHJvdGVjdGVkIElzT25seVdoaXRlU3BhY2UgID0gVG9vbHMuSXNPbmx5V2hpdGVTcGFjZTtcclxufSJdfQ==
|
@@ -1,43 +0,0 @@
|
|
1
|
-
import { Observable } from "rxjs";
|
2
|
-
export class Screen {
|
3
|
-
static get WINDOW_WIDTH() {
|
4
|
-
return window.innerWidth;
|
5
|
-
}
|
6
|
-
static get WINDOW_HEIGHT() {
|
7
|
-
return window.innerHeight;
|
8
|
-
}
|
9
|
-
static get DEVICE_WIDTH() {
|
10
|
-
return window.screen.width;
|
11
|
-
}
|
12
|
-
static get DEVICE_HEIGHT() {
|
13
|
-
return window.screen.height;
|
14
|
-
}
|
15
|
-
static get BREAKPOINT() {
|
16
|
-
if (window.innerWidth < 576)
|
17
|
-
return 'xs';
|
18
|
-
else if (window.innerWidth >= 576 && window.innerWidth < 768)
|
19
|
-
return 'sm';
|
20
|
-
else if (window.innerWidth >= 768 && window.innerWidth < 992)
|
21
|
-
return 'md';
|
22
|
-
else if (window.innerWidth >= 992 && window.innerWidth < 1200)
|
23
|
-
return 'lg';
|
24
|
-
else if (window.innerWidth >= 1200 && window.innerWidth < 1400)
|
25
|
-
return 'xl';
|
26
|
-
else
|
27
|
-
return 'xxl';
|
28
|
-
}
|
29
|
-
/** */
|
30
|
-
static { this.Resize = new Observable(subscriber => {
|
31
|
-
window.addEventListener("load", () => {
|
32
|
-
window.dispatchEvent(new Event('resize'));
|
33
|
-
});
|
34
|
-
window.onresize = () => {
|
35
|
-
subscriber.next({
|
36
|
-
width: window.innerWidth,
|
37
|
-
height: window.innerHeight,
|
38
|
-
breakpoin: this.BREAKPOINT
|
39
|
-
});
|
40
|
-
};
|
41
|
-
}); }
|
42
|
-
}
|
43
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2NyZWVuLmNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29lci1lbGVtZW50cy90b29scy9zcmMvU2NyZWVuLmNsYXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFFbEMsTUFBTSxPQUFPLE1BQU07SUFFUixNQUFNLEtBQUssWUFBWTtRQUMxQixPQUFPLE1BQU0sQ0FBQyxVQUFVLENBQUM7SUFDN0IsQ0FBQztJQUdNLE1BQU0sS0FBSyxhQUFhO1FBQzNCLE9BQU8sTUFBTSxDQUFDLFdBQVcsQ0FBQztJQUM5QixDQUFDO0lBR00sTUFBTSxLQUFLLFlBQVk7UUFDMUIsT0FBTyxNQUFNLENBQUMsTUF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gICAgICAgaWYgKHdpbmRvdy5pbm5lcldpZHRoIDwgNTc2KSByZXR1cm4gJ3hzJztcclxuICAgICAgICBlbHNlIGlmICh3aW5kb3cuaW5uZXJXaWR0aCA+PSA1NzYgJiYgd2luZG93LmlubmVyV2lkdGggPCA3NjgpIHJldHVybiAnc20nO1xyXG4gICAgICAgIGVsc2UgaWYgKHdpbmRvdy5pbm5lcldpZHRoID49IDc2OCAmJiB3aW5kb3cuaW5uZXJXaWR0aCA8IDk5MikgcmV0dXJuICdtZCc7XHJcbiAgICAgICAgZWxzZSBpZiAod2luZG93LmlubmVyV2lkdGggPj0gOTkyICYmIHdpbmRvdy5pbm5lcldpZHRoIDwgMTIwMCkgcmV0dXJuICdsZyc7XHJcbiAgICAgICAgZWxzZSBpZiAod2luZG93LmlubmVyV2lkdGggPj0gMTIwMCAmJiB3aW5kb3cuaW5uZXJXaWR0aCA8IDE0MDApIHJldHVybiAneGwnO1xyXG4gICAgICAgIGVsc2UgcmV0dXJuICd4eGwnO1xyXG4gICAgfVxyXG5cclxuXHJcbiAgICAvKiogKi9cclxuICAgIHB1YmxpYyBzdGF0aWMgUmVzaXplID0gbmV3IE9ic2VydmFibGU8SVNjcmVlblNpemU+KHN1YnNjcmliZXIgPT4ge1xyXG4gICAgICAgIHdpbmRvdy5hZGRFdmVudExpc3RlbmVyKFwibG9hZFwiLCAoKSA9PiB7XHJcbiAgICAgICAgICAgIHdpbmRvdy5kaXNwYXRjaEV2ZW50KG5ldyBFdmVudCgncmVzaXplJykpO1xyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAgICB3aW5kb3cub25yZXNpemUgPSAoKSA9PiB7XHJcbiAgICAgICAgICAgIHN1YnNjcmliZXIubmV4dCh7XHJcbiAgICAgICAgICAgICAgICB3aWR0aDogd2luZG93LmlubmVyV2lkdGgsXHJcbiAgICAgICAgICAgICAgICBoZWlnaHQ6IHdpbmRvdy5pbm5lckhlaWdodCxcclxuICAgICAgICAgICAgICAgIGJyZWFrcG9pbjogdGhpcy5CUkVBS1BPSU5UXHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgIH1cclxuICAgIH0pO1xyXG59Il19
|