@ascentgl/ads-ui 0.0.24 → 0.0.26

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 (42) hide show
  1. package/esm2022/index.mjs +2 -1
  2. package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +5 -8
  3. package/esm2022/lib/components/breadcrumb/breadcrumb.type.mjs +1 -1
  4. package/esm2022/lib/components/form-fields/area/textarea.component.mjs +3 -3
  5. package/esm2022/lib/components/form-fields/datepickers/date-picker/datepicker.component.mjs +3 -3
  6. package/esm2022/lib/components/form-fields/datepickers/datetime-picker/datetimepicker.component.mjs +3 -3
  7. package/esm2022/lib/components/form-fields/datepickers/time-picker/timepicker.component.mjs +3 -3
  8. package/esm2022/lib/components/form-fields/dropdowns/dropdown/dropdown.component.mjs +3 -3
  9. package/esm2022/lib/components/form-fields/dropdowns/multi-select-dropdown/multi-select-dropdown.component.mjs +3 -3
  10. package/esm2022/lib/components/form-fields/input/input.component.mjs +3 -3
  11. package/esm2022/lib/components/form-fields/phone-field/index.mjs +2 -0
  12. package/esm2022/lib/components/form-fields/phone-field/phone-field.component.mjs +52 -0
  13. package/esm2022/lib/components/form-fields/phone-field/phone-field.module.mjs +62 -0
  14. package/esm2022/lib/components/form-fields/phone-field/public-api.mjs +3 -0
  15. package/esm2022/lib/components/form-fields/search-fields/search-dropdown/search-dropdown.component.mjs +3 -3
  16. package/esm2022/lib/components/form-fields/search-fields/search-input/search-input.component.mjs +3 -3
  17. package/esm2022/lib/components/form-fields/selection-fields/radio-button/radio-button.component.mjs +3 -3
  18. package/esm2022/lib/components/modal/modal.component.mjs +3 -4
  19. package/esm2022/lib/components/modal/modal.module.mjs +3 -4
  20. package/esm2022/lib/components/nav-bar/scms-side-nav-bar/scms-side-nav-bar.component.mjs +8 -3
  21. package/esm2022/lib/components/nav-bar/scms-side-nav-bar/scms-side-nav-bar.module.mjs +7 -3
  22. package/esm2022/lib/components/snackbars/snackbar/snackbar.component.mjs +4 -5
  23. package/esm2022/lib/components/snackbars/snackbar/snackbar.module.mjs +3 -4
  24. package/esm2022/lib/components/tags/create-tag/create-tag.component.mjs +3 -4
  25. package/esm2022/lib/components/tags/create-tag/create-tag.module.mjs +1 -4
  26. package/fesm2022/ascentgl-ads-ui.mjs +136 -49
  27. package/fesm2022/ascentgl-ads-ui.mjs.map +1 -1
  28. package/index.d.ts +1 -0
  29. package/lib/components/breadcrumb/breadcrumb.component.d.ts +4 -6
  30. package/lib/components/breadcrumb/breadcrumb.type.d.ts +3 -5
  31. package/lib/components/form-fields/phone-field/index.d.ts +1 -0
  32. package/lib/components/form-fields/phone-field/phone-field.component.d.ts +17 -0
  33. package/lib/components/form-fields/phone-field/phone-field.module.d.ts +18 -0
  34. package/lib/components/form-fields/phone-field/public-api.d.ts +2 -0
  35. package/lib/components/modal/modal.component.d.ts +4 -1
  36. package/lib/components/modal/modal.module.d.ts +2 -3
  37. package/lib/components/nav-bar/scms-side-nav-bar/scms-side-nav-bar.component.d.ts +6 -1
  38. package/lib/components/nav-bar/scms-side-nav-bar/scms-side-nav-bar.module.d.ts +2 -1
  39. package/lib/components/snackbars/snackbar/snackbar.component.d.ts +1 -1
  40. package/lib/components/snackbars/snackbar/snackbar.module.d.ts +2 -3
  41. package/lib/components/tags/create-tag/create-tag.module.d.ts +3 -4
  42. package/package.json +7 -7
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';
@@ -3,7 +3,7 @@ import { AdsIconRegistry } from '@ascentgl/ads-icons';
3
3
  import { Breadcrumb } from './breadcrumb.type';
