@opentiny/tiny-engine-settings-panel 2.4.0 → 2.5.0-alpha.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/index.js CHANGED
@@ -1,50 +1,66 @@
1
1
  import "./style.css";
2
- import { getMergeMeta as v } from "@opentiny/tiny-engine-meta-register";
3
- import { TabItem as g, Tabs as y } from "@opentiny/vue";
4
- import { resolveComponent as c, createElementBlock as r, openBlock as i, createVNode as f, withCtx as d, Fragment as V, renderList as b, createBlock as m, withDirectives as h, resolveDynamicComponent as T, createElementVNode as k, vShow as x } from "vue";
5
- const M = (o, a) => {
6
- const e = o.__vccOpts || o;
7
- for (const [t, n] of a)
8
- e[t] = n;
2
+ import { getMergeMeta as d, callEntry as b } from "@opentiny/tiny-engine-meta-register";
3
+ import { TabItem as f, Tabs as g } from "@opentiny/vue";
4
+ import { resolveComponent as r, createElementBlock as s, openBlock as l, createVNode as V, withCtx as m, Fragment as h, renderList as x, createBlock as u, withDirectives as T, resolveDynamicComponent as k, createElementVNode as M, vShow as D } from "vue";
5
+ const _ = {
6
+ id: "engine.settings"
7
+ }, w = (n, a) => {
8
+ const e = n.__vccOpts || n;
9
+ for (const [t, o] of a)
10
+ e[t] = o;
9
11
  return e;
10
- }, w = {
12
+ }, B = {
11
13
  components: {
12
- TinyTabs: y,
13
- TinyTabItem: g
14
+ TinyTabs: g,
15
+ TinyTabItem: f
14
16
  },
15
17
  props: {
16
18
  modelValue: String,
17
19
  activated: String
18
20
  },
19
21
  emits: ["update:modelValue"],
20
- setup(o, { emit: a }) {
21
- var n;
22
+ setup(n, {
23
+ emit: a
24
+ }) {
25
+ var o;
26
+ const e = ((o = d("engine.settings")) == null ? void 0 : o.metas) || [], t = b((c) => {
27
+ a("update:modelValue", c);
28
+ }, {
29
+ metaData: {
30
+ id: `${_.id}.updateModelValue`
31
+ },
32
+ ctx: () => ({
33
+ props: n,
34
+ emit: a,
35
+ settings: e,
36
+ updateModelValue: t,
37
+ getMergeMeta: d
38
+ })
39
+ });
22
40
  return {
23
- settings: ((n = v("engine.settings")) == null ? void 0 : n.metas) || [],
24
- updateModelValue: (l) => {
25
- a("update:modelValue", l);
26
- }
41
+ settings: e,
42
+ updateModelValue: t
27
43
  };
28
44
  }
29
- }, B = { id: "tiny-right-panel" }, C = { class: "active" };
30
- function D(o, a, e, t, n, l) {
31
- const u = c("tiny-tab-item"), p = c("tiny-tabs");
32
- return i(), r("div", B, [
33
- f(p, {
45
+ }, C = { id: "tiny-right-panel" }, E = { class: "active" };
46
+ function I(n, a, e, t, o, c) {
47
+ const p = r("tiny-tab-item"), v = r("tiny-tabs");
48
+ return l(), s("div", C, [
49
+ V(v, {
34
50
  "model-value": e.modelValue,
35
51
  "onUpdate:modelValue": t.updateModelValue,
36
52
  "tab-style": "button-card"
37
53
  }, {
38
- default: d(() => [
39
- (i(!0), r(V, null, b(t.settings, (s, _) => (i(), m(u, {
40
- key: _,
41
- title: s.title,
42
- name: s.name
54
+ default: m(() => [
55
+ (l(!0), s(h, null, x(t.settings, (i, y) => (l(), u(p, {
56
+ key: y,
57
+ title: i.title,
58
+ name: i.name
43
59
  }, {
44
- default: d(() => [
45
- (i(), m(T(s.component))),
46
- h(k("div", C, null, 512), [
47
- [x, e.activated]
60
+ default: m(() => [
61
+ (l(), u(k(i.component))),
62
+ T(M("div", E, null, 512), [
63
+ [D, e.activated]
48
64
  ])
49
65
  ]),
50
66
  _: 2
@@ -54,12 +70,10 @@ function D(o, a, e, t, n, l) {
54
70
  }, 8, ["model-value", "onUpdate:modelValue"])
55
71
  ]);
56
72
  }
57
- const I = /* @__PURE__ */ M(w, [["render", D], ["__scopeId", "data-v-c05e7aad"]]), S = {
58
- id: "engine.settings"
59
- }, L = {
60
- ...S,
61
- entry: I
73
+ const S = /* @__PURE__ */ w(B, [["render", I], ["__scopeId", "data-v-037c961b"]]), O = {
74
+ ..._,
75
+ entry: S
62
76
  };
63
77
  export {
64
- L as default
78
+ O as default
65
79
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- #tiny-right-panel[data-v-c05e7aad]{width:var(--base-right-panel-width);height:100%;transition:.3s linear;position:relative;border-left:1px solid var(--te-settings-panel-border-color);padding-top:20px;background-color:var(--te-settings-panel-common-bg-color)}#tiny-right-panel .tiny-tabs[data-v-c05e7aad]{height:100%}#tiny-right-panel[data-v-c05e7aad] .tiny-tabs{display:flex;flex-direction:column}#tiny-right-panel[data-v-c05e7aad] .tiny-tabs .tiny-tabs__nav-scroll{text-align:center}#tiny-right-panel[data-v-c05e7aad] .tiny-tabs .tiny-tabs__nav-scroll .tiny-tabs__nav{display:inline-flex;justify-content:center;float:none}#tiny-right-panel[data-v-c05e7aad] .tiny-tabs .tiny-tabs__header{padding-bottom:12px}#tiny-right-panel[data-v-c05e7aad] .tiny-tabs .tiny-tabs__content{flex:1;overflow-y:scroll;padding:0;margin:0}#tiny-right-panel[data-v-c05e7aad] .tiny-tabs .tiny-tabs__item{color:var(--te-settings-panel-common-text-color-secondary)}#tiny-right-panel[data-v-c05e7aad] .tiny-tabs .tiny-tabs__item:hover,#tiny-right-panel[data-v-c05e7aad] .tiny-tabs .tiny-tabs__item.is-active{color:var(--te-settings-panel-common-text-color-primary)}#tiny-right-panel[data-v-c05e7aad] .tiny-collapse-item__content{padding:8px 16px}.active[data-v-c05e7aad]{width:100%;height:100%;position:absolute;top:0;animation:glow-c05e7aad .8s ease-out infinite alternate;transition:opacity 1s linear}@keyframes glow-c05e7aad{0%{box-shadow:inset 0 0 4px var(--te-settings-panel-bg-color-active)}to{box-shadow:inset 0 0 14px var(--te-settings-panel-bg-color-active)}}:root{--te-settings-panel-border-color: var(--te-common-border-divider);--te-settings-panel-common-bg-color: var(--te-common-bg-default);--te-settings-panel-common-text-color-primary: var(--te-common-text-primary);--te-settings-panel-common-text-color-secondary: var(--te-common-text-secondary);--te-settings-panel-bg-color-active: var(--te-common-bg-primary-checked)}
1
+ #tiny-right-panel[data-v-037c961b]{width:var(--base-right-panel-width);height:100%;transition:.3s linear;position:relative;border-left:1px solid var(--te-settings-panel-border-color);padding-top:20px;background-color:var(--te-settings-panel-common-bg-color)}#tiny-right-panel .tiny-tabs[data-v-037c961b]{height:100%}#tiny-right-panel[data-v-037c961b] .tiny-tabs{display:flex;flex-direction:column}#tiny-right-panel[data-v-037c961b] .tiny-tabs .tiny-tabs__nav-scroll{text-align:center}#tiny-right-panel[data-v-037c961b] .tiny-tabs .tiny-tabs__nav-scroll .tiny-tabs__nav{display:inline-flex;justify-content:center;float:none}#tiny-right-panel[data-v-037c961b] .tiny-tabs .tiny-tabs__header{padding-bottom:12px}#tiny-right-panel[data-v-037c961b] .tiny-tabs .tiny-tabs__content{flex:1;overflow-y:scroll;padding:0;margin:0}#tiny-right-panel[data-v-037c961b] .tiny-tabs .tiny-tabs__item{color:var(--te-settings-panel-common-text-color-secondary)}#tiny-right-panel[data-v-037c961b] .tiny-tabs .tiny-tabs__item:hover,#tiny-right-panel[data-v-037c961b] .tiny-tabs .tiny-tabs__item.is-active{color:var(--te-settings-panel-common-text-color-primary)}#tiny-right-panel[data-v-037c961b] .tiny-collapse-item__content{padding:8px 16px}.active[data-v-037c961b]{width:100%;height:100%;position:absolute;top:0;animation:glow-037c961b .8s ease-out infinite alternate;transition:opacity 1s linear}@keyframes glow-037c961b{0%{box-shadow:inset 0 0 4px var(--te-settings-panel-bg-color-active)}to{box-shadow:inset 0 0 14px var(--te-settings-panel-bg-color-active)}}:root{--te-settings-panel-border-color: var(--te-common-border-divider);--te-settings-panel-common-bg-color: var(--te-common-bg-default);--te-settings-panel-common-text-color-primary: var(--te-common-text-primary);--te-settings-panel-common-text-color-secondary: var(--te-common-text-secondary);--te-settings-panel-bg-color-active: var(--te-common-bg-primary-checked)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-engine-settings-panel",
3
- "version": "2.4.0",
3
+ "version": "2.5.0-alpha.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -25,10 +25,10 @@
25
25
  "license": "MIT",
26
26
  "homepage": "https://opentiny.design/tiny-engine",
27
27
  "dependencies": {
28
- "@opentiny/tiny-engine-meta-register": "2.4.0"
28
+ "@opentiny/tiny-engine-meta-register": "2.5.0-alpha.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.4.0",
31
+ "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.5.0-alpha.0",
32
32
  "@vitejs/plugin-vue": "^5.1.2",
33
33
  "@vitejs/plugin-vue-jsx": "^4.0.1",
34
34
  "vite": "^5.4.2"
@@ -37,5 +37,5 @@
37
37
  "@opentiny/vue": "^3.20.0",
38
38
  "vue": "^3.4.15"
39
39
  },
40
- "gitHead": "477aa411da11a4f95712e3e5c251d97cae23f4ad"
40
+ "gitHead": "ae59c82734d79f650c9221cb9702714814b099c8"
41
41
  }