ontimize-web-ngx 15.0.0-beta.5 → 15.0.0-rc.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 (40) hide show
  1. package/esm2020/lib/components/form/navigation/o-form.navigation.class.mjs +5 -2
  2. package/esm2020/lib/components/image/o-image.component.mjs +3 -3
  3. package/esm2020/lib/components/index.mjs +2 -1
  4. package/esm2020/lib/components/tree/header/index.mjs +2 -0
  5. package/esm2020/lib/components/tree/header/tree-menu/o-tree-menu.component.mjs +33 -0
  6. package/esm2020/lib/components/tree/index.mjs +5 -0
  7. package/esm2020/lib/components/tree/o-tree-dao.service.mjs +43 -0
  8. package/esm2020/lib/components/tree/o-tree.component.mjs +523 -0
  9. package/esm2020/lib/components/tree/o-tree.datasource.mjs +79 -0
  10. package/esm2020/lib/components/tree/o-tree.module.mjs +24 -0
  11. package/esm2020/lib/components/tree/tree-node/tree-node.component.mjs +49 -0
  12. package/esm2020/lib/config/o-modules.mjs +8 -6
  13. package/esm2020/lib/i18n/i18n.mjs +6 -3
  14. package/esm2020/lib/ontimize-web-ngx.module.mjs +4 -3
  15. package/esm2020/lib/services/permissions/o-permissions.module.mjs +1 -3
  16. package/esm2020/lib/services/permissions/permissions.service.mjs +18 -8
  17. package/esm2020/lib/services/state/o-tree-component-state.class.mjs +4 -0
  18. package/esm2020/lib/services/state/o-tree-component-state.service.mjs +50 -0
  19. package/fesm2015/ontimize-web-ngx.mjs +6233 -5518
  20. package/fesm2015/ontimize-web-ngx.mjs.map +1 -1
  21. package/fesm2020/ontimize-web-ngx.mjs +10871 -10160
  22. package/fesm2020/ontimize-web-ngx.mjs.map +1 -1
  23. package/lib/components/index.d.ts +1 -0
  24. package/lib/components/tree/header/index.d.ts +1 -0
  25. package/lib/components/tree/header/tree-menu/o-tree-menu.component.d.ts +13 -0
  26. package/lib/components/tree/index.d.ts +4 -0
  27. package/lib/components/tree/o-tree-dao.service.d.ts +18 -0
  28. package/lib/components/tree/o-tree.component.d.ts +111 -0
  29. package/lib/components/tree/o-tree.datasource.d.ts +22 -0
  30. package/lib/components/tree/o-tree.module.d.ts +14 -0
  31. package/lib/components/tree/tree-node/tree-node.component.d.ts +14 -0
  32. package/lib/i18n/i18n.d.ts +3 -0
  33. package/lib/ontimize-web-ngx.module.d.ts +2 -1
  34. package/lib/services/state/o-tree-component-state.class.d.ts +3 -0
  35. package/lib/services/state/o-tree-component-state.service.d.ts +13 -0
  36. package/package.json +1 -1
  37. package/theme.scss +69 -69
  38. package/theming/ontimize-style-v8.scss +2 -1
  39. package/theming/styles/density.scss +6 -2
  40. package/theming/themes/ontimize-black-yellow.scss +13 -3
@@ -41,3 +41,4 @@ export * from './dual-list-selector/index';
41
41
  export * from './o-data-toolbar/index';
42
42
  export * from './expandable-container/o-expandable-container.component';
43
43
  export * from './expandable-container/o-expandable-container.module';
