ontimize-web-ngx 15.4.1 → 15.4.3

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 (24) hide show
  1. package/esm2020/lib/components/form/o-form.component.mjs +20 -3
  2. package/esm2020/lib/components/table/column/o-column.class.mjs +2 -5
  3. package/esm2020/lib/components/table/extensions/dialog/export/o-table-export-dialog.component.mjs +15 -1
  4. package/esm2020/lib/components/table/extensions/dialog/filter-by-column/o-table-filter-by-column-data-dialog.component.mjs +7 -3
  5. package/esm2020/lib/components/table/extensions/export-button/o-table-export-button.component.mjs +4 -7
  6. package/esm2020/lib/components/table/o-table.component.mjs +5 -4
  7. package/esm2020/lib/pipes/index.mjs +2 -1
  8. package/esm2020/lib/pipes/is-empty-value.pipe.mjs +17 -0
  9. package/esm2020/lib/shared/shared.module.mjs +8 -3
  10. package/esm2020/lib/types/error-form-validation.type.mjs +2 -0
  11. package/esm2020/lib/types/index.mjs +2 -1
  12. package/fesm2015/ontimize-web-ngx.mjs +71 -21
  13. package/fesm2015/ontimize-web-ngx.mjs.map +1 -1
  14. package/fesm2020/ontimize-web-ngx.mjs +69 -21
  15. package/fesm2020/ontimize-web-ngx.mjs.map +1 -1
  16. package/lib/components/form/o-form.component.d.ts +4 -1
  17. package/lib/components/table/extensions/dialog/export/o-table-export-dialog.component.d.ts +1 -0
  18. package/lib/components/table/extensions/export-button/o-table-export-button.component.d.ts +2 -2
  19. package/lib/pipes/index.d.ts +1 -0
  20. package/lib/pipes/is-empty-value.pipe.d.ts +7 -0
  21. package/lib/shared/shared.module.d.ts +25 -24
  22. package/lib/types/error-form-validation.type.d.ts +5 -0
  23. package/lib/types/index.d.ts +1 -0
  24. package/package.json +1 -1
@@ -21,6 +21,7 @@ import { OFormNavigationClass } from './navigation/o-form.navigation.class';
21
21
  import { OFormMessageService } from './services/o-form-message.service';
22
22
  import { OFormToolbarBase } from './toolbar/o-form-toolbar-base.class';
23
23
  import { OFormToolbarComponent } from './toolbar/o-form-toolbar.component';
24
+ import { OFormValidation } from '../../types/error-form-validation.type';
24
25
  import * as i0 from "@angular/core";
