ontimize-web-ngx 15.0.0-beta.1 → 15.0.0-beta.2

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 (57) hide show
  1. package/esm2020/lib/components/app-sidenav/o-app-sidenav.component.mjs +2 -2
  2. package/esm2020/lib/components/button-toggle/o-button-toggle-group/o-button-toggle-group.component.mjs +13 -15
  3. package/esm2020/lib/components/card-menu-item/o-card-menu-item.component.mjs +6 -8
  4. package/esm2020/lib/components/form/navigation/o-form.navigation.class.mjs +2 -2
  5. package/esm2020/lib/components/form-container/o-form-container.component.mjs +6 -8
  6. package/esm2020/lib/components/index.mjs +2 -3
  7. package/esm2020/lib/components/o-service-base-component.class.mjs +1 -1
  8. package/esm2020/lib/components/o-service-component.class.mjs +2 -1
  9. package/esm2020/lib/components/table/column/calculated/o-table-column-calculated.component.mjs +6 -7
  10. package/esm2020/lib/components/table/column/o-table-column.component.mjs +123 -129
  11. package/esm2020/lib/components/table/extensions/default-o-table.datasource.mjs +46 -9
  12. package/esm2020/lib/components/table/extensions/dialog/filter-by-column/o-table-filter-by-column-data-dialog.component.mjs +3 -3
  13. package/esm2020/lib/components/table/extensions/header/table-insertable-row/o-table-insertable-row.component.mjs +6 -7
  14. package/esm2020/lib/components/table/extensions/header/table-quickfilter/o-table-quickfilter.component.mjs +4 -4
  15. package/esm2020/lib/components/table/o-table.component.mjs +12 -13
  16. package/esm2020/lib/components/user-info/index.mjs +5 -0
  17. package/esm2020/lib/components/user-info/o-user-info.module.mjs +3 -3
  18. package/esm2020/lib/interfaces/o-table-column.interface.mjs +1 -1
  19. package/esm2020/lib/layouts/form-layout/dialog/o-form-layout-dialog.component.mjs +20 -22
  20. package/esm2020/lib/layouts/form-layout/dialog/options/o-form-layout-dialog-options.directive.mjs +7 -3
  21. package/esm2020/lib/layouts/form-layout/o-form-layout-manager.component.mjs +10 -4
  22. package/esm2020/lib/layouts/form-layout/split-pane/o-form-layout-split-pane.component.mjs +8 -9
  23. package/esm2020/lib/layouts/form-layout/tabgroup/o-form-layout-tabgroup.component.mjs +6 -8
  24. package/esm2020/lib/services/o-error-dialog-manager.service.mjs +8 -4
  25. package/esm2020/lib/services/translate/o-translate.service.mjs +3 -2
  26. package/esm2020/lib/util/util.mjs +5 -1
  27. package/fesm2015/ontimize-web-ngx.mjs +261 -227
  28. package/fesm2015/ontimize-web-ngx.mjs.map +1 -1
  29. package/fesm2020/ontimize-web-ngx.mjs +261 -227
  30. package/fesm2020/ontimize-web-ngx.mjs.map +1 -1
  31. package/lib/components/button-toggle/o-button-toggle-group/o-button-toggle-group.component.d.ts +1 -3
  32. package/lib/components/card-menu-item/o-card-menu-item.component.d.ts +2 -3
  33. package/lib/components/form-container/o-form-container.component.d.ts +1 -3
  34. package/lib/components/index.d.ts +1 -2
  35. package/lib/components/table/column/calculated/o-table-column-calculated.component.d.ts +2 -3
  36. package/lib/components/table/column/o-table-column.component.d.ts +3 -4
  37. package/lib/components/table/extensions/default-o-table.datasource.d.ts +1 -0
  38. package/lib/components/table/extensions/header/table-insertable-row/o-table-insertable-row.component.d.ts +2 -3
  39. package/lib/components/table/o-table.component.d.ts +5 -6
  40. package/lib/components/user-info/index.d.ts +4 -0
  41. package/lib/components/user-info/o-user-info.module.d.ts +1 -1
  42. package/lib/interfaces/o-table-column.interface.d.ts +2 -2
  43. package/lib/layouts/form-layout/dialog/o-form-layout-dialog.component.d.ts +4 -4
  44. package/lib/layouts/form-layout/dialog/options/o-form-layout-dialog-options.directive.d.ts +3 -1
  45. package/lib/layouts/form-layout/o-form-layout-manager.component.d.ts +2 -1
  46. package/lib/layouts/form-layout/split-pane/o-form-layout-split-pane.component.d.ts +2 -3
  47. package/lib/layouts/form-layout/tabgroup/o-form-layout-tabgroup.component.d.ts +2 -3
  48. package/lib/services/o-error-dialog-manager.service.d.ts +2 -2
  49. package/lib/services/translate/o-translate.service.d.ts +1 -0
  50. package/lib/util/util.d.ts +1 -0
  51. package/package.json +1 -1
  52. package/theme.scss +12 -16
  53. package/theming/ontimize-style-v8.scss +22 -0
  54. package/theming/ontimize-style.scss +2 -1
  55. package/theming/styles/ontimize-v8/o-form-field-style.scss +20 -13
  56. package/theming/styles/ontimize-v8/variables.scss +4 -1
  57. package/theming/themes/ontimize-blue.scss +6 -3
@@ -1,11 +1,10 @@
1
- import { AfterViewInit, ComponentFactoryResolver, EventEmitter, OnInit, QueryList, ViewContainerRef } from '@angular/core';
1
+ import { AfterViewInit, EventEmitter, OnInit, QueryList, ViewContainerRef } from '@angular/core';
2
2
  import { MatButtonToggleChange, MatButtonToggleGroup } from '@angular/material/button-toggle';
