@ng-atomic/components 4.14.1 → 4.16.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 (158) hide show
  1. package/esm2020/atoms/icon/icon.atom.mjs +2 -2
  2. package/esm2020/atoms/smart-menu-button/smart-menu-button.atom.mjs +3 -3
  3. package/esm2020/frames/auto-layout/auto-layout.frame.mjs +2 -2
  4. package/esm2020/frames/drawer/drawer.frame.mjs +12 -4
  5. package/esm2020/frames/line-up/line-up.frame.mjs +2 -2
  6. package/esm2020/frames/overlay/overlay.frame.mjs +2 -2
  7. package/esm2020/frames/scroll/scroll.frame.mjs +2 -2
  8. package/esm2020/frames/smart-menu/smart-menu.frame.mjs +2 -2
  9. package/esm2020/molecules/date-input-field/date-input-field.molecule.mjs +2 -2
  10. package/esm2020/molecules/select-input-field/select-input-field.molecule.mjs +2 -2
  11. package/esm2020/molecules/smart-column/smart-column.module.mjs +6 -23
  12. package/esm2020/molecules/smart-column/smart-column.molecule.mjs +13 -10
  13. package/esm2020/molecules/text-input-field/text-input-field.molecule.mjs +80 -16
  14. package/esm2020/organisms/action-buttons-section/action-buttons-section.organism.mjs +14 -12
  15. package/esm2020/organisms/back-navigator/back-navigator.organism.mjs +2 -2
  16. package/esm2020/organisms/card-input-section/card-input-section.organism.mjs +2 -2
  17. package/esm2020/organisms/cvc-and-exp-input-section/cvc-and-exp-input-section.organism.mjs +2 -2
  18. package/esm2020/organisms/date-input-section/date-input-section.organism.mjs +2 -2
  19. package/esm2020/organisms/heading/heading.organism.mjs +2 -2
  20. package/esm2020/organisms/navigation-list/navigation-list.organism.mjs +4 -4
  21. package/esm2020/organisms/navigator/navigator.organism.mjs +12 -12
  22. package/esm2020/organisms/select-input-section/select-input-section.organism.mjs +2 -2
  23. package/esm2020/organisms/smart-list/index.mjs +3 -0
  24. package/esm2020/organisms/smart-list/ng-atomic-components-organisms-smart-list.mjs +5 -0
  25. package/esm2020/organisms/smart-list/smart-list.module.mjs +40 -0
  26. package/esm2020/organisms/smart-list/smart-list.organism.mjs +98 -0
  27. package/esm2020/organisms/smart-table/smart-table.organism.mjs +18 -24
  28. package/esm2020/organisms/social-login-section/social-login-section.organism.mjs +2 -2
  29. package/esm2020/organisms/text-input-section/text-input-section.organism.mjs +5 -5
  30. package/esm2020/organisms/textarea-section/textarea-section.organism.mjs +2 -2
  31. package/esm2020/organisms/top-navigator/top-navigator.organism.mjs +2 -2
  32. package/esm2020/templates/entrance/entrance.template.mjs +38 -19
  33. package/esm2020/templates/menu/menu.template.mjs +3 -3
  34. package/esm2020/templates/smart-crud/smart-crud.template.mjs +16 -44
  35. package/esm2020/templates/smart-index/smart-index.module.mjs +5 -1
  36. package/esm2020/templates/smart-index/smart-index.template.mjs +57 -34
  37. package/fesm2015/ng-atomic-components-atoms-icon.mjs +2 -2
  38. package/fesm2015/ng-atomic-components-atoms-smart-menu-button.mjs +2 -2
  39. package/fesm2015/ng-atomic-components-atoms-smart-menu-button.mjs.map +1 -1
  40. package/fesm2015/ng-atomic-components-frames-auto-layout.mjs +2 -2
  41. package/fesm2015/ng-atomic-components-frames-drawer.mjs +12 -3
  42. package/fesm2015/ng-atomic-components-frames-drawer.mjs.map +1 -1
  43. package/fesm2015/ng-atomic-components-frames-line-up.mjs +2 -2
  44. package/fesm2015/ng-atomic-components-frames-overlay.mjs +2 -2
  45. package/fesm2015/ng-atomic-components-frames-scroll.mjs +2 -2
  46. package/fesm2015/ng-atomic-components-frames-smart-menu.mjs +2 -2
  47. package/fesm2015/ng-atomic-components-molecules-date-input-field.mjs +2 -2
  48. package/fesm2015/ng-atomic-components-molecules-select-input-field.mjs +2 -2
  49. package/fesm2015/ng-atomic-components-molecules-smart-column.mjs +11 -27
  50. package/fesm2015/ng-atomic-components-molecules-smart-column.mjs.map +1 -1
  51. package/fesm2015/ng-atomic-components-molecules-text-input-field.mjs +94 -15
  52. package/fesm2015/ng-atomic-components-molecules-text-input-field.mjs.map +1 -1
  53. package/fesm2015/ng-atomic-components-organisms-action-buttons-section.mjs +13 -11
  54. package/fesm2015/ng-atomic-components-organisms-action-buttons-section.mjs.map +1 -1
  55. package/fesm2015/ng-atomic-components-organisms-back-navigator.mjs +2 -2
  56. package/fesm2015/ng-atomic-components-organisms-card-input-section.mjs +2 -2
  57. package/fesm2015/ng-atomic-components-organisms-cvc-and-exp-input-section.mjs +2 -2
  58. package/fesm2015/ng-atomic-components-organisms-date-input-section.mjs +2 -2
  59. package/fesm2015/ng-atomic-components-organisms-heading.mjs +2 -2
  60. package/fesm2015/ng-atomic-components-organisms-navigation-list.mjs +3 -3
  61. package/fesm2015/ng-atomic-components-organisms-navigation-list.mjs.map +1 -1
  62. package/fesm2015/ng-atomic-components-organisms-navigator.mjs +11 -11
  63. package/fesm2015/ng-atomic-components-organisms-navigator.mjs.map +1 -1
  64. package/fesm2015/ng-atomic-components-organisms-select-input-section.mjs +2 -2
  65. package/fesm2015/ng-atomic-components-organisms-smart-list.mjs +160 -0
  66. package/fesm2015/ng-atomic-components-organisms-smart-list.mjs.map +1 -0
  67. package/fesm2015/ng-atomic-components-organisms-smart-table.mjs +17 -23
  68. package/fesm2015/ng-atomic-components-organisms-smart-table.mjs.map +1 -1
  69. package/fesm2015/ng-atomic-components-organisms-social-login-section.mjs +2 -2
  70. package/fesm2015/ng-atomic-components-organisms-text-input-section.mjs +4 -4
  71. package/fesm2015/ng-atomic-components-organisms-text-input-section.mjs.map +1 -1
  72. package/fesm2015/ng-atomic-components-organisms-textarea-section.mjs +2 -2
  73. package/fesm2015/ng-atomic-components-organisms-top-navigator.mjs +2 -2
  74. package/fesm2015/ng-atomic-components-templates-entrance.mjs +38 -19
  75. package/fesm2015/ng-atomic-components-templates-entrance.mjs.map +1 -1
  76. package/fesm2015/ng-atomic-components-templates-menu.mjs +2 -2
  77. package/fesm2015/ng-atomic-components-templates-menu.mjs.map +1 -1
  78. package/fesm2015/ng-atomic-components-templates-smart-crud.mjs +15 -43
  79. package/fesm2015/ng-atomic-components-templates-smart-crud.mjs.map +1 -1
  80. package/fesm2015/ng-atomic-components-templates-smart-index.mjs +66 -33
  81. package/fesm2015/ng-atomic-components-templates-smart-index.mjs.map +1 -1
  82. package/fesm2020/ng-atomic-components-atoms-icon.mjs +2 -2
  83. package/fesm2020/ng-atomic-components-atoms-smart-menu-button.mjs +2 -2
  84. package/fesm2020/ng-atomic-components-atoms-smart-menu-button.mjs.map +1 -1
  85. package/fesm2020/ng-atomic-components-frames-auto-layout.mjs +2 -2
  86. package/fesm2020/ng-atomic-components-frames-drawer.mjs +11 -3
  87. package/fesm2020/ng-atomic-components-frames-drawer.mjs.map +1 -1
  88. package/fesm2020/ng-atomic-components-frames-line-up.mjs +2 -2
  89. package/fesm2020/ng-atomic-components-frames-overlay.mjs +2 -2
  90. package/fesm2020/ng-atomic-components-frames-scroll.mjs +2 -2
  91. package/fesm2020/ng-atomic-components-frames-smart-menu.mjs +2 -2
  92. package/fesm2020/ng-atomic-components-molecules-date-input-field.mjs +2 -2
  93. package/fesm2020/ng-atomic-components-molecules-select-input-field.mjs +2 -2
  94. package/fesm2020/ng-atomic-components-molecules-smart-column.mjs +11 -25
  95. package/fesm2020/ng-atomic-components-molecules-smart-column.mjs.map +1 -1
  96. package/fesm2020/ng-atomic-components-molecules-text-input-field.mjs +79 -15
  97. package/fesm2020/ng-atomic-components-molecules-text-input-field.mjs.map +1 -1
  98. package/fesm2020/ng-atomic-components-organisms-action-buttons-section.mjs +13 -11
  99. package/fesm2020/ng-atomic-components-organisms-action-buttons-section.mjs.map +1 -1
  100. package/fesm2020/ng-atomic-components-organisms-back-navigator.mjs +2 -2
  101. package/fesm2020/ng-atomic-components-organisms-card-input-section.mjs +2 -2
  102. package/fesm2020/ng-atomic-components-organisms-cvc-and-exp-input-section.mjs +2 -2
  103. package/fesm2020/ng-atomic-components-organisms-date-input-section.mjs +2 -2
  104. package/fesm2020/ng-atomic-components-organisms-heading.mjs +2 -2
  105. package/fesm2020/ng-atomic-components-organisms-navigation-list.mjs +3 -3
  106. package/fesm2020/ng-atomic-components-organisms-navigation-list.mjs.map +1 -1
  107. package/fesm2020/ng-atomic-components-organisms-navigator.mjs +11 -11
  108. package/fesm2020/ng-atomic-components-organisms-navigator.mjs.map +1 -1
  109. package/fesm2020/ng-atomic-components-organisms-select-input-section.mjs +2 -2
  110. package/fesm2020/ng-atomic-components-organisms-smart-list.mjs +141 -0
  111. package/fesm2020/ng-atomic-components-organisms-smart-list.mjs.map +1 -0
  112. package/fesm2020/ng-atomic-components-organisms-smart-table.mjs +17 -23
  113. package/fesm2020/ng-atomic-components-organisms-smart-table.mjs.map +1 -1
  114. package/fesm2020/ng-atomic-components-organisms-social-login-section.mjs +2 -2
  115. package/fesm2020/ng-atomic-components-organisms-text-input-section.mjs +4 -4
  116. package/fesm2020/ng-atomic-components-organisms-text-input-section.mjs.map +1 -1
  117. package/fesm2020/ng-atomic-components-organisms-textarea-section.mjs +2 -2
  118. package/fesm2020/ng-atomic-components-organisms-top-navigator.mjs +2 -2
  119. package/fesm2020/ng-atomic-components-templates-entrance.mjs +38 -19
  120. package/fesm2020/ng-atomic-components-templates-entrance.mjs.map +1 -1
  121. package/fesm2020/ng-atomic-components-templates-menu.mjs +2 -2
  122. package/fesm2020/ng-atomic-components-templates-menu.mjs.map +1 -1
  123. package/fesm2020/ng-atomic-components-templates-smart-crud.mjs +15 -43
  124. package/fesm2020/ng-atomic-components-templates-smart-crud.mjs.map +1 -1
  125. package/fesm2020/ng-atomic-components-templates-smart-index.mjs +60 -33
  126. package/fesm2020/ng-atomic-components-templates-smart-index.mjs.map +1 -1
  127. package/frames/drawer/drawer.frame.d.ts +3 -1
  128. package/frames/drawer/drawer.frame.d.ts.map +1 -1
  129. package/molecules/smart-column/smart-column.module.d.ts +6 -10
  130. package/molecules/smart-column/smart-column.module.d.ts.map +1 -1
  131. package/molecules/smart-column/smart-column.molecule.d.ts +0 -1
  132. package/molecules/smart-column/smart-column.molecule.d.ts.map +1 -1
  133. package/organisms/action-buttons-section/action-buttons-section.organism.d.ts +2 -2
  134. package/organisms/action-buttons-section/action-buttons-section.organism.d.ts.map +1 -1
  135. package/organisms/navigation-list/navigation-list.organism.d.ts +2 -2
  136. package/organisms/navigation-list/navigation-list.organism.d.ts.map +1 -1
  137. package/organisms/navigator/navigator.organism.d.ts +4 -4
  138. package/organisms/navigator/navigator.organism.d.ts.map +1 -1
  139. package/organisms/smart-list/index.d.ts +3 -0
  140. package/organisms/smart-list/index.d.ts.map +1 -0
  141. package/organisms/smart-list/ng-atomic-components-organisms-smart-list.d.ts.map +1 -0
  142. package/organisms/smart-list/smart-list.module.d.ts +13 -0
  143. package/organisms/smart-list/smart-list.module.d.ts.map +1 -0
  144. package/organisms/smart-list/smart-list.organism.d.ts +22 -0
  145. package/organisms/smart-list/smart-list.organism.d.ts.map +1 -0
  146. package/organisms/smart-table/smart-table.organism.d.ts +12 -10
  147. package/organisms/smart-table/smart-table.organism.d.ts.map +1 -1
  148. package/package.json +12 -3
  149. package/templates/entrance/entrance.template.d.ts +11 -4
  150. package/templates/entrance/entrance.template.d.ts.map +1 -1
  151. package/templates/menu/menu.template.d.ts +2 -2
  152. package/templates/menu/menu.template.d.ts.map +1 -1
  153. package/templates/smart-crud/smart-crud.template.d.ts +6 -16
  154. package/templates/smart-crud/smart-crud.template.d.ts.map +1 -1
  155. package/templates/smart-index/smart-index.module.d.ts +4 -3
  156. package/templates/smart-index/smart-index.module.d.ts.map +1 -1
  157. package/templates/smart-index/smart-index.template.d.ts +9 -12
  158. package/templates/smart-index/smart-index.template.d.ts.map +1 -1
