asksuite-citrus 3.11.3-beta5 → 3.11.4

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 (30) hide show
  1. package/esm2022/lib/components/accordion/extendable-panel/extendable-panel.component.mjs +2 -2
  2. package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +2 -2
  3. package/esm2022/lib/components/avatar/avatar.component.mjs +2 -2
  4. package/esm2022/lib/components/box/box.component.mjs +2 -2
  5. package/esm2022/lib/components/button/button.component.mjs +2 -2
  6. package/esm2022/lib/components/character-counter/character-counter.component.mjs +2 -2
  7. package/esm2022/lib/components/checkbox/checkbox.component.mjs +2 -2
  8. package/esm2022/lib/components/chips/chips.component.mjs +2 -2
  9. package/esm2022/lib/components/date-picker/date-picker-calendar/date-picker-calendar.component.mjs +2 -2
  10. package/esm2022/lib/components/date-picker/date-picker.component.mjs +2 -2
  11. package/esm2022/lib/components/dropdown-container/dropdown-container.component.mjs +2 -2
  12. package/esm2022/lib/components/input/input.component.mjs +2 -2
  13. package/esm2022/lib/components/modal/confirmation-modal/confirmation-modal.component.mjs +2 -2
  14. package/esm2022/lib/components/modal/modal.component.mjs +2 -2
  15. package/esm2022/lib/components/pagination/pagination.component.mjs +2 -2
  16. package/esm2022/lib/components/phone-ddi/phone-ddi.component.mjs +3 -6
  17. package/esm2022/lib/components/richtext-toolbox/richtext-toolbox.component.mjs +2 -2
  18. package/esm2022/lib/components/richtext-url-prompt/richtext-url-prompt.component.mjs +2 -2
  19. package/esm2022/lib/components/select/select.component.mjs +2 -2
  20. package/esm2022/lib/components/table/table.component.mjs +2 -2
  21. package/esm2022/lib/components/toast/toast.component.mjs +2 -2
  22. package/esm2022/shared/services/country-flag.service.mjs +4 -12
  23. package/fesm2022/asksuite-citrus.mjs +46 -72
  24. package/fesm2022/asksuite-citrus.mjs.map +1 -1
  25. package/lib/components/phone-ddi/phone-ddi.component.d.ts +1 -2
  26. package/package.json +1 -1
  27. package/shared/services/country-flag.service.d.ts +1 -4
  28. package/styles/colors.scss +2 -1
  29. package/esm2022/shared/services/location-api.service.mjs +0 -20
  30. package/shared/services/location-api.service.d.ts +0 -20
@@ -10,7 +10,6 @@ export declare class PhoneDdiComponent extends OverlayComponent implements OnIni
10
10
  private countryFlagService;
11
11
  disabled: boolean;
12
12
  value: string;
13
- useLocationApi: boolean;
14
13
  useCountryCode: string;
15
14
  valueChange: EventEmitter<string>;
16
15
  onChangeFlag: EventEmitter<CountryData>;
@@ -50,5 +49,5 @@ export declare class PhoneDdiComponent extends OverlayComponent implements OnIni
50
49
  private handleInputChange;
51
50
  handlePhoneChange(event: any): void;
52
51
  static ɵfac: i0.ɵɵFactoryDeclaration<PhoneDdiComponent, never>;
