base-screen 0.4.0 → 0.4.2

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 (368) hide show
  1. package/README.md +5 -2
  2. package/dist/_internal/contracts/diagnostics/material-error.d.ts +1 -1
  3. package/dist/_internal/contracts/diagnostics/material-error.js +1 -1
  4. package/dist/_internal/contracts/document/blueprint-graph.d.ts +3 -3
  5. package/dist/_internal/contracts/document/blueprint-graph.js +4 -4
  6. package/dist/_internal/contracts/document/component-states.d.ts +1 -1
  7. package/dist/_internal/contracts/document/component-states.js +1 -1
  8. package/dist/_internal/contracts/document/image-url.js +1 -1
  9. package/dist/_internal/contracts/document/json-schema.js +1 -1
  10. package/dist/_internal/contracts/document/limits.d.ts +5 -5
  11. package/dist/_internal/contracts/document/limits.js +5 -5
  12. package/dist/_internal/contracts/document/references.js +3 -3
  13. package/dist/_internal/contracts/document/schema.d.ts +2 -2
  14. package/dist/_internal/contracts/document/schema.js +3 -3
  15. package/dist/_internal/contracts/document/sub-canvas.d.ts +2 -2
  16. package/dist/_internal/contracts/document/sub-canvas.js +2 -2
  17. package/dist/_internal/contracts/document/theme.d.ts +2 -2
  18. package/dist/_internal/contracts/document/theme.js +2 -2
  19. package/dist/_internal/contracts/document/validate-blueprint.d.ts +1 -1
  20. package/dist/_internal/contracts/document/validate-blueprint.js +1 -1
  21. package/dist/_internal/contracts/document/validate-component.js +2 -2
  22. package/dist/_internal/contracts/document/validate-data-source.js +2 -2
  23. package/dist/_internal/contracts/document/validate-sub-canvas.d.ts +1 -1
  24. package/dist/_internal/contracts/document/validate-sub-canvas.js +1 -1
  25. package/dist/_internal/contracts/document/validate-value-ref.js +1 -1
  26. package/dist/_internal/contracts/index.d.ts +1 -1
  27. package/dist/_internal/contracts/migration/blueprint-graph-migration.d.ts +1 -1
  28. package/dist/_internal/contracts/migration/migrate-document.js +2 -2
  29. package/dist/_internal/contracts/push/delivery.d.ts +1 -1
  30. package/dist/_internal/contracts/push/delivery.js +1 -1
  31. package/dist/_internal/contracts/push/level-scale.d.ts +1 -1
  32. package/dist/_internal/contracts/push/level-scale.js +1 -1
  33. package/dist/_internal/contracts/types/document.d.ts +19 -19
  34. package/dist/_internal/contracts/types/execution.d.ts +3 -3
  35. package/dist/_internal/contracts/types/host.d.ts +23 -5
  36. package/dist/_internal/contracts/types/host.js +1 -1
  37. package/dist/_internal/contracts/types/push.d.ts +3 -3
  38. package/dist/_internal/contracts/types/variable.d.ts +3 -3
  39. package/dist/_internal/contracts/variable/parse.js +5 -1
  40. package/dist/_internal/core/blueprint/runtime-compile.d.ts +1 -1
  41. package/dist/_internal/core/blueprint/runtime-compile.js +1 -1
  42. package/dist/_internal/core/blueprint/runtime-dispatch.js +1 -1
  43. package/dist/_internal/core/blueprint/runtime-simulate.d.ts +1 -1
  44. package/dist/_internal/core/blueprint/runtime-simulate.js +1 -1
  45. package/dist/_internal/core/blueprint/runtime-types.d.ts +4 -4
  46. package/dist/_internal/core/commands/apply-collection-commands.d.ts +1 -1
  47. package/dist/_internal/core/commands/apply-collection-commands.js +1 -1
  48. package/dist/_internal/core/commands/apply-component-commands.d.ts +1 -1
  49. package/dist/_internal/core/commands/apply-component-commands.js +2 -2
  50. package/dist/_internal/core/commands/apply.js +2 -2
  51. package/dist/_internal/core/commands/types.d.ts +5 -5
  52. package/dist/_internal/core/data/data-candidates.d.ts +1 -1
  53. package/dist/_internal/core/data/data-candidates.js +1 -1
  54. package/dist/_internal/core/data/data-source-dependents.d.ts +1 -1
  55. package/dist/_internal/core/data/data-source-dependents.js +1 -1
  56. package/dist/_internal/core/data/dataset-profile.d.ts +2 -2
  57. package/dist/_internal/core/data/dataset-profile.js +2 -2
  58. package/dist/_internal/core/data/host-dataset.d.ts +2 -2
  59. package/dist/_internal/core/data/host-dataset.js +2 -2
  60. package/dist/_internal/core/data/sample-values.d.ts +1 -1
  61. package/dist/_internal/core/data/sample-values.js +1 -1
  62. package/dist/_internal/core/data/value-ref.d.ts +2 -2
  63. package/dist/_internal/core/data/value-ref.js +1 -1
  64. package/dist/_internal/core/state/state-preset.d.ts +1 -1
  65. package/dist/_internal/core/validation/layout-audit.d.ts +2 -2
  66. package/dist/_internal/core/validation/layout-audit.js +1 -1
  67. package/dist/_internal/core/validation/legibility.js +1 -1
  68. package/dist/_internal/core/validation/validate-semantics.js +1 -1
  69. package/dist/_internal/engine/browser/controllers/blueprint/designer-blueprint-canvas-bridge.d.ts +1 -1
  70. package/dist/_internal/engine/browser/controllers/dataset/designer-data-source-authoring.d.ts +1 -1
  71. package/dist/_internal/engine/browser/controllers/dataset/designer-dataset-catalog-controller.d.ts +21 -0
  72. package/dist/_internal/engine/browser/controllers/dataset/designer-dataset-controller-context.d.ts +7 -2
  73. package/dist/_internal/engine/browser/controllers/dataset/designer-dataset-draft-controller.d.ts +1 -1
  74. package/dist/_internal/engine/browser/controllers/dataset/designer-dataset-effective-value.d.ts +1 -1
  75. package/dist/_internal/engine/browser/controllers/dataset/designer-dataset-surface-controller.d.ts +1 -1
  76. package/dist/_internal/engine/browser/controllers/dataset/designer-update-policy-authoring.d.ts +1 -1
  77. package/dist/_internal/engine/browser/controllers/designer-artboard-controller.d.ts +1 -1
  78. package/dist/_internal/engine/browser/controllers/designer-canvas-runtime-controller.d.ts +2 -2
  79. package/dist/_internal/engine/browser/controllers/designer-change-controller.d.ts +3 -3
  80. package/dist/_internal/engine/browser/controllers/designer-command-palette-controller.d.ts +1 -1
  81. package/dist/_internal/engine/browser/controllers/designer-intent-controller.d.ts +5 -0
  82. package/dist/_internal/engine/browser/controllers/designer-page-preview-controller.d.ts +1 -1
  83. package/dist/_internal/engine/browser/controllers/designer-popup-preview-controller.d.ts +1 -1
  84. package/dist/_internal/engine/browser/controllers/designer-reference-layer-controller.d.ts +1 -1
  85. package/dist/_internal/engine/browser/controllers/designer-text-edit-controller.d.ts +2 -2
  86. package/dist/_internal/engine/browser/controllers/designer-viewport-controller.d.ts +7 -1
  87. package/dist/_internal/engine/browser/controllers/gesture/designer-drag-gesture.d.ts +6 -1
  88. package/dist/_internal/engine/browser/controllers/gesture/designer-gesture-callbacks.d.ts +1 -1
  89. package/dist/_internal/engine/browser/controllers/panel/designer-component-states-controller.d.ts +1 -1
  90. package/dist/_internal/engine/browser/controllers/panel/designer-panel-controller-callbacks.d.ts +6 -6
  91. package/dist/_internal/engine/browser/controllers/panel/designer-panel-property-controller.d.ts +7 -0
  92. package/dist/_internal/engine/browser/controllers/variables/designer-variable-catalog-controller.d.ts +9 -1
  93. package/dist/_internal/engine/browser/controllers/variables/designer-variable-editor-controller.d.ts +6 -1
  94. package/dist/_internal/engine/browser/controllers/variables/designer-variables-controller.d.ts +16 -1
  95. package/dist/_internal/engine/browser/controllers/workbench/designer-workbench-controller.d.ts +2 -0
  96. package/dist/_internal/engine/browser/controllers/workbench/designer-workbench-tabs-controller.d.ts +2 -0
  97. package/dist/_internal/engine/browser/dom/blueprint/designer-blueprint-inspector-configuration.d.ts +1 -1
  98. package/dist/_internal/engine/browser/dom/change/designer-change-dom.d.ts +1 -1
  99. package/dist/_internal/engine/browser/dom/color/designer-color-palette-model.d.ts +3 -3
  100. package/dist/_internal/engine/browser/dom/color/designer-color-palette-types.d.ts +2 -2
  101. package/dist/_internal/engine/browser/dom/color/designer-color-theme-slots.d.ts +1 -1
  102. package/dist/_internal/engine/browser/dom/dataset/designer-data-group-dom.d.ts +1 -1
  103. package/dist/_internal/engine/browser/dom/dataset/designer-data-panel-notice.d.ts +1 -1
  104. package/dist/_internal/engine/browser/dom/dataset/designer-data-state.d.ts +1 -1
  105. package/dist/_internal/engine/browser/dom/dataset/designer-dataset-authoring-dom.d.ts +1 -1
  106. package/dist/_internal/engine/browser/dom/dataset/designer-dataset-catalog-dom.d.ts +1 -1
  107. package/dist/_internal/engine/browser/dom/dataset/designer-dataset-sections.d.ts +1 -1
  108. package/dist/_internal/engine/browser/dom/dataset/designer-dataset-types.d.ts +11 -4
  109. package/dist/_internal/engine/browser/dom/descriptor/designer-descriptor-control-dom.d.ts +1 -1
  110. package/dist/_internal/engine/browser/dom/descriptor/designer-descriptor-model.d.ts +1 -1
  111. package/dist/_internal/engine/browser/dom/designer-field-primitives.d.ts +1 -1
  112. package/dist/_internal/engine/browser/dom/designer-icons.d.ts +2 -0
  113. package/dist/_internal/engine/browser/dom/designer-text-edit-dom.d.ts +2 -2
  114. package/dist/_internal/engine/browser/dom/designer-variable-inspector-dom.d.ts +7 -0
  115. package/dist/_internal/engine/browser/dom/designer-variables-dom.d.ts +5 -1
  116. package/dist/_internal/engine/browser/dom/designer-variables-editor-dom.d.ts +30 -1
  117. package/dist/_internal/engine/browser/dom/designer-variables-toolbar-dom.d.ts +4 -2
  118. package/dist/_internal/engine/browser/dom/intent/designer-intent-reference-picker-dom.d.ts +2 -0
  119. package/dist/_internal/engine/browser/dom/material-library/designer-material-library-dom.d.ts +1 -1
  120. package/dist/_internal/engine/browser/dom/menu/designer-menu-model.d.ts +3 -3
  121. package/dist/_internal/engine/browser/dom/menu/designer-plugin-command-menu.d.ts +5 -2
  122. package/dist/_internal/engine/browser/dom/panel/designer-canvas-transactions.d.ts +1 -1
  123. package/dist/_internal/engine/browser/dom/panel/designer-component-states-dom.d.ts +2 -2
  124. package/dist/_internal/engine/browser/dom/panel/designer-multi-selection-dom.d.ts +1 -1
  125. package/dist/_internal/engine/browser/dom/panel/designer-panel-primitives.d.ts +2 -2
  126. package/dist/_internal/engine/browser/dom/panel/designer-property-transactions.d.ts +1 -1
  127. package/dist/_internal/engine/browser/dom/value-ref/designer-value-ref-picker-dom.d.ts +1 -1
  128. package/dist/_internal/engine/browser/dom/value-ref/designer-value-ref-picker-mount.d.ts +1 -1
  129. package/dist/_internal/engine/browser/dom/value-ref/designer-value-ref-summary-dom.d.ts +1 -1
  130. package/dist/_internal/engine/browser/dom/value-ref/designer-value-ref-types.d.ts +4 -4
  131. package/dist/_internal/engine/common/observability/designer-metrics.d.ts +1 -1
  132. package/dist/_internal/engine/common/operations/blueprint/designer-blueprint-capabilities.d.ts +1 -1
  133. package/dist/_internal/engine/common/operations/blueprint/designer-blueprint-graph.d.ts +5 -5
  134. package/dist/_internal/engine/common/operations/blueprint/designer-blueprint-model.d.ts +1 -1
  135. package/dist/_internal/engine/common/operations/blueprint/designer-blueprint-protocol-types.d.ts +2 -2
  136. package/dist/_internal/engine/common/operations/canvas/canvas-background-image.d.ts +1 -1
  137. package/dist/_internal/engine/common/operations/catalog/designer-catalog-refresh.d.ts +1 -1
  138. package/dist/_internal/engine/common/operations/change/designer-change-events.d.ts +1 -1
  139. package/dist/_internal/engine/common/operations/change/designer-change-proposal.d.ts +4 -4
  140. package/dist/_internal/engine/common/operations/designer-clipboard.d.ts +5 -1
  141. package/dist/_internal/engine/common/operations/designer-text-edit-operations.d.ts +1 -1
  142. package/dist/_internal/engine/common/operations/designer-variable-operations.d.ts +3 -3
  143. package/dist/_internal/engine/common/operations/element/designer-element-operation-types.d.ts +1 -1
  144. package/dist/_internal/engine/common/operations/intent/designer-parameter-intent.d.ts +1 -1
  145. package/dist/_internal/engine/common/operations/material-component/material-component-fragment-extract.d.ts +2 -2
  146. package/dist/_internal/engine/common/operations/material-library/material-library-fragments.d.ts +1 -1
  147. package/dist/_internal/engine/common/operations/material-library/material-library-grouping.d.ts +1 -1
  148. package/dist/_internal/engine/common/operations/plugin/designer-plugin-commands.d.ts +2 -0
  149. package/dist/_internal/engine/common/operations/selection/designer-multi-selection-operations.d.ts +9 -9
  150. package/dist/_internal/engine/common/operations/style/designer-component-states.d.ts +6 -6
  151. package/dist/_internal/engine/common/operations/style/designer-material-appearance.d.ts +1 -1
  152. package/dist/_internal/engine/common/session/designer-artboard.d.ts +1 -1
  153. package/dist/_internal/engine/common/session/designer-session.d.ts +1 -1
  154. package/dist/_internal/engine/common/ui-text/designer-blueprint-ui-text.d.ts +3 -3
  155. package/dist/_internal/engine/common/ui-text/designer-ui-text.d.ts +85 -68
  156. package/dist/_internal/engine/{designer-blueprint-workbench-panel-BWSglfAb.js → designer-blueprint-workbench-panel-DVvKcSvJ.js} +70 -70
  157. package/dist/_internal/engine/{designer-dataset-controller-DdbY4ILC.js → designer-dataset-controller-bSR5OB6n.js} +1461 -1355
  158. package/dist/_internal/engine/designer-element/api/designer-element-catalog.d.ts +2 -2
  159. package/dist/_internal/engine/designer-element/api/designer-element-change.d.ts +2 -2
  160. package/dist/_internal/engine/designer-element/api/designer-element-configuration-types.d.ts +4 -4
  161. package/dist/_internal/engine/designer-element/api/designer-element-fragment-save.d.ts +2 -2
  162. package/dist/_internal/engine/designer-element/api/designer-element-host-resource-selection.d.ts +1 -1
  163. package/dist/_internal/engine/designer-element/base-screen-designer-element.d.ts +10 -10
  164. package/dist/_internal/engine/designer-element/runtime/designer-element-plugin-commands.d.ts +3 -3
  165. package/dist/_internal/engine/designer-element/runtime/designer-element-rendering.d.ts +2 -2
  166. package/dist/_internal/engine/designer-element/runtime/designer-element-sample-data.d.ts +1 -1
  167. package/dist/_internal/engine/designer-element/runtime/designer-element-state.d.ts +7 -7
  168. package/dist/_internal/engine/{designer-field-primitives-Crn464Qg.js → designer-field-primitives-C_StzrUa.js} +197 -178
  169. package/dist/_internal/engine/{designer-left-panel-groups-dom-DFdLWxxY.js → designer-left-panel-groups-dom-DBpI3Nc2.js} +19 -19
  170. package/dist/_internal/engine/{host-resource-selection-CWrPLVOc.js → host-resource-selection-BCRU23WQ.js} +446 -446
  171. package/dist/_internal/engine/index.js +3665 -3247
  172. package/dist/_internal/host-kit/index.d.ts +1 -1
  173. package/dist/_internal/host-kit/index.js +1 -1
  174. package/dist/_internal/host-kit/intent/index.d.ts +2 -1
  175. package/dist/_internal/host-kit/intent/index.js +1 -0
  176. package/dist/_internal/host-kit/intent/intent-behavior.d.ts +5 -5
  177. package/dist/_internal/host-kit/intent/intent-behavior.js +7 -7
  178. package/dist/_internal/host-kit/intent/intent-block.d.ts +11 -4
  179. package/dist/_internal/host-kit/intent/intent-block.js +87 -8
  180. package/dist/_internal/host-kit/intent/intent-catalog.d.ts +9 -6
  181. package/dist/_internal/host-kit/intent/intent-catalog.js +1 -1
  182. package/dist/_internal/host-kit/intent/intent-compile-types.d.ts +10 -10
  183. package/dist/_internal/host-kit/intent/intent-compile.d.ts +1 -1
  184. package/dist/_internal/host-kit/intent/intent-compile.js +4 -4
  185. package/dist/_internal/host-kit/intent/intent-data-check.d.ts +4 -4
  186. package/dist/_internal/host-kit/intent/intent-data-context.d.ts +7 -7
  187. package/dist/_internal/host-kit/intent/intent-data-context.js +2 -2
  188. package/dist/_internal/host-kit/intent/intent-dataset.d.ts +4 -4
  189. package/dist/_internal/host-kit/intent/intent-dataset.js +2 -2
  190. package/dist/_internal/host-kit/intent/intent-format.d.ts +2 -2
  191. package/dist/_internal/host-kit/intent/intent-format.js +2 -2
  192. package/dist/_internal/host-kit/intent/intent-freeform.d.ts +48 -0
  193. package/dist/_internal/host-kit/intent/intent-freeform.js +412 -0
  194. package/dist/_internal/host-kit/intent/intent-kpi-bind.d.ts +2 -2
  195. package/dist/_internal/host-kit/intent/intent-layout.d.ts +2 -2
  196. package/dist/_internal/host-kit/intent/intent-layout.js +2 -2
  197. package/dist/_internal/host-kit/intent/intent-parse.d.ts +2 -0
  198. package/dist/_internal/host-kit/intent/intent-parse.js +13 -12
  199. package/dist/_internal/host-kit/intent/intent-prepare.d.ts +7 -4
  200. package/dist/_internal/host-kit/intent/intent-prepare.js +54 -2
  201. package/dist/_internal/host-kit/intent/intent-session.d.ts +6 -6
  202. package/dist/_internal/host-kit/intent/intent-session.js +4 -4
  203. package/dist/_internal/host-kit/intent/intent-stream.js +2 -2
  204. package/dist/_internal/host-kit/intent/intent-style.d.ts +1 -1
  205. package/dist/_internal/host-kit/intent/intent-style.js +1 -1
  206. package/dist/_internal/host-kit/intent/intent-types.d.ts +55 -12
  207. package/dist/_internal/host-kit/intent/intent-types.js +1 -1
  208. package/dist/_internal/host-kit/push-result.d.ts +1 -1
  209. package/dist/_internal/host-kit/push-result.js +1 -1
  210. package/dist/_internal/host-kit/sse-subscribe.d.ts +1 -1
  211. package/dist/_internal/host-kit/sse-subscribe.js +1 -1
  212. package/dist/_internal/host-kit/subscription-hub.d.ts +3 -3
  213. package/dist/_internal/host-kit/subscription-hub.js +1 -1
  214. package/dist/_internal/material/base-material.d.ts +3 -3
  215. package/dist/_internal/material/editor-descriptor.d.ts +3 -3
  216. package/dist/_internal/plugin-core/contracts.d.ts +18 -16
  217. package/dist/_internal/plugin-core/contracts.js +1 -0
  218. package/dist/_internal/plugin-core/contribution-kind.d.ts +5 -5
  219. package/dist/_internal/plugin-core/contribution-kind.js +14 -6
  220. package/dist/_internal/plugin-core/editor/editor-descriptor-inference.d.ts +1 -1
  221. package/dist/_internal/plugin-core/editor/editor-descriptor-inference.js +2 -2
  222. package/dist/_internal/plugin-core/editor/editor-descriptor-items.d.ts +1 -1
  223. package/dist/_internal/plugin-core/editor/editor-descriptor-items.js +1 -1
  224. package/dist/_internal/plugin-core/editor/editor-descriptor-model.d.ts +2 -2
  225. package/dist/_internal/plugin-core/editor/editor-descriptor.js +1 -1
  226. package/dist/_internal/plugin-core/fragment/fragment.d.ts +4 -4
  227. package/dist/_internal/plugin-core/fragment/fragment.js +1 -1
  228. package/dist/_internal/plugin-core/material/material-manifest-fields.js +1 -1
  229. package/dist/_internal/plugin-core/material/material-manifest.js +1 -1
  230. package/dist/_internal/plugin-core/material/material-theme.d.ts +2 -2
  231. package/dist/_internal/plugin-core/material/material-theme.js +2 -2
  232. package/dist/_internal/plugin-manager/contribution-kind-plan.d.ts +5 -1
  233. package/dist/_internal/plugin-manager/contribution-kind-plan.js +20 -12
  234. package/dist/_internal/plugin-manager/manager.js +47 -30
  235. package/dist/_internal/plugin-manager/resolver.js +7 -13
  236. package/dist/_internal/plugin-manager/types.d.ts +2 -2
  237. package/dist/_internal/plugin-sdk/authoring-finding.d.ts +3 -3
  238. package/dist/_internal/plugin-sdk/fragment-audit.d.ts +6 -6
  239. package/dist/_internal/plugin-sdk/fragment-audit.js +8 -8
  240. package/dist/_internal/plugin-sdk/fragment-definition.d.ts +3 -3
  241. package/dist/_internal/plugin-sdk/fragment-definition.js +3 -3
  242. package/dist/_internal/plugin-sdk/material-config-groups.d.ts +2 -2
  243. package/dist/_internal/plugin-sdk/material-definition.d.ts +5 -1
  244. package/dist/_internal/plugin-sdk/material-definition.js +3 -3
  245. package/dist/_internal/plugin-sdk/material-editor-audit.d.ts +9 -8
  246. package/dist/_internal/plugin-sdk/material-editor-audit.js +19 -11
  247. package/dist/_internal/plugin-sdk/material-isolated-csp.d.ts +1 -1
  248. package/dist/_internal/plugin-sdk/material-isolated-csp.js +1 -1
  249. package/dist/_internal/plugin-sdk/material-isolated-runtime.d.ts +3 -3
  250. package/dist/_internal/plugin-sdk/material-isolated-runtime.js +3 -3
  251. package/dist/_internal/plugin-sdk/material-isolated.d.ts +9 -9
  252. package/dist/_internal/plugin-sdk/material-isolated.js +28 -8
  253. package/dist/_internal/plugin-sdk/material-package.d.ts +3 -3
  254. package/dist/_internal/plugin-sdk/material-package.js +7 -7
  255. package/dist/_internal/plugin-sdk/material-rendered-element.d.ts +13 -6
  256. package/dist/_internal/plugin-sdk/material-rendered-element.js +36 -7
  257. package/dist/_internal/plugin-sdk/material-spec-audit.d.ts +19 -11
  258. package/dist/_internal/plugin-sdk/material-spec-audit.js +85 -19
  259. package/dist/_internal/plugin-sdk/material-spec.d.ts +66 -21
  260. package/dist/_internal/plugin-sdk/material-spec.js +166 -42
  261. package/dist/_internal/plugin-sdk/material-style-keys.d.ts +6 -6
  262. package/dist/_internal/plugin-sdk/material-style-keys.js +7 -7
  263. package/dist/_internal/plugin-sdk/material-template-audit.d.ts +1 -1
  264. package/dist/_internal/plugin-sdk/material-template-audit.js +3 -3
  265. package/dist/_internal/plugin-sdk/material-template-expression.d.ts +3 -3
  266. package/dist/_internal/plugin-sdk/material-template-expression.js +2 -2
  267. package/dist/_internal/plugin-sdk/material-template-render.d.ts +1 -1
  268. package/dist/_internal/plugin-sdk/material-template.d.ts +6 -6
  269. package/dist/_internal/plugin-sdk/material-template.js +2 -2
  270. package/dist/_internal/plugin-sdk/plugin-package.d.ts +2 -2
  271. package/dist/_internal/plugin-sdk/plugin-package.js +3 -3
  272. package/dist/_internal/plugin-sdk/plugin-registration.d.ts +2 -5
  273. package/dist/_internal/plugin-sdk/plugin-registration.js +3 -3
  274. package/dist/_internal/renderer/renderer/renderer-candidates.d.ts +1 -1
  275. package/dist/_internal/renderer/renderer/renderer-component-states.d.ts +1 -1
  276. package/dist/_internal/renderer/renderer/renderer-effective-style.d.ts +1 -1
  277. package/dist/_internal/renderer/renderer/renderer-material-dom.d.ts +1 -1
  278. package/dist/_internal/renderer/renderer/renderer-state.d.ts +2 -2
  279. package/dist/_internal/renderer/renderer/renderer-theme.d.ts +1 -1
  280. package/dist/_internal/renderer/renderer/renderer-types.d.ts +1 -1
  281. package/dist/_internal/renderer/renderer/renderer.d.ts +5 -5
  282. package/dist/_internal/renderer/resource/data-source-runtime.d.ts +3 -3
  283. package/dist/_internal/renderer/resource/push-window.d.ts +1 -1
  284. package/dist/_internal/renderer/resource/request-coordinator.d.ts +1 -1
  285. package/dist/_internal/renderer/resource/source-query-port.d.ts +3 -3
  286. package/dist/_internal/renderer/sub-canvas-layer.d.ts +2 -2
  287. package/dist/_internal/renderer/viewer/viewer-configuration.d.ts +1 -1
  288. package/dist/_internal/renderer/viewer/viewer.d.ts +3 -3
  289. package/dist/auto-register.js +9 -9
  290. package/dist/contracts.js +1 -1
  291. package/dist/contracts.js.map +1 -1
  292. package/dist/core.js.map +1 -1
  293. package/dist/dataset-port-D993nOlT.js.map +1 -1
  294. package/dist/dataset-profile-Dk6xdtsM.js.map +1 -1
  295. package/dist/{designer-CFOvOmLn.js → designer-DzBm8tXS.js} +2 -2
  296. package/dist/{designer-CFOvOmLn.js.map → designer-DzBm8tXS.js.map} +1 -1
  297. package/dist/designer-auto-register.js +5 -5
  298. package/dist/{designer-blueprint-workbench-panel-BWSglfAb-ktaj6Ci9.js → designer-blueprint-workbench-panel-DVvKcSvJ-CkRMBKZA.js} +111 -111
  299. package/dist/designer-blueprint-workbench-panel-DVvKcSvJ-CkRMBKZA.js.map +1 -0
  300. package/dist/{designer-dataset-controller-DdbY4ILC-CMdGdGbr.js → designer-dataset-controller-bSR5OB6n-DfUP24S6.js} +1052 -946
  301. package/dist/designer-dataset-controller-bSR5OB6n-DfUP24S6.js.map +1 -0
  302. package/dist/{designer-field-primitives-Crn464Qg-Bi7q8s5J.js → designer-field-primitives-C_StzrUa-QZpcn0yX.js} +198 -179
  303. package/dist/designer-field-primitives-C_StzrUa-QZpcn0yX.js.map +1 -0
  304. package/dist/{designer-left-panel-groups-dom-DFdLWxxY-BarlWMLY.js → designer-left-panel-groups-dom-DBpI3Nc2-D8kYJLCg.js} +17 -17
  305. package/dist/{designer-left-panel-groups-dom-DFdLWxxY-BarlWMLY.js.map → designer-left-panel-groups-dom-DBpI3Nc2-D8kYJLCg.js.map} +1 -1
  306. package/dist/designer.js +5 -5
  307. package/dist/{dist-CHK9BTXX.js → dist-YCmniYuO.js} +4801 -4383
  308. package/dist/dist-YCmniYuO.js.map +1 -0
  309. package/dist/engine.js +4 -4
  310. package/dist/fragment-B-oP0Fru.js.map +1 -1
  311. package/dist/host-kit.js +979 -554
  312. package/dist/host-kit.js.map +1 -1
  313. package/dist/{host-resource-selection-CWrPLVOc-DPDq3jau.js → host-resource-selection-BCRU23WQ-Cedz0d14.js} +206 -206
  314. package/dist/host-resource-selection-BCRU23WQ-Cedz0d14.js.map +1 -0
  315. package/dist/image-url-D6mUcjY1.js.map +1 -1
  316. package/dist/index.js +9 -9
  317. package/dist/legibility-CS28ivEz.js.map +1 -1
  318. package/dist/level-scale-CwHqFEVd.js.map +1 -1
  319. package/dist/{manager-CeB4Jnr9.js → manager-BcvdcZjM.js} +230 -210
  320. package/dist/manager-BcvdcZjM.js.map +1 -0
  321. package/dist/{material-DeVkzSoT.js → material-ReRzBIbb.js} +2 -2
  322. package/dist/{material-DeVkzSoT.js.map → material-ReRzBIbb.js.map} +1 -1
  323. package/dist/material-auto-register.js +1 -1
  324. package/dist/{material-definition-BeW34dJr.js → material-definition-BcjFM-B-.js} +9 -9
  325. package/dist/material-definition-BcjFM-B-.js.map +1 -0
  326. package/dist/material-manifest-B1XatGPx.js.map +1 -1
  327. package/dist/material-theme-C91eus78.js.map +1 -1
  328. package/dist/material.js +2 -2
  329. package/dist/migrate-document-BM888PtC.js.map +1 -1
  330. package/dist/{parse-aZat9tAS.js → parse-1U_-Qtn4.js} +2 -2
  331. package/dist/parse-1U_-Qtn4.js.map +1 -0
  332. package/dist/parse-Ji7kE9ZT.js.map +1 -1
  333. package/dist/{plugin-CstHQ5ws.js → plugin-BH-4oNvT.js} +60 -52
  334. package/dist/plugin-BH-4oNvT.js.map +1 -0
  335. package/dist/plugin-core.js +1 -1
  336. package/dist/plugin-manager.js +1 -1
  337. package/dist/{plugin-package-DWifuHi1.js → plugin-package-Cj-3iLv3.js} +2068 -1905
  338. package/dist/plugin-package-Cj-3iLv3.js.map +1 -0
  339. package/dist/{plugin-registration-DTwBvnHX.js → plugin-registration-C9_IxTxc.js} +9 -9
  340. package/dist/{plugin-registration-DTwBvnHX.js.map → plugin-registration-C9_IxTxc.js.map} +1 -1
  341. package/dist/plugin-sdk.js +6 -6
  342. package/dist/{plugins-QDL0yIql.js → plugins-CwATlfr0.js} +2 -2
  343. package/dist/{plugins-QDL0yIql.js.map → plugins-CwATlfr0.js.map} +1 -1
  344. package/dist/plugins.js +8 -8
  345. package/dist/runtime-dispatch-C0gyIrTv.js.map +1 -1
  346. package/dist/runtime-simulate-aSYO9yDX.js.map +1 -1
  347. package/dist/{src-Bm7u11mN-Bi1hDVkh.js → src-Bm7u11mN-DFLnFQSk.js} +19 -19
  348. package/dist/{src-Bm7u11mN-Bi1hDVkh.js.map → src-Bm7u11mN-DFLnFQSk.js.map} +1 -1
  349. package/dist/{text-BSTz0pFQ.js → text-DfKom8EG.js} +2 -2
  350. package/dist/{text-BSTz0pFQ.js.map → text-DfKom8EG.js.map} +1 -1
  351. package/dist/theme-CcBXf4Ay.js.map +1 -1
  352. package/dist/value-ref-XkLuckGV.js.map +1 -1
  353. package/dist/{viewer-CrJupI8I-BJiz1cvW.js → viewer-CrJupI8I-CeQS58mA.js} +4 -4
  354. package/dist/{viewer-CrJupI8I-BJiz1cvW.js.map → viewer-CrJupI8I-CeQS58mA.js.map} +1 -1
  355. package/dist/viewer-auto-register.js +1 -1
  356. package/dist/viewer.js +1 -1
  357. package/dist/viewport-BNIRWjiT.js.map +1 -1
  358. package/package.json +13 -13
  359. package/dist/designer-blueprint-workbench-panel-BWSglfAb-ktaj6Ci9.js.map +0 -1
  360. package/dist/designer-dataset-controller-DdbY4ILC-CMdGdGbr.js.map +0 -1
  361. package/dist/designer-field-primitives-Crn464Qg-Bi7q8s5J.js.map +0 -1
  362. package/dist/dist-CHK9BTXX.js.map +0 -1
  363. package/dist/host-resource-selection-CWrPLVOc-DPDq3jau.js.map +0 -1
  364. package/dist/manager-CeB4Jnr9.js.map +0 -1
  365. package/dist/material-definition-BeW34dJr.js.map +0 -1
  366. package/dist/parse-aZat9tAS.js.map +0 -1
  367. package/dist/plugin-CstHQ5ws.js.map +0 -1
  368. package/dist/plugin-package-DWifuHi1.js.map +0 -1
@@ -2,10 +2,10 @@ import { i as e } from "./image-url-D6mUcjY1.js";
2
2
  import { t } from "./parse-B5b0hjql.js";
3
3
  import { i as n, n as r, r as i, t as a } from "./definition-DlTP-401.js";
4
4
  import { a as o, i as s, n as c, r as l, t as u } from "./read-data-value-WmMKWshv.js";
5
- import { C as d, O as f, S as p, _ as m, b as h, f as g, g as _, i as v, k as y, m as b, n as x, p as S, t as C, v as w, w as T, y as E } from "./designer-field-primitives-Crn464Qg-Bi7q8s5J.js";
6
- import { C as D, S as O, l as k, y as ee } from "./host-resource-selection-CWrPLVOc-DPDq3jau.js";
5
+ import { A as d, C as f, E as p, T as m, _ as h, b as g, j as _, l as v, o as y, p as b, r as x, u as S, v as C, w, x as T, y as E } from "./designer-field-primitives-C_StzrUa-QZpcn0yX.js";
6
+ import { C as D, S as O, l as k, y as ee } from "./host-resource-selection-BCRU23WQ-Cedz0d14.js";
7
7
  import { a as A } from "./value-ref-XkLuckGV.js";
8
- //#region ../engine/dist/designer-dataset-controller-DdbY4ILC.js
8
+ //#region ../engine/dist/designer-dataset-controller-bSR5OB6n.js
9
9
  var te = "[data-ds-section]", ne = {
10
10
  value: "source",
11
11
  source: "source",
@@ -222,10 +222,10 @@ function he(n, r, i, a, o = []) {
222
222
  try {
223
223
  s = JSON.parse(r);
224
224
  } catch {
225
- return M("CORE_COMMAND_INVALID", d.dataSource.staticInvalid);
225
+ return M("CORE_COMMAND_INVALID", w.dataSource.staticInvalid);
226
226
  }
227
227
  let c = e(s);
228
- if (!c.ok || i?.kind === "scalar" && typeof c.value !== i.valueType) return M("CORE_COMMAND_INVALID", d.dataSource.staticInvalid);
228
+ if (!c.ok || i?.kind === "scalar" && typeof c.value !== i.valueType) return M("CORE_COMMAND_INVALID", w.dataSource.staticInvalid);
229
229
  if (i?.kind === "tabular") {
230
230
  let e = t(c.value);
231
231
  if (!e.ok) return e;
@@ -283,12 +283,12 @@ function ge(e) {
283
283
  function _e(e, t, n) {
284
284
  for (let r of t.parameters) {
285
285
  let t = n.params[r.name];
286
- if (t === void 0 && r.required || t?.kind === "variable" && !e.variables.some((e) => e.id === t.variableId)) return M("HOST_DATASET_PARAMETER_INVALID", d.dataset.incomplete);
286
+ if (t === void 0 && r.required || t?.kind === "variable" && !e.variables.some((e) => e.id === t.variableId)) return M("HOST_DATASET_PARAMETER_INVALID", w.dataset.incomplete);
287
287
  }
288
288
  let r = {};
289
289
  for (let [e, i] of Object.entries(n.params)) {
290
290
  let n = t.parameters.find((t) => t.name === e);
291
- if (n === void 0) return M("HOST_DATASET_PARAMETER_INVALID", d.dataset.incomplete);
291
+ if (n === void 0) return M("HOST_DATASET_PARAMETER_INVALID", w.dataset.incomplete);
292
292
  r[e] = i.kind === "inline" ? i.value : Se(n);
293
293
  }
294
294
  let i = a(t.parameters, r);
@@ -356,7 +356,7 @@ function we(e, t, n) {
356
356
  return e.variables.some((e) => e.id === n) ? j(Ee(t, {
357
357
  type: "variable",
358
358
  variableId: n
359
- })) : M("CORE_COMMAND_INVALID", d.dataset.incomplete);
359
+ })) : M("CORE_COMMAND_INVALID", w.dataset.incomplete);
360
360
  }
361
361
  function Te(e, t) {
362
362
  return e?.parameters.find((e) => e.name === t)?.defaultValue ?? null;
@@ -406,6 +406,9 @@ var De = class {
406
406
  #f = !1;
407
407
  #p;
408
408
  #m;
409
+ #h = !1;
410
+ #g = [void 0];
411
+ #_ = 0;
409
412
  constructor(e) {
410
413
  this.callbacks = e;
411
414
  }
@@ -419,11 +422,38 @@ var De = class {
419
422
  return this.#u;
420
423
  }
421
424
  updateGroup(e) {
422
- e === this.#u || e !== void 0 && !this.#l.some((t) => t.id === e) || (this.#u = e, this.#c = [], this.#s = void 0, this.#o = void 0, this.list(void 0));
425
+ e === this.#u || e !== void 0 && !this.#l.some((t) => t.id === e) || (this.#u = e, this.#c = [], this.#s = void 0, this.#o = void 0, this.#g = [void 0], this.#_ = 0, this.list(void 0));
426
+ }
427
+ setPaged(e) {
428
+ this.#h !== e && (this.#h = e, this.#g = [void 0], this.#_ = 0, this.list(void 0, !0));
429
+ }
430
+ ensurePagedList() {
431
+ this.#y(), this.#h = !0, this.#g = [void 0], this.#_ = 0, !this.#f && this.#d === void 0 && this.loadGroups(), this.list(void 0, !0);
432
+ }
433
+ resetPaging() {
434
+ this.#h = !1, this.#g = [void 0], this.#_ = 0;
435
+ }
436
+ nextPage() {
437
+ !this.#h || this.#s === void 0 || (this.#g[this.#_ + 1] = this.#s, this.#_ += 1, this.list(this.#s, !0));
438
+ }
439
+ previousPage() {
440
+ !this.#h || this.#_ === 0 || (--this.#_, this.list(this.#g[this.#_], !0));
423
441
  }
424
442
  get cursor() {
425
443
  return this.#s;
426
444
  }
445
+ get paged() {
446
+ return this.#h;
447
+ }
448
+ get pageIndex() {
449
+ return this.#_;
450
+ }
451
+ get hasPreviousPage() {
452
+ return this.#_ > 0;
453
+ }
454
+ get hasNextPage() {
455
+ return this.#s !== void 0;
456
+ }
427
457
  get items() {
428
458
  return this.#c;
429
459
  }
@@ -434,30 +464,30 @@ var De = class {
434
464
  return this.#m;
435
465
  }
436
466
  retry() {
437
- this.#m = void 0, this.#p = this.callbacks.getPort() === void 0 ? "unavailable" : "loading", this.list(void 0);
467
+ this.#m = void 0, this.#p = this.callbacks.getPort() === void 0 ? "unavailable" : "loading", this.#g = [void 0], this.#_ = 0, this.list(void 0, !0);
438
468
  }
439
469
  ensureList() {
440
- this.#g(), !this.#f && this.#d === void 0 && this.loadGroups(), (this.#c.length === 0 || this.#o !== this.#a) && this.list(void 0);
470
+ this.#y(), !this.#f && this.#d === void 0 && this.loadGroups(), (this.#c.length === 0 || this.#o !== this.#a) && this.list(void 0);
441
471
  }
442
472
  updateQuery(e) {
443
- e !== this.#a && (this.#a = e, this.#s = void 0, this.#g(), this.#n = setTimeout(() => {
473
+ e !== this.#a && (this.#a = e, this.#s = void 0, this.#g = [void 0], this.#_ = 0, this.#y(), this.#n = setTimeout(() => {
444
474
  this.#n = void 0, this.list(void 0);
445
475
  }, 180));
446
476
  }
447
477
  loadMore() {
448
- this.#n === void 0 && this.#s !== void 0 && this.list(this.#s);
478
+ this.#h || this.#n === void 0 && this.#s !== void 0 && this.list(this.#s);
449
479
  }
450
480
  async describe(e) {
451
481
  let t = this.callbacks.getPort();
452
482
  if (t === void 0) {
453
- this.callbacks.setFeedback(d.dataset.unavailable);
483
+ this.callbacks.setFeedback(w.dataset.unavailable);
454
484
  return;
455
485
  }
456
486
  this.#t?.abort();
457
487
  let n = new AbortController();
458
488
  this.#t = n;
459
489
  let i = ++this.#i;
460
- this.callbacks.setFeedback(d.dataset.describeLoading);
490
+ this.callbacks.setFeedback(w.dataset.describeLoading);
461
491
  let a;
462
492
  try {
463
493
  a = await t.describe({
@@ -465,68 +495,68 @@ var De = class {
465
495
  signal: n.signal
466
496
  });
467
497
  } catch {
468
- !n.signal.aborted && i === this.#i && this.callbacks.setFeedback(d.dataset.describeFailed);
498
+ !n.signal.aborted && i === this.#i && this.callbacks.setFeedback(w.dataset.describeFailed);
469
499
  return;
470
500
  }
471
501
  if (n.signal.aborted || i !== this.#i) return;
472
502
  if (!a.ok) {
473
- this.callbacks.report(a.diagnostics), this.callbacks.setFeedback(d.dataset.describeFailed);
503
+ this.callbacks.report(a.diagnostics), this.callbacks.setFeedback(w.dataset.describeFailed);
474
504
  return;
475
505
  }
476
506
  let o = r(a.value);
477
507
  if (!o.ok) {
478
- this.callbacks.report(o.diagnostics), this.callbacks.setFeedback(d.dataset.describeFailed);
508
+ this.callbacks.report(o.diagnostics), this.callbacks.setFeedback(w.dataset.describeFailed);
479
509
  return;
480
510
  }
481
511
  if (o.value.datasetId !== e) {
482
- this.callbacks.setFeedback(d.dataset.describeFailed);
512
+ this.callbacks.setFeedback(w.dataset.describeFailed);
483
513
  return;
484
514
  }
485
515
  return o.value;
486
516
  }
487
517
  clear() {
488
- this.#g(), this.#d?.abort(), this.#d = void 0, this.#l = [], this.#u = void 0, this.#f = !1, this.#e?.abort(), this.#t?.abort(), this.#a = "", this.#o = void 0, this.#s = void 0, this.#c = [], this.#r++, this.#i++, this.#m = void 0, this.#p = void 0;
518
+ this.#y(), this.#d?.abort(), this.#d = void 0, this.#l = [], this.#u = void 0, this.#f = !1, this.#e?.abort(), this.#t?.abort(), this.#a = "", this.#o = void 0, this.#s = void 0, this.#c = [], this.#r++, this.#i++, this.#m = void 0, this.#p = void 0, this.#h = !1, this.#g = [void 0], this.#_ = 0;
489
519
  }
490
- async list(e) {
491
- let t = this.callbacks.getPort();
492
- if (t === void 0) {
493
- this.#h("unavailable", void 0), this.callbacks.setFeedback(d.dataset.unavailable);
520
+ async list(e, t = !1) {
521
+ let n = this.callbacks.getPort();
522
+ if (n === void 0) {
523
+ this.#v("unavailable", void 0), this.callbacks.setFeedback(w.dataset.unavailable);
494
524
  return;
495
525
  }
496
526
  this.#e?.abort();
497
- let n = new AbortController();
498
- this.#e = n;
499
- let r = ++this.#r;
500
- this.#h("loading", void 0), this.callbacks.setFeedback(d.dataset.loading);
501
- let a;
527
+ let r = new AbortController();
528
+ this.#e = r;
529
+ let a = ++this.#r;
530
+ this.#v("loading", void 0), this.callbacks.setFeedback(w.dataset.loading);
531
+ let o;
502
532
  try {
503
- a = await t.list({
533
+ o = await n.list({
504
534
  query: this.#a,
505
535
  ...this.#u === void 0 ? {} : { groupId: this.#u },
506
536
  ...e === void 0 ? {} : { cursor: e },
507
537
  limit: 50,
508
- signal: n.signal
538
+ signal: r.signal
509
539
  });
510
540
  } catch {
511
- !n.signal.aborted && r === this.#r && (this.#h("error", d.dataset.loadFailed), this.callbacks.setFeedback(d.dataset.loadFailed));
541
+ !r.signal.aborted && a === this.#r && (this.#v("error", w.dataset.loadFailed), this.callbacks.setFeedback(w.dataset.loadFailed));
512
542
  return;
513
543
  }
514
- if (n.signal.aborted || r !== this.#r) return;
515
- if (!a.ok) {
516
- this.callbacks.report(a.diagnostics), this.#h("error", a.diagnostics[0]?.code ?? d.dataset.loadFailed), this.callbacks.setFeedback(d.dataset.loadFailed);
544
+ if (r.signal.aborted || a !== this.#r) return;
545
+ if (!o.ok) {
546
+ this.callbacks.report(o.diagnostics), this.#v("error", o.diagnostics[0]?.code ?? w.dataset.loadFailed), this.callbacks.setFeedback(w.dataset.loadFailed);
517
547
  return;
518
548
  }
519
- let o = i(a.value);
520
- if (!o.ok) {
521
- this.callbacks.report(o.diagnostics), this.#h("error", o.diagnostics[0]?.code ?? d.dataset.loadFailed), this.callbacks.setFeedback(d.dataset.loadFailed);
549
+ let s = i(o.value);
550
+ if (!s.ok) {
551
+ this.callbacks.report(s.diagnostics), this.#v("error", s.diagnostics[0]?.code ?? w.dataset.loadFailed), this.callbacks.setFeedback(w.dataset.loadFailed);
522
552
  return;
523
553
  }
524
- this.#p = "ready", this.#m = void 0, this.#c = e === void 0 ? o.value.items : [...this.#c, ...o.value.items], this.#s = o.value.nextCursor, this.#o = this.#a, this.callbacks.setFeedback(d.dataset.shown(this.#c.length)), (this.callbacks.renderResults ?? this.callbacks.render)();
554
+ this.#p = "ready", this.#m = void 0, this.#c = e === void 0 || t ? s.value.items : [...this.#c, ...s.value.items], this.#s = s.value.nextCursor, this.#o = this.#a, this.callbacks.setFeedback(w.dataset.shown(this.#c.length)), (this.callbacks.renderResults ?? this.callbacks.render)();
525
555
  }
526
- #h(e, t) {
556
+ #v(e, t) {
527
557
  this.#p = e, this.#m = t, this.callbacks.renderResults?.();
528
558
  }
529
- #g() {
559
+ #y() {
530
560
  this.#n !== void 0 && (clearTimeout(this.#n), this.#n = void 0);
531
561
  }
532
562
  async loadGroups() {
@@ -552,7 +582,7 @@ var De = class {
552
582
  }
553
583
  this.#l = i.value, this.#f = !0, this.callbacks.render();
554
584
  } catch {
555
- t.signal.aborted || this.callbacks.setFeedback(d.dataset.loadFailed);
585
+ t.signal.aborted || this.callbacks.setFeedback(w.dataset.loadFailed);
556
586
  } finally {
557
587
  clearTimeout(r), this.#d === t && (this.#d = void 0);
558
588
  }
@@ -590,6 +620,7 @@ var je = class {
590
620
  workbenchOpen = !1;
591
621
  catalogOpen = !1;
592
622
  sourcePickerTab = "dataset";
623
+ sourcePickerExpanded = !1;
593
624
  variableQuery = "";
594
625
  feedbackText = "";
595
626
  draftDirty = !1;
@@ -610,32 +641,32 @@ var je = class {
610
641
  panel;
611
642
  feedback;
612
643
  reset() {
613
- this.descriptor = void 0, this.draft = void 0, this.mode = "none", this.variableSourceId = "", this.staticDraft = "null", this.staticValue = null, this.staticBinding = void 0, this.staticTab = "table", this.staticPage = 0, this.staticPageSize = 10, this.workbenchOpen = !1, this.catalogOpen = !1, this.sourcePickerTab = "dataset", this.variableQuery = "", this.feedbackText = "", this.draftDirty = !1, this.confirmClose = !1, this.preview = N(), this.clearAutoApply(), this.activeStep = "source", this.authoring = Me(), this.focusedComponentId = null, this.syncedDataSource = void 0, this.datasetInstanceId = null, this.syncedInstanceId = null, this.bindingOpenRoleId = null, this.parameterInlineMemory.clear(), this.groupOpenOverrides.clear();
644
+ this.descriptor = void 0, this.draft = void 0, this.mode = "none", this.variableSourceId = "", this.staticDraft = "null", this.staticValue = null, this.staticBinding = void 0, this.staticTab = "table", this.staticPage = 0, this.staticPageSize = 10, this.workbenchOpen = !1, this.catalogOpen = !1, this.sourcePickerTab = "dataset", this.sourcePickerExpanded = !1, this.variableQuery = "", this.feedbackText = "", this.draftDirty = !1, this.confirmClose = !1, this.preview = N(), this.clearAutoApply(), this.activeStep = "source", this.authoring = Me(), this.focusedComponentId = null, this.syncedDataSource = void 0, this.datasetInstanceId = null, this.syncedInstanceId = null, this.bindingOpenRoleId = null, this.parameterInlineMemory.clear(), this.groupOpenOverrides.clear();
614
645
  }
615
646
  clearAutoApply() {
616
647
  this.autoApplyTimer !== void 0 && (clearTimeout(this.autoApplyTimer), this.autoApplyTimer = void 0);
617
648
  }
618
649
  };
619
- function Me(e) {
620
- let t = {
650
+ function Me(e, t) {
651
+ let n = {
621
652
  editorMode: "visual",
622
- filterConfigured: !1,
653
+ filterConfigured: t !== void 0 && t !== "",
623
654
  loadingDisabled: !1,
624
655
  controlled: !1,
625
656
  refreshStrategy: "manual",
626
657
  refreshInterval: 30
627
658
  };
628
- return e === void 0 ? t : e.mode === "auto" ? {
629
- ...t,
659
+ return e === void 0 ? n : e.mode === "auto" ? {
660
+ ...n,
630
661
  refreshStrategy: "auto",
631
662
  refreshInterval: e.intervalSeconds ?? 30
632
663
  } : e.mode === "push" ? {
633
- ...t,
664
+ ...n,
634
665
  refreshStrategy: "push",
635
666
  ...e.fallbackIntervalSeconds === void 0 ? {} : { pushFallbackInterval: e.fallbackIntervalSeconds },
636
667
  ...e.retain?.rows === void 0 ? {} : { pushRetainRows: e.retain.rows }
637
668
  } : {
638
- ...t,
669
+ ...n,
639
670
  refreshStrategy: e.mode
640
671
  };
641
672
  }
@@ -697,18 +728,18 @@ function Fe() {
697
728
  function Ie(e) {
698
729
  if (e.state === "failed") return {
699
730
  tone: "danger",
700
- text: d.data.notice.failed,
731
+ text: w.data.notice.failed,
701
732
  icon: "x-circle",
702
733
  retry: !0
703
734
  };
704
735
  if (e.state === "readonly") return {
705
736
  tone: "neutral",
706
- text: d.data.notice.readonly,
737
+ text: w.data.notice.readonly,
707
738
  icon: "lock-open",
708
739
  retry: !1
709
740
  };
710
741
  if (e.state === "unavailable") {
711
- let t = d.data.notice.unavailable;
742
+ let t = w.data.notice.unavailable;
712
743
  return {
713
744
  tone: "warning",
714
745
  text: e.reason === "port-missing" ? t.portMissing : e.reason === "instance-missing" ? t.instanceMissing : t.denied,
@@ -734,13 +765,13 @@ function ze(e, t, n) {
734
765
  let i = e.createElement("div");
735
766
  if (i.className = "designer-data-notice", i.dataset.dataNoticeTone = r.tone, i.setAttribute("role", "status"), r.icon !== void 0) {
736
767
  let t = e.createElement("span");
737
- t.className = "designer-data-notice-icon", t.innerHTML = b(r.icon), i.appendChild(t);
768
+ t.className = "designer-data-notice-icon", t.innerHTML = m(r.icon), i.appendChild(t);
738
769
  }
739
770
  let a = e.createElement("span");
740
771
  if (a.className = "designer-data-notice-text", a.textContent = r.text, i.appendChild(a), r.retry) {
741
- let t = m(e, {
772
+ let t = p(e, {
742
773
  className: "designer-data-notice-retry",
743
- text: d.data.notice.retry
774
+ text: w.data.notice.retry
744
775
  });
745
776
  t.dataset.datasetAction = "retry-link", i.appendChild(t);
746
777
  }
@@ -850,7 +881,7 @@ function Ke(e, t, n, r) {
850
881
  return o.className = "designer-value-ref-label", o.textContent = i.label, a.appendChild(o), a;
851
882
  }
852
883
  function qe(e) {
853
- let t = e.ownerDocument, n = e.text, r = m(t, {
884
+ let t = e.ownerDocument, n = e.text, r = p(t, {
854
885
  ariaLabel: e.ariaLabel,
855
886
  className: "designer-value-ref-trigger"
856
887
  });
@@ -858,35 +889,35 @@ function qe(e) {
858
889
  let i = t.createElement("span");
859
890
  i.className = "designer-visually-hidden", i.dataset.valueRefLive = "true", i.setAttribute("aria-live", "polite");
860
891
  let a = t.createElement("div");
861
- a.className = "designer-value-ref-field", a.append(r, i), y();
862
- let o, s, c, l = 0, u = [], d = "", f, h, g = !1;
863
- function v() {
892
+ a.className = "designer-value-ref-field", a.append(r, i), v();
893
+ let o, s, c, l = 0, u = [], d = "", f, m, h = !1;
894
+ function _() {
864
895
  return Ue(He(e.input, n), d);
865
896
  }
866
- function y() {
897
+ function v() {
867
898
  r.replaceChildren(Ke(t, e.input.current, e.input, n));
868
899
  }
869
- function b(n) {
870
- if (g) return;
900
+ function y(n) {
901
+ if (h) return;
871
902
  if (o !== void 0) {
872
903
  n && s?.focus();
873
904
  return;
874
905
  }
875
906
  o = w();
876
907
  let i = o;
877
- S().appendChild(o), C(), r.setAttribute("aria-expanded", "true"), e.onOpenChange?.(!0, !1);
908
+ x().appendChild(o), S(), r.setAttribute("aria-expanded", "true"), e.onOpenChange?.(!0, !1);
878
909
  let a = (e) => {
879
910
  let t = e.composedPath();
880
- t.includes(i) || t.includes(r) || x(!1);
881
- }, l = () => C();
882
- t.addEventListener("pointerdown", a, !0), t.defaultView?.addEventListener("scroll", l, !0), t.defaultView?.addEventListener("resize", l), h = () => {
911
+ t.includes(i) || t.includes(r) || b(!1);
912
+ }, l = () => S();
913
+ t.addEventListener("pointerdown", a, !0), t.defaultView?.addEventListener("scroll", l, !0), t.defaultView?.addEventListener("resize", l), m = () => {
883
914
  t.removeEventListener("pointerdown", a, !0), t.defaultView?.removeEventListener("scroll", l, !0), t.defaultView?.removeEventListener("resize", l);
884
915
  }, o.addEventListener("keydown", te), n ? s?.focus() : c?.focus();
885
916
  }
886
- function x(t) {
887
- o?.remove(), o = void 0, s = void 0, c = void 0, d = "", h?.(), h = void 0, r.setAttribute("aria-expanded", "false"), e.onOpenChange?.(!1, t), t && r.focus();
917
+ function b(t) {
918
+ o?.remove(), o = void 0, s = void 0, c = void 0, d = "", m?.(), m = void 0, r.setAttribute("aria-expanded", "false"), e.onOpenChange?.(!1, t), t && r.focus();
888
919
  }
889
- function S() {
920
+ function x() {
890
921
  if (e.popoverHost !== void 0) return e.popoverHost;
891
922
  let n = r.closest(".designer");
892
923
  if (n instanceof HTMLElement) {
@@ -897,7 +928,7 @@ function qe(e) {
897
928
  }
898
929
  return r.offsetParent instanceof HTMLElement ? r.offsetParent : t.body;
899
930
  }
900
- function C() {
931
+ function S() {
901
932
  if (o === void 0) return;
902
933
  let t = (e.anchor ?? r).getBoundingClientRect();
903
934
  o.style.position = "fixed", o.style.left = `${Math.round(t.left)}px`, o.style.top = `${Math.round(t.bottom + 4)}px`, o.style.minWidth = `${Math.round(Math.min(t.width, 360))}px`, o.style.pointerEvents = "auto";
@@ -907,7 +938,7 @@ function qe(e) {
907
938
  r.className = "designer-value-ref-popover", r.dataset.valueRefPopover = "true", r.setAttribute("role", "dialog"), r.setAttribute("aria-label", n.placeholder), r.setAttribute("aria-modal", "false");
908
939
  let i = e.input.allowedKinds;
909
940
  if (r.dataset.valueRefKinds = i.join(" "), i.length > 1) {
910
- let a = _(t, {
941
+ let a = C(t, {
911
942
  ariaLabel: n.placeholder,
912
943
  className: "designer-value-ref-tabs",
913
944
  items: i.map((e) => ({
@@ -923,7 +954,7 @@ function qe(e) {
923
954
  });
924
955
  r.appendChild(a.element);
925
956
  }
926
- s = p(t, {
957
+ s = g(t, {
927
958
  type: "search",
928
959
  className: "designer-value-ref-search",
929
960
  ariaLabel: n.search,
@@ -936,9 +967,9 @@ function qe(e) {
936
967
  }), r.appendChild(s), c = t.createElement("div"), c.className = "designer-value-ref-list", c.setAttribute("role", "listbox"), c.tabIndex = -1, r.appendChild(c);
937
968
  let a = t.createElement("div");
938
969
  a.className = "designer-value-ref-footer";
939
- let o = m(t, { text: n.manage });
970
+ let o = p(t, { text: n.manage });
940
971
  return o.dataset.valueRefManage = "true", o.addEventListener("click", () => {
941
- e.onManage?.(), x(!0);
972
+ e.onManage?.(), b(!0);
942
973
  }), a.appendChild(o), r.appendChild(a), E(), r;
943
974
  }
944
975
  function T(e) {
@@ -946,7 +977,7 @@ function qe(e) {
946
977
  }
947
978
  function E() {
948
979
  if (c !== void 0) {
949
- if (u = v(), l = Math.min(l, Math.max(u.length - 1, 0)), c.replaceChildren(), u.length === 0) {
980
+ if (u = _(), l = Math.min(l, Math.max(u.length - 1, 0)), c.replaceChildren(), u.length === 0) {
950
981
  let t = d.trim().length > 0, r = t ? [{
951
982
  label: n.clearSearch,
952
983
  dataset: { valueRefClearSearch: "true" }
@@ -960,7 +991,7 @@ function qe(e) {
960
991
  i.dataset.valueRefEmpty = t ? "search" : "items";
961
992
  let o = a[0];
962
993
  o !== void 0 && (o.title = t ? n.emptySearch : n.emptyVariables, o.addEventListener("click", () => {
963
- t ? (d = "", s !== void 0 && (s.value = ""), E(), s?.focus()) : (e.onCreateVariable?.(), x(!0));
994
+ t ? (d = "", s !== void 0 && (s.value = ""), E(), s?.focus()) : (e.onCreateVariable?.(), b(!0));
964
995
  })), c.removeAttribute("aria-activedescendant");
965
996
  return;
966
997
  }
@@ -976,7 +1007,7 @@ function qe(e) {
976
1007
  }
977
1008
  function k(t) {
978
1009
  let r = ee(t);
979
- x(!0), i.textContent = n.selected(r), e.onSelect(t.value);
1010
+ b(!0), i.textContent = n.selected(r), e.onSelect(t.value);
980
1011
  }
981
1012
  function ee(e) {
982
1013
  return `${Be(e.kind, n)} ${e.label}`;
@@ -1009,22 +1040,22 @@ function qe(e) {
1009
1040
  return;
1010
1041
  }
1011
1042
  case "Escape":
1012
- e.preventDefault(), x(!0);
1043
+ e.preventDefault(), b(!0);
1013
1044
  return;
1014
1045
  case "Tab":
1015
- x(!1);
1046
+ b(!1);
1016
1047
  return;
1017
1048
  default: return;
1018
1049
  }
1019
1050
  }
1020
1051
  return r.addEventListener("click", () => {
1021
- o === void 0 ? b(!0) : x(!0);
1052
+ o === void 0 ? y(!0) : b(!0);
1022
1053
  }), r.addEventListener("keydown", (e) => {
1023
- (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), b(!0));
1054
+ (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), y(!0));
1024
1055
  }), {
1025
1056
  element: a,
1026
1057
  dispose: () => {
1027
- g || (o !== void 0 && x(!1), g = !0, f !== void 0 && clearTimeout(f), h?.(), r.replaceChildren(), a.replaceChildren());
1058
+ h || (o !== void 0 && b(!1), h = !0, f !== void 0 && clearTimeout(f), m?.(), r.replaceChildren(), a.replaceChildren());
1028
1059
  }
1029
1060
  };
1030
1061
  }
@@ -1063,7 +1094,7 @@ function F(e, t) {
1063
1094
  let o = n.createElement("summary");
1064
1095
  o.className = "designer-data-group-summary";
1065
1096
  let s = n.createElement("span");
1066
- s.className = "designer-data-group-caret", s.dataset.groupCaret = "true", s.setAttribute("aria-hidden", "true"), s.innerHTML = b("chevron-right");
1097
+ s.className = "designer-data-group-caret", s.dataset.groupCaret = "true", s.setAttribute("aria-hidden", "true"), s.innerHTML = m("chevron-right");
1067
1098
  let c = n.createElement("span");
1068
1099
  c.className = "designer-data-group-title", c.textContent = e.title;
1069
1100
  let l = n.createElement("span");
@@ -1088,10 +1119,10 @@ function et(e, t, n) {
1088
1119
  function tt(e) {
1089
1120
  let t = e.panel.ownerDocument, n = t.createElement("section");
1090
1121
  n.className = "designer-host-connection", n.dataset.dsSection = "host-link", n.dataset.inspectorSearchSection = "true", n.dataset.inspectorSearchText = [
1091
- d.dataSource.hostConnection,
1092
- d.dataSource.datasetCatalog,
1093
- d.dataSource.dataQuery,
1094
- d.dataSource.variablesChannel
1122
+ w.dataSource.hostConnection,
1123
+ w.dataSource.datasetCatalog,
1124
+ w.dataSource.dataQuery,
1125
+ w.dataSource.variablesChannel
1095
1126
  ].join(" ");
1096
1127
  let r = t.createElement("div");
1097
1128
  r.className = "designer-host-connection-statuses", r.append(...at(t, e.link));
@@ -1100,17 +1131,17 @@ function tt(e) {
1100
1131
  ownerDocument: t,
1101
1132
  section: "host-link",
1102
1133
  group: "host-link",
1103
- title: d.data.groups.hostLink,
1134
+ title: w.data.groups.hostLink,
1104
1135
  summary: nt(e),
1105
1136
  defaultOpen: rt(e.link) || it(e.link),
1106
1137
  overrides: e.groupOpenOverrides,
1107
1138
  onToggle: e.onToggleGroup
1108
1139
  }, i)), rt(e.link)) {
1109
1140
  let e = t.createElement("p");
1110
- e.className = "designer-host-connection-hint", e.textContent = d.dataSource.linkUnavailableHint, n.appendChild(e);
1141
+ e.className = "designer-host-connection-hint", e.textContent = w.dataSource.linkUnavailableHint, n.appendChild(e);
1111
1142
  }
1112
1143
  if (it(e.link)) {
1113
- let e = m(t, { text: d.dataSource.linkRetry });
1144
+ let e = p(t, { text: w.dataSource.linkRetry });
1114
1145
  e.dataset.datasetAction = "retry-link", n.appendChild(e);
1115
1146
  }
1116
1147
  return n;
@@ -1121,7 +1152,7 @@ function nt(e) {
1121
1152
  e.link.query,
1122
1153
  e.link.variables
1123
1154
  ], n = t.filter((e) => e.status === "ready").length;
1124
- return d.data.groups.channelsReady(n, t.length);
1155
+ return w.data.groups.channelsReady(n, t.length);
1125
1156
  }
1126
1157
  function rt(e) {
1127
1158
  return [
@@ -1139,18 +1170,18 @@ function it(e) {
1139
1170
  }
1140
1171
  function at(e, t) {
1141
1172
  return [
1142
- st(e, d.dataSource.datasetCatalog, t.catalog),
1143
- st(e, d.dataSource.dataQuery, t.query),
1144
- st(e, d.dataSource.variablesChannel, t.variables)
1173
+ st(e, w.dataSource.datasetCatalog, t.catalog),
1174
+ st(e, w.dataSource.dataQuery, t.query),
1175
+ st(e, w.dataSource.variablesChannel, t.variables)
1145
1176
  ];
1146
1177
  }
1147
1178
  function ot(e, t) {
1148
1179
  let n = e.createElement("div");
1149
- n.className = "designer-dataset-health", n.dataset.datasetHealth = "true", n.setAttribute("aria-label", d.dataSource.hostConnection);
1180
+ n.className = "designer-dataset-health", n.dataset.datasetHealth = "true", n.setAttribute("aria-label", w.dataSource.hostConnection);
1150
1181
  for (let [r, i] of [
1151
- [d.dataSource.datasetCatalogShort, t.catalog],
1152
- [d.dataSource.dataQueryShort, t.query],
1153
- [d.dataSource.variablesChannelShort, t.variables]
1182
+ [w.dataSource.datasetCatalogShort, t.catalog],
1183
+ [w.dataSource.dataQueryShort, t.query],
1184
+ [w.dataSource.variablesChannelShort, t.variables]
1154
1185
  ]) {
1155
1186
  let t = e.createElement("span");
1156
1187
  t.className = "designer-dataset-health-item", t.dataset.linkStatus = i.status, t.dataset.state = i.status === "ready" ? "ready" : i.status === "loading" ? "loading" : i.status === "error" ? "error" : "na";
@@ -1170,42 +1201,42 @@ function st(e, t, n) {
1170
1201
  return a.textContent = `${t} · ${ct(n.status)}${o}`, r.dataset.tip = a.textContent, r.append(i, a), r;
1171
1202
  }
1172
1203
  function ct(e) {
1173
- return e === "ready" ? d.dataSource.linkReady : e === "loading" ? d.dataSource.linkLoading : e === "error" ? d.dataSource.linkError : d.dataSource.linkUnavailable;
1204
+ return e === "ready" ? w.dataSource.linkReady : e === "loading" ? w.dataSource.linkLoading : e === "error" ? w.dataSource.linkError : w.dataSource.linkUnavailable;
1174
1205
  }
1175
1206
  function lt(e) {
1176
1207
  let t = e.panel.ownerDocument, n = t.createElement("section");
1177
- n.className = "designer-dataset-browser designer-dataset-picker-placeholder", n.dataset.dsSection = "source", n.dataset.datasetPickerPlaceholder = "true", n.dataset.inspectorSearchSection = "true", n.dataset.inspectorSearchText = d.dataset.select;
1208
+ n.className = "designer-dataset-browser designer-dataset-picker-placeholder", n.dataset.dsSection = "source", n.dataset.datasetPickerPlaceholder = "true", n.dataset.inspectorSearchSection = "true", n.dataset.inspectorSearchText = w.dataset.select;
1178
1209
  let r = t.createElement("p");
1179
- r.className = "designer-empty-state", r.textContent = d.dataSource.pickerPlaceholder;
1180
- let i = m(t, { text: d.dataSource.sourceChange });
1210
+ r.className = "designer-empty-state", r.textContent = w.dataSource.pickerPlaceholder;
1211
+ let i = p(t, { text: w.dataSource.sourceChange });
1181
1212
  return i.dataset.datasetChange = "true", n.append(r, i), n;
1182
1213
  }
1183
1214
  function ut(e) {
1184
1215
  let t = e.panel.ownerDocument.createElement("section");
1185
1216
  t.className = "designer-dataset-browser", t.dataset.dsSection = "source", t.dataset.inspectorSearchSection = "true", t.dataset.inspectorSearchText = [
1186
- d.dataset.select,
1187
- d.dataset.search,
1217
+ w.dataset.select,
1218
+ w.dataset.search,
1188
1219
  ...e.items.flatMap((e) => [e.name, e.description ?? ""])
1189
1220
  ].join(" ");
1190
1221
  let n = e.panel.ownerDocument.createElement("h4");
1191
- n.textContent = d.dataset.select;
1192
- let r = p(e.panel.ownerDocument, {
1193
- ariaLabel: d.dataset.search,
1194
- placeholder: d.dataset.search,
1222
+ n.textContent = w.dataset.select;
1223
+ let r = g(e.panel.ownerDocument, {
1224
+ ariaLabel: w.dataset.search,
1225
+ placeholder: w.dataset.search,
1195
1226
  type: "search",
1196
1227
  value: e.query
1197
1228
  });
1198
1229
  r.dataset.datasetQuery = "true", t.append(n);
1199
1230
  let i = dt(e);
1200
- return i !== void 0 && t.appendChild(i), t.append(r, ft(e)), t;
1231
+ return i !== void 0 && t.appendChild(i), t.append(r, I(e)), t;
1201
1232
  }
1202
1233
  function dt(e) {
1203
1234
  if (e.groups === void 0 || e.groups.length === 0) return;
1204
- let t = e.panel.ownerDocument, n = e.groupId ?? "", r = S(t, {
1205
- ariaLabel: d.dataset.group,
1235
+ let t = e.panel.ownerDocument, n = e.groupId ?? "", r = d(t, {
1236
+ ariaLabel: w.dataset.group,
1206
1237
  className: "designer-source-sheet-group",
1207
1238
  options: [{
1208
- label: d.dataset.allGroups,
1239
+ label: w.dataset.allGroups,
1209
1240
  selected: n === "",
1210
1241
  value: ""
1211
1242
  }, ...e.groups.map((e) => ({
@@ -1215,38 +1246,38 @@ function dt(e) {
1215
1246
  }))],
1216
1247
  value: n
1217
1248
  });
1218
- return r.dataset.datasetGroup = "true", C(r).element;
1249
+ return r.dataset.datasetGroup = "true", T(r).element;
1219
1250
  }
1220
- function ft(e) {
1251
+ function I(e) {
1221
1252
  let t = e.panel.ownerDocument, n = t.createElement("div");
1222
1253
  n.className = "designer-dataset-list", n.dataset.datasetResults = "true";
1223
- let r = pt(e);
1224
- if (r === void 0) for (let r of e.items) n.appendChild(ht(t, r, e.descriptor));
1225
- else for (let e of mt(r)) {
1254
+ let r = ft(e);
1255
+ if (r === void 0) for (let r of e.items) n.appendChild(mt(t, r, e.descriptor));
1256
+ else for (let e of pt(r)) {
1226
1257
  let r = t.createElement("p");
1227
1258
  r.className = "designer-empty-state", r.textContent = e, n.appendChild(r);
1228
1259
  }
1229
- if (e.cursor !== void 0) {
1230
- let e = m(t, { text: d.dataset.loadMore });
1260
+ if (e.cursor !== void 0 && e.catalogPaged !== !0) {
1261
+ let e = p(t, { text: w.dataset.loadMore });
1231
1262
  e.dataset.datasetLoadMore = "true", n.appendChild(e);
1232
1263
  }
1233
1264
  return n;
1234
1265
  }
1235
- function pt(e) {
1266
+ function ft(e) {
1236
1267
  if (!(e.items.length > 0)) return e.catalogAvailable ? e.query.trim() === "" ? "empty" : "no-match" : "unavailable";
1237
1268
  }
1238
- function mt(e) {
1239
- return e === "unavailable" ? [d.dataset.unavailable, d.dataset.unavailableHint] : [e === "no-match" ? d.dataset.noMatch : d.dataset.empty];
1269
+ function pt(e) {
1270
+ return e === "unavailable" ? [w.dataset.unavailable, w.dataset.unavailableHint] : [e === "no-match" ? w.dataset.noMatch : w.dataset.empty];
1240
1271
  }
1241
- function ht(e, t, n) {
1242
- let r = n?.datasetId === t.datasetId, i = m(e, {
1272
+ function mt(e, t, n) {
1273
+ let r = n?.datasetId === t.datasetId, i = p(e, {
1243
1274
  ariaLabel: t.description === null ? t.name : t.name + ":" + t.description,
1244
1275
  className: "designer-dataset-item",
1245
1276
  pressed: r
1246
1277
  });
1247
1278
  i.dataset.datasetResourceId = t.datasetId;
1248
1279
  let a = e.createElement("span");
1249
- a.className = "designer-dataset-item-glyph", a.setAttribute("aria-hidden", "true"), a.innerHTML = b("table");
1280
+ a.className = "designer-dataset-item-glyph", a.setAttribute("aria-hidden", "true"), a.innerHTML = m("table");
1250
1281
  let o = e.createElement("span");
1251
1282
  o.className = "designer-dataset-item-copy";
1252
1283
  let s = e.createElement("span");
@@ -1254,7 +1285,7 @@ function ht(e, t, n) {
1254
1285
  let c = e.createElement("strong");
1255
1286
  if (c.textContent = t.name, s.appendChild(c), r) {
1256
1287
  let t = e.createElement("span");
1257
- t.className = "designer-dataset-item-current", t.textContent = d.dataset.currentTag, s.appendChild(t);
1288
+ t.className = "designer-dataset-item-current", t.textContent = w.dataset.currentTag, s.appendChild(t);
1258
1289
  }
1259
1290
  let l = e.createElement("small");
1260
1291
  if (l.className = "designer-dataset-item-key", l.textContent = t.datasetId, o.append(s, l), t.description !== null && t.description.length > 0) {
@@ -1262,16 +1293,16 @@ function ht(e, t, n) {
1262
1293
  n.className = "designer-dataset-item-description", n.textContent = t.description, o.appendChild(n);
1263
1294
  }
1264
1295
  let u = e.createElement("span");
1265
- return u.className = "designer-dataset-item-action", u.textContent = r ? "" : d.dataset.use, i.append(a, o, u), i;
1296
+ return u.className = "designer-dataset-item-action", u.textContent = r ? "" : w.dataset.use, i.append(a, o, u), i;
1266
1297
  }
1267
- var gt = 42, _t = 16;
1268
- function vt(e, t) {
1298
+ var ht = 42, gt = 16;
1299
+ function _t(e, t) {
1269
1300
  let n = e.ownerDocument, r = n.createElement("span");
1270
1301
  r.className = "designer-date-field";
1271
1302
  let i = n.createElement("span");
1272
1303
  i.className = "designer-date-field-anchor";
1273
1304
  let a = n.createElement("button");
1274
- a.type = "button", a.className = "designer-date-field-trigger", a.setAttribute("aria-haspopup", "dialog"), a.setAttribute("aria-expanded", "false"), a.setAttribute("aria-label", d.calendar.open(t.label)), a.innerHTML = b("calendar");
1305
+ a.type = "button", a.className = "designer-date-field-trigger", a.setAttribute("aria-haspopup", "dialog"), a.setAttribute("aria-expanded", "false"), a.setAttribute("aria-label", w.calendar.open(t.label)), a.innerHTML = m("calendar");
1275
1306
  let o = n.createElement("section");
1276
1307
  o.className = "designer-calendar-popover", o.setAttribute("role", "dialog"), o.setAttribute("aria-label", t.label), o.hidden = !0, e.classList.add("designer-date-field-input");
1277
1308
  let s = e.parentElement;
@@ -1280,69 +1311,69 @@ function vt(e, t) {
1280
1311
  c.className = "designer-calendar-title";
1281
1312
  let l = n.createElement("header");
1282
1313
  l.className = "designer-calendar-head";
1283
- let u = yt(n, "chevron-left", d.calendar.previousMonth), f = yt(n, "chevron-right", d.calendar.nextMonth);
1284
- l.append(u, c, f);
1285
- let p = n.createElement("div");
1286
- p.className = "designer-calendar-weekdays", p.setAttribute("aria-hidden", "true");
1287
- for (let e of d.calendar.weekdays) {
1314
+ let u = vt(n, "chevron-left", w.calendar.previousMonth), d = vt(n, "chevron-right", w.calendar.nextMonth);
1315
+ l.append(u, c, d);
1316
+ let f = n.createElement("div");
1317
+ f.className = "designer-calendar-weekdays", f.setAttribute("aria-hidden", "true");
1318
+ for (let e of w.calendar.weekdays) {
1288
1319
  let t = n.createElement("span");
1289
- t.textContent = e, p.appendChild(t);
1320
+ t.textContent = e, f.appendChild(t);
1290
1321
  }
1291
- let m = n.createElement("div");
1292
- m.className = "designer-calendar-grid", m.setAttribute("role", "grid"), m.setAttribute("aria-label", t.label);
1322
+ let p = n.createElement("div");
1323
+ p.className = "designer-calendar-grid", p.setAttribute("role", "grid"), p.setAttribute("aria-label", t.label);
1293
1324
  let h = n.createElement("footer");
1294
1325
  h.className = "designer-calendar-foot";
1295
1326
  let g = n.createElement("button");
1296
- g.type = "button", g.className = "designer-calendar-action", g.textContent = d.calendar.today;
1327
+ g.type = "button", g.className = "designer-calendar-action", g.textContent = w.calendar.today;
1297
1328
  let _ = n.createElement("span");
1298
- _.className = "designer-calendar-foot-value", h.append(g, _), o.append(l, p, m, h);
1299
- let v = I(e.value), y = {
1329
+ _.className = "designer-calendar-foot-value", h.append(g, _), o.append(l, f, p, h);
1330
+ let v = L(e.value), y = {
1300
1331
  year: (v ?? /* @__PURE__ */ new Date()).getFullYear(),
1301
1332
  month: (v ?? /* @__PURE__ */ new Date()).getMonth()
1333
+ }, b = () => {
1334
+ _.textContent = v === void 0 ? w.calendar.unset : R(v);
1302
1335
  }, x = () => {
1303
- _.textContent = v === void 0 ? d.calendar.unset : L(v);
1304
- }, S = () => {
1305
- let e = v === void 0 ? "" : L(v), t = bt();
1306
- for (let n of m.querySelectorAll("[data-calendar-day]")) {
1336
+ let e = v === void 0 ? "" : R(v), t = yt();
1337
+ for (let n of p.querySelectorAll("[data-calendar-day]")) {
1307
1338
  let r = n.dataset.calendarDay ?? "";
1308
- n.dataset.selected = String(r === e), n.dataset.today = String(r === L(t)), n.tabIndex = r === e || e === "" && n.dataset.inView === "true" ? 0 : -1;
1339
+ n.dataset.selected = String(r === e), n.dataset.today = String(r === R(t)), n.tabIndex = r === e || e === "" && n.dataset.inView === "true" ? 0 : -1;
1309
1340
  }
1310
- x();
1311
- }, C = () => {
1312
- c.textContent = d.calendar.monthTitle(y.year, y.month + 1);
1341
+ b();
1342
+ }, S = () => {
1343
+ c.textContent = w.calendar.monthTitle(y.year, y.month + 1);
1313
1344
  let e = (new Date(y.year, y.month, 1).getDay() + 6) % 7, t = new Date(y.year, y.month, 1 - e);
1314
- m.replaceChildren();
1315
- for (let e = 0; e < gt; e++) {
1345
+ p.replaceChildren();
1346
+ for (let e = 0; e < ht; e++) {
1316
1347
  let r = new Date(t.getFullYear(), t.getMonth(), t.getDate() + e), i = n.createElement("button");
1317
- i.type = "button", i.className = "designer-calendar-day", i.dataset.calendarDay = L(r), i.dataset.inView = String(r.getMonth() === y.month), i.dataset.outside = String(r.getMonth() !== y.month), i.setAttribute("aria-label", L(r)), i.textContent = String(r.getDate()), m.appendChild(i);
1348
+ i.type = "button", i.className = "designer-calendar-day", i.dataset.calendarDay = R(r), i.dataset.inView = String(r.getMonth() === y.month), i.dataset.outside = String(r.getMonth() !== y.month), i.setAttribute("aria-label", R(r)), i.textContent = String(r.getDate()), p.appendChild(i);
1318
1349
  }
1319
- S();
1320
- }, w = (e) => {
1321
- m.querySelector(`[data-calendar-day="${L(e)}"]`)?.focus({ preventScroll: !0 });
1350
+ x();
1351
+ }, C = (e) => {
1352
+ p.querySelector(`[data-calendar-day="${R(e)}"]`)?.focus({ preventScroll: !0 });
1322
1353
  }, T = (e) => {
1323
1354
  if (v = e, e.getFullYear() !== y.year || e.getMonth() !== y.month) {
1324
1355
  y = {
1325
1356
  year: e.getFullYear(),
1326
1357
  month: e.getMonth()
1327
- }, C();
1358
+ }, S();
1328
1359
  return;
1329
1360
  }
1330
- S();
1361
+ x();
1331
1362
  }, E = () => {
1332
- e.value = v === void 0 ? "" : L(v), e.dispatchEvent(new Event("change", {
1363
+ e.value = v === void 0 ? "" : R(v), e.dispatchEvent(new Event("change", {
1333
1364
  bubbles: !0,
1334
1365
  composed: !0
1335
1366
  }));
1336
1367
  }, D = () => {
1337
- let t = I(e.value);
1368
+ let t = L(e.value);
1338
1369
  t !== void 0 && (v = t);
1339
1370
  let i = v ?? /* @__PURE__ */ new Date();
1340
1371
  y = {
1341
1372
  year: i.getFullYear(),
1342
1373
  month: i.getMonth()
1343
- }, o.hidden = !1, a.setAttribute("aria-expanded", "true"), r.dataset.open = "true", C();
1374
+ }, o.hidden = !1, a.setAttribute("aria-expanded", "true"), r.dataset.open = "true", S();
1344
1375
  let s = a.getBoundingClientRect(), c = n.defaultView;
1345
- c !== null && (o.dataset.side = c.innerHeight - s.bottom < o.offsetHeight + _t && s.top > o.offsetHeight + _t ? "top" : "bottom"), w(i);
1376
+ c !== null && (o.dataset.side = c.innerHeight - s.bottom < o.offsetHeight + gt && s.top > o.offsetHeight + gt ? "top" : "bottom"), C(i);
1346
1377
  }, O = (e) => {
1347
1378
  o.hidden = !0, a.setAttribute("aria-expanded", "false"), r.dataset.open = "false", e && a.focus({ preventScroll: !0 });
1348
1379
  };
@@ -1355,25 +1386,25 @@ function vt(e, t) {
1355
1386
  y = {
1356
1387
  year: e.getFullYear(),
1357
1388
  month: e.getMonth()
1358
- }, C();
1359
- }), f.addEventListener("click", () => {
1389
+ }, S();
1390
+ }), d.addEventListener("click", () => {
1360
1391
  let e = new Date(y.year, y.month + 1, 1);
1361
1392
  y = {
1362
1393
  year: e.getFullYear(),
1363
1394
  month: e.getMonth()
1364
- }, C();
1395
+ }, S();
1365
1396
  }), g.addEventListener("click", () => {
1366
- let e = bt();
1367
- T(e), E(), w(e);
1368
- }), m.addEventListener("click", (e) => {
1397
+ let e = yt();
1398
+ T(e), E(), C(e);
1399
+ }), p.addEventListener("click", (e) => {
1369
1400
  let t = e.target?.closest("[data-calendar-day]");
1370
1401
  if (t == null) return;
1371
- let n = I(t.dataset.calendarDay ?? "");
1372
- n !== void 0 && (T(n), E(), w(n));
1373
- }), m.addEventListener("keydown", (e) => {
1402
+ let n = L(t.dataset.calendarDay ?? "");
1403
+ n !== void 0 && (T(n), E(), C(n));
1404
+ }), p.addEventListener("keydown", (e) => {
1374
1405
  let t = e.target?.closest("[data-calendar-day]");
1375
1406
  if (t == null) return;
1376
- let n = I(t.dataset.calendarDay ?? "");
1407
+ let n = L(t.dataset.calendarDay ?? "");
1377
1408
  if (n === void 0) return;
1378
1409
  let r = e.key === "ArrowLeft" ? -1 : e.key === "ArrowRight" ? 1 : e.key === "ArrowUp" ? -7 : e.key === "ArrowDown" ? 7 : 0;
1379
1410
  if (r !== 0) {
@@ -1382,7 +1413,7 @@ function vt(e, t) {
1382
1413
  (t.getMonth() !== y.month || t.getFullYear() !== y.year) && (y = {
1383
1414
  year: t.getFullYear(),
1384
1415
  month: t.getMonth()
1385
- }, C()), w(t);
1416
+ }, S()), C(t);
1386
1417
  return;
1387
1418
  }
1388
1419
  if (e.key === "PageUp" || e.key === "PageDown") {
@@ -1391,24 +1422,24 @@ function vt(e, t) {
1391
1422
  y = {
1392
1423
  year: r.getFullYear(),
1393
1424
  month: r.getMonth()
1394
- }, C(), w(a);
1425
+ }, S(), C(a);
1395
1426
  return;
1396
1427
  }
1397
1428
  if (e.key === "Home" || e.key === "End") {
1398
1429
  e.preventDefault();
1399
1430
  let t = new Date(y.year, y.month + 1, 0).getDate();
1400
- w(new Date(y.year, y.month, e.key === "Home" ? 1 : t));
1431
+ C(new Date(y.year, y.month, e.key === "Home" ? 1 : t));
1401
1432
  }
1402
1433
  }), e.addEventListener("change", () => {
1403
- let t = I(e.value);
1434
+ let t = L(e.value);
1404
1435
  if (t === void 0) {
1405
- e.value = v === void 0 ? "" : L(v);
1436
+ e.value = v === void 0 ? "" : R(v);
1406
1437
  return;
1407
1438
  }
1408
1439
  v = t, y = {
1409
1440
  year: t.getFullYear(),
1410
1441
  month: t.getMonth()
1411
- }, o.hidden || C();
1442
+ }, o.hidden || S();
1412
1443
  }), e.addEventListener("keydown", (e) => {
1413
1444
  e.key === "ArrowDown" && o.hidden && (e.preventDefault(), D());
1414
1445
  }), o.addEventListener("keydown", (e) => {
@@ -1423,7 +1454,7 @@ function vt(e, t) {
1423
1454
  let n = t.composedPath()[0] ?? t.target;
1424
1455
  n instanceof Node && r.contains(n) || O(!1);
1425
1456
  };
1426
- return e.ownerDocument.addEventListener("pointerdown", k, !0), C(), {
1457
+ return e.ownerDocument.addEventListener("pointerdown", k, !0), S(), {
1427
1458
  element: r,
1428
1459
  open: D,
1429
1460
  close: () => O(!1),
@@ -1432,52 +1463,52 @@ function vt(e, t) {
1432
1463
  }
1433
1464
  };
1434
1465
  }
1435
- function yt(e, t, n) {
1466
+ function vt(e, t, n) {
1436
1467
  let r = e.createElement("button");
1437
- return r.type = "button", r.className = "designer-calendar-nav", r.setAttribute("aria-label", n), r.innerHTML = b(t), r;
1468
+ return r.type = "button", r.className = "designer-calendar-nav", r.setAttribute("aria-label", n), r.innerHTML = m(t), r;
1438
1469
  }
1439
- function I(e) {
1470
+ function L(e) {
1440
1471
  let t = /^(\d{4})[/.-](\d{1,2})[/.-](\d{1,2})$/.exec(e.trim());
1441
1472
  if (t === null) return;
1442
1473
  let n = Number(t[1]), r = Number(t[2]), i = Number(t[3]), a = new Date(n, r - 1, i);
1443
1474
  if (a.getFullYear() === n && a.getMonth() === r - 1 && a.getDate() === i) return a;
1444
1475
  }
1445
- function L(e) {
1476
+ function R(e) {
1446
1477
  let t = (e) => e < 10 ? `0${e}` : String(e);
1447
1478
  return `${e.getFullYear()}-${t(e.getMonth() + 1)}-${t(e.getDate())}`;
1448
1479
  }
1449
- function bt() {
1480
+ function yt() {
1450
1481
  let e = /* @__PURE__ */ new Date();
1451
1482
  return e.setHours(0, 0, 0, 0), e;
1452
1483
  }
1453
- function xt(e, t, n, r) {
1454
- let i = t.parameters.find((e) => e.name === n), a = i.valueType === "boolean" ? w(e, { ariaLabel: d.dataset.parameterValueLabel(i.label) }) : p(e, {
1455
- ariaLabel: d.dataset.parameterValueLabel(i.label),
1484
+ function bt(e, t, n, r) {
1485
+ let i = t.parameters.find((e) => e.name === n), a = i.valueType === "boolean" ? b(e, { ariaLabel: w.dataset.parameterValueLabel(i.label) }) : g(e, {
1486
+ ariaLabel: w.dataset.parameterValueLabel(i.label),
1456
1487
  appearance: i.valueType === "number" ? "number" : "text",
1457
- ...i.valueType === "date" ? { placeholder: d.dataset.parameterDatePlaceholder } : {},
1488
+ ...i.valueType === "date" ? { placeholder: w.dataset.parameterDatePlaceholder } : {},
1458
1489
  ...i.minimum === void 0 ? {} : { min: i.minimum },
1459
1490
  ...i.maximum === void 0 ? {} : { max: i.maximum }
1460
1491
  });
1461
- return a.dataset.valueRefInline = `parameter:${i.name}`, a.dataset.datasetParameter = i.name, Tt(a, i, r), a.required = i.required, i.maxLength !== void 0 && (a.maxLength = i.maxLength), i.valueType === "date" ? vt(a, { label: i.label }).element : a;
1492
+ return a.dataset.valueRefInline = `parameter:${i.name}`, a.dataset.datasetParameter = i.name, wt(a, i, r), a.required = i.required, i.maxLength !== void 0 && (a.maxLength = i.maxLength), i.valueType === "date" ? _t(a, { label: i.label }).element : a;
1462
1493
  }
1463
- function St(e, t, n) {
1494
+ function xt(e, t, n) {
1464
1495
  let r = e.createElement("section");
1465
1496
  r.tabIndex = -1, r.className = "designer-dataset-config-section", r.dataset.inspectorSearchSection = "true", n !== void 0 && (r.dataset.workbenchSection = n);
1466
1497
  let i = e.createElement("h4");
1467
1498
  return i.className = "designer-inspector-section-title", i.textContent = t, r.appendChild(i), r;
1468
1499
  }
1469
- function Ct(e, t, n) {
1500
+ function St(e, t, n) {
1470
1501
  let r = e.createElement("div");
1471
- return r.className = "designer-dataset-actions", r.append(wt(e, "apply", d.dataSource.apply("dataset"), t || !n, "primary"), wt(e, "refresh", d.dataset.refresh, t, "ghost")), r;
1502
+ return r.className = "designer-dataset-actions", r.append(Ct(e, "apply", w.dataSource.apply("dataset"), t || !n, "primary"), Ct(e, "refresh", w.dataset.refresh, t, "ghost")), r;
1472
1503
  }
1473
- function wt(e, t, n, r, i) {
1474
- let a = m(e, {
1504
+ function Ct(e, t, n, r, i) {
1505
+ let a = p(e, {
1475
1506
  disabled: r,
1476
1507
  text: n
1477
1508
  });
1478
1509
  return a.dataset.datasetAction = t, a.dataset.variant = i, a;
1479
1510
  }
1480
- function Tt(e, t, n) {
1511
+ function wt(e, t, n) {
1481
1512
  let r = n !== void 0 && n.kind === "inline" ? n.value : t.defaultValue;
1482
1513
  if (e instanceof HTMLInputElement && t.valueType === "boolean") {
1483
1514
  e.checked = r === !0, e.value = String(e.checked);
@@ -1485,41 +1516,41 @@ function Tt(e, t, n) {
1485
1516
  }
1486
1517
  e.value = String(r ?? "");
1487
1518
  }
1488
- var R = /* @__PURE__ */ new WeakMap();
1489
- function Et(e) {
1490
- let t = R.get(e);
1519
+ var z = /* @__PURE__ */ new WeakMap();
1520
+ function Tt(e) {
1521
+ let t = z.get(e);
1491
1522
  if (t !== void 0) {
1492
1523
  for (let e of t) e();
1493
- R.delete(e);
1524
+ z.delete(e);
1494
1525
  }
1495
1526
  }
1496
- function Dt(e) {
1497
- for (let t of e.querySelectorAll("[data-ds-section]")) Et(t);
1527
+ function Et(e) {
1528
+ for (let t of e.querySelectorAll("[data-ds-section]")) Tt(t);
1498
1529
  }
1499
- function Ot(e, t) {
1500
- let n = R.get(e);
1501
- n === void 0 ? R.set(e, [t]) : n.push(t);
1530
+ function Dt(e, t) {
1531
+ let n = z.get(e);
1532
+ n === void 0 ? z.set(e, [t]) : n.push(t);
1502
1533
  }
1503
- function kt(e) {
1534
+ function Ot(e) {
1504
1535
  return e.querySelector(".designer-inspector-section-title")?.remove(), e;
1505
1536
  }
1506
- function At(e) {
1537
+ function kt(e) {
1507
1538
  let t = e.roles.flatMap((t) => {
1508
1539
  let n = e.draft?.fields[t.id] ?? [];
1509
1540
  if (n.length === 0) return [];
1510
1541
  let r = n.map((t) => e.descriptor.fields.find((e) => e.id === t)?.label ?? t);
1511
- return [`${d.dataset.bindingRole(t.id)} ${r.join("、")}`];
1542
+ return [`${w.dataset.bindingRole(t.id)} ${r.join("、")}`];
1512
1543
  });
1513
- return t.length === 0 ? d.data.groups.mappingEmpty : t.join(" · ");
1544
+ return t.length === 0 ? w.data.groups.mappingEmpty : t.join(" · ");
1514
1545
  }
1515
- var jt = {
1516
- ...d.data.ref,
1546
+ var At = {
1547
+ ...w.data.ref,
1517
1548
  tab: {
1518
- ...d.data.ref.tab,
1519
- inline: d.dataset.literal
1549
+ ...w.data.ref.tab,
1550
+ inline: w.dataset.literal
1520
1551
  }
1521
1552
  };
1522
- function Mt(e) {
1553
+ function jt(e) {
1523
1554
  let t = e.panel.ownerDocument, n = t.createElement("div");
1524
1555
  n.dataset.datasetDescriptor = "true", n.dataset.dsSection = "source", n.className = "designer-dataset-descriptor";
1525
1556
  let r = e.groupOpenOverrides ?? /* @__PURE__ */ new Map(), i = P(e.descriptor, e.draft);
@@ -1527,47 +1558,47 @@ function Mt(e) {
1527
1558
  ownerDocument: t,
1528
1559
  section: "source",
1529
1560
  group: "source",
1530
- title: d.data.groups.source,
1561
+ title: w.data.groups.source,
1531
1562
  summary: e.descriptor.name,
1532
1563
  defaultOpen: !0,
1533
1564
  overrides: r,
1534
1565
  onToggle: e.onToggleGroup
1535
- }, [Pt(t, e)]), F({
1566
+ }, [Nt(t, e)]), F({
1536
1567
  ownerDocument: t,
1537
1568
  section: "source",
1538
1569
  group: "mapping",
1539
- title: d.data.groups.mapping,
1540
- summary: At(e),
1570
+ title: w.data.groups.mapping,
1571
+ summary: kt(e),
1541
1572
  defaultOpen: !0,
1542
1573
  overrides: r,
1543
1574
  onToggle: e.onToggleGroup,
1544
- action: Nt(t, e)
1545
- }, [kt(Rt(t, e))]), F({
1575
+ action: Mt(t, e)
1576
+ }, [Ot(Lt(t, e))]), F({
1546
1577
  ownerDocument: t,
1547
1578
  section: "source",
1548
1579
  group: "parameters",
1549
- title: d.data.groups.parameters,
1550
- summary: i > 0 ? d.dataSource.parametersSummary(e.descriptor.parameters.length, i) : d.dataSource.parametersFilled(e.descriptor.parameters.length),
1580
+ title: w.data.groups.parameters,
1581
+ summary: i > 0 ? w.dataSource.parametersSummary(e.descriptor.parameters.length, i) : w.dataSource.parametersFilled(e.descriptor.parameters.length),
1551
1582
  defaultOpen: i > 0,
1552
1583
  overrides: r,
1553
1584
  onToggle: e.onToggleGroup
1554
- }, [kt(It(t, e))])), e.descriptor.parameters.length === 0 && n.querySelector("[data-details-group=\"parameters\"]")?.remove(), e.includeActions !== !1 && n.appendChild(Ct(n.ownerDocument, !e.resourceAvailable, et(e.descriptor, e.draft, e.roles))), n;
1585
+ }, [Ot(Ft(t, e))])), e.descriptor.parameters.length === 0 && n.querySelector("[data-details-group=\"parameters\"]")?.remove(), e.includeActions !== !1 && n.appendChild(St(n.ownerDocument, !e.resourceAvailable, et(e.descriptor, e.draft, e.roles))), n;
1555
1586
  }
1556
- function Nt(e, t) {
1557
- let n = m(e, {
1587
+ function Mt(e, t) {
1588
+ let n = p(e, {
1558
1589
  className: "designer-dataset-auto-match",
1559
1590
  disabled: t.roles.length === 0 || t.descriptor.fields.length === 0,
1560
- text: d.dataset.autoMatch
1591
+ text: w.dataset.autoMatch
1561
1592
  });
1562
1593
  return n.dataset.datasetAutoMatch = "true", n;
1563
1594
  }
1564
- function Pt(e, t) {
1595
+ function Nt(e, t) {
1565
1596
  let n = t.descriptor, r = e.createElement("section");
1566
1597
  r.className = "designer-dataset-summary", r.dataset.workbenchSection = "source", r.dataset.inspectorSearchSection = "true", r.tabIndex = -1;
1567
1598
  let i = e.createElement("div");
1568
1599
  i.className = "designer-dataset-summary-header";
1569
1600
  let a = e.createElement("span");
1570
- a.className = "designer-dataset-summary-mark", a.setAttribute("aria-hidden", "true"), a.innerHTML = b("table");
1601
+ a.className = "designer-dataset-summary-mark", a.setAttribute("aria-hidden", "true"), a.innerHTML = m("table");
1571
1602
  let o = e.createElement("div");
1572
1603
  o.className = "designer-dataset-summary-copy";
1573
1604
  let s = e.createElement("div");
@@ -1575,44 +1606,44 @@ function Pt(e, t) {
1575
1606
  let c = e.createElement("strong");
1576
1607
  c.className = "designer-dataset-summary-title", c.textContent = n.name;
1577
1608
  let l = e.createElement("span");
1578
- l.className = "designer-dataset-summary-kind", l.textContent = d.dataset.kindBadge, s.append(c, l);
1609
+ l.className = "designer-dataset-summary-kind", l.textContent = w.dataset.kindBadge, s.append(c, l);
1579
1610
  let u = e.createElement("span");
1580
1611
  u.className = "designer-dataset-summary-key", u.dataset.datasetSourceKey = "true", u.textContent = n.datasetId, u.title = n.datasetId, o.append(s, u);
1581
- let f = m(e, {
1612
+ let d = p(e, {
1582
1613
  size: "compact",
1583
- text: d.dataSource.sourceChange,
1614
+ text: w.dataSource.sourceChange,
1584
1615
  variant: "ghost"
1585
1616
  });
1586
- return f.dataset.datasetChange = "true", i.append(a, o, f), r.appendChild(i), n.description !== null && n.description.length > 0 && (i.dataset.tip = n.description, i.setAttribute("aria-description", n.description)), Ft(e, r, t), t.surface === "inspector" && r.appendChild(ot(e, t.link)), r;
1617
+ return d.dataset.datasetChange = "true", i.append(a, o, d), r.appendChild(i), n.description !== null && n.description.length > 0 && (i.dataset.tip = n.description, i.setAttribute("aria-description", n.description)), Pt(e, r, t), t.surface === "inspector" && r.appendChild(ot(e, t.link)), r;
1587
1618
  }
1588
- function Ft(e, t, n) {
1619
+ function Pt(e, t, n) {
1589
1620
  let r = n.instances ?? [], i = n.selectedInstanceId ?? null;
1590
1621
  if (r.length === 0 && i === null) return;
1591
1622
  let a = v(e, {
1592
- label: d.dataset.instance,
1623
+ label: w.dataset.instance,
1593
1624
  className: "designer-dataset-instance",
1594
1625
  controlClassName: "designer-dataset-instance-control"
1595
- }), o = S(e, { options: [{
1626
+ }), o = d(e, { options: [{
1596
1627
  value: "",
1597
- label: d.dataset.instanceAuto,
1628
+ label: w.dataset.instanceAuto,
1598
1629
  selected: i === null
1599
1630
  }, ...r.map((e) => ({
1600
1631
  value: e.id,
1601
1632
  label: e.name === e.id ? e.id : `${e.name} · ${e.id}`,
1602
1633
  selected: e.id === i
1603
1634
  }))] });
1604
- o.dataset.datasetInstanceSelect = "", a.control.appendChild(C(o).element);
1635
+ o.dataset.datasetInstanceSelect = "", a.control.appendChild(T(o).element);
1605
1636
  let s = e.createElement("p");
1606
- s.className = "designer-dataset-instance-hint", s.textContent = d.dataset.instanceHint, a.field.appendChild(s), t.appendChild(a.field);
1637
+ s.className = "designer-dataset-instance-hint", s.textContent = w.dataset.instanceHint, a.field.appendChild(s), t.appendChild(a.field);
1607
1638
  }
1608
- function It(e, t) {
1609
- let n = St(e, d.dataSource.requestTitle, "parameters");
1639
+ function Ft(e, t) {
1640
+ let n = xt(e, w.dataSource.requestTitle, "parameters");
1610
1641
  if (t.descriptor.parameters.length === 0) {
1611
1642
  let t = e.createElement("p");
1612
- t.className = "designer-empty-state", t.textContent = d.dataset.noParameters, n.appendChild(t);
1643
+ t.className = "designer-empty-state", t.textContent = w.dataset.noParameters, n.appendChild(t);
1613
1644
  }
1614
1645
  for (let r of t.descriptor.parameters) {
1615
- let i = Lt(t.draft, r.name), a = i !== null && i.kind === "variable" ? "variable" : "inline", o = r.required && i === null ? d.dataSource.parameterRequired(r.label) : "", s = e.createElement("div");
1646
+ let i = It(t.draft, r.name), a = i !== null && i.kind === "variable" ? "variable" : "inline", o = r.required && i === null ? w.dataSource.parameterRequired(r.label) : "", s = e.createElement("div");
1616
1647
  s.className = "designer-dataset-parameter", s.dataset.datasetParameterRow = r.name;
1617
1648
  let c = e.createElement("div");
1618
1649
  c.className = "designer-dataset-parameter-head";
@@ -1621,34 +1652,34 @@ function It(e, t) {
1621
1652
  let t = e.createElement("span");
1622
1653
  t.className = "designer-field-required", t.setAttribute("aria-hidden", "true"), t.textContent = "*", l.appendChild(t);
1623
1654
  }
1624
- let { element: u, buttons: p } = f(e, {
1625
- ariaLabel: d.dataset.parameterModeLabel(r.label),
1655
+ let { element: u, buttons: d } = h(e, {
1656
+ ariaLabel: w.dataset.parameterModeLabel(r.label),
1626
1657
  className: "designer-dataset-parameter-mode",
1627
1658
  selected: a,
1628
1659
  options: [{
1629
1660
  value: "inline",
1630
- label: d.dataset.literal,
1661
+ label: w.dataset.literal,
1631
1662
  className: "designer-dataset-parameter-mode-option",
1632
1663
  dataset: { datasetParameterMode: "inline" }
1633
1664
  }, {
1634
1665
  value: "variable",
1635
- label: d.dataset.variable,
1666
+ label: w.dataset.variable,
1636
1667
  className: "designer-dataset-parameter-mode-option",
1637
1668
  dataset: { datasetParameterMode: "variable" }
1638
1669
  }]
1639
- }), m = p.get("inline"), h = p.get("variable"), g, _ = null, v, y = (e, t) => {
1670
+ }), p = d.get("inline"), m = d.get("variable"), g, _ = null, v, y = (e, t) => {
1640
1671
  let n = String(e);
1641
- h.setAttribute("aria-expanded", n), g?.setAttribute("aria-expanded", n), !e && t && (_?.isConnected ? _ : v)?.focus({ preventScroll: !0 });
1672
+ m.setAttribute("aria-expanded", n), g?.setAttribute("aria-expanded", n), !e && t && (_?.isConnected ? _ : v)?.focus({ preventScroll: !0 });
1642
1673
  };
1643
- h.setAttribute("aria-haspopup", "dialog"), h.setAttribute("aria-expanded", "false"), c.append(l, u);
1674
+ m.setAttribute("aria-haspopup", "dialog"), m.setAttribute("aria-expanded", "false"), c.append(l, u);
1644
1675
  let b = e.createElement("div");
1645
1676
  b.className = "designer-dataset-parameter-control", b.dataset.datasetParameterControl = r.name, b.dataset.mode = a, o !== "" && (b.dataset.invalid = "true");
1646
1677
  let x = Xe({
1647
1678
  ownerDocument: e,
1648
- text: jt,
1679
+ text: At,
1649
1680
  input: Ze(i, t.variables),
1650
1681
  controlKey: `parameter:${r.name}`,
1651
- ariaLabel: d.dataset.parameterVariableLabel(r.label),
1682
+ ariaLabel: w.dataset.parameterVariableLabel(r.label),
1652
1683
  anchor: b,
1653
1684
  popoverHost: t.overlayHost,
1654
1685
  onOpenChange: y,
@@ -1656,21 +1687,21 @@ function It(e, t) {
1656
1687
  });
1657
1688
  if (_ = x.element.querySelector("[data-value-ref-trigger]"), _?.addEventListener("click", () => {
1658
1689
  v = _ ?? void 0;
1659
- }, { capture: !0 }), Ot(n, x.dispose), a === "inline") {
1660
- let n = xt(e, t.descriptor, r.name, i ?? void 0);
1661
- r.required && n.querySelector("input, select, textarea")?.setAttribute("aria-required", "true"), b.appendChild(n), g = T(e, {
1690
+ }, { capture: !0 }), Dt(n, x.dispose), a === "inline") {
1691
+ let n = bt(e, t.descriptor, r.name, i ?? void 0);
1692
+ r.required && n.querySelector("input, select, textarea")?.setAttribute("aria-required", "true"), b.appendChild(n), g = f(e, {
1662
1693
  className: "designer-dataset-parameter-bind",
1663
1694
  icon: "variable",
1664
- label: d.dataset.parameterVariableLabel(r.label)
1695
+ label: w.dataset.parameterVariableLabel(r.label)
1665
1696
  }), g.dataset.datasetParameterBind = r.name, g.setAttribute("aria-haspopup", "dialog"), g.setAttribute("aria-expanded", "false"), g.addEventListener("click", () => {
1666
1697
  v = g, _?.click();
1667
1698
  }), b.appendChild(g);
1668
1699
  } else b.appendChild(x.element);
1669
1700
  if (a === "variable") {
1670
- let n = T(e, {
1701
+ let n = f(e, {
1671
1702
  className: "designer-dataset-parameter-clear",
1672
1703
  icon: "close",
1673
- label: d.dataset.parameterClearVariable(r.label)
1704
+ label: w.dataset.parameterClearVariable(r.label)
1674
1705
  });
1675
1706
  n.dataset.datasetParameterClear = r.name, n.addEventListener("click", () => {
1676
1707
  t.onSelectParameter?.(r.name, {
@@ -1685,43 +1716,43 @@ function It(e, t) {
1685
1716
  let n = b.querySelector("input, select, textarea");
1686
1717
  n !== null && (n.setAttribute("aria-invalid", "true"), n.setAttribute("aria-describedby", t.id)), s.appendChild(t);
1687
1718
  }
1688
- m.addEventListener("click", () => {
1719
+ p.addEventListener("click", () => {
1689
1720
  a !== "inline" && t.onSelectParameter?.(r.name, {
1690
1721
  kind: "inline",
1691
1722
  value: null
1692
1723
  });
1693
- }), h.addEventListener("click", () => {
1694
- v = h, _?.click();
1724
+ }), m.addEventListener("click", () => {
1725
+ v = m, _?.click();
1695
1726
  }), n.appendChild(s);
1696
1727
  }
1697
1728
  return n;
1698
1729
  }
1699
- function Lt(e, t) {
1730
+ function It(e, t) {
1700
1731
  return e?.params[t] ?? null;
1701
1732
  }
1702
- function Rt(e, t) {
1703
- let n = St(e, d.dataset.binding, "mapping");
1733
+ function Lt(e, t) {
1734
+ let n = xt(e, w.dataset.binding, "mapping");
1704
1735
  if (t.roles.length === 0) {
1705
1736
  let t = e.createElement("p");
1706
- t.className = "designer-empty-state", t.textContent = d.dataset.noBinding, n.appendChild(t);
1737
+ t.className = "designer-empty-state", t.textContent = w.dataset.noBinding, n.appendChild(t);
1707
1738
  }
1708
- for (let r of t.roles) n.appendChild(zt(e, t.descriptor, r, t.draft, t.bindingOpenRoleId ?? null));
1739
+ for (let r of t.roles) n.appendChild(Rt(e, t.descriptor, r, t.draft, t.bindingOpenRoleId ?? null));
1709
1740
  return n;
1710
1741
  }
1711
- function zt(e, t, n, r, i) {
1742
+ function Rt(e, t, n, r, i) {
1712
1743
  let a = e.createElement("div");
1713
1744
  a.className = "designer-dataset-binding-role", a.dataset.datasetBindingRole = n.id;
1714
1745
  let o = e.createElement("strong");
1715
- o.className = "designer-dataset-binding-label", o.textContent = d.dataset.bindingRole(n.id);
1746
+ o.className = "designer-dataset-binding-label", o.textContent = w.dataset.bindingRole(n.id);
1716
1747
  let s = r?.fields[n.id] ?? [], c = e.createElement("div");
1717
- c.className = "designer-dataset-field-list", c.setAttribute("role", "group"), c.setAttribute("aria-label", d.dataset.bindingRole(n.id));
1748
+ c.className = "designer-dataset-field-list", c.setAttribute("role", "group"), c.setAttribute("aria-label", w.dataset.bindingRole(n.id));
1718
1749
  let l = t.fields.filter((e) => n.valueTypes.includes(e.valueType));
1719
1750
  if (n.maxFields === 1) {
1720
- let t = S(e, {
1721
- ariaLabel: d.dataset.bindingRole(n.id),
1751
+ let t = d(e, {
1752
+ ariaLabel: w.dataset.bindingRole(n.id),
1722
1753
  className: "designer-dataset-binding-select",
1723
1754
  options: [{
1724
- label: d.dataset.selectField,
1755
+ label: w.dataset.selectField,
1725
1756
  selected: s.length === 0,
1726
1757
  value: ""
1727
1758
  }, ...l.map((e) => ({
@@ -1731,79 +1762,79 @@ function zt(e, t, n, r, i) {
1731
1762
  }))],
1732
1763
  value: s[0] ?? ""
1733
1764
  });
1734
- t.dataset.datasetBindingRole = n.id, c.appendChild(C(t).element);
1735
- } else c.appendChild(Bt(e, n.id, l, s, n.maxFields, i === n.id));
1765
+ t.dataset.datasetBindingRole = n.id, c.appendChild(T(t).element);
1766
+ } else c.appendChild(zt(e, n.id, l, s, n.maxFields, i === n.id));
1736
1767
  if (l.length === 0) {
1737
1768
  let t = e.createElement("p");
1738
- t.className = "designer-empty-state", t.textContent = d.dataset.noCompatibleFields, c.appendChild(t);
1769
+ t.className = "designer-empty-state", t.textContent = w.dataset.noCompatibleFields, c.appendChild(t);
1739
1770
  }
1740
1771
  return a.append(o, c), a;
1741
1772
  }
1742
- function Bt(e, t, n, r, i, a) {
1743
- let o = d.dataset.bindingRole(t), s = r.length >= i, c = n.filter((e) => r.includes(e.id)), l = e.createElement("div");
1773
+ function zt(e, t, n, r, i, a) {
1774
+ let o = w.dataset.bindingRole(t), s = r.length >= i, c = n.filter((e) => r.includes(e.id)), l = e.createElement("div");
1744
1775
  l.className = "designer-bind-field";
1745
- let u = m(e, {
1746
- ariaLabel: d.dataset.bindingToggle(o),
1776
+ let u = p(e, {
1777
+ ariaLabel: w.dataset.bindingToggle(o),
1747
1778
  className: "designer-bind-trigger"
1748
1779
  });
1749
1780
  u.dataset.datasetBindingTrigger = t, u.setAttribute("aria-haspopup", "listbox"), u.setAttribute("aria-expanded", String(a));
1750
- let f = e.createElement("span");
1751
- if (f.className = "designer-bind-chips", c.length === 0) {
1781
+ let d = e.createElement("span");
1782
+ if (d.className = "designer-bind-chips", c.length === 0) {
1752
1783
  let t = e.createElement("span");
1753
- t.className = "designer-bind-placeholder", t.textContent = d.dataset.bindingPlaceholder, f.appendChild(t);
1784
+ t.className = "designer-bind-placeholder", t.textContent = w.dataset.bindingPlaceholder, d.appendChild(t);
1754
1785
  } else for (let n of c) {
1755
1786
  let r = e.createElement("span");
1756
1787
  r.className = "designer-bind-chip", r.append(n.label);
1757
1788
  let i = e.createElement("span");
1758
- i.className = "designer-bind-chip-x", i.dataset.datasetBindingChipRole = t, i.dataset.datasetBindingChipField = n.id, i.setAttribute("aria-hidden", "true"), i.innerHTML = b("close"), r.appendChild(i), f.appendChild(r);
1789
+ i.className = "designer-bind-chip-x", i.dataset.datasetBindingChipRole = t, i.dataset.datasetBindingChipField = n.id, i.setAttribute("aria-hidden", "true"), i.innerHTML = m("close"), r.appendChild(i), d.appendChild(r);
1759
1790
  }
1760
- let p = e.createElement("span");
1761
- p.className = "designer-bind-count", p.dataset.datasetBindingCount = t, p.dataset.atLimit = String(s), p.textContent = d.dataset.bindingCount(r.length, i);
1791
+ let f = e.createElement("span");
1792
+ f.className = "designer-bind-count", f.dataset.datasetBindingCount = t, f.dataset.atLimit = String(s), f.textContent = w.dataset.bindingCount(r.length, i);
1762
1793
  let h = e.createElement("span");
1763
- h.className = "designer-bind-caret", h.innerHTML = b("chevron-down"), u.append(f, p, h);
1794
+ h.className = "designer-bind-caret", h.innerHTML = m("chevron-down"), u.append(d, f, h);
1764
1795
  let g = e.createElement("div");
1765
1796
  g.className = "designer-bind-menu", g.dataset.datasetBindingMenu = t, g.hidden = !a;
1766
1797
  let _ = e.createElement("div");
1767
1798
  _.className = "designer-bind-options", _.setAttribute("role", "listbox"), _.setAttribute("aria-multiselectable", "true"), _.setAttribute("aria-label", o);
1768
- for (let a of n) _.appendChild(Ht(e, t, a, r, i));
1799
+ for (let a of n) _.appendChild(Vt(e, t, a, r, i));
1769
1800
  let v = e.createElement("div");
1770
- v.className = "designer-bind-foot", v.dataset.datasetBindingHint = t, v.dataset.atLimit = String(s), v.textContent = s ? d.dataset.bindingAtLimit : d.dataset.bindingLimitHint(i);
1801
+ v.className = "designer-bind-foot", v.dataset.datasetBindingHint = t, v.dataset.atLimit = String(s), v.textContent = s ? w.dataset.bindingAtLimit : w.dataset.bindingLimitHint(i);
1771
1802
  let y = e.createElement("div");
1772
- return y.className = "designer-bind-actions", y.append(Vt(e, t, "select-all", n.length > i ? d.dataset.bindingSelectMaximum : d.dataset.bindingSelectAll, r.length === Math.min(n.length, i)), Vt(e, t, "clear", d.dataset.bindingClear, r.length === 0)), g.append(_, y, v), l.append(u, g), l;
1803
+ return y.className = "designer-bind-actions", y.append(Bt(e, t, "select-all", n.length > i ? w.dataset.bindingSelectMaximum : w.dataset.bindingSelectAll, r.length === Math.min(n.length, i)), Bt(e, t, "clear", w.dataset.bindingClear, r.length === 0)), g.append(_, y, v), l.append(u, g), l;
1773
1804
  }
1774
- function Vt(e, t, n, r, i = !1) {
1775
- let a = m(e, {
1805
+ function Bt(e, t, n, r, i = !1) {
1806
+ let a = p(e, {
1776
1807
  className: "designer-dataset-binding-role-action",
1777
1808
  disabled: i,
1778
1809
  text: r
1779
1810
  });
1780
1811
  return a.dataset.datasetBindingRoleAction = n, a.dataset.datasetBindingRoleId = t, a;
1781
1812
  }
1782
- function Ht(e, t, n, r, i) {
1813
+ function Vt(e, t, n, r, i) {
1783
1814
  let a = r.includes(n.id), o = e.createElement("button");
1784
1815
  o.type = "button", o.className = "designer-bind-option", o.dataset.datasetBindingRoleId = t, o.dataset.datasetBindingField = n.id, o.setAttribute("role", "option"), o.setAttribute("aria-selected", String(a)), o.disabled = !a && r.length >= i;
1785
1816
  let s = e.createElement("span");
1786
- s.className = "designer-bind-check", s.innerHTML = b("check");
1817
+ s.className = "designer-bind-check", s.innerHTML = m("check");
1787
1818
  let c = e.createElement("span");
1788
1819
  c.className = "designer-bind-label", c.textContent = n.label;
1789
1820
  let l = e.createElement("span");
1790
1821
  return l.className = "designer-bind-type", l.textContent = n.valueType, o.append(s, c, l), o;
1791
1822
  }
1792
- function Ut(e, t = "all") {
1823
+ function Ht(e, t = "all") {
1793
1824
  let n = e.panel.ownerDocument.createElement("section");
1794
1825
  n.className = "designer-dataset-authoring", n.dataset.datasetAuthoring = "true", n.dataset.dsSection = "authoring", n.dataset.authoringPart = t, n.dataset.inspectorSearchSection = "true";
1795
1826
  let r = e.panel.ownerDocument.createElement("h4");
1796
- r.className = "designer-inspector-section-title", r.textContent = d.dataSource.authoringTitle;
1797
- let i = f(e.panel.ownerDocument, {
1798
- ariaLabel: d.dataSource.authoringTitle,
1827
+ r.className = "designer-inspector-section-title", r.textContent = w.dataSource.authoringTitle;
1828
+ let i = h(e.panel.ownerDocument, {
1829
+ ariaLabel: w.dataSource.authoringTitle,
1799
1830
  selected: e.authoring.editorMode,
1800
1831
  options: [{
1801
1832
  value: "visual",
1802
- label: d.dataSource.visualEditor,
1833
+ label: w.dataSource.visualEditor,
1803
1834
  dataset: { datasetEditorMode: "visual" }
1804
1835
  }, {
1805
1836
  value: "code",
1806
- label: d.dataSource.codeEditor,
1837
+ label: w.dataSource.codeEditor,
1807
1838
  dataset: {
1808
1839
  datasetAuthoringAction: "open-code-editor",
1809
1840
  datasetEditorMode: "code"
@@ -1812,16 +1843,16 @@ function Ut(e, t = "all") {
1812
1843
  }).element, a = e.panel.ownerDocument.createElement("div");
1813
1844
  a.className = "designer-dataset-authoring-row";
1814
1845
  let o = e.panel.ownerDocument.createElement("span");
1815
- o.className = "designer-dataset-authoring-status", o.textContent = e.authoring.filterConfigured ? d.dataSource.configured : d.dataSource.filterUnset, a.append(Kt(e.panel.ownerDocument, d.dataSource.filter, d.dataSource.filterHint), o, Gt(e.panel.ownerDocument, "configure-filter", d.dataSource.filterConfigure));
1846
+ o.className = "designer-dataset-authoring-status", o.textContent = e.authoring.filterConfigured ? w.dataSource.configured : w.dataSource.filterUnset, a.append(Gt(e.panel.ownerDocument, w.dataSource.filter, w.dataSource.filterHint), o, Wt(e.panel.ownerDocument, "configure-filter", w.dataSource.filterConfigure));
1816
1847
  let s = e.panel.ownerDocument.createElement("div");
1817
- s.className = "designer-dataset-authoring-settings", s.setAttribute("role", "group"), s.setAttribute("aria-label", d.dataSource.advancedSettings), e.surface === "workbench" ? s.append(qt(e, "loadingDisabled", d.dataSource.loadingState, e.authoring.loadingDisabled), qt(e, "controlled", d.dataSource.controlledMode, e.authoring.controlled), Jt(e)) : s.append(Wt(e));
1848
+ s.className = "designer-dataset-authoring-settings", s.setAttribute("role", "group"), s.setAttribute("aria-label", w.dataSource.advancedSettings), e.surface === "workbench" ? s.append(Kt(e, "loadingDisabled", w.dataSource.loadingState, e.authoring.loadingDisabled), Kt(e, "controlled", w.dataSource.controlledMode, e.authoring.controlled), qt(e)) : s.append(Ut(e));
1818
1849
  let c = e.panel.ownerDocument.createElement("div");
1819
- return c.className = "designer-dataset-authoring-actions", c.append(Gt(e.panel.ownerDocument, "copy-data", d.dataSource.copyData, e.preview.rawValue === void 0, d.dataSource.copyDataHint)), t !== "footer" && c.appendChild(Gt(e.panel.ownerDocument, "fullscreen-edit", d.dataSource.fullscreenEdit)), e.surface === "inspector" && t === "all" ? (n.appendChild(F({
1850
+ return c.className = "designer-dataset-authoring-actions", c.append(Wt(e.panel.ownerDocument, "copy-data", w.dataSource.copyData, e.preview.rawValue === void 0, w.dataSource.copyDataHint)), t !== "footer" && c.appendChild(Wt(e.panel.ownerDocument, "fullscreen-edit", w.dataSource.fullscreenEdit)), e.surface === "inspector" && t === "all" ? (n.appendChild(F({
1820
1851
  ownerDocument: e.panel.ownerDocument,
1821
1852
  section: "authoring",
1822
1853
  group: "refresh",
1823
- title: d.dataSource.advancedSettings,
1824
- summary: `${z(e)} \u00b7 ${d.data.groups.editInWorkbench}`,
1854
+ title: w.dataSource.advancedSettings,
1855
+ summary: `${B(e)} \u00b7 ${w.data.groups.editInWorkbench}`,
1825
1856
  readonlyHint: !0,
1826
1857
  defaultOpen: !1,
1827
1858
  overrides: e.groupOpenOverrides ?? /* @__PURE__ */ new Map(),
@@ -1835,18 +1866,18 @@ function Ut(e, t = "all") {
1835
1866
  ownerDocument: e.panel.ownerDocument,
1836
1867
  section: "authoring",
1837
1868
  group: "refresh",
1838
- title: d.data.groups.refresh,
1839
- summary: e.surface === "inspector" ? `${z(e)} \u00b7 ${d.data.groups.editInWorkbench}` : z(e),
1869
+ title: w.data.groups.refresh,
1870
+ summary: e.surface === "inspector" ? `${B(e)} \u00b7 ${w.data.groups.editInWorkbench}` : B(e),
1840
1871
  readonlyHint: e.surface === "inspector",
1841
1872
  defaultOpen: !1,
1842
1873
  overrides: e.groupOpenOverrides ?? /* @__PURE__ */ new Map(),
1843
1874
  onToggle: e.onToggleGroup
1844
1875
  }, [s]) : s), n);
1845
1876
  }
1846
- function Wt(e) {
1877
+ function Ut(e) {
1847
1878
  let t = e.panel.ownerDocument, n = t.createElement("div");
1848
1879
  n.className = "designer-dataset-instance-facts", n.dataset.instanceFacts = "true";
1849
- let r = [[d.dataSource.refreshStrategyLabel, z(e)]];
1880
+ let r = [[w.dataSource.refreshStrategyLabel, B(e)]];
1850
1881
  for (let [e, i] of r) {
1851
1882
  let r = t.createElement("div");
1852
1883
  r.className = "designer-dataset-instance-fact";
@@ -1855,16 +1886,16 @@ function Wt(e) {
1855
1886
  let o = t.createElement("span");
1856
1887
  o.className = "designer-dataset-instance-fact-value", o.textContent = i, r.append(a, o), n.appendChild(r);
1857
1888
  }
1858
- let i = m(t);
1859
- return i.dataset.datasetAction = "open-instance", i.dataset.editInWorkbench = "true", i.dataset.instanceId = e.instance?.id ?? "", e.instance?.status === "missing" ? (i.dataset.instanceMissing = "true", i.textContent = d.data.groups.instanceMissing, i.title = d.data.groups.instanceMissingHint) : e.instance?.status === "pending" ? (i.dataset.instancePending = "true", i.disabled = !0, i.textContent = d.data.groups.pendingApply) : i.textContent = d.data.groups.openWorkbench, n.appendChild(i), n;
1889
+ let i = p(t);
1890
+ return i.dataset.datasetAction = "open-instance", i.dataset.editInWorkbench = "true", i.dataset.instanceId = e.instance?.id ?? "", e.instance?.status === "missing" ? (i.dataset.instanceMissing = "true", i.textContent = w.data.groups.instanceMissing, i.title = w.data.groups.instanceMissingHint) : e.instance?.status === "pending" ? (i.dataset.instancePending = "true", i.disabled = !0, i.textContent = w.data.groups.pendingApply) : i.textContent = w.data.groups.openWorkbench, n.appendChild(i), n;
1860
1891
  }
1861
- function z(e) {
1892
+ function B(e) {
1862
1893
  let t = e.instance?.updatePolicy;
1863
- return t === void 0 ? d.data.groups.refreshManual : t.mode === "once" ? d.data.groups.refreshOnce : t.mode === "auto" ? d.data.groups.refreshEvery(t.intervalSeconds ?? 30) : t.mode === "push" ? t.fallbackIntervalSeconds === void 0 ? d.data.groups.refreshPush : d.data.groups.refreshPushFallback(t.fallbackIntervalSeconds) : d.data.groups.refreshManual;
1894
+ return t === void 0 ? w.data.groups.refreshManual : t.mode === "once" ? w.data.groups.refreshOnce : t.mode === "auto" ? w.data.groups.refreshEvery(t.intervalSeconds ?? 30) : t.mode === "push" ? t.fallbackIntervalSeconds === void 0 ? w.data.groups.refreshPush : w.data.groups.refreshPushFallback(t.fallbackIntervalSeconds) : w.data.groups.refreshManual;
1864
1895
  }
1865
- function Gt(e, t, n, r = !1, i) {
1896
+ function Wt(e, t, n, r = !1, i) {
1866
1897
  if (t === "copy-data" || t === "fullscreen-edit") {
1867
- let a = T(e, {
1898
+ let a = f(e, {
1868
1899
  ariaLabel: r && i !== void 0 ? `${n} · ${i}` : n,
1869
1900
  className: "designer-dataset-authoring-icon-action",
1870
1901
  disabled: r,
@@ -1875,18 +1906,18 @@ function Gt(e, t, n, r = !1, i) {
1875
1906
  });
1876
1907
  return a.dataset.datasetAuthoringAction = t, a;
1877
1908
  }
1878
- let a = m(e, {
1909
+ let a = p(e, {
1879
1910
  disabled: r,
1880
1911
  text: n
1881
1912
  });
1882
1913
  return a.dataset.datasetAuthoringAction = t, a;
1883
1914
  }
1884
- function Kt(e, t, n) {
1915
+ function Gt(e, t, n) {
1885
1916
  let r = e.createElement("span");
1886
1917
  return r.className = "designer-dataset-authoring-label", r.textContent = t, r.setAttribute("data-tip", n), r;
1887
1918
  }
1888
- function qt(e, t, n, r) {
1889
- let { field: i, input: a } = g(e.panel.ownerDocument, {
1919
+ function Kt(e, t, n, r) {
1920
+ let { field: i, input: a } = x(e.panel.ownerDocument, {
1890
1921
  ariaLabel: n,
1891
1922
  checked: r,
1892
1923
  className: "designer-dataset-authoring-checkbox",
@@ -1896,21 +1927,21 @@ function qt(e, t, n, r) {
1896
1927
  });
1897
1928
  return a.dataset.datasetAuthoringSetting = t, a.value = String(r), i;
1898
1929
  }
1899
- function Jt(e) {
1930
+ function qt(e) {
1900
1931
  let t = e.panel.ownerDocument, n = t.createElement("div");
1901
- n.className = "designer-dataset-refresh-controls", n.setAttribute("role", "group"), n.setAttribute("aria-label", d.dataSource.refreshStrategyLabel);
1932
+ n.className = "designer-dataset-refresh-controls", n.setAttribute("role", "group"), n.setAttribute("aria-label", w.dataSource.refreshStrategyLabel);
1902
1933
  let r = t.createElement("label");
1903
1934
  r.className = "designer-dataset-authoring-setting-row";
1904
1935
  let i = t.createElement("span");
1905
- i.className = "designer-dataset-authoring-setting-label", i.textContent = d.dataSource.refreshStrategyLabel;
1936
+ i.className = "designer-dataset-authoring-setting-label", i.textContent = w.dataSource.refreshStrategyLabel;
1906
1937
  let a = e.pushDelivery !== void 0 || e.authoring.refreshStrategy === "push", o = [
1907
- ["once", d.dataSource.refreshOnce],
1908
- ["manual", d.dataSource.manualRefresh],
1909
- ["auto", d.dataSource.refreshAuto]
1938
+ ["once", w.dataSource.refreshOnce],
1939
+ ["manual", w.dataSource.manualRefresh],
1940
+ ["auto", w.dataSource.refreshAuto]
1910
1941
  ];
1911
- a && o.push(["push", d.dataSource.refreshPush]);
1912
- let s = S(t, {
1913
- ariaLabel: d.dataSource.refreshStrategyLabel,
1942
+ a && o.push(["push", w.dataSource.refreshPush]);
1943
+ let s = d(t, {
1944
+ ariaLabel: w.dataSource.refreshStrategyLabel,
1914
1945
  options: o.map(([t, n]) => ({
1915
1946
  label: n,
1916
1947
  selected: e.authoring.refreshStrategy === t,
@@ -1918,16 +1949,16 @@ function Jt(e) {
1918
1949
  })),
1919
1950
  value: e.authoring.refreshStrategy
1920
1951
  });
1921
- s.dataset.datasetAuthoringSetting = "refreshStrategy", r.append(i, C(s).element);
1952
+ s.dataset.datasetAuthoringSetting = "refreshStrategy", r.append(i, T(s).element);
1922
1953
  let c = t.createElement("label");
1923
1954
  c.className = "designer-dataset-authoring-setting-row", c.dataset.disabled = String(e.authoring.refreshStrategy !== "auto");
1924
1955
  let l = t.createElement("span");
1925
- l.className = "designer-dataset-authoring-setting-label", l.textContent = d.dataSource.refreshIntervalLabel;
1956
+ l.className = "designer-dataset-authoring-setting-label", l.textContent = w.dataSource.refreshIntervalLabel;
1926
1957
  let u = t.createElement("span");
1927
1958
  u.className = "designer-dataset-refresh-interval-control";
1928
- let f = p(t, {
1959
+ let f = g(t, {
1929
1960
  appearance: "number",
1930
- ariaLabel: `${d.dataSource.refreshIntervalLabel} · ${d.dataSource.refreshInterval}`,
1961
+ ariaLabel: `${w.dataSource.refreshIntervalLabel} · ${w.dataSource.refreshInterval}`,
1931
1962
  className: "designer-number-input",
1932
1963
  disabled: e.authoring.refreshStrategy !== "auto",
1933
1964
  max: 3600,
@@ -1936,31 +1967,31 @@ function Jt(e) {
1936
1967
  value: String(e.authoring.refreshInterval)
1937
1968
  });
1938
1969
  f.dataset.datasetAuthoringSetting = "refreshInterval";
1939
- let m = t.createElement("span");
1940
- return m.textContent = d.dataSource.refreshInterval, m.setAttribute("aria-hidden", "true"), u.append(f, m), c.append(l, u), n.append(r, c), e.authoring.refreshStrategy === "push" && (n.appendChild(Yt(t, {
1970
+ let p = t.createElement("span");
1971
+ return p.textContent = w.dataSource.refreshInterval, p.setAttribute("aria-hidden", "true"), u.append(f, p), c.append(l, u), n.append(r, c), e.authoring.refreshStrategy === "push" && (n.appendChild(Jt(t, {
1941
1972
  setting: "pushFallbackInterval",
1942
- label: d.dataSource.pushFallbackLabel,
1943
- unit: d.dataSource.pushFallbackUnit,
1973
+ label: w.dataSource.pushFallbackLabel,
1974
+ unit: w.dataSource.pushFallbackUnit,
1944
1975
  min: 0,
1945
1976
  max: 86400,
1946
1977
  value: e.authoring.pushFallbackInterval ?? 0
1947
- })), e.pushDelivery?.append === !0 && n.appendChild(Yt(t, {
1978
+ })), e.pushDelivery?.append === !0 && n.appendChild(Jt(t, {
1948
1979
  setting: "pushRetainRows",
1949
- label: d.dataSource.pushRetainLabel,
1950
- unit: d.dataSource.pushRetainUnit,
1980
+ label: w.dataSource.pushRetainLabel,
1981
+ unit: w.dataSource.pushRetainUnit,
1951
1982
  min: 1,
1952
1983
  max: 1e4,
1953
1984
  value: e.authoring.pushRetainRows ?? 1e3
1954
1985
  }))), n;
1955
1986
  }
1956
- function Yt(e, t) {
1987
+ function Jt(e, t) {
1957
1988
  let n = e.createElement("label");
1958
1989
  n.className = "designer-dataset-authoring-setting-row";
1959
1990
  let r = e.createElement("span");
1960
1991
  r.className = "designer-dataset-authoring-setting-label", r.textContent = t.label;
1961
1992
  let i = e.createElement("span");
1962
1993
  i.className = "designer-dataset-refresh-interval-control";
1963
- let a = p(e, {
1994
+ let a = g(e, {
1964
1995
  appearance: "number",
1965
1996
  ariaLabel: `${t.label} · ${t.unit}`,
1966
1997
  className: "designer-number-input",
@@ -1973,23 +2004,23 @@ function Yt(e, t) {
1973
2004
  let o = e.createElement("span");
1974
2005
  return o.textContent = t.unit, o.setAttribute("aria-hidden", "true"), i.append(a, o), n.append(r, i), n;
1975
2006
  }
1976
- function Xt(e) {
1977
- return e.refreshStrategy === "once" ? d.dataSource.refreshOnceNotice : e.refreshStrategy === "auto" ? d.dataSource.refreshAutoNotice : e.refreshStrategy === "push" ? d.dataSource.refreshPushNotice : d.dataSource.refreshManualNotice;
2007
+ function Yt(e) {
2008
+ return e.refreshStrategy === "once" ? w.dataSource.refreshOnceNotice : e.refreshStrategy === "auto" ? w.dataSource.refreshAutoNotice : e.refreshStrategy === "push" ? w.dataSource.refreshPushNotice : w.dataSource.refreshManualNotice;
1978
2009
  }
1979
- function Zt(e, t) {
2010
+ function Xt(e, t) {
1980
2011
  let n = e.createElement("aside");
1981
2012
  n.className = "designer-data-workbench-preview", n.dataset.designerScrollScope = `data-workbench-preview:${t.scrollScope}:${t.preview.tab}`, n.dataset.workbenchSection = "preview", n.dataset.dsSection = "preview", n.dataset.inspectorSearchSection = "true", n.dataset.inspectorSearchText = [
1982
- d.dataSource.responseTitle,
1983
- d.dataSource.previewRaw,
1984
- d.dataSource.previewConsumer,
1985
- d.dataSource.previewRequest
2013
+ w.dataSource.responseTitle,
2014
+ w.dataSource.previewRaw,
2015
+ w.dataSource.previewConsumer,
2016
+ w.dataSource.previewRequest
1986
2017
  ].join(" "), n.tabIndex = -1, n.dataset.open = String(t.preview.open), n.dataset.status = t.preview.status;
1987
2018
  let r = e.createElement("div");
1988
2019
  r.className = "designer-data-preview-tabs", r.setAttribute("role", "tablist");
1989
2020
  for (let [n, i] of [
1990
- ["response", d.dataSource.previewRaw],
1991
- ["consumer", d.dataSource.previewConsumer],
1992
- ["request", d.dataSource.previewRequest]
2021
+ ["response", w.dataSource.previewRaw],
2022
+ ["consumer", w.dataSource.previewConsumer],
2023
+ ["request", w.dataSource.previewRequest]
1993
2024
  ]) {
1994
2025
  let a = e.createElement("button");
1995
2026
  a.type = "button", a.dataset.datasetPreviewTab = n, a.setAttribute("role", "tab"), a.setAttribute("aria-selected", String(t.preview.tab === n)), a.textContent = i, r.appendChild(a);
@@ -1997,23 +2028,23 @@ function Zt(e, t) {
1997
2028
  let i = e.createElement("div");
1998
2029
  if (i.className = "designer-data-preview-toolbar", i.appendChild(r), t.preview.testedAt !== void 0) {
1999
2030
  let n = e.createElement("span");
2000
- n.className = "designer-data-preview-time", n.textContent = d.dataSource.previewUpdatedAt(t.preview.testedAt), i.appendChild(n);
2031
+ n.className = "designer-data-preview-time", n.textContent = w.dataSource.previewUpdatedAt(t.preview.testedAt), i.appendChild(n);
2001
2032
  }
2002
2033
  let a = e.createElement("div");
2003
- if (a.className = "designer-data-preview-content", a.setAttribute("role", "tabpanel"), t.preview.status === "loading") a.appendChild(tn(e));
2004
- else if (t.preview.status === "error") a.appendChild(nn(e, t.preview.message || d.dataSource.responseFailed));
2005
- else if (t.preview.tab === "request") a.appendChild(dn(e, {
2034
+ if (a.className = "designer-data-preview-content", a.setAttribute("role", "tabpanel"), t.preview.status === "loading") a.appendChild(en(e));
2035
+ else if (t.preview.status === "error") a.appendChild(tn(e, t.preview.message || w.dataSource.responseFailed));
2036
+ else if (t.preview.tab === "request") a.appendChild(un(e, {
2006
2037
  datasetId: t.draft?.datasetId,
2007
2038
  params: t.draft?.params,
2008
2039
  fields: t.draft?.fields
2009
2040
  }, `data-workbench-preview-json:${t.scrollScope}:${t.preview.tab}`));
2010
2041
  else {
2011
2042
  let n = t.preview.tab === "response" ? t.preview.rawValue : t.preview.consumerValue;
2012
- a.appendChild(n === void 0 ? $t(e, t) : rn(e, n, `data-workbench-preview-value:${t.scrollScope}:${t.preview.tab}`, t.descriptor));
2043
+ a.appendChild(n === void 0 ? Qt(e, t) : nn(e, n, `data-workbench-preview-value:${t.scrollScope}:${t.preview.tab}`, t.descriptor));
2013
2044
  }
2014
2045
  let o = P(t.descriptor, t.draft), s = o > 0 && t.preview.status === "ready" ? (() => {
2015
2046
  let t = e.createElement("p");
2016
- return t.className = "designer-data-response-warning", t.setAttribute("role", "status"), t.textContent = d.dataSource.responseWarning(o), t;
2047
+ return t.className = "designer-data-response-warning", t.setAttribute("role", "status"), t.textContent = w.dataSource.responseWarning(o), t;
2017
2048
  })() : void 0, c = s === void 0 ? [i, a] : [
2018
2049
  s,
2019
2050
  i,
@@ -2023,40 +2054,40 @@ function Zt(e, t) {
2023
2054
  ownerDocument: e,
2024
2055
  section: "preview",
2025
2056
  group: "preview",
2026
- title: d.dataSource.responseTitle,
2027
- summary: Qt(t),
2057
+ title: w.dataSource.responseTitle,
2058
+ summary: Zt(t),
2028
2059
  defaultOpen: t.surface === "inspector",
2029
2060
  overrides: t.groupOpenOverrides,
2030
2061
  onToggle: t.onToggleGroup
2031
2062
  }, c)), n;
2032
2063
  }
2033
- function Qt(e) {
2034
- return e.preview.status === "loading" ? d.dataSource.testing : e.preview.status === "error" ? d.dataSource.responseFailed : e.preview.status === "ready" && e.preview.message || d.dataSource.responseIdle;
2064
+ function Zt(e) {
2065
+ return e.preview.status === "loading" ? w.dataSource.testing : e.preview.status === "error" ? w.dataSource.responseFailed : e.preview.status === "ready" && e.preview.message || w.dataSource.responseIdle;
2035
2066
  }
2036
- function $t(e, t) {
2067
+ function Qt(e, t) {
2037
2068
  let n = e.createElement("div");
2038
2069
  n.className = "designer-data-preview-empty";
2039
2070
  let r = e.createElement("div"), i = e.createElement("span");
2040
- i.className = "designer-data-preview-empty-icon", i.setAttribute("aria-hidden", "true"), i.innerHTML = b("table");
2071
+ i.className = "designer-data-preview-empty-icon", i.setAttribute("aria-hidden", "true"), i.innerHTML = m("table");
2041
2072
  let a = e.createElement("p");
2042
- a.textContent = d.dataSource.previewIdleHint, r.append(i, a);
2043
- let o = en(t);
2073
+ a.textContent = w.dataSource.previewIdleHint, r.append(i, a);
2074
+ let o = $t(t);
2044
2075
  if (o !== "") {
2045
2076
  let t = e.createElement("span");
2046
- t.className = "designer-data-preview-empty-params", t.dataset.datasetParamSummary = "true", t.textContent = `${d.dataSource.previewParamLead} · ${o}`, t.title = o, r.appendChild(t);
2077
+ t.className = "designer-data-preview-empty-params", t.dataset.datasetParamSummary = "true", t.textContent = `${w.dataSource.previewParamLead} · ${o}`, t.title = o, r.appendChild(t);
2047
2078
  }
2048
2079
  return n.appendChild(r), n;
2049
2080
  }
2050
- function en(e) {
2081
+ function $t(e) {
2051
2082
  let t = e.descriptor, n = e.draft;
2052
2083
  return t === void 0 || n === void 0 ? "" : t.parameters.map((t) => {
2053
2084
  let r = n.params[t.name];
2054
- return r === void 0 ? d.dataSource.parameterUnfilledShort : r.kind === "variable" ? e.variables.find((e) => e.id === r.variableId)?.name ?? d.dataSource.parameterUnfilledShort : r.kind === "inline" ? String(r.value ?? "") : t.label;
2085
+ return r === void 0 ? w.dataSource.parameterUnfilledShort : r.kind === "variable" ? e.variables.find((e) => e.id === r.variableId)?.name ?? w.dataSource.parameterUnfilledShort : r.kind === "inline" ? String(r.value ?? "") : t.label;
2055
2086
  }).join(" · ");
2056
2087
  }
2057
- function tn(e) {
2088
+ function en(e) {
2058
2089
  let t = e.createElement("div");
2059
- t.className = "designer-data-preview-skeleton", t.setAttribute("aria-label", d.dataSource.previewLoading);
2090
+ t.className = "designer-data-preview-skeleton", t.setAttribute("aria-label", w.dataSource.previewLoading);
2060
2091
  for (let n = 0; n < 5; n += 1) {
2061
2092
  let n = e.createElement("div");
2062
2093
  n.className = "designer-data-preview-skeleton-row";
@@ -2072,24 +2103,24 @@ function tn(e) {
2072
2103
  }
2073
2104
  return t;
2074
2105
  }
2075
- function nn(e, t) {
2106
+ function tn(e, t) {
2076
2107
  let n = e.createElement("div");
2077
2108
  n.className = "designer-data-preview-error", n.setAttribute("role", "alert"), n.dataset.datasetPreviewError = "true";
2078
2109
  let r = e.createElement("strong");
2079
- r.textContent = d.dataSource.responseFailed;
2110
+ r.textContent = w.dataSource.responseFailed;
2080
2111
  let i = e.createElement("p");
2081
2112
  return i.textContent = t, n.append(r, i), n;
2082
2113
  }
2083
- function rn(e, t, n, r) {
2084
- let i = ln(t);
2085
- if (i === void 0) return dn(e, t, n);
2114
+ function nn(e, t, n, r) {
2115
+ let i = cn(t);
2116
+ if (i === void 0) return un(e, t, n);
2086
2117
  let a = e.createElement("div");
2087
2118
  a.className = "designer-data-preview-table-wrap", a.dataset.designerScrollScope = n;
2088
2119
  let o = e.createElement("table"), s = [...new Set(i.flatMap((e) => Object.keys(e)))].slice(0, 12), c = i.slice(0, 20), l = e.createElement("thead"), u = e.createElement("tr"), d = e.createElement("th");
2089
2120
  d.className = "designer-data-preview-index", d.scope = "col", d.textContent = "#", u.appendChild(d);
2090
2121
  for (let t of s) {
2091
2122
  let n = e.createElement("th");
2092
- n.scope = "col", n.textContent = an(r, t), on(r, t, c) && (n.className = "designer-data-preview-num"), u.appendChild(n);
2123
+ n.scope = "col", n.textContent = rn(r, t), an(r, t, c) && (n.className = "designer-data-preview-num"), u.appendChild(n);
2093
2124
  }
2094
2125
  l.appendChild(u);
2095
2126
  let f = e.createElement("tbody");
@@ -2098,42 +2129,42 @@ function rn(e, t, n, r) {
2098
2129
  a.className = "designer-data-preview-index", a.textContent = String(t + 1).padStart(2, "0"), i.appendChild(a);
2099
2130
  for (let t of s) {
2100
2131
  let a = e.createElement("td"), o = n[t];
2101
- a.textContent = sn(o);
2132
+ a.textContent = on(o);
2102
2133
  let s = a.textContent;
2103
- s !== "—" && (a.title = s), on(r, t, c) && (a.className = "designer-data-preview-num"), i.appendChild(a);
2134
+ s !== "—" && (a.title = s), an(r, t, c) && (a.className = "designer-data-preview-num"), i.appendChild(a);
2104
2135
  }
2105
2136
  f.appendChild(i);
2106
2137
  }
2107
2138
  return o.append(l, f), a.appendChild(o), a;
2108
2139
  }
2109
- function an(e, t) {
2140
+ function rn(e, t) {
2110
2141
  return e?.fields.find((e) => e.id === t)?.label ?? t;
2111
2142
  }
2112
- function on(e, t, n) {
2143
+ function an(e, t, n) {
2113
2144
  let r = e?.fields.find((e) => e.id === t);
2114
2145
  if (r !== void 0) return r.valueType === "number";
2115
2146
  let i = n.map((e) => e[t]).filter((e) => e !== void 0);
2116
2147
  return i.length > 0 && i.every((e) => typeof e == "number");
2117
2148
  }
2118
- function sn(e) {
2119
- return e == null || e === "" ? "—" : typeof e == "number" ? cn(e) : typeof e == "string" ? e : JSON.stringify(e);
2149
+ function on(e) {
2150
+ return e == null || e === "" ? "—" : typeof e == "number" ? sn(e) : typeof e == "string" ? e : JSON.stringify(e);
2120
2151
  }
2121
- function cn(e) {
2152
+ function sn(e) {
2122
2153
  let [t = "", n] = String(e).split("."), r = t.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
2123
2154
  return n === void 0 ? r : `${r}.${n}`;
2124
2155
  }
2125
- function ln(e) {
2126
- if (Array.isArray(e) && e.every(un)) return e;
2127
- if (un(e) && Array.isArray(e.rows) && e.rows.every(un)) return e.rows;
2156
+ function cn(e) {
2157
+ if (Array.isArray(e) && e.every(ln)) return e;
2158
+ if (ln(e) && Array.isArray(e.rows) && e.rows.every(ln)) return e.rows;
2128
2159
  }
2129
- function un(e) {
2160
+ function ln(e) {
2130
2161
  return typeof e == "object" && !!e && !Array.isArray(e);
2131
2162
  }
2132
- function dn(e, t, n) {
2163
+ function un(e, t, n) {
2133
2164
  let r = e.createElement("pre");
2134
2165
  return r.dataset.designerScrollScope = n, r.textContent = JSON.stringify(t, null, 2), r;
2135
2166
  }
2136
- function fn(e) {
2167
+ function dn(e) {
2137
2168
  let t = e.descriptor;
2138
2169
  if (t !== void 0) return {
2139
2170
  panel: e.panel,
@@ -2155,39 +2186,39 @@ function fn(e) {
2155
2186
  onToggleGroup: e.onToggleGroup
2156
2187
  };
2157
2188
  }
2158
- function B(e, t) {
2189
+ function V(e, t) {
2159
2190
  if (e === "value") return;
2160
2191
  if (e === "host-link") return tt(t);
2161
- if (e === "preview") return Zt(t.panel.ownerDocument, t);
2162
- if (e === "authoring") return Ut(t);
2192
+ if (e === "preview") return Xt(t.panel.ownerDocument, t);
2193
+ if (e === "authoring") return Ht(t);
2163
2194
  if (t.surface === "inspector") {
2164
2195
  if (t.descriptor === void 0) return lt(t);
2165
2196
  } else if (t.catalogOpen || t.descriptor === void 0) return ut(t);
2166
- let n = fn(t);
2167
- return n === void 0 ? void 0 : Mt(n);
2197
+ let n = dn(t);
2198
+ return n === void 0 ? void 0 : jt(n);
2168
2199
  }
2169
- function pn(e) {
2200
+ function fn(e) {
2170
2201
  let t = e.dataValue;
2171
2202
  if (t === null || t.kind !== "data-source-field") return ["value"];
2172
2203
  let n = ["value", "source"];
2173
- return (e.surface === "workbench" || mn(e)) && n.push("host-link"), n.push("preview", "authoring"), n;
2204
+ return (e.surface === "workbench" || pn(e)) && n.push("host-link"), n.push("preview", "authoring"), n;
2174
2205
  }
2175
- function mn(e) {
2206
+ function pn(e) {
2176
2207
  return [
2177
2208
  e.link.catalog,
2178
2209
  e.link.query,
2179
2210
  e.link.variables
2180
2211
  ].some((e) => e.status !== "ready");
2181
2212
  }
2182
- function hn(e, t) {
2213
+ function mn(e, t) {
2183
2214
  switch (e) {
2184
- case "value": return U([
2215
+ case "value": return W([
2185
2216
  t.mode,
2186
2217
  t.availableModes,
2187
2218
  t.resourceAvailable,
2188
2219
  t.catalogAvailable
2189
2220
  ]);
2190
- case "source": return U([
2221
+ case "source": return W([
2191
2222
  (t.groups ?? []).map((e) => [e.id, e.name]),
2192
2223
  t.groupId ?? null,
2193
2224
  t.catalogOpen,
@@ -2208,21 +2239,21 @@ function hn(e, t) {
2208
2239
  t.link.variables.status
2209
2240
  ]
2210
2241
  ]);
2211
- case "preview": return U([
2242
+ case "preview": return W([
2212
2243
  t.preview.status,
2213
2244
  t.preview.tab,
2214
2245
  t.preview.open,
2215
2246
  t.preview.message,
2216
- En(t)
2247
+ Tn(t)
2217
2248
  ]);
2218
- case "authoring": return U([
2249
+ case "authoring": return W([
2219
2250
  t.authoring,
2220
2251
  t.dirty,
2221
2252
  t.surface,
2222
2253
  t.pushDelivery ?? null,
2223
2254
  t.instance?.updatePolicy ?? null
2224
2255
  ]);
2225
- default: return U([
2256
+ default: return W([
2226
2257
  t.link.catalog.status,
2227
2258
  t.link.query.status,
2228
2259
  t.link.variables.status,
@@ -2232,45 +2263,45 @@ function hn(e, t) {
2232
2263
  ]);
2233
2264
  }
2234
2265
  }
2235
- var gn = /* @__PURE__ */ new WeakMap(), _n = 4;
2236
- function vn(e, t) {
2237
- let n = gn.get(e);
2266
+ var hn = /* @__PURE__ */ new WeakMap(), gn = 4;
2267
+ function _n(e, t) {
2268
+ let n = hn.get(e);
2238
2269
  if (n !== void 0) {
2239
2270
  n.pending = t;
2240
2271
  return;
2241
2272
  }
2242
2273
  let r = { pending: void 0 };
2243
- gn.set(e, r);
2274
+ hn.set(e, r);
2244
2275
  try {
2245
2276
  let n = t;
2246
- for (let t = 0; t < _n; t += 1) {
2247
- if (yn(e, n), r.pending === void 0) return;
2277
+ for (let t = 0; t < gn; t += 1) {
2278
+ if (vn(e, n), r.pending === void 0) return;
2248
2279
  n = r.pending, r.pending = void 0;
2249
2280
  }
2250
2281
  } finally {
2251
- gn.delete(e);
2282
+ hn.delete(e);
2252
2283
  let t = r.pending;
2253
- t !== void 0 && e.isConnected && queueMicrotask(() => vn(e, t));
2284
+ t !== void 0 && e.isConnected && queueMicrotask(() => _n(e, t));
2254
2285
  }
2255
2286
  }
2256
- function yn(e, t) {
2287
+ function vn(e, t) {
2257
2288
  if (e.querySelector("[data-ds-section]") === null) return;
2258
- let n = pn(t), r = xn(e, n), i = Tn(e, n), a = null;
2289
+ let n = fn(t), r = bn(e, n), i = wn(e, n), a = null;
2259
2290
  for (let r = n.length - 1; r >= 0; r--) {
2260
- let o = n[r], s = V(e, o), c = hn(o, t);
2291
+ let o = n[r], s = H(e, o), c = mn(o, t);
2261
2292
  if (o === "value") {
2262
- s !== null && (s.dataset.dsContentKey = c, H(s), a = s);
2293
+ s !== null && (s.dataset.dsContentKey = c, U(s), a = s);
2263
2294
  continue;
2264
2295
  }
2265
2296
  if (s === null) {
2266
- let e = B(o, t);
2267
- e !== void 0 && (e.dataset.dsContentKey = c, H(e), i.insertBefore(e, a), a = e);
2297
+ let e = V(o, t);
2298
+ e !== void 0 && (e.dataset.dsContentKey = c, U(e), i.insertBefore(e, a), a = e);
2268
2299
  continue;
2269
2300
  }
2270
2301
  if (s.dataset.dsContentKey !== c) {
2271
- let e = B(o, t);
2302
+ let e = V(o, t);
2272
2303
  if (e !== void 0) {
2273
- e.dataset.dsContentKey = c, H(e), Et(s), s.replaceWith(e), a = e;
2304
+ e.dataset.dsContentKey = c, U(e), Tt(s), s.replaceWith(e), a = e;
2274
2305
  continue;
2275
2306
  }
2276
2307
  s.dataset.dsContentKey = c;
@@ -2279,17 +2310,17 @@ function yn(e, t) {
2279
2310
  }
2280
2311
  for (let t of [...e.querySelectorAll("[data-ds-section]")]) {
2281
2312
  let e = t.dataset.dsSection;
2282
- e !== void 0 && n.includes(e) || (Et(t), t.remove());
2313
+ e !== void 0 && n.includes(e) || (Tt(t), t.remove());
2283
2314
  }
2284
- Sn(e, r, n);
2315
+ xn(e, r, n);
2285
2316
  }
2286
- function bn(e, t) {
2317
+ function yn(e, t) {
2287
2318
  for (let n of e.querySelectorAll("[data-ds-section]")) {
2288
2319
  let e = n.dataset.dsSection;
2289
- e !== void 0 && (n.dataset.dsContentKey = hn(e, t), H(n));
2320
+ e !== void 0 && (n.dataset.dsContentKey = mn(e, t), U(n));
2290
2321
  }
2291
2322
  }
2292
- function xn(e, t) {
2323
+ function bn(e, t) {
2293
2324
  let n = e.ownerDocument, r = n?.activeElement;
2294
2325
  if (r == null || r === n?.body || !e.contains(r)) return {
2295
2326
  section: void 0,
@@ -2300,24 +2331,24 @@ function xn(e, t) {
2300
2331
  let i = r.closest("[data-ds-section]")?.dataset.dsSection;
2301
2332
  return {
2302
2333
  section: i,
2303
- control: wn(r),
2334
+ control: Cn(r),
2304
2335
  index: i === void 0 ? -1 : t.indexOf(i),
2305
2336
  insideRoot: !0
2306
2337
  };
2307
2338
  }
2308
- function Sn(e, t, n) {
2339
+ function xn(e, t, n) {
2309
2340
  if (!t.insideRoot) return;
2310
2341
  let r = [...e.querySelectorAll("[data-ds-section]")];
2311
2342
  if (r.length === 0) return;
2312
2343
  if (t.section !== void 0 && t.control !== void 0) {
2313
- let n = Cn(e, t.section, t.control);
2344
+ let n = Sn(e, t.section, t.control);
2314
2345
  if (n !== null) {
2315
2346
  n.focus();
2316
2347
  return;
2317
2348
  }
2318
2349
  }
2319
2350
  if (t.section !== void 0) {
2320
- let n = V(e, t.section);
2351
+ let n = H(e, t.section);
2321
2352
  if (n !== null) {
2322
2353
  let e = n.querySelector("[data-ds-focusable]");
2323
2354
  if (e !== null) {
@@ -2335,46 +2366,46 @@ function Sn(e, t, n) {
2335
2366
  }
2336
2367
  e.tabIndex = -1, e.focus();
2337
2368
  }
2338
- function V(e, t) {
2369
+ function H(e, t) {
2339
2370
  return e.querySelector(`[data-ds-section="${t}"]`);
2340
2371
  }
2341
- function Cn(e, t, n) {
2342
- let r = V(e, t);
2372
+ function Sn(e, t, n) {
2373
+ let r = H(e, t);
2343
2374
  if (r === null) return null;
2344
- for (let e of r.querySelectorAll("button, input, select, textarea, [tabindex]")) if (wn(e) === n) return e;
2375
+ for (let e of r.querySelectorAll("button, input, select, textarea, [tabindex]")) if (Cn(e) === n) return e;
2345
2376
  return null;
2346
2377
  }
2347
- function wn(e) {
2378
+ function Cn(e) {
2348
2379
  let t = e.dataset.dsControl;
2349
2380
  return t === void 0 ? e.dataset.datasetAction ?? e.dataset.datasetPreviewTab ?? e.dataset.datasetParameter ?? e.dataset.datasetBindingTrigger ?? e.dataset.datasetBindingRole ?? e.dataset.datasetEditorMode ?? e.dataset.datasetAuthoringAction ?? e.dataset.dataSourceModeSelect ?? void 0 : t;
2350
2381
  }
2351
- function H(e) {
2382
+ function U(e) {
2352
2383
  for (let t of e.querySelectorAll("button, input, select, textarea, [tabindex]")) t.dataset.dsFocusable = "true";
2353
2384
  e.tabIndex = -1;
2354
2385
  }
2355
- function Tn(e, t) {
2386
+ function wn(e, t) {
2356
2387
  for (let n of t) {
2357
- let t = V(e, n);
2388
+ let t = H(e, n);
2358
2389
  if (t?.parentElement != null) return t.parentElement;
2359
2390
  }
2360
2391
  return e.querySelector(".designer-inspector-data-flow-content") ?? e;
2361
2392
  }
2362
- function En(e) {
2393
+ function Tn(e) {
2363
2394
  let t = e.preview.rawValue;
2364
2395
  if (typeof t != "object" || !t || Array.isArray(t)) return t === void 0 ? "none" : "scalar";
2365
2396
  let n = t.rows, r = t.fields;
2366
2397
  return `${Array.isArray(n) ? n.length : 0}:${Array.isArray(r) ? r.length : 0}`;
2367
2398
  }
2368
- function U(e) {
2399
+ function W(e) {
2369
2400
  if (e === null) return "null";
2370
- if (Array.isArray(e)) return `[${e.map(U).join(",")}]`;
2401
+ if (Array.isArray(e)) return `[${e.map(W).join(",")}]`;
2371
2402
  if (typeof e == "object") {
2372
2403
  let t = e;
2373
- return `{${Object.keys(t).sort().map((e) => `${JSON.stringify(e)}:${U(t[e])}`).join(",")}}`;
2404
+ return `{${Object.keys(t).sort().map((e) => `${JSON.stringify(e)}:${W(t[e])}`).join(",")}}`;
2374
2405
  }
2375
2406
  return JSON.stringify(e) ?? "undefined";
2376
2407
  }
2377
- function Dn(e) {
2408
+ function En(e) {
2378
2409
  return e.configured ? e.unavailable === void 0 ? e.readonly === void 0 ? e.loading === !0 ? { state: "loading" } : e.failure === void 0 ? e.empty === !0 ? { state: "empty" } : { state: "ready" } : {
2379
2410
  state: "failed",
2380
2411
  diagnosticCode: e.failure
@@ -2386,16 +2417,16 @@ function Dn(e) {
2386
2417
  reason: e.unavailable
2387
2418
  } : { state: "unconfigured" };
2388
2419
  }
2389
- function On(e, t) {
2420
+ function Dn(e, t) {
2390
2421
  let n = e.dataset;
2391
2422
  n !== void 0 && (n.state = t.state, t.reason === void 0 ? delete n.stateReason : n.stateReason = t.reason);
2392
2423
  }
2393
- function kn(e, t) {
2424
+ function On(e, t) {
2394
2425
  let n = t.descriptor;
2395
2426
  if (n?.kind !== "scalar") return v(e, { label: "" }).field;
2396
- let r = n.valueType === "string" ? d.dataSource.staticScalarString : n.valueType === "number" ? d.dataSource.staticScalarNumber : d.dataSource.staticScalarBoolean;
2427
+ let r = n.valueType === "string" ? w.dataSource.staticScalarString : n.valueType === "number" ? w.dataSource.staticScalarNumber : w.dataSource.staticScalarBoolean;
2397
2428
  if (n.valueType === "boolean") {
2398
- let i = x(e, { label: r }), a = E(e, {
2429
+ let i = S(e, { label: r }), a = E(e, {
2399
2430
  ariaLabel: r,
2400
2431
  checked: t.value === !0
2401
2432
  });
@@ -2407,41 +2438,41 @@ function kn(e, t) {
2407
2438
  tagName: "span",
2408
2439
  stacked: !0
2409
2440
  } : {}
2410
- }), o = i ? y(e, {
2441
+ }), o = i ? _(e, {
2411
2442
  ariaLabel: r,
2412
2443
  value: String(t.value ?? "")
2413
- }) : p(e, {
2444
+ }) : g(e, {
2414
2445
  ariaLabel: r,
2415
2446
  type: n.valueType === "number" ? "number" : "text",
2416
2447
  value: String(t.value ?? "")
2417
2448
  });
2418
2449
  return o.dataset.staticScalar = n.valueType, a.control.appendChild(o), a.field;
2419
2450
  }
2420
- function An(e, t) {
2451
+ function kn(e, t) {
2421
2452
  let n = v(e, {
2422
- label: d.dataSource.staticValue,
2453
+ label: w.dataSource.staticValue,
2423
2454
  tagName: "span",
2424
2455
  stacked: !0,
2425
2456
  className: "designer-data-source-static"
2426
- }), r = y(e, {
2427
- ariaLabel: d.dataSource.staticValue,
2457
+ }), r = _(e, {
2458
+ ariaLabel: w.dataSource.staticValue,
2428
2459
  value: t
2429
2460
  });
2430
2461
  return r.dataset.dataSourceStatic = "true", n.control.appendChild(r), n.field;
2431
2462
  }
2432
- function jn(e, t, n, r) {
2433
- let i = W(e, `tab-${t}`, n);
2463
+ function An(e, t, n, r) {
2464
+ let i = jn(e, `tab-${t}`, n);
2434
2465
  return i.setAttribute("aria-pressed", String(r)), i;
2435
2466
  }
2436
- function W(e, t, n, r) {
2437
- let i = m(e, {
2467
+ function jn(e, t, n, r) {
2468
+ let i = p(e, {
2438
2469
  text: n,
2439
2470
  ...r === void 0 ? {} : { variant: r }
2440
2471
  });
2441
2472
  return i.dataset.staticAction = t, i;
2442
2473
  }
2443
2474
  function Mn(e, t, n, r) {
2444
- let i = T(e, {
2475
+ let i = f(e, {
2445
2476
  className: "designer-static-page-button",
2446
2477
  icon: r,
2447
2478
  label: n
@@ -2449,20 +2480,20 @@ function Mn(e, t, n, r) {
2449
2480
  return i.dataset.staticAction = t, i;
2450
2481
  }
2451
2482
  function Nn(e, t, n, r) {
2452
- let i = W(e, t, r);
2483
+ let i = jn(e, t, r);
2453
2484
  return i.dataset.staticIndex = String(n), i;
2454
2485
  }
2455
2486
  function Pn(e, t, n, r, i = !1) {
2456
- let a = W(e, `binding-${n}`, r);
2487
+ let a = jn(e, `binding-${n}`, r);
2457
2488
  return a.dataset.staticBindingRole = t, a.disabled = i, a;
2458
2489
  }
2459
2490
  function Fn(e, t) {
2460
- if (t === void 0) return d.dataset.bindingNone;
2491
+ if (t === void 0) return w.dataset.bindingNone;
2461
2492
  let n = e.roles.flatMap((n) => {
2462
2493
  let r = e.binding?.fields[n.id] ?? [];
2463
- return r.length === 0 ? [] : [`${d.dataset.bindingRole(n.id)}:${r.map((e) => t.fields.find((t) => t.id === e)?.label ?? e).join("、")}`];
2494
+ return r.length === 0 ? [] : [`${w.dataset.bindingRole(n.id)}:${r.map((e) => t.fields.find((t) => t.id === e)?.label ?? e).join("、")}`];
2464
2495
  });
2465
- return n.length === 0 ? d.dataset.bindingNone : n.join(";");
2496
+ return n.length === 0 ? w.dataset.bindingNone : n.join(";");
2466
2497
  }
2467
2498
  function In(e, t, n) {
2468
2499
  let r = e.createElement("section");
@@ -2473,18 +2504,18 @@ function In(e, t, n) {
2473
2504
  let o = e.createElement("div");
2474
2505
  o.className = "designer-dataset-binding-heading";
2475
2506
  let s = e.createElement("strong");
2476
- s.textContent = d.dataset.bindingRole(i.id);
2507
+ s.textContent = w.dataset.bindingRole(i.id);
2477
2508
  let c = t.binding?.fields[i.id] ?? [], l = e.createElement("span");
2478
- l.textContent = d.dataset.selectedFields(c.length), o.append(s, l);
2509
+ l.textContent = w.dataset.selectedFields(c.length), o.append(s, l);
2479
2510
  let u = n.fields.filter((e) => i.valueTypes.includes(e.valueType)), f = e.createElement("p");
2480
- f.className = "designer-dataset-binding-hint", f.textContent = d.dataset.bindingHint(i.minFields, i.maxFields);
2511
+ f.className = "designer-dataset-binding-hint", f.textContent = w.dataset.bindingHint(i.minFields, i.maxFields);
2481
2512
  let p = e.createElement("div");
2482
- if (p.className = "designer-dataset-field-list", p.setAttribute("role", "group"), p.setAttribute("aria-label", d.dataset.bindingRole(i.id)), i.maxFields === 1) {
2483
- let t = S(e, {
2484
- ariaLabel: d.dataset.bindingRole(i.id),
2513
+ if (p.className = "designer-dataset-field-list", p.setAttribute("role", "group"), p.setAttribute("aria-label", w.dataset.bindingRole(i.id)), i.maxFields === 1) {
2514
+ let t = d(e, {
2515
+ ariaLabel: w.dataset.bindingRole(i.id),
2485
2516
  className: "designer-dataset-binding-select",
2486
2517
  options: [{
2487
- label: d.dataset.selectField,
2518
+ label: w.dataset.selectField,
2488
2519
  selected: c.length === 0,
2489
2520
  value: ""
2490
2521
  }, ...u.map((e) => ({
@@ -2494,15 +2525,15 @@ function In(e, t, n) {
2494
2525
  }))],
2495
2526
  value: c[0] ?? ""
2496
2527
  });
2497
- t.dataset.staticBindingRole = i.id, p.appendChild(C(t).element);
2528
+ t.dataset.staticBindingRole = i.id, p.appendChild(T(t).element);
2498
2529
  } else {
2499
2530
  let t = e.createElement("div");
2500
- t.className = "designer-dataset-binding-role-actions", t.append(Pn(e, i.id, "select-all", u.length > i.maxFields ? d.dataset.bindingSelectMaximum : d.dataset.bindingSelectAll, c.length === Math.min(u.length, i.maxFields)), Pn(e, i.id, "clear", d.dataset.bindingClear, c.length === 0)), o.appendChild(t);
2531
+ t.className = "designer-dataset-binding-role-actions", t.append(Pn(e, i.id, "select-all", u.length > i.maxFields ? w.dataset.bindingSelectMaximum : w.dataset.bindingSelectAll, c.length === Math.min(u.length, i.maxFields)), Pn(e, i.id, "clear", w.dataset.bindingClear, c.length === 0)), o.appendChild(t);
2501
2532
  for (let t of u) p.appendChild(Ln(e, i.id, t, c, i.maxFields));
2502
2533
  }
2503
2534
  if (u.length === 0) {
2504
2535
  let t = e.createElement("p");
2505
- t.className = "designer-empty-state", t.textContent = d.dataset.noCompatibleFields, p.appendChild(t);
2536
+ t.className = "designer-empty-state", t.textContent = w.dataset.noCompatibleFields, p.appendChild(t);
2506
2537
  }
2507
2538
  a.append(o, f, p), r.appendChild(a);
2508
2539
  }
@@ -2520,7 +2551,7 @@ function Rn(e, t, n, r, i) {
2520
2551
  let a = e.createElement("section");
2521
2552
  a.className = "designer-static-rows", i !== void 0 && (a.dataset.designerScrollScope = `static-rows:${i}`);
2522
2553
  let o = e.createElement("h4");
2523
- o.textContent = d.dataSource.staticRows;
2554
+ o.textContent = w.dataSource.staticRows;
2524
2555
  let s = e.createElement("table"), c = e.createElement("thead"), l = e.createElement("tr");
2525
2556
  t.fields.forEach((t) => {
2526
2557
  let n = e.createElement("th");
@@ -2530,46 +2561,46 @@ function Rn(e, t, n, r, i) {
2530
2561
  t.rows.slice(f.start, f.end).forEach((n, r) => {
2531
2562
  let i = f.start + r, a = e.createElement("tr");
2532
2563
  t.fields.forEach((t) => {
2533
- let r = e.createElement("td"), o = p(e, { value: n[t.id] === null || n[t.id] === void 0 ? "" : String(n[t.id]) });
2564
+ let r = e.createElement("td"), o = g(e, { value: n[t.id] === null || n[t.id] === void 0 ? "" : String(n[t.id]) });
2534
2565
  o.dataset.staticCellRow = String(i), o.dataset.staticCellField = t.id, r.appendChild(o), a.appendChild(r);
2535
2566
  });
2536
2567
  let o = e.createElement("td");
2537
- o.appendChild(Nn(e, "row-remove", i, d.dataSource.staticRemoveRow)), a.appendChild(o), u.appendChild(a);
2568
+ o.appendChild(Nn(e, "row-remove", i, w.dataSource.staticRemoveRow)), a.appendChild(o), u.appendChild(a);
2538
2569
  }), s.append(c, u);
2539
- let m = e.createElement("footer");
2540
- m.className = "designer-static-rows-footer";
2541
- let h = e.createElement("nav");
2542
- h.className = "designer-static-pagination", h.setAttribute("aria-label", d.dataSource.staticPagination);
2543
- let g = S(e, {
2544
- ariaLabel: d.dataSource.staticRowsPerPage,
2570
+ let p = e.createElement("footer");
2571
+ p.className = "designer-static-rows-footer";
2572
+ let m = e.createElement("nav");
2573
+ m.className = "designer-static-pagination", m.setAttribute("aria-label", w.dataSource.staticPagination);
2574
+ let h = d(e, {
2575
+ ariaLabel: w.dataSource.staticRowsPerPage,
2545
2576
  options: Oe.map((e) => ({
2546
- label: d.dataSource.staticRowsPerPageOption(e),
2577
+ label: w.dataSource.staticRowsPerPageOption(e),
2547
2578
  selected: e === f.pageSize,
2548
2579
  value: String(e)
2549
2580
  })),
2550
2581
  value: String(f.pageSize)
2551
2582
  });
2552
- g.dataset.staticPageSize = "true";
2583
+ h.dataset.staticPageSize = "true";
2553
2584
  let _ = e.createElement("span");
2554
- _.className = "designer-static-page-status", _.textContent = d.dataSource.staticPage(f.page + 1, f.pages);
2555
- let v = Mn(e, "page-previous", d.dataSource.staticPreviousPage, "chevron-left");
2585
+ _.className = "designer-static-page-status", _.textContent = w.dataSource.staticPage(f.page + 1, f.pages);
2586
+ let v = Mn(e, "page-previous", w.dataSource.staticPreviousPage, "chevron-left");
2556
2587
  v.toggleAttribute("disabled", f.page === 0);
2557
- let y = Mn(e, "page-next", d.dataSource.staticNextPage, "chevron-right");
2558
- return y.toggleAttribute("disabled", f.page >= f.pages - 1), h.append(g, v, _, y), m.append(W(e, "row-add", d.dataSource.staticAddRow), h), a.append(o, s, m), a;
2588
+ let y = Mn(e, "page-next", w.dataSource.staticNextPage, "chevron-right");
2589
+ return y.toggleAttribute("disabled", f.page >= f.pages - 1), m.append(h, v, _, y), p.append(jn(e, "row-add", w.dataSource.staticAddRow), m), a.append(o, s, p), a;
2559
2590
  }
2560
2591
  function zn(e) {
2561
2592
  let n = e.ownerDocument, r = n.createElement("section");
2562
2593
  r.className = "designer-data-source-editor", r.dataset.inspectorSearchSection = "true";
2563
2594
  let i = n.createElement("h4");
2564
- if (i.className = "designer-inspector-section-title", i.textContent = d.dataSource.staticTitle, r.appendChild(i), e.descriptor?.kind === "scalar") return r.appendChild(kn(n, e)), r;
2565
- if (e.descriptor?.kind !== "tabular") return r.appendChild(An(n, e.jsonDraft)), r;
2595
+ if (i.className = "designer-inspector-section-title", i.textContent = w.dataSource.staticTitle, r.appendChild(i), e.descriptor?.kind === "scalar") return r.appendChild(On(n, e)), r;
2596
+ if (e.descriptor?.kind !== "tabular") return r.appendChild(kn(n, e.jsonDraft)), r;
2566
2597
  let a = t(e.value), o = n.createElement("div");
2567
- if (o.className = "designer-static-data-tabs designer-static-inline-tabs", o.append(jn(n, "table", d.dataSource.staticForm, e.tab === "table"), jn(n, "advanced", d.dataSource.staticAdvanced, e.tab === "advanced")), r.appendChild(o), e.tab === "advanced" || !a.ok) r.appendChild(An(n, e.jsonDraft));
2598
+ if (o.className = "designer-static-data-tabs designer-static-inline-tabs", o.append(An(n, "table", w.dataSource.staticForm, e.tab === "table"), An(n, "advanced", w.dataSource.staticAdvanced, e.tab === "advanced")), r.appendChild(o), e.tab === "advanced" || !a.ok) r.appendChild(kn(n, e.jsonDraft));
2568
2599
  else {
2569
2600
  let t = n.createElement("div");
2570
2601
  t.className = "designer-static-tabular-summary";
2571
2602
  let i = n.createElement("strong");
2572
- i.textContent = d.dataSource.staticTabularSummary(a.value.fields.length, a.value.rows.length);
2603
+ i.textContent = w.dataSource.staticTabularSummary(a.value.fields.length, a.value.rows.length);
2573
2604
  let o = n.createElement("small");
2574
2605
  o.textContent = Fn(e, a.value), t.append(i, o), r.append(t, Rn(n, a.value, e.page, e.pageSize, e.scrollScope));
2575
2606
  }
@@ -2579,11 +2610,11 @@ function Bn(e) {
2579
2610
  let n = e.ownerDocument.createElement("section");
2580
2611
  n.className = "designer-data-source-editor designer-static-inline-mapping", n.dataset.inspectorSearchSection = "true";
2581
2612
  let r = e.ownerDocument.createElement("h4");
2582
- r.className = "designer-inspector-section-title", r.textContent = d.dataSource.mappingStep;
2613
+ r.className = "designer-inspector-section-title", r.textContent = w.dataSource.mappingStep;
2583
2614
  let i = t(e.value);
2584
2615
  if (n.appendChild(r), !i.ok) {
2585
2616
  let t = e.ownerDocument.createElement("p");
2586
- return t.className = "designer-empty-state", t.textContent = d.dataSource.staticInvalid, n.appendChild(t), n;
2617
+ return t.className = "designer-empty-state", t.textContent = w.dataSource.staticInvalid, n.appendChild(t), n;
2587
2618
  }
2588
2619
  return n.appendChild(In(e.ownerDocument, e, i.value)), n;
2589
2620
  }
@@ -2591,9 +2622,9 @@ function Vn(e) {
2591
2622
  let n = e.ownerDocument.createElement("aside");
2592
2623
  n.className = "designer-data-workbench-preview designer-static-inline-preview", n.dataset.workbenchSection = "preview";
2593
2624
  let r = e.ownerDocument.createElement("header"), i = e.ownerDocument.createElement("h4");
2594
- i.textContent = d.dataSource.responseTitle;
2625
+ i.textContent = w.dataSource.responseTitle;
2595
2626
  let a = t(e.value), o = e.ownerDocument.createElement("span");
2596
- o.dataset.status = a.ok ? "ready" : "error", o.textContent = a.ok ? d.dataSource.staticTabularSummary(a.value.fields.length, a.value.rows.length) : d.dataSource.staticInvalid, r.append(i, o);
2627
+ o.dataset.status = a.ok ? "ready" : "error", o.textContent = a.ok ? w.dataSource.staticTabularSummary(a.value.fields.length, a.value.rows.length) : w.dataSource.staticInvalid, r.append(i, o);
2597
2628
  let s = e.ownerDocument.createElement("pre");
2598
2629
  return s.dataset.staticPreviewValue = "true", e.scrollScope !== void 0 && (s.dataset.designerScrollScope = `static-preview:${e.scrollScope}`), s.textContent = JSON.stringify(a.ok ? a.value.rows.slice(0, 8) : e.value, null, 2), n.append(r, s), n;
2599
2630
  }
@@ -2621,7 +2652,7 @@ function Wn(e, t, n, r) {
2621
2652
  };
2622
2653
  }
2623
2654
  function Gn(e, t) {
2624
- let n = e.availableModes.includes("dataset"), r = e.availableModes.includes("host-resource"), i = d.data.entry.source;
2655
+ let n = e.availableModes.includes("dataset"), r = e.availableModes.includes("host-resource"), i = w.data.entry.source;
2625
2656
  if (!n && !r) return {
2626
2657
  entry: "source",
2627
2658
  mode: "dataset",
@@ -2639,12 +2670,12 @@ function Gn(e, t) {
2639
2670
  };
2640
2671
  }
2641
2672
  function Kn(e) {
2642
- return e === "inline" ? d.data.entry.inline : e === "variable" ? d.data.entry.variable : d.data.entry.source;
2673
+ return e === "inline" ? w.data.entry.inline : e === "variable" ? w.data.entry.variable : w.data.entry.source;
2643
2674
  }
2644
2675
  function qn(e) {
2645
2676
  return [
2646
- d.data.entry.legend,
2647
- d.data.panel.emptyTitle,
2677
+ w.data.entry.legend,
2678
+ w.data.panel.emptyTitle,
2648
2679
  ...e.map((e) => {
2649
2680
  let t = Kn(e.entry);
2650
2681
  return `${t.title} ${t.description} ${e.reason ?? t.disabled}`;
@@ -2656,7 +2687,7 @@ function Jn(e) {
2656
2687
  }
2657
2688
  function Yn(e, t) {
2658
2689
  let n = e.createElement("div");
2659
- n.className = "designer-data-entry-guide", n.dataset.dataEntryGroup = "true", n.dataset.dataEntryLayout = "empty", n.setAttribute("role", "radiogroup"), n.setAttribute("aria-label", d.data.panel.emptyTitle);
2690
+ n.className = "designer-data-entry-guide", n.dataset.dataEntryGroup = "true", n.dataset.dataEntryLayout = "empty", n.setAttribute("role", "radiogroup"), n.setAttribute("aria-label", w.data.panel.emptyTitle);
2660
2691
  for (let r of t) n.appendChild(Xn(e, r));
2661
2692
  return n;
2662
2693
  }
@@ -2674,12 +2705,12 @@ function Xn(e, t) {
2674
2705
  }
2675
2706
  if (r.append(i, a), !t.disabled) {
2676
2707
  let t = e.createElement("span");
2677
- t.className = "designer-data-entry-guide-disclosure", t.setAttribute("aria-hidden", "true"), t.innerHTML = b("chevron-right"), r.appendChild(t);
2708
+ t.className = "designer-data-entry-guide-disclosure", t.setAttribute("aria-hidden", "true"), t.innerHTML = m("chevron-right"), r.appendChild(t);
2678
2709
  }
2679
2710
  return r;
2680
2711
  }
2681
2712
  function G(e, t, n, r, i = !1) {
2682
- let a = m(e, {
2713
+ let a = p(e, {
2683
2714
  disabled: i,
2684
2715
  text: n
2685
2716
  });
@@ -2694,12 +2725,12 @@ function Zn(e, t) {
2694
2725
  i.className = "designer-dataset-status-dot", i.dataset.state = t.state, i.setAttribute("aria-hidden", "true");
2695
2726
  let a = e.createElement("span");
2696
2727
  a.dataset.datasetStatusText = "true", a.textContent = t.text, r.append(i, a);
2697
- let o = m(e, {
2728
+ let o = p(e, {
2698
2729
  className: "designer-dataset-undo",
2699
- text: d.dataSource.undo
2730
+ text: w.dataSource.undo
2700
2731
  });
2701
2732
  o.dataset.datasetAction = "undo", o.hidden = !t.canUndo, o.disabled = !t.canUndo;
2702
- let s = m(e, {
2733
+ let s = p(e, {
2703
2734
  disabled: t.actionDisabled,
2704
2735
  text: t.actionLabel
2705
2736
  });
@@ -2735,10 +2766,10 @@ function tr(e) {
2735
2766
  }
2736
2767
  function nr(e) {
2737
2768
  let t = e.createElement("span");
2738
- return t.textContent = d.data.panel.dirty, t;
2769
+ return t.textContent = w.data.panel.dirty, t;
2739
2770
  }
2740
2771
  function rr(e, t) {
2741
- let n = m(e, {
2772
+ let n = p(e, {
2742
2773
  disabled: t.disabled,
2743
2774
  text: t.label
2744
2775
  });
@@ -2747,7 +2778,7 @@ function rr(e, t) {
2747
2778
  function ir(e) {
2748
2779
  let t = e.dirty;
2749
2780
  return {
2750
- label: t ? d.data.panel.apply : d.data.panel.applied,
2781
+ label: t ? w.data.panel.apply : w.data.panel.applied,
2751
2782
  disabled: !t || e.blocked,
2752
2783
  dirty: t
2753
2784
  };
@@ -2765,15 +2796,15 @@ function ar(e) {
2765
2796
  if (n.dataset.dataEntryLayout = i, i === "empty") {
2766
2797
  n.dataset.workbenchSection = "source";
2767
2798
  let e = t.createElement("h3");
2768
- e.className = "designer-inspector-section-title", e.textContent = d.data.panel.emptyTitle;
2799
+ e.className = "designer-inspector-section-title", e.textContent = w.data.panel.emptyTitle;
2769
2800
  let i = t.createElement("p");
2770
- return i.className = "designer-data-entry-hint", i.textContent = d.data.panel.emptyHint, n.append(e, Yn(t, r), i), n;
2801
+ return i.className = "designer-data-entry-hint", i.textContent = w.data.panel.emptyHint, n.append(e, Yn(t, r), i), n;
2771
2802
  }
2772
2803
  let a = or(t, e);
2773
2804
  return a === null ? (n.dataset.inspectorSearchText = "", n) : (n.dataset.inspectorSearchText = [
2774
- d.dataSource.sourceBinding,
2775
- d.dataSource.sourceKind(e.mode),
2776
- d.dataSource.sourceKindChange
2805
+ w.dataSource.sourceBinding,
2806
+ w.dataSource.sourceKind(e.mode),
2807
+ w.dataSource.sourceKindChange
2777
2808
  ].join(" "), n.appendChild(a), n);
2778
2809
  }
2779
2810
  function or(e, t) {
@@ -2781,13 +2812,13 @@ function or(e, t) {
2781
2812
  let n = e.createElement("div");
2782
2813
  n.className = "designer-dataset-source-binding", n.dataset.sourceKindRow = "true";
2783
2814
  let r = e.createElement("span");
2784
- r.className = "designer-dataset-source-binding-label", r.textContent = d.dataSource.sourceBinding;
2815
+ r.className = "designer-dataset-source-binding-label", r.textContent = w.dataSource.sourceBinding;
2785
2816
  let i = e.createElement("span");
2786
- i.className = "designer-dataset-source-binding-value", i.textContent = d.dataSource.sourceKind(t.mode);
2787
- let a = m(e, {
2817
+ i.className = "designer-dataset-source-binding-value", i.textContent = w.dataSource.sourceKind(t.mode);
2818
+ let a = p(e, {
2788
2819
  className: "designer-dataset-source-change",
2789
2820
  size: "compact",
2790
- text: d.dataSource.sourceKindChange,
2821
+ text: w.dataSource.sourceKindChange,
2791
2822
  variant: "ghost"
2792
2823
  });
2793
2824
  return a.dataset.sourceKindChange = "true", n.append(r, i, a), n;
@@ -2805,16 +2836,16 @@ function lr(e) {
2805
2836
  }
2806
2837
  function ur(e) {
2807
2838
  if (e.hostResourceSelectionAvailable !== !0) return;
2808
- let t = m(e.panel.ownerDocument, { text: d.dataSource.hostResourceSelect });
2839
+ let t = p(e.panel.ownerDocument, { text: w.dataSource.hostResourceSelect });
2809
2840
  return t.dataset.datasetAction = "select-host-resource", t;
2810
2841
  }
2811
2842
  function dr(e) {
2812
2843
  let t = e.panel.ownerDocument, n = t.createElement("section");
2813
2844
  n.className = "designer-data-source-variable";
2814
- let r = v(t, { label: d.dataset.selectVariable }), i = S(t, {
2815
- ariaLabel: d.dataset.selectVariable,
2845
+ let r = v(t, { label: w.dataset.selectVariable }), i = d(t, {
2846
+ ariaLabel: w.dataset.selectVariable,
2816
2847
  options: [{
2817
- label: d.dataset.selectVariable,
2848
+ label: w.dataset.selectVariable,
2818
2849
  selected: e.variableSourceId === void 0,
2819
2850
  value: ""
2820
2851
  }, ...e.variables.map((t) => ({
@@ -2824,7 +2855,7 @@ function dr(e) {
2824
2855
  }))],
2825
2856
  value: e.variableSourceId ?? ""
2826
2857
  });
2827
- return i.dataset.dataVariableSource = "true", r.control.appendChild(C(i).element), n.appendChild(r.field), n;
2858
+ return i.dataset.dataVariableSource = "true", r.control.appendChild(T(i).element), n.appendChild(r.field), n;
2828
2859
  }
2829
2860
  function fr(e) {
2830
2861
  return {
@@ -2846,8 +2877,8 @@ function pr(e) {
2846
2877
  let r = t.createElement("div");
2847
2878
  r.className = "designer-inspector-data-flow-content", r.dataset.designerScrollScope = `data-source:${e.scrollScope}`;
2848
2879
  let i = t.createElement("p");
2849
- i.className = "designer-host-resource-summary", i.dataset.hostResourceSummary = "true", i.textContent = e.hostResource === void 0 ? d.dataSource.hostResourceManaged : d.dataSource.hostResourceSummary(e.hostResource.resourceType, e.hostResource.resourceId), r.append(ar(e), i);
2850
- for (let t of pn(e)) t !== "value" && r.appendChild(_r(t, e));
2880
+ i.className = "designer-host-resource-summary", i.dataset.hostResourceSummary = "true", i.textContent = e.hostResource === void 0 ? w.dataSource.hostResourceManaged : w.dataSource.hostResourceSummary(e.hostResource.resourceType, e.hostResource.resourceId), r.append(ar(e), i);
2881
+ for (let t of fn(e)) t !== "value" && r.appendChild(_r(t, e));
2851
2882
  let a = ur(e);
2852
2883
  return a !== void 0 && r.appendChild(a), n.appendChild(r), n;
2853
2884
  }
@@ -2865,7 +2896,7 @@ function mr(e, t) {
2865
2896
  e.appendChild(dr(t)), e.appendChild(Zn(e.ownerDocument, K(t))), gr(e);
2866
2897
  return;
2867
2898
  }
2868
- for (let n of pn(t)) n !== "value" && e.appendChild(_r(n, t));
2899
+ for (let n of fn(t)) n !== "value" && e.appendChild(_r(n, t));
2869
2900
  e.appendChild(Zn(e.ownerDocument, K(t))), gr(e);
2870
2901
  }
2871
2902
  }
@@ -2881,14 +2912,14 @@ function hr(e) {
2881
2912
  function K(e) {
2882
2913
  if (e.mode !== "dataset") return {
2883
2914
  state: e.dirty ? "dirty" : "synced",
2884
- text: e.dirty ? d.dataSource.draft : d.dataSource.synced,
2915
+ text: e.dirty ? w.dataSource.draft : w.dataSource.synced,
2885
2916
  action: "apply",
2886
- actionLabel: e.dirty ? d.data.panel.apply : d.data.panel.applied,
2917
+ actionLabel: e.dirty ? w.data.panel.apply : w.data.panel.applied,
2887
2918
  actionDisabled: !e.dirty,
2888
2919
  canUndo: e.canUndo === !0
2889
2920
  };
2890
2921
  let t = P(e.descriptor, e.draft), n = e.preview.status === "loading", r = e.preview.status === "ready", i = e.preview.status === "error", a = n || t > 0 || e.descriptor === void 0 || !e.resourceAvailable, o, s, c, l = "test";
2891
- return n ? (o = "loading", s = d.dataSource.testing, c = d.dataSource.testing) : t > 0 ? (o = "invalid", s = d.dataSource.parametersUnfilled(t), c = d.dataSource.test) : i ? (o = "error", s = d.dataSource.responseFailed, c = d.dataSource.retry) : r ? (o = "ready", s = d.dataSource.syncedRows(hr(e.preview.rawValue)), c = d.dataset.refresh) : e.dirty ? (o = "dirty", s = d.dataSource.draft, l = "sync", c = d.dataSource.sync) : (o = "synced", s = d.dataSource.synced, c = d.dataSource.test), {
2922
+ return n ? (o = "loading", s = w.dataSource.testing, c = w.dataSource.testing) : t > 0 ? (o = "invalid", s = w.dataSource.parametersUnfilled(t), c = w.dataSource.test) : i ? (o = "error", s = w.dataSource.responseFailed, c = w.dataSource.retry) : r ? (o = "ready", s = w.dataSource.syncedRows(hr(e.preview.rawValue)), c = w.dataset.refresh) : e.dirty ? (o = "dirty", s = w.dataSource.draft, l = "sync", c = w.dataSource.sync) : (o = "synced", s = w.dataSource.synced, c = w.dataSource.test), {
2892
2923
  state: o,
2893
2924
  text: s,
2894
2925
  actionLabel: c,
@@ -2921,7 +2952,7 @@ function _r(e, t) {
2921
2952
  if (e === "authoring") {
2922
2953
  n.classList.add("designer-inspector-advanced-settings"), n.dataset.workbenchSection = "refresh", n.tabIndex = -1;
2923
2954
  let e = n.querySelector(".designer-inspector-section-title");
2924
- e !== null && (e.textContent = d.dataSource.advancedSettings);
2955
+ e !== null && (e.textContent = w.dataSource.advancedSettings);
2925
2956
  }
2926
2957
  return n;
2927
2958
  }
@@ -2933,7 +2964,7 @@ function vr(e) {
2933
2964
  });
2934
2965
  }
2935
2966
  function yr(e, t) {
2936
- let n = B(e, t);
2967
+ let n = V(e, t);
2937
2968
  if (n === void 0) throw Error(`DATASET_SECTION_UNAVAILABLE:${e}`);
2938
2969
  return n;
2939
2970
  }
@@ -2957,23 +2988,33 @@ var Sr = [
2957
2988
  "fixed"
2958
2989
  ];
2959
2990
  function Cr(e) {
2960
- let t = e.panel.ownerDocument, n = t.createElement("div");
2961
- n.className = "designer-source-sheet-layer", n.dataset.sourceSheet = "true";
2962
- let r = t.createElement("section");
2963
- r.className = "designer-source-sheet", r.setAttribute("role", "dialog"), r.setAttribute("aria-modal", "true"), r.setAttribute("aria-labelledby", "designer-source-sheet-title"), r.tabIndex = -1;
2964
- let i = t.createElement("header");
2965
- i.className = "designer-source-sheet-head";
2966
- let a = t.createElement("div"), o = t.createElement("h2");
2967
- o.id = "designer-source-sheet-title", o.textContent = d.dataSource.pickerTitle, a.append(o);
2968
- let s = t.createElement("button");
2969
- s.type = "button", s.className = "designer-source-sheet-close", s.dataset.sourceSheetClose = "true", s.setAttribute("aria-label", d.dataSource.pickerClose), s.innerHTML = b("close"), i.append(a, s);
2970
- let c = t.createElement("div");
2971
- c.className = "designer-source-sheet-tabs", c.setAttribute("role", "tablist"), c.setAttribute("aria-label", d.dataSource.pickerTabsLabel);
2972
- let l = new Map(Un({
2991
+ let t = e.panel.ownerDocument, n = e.sourcePickerExpanded === !0 && e.overlayHost !== void 0, r = t.createElement("div");
2992
+ r.className = n ? "designer-source-sheet-layer designer-source-sheet-layer-expanded" : "designer-source-sheet-layer", r.dataset.sourceSheet = "true", n && (r.dataset.sourceSheetExpanded = "true");
2993
+ let i = t.createElement("section");
2994
+ i.className = n ? "designer-source-sheet designer-source-sheet-expanded" : "designer-source-sheet", i.setAttribute("role", "dialog"), i.setAttribute("aria-modal", "true"), i.setAttribute("aria-labelledby", "designer-source-sheet-title"), i.tabIndex = -1;
2995
+ let a = t.createElement("header");
2996
+ a.className = "designer-source-sheet-head";
2997
+ let o = t.createElement("div"), s = t.createElement("h2");
2998
+ s.id = "designer-source-sheet-title", s.textContent = w.dataSource.pickerTitle, o.append(s);
2999
+ let c = t.createElement("button");
3000
+ c.type = "button", c.className = "designer-source-sheet-close", c.dataset.sourceSheetClose = "true", c.setAttribute("aria-label", w.dataSource.pickerClose), c.innerHTML = m("close");
3001
+ let l = t.createElement("div");
3002
+ if (l.className = "designer-source-sheet-head-actions", n || e.sourcePickerTab === "dataset") {
3003
+ let e = t.createElement("button");
3004
+ e.type = "button", e.className = "designer-source-sheet-expand", e.dataset.sourceSheetExpand = "true";
3005
+ let r = n ? w.dataSource.pickerCollapse : w.dataSource.pickerExpand;
3006
+ e.setAttribute("aria-label", r), e.title = r, e.innerHTML = m("fit");
3007
+ let i = t.createElement("span");
3008
+ i.textContent = r, e.appendChild(i), l.appendChild(e);
3009
+ }
3010
+ l.appendChild(c), a.append(o, l);
3011
+ let u = t.createElement("div");
3012
+ u.className = "designer-source-sheet-tabs", u.setAttribute("role", "tablist"), u.setAttribute("aria-label", w.dataSource.pickerTabsLabel);
3013
+ let d = new Map(Un({
2973
3014
  mode: e.mode,
2974
3015
  availableModes: e.availableModes,
2975
3016
  resourceAvailable: e.resourceAvailable
2976
- }).map((e) => [e.entry, e])), u = {
3017
+ }).map((e) => [e.entry, e])), f = {
2977
3018
  dataset: "source",
2978
3019
  variable: "variable",
2979
3020
  fixed: "inline"
@@ -2981,48 +3022,79 @@ function Cr(e) {
2981
3022
  for (let n of Sr) {
2982
3023
  let r = t.createElement("button");
2983
3024
  r.type = "button", r.dataset.sourceSheetTab = n, r.setAttribute("role", "tab"), r.setAttribute("aria-selected", String(e.sourcePickerTab === n)), r.tabIndex = e.sourcePickerTab === n ? 0 : -1;
2984
- let i = l.get(u[n]);
2985
- r.disabled = i?.disabled === !0, i?.reason !== void 0 && (r.title = i.reason), r.textContent = d.dataSource.pickerTab(n), c.appendChild(r);
3025
+ let i = d.get(f[n]);
3026
+ r.disabled = i?.disabled === !0, i?.reason !== void 0 && (r.title = i.reason), r.textContent = w.dataSource.pickerTab(n), u.appendChild(r);
2986
3027
  }
2987
- let f = t.createElement("div");
2988
- f.className = "designer-source-sheet-tools";
2989
3028
  let p = t.createElement("div");
2990
- p.className = "designer-source-sheet-scroll", p.setAttribute("role", "tabpanel");
2991
- let m = e.sourcePickerTab === "fixed" ? Er(e) : "";
2992
- if (e.sourcePickerTab === "fixed") f.hidden = !0, p.appendChild(Dr(t, m));
3029
+ p.className = "designer-source-sheet-tools";
3030
+ let h = t.createElement("div");
3031
+ h.className = "designer-source-sheet-scroll", h.setAttribute("role", "tabpanel");
3032
+ let g = e.sourcePickerTab === "fixed" ? Or(e) : "";
3033
+ if (e.sourcePickerTab === "fixed") p.hidden = !0, h.appendChild(kr(t, g));
2993
3034
  else {
2994
- if (f.appendChild(wr(t, e)), e.sourcePickerTab === "dataset") {
3035
+ p.appendChild(wr(t, e));
3036
+ let r = e.sourcePickerTab === "dataset" && n;
3037
+ if (e.sourcePickerTab === "dataset" && !r) {
2995
3038
  let t = dt(e);
2996
- t !== void 0 && f.appendChild(t);
3039
+ t !== void 0 && p.appendChild(t);
2997
3040
  }
2998
- p.appendChild(e.sourcePickerTab === "variable" ? Tr(e) : ft(e));
3041
+ if (r) {
3042
+ let n = Er(e);
3043
+ if (n !== void 0) {
3044
+ h.classList.add("designer-source-sheet-split");
3045
+ let r = t.createElement("div");
3046
+ r.className = "designer-source-sheet-results", r.appendChild(I(e)), h.append(n, r);
3047
+ } else h.appendChild(I(e));
3048
+ } else h.appendChild(e.sourcePickerTab === "variable" ? Dr(e) : I(e));
2999
3049
  }
3000
- return r.append(i, c, f, p, Or(t, e, m)), n.appendChild(r), n;
3050
+ return i.append(a, u, p, h, Ar(t, e, g, n)), r.appendChild(i), r;
3001
3051
  }
3002
3052
  function wr(e, t) {
3003
3053
  let n = e.createElement("label");
3004
3054
  n.className = "designer-source-sheet-search";
3005
3055
  let r = e.createElement("span");
3006
- r.className = "designer-source-sheet-search-glyph", r.setAttribute("aria-hidden", "true"), r.innerHTML = b("search");
3007
- let i = t.sourcePickerTab === "variable", a = p(e, {
3056
+ r.className = "designer-source-sheet-search-glyph", r.setAttribute("aria-hidden", "true"), r.innerHTML = m("search");
3057
+ let i = t.sourcePickerTab === "variable", a = g(e, {
3008
3058
  type: "search",
3009
3059
  className: "designer-source-sheet-search-input",
3010
- ariaLabel: i ? d.dataSource.pickerSearchVariable : d.dataSource.pickerSearchDataset,
3011
- placeholder: i ? d.dataSource.pickerSearchVariable : d.dataSource.pickerSearchDataset,
3060
+ ariaLabel: i ? w.dataSource.pickerSearchVariable : w.dataSource.pickerSearchDataset,
3061
+ placeholder: i ? w.dataSource.pickerSearchVariable : w.dataSource.pickerSearchDataset,
3012
3062
  value: i ? t.variableQuery : t.query
3013
3063
  });
3014
3064
  return a.autocomplete = "off", i ? a.dataset.datasetVariableQuery = "true" : a.dataset.datasetQuery = "true", n.append(r, a), n;
3015
3065
  }
3016
- function Tr(e) {
3066
+ function Tr(e, t) {
3067
+ let n = e.createElement("div");
3068
+ n.className = "designer-source-sheet-pager", n.hidden = t.items.length === 0;
3069
+ let r = e.createElement("button");
3070
+ r.type = "button", r.className = "designer-source-sheet-page", r.dataset.sourceSheetPage = "previous", r.textContent = w.dataSource.pickerPagePrevious, r.disabled = t.catalogHasPreviousPage !== !0;
3071
+ let i = e.createElement("span");
3072
+ i.className = "designer-source-sheet-page-label", i.dataset.sourceSheetPageLabel = "", i.textContent = w.dataSource.pickerPage((t.catalogPageIndex ?? 0) + 1);
3073
+ let a = e.createElement("button");
3074
+ return a.type = "button", a.className = "designer-source-sheet-page", a.dataset.sourceSheetPage = "next", a.textContent = w.dataSource.pickerPageNext, a.disabled = t.catalogHasNextPage !== !0, n.append(r, i, a), n;
3075
+ }
3076
+ function Er(e) {
3077
+ if (e.groups === void 0 || e.groups.length === 0) return;
3078
+ let t = e.panel.ownerDocument, n = t.createElement("nav");
3079
+ n.className = "designer-source-sheet-groups", n.setAttribute("aria-label", w.dataset.group);
3080
+ let r = e.groupId ?? "", i = (e, i) => {
3081
+ let a = t.createElement("button");
3082
+ a.type = "button", a.className = "designer-source-sheet-group-option", a.dataset.sourceSheetGroupOption = e, a.setAttribute("aria-pressed", String(r === e)), a.textContent = i, n.appendChild(a);
3083
+ };
3084
+ i("", w.dataset.allGroups);
3085
+ for (let t of e.groups) i(t.id, t.name);
3086
+ return n;
3087
+ }
3088
+ function Dr(e) {
3017
3089
  let t = e.panel.ownerDocument, n = t.createElement("div");
3018
3090
  n.className = "designer-source-sheet-list", n.dataset.sourceSheetVariables = "true";
3019
3091
  let r = e.variableQuery.trim().toLowerCase(), i = e.variables.filter((e) => r === "" || e.name.toLowerCase().includes(r)), a = t.createElement("p");
3020
- a.className = "designer-empty-state", a.dataset.sourceSheetVariableEmpty = "true", a.textContent = e.variables.length === 0 ? d.dataSource.pickerNoVariables : d.dataSource.pickerNoVariableMatch, a.hidden = i.length > 0;
3092
+ a.className = "designer-empty-state", a.dataset.sourceSheetVariableEmpty = "true", a.textContent = e.variables.length === 0 ? w.dataSource.pickerNoVariables : w.dataSource.pickerNoVariableMatch, a.hidden = i.length > 0;
3021
3093
  for (let r of i) {
3022
3094
  let i = t.createElement("button");
3023
3095
  i.type = "button", i.className = "designer-source-sheet-item", i.dataset.sourceSheetVariable = r.id, i.setAttribute("aria-pressed", String(e.mode === "variable" && e.variableSourceId === r.id));
3024
3096
  let a = t.createElement("span");
3025
- a.className = "designer-source-sheet-item-glyph", a.setAttribute("aria-hidden", "true"), a.innerHTML = b("variable");
3097
+ a.className = "designer-source-sheet-item-glyph", a.setAttribute("aria-hidden", "true"), a.innerHTML = m("variable");
3026
3098
  let o = t.createElement("span");
3027
3099
  o.className = "designer-source-sheet-item-copy";
3028
3100
  let s = t.createElement("strong");
@@ -3032,51 +3104,51 @@ function Tr(e) {
3032
3104
  }
3033
3105
  return n.appendChild(a), n;
3034
3106
  }
3035
- function Er(e) {
3107
+ function Or(e) {
3036
3108
  let t = e.staticDraft.trim();
3037
3109
  if (t !== "" && t !== "null") return e.staticDraft;
3038
3110
  let n = e.preview.rawValue;
3039
3111
  return typeof n == "object" && n && !Array.isArray(n) && Array.isArray(n.fields) && Array.isArray(n.rows) ? JSON.stringify(n, null, 2) : e.staticDraft;
3040
3112
  }
3041
- function Dr(e, t) {
3113
+ function kr(e, t) {
3042
3114
  let n = e.createElement("div");
3043
3115
  n.className = "designer-source-sheet-fixed";
3044
3116
  let r = e.createElement("div");
3045
3117
  r.className = "designer-source-sheet-fixed-toolbar";
3046
3118
  let i = e.createElement("span");
3047
- i.textContent = d.dataSource.pickerFixedFormat;
3119
+ i.textContent = w.dataSource.pickerFixedFormat;
3048
3120
  let a = e.createElement("button");
3049
- a.type = "button", a.className = "designer-source-sheet-link", a.dataset.sourceSheetFormat = "true", a.textContent = d.dataSource.pickerFixedFormatAction, r.append(i, a);
3050
- let o = y(e, {
3121
+ a.type = "button", a.className = "designer-source-sheet-link", a.dataset.sourceSheetFormat = "true", a.textContent = w.dataSource.pickerFixedFormatAction, r.append(i, a);
3122
+ let o = _(e, {
3051
3123
  className: "designer-source-sheet-fixed-area",
3052
- ariaLabel: d.dataSource.pickerFixedAria,
3124
+ ariaLabel: w.dataSource.pickerFixedAria,
3053
3125
  value: t
3054
3126
  });
3055
3127
  return o.dataset.sourceSheetFixed = "true", o.spellcheck = !1, n.append(r, o), n;
3056
3128
  }
3057
- function Or(e, t, n) {
3058
- let r = e.createElement("footer");
3059
- r.className = "designer-source-sheet-foot";
3060
- let i = e.createElement("span");
3061
- i.className = "designer-source-sheet-note", i.dataset.sourceSheetNote = "true";
3062
- let a = e.createElement("div");
3063
- if (a.className = "designer-source-sheet-actions", t.sourcePickerTab === "fixed") {
3064
- let r = kr(n, t.staticDescriptor);
3065
- i.textContent = r.note, i.dataset.tone = r.ok ? "ok" : "error";
3066
- let o = e.createElement("button");
3067
- o.type = "button", o.className = "designer-source-sheet-primary", o.dataset.sourceSheetApplyFixed = "true", o.textContent = d.dataSource.pickerFixedApply, o.disabled = !r.ok, a.appendChild(o);
3129
+ function Ar(e, t, n, r) {
3130
+ let i = e.createElement("footer");
3131
+ i.className = "designer-source-sheet-foot";
3132
+ let a = e.createElement("span");
3133
+ a.className = "designer-source-sheet-note", a.dataset.sourceSheetNote = "true";
3134
+ let o = e.createElement("div");
3135
+ if (o.className = "designer-source-sheet-actions", t.sourcePickerTab === "fixed") {
3136
+ let r = jr(n, t.staticDescriptor);
3137
+ a.textContent = r.note, a.dataset.tone = r.ok ? "ok" : "error";
3138
+ let i = e.createElement("button");
3139
+ i.type = "button", i.className = "designer-source-sheet-primary", i.dataset.sourceSheetApplyFixed = "true", i.textContent = w.dataSource.pickerFixedApply, i.disabled = !r.ok, o.appendChild(i);
3068
3140
  } else {
3069
- i.textContent = t.sourcePickerTab === "variable" ? d.dataSource.pickerVariableCount(t.variables.length) : d.dataSource.pickerDatasetCount(t.items.length);
3141
+ t.sourcePickerTab === "dataset" ? (a.textContent = r && t.feedback.trim() !== "" ? t.feedback : w.dataSource.pickerDatasetCount(t.items.length), r ? a.dataset.sourceSheetFeedback = "true" : a.dataset.sourceSheetDatasetCount = "true", o.appendChild(Tr(e, t))) : a.textContent = w.dataSource.pickerVariableCount(t.variables.length);
3070
3142
  let n = e.createElement("button");
3071
- n.type = "button", n.className = "designer-source-sheet-link", n.dataset.sourceSheetClose = "true", n.textContent = d.dataSource.pickerCloseAction, a.appendChild(n);
3143
+ n.type = "button", n.className = "designer-source-sheet-link", n.dataset.sourceSheetClose = "true", n.textContent = w.dataSource.pickerCloseAction, o.appendChild(n);
3072
3144
  }
3073
- return r.append(i, a), r;
3145
+ return i.append(a, o), i;
3074
3146
  }
3075
- function kr(e, n) {
3147
+ function jr(e, n) {
3076
3148
  let r = e.trim();
3077
3149
  if (r === "") return {
3078
3150
  ok: !1,
3079
- note: d.dataSource.pickerFixedEmpty
3151
+ note: w.dataSource.pickerFixedEmpty
3080
3152
  };
3081
3153
  let i;
3082
3154
  try {
@@ -3084,33 +3156,33 @@ function kr(e, n) {
3084
3156
  } catch {
3085
3157
  return {
3086
3158
  ok: !1,
3087
- note: d.dataSource.pickerFixedInvalid
3159
+ note: w.dataSource.pickerFixedInvalid
3088
3160
  };
3089
3161
  }
3090
3162
  if (n?.kind === "tabular") {
3091
3163
  let e = t(i);
3092
3164
  return e.ok ? {
3093
3165
  ok: !0,
3094
- note: d.dataSource.pickerFixedValid(e.value.rows.length, e.value.fields.length)
3166
+ note: w.dataSource.pickerFixedValid(e.value.rows.length, e.value.fields.length)
3095
3167
  } : {
3096
3168
  ok: !1,
3097
- note: e.diagnostics[0]?.message ?? d.dataSource.pickerFixedInvalid
3169
+ note: e.diagnostics[0]?.message ?? w.dataSource.pickerFixedInvalid
3098
3170
  };
3099
3171
  }
3100
3172
  return n?.kind === "scalar" && typeof i !== n.valueType ? {
3101
3173
  ok: !1,
3102
- note: d.dataSource.pickerFixedScalar(n.valueType)
3174
+ note: w.dataSource.pickerFixedScalar(n.valueType)
3103
3175
  } : {
3104
3176
  ok: !0,
3105
- note: d.dataSource.pickerFixedAny
3177
+ note: w.dataSource.pickerFixedAny
3106
3178
  };
3107
3179
  }
3108
- function Ar(e) {
3180
+ function Mr(e) {
3109
3181
  let { panel: t } = e;
3110
- Dt(t), t.replaceChildren();
3182
+ Et(t), t.replaceChildren();
3111
3183
  let n = t.ownerDocument.createElement("section");
3112
3184
  n.className = "designer-data-source-panel", n.dataset.dataSourcePanel = "true", n.dataset.inspectorSearchSection = "true", n.appendChild(Le(t.ownerDocument, e.dataState));
3113
- let r = jr(t.ownerDocument, e);
3185
+ let r = Nr(t.ownerDocument, e);
3114
3186
  r !== void 0 && n.appendChild(r);
3115
3187
  let i = pr(e);
3116
3188
  n.appendChild(i);
@@ -3118,111 +3190,112 @@ function Ar(e) {
3118
3190
  a.className = "designer-data-source-feedback", a.dataset.datasetFeedback = "true", a.setAttribute("role", "status"), a.setAttribute("aria-live", "polite"), a.textContent = e.feedback;
3119
3191
  let o = i.querySelector(".designer-inspector-data-flow-content"), s = o?.querySelector(".designer-dataset-actions");
3120
3192
  s == null ? (o ?? n).appendChild(a) : s.before(a), t.appendChild(n);
3121
- let c = t.closest(".properties") ?? t;
3122
- for (let e of c.querySelectorAll("[data-source-sheet]")) e.remove();
3123
- return e.catalogOpen && e.surface === "inspector" && c.appendChild(Cr(e)), { feedback: a };
3193
+ let c = t.closest(".properties") ?? t, l = (e.sourcePickerExpanded === !0 ? e.overlayHost : void 0) ?? c, u = /* @__PURE__ */ new Set([c]);
3194
+ e.overlayHost !== void 0 && u.add(e.overlayHost);
3195
+ for (let e of u) for (let t of e.querySelectorAll("[data-source-sheet]")) t.remove();
3196
+ return e.catalogOpen && e.surface === "inspector" && l.appendChild(Cr(e)), { feedback: a };
3124
3197
  }
3125
- function jr(e, t) {
3198
+ function Nr(e, t) {
3126
3199
  let n = t.dataValue;
3127
3200
  if (t.surface !== "inspector" || n?.kind !== "inline" || n.sample !== !0) return;
3128
- let r = d.sampleData, i = e.createElement("div");
3201
+ let r = w.sampleData, i = e.createElement("div");
3129
3202
  i.className = "designer-data-notice designer-sample-data-notice", i.dataset.dataNoticeTone = "warning", i.dataset.sampleInspectorNotice = "", i.setAttribute("role", "status");
3130
3203
  let a = e.createElement("span");
3131
3204
  a.className = "designer-data-notice-text", a.textContent = r.inspectorNotice;
3132
3205
  let o = e.createElement("span");
3133
3206
  o.className = "designer-sample-data-actions";
3134
- let s = m(e, {
3207
+ let s = p(e, {
3135
3208
  className: "designer-data-notice-retry",
3136
3209
  text: r.bind
3137
3210
  });
3138
3211
  s.dataset.datasetChange = "", s.dataset.tip = r.bindTip;
3139
- let c = m(e, {
3212
+ let c = p(e, {
3140
3213
  className: "designer-data-notice-retry",
3141
3214
  text: r.keep
3142
3215
  });
3143
3216
  return c.dataset.sampleAction = "keep", c.dataset.tip = r.keepTip, o.append(s, c), i.append(a, o), i;
3144
3217
  }
3145
- function Mr(e) {
3218
+ function Pr(e) {
3146
3219
  let t = e.panel.ownerDocument, n = t.createElement("div");
3147
3220
  n.className = "designer-data-workbench-shell", n.dataset.datasetWorkbench = "true", n.dataset.inspectorSearchSection = "true", n.dataset.inspectorSearchText = [
3148
- e.descriptor?.name ?? d.dataSource.workbench,
3149
- d.dataSource.sourceStep,
3150
- d.dataSource.mappingStep,
3151
- d.dataSource.transformStep,
3152
- d.dataSource.previewStep,
3153
- d.dataSource.refreshStep
3221
+ e.descriptor?.name ?? w.dataSource.workbench,
3222
+ w.dataSource.sourceStep,
3223
+ w.dataSource.mappingStep,
3224
+ w.dataSource.transformStep,
3225
+ w.dataSource.previewStep,
3226
+ w.dataSource.refreshStep
3154
3227
  ].join(" ");
3155
3228
  let r = t.createElement("header");
3156
3229
  r.className = "designer-workbench-header";
3157
3230
  let i = t.createElement("div");
3158
- i.appendChild(G(t, "close-workbench", d.dataSource.backToCanvas));
3231
+ i.appendChild(G(t, "close-workbench", w.dataSource.backToCanvas));
3159
3232
  let a = t.createElement("span");
3160
3233
  a.className = "designer-workbench-identity";
3161
3234
  let o = t.createElement("h3");
3162
- o.textContent = e.descriptor?.name ?? d.dataSource.workbench;
3235
+ o.textContent = e.descriptor?.name ?? w.dataSource.workbench;
3163
3236
  let s = t.createElement("span");
3164
- s.className = "designer-workbench-draft", s.dataset.dirty = String(e.dirty), s.textContent = e.dirty ? d.dataSource.draft : d.dataSource.synced, a.append(o, s), i.appendChild(a);
3237
+ s.className = "designer-workbench-draft", s.dataset.dirty = String(e.dirty), s.textContent = e.dirty ? w.dataSource.draft : w.dataSource.synced, a.append(o, s), i.appendChild(a);
3165
3238
  let c = t.createElement("div");
3166
- c.className = "designer-workbench-actions", c.append(G(t, "toggle-preview", e.preview.open ? d.dataSource.previewClose : d.dataSource.previewOpen, "preview-toggle"), G(t, "test", e.preview.status === "loading" ? d.dataSource.testing : d.dataSource.test, void 0, e.descriptor === void 0 || !e.resourceAvailable || e.preview.status === "loading"), G(t, "apply", d.dataSource.apply("dataset"), "primary", !e.dirty || e.descriptor === void 0 || !e.resourceAvailable)), r.append(i, c);
3167
- let l = Pr(t, e.confirmClose), u = t.createElement("nav");
3239
+ c.className = "designer-workbench-actions", c.append(G(t, "toggle-preview", e.preview.open ? w.dataSource.previewClose : w.dataSource.previewOpen, "preview-toggle"), G(t, "test", e.preview.status === "loading" ? w.dataSource.testing : w.dataSource.test, void 0, e.descriptor === void 0 || !e.resourceAvailable || e.preview.status === "loading"), G(t, "apply", w.dataSource.apply("dataset"), "primary", !e.dirty || e.descriptor === void 0 || !e.resourceAvailable)), r.append(i, c);
3240
+ let l = Ir(t, e.confirmClose), u = t.createElement("nav");
3168
3241
  u.className = "designer-data-workbench-steps", u.dataset.inspectorSearchSection = "true", u.dataset.inspectorSearchText = [
3169
- d.dataSource.sourceStep,
3170
- d.dataSource.mappingStep,
3171
- d.dataSource.transformStep,
3172
- d.dataSource.previewStep,
3173
- d.dataSource.refreshStep
3174
- ].join(" "), u.setAttribute("aria-label", d.dataSource.workbench);
3242
+ w.dataSource.sourceStep,
3243
+ w.dataSource.mappingStep,
3244
+ w.dataSource.transformStep,
3245
+ w.dataSource.previewStep,
3246
+ w.dataSource.refreshStep
3247
+ ].join(" "), u.setAttribute("aria-label", w.dataSource.workbench);
3175
3248
  for (let [n, r, i] of [
3176
3249
  [
3177
3250
  "source",
3178
- d.dataSource.sourceStep,
3251
+ w.dataSource.sourceStep,
3179
3252
  "available"
3180
3253
  ],
3181
3254
  [
3182
3255
  "mapping",
3183
- d.dataSource.mappingStep,
3256
+ w.dataSource.mappingStep,
3184
3257
  e.descriptor === void 0 ? "pending" : "available"
3185
3258
  ],
3186
3259
  [
3187
3260
  "transform",
3188
- d.dataSource.transformStep,
3261
+ w.dataSource.transformStep,
3189
3262
  "unavailable"
3190
3263
  ],
3191
3264
  [
3192
3265
  "preview",
3193
- d.dataSource.previewStep,
3266
+ w.dataSource.previewStep,
3194
3267
  e.descriptor === void 0 ? "pending" : "available"
3195
3268
  ],
3196
3269
  [
3197
3270
  "refresh",
3198
- d.dataSource.refreshStep,
3271
+ w.dataSource.refreshStep,
3199
3272
  "available"
3200
3273
  ]
3201
3274
  ]) {
3202
3275
  let a = t.createElement("button");
3203
3276
  a.type = "button", a.dataset.workbenchStep = n, a.dataset.state = i === "available" && e.activeStep === n ? "current" : i, a.setAttribute("aria-current", e.activeStep === n ? "step" : "false"), a.disabled = i === "pending" || i === "unavailable", a.textContent = r, u.appendChild(a);
3204
3277
  }
3205
- let f = t.createElement("main");
3206
- f.className = "designer-static-data-content", f.dataset.designerScrollScope = `data-workbench-editor:${e.scrollScope}`, f.appendChild(Nr("host-link", e)), f.appendChild(Nr("source", e)), (e.descriptor !== void 0 || e.mode === "host-resource") && f.append(Nr("authoring", e), Fr(t, "transform", d.dataSource.transformStep, d.dataSource.transformUnavailable), Fr(t, "refresh", d.dataSource.refreshStep, Xt(e.authoring)));
3207
- let p = Nr("preview", e), m = t.createElement("div");
3208
- return m.className = "designer-data-workbench-grid", m.append(u, f, p), n.dataset.kind = "dataset", n.dataset.inspectorPane = "data", n.append(r, l, m), n;
3278
+ let d = t.createElement("main");
3279
+ d.className = "designer-static-data-content", d.dataset.designerScrollScope = `data-workbench-editor:${e.scrollScope}`, d.appendChild(Fr("host-link", e)), d.appendChild(Fr("source", e)), (e.descriptor !== void 0 || e.mode === "host-resource") && d.append(Fr("authoring", e), Lr(t, "transform", w.dataSource.transformStep, w.dataSource.transformUnavailable), Lr(t, "refresh", w.dataSource.refreshStep, Yt(e.authoring)));
3280
+ let f = Fr("preview", e), p = t.createElement("div");
3281
+ return p.className = "designer-data-workbench-grid", p.append(u, d, f), n.dataset.kind = "dataset", n.dataset.inspectorPane = "data", n.append(r, l, p), n;
3209
3282
  }
3210
- function Nr(e, t) {
3211
- let n = B(e, t);
3283
+ function Fr(e, t) {
3284
+ let n = V(e, t);
3212
3285
  if (n === void 0) throw Error(`DATASET_SECTION_UNAVAILABLE:${e}`);
3213
3286
  return n;
3214
3287
  }
3215
- function Pr(e, t) {
3288
+ function Ir(e, t) {
3216
3289
  let n = e.createElement("section");
3217
3290
  n.className = "designer-workbench-confirm", n.hidden = !t, n.dataset.datasetDiscardConfirm = "true";
3218
3291
  let r = e.createElement("span"), i = e.createElement("strong");
3219
- i.textContent = d.dataSource.discardTitle;
3292
+ i.textContent = w.dataSource.discardTitle;
3220
3293
  let a = e.createElement("small");
3221
- a.textContent = d.dataSource.discardDetail, r.append(i, a);
3294
+ a.textContent = w.dataSource.discardDetail, r.append(i, a);
3222
3295
  let o = e.createElement("span");
3223
- return o.append(G(e, "keep-editing", d.dataSource.keepEditing), G(e, "discard-workbench", d.dataSource.discard, "danger")), n.append(r, o), n;
3296
+ return o.append(G(e, "keep-editing", w.dataSource.keepEditing), G(e, "discard-workbench", w.dataSource.discard, "danger")), n.append(r, o), n;
3224
3297
  }
3225
- function Fr(e, t, n, r) {
3298
+ function Lr(e, t, n, r) {
3226
3299
  let i = e.createElement("section");
3227
3300
  i.className = "designer-dataset-config-section designer-data-workbench-notice", i.dataset.workbenchSection = t, i.dataset.inspectorSearchSection = "true", i.dataset.inspectorSearchText = `${n} ${r}`, i.tabIndex = -1;
3228
3301
  let a = e.createElement("h4");
@@ -3230,10 +3303,10 @@ function Fr(e, t, n, r) {
3230
3303
  let o = e.createElement("p");
3231
3304
  return o.textContent = r, i.append(a, o), i;
3232
3305
  }
3233
- function Ir(e, t) {
3306
+ function Rr(e, t) {
3234
3307
  return e === void 0 ? t.valueRef : l(e) ?? t.valueRef;
3235
3308
  }
3236
- function Lr(e, t, n) {
3309
+ function zr(e, t, n) {
3237
3310
  let r = Ne(e, t);
3238
3311
  if (r === void 0) return;
3239
3312
  if (r.status === "document") return r;
@@ -3247,49 +3320,49 @@ function Lr(e, t, n) {
3247
3320
  status: "pending"
3248
3321
  } : r;
3249
3322
  }
3250
- function Rr(e) {
3323
+ function Br(e) {
3251
3324
  let t = e.callbacks.preserveScrollContinuity;
3252
3325
  if (t !== void 0) {
3253
- t(() => zr(e));
3326
+ t(() => Vr(e));
3254
3327
  return;
3255
3328
  }
3256
- zr(e);
3329
+ Vr(e);
3257
3330
  }
3258
- function zr(e) {
3331
+ function Vr(e) {
3259
3332
  let t = e.state.panel;
3260
3333
  if (t === void 0) return;
3261
- let n = Vr(t), r = J(e, t, "inspector"), i = Ar(r);
3334
+ let n = Ur(t), r = J(e, t, "inspector"), i = Mr(r);
3262
3335
  e.state.feedback = i.feedback;
3263
3336
  let a = e.currentEntry()?.manifest, o = t.querySelector(".designer-inspector-data-flow-content") ?? t, s = t.ownerDocument.createElement("div");
3264
3337
  ee(s, a?.editorDescriptor?.data, {
3265
3338
  document: e.callbacks.getDocument(),
3266
3339
  interaction: e.callbacks.getInteraction(),
3267
3340
  catalog: e.callbacks.getCatalog(),
3268
- getDatasetFields: () => ci(e)
3341
+ getDatasetFields: () => ui(e)
3269
3342
  });
3270
3343
  let c = o.querySelector(".designer-dataset-actions"), l = o.querySelector("[data-ds-section=\"preview\"]") ?? c;
3271
3344
  if (l !== null) {
3272
3345
  for (; s.firstChild !== null;) l.before(s.firstChild);
3273
3346
  gr(o);
3274
3347
  } else for (; s.firstChild !== null;) o.appendChild(s.firstChild);
3275
- ti(e, J(e, t, "workbench")), bn(t, r);
3348
+ ri(e, J(e, t, "workbench")), yn(t, r);
3276
3349
  let u = e.callbacks.getWorkbenchHost?.();
3277
- u !== void 0 && bn(u, J(e, t, "workbench")), e.dataFlowScrollSync.bind(t), On(t, r.dataState), Re(t, r.dataState), n !== void 0 && t.querySelector(`[data-data-entry="${n}"]`)?.focus({ preventScroll: !0 });
3350
+ u !== void 0 && yn(u, J(e, t, "workbench")), e.dataFlowScrollSync.bind(t), Dn(t, r.dataState), Re(t, r.dataState), n !== void 0 && t.querySelector(`[data-data-entry="${n}"]`)?.focus({ preventScroll: !0 });
3278
3351
  }
3279
- function Br(e) {
3352
+ function Hr(e) {
3280
3353
  let t = e.state.panel;
3281
3354
  if (t === void 0) return;
3282
3355
  let n = J(e, t, "inspector");
3283
3356
  $n(t, vr(n)), Qn(t, K(n));
3284
3357
  }
3285
- function Vr(e) {
3358
+ function Ur(e) {
3286
3359
  let t = e.getRootNode()?.activeElement;
3287
3360
  if (t != null && t !== e) return t.closest("[data-data-entry]")?.dataset.dataEntry;
3288
3361
  }
3289
- function Hr(e) {
3362
+ function Wr(e) {
3290
3363
  let t = e.currentComponent()?.dataSource ?? null, n = t !== null || e.state.mode !== "none";
3291
3364
  if (!n) return { configured: !1 };
3292
- let r = Ur(e, t), i = e.currentComponent()?.status.locked === !0 ? "locked" : void 0, a = e.catalogController.status === "loading" || e.state.preview.status === "loading", o = Wr(e), s = Gr(e.state.preview);
3365
+ let r = Gr(e, t), i = e.currentComponent()?.status.locked === !0 ? "locked" : void 0, a = e.catalogController.status === "loading" || e.state.preview.status === "loading", o = Kr(e), s = qr(e.state.preview);
3293
3366
  return {
3294
3367
  configured: n,
3295
3368
  ...r === void 0 ? {} : { unavailable: r },
@@ -3299,17 +3372,17 @@ function Hr(e) {
3299
3372
  ...s ? { empty: s } : {}
3300
3373
  };
3301
3374
  }
3302
- function Ur(e, t) {
3375
+ function Gr(e, t) {
3303
3376
  let n = e.state.mode, r = t?.type === "dataset" || n === "dataset", i = t?.type === "variable" || n === "variable", a = t?.type === "host-resource" || n === "host-resource";
3304
3377
  if (r) return e.callbacks.getCatalogPort() === void 0 ? "port-missing" : e.state.draft !== void 0 && e.state.descriptor === void 0 ? "instance-missing" : void 0;
3305
3378
  if (i) return e.callbacks.getHostCatalogPort?.() === void 0 ? "port-missing" : void 0;
3306
3379
  if (a) return e.callbacks.getResourcePort() === void 0 ? "port-missing" : void 0;
3307
3380
  }
3308
- function Wr(e) {
3381
+ function Kr(e) {
3309
3382
  if (e.state.preview.status === "error") return e.state.preview.message;
3310
3383
  if (e.catalogController.status === "error") return "catalog";
3311
3384
  }
3312
- function Gr(e) {
3385
+ function qr(e) {
3313
3386
  if (e.status !== "ready" || e.rawValue === void 0) return !1;
3314
3387
  let t = e.rawValue;
3315
3388
  if (typeof t != "object" || !t || Array.isArray(t)) return !1;
@@ -3322,12 +3395,12 @@ function q(e, t) {
3322
3395
  let r = e.callbacks.getWorkbenchHost?.();
3323
3396
  for (let t of [n, r]) {
3324
3397
  if (t === void 0) continue;
3325
- let r = J(e, n, Zr(t, n));
3326
- vn(t, r), Re(t, r.dataState), $n(t, vr(r)), Qn(t, K(r));
3398
+ let r = J(e, n, $r(t, n));
3399
+ _n(t, r), Re(t, r.dataState), $n(t, vr(r)), Qn(t, K(r));
3327
3400
  }
3328
- On(n, J(e, n, "inspector").dataState), t?.();
3401
+ Dn(n, J(e, n, "inspector").dataState), t?.();
3329
3402
  }
3330
- function Kr(e) {
3403
+ function Jr(e) {
3331
3404
  let t = e.state.bindingOpenRoleId;
3332
3405
  if (t === null) return;
3333
3406
  e.state.bindingOpenRoleId = null;
@@ -3337,20 +3410,32 @@ function Kr(e) {
3337
3410
  for (let e of r.querySelectorAll("[data-dataset-binding-menu]")) e.dataset.datasetBindingMenu === t && (e.hidden = !0, e.parentElement?.querySelector("[data-dataset-binding-trigger]")?.setAttribute("aria-expanded", "false"));
3338
3411
  if (n === void 0) continue;
3339
3412
  let i = r.querySelector("[data-ds-section=\"source\"]");
3340
- i !== null && (i.dataset.dsContentKey = hn("source", J(e, n, Zr(r, n))));
3413
+ i !== null && (i.dataset.dsContentKey = mn("source", J(e, n, $r(r, n))));
3341
3414
  }
3342
3415
  }
3343
- function qr(e) {
3416
+ function Yr(e) {
3344
3417
  let t = e.state.panel;
3345
3418
  if (t === void 0) return;
3346
- let n = J(e, t, "inspector"), r = [typeof t.closest == "function" ? t.closest(".properties") ?? t : t, e.callbacks.getWorkbenchHost?.()];
3347
- for (let e of r) for (let t of e?.querySelectorAll("[data-dataset-results]") ?? []) t.replaceWith(ft(n));
3419
+ let n = J(e, t, "inspector"), r = [
3420
+ typeof t.closest == "function" ? t.closest(".properties") ?? t : t,
3421
+ e.callbacks.getOverlayHost?.(),
3422
+ e.callbacks.getWorkbenchHost?.()
3423
+ ];
3424
+ for (let e of r) {
3425
+ for (let t of e?.querySelectorAll("[data-dataset-results]") ?? []) t.replaceWith(I(n));
3426
+ for (let t of e?.querySelectorAll("[data-source-sheet-feedback]") ?? []) t.textContent = n.feedback;
3427
+ for (let t of e?.querySelectorAll("[data-source-sheet-dataset-count]") ?? []) t.textContent = w.dataSource.pickerDatasetCount(n.items.length);
3428
+ for (let t of e?.querySelectorAll("[data-source-sheet-page-label]") ?? []) t.textContent = w.dataSource.pickerPage((n.catalogPageIndex ?? 0) + 1);
3429
+ for (let t of e?.querySelectorAll("[data-source-sheet-page=\"previous\"]") ?? []) t.disabled = n.catalogHasPreviousPage !== !0;
3430
+ for (let t of e?.querySelectorAll("[data-source-sheet-page=\"next\"]") ?? []) t.disabled = n.catalogHasNextPage !== !0;
3431
+ for (let t of e?.querySelectorAll(".designer-source-sheet-pager") ?? []) t.hidden = n.items.length === 0;
3432
+ }
3348
3433
  q(e);
3349
3434
  }
3350
- function Jr(e) {
3435
+ function Xr(e) {
3351
3436
  e.cancelPreview(), e.state.preview = N(e.state.preview.open), q(e), e.catalogController.retry();
3352
3437
  }
3353
- function Yr(e, t) {
3438
+ function Zr(e, t) {
3354
3439
  let n = t === "mapping" || t === "preview" ? t : "source";
3355
3440
  if (n === e.state.activeStep) return;
3356
3441
  e.state.activeStep = n;
@@ -3362,7 +3447,7 @@ function Yr(e, t) {
3362
3447
  e.setAttribute("aria-current", t ? "step" : "false");
3363
3448
  }
3364
3449
  }
3365
- function Xr(e) {
3450
+ function Qr(e) {
3366
3451
  let t = e.state;
3367
3452
  if (t.mode === "static") return { valueRef: {
3368
3453
  kind: "inline",
@@ -3389,11 +3474,11 @@ function Xr(e) {
3389
3474
  }
3390
3475
  };
3391
3476
  }
3392
- function Zr(e, t) {
3477
+ function $r(e, t) {
3393
3478
  return e === t ? "inspector" : "workbench";
3394
3479
  }
3395
3480
  function J(e, t, n) {
3396
- let r = e.currentComponent()?.dataSource, i = e.currentComponent(), a = Xr(e), o = Ir(i, a), c = e.callbacks.getDocument(), l = o?.kind === "data-source-field" ? o.dataSourceId : void 0, u = c === void 0 || l === void 0 ? void 0 : s(c).find((e) => e.id === l), d = r?.type === "host-resource" ? {
3481
+ let r = e.currentComponent()?.dataSource, i = e.currentComponent(), a = Qr(e), o = Rr(i, a), c = e.callbacks.getDocument(), l = o?.kind === "data-source-field" ? o.dataSourceId : void 0, u = c === void 0 || l === void 0 ? void 0 : s(c).find((e) => e.id === l), d = r?.type === "host-resource" ? {
3397
3482
  resourceType: r.resourceType,
3398
3483
  resourceId: r.resourceId
3399
3484
  } : u?.source.kind === "host-resource" ? {
@@ -3404,7 +3489,7 @@ function J(e, t, n) {
3404
3489
  panel: t,
3405
3490
  surface: n,
3406
3491
  dataValue: o,
3407
- instance: Lr(e.callbacks.getDocument(), o, a),
3492
+ instance: zr(e.callbacks.getDocument(), o, a),
3408
3493
  datasetInstances: e.state.descriptor === void 0 ? [] : Pe(e.callbacks.getDocument(), e.state.descriptor.datasetId),
3409
3494
  selectedDatasetInstanceId: e.state.datasetInstanceId,
3410
3495
  groupOpenOverrides: e.state.groupOpenOverrides,
@@ -3421,8 +3506,8 @@ function J(e, t, n) {
3421
3506
  e.state.descriptor?.datasetId ?? null
3422
3507
  ]),
3423
3508
  mode: e.state.mode,
3424
- availableModes: si(e),
3425
- dataState: Dn(Hr(e)),
3509
+ availableModes: li(e),
3510
+ dataState: En(Wr(e)),
3426
3511
  ...d === void 0 ? {} : { hostResource: d },
3427
3512
  variableSourceId: r?.type === "variable" ? r.variableId : e.state.variableSourceId,
3428
3513
  staticDraft: e.state.staticDraft,
@@ -3437,6 +3522,11 @@ function J(e, t, n) {
3437
3522
  ...e.catalogController.groupId === void 0 ? {} : { groupId: e.catalogController.groupId },
3438
3523
  catalogOpen: e.state.catalogOpen,
3439
3524
  sourcePickerTab: e.state.sourcePickerTab,
3525
+ sourcePickerExpanded: e.state.sourcePickerExpanded,
3526
+ catalogPaged: e.catalogController.paged,
3527
+ catalogPageIndex: e.catalogController.pageIndex,
3528
+ catalogHasPreviousPage: e.catalogController.hasPreviousPage,
3529
+ catalogHasNextPage: e.catalogController.hasNextPage,
3440
3530
  variableQuery: e.state.variableQuery,
3441
3531
  items: e.catalogController.items,
3442
3532
  cursor: e.catalogController.cursor,
@@ -3450,23 +3540,23 @@ function J(e, t, n) {
3450
3540
  catalogAvailable: e.callbacks.getCatalogPort() !== void 0,
3451
3541
  resourceAvailable: e.callbacks.getCatalogPort() !== void 0,
3452
3542
  hostResourceSelectionAvailable: e.callbacks.isHostResourceSelectionButtonVisible?.() === !0 && i !== void 0 && !("dataValue" in i) && O(e.currentEntry()?.manifest),
3453
- link: oi(e),
3543
+ link: ci(e),
3454
3544
  bindingOpenRoleId: e.state.bindingOpenRoleId,
3455
3545
  feedback: e.state.feedbackText,
3456
- dirty: ei(e, r ?? null),
3546
+ dirty: ni(e, r ?? null),
3457
3547
  canUndo: e.callbacks.canUndo?.() ?? !1,
3458
3548
  confirmClose: e.state.confirmClose,
3459
3549
  preview: e.state.preview,
3460
3550
  activeStep: e.state.activeStep,
3461
3551
  authoring: e.state.authoring,
3462
3552
  ...(() => {
3463
- let t = Qr(e, o);
3553
+ let t = ei(e, o);
3464
3554
  return t === void 0 ? {} : { pushDelivery: t };
3465
3555
  })(),
3466
- ...$r(e)
3556
+ ...ti(e)
3467
3557
  };
3468
3558
  }
3469
- function Qr(e, t) {
3559
+ function ei(e, t) {
3470
3560
  if (t?.kind !== "data-source-field") return;
3471
3561
  let n = e.callbacks.getDocument();
3472
3562
  if (n === void 0) return;
@@ -3477,30 +3567,30 @@ function Qr(e, t) {
3477
3567
  }
3478
3568
  if (r?.kind === "host-catalog") return typeof e.callbacks.getHostCatalogPort?.()?.subscribe == "function" ? { append: !1 } : void 0;
3479
3569
  }
3480
- function $r(e) {
3570
+ function ti(e) {
3481
3571
  let t = e.callbacks.getOverlayHost?.();
3482
3572
  return {
3483
3573
  ...t === void 0 ? {} : { overlayHost: t },
3484
3574
  onSelectParameter: (t, n) => e.setParameterValueRef(t, n)
3485
3575
  };
3486
3576
  }
3487
- function ei(e, t) {
3577
+ function ni(e, t) {
3488
3578
  let n = e.state.mode;
3489
3579
  return n === "dataset" ? e.state.draftDirty : n === "static" ? t?.type !== "static" || JSON.stringify(t.value) !== JSON.stringify(e.state.staticValue) || JSON.stringify(t.binding ?? null) !== JSON.stringify(e.state.staticBinding ?? null) || e.state.staticDraft !== JSON.stringify(e.state.staticValue, null, 2) : n === "variable" ? t?.type !== "variable" || t.variableId !== e.state.variableSourceId : !1;
3490
3580
  }
3491
- function ti(e, t) {
3581
+ function ri(e, t) {
3492
3582
  let n = e.callbacks.getWorkbenchHost?.();
3493
3583
  if (n === void 0) return;
3494
3584
  let r = n.closest(".designer");
3495
- Dt(n), n.replaceChildren();
3585
+ Et(n), n.replaceChildren();
3496
3586
  let i = t.mode === "dataset" ? t.descriptor !== void 0 : t.mode === "host-resource";
3497
3587
  if (!e.state.workbenchOpen || !i) {
3498
3588
  n.hidden = !0, n.removeAttribute("role"), n.removeAttribute("aria-modal"), n.removeAttribute("tabindex"), r !== null && delete r.dataset.dataWorkbenchOpen;
3499
3589
  return;
3500
3590
  }
3501
- n.hidden = !1, n.setAttribute("role", "dialog"), n.setAttribute("aria-modal", "true"), n.setAttribute("aria-label", d.dataSource.workbench), n.tabIndex = -1, n.appendChild(Mr(t)), r !== null && (r.dataset.dataWorkbenchOpen = "true");
3591
+ n.hidden = !1, n.setAttribute("role", "dialog"), n.setAttribute("aria-modal", "true"), n.setAttribute("aria-label", w.dataSource.workbench), n.tabIndex = -1, n.appendChild(Pr(t)), r !== null && (r.dataset.dataWorkbenchOpen = "true");
3502
3592
  }
3503
- function ni(e, t) {
3593
+ function ii(e, t) {
3504
3594
  e.state.activeStep = t, t === "preview" && (e.state.preview = {
3505
3595
  ...e.state.preview,
3506
3596
  open: !0
@@ -3511,14 +3601,14 @@ function ni(e, t) {
3511
3601
  block: "start"
3512
3602
  }), n?.focus({ preventScroll: !0 });
3513
3603
  }
3514
- function ri(e) {
3604
+ function ai(e) {
3515
3605
  let t = e.callbacks.getWorkbenchHost?.();
3516
3606
  (t?.querySelector("[data-dataset-action=\"close-workbench\"]") ?? t)?.focus({ preventScroll: !0 });
3517
3607
  }
3518
- function ii(e) {
3608
+ function oi(e) {
3519
3609
  e.state.panel?.querySelector("[data-dataset-authoring-action=\"fullscreen-edit\"]")?.focus({ preventScroll: !0 });
3520
3610
  }
3521
- function ai(e, t, n, r) {
3611
+ function si(e, t, n, r) {
3522
3612
  let i = t === "dataset" ? "[data-dataset-binding-field]" : "[data-static-binding-field]", a = t === "dataset" ? "data-dataset-binding-role-id" : "data-static-binding-role", o = t === "dataset" ? "data-dataset-binding-field" : "data-static-binding-field", s = [e.callbacks.getWorkbenchHost?.(), e.state.panel];
3523
3613
  for (let e of s) {
3524
3614
  let t = [...e?.querySelectorAll(i) ?? []].find((e) => e.getAttribute(a) === n && e.getAttribute(o) === r);
@@ -3528,7 +3618,7 @@ function ai(e, t, n, r) {
3528
3618
  }
3529
3619
  }
3530
3620
  }
3531
- function oi(e) {
3621
+ function ci(e) {
3532
3622
  let t = e.callbacks.getCatalogPort(), n = e.state.preview, r = e.catalogController.error;
3533
3623
  return {
3534
3624
  catalog: t === void 0 ? { status: "unavailable" } : {
@@ -3542,38 +3632,38 @@ function oi(e) {
3542
3632
  variables: e.callbacks.getHostCatalogPort?.() === void 0 ? { status: "unavailable" } : { status: "ready" }
3543
3633
  };
3544
3634
  }
3545
- function si(e) {
3635
+ function li(e) {
3546
3636
  return fe(e.currentEntry());
3547
3637
  }
3548
- function ci(e) {
3638
+ function ui(e) {
3549
3639
  return e.state.descriptor?.fields.map((e) => ({
3550
3640
  id: e.id,
3551
3641
  label: e.label
3552
3642
  })) ?? [];
3553
3643
  }
3554
- function li(e) {
3644
+ function di(e) {
3555
3645
  e.dataFlowScrollSync.clear();
3556
3646
  let t = e.callbacks.getWorkbenchHost?.();
3557
3647
  if (t !== void 0) {
3558
- t.hidden = !0, Dt(t), t.replaceChildren();
3648
+ t.hidden = !0, Et(t), t.replaceChildren();
3559
3649
  let e = t.closest(".designer");
3560
3650
  e !== null && delete e.dataset.dataWorkbenchOpen;
3561
3651
  }
3562
3652
  e.state.panel = void 0, e.state.feedback = void 0;
3563
3653
  }
3564
- function ui(e, t) {
3654
+ function fi(e, t) {
3565
3655
  e.state.feedbackText = t, e.state.feedback !== void 0 && (e.state.feedback.textContent = t);
3566
3656
  }
3567
- function di(e) {
3657
+ function pi(e) {
3568
3658
  return e === "source" || e === "mapping" || e === "transform" || e === "preview" || e === "refresh";
3569
3659
  }
3570
- var fi = /* @__PURE__ */ new Set([
3660
+ var mi = /* @__PURE__ */ new Set([
3571
3661
  "refreshStrategy",
3572
3662
  "refreshInterval",
3573
3663
  "pushFallbackInterval",
3574
3664
  "pushRetainRows"
3575
3665
  ]);
3576
- function pi(e, t, n) {
3666
+ function hi(e, t, n) {
3577
3667
  switch (e.refreshStrategy) {
3578
3668
  case "once": return { mode: "once" };
3579
3669
  case "manual": return { mode: "manual" };
@@ -3582,7 +3672,7 @@ function pi(e, t, n) {
3582
3672
  intervalSeconds: e.refreshInterval
3583
3673
  };
3584
3674
  case "push": {
3585
- let r = mi(e, t, n), i = e.pushFallbackInterval;
3675
+ let r = gi(e, t, n), i = e.pushFallbackInterval;
3586
3676
  return {
3587
3677
  mode: "push",
3588
3678
  ...i === void 0 || i <= 0 ? {} : { fallbackIntervalSeconds: i },
@@ -3591,17 +3681,17 @@ function pi(e, t, n) {
3591
3681
  }
3592
3682
  }
3593
3683
  }
3594
- function mi(e, t, n) {
3684
+ function gi(e, t, n) {
3595
3685
  let r = t?.mode === "push" ? t.retain : void 0;
3596
3686
  return n?.append !== !0 || e.pushRetainRows === void 0 ? r : {
3597
3687
  ...r,
3598
3688
  rows: e.pushRetainRows
3599
3689
  };
3600
3690
  }
3601
- function hi(e, t) {
3602
- return gi(e) === gi(t);
3691
+ function _i(e, t) {
3692
+ return vi(e) === vi(t);
3603
3693
  }
3604
- function gi(e) {
3694
+ function vi(e) {
3605
3695
  if (e === void 0 || e.mode === "manual") return "{\"mode\":\"manual\"}";
3606
3696
  let t = e.retain;
3607
3697
  return JSON.stringify({
@@ -3615,7 +3705,7 @@ function gi(e) {
3615
3705
  }
3616
3706
  });
3617
3707
  }
3618
- function _i(e, t) {
3708
+ function yi(e, t) {
3619
3709
  let n = e?.components.find((e) => e.id === t);
3620
3710
  if (e === void 0 || n === void 0) return { kind: "inline" };
3621
3711
  let r = l(n);
@@ -3629,15 +3719,15 @@ function _i(e, t) {
3629
3719
  instance: i
3630
3720
  };
3631
3721
  }
3632
- function vi(e, t, n, r) {
3633
- if (hi(t.updatePolicy, n)) return {
3722
+ function bi(e, t, n, r) {
3723
+ if (_i(t.updatePolicy, n)) return {
3634
3724
  ok: !0,
3635
3725
  value: null,
3636
3726
  diagnostics: []
3637
3727
  };
3638
3728
  if (n.mode === "push" && r === void 0 && t.updatePolicy?.mode !== "push") return {
3639
3729
  ok: !1,
3640
- diagnostics: [yi(t.id, d.dataSource.refreshPushUnsupported)]
3730
+ diagnostics: [xi(t.id, w.dataSource.refreshPushUnsupported)]
3641
3731
  };
3642
3732
  let { updatePolicy: i, ...a } = t, o = n.mode === "manual" ? a : {
3643
3733
  ...a,
@@ -3652,7 +3742,7 @@ function vi(e, t, n, r) {
3652
3742
  diagnostics: []
3653
3743
  };
3654
3744
  }
3655
- function yi(e, t) {
3745
+ function xi(e, t) {
3656
3746
  return {
3657
3747
  severity: "error",
3658
3748
  code: "DATA_SOURCE_UPDATE_POLICY_INVALID",
@@ -3665,11 +3755,11 @@ function yi(e, t) {
3665
3755
  message: t
3666
3756
  };
3667
3757
  }
3668
- function bi(e) {
3669
- if (e.refreshStrategy !== "manual" && e.refreshStrategy !== "push") return pi(e, void 0, void 0);
3758
+ function Si(e) {
3759
+ if (e.refreshStrategy !== "manual" && e.refreshStrategy !== "push") return hi(e, void 0, void 0);
3670
3760
  }
3671
- function xi(e, t, n) {
3672
- if (hi(pi(e, t, n), t)) return e;
3761
+ function Ci(e, t, n) {
3762
+ if (_i(hi(e, t, n), t)) return e;
3673
3763
  let { pushFallbackInterval: r, pushRetainRows: i, ...a } = e, o = t?.mode ?? "manual";
3674
3764
  return {
3675
3765
  ...a,
@@ -3679,32 +3769,32 @@ function xi(e, t, n) {
3679
3769
  ...t?.mode === "push" && t.retain?.rows !== void 0 ? { pushRetainRows: t.retain.rows } : {}
3680
3770
  };
3681
3771
  }
3682
- var Si = 300;
3683
- function Ci(e) {
3772
+ var wi = 300;
3773
+ function Ti(e) {
3684
3774
  return P(e.state.descriptor, e.state.draft);
3685
3775
  }
3686
- function wi(e) {
3776
+ function Ei(e) {
3687
3777
  e.state.mode === "dataset" && (e.state.clearAutoApply(), e.state.autoApplyTimer = setTimeout(() => {
3688
- e.state.autoApplyTimer = void 0, !(e.state.mode !== "dataset" || !e.state.draftDirty) && (Ci(e) > 0 || Y(e, { auto: !0 }));
3689
- }, Si));
3778
+ e.state.autoApplyTimer = void 0, !(e.state.mode !== "dataset" || !e.state.draftDirty) && (Ti(e) > 0 || Y(e, { auto: !0 }));
3779
+ }, wi));
3690
3780
  }
3691
- function Ti(e, t) {
3692
- if (!Wi(e).includes(t)) return;
3781
+ function Di(e, t) {
3782
+ if (!Ki(e).includes(t)) return;
3693
3783
  if (e.state.clearAutoApply(), e.state.mode = t, e.state.groupOpenOverrides.clear(), e.state.parameterInlineMemory.clear(), e.state.activeStep = "source", e.state.workbenchOpen = !1, e.state.feedbackText = "", e.state.confirmClose = !1, t === "static" && e.currentComponent()?.dataSource?.type !== "static" && e.restoreStaticExample(), t !== "dataset") {
3694
3784
  e.catalogController.clear(), e.renderSurface();
3695
3785
  return;
3696
3786
  }
3697
3787
  let n = e.currentComponent()?.dataSource;
3698
- n?.type === "dataset" && e.state.descriptor?.datasetId !== n.datasetId ? (e.state.catalogOpen = !1, e.renderSurface(), Ei(e, n.datasetId, { autoApply: !0 })) : (e.state.catalogOpen = e.state.descriptor === void 0, e.renderSurface()), e.catalogController.ensureList();
3788
+ n?.type === "dataset" && e.state.descriptor?.datasetId !== n.datasetId ? (e.state.catalogOpen = !1, e.renderSurface(), Oi(e, n.datasetId, { autoApply: !0 })) : (e.state.catalogOpen = e.state.descriptor === void 0, e.renderSurface()), e.catalogController.ensureList();
3699
3789
  }
3700
- async function Ei(e, t, n = {}) {
3701
- if (!Wi(e).includes("dataset")) return;
3790
+ async function Oi(e, t, n = {}) {
3791
+ if (!Ki(e).includes("dataset")) return;
3702
3792
  let r = e.currentComponent()?.id, i = e.currentComponent(), a = ie(e.callbacks.getDocument(), i), o = await e.catalogController.describe(t);
3703
- if (o === void 0 || e.currentComponent()?.id !== r || !Wi(e).includes("dataset")) return;
3793
+ if (o === void 0 || e.currentComponent()?.id !== r || !Ki(e).includes("dataset")) return;
3704
3794
  let s = e.currentEntry()?.manifest.dataBinding?.roles ?? [], c = a?.source.datasetId === t, l = c ? a?.instance : void 0;
3705
- e.state.descriptor = o, e.state.datasetInstanceId = c ? a?.instanceId ?? null : null, e.state.draft = l !== void 0 && l.source.kind === "dataset" ? oe(o, l, i?.dataBinding, s) : le(o, c ? a?.source ?? null : null, s), e.state.parameterInlineMemory.clear(), e.state.mode = "dataset", e.state.catalogOpen = !1, e.state.draftDirty = Ri(e), e.state.preview = N(), e.state.activeStep = "source", e.state.feedbackText = "", e.renderSurface(), n.autoApply === !0 && e.state.draftDirty && wi(e);
3795
+ e.state.descriptor = o, e.state.datasetInstanceId = c ? a?.instanceId ?? null : null, e.state.draft = l !== void 0 && l.source.kind === "dataset" ? oe(o, l, i?.dataBinding, s) : le(o, c ? a?.source ?? null : null, s), e.state.parameterInlineMemory.clear(), e.state.mode = "dataset", e.state.catalogOpen = !1, e.state.sourcePickerExpanded = !1, e.catalogController.resetPaging(), e.state.draftDirty = Bi(e), e.state.preview = N(), e.state.activeStep = "source", e.state.feedbackText = "", e.renderSurface(), n.autoApply === !0 && e.state.draftDirty && Ei(e);
3706
3796
  }
3707
- function Di(e, t) {
3797
+ function ki(e, t) {
3708
3798
  let n = e.callbacks.getDocument(), r = e.state.descriptor, i = e.state.draft;
3709
3799
  if (n !== void 0 && r !== void 0 && i !== void 0) {
3710
3800
  if (t === null) e.state.datasetInstanceId = null;
@@ -3716,7 +3806,7 @@ function Di(e, t) {
3716
3806
  params: { ...a.params }
3717
3807
  };
3718
3808
  }
3719
- e.state.feedbackText = "", e.state.draftDirty = Ri(e), e.renderSurface(), Y(e);
3809
+ e.state.feedbackText = "", e.state.draftDirty = Bi(e), e.renderSurface(), Y(e);
3720
3810
  }
3721
3811
  }
3722
3812
  function Y(e, t = {}) {
@@ -3733,10 +3823,10 @@ function Y(e, t = {}) {
3733
3823
  else {
3734
3824
  let t = e.state.descriptor, a = e.state.draft;
3735
3825
  if (t === void 0 || a === void 0) {
3736
- e.setFeedback(d.dataset.incomplete);
3826
+ e.setFeedback(w.dataset.incomplete);
3737
3827
  return;
3738
3828
  }
3739
- let o = bi(e.state.authoring);
3829
+ let o = Si(e.state.authoring);
3740
3830
  i = ge({
3741
3831
  document: r,
3742
3832
  componentId: n.id,
@@ -3748,7 +3838,7 @@ function Y(e, t = {}) {
3748
3838
  });
3749
3839
  }
3750
3840
  if (!i.ok) {
3751
- e.callbacks.report(i.diagnostics), e.setFeedback(i.diagnostics[0]?.message ?? d.dataset.incomplete);
3841
+ e.callbacks.report(i.diagnostics), e.setFeedback(i.diagnostics[0]?.message ?? w.dataset.incomplete);
3752
3842
  return;
3753
3843
  }
3754
3844
  let a = e.callbacks.executeTransaction(i.value);
@@ -3759,16 +3849,19 @@ function Y(e, t = {}) {
3759
3849
  let o = a.value.components.find((e) => e.id === n.id), s = o === void 0 ? null : l(o);
3760
3850
  e.state.datasetInstanceId = s?.kind === "data-source-field" ? s.dataSourceId : null, t.auto !== !0 && e.setFeedback(""), e.state.draftDirty = !1, e.state.confirmClose = !1, e.state.activeStep = "source", e.renderSurface();
3761
3851
  }
3762
- function Oi(e) {
3852
+ function Ai(e) {
3763
3853
  let t = e.currentComponent(), n = t?.id ?? null, r = e.callbacks.getDocument(), i = ie(r, t), a = ae(r, t), o = i?.source ?? a?.source ?? t?.dataSource, s = i?.instanceId ?? a?.instanceId ?? null;
3764
- if (n === e.state.focusedComponentId && Gi(o, e.state.syncedDataSource) && s === e.state.syncedInstanceId) {
3854
+ if (n === e.state.focusedComponentId && qi(o, e.state.syncedDataSource) && s === e.state.syncedInstanceId) {
3765
3855
  e.state.syncedDataSource = o, e.state.syncedInstanceId = s, e.state.datasetInstanceId = s;
3766
- let i = _i(r, n);
3767
- i.kind !== "inline" && (e.state.authoring = xi(e.state.authoring, i.instance.updatePolicy, Qr(e, t === void 0 ? null : l(t))));
3856
+ let i = yi(r, n);
3857
+ i.kind !== "inline" && (e.state.authoring = Ci(e.state.authoring, i.instance.updatePolicy, ei(e, t === void 0 ? null : l(t))));
3768
3858
  return;
3769
3859
  }
3770
- let c = n === e.state.focusedComponentId, u = c ? e.state.activeStep : "source", d = c ? e.state.authoring : Me(t === void 0 ? void 0 : Ne(r, l(t))?.updatePolicy);
3771
- if (e.state.focusedComponentId = n, e.state.clearAutoApply(), e.state.syncedDataSource = o, e.state.syncedInstanceId = s, e.state.datasetInstanceId = s, e.state.feedbackText = "", e.state.draftDirty = !1, e.state.confirmClose = !1, c || (e.state.workbenchOpen = !1), e.cancelPreview(), e.state.preview = N(), e.state.activeStep = u, e.state.authoring = d, o?.type === "static") {
3860
+ let c = n === e.state.focusedComponentId, u = c ? e.state.activeStep : "source", d = t === void 0 ? void 0 : Ne(r, l(t)), f = c ? {
3861
+ ...e.state.authoring,
3862
+ filterConfigured: d?.processorId !== void 0 && d.processorId !== ""
3863
+ } : Me(d?.updatePolicy, d?.processorId);
3864
+ if (e.state.focusedComponentId = n, e.state.clearAutoApply(), e.state.syncedDataSource = o, e.state.syncedInstanceId = s, e.state.datasetInstanceId = s, e.state.feedbackText = "", e.state.draftDirty = !1, e.state.confirmClose = !1, c || (e.state.workbenchOpen = !1), e.cancelPreview(), e.state.preview = N(), e.state.activeStep = u, e.state.authoring = f, o?.type === "static") {
3772
3865
  e.state.mode = "static", e.state.staticDraft = JSON.stringify(o.value, null, 2), e.state.staticValue = o.value, e.state.staticBinding = o.binding, e.state.staticPage = 0, e.state.descriptor = void 0, e.state.draft = void 0, e.state.catalogOpen = !1;
3773
3866
  return;
3774
3867
  }
@@ -3777,7 +3870,7 @@ function Oi(e) {
3777
3870
  return;
3778
3871
  }
3779
3872
  if (o?.type === "dataset") {
3780
- if (e.state.mode = "dataset", e.state.catalogOpen = !1, !Wi(e).includes("dataset")) {
3873
+ if (e.state.mode = "dataset", e.state.catalogOpen = !1, !Ki(e).includes("dataset")) {
3781
3874
  e.state.descriptor = void 0, e.state.draft = void 0;
3782
3875
  return;
3783
3876
  }
@@ -3794,11 +3887,11 @@ function Oi(e) {
3794
3887
  }
3795
3888
  e.state.mode = "none", e.state.variableSourceId = "", e.state.descriptor = void 0, e.state.draft = void 0, e.state.catalogOpen = !1;
3796
3889
  }
3797
- function ki(e, t) {
3890
+ function ji(e, t) {
3798
3891
  let n = e.currentEntry()?.manifest.dataBinding?.roles.find((e) => e.id === t.dataset.datasetBindingRoleId), r = t.dataset.datasetBindingField;
3799
3892
  e.state.draft !== void 0 && n !== void 0 && r !== void 0 && (e.state.draft = me(e.state.draft, n, r), X(e, ["source", "preview"], () => e.restoreBindingFieldFocus("dataset", n.id, r)));
3800
3893
  }
3801
- function Ai(e, t) {
3894
+ function Mi(e, t) {
3802
3895
  let n = e.currentEntry()?.manifest.dataBinding?.roles.find((e) => e.id === t.dataset.datasetBindingRoleId);
3803
3896
  if (e.state.draft === void 0 || e.state.descriptor === void 0 || n === void 0) return;
3804
3897
  let r = e.state.descriptor.fields.filter((e) => n.valueTypes.includes(e.valueType)).slice(0, n.maxFields).map((e) => e.id);
@@ -3810,7 +3903,7 @@ function Ai(e, t) {
3810
3903
  }
3811
3904
  }, X(e);
3812
3905
  }
3813
- function ji(e) {
3906
+ function Ni(e) {
3814
3907
  let t = e.state.descriptor;
3815
3908
  if (e.state.draft === void 0 || t === void 0) return;
3816
3909
  let n = ue(t, e.currentEntry()?.manifest.dataBinding?.roles ?? []);
@@ -3819,7 +3912,7 @@ function ji(e) {
3819
3912
  fields: n
3820
3913
  }, X(e);
3821
3914
  }
3822
- function Mi(e, t, n) {
3915
+ function Pi(e, t, n) {
3823
3916
  if (t === "" || e.state.draft === void 0) return;
3824
3917
  let r = e.state.draft.params[t];
3825
3918
  r?.kind === "inline" && e.state.parameterInlineMemory.set(t, r.value);
@@ -3827,23 +3920,23 @@ function Mi(e, t, n) {
3827
3920
  kind: "inline",
3828
3921
  value: i === void 0 ? Te(e.state.descriptor, t) : i
3829
3922
  } : n;
3830
- Hi(r, a) || (e.state.draft = pe(e.state.draft, t, a), X(e, ["source", "preview"], () => Li(e, a.kind === "inline" ? `[data-value-ref-inline="parameter:${t}"]` : `[data-value-ref-trigger="parameter:${t}"]`, a.kind === "inline" ? "caret-end" : "keep")));
3923
+ Wi(r, a) || (e.state.draft = pe(e.state.draft, t, a), X(e, ["source", "preview"], () => zi(e, a.kind === "inline" ? `[data-value-ref-inline="parameter:${t}"]` : `[data-value-ref-trigger="parameter:${t}"]`, a.kind === "inline" ? "caret-end" : "keep")));
3831
3924
  }
3832
- function Ni(e, t) {
3925
+ function Fi(e, t) {
3833
3926
  let n = t.dataset.valueRefInline;
3834
3927
  if (n === void 0 || e.state.draft === void 0 || e.state.descriptor === void 0) return;
3835
- let r = Pi(n), i = e.state.descriptor.parameters.find((e) => e.name === r);
3928
+ let r = Ii(n), i = e.state.descriptor.parameters.find((e) => e.name === r);
3836
3929
  if (i === void 0) return;
3837
3930
  let a = de(t, i);
3838
3931
  a !== void 0 && (e.state.draft = pe(e.state.draft, r, {
3839
3932
  kind: "inline",
3840
3933
  value: a
3841
- }), X(e, ["source", "preview"], () => Li(e, `[data-value-ref-inline="${n}"]`, "caret-end"), { deferSurfaceWhilePickerOpen: !0 }));
3934
+ }), X(e, ["source", "preview"], () => zi(e, `[data-value-ref-inline="${n}"]`, "caret-end"), { deferSurfaceWhilePickerOpen: !0 }));
3842
3935
  }
3843
- function Pi(e) {
3936
+ function Ii(e) {
3844
3937
  return e.startsWith("parameter:") ? e.slice(10) : e;
3845
3938
  }
3846
- function Fi(e, t) {
3939
+ function Li(e, t) {
3847
3940
  let n = t.dataset.datasetBindingRole;
3848
3941
  if (n === void 0 || e.state.draft === void 0) return;
3849
3942
  let r = t.value || t.selectedOptions[0]?.value || "";
@@ -3853,76 +3946,76 @@ function Fi(e, t) {
3853
3946
  ...e.state.draft.fields,
3854
3947
  [n]: r === "" ? [] : [r]
3855
3948
  }
3856
- }, X(e, ["source", "preview"], () => Li(e, `[data-dataset-binding-role="${n}"]`));
3949
+ }, X(e, ["source", "preview"], () => zi(e, `[data-dataset-binding-role="${n}"]`));
3857
3950
  }
3858
3951
  function X(e, t = ["source", "preview"], n, r = {}) {
3859
- if (e.state.draftDirty = Ri(e), e.state.confirmClose = !1, e.state.preview = {
3952
+ if (e.state.draftDirty = Bi(e), e.state.confirmClose = !1, e.state.preview = {
3860
3953
  ...N(e.state.preview.open),
3861
3954
  tab: e.state.preview.tab
3862
- }, r.deferSurfaceWhilePickerOpen === !0 && Ii(e)) {
3863
- e.state.clearAutoApply(), Br(e);
3955
+ }, r.deferSurfaceWhilePickerOpen === !0 && Ri(e)) {
3956
+ e.state.clearAutoApply(), Hr(e);
3864
3957
  return;
3865
3958
  }
3866
- q(e, n), e.state.mode === "dataset" && wi(e);
3959
+ q(e, n), e.state.mode === "dataset" && Ei(e);
3867
3960
  }
3868
- function Ii(e) {
3961
+ function Ri(e) {
3869
3962
  let t = e.state.workbenchOpen ? e.callbacks.getWorkbenchHost?.() : e.state.panel;
3870
3963
  if (t == null) return !1;
3871
3964
  let n = t.getRootNode();
3872
3965
  return n.querySelector("[data-value-ref-popover]") !== null || n.activeElement?.closest("[data-dataset-parameter-mode=\"variable\"], [data-dataset-parameter-bind], [data-value-ref-trigger]") !== null;
3873
3966
  }
3874
- function Li(e, t, n = "keep") {
3967
+ function zi(e, t, n = "keep") {
3875
3968
  let r = (e.state.workbenchOpen ? e.callbacks.getWorkbenchHost?.() : e.state.panel)?.querySelector(t);
3876
3969
  if (r == null || ((r.closest(".designer-select-control")?.querySelector(".designer-select-trigger") ?? r).focus({ preventScroll: !0 }), n !== "caret-end" || !(r instanceof HTMLInputElement)) || r.type === "number") return;
3877
3970
  let i = r.value.length;
3878
3971
  r.setSelectionRange(i, i);
3879
3972
  }
3880
- function Ri(e) {
3973
+ function Bi(e) {
3881
3974
  let t = e.currentComponent(), n = ie(e.callbacks.getDocument(), t), r = n?.source ?? t?.dataSource, i = e.state.draft;
3882
3975
  if (r?.type !== "dataset" || i === void 0) return i !== void 0;
3883
3976
  if (r.datasetId !== i.datasetId) return !0;
3884
3977
  let a = (e.currentEntry()?.manifest.dataBinding?.roles ?? []).length === 0 ? null : { fields: i.fields };
3885
- return !(n?.instance === void 0 ? Bi(r.params) === Vi(i.params) : zi(n.instance.params) === zi(i.params)) || JSON.stringify(t?.dataBinding ?? r.binding) !== JSON.stringify(a);
3978
+ return !(n?.instance === void 0 ? Hi(r.params) === Ui(i.params) : Vi(n.instance.params) === Vi(i.params)) || JSON.stringify(t?.dataBinding ?? r.binding) !== JSON.stringify(a);
3886
3979
  }
3887
- function zi(e) {
3980
+ function Vi(e) {
3888
3981
  return JSON.stringify(Object.keys(e).sort().map((t) => [t, e[t]]));
3889
3982
  }
3890
- function Bi(e) {
3983
+ function Hi(e) {
3891
3984
  let t = Object.keys(e).sort().map((t) => [t, ce(se(e[t])) ?? null]);
3892
3985
  return JSON.stringify(t);
3893
3986
  }
3894
- function Vi(e) {
3987
+ function Ui(e) {
3895
3988
  let t = Object.keys(e).sort().map((t) => [t, ce(e[t]) ?? null]);
3896
3989
  return JSON.stringify(t);
3897
3990
  }
3898
- function Hi(e, t) {
3991
+ function Wi(e, t) {
3899
3992
  return e === void 0 || e.kind !== t.kind ? !1 : e.kind === "variable" && t.kind === "variable" ? e.variableId === t.variableId : e.kind === "inline" && t.kind === "inline" && JSON.stringify(e.value) === JSON.stringify(t.value);
3900
3993
  }
3901
- function Ui(e) {
3994
+ function Gi(e) {
3902
3995
  e.state.clearAutoApply();
3903
3996
  let t = e.currentComponent()?.dataSource, n = e.state.descriptor;
3904
3997
  t?.type === "dataset" && n !== void 0 && (e.state.draft = le(n, t, e.currentEntry()?.manifest.dataBinding?.roles ?? [])), e.state.draftDirty = !1, e.state.parameterInlineMemory.clear(), e.cancelPreview(), e.state.preview = N();
3905
3998
  }
3906
- function Wi(e) {
3999
+ function Ki(e) {
3907
4000
  return fe(e.currentEntry()).filter((t) => t !== "dataset" || e.callbacks.getCatalogPort() !== void 0);
3908
4001
  }
3909
- function Gi(e, t) {
4002
+ function qi(e, t) {
3910
4003
  return JSON.stringify(e) === JSON.stringify(t);
3911
4004
  }
3912
- function Ki(e) {
4005
+ function Ji(e) {
3913
4006
  let t = e.callbacks.getDocument(), n = e.currentComponent();
3914
4007
  if (t === void 0 || n === void 0) return;
3915
- let r = _i(t, n.id);
4008
+ let r = yi(t, n.id);
3916
4009
  if (r.kind === "inline") {
3917
- e.setFeedback(d.dataSource.refreshPolicyPendingApply);
4010
+ e.setFeedback(w.dataSource.refreshPolicyPendingApply);
3918
4011
  return;
3919
4012
  }
3920
4013
  if (r.kind === "read-only") {
3921
- e.setFeedback(d.dataSource.refreshPolicyReadOnly), e.state.authoring = xi(e.state.authoring, r.instance.updatePolicy, void 0);
4014
+ e.setFeedback(w.dataSource.refreshPolicyReadOnly), e.state.authoring = Ci(e.state.authoring, r.instance.updatePolicy, void 0);
3922
4015
  return;
3923
4016
  }
3924
- let i = Qr(e, l(n)), a = pi(e.state.authoring, r.instance.updatePolicy, i), o = vi(t, r.instance, a, i), s = () => {
3925
- e.state.authoring = xi(e.state.authoring, r.instance.updatePolicy, i);
4017
+ let i = ei(e, l(n)), a = hi(e.state.authoring, r.instance.updatePolicy, i), o = bi(t, r.instance, a, i), s = () => {
4018
+ e.state.authoring = Ci(e.state.authoring, r.instance.updatePolicy, i);
3926
4019
  };
3927
4020
  if (!o.ok) {
3928
4021
  e.callbacks.report(o.diagnostics), e.setFeedback(o.diagnostics[0]?.message ?? ""), s();
@@ -3932,13 +4025,13 @@ function Ki(e) {
3932
4025
  let c = e.callbacks.executeTransaction(o.value);
3933
4026
  c.ok || (e.callbacks.report(c.diagnostics), e.setFeedback(c.diagnostics[0]?.message ?? ""), s());
3934
4027
  }
3935
- function qi(e, t) {
4028
+ function Yi(e, t) {
3936
4029
  e.state.preview = {
3937
4030
  ...e.state.preview,
3938
4031
  tab: t
3939
4032
  }, q(e);
3940
4033
  }
3941
- async function Ji(t) {
4034
+ async function Xi(t) {
3942
4035
  let n = t.state.descriptor, i = t.state.draft, o = t.currentComponent(), s = t.callbacks.getCatalogPort();
3943
4036
  if (n === void 0 || i === void 0 || o === void 0 || s === void 0) return;
3944
4037
  t.cancelPreview();
@@ -3947,9 +4040,9 @@ async function Ji(t) {
3947
4040
  ...N(!0),
3948
4041
  status: "loading",
3949
4042
  tab: t.state.preview.tab === "request" ? "response" : t.state.preview.tab,
3950
- message: d.dataSource.previewLoading
4043
+ message: w.dataSource.previewLoading
3951
4044
  }, t.renderSurface();
3952
- let u, f = new Promise((e) => {
4045
+ let u, d = new Promise((e) => {
3953
4046
  u = setTimeout(() => {
3954
4047
  l === t.state.previewGeneration && !c.signal.aborted && (c.abort(), Z(t)), e(void 0);
3955
4048
  }, 15e3);
@@ -3958,7 +4051,7 @@ async function Ji(t) {
3958
4051
  let n = await Promise.race([s.describe({
3959
4052
  datasetId: i.datasetId,
3960
4053
  signal: c.signal
3961
- }), f]);
4054
+ }), d]);
3962
4055
  if (n === void 0 || c.signal.aborted || l !== t.state.previewGeneration) return;
3963
4056
  if (!n.ok) {
3964
4057
  t.callbacks.report(n.diagnostics), Z(t);
@@ -3969,47 +4062,47 @@ async function Ji(t) {
3969
4062
  Z(t);
3970
4063
  return;
3971
4064
  }
3972
- let p = await Promise.race([Yi(t, i, c), f]);
4065
+ let f = await Promise.race([Zi(t, i, c), d]);
3973
4066
  if (c.signal.aborted || l !== t.state.previewGeneration) return;
3974
- if (p === void 0) {
4067
+ if (f === void 0) {
3975
4068
  t.state.previewController = void 0, t.state.preview = {
3976
4069
  ...N(!0),
3977
4070
  status: "error",
3978
- message: d.dataSource.testVariableUnavailable
4071
+ message: w.dataSource.testVariableUnavailable
3979
4072
  }, t.state.feedbackText = t.state.preview.message, t.renderSurface();
3980
4073
  return;
3981
4074
  }
3982
- let m = a(u.value.parameters, p);
3983
- if (!m.ok) {
4075
+ let p = a(u.value.parameters, f);
4076
+ if (!p.ok) {
3984
4077
  Z(t);
3985
4078
  return;
3986
4079
  }
3987
- let h = Date.now(), g = await Promise.race([s.query({
3988
- dataSourceId: $i(o),
4080
+ let m = Date.now(), h = await Promise.race([s.query({
4081
+ dataSourceId: ta(o),
3989
4082
  datasetId: i.datasetId,
3990
- params: m.value
3991
- }, { signal: c.signal }), f]);
3992
- if (c.signal.aborted || l !== t.state.previewGeneration || (t.state.previewController = void 0, g === void 0)) return;
4083
+ params: p.value
4084
+ }, { signal: c.signal }), d]);
4085
+ if (c.signal.aborted || l !== t.state.previewGeneration || (t.state.previewController = void 0, h === void 0)) return;
4086
+ if (!h.ok) {
4087
+ t.callbacks.report(h.diagnostics), Z(t);
4088
+ return;
4089
+ }
4090
+ let g = e(h.value, { maxBytes: 1048576 });
3993
4091
  if (!g.ok) {
3994
4092
  t.callbacks.report(g.diagnostics), Z(t);
3995
4093
  return;
3996
4094
  }
3997
- let _ = e(g.value, { maxBytes: 1048576 });
4095
+ let _ = Qi(t, g.value);
3998
4096
  if (!_.ok) {
3999
4097
  t.callbacks.report(_.diagnostics), Z(t);
4000
4098
  return;
4001
4099
  }
4002
- let v = Xi(t, _.value);
4003
- if (!v.ok) {
4004
- t.callbacks.report(v.diagnostics), Z(t);
4005
- return;
4006
- }
4007
4100
  t.state.preview = {
4008
4101
  status: "ready",
4009
4102
  tab: t.state.preview.tab,
4010
- rawValue: _.value,
4011
- consumerValue: v.value,
4012
- message: d.dataSource.testReadyWithDuration(ea(_.value), Math.max(0, Date.now() - h)),
4103
+ rawValue: g.value,
4104
+ consumerValue: _.value,
4105
+ message: w.dataSource.testReadyWithDuration(na(g.value), Math.max(0, Date.now() - m)),
4013
4106
  testedAt: (/* @__PURE__ */ new Date()).toLocaleTimeString(),
4014
4107
  open: !0
4015
4108
  }, t.state.feedbackText = "", t.renderSurface();
@@ -4019,7 +4112,7 @@ async function Ji(t) {
4019
4112
  u !== void 0 && clearTimeout(u);
4020
4113
  }
4021
4114
  }
4022
- async function Yi(t, n, r) {
4115
+ async function Zi(t, n, r) {
4023
4116
  let i = {}, a = t.callbacks.getDocument(), o = /* @__PURE__ */ new Map();
4024
4117
  for (let [e, t] of Object.entries(n.params)) {
4025
4118
  if (t.kind === "inline") {
@@ -4027,7 +4120,7 @@ async function Yi(t, n, r) {
4027
4120
  continue;
4028
4121
  }
4029
4122
  if (t.kind !== "variable") return;
4030
- let n = a?.variables.find((e) => e.id === t.variableId), r = a === void 0 || n === void 0 ? void 0 : h(a, n);
4123
+ let n = a?.variables.find((e) => e.id === t.variableId), r = a === void 0 || n === void 0 ? void 0 : y(a, n);
4031
4124
  if (r?.type === "static") {
4032
4125
  i[e] = r.initialValue;
4033
4126
  continue;
@@ -4073,7 +4166,7 @@ async function Yi(t, n, r) {
4073
4166
  }
4074
4167
  return i;
4075
4168
  }
4076
- function Xi(n, r) {
4169
+ function Qi(n, r) {
4077
4170
  let i = n.currentEntry(), a = i?.manifest.dataBinding?.roles ?? [];
4078
4171
  if (a.length === 0 || i?.tabularDataAdapter === void 0) return {
4079
4172
  ok: !0,
@@ -4097,7 +4190,7 @@ function Xi(n, r) {
4097
4190
  severity: "error",
4098
4191
  code: "HOST_DATASET_ADAPTER_FAILED",
4099
4192
  path: [],
4100
- message: d.dataSource.testFailed
4193
+ message: w.dataSource.testFailed
4101
4194
  }]
4102
4195
  };
4103
4196
  }
@@ -4106,16 +4199,16 @@ function Z(e) {
4106
4199
  e.state.preview = {
4107
4200
  ...N(!0),
4108
4201
  status: "error",
4109
- message: d.dataSource.testFailed
4202
+ message: w.dataSource.testFailed
4110
4203
  }, e.state.feedbackText = e.state.preview.message, e.renderSurface();
4111
4204
  }
4112
- function Zi(e) {
4205
+ function $i(e) {
4113
4206
  e.state.previewGeneration++, e.state.previewController?.abort(), e.state.previewController = void 0;
4114
4207
  }
4115
- async function Qi(e) {
4208
+ async function ea(e) {
4116
4209
  let t = e.state.preview.rawValue;
4117
4210
  if (e.callbacks.requestAuthoringAction?.("copy-data", { value: JSON.stringify(t ?? null) }), t === void 0) {
4118
- e.setFeedback(d.dataSource.copyDataUnavailable);
4211
+ e.setFeedback(w.dataSource.copyDataUnavailable);
4119
4212
  return;
4120
4213
  }
4121
4214
  let n = !1;
@@ -4124,13 +4217,13 @@ async function Qi(e) {
4124
4217
  } catch {
4125
4218
  n = !1;
4126
4219
  }
4127
- e.setFeedback(n ? d.dataSource.copyDataSuccess : d.dataSource.copyDataFailed);
4220
+ e.setFeedback(n ? w.dataSource.copyDataSuccess : w.dataSource.copyDataFailed);
4128
4221
  }
4129
- function $i(e) {
4222
+ function ta(e) {
4130
4223
  let t = l(e);
4131
4224
  return t?.kind === "data-source-field" ? t.dataSourceId : e.id;
4132
4225
  }
4133
- function ea(e) {
4226
+ function na(e) {
4134
4227
  if (Array.isArray(e)) return e.length;
4135
4228
  if (typeof e == "object" && e && !Array.isArray(e)) {
4136
4229
  let t = e.rows;
@@ -4138,10 +4231,10 @@ function ea(e) {
4138
4231
  }
4139
4232
  return e === null ? 0 : 1;
4140
4233
  }
4141
- function ta(e, t, n) {
4234
+ function ra(e, t, n) {
4142
4235
  let r = e.trim();
4143
4236
  if (r === "") return n ? null : void 0;
4144
- if (t === "string" || t === "date") return t === "date" && !na(r) ? void 0 : e;
4237
+ if (t === "string" || t === "date") return t === "date" && !ia(r) ? void 0 : e;
4145
4238
  if (t === "number") {
4146
4239
  let e = Number(r);
4147
4240
  return Number.isFinite(e) ? e : void 0;
@@ -4149,33 +4242,33 @@ function ta(e, t, n) {
4149
4242
  if (/^true$/i.test(r)) return !0;
4150
4243
  if (/^false$/i.test(r)) return !1;
4151
4244
  }
4152
- function na(e) {
4245
+ function ia(e) {
4153
4246
  return /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{1,3})?)?(?:Z|[+-]\d{2}:\d{2})?)?$/.test(e) && Number.isFinite(Date.parse(e));
4154
4247
  }
4155
- function ra(e, t) {
4248
+ function aa(e, t) {
4156
4249
  e.state.staticValue = t, e.state.staticDraft = JSON.stringify(t, null, 2), e.setFeedback("");
4157
4250
  }
4158
4251
  function Q(e) {
4159
4252
  let n = t(e.state.staticValue);
4160
4253
  return n.ok ? n.value : void 0;
4161
4254
  }
4162
- function ia(e, n, r = !0) {
4255
+ function oa(e, n, r = !0) {
4163
4256
  let i = t(n);
4164
4257
  if (!i.ok) {
4165
- e.callbacks.report(i.diagnostics), e.setFeedback(da(e, i.diagnostics[0]));
4258
+ e.callbacks.report(i.diagnostics), e.setFeedback(pa(e, i.diagnostics[0]));
4166
4259
  return;
4167
4260
  }
4168
- e.state.staticValue = i.value, e.state.staticDraft = JSON.stringify(i.value, null, 2), e.state.staticPage = Ae(i.value.rows.length, e.state.staticPage, e.state.staticPageSize).page, e.setFeedback(""), r ? e.renderSurface() : oa(e, i.value);
4261
+ e.state.staticValue = i.value, e.state.staticDraft = JSON.stringify(i.value, null, 2), e.state.staticPage = Ae(i.value.rows.length, e.state.staticPage, e.state.staticPageSize).page, e.setFeedback(""), r ? e.renderSurface() : ca(e, i.value);
4169
4262
  }
4170
- function aa(e, t, n, r, i = !0) {
4263
+ function sa(e, t, n, r, i = !0) {
4171
4264
  let a = Q(e), o = a?.fields.find((e) => e.id === n), s = a?.rows[t];
4172
4265
  if (a === void 0 || o === void 0 || s === void 0) return;
4173
- let c = ta(r, o.valueType, o.nullable === !0);
4266
+ let c = ra(r, o.valueType, o.nullable === !0);
4174
4267
  if (c === void 0) {
4175
- e.setFeedback(`rows.${t}.${n}:${d.panel.enterValidValue}`);
4268
+ e.setFeedback(`rows.${t}.${n}:${w.panel.enterValidValue}`);
4176
4269
  return;
4177
4270
  }
4178
- ia(e, {
4271
+ oa(e, {
4179
4272
  fields: a.fields,
4180
4273
  rows: a.rows.map((e, r) => r === t ? {
4181
4274
  ...e,
@@ -4183,51 +4276,51 @@ function aa(e, t, n, r, i = !0) {
4183
4276
  } : e)
4184
4277
  }, i);
4185
4278
  }
4186
- function oa(e, t) {
4279
+ function ca(e, t) {
4187
4280
  let n = JSON.stringify(t.rows.slice(0, 8), null, 2), r = [e.state.panel, e.callbacks.getWorkbenchHost?.()];
4188
4281
  for (let e of r) for (let t of e?.querySelectorAll("[data-static-preview-value]") ?? []) t.textContent = n;
4189
4282
  }
4190
- function sa(e) {
4283
+ function la(e) {
4191
4284
  let t = Q(e);
4192
4285
  if (t === void 0 || t.rows.length >= 1e4) return;
4193
- let n = Object.fromEntries(t.fields.map((t) => [t.id, t.nullable === !0 ? null : ua(e, t.valueType)]));
4194
- e.state.staticPage = Math.floor(t.rows.length / e.state.staticPageSize), ia(e, {
4286
+ let n = Object.fromEntries(t.fields.map((t) => [t.id, t.nullable === !0 ? null : fa(e, t.valueType)]));
4287
+ e.state.staticPage = Math.floor(t.rows.length / e.state.staticPageSize), oa(e, {
4195
4288
  fields: t.fields,
4196
4289
  rows: [...t.rows, n]
4197
4290
  });
4198
4291
  }
4199
- function ca(e, t) {
4292
+ function ua(e, t) {
4200
4293
  let n = Q(e);
4201
- n !== void 0 && n.rows[t] !== void 0 && ia(e, {
4294
+ n !== void 0 && n.rows[t] !== void 0 && oa(e, {
4202
4295
  fields: n.fields,
4203
4296
  rows: n.rows.filter((e, n) => n !== t)
4204
4297
  });
4205
4298
  }
4206
- function la(e, t = !0) {
4299
+ function da(e, t = !0) {
4207
4300
  let n = e.currentEntry()?.manifest, r = n?.defaultData ?? null;
4208
4301
  e.state.staticValue = r, e.state.staticDraft = JSON.stringify(r, null, 2), e.state.staticBinding = n?.staticData?.kind === "tabular" ? n.staticData.defaultBinding : void 0, e.state.staticPage = 0, e.state.feedbackText = "", t && e.renderSurface();
4209
4302
  }
4210
- function ua(e, t) {
4303
+ function fa(e, t) {
4211
4304
  return t === "number" ? 0 : t === "boolean" ? !1 : t === "date" ? "1970-01-01" : "";
4212
4305
  }
4213
- function da(e, t) {
4214
- if (t === void 0) return d.dataSource.staticInvalid;
4306
+ function pa(e, t) {
4307
+ if (t === void 0) return w.dataSource.staticInvalid;
4215
4308
  let n = t.path.join(".");
4216
4309
  return n === "" ? t.message : `${n}:${t.message}`;
4217
4310
  }
4218
- function fa(e, t) {
4219
- if (t.dataset.dataSourceStatic !== void 0) return e.state.staticDraft = t.value, ga(e), !0;
4311
+ function ma(e, t) {
4312
+ if (t.dataset.dataSourceStatic !== void 0) return e.state.staticDraft = t.value, va(e), !0;
4220
4313
  if (t.dataset.staticScalar !== void 0) {
4221
4314
  if (t.dataset.staticScalar === "number") {
4222
4315
  let n = Number(t.value);
4223
4316
  if (!Number.isFinite(n)) return !0;
4224
- ra(e, n);
4225
- } else t.dataset.staticScalar === "string" && ra(e, t.value);
4317
+ aa(e, n);
4318
+ } else t.dataset.staticScalar === "string" && aa(e, t.value);
4226
4319
  return !0;
4227
4320
  }
4228
- return t.dataset.staticCellRow !== void 0 && (aa(e, Number(t.dataset.staticCellRow), t.dataset.staticCellField ?? "", t.value, !1), !0);
4321
+ return t.dataset.staticCellRow !== void 0 && (sa(e, Number(t.dataset.staticCellRow), t.dataset.staticCellField ?? "", t.value, !1), !0);
4229
4322
  }
4230
- function pa(e, t) {
4323
+ function ha(e, t) {
4231
4324
  let n = t.closest("[data-static-binding-field]");
4232
4325
  if (n !== null) {
4233
4326
  let t = e.currentEntry()?.manifest.dataBinding?.roles.find((e) => e.id === n.dataset.staticBindingRole), r = n.dataset.staticBindingField;
@@ -4241,12 +4334,12 @@ function pa(e, t) {
4241
4334
  return !0;
4242
4335
  }
4243
4336
  let r = t.closest("[data-static-action]");
4244
- return r !== null && (ha(e, r), !0);
4337
+ return r !== null && (_a(e, r), !0);
4245
4338
  }
4246
- function ma(e, t) {
4247
- if (t.dataset.staticScalar === "boolean" && t instanceof HTMLInputElement) return ra(e, t.checked), !0;
4339
+ function ga(e, t) {
4340
+ if (t.dataset.staticScalar === "boolean" && t instanceof HTMLInputElement) return aa(e, t.checked), !0;
4248
4341
  if (t.dataset.staticPageSize !== void 0 && t instanceof HTMLSelectElement) return e.state.staticPageSize = ke(Number(t.value)), e.state.staticPage = 0, e.renderSurface(), !0;
4249
- if (t.dataset.staticCellRow !== void 0 && t instanceof HTMLInputElement) return aa(e, Number(t.dataset.staticCellRow), t.dataset.staticCellField ?? "", t.value, !1), !0;
4342
+ if (t.dataset.staticCellRow !== void 0 && t instanceof HTMLInputElement) return sa(e, Number(t.dataset.staticCellRow), t.dataset.staticCellField ?? "", t.value, !1), !0;
4250
4343
  if (t.dataset.staticBindingRole !== void 0 && t instanceof HTMLSelectElement) {
4251
4344
  let n = t.dataset.staticBindingRole, r = t.multiple ? [...t.selectedOptions].map((e) => e.value) : t.value === "" ? [] : [t.value];
4252
4345
  return e.state.staticBinding = { fields: {
@@ -4256,7 +4349,7 @@ function ma(e, t) {
4256
4349
  }
4257
4350
  return !1;
4258
4351
  }
4259
- function ha(e, t) {
4352
+ function _a(e, t) {
4260
4353
  let n = t.dataset.staticAction;
4261
4354
  if (n === "apply") {
4262
4355
  e.apply();
@@ -4267,7 +4360,7 @@ function ha(e, t) {
4267
4360
  return;
4268
4361
  }
4269
4362
  if (n === "row-add") {
4270
- sa(e);
4363
+ la(e);
4271
4364
  return;
4272
4365
  }
4273
4366
  if (n === "page-previous" || n === "page-next") {
@@ -4287,125 +4380,138 @@ function ha(e, t) {
4287
4380
  return;
4288
4381
  }
4289
4382
  let r = Number(t.dataset.staticIndex);
4290
- Number.isInteger(r) && n === "row-remove" && ca(e, r);
4383
+ Number.isInteger(r) && n === "row-remove" && ua(e, r);
4291
4384
  }
4292
- function ga(n) {
4385
+ function va(n) {
4293
4386
  let r;
4294
4387
  try {
4295
4388
  r = JSON.parse(n.state.staticDraft);
4296
4389
  } catch {
4297
- n.setFeedback(d.dataSource.staticInvalid);
4390
+ n.setFeedback(w.dataSource.staticInvalid);
4298
4391
  return;
4299
4392
  }
4300
4393
  let i = e(r);
4301
4394
  if (!i.ok) {
4302
- n.setFeedback(da(n, i.diagnostics[0]));
4395
+ n.setFeedback(pa(n, i.diagnostics[0]));
4303
4396
  return;
4304
4397
  }
4305
4398
  let a = n.currentEntry()?.manifest.staticData;
4306
4399
  if (a?.kind === "scalar" && typeof i.value !== a.valueType) {
4307
- n.setFeedback(d.dataSource.staticInvalid);
4400
+ n.setFeedback(w.dataSource.staticInvalid);
4308
4401
  return;
4309
4402
  }
4310
4403
  if (a?.kind === "tabular") {
4311
4404
  let e = t(i.value);
4312
4405
  if (!e.ok) {
4313
- n.setFeedback(da(n, e.diagnostics[0]));
4406
+ n.setFeedback(pa(n, e.diagnostics[0]));
4314
4407
  return;
4315
4408
  }
4316
4409
  n.state.staticValue = e.value;
4317
4410
  } else n.state.staticValue = i.value;
4318
4411
  n.setFeedback("");
4319
4412
  }
4320
- function _a(e, t) {
4321
- return !(t instanceof HTMLInputElement) && !(t instanceof HTMLTextAreaElement) ? !1 : fa(e, t) ? (Br(e), !0) : t.dataset.datasetVariableQuery === void 0 ? t.dataset.sourceSheetFixed === void 0 ? t.dataset.datasetQuery !== void 0 && (e.catalogController.updateQuery(t.value), !0) : (e.state.staticDraft = t.value, ja(e, t.value), !0) : (e.state.variableQuery = t.value, Pa(e), !0);
4413
+ function ya(e, t) {
4414
+ return !(t instanceof HTMLInputElement) && !(t instanceof HTMLTextAreaElement) ? !1 : ma(e, t) ? (Hr(e), !0) : t.dataset.datasetVariableQuery === void 0 ? t.dataset.sourceSheetFixed === void 0 ? t.dataset.datasetQuery !== void 0 && (e.catalogController.updateQuery(t.value), !0) : (e.state.staticDraft = t.value, Na(e, t.value), !0) : (e.state.variableQuery = t.value, Ia(e), !0);
4322
4415
  }
4323
- function va(e, t) {
4324
- if (pa(e, t)) return !0;
4416
+ function ba(e, t) {
4417
+ if (ha(e, t)) return !0;
4325
4418
  (t.closest("[data-value-ref-trigger]") !== null || t.closest("[data-dataset-binding-trigger]") !== null) && e.state.clearAutoApply();
4326
4419
  let n = t.closest("[data-data-entry]");
4327
- if (n !== null) return ya(e, n), !0;
4420
+ if (n !== null) return xa(e, n), !0;
4328
4421
  let r = t.closest("[data-data-source-mode]")?.dataset.dataSourceMode;
4329
- if (r !== void 0) return Ti(e, r), !0;
4330
- if (t.closest("[data-dataset-auto-match]") !== null) return ji(e), !0;
4422
+ if (r !== void 0) return Di(e, r), !0;
4423
+ if (t.closest("[data-dataset-auto-match]") !== null) return Ni(e), !0;
4331
4424
  let i = t.closest("[data-source-sheet-tab]");
4332
4425
  if (i !== null) {
4333
4426
  let t = i.dataset.sourceSheetTab;
4334
- return t !== void 0 && t !== e.state.sourcePickerTab && (e.state.sourcePickerTab = t, e.state.catalogOpen = !0, e.renderSurface(), wa(e, t)), !0;
4335
- }
4336
- if (t.closest("[data-source-sheet-close]") !== null || t.classList?.contains("designer-source-sheet-layer") === !0) return Da(e), !0;
4337
- let a = t.closest("[data-source-sheet-variable]");
4338
- if (a?.dataset.sourceSheetVariable !== void 0) return ka(e, a.dataset.sourceSheetVariable), !0;
4339
- if (t.closest("[data-source-sheet-apply-fixed]") !== null) return Ma(e), !0;
4340
- if (t.closest("[data-source-sheet-format]") !== null) return Na(e), !0;
4341
- if (t.closest("[data-dataset-change]") !== null || t.closest("[data-source-kind-change]") !== null) return Oa(e), !0;
4342
- if (t.closest("[data-dataset-load-more]") !== null) return e.catalogController.loadMore(), !0;
4343
- let o = t.closest("[data-dataset-binding-chip-field]");
4427
+ return t !== void 0 && t !== e.state.sourcePickerTab && (e.state.sourcePickerTab = t, e.state.catalogOpen = !0, e.renderSurface(), Ea(e, t)), !0;
4428
+ }
4429
+ if (t.closest("[data-source-sheet-expand]") !== null) {
4430
+ e.state.sourcePickerExpanded = !e.state.sourcePickerExpanded, e.renderSurface();
4431
+ let t = $(e);
4432
+ return (e.state.sourcePickerExpanded ? t?.querySelector("[data-dataset-query]") : t?.querySelector("[data-source-sheet-expand]"))?.focus({ preventScroll: !0 }), !0;
4433
+ }
4434
+ let a = t.closest("[data-source-sheet-page]")?.dataset.sourceSheetPage;
4435
+ if (a === "previous" || a === "next") return a === "previous" ? e.catalogController.previousPage() : e.catalogController.nextPage(), !0;
4436
+ let o = t.closest("[data-source-sheet-group-option]");
4344
4437
  if (o !== null) {
4345
- let t = o.dataset.datasetBindingChipField, n = o.closest(".designer-bind-field")?.querySelector(`[data-dataset-binding-field="${t}"]`);
4346
- return n != null && ki(e, n), !0;
4347
- }
4348
- let s = t.closest("[data-dataset-binding-trigger]");
4349
- if (s !== null) {
4350
- let t = s.dataset.datasetBindingTrigger ?? null;
4351
- return e.state.bindingOpenRoleId = e.state.bindingOpenRoleId === t ? null : t, q(e, () => Li(e, t === null ? "[data-dataset-binding-trigger]" : `[data-dataset-binding-trigger="${t}"]`)), !0;
4352
- }
4353
- let c = t.closest("[data-dataset-binding-field]");
4354
- if (c !== null) return ki(e, c), !0;
4355
- e.state.bindingOpenRoleId !== null && t.closest("[data-dataset-binding-role]")?.dataset.datasetBindingRole !== e.state.bindingOpenRoleId && Kr(e);
4356
- let l = t.closest("[data-dataset-binding-role-action]");
4357
- if (l !== null) return Ai(e, l), !0;
4358
- let u = t.closest("[data-dataset-preview-tab]")?.dataset.datasetPreviewTab;
4359
- if (u === "response" || u === "consumer" || u === "request") return qi(e, u), !0;
4360
- let d = t.closest("[data-workbench-step]")?.dataset.workbenchStep;
4361
- if (di(d)) return e.focusWorkbenchSection(d), !0;
4362
- let f = t.closest("[data-dataset-editor-mode]")?.dataset.datasetEditorMode;
4363
- if (f === "visual" || f === "code") return e.state.authoring = {
4438
+ let t = o.dataset.sourceSheetGroupOption ?? "";
4439
+ for (let t of $(e)?.querySelectorAll("[data-source-sheet-group-option]") ?? []) t.setAttribute("aria-pressed", String(t === o));
4440
+ return e.catalogController.updateGroup(t === "" ? void 0 : t), !0;
4441
+ }
4442
+ if (t.closest("[data-source-sheet-close]") !== null || t.classList?.contains("designer-source-sheet-layer") === !0) return ka(e), !0;
4443
+ let s = t.closest("[data-source-sheet-variable]");
4444
+ if (s?.dataset.sourceSheetVariable !== void 0) return ja(e, s.dataset.sourceSheetVariable), !0;
4445
+ if (t.closest("[data-source-sheet-apply-fixed]") !== null) return Pa(e), !0;
4446
+ if (t.closest("[data-source-sheet-format]") !== null) return Fa(e), !0;
4447
+ if (t.closest("[data-dataset-change]") !== null || t.closest("[data-source-kind-change]") !== null) return Aa(e), !0;
4448
+ if (t.closest("[data-dataset-load-more]") !== null) return e.catalogController.loadMore(), !0;
4449
+ let c = t.closest("[data-dataset-binding-chip-field]");
4450
+ if (c !== null) {
4451
+ let t = c.dataset.datasetBindingChipField, n = c.closest(".designer-bind-field")?.querySelector(`[data-dataset-binding-field="${t}"]`);
4452
+ return n != null && ji(e, n), !0;
4453
+ }
4454
+ let l = t.closest("[data-dataset-binding-trigger]");
4455
+ if (l !== null) {
4456
+ let t = l.dataset.datasetBindingTrigger ?? null;
4457
+ return e.state.bindingOpenRoleId = e.state.bindingOpenRoleId === t ? null : t, q(e, () => zi(e, t === null ? "[data-dataset-binding-trigger]" : `[data-dataset-binding-trigger="${t}"]`)), !0;
4458
+ }
4459
+ let u = t.closest("[data-dataset-binding-field]");
4460
+ if (u !== null) return ji(e, u), !0;
4461
+ e.state.bindingOpenRoleId !== null && t.closest("[data-dataset-binding-role]")?.dataset.datasetBindingRole !== e.state.bindingOpenRoleId && Jr(e);
4462
+ let d = t.closest("[data-dataset-binding-role-action]");
4463
+ if (d !== null) return Mi(e, d), !0;
4464
+ let f = t.closest("[data-dataset-preview-tab]")?.dataset.datasetPreviewTab;
4465
+ if (f === "response" || f === "consumer" || f === "request") return Yi(e, f), !0;
4466
+ let p = t.closest("[data-workbench-step]")?.dataset.workbenchStep;
4467
+ if (pi(p)) return e.focusWorkbenchSection(p), !0;
4468
+ let m = t.closest("[data-dataset-editor-mode]")?.dataset.datasetEditorMode;
4469
+ if (m === "visual" || m === "code") return e.state.authoring = {
4364
4470
  ...e.state.authoring,
4365
- editorMode: f
4366
- }, f === "code" && e.callbacks.requestAuthoringAction?.("open-code-editor"), q(e), !0;
4367
- let p = t.closest("[data-dataset-authoring-action]")?.dataset.datasetAuthoringAction;
4368
- return p === void 0 ? Ca(e, t) : (p === "copy-data" ? e.copyPreviewData() : p === "fullscreen-edit" ? (e.state.workbenchOpen = !0, e.state.confirmClose = !1, e.callbacks.requestAuthoringAction?.(p), e.renderSurface(), e.focusDataWorkbench()) : e.callbacks.requestAuthoringAction?.(p), !0);
4471
+ editorMode: m
4472
+ }, m === "code" && e.callbacks.requestAuthoringAction?.("open-code-editor"), q(e), !0;
4473
+ let h = t.closest("[data-dataset-authoring-action]")?.dataset.datasetAuthoringAction;
4474
+ return h === void 0 ? Ta(e, t) : (h === "copy-data" ? e.copyPreviewData() : h === "fullscreen-edit" ? (e.state.workbenchOpen = !0, e.state.confirmClose = !1, e.callbacks.requestAuthoringAction?.(h), e.renderSurface(), e.focusDataWorkbench()) : e.callbacks.requestAuthoringAction?.(h), !0);
4369
4475
  }
4370
- function ya(e, t) {
4476
+ function xa(e, t) {
4371
4477
  let n = t.dataset.dataEntry, r = t.dataset.dataEntryMode;
4372
- n !== void 0 && r !== void 0 && (!t.disabled && t.getAttribute("aria-checked") !== "true" && Ti(e, r), ba(e, n));
4478
+ n !== void 0 && r !== void 0 && (!t.disabled && t.getAttribute("aria-checked") !== "true" && Di(e, r), Sa(e, n));
4373
4479
  }
4374
- function ba(e, t) {
4480
+ function Sa(e, t) {
4375
4481
  e.state.panel?.querySelector(`[data-data-entry="${t}"]`)?.focus({ preventScroll: !0 });
4376
4482
  }
4377
- function xa(e) {
4483
+ function Ca(e) {
4378
4484
  if (e === "ArrowRight" || e === "ArrowDown") return "next";
4379
4485
  if (e === "ArrowLeft" || e === "ArrowUp") return "previous";
4380
4486
  if (e === "Home") return "first";
4381
4487
  if (e === "End") return "last";
4382
4488
  }
4383
- function Sa(e, t, n) {
4489
+ function wa(e, t, n) {
4384
4490
  let r = [...t.closest("[data-data-entry-group]")?.querySelectorAll("[data-data-entry]") ?? []].filter((e) => !e.disabled), i = r.indexOf(t);
4385
4491
  if (i === -1 || r.length === 0) return;
4386
4492
  let a = n === "first" ? 0 : n === "last" ? r.length - 1 : (i + (n === "next" ? 1 : -1) + r.length) % r.length, o = r[Math.min(Math.max(a, 0), r.length - 1)];
4387
4493
  if (o === void 0 || o === t) {
4388
- ba(e, t.dataset.dataEntry ?? "");
4494
+ Sa(e, t.dataset.dataEntry ?? "");
4389
4495
  return;
4390
4496
  }
4391
- ya(e, o);
4497
+ xa(e, o);
4392
4498
  }
4393
- function Ca(e, t) {
4499
+ function Ta(e, t) {
4394
4500
  let n = t.closest("[data-dataset-action]"), r = n?.dataset.datasetAction;
4395
4501
  if (r === "select-step") {
4396
4502
  e.state.confirmClose = !1;
4397
- let t = n?.dataset.datasetWorkbenchTarget, r = di(t) ? t : "source";
4503
+ let t = n?.dataset.datasetWorkbenchTarget, r = pi(t) ? t : "source";
4398
4504
  return e.focusWorkbenchSection(r), r === "source" && e.state.mode === "dataset" && e.catalogController.ensureList(), !0;
4399
4505
  }
4400
4506
  if (r === "open-workbench") {
4401
4507
  e.state.workbenchOpen = !0, e.state.confirmClose = !1;
4402
4508
  let t = n?.dataset.datasetWorkbenchTarget;
4403
- return e.state.activeStep = di(t) ? t : "source", e.state.activeStep === "preview" && (e.state.preview = {
4509
+ return e.state.activeStep = pi(t) ? t : "source", e.state.activeStep === "preview" && (e.state.preview = {
4404
4510
  ...e.state.preview,
4405
4511
  open: !0
4406
4512
  }), e.renderSurface(), e.focusDataWorkbench(), !0;
4407
4513
  }
4408
- if (r === "close-workbench") return Fa(e);
4514
+ if (r === "close-workbench") return La(e);
4409
4515
  if (r === "keep-editing") return e.state.confirmClose = !1, e.renderSurface(), !0;
4410
4516
  if (r === "discard-workbench") return e.restoreDatasetDraft(), e.state.workbenchOpen = !1, e.state.confirmClose = !1, e.renderSurface(), e.restoreFullscreenActionFocus(), !0;
4411
4517
  if (r === "toggle-preview") return e.state.preview = {
@@ -4415,7 +4521,7 @@ function Ca(e, t) {
4415
4521
  if (r === "apply" || r === "sync") return e.apply(), !0;
4416
4522
  if (r === "test") return e.testDatasetDraft(), !0;
4417
4523
  if (r === "undo") return e.callbacks.undo?.(), !0;
4418
- if (r === "retry-link") return Jr(e), !0;
4524
+ if (r === "retry-link") return Xr(e), !0;
4419
4525
  if (r === "select-host-resource") {
4420
4526
  let t = e.currentComponent();
4421
4527
  return t !== void 0 && e.callbacks.requestHostResourceSelection?.(t.id, t.type), !0;
@@ -4423,19 +4529,19 @@ function Ca(e, t) {
4423
4529
  if (r === "open-instance") return e.state.workbenchOpen = !0, e.state.confirmClose = !1, e.renderSurface(), e.focusDataWorkbench(), !0;
4424
4530
  if (r === "refresh") return e.callbacks.refresh(e.callbacks.getInteraction().focusedComponentId ?? void 0), !0;
4425
4531
  let i = t.closest("[data-dataset-resource-id]");
4426
- return i?.dataset.datasetResourceId !== void 0 && (Ei(e, i.dataset.datasetResourceId, { autoApply: !0 }), !0);
4532
+ return i?.dataset.datasetResourceId !== void 0 && (Oi(e, i.dataset.datasetResourceId, { autoApply: !0 }), !0);
4427
4533
  }
4428
4534
  function $(e) {
4429
4535
  let t = e.state.panel?.getRootNode?.();
4430
4536
  return typeof ShadowRoot > "u" || !(t instanceof ShadowRoot) ? null : t.querySelector("[data-source-sheet]");
4431
4537
  }
4432
- function wa(e, t) {
4538
+ function Ea(e, t) {
4433
4539
  $(e)?.querySelector(`[data-source-sheet-tab="${t}"]`)?.focus({ preventScroll: !0 });
4434
4540
  }
4435
- function Ta(e) {
4436
- wa(e, e.state.sourcePickerTab);
4541
+ function Da(e) {
4542
+ Ea(e, e.state.sourcePickerTab);
4437
4543
  }
4438
- function Ea(e, t) {
4544
+ function Oa(e, t) {
4439
4545
  let n = $(e)?.querySelector("[data-source-sheet]");
4440
4546
  if (n == null) return !1;
4441
4547
  let r = [...n.querySelectorAll("button:not(:disabled), input, textarea, select, [tabindex]:not([tabindex=\"-1\"])")].filter((e) => e.getClientRects().length > 0);
@@ -4443,34 +4549,34 @@ function Ea(e, t) {
4443
4549
  let i = r[0], a = r[r.length - 1], o = n.getRootNode().activeElement, s = o !== null && n.contains(o);
4444
4550
  return t.shiftKey && (!s || o === i) ? (t.preventDefault(), a.focus(), !0) : !t.shiftKey && (!s || o === a) && (t.preventDefault(), i.focus(), !0);
4445
4551
  }
4446
- function Da(e) {
4552
+ function ka(e) {
4447
4553
  if (!e.state.catalogOpen) return;
4448
- e.state.catalogOpen = !1, e.renderSurface();
4554
+ e.state.catalogOpen = !1, e.state.sourcePickerExpanded = !1, e.catalogController.resetPaging(), e.renderSurface();
4449
4555
  let t = e.state.mode === "static" || e.state.mode === "variable" ? "[data-source-kind-change]" : "[data-dataset-change]";
4450
4556
  e.state.panel?.querySelector(t)?.focus({ preventScroll: !0 });
4451
4557
  }
4452
- function Oa(e) {
4453
- e.state.catalogOpen = !0, e.state.sourcePickerTab = e.state.mode === "variable" ? "variable" : e.state.mode === "static" ? "fixed" : "dataset", e.renderSurface(), e.catalogController.ensureList(), Ta(e);
4558
+ function Aa(e) {
4559
+ e.state.catalogOpen = !0, e.state.sourcePickerExpanded = !1, e.catalogController.resetPaging(), e.state.sourcePickerTab = e.state.mode === "variable" ? "variable" : e.state.mode === "static" ? "fixed" : "dataset", e.renderSurface(), e.catalogController.ensurePagedList(), Da(e);
4454
4560
  }
4455
- function ka(e, t) {
4456
- e.state.mode !== "variable" && Ti(e, "variable"), e.state.variableSourceId = t, e.state.draftDirty = !0, e.state.catalogOpen = !1, Y(e);
4561
+ function ja(e, t) {
4562
+ e.state.mode !== "variable" && Di(e, "variable"), e.state.variableSourceId = t, e.state.draftDirty = !0, e.state.catalogOpen = !1, Y(e);
4457
4563
  }
4458
- function Aa(e) {
4564
+ function Ma(e) {
4459
4565
  return $(e)?.querySelector("[data-source-sheet-fixed]") ?? null;
4460
4566
  }
4461
- function ja(e, t) {
4567
+ function Na(e, t) {
4462
4568
  let n = $(e);
4463
4569
  if (n === null) return;
4464
- let r = kr(t, e.currentEntry()?.manifest.staticData), i = n.querySelector("[data-source-sheet-note]");
4570
+ let r = jr(t, e.currentEntry()?.manifest.staticData), i = n.querySelector("[data-source-sheet-note]");
4465
4571
  i !== null && (i.textContent = r.note, i.dataset.tone = r.ok ? "ok" : "error");
4466
4572
  let a = n.querySelector("[data-source-sheet-apply-fixed]");
4467
4573
  a !== null && (a.disabled = !r.ok);
4468
4574
  }
4469
- function Ma(e) {
4470
- let t = Aa(e);
4575
+ function Pa(e) {
4576
+ let t = Ma(e);
4471
4577
  if (t === null) return;
4472
- if (!kr(t.value, e.currentEntry()?.manifest.staticData).ok) {
4473
- ja(e, t.value);
4578
+ if (!jr(t.value, e.currentEntry()?.manifest.staticData).ok) {
4579
+ Na(e, t.value);
4474
4580
  return;
4475
4581
  }
4476
4582
  let n = e.state.mode, r = e.currentEntry()?.manifest.staticData;
@@ -4480,17 +4586,17 @@ function Ma(e) {
4480
4586
  }
4481
4587
  e.state.mode = n;
4482
4588
  let i = $(e)?.querySelector("[data-source-sheet-note]");
4483
- i != null && (i.textContent = e.state.feedbackText || d.dataSource.staticInvalid, i.dataset.tone = "error"), e.renderSurface();
4589
+ i != null && (i.textContent = e.state.feedbackText || w.dataSource.staticInvalid, i.dataset.tone = "error"), e.renderSurface();
4484
4590
  }
4485
- function Na(e) {
4486
- let t = Aa(e);
4591
+ function Fa(e) {
4592
+ let t = Ma(e);
4487
4593
  if (t !== null) try {
4488
- t.value = JSON.stringify(JSON.parse(t.value), null, 2), e.state.staticDraft = t.value, ja(e, t.value);
4594
+ t.value = JSON.stringify(JSON.parse(t.value), null, 2), e.state.staticDraft = t.value, Na(e, t.value);
4489
4595
  } catch {
4490
- ja(e, t.value);
4596
+ Na(e, t.value);
4491
4597
  }
4492
4598
  }
4493
- function Pa(e) {
4599
+ function Ia(e) {
4494
4600
  let t = $(e);
4495
4601
  if (t === null) return;
4496
4602
  let n = e.state.variableQuery.trim().toLowerCase(), r = 0;
@@ -4501,13 +4607,13 @@ function Pa(e) {
4501
4607
  let i = t.querySelector("[data-source-sheet-variable-empty]");
4502
4608
  i !== null && (i.hidden = r > 0);
4503
4609
  }
4504
- function Fa(e) {
4610
+ function La(e) {
4505
4611
  return e.state.mode === "dataset" && e.state.draftDirty ? (e.state.confirmClose = !0, e.renderSurface(), !0) : (e.state.workbenchOpen = !1, e.state.confirmClose = !1, e.renderSurface(), e.restoreFullscreenActionFocus(), !0);
4506
4612
  }
4507
- function Ia(e, t) {
4508
- return !(t instanceof HTMLInputElement) && !(t instanceof HTMLSelectElement) && !(t instanceof HTMLTextAreaElement) ? !1 : t.dataset.dataSourceModeSelect !== void 0 && t instanceof HTMLSelectElement ? (Ti(e, t.value), !0) : t.dataset.datasetGroup !== void 0 && t instanceof HTMLSelectElement ? (e.catalogController.updateGroup(t.value || void 0), !0) : t.dataset.dataVariableSource !== void 0 && t instanceof HTMLSelectElement ? (e.state.variableSourceId = t.value, e.state.draftDirty = !0, e.renderSurface(), !0) : ma(e, t) ? (Br(e), !0) : t.dataset.datasetAuthoringSetting === void 0 ? t.dataset.datasetInstanceSelect !== void 0 && t instanceof HTMLSelectElement ? (Di(e, t.value === "" ? null : t.value), !0) : t.dataset.valueRefInline === void 0 ? t.dataset.datasetBindingRole !== void 0 && t instanceof HTMLSelectElement && (Fi(e, t), !0) : ((t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement) && Ni(e, t), !0) : (La(e, t.dataset.datasetAuthoringSetting, t), !0);
4613
+ function Ra(e, t) {
4614
+ return !(t instanceof HTMLInputElement) && !(t instanceof HTMLSelectElement) && !(t instanceof HTMLTextAreaElement) ? !1 : t.dataset.dataSourceModeSelect !== void 0 && t instanceof HTMLSelectElement ? (Di(e, t.value), !0) : t.dataset.datasetGroup !== void 0 && t instanceof HTMLSelectElement ? (e.catalogController.updateGroup(t.value || void 0), !0) : t.dataset.dataVariableSource !== void 0 && t instanceof HTMLSelectElement ? (e.state.variableSourceId = t.value, e.state.draftDirty = !0, e.renderSurface(), !0) : ga(e, t) ? (Hr(e), !0) : t.dataset.datasetAuthoringSetting === void 0 ? t.dataset.datasetInstanceSelect !== void 0 && t instanceof HTMLSelectElement ? (ki(e, t.value === "" ? null : t.value), !0) : t.dataset.valueRefInline === void 0 ? t.dataset.datasetBindingRole !== void 0 && t instanceof HTMLSelectElement && (Li(e, t), !0) : ((t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement) && Fi(e, t), !0) : (za(e, t.dataset.datasetAuthoringSetting, t), !0);
4509
4615
  }
4510
- function La(e, t, n) {
4616
+ function za(e, t, n) {
4511
4617
  let r;
4512
4618
  if (t === "loadingDisabled" || t === "controlled") {
4513
4619
  if (!(n instanceof HTMLInputElement)) return;
@@ -4548,11 +4654,11 @@ function La(e, t, n) {
4548
4654
  e.callbacks.requestAuthoringAction?.("update-settings", {
4549
4655
  setting: t,
4550
4656
  value: r
4551
- }), fi.has(t) && Ki(e), e.renderSurface();
4657
+ }), mi.has(t) && Ji(e), e.renderSurface();
4552
4658
  }
4553
- function Ra(e, t) {
4554
- if (t.key === "Escape" && e.state.catalogOpen) return t.preventDefault(), Da(e), !0;
4555
- if (t.key === "Tab" && e.state.catalogOpen && Ea(e, t)) return !0;
4659
+ function Ba(e, t) {
4660
+ if (t.key === "Escape" && e.state.catalogOpen) return t.preventDefault(), ka(e), !0;
4661
+ if (t.key === "Tab" && e.state.catalogOpen && Oa(e, t)) return !0;
4556
4662
  if (t.key === "Escape" && e.state.bindingOpenRoleId !== null) return t.preventDefault(), e.state.bindingOpenRoleId = null, q(e), !0;
4557
4663
  if (t.key === "Backspace") {
4558
4664
  let n = t.target, r = n instanceof Element ? n.closest("[data-dataset-binding-trigger]") : null;
@@ -4561,33 +4667,33 @@ function Ra(e, t) {
4561
4667
  if (i !== void 0) {
4562
4668
  t.preventDefault();
4563
4669
  let n = i.closest(".designer-bind-field"), r = i.dataset.datasetBindingChipField, a = n?.querySelector(`[data-dataset-binding-field="${r}"]`);
4564
- a != null && ki(e, a);
4670
+ a != null && ji(e, a);
4565
4671
  }
4566
4672
  return !0;
4567
4673
  }
4568
4674
  }
4569
- if (t.key === "Escape" && e.state.workbenchOpen) return t.preventDefault(), e.state.mode === "dataset" && e.state.draftDirty ? (e.state.confirmClose = !0, e.renderSurface()) : Fa(e), !0;
4570
- let n = xa(t.key);
4675
+ if (t.key === "Escape" && e.state.workbenchOpen) return t.preventDefault(), e.state.mode === "dataset" && e.state.draftDirty ? (e.state.confirmClose = !0, e.renderSurface()) : La(e), !0;
4676
+ let n = Ca(t.key);
4571
4677
  if (n !== void 0) {
4572
4678
  let r = t.target instanceof Element ? t.target.closest("[data-data-entry]") : null;
4573
- if (r !== null) return t.preventDefault(), Sa(e, r, n), !0;
4679
+ if (r !== null) return t.preventDefault(), wa(e, r, n), !0;
4574
4680
  }
4575
4681
  if (t.key !== "Enter" || t.isComposing) return !1;
4576
4682
  let r = t.target;
4577
4683
  return (r instanceof HTMLInputElement || r instanceof HTMLSelectElement) && (r.dataset.valueRefInline !== void 0 || r.dataset.datasetBindingRole !== void 0) && (t.preventDefault(), e.apply(), !0);
4578
4684
  }
4579
- var za = class {
4685
+ var Va = class {
4580
4686
  #e = new je();
4581
4687
  #t;
4582
4688
  #n;
4583
4689
  constructor(e) {
4584
- let t = new re((e) => Yr(this.#n, e));
4690
+ let t = new re((e) => Zr(this.#n, e));
4585
4691
  this.#t = new De({
4586
4692
  getPort: e.getCatalogPort,
4587
4693
  report: e.report,
4588
- setFeedback: (e) => ui(this.#n, e),
4694
+ setFeedback: (e) => fi(this.#n, e),
4589
4695
  render: () => this.renderSurface(),
4590
- renderResults: () => qr(this.#n)
4696
+ renderResults: () => Yr(this.#n)
4591
4697
  }), this.#n = {
4592
4698
  callbacks: e,
4593
4699
  state: this.#e,
@@ -4602,27 +4708,27 @@ var za = class {
4602
4708
  return n === void 0 ? void 0 : e.getCatalog()?.get(n.type);
4603
4709
  },
4604
4710
  renderSurface: () => this.renderSurface(),
4605
- setFeedback: (e) => ui(this.#n, e),
4606
- cancelPreview: () => Zi(this.#n),
4607
- restoreStaticExample: (e) => la(this.#n, e),
4711
+ setFeedback: (e) => fi(this.#n, e),
4712
+ cancelPreview: () => $i(this.#n),
4713
+ restoreStaticExample: (e) => da(this.#n, e),
4608
4714
  apply: () => Y(this.#n),
4609
- restoreDatasetDraft: () => Ui(this.#n),
4610
- setParameterValueRef: (e, t) => Mi(this.#n, e, t),
4611
- focusWorkbenchSection: (e) => ni(this.#n, e),
4612
- testDatasetDraft: () => Ji(this.#n),
4613
- copyPreviewData: () => Qi(this.#n),
4614
- focusDataWorkbench: () => ri(this.#n),
4615
- restoreFullscreenActionFocus: () => ii(this.#n),
4616
- restoreBindingFieldFocus: (e, t, n) => ai(this.#n, e, t, n)
4715
+ restoreDatasetDraft: () => Gi(this.#n),
4716
+ setParameterValueRef: (e, t) => Pi(this.#n, e, t),
4717
+ focusWorkbenchSection: (e) => ii(this.#n, e),
4718
+ testDatasetDraft: () => Xi(this.#n),
4719
+ copyPreviewData: () => ea(this.#n),
4720
+ focusDataWorkbench: () => ai(this.#n),
4721
+ restoreFullscreenActionFocus: () => oi(this.#n),
4722
+ restoreBindingFieldFocus: (e, t, n) => si(this.#n, e, t, n)
4617
4723
  };
4618
4724
  }
4619
4725
  render(e) {
4620
- if (li(this.#n), this.#n.currentComponent() === void 0) {
4621
- e !== void 0 && e.replaceChildren(d.dataPanelEmpty);
4726
+ if (di(this.#n), this.#n.currentComponent() === void 0) {
4727
+ e !== void 0 && e.replaceChildren(w.dataPanelEmpty);
4622
4728
  return;
4623
4729
  }
4624
- let t = Oi(this.#n);
4625
- fe(this.#n.currentEntry()).includes("dataset") || this.#t.clear(), e !== void 0 && (this.#e.panel = e, this.renderSurface(), this.#e.mode === "dataset" && (this.#t.ensureList(), t !== void 0 && Ei(this.#n, t.datasetId)));
4730
+ let t = Ai(this.#n);
4731
+ fe(this.#n.currentEntry()).includes("dataset") || this.#t.clear(), e !== void 0 && (this.#e.panel = e, this.renderSurface(), this.#e.mode === "dataset" && (this.#t.ensureList(), t !== void 0 && Oi(this.#n, t.datasetId)));
4626
4732
  }
4627
4733
  getFocusedDatasetFields() {
4628
4734
  return this.#e.descriptor?.fields.map((e) => ({
@@ -4631,22 +4737,22 @@ var za = class {
4631
4737
  })) ?? [];
4632
4738
  }
4633
4739
  clear() {
4634
- this.#t.clear(), li(this.#n), Zi(this.#n), this.#e.reset();
4740
+ this.#t.clear(), di(this.#n), $i(this.#n), this.#e.reset();
4635
4741
  }
4636
4742
  onInput(e) {
4637
- return _a(this.#n, e);
4743
+ return ya(this.#n, e);
4638
4744
  }
4639
4745
  onClick(e) {
4640
- return va(this.#n, e);
4746
+ return ba(this.#n, e);
4641
4747
  }
4642
4748
  onChange(e) {
4643
- return Ia(this.#n, e);
4749
+ return Ra(this.#n, e);
4644
4750
  }
4645
4751
  onKeyDown(e) {
4646
- return Ra(this.#n, e);
4752
+ return Ba(this.#n, e);
4647
4753
  }
4648
4754
  setParameterValueRef(e, t) {
4649
- Mi(this.#n, e, t);
4755
+ Pi(this.#n, e, t);
4650
4756
  }
4651
4757
  get descriptor() {
4652
4758
  return this.#e.descriptor;
@@ -4658,10 +4764,10 @@ var za = class {
4658
4764
  return this.#e.authoring;
4659
4765
  }
4660
4766
  renderSurface() {
4661
- Rr(this.#n);
4767
+ Br(this.#n);
4662
4768
  }
4663
4769
  };
4664
4770
  //#endregion
4665
- export { za as DesignerDatasetController };
4771
+ export { Va as DesignerDatasetController };
4666
4772
 
4667
- //# sourceMappingURL=designer-dataset-controller-DdbY4ILC-CMdGdGbr.js.map
4773
+ //# sourceMappingURL=designer-dataset-controller-bSR5OB6n-DfUP24S6.js.map