cmat 0.0.117 → 0.0.119

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 (203) hide show
  1. package/fesm2022/cmat-components-adapter.mjs +9 -9
  2. package/fesm2022/cmat-components-breadcrumb.mjs +10 -9
  3. package/fesm2022/cmat-components-breadcrumb.mjs.map +1 -1
  4. package/fesm2022/cmat-components-card.mjs +6 -6
  5. package/fesm2022/cmat-components-card.mjs.map +1 -1
  6. package/fesm2022/cmat-components-carousel.mjs +16 -16
  7. package/fesm2022/cmat-components-carousel.mjs.map +1 -1
  8. package/fesm2022/cmat-components-cascade.mjs +1 -863
  9. package/fesm2022/cmat-components-chip-input.mjs +11 -11
  10. package/fesm2022/cmat-components-code-editor.mjs +3 -3
  11. package/fesm2022/cmat-components-color-picker.mjs +45 -45
  12. package/fesm2022/cmat-components-color-picker.mjs.map +1 -1
  13. package/fesm2022/cmat-components-custom-formly.mjs +214 -214
  14. package/fesm2022/cmat-components-custom-formly.mjs.map +1 -1
  15. package/fesm2022/cmat-components-data-picker.mjs +43 -40
  16. package/fesm2022/cmat-components-data-picker.mjs.map +1 -1
  17. package/fesm2022/cmat-components-date-range.mjs +15 -16
  18. package/fesm2022/cmat-components-date-range.mjs.map +1 -1
  19. package/fesm2022/cmat-components-date-time-display.mjs +4 -4
  20. package/fesm2022/cmat-components-drawer.mjs +9 -9
  21. package/fesm2022/cmat-components-drawer.mjs.map +1 -1
  22. package/fesm2022/cmat-components-empty-state.mjs +4 -4
  23. package/fesm2022/cmat-components-file-preview.mjs +4 -4
  24. package/fesm2022/cmat-components-filter-toolbar.mjs +12 -13
  25. package/fesm2022/cmat-components-filter-toolbar.mjs.map +1 -1
  26. package/fesm2022/cmat-components-form-actions.mjs +6 -6
  27. package/fesm2022/cmat-components-fullscreen.mjs +4 -4
  28. package/fesm2022/cmat-components-highlight.mjs +7 -7
  29. package/fesm2022/cmat-components-image-viewer.mjs +7 -7
  30. package/fesm2022/cmat-components-image-viewer.mjs.map +1 -1
  31. package/fesm2022/cmat-components-inline-loading.mjs +3 -3
  32. package/fesm2022/cmat-components-json-editor.mjs +7 -7
  33. package/fesm2022/cmat-components-json-editor.mjs.map +1 -1
  34. package/fesm2022/cmat-components-knob-input.mjs +6 -6
  35. package/fesm2022/cmat-components-loading-overlay.mjs +5 -5
  36. package/fesm2022/cmat-components-loading-overlay.mjs.map +1 -1
  37. package/fesm2022/cmat-components-masonry.mjs +4 -4
  38. package/fesm2022/cmat-components-material-color-picker.mjs +1 -337
  39. package/fesm2022/cmat-components-material-datetimepicker.mjs +1 -4312
  40. package/fesm2022/cmat-components-navigation.mjs +1 -3081
  41. package/fesm2022/cmat-components-opt-input.mjs +1 -542
  42. package/fesm2022/cmat-components-org-chart.mjs +1 -529
  43. package/fesm2022/cmat-components-page-header.mjs +4 -4
  44. package/fesm2022/cmat-components-pagination.mjs +21 -21
  45. package/fesm2022/cmat-components-pagination.mjs.map +1 -1
  46. package/fesm2022/cmat-components-password-strength.mjs +1 -880
  47. package/fesm2022/cmat-components-popover.mjs +1 -1022
  48. package/fesm2022/cmat-components-progress-bar.mjs +4 -4
  49. package/fesm2022/cmat-components-qrcode.mjs +3 -3
  50. package/fesm2022/cmat-components-rating.mjs +8 -8
  51. package/fesm2022/cmat-components-rich-text-editor.mjs +3 -3
  52. package/fesm2022/cmat-components-select-search.mjs +1 -930
  53. package/fesm2022/cmat-components-select-table.mjs +39 -39
  54. package/fesm2022/cmat-components-select-table.mjs.map +1 -1
  55. package/fesm2022/cmat-components-select-tree.mjs +28 -27
  56. package/fesm2022/cmat-components-select-tree.mjs.map +1 -1
  57. package/fesm2022/cmat-components-skeleton.mjs +5 -5
  58. package/fesm2022/cmat-components-skeleton.mjs.map +1 -1
  59. package/fesm2022/cmat-components-speed-dial.mjs +12 -12
  60. package/fesm2022/cmat-components-speed-dial.mjs.map +1 -1
  61. package/fesm2022/cmat-components-status-tag.mjs +6 -6
  62. package/fesm2022/cmat-components-status-tag.mjs.map +1 -1
  63. package/fesm2022/cmat-components-table-toolbar.mjs +4 -4
  64. package/fesm2022/cmat-components-timeline.mjs +19 -19
  65. package/fesm2022/cmat-components-timeline.mjs.map +1 -1
  66. package/fesm2022/cmat-components-toast.mjs +14 -14
  67. package/fesm2022/cmat-components-toast.mjs.map +1 -1
  68. package/fesm2022/cmat-components-transfer-picker.mjs +48 -49
  69. package/fesm2022/cmat-components-transfer-picker.mjs.map +1 -1
  70. package/fesm2022/cmat-components-treetable.mjs +8 -8
  71. package/fesm2022/cmat-components-upload.mjs +17 -17
  72. package/fesm2022/cmat-components-x6-angular-shape.mjs +1 -1
  73. package/fesm2022/cmat-directives-animate-on-scroll.mjs +1 -221
  74. package/fesm2022/cmat-directives-arrow-cursor.mjs +3 -3
  75. package/fesm2022/cmat-directives-autofocus.mjs +3 -3
  76. package/fesm2022/cmat-directives-data-exporter.mjs +1 -544
  77. package/fesm2022/cmat-directives-debounce.mjs +1 -163
  78. package/fesm2022/cmat-directives-digit-only.mjs +6 -6
  79. package/fesm2022/cmat-directives-equal-validator.mjs +3 -3
  80. package/fesm2022/cmat-directives-seamless-auto-scroll.mjs +3 -3
  81. package/fesm2022/cmat-lib-mock-api.mjs +8 -8
  82. package/fesm2022/cmat-pipes-bytes.mjs +3 -3
  83. package/fesm2022/cmat-pipes-date-format.mjs +3 -3
  84. package/fesm2022/cmat-pipes-find-by-key.mjs +3 -3
  85. package/fesm2022/cmat-pipes-group-by.mjs +3 -3
  86. package/fesm2022/cmat-pipes-keys.mjs +3 -3
  87. package/fesm2022/cmat-pipes-secure.mjs +6 -6
  88. package/fesm2022/cmat-pipes-uppercase.mjs +3 -3
  89. package/fesm2022/cmat-reports.mjs +86 -80
  90. package/fesm2022/cmat-reports.mjs.map +1 -1
  91. package/fesm2022/cmat-services-alert.mjs +4 -4
  92. package/fesm2022/cmat-services-config.mjs +6 -6
  93. package/fesm2022/cmat-services-confirmation.mjs +1 -185
  94. package/fesm2022/cmat-services-data.mjs +5 -5
  95. package/fesm2022/cmat-services-export-as.mjs +4 -4
  96. package/fesm2022/cmat-services-loading.mjs +6 -6
  97. package/fesm2022/cmat-services-local-storage.mjs +3 -3
  98. package/fesm2022/cmat-services-media-watcher.mjs +4 -4
  99. package/fesm2022/cmat-services-platform.mjs +4 -4
  100. package/fesm2022/cmat-services-print.mjs +3 -3
  101. package/fesm2022/cmat-services-splash-screen.mjs +4 -4
  102. package/fesm2022/cmat-services-title.mjs +6 -6
  103. package/fesm2022/cmat-services-translation.mjs +4 -4
  104. package/fesm2022/cmat-services-utils.mjs +7 -7
  105. package/fesm2022/cmat.mjs +77 -39579
  106. package/fesm2022/public-api-BE83BHd7.mjs +930 -0
  107. package/fesm2022/public-api-BE83BHd7.mjs.map +1 -0
  108. package/fesm2022/public-api-BcmOSkgf.mjs +542 -0
  109. package/fesm2022/public-api-BcmOSkgf.mjs.map +1 -0
  110. package/fesm2022/public-api-BmMqKDzm.mjs +4312 -0
  111. package/fesm2022/public-api-BmMqKDzm.mjs.map +1 -0
  112. package/fesm2022/public-api-BnRFazGR.mjs +221 -0
  113. package/fesm2022/public-api-BnRFazGR.mjs.map +1 -0
  114. package/fesm2022/public-api-C9N9rKkB.mjs +185 -0
  115. package/fesm2022/public-api-C9N9rKkB.mjs.map +1 -0
  116. package/fesm2022/public-api-CXmCX9ZQ.mjs +863 -0
  117. package/fesm2022/public-api-CXmCX9ZQ.mjs.map +1 -0
  118. package/fesm2022/public-api-CfILyvuV.mjs +880 -0
  119. package/fesm2022/public-api-CfILyvuV.mjs.map +1 -0
  120. package/fesm2022/public-api-CgtBw-7O.mjs +163 -0
  121. package/fesm2022/public-api-CgtBw-7O.mjs.map +1 -0
  122. package/fesm2022/public-api-DEtzrfqy.mjs +544 -0
  123. package/fesm2022/public-api-DEtzrfqy.mjs.map +1 -0
  124. package/fesm2022/public-api-EK51WC1y.mjs +1022 -0
  125. package/fesm2022/public-api-EK51WC1y.mjs.map +1 -0
  126. package/fesm2022/public-api-IpTsAgZ4.mjs +3081 -0
  127. package/fesm2022/public-api-IpTsAgZ4.mjs.map +1 -0
  128. package/fesm2022/public-api-iRaKIVmd.mjs +338 -0
  129. package/fesm2022/public-api-iRaKIVmd.mjs.map +1 -0
  130. package/fesm2022/public-api-nzzDLiDj.mjs +529 -0
  131. package/fesm2022/public-api-nzzDLiDj.mjs.map +1 -0
  132. package/fesm2022/{cmat-quill-docx-exporter-D9Eo73Wq.mjs → quill-docx-exporter-D9Eo73Wq.mjs} +1 -1
  133. package/fesm2022/quill-docx-exporter-D9Eo73Wq.mjs.map +1 -0
  134. package/package.json +23 -22
  135. package/types/cmat-components-breadcrumb.d.ts +1 -1
  136. package/types/cmat-components-chip-input.d.ts +3 -3
  137. package/types/cmat-components-custom-formly.d.ts +2 -857
  138. package/types/cmat-components-data-picker.d.ts +12 -6
  139. package/types/cmat-components-date-range.d.ts +1 -1
  140. package/types/cmat-components-drawer.d.ts +1 -1
  141. package/types/cmat-components-form-actions.d.ts +1 -1
  142. package/types/cmat-components-knob-input.d.ts +1 -1
  143. package/types/cmat-components-masonry.d.ts +2 -1
  144. package/types/cmat-components-material-color-picker.d.ts +1 -1
  145. package/types/cmat-components-material-datetimepicker.d.ts +2 -836
  146. package/types/cmat-components-navigation.d.ts +1 -1
  147. package/types/cmat-components-opt-input.d.ts +2 -113
  148. package/types/cmat-components-org-chart.d.ts +1 -1
  149. package/types/cmat-components-page-header.d.ts +1 -1
  150. package/types/cmat-components-password-strength.d.ts +2 -201
  151. package/types/cmat-components-popover.d.ts +2 -270
  152. package/types/cmat-components-qrcode.d.ts +2 -113
  153. package/types/cmat-components-rating.d.ts +1 -1
  154. package/types/cmat-components-rich-text-editor.d.ts +1 -1
  155. package/types/cmat-components-select-search.d.ts +2 -200
  156. package/types/cmat-components-select-table.d.ts +3 -3
  157. package/types/cmat-components-select-tree.d.ts +6 -5
  158. package/types/cmat-components-status-tag.d.ts +2 -2
  159. package/types/cmat-components-toast.d.ts +2 -1
  160. package/types/cmat-components-transfer-picker.d.ts +2 -2
  161. package/types/cmat-components-upload.d.ts +1 -1
  162. package/types/cmat-components-x6-angular-shape.d.ts +1 -1
  163. package/types/cmat-directives-data-exporter.d.ts +1 -1
  164. package/types/cmat-directives-debounce.d.ts +2 -34
  165. package/types/cmat-directives-equal-validator.d.ts +1 -1
  166. package/types/cmat-directives-seamless-auto-scroll.d.ts +1 -1
  167. package/types/cmat-lib-mock-api.d.ts +3 -2
  168. package/types/cmat-pipes-secure.d.ts +1 -1
  169. package/types/cmat-reports.d.ts +6 -6
  170. package/types/cmat-services-alert.d.ts +1 -1
  171. package/types/cmat-services-confirmation.d.ts +2 -36
  172. package/types/cmat-services-data.d.ts +1 -1
  173. package/types/cmat-services-export-as.d.ts +1 -1
  174. package/types/cmat-services-loading.d.ts +1 -1
  175. package/types/cmat-services-translation.d.ts +1 -1
  176. package/types/cmat-services-utils.d.ts +2 -2
  177. package/types/cmat.d.ts +78 -7676
  178. package/types/public-api-BFGGDRK3.d.ts +201 -0
  179. package/types/public-api-BXS379ev.d.ts +202 -0
  180. package/types/public-api-C4CvABGO.d.ts +114 -0
  181. package/types/public-api-CSYz4G5Z.d.ts +271 -0
  182. package/types/public-api-NSrmlKKH.d.ts +114 -0
  183. package/types/public-api-PfNpHSSm.d.ts +837 -0
  184. package/types/public-api-f3WtygQS.d.ts +35 -0
  185. package/types/public-api-nBuSXSMJ.d.ts +858 -0
  186. package/types/public-api-yYeZrUAV.d.ts +37 -0
  187. package/fesm2022/cmat-components-cascade.mjs.map +0 -1
  188. package/fesm2022/cmat-components-custom-formly-quill-docx-exporter-BwwGX2Ie.mjs +0 -294
  189. package/fesm2022/cmat-components-custom-formly-quill-docx-exporter-BwwGX2Ie.mjs.map +0 -1
  190. package/fesm2022/cmat-components-material-color-picker.mjs.map +0 -1
  191. package/fesm2022/cmat-components-material-datetimepicker.mjs.map +0 -1
  192. package/fesm2022/cmat-components-navigation.mjs.map +0 -1
  193. package/fesm2022/cmat-components-opt-input.mjs.map +0 -1
  194. package/fesm2022/cmat-components-org-chart.mjs.map +0 -1
  195. package/fesm2022/cmat-components-password-strength.mjs.map +0 -1
  196. package/fesm2022/cmat-components-popover.mjs.map +0 -1
  197. package/fesm2022/cmat-components-select-search.mjs.map +0 -1
  198. package/fesm2022/cmat-directives-animate-on-scroll.mjs.map +0 -1
  199. package/fesm2022/cmat-directives-data-exporter.mjs.map +0 -1
  200. package/fesm2022/cmat-directives-debounce.mjs.map +0 -1
  201. package/fesm2022/cmat-quill-docx-exporter-D9Eo73Wq.mjs.map +0 -1
  202. package/fesm2022/cmat-services-confirmation.mjs.map +0 -1
  203. package/fesm2022/cmat.mjs.map +0 -1
