@fses/workbench-app 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,16 @@ type __VLS_Props = {
7
7
  embedInPortal?: boolean;
8
8
  extensions: WorkbenchAppExtensions;
9
9
  };
10
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
+ type __VLS_Slots = {
11
+ 'before-workbench'(): unknown;
12
+ };
13
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
14
  embedInPortal: boolean;
12
15
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
13
17
  export default _default;
18
+ type __VLS_WithSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -1,4 +1,4 @@
1
- import { D as s, t as o, u as r, v as t, x as n, y as i, z as l, A as c, B as p, C, E as A, m as g, F as m, G as E, H as d, I as _, J as T, K as u, L as M, M as R, o as L, p as S, l as h, a as P, e as v, h as y, i as W, d as k, g as b, N as f, w as N } from "./index-A8Vg4UXL.js";
1
+ import { D as s, t as o, u as r, v as t, x as n, y as i, z as l, A as c, B as p, C, E as A, m as g, F as m, G as E, H as d, I as _, J as T, K as u, L as M, M as R, o as L, p as S, l as h, a as P, e as v, h as y, i as W, d as k, g as b, N as f, w as N } from "./index-Dy9REnVD.js";
2
2
  import { D, d as I, e as B, L as w, S as H, f as x, g as F, h as G, i as K, j as U, k as V, l as Y, m as z, n as X, o as j, p as J, q as Z, r as q, s as Q, t as $, v as ee, w as ae, x as se, y as oe, z as re, A as te, B as ne, C as ie, E as le, F as ce, G as pe, H as Ce, I as Ae, J as ge, K as me, M as Ee, N as de, O as _e, P as Te, Q as ue, R as Me, T as Re, U as Le, V as Se, W as he, X as Pe, Y as ve, Z as ye, _ as We, $ as ke, a0 as be, a1 as fe, u as Ne, a as Oe, a2 as De, a3 as Ie } from "./useWorkbenchRuntime-Pekhufen.js";
