ecabs-components 0.0.48 → 0.0.50

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.
Files changed (29) hide show
  1. package/esm2020/lib/base/element-wrapper/element-wrapper.component.mjs +3 -3
  2. package/esm2020/lib/base/element-wrapper/element-wrapper.module.mjs +5 -5
  3. package/esm2020/lib/base/validation/validation.component.mjs +3 -3
  4. package/esm2020/lib/base/validation/validation.module.mjs +6 -6
  5. package/esm2020/lib/ecabs-active-status-filter/ecabs-active-status-filter.component.mjs +31 -0
  6. package/esm2020/lib/ecabs-active-status-filter/ecabs-active-status-filter.module.mjs +20 -0
  7. package/esm2020/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.mjs +2 -2
  8. package/esm2020/lib/ecabs-increment/ecabs-increment.component.mjs +2 -2
  9. package/esm2020/lib/ecabs-picker-header/ecabs-picker-header.component.mjs +2 -2
  10. package/esm2020/lib/ecabs-validation/ecabs-validation.component.mjs +19 -0
  11. package/esm2020/lib/ecabs-validation/ecabs-validation.module.mjs +19 -0
  12. package/esm2020/lib/models/validation.models.mjs +2 -0
  13. package/esm2020/public-api.mjs +20 -16
  14. package/fesm2015/ecabs-components.mjs +208 -139
  15. package/fesm2015/ecabs-components.mjs.map +1 -1
  16. package/fesm2020/ecabs-components.mjs +208 -139
  17. package/fesm2020/ecabs-components.mjs.map +1 -1
  18. package/lib/base/element-wrapper/element-wrapper.module.d.ts +1 -1
  19. package/lib/base/validation/validation.component.d.ts +1 -1
  20. package/lib/base/validation/validation.module.d.ts +4 -4
  21. package/lib/ecabs-active-status-filter/ecabs-active-status-filter.component.d.ts +14 -0
  22. package/lib/ecabs-active-status-filter/ecabs-active-status-filter.module.d.ts +10 -0
  23. package/lib/ecabs-validation/ecabs-validation.component.d.ts +10 -0
  24. package/lib/ecabs-validation/ecabs-validation.module.d.ts +9 -0
  25. package/lib/models/validation.models.d.ts +7 -0
  26. package/package.json +1 -1
  27. package/public-api.d.ts +19 -15
  28. package/styles/material/overrides/_select.scss +12 -0
  29. package/styles/scss/modules/_select.scss +19 -0
@@ -11,6 +11,6 @@ import * as i9 from "@angular/material/tooltip";
11
11
  import * as i10 from "../hint/hint.module";
12
12
  export declare class ElementWrapperModule {
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<ElementWrapperModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<ElementWrapperModule, [typeof i1.ElementWrapperComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.EcabsLoadingModule, typeof i5.ValidationModule, typeof i6.MatFormFieldModule, typeof i7.MatInputModule, typeof i8.MatIconModule, typeof i9.MatTooltipModule, typeof i10.HintModule], [typeof i1.ElementWrapperComponent]>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ElementWrapperModule, [typeof i1.ElementWrapperComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.EcabsLoadingModule, typeof i5.EcabsValidationModule, typeof i6.MatFormFieldModule, typeof i7.MatInputModule, typeof i8.MatIconModule, typeof i9.MatTooltipModule, typeof i10.HintModule], [typeof i1.ElementWrapperComponent]>;
15
15
  static ɵinj: i0.ɵɵInjectorDeclaration<ElementWrapperModule>;
16
16
  }
@@ -20,5 +20,5 @@ export declare class ValidationComponent implements OnInit, OnChanges {
20
20
  replaceTokens(message: string): string;
21
21
  getMessageDetail(key: any): string;
22
22
  static ɵfac: i0.ɵɵFactoryDeclaration<ValidationComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<ValidationComponent, "app-validations-messages", never, { "element": "element"; "label": "label"; "showValidationOnNotTouched": "showValidationOnNotTouched"; "updatedErrors": "updatedErrors"; }, {}, never, never, false>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<ValidationComponent, "ecabs-validations-messages", never, { "element": "element"; "label": "label"; "showValidationOnNotTouched": "showValidationOnNotTouched"; "updatedErrors": "updatedErrors"; }, {}, never, never, false>;
24
24
  }
@@ -3,8 +3,8 @@ import * as i1 from "./validation.component";
3
3
  import * as i2 from "@angular/common";
4
4
  import * as i3 from "@angular/forms";
5
5
  import * as i4 from "@angular/material/form-field";
