@igo2/common 1.10.0 → 1.12.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.
- package/bundles/igo2-common.umd.js +833 -254
- package/bundles/igo2-common.umd.js.map +1 -1
- package/esm2015/lib/action/action.module.js +1 -1
- package/esm2015/lib/action/actionbar/actionbar-item.component.js +1 -1
- package/esm2015/lib/action/actionbar/actionbar.component.js +1 -1
- package/esm2015/lib/action/actionbar/actionbar.module.js +1 -1
- package/esm2015/lib/action/index.js +1 -1
- package/esm2015/lib/action/shared/action.enums.js +1 -1
- package/esm2015/lib/action/shared/action.interfaces.js +1 -1
- package/esm2015/lib/action/shared/index.js +1 -1
- package/esm2015/lib/action/shared/store.js +1 -1
- package/esm2015/lib/backdrop/backdrop.component.js +1 -1
- package/esm2015/lib/backdrop/backdrop.module.js +1 -1
- package/esm2015/lib/backdrop/index.js +1 -1
- package/esm2015/lib/badge-icon/badge-icon.directive.js +1 -1
- package/esm2015/lib/badge-icon/badge-icon.module.js +1 -1
- package/esm2015/lib/badge-icon/index.js +1 -1
- package/esm2015/lib/clickout/clickout.directive.js +1 -1
- package/esm2015/lib/clickout/clickout.module.js +1 -1
- package/esm2015/lib/clickout/index.js +1 -1
- package/esm2015/lib/clone/clone.module.js +1 -1
- package/esm2015/lib/clone/clone.pipe.js +1 -1
- package/esm2015/lib/clone/index.js +1 -1
- package/esm2015/lib/collapsible/collapse.directive.js +1 -1
- package/esm2015/lib/collapsible/collapsible.component.js +1 -1
- package/esm2015/lib/collapsible/collapsible.module.js +1 -1
- package/esm2015/lib/collapsible/index.js +1 -1
- package/esm2015/lib/confirm-dialog/confirm-dialog.component.js +1 -1
- package/esm2015/lib/confirm-dialog/confirm-dialog.module.js +1 -1
- package/esm2015/lib/confirm-dialog/confirm-dialog.service.js +1 -1
- package/esm2015/lib/confirm-dialog/index.js +1 -1
- package/esm2015/lib/context-menu/context-menu.directive.js +1 -1
- package/esm2015/lib/context-menu/context-menu.module.js +1 -1
- package/esm2015/lib/context-menu/index.js +1 -1
- package/esm2015/lib/custom-html/custom-html.component.js +1 -1
- package/esm2015/lib/custom-html/custom-html.module.js +1 -1
- package/esm2015/lib/custom-html/custom-html.pipe.js +1 -1
- package/esm2015/lib/custom-html/index.js +1 -1
- package/esm2015/lib/dom/dom.interfaces.js +2 -0
- package/esm2015/lib/dom/dom.module.js +23 -0
- package/esm2015/lib/dom/dom.service.js +33 -0
- package/esm2015/lib/dom/index.js +3 -0
- package/esm2015/lib/drag-drop/drag-drop.module.js +1 -1
- package/esm2015/lib/drag-drop/index.js +1 -1
- package/esm2015/lib/dynamic-component/dynamic-component.module.js +1 -1
- package/esm2015/lib/dynamic-component/dynamic-outlet/dynamic-outlet.component.js +5 -2
- package/esm2015/lib/dynamic-component/dynamic-outlet/dynamic-outlet.module.js +1 -1
- package/esm2015/lib/dynamic-component/index.js +1 -1
- package/esm2015/lib/dynamic-component/shared/dynamic-component.interfaces.js +1 -1
- package/esm2015/lib/dynamic-component/shared/dynamic-component.js +1 -1
- package/esm2015/lib/dynamic-component/shared/dynamic-component.service.js +1 -1
- package/esm2015/lib/dynamic-component/shared/index.js +1 -1
- package/esm2015/lib/entity/entity-selector/entity-selector.component.js +1 -1
- package/esm2015/lib/entity/entity-selector/entity-selector.module.js +1 -1
- package/esm2015/lib/entity/entity-table/entity-table-row.directive.js +1 -1
- package/esm2015/lib/entity/entity-table/entity-table.component.js +563 -116
- package/esm2015/lib/entity/entity-table/entity-table.module.js +31 -4
- package/esm2015/lib/entity/entity-table-paginator/entity-table-paginator.component.js +1 -1
- package/esm2015/lib/entity/entity-table-paginator/entity-table-paginator.interface.js +1 -1
- package/esm2015/lib/entity/entity-table-paginator/entity-table-paginator.module.js +1 -1
- package/esm2015/lib/entity/entity.module.js +1 -1
- package/esm2015/lib/entity/index.js +1 -1
- package/esm2015/lib/entity/shared/entity.enums.js +2 -1
- package/esm2015/lib/entity/shared/entity.interfaces.js +1 -1
- package/esm2015/lib/entity/shared/entity.utils.js +1 -1
- package/esm2015/lib/entity/shared/index.js +1 -1
- package/esm2015/lib/entity/shared/state.js +1 -1
- package/esm2015/lib/entity/shared/store.js +1 -1
- package/esm2015/lib/entity/shared/strategies/filter-custom-function.js +1 -1
- package/esm2015/lib/entity/shared/strategies/filter-selection.js +1 -1
- package/esm2015/lib/entity/shared/strategies/index.js +1 -1
- package/esm2015/lib/entity/shared/strategies/strategy.js +1 -1
- package/esm2015/lib/entity/shared/transaction.js +1 -1
- package/esm2015/lib/entity/shared/view.js +1 -1
- package/esm2015/lib/entity/shared/watcher.js +1 -1
- package/esm2015/lib/flexible/flexible.component.js +1 -1
- package/esm2015/lib/flexible/flexible.module.js +1 -1
- package/esm2015/lib/flexible/flexible.type.js +1 -1
- package/esm2015/lib/flexible/index.js +1 -1
- package/esm2015/lib/form/form/form.component.js +1 -1
- package/esm2015/lib/form/form/form.module.js +1 -1
- package/esm2015/lib/form/form-field/form-field-select.component.js +1 -1
- package/esm2015/lib/form/form-field/form-field-text.component.js +1 -1
- package/esm2015/lib/form/form-field/form-field-textarea.component.js +1 -1
- package/esm2015/lib/form/form-field/form-field.component.js +1 -1
- package/esm2015/lib/form/form-field/form-field.module.js +1 -1
- package/esm2015/lib/form/form-field/index.js +1 -1
- package/esm2015/lib/form/form-group/form-group.component.js +1 -1
- package/esm2015/lib/form/form-group/form-group.module.js +1 -1
- package/esm2015/lib/form/form.module.js +1 -1
- package/esm2015/lib/form/index.js +1 -1
- package/esm2015/lib/form/shared/form-field-component.js +1 -1
- package/esm2015/lib/form/shared/form-field.service.js +1 -1
- package/esm2015/lib/form/shared/form.interfaces.js +1 -1
- package/esm2015/lib/form/shared/form.service.js +9 -5
- package/esm2015/lib/form/shared/form.utils.js +1 -1
- package/esm2015/lib/form/shared/index.js +1 -1
- package/esm2015/lib/home-button/home-button.component.js +1 -1
- package/esm2015/lib/home-button/home-button.module.js +1 -1
- package/esm2015/lib/home-button/index.js +1 -1
- package/esm2015/lib/image/image.module.js +1 -1
- package/esm2015/lib/image/index.js +1 -1
- package/esm2015/lib/image/secure-image.pipe.js +11 -4
- package/esm2015/lib/interactive-tour/index.js +1 -1
- package/esm2015/lib/interactive-tour/interactive-tour.component.js +1 -1
- package/esm2015/lib/interactive-tour/interactive-tour.interface.js +1 -1
- package/esm2015/lib/interactive-tour/interactive-tour.loader.js +1 -1
- package/esm2015/lib/interactive-tour/interactive-tour.module.js +1 -1
- package/esm2015/lib/interactive-tour/interactive-tour.service.js +1 -1
- package/esm2015/lib/json-dialog/index.js +1 -1
- package/esm2015/lib/json-dialog/json-dialog.component.js +1 -1
- package/esm2015/lib/json-dialog/json-dialog.module.js +1 -1
- package/esm2015/lib/json-dialog/json-dialog.service.js +1 -1
- package/esm2015/lib/keyvalue/index.js +1 -1
- package/esm2015/lib/keyvalue/keyvalue.module.js +1 -1
- package/esm2015/lib/keyvalue/keyvalue.pipe.js +1 -1
- package/esm2015/lib/list/index.js +1 -1
- package/esm2015/lib/list/list-item.directive.js +1 -1
- package/esm2015/lib/list/list.component.js +1 -1
- package/esm2015/lib/list/list.module.js +1 -1
- package/esm2015/lib/panel/index.js +1 -1
- package/esm2015/lib/panel/panel.component.js +1 -1
- package/esm2015/lib/panel/panel.module.js +1 -1
- package/esm2015/lib/sidenav/index.js +1 -1
- package/esm2015/lib/sidenav/sidenav-shim.directive.js +1 -1
- package/esm2015/lib/sidenav/sidenav.module.js +1 -1
- package/esm2015/lib/spinner/index.js +1 -1
- package/esm2015/lib/spinner/spinner-activity.directive.js +1 -1
- package/esm2015/lib/spinner/spinner.component.js +1 -1
- package/esm2015/lib/spinner/spinner.module.js +1 -1
- package/esm2015/lib/stop-propagation/index.js +1 -1
- package/esm2015/lib/stop-propagation/stop-drop-propagation.directive.js +1 -1
- package/esm2015/lib/stop-propagation/stop-propagation.directive.js +1 -1
- package/esm2015/lib/stop-propagation/stop-propagation.module.js +1 -1
- package/esm2015/lib/table/index.js +1 -1
- package/esm2015/lib/table/table-action-color.enum.js +1 -1
- package/esm2015/lib/table/table-database.js +1 -1
- package/esm2015/lib/table/table-datasource.js +1 -1
- package/esm2015/lib/table/table-model.interface.js +1 -1
- package/esm2015/lib/table/table.component.js +1 -1
- package/esm2015/lib/table/table.module.js +1 -1
- package/esm2015/lib/tool/index.js +1 -1
- package/esm2015/lib/tool/shared/index.js +1 -1
- package/esm2015/lib/tool/shared/tool-component.js +1 -1
- package/esm2015/lib/tool/shared/tool.interface.js +1 -1
- package/esm2015/lib/tool/shared/tool.service.js +1 -1
- package/esm2015/lib/tool/shared/toolbox.enums.js +1 -1
- package/esm2015/lib/tool/shared/toolbox.js +1 -1
- package/esm2015/lib/tool/tool.module.js +1 -1
- package/esm2015/lib/tool/toolbox/toolbox.animation.js +1 -1
- package/esm2015/lib/tool/toolbox/toolbox.component.js +1 -1
- package/esm2015/lib/tool/toolbox/toolbox.module.js +1 -1
- package/esm2015/lib/widget/index.js +1 -1
- package/esm2015/lib/widget/shared/index.js +1 -1
- package/esm2015/lib/widget/shared/widget.interfaces.js +1 -1
- package/esm2015/lib/widget/shared/widget.js +1 -1
- package/esm2015/lib/widget/shared/widget.service.js +1 -1
- package/esm2015/lib/widget/widget-outlet/widget-outlet.component.js +1 -1
- package/esm2015/lib/widget/widget-outlet/widget-outlet.module.js +1 -1
- package/esm2015/lib/widget/widget.module.js +1 -1
- package/esm2015/lib/workspace/index.js +1 -1
- package/esm2015/lib/workspace/shared/index.js +1 -1
- package/esm2015/lib/workspace/shared/store.js +1 -1
- package/esm2015/lib/workspace/shared/workspace.interfaces.js +1 -1
- package/esm2015/lib/workspace/shared/workspace.js +1 -1
- package/esm2015/lib/workspace/workspace-selector/workspace-selector.component.js +5 -3
- package/esm2015/lib/workspace/workspace-selector/workspace-selector.module.js +1 -1
- package/esm2015/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.component.js +1 -1
- package/esm2015/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.module.js +1 -1
- package/esm2015/lib/workspace/workspace.module.js +1 -1
- package/esm2015/public_api.js +3 -1
- package/fesm2015/igo2-common.js +675 -151
- package/fesm2015/igo2-common.js.map +1 -1
- package/lib/dom/dom.interfaces.d.ts +10 -0
- package/lib/dom/dom.module.d.ts +8 -0
- package/lib/dom/dom.service.d.ts +10 -0
- package/lib/dom/index.d.ts +2 -0
- package/lib/entity/entity-table/entity-table.component.d.ts +55 -4
- package/lib/entity/entity-table/entity-table.module.d.ts +17 -11
- package/lib/entity/shared/entity.enums.d.ts +1 -0
- package/lib/entity/shared/entity.interfaces.d.ts +24 -0
- package/lib/image/secure-image.pipe.d.ts +3 -1
- package/lib/workspace/workspace-selector/workspace-selector.component.d.ts +5 -1
- package/package.json +3 -3
- package/public_api.d.ts +2 -0
- package/style/common.theming.scss +12 -12
- package/style/partial/action.scss +18 -18
- package/style/partial/common.variables.scss +8 -8
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class IgoDOMModule {
|
|
4
|
+
static forRoot(): ModuleWithProviders<IgoDOMModule>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoDOMModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoDOMModule, never, never, never>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IgoDOMModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { DOMOptions, DOMValue } from './dom.interfaces';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DOMService {
|
|
5
|
+
private http;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
getDom(dom: DOMOptions): Promise<DOMValue[]>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DOMService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DOMService>;
|
|
10
|
+
}
|
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
import { EventEmitter, ChangeDetectorRef, OnInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
1
|
+
import { EventEmitter, ChangeDetectorRef, OnInit, OnDestroy, OnChanges, SimpleChanges, ElementRef } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
3
|
import { EntityRecord, EntityState, EntityStore, EntityTableTemplate, EntityTableColumn, EntityTableColumnRenderer, EntityTableSelectionState, EntityTableScrollBehavior } from '../shared';
|
|
4
4
|
import { MatPaginator } from '@angular/material/paginator';
|
|
5
5
|
import { MatTableDataSource } from '@angular/material/table';
|
|
6
6
|
import { EntityTablePaginatorOptions } from '../entity-table-paginator/entity-table-paginator.interface';
|
|
7
|
+
import { FormBuilder, NgControl, NgForm, FormControlName, FormGroup } from '@angular/forms';
|
|
8
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
9
|
+
import { DateAdapter, ErrorStateMatcher } from '@angular/material/core';
|
|
7
10
|
import * as i0 from "@angular/core";
|
|
8
11
|
export declare class EntityTableComponent implements OnInit, OnChanges, OnDestroy {
|
|
9
12
|
private cdRef;
|
|
13
|
+
private formBuilder;
|
|
14
|
+
protected _focusMonitor: FocusMonitor;
|
|
15
|
+
protected _elementRef: ElementRef<HTMLElement>;
|
|
16
|
+
ngControl: NgControl;
|
|
17
|
+
protected _parentForm: NgForm;
|
|
18
|
+
protected _controlName: FormControlName;
|
|
19
|
+
protected _defaultErrorStateMatcher: ErrorStateMatcher;
|
|
20
|
+
private dateAdapter;
|
|
10
21
|
entitySortChange$: BehaviorSubject<boolean>;
|
|
22
|
+
formGroup: FormGroup;
|
|
23
|
+
filteredOptions: Observable<any[]>;
|
|
11
24
|
/**
|
|
12
25
|
* Reference to the column renderer types
|
|
13
26
|
* @internal
|
|
@@ -114,7 +127,7 @@ export declare class EntityTableComponent implements OnInit, OnChanges, OnDestro
|
|
|
114
127
|
* @internal
|
|
115
128
|
*/
|
|
116
129
|
get fixedHeader(): boolean;
|
|
117
|
-
constructor(cdRef: ChangeDetectorRef);
|
|
130
|
+
constructor(cdRef: ChangeDetectorRef, formBuilder: FormBuilder, _focusMonitor: FocusMonitor, _elementRef: ElementRef<HTMLElement>, ngControl: NgControl, _parentForm: NgForm, _controlName: FormControlName, _defaultErrorStateMatcher: ErrorStateMatcher, dateAdapter: DateAdapter<Date>);
|
|
118
131
|
/**
|
|
119
132
|
* Track the selection state to properly display the selection checkboxes
|
|
120
133
|
* @internal
|
|
@@ -124,6 +137,31 @@ export declare class EntityTableComponent implements OnInit, OnChanges, OnDestro
|
|
|
124
137
|
* @internal
|
|
125
138
|
*/
|
|
126
139
|
ngOnChanges(changes: SimpleChanges): void;
|
|
140
|
+
/**
|
|
141
|
+
* Process text or number value change (edition)
|
|
142
|
+
*/
|
|
143
|
+
onValueChange(column: string, record: EntityRecord<any>, event: any): void;
|
|
144
|
+
/**
|
|
145
|
+
* Process boolean value change (edition)
|
|
146
|
+
*/
|
|
147
|
+
onBooleanValueChange(column: string, record: EntityRecord<any>, event: any): void;
|
|
148
|
+
/**
|
|
149
|
+
* Process select value change (edition)
|
|
150
|
+
*/
|
|
151
|
+
onSelectValueChange(column: string, record: EntityRecord<any>, event: any): void;
|
|
152
|
+
/**
|
|
153
|
+
* Process autocomplete value change (edition)
|
|
154
|
+
*/
|
|
155
|
+
onAutocompleteValueChange(column: string, record: EntityRecord<any>, event: any): void;
|
|
156
|
+
/**
|
|
157
|
+
* Process date value change (edition)
|
|
158
|
+
*/
|
|
159
|
+
onDateChange(column: string, record: EntityRecord<any>, event: any): void;
|
|
160
|
+
/**
|
|
161
|
+
* Enable edition mode for one row
|
|
162
|
+
* More than one row can be edited at the same time
|
|
163
|
+
*/
|
|
164
|
+
private enableEdit;
|
|
127
165
|
private handleDatasource;
|
|
128
166
|
/**
|
|
129
167
|
* Unbind the store watcher
|
|
@@ -221,6 +259,15 @@ export declare class EntityTableComponent implements OnInit, OnChanges, OnDestro
|
|
|
221
259
|
* @internal
|
|
222
260
|
*/
|
|
223
261
|
getValue(record: EntityRecord<object>, column: EntityTableColumn): any;
|
|
262
|
+
/**
|
|
263
|
+
* Method to access an entity's validation values
|
|
264
|
+
* @param column Column
|
|
265
|
+
* @param validationType string
|
|
266
|
+
* @returns Any value (false if no validation or not the one concerned)
|
|
267
|
+
* @internal
|
|
268
|
+
*/
|
|
269
|
+
getValidationAttributeValue(column: EntityTableColumn, validationType: string): any;
|
|
270
|
+
isEdition(record: any): boolean;
|
|
224
271
|
/**
|
|
225
272
|
* Return the type of renderer of a column
|
|
226
273
|
* @param column Column
|
|
@@ -270,6 +317,10 @@ export declare class EntityTableComponent implements OnInit, OnChanges, OnDestro
|
|
|
270
317
|
* @internal
|
|
271
318
|
*/
|
|
272
319
|
onButtonClick(clickFunc: (entity: object, record?: EntityRecord<object>) => void, record: EntityRecord<object>): void;
|
|
273
|
-
|
|
320
|
+
/**
|
|
321
|
+
* Retrieve column name without his "properties" tag (useful for edition workspace properties)
|
|
322
|
+
*/
|
|
323
|
+
getColumnKeyWithoutPropertiesTag(column: string): string;
|
|
324
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntityTableComponent, [null, null, null, null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, null, null]>;
|
|
274
325
|
static ɵcmp: i0.ɵɵComponentDeclaration<EntityTableComponent, "igo-entity-table", never, { "store": "store"; "paginator": "paginator"; "template": "template"; "scrollBehavior": "scrollBehavior"; "sortNullsFirst": "sortNullsFirst"; "withPaginator": "withPaginator"; "paginatorOptions": "paginatorOptions"; }, { "entityClick": "entityClick"; "entitySelectChange": "entitySelectChange"; "entitySortChange": "entitySortChange"; }, never, never>;
|
|
275
326
|
}
|
|
@@ -3,21 +3,27 @@ import * as i1 from "./entity-table.component";
|
|
|
3
3
|
import * as i2 from "./entity-table-row.directive";
|
|
4
4
|
import * as i3 from "@angular/common";
|
|
5
5
|
import * as i4 from "@angular/material/table";
|
|
6
|
-
import * as i5 from "@angular/material/
|
|
7
|
-
import * as i6 from "@angular/material/
|
|
8
|
-
import * as i7 from "@angular/material/
|
|
9
|
-
import * as i8 from "@angular/material/
|
|
10
|
-
import * as i9 from "@angular/material/
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "../../
|
|
15
|
-
import * as i14 from "
|
|
6
|
+
import * as i5 from "@angular/material/autocomplete";
|
|
7
|
+
import * as i6 from "@angular/material/sort";
|
|
8
|
+
import * as i7 from "@angular/material/icon";
|
|
9
|
+
import * as i8 from "@angular/material/button";
|
|
10
|
+
import * as i9 from "@angular/material/checkbox";
|
|
11
|
+
import * as i10 from "@angular/material/paginator";
|
|
12
|
+
import * as i11 from "@angular/material/select";
|
|
13
|
+
import * as i12 from "../../stop-propagation/stop-propagation.module";
|
|
14
|
+
import * as i13 from "../../custom-html/custom-html.module";
|
|
15
|
+
import * as i14 from "../entity-table-paginator/entity-table-paginator.module";
|
|
16
|
+
import * as i15 from "../../image/image.module";
|
|
17
|
+
import * as i16 from "@igo2/core";
|
|
18
|
+
import * as i17 from "@angular/forms";
|
|
19
|
+
import * as i18 from "@angular/material/input";
|
|
20
|
+
import * as i19 from "@angular/material/datepicker";
|
|
21
|
+
import * as i20 from "@angular/material/tooltip";
|
|
16
22
|
/**
|
|
17
23
|
* @ignore
|
|
18
24
|
*/
|
|
19
25
|
export declare class IgoEntityTableModule {
|
|
20
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgoEntityTableModule, never>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoEntityTableModule, [typeof i1.EntityTableComponent, typeof i2.EntityTableRowDirective], [typeof i3.CommonModule, typeof i4.MatTableModule, typeof i5.
|
|
27
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoEntityTableModule, [typeof i1.EntityTableComponent, typeof i2.EntityTableRowDirective], [typeof i3.CommonModule, typeof i4.MatTableModule, typeof i5.MatAutocompleteModule, typeof i6.MatSortModule, typeof i7.MatIconModule, typeof i8.MatButtonModule, typeof i9.MatCheckboxModule, typeof i10.MatPaginatorModule, typeof i11.MatSelectModule, typeof i12.IgoStopPropagationModule, typeof i13.IgoCustomHtmlModule, typeof i14.IgoEntityTablePaginatorModule, typeof i15.IgoImageModule, typeof i16.IgoLanguageModule, typeof i17.FormsModule, typeof i17.ReactiveFormsModule, typeof i18.MatInputModule, typeof i19.MatDatepickerModule, typeof i20.MatTooltipModule], [typeof i1.EntityTableComponent]>;
|
|
22
28
|
static ɵinj: i0.ɵɵInjectorDeclaration<IgoEntityTableModule>;
|
|
23
29
|
}
|
|
@@ -10,6 +10,7 @@ export interface EntityRecord<E extends object, S extends EntityState = EntitySt
|
|
|
10
10
|
state: S;
|
|
11
11
|
revision: number;
|
|
12
12
|
ref: string;
|
|
13
|
+
edition?: boolean;
|
|
13
14
|
}
|
|
14
15
|
export interface EntityStoreOptions {
|
|
15
16
|
getKey?: (entity: object) => EntityKey;
|
|
@@ -69,20 +70,43 @@ export interface EntityTableTemplate {
|
|
|
69
70
|
[key: string]: boolean;
|
|
70
71
|
};
|
|
71
72
|
}
|
|
73
|
+
export interface EntityTableColumnValidation {
|
|
74
|
+
readonly?: boolean;
|
|
75
|
+
mandatory?: boolean;
|
|
76
|
+
maxlength?: number;
|
|
77
|
+
minlength?: number;
|
|
78
|
+
minValue?: number;
|
|
79
|
+
maxValue?: number;
|
|
80
|
+
}
|
|
81
|
+
export interface TableRelation {
|
|
82
|
+
table: string;
|
|
83
|
+
}
|
|
72
84
|
export interface EntityTableColumn {
|
|
85
|
+
validation?: EntityTableColumnValidation;
|
|
73
86
|
name: string;
|
|
74
87
|
title: string;
|
|
75
88
|
renderer?: EntityTableColumnRenderer;
|
|
76
89
|
valueAccessor?: (entity: object, record: EntityRecord<object>) => any;
|
|
77
90
|
visible?: boolean;
|
|
91
|
+
linkColumnForce?: string;
|
|
78
92
|
sort?: boolean;
|
|
93
|
+
type?: string;
|
|
94
|
+
multiple?: boolean;
|
|
95
|
+
domainValues?: Array<SelectOption>;
|
|
96
|
+
relation?: TableRelation;
|
|
79
97
|
cellClassFunc?: (entity: object, record: EntityRecord<object>) => {
|
|
80
98
|
[key: string]: boolean;
|
|
81
99
|
};
|
|
82
100
|
}
|
|
101
|
+
export interface SelectOption {
|
|
102
|
+
id: number;
|
|
103
|
+
value: string;
|
|
104
|
+
}
|
|
83
105
|
export interface EntityTableButton {
|
|
84
106
|
icon: string;
|
|
85
107
|
click: (entity: object, record: EntityRecord<object>) => void;
|
|
86
108
|
color?: 'primary' | 'accent' | 'warn';
|
|
109
|
+
disabled?: boolean;
|
|
87
110
|
style?: 'mat-mini-fab' | 'mat-icon-button';
|
|
111
|
+
editMode?: boolean;
|
|
88
112
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
+
import { ConfigService } from '@igo2/core';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class SecureImagePipe implements PipeTransform {
|
|
6
7
|
private http;
|
|
7
|
-
|
|
8
|
+
private configService?;
|
|
9
|
+
constructor(http: HttpClient, configService?: ConfigService);
|
|
8
10
|
transform(url: string): Observable<string>;
|
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<SecureImagePipe, never>;
|
|
10
12
|
static ɵpipe: i0.ɵɵPipeDeclaration<SecureImagePipe, "secureImage">;
|
|
@@ -10,6 +10,10 @@ export declare class WorkspaceSelectorComponent {
|
|
|
10
10
|
* Store that holds the available workspaces.
|
|
11
11
|
*/
|
|
12
12
|
store: WorkspaceStore;
|
|
13
|
+
/**
|
|
14
|
+
* Wheither the selector must be disabled or not.
|
|
15
|
+
*/
|
|
16
|
+
disabled: boolean;
|
|
13
17
|
/**
|
|
14
18
|
* Event emitted when an workspace is selected or unselected
|
|
15
19
|
*/
|
|
@@ -31,5 +35,5 @@ export declare class WorkspaceSelectorComponent {
|
|
|
31
35
|
value: Workspace;
|
|
32
36
|
}): void;
|
|
33
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<WorkspaceSelectorComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WorkspaceSelectorComponent, "igo-workspace-selector", never, { "store": "store"; }, { "selectedChange": "selectedChange"; }, never, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WorkspaceSelectorComponent, "igo-workspace-selector", never, { "store": "store"; "disabled": "disabled"; }, { "selectedChange": "selectedChange"; }, never, never>;
|
|
35
39
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igo2/common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"description": "IGO Library",
|
|
5
5
|
"author": "MSP",
|
|
6
6
|
"keywords": [
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"@angular/common": "^12.2.9",
|
|
20
20
|
"@angular/core": "^12.2.9",
|
|
21
21
|
"@angular/material": "^12.2.9",
|
|
22
|
-
"@igo2/core": "^1.
|
|
23
|
-
"@igo2/utils": "^1.
|
|
22
|
+
"@igo2/core": "^1.12.0",
|
|
23
|
+
"@igo2/utils": "^1.12.0",
|
|
24
24
|
"scroll-into-view-if-needed": "^2.2.20",
|
|
25
25
|
"typy": "^3.3.0"
|
|
26
26
|
},
|
package/public_api.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './lib/collapsible/collapsible.module';
|
|
|
8
8
|
export * from './lib/confirm-dialog/confirm-dialog.module';
|
|
9
9
|
export * from './lib/context-menu/context-menu.module';
|
|
10
10
|
export * from './lib/custom-html/custom-html.module';
|
|
11
|
+
export * from './lib/dom/dom.module';
|
|
11
12
|
export * from './lib/drag-drop/drag-drop.module';
|
|
12
13
|
export * from './lib/dynamic-component/dynamic-component.module';
|
|
13
14
|
export * from './lib/dynamic-component/dynamic-outlet/dynamic-outlet.module';
|
|
@@ -48,6 +49,7 @@ export * from './lib/confirm-dialog';
|
|
|
48
49
|
export * from './lib/context-menu';
|
|
49
50
|
export * from './lib/custom-html';
|
|
50
51
|
export * from './lib/drag-drop';
|
|
52
|
+
export * from './lib/dom';
|
|
51
53
|
export * from './lib/dynamic-component';
|
|
52
54
|
export * from './lib/form';
|
|
53
55
|
export * from './lib/home-button';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@import '~shepherd.js/dist/css/shepherd.css';
|
|
2
|
-
|
|
3
|
-
@mixin igo-common-theming($theme, $typography) {
|
|
4
|
-
@include igo-action-theming($theme);
|
|
5
|
-
@include igo-collapsible-theming($theme);
|
|
6
|
-
@include igo-entity-theming($theme);
|
|
7
|
-
@include igo-list-theming($theme);
|
|
8
|
-
@include igo-panel-theming($theme);
|
|
9
|
-
@include igo-tool-theming($theme);
|
|
10
|
-
@include igo-tour-theming($theme);
|
|
11
|
-
@include igo-home-button-theming($theme);
|
|
12
|
-
}
|
|
1
|
+
@import '~shepherd.js/dist/css/shepherd.css';
|
|
2
|
+
|
|
3
|
+
@mixin igo-common-theming($theme, $typography) {
|
|
4
|
+
@include igo-action-theming($theme);
|
|
5
|
+
@include igo-collapsible-theming($theme);
|
|
6
|
+
@include igo-entity-theming($theme);
|
|
7
|
+
@include igo-list-theming($theme);
|
|
8
|
+
@include igo-panel-theming($theme);
|
|
9
|
+
@include igo-tool-theming($theme);
|
|
10
|
+
@include igo-tour-theming($theme);
|
|
11
|
+
@include igo-home-button-theming($theme);
|
|
12
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
.igo-actionbar-overlay {
|
|
2
|
-
min-width: inherit !important;
|
|
3
|
-
padding-top: 0;
|
|
4
|
-
padding-bottom: 0;
|
|
5
|
-
|
|
6
|
-
.mat-list {
|
|
7
|
-
padding-top: 0
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.mat-list .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text {
|
|
11
|
-
padding-right: 16px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.mat-menu-content:not(:empty) {
|
|
15
|
-
padding-top: 0;
|
|
16
|
-
padding-bottom: 0;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
1
|
+
.igo-actionbar-overlay {
|
|
2
|
+
min-width: inherit !important;
|
|
3
|
+
padding-top: 0;
|
|
4
|
+
padding-bottom: 0;
|
|
5
|
+
|
|
6
|
+
.mat-list {
|
|
7
|
+
padding-top: 0
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.mat-list .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text {
|
|
11
|
+
padding-right: 16px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.mat-menu-content:not(:empty) {
|
|
15
|
+
padding-top: 0;
|
|
16
|
+
padding-bottom: 0;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*** List ***/
|
|
2
|
-
$igo-list-item-height: 46px;
|
|
3
|
-
$igo-list-item-padding: 3px;
|
|
4
|
-
$igo-list-item-icon-padding: 8px;
|
|
5
|
-
|
|
6
|
-
/*** Panel ***/
|
|
7
|
-
$igo-panel-header-height: 46px;
|
|
8
|
-
$igo-panel-header-padding: 3px;
|
|
1
|
+
/*** List ***/
|
|
2
|
+
$igo-list-item-height: 46px;
|
|
3
|
+
$igo-list-item-padding: 3px;
|
|
4
|
+
$igo-list-item-icon-padding: 8px;
|
|
5
|
+
|
|
6
|
+
/*** Panel ***/
|
|
7
|
+
$igo-panel-header-height: 46px;
|
|
8
|
+
$igo-panel-header-padding: 3px;
|