@unipin/angular-applet 17.2.3 → 17.3.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.
Files changed (36) hide show
  1. package/esm2022/lib/components/approval/list/approval-list.component.mjs +1 -1
  2. package/esm2022/lib/components/filter/filter.component.mjs +2 -2
  3. package/esm2022/lib/components/forms/date/form-date.component.mjs +12 -4
  4. package/esm2022/lib/components/forms/image-picker/directives/drag-n-drop.directive.mjs +7 -1
  5. package/esm2022/lib/components/forms/image-picker/form-image-picker.component.mjs +3 -3
  6. package/esm2022/lib/components/forms/index.mjs +2 -1
  7. package/esm2022/lib/components/forms/input/form-input.component.mjs +3 -3
  8. package/esm2022/lib/components/forms/number/form-number.component.mjs +96 -0
  9. package/esm2022/lib/components/forms/number/pipes/locale-number.pipe.mjs +38 -0
  10. package/esm2022/lib/components/forms/password/form-password.component.mjs +3 -3
  11. package/esm2022/lib/components/forms/searchable-select/form-searchable-select.component.mjs +3 -3
  12. package/esm2022/lib/components/forms/select/form-select.component.mjs +7 -4
  13. package/esm2022/lib/components/forms/textarea/form-textarea.component.mjs +3 -3
  14. package/esm2022/lib/components/index.mjs +2 -2
  15. package/esm2022/lib/interceptors/refresh-token/refresh-token.interceptor.mjs +2 -2
  16. package/esm2022/lib/services/auth/auth.service.mjs +1 -1
  17. package/esm2022/lib/services/profile/profile.service.mjs +1 -1
  18. package/esm2022/public-api.mjs +2 -2
  19. package/fesm2022/unipin-angular-applet.mjs +162 -20
  20. package/fesm2022/unipin-angular-applet.mjs.map +1 -1
  21. package/lib/components/forms/date/form-date.component.d.ts +6 -3
  22. package/lib/components/forms/image-picker/form-image-picker.component.d.ts +1 -1
  23. package/lib/components/forms/index.d.ts +1 -0
  24. package/lib/components/forms/input/form-input.component.d.ts +1 -1
  25. package/lib/components/forms/number/form-number.component.d.ts +27 -0
  26. package/lib/components/forms/number/pipes/locale-number.pipe.d.ts +8 -0
  27. package/lib/components/forms/password/form-password.component.d.ts +1 -1
  28. package/lib/components/forms/searchable-select/form-searchable-select.component.d.ts +1 -1
  29. package/lib/components/forms/select/form-select.component.d.ts +2 -1
  30. package/lib/components/forms/textarea/form-textarea.component.d.ts +1 -1
  31. package/lib/components/index.d.ts +1 -1
  32. package/lib/services/auth/auth.service.d.ts +1 -1
  33. package/lib/services/profile/profile.service.d.ts +1 -1
  34. package/package.json +1 -1
  35. package/public-api.d.ts +1 -1
  36. package/src/assets/scss/grid.scss +4 -0
@@ -1,20 +1,23 @@
1
- import { ChangeDetectorRef } from '@angular/core';
1
+ 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
- export declare class FormDateComponent implements ControlValueAccessor, Validator {
4
+ export declare class FormDateComponent implements ControlValueAccessor, Validator, OnInit {
5
5
  name: string;
6
6
  placeholder: string;
7
7
  protected readonly ch: ChangeDetectorRef;
8
8
  label?: string;
9
9
  required: boolean;
10
10
  disabled: boolean;
11
+ presentation: 'date' | 'date-time';
11
12
  isTouched: boolean;
12
13
  value: string;
14
+ dateFormat: string;
13
15
  errorMsg: string;
14
16
  protected formControl: AbstractControl;
15
17
  protected onChange: (_val: any) => void;
16
18
  protected onTouched: () => void;
17
19
  constructor(name: string, placeholder: string, ch: ChangeDetectorRef);
20
+ ngOnInit(): void;
18
21
  registerOnChange(fn: any): void;
19
22
  registerOnTouched(fn: any): void;
20
23
  writeValue(val: any): void;
@@ -22,5 +25,5 @@ export declare class FormDateComponent implements ControlValueAccessor, Validato
22
25
  validate(control: AbstractControl): ValidationErrors | null;
23
26
  changeDate({ detail: { value } }: any): void;
24
27
  static ɵfac: i0.ɵɵFactoryDeclaration<FormDateComponent, [{ attribute: "name"; }, { attribute: "placeholder"; }, null]>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<FormDateComponent, "up-date", never, { "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
28
+ 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; }; }, {}, never, ["[icon]"], true, never>;
26
29
  }