44
+ export * from './tree/index';
@@ -0,0 +1 @@
1
+ export * from './tree-menu/o-tree-menu.component';
@@ -0,0 +1,13 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { MatCheckboxChange } from '@angular/material/checkbox';
3
+ import { MatMenu } from '@angular/material/menu';
4
+ import * as i0 from "@angular/core";
5
+ export declare class OTreeMenuComponent {
6
+ matMenu: MatMenu;
7
+ selectAllCheckbox: boolean;
8
+ selectAllCheckboxVisible: boolean;
9
+ onSelectCheckboxChange: EventEmitter<boolean>;
10
+ toggleShowCheckbox(event: MatCheckboxChange): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<OTreeMenuComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<OTreeMenuComponent, "o-tree-menu", never, { "selectAllCheckbox": "select-all-checkbox"; "selectAllCheckboxVisible": "select-all-checkbox-visible"; }, { "onSelectCheckboxChange": "onSelectCheckboxChange"; }, never, never, false, never>;
13
+ }
@@ -0,0 +1,4 @@
1
+ export * from './o-tree.module';
2
+ export * from './o-tree.component';
3
+ export * from './tree-node/tree-node.component';
4
+ export * from './header/index';
@@ -0,0 +1,18 @@
1
+ import { BehaviorSubject } from 'rxjs';
2
+ import { OTreeFlatNode } from './o-tree.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class OTreeDao {
5
+ protected _isLoadingResults: boolean;
6
+ protected loadingTimer: any;
7
+ dataChange: BehaviorSubject<any[]>;
8
+ sqlTypesChange: BehaviorSubject<object>;
9
+ get data(): any[];
10
+ rootLevelNodes: OTreeFlatNode[];
11
+ flatNodeMap: Map<OTreeFlatNode, any>;
12
+ setDataArray(data: Array<any>): import("rxjs").Observable<any[]>;
13
+ get isLoadingResults(): boolean;
14
+ set isLoadingResults(val: boolean);
15
+ protected cleanTimer(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<OTreeDao, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<OTreeDao>;
18
+ }
@@ -0,0 +1,111 @@
1
+ import { SelectionModel } from '@angular/cdk/collections';
2
+ import { FlatTreeControl } from '@angular/cdk/tree';
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';
6
+ import { OTreeComponentStateService } from '../../services/state/o-tree-component-state.service';
7
+ import { OFormComponent } from '../form/o-form.component';
8
+ import { AbstractOServiceComponent } from '../o-service-component.class';
9
+ import { OTreeDao } from './o-tree-dao.service';
10
+ import { OTreeDataSource } from './o-tree.datasource';
11
+ import { OTreeNodeComponent } from './tree-node/tree-node.component';
12
+ import * as i0 from "@angular/core";
13
+ export type OTreeFlatNode = {
14
+ id: string | number;
15
+ label: string;
16
+ level: number;
17
+ rootNode?: boolean;
18
+ expandable: boolean;
19
+ treeNode?: OTreeNodeComponent;
20
+ data: any;
21
+ isLoading?: boolean;
22
+ route?: string;
23
+ };
24
+ export declare const DEFAULT_INPUTS_O_TREE: string[];
25
+ export declare const DEFAULT_OUTPUTS_O_TREE: string[];
26
+ export declare class OTreeComponent extends AbstractOServiceComponent<OTreeComponentStateService> implements OnInit, OnDestroy, AfterViewInit {
27
+ injector: Injector;
28
+ getLevel: (node: OTreeFlatNode) => number;
29
+ isExpandable: (node: OTreeFlatNode) => boolean;
30
+ getChildren: (node: OTreeFlatNode) => any;
31
+ getTreeNodeChildren(node: OTreeFlatNode): any;
32
+ getRecursiveChildrenNode(node: OTreeFlatNode): any;
33
+ getComponentFilter(existingFilter?: any): any;
34
+ hasChild: (_: number, _nodeData: OTreeFlatNode) => boolean;
35
+ hasNoContent: (_: number, _nodeData: OTreeFlatNode) => boolean;
36
+ dataSource: OTreeDataSource;
37
+ refreshButton: boolean;
38
+ deleteButton: boolean;
39
+ showButtonsText: boolean;
40
+ visibleColumns: string;
41
+ separator: string;
42
+ parentColumn: string;
43
+ sortColumn: string;
44
+ selectAllCheckboxVisible: boolean;
45
+ selectAllCheckbox: boolean;
46
+ recursive: boolean;
47
+ protected _quickFilter: boolean;
48
+ paginationControls: boolean;
49
+ quickFilterColumns: string;
50
+ childreNodes: OTreeFlatNode[];
51
+ nodesArray: OTreeFlatNode[];
52
+ ancestors: any[];
53
+ checklistSelection: SelectionModel<OTreeFlatNode>;
54
+ onNodeSelected: EventEmitter<any>;
55
+ onNodeExpanded: EventEmitter<any>;
56
+ onNodeCollapsed: EventEmitter<any>;
57
+ onLoadNextLevel: EventEmitter<any>;
58
+ rootTitle: string;
59
+ rootNodes: OTreeFlatNode[];
60
+ daoTree: OTreeDao;
61
+ leafNodeTemplate: TemplateRef<any>;
62
+ parentNodeTemplate: TemplateRef<any>;
63
+ treeFlattener: any;
64
+ treeControl: FlatTreeControl<OTreeFlatNode, OTreeFlatNode>;
65
+ set nodeTemplate(value: TemplateRef<any>);
66
+ treeNode: OTreeNodeComponent;
67
+ protected visibleColumnsArray: string[];
68
+ enabledDeleteButton: boolean;
69
+ protected subscription: Subscription;
70
+ route: string;
71
+ get showTreeMenuButton(): boolean;
72
+ constructor(injector: Injector, elRef: ElementRef, form: OFormComponent);
73
+ ngOnInit(): void;
74
+ initialize(): void;
75
+ protected initializeDao(): void;
76
+ initializeParams(): void;
77
+ ngAfterViewInit(): void;
78
+ ngOnDestroy(): void;
79
+ registerTreeNode(oTreeNode: OTreeNodeComponent): void;
80
+ checkboxClicked(event: Event): void;
81
+ leafNodeClicked(event: Event, node: OTreeFlatNode): void;
82
+ parentNodeClicked(event: Event, node: OTreeFlatNode): void;
83
+ protected nodeClicked(node: OTreeFlatNode, event: Event): void;
84
+ isRootNode(node: OTreeFlatNode): boolean;
85
+ onClickToggleButton(event: Event, node: any): void;
86
+ toggleNode(node: OTreeFlatNode, expand: boolean): void;
87
+ private updateAsyncTree;
88
+ todoLeafItemSelectionToggle(node: OTreeFlatNode): void;
89
+ todoItemSelectionToggle(node: OTreeFlatNode): void;
90
+ descendantsAllSelected(node: OTreeFlatNode): boolean;
91
+ descendantsPartiallySelected(node: OTreeFlatNode): boolean;
92
+ protected setTreeControl(): void;
93
+ protected setDatasource(): void;
94
+ getParentNodes(node: OTreeFlatNode, index: number, tree: OTreeFlatNode[]): OTreeFlatNode[];
95
+ filterData(value?: string, loadMore?: boolean): void;
96
+ expandNodesWithNodes(treeData: OTreeFlatNode[]): void;
97
+ getDataArray(): any[];
98
+ setDataArray(data: any): void;
99
+ transformer: (node: any, level: number, parentNode?: any) => OTreeFlatNode;
100
+ onSelectCheckboxChange(visible: boolean): void;
101
+ protected sort(array: OTreeFlatNode[]): void;
102
+ protected getItemText(item: any): string;
103
+ getItemKey(item: any): string;
104
+ protected filterByQuickFilterColumns(item: any, quickfilter: string): boolean;
105
+ add(e?: Event): void;
106
+ protected getNodeId(item: any, parentNode: any): string;
107
+ childQueryData(node: OTreeFlatNode): Observable<ServiceResponse> | Observable<any>;
108
+ protected navigateToViewDetail(node: OTreeFlatNode): void;
109
+ static ɵfac: i0.ɵɵFactoryDeclaration<OTreeComponent, [null, null, { optional: true; }]>;
110
+ 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"; }, ["leafNodeTemplate", "parentNodeTemplate", "nodeTemplate", "treeNode"], ["[o-tree-button]"], false, never>;
111
+ }
@@ -0,0 +1,22 @@
1
+ import { CollectionViewer, DataSource, SelectionChange } from '@angular/cdk/collections';
2
+ import { FlatTreeControl } from '@angular/cdk/tree';
3
+ import { Injector } from '@angular/core';
4
+ import { BehaviorSubject, Observable } from 'rxjs';
5
+ import { OTreeDao } from './o-tree-dao.service';
6
+ import { OTreeComponent, OTreeFlatNode } from './o-tree.component';
7
+ export declare class OTreeDataSource implements DataSource<OTreeFlatNode> {
8
+ private oTree;
9
+ private _treeControl;
10
+ private injector;
11
+ dataChange: BehaviorSubject<OTreeFlatNode[]>;
12
+ translateService: any;
13
+ protected _database: OTreeDao;
14
+ get data(): OTreeFlatNode[];
15
+ set data(value: OTreeFlatNode[]);
16
+ constructor(oTree: OTreeComponent, _treeControl: FlatTreeControl<OTreeFlatNode>, injector: Injector);
17
+ connect(collectionViewer: CollectionViewer): Observable<OTreeFlatNode[]>;
18
+ disconnect(collectionViewer: CollectionViewer): void;
19
+ handleTreeControl(change: SelectionChange<OTreeFlatNode>): void;
20
+ isTreeFlatNode(value: any): boolean;
21
+ updateTree(parentNode: OTreeFlatNode, children: Array<any>, expand: boolean): void;
22
+ }
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./tree-node/tree-node.component";
3
+ import * as i2 from "./o-tree.component";
4
+ import * as i3 from "./header/tree-menu/o-tree-menu.component";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "../input/search-input/o-search-input.module";
7
+ import * as i6 from "../../shared/shared.module";
8
+ import * as i7 from "@angular/cdk/tree";
9
+ import * as i8 from "@angular/material/tree";
10
+ export declare class OTreeModule {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<OTreeModule, never>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<OTreeModule, [typeof i1.OTreeNodeComponent, typeof i2.OTreeComponent, typeof i3.OTreeMenuComponent], [typeof i4.CommonModule, typeof i5.OSearchInputModule, typeof i6.OSharedModule, typeof i7.CdkTreeModule, typeof i8.MatTreeModule], [typeof i2.OTreeComponent, typeof i1.OTreeNodeComponent]>;
13
+ static ɵinj: i0.ɵɵInjectorDeclaration<OTreeModule>;
14
+ }
@@ -0,0 +1,14 @@
1
+ import { AfterViewInit, ElementRef, Injector, OnInit } from '@angular/core';
2
+ import { OFormComponent } from '../../form';
3
+ import { OTreeComponent } from '../o-tree.component';
4
+ import * as i0 from "@angular/core";
5
+ export declare class OTreeNodeComponent extends OTreeComponent implements OnInit, AfterViewInit {
6
+ injector: Injector;
7
+ oTree: OTreeComponent;
8
+ parentNode: OTreeNodeComponent;
9
+ constructor(injector: Injector, elRef: ElementRef, form: OFormComponent, oTree: OTreeComponent, parentNode: OTreeNodeComponent);
10
+ ngOnInit(): void;
11
+ ngAfterViewInit(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<OTreeNodeComponent, [null, null, { optional: true; }, { optional: true; }, { optional: true; skipSelf: true; }]>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<OTreeNodeComponent, "o-tree-node", never, {}, {}, never, never, false, never>;
14
+ }
@@ -290,6 +290,7 @@ export declare const MAP: {
290
290
  'FILTERBUILDERMENU.DIALOG.CONFIRM_CLEAR_FILTER': string;
291
291
  'OIMAGE.TEXT.DROP&DRAG': string;
292
292
  'OIMAGE.BUTTON.BROWSEFILE': string;
293
+ 'TREE.BUTTONS.SELECT': string;
293
294
  'REPORT.COLUMN.TRUEVALUE': string;
294
295
  'REPORT.COLUMN.FALSEVALUE': string;
295
296
  };
@@ -575,6 +576,7 @@ export declare const MAP: {
575
576
  'FILTERBUILDERMENU.DIALOG.CONFIRM_CLEAR_FILTER': string;
576
577
  'OIMAGE.TEXT.DROP&DRAG': string;
577
578
  'OIMAGE.BUTTON.BROWSEFILE': string;
579
+ 'TREE.BUTTONS.SELECT': string;
578
580
  'REPORT.COLUMN.TRUEVALUE': string;
579
581
  'REPORT.COLUMN.FALSEVALUE': string;
580
582
  };
@@ -848,6 +850,7 @@ export declare const MAP: {
848
850
  'FILTERBUILDERMENU.DIALOG.CONFIRM_CLEAR_FILTER': string;
849
851
  'OIMAGE.TEXT.DROP&DRAG': string;
850
852
  'OIMAGE.BUTTON.BROWSEFILE': string;
853
+ 'TREE.BUTTONS.SELECT': string;
851
854
  'REPORT.COLUMN.TRUEVALUE': string;
852
855
  'REPORT.COLUMN.FALSEVALUE': string;
853
856
  };
@@ -55,9 +55,10 @@ import * as i51 from "./config/o-modules";
55
55
  import * as i52 from "./services/permissions/o-permissions.module";
56
56
  import * as i53 from "./components/input/slider/o-slider.module";
57
57
  import * as i54 from "./components/o-data-toolbar/o-data-toolbar.module";
58
+ import * as i55 from "./components/tree/o-tree.module";
58
59
  export declare class OntimizeWebModule {
59
60
  static forRoot(config: Config): ModuleWithProviders<OntimizeWebModule>;
60
61
  static ɵfac: i0.ɵɵFactoryDeclaration<OntimizeWebModule, never>;
61
- static ɵmod: i0.ɵɵNgModuleDeclaration<OntimizeWebModule, never, [typeof i1.HttpClientModule, typeof i2.TranslateModule, typeof i3.NgxMaterialTimepickerModule, typeof i4.OSharedModule, typeof i5.OBarMenuModule, typeof i6.OBreadcrumbModule, typeof i7.OButtonModule, typeof i8.OButtonToggleModule, typeof i9.OCardMenuItemModule, typeof i10.OColumnModule, typeof i11.OColumnCollapsibleModule, typeof i12.ORowModule, typeof i13.ORowCollapsibleModule, typeof i14.OContextMenuModule, typeof i15.OFilterBuilderModule, typeof i16.OFormModule, typeof i17.OFormContainerModule, typeof i18.OGridModule, typeof i19.OImageModule, typeof i20.OCheckboxModule, typeof i21.OComboModule, typeof i22.OCurrencyInputModule, typeof i23.ODateInputModule, typeof i24.ODateRangeInputModule, typeof i25.OEmailInputModule, typeof i26.OPhoneInputModule, typeof i27.OFileInputModule, typeof i28.OHourInputModule, typeof i29.OHTMLInputModule, typeof i30.OIntegerInputModule, typeof i31.OListPickerModule, typeof i32.ONIFInputModule, typeof i33.OPasswordInputModule, typeof i34.OPercentInputModule, typeof i35.ORadioModule, typeof i36.ORealInputModule, typeof i37.OSearchInputModule, typeof i38.OSlideToggleModule, typeof i39.OTextInputModule, typeof i40.OTextareaInputModule, typeof i41.OTimeInputModule, typeof i42.OLanguageSelectorModule, typeof i43.OListModule, typeof i44.OTableModule, typeof i45.OUserInfoModule, typeof i46.OAppLayoutModule, typeof i47.OCardMenuLayoutModule, typeof i48.OFormLayoutManagerModule, typeof i49.OExpandableContainerModule, typeof i50.ODualListSelectorModule], [typeof i51.OntimizeWebTranslateModule, typeof i52.OPermissionsModule, typeof i1.HttpClientModule, typeof i4.OSharedModule, typeof i5.OBarMenuModule, typeof i6.OBreadcrumbModule, typeof i7.OButtonModule, typeof i8.OButtonToggleModule, typeof i20.OCheckboxModule, typeof i21.OComboModule, typeof i10.OColumnModule, typeof i11.OColumnCollapsibleModule, typeof i14.OContextMenuModule, typeof i12.ORowModule, typeof i13.ORowCollapsibleModule, typeof i15.OFilterBuilderModule, typeof i16.OFormModule, typeof i17.OFormContainerModule, typeof i19.OImageModule, typeof i22.OCurrencyInputModule, typeof i23.ODateInputModule, typeof i25.OEmailInputModule, typeof i26.OPhoneInputModule, typeof i27.OFileInputModule, typeof i29.OHTMLInputModule, typeof i30.OIntegerInputModule, typeof i31.OListPickerModule, typeof i32.ONIFInputModule, typeof i33.OPasswordInputModule, typeof i34.OPercentInputModule, typeof i36.ORealInputModule, typeof i39.OTextInputModule, typeof i40.OTextareaInputModule, typeof i43.OListModule, typeof i37.OSearchInputModule, typeof i44.OTableModule, typeof i46.OAppLayoutModule, typeof i48.OFormLayoutManagerModule, typeof i45.OUserInfoModule, typeof i42.OLanguageSelectorModule, typeof i9.OCardMenuItemModule, typeof i47.OCardMenuLayoutModule, typeof i28.OHourInputModule, typeof i41.OTimeInputModule, typeof i18.OGridModule, typeof i35.ORadioModule, typeof i38.OSlideToggleModule, typeof i53.OSliderModule, typeof i24.ODateRangeInputModule, typeof i49.OExpandableContainerModule, typeof i50.ODualListSelectorModule, typeof i54.ODataToolbarModule]>;
62
+ static ɵmod: i0.ɵɵNgModuleDeclaration<OntimizeWebModule, never, [typeof i1.HttpClientModule, typeof i2.TranslateModule, typeof i3.NgxMaterialTimepickerModule, typeof i4.OSharedModule, typeof i5.OBarMenuModule, typeof i6.OBreadcrumbModule, typeof i7.OButtonModule, typeof i8.OButtonToggleModule, typeof i9.OCardMenuItemModule, typeof i10.OColumnModule, typeof i11.OColumnCollapsibleModule, typeof i12.ORowModule, typeof i13.ORowCollapsibleModule, typeof i14.OContextMenuModule, typeof i15.OFilterBuilderModule, typeof i16.OFormModule, typeof i17.OFormContainerModule, typeof i18.OGridModule, typeof i19.OImageModule, typeof i20.OCheckboxModule, typeof i21.OComboModule, typeof i22.OCurrencyInputModule, typeof i23.ODateInputModule, typeof i24.ODateRangeInputModule, typeof i25.OEmailInputModule, typeof i26.OPhoneInputModule, typeof i27.OFileInputModule, typeof i28.OHourInputModule, typeof i29.OHTMLInputModule, typeof i30.OIntegerInputModule, typeof i31.OListPickerModule, typeof i32.ONIFInputModule, typeof i33.OPasswordInputModule, typeof i34.OPercentInputModule, typeof i35.ORadioModule, typeof i36.ORealInputModule, typeof i37.OSearchInputModule, typeof i38.OSlideToggleModule, typeof i39.OTextInputModule, typeof i40.OTextareaInputModule, typeof i41.OTimeInputModule, typeof i42.OLanguageSelectorModule, typeof i43.OListModule, typeof i44.OTableModule, typeof i45.OUserInfoModule, typeof i46.OAppLayoutModule, typeof i47.OCardMenuLayoutModule, typeof i48.OFormLayoutManagerModule, typeof i49.OExpandableContainerModule, typeof i50.ODualListSelectorModule], [typeof i51.OntimizeWebTranslateModule, typeof i52.OPermissionsModule, typeof i1.HttpClientModule, typeof i4.OSharedModule, typeof i5.OBarMenuModule, typeof i6.OBreadcrumbModule, typeof i7.OButtonModule, typeof i8.OButtonToggleModule, typeof i20.OCheckboxModule, typeof i21.OComboModule, typeof i10.OColumnModule, typeof i11.OColumnCollapsibleModule, typeof i14.OContextMenuModule, typeof i12.ORowModule, typeof i13.ORowCollapsibleModule, typeof i15.OFilterBuilderModule, typeof i16.OFormModule, typeof i17.OFormContainerModule, typeof i19.OImageModule, typeof i22.OCurrencyInputModule, typeof i23.ODateInputModule, typeof i25.OEmailInputModule, typeof i26.OPhoneInputModule, typeof i27.OFileInputModule, typeof i29.OHTMLInputModule, typeof i30.OIntegerInputModule, typeof i31.OListPickerModule, typeof i32.ONIFInputModule, typeof i33.OPasswordInputModule, typeof i34.OPercentInputModule, typeof i36.ORealInputModule, typeof i39.OTextInputModule, typeof i40.OTextareaInputModule, typeof i43.OListModule, typeof i37.OSearchInputModule, typeof i44.OTableModule, typeof i46.OAppLayoutModule, typeof i48.OFormLayoutManagerModule, typeof i45.OUserInfoModule, typeof i42.OLanguageSelectorModule, typeof i9.OCardMenuItemModule, typeof i47.OCardMenuLayoutModule, typeof i28.OHourInputModule, typeof i41.OTimeInputModule, typeof i18.OGridModule, typeof i35.ORadioModule, typeof i38.OSlideToggleModule, typeof i53.OSliderModule, typeof i24.ODateRangeInputModule, typeof i49.OExpandableContainerModule, typeof i50.ODualListSelectorModule, typeof i54.ODataToolbarModule, typeof i55.OTreeModule]>;
62
63
  static ɵinj: i0.ɵɵInjectorDeclaration<OntimizeWebModule>;
63
64
  }
@@ -0,0 +1,3 @@
1
+ import { DefaultServiceComponentStateClass } from './o-component-state.class';
2
+ export declare class OTreeComponentStateClass extends DefaultServiceComponentStateClass {
3
+ }
@@ -0,0 +1,13 @@
1
+ import { OTreeComponent } from '../../components/tree/o-tree.component';
2
+ import { AbstractComponentStateService } from './o-component-state.service';
3
+ import { OTreeComponentStateClass } from './o-tree-component-state.class';
4
+ import * as i0 from "@angular/core";
5
+ export declare class OTreeComponentStateService extends AbstractComponentStateService<OTreeComponentStateClass, OTreeComponent> {
6
+ initialize(component: OTreeComponent): void;
7
+ initializeState(state: OTreeComponentStateClass): void;
8
+ getDataToStore(): any;
9
+ protected getTablePropertiesToStore(properties: string[]): any;
10
+ protected getTreePropertyToStore(property: string): any;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<OTreeComponentStateService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<OTreeComponentStateService>;
13
+ }
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.5",
4
+ "version": "15.0.0-rc.0",
5
5
  "description": "Ontimize Web framework using Angular 15",
6
6
  "bugs": "https://github.com/OntimizeWeb/ontimize-web-ngx/issues",
7
7
  "author": "Imatia S.L.",
package/theme.scss CHANGED
@@ -73,7 +73,74 @@
73
73
  }
