ontimize-web-ngx 15.1.2 → 15.2.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/esm2020/lib/components/input/date-input/o-date-input.component.mjs +3 -3
  2. package/esm2020/lib/components/input/email-input/o-email-input.component.mjs +3 -3
  3. package/esm2020/lib/components/input/integer-input/o-integer-input.component.mjs +3 -3
  4. package/esm2020/lib/components/input/nif-input/o-nif-input.component.mjs +3 -3
  5. package/esm2020/lib/components/input/text-input/o-text-input.component.mjs +28 -8
  6. package/esm2020/lib/components/input/textarea-input/o-textarea-input.component.mjs +3 -3
  7. package/esm2020/lib/components/list/o-list.component.mjs +1 -3
  8. package/esm2020/lib/components/o-service-component.class.mjs +7 -2
  9. package/esm2020/lib/components/table/extensions/skeleton/o-table-skeleton.component.mjs +4 -1
  10. package/esm2020/lib/components/table/o-table.component.mjs +7 -2
  11. package/esm2020/lib/config/o-providers.mjs +3 -2
  12. package/esm2020/lib/i18n/i18n.mjs +3 -3
  13. package/esm2020/lib/interfaces/index.mjs +2 -1
  14. package/esm2020/lib/interfaces/local-service.interface.mjs +2 -0
  15. package/esm2020/lib/services/factories.mjs +9 -1
  16. package/esm2020/lib/services/local-storage.service.mjs +6 -6
  17. package/esm2020/lib/services/ontimize-export-data-base-provider.service.mjs +42 -16
  18. package/esm2020/lib/types/o-inputs-options.type.mjs +1 -1
  19. package/fesm2015/ontimize-web-ngx.mjs +105 -39
  20. package/fesm2015/ontimize-web-ngx.mjs.map +1 -1
  21. package/fesm2020/ontimize-web-ngx.mjs +104 -39
  22. package/fesm2020/ontimize-web-ngx.mjs.map +1 -1
  23. package/lib/components/input/date-input/o-date-input.component.d.ts +2 -2
  24. package/lib/components/input/integer-input/o-integer-input.component.d.ts +2 -2
  25. package/lib/components/input/text-input/o-text-input.component.d.ts +11 -5
  26. package/lib/components/list/o-list.component.d.ts +0 -2
  27. package/lib/components/o-service-component.class.d.ts +2 -1
  28. package/lib/components/table/extensions/skeleton/o-table-skeleton.component.d.ts +1 -1
  29. package/lib/components/table/o-table.component.d.ts +1 -0
  30. package/lib/interfaces/index.d.ts +1 -0
  31. package/lib/interfaces/local-service.interface.d.ts +15 -0
  32. package/lib/services/factories.d.ts +9 -0
  33. package/lib/services/local-storage.service.d.ts +3 -1
  34. package/lib/services/ontimize-export-data-base-provider.service.d.ts +3 -0
  35. package/lib/types/o-inputs-options.type.d.ts +1 -0
  36. package/package.json +1 -1
@@ -9,11 +9,11 @@ import { DateFilterFunction } from '../../../types/date-filter-function.type';
9
9
  import { FormValueOptions } from '../../../types/form-value-options.type';
10
10
  import { ODateValueType } from '../../../types/o-date-value.type';
11
11
  import { OFormComponent } from '../../form/o-form.component';
12
+ import { OFormDataComponent } from '../../o-form-data-component.class';
12
13
  import { OFormControl } from '../o-form-control.class';
13
- import { OTextInputComponent } from '../text-input/o-text-input.component';
14
14
  import * as i0 from "@angular/core";
15
15
  export declare const DEFAULT_INPUTS_O_DATE_INPUT: string[];