@@ -6,40 +6,69 @@ import * as i2 from '@ng-atomic/components/frames/auto-layout';
6
6
  import { AutoLayoutModule } from '@ng-atomic/components/frames/auto-layout';
7
7
  import * as i3 from '@ng-atomic/components/frames/scroll';
8
8
  import { ScrollModule } from '@ng-atomic/components/frames/scroll';
9
- import * as i7 from '@ng-atomic/components/molecules/header';
9
+ import * as i8 from '@ng-atomic/components/molecules/header';
10
10
  import { HeaderModule } from '@ng-atomic/components/molecules/header';
11
11
  import * as i5 from '@ng-atomic/components/organisms/smart-table';
12
12
  import { SmartTableModule } from '@ng-atomic/components/organisms/smart-table';
13
- import * as i6 from '@ng-atomic/components/organisms/navigator';
13
+ import * as i6 from '@ng-atomic/components/organisms/smart-list';
14
+ import { SmartListModule } from '@ng-atomic/components/organisms/smart-list';
15
+ import * as i7 from '@ng-atomic/components/organisms/navigator';
14
16
  import { NavigatorModule } from '@ng-atomic/components/organisms/navigator';
15
17
  import * as i4 from '@ng-atomic/components/organisms/paginator';
16
18
  import { PaginatorModule } from '@ng-atomic/components/organisms/paginator';
17
19
  import '@angular/material/paginator';
18
20
  import { FormControl } from '@ngneat/reactive-forms';
19
21
 
20
- function SmartIndexTemplate_organisms_paginator_5_Template(rf, ctx) { if (rf & 1) {
21
- const _r2 = i0.ɵɵgetCurrentView();
22
- i0.ɵɵelementStart(0, "organisms-paginator", 5);
23
- i0.ɵɵlistener("pageChange", function SmartIndexTemplate_organisms_paginator_5_Template_organisms_paginator_pageChange_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.pageChange.emit($event)); });
22
+ function SmartIndexTemplate_ng_container_4_Template(rf, ctx) { if (rf & 1) {
23
+ const _r3 = i0.ɵɵgetCurrentView();
24
+ i0.ɵɵelementContainerStart(0);
25
+ i0.ɵɵelementStart(1, "organisms-smart-list", 4);
26
+ i0.ɵɵlistener("action", function SmartIndexTemplate_ng_container_4_Template_organisms_smart_list_action_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.action.emit($event)); });
24
27
  i0.ɵɵelementEnd();