@@ -1,529 +1 @@
1
- import * as i0 from "@angular/core";
2
- import { ChangeDetectionStrategy, Component, HostBinding, ViewEncapsulation, computed, forwardRef, input, output } from "@angular/core";
3
- import { NgClass } from "@angular/common";
4
- import * as i2 from "@angular/material/button";
5
- import { MatButtonModule } from "@angular/material/button";
6
- import * as i1 from "@angular/material/icon";
7
- import { MatIconModule } from "@angular/material/icon";
8
- var CmatChartNodeComponent = class CmatChartNodeComponent {
9
- constructor() {
10
- this.node = input.required(...ngDevMode ? [{ debugName: "node" }] : /* istanbul ignore next */ []);
11
- this.hasParent = input(...ngDevMode ? [void 0, { debugName: "hasParent" }] : /* istanbul ignore next */ []);
12
- this.enableControlHeight = input(...ngDevMode ? [void 0, { debugName: "enableControlHeight" }] : /* istanbul ignore next */ []);
13
- this.direction = input("vertical", ...ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []);
14
- this.detailsBtnTitle = input(...ngDevMode ? [void 0, { debugName: "detailsBtnTitle" }] : /* istanbul ignore next */ []);
15
- this.detailsBtnClick = output();
16
- this.containerClass = computed(() => `cmat-org-connector-${this.direction()} `, ...ngDevMode ? [{ debugName: "containerClass" }] : /* istanbul ignore next */ []);
17
- this.connectorToParentHeight = computed(() => {
18
- const heightFactor = this.node().heightFactor;
19
- if (this.enableControlHeight() && heightFactor !== void 0 && heightFactor > 0) {
20
- let newHeight = heightFactor * 19.2;
21
- if (heightFactor >= 2) newHeight -= heightFactor - 1;
22
- return `${newHeight}em`;
23
- }
24
- return "1em";
25
- }, ...ngDevMode ? [{ debugName: "connectorToParentHeight" }] : /* istanbul ignore next */ []);
26
- }
27
- static {
28
- this.ɵfac = i0.ɵɵngDeclareFactory({
29
- minVersion: "12.0.0",
30
- version: "22.2.4",
31
- ngImport: i0,
32
- type: CmatChartNodeComponent,
33
- deps: [],
34
- target: i0.ɵɵFactoryTarget.Component
35
- });
36
- }
37
- static {
38
- this.ɵcmp = i0.ɵɵngDeclareComponent({
39
- minVersion: "17.0.0",
40
- version: "22.2.4",
41
- type: CmatChartNodeComponent,
42
- isStandalone: true,
43
- selector: "cmat-org-chart-node",
44
- inputs: {
45
- node: {
46
- classPropertyName: "node",
47
- publicName: "node",
48
- isSignal: true,
49
- isRequired: true,
50
- transformFunction: null
51
- },
52
- hasParent: {
53
- classPropertyName: "hasParent",
54
- publicName: "hasParent",
55
- isSignal: true,
56
- isRequired: false,
57
- transformFunction: null
58
- },
59
- enableControlHeight: {
60
- classPropertyName: "enableControlHeight",
61
- publicName: "enableControlHeight",
62
- isSignal: true,
63
- isRequired: false,
64
- transformFunction: null
65
- },
66
- direction: {
67
- classPropertyName: "direction",
68
- publicName: "direction",
69
- isSignal: true,
70
- isRequired: false,
71
- transformFunction: null
72
- },
73
- detailsBtnTitle: {
74
- classPropertyName: "detailsBtnTitle",
75
- publicName: "detailsBtnTitle",
76
- isSignal: true,
77
- isRequired: false,
78
- transformFunction: null
79
- }
80
- },
81
- outputs: { detailsBtnClick: "detailsBtnClick" },
82
- exportAs: ["cmatOrgChartNode"],
83
- ngImport: i0,
84
- template: "<!-- eslint-disable @angular-eslint/template/no-inline-styles -->\r\n@if(hasParent()){\r\n<div class=\"cmat-org-border\" [ngClass]=\"containerClass()\" [style.height]=\"connectorToParentHeight()\"></div>\r\n}\r\n<div class=\"cmat-org-box cmat-org-border cmat-org-background\" [ngClass]=\"node().cssClass\">\r\n @if(node().image!==''){\r\n <div class=\"cmat-org-image\" [style]=\"{ 'background-image': 'url(\\'' + node().image + '\\')' }\"\r\n [style.border-color]=\"node().color\"></div>\r\n }@else {\r\n <div class=\"text-center\">\r\n <mat-icon class=\"icon-size-16\" [svgIcon]=\"'heroicons_outline:user-circle'\">\r\n </mat-icon>\r\n </div>\r\n }\r\n\r\n <div class=\"cmat-org-container\">\r\n <div class=\"cmat-org-title\" [innerHTML]=\"node().title\" [style.color]=\"node().color\"></div>\r\n <div class=\"cmat-org-name\" [innerHTML]=\"node().name\"></div>\r\n \r\n @if(node().showDetail){\r\n <div class=\"button-container\">\r\n <button matButton=\"filled\" class=\"cmat-org-btn cmat-org-btn-details\" color=\"primary\"\r\n (click)=\"detailsBtnClick.emit(node())\">\r\n {{ detailsBtnTitle() }}\r\n </button>\r\n </div>\r\n }\r\n </div>\r\n<!-- eslint-enable @angular-eslint/template/no-inline-styles -->\r\n</div>\r\n@if(node().children.length){\r\n<div class=\"cmat-org-border\" [ngClass]=\"containerClass()\"></div>\r\n}",
85
- styles: ["cmat-org-chart-node{display:flex;align-items:center}.cmat-org-box{width:16em;height:16em;box-sizing:border-box;overflow:overlay;position:relative}.cmat-org-container{display:flex;flex-direction:column;align-items:center}.cmat-org-title,.cmat-org-name,.button-container{flex:1}.cmat-org-title{margin-top:.5em}.cmat-org-name{margin:.3em 0}.button-container{display:flex;flex-direction:row;justify-content:center;align-items:center;position:absolute;bottom:1em;width:100%}.cmat-org-image{background-repeat:round;width:4em;height:4em;background-color:transparent!important;border-radius:50%;padding:.25em;border:3px solid var(--cmat-text-hint);margin:4px auto auto}.cmat-org-title{font-size:1.1rem;font-weight:700;text-align:center}.cmat-org-name{text-align:center;margin-bottom:8px!important}\n"],
86
- dependencies: [
87
- {
88
- kind: "directive",
89
- type: NgClass,
90
- selector: "[ngClass]",
91
- inputs: ["class", "ngClass"]
92
- },
93
- {
94
- kind: "ngmodule",
95
- type: MatIconModule
96
- },
97
- {
98
- kind: "component",
99
- type: i1.MatIcon,
100
- selector: "mat-icon",
101
- inputs: [
102
- "color",
103
- "inline",
104
- "svgIcon",
105
- "fontSet",
106
- "fontIcon"
107
- ],
108
- exportAs: ["matIcon"]
109
- },
110
- {
111
- kind: "ngmodule",
112
- type: MatButtonModule
113
- },
114
- {
115
- kind: "component",
116
- type: i2.MatButton,
117
- selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ",
118
- inputs: ["matButton"],
119
- exportAs: ["matButton", "matAnchor"]
120
- }
121
- ],
122
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
123
- encapsulation: i0.ViewEncapsulation.None
124
- });
125
- }
126
- };
127
- i0.ɵɵngDeclareClassMetadata({
128
- minVersion: "12.0.0",
129
- version: "22.2.4",
130
- ngImport: i0,
131
- type: CmatChartNodeComponent,
132
- decorators: [{
133
- type: Component,
134
- args: [{
135
- selector: "cmat-org-chart-node",
136
- encapsulation: ViewEncapsulation.None,
137
- changeDetection: ChangeDetectionStrategy.OnPush,
138
- exportAs: "cmatOrgChartNode",
139
- imports: [
140
- NgClass,
141
- MatIconModule,
142
- MatButtonModule
143
- ],
144
- template: "<!-- eslint-disable @angular-eslint/template/no-inline-styles -->\r\n@if(hasParent()){\r\n<div class=\"cmat-org-border\" [ngClass]=\"containerClass()\" [style.height]=\"connectorToParentHeight()\"></div>\r\n}\r\n<div class=\"cmat-org-box cmat-org-border cmat-org-background\" [ngClass]=\"node().cssClass\">\r\n @if(node().image!==''){\r\n <div class=\"cmat-org-image\" [style]=\"{ 'background-image': 'url(\\'' + node().image + '\\')' }\"\r\n [style.border-color]=\"node().color\"></div>\r\n }@else {\r\n <div class=\"text-center\">\r\n <mat-icon class=\"icon-size-16\" [svgIcon]=\"'heroicons_outline:user-circle'\">\r\n </mat-icon>\r\n </div>\r\n }\r\n\r\n <div class=\"cmat-org-container\">\r\n <div class=\"cmat-org-title\" [innerHTML]=\"node().title\" [style.color]=\"node().color\"></div>\r\n <div class=\"cmat-org-name\" [innerHTML]=\"node().name\"></div>\r\n \r\n @if(node().showDetail){\r\n <div class=\"button-container\">\r\n <button matButton=\"filled\" class=\"cmat-org-btn cmat-org-btn-details\" color=\"primary\"\r\n (click)=\"detailsBtnClick.emit(node())\">\r\n {{ detailsBtnTitle() }}\r\n </button>\r\n </div>\r\n }\r\n </div>\r\n<!-- eslint-enable @angular-eslint/template/no-inline-styles -->\r\n</div>\r\n@if(node().children.length){\r\n<div class=\"cmat-org-border\" [ngClass]=\"containerClass()\"></div>\r\n}",
145
- styles: ["cmat-org-chart-node{display:flex;align-items:center}.cmat-org-box{width:16em;height:16em;box-sizing:border-box;overflow:overlay;position:relative}.cmat-org-container{display:flex;flex-direction:column;align-items:center}.cmat-org-title,.cmat-org-name,.button-container{flex:1}.cmat-org-title{margin-top:.5em}.cmat-org-name{margin:.3em 0}.button-container{display:flex;flex-direction:row;justify-content:center;align-items:center;position:absolute;bottom:1em;width:100%}.cmat-org-image{background-repeat:round;width:4em;height:4em;background-color:transparent!important;border-radius:50%;padding:.25em;border:3px solid var(--cmat-text-hint);margin:4px auto auto}.cmat-org-title{font-size:1.1rem;font-weight:700;text-align:center}.cmat-org-name{text-align:center;margin-bottom:8px!important}\n"]
146
- }]
147
- }],
148
- propDecorators: {
149
- node: [{
150
- type: i0.Input,
151
- args: [{
152
- isSignal: true,
153
- alias: "node",
154
- required: true
155
- }]
156
- }],
157
- hasParent: [{
158
- type: i0.Input,
159
- args: [{
160
- isSignal: true,
161
- alias: "hasParent",
162
- required: false
163
- }]
164
- }],
165
- enableControlHeight: [{
166
- type: i0.Input,
167
- args: [{
168
- isSignal: true,
169
- alias: "enableControlHeight",
170
- required: false
171
- }]
172
- }],
173
- direction: [{
174
- type: i0.Input,
175
- args: [{
176
- isSignal: true,
177
- alias: "direction",
178
- required: false
179
- }]
180
- }],
181
- detailsBtnTitle: [{
182
- type: i0.Input,
183
- args: [{
184
- isSignal: true,
185
- alias: "detailsBtnTitle",
186
- required: false
187
- }]
188
- }],
189
- detailsBtnClick: [{
190
- type: i0.Output,
191
- args: ["detailsBtnClick"]
192
- }]
193
- }
194
- });
195
- var CmatChartDesignerComponent = class CmatChartDesignerComponent {
196
- constructor() {
197
- this.node = input.required(...ngDevMode ? [{ debugName: "node" }] : /* istanbul ignore next */ []);
198
- this.hasParent = input(false, ...ngDevMode ? [{ debugName: "hasParent" }] : /* istanbul ignore next */ []);
199
- this.enableControlHeight = input(...ngDevMode ? [void 0, { debugName: "enableControlHeight" }] : /* istanbul ignore next */ []);
200
- this.direction = input("vertical", ...ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []);
201
- this.detailsBtnTitle = input(...ngDevMode ? [void 0, { debugName: "detailsBtnTitle" }] : /* istanbul ignore next */ []);
202
- this.detailsBtnClick = output();
203
- this.chartNodeClass = computed(() => `cmat-org-${this.direction()}`, ...ngDevMode ? [{ debugName: "chartNodeClass" }] : /* istanbul ignore next */ []);
204
- }
205
- get hostFlexDirection() {
206
- return this.direction() === "vertical" ? "column" : "";
207
- }
208
- get hostWidth() {
209
- return this.direction() === "vertical" ? "fit-content" : "";
210
- }
211
- static {
212
- this.ɵfac = i0.ɵɵngDeclareFactory({
213
- minVersion: "12.0.0",
214
- version: "22.2.4",
215
- ngImport: i0,
216
- type: CmatChartDesignerComponent,
217
- deps: [],
218
- target: i0.ɵɵFactoryTarget.Component
219
- });
220
- }
221
- static {
222
- this.ɵcmp = i0.ɵɵngDeclareComponent({
223
- minVersion: "17.0.0",
224
- version: "22.2.4",
225
- type: CmatChartDesignerComponent,
226
- isStandalone: true,
227
- selector: "cmat-org-chart-designer",
228
- inputs: {
229
- node: {
230
- classPropertyName: "node",
231
- publicName: "node",
232
- isSignal: true,
233
- isRequired: true,
234
- transformFunction: null
235
- },
236
- hasParent: {
237
- classPropertyName: "hasParent",
238
- publicName: "hasParent",
239
- isSignal: true,
240
- isRequired: false,
241
- transformFunction: null
242
- },
243
- enableControlHeight: {
244
- classPropertyName: "enableControlHeight",
245
- publicName: "enableControlHeight",
246
- isSignal: true,
247
- isRequired: false,
248
- transformFunction: null
249
- },
250
- direction: {
251
- classPropertyName: "direction",
252
- publicName: "direction",
253
- isSignal: true,
254
- isRequired: false,
255
- transformFunction: null
256
- },
257
- detailsBtnTitle: {
258
- classPropertyName: "detailsBtnTitle",
259
- publicName: "detailsBtnTitle",
260
- isSignal: true,
261
- isRequired: false,
262
- transformFunction: null
263
- }
264
- },
265
- outputs: { detailsBtnClick: "detailsBtnClick" },
266
- host: { properties: {
267
- "style.flex-direction": "this.hostFlexDirection",
268
- "style.width": "this.hostWidth"
269
- } },
270
- exportAs: ["cmatOrgChartDesigner"],
271
- ngImport: i0,
272
- template: "<!-- eslint-disable @angular-eslint/template/no-inline-styles -->\r\n<cmat-org-chart-node [class]=\"chartNodeClass()\" [node]=\"node()\" [hasParent]=\"hasParent()\"\r\n [enableControlHeight]=\"enableControlHeight()\" [direction]=\"direction()\" [detailsBtnTitle]=\"detailsBtnTitle()\"\r\n (detailsBtnClick)=\"detailsBtnClick.emit($event)\">\r\n</cmat-org-chart-node>\r\n\r\n<div class=\"cmat-org-reports-{{ direction() }} cmat-org-reports\">\r\n @for (childNode of node().children; track $index) {\r\n <div class=\"cmat-org-org-container cmat-org-org-container-{{ direction() }}\">\r\n <div class=\"cmat-org-connector-container cmat-org-connector-container-{{ direction() }}\">\r\n <div class=\"cmat-org-connector cmat-org-border\" [style.border-color]=\"$first ? 'transparent' : ''\"></div>\r\n <div class=\"cmat-org-border\"></div>\r\n <div class=\"cmat-org-connector cmat-org-border\" [style.border-color]=\"$last ? 'transparent' : ''\"></div>\r\n </div>\r\n <cmat-org-chart-designer [node]=\"childNode\" [hasParent]=\"true\" [enableControlHeight]=\"enableControlHeight()\"\r\n [direction]=\"direction()\" [detailsBtnTitle]=\"detailsBtnTitle()\" (detailsBtnClick)=\"detailsBtnClick.emit($event)\">\r\n </cmat-org-chart-designer>\r\n </div>\r\n }\r\n<!-- eslint-enable @angular-eslint/template/no-inline-styles -->\r\n</div>",
273
- styles: ["cmat-org-chart-designer{display:flex;align-items:center;flex:1}.cmat-org-vertical{flex-direction:column}.cmat-org-org-container{display:flex}.cmat-org-org-container-vertical{flex-direction:column}.cmat-org-connector{flex:1}.cmat-org-connector-container{display:flex}.cmat-org-connector-container-horizontal{flex-direction:column}.cmat-org-reports{display:flex;flex:1}.cmat-org-reports-horizontal{flex-direction:column}.cmat-org-reports-vertical{width:100%}\n"],
274
- dependencies: [{
275
- kind: "component",
276
- type: i0.forwardRef(() => CmatChartDesignerComponent),
277
- selector: "cmat-org-chart-designer",
278
- inputs: [
279
- "node",
280
- "hasParent",
281
- "enableControlHeight",
282
- "direction",
283
- "detailsBtnTitle"
284
- ],
285
- outputs: ["detailsBtnClick"],
286
- exportAs: ["cmatOrgChartDesigner"]
287
- }, {
288
- kind: "component",
289
- type: i0.forwardRef(() => CmatChartNodeComponent),
290
- selector: "cmat-org-chart-node",
291
- inputs: [
292
- "node",
293
- "hasParent",
294
- "enableControlHeight",
295
- "direction",
296
- "detailsBtnTitle"
297
- ],
298
- outputs: ["detailsBtnClick"],
299
- exportAs: ["cmatOrgChartNode"]
300
- }],
301
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
302
- encapsulation: i0.ViewEncapsulation.None
303
- });
304
- }
305
- };
306
- i0.ɵɵngDeclareClassMetadata({
307
- minVersion: "12.0.0",
308
- version: "22.2.4",
309
- ngImport: i0,
310
- type: CmatChartDesignerComponent,
311
- decorators: [{
312
- type: Component,
313
- args: [{
314
- selector: "cmat-org-chart-designer",
315
- encapsulation: ViewEncapsulation.None,
316
- changeDetection: ChangeDetectionStrategy.OnPush,
317
- exportAs: "cmatOrgChartDesigner",
318
- imports: [CmatChartNodeComponent, forwardRef(() => CmatChartDesignerComponent)],
319
- template: "<!-- eslint-disable @angular-eslint/template/no-inline-styles -->\r\n<cmat-org-chart-node [class]=\"chartNodeClass()\" [node]=\"node()\" [hasParent]=\"hasParent()\"\r\n [enableControlHeight]=\"enableControlHeight()\" [direction]=\"direction()\" [detailsBtnTitle]=\"detailsBtnTitle()\"\r\n (detailsBtnClick)=\"detailsBtnClick.emit($event)\">\r\n</cmat-org-chart-node>\r\n\r\n<div class=\"cmat-org-reports-{{ direction() }} cmat-org-reports\">\r\n @for (childNode of node().children; track $index) {\r\n <div class=\"cmat-org-org-container cmat-org-org-container-{{ direction() }}\">\r\n <div class=\"cmat-org-connector-container cmat-org-connector-container-{{ direction() }}\">\r\n <div class=\"cmat-org-connector cmat-org-border\" [style.border-color]=\"$first ? 'transparent' : ''\"></div>\r\n <div class=\"cmat-org-border\"></div>\r\n <div class=\"cmat-org-connector cmat-org-border\" [style.border-color]=\"$last ? 'transparent' : ''\"></div>\r\n </div>\r\n <cmat-org-chart-designer [node]=\"childNode\" [hasParent]=\"true\" [enableControlHeight]=\"enableControlHeight()\"\r\n [direction]=\"direction()\" [detailsBtnTitle]=\"detailsBtnTitle()\" (detailsBtnClick)=\"detailsBtnClick.emit($event)\">\r\n </cmat-org-chart-designer>\r\n </div>\r\n }\r\n<!-- eslint-enable @angular-eslint/template/no-inline-styles -->\r\n</div>",
320
- styles: ["cmat-org-chart-designer{display:flex;align-items:center;flex:1}.cmat-org-vertical{flex-direction:column}.cmat-org-org-container{display:flex}.cmat-org-org-container-vertical{flex-direction:column}.cmat-org-connector{flex:1}.cmat-org-connector-container{display:flex}.cmat-org-connector-container-horizontal{flex-direction:column}.cmat-org-reports{display:flex;flex:1}.cmat-org-reports-horizontal{flex-direction:column}.cmat-org-reports-vertical{width:100%}\n"]
321
- }]
322
- }],
323
- propDecorators: {
324
- node: [{
325
- type: i0.Input,
326
- args: [{
327
- isSignal: true,
328
- alias: "node",
329
- required: true
330
- }]
331
- }],
332
- hasParent: [{
333
- type: i0.Input,
334
- args: [{
335
- isSignal: true,
336
- alias: "hasParent",
337
- required: false
338
- }]
339
- }],
340
- enableControlHeight: [{
341
- type: i0.Input,
342
- args: [{
343
- isSignal: true,
344
- alias: "enableControlHeight",
345
- required: false
346
- }]
347
- }],
348
- direction: [{
349
- type: i0.Input,
350
- args: [{
351
- isSignal: true,
352
- alias: "direction",
353
- required: false
354
- }]
355
- }],
356
- detailsBtnTitle: [{
357
- type: i0.Input,
358
- args: [{
359
- isSignal: true,
360
- alias: "detailsBtnTitle",
361
- required: false
362
- }]
363
- }],
364
- detailsBtnClick: [{
365
- type: i0.Output,
366
- args: ["detailsBtnClick"]
367
- }],
368
- hostFlexDirection: [{
369
- type: HostBinding,
370
- args: ["style.flex-direction"]
371
- }],
372
- hostWidth: [{
373
- type: HostBinding,
374
- args: ["style.width"]
375
- }]
376
- }
377
- });
378
- var CmatOrgChartComponent = class CmatOrgChartComponent {
379
- constructor() {
380
- this.nodes = input.required(...ngDevMode ? [{ debugName: "nodes" }] : /* istanbul ignore next */ []);
381
- this.enableControlHeight = input(false, ...ngDevMode ? [{ debugName: "enableControlHeight" }] : /* istanbul ignore next */ []);
382
- this.direction = input("vertical", ...ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []);
383
- this.detailsBtnTitle = input("查看详细", ...ngDevMode ? [{ debugName: "detailsBtnTitle" }] : /* istanbul ignore next */ []);
384
- this.detailsBtnClick = output();
385
- }
386
- static {
387
- this.ɵfac = i0.ɵɵngDeclareFactory({
388
- minVersion: "12.0.0",
389
- version: "22.2.4",
390
- ngImport: i0,
391
- type: CmatOrgChartComponent,
392
- deps: [],
393
- target: i0.ɵɵFactoryTarget.Component
394
- });
395
- }
396
- static {
397
- this.ɵcmp = i0.ɵɵngDeclareComponent({
398
- minVersion: "17.0.0",
399
- version: "22.2.4",
400
- type: CmatOrgChartComponent,
401
- isStandalone: true,
402
- selector: "cmat-org-chart",
403
- inputs: {
404
- nodes: {
405
- classPropertyName: "nodes",
406
- publicName: "nodes",
407
- isSignal: true,
408
- isRequired: true,
409
- transformFunction: null
410
- },
411
- enableControlHeight: {
412
- classPropertyName: "enableControlHeight",
413
- publicName: "enableControlHeight",
414
- isSignal: true,
415
- isRequired: false,
416
- transformFunction: null
417
- },
418
- direction: {
419
- classPropertyName: "direction",
420
- publicName: "direction",
421
- isSignal: true,
422
- isRequired: false,
423
- transformFunction: null
424
- },
425
- detailsBtnTitle: {
426
- classPropertyName: "detailsBtnTitle",
427
- publicName: "detailsBtnTitle",
428
- isSignal: true,
429
- isRequired: false,
430
- transformFunction: null
431
- }
432
- },
433
- outputs: { detailsBtnClick: "detailsBtnClick" },
434
- exportAs: ["cmatOrgChart"],
435
- ngImport: i0,
436
- template: "<div class=\"cmat-org\">\r\n @for (node of nodes(); track $index) {\r\n <div class=\"cmat-org-self-{{ direction() }}\">\r\n <cmat-org-chart-designer [node]=\"node\" [direction]=\"direction()\" [enableControlHeight]=\"enableControlHeight()\"\r\n [detailsBtnTitle]=\"detailsBtnTitle()\" (detailsBtnClick)=\"detailsBtnClick.emit($event)\"></cmat-org-chart-designer>\r\n </div>\r\n }\r\n</div>",
437
- styles: [".cmat-org-horizontal{padding:1em 0}.cmat-org-vertical{padding:0 1em}.cmat-org-border{border:.1em solid var(--cmat-divider);box-sizing:border-box}.cmat-org-box{padding:.5em 1em;border-radius:.2em;box-shadow:0 2px 8px #00000059}.cmat-org-connector-horizontal{width:1em!important;height:0!important}.cmat-org-connector-vertical{width:0!important;height:1em!important}.cmat-org .cmat-org-self-vertical{margin-bottom:2%}\n"],
438
- dependencies: [{
439
- kind: "component",
440
- type: CmatChartDesignerComponent,
441
- selector: "cmat-org-chart-designer",
442
- inputs: [
443
- "node",
444
- "hasParent",
445
- "enableControlHeight",
446
- "direction",
447
- "detailsBtnTitle"
448
- ],
449
- outputs: ["detailsBtnClick"],
450
- exportAs: ["cmatOrgChartDesigner"]
451
- }],
452
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
453
- encapsulation: i0.ViewEncapsulation.None
454
- });
455
- }
456
- };
457
- i0.ɵɵngDeclareClassMetadata({
458
- minVersion: "12.0.0",
459
- version: "22.2.4",
460
- ngImport: i0,
461
- type: CmatOrgChartComponent,
462
- decorators: [{
463
- type: Component,
464
- args: [{
465
- selector: "cmat-org-chart",
466
- encapsulation: ViewEncapsulation.None,
467
- changeDetection: ChangeDetectionStrategy.OnPush,
468
- exportAs: "cmatOrgChart",
469
- imports: [CmatChartDesignerComponent],
470
- template: "<div class=\"cmat-org\">\r\n @for (node of nodes(); track $index) {\r\n <div class=\"cmat-org-self-{{ direction() }}\">\r\n <cmat-org-chart-designer [node]=\"node\" [direction]=\"direction()\" [enableControlHeight]=\"enableControlHeight()\"\r\n [detailsBtnTitle]=\"detailsBtnTitle()\" (detailsBtnClick)=\"detailsBtnClick.emit($event)\"></cmat-org-chart-designer>\r\n </div>\r\n }\r\n</div>",
471
- styles: [".cmat-org-horizontal{padding:1em 0}.cmat-org-vertical{padding:0 1em}.cmat-org-border{border:.1em solid var(--cmat-divider);box-sizing:border-box}.cmat-org-box{padding:.5em 1em;border-radius:.2em;box-shadow:0 2px 8px #00000059}.cmat-org-connector-horizontal{width:1em!important;height:0!important}.cmat-org-connector-vertical{width:0!important;height:1em!important}.cmat-org .cmat-org-self-vertical{margin-bottom:2%}\n"]
472
- }]
473
- }],
474
- propDecorators: {
475
- nodes: [{
476
- type: i0.Input,
477
- args: [{
478
- isSignal: true,
479
- alias: "nodes",
480
- required: true
481
- }]
482
- }],
483
- enableControlHeight: [{
484
- type: i0.Input,
485
- args: [{
486
- isSignal: true,
487
- alias: "enableControlHeight",
488
- required: false
489
- }]
490
- }],
491
- direction: [{
492
- type: i0.Input,
493
- args: [{
494
- isSignal: true,
495
- alias: "direction",
496
- required: false
497
- }]
498
- }],
499
- detailsBtnTitle: [{
500
- type: i0.Input,
501
- args: [{
502
- isSignal: true,
503
- alias: "detailsBtnTitle",
504
- required: false
505
- }]
506
- }],
507
- detailsBtnClick: [{
508
- type: i0.Output,
509
- args: ["detailsBtnClick"]
510
- }]
511
- }
512
- });
513
- var ChartNode = class ChartNode {
514
- constructor(structure, parent) {
515
- this.parent = parent;
516
- const [name, ...reports] = structure;
517
- this.name = name.split("(")[0].trim();
518
- const titleMatch = /\(([^)]+)\)/.exec(name);
519
- this.title = titleMatch?.[1].trim();
520
- this.children = reports.map((r) => r.substring(1)).reduce((previous, current) => {
521
- if (!current.startsWith(" ")) previous.push([]);
522
- previous[previous.length - 1].push(current);
523
- return previous;
524
- }, []).map((r) => new ChartNode(r, this)) ?? [];
525
- }
526
- };
527
- export { ChartNode, CmatOrgChartComponent };
528
-
529
- //# sourceMappingURL=cmat-components-org-chart.mjs.map
1
+ export { t as ChartNode, n as CmatOrgChartComponent } from "./public-api-nzzDLiDj.mjs";
@@ -1,6 +1,6 @@
1
- import { NgClass } from "@angular/common";
2
1
  import * as i0 from "@angular/core";
