@ascentgl/ads-ui 0.0.157 → 0.0.159

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/index.d.ts CHANGED
@@ -71,3 +71,4 @@ export * from './lib/components/shell-layout/navigation/components/navigation-it
71
71
  export * from './lib/components/shell-layout/navigation/components/navigation-item';
72
72
  export * from './lib/components/header/org-display-text';
73
73
  export * from './lib/components/tabs';
74
+ export * from './lib/components/form-fields/international-phone-field';
@@ -1,5 +1,6 @@
1
1
  import { AdsIconHoverComponent } from '../icon-hover';
2
2
  import { adsIcon } from '@ascentgl/ads-icons/icons';
3
+ import { AdsIconRegistry } from '@ascentgl/ads-icons';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare enum BadgeColor {
5
6
  primary = "primary",
@@ -7,6 +8,9 @@ export declare enum BadgeColor {
7
8
  alert = "alert"
8
9
  }
9
10
  export declare class AdsNumericBadgeComponent extends AdsIconHoverComponent {
11
+ private registry;
12
+ /** @ignore **/
13
+ constructor(registry: AdsIconRegistry);
10
14
  /** choose badge color mode "primary" or "alert" **/
11
15
  color: import("@angular/core").InputSignal<BadgeColor>;
12
16
  /** provide icon name. NOTE: the icon must be registered in icon registry **/
@@ -31,11 +31,11 @@ export declare abstract class AbstractBaseComponent implements OnChanges, AfterV
31
31
  /** @ignore */
32
32
  valueControl: FormControl;
33
33
  /** @ignore */
34
- private readonly genericError;
34
+ protected readonly genericError: string;
35
35
  /** @ignore */
36
36
  protected readonly defaultErrorMessages: GENERIC_COLLECTION<string>;
37
37
  /** @ignore */
38
- private readonly requiredErrorMessage;
38
+ protected readonly requiredErrorMessage: string;
39
39
  constructor();
40
40
  ngOnChanges(changes: {
41
41
  immediateValidation: SimpleChange;
@@ -1,4 +1,4 @@
1
- import { OnChanges, SimpleChange } from '@angular/core';
1
+ import { OnChanges, SimpleChange, TemplateRef } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
3
  import { AbstractDropdownComponent, DropdownComponentOption, DropdownComponentOptions } from '../../abstracts/abstract.dropdown.component';
4
4
  import { MatSelect } from '@angular/material/select';
@@ -16,6 +16,12 @@ export declare class AdsDropdownComponent extends AbstractDropdownComponent impl
16
16
  checkSelected: boolean;
17
17
  /** Contains dropdown options */
18
18
  options?: DropdownComponentOptions;
19
+ /** Custom Option Template */
20
+ optionTemplate?: TemplateRef<unknown>;
21
+ /** Custom Trigger Template */
22
+ triggerTemplate?: TemplateRef<unknown>;
23
+ /** Custom Panel Class */
24
+ panelClass?: string;
19
25
  /** @ignore */
20
26
  panel?: MatSelect;
21
27
  /** @ignore */
@@ -59,6 +65,8 @@ export declare class AdsDropdownComponent extends AbstractDropdownComponent impl
59
65
  toggleOption(option: DropdownComponentOption): void;
60
66
  /** @ignore */
61
67
  onCheckboxChange(option: DropdownComponentOption): void;
68
+ /** @ignore */
69
+ get panelClassList(): string;
62
70
  static ɵfac: i0.ɵɵFactoryDeclaration<AdsDropdownComponent, never>;
63
- static ɵcmp: i0.ɵɵComponentDeclaration<AdsDropdownComponent, "ads-dropdown", never, { "displayValueFormatter": { "alias": "displayValueFormatter"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "hasEmptyValue": { "alias": "hasEmptyValue"; "required": false; }; "checkSelected": { "alias": "checkSelected"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, false, never>;
71
+ static ɵcmp: i0.ɵɵComponentDeclaration<AdsDropdownComponent, "ads-dropdown", never, { "displayValueFormatter": { "alias": "displayValueFormatter"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "hasEmptyValue": { "alias": "hasEmptyValue"; "required": false; }; "checkSelected": { "alias": "checkSelected"; "required": false; }; "options": { "alias": "options"; "required": false; }; "optionTemplate": { "alias": "optionTemplate"; "required": false; }; "triggerTemplate": { "alias": "triggerTemplate"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; }, {}, never, never, false, never>;
64
72
  }
@@ -0,0 +1 @@
1
+ export declare const canadianAreaCodes: string[];
@@ -0,0 +1 @@
1
+ export * from './public-api';
@@ -0,0 +1,53 @@
1
+ import { OnInit, ElementRef, AfterViewInit } from '@angular/core';
2
+ import { AbstractInputComponent } from '../abstracts/abstract.input.component';
3
+ import { FormControl } from '@angular/forms';
4
+ import * as i0 from "@angular/core";
5
+ interface Option {
6
+ name: string;
7
+ code: string;
8
+ iso: string;
9
+ }
10
+ export declare class AdsInternationalPhoneFieldComponent extends AbstractInputComponent implements OnInit, AfterViewInit {
11
+ /** Optional "id" attribute for dropdown field */
12
+ dropdownId: string;
13
+ wrapperRef: ElementRef;
14
+ /** @ignore */
15
+ phoneMask: string;
16
+ /** @ignore */
17
+ countryOptions: Option[];
18
+ /** @ignore */
19
+ flagBase64: {
20
+ US: string;
21
+ CA: string;
22
+ MX: string;
23
+ };
24
+ /** @ignore */
25
+ dropdownControl: FormControl;
26
+ /** @ignore */
27
+ inputControl: FormControl;
28
+ /** @ignore */
29
+ getNorthAmericanCountry(phone: string): Option;
30
+ /** @ignore */
31
+ ngOnInit(): void;
32
+ /** @ignore */
33
+ private parsePhoneNumber;
34
+ /** @ignore */
35
+ ngAfterViewInit(): void;
36
+ /** @ignore */
37
+ getFlag(option: Option): string;
38
+ /** @ignore */
39
+ onBlur: () => void;
40
+ /** @ignore */
41
+ protected validatePhoneNumber: () => void;
42
+ /** @ignore */
43
+ private provideValueToTheValueControl;
44
+ /** @ignore */
45
+ canShowError(): boolean;
46
+ /** @ignore */
47
+ canShowSuccess(): boolean;
48
+ /** @ignore */
49
+ displayFirstError(control?: FormControl): string;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdsInternationalPhoneFieldComponent, never>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<AdsInternationalPhoneFieldComponent, "ads-international-phone-field", never, { "dropdownId": { "alias": "dropdownId"; "required": false; }; }, {}, never, never, false, never>;
52
+ }
53
+ export {};
@@ -0,0 +1,15 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./international-phone-field.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "ngx-mask";
5
+ import * as i4 from "../input/input.module";
6
+ import * as i5 from "../dropdowns/dropdown/dropdown.module";
7
+ import * as i6 from "../common/error/error.component";
8
+ import * as i7 from "../common/hint/hint.component";
9
+ import * as i8 from "../common/input.tooltip.component";
10
+ import * as i9 from "../common/success/success.component";
11
+ export declare class AdsInternationalPhoneFieldModule {
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdsInternationalPhoneFieldModule, never>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdsInternationalPhoneFieldModule, [typeof i1.AdsInternationalPhoneFieldComponent], [typeof i2.CommonModule, typeof i3.NgxMaskDirective, typeof i4.AdsInputModule, typeof i5.AdsDropdownModule, typeof i6.AdsErrorComponent, typeof i7.AdsHintComponent, typeof i8.AdsInputTooltipComponent, typeof i9.AdsSuccessComponent], [typeof i1.AdsInternationalPhoneFieldComponent]>;
14
+ static ɵinj: i0.ɵɵInjectorDeclaration<AdsInternationalPhoneFieldModule>;
15
+ }
@@ -0,0 +1,2 @@
1
+ export * from './international-phone-field.module';
2
+ export * from './international-phone-field.component';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ascentgl/ads-ui",
3
- "version": "0.0.157",
3
+ "version": "0.0.159",
4
4
  "peerDependencies": {
5
5
  "@ascentgl/ads-icons": ">=0.0.0",
6
6
  "@ascentgl/ads-utils": ">=0.0.0",
@@ -44,14 +44,14 @@
44
44
  "types": "./src/lib/components/header/index.d.ts",
45
45
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-header.mjs"
46
46
  },
47
- "./src/lib/components/shell-layout": {
48
- "types": "./src/lib/components/shell-layout/index.d.ts",
49
- "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-shell-layout.mjs"
50
- },
51
47
  "./src/lib/components/splash-page": {
52
48
  "types": "./src/lib/components/splash-page/index.d.ts",
53
49
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-splash-page.mjs"
54
50
  },
51
+ "./src/lib/components/shell-layout": {
52
+ "types": "./src/lib/components/shell-layout/index.d.ts",
53
+ "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-shell-layout.mjs"
54
+ },
55
55
  "./src/lib/components/buttons/button-container": {
56
56
  "types": "./src/lib/components/buttons/button-container/index.d.ts",
57
57
  "default": "./fesm2022/ascentgl-ads-ui-src-lib-components-buttons-button-container.mjs"
@@ -11,4 +11,5 @@ html {
11
11
 
12
12
  --mat-form-field-container-height: 48px !important;
13
13
  --mat-dialog-container-small-max-width: calc(100vw - 32px) !important;
14
+ --mat-badge-container-shape: 50% !important;
14
15
  }