ngx-histaff-alpha 6.1.8 → 6.2.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 (50) hide show
  1. package/fesm2022/{ngx-histaff-alpha-ai-hint-for-table.component-DOdYu7Qz.mjs → ngx-histaff-alpha-ai-hint-for-table.component-DyVTgtpG.mjs} +2 -2
  2. package/fesm2022/{ngx-histaff-alpha-ai-hint-for-table.component-DOdYu7Qz.mjs.map → ngx-histaff-alpha-ai-hint-for-table.component-DyVTgtpG.mjs.map} +1 -1
  3. package/fesm2022/{ngx-histaff-alpha-core-form-design.component-CPc3_wvY.mjs → ngx-histaff-alpha-core-form-design.component-CufMNYnC.mjs} +5 -5
  4. package/fesm2022/{ngx-histaff-alpha-core-form-design.component-CPc3_wvY.mjs.map → ngx-histaff-alpha-core-form-design.component-CufMNYnC.mjs.map} +1 -1
  5. package/fesm2022/{ngx-histaff-alpha-core-template-editor.component-EuUcsaob.mjs → ngx-histaff-alpha-core-template-editor.component-Dbe5jZnV.mjs} +2 -2
  6. package/fesm2022/{ngx-histaff-alpha-core-template-editor.component-EuUcsaob.mjs.map → ngx-histaff-alpha-core-template-editor.component-Dbe5jZnV.mjs.map} +1 -1
  7. package/fesm2022/{ngx-histaff-alpha-core-toast-loading.component-B7Lzc40D.mjs → ngx-histaff-alpha-core-toast-loading.component-5D4LE2sr.mjs} +2 -2
  8. package/fesm2022/{ngx-histaff-alpha-core-toast-loading.component-B7Lzc40D.mjs.map → ngx-histaff-alpha-core-toast-loading.component-5D4LE2sr.mjs.map} +1 -1
  9. package/fesm2022/{ngx-histaff-alpha-core-workflow-consume.component-BVjdh7ac.mjs → ngx-histaff-alpha-core-workflow-consume.component-BtNa78A4.mjs} +2 -2
  10. package/fesm2022/{ngx-histaff-alpha-core-workflow-consume.component-BVjdh7ac.mjs.map → ngx-histaff-alpha-core-workflow-consume.component-BtNa78A4.mjs.map} +1 -1
  11. package/fesm2022/{ngx-histaff-alpha-db-settings.component-BAJ1hesZ.mjs → ngx-histaff-alpha-db-settings.component-DaHSJDn-.mjs} +6 -6
  12. package/fesm2022/ngx-histaff-alpha-db-settings.component-DaHSJDn-.mjs.map +1 -0
  13. package/fesm2022/{ngx-histaff-alpha-design-wrapper.component-5NTZUC0w.mjs → ngx-histaff-alpha-design-wrapper.component-BMjJioyu.mjs} +5 -5
  14. package/fesm2022/{ngx-histaff-alpha-design-wrapper.component-5NTZUC0w.mjs.map → ngx-histaff-alpha-design-wrapper.component-BMjJioyu.mjs.map} +1 -1
  15. package/fesm2022/{ngx-histaff-alpha-design-wrapper.route-D_QrGiZT.mjs → ngx-histaff-alpha-design-wrapper.route-BJlMXj4M.mjs} +5 -5
  16. package/fesm2022/{ngx-histaff-alpha-design-wrapper.route-D_QrGiZT.mjs.map → ngx-histaff-alpha-design-wrapper.route-BJlMXj4M.mjs.map} +1 -1
  17. package/fesm2022/{ngx-histaff-alpha-form-array-props.component-BWd_SGdf.mjs → ngx-histaff-alpha-form-array-props.component-BEH1sHvd.mjs} +3 -3
  18. package/fesm2022/{ngx-histaff-alpha-form-array-props.component-BWd_SGdf.mjs.map → ngx-histaff-alpha-form-array-props.component-BEH1sHvd.mjs.map} +1 -1
  19. package/fesm2022/ngx-histaff-alpha-hrm-schema.component-D1B9X3p7.mjs +39 -0
  20. package/fesm2022/ngx-histaff-alpha-hrm-schema.component-D1B9X3p7.mjs.map +1 -0
  21. package/fesm2022/{ngx-histaff-alpha-live-form.component-aDO001LD.mjs → ngx-histaff-alpha-live-form.component-j7qvkJWf.mjs} +2 -2
  22. package/fesm2022/{ngx-histaff-alpha-live-form.component-aDO001LD.mjs.map → ngx-histaff-alpha-live-form.component-j7qvkJWf.mjs.map} +1 -1
  23. package/fesm2022/{ngx-histaff-alpha-ngx-histaff-alpha-BZud6dXC.mjs → ngx-histaff-alpha-ngx-histaff-alpha-BPy1ZFzg.mjs} +104 -54
  24. package/fesm2022/ngx-histaff-alpha-ngx-histaff-alpha-BPy1ZFzg.mjs.map +1 -0
  25. package/fesm2022/{ngx-histaff-alpha-simple-chat.component-x1hEs59D.mjs → ngx-histaff-alpha-simple-chat.component-BDsFRzh6.mjs} +2 -2
  26. package/fesm2022/{ngx-histaff-alpha-simple-chat.component-x1hEs59D.mjs.map → ngx-histaff-alpha-simple-chat.component-BDsFRzh6.mjs.map} +1 -1
  27. package/fesm2022/{ngx-histaff-alpha-template-list.component-DzDcmcSR.mjs → ngx-histaff-alpha-template-list.component-BUZG_E1t.mjs} +2 -2
  28. package/fesm2022/{ngx-histaff-alpha-template-list.component-DzDcmcSR.mjs.map → ngx-histaff-alpha-template-list.component-BUZG_E1t.mjs.map} +1 -1
  29. package/fesm2022/{ngx-histaff-alpha-tracker-studio.component-ChKja-b5.mjs → ngx-histaff-alpha-tracker-studio.component-CHL0zusb.mjs} +2 -2
  30. package/fesm2022/{ngx-histaff-alpha-tracker-studio.component-ChKja-b5.mjs.map → ngx-histaff-alpha-tracker-studio.component-CHL0zusb.mjs.map} +1 -1
  31. package/fesm2022/{ngx-histaff-alpha-wf-form-assign.component-CkFl1ydk.mjs → ngx-histaff-alpha-wf-form-assign.component-y39u2HI_.mjs} +2 -2
  32. package/fesm2022/{ngx-histaff-alpha-wf-form-assign.component-CkFl1ydk.mjs.map → ngx-histaff-alpha-wf-form-assign.component-y39u2HI_.mjs.map} +1 -1
  33. package/fesm2022/{ngx-histaff-alpha-wf-global-config.component-CT_xXIky.mjs → ngx-histaff-alpha-wf-global-config.component-CEwicqGN.mjs} +2 -2
  34. package/fesm2022/{ngx-histaff-alpha-wf-global-config.component-CT_xXIky.mjs.map → ngx-histaff-alpha-wf-global-config.component-CEwicqGN.mjs.map} +1 -1
  35. package/fesm2022/{ngx-histaff-alpha-wf-instance-status.component-CRt03BwZ.mjs → ngx-histaff-alpha-wf-instance-status.component-BHJasTcr.mjs} +2 -2
  36. package/fesm2022/{ngx-histaff-alpha-wf-instance-status.component-CRt03BwZ.mjs.map → ngx-histaff-alpha-wf-instance-status.component-BHJasTcr.mjs.map} +1 -1
  37. package/fesm2022/{ngx-histaff-alpha-wf-instance-step-react.component-CchytWxJ.mjs → ngx-histaff-alpha-wf-instance-step-react.component-B2zSQ7If.mjs} +3 -3
  38. package/fesm2022/{ngx-histaff-alpha-wf-instance-step-react.component-CchytWxJ.mjs.map → ngx-histaff-alpha-wf-instance-step-react.component-B2zSQ7If.mjs.map} +1 -1
  39. package/fesm2022/ngx-histaff-alpha.mjs +1 -1
  40. package/lib/app/libraries/core-workflow-builder/interfaces/IWorkflowSchema.d.ts +1 -0
  41. package/lib/app/root/hrm-schema/hrm-schema.component.d.ts +19 -2
  42. package/lib/app/services/asset-script.service.d.ts +7 -0
  43. package/lib/app/services/docx-merge-service.d.ts +14 -0
  44. package/lib/app/services/liquid-js.service.d.ts +2 -1
  45. package/package.json +2 -2
  46. package/public-api.d.ts +1 -0
  47. package/fesm2022/ngx-histaff-alpha-db-settings.component-BAJ1hesZ.mjs.map +0 -1
  48. package/fesm2022/ngx-histaff-alpha-hrm-schema.component-DEwZom7-.mjs +0 -14
  49. package/fesm2022/ngx-histaff-alpha-hrm-schema.component-DEwZom7-.mjs.map +0 -1
  50. package/fesm2022/ngx-histaff-alpha-ngx-histaff-alpha-BZud6dXC.mjs.map +0 -1