28
+ i0.ɵɵelementContainerEnd();
25
29
  } if (rf & 2) {
26
30
  const ctx_r0 = i0.ɵɵnextContext();
27
- i0.ɵɵproperty("control", ctx_r0.queryControl)("page", ctx_r0.page)("pageSizeOptions", ctx_r0.pageSizeOptions)("placeholder", ctx_r0.queryPlaceholder);
31
+ i0.ɵɵadvance(1);
32
+ i0.ɵɵproperty("items", ctx_r0.items);
33
+ } }
34
+ function SmartIndexTemplate_ng_container_5_organisms_paginator_2_Template(rf, ctx) { if (rf & 1) {
35
+ const _r6 = i0.ɵɵgetCurrentView();
36
+ i0.ɵɵelementStart(0, "organisms-paginator", 7);
37
+ i0.ɵɵlistener("pageChange", function SmartIndexTemplate_ng_container_5_organisms_paginator_2_Template_organisms_paginator_pageChange_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r5.pageChange.emit($event)); });
38
+ i0.ɵɵelementEnd();
39
+ } if (rf & 2) {
40
+ const ctx_r4 = i0.ɵɵnextContext(2);
41
+ i0.ɵɵproperty("control", ctx_r4.queryControl)("page", ctx_r4.page)("pageSizeOptions", ctx_r4.pageSizeOptions)("placeholder", ctx_r4.queryPlaceholder);
42
+ } }
43
+ function SmartIndexTemplate_ng_container_5_Template(rf, ctx) { if (rf & 1) {
44
+ const _r8 = i0.ɵɵgetCurrentView();
45
+ i0.ɵɵelementContainerStart(0);
46
+ i0.ɵɵelementStart(1, "organisms-smart-table", 5);
47
+ i0.ɵɵlistener("action", function SmartIndexTemplate_ng_container_5_Template_organisms_smart_table_action_1_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.action.emit($event)); })("checkboxClick", function SmartIndexTemplate_ng_container_5_Template_organisms_smart_table_checkboxClick_1_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r9 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r9.checkboxClick.emit($event)); })("headerClick", function SmartIndexTemplate_ng_container_5_Template_organisms_smart_table_headerClick_1_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r10 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r10.action.emit({ id: ctx_r10.ActionId.TABLE_HEADER_CLICK, payload: $event })); });
48
+ i0.ɵɵelementEnd();
49
+ i0.ɵɵtemplate(2, SmartIndexTemplate_ng_container_5_organisms_paginator_2_Template, 1, 4, "organisms-paginator", 6);
50
+ i0.ɵɵelementContainerEnd();
51
+ } if (rf & 2) {
52
+ const ctx_r1 = i0.ɵɵnextContext();
53
+ i0.ɵɵadvance(1);
54
+ i0.ɵɵproperty("items", ctx_r1.items)("itemActions", ctx_r1.itemActions)("columns", ctx_r1.properties)("selectedIdSet", ctx_r1.selectedIdSet)("sortKey", ctx_r1.sortKey)("sortOrder", ctx_r1.sortOrder);
55
+ i0.ɵɵadvance(1);
56
+ i0.ɵɵproperty("ngIf", ctx_r1.page);
28
57
  } }
29
- const _c0 = function () { return []; };
30
58
  var ActionId;
31
59
  (function (ActionId) {
32
- ActionId["BACK"] = "[@ng-atomic/components/templates/smart-crud] Back";
60
+ ActionId["BACK"] = "[@ng-atomic/components/templates/smart-index] Back";
61
+ ActionId["TABLE_HEADER_CLICK"] = "[@ng-atomic/components/templates/smart-index] Table Header Click";
33
62
  })(ActionId || (ActionId = {}));
34
63
  class SmartIndexTemplate {
35
64
  constructor() {
36
- this.canBack = false;
65
+ this.ActionId = ActionId;
37
66
  this.queryControl = new FormControl('');
38
67
  this.title = '';
39
68
  this.items = [];
40
- this.rowMenuItems = [];
41
69
  this.itemActions = () => [];
42
- this.navigatorMenuItems = [];
70
+ this.navStartActions = [{ id: ActionId.BACK, icon: 'arrow_back' }];
71
+ this.navEndActions = [];
43
72
  this.properties = [];
44
73
  this.selectedIdSet = new Set();
45
74
  this.page = {
@@ -49,47 +78,42 @@ class SmartIndexTemplate {
49
78
  };
50
79
  this.pageSizeOptions = [5, 10, 25, 100];
51
80
  this.queryPlaceholder = '';
81
+ this.device = 'sp';
52
82
  this.action = new EventEmitter();
53
83
  this.backButtonClick = new EventEmitter();
54
84
  this.checkboxClick = new EventEmitter();
55
85
  this.pageChange = new EventEmitter();
56
- this.tableHeaderClick = new EventEmitter();
57
- this.navigatorLeftItems = [{ id: ActionId.BACK, icon: 'arrow_back' }];
58
86
  }
59
87
  onAction(action) {
60
88
  switch (action.id) {
61
- case ActionId.BACK: return this.backButtonClick.emit();
62
89
  default: return this.action.emit(action);
63
90
  }
64
91
  }
65
92
  }
66
93
  SmartIndexTemplate.ɵfac = function SmartIndexTemplate_Factory(t) { return new (t || SmartIndexTemplate)(); };
67
- SmartIndexTemplate.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartIndexTemplate, selectors: [["templates-smart-index"]], hostAttrs: [1, "template"], inputs: { canBack: "canBack", queryControl: "queryControl", title: "title", description: "description", items: "items", rowMenuItems: "rowMenuItems", itemActions: "itemActions", navigatorMenuItems: "navigatorMenuItems", properties: "properties", selectedIdSet: "selectedIdSet", sortKey: "sortKey", sortOrder: "sortOrder", page: "page", pageSizeOptions: "pageSizeOptions", queryPlaceholder: "queryPlaceholder" }, outputs: { action: "action", backButtonClick: "backButtonClick", checkboxClick: "checkboxClick", pageChange: "pageChange", tableHeaderClick: "tableHeaderClick" }, decls: 6, vars: 13, consts: [["navigator", "", 3, "leftItems", "rightItems", "action"], [3, "title", "description"], ["vertical", "", "contents", ""], [3, "items", "menuItems", "itemActions", "columns", "selectedIdSet", "sortKey", "sortOrder", "action", "checkboxClick", "headerClick"], [3, "control", "page", "pageSizeOptions", "placeholder", "pageChange", 4, "ngIf"], [3, "control", "page", "pageSizeOptions", "placeholder", "pageChange"]], template: function SmartIndexTemplate_Template(rf, ctx) { if (rf & 1) {
94
+ SmartIndexTemplate.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartIndexTemplate, selectors: [["templates-smart-index"]], hostAttrs: [1, "template"], inputs: { queryControl: "queryControl", title: "title", description: "description", items: "items", itemActions: "itemActions", navStartActions: "navStartActions", navEndActions: "navEndActions", properties: "properties", selectedIdSet: "selectedIdSet", sortKey: "sortKey", sortOrder: "sortOrder", page: "page", pageSizeOptions: "pageSizeOptions", queryPlaceholder: "queryPlaceholder", device: "device" }, outputs: { action: "action", backButtonClick: "backButtonClick", checkboxClick: "checkboxClick", pageChange: "pageChange" }, decls: 6, vars: 6, consts: [["navigator", "", 3, "startActions", "endActions", "action"], [3, "title", "description"], ["vertical", "", "contents", ""], [4, "ngIf"], [3, "items", "action"], [3, "items", "itemActions", "columns", "selectedIdSet", "sortKey", "sortOrder", "action", "checkboxClick", "headerClick"], [3, "control", "page", "pageSizeOptions", "placeholder", "pageChange", 4, "ngIf"], [3, "control", "page", "pageSizeOptions", "placeholder", "pageChange"]], template: function SmartIndexTemplate_Template(rf, ctx) { if (rf & 1) {
68
95
  i0.ɵɵelementStart(0, "frames-scroll")(1, "organisms-navigator", 0);
69
96
  i0.ɵɵlistener("action", function SmartIndexTemplate_Template_organisms_navigator_action_1_listener($event) { return ctx.onAction($event); });
70
97
  i0.ɵɵelement(2, "molecules-header", 1);
71
98
  i0.ɵɵelementEnd();
72
- i0.ɵɵelementStart(3, "frames-auto-layout", 2)(4, "organisms-smart-table", 3);
73
- i0.ɵɵlistener("action", function SmartIndexTemplate_Template_organisms_smart_table_action_4_listener($event) { return ctx.action.emit($event); })("checkboxClick", function SmartIndexTemplate_Template_organisms_smart_table_checkboxClick_4_listener($event) { return ctx.checkboxClick.emit($event); })("headerClick", function SmartIndexTemplate_Template_organisms_smart_table_headerClick_4_listener($event) { return ctx.tableHeaderClick.emit($event); });
74
- i0.ɵɵelementEnd();
75
- i0.ɵɵtemplate(5, SmartIndexTemplate_organisms_paginator_5_Template, 1, 4, "organisms-paginator", 4);
99
+ i0.ɵɵelementStart(3, "frames-auto-layout", 2);
100
+ i0.ɵɵtemplate(4, SmartIndexTemplate_ng_container_4_Template, 2, 1, "ng-container", 3);
101
+ i0.ɵɵtemplate(5, SmartIndexTemplate_ng_container_5_Template, 3, 7, "ng-container", 3);
76
102
  i0.ɵɵelementEnd()();
77
103
  } if (rf & 2) {
78
104
  i0.ɵɵadvance(1);
79
- i0.ɵɵproperty("leftItems", ctx.canBack ? ctx.navigatorLeftItems : i0.ɵɵpureFunction0(12, _c0))("rightItems", ctx.navigatorMenuItems);
105
+ i0.ɵɵproperty("startActions", ctx.navStartActions)("endActions", ctx.navEndActions);
80
106
  i0.ɵɵadvance(1);
81
107
  i0.ɵɵproperty("title", ctx.title)("description", ctx.description);
82
108
  i0.ɵɵadvance(2);
83
- i0.ɵɵproperty("items", ctx.items)("menuItems", ctx.rowMenuItems)("itemActions", ctx.itemActions)("columns", ctx.properties)("selectedIdSet", ctx.selectedIdSet)("sortKey", ctx.sortKey)("sortOrder", ctx.sortOrder);
109
+ i0.ɵɵproperty("ngIf", ctx.device === "sp");
84
110
  i0.ɵɵadvance(1);
85
- i0.ɵɵproperty("ngIf", ctx.page);
86
- } }, dependencies: [i1.NgIf, i2.AutoLayoutFrame, i3.ScrollFrame, i4.PaginatorOrganism, i5.SmartTableOrganism, i6.NavigatorOrganism, i7.HeaderMolecule], styles: ["[_nghost-%COMP%]{--navigator-height: 56px;--navigator-height-SCOPED-IN-smart-index-vaHc: var(--navigator-height)}[_nghost-%COMP%]{width:100%;height:100%;background:white;display:block}[_nghost-%COMP%] frames-auto-layout[_ngcontent-%COMP%]{--gap: 0;--vertical-padding: 0}"], changeDetection: 0 });
111
+ i0.ɵɵproperty("ngIf", ctx.device !== "sp");
112
+ } }, dependencies: [i1.NgIf, i2.AutoLayoutFrame, i3.ScrollFrame, i4.PaginatorOrganism, i5.SmartTableOrganism, i6.SmartListOrganism, i7.NavigatorOrganism, i8.HeaderMolecule], styles: ["[_nghost-%COMP%]{--navigator-height: 56px;--navigator-height-SCOPED-IN-smart-index-2PHY: var(--navigator-height)}[_nghost-%COMP%]{width:100%;height:100%;background:white;display:block}[_nghost-%COMP%] frames-auto-layout[_ngcontent-%COMP%]{--gap: 0;--vertical-padding: 0}"], changeDetection: 0 });
87
113
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartIndexTemplate, [{
88
114
  type: Component,
89
- args: [{ selector: 'templates-smart-index', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'template' }, template: "<frames-scroll>\n <organisms-navigator\n [leftItems]=\"canBack ? navigatorLeftItems : []\"\n [rightItems]=\"navigatorMenuItems\"\n (action)=\"onAction($event)\"\n navigator\n >\n <molecules-header [title]=\"title\" [description]=\"description\"></molecules-header>\n </organisms-navigator>\n <frames-auto-layout vertical contents>\n <organisms-smart-table\n [items]=\"items\"\n [menuItems]=\"rowMenuItems\"\n [itemActions]=\"itemActions\"\n [columns]=\"properties\"\n [selectedIdSet]=\"selectedIdSet\"\n [sortKey]=\"sortKey\"\n [sortOrder]=\"sortOrder\"\n (action)=\"action.emit($event)\"\n (checkboxClick)=\"checkboxClick.emit($event)\"\n (headerClick)=\"tableHeaderClick.emit($event)\"\n ></organisms-smart-table>\n <organisms-paginator\n *ngIf=\"page\"\n [control]=\"queryControl\"\n [page]=\"page\"\n [pageSizeOptions]=\"pageSizeOptions\"\n [placeholder]=\"queryPlaceholder\"\n (pageChange)=\"pageChange.emit($event)\"\n ></organisms-paginator>\n </frames-auto-layout>\n</frames-scroll>", styles: [":host{--navigator-height: 56px;--navigator-height-SCOPED-IN-smart-index-vaHc: var(--navigator-height)}:host{width:100%;height:100%;background:white;display:block}:host frames-auto-layout{--gap: 0;--vertical-padding: 0}\n"] }]
90
- }], null, { canBack: [{
91
- type: Input
92
- }], queryControl: [{
115
+ args: [{ selector: 'templates-smart-index', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'template' }, template: "<frames-scroll>\n <organisms-navigator\n [startActions]=\"navStartActions\"\n [endActions]=\"navEndActions\"\n (action)=\"onAction($event)\"\n navigator\n >\n <molecules-header [title]=\"title\" [description]=\"description\"></molecules-header>\n </organisms-navigator>\n <frames-auto-layout vertical contents>\n <ng-container *ngIf=\"device === 'sp'\">\n <organisms-smart-list\n [items]=\"items\"\n (action)=\"action.emit($event)\"\n ></organisms-smart-list>\n </ng-container>\n <ng-container *ngIf=\"device !== 'sp'\">\n <organisms-smart-table\n [items]=\"items\"\n [itemActions]=\"itemActions\"\n [columns]=\"properties\"\n [selectedIdSet]=\"selectedIdSet\"\n [sortKey]=\"sortKey\"\n [sortOrder]=\"sortOrder\"\n (action)=\"action.emit($event)\"\n (checkboxClick)=\"checkboxClick.emit($event)\"\n (headerClick)=\"action.emit({id: ActionId.TABLE_HEADER_CLICK, payload: $event})\"\n ></organisms-smart-table>\n <organisms-paginator\n *ngIf=\"page\"\n [control]=\"queryControl\"\n [page]=\"page\"\n [pageSizeOptions]=\"pageSizeOptions\"\n [placeholder]=\"queryPlaceholder\"\n (pageChange)=\"pageChange.emit($event)\"\n ></organisms-paginator>\n </ng-container>\n </frames-auto-layout>\n</frames-scroll>", styles: [":host{--navigator-height: 56px;--navigator-height-SCOPED-IN-smart-index-2PHY: var(--navigator-height)}:host{width:100%;height:100%;background:white;display:block}:host frames-auto-layout{--gap: 0;--vertical-padding: 0}\n"] }]
116
+ }], null, { queryControl: [{
93
117
  type: Input
94
118
  }], title: [{
95
119
  type: Input
@@ -97,11 +121,11 @@ SmartIndexTemplate.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartInd
97
121
  type: Input
98
122
  }], items: [{
99
123
  type: Input
100
- }], rowMenuItems: [{
101
- type: Input
102
124
  }], itemActions: [{
103
125
  type: Input
104
- }], navigatorMenuItems: [{
126
+ }], navStartActions: [{
127
+ type: Input
128
+ }], navEndActions: [{
105
129
  type: Input
106
130
  }], properties: [{
107
131
  type: Input
@@ -117,6 +141,8 @@ SmartIndexTemplate.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartInd
117
141
  type: Input
118
142
  }], queryPlaceholder: [{
119
143
  type: Input
144
+ }], device: [{
145
+ type: Input
120
146
  }], action: [{
121
147
  type: Output
122
148
  }], backButtonClick: [{
@@ -125,8 +151,6 @@ SmartIndexTemplate.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmartInd
125
151
  type: Output
126
152
  }], pageChange: [{
127
153
  type: Output
128
- }], tableHeaderClick: [{
129
- type: Output
130
154
  }] }); })();
