udp-stencil-component-library 26.9.0-beta.17 → 26.9.0-beta.19

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 (88) hide show
  1. package/dist/cjs/advanced-search_12.cjs.entry.js +2 -2
  2. package/dist/cjs/ag-grid-base_66.cjs.entry.js +31 -13
  3. package/dist/cjs/ambient-template-grid.cjs.entry.js +2 -2
  4. package/dist/cjs/api-method-instance-grid.cjs.entry.js +4 -4
  5. package/dist/cjs/{apiMethodInstance-LbRDoXDd.js → apiMethodInstance-DTeNcmNq.js} +1 -1
  6. package/dist/cjs/{apiUtils-033JlOLN.js → apiUtils-tzjwn5aw.js} +6 -5
  7. package/dist/cjs/{catalog-store-CPupVSDn.js → catalog-store-CzG8hINB.js} +1 -1
  8. package/dist/cjs/{codecs-D1TNVkp0.js → codecs-Dyka7kpz.js} +1 -1
  9. package/dist/cjs/{configureUdpColumnMods-DbEeOWGD.js → configureUdpColumnMods-Cqxn_OaF.js} +1 -1
  10. package/dist/cjs/{domain-table-snapshot-D95Lu33J.js → domain-table-snapshot-DXs9ceFE.js} +2 -2
  11. package/dist/cjs/{extraFields-COF-QTmY.js → extraFields-CNvT2Qyf.js} +42 -1
  12. package/dist/cjs/{extraFieldsHelper-CCIXIxFx.js → extraFieldsHelper-Clk9u_FW.js} +20 -4
  13. package/dist/cjs/index.cjs.js +17 -5
  14. package/dist/cjs/{lookupHelper-D3aLYJ57.js → lookupHelper-DACjrAcP.js} +1 -1
  15. package/dist/cjs/search-method-grid.cjs.entry.js +25 -16
  16. package/dist/cjs/server-side-grid.cjs.entry.js +4 -4
  17. package/dist/cjs/udp-advanced-search-builder.cjs.entry.js +9 -3
  18. package/dist/cjs/udp-detail-list_10.cjs.entry.js +3 -3
  19. package/dist/cjs/udp-fluent-inline-edit_5.cjs.entry.js +4 -4
  20. package/dist/cjs/udp-import-sheet.cjs.entry.js +1 -1
  21. package/dist/cjs/udp-question-form-builder.cjs.entry.js +2 -2
  22. package/dist/collection/components/advanced-search-builder/udp-advanced-search-builder.js +9 -3
  23. package/dist/collection/components/fluent-ui/dropdown/udp-fluent-dropdown.js +28 -10
  24. package/dist/collection/components/grid/new-grid/helperFunctions/extraFieldsHelper.js +20 -4
  25. package/dist/collection/components/grid/new-grid/search-method-grid.js +21 -12
  26. package/dist/collection/index.js +1 -0
  27. package/dist/collection/store/execution-store.js +6 -5
  28. package/dist/collection/udp-utilities/extra-fields/extraFields.js +36 -1
  29. package/dist/components/apiUtils.js +1 -1
  30. package/dist/components/extraFields.js +1 -1
  31. package/dist/components/index.js +1 -1
  32. package/dist/components/search-method-grid2.js +1 -1
  33. package/dist/components/server-side-grid2.js +1 -1
  34. package/dist/components/udp-advanced-search-builder.js +1 -1
  35. package/dist/components/udp-fluent-dropdown2.js +1 -1
  36. package/dist/docs.json +1 -1
  37. package/dist/esm/advanced-search_12.entry.js +2 -2
  38. package/dist/esm/ag-grid-base_66.entry.js +31 -13
  39. package/dist/esm/ambient-template-grid.entry.js +2 -2
  40. package/dist/esm/api-method-instance-grid.entry.js +4 -4
  41. package/dist/esm/{apiMethodInstance-BfX5f2Wu.js → apiMethodInstance-qaGbXDNr.js} +1 -1
  42. package/dist/esm/{apiUtils-MW5j8THM.js → apiUtils-CXqsYwOQ.js} +6 -5
  43. package/dist/esm/{catalog-store-DqR-_78S.js → catalog-store-BOpo_zaC.js} +1 -1
  44. package/dist/esm/{codecs-DWGCvTkG.js → codecs-BWyrM561.js} +1 -1
  45. package/dist/esm/{configureUdpColumnMods-D6lqcsD_.js → configureUdpColumnMods-bMO0_--H.js} +1 -1
  46. package/dist/esm/{domain-table-snapshot-DrHjhRzq.js → domain-table-snapshot-H3o5mjFB.js} +2 -2
  47. package/dist/esm/{extraFields-BqCe3fVb.js → extraFields-Cnpy_Bm7.js} +38 -2
  48. package/dist/esm/{extraFieldsHelper-CAiyvIlI.js → extraFieldsHelper-CaBMA4HJ.js} +20 -4
  49. package/dist/esm/index.js +6 -5
  50. package/dist/esm/{lookupHelper-w0qQ21jd.js → lookupHelper-D3LSjaES.js} +1 -1
  51. package/dist/esm/search-method-grid.entry.js +25 -16
  52. package/dist/esm/server-side-grid.entry.js +4 -4
  53. package/dist/esm/udp-advanced-search-builder.entry.js +9 -3
  54. package/dist/esm/udp-detail-list_10.entry.js +3 -3
  55. package/dist/esm/udp-fluent-inline-edit_5.entry.js +4 -4
  56. package/dist/esm/udp-import-sheet.entry.js +1 -1
  57. package/dist/esm/udp-question-form-builder.entry.js +2 -2
  58. package/dist/stencil-library/advanced-search_12.entry.js +1 -1
  59. package/dist/stencil-library/ag-grid-base_66.entry.js +1 -1
  60. package/dist/stencil-library/ambient-template-grid.entry.js +1 -1
  61. package/dist/stencil-library/api-method-instance-grid.entry.js +1 -1
  62. package/dist/stencil-library/{apiMethodInstance-BfX5f2Wu.js → apiMethodInstance-qaGbXDNr.js} +1 -1
  63. package/dist/stencil-library/apiUtils-CXqsYwOQ.js +1 -0
  64. package/dist/stencil-library/{catalog-store-DqR-_78S.js → catalog-store-BOpo_zaC.js} +1 -1
  65. package/dist/stencil-library/{codecs-DWGCvTkG.js → codecs-BWyrM561.js} +1 -1
  66. package/dist/stencil-library/{configureUdpColumnMods-D6lqcsD_.js → configureUdpColumnMods-bMO0_--H.js} +1 -1
  67. package/dist/stencil-library/{domain-table-snapshot-DrHjhRzq.js → domain-table-snapshot-H3o5mjFB.js} +1 -1
  68. package/dist/stencil-library/extraFields-Cnpy_Bm7.js +1 -0
  69. package/dist/stencil-library/extraFieldsHelper-CaBMA4HJ.js +1 -0
  70. package/dist/stencil-library/index.esm.js +1 -1
  71. package/dist/stencil-library/{lookupHelper-w0qQ21jd.js → lookupHelper-D3LSjaES.js} +1 -1
  72. package/dist/stencil-library/search-method-grid.entry.js +1 -1
  73. package/dist/stencil-library/server-side-grid.entry.js +1 -1
  74. package/dist/stencil-library/udp-advanced-search-builder.entry.js +1 -1
  75. package/dist/stencil-library/udp-detail-list_10.entry.js +1 -1
  76. package/dist/stencil-library/udp-fluent-inline-edit_5.entry.js +1 -1
  77. package/dist/stencil-library/udp-import-sheet.entry.js +1 -1
  78. package/dist/stencil-library/udp-question-form-builder.entry.js +1 -1
  79. package/dist/types/components/fluent-ui/dropdown/udp-fluent-dropdown.d.ts +12 -1
  80. package/dist/types/components/grid/new-grid/helperFunctions/extraFieldsHelper.d.ts +3 -1
  81. package/dist/types/components/grid/new-grid/search-method-grid.d.ts +5 -0
  82. package/dist/types/index.d.ts +1 -0
  83. package/dist/types/store/execution-store.d.ts +4 -5
  84. package/dist/types/udp-utilities/extra-fields/extraFields.d.ts +42 -0
  85. package/package.json +1 -1
  86. package/dist/stencil-library/apiUtils-MW5j8THM.js +0 -1
  87. package/dist/stencil-library/extraFields-BqCe3fVb.js +0 -1
  88. package/dist/stencil-library/extraFieldsHelper-CAiyvIlI.js +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  var index = require('./index-CZB9dMeB.js');
