ecabs-components 0.0.61 → 0.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.mjs +17 -9
- 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 +19 -11
- package/fesm2015/ecabs-components.mjs.map +1 -1
- package/fesm2020/ecabs-components.mjs +19 -11
- package/fesm2020/ecabs-components.mjs.map +1 -1
- package/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.d.ts +3 -3
- package/package.json +1 -1
- package/assets/images/nothing-here.svg +0 -22
- package/lib/base/consts/date-mask.consts.ts +0 -70
- package/lib/base/directives/date-mask.directive.module.ts +0 -15
- package/lib/base/directives/date-mask.directive.ts +0 -58
- package/lib/base/directives/digits-only.directive.module.ts +0 -15
- package/lib/base/directives/digits-only.directive.ts +0 -129
- package/lib/base/directives/number-border.directive.module.ts +0 -14
- package/lib/base/directives/number-border.directive.ts +0 -57
- package/lib/base/element-base.ts +0 -72
- package/lib/base/element-wrapper/element-wrapper.component.html +0 -30
- package/lib/base/element-wrapper/element-wrapper.component.ts +0 -33
- package/lib/base/element-wrapper/element-wrapper.module.ts +0 -30
- package/lib/base/hint/hint.component.html +0 -1
- package/lib/base/hint/hint.component.scss +0 -0
- package/lib/base/hint/hint.component.ts +0 -12
- package/lib/base/hint/hint.module.ts +0 -13
- package/lib/base/validation/validation.component.html +0 -8
- package/lib/base/validation/validation.component.scss +0 -0
- package/lib/base/validation/validation.component.ts +0 -84
- package/lib/base/validation/validation.module.ts +0 -12
- package/lib/ecabs-active-status-filter/ecabs-active-status-filter.component.html +0 -14
- package/lib/ecabs-active-status-filter/ecabs-active-status-filter.component.scss +0 -16
- package/lib/ecabs-active-status-filter/ecabs-active-status-filter.component.ts +0 -23
- package/lib/ecabs-active-status-filter/ecabs-active-status-filter.module.ts +0 -13
- package/lib/ecabs-breadcrumb/ecabs-breadcrumb.component.html +0 -11
- package/lib/ecabs-breadcrumb/ecabs-breadcrumb.component.scss +0 -0
- package/lib/ecabs-breadcrumb/ecabs-breadcrumb.component.spec.ts +0 -24
- package/lib/ecabs-breadcrumb/ecabs-breadcrumb.component.ts +0 -12
- package/lib/ecabs-breadcrumb/ecabs-breadcrumb.module.ts +0 -12
- package/lib/ecabs-buttons/ecabs-buttons.component.html +0 -18
- package/lib/ecabs-buttons/ecabs-buttons.component.ts +0 -54
- package/lib/ecabs-buttons/ecabs-buttons.module.ts +0 -13
- package/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.html +0 -27
- package/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.scss +0 -15
- package/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.ts +0 -86
- package/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.module.ts +0 -21
- package/lib/ecabs-date-picker/components/ecabs-date-picker-header/ecabs-date-picker-header.component.html +0 -4
- 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 +0 -23
- package/lib/ecabs-date-picker/components/ecabs-date-picker-header/ecabs-date-picker-header.component.ts +0 -11
- package/lib/ecabs-date-picker/ecabs-date-picker.component.html +0 -31
- package/lib/ecabs-date-picker/ecabs-date-picker.component.scss +0 -10
- package/lib/ecabs-date-picker/ecabs-date-picker.component.spec.ts +0 -24
- package/lib/ecabs-date-picker/ecabs-date-picker.component.ts +0 -72
- package/lib/ecabs-date-picker/ecabs-date-picker.module.ts +0 -28
- package/lib/ecabs-date-range-picker/components/ecabs-date-range-picker-header/ecabs-date-range-picker-header.component.html +0 -4
- package/lib/ecabs-date-range-picker/components/ecabs-date-range-picker-header/ecabs-date-range-picker-header.component.scss +0 -1
- package/lib/ecabs-date-range-picker/components/ecabs-date-range-picker-header/ecabs-date-range-picker-header.component.spec.ts +0 -23
- package/lib/ecabs-date-range-picker/components/ecabs-date-range-picker-header/ecabs-date-range-picker-header.component.ts +0 -11
- package/lib/ecabs-date-range-picker/ecabs-date-range-picker.component.html +0 -31
- package/lib/ecabs-date-range-picker/ecabs-date-range-picker.component.scss +0 -23
- package/lib/ecabs-date-range-picker/ecabs-date-range-picker.component.spec.ts +0 -23
- package/lib/ecabs-date-range-picker/ecabs-date-range-picker.component.ts +0 -113
- package/lib/ecabs-date-range-picker/ecabs-date-range-picker.module.ts +0 -48
- package/lib/ecabs-date-time-picker/components/ecabs-date-time-picker-header/ecabs-date-time-picker-header.component.html +0 -4
- package/lib/ecabs-date-time-picker/components/ecabs-date-time-picker-header/ecabs-date-time-picker-header.component.scss +0 -14
- package/lib/ecabs-date-time-picker/components/ecabs-date-time-picker-header/ecabs-date-time-picker-header.component.ts +0 -11
- package/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.html +0 -87
- package/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.scss +0 -68
- package/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.spec.ts +0 -23
- package/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.ts +0 -185
- package/lib/ecabs-date-time-picker/ecabs-date-time-picker.module.ts +0 -36
- package/lib/ecabs-date-time-range-picker/components/ecabs-date-time-range-picker-header/ecabs-date-time-range-picker-header.component.html +0 -4
- package/lib/ecabs-date-time-range-picker/components/ecabs-date-time-range-picker-header/ecabs-date-time-range-picker-header.component.scss +0 -11
- package/lib/ecabs-date-time-range-picker/components/ecabs-date-time-range-picker-header/ecabs-date-time-range-picker-header.component.spec.ts +0 -23
- package/lib/ecabs-date-time-range-picker/components/ecabs-date-time-range-picker-header/ecabs-date-time-range-picker-header.component.ts +0 -10
- package/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.component.html +0 -107
- package/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.component.scss +0 -51
- package/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.component.spec.ts +0 -24
- package/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.component.ts +0 -206
- package/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.module.ts +0 -37
- package/lib/ecabs-date-time-range-picker/time-range.directive.ts +0 -38
- package/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.component.html +0 -32
- package/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.component.scss +0 -24
- package/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.component.ts +0 -57
- package/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.module.ts +0 -12
- package/lib/ecabs-dialog-message/ecabs-dialog-message.component.html +0 -27
- package/lib/ecabs-dialog-message/ecabs-dialog-message.component.scss +0 -25
- package/lib/ecabs-dialog-message/ecabs-dialog-message.component.spec.ts +0 -38
- package/lib/ecabs-dialog-message/ecabs-dialog-message.component.ts +0 -49
- package/lib/ecabs-dialog-message/ecabs-dialog-message.module.ts +0 -12
- package/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component.html +0 -9
- package/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component.scss +0 -0
- package/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component.spec.ts +0 -34
- package/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component.ts +0 -22
- package/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.module.ts +0 -11
- package/lib/ecabs-expansion-panel/ecabs-expansion-panel.component.html +0 -33
- package/lib/ecabs-expansion-panel/ecabs-expansion-panel.component.scss +0 -79
- package/lib/ecabs-expansion-panel/ecabs-expansion-panel.component.spec.ts +0 -26
- package/lib/ecabs-expansion-panel/ecabs-expansion-panel.component.ts +0 -77
- package/lib/ecabs-expansion-panel/ecabs-expansion-panel.module.ts +0 -16
- package/lib/ecabs-increment/ecabs-increment.component.html +0 -18
- package/lib/ecabs-increment/ecabs-increment.component.scss +0 -33
- package/lib/ecabs-increment/ecabs-increment.component.ts +0 -74
- package/lib/ecabs-increment/ecabs-increment.module.ts +0 -16
- package/lib/ecabs-input/ecabs-input.component.html +0 -27
- package/lib/ecabs-input/ecabs-input.component.ts +0 -86
- package/lib/ecabs-input/ecabs-input.module.ts +0 -14
- package/lib/ecabs-language-selector/ecabs-language-selector.component.html +0 -17
- package/lib/ecabs-language-selector/ecabs-language-selector.component.scss +0 -24
- package/lib/ecabs-language-selector/ecabs-language-selector.component.ts +0 -56
- package/lib/ecabs-language-selector/ecabs-language-selector.module.ts +0 -21
- package/lib/ecabs-loading/ecabs-loading.component.html +0 -7
- package/lib/ecabs-loading/ecabs-loading.component.spec.ts +0 -24
- package/lib/ecabs-loading/ecabs-loading.component.ts +0 -11
- package/lib/ecabs-loading/ecabs-loading.module.ts +0 -11
- package/lib/ecabs-loading/spinner/spinner.component.html +0 -5
- package/lib/ecabs-loading/spinner/spinner.component.scss +0 -61
- package/lib/ecabs-loading/spinner/spinner.component.spec.ts +0 -24
- package/lib/ecabs-loading/spinner/spinner.component.ts +0 -11
- package/lib/ecabs-note/ecabs-note.component.html +0 -10
- package/lib/ecabs-note/ecabs-note.component.scss +0 -29
- package/lib/ecabs-note/ecabs-note.component.ts +0 -27
- package/lib/ecabs-note/ecabs-note.module.ts +0 -11
- package/lib/ecabs-phone/ecabs-phone.component.html +0 -17
- package/lib/ecabs-phone/ecabs-phone.component.ts +0 -108
- package/lib/ecabs-phone/ecabs-phone.module.ts +0 -15
- package/lib/ecabs-picker-header/ecabs-picker-header.component.html +0 -12
- package/lib/ecabs-picker-header/ecabs-picker-header.component.scss +0 -12
- package/lib/ecabs-picker-header/ecabs-picker-header.component.ts +0 -61
- package/lib/ecabs-picker-header/ecabs-picker-header.module.ts +0 -15
- package/lib/ecabs-radio-button-list/ecabs-radio-button-list.component.html +0 -13
- package/lib/ecabs-radio-button-list/ecabs-radio-button-list.component.scss +0 -16
- package/lib/ecabs-radio-button-list/ecabs-radio-button-list.component.ts +0 -60
- package/lib/ecabs-radio-button-list/ecabs-radio-button-list.module.ts +0 -20
- package/lib/ecabs-select/ecabs-select.component.html +0 -38
- package/lib/ecabs-select/ecabs-select.component.ts +0 -346
- package/lib/ecabs-select/ecabs-select.module.ts +0 -37
- package/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component.html +0 -7
- package/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component.scss +0 -11
- package/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component.spec.ts +0 -34
- package/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component.ts +0 -14
- package/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.module.ts +0 -14
- package/lib/ecabs-table/ecabs-table.component.html +0 -26
- package/lib/ecabs-table/ecabs-table.component.scss +0 -6
- package/lib/ecabs-table/ecabs-table.component.spec.ts +0 -24
- package/lib/ecabs-table/ecabs-table.component.ts +0 -42
- package/lib/ecabs-table/ecabs-table.module.ts +0 -19
- package/lib/ecabs-textarea/ecabs-textarea.component.html +0 -13
- package/lib/ecabs-textarea/ecabs-textarea.component.ts +0 -61
- package/lib/ecabs-textarea/ecabs-textarea.module.ts +0 -12
- package/lib/ecabs-timepicker/componets/ecabs-time-list-panel/ecabs-time-list-panel.component.html +0 -16
- package/lib/ecabs-timepicker/componets/ecabs-time-list-panel/ecabs-time-list-panel.component.ts +0 -126
- package/lib/ecabs-timepicker/config.model.ts +0 -5
- package/lib/ecabs-timepicker/ecabs-timepicker.component.html +0 -36
- package/lib/ecabs-timepicker/ecabs-timepicker.component.scss +0 -5
- package/lib/ecabs-timepicker/ecabs-timepicker.component.ts +0 -330
- package/lib/ecabs-timepicker/ecabs-timepicker.module.ts +0 -12
- package/lib/ecabs-timepicker/ecabs-timepicker.service.ts +0 -28
- package/lib/ecabs-validation/ecabs-validation.component.html +0 -9
- package/lib/ecabs-validation/ecabs-validation.component.scss +0 -23
- package/lib/ecabs-validation/ecabs-validation.component.ts +0 -14
- package/lib/ecabs-validation/ecabs-validation.module.ts +0 -12
- package/lib/models/bread-crumb.ts +0 -5
- package/lib/models/language.models.ts +0 -0
- package/lib/models/timepicker.models.ts +0 -7
- package/lib/models/validation.models.ts +0 -4
- package/lib/services/ecabs-components.service.ts +0 -33
- package/public-api.ts +0 -58
- package/styles/material/_theme.scss +0 -99
- package/styles/material/overrides/_autocomplete.scss +0 -12
- package/styles/material/overrides/_button.scss +0 -81
- package/styles/material/overrides/_card.scss +0 -17
- package/styles/material/overrides/_chip.scss +0 -108
- package/styles/material/overrides/_datepicker.scss +0 -169
- package/styles/material/overrides/_dialog.scss +0 -8
- package/styles/material/overrides/_divider.scss +0 -3
- package/styles/material/overrides/_expansion.scss +0 -31
- package/styles/material/overrides/_form.scss +0 -52
- package/styles/material/overrides/_icon.scss +0 -3
- package/styles/material/overrides/_menu.scss +0 -3
- package/styles/material/overrides/_paginator.scss +0 -0
- package/styles/material/overrides/_phone.scss +0 -24
- package/styles/material/overrides/_select.scss +0 -70
- package/styles/material/overrides/_tab.scss +0 -23
- package/styles/material/overrides/_table.scss +0 -12
- package/styles/material/overrides/_toaster.scss +0 -38
- package/styles/material/overrides/_toggle.scss +0 -10
- package/styles/material/overrides/_tooltip.scss +0 -3
- package/styles/material/overrides/index.scss +0 -19
- package/styles/scss/base/_heading.scss +0 -17
- package/styles/scss/base/_normalize.scss +0 -78
- package/styles/scss/base/index.scss +0 -2
- package/styles/scss/modules/_autocomplete.scss +0 -29
- package/styles/scss/modules/_button.scss +0 -281
- package/styles/scss/modules/_card.scss +0 -23
- package/styles/scss/modules/_chip.scss +0 -56
- package/styles/scss/modules/_datepicker.scss +0 -422
- package/styles/scss/modules/_dialog.scss +0 -14
- package/styles/scss/modules/_divider.scss +0 -3
- package/styles/scss/modules/_form.scss +0 -221
- package/styles/scss/modules/_icon.scss +0 -30
- package/styles/scss/modules/_img.scss +0 -32
- package/styles/scss/modules/_legend.scss +0 -64
- package/styles/scss/modules/_list.scss +0 -17
- package/styles/scss/modules/_map.scss +0 -112
- package/styles/scss/modules/_percentage.scss +0 -33
- package/styles/scss/modules/_phone.scss +0 -24
- package/styles/scss/modules/_select.scss +0 -56
- package/styles/scss/modules/_statuses.scss +0 -31
- package/styles/scss/modules/_tab.scss +0 -16
- package/styles/scss/modules/_table.scss +0 -107
- package/styles/scss/modules/_timepicker.scss +0 -96
- package/styles/scss/modules/_toaster.scss +0 -53
- package/styles/scss/modules/_tooltip.scss +0 -7
- package/styles/scss/modules/drag-drop.scss +0 -31
- package/styles/scss/modules/index.scss +0 -23
- package/styles/scss/utilities/_colors.scss +0 -52
- package/styles/scss/utilities/_fonts.scss +0 -26
- package/styles/scss/utilities/_functions.scss +0 -27
- package/styles/scss/utilities/_helpers.scss +0 -5
- package/styles/scss/utilities/_mixins.scss +0 -65
- package/styles/scss/utilities/_variables.scss +0 -19
- package/styles/scss/utilities/index.scss +0 -6
- package/styles/styles.scss +0 -6
- package/styles/tailwind/index.scss +0 -756
- package/test.ts +0 -27
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
4
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
5
|
-
import { EcabsExpansionPanelComponent } from './ecabs-expansion-panel.component';
|
|
6
|
-
import { MatExpansionModule } from '@angular/material/expansion';
|
|
7
|
-
import { MatChipsModule } from '@angular/material/chips';
|
|
8
|
-
import { EcabsCheckboxToggleModule } from '../ecabs-checkbox-toggle/ecabs-checkbox-toggle.module';
|
|
9
|
-
import { FormsModule } from '@angular/forms';
|
|
10
|
-
|
|
11
|
-
@NgModule( {
|
|
12
|
-
declarations: [ EcabsExpansionPanelComponent ],
|
|
13
|
-
imports: [ CommonModule, FormsModule, MatButtonModule, MatExpansionModule, MatIconModule, MatChipsModule, EcabsCheckboxToggleModule ],
|
|
14
|
-
exports: [ EcabsExpansionPanelComponent ],
|
|
15
|
-
} )
|
|
16
|
-
export class EcabsExpansionPanelModule { }
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<app-element-wrapper [data]="getData()">
|
|
2
|
-
<div class="form-field__input--wrapper">
|
|
3
|
-
<input appDigitsOnly [digitsOnly]="digitsOnly" [decimal]="allowDecimal" [allowHyphen]="allowHyphen"
|
|
4
|
-
class="form-field__input"
|
|
5
|
-
[type]="type"
|
|
6
|
-
[id]="name"
|
|
7
|
-
[(ngModel)]="value"
|
|
8
|
-
[placeholder]="placeholder"
|
|
9
|
-
(blur)="onTouch()"
|
|
10
|
-
[disabled]="disabled"
|
|
11
|
-
[maxlength]="maxLength"/>
|
|
12
|
-
|
|
13
|
-
<div class="incrementor">
|
|
14
|
-
<mat-icon (click)="increment()">add</mat-icon>
|
|
15
|
-
<mat-icon (click)="decrement()">remove</mat-icon>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
</app-element-wrapper>
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
@import "../../styles/styles";
|
|
2
|
-
|
|
3
|
-
:host::ng-deep {
|
|
4
|
-
.incrementor {
|
|
5
|
-
border-left: 1px solid var(--color-gray-300);
|
|
6
|
-
position: absolute;
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
top: 1px;
|
|
10
|
-
bottom: 1px;
|
|
11
|
-
right: 1px;
|
|
12
|
-
background-color: var(--color-white);
|
|
13
|
-
|
|
14
|
-
.mat-icon {
|
|
15
|
-
margin-right: 0;
|
|
16
|
-
font-size: 20px;
|
|
17
|
-
line-height: 20px;
|
|
18
|
-
cursor: pointer;
|
|
19
|
-
|
|
20
|
-
&:first-of-type {
|
|
21
|
-
border-bottom: 1px solid var(--color-gray-300);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&:hover {
|
|
25
|
-
color: var(--color-brand-dark);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.form-field > div {
|
|
31
|
-
line-height: 1;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
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
|
-
|
|
5
|
-
@Component( {
|
|
6
|
-
selector: 'ecabs-increment',
|
|
7
|
-
templateUrl: './ecabs-increment.component.html',
|
|
8
|
-
styleUrls: [ './ecabs-increment.component.scss' ],
|
|
9
|
-
providers: [
|
|
10
|
-
{
|
|
11
|
-
provide: NG_VALUE_ACCESSOR,
|
|
12
|
-
useExisting: EcabsIncrementComponent,
|
|
13
|
-
multi: true,
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
} )
|
|
17
|
-
export class EcabsIncrementComponent extends ElementBaseComponent implements ControlValueAccessor, AfterViewInit {
|
|
18
|
-
@Input() digitsOnly!: boolean;
|
|
19
|
-
@Input() allowDecimal!: boolean;
|
|
20
|
-
@Input() allowHyphen!: boolean;
|
|
21
|
-
|
|
22
|
-
@Output() onblur = new EventEmitter<any>();
|
|
23
|
-
val!: string | number;
|
|
24
|
-
|
|
25
|
-
get value(): string | number {
|
|
26
|
-
return this.val;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
set value( val ) {
|
|
30
|
-
if ( val !== undefined && this.val !== val ) {
|
|
31
|
-
this.val = val;
|
|
32
|
-
this.onChange( val );
|
|
33
|
-
this.onTouch( val );
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
constructor( private injector: Injector ) {
|
|
38
|
-
super();
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
ngAfterViewInit(): void {
|
|
42
|
-
const ngControl: NgControl = this.injector.get( NgControl, null ) as NgControl;
|
|
43
|
-
if ( ngControl ) {
|
|
44
|
-
this.control = ngControl.control as UntypedFormControl;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
onChange: any = () => { };
|
|
49
|
-
onTouch: any = () => { };
|
|
50
|
-
|
|
51
|
-
writeValue( value: any ): void {
|
|
52
|
-
this.value = value;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
registerOnChange( fn: any ): void {
|
|
56
|
-
this.onChange = fn;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
registerOnTouched( fn: any ): void {
|
|
60
|
-
this.onTouch = fn;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
blurChange( e: any ): void {
|
|
64
|
-
this.onblur.emit( e );
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
increment(): void {
|
|
68
|
-
this.value = +this.value + 1;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
decrement(): void {
|
|
72
|
-
this.value = +this.value - 1;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { FormsModule } from '@angular/forms';
|
|
4
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
5
|
-
import { MatInputModule } from '@angular/material/input';
|
|
6
|
-
import { DigitsOnlyDirectivesModule } from '../base/directives/digits-only.directive.module';
|
|
7
|
-
|
|
8
|
-
import { ElementWrapperModule } from '../base/element-wrapper/element-wrapper.module';
|
|
9
|
-
import { EcabsIncrementComponent } from './ecabs-increment.component';
|
|
10
|
-
|
|
11
|
-
@NgModule( {
|
|
12
|
-
declarations: [ EcabsIncrementComponent ],
|
|
13
|
-
imports: [ CommonModule, MatInputModule, MatIconModule, ElementWrapperModule, FormsModule, DigitsOnlyDirectivesModule ],
|
|
14
|
-
exports: [ EcabsIncrementComponent ],
|
|
15
|
-
} )
|
|
16
|
-
export class EcabsIncrementModule { }
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<app-element-wrapper [data]="getData()">
|
|
2
|
-
<div class="form-field__input--wrapper">
|
|
3
|
-
<input
|
|
4
|
-
appDigitsOnly
|
|
5
|
-
[digitsOnly]="digitsOnly"
|
|
6
|
-
[decimal]="allowDecimal"
|
|
7
|
-
[allowHyphen]="allowHyphen"
|
|
8
|
-
class="form-field__input"
|
|
9
|
-
[type]="type"
|
|
10
|
-
[id]="name"
|
|
11
|
-
[(ngModel)]="value"
|
|
12
|
-
[placeholder]="placeholder"
|
|
13
|
-
(blur)="onTouch()"
|
|
14
|
-
[disabled]="disabled"
|
|
15
|
-
[maxlength]="maxLength"
|
|
16
|
-
[max]="max"
|
|
17
|
-
[min]="min"
|
|
18
|
-
[step]="step"
|
|
19
|
-
(blur)="blurChange($event)"
|
|
20
|
-
/>
|
|
21
|
-
|
|
22
|
-
<div class="form-field__input--suffix" *ngIf="type !== 'number'">
|
|
23
|
-
<ng-content select="mat-icon"></ng-content>
|
|
24
|
-
<ng-content select=".suffix"></ng-content>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
</app-element-wrapper>
|
|
@@ -1,86 +0,0 @@
|
|
|
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-input',
|
|
7
|
-
templateUrl: './ecabs-input.component.html',
|
|
8
|
-
providers: [
|
|
9
|
-
{
|
|
10
|
-
provide: NG_VALUE_ACCESSOR,
|
|
11
|
-
useExisting: EcabsInputComponent,
|
|
12
|
-
multi: true,
|
|
13
|
-
},
|
|
14
|
-
],
|
|
15
|
-
} )
|
|
16
|
-
export class EcabsInputComponent
|
|
17
|
-
extends ElementBaseComponent
|
|
18
|
-
implements ControlValueAccessor, AfterViewInit, OnInit {
|
|
19
|
-
@Input()
|
|
20
|
-
digitsOnly!: boolean;
|
|
21
|
-
|
|
22
|
-
@Input()
|
|
23
|
-
allowDecimal!: boolean;
|
|
24
|
-
|
|
25
|
-
@Input()
|
|
26
|
-
allowHyphen!: boolean;
|
|
27
|
-
|
|
28
|
-
@Input() max!: number;
|
|
29
|
-
@Input() min!: number;
|
|
30
|
-
@Input() step!: number;
|
|
31
|
-
|
|
32
|
-
@Output() onblur = new EventEmitter<any>();
|
|
33
|
-
val!: string | number;
|
|
34
|
-
|
|
35
|
-
get value(): string | number {
|
|
36
|
-
return this.val;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
set value( val ) {
|
|
40
|
-
if ( val !== undefined && this.val !== val ) {
|
|
41
|
-
this.val = val;
|
|
42
|
-
this.onChange( val );
|
|
43
|
-
|
|
44
|
-
if ( this.getData()?.control?.updateOn !== 'blur' ) {
|
|
45
|
-
this.onTouch( val );
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
constructor( private injector: Injector ) {
|
|
51
|
-
super();
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
ngOnInit(): void {
|
|
55
|
-
if ( this.type === 'number' ) {
|
|
56
|
-
this.digitsOnly = true;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
ngAfterViewInit(): void {
|
|
61
|
-
const ngControl: NgControl = this.injector.get( NgControl, null ) as NgControl;
|
|
62
|
-
if ( ngControl ) {
|
|
63
|
-
this.control = ngControl.control as UntypedFormControl;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
onChange: any = () => { };
|
|
68
|
-
|
|
69
|
-
onTouch: any = () => { };
|
|
70
|
-
|
|
71
|
-
writeValue( value: any ): void {
|
|
72
|
-
this.value = value;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
registerOnChange( fn: any ): void {
|
|
76
|
-
this.onChange = fn;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
registerOnTouched( fn: any ): void {
|
|
80
|
-
this.onTouch = fn;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
blurChange( e: any ): void {
|
|
84
|
-
this.onblur.emit( e );
|
|
85
|
-
}
|
|
86
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { EcabsInputComponent } from './ecabs-input.component';
|
|
4
|
-
import { MatInputModule } from '@angular/material/input';
|
|
5
|
-
import { ElementWrapperModule } from '../base/element-wrapper/element-wrapper.module';
|
|
6
|
-
import { FormsModule } from '@angular/forms';
|
|
7
|
-
import { DigitsOnlyDirectivesModule } from '../base/directives/digits-only.directive.module';
|
|
8
|
-
|
|
9
|
-
@NgModule( {
|
|
10
|
-
declarations: [ EcabsInputComponent ],
|
|
11
|
-
imports: [ CommonModule, MatInputModule, ElementWrapperModule, FormsModule, DigitsOnlyDirectivesModule ],
|
|
12
|
-
exports: [ EcabsInputComponent ],
|
|
13
|
-
} )
|
|
14
|
-
export class EcabsInputModule { }
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<mat-form-field [ngClass]="{'flag-only': flagOnly}">
|
|
2
|
-
<mat-select class="capitalize" [(ngModel)]="selectedLang" name="language" (ngModelChange)="toggleLang()"
|
|
3
|
-
panelClass="wide-select">
|
|
4
|
-
<mat-select-trigger>
|
|
5
|
-
<div class="flex items-center" [matTooltip]="tooltip" [matTooltipDisabled]="!flagOnly || !tooltip">
|
|
6
|
-
<span [ngClass]="flagClass(matchSelected())"></span>
|
|
7
|
-
<div *ngIf="!flagOnly" class="ml-2">{{standardLang(matchSelected())}}</div>
|
|
8
|
-
</div>
|
|
9
|
-
</mat-select-trigger>
|
|
10
|
-
<mat-option class="capitalize" *ngFor="let lang of languages" [value]="lang">
|
|
11
|
-
<div class="flex items-center">
|
|
12
|
-
<span [ngClass]="flagClass(lang)"></span>
|
|
13
|
-
<div class="ml-2">{{standardLang(lang) | titlecase}}</div>
|
|
14
|
-
</div>
|
|
15
|
-
</mat-option>
|
|
16
|
-
</mat-select>
|
|
17
|
-
</mat-form-field>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
:host::ng-deep {
|
|
2
|
-
.mat-select {
|
|
3
|
-
padding: 0;
|
|
4
|
-
border: 0;
|
|
5
|
-
|
|
6
|
-
.mat-select-arrow {
|
|
7
|
-
border: none;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
&, .mat-option {
|
|
11
|
-
font-size: 12px;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.mat-form-field-infix {
|
|
16
|
-
width: auto;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.flag-only {
|
|
20
|
-
.mat-select .mat-select-arrow-wrapper {
|
|
21
|
-
width: 0;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, OnChanges, Output } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component( {
|
|
4
|
-
selector: 'ecabs-language-selector',
|
|
5
|
-
templateUrl: './ecabs-language-selector.component.html',
|
|
6
|
-
styleUrls: [ './ecabs-language-selector.component.scss' ],
|
|
7
|
-
} )
|
|
8
|
-
export class EcabsLanguageSelectorComponent implements OnChanges {
|
|
9
|
-
@Input()
|
|
10
|
-
languages: string[] = [];
|
|
11
|
-
|
|
12
|
-
@Input()
|
|
13
|
-
currentLanguage: string;
|
|
14
|
-
|
|
15
|
-
@Input()
|
|
16
|
-
flagOnly: boolean;
|
|
17
|
-
|
|
18
|
-
@Input()
|
|
19
|
-
tooltip: string;
|
|
20
|
-
|
|
21
|
-
@Output()
|
|
22
|
-
languageChanged: EventEmitter<string> = new EventEmitter<string>();
|
|
23
|
-
|
|
24
|
-
selectedLang: string;
|
|
25
|
-
|
|
26
|
-
ngOnChanges(): void {
|
|
27
|
-
this.selectedLang = this.currentLanguage;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
toggleLang(): void {
|
|
31
|
-
return this.matchSelected() ? this.languageChanged.emit( this.matchSelected() ) : undefined;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
matchSelected(): string {
|
|
35
|
-
return this.languages?.find( ( lang ) => lang === this.selectedLang );
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
standardLang( code: string ): string {
|
|
39
|
-
return this.standardise( code );
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
flagClass( lang: string ): string {
|
|
43
|
-
return `fi fi-${ lang?.slice( -2 ).toLowerCase() }`;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
private standardise( code: string ): string {
|
|
47
|
-
if ( !code ) {
|
|
48
|
-
return undefined;
|
|
49
|
-
}
|
|
50
|
-
const lang = new Intl.DisplayNames( [ code ], {
|
|
51
|
-
type: 'language',
|
|
52
|
-
languageDisplay: 'standard',
|
|
53
|
-
} );
|
|
54
|
-
return lang.of( code );
|
|
55
|
-
}
|
|
56
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { EcabsLanguageSelectorComponent } from './ecabs-language-selector.component';
|
|
4
|
-
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
-
import { MatSelectModule } from '@angular/material/select';
|
|
6
|
-
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
7
|
-
import {MatTooltipModule} from "@angular/material/tooltip";
|
|
8
|
-
|
|
9
|
-
@NgModule( {
|
|
10
|
-
declarations: [ EcabsLanguageSelectorComponent ],
|
|
11
|
-
imports: [
|
|
12
|
-
CommonModule,
|
|
13
|
-
MatSelectModule,
|
|
14
|
-
MatFormFieldModule,
|
|
15
|
-
FormsModule,
|
|
16
|
-
ReactiveFormsModule,
|
|
17
|
-
MatTooltipModule
|
|
18
|
-
],
|
|
19
|
-
exports: [ EcabsLanguageSelectorComponent ],
|
|
20
|
-
} )
|
|
21
|
-
export class EcabsLanguageSelectorModule { }
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { LoadingComponent } from './loading.component';
|
|
4
|
-
|
|
5
|
-
describe('LoadingComponent', () => {
|
|
6
|
-
let component: LoadingComponent;
|
|
7
|
-
let fixture: ComponentFixture<LoadingComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [LoadingComponent],
|
|
12
|
-
}).compileComponents();
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
beforeEach(() => {
|
|
16
|
-
fixture = TestBed.createComponent(LoadingComponent);
|
|
17
|
-
component = fixture.componentInstance;
|
|
18
|
-
fixture.detectChanges();
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
it('should create', () => {
|
|
22
|
-
expect(component).toBeTruthy();
|
|
23
|
-
});
|
|
24
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component( {
|
|
4
|
-
selector: 'ecabs-loading',
|
|
5
|
-
templateUrl: './ecabs-loading.component.html',
|
|
6
|
-
} )
|
|
7
|
-
export class EcabsLoadingComponent {
|
|
8
|
-
@Input() loading = false;
|
|
9
|
-
@Input() backgroundColor = 'white';
|
|
10
|
-
@Input() size: 'large' | 'medium' | 'tiny' = 'medium';
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { EcabsLoadingComponent } from './ecabs-loading.component';
|
|
4
|
-
import { EcabsSpinnerComponent } from './spinner/spinner.component';
|
|
5
|
-
|
|
6
|
-
@NgModule({
|
|
7
|
-
declarations: [EcabsLoadingComponent, EcabsSpinnerComponent],
|
|
8
|
-
imports: [CommonModule],
|
|
9
|
-
exports: [EcabsLoadingComponent, EcabsSpinnerComponent],
|
|
10
|
-
})
|
|
11
|
-
export class EcabsLoadingModule {}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
line-height: 0;
|
|
3
|
-
}
|
|
4
|
-
@keyframes ldio-inner {
|
|
5
|
-
0% {
|
|
6
|
-
transform: translate(-50%, -50%) rotate(0deg);
|
|
7
|
-
}
|
|
8
|
-
100% {
|
|
9
|
-
transform: translate(-50%, -50%) rotate(360deg);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.loadingio-spinner-rolling {
|
|
14
|
-
width: 27px;
|
|
15
|
-
height: 27px;
|
|
16
|
-
display: inline-block;
|
|
17
|
-
overflow: hidden;
|
|
18
|
-
background: none;
|
|
19
|
-
.ldio-inner {
|
|
20
|
-
width: 100%;
|
|
21
|
-
height: 100%;
|
|
22
|
-
position: relative;
|
|
23
|
-
transform: translateZ(0) scale(1);
|
|
24
|
-
backface-visibility: hidden;
|
|
25
|
-
transform-origin: 0 0;
|
|
26
|
-
div {
|
|
27
|
-
position: absolute;
|
|
28
|
-
width: 9px;
|
|
29
|
-
height: 9px;
|
|
30
|
-
border: 4px solid #85a2b6;
|
|
31
|
-
border-top-color: transparent;
|
|
32
|
-
border-radius: 50%;
|
|
33
|
-
animation: ldio-inner 1s linear infinite;
|
|
34
|
-
top: 14px;
|
|
35
|
-
left: 14px;
|
|
36
|
-
box-sizing: content-box;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
&.medium {
|
|
40
|
-
width: 40px;
|
|
41
|
-
height: 40px;
|
|
42
|
-
.ldio-inner div {
|
|
43
|
-
width: 20px;
|
|
44
|
-
height: 20px;
|
|
45
|
-
border-width: 6px;
|
|
46
|
-
top: 19px;
|
|
47
|
-
left: 19px;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
&.large {
|
|
51
|
-
width: 60px;
|
|
52
|
-
height: 60px;
|
|
53
|
-
.ldio-inner div {
|
|
54
|
-
width: 35px;
|
|
55
|
-
height: 35px;
|
|
56
|
-
border-width: 9px;
|
|
57
|
-
top: 29px;
|
|
58
|
-
left: 29px;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { SpinnerComponent } from './spinner.component';
|
|
4
|
-
|
|
5
|
-
describe('SpinnerComponent', () => {
|
|
6
|
-
let component: SpinnerComponent;
|
|
7
|
-
let fixture: ComponentFixture<SpinnerComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [SpinnerComponent],
|
|
12
|
-
}).compileComponents();
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
beforeEach(() => {
|
|
16
|
-
fixture = TestBed.createComponent(SpinnerComponent);
|
|
17
|
-
component = fixture.componentInstance;
|
|
18
|
-
fixture.detectChanges();
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
it('should create', () => {
|
|
22
|
-
expect(component).toBeTruthy();
|
|
23
|
-
});
|
|
24
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'ecabs-loading-spinner',
|
|
5
|
-
templateUrl: './spinner.component.html',
|
|
6
|
-
styleUrls: ['./spinner.component.scss'],
|
|
7
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
8
|
-
})
|
|
9
|
-
export class EcabsSpinnerComponent {
|
|
10
|
-
@Input() size: 'large' | 'medium' | 'tiny' = 'medium';
|
|
11
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
@import './../../styles/scss/utilities/index';
|
|
2
|
-
|
|
3
|
-
.note {
|
|
4
|
-
border-radius: $border-radius-base;
|
|
5
|
-
|
|
6
|
-
.mat-icon {
|
|
7
|
-
color: inherit;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@include m(danger) {
|
|
11
|
-
color: var(--color-error);
|
|
12
|
-
background-color: var(--color-error-opacity);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@include m(warn) {
|
|
16
|
-
background-color: var(--color-warning-opacity);
|
|
17
|
-
color: var(--color-warn);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@include m(success) {
|
|
21
|
-
background-color: rgba(var(--color-success-rgb), .06);
|
|
22
|
-
color: var(--color-success);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@include m(default) {
|
|
26
|
-
background-color: rgba(var(--color-info-rgb), .06);
|
|
27
|
-
color: var(--color-info);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component( {
|
|
4
|
-
selector: 'ecabs-note',
|
|
5
|
-
templateUrl: './ecabs-note.component.html',
|
|
6
|
-
styleUrls: [ './ecabs-note.component.scss' ],
|
|
7
|
-
} )
|
|
8
|
-
export class NoteComponent {
|
|
9
|
-
@Input()
|
|
10
|
-
type: 'default' | 'danger' | 'warn' | 'success' = 'default';
|
|
11
|
-
|
|
12
|
-
get classByType(): string {
|
|
13
|
-
switch ( this.type ) {
|
|
14
|
-
case 'warn':
|
|
15
|
-
return 'note--warn';
|
|
16
|
-
|
|
17
|
-
case 'danger':
|
|
18
|
-
return 'note--danger';
|
|
19
|
-
|
|
20
|
-
case 'success':
|
|
21
|
-
return 'note--success';
|
|
22
|
-
|
|
23
|
-
default:
|
|
24
|
-
return 'note--default';
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
4
|
-
import { NoteComponent } from './ecabs-note.component';
|
|
5
|
-
|
|
6
|
-
@NgModule( {
|
|
7
|
-
declarations: [ NoteComponent ],
|
|
8
|
-
imports: [ CommonModule, MatIconModule ],
|
|
9
|
-
exports: [ NoteComponent ],
|
|
10
|
-
} )
|
|
11
|
-
export class NoteModule { }
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<app-element-wrapper [data]="getData()">
|
|
2
|
-
<form #f="ngForm" [formGroup]="phoneForm">
|
|
3
|
-
<ngx-mat-intl-tel-input
|
|
4
|
-
(focusout)="onBlur()"
|
|
5
|
-
[ngClass]="{ error: phoneForm.invalid && (phoneForm.dirty || phoneForm.touched) }"
|
|
6
|
-
#phoneInput
|
|
7
|
-
[preferredCountries]="preferredCountries"
|
|
8
|
-
[enablePlaceholder]="enablePlaceholder"
|
|
9
|
-
[enableSearch]="enableSearch"
|
|
10
|
-
[disabled]="disabled"
|
|
11
|
-
[formControlName]="'phone'"
|
|
12
|
-
name="phone"
|
|
13
|
-
[inputPlaceholder]="placeholder"
|
|
14
|
-
>
|
|
15
|
-
</ngx-mat-intl-tel-input>
|
|
16
|
-
</form>
|
|
17
|
-
</app-element-wrapper>
|