74
74
  }
75
75
 
76
- }@mixin o-app-sidenav-theme($theme-or-color-config) {
76
+ }@mixin o-bar-menu-theme($theme-or-color-config) {
77
+ $theme: map.get($theme-or-color-config, color);
78
+ $primary: map.get($theme, primary);
79
+
80
+
81
+ $bg-color: #FFF;
82
+ $fg-color: rgba(0, 0, 0, 0.7);
83
+
84
+ $item-bg-color-hover-dark: rgba(0, 0, 0, 0.16);
85
+ $item-bg-color-hover-light: rgba(255, 255, 255, 0.16);
86
+
87
+ .o-bar-menu {
88
+ box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
89
+
90
+ nav {
91
+ .fake-ul {
92
+ .fake-ul {
93
+ background-color: $bg-color;
94
+
95
+ .mat-icon,
96
+ .o-bar-menu-group-title,
97
+ .o-bar-menu-item-title,
98
+ label.toggle {
99
+ color: $fg-color;
100
+ }
101
+
102
+ .fake-li {
103
+ background-color: $bg-color;
104
+ }
105
+ }
106
+ }
107
+
108
+ a {
109
+ color: $bg-color;
110
+ }
111
+ }
112
+
113
+ @media all and (min-width : 768px) {
114
+ nav .fake-ul {
115
+ .fake-li .fake-ul .fake-li-hover {
116
+ background: $item-bg-color-hover-dark;
117
+ }
118
+
119
+ .fake-li-hover {
120
+ background-color: $item-bg-color-hover-light;
121
+ }
122
+ }
123
+ }
124
+
125
+ @media all and (max-width : 767px) {
126
+ nav {
127
+ a:hover {
128
+ background-color: rgba(255, 255, 255, 0.15);
129
+ }
130
+
131
+ .fake-ul {
132
+ border-top: 1px solid rgba(255, 255, 255, 0.5);
133
+ }
134
+ }
135
+
136
+ .toggle {
137
+ &:hover {
138
+ background-color: rgba(255, 255, 255, 0.15);
139
+ }
140
+ }
141
+ }
142
+ }
143
+ }@mixin o-app-sidenav-theme($theme-or-color-config) {
77
144
  $theme: map.get($theme-or-color-config, color);
78
145
  $primary: map.get($theme, primary);
79
146
  $accent: map.get($theme, accent);
@@ -149,74 +216,7 @@
149
216
  }
