@igo2/common 19.0.3 → 20.0.0-next.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 (325) hide show
  1. package/action/index.d.ts +194 -3
  2. package/backdrop/index.d.ts +20 -3
  3. package/badge/index.d.ts +44 -3
  4. package/clickout/index.d.ts +20 -3
  5. package/clone/index.d.ts +18 -3
  6. package/collapsible/index.d.ts +43 -3
  7. package/color/index.d.ts +38 -3
  8. package/confirm-dialog/index.d.ts +39 -5
  9. package/context-menu/index.d.ts +50 -3
  10. package/custom-html/index.d.ts +30 -3
  11. package/dom/index.d.ts +34 -3
  12. package/drag-drop/index.d.ts +124 -3
  13. package/dynamic-component/index.d.ts +186 -3
  14. package/entity/index.d.ts +1532 -3
  15. package/environment/index.d.ts +15 -5
  16. package/fesm2022/igo2-common-action.mjs +28 -38
  17. package/fesm2022/igo2-common-action.mjs.map +1 -1
  18. package/fesm2022/igo2-common-backdrop.mjs +7 -7
  19. package/fesm2022/igo2-common-backdrop.mjs.map +1 -1
  20. package/fesm2022/igo2-common-badge.mjs +10 -13
  21. package/fesm2022/igo2-common-badge.mjs.map +1 -1
  22. package/fesm2022/igo2-common-clickout.mjs +10 -13
  23. package/fesm2022/igo2-common-clickout.mjs.map +1 -1
  24. package/fesm2022/igo2-common-clone.mjs +7 -7
  25. package/fesm2022/igo2-common-clone.mjs.map +1 -1
  26. package/fesm2022/igo2-common-collapsible.mjs +14 -18
  27. package/fesm2022/igo2-common-collapsible.mjs.map +1 -1
  28. package/fesm2022/igo2-common-color.mjs +9 -9
  29. package/fesm2022/igo2-common-color.mjs.map +1 -1
  30. package/fesm2022/igo2-common-confirm-dialog.mjs +19 -26
  31. package/fesm2022/igo2-common-confirm-dialog.mjs.map +1 -1
  32. package/fesm2022/igo2-common-context-menu.mjs +16 -21
  33. package/fesm2022/igo2-common-context-menu.mjs.map +1 -1
  34. package/fesm2022/igo2-common-custom-html.mjs +14 -17
  35. package/fesm2022/igo2-common-custom-html.mjs.map +1 -1
  36. package/fesm2022/igo2-common-dom.mjs +11 -14
  37. package/fesm2022/igo2-common-dom.mjs.map +1 -1
  38. package/fesm2022/igo2-common-drag-drop.mjs +15 -17
  39. package/fesm2022/igo2-common-drag-drop.mjs.map +1 -1
  40. package/fesm2022/igo2-common-dynamic-component.mjs +20 -27
  41. package/fesm2022/igo2-common-dynamic-component.mjs.map +1 -1
  42. package/fesm2022/igo2-common-entity.mjs +69 -108
  43. package/fesm2022/igo2-common-entity.mjs.map +1 -1
  44. package/fesm2022/igo2-common-flexible.mjs +13 -18
  45. package/fesm2022/igo2-common-flexible.mjs.map +1 -1
  46. package/fesm2022/igo2-common-form.mjs +77 -112
  47. package/fesm2022/igo2-common-form.mjs.map +1 -1
  48. package/fesm2022/igo2-common-home-button.mjs +7 -7
  49. package/fesm2022/igo2-common-home-button.mjs.map +1 -1
  50. package/fesm2022/igo2-common-icon.mjs +14 -21
  51. package/fesm2022/igo2-common-icon.mjs.map +1 -1
  52. package/fesm2022/igo2-common-image.mjs +53 -57
  53. package/fesm2022/igo2-common-image.mjs.map +1 -1
  54. package/fesm2022/igo2-common-interactive-tour.mjs +43 -56
  55. package/fesm2022/igo2-common-interactive-tour.mjs.map +1 -1
  56. package/fesm2022/igo2-common-json-dialog.mjs +19 -28
  57. package/fesm2022/igo2-common-json-dialog.mjs.map +1 -1
  58. package/fesm2022/igo2-common-keyvalue.mjs +7 -7
  59. package/fesm2022/igo2-common-keyvalue.mjs.map +1 -1
  60. package/fesm2022/igo2-common-list.mjs +16 -23
  61. package/fesm2022/igo2-common-list.mjs.map +1 -1
  62. package/fesm2022/igo2-common-panel.mjs +9 -9
  63. package/fesm2022/igo2-common-panel.mjs.map +1 -1
  64. package/fesm2022/igo2-common-resizable-bar.mjs +6 -6
  65. package/fesm2022/igo2-common-resizable-bar.mjs.map +1 -1
  66. package/fesm2022/igo2-common-select-value-dialog.mjs +28 -44
  67. package/fesm2022/igo2-common-select-value-dialog.mjs.map +1 -1
  68. package/fesm2022/igo2-common-sidenav.mjs +10 -16
  69. package/fesm2022/igo2-common-sidenav.mjs.map +1 -1
  70. package/fesm2022/igo2-common-spinner.mjs +15 -21
  71. package/fesm2022/igo2-common-spinner.mjs.map +1 -1
  72. package/fesm2022/igo2-common-stop-propagation.mjs +10 -10
  73. package/fesm2022/igo2-common-stop-propagation.mjs.map +1 -1
  74. package/fesm2022/igo2-common-table.mjs +9 -11
  75. package/fesm2022/igo2-common-table.mjs.map +1 -1
  76. package/fesm2022/igo2-common-tool.mjs +16 -22
  77. package/fesm2022/igo2-common-tool.mjs.map +1 -1
  78. package/fesm2022/igo2-common-widget.mjs +19 -24
  79. package/fesm2022/igo2-common-widget.mjs.map +1 -1
  80. package/fesm2022/igo2-common-workspace.mjs +20 -20
  81. package/fesm2022/igo2-common-workspace.mjs.map +1 -1
  82. package/flexible/index.d.ts +54 -3
  83. package/form/index.d.ts +429 -3
  84. package/home-button/index.d.ts +18 -3
  85. package/icon/index.d.ts +42 -3
  86. package/image/index.d.ts +35 -3
  87. package/index.d.ts +16 -5
  88. package/interactive-tour/index.d.ts +116 -5
  89. package/json-dialog/index.d.ts +34 -5
  90. package/keyvalue/index.d.ts +18 -3
  91. package/list/index.d.ts +102 -3
  92. package/package.json +10 -13
  93. package/panel/index.d.ts +20 -3
  94. package/resizable-bar/index.d.ts +37 -5
  95. package/select-value-dialog/index.d.ts +65 -5
  96. package/sidenav/index.d.ts +29 -3
  97. package/spinner/index.d.ts +51 -3
  98. package/src/style/partial/common-utils.scss +1 -1
  99. package/stop-propagation/index.d.ts +26 -3
  100. package/table/index.d.ts +105 -3
  101. package/tool/index.d.ts +289 -3
  102. package/widget/index.d.ts +105 -3
  103. package/workspace/index.d.ts +237 -3
  104. package/action/action.module.d.ts +0 -10
  105. package/action/actionbar/actionbar-item.component.d.ts +0 -73
  106. package/action/actionbar/actionbar.component.d.ts +0 -148
  107. package/action/actionbar/actionbar.module.d.ts +0 -10
  108. package/action/public_api.d.ts +0 -4
  109. package/action/shared/action.enums.d.ts +0 -5
  110. package/action/shared/action.interfaces.d.ts +0 -16
  111. package/action/shared/index.d.ts +0 -3
  112. package/action/shared/store.d.ts +0 -8
  113. package/action/src/action.theming.scss +0 -9
  114. package/action/src/actionbar/actionbar-item.theming.scss +0 -20
  115. package/backdrop/backdrop.component.d.ts +0 -8
  116. package/backdrop/backdrop.module.d.ts +0 -12
  117. package/backdrop/public_api.d.ts +0 -2
  118. package/badge/badge-icon.directive.d.ts +0 -34
  119. package/badge/badge-icon.module.d.ts +0 -12
  120. package/badge/public_api.d.ts +0 -2
  121. package/clickout/clickout.directive.d.ts +0 -10
  122. package/clickout/clickout.module.d.ts +0 -12
  123. package/clickout/public_api.d.ts +0 -2
  124. package/clone/clone.module.d.ts +0 -12
  125. package/clone/clone.pipe.d.ts +0 -7
  126. package/clone/public_api.d.ts +0 -2
  127. package/collapsible/collapse.directive.d.ts +0 -19
  128. package/collapsible/collapsible.component.d.ts +0 -13
  129. package/collapsible/collapsible.module.d.ts +0 -13
  130. package/collapsible/public_api.d.ts +0 -6
  131. package/color/color-picker-form-field/color-picker-form-field.component.d.ts +0 -29
  132. package/color/color-picker-form-field/color-picker-form-field.module.d.ts +0 -10
  133. package/color/color-picker-form-field/index.d.ts +0 -2
  134. package/color/public_api.d.ts +0 -1
  135. package/confirm-dialog/confirm-dialog.component.d.ts +0 -12
  136. package/confirm-dialog/confirm-dialog.interface.d.ts +0 -4
  137. package/confirm-dialog/confirm-dialog.module.d.ts +0 -12
  138. package/confirm-dialog/confirm-dialog.service.d.ts +0 -11
  139. package/confirm-dialog/public_api.d.ts +0 -4
  140. package/context-menu/context-menu.directive.d.ts +0 -21
  141. package/context-menu/context-menu.module.d.ts +0 -13
  142. package/context-menu/long-press.directive.d.ts +0 -19
  143. package/context-menu/public_api.d.ts +0 -6
  144. package/custom-html/custom-html.component.d.ts +0 -8
  145. package/custom-html/custom-html.module.d.ts +0 -13
  146. package/custom-html/custom-html.pipe.d.ts +0 -10
  147. package/custom-html/public_api.d.ts +0 -6
  148. package/dom/dom.interfaces.d.ts +0 -10
  149. package/dom/dom.module.d.ts +0 -14
  150. package/dom/dom.service.d.ts +0 -10
  151. package/dom/public_api.d.ts +0 -3
  152. package/drag-drop/drag-drop.directive.d.ts +0 -14
  153. package/drag-drop/drag-drop.module.d.ts +0 -13
  154. package/drag-drop/public_api.d.ts +0 -3
  155. package/drag-drop/tree-drag-drop/index.d.ts +0 -2
  156. package/drag-drop/tree-drag-drop/tree-drag-drop.directive.d.ts +0 -85
  157. package/drag-drop/tree-drag-drop/tree-drag-drop.interface.d.ts +0 -15
  158. package/dynamic-component/dynamic-component.module.d.ts +0 -10
  159. package/dynamic-component/dynamic-outlet/dynamic-outlet.component.d.ts +0 -66
  160. package/dynamic-component/dynamic-outlet/dynamic-outlet.module.d.ts +0 -10
  161. package/dynamic-component/public_api.d.ts +0 -4
  162. package/dynamic-component/shared/dynamic-component.d.ts +0 -84
  163. package/dynamic-component/shared/dynamic-component.interfaces.d.ts +0 -3
  164. package/dynamic-component/shared/dynamic-component.service.d.ts +0 -18
  165. package/dynamic-component/shared/index.d.ts +0 -3
  166. package/entity/entity-selector/entity-selector.component.d.ts +0 -93
  167. package/entity/entity-selector/entity-selector.module.d.ts +0 -10
  168. package/entity/entity-selector/index.d.ts +0 -2
  169. package/entity/entity-table/entity-table-row.directive.d.ts +0 -69
  170. package/entity/entity-table/entity-table.component.d.ts +0 -330
  171. package/entity/entity-table/entity-table.module.d.ts +0 -10
  172. package/entity/entity-table/index.d.ts +0 -2
  173. package/entity/entity-table-paginator/entity-table-paginator.component.d.ts +0 -50
  174. package/entity/entity-table-paginator/entity-table-paginator.interface.d.ts +0 -8
  175. package/entity/entity-table-paginator/entity-table-paginator.module.d.ts +0 -10
  176. package/entity/entity-table-paginator/index.d.ts +0 -3
  177. package/entity/entity.module.d.ts +0 -16
  178. package/entity/public_api.d.ts +0 -5
  179. package/entity/shared/entity.enums.d.ts +0 -23
  180. package/entity/shared/entity.interfaces.d.ts +0 -92
  181. package/entity/shared/entity.utils.d.ts +0 -49
  182. package/entity/shared/index.d.ts +0 -9
  183. package/entity/shared/state.d.ts +0 -108
  184. package/entity/shared/store.d.ts +0 -180
  185. package/entity/shared/strategies/filter-custom-function.d.ts +0 -51
  186. package/entity/shared/strategies/filter-selection.d.ts +0 -48
  187. package/entity/shared/strategies/index.d.ts +0 -3
  188. package/entity/shared/strategies/strategy.d.ts +0 -56
  189. package/entity/shared/transaction.d.ts +0 -171
  190. package/entity/shared/view.d.ts +0 -193
  191. package/entity/shared/watcher.d.ts +0 -72
  192. package/entity/src/entity-selector/entity-selector.theming.scss +0 -21
  193. package/entity/src/entity-table/entity-table.theming.scss +0 -21
  194. package/entity/src/entity.theming.scss +0 -12
  195. package/environment/environment.interface.d.ts +0 -13
  196. package/environment/public_api.d.ts +0 -1
  197. package/flexible/flexible.component.d.ts +0 -42
  198. package/flexible/flexible.module.d.ts +0 -12
  199. package/flexible/flexible.type.d.ts +0 -2
  200. package/flexible/public_api.d.ts +0 -3
  201. package/form/form/form.component.d.ts +0 -46
  202. package/form/form/form.module.d.ts +0 -10
  203. package/form/form/index.d.ts +0 -2
  204. package/form/form-dialog/form-dialog.component.d.ts +0 -19
  205. package/form/form-dialog/form-dialog.interface.d.ts +0 -16
  206. package/form/form-dialog/form-dialog.module.d.ts +0 -16
  207. package/form/form-dialog/form-dialog.service.d.ts +0 -11
  208. package/form/form-dialog/index.d.ts +0 -4
  209. package/form/form-field/form-field-select.component.d.ts +0 -50
  210. package/form/form-field/form-field-text.component.d.ts +0 -49
  211. package/form/form-field/form-field-textarea.component.d.ts +0 -39
  212. package/form/form-field/form-field.component.d.ts +0 -29
  213. package/form/form-field/form-field.directive.d.ts +0 -5
  214. package/form/form-field/form-field.module.d.ts +0 -13
  215. package/form/form-field/index.d.ts +0 -6
  216. package/form/form-group/form-group.component.d.ts +0 -44
  217. package/form/form-group/form-group.module.d.ts +0 -10
  218. package/form/form-group/index.d.ts +0 -2
  219. package/form/form.module.d.ts +0 -18
  220. package/form/public_api.d.ts +0 -6
  221. package/form/shared/form-field-component.d.ts +0 -1
  222. package/form/shared/form-field.service.d.ts +0 -16
  223. package/form/shared/form.interfaces.d.ts +0 -60
  224. package/form/shared/form.service.d.ts +0 -15
  225. package/form/shared/form.utils.d.ts +0 -7
  226. package/form/shared/index.d.ts +0 -5
  227. package/home-button/home-button.component.d.ts +0 -8
  228. package/home-button/home-button.module.d.ts +0 -10
  229. package/home-button/public_api.d.ts +0 -2
  230. package/icon/icon/icon.component.d.ts +0 -15
  231. package/icon/icon.provider.d.ts +0 -4
  232. package/icon/public_api.d.ts +0 -3
  233. package/icon/shared/icon.interface.d.ts +0 -4
  234. package/icon/shared/icon.service.d.ts +0 -12
  235. package/icon/shared/icons.d.ts +0 -11
  236. package/icon/shared/index.d.ts +0 -3
  237. package/image/image-error.directive.d.ts +0 -11
  238. package/image/image.module.d.ts +0 -13
  239. package/image/public_api.d.ts +0 -6
  240. package/image/secure-image.pipe.d.ts +0 -13
  241. package/interactive-tour/interactive-tour.component.d.ts +0 -33
  242. package/interactive-tour/interactive-tour.interface.d.ts +0 -35
  243. package/interactive-tour/interactive-tour.loader.d.ts +0 -18
  244. package/interactive-tour/interactive-tour.module.d.ts +0 -7
  245. package/interactive-tour/interactive-tour.service.d.ts +0 -30
  246. package/interactive-tour/public_api.d.ts +0 -5
  247. package/json-dialog/json-dialog.component.d.ts +0 -13
  248. package/json-dialog/json-dialog.module.d.ts +0 -12
  249. package/json-dialog/json-dialog.service.d.ts +0 -10
  250. package/json-dialog/public_api.d.ts +0 -3
  251. package/keyvalue/keyvalue.module.d.ts +0 -12
  252. package/keyvalue/keyvalue.pipe.d.ts +0 -7
  253. package/keyvalue/public_api.d.ts +0 -2
  254. package/list/list-item.directive.d.ts +0 -43
  255. package/list/list.component.d.ts +0 -51
  256. package/list/list.module.d.ts +0 -13
  257. package/list/public_api.d.ts +0 -6
  258. package/panel/panel.component.d.ts +0 -10
  259. package/panel/panel.module.d.ts +0 -10
  260. package/panel/public_api.d.ts +0 -2
  261. package/panel/src/panel.theming.scss +0 -20
  262. package/public_api.d.ts +0 -16
  263. package/resizable-bar/public_api.d.ts +0 -2
  264. package/resizable-bar/resizable-bar.component.d.ts +0 -23
  265. package/resizable-bar/shared/resize.directive.d.ts +0 -12
  266. package/select-value-dialog/public_api.d.ts +0 -5
  267. package/select-value-dialog/select-value-check-radio-dialog.component.d.ts +0 -25
  268. package/select-value-dialog/select-value-dialog.enums.d.ts +0 -4
  269. package/select-value-dialog/select-value-dialog.interface.d.ts +0 -16
  270. package/select-value-dialog/select-value-dialog.module.d.ts +0 -12
  271. package/select-value-dialog/select-value-dialog.service.d.ts +0 -11
  272. package/sidenav/public_api.d.ts +0 -2
  273. package/sidenav/sidenav-shim.directive.d.ts +0 -20
  274. package/sidenav/sidenav.module.d.ts +0 -12
  275. package/spinner/public_api.d.ts +0 -3
  276. package/spinner/spinner-activity.directive.d.ts +0 -32
  277. package/spinner/spinner.component.d.ts +0 -11
  278. package/spinner/spinner.module.d.ts +0 -14
  279. package/src/common.theme.scss +0 -18
  280. package/stop-propagation/public_api.d.ts +0 -6
  281. package/stop-propagation/stop-drop-propagation.directive.d.ts +0 -6
  282. package/stop-propagation/stop-propagation.directive.d.ts +0 -6
  283. package/stop-propagation/stop-propagation.module.d.ts +0 -13
  284. package/table/public_api.d.ts +0 -6
  285. package/table/table-action-color.enum.d.ts +0 -5
  286. package/table/table-database.d.ts +0 -10
  287. package/table/table-datasource.d.ts +0 -18
  288. package/table/table-model.interface.d.ts +0 -24
  289. package/table/table.component.d.ts +0 -40
  290. package/table/table.module.d.ts +0 -12
  291. package/tool/public_api.d.ts +0 -3
  292. package/tool/shared/index.d.ts +0 -5
  293. package/tool/shared/tool-component.d.ts +0 -2
  294. package/tool/shared/tool.interface.d.ts +0 -16
  295. package/tool/shared/tool.service.d.ts +0 -28
  296. package/tool/shared/toolbox.d.ts +0 -96
  297. package/tool/shared/toolbox.enums.d.ts +0 -1
  298. package/tool/src/tool.theming.scss +0 -5
  299. package/tool/src/toolbox/toolbox.theming.scss +0 -22
  300. package/tool/tool.module.d.ts +0 -15
  301. package/tool/toolbox/index.d.ts +0 -2
  302. package/tool/toolbox/toolbox.animation.d.ts +0 -2
  303. package/tool/toolbox/toolbox.component.d.ts +0 -126
  304. package/tool/toolbox/toolbox.module.d.ts +0 -10
  305. package/widget/public_api.d.ts +0 -3
  306. package/widget/shared/index.d.ts +0 -3
  307. package/widget/shared/widget.d.ts +0 -4
  308. package/widget/shared/widget.interfaces.d.ts +0 -12
  309. package/widget/shared/widget.service.d.ts +0 -10
  310. package/widget/widget-outlet/index.d.ts +0 -2
  311. package/widget/widget-outlet/widget-outlet.component.d.ts +0 -64
  312. package/widget/widget-outlet/widget-outlet.module.d.ts +0 -10
  313. package/widget/widget.module.d.ts +0 -10
  314. package/workspace/public_api.d.ts +0 -4
  315. package/workspace/shared/index.d.ts +0 -3
  316. package/workspace/shared/store.d.ts +0 -20
  317. package/workspace/shared/workspace.d.ts +0 -98
  318. package/workspace/shared/workspace.interfaces.d.ts +0 -9
  319. package/workspace/workspace-selector/index.d.ts +0 -2
  320. package/workspace/workspace-selector/workspace-selector.component.d.ts +0 -38
  321. package/workspace/workspace-selector/workspace-selector.module.d.ts +0 -10
  322. package/workspace/workspace-widget-outlet/index.d.ts +0 -2
  323. package/workspace/workspace-widget-outlet/workspace-widget-outlet.component.d.ts +0 -52
  324. package/workspace/workspace-widget-outlet/workspace-widget-outlet.module.d.ts +0 -10
  325. package/workspace/workspace.module.d.ts +0 -14