@@ -1,23 +1,23 @@
1
- import { q as CanDeactivateGuard } from './ngx-histaff-alpha-ngx-histaff-alpha-BZud6dXC.mjs';
1
+ import { q as CanDeactivateGuard } from './ngx-histaff-alpha-ngx-histaff-alpha-BPy1ZFzg.mjs';
2
2
 
3
3
  const wfDesignWrapperRoutes = [
4
4
  {
5
5
  path: '',
6
- loadComponent: () => import('./ngx-histaff-alpha-design-wrapper.component-5NTZUC0w.mjs').then(m => m.DesignWrapperComponent),
6
+ loadComponent: () => import('./ngx-histaff-alpha-design-wrapper.component-BMjJioyu.mjs').then(m => m.DesignWrapperComponent),
7
7
  canDeactivate: [CanDeactivateGuard],
8
8
  children: [
9
9
  {
10
10
  path: ':id',
11
11
  outlet: 'preview',
12
- loadComponent: () => import('./ngx-histaff-alpha-live-form.component-aDO001LD.mjs').then(function (n) { return n.l; }).then(m => m.LiveFormComponent)
12
+ loadComponent: () => import('./ngx-histaff-alpha-live-form.component-j7qvkJWf.mjs').then(function (n) { return n.l; }).then(m => m.LiveFormComponent)
13
13
  },
14
14
  ]
15
15
  },
16
16
  {
17
17
  path: ':id',
18
- loadComponent: () => import('./ngx-histaff-alpha-live-form.component-aDO001LD.mjs').then(function (n) { return n.l; }).then(m => m.LiveFormComponent)
18
+ loadComponent: () => import('./ngx-histaff-alpha-live-form.component-j7qvkJWf.mjs').then(function (n) { return n.l; }).then(m => m.LiveFormComponent)
19
19
  }
20
20
  ];
