@igo2/common 1.10.0 → 1.11.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 (178) hide show
  1. package/bundles/igo2-common.umd.js +744 -251
  2. package/bundles/igo2-common.umd.js.map +1 -1
  3. package/esm2015/lib/action/action.module.js +1 -1
  4. package/esm2015/lib/action/actionbar/actionbar-item.component.js +1 -1
  5. package/esm2015/lib/action/actionbar/actionbar.component.js +1 -1
  6. package/esm2015/lib/action/actionbar/actionbar.module.js +1 -1
  7. package/esm2015/lib/action/index.js +1 -1
  8. package/esm2015/lib/action/shared/action.enums.js +1 -1
  9. package/esm2015/lib/action/shared/action.interfaces.js +1 -1
  10. package/esm2015/lib/action/shared/index.js +1 -1
  11. package/esm2015/lib/action/shared/store.js +1 -1
  12. package/esm2015/lib/backdrop/backdrop.component.js +1 -1
  13. package/esm2015/lib/backdrop/backdrop.module.js +1 -1
  14. package/esm2015/lib/backdrop/index.js +1 -1
  15. package/esm2015/lib/badge-icon/badge-icon.directive.js +1 -1
  16. package/esm2015/lib/badge-icon/badge-icon.module.js +1 -1
  17. package/esm2015/lib/badge-icon/index.js +1 -1
  18. package/esm2015/lib/clickout/clickout.directive.js +1 -1
  19. package/esm2015/lib/clickout/clickout.module.js +1 -1
  20. package/esm2015/lib/clickout/index.js +1 -1
  21. package/esm2015/lib/clone/clone.module.js +1 -1
  22. package/esm2015/lib/clone/clone.pipe.js +1 -1
  23. package/esm2015/lib/clone/index.js +1 -1
  24. package/esm2015/lib/collapsible/collapse.directive.js +1 -1
  25. package/esm2015/lib/collapsible/collapsible.component.js +1 -1
  26. package/esm2015/lib/collapsible/collapsible.module.js +1 -1
  27. package/esm2015/lib/collapsible/index.js +1 -1
  28. package/esm2015/lib/confirm-dialog/confirm-dialog.component.js +1 -1
  29. package/esm2015/lib/confirm-dialog/confirm-dialog.module.js +1 -1
  30. package/esm2015/lib/confirm-dialog/confirm-dialog.service.js +1 -1
  31. package/esm2015/lib/confirm-dialog/index.js +1 -1
  32. package/esm2015/lib/context-menu/context-menu.directive.js +1 -1
  33. package/esm2015/lib/context-menu/context-menu.module.js +1 -1
  34. package/esm2015/lib/context-menu/index.js +1 -1
  35. package/esm2015/lib/custom-html/custom-html.component.js +1 -1
  36. package/esm2015/lib/custom-html/custom-html.module.js +1 -1
  37. package/esm2015/lib/custom-html/custom-html.pipe.js +1 -1
  38. package/esm2015/lib/custom-html/index.js +1 -1
  39. package/esm2015/lib/drag-drop/drag-drop.module.js +1 -1
  40. package/esm2015/lib/drag-drop/index.js +1 -1
  41. package/esm2015/lib/dynamic-component/dynamic-component.module.js +1 -1
  42. package/esm2015/lib/dynamic-component/dynamic-outlet/dynamic-outlet.component.js +5 -2
  43. package/esm2015/lib/dynamic-component/dynamic-outlet/dynamic-outlet.module.js +1 -1
  44. package/esm2015/lib/dynamic-component/index.js +1 -1
  45. package/esm2015/lib/dynamic-component/shared/dynamic-component.interfaces.js +1 -1
  46. package/esm2015/lib/dynamic-component/shared/dynamic-component.js +1 -1
  47. package/esm2015/lib/dynamic-component/shared/dynamic-component.service.js +1 -1
  48. package/esm2015/lib/dynamic-component/shared/index.js +1 -1
  49. package/esm2015/lib/entity/entity-selector/entity-selector.component.js +1 -1
  50. package/esm2015/lib/entity/entity-selector/entity-selector.module.js +1 -1
  51. package/esm2015/lib/entity/entity-table/entity-table-row.directive.js +1 -1
  52. package/esm2015/lib/entity/entity-table/entity-table.component.js +547 -116
  53. package/esm2015/lib/entity/entity-table/entity-table.module.js +31 -4
  54. package/esm2015/lib/entity/entity-table-paginator/entity-table-paginator.component.js +1 -1
  55. package/esm2015/lib/entity/entity-table-paginator/entity-table-paginator.interface.js +1 -1
  56. package/esm2015/lib/entity/entity-table-paginator/entity-table-paginator.module.js +1 -1
  57. package/esm2015/lib/entity/entity.module.js +1 -1
  58. package/esm2015/lib/entity/index.js +1 -1
  59. package/esm2015/lib/entity/shared/entity.enums.js +2 -1
  60. package/esm2015/lib/entity/shared/entity.interfaces.js +1 -1
  61. package/esm2015/lib/entity/shared/entity.utils.js +1 -1
  62. package/esm2015/lib/entity/shared/index.js +1 -1
  63. package/esm2015/lib/entity/shared/state.js +1 -1
  64. package/esm2015/lib/entity/shared/store.js +1 -1
  65. package/esm2015/lib/entity/shared/strategies/filter-custom-function.js +1 -1
  66. package/esm2015/lib/entity/shared/strategies/filter-selection.js +1 -1
  67. package/esm2015/lib/entity/shared/strategies/index.js +1 -1
  68. package/esm2015/lib/entity/shared/strategies/strategy.js +1 -1
  69. package/esm2015/lib/entity/shared/transaction.js +1 -1
  70. package/esm2015/lib/entity/shared/view.js +1 -1
  71. package/esm2015/lib/entity/shared/watcher.js +1 -1
  72. package/esm2015/lib/flexible/flexible.component.js +1 -1
  73. package/esm2015/lib/flexible/flexible.module.js +1 -1
  74. package/esm2015/lib/flexible/flexible.type.js +1 -1
  75. package/esm2015/lib/flexible/index.js +1 -1
  76. package/esm2015/lib/form/form/form.component.js +1 -1
  77. package/esm2015/lib/form/form/form.module.js +1 -1
  78. package/esm2015/lib/form/form-field/form-field-select.component.js +1 -1
  79. package/esm2015/lib/form/form-field/form-field-text.component.js +1 -1
  80. package/esm2015/lib/form/form-field/form-field-textarea.component.js +1 -1
  81. package/esm2015/lib/form/form-field/form-field.component.js +1 -1
  82. package/esm2015/lib/form/form-field/form-field.module.js +1 -1
  83. package/esm2015/lib/form/form-field/index.js +1 -1
  84. package/esm2015/lib/form/form-group/form-group.component.js +1 -1
  85. package/esm2015/lib/form/form-group/form-group.module.js +1 -1
  86. package/esm2015/lib/form/form.module.js +1 -1
  87. package/esm2015/lib/form/index.js +1 -1
  88. package/esm2015/lib/form/shared/form-field-component.js +1 -1
  89. package/esm2015/lib/form/shared/form-field.service.js +1 -1
  90. package/esm2015/lib/form/shared/form.interfaces.js +1 -1
  91. package/esm2015/lib/form/shared/form.service.js +9 -5
  92. package/esm2015/lib/form/shared/form.utils.js +1 -1
  93. package/esm2015/lib/form/shared/index.js +1 -1
  94. package/esm2015/lib/home-button/home-button.component.js +1 -1
  95. package/esm2015/lib/home-button/home-button.module.js +1 -1
  96. package/esm2015/lib/home-button/index.js +1 -1
  97. package/esm2015/lib/image/image.module.js +1 -1
  98. package/esm2015/lib/image/index.js +1 -1
  99. package/esm2015/lib/image/secure-image.pipe.js +1 -1
  100. package/esm2015/lib/interactive-tour/index.js +1 -1
  101. package/esm2015/lib/interactive-tour/interactive-tour.component.js +1 -1
  102. package/esm2015/lib/interactive-tour/interactive-tour.interface.js +1 -1
  103. package/esm2015/lib/interactive-tour/interactive-tour.loader.js +1 -1
  104. package/esm2015/lib/interactive-tour/interactive-tour.module.js +1 -1
  105. package/esm2015/lib/interactive-tour/interactive-tour.service.js +1 -1
  106. package/esm2015/lib/json-dialog/index.js +1 -1
  107. package/esm2015/lib/json-dialog/json-dialog.component.js +1 -1
  108. package/esm2015/lib/json-dialog/json-dialog.module.js +1 -1
  109. package/esm2015/lib/json-dialog/json-dialog.service.js +1 -1
  110. package/esm2015/lib/keyvalue/index.js +1 -1
  111. package/esm2015/lib/keyvalue/keyvalue.module.js +1 -1
  112. package/esm2015/lib/keyvalue/keyvalue.pipe.js +1 -1
  113. package/esm2015/lib/list/index.js +1 -1
  114. package/esm2015/lib/list/list-item.directive.js +1 -1
  115. package/esm2015/lib/list/list.component.js +1 -1
  116. package/esm2015/lib/list/list.module.js +1 -1
  117. package/esm2015/lib/panel/index.js +1 -1
  118. package/esm2015/lib/panel/panel.component.js +1 -1
  119. package/esm2015/lib/panel/panel.module.js +1 -1
  120. package/esm2015/lib/sidenav/index.js +1 -1
  121. package/esm2015/lib/sidenav/sidenav-shim.directive.js +1 -1
  122. package/esm2015/lib/sidenav/sidenav.module.js +1 -1
  123. package/esm2015/lib/spinner/index.js +1 -1
  124. package/esm2015/lib/spinner/spinner-activity.directive.js +1 -1
  125. package/esm2015/lib/spinner/spinner.component.js +1 -1
  126. package/esm2015/lib/spinner/spinner.module.js +1 -1
  127. package/esm2015/lib/stop-propagation/index.js +1 -1
  128. package/esm2015/lib/stop-propagation/stop-drop-propagation.directive.js +1 -1
  129. package/esm2015/lib/stop-propagation/stop-propagation.directive.js +1 -1
  130. package/esm2015/lib/stop-propagation/stop-propagation.module.js +1 -1
  131. package/esm2015/lib/table/index.js +1 -1
  132. package/esm2015/lib/table/table-action-color.enum.js +1 -1
  133. package/esm2015/lib/table/table-database.js +1 -1
  134. package/esm2015/lib/table/table-datasource.js +1 -1
  135. package/esm2015/lib/table/table-model.interface.js +1 -1
  136. package/esm2015/lib/table/table.component.js +1 -1
  137. package/esm2015/lib/table/table.module.js +1 -1
  138. package/esm2015/lib/tool/index.js +1 -1
  139. package/esm2015/lib/tool/shared/index.js +1 -1
  140. package/esm2015/lib/tool/shared/tool-component.js +1 -1
  141. package/esm2015/lib/tool/shared/tool.interface.js +1 -1
  142. package/esm2015/lib/tool/shared/tool.service.js +1 -1
  143. package/esm2015/lib/tool/shared/toolbox.enums.js +1 -1
  144. package/esm2015/lib/tool/shared/toolbox.js +1 -1
  145. package/esm2015/lib/tool/tool.module.js +1 -1
  146. package/esm2015/lib/tool/toolbox/toolbox.animation.js +1 -1
  147. package/esm2015/lib/tool/toolbox/toolbox.component.js +1 -1
  148. package/esm2015/lib/tool/toolbox/toolbox.module.js +1 -1
  149. package/esm2015/lib/widget/index.js +1 -1
  150. package/esm2015/lib/widget/shared/index.js +1 -1
  151. package/esm2015/lib/widget/shared/widget.interfaces.js +1 -1
  152. package/esm2015/lib/widget/shared/widget.js +1 -1
  153. package/esm2015/lib/widget/shared/widget.service.js +1 -1
  154. package/esm2015/lib/widget/widget-outlet/widget-outlet.component.js +1 -1
  155. package/esm2015/lib/widget/widget-outlet/widget-outlet.module.js +1 -1
  156. package/esm2015/lib/widget/widget.module.js +1 -1
  157. package/esm2015/lib/workspace/index.js +1 -1
  158. package/esm2015/lib/workspace/shared/index.js +1 -1
  159. package/esm2015/lib/workspace/shared/store.js +1 -1
  160. package/esm2015/lib/workspace/shared/workspace.interfaces.js +1 -1
  161. package/esm2015/lib/workspace/shared/workspace.js +1 -1
  162. package/esm2015/lib/workspace/workspace-selector/workspace-selector.component.js +5 -3
  163. package/esm2015/lib/workspace/workspace-selector/workspace-selector.module.js +1 -1
  164. package/esm2015/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.component.js +1 -1
  165. package/esm2015/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.module.js +1 -1
  166. package/esm2015/lib/workspace/workspace.module.js +1 -1
  167. package/esm2015/public_api.js +1 -1
  168. package/fesm2015/igo2-common.js +600 -145
  169. package/fesm2015/igo2-common.js.map +1 -1
  170. package/lib/entity/entity-table/entity-table.component.d.ts +55 -4
  171. package/lib/entity/entity-table/entity-table.module.d.ts +17 -11
  172. package/lib/entity/shared/entity.enums.d.ts +1 -0
  173. package/lib/entity/shared/entity.interfaces.d.ts +23 -0
  174. package/lib/workspace/workspace-selector/workspace-selector.component.d.ts +5 -1
  175. package/package.json +3 -3
  176. package/style/common.theming.scss +12 -12
  177. package/style/partial/action.scss +18 -18
  178. package/style/partial/common.variables.scss +8 -8
