@fewangsit/wangsvue-fats 1.0.1-alpha.63 → 1.0.1-alpha.64

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.
@@ -155,7 +155,7 @@ export interface ButtonSelectTreeProps {
155
155
  /**
156
156
  * Defines the group tree to disable excluded keys
157
157
  */
158
- excludedKeys?: string[] | number[];
158
+ excludedKeys?: string[];
159
159
  /**
160
160
  * Define wether single selection can be edited or readonly
161
161
  * @default true
@@ -89,6 +89,12 @@ export interface DialogSelectTreeProps
89
89
  */
90
90
  hidden?: boolean;
91
91
 
92
+ /**
93
+ * Determines whether the selection state of a node should propagate
94
+ * both upward to its parent node and downward to its child nodes.
95
+ *
96
+ * @default true
97
+ */
92
98
  propagateSelection?: boolean;
93
99
  }
94
100
 
@@ -1,4 +1,4 @@
1
- import { defineComponent as G, mergeModels as T, useModel as P, inject as U, ref as o, computed as W, watch as b, createBlock as N, openBlock as d, unref as v, createSlots as O, withCtx as g, createVNode as B, mergeProps as z, renderSlot as D, createElementVNode as K, createElementBlock as k, createCommentVNode as h, normalizeClass as V, toDisplayString as L, Fragment as I, renderList as Y, withDirectives as q, vShow as J } from "vue";
1
+ import { defineComponent as G, mergeModels as T, useModel as P, inject as U, ref as o, computed as W, watch as b, createBlock as N, openBlock as d, unref as f, createSlots as O, withCtx as g, createVNode as B, mergeProps as z, renderSlot as D, createElementVNode as K, createElementBlock as k, createCommentVNode as h, normalizeClass as V, toDisplayString as L, Fragment as I, renderList as Y, withDirectives as q, vShow as J } from "vue";
2
2
  import { g as Q } from "../utils/object.util.es.js";
3
3
  import { _ as j } from "../button/index.es.js";
4
4
  import { _ as R } from "../dialog/index.es.js";
@@ -40,7 +40,7 @@ const ee = {
40
40
  flattenDisposableNode: { type: Boolean },
41
41
  excludedKeys: {},
42
42
  hidden: { type: Boolean },
43
- propagateSelection: { type: Boolean },
43
+ propagateSelection: { type: Boolean, default: !0 },
44
44
  selectedKeys: {},
45
45
  selectedTreeNodes: {},
46
46
  useOption: { type: Boolean },
@@ -78,7 +78,7 @@ const ee = {
78
78
  }),
79
79
  emits: /* @__PURE__ */ T(["select", "hide"], ["update:visible"]),
80
80
  setup($, { expose: A, emit: x }) {
81
- const s = $, C = x, n = P($, "visible"), f = U("preset", {}).dialog, r = o(), p = o(""), y = o(""), m = o([]), c = o(), S = o(), E = o(!1), u = o(), w = o(), H = W(() => s.header ? s.header : s.type === "group" ? "Select Group" : "Select Category"), M = (e = !0) => {
81
+ const s = $, C = x, n = P($, "visible"), v = U("preset", {}).dialog, r = o(), p = o(""), y = o(""), m = o([]), c = o(), S = o(), E = o(!1), u = o(), w = o(), H = W(() => s.header ? s.header : s.type === "group" ? "Select Group" : "Select Category"), M = (e = !0) => {
82
82
  c.value = u.value, S.value = w.value, Object.keys(c.value ?? {}).length ? (C("select", {
83
83
  keys: c.value,
84
84
  selectedNodes: m.value,
@@ -115,7 +115,7 @@ const ee = {
115
115
  pt: {
116
116
  root: {
117
117
  class: [
118
- ...v(f).root({ state: {} }).class,
118
+ ...f(v).root({ state: {} }).class,
119
119
  "!w-[400px]",
120
120
  { "!hidden": e.hidden }
121
121
  ]
@@ -128,7 +128,7 @@ const ee = {
128
128
  },
129
129
  content: {
130
130
  class: [
131
- ...v(f).content({ state: {}, instance: {} }).class,
131
+ ...f(v).content({ state: {}, instance: {} }).class,
132
132
  "pr-1.5 focus-visible:outline-none"
133
133
  ]
134
134
  },
@@ -161,17 +161,17 @@ const ee = {
161
161
  return [
162
162
  K("div", ee, [
163
163
  K("h3", {
164
- class: V([...v(f).title.class, "!leading-6"])
164
+ class: V([...f(v).title.class, "!leading-6"])
165
165
  }, L(H.value), 3),
166
166
  e.lists ? (d(), k("ul", le, [
167
167
  (d(!0), k(I, null, Y(e.lists, (i, F) => (d(), k("li", {
168
168
  key: F,
169
169
  class: "text-xs leading-[16.39px] tracking-[0.02em] font-medium text-general-800 list-disc ps-[6px]"
170
- }, L(e.listLabel && typeof i != "string" ? v(Q)(i, e.listLabel) : i), 1))), 128))
170
+ }, L(e.listLabel && typeof i != "string" ? f(Q)(i, e.listLabel) : i), 1))), 128))
171
171
  ])) : h("", !0),
172
172
  e.subHeader ? (d(), k("h4", {
173
173
  key: 1,
174
- class: V([...v(f).title.class, "!leading-6 text-sm"])
174
+ class: V([...f(v).title.class, "!leading-6 text-sm"])
175
175
  }, L(e.subHeader), 3)) : h("", !0),
176
176
  (a = r.value) != null && a.isLoading ? h("", !0) : (d(), N(Z, {
177
177
  key: 2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewangsit/wangsvue-fats",
3
- "version": "1.0.1-alpha.63",
3
+ "version": "1.0.1-alpha.64",
4
4
  "author": "Wangsit FE Developer",
5
5
  "description": "Fixed Asset Tagsamurai VueJS Component Library",
6
6
  "type": "module",