@s_and_a/arrow-ui 0.1.12 → 0.1.14
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 +570 -504
- package/dist/style.css +1 -1
- package/dist/types/components/ArAvatar.vue.d.ts +1 -1
- package/dist/types/components/ArAvatarGroup.vue.d.ts +1 -1
- package/dist/types/components/ArButton.vue.d.ts +1 -1
- package/dist/types/components/ArCalendar.vue.d.ts +1 -1
- package/dist/types/components/ArChangedValue.vue.d.ts +1 -1
- package/dist/types/components/ArDateView.vue.d.ts +1 -1
- package/dist/types/components/ArDescriptions.vue.d.ts +1 -1
- package/dist/types/components/ArEllipsis.contract.d.ts +2 -0
- package/dist/types/components/ArField.contract.d.ts +2 -0
- package/dist/types/components/ArField.vue.d.ts +1 -0
- package/dist/types/components/ArImage.vue.d.ts +1 -1
- package/dist/types/components/ArNotification.vue.d.ts +1 -1
- package/dist/types/components/ArPeriodNav.vue.d.ts +2 -2
- package/dist/types/components/ArShiftDaySheet.vue.d.ts +2 -2
- package/dist/types/components/ArShiftGrid.vue.d.ts +1 -1
- package/dist/types/components/ArTextInput.contract.d.ts +2 -0
- package/dist/types/components/ArTextInput.vue.d.ts +1 -0
- package/dist/types/components/ArThumbnail.vue.d.ts +1 -1
- package/dist/types/components/ArTree.vue.d.ts +1 -1
- package/dist/types/components/ArTreeSelect.contract.d.ts +1 -1
- package/dist/types/components/ArTreeSelect.vue.d.ts +1 -1
- package/dist/types/components/ArUpload.contract.d.ts +2 -0
- package/dist/types/components/ArUpload.vue.d.ts +1 -1
- package/dist/types/components/ArVariablePanel.vue.d.ts +1 -1
- package/dist/types/components/ArWizard.vue.d.ts +2 -2
- package/dist/types/components/ArZipInput.contract.d.ts +1 -1
- package/dist/types/internal/shiftGrid.d.ts +2 -0
- package/dist/types/layout/ArSplit.vue.d.ts +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2473,6 +2473,7 @@ var Wn = [
|
|
|
2473
2473
|
"data-size",
|
|
2474
2474
|
"data-variant",
|
|
2475
2475
|
"data-block",
|
|
2476
|
+
"data-columns",
|
|
2476
2477
|
"data-state"
|
|
2477
2478
|
], Yn = {
|
|
2478
2479
|
key: 0,
|
|
@@ -2556,6 +2557,7 @@ var Wn = [
|
|
|
2556
2557
|
type: Boolean,
|
|
2557
2558
|
default: !1
|
|
2558
2559
|
},
|
|
2560
|
+
columns: { default: void 0 },
|
|
2559
2561
|
align: { default: void 0 },
|
|
2560
2562
|
label: { default: void 0 },
|
|
2561
2563
|
id: { default: void 0 },
|
|
@@ -2583,7 +2585,7 @@ var Wn = [
|
|
|
2583
2585
|
setup(e, { expose: t, emit: n }) {
|
|
2584
2586
|
let r = e, i = n, a = _e(), o = D(() => typeof a["aria-label"] == "string" ? a["aria-label"] : r.label), s = D(() => ({
|
|
2585
2587
|
class: a.class,
|
|
2586
|
-
style: a.style
|
|
2588
|
+
style: [r.columns ? { "--ar-input-columns": `${r.columns}ch` } : void 0, a.style]
|
|
2587
2589
|
})), c = D(() => {
|
|
2588
2590
|
let { class: e, style: t, ...n } = a;
|
|
2589
2591
|
return n;
|
|
@@ -2623,6 +2625,7 @@ var Wn = [
|
|
|
2623
2625
|
"data-size": e.size,
|
|
2624
2626
|
"data-variant": e.variant,
|
|
2625
2627
|
"data-block": e.block || void 0,
|
|
2628
|
+
"data-columns": e.columns || void 0,
|
|
2626
2629
|
"data-state": [
|
|
2627
2630
|
h.value && "invalid",
|
|
2628
2631
|
!h.value && e.warning && "warning",
|
|
@@ -7606,6 +7609,7 @@ var as = [
|
|
|
7606
7609
|
}
|
|
7607
7610
|
}), Ss = Symbol("ArForm"), Cs = [
|
|
7608
7611
|
"data-layout",
|
|
7612
|
+
"data-control-size",
|
|
7609
7613
|
"data-label-size",
|
|
7610
7614
|
"data-state"
|
|
7611
7615
|
], ws = {
|
|
@@ -7631,6 +7635,7 @@ var as = [
|
|
|
7631
7635
|
layout: { default: void 0 },
|
|
7632
7636
|
labelSize: { default: void 0 },
|
|
7633
7637
|
labelWidth: { default: void 0 },
|
|
7638
|
+
controlSize: { default: void 0 },
|
|
7634
7639
|
requiredText: { default: "必須" },
|
|
7635
7640
|
id: { default: void 0 }
|
|
7636
7641
|
},
|
|
@@ -7679,6 +7684,7 @@ var as = [
|
|
|
7679
7684
|
"data-ar": "field",
|
|
7680
7685
|
"data-part": "root",
|
|
7681
7686
|
"data-layout": l.value,
|
|
7687
|
+
"data-control-size": e.controlSize,
|
|
7682
7688
|
"data-label-size": l.value === "inline" ? d.value : void 0,
|
|
7683
7689
|
style: V(l.value === "inline" && f.value ? { "--ar-field-label": f.value } : void 0),
|
|
7684
7690
|
"data-state": p.value ? "invalid" : void 0,
|
|
@@ -11660,7 +11666,7 @@ var Fl = [
|
|
|
11660
11666
|
icon: { default: void 0 },
|
|
11661
11667
|
showPath: {
|
|
11662
11668
|
type: Boolean,
|
|
11663
|
-
default: !
|
|
11669
|
+
default: !1
|
|
11664
11670
|
},
|
|
11665
11671
|
maxTags: { default: 2 },
|
|
11666
11672
|
size: { default: "md" },
|
|
@@ -12100,16 +12106,22 @@ var Fl = [
|
|
|
12100
12106
|
key: 1,
|
|
12101
12107
|
"data-part": "status"
|
|
12102
12108
|
}, cf = [
|
|
12109
|
+
"disabled",
|
|
12103
12110
|
"aria-label",
|
|
12104
12111
|
"title",
|
|
12105
12112
|
"onClick"
|
|
12106
12113
|
], lf = ["aria-valuenow", "aria-label"], uf = {
|
|
12107
12114
|
key: 2,
|
|
12108
12115
|
"data-part": "cards"
|
|
12109
|
-
}, df = ["data-status"], ff = [
|
|
12116
|
+
}, df = ["data-status"], ff = [
|
|
12117
|
+
"src",
|
|
12118
|
+
"alt",
|
|
12119
|
+
"onError"
|
|
12120
|
+
], pf = {
|
|
12110
12121
|
key: 1,
|
|
12111
12122
|
"data-part": "card-name"
|
|
12112
12123
|
}, mf = [
|
|
12124
|
+
"disabled",
|
|
12113
12125
|
"aria-label",
|
|
12114
12126
|
"title",
|
|
12115
12127
|
"onClick"
|
|
@@ -12150,8 +12162,15 @@ var Fl = [
|
|
|
12150
12162
|
"remove"
|
|
12151
12163
|
],
|
|
12152
12164
|
setup(e, { emit: t }) {
|
|
12153
|
-
let n = e, r = t, i = D(() => n.files?.length ? n.labels.change ?? "ファイルを変更" : n.labels.choose ?? "ファイルを選択"), a = d("ArUpload", "trigger", "drop"), o = U(null), s = U(!1), c = (
|
|
12154
|
-
|
|
12165
|
+
let n = e, r = t, i = D(() => n.files?.length ? n.labels.change ?? "ファイルを変更" : n.labels.choose ?? "ファイルを選択"), a = d("ArUpload", "trigger", "drop"), o = U(null), s = U(!1), c = U(/* @__PURE__ */ new Set());
|
|
12166
|
+
Y(() => n.files, (e) => {
|
|
12167
|
+
let t = new Set(e.map((e) => e.url));
|
|
12168
|
+
c.value = new Set([...c.value].filter((e) => t.has(e)));
|
|
12169
|
+
});
|
|
12170
|
+
let l = (e) => {
|
|
12171
|
+
!n.disabled && e.status !== "uploading" && r("remove", e);
|
|
12172
|
+
}, u = () => !n.disabled && o.value?.click();
|
|
12173
|
+
function f(e) {
|
|
12155
12174
|
if (!n.accept) return !0;
|
|
12156
12175
|
let t = e.name.toLowerCase();
|
|
12157
12176
|
return n.accept.split(",").some((n) => {
|
|
@@ -12159,10 +12178,10 @@ var Fl = [
|
|
|
12159
12178
|
return r.startsWith(".") ? t.endsWith(r) : r.endsWith("/*") ? e.type.startsWith(r.slice(0, -1)) : e.type === r;
|
|
12160
12179
|
});
|
|
12161
12180
|
}
|
|
12162
|
-
function
|
|
12181
|
+
function p(e) {
|
|
12163
12182
|
if (!e || n.disabled) return;
|
|
12164
12183
|
let t = [...e].slice(0, n.multiple ? void 0 : 1), i = [], a = [];
|
|
12165
|
-
for (let e of t)
|
|
12184
|
+
for (let e of t) f(e) ? n.maxSize && e.size > n.maxSize ? a.push({
|
|
12166
12185
|
file: e,
|
|
12167
12186
|
reason: n.labels.tooLarge
|
|
12168
12187
|
}) : i.push(e) : a.push({
|
|
@@ -12171,21 +12190,21 @@ var Fl = [
|
|
|
12171
12190
|
});
|
|
12172
12191
|
i.length && r("select", i), a.length && r("reject", a);
|
|
12173
12192
|
}
|
|
12174
|
-
function
|
|
12175
|
-
s.value = !1,
|
|
12193
|
+
function m(e) {
|
|
12194
|
+
s.value = !1, p(e.dataTransfer?.files);
|
|
12176
12195
|
}
|
|
12177
|
-
function
|
|
12178
|
-
|
|
12196
|
+
function h(e) {
|
|
12197
|
+
p(e.target.files), e.target.value = "";
|
|
12179
12198
|
}
|
|
12180
|
-
function
|
|
12199
|
+
function g(e) {
|
|
12181
12200
|
return e.status === "error" ? "alert" : /\.(xlsx?|csv)$/i.test(e.name) ? "xls" : /\.(png|jpe?g|gif|heic|webp)$/i.test(e.name) ? "image" : "file";
|
|
12182
12201
|
}
|
|
12183
|
-
let
|
|
12202
|
+
let _ = D(() => [s.value && "dragover", n.disabled && "disabled"].filter(Boolean).join(" ") || void 0);
|
|
12184
12203
|
return (t, n) => (H(), A("div", {
|
|
12185
12204
|
"data-ar": "upload",
|
|
12186
12205
|
"data-part": "root",
|
|
12187
12206
|
"data-list": e.listType,
|
|
12188
|
-
"data-state":
|
|
12207
|
+
"data-state": _.value,
|
|
12189
12208
|
role: "group",
|
|
12190
12209
|
"aria-label": e.label
|
|
12191
12210
|
}, [j("input", {
|
|
@@ -12197,7 +12216,7 @@ var Fl = [
|
|
|
12197
12216
|
accept: e.accept,
|
|
12198
12217
|
multiple: e.multiple,
|
|
12199
12218
|
disabled: e.disabled,
|
|
12200
|
-
onChange:
|
|
12219
|
+
onChange: h
|
|
12201
12220
|
}, null, 40, Xd), e.listType === "text" && J(a) === "button" ? (H(), A(x, { key: 0 }, [F(Nt, {
|
|
12202
12221
|
"data-part": "button",
|
|
12203
12222
|
tone: e.buttonTone,
|
|
@@ -12206,7 +12225,7 @@ var Fl = [
|
|
|
12206
12225
|
block: "",
|
|
12207
12226
|
disabled: e.disabled,
|
|
12208
12227
|
"aria-label": e.label ? `${e.label}:${i.value}` : void 0,
|
|
12209
|
-
onClick:
|
|
12228
|
+
onClick: u
|
|
12210
12229
|
}, {
|
|
12211
12230
|
default: X(() => [G(t.$slots, "default", {}, () => [P(q(i.value), 1)])]),
|
|
12212
12231
|
_: 3
|
|
@@ -12222,11 +12241,11 @@ var Fl = [
|
|
|
12222
12241
|
tabindex: e.disabled ? -1 : 0,
|
|
12223
12242
|
"aria-disabled": e.disabled || void 0,
|
|
12224
12243
|
"aria-label": `${e.label ?? ""}${e.labels.drop}${e.hint ? `(${e.hint})` : ""}`,
|
|
12225
|
-
onClick:
|
|
12226
|
-
onKeydown: [Ce(Z(
|
|
12244
|
+
onClick: u,
|
|
12245
|
+
onKeydown: [Ce(Z(u, ["prevent"]), ["enter"]), Ce(Z(u, ["prevent"]), ["space"])],
|
|
12227
12246
|
onDragover: n[0] ||= Z((t) => s.value = !e.disabled, ["prevent"]),
|
|
12228
12247
|
onDragleave: n[1] ||= (e) => s.value = !1,
|
|
12229
|
-
onDrop: Z(
|
|
12248
|
+
onDrop: Z(m, ["prevent"])
|
|
12230
12249
|
}, [
|
|
12231
12250
|
F($, {
|
|
12232
12251
|
line: "",
|
|
@@ -12246,7 +12265,7 @@ var Fl = [
|
|
|
12246
12265
|
role: "listitem"
|
|
12247
12266
|
}, [j("div", af, [
|
|
12248
12267
|
F($, {
|
|
12249
|
-
name:
|
|
12268
|
+
name: g(t),
|
|
12250
12269
|
size: "sm",
|
|
12251
12270
|
"data-part": "kind"
|
|
12252
12271
|
}, null, 8, ["name"]),
|
|
@@ -12266,9 +12285,10 @@ var Fl = [
|
|
|
12266
12285
|
key: 2,
|
|
12267
12286
|
type: "button",
|
|
12268
12287
|
"data-part": "remove",
|
|
12288
|
+
disabled: e.disabled,
|
|
12269
12289
|
"aria-label": `${t.name}を${e.labels.remove}`,
|
|
12270
12290
|
title: e.labels.remove,
|
|
12271
|
-
onClick: (e) =>
|
|
12291
|
+
onClick: (e) => l(t)
|
|
12272
12292
|
}, [F($, {
|
|
12273
12293
|
line: "",
|
|
12274
12294
|
name: "trash",
|
|
@@ -12286,16 +12306,18 @@ var Fl = [
|
|
|
12286
12306
|
key: t.id,
|
|
12287
12307
|
"data-part": "card",
|
|
12288
12308
|
"data-status": t.status
|
|
12289
|
-
}, [t.url ? (H(), A("img", {
|
|
12309
|
+
}, [t.url && !c.value.has(t.url) ? (H(), A("img", {
|
|
12290
12310
|
key: 0,
|
|
12291
12311
|
src: t.url,
|
|
12292
|
-
alt: t.name
|
|
12293
|
-
|
|
12312
|
+
alt: t.name,
|
|
12313
|
+
onError: (e) => c.value.add(t.url)
|
|
12314
|
+
}, null, 40, ff)) : (H(), A("span", pf, q(t.previewFallback ?? t.name), 1)), j("button", {
|
|
12294
12315
|
type: "button",
|
|
12295
12316
|
"data-part": "remove",
|
|
12317
|
+
disabled: e.disabled || t.status === "uploading",
|
|
12296
12318
|
"aria-label": `${t.name}を${e.labels.remove}`,
|
|
12297
12319
|
title: e.labels.remove,
|
|
12298
|
-
onClick: (e) =>
|
|
12320
|
+
onClick: (e) => l(t)
|
|
12299
12321
|
}, [F($, {
|
|
12300
12322
|
line: "",
|
|
12301
12323
|
name: "x",
|
|
@@ -12305,10 +12327,10 @@ var Fl = [
|
|
|
12305
12327
|
"data-part": "add",
|
|
12306
12328
|
disabled: e.disabled,
|
|
12307
12329
|
"aria-label": `${e.label ?? ""}${e.labels.add}`,
|
|
12308
|
-
onClick:
|
|
12330
|
+
onClick: u,
|
|
12309
12331
|
onDragover: n[2] ||= Z((t) => s.value = !e.disabled, ["prevent"]),
|
|
12310
12332
|
onDragleave: n[3] ||= (e) => s.value = !1,
|
|
12311
|
-
onDrop: Z(
|
|
12333
|
+
onDrop: Z(m, ["prevent"])
|
|
12312
12334
|
}, [F($, {
|
|
12313
12335
|
line: "",
|
|
12314
12336
|
name: "plus",
|
|
@@ -15898,8 +15920,13 @@ var Fh = {
|
|
|
15898
15920
|
], Wg = ["data-order", "onClick"], Gg = {
|
|
15899
15921
|
key: 0,
|
|
15900
15922
|
"data-part": "before-rows"
|
|
15901
|
-
}, Kg = ["colspan"], qg = { "data-part": "body" }, Jg = { key: 0 }, Yg = ["colspan"], Xg = [
|
|
15923
|
+
}, Kg = ["colspan"], qg = { "data-part": "body" }, Jg = { key: 0 }, Yg = ["colspan"], Xg = [
|
|
15902
15924
|
"data-state",
|
|
15925
|
+
"data-clickable",
|
|
15926
|
+
"onClick"
|
|
15927
|
+
], Zg = ["colspan"], Qg = [
|
|
15928
|
+
"data-state",
|
|
15929
|
+
"data-clickable",
|
|
15903
15930
|
"data-line",
|
|
15904
15931
|
"data-line-last",
|
|
15905
15932
|
"data-drop",
|
|
@@ -16061,11 +16088,11 @@ var Fh = {
|
|
|
16061
16088
|
"cancel"
|
|
16062
16089
|
],
|
|
16063
16090
|
setup(e, { emit: t }) {
|
|
16064
|
-
let n = e, r = t, i = ye(), a = D(() => new Set(n.openGroups)),
|
|
16065
|
-
let e = [...new Map(n.columns.filter((e) => e.key !== "actions").map((e) => [
|
|
16066
|
-
key:
|
|
16067
|
-
label:
|
|
16068
|
-
disabled:
|
|
16091
|
+
let n = e, r = t, i = ye(), a = !!ee()?.vnode.props?.onRowClick, o = D(() => new Set(n.openGroups)), s = D(() => new Map(n.columnGroups.map((e) => [e.key, e]))), c = (e) => e.group ? s.value.get(e.group) : void 0, l = (e) => !!e && o.value.has(e), u = U([]), f = (e) => e.group ? "group:" + e.group : "column:" + e.key, p = D(() => new Set(n.columns.filter((e, t) => t === 0 || e.key === "actions").map(f))), m = D(() => {
|
|
16092
|
+
let e = [...new Map(n.columns.filter((e) => e.key !== "actions").map((e) => [f(e), {
|
|
16093
|
+
key: f(e),
|
|
16094
|
+
label: c(e)?.title ?? e.title ?? e.key,
|
|
16095
|
+
disabled: p.value.has(f(e))
|
|
16069
16096
|
}])).values()];
|
|
16070
16097
|
return [{
|
|
16071
16098
|
label: n.viewOptionsLabels.columns ?? "表示項目",
|
|
@@ -16074,25 +16101,25 @@ var Fh = {
|
|
|
16074
16101
|
key: "avatar",
|
|
16075
16102
|
label: n.viewOptionsLabels.avatar ?? "サムネイル"
|
|
16076
16103
|
}] }] : []];
|
|
16077
|
-
}),
|
|
16078
|
-
get: () =>
|
|
16104
|
+
}), h = D({
|
|
16105
|
+
get: () => m.value.flatMap((e) => e.options).filter((e) => e.disabled || !u.value.includes(e.key)).map((e) => e.key),
|
|
16079
16106
|
set: (e) => {
|
|
16080
|
-
|
|
16107
|
+
u.value = m.value.flatMap((e) => e.options).filter((t) => !t.disabled && !e.includes(t.key)).map((e) => e.key);
|
|
16081
16108
|
}
|
|
16082
|
-
}),
|
|
16083
|
-
let e =
|
|
16084
|
-
let t =
|
|
16085
|
-
return !!t && (!t.collapsible ||
|
|
16109
|
+
}), g = D(() => n.columns.filter((e) => (!n.viewOptions || p.value.has(f(e)) || !u.value.includes(f(e))) && (!e.show || e.show === "open" === l(e.group)))), _ = D(() => {
|
|
16110
|
+
let e = g.value, t = (e) => {
|
|
16111
|
+
let t = c(e);
|
|
16112
|
+
return !!t && (!t.collapsible || l(t.key));
|
|
16086
16113
|
}, n = e.some(t), r = [], i = [];
|
|
16087
16114
|
for (let a = 0; a < e.length; a++) {
|
|
16088
|
-
let o = e[a],
|
|
16089
|
-
if (
|
|
16115
|
+
let o = e[a], s = c(o);
|
|
16116
|
+
if (s && t(o)) {
|
|
16090
16117
|
let t = 0;
|
|
16091
|
-
for (; a + t < e.length && e[a + t].group ===
|
|
16118
|
+
for (; a + t < e.length && e[a + t].group === s.key;) t++;
|
|
16092
16119
|
r.push({
|
|
16093
16120
|
kind: "group",
|
|
16094
|
-
key: `g:${
|
|
16095
|
-
group:
|
|
16121
|
+
key: `g:${s.key}:${a}`,
|
|
16122
|
+
group: s,
|
|
16096
16123
|
colspan: t
|
|
16097
16124
|
});
|
|
16098
16125
|
for (let n = 0; n < t; n++) i.push({
|
|
@@ -16107,7 +16134,7 @@ var Fh = {
|
|
|
16107
16134
|
key: o.key,
|
|
16108
16135
|
col: o,
|
|
16109
16136
|
rowspan: n ? 2 : 1,
|
|
16110
|
-
collapsed:
|
|
16137
|
+
collapsed: s?.collapsible ? s : void 0
|
|
16111
16138
|
});
|
|
16112
16139
|
}
|
|
16113
16140
|
return {
|
|
@@ -16115,21 +16142,21 @@ var Fh = {
|
|
|
16115
16142
|
top: r,
|
|
16116
16143
|
bottom: i
|
|
16117
16144
|
};
|
|
16118
|
-
}),
|
|
16119
|
-
let t =
|
|
16120
|
-
if (!t || t.collapsible && !
|
|
16121
|
-
let n =
|
|
16122
|
-
return n === 0 ||
|
|
16145
|
+
}), v = D(() => _.value.two ? 2 : void 0), y = (e) => {
|
|
16146
|
+
let t = c(e);
|
|
16147
|
+
if (!t || t.collapsible && !l(t.key)) return !1;
|
|
16148
|
+
let n = g.value.indexOf(e);
|
|
16149
|
+
return n === 0 || g.value[n - 1].group !== e.group;
|
|
16123
16150
|
};
|
|
16124
|
-
function
|
|
16125
|
-
let t = typeof e == "string" ? [e] : [...e], i = t.some((e) =>
|
|
16126
|
-
for (let e of t) i ?
|
|
16127
|
-
r("update:openGroups", [...
|
|
16151
|
+
function b(e) {
|
|
16152
|
+
let t = typeof e == "string" ? [e] : [...e], i = t.some((e) => o.value.has(e)), a = new Set(n.openGroups);
|
|
16153
|
+
for (let e of t) i ? a.delete(e) : a.add(e);
|
|
16154
|
+
r("update:openGroups", [...a]);
|
|
16128
16155
|
}
|
|
16129
|
-
let
|
|
16130
|
-
function
|
|
16131
|
-
let r = Eh(
|
|
16132
|
-
return
|
|
16156
|
+
let S = (e) => (typeof e.toggles == "string" ? [e.toggles] : [...e.toggles ?? []]).some((e) => o.value.has(e)), C = D(() => new Set(n.editing)), w = D(() => n.editing.length > 0), T = (e) => C.value.has(Ee(e)), E = (e, t) => t.edit === void 0 ? T(e) && !!t.editor : typeof t.edit == "function" ? t.edit(e) : !!t.edit, M = (e) => Array.isArray(e) ? e : [e], I = (e) => e.editor === "time-range", L = (e) => !!e.lines || I(e), ne = D(() => g.value.filter(L)), R = D(() => ne.value.length > 0);
|
|
16157
|
+
function re(e, t) {
|
|
16158
|
+
let r = Eh(Ee(e), t.key), i = r in n.edits ? Mh(n.edits[r]) : Mh(Q(e, t));
|
|
16159
|
+
return E(e, t) && t.appendEmpty !== !1 && (i.length === 0 || Nh(i[i.length - 1])) && i.push({
|
|
16133
16160
|
start: {
|
|
16134
16161
|
time: null,
|
|
16135
16162
|
day: "same"
|
|
@@ -16140,73 +16167,73 @@ var Fh = {
|
|
|
16140
16167
|
}
|
|
16141
16168
|
}), i;
|
|
16142
16169
|
}
|
|
16143
|
-
let
|
|
16170
|
+
let ae = (e, t) => I(t) ? re(e, t) : M(Q(e, t)), oe = (e) => {
|
|
16144
16171
|
let t = 1;
|
|
16145
|
-
for (let n of
|
|
16146
|
-
let r =
|
|
16172
|
+
for (let n of ne.value) {
|
|
16173
|
+
let r = I(n) ? re(e, n) : Q(e, n);
|
|
16147
16174
|
Array.isArray(r) && (t = Math.max(t, r.length));
|
|
16148
16175
|
}
|
|
16149
16176
|
return t;
|
|
16150
|
-
},
|
|
16151
|
-
function
|
|
16177
|
+
}, le = (e, t, n) => n === void 0 ? Q(e, t) : ae(e, t)[n], ue = (e, t) => L(e) ? t : void 0;
|
|
16178
|
+
function de(e) {
|
|
16152
16179
|
let t = {};
|
|
16153
16180
|
for (let r of n.columns) {
|
|
16154
|
-
if (!
|
|
16155
|
-
let i = Eh(
|
|
16156
|
-
|
|
16181
|
+
if (!E(e, r)) continue;
|
|
16182
|
+
let i = Eh(Ee(e), r.key);
|
|
16183
|
+
I(r) ? t[r.key] = re(e, r).filter(Nh) : r.lines ? t[r.key] = M(Q(e, r)).map((e, t) => `${i}:${t}` in n.edits ? n.edits[`${i}:${t}`] : e) : t[r.key] = i in n.edits ? n.edits[i] : Q(e, r);
|
|
16157
16184
|
}
|
|
16158
16185
|
return t;
|
|
16159
16186
|
}
|
|
16160
|
-
function
|
|
16187
|
+
function fe(e) {
|
|
16161
16188
|
r("commit", {
|
|
16162
|
-
key:
|
|
16189
|
+
key: Ee(e),
|
|
16163
16190
|
row: e,
|
|
16164
|
-
values:
|
|
16191
|
+
values: de(e)
|
|
16165
16192
|
});
|
|
16166
16193
|
}
|
|
16167
|
-
function
|
|
16168
|
-
let t = `${String(
|
|
16194
|
+
function pe(e) {
|
|
16195
|
+
let t = `${String(Ee(e))}:`, i = de(e), a = Object.fromEntries(Object.entries(n.edits).filter(([e]) => !e.startsWith(t)));
|
|
16169
16196
|
Object.keys(a).length !== Object.keys(n.edits).length && r("update:edits", a), r("cancel", {
|
|
16170
|
-
key:
|
|
16197
|
+
key: Ee(e),
|
|
16171
16198
|
row: e,
|
|
16172
16199
|
values: i
|
|
16173
16200
|
});
|
|
16174
16201
|
}
|
|
16175
|
-
function
|
|
16176
|
-
|
|
16202
|
+
function K(e, t) {
|
|
16203
|
+
T(t) && !e.defaultPrevented && (e.key === "Escape" ? (e.preventDefault(), pe(t)) : e.key === "Enter" && (e.ctrlKey || e.metaKey) && (e.preventDefault(), fe(t)));
|
|
16177
16204
|
}
|
|
16178
|
-
function
|
|
16205
|
+
function me(e, t) {
|
|
16179
16206
|
r("update:edits", {
|
|
16180
16207
|
...n.edits,
|
|
16181
16208
|
[e]: t
|
|
16182
16209
|
});
|
|
16183
16210
|
}
|
|
16184
|
-
let
|
|
16211
|
+
let he = (e, t, r, i) => ({
|
|
16185
16212
|
row: e,
|
|
16186
|
-
showAvatar: !n.viewOptions || !
|
|
16213
|
+
showAvatar: !n.viewOptions || !u.value.includes("avatar"),
|
|
16187
16214
|
col: t,
|
|
16188
|
-
value:
|
|
16189
|
-
rowKey:
|
|
16215
|
+
value: le(e, t, i),
|
|
16216
|
+
rowKey: Ee(e),
|
|
16190
16217
|
index: r,
|
|
16191
16218
|
line: i,
|
|
16192
16219
|
variant: n.variant,
|
|
16193
16220
|
edits: n.edits,
|
|
16194
16221
|
invalidCells: n.invalidCells,
|
|
16195
16222
|
blank: n.blank,
|
|
16196
|
-
editing:
|
|
16197
|
-
lineValues:
|
|
16198
|
-
labels:
|
|
16199
|
-
onEdit:
|
|
16200
|
-
}),
|
|
16201
|
-
function
|
|
16202
|
-
let i =
|
|
16203
|
-
i ||
|
|
16223
|
+
editing: T(e),
|
|
16224
|
+
lineValues: I(t) ? ae(e, t) : void 0,
|
|
16225
|
+
labels: Te.value,
|
|
16226
|
+
onEdit: me
|
|
16227
|
+
}), ge = /* @__PURE__ */ new WeakMap();
|
|
16228
|
+
function _e(e, t, r) {
|
|
16229
|
+
let i = ge.get(e);
|
|
16230
|
+
i || ge.set(e, i = /* @__PURE__ */ new Map());
|
|
16204
16231
|
let a = `${t.key}:${r ?? ""}`, o = i.get(a);
|
|
16205
16232
|
if (!o) {
|
|
16206
16233
|
let s = (i, a) => {
|
|
16207
|
-
let o =
|
|
16234
|
+
let o = g.value.find((e) => e.key === t.key) ?? t;
|
|
16208
16235
|
return te(Jh, {
|
|
16209
|
-
...
|
|
16236
|
+
...he(e, o, Math.max(0, n.rows.indexOf(e)), r),
|
|
16210
16237
|
...a.attrs
|
|
16211
16238
|
});
|
|
16212
16239
|
};
|
|
@@ -16214,14 +16241,14 @@ var Fh = {
|
|
|
16214
16241
|
}
|
|
16215
16242
|
return o;
|
|
16216
16243
|
}
|
|
16217
|
-
let
|
|
16218
|
-
if (
|
|
16219
|
-
let i =
|
|
16220
|
-
if (!
|
|
16244
|
+
let ve = (e, t, n) => t.rowSpan ? t.rowSpan(e, n) : 1, be = (e, t, r) => {
|
|
16245
|
+
if (L(t)) return 1;
|
|
16246
|
+
let i = ve(e, t, r);
|
|
16247
|
+
if (!R.value) return i;
|
|
16221
16248
|
let a = 0;
|
|
16222
|
-
for (let e = r; e < Math.min(n.rows.length, r + Math.max(1, i)); e++) a +=
|
|
16249
|
+
for (let e = r; e < Math.min(n.rows.length, r + Math.max(1, i)); e++) a += oe(n.rows[e]);
|
|
16223
16250
|
return a;
|
|
16224
|
-
},
|
|
16251
|
+
}, xe = U(null), X = d("ArTable", "selectHead", "check"), Se = d("ArTable", "dragHandle", "column"), Ce = D(() => n.sortableRows && Se.value === "column"), we = d("ArTable", "groupToggle", "chevron"), Te = D(() => ({
|
|
16225
16252
|
selectAll: "すべて選ぶ",
|
|
16226
16253
|
selectRow: "この行を選ぶ",
|
|
16227
16254
|
expand: "開く",
|
|
@@ -16233,8 +16260,8 @@ var Fh = {
|
|
|
16233
16260
|
cancel: "取り消す",
|
|
16234
16261
|
removeRange: "この時間を消す",
|
|
16235
16262
|
...n.labels
|
|
16236
|
-
})),
|
|
16237
|
-
let e = [], t =
|
|
16263
|
+
})), Ee = (e) => typeof n.rowKey == "function" ? n.rowKey(e) : e[n.rowKey], Q = (e, t) => t.value ? t.value(e) : e[t.key], De = (e) => e == null || e === "" || Array.isArray(e) && e.length === 0, Oe = (e) => e.align ?? (e.numeric ? "end" : "start"), ke = D(() => {
|
|
16264
|
+
let e = [], t = g.value;
|
|
16238
16265
|
for (let r = 0; r < t.length; r++) {
|
|
16239
16266
|
let i = t[r], a = n.footer?.[i.key], o = typeof a == "object" && a ? a : null, s = Math.max(1, Math.min(o?.span ?? 1, t.length - r)), c = o ? o.value : typeof a == "string" || typeof a == "number" ? a : "";
|
|
16240
16267
|
e.push({
|
|
@@ -16246,55 +16273,55 @@ var Fh = {
|
|
|
16246
16273
|
}), r += s - 1;
|
|
16247
16274
|
}
|
|
16248
16275
|
return e;
|
|
16249
|
-
}),
|
|
16276
|
+
}), Ae = D(() => !!i.actions || w.value), je = U(null), Me = U({}), Ne = (e) => e.sticky === !0 || e.sticky === "start", Pe = D(() => {
|
|
16250
16277
|
let e = [];
|
|
16251
|
-
for (let t of
|
|
16252
|
-
if (!
|
|
16278
|
+
for (let t of g.value) {
|
|
16279
|
+
if (!Ne(t)) break;
|
|
16253
16280
|
e.push(t.key);
|
|
16254
16281
|
}
|
|
16255
16282
|
return e;
|
|
16256
|
-
}),
|
|
16283
|
+
}), Fe = D(() => {
|
|
16257
16284
|
let e = [];
|
|
16258
|
-
for (let t of [...
|
|
16285
|
+
for (let t of [...g.value].reverse()) {
|
|
16259
16286
|
if (t.sticky !== "end") break;
|
|
16260
16287
|
e.unshift(t.key);
|
|
16261
16288
|
}
|
|
16262
16289
|
return e;
|
|
16263
|
-
}),
|
|
16264
|
-
function
|
|
16265
|
-
let e =
|
|
16266
|
-
if (e &&
|
|
16290
|
+
}), Ie = D(() => Pe.value.length > 0), Le = D(() => Fe.value.length > 0), Re = D(() => Pe.value.at(-1)), ze = D(() => Fe.value[0]), Be = U({});
|
|
16291
|
+
function Ve() {
|
|
16292
|
+
let e = je.value;
|
|
16293
|
+
if (e && _.value.two) {
|
|
16267
16294
|
let t = e.querySelector("thead > tr")?.getBoundingClientRect().height ?? 0;
|
|
16268
|
-
|
|
16295
|
+
_t.value?.style.setProperty("--ar-table-head-top", `${Math.round(t * 100) / 100}px`);
|
|
16269
16296
|
}
|
|
16270
|
-
if (!e || !
|
|
16297
|
+
if (!e || !Ie.value && !Le.value) return;
|
|
16271
16298
|
let t = (t) => e.querySelector(`thead th[data-sticky-key="${t}"]`)?.getBoundingClientRect().width ?? 0, r = {}, i = 0;
|
|
16272
|
-
if (
|
|
16299
|
+
if (Ie.value) for (let e of [
|
|
16273
16300
|
...n.selectable ? ["__select"] : [],
|
|
16274
16301
|
...n.expandable ? ["__expand"] : [],
|
|
16275
|
-
...
|
|
16302
|
+
...Pe.value
|
|
16276
16303
|
]) r[e] = Math.round(i * 100) / 100, i += t(e);
|
|
16277
16304
|
let a = {}, o = 0;
|
|
16278
|
-
for (let e of [...
|
|
16305
|
+
for (let e of [...Fe.value].reverse()) a[e] = Math.round(o * 100) / 100, o += t(e);
|
|
16279
16306
|
let s = (e, t) => Object.keys(e).length === Object.keys(t).length && Object.entries(e).every(([e, n]) => t[e] === n);
|
|
16280
|
-
s(r,
|
|
16307
|
+
s(r, Me.value) || (Me.value = r), s(a, Be.value) || (Be.value = a);
|
|
16281
16308
|
}
|
|
16282
|
-
let
|
|
16283
|
-
function
|
|
16284
|
-
|
|
16285
|
-
let e =
|
|
16286
|
-
e && typeof ResizeObserver < "u" && (
|
|
16309
|
+
let He = null;
|
|
16310
|
+
function Ue() {
|
|
16311
|
+
He?.disconnect();
|
|
16312
|
+
let e = je.value;
|
|
16313
|
+
e && typeof ResizeObserver < "u" && (He = new ResizeObserver(() => Ve()), He.observe(e), e.querySelectorAll("thead th").forEach((e) => He.observe(e)));
|
|
16287
16314
|
}
|
|
16288
16315
|
ce(() => {
|
|
16289
|
-
|
|
16290
|
-
}), se(() =>
|
|
16291
|
-
|
|
16316
|
+
Ve(), Ue();
|
|
16317
|
+
}), se(() => He?.disconnect()), Y(() => [
|
|
16318
|
+
g.value,
|
|
16292
16319
|
n.selectable,
|
|
16293
16320
|
n.expandable,
|
|
16294
16321
|
!!i.actions
|
|
16295
|
-
], () => B(() => (
|
|
16296
|
-
let
|
|
16297
|
-
let e = /* @__PURE__ */ new Map(), t =
|
|
16322
|
+
], () => B(() => (Ve(), Ue())));
|
|
16323
|
+
let We = (e) => Ie.value ? { left: `${Me.value[e] ?? 0}px` } : void 0, Ge = (e) => Pe.value.includes(e.key), Ke = (e) => Fe.value.includes(e.key), qe = (e) => Ge(e) ? "start" : Ke(e) ? "end" : void 0, Je = (e) => e.key === Re.value ? "start" : e.key === ze.value ? "end" : void 0, Ye = (e) => Ge(e) ? We(e.key) : Ke(e) ? { right: `${Be.value[e.key] ?? 0}px` } : void 0, Xe = D(() => {
|
|
16324
|
+
let e = /* @__PURE__ */ new Map(), t = g.value;
|
|
16298
16325
|
return t.some((e) => e.colSpan) && n.rows.forEach((n, r) => {
|
|
16299
16326
|
let i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set();
|
|
16300
16327
|
for (let e = 0; e < t.length; e++) {
|
|
@@ -16311,47 +16338,47 @@ var Fh = {
|
|
|
16311
16338
|
hidden: a
|
|
16312
16339
|
});
|
|
16313
16340
|
}), e;
|
|
16314
|
-
}),
|
|
16315
|
-
let n =
|
|
16316
|
-
return
|
|
16317
|
-
},
|
|
16318
|
-
if (
|
|
16319
|
-
let n =
|
|
16320
|
-
if (n.every(
|
|
16321
|
-
if (n.every(
|
|
16322
|
-
},
|
|
16323
|
-
let n =
|
|
16324
|
-
if (n === "start") return
|
|
16341
|
+
}), Ze = (e, t) => Xe.value.get(e)?.span.get(t.key) ?? 1, Qe = (e, t) => !!Xe.value.get(e)?.hidden.has(t.key), $e = (e, t) => {
|
|
16342
|
+
let n = g.value.indexOf(t);
|
|
16343
|
+
return g.value.slice(n, n + Ze(e, t));
|
|
16344
|
+
}, et = (e, t) => {
|
|
16345
|
+
if (Ze(e, t) < 2) return qe(t);
|
|
16346
|
+
let n = $e(e, t);
|
|
16347
|
+
if (n.every(Ge)) return "start";
|
|
16348
|
+
if (n.every(Ke)) return "end";
|
|
16349
|
+
}, tt = (e, t) => {
|
|
16350
|
+
let n = et(e, t);
|
|
16351
|
+
if (n === "start") return We(t.key);
|
|
16325
16352
|
if (n === "end") {
|
|
16326
|
-
let n =
|
|
16327
|
-
return { right: `${
|
|
16353
|
+
let n = $e(e, t).at(-1);
|
|
16354
|
+
return { right: `${Be.value[n.key] ?? 0}px` };
|
|
16328
16355
|
}
|
|
16329
|
-
},
|
|
16330
|
-
let n =
|
|
16356
|
+
}, nt = (e, t) => {
|
|
16357
|
+
let n = et(e, t);
|
|
16331
16358
|
if (!n) return;
|
|
16332
|
-
let r =
|
|
16333
|
-
return n === "start" ? r.some((e) => e.key ===
|
|
16334
|
-
},
|
|
16335
|
-
let n =
|
|
16336
|
-
return t ===
|
|
16337
|
-
},
|
|
16338
|
-
let e =
|
|
16339
|
-
return e === 0 ? "none" : e ===
|
|
16340
|
-
}),
|
|
16341
|
-
Y(
|
|
16342
|
-
function
|
|
16343
|
-
r("update:selected",
|
|
16344
|
-
}
|
|
16345
|
-
function ct(e) {
|
|
16346
|
-
let t = we(e);
|
|
16347
|
-
r("update:selected", rt.value.has(t) ? n.selected.filter((e) => e !== t) : [...n.selected, t]);
|
|
16348
|
-
}
|
|
16349
|
-
let lt = (e) => n.expanded.includes(we(e));
|
|
16359
|
+
let r = $e(e, t);
|
|
16360
|
+
return n === "start" ? r.some((e) => e.key === Re.value) ? "start" : void 0 : t.key === ze.value ? "end" : void 0;
|
|
16361
|
+
}, rt = (e, t) => {
|
|
16362
|
+
let n = $e(e, t);
|
|
16363
|
+
return t === g.value[0] ? "first" : n.at(-1) === g.value[g.value.length - 1] ? "last" : void 0;
|
|
16364
|
+
}, it = (e) => !!n.fullRow?.(e), at = D(() => new Set(n.selected)), ot = D(() => n.rows.filter((e) => !it(e)).map(Ee)), st = D(() => {
|
|
16365
|
+
let e = ot.value.filter((e) => at.value.has(e)).length;
|
|
16366
|
+
return e === 0 ? "none" : e === ot.value.length ? "all" : "some";
|
|
16367
|
+
}), ct = U(null);
|
|
16368
|
+
Y(st, (e) => ct.value && (ct.value.indeterminate = e === "some"), { flush: "post" }), ce(() => ct.value && (ct.value.indeterminate = st.value === "some"));
|
|
16369
|
+
function lt() {
|
|
16370
|
+
r("update:selected", st.value === "all" ? [] : [...ot.value]);
|
|
16371
|
+
}
|
|
16350
16372
|
function ut(e) {
|
|
16351
|
-
let t =
|
|
16352
|
-
r("update:
|
|
16373
|
+
let t = Ee(e);
|
|
16374
|
+
r("update:selected", at.value.has(t) ? n.selected.filter((e) => e !== t) : [...n.selected, t]);
|
|
16375
|
+
}
|
|
16376
|
+
let dt = (e) => n.expanded.includes(Ee(e));
|
|
16377
|
+
function ft(e) {
|
|
16378
|
+
let t = Ee(e);
|
|
16379
|
+
r("update:expanded", dt(e) ? n.expanded.filter((e) => e !== t) : [...n.expanded, t]);
|
|
16353
16380
|
}
|
|
16354
|
-
function
|
|
16381
|
+
function pt(e) {
|
|
16355
16382
|
let t = n.sort?.key === e.key ? n.sort.order : null;
|
|
16356
16383
|
r("update:sort", t === null ? {
|
|
16357
16384
|
key: e.key,
|
|
@@ -16361,60 +16388,60 @@ var Fh = {
|
|
|
16361
16388
|
order: "desc"
|
|
16362
16389
|
} : null);
|
|
16363
16390
|
}
|
|
16364
|
-
let
|
|
16365
|
-
function
|
|
16391
|
+
let mt = (e) => n.sort?.key === e.key ? n.sort.order : void 0;
|
|
16392
|
+
function ht(e) {
|
|
16366
16393
|
if (!e.sortable) return;
|
|
16367
|
-
let t =
|
|
16394
|
+
let t = mt(e);
|
|
16368
16395
|
return t === "asc" ? "ascending" : t === "desc" ? "descending" : "none";
|
|
16369
16396
|
}
|
|
16370
|
-
let
|
|
16371
|
-
|
|
16372
|
-
|
|
16397
|
+
let gt = (e) => [
|
|
16398
|
+
at.value.has(Ee(e)) && "selected",
|
|
16399
|
+
dt(e) && "expanded",
|
|
16373
16400
|
n.rowOff?.(e) && "off",
|
|
16374
|
-
|
|
16375
|
-
|
|
16376
|
-
].filter(Boolean).join(" ") || void 0,
|
|
16377
|
-
function
|
|
16401
|
+
yt.value === Ee(e) && "dragging",
|
|
16402
|
+
R.value && xe.value === Ee(e) && oe(e) > 1 && "hover"
|
|
16403
|
+
].filter(Boolean).join(" ") || void 0, _t = U(null), vt = U(null), yt = U(null), bt = U(null), xt = U("");
|
|
16404
|
+
function St(e, t, i = !1) {
|
|
16378
16405
|
if (e === t || e < 0 || t < 0 || e >= n.rows.length || t >= n.rows.length) return;
|
|
16379
16406
|
let a = [...n.rows], [o] = a.splice(e, 1);
|
|
16380
16407
|
a.splice(t, 0, o);
|
|
16381
|
-
let s =
|
|
16408
|
+
let s = Ee(o);
|
|
16382
16409
|
r("update:rows", a), r("reorder", {
|
|
16383
16410
|
key: s,
|
|
16384
16411
|
from: e,
|
|
16385
16412
|
to: t
|
|
16386
|
-
}),
|
|
16413
|
+
}), xt.value = Te.value.moved.replace("{n}", String(t + 1)), i && B(() => Array.from(_t.value?.querySelectorAll("[data-part=\"drag-handle\"]") ?? []).find((e) => e.dataset.key === String(s))?.focus());
|
|
16387
16414
|
}
|
|
16388
|
-
function
|
|
16389
|
-
!e.altKey || e.key !== "ArrowUp" && e.key !== "ArrowDown" || (e.preventDefault(),
|
|
16415
|
+
function Ct(e, t) {
|
|
16416
|
+
!e.altKey || e.key !== "ArrowUp" && e.key !== "ArrowDown" || (e.preventDefault(), St(t, t + (e.key === "ArrowUp" ? -1 : 1), !0));
|
|
16390
16417
|
}
|
|
16391
|
-
function
|
|
16392
|
-
if (
|
|
16393
|
-
|
|
16418
|
+
function wt(e, t) {
|
|
16419
|
+
if (w.value || !n.sortableRows || vt.value !== Ee(t)) return e.preventDefault();
|
|
16420
|
+
yt.value = Ee(t), e.dataTransfer?.setData("text/plain", String(Ee(t))), e.dataTransfer && (e.dataTransfer.effectAllowed = "move");
|
|
16394
16421
|
}
|
|
16395
|
-
function
|
|
16396
|
-
if (
|
|
16422
|
+
function Tt(e, t) {
|
|
16423
|
+
if (yt.value === null) return;
|
|
16397
16424
|
e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "move");
|
|
16398
16425
|
let n = e.currentTarget.getBoundingClientRect(), r = n.height ? (e.clientY - n.top) / n.height : 1;
|
|
16399
|
-
|
|
16400
|
-
key:
|
|
16426
|
+
bt.value = {
|
|
16427
|
+
key: Ee(t),
|
|
16401
16428
|
position: r < .5 ? "before" : "after"
|
|
16402
16429
|
};
|
|
16403
16430
|
}
|
|
16404
|
-
function
|
|
16431
|
+
function Et(e) {
|
|
16405
16432
|
e.preventDefault();
|
|
16406
|
-
let t =
|
|
16407
|
-
if (
|
|
16408
|
-
let r =
|
|
16409
|
-
i > r && --i,
|
|
16433
|
+
let t = yt.value, n = bt.value;
|
|
16434
|
+
if (Dt(), t === null || !n) return;
|
|
16435
|
+
let r = ot.value.indexOf(t), i = ot.value.indexOf(n.key) + +(n.position === "after");
|
|
16436
|
+
i > r && --i, St(r, i);
|
|
16410
16437
|
}
|
|
16411
|
-
function
|
|
16412
|
-
|
|
16438
|
+
function Dt() {
|
|
16439
|
+
yt.value = null, bt.value = null, vt.value = null;
|
|
16413
16440
|
}
|
|
16414
|
-
let
|
|
16441
|
+
let Ot = D(() => g.value.length + +!!n.selectable + +!!n.expandable + +!!Ae.value + +!!Ce.value);
|
|
16415
16442
|
return (t, n) => (H(), A("div", {
|
|
16416
16443
|
ref_key: "rootEl",
|
|
16417
|
-
ref:
|
|
16444
|
+
ref: _t,
|
|
16418
16445
|
"data-ar": "table",
|
|
16419
16446
|
"data-part": "root",
|
|
16420
16447
|
"data-variant": e.variant,
|
|
@@ -16431,19 +16458,19 @@ var Fh = {
|
|
|
16431
16458
|
tabindex: "0"
|
|
16432
16459
|
}, [j("table", {
|
|
16433
16460
|
ref_key: "tableEl",
|
|
16434
|
-
ref:
|
|
16461
|
+
ref: je,
|
|
16435
16462
|
"data-part": "table"
|
|
16436
16463
|
}, [
|
|
16437
16464
|
j("caption", bg, q(e.caption), 1),
|
|
16438
16465
|
j("colgroup", null, [
|
|
16439
|
-
|
|
16466
|
+
Ce.value ? (H(), A("col", xg)) : k("", !0),
|
|
16440
16467
|
e.selectable ? (H(), A("col", Sg)) : k("", !0),
|
|
16441
16468
|
e.expandable ? (H(), A("col", Cg)) : k("", !0),
|
|
16442
|
-
(H(!0), A(x, null, W(
|
|
16469
|
+
(H(!0), A(x, null, W(g.value, (e) => (H(), A("col", {
|
|
16443
16470
|
key: e.key,
|
|
16444
16471
|
style: V(e.width ? { width: `${e.width}px` } : void 0)
|
|
16445
16472
|
}, null, 4))), 128)),
|
|
16446
|
-
|
|
16473
|
+
Ae.value ? (H(), A("col", {
|
|
16447
16474
|
key: 3,
|
|
16448
16475
|
"data-col": "actions",
|
|
16449
16476
|
style: V(e.fit ? { width: `${e.actionsWidth ?? 96}px` } : void 0)
|
|
@@ -16451,41 +16478,41 @@ var Fh = {
|
|
|
16451
16478
|
]),
|
|
16452
16479
|
j("thead", {
|
|
16453
16480
|
"data-part": "head",
|
|
16454
|
-
"data-tiers":
|
|
16481
|
+
"data-tiers": _.value.two ? 2 : void 0
|
|
16455
16482
|
}, [j("tr", null, [
|
|
16456
|
-
|
|
16483
|
+
Ce.value ? (H(), A("th", {
|
|
16457
16484
|
key: 0,
|
|
16458
16485
|
"data-part": "header-cell",
|
|
16459
16486
|
"data-col": "drag",
|
|
16460
16487
|
scope: "col",
|
|
16461
|
-
rowspan:
|
|
16462
|
-
}, [j("span", Eg, q(
|
|
16488
|
+
rowspan: v.value
|
|
16489
|
+
}, [j("span", Eg, q(Te.value.dragHandle), 1)], 8, Tg)) : k("", !0),
|
|
16463
16490
|
e.selectable ? (H(), A("th", {
|
|
16464
16491
|
key: 1,
|
|
16465
16492
|
"data-part": "header-cell",
|
|
16466
16493
|
"data-col": "select",
|
|
16467
|
-
"data-sticky":
|
|
16468
|
-
"data-sticky-key":
|
|
16469
|
-
style: V(
|
|
16494
|
+
"data-sticky": Ie.value ? "start" : void 0,
|
|
16495
|
+
"data-sticky-key": Ie.value ? "__select" : void 0,
|
|
16496
|
+
style: V(We("__select")),
|
|
16470
16497
|
scope: "col",
|
|
16471
|
-
rowspan:
|
|
16472
|
-
}, [J(
|
|
16498
|
+
rowspan: v.value
|
|
16499
|
+
}, [J(X) === "label" ? (H(), A("span", Og, q(Te.value.selectAllText ?? "全選択"), 1)) : k("", !0), j("span", {
|
|
16473
16500
|
"data-part": "check",
|
|
16474
|
-
"data-state":
|
|
16501
|
+
"data-state": st.value === "all" ? "checked" : st.value === "some" ? "indeterminate" : void 0
|
|
16475
16502
|
}, [j("input", {
|
|
16476
16503
|
ref_key: "headCheck",
|
|
16477
|
-
ref:
|
|
16504
|
+
ref: ct,
|
|
16478
16505
|
"data-part": "select",
|
|
16479
16506
|
type: "checkbox",
|
|
16480
|
-
checked:
|
|
16507
|
+
checked: st.value === "all",
|
|
16481
16508
|
disabled: !e.rows.length,
|
|
16482
|
-
"aria-label":
|
|
16483
|
-
onChange:
|
|
16509
|
+
"aria-label": Te.value.selectAll,
|
|
16510
|
+
onChange: lt
|
|
16484
16511
|
}, null, 40, Ag), F(fa, {
|
|
16485
16512
|
decorative: "",
|
|
16486
16513
|
"data-part": "check-box",
|
|
16487
|
-
"model-value":
|
|
16488
|
-
indeterminate:
|
|
16514
|
+
"model-value": st.value === "all",
|
|
16515
|
+
indeterminate: st.value === "some",
|
|
16489
16516
|
disabled: !e.rows.length
|
|
16490
16517
|
}, null, 8, [
|
|
16491
16518
|
"model-value",
|
|
@@ -16496,13 +16523,13 @@ var Fh = {
|
|
|
16496
16523
|
key: 2,
|
|
16497
16524
|
"data-part": "header-cell",
|
|
16498
16525
|
"data-col": "expand",
|
|
16499
|
-
"data-sticky":
|
|
16500
|
-
"data-sticky-key":
|
|
16501
|
-
style: V(
|
|
16526
|
+
"data-sticky": Ie.value ? "start" : void 0,
|
|
16527
|
+
"data-sticky-key": Ie.value ? "__expand" : void 0,
|
|
16528
|
+
style: V(We("__expand")),
|
|
16502
16529
|
scope: "col",
|
|
16503
|
-
rowspan:
|
|
16530
|
+
rowspan: v.value
|
|
16504
16531
|
}, null, 12, jg)) : k("", !0),
|
|
16505
|
-
(H(!0), A(x, null, W(
|
|
16532
|
+
(H(!0), A(x, null, W(_.value.top, (r) => (H(), A(x, { key: r.key }, [r.kind === "group" ? (H(), A("th", {
|
|
16506
16533
|
key: 0,
|
|
16507
16534
|
"data-part": "header-cell",
|
|
16508
16535
|
"data-group-cell": "",
|
|
@@ -16515,9 +16542,9 @@ var Fh = {
|
|
|
16515
16542
|
type: "button",
|
|
16516
16543
|
"data-part": "group-toggle",
|
|
16517
16544
|
"aria-expanded": "true",
|
|
16518
|
-
onClick: (e) =>
|
|
16545
|
+
onClick: (e) => b(r.group.key)
|
|
16519
16546
|
}, [
|
|
16520
|
-
J(
|
|
16547
|
+
J(we) === "menu" ? (H(), O($, {
|
|
16521
16548
|
key: 0,
|
|
16522
16549
|
name: "menu",
|
|
16523
16550
|
size: "sm"
|
|
@@ -16534,13 +16561,13 @@ var Fh = {
|
|
|
16534
16561
|
"data-part": "header-cell",
|
|
16535
16562
|
scope: "col",
|
|
16536
16563
|
rowspan: r.rowspan > 1 ? r.rowspan : void 0,
|
|
16537
|
-
"data-align":
|
|
16564
|
+
"data-align": Oe(r.col),
|
|
16538
16565
|
"data-wrap": r.col.wrap || void 0,
|
|
16539
|
-
"data-sticky":
|
|
16540
|
-
"data-sticky-key":
|
|
16541
|
-
"data-sticky-edge":
|
|
16542
|
-
style: V([
|
|
16543
|
-
"aria-sort":
|
|
16566
|
+
"data-sticky": qe(r.col),
|
|
16567
|
+
"data-sticky-key": qe(r.col) ? r.col.key : void 0,
|
|
16568
|
+
"data-sticky-edge": Je(r.col),
|
|
16569
|
+
style: V([Ye(r.col), !e.fit && r.col.width ? { minWidth: `${r.col.width}px` } : void 0]),
|
|
16570
|
+
"aria-sort": ht(r.col),
|
|
16544
16571
|
"data-person": r.col.avatar ? r.col.sub ? "with-sub" : "single" : void 0,
|
|
16545
16572
|
"data-total": r.col.total || void 0,
|
|
16546
16573
|
"data-collapsed": r.collapsed ? !0 : void 0
|
|
@@ -16549,9 +16576,9 @@ var Fh = {
|
|
|
16549
16576
|
type: "button",
|
|
16550
16577
|
"data-part": "group-toggle",
|
|
16551
16578
|
"aria-expanded": "false",
|
|
16552
|
-
onClick: (e) =>
|
|
16579
|
+
onClick: (e) => b(r.collapsed.key)
|
|
16553
16580
|
}, [
|
|
16554
|
-
J(
|
|
16581
|
+
J(we) === "menu" ? (H(), O($, {
|
|
16555
16582
|
key: 0,
|
|
16556
16583
|
name: "menu",
|
|
16557
16584
|
size: "sm"
|
|
@@ -16568,105 +16595,107 @@ var Fh = {
|
|
|
16568
16595
|
type: "button",
|
|
16569
16596
|
"data-part": "group-toggle",
|
|
16570
16597
|
"data-toggle": "column",
|
|
16571
|
-
"aria-expanded":
|
|
16572
|
-
onClick: (e) =>
|
|
16573
|
-
}, [J(
|
|
16598
|
+
"aria-expanded": S(r.col),
|
|
16599
|
+
onClick: (e) => b(r.col.toggles)
|
|
16600
|
+
}, [J(we) === "menu" ? (H(), O($, {
|
|
16574
16601
|
key: 0,
|
|
16575
16602
|
name: "menu",
|
|
16576
16603
|
size: "sm"
|
|
16577
16604
|
})) : (H(), O($, {
|
|
16578
16605
|
key: 1,
|
|
16579
16606
|
line: "",
|
|
16580
|
-
name:
|
|
16607
|
+
name: S(r.col) ? "minus" : "plus",
|
|
16581
16608
|
size: "sm"
|
|
16582
16609
|
}, null, 8, ["name"])), P(q(r.col.title), 1)], 8, Rg)) : r.col.sortable ? (H(), A("button", {
|
|
16583
16610
|
key: 2,
|
|
16584
16611
|
type: "button",
|
|
16585
16612
|
"data-part": "sort",
|
|
16586
|
-
"data-order":
|
|
16587
|
-
onClick: (e) =>
|
|
16613
|
+
"data-order": mt(r.col),
|
|
16614
|
+
onClick: (e) => pt(r.col)
|
|
16588
16615
|
}, [j("span", null, q(r.col.title), 1), n[9] ||= N("<svg data-part=\"sort-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path data-dir=\"asc\" data-shape=\"chevron\" d=\"m8 9 4-4 4 4\"></path><path data-dir=\"desc\" data-shape=\"chevron\" d=\"m8 15 4 4 4-4\"></path><path data-dir=\"asc\" data-shape=\"caret\" d=\"M12 2.5 20 11H4Z\"></path><path data-dir=\"desc\" data-shape=\"caret\" d=\"M12 21.5 4 13h16Z\"></path></svg>", 1)], 8, zg)) : (H(), A(x, { key: 3 }, [P(q(r.col.title), 1)], 64))])], 12, Fg))], 64))), 128)),
|
|
16589
|
-
|
|
16616
|
+
Ae.value ? (H(), A("th", {
|
|
16590
16617
|
key: 3,
|
|
16591
16618
|
"data-part": "header-cell",
|
|
16592
16619
|
"data-col": "actions",
|
|
16593
16620
|
"data-align": "end",
|
|
16594
16621
|
scope: "col",
|
|
16595
|
-
rowspan:
|
|
16596
|
-
}, [j("span", Vg, q(
|
|
16597
|
-
]),
|
|
16622
|
+
rowspan: v.value
|
|
16623
|
+
}, [j("span", Vg, q(Te.value.actions), 1)], 8, Bg)) : k("", !0)
|
|
16624
|
+
]), _.value.two ? (H(), A("tr", Hg, [(H(!0), A(x, null, W(_.value.bottom, (e) => (H(), A(x, { key: e.key }, [e.kind === "col" ? (H(), A("th", {
|
|
16598
16625
|
key: 0,
|
|
16599
16626
|
"data-part": "header-cell",
|
|
16600
16627
|
scope: "col",
|
|
16601
|
-
"data-align":
|
|
16628
|
+
"data-align": Oe(e.col),
|
|
16602
16629
|
"data-wrap": e.col.wrap || void 0,
|
|
16603
16630
|
"data-total": e.col.total || void 0,
|
|
16604
|
-
"data-group-start":
|
|
16605
|
-
"aria-sort":
|
|
16631
|
+
"data-group-start": y(e.col) || void 0,
|
|
16632
|
+
"aria-sort": ht(e.col)
|
|
16606
16633
|
}, [G(t.$slots, `head-${e.col.key}`, { column: e.col }, () => [e.col.sortable ? (H(), A("button", {
|
|
16607
16634
|
key: 0,
|
|
16608
16635
|
type: "button",
|
|
16609
16636
|
"data-part": "sort",
|
|
16610
|
-
"data-order":
|
|
16611
|
-
onClick: (t) =>
|
|
16637
|
+
"data-order": mt(e.col),
|
|
16638
|
+
onClick: (t) => pt(e.col)
|
|
16612
16639
|
}, [j("span", null, q(e.col.title), 1), n[10] ||= N("<svg data-part=\"sort-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path data-dir=\"asc\" data-shape=\"chevron\" d=\"m8 9 4-4 4 4\"></path><path data-dir=\"desc\" data-shape=\"chevron\" d=\"m8 15 4 4 4-4\"></path><path data-dir=\"asc\" data-shape=\"caret\" d=\"M12 2.5 20 11H4Z\"></path><path data-dir=\"desc\" data-shape=\"caret\" d=\"M12 21.5 4 13h16Z\"></path></svg>", 1)], 8, Wg)) : (H(), A(x, { key: 1 }, [P(q(e.col.title), 1)], 64))])], 8, Ug)) : k("", !0)], 64))), 128))])) : k("", !0)], 8, wg),
|
|
16613
|
-
t.$slots["before-rows"] ? (H(), A("tbody", Gg, [j("tr", null, [j("td", { colspan:
|
|
16640
|
+
t.$slots["before-rows"] ? (H(), A("tbody", Gg, [j("tr", null, [j("td", { colspan: Ot.value }, [G(t.$slots, "before-rows")], 8, Kg)])])) : k("", !0),
|
|
16614
16641
|
j("tbody", qg, [e.rows.length ? k("", !0) : (H(), A("tr", Jg, [j("td", {
|
|
16615
16642
|
"data-part": "empty",
|
|
16616
|
-
colspan:
|
|
16643
|
+
colspan: Ot.value
|
|
16617
16644
|
}, [G(t.$slots, "empty", {}, () => [F(ai, {
|
|
16618
16645
|
text: e.emptyText,
|
|
16619
16646
|
icon: e.emptyIcon
|
|
16620
|
-
}, null, 8, ["text", "icon"])])], 8, Yg)])), (H(!0), A(x, null, W(e.rows, (i,
|
|
16621
|
-
|
|
16647
|
+
}, null, 8, ["text", "icon"])])], 8, Yg)])), (H(!0), A(x, null, W(e.rows, (i, o) => (H(), A(x, { key: Ee(i) }, [
|
|
16648
|
+
it(i) ? (H(), A("tr", {
|
|
16622
16649
|
key: 0,
|
|
16623
16650
|
"data-part": "row",
|
|
16624
16651
|
"data-full": "",
|
|
16625
|
-
"data-state":
|
|
16626
|
-
|
|
16652
|
+
"data-state": gt(i),
|
|
16653
|
+
"data-clickable": a || void 0,
|
|
16654
|
+
onClick: (e) => r("row-click", i, o)
|
|
16627
16655
|
}, [j("td", {
|
|
16628
16656
|
"data-part": "cell",
|
|
16629
16657
|
"data-full": "",
|
|
16630
|
-
colspan:
|
|
16658
|
+
colspan: Ot.value
|
|
16631
16659
|
}, [G(t.$slots, "full-row", {
|
|
16632
16660
|
row: i,
|
|
16633
|
-
index:
|
|
16661
|
+
index: o
|
|
16634
16662
|
})], 8, Zg)], 8, Xg)) : k("", !0),
|
|
16635
|
-
(H(!0), A(x, null, W(
|
|
16636
|
-
key:
|
|
16663
|
+
(H(!0), A(x, null, W(it(i) ? 0 : R.value ? oe(i) : 1, (s) => (H(), A("tr", {
|
|
16664
|
+
key: s,
|
|
16637
16665
|
"data-part": "row",
|
|
16638
|
-
"data-state":
|
|
16639
|
-
"data-
|
|
16640
|
-
"data-line
|
|
16641
|
-
"data-
|
|
16642
|
-
|
|
16643
|
-
|
|
16644
|
-
|
|
16645
|
-
|
|
16646
|
-
|
|
16647
|
-
|
|
16648
|
-
|
|
16649
|
-
|
|
16650
|
-
|
|
16666
|
+
"data-state": gt(i),
|
|
16667
|
+
"data-clickable": a || void 0,
|
|
16668
|
+
"data-line": R.value ? s - 1 : void 0,
|
|
16669
|
+
"data-line-last": R.value && s === oe(i) ? "" : void 0,
|
|
16670
|
+
"data-drop": bt.value?.key === Ee(i) && yt.value !== Ee(i) && s === (bt.value.position === "before" ? 1 : R.value ? oe(i) : 1) ? bt.value.position : void 0,
|
|
16671
|
+
draggable: e.sortableRows && vt.value === Ee(i) ? "true" : void 0,
|
|
16672
|
+
onClick: (e) => r("row-click", i, o),
|
|
16673
|
+
onDragstart: (e) => wt(e, i),
|
|
16674
|
+
onDragover: (e) => Tt(e, i),
|
|
16675
|
+
onDrop: Et,
|
|
16676
|
+
onDragend: Dt,
|
|
16677
|
+
onKeydown: (e) => K(e, i),
|
|
16678
|
+
onMouseenter: (e) => R.value && (xe.value = Ee(i)),
|
|
16679
|
+
onMouseleave: (e) => R.value && xe.value === Ee(i) && (xe.value = null)
|
|
16651
16680
|
}, [
|
|
16652
|
-
|
|
16653
|
-
|
|
16681
|
+
s === 1 ? (H(), A(x, { key: 0 }, [
|
|
16682
|
+
Ce.value ? (H(), A("td", {
|
|
16654
16683
|
key: 0,
|
|
16655
16684
|
"data-part": "cell",
|
|
16656
16685
|
"data-col": "drag",
|
|
16657
|
-
rowspan:
|
|
16686
|
+
rowspan: R.value && oe(i) > 1 ? oe(i) : void 0,
|
|
16658
16687
|
onClick: n[2] ||= Z(() => {}, ["stop"])
|
|
16659
16688
|
}, [j("button", {
|
|
16660
16689
|
type: "button",
|
|
16661
16690
|
"data-part": "drag-handle",
|
|
16662
|
-
"data-key":
|
|
16663
|
-
"aria-label":
|
|
16664
|
-
disabled:
|
|
16691
|
+
"data-key": Ee(i),
|
|
16692
|
+
"aria-label": Te.value.dragHandle,
|
|
16693
|
+
disabled: w.value || void 0,
|
|
16665
16694
|
onClick: n[0] ||= Z(() => {}, ["stop"]),
|
|
16666
|
-
onKeydown: (e) =>
|
|
16667
|
-
onMousedown: (e) =>
|
|
16668
|
-
onMouseup: n[1] ||= (e) =>
|
|
16669
|
-
onTouchstartPassive: (e) =>
|
|
16695
|
+
onKeydown: (e) => Ct(e, o),
|
|
16696
|
+
onMousedown: (e) => vt.value = Ee(i),
|
|
16697
|
+
onMouseup: n[1] ||= (e) => yt.value === null && (vt.value = null),
|
|
16698
|
+
onTouchstartPassive: (e) => vt.value = Ee(i)
|
|
16670
16699
|
}, [F($, {
|
|
16671
16700
|
name: "grip",
|
|
16672
16701
|
size: "sm"
|
|
@@ -16675,154 +16704,154 @@ var Fh = {
|
|
|
16675
16704
|
key: 1,
|
|
16676
16705
|
"data-part": "cell",
|
|
16677
16706
|
"data-col": "select",
|
|
16678
|
-
rowspan:
|
|
16679
|
-
"data-sticky":
|
|
16680
|
-
style: V(
|
|
16707
|
+
rowspan: R.value && oe(i) > 1 ? oe(i) : void 0,
|
|
16708
|
+
"data-sticky": Ie.value ? "start" : void 0,
|
|
16709
|
+
style: V(We("__select")),
|
|
16681
16710
|
onClick: n[3] ||= Z(() => {}, ["stop"])
|
|
16682
16711
|
}, [j("span", {
|
|
16683
16712
|
"data-part": "check",
|
|
16684
|
-
"data-state":
|
|
16713
|
+
"data-state": at.value.has(Ee(i)) ? "checked" : void 0
|
|
16685
16714
|
}, [j("input", {
|
|
16686
16715
|
"data-part": "select",
|
|
16687
16716
|
type: "checkbox",
|
|
16688
|
-
checked:
|
|
16689
|
-
"aria-label":
|
|
16690
|
-
onChange: (e) =>
|
|
16717
|
+
checked: at.value.has(Ee(i)),
|
|
16718
|
+
"aria-label": Te.value.selectRow,
|
|
16719
|
+
onChange: (e) => ut(i)
|
|
16691
16720
|
}, null, 40, r_), F(fa, {
|
|
16692
16721
|
decorative: "",
|
|
16693
16722
|
"data-part": "check-box",
|
|
16694
|
-
"model-value":
|
|
16723
|
+
"model-value": at.value.has(Ee(i))
|
|
16695
16724
|
}, null, 8, ["model-value"])], 8, n_)], 12, t_)) : k("", !0),
|
|
16696
16725
|
e.expandable ? (H(), A("td", {
|
|
16697
16726
|
key: 2,
|
|
16698
16727
|
"data-part": "cell",
|
|
16699
16728
|
"data-col": "expand",
|
|
16700
|
-
rowspan:
|
|
16701
|
-
"data-sticky":
|
|
16702
|
-
style: V(
|
|
16729
|
+
rowspan: R.value && oe(i) > 1 ? oe(i) : void 0,
|
|
16730
|
+
"data-sticky": Ie.value ? "start" : void 0,
|
|
16731
|
+
style: V(We("__expand")),
|
|
16703
16732
|
onClick: n[4] ||= Z(() => {}, ["stop"])
|
|
16704
16733
|
}, [j("button", {
|
|
16705
16734
|
type: "button",
|
|
16706
16735
|
"data-part": "expand-toggle",
|
|
16707
|
-
"aria-expanded":
|
|
16708
|
-
"aria-label":
|
|
16709
|
-
onClick: (e) =>
|
|
16736
|
+
"aria-expanded": dt(i),
|
|
16737
|
+
"aria-label": dt(i) ? Te.value.collapse : Te.value.expand,
|
|
16738
|
+
onClick: (e) => ft(i)
|
|
16710
16739
|
}, [F($, {
|
|
16711
16740
|
line: "",
|
|
16712
16741
|
name: "cr",
|
|
16713
16742
|
size: "sm"
|
|
16714
16743
|
})], 8, a_)], 12, i_)) : k("", !0)
|
|
16715
16744
|
], 64)) : k("", !0),
|
|
16716
|
-
(H(!0), A(x, null, W(
|
|
16745
|
+
(H(!0), A(x, null, W(g.value, (r) => (H(), A(x, { key: r.key }, [(s === 1 || L(r)) && ve(i, r, o) > 0 && !Qe(i, r) ? (H(), A("td", {
|
|
16717
16746
|
key: 0,
|
|
16718
16747
|
"data-part": "cell",
|
|
16719
|
-
rowspan:
|
|
16720
|
-
colspan:
|
|
16721
|
-
"data-align":
|
|
16748
|
+
rowspan: be(i, r, o) > 1 ? be(i, r, o) : void 0,
|
|
16749
|
+
colspan: Ze(i, r) > 1 ? Ze(i, r) : void 0,
|
|
16750
|
+
"data-align": Oe(r),
|
|
16722
16751
|
"data-numeric": r.numeric || void 0,
|
|
16723
16752
|
"data-emphasis": r.emphasis,
|
|
16724
16753
|
"data-wrap": r.wrap || void 0,
|
|
16725
|
-
"data-blank": !
|
|
16726
|
-
"data-sticky":
|
|
16727
|
-
"data-sticky-edge":
|
|
16754
|
+
"data-blank": !E(i, r) && De(le(i, r, ue(r, s - 1))) && (!L(r) || s === 1) || void 0,
|
|
16755
|
+
"data-sticky": et(i, r),
|
|
16756
|
+
"data-sticky-edge": nt(i, r),
|
|
16728
16757
|
"data-total": r.total || void 0,
|
|
16729
|
-
"data-group-start":
|
|
16730
|
-
"data-editing":
|
|
16731
|
-
"data-line-cell":
|
|
16732
|
-
"data-edge":
|
|
16733
|
-
style: V(
|
|
16734
|
-
}, [e.sortableRows && !
|
|
16758
|
+
"data-group-start": y(r) || void 0,
|
|
16759
|
+
"data-editing": E(i, r) || void 0,
|
|
16760
|
+
"data-line-cell": R.value && L(r) || void 0,
|
|
16761
|
+
"data-edge": rt(i, r),
|
|
16762
|
+
style: V(tt(i, r))
|
|
16763
|
+
}, [e.sortableRows && !Ce.value && r === g.value[0] && s === 1 ? (H(), A("button", {
|
|
16735
16764
|
key: 0,
|
|
16736
16765
|
type: "button",
|
|
16737
16766
|
"data-part": "drag-handle",
|
|
16738
|
-
"data-key":
|
|
16739
|
-
"aria-label":
|
|
16740
|
-
disabled:
|
|
16767
|
+
"data-key": Ee(i),
|
|
16768
|
+
"aria-label": Te.value.dragHandle,
|
|
16769
|
+
disabled: w.value || void 0,
|
|
16741
16770
|
onClick: n[5] ||= Z(() => {}, ["stop"]),
|
|
16742
|
-
onKeydown: (e) =>
|
|
16743
|
-
onMousedown: (e) =>
|
|
16744
|
-
onMouseup: n[6] ||= (e) =>
|
|
16745
|
-
onTouchstartPassive: (e) =>
|
|
16771
|
+
onKeydown: (e) => Ct(e, o),
|
|
16772
|
+
onMousedown: (e) => vt.value = Ee(i),
|
|
16773
|
+
onMouseup: n[6] ||= (e) => yt.value === null && (vt.value = null),
|
|
16774
|
+
onTouchstartPassive: (e) => vt.value = Ee(i)
|
|
16746
16775
|
}, [F($, {
|
|
16747
16776
|
name: "grip",
|
|
16748
16777
|
size: "sm"
|
|
16749
16778
|
})], 40, s_)) : k("", !0), G(t.$slots, `cell-${r.key}`, {
|
|
16750
16779
|
row: i,
|
|
16751
|
-
value:
|
|
16752
|
-
index:
|
|
16753
|
-
line:
|
|
16754
|
-
Default:
|
|
16755
|
-
}, () => [F(Jh, z({ ref_for: !0 },
|
|
16756
|
-
|
|
16780
|
+
value: le(i, r, ue(r, s - 1)),
|
|
16781
|
+
index: o,
|
|
16782
|
+
line: ue(r, s - 1),
|
|
16783
|
+
Default: _e(i, r, ue(r, s - 1))
|
|
16784
|
+
}, () => [F(Jh, z({ ref_for: !0 }, he(i, r, o, ue(r, s - 1))), null, 16)])], 12, o_)) : k("", !0)], 64))), 128)),
|
|
16785
|
+
Ae.value && s === 1 ? (H(), A("td", {
|
|
16757
16786
|
key: 1,
|
|
16758
16787
|
"data-part": "cell",
|
|
16759
16788
|
"data-col": "actions",
|
|
16760
16789
|
"data-align": "end",
|
|
16761
|
-
rowspan:
|
|
16790
|
+
rowspan: R.value && oe(i) > 1 ? oe(i) : void 0,
|
|
16762
16791
|
onClick: n[7] ||= Z(() => {}, ["stop"])
|
|
16763
|
-
}, [
|
|
16792
|
+
}, [T(i) ? (H(), A("span", l_, [G(t.$slots, "edit-actions", {
|
|
16764
16793
|
row: i,
|
|
16765
|
-
commit: () =>
|
|
16766
|
-
cancel: () =>
|
|
16794
|
+
commit: () => fe(i),
|
|
16795
|
+
cancel: () => pe(i)
|
|
16767
16796
|
}, () => [F(Nt, {
|
|
16768
16797
|
tone: "muted",
|
|
16769
16798
|
size: "sm",
|
|
16770
16799
|
icon: "x",
|
|
16771
|
-
label:
|
|
16772
|
-
onClick: (e) =>
|
|
16800
|
+
label: Te.value.cancel,
|
|
16801
|
+
onClick: (e) => pe(i)
|
|
16773
16802
|
}, null, 8, ["label", "onClick"]), F(Nt, {
|
|
16774
16803
|
tone: "primary",
|
|
16775
16804
|
size: "sm",
|
|
16776
16805
|
icon: "check",
|
|
16777
|
-
label:
|
|
16778
|
-
onClick: (e) =>
|
|
16806
|
+
label: Te.value.commit,
|
|
16807
|
+
onClick: (e) => fe(i)
|
|
16779
16808
|
}, null, 8, ["label", "onClick"])])])) : (H(), A("span", u_, [G(t.$slots, "actions", {
|
|
16780
16809
|
row: i,
|
|
16781
|
-
index:
|
|
16810
|
+
index: o
|
|
16782
16811
|
})]))], 8, c_)) : k("", !0)
|
|
16783
16812
|
], 40, Qg))), 128)),
|
|
16784
|
-
e.expandable &&
|
|
16785
|
-
|
|
16813
|
+
e.expandable && dt(i) ? (H(), A("tr", d_, [
|
|
16814
|
+
Ce.value ? (H(), A("td", f_)) : k("", !0),
|
|
16786
16815
|
e.selectable ? (H(), A("td", p_)) : k("", !0),
|
|
16787
|
-
j("td", { colspan:
|
|
16816
|
+
j("td", { colspan: Ot.value - +!!e.selectable - !!Ce.value }, [G(t.$slots, "expanded", { row: i })], 8, m_)
|
|
16788
16817
|
])) : k("", !0)
|
|
16789
16818
|
], 64))), 128))]),
|
|
16790
16819
|
e.footer ? (H(), A("tfoot", h_, [j("tr", null, [
|
|
16791
|
-
|
|
16820
|
+
Ce.value ? (H(), A("td", g_)) : k("", !0),
|
|
16792
16821
|
e.selectable ? (H(), A("td", {
|
|
16793
16822
|
key: 1,
|
|
16794
16823
|
"data-part": "cell",
|
|
16795
16824
|
"data-col": "select",
|
|
16796
|
-
"data-sticky":
|
|
16797
|
-
style: V(
|
|
16825
|
+
"data-sticky": Ie.value ? "start" : void 0,
|
|
16826
|
+
style: V(We("__select"))
|
|
16798
16827
|
}, null, 12, __)) : k("", !0),
|
|
16799
16828
|
e.expandable ? (H(), A("td", {
|
|
16800
16829
|
key: 2,
|
|
16801
16830
|
"data-part": "cell",
|
|
16802
16831
|
"data-col": "expand",
|
|
16803
|
-
"data-sticky":
|
|
16804
|
-
style: V(
|
|
16832
|
+
"data-sticky": Ie.value ? "start" : void 0,
|
|
16833
|
+
style: V(We("__expand"))
|
|
16805
16834
|
}, null, 12, v_)) : k("", !0),
|
|
16806
|
-
(H(!0), A(x, null, W(
|
|
16835
|
+
(H(!0), A(x, null, W(ke.value, (e) => (H(), A("td", {
|
|
16807
16836
|
key: e.col.key,
|
|
16808
16837
|
"data-part": "cell",
|
|
16809
16838
|
colspan: e.span > 1 ? e.span : void 0,
|
|
16810
|
-
"data-align":
|
|
16839
|
+
"data-align": Oe(e.col),
|
|
16811
16840
|
"data-numeric": e.col.numeric || void 0,
|
|
16812
|
-
"data-sticky":
|
|
16813
|
-
"data-sticky-edge":
|
|
16841
|
+
"data-sticky": qe(e.col),
|
|
16842
|
+
"data-sticky-edge": Je(e.col),
|
|
16814
16843
|
"data-total": e.col.total || void 0,
|
|
16815
|
-
"data-group-start":
|
|
16816
|
-
style: V(
|
|
16844
|
+
"data-group-start": y(e.col) || void 0,
|
|
16845
|
+
style: V(Ye(e.col))
|
|
16817
16846
|
}, [G(t.$slots, `foot-${e.col.key}`, { value: e.raw }, () => [e.label === void 0 ? (H(), A(x, { key: 1 }, [P(q(e.value), 1)], 64)) : (H(), A(x, { key: 0 }, [j("small", b_, q(e.label), 1), j("b", x_, q(e.value), 1)], 64))])], 12, y_))), 128)),
|
|
16818
|
-
|
|
16847
|
+
Ae.value ? (H(), A("td", S_)) : k("", !0)
|
|
16819
16848
|
])])) : k("", !0)
|
|
16820
16849
|
], 512)], 8, yg),
|
|
16821
16850
|
e.viewOptions || t.$slots.below ? (H(), A("div", C_, [e.viewOptions ? (H(), O(_g, {
|
|
16822
16851
|
key: 0,
|
|
16823
|
-
modelValue:
|
|
16824
|
-
"onUpdate:modelValue": n[8] ||= (e) =>
|
|
16825
|
-
groups:
|
|
16852
|
+
modelValue: h.value,
|
|
16853
|
+
"onUpdate:modelValue": n[8] ||= (e) => h.value = e,
|
|
16854
|
+
groups: m.value,
|
|
16826
16855
|
label: e.viewOptionsLabels.label ?? "表示内容",
|
|
16827
16856
|
labels: {
|
|
16828
16857
|
all: e.viewOptionsLabels.all ?? "すべて表示",
|
|
@@ -16836,7 +16865,7 @@ var Fh = {
|
|
|
16836
16865
|
"labels",
|
|
16837
16866
|
"disabled"
|
|
16838
16867
|
])) : k("", !0), G(t.$slots, "below")])) : k("", !0),
|
|
16839
|
-
e.sortableRows ? (H(), A("span", w_, q(
|
|
16868
|
+
e.sortableRows ? (H(), A("span", w_, q(xt.value), 1)) : k("", !0)
|
|
16840
16869
|
], 8, vg));
|
|
16841
16870
|
}
|
|
16842
16871
|
}), E_ = ["data-mode", "aria-label"], D_ = [
|
|
@@ -20271,6 +20300,7 @@ var wy = {
|
|
|
20271
20300
|
props: {
|
|
20272
20301
|
text: { default: void 0 },
|
|
20273
20302
|
lines: { default: 1 },
|
|
20303
|
+
maxWidth: {},
|
|
20274
20304
|
placement: { default: "top" }
|
|
20275
20305
|
},
|
|
20276
20306
|
setup(e, { expose: t }) {
|
|
@@ -20290,7 +20320,10 @@ var wy = {
|
|
|
20290
20320
|
function f() {
|
|
20291
20321
|
clearTimeout(l), o.value = !1;
|
|
20292
20322
|
}
|
|
20293
|
-
let p = D(() =>
|
|
20323
|
+
let p = D(() => ({
|
|
20324
|
+
...n.lines > 1 ? { "-webkit-line-clamp": String(n.lines) } : {},
|
|
20325
|
+
maxWidth: typeof n.maxWidth == "number" ? `${n.maxWidth}px` : n.maxWidth
|
|
20326
|
+
}));
|
|
20294
20327
|
return t({ measure: s }), (t, n) => (H(), A("span", {
|
|
20295
20328
|
ref_key: "root",
|
|
20296
20329
|
ref: i,
|
|
@@ -23192,6 +23225,26 @@ function PE(e, t, n, r, i) {
|
|
|
23192
23225
|
times: a,
|
|
23193
23226
|
breaks: o
|
|
23194
23227
|
};
|
|
23228
|
+
if (e.interval !== void 0) {
|
|
23229
|
+
let i = e.interval, s = a[i];
|
|
23230
|
+
if (!s) return {
|
|
23231
|
+
times: a,
|
|
23232
|
+
breaks: o
|
|
23233
|
+
};
|
|
23234
|
+
let c = { ...s }, l = i > 0 ? Math.max(n, a[i - 1].end) : n, u = i + 1 < a.length ? Math.min(r, a[i + 1].start) : r, d = Math.min(60, c.end - c.start);
|
|
23235
|
+
if (e.kind === "move") {
|
|
23236
|
+
let e = Math.max(l - s.start, Math.min(u - s.end, t));
|
|
23237
|
+
s.start += e, s.end += e;
|
|
23238
|
+
} else e.kind === "start" ? s.start = Math.max(l, Math.min(s.end - d, s.start + t)) : s.end = Math.min(u, Math.max(s.start + d, s.end + t));
|
|
23239
|
+
let f = e.kind === "move" ? s.start - c.start : 0;
|
|
23240
|
+
return o = o.map((e) => e.end <= c.start || e.start >= c.end ? e : {
|
|
23241
|
+
start: Math.max(s.start, e.start + f),
|
|
23242
|
+
end: Math.min(s.end, e.end + f)
|
|
23243
|
+
}).filter((e) => e.end > e.start), {
|
|
23244
|
+
times: a,
|
|
23245
|
+
breaks: o
|
|
23246
|
+
};
|
|
23247
|
+
}
|
|
23195
23248
|
let s = a[0], c = a[a.length - 1];
|
|
23196
23249
|
if (e.kind === "move") {
|
|
23197
23250
|
let e = Math.max(n - s.start, Math.min(r - c.end, t));
|
|
@@ -23251,7 +23304,16 @@ function BE(e) {
|
|
|
23251
23304
|
let t = e.replace(/^#/, "");
|
|
23252
23305
|
if (t.length === 3 && (t = t.split("").map((e) => e + e).join("")), t.length !== 6) return "white";
|
|
23253
23306
|
let n = parseInt(t.slice(0, 2), 16), r = parseInt(t.slice(2, 4), 16), i = parseInt(t.slice(4, 6), 16);
|
|
23254
|
-
|
|
23307
|
+
if (![
|
|
23308
|
+
n,
|
|
23309
|
+
r,
|
|
23310
|
+
i
|
|
23311
|
+
].every(Number.isFinite)) return "white";
|
|
23312
|
+
let a = (e) => {
|
|
23313
|
+
let t = e / 255;
|
|
23314
|
+
return t <= .04045 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
23315
|
+
}, o = .2126 * a(n) + .7152 * a(r) + .0722 * a(i);
|
|
23316
|
+
return 1.05 / (o + .05) >= (o + .05) / .05 ? "white" : "black";
|
|
23255
23317
|
}
|
|
23256
23318
|
// src/components/ArShiftGrid.vue?vue&type=script&setup=true&lang.ts
|
|
23257
23319
|
var VE = [
|
|
@@ -23685,7 +23747,7 @@ var VE = [
|
|
|
23685
23747
|
if (e) {
|
|
23686
23748
|
let e = s || c && !v ? "#808080" : v;
|
|
23687
23749
|
e && (b["--sg-c"] = e, b["--sg-ink"] = BE(e));
|
|
23688
|
-
} else v && (b["--sg-c"] = v);
|
|
23750
|
+
} else v && (b["--sg-c"] = v, b["--sg-ink"] = BE(v));
|
|
23689
23751
|
let x = [], S = [];
|
|
23690
23752
|
e ? _e.value && c && (l && S.push({
|
|
23691
23753
|
label: l.name,
|
|
@@ -23745,7 +23807,7 @@ var VE = [
|
|
|
23745
23807
|
t !== Re && (Re = t, i("select", e ? Le(e) : null));
|
|
23746
23808
|
});
|
|
23747
23809
|
function ze() {
|
|
23748
|
-
ke.value = null, Ae.value = null, Ie.value = null,
|
|
23810
|
+
ke.value = null, Ae.value = null, Ie.value = null, ct.value = null;
|
|
23749
23811
|
}
|
|
23750
23812
|
function Be(e, t, n = !1) {
|
|
23751
23813
|
n && ke.value || (ke.value = {
|
|
@@ -23815,37 +23877,38 @@ var VE = [
|
|
|
23815
23877
|
c: Number(n.dataset.c)
|
|
23816
23878
|
};
|
|
23817
23879
|
}
|
|
23818
|
-
function Ye(e, t, n, a) {
|
|
23880
|
+
function Ye(e, t, n, a, o) {
|
|
23819
23881
|
if (!r.editable || e.button !== 0) return;
|
|
23820
|
-
let
|
|
23821
|
-
if (
|
|
23882
|
+
let s = Q(t, n);
|
|
23883
|
+
if (s.locked || s.outside || s.readonly) {
|
|
23822
23884
|
i("refuse", {
|
|
23823
|
-
reason:
|
|
23885
|
+
reason: s.readonly ? "readonly" : "locked",
|
|
23824
23886
|
spot: De(t, n)
|
|
23825
23887
|
});
|
|
23826
23888
|
return;
|
|
23827
23889
|
}
|
|
23828
|
-
if (a === "new" &&
|
|
23890
|
+
if (a === "new" && s.kind !== "empty" || a !== "new" && s.kind !== "shift") return;
|
|
23829
23891
|
e.preventDefault(), e.stopPropagation();
|
|
23830
|
-
let
|
|
23831
|
-
start:
|
|
23832
|
-
end:
|
|
23833
|
-
}] :
|
|
23892
|
+
let c = (e.currentTarget.closest("[data-part='track']")?.querySelector("[data-part='bar-track']"))?.getBoundingClientRect(), l = c?.width || 100, u = c?.left ?? 0, d = Math.round((r.chartRange[0] + (e.clientX - u) / l * Ue.value) / r.snap) * r.snap, f = a === "new" ? [{
|
|
23893
|
+
start: d,
|
|
23894
|
+
end: d + r.snap
|
|
23895
|
+
}] : s.times.map((e) => ({ ...e }));
|
|
23834
23896
|
He.value = {
|
|
23835
23897
|
kind: a,
|
|
23898
|
+
interval: o,
|
|
23836
23899
|
row: t,
|
|
23837
23900
|
col: n,
|
|
23838
23901
|
toRow: t,
|
|
23839
23902
|
toCol: n,
|
|
23840
23903
|
x0: e.clientX,
|
|
23841
|
-
width:
|
|
23842
|
-
anchor:
|
|
23843
|
-
times:
|
|
23844
|
-
breaks:
|
|
23845
|
-
next:
|
|
23846
|
-
nextBreaks:
|
|
23904
|
+
width: l,
|
|
23905
|
+
anchor: d,
|
|
23906
|
+
times: f,
|
|
23907
|
+
breaks: s.breaks.map((e) => ({ ...e })),
|
|
23908
|
+
next: f,
|
|
23909
|
+
nextBreaks: s.breaks,
|
|
23847
23910
|
moved: !1
|
|
23848
|
-
},
|
|
23911
|
+
}, Bt.value?.hide(), ke.value = null, Ae.value = null, window.addEventListener("pointermove", Xe), window.addEventListener("pointerup", Qe, { once: !0 }), window.addEventListener("pointercancel", Ze, { once: !0 });
|
|
23849
23912
|
}
|
|
23850
23913
|
function Xe(e) {
|
|
23851
23914
|
let t = He.value;
|
|
@@ -23854,7 +23917,7 @@ var VE = [
|
|
|
23854
23917
|
r: t.row,
|
|
23855
23918
|
c: t.col
|
|
23856
23919
|
};
|
|
23857
|
-
t.kind === "move" && (i = Je(e.clientX, e.clientY) ?? {
|
|
23920
|
+
t.kind === "move" && t.times.length === 1 && (i = Je(e.clientX, e.clientY) ?? {
|
|
23858
23921
|
r: t.toRow,
|
|
23859
23922
|
c: t.toCol
|
|
23860
23923
|
});
|
|
@@ -23872,7 +23935,10 @@ var VE = [
|
|
|
23872
23935
|
};
|
|
23873
23936
|
}
|
|
23874
23937
|
function Ze() {
|
|
23875
|
-
window.removeEventListener("pointermove", Xe);
|
|
23938
|
+
He.value = null, window.removeEventListener("pointermove", Xe), window.removeEventListener("pointerup", Qe), window.removeEventListener("pointercancel", Ze);
|
|
23939
|
+
}
|
|
23940
|
+
function Qe() {
|
|
23941
|
+
window.removeEventListener("pointermove", Xe), window.removeEventListener("pointercancel", Ze);
|
|
23876
23942
|
let e = He.value;
|
|
23877
23943
|
if (He.value = null, !e) return;
|
|
23878
23944
|
let t = De(e.row, e.col), n = Oe(e.row, e.col);
|
|
@@ -23899,7 +23965,7 @@ var VE = [
|
|
|
23899
23965
|
breaks: e.nextBreaks
|
|
23900
23966
|
});
|
|
23901
23967
|
}
|
|
23902
|
-
function
|
|
23968
|
+
function $e(e) {
|
|
23903
23969
|
let t = e.target?.closest?.("[data-part='cell']");
|
|
23904
23970
|
return t ? {
|
|
23905
23971
|
r: Number(t.dataset.r),
|
|
@@ -23907,27 +23973,27 @@ var VE = [
|
|
|
23907
23973
|
el: t
|
|
23908
23974
|
} : null;
|
|
23909
23975
|
}
|
|
23910
|
-
function
|
|
23976
|
+
function et(e) {
|
|
23911
23977
|
if (e.button !== 0) return;
|
|
23912
23978
|
if (e.target.closest("[data-part='fill-handle']")) {
|
|
23913
23979
|
if (!je.value) return;
|
|
23914
|
-
e.preventDefault(), Ne.value = !0, Pe.value = null,
|
|
23980
|
+
e.preventDefault(), Ne.value = !0, Pe.value = null, tt();
|
|
23915
23981
|
return;
|
|
23916
23982
|
}
|
|
23917
|
-
let t =
|
|
23983
|
+
let t = $e(e);
|
|
23918
23984
|
if (!t) return;
|
|
23919
23985
|
let n = r.days[t.c];
|
|
23920
|
-
n.outside ? i("day-outside", n) : y.value === "chart" ? Be(t.r, t.c) : r.editable && (e.preventDefault(), w.value?.focus({ preventScroll: !0 }),
|
|
23986
|
+
n.outside ? i("day-outside", n) : y.value === "chart" ? Be(t.r, t.c) : r.editable && (e.preventDefault(), w.value?.focus({ preventScroll: !0 }), ct.value = null, Be(t.r, t.c, e.shiftKey), Me.value = !e.shiftKey, tt());
|
|
23921
23987
|
}
|
|
23922
|
-
function
|
|
23923
|
-
|
|
23988
|
+
function tt() {
|
|
23989
|
+
Bt.value?.hide(), window.addEventListener("pointermove", nt), window.addEventListener("pointerup", rt, { once: !0 });
|
|
23924
23990
|
}
|
|
23925
|
-
function
|
|
23991
|
+
function nt(e) {
|
|
23926
23992
|
let t = Je(e.clientX, e.clientY);
|
|
23927
23993
|
t && (Ne.value ? Pe.value && Pe.value.r === t.r && Pe.value.c === t.c || (Pe.value = t) : Me.value && Ae.value && (Ae.value.r !== t.r || Ae.value.c !== t.c) && (Ae.value = t));
|
|
23928
23994
|
}
|
|
23929
|
-
function
|
|
23930
|
-
if (window.removeEventListener("pointermove",
|
|
23995
|
+
function rt() {
|
|
23996
|
+
if (window.removeEventListener("pointermove", nt), Ne.value) {
|
|
23931
23997
|
let e = Fe.value, t = je.value;
|
|
23932
23998
|
Ne.value = !1, Pe.value = null, e && t && (i("autofill", {
|
|
23933
23999
|
source: Le(t),
|
|
@@ -23942,39 +24008,39 @@ var VE = [
|
|
|
23942
24008
|
}
|
|
23943
24009
|
Me.value = !1;
|
|
23944
24010
|
}
|
|
23945
|
-
function
|
|
24011
|
+
function it(e) {
|
|
23946
24012
|
if (Me.value || Ne.value || He.value) return;
|
|
23947
|
-
let t =
|
|
24013
|
+
let t = $e(e);
|
|
23948
24014
|
if (!t) return;
|
|
23949
24015
|
let n = Q(t.r, t.c);
|
|
23950
|
-
n.tip.length ?
|
|
24016
|
+
n.tip.length ? Bt.value?.show(t.el, n.tip, t.r <= 1) : Bt.value?.hide();
|
|
23951
24017
|
}
|
|
23952
|
-
function
|
|
23953
|
-
|
|
24018
|
+
function at() {
|
|
24019
|
+
Bt.value?.hide();
|
|
23954
24020
|
}
|
|
23955
|
-
function
|
|
23956
|
-
let t =
|
|
23957
|
-
t && r.editable && !r.days[t.c].outside &&
|
|
24021
|
+
function ot(e) {
|
|
24022
|
+
let t = $e(e);
|
|
24023
|
+
t && r.editable && !r.days[t.c].outside && st(t.r, t.c);
|
|
23958
24024
|
}
|
|
23959
|
-
function
|
|
24025
|
+
function st(e, t) {
|
|
23960
24026
|
i("open", {
|
|
23961
24027
|
...De(e, t),
|
|
23962
24028
|
cell: Oe(e, t)
|
|
23963
24029
|
});
|
|
23964
24030
|
}
|
|
23965
|
-
let
|
|
23966
|
-
function
|
|
24031
|
+
let ct = U(null), lt = U(null);
|
|
24032
|
+
function ut(e) {
|
|
23967
24033
|
if (!r.contextMenu || !r.editable || y.value !== "cell") return;
|
|
23968
|
-
let t =
|
|
23969
|
-
t && !r.days[t.c].outside && (e.preventDefault(), IE(je.value, t.r, t.c) || Be(t.r, t.c),
|
|
24034
|
+
let t = $e(e);
|
|
24035
|
+
t && !r.days[t.c].outside && (e.preventDefault(), IE(je.value, t.r, t.c) || Be(t.r, t.c), Bt.value?.hide(), ct.value = {
|
|
23970
24036
|
el: t.el,
|
|
23971
24037
|
r: t.r,
|
|
23972
24038
|
c: t.c
|
|
23973
24039
|
}, B(() => document.querySelector(`#${_}-menu [role='menuitem']`)?.focus()));
|
|
23974
24040
|
}
|
|
23975
|
-
let
|
|
23976
|
-
if (!
|
|
23977
|
-
let e = Q(
|
|
24041
|
+
let dt = D(() => {
|
|
24042
|
+
if (!ct.value) return [];
|
|
24043
|
+
let e = Q(ct.value.r, ct.value.c).kind !== "empty";
|
|
23978
24044
|
return [
|
|
23979
24045
|
{
|
|
23980
24046
|
k: "open",
|
|
@@ -24008,15 +24074,15 @@ var VE = [
|
|
|
24008
24074
|
}
|
|
24009
24075
|
];
|
|
24010
24076
|
});
|
|
24011
|
-
function dt(e) {
|
|
24012
|
-
let t = st.value;
|
|
24013
|
-
st.value = null, t && (e === "open" ? ot(je.value?.r0 ?? t.r, je.value?.c0 ?? t.c) : pt(e), w.value?.focus({ preventScroll: !0 }));
|
|
24014
|
-
}
|
|
24015
24077
|
function ft(e) {
|
|
24016
|
-
let t =
|
|
24017
|
-
|
|
24078
|
+
let t = ct.value;
|
|
24079
|
+
ct.value = null, t && (e === "open" ? st(je.value?.r0 ?? t.r, je.value?.c0 ?? t.c) : mt(e), w.value?.focus({ preventScroll: !0 }));
|
|
24018
24080
|
}
|
|
24019
24081
|
function pt(e) {
|
|
24082
|
+
let t = [...lt.value?.querySelectorAll("[role='menuitem']:not([disabled])") ?? document.querySelectorAll(`#${_}-menu [role='menuitem']:not([disabled])`)], n = t.indexOf(document.activeElement);
|
|
24083
|
+
(e.key === "ArrowDown" || e.key === "ArrowUp") && (e.preventDefault(), t[(n + (e.key === "ArrowDown" ? 1 : -1) + t.length) % t.length]?.focus());
|
|
24084
|
+
}
|
|
24085
|
+
function mt(e) {
|
|
24020
24086
|
let t = je.value;
|
|
24021
24087
|
if (t && y.value === "cell" && r.editable) {
|
|
24022
24088
|
if (e === "copy" || e === "cut") Ie.value = {
|
|
@@ -24045,7 +24111,7 @@ var VE = [
|
|
|
24045
24111
|
}
|
|
24046
24112
|
}
|
|
24047
24113
|
}
|
|
24048
|
-
function
|
|
24114
|
+
function ht(e) {
|
|
24049
24115
|
let t = e.target;
|
|
24050
24116
|
if (t !== w.value && t.closest("input, textarea, select, [contenteditable='true'], button")) return;
|
|
24051
24117
|
let n = e.key.toLowerCase(), a = e.metaKey || e.ctrlKey, o = {
|
|
@@ -24060,42 +24126,47 @@ var VE = [
|
|
|
24060
24126
|
r: 0,
|
|
24061
24127
|
c: 0
|
|
24062
24128
|
}, s = Math.max(0, Math.min(r.members.length - 1, Ae.value ? a.r + t : 0)), c = Math.max(0, Math.min(r.days.length - 1, Ae.value ? a.c + i : 0));
|
|
24063
|
-
Be(s, c, e.shiftKey && !!ke.value), B(() =>
|
|
24064
|
-
|
|
24065
|
-
|
|
24066
|
-
|
|
24067
|
-
|
|
24068
|
-
|
|
24129
|
+
Be(s, c, e.shiftKey && !!ke.value), B(() => {
|
|
24130
|
+
let e = document.getElementById(`${_}-${s}-${c}`);
|
|
24131
|
+
e?.scrollIntoView?.({
|
|
24132
|
+
block: "nearest",
|
|
24133
|
+
inline: "nearest"
|
|
24134
|
+
});
|
|
24135
|
+
let t = Q(s, c).tip;
|
|
24136
|
+
y.value === "chart" && e && t.length ? Bt.value?.show(e, t, s <= 1) : Bt.value?.hide();
|
|
24137
|
+
});
|
|
24138
|
+
} else if (n === "escape") Ze(), (je.value || Ie.value) && e.preventDefault(), ze(), Bt.value?.hide();
|
|
24139
|
+
else if (n === "enter" && je.value) e.preventDefault(), r.editable && !r.days[je.value.c0].outside && st(je.value.r0, je.value.c0);
|
|
24069
24140
|
else if (y.value === "cell" && r.editable) {
|
|
24070
|
-
if (a && n === "c")
|
|
24071
|
-
else if (a && n === "x")
|
|
24072
|
-
else if (a && n === "v")
|
|
24141
|
+
if (a && n === "c") mt("copy");
|
|
24142
|
+
else if (a && n === "x") mt("cut");
|
|
24143
|
+
else if (a && n === "v") mt("paste");
|
|
24073
24144
|
else if (a && n === "z") e.preventDefault(), e.shiftKey ? i("redo") : i("undo");
|
|
24074
|
-
else if ((n === "delete" || n === "backspace") && je.value) e.preventDefault(),
|
|
24145
|
+
else if ((n === "delete" || n === "backspace") && je.value) e.preventDefault(), mt("delete");
|
|
24075
24146
|
else return;
|
|
24076
24147
|
}
|
|
24077
24148
|
}
|
|
24078
|
-
let
|
|
24079
|
-
function
|
|
24080
|
-
|
|
24149
|
+
let gt = D(() => Ae.value ? `${_}-${Ae.value.r}-${Ae.value.c}` : void 0), _t = U(""), vt = D(() => r.patterns.filter((e) => !_t.value || e.name.includes(_t.value))), yt = D(() => r.patternPanel ?? r.patterns.length > 0), bt = U(null), xt = U(null), St = (e) => e.times?.length ? `${kE(e.times[0].start)}〜${kE(e.times[e.times.length - 1].end)}` : "";
|
|
24150
|
+
function Ct(e, t) {
|
|
24151
|
+
bt.value = t, Bt.value?.hide();
|
|
24081
24152
|
try {
|
|
24082
24153
|
e.dataTransfer?.setData("text/plain", String(t.key)), e.dataTransfer && (e.dataTransfer.effectAllowed = "copy");
|
|
24083
24154
|
} catch {}
|
|
24084
24155
|
}
|
|
24085
|
-
function
|
|
24086
|
-
|
|
24156
|
+
function wt() {
|
|
24157
|
+
bt.value = null, xt.value = null;
|
|
24087
24158
|
}
|
|
24088
|
-
function
|
|
24089
|
-
if (!
|
|
24090
|
-
let t =
|
|
24159
|
+
function Tt(e) {
|
|
24160
|
+
if (!bt.value && kt.value == null || kt.value != null) return;
|
|
24161
|
+
let t = $e(e);
|
|
24091
24162
|
if (!t) return;
|
|
24092
24163
|
e.preventDefault();
|
|
24093
24164
|
let n = `${t.r}-${t.c}`;
|
|
24094
|
-
|
|
24165
|
+
xt.value !== n && (xt.value = n);
|
|
24095
24166
|
}
|
|
24096
|
-
function
|
|
24097
|
-
let t =
|
|
24098
|
-
if (
|
|
24167
|
+
function Et(e) {
|
|
24168
|
+
let t = bt.value, n = $e(e);
|
|
24169
|
+
if (wt(), !t || !n) return;
|
|
24099
24170
|
e.preventDefault();
|
|
24100
24171
|
let r = Q(n.r, n.c).locked || Q(n.r, n.c).outside ? "locked" : Q(n.r, n.c).readonly ? "readonly" : null;
|
|
24101
24172
|
r ? i("refuse", {
|
|
@@ -24106,7 +24177,7 @@ var VE = [
|
|
|
24106
24177
|
targets: [De(n.r, n.c)]
|
|
24107
24178
|
});
|
|
24108
24179
|
}
|
|
24109
|
-
function
|
|
24180
|
+
function Dt(e, t) {
|
|
24110
24181
|
if (e.key !== "Enter" && e.key !== " ") return;
|
|
24111
24182
|
e.preventDefault();
|
|
24112
24183
|
let n = je.value;
|
|
@@ -24118,7 +24189,7 @@ var VE = [
|
|
|
24118
24189
|
targets: a
|
|
24119
24190
|
});
|
|
24120
24191
|
}
|
|
24121
|
-
function
|
|
24192
|
+
function Ot(e, t) {
|
|
24122
24193
|
let n = [];
|
|
24123
24194
|
t.times?.length && n.push({
|
|
24124
24195
|
label: a.value.shift,
|
|
@@ -24126,21 +24197,21 @@ var VE = [
|
|
|
24126
24197
|
}), t.breaks?.length && n.push({
|
|
24127
24198
|
label: a.value.break,
|
|
24128
24199
|
values: t.breaks.map((e) => ME(e))
|
|
24129
|
-
}), n.length &&
|
|
24200
|
+
}), n.length && Bt.value?.show(e.currentTarget, n, !0);
|
|
24130
24201
|
}
|
|
24131
|
-
let
|
|
24132
|
-
function
|
|
24133
|
-
|
|
24202
|
+
let kt = U(null), At = U(null);
|
|
24203
|
+
function jt(e, t) {
|
|
24204
|
+
kt.value = t, Bt.value?.hide();
|
|
24134
24205
|
try {
|
|
24135
24206
|
e.dataTransfer?.setData("text/plain", String(r.members[t].key)), e.dataTransfer && (e.dataTransfer.effectAllowed = "move");
|
|
24136
24207
|
} catch {}
|
|
24137
24208
|
}
|
|
24138
|
-
function jt(e, t) {
|
|
24139
|
-
Ot.value != null && (e.preventDefault(), kt.value = t);
|
|
24140
|
-
}
|
|
24141
24209
|
function Mt(e, t) {
|
|
24142
|
-
|
|
24143
|
-
|
|
24210
|
+
kt.value != null && (e.preventDefault(), At.value = t);
|
|
24211
|
+
}
|
|
24212
|
+
function Nt(e, t) {
|
|
24213
|
+
let n = kt.value;
|
|
24214
|
+
if (kt.value = null, At.value = null, n == null || n === t) return;
|
|
24144
24215
|
e.preventDefault();
|
|
24145
24216
|
let a = r.members.map((e) => e.key), [o] = a.splice(n, 1);
|
|
24146
24217
|
a.splice(t, 0, o), i("reorder", {
|
|
@@ -24149,17 +24220,17 @@ var VE = [
|
|
|
24149
24220
|
keys: a
|
|
24150
24221
|
});
|
|
24151
24222
|
}
|
|
24152
|
-
function
|
|
24153
|
-
|
|
24223
|
+
function Pt() {
|
|
24224
|
+
kt.value = null, At.value = null;
|
|
24154
24225
|
}
|
|
24155
|
-
function
|
|
24226
|
+
function Ft(e, t) {
|
|
24156
24227
|
let n = [];
|
|
24157
|
-
IE(je.value, e, t) && n.push("selected"), Fe.value && IE(Fe.value, e, t) && !IE(je.value, e, t) && n.push("fill"),
|
|
24228
|
+
IE(je.value, e, t) && n.push("selected"), Fe.value && IE(Fe.value, e, t) && !IE(je.value, e, t) && n.push("fill"), xt.value === `${e}-${t}` && n.push("drop");
|
|
24158
24229
|
let r = He.value ? We(e, t) : null;
|
|
24159
24230
|
return r && n.push(r.state), n.join(" ") || void 0;
|
|
24160
24231
|
}
|
|
24161
|
-
let
|
|
24162
|
-
let e =
|
|
24232
|
+
let It = (e, t) => r.editable && y.value === "cell" && !Me.value && !!je.value && je.value.r1 === e && je.value.c1 === t, Lt = D(() => r.platform ? r.platform === "mac" : RE()), Rt = D(() => {
|
|
24233
|
+
let e = Lt.value, t = p.value === "kbd", n = (n, r = !1) => t ? e ? `⌘${r ? "⇧" : ""}${n}` : `Ctrl+${r ? "Shift+" : ""}${n}` : e ? `⌘+${r ? "Shift+" : ""}${n}` : `Ctrl+${r ? "Shift+" : ""}${n}`;
|
|
24163
24234
|
return [
|
|
24164
24235
|
{
|
|
24165
24236
|
n: a.value.copy,
|
|
@@ -24186,30 +24257,30 @@ var VE = [
|
|
|
24186
24257
|
k: "Delete"
|
|
24187
24258
|
}
|
|
24188
24259
|
];
|
|
24189
|
-
}),
|
|
24260
|
+
}), zt = D(() => {
|
|
24190
24261
|
if (y.value === "chart") return "";
|
|
24191
24262
|
let e = je.value;
|
|
24192
24263
|
return e ? o(a.value.selected, { n: (e.r1 - e.r0 + 1) * (e.c1 - e.c0 + 1) }) : a.value.selectHint;
|
|
24193
|
-
}),
|
|
24264
|
+
}), Bt = U(null), Vt = D(() => {
|
|
24194
24265
|
let [e, t] = r.chartRange, n = [];
|
|
24195
24266
|
for (let r = e; r <= t; r += 360) n.push({
|
|
24196
24267
|
m: r,
|
|
24197
24268
|
t: String(Math.floor(r / 60))
|
|
24198
24269
|
});
|
|
24199
24270
|
return n;
|
|
24200
|
-
}),
|
|
24271
|
+
}), Ht = D(() => ({
|
|
24201
24272
|
"--sg-col": `${L.value}px`,
|
|
24202
24273
|
"--sg-n": String(I.value),
|
|
24203
24274
|
transform: R.value < 1 ? `scale(${R.value})` : void 0,
|
|
24204
24275
|
width: R.value < 1 ? `${ne.value}px` : void 0
|
|
24205
|
-
})),
|
|
24276
|
+
})), Ut = D(() => R.value < 1 && N.value ? { height: `${Math.ceil(N.value * R.value)}px` } : void 0);
|
|
24206
24277
|
Y([
|
|
24207
24278
|
() => r.days.length,
|
|
24208
24279
|
() => r.members.length,
|
|
24209
24280
|
L,
|
|
24210
24281
|
y
|
|
24211
24282
|
], () => B(fe)), se(() => {
|
|
24212
|
-
de?.disconnect(), window.removeEventListener("pointermove",
|
|
24283
|
+
de?.disconnect(), Ze(), window.removeEventListener("pointerup", rt), window.removeEventListener("pointermove", nt), window.removeEventListener("pointermove", Xe);
|
|
24213
24284
|
}), t({
|
|
24214
24285
|
zoomIn: oe,
|
|
24215
24286
|
zoomOut: ae,
|
|
@@ -24221,7 +24292,7 @@ var VE = [
|
|
|
24221
24292
|
canZoomOut: re,
|
|
24222
24293
|
selection: je
|
|
24223
24294
|
});
|
|
24224
|
-
let
|
|
24295
|
+
let Wt = (e) => e.d;
|
|
24225
24296
|
return (t, n) => (H(), A("div", {
|
|
24226
24297
|
ref_key: "root",
|
|
24227
24298
|
ref: C,
|
|
@@ -24280,13 +24351,13 @@ var VE = [
|
|
|
24280
24351
|
"label",
|
|
24281
24352
|
"options"
|
|
24282
24353
|
])], 64)) : k("", !0)])) : k("", !0),
|
|
24283
|
-
j("div", UE, [
|
|
24354
|
+
j("div", UE, [yt.value ? (H(), A("aside", {
|
|
24284
24355
|
key: 0,
|
|
24285
24356
|
"data-part": "patterns",
|
|
24286
24357
|
"aria-label": a.value.patternSearch
|
|
24287
24358
|
}, [G(t.$slots, "patterns", {
|
|
24288
|
-
patterns:
|
|
24289
|
-
query:
|
|
24359
|
+
patterns: vt.value,
|
|
24360
|
+
query: _t.value
|
|
24290
24361
|
}, () => [
|
|
24291
24362
|
e.patternEdit && e.editable ? (H(), A("button", {
|
|
24292
24363
|
key: 0,
|
|
@@ -24302,36 +24373,36 @@ var VE = [
|
|
|
24302
24373
|
size: "sm",
|
|
24303
24374
|
line: ""
|
|
24304
24375
|
}), Se(j("input", {
|
|
24305
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
24376
|
+
"onUpdate:modelValue": n[1] ||= (e) => _t.value = e,
|
|
24306
24377
|
type: "text",
|
|
24307
24378
|
placeholder: a.value.patternSearch,
|
|
24308
24379
|
"aria-label": a.value.patternSearch
|
|
24309
|
-
}, null, 8, KE), [[be,
|
|
24310
|
-
(H(!0), A(x, null, W(
|
|
24380
|
+
}, null, 8, KE), [[be, _t.value]])]),
|
|
24381
|
+
(H(!0), A(x, null, W(vt.value, (t) => (H(), A("div", {
|
|
24311
24382
|
key: t.key,
|
|
24312
24383
|
"data-part": "pattern",
|
|
24313
24384
|
role: "button",
|
|
24314
24385
|
tabindex: "0",
|
|
24315
24386
|
draggable: e.editable ? "true" : "false",
|
|
24316
24387
|
"data-tip": a.value.patternDrag,
|
|
24317
|
-
"aria-label": `${t.name} ${
|
|
24318
|
-
onDragstart: (e) =>
|
|
24319
|
-
onDragend:
|
|
24320
|
-
onKeydown: (e) =>
|
|
24321
|
-
onPointerenter: (e) =>
|
|
24322
|
-
onPointerleave:
|
|
24388
|
+
"aria-label": `${t.name} ${St(t)}`,
|
|
24389
|
+
onDragstart: (e) => Ct(e, t),
|
|
24390
|
+
onDragend: wt,
|
|
24391
|
+
onKeydown: (e) => Dt(e, t),
|
|
24392
|
+
onPointerenter: (e) => Ot(e, t),
|
|
24393
|
+
onPointerleave: at
|
|
24323
24394
|
}, [j("span", {
|
|
24324
24395
|
"data-part": "pattern-swatch",
|
|
24325
24396
|
style: V({ background: t.color }),
|
|
24326
24397
|
"aria-hidden": "true"
|
|
24327
|
-
}, null, 4), j("span", null, [j("b", JE, q(t.name), 1),
|
|
24328
|
-
|
|
24398
|
+
}, null, 4), j("span", null, [j("b", JE, q(t.name), 1), St(t) ? (H(), A("small", YE, q(St(t)), 1)) : k("", !0)])], 40, qE))), 128)),
|
|
24399
|
+
_t.value && !vt.value.length ? (H(), O(ai, {
|
|
24329
24400
|
key: 1,
|
|
24330
24401
|
"data-part": "pattern-none",
|
|
24331
24402
|
role: "status",
|
|
24332
24403
|
size: "sm",
|
|
24333
24404
|
icon: "search",
|
|
24334
|
-
text: o(a.value.patternNone, { q:
|
|
24405
|
+
text: o(a.value.patternNone, { q: _t.value })
|
|
24335
24406
|
}, null, 8, ["text"])) : k("", !0),
|
|
24336
24407
|
e.editable ? (H(), A("span", XE, [F($, {
|
|
24337
24408
|
name: "info",
|
|
@@ -24348,25 +24419,25 @@ var VE = [
|
|
|
24348
24419
|
"aria-multiselectable": "true",
|
|
24349
24420
|
"aria-rowcount": e.members.length + 1,
|
|
24350
24421
|
"aria-colcount": e.days.length + 1,
|
|
24351
|
-
"aria-activedescendant":
|
|
24422
|
+
"aria-activedescendant": gt.value,
|
|
24352
24423
|
style: V(e.maxHeight ? { maxHeight: e.maxHeight } : void 0),
|
|
24353
|
-
onKeydown:
|
|
24354
|
-
onPointerdown:
|
|
24355
|
-
onPointerover:
|
|
24356
|
-
onPointerleave:
|
|
24357
|
-
onDblclick:
|
|
24358
|
-
onContextmenu:
|
|
24359
|
-
onDragover:
|
|
24360
|
-
onDrop:
|
|
24424
|
+
onKeydown: ht,
|
|
24425
|
+
onPointerdown: et,
|
|
24426
|
+
onPointerover: it,
|
|
24427
|
+
onPointerleave: at,
|
|
24428
|
+
onDblclick: ot,
|
|
24429
|
+
onContextmenu: ut,
|
|
24430
|
+
onDragover: Tt,
|
|
24431
|
+
onDrop: Et
|
|
24361
24432
|
}, [j("div", {
|
|
24362
24433
|
"data-part": "scaler",
|
|
24363
|
-
style: V(
|
|
24434
|
+
style: V(Ut.value)
|
|
24364
24435
|
}, [j("div", {
|
|
24365
24436
|
ref_key: "gridEl",
|
|
24366
24437
|
ref: T,
|
|
24367
24438
|
"data-part": "grid",
|
|
24368
24439
|
role: "presentation",
|
|
24369
|
-
style: V(
|
|
24440
|
+
style: V(Ht.value)
|
|
24370
24441
|
}, [
|
|
24371
24442
|
j("div", $E, [j("div", eD, q(J(s) === "date" ? a.value.name : ""), 1), (H(!0), A(x, null, W(ve.value, (e) => (H(), A("div", {
|
|
24372
24443
|
key: e.d.date,
|
|
@@ -24378,8 +24449,8 @@ var VE = [
|
|
|
24378
24449
|
"data-tone": e.tone,
|
|
24379
24450
|
"data-today": e.today ? "" : void 0,
|
|
24380
24451
|
"data-unpublished": e.unpub ? "" : void 0,
|
|
24381
|
-
onClick: (t) => i("day-open",
|
|
24382
|
-
onKeydown: Ce(Z((t) => i("day-open",
|
|
24452
|
+
onClick: (t) => i("day-open", Wt(e)),
|
|
24453
|
+
onKeydown: Ce(Z((t) => i("day-open", Wt(e)), ["prevent"]), ["enter"])
|
|
24383
24454
|
}, [
|
|
24384
24455
|
J(s) === "button" ? (H(), A("span", nD, [e.unpub ? (H(), O($, {
|
|
24385
24456
|
key: 0,
|
|
@@ -24406,12 +24477,12 @@ var VE = [
|
|
|
24406
24477
|
type: "button",
|
|
24407
24478
|
"data-part": "chart-button",
|
|
24408
24479
|
"aria-label": `${e.dateText} ${a.value.dayChart}`,
|
|
24409
|
-
onClick: (t) => i("day-chart",
|
|
24480
|
+
onClick: (t) => i("day-chart", Wt(e))
|
|
24410
24481
|
}, [F($, {
|
|
24411
24482
|
name: "chart",
|
|
24412
24483
|
size: "sm"
|
|
24413
24484
|
}), _e.value ? (H(), A("span", lD, q(a.value.dayChart), 1)) : k("", !0)], 8, cD)) : k("", !0),
|
|
24414
|
-
y.value === "chart" ? (H(), A("span", uD, [(H(!0), A(x, null, W(
|
|
24485
|
+
y.value === "chart" ? (H(), A("span", uD, [(H(!0), A(x, null, W(Vt.value, (e) => (H(), A("span", { key: e.m }, q(e.t), 1))), 128))])) : k("", !0),
|
|
24415
24486
|
J(s) === "date" ? (H(), A(x, { key: 2 }, [e.locked ? (H(), O($, {
|
|
24416
24487
|
key: 0,
|
|
24417
24488
|
name: "lock",
|
|
@@ -24446,9 +24517,9 @@ var VE = [
|
|
|
24446
24517
|
}, [j("div", {
|
|
24447
24518
|
"data-part": "name",
|
|
24448
24519
|
role: "rowheader",
|
|
24449
|
-
"data-state":
|
|
24450
|
-
onDragover: (e) =>
|
|
24451
|
-
onDrop: Z((e) =>
|
|
24520
|
+
"data-state": At.value === t.r ? "drop" : void 0,
|
|
24521
|
+
onDragover: (e) => Mt(e, t.r),
|
|
24522
|
+
onDrop: Z((e) => Nt(e, t.r), ["stop"])
|
|
24452
24523
|
}, [
|
|
24453
24524
|
e.editable ? (H(), A("span", {
|
|
24454
24525
|
key: 0,
|
|
@@ -24456,8 +24527,8 @@ var VE = [
|
|
|
24456
24527
|
draggable: "true",
|
|
24457
24528
|
"data-tip": a.value.reorder,
|
|
24458
24529
|
"aria-label": a.value.reorder,
|
|
24459
|
-
onDragstart: (e) =>
|
|
24460
|
-
onDragend:
|
|
24530
|
+
onDragstart: (e) => jt(e, t.r),
|
|
24531
|
+
onDragend: Pt
|
|
24461
24532
|
}, [F($, {
|
|
24462
24533
|
name: "grip",
|
|
24463
24534
|
size: "sm",
|
|
@@ -24495,7 +24566,7 @@ var VE = [
|
|
|
24495
24566
|
"data-today": r.today ? "" : void 0,
|
|
24496
24567
|
"data-locked": Q(t.r, o).locked && g.value.locked ? "" : void 0,
|
|
24497
24568
|
"data-outside": r.d.outside ? "" : void 0,
|
|
24498
|
-
"data-state":
|
|
24569
|
+
"data-state": Ft(t.r, o),
|
|
24499
24570
|
"data-edge": Ve(je.value, t.r, o),
|
|
24500
24571
|
"data-clip": Ie.value && J(IE)(Ie.value.rect, t.r, o) ? Ie.value.mode : void 0,
|
|
24501
24572
|
"data-clip-edge": Ie.value ? Ve(Ie.value.rect, t.r, o) : void 0,
|
|
@@ -24558,28 +24629,28 @@ var VE = [
|
|
|
24558
24629
|
key: "b" + n,
|
|
24559
24630
|
"data-part": "bar",
|
|
24560
24631
|
style: V(Ke(e)),
|
|
24561
|
-
onPointerdown: (e) => Ye(e, t.r, o, "move")
|
|
24632
|
+
onPointerdown: (e) => Ye(e, t.r, o, "move", n)
|
|
24562
24633
|
}, null, 44, jD))), 128)),
|
|
24563
24634
|
(H(!0), A(x, null, W(qe(t.r, o).breaks, (e, t) => (H(), A("em", {
|
|
24564
24635
|
key: "k" + t,
|
|
24565
24636
|
"data-part": "break",
|
|
24566
24637
|
style: V(Ke(e))
|
|
24567
24638
|
}, null, 4))), 128)),
|
|
24568
|
-
e.editable && !Q(t.r, o).locked
|
|
24639
|
+
e.editable && !Q(t.r, o).locked ? (H(!0), A(x, { key: 1 }, W(qe(t.r, o).times, (n, r) => (H(), A(x, { key: `handles-${r}` }, [j("b", {
|
|
24569
24640
|
"data-part": "handle",
|
|
24570
24641
|
"data-side": "start",
|
|
24571
|
-
title: a.value.resizeStart
|
|
24572
|
-
style: V({ left: Ke(
|
|
24573
|
-
onPointerdown: (e) => Ye(e, t.r, o, "start")
|
|
24642
|
+
title: `${a.value.resizeStart} ${J(ME)(n)}`,
|
|
24643
|
+
style: V({ left: Ke(n).left }),
|
|
24644
|
+
onPointerdown: (e) => Ye(e, t.r, o, "start", r)
|
|
24574
24645
|
}, null, 44, MD), j("b", {
|
|
24575
24646
|
"data-part": "handle",
|
|
24576
24647
|
"data-side": "end",
|
|
24577
|
-
title: a.value.resizeEnd
|
|
24578
|
-
style: V({ left: `${J(NE)(
|
|
24579
|
-
onPointerdown: (e) => Ye(e, t.r, o, "end")
|
|
24580
|
-
}, null, 44, ND)], 64)) : k("", !0)
|
|
24648
|
+
title: `${a.value.resizeEnd} ${J(ME)(n)}`,
|
|
24649
|
+
style: V({ left: `${J(NE)(n.end, e.chartRange)}%` }),
|
|
24650
|
+
onPointerdown: (e) => Ye(e, t.r, o, "end", r)
|
|
24651
|
+
}, null, 44, ND)], 64))), 128)) : k("", !0)
|
|
24581
24652
|
]), j("span", PD, q(He.value && qe(t.r, o).state ? qe(t.r, o).times.map(J(jE)).join(" / ") : Q(t.r, o).barLabel), 1)], 40, DD)),
|
|
24582
|
-
|
|
24653
|
+
It(t.r, o) ? (H(), A("span", FD)) : k("", !0),
|
|
24583
24654
|
Q(t.r, o).locked && g.value.locked ? (H(), O($, {
|
|
24584
24655
|
key: 3,
|
|
24585
24656
|
line: "",
|
|
@@ -24601,7 +24672,7 @@ var VE = [
|
|
|
24601
24672
|
"data-state": e.shortage ? "short" : "ok",
|
|
24602
24673
|
"data-tip": e.shortTip || void 0
|
|
24603
24674
|
}, q(e.shortage ? o(a.value.shortageCell, { n: e.shortage }) : a.value.none), 9, VD))), 128))])) : k("", !0)
|
|
24604
|
-
], 4)], 4)], 44, QE), t.$slots.footer || g.value.hints && !e.compact ? (H(), A("div", HD, [G(t.$slots, "footer"), g.value.hints && !e.compact && e.editable ? (H(), A(x, { key: 0 }, [y.value === "cell" ? (H(), A(x, { key: 0 }, [j("b", UD, q(a.value.shortcutTitle), 1), (H(!0), A(x, null, W(
|
|
24675
|
+
], 4)], 4)], 44, QE), t.$slots.footer || g.value.hints && !e.compact ? (H(), A("div", HD, [G(t.$slots, "footer"), g.value.hints && !e.compact && e.editable ? (H(), A(x, { key: 0 }, [y.value === "cell" ? (H(), A(x, { key: 0 }, [j("b", UD, q(a.value.shortcutTitle), 1), (H(!0), A(x, null, W(Rt.value, (e) => (H(), A("span", {
|
|
24605
24676
|
key: e.n,
|
|
24606
24677
|
"data-part": "hint"
|
|
24607
24678
|
}, [J(p) === "kbd" ? (H(), A(x, { key: 0 }, [P(q(e.n), 1), j("kbd", WD, q(e.k), 1)], 64)) : (H(), A(x, { key: 1 }, [P(q(e.n) + ": " + q(e.k), 1)], 64))]))), 128))], 64)) : (H(), A(x, { key: 1 }, [
|
|
@@ -24614,35 +24685,35 @@ var VE = [
|
|
|
24614
24685
|
key: e,
|
|
24615
24686
|
"data-part": "hint"
|
|
24616
24687
|
}, q(e), 1))), 128))
|
|
24617
|
-
], 64)),
|
|
24688
|
+
], 64)), zt.value ? (H(), A("span", KD, q(zt.value), 1)) : k("", !0)], 64)) : k("", !0)])) : k("", !0)])]),
|
|
24618
24689
|
F(DE, {
|
|
24619
24690
|
ref_key: "tip",
|
|
24620
|
-
ref:
|
|
24691
|
+
ref: Bt,
|
|
24621
24692
|
form: J(f)
|
|
24622
24693
|
}, null, 8, ["form"]),
|
|
24623
24694
|
F(Sf, { root: C.value }, null, 8, ["root"]),
|
|
24624
24695
|
F(fn, {
|
|
24625
24696
|
id: `${J(_)}-menu`,
|
|
24626
|
-
open: !!
|
|
24627
|
-
anchor:
|
|
24697
|
+
open: !!ct.value,
|
|
24698
|
+
anchor: ct.value?.el ?? null,
|
|
24628
24699
|
placement: "right-start",
|
|
24629
24700
|
ar: "shift-grid-menu",
|
|
24630
24701
|
role: "menu",
|
|
24631
|
-
onClose: n[4] ||= (e) =>
|
|
24702
|
+
onClose: n[4] ||= (e) => ct.value = null
|
|
24632
24703
|
}, {
|
|
24633
24704
|
default: X(() => [j("div", {
|
|
24634
24705
|
ref_key: "menuPanel",
|
|
24635
|
-
ref:
|
|
24706
|
+
ref: lt,
|
|
24636
24707
|
"data-part": "menu",
|
|
24637
|
-
onKeydown:
|
|
24638
|
-
}, [(H(!0), A(x, null, W(
|
|
24708
|
+
onKeydown: pt
|
|
24709
|
+
}, [(H(!0), A(x, null, W(dt.value, (e) => (H(), A("button", {
|
|
24639
24710
|
key: e.k,
|
|
24640
24711
|
type: "button",
|
|
24641
24712
|
"data-part": "menu-item",
|
|
24642
24713
|
role: "menuitem",
|
|
24643
24714
|
"data-item": e.k === "open" ? e.ic === "pen" ? "edit" : "add" : e.k,
|
|
24644
24715
|
disabled: e.dis,
|
|
24645
|
-
onClick: (t) =>
|
|
24716
|
+
onClick: (t) => ft(e.k)
|
|
24646
24717
|
}, [F($, {
|
|
24647
24718
|
name: e.ic,
|
|
24648
24719
|
size: "sm"
|
|
@@ -26320,23 +26391,18 @@ var VE = [
|
|
|
26320
26391
|
"disabled",
|
|
26321
26392
|
"size"
|
|
26322
26393
|
]),
|
|
26323
|
-
e.lookup ? (H(), O(Nt, {
|
|
26394
|
+
e.lookup && (o.value === "failed" || o.value === "not-found") ? (H(), O(Nt, {
|
|
26324
26395
|
key: 0,
|
|
26325
26396
|
"data-part": "lookup",
|
|
26326
26397
|
tone: "secondary",
|
|
26327
26398
|
icon: "search",
|
|
26328
26399
|
size: e.size,
|
|
26329
26400
|
disabled: e.disabled || a(e.modelValue ?? "").length !== 8,
|
|
26330
|
-
loading: o.value === "searching",
|
|
26331
26401
|
onClick: u
|
|
26332
26402
|
}, {
|
|
26333
26403
|
default: X(() => [P(q(e.labels.lookup ?? "住所を入れる"), 1)]),
|
|
26334
26404
|
_: 1
|
|
26335
|
-
}, 8, [
|
|
26336
|
-
"size",
|
|
26337
|
-
"disabled",
|
|
26338
|
-
"loading"
|
|
26339
|
-
])) : k("", !0),
|
|
26405
|
+
}, 8, ["size", "disabled"])) : k("", !0),
|
|
26340
26406
|
j("span", Ek, q(_()), 1)
|
|
26341
26407
|
], 14, Tk));
|
|
26342
26408
|
}
|