@ascentgl/ads-ui 0.0.25 → 0.0.27

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 (34) hide show
  1. package/esm2022/index.mjs +2 -1
  2. package/esm2022/lib/components/form-fields/area/textarea.component.mjs +3 -3
  3. package/esm2022/lib/components/form-fields/datepickers/date-picker/datepicker.component.mjs +3 -3
  4. package/esm2022/lib/components/form-fields/datepickers/datetime-picker/datetimepicker.component.mjs +3 -3
  5. package/esm2022/lib/components/form-fields/datepickers/time-picker/timepicker.component.mjs +3 -3
  6. package/esm2022/lib/components/form-fields/dropdowns/dropdown/dropdown.component.mjs +3 -3
  7. package/esm2022/lib/components/form-fields/dropdowns/multi-select-dropdown/multi-select-dropdown.component.mjs +3 -3
  8. package/esm2022/lib/components/form-fields/input/input.component.mjs +3 -3
  9. package/esm2022/lib/components/form-fields/phone-field/index.mjs +2 -0
  10. package/esm2022/lib/components/form-fields/phone-field/phone-field.component.mjs +52 -0
  11. package/esm2022/lib/components/form-fields/phone-field/phone-field.module.mjs +62 -0
  12. package/esm2022/lib/components/form-fields/phone-field/public-api.mjs +3 -0
  13. package/esm2022/lib/components/form-fields/search-fields/search-dropdown/search-dropdown.component.mjs +3 -3
  14. package/esm2022/lib/components/form-fields/search-fields/search-input/search-input.component.mjs +3 -3
  15. package/esm2022/lib/components/form-fields/selection-fields/radio-button/radio-button.component.mjs +3 -3
  16. package/esm2022/lib/components/modal/modal.component.mjs +3 -4
  17. package/esm2022/lib/components/modal/modal.module.mjs +3 -4
  18. package/esm2022/lib/components/snackbars/snackbar/snackbar.component.mjs +4 -5
  19. package/esm2022/lib/components/snackbars/snackbar/snackbar.module.mjs +3 -4
  20. package/esm2022/lib/components/tags/create-tag/create-tag.component.mjs +3 -4
  21. package/esm2022/lib/components/tags/create-tag/create-tag.module.mjs +1 -4
  22. package/fesm2022/ascentgl-ads-ui.mjs +124 -40
  23. package/fesm2022/ascentgl-ads-ui.mjs.map +1 -1
  24. package/index.d.ts +1 -0
  25. package/lib/components/form-fields/phone-field/index.d.ts +1 -0
  26. package/lib/components/form-fields/phone-field/phone-field.component.d.ts +17 -0
  27. package/lib/components/form-fields/phone-field/phone-field.module.d.ts +18 -0
  28. package/lib/components/form-fields/phone-field/public-api.d.ts +2 -0
  29. package/lib/components/modal/modal.component.d.ts +4 -1
  30. package/lib/components/modal/modal.module.d.ts +2 -3
  31. package/lib/components/snackbars/snackbar/snackbar.component.d.ts +1 -1
  32. package/lib/components/snackbars/snackbar/snackbar.module.d.ts +2 -3
  33. package/lib/components/tags/create-tag/create-tag.module.d.ts +3 -4
  34. package/package.json +20 -19
package/index.d.ts CHANGED
@@ -28,6 +28,7 @@ export * from './lib/components/tags/tag-container';
28
28
  export * from './lib/components/form-fields/dropdowns/dropdown';
29
29
  export * from './lib/components/form-fields/dropdowns/multi-select-dropdown';
30
30
  export * from './lib/components/form-fields/input';
31
+ export * from './lib/components/form-fields/phone-field';
31
32
  export * from './lib/components/form-fields/area';
32
33
  export * from './lib/components/form-fields/dropdowns/input-dropdown';
33
34
  export * from './lib/components/form-fields/search-fields/search-dropdown';