21
21
 
22
22
  export { wfDesignWrapperRoutes };
23
- //# sourceMappingURL=ngx-histaff-alpha-design-wrapper.route-D_QrGiZT.mjs.map
23
+ //# sourceMappingURL=ngx-histaff-alpha-design-wrapper.route-BJlMXj4M.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-histaff-alpha-design-wrapper.route-D_QrGiZT.mjs","sources":["../../../projects/ngx-histaff-alpha/src/lib/app/libraries/core-workflow-builder/design-wrapper/design-wrapper.route.ts"],"sourcesContent":["import { Routes } from '@angular/router';\r\nimport { CanDeactivateGuard } from '../../../guards/can-deactivate.guard';\r\n\r\nexport const wfDesignWrapperRoutes: Routes = [\r\n {\r\n path: '',\r\n loadComponent: () => import('./design-wrapper.component').then(m => m.DesignWrapperComponent),\r\n canDeactivate: [CanDeactivateGuard],\r\n children: [\r\n {\r\n path: ':id',\r\n outlet: 'preview',\r\n loadComponent: () => import('../../core-form-design/live-form/live-form.component').then(m => m.LiveFormComponent)\r\n },\r\n ]\r\n },\r\n {\r\n path: ':id',\r\n loadComponent: () => import('../../core-form-design/live-form/live-form.component').then(m => m.LiveFormComponent)\r\n }\r\n]"],"names":[],"mappings":";;AAGa,MAAA,qBAAqB,GAAW;AACzC,IAAA;AACI,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,aAAa,EAAE,MAAM,OAAO,2DAA4B,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,sBAAsB,CAAC;QAC7F,aAAa,EAAE,CAAC,kBAAkB,CAAC;AACnC,QAAA,QAAQ,EAAE;AACN,YAAA;AACI,gBAAA,IAAI,EAAE,KAAK;AACX,gBAAA,MAAM,EAAE,SAAS;AACjB,gBAAA,aAAa,EAAE,MAAM,OAAO,sDAAsD,oCAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,iBAAiB;AACpH,aAAA;AACJ;AACJ,KAAA;AACD,IAAA;AACI,QAAA,IAAI,EAAE,KAAK;AACX,QAAA,aAAa,EAAE,MAAM,OAAO,sDAAsD,oCAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,iBAAiB;AACpH;;;;;"}
1
+ {"version":3,"file":"ngx-histaff-alpha-design-wrapper.route-BJlMXj4M.mjs","sources":["../../../projects/ngx-histaff-alpha/src/lib/app/libraries/core-workflow-builder/design-wrapper/design-wrapper.route.ts"],"sourcesContent":["import { Routes } from '@angular/router';\r\nimport { CanDeactivateGuard } from '../../../guards/can-deactivate.guard';\r\n\r\nexport const wfDesignWrapperRoutes: Routes = [\r\n {\r\n path: '',\r\n loadComponent: () => import('./design-wrapper.component').then(m => m.DesignWrapperComponent),\r\n canDeactivate: [CanDeactivateGuard],\r\n children: [\r\n {\r\n path: ':id',\r\n outlet: 'preview',\r\n loadComponent: () => import('../../core-form-design/live-form/live-form.component').then(m => m.LiveFormComponent)\r\n },\r\n ]\r\n },\r\n {\r\n path: ':id',\r\n loadComponent: () => import('../../core-form-design/live-form/live-form.component').then(m => m.LiveFormComponent)\r\n }\r\n]"],"names":[],"mappings":";;AAGa,MAAA,qBAAqB,GAAW;AACzC,IAAA;AACI,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,aAAa,EAAE,MAAM,OAAO,2DAA4B,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,sBAAsB,CAAC;QAC7F,aAAa,EAAE,CAAC,kBAAkB,CAAC;AACnC,QAAA,QAAQ,EAAE;AACN,YAAA;AACI,gBAAA,IAAI,EAAE,KAAK;AACX,gBAAA,MAAM,EAAE,SAAS;AACjB,gBAAA,aAAa,EAAE,MAAM,OAAO,sDAAsD,oCAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,iBAAiB;AACpH,aAAA;AACJ;AACJ,KAAA;AACD,IAAA;AACI,QAAA,IAAI,EAAE,KAAK;AACX,QAAA,aAAa,EAAE,MAAM,OAAO,sDAAsD,oCAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,iBAAiB;AACpH;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Component } from '@angular/core';
3
- import { B as BasePropsComponent } from './ngx-histaff-alpha-core-form-design.component-CPc3_wvY.mjs';
4
- import { d as EnumFormBaseContolType } from './ngx-histaff-alpha-ngx-histaff-alpha-BZud6dXC.mjs';
3
+ import { B as BasePropsComponent } from './ngx-histaff-alpha-core-form-design.component-CufMNYnC.mjs';
4
+ import { d as EnumFormBaseContolType } from './ngx-histaff-alpha-ngx-histaff-alpha-BPy1ZFzg.mjs';
5
5
 
6
6
  class FormArrayPropsComponent extends BasePropsComponent {
7
7
  openDesigner() {
@@ -23,4 +23,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
23
23
  }] });
