ontimize-web-ngx 15.2.1 → 15.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 (87) hide show
  1. package/assets/svg/ontimize-icon-set.svg +0 -1
  2. package/esm2020/lib/components/form/navigation/o-form.navigation.class.mjs +5 -4
  3. package/esm2020/lib/components/input/currency-input/o-currency-input.component.mjs +3 -3
  4. package/esm2020/lib/components/input/integer-input/o-integer-input.component.mjs +6 -6
  5. package/esm2020/lib/components/input/percent-input/o-percent-input.component.mjs +3 -3
  6. package/esm2020/lib/components/input/real-input/o-real-input.component.mjs +3 -3
  7. package/esm2020/lib/components/input/text-input/o-text-input.component.mjs +15 -13
  8. package/esm2020/lib/components/o-service-base-component.class.mjs +1 -1
  9. package/esm2020/lib/components/o-service-component.class.mjs +12 -3
  10. package/esm2020/lib/components/table/column/cell-editor/integer/o-table-cell-editor-integer.component.mjs +6 -6
  11. package/esm2020/lib/components/table/column/cell-editor/real/o-table-cell-editor-real.component.mjs +6 -6
  12. package/esm2020/lib/components/table/column/cell-renderer/action/o-table-cell-renderer-action.component.mjs +7 -1
  13. package/esm2020/lib/components/table/column/cell-renderer/cell-renderer.mjs +5 -3
  14. package/esm2020/lib/components/table/column/o-column.class.mjs +4 -1
  15. package/esm2020/lib/components/table/column/o-table-column.component.mjs +2 -3
  16. package/esm2020/lib/components/table/extensions/dialog/export/o-table-export-dialog.component.mjs +80 -19
  17. package/esm2020/lib/components/table/extensions/export-button/o-table-export-button.component.mjs +10 -11
  18. package/esm2020/lib/components/table/extensions/header/table-button/o-table-button.component.mjs +10 -2
  19. package/esm2020/lib/components/table/extensions/header/table-buttons/o-table-buttons.component.mjs +3 -3
  20. package/esm2020/lib/components/table/extensions/header/table-menu/o-table-export-configuration.class.mjs +1 -1
  21. package/esm2020/lib/components/table/extensions/header/table-menu/o-table-menu.component.mjs +10 -1
  22. package/esm2020/lib/components/table/extensions/header/table-quickfilter/o-table-quickfilter.component.mjs +3 -2
  23. package/esm2020/lib/components/table/o-table-base.class.mjs +1 -1
  24. package/esm2020/lib/components/table/o-table.component.mjs +103 -19
  25. package/esm2020/lib/components/tree/o-tree-dao.service.mjs +1 -1
  26. package/esm2020/lib/components/tree/o-tree.component.mjs +17 -24
  27. package/esm2020/lib/components/tree/o-tree.datasource.mjs +1 -1
  28. package/esm2020/lib/components/tree/tree-node/tree-node.component.mjs +27 -6
  29. package/esm2020/lib/config/o-directives.mjs +4 -2
  30. package/esm2020/lib/directives/index.mjs +2 -1
  31. package/esm2020/lib/directives/input-regulate.directive.mjs +70 -0
  32. package/esm2020/lib/i18n/i18n.mjs +24 -3
  33. package/esm2020/lib/interfaces/export-service.interface.mjs +1 -1
  34. package/esm2020/lib/interfaces/layout-manager-component.interface.mjs +1 -1
  35. package/esm2020/lib/layouts/form-layout/dialog/o-form-layout-dialog.component.mjs +5 -2
  36. package/esm2020/lib/layouts/form-layout/guards/o-form-layout-can-activate-child.guard.mjs +3 -2
  37. package/esm2020/lib/layouts/form-layout/o-form-layout-manager-base.class.mjs +1 -1
  38. package/esm2020/lib/layouts/form-layout/o-form-layout-manager.component.mjs +8 -4
  39. package/esm2020/lib/layouts/form-layout/split-pane/o-form-layout-split-pane.component.mjs +1 -1
  40. package/esm2020/lib/layouts/form-layout/tabgroup/o-form-layout-tabgroup.component.mjs +5 -2
  41. package/esm2020/lib/services/o-form-layout-manager.service.mjs +7 -1
  42. package/esm2020/lib/services/ontimize/ontimize-export-3xx.service.mjs +7 -5
  43. package/esm2020/lib/services/ontimize-export-data-provider-3x.service.mjs +6 -3
  44. package/esm2020/lib/services/snackbar.service.mjs +1 -1
  45. package/esm2020/lib/shared/shared.module.mjs +4 -3
  46. package/esm2020/lib/types/form-layout-manager-context.type.mjs +2 -0
  47. package/esm2020/lib/types/table/o-table-global-config.type.mjs +1 -1
  48. package/esm2020/lib/types/tree-flat-node.type.mjs +2 -0
  49. package/esm2020/lib/util/util.mjs +8 -1
  50. package/esm2020/lib/validators/o-validators.mjs +1 -1
  51. package/fesm2015/ontimize-web-ngx.mjs +6189 -5882
  52. package/fesm2015/ontimize-web-ngx.mjs.map +1 -1
  53. package/fesm2020/ontimize-web-ngx.mjs +4329 -4024
  54. package/fesm2020/ontimize-web-ngx.mjs.map +1 -1
  55. package/lib/components/input/text-input/o-text-input.component.d.ts +2 -1
  56. package/lib/components/o-service-base-component.class.d.ts +1 -0
  57. package/lib/components/o-service-component.class.d.ts +5 -3
  58. package/lib/components/table/column/o-table-column.component.d.ts +1 -1
  59. package/lib/components/table/extensions/dialog/export/o-table-export-dialog.component.d.ts +24 -1
  60. package/lib/components/table/extensions/dialog/o-table-dialog-components.d.ts +1 -1
  61. package/lib/components/table/extensions/export-button/o-table-export-button.component.d.ts +2 -2
  62. package/lib/components/table/extensions/footer/o-table-footer-components.d.ts +1 -1
  63. package/lib/components/table/extensions/header/o-table-header-components.d.ts +2 -2
  64. package/lib/components/table/extensions/header/table-button/o-table-button.component.d.ts +1 -0
  65. package/lib/components/table/extensions/header/table-menu/o-table-export-configuration.class.d.ts +1 -0
  66. package/lib/components/table/extensions/header/table-menu/o-table-menu.component.d.ts +1 -0
  67. package/lib/components/table/o-table-base.class.d.ts +13 -5
  68. package/lib/components/table/o-table.component.d.ts +14 -4
  69. package/lib/components/tree/o-tree-dao.service.d.ts +1 -1
  70. package/lib/components/tree/o-tree.component.d.ts +5 -16
  71. package/lib/components/tree/o-tree.datasource.d.ts +2 -1
  72. package/lib/components/tree/tree-node/tree-node.component.d.ts +6 -2
  73. package/lib/directives/index.d.ts +1 -0
  74. package/lib/directives/input-regulate.directive.d.ts +23 -0
  75. package/lib/i18n/i18n.d.ts +21 -0
  76. package/lib/interfaces/export-service.interface.d.ts +1 -1
  77. package/lib/interfaces/layout-manager-component.interface.d.ts +1 -0
  78. package/lib/layouts/form-layout/o-form-layout-manager-base.class.d.ts +2 -0
  79. package/lib/layouts/form-layout/o-form-layout-manager.component.d.ts +2 -1
  80. package/lib/services/o-form-layout-manager.service.d.ts +5 -1
  81. package/lib/services/ontimize/ontimize-export-3xx.service.d.ts +1 -1
  82. package/lib/shared/shared.module.d.ts +15 -14
  83. package/lib/types/form-layout-manager-context.type.d.ts +3 -0
  84. package/lib/types/table/o-table-global-config.type.d.ts +2 -0
  85. package/lib/types/tree-flat-node.type.d.ts +14 -0
  86. package/lib/util/util.d.ts +2 -0
  87. package/package.json +1 -1