3
3
  export {
4
4
  D as DEEP_AGENT_TOOL_DISPLAY_NAMES,
@@ -1,7 +1,7 @@
1
- import { toRefs as Ie, shallowReadonly as V, inject as Ee, defineComponent as D, provide as Pe, openBlock as _, createElementBlock as v, renderSlot as A, createElementVNode as u, normalizeClass as j, normalizeStyle as q, withModifiers as Se, createCommentVNode as B, createVNode as de, Transition as Ae, withCtx as W, computed as Q, createBlock as ce, defineAsyncComponent as Re, unref as Te, ref as K, watch as We, onBeforeUnmount as Be, toDisplayString as P } from "vue";
1
+ import { toRefs as Ie, shallowReadonly as V, inject as Ee, defineComponent as D, provide as Pe, openBlock as _, createElementBlock as v, renderSlot as A, createElementVNode as u, normalizeClass as j, normalizeStyle as q, withModifiers as Se, createCommentVNode as B, createVNode as de, Transition as Ae, withCtx as T, computed as Q, createBlock as ce, defineAsyncComponent as Re, unref as Te, ref as K, watch as We, onBeforeUnmount as Be, toDisplayString as P } from "vue";
2
2
  import { c as Me, b as Ne } from "./useWorkbenchRuntime-Pekhufen.js";
3
3
  const le = Symbol("workbench-app-context");
4
- function Oe(e) {
4
+ function $e(e) {
5
5
  const { adapters: r, config: t, extensions: n } = Ie(e);
6
6
  return {
7
7
  adapters: V(r),
@@ -15,7 +15,7 @@ function qr() {
15
15
  throw new Error("useWorkbenchAppContext must be used inside WorkbenchWorkspaceCore");
16
16
  return e;
17
17
  }
18
- const $e = { class: "fses-workbench-app" }, De = /* @__PURE__ */ D({
18
+ const Oe = { class: "fses-workbench-app" }, De = /* @__PURE__ */ D({
19
19
  __name: "WorkbenchWorkspaceCore",
20
20
  props: {
21
21
  adapters: {},
@@ -23,7 +23,7 @@ const $e = { class: "fses-workbench-app" }, De = /* @__PURE__ */ D({
23
23
  extensions: {}
24
24
  },
25
25
  setup(e) {
26
- return Pe(le, Oe(e)), (t, n) => (_(), v("div", $e, [
26
+ return Pe(le, $e(e)), (t, n) => (_(), v("div", Oe, [
27
27
  A(t.$slots, "default")
28
28
  ]));
29
29
  }
@@ -78,7 +78,7 @@ const $e = { class: "fses-workbench-app" }, De = /* @__PURE__ */ D({
78
78
  ])
79
79
  ], 14, Ue)) : B("", !0),
80
80
  de(Ae, { name: "workbench-assistant-rail-shell" }, {
81
- default: W(() => [
81
+ default: T(() => [
82
82
  e.studioPanelEnabled && e.studioPanelCollapsed && !e.canvasFocusMode && !e.drawerOpen ? (_(), v("div", {
83
83
  key: 0,
84
84
  class: "workbench-assistant-rail-shell",
@@ -129,7 +129,7 @@ const $e = { class: "fses-workbench-app" }, De = /* @__PURE__ */ D({
129
129
  config: r.config,
130
130
  extensions: r.extensions
131
131
  }, {
132
- default: W(() => [
132
+ default: T(() => [
133
133
  de(qe, {
134
134
  "canvas-focus-mode": t.value.canvasFocusMode,
135
135
  "drawer-open": t.value.drawerOpen,
@@ -144,16 +144,16 @@ const $e = { class: "fses-workbench-app" }, De = /* @__PURE__ */ D({
144
144
  return (s = (p = r.runtime).startStudioPanelDrag) == null ? void 0 : s.call(p, l);
145
145
  })
146
146
  }, {
147
- left: W(() => [
147
+ left: T(() => [
148
148
  A(n.$slots, "left")
149
149
  ]),
150
- right: W(() => [
150
+ right: T(() => [
151
151
  A(n.$slots, "right")
152
152
  ]),
153
- "collapsed-right": W(() => [
153
+ "collapsed-right": T(() => [
154
154
  A(n.$slots, "collapsed-right")
155
155
  ]),
156
- drawer: W(() => [
156
+ drawer: T(() => [
157
157
  A(n.$slots, "drawer")
158
158
  ]),
159
159
  _: 3
@@ -194,10 +194,15 @@ const Gr = /* @__PURE__ */ D({
194
194
  setup(e) {
195
195
  const r = e;
196
196
  je(r.adapters, r.config, r.extensions);
197
- const t = Re(() => import("./Workspace-DP3xr4Jp.js"));
197
+ const t = Re(() => import("./Workspace-BVe_v-3T.js"));
198
198
  return (n, o) => (_(), ce(Te(t), {
199
199
  "embed-in-portal": r.embedInPortal
200
- }, null, 8, ["embed-in-portal"]));
200
+ }, {
201
+ "before-workbench": T(() => [
202
+ A(n.$slots, "before-workbench")
203
+ ]),
204
+ _: 3
205
+ }, 8, ["embed-in-portal"]));
201
206
  }
202
207
  });
203
208
  function Yr(e) {
@@ -209,16 +214,16 @@ function Yr(e) {
209
214
  }
210
215
  const ze = {
211
216
  resolveAssetUrl: (e) => e
212
- }, O = {
217
+ }, $ = {
213
218
  debug: (e, r) => console.debug(e, r),
214
219
  error: (e, r) => console.error(e, r),
215
220
  info: (e, r) => console.info(e, r),
216
221
  warn: (e, r) => console.warn(e, r)
217
222
  }, Ve = {
218
- error: (e) => O.error(e),
219
- info: (e) => O.info(e),
220
- success: (e) => O.info(e),
221
- warning: (e) => O.warn(e)
223
+ error: (e) => $.error(e),
224
+ info: (e) => $.info(e),
225
+ success: (e) => $.info(e),
226
+ warning: (e) => $.warn(e)
222
227
  };
223
228
  function Jr(e = {}) {
224
229
  const r = /* @__PURE__ */ new Map();
@@ -232,7 +237,7 @@ function Jr(e = {}) {
232
237
  identityAdapter: {
233
238
  readIdentity: () => ({ appId: "test-app", roleId: "default", tenantId: "test-tenant", userId: "test-user" })
234
239
  },
235
- loggerAdapter: O,
240
+ loggerAdapter: $,
236
241
  messageAdapter: Ve,
237
242
  platformRequestAdapter: {
238
243
  ensureSessionReady: async () => !0,
@@ -447,14 +452,14 @@ function k(e) {
447
452
  const r = typeof e.source == "string" ? e.source.trim().toLowerCase() : "", t = typeof e.sourceType == "string" ? e.sourceType.trim().toLowerCase() : "", n = typeof e.composeSource == "string" ? e.composeSource.trim().toLowerCase() : "";
448
453
  return r === "image" || t === "image" || n === "image" || k(e.params);
449
454
  }
450
- function $(e) {
451
- return Y(e) ? k(e) || k(e.recognition) ? !0 : Y(e.v2) ? $(e.v2) : !1 : !1;
455
+ function O(e) {
456
+ return Y(e) ? k(e) || k(e.recognition) ? !0 : Y(e.v2) ? O(e.v2) : !1 : !1;
452
457
  }
453
458
  function ir(e, r, t) {
454
- return (r == null ? void 0 : r.suppressImageComposeAutoRefresh) !== !0 || !ge(t) ? !1 : k(e == null ? void 0 : e.params) || k(e) || k(r) || k(r == null ? void 0 : r.source) || k(r == null ? void 0 : r.data) || $(r == null ? void 0 : r.recognition) || $(r == null ? void 0 : r.meta);
459
+ return (r == null ? void 0 : r.suppressImageComposeAutoRefresh) !== !0 || !ge(t) ? !1 : k(e == null ? void 0 : e.params) || k(e) || k(r) || k(r == null ? void 0 : r.source) || k(r == null ? void 0 : r.data) || O(r == null ? void 0 : r.recognition) || O(r == null ? void 0 : r.meta);
455
460
  }
456
461
  function dr(e, r) {
457
- return k(e == null ? void 0 : e.params) || k(e) || k(r) || k(r == null ? void 0 : r.source) || k(r == null ? void 0 : r.data) || $(r == null ? void 0 : r.recognition) || $(r == null ? void 0 : r.meta);
462
+ return k(e == null ? void 0 : e.params) || k(e) || k(r) || k(r == null ? void 0 : r.source) || k(r == null ? void 0 : r.data) || O(r == null ? void 0 : r.recognition) || O(r == null ? void 0 : r.meta);
458
463
  }
459
464
  function tt(e, r) {
460
465
  if (!e) return !1;
@@ -887,7 +892,7 @@ const yr = pr("template_weather_card.png"), gr = "@byteluck-fe/workbench-templat
887
892
  // validateProps: (props) => typeof props.amount === 'number' && typeof props.trend === 'number',
888
893
  // },
889
894
  ], Nr = new Map(Mr.map((e) => [e.componentRef, e]));
890
- function Or(e, r, t) {
895
+ function $r(e, r, t) {
891
896
  var n;
892
897
  return ((n = e.validateProps) == null ? void 0 : n.call(e, r, t)) ?? !0;
893
898
  }
@@ -901,7 +906,7 @@ const lt = {
901
906
  const r = Nr.get(e.componentRef);
902
907
  return !r || r.enabled === !1 ? null : r;
903
908
  },
904
- validateProps: Or
909
+ validateProps: $r
905
910
  }, h = {
906
911
  radius: "standard",
907
912
  border: "light",
@@ -967,7 +972,7 @@ const lt = {
967
972
  { value: "compact", label: "高密度紧凑版" }
968
973
  ]
969
974
  }
970
- ], $r = {
975
+ ], Or = {
971
976
  radius: ["square", "small", "standard", "large"],
972
977
  border: ["none", "light", "strong"],
973
978
  shadow: ["none", "soft", "strong"],
@@ -978,9 +983,9 @@ const lt = {
978
983
  function X(e) {
979
984
  return e && typeof e == "object" && !Array.isArray(e) ? e : {};
980
985
  }
981
- function T(e, r) {
986
+ function W(e, r) {
982
987
  const t = h[e];
983
- return typeof r == "string" && $r[e].includes(r) ? r : t;
988
+ return typeof r == "string" && Or[e].includes(r) ? r : t;
984
989
  }
985
990
  function Dr(e) {
986
991
  return typeof e == "string" && /^#[0-9a-fA-F]{6}$/.test(e) ? e.toLowerCase() : h.textureColor;
@@ -988,13 +993,13 @@ function Dr(e) {
988
993
  function z(e) {
989
994
  const r = X(e);
990
995
  return {
991
- radius: T("radius", r.radius),
992
- border: T("border", r.border),
993
- shadow: T("shadow", r.shadow),
994
- texture: T("texture", r.texture),
996
+ radius: W("radius", r.radius),
997
+ border: W("border", r.border),
998
+ shadow: W("shadow", r.shadow),
999
+ texture: W("texture", r.texture),
995
1000
  textureColor: Dr(r.textureColor),
996
- motion: T("motion", r.motion),
997
- density: T("density", r.density)
1001
+ motion: W("motion", r.motion),
1002
+ density: W("density", r.density)
998
1003
  };
999
1004
  }
1000
1005
  function mt(e) {
@@ -1052,11 +1057,11 @@ export {
1052
1057
  h as D,
1053
1058
  De as E,
1054
1059
  Yr as F,
1055
- Oe as G,
1060
+ $e as G,
1056
1061
  Jr as H,
1057
1062
  lt as I,
1058
1063
  ze as J,
1059
- O as K,
1064
+ $ as K,
1060
1065
  Ve as L,
1061
1066
  ot as M,
1062
1067
  qr as N,
@@ -1,7 +1,17 @@
1
1
  type __VLS_Props = {
2
2
  embedInPortal?: boolean;
3
3
  };
4
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
4
+ declare var __VLS_12: {};
5
+ type __VLS_Slots = {} & {
6
+ 'before-workbench'?: (props: typeof __VLS_12) => any;
7
+ };
8
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
5
9
  embedInPortal: boolean;
6
10
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
11
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
7
12
  export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };