@kong-ui-public/entities-plugins 9.37.0 → 9.38.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.
@@ -8,7 +8,7 @@ import { PluginGroup as LO, PluginScope as KO } from "@kong-ui-public/entities-p
8
8
  import { composables as Tp, FORMS_CONFIG as sr, getSharedFormName as zu, customFields as ea, AUTOFILL_SLOT as ro, VueFormGenerator as Mi, AUTOFILL_SLOT_NAME as Jn, FORMS_API_KEY as Ip, sharedForms as Os } from "@kong-ui-public/forms";
9
9
  import { VaultSecretPickerProvider as Ir, VaultSecretPicker as $p } from "@kong-ui-public/entities-vaults";
10
10
  import "@kong-ui-public/entities-vaults/dist/style.css";
11
- import { ChevronDownIcon as Pp, TrashIcon as Do, AddIcon as gi, RemoveIcon as Op, ArrowLeftIcon as Np, ChevronDoubleLeftIcon as Mp, ChevronDoubleRightIcon as Rp, UnfoldMoreIcon as Ns, NetworkIcon as Dp, CodeblockIcon as Uu, GatewayIcon as Fp, StackIcon as Lp, VitalsIcon as Kp, ExternalLinkIcon as Bp, SparklesIcon as qp, DesignIcon as Vp, BookIcon as Ms, PlugIcon as jp, MoreIcon as zp } from "@kong/icons";
11
+ import { ChevronDownIcon as Pp, TrashIcon as Do, AddIcon as gi, RemoveIcon as Op, ArrowLeftIcon as Np, ChevronDoubleLeftIcon as Mp, ChevronDoubleRightIcon as Rp, NetworkIcon as Dp, CodeblockIcon as Uu, GatewayIcon as Fp, StackIcon as Lp, VitalsIcon as Kp, UnfoldMoreIcon as Ns, ExternalLinkIcon as Bp, SparklesIcon as qp, DesignIcon as Vp, BookIcon as Ms, PlugIcon as jp, MoreIcon as zp } from "@kong/icons";
12
12
  import { KTextArea as Up, KInput as qa, KCheckbox as Hp, KLabel as Gp, KButton as ii, KMultiselect as Yp, KSelect as Wp, KCard as Rs, KCollapse as Hu, KRadio as ta, KTooltip as Ds, KSlideout as Xp, KAlert as Zp, KSegmentedControl as Jp } from "@kong/kongponents";
13
13
  import { PartialType as co, RedisConfigurationForm as Qp } from "@kong-ui-public/entities-redis-configurations";
14
14
  import "@kong-ui-public/entities-redis-configurations/dist/style.css";
@@ -15067,7 +15067,7 @@ const LA = { render: FA }, KA = {
15067
15067
  _: 3
15068
15068
  }, 8, ["position"]));
15069
15069
  }
15070
- }), qA = ["request", "response", "service_request", "service_response"], _u = (e) => qA.includes(e.type), VA = /* @__PURE__ */ be({
15070
+ }), qA = /* @__PURE__ */ be({
15071
15071
  __name: "HandleTwig",
15072
15072
  props: {
15073
15073
  color: {},
@@ -15088,13 +15088,89 @@ const LA = { render: FA }, KA = {
15088
15088
  style: Ct(t.value)
15089
15089
  }, null, 6));
15090
15090
  }
