@unipin/angular-applet 17.3.1 → 18.0.0
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/lib/components/approval/detail/approval-detail.component.mjs +3 -3
- package/esm2022/lib/components/approval/form/approval-form.component.mjs +3 -3
- package/esm2022/lib/components/approval/list/approval-list.component.mjs +3 -3
- package/esm2022/lib/components/approval/services/approval.service.mjs +3 -3
- package/esm2022/lib/components/audit/detail/audit-detail.component.mjs +3 -3
- package/esm2022/lib/components/audit/list/audit-list.component.mjs +3 -3
- package/esm2022/lib/components/audit/service/audit.service.mjs +3 -3
- package/esm2022/lib/components/buttons/group/btn-group.component.mjs +5 -5
- package/esm2022/lib/components/buttons/loading/btn-loading.component.mjs +3 -3
- package/esm2022/lib/components/containers/applet-container/applet-container.component.mjs +21 -8
- package/esm2022/lib/components/containers/colum-header-container/column-header-container.component.mjs +5 -5
- package/esm2022/lib/components/containers/column-container/column-container.component.mjs +25 -9
- package/esm2022/lib/components/containers/column-container/directives/lazy-route.directive.mjs +3 -3
- package/esm2022/lib/components/containers/list-container/interfaces/list-container-config.interface.mjs +1 -1
- package/esm2022/lib/components/containers/list-container/list-pagination-container/list-pagination-container.component.mjs +8 -7
- package/esm2022/lib/components/containers/list-container/list-snapshot-container/list-snapshot-container.component.mjs +8 -7
- package/esm2022/lib/components/containers/modal-container/modal-container.component.mjs +9 -8
- package/esm2022/lib/components/filter/filter.component.mjs +5 -5
- package/esm2022/lib/components/forms/currency-input/form-currency-input.component.mjs +153 -0
- package/esm2022/lib/components/forms/date/form-date.component.mjs +6 -6
- package/esm2022/lib/components/forms/image-picker/directives/drag-n-drop.directive.mjs +3 -3
- package/esm2022/lib/components/forms/image-picker/form-image-picker.component.mjs +3 -3
- package/esm2022/lib/components/forms/index.mjs +2 -1
- package/esm2022/lib/components/forms/input/form-input.component.mjs +3 -3
- package/esm2022/lib/components/forms/number/form-number.component.mjs +3 -3
- package/esm2022/lib/components/forms/number/pipes/locale-number.pipe.mjs +3 -3
- package/esm2022/lib/components/forms/password/form-password.component.mjs +3 -3
- package/esm2022/lib/components/forms/searchable-select/form-searchable-select.component.mjs +3 -3
- package/esm2022/lib/components/forms/select/form-select.component.mjs +3 -3
- package/esm2022/lib/components/forms/textarea/form-textarea.component.mjs +3 -3
- package/esm2022/lib/components/grids/grid-pagination/grid-pagination.component.mjs +3 -3
- package/esm2022/lib/components/grids/grid-snapshot/grid-snapshot.component.mjs +3 -3
- package/esm2022/lib/components/grids/services/grid.service.mjs +9 -5
- package/esm2022/lib/components/index.mjs +2 -2
- package/esm2022/lib/components/tabs/tab-content/tab-content.component.mjs +3 -3
- package/esm2022/lib/components/tabs/tab-group/tab-group.component.mjs +3 -3
- package/esm2022/lib/components/tabs/tabs.component.module.mjs +4 -4
- package/esm2022/lib/interceptors/header/header.interceptor.mjs +3 -3
- package/esm2022/lib/interceptors/refresh-token/refresh-token.interceptor.mjs +3 -3
- package/esm2022/lib/modules/permission/directive/permission.directive.mjs +3 -3
- package/esm2022/lib/modules/permission/pages/401/unauthorized.page.mjs +3 -3
- package/esm2022/lib/modules/permission/pages/loading/loading.page.mjs +3 -3
- package/esm2022/lib/modules/permission/permission.module.mjs +4 -4
- package/esm2022/lib/modules/permission/services/permission.service.mjs +3 -3
- package/esm2022/lib/resolvers/auth/auth.resolver.mjs +3 -3
- package/esm2022/lib/services/auth/auth.service.mjs +11 -9
- package/esm2022/lib/services/country/country.service.mjs +3 -3
- package/esm2022/lib/services/currency/currency.service.mjs +9 -13
- package/esm2022/lib/services/profile/profile.service.mjs +3 -3
- package/esm2022/public-api.mjs +2 -2
- package/fesm2022/unipin-angular-applet.mjs +1509 -1334
- package/fesm2022/unipin-angular-applet.mjs.map +1 -1
- package/lib/components/containers/applet-container/applet-container.component.d.ts +6 -2
- package/lib/components/containers/column-container/column-container.component.d.ts +2 -0
- package/lib/components/containers/list-container/interfaces/list-container-config.interface.d.ts +2 -3
- package/lib/components/containers/modal-container/modal-container.component.d.ts +2 -1
- package/lib/components/forms/currency-input/form-currency-input.component.d.ts +55 -0
- package/lib/components/forms/index.d.ts +1 -0
- package/lib/components/grids/services/grid.service.d.ts +1 -1
- package/lib/components/index.d.ts +1 -1
- package/lib/services/currency/currency.service.d.ts +1 -1
- package/package.json +4 -4
- package/public-api.d.ts +1 -1
- package/src/assets/scss/grid.scss +9 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Subscription } from 'rxjs';
|
|
3
3
|
import { PermissionService } from '../../../modules';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -16,10 +16,13 @@ export declare class AppletContainerComponent implements OnInit, OnDestroy {
|
|
|
16
16
|
}[];
|
|
17
17
|
version: string;
|
|
18
18
|
};
|
|
19
|
+
protected readonly ch: ChangeDetectorRef;
|
|
19
20
|
protected readonly permissionService: PermissionService;
|
|
20
21
|
isCollapsed: boolean;
|
|
21
22
|
isHidden: boolean[];
|
|
23
|
+
isMenuActive: boolean;
|
|
22
24
|
protected sub: Subscription;
|
|
25
|
+
protected subEvent: Subscription;
|
|
23
26
|
constructor(config: {
|
|
24
27
|
icon: string;
|
|
25
28
|
name: string;
|
|
@@ -32,10 +35,11 @@ export declare class AppletContainerComponent implements OnInit, OnDestroy {
|
|
|
32
35
|
permModule: string;
|
|
33
36
|
}[];
|
|
34
37
|
version: string;
|
|
35
|
-
}, permissionService: PermissionService);
|
|
38
|
+
}, ch: ChangeDetectorRef, permissionService: PermissionService);
|
|
36
39
|
ngOnInit(): void;
|
|
37
40
|
ngOnDestroy(): void;
|
|
38
41
|
toggleSidenav(): void;
|
|
42
|
+
selectMenu(): void;
|
|
39
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppletContainerComponent, never>;
|
|
40
44
|
static ɵcmp: i0.ɵɵComponentDeclaration<AppletContainerComponent, "up-applet-container", never, {}, {}, never, ["*"], true, never>;
|
|
41
45
|
}
|
|
@@ -9,6 +9,7 @@ export declare class ColumnContainerComponent implements OnDestroy {
|
|
|
9
9
|
visible: boolean;
|
|
10
10
|
route: Route;
|
|
11
11
|
}[];
|
|
12
|
+
colSize: number;
|
|
12
13
|
protected readonly openedArea: {
|
|
13
14
|
[key: string]: number;
|
|
14
15
|
};
|
|
@@ -19,6 +20,7 @@ export declare class ColumnContainerComponent implements OnDestroy {
|
|
|
19
20
|
protected navigate(): void;
|
|
20
21
|
protected next(route: Route): void;
|
|
21
22
|
protected previous(pos: number): void;
|
|
23
|
+
protected checkScreen(): void;
|
|
22
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnContainerComponent, never>;
|
|
23
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnContainerComponent, "up-column-container", never, {}, {}, never, never, true, never>;
|
|
24
26
|
}
|
package/lib/components/containers/list-container/interfaces/list-container-config.interface.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import { ButtonGroupConfig } from '../../../buttons';
|
|
1
2
|
import { GridConfig } from '../../../grids/interfaces/grid-config.interface';
|
|
2
3
|
import { FilterConfig } from '../../../filter/interfaces/filter-config.interface';
|
|
3
4
|
export interface ListContainerConfig {
|
|
4
5
|
baseUrl: `${string}/`;
|
|
6
|
+
buttons?: ButtonGroupConfig[];
|
|
5
7
|
gridConfig: GridConfig;
|
|
6
8
|
filterConfig?: FilterConfig;
|
|
7
|
-
permissions: {
|
|
8
|
-
canCreate: boolean;
|
|
9
|
-
};
|
|
10
9
|
}
|
|
@@ -4,6 +4,7 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class ModalContainerComponent implements OnInit {
|
|
5
5
|
protected readonly modalCtrl: ModalController;
|
|
6
6
|
header: string;
|
|
7
|
+
disabled: boolean;
|
|
7
8
|
protected key: string;
|
|
8
9
|
constructor(modalCtrl: ModalController);
|
|
9
10
|
ngOnInit(): void;
|
|
@@ -11,5 +12,5 @@ export declare class ModalContainerComponent implements OnInit {
|
|
|
11
12
|
popState(ev: PopStateEvent): void;
|
|
12
13
|
close(): void;
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalContainerComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ModalContainerComponent, "up-modal-container", never, { "header": { "alias": "header"; "required": true; }; }, {}, never, ["*"], true, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalContainerComponent, "up-modal-container", never, { "header": { "alias": "header"; "required": true; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
15
16
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
+
import { Observable, Subject } from 'rxjs';
|
|
4
|
+
import { CurrencyService } from '../../../services';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FormCurrencyInputComponent implements ControlValueAccessor, Validator, OnChanges {
|
|
7
|
+
numberPlaceholder: string;
|
|
8
|
+
protected readonly ch: ChangeDetectorRef;
|
|
9
|
+
protected readonly currencyService: CurrencyService;
|
|
10
|
+
clearable: boolean;
|
|
11
|
+
isInputNumber: boolean;
|
|
12
|
+
initialItems: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
magnifyValue: number;
|
|
16
|
+
}[];
|
|
17
|
+
numberValue: number | null;
|
|
18
|
+
isNumberDisabled: boolean;
|
|
19
|
+
required: boolean;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
bindLabel: string;
|
|
22
|
+
bindValue: string;
|
|
23
|
+
onChange: EventEmitter<{
|
|
24
|
+
ccy: {
|
|
25
|
+
label: string;
|
|
26
|
+
value: string;
|
|
27
|
+
magnifyValue: number;
|
|
28
|
+
} | any;
|
|
29
|
+
number: number | null;
|
|
30
|
+
}>;
|
|
31
|
+
readonly typeahead: Subject<string>;
|
|
32
|
+
protected readonly query$: Observable<any[]>;
|
|
33
|
+
items$: Observable<any[]>;
|
|
34
|
+
isLoading: boolean;
|
|
35
|
+
isTouched: boolean;
|
|
36
|
+
value: any | null;
|
|
37
|
+
errorMsg: string;
|
|
38
|
+
protected formControl: AbstractControl;
|
|
39
|
+
protected decimalLimiter: number;
|
|
40
|
+
protected changed: (_val: any) => void;
|
|
41
|
+
protected onTouched: () => void;
|
|
42
|
+
constructor(numberPlaceholder: string, ch: ChangeDetectorRef, currencyService: CurrencyService);
|
|
43
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
44
|
+
registerOnChange(fn: any): void;
|
|
45
|
+
registerOnTouched(fn: any): void;
|
|
46
|
+
writeValue(val: any): void;
|
|
47
|
+
setDisabledState?(d: boolean): void;
|
|
48
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
49
|
+
change(e?: any): void;
|
|
50
|
+
numberInput({ value }: any): void;
|
|
51
|
+
limitDecimal({ charCode, preventDefault, target: { value } }: any): void;
|
|
52
|
+
protected queryFunc(keyword: string): Observable<any>;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormCurrencyInputComponent, [{ attribute: "numberPlaceholder"; }, null, null]>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormCurrencyInputComponent, "up-currency-input", never, { "clearable": { "alias": "clearable"; "required": false; }; "isInputNumber": { "alias": "isInputNumber"; "required": false; }; "initialItems": { "alias": "initialItems"; "required": false; }; "numberValue": { "alias": "numberValue"; "required": false; }; "isNumberDisabled": { "alias": "isNumberDisabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "bindValue": { "alias": "bindValue"; "required": false; }; }, { "onChange": "onChange"; }, never, never, true, never>;
|
|
55
|
+
}
|
|
@@ -6,3 +6,4 @@ export { FormSearchableSelectComponent } from './searchable-select/form-searchab
|
|
|
6
6
|
export { FormSelectComponent } from './select/form-select.component';
|
|
7
7
|
export { FormTextareaComponent } from './textarea/form-textarea.component';
|
|
8
8
|
export { FormImagePickerComponent } from './image-picker/form-image-picker.component';
|
|
9
|
+
export { FormCurrencyInputComponent } from './currency-input/form-currency-input.component';
|
|
@@ -6,7 +6,7 @@ export declare class GridService {
|
|
|
6
6
|
};
|
|
7
7
|
getApi(id: string): GridApi;
|
|
8
8
|
setApi(id: string, api: GridApi): void;
|
|
9
|
-
refreshGridCache(id: string): void;
|
|
9
|
+
refreshGridCache(id: string, forceRefresh?: boolean): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<GridService, never>;
|
|
11
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<GridService>;
|
|
12
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { ButtonGroupComponent, ButtonGroupConfig, ButtonLoadingComponent } from './buttons';
|
|
2
2
|
export { AppletContainerComponent, ColumnContainerComponent, ColumnHeaderContainerComponent, ListContainerConfig, ListPaginationContainerComponent, ListSnapshotContainerComponent, ModalContainerComponent } from './containers';
|
|
3
3
|
export { FilterComponent, FilterConfig, FilterField, FilterSearchEvent } from './filter';
|
|
4
|
-
export { FormDateComponent, FormInputComponent, FormNumberComponent, FormPasswordComponent, FormSearchableSelectComponent, FormSelectComponent, FormTextareaComponent, FormImagePickerComponent } from './forms';
|
|
4
|
+
export { FormDateComponent, FormInputComponent, FormNumberComponent, FormPasswordComponent, FormSearchableSelectComponent, FormSelectComponent, FormTextareaComponent, FormImagePickerComponent, FormCurrencyInputComponent } from './forms';
|
|
5
5
|
export { GridConfig, GridPaginationComponent, GridService, GridSnapshotComponent } from './grids';
|
|
6
6
|
export { TabContentComponent, TabGroupComponent, TabsComponentModule } from './tabs';
|
|
7
7
|
export { AuditListComponent, AuditDetailComponent } from './audit';
|
|
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class CurrencyService {
|
|
7
7
|
protected readonly apollo: Apollo;
|
|
8
8
|
constructor(apollo: Apollo);
|
|
9
|
-
query(): Observable<ApolloQueryResult<{
|
|
9
|
+
query(keyword?: string): Observable<ApolloQueryResult<{
|
|
10
10
|
webConfigMsCurrency: {
|
|
11
11
|
data: Currency[];
|
|
12
12
|
};
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unipin/angular-applet",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"homepage": "https://backoffice.unipin.com/",
|
|
6
6
|
"description": "Angular specific wrappers for UniPin applet",
|
|
7
7
|
"peerDependencies": {
|
|
8
8
|
"@angular-architects/module-federation-tools": "17.x.x",
|
|
9
|
-
"@angular/common": "
|
|
10
|
-
"@angular/core": "
|
|
9
|
+
"@angular/common": "18.x.x",
|
|
10
|
+
"@angular/core": "18.x.x",
|
|
11
11
|
"@ionic/angular": "7.x.x",
|
|
12
12
|
"ionicons": "^7.x.x",
|
|
13
13
|
"@apollo/client": "3.x.x",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"tslib": "^2.3.0",
|
|
19
|
-
"angular-split": "
|
|
19
|
+
"angular-split": "17.x.x",
|
|
20
20
|
"@ng-select/ng-select": "12.x.x",
|
|
21
21
|
"@ag-grid-community/core": "31.x.x",
|
|
22
22
|
"@ag-grid-community/angular": "31.x.x",
|
package/public-api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ButtonGroupConfig, ButtonGroupComponent, ButtonLoadingComponent, FormDateComponent, FormInputComponent, FormNumberComponent, FormPasswordComponent, FormSearchableSelectComponent, FormSelectComponent, FormTextareaComponent, FormImagePickerComponent, FilterConfig, FilterField, FilterSearchEvent, FilterComponent, GridConfig, GridService, GridPaginationComponent, GridSnapshotComponent, AppletContainerComponent, ColumnContainerComponent, ColumnHeaderContainerComponent, ListContainerConfig, ListPaginationContainerComponent, ListSnapshotContainerComponent, ModalContainerComponent, TabGroupComponent, TabContentComponent, TabsComponentModule, AuditListComponent, AuditDetailComponent, ApprovalListComponent, ApprovalDetailComponent } from './lib/components';
|
|
1
|
+
export { ButtonGroupConfig, ButtonGroupComponent, ButtonLoadingComponent, FormDateComponent, FormInputComponent, FormNumberComponent, FormPasswordComponent, FormSearchableSelectComponent, FormSelectComponent, FormTextareaComponent, FormImagePickerComponent, FormCurrencyInputComponent, FilterConfig, FilterField, FilterSearchEvent, FilterComponent, GridConfig, GridService, GridPaginationComponent, GridSnapshotComponent, AppletContainerComponent, ColumnContainerComponent, ColumnHeaderContainerComponent, ListContainerConfig, ListPaginationContainerComponent, ListSnapshotContainerComponent, ModalContainerComponent, TabGroupComponent, TabContentComponent, TabsComponentModule, AuditListComponent, AuditDetailComponent, ApprovalListComponent, ApprovalDetailComponent } from './lib/components';
|
|
2
2
|
export { AuthGuard } from './lib/guards';
|
|
3
3
|
export { HeaderInterceptor, RefreshTokenInterceptor } from './lib/interceptors';
|
|
4
4
|
export { User } from './lib/interfaces';
|
|
@@ -7494,3 +7494,12 @@ input[class^=ag-][type=range]:disabled {
|
|
|
7494
7494
|
.ag-aria-description-container {
|
|
7495
7495
|
display: none;
|
|
7496
7496
|
}
|
|
7497
|
+
|
|
7498
|
+
|
|
7499
|
+
@media (max-width: 767px) {
|
|
7500
|
+
.ag-paging-row-summary-panel { display: none !important; }
|
|
7501
|
+
|
|
7502
|
+
.ag-paging-description {
|
|
7503
|
+
#ag-25-start-page { display: none !important; }
|
|
7504
|
+
}
|
|
7505
|
+
}
|