4
4
  var conversionFunctions = require('./conversionFunctions-B_9y17KE.js');
5
- var catalogStore = require('./catalog-store-CPupVSDn.js');
5
+ var catalogStore = require('./catalog-store-CzG8hINB.js');
6
6
  var Close24 = require('@carbon/icons/es/close/24');
7
7
  var uuid = require('uuid');
8
8
  var Save16 = require('@carbon/icons/es/save/16');
@@ -14,7 +14,7 @@ var Star16 = require('@carbon/icons/es/star/16');
14
14
  var AdvancedQuery16 = require('@carbon/icons/es/ibm-watson--discovery/16');
15
15
  var DataEnrichment16 = require('@carbon/icons/es/idea/16');
16
16
  var Renew16 = require('@carbon/icons/es/renew/16');
17
- require('./apiUtils-033JlOLN.js');
17
+ require('./apiUtils-tzjwn5aw.js');
18
18
  require('lodash-es/isEqual');
19
19
  require('./makeApiCall-CFfg9gI0.js');
20
20
  require('axios');
@@ -2,13 +2,13 @@
2
2
 
3
3
  var index = require('./index-CZB9dMeB.js');
4
4
  var agGridEnterpriseV33 = require('ag-grid-enterprise-v33');
5
- var apiUtils = require('./apiUtils-033JlOLN.js');
5
+ var apiUtils = require('./apiUtils-tzjwn5aw.js');
6
6
  var getCurrentApiCatalogId = require('./getCurrentApiCatalogId-D7xHCEzs.js');
7
7
  var tenantUtils = require('./tenantUtils-BCKSE0vq.js');
8
8
  var searchObject = require('./searchObject-mbqgqdRh.js');
9
- var lookupHelper = require('./lookupHelper-D3aLYJ57.js');
9
+ var lookupHelper = require('./lookupHelper-DACjrAcP.js');
10
10
  var statusRenderer = require('./status-renderer-be4boc5r.js');
11
- var configureUdpColumnMods = require('./configureUdpColumnMods-DbEeOWGD.js');
11
+ var configureUdpColumnMods = require('./configureUdpColumnMods-Cqxn_OaF.js');
12
12
  var valueFormatters = require('./valueFormatters-CUoOypK3.js');
13
13
  var lodashEs = require('lodash-es');
14
14
  var makeApiCall = require('./makeApiCall-CFfg9gI0.js');