150
217
  }
151
218
  }
152
- }@mixin o-bar-menu-theme($theme-or-color-config) {
153
- $theme: map.get($theme-or-color-config, color);
154
- $primary: map.get($theme, primary);
155
-
156
-
157
- $bg-color: #FFF;
158
- $fg-color: rgba(0, 0, 0, 0.7);
159
-
160
- $item-bg-color-hover-dark: rgba(0, 0, 0, 0.16);
161
- $item-bg-color-hover-light: rgba(255, 255, 255, 0.16);
162
-
163
- .o-bar-menu {
164
- box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
165
-
166
- nav {
167
- .fake-ul {
168
- .fake-ul {
169
- background-color: $bg-color;
170
-
171
- .mat-icon,
172
- .o-bar-menu-group-title,
173
- .o-bar-menu-item-title,
174
- label.toggle {
175
- color: $fg-color;
176
- }
177
-
178
- .fake-li {
179
- background-color: $bg-color;
180
- }
181
- }
182
- }
183
-
184
- a {
185
- color: $bg-color;
186
- }
187
- }
188
-
189
- @media all and (min-width : 768px) {
190
- nav .fake-ul {
191
- .fake-li .fake-ul .fake-li-hover {
192
- background: $item-bg-color-hover-dark;
193
- }
194
-
195
- .fake-li-hover {
196
- background-color: $item-bg-color-hover-light;
197
- }
198
- }
199
- }
200
-
201
- @media all and (max-width : 767px) {
202
- nav {
203
- a:hover {
204
- background-color: rgba(255, 255, 255, 0.15);
205
- }
206
-
207
- .fake-ul {
208
- border-top: 1px solid rgba(255, 255, 255, 0.5);
209
- }
210
- }
211
-
212
- .toggle {
213
- &:hover {
214
- background-color: rgba(255, 255, 255, 0.15);
215
- }
216
- }
217
- }
218
- }
219
- }@mixin o-breadcrumb-theme($theme-or-color-config) {
219
+ }@mixin o-breadcrumb-theme($theme-or-color-config) {
220
220
  $theme: map.get($theme-or-color-config, color);
221
221
  $primary: map.get($theme, primary);
222
222
  $accent: map.get($theme, accent);
@@ -90,6 +90,7 @@ $app-background-color: #eaeaea;
90
90
  @include o-density.list();
91
91
  @include o-density.radio();
92
92
  @include o-density.menu($typography);
93
+ @include o-density.tree();
93
94
  @include o-table-style.o-table-style($theme-or-color-config);
94
95
  @include report-on-demand.report-on-demand($theme-or-color-config);
95
96
  @include charts-on-demand.o-chart-on-demand($theme-or-color-config);
@@ -327,4 +328,4 @@ $app-background-color: #eaeaea;
327
328
  typography: null,
328
329
  density: null,
329
330
  ));
