@nubisco/ui 5.4.1 → 5.5.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.
Files changed (151) hide show
  1. package/README.md +4 -3
  2. package/dist/{Blueprint-BgmsyoIu.js → Blueprint-ClU0eIiy.js} +2 -2
  3. package/dist/{Blueprint-CvOpJq_7.cjs → Blueprint-DbehXPR2.cjs} +1 -1
  4. package/dist/{BlueprintCard-BdT657ax.cjs → BlueprintCard-MDfxqPyE.cjs} +1 -1
  5. package/dist/{BlueprintCard-BJlyW5LC.js → BlueprintCard-VfWPpR6_.js} +1 -1
  6. package/dist/{BlueprintControls-DCUQ9LQ7.cjs → BlueprintControls-BR12TLQ1.cjs} +1 -1
  7. package/dist/{BlueprintControls-DwGxskS4.js → BlueprintControls-pnaU1lCY.js} +1 -1
  8. package/dist/Button-Cw4D6w9K.js +121 -0
  9. package/dist/Button-D-XSNjSL.cjs +1 -0
  10. package/dist/{Confirm-bPSArUzM.js → Confirm-BewLtgMD.js} +1 -1
  11. package/dist/{Confirm-Dmhkb56Q.cjs → Confirm-DHWWbfmu.cjs} +1 -1
  12. package/dist/{DataTable-DueT6mHP.js → DataTable-CVih75pn.js} +1 -1
  13. package/dist/{DataTable-CtjSxLmA.cjs → DataTable-DLuSmiTV.cjs} +1 -1
  14. package/dist/{FileUploader-OqfHo3LH.js → FileUploader-Ba0H8UPw.js} +1 -1
  15. package/dist/{FileUploader-DEBpnSuZ.cjs → FileUploader-CN7XPX9n.cjs} +1 -1
  16. package/dist/InfoHint-DX3lgnTX.cjs +1 -0
  17. package/dist/{InfoHint-Dvdnc-vI.js → InfoHint-DjAgTkgL.js} +32 -32
  18. package/dist/Menu-BSbPfsiE.cjs +1 -0
  19. package/dist/{Menu-Dzg_RrG-.js → Menu-Dy1JwMdl.js} +31 -17
  20. package/dist/{MenuBarItem-DyS1SWrP.js → MenuBarItem-CYofbcgq.js} +1 -1
  21. package/dist/{MenuBarItem-ma4XHwRB.cjs → MenuBarItem-Ya88A6xZ.cjs} +1 -1
  22. package/dist/{NotificationCenter-BYQdkoja.cjs → NotificationCenter-DCi4hoKm.cjs} +1 -1
  23. package/dist/{NotificationCenter-_K5ZQ82b.js → NotificationCenter-Yhez667P.js} +1 -1
  24. package/dist/{Pagination-Mu8uhAwJ.js → Pagination-BInZQpJS.js} +1 -1
  25. package/dist/{Pagination-NaWfr8Rs.cjs → Pagination-Dz24gpb7.cjs} +1 -1
  26. package/dist/Submenu-QgPVi2bN.cjs +1 -0
  27. package/dist/Submenu-SQTJc81U.js +148 -0
  28. package/dist/TableOfContents-BD-79w4n.cjs +1 -0
  29. package/dist/TableOfContents-fTZdpn-L.js +253 -0
  30. package/dist/{Tree-DUfjBsuG.js → Tree-DHdPsRXV.js} +1 -1
  31. package/dist/{Tree-CHJvaRgP.cjs → Tree-DI_ouWnv.cjs} +1 -1
  32. package/dist/TreeNode-CME77z98.js +165 -0
  33. package/dist/TreeNode-CpV3GOzv.cjs +1 -0
  34. package/dist/{Walkthrough-DpGi2slp.js → Walkthrough-B4E8LruL.js} +1 -1
  35. package/dist/{Walkthrough-ClLGKPYd.cjs → Walkthrough-DuX31BAz.cjs} +1 -1
  36. package/dist/all.cjs +1 -1
  37. package/dist/all.mjs +58 -56
  38. package/dist/component-styles.json +5 -0
  39. package/dist/components/AiLabel.cjs +1 -1
  40. package/dist/components/AiLabel.mjs +1 -1
  41. package/dist/components/Blueprint.cjs +1 -1
  42. package/dist/components/Blueprint.mjs +1 -1
  43. package/dist/components/BlueprintBackground.cjs +1 -1
  44. package/dist/components/BlueprintBackground.mjs +1 -1
  45. package/dist/components/BlueprintCard.cjs +1 -1
  46. package/dist/components/BlueprintCard.mjs +1 -1
  47. package/dist/components/BlueprintControls.cjs +1 -1
  48. package/dist/components/BlueprintControls.mjs +1 -1
  49. package/dist/components/BlueprintMinimap.cjs +1 -1
  50. package/dist/components/BlueprintMinimap.mjs +1 -1
  51. package/dist/components/BottomPanel.cjs +1 -1
  52. package/dist/components/BottomPanel.mjs +1 -1
  53. package/dist/components/Button.cjs +1 -1
  54. package/dist/components/Button.mjs +1 -1
  55. package/dist/components/Button.vue.d.ts +6 -9
  56. package/dist/components/Button.vue.d.ts.map +1 -1
  57. package/dist/components/Confirm.cjs +1 -1
  58. package/dist/components/Confirm.mjs +1 -1
  59. package/dist/components/DataTable.cjs +1 -1
  60. package/dist/components/DataTable.mjs +1 -1
  61. package/dist/components/FileUploader.cjs +1 -1
  62. package/dist/components/FileUploader.mjs +1 -1
  63. package/dist/components/Form.cjs +1 -1
  64. package/dist/components/Form.mjs +1 -1
  65. package/dist/components/ImageCropper.cjs +1 -1
  66. package/dist/components/ImageCropper.mjs +1 -1
  67. package/dist/components/InfoHint.cjs +1 -1
  68. package/dist/components/InfoHint.mjs +1 -1
  69. package/dist/components/InfoHint.vue.d.ts.map +1 -1
  70. package/dist/components/Menu.cjs +1 -1
  71. package/dist/components/Menu.d.ts +7 -0
  72. package/dist/components/Menu.mjs +1 -1
  73. package/dist/components/Menu.vue.d.ts.map +1 -1
  74. package/dist/components/MenuBarItem.cjs +1 -1
  75. package/dist/components/MenuBarItem.mjs +1 -1
  76. package/dist/components/NotificationCenter.cjs +1 -1
  77. package/dist/components/NotificationCenter.mjs +1 -1
  78. package/dist/components/Pagination.cjs +1 -1
  79. package/dist/components/Pagination.mjs +1 -1
  80. package/dist/components/ShellPanel.cjs +1 -1
  81. package/dist/components/ShellPanel.mjs +1 -1
  82. package/dist/components/Submenu.cjs +1 -1
  83. package/dist/components/Submenu.mjs +1 -1
  84. package/dist/components/Submenu.vue.d.ts.map +1 -1
  85. package/dist/components/TableOfContents.cjs +1 -0
  86. package/dist/components/TableOfContents.d.ts +104 -0
  87. package/dist/components/TableOfContents.mjs +2 -0
  88. package/dist/components/TableOfContents.vue.d.ts +44 -0
  89. package/dist/components/TableOfContents.vue.d.ts.map +1 -0
  90. package/dist/components/TableOfContentsList.vue.d.ts +14 -0
  91. package/dist/components/TableOfContentsList.vue.d.ts.map +1 -0
  92. package/dist/components/Tabs.cjs +1 -1
  93. package/dist/components/Tabs.mjs +1 -1
  94. package/dist/components/Tree.cjs +1 -1
  95. package/dist/components/Tree.d.ts +14 -0
  96. package/dist/components/Tree.mjs +1 -1
  97. package/dist/components/TreeNode.cjs +1 -1
  98. package/dist/components/TreeNode.mjs +1 -1
  99. package/dist/components/TreeNode.vue.d.ts +2 -0
  100. package/dist/components/TreeNode.vue.d.ts.map +1 -1
  101. package/dist/components/Walkthrough.cjs +1 -1
  102. package/dist/components/Walkthrough.mjs +1 -1
  103. package/dist/components/index.d.ts.map +1 -1
  104. package/dist/components/manifest.d.ts +1 -0
  105. package/dist/components/manifest.d.ts.map +1 -1
  106. package/dist/components/manifest.js +1 -0
  107. package/dist/composables/useBlueprint.composable.cjs +1 -1
  108. package/dist/composables/useBlueprint.composable.mjs +1 -1
  109. package/dist/composables/useConfirm.composable.cjs +1 -1
  110. package/dist/composables/useConfirm.composable.mjs +1 -1
  111. package/dist/global.d.ts +4 -0
  112. package/dist/index.cjs +1 -1
  113. package/dist/index.mjs +37 -36
  114. package/dist/main.d.ts +2 -0
  115. package/dist/main.d.ts.map +1 -1
  116. package/dist/styles/Button.css +1 -1
  117. package/dist/styles/InfoHint.css +1 -1
  118. package/dist/styles/TableOfContents.css +1 -0
  119. package/dist/styles/TreeNode.css +1 -1
  120. package/dist/ui.css +4 -3
  121. package/package.json +1 -1
  122. package/dist/Button-B2ngznxj.cjs +0 -1
  123. package/dist/Button-CnwG9SUU.js +0 -99
  124. package/dist/InfoHint-BOYN7Jig.cjs +0 -1
  125. package/dist/Menu-CTCkLSMW.cjs +0 -1
  126. package/dist/Submenu-D5C02DV5.js +0 -123
  127. package/dist/Submenu-DuMYz-uf.cjs +0 -1
  128. package/dist/TreeNode-CyOc2r4y.cjs +0 -1
  129. package/dist/TreeNode-S_qQNbsJ.js +0 -143
  130. /package/dist/{AiLabel-BmUhIOFk.js → AiLabel-BciBQAKB.js} +0 -0
  131. /package/dist/{AiLabel-PATTi5dO.cjs → AiLabel-ClnMVvCl.cjs} +0 -0
  132. /package/dist/{Blueprint.context-BOAtPYlo.js → Blueprint.context-CHfek6nW.js} +0 -0
  133. /package/dist/{Blueprint.context-BUzhZPrF.cjs → Blueprint.context-C_y0TS6a.cjs} +0 -0
  134. /package/dist/{BlueprintBackground-Cd_30GvD.cjs → BlueprintBackground-D58A6eXS.cjs} +0 -0
  135. /package/dist/{BlueprintBackground-1IxGPyUh.js → BlueprintBackground-SJ-ibrkF.js} +0 -0
  136. /package/dist/{BlueprintMinimap-w3Y0VvIx.cjs → BlueprintMinimap-BPqaGiY0.cjs} +0 -0
  137. /package/dist/{BlueprintMinimap-CmFRuqou.js → BlueprintMinimap-De8KVP54.js} +0 -0
  138. /package/dist/{BottomPanel-VNTVAMs3.js → BottomPanel-C7VWbs0V.js} +0 -0
  139. /package/dist/{BottomPanel-CK1NsXtz.cjs → BottomPanel-Di3pv797.cjs} +0 -0
  140. /package/dist/{Form-HC4yg8DG.js → Form-BPHdzd8_.js} +0 -0
  141. /package/dist/{Form-rRMK9twU.cjs → Form-C-l_4RHC.cjs} +0 -0
  142. /package/dist/{ImageCropper-BKKcVuPn.cjs → ImageCropper-BbW7o5mE.cjs} +0 -0
  143. /package/dist/{ImageCropper-CR8HCvg4.js → ImageCropper-DS3QiZ-X.js} +0 -0
  144. /package/dist/{ShellPanel-DnleEQR7.js → ShellPanel-B1byDSRC.js} +0 -0
  145. /package/dist/{ShellPanel-62ajcug-.cjs → ShellPanel-c3FBvVMm.cjs} +0 -0
  146. /package/dist/{Tabs-B2XvVchi.cjs → Tabs-B4r8l7vl.cjs} +0 -0
  147. /package/dist/{Tabs-CSizMNKI.js → Tabs-Cs5i4IGp.js} +0 -0
  148. /package/dist/{TreeContext-XcdJsmjK.cjs → TreeContext-BH2qpPud.cjs} +0 -0
  149. /package/dist/{TreeContext-RyZC10Bs.js → TreeContext-DMADOfuO.js} +0 -0
  150. /package/dist/{pixi-scene-BLuFyySv.cjs → pixi-scene-BmwgRql_.cjs} +0 -0
  151. /package/dist/{pixi-scene-BEkv7XH4.js → pixi-scene-CeviVGrf.js} +0 -0