@@ -8585,6 +8585,8 @@ const UdpFluentDropdown = class {
8585
8585
  * Single mode: the selected option (or null). Multi mode: array of selected options.
8586
8586
  */
8587
8587
  this.selectionForOverlay = null;
8588
+ /** Set by the value/options watchers; the next render applies the selection to the options it rendered. */
8589
+ this.selectionPending = false;
8588
8590
  this.typeaheadBuffer = '';
8589
8591
  this.handleTogglePopover = (onlyClose) => {
8590
8592
  var _a, _b, _c, _d;
@@ -8733,7 +8735,20 @@ const UdpFluentDropdown = class {
8733
8735
  componentDidLoad() {
8734
8736
  this.patchDropdownShadow();
8735
8737
  this.syncSelectionForOverlay();
8736
- this.valueHandler();
8738
+ this.applySelection();
8739
+ }
8740
+ /**
8741
+ * Applies a value/options change once the render it caused has run. The
8742
+ * watchers fire before that render, so a new options list's
8743
+ * `<fluent-option>`s don't exist yet; syncing from the watcher (even a frame
8744
+ * later) can miss them, leaving a value set before its options arrived with
8745
+ * no selected option and an empty control.
8746
+ */
8747
+ componentDidRender() {
8748
+ if (!this.selectionPending)
8749
+ return;
8750
+ this.selectionPending = false;
8751
+ this.applySelection();
8737
8752
  }
8738
8753
  /**
8739
8754
  * Override fluent-dropdown's hardcoded min-width: 160px on .control (shadow DOM,
@@ -8752,8 +8767,11 @@ const UdpFluentDropdown = class {
8752
8767
  `);
8753
8768
  shadow.adoptedStyleSheets = [...shadow.adoptedStyleSheets, sheet];
8754
8769
  }
8755
- /** Syncs fluent-dropdown selection when value or options change. */
8770
+ /** Syncs fluent-dropdown selection when value or options change, after they render. */
8756
8771
  valueHandler() {
8772
+ this.selectionPending = true;
8773
+ }
8774
+ applySelection() {
8757
8775
  if (!this.dropdownRef)
8758
8776
  return;
8759
8777
  // rAF lets the option list finish rendering before we read selected state.
@@ -8885,15 +8903,15 @@ const UdpFluentDropdown = class {
8885
8903
  const overlayOptions = this.getSelectedOverlayOptions();
8886
8904
  const hasOverlay = overlayOptions.length > 0;
8887
8905
  const mappedAppearance = this.appearance === 'underline' ? 'transparent' : this.appearance;
8888
- return (index.h(index.Host, { key: '58c4799acc96a25e5474da84b101979b884d88d9', class: { 'has-error': hasError } }, index.h("fluent-field", { key: '57fb717379eaf0e23c7e06a351638aeebe82593e', class: {
8906
+ return (index.h(index.Host, { key: '4af2944eac3fbcc8a7ab5a728739db9ac5dfd6c9', class: { 'has-error': hasError } }, index.h("fluent-field", { key: 'a363bf200bdbb04ccb82526ce5273057cf179a39', class: {
8889
8907
  'no-message': !message && !this.includeErrorPadding,
8890
8908
  'no-label': !this.label,
8891
- } }, this.label && (index.h("fluent-label", { key: '2eaf3e70418bf7ca6929f6b79f641e0eefe4e78e', slot: "label", disabled: this.disabled, onClick: () => this.handleTogglePopover(false), style: { paddingTop: '2px', paddingBottom: '2px' } }, this.label, this.popupHint && (index.h("udp-tooltip", { key: 'c1a98aa9eac686f43f837ba4770b5a35f581000e', content: this.popupHint, positioning: "above" }, index.h("udp-fluent-icon", { key: '647e12173d5bf6e33d32dd35a5ed80a6a01c7173', name: "info", size: "xs", class: "popup-hint-icon" }))))), index.h("div", { key: 'add2b58997925547e2025f1eb972dbca68e7c652', slot: "input", class: {
8909
+ } }, this.label && (index.h("fluent-label", { key: '7eeebfc9170e03046fd797c7053a110b7eae38f5', slot: "label", disabled: this.disabled, onClick: () => this.handleTogglePopover(false), style: { paddingTop: '2px', paddingBottom: '2px' } }, this.label, this.popupHint && (index.h("udp-tooltip", { key: 'b60927d3204d20b8d957727baa8c93ec98c2888e', content: this.popupHint, positioning: "above" }, index.h("udp-fluent-icon", { key: 'fe96ed742d2bc568cfe64947a08b5c1ee383a508', name: "info", size: "xs", class: "popup-hint-icon" }))))), index.h("div", { key: '27b94bf86cba1b03e2cf5535bc06ba0eabf9a300', slot: "input", class: {
8892
8910
  'input-wrapper': true,
8893
8911
  'has-overlay': hasOverlay,
8894
- } }, index.h("fluent-dropdown", { key: 'a765b55d7d33cbb274cc774dae28004644498b45', type: "dropdown", name: this.name, appearance: mappedAppearance, size: this.controlSize, required: this.required, disabled: this.disabled, placeholder: this.placeholder, multiple: this.multiple, onChange: this.handleChange, onKeyDown: this.handleKeyDown, onFocusout: () => this.inputBlur.emit(), onFocusin: () => this.inputFocus.emit(),
8912
+ } }, index.h("fluent-dropdown", { key: 'd245ecdd3db862a6138f542394f82ce9d329e959', type: "dropdown", name: this.name, appearance: mappedAppearance, size: this.controlSize, required: this.required, disabled: this.disabled, placeholder: this.placeholder, multiple: this.multiple, onChange: this.handleChange, onKeyDown: this.handleKeyDown, onFocusout: () => this.inputBlur.emit(), onFocusin: () => this.inputFocus.emit(),
8895
8913
  // Suppress native invalid popup
8896
- onInvalid: (e) => e.preventDefault(), ref: el => (this.dropdownRef = el) }, index.h("fluent-listbox", { key: '74e0c77c78d1159d2ee9101f1029bf73fce633e5' }, this.loading && (index.h("fluent-option", { key: 'e7bf23cfc42dbb1445252a1f0bcf0f4e4c1773b6', disabled: true, ref: (el) => el === null || el === void 0 ? void 0 : el.toggleAttribute('disabled', true) }, index.h("span", { key: '9f9ee2a6fc2d0758f0b6dd51ea94fd99ae54438e' }, "Loading..."), index.h("span", { key: '193fe93beb18232046ff809643162a818ad14830', slot: "indicator" }))), !this.loading && ((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) === 0 && (index.h("fluent-option", { key: '46ffff80b6f8159113777fc667e8590c9cc32cbb', disabled: true, value: "empty", ref: (el) => el === null || el === void 0 ? void 0 : el.toggleAttribute('disabled', true) }, "No options available")), !this.loading &&
8914
+ onInvalid: (e) => e.preventDefault(), ref: el => (this.dropdownRef = el) }, index.h("fluent-listbox", { key: 'd0f8a3f1edf511c18937ab394a2a33f35995433b' }, this.loading && (index.h("fluent-option", { key: '4248b325952cfb566291400e99f7e8462e4db642', disabled: true, ref: (el) => el === null || el === void 0 ? void 0 : el.toggleAttribute('disabled', true) }, index.h("span", { key: '9a67a779d650ac68e979b19664593a43009fa82f' }, "Loading..."), index.h("span", { key: '32f0ae502cf34615e49152bef429be5a3c46c1b1', slot: "indicator" }))), !this.loading && ((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) === 0 && (index.h("fluent-option", { key: '7ba997073e25008269c37f3ceaa1053ca6e50cc5', disabled: true, value: "empty", ref: (el) => el === null || el === void 0 ? void 0 : el.toggleAttribute('disabled', true) }, "No options available")), !this.loading &&
8897
8915
  ((_b = this.options) === null || _b === void 0 ? void 0 : _b.length) > 0 &&
8898
8916
  (() => {
8899
8917
  const nodes = [];
@@ -8913,17 +8931,17 @@ const UdpFluentDropdown = class {
8913
8931
  nodes.push(index.h("fluent-option", { key: index$1, disabled: !!optDisabled, value: safeValue, ref: (el) => el === null || el === void 0 ? void 0 : el.toggleAttribute('disabled', !!optDisabled) }, optIcon && this.iconPosition === 'start' && (index.h("span", { slot: "start", class: "option-icon-slot" }, index.h("udp-fluent-icon", { name: optIcon, size: "sm" }))), optLabel, optIcon && this.iconPosition === 'end' && (index.h("span", { class: "option-icon-end", style: { pointerEvents: 'none', marginLeft: '4px' } }, index.h("udp-fluent-icon", { name: optIcon, size: "sm" }))), this.renderBadges(optBadges)));
8914
8932
  });
8915
8933
  return nodes;
8916
- })()), index.h("div", { key: '82c3f8c77d0cca8490b0d095621ed87c06d213e5', slot: "indicator", class: "indicator-wrapper" }, index.h("udp-fluent-icon-button", { key: '15816daefec1e9a81cd1d54ba8c8d924e683a74e', class: {
8934
+ })()), index.h("div", { key: '71aa382d0627d33ade32250abdb524f9f400d1d6', slot: "indicator", class: "indicator-wrapper" }, index.h("udp-fluent-icon-button", { key: 'ae08bacc142cf4309b7c1ea50a2700f9ff25dd2c', class: {
8917
8935
  'clear-button': true,
8918
8936
  'is-visible': this.showClearButton && !this.disabled && this.clearable,
8919
- }, slot: "indicator", iconName: "dismiss", appearance: "transparent", size: "small", onClick: this.handleClear, onMouseDown: e => e.preventDefault(), ariaLabel: "Clear", tabIndex: -1 }), index.h("udp-fluent-icon", { key: 'aae7c4dd3eadcc58b9915e6b452bfacfb3a65887', name: "chevron-down", size: "sm", class: "chevron-down", onClick: (ev) => {
8937
+ }, slot: "indicator", iconName: "dismiss", appearance: "transparent", size: "small", onClick: this.handleClear, onMouseDown: e => e.preventDefault(), ariaLabel: "Clear", tabIndex: -1 }), index.h("udp-fluent-icon", { key: 'b5a1b696d6dff58c26d6935e6ea6961752e7253e', name: "chevron-down", size: "sm", class: "chevron-down", onClick: (ev) => {
8920
8938
  // stopPropagation: fluent's clickHandler would re-open via its `!this.open → showPopover` branch.
8921
8939
  ev.stopPropagation();
8922
8940
  this.handleTogglePopover(false);
8923
- } }))), hasOverlay && (index.h("div", { key: '0a98a93514c4fb5a521f51a35cd5b4c18ff9e838', class: { 'selected-overlay': true, 'multi': overlayOptions.length > 1 }, "aria-hidden": "true" }, overlayOptions.map((opt, i) => (index.h("span", { class: "selected-item", key: this.getOptionValue(opt) || i }, i > 0 && index.h("span", { class: "selected-separator" }, ", "), index.h("span", { class: "selected-label" }, this.resolveProp(opt, this.optionLabel, true)), this.renderBadges(this.getOptionBadges(opt)))))))), index.h("div", { key: '74a81db56e13dfbde829696586b6e7c33b08db29', class: {
8941
+ } }))), hasOverlay && (index.h("div", { key: 'dd009ec183faf48af1a1a7b959b658ba02d900ca', class: { 'selected-overlay': true, 'multi': overlayOptions.length > 1 }, "aria-hidden": "true" }, overlayOptions.map((opt, i) => (index.h("span", { class: "selected-item", key: this.getOptionValue(opt) || i }, i > 0 && index.h("span", { class: "selected-separator" }, ", "), index.h("span", { class: "selected-label" }, this.resolveProp(opt, this.optionLabel, true)), this.renderBadges(this.getOptionBadges(opt)))))))), index.h("div", { key: '7e5b4f4adc04da9bdea3311032e17abe244580f7', class: {
8924
8942
  'message-wrapper': true,
8925
8943
  'includeErrorPadding': this.includeErrorPadding,
8926
- }, slot: "message", onClick: () => this.handleTogglePopover(true) }, index.h("udp-text", { key: '3aca9404e71fa57d5c2f5d0e4b3f7b5079b198cb', variant: "caption1", class: {
8944
+ }, slot: "message", onClick: () => this.handleTogglePopover(true) }, index.h("udp-text", { key: 'afb12736acb544f45fd2e4dd92cfd58279ce9a4f', variant: "caption1", class: {
8927
8945
  message: true,
8928
8946
  error: hasError,
8929
8947
  } }, message)))));
@@ -2,11 +2,11 @@
2
2
 
3
3
  var index = require('./index-CZB9dMeB.js');
4
4
  var immer = require('immer');
5
- var catalogStore = require('./catalog-store-CPupVSDn.js');
5
+ var catalogStore = require('./catalog-store-CzG8hINB.js');
6
6
  var ChooseItem16 = require('@carbon/icons/es/choose-item/16');
7
7
  var Star16 = require('@carbon/icons/es/star/16');
8
8
  var List16 = require('@carbon/icons/es/list/16');
9
- var apiUtils = require('./apiUtils-033JlOLN.js');
9
+ var apiUtils = require('./apiUtils-tzjwn5aw.js');
10
10
  var transformSearchData = require('./transformSearchData-B4bk4Aik.js');
11
11
  var conversionFunctions = require('./conversionFunctions-B_9y17KE.js');
12
12
  var localforage = require('localforage');
@@ -2,18 +2,18 @@
2
2
 
3
3
  var index = require('./index-CZB9dMeB.js');
4
4
  var makeApiCall = require('./makeApiCall-CFfg9gI0.js');
5
- var lookupHelper = require('./lookupHelper-D3aLYJ57.js');
5
+ var lookupHelper = require('./lookupHelper-DACjrAcP.js');
6
6
  var lodashEs = require('lodash-es');
7
- var apiMethodInstance = require('./apiMethodInstance-LbRDoXDd.js');
7
+ var apiMethodInstance = require('./apiMethodInstance-DTeNcmNq.js');
8
8
  var configService = require('./configService-DbfLqId2.js');
9
9
  require('axios');
10
- require('./apiUtils-033JlOLN.js');
10
+ require('./apiUtils-tzjwn5aw.js');
11
11
  require('lodash-es/isEqual');
12
12
  require('./tenantUtils-BCKSE0vq.js');
13
13
  require('./getCurrentApiCatalogId-D7xHCEzs.js');
14
14
  require('./searchObject-mbqgqdRh.js');
15
15
  require('./convertBackendTypeToAgGridType-CZEQIj7A.js');
16
- require('./configureUdpColumnMods-DbEeOWGD.js');
16
+ require('./configureUdpColumnMods-Cqxn_OaF.js');
17
17
 
18
18
  const ApiMethodInstanceGrid = class {
19
19
  constructor(hostRef) {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var convertBackendTypeToAgGridType = require('./convertBackendTypeToAgGridType-CZEQIj7A.js');
4
- var configureUdpColumnMods = require('./configureUdpColumnMods-DbEeOWGD.js');
4
+ var configureUdpColumnMods = require('./configureUdpColumnMods-Cqxn_OaF.js');
5
5
 
6
6
  const camelCaseToTitle = (str) => str.replace(/([a-z])([A-Z])/g, '$1 $2').replace(/^[a-z]/, c => c.toUpperCase());
7
7
  /**
@@ -263,11 +263,10 @@ var _a, _b, _c, _d, _e, _f, _g;
263
263
  * product-side — every operation the emitted UdpQuery runtime dispatches
264
264
  * (UNT-6403): reads (Get=1, GetAll=5, Search=6, GetConfig=7, GetFull=8,
265
265
  * Describe=9, GetData=10, Export=16, GetFileResult=18), writes (Create=2,
266
- * Update=3, Delete=4, Import=15), and the virtual row operations
267
- * (VirtualGet..VirtualDelete=11-14). BulkCreate=17 is dispatcher-ready but
268
- * excluded until PromotedApiMethodView gains a BulkCreate slot the catalog can
269
- * expose. The dispatcher independently rejects anything it does not support
270
- * (501), so this list is a routing optimization, not a security boundary.
266
+ * Update=3, Delete=4, Import=15, BulkCreate=17, BulkDelete=19), and the virtual
267
+ * row operations (VirtualGet..VirtualDelete=11-14). The dispatcher
268
+ * independently rejects anything it does not support (501), so this list is a
269
+ * routing optimization, not a security boundary.
271
270
  */
272
271
  const DIRECT_ELIGIBLE_BASE_OPERATION_TYPE_IDS = [
273
272
  '1',
@@ -286,7 +285,9 @@ const DIRECT_ELIGIBLE_BASE_OPERATION_TYPE_IDS = [
286
285
  '14',
287
286
  '15',
288
287
  '16',
288
+ '17',
289
289
  '18',
290
+ '19',
290
291
  ];
291
292
  // The stencil dist ships several bundle flavors, and a page routinely loads two of
292
293
  // them at once: utility imports through the package root resolve to dist/esm, while
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var apiUtils = require('./apiUtils-033JlOLN.js');
3
+ var apiUtils = require('./apiUtils-tzjwn5aw.js');
4
4
 
5
5
  // src/global/state.ts
6
6
  const { state, onChange } = apiUtils.createStore({
@@ -4,7 +4,7 @@ var types = require('./types-mjOM5U2F.js');
4
4
  var makeApiCall = require('./makeApiCall-CFfg9gI0.js');
5
5
  var tenantUtils = require('./tenantUtils-BCKSE0vq.js');
6
6
  var configService = require('./configService-DbfLqId2.js');
7
- var apiUtils = require('./apiUtils-033JlOLN.js');
7
+ var apiUtils = require('./apiUtils-tzjwn5aw.js');
8
8
  var getCurrentApiCatalogId = require('./getCurrentApiCatalogId-D7xHCEzs.js');
9
9
  var convertBackendTypeToAgGridType = require('./convertBackendTypeToAgGridType-CZEQIj7A.js');
10
10
  var uuid = require('uuid');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var lookupHelper = require('./lookupHelper-D3aLYJ57.js');
3
+ var lookupHelper = require('./lookupHelper-DACjrAcP.js');
4
4
 
5
5
  /**
6
6
  * Finds an existing 'actions' column in an array of ColDefs and applies
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var apiUtils = require('./apiUtils-033JlOLN.js');
3
+ var apiUtils = require('./apiUtils-tzjwn5aw.js');
4
4
  var getCurrentApiCatalogId = require('./getCurrentApiCatalogId-D7xHCEzs.js');
5
5
  var makeApiCall = require('./makeApiCall-CFfg9gI0.js');
6
6
  var SearchBuilder = require('./SearchBuilder-Ca9_ur9o.js');
7
7
  var searchObject = require('./searchObject-mbqgqdRh.js');
8
- var lookupHelper = require('./lookupHelper-D3aLYJ57.js');
8
+ var lookupHelper = require('./lookupHelper-DACjrAcP.js');
9
9
  var configService = require('./configService-DbfLqId2.js');
10
10
 
11
11
  /**
@@ -6,6 +6,7 @@ var configService = require('./configService-DbfLqId2.js');
6
6
  const EXTRA_FIELD_DEFAULT_PREFIX = '_UdpExtraField';
7
7
  /** `udp.ExtraFieldValueType` seed: 1 String / 2 Number / 3 Date / 4 Boolean. */
8
8
  const ExtraFieldValueType = {
9
+ String: 1,
9
10
  Number: 2,
10
11
  Date: 3,
11
12
  Boolean: 4,
@@ -19,7 +20,42 @@ function extraFieldKey(prefix, name) {
19
20
  }
20
21
  async function fetchExtraFieldDefinitions(domainName) {
21
22
  const definitions = (await makeApiCall.makeApiCall('GET', `${configService.ConfigService.productV1ApiUrl}/UdpExtraField/domain/${encodeURIComponent(domainName)}`));
22
- return (definitions !== null && definitions !== void 0 ? definitions : []).filter(d => d.enabled !== false);
23
+ return enabledExtraFieldDefinitions(definitions);
24
+ }
25
+ /** The enabled definitions, in `order`. */
26
+ function enabledExtraFieldDefinitions(definitions) {
27
+ return (definitions !== null && definitions !== void 0 ? definitions : [])
28
+ .filter(d => d.enabled !== false)
29
+ .sort((a, b) => { var _a, _b; return ((_a = a.order) !== null && _a !== void 0 ? _a : 0) - ((_b = b.order) !== null && _b !== void 0 ? _b : 0); });
30
+ }
31
+ /**
32
+ * The enabled definitions applicable to an existing record in its current
33
+ * state (`GET UdpExtraField/applicable?entityBusinessKey=`). The domain is the
34
+ * key's FQN half; an unresolvable key is a 400.
35
+ */
36
+ async function fetchApplicableExtraFields(entityBusinessKey) {
37
+ const definitions = (await makeApiCall.makeApiCall('GET', `${configService.ConfigService.productV1ApiUrl}/UdpExtraField/applicable?entityBusinessKey=${encodeURIComponent(entityBusinessKey)}`));
38
+ return enabledExtraFieldDefinitions(definitions);
39
+ }
40
+ /**
41
+ * The enabled definitions applicable for a column-to-value map
42
+ * (`POST UdpExtraField/domain/{domainName}/applicable`): the create-form case,
43
+ * where the record does not exist yet. An empty map matches only definitions
44
+ * without conditions.
45
+ */
46
+ async function fetchApplicableExtraFieldsForDomain(domainName, conditionValues) {
47
+ const definitions = (await makeApiCall.makeApiCall('POST', `${configService.ConfigService.productV1ApiUrl}/UdpExtraField/domain/${encodeURIComponent(domainName)}/applicable`, conditionValues, true));
48
+ return enabledExtraFieldDefinitions(definitions);
49
+ }
50
+ /**
51
+ * Stores a record's values (`PUT UdpExtraField/values`). The backend validates
52
+ * each one against its definition (enabled, applicable to the record's current
53
+ * state, parses under the value type) and rejects the whole set with a 400
54
+ * whose body names the offending field.
55
+ */
56
+ async function saveExtraFieldValues(entityBusinessKey, values) {
57
+ const rows = (await makeApiCall.makeApiCall('PUT', `${configService.ConfigService.productV1ApiUrl}/UdpExtraField/values`, { entityBusinessKey, values }, true));
58
+ return rows !== null && rows !== void 0 ? rows : [];
23
59
  }
24
60
  /**
25
61
  * The two-request fallback: a record's values with their definitions, for rows
@@ -62,7 +98,12 @@ function extraFieldsToVirtualFieldGroup(definitions, prefix = EXTRA_FIELD_DEFAUL
62
98
 
63
99
  exports.EXTRA_FIELD_DEFAULT_PREFIX = EXTRA_FIELD_DEFAULT_PREFIX;
64
100
  exports.ExtraFieldValueType = ExtraFieldValueType;
101
+ exports.enabledExtraFieldDefinitions = enabledExtraFieldDefinitions;
102
+ exports.extraFieldCatalogType = extraFieldCatalogType;
65
103
  exports.extraFieldKey = extraFieldKey;
66
104
  exports.extraFieldsToVirtualFieldGroup = extraFieldsToVirtualFieldGroup;
105
+ exports.fetchApplicableExtraFields = fetchApplicableExtraFields;
106
+ exports.fetchApplicableExtraFieldsForDomain = fetchApplicableExtraFieldsForDomain;
67
107
  exports.fetchExtraFieldDefinitions = fetchExtraFieldDefinitions;
68
108
  exports.fetchExtraFieldValues = fetchExtraFieldValues;
109
+ exports.saveExtraFieldValues = saveExtraFieldValues;
@@ -1,15 +1,21 @@
1
1
  'use strict';
2
2
 
3
- var extraFields = require('./extraFields-COF-QTmY.js');
3
+ var extraFields = require('./extraFields-CNvT2Qyf.js');
4
4
 
5
5
  /**
6
6
  * Fetches the domain's enabled definitions and builds their column defs.
7
- * `domainName` defaults to `entityName`; a failed fetch logs and yields no columns.
7
+ * `domainName` defaults to `entityName`; a failed fetch logs and yields no
8
+ * columns. Definitions the consumer already holds (`config.definitions`) are
9
+ * used as they are, so the domain is not fetched twice.
8
10
  */
9
11
  async function loadExtraFieldColumnDefs(config, entityName) {
10
12
  var _a;
11
- const domainName = (_a = config === null || config === void 0 ? void 0 : config.domainName) !== null && _a !== void 0 ? _a : entityName;
12
- if (!config || !domainName)
13
+ if (!config)
14
+ return [];
15
+ if (config.definitions)
16
+ return buildExtraFieldColumnDefs(extraFields.enabledExtraFieldDefinitions(config.definitions), config);
17
+ const domainName = (_a = config.domainName) !== null && _a !== void 0 ? _a : entityName;
18
+ if (!domainName)
13
19
  return [];
14
20
  try {
15
21
  return buildExtraFieldColumnDefs(await extraFields.fetchExtraFieldDefinitions(domainName), config);
@@ -41,6 +47,11 @@ function whenColumnsInstalled(api, expectedCount, callback) {
41
47
  };
42
48
  api.addEventListener('gridColumnsChanged', handler);
43
49
  }
50
+ /** The grid's boolean icons (`booleanChip`), keyed by the stored canonical text. */
51
+ const EXTRA_FIELD_BOOLEAN_ICONS = {
52
+ True: { iconName: 'checkMark24', color: 'success' },
53
+ False: { iconName: 'close24', color: 'error' },
54
+ };
44
55
  function buildExtraFieldColumnDefs(definitions, config) {
45
56
  var _a;
46
57
  const prefix = (_a = config.prefix) !== null && _a !== void 0 ? _a : extraFields.EXTRA_FIELD_DEFAULT_PREFIX;
@@ -70,9 +81,14 @@ function buildExtraFieldColumnDefs(definitions, config) {
70
81
  colDef.cellDataType = 'dateString';
71
82
  break;
72
83
  case extraFields.ExtraFieldValueType.Boolean:
84
+ // Values stay the stored text, which the set filter and search send
85
+ // as is; the cell shows them as the grid's boolean check / cross
86
+ // (the `booleanChip` column type), and an unset value as nothing.
73
87
  colDef.cellDataType = 'text';
74
88
  colDef.filter = 'agSetColumnFilter';
75
89
  colDef.filterParams = { values: ['True', 'False'] };
90
+ colDef.cellRenderer = 'iconRenderer';
91
+ colDef.cellRendererParams = { iconMappingConfig: EXTRA_FIELD_BOOLEAN_ICONS };
76
92
  break;
77
93
  default:
78
94
  colDef.cellDataType = 'text';
@@ -2,17 +2,18 @@
2
2
 
3
3
  var formRegistry = require('./form-registry-Cme6U-bl.js');
4
4
  var axios = require('axios');
5
- var lookupHelper = require('./lookupHelper-D3aLYJ57.js');
5
+ var lookupHelper = require('./lookupHelper-DACjrAcP.js');
6
6
  var transformSearchData = require('./transformSearchData-B4bk4Aik.js');
7
- var catalogStore = require('./catalog-store-CPupVSDn.js');
8
- var apiUtils = require('./apiUtils-033JlOLN.js');
7
+ var catalogStore = require('./catalog-store-CzG8hINB.js');
8
+ var apiUtils = require('./apiUtils-tzjwn5aw.js');
9
9
  var createAzureMapsProviders = require('./createAzureMapsProviders-CURScysk.js');
10
10
  var fluentIcons = require('./fluent-icons-Cs6J6uVm.js');
11
11
  var SearchBuilder = require('./SearchBuilder-Ca9_ur9o.js');
12
12
  var searchObject = require('./searchObject-mbqgqdRh.js');
13
13
  var catalogTree = require('./catalogTree-CeNSaV52.js');
14
+ var extraFields = require('./extraFields-CNvT2Qyf.js');
14
15
  var configService = require('./configService-DbfLqId2.js');
15
- var apiMethodInstance = require('./apiMethodInstance-LbRDoXDd.js');
16
+ var apiMethodInstance = require('./apiMethodInstance-DTeNcmNq.js');
16
17
  var themeManager = require('./theme-manager-vLJfQYn8.js');
17
18
  require('./getCurrentApiCatalogId-D7xHCEzs.js');
18
19
  require('lodash-es/isEqual');
@@ -20,7 +21,7 @@ require('./makeApiCall-CFfg9gI0.js');
20
21
  require('./index-CZB9dMeB.js');
21
22
  require('./tenantUtils-BCKSE0vq.js');
22
23
  require('./convertBackendTypeToAgGridType-CZEQIj7A.js');
23
- require('./configureUdpColumnMods-DbEeOWGD.js');
24
+ require('./configureUdpColumnMods-Cqxn_OaF.js');
24
25
  require('@fluentui/web-components');
25
26
  require('@fluentui/tokens');
26
27
 
@@ -291,6 +292,17 @@ exports.buildCatalogTree = catalogTree.buildCatalogTree;
291
292
  exports.buildIndices = catalogTree.buildIndices;
292
293
  exports.findNodeByPath = catalogTree.findNodeByPath;
293
294
  exports.isCatalogModelObject = catalogTree.isCatalogModelObject;
295
+ exports.EXTRA_FIELD_DEFAULT_PREFIX = extraFields.EXTRA_FIELD_DEFAULT_PREFIX;
296
+ exports.ExtraFieldValueType = extraFields.ExtraFieldValueType;
297
+ exports.enabledExtraFieldDefinitions = extraFields.enabledExtraFieldDefinitions;
298
+ exports.extraFieldCatalogType = extraFields.extraFieldCatalogType;
299
+ exports.extraFieldKey = extraFields.extraFieldKey;
300
+ exports.extraFieldsToVirtualFieldGroup = extraFields.extraFieldsToVirtualFieldGroup;
301
+ exports.fetchApplicableExtraFields = extraFields.fetchApplicableExtraFields;
302
+ exports.fetchApplicableExtraFieldsForDomain = extraFields.fetchApplicableExtraFieldsForDomain;
303
+ exports.fetchExtraFieldDefinitions = extraFields.fetchExtraFieldDefinitions;
304
+ exports.fetchExtraFieldValues = extraFields.fetchExtraFieldValues;
305
+ exports.saveExtraFieldValues = extraFields.saveExtraFieldValues;
294
306
  exports.ConfigService = configService.ConfigService;
295
307
  exports.buildColumnDefsFromCatalog = apiMethodInstance.buildColumnDefsFromCatalog;
296
308
  exports.getCurrentThemeMode = themeManager.getCurrentThemeMode;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var apiUtils = require('./apiUtils-033JlOLN.js');
3
+ var apiUtils = require('./apiUtils-tzjwn5aw.js');
4
4
  var getCurrentApiCatalogId = require('./getCurrentApiCatalogId-D7xHCEzs.js');
5
5
  var searchObject = require('./searchObject-mbqgqdRh.js');
6
6
 
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-CZB9dMeB.js');
4
- var apiUtils = require('./apiUtils-033JlOLN.js');
5
- var lookupHelper = require('./lookupHelper-D3aLYJ57.js');
4
+ var apiUtils = require('./apiUtils-tzjwn5aw.js');
5
+ var lookupHelper = require('./lookupHelper-DACjrAcP.js');
6
6
  var makeApiCall = require('./makeApiCall-CFfg9gI0.js');
7
- var extraFieldsHelper = require('./extraFieldsHelper-CCIXIxFx.js');
7
+ var extraFieldsHelper = require('./extraFieldsHelper-Clk9u_FW.js');
8
8
  var configService = require('./configService-DbfLqId2.js');
9
- var extraFields = require('./extraFields-COF-QTmY.js');
9
+ var extraFields = require('./extraFields-CNvT2Qyf.js');
10
10
  var isEqual = require('lodash-es/isEqual');
11
11
  require('./tenantUtils-BCKSE0vq.js');
12
12
  require('./getCurrentApiCatalogId-D7xHCEzs.js');
@@ -216,11 +216,18 @@ const SearchMethodGrid = class {
216
216
  });
217
217
  }
218
218
  }
219
+ /**
220
+ * The base columns with the extra-field columns inserted. Extra columns join
221
+ * existing ones: while the base columns are still empty (a host still
222
+ * loading its catalog) none are shown, so they never appear on their own.
223
+ */
219
224
  mergedColumnDefs() {
220
- var _a;
221
- return this.extraFieldsReady
222
- ? extraFieldsHelper.insertExtraFieldColumns(this.columnDefs, this.extraFieldColumnDefs, (_a = this.extraFields) === null || _a === void 0 ? void 0 : _a.position)
223
- : [];
225
+ var _a, _b, _c;
226
+ if (!this.extraFieldsReady)
227
+ return [];
228
+ if (!((_a = this.columnDefs) === null || _a === void 0 ? void 0 : _a.length))
229
+ return (_b = this.columnDefs) !== null && _b !== void 0 ? _b : [];
230
+ return extraFieldsHelper.insertExtraFieldColumns(this.columnDefs, this.extraFieldColumnDefs, (_c = this.extraFields) === null || _c === void 0 ? void 0 : _c.position);
224
231
  }
225
232
  setDatasource() {
226
233
  var _a;
@@ -246,13 +253,15 @@ const SearchMethodGrid = class {
246
253
  requestUrl: requestUrl,
247
254
  integrationFallbackApiMethodId: integrationFallbackApiMethodId,
248
255
  extraFields: this.extraFields ? { prefix: this.extraFields.prefix } : undefined,
249
- externalSearchObject: customSearchObject ? {
250
- filterElements: customSearchObject.filterElements,
251
- filterGroups: customSearchObject.filterGroups,
252
- logicalSearchOperator: customSearchObject.logicalSearchOperator,
253
- eagerLoad: (_a = customSearchObject.eagerLoad) !== null && _a !== void 0 ? _a : false,
254
- getAll: customSearchObject.getAll,
255
- } : undefined,
256
+ externalSearchObject: customSearchObject
257
+ ? {
258
+ filterElements: customSearchObject.filterElements,
259
+ filterGroups: customSearchObject.filterGroups,
260
+ logicalSearchOperator: customSearchObject.logicalSearchOperator,
261
+ eagerLoad: (_a = customSearchObject.eagerLoad) !== null && _a !== void 0 ? _a : false,
262
+ getAll: customSearchObject.getAll,
263
+ }
264
+ : undefined,
256
265
  });
257
266
  }
258
267
  }
@@ -271,7 +280,7 @@ const SearchMethodGrid = class {
271
280
  }
272
281
  }
273
282
  render() {
274
- return (index.h("server-side-grid", { key: 'da7fa5951b9603432e7edc58386a71e0d265f08f', onGridReady: e => this.handleGridReady(e), dataSource: this.dataSource, gridFunctions: this.gridFunctions, columnDefs: this.mergedColumnDefs(), gridOptions: this.gridOptions, gridHeaderConfig: this.gridHeaderConfig, gridId: this.gridId, entityName: this.entityName, gridHeight: this.gridHeight, gridApiCallback: this.gridApiCallback }));
283
+ return (index.h("server-side-grid", { key: '7ebf7ba23217830a5e42766c94481fa2a9645cae', onGridReady: e => this.handleGridReady(e), dataSource: this.dataSource, gridFunctions: this.gridFunctions, columnDefs: this.mergedColumnDefs(), gridOptions: this.gridOptions, gridHeaderConfig: this.gridHeaderConfig, gridId: this.gridId, entityName: this.entityName, gridHeight: this.gridHeight, gridApiCallback: this.gridApiCallback }));
275
284
  }
276
285
  static get watchers() { return {
277
286
  "searchMethodConfig": [{
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-CZB9dMeB.js');
4
- var extraFieldsHelper = require('./extraFieldsHelper-CCIXIxFx.js');
5
- var lookupHelper = require('./lookupHelper-D3aLYJ57.js');
6
- var extraFields = require('./extraFields-COF-QTmY.js');
7
- require('./apiUtils-033JlOLN.js');
4
+ var extraFieldsHelper = require('./extraFieldsHelper-Clk9u_FW.js');
5
+ var lookupHelper = require('./lookupHelper-DACjrAcP.js');
6
+ var extraFields = require('./extraFields-CNvT2Qyf.js');
7
+ require('./apiUtils-tzjwn5aw.js');
8
8
  require('lodash-es/isEqual');
9
9
  require('./makeApiCall-CFfg9gI0.js');
10
10
  require('axios');
@@ -5,7 +5,7 @@ var searchObject = require('./searchObject-mbqgqdRh.js');
5
5
  var entityUtilities = require('./entityUtilities-DX7NkEg2.js');
6
6
  var udpOperatorHelper = require('./udpOperatorHelper-NG6jnF8B.js');
7
7
  var catalogTree = require('./catalogTree-CeNSaV52.js');
8
- var extraFields = require('./extraFields-COF-QTmY.js');
8
+ var extraFields = require('./extraFields-CNvT2Qyf.js');
9
9
  require('./makeApiCall-CFfg9gI0.js');
10
10
  require('axios');
11
11
  require('./configService-DbfLqId2.js');
@@ -859,7 +859,11 @@ const UdpAdvancedSearchBuilder = class {
859
859
  // have landed after the last build, and `associations` match case-insensitively
860
860
  // while the graft needs the tree's canonical path.
861
861
  this.buildFieldTree();
862
- const targets = [{ path: '', domainName }];
862
+ // The root's definitions may already be in hand (a grid that decided its
863
+ // opt-in from them); only association domains are then fetched.
864
+ const targets = [
865
+ { path: '', domainName, definitions: this.extraFields.definitions },
866
+ ];
863
867
  for (const route of (_d = this.associations) !== null && _d !== void 0 ? _d : []) {
864
868
  const resolved = this.resolveAssociationPath(route);
865
869
  const entity = (_e = resolved === null || resolved === void 0 ? void 0 : resolved.node.displayName) !== null && _e !== void 0 ? _e : resolved === null || resolved === void 0 ? void 0 : resolved.node.name;
@@ -870,7 +874,9 @@ const UdpAdvancedSearchBuilder = class {
870
874
  try {
871
875
  const groups = await Promise.all(targets.map(async (target) => {
872
876
  try {
873
- const definitions = await extraFields.fetchExtraFieldDefinitions(target.domainName);
877
+ const definitions = target.definitions
878
+ ? extraFields.enabledExtraFieldDefinitions(target.definitions)
879
+ : await extraFields.fetchExtraFieldDefinitions(target.domainName);
874
880
  return extraFields.extraFieldsToVirtualFieldGroup(definitions, prefix, target.path);
875
881
  }
876
882
  catch (e) {
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-CZB9dMeB.js');
4
- var domainTableSnapshot = require('./domain-table-snapshot-D95Lu33J.js');
5
- var lookupHelper = require('./lookupHelper-D3aLYJ57.js');
4
+ var domainTableSnapshot = require('./domain-table-snapshot-DXs9ceFE.js');
5
+ var lookupHelper = require('./lookupHelper-DACjrAcP.js');
6
6
  var valueFormatters = require('./valueFormatters-CUoOypK3.js');
7
7
  require('@fluentui/web-components/field.js');
8
8
  require('@fluentui/web-components/label.js');
@@ -19,7 +19,7 @@ require('@fluentui/web-components/option.js');
19
19
  require('@fluentui/web-components/text-input.js');
20
20
  var SignaturePad = require('signature_pad');
21
21
  var types = require('./types-mjOM5U2F.js');
22
- require('./apiUtils-033JlOLN.js');
22
+ require('./apiUtils-tzjwn5aw.js');
23
23
  require('lodash-es/isEqual');
24
24
  require('./makeApiCall-CFfg9gI0.js');
25
25
  require('axios');
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-CZB9dMeB.js');
4
- var codecs = require('./codecs-D1TNVkp0.js');
4
+ var codecs = require('./codecs-Dyka7kpz.js');
5
5
  var types = require('./types-mjOM5U2F.js');
6
6
  var Sortable = require('sortablejs');
7
7
  var configService = require('./configService-DbfLqId2.js');
@@ -9,17 +9,17 @@ var createAzureMapsProviders = require('./createAzureMapsProviders-CURScysk.js')
9
9
  var udpDriveUtils = require('./udp-drive-utils-BuTLI35n.js');
10
10
  var formRegistry = require('./form-registry-Cme6U-bl.js');
11
11
  var uuid = require('uuid');
12
- var domainTableSnapshot = require('./domain-table-snapshot-D95Lu33J.js');
12
+ var domainTableSnapshot = require('./domain-table-snapshot-DXs9ceFE.js');
13
13
  var makeApiCall = require('./makeApiCall-CFfg9gI0.js');
14
14
  require('./tenantUtils-BCKSE0vq.js');
15
- require('./apiUtils-033JlOLN.js');
15
+ require('./apiUtils-tzjwn5aw.js');
16
16
  require('lodash-es/isEqual');
17
17
  require('./getCurrentApiCatalogId-D7xHCEzs.js');
18
18
  require('./convertBackendTypeToAgGridType-CZEQIj7A.js');
19
19
  require('axios');
20
20
  require('./SearchBuilder-Ca9_ur9o.js');
21
21
  require('./searchObject-mbqgqdRh.js');
22
- require('./lookupHelper-D3aLYJ57.js');
22
+ require('./lookupHelper-DACjrAcP.js');
23
23
 
24
24
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
25
25
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-CZB9dMeB.js');
4
- var apiUtils = require('./apiUtils-033JlOLN.js');
4
+ var apiUtils = require('./apiUtils-tzjwn5aw.js');
5
5
  var getCurrentApiCatalogId = require('./getCurrentApiCatalogId-D7xHCEzs.js');
6
6
  var entityUtilities = require('./entityUtilities-DX7NkEg2.js');
7
7
  require('lodash-es/isEqual');