25
26
  interface IFormDataComponentHash {
26
27
  [attr: string]: IFormDataComponent;
@@ -74,6 +75,7 @@ export declare class OFormComponent implements OnInit, OnDestroy, CanComponentDe
74
75
  queryFallbackFunction: (error: any) => void;
75
76
  ignoreDefaultNavigation: boolean;
76
77
  messageServiceType: string;
78
+ formDataValidationFunction: (data: any) => OFormValidation;
77
79
  isDetailForm: boolean;
78
80
  keysArray: string[];
79
81
  colsArray: string[];
@@ -176,6 +178,7 @@ export declare class OFormComponent implements OnInit, OnDestroy, CanComponentDe
176
178
  _clearAndCloseFormAfterInsert(): void;
177
179
  _insertAction(): void;
178
180
  insert(): void;
181
+ validateBeforeAction(values: object): boolean;
179
182
  _goEditMode(): void;
180
183
  goEditMode(): void;
181
184
  _editAction(): void;
@@ -254,6 +257,6 @@ export declare class OFormComponent implements OnInit, OnDestroy, CanComponentDe
254
257
  protected isUpdateModePath(path: string): boolean;
255
258
  private showError;
256
259
  static ɵfac: i0.ɵɵFactoryDeclaration<OFormComponent, never>;
257
- static ɵcmp: i0.ɵɵComponentDeclaration<OFormComponent, "o-form", never, { "showHeader": "show-header"; "headerMode": "header-mode"; "headerPosition": "header-position"; "labelheader": "label-header"; "labelHeaderAlign": "label-header-align"; "headeractions": "header-actions"; "showHeaderActionsText": "show-header-actions-text"; "entity": "entity"; "keys": "keys"; "columns": "columns"; "service": "service"; "stayInRecordAfterEdit": "stay-in-record-after-edit"; "afterInsertMode": "after-insert-mode"; "serviceType": "service-type"; "queryOnInit": "query-on-init"; "parentKeys": "parent-keys"; "queryMethod": "query-method"; "insertMethod": "insert-method"; "updateMethod": "update-method"; "deleteMethod": "delete-method"; "layoutDirection": "layout-direction"; "layoutAlign": "layout-align"; "editableDetail": "editable-detail"; "keysSqlTypes": "keys-sql-types"; "undoButton": "undo-button"; "showHeaderNavigation": "show-header-navigation"; "oattr": "attr"; "includeBreadcrumb": "include-breadcrumb"; "detectChangesOnBlur": "detect-changes-on-blur"; "confirmExit": "confirm-exit"; "ignoreOnExit": "ignore-on-exit"; "queryFallbackFunction": "query-fallback-function"; "ignoreDefaultNavigation": "ignore-default-navigation"; "messageServiceType": "message-service-type"; "setValueOrder": "set-value-order"; }, { "onDataLoaded": "onDataLoaded"; "beforeCloseDetail": "beforeCloseDetail"; "beforeGoEditMode": "beforeGoEditMode"; "onFormModeChange": "onFormModeChange"; "onBeforeInsert": "onBeforeInsert"; "onBeforeUpdate": "onBeforeUpdate"; "onBeforeDelete": "onBeforeDelete"; "onInsert": "onInsert"; "onUpdate": "onUpdate"; "onDelete": "onDelete"; "beforeInsertMode": "beforeInsertMode"; "beforeUpdateMode": "beforeUpdateMode"; "beforeInitialMode": "beforeInitialMode"; "onInsertMode": "onInsertMode"; "onUpdateMode": "onUpdateMode"; "onInitialMode": "onInitialMode"; "onCancel": "onCancel"; }, never, ["[o-form-toolbar-buttons]", "*"], false, never>;
260
+ static ɵcmp: i0.ɵɵComponentDeclaration<OFormComponent, "o-form", never, { "showHeader": "show-header"; "headerMode": "header-mode"; "headerPosition": "header-position"; "labelheader": "label-header"; "labelHeaderAlign": "label-header-align"; "headeractions": "header-actions"; "showHeaderActionsText": "show-header-actions-text"; "entity": "entity"; "keys": "keys"; "columns": "columns"; "service": "service"; "stayInRecordAfterEdit": "stay-in-record-after-edit"; "afterInsertMode": "after-insert-mode"; "serviceType": "service-type"; "queryOnInit": "query-on-init"; "parentKeys": "parent-keys"; "queryMethod": "query-method"; "insertMethod": "insert-method"; "updateMethod": "update-method"; "deleteMethod": "delete-method"; "layoutDirection": "layout-direction"; "layoutAlign": "layout-align"; "editableDetail": "editable-detail"; "keysSqlTypes": "keys-sql-types"; "undoButton": "undo-button"; "showHeaderNavigation": "show-header-navigation"; "oattr": "attr"; "includeBreadcrumb": "include-breadcrumb"; "detectChangesOnBlur": "detect-changes-on-blur"; "confirmExit": "confirm-exit"; "ignoreOnExit": "ignore-on-exit"; "queryFallbackFunction": "query-fallback-function"; "ignoreDefaultNavigation": "ignore-default-navigation"; "messageServiceType": "message-service-type"; "setValueOrder": "set-value-order"; "formDataValidationFunction": "form-data-validation-function"; }, { "onDataLoaded": "onDataLoaded"; "beforeCloseDetail": "beforeCloseDetail"; "beforeGoEditMode": "beforeGoEditMode"; "onFormModeChange": "onFormModeChange"; "onBeforeInsert": "onBeforeInsert"; "onBeforeUpdate": "onBeforeUpdate"; "onBeforeDelete": "onBeforeDelete"; "onInsert": "onInsert"; "onUpdate": "onUpdate"; "onDelete": "onDelete"; "beforeInsertMode": "beforeInsertMode"; "beforeUpdateMode": "beforeUpdateMode"; "beforeInitialMode": "beforeInitialMode"; "onInsertMode": "onInsertMode"; "onUpdateMode": "onUpdateMode"; "onInitialMode": "onInitialMode"; "onCancel": "onCancel"; }, never, ["[o-form-toolbar-buttons]", "*"], false, never>;
258
261
  }
