@unipin/angular-applet 17.1.0 → 17.2.1
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 +24 -16
- package/esm2022/lib/components/approval/list/approval-list.component.mjs +15 -11
- package/esm2022/lib/components/approval/services/approval.service.mjs +3 -3
- package/esm2022/lib/components/audit/detail/audit-detail.component.mjs +4 -4
- 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 +4 -4
- package/esm2022/lib/components/buttons/group/interfaces/btn-group-config.interface.mjs +1 -1
- package/esm2022/lib/components/buttons/loading/btn-loading.component.mjs +4 -4
- package/esm2022/lib/components/containers/applet-container/applet-container.component.mjs +4 -4
- 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 +4 -4
- package/esm2022/lib/components/containers/column-container/directives/lazyr-route.directive.mjs +3 -3
- package/esm2022/lib/components/containers/list-container/list-pagination-container/list-pagination-container.component.mjs +4 -4
- package/esm2022/lib/components/containers/list-container/list-snapshot-container/list-snapshot-container.component.mjs +4 -4
- 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/date/form-date.component.mjs +3 -3
- package/esm2022/lib/components/forms/image-picker/directives/drag-n-drop.directive.mjs +43 -0
- package/esm2022/lib/components/forms/image-picker/form-image-picker.component.mjs +69 -0
- 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/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 +7 -6
- 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 +3 -3
- package/esm2022/lib/components/index.mjs +2 -2
- package/esm2022/lib/components/tabs/tab-content/tab-content.component.mjs +4 -4
- package/esm2022/lib/components/tabs/tab-group/tab-group.component.mjs +4 -4
- 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 +4 -4
- 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 +4 -4
- package/esm2022/lib/resolvers/auth/auth.resolver.mjs +3 -3
- package/esm2022/lib/services/auth/auth.service.mjs +4 -4
- package/esm2022/lib/services/country/country.service.mjs +3 -3
- package/esm2022/lib/services/currency/currency.service.mjs +3 -3
- package/esm2022/lib/services/profile/profile.service.mjs +3 -3
- package/esm2022/lib/utils/form-error-message.util.mjs +1 -1
- package/esm2022/public-api.mjs +2 -2
- package/fesm2022/unipin-angular-applet.mjs +515 -403
- package/fesm2022/unipin-angular-applet.mjs.map +1 -1
- package/lib/components/approval/list/approval-list.component.d.ts +1 -1
- package/lib/components/containers/colum-header-container/column-header-container.component.d.ts +1 -1
- package/lib/components/forms/image-picker/directives/drag-n-drop.directive.d.ts +10 -0
- package/lib/components/forms/image-picker/form-image-picker.component.d.ts +21 -0
- package/lib/components/forms/index.d.ts +1 -0
- package/lib/components/forms/textarea/form-textarea.component.d.ts +2 -2
- package/lib/components/index.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
|
@@ -22,7 +22,7 @@ export declare class ApprovalListComponent {
|
|
|
22
22
|
protected input: ApprovalCriteria;
|
|
23
23
|
constructor(entities: string[], router: Router, route: ActivatedRoute, service: ApprovalService, alertCtrl: AlertController);
|
|
24
24
|
setGridApi({ api }: GridReadyEvent): void;
|
|
25
|
-
openDetail(
|
|
25
|
+
openDetail({ guid }: any): void;
|
|
26
26
|
selectApprovals(): void;
|
|
27
27
|
search({ data }: FilterSearchEvent): void;
|
|
28
28
|
protected multipleApproval(btn: ButtonLoadingComponent): void;
|
package/lib/components/containers/colum-header-container/column-header-container.component.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ export declare class ColumnHeaderContainerComponent {
|
|
|
3
3
|
header?: string;
|
|
4
4
|
prevUrl: string;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnHeaderContainerComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnHeaderContainerComponent, "up-column-header-container", never, { "header": { "alias": "header"; "required": false; }; "prevUrl": { "alias": "prevUrl"; "required": false; }; }, {}, never, ["
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnHeaderContainerComponent, "up-column-header-container", never, { "header": { "alias": "header"; "required": false; }; "prevUrl": { "alias": "prevUrl"; "required": false; }; }, {}, never, ["[button]", "*"], true, never>;
|
|
7
7
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DragNDropDirective {
|
|
4
|
+
fileDropped: EventEmitter<any>;
|
|
5
|
+
onDragOver(evt: any): void;
|
|
6
|
+
onDragLeave(evt: any): void;
|
|
7
|
+
onDrop(evt: any): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DragNDropDirective, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DragNDropDirective, "[upDragNDrop]", never, {}, { "fileDropped": "fileDropped"; }, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EventEmitter, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FormImagePickerComponent implements ControlValueAccessor {
|
|
5
|
+
protected readonly ch: ChangeDetectorRef;
|
|
6
|
+
ratio: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
required: boolean;
|
|
9
|
+
onChange: EventEmitter<File>;
|
|
10
|
+
imgSrc: string;
|
|
11
|
+
protected onChanged: (_val: any) => void;
|
|
12
|
+
protected onTouched: () => void;
|
|
13
|
+
constructor(ch: ChangeDetectorRef);
|
|
14
|
+
registerOnChange(fn: any): void;
|
|
15
|
+
registerOnTouched(fn: any): void;
|
|
16
|
+
clear(ev?: Event): void;
|
|
17
|
+
writeValue(val: any): void;
|
|
18
|
+
selectPhoto(files: any): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormImagePickerComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormImagePickerComponent, "up-image-picker", never, { "ratio": { "alias": "ratio"; "required": false; }; "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "onChange": "onChange"; }, never, never, true, never>;
|
|
21
|
+
}
|
|
@@ -4,3 +4,4 @@ export { FormPasswordComponent } from './password/form-password.component';
|
|
|
4
4
|
export { FormSearchableSelectComponent } from './searchable-select/form-searchable-select.component';
|
|
5
5
|
export { FormSelectComponent } from './select/form-select.component';
|
|
6
6
|
export { FormTextareaComponent } from './textarea/form-textarea.component';
|
|
7
|
+
export { FormImagePickerComponent } from './image-picker/form-image-picker.component';
|
|
@@ -6,10 +6,10 @@ export declare class FormTextareaComponent implements ControlValueAccessor, Vali
|
|
|
6
6
|
placeholder: string;
|
|
7
7
|
autocomplete: 'url' | 'on' | 'off' | 'street-address' | 'address-line1' | 'address-line2' | 'address-line3' | 'address-level4' | 'address-level3' | 'address-level2' | 'address-level1';
|
|
8
8
|
protected readonly ch: ChangeDetectorRef;
|
|
9
|
+
value?: string | null;
|
|
9
10
|
required: boolean;
|
|
10
11
|
disabled: boolean;
|
|
11
12
|
isTouched: boolean;
|
|
12
|
-
value: any;
|
|
13
13
|
errorMsg: string;
|
|
14
14
|
protected formControl: AbstractControl;
|
|
15
15
|
protected onChange: (_val: any) => void;
|
|
@@ -22,5 +22,5 @@ export declare class FormTextareaComponent implements ControlValueAccessor, Vali
|
|
|
22
22
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
23
23
|
change({ value }: any): void;
|
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormTextareaComponent, [{ attribute: "label"; }, { attribute: "placeholder"; }, { attribute: "autocomplete"; }, null]>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormTextareaComponent, "up-textarea", never, { "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormTextareaComponent, "up-textarea", never, { "value": { "alias": "value"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
26
26
|
}
|
|
@@ -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, FormPasswordComponent, FormSearchableSelectComponent, FormSelectComponent, FormTextareaComponent } from './forms';
|
|
4
|
+
export { FormDateComponent, FormInputComponent, FormPasswordComponent, FormSearchableSelectComponent, FormSelectComponent, FormTextareaComponent, FormImagePickerComponent } 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';
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ButtonGroupConfig, ButtonGroupComponent, ButtonLoadingComponent, FormDateComponent, FormInputComponent, FormPasswordComponent, FormSearchableSelectComponent, FormSelectComponent, FormTextareaComponent, 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, 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';
|
|
2
2
|
export { AuthGuard } from './lib/guards';
|
|
3
3
|
export { HeaderInterceptor, RefreshTokenInterceptor } from './lib/interceptors';
|
|
4
4
|
export { User } from './lib/interfaces';
|