4
4
  import { BreadcrumbVisualProcessor } from './breadcrumb.visual-processor';
5
5
  import * as i0 from "@angular/core";
6
- export declare class AdsBreadcrumbComponent<T> implements OnChanges, AfterViewInit {
6
+ export declare class AdsBreadcrumbComponent implements OnChanges, AfterViewInit {
7
7
  private registry;
8
8
  private cdr;
9
9
  /** @ignore */
@@ -11,7 +11,7 @@ export declare class AdsBreadcrumbComponent<T> implements OnChanges, AfterViewIn
11
11
  /** @ignore */
12
12
  listRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
13
13
  /** provide an array of breadcrumbs of Breadcrumb<T> type */
14
- breadcrumbs: import("@angular/core").InputSignal<Breadcrumb<T>[]>;
14
+ breadcrumbs: import("@angular/core").InputSignal<Breadcrumb[]>;
15
15
  /** @ignore */
16
16
  visualProcessor?: BreadcrumbVisualProcessor;
17
17
  /** @ignore */
@@ -25,11 +25,9 @@ export declare class AdsBreadcrumbComponent<T> implements OnChanges, AfterViewIn
25
25
  /** @ignore */
26
26
  resize(): void;
27
27
  /** @ignore */
28
- onClick(breadcrumb: Breadcrumb<T>): void;
29
- /** @ignore */
30
28
  scrollLeft(): void;
31
29
  /** @ignore */
32
30
  scrollRight(): void;
33
- static ɵfac: i0.ɵɵFactoryDeclaration<AdsBreadcrumbComponent<any>, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<AdsBreadcrumbComponent<any>, "ads-breadcrumb", never, { "breadcrumbs": { "alias": "breadcrumbs"; "required": true; "isSignal": true; }; }, {}, never, never, false, never>;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdsBreadcrumbComponent, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<AdsBreadcrumbComponent, "ads-breadcrumb", never, { "breadcrumbs": { "alias": "breadcrumbs"; "required": true; "isSignal": true; }; }, {}, never, never, false, never>;
35
33
  }
@@ -1,6 +1,4 @@
1
- export type Breadcrumb<T> = {
2
- primaryLabel: string;
3
- callback: (payload: T) => void;
4
- active: boolean;
5
- payload: T;
1
+ export type Breadcrumb = {
2
+ label: string;
3
+ url: string;
6
4
  };
@@ -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
  }
@@ -5,6 +5,7 @@ import { Router } from '@angular/router';
5
5
  import { MatAccordion } from '@angular/material/expansion';
6
6
  import { SplitComponent } from 'angular-split';
7
7
  import { AdsIconRegistry } from '@ascentgl/ads-icons';
8
+ import { Breadcrumb } from '../../breadcrumb';
8
9
  import * as i0 from "@angular/core";
9
10
  export declare class AdsScmsSideNavBarComponent extends AbstractSideNavBarComponent {
10
11
  protected router: Router;
@@ -19,6 +20,10 @@ export declare class AdsScmsSideNavBarComponent extends AbstractSideNavBarCompon
19
20
  accordion: import("@angular/core").Signal<MatAccordion>;
20
21
  /** Array of nav elements */
21
22
  navItems: import("@angular/core").InputSignal<ScmsNavItem[]>;
23
+ /** Array of breadcrumb elements */
24
+ breadcrumbs: import("@angular/core").InputSignal<Breadcrumb[]>;
25
+ /** Show/hide breadcrumbs on the current page */
26
+ showBreadcrumbs: import("@angular/core").InputSignal<boolean>;
22
27
  /** @ignore */
23
28
  localStorageName: string;
24
29
  /** @ignore */
@@ -30,5 +35,5 @@ export declare class AdsScmsSideNavBarComponent extends AbstractSideNavBarCompon
30
35
  /** @ignore */
31
36
  private isActive;
32
37
  static ɵfac: i0.ɵɵFactoryDeclaration<AdsScmsSideNavBarComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<AdsScmsSideNavBarComponent, "ads-scms-side-nav-bar", never, { "navItems": { "alias": "navItems"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<AdsScmsSideNavBarComponent, "ads-scms-side-nav-bar", never, { "navItems": { "alias": "navItems"; "required": false; "isSignal": true; }; "breadcrumbs": { "alias": "breadcrumbs"; "required": false; "isSignal": true; }; "showBreadcrumbs": { "alias": "showBreadcrumbs"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
34
39
  }
@@ -8,8 +8,9 @@ import * as i6 from "../../divider/divider.module";
8
8
  import * as i7 from "@angular/material/expansion";
9
9
  import * as i8 from "../../logo/ascent-logo/ascent-logo.module";
10
10
  import * as i9 from "@angular/material/tooltip";
11
+ import * as i10 from "../../breadcrumb/breadcrumb.module";
11
12
  export declare class AdsScmsSideNavBarModule {
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<AdsScmsSideNavBarModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdsScmsSideNavBarModule, [typeof i1.AdsScmsSideNavBarComponent], [typeof i2.CommonModule, typeof i3.SplitComponent, typeof i3.SplitAreaComponent, typeof i4.RouterOutlet, typeof i4.RouterLink, typeof i4.RouterLinkActive, typeof i5.AdsIconModule, typeof i6.AdsDividerModule, typeof i7.MatAccordion, typeof i7.MatExpansionPanel, typeof i7.MatExpansionPanelDescription, typeof i7.MatExpansionPanelHeader, typeof i7.MatExpansionPanelTitle, typeof i8.AdsAscentLogoModule, typeof i9.MatTooltip], [typeof i1.AdsScmsSideNavBarComponent]>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdsScmsSideNavBarModule, [typeof i1.AdsScmsSideNavBarComponent], [typeof i2.CommonModule, typeof i3.SplitComponent, typeof i3.SplitAreaComponent, typeof i4.RouterOutlet, typeof i4.RouterLink, typeof i4.RouterLinkActive, typeof i5.AdsIconModule, typeof i6.AdsDividerModule, typeof i7.MatAccordion, typeof i7.MatExpansionPanel, typeof i7.MatExpansionPanelDescription, typeof i7.MatExpansionPanelHeader, typeof i7.MatExpansionPanelTitle, typeof i8.AdsAscentLogoModule, typeof i9.MatTooltip, typeof i10.AdsBreadcrumbModule], [typeof i1.AdsScmsSideNavBarComponent]>;
14
15
  static ɵinj: i0.ɵɵInjectorDeclaration<AdsScmsSideNavBarModule>;
15
16
  }
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ascentgl/ads-ui",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "peerDependencies": {
5
5
  "@ascentgl/ads-icons": ">=0.0.0",
6
6
  "@ascentgl/ads-utils": ">=0.0.0",
@@ -101,18 +101,18 @@
101
101
  "esm": "./esm2022/src/lib/components/progress-indicators/progress-bar/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-bar.mjs",
102
102
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-bar.mjs"
103
103
  },
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
104
  "./src/lib/components/progress-indicators/progress-spinner": {
111
105
  "types": "./src/lib/components/progress-indicators/progress-spinner/index.d.ts",
112
106
  "esm2022": "./esm2022/src/lib/components/progress-indicators/progress-spinner/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-spinner.mjs",
113
107
  "esm": "./esm2022/src/lib/components/progress-indicators/progress-spinner/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-spinner.mjs",
114
108
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-spinner.mjs"
115
109
  },
110
+ "./src/lib/components/progress-indicators/progress-indicator-spinner": {
111
+ "types": "./src/lib/components/progress-indicators/progress-indicator-spinner/index.d.ts",
112
+ "esm2022": "./esm2022/src/lib/components/progress-indicators/progress-indicator-spinner/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-indicator-spinner.mjs",
113
+ "esm": "./esm2022/src/lib/components/progress-indicators/progress-indicator-spinner/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-indicator-spinner.mjs",
114
+ "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-progress-indicators-progress-indicator-spinner.mjs"
115
+ },
116
116
  "./src/lib/components/tags/tag-container": {
117
117
  "types": "./src/lib/components/tags/tag-container/index.d.ts",
118
118
  "esm2022": "./esm2022/src/lib/components/tags/tag-container/ascentgl-ads-ui-src-lib-components-tags-tag-container.mjs",