@s_and_a/arrow-ui 0.1.12 → 0.1.13
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 +249 -190
- 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",
|
|
@@ -20271,6 +20293,7 @@ var wy = {
|
|
|
20271
20293
|
props: {
|
|
20272
20294
|
text: { default: void 0 },
|
|
20273
20295
|
lines: { default: 1 },
|
|
20296
|
+
maxWidth: {},
|
|
20274
20297
|
placement: { default: "top" }
|
|
20275
20298
|
},
|
|
20276
20299
|
setup(e, { expose: t }) {
|
|
@@ -20290,7 +20313,10 @@ var wy = {
|
|
|
20290
20313
|
function f() {
|
|
20291
20314
|
clearTimeout(l), o.value = !1;
|
|
20292
20315
|
}
|
|
20293
|
-
let p = D(() =>
|
|
20316
|
+
let p = D(() => ({
|
|
20317
|
+
...n.lines > 1 ? { "-webkit-line-clamp": String(n.lines) } : {},
|
|
20318
|
+
maxWidth: typeof n.maxWidth == "number" ? `${n.maxWidth}px` : n.maxWidth
|
|
20319
|
+
}));
|
|
20294
20320
|
return t({ measure: s }), (t, n) => (H(), A("span", {
|
|
20295
20321
|
ref_key: "root",
|
|
20296
20322
|
ref: i,
|
|
@@ -23192,6 +23218,26 @@ function PE(e, t, n, r, i) {
|
|
|
23192
23218
|
times: a,
|
|
23193
23219
|
breaks: o
|
|
23194
23220
|
};
|
|
23221
|
+
if (e.interval !== void 0) {
|
|
23222
|
+
let i = e.interval, s = a[i];
|
|
23223
|
+
if (!s) return {
|
|
23224
|
+
times: a,
|
|
23225
|
+
breaks: o
|
|
23226
|
+
};
|
|
23227
|
+
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);
|
|
23228
|
+
if (e.kind === "move") {
|
|
23229
|
+
let e = Math.max(l - s.start, Math.min(u - s.end, t));
|
|
23230
|
+
s.start += e, s.end += e;
|
|
23231
|
+
} 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));
|
|
23232
|
+
let f = e.kind === "move" ? s.start - c.start : 0;
|
|
23233
|
+
return o = o.map((e) => e.end <= c.start || e.start >= c.end ? e : {
|
|
23234
|
+
start: Math.max(s.start, e.start + f),
|
|
23235
|
+
end: Math.min(s.end, e.end + f)
|
|
23236
|
+
}).filter((e) => e.end > e.start), {
|
|
23237
|
+
times: a,
|
|
23238
|
+
breaks: o
|
|
23239
|
+
};
|
|
23240
|
+
}
|
|
23195
23241
|
let s = a[0], c = a[a.length - 1];
|
|
23196
23242
|
if (e.kind === "move") {
|
|
23197
23243
|
let e = Math.max(n - s.start, Math.min(r - c.end, t));
|
|
@@ -23251,7 +23297,16 @@ function BE(e) {
|
|
|
23251
23297
|
let t = e.replace(/^#/, "");
|
|
23252
23298
|
if (t.length === 3 && (t = t.split("").map((e) => e + e).join("")), t.length !== 6) return "white";
|
|
23253
23299
|
let n = parseInt(t.slice(0, 2), 16), r = parseInt(t.slice(2, 4), 16), i = parseInt(t.slice(4, 6), 16);
|
|
23254
|
-
|
|
23300
|
+
if (![
|
|
23301
|
+
n,
|
|
23302
|
+
r,
|
|
23303
|
+
i
|
|
23304
|
+
].every(Number.isFinite)) return "white";
|
|
23305
|
+
let a = (e) => {
|
|
23306
|
+
let t = e / 255;
|
|
23307
|
+
return t <= .04045 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
23308
|
+
}, o = .2126 * a(n) + .7152 * a(r) + .0722 * a(i);
|
|
23309
|
+
return 1.05 / (o + .05) >= (o + .05) / .05 ? "white" : "black";
|
|
23255
23310
|
}
|
|
23256
23311
|
// src/components/ArShiftGrid.vue?vue&type=script&setup=true&lang.ts
|
|
23257
23312
|
var VE = [
|
|
@@ -23685,7 +23740,7 @@ var VE = [
|
|
|
23685
23740
|
if (e) {
|
|
23686
23741
|
let e = s || c && !v ? "#808080" : v;
|
|
23687
23742
|
e && (b["--sg-c"] = e, b["--sg-ink"] = BE(e));
|
|
23688
|
-
} else v && (b["--sg-c"] = v);
|
|
23743
|
+
} else v && (b["--sg-c"] = v, b["--sg-ink"] = BE(v));
|
|
23689
23744
|
let x = [], S = [];
|
|
23690
23745
|
e ? _e.value && c && (l && S.push({
|
|
23691
23746
|
label: l.name,
|
|
@@ -23745,7 +23800,7 @@ var VE = [
|
|
|
23745
23800
|
t !== Re && (Re = t, i("select", e ? Le(e) : null));
|
|
23746
23801
|
});
|
|
23747
23802
|
function ze() {
|
|
23748
|
-
ke.value = null, Ae.value = null, Ie.value = null,
|
|
23803
|
+
ke.value = null, Ae.value = null, Ie.value = null, ct.value = null;
|
|
23749
23804
|
}
|
|
23750
23805
|
function Be(e, t, n = !1) {
|
|
23751
23806
|
n && ke.value || (ke.value = {
|
|
@@ -23815,37 +23870,38 @@ var VE = [
|
|
|
23815
23870
|
c: Number(n.dataset.c)
|
|
23816
23871
|
};
|
|
23817
23872
|
}
|
|
23818
|
-
function Ye(e, t, n, a) {
|
|
23873
|
+
function Ye(e, t, n, a, o) {
|
|
23819
23874
|
if (!r.editable || e.button !== 0) return;
|
|
23820
|
-
let
|
|
23821
|
-
if (
|
|
23875
|
+
let s = Q(t, n);
|
|
23876
|
+
if (s.locked || s.outside || s.readonly) {
|
|
23822
23877
|
i("refuse", {
|
|
23823
|
-
reason:
|
|
23878
|
+
reason: s.readonly ? "readonly" : "locked",
|
|
23824
23879
|
spot: De(t, n)
|
|
23825
23880
|
});
|
|
23826
23881
|
return;
|
|
23827
23882
|
}
|
|
23828
|
-
if (a === "new" &&
|
|
23883
|
+
if (a === "new" && s.kind !== "empty" || a !== "new" && s.kind !== "shift") return;
|
|
23829
23884
|
e.preventDefault(), e.stopPropagation();
|
|
23830
|
-
let
|
|
23831
|
-
start:
|
|
23832
|
-
end:
|
|
23833
|
-
}] :
|
|
23885
|
+
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" ? [{
|
|
23886
|
+
start: d,
|
|
23887
|
+
end: d + r.snap
|
|
23888
|
+
}] : s.times.map((e) => ({ ...e }));
|
|
23834
23889
|
He.value = {
|
|
23835
23890
|
kind: a,
|
|
23891
|
+
interval: o,
|
|
23836
23892
|
row: t,
|
|
23837
23893
|
col: n,
|
|
23838
23894
|
toRow: t,
|
|
23839
23895
|
toCol: n,
|
|
23840
23896
|
x0: e.clientX,
|
|
23841
|
-
width:
|
|
23842
|
-
anchor:
|
|
23843
|
-
times:
|
|
23844
|
-
breaks:
|
|
23845
|
-
next:
|
|
23846
|
-
nextBreaks:
|
|
23897
|
+
width: l,
|
|
23898
|
+
anchor: d,
|
|
23899
|
+
times: f,
|
|
23900
|
+
breaks: s.breaks.map((e) => ({ ...e })),
|
|
23901
|
+
next: f,
|
|
23902
|
+
nextBreaks: s.breaks,
|
|
23847
23903
|
moved: !1
|
|
23848
|
-
},
|
|
23904
|
+
}, 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
23905
|
}
|
|
23850
23906
|
function Xe(e) {
|
|
23851
23907
|
let t = He.value;
|
|
@@ -23854,7 +23910,7 @@ var VE = [
|
|
|
23854
23910
|
r: t.row,
|
|
23855
23911
|
c: t.col
|
|
23856
23912
|
};
|
|
23857
|
-
t.kind === "move" && (i = Je(e.clientX, e.clientY) ?? {
|
|
23913
|
+
t.kind === "move" && t.times.length === 1 && (i = Je(e.clientX, e.clientY) ?? {
|
|
23858
23914
|
r: t.toRow,
|
|
23859
23915
|
c: t.toCol
|
|
23860
23916
|
});
|
|
@@ -23872,7 +23928,10 @@ var VE = [
|
|
|
23872
23928
|
};
|
|
23873
23929
|
}
|
|
23874
23930
|
function Ze() {
|
|
23875
|
-
window.removeEventListener("pointermove", Xe);
|
|
23931
|
+
He.value = null, window.removeEventListener("pointermove", Xe), window.removeEventListener("pointerup", Qe), window.removeEventListener("pointercancel", Ze);
|
|
23932
|
+
}
|
|
23933
|
+
function Qe() {
|
|
23934
|
+
window.removeEventListener("pointermove", Xe), window.removeEventListener("pointercancel", Ze);
|
|
23876
23935
|
let e = He.value;
|
|
23877
23936
|
if (He.value = null, !e) return;
|
|
23878
23937
|
let t = De(e.row, e.col), n = Oe(e.row, e.col);
|
|
@@ -23899,7 +23958,7 @@ var VE = [
|
|
|
23899
23958
|
breaks: e.nextBreaks
|
|
23900
23959
|
});
|
|
23901
23960
|
}
|
|
23902
|
-
function
|
|
23961
|
+
function $e(e) {
|
|
23903
23962
|
let t = e.target?.closest?.("[data-part='cell']");
|
|
23904
23963
|
return t ? {
|
|
23905
23964
|
r: Number(t.dataset.r),
|
|
@@ -23907,27 +23966,27 @@ var VE = [
|
|
|
23907
23966
|
el: t
|
|
23908
23967
|
} : null;
|
|
23909
23968
|
}
|
|
23910
|
-
function
|
|
23969
|
+
function et(e) {
|
|
23911
23970
|
if (e.button !== 0) return;
|
|
23912
23971
|
if (e.target.closest("[data-part='fill-handle']")) {
|
|
23913
23972
|
if (!je.value) return;
|
|
23914
|
-
e.preventDefault(), Ne.value = !0, Pe.value = null,
|
|
23973
|
+
e.preventDefault(), Ne.value = !0, Pe.value = null, tt();
|
|
23915
23974
|
return;
|
|
23916
23975
|
}
|
|
23917
|
-
let t =
|
|
23976
|
+
let t = $e(e);
|
|
23918
23977
|
if (!t) return;
|
|
23919
23978
|
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 }),
|
|
23979
|
+
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
23980
|
}
|
|
23922
|
-
function
|
|
23923
|
-
|
|
23981
|
+
function tt() {
|
|
23982
|
+
Bt.value?.hide(), window.addEventListener("pointermove", nt), window.addEventListener("pointerup", rt, { once: !0 });
|
|
23924
23983
|
}
|
|
23925
|
-
function
|
|
23984
|
+
function nt(e) {
|
|
23926
23985
|
let t = Je(e.clientX, e.clientY);
|
|
23927
23986
|
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
23987
|
}
|
|
23929
|
-
function
|
|
23930
|
-
if (window.removeEventListener("pointermove",
|
|
23988
|
+
function rt() {
|
|
23989
|
+
if (window.removeEventListener("pointermove", nt), Ne.value) {
|
|
23931
23990
|
let e = Fe.value, t = je.value;
|
|
23932
23991
|
Ne.value = !1, Pe.value = null, e && t && (i("autofill", {
|
|
23933
23992
|
source: Le(t),
|
|
@@ -23942,39 +24001,39 @@ var VE = [
|
|
|
23942
24001
|
}
|
|
23943
24002
|
Me.value = !1;
|
|
23944
24003
|
}
|
|
23945
|
-
function
|
|
24004
|
+
function it(e) {
|
|
23946
24005
|
if (Me.value || Ne.value || He.value) return;
|
|
23947
|
-
let t =
|
|
24006
|
+
let t = $e(e);
|
|
23948
24007
|
if (!t) return;
|
|
23949
24008
|
let n = Q(t.r, t.c);
|
|
23950
|
-
n.tip.length ?
|
|
24009
|
+
n.tip.length ? Bt.value?.show(t.el, n.tip, t.r <= 1) : Bt.value?.hide();
|
|
23951
24010
|
}
|
|
23952
|
-
function
|
|
23953
|
-
|
|
24011
|
+
function at() {
|
|
24012
|
+
Bt.value?.hide();
|
|
23954
24013
|
}
|
|
23955
|
-
function
|
|
23956
|
-
let t =
|
|
23957
|
-
t && r.editable && !r.days[t.c].outside &&
|
|
24014
|
+
function ot(e) {
|
|
24015
|
+
let t = $e(e);
|
|
24016
|
+
t && r.editable && !r.days[t.c].outside && st(t.r, t.c);
|
|
23958
24017
|
}
|
|
23959
|
-
function
|
|
24018
|
+
function st(e, t) {
|
|
23960
24019
|
i("open", {
|
|
23961
24020
|
...De(e, t),
|
|
23962
24021
|
cell: Oe(e, t)
|
|
23963
24022
|
});
|
|
23964
24023
|
}
|
|
23965
|
-
let
|
|
23966
|
-
function
|
|
24024
|
+
let ct = U(null), lt = U(null);
|
|
24025
|
+
function ut(e) {
|
|
23967
24026
|
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),
|
|
24027
|
+
let t = $e(e);
|
|
24028
|
+
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
24029
|
el: t.el,
|
|
23971
24030
|
r: t.r,
|
|
23972
24031
|
c: t.c
|
|
23973
24032
|
}, B(() => document.querySelector(`#${_}-menu [role='menuitem']`)?.focus()));
|
|
23974
24033
|
}
|
|
23975
|
-
let
|
|
23976
|
-
if (!
|
|
23977
|
-
let e = Q(
|
|
24034
|
+
let dt = D(() => {
|
|
24035
|
+
if (!ct.value) return [];
|
|
24036
|
+
let e = Q(ct.value.r, ct.value.c).kind !== "empty";
|
|
23978
24037
|
return [
|
|
23979
24038
|
{
|
|
23980
24039
|
k: "open",
|
|
@@ -24008,15 +24067,15 @@ var VE = [
|
|
|
24008
24067
|
}
|
|
24009
24068
|
];
|
|
24010
24069
|
});
|
|
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
24070
|
function ft(e) {
|
|
24016
|
-
let t =
|
|
24017
|
-
|
|
24071
|
+
let t = ct.value;
|
|
24072
|
+
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
24073
|
}
|
|
24019
24074
|
function pt(e) {
|
|
24075
|
+
let t = [...lt.value?.querySelectorAll("[role='menuitem']:not([disabled])") ?? document.querySelectorAll(`#${_}-menu [role='menuitem']:not([disabled])`)], n = t.indexOf(document.activeElement);
|
|
24076
|
+
(e.key === "ArrowDown" || e.key === "ArrowUp") && (e.preventDefault(), t[(n + (e.key === "ArrowDown" ? 1 : -1) + t.length) % t.length]?.focus());
|
|
24077
|
+
}
|
|
24078
|
+
function mt(e) {
|
|
24020
24079
|
let t = je.value;
|
|
24021
24080
|
if (t && y.value === "cell" && r.editable) {
|
|
24022
24081
|
if (e === "copy" || e === "cut") Ie.value = {
|
|
@@ -24045,7 +24104,7 @@ var VE = [
|
|
|
24045
24104
|
}
|
|
24046
24105
|
}
|
|
24047
24106
|
}
|
|
24048
|
-
function
|
|
24107
|
+
function ht(e) {
|
|
24049
24108
|
let t = e.target;
|
|
24050
24109
|
if (t !== w.value && t.closest("input, textarea, select, [contenteditable='true'], button")) return;
|
|
24051
24110
|
let n = e.key.toLowerCase(), a = e.metaKey || e.ctrlKey, o = {
|
|
@@ -24060,42 +24119,47 @@ var VE = [
|
|
|
24060
24119
|
r: 0,
|
|
24061
24120
|
c: 0
|
|
24062
24121
|
}, 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
|
-
|
|
24122
|
+
Be(s, c, e.shiftKey && !!ke.value), B(() => {
|
|
24123
|
+
let e = document.getElementById(`${_}-${s}-${c}`);
|
|
24124
|
+
e?.scrollIntoView?.({
|
|
24125
|
+
block: "nearest",
|
|
24126
|
+
inline: "nearest"
|
|
24127
|
+
});
|
|
24128
|
+
let t = Q(s, c).tip;
|
|
24129
|
+
y.value === "chart" && e && t.length ? Bt.value?.show(e, t, s <= 1) : Bt.value?.hide();
|
|
24130
|
+
});
|
|
24131
|
+
} else if (n === "escape") Ze(), (je.value || Ie.value) && e.preventDefault(), ze(), Bt.value?.hide();
|
|
24132
|
+
else if (n === "enter" && je.value) e.preventDefault(), r.editable && !r.days[je.value.c0].outside && st(je.value.r0, je.value.c0);
|
|
24069
24133
|
else if (y.value === "cell" && r.editable) {
|
|
24070
|
-
if (a && n === "c")
|
|
24071
|
-
else if (a && n === "x")
|
|
24072
|
-
else if (a && n === "v")
|
|
24134
|
+
if (a && n === "c") mt("copy");
|
|
24135
|
+
else if (a && n === "x") mt("cut");
|
|
24136
|
+
else if (a && n === "v") mt("paste");
|
|
24073
24137
|
else if (a && n === "z") e.preventDefault(), e.shiftKey ? i("redo") : i("undo");
|
|
24074
|
-
else if ((n === "delete" || n === "backspace") && je.value) e.preventDefault(),
|
|
24138
|
+
else if ((n === "delete" || n === "backspace") && je.value) e.preventDefault(), mt("delete");
|
|
24075
24139
|
else return;
|
|
24076
24140
|
}
|
|
24077
24141
|
}
|
|
24078
|
-
let
|
|
24079
|
-
function
|
|
24080
|
-
|
|
24142
|
+
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)}` : "";
|
|
24143
|
+
function Ct(e, t) {
|
|
24144
|
+
bt.value = t, Bt.value?.hide();
|
|
24081
24145
|
try {
|
|
24082
24146
|
e.dataTransfer?.setData("text/plain", String(t.key)), e.dataTransfer && (e.dataTransfer.effectAllowed = "copy");
|
|
24083
24147
|
} catch {}
|
|
24084
24148
|
}
|
|
24085
|
-
function
|
|
24086
|
-
|
|
24149
|
+
function wt() {
|
|
24150
|
+
bt.value = null, xt.value = null;
|
|
24087
24151
|
}
|
|
24088
|
-
function
|
|
24089
|
-
if (!
|
|
24090
|
-
let t =
|
|
24152
|
+
function Tt(e) {
|
|
24153
|
+
if (!bt.value && kt.value == null || kt.value != null) return;
|
|
24154
|
+
let t = $e(e);
|
|
24091
24155
|
if (!t) return;
|
|
24092
24156
|
e.preventDefault();
|
|
24093
24157
|
let n = `${t.r}-${t.c}`;
|
|
24094
|
-
|
|
24158
|
+
xt.value !== n && (xt.value = n);
|
|
24095
24159
|
}
|
|
24096
|
-
function
|
|
24097
|
-
let t =
|
|
24098
|
-
if (
|
|
24160
|
+
function Et(e) {
|
|
24161
|
+
let t = bt.value, n = $e(e);
|
|
24162
|
+
if (wt(), !t || !n) return;
|
|
24099
24163
|
e.preventDefault();
|
|
24100
24164
|
let r = Q(n.r, n.c).locked || Q(n.r, n.c).outside ? "locked" : Q(n.r, n.c).readonly ? "readonly" : null;
|
|
24101
24165
|
r ? i("refuse", {
|
|
@@ -24106,7 +24170,7 @@ var VE = [
|
|
|
24106
24170
|
targets: [De(n.r, n.c)]
|
|
24107
24171
|
});
|
|
24108
24172
|
}
|
|
24109
|
-
function
|
|
24173
|
+
function Dt(e, t) {
|
|
24110
24174
|
if (e.key !== "Enter" && e.key !== " ") return;
|
|
24111
24175
|
e.preventDefault();
|
|
24112
24176
|
let n = je.value;
|
|
@@ -24118,7 +24182,7 @@ var VE = [
|
|
|
24118
24182
|
targets: a
|
|
24119
24183
|
});
|
|
24120
24184
|
}
|
|
24121
|
-
function
|
|
24185
|
+
function Ot(e, t) {
|
|
24122
24186
|
let n = [];
|
|
24123
24187
|
t.times?.length && n.push({
|
|
24124
24188
|
label: a.value.shift,
|
|
@@ -24126,21 +24190,21 @@ var VE = [
|
|
|
24126
24190
|
}), t.breaks?.length && n.push({
|
|
24127
24191
|
label: a.value.break,
|
|
24128
24192
|
values: t.breaks.map((e) => ME(e))
|
|
24129
|
-
}), n.length &&
|
|
24193
|
+
}), n.length && Bt.value?.show(e.currentTarget, n, !0);
|
|
24130
24194
|
}
|
|
24131
|
-
let
|
|
24132
|
-
function
|
|
24133
|
-
|
|
24195
|
+
let kt = U(null), At = U(null);
|
|
24196
|
+
function jt(e, t) {
|
|
24197
|
+
kt.value = t, Bt.value?.hide();
|
|
24134
24198
|
try {
|
|
24135
24199
|
e.dataTransfer?.setData("text/plain", String(r.members[t].key)), e.dataTransfer && (e.dataTransfer.effectAllowed = "move");
|
|
24136
24200
|
} catch {}
|
|
24137
24201
|
}
|
|
24138
|
-
function jt(e, t) {
|
|
24139
|
-
Ot.value != null && (e.preventDefault(), kt.value = t);
|
|
24140
|
-
}
|
|
24141
24202
|
function Mt(e, t) {
|
|
24142
|
-
|
|
24143
|
-
|
|
24203
|
+
kt.value != null && (e.preventDefault(), At.value = t);
|
|
24204
|
+
}
|
|
24205
|
+
function Nt(e, t) {
|
|
24206
|
+
let n = kt.value;
|
|
24207
|
+
if (kt.value = null, At.value = null, n == null || n === t) return;
|
|
24144
24208
|
e.preventDefault();
|
|
24145
24209
|
let a = r.members.map((e) => e.key), [o] = a.splice(n, 1);
|
|
24146
24210
|
a.splice(t, 0, o), i("reorder", {
|
|
@@ -24149,17 +24213,17 @@ var VE = [
|
|
|
24149
24213
|
keys: a
|
|
24150
24214
|
});
|
|
24151
24215
|
}
|
|
24152
|
-
function
|
|
24153
|
-
|
|
24216
|
+
function Pt() {
|
|
24217
|
+
kt.value = null, At.value = null;
|
|
24154
24218
|
}
|
|
24155
|
-
function
|
|
24219
|
+
function Ft(e, t) {
|
|
24156
24220
|
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"),
|
|
24221
|
+
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
24222
|
let r = He.value ? We(e, t) : null;
|
|
24159
24223
|
return r && n.push(r.state), n.join(" ") || void 0;
|
|
24160
24224
|
}
|
|
24161
|
-
let
|
|
24162
|
-
let e =
|
|
24225
|
+
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(() => {
|
|
24226
|
+
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
24227
|
return [
|
|
24164
24228
|
{
|
|
24165
24229
|
n: a.value.copy,
|
|
@@ -24186,30 +24250,30 @@ var VE = [
|
|
|
24186
24250
|
k: "Delete"
|
|
24187
24251
|
}
|
|
24188
24252
|
];
|
|
24189
|
-
}),
|
|
24253
|
+
}), zt = D(() => {
|
|
24190
24254
|
if (y.value === "chart") return "";
|
|
24191
24255
|
let e = je.value;
|
|
24192
24256
|
return e ? o(a.value.selected, { n: (e.r1 - e.r0 + 1) * (e.c1 - e.c0 + 1) }) : a.value.selectHint;
|
|
24193
|
-
}),
|
|
24257
|
+
}), Bt = U(null), Vt = D(() => {
|
|
24194
24258
|
let [e, t] = r.chartRange, n = [];
|
|
24195
24259
|
for (let r = e; r <= t; r += 360) n.push({
|
|
24196
24260
|
m: r,
|
|
24197
24261
|
t: String(Math.floor(r / 60))
|
|
24198
24262
|
});
|
|
24199
24263
|
return n;
|
|
24200
|
-
}),
|
|
24264
|
+
}), Ht = D(() => ({
|
|
24201
24265
|
"--sg-col": `${L.value}px`,
|
|
24202
24266
|
"--sg-n": String(I.value),
|
|
24203
24267
|
transform: R.value < 1 ? `scale(${R.value})` : void 0,
|
|
24204
24268
|
width: R.value < 1 ? `${ne.value}px` : void 0
|
|
24205
|
-
})),
|
|
24269
|
+
})), Ut = D(() => R.value < 1 && N.value ? { height: `${Math.ceil(N.value * R.value)}px` } : void 0);
|
|
24206
24270
|
Y([
|
|
24207
24271
|
() => r.days.length,
|
|
24208
24272
|
() => r.members.length,
|
|
24209
24273
|
L,
|
|
24210
24274
|
y
|
|
24211
24275
|
], () => B(fe)), se(() => {
|
|
24212
|
-
de?.disconnect(), window.removeEventListener("pointermove",
|
|
24276
|
+
de?.disconnect(), Ze(), window.removeEventListener("pointerup", rt), window.removeEventListener("pointermove", nt), window.removeEventListener("pointermove", Xe);
|
|
24213
24277
|
}), t({
|
|
24214
24278
|
zoomIn: oe,
|
|
24215
24279
|
zoomOut: ae,
|
|
@@ -24221,7 +24285,7 @@ var VE = [
|
|
|
24221
24285
|
canZoomOut: re,
|
|
24222
24286
|
selection: je
|
|
24223
24287
|
});
|
|
24224
|
-
let
|
|
24288
|
+
let Wt = (e) => e.d;
|
|
24225
24289
|
return (t, n) => (H(), A("div", {
|
|
24226
24290
|
ref_key: "root",
|
|
24227
24291
|
ref: C,
|
|
@@ -24280,13 +24344,13 @@ var VE = [
|
|
|
24280
24344
|
"label",
|
|
24281
24345
|
"options"
|
|
24282
24346
|
])], 64)) : k("", !0)])) : k("", !0),
|
|
24283
|
-
j("div", UE, [
|
|
24347
|
+
j("div", UE, [yt.value ? (H(), A("aside", {
|
|
24284
24348
|
key: 0,
|
|
24285
24349
|
"data-part": "patterns",
|
|
24286
24350
|
"aria-label": a.value.patternSearch
|
|
24287
24351
|
}, [G(t.$slots, "patterns", {
|
|
24288
|
-
patterns:
|
|
24289
|
-
query:
|
|
24352
|
+
patterns: vt.value,
|
|
24353
|
+
query: _t.value
|
|
24290
24354
|
}, () => [
|
|
24291
24355
|
e.patternEdit && e.editable ? (H(), A("button", {
|
|
24292
24356
|
key: 0,
|
|
@@ -24302,36 +24366,36 @@ var VE = [
|
|
|
24302
24366
|
size: "sm",
|
|
24303
24367
|
line: ""
|
|
24304
24368
|
}), Se(j("input", {
|
|
24305
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
24369
|
+
"onUpdate:modelValue": n[1] ||= (e) => _t.value = e,
|
|
24306
24370
|
type: "text",
|
|
24307
24371
|
placeholder: a.value.patternSearch,
|
|
24308
24372
|
"aria-label": a.value.patternSearch
|
|
24309
|
-
}, null, 8, KE), [[be,
|
|
24310
|
-
(H(!0), A(x, null, W(
|
|
24373
|
+
}, null, 8, KE), [[be, _t.value]])]),
|
|
24374
|
+
(H(!0), A(x, null, W(vt.value, (t) => (H(), A("div", {
|
|
24311
24375
|
key: t.key,
|
|
24312
24376
|
"data-part": "pattern",
|
|
24313
24377
|
role: "button",
|
|
24314
24378
|
tabindex: "0",
|
|
24315
24379
|
draggable: e.editable ? "true" : "false",
|
|
24316
24380
|
"data-tip": a.value.patternDrag,
|
|
24317
|
-
"aria-label": `${t.name} ${
|
|
24318
|
-
onDragstart: (e) =>
|
|
24319
|
-
onDragend:
|
|
24320
|
-
onKeydown: (e) =>
|
|
24321
|
-
onPointerenter: (e) =>
|
|
24322
|
-
onPointerleave:
|
|
24381
|
+
"aria-label": `${t.name} ${St(t)}`,
|
|
24382
|
+
onDragstart: (e) => Ct(e, t),
|
|
24383
|
+
onDragend: wt,
|
|
24384
|
+
onKeydown: (e) => Dt(e, t),
|
|
24385
|
+
onPointerenter: (e) => Ot(e, t),
|
|
24386
|
+
onPointerleave: at
|
|
24323
24387
|
}, [j("span", {
|
|
24324
24388
|
"data-part": "pattern-swatch",
|
|
24325
24389
|
style: V({ background: t.color }),
|
|
24326
24390
|
"aria-hidden": "true"
|
|
24327
|
-
}, null, 4), j("span", null, [j("b", JE, q(t.name), 1),
|
|
24328
|
-
|
|
24391
|
+
}, 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)),
|
|
24392
|
+
_t.value && !vt.value.length ? (H(), O(ai, {
|
|
24329
24393
|
key: 1,
|
|
24330
24394
|
"data-part": "pattern-none",
|
|
24331
24395
|
role: "status",
|
|
24332
24396
|
size: "sm",
|
|
24333
24397
|
icon: "search",
|
|
24334
|
-
text: o(a.value.patternNone, { q:
|
|
24398
|
+
text: o(a.value.patternNone, { q: _t.value })
|
|
24335
24399
|
}, null, 8, ["text"])) : k("", !0),
|
|
24336
24400
|
e.editable ? (H(), A("span", XE, [F($, {
|
|
24337
24401
|
name: "info",
|
|
@@ -24348,25 +24412,25 @@ var VE = [
|
|
|
24348
24412
|
"aria-multiselectable": "true",
|
|
24349
24413
|
"aria-rowcount": e.members.length + 1,
|
|
24350
24414
|
"aria-colcount": e.days.length + 1,
|
|
24351
|
-
"aria-activedescendant":
|
|
24415
|
+
"aria-activedescendant": gt.value,
|
|
24352
24416
|
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:
|
|
24417
|
+
onKeydown: ht,
|
|
24418
|
+
onPointerdown: et,
|
|
24419
|
+
onPointerover: it,
|
|
24420
|
+
onPointerleave: at,
|
|
24421
|
+
onDblclick: ot,
|
|
24422
|
+
onContextmenu: ut,
|
|
24423
|
+
onDragover: Tt,
|
|
24424
|
+
onDrop: Et
|
|
24361
24425
|
}, [j("div", {
|
|
24362
24426
|
"data-part": "scaler",
|
|
24363
|
-
style: V(
|
|
24427
|
+
style: V(Ut.value)
|
|
24364
24428
|
}, [j("div", {
|
|
24365
24429
|
ref_key: "gridEl",
|
|
24366
24430
|
ref: T,
|
|
24367
24431
|
"data-part": "grid",
|
|
24368
24432
|
role: "presentation",
|
|
24369
|
-
style: V(
|
|
24433
|
+
style: V(Ht.value)
|
|
24370
24434
|
}, [
|
|
24371
24435
|
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
24436
|
key: e.d.date,
|
|
@@ -24378,8 +24442,8 @@ var VE = [
|
|
|
24378
24442
|
"data-tone": e.tone,
|
|
24379
24443
|
"data-today": e.today ? "" : void 0,
|
|
24380
24444
|
"data-unpublished": e.unpub ? "" : void 0,
|
|
24381
|
-
onClick: (t) => i("day-open",
|
|
24382
|
-
onKeydown: Ce(Z((t) => i("day-open",
|
|
24445
|
+
onClick: (t) => i("day-open", Wt(e)),
|
|
24446
|
+
onKeydown: Ce(Z((t) => i("day-open", Wt(e)), ["prevent"]), ["enter"])
|
|
24383
24447
|
}, [
|
|
24384
24448
|
J(s) === "button" ? (H(), A("span", nD, [e.unpub ? (H(), O($, {
|
|
24385
24449
|
key: 0,
|
|
@@ -24406,12 +24470,12 @@ var VE = [
|
|
|
24406
24470
|
type: "button",
|
|
24407
24471
|
"data-part": "chart-button",
|
|
24408
24472
|
"aria-label": `${e.dateText} ${a.value.dayChart}`,
|
|
24409
|
-
onClick: (t) => i("day-chart",
|
|
24473
|
+
onClick: (t) => i("day-chart", Wt(e))
|
|
24410
24474
|
}, [F($, {
|
|
24411
24475
|
name: "chart",
|
|
24412
24476
|
size: "sm"
|
|
24413
24477
|
}), _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(
|
|
24478
|
+
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
24479
|
J(s) === "date" ? (H(), A(x, { key: 2 }, [e.locked ? (H(), O($, {
|
|
24416
24480
|
key: 0,
|
|
24417
24481
|
name: "lock",
|
|
@@ -24446,9 +24510,9 @@ var VE = [
|
|
|
24446
24510
|
}, [j("div", {
|
|
24447
24511
|
"data-part": "name",
|
|
24448
24512
|
role: "rowheader",
|
|
24449
|
-
"data-state":
|
|
24450
|
-
onDragover: (e) =>
|
|
24451
|
-
onDrop: Z((e) =>
|
|
24513
|
+
"data-state": At.value === t.r ? "drop" : void 0,
|
|
24514
|
+
onDragover: (e) => Mt(e, t.r),
|
|
24515
|
+
onDrop: Z((e) => Nt(e, t.r), ["stop"])
|
|
24452
24516
|
}, [
|
|
24453
24517
|
e.editable ? (H(), A("span", {
|
|
24454
24518
|
key: 0,
|
|
@@ -24456,8 +24520,8 @@ var VE = [
|
|
|
24456
24520
|
draggable: "true",
|
|
24457
24521
|
"data-tip": a.value.reorder,
|
|
24458
24522
|
"aria-label": a.value.reorder,
|
|
24459
|
-
onDragstart: (e) =>
|
|
24460
|
-
onDragend:
|
|
24523
|
+
onDragstart: (e) => jt(e, t.r),
|
|
24524
|
+
onDragend: Pt
|
|
24461
24525
|
}, [F($, {
|
|
24462
24526
|
name: "grip",
|
|
24463
24527
|
size: "sm",
|
|
@@ -24495,7 +24559,7 @@ var VE = [
|
|
|
24495
24559
|
"data-today": r.today ? "" : void 0,
|
|
24496
24560
|
"data-locked": Q(t.r, o).locked && g.value.locked ? "" : void 0,
|
|
24497
24561
|
"data-outside": r.d.outside ? "" : void 0,
|
|
24498
|
-
"data-state":
|
|
24562
|
+
"data-state": Ft(t.r, o),
|
|
24499
24563
|
"data-edge": Ve(je.value, t.r, o),
|
|
24500
24564
|
"data-clip": Ie.value && J(IE)(Ie.value.rect, t.r, o) ? Ie.value.mode : void 0,
|
|
24501
24565
|
"data-clip-edge": Ie.value ? Ve(Ie.value.rect, t.r, o) : void 0,
|
|
@@ -24558,28 +24622,28 @@ var VE = [
|
|
|
24558
24622
|
key: "b" + n,
|
|
24559
24623
|
"data-part": "bar",
|
|
24560
24624
|
style: V(Ke(e)),
|
|
24561
|
-
onPointerdown: (e) => Ye(e, t.r, o, "move")
|
|
24625
|
+
onPointerdown: (e) => Ye(e, t.r, o, "move", n)
|
|
24562
24626
|
}, null, 44, jD))), 128)),
|
|
24563
24627
|
(H(!0), A(x, null, W(qe(t.r, o).breaks, (e, t) => (H(), A("em", {
|
|
24564
24628
|
key: "k" + t,
|
|
24565
24629
|
"data-part": "break",
|
|
24566
24630
|
style: V(Ke(e))
|
|
24567
24631
|
}, null, 4))), 128)),
|
|
24568
|
-
e.editable && !Q(t.r, o).locked
|
|
24632
|
+
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
24633
|
"data-part": "handle",
|
|
24570
24634
|
"data-side": "start",
|
|
24571
|
-
title: a.value.resizeStart
|
|
24572
|
-
style: V({ left: Ke(
|
|
24573
|
-
onPointerdown: (e) => Ye(e, t.r, o, "start")
|
|
24635
|
+
title: `${a.value.resizeStart} ${J(ME)(n)}`,
|
|
24636
|
+
style: V({ left: Ke(n).left }),
|
|
24637
|
+
onPointerdown: (e) => Ye(e, t.r, o, "start", r)
|
|
24574
24638
|
}, null, 44, MD), j("b", {
|
|
24575
24639
|
"data-part": "handle",
|
|
24576
24640
|
"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)
|
|
24641
|
+
title: `${a.value.resizeEnd} ${J(ME)(n)}`,
|
|
24642
|
+
style: V({ left: `${J(NE)(n.end, e.chartRange)}%` }),
|
|
24643
|
+
onPointerdown: (e) => Ye(e, t.r, o, "end", r)
|
|
24644
|
+
}, null, 44, ND)], 64))), 128)) : k("", !0)
|
|
24581
24645
|
]), 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
|
-
|
|
24646
|
+
It(t.r, o) ? (H(), A("span", FD)) : k("", !0),
|
|
24583
24647
|
Q(t.r, o).locked && g.value.locked ? (H(), O($, {
|
|
24584
24648
|
key: 3,
|
|
24585
24649
|
line: "",
|
|
@@ -24601,7 +24665,7 @@ var VE = [
|
|
|
24601
24665
|
"data-state": e.shortage ? "short" : "ok",
|
|
24602
24666
|
"data-tip": e.shortTip || void 0
|
|
24603
24667
|
}, 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(
|
|
24668
|
+
], 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
24669
|
key: e.n,
|
|
24606
24670
|
"data-part": "hint"
|
|
24607
24671
|
}, [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 +24678,35 @@ var VE = [
|
|
|
24614
24678
|
key: e,
|
|
24615
24679
|
"data-part": "hint"
|
|
24616
24680
|
}, q(e), 1))), 128))
|
|
24617
|
-
], 64)),
|
|
24681
|
+
], 64)), zt.value ? (H(), A("span", KD, q(zt.value), 1)) : k("", !0)], 64)) : k("", !0)])) : k("", !0)])]),
|
|
24618
24682
|
F(DE, {
|
|
24619
24683
|
ref_key: "tip",
|
|
24620
|
-
ref:
|
|
24684
|
+
ref: Bt,
|
|
24621
24685
|
form: J(f)
|
|
24622
24686
|
}, null, 8, ["form"]),
|
|
24623
24687
|
F(Sf, { root: C.value }, null, 8, ["root"]),
|
|
24624
24688
|
F(fn, {
|
|
24625
24689
|
id: `${J(_)}-menu`,
|
|
24626
|
-
open: !!
|
|
24627
|
-
anchor:
|
|
24690
|
+
open: !!ct.value,
|
|
24691
|
+
anchor: ct.value?.el ?? null,
|
|
24628
24692
|
placement: "right-start",
|
|
24629
24693
|
ar: "shift-grid-menu",
|
|
24630
24694
|
role: "menu",
|
|
24631
|
-
onClose: n[4] ||= (e) =>
|
|
24695
|
+
onClose: n[4] ||= (e) => ct.value = null
|
|
24632
24696
|
}, {
|
|
24633
24697
|
default: X(() => [j("div", {
|
|
24634
24698
|
ref_key: "menuPanel",
|
|
24635
|
-
ref:
|
|
24699
|
+
ref: lt,
|
|
24636
24700
|
"data-part": "menu",
|
|
24637
|
-
onKeydown:
|
|
24638
|
-
}, [(H(!0), A(x, null, W(
|
|
24701
|
+
onKeydown: pt
|
|
24702
|
+
}, [(H(!0), A(x, null, W(dt.value, (e) => (H(), A("button", {
|
|
24639
24703
|
key: e.k,
|
|
24640
24704
|
type: "button",
|
|
24641
24705
|
"data-part": "menu-item",
|
|
24642
24706
|
role: "menuitem",
|
|
24643
24707
|
"data-item": e.k === "open" ? e.ic === "pen" ? "edit" : "add" : e.k,
|
|
24644
24708
|
disabled: e.dis,
|
|
24645
|
-
onClick: (t) =>
|
|
24709
|
+
onClick: (t) => ft(e.k)
|
|
24646
24710
|
}, [F($, {
|
|
24647
24711
|
name: e.ic,
|
|
24648
24712
|
size: "sm"
|
|
@@ -26320,23 +26384,18 @@ var VE = [
|
|
|
26320
26384
|
"disabled",
|
|
26321
26385
|
"size"
|
|
26322
26386
|
]),
|
|
26323
|
-
e.lookup ? (H(), O(Nt, {
|
|
26387
|
+
e.lookup && (o.value === "failed" || o.value === "not-found") ? (H(), O(Nt, {
|
|
26324
26388
|
key: 0,
|
|
26325
26389
|
"data-part": "lookup",
|
|
26326
26390
|
tone: "secondary",
|
|
26327
26391
|
icon: "search",
|
|
26328
26392
|
size: e.size,
|
|
26329
26393
|
disabled: e.disabled || a(e.modelValue ?? "").length !== 8,
|
|
26330
|
-
loading: o.value === "searching",
|
|
26331
26394
|
onClick: u
|
|
26332
26395
|
}, {
|
|
26333
26396
|
default: X(() => [P(q(e.labels.lookup ?? "住所を入れる"), 1)]),
|
|
26334
26397
|
_: 1
|
|
26335
|
-
}, 8, [
|
|
26336
|
-
"size",
|
|
26337
|
-
"disabled",
|
|
26338
|
-
"loading"
|
|
26339
|
-
])) : k("", !0),
|
|
26398
|
+
}, 8, ["size", "disabled"])) : k("", !0),
|
|
26340
26399
|
j("span", Ek, q(_()), 1)
|
|
26341
26400
|
], 14, Tk));
|
|
26342
26401
|
}
|