16
- export declare class ODateInputComponent extends OTextInputComponent implements OnDestroy, OnInit {
16
+ export declare class ODateInputComponent extends OFormDataComponent implements OnDestroy, OnInit {
17
17
  textInputEnabled: boolean;
18
18
  protected _oformat: string;
19
19
  protected olocale: string;
@@ -3,11 +3,11 @@ import { ValidatorFn } from '@angular/forms';
3
3
  import { IIntegerPipeArgument, OIntegerPipe } from '../../../pipes/o-integer.pipe';
4
4
  import { FormValueOptions } from '../../../types/form-value-options.type';
5
5
  import { OFormComponent } from '../../form/o-form.component';
6
- import { OTextInputComponent } from '../text-input/o-text-input.component';
6
+ import { OFormDataComponent } from '../../o-form-data-component.class';
7
7
  import * as i0 from "@angular/core";
8
8
  type HTMLInputType = 'text' | 'number';
9
9
  export declare const DEFAULT_INPUTS_O_INTEGER_INPUT: string[];
10
- export declare class OIntegerInputComponent extends OTextInputComponent implements AfterViewInit, OnInit {
10
+ export declare class OIntegerInputComponent extends OFormDataComponent implements AfterViewInit, OnInit {
11
11
  inputType: HTMLInputType;
12
12
  min: number;
13
13
  max: number;
@@ -1,23 +1,29 @@
1
- import { ElementRef, Injector, OnInit, QueryList } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, Injector, OnDestroy, OnInit, QueryList } from '@angular/core';
2
2
  import { ValidatorFn } from '@angular/forms';
3
- import { OFormComponent } from '../../form/o-form.component';
4
- import { OFormDataComponent } from '../../o-form-data-component.class';
3
+ import { Subscription } from 'rxjs';
5
4
  import { OMatPrefix } from '../../../directives/o-mat-prefix.directive';
6
5
  import { OMatSuffix } from '../../../directives/o-mat-suffix.directive';
6
+ import { OFormComponent } from '../../form/o-form.component';
7
+ import { OFormDataComponent } from '../../o-form-data-component.class';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare const DEFAULT_INPUTS_O_TEXT_INPUT: string[];
9
- export declare class OTextInputComponent extends OFormDataComponent implements OnInit {
10
+ export declare class OTextInputComponent extends OFormDataComponent implements OnInit, OnDestroy, AfterViewInit {
10
11
  _prefixChildren: QueryList<OMatPrefix>;
11
12
  _suffixChildren: QueryList<OMatSuffix>;
13
+ stringCase: string;
12
14
  protected _minLength: number;
13
15
  protected _maxLength: number;
16
+ protected upperSubscription: Subscription;
14
17
  constructor(form: OFormComponent, elRef: ElementRef, injector: Injector);
15
18
  ngOnInit(): void;
19
+ ngAfterViewInit(): void;
20
+ protected initializeStringCase(): void;
16
21
  resolveValidators(): ValidatorFn[];
17
22
  set minLength(val: number);
18
23
  get minLength(): number;
19
24
  set maxLength(val: number);
20
25
  get maxLength(): number;
26
+ ngOnDestroy(): void;
21
27
  static ɵfac: i0.ɵɵFactoryDeclaration<OTextInputComponent, [{ optional: true; }, null, null]>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<OTextInputComponent, "o-text-input", never, { "minLength": "min-length"; "maxLength": "max-length"; }, {}, ["_prefixChildren", "_suffixChildren"], ["[oMatPrefix]", "[oMatSuffix]"], false, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<OTextInputComponent, "o-text-input", never, { "minLength": "min-length"; "maxLength": "max-length"; "stringCase": "string-case"; }, {}, ["_prefixChildren", "_suffixChildren"], ["[oMatPrefix]", "[oMatSuffix]"], false, never>;
23
29
  }
@@ -1,4 +1,3 @@
1
- import { SelectionModel } from '@angular/cdk/collections';
2
1
  import { AfterContentInit, AfterViewInit, ElementRef, EventEmitter, Injector, OnChanges, OnDestroy, OnInit, QueryList } from '@angular/core';
3
2
  import { MatFormFieldAppearance } from '@angular/material/form-field';
4
3
  import { Subscription } from 'rxjs';
@@ -33,7 +32,6 @@ export declare class OListComponent extends AbstractOServiceComponent<OListCompo
33
32
  sortColArray: SQLOrder[];
34
33
  onInsertButtonClick: EventEmitter<any>;
35
34
  onItemDeleted: EventEmitter<any>;
36
- selection: SelectionModel<Element>;
37
35
  enabledDeleteButton: boolean;
38
36
  insertButtonPosition: 'top' | 'bottom';
39
37
  storePaginationState: boolean;
@@ -75,7 +75,8 @@ export declare abstract class AbstractOServiceComponent<T extends AbstractCompon
75
75
  onPaginatedDataLoaded: EventEmitter<any>;
76
76
  onSearch: EventEmitter<any>;
77
77
  filterBuilder: OFilterBuilderComponent;
78
- selection: SelectionModel<Element>;
78
+ protected _selection: SelectionModel<Element>;
79
+ get selection(): SelectionModel<Element>;
79
80
  protected onTriggerUpdateSubscription: any;
80
81
  protected formLayoutManager: OFormLayoutManagerBase;
81
82
  protected formLayoutManagerTabIndex: number;
@@ -5,7 +5,7 @@ export declare class OTableSkeletonComponent extends OSkeletonComponent implemen
5
5
  protected elRef: ElementRef;
6
6
  protected injector: Injector;
7
7
  constructor(elRef: ElementRef, injector: Injector);
8
- get count(): number[];
8
+ get count(): number[] | 0;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<OTableSkeletonComponent, never>;
10
10
  static ɵcmp: i0.ɵɵComponentDeclaration<OTableSkeletonComponent, "o-table-skeleton", never, {}, {}, never, never, false, never>;
11
11
  }
@@ -258,6 +258,7 @@ export declare class OTableComponent extends AbstractOServiceComponent<OTableCom
258
258
  parseSortColumns(): void;
259
259
  protected ensureColumnsOrder(): void;
260
260
  initializeParams(): void;
261
+ get selection(): SelectionModel<Element>;
261
262
  updateStateExpandedColumn(): void;
262
263
  registerTabListener(): void;
263
264
  protected insideTabBugWorkaround(): void;
@@ -37,3 +37,4 @@ export * from './export-data-provider.interface';
37
37
  export * from './o-table-export-data.interface';
38
38
  export * from './query-parameter.interface';
39
39
  export * from './form-data-component-hash.interface';
40
+ export * from './local-service.interface';
@@ -0,0 +1,15 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { ILocalStorageComponent } from '../interfaces/local-storage-component.interface';
3
+ export interface ILocalStorageService {
4
+ onRouteChange: EventEmitter<any>;
5
+ onSetLocalStorage: EventEmitter<any>;
6
+ getComponentStorage(comp: ILocalStorageComponent, routeKey?: string): any;
7
+ updateComponentStorage(comp: ILocalStorageComponent, routeKey?: string): any;
8
+ updateAppComponentStorage(componentKey: string, componentData: object): any;
9
+ getSessionUserComponentsData(): object;
10
+ storeSessionUserComponentsData(componentsData: object): any;
11
+ getStoredData(): object;
12
+ setBackwardCompatibility(): any;
13
+ setLocalStorage(appData: any): any;
14
+ removeStoredData(): any;
15
+ }
@@ -12,9 +12,12 @@ import { OntimizeExportDataProviderService } from './ontimize-export-data-provid
12
12
  import { OntimizeExportService } from './ontimize/ontimize-export.service';
13
13
  import { OntimizeService } from './ontimize/ontimize.service';
14
14
  import { AbstractComponentStateService, DefaultComponentStateService } from './state/o-component-state.service';
15
+ import { LocalStorageService } from './local-storage.service';
16
+ import { ILocalStorageService } from '../interfaces/local-service.interface';
15
17
  export declare const O_DATA_SERVICE: InjectionToken<unknown>;
16
18
  export declare const O_TRANSLATE_SERVICE: InjectionToken<unknown>;
17
19
  export declare const O_FILE_SERVICE: InjectionToken<IFileService>;
20
+ export declare const O_LOCALSTORAGE_SERVICE: InjectionToken<ILocalStorageService>;
18
21
  export declare const O_EXPORT_SERVICE: InjectionToken<IExportService>;
19
22
  export declare const O_PERMISSION_SERVICE: InjectionToken<IPermissionsService>;
20
23
  export declare const O_AUTH_SERVICE: InjectionToken<AuthService>;
@@ -27,6 +30,7 @@ export declare const O_MAT_ERROR_OPTIONS: InjectionToken<OMatErrorOptions>;
27
30
  export declare const O_FORM_MESSAGE_SERVICE: InjectionToken<unknown>;
28
31
  export declare function dataServiceFactory(injector: Injector): any;
29
32
  export declare function fileServiceFactory(injector: Injector): IFileService;
33
+ export declare function localStorageServiceFactory(injector: Injector): ILocalStorageService;
30
34
  export declare function exportServiceFactory(injector: Injector): IExportService;
31
35
  export declare function exportDataFactory(injector: Injector): IExportDataProvider;
32
36
  export declare function permissionsServiceFactory(injector: Injector): IPermissionsService;
@@ -57,4 +61,9 @@ export declare const ExportDataServiceProvider: {
57
61
  useFactory: typeof exportDataFactory;
58
62
  deps: (typeof Injector)[];
59
63
  };
64
+ export declare const OntimizeLocalStorageServiceProvider: {
65
+ provide: typeof LocalStorageService;
66
+ useFactory: typeof localStorageServiceFactory;
67
+ deps: (typeof Injector)[];
68
+ };
60
69
  export declare function _getInjectionTokenValue<T>(token: InjectionToken<T>, injector: Injector): T;
@@ -1,7 +1,8 @@
1
1
  import { EventEmitter, Injector } from '@angular/core';
2
2
  import { ILocalStorageComponent } from '../interfaces/local-storage-component.interface';
3
+ import { ILocalStorageService } from '../interfaces/local-service.interface';
3
4
  import * as i0 from "@angular/core";
4
- export declare class LocalStorageService {
5
+ export declare class LocalStorageService implements ILocalStorageService {
5
6
  protected injector: Injector;
6
7
  static COMPONENTS_STORAGE_KEY: string;
7
8
  static USERS_STORAGE_KEY: string;
@@ -22,6 +23,7 @@ export declare class LocalStorageService {
22
23
  getStoredData(): object;
23
24
  setBackwardCompatibility(): void;
24
25
  setLocalStorage(appData: any): void;
26
+ removeStoredData(): void;
25
27
  static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageService, never>;
26
28
  static ɵprov: i0.ɵɵInjectableDeclaration<LocalStorageService>;
27
29
  }
@@ -14,6 +14,9 @@ export declare class OntimizeExportDataBaseProviderService {
14
14
  constructor(injector: Injector);
15
15
  initializeProvider(table: OTableBase): void;
16
16
  protected getFilterWithBasicExpression(): any;
17
+ private applyParentItemExpression;
18
+ private applyColumnFilters;
19
+ private applyQuickAndBuilderFilters;
17
20
  static ɵfac: i0.ɵɵFactoryDeclaration<OntimizeExportDataBaseProviderService, never>;
18
21
  static ɵprov: i0.ɵɵInjectableDeclaration<OntimizeExportDataBaseProviderService>;
19
22
  }
@@ -2,4 +2,5 @@ export type OInputsColor = 'primary' | 'accent';
2
2
  export type OInputsOptions = {
3
3
  iconColor?: OInputsColor;
4
4
  selectAllOnClick?: boolean;
5
+ stringCase?: 'uppercase' | 'lowercase' | 'default';
5
6
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ontimize-web-ngx",
3
3
  "homepage": "https://github.com/OntimizeWeb/ontimize-web-ngx#readme",
4
- "version": "15.1.2",
4
+ "version": "15.2.0",
5
5
  "description": "Ontimize Web framework using Angular 15",
6
6
  "bugs": "https://github.com/OntimizeWeb/ontimize-web-ngx/issues",
7
7
  "author": "Imatia S.L.",