base-screen 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_internal/contracts/document/schema.d.ts +7 -0
- package/dist/_internal/contracts/document/schema.js +1 -1
- package/dist/_internal/contracts/document/validate-value-ref.js +6 -1
- package/dist/_internal/contracts/screen-document.schema.json +15 -3
- package/dist/_internal/contracts/types/diagnostics.d.ts +1 -1
- package/dist/_internal/contracts/types/document.d.ts +3 -1
- package/dist/_internal/core/blueprint/runtime-simulate.d.ts +57 -0
- package/dist/_internal/core/blueprint/runtime-simulate.js +177 -0
- package/dist/_internal/core/blueprint/runtime.d.ts +1 -0
- package/dist/_internal/core/blueprint/runtime.js +1 -0
- package/dist/_internal/core/commands/apply-collection-commands.d.ts +32 -0
- package/dist/_internal/core/commands/apply-collection-commands.js +174 -0
- package/dist/_internal/core/commands/apply.js +13 -0
- package/dist/_internal/core/commands/parse-command.js +12 -0
- package/dist/_internal/core/commands/types.d.ts +29 -1
- package/dist/_internal/core/data/data-candidates.d.ts +38 -0
- package/dist/_internal/core/data/data-candidates.js +186 -0
- package/dist/_internal/core/data/dataset-profile.d.ts +71 -0
- package/dist/_internal/core/data/dataset-profile.js +170 -0
- package/dist/_internal/core/data/sample-values.d.ts +25 -0
- package/dist/_internal/core/data/sample-values.js +45 -0
- package/dist/_internal/core/diff/screen-diff.js +6 -0
- package/dist/_internal/core/index.d.ts +7 -1
- package/dist/_internal/core/index.js +7 -1
- package/dist/_internal/core/state/state-preset.d.ts +32 -0
- package/dist/_internal/core/state/state-preset.js +37 -0
- package/dist/_internal/core/validation/layout-audit.d.ts +17 -0
- package/dist/_internal/core/validation/layout-audit.js +228 -0
- package/dist/_internal/core/validation/legibility.d.ts +9 -0
- package/dist/_internal/core/validation/legibility.js +33 -0
- package/dist/_internal/engine/browser/controllers/dataset/designer-dataset-draft-controller.d.ts +6 -1
- package/dist/_internal/engine/browser/controllers/designer-change-controller.d.ts +27 -0
- package/dist/_internal/engine/browser/dom/change/designer-change-dom.d.ts +21 -5
- package/dist/_internal/engine/browser/dom/dataset/designer-data-section-diff.d.ts +4 -6
- package/dist/_internal/engine/browser/dom/value-ref/designer-value-ref-types.d.ts +2 -0
- package/dist/_internal/engine/browser/viewport/designer-canvas-aids-types.d.ts +3 -3
- package/dist/_internal/engine/browser/viewport/designer-canvas-aids.d.ts +5 -3
- package/dist/_internal/engine/browser/viewport/designer-canvas-measurements.d.ts +2 -14
- package/dist/_internal/engine/browser/viewport/designer-guide-overlay-nodes.d.ts +2 -0
- package/dist/_internal/engine/browser/viewport/designer-snap-tuning.d.ts +14 -0
- package/dist/_internal/engine/common/operations/change/designer-change-events.d.ts +2 -0
- package/dist/_internal/engine/common/operations/change/designer-change-proposal.d.ts +35 -2
- package/dist/_internal/engine/common/operations/display/designer-target-display.d.ts +2 -2
- package/dist/_internal/engine/common/operations/style/designer-component-states.d.ts +7 -2
- package/dist/_internal/engine/common/ui-text/designer-ui-text.d.ts +42 -2
- package/dist/_internal/engine/{designer-blueprint-workbench-panel-CJ3iZo5v.js → designer-blueprint-workbench-panel-BWSglfAb.js} +210 -290
- package/dist/_internal/engine/{designer-dataset-controller-CrfOg2Ys.js → designer-dataset-controller-DdbY4ILC.js} +619 -561
- package/dist/_internal/engine/designer-element/api/designer-element-change.d.ts +24 -0
- package/dist/_internal/engine/designer-element/base-screen-designer-element.d.ts +12 -0
- package/dist/_internal/engine/designer-element/designer-element-public-api.d.ts +2 -1
- package/dist/_internal/engine/designer-element/runtime/designer-element-rendering.d.ts +1 -1
- package/dist/_internal/engine/designer-element/runtime/designer-element-runtime.d.ts +4 -1
- package/dist/_internal/engine/designer-element/runtime/designer-element-sample-data.d.ts +23 -0
- package/dist/_internal/engine/{designer-field-primitives-KBZuWN_D.js → designer-field-primitives-Crn464Qg.js} +44 -3
- package/dist/_internal/engine/{designer-left-panel-groups-dom-N2OHOWjl.js → designer-left-panel-groups-dom-DFdLWxxY.js} +2 -2
- package/dist/_internal/engine/{host-resource-selection-xo2mLCD4.js → host-resource-selection-CWrPLVOc.js} +2 -2
- package/dist/_internal/engine/index.js +4742 -4360
- package/dist/_internal/host-kit/index.d.ts +1 -0
- package/dist/_internal/host-kit/index.js +1 -0
- package/dist/_internal/host-kit/intent/index.d.ts +16 -0
- package/dist/_internal/host-kit/intent/index.js +13 -0
- package/dist/_internal/host-kit/intent/intent-behavior.d.ts +59 -0
- package/dist/_internal/host-kit/intent/intent-behavior.js +812 -0
- package/dist/_internal/host-kit/intent/intent-block.d.ts +59 -0
- package/dist/_internal/host-kit/intent/intent-block.js +359 -0
- package/dist/_internal/host-kit/intent/intent-catalog.d.ts +105 -0
- package/dist/_internal/host-kit/intent/intent-catalog.js +60 -0
- package/dist/_internal/host-kit/intent/intent-compile-types.d.ts +222 -0
- package/dist/_internal/host-kit/intent/intent-compile-types.js +10 -0
- package/dist/_internal/host-kit/intent/intent-compile.d.ts +35 -0
- package/dist/_internal/host-kit/intent/intent-compile.js +465 -0
- package/dist/_internal/host-kit/intent/intent-data-check.d.ts +50 -0
- package/dist/_internal/host-kit/intent/intent-data-check.js +163 -0
- package/dist/_internal/host-kit/intent/intent-data-context.d.ts +53 -0
- package/dist/_internal/host-kit/intent/intent-data-context.js +200 -0
- package/dist/_internal/host-kit/intent/intent-dataset.d.ts +52 -0
- package/dist/_internal/host-kit/intent/intent-dataset.js +125 -0
- package/dist/_internal/host-kit/intent/intent-format.d.ts +33 -0
- package/dist/_internal/host-kit/intent/intent-format.js +94 -0
- package/dist/_internal/host-kit/intent/intent-kpi-bind.d.ts +29 -0
- package/dist/_internal/host-kit/intent/intent-kpi-bind.js +59 -0
- package/dist/_internal/host-kit/intent/intent-layout.d.ts +102 -0
- package/dist/_internal/host-kit/intent/intent-layout.js +264 -0
- package/dist/_internal/host-kit/intent/intent-parse.d.ts +39 -0
- package/dist/_internal/host-kit/intent/intent-parse.js +930 -0
- package/dist/_internal/host-kit/intent/intent-prepare.d.ts +52 -0
- package/dist/_internal/host-kit/intent/intent-prepare.js +104 -0
- package/dist/_internal/host-kit/intent/intent-session.d.ts +202 -0
- package/dist/_internal/host-kit/intent/intent-session.js +1001 -0
- package/dist/_internal/host-kit/intent/intent-stream.d.ts +28 -0
- package/dist/_internal/host-kit/intent/intent-stream.js +183 -0
- package/dist/_internal/host-kit/intent/intent-style.d.ts +37 -0
- package/dist/_internal/host-kit/intent/intent-style.js +77 -0
- package/dist/_internal/host-kit/intent/intent-types.d.ts +234 -0
- package/dist/_internal/host-kit/intent/intent-types.js +10 -0
- package/dist/_internal/material/chart.js +34 -12
- package/dist/_internal/material/table.js +52 -21
- package/dist/_internal/plugin-sdk/index.d.ts +6 -0
- package/dist/_internal/plugin-sdk/index.js +6 -0
- package/dist/_internal/plugin-sdk/material-isolated-csp.d.ts +38 -0
- package/dist/_internal/plugin-sdk/material-isolated-csp.js +67 -0
- package/dist/_internal/plugin-sdk/material-isolated-runtime.d.ts +22 -0
- package/dist/_internal/plugin-sdk/material-isolated-runtime.js +262 -0
- package/dist/_internal/plugin-sdk/material-isolated.d.ts +94 -0
- package/dist/_internal/plugin-sdk/material-isolated.js +1024 -0
- package/dist/_internal/plugin-sdk/material-rendered-element.d.ts +10 -2
- package/dist/_internal/plugin-sdk/material-rendered-element.js +71 -7
- package/dist/_internal/plugin-sdk/material-spec-audit.d.ts +2 -0
- package/dist/_internal/plugin-sdk/material-spec-audit.js +26 -6
- package/dist/_internal/plugin-sdk/material-spec.d.ts +20 -0
- package/dist/_internal/plugin-sdk/material-spec.js +78 -3
- package/dist/_internal/plugin-sdk/material-template-audit.d.ts +12 -0
- package/dist/_internal/plugin-sdk/material-template-audit.js +302 -0
- package/dist/_internal/plugin-sdk/material-template-expression.d.ts +98 -0
- package/dist/_internal/plugin-sdk/material-template-expression.js +549 -0
- package/dist/_internal/plugin-sdk/material-template-render.d.ts +32 -0
- package/dist/_internal/plugin-sdk/material-template-render.js +579 -0
- package/dist/_internal/plugin-sdk/material-template.d.ts +185 -0
- package/dist/_internal/plugin-sdk/material-template.js +879 -0
- package/dist/auto-register.js +10 -10
- package/dist/contracts.js +5 -5
- package/dist/contrast-DRPezUIl.js +131 -0
- package/dist/contrast-DRPezUIl.js.map +1 -0
- package/dist/core.js +156 -136
- package/dist/core.js.map +1 -1
- package/dist/dataset-profile-Dk6xdtsM.js +261 -0
- package/dist/dataset-profile-Dk6xdtsM.js.map +1 -0
- package/dist/{designer-3Tb0EIDV.js → designer-CFOvOmLn.js} +2 -2
- package/dist/{designer-3Tb0EIDV.js.map → designer-CFOvOmLn.js.map} +1 -1
- package/dist/designer-auto-register.js +5 -5
- package/dist/{designer-blueprint-workbench-panel-CJ3iZo5v-BebifP4x.js → designer-blueprint-workbench-panel-BWSglfAb-ktaj6Ci9.js} +452 -531
- package/dist/designer-blueprint-workbench-panel-BWSglfAb-ktaj6Ci9.js.map +1 -0
- package/dist/{designer-dataset-controller-CrfOg2Ys-DhKUEJJe.js → designer-dataset-controller-DdbY4ILC-CMdGdGbr.js} +862 -804
- package/dist/designer-dataset-controller-DdbY4ILC-CMdGdGbr.js.map +1 -0
- package/dist/{designer-field-primitives-KBZuWN_D-B3h4jpYe.js → designer-field-primitives-Crn464Qg-Bi7q8s5J.js} +45 -4
- package/dist/designer-field-primitives-Crn464Qg-Bi7q8s5J.js.map +1 -0
- package/dist/{designer-left-panel-groups-dom-N2OHOWjl-D8CzGwbF.js → designer-left-panel-groups-dom-DFdLWxxY-BarlWMLY.js} +4 -4
- package/dist/{designer-left-panel-groups-dom-N2OHOWjl-D8CzGwbF.js.map → designer-left-panel-groups-dom-DFdLWxxY-BarlWMLY.js.map} +1 -1
- package/dist/designer.js +5 -5
- package/dist/{dist-6GRboBs-.js → dist-B2bW2Tru.js} +4 -4
- package/dist/{dist-6GRboBs-.js.map → dist-B2bW2Tru.js.map} +1 -1
- package/dist/{dist-BjLjFUy1.js → dist-CHK9BTXX.js} +3833 -3453
- package/dist/dist-CHK9BTXX.js.map +1 -0
- package/dist/engine.js +5 -5
- package/dist/{fragment-Y6YnW6wy.js → fragment-B-oP0Fru.js} +3 -3
- package/dist/{fragment-Y6YnW6wy.js.map → fragment-B-oP0Fru.js.map} +1 -1
- package/dist/host-kit.js +3963 -187
- package/dist/host-kit.js.map +1 -1
- package/dist/{host-resource-selection-xo2mLCD4-BR5XCcim.js → host-resource-selection-CWrPLVOc-DPDq3jau.js} +5 -5
- package/dist/{host-resource-selection-xo2mLCD4-BR5XCcim.js.map → host-resource-selection-CWrPLVOc-DPDq3jau.js.map} +1 -1
- package/dist/index.js +10 -10
- package/dist/legibility-CS28ivEz.js +12 -0
- package/dist/legibility-CS28ivEz.js.map +1 -0
- package/dist/{level-scale-BzUjE31V.js → level-scale-CwHqFEVd.js} +2 -2
- package/dist/{level-scale-BzUjE31V.js.map → level-scale-CwHqFEVd.js.map} +1 -1
- package/dist/{manager-Ch0RTu_i.js → manager-CeB4Jnr9.js} +3 -3
- package/dist/{manager-Ch0RTu_i.js.map → manager-CeB4Jnr9.js.map} +1 -1
- package/dist/{material-UbSfiuZq.js → material-DeVkzSoT.js} +2 -2
- package/dist/{material-UbSfiuZq.js.map → material-DeVkzSoT.js.map} +1 -1
- package/dist/material-auto-register.js +1 -1
- package/dist/material.js +2 -2
- package/dist/{migrate-document-D3HhCVlZ.js → migrate-document-BM888PtC.js} +2 -2
- package/dist/{migrate-document-D3HhCVlZ.js.map → migrate-document-BM888PtC.js.map} +1 -1
- package/dist/{parse-AOTE9WnD.js → parse-Ji7kE9ZT.js} +9 -4
- package/dist/parse-Ji7kE9ZT.js.map +1 -0
- package/dist/{parse-B1OD1teS.js → parse-aZat9tAS.js} +3 -3
- package/dist/{parse-B1OD1teS.js.map → parse-aZat9tAS.js.map} +1 -1
- package/dist/{parse-parts-BNrpdG5o.js → parse-parts-qzl4suzk.js} +2 -2
- package/dist/{parse-parts-BNrpdG5o.js.map → parse-parts-qzl4suzk.js.map} +1 -1
- package/dist/{plugin-DHgh9uHh.js → plugin-CstHQ5ws.js} +4 -4
- package/dist/{plugin-DHgh9uHh.js.map → plugin-CstHQ5ws.js.map} +1 -1
- package/dist/plugin-core.js +2 -2
- package/dist/plugin-manager.js +1 -1
- package/dist/plugin-package-DWifuHi1.js +4206 -0
- package/dist/plugin-package-DWifuHi1.js.map +1 -0
- package/dist/{plugin-registration-rsmb4GvS.js → plugin-registration-DTwBvnHX.js} +2 -2
- package/dist/{plugin-registration-rsmb4GvS.js.map → plugin-registration-DTwBvnHX.js.map} +1 -1
- package/dist/plugin-sdk.js +6 -6
- package/dist/{plugins-DGRHgREK.js → plugins-QDL0yIql.js} +2 -2
- package/dist/{plugins-DGRHgREK.js.map → plugins-QDL0yIql.js.map} +1 -1
- package/dist/plugins.js +8 -8
- package/dist/renderer.js +1 -1
- package/dist/{runtime-dispatch-BfnRDtMe.js → runtime-dispatch-C0gyIrTv.js} +2 -2
- package/dist/{runtime-dispatch-BfnRDtMe.js.map → runtime-dispatch-C0gyIrTv.js.map} +1 -1
- package/dist/runtime-simulate-aSYO9yDX.js +147 -0
- package/dist/runtime-simulate-aSYO9yDX.js.map +1 -0
- package/dist/{src-Bm7u11mN-_0u6cMEw.js → src-Bm7u11mN-Bi1hDVkh.js} +39 -39
- package/dist/{src-Bm7u11mN-_0u6cMEw.js.map → src-Bm7u11mN-Bi1hDVkh.js.map} +1 -1
- package/dist/state-preset-DtpygJOH.js +22 -0
- package/dist/state-preset-DtpygJOH.js.map +1 -0
- package/dist/{text-BNksUr5J.js → text-BSTz0pFQ.js} +87 -34
- package/dist/text-BSTz0pFQ.js.map +1 -0
- package/dist/{value-ref-BG_MV9C-.js → value-ref-XkLuckGV.js} +2 -2
- package/dist/{value-ref-BG_MV9C-.js.map → value-ref-XkLuckGV.js.map} +1 -1
- package/dist/{viewer-CrJupI8I-D9dVcNw4.js → viewer-CrJupI8I-BJiz1cvW.js} +4 -4
- package/dist/{viewer-CrJupI8I-D9dVcNw4.js.map → viewer-CrJupI8I-BJiz1cvW.js.map} +1 -1
- package/dist/viewer-auto-register.js +2 -2
- package/dist/viewer.js +2 -2
- package/dist/{viewport-CiCKeAQH.js → viewport-BNIRWjiT.js} +354 -155
- package/dist/viewport-BNIRWjiT.js.map +1 -0
- package/package.json +12 -12
- package/dist/designer-blueprint-workbench-panel-CJ3iZo5v-BebifP4x.js.map +0 -1
- package/dist/designer-dataset-controller-CrfOg2Ys-DhKUEJJe.js.map +0 -1
- package/dist/designer-field-primitives-KBZuWN_D-B3h4jpYe.js.map +0 -1
- package/dist/dist-BjLjFUy1.js.map +0 -1
- package/dist/parse-AOTE9WnD.js.map +0 -1
- package/dist/plugin-package-Dr5ro6h6.js +0 -1221
- package/dist/plugin-package-Dr5ro6h6.js.map +0 -1
- package/dist/text-BNksUr5J.js.map +0 -1
- package/dist/viewport-CiCKeAQH.js.map +0 -1
|
@@ -2,17 +2,17 @@ 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
|
|
6
|
-
import { C as
|
|
7
|
-
import { a as
|
|
8
|
-
//#region ../engine/dist/designer-dataset-controller-
|
|
9
|
-
var
|
|
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";
|
|
7
|
+
import { a as A } from "./value-ref-XkLuckGV.js";
|
|
8
|
+
//#region ../engine/dist/designer-dataset-controller-DdbY4ILC.js
|
|
9
|
+
var te = "[data-ds-section]", ne = {
|
|
10
10
|
value: "source",
|
|
11
11
|
source: "source",
|
|
12
12
|
"host-link": "source",
|
|
13
13
|
preview: "preview",
|
|
14
14
|
authoring: "preview"
|
|
15
|
-
},
|
|
15
|
+
}, re = class {
|
|
16
16
|
onStepChange;
|
|
17
17
|
#e;
|
|
18
18
|
#t;
|
|
@@ -46,12 +46,12 @@ var re = "[data-ds-section]", ie = {
|
|
|
46
46
|
handleScroll() {
|
|
47
47
|
let e = this.#e;
|
|
48
48
|
if (e === void 0) return;
|
|
49
|
-
let t = [...e.querySelectorAll(
|
|
49
|
+
let t = [...e.querySelectorAll(te)];
|
|
50
50
|
if (t.length === 0) return;
|
|
51
51
|
let n = e.scrollTop + e.clientHeight >= e.scrollHeight - 10 ? e.scrollTop + e.clientHeight : e.scrollTop + Math.min(e.clientHeight * .25, 80), r = "source";
|
|
52
52
|
for (let e of t) {
|
|
53
53
|
if (e.offsetTop > n) break;
|
|
54
|
-
let t =
|
|
54
|
+
let t = ne[e.dataset.dsSection];
|
|
55
55
|
t !== void 0 && (r = t);
|
|
56
56
|
}
|
|
57
57
|
this.emitStep(r);
|
|
@@ -63,7 +63,7 @@ var re = "[data-ds-section]", ie = {
|
|
|
63
63
|
this.#e !== void 0 && this.#t !== void 0 && this.#e.removeEventListener("scroll", this.#t), this.#t = void 0, this.#e = void 0;
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
|
-
function
|
|
66
|
+
function ie(e, t) {
|
|
67
67
|
if (t === void 0) return null;
|
|
68
68
|
if (t.dataSource?.type === "dataset") return {
|
|
69
69
|
source: t.dataSource,
|
|
@@ -76,7 +76,7 @@ function oe(e, t) {
|
|
|
76
76
|
if (r === void 0 || r.source.kind !== "dataset") return null;
|
|
77
77
|
let i = {};
|
|
78
78
|
for (let [e, t] of Object.entries(r.params)) {
|
|
79
|
-
let n =
|
|
79
|
+
let n = ce(t);
|
|
80
80
|
n !== void 0 && (i[e] = n);
|
|
81
81
|
}
|
|
82
82
|
return {
|
|
@@ -90,7 +90,7 @@ function oe(e, t) {
|
|
|
90
90
|
instance: r
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function ae(e, t) {
|
|
94
94
|
if (t === void 0 || e === void 0 || t.dataSource?.type === "host-resource") return null;
|
|
95
95
|
let n = l(t);
|
|
96
96
|
if (n === null || n.kind !== "data-source-field") return null;
|
|
@@ -98,7 +98,7 @@ function se(e, t) {
|
|
|
98
98
|
if (r === void 0 || r.source.kind !== "host-resource") return null;
|
|
99
99
|
let i = {};
|
|
100
100
|
for (let [e, t] of Object.entries(r.params)) {
|
|
101
|
-
let n =
|
|
101
|
+
let n = ce(t);
|
|
102
102
|
n !== void 0 && (i[e] = n);
|
|
103
103
|
}
|
|
104
104
|
return {
|
|
@@ -113,7 +113,7 @@ function se(e, t) {
|
|
|
113
113
|
instance: r
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function oe(e, t, n, r = []) {
|
|
117
117
|
let i = {};
|
|
118
118
|
for (let n of e.parameters) {
|
|
119
119
|
let e = t.params[n.name];
|
|
@@ -122,14 +122,14 @@ function ce(e, t, n, r = []) {
|
|
|
122
122
|
value: n.defaultValue
|
|
123
123
|
}) : i[n.name] = e;
|
|
124
124
|
}
|
|
125
|
-
let a = n == null ?
|
|
125
|
+
let a = n == null ? ue(e, r) : Object.fromEntries(Object.entries(n.fields).map(([e, t]) => [e, [...t]]));
|
|
126
126
|
return {
|
|
127
127
|
datasetId: e.datasetId,
|
|
128
128
|
params: i,
|
|
129
129
|
fields: a
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function se(e) {
|
|
133
133
|
return e.kind === "variable" ? {
|
|
134
134
|
kind: "variable",
|
|
135
135
|
variableId: e.variableId
|
|
@@ -138,7 +138,7 @@ function le(e) {
|
|
|
138
138
|
value: e.value
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function ce(e) {
|
|
142
142
|
if (e.kind === "variable") return {
|
|
143
143
|
kind: "variable",
|
|
144
144
|
variableId: e.variableId
|
|
@@ -148,23 +148,23 @@ function ue(e) {
|
|
|
148
148
|
value: e.value
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function le(e, t, n = []) {
|
|
152
152
|
let r = t?.type === "dataset" && t.datasetId === e.datasetId, i = {};
|
|
153
153
|
for (let n of e.parameters) {
|
|
154
154
|
let e = r ? t.params[n.name] : void 0;
|
|
155
155
|
e === void 0 ? n.defaultValue !== void 0 && (i[n.name] = {
|
|
156
156
|
kind: "inline",
|
|
157
157
|
value: n.defaultValue
|
|
158
|
-
}) : i[n.name] =
|
|
158
|
+
}) : i[n.name] = se(e);
|
|
159
159
|
}
|
|
160
160
|
let a = r ? Object.fromEntries(Object.entries(t.binding?.fields ?? {}).map(([e, t]) => [e, [...t]])) : {};
|
|
161
|
-
return r || Object.assign(a,
|
|
161
|
+
return r || Object.assign(a, ue(e, n)), {
|
|
162
162
|
datasetId: e.datasetId,
|
|
163
163
|
params: i,
|
|
164
164
|
fields: a
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function ue(e, t) {
|
|
168
168
|
let n = {}, r = /* @__PURE__ */ new Set();
|
|
169
169
|
for (let i of t) {
|
|
170
170
|
let t = e.fields.filter((e) => i.valueTypes.includes(e.valueType)), a = [];
|
|
@@ -179,7 +179,7 @@ function fe(e, t) {
|
|
|
179
179
|
}
|
|
180
180
|
return n;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function de(e, t) {
|
|
183
183
|
if (t.valueType === "boolean" && e instanceof HTMLInputElement) return e.checked;
|
|
184
184
|
if (t.valueType === "number") {
|
|
185
185
|
if (e.value.trim() === "") return;
|
|
@@ -188,7 +188,7 @@ function pe(e, t) {
|
|
|
188
188
|
}
|
|
189
189
|
return e.value;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function fe(e) {
|
|
192
192
|
let t = e?.manifest.dataCapabilities ?? [];
|
|
193
193
|
return [
|
|
194
194
|
"none",
|
|
@@ -198,7 +198,7 @@ function me(e) {
|
|
|
198
198
|
...t.includes("host-resource") ? ["host-resource"] : []
|
|
199
199
|
];
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function pe(e, t, n) {
|
|
202
202
|
return t === "" ? e : {
|
|
203
203
|
...e,
|
|
204
204
|
params: {
|
|
@@ -207,7 +207,7 @@ function he(e, t, n) {
|
|
|
207
207
|
}
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function me(e, t, n) {
|
|
211
211
|
let r = e.fields[t.id] ?? [], i = r.includes(n) ? r.filter((e) => e !== n) : t.maxFields === 1 ? [n] : r.length < t.maxFields ? [...r, n] : r;
|
|
212
212
|
return {
|
|
213
213
|
...e,
|
|
@@ -217,36 +217,36 @@ function ge(e, t, n) {
|
|
|
217
217
|
}
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function he(n, r, i, a, o = []) {
|
|
221
221
|
let s;
|
|
222
222
|
try {
|
|
223
223
|
s = JSON.parse(r);
|
|
224
224
|
} catch {
|
|
225
|
-
return
|
|
225
|
+
return M("CORE_COMMAND_INVALID", d.dataSource.staticInvalid);
|
|
226
226
|
}
|
|
227
227
|
let c = e(s);
|
|
228
|
-
if (!c.ok || i?.kind === "scalar" && typeof c.value !== i.valueType) return
|
|
228
|
+
if (!c.ok || i?.kind === "scalar" && typeof c.value !== i.valueType) return M("CORE_COMMAND_INVALID", d.dataSource.staticInvalid);
|
|
229
229
|
if (i?.kind === "tabular") {
|
|
230
230
|
let e = t(c.value);
|
|
231
231
|
if (!e.ok) return e;
|
|
232
|
-
let r =
|
|
233
|
-
return r.ok ?
|
|
232
|
+
let r = A(a ?? null, e.value.fields, o);
|
|
233
|
+
return r.ok ? j(Ee(n, {
|
|
234
234
|
type: "static",
|
|
235
235
|
value: e.value,
|
|
236
236
|
...a === void 0 ? {} : { binding: a }
|
|
237
237
|
})) : r;
|
|
238
238
|
}
|
|
239
|
-
return
|
|
239
|
+
return j(Ee(n, {
|
|
240
240
|
type: "static",
|
|
241
241
|
value: c.value
|
|
242
242
|
}));
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
let t =
|
|
244
|
+
function ge(e) {
|
|
245
|
+
let t = _e(e.document, e.descriptor, e.draft);
|
|
246
246
|
if (!t.ok) return t;
|
|
247
|
-
let n = e.roles.length === 0 ? null : { fields: e.draft.fields }, r =
|
|
247
|
+
let n = e.roles.length === 0 ? null : { fields: e.draft.fields }, r = A(n, e.descriptor.fields, e.roles);
|
|
248
248
|
if (!r.ok) return r;
|
|
249
|
-
let i = e.document.dataSources ?? [], a = e.preferredInstanceId === void 0 ? void 0 : i.find((t) => t.id === e.preferredInstanceId), o = a !== void 0 && a.source.kind === "dataset" && a.source.datasetId === e.descriptor.datasetId ? a : i.find((t) => t.source.kind === "dataset" && t.source.datasetId === e.descriptor.datasetId &&
|
|
249
|
+
let i = e.document.dataSources ?? [], a = e.preferredInstanceId === void 0 ? void 0 : i.find((t) => t.id === e.preferredInstanceId), o = a !== void 0 && a.source.kind === "dataset" && a.source.datasetId === e.descriptor.datasetId ? a : i.find((t) => t.source.kind === "dataset" && t.source.datasetId === e.descriptor.datasetId && ye(t.params, e.draft.params)), s = o?.id ?? xe(i, e.componentId), c = {
|
|
250
250
|
...o ?? {
|
|
251
251
|
id: s,
|
|
252
252
|
name: e.descriptor.name
|
|
@@ -275,26 +275,26 @@ function ve(e) {
|
|
|
275
275
|
dataBinding: n
|
|
276
276
|
}
|
|
277
277
|
}];
|
|
278
|
-
return p !== void 0 && p !== s && i.some((e) => e.id === p) && !
|
|
278
|
+
return p !== void 0 && p !== s && i.some((e) => e.id === p) && !ve(e.document, e.componentId, p) && m.push({
|
|
279
279
|
type: "replace-data-sources",
|
|
280
280
|
dataSources: u.filter((e) => e.id !== p)
|
|
281
|
-
}),
|
|
281
|
+
}), j({ commands: m });
|
|
282
282
|
}
|
|
283
|
-
function
|
|
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
|
|
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);
|
|
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
|
|
292
|
-
r[e] = i.kind === "inline" ? i.value :
|
|
291
|
+
if (n === void 0) return M("HOST_DATASET_PARAMETER_INVALID", d.dataset.incomplete);
|
|
292
|
+
r[e] = i.kind === "inline" ? i.value : Se(n);
|
|
293
293
|
}
|
|
294
294
|
let i = a(t.parameters, r);
|
|
295
|
-
return i.ok ?
|
|
295
|
+
return i.ok ? j(null) : i;
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function ve(e, t, n) {
|
|
298
298
|
for (let r of e.components) {
|
|
299
299
|
if (r.id === t) continue;
|
|
300
300
|
let e = l(r);
|
|
@@ -306,15 +306,15 @@ function be(e, t, n) {
|
|
|
306
306
|
}
|
|
307
307
|
return !1;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function ye(e, t) {
|
|
310
310
|
let n = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
|
|
311
|
-
for (let r of n) if (
|
|
311
|
+
for (let r of n) if (be(e[r]) !== be(t[r])) return !1;
|
|
312
312
|
return !0;
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function be(e) {
|
|
315
315
|
return e === void 0 ? "missing" : e.kind === "inline" ? `inline:${JSON.stringify(e.value)}` : e.kind === "variable" ? `variable:${e.variableId}` : `field:${e.dataSourceId}:${e.path.join(".")}`;
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function xe(e, t) {
|
|
318
318
|
let n = `data-source-${t}`, r = new Set(e.map((e) => e.id));
|
|
319
319
|
if (!r.has(n)) return n;
|
|
320
320
|
for (let e = 2; e < 1e3; e += 1) {
|
|
@@ -323,10 +323,10 @@ function Ce(e, t) {
|
|
|
323
323
|
}
|
|
324
324
|
return `${n}-${Date.now()}`;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function Se(e) {
|
|
327
327
|
return e.allowedValues?.[0] ?? e.defaultValue ?? (e.valueType === "number" ? e.minimum ?? 0 : e.valueType === "boolean" ? !1 : e.valueType === "date" ? "2000-01-01" : "");
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function Ce(e, t) {
|
|
330
330
|
let n = e.components.find((e) => e.id === t), r = [{
|
|
331
331
|
type: "update-components",
|
|
332
332
|
componentIds: [t],
|
|
@@ -350,18 +350,18 @@ function Te(e, t) {
|
|
|
350
350
|
dataSources: c.filter((e) => e.id !== n)
|
|
351
351
|
});
|
|
352
352
|
}
|
|
353
|
-
return
|
|
353
|
+
return j({ commands: r });
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
return e.variables.some((e) => e.id === n) ?
|
|
355
|
+
function we(e, t, n) {
|
|
356
|
+
return e.variables.some((e) => e.id === n) ? j(Ee(t, {
|
|
357
357
|
type: "variable",
|
|
358
358
|
variableId: n
|
|
359
|
-
})) :
|
|
359
|
+
})) : M("CORE_COMMAND_INVALID", d.dataset.incomplete);
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Te(e, t) {
|
|
362
362
|
return e?.parameters.find((e) => e.name === t)?.defaultValue ?? null;
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function Ee(e, t) {
|
|
365
365
|
return { commands: [{
|
|
366
366
|
type: "update-components",
|
|
367
367
|
componentIds: [e],
|
|
@@ -371,14 +371,14 @@ function Oe(e, t) {
|
|
|
371
371
|
}
|
|
372
372
|
}] };
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function j(e) {
|
|
375
375
|
return {
|
|
376
376
|
ok: !0,
|
|
377
377
|
value: e,
|
|
378
378
|
diagnostics: []
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function M(e, t) {
|
|
382
382
|
return {
|
|
383
383
|
ok: !1,
|
|
384
384
|
diagnostics: [{
|
|
@@ -389,7 +389,7 @@ function A(e, t) {
|
|
|
389
389
|
}]
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
|
-
var
|
|
392
|
+
var De = class {
|
|
393
393
|
callbacks;
|
|
394
394
|
#e;
|
|
395
395
|
#t;
|
|
@@ -557,17 +557,17 @@ var ke = class {
|
|
|
557
557
|
clearTimeout(r), this.#d === t && (this.#d = void 0);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
},
|
|
560
|
+
}, Oe = [
|
|
561
561
|
10,
|
|
562
562
|
20,
|
|
563
563
|
50,
|
|
564
564
|
100
|
|
565
565
|
];
|
|
566
|
-
function
|
|
567
|
-
return
|
|
566
|
+
function ke(e) {
|
|
567
|
+
return Oe.includes(e) ? e : 10;
|
|
568
568
|
}
|
|
569
|
-
function
|
|
570
|
-
let r =
|
|
569
|
+
function Ae(e, t, n) {
|
|
570
|
+
let r = ke(n), i = Math.max(1, Math.ceil(e / r)), a = Math.min(Math.max(0, Math.trunc(t)), i - 1), o = a * r;
|
|
571
571
|
return {
|
|
572
572
|
page: a,
|
|
573
573
|
pageSize: r,
|
|
@@ -576,7 +576,7 @@ function Me(e, t, n) {
|
|
|
576
576
|
end: Math.min(o + r, e)
|
|
577
577
|
};
|
|
578
578
|
}
|
|
579
|
-
var
|
|
579
|
+
var je = class {
|
|
580
580
|
descriptor;
|
|
581
581
|
draft;
|
|
582
582
|
mode = "none";
|
|
@@ -594,9 +594,9 @@ var Ne = class {
|
|
|
594
594
|
feedbackText = "";
|
|
595
595
|
draftDirty = !1;
|
|
596
596
|
confirmClose = !1;
|
|
597
|
-
preview =
|
|
597
|
+
preview = N();
|
|
598
598
|
activeStep = "source";
|
|
599
|
-
authoring =
|
|
599
|
+
authoring = Me();
|
|
600
600
|
previewController;
|
|
601
601
|
previewGeneration = 0;
|
|
602
602
|
autoApplyTimer;
|
|
@@ -610,13 +610,13 @@ var Ne = class {
|
|
|
610
610
|
panel;
|
|
611
611
|
feedback;
|
|
612
612
|
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 =
|
|
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();
|
|
614
614
|
}
|
|
615
615
|
clearAutoApply() {
|
|
616
616
|
this.autoApplyTimer !== void 0 && (clearTimeout(this.autoApplyTimer), this.autoApplyTimer = void 0);
|
|
617
617
|
}
|
|
618
618
|
};
|
|
619
|
-
function
|
|
619
|
+
function Me(e) {
|
|
620
620
|
let t = {
|
|
621
621
|
editorMode: "visual",
|
|
622
622
|
filterConfigured: !1,
|
|
@@ -639,7 +639,7 @@ function Pe(e) {
|
|
|
639
639
|
refreshStrategy: e.mode
|
|
640
640
|
};
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function N(e = !1) {
|
|
643
643
|
return {
|
|
644
644
|
status: "idle",
|
|
645
645
|
tab: "response",
|
|
@@ -647,12 +647,12 @@ function j(e = !1) {
|
|
|
647
647
|
open: e
|
|
648
648
|
};
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function P(e, t) {
|
|
651
651
|
return e === void 0 || t === void 0 ? 0 : e.parameters.filter((e) => e.required && t.params[e.name] === void 0).length;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function Ne(e, t) {
|
|
654
654
|
if (t === null || t.kind !== "data-source-field") return;
|
|
655
|
-
let n = t.dataSourceId, r = s(e ??
|
|
655
|
+
let n = t.dataSourceId, r = s(e ?? Fe()).find((e) => e.id === n);
|
|
656
656
|
return r === void 0 ? {
|
|
657
657
|
id: n,
|
|
658
658
|
name: n,
|
|
@@ -669,7 +669,7 @@ function Ie(e, t) {
|
|
|
669
669
|
status: "document"
|
|
670
670
|
};
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function Pe(e, t) {
|
|
673
673
|
return (e?.dataSources ?? []).filter((e) => e.source.kind === "dataset" && e.source.datasetId === t).map((e) => ({
|
|
674
674
|
id: e.id,
|
|
675
675
|
name: e.name,
|
|
@@ -679,7 +679,7 @@ function Le(e, t) {
|
|
|
679
679
|
status: "document"
|
|
680
680
|
}));
|
|
681
681
|
}
|
|
682
|
-
function
|
|
682
|
+
function Fe() {
|
|
683
683
|
return {
|
|
684
684
|
canvas: {
|
|
685
685
|
width: 0,
|
|
@@ -694,7 +694,7 @@ function Re() {
|
|
|
694
694
|
}
|
|
695
695
|
};
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function Ie(e) {
|
|
698
698
|
if (e.state === "failed") return {
|
|
699
699
|
tone: "danger",
|
|
700
700
|
text: d.data.notice.failed,
|
|
@@ -716,16 +716,16 @@ function ze(e) {
|
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function Le(e, t) {
|
|
720
720
|
let n = e.createElement("div");
|
|
721
|
-
return n.className = "designer-data-panel-notice", n.dataset.dataPanelNotice = "true",
|
|
721
|
+
return n.className = "designer-data-panel-notice", n.dataset.dataPanelNotice = "true", ze(e, n, t), n;
|
|
722
722
|
}
|
|
723
|
-
function
|
|
724
|
-
for (let n of e.querySelectorAll("[data-data-panel-notice]"))
|
|
723
|
+
function Re(e, t) {
|
|
724
|
+
for (let n of e.querySelectorAll("[data-data-panel-notice]")) ze(n.ownerDocument, n, t);
|
|
725
725
|
}
|
|
726
|
-
function
|
|
726
|
+
function ze(e, t, n) {
|
|
727
727
|
t.replaceChildren();
|
|
728
|
-
let r =
|
|
728
|
+
let r = Ie(n);
|
|
729
729
|
if (r === void 0) {
|
|
730
730
|
delete t.dataset.state;
|
|
731
731
|
return;
|
|
@@ -746,10 +746,10 @@ function He(e, t, n) {
|
|
|
746
746
|
}
|
|
747
747
|
t.appendChild(i);
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function Be(e, t) {
|
|
750
750
|
return e === "inline" ? t.tab.inline : e === "variable" ? t.tab.variable : t.tab.field;
|
|
751
751
|
}
|
|
752
|
-
function
|
|
752
|
+
function Ve(e, t, n) {
|
|
753
753
|
if (e === null) return {
|
|
754
754
|
badge: "",
|
|
755
755
|
label: n.placeholder
|
|
@@ -762,7 +762,7 @@ function We(e, t, n) {
|
|
|
762
762
|
};
|
|
763
763
|
}
|
|
764
764
|
if (e.kind === "data-source-field") {
|
|
765
|
-
let r = t.fields?.find((t) => t.dataSourceId === e.dataSourceId &&
|
|
765
|
+
let r = t.fields?.find((t) => t.dataSourceId === e.dataSourceId && We(t.path, e.path));
|
|
766
766
|
return {
|
|
767
767
|
badge: n.tab.field,
|
|
768
768
|
label: r?.label ?? e.dataSourceId
|
|
@@ -771,10 +771,10 @@ function We(e, t, n) {
|
|
|
771
771
|
let r = t.inlineViews?.find((t) => t.value === e.value);
|
|
772
772
|
return {
|
|
773
773
|
badge: n.tab.inline,
|
|
774
|
-
label: r?.label ??
|
|
774
|
+
label: r?.label ?? Ge(e.value)
|
|
775
775
|
};
|
|
776
776
|
}
|
|
777
|
-
function
|
|
777
|
+
function He(e, t) {
|
|
778
778
|
let n = [];
|
|
779
779
|
if (e.allowedKinds.includes("inline")) {
|
|
780
780
|
let r = e.inlineViews ?? [];
|
|
@@ -783,7 +783,7 @@ function Ge(e, t) {
|
|
|
783
783
|
n.push({
|
|
784
784
|
id: "inline:current",
|
|
785
785
|
kind: "inline",
|
|
786
|
-
label:
|
|
786
|
+
label: Ge(i),
|
|
787
787
|
badge: t.tab.inline,
|
|
788
788
|
value: {
|
|
789
789
|
kind: "inline",
|
|
@@ -828,19 +828,19 @@ function Ge(e, t) {
|
|
|
828
828
|
}
|
|
829
829
|
return n;
|
|
830
830
|
}
|
|
831
|
-
function
|
|
831
|
+
function Ue(e, t) {
|
|
832
832
|
let n = t.trim().toLowerCase();
|
|
833
833
|
return n.length === 0 ? e : e.filter((e) => e.label.toLowerCase().includes(n) || e.badge.toLowerCase().includes(n));
|
|
834
834
|
}
|
|
835
|
-
function
|
|
835
|
+
function We(e, t) {
|
|
836
836
|
return e.length === t.length && e.every((e, n) => e === t[n]);
|
|
837
837
|
}
|
|
838
|
-
function
|
|
838
|
+
function Ge(e) {
|
|
839
839
|
return e === null ? "null" : typeof e == "string" ? e.length > 32 ? `${e.slice(0, 32)}…` : e : typeof e == "number" || typeof e == "boolean" ? String(e) : Array.isArray(e) ? `[${e.length}]` : "{…}";
|
|
840
840
|
}
|
|
841
|
-
function
|
|
842
|
-
let i =
|
|
843
|
-
a.className = "designer-value-ref-summary", i.badge.length > 0 &&
|
|
841
|
+
function Ke(e, t, n, r) {
|
|
842
|
+
let i = Ve(t, n, r), a = e.createElement("span");
|
|
843
|
+
a.className = "designer-value-ref-summary", i.badge.length > 0 && k(a, {
|
|
844
844
|
text: i.badge,
|
|
845
845
|
tone: "neutral",
|
|
846
846
|
className: "designer-value-ref-badge",
|
|
@@ -849,7 +849,7 @@ function Ye(e, t, n, r) {
|
|
|
849
849
|
let o = e.createElement("span");
|
|
850
850
|
return o.className = "designer-value-ref-label", o.textContent = i.label, a.appendChild(o), a;
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function qe(e) {
|
|
853
853
|
let t = e.ownerDocument, n = e.text, r = m(t, {
|
|
854
854
|
ariaLabel: e.ariaLabel,
|
|
855
855
|
className: "designer-value-ref-trigger"
|
|
@@ -858,34 +858,35 @@ function Xe(e) {
|
|
|
858
858
|
let i = t.createElement("span");
|
|
859
859
|
i.className = "designer-visually-hidden", i.dataset.valueRefLive = "true", i.setAttribute("aria-live", "polite");
|
|
860
860
|
let a = t.createElement("div");
|
|
861
|
-
a.className = "designer-value-ref-field", a.append(r, i),
|
|
862
|
-
let o, s, c, l = 0, u = [], d = "", f, h;
|
|
863
|
-
function g() {
|
|
864
|
-
return Ke(Ge(e.input, n), d);
|
|
865
|
-
}
|
|
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;
|
|
866
863
|
function v() {
|
|
867
|
-
|
|
864
|
+
return Ue(He(e.input, n), d);
|
|
868
865
|
}
|
|
869
|
-
function y(
|
|
866
|
+
function y() {
|
|
867
|
+
r.replaceChildren(Ke(t, e.input.current, e.input, n));
|
|
868
|
+
}
|
|
869
|
+
function b(n) {
|
|
870
|
+
if (g) return;
|
|
870
871
|
if (o !== void 0) {
|
|
871
|
-
|
|
872
|
+
n && s?.focus();
|
|
872
873
|
return;
|
|
873
874
|
}
|
|
874
|
-
o =
|
|
875
|
-
let
|
|
876
|
-
|
|
877
|
-
let
|
|
875
|
+
o = w();
|
|
876
|
+
let i = o;
|
|
877
|
+
S().appendChild(o), C(), r.setAttribute("aria-expanded", "true"), e.onOpenChange?.(!0, !1);
|
|
878
|
+
let a = (e) => {
|
|
878
879
|
let t = e.composedPath();
|
|
879
|
-
t.includes(
|
|
880
|
-
},
|
|
881
|
-
t.addEventListener("pointerdown",
|
|
882
|
-
t.removeEventListener("pointerdown",
|
|
883
|
-
}, o.addEventListener("keydown",
|
|
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 = () => {
|
|
883
|
+
t.removeEventListener("pointerdown", a, !0), t.defaultView?.removeEventListener("scroll", l, !0), t.defaultView?.removeEventListener("resize", l);
|
|
884
|
+
}, o.addEventListener("keydown", te), n ? s?.focus() : c?.focus();
|
|
884
885
|
}
|
|
885
|
-
function
|
|
886
|
-
o?.remove(), o = void 0, s = void 0, c = void 0, d = "", h?.(), h = void 0, r.setAttribute("aria-expanded", "false"), e && r.focus();
|
|
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();
|
|
887
888
|
}
|
|
888
|
-
function
|
|
889
|
+
function S() {
|
|
889
890
|
if (e.popoverHost !== void 0) return e.popoverHost;
|
|
890
891
|
let n = r.closest(".designer");
|
|
891
892
|
if (n instanceof HTMLElement) {
|
|
@@ -896,12 +897,12 @@ function Xe(e) {
|
|
|
896
897
|
}
|
|
897
898
|
return r.offsetParent instanceof HTMLElement ? r.offsetParent : t.body;
|
|
898
899
|
}
|
|
899
|
-
function
|
|
900
|
+
function C() {
|
|
900
901
|
if (o === void 0) return;
|
|
901
902
|
let t = (e.anchor ?? r).getBoundingClientRect();
|
|
902
903
|
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";
|
|
903
904
|
}
|
|
904
|
-
function
|
|
905
|
+
function w() {
|
|
905
906
|
let r = t.createElement("div");
|
|
906
907
|
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");
|
|
907
908
|
let i = e.input.allowedKinds;
|
|
@@ -912,13 +913,13 @@ function Xe(e) {
|
|
|
912
913
|
items: i.map((e) => ({
|
|
913
914
|
className: "designer-value-ref-tab",
|
|
914
915
|
dataset: { valueRefTab: e },
|
|
915
|
-
label:
|
|
916
|
+
label: T(e),
|
|
916
917
|
value: e
|
|
917
918
|
})),
|
|
918
|
-
selected:
|
|
919
|
+
selected: Je(e.input.current)
|
|
919
920
|
});
|
|
920
921
|
for (let e of a.buttons.values()) e.addEventListener("click", () => {
|
|
921
|
-
d = "", s !== void 0 && (s.value = ""),
|
|
922
|
+
d = "", s !== void 0 && (s.value = ""), E();
|
|
922
923
|
});
|
|
923
924
|
r.appendChild(a.element);
|
|
924
925
|
}
|
|
@@ -930,113 +931,113 @@ function Xe(e) {
|
|
|
930
931
|
}), s.dataset.valueRefSearch = "true", s.addEventListener("input", () => {
|
|
931
932
|
let e = s?.value ?? "";
|
|
932
933
|
f !== void 0 && clearTimeout(f), f = setTimeout(() => {
|
|
933
|
-
d = e,
|
|
934
|
+
d = e, E();
|
|
934
935
|
}, 180);
|
|
935
936
|
}), r.appendChild(s), c = t.createElement("div"), c.className = "designer-value-ref-list", c.setAttribute("role", "listbox"), c.tabIndex = -1, r.appendChild(c);
|
|
936
937
|
let a = t.createElement("div");
|
|
937
938
|
a.className = "designer-value-ref-footer";
|
|
938
939
|
let o = m(t, { text: n.manage });
|
|
939
940
|
return o.dataset.valueRefManage = "true", o.addEventListener("click", () => {
|
|
940
|
-
e.onManage?.(),
|
|
941
|
-
}), a.appendChild(o), r.appendChild(a),
|
|
941
|
+
e.onManage?.(), x(!0);
|
|
942
|
+
}), a.appendChild(o), r.appendChild(a), E(), r;
|
|
942
943
|
}
|
|
943
|
-
function
|
|
944
|
+
function T(e) {
|
|
944
945
|
return e === "inline" ? n.tab.inline : e === "variable" ? n.tab.variable : n.tab.field;
|
|
945
946
|
}
|
|
946
|
-
function
|
|
947
|
+
function E() {
|
|
947
948
|
if (c !== void 0) {
|
|
948
|
-
if (u =
|
|
949
|
+
if (u = v(), l = Math.min(l, Math.max(u.length - 1, 0)), c.replaceChildren(), u.length === 0) {
|
|
949
950
|
let t = d.trim().length > 0, r = t ? [{
|
|
950
951
|
label: n.clearSearch,
|
|
951
952
|
dataset: { valueRefClearSearch: "true" }
|
|
952
953
|
}] : e.allowCreateVariable === !0 ? [{
|
|
953
954
|
label: n.createVariable,
|
|
954
955
|
dataset: { valueRefCreate: "true" }
|
|
955
|
-
}] : [], { element: i, actionButtons: a } =
|
|
956
|
+
}] : [], { element: i, actionButtons: a } = D(c, {
|
|
956
957
|
title: t ? n.emptySearch : n.emptyVariables,
|
|
957
958
|
actions: r
|
|
958
959
|
});
|
|
959
960
|
i.dataset.valueRefEmpty = t ? "search" : "items";
|
|
960
961
|
let o = a[0];
|
|
961
962
|
o !== void 0 && (o.title = t ? n.emptySearch : n.emptyVariables, o.addEventListener("click", () => {
|
|
962
|
-
t ? (d = "", s !== void 0 && (s.value = ""),
|
|
963
|
+
t ? (d = "", s !== void 0 && (s.value = ""), E(), s?.focus()) : (e.onCreateVariable?.(), x(!0));
|
|
963
964
|
})), c.removeAttribute("aria-activedescendant");
|
|
964
965
|
return;
|
|
965
966
|
}
|
|
966
967
|
u.forEach((r, i) => {
|
|
967
968
|
let a = t.createElement("button");
|
|
968
|
-
a.type = "button", a.className = "designer-value-ref-option", a.id =
|
|
969
|
-
}), c.setAttribute("aria-activedescendant",
|
|
969
|
+
a.type = "button", a.className = "designer-value-ref-option", a.id = Ye(r.id), a.dataset.valueRefOption = r.id, a.setAttribute("role", "option"), a.setAttribute("aria-selected", String(O(r))), a.appendChild(Ke(t, r.value, e.input, n)), a.addEventListener("click", () => k(r)), i === l && (a.dataset.active = "true"), c.appendChild(a);
|
|
970
|
+
}), c.setAttribute("aria-activedescendant", Ye(u[l].id));
|
|
970
971
|
}
|
|
971
972
|
}
|
|
972
|
-
function
|
|
973
|
+
function O(t) {
|
|
973
974
|
let n = e.input.current;
|
|
974
975
|
return n === null || n.kind !== t.value.kind ? !1 : n.kind === "variable" && t.value.kind === "variable" ? n.variableId === t.value.variableId : n.kind === "data-source-field" && t.value.kind === "data-source-field" ? n.dataSourceId === t.value.dataSourceId && n.path.join(".") === t.value.path.join(".") : n.kind === "inline" && t.value.kind === "inline" && n.value === t.value.value;
|
|
975
976
|
}
|
|
976
|
-
function
|
|
977
|
-
let r =
|
|
978
|
-
|
|
977
|
+
function k(t) {
|
|
978
|
+
let r = ee(t);
|
|
979
|
+
x(!0), i.textContent = n.selected(r), e.onSelect(t.value);
|
|
979
980
|
}
|
|
980
|
-
function
|
|
981
|
-
return `${
|
|
981
|
+
function ee(e) {
|
|
982
|
+
return `${Be(e.kind, n)} ${e.label}`;
|
|
982
983
|
}
|
|
983
|
-
function
|
|
984
|
+
function A(e) {
|
|
984
985
|
if (u.length !== 0) {
|
|
985
986
|
l = (l + e + u.length) % u.length;
|
|
986
987
|
for (let [e, t] of [...c?.children ?? []].entries()) t instanceof HTMLElement && t.dataset.valueRefOption !== void 0 && (t.dataset.active = String(e === l));
|
|
987
|
-
c !== void 0 && c.setAttribute("aria-activedescendant",
|
|
988
|
+
c !== void 0 && c.setAttribute("aria-activedescendant", Ye(u[l].id));
|
|
988
989
|
}
|
|
989
990
|
}
|
|
990
|
-
function
|
|
991
|
+
function te(e) {
|
|
991
992
|
switch (e.key) {
|
|
992
993
|
case "ArrowDown":
|
|
993
|
-
e.preventDefault(),
|
|
994
|
+
e.preventDefault(), A(1);
|
|
994
995
|
return;
|
|
995
996
|
case "ArrowUp":
|
|
996
|
-
e.preventDefault(),
|
|
997
|
+
e.preventDefault(), A(-1);
|
|
997
998
|
return;
|
|
998
999
|
case "Home":
|
|
999
|
-
e.preventDefault(), l = 0,
|
|
1000
|
+
e.preventDefault(), l = 0, A(0);
|
|
1000
1001
|
return;
|
|
1001
1002
|
case "End":
|
|
1002
|
-
e.preventDefault(), l = u.length - 1,
|
|
1003
|
+
e.preventDefault(), l = u.length - 1, A(0);
|
|
1003
1004
|
return;
|
|
1004
1005
|
case "Enter": {
|
|
1005
1006
|
let t = u[l];
|
|
1006
1007
|
if (t === void 0) return;
|
|
1007
|
-
e.preventDefault(),
|
|
1008
|
+
e.preventDefault(), k(t);
|
|
1008
1009
|
return;
|
|
1009
1010
|
}
|
|
1010
1011
|
case "Escape":
|
|
1011
|
-
e.preventDefault(),
|
|
1012
|
+
e.preventDefault(), x(!0);
|
|
1012
1013
|
return;
|
|
1013
1014
|
case "Tab":
|
|
1014
|
-
|
|
1015
|
+
x(!1);
|
|
1015
1016
|
return;
|
|
1016
1017
|
default: return;
|
|
1017
1018
|
}
|
|
1018
1019
|
}
|
|
1019
1020
|
return r.addEventListener("click", () => {
|
|
1020
|
-
o === void 0 ?
|
|
1021
|
+
o === void 0 ? b(!0) : x(!0);
|
|
1021
1022
|
}), r.addEventListener("keydown", (e) => {
|
|
1022
|
-
(e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
1023
|
+
(e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), b(!0));
|
|
1023
1024
|
}), {
|
|
1024
1025
|
element: a,
|
|
1025
1026
|
dispose: () => {
|
|
1026
|
-
|
|
1027
|
+
g || (o !== void 0 && x(!1), g = !0, f !== void 0 && clearTimeout(f), h?.(), r.replaceChildren(), a.replaceChildren());
|
|
1027
1028
|
}
|
|
1028
1029
|
};
|
|
1029
1030
|
}
|
|
1030
|
-
function
|
|
1031
|
+
function Je(e) {
|
|
1031
1032
|
return e?.kind;
|
|
1032
1033
|
}
|
|
1033
|
-
function
|
|
1034
|
+
function Ye(e) {
|
|
1034
1035
|
return `designer-value-ref-option-${e.replace(/[^A-Za-z0-9_-]/g, "-")}`;
|
|
1035
1036
|
}
|
|
1036
|
-
function
|
|
1037
|
-
return
|
|
1037
|
+
function Xe(e) {
|
|
1038
|
+
return qe(e);
|
|
1038
1039
|
}
|
|
1039
|
-
function
|
|
1040
|
+
function Ze(e, t, n = []) {
|
|
1040
1041
|
return {
|
|
1041
1042
|
allowedKinds: ["variable"],
|
|
1042
1043
|
current: e,
|
|
@@ -1044,16 +1045,16 @@ function et(e, t, n = []) {
|
|
|
1044
1045
|
excludedDataSourceIds: n
|
|
1045
1046
|
};
|
|
1046
1047
|
}
|
|
1047
|
-
function
|
|
1048
|
+
function Qe(e, t) {
|
|
1048
1049
|
return `${e}:${t}`;
|
|
1049
1050
|
}
|
|
1050
|
-
function
|
|
1051
|
-
return e.get(
|
|
1051
|
+
function $e(e, t, n, r) {
|
|
1052
|
+
return e.get(Qe(t, n)) ?? r;
|
|
1052
1053
|
}
|
|
1053
|
-
function
|
|
1054
|
+
function F(e, t) {
|
|
1054
1055
|
let n = e.ownerDocument, r = n.createElement("details");
|
|
1055
1056
|
r.className = "designer-data-group", r.dataset.detailsGroup = e.group, r.dataset.dsGroupSection = e.section, e.readonlyHint === !0 && (r.dataset.readonlyHint = "true");
|
|
1056
|
-
let i =
|
|
1057
|
+
let i = $e(e.overrides, e.section, e.group, e.defaultOpen);
|
|
1057
1058
|
r.open = i;
|
|
1058
1059
|
let a = i;
|
|
1059
1060
|
r.addEventListener("toggle", () => {
|
|
@@ -1073,7 +1074,7 @@ function M(e, t) {
|
|
|
1073
1074
|
let u = n.createElement("div");
|
|
1074
1075
|
return u.className = "designer-data-group-content", u.append(...t), r.append(o, u), r;
|
|
1075
1076
|
}
|
|
1076
|
-
function
|
|
1077
|
+
function et(e, t, n) {
|
|
1077
1078
|
if (n.length === 0) return !0;
|
|
1078
1079
|
for (let r of n) {
|
|
1079
1080
|
let n = t?.fields[r.id] ?? [];
|
|
@@ -1084,7 +1085,7 @@ function rt(e, t, n) {
|
|
|
1084
1085
|
}
|
|
1085
1086
|
return !0;
|
|
1086
1087
|
}
|
|
1087
|
-
function
|
|
1088
|
+
function tt(e) {
|
|
1088
1089
|
let t = e.panel.ownerDocument, n = t.createElement("section");
|
|
1089
1090
|
n.className = "designer-host-connection", n.dataset.dsSection = "host-link", n.dataset.inspectorSearchSection = "true", n.dataset.inspectorSearchText = [
|
|
1090
1091
|
d.dataSource.hostConnection,
|
|
@@ -1093,28 +1094,28 @@ function it(e) {
|
|
|
1093
1094
|
d.dataSource.variablesChannel
|
|
1094
1095
|
].join(" ");
|
|
1095
1096
|
let r = t.createElement("div");
|
|
1096
|
-
r.className = "designer-host-connection-statuses", r.append(...
|
|
1097
|
+
r.className = "designer-host-connection-statuses", r.append(...at(t, e.link));
|
|
1097
1098
|
let i = e.surface === "workbench" ? [r] : [];
|
|
1098
|
-
if (n.appendChild(
|
|
1099
|
+
if (n.appendChild(F({
|
|
1099
1100
|
ownerDocument: t,
|
|
1100
1101
|
section: "host-link",
|
|
1101
1102
|
group: "host-link",
|
|
1102
1103
|
title: d.data.groups.hostLink,
|
|
1103
|
-
summary:
|
|
1104
|
-
defaultOpen:
|
|
1104
|
+
summary: nt(e),
|
|
1105
|
+
defaultOpen: rt(e.link) || it(e.link),
|
|
1105
1106
|
overrides: e.groupOpenOverrides,
|
|
1106
1107
|
onToggle: e.onToggleGroup
|
|
1107
|
-
}, i)),
|
|
1108
|
+
}, i)), rt(e.link)) {
|
|
1108
1109
|
let e = t.createElement("p");
|
|
1109
1110
|
e.className = "designer-host-connection-hint", e.textContent = d.dataSource.linkUnavailableHint, n.appendChild(e);
|
|
1110
1111
|
}
|
|
1111
|
-
if (
|
|
1112
|
+
if (it(e.link)) {
|
|
1112
1113
|
let e = m(t, { text: d.dataSource.linkRetry });
|
|
1113
1114
|
e.dataset.datasetAction = "retry-link", n.appendChild(e);
|
|
1114
1115
|
}
|
|
1115
1116
|
return n;
|
|
1116
1117
|
}
|
|
1117
|
-
function
|
|
1118
|
+
function nt(e) {
|
|
1118
1119
|
let t = [
|
|
1119
1120
|
e.link.catalog,
|
|
1120
1121
|
e.link.query,
|
|
@@ -1122,28 +1123,28 @@ function at(e) {
|
|
|
1122
1123
|
], n = t.filter((e) => e.status === "ready").length;
|
|
1123
1124
|
return d.data.groups.channelsReady(n, t.length);
|
|
1124
1125
|
}
|
|
1125
|
-
function
|
|
1126
|
+
function rt(e) {
|
|
1126
1127
|
return [
|
|
1127
1128
|
e.catalog,
|
|
1128
1129
|
e.query,
|
|
1129
1130
|
e.variables
|
|
1130
1131
|
].every((e) => e.status === "unavailable");
|
|
1131
1132
|
}
|
|
1132
|
-
function
|
|
1133
|
+
function it(e) {
|
|
1133
1134
|
return [
|
|
1134
1135
|
e.catalog,
|
|
1135
1136
|
e.query,
|
|
1136
1137
|
e.variables
|
|
1137
1138
|
].some((e) => e.status === "error");
|
|
1138
1139
|
}
|
|
1139
|
-
function
|
|
1140
|
+
function at(e, t) {
|
|
1140
1141
|
return [
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1142
|
+
st(e, d.dataSource.datasetCatalog, t.catalog),
|
|
1143
|
+
st(e, d.dataSource.dataQuery, t.query),
|
|
1144
|
+
st(e, d.dataSource.variablesChannel, t.variables)
|
|
1144
1145
|
];
|
|
1145
1146
|
}
|
|
1146
|
-
function
|
|
1147
|
+
function ot(e, t) {
|
|
1147
1148
|
let n = e.createElement("div");
|
|
1148
1149
|
n.className = "designer-dataset-health", n.dataset.datasetHealth = "true", n.setAttribute("aria-label", d.dataSource.hostConnection);
|
|
1149
1150
|
for (let [r, i] of [
|
|
@@ -1153,25 +1154,25 @@ function lt(e, t) {
|
|
|
1153
1154
|
]) {
|
|
1154
1155
|
let t = e.createElement("span");
|
|
1155
1156
|
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";
|
|
1156
|
-
let a = i.detail === void 0 || i.detail === "" ? "" : ` · ${i.detail}`, o = `${r} · ${
|
|
1157
|
+
let a = i.detail === void 0 || i.detail === "" ? "" : ` · ${i.detail}`, o = `${r} · ${ct(i.status)}${a}`;
|
|
1157
1158
|
t.title = o, t.setAttribute("aria-label", o);
|
|
1158
1159
|
let s = e.createElement("i");
|
|
1159
1160
|
s.setAttribute("aria-hidden", "true"), t.append(s, r), n.appendChild(t);
|
|
1160
1161
|
}
|
|
1161
1162
|
return n;
|
|
1162
1163
|
}
|
|
1163
|
-
function
|
|
1164
|
+
function st(e, t, n) {
|
|
1164
1165
|
let r = e.createElement("span");
|
|
1165
1166
|
r.className = "designer-host-connection-status", r.dataset.connected = String(n.status === "ready"), r.dataset.linkStatus = n.status;
|
|
1166
1167
|
let i = e.createElement("i");
|
|
1167
1168
|
i.setAttribute("aria-hidden", "true");
|
|
1168
1169
|
let a = e.createElement("span"), o = n.detail === void 0 || n.detail === "" ? "" : ` · ${n.detail}`;
|
|
1169
|
-
return a.textContent = `${t} · ${
|
|
1170
|
+
return a.textContent = `${t} · ${ct(n.status)}${o}`, r.dataset.tip = a.textContent, r.append(i, a), r;
|
|
1170
1171
|
}
|
|
1171
|
-
function
|
|
1172
|
+
function ct(e) {
|
|
1172
1173
|
return e === "ready" ? d.dataSource.linkReady : e === "loading" ? d.dataSource.linkLoading : e === "error" ? d.dataSource.linkError : d.dataSource.linkUnavailable;
|
|
1173
1174
|
}
|
|
1174
|
-
function
|
|
1175
|
+
function lt(e) {
|
|
1175
1176
|
let t = e.panel.ownerDocument, n = t.createElement("section");
|
|
1176
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;
|
|
1177
1178
|
let r = t.createElement("p");
|
|
@@ -1179,7 +1180,7 @@ function ft(e) {
|
|
|
1179
1180
|
let i = m(t, { text: d.dataSource.sourceChange });
|
|
1180
1181
|
return i.dataset.datasetChange = "true", n.append(r, i), n;
|
|
1181
1182
|
}
|
|
1182
|
-
function
|
|
1183
|
+
function ut(e) {
|
|
1183
1184
|
let t = e.panel.ownerDocument.createElement("section");
|
|
1184
1185
|
t.className = "designer-dataset-browser", t.dataset.dsSection = "source", t.dataset.inspectorSearchSection = "true", t.dataset.inspectorSearchText = [
|
|
1185
1186
|
d.dataset.select,
|
|
@@ -1195,12 +1196,12 @@ function pt(e) {
|
|
|
1195
1196
|
value: e.query
|
|
1196
1197
|
});
|
|
1197
1198
|
r.dataset.datasetQuery = "true", t.append(n);
|
|
1198
|
-
let i =
|
|
1199
|
-
return i !== void 0 && t.appendChild(i), t.append(r,
|
|
1199
|
+
let i = dt(e);
|
|
1200
|
+
return i !== void 0 && t.appendChild(i), t.append(r, ft(e)), t;
|
|
1200
1201
|
}
|
|
1201
|
-
function
|
|
1202
|
+
function dt(e) {
|
|
1202
1203
|
if (e.groups === void 0 || e.groups.length === 0) return;
|
|
1203
|
-
let t = e.panel.ownerDocument, n = e.groupId ?? "", r =
|
|
1204
|
+
let t = e.panel.ownerDocument, n = e.groupId ?? "", r = S(t, {
|
|
1204
1205
|
ariaLabel: d.dataset.group,
|
|
1205
1206
|
className: "designer-source-sheet-group",
|
|
1206
1207
|
options: [{
|
|
@@ -1214,14 +1215,14 @@ function mt(e) {
|
|
|
1214
1215
|
}))],
|
|
1215
1216
|
value: n
|
|
1216
1217
|
});
|
|
1217
|
-
return r.dataset.datasetGroup = "true",
|
|
1218
|
+
return r.dataset.datasetGroup = "true", C(r).element;
|
|
1218
1219
|
}
|
|
1219
|
-
function
|
|
1220
|
+
function ft(e) {
|
|
1220
1221
|
let t = e.panel.ownerDocument, n = t.createElement("div");
|
|
1221
1222
|
n.className = "designer-dataset-list", n.dataset.datasetResults = "true";
|
|
1222
|
-
let r =
|
|
1223
|
-
if (r === void 0) for (let r of e.items) n.appendChild(
|
|
1224
|
-
else for (let e of
|
|
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)) {
|
|
1225
1226
|
let r = t.createElement("p");
|
|
1226
1227
|
r.className = "designer-empty-state", r.textContent = e, n.appendChild(r);
|
|
1227
1228
|
}
|
|
@@ -1231,13 +1232,13 @@ function ht(e) {
|
|
|
1231
1232
|
}
|
|
1232
1233
|
return n;
|
|
1233
1234
|
}
|
|
1234
|
-
function
|
|
1235
|
+
function pt(e) {
|
|
1235
1236
|
if (!(e.items.length > 0)) return e.catalogAvailable ? e.query.trim() === "" ? "empty" : "no-match" : "unavailable";
|
|
1236
1237
|
}
|
|
1237
|
-
function
|
|
1238
|
+
function mt(e) {
|
|
1238
1239
|
return e === "unavailable" ? [d.dataset.unavailable, d.dataset.unavailableHint] : [e === "no-match" ? d.dataset.noMatch : d.dataset.empty];
|
|
1239
1240
|
}
|
|
1240
|
-
function
|
|
1241
|
+
function ht(e, t, n) {
|
|
1241
1242
|
let r = n?.datasetId === t.datasetId, i = m(e, {
|
|
1242
1243
|
ariaLabel: t.description === null ? t.name : t.name + ":" + t.description,
|
|
1243
1244
|
className: "designer-dataset-item",
|
|
@@ -1263,8 +1264,8 @@ function vt(e, t, n) {
|
|
|
1263
1264
|
let u = e.createElement("span");
|
|
1264
1265
|
return u.className = "designer-dataset-item-action", u.textContent = r ? "" : d.dataset.use, i.append(a, o, u), i;
|
|
1265
1266
|
}
|
|
1266
|
-
var
|
|
1267
|
-
function
|
|
1267
|
+
var gt = 42, _t = 16;
|
|
1268
|
+
function vt(e, t) {
|
|
1268
1269
|
let n = e.ownerDocument, r = n.createElement("span");
|
|
1269
1270
|
r.className = "designer-date-field";
|
|
1270
1271
|
let i = n.createElement("span");
|
|
@@ -1279,7 +1280,7 @@ function xt(e, t) {
|
|
|
1279
1280
|
c.className = "designer-calendar-title";
|
|
1280
1281
|
let l = n.createElement("header");
|
|
1281
1282
|
l.className = "designer-calendar-head";
|
|
1282
|
-
let u =
|
|
1283
|
+
let u = yt(n, "chevron-left", d.calendar.previousMonth), f = yt(n, "chevron-right", d.calendar.nextMonth);
|
|
1283
1284
|
l.append(u, c, f);
|
|
1284
1285
|
let p = n.createElement("div");
|
|
1285
1286
|
p.className = "designer-calendar-weekdays", p.setAttribute("aria-hidden", "true");
|
|
@@ -1295,84 +1296,84 @@ function xt(e, t) {
|
|
|
1295
1296
|
g.type = "button", g.className = "designer-calendar-action", g.textContent = d.calendar.today;
|
|
1296
1297
|
let _ = n.createElement("span");
|
|
1297
1298
|
_.className = "designer-calendar-foot-value", h.append(g, _), o.append(l, p, m, h);
|
|
1298
|
-
let v =
|
|
1299
|
+
let v = I(e.value), y = {
|
|
1299
1300
|
year: (v ?? /* @__PURE__ */ new Date()).getFullYear(),
|
|
1300
1301
|
month: (v ?? /* @__PURE__ */ new Date()).getMonth()
|
|
1301
|
-
}, ee = () => {
|
|
1302
|
-
_.textContent = v === void 0 ? d.calendar.unset : P(v);
|
|
1303
1302
|
}, x = () => {
|
|
1304
|
-
|
|
1303
|
+
_.textContent = v === void 0 ? d.calendar.unset : L(v);
|
|
1304
|
+
}, S = () => {
|
|
1305
|
+
let e = v === void 0 ? "" : L(v), t = bt();
|
|
1305
1306
|
for (let n of m.querySelectorAll("[data-calendar-day]")) {
|
|
1306
1307
|
let r = n.dataset.calendarDay ?? "";
|
|
1307
|
-
n.dataset.selected = String(r === e), n.dataset.today = String(r ===
|
|
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;
|
|
1308
1309
|
}
|
|
1309
|
-
|
|
1310
|
-
},
|
|
1310
|
+
x();
|
|
1311
|
+
}, C = () => {
|
|
1311
1312
|
c.textContent = d.calendar.monthTitle(y.year, y.month + 1);
|
|
1312
1313
|
let e = (new Date(y.year, y.month, 1).getDay() + 6) % 7, t = new Date(y.year, y.month, 1 - e);
|
|
1313
1314
|
m.replaceChildren();
|
|
1314
|
-
for (let e = 0; e <
|
|
1315
|
+
for (let e = 0; e < gt; e++) {
|
|
1315
1316
|
let r = new Date(t.getFullYear(), t.getMonth(), t.getDate() + e), i = n.createElement("button");
|
|
1316
|
-
i.type = "button", i.className = "designer-calendar-day", i.dataset.calendarDay =
|
|
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);
|
|
1317
1318
|
}
|
|
1318
|
-
|
|
1319
|
-
}, C = (e) => {
|
|
1320
|
-
m.querySelector(`[data-calendar-day="${P(e)}"]`)?.focus({ preventScroll: !0 });
|
|
1319
|
+
S();
|
|
1321
1320
|
}, w = (e) => {
|
|
1321
|
+
m.querySelector(`[data-calendar-day="${L(e)}"]`)?.focus({ preventScroll: !0 });
|
|
1322
|
+
}, T = (e) => {
|
|
1322
1323
|
if (v = e, e.getFullYear() !== y.year || e.getMonth() !== y.month) {
|
|
1323
1324
|
y = {
|
|
1324
1325
|
year: e.getFullYear(),
|
|
1325
1326
|
month: e.getMonth()
|
|
1326
|
-
},
|
|
1327
|
+
}, C();
|
|
1327
1328
|
return;
|
|
1328
1329
|
}
|
|
1329
|
-
|
|
1330
|
-
},
|
|
1331
|
-
e.value = v === void 0 ? "" :
|
|
1330
|
+
S();
|
|
1331
|
+
}, E = () => {
|
|
1332
|
+
e.value = v === void 0 ? "" : L(v), e.dispatchEvent(new Event("change", {
|
|
1332
1333
|
bubbles: !0,
|
|
1333
1334
|
composed: !0
|
|
1334
1335
|
}));
|
|
1335
|
-
},
|
|
1336
|
-
let t =
|
|
1336
|
+
}, D = () => {
|
|
1337
|
+
let t = I(e.value);
|
|
1337
1338
|
t !== void 0 && (v = t);
|
|
1338
1339
|
let i = v ?? /* @__PURE__ */ new Date();
|
|
1339
1340
|
y = {
|
|
1340
1341
|
year: i.getFullYear(),
|
|
1341
1342
|
month: i.getMonth()
|
|
1342
|
-
}, o.hidden = !1, a.setAttribute("aria-expanded", "true"), r.dataset.open = "true",
|
|
1343
|
+
}, o.hidden = !1, a.setAttribute("aria-expanded", "true"), r.dataset.open = "true", C();
|
|
1343
1344
|
let s = a.getBoundingClientRect(), c = n.defaultView;
|
|
1344
|
-
c !== null && (o.dataset.side = c.innerHeight - s.bottom < o.offsetHeight +
|
|
1345
|
-
},
|
|
1345
|
+
c !== null && (o.dataset.side = c.innerHeight - s.bottom < o.offsetHeight + _t && s.top > o.offsetHeight + _t ? "top" : "bottom"), w(i);
|
|
1346
|
+
}, O = (e) => {
|
|
1346
1347
|
o.hidden = !0, a.setAttribute("aria-expanded", "false"), r.dataset.open = "false", e && a.focus({ preventScroll: !0 });
|
|
1347
1348
|
};
|
|
1348
1349
|
a.addEventListener("click", () => {
|
|
1349
|
-
o.hidden ?
|
|
1350
|
+
o.hidden ? D() : O(!0);
|
|
1350
1351
|
}), a.addEventListener("keydown", (e) => {
|
|
1351
|
-
e.key === "ArrowDown" && o.hidden && (e.preventDefault(),
|
|
1352
|
+
e.key === "ArrowDown" && o.hidden && (e.preventDefault(), D());
|
|
1352
1353
|
}), u.addEventListener("click", () => {
|
|
1353
1354
|
let e = new Date(y.year, y.month - 1, 1);
|
|
1354
1355
|
y = {
|
|
1355
1356
|
year: e.getFullYear(),
|
|
1356
1357
|
month: e.getMonth()
|
|
1357
|
-
},
|
|
1358
|
+
}, C();
|
|
1358
1359
|
}), f.addEventListener("click", () => {
|
|
1359
1360
|
let e = new Date(y.year, y.month + 1, 1);
|
|
1360
1361
|
y = {
|
|
1361
1362
|
year: e.getFullYear(),
|
|
1362
1363
|
month: e.getMonth()
|
|
1363
|
-
},
|
|
1364
|
+
}, C();
|
|
1364
1365
|
}), g.addEventListener("click", () => {
|
|
1365
|
-
let e =
|
|
1366
|
-
|
|
1366
|
+
let e = bt();
|
|
1367
|
+
T(e), E(), w(e);
|
|
1367
1368
|
}), m.addEventListener("click", (e) => {
|
|
1368
1369
|
let t = e.target?.closest("[data-calendar-day]");
|
|
1369
1370
|
if (t == null) return;
|
|
1370
|
-
let n =
|
|
1371
|
-
n !== void 0 && (
|
|
1371
|
+
let n = I(t.dataset.calendarDay ?? "");
|
|
1372
|
+
n !== void 0 && (T(n), E(), w(n));
|
|
1372
1373
|
}), m.addEventListener("keydown", (e) => {
|
|
1373
1374
|
let t = e.target?.closest("[data-calendar-day]");
|
|
1374
1375
|
if (t == null) return;
|
|
1375
|
-
let n =
|
|
1376
|
+
let n = I(t.dataset.calendarDay ?? "");
|
|
1376
1377
|
if (n === void 0) return;
|
|
1377
1378
|
let r = e.key === "ArrowLeft" ? -1 : e.key === "ArrowRight" ? 1 : e.key === "ArrowUp" ? -7 : e.key === "ArrowDown" ? 7 : 0;
|
|
1378
1379
|
if (r !== 0) {
|
|
@@ -1381,7 +1382,7 @@ function xt(e, t) {
|
|
|
1381
1382
|
(t.getMonth() !== y.month || t.getFullYear() !== y.year) && (y = {
|
|
1382
1383
|
year: t.getFullYear(),
|
|
1383
1384
|
month: t.getMonth()
|
|
1384
|
-
},
|
|
1385
|
+
}, C()), w(t);
|
|
1385
1386
|
return;
|
|
1386
1387
|
}
|
|
1387
1388
|
if (e.key === "PageUp" || e.key === "PageDown") {
|
|
@@ -1390,93 +1391,93 @@ function xt(e, t) {
|
|
|
1390
1391
|
y = {
|
|
1391
1392
|
year: r.getFullYear(),
|
|
1392
1393
|
month: r.getMonth()
|
|
1393
|
-
},
|
|
1394
|
+
}, C(), w(a);
|
|
1394
1395
|
return;
|
|
1395
1396
|
}
|
|
1396
1397
|
if (e.key === "Home" || e.key === "End") {
|
|
1397
1398
|
e.preventDefault();
|
|
1398
1399
|
let t = new Date(y.year, y.month + 1, 0).getDate();
|
|
1399
|
-
|
|
1400
|
+
w(new Date(y.year, y.month, e.key === "Home" ? 1 : t));
|
|
1400
1401
|
}
|
|
1401
1402
|
}), e.addEventListener("change", () => {
|
|
1402
|
-
let t =
|
|
1403
|
+
let t = I(e.value);
|
|
1403
1404
|
if (t === void 0) {
|
|
1404
|
-
e.value = v === void 0 ? "" :
|
|
1405
|
+
e.value = v === void 0 ? "" : L(v);
|
|
1405
1406
|
return;
|
|
1406
1407
|
}
|
|
1407
1408
|
v = t, y = {
|
|
1408
1409
|
year: t.getFullYear(),
|
|
1409
1410
|
month: t.getMonth()
|
|
1410
|
-
}, o.hidden ||
|
|
1411
|
+
}, o.hidden || C();
|
|
1411
1412
|
}), e.addEventListener("keydown", (e) => {
|
|
1412
|
-
e.key === "ArrowDown" && o.hidden && (e.preventDefault(),
|
|
1413
|
+
e.key === "ArrowDown" && o.hidden && (e.preventDefault(), D());
|
|
1413
1414
|
}), o.addEventListener("keydown", (e) => {
|
|
1414
|
-
e.key === "Escape" && (e.preventDefault(),
|
|
1415
|
+
e.key === "Escape" && (e.preventDefault(), O(!0));
|
|
1415
1416
|
});
|
|
1416
|
-
let
|
|
1417
|
+
let k = (t) => {
|
|
1417
1418
|
if (!r.isConnected) {
|
|
1418
|
-
e.ownerDocument.removeEventListener("pointerdown",
|
|
1419
|
+
e.ownerDocument.removeEventListener("pointerdown", k, !0);
|
|
1419
1420
|
return;
|
|
1420
1421
|
}
|
|
1421
1422
|
if (o.hidden) return;
|
|
1422
1423
|
let n = t.composedPath()[0] ?? t.target;
|
|
1423
|
-
n instanceof Node && r.contains(n) ||
|
|
1424
|
+
n instanceof Node && r.contains(n) || O(!1);
|
|
1424
1425
|
};
|
|
1425
|
-
return e.ownerDocument.addEventListener("pointerdown",
|
|
1426
|
+
return e.ownerDocument.addEventListener("pointerdown", k, !0), C(), {
|
|
1426
1427
|
element: r,
|
|
1427
|
-
open:
|
|
1428
|
-
close: () =>
|
|
1428
|
+
open: D,
|
|
1429
|
+
close: () => O(!1),
|
|
1429
1430
|
dispose: () => {
|
|
1430
|
-
e.ownerDocument.removeEventListener("pointerdown",
|
|
1431
|
+
e.ownerDocument.removeEventListener("pointerdown", k, !0), o.remove();
|
|
1431
1432
|
}
|
|
1432
1433
|
};
|
|
1433
1434
|
}
|
|
1434
|
-
function
|
|
1435
|
+
function yt(e, t, n) {
|
|
1435
1436
|
let r = e.createElement("button");
|
|
1436
1437
|
return r.type = "button", r.className = "designer-calendar-nav", r.setAttribute("aria-label", n), r.innerHTML = b(t), r;
|
|
1437
1438
|
}
|
|
1438
|
-
function
|
|
1439
|
+
function I(e) {
|
|
1439
1440
|
let t = /^(\d{4})[/.-](\d{1,2})[/.-](\d{1,2})$/.exec(e.trim());
|
|
1440
1441
|
if (t === null) return;
|
|
1441
1442
|
let n = Number(t[1]), r = Number(t[2]), i = Number(t[3]), a = new Date(n, r - 1, i);
|
|
1442
1443
|
if (a.getFullYear() === n && a.getMonth() === r - 1 && a.getDate() === i) return a;
|
|
1443
1444
|
}
|
|
1444
|
-
function
|
|
1445
|
+
function L(e) {
|
|
1445
1446
|
let t = (e) => e < 10 ? `0${e}` : String(e);
|
|
1446
1447
|
return `${e.getFullYear()}-${t(e.getMonth() + 1)}-${t(e.getDate())}`;
|
|
1447
1448
|
}
|
|
1448
|
-
function
|
|
1449
|
+
function bt() {
|
|
1449
1450
|
let e = /* @__PURE__ */ new Date();
|
|
1450
1451
|
return e.setHours(0, 0, 0, 0), e;
|
|
1451
1452
|
}
|
|
1452
|
-
function
|
|
1453
|
-
let i = t.parameters.find((e) => e.name === n), a = i.valueType === "boolean" ?
|
|
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, {
|
|
1454
1455
|
ariaLabel: d.dataset.parameterValueLabel(i.label),
|
|
1455
1456
|
appearance: i.valueType === "number" ? "number" : "text",
|
|
1456
1457
|
...i.valueType === "date" ? { placeholder: d.dataset.parameterDatePlaceholder } : {},
|
|
1457
1458
|
...i.minimum === void 0 ? {} : { min: i.minimum },
|
|
1458
1459
|
...i.maximum === void 0 ? {} : { max: i.maximum }
|
|
1459
1460
|
});
|
|
1460
|
-
return a.dataset.valueRefInline = `parameter:${i.name}`, a.dataset.datasetParameter = i.name,
|
|
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;
|
|
1461
1462
|
}
|
|
1462
|
-
function
|
|
1463
|
+
function St(e, t, n) {
|
|
1463
1464
|
let r = e.createElement("section");
|
|
1464
1465
|
r.tabIndex = -1, r.className = "designer-dataset-config-section", r.dataset.inspectorSearchSection = "true", n !== void 0 && (r.dataset.workbenchSection = n);
|
|
1465
1466
|
let i = e.createElement("h4");
|
|
1466
1467
|
return i.className = "designer-inspector-section-title", i.textContent = t, r.appendChild(i), r;
|
|
1467
1468
|
}
|
|
1468
|
-
function
|
|
1469
|
+
function Ct(e, t, n) {
|
|
1469
1470
|
let r = e.createElement("div");
|
|
1470
|
-
return r.className = "designer-dataset-actions", r.append(
|
|
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;
|
|
1471
1472
|
}
|
|
1472
|
-
function
|
|
1473
|
+
function wt(e, t, n, r, i) {
|
|
1473
1474
|
let a = m(e, {
|
|
1474
1475
|
disabled: r,
|
|
1475
1476
|
text: n
|
|
1476
1477
|
});
|
|
1477
1478
|
return a.dataset.datasetAction = t, a.dataset.variant = i, a;
|
|
1478
1479
|
}
|
|
1479
|
-
function
|
|
1480
|
+
function Tt(e, t, n) {
|
|
1480
1481
|
let r = n !== void 0 && n.kind === "inline" ? n.value : t.defaultValue;
|
|
1481
1482
|
if (e instanceof HTMLInputElement && t.valueType === "boolean") {
|
|
1482
1483
|
e.checked = r === !0, e.value = String(e.checked);
|
|
@@ -1484,25 +1485,25 @@ function Ot(e, t, n) {
|
|
|
1484
1485
|
}
|
|
1485
1486
|
e.value = String(r ?? "");
|
|
1486
1487
|
}
|
|
1487
|
-
var
|
|
1488
|
-
function
|
|
1489
|
-
let t =
|
|
1488
|
+
var R = /* @__PURE__ */ new WeakMap();
|
|
1489
|
+
function Et(e) {
|
|
1490
|
+
let t = R.get(e);
|
|
1490
1491
|
if (t !== void 0) {
|
|
1491
1492
|
for (let e of t) e();
|
|
1492
|
-
|
|
1493
|
+
R.delete(e);
|
|
1493
1494
|
}
|
|
1494
1495
|
}
|
|
1495
|
-
function
|
|
1496
|
-
for (let t of e.querySelectorAll("[data-ds-section]"))
|
|
1496
|
+
function Dt(e) {
|
|
1497
|
+
for (let t of e.querySelectorAll("[data-ds-section]")) Et(t);
|
|
1497
1498
|
}
|
|
1498
|
-
function
|
|
1499
|
-
let n =
|
|
1500
|
-
n === void 0 ?
|
|
1499
|
+
function Ot(e, t) {
|
|
1500
|
+
let n = R.get(e);
|
|
1501
|
+
n === void 0 ? R.set(e, [t]) : n.push(t);
|
|
1501
1502
|
}
|
|
1502
|
-
function
|
|
1503
|
+
function kt(e) {
|
|
1503
1504
|
return e.querySelector(".designer-inspector-section-title")?.remove(), e;
|
|
1504
1505
|
}
|
|
1505
|
-
function
|
|
1506
|
+
function At(e) {
|
|
1506
1507
|
let t = e.roles.flatMap((t) => {
|
|
1507
1508
|
let n = e.draft?.fields[t.id] ?? [];
|
|
1508
1509
|
if (n.length === 0) return [];
|
|
@@ -1511,18 +1512,18 @@ function Nt(e) {
|
|
|
1511
1512
|
});
|
|
1512
1513
|
return t.length === 0 ? d.data.groups.mappingEmpty : t.join(" · ");
|
|
1513
1514
|
}
|
|
1514
|
-
var
|
|
1515
|
+
var jt = {
|
|
1515
1516
|
...d.data.ref,
|
|
1516
1517
|
tab: {
|
|
1517
1518
|
...d.data.ref.tab,
|
|
1518
1519
|
inline: d.dataset.literal
|
|
1519
1520
|
}
|
|
1520
1521
|
};
|
|
1521
|
-
function
|
|
1522
|
+
function Mt(e) {
|
|
1522
1523
|
let t = e.panel.ownerDocument, n = t.createElement("div");
|
|
1523
1524
|
n.dataset.datasetDescriptor = "true", n.dataset.dsSection = "source", n.className = "designer-dataset-descriptor";
|
|
1524
|
-
let r = e.groupOpenOverrides ?? /* @__PURE__ */ new Map(), i =
|
|
1525
|
-
return n.append(
|
|
1525
|
+
let r = e.groupOpenOverrides ?? /* @__PURE__ */ new Map(), i = P(e.descriptor, e.draft);
|
|
1526
|
+
return n.append(F({
|
|
1526
1527
|
ownerDocument: t,
|
|
1527
1528
|
section: "source",
|
|
1528
1529
|
group: "source",
|
|
@@ -1531,17 +1532,17 @@ function Ft(e) {
|
|
|
1531
1532
|
defaultOpen: !0,
|
|
1532
1533
|
overrides: r,
|
|
1533
1534
|
onToggle: e.onToggleGroup
|
|
1534
|
-
}, [
|
|
1535
|
+
}, [Pt(t, e)]), F({
|
|
1535
1536
|
ownerDocument: t,
|
|
1536
1537
|
section: "source",
|
|
1537
1538
|
group: "mapping",
|
|
1538
1539
|
title: d.data.groups.mapping,
|
|
1539
|
-
summary:
|
|
1540
|
+
summary: At(e),
|
|
1540
1541
|
defaultOpen: !0,
|
|
1541
1542
|
overrides: r,
|
|
1542
1543
|
onToggle: e.onToggleGroup,
|
|
1543
|
-
action:
|
|
1544
|
-
}, [
|
|
1544
|
+
action: Nt(t, e)
|
|
1545
|
+
}, [kt(Rt(t, e))]), F({
|
|
1545
1546
|
ownerDocument: t,
|
|
1546
1547
|
section: "source",
|
|
1547
1548
|
group: "parameters",
|
|
@@ -1550,9 +1551,9 @@ function Ft(e) {
|
|
|
1550
1551
|
defaultOpen: i > 0,
|
|
1551
1552
|
overrides: r,
|
|
1552
1553
|
onToggle: e.onToggleGroup
|
|
1553
|
-
}, [
|
|
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;
|
|
1554
1555
|
}
|
|
1555
|
-
function
|
|
1556
|
+
function Nt(e, t) {
|
|
1556
1557
|
let n = m(e, {
|
|
1557
1558
|
className: "designer-dataset-auto-match",
|
|
1558
1559
|
disabled: t.roles.length === 0 || t.descriptor.fields.length === 0,
|
|
@@ -1560,7 +1561,7 @@ function It(e, t) {
|
|
|
1560
1561
|
});
|
|
1561
1562
|
return n.dataset.datasetAutoMatch = "true", n;
|
|
1562
1563
|
}
|
|
1563
|
-
function
|
|
1564
|
+
function Pt(e, t) {
|
|
1564
1565
|
let n = t.descriptor, r = e.createElement("section");
|
|
1565
1566
|
r.className = "designer-dataset-summary", r.dataset.workbenchSection = "source", r.dataset.inspectorSearchSection = "true", r.tabIndex = -1;
|
|
1566
1567
|
let i = e.createElement("div");
|
|
@@ -1582,16 +1583,16 @@ function Lt(e, t) {
|
|
|
1582
1583
|
text: d.dataSource.sourceChange,
|
|
1583
1584
|
variant: "ghost"
|
|
1584
1585
|
});
|
|
1585
|
-
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)),
|
|
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;
|
|
1586
1587
|
}
|
|
1587
|
-
function
|
|
1588
|
+
function Ft(e, t, n) {
|
|
1588
1589
|
let r = n.instances ?? [], i = n.selectedInstanceId ?? null;
|
|
1589
1590
|
if (r.length === 0 && i === null) return;
|
|
1590
1591
|
let a = v(e, {
|
|
1591
1592
|
label: d.dataset.instance,
|
|
1592
1593
|
className: "designer-dataset-instance",
|
|
1593
1594
|
controlClassName: "designer-dataset-instance-control"
|
|
1594
|
-
}), o =
|
|
1595
|
+
}), o = S(e, { options: [{
|
|
1595
1596
|
value: "",
|
|
1596
1597
|
label: d.dataset.instanceAuto,
|
|
1597
1598
|
selected: i === null
|
|
@@ -1600,18 +1601,18 @@ function Rt(e, t, n) {
|
|
|
1600
1601
|
label: e.name === e.id ? e.id : `${e.name} · ${e.id}`,
|
|
1601
1602
|
selected: e.id === i
|
|
1602
1603
|
}))] });
|
|
1603
|
-
o.dataset.datasetInstanceSelect = "", a.control.appendChild(
|
|
1604
|
+
o.dataset.datasetInstanceSelect = "", a.control.appendChild(C(o).element);
|
|
1604
1605
|
let s = e.createElement("p");
|
|
1605
1606
|
s.className = "designer-dataset-instance-hint", s.textContent = d.dataset.instanceHint, a.field.appendChild(s), t.appendChild(a.field);
|
|
1606
1607
|
}
|
|
1607
|
-
function
|
|
1608
|
-
let n =
|
|
1608
|
+
function It(e, t) {
|
|
1609
|
+
let n = St(e, d.dataSource.requestTitle, "parameters");
|
|
1609
1610
|
if (t.descriptor.parameters.length === 0) {
|
|
1610
1611
|
let t = e.createElement("p");
|
|
1611
1612
|
t.className = "designer-empty-state", t.textContent = d.dataset.noParameters, n.appendChild(t);
|
|
1612
1613
|
}
|
|
1613
1614
|
for (let r of t.descriptor.parameters) {
|
|
1614
|
-
let i =
|
|
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");
|
|
1615
1616
|
s.className = "designer-dataset-parameter", s.dataset.datasetParameterRow = r.name;
|
|
1616
1617
|
let c = e.createElement("div");
|
|
1617
1618
|
c.className = "designer-dataset-parameter-head";
|
|
@@ -1635,34 +1636,38 @@ function zt(e, t) {
|
|
|
1635
1636
|
className: "designer-dataset-parameter-mode-option",
|
|
1636
1637
|
dataset: { datasetParameterMode: "variable" }
|
|
1637
1638
|
}]
|
|
1638
|
-
}), m = p.get("inline"), h = p.get("variable")
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1639
|
+
}), m = p.get("inline"), h = p.get("variable"), g, _ = null, v, y = (e, t) => {
|
|
1640
|
+
let n = String(e);
|
|
1641
|
+
h.setAttribute("aria-expanded", n), g?.setAttribute("aria-expanded", n), !e && t && (_?.isConnected ? _ : v)?.focus({ preventScroll: !0 });
|
|
1642
|
+
};
|
|
1643
|
+
h.setAttribute("aria-haspopup", "dialog"), h.setAttribute("aria-expanded", "false"), c.append(l, u);
|
|
1644
|
+
let b = e.createElement("div");
|
|
1645
|
+
b.className = "designer-dataset-parameter-control", b.dataset.datasetParameterControl = r.name, b.dataset.mode = a, o !== "" && (b.dataset.invalid = "true");
|
|
1646
|
+
let x = Xe({
|
|
1643
1647
|
ownerDocument: e,
|
|
1644
|
-
text:
|
|
1645
|
-
input:
|
|
1648
|
+
text: jt,
|
|
1649
|
+
input: Ze(i, t.variables),
|
|
1646
1650
|
controlKey: `parameter:${r.name}`,
|
|
1647
1651
|
ariaLabel: d.dataset.parameterVariableLabel(r.label),
|
|
1648
|
-
anchor:
|
|
1652
|
+
anchor: b,
|
|
1649
1653
|
popoverHost: t.overlayHost,
|
|
1654
|
+
onOpenChange: y,
|
|
1650
1655
|
onSelect: (e) => t.onSelectParameter?.(r.name, e)
|
|
1651
1656
|
});
|
|
1652
|
-
if (
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
let
|
|
1657
|
+
if (_ = x.element.querySelector("[data-value-ref-trigger]"), _?.addEventListener("click", () => {
|
|
1658
|
+
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, {
|
|
1656
1662
|
className: "designer-dataset-parameter-bind",
|
|
1657
1663
|
icon: "variable",
|
|
1658
1664
|
label: d.dataset.parameterVariableLabel(r.label)
|
|
1659
|
-
})
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
} else g.appendChild(_.element);
|
|
1665
|
+
}), g.dataset.datasetParameterBind = r.name, g.setAttribute("aria-haspopup", "dialog"), g.setAttribute("aria-expanded", "false"), g.addEventListener("click", () => {
|
|
1666
|
+
v = g, _?.click();
|
|
1667
|
+
}), b.appendChild(g);
|
|
1668
|
+
} else b.appendChild(x.element);
|
|
1664
1669
|
if (a === "variable") {
|
|
1665
|
-
let n =
|
|
1670
|
+
let n = T(e, {
|
|
1666
1671
|
className: "designer-dataset-parameter-clear",
|
|
1667
1672
|
icon: "close",
|
|
1668
1673
|
label: d.dataset.parameterClearVariable(r.label)
|
|
@@ -1672,12 +1677,12 @@ function zt(e, t) {
|
|
|
1672
1677
|
kind: "inline",
|
|
1673
1678
|
value: null
|
|
1674
1679
|
});
|
|
1675
|
-
}),
|
|
1680
|
+
}), b.appendChild(n);
|
|
1676
1681
|
}
|
|
1677
|
-
if (s.append(c,
|
|
1682
|
+
if (s.append(c, b), o !== "") {
|
|
1678
1683
|
let t = e.createElement("span");
|
|
1679
1684
|
t.className = "designer-field-message designer-dataset-parameter-error", t.id = `designer-dataset-parameter-error-${r.name.replace(/[^A-Za-z0-9_-]/g, "-")}`, t.dataset.datasetParameterError = "true", t.setAttribute("role", "alert"), t.textContent = o;
|
|
1680
|
-
let n =
|
|
1685
|
+
let n = b.querySelector("input, select, textarea");
|
|
1681
1686
|
n !== null && (n.setAttribute("aria-invalid", "true"), n.setAttribute("aria-describedby", t.id)), s.appendChild(t);
|
|
1682
1687
|
}
|
|
1683
1688
|
m.addEventListener("click", () => {
|
|
@@ -1686,24 +1691,24 @@ function zt(e, t) {
|
|
|
1686
1691
|
value: null
|
|
1687
1692
|
});
|
|
1688
1693
|
}), h.addEventListener("click", () => {
|
|
1689
|
-
_
|
|
1694
|
+
v = h, _?.click();
|
|
1690
1695
|
}), n.appendChild(s);
|
|
1691
1696
|
}
|
|
1692
1697
|
return n;
|
|
1693
1698
|
}
|
|
1694
|
-
function
|
|
1699
|
+
function Lt(e, t) {
|
|
1695
1700
|
return e?.params[t] ?? null;
|
|
1696
1701
|
}
|
|
1697
|
-
function
|
|
1698
|
-
let n =
|
|
1702
|
+
function Rt(e, t) {
|
|
1703
|
+
let n = St(e, d.dataset.binding, "mapping");
|
|
1699
1704
|
if (t.roles.length === 0) {
|
|
1700
1705
|
let t = e.createElement("p");
|
|
1701
1706
|
t.className = "designer-empty-state", t.textContent = d.dataset.noBinding, n.appendChild(t);
|
|
1702
1707
|
}
|
|
1703
|
-
for (let r of t.roles) n.appendChild(
|
|
1708
|
+
for (let r of t.roles) n.appendChild(zt(e, t.descriptor, r, t.draft, t.bindingOpenRoleId ?? null));
|
|
1704
1709
|
return n;
|
|
1705
1710
|
}
|
|
1706
|
-
function
|
|
1711
|
+
function zt(e, t, n, r, i) {
|
|
1707
1712
|
let a = e.createElement("div");
|
|
1708
1713
|
a.className = "designer-dataset-binding-role", a.dataset.datasetBindingRole = n.id;
|
|
1709
1714
|
let o = e.createElement("strong");
|
|
@@ -1712,7 +1717,7 @@ function Ht(e, t, n, r, i) {
|
|
|
1712
1717
|
c.className = "designer-dataset-field-list", c.setAttribute("role", "group"), c.setAttribute("aria-label", d.dataset.bindingRole(n.id));
|
|
1713
1718
|
let l = t.fields.filter((e) => n.valueTypes.includes(e.valueType));
|
|
1714
1719
|
if (n.maxFields === 1) {
|
|
1715
|
-
let t =
|
|
1720
|
+
let t = S(e, {
|
|
1716
1721
|
ariaLabel: d.dataset.bindingRole(n.id),
|
|
1717
1722
|
className: "designer-dataset-binding-select",
|
|
1718
1723
|
options: [{
|
|
@@ -1726,15 +1731,15 @@ function Ht(e, t, n, r, i) {
|
|
|
1726
1731
|
}))],
|
|
1727
1732
|
value: s[0] ?? ""
|
|
1728
1733
|
});
|
|
1729
|
-
t.dataset.datasetBindingRole = n.id, c.appendChild(
|
|
1730
|
-
} else c.appendChild(
|
|
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));
|
|
1731
1736
|
if (l.length === 0) {
|
|
1732
1737
|
let t = e.createElement("p");
|
|
1733
1738
|
t.className = "designer-empty-state", t.textContent = d.dataset.noCompatibleFields, c.appendChild(t);
|
|
1734
1739
|
}
|
|
1735
1740
|
return a.append(o, c), a;
|
|
1736
1741
|
}
|
|
1737
|
-
function
|
|
1742
|
+
function Bt(e, t, n, r, i, a) {
|
|
1738
1743
|
let o = d.dataset.bindingRole(t), s = r.length >= i, c = n.filter((e) => r.includes(e.id)), l = e.createElement("div");
|
|
1739
1744
|
l.className = "designer-bind-field";
|
|
1740
1745
|
let u = m(e, {
|
|
@@ -1760,13 +1765,13 @@ function Ut(e, t, n, r, i, a) {
|
|
|
1760
1765
|
g.className = "designer-bind-menu", g.dataset.datasetBindingMenu = t, g.hidden = !a;
|
|
1761
1766
|
let _ = e.createElement("div");
|
|
1762
1767
|
_.className = "designer-bind-options", _.setAttribute("role", "listbox"), _.setAttribute("aria-multiselectable", "true"), _.setAttribute("aria-label", o);
|
|
1763
|
-
for (let a of n) _.appendChild(
|
|
1768
|
+
for (let a of n) _.appendChild(Ht(e, t, a, r, i));
|
|
1764
1769
|
let v = e.createElement("div");
|
|
1765
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);
|
|
1766
1771
|
let y = e.createElement("div");
|
|
1767
|
-
return y.className = "designer-bind-actions", y.append(
|
|
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;
|
|
1768
1773
|
}
|
|
1769
|
-
function
|
|
1774
|
+
function Vt(e, t, n, r, i = !1) {
|
|
1770
1775
|
let a = m(e, {
|
|
1771
1776
|
className: "designer-dataset-binding-role-action",
|
|
1772
1777
|
disabled: i,
|
|
@@ -1774,7 +1779,7 @@ function Wt(e, t, n, r, i = !1) {
|
|
|
1774
1779
|
});
|
|
1775
1780
|
return a.dataset.datasetBindingRoleAction = n, a.dataset.datasetBindingRoleId = t, a;
|
|
1776
1781
|
}
|
|
1777
|
-
function
|
|
1782
|
+
function Ht(e, t, n, r, i) {
|
|
1778
1783
|
let a = r.includes(n.id), o = e.createElement("button");
|
|
1779
1784
|
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;
|
|
1780
1785
|
let s = e.createElement("span");
|
|
@@ -1784,7 +1789,7 @@ function Gt(e, t, n, r, i) {
|
|
|
1784
1789
|
let l = e.createElement("span");
|
|
1785
1790
|
return l.className = "designer-bind-type", l.textContent = n.valueType, o.append(s, c, l), o;
|
|
1786
1791
|
}
|
|
1787
|
-
function
|
|
1792
|
+
function Ut(e, t = "all") {
|
|
1788
1793
|
let n = e.panel.ownerDocument.createElement("section");
|
|
1789
1794
|
n.className = "designer-dataset-authoring", n.dataset.datasetAuthoring = "true", n.dataset.dsSection = "authoring", n.dataset.authoringPart = t, n.dataset.inspectorSearchSection = "true";
|
|
1790
1795
|
let r = e.panel.ownerDocument.createElement("h4");
|
|
@@ -1807,16 +1812,16 @@ function Kt(e, t = "all") {
|
|
|
1807
1812
|
}).element, a = e.panel.ownerDocument.createElement("div");
|
|
1808
1813
|
a.className = "designer-dataset-authoring-row";
|
|
1809
1814
|
let o = e.panel.ownerDocument.createElement("span");
|
|
1810
|
-
o.className = "designer-dataset-authoring-status", o.textContent = e.authoring.filterConfigured ? d.dataSource.configured : d.dataSource.filterUnset, a.append(
|
|
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));
|
|
1811
1816
|
let s = e.panel.ownerDocument.createElement("div");
|
|
1812
|
-
s.className = "designer-dataset-authoring-settings", s.setAttribute("role", "group"), s.setAttribute("aria-label", d.dataSource.advancedSettings), e.surface === "workbench" ? s.append(
|
|
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));
|
|
1813
1818
|
let c = e.panel.ownerDocument.createElement("div");
|
|
1814
|
-
return c.className = "designer-dataset-authoring-actions", c.append(
|
|
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({
|
|
1815
1820
|
ownerDocument: e.panel.ownerDocument,
|
|
1816
1821
|
section: "authoring",
|
|
1817
1822
|
group: "refresh",
|
|
1818
1823
|
title: d.dataSource.advancedSettings,
|
|
1819
|
-
summary: `${
|
|
1824
|
+
summary: `${z(e)} \u00b7 ${d.data.groups.editInWorkbench}`,
|
|
1820
1825
|
readonlyHint: !0,
|
|
1821
1826
|
defaultOpen: !1,
|
|
1822
1827
|
overrides: e.groupOpenOverrides ?? /* @__PURE__ */ new Map(),
|
|
@@ -1826,22 +1831,22 @@ function Kt(e, t = "all") {
|
|
|
1826
1831
|
a,
|
|
1827
1832
|
s,
|
|
1828
1833
|
c
|
|
1829
|
-
])), n) : (t !== "footer" && n.append(r, i, a, c), t !== "editor" && n.appendChild(e.dataValue?.kind === "data-source-field" ?
|
|
1834
|
+
])), n) : (t !== "footer" && n.append(r, i, a, c), t !== "editor" && n.appendChild(e.dataValue?.kind === "data-source-field" ? F({
|
|
1830
1835
|
ownerDocument: e.panel.ownerDocument,
|
|
1831
1836
|
section: "authoring",
|
|
1832
1837
|
group: "refresh",
|
|
1833
1838
|
title: d.data.groups.refresh,
|
|
1834
|
-
summary: e.surface === "inspector" ? `${
|
|
1839
|
+
summary: e.surface === "inspector" ? `${z(e)} \u00b7 ${d.data.groups.editInWorkbench}` : z(e),
|
|
1835
1840
|
readonlyHint: e.surface === "inspector",
|
|
1836
1841
|
defaultOpen: !1,
|
|
1837
1842
|
overrides: e.groupOpenOverrides ?? /* @__PURE__ */ new Map(),
|
|
1838
1843
|
onToggle: e.onToggleGroup
|
|
1839
1844
|
}, [s]) : s), n);
|
|
1840
1845
|
}
|
|
1841
|
-
function
|
|
1846
|
+
function Wt(e) {
|
|
1842
1847
|
let t = e.panel.ownerDocument, n = t.createElement("div");
|
|
1843
1848
|
n.className = "designer-dataset-instance-facts", n.dataset.instanceFacts = "true";
|
|
1844
|
-
let r = [[d.dataSource.refreshStrategyLabel,
|
|
1849
|
+
let r = [[d.dataSource.refreshStrategyLabel, z(e)]];
|
|
1845
1850
|
for (let [e, i] of r) {
|
|
1846
1851
|
let r = t.createElement("div");
|
|
1847
1852
|
r.className = "designer-dataset-instance-fact";
|
|
@@ -1853,13 +1858,13 @@ function qt(e) {
|
|
|
1853
1858
|
let i = m(t);
|
|
1854
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;
|
|
1855
1860
|
}
|
|
1856
|
-
function
|
|
1861
|
+
function z(e) {
|
|
1857
1862
|
let t = e.instance?.updatePolicy;
|
|
1858
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;
|
|
1859
1864
|
}
|
|
1860
|
-
function
|
|
1865
|
+
function Gt(e, t, n, r = !1, i) {
|
|
1861
1866
|
if (t === "copy-data" || t === "fullscreen-edit") {
|
|
1862
|
-
let a =
|
|
1867
|
+
let a = T(e, {
|
|
1863
1868
|
ariaLabel: r && i !== void 0 ? `${n} · ${i}` : n,
|
|
1864
1869
|
className: "designer-dataset-authoring-icon-action",
|
|
1865
1870
|
disabled: r,
|
|
@@ -1876,11 +1881,11 @@ function Jt(e, t, n, r = !1, i) {
|
|
|
1876
1881
|
});
|
|
1877
1882
|
return a.dataset.datasetAuthoringAction = t, a;
|
|
1878
1883
|
}
|
|
1879
|
-
function
|
|
1884
|
+
function Kt(e, t, n) {
|
|
1880
1885
|
let r = e.createElement("span");
|
|
1881
1886
|
return r.className = "designer-dataset-authoring-label", r.textContent = t, r.setAttribute("data-tip", n), r;
|
|
1882
1887
|
}
|
|
1883
|
-
function
|
|
1888
|
+
function qt(e, t, n, r) {
|
|
1884
1889
|
let { field: i, input: a } = g(e.panel.ownerDocument, {
|
|
1885
1890
|
ariaLabel: n,
|
|
1886
1891
|
checked: r,
|
|
@@ -1891,7 +1896,7 @@ function Xt(e, t, n, r) {
|
|
|
1891
1896
|
});
|
|
1892
1897
|
return a.dataset.datasetAuthoringSetting = t, a.value = String(r), i;
|
|
1893
1898
|
}
|
|
1894
|
-
function
|
|
1899
|
+
function Jt(e) {
|
|
1895
1900
|
let t = e.panel.ownerDocument, n = t.createElement("div");
|
|
1896
1901
|
n.className = "designer-dataset-refresh-controls", n.setAttribute("role", "group"), n.setAttribute("aria-label", d.dataSource.refreshStrategyLabel);
|
|
1897
1902
|
let r = t.createElement("label");
|
|
@@ -1904,7 +1909,7 @@ function Zt(e) {
|
|
|
1904
1909
|
["auto", d.dataSource.refreshAuto]
|
|
1905
1910
|
];
|
|
1906
1911
|
a && o.push(["push", d.dataSource.refreshPush]);
|
|
1907
|
-
let s =
|
|
1912
|
+
let s = S(t, {
|
|
1908
1913
|
ariaLabel: d.dataSource.refreshStrategyLabel,
|
|
1909
1914
|
options: o.map(([t, n]) => ({
|
|
1910
1915
|
label: n,
|
|
@@ -1913,7 +1918,7 @@ function Zt(e) {
|
|
|
1913
1918
|
})),
|
|
1914
1919
|
value: e.authoring.refreshStrategy
|
|
1915
1920
|
});
|
|
1916
|
-
s.dataset.datasetAuthoringSetting = "refreshStrategy", r.append(i,
|
|
1921
|
+
s.dataset.datasetAuthoringSetting = "refreshStrategy", r.append(i, C(s).element);
|
|
1917
1922
|
let c = t.createElement("label");
|
|
1918
1923
|
c.className = "designer-dataset-authoring-setting-row", c.dataset.disabled = String(e.authoring.refreshStrategy !== "auto");
|
|
1919
1924
|
let l = t.createElement("span");
|
|
@@ -1932,14 +1937,14 @@ function Zt(e) {
|
|
|
1932
1937
|
});
|
|
1933
1938
|
f.dataset.datasetAuthoringSetting = "refreshInterval";
|
|
1934
1939
|
let m = t.createElement("span");
|
|
1935
|
-
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(
|
|
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, {
|
|
1936
1941
|
setting: "pushFallbackInterval",
|
|
1937
1942
|
label: d.dataSource.pushFallbackLabel,
|
|
1938
1943
|
unit: d.dataSource.pushFallbackUnit,
|
|
1939
1944
|
min: 0,
|
|
1940
1945
|
max: 86400,
|
|
1941
1946
|
value: e.authoring.pushFallbackInterval ?? 0
|
|
1942
|
-
})), e.pushDelivery?.append === !0 && n.appendChild(
|
|
1947
|
+
})), e.pushDelivery?.append === !0 && n.appendChild(Yt(t, {
|
|
1943
1948
|
setting: "pushRetainRows",
|
|
1944
1949
|
label: d.dataSource.pushRetainLabel,
|
|
1945
1950
|
unit: d.dataSource.pushRetainUnit,
|
|
@@ -1948,7 +1953,7 @@ function Zt(e) {
|
|
|
1948
1953
|
value: e.authoring.pushRetainRows ?? 1e3
|
|
1949
1954
|
}))), n;
|
|
1950
1955
|
}
|
|
1951
|
-
function
|
|
1956
|
+
function Yt(e, t) {
|
|
1952
1957
|
let n = e.createElement("label");
|
|
1953
1958
|
n.className = "designer-dataset-authoring-setting-row";
|
|
1954
1959
|
let r = e.createElement("span");
|
|
@@ -1968,10 +1973,10 @@ function Qt(e, t) {
|
|
|
1968
1973
|
let o = e.createElement("span");
|
|
1969
1974
|
return o.textContent = t.unit, o.setAttribute("aria-hidden", "true"), i.append(a, o), n.append(r, i), n;
|
|
1970
1975
|
}
|
|
1971
|
-
function
|
|
1976
|
+
function Xt(e) {
|
|
1972
1977
|
return e.refreshStrategy === "once" ? d.dataSource.refreshOnceNotice : e.refreshStrategy === "auto" ? d.dataSource.refreshAutoNotice : e.refreshStrategy === "push" ? d.dataSource.refreshPushNotice : d.dataSource.refreshManualNotice;
|
|
1973
1978
|
}
|
|
1974
|
-
function
|
|
1979
|
+
function Zt(e, t) {
|
|
1975
1980
|
let n = e.createElement("aside");
|
|
1976
1981
|
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 = [
|
|
1977
1982
|
d.dataSource.responseTitle,
|
|
@@ -1995,18 +2000,18 @@ function en(e, t) {
|
|
|
1995
2000
|
n.className = "designer-data-preview-time", n.textContent = d.dataSource.previewUpdatedAt(t.preview.testedAt), i.appendChild(n);
|
|
1996
2001
|
}
|
|
1997
2002
|
let a = e.createElement("div");
|
|
1998
|
-
if (a.className = "designer-data-preview-content", a.setAttribute("role", "tabpanel"), t.preview.status === "loading") a.appendChild(
|
|
1999
|
-
else if (t.preview.status === "error") a.appendChild(
|
|
2000
|
-
else if (t.preview.tab === "request") a.appendChild(
|
|
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, {
|
|
2001
2006
|
datasetId: t.draft?.datasetId,
|
|
2002
2007
|
params: t.draft?.params,
|
|
2003
2008
|
fields: t.draft?.fields
|
|
2004
2009
|
}, `data-workbench-preview-json:${t.scrollScope}:${t.preview.tab}`));
|
|
2005
2010
|
else {
|
|
2006
2011
|
let n = t.preview.tab === "response" ? t.preview.rawValue : t.preview.consumerValue;
|
|
2007
|
-
a.appendChild(n === void 0 ?
|
|
2012
|
+
a.appendChild(n === void 0 ? $t(e, t) : rn(e, n, `data-workbench-preview-value:${t.scrollScope}:${t.preview.tab}`, t.descriptor));
|
|
2008
2013
|
}
|
|
2009
|
-
let o =
|
|
2014
|
+
let o = P(t.descriptor, t.draft), s = o > 0 && t.preview.status === "ready" ? (() => {
|
|
2010
2015
|
let t = e.createElement("p");
|
|
2011
2016
|
return t.className = "designer-data-response-warning", t.setAttribute("role", "status"), t.textContent = d.dataSource.responseWarning(o), t;
|
|
2012
2017
|
})() : void 0, c = s === void 0 ? [i, a] : [
|
|
@@ -2014,42 +2019,42 @@ function en(e, t) {
|
|
|
2014
2019
|
i,
|
|
2015
2020
|
a
|
|
2016
2021
|
];
|
|
2017
|
-
return n.appendChild(
|
|
2022
|
+
return n.appendChild(F({
|
|
2018
2023
|
ownerDocument: e,
|
|
2019
2024
|
section: "preview",
|
|
2020
2025
|
group: "preview",
|
|
2021
2026
|
title: d.dataSource.responseTitle,
|
|
2022
|
-
summary:
|
|
2027
|
+
summary: Qt(t),
|
|
2023
2028
|
defaultOpen: t.surface === "inspector",
|
|
2024
2029
|
overrides: t.groupOpenOverrides,
|
|
2025
2030
|
onToggle: t.onToggleGroup
|
|
2026
2031
|
}, c)), n;
|
|
2027
2032
|
}
|
|
2028
|
-
function
|
|
2033
|
+
function Qt(e) {
|
|
2029
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;
|
|
2030
2035
|
}
|
|
2031
|
-
function
|
|
2036
|
+
function $t(e, t) {
|
|
2032
2037
|
let n = e.createElement("div");
|
|
2033
2038
|
n.className = "designer-data-preview-empty";
|
|
2034
2039
|
let r = e.createElement("div"), i = e.createElement("span");
|
|
2035
2040
|
i.className = "designer-data-preview-empty-icon", i.setAttribute("aria-hidden", "true"), i.innerHTML = b("table");
|
|
2036
2041
|
let a = e.createElement("p");
|
|
2037
2042
|
a.textContent = d.dataSource.previewIdleHint, r.append(i, a);
|
|
2038
|
-
let o =
|
|
2043
|
+
let o = en(t);
|
|
2039
2044
|
if (o !== "") {
|
|
2040
2045
|
let t = e.createElement("span");
|
|
2041
2046
|
t.className = "designer-data-preview-empty-params", t.dataset.datasetParamSummary = "true", t.textContent = `${d.dataSource.previewParamLead} · ${o}`, t.title = o, r.appendChild(t);
|
|
2042
2047
|
}
|
|
2043
2048
|
return n.appendChild(r), n;
|
|
2044
2049
|
}
|
|
2045
|
-
function
|
|
2050
|
+
function en(e) {
|
|
2046
2051
|
let t = e.descriptor, n = e.draft;
|
|
2047
2052
|
return t === void 0 || n === void 0 ? "" : t.parameters.map((t) => {
|
|
2048
2053
|
let r = n.params[t.name];
|
|
2049
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;
|
|
2050
2055
|
}).join(" · ");
|
|
2051
2056
|
}
|
|
2052
|
-
function
|
|
2057
|
+
function tn(e) {
|
|
2053
2058
|
let t = e.createElement("div");
|
|
2054
2059
|
t.className = "designer-data-preview-skeleton", t.setAttribute("aria-label", d.dataSource.previewLoading);
|
|
2055
2060
|
for (let n = 0; n < 5; n += 1) {
|
|
@@ -2067,7 +2072,7 @@ function an(e) {
|
|
|
2067
2072
|
}
|
|
2068
2073
|
return t;
|
|
2069
2074
|
}
|
|
2070
|
-
function
|
|
2075
|
+
function nn(e, t) {
|
|
2071
2076
|
let n = e.createElement("div");
|
|
2072
2077
|
n.className = "designer-data-preview-error", n.setAttribute("role", "alert"), n.dataset.datasetPreviewError = "true";
|
|
2073
2078
|
let r = e.createElement("strong");
|
|
@@ -2075,16 +2080,16 @@ function on(e, t) {
|
|
|
2075
2080
|
let i = e.createElement("p");
|
|
2076
2081
|
return i.textContent = t, n.append(r, i), n;
|
|
2077
2082
|
}
|
|
2078
|
-
function
|
|
2079
|
-
let i =
|
|
2080
|
-
if (i === void 0) return
|
|
2083
|
+
function rn(e, t, n, r) {
|
|
2084
|
+
let i = ln(t);
|
|
2085
|
+
if (i === void 0) return dn(e, t, n);
|
|
2081
2086
|
let a = e.createElement("div");
|
|
2082
2087
|
a.className = "designer-data-preview-table-wrap", a.dataset.designerScrollScope = n;
|
|
2083
2088
|
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");
|
|
2084
2089
|
d.className = "designer-data-preview-index", d.scope = "col", d.textContent = "#", u.appendChild(d);
|
|
2085
2090
|
for (let t of s) {
|
|
2086
2091
|
let n = e.createElement("th");
|
|
2087
|
-
n.scope = "col", n.textContent =
|
|
2092
|
+
n.scope = "col", n.textContent = an(r, t), on(r, t, c) && (n.className = "designer-data-preview-num"), u.appendChild(n);
|
|
2088
2093
|
}
|
|
2089
2094
|
l.appendChild(u);
|
|
2090
2095
|
let f = e.createElement("tbody");
|
|
@@ -2093,42 +2098,42 @@ function sn(e, t, n, r) {
|
|
|
2093
2098
|
a.className = "designer-data-preview-index", a.textContent = String(t + 1).padStart(2, "0"), i.appendChild(a);
|
|
2094
2099
|
for (let t of s) {
|
|
2095
2100
|
let a = e.createElement("td"), o = n[t];
|
|
2096
|
-
a.textContent =
|
|
2101
|
+
a.textContent = sn(o);
|
|
2097
2102
|
let s = a.textContent;
|
|
2098
|
-
s !== "—" && (a.title = s),
|
|
2103
|
+
s !== "—" && (a.title = s), on(r, t, c) && (a.className = "designer-data-preview-num"), i.appendChild(a);
|
|
2099
2104
|
}
|
|
2100
2105
|
f.appendChild(i);
|
|
2101
2106
|
}
|
|
2102
2107
|
return o.append(l, f), a.appendChild(o), a;
|
|
2103
2108
|
}
|
|
2104
|
-
function
|
|
2109
|
+
function an(e, t) {
|
|
2105
2110
|
return e?.fields.find((e) => e.id === t)?.label ?? t;
|
|
2106
2111
|
}
|
|
2107
|
-
function
|
|
2112
|
+
function on(e, t, n) {
|
|
2108
2113
|
let r = e?.fields.find((e) => e.id === t);
|
|
2109
2114
|
if (r !== void 0) return r.valueType === "number";
|
|
2110
2115
|
let i = n.map((e) => e[t]).filter((e) => e !== void 0);
|
|
2111
2116
|
return i.length > 0 && i.every((e) => typeof e == "number");
|
|
2112
2117
|
}
|
|
2113
|
-
function
|
|
2114
|
-
return e == null || e === "" ? "—" : typeof e == "number" ?
|
|
2118
|
+
function sn(e) {
|
|
2119
|
+
return e == null || e === "" ? "—" : typeof e == "number" ? cn(e) : typeof e == "string" ? e : JSON.stringify(e);
|
|
2115
2120
|
}
|
|
2116
|
-
function
|
|
2121
|
+
function cn(e) {
|
|
2117
2122
|
let [t = "", n] = String(e).split("."), r = t.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
2118
2123
|
return n === void 0 ? r : `${r}.${n}`;
|
|
2119
2124
|
}
|
|
2120
|
-
function
|
|
2121
|
-
if (Array.isArray(e) && e.every(
|
|
2122
|
-
if (
|
|
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;
|
|
2123
2128
|
}
|
|
2124
|
-
function
|
|
2129
|
+
function un(e) {
|
|
2125
2130
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
2126
2131
|
}
|
|
2127
|
-
function
|
|
2132
|
+
function dn(e, t, n) {
|
|
2128
2133
|
let r = e.createElement("pre");
|
|
2129
2134
|
return r.dataset.designerScrollScope = n, r.textContent = JSON.stringify(t, null, 2), r;
|
|
2130
2135
|
}
|
|
2131
|
-
function
|
|
2136
|
+
function fn(e) {
|
|
2132
2137
|
let t = e.descriptor;
|
|
2133
2138
|
if (t !== void 0) return {
|
|
2134
2139
|
panel: e.panel,
|
|
@@ -2150,39 +2155,39 @@ function hn(e) {
|
|
|
2150
2155
|
onToggleGroup: e.onToggleGroup
|
|
2151
2156
|
};
|
|
2152
2157
|
}
|
|
2153
|
-
function
|
|
2158
|
+
function B(e, t) {
|
|
2154
2159
|
if (e === "value") return;
|
|
2155
|
-
if (e === "host-link") return
|
|
2156
|
-
if (e === "preview") return
|
|
2157
|
-
if (e === "authoring") return
|
|
2160
|
+
if (e === "host-link") return tt(t);
|
|
2161
|
+
if (e === "preview") return Zt(t.panel.ownerDocument, t);
|
|
2162
|
+
if (e === "authoring") return Ut(t);
|
|
2158
2163
|
if (t.surface === "inspector") {
|
|
2159
|
-
if (t.descriptor === void 0) return
|
|
2160
|
-
} else if (t.catalogOpen || t.descriptor === void 0) return
|
|
2161
|
-
let n =
|
|
2162
|
-
return n === void 0 ? void 0 :
|
|
2164
|
+
if (t.descriptor === void 0) return lt(t);
|
|
2165
|
+
} 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);
|
|
2163
2168
|
}
|
|
2164
|
-
function
|
|
2169
|
+
function pn(e) {
|
|
2165
2170
|
let t = e.dataValue;
|
|
2166
2171
|
if (t === null || t.kind !== "data-source-field") return ["value"];
|
|
2167
2172
|
let n = ["value", "source"];
|
|
2168
|
-
return (e.surface === "workbench" ||
|
|
2173
|
+
return (e.surface === "workbench" || mn(e)) && n.push("host-link"), n.push("preview", "authoring"), n;
|
|
2169
2174
|
}
|
|
2170
|
-
function
|
|
2175
|
+
function mn(e) {
|
|
2171
2176
|
return [
|
|
2172
2177
|
e.link.catalog,
|
|
2173
2178
|
e.link.query,
|
|
2174
2179
|
e.link.variables
|
|
2175
2180
|
].some((e) => e.status !== "ready");
|
|
2176
2181
|
}
|
|
2177
|
-
function
|
|
2182
|
+
function hn(e, t) {
|
|
2178
2183
|
switch (e) {
|
|
2179
|
-
case "value": return
|
|
2184
|
+
case "value": return U([
|
|
2180
2185
|
t.mode,
|
|
2181
2186
|
t.availableModes,
|
|
2182
2187
|
t.resourceAvailable,
|
|
2183
2188
|
t.catalogAvailable
|
|
2184
2189
|
]);
|
|
2185
|
-
case "source": return
|
|
2190
|
+
case "source": return U([
|
|
2186
2191
|
(t.groups ?? []).map((e) => [e.id, e.name]),
|
|
2187
2192
|
t.groupId ?? null,
|
|
2188
2193
|
t.catalogOpen,
|
|
@@ -2203,21 +2208,21 @@ function vn(e, t) {
|
|
|
2203
2208
|
t.link.variables.status
|
|
2204
2209
|
]
|
|
2205
2210
|
]);
|
|
2206
|
-
case "preview": return
|
|
2211
|
+
case "preview": return U([
|
|
2207
2212
|
t.preview.status,
|
|
2208
2213
|
t.preview.tab,
|
|
2209
2214
|
t.preview.open,
|
|
2210
2215
|
t.preview.message,
|
|
2211
2216
|
En(t)
|
|
2212
2217
|
]);
|
|
2213
|
-
case "authoring": return
|
|
2218
|
+
case "authoring": return U([
|
|
2214
2219
|
t.authoring,
|
|
2215
2220
|
t.dirty,
|
|
2216
2221
|
t.surface,
|
|
2217
2222
|
t.pushDelivery ?? null,
|
|
2218
2223
|
t.instance?.updatePolicy ?? null
|
|
2219
2224
|
]);
|
|
2220
|
-
default: return
|
|
2225
|
+
default: return U([
|
|
2221
2226
|
t.link.catalog.status,
|
|
2222
2227
|
t.link.query.status,
|
|
2223
2228
|
t.link.variables.status,
|
|
@@ -2227,24 +2232,45 @@ function vn(e, t) {
|
|
|
2227
2232
|
]);
|
|
2228
2233
|
}
|
|
2229
2234
|
}
|
|
2235
|
+
var gn = /* @__PURE__ */ new WeakMap(), _n = 4;
|
|
2236
|
+
function vn(e, t) {
|
|
2237
|
+
let n = gn.get(e);
|
|
2238
|
+
if (n !== void 0) {
|
|
2239
|
+
n.pending = t;
|
|
2240
|
+
return;
|
|
2241
|
+
}
|
|
2242
|
+
let r = { pending: void 0 };
|
|
2243
|
+
gn.set(e, r);
|
|
2244
|
+
try {
|
|
2245
|
+
let n = t;
|
|
2246
|
+
for (let t = 0; t < _n; t += 1) {
|
|
2247
|
+
if (yn(e, n), r.pending === void 0) return;
|
|
2248
|
+
n = r.pending, r.pending = void 0;
|
|
2249
|
+
}
|
|
2250
|
+
} finally {
|
|
2251
|
+
gn.delete(e);
|
|
2252
|
+
let t = r.pending;
|
|
2253
|
+
t !== void 0 && e.isConnected && queueMicrotask(() => vn(e, t));
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2230
2256
|
function yn(e, t) {
|
|
2231
2257
|
if (e.querySelector("[data-ds-section]") === null) return;
|
|
2232
|
-
let n =
|
|
2258
|
+
let n = pn(t), r = xn(e, n), i = Tn(e, n), a = null;
|
|
2233
2259
|
for (let r = n.length - 1; r >= 0; r--) {
|
|
2234
|
-
let o = n[r], s =
|
|
2260
|
+
let o = n[r], s = V(e, o), c = hn(o, t);
|
|
2235
2261
|
if (o === "value") {
|
|
2236
|
-
s !== null && (s.dataset.dsContentKey = c,
|
|
2262
|
+
s !== null && (s.dataset.dsContentKey = c, H(s), a = s);
|
|
2237
2263
|
continue;
|
|
2238
2264
|
}
|
|
2239
2265
|
if (s === null) {
|
|
2240
|
-
let e =
|
|
2241
|
-
e !== void 0 && (e.dataset.dsContentKey = c,
|
|
2266
|
+
let e = B(o, t);
|
|
2267
|
+
e !== void 0 && (e.dataset.dsContentKey = c, H(e), i.insertBefore(e, a), a = e);
|
|
2242
2268
|
continue;
|
|
2243
2269
|
}
|
|
2244
2270
|
if (s.dataset.dsContentKey !== c) {
|
|
2245
|
-
let e =
|
|
2271
|
+
let e = B(o, t);
|
|
2246
2272
|
if (e !== void 0) {
|
|
2247
|
-
e.dataset.dsContentKey = c,
|
|
2273
|
+
e.dataset.dsContentKey = c, H(e), Et(s), s.replaceWith(e), a = e;
|
|
2248
2274
|
continue;
|
|
2249
2275
|
}
|
|
2250
2276
|
s.dataset.dsContentKey = c;
|
|
@@ -2253,14 +2279,14 @@ function yn(e, t) {
|
|
|
2253
2279
|
}
|
|
2254
2280
|
for (let t of [...e.querySelectorAll("[data-ds-section]")]) {
|
|
2255
2281
|
let e = t.dataset.dsSection;
|
|
2256
|
-
e !== void 0 && n.includes(e) || (
|
|
2282
|
+
e !== void 0 && n.includes(e) || (Et(t), t.remove());
|
|
2257
2283
|
}
|
|
2258
2284
|
Sn(e, r, n);
|
|
2259
2285
|
}
|
|
2260
2286
|
function bn(e, t) {
|
|
2261
2287
|
for (let n of e.querySelectorAll("[data-ds-section]")) {
|
|
2262
2288
|
let e = n.dataset.dsSection;
|
|
2263
|
-
e !== void 0 && (n.dataset.dsContentKey =
|
|
2289
|
+
e !== void 0 && (n.dataset.dsContentKey = hn(e, t), H(n));
|
|
2264
2290
|
}
|
|
2265
2291
|
}
|
|
2266
2292
|
function xn(e, t) {
|
|
@@ -2291,7 +2317,7 @@ function Sn(e, t, n) {
|
|
|
2291
2317
|
}
|
|
2292
2318
|
}
|
|
2293
2319
|
if (t.section !== void 0) {
|
|
2294
|
-
let n =
|
|
2320
|
+
let n = V(e, t.section);
|
|
2295
2321
|
if (n !== null) {
|
|
2296
2322
|
let e = n.querySelector("[data-ds-focusable]");
|
|
2297
2323
|
if (e !== null) {
|
|
@@ -2309,11 +2335,11 @@ function Sn(e, t, n) {
|
|
|
2309
2335
|
}
|
|
2310
2336
|
e.tabIndex = -1, e.focus();
|
|
2311
2337
|
}
|
|
2312
|
-
function
|
|
2338
|
+
function V(e, t) {
|
|
2313
2339
|
return e.querySelector(`[data-ds-section="${t}"]`);
|
|
2314
2340
|
}
|
|
2315
2341
|
function Cn(e, t, n) {
|
|
2316
|
-
let r =
|
|
2342
|
+
let r = V(e, t);
|
|
2317
2343
|
if (r === null) return null;
|
|
2318
2344
|
for (let e of r.querySelectorAll("button, input, select, textarea, [tabindex]")) if (wn(e) === n) return e;
|
|
2319
2345
|
return null;
|
|
@@ -2322,13 +2348,13 @@ function wn(e) {
|
|
|
2322
2348
|
let t = e.dataset.dsControl;
|
|
2323
2349
|
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;
|
|
2324
2350
|
}
|
|
2325
|
-
function
|
|
2351
|
+
function H(e) {
|
|
2326
2352
|
for (let t of e.querySelectorAll("button, input, select, textarea, [tabindex]")) t.dataset.dsFocusable = "true";
|
|
2327
2353
|
e.tabIndex = -1;
|
|
2328
2354
|
}
|
|
2329
2355
|
function Tn(e, t) {
|
|
2330
2356
|
for (let n of t) {
|
|
2331
|
-
let t =
|
|
2357
|
+
let t = V(e, n);
|
|
2332
2358
|
if (t?.parentElement != null) return t.parentElement;
|
|
2333
2359
|
}
|
|
2334
2360
|
return e.querySelector(".designer-inspector-data-flow-content") ?? e;
|
|
@@ -2339,12 +2365,12 @@ function En(e) {
|
|
|
2339
2365
|
let n = t.rows, r = t.fields;
|
|
2340
2366
|
return `${Array.isArray(n) ? n.length : 0}:${Array.isArray(r) ? r.length : 0}`;
|
|
2341
2367
|
}
|
|
2342
|
-
function
|
|
2368
|
+
function U(e) {
|
|
2343
2369
|
if (e === null) return "null";
|
|
2344
|
-
if (Array.isArray(e)) return `[${e.map(
|
|
2370
|
+
if (Array.isArray(e)) return `[${e.map(U).join(",")}]`;
|
|
2345
2371
|
if (typeof e == "object") {
|
|
2346
2372
|
let t = e;
|
|
2347
|
-
return `{${Object.keys(t).sort().map((e) => `${JSON.stringify(e)}:${
|
|
2373
|
+
return `{${Object.keys(t).sort().map((e) => `${JSON.stringify(e)}:${U(t[e])}`).join(",")}}`;
|
|
2348
2374
|
}
|
|
2349
2375
|
return JSON.stringify(e) ?? "undefined";
|
|
2350
2376
|
}
|
|
@@ -2369,7 +2395,7 @@ function kn(e, t) {
|
|
|
2369
2395
|
if (n?.kind !== "scalar") return v(e, { label: "" }).field;
|
|
2370
2396
|
let r = n.valueType === "string" ? d.dataSource.staticScalarString : n.valueType === "number" ? d.dataSource.staticScalarNumber : d.dataSource.staticScalarBoolean;
|
|
2371
2397
|
if (n.valueType === "boolean") {
|
|
2372
|
-
let i =
|
|
2398
|
+
let i = x(e, { label: r }), a = E(e, {
|
|
2373
2399
|
ariaLabel: r,
|
|
2374
2400
|
checked: t.value === !0
|
|
2375
2401
|
});
|
|
@@ -2404,10 +2430,10 @@ function An(e, t) {
|
|
|
2404
2430
|
return r.dataset.dataSourceStatic = "true", n.control.appendChild(r), n.field;
|
|
2405
2431
|
}
|
|
2406
2432
|
function jn(e, t, n, r) {
|
|
2407
|
-
let i =
|
|
2433
|
+
let i = W(e, `tab-${t}`, n);
|
|
2408
2434
|
return i.setAttribute("aria-pressed", String(r)), i;
|
|
2409
2435
|
}
|
|
2410
|
-
function
|
|
2436
|
+
function W(e, t, n, r) {
|
|
2411
2437
|
let i = m(e, {
|
|
2412
2438
|
text: n,
|
|
2413
2439
|
...r === void 0 ? {} : { variant: r }
|
|
@@ -2415,7 +2441,7 @@ function V(e, t, n, r) {
|
|
|
2415
2441
|
return i.dataset.staticAction = t, i;
|
|
2416
2442
|
}
|
|
2417
2443
|
function Mn(e, t, n, r) {
|
|
2418
|
-
let i =
|
|
2444
|
+
let i = T(e, {
|
|
2419
2445
|
className: "designer-static-page-button",
|
|
2420
2446
|
icon: r,
|
|
2421
2447
|
label: n
|
|
@@ -2423,11 +2449,11 @@ function Mn(e, t, n, r) {
|
|
|
2423
2449
|
return i.dataset.staticAction = t, i;
|
|
2424
2450
|
}
|
|
2425
2451
|
function Nn(e, t, n, r) {
|
|
2426
|
-
let i =
|
|
2452
|
+
let i = W(e, t, r);
|
|
2427
2453
|
return i.dataset.staticIndex = String(n), i;
|
|
2428
2454
|
}
|
|
2429
2455
|
function Pn(e, t, n, r, i = !1) {
|
|
2430
|
-
let a =
|
|
2456
|
+
let a = W(e, `binding-${n}`, r);
|
|
2431
2457
|
return a.dataset.staticBindingRole = t, a.disabled = i, a;
|
|
2432
2458
|
}
|
|
2433
2459
|
function Fn(e, t) {
|
|
@@ -2454,7 +2480,7 @@ function In(e, t, n) {
|
|
|
2454
2480
|
f.className = "designer-dataset-binding-hint", f.textContent = d.dataset.bindingHint(i.minFields, i.maxFields);
|
|
2455
2481
|
let p = e.createElement("div");
|
|
2456
2482
|
if (p.className = "designer-dataset-field-list", p.setAttribute("role", "group"), p.setAttribute("aria-label", d.dataset.bindingRole(i.id)), i.maxFields === 1) {
|
|
2457
|
-
let t =
|
|
2483
|
+
let t = S(e, {
|
|
2458
2484
|
ariaLabel: d.dataset.bindingRole(i.id),
|
|
2459
2485
|
className: "designer-dataset-binding-select",
|
|
2460
2486
|
options: [{
|
|
@@ -2468,7 +2494,7 @@ function In(e, t, n) {
|
|
|
2468
2494
|
}))],
|
|
2469
2495
|
value: c[0] ?? ""
|
|
2470
2496
|
});
|
|
2471
|
-
t.dataset.staticBindingRole = i.id, p.appendChild(
|
|
2497
|
+
t.dataset.staticBindingRole = i.id, p.appendChild(C(t).element);
|
|
2472
2498
|
} else {
|
|
2473
2499
|
let t = e.createElement("div");
|
|
2474
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);
|
|
@@ -2500,7 +2526,7 @@ function Rn(e, t, n, r, i) {
|
|
|
2500
2526
|
let n = e.createElement("th");
|
|
2501
2527
|
n.textContent = t.label, l.appendChild(n);
|
|
2502
2528
|
}), l.appendChild(e.createElement("th")), c.appendChild(l);
|
|
2503
|
-
let u = e.createElement("tbody"), f =
|
|
2529
|
+
let u = e.createElement("tbody"), f = Ae(t.rows.length, n, r);
|
|
2504
2530
|
t.rows.slice(f.start, f.end).forEach((n, r) => {
|
|
2505
2531
|
let i = f.start + r, a = e.createElement("tr");
|
|
2506
2532
|
t.fields.forEach((t) => {
|
|
@@ -2514,9 +2540,9 @@ function Rn(e, t, n, r, i) {
|
|
|
2514
2540
|
m.className = "designer-static-rows-footer";
|
|
2515
2541
|
let h = e.createElement("nav");
|
|
2516
2542
|
h.className = "designer-static-pagination", h.setAttribute("aria-label", d.dataSource.staticPagination);
|
|
2517
|
-
let g =
|
|
2543
|
+
let g = S(e, {
|
|
2518
2544
|
ariaLabel: d.dataSource.staticRowsPerPage,
|
|
2519
|
-
options:
|
|
2545
|
+
options: Oe.map((e) => ({
|
|
2520
2546
|
label: d.dataSource.staticRowsPerPageOption(e),
|
|
2521
2547
|
selected: e === f.pageSize,
|
|
2522
2548
|
value: String(e)
|
|
@@ -2529,7 +2555,7 @@ function Rn(e, t, n, r, i) {
|
|
|
2529
2555
|
let v = Mn(e, "page-previous", d.dataSource.staticPreviousPage, "chevron-left");
|
|
2530
2556
|
v.toggleAttribute("disabled", f.page === 0);
|
|
2531
2557
|
let y = Mn(e, "page-next", d.dataSource.staticNextPage, "chevron-right");
|
|
2532
|
-
return y.toggleAttribute("disabled", f.page >= f.pages - 1), h.append(g, v, _, y), m.append(
|
|
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;
|
|
2533
2559
|
}
|
|
2534
2560
|
function zn(e) {
|
|
2535
2561
|
let n = e.ownerDocument, r = n.createElement("section");
|
|
@@ -2652,7 +2678,7 @@ function Xn(e, t) {
|
|
|
2652
2678
|
}
|
|
2653
2679
|
return r;
|
|
2654
2680
|
}
|
|
2655
|
-
function
|
|
2681
|
+
function G(e, t, n, r, i = !1) {
|
|
2656
2682
|
let a = m(e, {
|
|
2657
2683
|
disabled: i,
|
|
2658
2684
|
text: n
|
|
@@ -2785,7 +2811,7 @@ function ur(e) {
|
|
|
2785
2811
|
function dr(e) {
|
|
2786
2812
|
let t = e.panel.ownerDocument, n = t.createElement("section");
|
|
2787
2813
|
n.className = "designer-data-source-variable";
|
|
2788
|
-
let r = v(t, { label: d.dataset.selectVariable }), i =
|
|
2814
|
+
let r = v(t, { label: d.dataset.selectVariable }), i = S(t, {
|
|
2789
2815
|
ariaLabel: d.dataset.selectVariable,
|
|
2790
2816
|
options: [{
|
|
2791
2817
|
label: d.dataset.selectVariable,
|
|
@@ -2798,7 +2824,7 @@ function dr(e) {
|
|
|
2798
2824
|
}))],
|
|
2799
2825
|
value: e.variableSourceId ?? ""
|
|
2800
2826
|
});
|
|
2801
|
-
return i.dataset.dataVariableSource = "true", r.control.appendChild(
|
|
2827
|
+
return i.dataset.dataVariableSource = "true", r.control.appendChild(C(i).element), n.appendChild(r.field), n;
|
|
2802
2828
|
}
|
|
2803
2829
|
function fr(e) {
|
|
2804
2830
|
return {
|
|
@@ -2821,26 +2847,26 @@ function pr(e) {
|
|
|
2821
2847
|
r.className = "designer-inspector-data-flow-content", r.dataset.designerScrollScope = `data-source:${e.scrollScope}`;
|
|
2822
2848
|
let i = t.createElement("p");
|
|
2823
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);
|
|
2824
|
-
for (let t of
|
|
2850
|
+
for (let t of pn(e)) t !== "value" && r.appendChild(_r(t, e));
|
|
2825
2851
|
let a = ur(e);
|
|
2826
2852
|
return a !== void 0 && r.appendChild(a), n.appendChild(r), n;
|
|
2827
2853
|
}
|
|
2828
|
-
n.dataset.activeStep =
|
|
2854
|
+
n.dataset.activeStep = xr(e.activeStep);
|
|
2829
2855
|
let r = t.createElement("div");
|
|
2830
2856
|
return r.className = "designer-inspector-data-flow-content", r.dataset.designerScrollScope = `data-source:${e.scrollScope}`, mr(r, e), n.appendChild(r), n;
|
|
2831
2857
|
}
|
|
2832
2858
|
function mr(e, t) {
|
|
2833
2859
|
if (e.appendChild(ar(t)), t.mode !== "none") {
|
|
2834
2860
|
if (t.mode === "static") {
|
|
2835
|
-
|
|
2861
|
+
br(e, t);
|
|
2836
2862
|
return;
|
|
2837
2863
|
}
|
|
2838
2864
|
if (t.mode === "variable") {
|
|
2839
|
-
e.appendChild(dr(t)), e.appendChild(Zn(e.ownerDocument,
|
|
2865
|
+
e.appendChild(dr(t)), e.appendChild(Zn(e.ownerDocument, K(t))), gr(e);
|
|
2840
2866
|
return;
|
|
2841
2867
|
}
|
|
2842
|
-
for (let n of
|
|
2843
|
-
e.appendChild(Zn(e.ownerDocument,
|
|
2868
|
+
for (let n of pn(t)) n !== "value" && e.appendChild(_r(n, t));
|
|
2869
|
+
e.appendChild(Zn(e.ownerDocument, K(t))), gr(e);
|
|
2844
2870
|
}
|
|
2845
2871
|
}
|
|
2846
2872
|
function hr(e) {
|
|
@@ -2852,7 +2878,7 @@ function hr(e) {
|
|
|
2852
2878
|
}
|
|
2853
2879
|
return e === null ? 0 : 1;
|
|
2854
2880
|
}
|
|
2855
|
-
function
|
|
2881
|
+
function K(e) {
|
|
2856
2882
|
if (e.mode !== "dataset") return {
|
|
2857
2883
|
state: e.dirty ? "dirty" : "synced",
|
|
2858
2884
|
text: e.dirty ? d.dataSource.draft : d.dataSource.synced,
|
|
@@ -2861,7 +2887,7 @@ function U(e) {
|
|
|
2861
2887
|
actionDisabled: !e.dirty,
|
|
2862
2888
|
canUndo: e.canUndo === !0
|
|
2863
2889
|
};
|
|
2864
|
-
let t =
|
|
2890
|
+
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";
|
|
2865
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), {
|
|
2866
2892
|
state: o,
|
|
2867
2893
|
text: s,
|
|
@@ -2871,7 +2897,7 @@ function U(e) {
|
|
|
2871
2897
|
canUndo: e.canUndo === !0
|
|
2872
2898
|
};
|
|
2873
2899
|
}
|
|
2874
|
-
function
|
|
2900
|
+
function gr(e) {
|
|
2875
2901
|
let t = e.querySelector(".designer-dataset-actions");
|
|
2876
2902
|
if (t === null) return;
|
|
2877
2903
|
let n = () => {
|
|
@@ -2890,8 +2916,8 @@ function W(e) {
|
|
|
2890
2916
|
e.observe(t), t.addEventListener("DOMNodeRemovedFromDocument", () => e.disconnect(), { once: !0 }), t.isConnected || e.disconnect();
|
|
2891
2917
|
}
|
|
2892
2918
|
}
|
|
2893
|
-
function
|
|
2894
|
-
let n =
|
|
2919
|
+
function _r(e, t) {
|
|
2920
|
+
let n = yr(e, t);
|
|
2895
2921
|
if (e === "authoring") {
|
|
2896
2922
|
n.classList.add("designer-inspector-advanced-settings"), n.dataset.workbenchSection = "refresh", n.tabIndex = -1;
|
|
2897
2923
|
let e = n.querySelector(".designer-inspector-section-title");
|
|
@@ -2899,19 +2925,19 @@ function gr(e, t) {
|
|
|
2899
2925
|
}
|
|
2900
2926
|
return n;
|
|
2901
2927
|
}
|
|
2902
|
-
function
|
|
2903
|
-
let t = e.descriptor, n = e.mode === "dataset" && t !== void 0 ? !e.resourceAvailable || !
|
|
2928
|
+
function vr(e) {
|
|
2929
|
+
let t = e.descriptor, n = e.mode === "dataset" && t !== void 0 ? !e.resourceAvailable || !et(t, e.draft, e.roles) : !1;
|
|
2904
2930
|
return ir({
|
|
2905
2931
|
dirty: e.dirty,
|
|
2906
2932
|
blocked: n
|
|
2907
2933
|
});
|
|
2908
2934
|
}
|
|
2909
|
-
function
|
|
2910
|
-
let n =
|
|
2935
|
+
function yr(e, t) {
|
|
2936
|
+
let n = B(e, t);
|
|
2911
2937
|
if (n === void 0) throw Error(`DATASET_SECTION_UNAVAILABLE:${e}`);
|
|
2912
2938
|
return n;
|
|
2913
2939
|
}
|
|
2914
|
-
function
|
|
2940
|
+
function br(e, t) {
|
|
2915
2941
|
let n = fr(t);
|
|
2916
2942
|
if (e.appendChild(lr(t)), t.staticDescriptor?.kind === "tabular") {
|
|
2917
2943
|
let t = Bn(n);
|
|
@@ -2920,17 +2946,17 @@ function yr(e, t) {
|
|
|
2920
2946
|
r.tabIndex = -1, e.append(t, r);
|
|
2921
2947
|
}
|
|
2922
2948
|
let r = ur(t);
|
|
2923
|
-
r !== void 0 && e.appendChild(r), e.appendChild(Zn(e.ownerDocument,
|
|
2949
|
+
r !== void 0 && e.appendChild(r), e.appendChild(Zn(e.ownerDocument, K(t))), gr(e);
|
|
2924
2950
|
}
|
|
2925
|
-
function
|
|
2951
|
+
function xr(e) {
|
|
2926
2952
|
return e === "mapping" || e === "preview" ? e : "source";
|
|
2927
2953
|
}
|
|
2928
|
-
var
|
|
2954
|
+
var Sr = [
|
|
2929
2955
|
"dataset",
|
|
2930
2956
|
"variable",
|
|
2931
2957
|
"fixed"
|
|
2932
2958
|
];
|
|
2933
|
-
function
|
|
2959
|
+
function Cr(e) {
|
|
2934
2960
|
let t = e.panel.ownerDocument, n = t.createElement("div");
|
|
2935
2961
|
n.className = "designer-source-sheet-layer", n.dataset.sourceSheet = "true";
|
|
2936
2962
|
let r = t.createElement("section");
|
|
@@ -2952,7 +2978,7 @@ function Sr(e) {
|
|
|
2952
2978
|
variable: "variable",
|
|
2953
2979
|
fixed: "inline"
|
|
2954
2980
|
};
|
|
2955
|
-
for (let n of
|
|
2981
|
+
for (let n of Sr) {
|
|
2956
2982
|
let r = t.createElement("button");
|
|
2957
2983
|
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;
|
|
2958
2984
|
let i = l.get(u[n]);
|
|
@@ -2962,18 +2988,18 @@ function Sr(e) {
|
|
|
2962
2988
|
f.className = "designer-source-sheet-tools";
|
|
2963
2989
|
let p = t.createElement("div");
|
|
2964
2990
|
p.className = "designer-source-sheet-scroll", p.setAttribute("role", "tabpanel");
|
|
2965
|
-
let m = e.sourcePickerTab === "fixed" ?
|
|
2966
|
-
if (e.sourcePickerTab === "fixed") f.hidden = !0, p.appendChild(
|
|
2991
|
+
let m = e.sourcePickerTab === "fixed" ? Er(e) : "";
|
|
2992
|
+
if (e.sourcePickerTab === "fixed") f.hidden = !0, p.appendChild(Dr(t, m));
|
|
2967
2993
|
else {
|
|
2968
|
-
if (f.appendChild(
|
|
2969
|
-
let t =
|
|
2994
|
+
if (f.appendChild(wr(t, e)), e.sourcePickerTab === "dataset") {
|
|
2995
|
+
let t = dt(e);
|
|
2970
2996
|
t !== void 0 && f.appendChild(t);
|
|
2971
2997
|
}
|
|
2972
|
-
p.appendChild(e.sourcePickerTab === "variable" ?
|
|
2998
|
+
p.appendChild(e.sourcePickerTab === "variable" ? Tr(e) : ft(e));
|
|
2973
2999
|
}
|
|
2974
|
-
return r.append(i, c, f, p,
|
|
3000
|
+
return r.append(i, c, f, p, Or(t, e, m)), n.appendChild(r), n;
|
|
2975
3001
|
}
|
|
2976
|
-
function
|
|
3002
|
+
function wr(e, t) {
|
|
2977
3003
|
let n = e.createElement("label");
|
|
2978
3004
|
n.className = "designer-source-sheet-search";
|
|
2979
3005
|
let r = e.createElement("span");
|
|
@@ -2987,7 +3013,7 @@ function Cr(e, t) {
|
|
|
2987
3013
|
});
|
|
2988
3014
|
return a.autocomplete = "off", i ? a.dataset.datasetVariableQuery = "true" : a.dataset.datasetQuery = "true", n.append(r, a), n;
|
|
2989
3015
|
}
|
|
2990
|
-
function
|
|
3016
|
+
function Tr(e) {
|
|
2991
3017
|
let t = e.panel.ownerDocument, n = t.createElement("div");
|
|
2992
3018
|
n.className = "designer-source-sheet-list", n.dataset.sourceSheetVariables = "true";
|
|
2993
3019
|
let r = e.variableQuery.trim().toLowerCase(), i = e.variables.filter((e) => r === "" || e.name.toLowerCase().includes(r)), a = t.createElement("p");
|
|
@@ -3006,13 +3032,13 @@ function wr(e) {
|
|
|
3006
3032
|
}
|
|
3007
3033
|
return n.appendChild(a), n;
|
|
3008
3034
|
}
|
|
3009
|
-
function
|
|
3035
|
+
function Er(e) {
|
|
3010
3036
|
let t = e.staticDraft.trim();
|
|
3011
3037
|
if (t !== "" && t !== "null") return e.staticDraft;
|
|
3012
3038
|
let n = e.preview.rawValue;
|
|
3013
3039
|
return typeof n == "object" && n && !Array.isArray(n) && Array.isArray(n.fields) && Array.isArray(n.rows) ? JSON.stringify(n, null, 2) : e.staticDraft;
|
|
3014
3040
|
}
|
|
3015
|
-
function
|
|
3041
|
+
function Dr(e, t) {
|
|
3016
3042
|
let n = e.createElement("div");
|
|
3017
3043
|
n.className = "designer-source-sheet-fixed";
|
|
3018
3044
|
let r = e.createElement("div");
|
|
@@ -3028,14 +3054,14 @@ function Er(e, t) {
|
|
|
3028
3054
|
});
|
|
3029
3055
|
return o.dataset.sourceSheetFixed = "true", o.spellcheck = !1, n.append(r, o), n;
|
|
3030
3056
|
}
|
|
3031
|
-
function
|
|
3057
|
+
function Or(e, t, n) {
|
|
3032
3058
|
let r = e.createElement("footer");
|
|
3033
3059
|
r.className = "designer-source-sheet-foot";
|
|
3034
3060
|
let i = e.createElement("span");
|
|
3035
3061
|
i.className = "designer-source-sheet-note", i.dataset.sourceSheetNote = "true";
|
|
3036
3062
|
let a = e.createElement("div");
|
|
3037
3063
|
if (a.className = "designer-source-sheet-actions", t.sourcePickerTab === "fixed") {
|
|
3038
|
-
let r =
|
|
3064
|
+
let r = kr(n, t.staticDescriptor);
|
|
3039
3065
|
i.textContent = r.note, i.dataset.tone = r.ok ? "ok" : "error";
|
|
3040
3066
|
let o = e.createElement("button");
|
|
3041
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);
|
|
@@ -3046,7 +3072,7 @@ function Dr(e, t, n) {
|
|
|
3046
3072
|
}
|
|
3047
3073
|
return r.append(i, a), r;
|
|
3048
3074
|
}
|
|
3049
|
-
function
|
|
3075
|
+
function kr(e, n) {
|
|
3050
3076
|
let r = e.trim();
|
|
3051
3077
|
if (r === "") return {
|
|
3052
3078
|
ok: !1,
|
|
@@ -3079,22 +3105,44 @@ function Or(e, n) {
|
|
|
3079
3105
|
note: d.dataSource.pickerFixedAny
|
|
3080
3106
|
};
|
|
3081
3107
|
}
|
|
3082
|
-
function
|
|
3108
|
+
function Ar(e) {
|
|
3083
3109
|
let { panel: t } = e;
|
|
3084
|
-
|
|
3110
|
+
Dt(t), t.replaceChildren();
|
|
3085
3111
|
let n = t.ownerDocument.createElement("section");
|
|
3086
|
-
n.className = "designer-data-source-panel", n.dataset.dataSourcePanel = "true", n.dataset.inspectorSearchSection = "true", n.appendChild(
|
|
3087
|
-
let r =
|
|
3088
|
-
n.appendChild(r);
|
|
3089
|
-
let i =
|
|
3090
|
-
|
|
3091
|
-
let a =
|
|
3092
|
-
|
|
3093
|
-
let
|
|
3094
|
-
|
|
3095
|
-
|
|
3112
|
+
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);
|
|
3114
|
+
r !== void 0 && n.appendChild(r);
|
|
3115
|
+
let i = pr(e);
|
|
3116
|
+
n.appendChild(i);
|
|
3117
|
+
let a = t.ownerDocument.createElement("p");
|
|
3118
|
+
a.className = "designer-data-source-feedback", a.dataset.datasetFeedback = "true", a.setAttribute("role", "status"), a.setAttribute("aria-live", "polite"), a.textContent = e.feedback;
|
|
3119
|
+
let o = i.querySelector(".designer-inspector-data-flow-content"), s = o?.querySelector(".designer-dataset-actions");
|
|
3120
|
+
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 };
|
|
3096
3124
|
}
|
|
3097
|
-
function
|
|
3125
|
+
function jr(e, t) {
|
|
3126
|
+
let n = t.dataValue;
|
|
3127
|
+
if (t.surface !== "inspector" || n?.kind !== "inline" || n.sample !== !0) return;
|
|
3128
|
+
let r = d.sampleData, i = e.createElement("div");
|
|
3129
|
+
i.className = "designer-data-notice designer-sample-data-notice", i.dataset.dataNoticeTone = "warning", i.dataset.sampleInspectorNotice = "", i.setAttribute("role", "status");
|
|
3130
|
+
let a = e.createElement("span");
|
|
3131
|
+
a.className = "designer-data-notice-text", a.textContent = r.inspectorNotice;
|
|
3132
|
+
let o = e.createElement("span");
|
|
3133
|
+
o.className = "designer-sample-data-actions";
|
|
3134
|
+
let s = m(e, {
|
|
3135
|
+
className: "designer-data-notice-retry",
|
|
3136
|
+
text: r.bind
|
|
3137
|
+
});
|
|
3138
|
+
s.dataset.datasetChange = "", s.dataset.tip = r.bindTip;
|
|
3139
|
+
let c = m(e, {
|
|
3140
|
+
className: "designer-data-notice-retry",
|
|
3141
|
+
text: r.keep
|
|
3142
|
+
});
|
|
3143
|
+
return c.dataset.sampleAction = "keep", c.dataset.tip = r.keepTip, o.append(s, c), i.append(a, o), i;
|
|
3144
|
+
}
|
|
3145
|
+
function Mr(e) {
|
|
3098
3146
|
let t = e.panel.ownerDocument, n = t.createElement("div");
|
|
3099
3147
|
n.className = "designer-data-workbench-shell", n.dataset.datasetWorkbench = "true", n.dataset.inspectorSearchSection = "true", n.dataset.inspectorSearchText = [
|
|
3100
3148
|
e.descriptor?.name ?? d.dataSource.workbench,
|
|
@@ -3107,7 +3155,7 @@ function Ar(e) {
|
|
|
3107
3155
|
let r = t.createElement("header");
|
|
3108
3156
|
r.className = "designer-workbench-header";
|
|
3109
3157
|
let i = t.createElement("div");
|
|
3110
|
-
i.appendChild(
|
|
3158
|
+
i.appendChild(G(t, "close-workbench", d.dataSource.backToCanvas));
|
|
3111
3159
|
let a = t.createElement("span");
|
|
3112
3160
|
a.className = "designer-workbench-identity";
|
|
3113
3161
|
let o = t.createElement("h3");
|
|
@@ -3115,8 +3163,8 @@ function Ar(e) {
|
|
|
3115
3163
|
let s = t.createElement("span");
|
|
3116
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);
|
|
3117
3165
|
let c = t.createElement("div");
|
|
3118
|
-
c.className = "designer-workbench-actions", c.append(
|
|
3119
|
-
let l =
|
|
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");
|
|
3120
3168
|
u.className = "designer-data-workbench-steps", u.dataset.inspectorSearchSection = "true", u.dataset.inspectorSearchText = [
|
|
3121
3169
|
d.dataSource.sourceStep,
|
|
3122
3170
|
d.dataSource.mappingStep,
|
|
@@ -3155,16 +3203,16 @@ function Ar(e) {
|
|
|
3155
3203
|
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);
|
|
3156
3204
|
}
|
|
3157
3205
|
let f = t.createElement("main");
|
|
3158
|
-
f.className = "designer-static-data-content", f.dataset.designerScrollScope = `data-workbench-editor:${e.scrollScope}`, f.appendChild(
|
|
3159
|
-
let p =
|
|
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");
|
|
3160
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;
|
|
3161
3209
|
}
|
|
3162
|
-
function
|
|
3163
|
-
let n =
|
|
3210
|
+
function Nr(e, t) {
|
|
3211
|
+
let n = B(e, t);
|
|
3164
3212
|
if (n === void 0) throw Error(`DATASET_SECTION_UNAVAILABLE:${e}`);
|
|
3165
3213
|
return n;
|
|
3166
3214
|
}
|
|
3167
|
-
function
|
|
3215
|
+
function Pr(e, t) {
|
|
3168
3216
|
let n = e.createElement("section");
|
|
3169
3217
|
n.className = "designer-workbench-confirm", n.hidden = !t, n.dataset.datasetDiscardConfirm = "true";
|
|
3170
3218
|
let r = e.createElement("span"), i = e.createElement("strong");
|
|
@@ -3172,9 +3220,9 @@ function jr(e, t) {
|
|
|
3172
3220
|
let a = e.createElement("small");
|
|
3173
3221
|
a.textContent = d.dataSource.discardDetail, r.append(i, a);
|
|
3174
3222
|
let o = e.createElement("span");
|
|
3175
|
-
return o.append(
|
|
3223
|
+
return o.append(G(e, "keep-editing", d.dataSource.keepEditing), G(e, "discard-workbench", d.dataSource.discard, "danger")), n.append(r, o), n;
|
|
3176
3224
|
}
|
|
3177
|
-
function
|
|
3225
|
+
function Fr(e, t, n, r) {
|
|
3178
3226
|
let i = e.createElement("section");
|
|
3179
3227
|
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;
|
|
3180
3228
|
let a = e.createElement("h4");
|
|
@@ -3182,11 +3230,11 @@ function Mr(e, t, n, r) {
|
|
|
3182
3230
|
let o = e.createElement("p");
|
|
3183
3231
|
return o.textContent = r, i.append(a, o), i;
|
|
3184
3232
|
}
|
|
3185
|
-
function
|
|
3233
|
+
function Ir(e, t) {
|
|
3186
3234
|
return e === void 0 ? t.valueRef : l(e) ?? t.valueRef;
|
|
3187
3235
|
}
|
|
3188
|
-
function
|
|
3189
|
-
let r =
|
|
3236
|
+
function Lr(e, t, n) {
|
|
3237
|
+
let r = Ne(e, t);
|
|
3190
3238
|
if (r === void 0) return;
|
|
3191
3239
|
if (r.status === "document") return r;
|
|
3192
3240
|
let i = n.instance;
|
|
@@ -3199,49 +3247,49 @@ function Pr(e, t, n) {
|
|
|
3199
3247
|
status: "pending"
|
|
3200
3248
|
} : r;
|
|
3201
3249
|
}
|
|
3202
|
-
function
|
|
3250
|
+
function Rr(e) {
|
|
3203
3251
|
let t = e.callbacks.preserveScrollContinuity;
|
|
3204
3252
|
if (t !== void 0) {
|
|
3205
|
-
t(() =>
|
|
3253
|
+
t(() => zr(e));
|
|
3206
3254
|
return;
|
|
3207
3255
|
}
|
|
3208
|
-
|
|
3256
|
+
zr(e);
|
|
3209
3257
|
}
|
|
3210
|
-
function
|
|
3258
|
+
function zr(e) {
|
|
3211
3259
|
let t = e.state.panel;
|
|
3212
3260
|
if (t === void 0) return;
|
|
3213
|
-
let n =
|
|
3261
|
+
let n = Vr(t), r = J(e, t, "inspector"), i = Ar(r);
|
|
3214
3262
|
e.state.feedback = i.feedback;
|
|
3215
3263
|
let a = e.currentEntry()?.manifest, o = t.querySelector(".designer-inspector-data-flow-content") ?? t, s = t.ownerDocument.createElement("div");
|
|
3216
|
-
|
|
3264
|
+
ee(s, a?.editorDescriptor?.data, {
|
|
3217
3265
|
document: e.callbacks.getDocument(),
|
|
3218
3266
|
interaction: e.callbacks.getInteraction(),
|
|
3219
3267
|
catalog: e.callbacks.getCatalog(),
|
|
3220
|
-
getDatasetFields: () =>
|
|
3268
|
+
getDatasetFields: () => ci(e)
|
|
3221
3269
|
});
|
|
3222
3270
|
let c = o.querySelector(".designer-dataset-actions"), l = o.querySelector("[data-ds-section=\"preview\"]") ?? c;
|
|
3223
3271
|
if (l !== null) {
|
|
3224
3272
|
for (; s.firstChild !== null;) l.before(s.firstChild);
|
|
3225
|
-
|
|
3273
|
+
gr(o);
|
|
3226
3274
|
} else for (; s.firstChild !== null;) o.appendChild(s.firstChild);
|
|
3227
|
-
|
|
3275
|
+
ti(e, J(e, t, "workbench")), bn(t, r);
|
|
3228
3276
|
let u = e.callbacks.getWorkbenchHost?.();
|
|
3229
|
-
u !== void 0 && bn(u,
|
|
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 });
|
|
3230
3278
|
}
|
|
3231
|
-
function
|
|
3279
|
+
function Br(e) {
|
|
3232
3280
|
let t = e.state.panel;
|
|
3233
3281
|
if (t === void 0) return;
|
|
3234
|
-
let n =
|
|
3235
|
-
$n(t,
|
|
3282
|
+
let n = J(e, t, "inspector");
|
|
3283
|
+
$n(t, vr(n)), Qn(t, K(n));
|
|
3236
3284
|
}
|
|
3237
|
-
function
|
|
3285
|
+
function Vr(e) {
|
|
3238
3286
|
let t = e.getRootNode()?.activeElement;
|
|
3239
3287
|
if (t != null && t !== e) return t.closest("[data-data-entry]")?.dataset.dataEntry;
|
|
3240
3288
|
}
|
|
3241
|
-
function
|
|
3289
|
+
function Hr(e) {
|
|
3242
3290
|
let t = e.currentComponent()?.dataSource ?? null, n = t !== null || e.state.mode !== "none";
|
|
3243
3291
|
if (!n) return { configured: !1 };
|
|
3244
|
-
let r =
|
|
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);
|
|
3245
3293
|
return {
|
|
3246
3294
|
configured: n,
|
|
3247
3295
|
...r === void 0 ? {} : { unavailable: r },
|
|
@@ -3251,35 +3299,35 @@ function zr(e) {
|
|
|
3251
3299
|
...s ? { empty: s } : {}
|
|
3252
3300
|
};
|
|
3253
3301
|
}
|
|
3254
|
-
function
|
|
3302
|
+
function Ur(e, t) {
|
|
3255
3303
|
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";
|
|
3256
3304
|
if (r) return e.callbacks.getCatalogPort() === void 0 ? "port-missing" : e.state.draft !== void 0 && e.state.descriptor === void 0 ? "instance-missing" : void 0;
|
|
3257
3305
|
if (i) return e.callbacks.getHostCatalogPort?.() === void 0 ? "port-missing" : void 0;
|
|
3258
3306
|
if (a) return e.callbacks.getResourcePort() === void 0 ? "port-missing" : void 0;
|
|
3259
3307
|
}
|
|
3260
|
-
function
|
|
3308
|
+
function Wr(e) {
|
|
3261
3309
|
if (e.state.preview.status === "error") return e.state.preview.message;
|
|
3262
3310
|
if (e.catalogController.status === "error") return "catalog";
|
|
3263
3311
|
}
|
|
3264
|
-
function
|
|
3312
|
+
function Gr(e) {
|
|
3265
3313
|
if (e.status !== "ready" || e.rawValue === void 0) return !1;
|
|
3266
3314
|
let t = e.rawValue;
|
|
3267
3315
|
if (typeof t != "object" || !t || Array.isArray(t)) return !1;
|
|
3268
3316
|
let n = t.rows;
|
|
3269
3317
|
return Array.isArray(n) && n.length === 0;
|
|
3270
3318
|
}
|
|
3271
|
-
function
|
|
3319
|
+
function q(e, t) {
|
|
3272
3320
|
let n = e.state.panel;
|
|
3273
3321
|
if (n === void 0) return;
|
|
3274
3322
|
let r = e.callbacks.getWorkbenchHost?.();
|
|
3275
3323
|
for (let t of [n, r]) {
|
|
3276
3324
|
if (t === void 0) continue;
|
|
3277
|
-
let r =
|
|
3278
|
-
|
|
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));
|
|
3279
3327
|
}
|
|
3280
|
-
On(n,
|
|
3328
|
+
On(n, J(e, n, "inspector").dataState), t?.();
|
|
3281
3329
|
}
|
|
3282
|
-
function
|
|
3330
|
+
function Kr(e) {
|
|
3283
3331
|
let t = e.state.bindingOpenRoleId;
|
|
3284
3332
|
if (t === null) return;
|
|
3285
3333
|
e.state.bindingOpenRoleId = null;
|
|
@@ -3289,20 +3337,20 @@ function Ur(e) {
|
|
|
3289
3337
|
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"));
|
|
3290
3338
|
if (n === void 0) continue;
|
|
3291
3339
|
let i = r.querySelector("[data-ds-section=\"source\"]");
|
|
3292
|
-
i !== null && (i.dataset.dsContentKey =
|
|
3340
|
+
i !== null && (i.dataset.dsContentKey = hn("source", J(e, n, Zr(r, n))));
|
|
3293
3341
|
}
|
|
3294
3342
|
}
|
|
3295
|
-
function
|
|
3343
|
+
function qr(e) {
|
|
3296
3344
|
let t = e.state.panel;
|
|
3297
3345
|
if (t === void 0) return;
|
|
3298
|
-
let n =
|
|
3299
|
-
for (let e of r) for (let t of e?.querySelectorAll("[data-dataset-results]") ?? []) t.replaceWith(
|
|
3300
|
-
|
|
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));
|
|
3348
|
+
q(e);
|
|
3301
3349
|
}
|
|
3302
|
-
function
|
|
3303
|
-
e.cancelPreview(), e.state.preview =
|
|
3350
|
+
function Jr(e) {
|
|
3351
|
+
e.cancelPreview(), e.state.preview = N(e.state.preview.open), q(e), e.catalogController.retry();
|
|
3304
3352
|
}
|
|
3305
|
-
function
|
|
3353
|
+
function Yr(e, t) {
|
|
3306
3354
|
let n = t === "mapping" || t === "preview" ? t : "source";
|
|
3307
3355
|
if (n === e.state.activeStep) return;
|
|
3308
3356
|
e.state.activeStep = n;
|
|
@@ -3314,7 +3362,7 @@ function Kr(e, t) {
|
|
|
3314
3362
|
e.setAttribute("aria-current", t ? "step" : "false");
|
|
3315
3363
|
}
|
|
3316
3364
|
}
|
|
3317
|
-
function
|
|
3365
|
+
function Xr(e) {
|
|
3318
3366
|
let t = e.state;
|
|
3319
3367
|
if (t.mode === "static") return { valueRef: {
|
|
3320
3368
|
kind: "inline",
|
|
@@ -3341,11 +3389,11 @@ function qr(e) {
|
|
|
3341
3389
|
}
|
|
3342
3390
|
};
|
|
3343
3391
|
}
|
|
3344
|
-
function
|
|
3392
|
+
function Zr(e, t) {
|
|
3345
3393
|
return e === t ? "inspector" : "workbench";
|
|
3346
3394
|
}
|
|
3347
|
-
function
|
|
3348
|
-
let r = e.currentComponent()?.dataSource, i = e.currentComponent(), a =
|
|
3395
|
+
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" ? {
|
|
3349
3397
|
resourceType: r.resourceType,
|
|
3350
3398
|
resourceId: r.resourceId
|
|
3351
3399
|
} : u?.source.kind === "host-resource" ? {
|
|
@@ -3356,8 +3404,8 @@ function q(e, t, n) {
|
|
|
3356
3404
|
panel: t,
|
|
3357
3405
|
surface: n,
|
|
3358
3406
|
dataValue: o,
|
|
3359
|
-
instance:
|
|
3360
|
-
datasetInstances: e.state.descriptor === void 0 ? [] :
|
|
3407
|
+
instance: Lr(e.callbacks.getDocument(), o, a),
|
|
3408
|
+
datasetInstances: e.state.descriptor === void 0 ? [] : Pe(e.callbacks.getDocument(), e.state.descriptor.datasetId),
|
|
3361
3409
|
selectedDatasetInstanceId: e.state.datasetInstanceId,
|
|
3362
3410
|
groupOpenOverrides: e.state.groupOpenOverrides,
|
|
3363
3411
|
onToggleGroup: (t, n, r) => {
|
|
@@ -3373,8 +3421,8 @@ function q(e, t, n) {
|
|
|
3373
3421
|
e.state.descriptor?.datasetId ?? null
|
|
3374
3422
|
]),
|
|
3375
3423
|
mode: e.state.mode,
|
|
3376
|
-
availableModes:
|
|
3377
|
-
dataState: Dn(
|
|
3424
|
+
availableModes: si(e),
|
|
3425
|
+
dataState: Dn(Hr(e)),
|
|
3378
3426
|
...d === void 0 ? {} : { hostResource: d },
|
|
3379
3427
|
variableSourceId: r?.type === "variable" ? r.variableId : e.state.variableSourceId,
|
|
3380
3428
|
staticDraft: e.state.staticDraft,
|
|
@@ -3401,24 +3449,24 @@ function q(e, t, n) {
|
|
|
3401
3449
|
})),
|
|
3402
3450
|
catalogAvailable: e.callbacks.getCatalogPort() !== void 0,
|
|
3403
3451
|
resourceAvailable: e.callbacks.getCatalogPort() !== void 0,
|
|
3404
|
-
hostResourceSelectionAvailable: e.callbacks.isHostResourceSelectionButtonVisible?.() === !0 && i !== void 0 && !("dataValue" in i) &&
|
|
3405
|
-
link:
|
|
3452
|
+
hostResourceSelectionAvailable: e.callbacks.isHostResourceSelectionButtonVisible?.() === !0 && i !== void 0 && !("dataValue" in i) && O(e.currentEntry()?.manifest),
|
|
3453
|
+
link: oi(e),
|
|
3406
3454
|
bindingOpenRoleId: e.state.bindingOpenRoleId,
|
|
3407
3455
|
feedback: e.state.feedbackText,
|
|
3408
|
-
dirty:
|
|
3456
|
+
dirty: ei(e, r ?? null),
|
|
3409
3457
|
canUndo: e.callbacks.canUndo?.() ?? !1,
|
|
3410
3458
|
confirmClose: e.state.confirmClose,
|
|
3411
3459
|
preview: e.state.preview,
|
|
3412
3460
|
activeStep: e.state.activeStep,
|
|
3413
3461
|
authoring: e.state.authoring,
|
|
3414
3462
|
...(() => {
|
|
3415
|
-
let t =
|
|
3463
|
+
let t = Qr(e, o);
|
|
3416
3464
|
return t === void 0 ? {} : { pushDelivery: t };
|
|
3417
3465
|
})(),
|
|
3418
|
-
|
|
3466
|
+
...$r(e)
|
|
3419
3467
|
};
|
|
3420
3468
|
}
|
|
3421
|
-
function
|
|
3469
|
+
function Qr(e, t) {
|
|
3422
3470
|
if (t?.kind !== "data-source-field") return;
|
|
3423
3471
|
let n = e.callbacks.getDocument();
|
|
3424
3472
|
if (n === void 0) return;
|
|
@@ -3429,30 +3477,30 @@ function Yr(e, t) {
|
|
|
3429
3477
|
}
|
|
3430
3478
|
if (r?.kind === "host-catalog") return typeof e.callbacks.getHostCatalogPort?.()?.subscribe == "function" ? { append: !1 } : void 0;
|
|
3431
3479
|
}
|
|
3432
|
-
function
|
|
3480
|
+
function $r(e) {
|
|
3433
3481
|
let t = e.callbacks.getOverlayHost?.();
|
|
3434
3482
|
return {
|
|
3435
3483
|
...t === void 0 ? {} : { overlayHost: t },
|
|
3436
3484
|
onSelectParameter: (t, n) => e.setParameterValueRef(t, n)
|
|
3437
3485
|
};
|
|
3438
3486
|
}
|
|
3439
|
-
function
|
|
3487
|
+
function ei(e, t) {
|
|
3440
3488
|
let n = e.state.mode;
|
|
3441
3489
|
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;
|
|
3442
3490
|
}
|
|
3443
|
-
function
|
|
3491
|
+
function ti(e, t) {
|
|
3444
3492
|
let n = e.callbacks.getWorkbenchHost?.();
|
|
3445
3493
|
if (n === void 0) return;
|
|
3446
3494
|
let r = n.closest(".designer");
|
|
3447
|
-
|
|
3495
|
+
Dt(n), n.replaceChildren();
|
|
3448
3496
|
let i = t.mode === "dataset" ? t.descriptor !== void 0 : t.mode === "host-resource";
|
|
3449
3497
|
if (!e.state.workbenchOpen || !i) {
|
|
3450
3498
|
n.hidden = !0, n.removeAttribute("role"), n.removeAttribute("aria-modal"), n.removeAttribute("tabindex"), r !== null && delete r.dataset.dataWorkbenchOpen;
|
|
3451
3499
|
return;
|
|
3452
3500
|
}
|
|
3453
|
-
n.hidden = !1, n.setAttribute("role", "dialog"), n.setAttribute("aria-modal", "true"), n.setAttribute("aria-label", d.dataSource.workbench), n.tabIndex = -1, n.appendChild(
|
|
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");
|
|
3454
3502
|
}
|
|
3455
|
-
function
|
|
3503
|
+
function ni(e, t) {
|
|
3456
3504
|
e.state.activeStep = t, t === "preview" && (e.state.preview = {
|
|
3457
3505
|
...e.state.preview,
|
|
3458
3506
|
open: !0
|
|
@@ -3463,14 +3511,14 @@ function $r(e, t) {
|
|
|
3463
3511
|
block: "start"
|
|
3464
3512
|
}), n?.focus({ preventScroll: !0 });
|
|
3465
3513
|
}
|
|
3466
|
-
function
|
|
3514
|
+
function ri(e) {
|
|
3467
3515
|
let t = e.callbacks.getWorkbenchHost?.();
|
|
3468
3516
|
(t?.querySelector("[data-dataset-action=\"close-workbench\"]") ?? t)?.focus({ preventScroll: !0 });
|
|
3469
3517
|
}
|
|
3470
|
-
function
|
|
3518
|
+
function ii(e) {
|
|
3471
3519
|
e.state.panel?.querySelector("[data-dataset-authoring-action=\"fullscreen-edit\"]")?.focus({ preventScroll: !0 });
|
|
3472
3520
|
}
|
|
3473
|
-
function
|
|
3521
|
+
function ai(e, t, n, r) {
|
|
3474
3522
|
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];
|
|
3475
3523
|
for (let e of s) {
|
|
3476
3524
|
let t = [...e?.querySelectorAll(i) ?? []].find((e) => e.getAttribute(a) === n && e.getAttribute(o) === r);
|
|
@@ -3480,7 +3528,7 @@ function ni(e, t, n, r) {
|
|
|
3480
3528
|
}
|
|
3481
3529
|
}
|
|
3482
3530
|
}
|
|
3483
|
-
function
|
|
3531
|
+
function oi(e) {
|
|
3484
3532
|
let t = e.callbacks.getCatalogPort(), n = e.state.preview, r = e.catalogController.error;
|
|
3485
3533
|
return {
|
|
3486
3534
|
catalog: t === void 0 ? { status: "unavailable" } : {
|
|
@@ -3494,38 +3542,38 @@ function ri(e) {
|
|
|
3494
3542
|
variables: e.callbacks.getHostCatalogPort?.() === void 0 ? { status: "unavailable" } : { status: "ready" }
|
|
3495
3543
|
};
|
|
3496
3544
|
}
|
|
3497
|
-
function
|
|
3498
|
-
return
|
|
3545
|
+
function si(e) {
|
|
3546
|
+
return fe(e.currentEntry());
|
|
3499
3547
|
}
|
|
3500
|
-
function
|
|
3548
|
+
function ci(e) {
|
|
3501
3549
|
return e.state.descriptor?.fields.map((e) => ({
|
|
3502
3550
|
id: e.id,
|
|
3503
3551
|
label: e.label
|
|
3504
3552
|
})) ?? [];
|
|
3505
3553
|
}
|
|
3506
|
-
function
|
|
3554
|
+
function li(e) {
|
|
3507
3555
|
e.dataFlowScrollSync.clear();
|
|
3508
3556
|
let t = e.callbacks.getWorkbenchHost?.();
|
|
3509
3557
|
if (t !== void 0) {
|
|
3510
|
-
t.hidden = !0,
|
|
3558
|
+
t.hidden = !0, Dt(t), t.replaceChildren();
|
|
3511
3559
|
let e = t.closest(".designer");
|
|
3512
3560
|
e !== null && delete e.dataset.dataWorkbenchOpen;
|
|
3513
3561
|
}
|
|
3514
3562
|
e.state.panel = void 0, e.state.feedback = void 0;
|
|
3515
3563
|
}
|
|
3516
|
-
function
|
|
3564
|
+
function ui(e, t) {
|
|
3517
3565
|
e.state.feedbackText = t, e.state.feedback !== void 0 && (e.state.feedback.textContent = t);
|
|
3518
3566
|
}
|
|
3519
|
-
function
|
|
3567
|
+
function di(e) {
|
|
3520
3568
|
return e === "source" || e === "mapping" || e === "transform" || e === "preview" || e === "refresh";
|
|
3521
3569
|
}
|
|
3522
|
-
var
|
|
3570
|
+
var fi = /* @__PURE__ */ new Set([
|
|
3523
3571
|
"refreshStrategy",
|
|
3524
3572
|
"refreshInterval",
|
|
3525
3573
|
"pushFallbackInterval",
|
|
3526
3574
|
"pushRetainRows"
|
|
3527
3575
|
]);
|
|
3528
|
-
function
|
|
3576
|
+
function pi(e, t, n) {
|
|
3529
3577
|
switch (e.refreshStrategy) {
|
|
3530
3578
|
case "once": return { mode: "once" };
|
|
3531
3579
|
case "manual": return { mode: "manual" };
|
|
@@ -3534,7 +3582,7 @@ function ui(e, t, n) {
|
|
|
3534
3582
|
intervalSeconds: e.refreshInterval
|
|
3535
3583
|
};
|
|
3536
3584
|
case "push": {
|
|
3537
|
-
let r =
|
|
3585
|
+
let r = mi(e, t, n), i = e.pushFallbackInterval;
|
|
3538
3586
|
return {
|
|
3539
3587
|
mode: "push",
|
|
3540
3588
|
...i === void 0 || i <= 0 ? {} : { fallbackIntervalSeconds: i },
|
|
@@ -3543,17 +3591,17 @@ function ui(e, t, n) {
|
|
|
3543
3591
|
}
|
|
3544
3592
|
}
|
|
3545
3593
|
}
|
|
3546
|
-
function
|
|
3594
|
+
function mi(e, t, n) {
|
|
3547
3595
|
let r = t?.mode === "push" ? t.retain : void 0;
|
|
3548
3596
|
return n?.append !== !0 || e.pushRetainRows === void 0 ? r : {
|
|
3549
3597
|
...r,
|
|
3550
3598
|
rows: e.pushRetainRows
|
|
3551
3599
|
};
|
|
3552
3600
|
}
|
|
3553
|
-
function
|
|
3554
|
-
return
|
|
3601
|
+
function hi(e, t) {
|
|
3602
|
+
return gi(e) === gi(t);
|
|
3555
3603
|
}
|
|
3556
|
-
function
|
|
3604
|
+
function gi(e) {
|
|
3557
3605
|
if (e === void 0 || e.mode === "manual") return "{\"mode\":\"manual\"}";
|
|
3558
3606
|
let t = e.retain;
|
|
3559
3607
|
return JSON.stringify({
|
|
@@ -3567,7 +3615,7 @@ function pi(e) {
|
|
|
3567
3615
|
}
|
|
3568
3616
|
});
|
|
3569
3617
|
}
|
|
3570
|
-
function
|
|
3618
|
+
function _i(e, t) {
|
|
3571
3619
|
let n = e?.components.find((e) => e.id === t);
|
|
3572
3620
|
if (e === void 0 || n === void 0) return { kind: "inline" };
|
|
3573
3621
|
let r = l(n);
|
|
@@ -3581,15 +3629,15 @@ function mi(e, t) {
|
|
|
3581
3629
|
instance: i
|
|
3582
3630
|
};
|
|
3583
3631
|
}
|
|
3584
|
-
function
|
|
3585
|
-
if (
|
|
3632
|
+
function vi(e, t, n, r) {
|
|
3633
|
+
if (hi(t.updatePolicy, n)) return {
|
|
3586
3634
|
ok: !0,
|
|
3587
3635
|
value: null,
|
|
3588
3636
|
diagnostics: []
|
|
3589
3637
|
};
|
|
3590
3638
|
if (n.mode === "push" && r === void 0 && t.updatePolicy?.mode !== "push") return {
|
|
3591
3639
|
ok: !1,
|
|
3592
|
-
diagnostics: [
|
|
3640
|
+
diagnostics: [yi(t.id, d.dataSource.refreshPushUnsupported)]
|
|
3593
3641
|
};
|
|
3594
3642
|
let { updatePolicy: i, ...a } = t, o = n.mode === "manual" ? a : {
|
|
3595
3643
|
...a,
|
|
@@ -3604,7 +3652,7 @@ function hi(e, t, n, r) {
|
|
|
3604
3652
|
diagnostics: []
|
|
3605
3653
|
};
|
|
3606
3654
|
}
|
|
3607
|
-
function
|
|
3655
|
+
function yi(e, t) {
|
|
3608
3656
|
return {
|
|
3609
3657
|
severity: "error",
|
|
3610
3658
|
code: "DATA_SOURCE_UPDATE_POLICY_INVALID",
|
|
@@ -3617,11 +3665,11 @@ function gi(e, t) {
|
|
|
3617
3665
|
message: t
|
|
3618
3666
|
};
|
|
3619
3667
|
}
|
|
3620
|
-
function
|
|
3621
|
-
if (e.refreshStrategy !== "manual" && e.refreshStrategy !== "push") return
|
|
3668
|
+
function bi(e) {
|
|
3669
|
+
if (e.refreshStrategy !== "manual" && e.refreshStrategy !== "push") return pi(e, void 0, void 0);
|
|
3622
3670
|
}
|
|
3623
|
-
function
|
|
3624
|
-
if (
|
|
3671
|
+
function xi(e, t, n) {
|
|
3672
|
+
if (hi(pi(e, t, n), t)) return e;
|
|
3625
3673
|
let { pushFallbackInterval: r, pushRetainRows: i, ...a } = e, o = t?.mode ?? "manual";
|
|
3626
3674
|
return {
|
|
3627
3675
|
...a,
|
|
@@ -3631,32 +3679,32 @@ function vi(e, t, n) {
|
|
|
3631
3679
|
...t?.mode === "push" && t.retain?.rows !== void 0 ? { pushRetainRows: t.retain.rows } : {}
|
|
3632
3680
|
};
|
|
3633
3681
|
}
|
|
3634
|
-
var
|
|
3635
|
-
function
|
|
3636
|
-
return
|
|
3682
|
+
var Si = 300;
|
|
3683
|
+
function Ci(e) {
|
|
3684
|
+
return P(e.state.descriptor, e.state.draft);
|
|
3637
3685
|
}
|
|
3638
|
-
function
|
|
3686
|
+
function wi(e) {
|
|
3639
3687
|
e.state.mode === "dataset" && (e.state.clearAutoApply(), e.state.autoApplyTimer = setTimeout(() => {
|
|
3640
|
-
e.state.autoApplyTimer = void 0, !(e.state.mode !== "dataset" || !e.state.draftDirty) && (
|
|
3641
|
-
},
|
|
3688
|
+
e.state.autoApplyTimer = void 0, !(e.state.mode !== "dataset" || !e.state.draftDirty) && (Ci(e) > 0 || Y(e, { auto: !0 }));
|
|
3689
|
+
}, Si));
|
|
3642
3690
|
}
|
|
3643
|
-
function
|
|
3644
|
-
if (!
|
|
3691
|
+
function Ti(e, t) {
|
|
3692
|
+
if (!Wi(e).includes(t)) return;
|
|
3645
3693
|
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") {
|
|
3646
3694
|
e.catalogController.clear(), e.renderSurface();
|
|
3647
3695
|
return;
|
|
3648
3696
|
}
|
|
3649
3697
|
let n = e.currentComponent()?.dataSource;
|
|
3650
|
-
n?.type === "dataset" && e.state.descriptor?.datasetId !== n.datasetId ? (e.state.catalogOpen = !1, e.renderSurface(),
|
|
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();
|
|
3651
3699
|
}
|
|
3652
|
-
async function
|
|
3653
|
-
if (!
|
|
3654
|
-
let r = e.currentComponent()?.id, i = e.currentComponent(), a =
|
|
3655
|
-
if (o === void 0 || e.currentComponent()?.id !== r || !
|
|
3700
|
+
async function Ei(e, t, n = {}) {
|
|
3701
|
+
if (!Wi(e).includes("dataset")) return;
|
|
3702
|
+
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;
|
|
3656
3704
|
let s = e.currentEntry()?.manifest.dataBinding?.roles ?? [], c = a?.source.datasetId === t, l = c ? a?.instance : void 0;
|
|
3657
|
-
e.state.descriptor = o, e.state.datasetInstanceId = c ? a?.instanceId ?? null : null, e.state.draft = l !== void 0 && l.source.kind === "dataset" ?
|
|
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);
|
|
3658
3706
|
}
|
|
3659
|
-
function
|
|
3707
|
+
function Di(e, t) {
|
|
3660
3708
|
let n = e.callbacks.getDocument(), r = e.state.descriptor, i = e.state.draft;
|
|
3661
3709
|
if (n !== void 0 && r !== void 0 && i !== void 0) {
|
|
3662
3710
|
if (t === null) e.state.datasetInstanceId = null;
|
|
@@ -3668,28 +3716,28 @@ function wi(e, t) {
|
|
|
3668
3716
|
params: { ...a.params }
|
|
3669
3717
|
};
|
|
3670
3718
|
}
|
|
3671
|
-
e.state.feedbackText = "", e.state.draftDirty =
|
|
3719
|
+
e.state.feedbackText = "", e.state.draftDirty = Ri(e), e.renderSurface(), Y(e);
|
|
3672
3720
|
}
|
|
3673
3721
|
}
|
|
3674
|
-
function
|
|
3722
|
+
function Y(e, t = {}) {
|
|
3675
3723
|
if (e.state.mode === "host-resource") return;
|
|
3676
3724
|
e.state.clearAutoApply();
|
|
3677
3725
|
let n = e.currentComponent(), r = e.callbacks.getDocument();
|
|
3678
3726
|
if (n === void 0 || r === void 0) return;
|
|
3679
3727
|
let i;
|
|
3680
|
-
if (e.state.mode === "none") i =
|
|
3728
|
+
if (e.state.mode === "none") i = Ce(r, n.id);
|
|
3681
3729
|
else if (e.state.mode === "static") {
|
|
3682
3730
|
let t = e.currentEntry();
|
|
3683
|
-
i =
|
|
3684
|
-
} else if (e.state.mode === "variable") i =
|
|
3731
|
+
i = he(n.id, e.state.staticDraft, t?.manifest.staticData, e.state.staticBinding, t?.manifest.dataBinding?.roles ?? []);
|
|
3732
|
+
} else if (e.state.mode === "variable") i = we(r, n.id, e.state.variableSourceId);
|
|
3685
3733
|
else {
|
|
3686
3734
|
let t = e.state.descriptor, a = e.state.draft;
|
|
3687
3735
|
if (t === void 0 || a === void 0) {
|
|
3688
3736
|
e.setFeedback(d.dataset.incomplete);
|
|
3689
3737
|
return;
|
|
3690
3738
|
}
|
|
3691
|
-
let o =
|
|
3692
|
-
i =
|
|
3739
|
+
let o = bi(e.state.authoring);
|
|
3740
|
+
i = ge({
|
|
3693
3741
|
document: r,
|
|
3694
3742
|
componentId: n.id,
|
|
3695
3743
|
descriptor: t,
|
|
@@ -3711,16 +3759,16 @@ function J(e, t = {}) {
|
|
|
3711
3759
|
let o = a.value.components.find((e) => e.id === n.id), s = o === void 0 ? null : l(o);
|
|
3712
3760
|
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();
|
|
3713
3761
|
}
|
|
3714
|
-
function
|
|
3715
|
-
let t = e.currentComponent(), n = t?.id ?? null, r = e.callbacks.getDocument(), i =
|
|
3716
|
-
if (n === e.state.focusedComponentId &&
|
|
3762
|
+
function Oi(e) {
|
|
3763
|
+
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) {
|
|
3717
3765
|
e.state.syncedDataSource = o, e.state.syncedInstanceId = s, e.state.datasetInstanceId = s;
|
|
3718
|
-
let i =
|
|
3719
|
-
i.kind !== "inline" && (e.state.authoring =
|
|
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))));
|
|
3720
3768
|
return;
|
|
3721
3769
|
}
|
|
3722
|
-
let c = n === e.state.focusedComponentId, u = c ? e.state.activeStep : "source", d = c ? e.state.authoring :
|
|
3723
|
-
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 =
|
|
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") {
|
|
3724
3772
|
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;
|
|
3725
3773
|
return;
|
|
3726
3774
|
}
|
|
@@ -3729,13 +3777,13 @@ function Ti(e) {
|
|
|
3729
3777
|
return;
|
|
3730
3778
|
}
|
|
3731
3779
|
if (o?.type === "dataset") {
|
|
3732
|
-
if (e.state.mode = "dataset", e.state.catalogOpen = !1, !
|
|
3780
|
+
if (e.state.mode = "dataset", e.state.catalogOpen = !1, !Wi(e).includes("dataset")) {
|
|
3733
3781
|
e.state.descriptor = void 0, e.state.draft = void 0;
|
|
3734
3782
|
return;
|
|
3735
3783
|
}
|
|
3736
3784
|
if (e.state.descriptor?.datasetId === o.datasetId) {
|
|
3737
3785
|
let n = e.currentEntry()?.manifest.dataBinding?.roles ?? [];
|
|
3738
|
-
e.state.draft = i?.instance !== void 0 && i.instance.source.kind === "dataset" ?
|
|
3786
|
+
e.state.draft = i?.instance !== void 0 && i.instance.source.kind === "dataset" ? oe(e.state.descriptor, i.instance, t?.dataBinding, n) : le(e.state.descriptor, o, n);
|
|
3739
3787
|
return;
|
|
3740
3788
|
}
|
|
3741
3789
|
return e.state.descriptor = void 0, e.state.draft = void 0, { datasetId: o.datasetId };
|
|
@@ -3746,11 +3794,11 @@ function Ti(e) {
|
|
|
3746
3794
|
}
|
|
3747
3795
|
e.state.mode = "none", e.state.variableSourceId = "", e.state.descriptor = void 0, e.state.draft = void 0, e.state.catalogOpen = !1;
|
|
3748
3796
|
}
|
|
3749
|
-
function
|
|
3797
|
+
function ki(e, t) {
|
|
3750
3798
|
let n = e.currentEntry()?.manifest.dataBinding?.roles.find((e) => e.id === t.dataset.datasetBindingRoleId), r = t.dataset.datasetBindingField;
|
|
3751
|
-
e.state.draft !== void 0 && n !== void 0 && r !== void 0 && (e.state.draft =
|
|
3799
|
+
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)));
|
|
3752
3800
|
}
|
|
3753
|
-
function
|
|
3801
|
+
function Ai(e, t) {
|
|
3754
3802
|
let n = e.currentEntry()?.manifest.dataBinding?.roles.find((e) => e.id === t.dataset.datasetBindingRoleId);
|
|
3755
3803
|
if (e.state.draft === void 0 || e.state.descriptor === void 0 || n === void 0) return;
|
|
3756
3804
|
let r = e.state.descriptor.fields.filter((e) => n.valueTypes.includes(e.valueType)).slice(0, n.maxFields).map((e) => e.id);
|
|
@@ -3760,42 +3808,42 @@ function Di(e, t) {
|
|
|
3760
3808
|
...e.state.draft.fields,
|
|
3761
3809
|
[n.id]: t.dataset.datasetBindingRoleAction === "clear" ? [] : r
|
|
3762
3810
|
}
|
|
3763
|
-
},
|
|
3811
|
+
}, X(e);
|
|
3764
3812
|
}
|
|
3765
|
-
function
|
|
3813
|
+
function ji(e) {
|
|
3766
3814
|
let t = e.state.descriptor;
|
|
3767
3815
|
if (e.state.draft === void 0 || t === void 0) return;
|
|
3768
|
-
let n =
|
|
3816
|
+
let n = ue(t, e.currentEntry()?.manifest.dataBinding?.roles ?? []);
|
|
3769
3817
|
e.state.draft = {
|
|
3770
3818
|
...e.state.draft,
|
|
3771
3819
|
fields: n
|
|
3772
|
-
},
|
|
3820
|
+
}, X(e);
|
|
3773
3821
|
}
|
|
3774
|
-
function
|
|
3822
|
+
function Mi(e, t, n) {
|
|
3775
3823
|
if (t === "" || e.state.draft === void 0) return;
|
|
3776
3824
|
let r = e.state.draft.params[t];
|
|
3777
3825
|
r?.kind === "inline" && e.state.parameterInlineMemory.set(t, r.value);
|
|
3778
3826
|
let i = e.state.parameterInlineMemory.get(t), a = n.kind === "inline" && n.value === null ? {
|
|
3779
3827
|
kind: "inline",
|
|
3780
|
-
value: i === void 0 ?
|
|
3828
|
+
value: i === void 0 ? Te(e.state.descriptor, t) : i
|
|
3781
3829
|
} : n;
|
|
3782
|
-
|
|
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")));
|
|
3783
3831
|
}
|
|
3784
|
-
function
|
|
3832
|
+
function Ni(e, t) {
|
|
3785
3833
|
let n = t.dataset.valueRefInline;
|
|
3786
3834
|
if (n === void 0 || e.state.draft === void 0 || e.state.descriptor === void 0) return;
|
|
3787
|
-
let r =
|
|
3835
|
+
let r = Pi(n), i = e.state.descriptor.parameters.find((e) => e.name === r);
|
|
3788
3836
|
if (i === void 0) return;
|
|
3789
|
-
let a =
|
|
3790
|
-
a !== void 0 && (e.state.draft =
|
|
3837
|
+
let a = de(t, i);
|
|
3838
|
+
a !== void 0 && (e.state.draft = pe(e.state.draft, r, {
|
|
3791
3839
|
kind: "inline",
|
|
3792
3840
|
value: a
|
|
3793
|
-
}),
|
|
3841
|
+
}), X(e, ["source", "preview"], () => Li(e, `[data-value-ref-inline="${n}"]`, "caret-end"), { deferSurfaceWhilePickerOpen: !0 }));
|
|
3794
3842
|
}
|
|
3795
|
-
function
|
|
3843
|
+
function Pi(e) {
|
|
3796
3844
|
return e.startsWith("parameter:") ? e.slice(10) : e;
|
|
3797
3845
|
}
|
|
3798
|
-
function
|
|
3846
|
+
function Fi(e, t) {
|
|
3799
3847
|
let n = t.dataset.datasetBindingRole;
|
|
3800
3848
|
if (n === void 0 || e.state.draft === void 0) return;
|
|
3801
3849
|
let r = t.value || t.selectedOptions[0]?.value || "";
|
|
@@ -3805,66 +3853,76 @@ function Mi(e, t) {
|
|
|
3805
3853
|
...e.state.draft.fields,
|
|
3806
3854
|
[n]: r === "" ? [] : [r]
|
|
3807
3855
|
}
|
|
3808
|
-
},
|
|
3856
|
+
}, X(e, ["source", "preview"], () => Li(e, `[data-dataset-binding-role="${n}"]`));
|
|
3809
3857
|
}
|
|
3810
|
-
function
|
|
3811
|
-
e.state.draftDirty =
|
|
3812
|
-
...
|
|
3858
|
+
function X(e, t = ["source", "preview"], n, r = {}) {
|
|
3859
|
+
if (e.state.draftDirty = Ri(e), e.state.confirmClose = !1, e.state.preview = {
|
|
3860
|
+
...N(e.state.preview.open),
|
|
3813
3861
|
tab: e.state.preview.tab
|
|
3814
|
-
},
|
|
3862
|
+
}, r.deferSurfaceWhilePickerOpen === !0 && Ii(e)) {
|
|
3863
|
+
e.state.clearAutoApply(), Br(e);
|
|
3864
|
+
return;
|
|
3865
|
+
}
|
|
3866
|
+
q(e, n), e.state.mode === "dataset" && wi(e);
|
|
3815
3867
|
}
|
|
3816
|
-
function
|
|
3868
|
+
function Ii(e) {
|
|
3869
|
+
let t = e.state.workbenchOpen ? e.callbacks.getWorkbenchHost?.() : e.state.panel;
|
|
3870
|
+
if (t == null) return !1;
|
|
3871
|
+
let n = t.getRootNode();
|
|
3872
|
+
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
|
+
}
|
|
3874
|
+
function Li(e, t, n = "keep") {
|
|
3817
3875
|
let r = (e.state.workbenchOpen ? e.callbacks.getWorkbenchHost?.() : e.state.panel)?.querySelector(t);
|
|
3818
3876
|
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;
|
|
3819
3877
|
let i = r.value.length;
|
|
3820
3878
|
r.setSelectionRange(i, i);
|
|
3821
3879
|
}
|
|
3822
|
-
function
|
|
3823
|
-
let t = e.currentComponent(), n =
|
|
3880
|
+
function Ri(e) {
|
|
3881
|
+
let t = e.currentComponent(), n = ie(e.callbacks.getDocument(), t), r = n?.source ?? t?.dataSource, i = e.state.draft;
|
|
3824
3882
|
if (r?.type !== "dataset" || i === void 0) return i !== void 0;
|
|
3825
3883
|
if (r.datasetId !== i.datasetId) return !0;
|
|
3826
3884
|
let a = (e.currentEntry()?.manifest.dataBinding?.roles ?? []).length === 0 ? null : { fields: i.fields };
|
|
3827
|
-
return !(n?.instance === void 0 ?
|
|
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);
|
|
3828
3886
|
}
|
|
3829
|
-
function
|
|
3887
|
+
function zi(e) {
|
|
3830
3888
|
return JSON.stringify(Object.keys(e).sort().map((t) => [t, e[t]]));
|
|
3831
3889
|
}
|
|
3832
|
-
function
|
|
3833
|
-
let t = Object.keys(e).sort().map((t) => [t,
|
|
3890
|
+
function Bi(e) {
|
|
3891
|
+
let t = Object.keys(e).sort().map((t) => [t, ce(se(e[t])) ?? null]);
|
|
3834
3892
|
return JSON.stringify(t);
|
|
3835
3893
|
}
|
|
3836
|
-
function
|
|
3837
|
-
let t = Object.keys(e).sort().map((t) => [t,
|
|
3894
|
+
function Vi(e) {
|
|
3895
|
+
let t = Object.keys(e).sort().map((t) => [t, ce(e[t]) ?? null]);
|
|
3838
3896
|
return JSON.stringify(t);
|
|
3839
3897
|
}
|
|
3840
|
-
function
|
|
3898
|
+
function Hi(e, t) {
|
|
3841
3899
|
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);
|
|
3842
3900
|
}
|
|
3843
|
-
function
|
|
3901
|
+
function Ui(e) {
|
|
3844
3902
|
e.state.clearAutoApply();
|
|
3845
3903
|
let t = e.currentComponent()?.dataSource, n = e.state.descriptor;
|
|
3846
|
-
t?.type === "dataset" && n !== void 0 && (e.state.draft =
|
|
3904
|
+
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();
|
|
3847
3905
|
}
|
|
3848
|
-
function
|
|
3849
|
-
return
|
|
3906
|
+
function Wi(e) {
|
|
3907
|
+
return fe(e.currentEntry()).filter((t) => t !== "dataset" || e.callbacks.getCatalogPort() !== void 0);
|
|
3850
3908
|
}
|
|
3851
|
-
function
|
|
3909
|
+
function Gi(e, t) {
|
|
3852
3910
|
return JSON.stringify(e) === JSON.stringify(t);
|
|
3853
3911
|
}
|
|
3854
|
-
function
|
|
3912
|
+
function Ki(e) {
|
|
3855
3913
|
let t = e.callbacks.getDocument(), n = e.currentComponent();
|
|
3856
3914
|
if (t === void 0 || n === void 0) return;
|
|
3857
|
-
let r =
|
|
3915
|
+
let r = _i(t, n.id);
|
|
3858
3916
|
if (r.kind === "inline") {
|
|
3859
3917
|
e.setFeedback(d.dataSource.refreshPolicyPendingApply);
|
|
3860
3918
|
return;
|
|
3861
3919
|
}
|
|
3862
3920
|
if (r.kind === "read-only") {
|
|
3863
|
-
e.setFeedback(d.dataSource.refreshPolicyReadOnly), e.state.authoring =
|
|
3921
|
+
e.setFeedback(d.dataSource.refreshPolicyReadOnly), e.state.authoring = xi(e.state.authoring, r.instance.updatePolicy, void 0);
|
|
3864
3922
|
return;
|
|
3865
3923
|
}
|
|
3866
|
-
let i =
|
|
3867
|
-
e.state.authoring =
|
|
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);
|
|
3868
3926
|
};
|
|
3869
3927
|
if (!o.ok) {
|
|
3870
3928
|
e.callbacks.report(o.diagnostics), e.setFeedback(o.diagnostics[0]?.message ?? ""), s();
|
|
@@ -3874,26 +3932,26 @@ function Hi(e) {
|
|
|
3874
3932
|
let c = e.callbacks.executeTransaction(o.value);
|
|
3875
3933
|
c.ok || (e.callbacks.report(c.diagnostics), e.setFeedback(c.diagnostics[0]?.message ?? ""), s());
|
|
3876
3934
|
}
|
|
3877
|
-
function
|
|
3935
|
+
function qi(e, t) {
|
|
3878
3936
|
e.state.preview = {
|
|
3879
3937
|
...e.state.preview,
|
|
3880
3938
|
tab: t
|
|
3881
|
-
},
|
|
3939
|
+
}, q(e);
|
|
3882
3940
|
}
|
|
3883
|
-
async function
|
|
3941
|
+
async function Ji(t) {
|
|
3884
3942
|
let n = t.state.descriptor, i = t.state.draft, o = t.currentComponent(), s = t.callbacks.getCatalogPort();
|
|
3885
3943
|
if (n === void 0 || i === void 0 || o === void 0 || s === void 0) return;
|
|
3886
3944
|
t.cancelPreview();
|
|
3887
3945
|
let c = new AbortController(), l = t.state.previewGeneration;
|
|
3888
3946
|
t.state.previewController = c, t.state.preview = {
|
|
3889
|
-
...
|
|
3947
|
+
...N(!0),
|
|
3890
3948
|
status: "loading",
|
|
3891
3949
|
tab: t.state.preview.tab === "request" ? "response" : t.state.preview.tab,
|
|
3892
3950
|
message: d.dataSource.previewLoading
|
|
3893
3951
|
}, t.renderSurface();
|
|
3894
3952
|
let u, f = new Promise((e) => {
|
|
3895
3953
|
u = setTimeout(() => {
|
|
3896
|
-
l === t.state.previewGeneration && !c.signal.aborted && (c.abort(),
|
|
3954
|
+
l === t.state.previewGeneration && !c.signal.aborted && (c.abort(), Z(t)), e(void 0);
|
|
3897
3955
|
}, 15e3);
|
|
3898
3956
|
});
|
|
3899
3957
|
try {
|
|
@@ -3903,19 +3961,19 @@ async function Wi(t) {
|
|
|
3903
3961
|
}), f]);
|
|
3904
3962
|
if (n === void 0 || c.signal.aborted || l !== t.state.previewGeneration) return;
|
|
3905
3963
|
if (!n.ok) {
|
|
3906
|
-
t.callbacks.report(n.diagnostics),
|
|
3964
|
+
t.callbacks.report(n.diagnostics), Z(t);
|
|
3907
3965
|
return;
|
|
3908
3966
|
}
|
|
3909
3967
|
let u = r(n.value);
|
|
3910
3968
|
if (!u.ok || u.value.datasetId !== i.datasetId) {
|
|
3911
|
-
|
|
3969
|
+
Z(t);
|
|
3912
3970
|
return;
|
|
3913
3971
|
}
|
|
3914
|
-
let p = await Promise.race([
|
|
3972
|
+
let p = await Promise.race([Yi(t, i, c), f]);
|
|
3915
3973
|
if (c.signal.aborted || l !== t.state.previewGeneration) return;
|
|
3916
3974
|
if (p === void 0) {
|
|
3917
3975
|
t.state.previewController = void 0, t.state.preview = {
|
|
3918
|
-
...
|
|
3976
|
+
...N(!0),
|
|
3919
3977
|
status: "error",
|
|
3920
3978
|
message: d.dataSource.testVariableUnavailable
|
|
3921
3979
|
}, t.state.feedbackText = t.state.preview.message, t.renderSurface();
|
|
@@ -3923,27 +3981,27 @@ async function Wi(t) {
|
|
|
3923
3981
|
}
|
|
3924
3982
|
let m = a(u.value.parameters, p);
|
|
3925
3983
|
if (!m.ok) {
|
|
3926
|
-
|
|
3984
|
+
Z(t);
|
|
3927
3985
|
return;
|
|
3928
3986
|
}
|
|
3929
3987
|
let h = Date.now(), g = await Promise.race([s.query({
|
|
3930
|
-
dataSourceId:
|
|
3988
|
+
dataSourceId: $i(o),
|
|
3931
3989
|
datasetId: i.datasetId,
|
|
3932
3990
|
params: m.value
|
|
3933
3991
|
}, { signal: c.signal }), f]);
|
|
3934
3992
|
if (c.signal.aborted || l !== t.state.previewGeneration || (t.state.previewController = void 0, g === void 0)) return;
|
|
3935
3993
|
if (!g.ok) {
|
|
3936
|
-
t.callbacks.report(g.diagnostics),
|
|
3994
|
+
t.callbacks.report(g.diagnostics), Z(t);
|
|
3937
3995
|
return;
|
|
3938
3996
|
}
|
|
3939
3997
|
let _ = e(g.value, { maxBytes: 1048576 });
|
|
3940
3998
|
if (!_.ok) {
|
|
3941
|
-
t.callbacks.report(_.diagnostics),
|
|
3999
|
+
t.callbacks.report(_.diagnostics), Z(t);
|
|
3942
4000
|
return;
|
|
3943
4001
|
}
|
|
3944
|
-
let v =
|
|
4002
|
+
let v = Xi(t, _.value);
|
|
3945
4003
|
if (!v.ok) {
|
|
3946
|
-
t.callbacks.report(v.diagnostics),
|
|
4004
|
+
t.callbacks.report(v.diagnostics), Z(t);
|
|
3947
4005
|
return;
|
|
3948
4006
|
}
|
|
3949
4007
|
t.state.preview = {
|
|
@@ -3951,17 +4009,17 @@ async function Wi(t) {
|
|
|
3951
4009
|
tab: t.state.preview.tab,
|
|
3952
4010
|
rawValue: _.value,
|
|
3953
4011
|
consumerValue: v.value,
|
|
3954
|
-
message: d.dataSource.testReadyWithDuration(
|
|
4012
|
+
message: d.dataSource.testReadyWithDuration(ea(_.value), Math.max(0, Date.now() - h)),
|
|
3955
4013
|
testedAt: (/* @__PURE__ */ new Date()).toLocaleTimeString(),
|
|
3956
4014
|
open: !0
|
|
3957
4015
|
}, t.state.feedbackText = "", t.renderSurface();
|
|
3958
4016
|
} catch {
|
|
3959
|
-
!c.signal.aborted && l === t.state.previewGeneration && (t.state.previewController = void 0,
|
|
4017
|
+
!c.signal.aborted && l === t.state.previewGeneration && (t.state.previewController = void 0, Z(t));
|
|
3960
4018
|
} finally {
|
|
3961
4019
|
u !== void 0 && clearTimeout(u);
|
|
3962
4020
|
}
|
|
3963
4021
|
}
|
|
3964
|
-
async function
|
|
4022
|
+
async function Yi(t, n, r) {
|
|
3965
4023
|
let i = {}, a = t.callbacks.getDocument(), o = /* @__PURE__ */ new Map();
|
|
3966
4024
|
for (let [e, t] of Object.entries(n.params)) {
|
|
3967
4025
|
if (t.kind === "inline") {
|
|
@@ -4015,7 +4073,7 @@ async function Gi(t, n, r) {
|
|
|
4015
4073
|
}
|
|
4016
4074
|
return i;
|
|
4017
4075
|
}
|
|
4018
|
-
function
|
|
4076
|
+
function Xi(n, r) {
|
|
4019
4077
|
let i = n.currentEntry(), a = i?.manifest.dataBinding?.roles ?? [];
|
|
4020
4078
|
if (a.length === 0 || i?.tabularDataAdapter === void 0) return {
|
|
4021
4079
|
ok: !0,
|
|
@@ -4024,7 +4082,7 @@ function Ki(n, r) {
|
|
|
4024
4082
|
};
|
|
4025
4083
|
let o = t(r);
|
|
4026
4084
|
if (!o.ok) return o;
|
|
4027
|
-
let s =
|
|
4085
|
+
let s = A({ fields: n.state.draft?.fields ?? {} }, o.value.fields, a);
|
|
4028
4086
|
if (!s.ok) return s;
|
|
4029
4087
|
try {
|
|
4030
4088
|
let t = i.tabularDataAdapter.adapt({
|
|
@@ -4044,17 +4102,17 @@ function Ki(n, r) {
|
|
|
4044
4102
|
};
|
|
4045
4103
|
}
|
|
4046
4104
|
}
|
|
4047
|
-
function
|
|
4105
|
+
function Z(e) {
|
|
4048
4106
|
e.state.preview = {
|
|
4049
|
-
...
|
|
4107
|
+
...N(!0),
|
|
4050
4108
|
status: "error",
|
|
4051
4109
|
message: d.dataSource.testFailed
|
|
4052
4110
|
}, e.state.feedbackText = e.state.preview.message, e.renderSurface();
|
|
4053
4111
|
}
|
|
4054
|
-
function
|
|
4112
|
+
function Zi(e) {
|
|
4055
4113
|
e.state.previewGeneration++, e.state.previewController?.abort(), e.state.previewController = void 0;
|
|
4056
4114
|
}
|
|
4057
|
-
async function
|
|
4115
|
+
async function Qi(e) {
|
|
4058
4116
|
let t = e.state.preview.rawValue;
|
|
4059
4117
|
if (e.callbacks.requestAuthoringAction?.("copy-data", { value: JSON.stringify(t ?? null) }), t === void 0) {
|
|
4060
4118
|
e.setFeedback(d.dataSource.copyDataUnavailable);
|
|
@@ -4068,11 +4126,11 @@ async function Ji(e) {
|
|
|
4068
4126
|
}
|
|
4069
4127
|
e.setFeedback(n ? d.dataSource.copyDataSuccess : d.dataSource.copyDataFailed);
|
|
4070
4128
|
}
|
|
4071
|
-
function
|
|
4129
|
+
function $i(e) {
|
|
4072
4130
|
let t = l(e);
|
|
4073
4131
|
return t?.kind === "data-source-field" ? t.dataSourceId : e.id;
|
|
4074
4132
|
}
|
|
4075
|
-
function
|
|
4133
|
+
function ea(e) {
|
|
4076
4134
|
if (Array.isArray(e)) return e.length;
|
|
4077
4135
|
if (typeof e == "object" && e && !Array.isArray(e)) {
|
|
4078
4136
|
let t = e.rows;
|
|
@@ -4080,10 +4138,10 @@ function Xi(e) {
|
|
|
4080
4138
|
}
|
|
4081
4139
|
return e === null ? 0 : 1;
|
|
4082
4140
|
}
|
|
4083
|
-
function
|
|
4141
|
+
function ta(e, t, n) {
|
|
4084
4142
|
let r = e.trim();
|
|
4085
4143
|
if (r === "") return n ? null : void 0;
|
|
4086
|
-
if (t === "string" || t === "date") return t === "date" && !
|
|
4144
|
+
if (t === "string" || t === "date") return t === "date" && !na(r) ? void 0 : e;
|
|
4087
4145
|
if (t === "number") {
|
|
4088
4146
|
let e = Number(r);
|
|
4089
4147
|
return Number.isFinite(e) ? e : void 0;
|
|
@@ -4091,33 +4149,33 @@ function Zi(e, t, n) {
|
|
|
4091
4149
|
if (/^true$/i.test(r)) return !0;
|
|
4092
4150
|
if (/^false$/i.test(r)) return !1;
|
|
4093
4151
|
}
|
|
4094
|
-
function
|
|
4152
|
+
function na(e) {
|
|
4095
4153
|
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));
|
|
4096
4154
|
}
|
|
4097
|
-
function
|
|
4155
|
+
function ra(e, t) {
|
|
4098
4156
|
e.state.staticValue = t, e.state.staticDraft = JSON.stringify(t, null, 2), e.setFeedback("");
|
|
4099
4157
|
}
|
|
4100
|
-
function
|
|
4158
|
+
function Q(e) {
|
|
4101
4159
|
let n = t(e.state.staticValue);
|
|
4102
4160
|
return n.ok ? n.value : void 0;
|
|
4103
4161
|
}
|
|
4104
|
-
function
|
|
4162
|
+
function ia(e, n, r = !0) {
|
|
4105
4163
|
let i = t(n);
|
|
4106
4164
|
if (!i.ok) {
|
|
4107
|
-
e.callbacks.report(i.diagnostics), e.setFeedback(
|
|
4165
|
+
e.callbacks.report(i.diagnostics), e.setFeedback(da(e, i.diagnostics[0]));
|
|
4108
4166
|
return;
|
|
4109
4167
|
}
|
|
4110
|
-
e.state.staticValue = i.value, e.state.staticDraft = JSON.stringify(i.value, null, 2), e.state.staticPage =
|
|
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);
|
|
4111
4169
|
}
|
|
4112
|
-
function
|
|
4113
|
-
let a =
|
|
4170
|
+
function aa(e, t, n, r, i = !0) {
|
|
4171
|
+
let a = Q(e), o = a?.fields.find((e) => e.id === n), s = a?.rows[t];
|
|
4114
4172
|
if (a === void 0 || o === void 0 || s === void 0) return;
|
|
4115
|
-
let c =
|
|
4173
|
+
let c = ta(r, o.valueType, o.nullable === !0);
|
|
4116
4174
|
if (c === void 0) {
|
|
4117
4175
|
e.setFeedback(`rows.${t}.${n}:${d.panel.enterValidValue}`);
|
|
4118
4176
|
return;
|
|
4119
4177
|
}
|
|
4120
|
-
|
|
4178
|
+
ia(e, {
|
|
4121
4179
|
fields: a.fields,
|
|
4122
4180
|
rows: a.rows.map((e, r) => r === t ? {
|
|
4123
4181
|
...e,
|
|
@@ -4125,51 +4183,51 @@ function ta(e, t, n, r, i = !0) {
|
|
|
4125
4183
|
} : e)
|
|
4126
4184
|
}, i);
|
|
4127
4185
|
}
|
|
4128
|
-
function
|
|
4186
|
+
function oa(e, t) {
|
|
4129
4187
|
let n = JSON.stringify(t.rows.slice(0, 8), null, 2), r = [e.state.panel, e.callbacks.getWorkbenchHost?.()];
|
|
4130
4188
|
for (let e of r) for (let t of e?.querySelectorAll("[data-static-preview-value]") ?? []) t.textContent = n;
|
|
4131
4189
|
}
|
|
4132
|
-
function
|
|
4133
|
-
let t =
|
|
4190
|
+
function sa(e) {
|
|
4191
|
+
let t = Q(e);
|
|
4134
4192
|
if (t === void 0 || t.rows.length >= 1e4) return;
|
|
4135
|
-
let n = Object.fromEntries(t.fields.map((t) => [t.id, t.nullable === !0 ? null :
|
|
4136
|
-
e.state.staticPage = Math.floor(t.rows.length / e.state.staticPageSize),
|
|
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, {
|
|
4137
4195
|
fields: t.fields,
|
|
4138
4196
|
rows: [...t.rows, n]
|
|
4139
4197
|
});
|
|
4140
4198
|
}
|
|
4141
|
-
function
|
|
4142
|
-
let n =
|
|
4143
|
-
n !== void 0 && n.rows[t] !== void 0 &&
|
|
4199
|
+
function ca(e, t) {
|
|
4200
|
+
let n = Q(e);
|
|
4201
|
+
n !== void 0 && n.rows[t] !== void 0 && ia(e, {
|
|
4144
4202
|
fields: n.fields,
|
|
4145
4203
|
rows: n.rows.filter((e, n) => n !== t)
|
|
4146
4204
|
});
|
|
4147
4205
|
}
|
|
4148
|
-
function
|
|
4206
|
+
function la(e, t = !0) {
|
|
4149
4207
|
let n = e.currentEntry()?.manifest, r = n?.defaultData ?? null;
|
|
4150
4208
|
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();
|
|
4151
4209
|
}
|
|
4152
|
-
function
|
|
4210
|
+
function ua(e, t) {
|
|
4153
4211
|
return t === "number" ? 0 : t === "boolean" ? !1 : t === "date" ? "1970-01-01" : "";
|
|
4154
4212
|
}
|
|
4155
|
-
function
|
|
4213
|
+
function da(e, t) {
|
|
4156
4214
|
if (t === void 0) return d.dataSource.staticInvalid;
|
|
4157
4215
|
let n = t.path.join(".");
|
|
4158
4216
|
return n === "" ? t.message : `${n}:${t.message}`;
|
|
4159
4217
|
}
|
|
4160
|
-
function
|
|
4161
|
-
if (t.dataset.dataSourceStatic !== void 0) return e.state.staticDraft = t.value,
|
|
4218
|
+
function fa(e, t) {
|
|
4219
|
+
if (t.dataset.dataSourceStatic !== void 0) return e.state.staticDraft = t.value, ga(e), !0;
|
|
4162
4220
|
if (t.dataset.staticScalar !== void 0) {
|
|
4163
4221
|
if (t.dataset.staticScalar === "number") {
|
|
4164
4222
|
let n = Number(t.value);
|
|
4165
4223
|
if (!Number.isFinite(n)) return !0;
|
|
4166
|
-
|
|
4167
|
-
} else t.dataset.staticScalar === "string" &&
|
|
4224
|
+
ra(e, n);
|
|
4225
|
+
} else t.dataset.staticScalar === "string" && ra(e, t.value);
|
|
4168
4226
|
return !0;
|
|
4169
4227
|
}
|
|
4170
|
-
return t.dataset.staticCellRow !== void 0 && (
|
|
4228
|
+
return t.dataset.staticCellRow !== void 0 && (aa(e, Number(t.dataset.staticCellRow), t.dataset.staticCellField ?? "", t.value, !1), !0);
|
|
4171
4229
|
}
|
|
4172
|
-
function
|
|
4230
|
+
function pa(e, t) {
|
|
4173
4231
|
let n = t.closest("[data-static-binding-field]");
|
|
4174
4232
|
if (n !== null) {
|
|
4175
4233
|
let t = e.currentEntry()?.manifest.dataBinding?.roles.find((e) => e.id === n.dataset.staticBindingRole), r = n.dataset.staticBindingField;
|
|
@@ -4183,12 +4241,12 @@ function la(e, t) {
|
|
|
4183
4241
|
return !0;
|
|
4184
4242
|
}
|
|
4185
4243
|
let r = t.closest("[data-static-action]");
|
|
4186
|
-
return r !== null && (
|
|
4244
|
+
return r !== null && (ha(e, r), !0);
|
|
4187
4245
|
}
|
|
4188
|
-
function
|
|
4189
|
-
if (t.dataset.staticScalar === "boolean" && t instanceof HTMLInputElement) return
|
|
4190
|
-
if (t.dataset.staticPageSize !== void 0 && t instanceof HTMLSelectElement) return e.state.staticPageSize =
|
|
4191
|
-
if (t.dataset.staticCellRow !== void 0 && t instanceof HTMLInputElement) return
|
|
4246
|
+
function ma(e, t) {
|
|
4247
|
+
if (t.dataset.staticScalar === "boolean" && t instanceof HTMLInputElement) return ra(e, t.checked), !0;
|
|
4248
|
+
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;
|
|
4192
4250
|
if (t.dataset.staticBindingRole !== void 0 && t instanceof HTMLSelectElement) {
|
|
4193
4251
|
let n = t.dataset.staticBindingRole, r = t.multiple ? [...t.selectedOptions].map((e) => e.value) : t.value === "" ? [] : [t.value];
|
|
4194
4252
|
return e.state.staticBinding = { fields: {
|
|
@@ -4198,7 +4256,7 @@ function ua(e, t) {
|
|
|
4198
4256
|
}
|
|
4199
4257
|
return !1;
|
|
4200
4258
|
}
|
|
4201
|
-
function
|
|
4259
|
+
function ha(e, t) {
|
|
4202
4260
|
let n = t.dataset.staticAction;
|
|
4203
4261
|
if (n === "apply") {
|
|
4204
4262
|
e.apply();
|
|
@@ -4209,16 +4267,16 @@ function da(e, t) {
|
|
|
4209
4267
|
return;
|
|
4210
4268
|
}
|
|
4211
4269
|
if (n === "row-add") {
|
|
4212
|
-
|
|
4270
|
+
sa(e);
|
|
4213
4271
|
return;
|
|
4214
4272
|
}
|
|
4215
4273
|
if (n === "page-previous" || n === "page-next") {
|
|
4216
|
-
let t =
|
|
4217
|
-
e.state.staticPage =
|
|
4274
|
+
let t = Q(e)?.rows.length ?? 0, r = e.state.staticPage + (n === "page-next" ? 1 : -1);
|
|
4275
|
+
e.state.staticPage = Ae(t, r, e.state.staticPageSize).page, e.renderSurface();
|
|
4218
4276
|
return;
|
|
4219
4277
|
}
|
|
4220
4278
|
if (n === "binding-select-all" || n === "binding-clear") {
|
|
4221
|
-
let r = e.currentEntry()?.manifest.dataBinding?.roles.find((e) => e.id === t.dataset.staticBindingRole), i =
|
|
4279
|
+
let r = e.currentEntry()?.manifest.dataBinding?.roles.find((e) => e.id === t.dataset.staticBindingRole), i = Q(e);
|
|
4222
4280
|
if (r !== void 0 && i !== void 0) {
|
|
4223
4281
|
let t = n === "binding-clear" ? [] : i.fields.filter((e) => r.valueTypes.includes(e.valueType)).slice(0, r.maxFields).map((e) => e.id);
|
|
4224
4282
|
e.state.staticBinding = { fields: {
|
|
@@ -4229,9 +4287,9 @@ function da(e, t) {
|
|
|
4229
4287
|
return;
|
|
4230
4288
|
}
|
|
4231
4289
|
let r = Number(t.dataset.staticIndex);
|
|
4232
|
-
Number.isInteger(r) && n === "row-remove" &&
|
|
4290
|
+
Number.isInteger(r) && n === "row-remove" && ca(e, r);
|
|
4233
4291
|
}
|
|
4234
|
-
function
|
|
4292
|
+
function ga(n) {
|
|
4235
4293
|
let r;
|
|
4236
4294
|
try {
|
|
4237
4295
|
r = JSON.parse(n.state.staticDraft);
|
|
@@ -4241,7 +4299,7 @@ function fa(n) {
|
|
|
4241
4299
|
}
|
|
4242
4300
|
let i = e(r);
|
|
4243
4301
|
if (!i.ok) {
|
|
4244
|
-
n.setFeedback(
|
|
4302
|
+
n.setFeedback(da(n, i.diagnostics[0]));
|
|
4245
4303
|
return;
|
|
4246
4304
|
}
|
|
4247
4305
|
let a = n.currentEntry()?.manifest.staticData;
|
|
@@ -4252,102 +4310,102 @@ function fa(n) {
|
|
|
4252
4310
|
if (a?.kind === "tabular") {
|
|
4253
4311
|
let e = t(i.value);
|
|
4254
4312
|
if (!e.ok) {
|
|
4255
|
-
n.setFeedback(
|
|
4313
|
+
n.setFeedback(da(n, e.diagnostics[0]));
|
|
4256
4314
|
return;
|
|
4257
4315
|
}
|
|
4258
4316
|
n.state.staticValue = e.value;
|
|
4259
4317
|
} else n.state.staticValue = i.value;
|
|
4260
4318
|
n.setFeedback("");
|
|
4261
4319
|
}
|
|
4262
|
-
function
|
|
4263
|
-
return !(t instanceof HTMLInputElement) && !(t instanceof HTMLTextAreaElement) ? !1 :
|
|
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);
|
|
4264
4322
|
}
|
|
4265
|
-
function
|
|
4266
|
-
if (
|
|
4323
|
+
function va(e, t) {
|
|
4324
|
+
if (pa(e, t)) return !0;
|
|
4267
4325
|
(t.closest("[data-value-ref-trigger]") !== null || t.closest("[data-dataset-binding-trigger]") !== null) && e.state.clearAutoApply();
|
|
4268
4326
|
let n = t.closest("[data-data-entry]");
|
|
4269
|
-
if (n !== null) return
|
|
4327
|
+
if (n !== null) return ya(e, n), !0;
|
|
4270
4328
|
let r = t.closest("[data-data-source-mode]")?.dataset.dataSourceMode;
|
|
4271
|
-
if (r !== void 0) return
|
|
4272
|
-
if (t.closest("[data-dataset-auto-match]") !== null) return
|
|
4329
|
+
if (r !== void 0) return Ti(e, r), !0;
|
|
4330
|
+
if (t.closest("[data-dataset-auto-match]") !== null) return ji(e), !0;
|
|
4273
4331
|
let i = t.closest("[data-source-sheet-tab]");
|
|
4274
4332
|
if (i !== null) {
|
|
4275
4333
|
let t = i.dataset.sourceSheetTab;
|
|
4276
|
-
return t !== void 0 && t !== e.state.sourcePickerTab && (e.state.sourcePickerTab = t, e.state.catalogOpen = !0, e.renderSurface(),
|
|
4334
|
+
return t !== void 0 && t !== e.state.sourcePickerTab && (e.state.sourcePickerTab = t, e.state.catalogOpen = !0, e.renderSurface(), wa(e, t)), !0;
|
|
4277
4335
|
}
|
|
4278
|
-
if (t.closest("[data-source-sheet-close]") !== null || t.classList?.contains("designer-source-sheet-layer") === !0) return
|
|
4336
|
+
if (t.closest("[data-source-sheet-close]") !== null || t.classList?.contains("designer-source-sheet-layer") === !0) return Da(e), !0;
|
|
4279
4337
|
let a = t.closest("[data-source-sheet-variable]");
|
|
4280
|
-
if (a?.dataset.sourceSheetVariable !== void 0) return
|
|
4281
|
-
if (t.closest("[data-source-sheet-apply-fixed]") !== null) return
|
|
4282
|
-
if (t.closest("[data-source-sheet-format]") !== null) return
|
|
4283
|
-
if (t.closest("[data-dataset-change]") !== null || t.closest("[data-source-kind-change]") !== null) return
|
|
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;
|
|
4284
4342
|
if (t.closest("[data-dataset-load-more]") !== null) return e.catalogController.loadMore(), !0;
|
|
4285
4343
|
let o = t.closest("[data-dataset-binding-chip-field]");
|
|
4286
4344
|
if (o !== null) {
|
|
4287
4345
|
let t = o.dataset.datasetBindingChipField, n = o.closest(".designer-bind-field")?.querySelector(`[data-dataset-binding-field="${t}"]`);
|
|
4288
|
-
return n != null &&
|
|
4346
|
+
return n != null && ki(e, n), !0;
|
|
4289
4347
|
}
|
|
4290
4348
|
let s = t.closest("[data-dataset-binding-trigger]");
|
|
4291
4349
|
if (s !== null) {
|
|
4292
4350
|
let t = s.dataset.datasetBindingTrigger ?? null;
|
|
4293
|
-
return e.state.bindingOpenRoleId = e.state.bindingOpenRoleId === t ? null : t,
|
|
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;
|
|
4294
4352
|
}
|
|
4295
4353
|
let c = t.closest("[data-dataset-binding-field]");
|
|
4296
|
-
if (c !== null) return
|
|
4297
|
-
e.state.bindingOpenRoleId !== null && t.closest("[data-dataset-binding-role]")?.dataset.datasetBindingRole !== e.state.bindingOpenRoleId &&
|
|
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);
|
|
4298
4356
|
let l = t.closest("[data-dataset-binding-role-action]");
|
|
4299
|
-
if (l !== null) return
|
|
4357
|
+
if (l !== null) return Ai(e, l), !0;
|
|
4300
4358
|
let u = t.closest("[data-dataset-preview-tab]")?.dataset.datasetPreviewTab;
|
|
4301
|
-
if (u === "response" || u === "consumer" || u === "request") return
|
|
4359
|
+
if (u === "response" || u === "consumer" || u === "request") return qi(e, u), !0;
|
|
4302
4360
|
let d = t.closest("[data-workbench-step]")?.dataset.workbenchStep;
|
|
4303
|
-
if (
|
|
4361
|
+
if (di(d)) return e.focusWorkbenchSection(d), !0;
|
|
4304
4362
|
let f = t.closest("[data-dataset-editor-mode]")?.dataset.datasetEditorMode;
|
|
4305
4363
|
if (f === "visual" || f === "code") return e.state.authoring = {
|
|
4306
4364
|
...e.state.authoring,
|
|
4307
4365
|
editorMode: f
|
|
4308
|
-
}, f === "code" && e.callbacks.requestAuthoringAction?.("open-code-editor"),
|
|
4366
|
+
}, f === "code" && e.callbacks.requestAuthoringAction?.("open-code-editor"), q(e), !0;
|
|
4309
4367
|
let p = t.closest("[data-dataset-authoring-action]")?.dataset.datasetAuthoringAction;
|
|
4310
|
-
return p === void 0 ?
|
|
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);
|
|
4311
4369
|
}
|
|
4312
|
-
function
|
|
4370
|
+
function ya(e, t) {
|
|
4313
4371
|
let n = t.dataset.dataEntry, r = t.dataset.dataEntryMode;
|
|
4314
|
-
n !== void 0 && r !== void 0 && (!t.disabled && t.getAttribute("aria-checked") !== "true" &&
|
|
4372
|
+
n !== void 0 && r !== void 0 && (!t.disabled && t.getAttribute("aria-checked") !== "true" && Ti(e, r), ba(e, n));
|
|
4315
4373
|
}
|
|
4316
|
-
function
|
|
4374
|
+
function ba(e, t) {
|
|
4317
4375
|
e.state.panel?.querySelector(`[data-data-entry="${t}"]`)?.focus({ preventScroll: !0 });
|
|
4318
4376
|
}
|
|
4319
|
-
function
|
|
4377
|
+
function xa(e) {
|
|
4320
4378
|
if (e === "ArrowRight" || e === "ArrowDown") return "next";
|
|
4321
4379
|
if (e === "ArrowLeft" || e === "ArrowUp") return "previous";
|
|
4322
4380
|
if (e === "Home") return "first";
|
|
4323
4381
|
if (e === "End") return "last";
|
|
4324
4382
|
}
|
|
4325
|
-
function
|
|
4383
|
+
function Sa(e, t, n) {
|
|
4326
4384
|
let r = [...t.closest("[data-data-entry-group]")?.querySelectorAll("[data-data-entry]") ?? []].filter((e) => !e.disabled), i = r.indexOf(t);
|
|
4327
4385
|
if (i === -1 || r.length === 0) return;
|
|
4328
4386
|
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)];
|
|
4329
4387
|
if (o === void 0 || o === t) {
|
|
4330
|
-
|
|
4388
|
+
ba(e, t.dataset.dataEntry ?? "");
|
|
4331
4389
|
return;
|
|
4332
4390
|
}
|
|
4333
|
-
|
|
4391
|
+
ya(e, o);
|
|
4334
4392
|
}
|
|
4335
|
-
function
|
|
4393
|
+
function Ca(e, t) {
|
|
4336
4394
|
let n = t.closest("[data-dataset-action]"), r = n?.dataset.datasetAction;
|
|
4337
4395
|
if (r === "select-step") {
|
|
4338
4396
|
e.state.confirmClose = !1;
|
|
4339
|
-
let t = n?.dataset.datasetWorkbenchTarget, r =
|
|
4397
|
+
let t = n?.dataset.datasetWorkbenchTarget, r = di(t) ? t : "source";
|
|
4340
4398
|
return e.focusWorkbenchSection(r), r === "source" && e.state.mode === "dataset" && e.catalogController.ensureList(), !0;
|
|
4341
4399
|
}
|
|
4342
4400
|
if (r === "open-workbench") {
|
|
4343
4401
|
e.state.workbenchOpen = !0, e.state.confirmClose = !1;
|
|
4344
4402
|
let t = n?.dataset.datasetWorkbenchTarget;
|
|
4345
|
-
return e.state.activeStep =
|
|
4403
|
+
return e.state.activeStep = di(t) ? t : "source", e.state.activeStep === "preview" && (e.state.preview = {
|
|
4346
4404
|
...e.state.preview,
|
|
4347
4405
|
open: !0
|
|
4348
4406
|
}), e.renderSurface(), e.focusDataWorkbench(), !0;
|
|
4349
4407
|
}
|
|
4350
|
-
if (r === "close-workbench") return
|
|
4408
|
+
if (r === "close-workbench") return Fa(e);
|
|
4351
4409
|
if (r === "keep-editing") return e.state.confirmClose = !1, e.renderSurface(), !0;
|
|
4352
4410
|
if (r === "discard-workbench") return e.restoreDatasetDraft(), e.state.workbenchOpen = !1, e.state.confirmClose = !1, e.renderSurface(), e.restoreFullscreenActionFocus(), !0;
|
|
4353
4411
|
if (r === "toggle-preview") return e.state.preview = {
|
|
@@ -4357,7 +4415,7 @@ function ya(e, t) {
|
|
|
4357
4415
|
if (r === "apply" || r === "sync") return e.apply(), !0;
|
|
4358
4416
|
if (r === "test") return e.testDatasetDraft(), !0;
|
|
4359
4417
|
if (r === "undo") return e.callbacks.undo?.(), !0;
|
|
4360
|
-
if (r === "retry-link") return
|
|
4418
|
+
if (r === "retry-link") return Jr(e), !0;
|
|
4361
4419
|
if (r === "select-host-resource") {
|
|
4362
4420
|
let t = e.currentComponent();
|
|
4363
4421
|
return t !== void 0 && e.callbacks.requestHostResourceSelection?.(t.id, t.type), !0;
|
|
@@ -4365,75 +4423,75 @@ function ya(e, t) {
|
|
|
4365
4423
|
if (r === "open-instance") return e.state.workbenchOpen = !0, e.state.confirmClose = !1, e.renderSurface(), e.focusDataWorkbench(), !0;
|
|
4366
4424
|
if (r === "refresh") return e.callbacks.refresh(e.callbacks.getInteraction().focusedComponentId ?? void 0), !0;
|
|
4367
4425
|
let i = t.closest("[data-dataset-resource-id]");
|
|
4368
|
-
return i?.dataset.datasetResourceId !== void 0 && (
|
|
4426
|
+
return i?.dataset.datasetResourceId !== void 0 && (Ei(e, i.dataset.datasetResourceId, { autoApply: !0 }), !0);
|
|
4369
4427
|
}
|
|
4370
|
-
function
|
|
4428
|
+
function $(e) {
|
|
4371
4429
|
let t = e.state.panel?.getRootNode?.();
|
|
4372
4430
|
return typeof ShadowRoot > "u" || !(t instanceof ShadowRoot) ? null : t.querySelector("[data-source-sheet]");
|
|
4373
4431
|
}
|
|
4374
|
-
function
|
|
4375
|
-
|
|
4432
|
+
function wa(e, t) {
|
|
4433
|
+
$(e)?.querySelector(`[data-source-sheet-tab="${t}"]`)?.focus({ preventScroll: !0 });
|
|
4376
4434
|
}
|
|
4377
|
-
function
|
|
4378
|
-
|
|
4435
|
+
function Ta(e) {
|
|
4436
|
+
wa(e, e.state.sourcePickerTab);
|
|
4379
4437
|
}
|
|
4380
|
-
function
|
|
4381
|
-
let n =
|
|
4438
|
+
function Ea(e, t) {
|
|
4439
|
+
let n = $(e)?.querySelector("[data-source-sheet]");
|
|
4382
4440
|
if (n == null) return !1;
|
|
4383
4441
|
let r = [...n.querySelectorAll("button:not(:disabled), input, textarea, select, [tabindex]:not([tabindex=\"-1\"])")].filter((e) => e.getClientRects().length > 0);
|
|
4384
4442
|
if (r.length === 0) return !1;
|
|
4385
4443
|
let i = r[0], a = r[r.length - 1], o = n.getRootNode().activeElement, s = o !== null && n.contains(o);
|
|
4386
4444
|
return t.shiftKey && (!s || o === i) ? (t.preventDefault(), a.focus(), !0) : !t.shiftKey && (!s || o === a) && (t.preventDefault(), i.focus(), !0);
|
|
4387
4445
|
}
|
|
4388
|
-
function
|
|
4446
|
+
function Da(e) {
|
|
4389
4447
|
if (!e.state.catalogOpen) return;
|
|
4390
4448
|
e.state.catalogOpen = !1, e.renderSurface();
|
|
4391
4449
|
let t = e.state.mode === "static" || e.state.mode === "variable" ? "[data-source-kind-change]" : "[data-dataset-change]";
|
|
4392
4450
|
e.state.panel?.querySelector(t)?.focus({ preventScroll: !0 });
|
|
4393
4451
|
}
|
|
4394
|
-
function
|
|
4395
|
-
e.state.catalogOpen = !0, e.state.sourcePickerTab = e.state.mode === "variable" ? "variable" : e.state.mode === "static" ? "fixed" : "dataset", e.renderSurface(), e.catalogController.ensureList(),
|
|
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);
|
|
4396
4454
|
}
|
|
4397
|
-
function
|
|
4398
|
-
e.state.mode !== "variable" &&
|
|
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);
|
|
4399
4457
|
}
|
|
4400
|
-
function
|
|
4401
|
-
return
|
|
4458
|
+
function Aa(e) {
|
|
4459
|
+
return $(e)?.querySelector("[data-source-sheet-fixed]") ?? null;
|
|
4402
4460
|
}
|
|
4403
|
-
function
|
|
4404
|
-
let n =
|
|
4461
|
+
function ja(e, t) {
|
|
4462
|
+
let n = $(e);
|
|
4405
4463
|
if (n === null) return;
|
|
4406
|
-
let r =
|
|
4464
|
+
let r = kr(t, e.currentEntry()?.manifest.staticData), i = n.querySelector("[data-source-sheet-note]");
|
|
4407
4465
|
i !== null && (i.textContent = r.note, i.dataset.tone = r.ok ? "ok" : "error");
|
|
4408
4466
|
let a = n.querySelector("[data-source-sheet-apply-fixed]");
|
|
4409
4467
|
a !== null && (a.disabled = !r.ok);
|
|
4410
4468
|
}
|
|
4411
|
-
function
|
|
4412
|
-
let t =
|
|
4469
|
+
function Ma(e) {
|
|
4470
|
+
let t = Aa(e);
|
|
4413
4471
|
if (t === null) return;
|
|
4414
|
-
if (!
|
|
4415
|
-
|
|
4472
|
+
if (!kr(t.value, e.currentEntry()?.manifest.staticData).ok) {
|
|
4473
|
+
ja(e, t.value);
|
|
4416
4474
|
return;
|
|
4417
4475
|
}
|
|
4418
4476
|
let n = e.state.mode, r = e.currentEntry()?.manifest.staticData;
|
|
4419
|
-
if (e.state.staticDraft = t.value, e.state.staticBinding === void 0 && r?.kind === "tabular" && r.defaultBinding !== void 0 && (e.state.staticBinding = r.defaultBinding), e.state.mode = "static",
|
|
4477
|
+
if (e.state.staticDraft = t.value, e.state.staticBinding === void 0 && r?.kind === "tabular" && r.defaultBinding !== void 0 && (e.state.staticBinding = r.defaultBinding), e.state.mode = "static", Y(e), e.currentComponent()?.dataSource?.type === "static") {
|
|
4420
4478
|
e.state.catalogOpen = !1, e.renderSurface();
|
|
4421
4479
|
return;
|
|
4422
4480
|
}
|
|
4423
4481
|
e.state.mode = n;
|
|
4424
|
-
let i =
|
|
4482
|
+
let i = $(e)?.querySelector("[data-source-sheet-note]");
|
|
4425
4483
|
i != null && (i.textContent = e.state.feedbackText || d.dataSource.staticInvalid, i.dataset.tone = "error"), e.renderSurface();
|
|
4426
4484
|
}
|
|
4427
|
-
function
|
|
4428
|
-
let t =
|
|
4485
|
+
function Na(e) {
|
|
4486
|
+
let t = Aa(e);
|
|
4429
4487
|
if (t !== null) try {
|
|
4430
|
-
t.value = JSON.stringify(JSON.parse(t.value), null, 2), e.state.staticDraft = t.value,
|
|
4488
|
+
t.value = JSON.stringify(JSON.parse(t.value), null, 2), e.state.staticDraft = t.value, ja(e, t.value);
|
|
4431
4489
|
} catch {
|
|
4432
|
-
|
|
4490
|
+
ja(e, t.value);
|
|
4433
4491
|
}
|
|
4434
4492
|
}
|
|
4435
|
-
function
|
|
4436
|
-
let t =
|
|
4493
|
+
function Pa(e) {
|
|
4494
|
+
let t = $(e);
|
|
4437
4495
|
if (t === null) return;
|
|
4438
4496
|
let n = e.state.variableQuery.trim().toLowerCase(), r = 0;
|
|
4439
4497
|
for (let e of t.querySelectorAll("[data-source-sheet-variable]")) {
|
|
@@ -4443,13 +4501,13 @@ function ka(e) {
|
|
|
4443
4501
|
let i = t.querySelector("[data-source-sheet-variable-empty]");
|
|
4444
4502
|
i !== null && (i.hidden = r > 0);
|
|
4445
4503
|
}
|
|
4446
|
-
function
|
|
4504
|
+
function Fa(e) {
|
|
4447
4505
|
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);
|
|
4448
4506
|
}
|
|
4449
|
-
function
|
|
4450
|
-
return !(t instanceof HTMLInputElement) && !(t instanceof HTMLSelectElement) && !(t instanceof HTMLTextAreaElement) ? !1 : t.dataset.dataSourceModeSelect !== void 0 && t instanceof HTMLSelectElement ? (
|
|
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);
|
|
4451
4509
|
}
|
|
4452
|
-
function
|
|
4510
|
+
function La(e, t, n) {
|
|
4453
4511
|
let r;
|
|
4454
4512
|
if (t === "loadingDisabled" || t === "controlled") {
|
|
4455
4513
|
if (!(n instanceof HTMLInputElement)) return;
|
|
@@ -4490,12 +4548,12 @@ function Ma(e, t, n) {
|
|
|
4490
4548
|
e.callbacks.requestAuthoringAction?.("update-settings", {
|
|
4491
4549
|
setting: t,
|
|
4492
4550
|
value: r
|
|
4493
|
-
}),
|
|
4551
|
+
}), fi.has(t) && Ki(e), e.renderSurface();
|
|
4494
4552
|
}
|
|
4495
|
-
function
|
|
4496
|
-
if (t.key === "Escape" && e.state.catalogOpen) return t.preventDefault(),
|
|
4497
|
-
if (t.key === "Tab" && e.state.catalogOpen &&
|
|
4498
|
-
if (t.key === "Escape" && e.state.bindingOpenRoleId !== null) return t.preventDefault(), e.state.bindingOpenRoleId = null,
|
|
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;
|
|
4556
|
+
if (t.key === "Escape" && e.state.bindingOpenRoleId !== null) return t.preventDefault(), e.state.bindingOpenRoleId = null, q(e), !0;
|
|
4499
4557
|
if (t.key === "Backspace") {
|
|
4500
4558
|
let n = t.target, r = n instanceof Element ? n.closest("[data-dataset-binding-trigger]") : null;
|
|
4501
4559
|
if (r !== null) {
|
|
@@ -4503,33 +4561,33 @@ function Na(e, t) {
|
|
|
4503
4561
|
if (i !== void 0) {
|
|
4504
4562
|
t.preventDefault();
|
|
4505
4563
|
let n = i.closest(".designer-bind-field"), r = i.dataset.datasetBindingChipField, a = n?.querySelector(`[data-dataset-binding-field="${r}"]`);
|
|
4506
|
-
a != null &&
|
|
4564
|
+
a != null && ki(e, a);
|
|
4507
4565
|
}
|
|
4508
4566
|
return !0;
|
|
4509
4567
|
}
|
|
4510
4568
|
}
|
|
4511
|
-
if (t.key === "Escape" && e.state.workbenchOpen) return t.preventDefault(), e.state.mode === "dataset" && e.state.draftDirty ? (e.state.confirmClose = !0, e.renderSurface()) :
|
|
4512
|
-
let n =
|
|
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);
|
|
4513
4571
|
if (n !== void 0) {
|
|
4514
4572
|
let r = t.target instanceof Element ? t.target.closest("[data-data-entry]") : null;
|
|
4515
|
-
if (r !== null) return t.preventDefault(),
|
|
4573
|
+
if (r !== null) return t.preventDefault(), Sa(e, r, n), !0;
|
|
4516
4574
|
}
|
|
4517
4575
|
if (t.key !== "Enter" || t.isComposing) return !1;
|
|
4518
4576
|
let r = t.target;
|
|
4519
4577
|
return (r instanceof HTMLInputElement || r instanceof HTMLSelectElement) && (r.dataset.valueRefInline !== void 0 || r.dataset.datasetBindingRole !== void 0) && (t.preventDefault(), e.apply(), !0);
|
|
4520
4578
|
}
|
|
4521
|
-
var
|
|
4522
|
-
#e = new
|
|
4579
|
+
var za = class {
|
|
4580
|
+
#e = new je();
|
|
4523
4581
|
#t;
|
|
4524
4582
|
#n;
|
|
4525
4583
|
constructor(e) {
|
|
4526
|
-
let t = new
|
|
4527
|
-
this.#t = new
|
|
4584
|
+
let t = new re((e) => Yr(this.#n, e));
|
|
4585
|
+
this.#t = new De({
|
|
4528
4586
|
getPort: e.getCatalogPort,
|
|
4529
4587
|
report: e.report,
|
|
4530
|
-
setFeedback: (e) =>
|
|
4588
|
+
setFeedback: (e) => ui(this.#n, e),
|
|
4531
4589
|
render: () => this.renderSurface(),
|
|
4532
|
-
renderResults: () =>
|
|
4590
|
+
renderResults: () => qr(this.#n)
|
|
4533
4591
|
}), this.#n = {
|
|
4534
4592
|
callbacks: e,
|
|
4535
4593
|
state: this.#e,
|
|
@@ -4544,27 +4602,27 @@ var Pa = class {
|
|
|
4544
4602
|
return n === void 0 ? void 0 : e.getCatalog()?.get(n.type);
|
|
4545
4603
|
},
|
|
4546
4604
|
renderSurface: () => this.renderSurface(),
|
|
4547
|
-
setFeedback: (e) =>
|
|
4548
|
-
cancelPreview: () =>
|
|
4549
|
-
restoreStaticExample: (e) =>
|
|
4550
|
-
apply: () =>
|
|
4551
|
-
restoreDatasetDraft: () =>
|
|
4552
|
-
setParameterValueRef: (e, t) =>
|
|
4553
|
-
focusWorkbenchSection: (e) =>
|
|
4554
|
-
testDatasetDraft: () =>
|
|
4555
|
-
copyPreviewData: () =>
|
|
4556
|
-
focusDataWorkbench: () =>
|
|
4557
|
-
restoreFullscreenActionFocus: () =>
|
|
4558
|
-
restoreBindingFieldFocus: (e, t, n) =>
|
|
4605
|
+
setFeedback: (e) => ui(this.#n, e),
|
|
4606
|
+
cancelPreview: () => Zi(this.#n),
|
|
4607
|
+
restoreStaticExample: (e) => la(this.#n, e),
|
|
4608
|
+
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)
|
|
4559
4617
|
};
|
|
4560
4618
|
}
|
|
4561
4619
|
render(e) {
|
|
4562
|
-
if (
|
|
4620
|
+
if (li(this.#n), this.#n.currentComponent() === void 0) {
|
|
4563
4621
|
e !== void 0 && e.replaceChildren(d.dataPanelEmpty);
|
|
4564
4622
|
return;
|
|
4565
4623
|
}
|
|
4566
|
-
let t =
|
|
4567
|
-
|
|
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)));
|
|
4568
4626
|
}
|
|
4569
4627
|
getFocusedDatasetFields() {
|
|
4570
4628
|
return this.#e.descriptor?.fields.map((e) => ({
|
|
@@ -4573,22 +4631,22 @@ var Pa = class {
|
|
|
4573
4631
|
})) ?? [];
|
|
4574
4632
|
}
|
|
4575
4633
|
clear() {
|
|
4576
|
-
this.#t.clear(),
|
|
4634
|
+
this.#t.clear(), li(this.#n), Zi(this.#n), this.#e.reset();
|
|
4577
4635
|
}
|
|
4578
4636
|
onInput(e) {
|
|
4579
|
-
return
|
|
4637
|
+
return _a(this.#n, e);
|
|
4580
4638
|
}
|
|
4581
4639
|
onClick(e) {
|
|
4582
|
-
return
|
|
4640
|
+
return va(this.#n, e);
|
|
4583
4641
|
}
|
|
4584
4642
|
onChange(e) {
|
|
4585
|
-
return
|
|
4643
|
+
return Ia(this.#n, e);
|
|
4586
4644
|
}
|
|
4587
4645
|
onKeyDown(e) {
|
|
4588
|
-
return
|
|
4646
|
+
return Ra(this.#n, e);
|
|
4589
4647
|
}
|
|
4590
4648
|
setParameterValueRef(e, t) {
|
|
4591
|
-
|
|
4649
|
+
Mi(this.#n, e, t);
|
|
4592
4650
|
}
|
|
4593
4651
|
get descriptor() {
|
|
4594
4652
|
return this.#e.descriptor;
|
|
@@ -4600,10 +4658,10 @@ var Pa = class {
|
|
|
4600
4658
|
return this.#e.authoring;
|
|
4601
4659
|
}
|
|
4602
4660
|
renderSurface() {
|
|
4603
|
-
|
|
4661
|
+
Rr(this.#n);
|
|
4604
4662
|
}
|
|
4605
4663
|
};
|
|
4606
4664
|
//#endregion
|
|
4607
|
-
export {
|
|
4665
|
+
export { za as DesignerDatasetController };
|
|
4608
4666
|
|
|
4609
|
-
//# sourceMappingURL=designer-dataset-controller-
|
|
4667
|
+
//# sourceMappingURL=designer-dataset-controller-DdbY4ILC-CMdGdGbr.js.map
|