53
- static ɵcmp: i0.ɵɵComponentDeclaration<PhoneDdiComponent, "ask-phone-ddi", never, { "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "useLocationApi": { "alias": "useLocationApi"; "required": false; }; "useCountryCode": { "alias": "useCountryCode"; "required": false; }; }, { "valueChange": "valueChange"; "onChangeFlag": "onChangeFlag"; }, never, never, false, never>;
52
+ static ɵcmp: i0.ɵɵComponentDeclaration<PhoneDdiComponent, "ask-phone-ddi", never, { "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "useCountryCode": { "alias": "useCountryCode"; "required": false; }; }, { "valueChange": "valueChange"; "onChangeFlag": "onChangeFlag"; }, never, never, false, never>;
54
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asksuite-citrus",
3
- "version": "3.11.3-beta5",
3
+ "version": "3.11.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.7",
6
6
  "@angular/core": "^17.3.7",
@@ -1,22 +1,19 @@
1
1
  import { CountryData } from "../providers/flag.provider";
2
2
  import { HttpClient } from "@angular/common/http";
3
3
  import { TranslateService } from "@ngx-translate/core";
4
- import { LocationApiService } from "./location-api.service";
5
4
  import * as i0 from "@angular/core";
6
5
  export default class CountryFlagService {
7
6
  private readonly flagUrl;
8
7
  private readonly http;
9
8
  private readonly translateService;
10
- private readonly locationApiService;
11
9
  private defaultCountryCode;
12
10
  private defaultCountryLanguage;
13
11
  private cacheList;
14
- constructor(flagUrl: string, http: HttpClient, translateService: TranslateService, locationApiService: LocationApiService);
12
+ constructor(flagUrl: string, http: HttpClient, translateService: TranslateService);
15
13
  list: () => import("rxjs").Observable<CountryData[]>;
16
14
  getDefaultCountryFlag(searchData: CountryData[], useCountryCode?: string): CountryData;
17
15
  getCountryDataForFlag(searchData: CountryData[], countryCode: string): CountryData;
18
16
  private getDefaultCountryLanguage;
19
- private findCountryCode;
20
17
  private extractCountryCode;
21
18
  private formatCountryData;
22
19
  static ɵfac: i0.ɵɵFactoryDeclaration<CountryFlagService, never>;
@@ -491,7 +491,7 @@ $color-border-warning: $color-y-700;
491
491
 
492
492
  $color-divider-default: $color-nl-400;
493
493
 
494
- $color-elevation-surface-default-default: $color-nl-100;
494
+ $color-elevation-surface-primary-default: $color-nl-100;
495
495
  $color-elevation-surface-default-hovered: $color-nl-200;
496
496
  $color-elevation-surface-sunken-default: $color-nl-0;
497
497
  $color-elevation-surface-sunken-hovered: $color-nl-100;
@@ -703,4 +703,5 @@ $color-texticon-danger: $color-r-600;
703
703
  --color-background-accent-green-contrast-hovered: #{$color-background-accent-green-contrast-hovered};
704
704
  --color-background-accent-green-contrast-pressed: #{$color-background-accent-green-contrast-pressed};
705
705
  --color-border-matted-alpha-primary: #{$color-nl-0};
706
+ --color-elevation-surface-primary-default: #{$color-elevation-surface-primary-default};
706
707
  }
@@ -1,20 +0,0 @@
1
- import { Injectable } from "@angular/core";
2
- import { catchError, map, of } from "rxjs";
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@angular/common/http";
5
- export class LocationApiService {
6
- constructor(http) {
7
- this.http = http;
8
- this.apiUrl = 'https://location-api.asksuite.com/v1/locations/by-ip';
9
- }
10
- getLocation() {
11
- return this.http.get(this.apiUrl).pipe(map(response => response.data.location), catchError(error => of(null)));
12
- }
13
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: LocationApiService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
14
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: LocationApiService, providedIn: 'root' }); }
15
- }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: LocationApiService, decorators: [{
17
- type: Injectable,
18
- args: [{ providedIn: 'root' }]
19
- }], ctorParameters: () => [{ type: i1.HttpClient }] });
20
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9jYXRpb24tYXBpLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hc2tzdWl0ZS1jaXRydXMvc3JjL3NoYXJlZC9zZXJ2aWNlcy9sb2NhdGlvbi1hcGkuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBYyxVQUFVLEVBQUUsR0FBRyxFQUFFLEVBQUUsRUFBRSxNQUFNLE1BQU0sQ0FBQzs7O0FBWXZELE1BQU0sT0FBTyxrQkFBa0I7SUFJN0IsWUFBb0IsSUFBZ0I7UUFBaEIsU0FBSSxHQUFKLElBQUksQ0FBWTtRQUY1QixXQUFNLEdBQUcsc0RBQXNELENBQUM7SUFFakMsQ0FBQztJQUV4QyxXQUFXO1FBQ1QsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBTSxJQUFJLENBQUMsTUFBTSxDQUFDLENBQUMsSUFBSSxDQUN6QyxHQ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RhdGEgfCBudWxsPiB7XG4gICAgcmV0dXJuIHRoaXMuaHR0cC5nZXQ8YW55Pih0aGlzLmFwaVVybCkucGlwZShcbiAgICAgIG1hcChyZXNwb25zZSA9PiByZXNwb25zZS5kYXRhLmxvY2F0aW9uKSxcbiAgICAgIGNhdGNoRXJyb3IoZXJyb3IgPT4gb2YobnVsbCkpXG4gICAgKTtcbiAgfVxufSJdfQ==
@@ -1,20 +0,0 @@
1
- import { HttpClient } from "@angular/common/http";
2
- import { Observable } from "rxjs";
3
- import * as i0 from "@angular/core";
4
- type LocationData = {
5
- city: string;
6
- country: string;
7
- country_code: string;
8
- ip: string;
9
- location: string;
10
- state: string;
11
- };
12
- export declare class LocationApiService {
13
- private http;
14
- private apiUrl;
15
- constructor(http: HttpClient);
16
- getLocation(): Observable<LocationData | null>;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<LocationApiService, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<LocationApiService>;
19
- }
20
- export {};