@@ -1,171 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { BehaviorSubject } from 'rxjs';
3
- import { EntityOperationType } from './entity.enums';
4
- import { EntityKey, EntityOperationState, EntityTransactionOptions } from './entity.interfaces';
5
- import { EntityStore } from './store';
6
- export interface EntityOperation<E extends object = object> {
7
- key: EntityKey;
8
- type: EntityOperationType;
9
- previous: E | undefined;
10
- current: E | undefined;
11
- store?: EntityStore<E>;
12
- meta?: Record<string, any>;
13
- }
14
- export type EntityTransactionCommitHandler = (transaction: EntityTransaction, operations: EntityOperation[]) => Observable<any>;
15
- /**
16
- * This class holds a reference to the insert, update and delete
17
- * operations performed on a store. This is useful to commit
18
- * these operations in a single pass or to cancel them.
19
- */
20
- export declare class EntityTransaction {
21
- /**
22
- * Store holding the operations on another store
23
- */
24
- readonly operations: EntityStore<EntityOperation, EntityOperationState>;
25
- /**
26
- * Method to get an entity's id
27
- */
28
- readonly getKey: (E: any) => EntityKey;
29
- /**
30
- * Whether there are pending operations
31
- */
32
- get empty$(): BehaviorSubject<boolean>;
33
- /**
34
- * Whether there are pending operations
35
- */
36
- get empty(): boolean;
37
- /**
38
- * Whether thise store is in commit phase
39
- */
40
- get inCommitPhase(): boolean;
41
- readonly inCommitPhase$: BehaviorSubject<boolean>;
42
- constructor(options?: EntityTransactionOptions);
43
- destroy(): void;
44
- /**
45
- * Insert an entity into a store. If no store is specified, an insert
46
- * operation is still created but the transaction won't add the new
47
- * entity to the store.
48
- * @param current The entity to insert
49
- * @param store Optional: The store to insert the entity into
50
- * @param meta Optional: Any metadata on the operation
51
- */
52
- insert(current: object, store?: EntityStore<object>, meta?: Record<string, any>): void;
53
- /**
54
- * Update an entity in a store. If no store is specified, an update
55
- * operation is still created but the transaction won't update the
56
- * entity into the store.
57
- * @param previous The entity before update
58
- * @param current The entity after update
59
- * @param store Optional: The store to update the entity into
60
- * @param meta Optional: Any metadata on the operation
61
- */
62
- update(previous: object, current: object, store?: EntityStore<object>, meta?: Record<string, any>): void;
63
- /**
64
- * Delete an entity from a store. If no store is specified, a delete
65
- * operation is still created but the transaction won't remove the
66
- * entity from the store.
67
- * @param previous The entity before delete
68
- * @param store Optional: The store to delete the entity from
69
- * @param meta Optional: Any metadata on the operation
70
- */
71
- delete(previous: object, store?: EntityStore<object>, meta?: Record<string, any>): void;
72
- /**
73
- * Commit operations the transaction. This method doesn't do much
74
- * in itself. The handler it receives does the hard work and it's
75
- * implementation is left to the caller. This method simply wraps
76
- * the handler into an error catching mechanism to update
77
- * the transaction afterward. The caller needs to subscribe to this
78
- * method's output (observable) for the commit to be performed.
79
- * @param operations Operations to commit
80
- * @param handler Function that handles the commit operation
81
- * @returns The handler output (observable)
82
- */
83
- commit(operations: EntityOperation[], handler: EntityTransactionCommitHandler): Observable<any>;
84
- /**
85
- * Commit all the operations of the transaction.
86
- * @param handler Function that handles the commit operation
87
- * @returns The handler output (observable)
88
- */
89
- commitAll(handler: EntityTransactionCommitHandler): Observable<any>;
90
- /**
91
- * Rollback this transaction
92
- */
93
- rollback(): void;
94
- /**
95
- * Rollback specific operations
96
- */
97
- rollbackOperations(operations: EntityOperation[]): void;
98
- /**
99
- * Clear this transaction
100
- * @todo Raise event and synchronize stores?
101
- */
102
- clear(): void;
103
- /**
104
- * Get any existing operation on an entity
105
- * @param entity Entity
106
- * @returns Either an insert, update or delete operation
107
- */
108
- getOperationByEntity(entity: object): EntityOperation;
109
- /**
110
- * Merge another transaction in this one
111
- * @param transaction Another transaction
112
- */
113
- mergeTransaction(transaction: EntityTransaction): void;
114
- /**
115
- * Create an insert operation and add an entity to the store
116
- * @param current The entity to insert
117
- * @param store Optional: The store to insert the entity into
118
- * @param meta Optional: Any metadata on the operation
119
- */
120
- private doInsert;
121
- /**
122
- * Create an update operation and update an entity into the store
123
- * @param previous The entity before update
124
- * @param current The entity after update
125
- * @param store Optional: The store to update the entity into
126
- * @param meta Optional: Any metadata on the operation
127
- */
128
- private doUpdate;
129
- /**
130
- * Create a delete operation and delete an entity from the store
131
- * @param previous The entity before delete
132
- * @param store Optional: The store to delete the entity from
133
- * @param meta Optional: Any metadata on the operation
134
- */
135
- private doDelete;
136
- /**
137
- * Remove committed operations from store
138
- * @param operations Commited operations
139
- * @todo Raise event and synchronize stores?
140
- */
141
- private resolveOperations;
142
- /**
143
- * On commit success, resolve commited operations and exit commit phase
144
- * @param operations Commited operations
145
- */
146
- private onCommitSuccess;
147
- /**
148
- * On commit error, abort transaction
149
- * @param operations Commited operations
150
- */
151
- private onCommitError;
152
- /**
153
- * Add an operation to the operations store
154
- * @param operation Operation to add
155
- */
156
- private addOperation;
157
- /**
158
- * Remove an operation from the operations store
159
- * @param operation Operation to remove
160
- */
161
- private removeOperation;
162
- /**
163
- * Get all the operations to commit
164
- * @returns Operations to commit
165
- */
166
- private getOperationsInCommit;
167
- /**
168
- * Check if the transaction is in the commit phase and throw an error if it is
169
- */
170
- private checkInCommitPhase;
171
- }
@@ -1,193 +0,0 @@
1
- import { BehaviorSubject, Observable } from 'rxjs';
2
- import { EntityFilterClause, EntityJoinClause, EntityKey, EntitySortClause } from './entity.interfaces';
3
- /**
4
- * An entity view streams entities from an observable source. These entities
5
- * can be filtered or sorted without affecting the source. A view can also
6
- * combine data from multiple sources, joined together.
7
- */
8
- export declare class EntityView<E extends object, V extends object = E> {
9
- private source$;
10
- /**
11
- * Observable stream of values
12
- */
13
- readonly values$: BehaviorSubject<V[]>;
14
- /**
15
- * Subscription to the source (and joined sources) values
16
- */
17
- private values$$;
18
- /**
19
- * Whether this view has been lifted
20
- */
21
- private lifted;
22
- /**
23
- * Join clauses
24
- */
25
- private joins;
26
- /**
27
- * Observable of a filter clause
28
- */
29
- private filter$;
30
- /**
31
- * Observable of filter clauses
32
- */
33
- private filters$;
34
- /**
35
- * Filters index
36
- */
37
- private filterIndex;
38
- /**
39
- * Observable of a sort clause
40
- */
41
- private sort$;
42
- /**
43
- * Method for indexing
44
- */
45
- get getKey(): (V: any) => EntityKey;
46
- private getKey$;
47
- /**
48
- * Number of entities
49
- */
50
- readonly count$: BehaviorSubject<number>;
51
- get count(): number;
52
- /**
53
- * Whether the store is empty
54
- */
55
- readonly empty$: BehaviorSubject<boolean>;
56
- get empty(): boolean;
57
- /**
58
- * Store index
59
- */
60
- get index(): Map<EntityKey, V>;
61
- private _index;
62
- constructor(source$: BehaviorSubject<E[]>);
63
- /**
64
- * Get a value from the view by key
65
- * @param key Key
66
- * @returns Value
67
- */
68
- get(key: EntityKey): V;
69
- /**
70
- * Get all the values
71
- * @returns Array of values
72
- */
73
- all(): V[];
74
- /**
75
- * Observe all the values
76
- * @returns Observable of values
77
- */
78
- all$(): BehaviorSubject<V[]>;
79
- /**
80
- * Get the first value that respects a criteria
81
- * @returns A value
82
- */
83
- firstBy(clause: EntityFilterClause<V>): V;
84
- /**
85
- * Observe the first value that respects a criteria
86
- * @returns Observable of a value
87
- */
88
- firstBy$(clause: EntityFilterClause<V>): Observable<V>;
89
- /**
90
- * Get all the values that respect a criteria
91
- * @returns Array of values
92
- */
93
- manyBy(clause: EntityFilterClause<V>): V[];
94
- /**
95
- * Observe all the values that respect a criteria
96
- * @returns Observable of values
97
- */
98
- manyBy$(clause: EntityFilterClause<V>): Observable<V[]>;
99
- /**
100
- * Clear the filter and sort and unsubscribe from the source
101
- */
102
- clear(): void;
103
- destroy(): void;
104
- /**
105
- * Create an index
106
- * @param getKey Method to get a value's id
107
- * @returns The view
108
- */
109
- createIndex(getKey: (E: any) => EntityKey): EntityView<E, V>;
110
- /**
111
- * Join another source to the stream (chainable)
112
- * @param clause Join clause
113
- * @returns The view
114
- */
115
- join(clause: EntityJoinClause): EntityView<E, V>;
116
- /**
117
- * Filter values (chainable)
118
- * @param clause Filter clause
119
- * @returns The view
120
- */
121
- filter(clause: EntityFilterClause<V>): EntityView<E, V>;
122
- /**
123
- * @param clause Filter clause
124
- * @returns The filter id
125
- */
126
- addFilter(clause: EntityFilterClause<V>): string;
127
- /**
128
- * Remove a filter by id
129
- * @param clause Filter clause
130
- */
131
- removeFilter(id: string): void;
132
- /**
133
- * Sort values (chainable)
134
- * @param clauseSort clause
135
- * @returns The view
136
- */
137
- sort(clause: EntitySortClause<V>): EntityView<E, V>;
138
- /**
139
- * Create the final observable
140
- * @returns Observable
141
- */
142
- lift(): void;
143
- /**
144
- * Create the source observable when no joins are defined
145
- * @returns Observable
146
- */
147
- private liftSource;
148
- /**
149
- * Create the source observable when joins are defined
150
- * @returns Observable
151
- */
152
- private liftJoinedSource;
153
- /**
154
- * Apply joins to a source's entity and return the final value
155
- * @returns Final value
156
- */
157
- private computeJoinedValue;
158
- /**
159
- * Filter and sort values before streaming them
160
- * @param values Values
161
- * @param filters Filter clauses
162
- * @param filter Filter clause
163
- * @param sort Sort clause
164
- * @returns Filtered and sorted values
165
- */
166
- private processValues;
167
- /**
168
- * Filter values
169
- * @param values Values
170
- * @param filters Filter clauses
171
- * @returns Filtered values
172
- */
173
- private filterValues;
174
- /**
175
- * Sort values
176
- * @param values Values
177
- * @param sort Sort clause
178
- * @returns Sorted values
179
- */
180
- private sortValues;
181
- /**
182
- * Set value and optionally generate an index
183
- * @param values Values
184
- * @param generateIndex boolean
185
- */
186
- private setValues;
187
- /**
188
- * Generate a complete index of all the values
189
- * @param entities Entities
190
- * @returns Index
191
- */
192
- private generateIndex;
193
- }
@@ -1,72 +0,0 @@
1
- import { ChangeDetectorRef } from '@angular/core';
2
- import { EntityStore } from './store';
3
- /**
4
- * This class is used to synchronize a component's changes
5
- * detection with an EntityStore changes. For example, it is frequent
6
- * to have a component subscribe to a store's selected entity and, at the same time,
7
- * this component provides a way to select an entity with, let's say, a click.
8
- *
9
- * This class automatically handles those case and triggers the compoent's
10
- * change detection when needed.
11
- *
12
- * Note: If the component observes the store's stateView, a workspace is
13
- * probably not required because the stateView catches any changes to the
14
- * entities and their state.
15
- */
16
- export declare class EntityStoreWatcher<E extends object> {
17
- /**
18
- * Component change detector
19
- */
20
- private cdRef;
21
- /**
22
- * Entity store
23
- */
24
- private store;
25
- /**
26
- * Component inner state
27
- */
28
- private innerStateIndex;
29
- /**
30
- * Subscription to the store's entities
31
- */
32
- private entities$$;
33
- /**
34
- * Subscription to the store's state
35
- */
36
- private state$$;
37
- constructor(store?: EntityStore<E>, cdRef?: ChangeDetectorRef);
38
- destroy(): void;
39
- /**
40
- * Bind this workspace to a store and start watching for changes
41
- * @param store Entity store
42
- */
43
- setStore(store?: EntityStore<E>): void;
44
- /**
45
- * Bind this workspace to a component's change detector
46
- * @param cdRef Change detector
47
- */
48
- setChangeDetector(cdRef?: ChangeDetectorRef): void;
49
- /**
50
- * Set up observers on a store's entities and their state
51
- * @param store Entity store
52
- */
53
- private setupObservers;
54
- /**
55
- * Teardown store observers
56
- */
57
- private teardownObservers;
58
- /**
59
- * When the entities change, always trigger the changes detection
60
- */
61
- private onEntitiesChange;
62
- /**
63
- * When the entities state change, trigger the change detection
64
- * only if the component has not handled these changes yet. For example,
65
- * the component might have initiated thoses changes itself.
66
- */
67
- private onStateChange;
68
- /**
69
- * Trigger the change detection of the workspace is bound to a change detector
70
- */
71
- private detectChanges;
72
- }
@@ -1,21 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
-
4
- @mixin theme($theme) {
5
- @include density($theme);
6
- }
7
-
8
- @mixin density($theme) {
9
- $density: mat.get-theme-density($theme);
10
-
11
- $theme: map.merge(
12
- $theme,
13
- (
14
- density: $density - 2
15
- )
16
- );
17
-
18
- igo-entity-selector {
19
- @include mat.form-field-density($theme);
20
- }
21
- }
@@ -1,21 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
-
4
- @mixin theme($theme) {
5
- @include density($theme);
6
- }
7
-
8
- @mixin density($theme) {
9
- $density: mat.get-theme-density($theme);
10
-
11
- $theme: map.merge(
12
- $theme,
13
- (
14
- density: $density - 1
15
- )
16
- );
17
-
18
- igo-entity-table {
19
- @include mat.table-density($theme);
20
- }
21
- }
@@ -1,12 +0,0 @@
1
- @use './entity-table/entity-table.theming' as entity-table;
2
- @use './entity-selector/entity-selector.theming' as entity-selector;
3
-
4
- @mixin themes($theme) {
5
- @include entity-table.theme($theme);
6
- @include entity-selector.theme($theme);
7
- }
8
-
9
- @mixin densities($theme) {
10
- @include entity-table.density($theme);
11
- @include entity-selector.density($theme);
12
- }
@@ -1,13 +0,0 @@
1
- export interface EnvironmentOptions {
2
- depot?: DepotOptions;
3
- interactiveTour?: InteractiveTourConfigOptions;
4
- }
5
- export interface DepotOptions {
6
- url: string;
7
- trainingGuides?: string[];
8
- }
9
- export interface InteractiveTourConfigOptions {
10
- activateInteractiveTour?: boolean;
11
- tourInMobile?: boolean;
12
- pathToConfigFile?: string;
13
- }
@@ -1 +0,0 @@
1
- export * from './environment.interface';
@@ -1,42 +0,0 @@
1
- import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
- import { MediaService } from '@igo2/core/media';
3
- import { FlexibleDirection, FlexibleState } from './flexible.type';
4
- import * as i0 from "@angular/core";
5
- export declare class FlexibleComponent implements OnInit, OnDestroy {
6
- private el;
7
- private mediaService;
8
- private cdr;
9
- static transitionTime: number;
10
- main: any;
11
- get initial(): string;
12
- set initial(value: string);
13
- private _initial;
14
- get collapsed(): string;
15
- set collapsed(value: string);
16
- private _collapsed;
17
- get expanded(): string;
18
- set expanded(value: string);
19
- private _expanded;
20
- get initialMobile(): string;
21
- set initialMobile(value: string);
22
- private _initialMobile;
23
- get collapsedMobile(): string;
24
- set collapsedMobile(value: string);
25
- private _collapsedMobile;
26
- get expandedMobile(): string;
27
- set expandedMobile(value: string);
28
- private _expandedMobile;
29
- get direction(): FlexibleDirection;
30
- set direction(value: FlexibleDirection);
31
- private _direction;
32
- get state(): FlexibleState;
33
- set state(value: FlexibleState);
34
- private _state;
35
- private mediaService$$;
36
- constructor(el: ElementRef, mediaService: MediaService, cdr: ChangeDetectorRef);
37
- ngOnInit(): void;
38
- ngOnDestroy(): void;
39
- private setSize;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<FlexibleComponent, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<FlexibleComponent, "igo-flexible", never, { "initial": { "alias": "initial"; "required": false; }; "collapsed": { "alias": "collapsed"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "initialMobile": { "alias": "initialMobile"; "required": false; }; "collapsedMobile": { "alias": "collapsedMobile"; "required": false; }; "expandedMobile": { "alias": "expandedMobile"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "state": { "alias": "state"; "required": false; }; }, {}, never, ["*", "[igoFlexibleFill]"], true, never>;
42
- }
@@ -1,12 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "./flexible.component";
4
- /**
5
- * @deprecated import the FlexibleComponent directly
6
- */
7
- export declare class IgoFlexibleModule {
8
- static forRoot(): ModuleWithProviders<IgoFlexibleModule>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<IgoFlexibleModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoFlexibleModule, never, [typeof i1.FlexibleComponent], [typeof i1.FlexibleComponent]>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<IgoFlexibleModule>;
12
- }
@@ -1,2 +0,0 @@
1
- export type FlexibleState = 'initial' | 'collapsed' | 'expanded' | 'transition';
2
- export type FlexibleDirection = 'column' | 'row';
@@ -1,3 +0,0 @@
1
- export * from './flexible.module';
2
- export * from './flexible.type';
3
- export * from './flexible.component';
@@ -1,46 +0,0 @@
1
- import { ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
- import { Form } from '../shared/form.interfaces';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * A configurable form
6
- */
7
- export declare class FormComponent implements OnChanges {
8
- /**
9
- * Form
10
- */
11
- form: Form;
12
- /**
13
- * Input data
14
- */
15
- formData: Record<string, any>;
16
- /**
17
- * Form autocomplete
18
- */
19
- autocomplete: string;
20
- /**
21
- * Event emitted when the form is submitted
22
- */
23
- submitForm: EventEmitter<Record<string, any>>;
24
- buttons: ElementRef;
25
- get hasButtons(): boolean;
26
- /**
27
- * Is the entity or the template change, recreate the form or repopulate it.
28
- * @internal
29
- */
30
- ngOnChanges(changes: SimpleChanges): void;
31
- /**
32
- * Transform the form data to a feature and emit an event
33
- * @param event Form submit event
34
- * @internal
35
- */
36
- onSubmit(): void;
37
- getData(): Record<string, any>;
38
- private setData;
39
- private updateDataWithFormField;
40
- /**
41
- * Clear form
42
- */
43
- private clear;
44
- static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
45
- static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "igo-form", never, { "form": { "alias": "form"; "required": false; }; "formData": { "alias": "formData"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; }, { "submitForm": "submitForm"; }, never, ["*", "[formButtons]"], true, never>;
46
- }
@@ -1,10 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./form.component";
3
- /**
4
- * @deprecated import the FormComponent directly
5
- */
6
- export declare class IgoFormFormModule {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<IgoFormFormModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoFormFormModule, never, [typeof i1.FormComponent], [typeof i1.FormComponent]>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<IgoFormFormModule>;
10
- }
@@ -1,2 +0,0 @@
1
- export * from './form.module';
2
- export * from './form.component';
@@ -1,19 +0,0 @@
1
- import { MatDialogRef } from '@angular/material/dialog';
2
- import { LanguageService } from '@igo2/core/language';
3
- import { BehaviorSubject } from 'rxjs';
4
- import { Form, FormService } from '../shared';
5
- import { FormDialogData } from './form-dialog.interface';
6
- import * as i0 from "@angular/core";
7
- export declare class FormDialogComponent {
8
- languageService: LanguageService;
9
- dialogRef: MatDialogRef<FormDialogComponent>;
10
- private formService;
11
- data: FormDialogData;
12
- form$: BehaviorSubject<Form>;
13
- data$: BehaviorSubject<Record<string, any>>;
14
- constructor(languageService: LanguageService, dialogRef: MatDialogRef<FormDialogComponent>, formService: FormService, data: FormDialogData);
15
- onSubmit(data: Record<string, any>): void;
16
- cancel(): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<FormDialogComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<FormDialogComponent, "igo-form-dialog", never, {}, {}, never, never, true, never>;
19
- }
@@ -1,16 +0,0 @@
1
- import { MatDialogConfig } from '@angular/material/dialog';
2
- import { BehaviorSubject } from 'rxjs';
3
- import { FormFieldConfig, FormGroupsConfig } from '../shared/form.interfaces';
4
- export interface FormDialogFormConfig {
5
- formFieldConfigs?: FormFieldConfig[];
6
- formGroupsConfigs?: FormGroupsConfig[];
7
- }
8
- export interface FormDialogData extends FormDialogOptions, FormDialogFormConfig {
9
- }
10
- export interface FormDialogOptions extends MatDialogConfig {
11
- data$?: BehaviorSubject<Record<string, any>>;
12
- title?: string;
13
- processButtonText?: string;
14
- cancelButtonText?: string;
15
- notice?: string;
16
- }