6
- export declare class ValidationModule {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<ValidationModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<ValidationModule, [typeof i1.ValidationComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.MatFormFieldModule], [typeof i1.ValidationComponent]>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<ValidationModule>;
6
+ export declare class EcabsValidationModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<EcabsValidationModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<EcabsValidationModule, [typeof i1.ValidationComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.MatFormFieldModule], [typeof i1.ValidationComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<EcabsValidationModule>;
10
10
  }
@@ -0,0 +1,14 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ActiveStatusFilterComponent {
4
+ statuses: {
5
+ text: string;
6
+ value: boolean;
7
+ }[];
8
+ initialStatus: boolean;
9
+ readonly statusChange: EventEmitter<boolean>;
10
+ onFilter(currFilter: boolean): void;
11
+ checkSelectableStatus(status: boolean): boolean;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActiveStatusFilterComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActiveStatusFilterComponent, "ecabs-active-status-filter", never, { "statuses": "statuses"; "initialStatus": "initialStatus"; }, { "statusChange": "statusChange"; }, never, never, false>;
14
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./ecabs-active-status-filter.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/material/chips";
5
+ import * as i4 from "@angular/material/icon";
6
+ export declare class EcabsActiveStatusFilterModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<EcabsActiveStatusFilterModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<EcabsActiveStatusFilterModule, [typeof i1.ActiveStatusFilterComponent], [typeof i2.CommonModule, typeof i3.MatChipsModule, typeof i4.MatIconModule], [typeof i1.ActiveStatusFilterComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<EcabsActiveStatusFilterModule>;
10
+ }
@@ -0,0 +1,10 @@
1
+ import { UntypedFormGroup } from '@angular/forms';
2
+ import { FormControlValidation } from '../models/validation.models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class EcabsValidationComponent {
5
+ validations: FormControlValidation[];
6
+ form: UntypedFormGroup;
7
+ title: string;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<EcabsValidationComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<EcabsValidationComponent, "ecabs-validation", never, { "validations": "validations"; "form": "form"; "title": "title"; }, {}, never, never, false>;
10
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./ecabs-validation.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../base/validation/validation.module";
5
+ export declare class EcabsValidationViewModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<EcabsValidationViewModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<EcabsValidationViewModule, [typeof i1.EcabsValidationComponent], [typeof i2.CommonModule, typeof i3.EcabsValidationModule], [typeof i1.EcabsValidationComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<EcabsValidationViewModule>;
9
+ }
@@ -0,0 +1,7 @@
1
+ export interface FormControlValidation {
2
+ controlName: string;
3
+ errors: {
4
+ type: string;
5
+ message: string;
6
+ }[];
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecabs-components",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.2.0",
6
6
  "@angular/core": "^14.2.0",
package/public-api.d.ts CHANGED
@@ -16,39 +16,43 @@ export * from './lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component';
16
16
  export * from './lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.module';
17
17
  export * from './lib/ecabs-date-picker/ecabs-date-picker.component';
18
18
  export * from './lib/ecabs-date-picker/components/ecabs-date-picker-header/ecabs-date-picker-header.component';
19
+ export * from './lib/ecabs-date-time-picker/ecabs-date-time-picker.module';
19
20
  export * from './lib/ecabs-date-time-picker/ecabs-date-time-picker.component';
20
21
  export * from './lib/ecabs-date-time-picker/components/ecabs-date-time-picker-header/ecabs-date-time-picker-header.component';
21
- export * from './lib/ecabs-date-time-picker/ecabs-date-time-picker.module';
22
22
  export * from './lib/ecabs-date-picker/ecabs-date-picker.module';
23
+ export * from './lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.module';
23
24
  export * from './lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.component';
24
25
  export * from './lib/ecabs-date-time-range-picker/components/ecabs-date-time-range-picker-header/ecabs-date-time-range-picker-header.component';
25
- export * from './lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.module';
26
26
  export * from './lib/ecabs-date-time-range-picker/time-range.directive';
27
- export * from './lib/ecabs-increment/ecabs-increment.component';
28
27
  export * from './lib/ecabs-increment/ecabs-increment.module';
29
- export * from './lib/ecabs-phone/ecabs-phone.component';
28
+ export * from './lib/ecabs-increment/ecabs-increment.component';
30
29
  export * from './lib/ecabs-phone/ecabs-phone.module';
31
- export * from './lib/ecabs-radio-button-list/ecabs-radio-button-list.component';
30
+ export * from './lib/ecabs-phone/ecabs-phone.component';
32
31
  export * from './lib/ecabs-radio-button-list/ecabs-radio-button-list.module';
32
+ export * from './lib/ecabs-radio-button-list/ecabs-radio-button-list.component';
33
+ export * from './lib/ecabs-timepicker/ecabs-timepicker.module';
33
34
  export * from './lib/ecabs-timepicker/ecabs-timepicker.component';
34
35
  export * from './lib/ecabs-timepicker/componets/ecabs-time-list-panel/ecabs-time-list-panel.component';
35
36
  export * from './lib/ecabs-timepicker/ecabs-timepicker.service';
36
- export * from './lib/ecabs-timepicker/ecabs-timepicker.module';
37
- export * from './lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component';
38
37
  export * from './lib/ecabs-empty-placeholder/ecabs-empty-placeholder.module';
39
- export * from './lib/ecabs-expansion-panel/ecabs-expansion-panel.component';
38
+ export * from './lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component';
40
39
  export * from './lib/ecabs-expansion-panel/ecabs-expansion-panel.module';
41
- export * from './lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component';
40
+ export * from './lib/ecabs-expansion-panel/ecabs-expansion-panel.component';
42
41
  export * from './lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.module';
43
- export * from './lib/ecabs-table/ecabs-table.component';
42
+ export * from './lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component';
44
43
  export * from './lib/ecabs-table/ecabs-table.module';
45
- export * from './lib/ecabs-note/ecabs-note.component';
44
+ export * from './lib/ecabs-table/ecabs-table.component';
46
45
  export * from './lib/ecabs-note/ecabs-note.module';
47
- export * from './lib/ecabs-dialog-confirm/ecabs-dialog-confirm.component';
46
+ export * from './lib/ecabs-note/ecabs-note.component';
48
47
  export * from './lib/ecabs-dialog-confirm/ecabs-dialog-confirm.module';
49
- export * from './lib/ecabs-dialog-message/ecabs-dialog-message.component';
48
+ export * from './lib/ecabs-dialog-confirm/ecabs-dialog-confirm.component';
50
49
  export * from './lib/ecabs-dialog-message/ecabs-dialog-message.module';
51
- export * from './lib/ecabs-breadcrumb/ecabs-breadcrumb.component';
50
+ export * from './lib/ecabs-dialog-message/ecabs-dialog-message.component';
52
51
  export * from './lib/ecabs-breadcrumb/ecabs-breadcrumb.module';
53
- export * from './lib/ecabs-language-selector/ecabs-language-selector.component';
52
+ export * from './lib/ecabs-breadcrumb/ecabs-breadcrumb.component';
54
53
  export * from './lib/ecabs-language-selector/ecabs-language-selector.module';
54
+ export * from './lib/ecabs-language-selector/ecabs-language-selector.component';
55
+ export * from './lib/ecabs-active-status-filter/ecabs-active-status-filter.module';
56
+ export * from './lib/ecabs-active-status-filter/ecabs-active-status-filter.component';
57
+ export * from './lib/ecabs-validation/ecabs-validation.module';
58
+ export * from './lib/ecabs-validation/ecabs-validation.component';
@@ -1,11 +1,23 @@
1
1
  .mat-select {
2
2
  @extend .select;
3
3
 
4
+ .mat-select-arrow {
5
+ border-left: 0;
6
+ border-right: 0;
7
+ }
8
+
4
9
  .mat-select-arrow-wrapper {
10
+ width: calc-rem(16px);
5
11
  display: unset;
6
12
  vertical-align: auto;
7
13
  transform: none;
8
14
  padding-top: 0.375rem;
15
+
16
+ opacity: 1;
17
+ background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik02IDcuNDEwMTZMMCAxLjQxMDE2TDEuNDEgMC4wMDAxNTY0MDNMNiA0LjU4MDE2TDEwLjU5IDAuMDAwMTU2NDAzTDEyIDEuNDEwMTZMNiA3LjQxMDE2WiIgZmlsbD0iIzZCNkQ3MyIvPgo8L3N2Zz4K);
18
+ background-size: calc-rem(12px 7.41px);
19
+ background-position: right center;
20
+ background-repeat: no-repeat;
9
21
  }
10
22
 
11
23
  &-panel-wrap {
@@ -16,6 +16,25 @@ $border-radius: 0.25rem;
16
16
  }
17
17
  }
18
18
 
19
+ .mat-select-arrow {
20
+ border-left: 0;
21
+ border-right: 0;
22
+ }
23
+
24
+ .mat-select-arrow-wrapper {
25
+ width: calc-rem(16px);
26
+ display: unset;
27
+ vertical-align: auto;
28
+ transform: none;
29
+ padding-top: 0.375rem;
30
+
31
+ opacity: 1;
32
+ background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik02IDcuNDEwMTZMMCAxLjQxMDE2TDEuNDEgMC4wMDAxNTY0MDNMNiA0LjU4MDE2TDEwLjU5IDAuMDAwMTU2NDAzTDEyIDEuNDEwMTZMNiA3LjQxMDE2WiIgZmlsbD0iIzZCNkQ3MyIvPgo8L3N2Zz4K);
33
+ background-size: calc-rem(12px 7.41px);
34
+ background-position: right center;
35
+ background-repeat: no-repeat;
36
+ }
37
+
19
38
  .mat-select-disabled {
20
39
  background-color: var(--color-white-opacity-05);
21
40