@@ -14,6 +14,7 @@ export declare class OTextInputComponent extends OFormDataComponent implements O
14
14
  protected _minLength: number;
15
15
  protected _maxLength: number;
16
16
  protected upperSubscription: Subscription;
17
+ regulatePattern: string;
17
18
  constructor(form: OFormComponent, elRef: ElementRef, injector: Injector);
18
19
  ngOnInit(): void;
19
20
  ngAfterViewInit(): void;
@@ -26,5 +27,5 @@ export declare class OTextInputComponent extends OFormDataComponent implements O
26
27
  get maxLength(): number;
27
28
  ngOnDestroy(): void;
28
29
  static ɵfac: i0.ɵɵFactoryDeclaration<OTextInputComponent, [{ optional: true; }, null, null]>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<OTextInputComponent, "o-text-input", never, { "minLength": "min-length"; "maxLength": "max-length"; "stringCase": "string-case"; }, {}, ["_prefixChildren", "_suffixChildren"], ["[oMatPrefix]", "[oMatSuffix]"], false, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<OTextInputComponent, "o-text-input", never, { "minLength": "min-length"; "maxLength": "max-length"; "stringCase": "string-case"; "regulatePattern": "regulate-pattern"; }, {}, ["_prefixChildren", "_suffixChildren"], ["[oMatPrefix]", "[oMatSuffix]"], false, never>;
30
31
  }
@@ -19,6 +19,7 @@ export declare abstract class AbstractOServiceBaseComponent<T extends AbstractCo
19
19
  componentStateService: T;
20
20
  protected dialogService: DialogService;
21
21
  protected oErrorDialogManager: OErrorDialogManager;
22
+ parentComponent: AbstractOServiceBaseComponent<T>;
22
23
  oattr: string;
23
24
  service: string;
24
25
  serviceType: string;
@@ -20,6 +20,7 @@ import { OTableInitializationOptions } from '../types/table/o-table-initializati
20
20
  import { OFormComponent } from './form/o-form.component';
21
21
  import { AbstractOServiceBaseComponent } from './o-service-base-component.class';
22
22
  import { OFormLayoutManagerBase } from '../layouts/form-layout/o-form-layout-manager-base.class';
23
+ import { OFormLayoutManagerContext } from '../types/form-layout-manager-context.type';
23
24
  import * as i0 from "@angular/core";
24
25
  interface ItemClick {
25
26
  getItemData(): any;
@@ -75,8 +76,8 @@ export declare abstract class AbstractOServiceComponent<T extends AbstractCompon
75
76
  onPaginatedDataLoaded: EventEmitter<any>;
76
77
  onSearch: EventEmitter<any>;
77
78
  filterBuilder: OFilterBuilderComponent;
78
- protected _selection: SelectionModel<Element>;
79
- get selection(): SelectionModel<Element>;
79
+ protected _selection: SelectionModel<any>;
80
+ get selection(): SelectionModel<any>;
80
81
  protected onTriggerUpdateSubscription: any;
81
82
  protected formLayoutManager: OFormLayoutManagerBase;
82
83
  protected formLayoutManagerTabIndex: number;
@@ -108,7 +109,7 @@ export declare abstract class AbstractOServiceComponent<T extends AbstractCompon
108
109
  setSelected(item: any): void;
109
110
  protected navigateToDetail(route: any[], qParams: any, relativeTo: ActivatedRoute): void;
110
111
  insertDetail(): void;
111
- viewDetail(item: any): void;
112
+ viewDetail(item: any, context?: OFormLayoutManagerContext): void;
112
113
  editDetail(item: any): void;
113
114
  protected addFormLayoutManagerRoute(routeArr: any[]): void;
114
115
  protected setButtonPermissions(actionsPermissions: any): void;
@@ -159,6 +160,7 @@ export declare abstract class AbstractOServiceComponent<T extends AbstractCompon
159
160
  get quickFilterAppearance(): MatFormFieldAppearance;
160
161
  set quickFilterAppearance(value: MatFormFieldAppearance);
161
162
  protected getSqlTypesOfKeys(): {};
163
+ compareRow(): ((o1: any, o2: any) => boolean) | undefined;
162
164
  static ɵfac: i0.ɵɵFactoryDeclaration<AbstractOServiceComponent<any>, never>;
163
165
  static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractOServiceComponent<any>, never, never, { "oattr": "attr"; "service": "service"; "serviceType": "service-type"; "entity": "entity"; "queryOnInit": "query-on-init"; "queryOnBind": "query-on-bind"; "queryOnEvent": "query-on-event"; "pageable": "pageable"; "columns": "columns"; "keys": "keys"; "parentKeys": "parent-keys"; "staticData": "static-data"; "queryMethod": "query-method"; "paginatedQueryMethod": "paginated-query-method"; "oQueryRows": "query-rows"; "insertMethod": "insert-method"; "updateMethod": "update-method"; "deleteMethod": "delete-method"; "storeState": "store-state"; "queryWithNullParentKeys": "query-with-null-parent-keys"; "queryFallbackFunction": "query-fallback-function"; "_title": "title"; "ovisible": "visible"; "oenabled": "enabled"; "controls": "controls"; "detailMode": "detail-mode"; "detailFormRoute": "detail-form-route"; "recursiveDetail": "recursive-detail"; "detailButtonInRow": "detail-button-in-row"; "detailButtonInRowIcon": "detail-button-in-row-icon"; "editFormRoute": "edit-form-route"; "recursiveEdit": "recursive-edit"; "editButtonInRow": "edit-button-in-row"; "editButtonInRowIcon": "edit-button-in-row-icon"; "insertButton": "insert-button"; "rowHeight": "row-height"; "insertFormRoute": "insert-form-route"; "recursiveInsert": "recursive-insert"; "filterCaseSensitive": "filter-case-sensitive"; "quickFilter": "quick-filter"; "quickFilterPlaceholder": "quick-filter-placeholder"; "paginationControls": "pagination-controls"; "pageSizeOptions": "page-size-options"; "quickFilterAppearance": "quick-filter-appearance"; "disablePageSizeCalculation": "disable-page-size-calculation"; }, { "onClick": "onClick"; "onDoubleClick": "onDoubleClick"; "onDataLoaded": "onDataLoaded"; "onPaginatedDataLoaded": "onPaginatedDataLoaded"; "onSearch": "onSearch"; }, never, never, false, never>;
164
166
  }
@@ -127,5 +127,5 @@ export declare class OTableColumnComponent implements OTableColumn, OnDestroy, O
127
127
  set filterSource(val: string);
128
128
  get filterSource(): string;
129
129
  static ɵfac: i0.ɵɵFactoryDeclaration<OTableColumnComponent, never>;
