@unipin/angular-applet 17.3.0 → 17.4.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 +3 -3
- package/esm2022/lib/components/containers/colum-header-container/column-header-container.component.mjs +3 -3
- package/esm2022/lib/components/containers/column-container/column-container.component.mjs +3 -3
- 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 +3 -3
- package/esm2022/lib/components/filter/filter.component.mjs +3 -3
- package/esm2022/lib/components/forms/currency-input/form-currency-input.component.mjs +153 -0
- package/esm2022/lib/components/forms/date/form-date.component.mjs +11 -7
- 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 +5 -5
- package/esm2022/lib/components/forms/textarea/form-textarea.component.mjs +3 -3
- package/esm2022/lib/components/grids/grid-pagination/grid-pagination.component.mjs +9 -5
- package/esm2022/lib/components/grids/grid-snapshot/grid-snapshot.component.mjs +9 -5
- package/esm2022/lib/components/grids/services/grid.service.mjs +3 -3
- 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 +3 -3
- 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 +1465 -1313
- package/fesm2022/unipin-angular-applet.mjs.map +1 -1
- package/lib/components/containers/list-container/interfaces/list-container-config.interface.d.ts +2 -3
- package/lib/components/forms/currency-input/form-currency-input.component.d.ts +55 -0
- package/lib/components/forms/date/form-date.component.d.ts +1 -0
- package/lib/components/forms/index.d.ts +1 -0
- package/lib/components/index.d.ts +1 -1
- package/lib/services/currency/currency.service.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/src/assets/scss/select.scss +1 -1
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
|
}
|
|
@@ -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
|
+
}
|
|
@@ -11,6 +11,7 @@ export declare class FormDateComponent implements ControlValueAccessor, Validato
|
|
|
11
11
|
presentation: 'date' | 'date-time';
|
|
12
12
|
isTouched: boolean;
|
|
13
13
|
value: string;
|
|
14
|
+
localValue: string;
|
|
14
15
|
dateFormat: string;
|
|
15
16
|
errorMsg: string;
|
|
16
17
|
protected formControl: AbstractControl;
|
|
@@ -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';
|
|
@@ -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
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';
|
|
@@ -12,7 +12,7 @@ $ng-select-marked-text: $ng-select-primary-text !default;
|
|
|
12
12
|
|
|
13
13
|
$ng-select-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(0, 126, 255, 0.1) !default;
|
|
14
14
|
$ng-select-placeholder: lighten($ng-select-primary-text, 40) !default;
|
|
15
|
-
$ng-select-height:
|
|
15
|
+
$ng-select-height: 38px !default;
|
|
16
16
|
$ng-select-value-padding-left: 10px !default;
|
|
17
17
|
$ng-select-value-font-size: 0.9em !default;
|
|
18
18
|
// $ng-select-value-text: $ng-select-primary-text !default;
|