3
3
  import { OButtonToggleComponent } from '../o-button-toggle.component';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare const DEFAULT_INPUTS_O_BUTTON_TOGGLE_GROUP: string[];
6
6
  export declare const DEFAULT_OUTPUTS_O_BUTTON_TOGGLE_GROUP: string[];
7
7
  export declare class OButtonToggleGroupComponent implements AfterViewInit, OnInit {
8
- protected resolver: ComponentFactoryResolver;
9
8
  DEFAULT_INPUTS_O_BUTTON_TOGGLE_GROUP: string[];
10
9
  DEFAULT_OUTPUTS_O_BUTTON_TOGGLE_GROUP: string[];
11
10
  protected oattr: string;
@@ -20,7 +19,6 @@ export declare class OButtonToggleGroupComponent implements AfterViewInit, OnIni
20
19
  protected _innerButtonToggleGroup: MatButtonToggleGroup;
21
20
  protected _viewContainerRef: ViewContainerRef;
22
21
  protected _children: QueryList<OButtonToggleComponent>;
23
- constructor(resolver: ComponentFactoryResolver);
24
22
  ngOnInit(): void;
25
23
  ngAfterViewInit(): void;
26
24
  protected buildChildren(): void;
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ChangeDetectorRef, ComponentFactoryResolver, ElementRef, Injector, OnDestroy, QueryList, ViewContainerRef } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, Injector, OnDestroy, QueryList, ViewContainerRef } from '@angular/core';
2
2
  import { ActivatedRoute, Router } from '@angular/router';
3
3
  import { Subscription } from 'rxjs';
4
4
  import { OTranslateService } from '../../services/translate/o-translate.service';
@@ -9,7 +9,6 @@ export declare class OCardMenuItemComponent implements AfterViewInit, OnDestroy
9
9
  protected injector: Injector;
10
10
  protected router: Router;
11
11
  protected actRoute: ActivatedRoute;
12
- protected resolver: ComponentFactoryResolver;
13
12
  protected cd: ChangeDetectorRef;
14
13
  protected elRef: ElementRef;
15
14
  title: string;
@@ -31,7 +30,7 @@ export declare class OCardMenuItemComponent implements AfterViewInit, OnDestroy
31
30
  protected translateServiceSubscription: Subscription;
32
31
  secondaryContent: QueryList<any>;
33
32
  protected _showSecondaryContainer: boolean;
34
- constructor(injector: Injector, router: Router, actRoute: ActivatedRoute, resolver: ComponentFactoryResolver, cd: ChangeDetectorRef, elRef: ElementRef);
33
+ constructor(injector: Injector, router: Router, actRoute: ActivatedRoute, cd: ChangeDetectorRef, elRef: ElementRef);
35
34
  ngAfterViewInit(): void;
36
35
  ngOnDestroy(): void;
37
36
  useImage(): boolean;
@@ -1,17 +1,15 @@
1
- import { AfterViewInit, ComponentFactoryResolver, ViewContainerRef } from '@angular/core';
1
+ import { AfterViewInit, ViewContainerRef } from '@angular/core';
2
2
  import { OFormBase } from '../form/o-form-base.class';
3
3
  import { OFormLayoutManagerBase } from '../../layouts/form-layout/o-form-layout-manager-base.class';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare const DEFAULT_INPUTS_O_FORM_CONTAINER: string[];