130
- static ɵcmp: i0.ɵɵComponentDeclaration<OTableColumnComponent, "o-table-column", never, { "attr": "attr"; "title": "title"; "titleAlign": "title-align"; "contentAlign": "content-align"; "orderable": "orderable"; "searchable": "searchable"; "groupable": "groupable"; "type": "type"; "editable": "editable"; "width": "width"; "minWidth": "min-width"; "maxWidth": "max-width"; "asyncLoad": "async-load"; "sqlType": "sql-type"; "tooltip": "tooltip"; "tooltipValue": "tooltip-value"; "tooltipFunction": "tooltip-function"; "multiline": "multiline"; "resizable": "resizable"; "filterExpressionFunction": "filter-expression-function"; "class": "class"; "angularValidatorsFn": "validators"; "angularValidatorsFnErrors": "validators-errors"; "angularAsyncValidatorsFn": "async-validators"; "trueValue": "true-value"; "falseValue": "false-value"; "booleanType": "boolean-type"; "renderTrueValue": "render-true-value"; "renderFalseValue": "render-false-value"; "renderType": "render-type"; "currencySymbol": "currency-symbol"; "currencySymbolPosition": "currency-symbol-position"; "format": "format"; "imageType": "image-type"; "emptyImage": "empty-image"; "avatar": "avatar"; "icon": "icon"; "svgIcon": "svg-icon"; "action": "action"; "text": "text"; "iconPosition": "icon-position"; "entity": "entity"; "service": "service"; "columns": "columns"; "translate": "translate"; "valueColumn": "value-column"; "valueColumnType": "value-column-type"; "parentKeys": "parent-keys"; "queryMethod": "query-method"; "serviceType": "service-type"; "translateArgsFn": "translate-params"; "orequired": "required"; "showPlaceHolder": "show-placeholder"; "olabel": "label"; "updateRecordOnEdit": "update-record-on-edit"; "showNotificationOnEdit": "show-notification-on-edit"; "enabled": "enabled"; "min": "min"; "max": "max"; "step": "step"; "locale": "locale"; "oStartView": "start-view"; "oTouchUi": "touch-ui"; "startAt": "start-at"; "filterDate": "filter-date"; "dateValueType": "date-value-type"; "oDateFormat": "date-format"; "oDateLocale": "date-locale"; "oDateStartView": "date-start-view"; "oMinDate": "date-min"; "oMaxDate": "date-max"; "oDateTouchUi": "date-touch-ui"; "oDateStartAt": "date-start-at"; "oHourFormat": "hour-format"; "oHourMin": "hour-min"; "oHourMax": "hour-max"; "oHourPlaceholder": "hour-placeholder"; "oDatePlaceholder": "date-placeholder"; }, { "onClick": "onClick"; "onDataLoaded": "onDataLoaded"; "editionStarted": "editionStarted"; "editionCancelled": "editionCancelled"; "editionCommitted": "editionCommitted"; "onPostUpdateRecord": "onPostUpdateRecord"; }, never, never, false, never>;
130
+ static ɵcmp: i0.ɵɵComponentDeclaration<OTableColumnComponent, "o-table-column", never, { "attr": "attr"; "title": "title"; "titleAlign": "title-align"; "contentAlign": "content-align"; "orderable": "orderable"; "searchable": "searchable"; "groupable": "groupable"; "type": "type"; "editable": "editable"; "width": "width"; "minWidth": "min-width"; "maxWidth": "max-width"; "asyncLoad": "async-load"; "sqlType": "sql-type"; "tooltip": "tooltip"; "tooltipValue": "tooltip-value"; "tooltipFunction": "tooltip-function"; "multiline": "multiline"; "resizable": "resizable"; "filterExpressionFunction": "filter-expression-function"; "class": "class"; "angularValidatorsFn": "validators"; "angularValidatorsFnErrors": "validators-errors"; "angularAsyncValidatorsFn": "async-validators"; "trueValue": "true-value"; "falseValue": "false-value"; "booleanType": "boolean-type"; "renderTrueValue": "render-true-value"; "renderFalseValue": "render-false-value"; "renderType": "render-type"; "grouping": "grouping"; "thousandSeparator": "thousand-separator"; "decimalSeparator": "decimal-separator"; "minDecimalDigits": "min-decimal-digits"; "maxDecimalDigits": "max-decimal-digits"; "currencySymbol": "currency-symbol"; "currencySymbolPosition": "currency-symbol-position"; "format": "format"; "imageType": "image-type"; "emptyImage": "empty-image"; "avatar": "avatar"; "icon": "icon"; "svgIcon": "svg-icon"; "action": "action"; "text": "text"; "iconPosition": "icon-position"; "entity": "entity"; "service": "service"; "columns": "columns"; "translate": "translate"; "valueColumn": "value-column"; "valueColumnType": "value-column-type"; "parentKeys": "parent-keys"; "queryMethod": "query-method"; "serviceType": "service-type"; "translateArgsFn": "translate-params"; "orequired": "required"; "showPlaceHolder": "show-placeholder"; "olabel": "label"; "updateRecordOnEdit": "update-record-on-edit"; "showNotificationOnEdit": "show-notification-on-edit"; "enabled": "enabled"; "min": "min"; "max": "max"; "step": "step"; "locale": "locale"; "oStartView": "start-view"; "oTouchUi": "touch-ui"; "startAt": "start-at"; "filterDate": "filter-date"; "dateValueType": "date-value-type"; "oDateFormat": "date-format"; "oDateLocale": "date-locale"; "oDateStartView": "date-start-view"; "oMinDate": "date-min"; "oMaxDate": "date-max"; "oDateTouchUi": "date-touch-ui"; "oDateStartAt": "date-start-at"; "oHourFormat": "hour-format"; "oHourMin": "hour-min"; "oHourMax": "hour-max"; "oHourPlaceholder": "hour-placeholder"; "oDatePlaceholder": "date-placeholder"; }, { "onClick": "onClick"; "onDataLoaded": "onDataLoaded"; "editionStarted": "editionStarted"; "editionCancelled": "editionCancelled"; "editionCommitted": "editionCommitted"; "onPostUpdateRecord": "onPostUpdateRecord"; }, never, never, false, never>;
131
131
  }
@@ -1,10 +1,12 @@
1
1
  import { Injector, OnDestroy, OnInit } from '@angular/core';
2
2
  import { MatDialogRef } from '@angular/material/dialog';
3
+ import { CdkDragDrop } from '@angular/cdk/drag-drop';
3
4
  import { IExportService } from '../../../../../interfaces/export-service.interface';
4
5
  import { SnackBarService } from '../../../../../services/snackbar.service';
5
6
  import { OTranslateService } from '../../../../../services/translate/o-translate.service';
6
7
  import { OTableExportButtonService } from '../../export-button/o-table-export-button.service';
7
8
  import { OTableExportConfiguration } from '../../header/table-menu/o-table-export-configuration.class';
9
+ import { MatButtonToggleChange } from '@angular/material/button-toggle';
8
10
  import * as i0 from "@angular/core";
