ecabs-components 0.0.59 → 0.0.61
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/assets/images/nothing-here.svg +22 -0
- package/esm2020/lib/base/directives/digits-only.directive.mjs +2 -2
- package/esm2020/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.mjs +9 -5
- package/esm2020/lib/ecabs-expansion-panel/ecabs-expansion-panel.component.mjs +1 -1
- package/esm2020/lib/ecabs-increment/ecabs-increment.component.mjs +2 -2
- package/esm2020/lib/ecabs-picker-header/ecabs-picker-header.component.mjs +2 -2
- package/fesm2015/ecabs-components.mjs +14 -10
- package/fesm2015/ecabs-components.mjs.map +1 -1
- package/fesm2020/ecabs-components.mjs +14 -10
- package/fesm2020/ecabs-components.mjs.map +1 -1
- package/lib/base/consts/date-mask.consts.ts +70 -0
- package/lib/base/directives/date-mask.directive.module.ts +15 -0
- package/lib/base/directives/date-mask.directive.ts +58 -0
- package/lib/base/directives/digits-only.directive.module.ts +15 -0
- package/lib/base/directives/digits-only.directive.ts +129 -0
- package/lib/base/directives/number-border.directive.module.ts +14 -0
- package/lib/base/directives/number-border.directive.ts +57 -0
- package/lib/base/element-base.ts +72 -0
- package/lib/base/element-wrapper/element-wrapper.component.html +30 -0
- package/lib/base/element-wrapper/element-wrapper.component.ts +33 -0
- package/lib/base/element-wrapper/element-wrapper.module.ts +30 -0
- package/lib/base/hint/hint.component.html +1 -0
- package/lib/base/hint/hint.component.scss +0 -0
- package/lib/base/hint/hint.component.ts +12 -0
- package/lib/base/hint/hint.module.ts +13 -0
- package/lib/base/validation/validation.component.html +8 -0
- package/lib/base/validation/validation.component.scss +0 -0
- package/lib/base/validation/validation.component.ts +84 -0
- package/lib/base/validation/validation.module.ts +12 -0
- package/lib/ecabs-active-status-filter/ecabs-active-status-filter.component.html +14 -0
- package/lib/ecabs-active-status-filter/ecabs-active-status-filter.component.scss +16 -0
- package/lib/ecabs-active-status-filter/ecabs-active-status-filter.component.ts +23 -0
- package/lib/ecabs-active-status-filter/ecabs-active-status-filter.module.ts +13 -0
- package/lib/ecabs-breadcrumb/ecabs-breadcrumb.component.html +11 -0
- package/lib/ecabs-breadcrumb/ecabs-breadcrumb.component.scss +0 -0
- package/lib/ecabs-breadcrumb/ecabs-breadcrumb.component.spec.ts +24 -0
- package/lib/ecabs-breadcrumb/ecabs-breadcrumb.component.ts +12 -0
- package/lib/ecabs-breadcrumb/ecabs-breadcrumb.module.ts +12 -0
- package/lib/ecabs-buttons/ecabs-buttons.component.html +18 -0
- package/lib/ecabs-buttons/ecabs-buttons.component.ts +54 -0
- package/lib/ecabs-buttons/ecabs-buttons.module.ts +13 -0
- package/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.d.ts +5 -3
- package/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.html +27 -0
- package/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.scss +15 -0
- package/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.ts +86 -0
- package/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.module.ts +21 -0
- package/lib/ecabs-date-picker/components/ecabs-date-picker-header/ecabs-date-picker-header.component.html +4 -0
- package/lib/ecabs-date-picker/components/ecabs-date-picker-header/ecabs-date-picker-header.component.scss +0 -0
- package/lib/ecabs-date-picker/components/ecabs-date-picker-header/ecabs-date-picker-header.component.spec.ts +23 -0
- package/lib/ecabs-date-picker/components/ecabs-date-picker-header/ecabs-date-picker-header.component.ts +11 -0
- package/lib/ecabs-date-picker/ecabs-date-picker.component.html +31 -0
- package/lib/ecabs-date-picker/ecabs-date-picker.component.scss +10 -0
- package/lib/ecabs-date-picker/ecabs-date-picker.component.spec.ts +24 -0
- package/lib/ecabs-date-picker/ecabs-date-picker.component.ts +72 -0
- package/lib/ecabs-date-picker/ecabs-date-picker.module.ts +28 -0
- package/lib/ecabs-date-range-picker/components/ecabs-date-range-picker-header/ecabs-date-range-picker-header.component.html +4 -0
- package/lib/ecabs-date-range-picker/components/ecabs-date-range-picker-header/ecabs-date-range-picker-header.component.scss +1 -0
- package/lib/ecabs-date-range-picker/components/ecabs-date-range-picker-header/ecabs-date-range-picker-header.component.spec.ts +23 -0
- package/lib/ecabs-date-range-picker/components/ecabs-date-range-picker-header/ecabs-date-range-picker-header.component.ts +11 -0
- package/lib/ecabs-date-range-picker/ecabs-date-range-picker.component.html +31 -0
- package/lib/ecabs-date-range-picker/ecabs-date-range-picker.component.scss +23 -0
- package/lib/ecabs-date-range-picker/ecabs-date-range-picker.component.spec.ts +23 -0
- package/lib/ecabs-date-range-picker/ecabs-date-range-picker.component.ts +113 -0
- package/lib/ecabs-date-range-picker/ecabs-date-range-picker.module.ts +48 -0
- package/lib/ecabs-date-time-picker/components/ecabs-date-time-picker-header/ecabs-date-time-picker-header.component.html +4 -0
- package/lib/ecabs-date-time-picker/components/ecabs-date-time-picker-header/ecabs-date-time-picker-header.component.scss +14 -0
- package/lib/ecabs-date-time-picker/components/ecabs-date-time-picker-header/ecabs-date-time-picker-header.component.ts +11 -0
- package/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.html +87 -0
- package/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.scss +68 -0
- package/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.spec.ts +23 -0
- package/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.ts +185 -0
- package/lib/ecabs-date-time-picker/ecabs-date-time-picker.module.ts +36 -0
- package/lib/ecabs-date-time-range-picker/components/ecabs-date-time-range-picker-header/ecabs-date-time-range-picker-header.component.html +4 -0
- package/lib/ecabs-date-time-range-picker/components/ecabs-date-time-range-picker-header/ecabs-date-time-range-picker-header.component.scss +11 -0
- package/lib/ecabs-date-time-range-picker/components/ecabs-date-time-range-picker-header/ecabs-date-time-range-picker-header.component.spec.ts +23 -0
- package/lib/ecabs-date-time-range-picker/components/ecabs-date-time-range-picker-header/ecabs-date-time-range-picker-header.component.ts +10 -0
- package/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.component.html +107 -0
- package/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.component.scss +51 -0
- package/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.component.spec.ts +24 -0
- package/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.component.ts +206 -0
- package/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.module.ts +37 -0
- package/lib/ecabs-date-time-range-picker/time-range.directive.ts +38 -0
- package/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.component.html +32 -0
- package/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.component.scss +24 -0
- package/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.component.ts +57 -0
- package/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.module.ts +12 -0
- package/lib/ecabs-dialog-message/ecabs-dialog-message.component.html +27 -0
- package/lib/ecabs-dialog-message/ecabs-dialog-message.component.scss +25 -0
- package/lib/ecabs-dialog-message/ecabs-dialog-message.component.spec.ts +38 -0
- package/lib/ecabs-dialog-message/ecabs-dialog-message.component.ts +49 -0
- package/lib/ecabs-dialog-message/ecabs-dialog-message.module.ts +12 -0
- package/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component.html +9 -0
- package/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component.scss +0 -0
- package/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component.spec.ts +34 -0
- package/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component.ts +22 -0
- package/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.module.ts +11 -0
- package/lib/ecabs-expansion-panel/ecabs-expansion-panel.component.html +33 -0
- package/lib/ecabs-expansion-panel/ecabs-expansion-panel.component.scss +79 -0
- package/lib/ecabs-expansion-panel/ecabs-expansion-panel.component.spec.ts +26 -0
- package/lib/ecabs-expansion-panel/ecabs-expansion-panel.component.ts +77 -0
- package/lib/ecabs-expansion-panel/ecabs-expansion-panel.module.ts +16 -0
- package/lib/ecabs-increment/ecabs-increment.component.html +18 -0
- package/lib/ecabs-increment/ecabs-increment.component.scss +33 -0
- package/lib/ecabs-increment/ecabs-increment.component.ts +74 -0
- package/lib/ecabs-increment/ecabs-increment.module.ts +16 -0
- package/lib/ecabs-input/ecabs-input.component.html +27 -0
- package/lib/ecabs-input/ecabs-input.component.ts +86 -0
- package/lib/ecabs-input/ecabs-input.module.ts +14 -0
- package/lib/ecabs-language-selector/ecabs-language-selector.component.html +17 -0
- package/lib/ecabs-language-selector/ecabs-language-selector.component.scss +24 -0
- package/lib/ecabs-language-selector/ecabs-language-selector.component.ts +56 -0
- package/lib/ecabs-language-selector/ecabs-language-selector.module.ts +21 -0
- package/lib/ecabs-loading/ecabs-loading.component.html +7 -0
- package/lib/ecabs-loading/ecabs-loading.component.spec.ts +24 -0
- package/lib/ecabs-loading/ecabs-loading.component.ts +11 -0
- package/lib/ecabs-loading/ecabs-loading.module.ts +11 -0
- package/lib/ecabs-loading/spinner/spinner.component.html +5 -0
- package/lib/ecabs-loading/spinner/spinner.component.scss +61 -0
- package/lib/ecabs-loading/spinner/spinner.component.spec.ts +24 -0
- package/lib/ecabs-loading/spinner/spinner.component.ts +11 -0
- package/lib/ecabs-note/ecabs-note.component.html +10 -0
- package/lib/ecabs-note/ecabs-note.component.scss +29 -0
- package/lib/ecabs-note/ecabs-note.component.ts +27 -0
- package/lib/ecabs-note/ecabs-note.module.ts +11 -0
- package/lib/ecabs-phone/ecabs-phone.component.html +17 -0
- package/lib/ecabs-phone/ecabs-phone.component.ts +108 -0
- package/lib/ecabs-phone/ecabs-phone.module.ts +15 -0
- package/lib/ecabs-picker-header/ecabs-picker-header.component.html +12 -0
- package/lib/ecabs-picker-header/ecabs-picker-header.component.scss +12 -0
- package/lib/ecabs-picker-header/ecabs-picker-header.component.ts +61 -0
- package/lib/ecabs-picker-header/ecabs-picker-header.module.ts +15 -0
- package/lib/ecabs-radio-button-list/ecabs-radio-button-list.component.html +13 -0
- package/lib/ecabs-radio-button-list/ecabs-radio-button-list.component.scss +16 -0
- package/lib/ecabs-radio-button-list/ecabs-radio-button-list.component.ts +60 -0
- package/lib/ecabs-radio-button-list/ecabs-radio-button-list.module.ts +20 -0
- package/lib/ecabs-select/ecabs-select.component.html +38 -0
- package/lib/ecabs-select/ecabs-select.component.ts +346 -0
- package/lib/ecabs-select/ecabs-select.module.ts +37 -0
- package/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component.html +7 -0
- package/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component.scss +11 -0
- package/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component.spec.ts +34 -0
- package/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component.ts +14 -0
- package/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.module.ts +14 -0
- package/lib/ecabs-table/ecabs-table.component.html +26 -0
- package/lib/ecabs-table/ecabs-table.component.scss +6 -0
- package/lib/ecabs-table/ecabs-table.component.spec.ts +24 -0
- package/lib/ecabs-table/ecabs-table.component.ts +42 -0
- package/lib/ecabs-table/ecabs-table.module.ts +19 -0
- package/lib/ecabs-textarea/ecabs-textarea.component.html +13 -0
- package/lib/ecabs-textarea/ecabs-textarea.component.ts +61 -0
- package/lib/ecabs-textarea/ecabs-textarea.module.ts +12 -0
- package/lib/ecabs-timepicker/componets/ecabs-time-list-panel/ecabs-time-list-panel.component.html +16 -0
- package/lib/ecabs-timepicker/componets/ecabs-time-list-panel/ecabs-time-list-panel.component.ts +126 -0
- package/lib/ecabs-timepicker/config.model.ts +5 -0
- package/lib/ecabs-timepicker/ecabs-timepicker.component.html +36 -0
- package/lib/ecabs-timepicker/ecabs-timepicker.component.scss +5 -0
- package/lib/ecabs-timepicker/ecabs-timepicker.component.ts +330 -0
- package/lib/ecabs-timepicker/ecabs-timepicker.module.ts +12 -0
- package/lib/ecabs-timepicker/ecabs-timepicker.service.ts +28 -0
- package/lib/ecabs-validation/ecabs-validation.component.html +9 -0
- package/lib/ecabs-validation/ecabs-validation.component.scss +23 -0
- package/lib/ecabs-validation/ecabs-validation.component.ts +14 -0
- package/lib/ecabs-validation/ecabs-validation.module.ts +12 -0
- package/lib/models/bread-crumb.ts +5 -0
- package/lib/models/language.models.ts +0 -0
- package/lib/models/timepicker.models.ts +7 -0
- package/lib/models/validation.models.ts +4 -0
- package/lib/services/ecabs-components.service.ts +33 -0
- package/package.json +1 -1
- package/public-api.ts +58 -0
- package/styles/material/overrides/_form.scss +5 -0
- package/test.ts +27 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<div class="mb-5 mt-10">
|
|
2
|
+
<mat-chip-list>
|
|
3
|
+
<mat-chip
|
|
4
|
+
*ngFor="let status of statuses"
|
|
5
|
+
class="!rounded-full"
|
|
6
|
+
[ngClass]="checkSelectableStatus(status?.value) ? 'selected' : 'not-selected'"
|
|
7
|
+
[selectable]="checkSelectableStatus(status?.value)"
|
|
8
|
+
(click)="onFilter(status?.value)"
|
|
9
|
+
>
|
|
10
|
+
<mat-icon *ngIf="checkSelectableStatus(status?.value)" class="mr-2">done</mat-icon>
|
|
11
|
+
{{ status.text }}</mat-chip
|
|
12
|
+
>
|
|
13
|
+
</mat-chip-list>
|
|
14
|
+
</div>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
:host::ng-deep {
|
|
2
|
+
.mat-chip {
|
|
3
|
+
min-width: 3.6rem;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.selected {
|
|
8
|
+
color: var(--color-white);
|
|
9
|
+
background-color: var(--color-brand-light);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.not-selected {
|
|
13
|
+
color: var(--color-black);
|
|
14
|
+
background-color: var(--color-white);
|
|
15
|
+
border: 1px solid var(--color-gray-400);
|
|
16
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, OnChanges, Output, SimpleChanges } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component( {
|
|
4
|
+
selector: 'ecabs-active-status-filter',
|
|
5
|
+
templateUrl: './ecabs-active-status-filter.component.html',
|
|
6
|
+
styleUrls: [ './ecabs-active-status-filter.component.scss' ],
|
|
7
|
+
} )
|
|
8
|
+
export class ActiveStatusFilterComponent {
|
|
9
|
+
@Input() statuses: { text: string; value: boolean }[] = [];
|
|
10
|
+
@Input() initialStatus: boolean;
|
|
11
|
+
|
|
12
|
+
@Output()
|
|
13
|
+
readonly statusChange: EventEmitter<boolean> = new EventEmitter<boolean>();
|
|
14
|
+
|
|
15
|
+
onFilter( currFilter: boolean ): void {
|
|
16
|
+
this.initialStatus = currFilter;
|
|
17
|
+
this.statusChange.emit( currFilter );
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
checkSelectableStatus( status: boolean ): boolean {
|
|
21
|
+
return this.initialStatus === status;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { MatChipsModule } from '@angular/material/chips';
|
|
4
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
5
|
+
|
|
6
|
+
import { ActiveStatusFilterComponent } from './ecabs-active-status-filter.component';
|
|
7
|
+
|
|
8
|
+
@NgModule( {
|
|
9
|
+
declarations: [ ActiveStatusFilterComponent ],
|
|
10
|
+
imports: [ CommonModule, MatChipsModule, MatIconModule ],
|
|
11
|
+
exports: [ ActiveStatusFilterComponent ],
|
|
12
|
+
} )
|
|
13
|
+
export class EcabsActiveStatusFilterModule { }
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<ul class="flex text-gray-500 text-sm">
|
|
2
|
+
<li
|
|
3
|
+
*ngFor="let item of breadCrumb; let counter = index"
|
|
4
|
+
[routerLink]="item.url"
|
|
5
|
+
[ngClass]="{ 'cursor-pointer': item.url }"
|
|
6
|
+
class="flex"
|
|
7
|
+
>
|
|
8
|
+
<mat-icon class="!text-sm text-center text-gray-400" *ngIf="counter !== 0">keyboard_arrow_right</mat-icon>
|
|
9
|
+
<span>{{ item.title }}</span>
|
|
10
|
+
</li>
|
|
11
|
+
</ul>
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { EcabsBreadcrumbComponent } from './ecabs-breadcrumb.component';
|
|
4
|
+
|
|
5
|
+
describe( 'EcabsBreadcrumbComponent', () => {
|
|
6
|
+
let component: EcabsBreadcrumbComponent;
|
|
7
|
+
let fixture: ComponentFixture<EcabsBreadcrumbComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach( async () => {
|
|
10
|
+
await TestBed.configureTestingModule( {
|
|
11
|
+
declarations: [ EcabsBreadcrumbComponent ],
|
|
12
|
+
} ).compileComponents();
|
|
13
|
+
} );
|
|
14
|
+
|
|
15
|
+
beforeEach( () => {
|
|
16
|
+
fixture = TestBed.createComponent( EcabsBreadcrumbComponent );
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
} );
|
|
20
|
+
|
|
21
|
+
it( 'should create', () => {
|
|
22
|
+
expect( component ).toBeTruthy();
|
|
23
|
+
} );
|
|
24
|
+
} );
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
+
import { BreadCrumb } from '../models/bread-crumb';
|
|
3
|
+
|
|
4
|
+
@Component( {
|
|
5
|
+
selector: 'ecabs-breadcrumb',
|
|
6
|
+
templateUrl: './ecabs-breadcrumb.component.html',
|
|
7
|
+
styleUrls: [ './ecabs-breadcrumb.component.scss' ],
|
|
8
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9
|
+
} )
|
|
10
|
+
export class EcabsBreadcrumbComponent {
|
|
11
|
+
@Input() breadCrumb: BreadCrumb[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
4
|
+
import { EcabsBreadcrumbComponent } from './ecabs-breadcrumb.component';
|
|
5
|
+
import { RouterModule } from '@angular/router';
|
|
6
|
+
|
|
7
|
+
@NgModule( {
|
|
8
|
+
declarations: [ EcabsBreadcrumbComponent ],
|
|
9
|
+
imports: [ CommonModule, MatIconModule, RouterModule ],
|
|
10
|
+
exports: [ EcabsBreadcrumbComponent ],
|
|
11
|
+
} )
|
|
12
|
+
export class EcabsBreadcrumbModule { }
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<button
|
|
2
|
+
mat-button
|
|
3
|
+
[ngClass]="{
|
|
4
|
+
'w-full': full,
|
|
5
|
+
'mat-stroked-button': stroked,
|
|
6
|
+
'mat-raised-button': raised
|
|
7
|
+
}"
|
|
8
|
+
[color]="color"
|
|
9
|
+
[disabled]="disabled"
|
|
10
|
+
[type]="type"
|
|
11
|
+
[attr.form]="form"
|
|
12
|
+
>
|
|
13
|
+
<ecabs-loading-spinner size="tiny" *ngIf="loading"></ecabs-loading-spinner>
|
|
14
|
+
<ng-container *ngIf="!loading">
|
|
15
|
+
<ng-content select="mat-icon"></ng-content>
|
|
16
|
+
<ng-content></ng-content>
|
|
17
|
+
</ng-container>
|
|
18
|
+
</button>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Component, HostBinding, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ThemePalette } from '@angular/material/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'ecabs-buttons',
|
|
6
|
+
templateUrl: './ecabs-buttons.component.html',
|
|
7
|
+
})
|
|
8
|
+
export class ButtonsComponent implements OnInit, OnChanges {
|
|
9
|
+
@Input()
|
|
10
|
+
label!: string;
|
|
11
|
+
|
|
12
|
+
@Input()
|
|
13
|
+
disabled!: boolean;
|
|
14
|
+
|
|
15
|
+
@Input()
|
|
16
|
+
loading!: boolean;
|
|
17
|
+
|
|
18
|
+
@Input()
|
|
19
|
+
form!: string;
|
|
20
|
+
|
|
21
|
+
@Input()
|
|
22
|
+
size: 'default' | 'large' = 'default';
|
|
23
|
+
|
|
24
|
+
@Input()
|
|
25
|
+
type: 'button' | 'submit' = 'button';
|
|
26
|
+
|
|
27
|
+
@Input() raised = false;
|
|
28
|
+
@Input() stroked = false;
|
|
29
|
+
@Input() full = false;
|
|
30
|
+
@Input()
|
|
31
|
+
color: ThemePalette | 'success' = 'primary';
|
|
32
|
+
|
|
33
|
+
@HostBinding('style.width')
|
|
34
|
+
borderWidth = '';
|
|
35
|
+
@HostBinding('class')
|
|
36
|
+
classAttr = '';
|
|
37
|
+
|
|
38
|
+
ngOnInit(): void {
|
|
39
|
+
if (this.full) {
|
|
40
|
+
this.borderWidth = '100%';
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
ngOnChanges(changes: SimpleChanges): void {
|
|
45
|
+
const disabled = changes['disabled']?.currentValue !== undefined ? changes['disabled'].currentValue : this.disabled;
|
|
46
|
+
const loading = changes['loading']?.currentValue !== undefined ? changes['loading'].currentValue : this.loading;
|
|
47
|
+
|
|
48
|
+
if (disabled || loading) {
|
|
49
|
+
this.classAttr = 'pointer-events-none';
|
|
50
|
+
} else {
|
|
51
|
+
this.classAttr = '';
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { ButtonsComponent } from './ecabs-buttons.component';
|
|
4
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
5
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
6
|
+
import { EcabsLoadingModule } from '../ecabs-loading/ecabs-loading.module';
|
|
7
|
+
|
|
8
|
+
@NgModule({
|
|
9
|
+
declarations: [ButtonsComponent],
|
|
10
|
+
imports: [CommonModule, MatButtonModule, EcabsLoadingModule, MatIconModule],
|
|
11
|
+
exports: [ButtonsComponent],
|
|
12
|
+
})
|
|
13
|
+
export class EcabsButtonsModule {}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { AfterViewInit, EventEmitter, Injector } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, EventEmitter, Injector, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import ElementBaseComponent from '../base/element-base';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class EcabsCheckboxToggleComponent extends ElementBaseComponent implements ControlValueAccessor, AfterViewInit {
|
|
5
|
+
export declare class EcabsCheckboxToggleComponent extends ElementBaseComponent implements ControlValueAccessor, OnInit, AfterViewInit {
|
|
6
6
|
private readonly injector;
|
|
7
7
|
type: 'checkbox' | 'toggle';
|
|
8
8
|
text: string;
|
|
9
|
+
readonly label: string;
|
|
9
10
|
labelPosition: 'before' | 'after';
|
|
10
11
|
indeterminate: boolean;
|
|
11
12
|
checked: boolean;
|
|
@@ -15,6 +16,7 @@ export declare class EcabsCheckboxToggleComponent extends ElementBaseComponent i
|
|
|
15
16
|
get value(): boolean;
|
|
16
17
|
set value(val: boolean);
|
|
17
18
|
constructor(injector: Injector);
|
|
19
|
+
ngOnInit(): void;
|
|
18
20
|
onChange: any;
|
|
19
21
|
onTouch: any;
|
|
20
22
|
ngAfterViewInit(): void;
|
|
@@ -25,5 +27,5 @@ export declare class EcabsCheckboxToggleComponent extends ElementBaseComponent i
|
|
|
25
27
|
registerOnChange(fn: any): void;
|
|
26
28
|
registerOnTouched(fn: any): void;
|
|
27
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<EcabsCheckboxToggleComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EcabsCheckboxToggleComponent, "ecabs-checkbox", never, { "type": "type"; "text": "text"; "labelPosition": "labelPosition"; "indeterminate": "indeterminate"; "checked": "checked"; }, { "click": "click"; "changed": "changed"; }, never, never, false>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EcabsCheckboxToggleComponent, "ecabs-checkbox", never, { "type": "type"; "text": "text"; "label": "label"; "labelPosition": "labelPosition"; "indeterminate": "indeterminate"; "checked": "checked"; }, { "click": "click"; "changed": "changed"; }, never, never, false>;
|
|
29
31
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<app-element-wrapper [data]="getData()">
|
|
2
|
+
<ng-container [ngSwitch]="type">
|
|
3
|
+
<mat-checkbox
|
|
4
|
+
(change)="change($event)"
|
|
5
|
+
(click)="onClick($event)"
|
|
6
|
+
(blur)="onBlur()"
|
|
7
|
+
[checked]="checked"
|
|
8
|
+
[indeterminate]="indeterminate"
|
|
9
|
+
[disabled]="disabled"
|
|
10
|
+
[(ngModel)]="value"
|
|
11
|
+
[id]="name"
|
|
12
|
+
[labelPosition]="labelPosition"
|
|
13
|
+
*ngSwitchCase="'checkbox'"
|
|
14
|
+
>
|
|
15
|
+
{{ text }}
|
|
16
|
+
</mat-checkbox>
|
|
17
|
+
|
|
18
|
+
<mat-slide-toggle
|
|
19
|
+
(change)="change($event)"
|
|
20
|
+
[disabled]="disabled"
|
|
21
|
+
[(ngModel)]="value"
|
|
22
|
+
[labelPosition]="labelPosition"
|
|
23
|
+
*ngSwitchCase="'toggle'"
|
|
24
|
+
>{{ text }}</mat-slide-toggle
|
|
25
|
+
>
|
|
26
|
+
</ng-container>
|
|
27
|
+
</app-element-wrapper>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@import "../../styles/styles";
|
|
2
|
+
@import "./../../styles/scss/modules/form";
|
|
3
|
+
|
|
4
|
+
:host::ng-deep {
|
|
5
|
+
.form-field {
|
|
6
|
+
display: flex;
|
|
7
|
+
margin: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.form-field__label, label {
|
|
11
|
+
@include fontSize($font-size-sm);
|
|
12
|
+
|
|
13
|
+
margin-right: .96rem;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import {AfterViewInit, Component, EventEmitter, Injector, Input, OnInit, Output} from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, UntypedFormControl, NgControl, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
+
import ElementBaseComponent from '../base/element-base';
|
|
4
|
+
|
|
5
|
+
@Component( {
|
|
6
|
+
selector: 'ecabs-checkbox',
|
|
7
|
+
templateUrl: './ecabs-checkbox-toggle.component.html',
|
|
8
|
+
styleUrls: [ './ecabs-checkbox-toggle.component.scss' ],
|
|
9
|
+
providers: [
|
|
10
|
+
{
|
|
11
|
+
provide: NG_VALUE_ACCESSOR,
|
|
12
|
+
useExisting: EcabsCheckboxToggleComponent,
|
|
13
|
+
multi: true,
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
} )
|
|
17
|
+
export class EcabsCheckboxToggleComponent
|
|
18
|
+
extends ElementBaseComponent
|
|
19
|
+
implements ControlValueAccessor, OnInit, AfterViewInit {
|
|
20
|
+
@Input() override type: 'checkbox' | 'toggle' = 'checkbox';
|
|
21
|
+
@Input() text!: string;
|
|
22
|
+
@Input() override readonly label: string;
|
|
23
|
+
@Input() labelPosition: 'before' | 'after';
|
|
24
|
+
@Input() indeterminate!: boolean;
|
|
25
|
+
@Input() checked!: boolean;
|
|
26
|
+
|
|
27
|
+
@Output() click = new EventEmitter<any>();
|
|
28
|
+
@Output() changed = new EventEmitter<any>();
|
|
29
|
+
|
|
30
|
+
val!: boolean;
|
|
31
|
+
|
|
32
|
+
get value(): boolean {
|
|
33
|
+
return this.val;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
set value( val ) {
|
|
37
|
+
if ( val !== undefined && this.val !== val ) {
|
|
38
|
+
this.val = val;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
constructor( private readonly injector: Injector ) {
|
|
43
|
+
super();
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
ngOnInit(): void {
|
|
47
|
+
this.labelPosition = this.type === 'toggle' ? 'before' : 'after';
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
onChange: any = () => { };
|
|
51
|
+
onTouch: any = () => { };
|
|
52
|
+
|
|
53
|
+
ngAfterViewInit(): void {
|
|
54
|
+
const ngControl: NgControl = this.injector.get( NgControl, null );
|
|
55
|
+
if ( ngControl ) {
|
|
56
|
+
this.control = ngControl.control as UntypedFormControl;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
change( event ): void {
|
|
61
|
+
this.onChange( this.value );
|
|
62
|
+
this.changed.emit( event );
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
onClick( $event ): void {
|
|
66
|
+
this.click.emit( $event );
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
onBlur(): void {
|
|
70
|
+
setTimeout( () => {
|
|
71
|
+
this.onTouch( this.value );
|
|
72
|
+
} );
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
writeValue( value: any ): void {
|
|
76
|
+
this.value = !!value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
registerOnChange( fn: any ): void {
|
|
80
|
+
this.onChange = fn;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
registerOnTouched( fn: any ): void {
|
|
84
|
+
this.onTouch = fn;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
5
|
+
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
6
|
+
|
|
7
|
+
import { ElementWrapperModule } from '../base/element-wrapper/element-wrapper.module';
|
|
8
|
+
import { EcabsCheckboxToggleComponent } from './ecabs-checkbox-toggle.component';
|
|
9
|
+
|
|
10
|
+
@NgModule( {
|
|
11
|
+
declarations: [ EcabsCheckboxToggleComponent ],
|
|
12
|
+
imports: [
|
|
13
|
+
CommonModule,
|
|
14
|
+
ElementWrapperModule,
|
|
15
|
+
MatCheckboxModule,
|
|
16
|
+
MatSlideToggleModule,
|
|
17
|
+
FormsModule
|
|
18
|
+
],
|
|
19
|
+
exports: [ EcabsCheckboxToggleComponent ],
|
|
20
|
+
} )
|
|
21
|
+
export class EcabsCheckboxToggleModule { }
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { EcabsDatePickerHeaderComponent } from './ecabs-date-picker-header.component';
|
|
3
|
+
|
|
4
|
+
describe( 'EcabsDatePickerHeaderComponent', () => {
|
|
5
|
+
let component: EcabsDatePickerHeaderComponent;
|
|
6
|
+
let fixture: ComponentFixture<EcabsDatePickerHeaderComponent>;
|
|
7
|
+
|
|
8
|
+
beforeEach( async () => {
|
|
9
|
+
await TestBed.configureTestingModule( {
|
|
10
|
+
declarations: [ EcabsDatePickerHeaderComponent ],
|
|
11
|
+
} ).compileComponents();
|
|
12
|
+
} );
|
|
13
|
+
|
|
14
|
+
beforeEach( () => {
|
|
15
|
+
fixture = TestBed.createComponent( EcabsDatePickerHeaderComponent );
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
} );
|
|
19
|
+
|
|
20
|
+
it( 'should create', () => {
|
|
21
|
+
expect( component ).toBeTruthy();
|
|
22
|
+
} );
|
|
23
|
+
} );
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component( {
|
|
4
|
+
selector: 'ecabs-date-picker-header',
|
|
5
|
+
templateUrl: './ecabs-date-picker-header.component.html',
|
|
6
|
+
styleUrls: [ './ecabs-date-picker-header.component.scss' ],
|
|
7
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
8
|
+
} )
|
|
9
|
+
export class EcabsDatePickerHeaderComponent {
|
|
10
|
+
@Input() selectDateLabel = 'Select date';
|
|
11
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<app-element-wrapper [data]="getData()">
|
|
2
|
+
<div class="form-field__input--wrapper">
|
|
3
|
+
<input
|
|
4
|
+
class="form-field__input date-input"
|
|
5
|
+
[id]="name"
|
|
6
|
+
[(ngModel)]="value"
|
|
7
|
+
[placeholder]="placeholder"
|
|
8
|
+
[disabled]="disabled"
|
|
9
|
+
[matDatepicker]="picker"
|
|
10
|
+
[min]="minDate"
|
|
11
|
+
[max]="maxDate"
|
|
12
|
+
(blur)="onTouch()"
|
|
13
|
+
/>
|
|
14
|
+
<mat-datepicker-toggle matSuffix [for]="picker">
|
|
15
|
+
<mat-icon matDatepickerToggleIcon>calendar_today</mat-icon>
|
|
16
|
+
</mat-datepicker-toggle>
|
|
17
|
+
<mat-datepicker #picker [calendarHeaderComponent]="header" [touchUi]="touchUi">
|
|
18
|
+
<mat-datepicker-actions>
|
|
19
|
+
<div class="grid-picker-actions w-full">
|
|
20
|
+
<button type="button" mat-stroked-button class="w-full" color="primary" matDatepickerCancel>
|
|
21
|
+
{{ cancleLabel }}
|
|
22
|
+
</button>
|
|
23
|
+
|
|
24
|
+
<button class="w-full ml-0 btn" mat-button color="primary" matDatepickerApply>
|
|
25
|
+
{{ applyLabel }}
|
|
26
|
+
</button>
|
|
27
|
+
</div>
|
|
28
|
+
</mat-datepicker-actions>
|
|
29
|
+
</mat-datepicker>
|
|
30
|
+
</div>
|
|
31
|
+
</app-element-wrapper>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { EcabsDatePickerComponent } from './ecabs-date-picker.component';
|
|
3
|
+
|
|
4
|
+
describe( 'EcabsDatePickerComponent', () => {
|
|
5
|
+
let component: EcabsDatePickerComponent;
|
|
6
|
+
let fixture: ComponentFixture<EcabsDatePickerComponent>;
|
|
7
|
+
|
|
8
|
+
beforeEach( async () => {
|
|
9
|
+
await TestBed.configureTestingModule( {
|
|
10
|
+
declarations: [ EcabsDatePickerComponent ],
|
|
11
|
+
imports: [],
|
|
12
|
+
} ).compileComponents();
|
|
13
|
+
} );
|
|
14
|
+
|
|
15
|
+
beforeEach( () => {
|
|
16
|
+
fixture = TestBed.createComponent( EcabsDatePickerComponent );
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
} );
|
|
20
|
+
|
|
21
|
+
it( 'should create', () => {
|
|
22
|
+
expect( component ).toBeTruthy();
|
|
23
|
+
} );
|
|
24
|
+
} );
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { AfterViewInit, Component, EventEmitter, Injector, Input, Output } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, UntypedFormControl, NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';
|
|
3
|
+
import ElementBaseComponent from '../base/element-base';
|
|
4
|
+
import { EcabsDatePickerHeaderComponent } from './components/ecabs-date-picker-header/ecabs-date-picker-header.component';
|
|
5
|
+
|
|
6
|
+
@Component( {
|
|
7
|
+
selector: 'ecabs-date-picker',
|
|
8
|
+
templateUrl: './ecabs-date-picker.component.html',
|
|
9
|
+
styleUrls: [ './ecabs-date-picker.component.scss' ],
|
|
10
|
+
providers: [
|
|
11
|
+
{
|
|
12
|
+
provide: NG_VALUE_ACCESSOR,
|
|
13
|
+
useExisting: EcabsDatePickerComponent,
|
|
14
|
+
multi: true,
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
} )
|
|
18
|
+
export class EcabsDatePickerComponent extends ElementBaseComponent implements ControlValueAccessor, AfterViewInit {
|
|
19
|
+
@Input() minDate: Date;
|
|
20
|
+
@Input() maxDate: Date;
|
|
21
|
+
@Input() touchUi = false;
|
|
22
|
+
@Input() cancleLabel = 'Cancel';
|
|
23
|
+
@Input() applyLabel = 'Apply';
|
|
24
|
+
@Input() selectDateLabel = 'Select date';
|
|
25
|
+
|
|
26
|
+
@Output() onblur = new EventEmitter<any>();
|
|
27
|
+
|
|
28
|
+
val: string | number;
|
|
29
|
+
header = EcabsDatePickerHeaderComponent;
|
|
30
|
+
|
|
31
|
+
get value(): string | number {
|
|
32
|
+
return this.val;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
set value( val: string | number ) {
|
|
36
|
+
if ( val && this.val !== val ) {
|
|
37
|
+
this.val = val;
|
|
38
|
+
this.onChange( val );
|
|
39
|
+
this.onTouch( val );
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
constructor( private injector: Injector ) {
|
|
44
|
+
super();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
ngAfterViewInit(): void {
|
|
48
|
+
const ngControl: NgControl = this.injector.get( NgControl, null );
|
|
49
|
+
if ( ngControl ) {
|
|
50
|
+
this.control = ngControl.control as UntypedFormControl;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
onChange: any = () => { };
|
|
55
|
+
onTouch: any = () => { };
|
|
56
|
+
|
|
57
|
+
writeValue( value: any ): void {
|
|
58
|
+
this.value = value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
registerOnChange( fn: any ): void {
|
|
62
|
+
this.onChange = fn;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
registerOnTouched( fn: any ): void {
|
|
66
|
+
this.onTouch = fn;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
blurChange( e: any ): void {
|
|
70
|
+
this.onblur.emit( e );
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
5
|
+
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
6
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
7
|
+
|
|
8
|
+
import { ElementWrapperModule } from '../base/element-wrapper/element-wrapper.module';
|
|
9
|
+
import { EcabsPickerHeaderModule } from '../ecabs-picker-header/ecabs-picker-header.module';
|
|
10
|
+
import { EcabsDatePickerHeaderComponent } from './components/ecabs-date-picker-header/ecabs-date-picker-header.component';
|
|
11
|
+
import { EcabsDatePickerComponent } from './ecabs-date-picker.component';
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@NgModule( {
|
|
15
|
+
declarations: [ EcabsDatePickerComponent, EcabsDatePickerHeaderComponent ],
|
|
16
|
+
imports: [
|
|
17
|
+
CommonModule,
|
|
18
|
+
ElementWrapperModule,
|
|
19
|
+
MatIconModule,
|
|
20
|
+
MatDatepickerModule,
|
|
21
|
+
FormsModule,
|
|
22
|
+
ReactiveFormsModule,
|
|
23
|
+
EcabsPickerHeaderModule,
|
|
24
|
+
MatButtonModule
|
|
25
|
+
],
|
|
26
|
+
exports: [ EcabsDatePickerComponent, EcabsDatePickerHeaderComponent ],
|
|
27
|
+
} )
|
|
28
|
+
export class EcabsDatePickerModule { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
// import { FormDatePickerHeaderComponent } from './date-picker-header.component';
|
|
3
|
+
|
|
4
|
+
// describe( 'FormDatePickerHeaderComponent', () => {
|
|
5
|
+
// let component: FormDatePickerHeaderComponent<D>;
|
|
6
|
+
// let fixture: ComponentFixture<FormDatePickerHeaderComponent<D>>;
|
|
7
|
+
|
|
8
|
+
// beforeEach( async () => {
|
|
9
|
+
// await TestBed.configureTestingModule( {
|
|
10
|
+
// declarations: [ FormDatePickerHeaderComponent ],
|
|
11
|
+
// } ).compileComponents();
|
|
12
|
+
// } );
|
|
13
|
+
|
|
14
|
+
// beforeEach( () => {
|
|
15
|
+
// fixture = TestBed.createComponent( FormDatePickerHeaderComponent );
|
|
16
|
+
// component = fixture.componentInstance;
|
|
17
|
+
// fixture.detectChanges();
|
|
18
|
+
// } );
|
|
19
|
+
|
|
20
|
+
// it( 'should create', () => {
|
|
21
|
+
// expect( component ).toBeTruthy();
|
|
22
|
+
// } );
|
|
23
|
+
// } );
|