@nubisco/ui 5.4.1 → 5.6.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/README.md +4 -3
- package/dist/{Blueprint-BgmsyoIu.js → Blueprint-ClU0eIiy.js} +2 -2
- package/dist/{Blueprint-CvOpJq_7.cjs → Blueprint-DbehXPR2.cjs} +1 -1
- package/dist/{BlueprintCard-BdT657ax.cjs → BlueprintCard-MDfxqPyE.cjs} +1 -1
- package/dist/{BlueprintCard-BJlyW5LC.js → BlueprintCard-VfWPpR6_.js} +1 -1
- package/dist/{BlueprintControls-DCUQ9LQ7.cjs → BlueprintControls-BR12TLQ1.cjs} +1 -1
- package/dist/{BlueprintControls-DwGxskS4.js → BlueprintControls-pnaU1lCY.js} +1 -1
- package/dist/Button-Cw4D6w9K.js +121 -0
- package/dist/Button-D-XSNjSL.cjs +1 -0
- package/dist/{Confirm-bPSArUzM.js → Confirm-BewLtgMD.js} +1 -1
- package/dist/{Confirm-Dmhkb56Q.cjs → Confirm-DHWWbfmu.cjs} +1 -1
- package/dist/{DataTable-DueT6mHP.js → DataTable-CVih75pn.js} +1 -1
- package/dist/{DataTable-CtjSxLmA.cjs → DataTable-DLuSmiTV.cjs} +1 -1
- package/dist/{FileUploader-OqfHo3LH.js → FileUploader-Ba0H8UPw.js} +1 -1
- package/dist/{FileUploader-DEBpnSuZ.cjs → FileUploader-CN7XPX9n.cjs} +1 -1
- package/dist/InfoHint-DX3lgnTX.cjs +1 -0
- package/dist/{InfoHint-Dvdnc-vI.js → InfoHint-DjAgTkgL.js} +32 -32
- package/dist/Menu-BSbPfsiE.cjs +1 -0
- package/dist/{Menu-Dzg_RrG-.js → Menu-Dy1JwMdl.js} +31 -17
- package/dist/{MenuBarItem-DyS1SWrP.js → MenuBarItem-CYofbcgq.js} +1 -1
- package/dist/{MenuBarItem-ma4XHwRB.cjs → MenuBarItem-Ya88A6xZ.cjs} +1 -1
- package/dist/{NotificationCenter-BYQdkoja.cjs → NotificationCenter-DCi4hoKm.cjs} +1 -1
- package/dist/{NotificationCenter-_K5ZQ82b.js → NotificationCenter-Yhez667P.js} +1 -1
- package/dist/{Pagination-NaWfr8Rs.cjs → Pagination-CcZB4Lp_.cjs} +1 -1
- package/dist/{Pagination-Mu8uhAwJ.js → Pagination-DDIc4vUH.js} +2 -2
- package/dist/Select-BMamCNcN.cjs +1 -0
- package/dist/Select-CB4BSCaj.js +405 -0
- package/dist/Submenu-QgPVi2bN.cjs +1 -0
- package/dist/Submenu-SQTJc81U.js +148 -0
- package/dist/TableOfContents-BD-79w4n.cjs +1 -0
- package/dist/TableOfContents-fTZdpn-L.js +253 -0
- package/dist/{Tree-DUfjBsuG.js → Tree-DHdPsRXV.js} +1 -1
- package/dist/{Tree-CHJvaRgP.cjs → Tree-DI_ouWnv.cjs} +1 -1
- package/dist/TreeNode-CME77z98.js +165 -0
- package/dist/TreeNode-CpV3GOzv.cjs +1 -0
- package/dist/{Walkthrough-DpGi2slp.js → Walkthrough-B4E8LruL.js} +1 -1
- package/dist/{Walkthrough-ClLGKPYd.cjs → Walkthrough-DuX31BAz.cjs} +1 -1
- package/dist/all.cjs +1 -1
- package/dist/all.mjs +59 -57
- package/dist/component-styles.json +5 -0
- package/dist/components/AiLabel.cjs +1 -1
- package/dist/components/AiLabel.mjs +1 -1
- package/dist/components/Blueprint.cjs +1 -1
- package/dist/components/Blueprint.mjs +1 -1
- package/dist/components/BlueprintBackground.cjs +1 -1
- package/dist/components/BlueprintBackground.mjs +1 -1
- package/dist/components/BlueprintCard.cjs +1 -1
- package/dist/components/BlueprintCard.mjs +1 -1
- package/dist/components/BlueprintControls.cjs +1 -1
- package/dist/components/BlueprintControls.mjs +1 -1
- package/dist/components/BlueprintMinimap.cjs +1 -1
- package/dist/components/BlueprintMinimap.mjs +1 -1
- package/dist/components/BottomPanel.cjs +1 -1
- package/dist/components/BottomPanel.mjs +1 -1
- package/dist/components/Button.cjs +1 -1
- package/dist/components/Button.mjs +1 -1
- package/dist/components/Button.vue.d.ts +6 -9
- package/dist/components/Button.vue.d.ts.map +1 -1
- package/dist/components/Confirm.cjs +1 -1
- package/dist/components/Confirm.mjs +1 -1
- package/dist/components/DataTable.cjs +1 -1
- package/dist/components/DataTable.mjs +1 -1
- package/dist/components/FileUploader.cjs +1 -1
- package/dist/components/FileUploader.mjs +1 -1
- package/dist/components/Form.cjs +1 -1
- package/dist/components/Form.mjs +1 -1
- package/dist/components/ImageCropper.cjs +1 -1
- package/dist/components/ImageCropper.mjs +1 -1
- package/dist/components/InfoHint.cjs +1 -1
- package/dist/components/InfoHint.mjs +1 -1
- package/dist/components/InfoHint.vue.d.ts.map +1 -1
- package/dist/components/Menu.cjs +1 -1
- package/dist/components/Menu.d.ts +7 -0
- package/dist/components/Menu.mjs +1 -1
- package/dist/components/Menu.vue.d.ts.map +1 -1
- package/dist/components/MenuBarItem.cjs +1 -1
- package/dist/components/MenuBarItem.mjs +1 -1
- package/dist/components/NotificationCenter.cjs +1 -1
- package/dist/components/NotificationCenter.mjs +1 -1
- package/dist/components/Pagination.cjs +1 -1
- package/dist/components/Pagination.mjs +1 -1
- package/dist/components/Select.cjs +1 -1
- package/dist/components/Select.d.ts +10 -0
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Select.vue.d.ts +7 -7
- package/dist/components/Select.vue.d.ts.map +1 -1
- package/dist/components/ShellPanel.cjs +1 -1
- package/dist/components/ShellPanel.mjs +1 -1
- package/dist/components/Submenu.cjs +1 -1
- package/dist/components/Submenu.mjs +1 -1
- package/dist/components/Submenu.vue.d.ts.map +1 -1
- package/dist/components/TableOfContents.cjs +1 -0
- package/dist/components/TableOfContents.d.ts +104 -0
- package/dist/components/TableOfContents.mjs +2 -0
- package/dist/components/TableOfContents.vue.d.ts +44 -0
- package/dist/components/TableOfContents.vue.d.ts.map +1 -0
- package/dist/components/TableOfContentsList.vue.d.ts +14 -0
- package/dist/components/TableOfContentsList.vue.d.ts.map +1 -0
- package/dist/components/Tabs.cjs +1 -1
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/Tree.cjs +1 -1
- package/dist/components/Tree.d.ts +14 -0
- package/dist/components/Tree.mjs +1 -1
- package/dist/components/TreeNode.cjs +1 -1
- package/dist/components/TreeNode.mjs +1 -1
- package/dist/components/TreeNode.vue.d.ts +2 -0
- package/dist/components/TreeNode.vue.d.ts.map +1 -1
- package/dist/components/Walkthrough.cjs +1 -1
- package/dist/components/Walkthrough.mjs +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/manifest.d.ts +1 -0
- package/dist/components/manifest.d.ts.map +1 -1
- package/dist/components/manifest.js +1 -0
- package/dist/composables/useBlueprint.composable.cjs +1 -1
- package/dist/composables/useBlueprint.composable.mjs +1 -1
- package/dist/composables/useConfirm.composable.cjs +1 -1
- package/dist/composables/useConfirm.composable.mjs +1 -1
- package/dist/global.d.ts +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +38 -37
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/styles/Button.css +1 -1
- package/dist/styles/InfoHint.css +1 -1
- package/dist/styles/Select.css +1 -1
- package/dist/styles/TableOfContents.css +1 -0
- package/dist/styles/TreeNode.css +1 -1
- package/dist/ui.css +5 -4
- package/package.json +1 -1
- package/dist/Button-B2ngznxj.cjs +0 -1
- package/dist/Button-CnwG9SUU.js +0 -99
- package/dist/InfoHint-BOYN7Jig.cjs +0 -1
- package/dist/Menu-CTCkLSMW.cjs +0 -1
- package/dist/Select-BbsEiJ4j.cjs +0 -1
- package/dist/Select-Ep1fFBFj.js +0 -378
- package/dist/Submenu-D5C02DV5.js +0 -123
- package/dist/Submenu-DuMYz-uf.cjs +0 -1
- package/dist/TreeNode-CyOc2r4y.cjs +0 -1
- package/dist/TreeNode-S_qQNbsJ.js +0 -143
- /package/dist/{AiLabel-BmUhIOFk.js → AiLabel-BciBQAKB.js} +0 -0
- /package/dist/{AiLabel-PATTi5dO.cjs → AiLabel-ClnMVvCl.cjs} +0 -0
- /package/dist/{Blueprint.context-BOAtPYlo.js → Blueprint.context-CHfek6nW.js} +0 -0
- /package/dist/{Blueprint.context-BUzhZPrF.cjs → Blueprint.context-C_y0TS6a.cjs} +0 -0
- /package/dist/{BlueprintBackground-Cd_30GvD.cjs → BlueprintBackground-D58A6eXS.cjs} +0 -0
- /package/dist/{BlueprintBackground-1IxGPyUh.js → BlueprintBackground-SJ-ibrkF.js} +0 -0
- /package/dist/{BlueprintMinimap-w3Y0VvIx.cjs → BlueprintMinimap-BPqaGiY0.cjs} +0 -0
- /package/dist/{BlueprintMinimap-CmFRuqou.js → BlueprintMinimap-De8KVP54.js} +0 -0
- /package/dist/{BottomPanel-VNTVAMs3.js → BottomPanel-C7VWbs0V.js} +0 -0
- /package/dist/{BottomPanel-CK1NsXtz.cjs → BottomPanel-Di3pv797.cjs} +0 -0
- /package/dist/{Form-HC4yg8DG.js → Form-BPHdzd8_.js} +0 -0
- /package/dist/{Form-rRMK9twU.cjs → Form-C-l_4RHC.cjs} +0 -0
- /package/dist/{ImageCropper-BKKcVuPn.cjs → ImageCropper-BbW7o5mE.cjs} +0 -0
- /package/dist/{ImageCropper-CR8HCvg4.js → ImageCropper-DS3QiZ-X.js} +0 -0
- /package/dist/{ShellPanel-DnleEQR7.js → ShellPanel-B1byDSRC.js} +0 -0
- /package/dist/{ShellPanel-62ajcug-.cjs → ShellPanel-c3FBvVMm.cjs} +0 -0
- /package/dist/{Tabs-B2XvVchi.cjs → Tabs-B4r8l7vl.cjs} +0 -0
- /package/dist/{Tabs-CSizMNKI.js → Tabs-Cs5i4IGp.js} +0 -0
- /package/dist/{TreeContext-XcdJsmjK.cjs → TreeContext-BH2qpPud.cjs} +0 -0
- /package/dist/{TreeContext-RyZC10Bs.js → TreeContext-DMADOfuO.js} +0 -0
- /package/dist/{pixi-scene-BLuFyySv.cjs → pixi-scene-BmwgRql_.cjs} +0 -0
- /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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|