259
262
  export {};
@@ -48,6 +48,7 @@ export declare class OTableExportDialogComponent implements OnInit, OnDestroy {
48
48
  getDefaultSelection(): string;
49
49
  protected handleError(err: any): void;
50
50
  onChangeMatButtonToggleGroup(event: MatButtonToggleChange): void;
51
+ getCustomExportButton(type: string): any;
51
52
  static ɵfac: i0.ɵɵFactoryDeclaration<OTableExportDialogComponent, never>;
52
53
  static ɵcmp: i0.ɵɵComponentDeclaration<OTableExportDialogComponent, "o-table-export-dialog", never, {}, {}, never, never, false, never>;
53
54
  }
@@ -9,10 +9,10 @@ export declare class OTableExportButtonComponent {
9
9
  svgIcon: string;
10
10
  olabel: string;
11
11
  onClick: EventEmitter<any>;
12
+ exportFunction: () => void;
12
13
  protected exportType: string;
13
14
  protected oTableExportButtonService: OTableExportButtonService;
14
15
  constructor(injector: Injector);
15
- click(): void;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<OTableExportButtonComponent, never>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<OTableExportButtonComponent, "o-table-export-button", never, { "icon": "icon"; "svgIcon": "svg-icon"; "olabel": "label"; "exportType": "export-type"; }, { "onClick": "onClick"; }, never, never, false, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<OTableExportButtonComponent, "o-table-export-button", never, { "icon": "icon"; "svgIcon": "svg-icon"; "olabel": "label"; "exportType": "export-type"; "exportFunction": "export-function"; }, { "onClick": "onClick"; }, never, never, false, never>;
18
18
  }
@@ -8,3 +8,4 @@ export * from './o-currency.pipe';
8
8
  export * from './o-percentage.pipe';
9
9
  export * from './o-icon.pipe';
10
10
  export * from './o-safe.pipe';
11
+ export * from './is-empty-value.pipe';
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class IsEmptyValuePipe implements PipeTransform {
4
+ transform(value: any): unknown;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<IsEmptyValuePipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<IsEmptyValuePipe, "isEmptyValue", false>;
7
+ }
@@ -8,31 +8,32 @@ import * as i6 from "../pipes/o-currency.pipe";
8
8
  import * as i7 from "../pipes/o-percentage.pipe";
9
9
  import * as i8 from "../pipes/o-icon.pipe";
10
10
  import * as i9 from "../pipes/o-safe.pipe";