@@ -17,5 +17,5 @@ export declare class FormImagePickerComponent implements ControlValueAccessor {
17
17
  writeValue(val: any): void;
18
18
  selectPhoto(files: any): void;
19
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>;
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, ["[icon]"], true, never>;
21
21
  }
@@ -1,5 +1,6 @@
1
1
  export { FormDateComponent } from './date/form-date.component';
2
2
  export { FormInputComponent } from './input/form-input.component';
3
+ export { FormNumberComponent } from './number/form-number.component';
3
4
  export { FormPasswordComponent } from './password/form-password.component';
4
5
  export { FormSearchableSelectComponent } from './searchable-select/form-searchable-select.component';
5
6
  export { FormSelectComponent } from './select/form-select.component';
@@ -25,5 +25,5 @@ export declare class FormInputComponent implements ControlValueAccessor, Validat
25
25
  validate(control: AbstractControl): ValidationErrors | null;
26
26
  change({ value }: any): void;
27
27
  static ɵfac: i0.ɵɵFactoryDeclaration<FormInputComponent, [{ attribute: "placeholder"; }, { attribute: "type"; }, { attribute: "autocomplete"; }, null]>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<FormInputComponent, "up-input", never, { "label": { "alias": "label"; "required": false; }; "value": { "alias": "value"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onInput": "onInput"; }, never, never, true, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormInputComponent, "up-input", never, { "label": { "alias": "label"; "required": false; }; "value": { "alias": "value"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onInput": "onInput"; }, never, ["[icon]"], true, never>;
29
29
  }
@@ -0,0 +1,27 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FormNumberComponent implements ControlValueAccessor, Validator {
5
+ placeholder: string;
6
+ protected readonly ch: ChangeDetectorRef;
7
+ label?: string;
8
+ value?: string | null;
9
+ required: boolean;
10
+ disabled: boolean;
11
+ locale: string;
12
+ isTouched: boolean;
13
+ errorMsg: string;
14
+ protected formControl: AbstractControl;
15
+ protected onChange: (_val: any) => void;
16
+ protected onTouched: () => void;
17
+ constructor(placeholder: string, ch: ChangeDetectorRef);
18
+ registerOnChange(fn: any): void;
19
+ registerOnTouched(fn: any): void;
20
+ writeValue(val: any): void;
21
+ setDisabledState?(d: boolean): void;
22
+ validate(control: AbstractControl): ValidationErrors | null;
23
+ change({ value }: any): void;
24
+ onKeyDown(ev: KeyboardEvent): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormNumberComponent, [{ attribute: "placeholder"; }, null]>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormNumberComponent, "up-number", never, { "label": { "alias": "label"; "required": false; }; "value": { "alias": "value"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; }, {}, never, never, true, never>;
27
+ }
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class LocaleNumberPipe implements PipeTransform {
4
+ transform(value: string | null | undefined, locale: string): string;
5
+ protected extractSeperator(input: string): string[];
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocaleNumberPipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<LocaleNumberPipe, "localeNumber", true>;
8
+ }
@@ -22,5 +22,5 @@ export declare class FormPasswordComponent implements ControlValueAccessor, Vali
22
22
  validate(control: AbstractControl): ValidationErrors | null;
23
23
  change({ value }: any): void;
24
24
  static ɵfac: i0.ɵɵFactoryDeclaration<FormPasswordComponent, [{ attribute: "label"; }, { attribute: "autocomplete"; }, null]>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<FormPasswordComponent, "up-password", never, { "required": { "alias": "required"; "required": false; }; "mustSame": { "alias": "mustSame"; "required": false; }; }, {}, never, never, true, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormPasswordComponent, "up-password", never, { "required": { "alias": "required"; "required": false; }; "mustSame": { "alias": "mustSame"; "required": false; }; }, {}, never, ["[icon]"], true, never>;
26
26
  }
@@ -35,5 +35,5 @@ export declare class FormSearchableSelectComponent implements ControlValueAccess
35
35
  validate(control: AbstractControl): ValidationErrors | null;
36
36
  change(e?: any): void;
