ngx-t-forms 2.0.33 → 2.0.35

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 (101) hide show
  1. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-mygIYJsN.mjs → ngx-t-forms-auto-complete-input-element.component-hDWV_H2E.mjs} +2 -2
  2. package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-mygIYJsN.mjs.map → ngx-t-forms-auto-complete-input-element.component-hDWV_H2E.mjs.map} +1 -1
  3. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-B4gScnlc.mjs → ngx-t-forms-basic-input-input-element.component-BDWHCfgN.mjs} +3 -3
  4. package/fesm2022/{ngx-t-forms-basic-input-input-element.component-B4gScnlc.mjs.map → ngx-t-forms-basic-input-input-element.component-BDWHCfgN.mjs.map} +1 -1
  5. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-I2dW6hGi.mjs → ngx-t-forms-calculated-field-rules.component-C_jwUGqr.mjs} +2 -2
  6. package/fesm2022/{ngx-t-forms-calculated-field-rules.component-I2dW6hGi.mjs.map → ngx-t-forms-calculated-field-rules.component-C_jwUGqr.mjs.map} +1 -1
  7. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-84v7QQ3b.mjs → ngx-t-forms-chip-options-creator-editor.component-BIoML988.mjs} +4 -4
  8. package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-84v7QQ3b.mjs.map → ngx-t-forms-chip-options-creator-editor.component-BIoML988.mjs.map} +1 -1
  9. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-DZLzjFQy.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-D2tkeGrw.mjs} +6 -6
  10. package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-DZLzjFQy.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-D2tkeGrw.mjs.map} +1 -1
  11. package/fesm2022/{ngx-t-forms-data-source-picker.component-C6Xwcq3e.mjs → ngx-t-forms-data-source-picker.component-DHNyMfu5.mjs} +8 -8
  12. package/fesm2022/{ngx-t-forms-data-source-picker.component-C6Xwcq3e.mjs.map → ngx-t-forms-data-source-picker.component-DHNyMfu5.mjs.map} +1 -1
  13. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-C0uhrM_l.mjs → ngx-t-forms-date-picker-input-element.component-DJnHqSfk.mjs} +2 -2
  14. package/fesm2022/{ngx-t-forms-date-picker-input-element.component-C0uhrM_l.mjs.map → ngx-t-forms-date-picker-input-element.component-DJnHqSfk.mjs.map} +1 -1
  15. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-CZU0JScH.mjs → ngx-t-forms-date-range-picker-input-element.component-Iw5Sou7u.mjs} +2 -2
  16. package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-CZU0JScH.mjs.map → ngx-t-forms-date-range-picker-input-element.component-Iw5Sou7u.mjs.map} +1 -1
  17. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-zM7mpZxt.mjs +373 -0
  18. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-zM7mpZxt.mjs.map +1 -0
  19. package/fesm2022/{ngx-t-forms-document-picker.component-CITHgJjy.mjs → ngx-t-forms-document-picker.component-j7-XiDnt.mjs} +5 -5
  20. package/fesm2022/{ngx-t-forms-document-picker.component-CITHgJjy.mjs.map → ngx-t-forms-document-picker.component-j7-XiDnt.mjs.map} +1 -1
  21. package/fesm2022/{ngx-t-forms-editor-input-element.component-eJ9rpN3t.mjs → ngx-t-forms-editor-input-element.component-CjY8h93n.mjs} +3 -3
  22. package/fesm2022/{ngx-t-forms-editor-input-element.component-eJ9rpN3t.mjs.map → ngx-t-forms-editor-input-element.component-CjY8h93n.mjs.map} +1 -1
  23. package/fesm2022/{ngx-t-forms-editor-js-input.component-BOUSCTQ_.mjs → ngx-t-forms-editor-js-input.component-CB8iaZ8o.mjs} +2 -2
  24. package/fesm2022/{ngx-t-forms-editor-js-input.component-BOUSCTQ_.mjs.map → ngx-t-forms-editor-js-input.component-CB8iaZ8o.mjs.map} +1 -1
  25. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-BWIeO1O2.mjs → ngx-t-forms-file-upload-input-element.component-C8a1gMMz.mjs} +6 -6
  26. package/fesm2022/{ngx-t-forms-file-upload-input-element.component-BWIeO1O2.mjs.map → ngx-t-forms-file-upload-input-element.component-C8a1gMMz.mjs.map} +1 -1
  27. package/fesm2022/{ngx-t-forms-form-input-selector.component-DqRVx8YZ.mjs → ngx-t-forms-form-input-selector.component-vPJ9YksN.mjs} +4 -4
  28. package/fesm2022/{ngx-t-forms-form-input-selector.component-DqRVx8YZ.mjs.map → ngx-t-forms-form-input-selector.component-vPJ9YksN.mjs.map} +1 -1
  29. package/fesm2022/{ngx-t-forms-form-json-view.component-DSj-8rga.mjs → ngx-t-forms-form-json-view.component-DxvnpZdR.mjs} +2 -2
  30. package/fesm2022/{ngx-t-forms-form-json-view.component-DSj-8rga.mjs.map → ngx-t-forms-form-json-view.component-DxvnpZdR.mjs.map} +1 -1
  31. package/fesm2022/{ngx-t-forms-form-payload-projection.component-Ip9ewB18.mjs → ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs} +3 -3
  32. package/fesm2022/{ngx-t-forms-form-payload-projection.component-Ip9ewB18.mjs.map → ngx-t-forms-form-payload-projection.component-D46W1-4z.mjs.map} +1 -1
  33. package/fesm2022/ngx-t-forms-form-section-stepper.component-_cQl_olU.mjs +389 -0
  34. package/fesm2022/ngx-t-forms-form-section-stepper.component-_cQl_olU.mjs.map +1 -0
  35. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-Dz4Vl_ZN.mjs → ngx-t-forms-forms-builder-menu.component-BaBBPuXH.mjs} +11 -11
  36. package/fesm2022/{ngx-t-forms-forms-builder-menu.component-Dz4Vl_ZN.mjs.map → ngx-t-forms-forms-builder-menu.component-BaBBPuXH.mjs.map} +1 -1
  37. package/fesm2022/{ngx-t-forms-geo-location.component-BwB_Da_k.mjs → ngx-t-forms-geo-location.component-BPqEkYIg.mjs} +2 -2
  38. package/fesm2022/{ngx-t-forms-geo-location.component-BwB_Da_k.mjs.map → ngx-t-forms-geo-location.component-BPqEkYIg.mjs.map} +1 -1
  39. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-AAMNhV66.mjs → ngx-t-forms-image-capture-input-element.component-CZojZh_T.mjs} +6 -6
  40. package/fesm2022/{ngx-t-forms-image-capture-input-element.component-AAMNhV66.mjs.map → ngx-t-forms-image-capture-input-element.component-CZojZh_T.mjs.map} +1 -1
  41. package/fesm2022/{ngx-t-forms-index-CqDck7nn.mjs → ngx-t-forms-index-BI5sb1Lx.mjs} +2 -2
  42. package/fesm2022/ngx-t-forms-index-BI5sb1Lx.mjs.map +1 -0
  43. package/fesm2022/{ngx-t-forms-input-custom.component-af_d6VZy.mjs → ngx-t-forms-input-custom.component-C-gshpIM.mjs} +2 -2
  44. package/fesm2022/{ngx-t-forms-input-custom.component-af_d6VZy.mjs.map → ngx-t-forms-input-custom.component-C-gshpIM.mjs.map} +1 -1
  45. package/fesm2022/ngx-t-forms-input-editor.component-CfaTar-x.mjs +190 -0
  46. package/fesm2022/ngx-t-forms-input-editor.component-CfaTar-x.mjs.map +1 -0
  47. package/fesm2022/{ngx-t-forms-map-mat-options-keys-0gqubG8m.mjs → ngx-t-forms-map-mat-options-keys-B8ubWvEz.mjs} +4 -4
  48. package/fesm2022/{ngx-t-forms-map-mat-options-keys-0gqubG8m.mjs.map → ngx-t-forms-map-mat-options-keys-B8ubWvEz.mjs.map} +1 -1
  49. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-ChD7WE5I.mjs → ngx-t-forms-mat-chip-list-editor.component-CT3wnaz8.mjs} +4 -4
  50. package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-ChD7WE5I.mjs.map → ngx-t-forms-mat-chip-list-editor.component-CT3wnaz8.mjs.map} +1 -1
  51. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CTaarZIV.mjs → ngx-t-forms-missing-form-configs.component-CSQ_Qtef.mjs} +6 -6
  52. package/fesm2022/{ngx-t-forms-missing-form-configs.component-CTaarZIV.mjs.map → ngx-t-forms-missing-form-configs.component-CSQ_Qtef.mjs.map} +1 -1
  53. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-CY2LAblM.mjs → ngx-t-forms-mscoa-chart-toolbar.component-Ovz5PFIe.mjs} +4 -4
  54. package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-CY2LAblM.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-Ovz5PFIe.mjs.map} +1 -1
  55. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-CzmMXKYH.mjs → ngx-t-forms-mscoa-segment-config.component-ByR5fNu5.mjs} +2 -2
  56. package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-CzmMXKYH.mjs.map → ngx-t-forms-mscoa-segment-config.component-ByR5fNu5.mjs.map} +1 -1
  57. package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-BfpeOWJx.mjs → ngx-t-forms-multiple-input-input-element.component-DtXYH3Gb.mjs} +10 -10
  58. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-DtXYH3Gb.mjs.map +1 -0
  59. package/fesm2022/{ngx-t-forms-ngx-t-forms-CIX_hqx4.mjs → ngx-t-forms-ngx-t-forms-CW8jN83w.mjs} +1147 -66
  60. package/fesm2022/ngx-t-forms-ngx-t-forms-CW8jN83w.mjs.map +1 -0
  61. package/fesm2022/{ngx-t-forms-paginated-selection-table-aWTsrLmJ.mjs → ngx-t-forms-paginated-selection-table-CWepPKmn.mjs} +5 -5
  62. package/fesm2022/{ngx-t-forms-paginated-selection-table-aWTsrLmJ.mjs.map → ngx-t-forms-paginated-selection-table-CWepPKmn.mjs.map} +1 -1
  63. package/fesm2022/{ngx-t-forms-pipeline-generator.component-BbsZu4Ji.mjs → ngx-t-forms-pipeline-generator.component-1EuDUOtI.mjs} +9 -9
  64. package/fesm2022/ngx-t-forms-pipeline-generator.component-1EuDUOtI.mjs.map +1 -0
  65. package/fesm2022/{ngx-t-forms-record-list-manager.component-BPaAZoCl.mjs → ngx-t-forms-record-list-manager.component-C-qKvSVR.mjs} +4 -4
  66. package/fesm2022/{ngx-t-forms-record-list-manager.component-BPaAZoCl.mjs.map → ngx-t-forms-record-list-manager.component-C-qKvSVR.mjs.map} +1 -1
  67. package/fesm2022/{ngx-t-forms-required-inputs.component-Bc22SdBb.mjs → ngx-t-forms-required-inputs.component-D5M9c-1i.mjs} +4 -4
  68. package/fesm2022/{ngx-t-forms-required-inputs.component-Bc22SdBb.mjs.map → ngx-t-forms-required-inputs.component-D5M9c-1i.mjs.map} +1 -1
  69. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-D9QIp83c.mjs → ngx-t-forms-rest-api-call-setup.component-CCz3c0X_.mjs} +4 -4
  70. package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-D9QIp83c.mjs.map → ngx-t-forms-rest-api-call-setup.component-CCz3c0X_.mjs.map} +1 -1
  71. package/fesm2022/{ngx-t-forms-section-report.component-7ORNUfFx.mjs → ngx-t-forms-section-report.component-BypN3AWY.mjs} +4 -4
  72. package/fesm2022/{ngx-t-forms-section-report.component-7ORNUfFx.mjs.map → ngx-t-forms-section-report.component-BypN3AWY.mjs.map} +1 -1
  73. package/fesm2022/{ngx-t-forms-select-input-element.component-DjxK2Otk.mjs → ngx-t-forms-select-input-element.component-DNBZVxhD.mjs} +5 -5
  74. package/fesm2022/ngx-t-forms-select-input-element.component-DNBZVxhD.mjs.map +1 -0
  75. package/fesm2022/{ngx-t-forms-selection-options-editor.component-CtUL550G.mjs → ngx-t-forms-selection-options-editor.component-BSmmQQo3.mjs} +5 -5
  76. package/fesm2022/{ngx-t-forms-selection-options-editor.component-CtUL550G.mjs.map → ngx-t-forms-selection-options-editor.component-BSmmQQo3.mjs.map} +1 -1
  77. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-CtavFAUq.mjs → ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs} +7 -7
  78. package/fesm2022/{ngx-t-forms-t-workflow-picker.component-CtavFAUq.mjs.map → ngx-t-forms-t-workflow-picker.component-DqFMP1rZ.mjs.map} +1 -1
  79. package/fesm2022/{ngx-t-forms-textarea-input-element.component-CKTTtBRp.mjs → ngx-t-forms-textarea-input-element.component-BEcNjLGC.mjs} +2 -2
  80. package/fesm2022/{ngx-t-forms-textarea-input-element.component-CKTTtBRp.mjs.map → ngx-t-forms-textarea-input-element.component-BEcNjLGC.mjs.map} +1 -1
  81. package/fesm2022/{ngx-t-forms-toggle-input-element.component-DjIrmI5x.mjs → ngx-t-forms-toggle-input-element.component-Cn_VOOEu.mjs} +2 -2
  82. package/fesm2022/{ngx-t-forms-toggle-input-element.component-DjIrmI5x.mjs.map → ngx-t-forms-toggle-input-element.component-Cn_VOOEu.mjs.map} +1 -1
  83. package/fesm2022/{ngx-t-forms-validators-config.component-qw17DsC-.mjs → ngx-t-forms-validators-config.component-DdKLxOr9.mjs} +6 -6
  84. package/fesm2022/{ngx-t-forms-validators-config.component-qw17DsC-.mjs.map → ngx-t-forms-validators-config.component-DdKLxOr9.mjs.map} +1 -1
  85. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-B-lohk8w.mjs → ngx-t-forms-workflow-adjudication.component-DB4arTNG.mjs} +9 -9
  86. package/fesm2022/{ngx-t-forms-workflow-adjudication.component-B-lohk8w.mjs.map → ngx-t-forms-workflow-adjudication.component-DB4arTNG.mjs.map} +1 -1
  87. package/fesm2022/ngx-t-forms.mjs +1 -1
  88. package/package.json +8 -2
  89. package/styles/_editor-mixins.scss +55 -0
  90. package/types/ngx-t-forms.d.ts +663 -12
  91. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-BmD7KWAi.mjs +0 -368
  92. package/fesm2022/ngx-t-forms-document-list-label-config-editor.component-BmD7KWAi.mjs.map +0 -1
  93. package/fesm2022/ngx-t-forms-form-section-stepper.component-Bz3MpgZQ.mjs +0 -389
  94. package/fesm2022/ngx-t-forms-form-section-stepper.component-Bz3MpgZQ.mjs.map +0 -1
  95. package/fesm2022/ngx-t-forms-index-CqDck7nn.mjs.map +0 -1
  96. package/fesm2022/ngx-t-forms-input-editor.component-CQtlHivg.mjs +0 -193
  97. package/fesm2022/ngx-t-forms-input-editor.component-CQtlHivg.mjs.map +0 -1
  98. package/fesm2022/ngx-t-forms-multiple-input-input-element.component-BfpeOWJx.mjs.map +0 -1
  99. package/fesm2022/ngx-t-forms-ngx-t-forms-CIX_hqx4.mjs.map +0 -1
  100. package/fesm2022/ngx-t-forms-pipeline-generator.component-BbsZu4Ji.mjs.map +0 -1
  101. package/fesm2022/ngx-t-forms-select-input-element.component-DjxK2Otk.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-t-forms-rest-api-call-setup.component-D9QIp83c.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/postman-collections/functions/filterCollectionItems.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/postman-collections/functions/methodColors.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/postman-collections/postman-collections.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/postman-collections/postman-collections.component.html","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/rest-api-call-setup/rest-api-call-setup.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/rest-api-call-setup/rest-api-call-setup.component.html"],"sourcesContent":["import type { IFolderItem, IGetPostmanCollections } from 'ngx-t-forms-types';\n\n/** True when an item's own name or description contains the (already-lowercased) search text. */\nfunction itemMatches(item: IFolderItem, searchText: string): boolean {\n return (\n (item.name?.toLowerCase().includes(searchText) ?? false) ||\n (item.description?.toLowerCase().includes(searchText) ?? false)\n );\n}\n\n/**\n * Recursively prunes a folder tree to the items relevant to `searchText`.\n *\n * An item is kept when it matches directly (its whole subtree is then\n * preserved) OR when one of its descendants matches — in which case the\n * ancestor folder is preserved but its children are pruned to only the\n * matching branches. This fixes the legacy defect where ancestor folders of a\n * deep match were dropped (or whole sibling subtrees were retained).\n */\nfunction pruneItems(items: IFolderItem[] | undefined, searchText: string): IFolderItem[] {\n if (!items) {\n return [];\n }\n return items.reduce<IFolderItem[]>((kept, item) => {\n if (itemMatches(item, searchText)) {\n // Direct hit: keep the item and its full subtree intact.\n kept.push(item);\n return kept;\n }\n const matchingChildren = pruneItems(item.item, searchText);\n if (matchingChildren.length > 0) {\n // Ancestor of a match: keep the folder but only the matching branches.\n kept.push({ ...item, item: matchingChildren });\n }\n return kept;\n }, []);\n}\n\n/**\n * Filters a fetched Postman collection by a free-text search key, preserving\n * the ancestor folders of every match. An empty/whitespace key returns the\n * full set of top-level items unchanged.\n */\nexport function filterCollectionItems(\n collections: IGetPostmanCollections,\n searchKey: string,\n): IFolderItem[] {\n const items = collections.collection.item;\n const searchText = searchKey.trim().toLowerCase();\n if (!searchText) {\n return items;\n }\n return pruneItems(items, searchText);\n}\n","/**\n * Maps an HTTP method to its design-token CSS colour value.\n *\n * Returns a `var(--lib-forms-method-*)` reference (dark-mode safe, no hex /\n * named colours) so the tree can colour-code endpoints. Unknown methods fall\n * back to `currentColor`. Matching is case-insensitive.\n */\nexport function methodColor(method: string): string {\n switch (method.toUpperCase()) {\n case 'GET':\n return 'var(--lib-forms-method-get)';\n case 'POST':\n return 'var(--lib-forms-method-post)';\n case 'PUT':\n return 'var(--lib-forms-method-put)';\n case 'PATCH':\n return 'var(--lib-forms-method-patch)';\n case 'DELETE':\n return 'var(--lib-forms-method-delete)';\n default:\n return 'currentColor';\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ViewEncapsulation,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { HttpClient, HttpErrorResponse } from '@angular/common/http';\nimport { catchError, take, tap, throwError } from 'rxjs';\n\nimport { MatTreeModule } from '@angular/material/tree';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\nimport type {\n FlatNode,\n IFolderItem,\n IGetPostmanCollections,\n IPostmanCollectionConfig,\n TreeNode,\n} from 'ngx-t-forms-types';\n\nimport { TreeComponent } from '../api-value-access-rules/functions/convertDataToTree';\nimport { convertPostmanFolderItemsToTree } from './functions/convertPostmanCollectionToTree';\nimport { filterCollectionItems } from './functions/filterCollectionItems';\nimport { methodColor } from './functions/methodColors';\nimport { SearchFieldComponent } from '../_shared/search-field/search-field.component';\nimport { EmptyStateComponent } from '../_shared/empty-state/empty-state.component';\nimport { _isEqual } from '../../../../shared/functions/isEqual';\n\n/**\n * Internal Postman-collection picker used by `rest-api-call-setup`.\n *\n * Fetches a Postman collection over HTTP and renders it as a searchable tree of\n * endpoints, emitting the selected folder item to the parent. Embedded\n * component — owns only its tree content; the parent renders any field\n * label / hint / errors.\n */\n@Component({\n selector: 'lib-postman-collections',\n templateUrl: './postman-collections.component.html',\n styleUrls: ['./postman-collections.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n host: { 'class': 'lib-postman-collections' },\n imports: [\n MatTreeModule,\n MatIconModule,\n MatButtonModule,\n MatProgressSpinnerModule,\n MatTooltipModule,\n SearchFieldComponent,\n EmptyStateComponent,\n ],\n})\nexport class PostmanCollectionsComponent {\n /** Postman API config (collection URL + key). When invalid the component shows an error. */\n readonly postmanCollectionConfig = input<IPostmanCollectionConfig | undefined>(undefined);\n\n /** Endpoint IDs currently in a loading state (rendered with a spinner in the tree). */\n readonly loadingEndPoints = input<string[]>([]);\n\n /** Emits when the user picks an endpoint node from the tree. */\n readonly nodeSelectionChanged = output<IFolderItem>();\n\n readonly #httpClient = inject(HttpClient);\n readonly #destroyRef = inject(DestroyRef);\n\n /** Imperative mat-tree backing store reused from the access-rules tree. */\n protected readonly treeComponent = new TreeComponent();\n\n /** Raw fetched collection; `undefined` until the request resolves. */\n readonly #collection = signal<IGetPostmanCollections | undefined>(undefined);\n\n /** Current search text, two-way bound to the search field. */\n protected readonly searchKey = signal<string>('');\n\n /** Request-in-flight flag. */\n protected readonly loading = signal<boolean>(false);\n\n /** Last error (invalid config or HTTP failure); `undefined` when healthy. */\n protected readonly error = signal<HttpErrorResponse | undefined>(undefined);\n\n /** Folder items after applying the current search, ancestor-folders preserved. */\n protected readonly filteredItems = computed<IFolderItem[]>(() => {\n const collection = this.#collection();\n if (!collection) {\n return [];\n }\n return filterCollectionItems(collection, this.searchKey());\n });\n\n /** Tree nodes derived from {@link filteredItems}. */\n readonly #treeData = computed<TreeNode[]>(() =>\n convertPostmanFolderItemsToTree(this.filteredItems()),\n );\n\n /** True once a collection is loaded but the current search yields nothing. */\n protected readonly isEmpty = computed<boolean>(\n () => Boolean(this.#collection()) && this.#treeData().length === 0,\n );\n\n /** Cache for {@link getNodeLines} so identical levels reuse one array. */\n readonly #nodeLinesCache = new Map<number, readonly number[]>();\n\n /** Push derived tree data into the imperative mat-tree data source. */\n protected readonly syncTree = effect(() => {\n this.treeComponent.assignDataSourceData(this.#treeData());\n });\n\n /** Last config the effect acted on; guards against re-fetching when an unstable parent binding hands us a new-but-equal reference. */\n #loadedConfig: IPostmanCollectionConfig | undefined;\n #hasLoadedOnce = false;\n\n /** Fetch (or re-fetch) the collection only when the config input's content actually changes. */\n protected readonly loadOnConfigChange = effect(() => {\n const config = this.postmanCollectionConfig();\n if (this.#hasLoadedOnce && _isEqual(this.#loadedConfig, config)) {\n return;\n }\n this.#hasLoadedOnce = true;\n this.#loadedConfig = config;\n this.#loadCollection(config);\n });\n\n #isValidConfig(config: IPostmanCollectionConfig | undefined): config is IPostmanCollectionConfig {\n return Boolean(config?.collectionUrl) && Boolean(config?.collectionKey);\n }\n\n #loadCollection(config: IPostmanCollectionConfig | undefined): void {\n if (!this.#isValidConfig(config)) {\n this.#collection.set(undefined);\n this.loading.set(false);\n this.error.set(new HttpErrorResponse({ error: 'Invalid Postman Collection Config' }));\n return;\n }\n\n const requestOptions = {\n params: { apikey: config.collectionKey, clearSystemHeaders: true },\n headers: { 'Content-Type': 'application/json' },\n };\n\n this.loading.set(true);\n this.#httpClient\n .get<IGetPostmanCollections>(config.collectionUrl, requestOptions)\n .pipe(\n take(1),\n tap(data => {\n this.#collection.set(data);\n this.error.set(undefined);\n this.loading.set(false);\n }),\n catchError((err: HttpErrorResponse) => {\n this.loading.set(false);\n this.error.set(err);\n return throwError(() => err);\n }),\n takeUntilDestroyed(this.#destroyRef),\n )\n .subscribe();\n }\n\n protected selectNode(node: IFolderItem): void {\n this.nodeSelectionChanged.emit(node);\n }\n\n protected methodColor(method: string): string {\n return methodColor(method);\n }\n\n protected isEndpointLoading(id: string): boolean {\n return this.loadingEndPoints().includes(id);\n }\n\n protected hasChild = (_: number, node: FlatNode): boolean =>\n this.treeComponent.hasChild(_, node);\n\n /** Memoised 1..level vertical guide-line indices for tree indentation. */\n protected getNodeLines(level: number): readonly number[] {\n const cached = this.#nodeLinesCache.get(level);\n if (cached) {\n return cached;\n }\n const lines = Array.from({ length: level }, (_, i) => i + 1);\n this.#nodeLinesCache.set(level, lines);\n return lines;\n }\n}\n","@if (loading()) {\n <div class=\"loading-container\">\n <mat-spinner diameter=\"36\"></mat-spinner>\n </div>\n} @else {\n <lib-search-field\n class=\"search\"\n placeholder=\"Search api\"\n [(value)]=\"searchKey\" />\n\n @if (error(); as err) {\n <lib-empty-state icon=\"error_outline\" [message]=\"err.message\" />\n } @else if (isEmpty()) {\n <lib-empty-state\n icon=\"search_off\"\n [message]=\"searchKey() ? 'No endpoints match your search' : 'No endpoints in this collection'\" />\n } @else {\n <mat-tree\n [dataSource]=\"treeComponent.dataSource\"\n [treeControl]=\"treeComponent.treeControl\">\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodePadding>\n @if (isEndpointLoading(node.value.id)) {\n <mat-spinner diameter=\"22\" class=\"loading-spinner\"></mat-spinner>\n }\n @for (line of getNodeLines(node.level); track line) {\n <div class=\"line\" [style.left.px]=\"line * 40 + 8\"></div>\n }\n @if (node.value?.request; as request) {\n <button\n mat-button\n class=\"item\"\n [disabled]=\"(!request.body?.raw && request.method === 'POST') || !request.url?.raw\"\n [matTooltip]=\"request.url?.raw || 'Invalid Postman config, missing Endpoint URL'\"\n (click)=\"selectNode(node.value)\">\n <span class=\"node-key method\" [style.color]=\"methodColor(request.method)\">\n {{ request.method }}\n </span>\n <span>{{ node.key }}</span>\n </button>\n }\n </mat-tree-node>\n\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding>\n <button\n mat-icon-button\n matTreeNodeToggle\n class=\"toggle\"\n [attr.aria-label]=\"'Toggle ' + node.key\">\n <mat-icon>\n {{ treeComponent.treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right' }}\n </mat-icon>\n </button>\n <mat-icon class=\"folder-icon\">\n {{ treeComponent.treeControl.isExpanded(node) ? 'folder_open' : 'folder' }}\n </mat-icon>\n <span class=\"folder-label\">{{ node.key }}</span>\n </mat-tree-node>\n </mat-tree>\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n effect,\n input,\n output,\n signal,\n} from '@angular/core';\nimport type { Observable } from 'rxjs';\n\nimport {\n APIDataFetchingConfigurationInterface,\n DataSources,\n IFolderItem,\n IPostmanCollectionConfig,\n JsDataTypes,\n MinimumInputRequiredInterface,\n} from 'ngx-t-forms-types';\n\nimport type { IConfigElementError } from '../../t-dynamic-data-edit.component';\nimport { _isEqual } from '../../../../shared/functions/isEqual';\nimport { EmptyStateComponent } from '../_shared/empty-state/empty-state.component';\nimport { ErrorListComponent } from '../_shared/error-list/error-list.component';\nimport { PostmanCollectionsComponent } from '../postman-collections/postman-collections.component';\n\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\nlet nextId = 0;\n\n/** Discrete UI mode this editor is in, derived from its inputs and value. */\ntype SetupMode = 'no-collection' | 'picker' | 'selected';\n\n/** HTTP method understood by the method-colour map; falls back to neutral. */\ntype HttpMethod = APIDataFetchingConfigurationInterface['httpMethod'];\n\n/** CSS-variable colour per HTTP method (dark-mode-safe; never a hex literal). */\nconst METHOD_COLOR: Readonly<Record<HttpMethod, string>> = {\n GET: 'var(--lib-forms-method-get)',\n POST: 'var(--lib-forms-method-post)',\n PUT: 'var(--lib-forms-method-put)',\n DELETE: 'var(--lib-forms-method-delete)',\n};\n\n/** Maps a JS `typeof` string to the shared {@link JsDataTypes} enum member. */\nfunction toJsDataType(value: unknown): JsDataTypes {\n switch (typeof value) {\n case 'string':\n return JsDataTypes.String;\n case 'number':\n return JsDataTypes.Number;\n case 'bigint':\n return JsDataTypes.BigInt;\n case 'boolean':\n return JsDataTypes.Boolean;\n case 'symbol':\n return JsDataTypes.Symbol;\n case 'function':\n return JsDataTypes.Function;\n case 'object':\n return JsDataTypes.Object;\n default:\n return JsDataTypes.Undefined;\n }\n}\n\n/**\n * Lets the user pick an API endpoint from a Postman collection and exposes the\n * resulting {@link APIDataFetchingConfigurationInterface}. Renders one of three\n * states — no collection configured, the endpoint picker, or the selected\n * endpoint card — and embeds {@link PostmanCollectionsComponent} for the tree.\n *\n * Internal editor consumed by `t-dynamic-data-edit` and `data-source-picker`;\n * the parent owns the field label, hint and validation chrome.\n *\n * @example\n * <lib-rest-api-call-setup\n * [postmanCollectionConfig]=\"config()\"\n * [value]=\"value()\"\n * [disabled]=\"disabled()\"\n * (valueChanged)=\"onApiConfig($event)\" />\n */\n@Component({\n selector: 'lib-rest-api-call-setup',\n templateUrl: './rest-api-call-setup.component.html',\n styleUrl: './rest-api-call-setup.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n imports: [\n PostmanCollectionsComponent,\n EmptyStateComponent,\n ErrorListComponent,\n MatButtonModule,\n MatIconModule,\n MatTooltipModule,\n ],\n host: {\n 'class': 'lib-rest-api-call-setup',\n '[id]': 'hostId()',\n '[attr.data-mode]': 'mode()',\n },\n})\nexport class RestApiCallSetupComponent {\n readonly #fallbackId = `lib-rest-api-call-setup-${nextId++}`;\n\n /** Optional consumer-provided host id. */\n readonly id = input<string | undefined>(undefined);\n\n /** Postman collection that backs the picker. */\n readonly postmanCollectionConfig = input<IPostmanCollectionConfig | undefined>(undefined);\n\n /**\n * Optional HTTP GET function for fetching sample responses. Retained on the\n * contract for parity; this editor does not invoke it (selection is resolved\n * from the Postman collection the parent already loads).\n */\n readonly httpGetDataFunction = input<\n ((url: string, options: Record<string, unknown>) => Observable<unknown>) | undefined\n >(undefined);\n\n /** Disables the picker and shows a lock affordance. */\n readonly disabled = input<boolean>(false);\n\n /** Current configuration value. */\n readonly value = input<APIDataFetchingConfigurationInterface | undefined>(undefined);\n\n /** Validation errors surfaced from the parent editor. */\n readonly errors = input<IConfigElementError[] | undefined>([]);\n\n /** Emits whenever the user selects a new endpoint or clears the value. */\n readonly valueChanged = output<APIDataFetchingConfigurationInterface | undefined>();\n\n /** Endpoint IDs currently loading sample data (forwarded to the picker). */\n protected readonly loadingEndPoints = signal<string[]>([]);\n\n /** Local snapshot of the value, bridged from the `value` input. */\n readonly #localValue = signal<APIDataFetchingConfigurationInterface | undefined>(undefined);\n\n /** Read-only view of the active configuration for the template. */\n protected readonly currentValue = this.#localValue.asReadonly();\n\n /** Host id: consumer-provided or a stable per-instance fallback. */\n protected readonly hostId = computed<string>(() => this.id() ?? this.#fallbackId);\n\n /** True once the snapshot carries a usable endpoint + method. */\n protected readonly hasValidValue = computed<boolean>(() => {\n const v = this.#localValue();\n return Boolean(v?.httpEndPoint) && Boolean(v?.httpMethod);\n });\n\n /** Discrete UI mode driving the template's `@switch`. */\n protected readonly mode = computed<SetupMode>(() => {\n if (!this.postmanCollectionConfig()) return 'no-collection';\n return this.hasValidValue() ? 'selected' : 'picker';\n });\n\n /** Token-based colour for the selected endpoint's HTTP method badge. */\n protected readonly methodColor = computed<string>(() => {\n const method = this.#localValue()?.httpMethod;\n return method && method in METHOD_COLOR ? METHOD_COLOR[method] : 'currentColor';\n });\n\n /**\n * Bridge the `value` input into the local mutable snapshot, de-duping with a\n * deep structural compare (replaces the legacy `JSON.stringify` equality so\n * key order and `undefined` no longer cause spurious resets).\n */\n protected readonly valueBridge = effect(() => {\n const next = this.value();\n if (!_isEqual(next, this.#localValue())) {\n this.#localValue.set(next);\n }\n });\n\n /** Maps the selected tree node into the API config and emits it. */\n protected nodeSelectionChanged(node: IFolderItem): void {\n const { id, name, request, response } = node;\n if (!request || !response) return;\n\n let requestBody: Record<string, unknown>;\n try {\n requestBody = JSON.parse(request.body?.raw || '{}') as Record<string, unknown>;\n } catch {\n requestBody = {};\n }\n\n const isPost = request.method === 'POST';\n const minimumInputRequired: MinimumInputRequiredInterface[] = isPost\n ? this.#extractRequiredInputs(requestBody)\n : [];\n\n const config: APIDataFetchingConfigurationInterface = {\n _id: id,\n name,\n httpEndPoint: request.url.raw,\n httpMethod: request.method,\n source: DataSources.Api,\n postFormData: isPost,\n backEndConfig: { minimumInputRequired },\n };\n\n this.#localValue.set(config);\n this.valueChanged.emit(config);\n }\n\n /**\n * Clears the selection and emits a single `undefined` (the legacy double-emit\n * — `undefined` then a stub `{ source }` — was removed; see FLAG).\n */\n protected clearValue(): void {\n this.#localValue.set(undefined);\n this.valueChanged.emit(undefined);\n }\n\n /**\n * Derives the POST endpoint's required inputs from the request body. Top-level\n * keys are primary; entries under `data` are secondary (non-primary).\n */\n #extractRequiredInputs(requestBody: Record<string, unknown>): MinimumInputRequiredInterface[] {\n const { data, ...rest } = requestBody;\n const dataEntries: Record<string, unknown> =\n data && typeof data === 'object' ? { ...data } : {};\n\n const primaryKeys = Object.entries(rest).map(([key, val]) =>\n this.#toRequiredInput(key, val, true),\n );\n const secondaryKeys = Object.entries(dataEntries).map(([key, val]) =>\n this.#toRequiredInput(key, val, false),\n );\n\n return [...primaryKeys, ...secondaryKeys];\n }\n\n #toRequiredInput(\n name: string,\n value: unknown,\n primaryKey: boolean,\n ): MinimumInputRequiredInterface {\n return { name, type: toJsDataType(value), primaryKey };\n }\n}\n","@switch (mode()) {\n @case ('no-collection') {\n <lib-empty-state\n icon=\"link_off\"\n message=\"No Postman collection configured. Add a collection id and API key to pick an endpoint.\" />\n }\n\n @case ('selected') {\n <div class=\"lib-rest-api-call-setup__card\">\n <button\n type=\"button\"\n class=\"lib-rest-api-call-setup__endpoint\"\n mat-button\n [disabled]=\"disabled()\"\n [matTooltip]=\"currentValue()?.httpEndPoint ?? ''\"\n (click)=\"clearValue()\">\n <span class=\"lib-rest-api-call-setup__method\" [style.color]=\"methodColor()\">\n {{ currentValue()?.httpMethod }}\n </span>\n <span class=\"lib-rest-api-call-setup__name\">\n {{ currentValue()?.name }}\n </span>\n <mat-icon class=\"lib-rest-api-call-setup__clear\" aria-hidden=\"true\">close</mat-icon>\n </button>\n </div>\n }\n\n @case ('picker') {\n <lib-postman-collections\n class=\"lib-rest-api-call-setup__picker\"\n [class.lib-rest-api-call-setup__picker--disabled]=\"disabled()\"\n [postmanCollectionConfig]=\"postmanCollectionConfig()!\"\n [loadingEndPoints]=\"loadingEndPoints()\"\n (nodeSelectionChanged)=\"nodeSelectionChanged($event)\" />\n }\n}\n\n@if (disabled()) {\n <p class=\"lib-rest-api-call-setup__lock\">\n <mat-icon aria-hidden=\"true\">lock</mat-icon>\n <span>This endpoint is locked and cannot be changed.</span>\n </p>\n}\n\n<lib-error-list [errors]=\"errors()\" />\n"],"names":["i2","i3","i4","i1"],"mappings":";;;;;;;;;;;;;;;;;;;AAEA;AACA,SAAS,WAAW,CAAC,IAAiB,EAAE,UAAkB,EAAA;AACxD,IAAA,QACE,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,K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B,EAAE,QAAQ;AAC7B,qBAAA,EAAA,QAAA,EAAA,0/CAAA,EAAA,MAAA,EAAA,CAAA,imCAAA,CAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"ngx-t-forms-rest-api-call-setup.component-CCz3c0X_.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/postman-collections/functions/filterCollectionItems.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/postman-collections/functions/methodColors.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/postman-collections/postman-collections.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/postman-collections/postman-collections.component.html","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/rest-api-call-setup/rest-api-call-setup.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-dynamic-data-edit/elements/rest-api-call-setup/rest-api-call-setup.component.html"],"sourcesContent":["import type { IFolderItem, IGetPostmanCollections } from 'ngx-t-forms-types';\n\n/** True when an item's own name or description contains the (already-lowercased) search text. */\nfunction itemMatches(item: IFolderItem, searchText: string): boolean {\n return (\n (item.name?.toLowerCase().includes(searchText) ?? false) ||\n (item.description?.toLowerCase().includes(searchText) ?? false)\n );\n}\n\n/**\n * Recursively prunes a folder tree to the items relevant to `searchText`.\n *\n * An item is kept when it matches directly (its whole subtree is then\n * preserved) OR when one of its descendants matches — in which case the\n * ancestor folder is preserved but its children are pruned to only the\n * matching branches. This fixes the legacy defect where ancestor folders of a\n * deep match were dropped (or whole sibling subtrees were retained).\n */\nfunction pruneItems(items: IFolderItem[] | undefined, searchText: string): IFolderItem[] {\n if (!items) {\n return [];\n }\n return items.reduce<IFolderItem[]>((kept, item) => {\n if (itemMatches(item, searchText)) {\n // Direct hit: keep the item and its full subtree intact.\n kept.push(item);\n return kept;\n }\n const matchingChildren = pruneItems(item.item, searchText);\n if (matchingChildren.length > 0) {\n // Ancestor of a match: keep the folder but only the matching branches.\n kept.push({ ...item, item: matchingChildren });\n }\n return kept;\n }, []);\n}\n\n/**\n * Filters a fetched Postman collection by a free-text search key, preserving\n * the ancestor folders of every match. An empty/whitespace key returns the\n * full set of top-level items unchanged.\n */\nexport function filterCollectionItems(\n collections: IGetPostmanCollections,\n searchKey: string,\n): IFolderItem[] {\n const items = collections.collection.item;\n const searchText = searchKey.trim().toLowerCase();\n if (!searchText) {\n return items;\n }\n return pruneItems(items, searchText);\n}\n","/**\n * Maps an HTTP method to its design-token CSS colour value.\n *\n * Returns a `var(--lib-forms-method-*)` reference (dark-mode safe, no hex /\n * named colours) so the tree can colour-code endpoints. Unknown methods fall\n * back to `currentColor`. Matching is case-insensitive.\n */\nexport function methodColor(method: string): string {\n switch (method.toUpperCase()) {\n case 'GET':\n return 'var(--lib-forms-method-get)';\n case 'POST':\n return 'var(--lib-forms-method-post)';\n case 'PUT':\n return 'var(--lib-forms-method-put)';\n case 'PATCH':\n return 'var(--lib-forms-method-patch)';\n case 'DELETE':\n return 'var(--lib-forms-method-delete)';\n default:\n return 'currentColor';\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ViewEncapsulation,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { HttpClient, HttpErrorResponse } from '@angular/common/http';\nimport { catchError, take, tap, throwError } from 'rxjs';\n\nimport { MatTreeModule } from '@angular/material/tree';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\nimport type {\n FlatNode,\n IFolderItem,\n IGetPostmanCollections,\n IPostmanCollectionConfig,\n TreeNode,\n} from 'ngx-t-forms-types';\n\nimport { TreeComponent } from '../api-value-access-rules/functions/convertDataToTree';\nimport { convertPostmanFolderItemsToTree } from './functions/convertPostmanCollectionToTree';\nimport { filterCollectionItems } from './functions/filterCollectionItems';\nimport { methodColor } from './functions/methodColors';\nimport { SearchFieldComponent } from '../_shared/search-field/search-field.component';\nimport { EmptyStateComponent } from '../_shared/empty-state/empty-state.component';\nimport { _isEqual } from '../../../../shared/functions/isEqual';\n\n/**\n * Internal Postman-collection picker used by `rest-api-call-setup`.\n *\n * Fetches a Postman collection over HTTP and renders it as a searchable tree of\n * endpoints, emitting the selected folder item to the parent. Embedded\n * component — owns only its tree content; the parent renders any field\n * label / hint / errors.\n */\n@Component({\n selector: 'lib-postman-collections',\n templateUrl: './postman-collections.component.html',\n styleUrls: ['./postman-collections.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n host: { 'class': 'lib-postman-collections' },\n imports: [\n MatTreeModule,\n MatIconModule,\n MatButtonModule,\n MatProgressSpinnerModule,\n MatTooltipModule,\n SearchFieldComponent,\n EmptyStateComponent,\n ],\n})\nexport class PostmanCollectionsComponent {\n /** Postman API config (collection URL + key). When invalid the component shows an error. */\n readonly postmanCollectionConfig = input<IPostmanCollectionConfig | undefined>(undefined);\n\n /** Endpoint IDs currently in a loading state (rendered with a spinner in the tree). */\n readonly loadingEndPoints = input<string[]>([]);\n\n /** Emits when the user picks an endpoint node from the tree. */\n readonly nodeSelectionChanged = output<IFolderItem>();\n\n readonly #httpClient = inject(HttpClient);\n readonly #destroyRef = inject(DestroyRef);\n\n /** Imperative mat-tree backing store reused from the access-rules tree. */\n protected readonly treeComponent = new TreeComponent();\n\n /** Raw fetched collection; `undefined` until the request resolves. */\n readonly #collection = signal<IGetPostmanCollections | undefined>(undefined);\n\n /** Current search text, two-way bound to the search field. */\n protected readonly searchKey = signal<string>('');\n\n /** Request-in-flight flag. */\n protected readonly loading = signal<boolean>(false);\n\n /** Last error (invalid config or HTTP failure); `undefined` when healthy. */\n protected readonly error = signal<HttpErrorResponse | undefined>(undefined);\n\n /** Folder items after applying the current search, ancestor-folders preserved. */\n protected readonly filteredItems = computed<IFolderItem[]>(() => {\n const collection = this.#collection();\n if (!collection) {\n return [];\n }\n return filterCollectionItems(collection, this.searchKey());\n });\n\n /** Tree nodes derived from {@link filteredItems}. */\n readonly #treeData = computed<TreeNode[]>(() =>\n convertPostmanFolderItemsToTree(this.filteredItems()),\n );\n\n /** True once a collection is loaded but the current search yields nothing. */\n protected readonly isEmpty = computed<boolean>(\n () => Boolean(this.#collection()) && this.#treeData().length === 0,\n );\n\n /** Cache for {@link getNodeLines} so identical levels reuse one array. */\n readonly #nodeLinesCache = new Map<number, readonly number[]>();\n\n /** Push derived tree data into the imperative mat-tree data source. */\n protected readonly syncTree = effect(() => {\n this.treeComponent.assignDataSourceData(this.#treeData());\n });\n\n /** Last config the effect acted on; guards against re-fetching when an unstable parent binding hands us a new-but-equal reference. */\n #loadedConfig: IPostmanCollectionConfig | undefined;\n #hasLoadedOnce = false;\n\n /** Fetch (or re-fetch) the collection only when the config input's content actually changes. */\n protected readonly loadOnConfigChange = effect(() => {\n const config = this.postmanCollectionConfig();\n if (this.#hasLoadedOnce && _isEqual(this.#loadedConfig, config)) {\n return;\n }\n this.#hasLoadedOnce = true;\n this.#loadedConfig = config;\n this.#loadCollection(config);\n });\n\n #isValidConfig(config: IPostmanCollectionConfig | undefined): config is IPostmanCollectionConfig {\n return Boolean(config?.collectionUrl) && Boolean(config?.collectionKey);\n }\n\n #loadCollection(config: IPostmanCollectionConfig | undefined): void {\n if (!this.#isValidConfig(config)) {\n this.#collection.set(undefined);\n this.loading.set(false);\n this.error.set(new HttpErrorResponse({ error: 'Invalid Postman Collection Config' }));\n return;\n }\n\n const requestOptions = {\n params: { apikey: config.collectionKey, clearSystemHeaders: true },\n headers: { 'Content-Type': 'application/json' },\n };\n\n this.loading.set(true);\n this.#httpClient\n .get<IGetPostmanCollections>(config.collectionUrl, requestOptions)\n .pipe(\n take(1),\n tap(data => {\n this.#collection.set(data);\n this.error.set(undefined);\n this.loading.set(false);\n }),\n catchError((err: HttpErrorResponse) => {\n this.loading.set(false);\n this.error.set(err);\n return throwError(() => err);\n }),\n takeUntilDestroyed(this.#destroyRef),\n )\n .subscribe();\n }\n\n protected selectNode(node: IFolderItem): void {\n this.nodeSelectionChanged.emit(node);\n }\n\n protected methodColor(method: string): string {\n return methodColor(method);\n }\n\n protected isEndpointLoading(id: string): boolean {\n return this.loadingEndPoints().includes(id);\n }\n\n protected hasChild = (_: number, node: FlatNode): boolean =>\n this.treeComponent.hasChild(_, node);\n\n /** Memoised 1..level vertical guide-line indices for tree indentation. */\n protected getNodeLines(level: number): readonly number[] {\n const cached = this.#nodeLinesCache.get(level);\n if (cached) {\n return cached;\n }\n const lines = Array.from({ length: level }, (_, i) => i + 1);\n this.#nodeLinesCache.set(level, lines);\n return lines;\n }\n}\n","@if (loading()) {\n <div class=\"loading-container\">\n <mat-spinner diameter=\"36\"></mat-spinner>\n </div>\n} @else {\n <lib-search-field\n class=\"search\"\n placeholder=\"Search api\"\n [(value)]=\"searchKey\" />\n\n @if (error(); as err) {\n <lib-empty-state icon=\"error_outline\" [message]=\"err.message\" />\n } @else if (isEmpty()) {\n <lib-empty-state\n icon=\"search_off\"\n [message]=\"searchKey() ? 'No endpoints match your search' : 'No endpoints in this collection'\" />\n } @else {\n <mat-tree\n [dataSource]=\"treeComponent.dataSource\"\n [treeControl]=\"treeComponent.treeControl\">\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodePadding>\n @if (isEndpointLoading(node.value.id)) {\n <mat-spinner diameter=\"22\" class=\"loading-spinner\"></mat-spinner>\n }\n @for (line of getNodeLines(node.level); track line) {\n <div class=\"line\" [style.left.px]=\"line * 40 + 8\"></div>\n }\n @if (node.value?.request; as request) {\n <button\n mat-button\n class=\"item\"\n [disabled]=\"(!request.body?.raw && request.method === 'POST') || !request.url?.raw\"\n [matTooltip]=\"request.url?.raw || 'Invalid Postman config, missing Endpoint URL'\"\n (click)=\"selectNode(node.value)\">\n <span class=\"node-key method\" [style.color]=\"methodColor(request.method)\">\n {{ request.method }}\n </span>\n <span>{{ node.key }}</span>\n </button>\n }\n </mat-tree-node>\n\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding>\n <button\n mat-icon-button\n matTreeNodeToggle\n class=\"toggle\"\n [attr.aria-label]=\"'Toggle ' + node.key\">\n <mat-icon>\n {{ treeComponent.treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right' }}\n </mat-icon>\n </button>\n <mat-icon class=\"folder-icon\">\n {{ treeComponent.treeControl.isExpanded(node) ? 'folder_open' : 'folder' }}\n </mat-icon>\n <span class=\"folder-label\">{{ node.key }}</span>\n </mat-tree-node>\n </mat-tree>\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n effect,\n input,\n output,\n signal,\n} from '@angular/core';\nimport type { Observable } from 'rxjs';\n\nimport {\n APIDataFetchingConfigurationInterface,\n DataSources,\n IFolderItem,\n IPostmanCollectionConfig,\n JsDataTypes,\n MinimumInputRequiredInterface,\n} from 'ngx-t-forms-types';\n\nimport type { IConfigElementError } from '../../t-dynamic-data-edit.component';\nimport { _isEqual } from '../../../../shared/functions/isEqual';\nimport { EmptyStateComponent } from '../_shared/empty-state/empty-state.component';\nimport { ErrorListComponent } from '../_shared/error-list/error-list.component';\nimport { PostmanCollectionsComponent } from '../postman-collections/postman-collections.component';\n\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\nlet nextId = 0;\n\n/** Discrete UI mode this editor is in, derived from its inputs and value. */\ntype SetupMode = 'no-collection' | 'picker' | 'selected';\n\n/** HTTP method understood by the method-colour map; falls back to neutral. */\ntype HttpMethod = APIDataFetchingConfigurationInterface['httpMethod'];\n\n/** CSS-variable colour per HTTP method (dark-mode-safe; never a hex literal). */\nconst METHOD_COLOR: Readonly<Record<HttpMethod, string>> = {\n GET: 'var(--lib-forms-method-get)',\n POST: 'var(--lib-forms-method-post)',\n PUT: 'var(--lib-forms-method-put)',\n DELETE: 'var(--lib-forms-method-delete)',\n};\n\n/** Maps a JS `typeof` string to the shared {@link JsDataTypes} enum member. */\nfunction toJsDataType(value: unknown): JsDataTypes {\n switch (typeof value) {\n case 'string':\n return JsDataTypes.String;\n case 'number':\n return JsDataTypes.Number;\n case 'bigint':\n return JsDataTypes.BigInt;\n case 'boolean':\n return JsDataTypes.Boolean;\n case 'symbol':\n return JsDataTypes.Symbol;\n case 'function':\n return JsDataTypes.Function;\n case 'object':\n return JsDataTypes.Object;\n default:\n return JsDataTypes.Undefined;\n }\n}\n\n/**\n * Lets the user pick an API endpoint from a Postman collection and exposes the\n * resulting {@link APIDataFetchingConfigurationInterface}. Renders one of three\n * states — no collection configured, the endpoint picker, or the selected\n * endpoint card — and embeds {@link PostmanCollectionsComponent} for the tree.\n *\n * Internal editor consumed by `t-dynamic-data-edit` and `data-source-picker`;\n * the parent owns the field label, hint and validation chrome.\n *\n * @example\n * <lib-rest-api-call-setup\n * [postmanCollectionConfig]=\"config()\"\n * [value]=\"value()\"\n * [disabled]=\"disabled()\"\n * (valueChanged)=\"onApiConfig($event)\" />\n */\n@Component({\n selector: 'lib-rest-api-call-setup',\n templateUrl: './rest-api-call-setup.component.html',\n styleUrl: './rest-api-call-setup.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.Emulated,\n imports: [\n PostmanCollectionsComponent,\n EmptyStateComponent,\n ErrorListComponent,\n MatButtonModule,\n MatIconModule,\n MatTooltipModule,\n ],\n host: {\n 'class': 'lib-rest-api-call-setup',\n '[id]': 'hostId()',\n '[attr.data-mode]': 'mode()',\n },\n})\nexport class RestApiCallSetupComponent {\n readonly #fallbackId = `lib-rest-api-call-setup-${nextId++}`;\n\n /** Optional consumer-provided host id. */\n readonly id = input<string | undefined>(undefined);\n\n /** Postman collection that backs the picker. */\n readonly postmanCollectionConfig = input<IPostmanCollectionConfig | undefined>(undefined);\n\n /**\n * Optional HTTP GET function for fetching sample responses. Retained on the\n * contract for parity; this editor does not invoke it (selection is resolved\n * from the Postman collection the parent already loads).\n */\n readonly httpGetDataFunction = input<\n ((url: string, options: Record<string, unknown>) => Observable<unknown>) | undefined\n >(undefined);\n\n /** Disables the picker and shows a lock affordance. */\n readonly disabled = input<boolean>(false);\n\n /** Current configuration value. */\n readonly value = input<APIDataFetchingConfigurationInterface | undefined>(undefined);\n\n /** Validation errors surfaced from the parent editor. */\n readonly errors = input<IConfigElementError[] | undefined>([]);\n\n /** Emits whenever the user selects a new endpoint or clears the value. */\n readonly valueChanged = output<APIDataFetchingConfigurationInterface | undefined>();\n\n /** Endpoint IDs currently loading sample data (forwarded to the picker). */\n protected readonly loadingEndPoints = signal<string[]>([]);\n\n /** Local snapshot of the value, bridged from the `value` input. */\n readonly #localValue = signal<APIDataFetchingConfigurationInterface | undefined>(undefined);\n\n /** Read-only view of the active configuration for the template. */\n protected readonly currentValue = this.#localValue.asReadonly();\n\n /** Host id: consumer-provided or a stable per-instance fallback. */\n protected readonly hostId = computed<string>(() => this.id() ?? this.#fallbackId);\n\n /** True once the snapshot carries a usable endpoint + method. */\n protected readonly hasValidValue = computed<boolean>(() => {\n const v = this.#localValue();\n return Boolean(v?.httpEndPoint) && Boolean(v?.httpMethod);\n });\n\n /** Discrete UI mode driving the template's `@switch`. */\n protected readonly mode = computed<SetupMode>(() => {\n if (!this.postmanCollectionConfig()) return 'no-collection';\n return this.hasValidValue() ? 'selected' : 'picker';\n });\n\n /** Token-based colour for the selected endpoint's HTTP method badge. */\n protected readonly methodColor = computed<string>(() => {\n const method = this.#localValue()?.httpMethod;\n return method && method in METHOD_COLOR ? METHOD_COLOR[method] : 'currentColor';\n });\n\n /**\n * Bridge the `value` input into the local mutable snapshot, de-duping with a\n * deep structural compare (replaces the legacy `JSON.stringify` equality so\n * key order and `undefined` no longer cause spurious resets).\n */\n protected readonly valueBridge = effect(() => {\n const next = this.value();\n if (!_isEqual(next, this.#localValue())) {\n this.#localValue.set(next);\n }\n });\n\n /** Maps the selected tree node into the API config and emits it. */\n protected nodeSelectionChanged(node: IFolderItem): void {\n const { id, name, request, response } = node;\n if (!request || !response) return;\n\n let requestBody: Record<string, unknown>;\n try {\n requestBody = JSON.parse(request.body?.raw || '{}') as Record<string, unknown>;\n } catch {\n requestBody = {};\n }\n\n const isPost = request.method === 'POST';\n const minimumInputRequired: MinimumInputRequiredInterface[] = isPost\n ? this.#extractRequiredInputs(requestBody)\n : [];\n\n const config: APIDataFetchingConfigurationInterface = {\n _id: id,\n name,\n httpEndPoint: request.url.raw,\n httpMethod: request.method,\n source: DataSources.Api,\n postFormData: isPost,\n backEndConfig: { minimumInputRequired },\n };\n\n this.#localValue.set(config);\n this.valueChanged.emit(config);\n }\n\n /**\n * Clears the selection and emits a single `undefined` (the legacy double-emit\n * — `undefined` then a stub `{ source }` — was removed; see FLAG).\n */\n protected clearValue(): void {\n this.#localValue.set(undefined);\n this.valueChanged.emit(undefined);\n }\n\n /**\n * Derives the POST endpoint's required inputs from the request body. Top-level\n * keys are primary; entries under `data` are secondary (non-primary).\n */\n #extractRequiredInputs(requestBody: Record<string, unknown>): MinimumInputRequiredInterface[] {\n const { data, ...rest } = requestBody;\n const dataEntries: Record<string, unknown> =\n data && typeof data === 'object' ? { ...data } : {};\n\n const primaryKeys = Object.entries(rest).map(([key, val]) =>\n this.#toRequiredInput(key, val, true),\n );\n const secondaryKeys = Object.entries(dataEntries).map(([key, val]) =>\n this.#toRequiredInput(key, val, false),\n );\n\n return [...primaryKeys, ...secondaryKeys];\n }\n\n #toRequiredInput(\n name: string,\n value: unknown,\n primaryKey: boolean,\n ): MinimumInputRequiredInterface {\n return { name, type: toJsDataType(value), primaryKey };\n }\n}\n","@switch (mode()) {\n @case ('no-collection') {\n <lib-empty-state\n icon=\"link_off\"\n message=\"No Postman collection configured. Add a collection id and API key to pick an endpoint.\" />\n }\n\n @case ('selected') {\n <div class=\"lib-rest-api-call-setup__card\">\n <button\n type=\"button\"\n class=\"lib-rest-api-call-setup__endpoint\"\n mat-button\n [disabled]=\"disabled()\"\n [matTooltip]=\"currentValue()?.httpEndPoint ?? ''\"\n (click)=\"clearValue()\">\n <span class=\"lib-rest-api-call-setup__method\" [style.color]=\"methodColor()\">\n {{ currentValue()?.httpMethod }}\n </span>\n <span class=\"lib-rest-api-call-setup__name\">\n {{ currentValue()?.name }}\n </span>\n <mat-icon class=\"lib-rest-api-call-setup__clear\" aria-hidden=\"true\">close</mat-icon>\n </button>\n </div>\n }\n\n @case ('picker') {\n <lib-postman-collections\n class=\"lib-rest-api-call-setup__picker\"\n [class.lib-rest-api-call-setup__picker--disabled]=\"disabled()\"\n [postmanCollectionConfig]=\"postmanCollectionConfig()!\"\n [loadingEndPoints]=\"loadingEndPoints()\"\n (nodeSelectionChanged)=\"nodeSelectionChanged($event)\" />\n }\n}\n\n@if (disabled()) {\n <p class=\"lib-rest-api-call-setup__lock\">\n <mat-icon aria-hidden=\"true\">lock</mat-icon>\n <span>This endpoint is locked and cannot be changed.</span>\n </p>\n}\n\n<lib-error-list [errors]=\"errors()\" />\n"],"names":["i2","i3","i1"],"mappings":";;;;;;;;;;;;;;;;;;;AAEA;AACA,SAAS,WAAW,CAAC,IAAiB,EAAE,UAAkB,EAAA;AACxD,IAAA,QACE,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,KAAK;AACvD,SAAC,IAAI,CAAC,WAAW,EAAE,WAAW,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,KAAK,CAAC;AAEnE;AAEA;;;;;;;;AAQG;AACH,SAAS,UAAU,CAAC,KAAgC,EAAE,UAAkB,EAAA;IACtE,IAAI,CAAC,KAAK,EAAE;AACV,QAAA,OAAO,EAAE;IACX;IACA,OAAO,KAAK,CAAC,MAAM,CAAgB,CAAC,IAAI,EAAE,IAAI,KAAI;AAChD,QAAA,IAAI,WAAW,CAAC,IAAI,EAAE,UAAU,CAAC,EAAE;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AA,EAAA,iOAAA,EAAA,MAAA,EAAA,CAAA,WAAA,CAAA,EAAA,QAAA,EAAA,CAAA,WAAA,EAAA,WAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACf,aAAa,mLACb,gBAAgB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAD,EAAA,CAAA,UAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,oBAAA,EAAA,4BAAA,EAAA,oBAAA,EAAA,qBAAA,EAAA,qBAAA,EAAA,yBAAA,EAAA,YAAA,EAAA,iBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAQP,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBApBrC,SAAS;+BACE,yBAAyB,EAAA,eAAA,EAGlB,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,QAAQ,EAAA,OAAA,EAChC;wBACP,2BAA2B;wBAC3B,mBAAmB;wBACnB,kBAAkB;wBAClB,eAAe;wBACf,aAAa;wBACb,gBAAgB;qBACjB,EAAA,IAAA,EACK;AACJ,wBAAA,OAAO,EAAE,yBAAyB;AAClC,wBAAA,MAAM,EAAE,UAAU;AAClB,wBAAA,kBAAkB,EAAE,QAAQ;AAC7B,qBAAA,EAAA,QAAA,EAAA,0/CAAA,EAAA,MAAA,EAAA,CAAA,imCAAA,CAAA,EAAA;;;;;"}
@@ -8,9 +8,9 @@ import * as i10 from '@angular/material/sort';
8
8
  import { MatSortModule } from '@angular/material/sort';
9
9
  import * as i5 from '@angular/material/table';
10
10
  import { MatTableModule } from '@angular/material/table';
11
- import * as i5$1 from '@angular/material/toolbar';
11
+ import * as i8 from '@angular/material/toolbar';
12
12
  import { MatToolbarModule } from '@angular/material/toolbar';
13
- import { F as FormsStoreService } from './ngx-t-forms-ngx-t-forms-CIX_hqx4.mjs';
13
+ import { F as FormsStoreService } from './ngx-t-forms-ngx-t-forms-CW8jN83w.mjs';
14
14
  import { ElementTypes, validateFormSlide } from 'ngx-t-forms-types';
15
15
 
16
16
  class SectionReportComponent {
@@ -81,7 +81,7 @@ class SectionReportComponent {
81
81
  ];
82
82
  }
83
83
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: SectionReportComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
84
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: SectionReportComponent, isStandalone: true, selector: "lib-section-report", inputs: { sectionId: { classPropertyName: "sectionId", publicName: "sectionId", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@if (section()) {\r\n <div class=\"report-container\">\r\n <mat-toolbar style=\"padding: 0px;\">\r\n <mat-icon class=\"section-icon\">analytics</mat-icon>\r\n <small>\r\n Form Section Diagnostic Report\r\n </small>\r\n\r\n <span class=\"spacer\"></span>\r\n <div class=\"status-chips\">\r\n <div class=\"status-chip\">\r\n <mat-icon>check_circle</mat-icon>\r\n </div>\r\n @if (section()?.sectionIsSeen) {\r\n <div class=\"status-chip initialized\">\r\n <mat-icon>task_alt</mat-icon>\r\n Initialized\r\n </div>\r\n }\r\n </div>\r\n </mat-toolbar>\r\n\r\n <table mat-table [dataSource]=\"(sectionData()) || []\" matSort class=\"w-full\">\r\n <!-- Icon Column -->\r\n <ng-container matColumnDef=\"icon\">\r\n <th mat-header-cell *matHeaderCellDef></th>\r\n <td mat-cell *matCellDef=\"let row\">\r\n <mat-icon [style.color]=\"row.color\">{{ row.icon }}</mat-icon>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- description Column -->\r\n <ng-container matColumnDef=\"description\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header>description</th>\r\n <td mat-cell *matCellDef=\"let row\">{{ row.description }}</td>\r\n </ng-container>\r\n\r\n <!-- Name Column -->\r\n <ng-container matColumnDef=\"name\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Type</th>\r\n <td mat-cell *matCellDef=\"let row\">{{ row.name }}</td>\r\n </ng-container>\r\n\r\n <!-- Value Column -->\r\n <ng-container matColumnDef=\"value\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Value</th>\r\n <td mat-cell *matCellDef=\"let row\">{{ row.value }}</td>\r\n </ng-container>\r\n\r\n <!-- Details Column -->\r\n <ng-container matColumnDef=\"details\">\r\n <th mat-header-cell *matHeaderCellDef>Details</th>\r\n <td mat-cell *matCellDef=\"let row\">\r\n @if (row.details?.length) {\r\n <mat-chip-set>\r\n @for (detail of row.details; track $index) {\r\n <mat-chip class=\"detail-chip\">{{ detail }}</mat-chip>\r\n }\r\n </mat-chip-set>\r\n }\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\"></tr>\r\n </table>\r\n </div>\r\n}\r\n", styles: [".report-container{padding:20px;display:flex;flex-direction:column;gap:20px;background:var(--mat-sys-surface-container, var(--mat-app-surface))}.header-card{background:var(--lib-forms-surface)}.title-section{display:flex;align-items:center;gap:12px}.section-icon{color:var(--sem-info);font-size:1.75em;width:28px;height:28px;margin-right:8px}h1{margin:0;font-size:1.25em;font-weight:500}.subtitle{margin:4px 0 0;color:var(--lib-forms-on-surface-variant);font-size:.875em}.status-chips{display:flex;gap:8px;margin-left:auto}.status-chip{display:flex;align-items:center;gap:4px;padding:4px 12px;border-radius:16px;background:var(--sem-success);color:var(--lib-forms-on-primary);font-size:.875em}.status-chip.invalid{background:var(--sem-error)}.status-chip.initialized{background:var(--sem-info)}.status-chip mat-icon{font-size:1.125em;width:18px;height:18px}.filter-field{width:100%;margin-bottom:16px}.detail-chip{font-size:.75em;height:24px}mat-card-content{padding:16px}\n"], dependencies: [{ kind: "ngmodule", type: MatChipsModule }, { kind: "component", type: i4.MatChip, selector: "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", inputs: ["role", "id", "aria-label", "aria-description", "value", "color", "removable", "highlighted", "disableRipple", "disabled"], outputs: ["removed", "destroyed"], exportAs: ["matChip"] }, { kind: "component", type: i4.MatChipSet, selector: "mat-chip-set", inputs: ["disabled", "role", "tabIndex"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatSortModule }, { kind: "directive", type: i10.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i10.MatSortHeader, selector: "[mat-sort-header]", inputs: ["mat-sort-header", "arrowPosition", "start", "disabled", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i5.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i5.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i5.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i5.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i5.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i5.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i5.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i5.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i5.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i5.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i5$1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
84
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: SectionReportComponent, isStandalone: true, selector: "lib-section-report", inputs: { sectionId: { classPropertyName: "sectionId", publicName: "sectionId", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@if (section()) {\r\n <div class=\"report-container\">\r\n <mat-toolbar style=\"padding: 0px;\">\r\n <mat-icon class=\"section-icon\">analytics</mat-icon>\r\n <small>\r\n Form Section Diagnostic Report\r\n </small>\r\n\r\n <span class=\"spacer\"></span>\r\n <div class=\"status-chips\">\r\n <div class=\"status-chip\">\r\n <mat-icon>check_circle</mat-icon>\r\n </div>\r\n @if (section()?.sectionIsSeen) {\r\n <div class=\"status-chip initialized\">\r\n <mat-icon>task_alt</mat-icon>\r\n Initialized\r\n </div>\r\n }\r\n </div>\r\n </mat-toolbar>\r\n\r\n <table mat-table [dataSource]=\"(sectionData()) || []\" matSort class=\"w-full\">\r\n <!-- Icon Column -->\r\n <ng-container matColumnDef=\"icon\">\r\n <th mat-header-cell *matHeaderCellDef></th>\r\n <td mat-cell *matCellDef=\"let row\">\r\n <mat-icon [style.color]=\"row.color\">{{ row.icon }}</mat-icon>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- description Column -->\r\n <ng-container matColumnDef=\"description\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header>description</th>\r\n <td mat-cell *matCellDef=\"let row\">{{ row.description }}</td>\r\n </ng-container>\r\n\r\n <!-- Name Column -->\r\n <ng-container matColumnDef=\"name\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Type</th>\r\n <td mat-cell *matCellDef=\"let row\">{{ row.name }}</td>\r\n </ng-container>\r\n\r\n <!-- Value Column -->\r\n <ng-container matColumnDef=\"value\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Value</th>\r\n <td mat-cell *matCellDef=\"let row\">{{ row.value }}</td>\r\n </ng-container>\r\n\r\n <!-- Details Column -->\r\n <ng-container matColumnDef=\"details\">\r\n <th mat-header-cell *matHeaderCellDef>Details</th>\r\n <td mat-cell *matCellDef=\"let row\">\r\n @if (row.details?.length) {\r\n <mat-chip-set>\r\n @for (detail of row.details; track $index) {\r\n <mat-chip class=\"detail-chip\">{{ detail }}</mat-chip>\r\n }\r\n </mat-chip-set>\r\n }\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\"></tr>\r\n </table>\r\n </div>\r\n}\r\n", styles: [".report-container{padding:20px;display:flex;flex-direction:column;gap:20px;background:var(--mat-sys-surface-container, var(--mat-app-surface))}.header-card{background:var(--lib-forms-surface)}.title-section{display:flex;align-items:center;gap:12px}.section-icon{color:var(--sem-info);font-size:1.75em;width:28px;height:28px;margin-right:8px}h1{margin:0;font-size:1.25em;font-weight:500}.subtitle{margin:4px 0 0;color:var(--lib-forms-on-surface-variant);font-size:.875em}.status-chips{display:flex;gap:8px;margin-left:auto}.status-chip{display:flex;align-items:center;gap:4px;padding:4px 12px;border-radius:16px;background:var(--sem-success);color:var(--lib-forms-on-primary);font-size:.875em}.status-chip.invalid{background:var(--sem-error)}.status-chip.initialized{background:var(--sem-info)}.status-chip mat-icon{font-size:1.125em;width:18px;height:18px}.filter-field{width:100%;margin-bottom:16px}.detail-chip{font-size:.75em;height:24px}mat-card-content{padding:16px}\n"], dependencies: [{ kind: "ngmodule", type: MatChipsModule }, { kind: "component", type: i4.MatChip, selector: "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", inputs: ["role", "id", "aria-label", "aria-description", "value", "color", "removable", "highlighted", "disableRipple", "disabled"], outputs: ["removed", "destroyed"], exportAs: ["matChip"] }, { kind: "component", type: i4.MatChipSet, selector: "mat-chip-set", inputs: ["disabled", "role", "tabIndex"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatSortModule }, { kind: "directive", type: i10.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i10.MatSortHeader, selector: "[mat-sort-header]", inputs: ["mat-sort-header", "arrowPosition", "start", "disabled", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i5.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i5.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i5.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i5.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i5.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i5.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i5.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i5.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i5.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i5.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i8.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
85
85
  }
86
86
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: SectionReportComponent, decorators: [{
87
87
  type: Component,
@@ -95,4 +95,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
95
95
  }], propDecorators: { sectionId: [{ type: i0.Input, args: [{ isSignal: true, alias: "sectionId", required: true }] }] } });
96
96
 
97
97
  export { SectionReportComponent };
98
- //# sourceMappingURL=ngx-t-forms-section-report.component-7ORNUfFx.mjs.map
98
+ //# sourceMappingURL=ngx-t-forms-section-report.component-BypN3AWY.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-t-forms-section-report.component-7ORNUfFx.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/section-report/section-report.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/section-report/section-report.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Signal, computed, inject, input } from '@angular/core';\r\n\r\nimport { MatChipsModule } from '@angular/material/chips';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatSortModule } from '@angular/material/sort';\r\nimport { MatTableModule } from '@angular/material/table';\r\nimport { MatToolbarModule } from '@angular/material/toolbar';\r\n\r\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\r\n\r\nimport { ElementTypes, FormSlideInterface, validateFormSlide } from 'ngx-t-forms-types';\r\n\r\ninterface SectionReportMetric {\r\n icon: string;\r\n name: string;\r\n value: number;\r\n color: string;\r\n description: string;\r\n trend: string;\r\n category: string;\r\n details?: unknown[];\r\n}\r\n\r\n@Component({\r\n selector: 'lib-section-report',\r\n imports: [\r\n MatChipsModule,\r\n MatIconModule,\r\n MatSortModule,\r\n MatTableModule,\r\n MatToolbarModule,\r\n ],\r\n templateUrl: './section-report.component.html',\r\n styleUrl: './section-report.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class SectionReportComponent {\r\n readonly sectionId = input.required<string>();\r\n\r\n protected readonly displayedColumns: readonly string[] = ['icon', 'name', 'description', 'value'];\r\n\r\n readonly #store: FormsStoreService = inject(FormsStoreService);\r\n protected readonly selectFormInEdit = this.#store.signalSelectors.selectFormInEdit;\r\n\r\n protected readonly section: Signal<FormSlideInterface | null> = computed<FormSlideInterface | null>(() => {\r\n const form = this.selectFormInEdit();\r\n return (\r\n form?.form.slides.find((slide: FormSlideInterface) => slide.sectionId === this.sectionId()) ||\r\n null\r\n );\r\n });\r\n\r\n protected readonly sectionData: Signal<SectionReportMetric[]> = computed<SectionReportMetric[]>(\r\n () => this.#buildMetrics(this.section()),\r\n );\r\n\r\n #buildMetrics(data: FormSlideInterface | null): SectionReportMetric[] {\r\n if (!data) return [];\r\n const sectionId = this.sectionId();\r\n const allInputs = data.columns\r\n .flatMap((column) =>\r\n column.element === ElementTypes.MultipleInput\r\n ? [...(column?.formInputs || []), column]\r\n : [column],\r\n )\r\n .filter((input) => input.sectionId === sectionId);\r\n\r\n const calculatedInputs = allInputs.filter(\r\n (input) =>\r\n input.calculatedFieldRules?.formula && input.calculatedFieldRules?.formula !== '',\r\n );\r\n const inputsWithManualValidations = allInputs.filter((input) =>\r\n input.validators?.some((validator) => Object.keys(validator).length > 0),\r\n );\r\n const allSectionInputConfigErrors = validateFormSlide(data);\r\n\r\n return [\r\n {\r\n icon: 'input',\r\n name: 'Total Inputs',\r\n value: Object.keys(allInputs || {}).length,\r\n color: '#2196f3',\r\n description: 'Total number of form inputs in section',\r\n trend: 'stable',\r\n category: 'inputs',\r\n },\r\n {\r\n icon: 'calculate',\r\n name: 'Calculated Fields',\r\n value: calculatedInputs.length,\r\n details: calculatedInputs,\r\n color: '#4caf50',\r\n description: 'Fields with calculation formulas',\r\n trend: 'monitoring',\r\n category: 'calculations',\r\n },\r\n {\r\n icon: 'rule',\r\n name: 'Manual Validations',\r\n value: inputsWithManualValidations.length,\r\n details: inputsWithManualValidations,\r\n color: '#ff9800',\r\n description: 'Fields with custom validation rules',\r\n trend: 'warning',\r\n category: 'validation',\r\n },\r\n {\r\n icon: 'bug_report',\r\n name: 'Config Errors',\r\n value: allSectionInputConfigErrors.length,\r\n color: '#f44336',\r\n description: 'Configuration errors detected',\r\n trend: 'critical',\r\n category: 'errors',\r\n },\r\n ];\r\n }\r\n}\r\n","@if (section()) {\r\n <div class=\"report-container\">\r\n <mat-toolbar style=\"padding: 0px;\">\r\n <mat-icon class=\"section-icon\">analytics</mat-icon>\r\n <small>\r\n Form Section Diagnostic Report\r\n </small>\r\n\r\n <span class=\"spacer\"></span>\r\n <div class=\"status-chips\">\r\n <div class=\"status-chip\">\r\n <mat-icon>check_circle</mat-icon>\r\n </div>\r\n @if (section()?.sectionIsSeen) {\r\n <div class=\"status-chip initialized\">\r\n <mat-icon>task_alt</mat-icon>\r\n Initialized\r\n </div>\r\n }\r\n </div>\r\n </mat-toolbar>\r\n\r\n <table mat-table [dataSource]=\"(sectionData()) || []\" matSort class=\"w-full\">\r\n <!-- Icon Column -->\r\n <ng-container matColumnDef=\"icon\">\r\n <th mat-header-cell *matHeaderCellDef></th>\r\n <td mat-cell *matCellDef=\"let row\">\r\n <mat-icon [style.color]=\"row.color\">{{ row.icon }}</mat-icon>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- description Column -->\r\n <ng-container matColumnDef=\"description\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header>description</th>\r\n <td mat-cell *matCellDef=\"let row\">{{ row.description }}</td>\r\n </ng-container>\r\n\r\n <!-- Name Column -->\r\n <ng-container matColumnDef=\"name\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Type</th>\r\n <td mat-cell *matCellDef=\"let row\">{{ row.name }}</td>\r\n </ng-container>\r\n\r\n <!-- Value Column -->\r\n <ng-container matColumnDef=\"value\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Value</th>\r\n <td mat-cell *matCellDef=\"let row\">{{ row.value }}</td>\r\n </ng-container>\r\n\r\n <!-- Details Column -->\r\n <ng-container matColumnDef=\"details\">\r\n <th mat-header-cell *matHeaderCellDef>Details</th>\r\n <td mat-cell *matCellDef=\"let row\">\r\n @if (row.details?.length) {\r\n <mat-chip-set>\r\n @for (detail of row.details; track $index) {\r\n <mat-chip class=\"detail-chip\">{{ detail }}</mat-chip>\r\n }\r\n </mat-chip-set>\r\n }\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\"></tr>\r\n </table>\r\n </div>\r\n}\r\n"],"names":["i1","i2","i3","i4","i5"],"mappings":";;;;;;;;;;;;;;;MAoCa,sBAAsB,CAAA;AAbnC,IAAA,WAAA,GAAA;AAcW,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,+EAAU;QAE1B,IAAA,CAAA,gBAAgB,GAAsB,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC;AAExF,QAAA,IAAA,CAAA,MAAM,GAAsB,MAAM,CAAC,iBAAiB,CAAC;QAC3C,IAAA,CAAA,gBAAgB,GAAG,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,gBAAgB;AAE/D,QAAA,IAAA,CAAA,OAAO,GAAsC,QAAQ,CAA4B,MAAK;AACvG,YAAA,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,EAAE;YACpC,QACE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAyB,KAAK,KAAK,CAAC,SAAS,KAAK,IAAI,CAAC,SAAS,EAAE,CAAC;AAC3F,gBAAA,IAAI;AAER,QAAA,CAAC,8EAAC;AAEiB,QAAA,IAAA,CAAA,WAAW,GAAkC,QAAQ,CACtE,MAAM,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,kFACzC;AA+DF,IAAA;AA5EU,IAAA,MAAM;AAef,IAAA,aAAa,CAAC,IAA+B,EAAA;AAC3C,QAAA,IAAI,CAAC,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A,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,MAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACd,gBAAgB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,UAAA,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,CAAA,OAAA,CAAA,EAAA,QAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAMP,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAblC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,oBAAoB,EAAA,OAAA,EACrB;wBACP,cAAc;wBACd,aAAa;wBACb,aAAa;wBACb,cAAc;wBACd,gBAAgB;qBACjB,EAAA,eAAA,EAGgB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,2+EAAA,EAAA,MAAA,EAAA,CAAA,+8BAAA,CAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"ngx-t-forms-section-report.component-BypN3AWY.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/section-report/section-report.component.ts","../../../projects/ngx-t-forms/src/lib/components/form-builder/elements/section-report/section-report.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Signal, computed, inject, input } from '@angular/core';\r\n\r\nimport { MatChipsModule } from '@angular/material/chips';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatSortModule } from '@angular/material/sort';\r\nimport { MatTableModule } from '@angular/material/table';\r\nimport { MatToolbarModule } from '@angular/material/toolbar';\r\n\r\nimport { FormsStoreService } from '../../../forms/store/forms-store.service';\r\n\r\nimport { ElementTypes, FormSlideInterface, validateFormSlide } from 'ngx-t-forms-types';\r\n\r\ninterface SectionReportMetric {\r\n icon: string;\r\n name: string;\r\n value: number;\r\n color: string;\r\n description: string;\r\n trend: string;\r\n category: string;\r\n details?: unknown[];\r\n}\r\n\r\n@Component({\r\n selector: 'lib-section-report',\r\n imports: [\r\n MatChipsModule,\r\n MatIconModule,\r\n MatSortModule,\r\n MatTableModule,\r\n MatToolbarModule,\r\n ],\r\n templateUrl: './section-report.component.html',\r\n styleUrl: './section-report.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class SectionReportComponent {\r\n readonly sectionId = input.required<string>();\r\n\r\n protected readonly displayedColumns: readonly string[] = ['icon', 'name', 'description', 'value'];\r\n\r\n readonly #store: FormsStoreService = inject(FormsStoreService);\r\n protected readonly selectFormInEdit = this.#store.signalSelectors.selectFormInEdit;\r\n\r\n protected readonly section: Signal<FormSlideInterface | null> = computed<FormSlideInterface | null>(() => {\r\n const form = this.selectFormInEdit();\r\n return (\r\n form?.form.slides.find((slide: FormSlideInterface) => slide.sectionId === this.sectionId()) ||\r\n null\r\n );\r\n });\r\n\r\n protected readonly sectionData: Signal<SectionReportMetric[]> = computed<SectionReportMetric[]>(\r\n () => this.#buildMetrics(this.section()),\r\n );\r\n\r\n #buildMetrics(data: FormSlideInterface | null): SectionReportMetric[] {\r\n if (!data) return [];\r\n const sectionId = this.sectionId();\r\n const allInputs = data.columns\r\n .flatMap((column) =>\r\n column.element === ElementTypes.MultipleInput\r\n ? [...(column?.formInputs || []), column]\r\n : [column],\r\n )\r\n .filter((input) => input.sectionId === sectionId);\r\n\r\n const calculatedInputs = allInputs.filter(\r\n (input) =>\r\n input.calculatedFieldRules?.formula && input.calculatedFieldRules?.formula !== '',\r\n );\r\n const inputsWithManualValidations = allInputs.filter((input) =>\r\n input.validators?.some((validator) => Object.keys(validator).length > 0),\r\n );\r\n const allSectionInputConfigErrors = validateFormSlide(data);\r\n\r\n return [\r\n {\r\n icon: 'input',\r\n name: 'Total Inputs',\r\n value: Object.keys(allInputs || {}).length,\r\n color: '#2196f3',\r\n description: 'Total number of form inputs in section',\r\n trend: 'stable',\r\n category: 'inputs',\r\n },\r\n {\r\n icon: 'calculate',\r\n name: 'Calculated Fields',\r\n value: calculatedInputs.length,\r\n details: calculatedInputs,\r\n color: '#4caf50',\r\n description: 'Fields with calculation formulas',\r\n trend: 'monitoring',\r\n category: 'calculations',\r\n },\r\n {\r\n icon: 'rule',\r\n name: 'Manual Validations',\r\n value: inputsWithManualValidations.length,\r\n details: inputsWithManualValidations,\r\n color: '#ff9800',\r\n description: 'Fields with custom validation rules',\r\n trend: 'warning',\r\n category: 'validation',\r\n },\r\n {\r\n icon: 'bug_report',\r\n name: 'Config Errors',\r\n value: allSectionInputConfigErrors.length,\r\n color: '#f44336',\r\n description: 'Configuration errors detected',\r\n trend: 'critical',\r\n category: 'errors',\r\n },\r\n ];\r\n }\r\n}\r\n","@if (section()) {\r\n <div class=\"report-container\">\r\n <mat-toolbar style=\"padding: 0px;\">\r\n <mat-icon class=\"section-icon\">analytics</mat-icon>\r\n <small>\r\n Form Section Diagnostic Report\r\n </small>\r\n\r\n <span class=\"spacer\"></span>\r\n <div class=\"status-chips\">\r\n <div class=\"status-chip\">\r\n <mat-icon>check_circle</mat-icon>\r\n </div>\r\n @if (section()?.sectionIsSeen) {\r\n <div class=\"status-chip initialized\">\r\n <mat-icon>task_alt</mat-icon>\r\n Initialized\r\n </div>\r\n }\r\n </div>\r\n </mat-toolbar>\r\n\r\n <table mat-table [dataSource]=\"(sectionData()) || []\" matSort class=\"w-full\">\r\n <!-- Icon Column -->\r\n <ng-container matColumnDef=\"icon\">\r\n <th mat-header-cell *matHeaderCellDef></th>\r\n <td mat-cell *matCellDef=\"let row\">\r\n <mat-icon [style.color]=\"row.color\">{{ row.icon }}</mat-icon>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- description Column -->\r\n <ng-container matColumnDef=\"description\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header>description</th>\r\n <td mat-cell *matCellDef=\"let row\">{{ row.description }}</td>\r\n </ng-container>\r\n\r\n <!-- Name Column -->\r\n <ng-container matColumnDef=\"name\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Type</th>\r\n <td mat-cell *matCellDef=\"let row\">{{ row.name }}</td>\r\n </ng-container>\r\n\r\n <!-- Value Column -->\r\n <ng-container matColumnDef=\"value\">\r\n <th mat-header-cell *matHeaderCellDef mat-sort-header>Value</th>\r\n <td mat-cell *matCellDef=\"let row\">{{ row.value }}</td>\r\n </ng-container>\r\n\r\n <!-- Details Column -->\r\n <ng-container matColumnDef=\"details\">\r\n <th mat-header-cell *matHeaderCellDef>Details</th>\r\n <td mat-cell *matCellDef=\"let row\">\r\n @if (row.details?.length) {\r\n <mat-chip-set>\r\n @for (detail of row.details; track $index) {\r\n <mat-chip class=\"detail-chip\">{{ detail }}</mat-chip>\r\n }\r\n </mat-chip-set>\r\n }\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns;\"></tr>\r\n </table>\r\n </div>\r\n}\r\n"],"names":["i1","i2","i3","i4","i5"],"mappings":";;;;;;;;;;;;;;;MAoCa,sBAAsB,CAAA;AAbnC,IAAA,WAAA,GAAA;AAcW,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,+EAAU;QAE1B,IAAA,CAAA,gBAAgB,GAAsB,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC;AAExF,QAAA,IAAA,CAAA,MAAM,GAAsB,MAAM,CAAC,iBAAiB,CAAC;QAC3C,IAAA,CAAA,gBAAgB,GAAG,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,gBAAgB;AAE/D,QAAA,IAAA,CAAA,OAAO,GAAsC,QAAQ,CAA4B,MAAK;AACvG,YAAA,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,EAAE;YACpC,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5 from '@angular/material/tooltip';
12
12
  import { MatTooltipModule } from '@angular/material/tooltip';
13
- import { B as BaseCustomInput, q as getInputErrorMessage, u as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-CIX_hqx4.mjs';
13
+ import { B as BaseCustomInput, q as getInputErrorMessage, u as TFormInputStatusComponent } from './ngx-t-forms-ngx-t-forms-CW8jN83w.mjs';
14
14
  import { Subject } from 'rxjs';
15
15
  import * as i8 from '@angular/material/select';
16
16
  import { MatSelectModule } from '@angular/material/select';
@@ -21,7 +21,7 @@ import * as i13 from '@angular/material/radio';
21
21
  import { MatRadioModule } from '@angular/material/radio';
22
22
  import * as i3 from '@angular/material/checkbox';
23
23
  import { MatCheckboxModule } from '@angular/material/checkbox';
24
- import * as i4$1 from '@angular/material/list';
24
+ import * as i6 from '@angular/material/list';
25
25
  import { MatListModule } from '@angular/material/list';
26
26
  import { TitleCasePipe } from '@angular/common';
27
27
 
@@ -97,7 +97,7 @@ class SelectInputComponent extends BaseCustomInput {
97
97
  return this.ngControl?.control ?? null;
98
98
  }
99
99
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: SelectInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
100
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: SelectInputComponent, isStandalone: true, selector: "lib-select-input", inputs: { inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "class.floating": "shouldLabelFloat", "id": "id" } }, providers: [{ provide: MatFormFieldControl, useExisting: SelectInputComponent }], usesInheritance: true, ngImport: i0, template: "@switch (inputConfig().optionSelectType) {\r\n@case (optionSelectTypes.ChipSelect) {\r\n<mat-chip-listbox [multiple]=\"!!inputConfig().allowMultipleSelection\" [value]=\"value\" [disabled]=\"controlDisabled\"\r\n (change)=\"onSelectionChange($event)\" aria-l abel=\"Chip select options\">\r\n @for (option of getSelectOptions(); track option.value) {\r\n <mat-chip-option [value]=\"option.value\">{{option.label}}</mat-chip-option>\r\n }\r\n</mat-chip-listbox>\r\n}\r\n@case (optionSelectTypes.RadioButton) {\r\n@if (!!inputConfig().allowMultipleSelection) {\r\n@for (option of getSelectOptions(); track option.value) {\r\n<mat-checkbox\r\n [value]=\"option.value\"\r\n [checked]=\"isSelected(option.value)\"\r\n [disabled]=\"controlDisabled\"\r\n (change)=\"checkBoxChanged($event, option.value)\" class=\"example-margin\">\r\n {{option.label}}\r\n</mat-checkbox>\r\n}\r\n} @else {\r\n<mat-radio-group aria-labelledby=\"example-radio-group-label\" class=\"example-radio-group\"\r\n (change)=\"onSelectionChange($event)\" [value]=\"value\" [disabled]=\"controlDisabled\">\r\n @for (option of getSelectOptions(); track option.value) {\r\n <mat-radio-button class=\"example-radio-button\" [value]=\"option.value\">{{option.label}}</mat-radio-button>\r\n }\r\n</mat-radio-group>\r\n}\r\n\r\n}\r\n@default {\r\n\r\n<mat-select [multiple]=\"!!inputConfig().allowMultipleSelection\" #sele (selectionChange)=\"onSelectionChange($event)\"\r\n [value]=\"value\" [disabled]=\"controlDisabled\">\r\n\r\n\r\n\r\n @for (option of getSelectOptions(); track option.value) {\r\n <mat-option [value]=\"option.value\" [disabled]=\"controlDisabled\">\r\n @switch (inputConfig().matOptions?.optionType) {\r\n @case ('user') {\r\n <mat-list-item style=\"padding: 0px;\">\r\n <img matListItemAvatar [src]=\"getAvatar(option.username)\" />\r\n <div matListItemTitle>{{ option.username | titlecase }}</div>\r\n <div matListItemLine> {{ option.email }}</div>\r\n </mat-list-item>\r\n\r\n }\r\n @default {\r\n {{ option.label }}\r\n }\r\n }\r\n\r\n </mat-option>\r\n }\r\n\r\n</mat-select>\r\n\r\n}\r\n}\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i8.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i8.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: MatChipsModule }, { kind: "component", type: i4.MatChipListbox, selector: "mat-chip-listbox", inputs: ["multiple", "aria-orientation", "selectable", "compareWith", "required", "hideSingleSelectionIndicator", "value"], outputs: ["change"] }, { kind: "component", type: i4.MatChipOption, selector: "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", inputs: ["selectable", "selected"], outputs: ["selectionChange"] }, { kind: "ngmodule", type: MatRadioModule }, { kind: "directive", type: i13.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i13.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i3.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatListModule }, { kind: "component", type: i4$1.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i4$1.MatListItemAvatar, selector: "[matListItemAvatar]" }, { kind: "directive", type: i4$1.MatListItemLine, selector: "[matListItemLine]" }, { kind: "directive", type: i4$1.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "pipe", type: TitleCasePipe, name: "titlecase" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
100
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: SelectInputComponent, isStandalone: true, selector: "lib-select-input", inputs: { inputConfig: { classPropertyName: "inputConfig", publicName: "inputConfig", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "class.floating": "shouldLabelFloat", "id": "id" } }, providers: [{ provide: MatFormFieldControl, useExisting: SelectInputComponent }], usesInheritance: true, ngImport: i0, template: "@switch (inputConfig().optionSelectType) {\r\n@case (optionSelectTypes.ChipSelect) {\r\n<mat-chip-listbox [multiple]=\"!!inputConfig().allowMultipleSelection\" [value]=\"value\" [disabled]=\"controlDisabled\"\r\n (change)=\"onSelectionChange($event)\" aria-l abel=\"Chip select options\">\r\n @for (option of getSelectOptions(); track $index) {\r\n <mat-chip-option [value]=\"option.value\">{{option.label}}</mat-chip-option>\r\n }\r\n</mat-chip-listbox>\r\n}\r\n@case (optionSelectTypes.RadioButton) {\r\n@if (!!inputConfig().allowMultipleSelection) {\r\n@for (option of getSelectOptions(); track $index) {\r\n<mat-checkbox\r\n [value]=\"option.value\"\r\n [checked]=\"isSelected(option.value)\"\r\n [disabled]=\"controlDisabled\"\r\n (change)=\"checkBoxChanged($event, option.value)\" class=\"example-margin\">\r\n {{option.label}}\r\n</mat-checkbox>\r\n}\r\n} @else {\r\n<mat-radio-group aria-labelledby=\"example-radio-group-label\" class=\"example-radio-group\"\r\n (change)=\"onSelectionChange($event)\" [value]=\"value\" [disabled]=\"controlDisabled\">\r\n @for (option of getSelectOptions(); track $index) {\r\n <mat-radio-button class=\"example-radio-button\" [value]=\"option.value\">{{option.label}}</mat-radio-button>\r\n }\r\n</mat-radio-group>\r\n}\r\n\r\n}\r\n@default {\r\n\r\n<mat-select [multiple]=\"!!inputConfig().allowMultipleSelection\" #sele (selectionChange)=\"onSelectionChange($event)\"\r\n [value]=\"value\" [disabled]=\"controlDisabled\">\r\n\r\n\r\n\r\n @for (option of getSelectOptions(); track $index) {\r\n <mat-option [value]=\"option.value\" [disabled]=\"controlDisabled\">\r\n @switch (inputConfig().matOptions?.optionType) {\r\n @case ('user') {\r\n <mat-list-item style=\"padding: 0px;\">\r\n <img matListItemAvatar [src]=\"getAvatar(option.username)\" />\r\n <div matListItemTitle>{{ option.username | titlecase }}</div>\r\n <div matListItemLine> {{ option.email }}</div>\r\n </mat-list-item>\r\n\r\n }\r\n @default {\r\n {{ option.label }}\r\n }\r\n }\r\n\r\n </mat-option>\r\n }\r\n\r\n</mat-select>\r\n\r\n}\r\n}\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i8.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i8.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: MatChipsModule }, { kind: "component", type: i4.MatChipListbox, selector: "mat-chip-listbox", inputs: ["multiple", "aria-orientation", "selectable", "compareWith", "required", "hideSingleSelectionIndicator", "value"], outputs: ["change"] }, { kind: "component", type: i4.MatChipOption, selector: "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", inputs: ["selectable", "selected"], outputs: ["selectionChange"] }, { kind: "ngmodule", type: MatRadioModule }, { kind: "directive", type: i13.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i13.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i3.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatListModule }, { kind: "component", type: i6.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i6.MatListItemAvatar, selector: "[matListItemAvatar]" }, { kind: "directive", type: i6.MatListItemLine, selector: "[matListItemLine]" }, { kind: "directive", type: i6.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "pipe", type: TitleCasePipe, name: "titlecase" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
101
101
  }
102
102
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: SelectInputComponent, decorators: [{
103
103
  type: Component,
@@ -112,7 +112,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
112
112
  ], changeDetection: ChangeDetectionStrategy.OnPush, host: {
113
113
  '[class.floating]': 'shouldLabelFloat',
114
114
  '[id]': 'id',
115
- }, providers: [{ provide: MatFormFieldControl, useExisting: SelectInputComponent }], template: "@switch (inputConfig().optionSelectType) {\r\n@case (optionSelectTypes.ChipSelect) {\r\n<mat-chip-listbox [multiple]=\"!!inputConfig().allowMultipleSelection\" [value]=\"value\" [disabled]=\"controlDisabled\"\r\n (change)=\"onSelectionChange($event)\" aria-l abel=\"Chip select options\">\r\n @for (option of getSelectOptions(); track option.value) {\r\n <mat-chip-option [value]=\"option.value\">{{option.label}}</mat-chip-option>\r\n }\r\n</mat-chip-listbox>\r\n}\r\n@case (optionSelectTypes.RadioButton) {\r\n@if (!!inputConfig().allowMultipleSelection) {\r\n@for (option of getSelectOptions(); track option.value) {\r\n<mat-checkbox\r\n [value]=\"option.value\"\r\n [checked]=\"isSelected(option.value)\"\r\n [disabled]=\"controlDisabled\"\r\n (change)=\"checkBoxChanged($event, option.value)\" class=\"example-margin\">\r\n {{option.label}}\r\n</mat-checkbox>\r\n}\r\n} @else {\r\n<mat-radio-group aria-labelledby=\"example-radio-group-label\" class=\"example-radio-group\"\r\n (change)=\"onSelectionChange($event)\" [value]=\"value\" [disabled]=\"controlDisabled\">\r\n @for (option of getSelectOptions(); track option.value) {\r\n <mat-radio-button class=\"example-radio-button\" [value]=\"option.value\">{{option.label}}</mat-radio-button>\r\n }\r\n</mat-radio-group>\r\n}\r\n\r\n}\r\n@default {\r\n\r\n<mat-select [multiple]=\"!!inputConfig().allowMultipleSelection\" #sele (selectionChange)=\"onSelectionChange($event)\"\r\n [value]=\"value\" [disabled]=\"controlDisabled\">\r\n\r\n\r\n\r\n @for (option of getSelectOptions(); track option.value) {\r\n <mat-option [value]=\"option.value\" [disabled]=\"controlDisabled\">\r\n @switch (inputConfig().matOptions?.optionType) {\r\n @case ('user') {\r\n <mat-list-item style=\"padding: 0px;\">\r\n <img matListItemAvatar [src]=\"getAvatar(option.username)\" />\r\n <div matListItemTitle>{{ option.username | titlecase }}</div>\r\n <div matListItemLine> {{ option.email }}</div>\r\n </mat-list-item>\r\n\r\n }\r\n @default {\r\n {{ option.label }}\r\n }\r\n }\r\n\r\n </mat-option>\r\n }\r\n\r\n</mat-select>\r\n\r\n}\r\n}\r\n" }]
115
+ }, providers: [{ provide: MatFormFieldControl, useExisting: SelectInputComponent }], template: "@switch (inputConfig().optionSelectType) {\r\n@case (optionSelectTypes.ChipSelect) {\r\n<mat-chip-listbox [multiple]=\"!!inputConfig().allowMultipleSelection\" [value]=\"value\" [disabled]=\"controlDisabled\"\r\n (change)=\"onSelectionChange($event)\" aria-l abel=\"Chip select options\">\r\n @for (option of getSelectOptions(); track $index) {\r\n <mat-chip-option [value]=\"option.value\">{{option.label}}</mat-chip-option>\r\n }\r\n</mat-chip-listbox>\r\n}\r\n@case (optionSelectTypes.RadioButton) {\r\n@if (!!inputConfig().allowMultipleSelection) {\r\n@for (option of getSelectOptions(); track $index) {\r\n<mat-checkbox\r\n [value]=\"option.value\"\r\n [checked]=\"isSelected(option.value)\"\r\n [disabled]=\"controlDisabled\"\r\n (change)=\"checkBoxChanged($event, option.value)\" class=\"example-margin\">\r\n {{option.label}}\r\n</mat-checkbox>\r\n}\r\n} @else {\r\n<mat-radio-group aria-labelledby=\"example-radio-group-label\" class=\"example-radio-group\"\r\n (change)=\"onSelectionChange($event)\" [value]=\"value\" [disabled]=\"controlDisabled\">\r\n @for (option of getSelectOptions(); track $index) {\r\n <mat-radio-button class=\"example-radio-button\" [value]=\"option.value\">{{option.label}}</mat-radio-button>\r\n }\r\n</mat-radio-group>\r\n}\r\n\r\n}\r\n@default {\r\n\r\n<mat-select [multiple]=\"!!inputConfig().allowMultipleSelection\" #sele (selectionChange)=\"onSelectionChange($event)\"\r\n [value]=\"value\" [disabled]=\"controlDisabled\">\r\n\r\n\r\n\r\n @for (option of getSelectOptions(); track $index) {\r\n <mat-option [value]=\"option.value\" [disabled]=\"controlDisabled\">\r\n @switch (inputConfig().matOptions?.optionType) {\r\n @case ('user') {\r\n <mat-list-item style=\"padding: 0px;\">\r\n <img matListItemAvatar [src]=\"getAvatar(option.username)\" />\r\n <div matListItemTitle>{{ option.username | titlecase }}</div>\r\n <div matListItemLine> {{ option.email }}</div>\r\n </mat-list-item>\r\n\r\n }\r\n @default {\r\n {{ option.label }}\r\n }\r\n }\r\n\r\n </mat-option>\r\n }\r\n\r\n</mat-select>\r\n\r\n}\r\n}\r\n" }]
116
116
  }], ctorParameters: () => [], propDecorators: { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }] } });
117
117
 
118
118
  /** Wraps a reactive select control inside a `mat-form-field`. */
@@ -157,4 +157,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
157
157
  }], propDecorators: { inputConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputConfig", required: true }] }], formGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "formGroup", required: true }] }], reload: [{ type: i0.Output, args: ["reload"] }] } });
158
158
 
159
159
  export { SelectInputElementComponent };
160
- //# sourceMappingURL=ngx-t-forms-select-input-element.component-DjxK2Otk.mjs.map
160
+ //# sourceMappingURL=ngx-t-forms-select-input-element.component-DNBZVxhD.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-t-forms-select-input-element.component-DNBZVxhD.mjs","sources":["../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/select-input-element/elements/select-input/select-input.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/select-input-element/elements/select-input/select-input.component.html","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/select-input-element/select-input-element.component.ts","../../../projects/ngx-t-forms/src/lib/components/t-form-input/elements/select-input-element/select-input-element.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ElementRef, inject, input } from '@angular/core';\r\nimport { MatFormFieldControl } from '@angular/material/form-field';\r\nimport { BaseCustomInput, BaseCustomInputConfig } from '../../../../../../services/core/t-input-controller/functions/baseCustomInput';\r\n\r\nimport { AbstractControl, NgControl, ReactiveFormsModule } from '@angular/forms';\r\nimport { Subject } from 'rxjs';\r\nimport { MatSelectChange, MatSelectModule } from '@angular/material/select';\r\nimport { ITowerStepColumn, OptionSelectTypes } from 'ngx-t-forms-types';\r\nimport { MatChipListboxChange, MatChipsModule } from '@angular/material/chips';\r\nimport { MatRadioChange, MatRadioModule } from '@angular/material/radio';\r\nimport { MatCheckboxChange, MatCheckboxModule } from '@angular/material/checkbox';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { TitleCasePipe } from '@angular/common';\r\n\r\nconst customInputConfig: BaseCustomInputConfig = {\r\n controlType: 'lib-select-input',\r\n nextId: 0,\r\n};\r\n\r\n@Component({\r\n selector: 'lib-select-input',\r\n imports: [\r\n ReactiveFormsModule,\r\n MatSelectModule,\r\n MatChipsModule,\r\n MatRadioModule,\r\n MatCheckboxModule,\r\n MatListModule,\r\n TitleCasePipe,\r\n ],\r\n templateUrl: './select-input.component.html',\r\n styleUrl: './select-input.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: {\r\n '[class.floating]': 'shouldLabelFloat',\r\n '[id]': 'id',\r\n },\r\n providers: [{ provide: MatFormFieldControl, useExisting: SelectInputComponent }],\r\n})\r\nexport class SelectInputComponent extends BaseCustomInput<string | number | Date | string[]> {\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n\r\n constructor() {\r\n super(\r\n inject(NgControl, { optional: true, self: true }) as NgControl,\r\n inject<ElementRef<HTMLElement>>(ElementRef),\r\n customInputConfig,\r\n );\r\n }\r\n\r\n protected readonly optionSelectTypes = OptionSelectTypes;\r\n\r\n /**\r\n * True when the control must not accept selection changes — either the form\r\n * control was disabled (`BaseCustomInput.disabled`) or the descriptor marks the\r\n * field `readonly`/`disabled`. Mirrors the reference `readonly || disabled`\r\n * contract so every option-select variant blocks interaction uniformly.\r\n */\r\n protected get controlDisabled(): boolean {\r\n const cfg = this.inputConfig();\r\n return this.disabled || !!cfg?.readonly || !!cfg?.disabled;\r\n }\r\n\r\n override get empty(): boolean {\r\n return !this.value;\r\n }\r\n\r\n override get shouldLabelFloat(): boolean {\r\n return true;\r\n }\r\n\r\n readonly #valueSubject = new Subject<unknown>();\r\n\r\n protected onInputChange($event: unknown): void {\r\n this.#valueSubject.next($event);\r\n }\r\n\r\n protected onSelectionChange(event: MatSelectChange | MatChipListboxChange | MatRadioChange): void {\r\n this.value = event.value;\r\n this.stateChanges.next();\r\n this.onChange(this.value);\r\n }\r\n\r\n protected checkBoxChanged(event: MatCheckboxChange, value: string): void {\r\n const current = Array.isArray(this.value) ? (this.value as string[]) : [];\r\n if (event.checked) {\r\n this.value = [...current, value];\r\n } else {\r\n this.value = current.filter((v) => v !== value);\r\n }\r\n this.stateChanges.next();\r\n this.onChange(this.value);\r\n }\r\n\r\n protected isSelected(value: string): boolean {\r\n if (!this.value || !Array.isArray(this.value)) return false;\r\n return (this.value as string[]).includes(value);\r\n }\r\n\r\n // NOTE(phase-4): `matOptions.options` is `(FormInputBasicOptionInterface | DynamicObjectInterface)[]`\r\n // but templates access `.value`, `.label`, `.username`, `.email` directly. Until the template\r\n // is split per `optionType`, the return shape stays `any[]` to keep strictTemplates passing.\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO(phase-4): split template per matOptions.optionType, then narrow.\r\n protected getSelectOptions(): any[] {\r\n const cfg = this.inputConfig();\r\n if (!cfg?.matOptions) return [];\r\n if (Array.isArray(cfg.matOptions?.options)) {\r\n return cfg.matOptions?.options || [];\r\n }\r\n return [];\r\n }\r\n\r\n protected getAvatar(userName: unknown): string {\r\n return `https://ui-avatars.com/api/?color=EADDFF&font-size=0.36&bold=true&background=random&name=${userName}`;\r\n }\r\n\r\n protected get inputControl(): AbstractControl | null {\r\n return this.ngControl?.control ?? null;\r\n }\r\n}\r\n","@switch (inputConfig().optionSelectType) {\r\n@case (optionSelectTypes.ChipSelect) {\r\n<mat-chip-listbox [multiple]=\"!!inputConfig().allowMultipleSelection\" [value]=\"value\" [disabled]=\"controlDisabled\"\r\n (change)=\"onSelectionChange($event)\" aria-l abel=\"Chip select options\">\r\n @for (option of getSelectOptions(); track $index) {\r\n <mat-chip-option [value]=\"option.value\">{{option.label}}</mat-chip-option>\r\n }\r\n</mat-chip-listbox>\r\n}\r\n@case (optionSelectTypes.RadioButton) {\r\n@if (!!inputConfig().allowMultipleSelection) {\r\n@for (option of getSelectOptions(); track $index) {\r\n<mat-checkbox\r\n [value]=\"option.value\"\r\n [checked]=\"isSelected(option.value)\"\r\n [disabled]=\"controlDisabled\"\r\n (change)=\"checkBoxChanged($event, option.value)\" class=\"example-margin\">\r\n {{option.label}}\r\n</mat-checkbox>\r\n}\r\n} @else {\r\n<mat-radio-group aria-labelledby=\"example-radio-group-label\" class=\"example-radio-group\"\r\n (change)=\"onSelectionChange($event)\" [value]=\"value\" [disabled]=\"controlDisabled\">\r\n @for (option of getSelectOptions(); track $index) {\r\n <mat-radio-button class=\"example-radio-button\" [value]=\"option.value\">{{option.label}}</mat-radio-button>\r\n }\r\n</mat-radio-group>\r\n}\r\n\r\n}\r\n@default {\r\n\r\n<mat-select [multiple]=\"!!inputConfig().allowMultipleSelection\" #sele (selectionChange)=\"onSelectionChange($event)\"\r\n [value]=\"value\" [disabled]=\"controlDisabled\">\r\n\r\n\r\n\r\n @for (option of getSelectOptions(); track $index) {\r\n <mat-option [value]=\"option.value\" [disabled]=\"controlDisabled\">\r\n @switch (inputConfig().matOptions?.optionType) {\r\n @case ('user') {\r\n <mat-list-item style=\"padding: 0px;\">\r\n <img matListItemAvatar [src]=\"getAvatar(option.username)\" />\r\n <div matListItemTitle>{{ option.username | titlecase }}</div>\r\n <div matListItemLine> {{ option.email }}</div>\r\n </mat-list-item>\r\n\r\n }\r\n @default {\r\n {{ option.label }}\r\n }\r\n }\r\n\r\n </mat-option>\r\n }\r\n\r\n</mat-select>\r\n\r\n}\r\n}\r\n","import { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';\r\nimport { FormControl, FormGroup, FormGroupDirective, NgForm, ReactiveFormsModule } from '@angular/forms';\r\nimport { ErrorStateMatcher } from '@angular/material/core';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport type { ITowerStepColumn } from 'ngx-t-forms-types';\r\nimport { TFormInputStatusComponent } from '../../../t-form-input-status/t-form-input-status.component';\r\nimport { SelectInputComponent } from './elements/select-input/select-input.component';\r\nimport { getInputErrorMessage } from '../../../../services/core/t-input-controller/functions/inputErrorMessage';\r\n\r\n/** Wraps a reactive select control inside a `mat-form-field`. */\r\n@Component({\r\n selector: 'lib-select-input-element',\r\n templateUrl: './select-input-element.component.html',\r\n styleUrl: './select-input-element.component.css',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [\r\n ReactiveFormsModule,\r\n MatFormFieldModule,\r\n MatIconModule,\r\n MatButtonModule,\r\n MatTooltipModule,\r\n SelectInputComponent,\r\n TFormInputStatusComponent,\r\n ],\r\n})\r\nexport class SelectInputElementComponent {\r\n readonly inputConfig = input.required<ITowerStepColumn>();\r\n readonly formGroup = input.required<FormGroup>();\r\n readonly reload = output<void>();\r\n\r\n protected optionsSearchWordKeyWord!: string;\r\n\r\n protected readonly errorMessage = computed(() =>\r\n getInputErrorMessage(this.inputConfig(), this.formGroup()),\r\n );\r\n\r\n protected readonly errorStateMatcher: ErrorStateMatcher = {\r\n isErrorState(control: FormControl | null, _form: FormGroupDirective | NgForm | null): boolean {\r\n return !!(control && control.invalid && (control.dirty || control.touched));\r\n },\r\n };\r\n\r\n protected getSelectOptions(): unknown[] {\r\n const cfg = this.inputConfig();\r\n if (!cfg.matOptions) return [];\r\n if (Array.isArray(cfg.matOptions?.options)) {\r\n return cfg.matOptions.options ?? [];\r\n }\r\n return [];\r\n }\r\n\r\n protected selectInputSearchWord(event: { detail: { value: string } }): void {\r\n this.optionsSearchWordKeyWord = event.detail.value.toUpperCase();\r\n }\r\n}\r\n","<ng-container [formGroup]=\"formGroup()\">\r\n @if (inputConfig(); as inputConfig) {\r\n <mat-form-field [appearance]=\"inputConfig.appearance || 'fill'\" subscriptSizing=\"dynamic\">\r\n <mat-label>\r\n {{ inputConfig.label }}\r\n <lib-t-form-input-status [inputConfig]=\"inputConfig\"></lib-t-form-input-status>\r\n </mat-label>\r\n\r\n <lib-select-input\r\n [inputConfig]=\"inputConfig\"\r\n [required]=\"inputConfig.required\"\r\n [formControlName]=\"inputConfig.id\"\r\n ></lib-select-input>\r\n\r\n @if (inputConfig.hintLabel || inputConfig.temporaryHint) {\r\n <mat-hint class=\"inputHint\">\r\n {{ inputConfig.temporaryHint || inputConfig.hintLabel }}\r\n </mat-hint>\r\n }\r\n\r\n <mat-error class=\"oneLineTextEllipsis\" matTooltipClass=\"errorToolTip\">{{ errorMessage() }}</mat-error>\r\n\r\n @if (inputConfig.canReload?.canReload) {\r\n <button\r\n mat-icon-button\r\n style=\"margin-right: 4px;\"\r\n matTooltip=\"Click to refresh this field.\"\r\n class=\"input-sync-button\"\r\n (click)=\"inputConfig.canReload.emit()\"\r\n matSuffix\r\n >\r\n <mat-icon style=\"color: var(--mat-sys-primary)\">sync</mat-icon>\r\n </button>\r\n }\r\n\r\n @if (inputConfig.prefixIcon) {\r\n <mat-icon matPrefix>{{ inputConfig.prefixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.suffixIcon && inputConfig.id !== 'password') {\r\n <mat-icon matSuffix>{{ inputConfig.suffixIcon }}</mat-icon>\r\n }\r\n\r\n @if (inputConfig.prefixText) {\r\n <span matPrefix style=\"top: 0\">{{ inputConfig.prefixText }}</span>\r\n }\r\n @if (inputConfig.suffixText) {\r\n <span matSuffix style=\"padding-left: 5px\">{{ inputConfig.suffixText }}</span>\r\n }\r\n\r\n @if (inputConfig.maxLength && formGroup()) {\r\n <mat-hint align=\"end\">\r\n {{ (formGroup().controls[inputConfig.id]?.value?.length || 0) + '/' + inputConfig.maxLength }}\r\n </mat-hint>\r\n }\r\n </mat-form-field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atIconModule } from '@angular/material/icon';
16
16
  import * as i2$1 from '@angular/material/input';
17
17
  import { MatInputModule } from '@angular/material/input';
18
- import * as i5 from '@angular/material/toolbar';
18
+ import * as i8 from '@angular/material/toolbar';
19
19
  import { MatToolbarModule } from '@angular/material/toolbar';
20
- import * as i5$1 from '@angular/material/tooltip';
20
+ import * as i5 from '@angular/material/tooltip';
21
21
  import { MatTooltipModule } from '@angular/material/tooltip';
22
22
  import { v4 } from 'uuid';
23
- import { E as EmptyStateComponent } from './ngx-t-forms-ngx-t-forms-CIX_hqx4.mjs';
23
+ import { E as EmptyStateComponent } from './ngx-t-forms-ngx-t-forms-CW8jN83w.mjs';
24
24
 
25
25
  let nextUniqueId = 0;
26
26
  /**
@@ -144,7 +144,7 @@ class SelectionOptionsEditorComponent {
144
144
  .join('');
145
145
  }
146
146
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: SelectionOptionsEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
147
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: SelectionOptionsEditorComponent, isStandalone: true, selector: "lib-selection-options-editor", inputs: { errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChanged: "valueChanged" }, host: { properties: { "attr.id": "hostId" }, classAttribute: "lib-selection-options-editor" }, ngImport: i0, template: "@if (optionList().length) {\n <mat-chip-listbox\n class=\"lib-selection-options-editor__listbox\"\n aria-label=\"Option selection\"\n [disabled]=\"disabled()\">\n @for (option of optionList(); track option.id) {\n <mat-chip-option\n class=\"lib-selection-options-editor__chip\"\n color=\"accent\"\n [value]=\"option.value\"\n [selected]=\"inEdit()?.id === option.id\"\n (click)=\"startEdit(option)\">\n {{ option.label }}\n <button\n matChipRemove\n [attr.aria-label]=\"'Remove ' + option.label\"\n (click)=\"$event.stopPropagation(); remove(option)\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-option>\n }\n </mat-chip-listbox>\n} @else if (!isEditing()) {\n <lib-empty-state icon=\"list_alt\" message=\"No options yet\" />\n}\n\n@if (!isEditing()) {\n <mat-toolbar class=\"lib-selection-options-editor__toolbar\">\n <button\n class=\"lib-selection-options-editor__add\"\n mat-stroked-button\n [disabled]=\"disabled()\"\n (click)=\"add()\">\n Add an option <mat-icon>add</mat-icon>\n </button>\n </mat-toolbar>\n} @else {\n <mat-card class=\"lib-selection-options-editor__card\" appearance=\"outlined\">\n <mat-card-header>\n <mat-card-subtitle>{{ inEdit() ? 'Edit Option' : 'Add New Option' }}</mat-card-subtitle>\n </mat-card-header>\n\n <mat-card-content>\n <form [formGroup]=\"form\">\n <mat-form-field\n class=\"lib-selection-options-editor__field\"\n subscriptSizing=\"dynamic\"\n floatLabel=\"always\"\n appearance=\"outline\">\n <mat-label>Display Text</mat-label>\n <input\n type=\"text\"\n matInput\n formControlName=\"label\"\n placeholder=\"Enter option text\"\n (blur)=\"autoFillValueFromLabel()\" />\n <mat-hint>The text users will see and select from the list.</mat-hint>\n </mat-form-field>\n\n <mat-form-field\n class=\"lib-selection-options-editor__field\"\n subscriptSizing=\"dynamic\"\n floatLabel=\"always\"\n appearance=\"outline\">\n <mat-label>Stored Value</mat-label>\n <input type=\"text\" matInput formControlName=\"value\" placeholder=\"Enter data value\" />\n <button\n matSuffix\n mat-icon-button\n matTooltip=\"Toggle auto-creation of value from display text\"\n [color]=\"isAutoCamelCase() ? 'primary' : ''\"\n (click)=\"toggleAutoCamelCase()\">\n <mat-icon>{{ isAutoCamelCase() ? 'drive_file_rename_outline' : 'edit_off' }}</mat-icon>\n </button>\n <mat-hint>The value saved when this option is chosen. (Often an ID or code)</mat-hint>\n </mat-form-field>\n </form>\n </mat-card-content>\n\n <mat-card-actions>\n <button mat-button (click)=\"closeEdit()\">Cancel</button>\n <button mat-flat-button [disabled]=\"form.invalid\" (click)=\"save()\">\n {{ inEdit() ? 'Save Changes' : 'Add Option' }}\n </button>\n </mat-card-actions>\n </mat-card>\n}\n", styles: [":host{display:flex;flex-direction:column;gap:1.5rem}.lib-selection-options-editor__listbox{display:flex;overflow-x:auto}.lib-selection-options-editor__chip{min-width:fit-content}.lib-selection-options-editor__toolbar{padding:0;background:transparent}.lib-selection-options-editor__add{width:100%}.lib-selection-options-editor__card{background:var(--lib-forms-surface);border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);border-radius:var(--lib-forms-radius-lg, 12px);box-shadow:var(--lib-forms-shadow-resting)}.lib-selection-options-editor__field{width:100%;background:var(--lib-forms-surface)}.lib-selection-options-editor__field+.lib-selection-options-editor__field{margin-top:1.5rem}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$1.MatButton, 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] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i1$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i3.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i3.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i3.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i3.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "ngmodule", type: MatChipsModule }, { kind: "component", type: i4.MatChipListbox, selector: "mat-chip-listbox", inputs: ["multiple", "aria-orientation", "selectable", "compareWith", "required", "hideSingleSelectionIndicator", "value"], outputs: ["change"] }, { kind: "component", type: i4.MatChipOption, selector: "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", inputs: ["selectable", "selected"], outputs: ["selectionChange"] }, { kind: "directive", type: i4.MatChipRemove, selector: "[matChipRemove]" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i2$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i5.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: EmptyStateComponent, selector: "lib-empty-state", inputs: ["icon", "message"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
147
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: SelectionOptionsEditorComponent, isStandalone: true, selector: "lib-selection-options-editor", inputs: { errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChanged: "valueChanged" }, host: { properties: { "attr.id": "hostId" }, classAttribute: "lib-selection-options-editor" }, ngImport: i0, template: "@if (optionList().length) {\n <mat-chip-listbox\n class=\"lib-selection-options-editor__listbox\"\n aria-label=\"Option selection\"\n [disabled]=\"disabled()\">\n @for (option of optionList(); track option.id) {\n <mat-chip-option\n class=\"lib-selection-options-editor__chip\"\n color=\"accent\"\n [value]=\"option.value\"\n [selected]=\"inEdit()?.id === option.id\"\n (click)=\"startEdit(option)\">\n {{ option.label }}\n <button\n matChipRemove\n [attr.aria-label]=\"'Remove ' + option.label\"\n (click)=\"$event.stopPropagation(); remove(option)\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-option>\n }\n </mat-chip-listbox>\n} @else if (!isEditing()) {\n <lib-empty-state icon=\"list_alt\" message=\"No options yet\" />\n}\n\n@if (!isEditing()) {\n <mat-toolbar class=\"lib-selection-options-editor__toolbar\">\n <button\n class=\"lib-selection-options-editor__add\"\n mat-stroked-button\n [disabled]=\"disabled()\"\n (click)=\"add()\">\n Add an option <mat-icon>add</mat-icon>\n </button>\n </mat-toolbar>\n} @else {\n <mat-card class=\"lib-selection-options-editor__card\" appearance=\"outlined\">\n <mat-card-header>\n <mat-card-subtitle>{{ inEdit() ? 'Edit Option' : 'Add New Option' }}</mat-card-subtitle>\n </mat-card-header>\n\n <mat-card-content>\n <form [formGroup]=\"form\">\n <mat-form-field\n class=\"lib-selection-options-editor__field\"\n subscriptSizing=\"dynamic\"\n floatLabel=\"always\"\n appearance=\"outline\">\n <mat-label>Display Text</mat-label>\n <input\n type=\"text\"\n matInput\n formControlName=\"label\"\n placeholder=\"Enter option text\"\n (blur)=\"autoFillValueFromLabel()\" />\n <mat-hint>The text users will see and select from the list.</mat-hint>\n </mat-form-field>\n\n <mat-form-field\n class=\"lib-selection-options-editor__field\"\n subscriptSizing=\"dynamic\"\n floatLabel=\"always\"\n appearance=\"outline\">\n <mat-label>Stored Value</mat-label>\n <input type=\"text\" matInput formControlName=\"value\" placeholder=\"Enter data value\" />\n <button\n matSuffix\n mat-icon-button\n matTooltip=\"Toggle auto-creation of value from display text\"\n [color]=\"isAutoCamelCase() ? 'primary' : ''\"\n (click)=\"toggleAutoCamelCase()\">\n <mat-icon>{{ isAutoCamelCase() ? 'drive_file_rename_outline' : 'edit_off' }}</mat-icon>\n </button>\n <mat-hint>The value saved when this option is chosen. (Often an ID or code)</mat-hint>\n </mat-form-field>\n </form>\n </mat-card-content>\n\n <mat-card-actions>\n <button mat-button (click)=\"closeEdit()\">Cancel</button>\n <button mat-flat-button [disabled]=\"form.invalid\" (click)=\"save()\">\n {{ inEdit() ? 'Save Changes' : 'Add Option' }}\n </button>\n </mat-card-actions>\n </mat-card>\n}\n", styles: [":host{display:flex;flex-direction:column;gap:1.5rem}.lib-selection-options-editor__listbox{display:flex;overflow-x:auto}.lib-selection-options-editor__chip{min-width:fit-content}.lib-selection-options-editor__toolbar{padding:0;background:transparent}.lib-selection-options-editor__add{width:100%}.lib-selection-options-editor__card{background:var(--lib-forms-surface);border:1px solid color-mix(in srgb,var(--lib-forms-outline) 15%,transparent);border-radius:var(--lib-forms-radius-lg, 12px);box-shadow:var(--lib-forms-shadow-resting)}.lib-selection-options-editor__field{width:100%;background:var(--lib-forms-surface)}.lib-selection-options-editor__field+.lib-selection-options-editor__field{margin-top:1.5rem}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$1.MatButton, 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] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i1$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i3.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i3.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i3.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i3.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "ngmodule", type: MatChipsModule }, { kind: "component", type: i4.MatChipListbox, selector: "mat-chip-listbox", inputs: ["multiple", "aria-orientation", "selectable", "compareWith", "required", "hideSingleSelectionIndicator", "value"], outputs: ["change"] }, { kind: "component", type: i4.MatChipOption, selector: "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", inputs: ["selectable", "selected"], outputs: ["selectionChange"] }, { kind: "directive", type: i4.MatChipRemove, selector: "[matChipRemove]" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i2$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i8.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: EmptyStateComponent, selector: "lib-empty-state", inputs: ["icon", "message"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
148
148
  }
149
149
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: SelectionOptionsEditorComponent, decorators: [{
150
150
  type: Component,
@@ -166,4 +166,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
166
166
  }], propDecorators: { errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], valueChanged: [{ type: i0.Output, args: ["valueChanged"] }] } });
167
167
 
168
168
  export { SelectionOptionsEditorComponent };
169
- //# sourceMappingURL=ngx-t-forms-selection-options-editor.component-CtUL550G.mjs.map
169
+ //# sourceMappingURL=ngx-t-forms-selection-options-editor.component-BSmmQQo3.mjs.map