@opentiny/tiny-engine-toolbar-breadcrumb 2.0.0 → 2.1.0-rc.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/LICENSE CHANGED
@@ -1,22 +1,22 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 - present TinyEngine Authors.
4
- Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in all
14
- copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2023 - present TinyEngine Authors.
4
+ Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
1
  import "./style.css";
2
- import { reactive as E, computed as S, resolveComponent as c, openBlock as i, createBlock as B, withCtx as m, createElementVNode as D, normalizeClass as C, createVNode as k, createElementBlock as N, Fragment as O, renderList as I, createTextVNode as v, toDisplayString as x, createCommentVNode as A, ref as L } from "vue";
3
- import { Breadcrumb as V, BreadcrumbItem as K, Button as P } from "@opentiny/vue";
4
- import { useLayout as X, useBreadcrumb as w, HOOK_NAME as G } from "@opentiny/tiny-engine-meta-register";
5
- import { BlockDeployDialog as h, ToolbarBase as z } from "@opentiny/tiny-engine-common";
6
- const M = (o, t) => {
7
- const n = o.__vccOpts || o;
8
- for (const [e, a] of t)
2
+ import { reactive as E, computed as S, resolveComponent as c, openBlock as i, createBlock as _, withCtx as m, createElementVNode as D, normalizeClass as C, createVNode as k, createElementBlock as N, Fragment as O, renderList as I, createTextVNode as v, toDisplayString as x, createCommentVNode as A, ref as L } from "vue";
3
+ import { Breadcrumb as V, BreadcrumbItem as h, Button as K } from "@opentiny/vue";
4
+ import { useLayout as P, useBreadcrumb as X, HOOK_NAME as w } from "@opentiny/tiny-engine-meta-register";
5
+ import { BlockDeployDialog as G, ToolbarBase as z } from "@opentiny/tiny-engine-common";
6
+ const M = (t, o) => {
7
+ const n = t.__vccOpts || t;
8
+ for (const [e, a] of o)
9
9
  n[e] = a;
10
10
  return n;
11
11
  }, U = {
12
12
  components: {
13
13
  TinyBreadcrumb: V,
14
- TinyBreadcrumbItem: K,
15
- BlockDeployDialog: h,
16
- TinyButton: P,
14
+ TinyBreadcrumbItem: h,
15
+ BlockDeployDialog: G,
16
+ TinyButton: K,
17
17
  ToolbarBase: z
18
18
  },
19
19
  props: {
@@ -23,12 +23,12 @@ const M = (o, t) => {
23
23
  }
24
24
  },
25
25
  setup() {
26
- const o = {
26
+ const t = {
27
27
  PAGEID: "engine.plugins.appmanage",
28
28
  BLOCKID: "engine.plugins.blockmanage"
29
- }, { layoutState: t } = X(), { plugins: n } = t || {}, e = E({
29
+ }, { layoutState: o } = P(), { plugins: n } = o || {}, e = E({
30
30
  showDeployBlock: !1
31
- }), { CONSTANTS: a, getBreadcrumbData: b } = w(), s = b(), u = () => {
31
+ }), { CONSTANTS: a, getBreadcrumbData: b } = X(), s = b(), u = () => {
32
32
  e.showDeployBlock = !0;
33
33
  }, d = S(() => {
34
34
  const p = b().value[2] || [];
@@ -45,14 +45,14 @@ const M = (o, t) => {
45
45
  nextVersion: d,
46
46
  CONSTANTS: a,
47
47
  open: () => {
48
- n && (n.render = s.value[0] === a.PAGETEXT ? o.PAGEID : o.BLOCKID);
48
+ n && (n.render = s.value[0] === a.PAGETEXT ? t.PAGEID : t.BLOCKID);
49
49
  }
50
50
  };
51
51
  }
52
52
  }, j = { class: "top-panel-breadcrumb" };
53
- function F(o, t, n, e, a, b) {
53
+ function F(t, o, n, e, a, b) {
54
54
  const s = c("tiny-breadcrumb-item"), u = c("tiny-breadcrumb"), d = c("tiny-button"), y = c("block-deploy-dialog"), p = c("toolbar-base");
55
- return i(), B(p, { options: n.options }, {
55
+ return i(), _(p, { options: n.options }, {
56
56
  default: m(() => [
57
57
  D("div", j, [
58
58
  D("div", {
@@ -66,7 +66,7 @@ function F(o, t, n, e, a, b) {
66
66
  onSelect: e.open
67
67
  }, {
68
68
  default: m(() => [
69
- (i(!0), N(O, null, I(e.breadcrumbData.slice(0, 2), (r) => (i(), B(s, { key: r }, {
69
+ (i(!0), N(O, null, I(e.breadcrumbData.slice(0, 2), (r) => (i(), _(s, { key: r }, {
70
70
  default: m(() => [
71
71
  v(x(r), 1)
72
72
  ]),
@@ -76,29 +76,29 @@ function F(o, t, n, e, a, b) {
76
76
  _: 1
77
77
  }, 8, ["onSelect"])
78
78
  ], 2),
79
- e.breadcrumbData[0] === e.CONSTANTS.BLOCKTEXT ? (i(), B(d, {
79
+ e.breadcrumbData[0] === e.CONSTANTS.BLOCKTEXT ? (i(), _(d, {
80
80
  key: 0,
81
81
  class: "publish",
82
- onClick: t[0] || (t[0] = (r) => e.publishBlock()),
82
+ onClick: o[0] || (o[0] = (r) => e.publishBlock()),
83
83
  type: "primary",
84
84
  size: "small"
85
85
  }, {
86
- default: m(() => t[2] || (t[2] = [
86
+ default: m(() => [
87
87
  v("发布区块 ")
88
- ])),
88
+ ]),
89
89
  _: 1
90
90
  })) : A("", !0)
91
91
  ]),
92
92
  k(y, {
93
93
  visible: e.state.showDeployBlock,
94
- "onUpdate:visible": t[1] || (t[1] = (r) => e.state.showDeployBlock = r),
94
+ "onUpdate:visible": o[1] || (o[1] = (r) => e.state.showDeployBlock = r),
95
95
  nextVersion: e.nextVersion
96
96
  }, null, 8, ["visible", "nextVersion"])
97
97
  ]),
98
98
  _: 1
99
99
  }, 8, ["options"]);
100
100
  }
101
- const H = /* @__PURE__ */ M(U, [["render", F], ["__scopeId", "data-v-44246d59"]]), q = {
101
+ const H = /* @__PURE__ */ M(U, [["render", F], ["__scopeId", "data-v-92856187"]]), q = {
102
102
  id: "engine.toolbars.breadcrumb",
103
103
  type: "toolbars",
104
104
  title: "breadcrumb",
@@ -109,15 +109,15 @@ const H = /* @__PURE__ */ M(U, [["render", F], ["__scopeId", "data-v-44246d59"]]
109
109
  renderType: "slot"
110
110
  }
111
111
  };
112
- let _ = L([]);
112
+ let B = L([]);
113
113
  const T = {
114
114
  PAGETEXT: "页面",
115
115
  BLOCKTEXT: "区块"
116
- }, J = (o) => {
117
- _.value = [T.PAGETEXT, ...o], sessionStorage.setItem("pageInfo", o);
118
- }, Q = (o, t = []) => {
119
- _.value = [T.BLOCKTEXT, ...o, t];
120
- }, R = () => _, W = () => ({
116
+ }, J = (t) => {
117
+ B.value = [T.PAGETEXT, ...t], sessionStorage.setItem("pageInfo", t);
118
+ }, Q = (t, o = []) => {
119
+ B.value = [T.BLOCKTEXT, ...t, o];
120
+ }, R = () => B, W = () => ({
121
121
  CONSTANTS: T,
122
122
  setBreadcrumbPage: J,
123
123
  setBreadcrumbBlock: Q,
@@ -127,7 +127,7 @@ const T = {
127
127
  type: "MetaService",
128
128
  apis: W(),
129
129
  composable: {
130
- name: G.useBreadcrumb
130
+ name: w.useBreadcrumb
131
131
  }
132
132
  }, re = {
133
133
  ...q,
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .top-panel-breadcrumb[data-v-44246d59]{padding-left:12px;box-sizing:border-box;display:flex;justify-content:flex-start;align-items:center;width:auto;height:100%;margin-right:3px;cursor:pointer}.top-panel-breadcrumb-title[data-v-44246d59]{height:28px;padding:0 8px;background-color:var(--ti-lowcode-toolbar-button-bg);display:flex;border-radius:4px}.top-panel-breadcrumb-title[data-v-44246d59] .reference-wrapper{line-height:22px}.top-panel-breadcrumb .tiny-breadcrumb[data-v-44246d59]{line-height:var(--base-top-panel-breadcrumb-line-height);padding-right:4px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:12px;cursor:inherit}.top-panel-breadcrumb .tiny-breadcrumb__item[data-v-44246d59]{cursor:inherit;-webkit-user-select:none;user-select:none}.top-panel-breadcrumb .tiny-breadcrumb__item[data-v-44246d59] .tiny-breadcrumb__inner{color:var(--ti-lowcode-media-popover-title-color);text-decoration:none;cursor:pointer}.top-panel-breadcrumb .tiny-breadcrumb__item[data-v-44246d59] .tiny-breadcrumb__separator{padding:0;margin:0 4px 0 0}.top-panel-breadcrumb .tiny-breadcrumb__item[data-v-44246d59]:last-child .tiny-breadcrumb__inner{font-weight:400;color:var(--ti-lowcode-media-popover-title-color)}.top-panel-breadcrumb-title-block[data-v-44246d59]{background-color:var(--ti-lowcode-toolbar-breadcrumb-bg)}.top-panel-breadcrumb-title-block .tiny-breadcrumb__item[data-v-44246d59] .tiny-breadcrumb__inner{color:var(--ti-lowcode-toolbar-breadcrumb-left-color)}.top-panel-breadcrumb-title-block .tiny-breadcrumb__item[data-v-44246d59]:last-child .tiny-breadcrumb__inner{color:var(--ti-lowcode-toolbar-breadcrumb-left-color)}.top-panel-breadcrumb-title-block[data-v-44246d59]:hover{background-color:var(--ti-lowcode-toolbar-breadcrumb-bg-hover)}.top-panel-breadcrumb .publish[data-v-44246d59]{margin:0 8px;height:24px;line-height:24px;min-width:40px;font-size:12px}
1
+ .top-panel-breadcrumb[data-v-92856187]{padding-left:12px;box-sizing:border-box;display:flex;justify-content:flex-start;align-items:center;width:auto;height:100%;margin-right:3px;cursor:pointer}.top-panel-breadcrumb-title[data-v-92856187]{height:28px;padding:0 8px;background-color:var(--ti-lowcode-toolbar-button-bg);display:flex;border-radius:4px}.top-panel-breadcrumb-title[data-v-92856187] .reference-wrapper{line-height:22px}.top-panel-breadcrumb .tiny-breadcrumb[data-v-92856187]{line-height:var(--base-top-panel-breadcrumb-line-height);padding-right:4px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:12px;cursor:inherit}.top-panel-breadcrumb .tiny-breadcrumb__item[data-v-92856187]{cursor:inherit;-webkit-user-select:none;user-select:none}.top-panel-breadcrumb .tiny-breadcrumb__item[data-v-92856187] .tiny-breadcrumb__inner{color:var(--ti-lowcode-media-popover-title-color);text-decoration:none;cursor:pointer}.top-panel-breadcrumb .tiny-breadcrumb__item[data-v-92856187] .tiny-breadcrumb__separator{padding:0;margin:0 4px 0 0}.top-panel-breadcrumb .tiny-breadcrumb__item[data-v-92856187]:last-child .tiny-breadcrumb__inner{font-weight:400;color:var(--ti-lowcode-media-popover-title-color)}.top-panel-breadcrumb-title-block[data-v-92856187]{background-color:var(--ti-lowcode-toolbar-breadcrumb-bg)}.top-panel-breadcrumb-title-block .tiny-breadcrumb__item[data-v-92856187] .tiny-breadcrumb__inner{color:var(--ti-lowcode-toolbar-breadcrumb-left-color)}.top-panel-breadcrumb-title-block .tiny-breadcrumb__item[data-v-92856187]:last-child .tiny-breadcrumb__inner{color:var(--ti-lowcode-toolbar-breadcrumb-left-color)}.top-panel-breadcrumb-title-block[data-v-92856187]:hover{background-color:var(--ti-lowcode-toolbar-breadcrumb-bg-hover)}.top-panel-breadcrumb .publish[data-v-92856187]{margin:0 8px;height:24px;line-height:24px;min-width:40px;font-size:12px}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-engine-toolbar-breadcrumb",
3
- "version": "2.0.0",
3
+ "version": "2.1.0-rc.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -25,12 +25,12 @@
25
25
  "license": "MIT",
26
26
  "homepage": "https://opentiny.design/tiny-engine",
27
27
  "dependencies": {
28
- "@opentiny/tiny-engine-common": "2.0.0",
29
- "@opentiny/tiny-engine-meta-register": "2.0.0",
30
- "@opentiny/tiny-engine-utils": "2.0.0"
28
+ "@opentiny/tiny-engine-common": "2.1.0-rc.0",
29
+ "@opentiny/tiny-engine-meta-register": "2.1.0-rc.0",
30
+ "@opentiny/tiny-engine-utils": "2.1.0-rc.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.0.0",
33
+ "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.1.0-rc.0",
34
34
  "@vitejs/plugin-vue": "^5.1.2",
35
35
  "@vitejs/plugin-vue-jsx": "^4.0.1",
36
36
  "vite": "^5.4.2"
@@ -39,5 +39,5 @@
39
39
  "@opentiny/vue": "^3.14.0",
40
40
  "vue": "^3.4.15"
41
41
  },
42
- "gitHead": "26b32b2236bb85d8113158fd1475884aa99a9657"
42
+ "gitHead": "71a3549d5f1d38d2ed3934ce83b722b11878aa7c"
43
43
  }