11
- import * as i10 from "../directives/keyboard-listener.directive";
12
- import * as i11 from "../components/list/list-item/o-list-item.directive";
13
- import * as i12 from "../directives/o-tab-group.directive";
14
- import * as i13 from "../directives/locker.directive";
15
- import * as i14 from "../directives/o-hidden.directive";
16
- import * as i15 from "../directives/o-mat-error.directive";
17
- import * as i16 from "../directives/o-file-drag-and-drop.directive";
18
- import * as i17 from "../directives/o-mat-prefix.directive";
19
- import * as i18 from "../directives/o-mat-suffix.directive";
20
- import * as i19 from "../directives/input-regulate.directive";
21
- import * as i20 from "./components/error403/o-error-403.component";
22
- import * as i21 from "./components/dialog/o-dialog.component";
23
- import * as i22 from "./components/dialog/o-dialog-internal.component";
24
- import * as i23 from "./components/validation/o-error.component";
25
- import * as i24 from "./components/validation/o-validator.component";
26
- import * as i25 from "./components/snackbar/o-snackbar.component";
27
- import * as i26 from "./components/filter/load-filter/o-load-filter-dialog.component";
28
- import * as i27 from "./components/filter/store-filter/o-store-filter-dialog.component";
29
- import * as i28 from "@angular/common";
30
- import * as i29 from "../pipes/o-translate.pipe";
31
- import * as i30 from "@angular/flex-layout";
32
- import * as i31 from "./material/custom.material.module";
33
- import * as i32 from "@angular/forms";
11
+ import * as i10 from "../pipes/is-empty-value.pipe";
12
+ import * as i11 from "../directives/keyboard-listener.directive";
13
+ import * as i12 from "../components/list/list-item/o-list-item.directive";
14
+ import * as i13 from "../directives/o-tab-group.directive";
15
+ import * as i14 from "../directives/locker.directive";
16
+ import * as i15 from "../directives/o-hidden.directive";
17
+ import * as i16 from "../directives/o-mat-error.directive";
18
+ import * as i17 from "../directives/o-file-drag-and-drop.directive";
19
+ import * as i18 from "../directives/o-mat-prefix.directive";
20
+ import * as i19 from "../directives/o-mat-suffix.directive";
21
+ import * as i20 from "../directives/input-regulate.directive";
22
+ import * as i21 from "./components/error403/o-error-403.component";
23
+ import * as i22 from "./components/dialog/o-dialog.component";
24
+ import * as i23 from "./components/dialog/o-dialog-internal.component";
25
+ import * as i24 from "./components/validation/o-error.component";
26
+ import * as i25 from "./components/validation/o-validator.component";
27
+ import * as i26 from "./components/snackbar/o-snackbar.component";
28
+ import * as i27 from "./components/filter/load-filter/o-load-filter-dialog.component";
29
+ import * as i28 from "./components/filter/store-filter/o-store-filter-dialog.component";
30
+ import * as i29 from "@angular/common";
31
+ import * as i30 from "../pipes/o-translate.pipe";
32
+ import * as i31 from "@angular/flex-layout";
33
+ import * as i32 from "./material/custom.material.module";
34
+ import * as i33 from "@angular/forms";
34
35
  export declare class OSharedModule {
35
36
  static ɵfac: i0.ɵɵFactoryDeclaration<OSharedModule, never>;
36
- static ɵmod: i0.ɵɵNgModuleDeclaration<OSharedModule, [typeof i1.ColumnsFilterPipe, typeof i2.OrderByPipe, typeof i3.OIntegerPipe, typeof i4.ORealPipe, typeof i5.OMomentPipe, typeof i6.OCurrencyPipe, typeof i7.OPercentPipe, typeof i8.OIconPipe, typeof i9.OSafePipe, typeof i10.OKeyboardListenerDirective, typeof i11.OListItemDirective, typeof i12.OTabGroupDirective, typeof i13.OLockerDirective, typeof i14.OHiddenDirective, typeof i15.OMatErrorDirective, typeof i16.OFileDragAndDropDirective, typeof i17.OMatPrefix, typeof i18.OMatSuffix, typeof i19.InputRegulateDirective, typeof i20.Error403Component, typeof i21.ODialogComponent, typeof i22.ODialogInternalComponent, typeof i23.OErrorComponent, typeof i24.OValidatorComponent, typeof i25.OSnackBarComponent, typeof i26.OLoadFilterDialogComponent, typeof i27.OStoreFilterDialogComponent], [typeof i28.CommonModule, typeof i29.OTranslateModule, typeof i30.FlexLayoutModule, typeof i31.OCustomMaterialModule, typeof i32.FormsModule, typeof i32.ReactiveFormsModule], [typeof i30.FlexLayoutModule, typeof i32.FormsModule, typeof i32.ReactiveFormsModule, typeof i29.OTranslateModule, typeof i1.ColumnsFilterPipe, typeof i2.OrderByPipe, typeof i3.OIntegerPipe, typeof i4.ORealPipe, typeof i5.OMomentPipe, typeof i6.OCurrencyPipe, typeof i7.OPercentPipe, typeof i8.OIconPipe, typeof i9.OSafePipe, typeof i10.OKeyboardListenerDirective, typeof i11.OListItemDirective, typeof i12.OTabGroupDirective, typeof i13.OLockerDirective, typeof i14.OHiddenDirective, typeof i15.OMatErrorDirective, typeof i16.OFileDragAndDropDirective, typeof i17.OMatPrefix, typeof i18.OMatSuffix, typeof i19.InputRegulateDirective, typeof i31.OCustomMaterialModule, typeof i20.Error403Component, typeof i23.OErrorComponent, typeof i24.OValidatorComponent, typeof i25.OSnackBarComponent, typeof i26.OLoadFilterDialogComponent, typeof i27.OStoreFilterDialogComponent]>;
37
+ static ɵmod: i0.ɵɵNgModuleDeclaration<OSharedModule, [typeof i1.ColumnsFilterPipe, typeof i2.OrderByPipe, typeof i3.OIntegerPipe, typeof i4.ORealPipe, typeof i5.OMomentPipe, typeof i6.OCurrencyPipe, typeof i7.OPercentPipe, typeof i8.OIconPipe, typeof i9.OSafePipe, typeof i10.IsEmptyValuePipe, typeof i11.OKeyboardListenerDirective, typeof i12.OListItemDirective, typeof i13.OTabGroupDirective, typeof i14.OLockerDirective, typeof i15.OHiddenDirective, typeof i16.OMatErrorDirective, typeof i17.OFileDragAndDropDirective, typeof i18.OMatPrefix, typeof i19.OMatSuffix, typeof i20.InputRegulateDirective, typeof i21.Error403Component, typeof i22.ODialogComponent, typeof i23.ODialogInternalComponent, typeof i24.OErrorComponent, typeof i25.OValidatorComponent, typeof i26.OSnackBarComponent, typeof i27.OLoadFilterDialogComponent, typeof i28.OStoreFilterDialogComponent], [typeof i29.CommonModule, typeof i30.OTranslateModule, typeof i31.FlexLayoutModule, typeof i32.OCustomMaterialModule, typeof i33.FormsModule, typeof i33.ReactiveFormsModule], [typeof i31.FlexLayoutModule, typeof i33.FormsModule, typeof i33.ReactiveFormsModule, typeof i30.OTranslateModule, typeof i1.ColumnsFilterPipe, typeof i2.OrderByPipe, typeof i3.OIntegerPipe, typeof i4.ORealPipe, typeof i5.OMomentPipe, typeof i6.OCurrencyPipe, typeof i7.OPercentPipe, typeof i8.OIconPipe, typeof i9.OSafePipe, typeof i10.IsEmptyValuePipe, typeof i11.OKeyboardListenerDirective, typeof i12.OListItemDirective, typeof i13.OTabGroupDirective, typeof i14.OLockerDirective, typeof i15.OHiddenDirective, typeof i16.OMatErrorDirective, typeof i17.OFileDragAndDropDirective, typeof i18.OMatPrefix, typeof i19.OMatSuffix, typeof i20.InputRegulateDirective, typeof i32.OCustomMaterialModule, typeof i21.Error403Component, typeof i24.OErrorComponent, typeof i25.OValidatorComponent, typeof i26.OSnackBarComponent, typeof i27.OLoadFilterDialogComponent, typeof i28.OStoreFilterDialogComponent]>;
37
38
  static ɵinj: i0.ɵɵInjectorDeclaration<OSharedModule>;
38
39
  }
@@ -0,0 +1,5 @@
1
+ export type OFormValidation = {
2
+ valid: boolean;
3
+ title?: string;
4
+ messages?: Array<string>;
5
+ };
@@ -39,3 +39,4 @@ export * from './o-grouped-column-types.type';
39
39
  export * from './o-filter-definition.type';
40
40
  export * from './form/index';
41
41
  export * from './o-global-config.type';
42
+ export * from './error-form-validation.type';
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.4.1",
4
+ "version": "15.4.3",
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.",