@@ -1,143 +0,0 @@
1
- import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
2
- import { t } from "./Icon-rREAqsu0.js";
3
- import { n, t as r } from "./TreeContext-RyZC10Bs.js";
4
- import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, inject as f, normalizeClass as p, normalizeStyle as m, openBlock as h, provide as g, renderSlot as _, toDisplayString as v, unref as y, useSlots as b, withModifiers as x } from "vue";
5
- import { regular as S } from "@nubisco/ui/icons/caret-right";
6
- //#region src/components/TreeNode.vue?vue&type=script&setup=true&lang.ts
7
- var C = [
8
- "draggable",
9
- "aria-expanded",
10
- "aria-selected",
11
- "aria-disabled",
12
- "aria-grabbed"
13
- ], w = {
14
- key: 1,
15
- class: "nb-tree-node__toggle-spacer"
16
- }, T = { class: "nb-tree-node__label-text" }, E = {
17
- key: 3,
18
- class: "nb-tree-node__actions"
19
- }, D = {
20
- key: 0,
21
- role: "group",
22
- class: "nb-tree-node__children"
23
- }, O = /* @__PURE__ */ e(/* @__PURE__ */ d({
24
- __name: "TreeNode",
25
- props: {
26
- id: {},
27
- label: {},
28
- icon: { default: void 0 },
29
- disabled: {
30
- type: Boolean,
31
- default: !1
32
- },
33
- depth: { default: null },
34
- draggable: {
35
- type: [Boolean, null],
36
- default: null
37
- }
38
- },
39
- emits: [
40
- "select",
41
- "toggle",
42
- "contextmenu",
43
- "dblclick"
44
- ],
45
- setup(e, { emit: d }) {
46
- let O = e, k = d, A = b(), j = f(n), M = f(r, 0), N = i(() => O.depth ?? M);
47
- g(r, N.value + 1);
48
- let P = i(() => !!A.default), F = i(() => j?.expandedIds.has(O.id) ?? !1), I = i(() => j?.selectedId === O.id), L = i(() => j?.compact ?? !1), R = i(() => L.value ? "24px" : "32px"), z = i(() => `${16 + N.value * 16}px`), B = i(() => O.disabled ? !1 : O.draggable === null ? j?.draggable ?? !1 : O.draggable), V = i(() => j?.drag.dragId === O.id), H = i(() => j?.drag.dropTargetId === O.id), U = i(() => H.value ? j?.drag.dropPosition : null);
49
- function W() {
50
- O.disabled || !j || (j.select(O.id), k("select", O.id), P.value && (j.toggle(O.id), k("toggle", O.id, !F.value)));
51
- }
52
- function G(e) {
53
- e.stopPropagation(), !(O.disabled || !j) && (j.toggle(O.id), k("toggle", O.id, !F.value));
54
- }
55
- function K() {
56
- O.disabled || (P.value && j && j.toggle(O.id), k("dblclick", O.id));
57
- }
58
- function q(e) {
59
- k("contextmenu", e, O.id);
60
- }
61
- function J(e) {
62
- !B.value || !j || !e.dataTransfer || (e.dataTransfer.effectAllowed = "move", e.dataTransfer.setData("text/plain", O.id), j.onDragStart(O.id));
63
- }
64
- function Y(e, t) {
65
- let n = t.getBoundingClientRect(), r = e.clientY - n.top, i = n.height;
66
- return r < i * .25 ? "before" : r > i * .75 ? "after" : P.value ? "inside" : r < i * .5 ? "before" : "after";
67
- }
68
- function X(e) {
69
- if (!j || j.drag.dragId === O.id || O.disabled) return;
70
- e.preventDefault(), e.stopPropagation(), e.dataTransfer && (e.dataTransfer.dropEffect = "move");
71
- let t = e.currentTarget.querySelector(".nb-tree-node__label");
72
- t && j.onDragOver(O.id, Y(e, t));
73
- }
74
- function Z(e) {
75
- if (!j) return;
76
- let t = e.relatedTarget, n = e.currentTarget;
77
- (!t || !n.contains(t)) && j.onDragLeave(O.id);
78
- }
79
- function Q(e) {
80
- e.preventDefault(), e.stopPropagation(), j && j.onDrop();
81
- }
82
- function $() {
83
- j && j.onDragEnd();
84
- }
85
- function ee(e) {
86
- j && (e.key === "Enter" ? (e.preventDefault(), W()) : e.key === "ArrowRight" && P.value ? (e.preventDefault(), F.value || (j.toggle(O.id), k("toggle", O.id, !0))) : e.key === "ArrowLeft" ? (e.preventDefault(), F.value && (j.toggle(O.id), k("toggle", O.id, !1))) : e.key === "F2" && (e.preventDefault(), k("dblclick", O.id)));
87
- }
88
- return (n, r) => (h(), s("li", {
89
- role: "treeitem",
90
- tabindex: "-1",
91
- draggable: B.value || void 0,
92
- "aria-expanded": P.value ? F.value : void 0,
93
- "aria-selected": I.value,
94
- "aria-disabled": e.disabled || void 0,
95
- "aria-grabbed": B.value ? V.value : void 0,
96
- class: p(["nb-tree-node", {
97
- "nb-tree-node--selected": I.value,
98
- "nb-tree-node--disabled": e.disabled,
99
- "nb-tree-node--branch": P.value,
100
- "nb-tree-node--leaf": !P.value,
101
- "nb-tree-node--dragging": V.value,
102
- "nb-tree-node--drop-before": U.value === "before",
103
- "nb-tree-node--drop-after": U.value === "after",
104
- "nb-tree-node--drop-inside": U.value === "inside"
105
- }]),
106
- onClick: x(W, ["stop"]),
107
- onDblclick: x(K, ["stop"]),
108
- onContextmenu: x(q, ["prevent"]),
109
- onKeydown: ee,
110
- onDragstart: J,
111
- onDragover: X,
112
- onDragleave: Z,
113
- onDrop: Q,
114
- onDragend: $
115
- }, [c("div", {
116
- class: "nb-tree-node__label",
117
- style: m({
118
- minHeight: R.value,
119
- paddingInlineStart: z.value
120
- })
121
- }, [
122
- P.value ? (h(), s("span", {
123
- key: 0,
124
- class: "nb-tree-node__toggle",
125
- onClick: G
126
- }, [u(t, {
127
- name: y(S),
128
- size: "xs",
129
- class: p(["nb-tree-node__toggle-icon", { "nb-tree-node__toggle-icon--expanded": F.value }])
130
- }, null, 8, ["name", "class"])])) : (h(), s("span", w)),
131
- e.icon ? (h(), a(t, {
132
- key: 2,
133
- name: e.icon,
134
- size: "sm",
135
- class: "nb-tree-node__icon"
136
- }, null, 8, ["name"])) : o("", !0),
137
- c("span", T, [_(n.$slots, "label", {}, () => [l(v(e.label), 1)], !0)]),
138
- n.$slots.actions ? (h(), s("span", E, [_(n.$slots, "actions", {}, void 0, !0)])) : o("", !0)
139
- ], 4), P.value && F.value ? (h(), s("ul", D, [_(n.$slots, "default", {}, void 0, !0)])) : o("", !0)], 42, C));
140
- }
141
- }), [["__scopeId", "data-v-b43c88e0"]]);
142
- //#endregion
143
- export { O as t };
File without changes
File without changes
File without changes
File without changes