131
155
 
132
156
  class SmartIndexModule {
@@ -140,6 +164,7 @@ SmartIndexModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonM
140
164
  // Organisms
141
165
  PaginatorModule,
142
166
  SmartTableModule,
167
+ SmartListModule,
143
168
  NavigatorModule,
144
169
  // Molecules
145
170
  HeaderModule] });
@@ -157,6 +182,7 @@ SmartIndexModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonM
157
182
  // Organisms
158
183
  PaginatorModule,
159
184
  SmartTableModule,
185
+ SmartListModule,
160
186
  NavigatorModule,
161
187
  // Molecules
162
188
  HeaderModule,
@@ -173,6 +199,7 @@ SmartIndexModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonM
173
199
  // Organisms
174
200
  PaginatorModule,
175
201
  SmartTableModule,
202
+ SmartListModule,
176
203
  NavigatorModule,
177
204
  // Molecules
178
205
  HeaderModule], exports: [SmartIndexTemplate] }); })();
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-components-templates-smart-index.mjs","sources":["../../../../libs/components/src/templates/smart-index/smart-index.template.html","../../../../libs/components/src/templates/smart-index/smart-index.template.ts","../../../../libs/components/src/templates/smart-index/smart-index.module.ts","../../../../libs/components/src/templates/smart-index/ng-atomic-components-templates-smart-index.ts"],"sourcesContent":["<frames-scroll>\n <organisms-navigator\n [leftItems]=\"canBack ? navigatorLeftItems : []\"\n [rightItems]=\"navigatorMenuItems\"\n (action)=\"onAction($event)\"\n navigator\n >\n <molecules-header [title]=\"title\" [description]=\"description\"></molecules-header>\n </organisms-navigator>\n <frames-auto-layout vertical contents>\n <organisms-smart-table\n [items]=\"items\"\n [menuItems]=\"rowMenuItems\"\n [itemActions]=\"itemActions\"\n [columns]=\"properties\"\n [selectedIdSet]=\"selectedIdSet\"\n [sortKey]=\"sortKey\"\n [sortOrder]=\"sortOrder\"\n (action)=\"action.emit($event)\"\n (checkboxClick)=\"checkboxClick.emit($event)\"\n (headerClick)=\"tableHeaderClick.emit($event)\"\n ></organisms-smart-table>\n <organisms-paginator\n *ngIf=\"page\"\n [control]=\"queryControl\"\n [page]=\"page\"\n [pageSizeOptions]=\"pageSizeOptions\"\n [placeholder]=\"queryPlaceholder\"\n (pageChange)=\"pageChange.emit($event)\"\n ></organisms-paginator>\n </frames-auto-layout>\n</frames-scroll>","import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { PageEvent } from '@angular/material/paginator';\nimport { Action, ActionItem } from '@ng-atomic/common/models';\nimport { FormControl } from '@ngneat/reactive-forms';\n\nexport enum ActionId {\n BACK = '[@ng-atomic/components/templates/smart-crud] Back',\n}\n\n\n@Component({\n selector: 'templates-smart-index',\n templateUrl: './smart-index.template.html',\n styleUrls: ['./smart-index.template.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'template' },\n})\nexport class SmartIndexTemplate<T> {\n\n @Input()\n canBack = false;\n\n @Input()\n queryControl = new FormControl<string>('');\n\n @Input()\n title: string = '';\n\n @Input()\n description?: string;\n\n @Input()\n items: T[] = [];\n\n @Input()\n rowMenuItems: ActionItem[] = [];\n\n @Input()\n itemActions: (item: T) => ActionItem[] = () => [];\n\n @Input()\n navigatorMenuItems: ActionItem[] = [];\n\n @Input()\n properties: (keyof T)[] = [];\n\n @Input()\n selectedIdSet = new Set<string>();\n\n @Input()\n sortKey?: string;\n\n @Input()\n sortOrder?: string;\n\n @Input()\n page?: PageEvent = {\n pageIndex: 0,\n pageSize: 20,\n length: 100,\n };\n\n @Input()\n pageSizeOptions: number[] = [5, 10, 25, 100];\n\n @Input()\n queryPlaceholder = '';\n\n @Output()\n action = new EventEmitter<Action>();\n\n @Output()\n backButtonClick = new EventEmitter();\n\n @Output()\n checkboxClick = new EventEmitter<T>();\n\n @Output()\n pageChange = new EventEmitter<PageEvent>();\n\n @Output()\n tableHeaderClick = new EventEmitter<string>();\n\n navigatorLeftItems = [{ id: ActionId.BACK, icon: 'arrow_back' }];\n\n onAction(action: Action): void {\n switch(action.id) {\n case ActionId.BACK: return this.backButtonClick.emit();\n default: return this.action.emit(action);\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { AutoLayoutModule } from '@ng-atomic/components/frames/auto-layout';\nimport { ScrollModule } from '@ng-atomic/components/frames/scroll';\nimport { HeaderModule } from '@ng-atomic/components/molecules/header';\nimport { SmartTableModule } from '@ng-atomic/components/organisms/smart-table';\nimport { NavigatorModule } from '@ng-atomic/components/organisms/navigator';\nimport { PaginatorModule } from '@ng-atomic/components/organisms/paginator';\n\nimport { SmartIndexTemplate } from './smart-index.template';\n\n\n@NgModule({\n declarations: [\n SmartIndexTemplate\n ],\n imports: [\n CommonModule,\n // Frames\n AutoLayoutModule,\n ScrollModule,\n // Organisms\n PaginatorModule,\n SmartTableModule,\n NavigatorModule,\n // Molecules\n HeaderModule,\n ],\n exports: [\n SmartIndexTemplate\n ]\n})\nexport class SmartIndexModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;IAsBI,EAOC,CAAA,cAAA,CAAA,CAAA,EAAA,qBAAA,EAAA,CAAA,CAAA,CAAA;IADC,EAAc,CAAA,UAAA,CAAA,YAAA,EAAA,SAAA,2FAAA,CAAA,MAAA,EAAA,EAAA,EAAA,CAAA,aAAA,CAAA,GAAA,CAAA,CAAA,CAAA,MAAA,MAAA,GAAA,EAAA,CAAA,aAAA,EAAA,CAAA,CAAA,OAAA,EAAA,CAAA,WAAA,CAAA,MAAuB,CAAA,UAAA,CAAA,IAAA,CAAA,MAAA,CAAA,CAAA,CAAC,EAAA,CAAA,CAAA;IACvC,EAAsB,CAAA,YAAA,EAAA,CAAA;;;IALrB,EAAwB,CAAA,UAAA,CAAA,SAAA,EAAA,M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Ef,YAAY,CAAA,EAAA,CAAA,CAAA;uFAMH,gBAAgB,EAAA,CAAA;cApB5B,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACR,gBAAA,YAAY,EAAE;oBACZ,kBAAkB;AACnB,iBAAA;AACD,gBAAA,OAAO,EAAE;oBACP,YAAY;;oBAEZ,gBAAgB;oBAChB,YAAY;;oBAEZ,eAAe;oBACf,gBAAgB;oBAChB,eAAe;;oBAEf,YAAY;AACb,iBAAA;AACD,gBAAA,OAAO,EAAE;oBACP,kBAAkB;AACnB,iBAAA;AACF,aAAA,CAAA;;wFACY,gBAAgB,EAAA,EAAA,YAAA,EAAA,CAlBzB,kBAAkB,CAAA,EAAA,OAAA,EAAA,CAGlB,YAAY;;QAEZ,gBAAgB;QAChB,YAAY;;QAEZ,eAAe;QACf,gBAAgB;QAChB,eAAe;;AAEf,QAAA,YAAY,aAGZ,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;AC7BtB;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-components-templates-smart-index.mjs","sources":["../../../../libs/components/src/templates/smart-index/smart-index.template.html","../../../../libs/components/src/templates/smart-index/smart-index.template.ts","../../../../libs/components/src/templates/smart-index/smart-index.module.ts","../../../../libs/components/src/templates/smart-index/ng-atomic-components-templates-smart-index.ts"],"sourcesContent":["<frames-scroll>\n <organisms-navigator\n [startActions]=\"navStartActions\"\n [endActions]=\"navEndActions\"\n (action)=\"onAction($event)\"\n navigator\n >\n <molecules-header [title]=\"title\" [description]=\"description\"></molecules-header>\n </organisms-navigator>\n <frames-auto-layout vertical contents>\n <ng-container *ngIf=\"device === 'sp'\">\n <organisms-smart-list\n [items]=\"items\"\n (action)=\"action.emit($event)\"\n ></organisms-smart-list>\n </ng-container>\n <ng-container *ngIf=\"device !== 'sp'\">\n <organisms-smart-table\n [items]=\"items\"\n [itemActions]=\"itemActions\"\n [columns]=\"properties\"\n [selectedIdSet]=\"selectedIdSet\"\n [sortKey]=\"sortKey\"\n [sortOrder]=\"sortOrder\"\n (action)=\"action.emit($event)\"\n (checkboxClick)=\"checkboxClick.emit($event)\"\n (headerClick)=\"action.emit({id: ActionId.TABLE_HEADER_CLICK, payload: $event})\"\n ></organisms-smart-table>\n <organisms-paginator\n *ngIf=\"page\"\n [control]=\"queryControl\"\n [page]=\"page\"\n [pageSizeOptions]=\"pageSizeOptions\"\n [placeholder]=\"queryPlaceholder\"\n (pageChange)=\"pageChange.emit($event)\"\n ></organisms-paginator>\n </ng-container>\n </frames-auto-layout>\n</frames-scroll>","import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { PageEvent } from '@angular/material/paginator';\nimport { Action } from '@ng-atomic/common/models';\nimport { FormControl } from '@ngneat/reactive-forms';\n\nexport enum ActionId {\n BACK = '[@ng-atomic/components/templates/smart-index] Back',\n TABLE_HEADER_CLICK = '[@ng-atomic/components/templates/smart-index] Table Header Click',\n}\n\n@Component({\n selector: 'templates-smart-index',\n templateUrl: './smart-index.template.html',\n styleUrls: ['./smart-index.template.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'template' },\n})\nexport class SmartIndexTemplate<T> {\n protected ActionId = ActionId;\n\n @Input()\n queryControl = new FormControl<string>('');\n\n @Input()\n title: string = '';\n\n @Input()\n description?: string;\n\n @Input()\n items: T[] = [];\n\n @Input()\n itemActions: (item: T) => Action[] = () => [];\n\n @Input()\n navStartActions: Action[] = [{ id: ActionId.BACK, icon: 'arrow_back' }];\n\n @Input()\n navEndActions: Action[] = [];\n\n @Input()\n properties: (keyof T)[] = [];\n\n @Input()\n selectedIdSet = new Set<string>();\n\n @Input()\n sortKey?: string;\n\n @Input()\n sortOrder?: string;\n\n @Input()\n page?: PageEvent = {\n pageIndex: 0,\n pageSize: 20,\n length: 100,\n };\n\n @Input()\n pageSizeOptions: number[] = [5, 10, 25, 100];\n\n @Input()\n queryPlaceholder = '';\n\n @Input()\n device: 'sp' | 'tablet' | 'pc' = 'sp';\n\n @Output()\n action = new EventEmitter<Action>();\n\n @Output()\n backButtonClick = new EventEmitter();\n\n @Output()\n checkboxClick = new EventEmitter<T>();\n\n @Output()\n pageChange = new EventEmitter<PageEvent>();\n\n onAction(action: Action): void {\n switch(action.id) {\n default: return this.action.emit(action);\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { AutoLayoutModule } from '@ng-atomic/components/frames/auto-layout';\nimport { ScrollModule } from '@ng-atomic/components/frames/scroll';\nimport { HeaderModule } from '@ng-atomic/components/molecules/header';\nimport { SmartTableModule } from '@ng-atomic/components/organisms/smart-table';\nimport { SmartListModule } from '@ng-atomic/components/organisms/smart-list';\nimport { NavigatorModule } from '@ng-atomic/components/organisms/navigator';\nimport { PaginatorModule } from '@ng-atomic/components/organisms/paginator';\n\nimport { SmartIndexTemplate } from './smart-index.template';\n\n\n@NgModule({\n declarations: [\n SmartIndexTemplate\n ],\n imports: [\n CommonModule,\n // Frames\n AutoLayoutModule,\n ScrollModule,\n // Organisms\n PaginatorModule,\n SmartTableModule,\n SmartListModule,\n NavigatorModule,\n // Molecules\n HeaderModule,\n ],\n exports: [\n SmartIndexTemplate\n ]\n})\nexport class SmartIndexModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;IAUI,EAAsC,CAAA,uBAAA,CAAA,CAAA,CAAA,CAAA;IACpC,EAGC,CAAA,cAAA,CAAA,CAAA,EAAA,sBAAA,EAAA,CAAA,CAAA,CAAA;IADC,EAAU,CAAA,UAAA,CAAA,QAAA,EAAA,SAAA,iFAAA,CAAA,MAAA,EAAA,EAAA,EAAA,CAAA,aAAA,CAAA,GAAA,CAAA,CAAA,CAAA,MAAA,MAAA,GAAA,EAAA,CAAA,aAAA,EAAA,CAAA,CAAA,OAAA,EAAA,CAAA,WAAA,CAAA,MAAmB,CAAA,MAAA,CAAA,IAAA,CAAA,MAAA,CAAA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"@angular/core";
3
- export declare class DrawerFrame {
4
+ export declare class DrawerFrame implements AfterViewInit {
4
5
  drawer: MatDrawer;
5
6
  private _isOpen;
6
7
  set isOpen(_isOpen: boolean);
7
8
  get isOpen(): boolean;
9
+ ngAfterViewInit(): void;
8
10
  static ɵfac: i0.ɵɵFactoryDeclaration<DrawerFrame, never>;
9
11
  static ɵcmp: i0.ɵɵComponentDeclaration<DrawerFrame, "frames-drawer", never, { "isOpen": "isOpen"; }, {}, never, ["[drawer]", "[contents]"], false>;
10
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.frame.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/frames/drawer/drawer.frame.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;;AAEtD,qBAMa,WAAW;IAGtB,MAAM,EAAG,SAAS,CAAC;IAEnB,OAAO,CAAC,OAAO,CAAS;IAExB,IACI,MAAM,CAAC,OAAO,EAAE,OAAO,EAG1B;IAED,IAAI,MAAM,IAAI,OAAO,CAEpB;yCAfU,WAAW;2CAAX,WAAW;CAiBvB"}
1
+ {"version":3,"file":"drawer.frame.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/frames/drawer/drawer.frame.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAwD,MAAM,eAAe,CAAC;AACpG,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;;AAEtD,qBAMa,WAAY,YAAW,aAAa;IAG/C,MAAM,EAAG,SAAS,CAAC;IAEnB,OAAO,CAAC,OAAO,CAAS;IAExB,IACI,MAAM,CAAC,OAAO,EAAE,OAAO,EAK1B;IAED,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED,eAAe;yCAnBJ,WAAW;2CAAX,WAAW;CA2BvB"}
@@ -3,18 +3,14 @@ import * as i1 from "./smart-column.molecule";
3
3
  import * as i2 from "@angular/common";
4
4
  import * as i3 from "@angular/cdk/clipboard";
5
5
  import * as i4 from "@ng-atomic/common/pipes/smart-exp";
6
- import * as i5 from "@angular/material/button";
7
- import * as i6 from "@angular/material/icon";
8
- import * as i7 from "@angular/material/table";
9
- import * as i8 from "@angular/material/tooltip";
10
- export declare class DataAccessorPipe {
11
- transform(data: any, name: string): string;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<DataAccessorPipe, never>;
13
- static ɵpipe: i0.ɵɵPipeDeclaration<DataAccessorPipe, "dataAccessor", false>;
14
- }
6
+ import * as i5 from "@ng-atomic/common/pipes/data-accessor";
7
+ import * as i6 from "@angular/material/button";
8
+ import * as i7 from "@angular/material/icon";
9
+ import * as i8 from "@angular/material/table";
10
+ import * as i9 from "@angular/material/tooltip";
15
11
  export declare class SmartColumnModule {
16
12
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartColumnModule, never>;
17
- static ɵmod: i0.ɵɵNgModuleDeclaration<SmartColumnModule, [typeof i1.SmartColumnMolecule, typeof DataAccessorPipe], [typeof i2.CommonModule, typeof i3.ClipboardModule, typeof i4.SmartExpModule, typeof i5.MatButtonModule, typeof i6.MatIconModule, typeof i7.MatTableModule, typeof i8.MatTooltipModule], [typeof i1.SmartColumnMolecule]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SmartColumnModule, [typeof i1.SmartColumnMolecule], [typeof i2.CommonModule, typeof i3.ClipboardModule, typeof i4.SmartExpModule, typeof i5.DataAccessorPipe, typeof i6.MatButtonModule, typeof i7.MatIconModule, typeof i8.MatTableModule, typeof i9.MatTooltipModule], [typeof i1.SmartColumnMolecule]>;
18
14
  static ɵinj: i0.ɵɵInjectorDeclaration<SmartColumnModule>;
19
15
  }
20
16
  //# sourceMappingURL=smart-column.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"smart-column.module.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/molecules/smart-column/smart-column.module.ts"],"names":[],"mappings":";;;;;;;;;AAWA,qBACa,gBAAgB;IAC3B,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM;yCAD/B,gBAAgB;uCAAhB,gBAAgB;CAI5B;AAED,qBAmBa,iBAAiB;yCAAjB,iBAAiB;0CAAjB,iBAAiB,yCAzBjB,gBAAgB;0CAyBhB,iBAAiB;CAAI"}
1
+ {"version":3,"file":"smart-column.module.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/molecules/smart-column/smart-column.module.ts"],"names":[],"mappings":";;;;;;;;;;AAWA,qBAmBa,iBAAiB;yCAAjB,iBAAiB;0CAAjB,iBAAiB;0CAAjB,iBAAiB;CAAI"}
@@ -2,7 +2,6 @@ import { EventEmitter } from '@angular/core';
2
2
  import { MatTextColumn } from '@angular/material/table';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SmartColumnMolecule<T> extends MatTextColumn<T> {
5
- dataAccessor: () => string;
6
5
  sort: 'asc' | 'desc' | 'none';
7
6
  headerClick: EventEmitter<void>;
8
7
  text: string;
@@ -1 +1 @@
1
- {"version":3,"file":"smart-column.molecule.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/molecules/smart-column/smart-column.molecule.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,YAAY,EAA0D,MAAM,eAAe,CAAC;AAC7I,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;;AAExD,qBAOa,mBAAmB,CAAC,CAAC,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;IACjD,YAAY,QAAO,MAAM,CAEhC;IAGF,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,CAAU;IAGvC,WAAW,qBAA4B;IAEvC,IAAI,SAAU;IAEd,MAAM;yCAbK,mBAAmB;2CAAnB,mBAAmB;CAkB/B"}
1
+ {"version":3,"file":"smart-column.molecule.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/molecules/smart-column/smart-column.molecule.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,YAAY,EAAqE,MAAM,eAAe,CAAC;AACxJ,OAAO,EAAgB,aAAa,EAAE,MAAM,yBAAyB,CAAC;;AAEtE,qBAOa,mBAAmB,CAAC,CAAC,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;IAG1D,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,CAAU;IAGvC,WAAW,qBAA4B;IAEvC,IAAI,SAAU;IAEd,MAAM;yCAVK,mBAAmB;2CAAnB,mBAAmB;CAc/B"}
@@ -2,10 +2,10 @@ import { EventEmitter } from '@angular/core';
2
2
  import { Action, ActionItem } from '@ng-atomic/common/models';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class ActionButtonsSectionOrganism {
5
- items: ActionItem[];
5
+ actions: Action[];
6
6
  action: EventEmitter<Action<any>>;
7
7
  trackById: (item: ActionItem) => string;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<ActionButtonsSectionOrganism, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<ActionButtonsSectionOrganism, "organisms-action-buttons-section", never, { "items": "items"; }, { "action": "action"; }, never, never, false>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActionButtonsSectionOrganism, "organisms-action-buttons-section", never, { "actions": "actions"; }, { "action": "action"; }, never, never, false>;
10
10
  }
11
11
  //# sourceMappingURL=action-buttons-section.organism.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"action-buttons-section.organism.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/organisms/action-buttons-section/action-buttons-section.organism.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,YAAY,EAAiB,MAAM,eAAe,CAAC;AAChG,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;;AAE9D,qBAOa,4BAA4B;IAEvC,KAAK,EAAE,UAAU,EAAE,CAAM;IAGzB,MAAM,4BAA8B;IAEpC,SAAS,SAAU,UAAU,YAAa;yCAP/B,4BAA4B;2CAA5B,4BAA4B;CAQxC"}
1
+ {"version":3,"file":"action-buttons-section.organism.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/organisms/action-buttons-section/action-buttons-section.organism.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,YAAY,EAAiB,MAAM,eAAe,CAAC;AAChG,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;;AAE9D,qBAOa,4BAA4B;IAEvC,OAAO,EAAE,MAAM,EAAE,CAAM;IAGvB,MAAM,4BAA8B;IAEpC,SAAS,SAAU,UAAU,YAAa;yCAP/B,4BAA4B;2CAA5B,4BAA4B;CAQxC"}
@@ -1,9 +1,9 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { ActionItem } from '@ng-atomic/common/models';
2
+ import { Action, ActionItem } from '@ng-atomic/common/models';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class NavigationListOrganism {
5
5
  items: ActionItem<string>[];
6
- action: EventEmitter<string>;
6
+ action: EventEmitter<Action<any>>;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<NavigationListOrganism, never>;
8
8
  static ɵcmp: i0.ɵɵComponentDeclaration<NavigationListOrganism, "organisms-navigation-list", never, { "items": "items"; }, { "action": "action"; }, never, never, false>;
9
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"navigation-list.organism.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/organisms/navigation-list/navigation-list.organism.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqD,YAAY,EAAE,MAAM,eAAe,CAAC;AAChG,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;;AAEtD,qBAMa,sBAAsB;IAEjC,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,EAAE,CAAM;IAGjC,MAAM,uBAA8B;yCALzB,sBAAsB;2CAAtB,sBAAsB;CAMlC"}
1
+ {"version":3,"file":"navigation-list.organism.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/organisms/navigation-list/navigation-list.organism.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqD,YAAY,EAAE,MAAM,eAAe,CAAC;AAChG,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;;AAE9D,qBAMa,sBAAsB;IAEjC,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,EAAE,CAAM;IAGjC,MAAM,4BAA8B;yCALzB,sBAAsB;2CAAtB,sBAAsB;CAMlC"}
@@ -1,11 +1,11 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { Action, ActionItem } from '@ng-atomic/common/models';
2
+ import { Action } from '@ng-atomic/common/models';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class NavigatorOrganism {
5
- rightItems: ActionItem[];
6
- leftItems: ActionItem[];
5
+ startActions: Action[];
6
+ endActions: Action[];
7
7
  action: EventEmitter<Action<any>>;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<NavigatorOrganism, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<NavigatorOrganism, "organisms-navigator", never, { "rightItems": "rightItems"; "leftItems": "leftItems"; }, { "action": "action"; }, never, ["*"], false>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<NavigatorOrganism, "organisms-navigator", never, { "startActions": "startActions"; "endActions": "endActions"; }, { "action": "action"; }, never, ["*"], false>;
10
10
  }
11
11
  //# sourceMappingURL=navigator.organism.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"navigator.organism.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/organisms/navigator/navigator.organism.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,YAAY,EAAiB,MAAM,eAAe,CAAC;AAChG,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;;AAE9D,qBAMa,iBAAiB;IAE5B,UAAU,EAAE,UAAU,EAAE,CAAM;IAG9B,SAAS,EAAE,UAAU,EAAE,CAAM;IAG7B,MAAM,4BAA8B;yCARzB,iBAAiB;2CAAjB,iBAAiB;CAS7B"}
1
+ {"version":3,"file":"navigator.organism.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/organisms/navigator/navigator.organism.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,YAAY,EAAiB,MAAM,eAAe,CAAC;AAChG,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;;AAElD,qBAMa,iBAAiB;IAE5B,YAAY,EAAE,MAAM,EAAE,CAAM;IAG5B,UAAU,EAAE,MAAM,EAAE,CAAM;IAG1B,MAAM,4BAA8B;yCARzB,iBAAiB;2CAAjB,iBAAiB;CAS7B"}
@@ -0,0 +1,3 @@
1
+ export * from './smart-list.organism';
2
+ export * from './smart-list.module';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/organisms/smart-list/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ng-atomic-components-organisms-smart-list.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/organisms/smart-list/ng-atomic-components-organisms-smart-list.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,SAAS,CAAC"}
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./smart-list.organism";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/material/list";
5
+ import * as i4 from "@angular/material/icon";
6
+ import * as i5 from "@angular/material/core";
7
+ import * as i6 from "@ng-atomic/common/pipes/data-accessor";
8
+ export declare class SmartListModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmartListModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SmartListModule, [typeof i1.SmartListOrganism], [typeof i2.CommonModule, typeof i3.MatListModule, typeof i4.MatIconModule, typeof i5.MatRippleModule, typeof i6.DataAccessorPipe], [typeof i1.SmartListOrganism]>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<SmartListModule>;
12
+ }
13
+ //# sourceMappingURL=smart-list.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smart-list.module.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/organisms/smart-list/smart-list.module.ts"],"names":[],"mappings":";;;;;;;AAQA,qBAea,eAAe;yCAAf,eAAe;0CAAf,eAAe;0CAAf,eAAe;CAAI"}
@@ -0,0 +1,22 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { Action } from '@ng-atomic/common/models';
3
+ import { DataAccessor } from '@ng-atomic/common/pipes/data-accessor';
4
+ import * as i0 from "@angular/core";
5
+ export declare enum ActionId {
6
+ CLICK_ITEM = "[@ng-atomic/components/organisms/smart-list] Click Item"
7
+ }
8
+ export declare class SmartListOrganism<T> {
9
+ private dataAccessor;
10
+ constructor(dataAccessor: DataAccessor<T>);
11
+ statusAccessor: (data: any) => any;
12
+ items: T[];
13
+ action: EventEmitter<Action<any>>;
14
+ get statusMap(): {
15
+ [id: string]: any[];
16
+ };
17
+ get statuses(): string[];
18
+ protected onItemClick(item: T): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmartListOrganism<any>, [{ optional: true; }]>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<SmartListOrganism<any>, "organisms-smart-list", never, { "items": "items"; }, { "action": "action"; }, never, never, false>;
21
+ }
22
+ //# sourceMappingURL=smart-list.organism.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smart-list.organism.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/organisms/smart-list/smart-list.organism.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,YAAY,EAAmC,MAAM,eAAe,CAAC;AAClH,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,YAAY,EAAsC,MAAM,uCAAuC,CAAC;;AAEzG,oBAAY,QAAQ;IAClB,UAAU,4DAA4D;CACvE;AAED,qBAMa,iBAAiB,CAAC,CAAC;IAGO,OAAO,CAAC,YAAY;gBAAZ,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC;IAK1E,cAAc,qBAA4B;IAG1C,KAAK,EAAE,CAAC,EAAE,CAAM;IAGhB,MAAM,4BAA8B;IAEpC,IAAI,SAAS;;MAOZ;IAED,IAAI,QAAQ,aAEX;IAED,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;yCA7BlB,iBAAiB;2CAAjB,iBAAiB;CAmC7B"}
@@ -1,24 +1,26 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { Action, ActionItem } from '@ng-atomic/common/models';
2
+ import { Actions, Action } from '@ng-atomic/common/models';
3
3
  import * as i0 from "@angular/core";
4
+ interface Sort {
5
+ key?: string;
6
+ order?: 'desc' | 'asc';
7
+ }
4
8
  export declare class SmartTableOrganism<Item extends object> {
5
- columns: (keyof Item)[];
6
- get displayedColumns(): (keyof Item | string)[];
9
+ _columns: (keyof Item)[];
10
+ get columns(): (keyof Item | string)[];
7
11
  items: Item[];
8
- itemActions: (item: Item) => ActionItem[];
9
- patientsSize: number;
12
+ itemActions: Actions;
10
13
  pageSize: number;
11
- menuItems: ActionItem[];
12
14
  selectedIdSet: Set<string>;
13
- sortKey?: string;
14
- sortOrder?: 'asc' | 'desc';
15
+ sort: Sort;
15
16
  action: EventEmitter<Action<any>>;
16
17
  headerClick: EventEmitter<string>;
17
18
  checkboxClick: EventEmitter<[Item, boolean]>;
18
19
  pageChange: EventEmitter<any>;
19
20
  itemCheck: EventEmitter<[Item, boolean]>;
20
- trackByColumnName: (columnName: string) => string;
21
+ protected trackByColumnName: (columnName: string) => string;
21
22
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartTableOrganism<any>, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableOrganism<any>, "organisms-smart-table", never, { "columns": "columns"; "items": "items"; "itemActions": "itemActions"; "patientsSize": "patientsSize"; "pageSize": "pageSize"; "menuItems": "menuItems"; "selectedIdSet": "selectedIdSet"; "sortKey": "sortKey"; "sortOrder": "sortOrder"; }, { "action": "action"; "headerClick": "headerClick"; "checkboxClick": "checkboxClick"; "pageChange": "pageChange"; "itemCheck": "itemCheck"; }, never, never, false>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableOrganism<any>, "organisms-smart-table", never, { "_columns": "columns"; "items": "items"; "itemActions": "itemActions"; "pageSize": "pageSize"; "selectedIdSet": "selectedIdSet"; "sort": "sort"; }, { "action": "action"; "headerClick": "headerClick"; "checkboxClick": "checkboxClick"; "pageChange": "pageChange"; "itemCheck": "itemCheck"; }, never, never, false>;
23
24
  }
25
+ export {};
24
26
  //# sourceMappingURL=smart-table.organism.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"smart-table.organism.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/organisms/smart-table/smart-table.organism.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,YAAY,EAAiB,MAAM,eAAe,CAAC;AAChG,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;;AAG9D,qBAOa,kBAAkB,CAAC,IAAI,SAAS,MAAM;IAGjD,OAAO,EAAE,CAAC,MAAM,IAAI,CAAC,EAAE,CAAM;IAE7B,IAAI,gBAAgB,IAAI,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,EAAE,CAE9C;IAGD,KAAK,EAAE,IAAI,EAAE,CAAM;IAGnB,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,UAAU,EAAE,CAAY;IAGrD,YAAY,EAAE,MAAM,CAAK;IAGzB,QAAQ,EAAE,MAAM,CAAK;IAGrB,SAAS,EAAE,UAAU,EAAE,CAAM;IAG7B,aAAa,cAAqB;IAGlC,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAG3B,MAAM,4BAA8B;IAGpC,WAAW,uBAA8B;IAGzC,aAAa,gCAAuC;IAGpD,UAAU,oBAAsB;IAGhC,SAAS,gCAAuC;IAEhD,iBAAiB,eAAgB,MAAM,YAAgB;yCAhD5C,kBAAkB;2CAAlB,kBAAkB;CAiD9B"}
1
+ {"version":3,"file":"smart-table.organism.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/organisms/smart-table/smart-table.organism.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,YAAY,EAAiB,MAAM,eAAe,CAAC;AAChG,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;;AAE3D,UAAU,IAAI;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;CACxB;AAED,qBAOa,kBAAkB,CAAC,IAAI,SAAS,MAAM;IAGjD,QAAQ,EAAE,CAAC,MAAM,IAAI,CAAC,EAAE,CAAM;IAE9B,IAAI,OAAO,IAAI,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,EAAE,CAErC;IAGD,KAAK,EAAE,IAAI,EAAE,CAAM;IAGnB,WAAW,EAAE,OAAO,CAAY;IAGhC,QAAQ,EAAE,MAAM,CAAK;IAGrB,aAAa,cAAqB;IAGlC,IAAI,EAAE,IAAI,CAAM;IAGhB,MAAM,4BAA8B;IAGpC,WAAW,uBAA8B;IAGzC,aAAa,gCAAuC;IAGpD,UAAU,oBAAsB;IAGhC,SAAS,gCAAuC;IAEhD,SAAS,CAAC,iBAAiB,eAAgB,MAAM,YAAgB;yCAvCtD,kBAAkB;2CAAlB,kBAAkB;CAwC9B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-atomic/components",
3
- "version": "4.14.1",
3
+ "version": "4.16.0",
4
4
  "license": "MIT",
5
5
  "module": "fesm2015/ng-atomic-components.mjs",
6
6
  "es2020": "fesm2020/ng-atomic-components.mjs",
@@ -260,6 +260,14 @@
260
260
  "node": "./fesm2015/ng-atomic-components-organisms-select-input-section.mjs",
261
261
  "default": "./fesm2020/ng-atomic-components-organisms-select-input-section.mjs"
262
262
  },
263
+ "./organisms/smart-list": {
264
+ "types": "./organisms/smart-list/index.d.ts",
265
+ "esm2020": "./esm2020/organisms/smart-list/ng-atomic-components-organisms-smart-list.mjs",
266
+ "es2020": "./fesm2020/ng-atomic-components-organisms-smart-list.mjs",
267
+ "es2015": "./fesm2015/ng-atomic-components-organisms-smart-list.mjs",
268
+ "node": "./fesm2015/ng-atomic-components-organisms-smart-list.mjs",
269
+ "default": "./fesm2020/ng-atomic-components-organisms-smart-list.mjs"
270
+ },
263
271
  "./organisms/smart-table": {
264
272
  "types": "./organisms/smart-table/index.d.ts",
265
273
  "esm2020": "./esm2020/organisms/smart-table/ng-atomic-components-organisms-smart-table.mjs",
@@ -367,11 +375,12 @@
367
375
  "peerDependencies": {
368
376
  "@angular/core": "^14.0.0",
369
377
  "@angular/platform-browser": "^14.0.0",
370
- "@ng-atomic/elements": "4.14.1",
378
+ "@ng-atomic/elements": "4.16.0",
371
379
  "@angular/cdk": "^14.0.0",
380
+ "@angular/material": "^14.0.0",
372
381
  "@ngneat/reactive-forms": "^4.1.0",
373
382
  "rxjs": "7.5.0",
374
- "@ng-atomic/common": "4.14.1",
383
+ "@ng-atomic/common": "4.16.0",
375
384
  "@angular/forms": "^14.0.0",
376
385
  "@angular/animations": "^14.0.0",
377
386
  "resize-observer-polyfill": "^1.5.1",
@@ -1,17 +1,24 @@
1
1
  import { EventEmitter } from '@angular/core';
2
+ import { Action } from '@ng-atomic/common/models';
2
3
  import { FormGroup, FormControl } from '@ngneat/reactive-forms';
3
4
  import * as i0 from "@angular/core";
5
+ export declare enum ActionId {
6
+ SIGN_IN = "[@ng-atomic/components] Sign In",
7
+ SIGN_IN_WITH_GOOGLE = "[@ng-atomic/components] Sign In With Google",
8
+ SIGN_IN_WITH_TWITTER = "[@ng-atomic/components] Sign In With Twitter"
9
+ }
10
+ export declare const Actions: Action[];
4
11
  export declare class EntranceTemplate {
12
+ protected ActionId: typeof ActionId;
5
13
  form: FormGroup<{
6
14
  email: FormControl<string>;
7
15
  password: FormControl<string>;
8
16
  }>;
9
17
  isEmailSectionShown: boolean;
10
18
  isPasswordSectionShown: boolean;
11
- actionItems: any[];
12
- submitButtonClick: EventEmitter<void>;
13
- signInWithGoogleButtonClick: EventEmitter<void>;
19
+ actions: Action<any>[];
20
+ action: EventEmitter<Action<any>>;
14
21
  static ɵfac: i0.ɵɵFactoryDeclaration<EntranceTemplate, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<EntranceTemplate, "templates-entrance", never, { "form": "form"; "isEmailSectionShown": "isEmailSectionShown"; "isPasswordSectionShown": "isPasswordSectionShown"; "actionItems": "actionItems"; }, { "submitButtonClick": "submitButtonClick"; "signInWithGoogleButtonClick": "signInWithGoogleButtonClick"; }, never, never, false>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<EntranceTemplate, "templates-entrance", never, { "form": "form"; "isEmailSectionShown": "isEmailSectionShown"; "isPasswordSectionShown": "isPasswordSectionShown"; "actions": "actions"; }, { "action": "action"; }, never, never, false>;
16
23
  }
17
24
  //# sourceMappingURL=entrance.template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entrance.template.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/templates/entrance/entrance.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,YAAY,EAAiB,MAAM,eAAe,CAAC;AAChG,OAAO,EAAE,SAAS,EAAE,WAAW,EAAC,MAAM,wBAAwB,CAAC;;AAE/D,qBAOa,gBAAgB;IAE3B,IAAI;;;OAGD;IAGH,mBAAmB,UAAQ;IAG3B,sBAAsB,UAAQ;IAG9B,WAAW,QAAM;IAGjB,iBAAiB,qBAA4B;IAG7C,2BAA2B,qBAA4B;yCApB5C,gBAAgB;2CAAhB,gBAAgB;CAqB5B"}
1
+ {"version":3,"file":"entrance.template.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/templates/entrance/entrance.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,YAAY,EAAiB,MAAM,eAAe,CAAC;AAChG,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,WAAW,EAAC,MAAM,wBAAwB,CAAC;;AAE/D,oBAAY,QAAQ;IAClB,OAAO,oCAAoC;IAC3C,mBAAmB,gDAAgD;IACnE,oBAAoB,iDAAiD;CACtE;AAED,eAAO,MAAM,OAAO,EAAE,MAAM,EAgB3B,CAAC;AAEF,qBAOa,gBAAgB;IAC3B,SAAS,CAAC,QAAQ,kBAAW;IAG7B,IAAI;;;OAGD;IAGH,mBAAmB,UAAQ;IAG3B,sBAAsB,UAAQ;IAG9B,OAAO,gBAAW;IAGlB,MAAM,4BAA6B;yCAnBxB,gBAAgB;2CAAhB,gBAAgB;CAoB5B"}
@@ -1,9 +1,9 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { ActionItem } from '@ng-atomic/common/models';
2
+ import { Action, ActionItem } from '@ng-atomic/common/models';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class MenuTemplate {
5
5
  items: ActionItem<string>[];
6
- action: EventEmitter<string>;
6
+ action: EventEmitter<Action<any>>;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<MenuTemplate, never>;
8
8
  static ɵcmp: i0.ɵɵComponentDeclaration<MenuTemplate, "templates-menu", never, { "items": "items"; }, { "action": "action"; }, never, ["[header]", "[footer]"], false>;
9
9
  }