@@ -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
- static ɵfac: i0.ɵɵFactoryDeclaration<EntityTableComponent, never>;
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/sort";
7
- import * as i6 from "@angular/material/icon";
8
- import * as i7 from "@angular/material/button";
9
- import * as i8 from "@angular/material/checkbox";
10
- import * as i9 from "@angular/material/paginator";
11
- import * as i10 from "../../stop-propagation/stop-propagation.module";
12
- import * as i11 from "../../custom-html/custom-html.module";
13
- import * as i12 from "../entity-table-paginator/entity-table-paginator.module";
14
- import * as i13 from "../../image/image.module";
15
- import * as i14 from "@igo2/core";
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.MatSortModule, typeof i6.MatIconModule, typeof i7.MatButtonModule, typeof i8.MatCheckboxModule, typeof i9.MatPaginatorModule, typeof i10.IgoStopPropagationModule, typeof i11.IgoCustomHtmlModule, typeof i12.IgoEntityTablePaginatorModule, typeof i13.IgoImageModule, typeof i14.IgoLanguageModule], [typeof i1.EntityTableComponent]>;
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
  }
@@ -7,6 +7,7 @@ export declare enum EntityTableColumnRenderer {
7
7
  Default = "Default",
8
8
  HTML = "HTML",
9
9
  UnsanitizedHTML = "UnsanitizedHTML",
10
+ Editable = "Editable",
10
11
  Icon = "Icon",
11
12
  ButtonGroup = "ButtonGroup"
12
13
  }
@@ -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,42 @@ 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;
78
91
  sort?: boolean;
92
+ type?: string;
93
+ multiple?: boolean;
94
+ domainValues?: Array<SelectOption>;
95
+ relation?: TableRelation;
79
96
  cellClassFunc?: (entity: object, record: EntityRecord<object>) => {
80
97
  [key: string]: boolean;
81
98
  };
82
99
  }
100
+ export interface SelectOption {
101
+ id: number;
102
+ value: string;
103
+ }
83
104
  export interface EntityTableButton {
84
105
  icon: string;
85
106
  click: (entity: object, record: EntityRecord<object>) => void;
86
107
  color?: 'primary' | 'accent' | 'warn';
108
+ disabled?: boolean;
87
109
  style?: 'mat-mini-fab' | 'mat-icon-button';
110
+ editMode?: boolean;
88
111
  }
@@ -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.10.0",
3
+ "version": "1.11.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.10.0",
23
- "@igo2/utils": "^1.10.0",
22
+ "@igo2/core": "^1.11.0",
23
+ "@igo2/utils": "^1.11.0",
24
24
  "scroll-into-view-if-needed": "^2.2.20",
25
25
  "typy": "^3.3.0"
26
26
  },
@@ -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;