@sneat/components 0.1.3 → 0.1.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.
- package/esm2022/index.js +15 -0
- package/esm2022/index.js.map +1 -0
- package/esm2022/lib/app-version/app-version.component.js +16 -0
- package/esm2022/lib/app-version/app-version.component.js.map +1 -0
- package/esm2022/lib/app-version/build-info.js +5 -0
- package/esm2022/lib/app-version/build-info.js.map +1 -0
- package/esm2022/lib/app-version/index.js +3 -0
- package/esm2022/lib/app-version/index.js.map +1 -0
- package/esm2022/lib/card-list/index.js +2 -0
- package/esm2022/lib/card-list/index.js.map +1 -0
- package/esm2022/lib/card-list/sneat-card-list.component.js +106 -0
- package/esm2022/lib/card-list/sneat-card-list.component.js.map +1 -0
- package/esm2022/lib/copyright/copyright.component.js +11 -0
- package/esm2022/lib/copyright/copyright.component.js.map +1 -0
- package/esm2022/lib/copyright/index.js +2 -0
- package/esm2022/lib/copyright/index.js.map +1 -0
- package/esm2022/lib/country-input/country-input.component.js +59 -0
- package/esm2022/lib/country-input/country-input.component.js.map +1 -0
- package/esm2022/lib/country-input/index.js +2 -0
- package/esm2022/lib/country-input/index.js.map +1 -0
- package/esm2022/lib/country-selector/countries-loader.service.js +91 -0
- package/esm2022/lib/country-selector/countries-loader.service.js.map +1 -0
- package/esm2022/lib/country-selector/countries.js +22 -0
- package/esm2022/lib/country-selector/countries.js.map +1 -0
- package/esm2022/lib/country-selector/country-selector.component.js +103 -0
- package/esm2022/lib/country-selector/country-selector.component.js.map +1 -0
- package/esm2022/lib/country-selector/country-selector.service.js +15 -0
- package/esm2022/lib/country-selector/country-selector.service.js.map +1 -0
- package/esm2022/lib/country-selector/index.js +5 -0
- package/esm2022/lib/country-selector/index.js.map +1 -0
- package/esm2022/lib/date-input/date-input.component.js +70 -0
- package/esm2022/lib/date-input/date-input.component.js.map +1 -0
- package/esm2022/lib/date-input/date-modal.component.js +53 -0
- package/esm2022/lib/date-input/date-modal.component.js.map +1 -0
- package/esm2022/lib/dialog-header/dialog-header.component.js +23 -0
- package/esm2022/lib/dialog-header/dialog-header.component.js.map +1 -0
- package/esm2022/lib/dialog-header/index.js +2 -0
- package/esm2022/lib/dialog-header/index.js.map +1 -0
- package/esm2022/lib/error-card/index.js +2 -0
- package/esm2022/lib/error-card/index.js.map +1 -0
- package/esm2022/lib/error-card/sneat-error-card.component.js +23 -0
- package/esm2022/lib/error-card/sneat-error-card.component.js.map +1 -0
- package/esm2022/lib/filter-item/filter-item.component.js +37 -0
- package/esm2022/lib/filter-item/filter-item.component.js.map +1 -0
- package/esm2022/lib/filter-item/index.js +2 -0
- package/esm2022/lib/filter-item/index.js.map +1 -0
- package/esm2022/lib/pipes/country-emoji.pipe.js +69 -0
- package/esm2022/lib/pipes/country-emoji.pipe.js.map +1 -0
- package/esm2022/lib/pipes/decimal64p2.pipe.js +47 -0
- package/esm2022/lib/pipes/decimal64p2.pipe.js.map +1 -0
- package/esm2022/lib/pipes/gender.pipes.js +69 -0
- package/esm2022/lib/pipes/gender.pipes.js.map +1 -0
- package/esm2022/lib/pipes/index.js +7 -0
- package/esm2022/lib/pipes/index.js.map +1 -0
- package/esm2022/lib/pipes/long-month-name.pipe.js +41 -0
- package/esm2022/lib/pipes/long-month-name.pipe.js.map +1 -0
- package/esm2022/lib/pipes/short-month-name.pipe.js +31 -0
- package/esm2022/lib/pipes/short-month-name.pipe.js.map +1 -0
- package/esm2022/lib/pipes/team-emoji.pipe.js +31 -0
- package/esm2022/lib/pipes/team-emoji.pipe.js.map +1 -0
- package/esm2022/lib/save-event.js +2 -0
- package/esm2022/lib/save-event.js.map +1 -0
- package/esm2022/lib/user-country/user-country.component.js +136 -0
- package/esm2022/lib/user-country/user-country.component.js.map +1 -0
- package/esm2022/lib/virtual-slider/virtual-slider.js +83 -0
- package/esm2022/lib/virtual-slider/virtual-slider.js.map +1 -0
- package/esm2022/sneat-components.js +5 -0
- package/esm2022/sneat-components.js.map +1 -0
- package/lib/app-version/app-version.component.d.ts +9 -0
- package/lib/app-version/build-info.d.ts +4 -0
- package/lib/card-list/sneat-card-list.component.d.ts +43 -0
- package/lib/copyright/copyright.component.d.ts +5 -0
- package/lib/country-input/country-input.component.d.ts +16 -0
- package/lib/country-selector/countries-loader.service.d.ts +43 -0
- package/lib/country-selector/countries.d.ts +25 -0
- package/lib/country-selector/country-selector.component.d.ts +31 -0
- package/lib/country-selector/country-selector.service.d.ts +8 -0
- package/lib/date-input/date-input.component.d.ts +21 -0
- package/lib/date-input/date-modal.component.d.ts +13 -0
- package/lib/dialog-header/dialog-header.component.d.ts +8 -0
- package/lib/error-card/sneat-error-card.component.d.ts +8 -0
- package/lib/filter-item/filter-item.component.d.ts +13 -0
- package/lib/pipes/country-emoji.pipe.d.ts +29 -0
- package/lib/pipes/decimal64p2.pipe.d.ts +12 -0
- package/lib/pipes/gender.pipes.d.ts +20 -0
- package/lib/pipes/long-month-name.pipe.d.ts +7 -0
- package/lib/pipes/short-month-name.pipe.d.ts +8 -0
- package/lib/pipes/team-emoji.pipe.d.ts +8 -0
- package/lib/save-event.d.ts +5 -0
- package/lib/user-country/user-country.component.d.ts +24 -0
- package/lib/virtual-slider/virtual-slider.d.ts +13 -0
- package/package.json +14 -2
- package/sneat-components.d.ts +5 -0
- package/eslint.config.js +0 -7
- package/ng-package.json +0 -10
- package/project.json +0 -38
- package/src/assets/data/countries.json +0 -1730
- package/src/lib/app-version/app-version.component.html +0 -15
- package/src/lib/app-version/app-version.component.spec.ts +0 -25
- package/src/lib/app-version/app-version.component.ts +0 -17
- package/src/lib/app-version/build-info.ts +0 -8
- package/src/lib/card-list/sneat-card-list.component.html +0 -108
- package/src/lib/card-list/sneat-card-list.component.spec.ts +0 -131
- package/src/lib/card-list/sneat-card-list.component.ts +0 -125
- package/src/lib/copyright/copyright.component.html +0 -1
- package/src/lib/copyright/copyright.component.spec.ts +0 -24
- package/src/lib/copyright/copyright.component.ts +0 -7
- package/src/lib/country-input/country-input.component.html +0 -33
- package/src/lib/country-input/country-input.component.spec.ts +0 -84
- package/src/lib/country-input/country-input.component.ts +0 -76
- package/src/lib/country-selector/countries-loader.service.spec.ts +0 -149
- package/src/lib/country-selector/countries-loader.service.ts +0 -100
- package/src/lib/country-selector/countries.ts +0 -42
- package/src/lib/country-selector/country-selector.component.html +0 -24
- package/src/lib/country-selector/country-selector.component.spec.ts +0 -5
- package/src/lib/country-selector/country-selector.component.ts +0 -125
- package/src/lib/country-selector/country-selector.service.spec.ts +0 -23
- package/src/lib/country-selector/country-selector.service.ts +0 -11
- package/src/lib/date-input/date-input.component.html +0 -39
- package/src/lib/date-input/date-input.component.spec.ts +0 -179
- package/src/lib/date-input/date-input.component.ts +0 -97
- package/src/lib/date-input/date-modal.component.html +0 -23
- package/src/lib/date-input/date-modal.component.spec.ts +0 -105
- package/src/lib/date-input/date-modal.component.ts +0 -67
- package/src/lib/dialog-header/dialog-header.component.html +0 -8
- package/src/lib/dialog-header/dialog-header.component.spec.ts +0 -67
- package/src/lib/dialog-header/dialog-header.component.ts +0 -26
- package/src/lib/dismissable.ts +0 -6
- package/src/lib/error-card/sneat-error-card.component.html +0 -20
- package/src/lib/error-card/sneat-error-card.component.spec.ts +0 -49
- package/src/lib/error-card/sneat-error-card.component.ts +0 -28
- package/src/lib/filter-item/filter-item.component.html +0 -19
- package/src/lib/filter-item/filter-item.component.spec.ts +0 -83
- package/src/lib/filter-item/filter-item.component.ts +0 -47
- package/src/lib/pipes/country-emoji.pipe.spec.ts +0 -116
- package/src/lib/pipes/country-emoji.pipe.ts +0 -67
- package/src/lib/pipes/decimal64p2.pipe.spec.ts +0 -61
- package/src/lib/pipes/decimal64p2.pipe.ts +0 -35
- package/src/lib/pipes/gender.pipes.spec.ts +0 -84
- package/src/lib/pipes/gender.pipes.ts +0 -65
- package/src/lib/pipes/long-month-name.pipe.spec.ts +0 -36
- package/src/lib/pipes/long-month-name.pipe.ts +0 -35
- package/src/lib/pipes/short-month-name.pipe.spec.ts +0 -28
- package/src/lib/pipes/short-month-name.pipe.ts +0 -26
- package/src/lib/pipes/team-emoji.pipe.spec.ts +0 -27
- package/src/lib/pipes/team-emoji.pipe.ts +0 -26
- package/src/lib/save-event.ts +0 -5
- package/src/lib/test-ide-bug.ts +0 -24
- package/src/lib/user-country/user-country.component.html +0 -44
- package/src/lib/user-country/user-country.component.spec.ts +0 -136
- package/src/lib/user-country/user-country.component.ts +0 -172
- package/src/lib/virtual-slider/odd-even-virtual-slider.ts +0 -1
- package/src/lib/virtual-slider/virtual-slider.ts +0 -130
- package/src/lib/webstorm-type-err-demo.component.ts +0 -35
- package/src/test-setup.ts +0 -3
- package/tsconfig.json +0 -13
- package/tsconfig.lib.json +0 -19
- package/tsconfig.lib.prod.json +0 -7
- package/tsconfig.spec.json +0 -31
- package/vite.config.mts +0 -10
- /package/{src/index.ts → index.d.ts} +0 -0
- /package/{src/lib/app-version/index.ts → lib/app-version/index.d.ts} +0 -0
- /package/{src/lib/card-list/index.ts → lib/card-list/index.d.ts} +0 -0
- /package/{src/lib/copyright/index.ts → lib/copyright/index.d.ts} +0 -0
- /package/{src/lib/country-input/index.ts → lib/country-input/index.d.ts} +0 -0
- /package/{src/lib/country-selector/index.ts → lib/country-selector/index.d.ts} +0 -0
- /package/{src/lib/dialog-header/index.ts → lib/dialog-header/index.d.ts} +0 -0
- /package/{src/lib/error-card/index.ts → lib/error-card/index.d.ts} +0 -0
- /package/{src/lib/filter-item/index.ts → lib/filter-item/index.d.ts} +0 -0
- /package/{src/lib/pipes/index.ts → lib/pipes/index.d.ts} +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { PopoverController } from '@ionic/angular/standalone';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DateInputComponent {
|
|
5
|
+
readonly $label: import("@angular/core").InputSignal<string>;
|
|
6
|
+
readonly $value: import("@angular/core").InputSignal<string | undefined>;
|
|
7
|
+
readonly $max: import("@angular/core").InputSignal<string | undefined>;
|
|
8
|
+
readonly $newValue: import("@angular/core").WritableSignal<string | undefined>;
|
|
9
|
+
readonly $displayValue: import("@angular/core").Signal<string | undefined>;
|
|
10
|
+
readonly $updating: import("@angular/core").InputSignal<boolean | undefined>;
|
|
11
|
+
valueChange: EventEmitter<string | undefined>;
|
|
12
|
+
readonly $noValueLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
13
|
+
protected readonly $noValueText: import("@angular/core").Signal<string>;
|
|
14
|
+
protected readonly $noValueButtonColor: import("@angular/core").InputSignal<string | undefined>;
|
|
15
|
+
protected readonly popoverCtrl: PopoverController;
|
|
16
|
+
protected onValueChanged(event: CustomEvent): void;
|
|
17
|
+
protected save(event: Event): void;
|
|
18
|
+
protected openDatePicker(event: Event): Promise<void>;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateInputComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent, "sneat-date-input", never, { "$label": { "alias": "$label"; "required": true; "isSignal": true; }; "$value": { "alias": "$value"; "required": true; "isSignal": true; }; "$max": { "alias": "$max"; "required": false; "isSignal": true; }; "$updating": { "alias": "$updating"; "required": false; "isSignal": true; }; "$noValueLabel": { "alias": "$noValueLabel"; "required": false; "isSignal": true; }; "$noValueButtonColor": { "alias": "$noValueButtonColor"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SneatBaseComponent } from '@sneat/ui';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DateModalComponent extends SneatBaseComponent {
|
|
4
|
+
title?: string;
|
|
5
|
+
max?: string;
|
|
6
|
+
constructor();
|
|
7
|
+
private popoverCtrl;
|
|
8
|
+
protected readonly $date: import("@angular/core").WritableSignal<string | undefined>;
|
|
9
|
+
protected onDateChanged(event: CustomEvent): void;
|
|
10
|
+
protected dismiss(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateModalComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateModalComponent, "sneat-contact-dob-modal", never, { "title": { "alias": "title"; "required": false; }; "max": { "alias": "max"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class DialogHeaderComponent {
|
|
3
|
+
private readonly modalController;
|
|
4
|
+
dialogTitle: string;
|
|
5
|
+
close(event: Event): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogHeaderComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogHeaderComponent, "sneat-dialog-header", never, { "dialogTitle": { "alias": "dialogTitle"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SneatErrorCardComponent {
|
|
3
|
+
error?: {
|
|
4
|
+
message?: string;
|
|
5
|
+
};
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SneatErrorCardComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SneatErrorCardComponent, "sneat-datatug-error-card", never, { "error": { "alias": "error"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FilterItemComponent {
|
|
4
|
+
readonly $filter: import("@angular/core").InputSignal<string>;
|
|
5
|
+
readonly changed: EventEmitter<string>;
|
|
6
|
+
readonly blured: EventEmitter<Event>;
|
|
7
|
+
protected clearFilter(event: Event): void;
|
|
8
|
+
protected onFilterChanged(event: CustomEvent): void;
|
|
9
|
+
protected onBlured(event: Event): void;
|
|
10
|
+
private emitChanged;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterItemComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterItemComponent, "sneat-filter-item", never, { "$filter": { "alias": "$filter"; "required": true; "isSignal": true; }; }, { "changed": "changed"; "blured": "blured"; }, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { CountriesLoaderService } from '../country-selector';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Base class for country-related pipes that need to cache country data.
|
|
6
|
+
*/
|
|
7
|
+
declare abstract class CountryDataPipe {
|
|
8
|
+
protected readonly countriesLoader: CountriesLoaderService;
|
|
9
|
+
protected countriesCache?: Record<string, {
|
|
10
|
+
emoji: string;
|
|
11
|
+
title: string;
|
|
12
|
+
}>;
|
|
13
|
+
protected isLoading: boolean;
|
|
14
|
+
protected loadError: boolean;
|
|
15
|
+
constructor();
|
|
16
|
+
private loadCountriesData;
|
|
17
|
+
}
|
|
18
|
+
export declare const countryFlagEmoji: (countryID?: string) => string;
|
|
19
|
+
export declare class CountryFlagPipe extends CountryDataPipe implements PipeTransform {
|
|
20
|
+
transform(countryID?: string): string;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CountryFlagPipe, never>;
|
|
22
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<CountryFlagPipe, "countryFlag", true>;
|
|
23
|
+
}
|
|
24
|
+
export declare class CountryTitle extends CountryDataPipe implements PipeTransform {
|
|
25
|
+
transform(countryID?: string): string;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CountryTitle, never>;
|
|
27
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<CountryTitle, "countryTitle", true>;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class Decimal64p2Pipe implements PipeTransform {
|
|
4
|
+
readonly transform: (value?: number) => number;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Decimal64p2Pipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<Decimal64p2Pipe, "decimal64p2", true>;
|
|
7
|
+
}
|
|
8
|
+
export declare class Numeral2Pipe implements PipeTransform {
|
|
9
|
+
readonly transform: (value?: number | string) => string | number | undefined;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Numeral2Pipe, never>;
|
|
11
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<Numeral2Pipe, "numeral", true>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { Gender } from '@sneat/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class GenderIconNamePipe implements PipeTransform {
|
|
5
|
+
transform(gender?: Gender): string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenderIconNamePipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<GenderIconNamePipe, "genderIconName", true>;
|
|
8
|
+
}
|
|
9
|
+
export declare class GenderEmojiPipe implements PipeTransform {
|
|
10
|
+
transform(gender?: Gender): string;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenderEmojiPipe, never>;
|
|
12
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<GenderEmojiPipe, "genderEmoji", true>;
|
|
13
|
+
}
|
|
14
|
+
export type GenderColor = 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger' | 'dark' | 'medium';
|
|
15
|
+
export declare function genderColor(gender?: Gender): GenderColor;
|
|
16
|
+
export declare class GenderColorPipe implements PipeTransform {
|
|
17
|
+
readonly transform: typeof genderColor;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenderColorPipe, never>;
|
|
19
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<GenderColorPipe, "genderColor", true>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LongMonthNamePipe implements PipeTransform {
|
|
4
|
+
transform(month?: number): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LongMonthNamePipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<LongMonthNamePipe, "longMonthName", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare const shortMonthNamesByNumber: string[];
|
|
4
|
+
export declare class ShortMonthNamePipe implements PipeTransform {
|
|
5
|
+
transform(month?: number): string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShortMonthNamePipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ShortMonthNamePipe, "shortMonthName", true>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { SpaceType } from '@sneat/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SpaceEmojiPipe implements PipeTransform {
|
|
5
|
+
transform(communeType: SpaceType): string | undefined;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpaceEmojiPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SpaceEmojiPipe, "spaceEmoji", true>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { SneatBaseComponent } from '@sneat/ui';
|
|
3
|
+
import { ICountry } from '../country-selector';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class UserCountryComponent extends SneatBaseComponent implements OnDestroy {
|
|
6
|
+
private readonly httpClient;
|
|
7
|
+
private readonly userService;
|
|
8
|
+
private readonly countriesLoader;
|
|
9
|
+
protected readonly $ipCountryID: import("@angular/core").WritableSignal<string>;
|
|
10
|
+
protected readonly $ipCountry: import("@angular/core").WritableSignal<ICountry | undefined>;
|
|
11
|
+
protected readonly $userCountryID: import("@angular/core").WritableSignal<string>;
|
|
12
|
+
protected readonly $userHasCountry: import("@angular/core").Signal<boolean>;
|
|
13
|
+
protected isCountryDetectionStarted: boolean;
|
|
14
|
+
protected readonly $detectingCountry: import("@angular/core").WritableSignal<boolean>;
|
|
15
|
+
protected readonly $saving: import("@angular/core").WritableSignal<boolean>;
|
|
16
|
+
doNotHide: boolean;
|
|
17
|
+
private trackUserRecord;
|
|
18
|
+
constructor();
|
|
19
|
+
protected onCountryOfResidenceChanged(countryID: string): void;
|
|
20
|
+
private getIpCountry;
|
|
21
|
+
protected setCountry(countryID?: string): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserCountryComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserCountryComponent, "sneat-user-country", never, { "doNotHide": { "alias": "doNotHide"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AnimationTriggerMetadata } from '@angular/animations';
|
|
2
|
+
type VirtualSlideStateShow = 'show';
|
|
3
|
+
type VirtualSlideStateHide = 'hide';
|
|
4
|
+
export declare const showVirtualSlide: VirtualSlideStateShow;
|
|
5
|
+
export declare const hideVirtualSlide: VirtualSlideStateHide;
|
|
6
|
+
export type VirtualSlideAnimationsStates = VirtualSlideStateShow | VirtualSlideStateHide;
|
|
7
|
+
export declare const VirtualSliderDirectPushedNext = "direct-push-next";
|
|
8
|
+
export declare const VirtualSliderDirectPushedPrev = "direct-push-prev";
|
|
9
|
+
export declare const VirtualSliderReversePushedNext = "reverse-push-next";
|
|
10
|
+
export declare const VirtualSliderReversePushedPrev = "reverse-push-prev";
|
|
11
|
+
export type VirtualSliderAnimationStates = 'direct-push-next' | 'direct-push-prev' | 'reverse-push-next' | 'reverse-push-prev';
|
|
12
|
+
export declare const virtualSliderAnimations: AnimationTriggerMetadata[];
|
|
13
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sneat/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -11,5 +11,17 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"tslib": "2.8.1"
|
|
14
|
-
}
|
|
14
|
+
},
|
|
15
|
+
"module": "esm2022/sneat-components.js",
|
|
16
|
+
"typings": "sneat-components.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
"./package.json": {
|
|
19
|
+
"default": "./package.json"
|
|
20
|
+
},
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./sneat-components.d.ts",
|
|
23
|
+
"default": "./esm2022/sneat-components.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"sideEffects": false
|
|
15
27
|
}
|
package/eslint.config.js
DELETED
package/ng-package.json
DELETED
package/project.json
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "components",
|
|
3
|
-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
-
"projectType": "library",
|
|
5
|
-
"sourceRoot": "libs/components/src",
|
|
6
|
-
"prefix": "sneat",
|
|
7
|
-
"targets": {
|
|
8
|
-
"build": {
|
|
9
|
-
"executor": "@nx/angular:ng-packagr-lite",
|
|
10
|
-
"outputs": [
|
|
11
|
-
"{workspaceRoot}/dist/libs/components"
|
|
12
|
-
],
|
|
13
|
-
"options": {
|
|
14
|
-
"project": "libs/components/ng-package.json",
|
|
15
|
-
"tsConfig": "libs/components/tsconfig.lib.json"
|
|
16
|
-
},
|
|
17
|
-
"configurations": {
|
|
18
|
-
"production": {
|
|
19
|
-
"tsConfig": "libs/components/tsconfig.lib.prod.json"
|
|
20
|
-
},
|
|
21
|
-
"development": {}
|
|
22
|
-
},
|
|
23
|
-
"defaultConfiguration": "production"
|
|
24
|
-
},
|
|
25
|
-
"test": {
|
|
26
|
-
"executor": "@nx/vitest:test",
|
|
27
|
-
"outputs": [
|
|
28
|
-
"{workspaceRoot}/coverage/libs/components"
|
|
29
|
-
],
|
|
30
|
-
"options": {
|
|
31
|
-
"tsConfig": "libs/components/tsconfig.spec.json"
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"lint": {
|
|
35
|
-
"executor": "@nx/eslint:lint"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|