ngx-t-forms 2.0.35 → 2.0.37
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.
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-hDWV_H2E.mjs → ngx-t-forms-auto-complete-input-element.component-D_l5sbNh.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-auto-complete-input-element.component-hDWV_H2E.mjs.map → ngx-t-forms-auto-complete-input-element.component-D_l5sbNh.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-BDWHCfgN.mjs → ngx-t-forms-basic-input-input-element.component-fJIsRm0v.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-basic-input-input-element.component-BDWHCfgN.mjs.map → ngx-t-forms-basic-input-input-element.component-fJIsRm0v.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-C_jwUGqr.mjs → ngx-t-forms-calculated-field-rules.component-B8Do3h4B.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-calculated-field-rules.component-C_jwUGqr.mjs.map → ngx-t-forms-calculated-field-rules.component-B8Do3h4B.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-BIoML988.mjs → ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-chip-options-creator-editor.component-BIoML988.mjs.map → ngx-t-forms-chip-options-creator-editor.component-L1kPy15K.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-D2tkeGrw.mjs → ngx-t-forms-config-mscoa-additional-inputs.component-CU6Cp-oK.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-config-mscoa-additional-inputs.component-D2tkeGrw.mjs.map → ngx-t-forms-config-mscoa-additional-inputs.component-CU6Cp-oK.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-data-source-picker.component-DHNyMfu5.mjs → ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs} +6 -6
- package/fesm2022/{ngx-t-forms-data-source-picker.component-DHNyMfu5.mjs.map → ngx-t-forms-data-source-picker.component-r7OGAsxo.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DJnHqSfk.mjs → ngx-t-forms-date-picker-input-element.component-DsjcLQ5A.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-date-picker-input-element.component-DJnHqSfk.mjs.map → ngx-t-forms-date-picker-input-element.component-DsjcLQ5A.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-Iw5Sou7u.mjs → ngx-t-forms-date-range-picker-input-element.component-B8V7IpoK.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-date-range-picker-input-element.component-Iw5Sou7u.mjs.map → ngx-t-forms-date-range-picker-input-element.component-B8V7IpoK.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-zM7mpZxt.mjs → ngx-t-forms-document-list-label-config-editor.component-hKJqVYUY.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-document-list-label-config-editor.component-zM7mpZxt.mjs.map → ngx-t-forms-document-list-label-config-editor.component-hKJqVYUY.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-document-picker.component-j7-XiDnt.mjs → ngx-t-forms-document-picker.component-f-hz6Vef.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-document-picker.component-j7-XiDnt.mjs.map → ngx-t-forms-document-picker.component-f-hz6Vef.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-editor-input-element.component-CjY8h93n.mjs → ngx-t-forms-editor-input-element.component-D38U94oj.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-editor-input-element.component-CjY8h93n.mjs.map → ngx-t-forms-editor-input-element.component-D38U94oj.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-editor-js-input.component-CB8iaZ8o.mjs → ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-editor-js-input.component-CB8iaZ8o.mjs.map → ngx-t-forms-editor-js-input.component-D_Jq7sfY.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-C8a1gMMz.mjs → ngx-t-forms-file-upload-input-element.component-_RBYRgn9.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-file-upload-input-element.component-C8a1gMMz.mjs.map → ngx-t-forms-file-upload-input-element.component-_RBYRgn9.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-input-selector.component-vPJ9YksN.mjs → ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-input-selector.component-vPJ9YksN.mjs.map → ngx-t-forms-form-input-selector.component-CUwK3DqG.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-json-view.component-DxvnpZdR.mjs → ngx-t-forms-form-json-view.component-D9rU9vxT.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-form-json-view.component-DxvnpZdR.mjs.map → ngx-t-forms-form-json-view.component-D9rU9vxT.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-_cQl_olU.mjs → ngx-t-forms-form-section-stepper.component-CqCL3Bnc.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-form-section-stepper.component-_cQl_olU.mjs.map → ngx-t-forms-form-section-stepper.component-CqCL3Bnc.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BaBBPuXH.mjs → ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-forms-builder-menu.component-BaBBPuXH.mjs.map → ngx-t-forms-forms-builder-menu.component-wmRDJU4P.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-geo-location.component-BPqEkYIg.mjs → ngx-t-forms-geo-location.component-CMbBSXe0.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-geo-location.component-BPqEkYIg.mjs.map → ngx-t-forms-geo-location.component-CMbBSXe0.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-CZojZh_T.mjs → ngx-t-forms-image-capture-input-element.component-Cbq8OYk7.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-image-capture-input-element.component-CZojZh_T.mjs.map → ngx-t-forms-image-capture-input-element.component-Cbq8OYk7.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-index-BI5sb1Lx.mjs → ngx-t-forms-index-CPNvE4PP.mjs} +2 -2
- package/fesm2022/ngx-t-forms-index-CPNvE4PP.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-input-custom.component-C-gshpIM.mjs → ngx-t-forms-input-custom.component-uNVdF9aA.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-input-custom.component-C-gshpIM.mjs.map → ngx-t-forms-input-custom.component-uNVdF9aA.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-input-editor.component-CfaTar-x.mjs → ngx-t-forms-input-editor.component-BWoKhlI3.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-input-editor.component-CfaTar-x.mjs.map → ngx-t-forms-input-editor.component-BWoKhlI3.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-B8ubWvEz.mjs → ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-map-mat-options-keys-B8ubWvEz.mjs.map → ngx-t-forms-map-mat-options-keys-D0SGS9xQ.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-CT3wnaz8.mjs → ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mat-chip-list-editor.component-CT3wnaz8.mjs.map → ngx-t-forms-mat-chip-list-editor.component-Cu-KiAeY.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CSQ_Qtef.mjs → ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-missing-form-configs.component-CSQ_Qtef.mjs.map → ngx-t-forms-missing-form-configs.component-CxF6Ljjf.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-Ovz5PFIe.mjs → ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mscoa-chart-toolbar.component-Ovz5PFIe.mjs.map → ngx-t-forms-mscoa-chart-toolbar.component-BqT5Z8SM.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-ByR5fNu5.mjs → ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-mscoa-segment-config.component-ByR5fNu5.mjs.map → ngx-t-forms-mscoa-segment-config.component-BT-dM_5C.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-DtXYH3Gb.mjs → ngx-t-forms-multiple-input-input-element.component-DXAh2Mbm.mjs} +4 -4
- package/fesm2022/{ngx-t-forms-multiple-input-input-element.component-DtXYH3Gb.mjs.map → ngx-t-forms-multiple-input-input-element.component-DXAh2Mbm.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-ngx-t-forms-CW8jN83w.mjs → ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs} +1044 -174
- package/fesm2022/ngx-t-forms-ngx-t-forms-DQ_h-jPF.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-paginated-selection-table-CWepPKmn.mjs → ngx-t-forms-paginated-selection-table-DHwojPhn.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-paginated-selection-table-CWepPKmn.mjs.map → ngx-t-forms-paginated-selection-table-DHwojPhn.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs +203 -0
- package/fesm2022/ngx-t-forms-payload-template-editor.component-CAXdFu4E.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-1EuDUOtI.mjs → ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-pipeline-generator.component-1EuDUOtI.mjs.map → ngx-t-forms-pipeline-generator.component-BJQ-KnmU.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-record-list-manager.component-C-qKvSVR.mjs → ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-record-list-manager.component-C-qKvSVR.mjs.map → ngx-t-forms-record-list-manager.component-BoD3S_7u.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-required-inputs.component-D5M9c-1i.mjs → ngx-t-forms-required-inputs.component-C-E3fQu6.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-required-inputs.component-D5M9c-1i.mjs.map → ngx-t-forms-required-inputs.component-C-E3fQu6.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-rest-api-call-setup.component-CCz3c0X_.mjs → ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs} +59 -13
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-D3sa7sNg.mjs.map +1 -0
- package/fesm2022/{ngx-t-forms-section-report.component-BypN3AWY.mjs → ngx-t-forms-section-report.component-D6jakGa5.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-section-report.component-BypN3AWY.mjs.map → ngx-t-forms-section-report.component-D6jakGa5.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-select-input-element.component-DNBZVxhD.mjs → ngx-t-forms-select-input-element.component-CwqIck0h.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-select-input-element.component-DNBZVxhD.mjs.map → ngx-t-forms-select-input-element.component-CwqIck0h.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-BSmmQQo3.mjs → ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-selection-options-editor.component-BSmmQQo3.mjs.map → ngx-t-forms-selection-options-editor.component-Coj9gnrq.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-BEcNjLGC.mjs → ngx-t-forms-textarea-input-element.component-D4dEi8Vs.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-textarea-input-element.component-BEcNjLGC.mjs.map → ngx-t-forms-textarea-input-element.component-D4dEi8Vs.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-Cn_VOOEu.mjs → ngx-t-forms-toggle-input-element.component-BZiTFB0j.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-toggle-input-element.component-Cn_VOOEu.mjs.map → ngx-t-forms-toggle-input-element.component-BZiTFB0j.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-validators-config.component-DdKLxOr9.mjs → ngx-t-forms-validators-config.component-B3K9nLxx.mjs} +2 -2
- package/fesm2022/{ngx-t-forms-validators-config.component-DdKLxOr9.mjs.map → ngx-t-forms-validators-config.component-B3K9nLxx.mjs.map} +1 -1
- package/fesm2022/{ngx-t-forms-workflow-adjudication.component-DB4arTNG.mjs → ngx-t-forms-workflow-adjudication.component-DD6Fhx06.mjs} +3 -3
- package/fesm2022/{ngx-t-forms-workflow-adjudication.component-DB4arTNG.mjs.map → ngx-t-forms-workflow-adjudication.component-DD6Fhx06.mjs.map} +1 -1
- package/fesm2022/ngx-t-forms.mjs +1 -1
- package/package.json +2 -2
- package/styles/_json-editor-syntax.scss +16 -0
- package/types/ngx-t-forms.d.ts +11 -12
- package/fesm2022/ngx-t-forms-index-BI5sb1Lx.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-ngx-t-forms-CW8jN83w.mjs.map +0 -1
- package/fesm2022/ngx-t-forms-rest-api-call-setup.component-CCz3c0X_.mjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
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;;AAEjC,YAAA,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;AACf,YAAA,OAAO,IAAI;QACb;QACA,MAAM,gBAAgB,GAAG,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC;AAC1D,QAAA,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE;;AAE/B,YAAA,IAAI,CAAC,IAAI,CAA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