37
37
  static ɵfac: i0.ɵɵFactoryDeclaration<FormSearchableSelectComponent, [{ attribute: "placeholder"; }, null]>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<FormSearchableSelectComponent, "up-searchable-select", never, { "queryFunc": { "alias": "queryFunc"; "required": true; }; "clearable": { "alias": "clearable"; "required": false; }; "label": { "alias": "label"; "required": false; }; "initialItems": { "alias": "initialItems"; "required": false; }; "required": { "alias": "required"; "required": false; }; "addTag": { "alias": "addTag"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "bindValue": { "alias": "bindValue"; "required": false; }; }, { "onChange": "onChange"; }, never, never, true, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormSearchableSelectComponent, "up-searchable-select", never, { "queryFunc": { "alias": "queryFunc"; "required": true; }; "clearable": { "alias": "clearable"; "required": false; }; "label": { "alias": "label"; "required": false; }; "initialItems": { "alias": "initialItems"; "required": false; }; "required": { "alias": "required"; "required": false; }; "addTag": { "alias": "addTag"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "bindValue": { "alias": "bindValue"; "required": false; }; }, { "onChange": "onChange"; }, never, ["[icon]"], true, never>;
39
39
  }
@@ -9,6 +9,7 @@ export declare class FormSelectComponent implements ControlValueAccessor, Valida
9
9
  label: string;
10
10
  multiple: boolean;
11
11
  required: boolean;
12
+ addTag: boolean;
12
13
  disabled: boolean;
13
14
  searchable: boolean;
14
15
  bindLabel: string;
@@ -27,5 +28,5 @@ export declare class FormSelectComponent implements ControlValueAccessor, Valida
27
28
  validate(control: AbstractControl): ValidationErrors | null;
28
29
  change(e?: any): void;
29
30
  static ɵfac: i0.ɵɵFactoryDeclaration<FormSelectComponent, [{ attribute: "placeholder"; }, null]>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<FormSelectComponent, "up-select", never, { "items": { "alias": "items"; "required": true; }; "clearable": { "alias": "clearable"; "required": false; }; "label": { "alias": "label"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "bindValue": { "alias": "bindValue"; "required": false; }; }, {}, never, never, true, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormSelectComponent, "up-select", never, { "items": { "alias": "items"; "required": true; }; "clearable": { "alias": "clearable"; "required": false; }; "label": { "alias": "label"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "required": { "alias": "required"; "required": false; }; "addTag": { "alias": "addTag"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "bindValue": { "alias": "bindValue"; "required": false; }; }, {}, never, ["[icon]"], true, never>;
31
32
  }
@@ -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, { "value": { "alias": "value"; "required": false; }; "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, ["[icon]"], 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, FormImagePickerComponent } from './forms';
4
+ export { FormDateComponent, FormInputComponent, FormNumberComponent, 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';
@@ -1,6 +1,6 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { Apollo, MutationResult } from 'apollo-angular';
3
- import { FetchPolicy } from '@apollo/client';
3
+ import { FetchPolicy } from '@apollo/client/core';
4
4
  import { AppLoginSubject, ChangePassRq, LoginResponse, MutationAuthMsRefreshAccessTokenArgs, Token } from '../../../graphql/generated';
5
5
  import { User } from '../../interfaces';
6
6
  import { ProfileService } from '../profile/profile.service';
@@ -1,5 +1,5 @@
1
1
  import { Observable } from 'rxjs';
2
- import { FetchPolicy } from '@apollo/client';
2
+ import { FetchPolicy } from '@apollo/client/core';
3
3
  import { Apollo } from 'apollo-angular';
4
4
  import { AppLoginSubject } from '../../../graphql/generated';
5
5
  import * as i0 from "@angular/core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unipin/angular-applet",
3
- "version": "17.2.3",
3
+ "version": "17.3.0",
4
4
  "sideEffects": false,
5
5
  "homepage": "https://backoffice.unipin.com/",
6
6
  "description": "Angular specific wrappers for UniPin applet",
package/public-api.d.ts CHANGED
@@ -1,4 +1,4 @@
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';
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';
2
2
  export { AuthGuard } from './lib/guards';
3
3
  export { HeaderInterceptor, RefreshTokenInterceptor } from './lib/interceptors';
4
4
  export { User } from './lib/interfaces';
@@ -7490,3 +7490,7 @@ input[class^=ag-][type=range]:disabled {
7490
7490
  border: 1px solid var(--ag-secondary-border-color);
7491
7491
  border-right: none;
7492
7492
  }
7493
+
7494
+ .ag-aria-description-container {
7495
+ display: none;
7496
+ }