3
2
  import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, input } from "@angular/core";
3
+ import { NgClass } from "@angular/common";
4
4
  var CmatPageHeaderComponent = class CmatPageHeaderComponent {
5
5
  constructor() {
6
6
  this.title = input("页面标题", ...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
@@ -13,7 +13,7 @@ var CmatPageHeaderComponent = class CmatPageHeaderComponent {
13
13
  static {
14
14
  this.ɵfac = i0.ɵɵngDeclareFactory({
15
15
  minVersion: "12.0.0",
16
- version: "22.2.4",
16
+ version: "22.3.0",
17
17
  ngImport: i0,
18
18
  type: CmatPageHeaderComponent,
19
19
  deps: [],
@@ -23,7 +23,7 @@ var CmatPageHeaderComponent = class CmatPageHeaderComponent {
23
23
  static {
24
24
  this.ɵcmp = i0.ɵɵngDeclareComponent({
25
25
  minVersion: "17.0.0",
26
- version: "22.2.4",
26
+ version: "22.3.0",
27
27
  type: CmatPageHeaderComponent,
28
28
  isStandalone: true,
29
29
  selector: "cmat-page-header",
@@ -80,7 +80,7 @@ var CmatPageHeaderComponent = class CmatPageHeaderComponent {
80
80
  };
81
81
  i0.ɵɵngDeclareClassMetadata({
82
82
  minVersion: "12.0.0",
83
- version: "22.2.4",
83
+ version: "22.3.0",
84
84
  ngImport: i0,
85
85
  type: CmatPageHeaderComponent,
86
86
  decorators: [{