24
24
 
25
25
  export { FormArrayPropsComponent };
26
- //# sourceMappingURL=ngx-histaff-alpha-form-array-props.component-BWd_SGdf.mjs.map
26
+ //# sourceMappingURL=ngx-histaff-alpha-form-array-props.component-BEH1sHvd.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-histaff-alpha-form-array-props.component-BWd_SGdf.mjs","sources":["../../../projects/ngx-histaff-alpha/src/lib/app/libraries/core-form-design/field-setting/type-specific/form-array-props/form-array-props.component.ts","../../../projects/ngx-histaff-alpha/src/lib/app/libraries/core-form-design/field-setting/type-specific/form-array-props/form-array-props.component.html"],"sourcesContent":["import { Component } from '@angular/core';\r\nimport { BasePropsComponent } from '../../base-props/base-props.component';\r\nimport { EnumFormBaseContolType } from '../../../../../enum/EnumFormBaseContolType';\r\n\r\n@Component({\r\n selector: 'form-array-props',\r\n imports: [],\r\n templateUrl: './form-array-props.component.html',\r\n styleUrl: './form-array-props.component.scss'\r\n})\r\nexport class FormArrayPropsComponent extends BasePropsComponent {\r\n\r\n openDesigner() {\r\n const control = this.coreFormDesignService.$control();\r\n if (control?.controlType === EnumFormBaseContolType.FORM_ARRAY) {\r\n\r\n\r\n this.coreFormDesignService.$fieldSettingPanelOpen.set(false);\r\n this.coreFormDesignService.$showFormArrayDesign.set(true);\r\n\r\n // Since $nestedDesignSections is of type WritableSignal<ICoreFormSection[] | null>\r\n // if set (not null), we use @if in parent conponent (CoreFormDesignComponent template)\r\n // to display a popup containing CoreFormArrayLayoutEditorComponent\r\n }\r\n }\r\n}\r\n"," <div class=\"mt-3 d-flex d-flex-center\">\r\n <button class=\"btn btn-outline-primary\" (click)=\"openDesigner()\">\r\n Design Nested Layout\r\n </button>\r\n </div>"],"names":[],"mappings":";;;;;AAUM,MAAO,uBAAwB,SAAQ,kBAAkB,CAAA;IAE7D,YAAY,GAAA;QACV,MAAM,OAAO,GAAG,IAAI,CAAC,qBAAqB,CAAC,QAAQ,EAAE;QACnD,IAAI,OAAO,EAAE,WAAW,KAAK,sBAAsB,CAAC,UAAU,EAAE;YAG9D,IAAI,CAAC,qBAAqB,CAAC,sBAAsB,CAAC,GAAG,CAAC,KAAK,CAAC;YAC5D,IAAI,CAAC,qBAAqB,CAAC,oBAAoB,CAAC,GAAG,CAAC,IAAI,CAAC;;;;;;8GARpD,uBAAuB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,uBAAuB,mGCVpC,+LAIU,EAAA,MAAA,EAAA,CAAA,sDAAA,CAAA,EAAA,CAAA,CAAA;;2FDMG,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBANnC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,WACnB,EAAE,EAAA,QAAA,EAAA,+LAAA,EAAA,MAAA,EAAA,CAAA,sDAAA,CAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"ngx-histaff-alpha-form-array-props.component-BEH1sHvd.mjs","sources":["../../../projects/ngx-histaff-alpha/src/lib/app/libraries/core-form-design/field-setting/type-specific/form-array-props/form-array-props.component.ts","../../../projects/ngx-histaff-alpha/src/lib/app/libraries/core-form-design/field-setting/type-specific/form-array-props/form-array-props.component.html"],"sourcesContent":["import { Component } from '@angular/core';\r\nimport { BasePropsComponent } from '../../base-props/base-props.component';\r\nimport { EnumFormBaseContolType } from '../../../../../enum/EnumFormBaseContolType';\r\n\r\n@Component({\r\n selector: 'form-array-props',\r\n imports: [],\r\n templateUrl: './form-array-props.component.html',\r\n styleUrl: './form-array-props.component.scss'\r\n})\r\nexport class FormArrayPropsComponent extends BasePropsComponent {\r\n\r\n openDesigner() {\r\n const control = this.coreFormDesignService.$control();\r\n if (control?.controlType === EnumFormBaseContolType.FORM_ARRAY) {\r\n\r\n\r\n this.coreFormDesignService.$fieldSettingPanelOpen.set(false);\r\n this.coreFormDesignService.$showFormArrayDesign.set(true);\r\n\r\n // Since $nestedDesignSections is of type WritableSignal<ICoreFormSection[] | null>\r\n // if set (not null), we use @if in parent conponent (CoreFormDesignComponent template)\r\n // to display a popup containing CoreFormArrayLayoutEditorComponent\r\n }\r\n }\r\n}\r\n"," <div class=\"mt-3 d-flex d-flex-center\">\r\n <button class=\"btn btn-outline-primary\" (click)=\"openDesigner()\">\r\n Design Nested Layout\r\n </button>\r\n </div>"],"names":[],"mappings":";;;;;AAUM,MAAO,uBAAwB,SAAQ,kBAAkB,CAAA;IAE7D,YAAY,GAAA;QACV,MAAM,OAAO,GAAG,IAAI,CAAC,qBAAqB,CAAC,QAAQ,EAAE;QACnD,IAAI,OAAO,EAAE,WAAW,KAAK,sBAAsB,CAAC,UAAU,EAAE;YAG9D,IAAI,CAAC,qBAAqB,CAAC,sBAAsB,CAAC,GAAG,CAAC,KAAK,CAAC;YAC5D,IAAI,CAAC,qBAAqB,CAAC,oBAAoB,CAAC,GAAG,CAAC,IAAI,CAAC;;;;;;8GARpD,uBAAuB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,uBAAuB,mGCVpC,+LAIU,EAAA,MAAA,EAAA,CAAA,sDAAA,CAAA,EAAA,CAAA,CAAA;;2FDMG,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBANnC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,WACnB,EAAE,EAAA,QAAA,EAAA,+LAAA,EAAA,MAAA,EAAA,CAAA,sDAAA,CAAA,EAAA;;;;;"}
@@ -0,0 +1,39 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, Component } from '@angular/core';
3
+ import { B as BaseComponent, A as AppService } from './ngx-histaff-alpha-ngx-histaff-alpha-BPy1ZFzg.mjs';
4
+ import { finalize } from 'rxjs';
5
+
6
+ class HrmSchemaComponent extends BaseComponent {
7
+ constructor() {
8
+ super(...arguments);
9
+ this.reports = [];
10
+ this.loading = false;
11
+ this.appService = inject(AppService);
12
+ }
13
+ get maxDuration() {
14
+ return this.reports.length ? Math.max(...this.reports.map(r => r.durationMs)) : 1;
15
+ }
16
+ // Scale bar width as percentage
17
+ getWidth(report) {
18
+ return `${(report.durationMs / this.maxDuration) * 100}%`;
19
+ }
20
+ ngAfterViewInit() {
21
+ setTimeout(() => {
22
+ this.loading = true;
23
+ this.subscriptions.push(this.appService.get('/api/HrmSchemaEssential/SchemaCheck').pipe(finalize(() => this.loading = false)).subscribe(x => {
24
+ if (x.ok && x.status === 200 && x.body?.statusCode === 200) {
25
+ this.reports = x.body.innerBody;
26
+ }
27
+ }));
28
+ });
29
+ }
30
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: HrmSchemaComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
31
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.5", type: HrmSchemaComponent, isStandalone: true, selector: "hrm-schema", usesInheritance: true, ngImport: i0, template: "\r\n<div class=\"container-fluid\">\r\n <div class=\"schema-bar-chart\">\r\n @for (r of reports; track $index) {\r\n <div class=\"schema-bar-row\">\r\n <div class=\"schema-label\">{{ r.name }}</div>\r\n <div class=\"schema-bar-wrapper\">\r\n <div class=\"schema-bar\" [class.success]=\"r.success\" [class.fail]=\"!r.success\" [style.width]=\"getWidth(r)\"\r\n [title]=\"r.durationMs + ' ms\\n' + (r.errors.length ? r.errors.join('; ') : 'OK')\">\r\n {{ r.durationMs }} ms\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n</div>", styles: [".schema-bar-chart{display:flex;flex-direction:column;gap:8px;max-width:700px}.schema-bar-row{display:flex;align-items:center;gap:10px}.schema-label{width:200px;font-weight:500;font-size:14px}.schema-bar-wrapper{flex:1;background:#f1f1f1;border-radius:4px;overflow:hidden;height:24px}.schema-bar{height:100%;line-height:24px;color:#fff;font-size:12px;text-align:right;padding-right:5px;transition:width .5s ease}.schema-bar.success{background-color:#4caf50}.schema-bar.fail{background-color:#f44336}\n"] }); }
32
+ }
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: HrmSchemaComponent, decorators: [{
34
+ type: Component,
35
+ args: [{ selector: 'hrm-schema', imports: [], template: "\r\n<div class=\"container-fluid\">\r\n <div class=\"schema-bar-chart\">\r\n @for (r of reports; track $index) {\r\n <div class=\"schema-bar-row\">\r\n <div class=\"schema-label\">{{ r.name }}</div>\r\n <div class=\"schema-bar-wrapper\">\r\n <div class=\"schema-bar\" [class.success]=\"r.success\" [class.fail]=\"!r.success\" [style.width]=\"getWidth(r)\"\r\n [title]=\"r.durationMs + ' ms\\n' + (r.errors.length ? r.errors.join('; ') : 'OK')\">\r\n {{ r.durationMs }} ms\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n</div>", styles: [".schema-bar-chart{display:flex;flex-direction:column;gap:8px;max-width:700px}.schema-bar-row{display:flex;align-items:center;gap:10px}.schema-label{width:200px;font-weight:500;font-size:14px}.schema-bar-wrapper{flex:1;background:#f1f1f1;border-radius:4px;overflow:hidden;height:24px}.schema-bar{height:100%;line-height:24px;color:#fff;font-size:12px;text-align:right;padding-right:5px;transition:width .5s ease}.schema-bar.success{background-color:#4caf50}.schema-bar.fail{background-color:#f44336}\n"] }]
36
+ }] });
37
+
38
+ export { HrmSchemaComponent };
39
+ //# sourceMappingURL=ngx-histaff-alpha-hrm-schema.component-D1B9X3p7.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-histaff-alpha-hrm-schema.component-D1B9X3p7.mjs","sources":["../../../projects/ngx-histaff-alpha/src/lib/app/root/hrm-schema/hrm-schema.component.ts","../../../projects/ngx-histaff-alpha/src/lib/app/root/hrm-schema/hrm-schema.component.html"],"sourcesContent":["import { AfterViewInit, Component, inject } from '@angular/core';\r\nimport { AppService } from '../../services/app.service';\r\nimport { BaseComponent } from '../../libraries/base-component/base/base.component';\r\nimport { finalize } from 'rxjs';\r\n\r\ninterface SchemaReport {\r\n name: string;\r\n success: boolean;\r\n durationMs: number;\r\n logs: string[];\r\n errors: string[];\r\n}\r\n\r\n@Component({\r\n selector: 'hrm-schema',\r\n imports: [],\r\n templateUrl: './hrm-schema.component.html',\r\n styleUrl: './hrm-schema.component.scss'\r\n})\r\nexport class HrmSchemaComponent extends BaseComponent implements AfterViewInit {\r\n reports: SchemaReport[] = [];\r\n loading: boolean = false;\r\n appService = inject(AppService)\r\n\r\n get maxDuration(): number {\r\n return this.reports.length ? Math.max(...this.reports.map(r => r.durationMs)) : 1;\r\n }\r\n\r\n // Scale bar width as percentage\r\n getWidth(report: SchemaReport): string {\r\n return `${(report.durationMs / this.maxDuration) * 100}%`;\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n setTimeout(() => {\r\n this.loading = true;\r\n this.subscriptions.push(\r\n this.appService.get('/api/HrmSchemaEssential/SchemaCheck').pipe(\r\n finalize(() => this.loading = false)\r\n ).subscribe(x => {\r\n if (x.ok && x.status === 200 && x.body?.statusCode === 200) {\r\n this.reports = x.body.innerBody;\r\n }\r\n })\r\n )\r\n })\r\n }\r\n}\r\n","\r\n<div class=\"container-fluid\">\r\n <div class=\"schema-bar-chart\">\r\n @for (r of reports; track $index) {\r\n <div class=\"schema-bar-row\">\r\n <div class=\"schema-label\">{{ r.name }}</div>\r\n <div class=\"schema-bar-wrapper\">\r\n <div class=\"schema-bar\" [class.success]=\"r.success\" [class.fail]=\"!r.success\" [style.width]=\"getWidth(r)\"\r\n [title]=\"r.durationMs + ' ms\\n' + (r.errors.length ? r.errors.join('; ') : 'OK')\">\r\n {{ r.durationMs }} ms\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n</div>"],"names":[],"mappings":";;;;;AAmBM,MAAO,kBAAmB,SAAQ,aAAa,CAAA;AANrD,IAAA,WAAA,GAAA;;QAOE,IAAO,CAAA,OAAA,GAAmB,EAAE;QAC5B,IAAO,CAAA,OAAA,GAAY,KAAK;AACxB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAyBhC;AAvBC,IAAA,IAAI,WAAW,GAAA;AACb,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC;;;AAInF,IAAA,QAAQ,CAAC,MAAoB,EAAA;AAC3B,QAAA,OAAO,CAAG,EAAA,CAAC,MAAM,CAAC,UAAU,GAAG,IAAI,CAAC,WAAW,IAAI,GAAG,GAAG;;IAG3D,eAAe,GAAA;QACb,UAAU,CAAC,MAAK;AACd,YAAA,IAAI,CAAC,OAAO,GAAG,IAAI;AACnB,YAAA,IAAI,CAAC,aAAa,CAAC,IAAI,CACrB,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,qCAAqC,CAAC,CAAC,IAAI,CAC7D,QAAQ,CAAC,MAAM,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,CACrC,CAAC,SAAS,CAAC,CAAC,IAAG;AACd,gBAAA,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,IAAI,EAAE,UAAU,KAAK,GAAG,EAAE;oBAC1D,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,SAAS;;aAElC,CAAC,CACH;AACH,SAAC,CAAC;;8GA1BO,kBAAkB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,kBAAkB,6FCnB/B,4pBAeM,EAAA,MAAA,EAAA,CAAA,sfAAA,CAAA,EAAA,CAAA,CAAA;;2FDIO,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAN9B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,WACb,EAAE,EAAA,QAAA,EAAA,4pBAAA,EAAA,MAAA,EAAA,CAAA,sfAAA,CAAA,EAAA;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { input, signal, computed, isDevMode, inject, HostListener, ChangeDetectionStrategy, Component, output, ChangeDetectorRef, Injector, effect } from '@angular/core';
3
- import { B as BaseComponent, a8 as EnumImageResolverType, h as CoreWorkflowService, k as CoreFormService, j as AlertService, X as AppConfigService, t as alertOptions, M as MultiLanguageService, T as TranslatePipe, I as ImageErrorResolverDirective, a9 as NormalizeHumanNamePipe, o as TooltipDirective, aa as CoreIosSwitcherComponent, u as CoreTerminalSpinnerComponent, f as CorePageHeaderComponent, x as DomService, L as CoreParamControlComponent, v as CoreFormDesignService, P as ApplicationHelpService, W as JsonService, A as AppService, d as EnumFormBaseContolType, R as EnumCorePageEditMode, Y as EnumCoreButtonVNSCode, i as EnumCoreFormControlSeekerSourceType, Q as HotKeysDirective, U as CoreFormComponent, a5 as JsonSafePipe } from './ngx-histaff-alpha-ngx-histaff-alpha-BZud6dXC.mjs';
3
+ import { B as BaseComponent, a8 as EnumImageResolverType, h as CoreWorkflowService, k as CoreFormService, j as AlertService, X as AppConfigService, t as alertOptions, M as MultiLanguageService, T as TranslatePipe, I as ImageErrorResolverDirective, a9 as NormalizeHumanNamePipe, o as TooltipDirective, aa as CoreIosSwitcherComponent, u as CoreTerminalSpinnerComponent, f as CorePageHeaderComponent, x as DomService, L as CoreParamControlComponent, v as CoreFormDesignService, P as ApplicationHelpService, W as JsonService, A as AppService, d as EnumFormBaseContolType, R as EnumCorePageEditMode, Y as EnumCoreButtonVNSCode, i as EnumCoreFormControlSeekerSourceType, Q as HotKeysDirective, U as CoreFormComponent, a5 as JsonSafePipe } from './ngx-histaff-alpha-ngx-histaff-alpha-BPy1ZFzg.mjs';
4
4
  import { catchError, of, finalize, BehaviorSubject, filter, distinctUntilChanged } from 'rxjs';
5
5
  import { NgClass, JsonPipe, NgStyle } from '@angular/common';
6
6
  import { RouterLink, Router, ActivatedRoute } from '@angular/router';
@@ -956,4 +956,4 @@ var liveForm_component = /*#__PURE__*/Object.freeze({
956
956
  });
957
957
 
958
958
  export { LiveFormComponent as L, RoutingPreviewPanelComponent as R, liveForm_component as l };
959
- //# sourceMappingURL=ngx-histaff-alpha-live-form.component-aDO001LD.mjs.map
959
+ //# sourceMappingURL=ngx-histaff-alpha-live-form.component-j7qvkJWf.mjs.map