15091
- }), Co = /* @__PURE__ */ Re(VA, [["__scopeId", "data-v-5433a682"]]), jA = { class: "body" }, zA = { class: "name" }, UA = {
15091
+ }), Co = /* @__PURE__ */ Re(qA, [["__scopeId", "data-v-5433a682"]]), { t: VA } = ft("en-us", pt);
15092
+ function Ii(e) {
15093
+ return VA(`plugins.free-form.datakit.flow_editor.node_description.${e}`);
15094
+ }
15095
+ const df = {
15096
+ call: {
15097
+ type: "call",
15098
+ description: Ii("call"),
15099
+ icon: Dp
15100
+ },
15101
+ jq: {
15102
+ type: "jq",
15103
+ description: Ii("jq"),
15104
+ icon: Uu
15105
+ },
15106
+ exit: {
15107
+ type: "exit",
15108
+ description: Ii("exit"),
15109
+ icon: Fp
15110
+ },
15111
+ property: {
15112
+ type: "property",
15113
+ description: Ii("property"),
15114
+ icon: Lp
15115
+ },
15116
+ static: {
15117
+ type: "static",
15118
+ description: Ii("static"),
15119
+ icon: Kp
15120
+ }
15121
+ }, xo = {
15122
+ request: {
15123
+ type: "request",
15124
+ handles: {
15125
+ output: [
15126
+ { id: "headers", label: "headers" },
15127
+ { id: "body", label: "body" },
15128
+ { id: "query", label: "query" }
15129
+ ]
15130
+ }
15131
+ },
15132
+ service_request: {
15133
+ type: "service_request",
15134
+ handles: {
15135
+ input: [
15136
+ { id: "headers", label: "headers" },
15137
+ { id: "body", label: "body" },
15138
+ { id: "query", label: "query" }
15139
+ ]
15140
+ }
15141
+ },
15142
+ service_response: {
15143
+ type: "service_response",
15144
+ handles: {
15145
+ output: [
15146
+ { id: "headers", label: "headers" },
15147
+ { id: "body", label: "body" }
15148
+ ]
15149
+ },
15150
+ ioDirection: "rl"
15151
+ },
15152
+ response: {
15153
+ type: "response",
15154
+ handles: {
15155
+ input: [
15156
+ { id: "headers", label: "headers" },
15157
+ { id: "body", label: "body" }
15158
+ ]
15159
+ },
15160
+ ioDirection: "rl"
15161
+ }
15162
+ }, jA = [
15163
+ "request",
15164
+ "response",
15165
+ "service_request",
15166
+ "service_response"
15167
+ ], _u = (e) => jA.includes(e.type), zA = { class: "body" }, UA = { class: "name" }, HA = {
15092
15168
  key: 0,
15093
15169
  class: "input-handles"
15094
- }, HA = { class: "handle" }, GA = { class: "handle-label-wrapper" }, YA = { class: "handle-label-wrapper" }, WA = { class: "handle-label" }, XA = {
15170
+ }, GA = { class: "handle" }, YA = { class: "handle-label-wrapper" }, WA = { class: "handle-label-wrapper" }, XA = { class: "handle-label" }, ZA = {
15095
15171
  key: 1,
15096
15172
  class: "output-handles"
15097
- }, ZA = { class: "handle" }, JA = { class: "handle-label-wrapper" }, QA = { class: "handle-label-wrapper" }, eT = { class: "handle-label" }, tT = /* @__PURE__ */ be({
15173
+ }, JA = { class: "handle" }, QA = { class: "handle-label-wrapper" }, eT = { class: "handle-label-wrapper" }, tT = { class: "handle-label" }, nT = /* @__PURE__ */ be({
15098
15174
  __name: "FlowNode",
15099
15175
  props: {
15100
15176
  meta: {}
@@ -15109,18 +15185,18 @@ const LA = { render: FA }, KA = {
15109
15185
  implicit: p(_u)(a.meta)
15110
15186
  }])
15111
15187
  }, [
15112
- G("div", jA, [
15113
- G("div", zA, he(r.value), 1),
15188
+ G("div", zA, [
15189
+ G("div", UA, he(r.value), 1),
15114
15190
  Pe(a.$slots, "default", {}, void 0, !0)
15115
15191
  ]),
15116
- (l = a.meta.handles) != null && l.input && a.meta.handles.input.length > 0 ? (E(), J("div", UA, [
15117
- G("div", HA, [
15192
+ (l = a.meta.handles) != null && l.input && a.meta.handles.input.length > 0 ? (E(), J("div", HA, [
15193
+ G("div", GA, [
15118
15194
  B(p(sn), {
15119
15195
  id: "inputs",
15120
15196
  position: a.meta.ioDirection === "rl" ? p(ke).Right : p(ke).Left,
15121
15197
  type: "target"
15122
15198
  }, null, 8, ["position"]),
15123
- G("div", GA, [
15199
+ G("div", YA, [
15124
15200
  G("div", {
15125
15201
  class: "handle-label with-icon",
15126
15202
  onClick: s[0] || (s[0] = It((d) => i.value = !i.value, ["stop"]))
@@ -15145,8 +15221,8 @@ const LA = { render: FA }, KA = {
15145
15221
  position: a.meta.ioDirection === "rl" ? p(ke).Right : p(ke).Left,
15146
15222
  type: "target"
15147
15223
  }, null, 8, ["id", "position"]),
15148
- G("div", YA, [
15149
- G("div", WA, he(d.label), 1),
15224
+ G("div", WA, [
15225
+ G("div", XA, he(d.label), 1),
15150
15226
  B(Co, {
15151
15227
  color: p(go),
15152
15228
  direction: a.meta.ioDirection === "rl" ? "right" : "left",
@@ -15155,9 +15231,9 @@ const LA = { render: FA }, KA = {
15155
15231
  ])
15156
15232
  ]))), 128)) : Ce("", !0)
15157
15233
  ])) : Ce("", !0),
15158
- (u = a.meta.handles) != null && u.output && a.meta.handles.output.length > 0 ? (E(), J("div", XA, [
15159
- G("div", ZA, [
15160
- G("div", JA, [
15234
+ (u = a.meta.handles) != null && u.output && a.meta.handles.output.length > 0 ? (E(), J("div", ZA, [
15235
+ G("div", JA, [
15236
+ G("div", QA, [
15161
15237
  G("div", {
15162
15238
  class: "handle-label with-icon",
15163
15239
  onClick: s[1] || (s[1] = It((d) => o.value = !o.value, ["stop"]))
@@ -15182,8 +15258,8 @@ const LA = { render: FA }, KA = {
15182
15258
  key: `output-${d.id}`,
15183
15259
  class: "handle indented"
15184
15260
  }, [
15185
- G("div", QA, [
15186
- G("div", eT, he(d.label), 1),
15261
+ G("div", eT, [
15262
+ G("div", tT, he(d.label), 1),
15187
15263
  B(Co, {
15188
15264
  color: p(go),
15189
15265
  direction: a.meta.ioDirection === "rl" ? "left" : "right",
@@ -15200,78 +15276,7 @@ const LA = { render: FA }, KA = {
15200
15276
  ], 2);
15201
15277
  };
15202
15278
  }
15203
- }), nT = /* @__PURE__ */ Re(tT, [["__scopeId", "data-v-309eeb05"]]), { t: iT } = ft("en-us", pt);
15204
- function Ii(e) {
15205
- return iT(`plugins.free-form.datakit.flow_editor.node_description.${e}`);
15206
- }
15207
- const df = {
15208
- call: {
15209
- type: "call",
15210
- description: Ii("call"),
15211
- icon: Dp
15212
- },
15213
- jq: {
15214
- type: "jq",
15215
- description: Ii("jq"),
15216
- icon: Uu
15217
- },
15218
- exit: {
15219
- type: "exit",
15220
- description: Ii("exit"),
15221
- icon: Fp
15222
- },
15223
- property: {
15224
- type: "property",
15225
- description: Ii("property"),
15226
- icon: Lp
15227
- },
15228
- static: {
15229
- type: "static",
15230
- description: Ii("static"),
15231
- icon: Kp
15232
- }
15233
- }, xo = {
15234
- request: {
15235
- type: "request",
15236
- handles: {
15237
- output: [
15238
- { id: "headers", label: "headers" },
15239
- { id: "body", label: "body" },
15240
- { id: "query", label: "query" }
15241
- ]
15242
- }
15243
- },
15244
- service_request: {
15245
- type: "service_request",
15246
- handles: {
15247
- input: [
15248
- { id: "headers", label: "headers" },
15249
- { id: "body", label: "body" },
15250
- { id: "query", label: "query" }
15251
- ]
15252
- }
15253
- },
15254
- service_response: {
15255
- type: "service_response",
15256
- handles: {
15257
- output: [
15258
- { id: "headers", label: "headers" },
15259
- { id: "body", label: "body" }
15260
- ]
15261
- },
15262
- ioDirection: "rl"
15263
- },
15264
- response: {
15265
- type: "response",
15266
- handles: {
15267
- input: [
15268
- { id: "headers", label: "headers" },
15269
- { id: "body", label: "body" }
15270
- ]
15271
- },
15272
- ioDirection: "rl"
15273
- }
15274
- }, oT = { class: "dk-editor-main" }, rT = { class: "header" }, aT = { class: "actions" }, sT = { class: "body" }, lT = /* @__PURE__ */ be({
15279
+ }), iT = /* @__PURE__ */ Re(nT, [["__scopeId", "data-v-0a108ad0"]]), oT = { class: "dk-editor-main" }, rT = { class: "header" }, aT = { class: "actions" }, sT = { class: "body" }, lT = /* @__PURE__ */ be({
15275
15280
  __name: "EditorMain",
15276
15281
  emits: ["click:node", "click:backdrop"],
15277
15282
  setup(e, { emit: t }) {
@@ -15337,7 +15342,7 @@ const df = {
15337
15342
  onNodesInitialized: p(r)
15338
15343
  }, {
15339
15344
  "node-flow": L((u) => [
15340
- B(nT, {
15345
+ B(iT, {
15341
15346
  meta: u.data
15342
15347
  }, null, 8, ["meta"])
15343
15348
  ]),