@@ -0,0 +1 @@
1
+ export * from './public-api';
@@ -0,0 +1,17 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { AbstractInputComponent } from '../abstracts/abstract.input.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AdsPhoneFieldComponent extends AbstractInputComponent implements OnChanges {
5
+ /** Provide country code */
6
+ selectedCountryCode: string;
7
+ /** @ignore */
8
+ phoneMask: import("@angular/core").WritableSignal<string>;
9
+ /** @ignore */
10
+ ngOnChanges(changes: SimpleChanges): void;
11
+ /** @ignore */
12
+ private updatePhoneMask;
13
+ /** @ignore */
14
+ private setInitialPhoneNumber;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdsPhoneFieldComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<AdsPhoneFieldComponent, "ads-phone-field", never, { "selectedCountryCode": { "alias": "selectedCountryCode"; "required": false; }; }, {}, never, never, false, never>;
17
+ }
@@ -0,0 +1,18 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./phone-field.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/material/form-field";
5
+ import * as i4 from "@angular/material/input";
6
+ import * as i5 from "@angular/forms";
7
+ import * as i6 from "ngx-mask";
8
+ import * as i7 from "@ascentgl/ads-icons";
9
+ import * as i8 from "@angular/material/button";
10
+ import * as i9 from "../common/error/error.component";
11
+ import * as i10 from "../common/hint/hint.component";
12
+ import * as i11 from "../common/success/success.component";
13
+ import * as i12 from "../common/input.tooltip.component";
14
+ export declare class AdsPhoneFieldModule {
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdsPhoneFieldModule, never>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdsPhoneFieldModule, [typeof i1.AdsPhoneFieldComponent], [typeof i2.CommonModule, typeof i3.MatFormFieldModule, typeof i4.MatInputModule, typeof i5.ReactiveFormsModule, typeof i6.NgxMaskDirective, typeof i5.FormsModule, typeof i7.AdsIconModule, typeof i8.MatIconButton, typeof i9.AdsErrorComponent, typeof i10.AdsHintComponent, typeof i11.AdsSuccessComponent, typeof i12.AdsInputTooltipComponent], [typeof i1.AdsPhoneFieldComponent]>;
17
+ static ɵinj: i0.ɵɵInjectorDeclaration<AdsPhoneFieldModule>;
18
+ }
@@ -0,0 +1,2 @@
1
+ export * from './phone-field.module';
2
+ export * from './phone-field.component';
@@ -1,15 +1,18 @@
1
1
  import { TemplateRef } from '@angular/core';
2
2
  import { MatDialogRef } from '@angular/material/dialog';
3
3
  import { AdsIconRegistry } from '@ascentgl/ads-icons';
4
+ import { GENERIC_COLLECTION } from '@ascentgl/ads-utils';
4
5
  import * as i0 from "@angular/core";
5
6
  export type AdsModalData = {
6
- title: string;
7
+ title?: string;
7
8
  content: string;
8
9
  hideCancel?: boolean;
9
10
  cancelButtonText?: string;
10
11
  confirmButtonText?: string;
12
+ headerTemplate?: TemplateRef<unknown>;
11
13
  contentTemplate?: TemplateRef<unknown>;
12
14
  actionsTemplate?: TemplateRef<unknown>;
15
+ templateData?: GENERIC_COLLECTION;
13
16
  };