9
11
  export declare class OTableExportDialogComponent implements OnInit, OnDestroy {
10
12
  dialogRef: MatDialogRef<OTableExportDialogComponent>;
@@ -17,14 +19,35 @@ export declare class OTableExportDialogComponent implements OnInit, OnDestroy {
17
19
  protected visibleButtons: string[];
18
20
  private subscription;
19
21
  private appConfig;
22
+ columns: string[];
23
+ columnsData: string[];
24
+ orientations: {
25
+ text: string;
26
+ value: boolean;
27
+ }[];
28
+ exportTypes: {
29
+ exportType: string;
30
+ svgIcon: string;
31
+ olabel: string;
32
+ className: string;
33
+ }[];
34
+ vertical: boolean;
35
+ selectedExportFormat: string;
36
+ filename: string;
37
+ isExpanded: boolean;
20
38
  constructor(dialogRef: MatDialogRef<OTableExportDialogComponent>, injector: Injector, config: OTableExportConfiguration);
21
39
  ngOnInit(): void;
22
40
  ngOnDestroy(): void;
23
41
  initialize(): void;
24
42
  configureService(): void;
25
- export(exportType: string, button?: any): void;
43
+ updateColumnsSort(): void;
44
+ dropColumns(event: CdkDragDrop<string[]>): void;
45
+ columnsCompareFunction(co1: any, co2: any): boolean;
46
+ export(): void;
26
47
  isButtonVisible(btn: string): boolean;
48
+ getDefaultSelection(): string;
27
49
  protected handleError(err: any): void;
50
+ onChangeMatButtonToggleGroup(event: MatButtonToggleChange): void;
28
51
  static ɵfac: i0.ɵɵFactoryDeclaration<OTableExportDialogComponent, never>;
29
52
  static ɵcmp: i0.ɵɵComponentDeclaration<OTableExportDialogComponent, "o-table-export-dialog", never, {}, {}, never, never, false, never>;
30
53
  }
@@ -4,4 +4,4 @@ import { OTableFilterByColumnDataDialogComponent } from './filter-by-column/o-ta
4
4
  import { OTableGroupByColumnsDialogComponent } from './group-by-columns/o-table-group-by-columns-dialog.component';
5
5
  import { OTableStoreConfigurationDialogComponent } from './store-configuration/o-table-store-configuration-dialog.component';
6
6
  import { OTableVisibleColumnsDialogComponent } from './visible-columns/o-table-visible-columns-dialog.component';
7
- export declare const O_TABLE_DIALOGS: (typeof OTableFilterByColumnDataDialogComponent | typeof OTableApplyConfigurationDialogComponent | typeof OTableExportDialogComponent | typeof OTableGroupByColumnsDialogComponent | typeof OTableStoreConfigurationDialogComponent | typeof OTableVisibleColumnsDialogComponent)[];
7
+ export declare const O_TABLE_DIALOGS: (typeof OTableApplyConfigurationDialogComponent | typeof OTableExportDialogComponent | typeof OTableFilterByColumnDataDialogComponent | typeof OTableStoreConfigurationDialogComponent | typeof OTableVisibleColumnsDialogComponent | typeof OTableGroupByColumnsDialogComponent)[];
@@ -4,7 +4,7 @@ import * as i0 from "@angular/core";
4
4
  export declare const DEFAULT_INPUTS_O_TABLE_EXPORT_BUTTON: string[];
5
5
  export declare const DEFAULT_OUTPUTS_O_TABLE_EXPORT_BUTTON: string[];
6
6
  export declare class OTableExportButtonComponent {
7
- private injector;
7
+ private readonly injector;
8
8
  icon: string;
9
9
  svgIcon: string;
10
10
  olabel: string;
@@ -14,5 +14,5 @@ export declare class OTableExportButtonComponent {
14
14
  constructor(injector: Injector);
15
15
  click(): void;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<OTableExportButtonComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<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"; }, { "onClick": "onClick"; }, never, never, false, never>;
18
18
  }
@@ -1,3 +1,3 @@
1
1
  import { OTableColumnAggregateComponent } from './aggregate/o-table-column-aggregate.component';
2
2
  import { OTablePaginatorComponent } from './paginator/o-table-paginator.component';
3
- export declare const O_TABLE_FOOTER_COMPONENTS: (typeof OTableColumnAggregateComponent | typeof OTablePaginatorComponent)[];
3
+ export declare const O_TABLE_FOOTER_COMPONENTS: (typeof OTablePaginatorComponent | typeof OTableColumnAggregateComponent)[];
@@ -12,5 +12,5 @@ import { OTableOptionComponent } from './table-option/o-table-option.component';
12
12
  import { OTableQuickfilterComponent } from './table-quickfilter/o-table-quickfilter.component';
13
13
  import { OTableHeaderComponent } from './table-header/o-table-header.component';
14
14
  import { OTableColumnSelectAllDirective } from './table-column-select-all/o-table-column-select-all.directive';
15
- export declare const O_TABLE_HEADER_COMPONENTS: (typeof OTableColumnsFilterColumnComponent | typeof OTableColumnsGroupingColumnComponent | typeof OTableButtonComponent | typeof OTableColumnSelectAllDirective | typeof OTableColumnsFilterComponent | typeof OTableHeaderColumnFilterIconComponent | typeof OTableHeaderComponent | typeof OTableInsertableRowComponent | typeof OTableOptionComponent | typeof OTableButtonsComponent | typeof OTableColumnResizerComponent | typeof OTableColumnsGroupingComponent | typeof OTableMenuComponent | typeof OTableQuickfilterComponent)[];
16
- export declare const O_TABLE_HEADER_COMPONENTS_EXPORTED: (typeof OTableColumnsFilterColumnComponent | typeof OTableColumnsGroupingColumnComponent | typeof OTableButtonComponent | typeof OTableColumnSelectAllDirective | typeof OTableColumnsFilterComponent | typeof OTableHeaderComponent | typeof OTableInsertableRowComponent | typeof OTableOptionComponent | typeof OTableButtonsComponent | typeof OTableColumnResizerComponent | typeof OTableColumnsGroupingComponent | typeof OTableMenuComponent | typeof OTableQuickfilterComponent)[];
15
+ export declare const O_TABLE_HEADER_COMPONENTS: (typeof OTableColumnsFilterColumnComponent | typeof OTableColumnsGroupingColumnComponent | typeof OTableButtonComponent | typeof OTableButtonsComponent | typeof OTableColumnResizerComponent | typeof OTableColumnsFilterComponent | typeof OTableInsertableRowComponent | typeof OTableOptionComponent | typeof OTableMenuComponent | typeof OTableQuickfilterComponent | typeof OTableHeaderColumnFilterIconComponent | typeof OTableHeaderComponent | typeof OTableColumnsGroupingComponent | typeof OTableColumnSelectAllDirective)[];
16
+ export declare const O_TABLE_HEADER_COMPONENTS_EXPORTED: (typeof OTableColumnsFilterColumnComponent | typeof OTableColumnsGroupingColumnComponent | typeof OTableButtonComponent | typeof OTableButtonsComponent | typeof OTableColumnResizerComponent | typeof OTableColumnsFilterComponent | typeof OTableInsertableRowComponent | typeof OTableOptionComponent | typeof OTableMenuComponent | typeof OTableQuickfilterComponent | typeof OTableHeaderComponent | typeof OTableColumnsGroupingComponent | typeof OTableColumnSelectAllDirective)[];
@@ -18,6 +18,7 @@ export declare class OTableButtonComponent implements OTableButton, OnInit {
18
18
  constructor(injector: Injector, elRef: ElementRef, _table: OTableBase);
19
19
  ngOnInit(): void;
20
20
  innerOnClick(event: any): void;
21
+ isReadOnly(): boolean;
21
22
  isIconPositionLeft(): boolean;
22
23
  get table(): OTableBase;
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<OTableButtonComponent, never>;
@@ -1,5 +1,6 @@
1
1
  export declare class OTableExportConfiguration {
2
2
  service: string;
3
+ columns: [];
3
4
  serviceType: string;
4
5
  visibleButtons: string;
5
6
  options?: any;
@@ -81,6 +81,7 @@ export declare class OTableMenuComponent implements OTableMenu, OnInit, AfterVie
81
81
  get showAnyOptionSecondSection(): boolean;
82
82
  onShowsSelects(): void;
83
83
  onExportButtonClicked(): void;
84
+ protected parseColumnsVisible(): any;
84
85
  onChangeColumnsVisibilityClicked(): void;
85
86
  onGroupByClicked(): void;
86
87
  onFilterByColumnClicked(): void;
@@ -1,20 +1,21 @@
1
- import { BehaviorSubject } from "rxjs/internal/BehaviorSubject";
1
+ import { SelectionModel } from '@angular/cdk/collections';
2
+ import { ChangeDetectorRef, EventEmitter, TemplateRef } from '@angular/core';
3
+ import { MatCheckboxChange } from '@angular/material/checkbox';
4
+ import { Observable } from 'rxjs';
5
+ import { BehaviorSubject } from 'rxjs/internal/BehaviorSubject';
6
+ import type { SnackBarService } from './../../services/snackbar.service';
2
7
  import type { QuickFilterFunction } from "../../types/quick-filter-function.type";
3
8
  import type { OColumn } from "./column/o-column.class";
4
- import { ChangeDetectorRef, EventEmitter, TemplateRef } from "@angular/core";
5
9
  import type { OPermissions } from "../../types/o-permissions.type";
6
- import { SelectionModel } from "@angular/cdk/collections";
7
10
  import type { OTableButtons } from "../../interfaces/o-table-buttons.interface";
8
11
  import type { OTableQuickfilter } from "../../interfaces/o-table-quickfilter.interface";
9
12
  import type { OTableMenu } from "../../interfaces/o-table-menu.interface";
10
13
  import type { OColumnValueFilter } from "../../types/table/o-column-value-filter.type";
11
14
  import type { OContextMenuComponent } from "../contextmenu/o-context-menu.component";
12
15
  import type { Expression, OFilterDefinition, OGroupedColumnTypes, OTableMenuPermissions, SQLOrder } from "../../types";
13
- import { Observable } from "rxjs";
14
16
  import type { OTableComponentStateClass } from "../../services/state/o-table-component-state.class";
15
17
  import type { OTableHeaderComponent } from "./extensions/header/table-header/o-table-header.component";
16
18
  import type { MatPaginator } from "@angular/material/paginator";
17
- import { MatCheckboxChange } from "@angular/material/checkbox";
18
19
  import type { OTableColumnSelectAllDirective } from "./extensions/header/table-column-select-all/o-table-column-select-all.directive";
19
20
  import type { OFilterBuilderComponent } from "../filter-builder/o-filter-builder.component";
20
21
  export declare abstract class OTableBase {
@@ -26,6 +27,7 @@ export declare abstract class OTableBase {
26
27
  exportServiceType: TemplateRef<any>;
27
28
  exportOptsTemplate: any;
28
29
  visibleColArray: string[];
30
+ showNotificationOfReadOnly: boolean;
29
31
  abstract reinitializeSortColumns(sortColumns?: SQLOrder[]): any;
30
32
  abstract setGroupColumns(value: any[]): any;
31
33
  abstract clearColumnFilters(triggerDatasourceUpdate?: boolean, columnsAttr?: string[]): void;
@@ -112,4 +114,10 @@ export declare abstract class OTableBase {
112
114
  abstract columns: string;
113
115
  abstract getParentKeysValues(): any;
114
116
  abstract filterBuilder: OFilterBuilderComponent;
117
+ abstract readOnlyFunction: (configuration: any) => boolean;
118
+ abstract isComponentReadOnly(selector: string, attr: string): boolean;
119
+ abstract getSnackService(): SnackBarService;
120
+ abstract setSelectedByKeys(keyValues: Array<any>): void;
121
+ abstract setSelectedByMultipleKeys(keyValues: Array<Object>): void;
122
+ abstract setSelectedByRowIds(rowIds: Array<number>): void;
115
123
  }
@@ -1,7 +1,7 @@
1
1
  import { SelectionModel } from '@angular/cdk/collections';
2
2
  import { DomPortalOutlet } from '@angular/cdk/portal';
3
3
  import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
4
- import { AfterContentInit, AfterViewInit, ApplicationRef, ElementRef, EventEmitter, Injector, OnDestroy, OnInit, QueryList, SimpleChange, TemplateRef, ViewContainerRef } from '@angular/core';
4
+ import { AfterContentInit, AfterViewInit, ApplicationRef, ElementRef, EventEmitter, Injector, OnDestroy, OnInit, QueryList, SimpleChange, ViewContainerRef } from '@angular/core';
5
5
  import { MatCheckboxChange } from '@angular/material/checkbox';
6
6
  import { MatDialog } from '@angular/material/dialog';
7
7
  import { MatMenu } from '@angular/material/menu';
@@ -29,6 +29,7 @@ import { AbstractOServiceComponent } from '../o-service-component.class';
29
29
  import { OTableColumnCalculatedComponent } from './column/calculated/o-table-column-calculated.component';
30
30
  import { OColumn } from './column/o-column.class';
31
31
  import { OTableColumnComponent } from './column/o-table-column.component';
32
+ import { OTableExportButtonComponent } from './extensions';
32
33
  import { OTableContextMenuComponent } from './extensions/contextmenu/o-table-context-menu.component';
33
34
  import { OTableFilterByColumnDataDialogComponent } from './extensions/dialog/filter-by-column/o-table-filter-by-column-data-dialog.component';
34
35
  import { OTableColumnSelectAllDirective } from './extensions/header/table-column-select-all/o-table-column-select-all.directive';
@@ -91,7 +92,12 @@ export declare class OTableComponent extends AbstractOServiceComponent<OTableCom
91
92
  showButtonsText: boolean;
92
93
  filterColumnActiveByDefault: boolean;
93
94
  showResetWidthOption: boolean;
95
+ readOnly: boolean;
96
+ showNotificationOfReadOnly: boolean;
94
97
  showExpandableIconFunction: (row: any, rowIndex: number) => boolean | Promise<boolean> | Observable<boolean>;
98
+ readOnlyFunction: (configuration: any) => boolean;
99
+ readOnlyConfiguration: any;
100
+ isComponentReadOnly(selector: string, attr: string): any;
95
101
  protected _oTableOptions: OTableOptions;
96
102
  get oTableOptions(): OTableOptions;
97
103
  set oTableOptions(value: OTableOptions);
@@ -205,7 +211,7 @@ export declare class OTableComponent extends AbstractOServiceComponent<OTableCom
205
211
  oTableButtons: OTableButtons;
206
212
  tableButtons: QueryList<OTableButton>;
207
213
  quickfilterContentChild: OTableQuickfilter;
208
- exportOptsTemplate: TemplateRef<any>;
214
+ exportOptsTemplate: QueryList<OTableExportButtonComponent>;
209
215
  tableColumnSelectAllContentChild: OTableColumnSelectAllDirective;
210
216
  groupedColumnsArray: string[];
211
217
  updateScrolledState(): void;
@@ -258,7 +264,7 @@ export declare class OTableComponent extends AbstractOServiceComponent<OTableCom
258
264
  parseSortColumns(): void;
259
265
  protected ensureColumnsOrder(): void;
260
266
  initializeParams(): void;
261
- get selection(): SelectionModel<Element>;
267
+ get selection(): SelectionModel<any>;
262
268
  updateStateExpandedColumn(): void;
263
269
  registerTabListener(): void;
264
270
  protected insideTabBugWorkaround(): void;
@@ -322,6 +328,9 @@ export declare class OTableComponent extends AbstractOServiceComponent<OTableCom
322
328
  selectedRow(row: any): void;
323
329
  clearSelection(): void;
324
330
  setSelected(item: any): void;
331
+ setSelectedByKeys(keyValues: Array<any>): void;
332
+ setSelectedByMultipleKeys(keyValues: Array<Object>): void;
333
+ setSelectedByRowIds(rowIds: Array<number>): void;
325
334
  get showDeleteButton(): boolean;
326
335
  getTrackByFunction(): (index: number, item: any) => string;
327
336
  queryRowAsyncData(rowIndex: number, rowData: any): void;
@@ -446,7 +455,8 @@ export declare class OTableComponent extends AbstractOServiceComponent<OTableCom
446
455
  updateColumnsDOMWidth(): void;
447
456
  isDisableCheckbox(item: any): boolean;
448
457
  getService(): any;
458
+ getSnackService(): SnackBarService;
449
459
  static ɵfac: i0.ɵɵFactoryDeclaration<OTableComponent, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
450
- static ɵcmp: i0.ɵɵComponentDeclaration<OTableComponent, "o-table", never, { "visibleColumns": "visible-columns"; "defaultVisibleColumns": "default-visible-columns"; "sortColumns": "sort-columns"; "quickFilterCallback": "quick-filter-function"; "deleteButton": "delete-button"; "refreshButton": "refresh-button"; "columnsVisibilityButton": "columns-visibility-button"; "exportButton": "export-button"; "showConfigurationOption": "show-configuration-option"; "showButtonsText": "show-buttons-text"; "selectAllCheckbox": "select-all-checkbox"; "paginationControls": "pagination-controls"; "fixedHeader": "fixed-header"; "showTitle": "show-title"; "editionMode": "edition-mode"; "selectionMode": "selection-mode"; "horizontalScroll": "horizontal-scroll"; "showPaginatorFirstLastButtons": "show-paginator-first-last-buttons"; "autoAlignTitles": "auto-align-titles"; "multipleSort": "multiple-sort"; "selectAllCheckboxVisible": "select-all-checkbox-visible"; "orderable": "orderable"; "resizable": "resizable"; "keepSelectedItems": "keep-selected-items"; "exportMode": "export-mode"; "exportServiceType": "export-service-type"; "autoAdjust": "auto-adjust"; "showFilterOption": "show-filter-option"; "visibleExportDialogButtons": "visible-export-dialog-buttons"; "rowClass": "row-class"; "filterColumnActiveByDefault": "filter-column-active-by-default"; "groupedColumns": "grouped-columns"; "groupable": "groupable"; "expandGroupsSameLevel": "expand-groups-same-level"; "collapseGroupedColumns": "collapse-grouped-columns"; "virtualScroll": "virtual-scroll"; "contextMenu": "context-menu"; "showExpandableIconFunction": "show-expandable-icon-function"; "showReportOnDemandOption": "show-report-on-demand-option"; "showChartsOnDemandOption": "show-charts-on-demand-option"; "showResetWidthOption": "show-reset-width-option"; "disableSelectionFunction": "disable-selection-function"; "nonHidableColumns": "non-hidable-columns"; }, { "onRowSelected": "onRowSelected"; "onRowDeselected": "onRowDeselected"; "onRowDeleted": "onRowDeleted"; }, ["tableRowExpandable", "quickfilterContentChild", "tableColumnSelectAllContentChild", "contextMenuContentChild", "tableOptions", "tableButtons"], ["o-table-button", "[o-table-toolbar][position=start]", "[o-table-toolbar][position=end]", "[o-table-toolbar]", "o-table-quickfilter", "o-table-option", "o-table-export-button"], false, never>;
460
+ static ɵcmp: i0.ɵɵComponentDeclaration<OTableComponent, "o-table", never, { "visibleColumns": "visible-columns"; "defaultVisibleColumns": "default-visible-columns"; "sortColumns": "sort-columns"; "quickFilterCallback": "quick-filter-function"; "deleteButton": "delete-button"; "refreshButton": "refresh-button"; "columnsVisibilityButton": "columns-visibility-button"; "exportButton": "export-button"; "showConfigurationOption": "show-configuration-option"; "showButtonsText": "show-buttons-text"; "selectAllCheckbox": "select-all-checkbox"; "paginationControls": "pagination-controls"; "fixedHeader": "fixed-header"; "showTitle": "show-title"; "editionMode": "edition-mode"; "selectionMode": "selection-mode"; "horizontalScroll": "horizontal-scroll"; "showPaginatorFirstLastButtons": "show-paginator-first-last-buttons"; "autoAlignTitles": "auto-align-titles"; "multipleSort": "multiple-sort"; "selectAllCheckboxVisible": "select-all-checkbox-visible"; "orderable": "orderable"; "resizable": "resizable"; "keepSelectedItems": "keep-selected-items"; "exportMode": "export-mode"; "exportServiceType": "export-service-type"; "autoAdjust": "auto-adjust"; "showFilterOption": "show-filter-option"; "visibleExportDialogButtons": "visible-export-dialog-buttons"; "rowClass": "row-class"; "filterColumnActiveByDefault": "filter-column-active-by-default"; "groupedColumns": "grouped-columns"; "groupable": "groupable"; "expandGroupsSameLevel": "expand-groups-same-level"; "collapseGroupedColumns": "collapse-grouped-columns"; "virtualScroll": "virtual-scroll"; "contextMenu": "context-menu"; "showExpandableIconFunction": "show-expandable-icon-function"; "showReportOnDemandOption": "show-report-on-demand-option"; "showChartsOnDemandOption": "show-charts-on-demand-option"; "showResetWidthOption": "show-reset-width-option"; "disableSelectionFunction": "disable-selection-function"; "nonHidableColumns": "non-hidable-columns"; "readOnly": "read-only"; "readOnlyConfiguration": "read-only-configuration"; "showNotificationOfReadOnly": "show-notification-of-read-only"; }, { "onRowSelected": "onRowSelected"; "onRowDeselected": "onRowDeselected"; "onRowDeleted": "onRowDeleted"; }, ["tableRowExpandable", "quickfilterContentChild", "tableColumnSelectAllContentChild", "contextMenuContentChild", "tableOptions", "tableButtons", "exportOptsTemplate"], ["o-table-button", "[o-table-toolbar][position=start]", "[o-table-toolbar][position=end]", "[o-table-toolbar]", "o-table-quickfilter", "o-table-option"], false, never>;
451
461
  }
452
462
  export {};
@@ -1,5 +1,5 @@
1
1
  import { BehaviorSubject } from 'rxjs';
2
- import { OTreeFlatNode } from './o-tree.component';
2
+ import { OTreeFlatNode } from '../../types/tree-flat-node.type';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class OTreeDao {
5
5
  protected _isLoadingResults: boolean;
@@ -1,28 +1,17 @@
1
1
  import { SelectionModel } from '@angular/cdk/collections';
2
2
  import { FlatTreeControl } from '@angular/cdk/tree';
3
3
  import { AfterViewInit, ElementRef, EventEmitter, Injector, OnDestroy, OnInit, TemplateRef } from '@angular/core';
4
- import { Observable, Subscription } from 'rxjs';
5
- import { ServiceResponse } from '../../interfaces/service-response.interface';
4
+ import { Subscription } from 'rxjs';
6
5
  import { OTreeComponentStateService } from '../../services/state/o-tree-component-state.service';
6
+ import { OPermissions } from '../../types';
7
+ import { OTreePermissions } from '../../types/o-tree-permissions.type';
8
+ import { OTreeFlatNode } from '../../types/tree-flat-node.type';
7
9
  import { OFormComponent } from '../form/o-form.component';
8
10
  import { AbstractOServiceComponent } from '../o-service-component.class';
9
11
  import { OTreeDao } from './o-tree-dao.service';
10
12
  import { OTreeDataSource } from './o-tree.datasource';
11
13
  import { OTreeNodeComponent } from './tree-node/tree-node.component';
12
- import { OPermissions } from '../../types';
13
- import { OTreePermissions } from '../../types/o-tree-permissions.type';
14
14
  import * as i0 from "@angular/core";
15
- export type OTreeFlatNode = {
16
- id: string | number;
17
- label: string;
18
- level: number;
19
- rootNode?: boolean;
20
- expandable: boolean;
21
- treeNode?: OTreeNodeComponent;
22
- data: any;
23
- isLoading?: boolean;
24
- route?: string;
25
- };
26
15
  export declare const DEFAULT_INPUTS_O_TREE: string[];
27
16
  export declare const DEFAULT_OUTPUTS_O_TREE: string[];
28
17
  export declare class OTreeComponent extends AbstractOServiceComponent<OTreeComponentStateService> implements OnInit, OnDestroy, AfterViewInit {
@@ -110,9 +99,9 @@ export declare class OTreeComponent extends AbstractOServiceComponent<OTreeCompo
110
99
  protected filterByQuickFilterColumns(item: any, quickfilter: string): boolean;
111
100
  add(e?: Event): void;
112
101
  protected getNodeId(item: any, parentNode: any): string;
113
- childQueryData(node: OTreeFlatNode): Observable<ServiceResponse> | Observable<any>;
114
102
  protected navigateToViewDetail(node: OTreeFlatNode): void;
115
103
  isSelectedNode(node: OTreeFlatNode): boolean;
104
+ onItemDetailClick(node: OTreeFlatNode): void;
116
105
  static ɵfac: i0.ɵɵFactoryDeclaration<OTreeComponent, [null, null, { optional: true; }]>;
117
106
  static ɵcmp: i0.ɵɵComponentDeclaration<OTreeComponent, "o-tree", never, { "oattr": "attr"; "service": "service"; "entity": "entity"; "columns": "columns"; "keys": "keys"; "parentKeys": "parent-keys"; "queryMethod": "query-method"; "insertButton": "insert-button"; "refreshButton": "refresh-button"; "deleteButton": "delete-button"; "visibleColumns": "visible-columns"; "selectAllCheckbox": "select-all-checkbox"; "separator": "separator"; "parentColumn": "parent-column"; "sortColumn": "sort-column"; "selectAllCheckboxVisible": "select-all-checkbox-visible"; "filterCaseSensitive": "filter-case-sensitive"; "quickFilter": "quick-filter"; "quickFilterPlaceholder": "quick-filter-placeholder"; "quickFilterColumns": "quick-filter-columns"; "detailMode": "detail-mode"; "detailFormRoute": "detail-form-route"; "showButtonsText": "show-buttons-text"; "rootTitle": "root-title"; "recursive": "recursive"; "route": "route"; }, { "onNodeSelected": "onNodeSelected"; "onNodeExpanded": "onNodeExpanded"; "onNodeCollapsed": "onNodeCollapsed"; "onLoadNextLevel": "onLoadNextLevel"; "onDataLoaded": "onDataLoaded"; "onNodeClick": "onNodeClick"; }, ["leafNodeTemplate", "parentNodeTemplate", "nodeTemplate", "treeNode"], ["[o-tree-button]"], false, never>;
118
107
  }
@@ -3,7 +3,8 @@ import { FlatTreeControl } from '@angular/cdk/tree';
3
3
  import { Injector } from '@angular/core';
4
4
  import { BehaviorSubject, Observable } from 'rxjs';
5
5
  import { OTreeDao } from './o-tree-dao.service';
6
- import { OTreeComponent, OTreeFlatNode } from './o-tree.component';
6
+ import { OTreeComponent } from './o-tree.component';
7
+ import { OTreeFlatNode } from '../../types/tree-flat-node.type';
7
8
  export declare class OTreeDataSource implements DataSource<OTreeFlatNode> {
8
9
  private oTree;
9
10
  private _treeControl;
@@ -1,14 +1,18 @@
1
1
  import { AfterViewInit, ElementRef, Injector, OnInit } from '@angular/core';
2
+ import { Observable } from 'rxjs/internal/Observable';
3
+ import { ServiceResponse } from '../../../interfaces/service-response.interface';
2
4
  import { OFormComponent } from '../../form';
3
5
  import { OTreeComponent } from '../o-tree.component';
6
+ import { OTreeFlatNode } from '../../../types/tree-flat-node.type';
4
7
  import * as i0 from "@angular/core";
5
8
  export declare class OTreeNodeComponent extends OTreeComponent implements OnInit, AfterViewInit {
6
9
  injector: Injector;
7
- oTree: OTreeComponent;
10
+ parentComponent: OTreeComponent;
8
11
  parentNode: OTreeNodeComponent;
9
- constructor(injector: Injector, elRef: ElementRef, form: OFormComponent, oTree: OTreeComponent, parentNode: OTreeNodeComponent);
12
+ constructor(injector: Injector, elementRef: ElementRef, form: OFormComponent, parentComponent: OTreeComponent, parentNode: OTreeNodeComponent);
10
13
  ngOnInit(): void;
11
14
  ngAfterViewInit(): void;
15
+ childQueryData(node: OTreeFlatNode): Observable<ServiceResponse> | Observable<any>;
12
16
  static ɵfac: i0.ɵɵFactoryDeclaration<OTreeNodeComponent, [null, null, { optional: true; }, { optional: true; }, { optional: true; skipSelf: true; }]>;
13
17
  static ɵcmp: i0.ɵɵComponentDeclaration<OTreeNodeComponent, "o-tree-node", never, {}, {}, never, never, false, never>;
14
18
  }
@@ -6,3 +6,4 @@ export * from './o-tab-group.directive';
6
6
  export * from './o-file-drag-and-drop.directive';
7
7
  export * from './o-mat-prefix.directive';
8
8
  export * from './o-mat-suffix.directive';
9
+ export * from './input-regulate.directive';
@@ -0,0 +1,23 @@
1
+ import { ElementRef, OnInit, Renderer2 } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class InputRegulateDirective implements ControlValueAccessor, OnInit {
5
+ private readonly elementRef;
6
+ private readonly renderer;
7
+ private onChange;
8
+ private onTouched;
9
+ private value;
10
+ oInputRegulatePattern: string;
11
+ regExpattern: RegExp;
12
+ constructor(elementRef: ElementRef, renderer: Renderer2);
13
+ ngOnInit(): void;
14
+ onInputChange(value: string): void;
15
+ onBlur(): void;
16
+ private updateTextInput;
17
+ registerOnChange(fn: any): void;
18
+ registerOnTouched(fn: any): void;
19
+ setDisabledState(isDisabled: boolean): void;
20
+ writeValue(value: any): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputRegulateDirective, never>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InputRegulateDirective, "[oInputRegulate]", never, { "oInputRegulatePattern": "oInputRegulatePattern"; }, {}, never, never, false, never>;
23
+ }
@@ -114,6 +114,7 @@ export declare const MAP: {
114
114
  'MESSAGES.ERROR_403_TEXT': string;
115
115
  'MESSAGES.ERROR_403_TEXT_BUTTON': string;
116
116
  'MESSAGES.AVOID_QUERY_WITHOUT_QUICKFILTER_COLUMNS': string;
117
+ 'MESSAGES.OPERATION_NOT_ALLOWED_READONLY': string;
117
118
  'INPUT.COMBO.EMPTY': string;
118
119
  'INPUT.COMBO.MESSAGE_TRIGGER': string;
119
120
  'TABLE.FILTER_BY_COLUMN.CHECK_ALL': string;
@@ -296,6 +297,15 @@ export declare const MAP: {
296
297
  'TREE.BUTTONS.SELECT': string;
297
298
  'REPORT.COLUMN.TRUEVALUE': string;
298
299
  'REPORT.COLUMN.FALSEVALUE': string;
300
+ 'EXPORT.DIALOG.COLUMNS': string;
301
+ 'EXPORT.DIALOG.EXPORT_FORMAT': string;
302
+ 'EXPORT.DIALOG.ORIENTATION': string;
303
+ 'EXPORT.DIALOG.VERTICAL': string;
304
+ 'EXPORT.DIALOG.HORIZONTAL': string;
305
+ 'EXPORT.DIALOG.FILE_NAME': string;
306
+ 'EXPORT.DIALOG.EXPORT_BUTTON': string;
307
+ 'EXPORT.DIALOG.ADVANCED_OPTIONS': string;
308
+ 'EXPORT.DIALOG.FILE_NAME.PLACEHOLDER': string;
299
309
  };
300
310
  es: {
301
311
  LANGUAGE: string;
@@ -406,6 +416,7 @@ export declare const MAP: {
406
416
  'MESSAGES.ERROR_EXPORT_TABLE_DATA': string;
407
417
  'MESSAGES.SUCCESS_EXPORT_TABLE_DATA': string;
408
418
  'MESSAGES.OPERATION_NOT_ALLOWED_PERMISSION': string;
419
+ 'MESSAGES.OPERATION_NOT_ALLOWED_READONLY': string;
409
420
  'MESSAGES.NAVIGATION_NOT_ALLOWED_PERMISSION': string;
410
421
  'MESSAGES.NAVIGATION_REDIRECTED_PERMISSION': string;
411
422
  'MESSAGES.ERROR_403_TEXT': string;
@@ -585,6 +596,15 @@ export declare const MAP: {
585
596
  'TREE.BUTTONS.SELECT': string;
586
597
  'REPORT.COLUMN.TRUEVALUE': string;
587
598
  'REPORT.COLUMN.FALSEVALUE': string;
599
+ 'EXPORT.DIALOG.COLUMNS': string;
600
+ 'EXPORT.DIALOG.EXPORT_FORMAT': string;
601
+ 'EXPORT.DIALOG.ORIENTATION': string;
602
+ 'EXPORT.DIALOG.VERTICAL': string;
603
+ 'EXPORT.DIALOG.HORIZONTAL': string;
604
+ 'EXPORT.DIALOG.FILE_NAME': string;
605
+ 'EXPORT.DIALOG.EXPORT_BUTTON': string;
606
+ 'EXPORT.DIALOG.ADVANCED_OPTIONS': string;
607
+ 'EXPORT.DIALOG.FILE_NAME.PLACEHOLDER': string;
588
608
  };
589
609
  pt: {
590
610
  LANGUAGE: string;
@@ -694,6 +714,7 @@ export declare const MAP: {
694
714
  'MESSAGES.ERROR_EXPORT_TABLE_DATA': string;
695
715
  'MESSAGES.SUCCESS_EXPORT_TABLE_DATA': string;
696
716
  'MESSAGES.OPERATION_NOT_ALLOWED_PERMISSION': string;
717
+ 'MESSAGES.OPERATION_NOT_ALLOWED_READONLY': string;
697
718
  'MESSAGES.NAVIGATION_NOT_ALLOWED_PERMISSION': string;
698
719
  'MESSAGES.NAVIGATION_REDIRECTED_PERMISSION': string;
699
720
  'MESSAGES.ERROR_403_TEXT': string;
@@ -2,5 +2,5 @@ import { Observable } from 'rxjs';
2
2
  export interface IExportService {
3
3
  getDefaultServiceConfiguration(serviceName?: string): any;
4
4
  configureService(config: any): void;
5
- exportData(format: string): Observable<any>;
5
+ exportData(format: string, columns?: string[], landscape?: boolean, filename?: string): Observable<any>;
6
6
  }
@@ -3,4 +3,5 @@ import type { OFormLayoutDialogComponent } from '../layouts/form-layout/dialog/o
3
3
  export interface ILayoutManagerComponent {
4
4
  oFormLayoutDialog: OFormLayoutDialogComponent;
5
5
  elementRef: ElementRef;
6
+ parentComponent: any;
6
7
  }
@@ -25,6 +25,8 @@ export declare abstract class OFormLayoutManagerBase {
25
25
  abstract getRouteOfActiveItem(): any[];
26
26
  abstract isMainComponent(comp: ILayoutManagerComponent): boolean;
27
27
  abstract isTabMode(): boolean;
28
+ abstract isSplitPaneMode(): boolean;
29
+ abstract isDialogMode(): boolean;
28
30
  abstract setAsActiveFormLayoutManager(): any;
29
31
  abstract hasToConfirmExit(data: FormLayoutDetailComponentData, options?: FormLayoutCloseDetailOptions): boolean;
30
32
  abstract setModifiedState(formAttr: string, modified: boolean, confirmExit: boolean): any;
@@ -14,6 +14,7 @@ import { OTranslateService } from '../../services/translate/o-translate.service'
14
14
  import { FormLayoutCloseDetailOptions, FormLayoutDetailComponentData } from '../../types/form-layout-detail-component-data.type';
15
15
  import { OFormLayoutDialogComponent } from './dialog/o-form-layout-dialog.component';
16
16
  import { OFormLayoutManagerBase } from './o-form-layout-manager-base.class';
17
+ import { OFormLayoutManagerContext } from '../../types/form-layout-manager-context.type';
17
18
  import * as i0 from "@angular/core";
18
19
  export declare const DEFAULT_INPUTS_O_FORM_LAYOUT_MANAGER: string[];
19
20
  export declare const DEFAULT_OUTPUTS_O_FORM_LAYOUT_MANAGER: string[];
@@ -95,7 +96,7 @@ export declare class OFormLayoutManagerComponent implements AfterViewInit, OnIni
95
96
  isDialogMode(): boolean;
96
97
  isTabMode(): boolean;
97
98
  isSplitPaneMode(): boolean;
98
- addDetailComponent(childRoute: ActivatedRouteSnapshot, url: string): void;
99
+ addDetailComponent(childRoute: ActivatedRouteSnapshot, url: string, context?: OFormLayoutManagerContext): void;
99
100
  closeDetail(options?: FormLayoutCloseDetailOptions): void;
100
101
  closeDetails(detailsData?: any[], options?: FormLayoutCloseDetailOptions): void;
101
102
  openFormLayoutDialog(detailComp: FormLayoutDetailComponentData): void;
@@ -1,15 +1,19 @@
1
1
  import { Injector } from '@angular/core';
2
- import { OFormLayoutManagerComponent } from '../layouts/form-layout/o-form-layout-manager.component';
2
+ import type { OFormLayoutManagerComponent } from '../layouts/form-layout/o-form-layout-manager.component';
3
+ import { OFormLayoutManagerContext } from '../types/form-layout-manager-context.type';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class OFormLayoutManagerService {
5
6
  protected injector: Injector;
6
7
  protected registeredFormLayoutManagers: {};
7
8
  protected _activeFormLayoutManager: OFormLayoutManagerComponent;
9
+ private _context;
8
10
  constructor(injector: Injector);
9
11
  registerFormLayoutManager(comp: OFormLayoutManagerComponent): void;
10
12
  removeFormLayoutManager(comp: OFormLayoutManagerComponent): void;
11
13
  get activeFormLayoutManager(): OFormLayoutManagerComponent;
12
14
  set activeFormLayoutManager(arg: OFormLayoutManagerComponent);
15
+ set context(value: OFormLayoutManagerContext);
16
+ get context(): OFormLayoutManagerContext;
13
17
  static ɵfac: i0.ɵɵFactoryDeclaration<OFormLayoutManagerService, never>;
14
18
  static ɵprov: i0.ɵɵInjectableDeclaration<OFormLayoutManagerService>;
15
19
  }
@@ -13,7 +13,7 @@ export declare class OntimizeExportService3X extends OntimizeBaseService impleme
13
13
  constructor(injector: Injector);
14
14
  configureService(config: any): void;
15
15
  protected buildHeaders(): HttpHeaders;
16
- exportData(format: string): Observable<any>;
16
+ exportData(format: string, columns?: string[], landscape?: boolean, filename?: string): Observable<any>;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<OntimizeExportService3X, never>;
18
18
  static ɵprov: i0.ɵɵInjectableDeclaration<OntimizeExportService3X>;
19
19
  }