@nubisco/ui 5.54.0 → 5.55.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/{AccordionItem--XeLRz2P.js → AccordionItem-BY-p8UkV.js} +1 -1
- package/dist/{AccordionItem-BYSH6dZK.cjs → AccordionItem-p0mYXIj8.cjs} +1 -1
- package/dist/{ActionGroup-Cn22xj1t.js → ActionGroup-CjRSKyOa.js} +1 -1
- package/dist/{ActionGroup-0rG92kFk.cjs → ActionGroup-DIMZhC7N.cjs} +1 -1
- package/dist/AiLabel-BDccQ2iQ.js +242 -0
- package/dist/AiLabel-jRrBTu6c.cjs +1 -0
- package/dist/{AiProvider-CLtCD_UR.cjs → AiProvider-CGB9EiSf.cjs} +1 -1
- package/dist/{AiProvider-gprbR5ts.js → AiProvider-CMbPWtU-.js} +2 -2
- package/dist/{BatchActions-Ckx8kyZt.js → BatchActions-Kr2S6CJI.js} +1 -1
- package/dist/{BatchActions-6IO5GRFm.cjs → BatchActions-jfvfpZeT.cjs} +1 -1
- package/dist/{Board-BdqGOVNF.js → Board-C3_cXRl6.js} +177 -176
- package/dist/Board-D6A-irdx.cjs +1 -0
- package/dist/{Breadcrumbs-BzyDVvEk.cjs → Breadcrumbs-0rRFiO31.cjs} +1 -1
- package/dist/{Breadcrumbs-Bc-acmPE.js → Breadcrumbs-DqagVknq.js} +1 -1
- package/dist/{Briefing-DwKWCOGm.cjs → Briefing-B-O-9bhN.cjs} +1 -1
- package/dist/{Briefing-BiEICh1u.js → Briefing-DNH-707q.js} +1 -1
- package/dist/{ChatMessage-1L_xCXZF.cjs → ChatMessage-B45Xhl8x.cjs} +1 -1
- package/dist/{ChatMessage-C2Ecm175.js → ChatMessage-BDOdvI4h.js} +1 -1
- package/dist/{ChatThread-B_F3xTdE.cjs → ChatThread-B7F1r4t4.cjs} +1 -1
- package/dist/{ChatThread-COdOb1rH.js → ChatThread-DqvsnVOr.js} +1 -1
- package/dist/CommandPalette-BaRqoURY.cjs +1 -0
- package/dist/CommandPalette-DWv1UV8r.js +294 -0
- package/dist/{Confirm-Baz2WG7b.cjs → Confirm-B5vMzPbN.cjs} +1 -1
- package/dist/{Confirm-CvMuXK9Q.js → Confirm-C4lT-6HD.js} +1 -1
- package/dist/{DataTable-B8THDBLS.js → DataTable-CcwD0PSJ.js} +2 -2
- package/dist/{DataTable-DeFzOlcP.cjs → DataTable-xEw-NvHM.cjs} +1 -1
- package/dist/{DatePicker-BrUXcNUj.js → DatePicker-3pCNky8d.js} +234 -230
- package/dist/DatePicker-BrMicYUx.cjs +1 -0
- package/dist/FloatingToolbar-BV-iGNxe.js +120 -0
- package/dist/FloatingToolbar-C8xB4BzH.cjs +1 -0
- package/dist/{ImagePicker-vhg7b-UL.cjs → ImagePicker-5qPI77Jo.cjs} +1 -1
- package/dist/{ImagePicker-LhpR7jjR.js → ImagePicker-BnHg403Q.js} +1 -1
- package/dist/InfoHint-CdluaJqE.cjs +1 -0
- package/dist/InfoHint-zMuSw_99.js +182 -0
- package/dist/{InlineLoading-CA0_IT29.cjs → InlineLoading-CqGrNWHf.cjs} +1 -1
- package/dist/{InlineLoading-Cknqq0vv.js → InlineLoading-_j2KKhNQ.js} +1 -1
- package/dist/Menu-CWxBEMC4.js +193 -0
- package/dist/Menu-D0TerdRm.cjs +1 -0
- package/dist/{MenuBarItem-yr5aizl3.js → MenuBarItem-BYh4YWR4.js} +1 -1
- package/dist/{MenuBarItem-DlnIAhRw.cjs → MenuBarItem-DTOqacvg.cjs} +1 -1
- package/dist/Modal-CmGFLEo4.cjs +1 -0
- package/dist/{Modal-CESCi2dE.js → Modal-DwL90AoV.js} +73 -69
- package/dist/NotificationCenter-EMlV-oPh.cjs +1 -0
- package/dist/{NotificationCenter-DkGc0ETD.js → NotificationCenter-YZnPMH7c.js} +217 -213
- package/dist/{OverflowMenu-BWZ7c8oI.js → OverflowMenu-DliuDrTK.js} +1 -1
- package/dist/{OverflowMenu-C8q28FrD.cjs → OverflowMenu-DuRgj1DU.cjs} +1 -1
- package/dist/{PageHeader-DElq_kdh.cjs → PageHeader-BoEdR_T5.cjs} +1 -1
- package/dist/{PageHeader-DOYN9sto.js → PageHeader-c6117xYf.js} +1 -1
- package/dist/{Pagination-9mPN8ych.cjs → Pagination-B3lmxggo.cjs} +1 -1
- package/dist/{Pagination-CxBHFwy0.js → Pagination-DwAc-4d9.js} +1 -1
- package/dist/Select-CDs-7QtW.js +619 -0
- package/dist/Select-CJqwMI69.cjs +1 -0
- package/dist/{SidebarCollapseToggle-DraqbhwM.js → SidebarCollapseToggle-C38R19gG.js} +1 -1
- package/dist/{SidebarCollapseToggle-CABmF-PC.cjs → SidebarCollapseToggle-DOck3Txy.cjs} +1 -1
- package/dist/SidebarMenuItem-DzJ_R2__.cjs +1 -0
- package/dist/SidebarMenuItem-E410HTei.js +302 -0
- package/dist/Spinner-BlzVODzE.js +161 -0
- package/dist/Spinner-Bpfgl-mN.cjs +1 -0
- package/dist/{Stat-BCvXYr-z.cjs → Stat-BByeMKkT.cjs} +1 -1
- package/dist/{Stat-No3RhGB3.js → Stat-DWliDbWE.js} +1 -1
- package/dist/Submenu-BkHGYo7X.js +168 -0
- package/dist/Submenu-CCQnBpln.cjs +1 -0
- package/dist/{SuggestionList-Cxy4jjjd.cjs → SuggestionList-C61Dj6en.cjs} +1 -1
- package/dist/{SuggestionList-Dv4yQAi-.js → SuggestionList-D48Ojcf3.js} +1 -1
- package/dist/Toaster-Dwjm0bsR.js +285 -0
- package/dist/Toaster-aJJvxlEr.cjs +1 -0
- package/dist/{UserMenu-CjmhyTwN.js → UserMenu-BTihjCKC.js} +94 -90
- package/dist/UserMenu-CHkbByFS.cjs +1 -0
- package/dist/{Walkthrough-DYYqtpwJ.js → Walkthrough-BqGB1yaX.js} +63 -59
- package/dist/Walkthrough-sGAypY5d.cjs +1 -0
- package/dist/all.cjs +1 -1
- package/dist/all.mjs +284 -283
- package/dist/components/AccordionItem.cjs +1 -1
- package/dist/components/AccordionItem.mjs +1 -1
- package/dist/components/ActionGroup.cjs +1 -1
- package/dist/components/ActionGroup.mjs +1 -1
- package/dist/components/AiLabel.cjs +1 -1
- package/dist/components/AiLabel.mjs +1 -1
- package/dist/components/AiLabel.vue.d.ts.map +1 -1
- package/dist/components/AiProvider.cjs +1 -1
- package/dist/components/AiProvider.mjs +1 -1
- package/dist/components/BatchActions.cjs +1 -1
- package/dist/components/BatchActions.mjs +1 -1
- package/dist/components/Board.cjs +1 -1
- package/dist/components/Board.mjs +1 -1
- package/dist/components/Board.vue.d.ts.map +1 -1
- package/dist/components/Breadcrumbs.cjs +1 -1
- package/dist/components/Breadcrumbs.mjs +1 -1
- package/dist/components/Briefing.cjs +1 -1
- package/dist/components/Briefing.mjs +1 -1
- package/dist/components/ChatMessage.cjs +1 -1
- package/dist/components/ChatMessage.mjs +1 -1
- package/dist/components/ChatThread.cjs +1 -1
- package/dist/components/ChatThread.mjs +1 -1
- package/dist/components/CommandPalette.cjs +1 -1
- package/dist/components/CommandPalette.mjs +1 -1
- package/dist/components/CommandPalette.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/DatePicker.cjs +1 -1
- package/dist/components/DatePicker.mjs +1 -1
- package/dist/components/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/FloatingToolbar.cjs +1 -1
- package/dist/components/FloatingToolbar.mjs +1 -1
- package/dist/components/FloatingToolbar.vue.d.ts.map +1 -1
- package/dist/components/ImagePicker.cjs +1 -1
- package/dist/components/ImagePicker.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/InlineLoading.cjs +1 -1
- package/dist/components/InlineLoading.mjs +1 -1
- package/dist/components/Menu.cjs +1 -1
- 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/Modal.cjs +1 -1
- package/dist/components/Modal.mjs +1 -1
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/NotificationCenter.cjs +1 -1
- package/dist/components/NotificationCenter.mjs +1 -1
- package/dist/components/NotificationCenter.vue.d.ts.map +1 -1
- package/dist/components/OverflowMenu.cjs +1 -1
- package/dist/components/OverflowMenu.mjs +1 -1
- package/dist/components/PageHeader.cjs +1 -1
- package/dist/components/PageHeader.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.mjs +1 -1
- package/dist/components/Select.vue.d.ts.map +1 -1
- package/dist/components/SidebarCollapseToggle.cjs +1 -1
- package/dist/components/SidebarCollapseToggle.mjs +1 -1
- package/dist/components/SidebarMenuItem.cjs +1 -1
- package/dist/components/SidebarMenuItem.mjs +1 -1
- package/dist/components/SidebarMenuItem.vue.d.ts.map +1 -1
- package/dist/components/Spinner.cjs +1 -1
- package/dist/components/Spinner.mjs +1 -1
- package/dist/components/Spinner.vue.d.ts.map +1 -1
- package/dist/components/Stat.cjs +1 -1
- package/dist/components/Stat.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/SuggestionList.cjs +1 -1
- package/dist/components/SuggestionList.mjs +1 -1
- package/dist/components/Toaster.cjs +1 -1
- package/dist/components/Toaster.mjs +1 -1
- package/dist/components/Toaster.vue.d.ts.map +1 -1
- package/dist/components/UserMenu.cjs +1 -1
- package/dist/components/UserMenu.mjs +1 -1
- package/dist/components/UserMenu.vue.d.ts.map +1 -1
- package/dist/components/Walkthrough.cjs +1 -1
- package/dist/components/Walkthrough.mjs +1 -1
- package/dist/components/Walkthrough.vue.d.ts.map +1 -1
- package/dist/composables/useConfirm.composable.cjs +1 -1
- package/dist/composables/useConfirm.composable.mjs +2 -2
- package/dist/composables/useTeleportReady.composable.cjs +1 -0
- package/dist/composables/useTeleportReady.composable.d.ts +30 -0
- package/dist/composables/useTeleportReady.composable.d.ts.map +1 -0
- package/dist/composables/useTeleportReady.composable.mjs +11 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +152 -151
- package/dist/main-BMIeIxGV.cjs +4 -0
- package/dist/{main-D6qY7QeE.js → main-BXz7vG2i.js} +167 -157
- package/dist/main.d.ts +10 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/styles/AiLabel.css +1 -1
- package/dist/styles/FloatingToolbar.css +1 -1
- package/dist/styles/InfoHint.css +1 -1
- package/dist/styles/Modal.css +1 -1
- package/dist/styles/SidebarMenuItem.css +1 -1
- package/dist/styles/Spinner.css +1 -1
- package/dist/styles/Toaster.css +1 -1
- package/dist/styles/Walkthrough.css +1 -1
- package/dist/ui.css +8 -8
- package/package.json +1 -1
- package/dist/AiLabel-AGSSBanb.cjs +0 -1
- package/dist/AiLabel-D32aNf1F.js +0 -240
- package/dist/Board-DtOWyvKh.cjs +0 -1
- package/dist/CommandPalette-CC_Aj4Uh.cjs +0 -1
- package/dist/CommandPalette-zqTMjpm8.js +0 -290
- package/dist/DatePicker-B5YRb64p.cjs +0 -1
- package/dist/FloatingToolbar-BikX_AsP.js +0 -116
- package/dist/FloatingToolbar-DWVY8Fxo.cjs +0 -1
- package/dist/InfoHint-BEzkNQTM.cjs +0 -1
- package/dist/InfoHint-BlHxrTw6.js +0 -178
- package/dist/Menu-7EgnchVu.js +0 -189
- package/dist/Menu-Bs2Co1sl.cjs +0 -1
- package/dist/Modal-C_EWDvmH.cjs +0 -1
- package/dist/NotificationCenter-DxZgHQyt.cjs +0 -1
- package/dist/Select-7gJ3_fWh.js +0 -615
- package/dist/Select-Dg4HSHOu.cjs +0 -1
- package/dist/SidebarMenuItem-DQRQtqrp.js +0 -300
- package/dist/SidebarMenuItem-Dwk7vKN5.cjs +0 -1
- package/dist/Spinner-DYFhiTB1.js +0 -160
- package/dist/Spinner-j13gRoUF.cjs +0 -1
- package/dist/Submenu-BDs-yAqv.js +0 -164
- package/dist/Submenu-BLjx2kWl.cjs +0 -1
- package/dist/Toaster-ByObLDkk.js +0 -284
- package/dist/Toaster-CJAbZ9pv.cjs +0 -1
- package/dist/UserMenu-BjSO_Uml.cjs +0 -1
- package/dist/Walkthrough-DxAIdo3M.cjs +0 -1
- package/dist/main-Cs0FFBfV.cjs +0 -4
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { useTeleportReady as e } from "./composables/useTeleportReady.composable.mjs";
|
|
2
|
+
import { useStableId as t } from "./composables/useStableId.composable.mjs";
|
|
3
|
+
import { useSurfaceLayer as n } from "./composables/useSurfaceLayer.composable.mjs";
|
|
4
|
+
import { usePhoneLayout as r } from "./composables/usePhoneLayout.composable.mjs";
|
|
5
|
+
import { useNbStrings as i } from "./composables/useNbStrings.composable.mjs";
|
|
6
|
+
import { t as a } from "./BatchActions-Kr2S6CJI.js";
|
|
7
|
+
import { Fragment as o, Teleport as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, defineComponent as m, mergeProps as ee, nextTick as te, normalizeClass as h, normalizeStyle as ne, openBlock as g, ref as _, renderList as v, renderSlot as y, toDisplayString as b, unref as x, useSlots as re, withCtx as ie, withModifiers as S } from "vue";
|
|
7
8
|
//#region src/components/Board.vue?vue&type=script&setup=true&lang.ts
|
|
8
9
|
var ae = [
|
|
9
10
|
"draggable",
|
|
@@ -29,7 +30,7 @@ var ae = [
|
|
|
29
30
|
}, _e = ["id"], ve = {
|
|
30
31
|
class: "nb-board__sr",
|
|
31
32
|
"aria-live": "assertive"
|
|
32
|
-
}, ye = .5, be = 44,
|
|
33
|
+
}, ye = .5, be = 44, C = /* @__PURE__ */ m({
|
|
33
34
|
__name: "Board",
|
|
34
35
|
props: {
|
|
35
36
|
columns: {},
|
|
@@ -61,36 +62,36 @@ var ae = [
|
|
|
61
62
|
"update:selected",
|
|
62
63
|
"update:selectMode"
|
|
63
64
|
],
|
|
64
|
-
setup(
|
|
65
|
-
let
|
|
66
|
-
function
|
|
65
|
+
setup(m, { emit: C }) {
|
|
66
|
+
let xe = e(), w = i(), T = m, { phone: E } = r(), Se = re(), { layerProps: Ce } = n(), D = C, O = c(() => T.selectable ? T.selected ?? [] : []), we = c(() => new Set(O.value)), k = null;
|
|
67
|
+
function A(e) {
|
|
67
68
|
return we.value.has(e);
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
-
|
|
70
|
+
function j(e) {
|
|
71
|
+
D("update:selected", e), W.value = e.length === 0 ? w.value.boardSelectionCleared : w.value.boardCardsSelected(e.length);
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
-
|
|
73
|
+
function M() {
|
|
74
|
+
k = null, j([]), N.value && D("update:selectMode", !1);
|
|
74
75
|
}
|
|
75
|
-
let
|
|
76
|
-
function
|
|
77
|
-
|
|
76
|
+
let Te = c(() => T.selectable && O.value.length > 0 && !!Se["batch-actions"]), N = c(() => T.selectable && T.selectMode);
|
|
77
|
+
function P(e) {
|
|
78
|
+
k = e, j(A(e) ? O.value.filter((t) => t !== e) : [...O.value, e]);
|
|
78
79
|
}
|
|
79
|
-
function
|
|
80
|
-
let r = R(t, n), i =
|
|
81
|
-
if (i === -1 || a === -1) return
|
|
80
|
+
function Ee(e, t, n) {
|
|
81
|
+
let r = R(t, n), i = k ? r.findIndex((e) => e.id === k) : -1, a = r.findIndex((t) => t.id === e.id);
|
|
82
|
+
if (i === -1 || a === -1) return P(e.id);
|
|
82
83
|
let o = r.slice(Math.min(i, a), Math.max(i, a) + 1).map((e) => e.id);
|
|
83
|
-
|
|
84
|
+
j([...new Set([...O.value, ...o])]);
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
-
|
|
86
|
+
function De(e, t, n, r) {
|
|
87
|
+
T.selectable && (!N.value && !(e.metaKey || e.ctrlKey || e.shiftKey) || (e.preventDefault(), e.stopPropagation(), e.shiftKey ? Ee(t, I(n), r) : P(t.id)));
|
|
87
88
|
}
|
|
88
|
-
function
|
|
89
|
+
function Oe() {
|
|
89
90
|
let e = [];
|
|
90
|
-
for (let t of
|
|
91
|
+
for (let t of T.columns) for (let n of F.value) for (let r of R(I(n), t.id)) A(r.id) && !e.includes(r.id) && e.push(r.id);
|
|
91
92
|
return e;
|
|
92
93
|
}
|
|
93
|
-
function
|
|
94
|
+
function ke(e, t, n, r, i) {
|
|
94
95
|
let a = new Set(e), o = R(n, r).filter((e) => e.id !== t), s = null;
|
|
95
96
|
for (let e = Math.min(i, o.length) - 1; e >= 0; e--) if (!a.has(o[e].id)) {
|
|
96
97
|
s = o[e].id;
|
|
@@ -101,43 +102,43 @@ var ae = [
|
|
|
101
102
|
c = o[e].id;
|
|
102
103
|
break;
|
|
103
104
|
}
|
|
104
|
-
|
|
105
|
+
D("move-many", {
|
|
105
106
|
itemIds: e,
|
|
106
107
|
toColumnId: r,
|
|
107
|
-
...
|
|
108
|
+
...T.lanes ? { toLaneId: n } : {},
|
|
108
109
|
beforeItemId: s,
|
|
109
110
|
afterItemId: c
|
|
110
111
|
});
|
|
111
112
|
let l = z(r);
|
|
112
113
|
W.value = `${e.length} cards moved to ${l?.label ?? r}`;
|
|
113
114
|
}
|
|
114
|
-
let
|
|
115
|
-
gridTemplateColumns: `repeat(${
|
|
116
|
-
...
|
|
117
|
-
})), F =
|
|
115
|
+
let Ae = t({}), je = _(null), Me = c(() => ({
|
|
116
|
+
gridTemplateColumns: `repeat(${T.columns.length}, var(--nb-board-column-track, minmax(200px, 1fr)))`,
|
|
117
|
+
...E.value ? { "--nb-board-cols": String(T.columns.length) } : {}
|
|
118
|
+
})), F = c(() => T.lanes && T.lanes.length > 0 ? T.lanes : [null]);
|
|
118
119
|
function I(e) {
|
|
119
120
|
return e ? e.id ?? null : null;
|
|
120
121
|
}
|
|
121
|
-
function
|
|
122
|
+
function Ne(e) {
|
|
122
123
|
return e ? L(e.id) : "__flat__";
|
|
123
124
|
}
|
|
124
|
-
function
|
|
125
|
-
return
|
|
125
|
+
function Pe(e) {
|
|
126
|
+
return T.items.filter((t) => t.columnId === e).length;
|
|
126
127
|
}
|
|
127
128
|
function L(e) {
|
|
128
129
|
return e ?? "__none__";
|
|
129
130
|
}
|
|
130
|
-
function
|
|
131
|
-
return
|
|
131
|
+
function Fe(e) {
|
|
132
|
+
return T.lanes ? T.items.filter((t) => (t.laneId ?? null) === e).length : 0;
|
|
132
133
|
}
|
|
133
134
|
function R(e, t) {
|
|
134
|
-
return !
|
|
135
|
+
return !T.lanes || T.lanes.length === 0 ? T.items.filter((e) => e.columnId === t) : T.items.filter((n) => n.columnId === t && (n.laneId ?? null) === e);
|
|
135
136
|
}
|
|
136
137
|
function z(e) {
|
|
137
|
-
return
|
|
138
|
+
return T.columns.find((t) => t.id === e);
|
|
138
139
|
}
|
|
139
|
-
let B =
|
|
140
|
-
function
|
|
140
|
+
let B = _(/* @__PURE__ */ new Set());
|
|
141
|
+
function Ie(e) {
|
|
141
142
|
let t = L(e), n = new Set(B.value);
|
|
142
143
|
n.has(t) ? n.delete(t) : n.add(t), B.value = n;
|
|
143
144
|
}
|
|
@@ -151,17 +152,17 @@ var ae = [
|
|
|
151
152
|
function U(e, t) {
|
|
152
153
|
return e ? `${t.label}, ${e.label}` : t.label;
|
|
153
154
|
}
|
|
154
|
-
function
|
|
155
|
+
function Le(e, t) {
|
|
155
156
|
return U(e, t);
|
|
156
157
|
}
|
|
157
|
-
function
|
|
158
|
+
function Re(e, t, n) {
|
|
158
159
|
let r = R(I(t), n.id), i = r.findIndex((t) => t.id === e.id), a = `${H(e)}, ${i + 1} of ${r.length} in ${U(t, n)}`;
|
|
159
160
|
return Y.value?.item.id === e.id ? `${a}, picked up` : a;
|
|
160
161
|
}
|
|
161
|
-
let W =
|
|
162
|
-
function
|
|
162
|
+
let W = _("");
|
|
163
|
+
function ze(e, t, n, r) {
|
|
163
164
|
let i = R(t, n).filter((t) => t.id !== e.item.id), a = Math.max(0, Math.min(r, i.length));
|
|
164
|
-
return e.fromColumnId === n && e.fromLaneId === t && a === R(t, n).findIndex((t) => t.id === e.item.id) ? !1 : (
|
|
165
|
+
return e.fromColumnId === n && e.fromLaneId === t && a === R(t, n).findIndex((t) => t.id === e.item.id) ? !1 : (D("move", {
|
|
165
166
|
itemId: e.item.id,
|
|
166
167
|
fromColumnId: e.fromColumnId,
|
|
167
168
|
toColumnId: n,
|
|
@@ -172,10 +173,10 @@ var ae = [
|
|
|
172
173
|
afterItemId: i[a]?.id ?? null
|
|
173
174
|
}), !0);
|
|
174
175
|
}
|
|
175
|
-
let G =
|
|
176
|
-
function
|
|
176
|
+
let G = _(null), K = _(null), q = _(null);
|
|
177
|
+
function Be(e, t, n) {
|
|
177
178
|
Y.value = null;
|
|
178
|
-
let r =
|
|
179
|
+
let r = A(e.id) && O.value.length > 1 ? Oe() : void 0;
|
|
179
180
|
G.value = {
|
|
180
181
|
item: e,
|
|
181
182
|
fromLaneId: I(t),
|
|
@@ -183,10 +184,10 @@ var ae = [
|
|
|
183
184
|
group: r
|
|
184
185
|
}, r && (W.value = `Moving ${r.length} cards`);
|
|
185
186
|
}
|
|
186
|
-
function
|
|
187
|
+
function Ve(e, t, n, r, i) {
|
|
187
188
|
if (!G.value) return;
|
|
188
189
|
let a = e.currentTarget.getBoundingClientRect();
|
|
189
|
-
if (
|
|
190
|
+
if (T.nestable && !G.value.group && a.height >= be) {
|
|
190
191
|
let r = (e.clientY - a.top) / a.height, o = (1 - ye) / 2;
|
|
191
192
|
if (r > o && r < 1 - o && i.id !== G.value.item.id) {
|
|
192
193
|
q.value = {
|
|
@@ -205,7 +206,7 @@ var ae = [
|
|
|
205
206
|
index: r + (o ? 1 : 0)
|
|
206
207
|
};
|
|
207
208
|
}
|
|
208
|
-
function
|
|
209
|
+
function He(e, t) {
|
|
209
210
|
if (!G.value) return;
|
|
210
211
|
let n = I(e);
|
|
211
212
|
K.value = {
|
|
@@ -214,13 +215,13 @@ var ae = [
|
|
|
214
215
|
index: R(n, t).length
|
|
215
216
|
};
|
|
216
217
|
}
|
|
217
|
-
function
|
|
218
|
+
function Ue() {
|
|
218
219
|
K.value = null, q.value = null;
|
|
219
220
|
}
|
|
220
|
-
function
|
|
221
|
+
function We() {
|
|
221
222
|
G.value = null, K.value = null, q.value = null;
|
|
222
223
|
}
|
|
223
|
-
function
|
|
224
|
+
function Ge(e, t) {
|
|
224
225
|
return J(e, t) !== null;
|
|
225
226
|
}
|
|
226
227
|
function J(e, t) {
|
|
@@ -233,45 +234,45 @@ var ae = [
|
|
|
233
234
|
}
|
|
234
235
|
return null;
|
|
235
236
|
}
|
|
236
|
-
function
|
|
237
|
+
function Ke(e, t, n) {
|
|
237
238
|
let r = q.value;
|
|
238
239
|
return r !== null && r.laneId === I(e) && r.colId === t && r.itemId === n.id;
|
|
239
240
|
}
|
|
240
|
-
function
|
|
241
|
+
function qe(e, t, n) {
|
|
241
242
|
return n === R(I(e), t).length - 1 && J(e, t) === n + 1;
|
|
242
243
|
}
|
|
243
|
-
function
|
|
244
|
+
function Je(e, t) {
|
|
244
245
|
if (Z.value !== null) return;
|
|
245
246
|
let n = K.value, r = q.value;
|
|
246
247
|
K.value = null, q.value = null;
|
|
247
248
|
let i = G.value;
|
|
248
249
|
if (G.value = null, !i) return;
|
|
249
250
|
if (r) {
|
|
250
|
-
|
|
251
|
+
D("nest", {
|
|
251
252
|
itemId: i.item.id,
|
|
252
253
|
ontoItemId: r.itemId,
|
|
253
254
|
fromColumnId: i.fromColumnId,
|
|
254
|
-
...
|
|
255
|
-
}), W.value = `${H(i.item)} dropped onto ${H(
|
|
255
|
+
...T.lanes ? { fromLaneId: i.fromLaneId } : {}
|
|
256
|
+
}), W.value = `${H(i.item)} dropped onto ${H(T.items.find((e) => e.id === r.itemId) ?? i.item)}`;
|
|
256
257
|
return;
|
|
257
258
|
}
|
|
258
259
|
let a = I(e), o = R(a, t), s = n && n.laneId === a && n.colId === t ? n.index : o.length, c = o.findIndex((e) => e.id === i.item.id), l = c !== -1 && c < s ? s - 1 : s;
|
|
259
260
|
if (i.group) {
|
|
260
|
-
|
|
261
|
+
ke(i.group, i.item.id, a, t, l);
|
|
261
262
|
return;
|
|
262
263
|
}
|
|
263
|
-
|
|
264
|
+
ze(i, a, t, l);
|
|
264
265
|
}
|
|
265
|
-
let Y =
|
|
266
|
-
function
|
|
266
|
+
let Y = _(null);
|
|
267
|
+
function Ye(e, t, n, r) {
|
|
267
268
|
let i = I(n);
|
|
268
|
-
if (
|
|
269
|
-
e.preventDefault(),
|
|
269
|
+
if (T.selectable && (e.key === "x" || e.key === "X") && !Y.value) {
|
|
270
|
+
e.preventDefault(), P(t.id);
|
|
270
271
|
return;
|
|
271
272
|
}
|
|
272
273
|
if (e.key === "Escape") {
|
|
273
274
|
if (!Y.value) {
|
|
274
|
-
|
|
275
|
+
T.selectable && O.value.length > 0 && (e.preventDefault(), M());
|
|
275
276
|
return;
|
|
276
277
|
}
|
|
277
278
|
e.preventDefault(), Y.value = null, W.value = "Move cancelled";
|
|
@@ -279,14 +280,14 @@ var ae = [
|
|
|
279
280
|
}
|
|
280
281
|
if (e.key === " " || e.key === "Enter") {
|
|
281
282
|
if (e.preventDefault(), Y.value?.item.id !== t.id) {
|
|
282
|
-
|
|
283
|
+
Xe(t, i, r);
|
|
283
284
|
return;
|
|
284
285
|
}
|
|
285
|
-
if (
|
|
286
|
-
|
|
286
|
+
if (T.nestable && e.shiftKey && et()) {
|
|
287
|
+
tt();
|
|
287
288
|
return;
|
|
288
289
|
}
|
|
289
|
-
|
|
290
|
+
nt();
|
|
290
291
|
return;
|
|
291
292
|
}
|
|
292
293
|
[
|
|
@@ -294,9 +295,9 @@ var ae = [
|
|
|
294
295
|
"ArrowDown",
|
|
295
296
|
"ArrowLeft",
|
|
296
297
|
"ArrowRight"
|
|
297
|
-
].includes(e.key) && (e.preventDefault(), Y.value?.item.id === t.id ?
|
|
298
|
+
].includes(e.key) && (e.preventDefault(), Y.value?.item.id === t.id ? $e(e.key) : rt(e.key, t, i, r));
|
|
298
299
|
}
|
|
299
|
-
function
|
|
300
|
+
function Xe(e, t, n) {
|
|
300
301
|
Y.value = {
|
|
301
302
|
item: e,
|
|
302
303
|
fromLaneId: t,
|
|
@@ -304,18 +305,18 @@ var ae = [
|
|
|
304
305
|
laneId: t,
|
|
305
306
|
colId: n,
|
|
306
307
|
index: R(t, n).findIndex((t) => t.id === e.id)
|
|
307
|
-
}, W.value = `${H(e)} picked up, ${
|
|
308
|
+
}, W.value = `${H(e)} picked up, ${Ze()}`;
|
|
308
309
|
}
|
|
309
|
-
function
|
|
310
|
+
function Ze() {
|
|
310
311
|
let e = Y.value;
|
|
311
312
|
if (!e) return "";
|
|
312
|
-
let t = R(e.laneId, e.colId).filter((t) => t.id !== e.item.id), n = z(e.colId), r =
|
|
313
|
+
let t = R(e.laneId, e.colId).filter((t) => t.id !== e.item.id), n = z(e.colId), r = T.lanes?.find((t) => (t.id ?? null) === e.laneId) ?? null, i = n ? U(r, n) : e.colId;
|
|
313
314
|
return `position ${e.index + 1} of ${t.length + 1} in ${i}`;
|
|
314
315
|
}
|
|
315
|
-
function
|
|
316
|
-
return !
|
|
316
|
+
function Qe() {
|
|
317
|
+
return !T.lanes || T.lanes.length === 0 ? [null] : T.lanes.filter((e) => !V(e.id)).map((e) => e.id ?? null);
|
|
317
318
|
}
|
|
318
|
-
function
|
|
319
|
+
function $e(e) {
|
|
319
320
|
let t = Y.value;
|
|
320
321
|
if (!t) return;
|
|
321
322
|
let n = R(t.laneId, t.colId).filter((e) => e.id !== t.item.id);
|
|
@@ -323,56 +324,56 @@ var ae = [
|
|
|
323
324
|
let r = e === "ArrowUp" ? -1 : 1, i = t.index + r;
|
|
324
325
|
if (i >= 0 && i <= n.length) t.index = i;
|
|
325
326
|
else {
|
|
326
|
-
let e =
|
|
327
|
+
let e = Qe(), n = e.indexOf(t.laneId), i = n + r;
|
|
327
328
|
if (n === -1 || i < 0 || i >= e.length) return;
|
|
328
329
|
let a = e[i];
|
|
329
330
|
t.laneId = a, t.index = r === 1 ? 0 : R(a, t.colId).filter((e) => e.id !== t.item.id).length;
|
|
330
331
|
}
|
|
331
332
|
} else {
|
|
332
|
-
let n = e === "ArrowLeft" ? -1 : 1, r =
|
|
333
|
+
let n = e === "ArrowLeft" ? -1 : 1, r = T.columns.findIndex((e) => e.id === t.colId), i = T.columns[r + n];
|
|
333
334
|
if (r === -1 || !i) return;
|
|
334
335
|
t.colId = i.id;
|
|
335
336
|
let a = R(t.laneId, t.colId).filter((e) => e.id !== t.item.id);
|
|
336
337
|
t.index = Math.min(t.index, a.length);
|
|
337
338
|
}
|
|
338
|
-
W.value = `${H(t.item)}, ${
|
|
339
|
+
W.value = `${H(t.item)}, ${Ze()}`;
|
|
339
340
|
}
|
|
340
|
-
function
|
|
341
|
+
function et() {
|
|
341
342
|
let e = Y.value;
|
|
342
343
|
if (!e) return null;
|
|
343
344
|
let t = R(e.laneId, e.colId).filter((t) => t.id !== e.item.id);
|
|
344
345
|
return t.length === 0 ? null : t[Math.min(e.index, t.length - 1)] ?? null;
|
|
345
346
|
}
|
|
346
|
-
function
|
|
347
|
-
let e = Y.value, t =
|
|
348
|
-
!e || !t || (Y.value = null,
|
|
347
|
+
function tt() {
|
|
348
|
+
let e = Y.value, t = et();
|
|
349
|
+
!e || !t || (Y.value = null, D("nest", {
|
|
349
350
|
itemId: e.item.id,
|
|
350
351
|
ontoItemId: t.id,
|
|
351
352
|
fromColumnId: e.fromColumnId,
|
|
352
|
-
...
|
|
353
|
+
...T.lanes ? { fromLaneId: e.fromLaneId } : {}
|
|
353
354
|
}), W.value = `${H(e.item)} dropped onto ${H(t)}`);
|
|
354
355
|
}
|
|
355
|
-
function
|
|
356
|
+
function nt() {
|
|
356
357
|
let e = Y.value;
|
|
357
358
|
if (!e) return;
|
|
358
|
-
if (Y.value = null,
|
|
359
|
-
|
|
359
|
+
if (Y.value = null, A(e.item.id) && O.value.length > 1) {
|
|
360
|
+
ke(Oe(), e.item.id, e.laneId, e.colId, e.index), it(e.item.id);
|
|
360
361
|
return;
|
|
361
362
|
}
|
|
362
|
-
let t =
|
|
363
|
+
let t = ze({
|
|
363
364
|
item: e.item,
|
|
364
365
|
fromLaneId: e.fromLaneId,
|
|
365
366
|
fromColumnId: e.fromColumnId
|
|
366
|
-
}, e.laneId, e.colId, e.index), n = z(e.colId), r =
|
|
367
|
-
W.value = t ? `${H(e.item)} dropped, position ${e.index + 1} in ${i}` : `${H(e.item)} dropped`,
|
|
367
|
+
}, e.laneId, e.colId, e.index), n = z(e.colId), r = T.lanes?.find((t) => (t.id ?? null) === e.laneId) ?? null, i = n ? U(r, n) : e.colId;
|
|
368
|
+
W.value = t ? `${H(e.item)} dropped, position ${e.index + 1} in ${i}` : `${H(e.item)} dropped`, it(e.item.id);
|
|
368
369
|
}
|
|
369
|
-
function
|
|
370
|
+
function rt(e, t, n, r) {
|
|
370
371
|
let i = R(n, r), a = i.findIndex((e) => e.id === t.id);
|
|
371
372
|
if (e === "ArrowUp" || e === "ArrowDown") {
|
|
372
373
|
let t = a + (e === "ArrowDown" ? 1 : -1);
|
|
373
374
|
t >= 0 && t < i.length && X(i[t].id);
|
|
374
375
|
} else {
|
|
375
|
-
let t =
|
|
376
|
+
let t = T.columns.findIndex((e) => e.id === r), i = T.columns[t + (e === "ArrowRight" ? 1 : -1)];
|
|
376
377
|
if (t === -1 || !i) return;
|
|
377
378
|
let o = R(n, i.id);
|
|
378
379
|
if (o.length === 0) return;
|
|
@@ -380,7 +381,7 @@ var ae = [
|
|
|
380
381
|
}
|
|
381
382
|
}
|
|
382
383
|
function X(e) {
|
|
383
|
-
let t =
|
|
384
|
+
let t = je.value?.querySelectorAll("[data-item-id]");
|
|
384
385
|
if (t) {
|
|
385
386
|
for (let n of t) if (n.dataset.itemId === e) {
|
|
386
387
|
n.focus();
|
|
@@ -388,155 +389,155 @@ var ae = [
|
|
|
388
389
|
}
|
|
389
390
|
}
|
|
390
391
|
}
|
|
391
|
-
async function
|
|
392
|
+
async function it(e) {
|
|
392
393
|
await te(), await te(), X(e);
|
|
393
394
|
}
|
|
394
|
-
function
|
|
395
|
+
function at(e) {
|
|
395
396
|
Y.value?.item.id === e.id && (Y.value = null);
|
|
396
397
|
}
|
|
397
|
-
let Z =
|
|
398
|
-
function
|
|
399
|
-
if (!
|
|
398
|
+
let Z = _(null), Q = _(null);
|
|
399
|
+
function ot(e, t) {
|
|
400
|
+
if (!T.reorderableColumns) {
|
|
400
401
|
t.preventDefault();
|
|
401
402
|
return;
|
|
402
403
|
}
|
|
403
404
|
Z.value = e, Q.value = e;
|
|
404
405
|
}
|
|
405
|
-
function
|
|
406
|
+
function st(e, t) {
|
|
406
407
|
if (Z.value === null) return;
|
|
407
408
|
t.preventDefault();
|
|
408
409
|
let n = t.currentTarget.getBoundingClientRect();
|
|
409
410
|
Q.value = t.clientX < n.left + n.width / 2 ? e : e + 1;
|
|
410
411
|
}
|
|
411
|
-
function
|
|
412
|
+
function ct(e) {
|
|
412
413
|
let t = Z.value, n = Q.value;
|
|
413
414
|
if ($(), t === null || n === null) return;
|
|
414
415
|
e.preventDefault();
|
|
415
416
|
let r = n > t ? n - 1 : n;
|
|
416
|
-
r !== t &&
|
|
417
|
-
columnId:
|
|
417
|
+
r !== t && D("column-move", {
|
|
418
|
+
columnId: T.columns[t].id,
|
|
418
419
|
toIndex: r
|
|
419
420
|
});
|
|
420
421
|
}
|
|
421
422
|
function $() {
|
|
422
423
|
Z.value = null, Q.value = null;
|
|
423
424
|
}
|
|
424
|
-
return (e, t) => (
|
|
425
|
+
return (e, t) => (g(), d("div", ee({
|
|
425
426
|
ref_key: "boardRef",
|
|
426
|
-
ref:
|
|
427
|
+
ref: je,
|
|
427
428
|
class: ["nb-board", {
|
|
428
|
-
"nb-board--flat":
|
|
429
|
-
"nb-board--batching":
|
|
430
|
-
"nb-board--select-mode":
|
|
429
|
+
"nb-board--flat": x(E) && F.value[0] === null,
|
|
430
|
+
"nb-board--batching": x(E) && Te.value,
|
|
431
|
+
"nb-board--select-mode": N.value
|
|
431
432
|
}]
|
|
432
|
-
},
|
|
433
|
-
|
|
433
|
+
}, x(Ce)), [
|
|
434
|
+
f("div", {
|
|
434
435
|
class: "nb-board__grid",
|
|
435
|
-
style: ne(
|
|
436
|
-
}, [(
|
|
436
|
+
style: ne(Me.value)
|
|
437
|
+
}, [(g(!0), d(o, null, v(m.columns, (t, n) => (g(), d("div", {
|
|
437
438
|
key: t.id,
|
|
438
|
-
class:
|
|
439
|
-
"nb-board__col-header--reorderable":
|
|
439
|
+
class: h(["nb-board__col-header", {
|
|
440
|
+
"nb-board__col-header--reorderable": m.reorderableColumns,
|
|
440
441
|
"nb-board__col-header--dragging": Z.value === n,
|
|
441
442
|
"nb-board__col-header--drop-before": Q.value === n,
|
|
442
|
-
"nb-board__col-header--drop-after": Q.value === n + 1 && n ===
|
|
443
|
+
"nb-board__col-header--drop-after": Q.value === n + 1 && n === m.columns.length - 1
|
|
443
444
|
}]),
|
|
444
445
|
style: ne(t.color ? { borderTopColor: t.color } : void 0),
|
|
445
|
-
draggable:
|
|
446
|
-
onDragstart: (e) =>
|
|
447
|
-
onDragover: (e) =>
|
|
448
|
-
onDrop:
|
|
446
|
+
draggable: m.reorderableColumns || void 0,
|
|
447
|
+
onDragstart: (e) => ot(n, e),
|
|
448
|
+
onDragover: (e) => st(n, e),
|
|
449
|
+
onDrop: ct,
|
|
449
450
|
onDragend: $
|
|
450
|
-
}, [
|
|
451
|
+
}, [y(e.$slots, "column-header", {
|
|
451
452
|
column: t,
|
|
452
|
-
count:
|
|
453
|
-
}, () => [
|
|
453
|
+
count: Pe(t.id)
|
|
454
|
+
}, () => [f("span", oe, b(t.label), 1), f("span", se, b(Pe(t.id)), 1)])], 46, ae))), 128)), (g(!0), d(o, null, v(F.value, (t) => (g(), d(o, { key: Ne(t) }, [t ? (g(), d("div", {
|
|
454
455
|
key: 0,
|
|
455
456
|
class: "nb-board__lane-header",
|
|
456
|
-
onClick: (e) =>
|
|
457
|
+
onClick: (e) => Ie(t.id)
|
|
457
458
|
}, [
|
|
458
|
-
|
|
459
|
+
f("button", {
|
|
459
460
|
class: "nb-board__collapse-btn",
|
|
460
461
|
"aria-label": V(t.id) ? "Expand" : "Collapse"
|
|
461
|
-
},
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
], 8, ce)) :
|
|
465
|
-
key:
|
|
466
|
-
class:
|
|
467
|
-
onDragover:
|
|
468
|
-
onDragleave:
|
|
469
|
-
onDrop:
|
|
470
|
-
}, [
|
|
462
|
+
}, b(V(t.id) ? "▶" : "▼"), 9, le),
|
|
463
|
+
f("span", ue, [y(e.$slots, "lane-header", { lane: t }, () => [p(b(t.label), 1)])]),
|
|
464
|
+
f("span", de, b(Fe(t.id)), 1)
|
|
465
|
+
], 8, ce)) : u("", !0), !t || !V(t.id) ? (g(!0), d(o, { key: 1 }, v(m.columns, (n) => (g(), d("div", {
|
|
466
|
+
key: Ne(t) + "-" + n.id,
|
|
467
|
+
class: h(["nb-board__cell", { "nb-board__cell--drag-over": Ge(t, n.id) }]),
|
|
468
|
+
onDragover: S((e) => He(t, n.id), ["prevent"]),
|
|
469
|
+
onDragleave: Ue,
|
|
470
|
+
onDrop: S((e) => Je(t, n.id), ["prevent"])
|
|
471
|
+
}, [f("div", {
|
|
471
472
|
class: "nb-board__cell-items",
|
|
472
473
|
role: "list",
|
|
473
|
-
"aria-label":
|
|
474
|
-
}, [(
|
|
474
|
+
"aria-label": Le(t, n)
|
|
475
|
+
}, [(g(!0), d(o, null, v(R(I(t), n.id), (r, i) => (g(), d("div", {
|
|
475
476
|
key: r.id,
|
|
476
|
-
class:
|
|
477
|
+
class: h(["nb-board__card", {
|
|
477
478
|
"nb-board__card--lifted": Y.value?.item.id === r.id,
|
|
478
|
-
"nb-board__card--selected":
|
|
479
|
-
"nb-board__card--carried": !!G.value?.group &&
|
|
479
|
+
"nb-board__card--selected": A(r.id),
|
|
480
|
+
"nb-board__card--carried": !!G.value?.group && A(r.id),
|
|
480
481
|
"nb-board__card--drop-before": J(t, n.id) === i,
|
|
481
|
-
"nb-board__card--drop-after":
|
|
482
|
-
"nb-board__card--drop-into":
|
|
482
|
+
"nb-board__card--drop-after": qe(t, n.id, i),
|
|
483
|
+
"nb-board__card--drop-into": Ke(t, n.id, r)
|
|
483
484
|
}]),
|
|
484
485
|
role: "listitem",
|
|
485
486
|
tabindex: "0",
|
|
486
487
|
"data-item-id": r.id,
|
|
487
|
-
"aria-selected":
|
|
488
|
-
"aria-label":
|
|
489
|
-
"aria-describedby": `${
|
|
488
|
+
"aria-selected": m.selectable ? A(r.id) : void 0,
|
|
489
|
+
"aria-label": Re(r, t, n),
|
|
490
|
+
"aria-describedby": `${x(Ae)}-hint`,
|
|
490
491
|
draggable: "true",
|
|
491
|
-
onDragstart: (e) =>
|
|
492
|
-
onDragover:
|
|
493
|
-
onDragend:
|
|
494
|
-
onKeydown: (e) =>
|
|
495
|
-
onClickCapture: (e) =>
|
|
496
|
-
onBlur: (e) =>
|
|
497
|
-
}, [
|
|
492
|
+
onDragstart: (e) => Be(r, t, n.id),
|
|
493
|
+
onDragover: S((e) => Ve(e, t, n.id, i, r), ["prevent", "stop"]),
|
|
494
|
+
onDragend: We,
|
|
495
|
+
onKeydown: (e) => Ye(e, r, t, n.id),
|
|
496
|
+
onClickCapture: (e) => De(e, r, t, n.id),
|
|
497
|
+
onBlur: (e) => at(r)
|
|
498
|
+
}, [y(e.$slots, "card", {
|
|
498
499
|
item: r,
|
|
499
500
|
column: n,
|
|
500
501
|
lane: t ?? void 0
|
|
501
|
-
})], 42, me))), 128)), R(I(t), n.id).length === 0 ? (
|
|
502
|
+
})], 42, me))), 128)), R(I(t), n.id).length === 0 ? (g(), d("div", he)) : u("", !0)], 8, pe), e.$slots["column-footer"] ? (g(), d("div", ge, [y(e.$slots, "column-footer", {
|
|
502
503
|
column: n,
|
|
503
504
|
lane: t ?? void 0
|
|
504
|
-
})])) :
|
|
505
|
-
(
|
|
505
|
+
})])) : u("", !0)], 42, fe))), 128)) : u("", !0)], 64))), 128))], 4),
|
|
506
|
+
(g(), l(s, {
|
|
506
507
|
to: "body",
|
|
507
|
-
disabled: !
|
|
508
|
-
}, [
|
|
508
|
+
disabled: !x(xe) || !x(E)
|
|
509
|
+
}, [Te.value ? (g(), l(a, {
|
|
509
510
|
key: 0,
|
|
510
511
|
class: "nb-board__batch",
|
|
511
512
|
variant: "floating",
|
|
512
|
-
count:
|
|
513
|
-
label:
|
|
514
|
-
"cancel-label":
|
|
515
|
-
onCancel:
|
|
513
|
+
count: O.value.length,
|
|
514
|
+
label: x(w).boardSelectionActions,
|
|
515
|
+
"cancel-label": x(w).boardClearSelection,
|
|
516
|
+
onCancel: M
|
|
516
517
|
}, {
|
|
517
|
-
default: ie(() => [
|
|
518
|
-
selected:
|
|
519
|
-
clear:
|
|
520
|
-
phone:
|
|
518
|
+
default: ie(() => [y(e.$slots, "batch-actions", {
|
|
519
|
+
selected: O.value,
|
|
520
|
+
clear: M,
|
|
521
|
+
phone: x(E)
|
|
521
522
|
})]),
|
|
522
523
|
_: 3
|
|
523
524
|
}, 8, [
|
|
524
525
|
"count",
|
|
525
526
|
"label",
|
|
526
527
|
"cancel-label"
|
|
527
|
-
])) :
|
|
528
|
-
|
|
529
|
-
id: `${
|
|
528
|
+
])) : u("", !0)], 8, ["disabled"])),
|
|
529
|
+
f("span", {
|
|
530
|
+
id: `${x(Ae)}-hint`,
|
|
530
531
|
class: "nb-board__sr"
|
|
531
532
|
}, [
|
|
532
|
-
t[0] ||=
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
533
|
+
t[0] ||= p(" Press Space or Enter to pick up, arrow keys to move, Space or Enter to drop, Escape to cancel.", -1),
|
|
534
|
+
m.nestable ? (g(), d(o, { key: 0 }, [p(" Shift with Space or Enter drops onto the card below instead, putting this one inside it.")], 64)) : u("", !0),
|
|
535
|
+
m.selectable ? (g(), d(o, { key: 1 }, [p(" X selects the card, or removes it from the selection. Picking up a selected card moves every selected card. Escape clears the selection.")], 64)) : u("", !0),
|
|
536
|
+
N.value ? (g(), d(o, { key: 2 }, [p(" Selecting: activating a card selects it, or removes it from the selection.")], 64)) : u("", !0)
|
|
536
537
|
], 8, _e),
|
|
537
|
-
|
|
538
|
+
f("span", ve, b(W.value), 1)
|
|
538
539
|
], 16));
|
|
539
540
|
}
|
|
540
541
|
});
|
|
541
542
|
//#endregion
|
|
542
|
-
export {
|
|
543
|
+
export { C as t };
|