14
17
  export declare enum ModalPanelClass {
15
18
  Confirmation = "ads-confirmation"
@@ -3,10 +3,9 @@ import * as i1 from "./modal.component";
3
3
  import * as i2 from "@angular/material/dialog";
4
4
  import * as i3 from "../buttons/button/button.module";
5
5
  import * as i4 from "@ascentgl/ads-icons";
6
- import * as i5 from "@jsverse/transloco";
7
- import * as i6 from "@angular/common";
6
+ import * as i5 from "@angular/common";
8
7
  export declare class AdsModalModule {
9
8
  static ɵfac: i0.ɵɵFactoryDeclaration<AdsModalModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdsModalModule, [typeof i1.AdsModalComponent], [typeof i2.MatDialogModule, typeof i3.AdsButtonModule, typeof i4.AdsIconModule, typeof i5.TranslocoPipe, typeof i6.NgTemplateOutlet], [typeof i1.AdsModalComponent]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdsModalModule, [typeof i1.AdsModalComponent], [typeof i2.MatDialogModule, typeof i3.AdsButtonModule, typeof i4.AdsIconModule, typeof i5.NgTemplateOutlet], [typeof i1.AdsModalComponent]>;
11
10
  static ɵinj: i0.ɵɵInjectorDeclaration<AdsModalModule>;
12
11
  }
@@ -10,7 +10,7 @@ export type SnackBarData = {
10
10
  export declare class AdsSnackbarComponent {
11
11
  data: SnackBarData;
12
12
  snackBarRef: MatSnackBarRef<any>;
13
- readonly defaultButtonCaption = "CloseButton";
13
+ readonly defaultButtonCaption = "Close Button";
14
14
  protected readonly PanelClass: typeof PanelClass;
15
15
  get buttonPanelClass(): PanelClass;
16
16
  /** @ignore */
@@ -2,10 +2,9 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./snackbar.component";
3
3
  import * as i2 from "../../buttons/button/button.module";
4
4
  import * as i3 from "@angular/material/snack-bar";
5
- import * as i4 from "@jsverse/transloco";
6
- import * as i5 from "@angular/common";
5
+ import * as i4 from "@angular/common";
7
6
  export declare class AdsSnackbarModule {
8
7
  static ɵfac: i0.ɵɵFactoryDeclaration<AdsSnackbarModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdsSnackbarModule, [typeof i1.AdsSnackbarComponent], [typeof i2.AdsButtonModule, typeof i3.MatSnackBarModule, typeof i4.TranslocoPipe, typeof i5.CommonModule], [typeof i1.AdsSnackbarComponent]>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdsSnackbarModule, [typeof i1.AdsSnackbarComponent], [typeof i2.AdsButtonModule, typeof i3.MatSnackBarModule, typeof i4.CommonModule], [typeof i1.AdsSnackbarComponent]>;
10
9
  static ɵinj: i0.ɵɵInjectorDeclaration<AdsSnackbarModule>;
11
10
  }
@@ -6,11 +6,10 @@ import * as i4 from "@angular/cdk/overlay";
6
6
  import * as i5 from "@angular/forms";
7
7
  import * as i6 from "@ascentgl/ads-icons";
8
8
  import * as i7 from "../../buttons/button/button.module";
9
- import * as i8 from "@jsverse/transloco";
10
- import * as i9 from "../tag-container/tag-container.module";
11
- import * as i10 from "../tag/tag.module";
9
+ import * as i8 from "../tag-container/tag-container.module";
10
+ import * as i9 from "../tag/tag.module";
12
11
  export declare class AdsCreateTagModule {
13
12
  static ɵfac: i0.ɵɵFactoryDeclaration<AdsCreateTagModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdsCreateTagModule, [typeof i1.AdsCreateTagComponent], [typeof i2.CommonModule, typeof i3.MatButtonModule, typeof i4.OverlayModule, typeof i5.ReactiveFormsModule, typeof i6.AdsIconModule, typeof i7.AdsButtonModule, typeof i8.TranslocoPipe, typeof i9.AdsTagContainerModule, typeof i10.AdsTagModule], [typeof i1.AdsCreateTagComponent]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdsCreateTagModule, [typeof i1.AdsCreateTagComponent], [typeof i2.CommonModule, typeof i3.MatButtonModule, typeof i4.OverlayModule, typeof i5.ReactiveFormsModule, typeof i6.AdsIconModule, typeof i7.AdsButtonModule, typeof i8.AdsTagContainerModule, typeof i9.AdsTagModule], [typeof i1.AdsCreateTagComponent]>;
15
14
  static ɵinj: i0.ɵɵInjectorDeclaration<AdsCreateTagModule>;
16
15
  }
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@ascentgl/ads-ui",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "peerDependencies": {
5
5
  "@ascentgl/ads-icons": ">=0.0.0",
6
6
  "@ascentgl/ads-utils": ">=0.0.0",
7
7
  "@jsverse/transloco": ">=7.0.0",
8
8
  "ag-grid-angular": "32.0.2",
9
9
  "ag-grid-community": "32.0.2",
10
- "angular-split": "18.0.0"
10
+ "angular-split": "18.0.0",
11
+ "ngx-mask": "19.0.3"
11
12
  },
12
13
  "description": "This library was generated with [Nx](https://nx.dev).",
13
14
  "main": "jest.config.js",
@@ -71,23 +72,17 @@
71
72
  "esm": "./esm2022/src/lib/components/buttons/button-container/ascentgl-ads-ui-src-lib-components-buttons-button-container.mjs",
72
73
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-buttons-button-container.mjs"
73
74
  },
74
- "./src/lib/components/footer/container": {
75
- "types": "./src/lib/components/footer/container/index.d.ts",
76
- "esm2022": "./esm2022/src/lib/components/footer/container/ascentgl-ads-ui-src-lib-components-footer-container.mjs",
77
- "esm": "./esm2022/src/lib/components/footer/container/ascentgl-ads-ui-src-lib-components-footer-container.mjs",
78
- "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-footer-container.mjs"
79
- },
80
75
  "./src/lib/components/error-page/error-page-code": {
81
76
  "types": "./src/lib/components/error-page/error-page-code/index.d.ts",
82
77
  "esm2022": "./esm2022/src/lib/components/error-page/error-page-code/ascentgl-ads-ui-src-lib-components-error-page-error-page-code.mjs",
83
78
  "esm": "./esm2022/src/lib/components/error-page/error-page-code/ascentgl-ads-ui-src-lib-components-error-page-error-page-code.mjs",
84
79
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-error-page-error-page-code.mjs"
85
80
  },
86
- "./src/lib/components/header/container": {
87
- "types": "./src/lib/components/header/container/index.d.ts",
88
- "esm2022": "./esm2022/src/lib/components/header/container/ascentgl-ads-ui-src-lib-components-header-container.mjs",
89
- "esm": "./esm2022/src/lib/components/header/container/ascentgl-ads-ui-src-lib-components-header-container.mjs",
90
- "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-header-container.mjs"
81
+ "./src/lib/components/footer/container": {
82
+ "types": "./src/lib/components/footer/container/index.d.ts",
83
+ "esm2022": "./esm2022/src/lib/components/footer/container/ascentgl-ads-ui-src-lib-components-footer-container.mjs",
84
+ "esm": "./esm2022/src/lib/components/footer/container/ascentgl-ads-ui-src-lib-components-footer-container.mjs",
85
+ "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-footer-container.mjs"
91
86
  },
92
87
  "./src/lib/components/logo/primary-logo": {
93
88
  "types": "./src/lib/components/logo/primary-logo/index.d.ts",
@@ -95,24 +90,30 @@
95
90
  "esm": "./esm2022/src/lib/components/logo/primary-logo/ascentgl-ads-ui-src-lib-components-logo-primary-logo.mjs",
96
91
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-logo-primary-logo.mjs"
97
92
  },
93
+ "./src/lib/components/header/container": {
94
+ "types": "./src/lib/components/header/container/index.d.ts",
95
+ "esm2022": "./esm2022/src/lib/components/header/container/ascentgl-ads-ui-src-lib-components-header-container.mjs",
96
+ "esm": "./esm2022/src/lib/components/header/container/ascentgl-ads-ui-src-lib-components-header-container.mjs",
97
+ "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-header-container.mjs"
98
+ },
98
99
  "./src/lib/components/progress-indicators/progress-bar": {
99
100
  "types": "./src/lib/components/progress-indicators/progress-bar/index.d.ts",
100
101
  "esm2022": "./esm2022/src/lib/components/progress-indicators/progress-bar/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-bar.mjs",
101
102
  "esm": "./esm2022/src/lib/components/progress-indicators/progress-bar/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-bar.mjs",
102
103
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-bar.mjs"
103
104
  },
104
- "./src/lib/components/progress-indicators/progress-indicator-spinner": {
105
- "types": "./src/lib/components/progress-indicators/progress-indicator-spinner/index.d.ts",
106
- "esm2022": "./esm2022/src/lib/components/progress-indicators/progress-indicator-spinner/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-indicator-spinner.mjs",
107
- "esm": "./esm2022/src/lib/components/progress-indicators/progress-indicator-spinner/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-indicator-spinner.mjs",
108
- "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-indicator-spinner.mjs"
109
- },
110
105
  "./src/lib/components/progress-indicators/progress-spinner": {
111
106
  "types": "./src/lib/components/progress-indicators/progress-spinner/index.d.ts",
112
107
  "esm2022": "./esm2022/src/lib/components/progress-indicators/progress-spinner/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-spinner.mjs",
113
108
  "esm": "./esm2022/src/lib/components/progress-indicators/progress-spinner/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-spinner.mjs",
114
109
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-spinner.mjs"
115
110
  },
111
+ "./src/lib/components/progress-indicators/progress-indicator-spinner": {
112
+ "types": "./src/lib/components/progress-indicators/progress-indicator-spinner/index.d.ts",
113
+ "esm2022": "./esm2022/src/lib/components/progress-indicators/progress-indicator-spinner/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-indicator-spinner.mjs",
114
+ "esm": "./esm2022/src/lib/components/progress-indicators/progress-indicator-spinner/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-indicator-spinner.mjs",
115
+ "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-indicator-spinner.mjs"
116
+ },
116
117
  "./src/lib/components/tags/tag-container": {
117
118
  "types": "./src/lib/components/tags/tag-container/index.d.ts",
118
119
  "esm2022": "./esm2022/src/lib/components/tags/tag-container/ascentgl-ads-ui-src-lib-components-tags-tag-container.mjs",