6
6
  export declare class OFormContainerComponent implements AfterViewInit {
7
- private resolver;
8
7
  breadContainer: ViewContainerRef;
9
8
  breadcrumb: boolean;
10
9
  breadcrumbLabelColumns: string;
11
10
  breadcrumbSeparator: string;
12
11
  protected form: OFormBase;
13
12
  protected formMananger: OFormLayoutManagerBase;
14
- constructor(resolver: ComponentFactoryResolver);
15
13
  ngAfterViewInit(): void;
16
14
  setForm(form: OFormBase): void;
17
15
  createBreadcrumb(container: ViewContainerRef): void;
@@ -36,8 +36,7 @@ export * from './o-service-base-component.class';
36
36
  export * from './o-service-component.class';
37
37
  export * from './o-value-change-event.class';
38
38
  export * from './table/index';
39
- export * from './user-info/o-user-info.component';
40
- export * from './user-info/o-user-info.module';
39
+ export * from './user-info/index';
41
40
  export * from './dual-list-selector/index';
42
41
  export * from './o-data-toolbar/index';
43
42
  export * from './expandable-container/o-expandable-container.component';
@@ -1,4 +1,4 @@
1
- import { ComponentFactoryResolver, Injector } from '@angular/core';
1
+ import { Injector } from '@angular/core';
2
2
  import { OTableColumnCalculated } from '../../../../interfaces/o-table-column-calculated.interface';
3
3
  import { OperatorFunction } from '../../../../types/operation-function.type';
4
4
  import { OTableComponent } from '../../o-table.component';
@@ -7,11 +7,10 @@ import * as i0 from "@angular/core";
7
7
  export declare const DEFAULT_INPUTS_O_TABLE_COLUMN_CALCULATED: string[];
8
8
  export declare class OTableColumnCalculatedComponent extends OTableColumnComponent implements OTableColumnCalculated {
9
9
  table: OTableComponent;
10
- protected resolver: ComponentFactoryResolver;
11
10
  protected injector: Injector;
12
11
  operation: string;
13
12
  functionOperation: OperatorFunction;
14
- constructor(table: OTableComponent, resolver: ComponentFactoryResolver, injector: Injector);
13
+ constructor(table: OTableComponent, injector: Injector);
15
14
  static ɵfac: i0.ɵɵFactoryDeclaration<OTableColumnCalculatedComponent, never>;
16
15
  static ɵcmp: i0.ɵɵComponentDeclaration<OTableColumnCalculatedComponent, "o-table-column-calculated", never, { "operation": "operation"; "functionOperation": "operation-function"; }, {}, never, never, false, never>;
17
16
  }
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ComponentFactoryResolver, EventEmitter, Injector, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
1
+ import { AfterViewInit, EventEmitter, Injector, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
2
2
  import { AsyncValidatorFn, ValidatorFn } from '@angular/forms';
3
3
  import { OTableColumn } from '../../../interfaces/o-table-column.interface';
4
4
  import { OPercentageValueBaseType } from '../../../pipes/o-percentage.pipe';
@@ -12,7 +12,6 @@ export declare const DEFAULT_INPUTS_O_TABLE_COLUMN: string[];
12
12
  export declare const DEFAULT_OUTPUTS_O_TABLE_COLUMN: string[];
13
13
  export declare class OTableColumnComponent implements OTableColumn, OnDestroy, OnInit, AfterViewInit {
14
14
  table: OTableComponent;
15
- protected resolver: ComponentFactoryResolver;
16
15
  protected injector: Injector;
17
16
  renderer: any;
18
17
  editor: any;
@@ -104,7 +103,7 @@ export declare class OTableColumnComponent implements OTableColumn, OnDestroy, O
104
103
  asyncLoad: boolean;
105
104
  container: ViewContainerRef;
106
105
  private subscriptions;
107
- constructor(table: OTableComponent, resolver: ComponentFactoryResolver, injector: Injector);
106
+ constructor(table: OTableComponent, injector: Injector);
108
107
  static addEditor(type: string, editorClassReference: any): void;
109
108
  ngOnInit(): void;
110
109
  ngAfterViewInit(): void;
@@ -112,7 +111,7 @@ export declare class OTableColumnComponent implements OTableColumn, OnDestroy, O
112
111
  parseTitleAlign(): string;
113
112
  get originalWidth(): string;
114
113
  protected createRenderer(): void;
115
- buildCellEditor(type: string, resolver: ComponentFactoryResolver, container: ViewContainerRef, propsOrigin: any, registerInColumn?: boolean): any;
114
+ buildCellEditor(type: string, container: ViewContainerRef, propsOrigin: any, registerInColumn?: boolean): any;
116
115
  protected createEditor(): void;
117
116
  registerRenderer(renderer: any): void;
118
117
  registerEditor(editor: any): void;
@@ -63,6 +63,7 @@ export declare class DefaultOTableDataSource extends DataSource<any> implements
63
63
  get sqlTypes(): any;
64
64
  protected getData(): any[];
65
65
  getRenderedData(data: any[]): any[];
66
+ getDataToSort(data: any[]): any[];
66
67
  protected getAllData(usingRendererers?: boolean, onlyVisibleColumns?: boolean): {}[];
67
68
  private getRenderersData;
68
69
  getColumnData(ocolumn: string): {}[];
@@ -1,4 +1,4 @@
1
- import { ComponentFactoryResolver, EventEmitter, Injector, OnInit } from '@angular/core';
1
+ import { EventEmitter, Injector, OnInit } from '@angular/core';
2
2
  import { UntypedFormControl, ValidatorFn } from '@angular/forms';
3
3
  import { SnackBarService } from '../../../../../services/snackbar.service';
4
4
  import { OTranslateService } from '../../../../../services/translate/o-translate.service';
@@ -10,7 +10,6 @@ export declare const DEFAULT_OUTPUTS_O_TABLE_INSERTABLE_ROW: string[];
10
10
  export declare class OTableInsertableRowComponent implements OnInit {
11
11
  protected injector: Injector;
12
12
  protected table: OTableComponent;
13
- protected resolver: ComponentFactoryResolver;
14
13
  static AVAILABLE_ROW_POSITIONS: string[];
15
14
  static DEFAULT_ROW_POSITION: string;
16
15
  protected columns: string;
@@ -28,7 +27,7 @@ export declare class OTableInsertableRowComponent implements OnInit {
28
27
  protected controls: any;
29
28
  translateService: OTranslateService;
30
29
  snackBarService: SnackBarService;
31
- constructor(injector: Injector, table: OTableComponent, resolver: ComponentFactoryResolver);
30
+ constructor(injector: Injector, table: OTableComponent);
32
31
  ngOnInit(): void;
33
32
  isFirstRow(): boolean;
34
33
  isColumnInsertable(column: OColumn): boolean;
@@ -1,13 +1,13 @@
1
1
  import { SelectionModel } from '@angular/cdk/collections';
2
- import { DomPortalOutlet } from '@angular/cdk/portal';
3
2
  import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
4
- import { AfterContentInit, AfterViewInit, ApplicationRef, ComponentFactoryResolver, ElementRef, EventEmitter, Injector, OnDestroy, OnInit, QueryList, SimpleChange, TemplateRef, ViewContainerRef } from '@angular/core';
3
+ import { AfterContentInit, AfterViewInit, ApplicationRef, ElementRef, EventEmitter, Injector, OnDestroy, OnInit, QueryList, SimpleChange, TemplateRef, ViewContainerRef } from '@angular/core';
5
4
  import { MatCheckboxChange } from '@angular/material/checkbox';
6
5
  import { MatDialog } from '@angular/material/dialog';
7
6
  import { MatMenu } from '@angular/material/menu';
8
7
  import { PageEvent } from '@angular/material/paginator';
9
8
  import { MatTab, MatTabGroup } from '@angular/material/tabs';
10
9
  import { Observable, Subscription } from 'rxjs';
10
+ import { DomPortalOutlet } from '@angular/cdk/portal';
11
11
  import type { OTableButton } from '../../interfaces/o-table-button.interface';
12
12
  import type { OTableButtons } from '../../interfaces/o-table-buttons.interface';
13
13
  import type { OTableColumnsGrouping } from '../../interfaces/o-table-columns-grouping-interface';
@@ -60,7 +60,6 @@ export declare class OTableComponent extends AbstractOServiceComponent<OTableCom
60
60
  protected dialog: MatDialog;
61
61
  private _viewContainerRef;
62
62
  private appRef;
63
- private _componentFactoryResolver;
64
63
  readonly scrollStrategy: OTableVirtualScrollStrategy;
65
64
  static DEFAULT_BASE_SIZE_SPINNER: number;
66
65
  static FIRST_LAST_CELL_PADDING: number;
@@ -216,7 +215,7 @@ export declare class OTableComponent extends AbstractOServiceComponent<OTableCom
216
215
  oTableColumnsGroupingComponent: OTableColumnsGrouping;
217
216
  contextMenuContentChild: OTableContextMenuComponent;
218
217
  protected triggerSelectionEvents: boolean;
219
- constructor(injector: Injector, elRef: ElementRef, dialog: MatDialog, _viewContainerRef: ViewContainerRef, appRef: ApplicationRef, _componentFactoryResolver: ComponentFactoryResolver, form: OFormComponent, scrollStrategy: OTableVirtualScrollStrategy);
218
+ constructor(injector: Injector, elRef: ElementRef, dialog: MatDialog, _viewContainerRef: ViewContainerRef, appRef: ApplicationRef, form: OFormComponent, scrollStrategy: OTableVirtualScrollStrategy);
220
219
  private getGlobalConfig;
221
220
  get state(): OTableComponentStateClass;
222
221
  ngOnInit(): void;
@@ -426,7 +425,7 @@ export declare class OTableComponent extends AbstractOServiceComponent<OTableCom
426
425
  reinitializeSortColumns(sortColumns?: SQLOrder[]): void;
427
426
  protected refreshSortHeaders(): void;
428
427
  getQuickFilterValue(): string;
429
- protected queryCellRenderers(): Observable<any>;
428
+ queryCellRenderers(): Observable<any>;
430
429
  tableQuickFilterChanged(value: string): void;
431
430
  filterData(value?: string, loadMore?: boolean): void;
432
431
  setOTableColumnsGrouping(value: OTableColumnsGrouping): void;
@@ -441,7 +440,7 @@ export declare class OTableComponent extends AbstractOServiceComponent<OTableCom
441
440
  resetColumnsWidth(): void;
442
441
  updateColumnsDOMWidth(): void;
443
442
  isDisableCheckbox(item: any): boolean;
444
- static ɵfac: i0.ɵɵFactoryDeclaration<OTableComponent, [null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
443
+ static ɵfac: i0.ɵɵFactoryDeclaration<OTableComponent, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
445
444
  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"; }, { "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>;
446
445
  }
447
446
  export {};
@@ -0,0 +1,4 @@
1
+ export * from './o-user-info.component';
2
+ export * from './user-info-configuration/o-user-info-configuration.directive';
3
+ export * from './user-info-configuration-item/o-user-info-configuration-item.directive';
4
+ export * from './o-user-info.module';
@@ -7,6 +7,6 @@ import * as i5 from "../../shared/shared.module";
7
7
  import * as i6 from "@angular/router";
8
8
  export declare class OUserInfoModule {
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<OUserInfoModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<OUserInfoModule, [typeof i1.OUserInfoComponent, typeof i2.OUserInfoConfigurationDirective, typeof i3.OUserInfoConfigurationItemDirective], [typeof i4.CommonModule, typeof i5.OSharedModule, typeof i6.RouterModule], [typeof i1.OUserInfoComponent]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<OUserInfoModule, [typeof i1.OUserInfoComponent, typeof i2.OUserInfoConfigurationDirective, typeof i3.OUserInfoConfigurationItemDirective], [typeof i4.CommonModule, typeof i5.OSharedModule, typeof i6.RouterModule], [typeof i1.OUserInfoComponent, typeof i2.OUserInfoConfigurationDirective, typeof i3.OUserInfoConfigurationItemDirective]>;
11
11
  static ɵinj: i0.ɵɵInjectorDeclaration<OUserInfoModule>;
12
12
  }
@@ -1,4 +1,4 @@
1
- import { ComponentFactoryResolver, ViewContainerRef } from '@angular/core';
1
+ import { ViewContainerRef } from '@angular/core';
2
2
  import { AsyncValidatorFn, ValidatorFn } from '@angular/forms';
3
3
  import { OTableComponent } from '../components/table/o-table.component';
4
4
  import { Expression } from '../types/expression.type';
@@ -32,7 +32,7 @@ export interface OTableColumn {
32
32
  tooltipFunction: (rowData: any) => any;
33
33
  filterExpressionFunction: (columnAttr: string, quickFilter?: string) => Expression;
34
34
  getSQLType: () => number;
35
- buildCellEditor: (type: string, resolver: ComponentFactoryResolver, container: ViewContainerRef, propsOrigin: any, registerInColumn?: boolean) => any;
35
+ buildCellEditor: (type: string, container: ViewContainerRef, propsOrigin: any, registerInColumn?: boolean) => any;
36
36
  registerEditor: (editor: any) => void;
37
37
  registerRenderer: (editor: any) => void;
38
38
  }
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ComponentFactory, ComponentFactoryResolver, Injector } from '@angular/core';
1
+ import { AfterViewInit, Injector } from '@angular/core';
2
2
  import { MatDialogRef } from '@angular/material/dialog';
3
3
  import { ILayoutManagerComponent } from '../../../interfaces/layout-manager-component.interface';
4
4
  import { OFormLayoutManagerMode } from '../../../interfaces/o-form-layout-manager-mode.interface';
@@ -9,7 +9,6 @@ import * as i0 from "@angular/core";
9
9
  export declare class OFormLayoutDialogComponent implements OFormLayoutManagerMode, AfterViewInit {
10
10
  dialogRef: MatDialogRef<OFormLayoutDialogComponent>;
11
11
  protected injector: Injector;
12
- protected componentFactoryResolver: ComponentFactoryResolver;
13
12
  formLayoutManager: OFormLayoutManagerBase;
14
13
  queryParams: any;
15
14
  params: object;
@@ -17,10 +16,11 @@ export declare class OFormLayoutDialogComponent implements OFormLayoutManagerMod
17
16
  label: string;
18
17
  title: string;
19
18
  data: any;
20
- protected componentFactory: ComponentFactory<any>;
19
+ dialogTitleSeparator: string;
20
+ protected component: any;
21
21
  protected dialogService: DialogService;
22
22
  contentDirective: OFormLayoutManagerContentDirective;
23
- constructor(dialogRef: MatDialogRef<OFormLayoutDialogComponent>, injector: Injector, componentFactoryResolver: ComponentFactoryResolver, data: any);
23
+ constructor(dialogRef: MatDialogRef<OFormLayoutDialogComponent>, injector: Injector, data: any);
24
24
  ngAfterViewInit(): void;
25
25
  updateNavigation(data: any): void;
26
26
  updateActiveData(data: any): void;
@@ -21,6 +21,7 @@ export declare class OFormLayoutDialogOptionsDirective {
21
21
  title: string;
22
22
  labelColumns: string;
23
23
  separator: string;
24
+ dialogTitleSeparator: any;
24
25
  getOptions(): {
25
26
  width: string;
26
27
  minWidth: string | number;
@@ -36,7 +37,8 @@ export declare class OFormLayoutDialogOptionsDirective {
36
37
  title: string;
37
38
  labelColumns: string;
38
39
  separator: string;
40
+ dialogTitleSeparator: any;
39
41
  };
40
42
  static ɵfac: i0.ɵɵFactoryDeclaration<OFormLayoutDialogOptionsDirective, never>;
41
- static ɵdir: i0.ɵɵDirectiveDeclaration<OFormLayoutDialogOptionsDirective, "o-form-layout-dialog-options, o-form-layout-manager[mode=\"dialog\"]", never, { "width": "width"; "minWidth": "min-width"; "maxWidth": "max-width"; "height": "height"; "minHeight": "min-height"; "maxHeight": "max-height"; "class": "class"; "position": "position"; "backdropClass": "backdrop-class"; "closeOnNavigation": "close-on-navigation"; "disableClose": "disable-close"; "title": "title"; "labelColumns": "label-columns"; "separator": "separator"; }, {}, never, never, false, never>;
43
+ static ɵdir: i0.ɵɵDirectiveDeclaration<OFormLayoutDialogOptionsDirective, "o-form-layout-dialog-options, o-form-layout-manager[mode=\"dialog\"]", never, { "width": "width"; "minWidth": "min-width"; "maxWidth": "max-width"; "height": "height"; "minHeight": "min-height"; "maxHeight": "max-height"; "class": "class"; "position": "position"; "backdropClass": "backdrop-class"; "closeOnNavigation": "close-on-navigation"; "disableClose": "disable-close"; "title": "title"; "labelColumns": "label-columns"; "separator": "separator"; "dialogTitleSeparator": "dialog-title-separator"; }, {}, never, never, false, never>;
42
44
  }
@@ -46,6 +46,7 @@ export declare class OFormLayoutManagerComponent implements AfterViewInit, OnIni
46
46
  dialogMinHeight: string;
47
47
  dialogMaxHeight: string;
48
48
  dialogClass: string;
49
+ dialogTitleSeparator: string;
49
50
  oTabGroup: OFormLayoutManagerMode;
50
51
  dialogRef: MatDialogRef<OFormLayoutDialogComponent>;
51
52
  oSplitPane: OFormLayoutManagerMode;
@@ -121,5 +122,5 @@ export declare class OFormLayoutManagerComponent implements AfterViewInit, OnIni
121
122
  hasToConfirmExit(data: FormLayoutDetailComponentData, options?: FormLayoutCloseDetailOptions): boolean;
122
123
  getIdOfActiveItem(): string;
123
124
  static ɵfac: i0.ɵɵFactoryDeclaration<OFormLayoutManagerComponent, [null, null, null, null, null, { optional: true; skipSelf: true; }]>;
124
- static ɵcmp: i0.ɵɵComponentDeclaration<OFormLayoutManagerComponent, "o-form-layout-manager", never, { "oattr": "attr"; "mode": "mode"; "storeState": "store-state"; "title": "title"; "labelColumns": "label-columns"; "separator": "separator"; "titleDataOrigin": "title-data-origin"; "dialogWidth": "dialog-width"; "dialogMinWidth": "dialog-min-width"; "dialogMaxWidth": "dialog-max-width"; "dialogHeight": "dialog-height"; "dialogMinHeight": "dialog-min-height"; "dialogMaxHeight dialog-max-height": "dialogMaxHeight dialog-max-height"; "dialogClass": "dialog-class"; }, { "onMainTabSelected": "onMainTabSelected"; "onSelectedTabChange": "onSelectedTabChange"; "onCloseTab": "onCloseTab"; }, never, ["*", "*", "*", "*"], false, never>;
125
+ static ɵcmp: i0.ɵɵComponentDeclaration<OFormLayoutManagerComponent, "o-form-layout-manager", never, { "oattr": "attr"; "mode": "mode"; "storeState": "store-state"; "title": "title"; "labelColumns": "label-columns"; "separator": "separator"; "titleDataOrigin": "title-data-origin"; "dialogWidth": "dialog-width"; "dialogMinWidth": "dialog-min-width"; "dialogMaxWidth": "dialog-max-width"; "dialogHeight": "dialog-height"; "dialogMinHeight": "dialog-min-height"; "dialogMaxHeight dialog-max-height": "dialogMaxHeight dialog-max-height"; "dialogClass": "dialog-class"; "dialogTitleSeparator": "dialog-title-separator"; }, { "onMainTabSelected": "onMainTabSelected"; "onSelectedTabChange": "onSelectedTabChange"; "onCloseTab": "onCloseTab"; }, never, ["*", "*", "*", "*"], false, never>;
125
126
  }
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ComponentFactoryResolver, ElementRef, Injector, OnInit, Renderer2 } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, Injector, OnInit, Renderer2 } from '@angular/core';
2
2
  import { Router } from '@angular/router';
3
3
  import { ResizeEvent } from 'angular-resizable-element';
4
4
  import { BehaviorSubject, Observable } from 'rxjs';
@@ -15,7 +15,6 @@ export declare const DEFAULT_OUTPUTS_O_FORM_LAYOUT_SPLIT_PANE: any[];
15
15
  export declare class OFormLayoutSplitPaneComponent implements OnInit, AfterViewInit, OFormLayoutManagerMode {
16
16
  protected injector: Injector;
17
17
  protected elementRef: ElementRef;
18
- protected componentFactoryResolver: ComponentFactoryResolver;
19
18
  renderer: Renderer2;
20
19
  formLayoutManager: OFormLayoutManagerBase;
21
20
  data: FormLayoutDetailComponentData;
@@ -27,7 +26,7 @@ export declare class OFormLayoutSplitPaneComponent implements OnInit, AfterViewI
27
26
  protected _options: any;
28
27
  set options(value: any);
29
28
  protected dialogService: DialogService;
30
- constructor(injector: Injector, elementRef: ElementRef, componentFactoryResolver: ComponentFactoryResolver, renderer: Renderer2, formLayoutManager: OFormLayoutManagerBase);
29
+ constructor(injector: Injector, elementRef: ElementRef, renderer: Renderer2, formLayoutManager: OFormLayoutManagerBase);
31
30
  get state(): OFormLayoutManagerComponentStateClass;
32
31
  ngOnInit(): void;
33
32
  ngAfterViewInit(): void;
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ComponentFactoryResolver, ElementRef, EventEmitter, Injector, OnDestroy, QueryList, ViewContainerRef } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, EventEmitter, Injector, OnDestroy, QueryList, ViewContainerRef } from '@angular/core';
2
2
  import { MatTabChangeEvent, MatTabGroup } from '@angular/material/tabs';
3
3
  import { Router } from '@angular/router';
4
4
  import { BehaviorSubject, Subject, Subscription } from 'rxjs';
@@ -14,7 +14,6 @@ export declare const DEFAULT_INPUTS_O_FORM_LAYOUT_TABGROUP: string[];
14
14
  export declare const DEFAULT_OUTPUTS_O_FORM_LAYOUT_TABGROUP: string[];
15
15
  export declare class OFormLayoutTabGroupComponent implements OFormLayoutManagerMode, AfterViewInit, OnDestroy {
16
16
  protected injector: Injector;
17
- protected componentFactoryResolver: ComponentFactoryResolver;
18
17
  protected location: ViewContainerRef;
19
18
  protected elementRef: ElementRef;
20
19
  formLayoutManager: OFormLayoutManagerBase;
@@ -34,7 +33,7 @@ export declare class OFormLayoutTabGroupComponent implements OFormLayoutManagerM
34
33
  protected previousSelectedIndex: number;
35
34
  updateTabComponentsState: Subject<any>;
36
35
  tabsModificationsCache: any[];
37
- constructor(injector: Injector, componentFactoryResolver: ComponentFactoryResolver, location: ViewContainerRef, elementRef: ElementRef, formLayoutManager: OFormLayoutManagerBase);
36
+ constructor(injector: Injector, location: ViewContainerRef, elementRef: ElementRef, formLayoutManager: OFormLayoutManagerBase);
38
37
  get state(): OFormLayoutManagerComponentStateClass;
39
38
  ngAfterViewInit(): void;
40
39
  ngOnDestroy(): void;
@@ -3,10 +3,10 @@ import type { ODialogConfig } from '../shared';
3
3
  import { ODialogInternalComponent } from '../shared/components/dialog/o-dialog-internal.component';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class OErrorDialogManager {
6
- protected errorDialogSubscription: Promise<boolean>;
7
6
  protected ng2Dialog: MatDialog;
7
+ protected errorDialogSubscription: Promise<boolean>;
8
8
  dialogRef: MatDialogRef<ODialogInternalComponent>;
9
- constructor();
9
+ constructor(ng2Dialog: MatDialog);
10
10
  protected restart(): void;
11
11
  openErrorDialog(err?: any): Promise<boolean>;
12
12
  protected openDialog(observer: any): void;
@@ -19,6 +19,7 @@ export declare class OTranslateService {
19
19
  protected notFoundLang: Array<string>;
20
20
  protected appConfig: AppConfig;
21
21
  protected existingLangFiles: Array<string>;
22
+ protected defaultLocale: string;
22
23
  constructor(injector: Injector);
23
24
  storeLanguage(language: string): void;
24
25
  getStoredLanguage(): string;
@@ -33,6 +33,7 @@ export declare class Util {
33
33
  static extractPixelsValue(value: any, defaultValue?: number): number;
34
34
  static parseOInputsOptions(elRef: any, oInputsOptions: any): void;
35
35
  static escapeSpecialCharacter(S: string): string;
36
+ static isArrayEqual(array1: Array<any>, array2: Array<any>): boolean;
36
37
  static differenceArrays(array1: Array<any>, array2: Array<any>): Array<any>;
37
38
  static convertToODateValueType(val: any): ODateValueType;
38
39
  static uniqueBy(a: Array<any>, key: any): any[];
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.0.0-beta.1",
4
+ "version": "15.0.0-beta.2",
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.",
package/theme.scss CHANGED
@@ -466,9 +466,6 @@
466
466
  $primary: map.get($theme, primary);
467
467
  $accent: map.get($theme, accent);
468
468
 
469
- /* outline appearance */
470
- $border-radius: 2px;
471
-
472
469
  .mat-mdc-form-field {
473
470
  &.mat-form-field-disabled.accent {
474
471
  @include icon-color-mixin(mat.get-color-from-palette($accent, 0.42));
@@ -490,7 +487,7 @@
490
487
  color: mat.get-color-from-palette($foreground, disabled-button);
491
488
  }
492
489
 
493
- &.mat-form-field-appearance-ontimize.read-only{
490
+ &.mat-form-field-appearance-ontimize.read-only {
494
491
 
495
492
  .mat-mdc-select-disabled .mat-mdc-select-value {
496
493
  color: inherit;
@@ -509,14 +506,6 @@
509
506
  color: mat.get-color-from-palette($warn);
510
507
  }
511
508
 
512
- /* OUTLINE APPEARANCE */
513
- &.mat-form-field-appearance-outline .mdc-text-field--outlined .mdc-notched-outline {
514
-
515
- .mdc-notched-outline__leading,
516
- .mdc-notched-outline__trailing {
517
- border-radius: $border-radius 0 0 $border-radius;
518
- }
519
- }
520
509
  }
521
510
 
522
511
  input:not([type]):disabled,
@@ -539,9 +528,11 @@
539
528
  }
540
529
 
541
530
  .o-tooltip.o-mat-error {
542
- background: mat.get-color-from-palette($primary, default-contrast);
543
- border: 1px solid mat.get-color-from-palette($warn);
544
- color: mat.get-color-from-palette($warn);
531
+ .mdc-tooltip__surface {
532
+ background: mat.get-color-from-palette($primary, default-contrast);
533
+ border: 1px solid mat.get-color-from-palette($warn);
534
+ color: mat.get-color-from-palette($warn);
535
+ }
545
536
  }
546
537
 
547
538
  /* CHECKBOX */
@@ -690,11 +681,16 @@
690
681
  .mat-mdc-dialog-container {
691
682
  .mat-mdc-dialog-title {
692
683
  border-bottom: 1px solid mat.get-color-from-palette($primary);
693
-
694
684
  .mat-icon {
695
685
  color: mat.get-color-from-palette($primary);
696
686
  }
697
687
  }
688
+ @if($typography){
689
+ .mat-mdc-dialog-title {
690
+ line-height: mat.font-size($typography, subtitle-1);
691
+ font-size: mat.font-size($typography, subtitle-1);
692
+ }
693
+ }
698
694
 
699
695
 
700
696
  .empty-filter-list {
@@ -151,6 +151,20 @@ $app-background-color: #eaeaea;
151
151
  .o-app-sidenav {
152
152
  font-weight: 400;
153
153
  color: #aaaaaa;
154
+
155
+ .mat-drawer-closed {
156
+
157
+ .o-app-sidenav-menu-group,
158
+ .o-app-sidenav-menu-item {
159
+ a {
160
+ width: variables.$sidenav-closed-width - variables.$margin-left-buttom;
161
+ max-width: variables.$sidenav-closed-width - variables.$margin-left-buttom;
162
+ min-width: variables.$sidenav-closed-width - variables.$margin-left-buttom;
163
+ padding-left: 4px;
164
+ padding-right: 12px;
165
+ }
166
+ }
167
+ }
154
168
  }
155
169
 
156
170
  /* USER INFO */
@@ -304,4 +318,12 @@ $app-background-color: #eaeaea;
304
318
  o-row.o-row.bg-level-1 {
305
319
  background-color: mat.get-color-from-palette($background, level-1);
306
320
  }
321
+ }
322
+
323
+ @mixin ontimize-theme-all-component-color($theme-or-color-config) {
324
+ $color: map.get($theme-or-color-config, color);
325
+ @include ontimize-theme-styles((color: $color,
326
+ typography: null,
327
+ density: null,
328
+ ));
307
329
  }
@@ -693,11 +693,12 @@ $ontimize-dark-theme-foreground: (base: rgba(white, 0.6),
693
693
  }
694
694
 
695
695
  @if($typography) {
696
+
696
697
  >.o-container-title,
697
698
  >.mat-expansion-panel-header .o-container-title {
698
699
  span {
699
700
  font: {
700
- size: mat.font-size($typography, headline-5);
701
+ size: mat.font-size($typography, headline-6);
701
702
  weight: bold;
702
703
  }
703
704
  }
@@ -1,10 +1,21 @@
1
1
  @use '@angular/material'as mat;
2
-
2
+ @use 'variables.scss';
3
3
 
4
4
  .mat-mdc-form-field {
5
5
 
6
- @include mat.form-field-density(-4);
6
+ @include mat.form-field-density(-2);
7
7
 
8
+ &.mat-form-field-appearance-outline .mdc-notched-outline {
9
+ .mdc-notched-outline__leading {
10
+ border-top-left-radius: variables.$border-radius;
11
+ border-bottom-left-radius: variables.$border-radius;
12
+ }
13
+
14
+ .mdc-notched-outline__trailing {
15
+ border-top-right-radius: variables.$border-radius;
16
+ border-bottom-right-radius: variables.$border-radius;
17
+ }
18
+ }
8
19
 
9
20
  &.icon-field .mat-mdc-form-field-icon-suffix .icon-btn,
10
21
  &.icon-field .mat-mdc-form-field-icon-suffix .mat-icon-button,
@@ -21,10 +32,6 @@
21
32
  }
22
33
  }
23
34
 
24
- .mat-mdc-form-field-subscript-wrapper {
25
- display: none;
26
- }
27
-
28
35
  .mat-mdc-text-field-wrapper {
29
36
  .mat-mdc-form-field-flex {
30
37
  .mat-mdc-form-field-infix {
@@ -40,13 +47,13 @@
40
47
  height: auto;
41
48
  }
42
49
  }
43
-
44
- &:not(.mdc-text-field--outlined) {
45
- .mat-mdc-form-field-infix {
46
- min-height: auto;
47
- padding-top: 14px;
48
- }
49
- }
50
50
  }
51
+
52
+ }
53
+
54
+ .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex:not(.mdc-text-field--outlined) .mat-mdc-form-field-infix,
55
+ .mdc-text-field--no-label:not(.mdc-text-field--outlined):not(.mdc-text-field--textarea) .mat-mdc-form-field-infix {
56
+ padding-bottom: 4px;
57
+ padding-top: 18px;
51
58
  }
52
59
  }
@@ -7,4 +7,7 @@
7
7
  $background-tab-inactive-on-dark: #686868;
8
8
  $background-tab-inactive-on-light: #D7DDE0;
9
9
  /*Application background-color*/
10
- $app-background-color: #eaeaea;
10
+ $app-background-color: #eaeaea;
11
+
12
+ $margin-left-buttom: 8px;
13
+ $sidenav-closed-width: 48px;
@@ -5,14 +5,17 @@
5
5
  /* Color definitions */
6
6
  $mat-custom-primary: (50 : #e3ecf4, 100 : #b9d1e4, 200 : #8ab2d2, 300 : #5b93c0, 400 : #377bb3, 500 : #1464a5, 600 : #125c9d, 700 : #0e5293, 800 : #0b488a, 900 : #063679, A100 : #a8c7ff, A200 : #75a7ff, A400 : #4286ff, A700 : #2876ff, contrast: (50 : #000000, 100 : #000000, 200 : #000000, 300 : #000000, 400 : #ffffff, 500 : #ffffff, 600 : #ffffff, 700 : #ffffff, 800 : #ffffff, 900 : #ffffff, A100 : #000000, A200 : #000000, A400 : #ffffff, A700 : #ffffff));
7
7
 
8
- $mat-custom-accent: (50 : #e3ecf4, 100 : #b9d1e4, 200 : #8ab2d2, 300 : #5b93c0, 400 : #377bb3, 500 : #1464a5, 600 : #125c9d, 700 : #0e5293, 800 : #0b488a, 900 : #063679, A100 : #a8c7ff, A200 : #75a7ff, A400 : #4286ff, A700 : #2876ff, contrast: (50 : #000000, 100 : #000000, 200 : #000000, 300 : #000000, 400 : #ffffff, 500 : #ffffff, 600 : #ffffff, 700 : #ffffff, 800 : #ffffff, 900 : #ffffff, A100 : #000000, A200 : #000000, A400 : #ffffff, A700 : #ffffff));
8
+ $mat-custom-primary-dark: (50 : #f1f6fa, 100 : #dce8f2, 200 : #c5d9e9, 300 : #adc9e0, 400 : #9cbed9, 500 : #8ab2d2, 600 : #82abcd, 700 : #77a2c7, 800 : #6d99c1, 900 : #5a8ab6, A100 : #ffffff, A200 : #ebf5ff, A400 : #b8dcff, A700 : #9ed0ff, contrast: (50 : #000000, 100 : #000000, 200 : #000000, 300 : #000000, 400 : #000000, 500 : #000000, 600 : #000000, 700 : #000000, 800 : #000000, 900 : #000000, A100 : #000000, A200 : #000000, A400 : #000000, A700 : #000000, ));
9
9
 
10
10
  // Define a theme.
11
11
  $primary: mat.define-palette($mat-custom-primary);
12
- $accent: mat.define-palette($mat-custom-accent);
12
+ $accent:$primary;
13
+
14
+ $primary-dark: mat.define-palette($mat-custom-primary-dark);
15
+ $accent-dark: $primary-dark;
13
16
 
14
17
  /* Light theme */
15
18
  $theme: ontimize-style.o-mat-light-theme($primary, $accent);
16
19
 
17
20
  /* Dark theme */
18
- $dark-theme: ontimize-style.o-mat-dark-theme($primary, $accent);
21
+ $dark-theme: ontimize-style.o-mat-dark-theme($primary-dark, $accent-dark);