@tuki-io/tuki-widgets 0.0.219-dev.35 → 0.0.219-dev.37
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/esm2020/locations/public-api.mjs +8 -0
- package/esm2020/locations/src/app.constants.mjs +6 -0
- package/esm2020/locations/src/locations.component.mjs +215 -0
- package/esm2020/locations/src/locations.module.mjs +39 -0
- package/esm2020/locations/src/material.module.mjs +48 -0
- package/esm2020/locations/src/services/api.service.mjs +67 -0
- package/esm2020/locations/src/services/locations.service.mjs +51 -0
- package/esm2020/locations/src/types/location.mjs +2 -0
- package/esm2020/locations/src/utils/app-loader/app-loader.mjs +14 -0
- package/esm2020/locations/tuki-io-tuki-widgets-locations.mjs +5 -0
- package/esm2020/user-creation/src/widgets/user-creation-wizard/components/user-template-step/user-template-step.component.mjs +2 -1
- package/esm2020/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.component.mjs +3 -3
- package/fesm2015/tuki-io-tuki-widgets-locations.mjs +439 -0
- package/fesm2015/tuki-io-tuki-widgets-locations.mjs.map +1 -0
- package/fesm2015/tuki-io-tuki-widgets-user-creation.mjs +3 -2
- package/fesm2015/tuki-io-tuki-widgets-user-creation.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-locations.mjs +433 -0
- package/fesm2020/tuki-io-tuki-widgets-locations.mjs.map +1 -0
- package/fesm2020/tuki-io-tuki-widgets-user-creation.mjs +3 -2
- package/fesm2020/tuki-io-tuki-widgets-user-creation.mjs.map +1 -1
- package/locations/index.d.ts +5 -0
- package/locations/public-api.d.ts +2 -0
- package/locations/src/app.constants.d.ts +5 -0
- package/locations/src/locations.component.d.ts +68 -0
- package/locations/src/locations.module.d.ts +12 -0
- package/locations/src/material.module.d.ts +11 -0
- package/locations/src/services/api.service.d.ts +18 -0
- package/locations/src/services/locations.service.d.ts +15 -0
- package/locations/src/types/location.d.ts +17 -0
- package/locations/src/utils/app-loader/app-loader.d.ts +6 -0
- package/package.json +9 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { APIService } from './services/api.service';
|
|
3
|
+
import { LocationsService } from './services/locations.service';
|
|
4
|
+
import { Location } from './types/location';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
type LocationsSortDirection = 'asc' | 'desc';
|
|
7
|
+
export declare class LocationsComponent implements OnInit {
|
|
8
|
+
private apiService;
|
|
9
|
+
private locationsService;
|
|
10
|
+
exHost: string;
|
|
11
|
+
token: string;
|
|
12
|
+
customerId: number;
|
|
13
|
+
openLocation: EventEmitter<string>;
|
|
14
|
+
editLocation: EventEmitter<string>;
|
|
15
|
+
removeLocation: EventEmitter<string>;
|
|
16
|
+
addLocation: EventEmitter<void>;
|
|
17
|
+
importLocations: EventEmitter<void>;
|
|
18
|
+
locations: Location[];
|
|
19
|
+
totalElements: number;
|
|
20
|
+
isLoading: boolean;
|
|
21
|
+
searchTerm: string;
|
|
22
|
+
sortDirection: LocationsSortDirection;
|
|
23
|
+
isBannerDismissed: boolean;
|
|
24
|
+
readonly pageSizeOptions: number[];
|
|
25
|
+
pageIndex: number;
|
|
26
|
+
pageSize: number;
|
|
27
|
+
isFilterPanelOpen: boolean;
|
|
28
|
+
filters: {
|
|
29
|
+
country: string;
|
|
30
|
+
pendingActions: string;
|
|
31
|
+
};
|
|
32
|
+
private readonly countryDisplayNames;
|
|
33
|
+
constructor(apiService: APIService, locationsService: LocationsService);
|
|
34
|
+
ngOnInit(): void;
|
|
35
|
+
private loadPage;
|
|
36
|
+
get pendingLocations(): Location[];
|
|
37
|
+
get showPendingBanner(): boolean;
|
|
38
|
+
get countries(): string[];
|
|
39
|
+
get filteredLocations(): Location[];
|
|
40
|
+
get pageRangeLabel(): string;
|
|
41
|
+
get hasPreviousPage(): boolean;
|
|
42
|
+
get hasNextPage(): boolean;
|
|
43
|
+
addressLine(location: Location): string;
|
|
44
|
+
countryLabel(location: Location): string;
|
|
45
|
+
private readonly provisioningTypeIcons;
|
|
46
|
+
provisioningTypeIcon(location: Location): {
|
|
47
|
+
src: string;
|
|
48
|
+
tooltip: string;
|
|
49
|
+
} | null;
|
|
50
|
+
onSearchInputChange(event: Event): void;
|
|
51
|
+
toggleNameSort(): void;
|
|
52
|
+
dismissBanner(): void;
|
|
53
|
+
toggleFilterPanel(): void;
|
|
54
|
+
closeFilterPanel(): void;
|
|
55
|
+
clearFilters(): void;
|
|
56
|
+
onPageSizeChange(event: Event): void;
|
|
57
|
+
goToPreviousPage(): void;
|
|
58
|
+
goToNextPage(): void;
|
|
59
|
+
onOpenLocation(location: Location): void;
|
|
60
|
+
onEditLocation(location: Location): void;
|
|
61
|
+
onRemoveLocation(location: Location): void;
|
|
62
|
+
onAddLocation(): void;
|
|
63
|
+
onImportLocations(): void;
|
|
64
|
+
exportLocations(): void;
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocationsComponent, never>;
|
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LocationsComponent, "tk-locations", never, { "exHost": "exHost"; "token": "token"; "customerId": "customerId"; }, { "openLocation": "openLocation"; "editLocation": "editLocation"; "removeLocation": "removeLocation"; "addLocation": "addLocation"; "importLocations": "importLocations"; }, never, never, false, never>;
|
|
67
|
+
}
|
|
68
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./locations.component";
|
|
3
|
+
import * as i2 from "./utils/app-loader/app-loader";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@angular/common/http";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
import * as i6 from "./material.module";
|
|
8
|
+
export declare class LocationsModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocationsModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LocationsModule, [typeof i1.LocationsComponent, typeof i2.AppLoaderComponent], [typeof i3.CommonModule, typeof i4.HttpClientModule, typeof i5.FormsModule, typeof i6.MaterialModule], [typeof i1.LocationsComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LocationsModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/material/button";
|
|
3
|
+
import * as i2 from "@angular/material/icon";
|
|
4
|
+
import * as i3 from "@angular/material/menu";
|
|
5
|
+
import * as i4 from "@angular/material/progress-spinner";
|
|
6
|
+
import * as i5 from "@angular/material/tooltip";
|
|
7
|
+
export declare class MaterialModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialModule, never, [typeof i1.MatButtonModule, typeof i2.MatIconModule, typeof i3.MatMenuModule, typeof i4.MatProgressSpinnerModule, typeof i5.MatTooltipModule], [typeof i1.MatButtonModule, typeof i2.MatIconModule, typeof i3.MatMenuModule, typeof i4.MatProgressSpinnerModule, typeof i5.MatTooltipModule]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MaterialModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class APIService {
|
|
5
|
+
private httpClient;
|
|
6
|
+
token: string;
|
|
7
|
+
apiUrl: string;
|
|
8
|
+
constructor(httpClient: HttpClient);
|
|
9
|
+
fetch(url: string, params?: any, cache?: boolean): Observable<any>;
|
|
10
|
+
post(url: string, body: any, params?: {}): Observable<any>;
|
|
11
|
+
put(url: string, body?: any, params?: {}): Observable<any>;
|
|
12
|
+
delete(url: string, params?: {}): Observable<Object>;
|
|
13
|
+
private prepareEncodedParams;
|
|
14
|
+
private getHeaders;
|
|
15
|
+
private getParameterByName;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<APIService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<APIService>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { APIService } from './api.service';
|
|
3
|
+
import { Location } from '../types/location';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface LocationsPage {
|
|
6
|
+
locations: Location[];
|
|
7
|
+
totalElements: number;
|
|
8
|
+
}
|
|
9
|
+
export declare class LocationsService {
|
|
10
|
+
private apiService;
|
|
11
|
+
constructor(apiService: APIService);
|
|
12
|
+
fetchLocations(customerId: number, page: number, size: number): Observable<LocationsPage>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocationsService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LocationsService>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface LocationAddress {
|
|
2
|
+
address1: string;
|
|
3
|
+
address2: string;
|
|
4
|
+
city: string;
|
|
5
|
+
state: string;
|
|
6
|
+
postalCode: string;
|
|
7
|
+
country: string;
|
|
8
|
+
countryName: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Location {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
timeZone: string;
|
|
14
|
+
address: LocationAddress;
|
|
15
|
+
provisioningType: string;
|
|
16
|
+
hasPendingActions: boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class AppLoaderComponent {
|
|
3
|
+
constructor();
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppLoaderComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppLoaderComponent, "app-loader", never, {}, {}, never, never, false, never>;
|
|
6
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuki-io/tuki-widgets",
|
|
3
|
-
"version": "0.0.219-dev.
|
|
3
|
+
"version": "0.0.219-dev.37",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^15.2.0",
|
|
6
6
|
"@angular/core": "^15.2.0",
|
|
@@ -44,6 +44,14 @@
|
|
|
44
44
|
"node": "./fesm2015/tuki-io-tuki-widgets-di2mt.mjs",
|
|
45
45
|
"default": "./fesm2020/tuki-io-tuki-widgets-di2mt.mjs"
|
|
46
46
|
},
|
|
47
|
+
"./locations": {
|
|
48
|
+
"types": "./locations/index.d.ts",
|
|
49
|
+
"esm2020": "./esm2020/locations/tuki-io-tuki-widgets-locations.mjs",
|
|
50
|
+
"es2020": "./fesm2020/tuki-io-tuki-widgets-locations.mjs",
|
|
51
|
+
"es2015": "./fesm2015/tuki-io-tuki-widgets-locations.mjs",
|
|
52
|
+
"node": "./fesm2015/tuki-io-tuki-widgets-locations.mjs",
|
|
53
|
+
"default": "./fesm2020/tuki-io-tuki-widgets-locations.mjs"
|
|
54
|
+
},
|
|
47
55
|
"./meetings": {
|
|
48
56
|
"types": "./meetings/index.d.ts",
|
|
49
57
|
"esm2020": "./esm2020/meetings/tuki-io-tuki-widgets-meetings.mjs",
|