@unipin/angular-applet 18.8.7 → 18.9.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/containers/index.mjs +2 -2
- package/esm2022/lib/components/filter/filter.component.mjs +3 -3
- package/esm2022/lib/components/forms/date/form-date.component.mjs +8 -9
- package/esm2022/lib/components/index.mjs +2 -2
- package/esm2022/lib/modules/permission/pages/loading/loading.page.mjs +10 -5
- package/esm2022/lib/modules/permission/services/permission.service.mjs +7 -4
- package/esm2022/lib/utils/index.mjs +2 -1
- package/esm2022/lib/utils/redirect-to-first-menu/redirect-to-first-menu.util.mjs +9 -0
- package/esm2022/public-api.mjs +3 -3
- package/fesm2022/unipin-angular-applet.mjs +31 -18
- package/fesm2022/unipin-angular-applet.mjs.map +1 -1
- package/lib/components/containers/index.d.ts +1 -1
- package/lib/components/forms/date/form-date.component.d.ts +4 -4
- package/lib/components/index.d.ts +1 -1
- package/lib/modules/permission/services/permission.service.d.ts +2 -2
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/redirect-to-first-menu/redirect-to-first-menu.util.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { AppletContainerComponent } from './applet-container/applet-container.component';
|
|
2
|
-
export { provideAppletConfig, AppletConfig } from './applet-container/provide-applet-config.util';
|
|
2
|
+
export { provideAppletConfig, AppletConfig, APPLET_CONFIG } from './applet-container/provide-applet-config.util';
|
|
3
3
|
export { ColumnContainerComponent } from './column-container/column-container.component';
|
|
4
4
|
export { ColumnHeaderContainerComponent } from './colum-header-container/column-header-container.component';
|
|
5
5
|
export { ModalContainerComponent } from './modal-container/modal-container.component';
|
|
@@ -2,9 +2,9 @@ import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
|
2
2
|
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FormDateComponent implements ControlValueAccessor, Validator, OnInit {
|
|
5
|
-
name: string;
|
|
6
5
|
placeholder: string;
|
|
7
6
|
protected readonly ch: ChangeDetectorRef;
|
|
7
|
+
name: string;
|
|
8
8
|
label?: string;
|
|
9
9
|
required: boolean;
|
|
10
10
|
disabled: boolean;
|
|
@@ -19,7 +19,7 @@ export declare class FormDateComponent implements ControlValueAccessor, Validato
|
|
|
19
19
|
protected formControl: AbstractControl;
|
|
20
20
|
protected onChange: (_val: any) => void;
|
|
21
21
|
protected onTouched: () => void;
|
|
22
|
-
constructor(
|
|
22
|
+
constructor(placeholder: string, ch: ChangeDetectorRef);
|
|
23
23
|
ngOnInit(): void;
|
|
24
24
|
registerOnChange(fn: any): void;
|
|
25
25
|
registerOnTouched(fn: any): void;
|
|
@@ -27,6 +27,6 @@ export declare class FormDateComponent implements ControlValueAccessor, Validato
|
|
|
27
27
|
setDisabledState?(d: boolean): void;
|
|
28
28
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
29
29
|
changeDate({ detail: { value } }: any): void;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormDateComponent, [{ attribute: "
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormDateComponent, "up-date", never, { "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "presentation": { "alias": "presentation"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; }, {}, never, ["[icon]"], true, never>;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormDateComponent, [{ attribute: "placeholder"; }, null]>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormDateComponent, "up-date", never, { "name": { "alias": "name"; "required": true; }; "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "presentation": { "alias": "presentation"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; }, {}, never, ["[icon]"], true, never>;
|
|
32
32
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ButtonGroupComponent, ButtonGroupConfig, ButtonLoadingComponent } from './buttons';
|
|
2
|
-
export { AppletConfig, provideAppletConfig, AppletContainerComponent, ColumnContainerComponent, ColumnHeaderContainerComponent, ListContainerConfig, ListPaginationContainerComponent, ListSnapshotContainerComponent, ModalContainerComponent } from './containers';
|
|
2
|
+
export { AppletConfig, APPLET_CONFIG, provideAppletConfig, AppletContainerComponent, ColumnContainerComponent, ColumnHeaderContainerComponent, ListContainerConfig, ListPaginationContainerComponent, ListSnapshotContainerComponent, ModalContainerComponent } from './containers';
|
|
3
3
|
export { FilterComponent, FilterConfig, FilterField, FilterSearchEvent } from './filter';
|
|
4
4
|
export { FormDateComponent, FormInputComponent, FormNumberComponent, FormPasswordComponent, FormSearchableSelectComponent, FormSelectComponent, FormTextareaComponent, FormImagePickerComponent, FormCurrencyInputComponent, FormCountryInputComponent, FormRateGroupCodeInputComponent } from './forms';
|
|
5
5
|
export { GridConfig, GridPaginationComponent, GridService, GridSnapshotComponent } from './grids';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
2
|
import { ApolloQueryResult, FetchPolicy } from '@apollo/client/core';
|
|
3
3
|
import { Apollo } from 'apollo-angular';
|
|
4
4
|
import { AppPermDfn, PermissionFilter } from '../../../../graphql/generated';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class PermissionService {
|
|
7
7
|
protected readonly apollo: Apollo;
|
|
8
|
-
readonly permModules:
|
|
8
|
+
readonly permModules: BehaviorSubject<string[]>;
|
|
9
9
|
isInitiated: boolean;
|
|
10
10
|
protected permissions: Map<string, boolean>;
|
|
11
11
|
constructor(apollo: Apollo);
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { formatCapitalize } from './format-capitalize/format-capitalize.util';
|
|
2
2
|
export { getFormErrorMessage } from './form-error-message/form-error-message.util';
|
|
3
3
|
export { generateContrastColor } from './contrast-color-generator/contrast-color-generator.util';
|
|
4
|
+
export { redirectToFirstMenu } from './redirect-to-first-menu/redirect-to-first-menu.util';
|
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, FormCurrencyInputComponent, FormCountryInputComponent, FormRateGroupCodeInputComponent, FilterConfig, FilterField, FilterSearchEvent, FilterComponent, GridConfig, GridService, GridPaginationComponent, GridSnapshotComponent, AppletConfig, provideAppletConfig, AppletContainerComponent, ColumnContainerComponent, ColumnHeaderContainerComponent, ListContainerConfig, ListPaginationContainerComponent, ListSnapshotContainerComponent, ModalContainerComponent, TabContentComponent, TabGroupComponent, TabsChangedEvent, AuditListComponent, AuditDetailComponent, APPROVAL_ENTITIES, provideApprovalEntities, ApprovalService, ApprovalListComponent, ApprovalDetailComponent } from './lib/components';
|
|
1
|
+
export { ButtonGroupConfig, ButtonGroupComponent, ButtonLoadingComponent, FormDateComponent, FormInputComponent, FormNumberComponent, FormPasswordComponent, FormSearchableSelectComponent, FormSelectComponent, FormTextareaComponent, FormImagePickerComponent, FormCurrencyInputComponent, FormCountryInputComponent, FormRateGroupCodeInputComponent, FilterConfig, FilterField, FilterSearchEvent, FilterComponent, GridConfig, GridService, GridPaginationComponent, GridSnapshotComponent, AppletConfig, APPLET_CONFIG, provideAppletConfig, AppletContainerComponent, ColumnContainerComponent, ColumnHeaderContainerComponent, ListContainerConfig, ListPaginationContainerComponent, ListSnapshotContainerComponent, ModalContainerComponent, TabContentComponent, TabGroupComponent, TabsChangedEvent, AuditListComponent, AuditDetailComponent, APPROVAL_ENTITIES, provideApprovalEntities, ApprovalService, ApprovalListComponent, ApprovalDetailComponent } from './lib/components';
|
|
2
2
|
export { InfiniteScrollDirective, InfiniteScrollComponent } from './lib/components/infinite-scroll';
|
|
3
3
|
export { AuthGuard } from './lib/guards';
|
|
4
4
|
export { headerInterceptor, HeaderInterceptor, refreshTokenInterceptor, RefreshTokenInterceptor } from './lib/interceptors';
|
|
@@ -6,6 +6,6 @@ export { User } from './lib/interfaces';
|
|
|
6
6
|
export { bootstrap, LoadingConfig, provideLoadingConfig, LoadingPage, UnauthorizedPage, PermissionDirective, PermissionGuard, PermissionService, } from './lib/modules';
|
|
7
7
|
export { AuthResolver } from './lib/resolvers';
|
|
8
8
|
export { AuthService, CurrencyService, CountryService, RateGroupCodeService, ProfileService, } from './lib/services';
|
|
9
|
-
export { formatCapitalize, generateContrastColor, getFormErrorMessage } from './lib/utils';
|
|
9
|
+
export { formatCapitalize, generateContrastColor, getFormErrorMessage, redirectToFirstMenu } from './lib/utils';
|
|
10
10
|
export { GridApi, GridReadyEvent, ICellRendererParams, ValueFormatterParams, SelectionChangedEvent } from '@ag-grid-community/core';
|
|
11
11
|
export { ICellRendererAngularComp } from '@ag-grid-community/angular';
|