330
- }
331
+ }
@@ -81,10 +81,14 @@
81
81
  min-height: auto;
82
82
 
83
83
  @if($typography) {
84
- .mdc-list-item__primary-text{
84
+ .mdc-list-item__primary-text {
85
85
  font-size: mat.font-size($typography, body-2);
86
86
 
87
87
  }
88
88
  }
89
89
  }
90
- }
90
+ }
91
+
92
+ @mixin tree() {
93
+ @include mat.tree-density(-2);
94
+ }
@@ -1,14 +1,24 @@
1
+ /*
2
+ ontimize-black-yellow.scss for use with ontimize v8 styles,
3
+ ontimize v8 styles differs v15 styes in that the background of the sidenav is the color primary.
4
+
5
+ In your app.css, you must add the next line
6
+
7
+ `@use 'ontimize-web-ngx/theming/ontimize-style-v8.scss' as ontimize-style;` instead of `@use 'ontimize-web-ngx/theming/ontimize-style.scss' as ontimize-style;`
8
+
9
+ */
10
+
1
11
  @use '@angular/material'as mat;
2
12
  @use '../ontimize-style-v8.scss'as ontimize-style;
3
13
 
4
14
 
5
15
  /* Color definitions */
6
- $mat-custom-primary: (50 : #e5e5e5, 100 : #bdbdbd, 200 : #929292, 300 : #666666, 400 : #454545, 500 : #242424, 600 : #202020, 700 : #1b1b1b, 800 : #161616, 900 : #0d0d0d, A100 : #e5e5e5, A200 : #bdbdbd, A400 : #454545, A700 : #1b1b1b, contrast: (50: $black-87-opacity, 100: $black-87-opacity, 200: $black-87-opacity, 300: white, 400: white, 500: $white-87-opacity, 600: $white-87-opacity, 700: $white-87-opacity, 800: $white-87-opacity, 900: $white-87-opacity, A100: $black-87-opacity, A200: white, A400: white, A700: white, ));
16
+ $mat-custom-primary: (50 : #e5e5e5, 100 : #bdbdbd, 200 : #929292, 300 : #666666, 400 : #454545, 500 : #242424, 600 : #202020, 700 : #1b1b1b, 800 : #161616, 900 : #0d0d0d, A100 : #e5e5e5, A200 : #bdbdbd, A400 : #454545, A700 : #1b1b1b, contrast: (50: #000000DE, 100: #000000DE, 200: #000000DE, 300: white, 400: white, 500: #FFFFFFDE, 600: #FFFFFFDE, 700: #FFFFFFDE, 800: #FFFFFFDE, 900: #FFFFFFDE, A100: #000000DE, A200: white, A400: white, A700: white, ));
7
17
 
8
- $mat-custom-accent: (50 : #fff9e0, 100 : #fff0b3, 200 : #ffe680, 300 : #ffdb4d, 400 : #ffd426, 500 : #ffcc00, 600 : #ffc700, 700 : #ffc000, 800 : #ffb900, 900 : #ffad00, A100 : #fff9e0, A200 : #ffe680, A400 : #ffd426, A700 : #ffc000, contrast: (50: $black-87-opacity, 100: $black-87-opacity, 200: $black-87-opacity, 300: white, 400: white, 500: $white-87-opacity, 600: $white-87-opacity, 700: $white-87-opacity, 800: $white-87-opacity, 900: $white-87-opacity, A100: $black-87-opacity, A200: white, A400: white, A700: white, ));
18
+ $mat-custom-accent: (50 : #fff9e0, 100 : #fff0b3, 200 : #ffe680, 300 : #ffdb4d, 400 : #ffd426, 500 : #ffcc00, 600 : #ffc700, 700 : #ffc000, 800 : #ffb900, 900 : #ffad00, A100 : #fff9e0, A200 : #ffe680, A400 : #ffd426, A700 : #ffc000, contrast: (50: #000000DE, 100: #000000DE, 200: #000000DE, 300: white, 400: white, 500: #FFFFFFDE, 600: #FFFFFFDE, 700: #FFFFFFDE, 800: #FFFFFFDE, 900: #FFFFFFDE, A100: #000000DE, A200: white, A400: white, A700: white, ));
9
19
 
10
20
  // Define a theme.
11
21
  $primary: mat.define-palette($mat-custom-primary);
12
22
  $accent: mat.define-palette($mat-custom-accent);
13
23
  $theme: ontimize-style.o-mat-light-theme($primary, $accent);
14
- $dark-theme: ontimize-style.o-mat-dark-theme($primary, $accent);
24
+ $dark-theme: ontimize-style.o-mat-dark-theme($primary, $accent);