@s_and_a/arrow-ui 0.1.11 → 0.1.12
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/{contracts-MlDifXRO.js → contracts-BsrLkSLM.js} +5 -5
- package/dist/{design-DQEH2c8P.js → design-HHaurir0.js} +1 -1
- package/dist/design.js +2 -2
- package/dist/index.js +248 -183
- package/dist/{requirements-D6YQEVU7.js → requirements-Ddub119-.js} +1 -1
- package/dist/requirements.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/ArList.contract.d.ts +2 -0
- package/dist/types/components/ArPeriodNav.vue.d.ts +1 -1
- package/dist/types/components/ArProfileCard.contract.d.ts +5 -0
- package/dist/types/components/ArProfileCard.vue.d.ts +8 -1
- package/dist/types/components/ArShiftDaySheet.vue.d.ts +1 -1
- package/dist/types/components/ArTable.contract.d.ts +2 -0
- package/dist/types/components/ArTag.contract.d.ts +4 -0
- package/dist/types/components/ArWizard.contract.d.ts +2 -0
- package/dist/types/components/ArWizard.vue.d.ts +1 -0
- package/dist/types/contracts.d.ts +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./contracts-
|
|
2
|
-
import { n as a, t as o } from "./design-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./contracts-BsrLkSLM.js";
|
|
2
|
+
import { n as a, t as o } from "./design-HHaurir0.js";
|
|
3
3
|
import { F as s, dn as c, fn as l, hn as u, mn as d, pn as f, z as p } from "./product-Dz4uZzyu.js";
|
|
4
|
-
import { r as m, t as h } from "./requirements-
|
|
4
|
+
import { r as m, t as h } from "./requirements-Ddub119-.js";
|
|
5
5
|
import { paletteNames as g, paletteSlots as _, toDeclarations as v, tokenNames as y } from "@s_and_a/arrow-ui-tokens";
|
|
6
6
|
import { Comment as b, Fragment as x, Teleport as S, Text as C, Transition as w, TransitionGroup as T, cloneVNode as E, computed as D, createBlock as O, createCommentVNode as k, createElementBlock as A, createElementVNode as j, createSlots as M, createStaticVNode as N, createTextVNode as P, createVNode as F, defineComponent as I, getCurrentInstance as ee, guardReactiveProps as L, h as te, inject as ne, isRef as R, isVNode as re, markRaw as ie, mergeProps as z, nextTick as B, normalizeClass as ae, normalizeProps as oe, normalizeStyle as V, onBeforeUnmount as se, onMounted as ce, onUpdated as le, openBlock as H, provide as ue, reactive as de, ref as U, render as fe, renderList as W, renderSlot as G, resolveComponent as pe, resolveDynamicComponent as K, shallowReactive as me, shallowRef as he, toDisplayString as q, toRef as ge, unref as J, useAttrs as _e, useId as ve, useSlots as ye, vModelText as be, vShow as xe, watch as Y, withCtx as X, withDirectives as Se, withKeys as Ce, withModifiers as Z } from "vue";
|
|
7
7
|
// src/icons.ts
|
|
@@ -4030,6 +4030,8 @@ var _r = (e) => e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey && e
|
|
|
4030
4030
|
type: Boolean,
|
|
4031
4031
|
default: !1
|
|
4032
4032
|
},
|
|
4033
|
+
block: { type: Boolean },
|
|
4034
|
+
minWidth: {},
|
|
4033
4035
|
closable: {
|
|
4034
4036
|
type: Boolean,
|
|
4035
4037
|
default: !1
|
|
@@ -4069,6 +4071,11 @@ var _r = (e) => e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey && e
|
|
|
4069
4071
|
"data-shape": e.shape,
|
|
4070
4072
|
"data-size": e.size,
|
|
4071
4073
|
"data-count": e.count || void 0,
|
|
4074
|
+
"data-block": e.block || void 0,
|
|
4075
|
+
style: V(e.minWidth === void 0 ? void 0 : {
|
|
4076
|
+
minWidth: `${e.minWidth}px`,
|
|
4077
|
+
justifyContent: "center"
|
|
4078
|
+
}),
|
|
4072
4079
|
"data-kind": e.checkable ? "checkable" : e.dashed ? "dashed" : void 0,
|
|
4073
4080
|
"data-state": a.value,
|
|
4074
4081
|
type: i.value ? "button" : void 0,
|
|
@@ -4103,6 +4110,8 @@ var _r = (e) => e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey && e
|
|
|
4103
4110
|
"data-shape",
|
|
4104
4111
|
"data-size",
|
|
4105
4112
|
"data-count",
|
|
4113
|
+
"data-block",
|
|
4114
|
+
"style",
|
|
4106
4115
|
"data-kind",
|
|
4107
4116
|
"data-state",
|
|
4108
4117
|
"type",
|
|
@@ -4375,6 +4384,10 @@ var _r = (e) => e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey && e
|
|
|
4375
4384
|
type: Boolean,
|
|
4376
4385
|
default: !1
|
|
4377
4386
|
},
|
|
4387
|
+
nextDisabled: {
|
|
4388
|
+
type: Boolean,
|
|
4389
|
+
default: !1
|
|
4390
|
+
},
|
|
4378
4391
|
layout: { default: "fluid" },
|
|
4379
4392
|
labels: { default: () => ({
|
|
4380
4393
|
steps: "手順",
|
|
@@ -4446,12 +4459,13 @@ var _r = (e) => e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey && e
|
|
|
4446
4459
|
key: 1,
|
|
4447
4460
|
tone: "primary",
|
|
4448
4461
|
intent: a.value.nextIntent,
|
|
4462
|
+
disabled: e.nextDisabled,
|
|
4449
4463
|
size: "lg",
|
|
4450
4464
|
onClick: n[1] ||= (e) => r("next")
|
|
4451
4465
|
}, {
|
|
4452
4466
|
default: X(() => [P(q(u.value), 1)]),
|
|
4453
4467
|
_: 1
|
|
4454
|
-
}, 8, ["intent"]))])) : k("", !0)
|
|
4468
|
+
}, 8, ["intent", "disabled"]))])) : k("", !0)
|
|
4455
4469
|
], 8, Ui));
|
|
4456
4470
|
}
|
|
4457
4471
|
}), Yi = ["data-block", "data-state"], Xi = ["aria-label"], Zi = {
|
|
@@ -6198,8 +6212,8 @@ var To = [
|
|
|
6198
6212
|
y: "",
|
|
6199
6213
|
m: "",
|
|
6200
6214
|
d: ""
|
|
6201
|
-
}), v = U(!1);
|
|
6202
|
-
function
|
|
6215
|
+
}), v = U(!1), y = U(null);
|
|
6216
|
+
function b(e) {
|
|
6203
6217
|
let t = _o(e);
|
|
6204
6218
|
(t || !v.value) && (_.value = t ? {
|
|
6205
6219
|
y: String(t.y),
|
|
@@ -6211,14 +6225,14 @@ var To = [
|
|
|
6211
6225
|
d: ""
|
|
6212
6226
|
});
|
|
6213
6227
|
}
|
|
6214
|
-
|
|
6215
|
-
h ||
|
|
6228
|
+
b(r.modelValue), Y(() => r.modelValue, (e) => {
|
|
6229
|
+
h || b(e);
|
|
6216
6230
|
});
|
|
6217
|
-
let
|
|
6231
|
+
let x = D(() => {
|
|
6218
6232
|
if (r.years) return [...r.years];
|
|
6219
6233
|
let e = Number(_.value.y) || n, t = Math.min(r.minYear ?? n - 5, e), i = Math.max(r.maxYear ?? n + 5, e);
|
|
6220
6234
|
return Array.from({ length: i - t + 1 }, (e, n) => p.value === "desc" ? i - n : t + n);
|
|
6221
|
-
}),
|
|
6235
|
+
}), S = D(() => {
|
|
6222
6236
|
let e = _o(r.modelValue);
|
|
6223
6237
|
if (!e) return null;
|
|
6224
6238
|
let t = ho(e.y, e.m, e.d);
|
|
@@ -6227,19 +6241,24 @@ var To = [
|
|
|
6227
6241
|
kind: t === 0 ? "sun" : t === 6 ? "sat" : "weekday"
|
|
6228
6242
|
};
|
|
6229
6243
|
});
|
|
6230
|
-
function
|
|
6231
|
-
let
|
|
6244
|
+
function C(e = !0) {
|
|
6245
|
+
let t = vo(_.value.y), n = vo(_.value.m), a = vo(_.value.d), o = t && n && a ? yo(t, n, a) : null;
|
|
6232
6246
|
v.value = !1;
|
|
6233
|
-
let
|
|
6234
|
-
if (l.value === "message" && (
|
|
6247
|
+
let s = _.value.m !== "" && (!n || n > 12) || _.value.d !== "" && (!a || a > 31);
|
|
6248
|
+
if (l.value === "message" && (s || t && n && a && o !== go(t, n, a)) && (v.value = !0, o = null), o !== r.modelValue && (h = !0, i("update:modelValue", o), B(() => {
|
|
6235
6249
|
h = !1;
|
|
6236
|
-
})), !v.value &&
|
|
6237
|
-
let e = _o(
|
|
6250
|
+
})), e && !v.value && o) {
|
|
6251
|
+
let e = _o(o);
|
|
6238
6252
|
_.value.m = m(e.m), _.value.d = m(e.d);
|
|
6239
6253
|
}
|
|
6240
6254
|
}
|
|
6241
|
-
function
|
|
6242
|
-
if (
|
|
6255
|
+
function w(e, t) {
|
|
6256
|
+
if (r.updateOnInput && C(!1), e !== "m" || !(t.target instanceof HTMLInputElement)) return;
|
|
6257
|
+
let n = t.target, i = vo(n.value);
|
|
6258
|
+
document.activeElement === n && i && i <= 12 && (n.value.length === 2 || i >= 2) && (y.value?.focus(), y.value?.select());
|
|
6259
|
+
}
|
|
6260
|
+
function T(e, t) {
|
|
6261
|
+
if (t.key === "Enter") return C();
|
|
6243
6262
|
if (t.key !== "ArrowUp" && t.key !== "ArrowDown") return;
|
|
6244
6263
|
t.preventDefault();
|
|
6245
6264
|
let r = t.key === "ArrowUp" ? 1 : -1, i = vo(_.value.y) ?? n, a = vo(_.value.m), o = vo(_.value.d);
|
|
@@ -6250,10 +6269,10 @@ var To = [
|
|
|
6250
6269
|
let e = mo(i, a ?? 1);
|
|
6251
6270
|
_.value.d = String(o ? (o - 1 + r + e) % e + 1 : 1);
|
|
6252
6271
|
}
|
|
6253
|
-
_.value.m && _.value.d &&
|
|
6272
|
+
_.value.m && _.value.d && C();
|
|
6254
6273
|
}
|
|
6255
|
-
function
|
|
6256
|
-
e === null ? (_.value.y = "",
|
|
6274
|
+
function E(e) {
|
|
6275
|
+
e === null ? (_.value.y = "", C()) : (_.value.y = String(e), C());
|
|
6257
6276
|
}
|
|
6258
6277
|
return (t, n) => (H(), A("span", {
|
|
6259
6278
|
"data-ar": "date-input",
|
|
@@ -6271,14 +6290,14 @@ var To = [
|
|
|
6271
6290
|
F(so, {
|
|
6272
6291
|
id: e.id,
|
|
6273
6292
|
"model-value": Number(_.value.y) || null,
|
|
6274
|
-
years:
|
|
6293
|
+
years: x.value,
|
|
6275
6294
|
"label-of": e.era ? J(lo) : void 0,
|
|
6276
6295
|
"allow-empty": f.value === "option",
|
|
6277
6296
|
placeholder: e.labels.empty ?? "未選択",
|
|
6278
6297
|
invalid: e.invalid,
|
|
6279
6298
|
disabled: e.disabled,
|
|
6280
6299
|
label: `${e.label ?? ""}${e.labels.year}`,
|
|
6281
|
-
"onUpdate:modelValue":
|
|
6300
|
+
"onUpdate:modelValue": E
|
|
6282
6301
|
}, null, 8, [
|
|
6283
6302
|
"id",
|
|
6284
6303
|
"model-value",
|
|
@@ -6300,13 +6319,15 @@ var To = [
|
|
|
6300
6319
|
disabled: e.disabled,
|
|
6301
6320
|
"aria-label": `${e.label ?? ""}${e.labels.month}`,
|
|
6302
6321
|
"aria-invalid": e.invalid || v.value || void 0,
|
|
6303
|
-
onInput: n[1] ||= (
|
|
6304
|
-
onBlur:
|
|
6305
|
-
onKeydown: n[
|
|
6322
|
+
onInput: n[1] ||= (e) => w("m", e),
|
|
6323
|
+
onBlur: n[2] ||= (e) => C(),
|
|
6324
|
+
onKeydown: n[3] ||= (e) => T("m", e)
|
|
6306
6325
|
}, null, 40, Do), [[be, _.value.m]]),
|
|
6307
6326
|
j("span", Oo, q(e.labels.month), 1),
|
|
6308
6327
|
Se(j("input", {
|
|
6309
|
-
|
|
6328
|
+
ref_key: "dayInput",
|
|
6329
|
+
ref: y,
|
|
6330
|
+
"onUpdate:modelValue": n[4] ||= (e) => _.value.d = e,
|
|
6310
6331
|
"data-part": "day",
|
|
6311
6332
|
inputmode: "numeric",
|
|
6312
6333
|
autocomplete: "off",
|
|
@@ -6314,16 +6335,16 @@ var To = [
|
|
|
6314
6335
|
disabled: e.disabled,
|
|
6315
6336
|
"aria-label": `${e.label ?? ""}${e.labels.day}`,
|
|
6316
6337
|
"aria-invalid": e.invalid || v.value || void 0,
|
|
6317
|
-
onInput: n[
|
|
6318
|
-
onBlur:
|
|
6319
|
-
onKeydown: n[
|
|
6338
|
+
onInput: n[5] ||= (e) => w("d", e),
|
|
6339
|
+
onBlur: n[6] ||= (e) => C(),
|
|
6340
|
+
onKeydown: n[7] ||= (e) => T("d", e)
|
|
6320
6341
|
}, null, 40, ko), [[be, _.value.d]]),
|
|
6321
6342
|
j("span", Ao, q(e.labels.day), 1),
|
|
6322
6343
|
v.value ? (H(), A("span", jo, q(e.labels.invalidDate ?? "無効な日付"), 1)) : e.showWeekday ? (H(), A("span", {
|
|
6323
6344
|
key: 1,
|
|
6324
6345
|
"data-part": "weekday",
|
|
6325
|
-
"data-kind":
|
|
6326
|
-
}, q(
|
|
6346
|
+
"data-kind": S.value?.kind
|
|
6347
|
+
}, q(S.value ? `(${S.value.text})` : ""), 9, Mo)) : k("", !0)
|
|
6327
6348
|
], 8, To));
|
|
6328
6349
|
}
|
|
6329
6350
|
}), Po = { "data-part": "head" }, Fo = ["aria-label"], Io = ["id"], Lo = ["aria-label"], Ro = ["aria-labelledby"], zo = {
|
|
@@ -13635,7 +13656,7 @@ var Fl = [
|
|
|
13635
13656
|
}, rm = ["tabindex", "aria-label"], im = {
|
|
13636
13657
|
key: 0,
|
|
13637
13658
|
"data-part": "group-title"
|
|
13638
|
-
}, am = ["aria-label"], om = ["data-state"], sm = {
|
|
13659
|
+
}, am = ["aria-label"], om = ["data-state", "data-color"], sm = {
|
|
13639
13660
|
key: 0,
|
|
13640
13661
|
"data-part": "avatar"
|
|
13641
13662
|
}, cm = { "data-part": "meta" }, lm = { "data-part": "title" }, um = {
|
|
@@ -13711,7 +13732,9 @@ var Fl = [
|
|
|
13711
13732
|
}, [(H(!0), A(x, null, W(n.items, ({ item: n, index: i }) => (H(), A("li", {
|
|
13712
13733
|
key: n.key,
|
|
13713
13734
|
"data-part": "item",
|
|
13714
|
-
"data-state": n.off ? "off" : void 0
|
|
13735
|
+
"data-state": n.off ? "off" : void 0,
|
|
13736
|
+
"data-color": n.color ? "" : void 0,
|
|
13737
|
+
style: V(n.color ? { "--ar-list-color": n.color } : void 0)
|
|
13715
13738
|
}, [G(t.$slots, "item", {
|
|
13716
13739
|
item: n,
|
|
13717
13740
|
index: i
|
|
@@ -13731,7 +13754,7 @@ var Fl = [
|
|
|
13731
13754
|
item: n,
|
|
13732
13755
|
index: i
|
|
13733
13756
|
})])) : k("", !0)
|
|
13734
|
-
])],
|
|
13757
|
+
])], 12, om))), 128))], 8, am)]))), 128)) : (H(), A("div", fm, [G(t.$slots, "empty", {}, () => [F(ai, { text: e.emptyText }, null, 8, ["text"])])]))], 12, rm),
|
|
13735
13758
|
t.$slots.footer ? (H(), A("div", pm, [G(t.$slots, "footer")])) : k("", !0)
|
|
13736
13759
|
], 8, tm));
|
|
13737
13760
|
}
|
|
@@ -14409,7 +14432,7 @@ var Fl = [
|
|
|
14409
14432
|
style: V({ "--ar-pointer-size": `${e.size}px` })
|
|
14410
14433
|
}, [G(t.$slots, "default")], 12, Jm));
|
|
14411
14434
|
}
|
|
14412
|
-
}), Xm = ["data-layout"], Zm = { "data-part": "identity" }, Qm = { "data-part": "photo" }, $m = /* @__PURE__ */ I({
|
|
14435
|
+
}), Xm = ["data-layout"], Zm = { "data-part": "identity" }, Qm = { "data-part": "photo" }, $m = ["aria-label", "title"], eh = /* @__PURE__ */ I({
|
|
14413
14436
|
__name: "ArProfileCard",
|
|
14414
14437
|
props: {
|
|
14415
14438
|
layout: { default: "default" },
|
|
@@ -14418,16 +14441,22 @@ var Fl = [
|
|
|
14418
14441
|
kana: { default: void 0 },
|
|
14419
14442
|
code: { default: void 0 },
|
|
14420
14443
|
image: { default: void 0 },
|
|
14444
|
+
photoEditable: {
|
|
14445
|
+
type: Boolean,
|
|
14446
|
+
default: !1
|
|
14447
|
+
},
|
|
14448
|
+
photoLabel: { default: "写真を変更" },
|
|
14421
14449
|
items: { default: () => [] },
|
|
14422
14450
|
tags: { default: () => [] },
|
|
14423
14451
|
tagsLabel: { default: void 0 }
|
|
14424
14452
|
},
|
|
14425
|
-
|
|
14426
|
-
|
|
14453
|
+
emits: ["photo-click"],
|
|
14454
|
+
setup(e, { emit: t }) {
|
|
14455
|
+
let n = e, r = t, i = D(() => [...n.items, ...n.tags.length && n.tagsLabel ? [{
|
|
14427
14456
|
key: "profile-tags",
|
|
14428
|
-
label:
|
|
14457
|
+
label: n.tagsLabel
|
|
14429
14458
|
}] : []]);
|
|
14430
|
-
return (t,
|
|
14459
|
+
return (t, n) => (H(), A("article", {
|
|
14431
14460
|
"data-ar": "profile-card",
|
|
14432
14461
|
"data-part": "root",
|
|
14433
14462
|
"data-layout": e.layout
|
|
@@ -14447,7 +14476,14 @@ var Fl = [
|
|
|
14447
14476
|
align: "start",
|
|
14448
14477
|
"data-part": "header"
|
|
14449
14478
|
}, {
|
|
14450
|
-
default: X(() => [j("div", Zm, [j("div", Qm, [
|
|
14479
|
+
default: X(() => [j("div", Zm, [j("div", Qm, [e.photoEditable ? (H(), A("button", {
|
|
14480
|
+
key: 0,
|
|
14481
|
+
type: "button",
|
|
14482
|
+
"data-part": "photo-button",
|
|
14483
|
+
"aria-label": e.photoLabel,
|
|
14484
|
+
title: e.photoLabel,
|
|
14485
|
+
onClick: n[0] ||= (e) => r("photo-click")
|
|
14486
|
+
}, [F(qn, {
|
|
14451
14487
|
src: e.image,
|
|
14452
14488
|
name: e.name,
|
|
14453
14489
|
size: e.layout === "compact" ? "lg" : "xl"
|
|
@@ -14455,7 +14491,16 @@ var Fl = [
|
|
|
14455
14491
|
"src",
|
|
14456
14492
|
"name",
|
|
14457
14493
|
"size"
|
|
14458
|
-
]),
|
|
14494
|
+
])], 8, $m)) : (H(), O(qn, {
|
|
14495
|
+
key: 1,
|
|
14496
|
+
src: e.image,
|
|
14497
|
+
name: e.name,
|
|
14498
|
+
size: e.layout === "compact" ? "lg" : "xl"
|
|
14499
|
+
}, null, 8, [
|
|
14500
|
+
"src",
|
|
14501
|
+
"name",
|
|
14502
|
+
"size"
|
|
14503
|
+
])), G(t.$slots, "photo-actions")]), F(et, { gap: 1 }, {
|
|
14459
14504
|
default: X(() => [
|
|
14460
14505
|
e.code ? (H(), O(nn, {
|
|
14461
14506
|
key: 0,
|
|
@@ -14488,11 +14533,12 @@ var Fl = [
|
|
|
14488
14533
|
default: X(() => [(H(!0), A(x, null, W(e.tags, (e) => (H(), O(Si, {
|
|
14489
14534
|
key: e.key,
|
|
14490
14535
|
tone: e.tone ?? "accent",
|
|
14536
|
+
"data-ar-palette": e.palette,
|
|
14491
14537
|
size: "sm"
|
|
14492
14538
|
}, {
|
|
14493
14539
|
default: X(() => [P(q(e.label), 1)]),
|
|
14494
14540
|
_: 2
|
|
14495
|
-
}, 1032, ["tone"]))), 128))]),
|
|
14541
|
+
}, 1032, ["tone", "data-ar-palette"]))), 128))]),
|
|
14496
14542
|
_: 1
|
|
14497
14543
|
})) : k("", !0)
|
|
14498
14544
|
]),
|
|
@@ -14507,21 +14553,22 @@ var Fl = [
|
|
|
14507
14553
|
})) : k("", !0)]),
|
|
14508
14554
|
_: 3
|
|
14509
14555
|
}),
|
|
14510
|
-
|
|
14556
|
+
i.value.length ? (H(), O(Vp, {
|
|
14511
14557
|
key: 0,
|
|
14512
|
-
items:
|
|
14513
|
-
column: Math.min(2,
|
|
14558
|
+
items: i.value,
|
|
14559
|
+
column: Math.min(2, i.value.length),
|
|
14514
14560
|
variant: e.layout === "compact" ? "plain" : "bordered"
|
|
14515
14561
|
}, {
|
|
14516
14562
|
"item-profile-tags": X(() => [F(ke, { gap: 1 }, {
|
|
14517
14563
|
default: X(() => [(H(!0), A(x, null, W(e.tags, (e) => (H(), O(Si, {
|
|
14518
14564
|
key: e.key,
|
|
14519
14565
|
tone: e.tone ?? "accent",
|
|
14566
|
+
"data-ar-palette": e.palette,
|
|
14520
14567
|
size: "sm"
|
|
14521
14568
|
}, {
|
|
14522
14569
|
default: X(() => [P(q(e.label), 1)]),
|
|
14523
14570
|
_: 2
|
|
14524
|
-
}, 1032, ["tone"]))), 128))]),
|
|
14571
|
+
}, 1032, ["tone", "data-ar-palette"]))), 128))]),
|
|
14525
14572
|
_: 1
|
|
14526
14573
|
})]),
|
|
14527
14574
|
_: 1
|
|
@@ -14548,7 +14595,7 @@ var Fl = [
|
|
|
14548
14595
|
"icon"
|
|
14549
14596
|
])], 8, Xm));
|
|
14550
14597
|
}
|
|
14551
|
-
}),
|
|
14598
|
+
}), th = {
|
|
14552
14599
|
L: [
|
|
14553
14600
|
-1,
|
|
14554
14601
|
7,
|
|
@@ -14721,7 +14768,7 @@ var Fl = [
|
|
|
14721
14768
|
30,
|
|
14722
14769
|
30
|
|
14723
14770
|
]
|
|
14724
|
-
},
|
|
14771
|
+
}, nh = {
|
|
14725
14772
|
L: [
|
|
14726
14773
|
-1,
|
|
14727
14774
|
1,
|
|
@@ -14894,13 +14941,13 @@ var Fl = [
|
|
|
14894
14941
|
77,
|
|
14895
14942
|
81
|
|
14896
14943
|
]
|
|
14897
|
-
},
|
|
14944
|
+
}, rh = {
|
|
14898
14945
|
L: 1,
|
|
14899
14946
|
M: 0,
|
|
14900
14947
|
Q: 3,
|
|
14901
14948
|
H: 2
|
|
14902
14949
|
};
|
|
14903
|
-
function
|
|
14950
|
+
function ih(e) {
|
|
14904
14951
|
let t = (16 * e + 128) * e + 64;
|
|
14905
14952
|
if (e >= 2) {
|
|
14906
14953
|
let n = Math.floor(e / 7) + 2;
|
|
@@ -14908,51 +14955,51 @@ function rh(e) {
|
|
|
14908
14955
|
}
|
|
14909
14956
|
return t;
|
|
14910
14957
|
}
|
|
14911
|
-
var
|
|
14912
|
-
function
|
|
14958
|
+
var ah = (e, t) => Math.floor(ih(e) / 8) - th[t][e] * nh[t][e];
|
|
14959
|
+
function oh(e, t) {
|
|
14913
14960
|
let n = 0;
|
|
14914
14961
|
for (let r = 7; r >= 0; r--) n = n << 1 ^ (n >>> 7) * 285, n ^= (t >>> r & 1) * e;
|
|
14915
14962
|
return n & 255;
|
|
14916
14963
|
}
|
|
14917
|
-
function
|
|
14964
|
+
function sh(e) {
|
|
14918
14965
|
let t = Array(e).fill(0);
|
|
14919
14966
|
t[e - 1] = 1;
|
|
14920
14967
|
let n = 1;
|
|
14921
14968
|
for (let r = 0; r < e; r++) {
|
|
14922
|
-
for (let e = 0; e < t.length; e++) t[e] =
|
|
14923
|
-
n =
|
|
14969
|
+
for (let e = 0; e < t.length; e++) t[e] = oh(t[e], n), e + 1 < t.length && (t[e] = t[e] ^ t[e + 1]);
|
|
14970
|
+
n = oh(n, 2);
|
|
14924
14971
|
}
|
|
14925
14972
|
return t;
|
|
14926
14973
|
}
|
|
14927
|
-
function
|
|
14974
|
+
function ch(e, t) {
|
|
14928
14975
|
let n = t.map(() => 0);
|
|
14929
14976
|
for (let r of e) {
|
|
14930
14977
|
let e = r ^ n.shift();
|
|
14931
|
-
n.push(0), t.forEach((t, r) => n[r] = n[r] ^
|
|
14978
|
+
n.push(0), t.forEach((t, r) => n[r] = n[r] ^ oh(t, e));
|
|
14932
14979
|
}
|
|
14933
14980
|
return n;
|
|
14934
14981
|
}
|
|
14935
|
-
function
|
|
14982
|
+
function lh(e) {
|
|
14936
14983
|
return Array.from(new TextEncoder().encode(e));
|
|
14937
14984
|
}
|
|
14938
|
-
function
|
|
14939
|
-
let n =
|
|
14940
|
-
for (; r <= 40 && !(4 + (r < 10 ? 8 : 16) + n.length * 8 <=
|
|
14985
|
+
function uh(e, t = "M") {
|
|
14986
|
+
let n = lh(e), r = 1;
|
|
14987
|
+
for (; r <= 40 && !(4 + (r < 10 ? 8 : 16) + n.length * 8 <= ah(r, t) * 8); r++);
|
|
14941
14988
|
if (r > 40) throw Error("QR に入りきらない長さです");
|
|
14942
14989
|
let i = [], a = (e, t) => {
|
|
14943
14990
|
for (let n = t - 1; n >= 0; n--) i.push(e >>> n & 1);
|
|
14944
14991
|
};
|
|
14945
14992
|
a(4, 4), a(n.length, r < 10 ? 8 : 16), n.forEach((e) => a(e, 8));
|
|
14946
|
-
let o =
|
|
14993
|
+
let o = ah(r, t) * 8;
|
|
14947
14994
|
a(0, Math.min(4, o - i.length)), a(0, (8 - i.length % 8) % 8);
|
|
14948
14995
|
for (let e = 236; i.length < o; e ^= 253) a(e, 8);
|
|
14949
14996
|
let s = [];
|
|
14950
14997
|
for (let e = 0; e < i.length; e += 8) s.push(i.slice(e, e + 8).reduce((e, t) => e << 1 | t, 0));
|
|
14951
|
-
let c =
|
|
14998
|
+
let c = nh[t][r], l = th[t][r], u = Math.floor(ih(r) / 8), d = c - u % c, f = Math.floor(u / c), p = sh(l), m = [];
|
|
14952
14999
|
for (let e = 0, t = 0; e < c; e++) {
|
|
14953
15000
|
let n = f - l + (e < d ? 0 : 1), r = s.slice(t, t + n);
|
|
14954
15001
|
t += n;
|
|
14955
|
-
let i =
|
|
15002
|
+
let i = ch(r, p);
|
|
14956
15003
|
e < d && r.push(0), m.push([...r, ...i]);
|
|
14957
15004
|
}
|
|
14958
15005
|
let h = [];
|
|
@@ -14977,7 +15024,7 @@ function lh(e, t = "M") {
|
|
|
14977
15024
|
}));
|
|
14978
15025
|
}
|
|
14979
15026
|
let x = (e) => {
|
|
14980
|
-
let n =
|
|
15027
|
+
let n = rh[t] << 3 | e, r = n;
|
|
14981
15028
|
for (let e = 0; e < 10; e++) r = r << 1 ^ (r >>> 9) * 1335;
|
|
14982
15029
|
let i = (n << 10 | r) ^ 21522, a = (e) => (i >>> e & 1) == 1;
|
|
14983
15030
|
for (let e = 0; e <= 5; e++) y(8, e, a(e));
|
|
@@ -15018,7 +15065,7 @@ function lh(e, t = "M") {
|
|
|
15018
15065
|
}, T = 0, E = Infinity;
|
|
15019
15066
|
for (let e = 0; e < 8; e++) {
|
|
15020
15067
|
w(e), x(e);
|
|
15021
|
-
let t =
|
|
15068
|
+
let t = dh(_);
|
|
15022
15069
|
t < E && (E = t, T = e), w(e);
|
|
15023
15070
|
}
|
|
15024
15071
|
return w(T), x(T), {
|
|
@@ -15027,7 +15074,7 @@ function lh(e, t = "M") {
|
|
|
15027
15074
|
modules: _
|
|
15028
15075
|
};
|
|
15029
15076
|
}
|
|
15030
|
-
function
|
|
15077
|
+
function dh(e) {
|
|
15031
15078
|
let t = e.length, n = 0, r = (e) => {
|
|
15032
15079
|
let n = 1, r = 0;
|
|
15033
15080
|
for (let i = 1; i <= t; i++) i < t && e(i) === e(i - 1) ? n++ : (n >= 5 && (r += 3 + (n - 5)), n = 1);
|
|
@@ -15057,7 +15104,7 @@ function uh(e) {
|
|
|
15057
15104
|
let a = Math.ceil(Math.abs(i * 20 - t * t * 10) / (t * t)) - 1;
|
|
15058
15105
|
return n + Math.max(0, a) * 10;
|
|
15059
15106
|
}
|
|
15060
|
-
function
|
|
15107
|
+
function fh(e, t = 0) {
|
|
15061
15108
|
let n = "";
|
|
15062
15109
|
return e.modules.forEach((r, i) => {
|
|
15063
15110
|
let a = 0;
|
|
@@ -15073,18 +15120,18 @@ function dh(e, t = 0) {
|
|
|
15073
15120
|
}), n;
|
|
15074
15121
|
}
|
|
15075
15122
|
// src/components/ArQRCode.vue?vue&type=script&setup=true&lang.ts
|
|
15076
|
-
var
|
|
15123
|
+
var ph = ["data-state", "data-bordered"], mh = ["viewBox", "aria-label"], hh = ["d"], gh = {
|
|
15077
15124
|
key: 1,
|
|
15078
15125
|
"data-part": "message",
|
|
15079
15126
|
role: "alert"
|
|
15080
|
-
},
|
|
15127
|
+
}, _h = {
|
|
15081
15128
|
key: 2,
|
|
15082
15129
|
"data-part": "overlay",
|
|
15083
15130
|
role: "status"
|
|
15084
|
-
},
|
|
15131
|
+
}, vh = { "data-part": "message" }, yh = { "data-part": "message" }, bh = {
|
|
15085
15132
|
key: 2,
|
|
15086
15133
|
"data-part": "message"
|
|
15087
|
-
},
|
|
15134
|
+
}, xh = /* @__PURE__ */ I({
|
|
15088
15135
|
__name: "ArQRCode",
|
|
15089
15136
|
props: {
|
|
15090
15137
|
value: {},
|
|
@@ -15108,11 +15155,11 @@ var fh = ["data-state", "data-bordered"], ph = ["viewBox", "aria-label"], mh = [
|
|
|
15108
15155
|
setup(e, { emit: t }) {
|
|
15109
15156
|
let n = e, r = t, i = D(() => {
|
|
15110
15157
|
try {
|
|
15111
|
-
return
|
|
15158
|
+
return uh(n.value, n.level);
|
|
15112
15159
|
} catch {
|
|
15113
15160
|
return null;
|
|
15114
15161
|
}
|
|
15115
|
-
}), a = D(() => i.value ?
|
|
15162
|
+
}), a = D(() => i.value ? fh(i.value) : "");
|
|
15116
15163
|
return (t, n) => (H(), A("div", {
|
|
15117
15164
|
"data-ar": "qr-code",
|
|
15118
15165
|
"data-part": "root",
|
|
@@ -15129,7 +15176,7 @@ var fh = ["data-state", "data-bordered"], ph = ["viewBox", "aria-label"], mh = [
|
|
|
15129
15176
|
}, [j("path", {
|
|
15130
15177
|
d: a.value,
|
|
15131
15178
|
fill: "currentColor"
|
|
15132
|
-
}, null, 8,
|
|
15179
|
+
}, null, 8, hh)], 8, mh)) : (H(), A("div", gh, q(e.labels.tooLong), 1)), e.status === "active" ? k("", !0) : (H(), A("div", _h, [e.status === "expired" ? (H(), A(x, { key: 0 }, [j("span", vh, q(e.labels.expired), 1), F(Nt, {
|
|
15133
15180
|
tone: "subtle",
|
|
15134
15181
|
size: "sm",
|
|
15135
15182
|
icon: "reload",
|
|
@@ -15141,9 +15188,9 @@ var fh = ["data-state", "data-bordered"], ph = ["viewBox", "aria-label"], mh = [
|
|
|
15141
15188
|
})], 64)) : e.status === "loading" ? (H(), A(x, { key: 1 }, [n[1] ||= j("span", {
|
|
15142
15189
|
"data-part": "spinner",
|
|
15143
15190
|
"aria-hidden": "true"
|
|
15144
|
-
}, null, -1), j("span",
|
|
15191
|
+
}, null, -1), j("span", yh, q(e.labels.loading), 1)], 64)) : (H(), A("span", bh, q(e.labels.scanned), 1))]))], 12, ph));
|
|
15145
15192
|
}
|
|
15146
|
-
}),
|
|
15193
|
+
}), Sh = ["data-tone", "data-placement"], Ch = { "data-part": "content" }, wh = { "data-part": "ribbon" }, Th = /* @__PURE__ */ I({
|
|
15147
15194
|
__name: "ArRibbon",
|
|
15148
15195
|
props: {
|
|
15149
15196
|
text: {},
|
|
@@ -15156,13 +15203,13 @@ var fh = ["data-state", "data-bordered"], ph = ["viewBox", "aria-label"], mh = [
|
|
|
15156
15203
|
"data-part": "root",
|
|
15157
15204
|
"data-tone": e.tone,
|
|
15158
15205
|
"data-placement": e.placement
|
|
15159
|
-
}, [j("div",
|
|
15206
|
+
}, [j("div", Ch, [G(t.$slots, "default")]), j("span", wh, [P(q(e.text), 1), n[0] ||= j("span", {
|
|
15160
15207
|
"data-part": "corner",
|
|
15161
15208
|
"aria-hidden": "true"
|
|
15162
|
-
}, null, -1)])], 8,
|
|
15209
|
+
}, null, -1)])], 8, Sh));
|
|
15163
15210
|
}
|
|
15164
|
-
}),
|
|
15165
|
-
function
|
|
15211
|
+
}), Eh = (e, t, n) => `${String(e)}:${t}${n === void 0 ? "" : `:${n}`}`, Dh = (e) => e == null || e === "" || Array.isArray(e) && e.length === 0;
|
|
15212
|
+
function Oh(e) {
|
|
15166
15213
|
if (e && typeof e == "object" && "time" in e) {
|
|
15167
15214
|
let t = e;
|
|
15168
15215
|
return {
|
|
@@ -15175,40 +15222,40 @@ function Dh(e) {
|
|
|
15175
15222
|
day: "same"
|
|
15176
15223
|
};
|
|
15177
15224
|
}
|
|
15178
|
-
function
|
|
15225
|
+
function kh(e, t) {
|
|
15179
15226
|
if (Array.isArray(e) || Array.isArray(t)) {
|
|
15180
|
-
let n =
|
|
15181
|
-
return n.length === r.length && n.every((e, t) =>
|
|
15227
|
+
let n = Mh(e).filter(Nh), r = Mh(t).filter(Nh);
|
|
15228
|
+
return n.length === r.length && n.every((e, t) => kh(e.start, r[t].start) && kh(e.end, r[t].end));
|
|
15182
15229
|
}
|
|
15183
|
-
return
|
|
15230
|
+
return Ah(e, t);
|
|
15184
15231
|
}
|
|
15185
|
-
function
|
|
15232
|
+
function Ah(e, t) {
|
|
15186
15233
|
return e && typeof e == "object" && t && typeof t == "object" ? e.time === t.time && e.day === t.day : e && typeof e == "object" ? !e.time && (t == null || t === "") : t && typeof t == "object" ? !t.time && (e == null || e === "") : String(e ?? "") === String(t ?? "");
|
|
15187
15234
|
}
|
|
15188
|
-
function
|
|
15235
|
+
function jh(e) {
|
|
15189
15236
|
let t = e && typeof e == "object" ? e : {};
|
|
15190
15237
|
return {
|
|
15191
|
-
start:
|
|
15192
|
-
end:
|
|
15238
|
+
start: Oh(t.start),
|
|
15239
|
+
end: Oh(t.end)
|
|
15193
15240
|
};
|
|
15194
15241
|
}
|
|
15195
|
-
var
|
|
15196
|
-
function
|
|
15197
|
-
let n =
|
|
15198
|
-
return
|
|
15242
|
+
var Mh = (e) => (Array.isArray(e) ? e : e == null || e === "" ? [] : [e]).map(jh), Nh = (e) => !!e.start.time || !!e.end.time;
|
|
15243
|
+
function Ph(e, t = "〜") {
|
|
15244
|
+
let n = jh(e), r = (e) => e.time ? `${e.day === "prev" ? "前日" : ""}${e.time}` : "";
|
|
15245
|
+
return Nh(n) ? `${r(n.start)}${t}${r(n.end)}` : "";
|
|
15199
15246
|
}
|
|
15200
15247
|
// src/internal/ArTableCellBody.vue?vue&type=script&setup=true&lang.ts
|
|
15201
|
-
var
|
|
15248
|
+
var Fh = {
|
|
15202
15249
|
key: 0,
|
|
15203
15250
|
"data-part": "lead",
|
|
15204
15251
|
"aria-hidden": "true"
|
|
15205
|
-
},
|
|
15252
|
+
}, Ih = ["data-state"], Lh = ["aria-label"], Rh = [
|
|
15206
15253
|
"value",
|
|
15207
15254
|
"data-state",
|
|
15208
15255
|
"aria-invalid",
|
|
15209
15256
|
"aria-label",
|
|
15210
15257
|
"onInput"
|
|
15211
|
-
],
|
|
15258
|
+
], zh = ["data-state"], Bh = ["data-state"], Vh = [
|
|
15212
15259
|
"data-editor",
|
|
15213
15260
|
"inputmode",
|
|
15214
15261
|
"placeholder",
|
|
@@ -15216,16 +15263,16 @@ var Ph = {
|
|
|
15216
15263
|
"data-state",
|
|
15217
15264
|
"aria-invalid",
|
|
15218
15265
|
"aria-label"
|
|
15219
|
-
],
|
|
15266
|
+
], Hh = {
|
|
15220
15267
|
key: 0,
|
|
15221
15268
|
"data-part": "stack"
|
|
15222
|
-
},
|
|
15269
|
+
}, Uh = ["data-single"], Wh = { "data-part": "name" }, Gh = {
|
|
15223
15270
|
key: 0,
|
|
15224
15271
|
"data-part": "sub"
|
|
15225
|
-
},
|
|
15272
|
+
}, Kh = {
|
|
15226
15273
|
key: 2,
|
|
15227
15274
|
"data-part": "lines"
|
|
15228
|
-
},
|
|
15275
|
+
}, qh = ["data-tone"], Jh = /* @__PURE__ */ I({
|
|
15229
15276
|
__name: "ArTableCellBody",
|
|
15230
15277
|
props: {
|
|
15231
15278
|
row: {},
|
|
@@ -15248,16 +15295,16 @@ var Ph = {
|
|
|
15248
15295
|
},
|
|
15249
15296
|
emits: ["edit"],
|
|
15250
15297
|
setup(e, { emit: t }) {
|
|
15251
|
-
let n = e, r = t, i = D(() => n.col), a = D(() => i.value.edit === void 0 ? n.editing && !!i.value.editor : typeof i.value.edit == "function" ? i.value.edit(n.row) : !!i.value.edit), o = D(() => i.value.editor ?? "amount"), s = (e) =>
|
|
15298
|
+
let n = e, r = t, i = D(() => n.col), a = D(() => i.value.edit === void 0 ? n.editing && !!i.value.editor : typeof i.value.edit == "function" ? i.value.edit(n.row) : !!i.value.edit), o = D(() => i.value.editor ?? "amount"), s = (e) => Eh(n.rowKey, i.value.key, e), c = (e) => e == null ? "" : String(e), l = (e) => Array.isArray(e) ? e : [e];
|
|
15252
15299
|
function u(e, t) {
|
|
15253
15300
|
let r = s(t);
|
|
15254
|
-
return r in n.edits ? n.edits[r] : o.value === "time" ?
|
|
15301
|
+
return r in n.edits ? n.edits[r] : o.value === "time" ? Oh(e) : o.value === "select" ? e === void 0 ? null : e : c(e);
|
|
15255
15302
|
}
|
|
15256
15303
|
function d(e, t) {
|
|
15257
|
-
let r = s(t), i = o.value === "time" ?
|
|
15258
|
-
return [n.invalidCells.includes(r) && "invalid", r in n.edits && !
|
|
15304
|
+
let r = s(t), i = o.value === "time" ? Oh(e) : o.value === "select" ? e ?? null : c(e);
|
|
15305
|
+
return [n.invalidCells.includes(r) && "invalid", r in n.edits && !kh(n.edits[r], i) && "changed"].filter(Boolean).join(" ") || void 0;
|
|
15259
15306
|
}
|
|
15260
|
-
let f = (e) => n.invalidCells.includes(s(e)), p = (e) => i.value.editLabel?.(n.row, e) ?? (e === void 0 || n.line !== void 0 ? i.value.title : `${i.value.title} ${e + 1}`), m = D(() => typeof i.value.options == "function" ? i.value.options(n.row) : i.value.options ?? []), h = (e) =>
|
|
15307
|
+
let f = (e) => n.invalidCells.includes(s(e)), p = (e) => i.value.editLabel?.(n.row, e) ?? (e === void 0 || n.line !== void 0 ? i.value.title : `${i.value.title} ${e + 1}`), m = D(() => typeof i.value.options == "function" ? i.value.options(n.row) : i.value.options ?? []), h = (e) => Oh(e), g = D(() => {
|
|
15261
15308
|
let e = typeof i.value.avatar == "function" ? i.value.avatar(n.row) : {};
|
|
15262
15309
|
return {
|
|
15263
15310
|
text: e.text ?? Array.from(String(n.value ?? "").trim())[0] ?? "",
|
|
@@ -15280,7 +15327,7 @@ var Ph = {
|
|
|
15280
15327
|
tone: "muted",
|
|
15281
15328
|
...e
|
|
15282
15329
|
};
|
|
15283
|
-
}), y = () =>
|
|
15330
|
+
}), y = () => Mh(n.lineValues ?? []), b = D(() => jh(n.value));
|
|
15284
15331
|
function S(e, t) {
|
|
15285
15332
|
let i = y(), a = n.line ?? 0;
|
|
15286
15333
|
for (; i.length <= a;) i.push({
|
|
@@ -15300,14 +15347,14 @@ var Ph = {
|
|
|
15300
15347
|
}
|
|
15301
15348
|
function C() {
|
|
15302
15349
|
let e = y();
|
|
15303
|
-
e.splice(n.line ?? 0, 1), r("edit", s(), e.filter(
|
|
15350
|
+
e.splice(n.line ?? 0, 1), r("edit", s(), e.filter(Nh));
|
|
15304
15351
|
}
|
|
15305
15352
|
let w = D(() => {
|
|
15306
15353
|
let e = s();
|
|
15307
|
-
return [n.invalidCells.includes(e) && "invalid", e in n.edits && !
|
|
15354
|
+
return [n.invalidCells.includes(e) && "invalid", e in n.edits && !kh(n.edits[e], Mh(T.value)) && "changed"].filter(Boolean).join(" ") || void 0;
|
|
15308
15355
|
}), T = D(() => Array.isArray(n.row[i.value.key]) ? n.row[i.value.key] : i.value.value?.(n.row)), E = (e) => `${i.value.editLabel?.(n.row, n.line) ?? i.value.title}${(n.line ?? 0) + 1}の${e === "start" ? "開始" : "終了"}`, M = D(() => n.line);
|
|
15309
15356
|
return (t, n) => (H(), A(x, null, [
|
|
15310
|
-
i.value.lead ? (H(), A("span",
|
|
15357
|
+
i.value.lead ? (H(), A("span", Fh, q(i.value.lead), 1)) : k("", !0),
|
|
15311
15358
|
a.value && o.value === "time-range" && (e.line ?? 0) >= (e.lineValues?.length ?? 0) ? (H(), A(x, { key: 1 }, [], 64)) : a.value && o.value === "time-range" ? (H(), A("span", {
|
|
15312
15359
|
key: 2,
|
|
15313
15360
|
"data-part": "cell-editor",
|
|
@@ -15349,7 +15396,7 @@ var Ph = {
|
|
|
15349
15396
|
"invalid",
|
|
15350
15397
|
"label"
|
|
15351
15398
|
]),
|
|
15352
|
-
i.value.removable !== !1 && J(
|
|
15399
|
+
i.value.removable !== !1 && J(Nh)(b.value) ? (H(), A("button", {
|
|
15353
15400
|
key: 0,
|
|
15354
15401
|
type: "button",
|
|
15355
15402
|
"data-part": "line-remove",
|
|
@@ -15359,8 +15406,8 @@ var Ph = {
|
|
|
15359
15406
|
line: "",
|
|
15360
15407
|
name: "x",
|
|
15361
15408
|
size: "sm"
|
|
15362
|
-
})], 8,
|
|
15363
|
-
], 8,
|
|
15409
|
+
})], 8, Lh)) : k("", !0)
|
|
15410
|
+
], 8, Ih)) : o.value === "time-range" ? (H(), A(x, { key: 3 }, [P(q(J(Ph)(e.value) || (M.value !== void 0 && M.value > 0 ? "" : e.blank)), 1)], 64)) : a.value && i.value.stack && M.value === void 0 ? (H(), A("span", {
|
|
15364
15411
|
key: 4,
|
|
15365
15412
|
"data-part": "stack",
|
|
15366
15413
|
onClick: n[3] ||= Z(() => {}, ["stop"])
|
|
@@ -15374,7 +15421,7 @@ var Ph = {
|
|
|
15374
15421
|
"aria-invalid": f(t) || void 0,
|
|
15375
15422
|
"aria-label": p(t),
|
|
15376
15423
|
onInput: (e) => r("edit", s(t), e.target.value)
|
|
15377
|
-
}, null, 40,
|
|
15424
|
+
}, null, 40, Rh))), 128))])) : a.value && o.value === "time" ? (H(), A("span", {
|
|
15378
15425
|
key: 5,
|
|
15379
15426
|
"data-part": "cell-editor",
|
|
15380
15427
|
"data-editor": "time",
|
|
@@ -15396,7 +15443,7 @@ var Ph = {
|
|
|
15396
15443
|
"placeholder",
|
|
15397
15444
|
"invalid",
|
|
15398
15445
|
"label"
|
|
15399
|
-
])], 8,
|
|
15446
|
+
])], 8, zh)) : a.value && o.value === "select" ? (H(), A("span", {
|
|
15400
15447
|
key: 6,
|
|
15401
15448
|
"data-part": "cell-editor",
|
|
15402
15449
|
"data-editor": "select",
|
|
@@ -15418,7 +15465,7 @@ var Ph = {
|
|
|
15418
15465
|
"placeholder",
|
|
15419
15466
|
"invalid",
|
|
15420
15467
|
"label"
|
|
15421
|
-
])], 8,
|
|
15468
|
+
])], 8, Bh)) : a.value ? (H(), A("input", {
|
|
15422
15469
|
key: 7,
|
|
15423
15470
|
"data-part": "cell-input",
|
|
15424
15471
|
"data-editor": o.value === "text" ? "text" : void 0,
|
|
@@ -15431,19 +15478,19 @@ var Ph = {
|
|
|
15431
15478
|
"aria-label": p(M.value),
|
|
15432
15479
|
onClick: n[8] ||= Z(() => {}, ["stop"]),
|
|
15433
15480
|
onInput: n[9] ||= (e) => r("edit", s(M.value), e.target.value)
|
|
15434
|
-
}, null, 40,
|
|
15481
|
+
}, null, 40, Vh)) : (H(), A(x, { key: 8 }, [i.value.stack && M.value === void 0 ? (H(), A("span", Hh, [(H(!0), A(x, null, W(l(e.value), (e, t) => (H(), A("span", { key: t }, q(J(Dh)(e) ? "" : e), 1))), 128))])) : i.value.avatar ? (H(), A("span", {
|
|
15435
15482
|
key: 1,
|
|
15436
15483
|
"data-part": "person",
|
|
15437
15484
|
"data-single": !i.value.sub || void 0
|
|
15438
15485
|
}, [e.showAvatar === !1 ? k("", !0) : (H(), O(qn, z({
|
|
15439
15486
|
key: 0,
|
|
15440
15487
|
"aria-hidden": "true"
|
|
15441
|
-
}, g.value, { size: e.variant === "board" && i.value.sub ? "md" : "sm" }), null, 16, ["size"])), j("span",
|
|
15488
|
+
}, g.value, { size: e.variant === "board" && i.value.sub ? "md" : "sm" }), null, 16, ["size"])), j("span", Wh, [j("b", null, q(e.value), 1), _.value ? (H(), A("small", Gh, [_.value.color ? (H(), A("i", {
|
|
15442
15489
|
key: 0,
|
|
15443
15490
|
"data-part": "sub-mark",
|
|
15444
15491
|
style: V({ background: _.value.color }),
|
|
15445
15492
|
"aria-hidden": "true"
|
|
15446
|
-
}, null, 4)) : k("", !0), P(q(_.value.text), 1)])) : k("", !0)])], 8,
|
|
15493
|
+
}, null, 4)) : k("", !0), P(q(_.value.text), 1)])) : k("", !0)])], 8, Uh)) : M.value === void 0 && Array.isArray(e.value) && !J(Dh)(e.value) ? (H(), A("span", Kh, [(H(!0), A(x, null, W(e.value, (e, t) => (H(), A("span", { key: t }, q(e), 1))), 128))])) : (H(), A(x, { key: 3 }, [P(q(J(Dh)(e.value) ? M.value !== void 0 && M.value > 0 ? "" : e.blank : e.value), 1)], 64))], 64)),
|
|
15447
15494
|
i.value.marked?.(e.row) ? (H(), O($, {
|
|
15448
15495
|
key: 9,
|
|
15449
15496
|
line: "",
|
|
@@ -15456,41 +15503,41 @@ var Ph = {
|
|
|
15456
15503
|
key: 10,
|
|
15457
15504
|
"data-part": "delta",
|
|
15458
15505
|
"data-tone": v.value.tone
|
|
15459
|
-
}, q(v.value.text), 9,
|
|
15506
|
+
}, q(v.value.text), 9, qh)) : k("", !0)
|
|
15460
15507
|
], 64));
|
|
15461
15508
|
}
|
|
15462
|
-
}),
|
|
15509
|
+
}), Yh = ["data-state"], Xh = [
|
|
15463
15510
|
"aria-expanded",
|
|
15464
15511
|
"aria-controls",
|
|
15465
15512
|
"disabled"
|
|
15466
|
-
],
|
|
15513
|
+
], Zh = { "data-part": "label" }, Qh = {
|
|
15467
15514
|
key: 0,
|
|
15468
15515
|
"data-part": "title"
|
|
15469
|
-
},
|
|
15516
|
+
}, $h = ["aria-label"], eg = {
|
|
15470
15517
|
"data-part": "presets-title",
|
|
15471
15518
|
"aria-hidden": "true"
|
|
15472
|
-
},
|
|
15519
|
+
}, tg = ["data-state", "data-scope"], ng = ["aria-checked", "onClick"], rg = { "data-part": "preset-label" }, ig = ["data-scope"], ag = {
|
|
15473
15520
|
key: 0,
|
|
15474
15521
|
"data-part": "preset-default"
|
|
15475
|
-
},
|
|
15522
|
+
}, og = ["aria-label"], sg = {
|
|
15476
15523
|
key: 0,
|
|
15477
15524
|
"data-part": "group-title",
|
|
15478
15525
|
"aria-hidden": "true"
|
|
15479
|
-
},
|
|
15526
|
+
}, cg = [
|
|
15480
15527
|
"data-state",
|
|
15481
15528
|
"aria-checked",
|
|
15482
15529
|
"disabled",
|
|
15483
15530
|
"onClick"
|
|
15484
|
-
],
|
|
15531
|
+
], lg = { "data-part": "text" }, ug = {
|
|
15485
15532
|
key: 0,
|
|
15486
15533
|
"data-part": "description"
|
|
15487
|
-
},
|
|
15534
|
+
}, dg = { "data-part": "foot" }, fg = {
|
|
15488
15535
|
key: 2,
|
|
15489
15536
|
"data-part": "save"
|
|
15490
|
-
},
|
|
15537
|
+
}, pg = {
|
|
15491
15538
|
key: 1,
|
|
15492
15539
|
"data-part": "save-form"
|
|
15493
|
-
},
|
|
15540
|
+
}, mg = { "data-part": "save-actions" }, hg = ["disabled"], gg = ["disabled"], _g = /* @__PURE__ */ I({
|
|
15494
15541
|
__name: "ArViewOptions",
|
|
15495
15542
|
props: {
|
|
15496
15543
|
modelValue: {},
|
|
@@ -15619,7 +15666,7 @@ var Ph = {
|
|
|
15619
15666
|
name: "filter",
|
|
15620
15667
|
"data-part": "icon"
|
|
15621
15668
|
}),
|
|
15622
|
-
j("span",
|
|
15669
|
+
j("span", Zh, q(e.label), 1),
|
|
15623
15670
|
F(Bt, {
|
|
15624
15671
|
"data-part": "count",
|
|
15625
15672
|
count: `${p.value}/${d.value.length}`,
|
|
@@ -15632,7 +15679,7 @@ var Ph = {
|
|
|
15632
15679
|
name: "cd",
|
|
15633
15680
|
"data-part": "caret"
|
|
15634
15681
|
})
|
|
15635
|
-
], 40,
|
|
15682
|
+
], 40, Xh), F(fn, {
|
|
15636
15683
|
id: J(a),
|
|
15637
15684
|
open: l.value,
|
|
15638
15685
|
anchor: o.value,
|
|
@@ -15650,13 +15697,13 @@ var Ph = {
|
|
|
15650
15697
|
style: V({ width: `${e.width}px` }),
|
|
15651
15698
|
onKeydown: te
|
|
15652
15699
|
}, [
|
|
15653
|
-
e.title ? (H(), A("div",
|
|
15700
|
+
e.title ? (H(), A("div", Qh, q(e.title), 1)) : k("", !0),
|
|
15654
15701
|
e.presets?.length ? (H(), A("div", {
|
|
15655
15702
|
key: 1,
|
|
15656
15703
|
"data-part": "presets",
|
|
15657
15704
|
role: "group",
|
|
15658
15705
|
"aria-label": i.value.presets
|
|
15659
|
-
}, [j("div",
|
|
15706
|
+
}, [j("div", eg, q(i.value.presets), 1), (H(!0), A(x, null, W(e.presets, (e) => (H(), A("div", {
|
|
15660
15707
|
key: e.key,
|
|
15661
15708
|
"data-part": "preset",
|
|
15662
15709
|
"data-state": y(e.keys) ? "on" : void 0,
|
|
@@ -15674,13 +15721,13 @@ var Ph = {
|
|
|
15674
15721
|
name: "check",
|
|
15675
15722
|
"data-part": "preset-check"
|
|
15676
15723
|
}),
|
|
15677
|
-
j("span",
|
|
15724
|
+
j("span", rg, q(e.label), 1),
|
|
15678
15725
|
j("span", {
|
|
15679
15726
|
"data-part": "preset-scope",
|
|
15680
15727
|
"data-scope": e.scope
|
|
15681
|
-
}, q(e.scope === "company" ? i.value.company : i.value.personal), 9,
|
|
15682
|
-
e.default ? (H(), A("span",
|
|
15683
|
-
], 8,
|
|
15728
|
+
}, q(e.scope === "company" ? i.value.company : i.value.personal), 9, ig),
|
|
15729
|
+
e.default ? (H(), A("span", ag, q(i.value.default), 1)) : k("", !0)
|
|
15730
|
+
], 8, ng), e.deletable ? (H(), O(Nt, {
|
|
15684
15731
|
key: 0,
|
|
15685
15732
|
"data-part": "preset-delete",
|
|
15686
15733
|
tone: "muted",
|
|
@@ -15689,13 +15736,13 @@ var Ph = {
|
|
|
15689
15736
|
tabindex: "-1",
|
|
15690
15737
|
label: `${i.value.delete}:${e.label}`,
|
|
15691
15738
|
onClick: (t) => r("delete-preset", e)
|
|
15692
|
-
}, null, 8, ["label", "onClick"])) : k("", !0)], 8,
|
|
15739
|
+
}, null, 8, ["label", "onClick"])) : k("", !0)], 8, tg))), 128))], 8, $h)) : k("", !0),
|
|
15693
15740
|
(H(!0), A(x, null, W(e.groups, (e, t) => (H(), A("div", {
|
|
15694
15741
|
key: t,
|
|
15695
15742
|
"data-part": "group",
|
|
15696
15743
|
role: "group",
|
|
15697
15744
|
"aria-label": e.label
|
|
15698
|
-
}, [e.label ? (H(), A("div",
|
|
15745
|
+
}, [e.label ? (H(), A("div", sg, q(e.label), 1)) : k("", !0), (H(!0), A(x, null, W(e.options, (e) => (H(), A("button", {
|
|
15699
15746
|
key: e.key,
|
|
15700
15747
|
type: "button",
|
|
15701
15748
|
role: "menuitemcheckbox",
|
|
@@ -15713,7 +15760,7 @@ var Ph = {
|
|
|
15713
15760
|
"model-value": f.value.has(e.key),
|
|
15714
15761
|
disabled: e.disabled
|
|
15715
15762
|
}, null, 8, ["model-value", "disabled"]),
|
|
15716
|
-
j("span",
|
|
15763
|
+
j("span", lg, [j("b", null, q(e.label), 1), e.description ? (H(), A("small", ug, q(e.description), 1)) : k("", !0)]),
|
|
15717
15764
|
e.sample ? (H(), A("span", {
|
|
15718
15765
|
key: 0,
|
|
15719
15766
|
"data-part": "sample",
|
|
@@ -15727,8 +15774,8 @@ var Ph = {
|
|
|
15727
15774
|
key: 0,
|
|
15728
15775
|
name: e.sample.icon
|
|
15729
15776
|
}, null, 8, ["name"])) : k("", !0), P(q(e.sample.text), 1)], 4)) : k("", !0)
|
|
15730
|
-
], 8,
|
|
15731
|
-
j("div",
|
|
15777
|
+
], 8, cg))), 128))], 8, og))), 128)),
|
|
15778
|
+
j("div", dg, [j("button", {
|
|
15732
15779
|
type: "button",
|
|
15733
15780
|
tabindex: "-1",
|
|
15734
15781
|
onClick: ee
|
|
@@ -15737,7 +15784,7 @@ var Ph = {
|
|
|
15737
15784
|
tabindex: "-1",
|
|
15738
15785
|
onClick: n[1] ||= (e) => _(!0)
|
|
15739
15786
|
}, q(e.labels.close), 1)]),
|
|
15740
|
-
e.saveScopes.length ? (H(), A("div",
|
|
15787
|
+
e.saveScopes.length ? (H(), A("div", fg, [w.value ? (H(), A("div", pg, [F(rr, {
|
|
15741
15788
|
ref_key: "nameInput",
|
|
15742
15789
|
ref: E,
|
|
15743
15790
|
modelValue: T.value,
|
|
@@ -15751,7 +15798,7 @@ var Ph = {
|
|
|
15751
15798
|
"modelValue",
|
|
15752
15799
|
"placeholder",
|
|
15753
15800
|
"label"
|
|
15754
|
-
]), j("span",
|
|
15801
|
+
]), j("span", mg, [
|
|
15755
15802
|
j("button", {
|
|
15756
15803
|
type: "button",
|
|
15757
15804
|
tabindex: "-1",
|
|
@@ -15765,7 +15812,7 @@ var Ph = {
|
|
|
15765
15812
|
"data-kind": "company",
|
|
15766
15813
|
disabled: !T.value.trim(),
|
|
15767
15814
|
onClick: n[5] ||= (e) => N("company")
|
|
15768
|
-
}, q(i.value.saveCompany), 9,
|
|
15815
|
+
}, q(i.value.saveCompany), 9, hg)) : k("", !0),
|
|
15769
15816
|
C.value ? (H(), A("button", {
|
|
15770
15817
|
key: 1,
|
|
15771
15818
|
type: "button",
|
|
@@ -15773,7 +15820,7 @@ var Ph = {
|
|
|
15773
15820
|
"data-kind": "personal",
|
|
15774
15821
|
disabled: !T.value.trim(),
|
|
15775
15822
|
onClick: n[6] ||= (e) => N("personal")
|
|
15776
|
-
}, q(i.value.savePersonal), 9,
|
|
15823
|
+
}, q(i.value.savePersonal), 9, gg)) : k("", !0)
|
|
15777
15824
|
])])) : (H(), A(x, { key: 0 }, [S.value ? (H(), A("button", {
|
|
15778
15825
|
key: 0,
|
|
15779
15826
|
type: "button",
|
|
@@ -15794,27 +15841,24 @@ var Ph = {
|
|
|
15794
15841
|
"anchor",
|
|
15795
15842
|
"label",
|
|
15796
15843
|
"placement"
|
|
15797
|
-
])], 8,
|
|
15844
|
+
])], 8, Yh));
|
|
15798
15845
|
}
|
|
15799
|
-
}),
|
|
15846
|
+
}), vg = [
|
|
15800
15847
|
"data-variant",
|
|
15801
15848
|
"data-fit",
|
|
15802
15849
|
"data-density",
|
|
15803
15850
|
"data-vertical-align",
|
|
15804
15851
|
"data-sticky-header",
|
|
15805
15852
|
"data-sortable"
|
|
15806
|
-
],
|
|
15853
|
+
], yg = ["aria-label"], bg = { "data-ar-visually-hidden": "" }, xg = {
|
|
15807
15854
|
key: 0,
|
|
15808
15855
|
"data-col": "drag"
|
|
15809
|
-
},
|
|
15856
|
+
}, Sg = {
|
|
15810
15857
|
key: 1,
|
|
15811
15858
|
"data-col": "select"
|
|
15812
|
-
},
|
|
15859
|
+
}, Cg = {
|
|
15813
15860
|
key: 2,
|
|
15814
15861
|
"data-col": "expand"
|
|
15815
|
-
}, Cg = {
|
|
15816
|
-
key: 3,
|
|
15817
|
-
"data-col": "actions"
|
|
15818
15862
|
}, wg = ["data-tiers"], Tg = ["rowspan"], Eg = { "data-ar-visually-hidden": "" }, Dg = [
|
|
15819
15863
|
"data-sticky",
|
|
15820
15864
|
"data-sticky-key",
|
|
@@ -15953,6 +15997,7 @@ var Ph = {
|
|
|
15953
15997
|
type: Boolean,
|
|
15954
15998
|
default: !1
|
|
15955
15999
|
},
|
|
16000
|
+
actionsWidth: {},
|
|
15956
16001
|
columns: {},
|
|
15957
16002
|
viewOptions: {
|
|
15958
16003
|
type: Boolean,
|
|
@@ -16083,8 +16128,8 @@ var Ph = {
|
|
|
16083
16128
|
}
|
|
16084
16129
|
let b = (e) => (typeof e.toggles == "string" ? [e.toggles] : [...e.toggles ?? []]).some((e) => a.value.has(e)), S = D(() => new Set(n.editing)), C = D(() => n.editing.length > 0), w = (e) => S.value.has(we(e)), T = (e, t) => t.edit === void 0 ? w(e) && !!t.editor : typeof t.edit == "function" ? t.edit(e) : !!t.edit, E = (e) => Array.isArray(e) ? e : [e], M = (e) => e.editor === "time-range", I = (e) => !!e.lines || M(e), ee = D(() => h.value.filter(I)), L = D(() => ee.value.length > 0);
|
|
16085
16130
|
function ne(e, t) {
|
|
16086
|
-
let r =
|
|
16087
|
-
return T(e, t) && t.appendEmpty !== !1 && (i.length === 0 ||
|
|
16131
|
+
let r = Eh(we(e), t.key), i = r in n.edits ? Mh(n.edits[r]) : Mh(Te(e, t));
|
|
16132
|
+
return T(e, t) && t.appendEmpty !== !1 && (i.length === 0 || Nh(i[i.length - 1])) && i.push({
|
|
16088
16133
|
start: {
|
|
16089
16134
|
time: null,
|
|
16090
16135
|
day: "same"
|
|
@@ -16107,8 +16152,8 @@ var Ph = {
|
|
|
16107
16152
|
let t = {};
|
|
16108
16153
|
for (let r of n.columns) {
|
|
16109
16154
|
if (!T(e, r)) continue;
|
|
16110
|
-
let i =
|
|
16111
|
-
M(r) ? t[r.key] = ne(e, r).filter(
|
|
16155
|
+
let i = Eh(we(e), r.key);
|
|
16156
|
+
M(r) ? t[r.key] = ne(e, r).filter(Nh) : r.lines ? t[r.key] = E(Te(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] : Te(e, r);
|
|
16112
16157
|
}
|
|
16113
16158
|
return t;
|
|
16114
16159
|
}
|
|
@@ -16160,7 +16205,7 @@ var Ph = {
|
|
|
16160
16205
|
if (!o) {
|
|
16161
16206
|
let s = (i, a) => {
|
|
16162
16207
|
let o = h.value.find((e) => e.key === t.key) ?? t;
|
|
16163
|
-
return te(
|
|
16208
|
+
return te(Jh, {
|
|
16164
16209
|
...K(e, o, Math.max(0, n.rows.indexOf(e)), r),
|
|
16165
16210
|
...a.attrs
|
|
16166
16211
|
});
|
|
@@ -16389,16 +16434,20 @@ var Ph = {
|
|
|
16389
16434
|
ref: ke,
|
|
16390
16435
|
"data-part": "table"
|
|
16391
16436
|
}, [
|
|
16392
|
-
j("caption",
|
|
16437
|
+
j("caption", bg, q(e.caption), 1),
|
|
16393
16438
|
j("colgroup", null, [
|
|
16394
|
-
X.value ? (H(), A("col",
|
|
16395
|
-
e.selectable ? (H(), A("col",
|
|
16396
|
-
e.expandable ? (H(), A("col",
|
|
16439
|
+
X.value ? (H(), A("col", xg)) : k("", !0),
|
|
16440
|
+
e.selectable ? (H(), A("col", Sg)) : k("", !0),
|
|
16441
|
+
e.expandable ? (H(), A("col", Cg)) : k("", !0),
|
|
16397
16442
|
(H(!0), A(x, null, W(h.value, (e) => (H(), A("col", {
|
|
16398
16443
|
key: e.key,
|
|
16399
16444
|
style: V(e.width ? { width: `${e.width}px` } : void 0)
|
|
16400
16445
|
}, null, 4))), 128)),
|
|
16401
|
-
Oe.value ? (H(), A("col",
|
|
16446
|
+
Oe.value ? (H(), A("col", {
|
|
16447
|
+
key: 3,
|
|
16448
|
+
"data-col": "actions",
|
|
16449
|
+
style: V(e.fit ? { width: `${e.actionsWidth ?? 96}px` } : void 0)
|
|
16450
|
+
}, null, 4)) : k("", !0)
|
|
16402
16451
|
]),
|
|
16403
16452
|
j("thead", {
|
|
16404
16453
|
"data-part": "head",
|
|
@@ -16703,7 +16752,7 @@ var Ph = {
|
|
|
16703
16752
|
index: a,
|
|
16704
16753
|
line: oe(r, o - 1),
|
|
16705
16754
|
Default: he(i, r, oe(r, o - 1))
|
|
16706
|
-
}, () => [F(
|
|
16755
|
+
}, () => [F(Jh, z({ ref_for: !0 }, K(i, r, a, oe(r, o - 1))), null, 16)])], 12, o_)) : k("", !0)], 64))), 128)),
|
|
16707
16756
|
Oe.value && o === 1 ? (H(), A("td", {
|
|
16708
16757
|
key: 1,
|
|
16709
16758
|
"data-part": "cell",
|
|
@@ -16768,8 +16817,8 @@ var Ph = {
|
|
|
16768
16817
|
}, [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)),
|
|
16769
16818
|
Oe.value ? (H(), A("td", S_)) : k("", !0)
|
|
16770
16819
|
])])) : k("", !0)
|
|
16771
|
-
], 512)], 8,
|
|
16772
|
-
e.viewOptions || t.$slots.below ? (H(), A("div", C_, [e.viewOptions ? (H(), O(
|
|
16820
|
+
], 512)], 8, yg),
|
|
16821
|
+
e.viewOptions || t.$slots.below ? (H(), A("div", C_, [e.viewOptions ? (H(), O(_g, {
|
|
16773
16822
|
key: 0,
|
|
16774
16823
|
modelValue: m.value,
|
|
16775
16824
|
"onUpdate:modelValue": n[8] ||= (e) => m.value = e,
|
|
@@ -16788,7 +16837,7 @@ var Ph = {
|
|
|
16788
16837
|
"disabled"
|
|
16789
16838
|
])) : k("", !0), G(t.$slots, "below")])) : k("", !0),
|
|
16790
16839
|
e.sortableRows ? (H(), A("span", w_, q(yt.value), 1)) : k("", !0)
|
|
16791
|
-
], 8,
|
|
16840
|
+
], 8, vg));
|
|
16792
16841
|
}
|
|
16793
16842
|
}), E_ = ["data-mode", "aria-label"], D_ = [
|
|
16794
16843
|
"data-tone",
|
|
@@ -17417,13 +17466,13 @@ var tv = I({
|
|
|
17417
17466
|
let i = {
|
|
17418
17467
|
"data-part": "cell",
|
|
17419
17468
|
role: "gridcell",
|
|
17420
|
-
...r === 0 ? {
|
|
17421
|
-
"data-tree": !0,
|
|
17422
|
-
style: { "--ar-tt-depth": e.depth }
|
|
17423
|
-
} : {}
|
|
17469
|
+
...r === 0 ? { "data-tree": !0 } : {}
|
|
17424
17470
|
}, a = n.type === "td" || n.type === "th" || n.type === s;
|
|
17425
17471
|
if (r !== 0) return a ? E(n, i) : te("td", i, [n]);
|
|
17426
|
-
let o = n.children, c = () => a ? typeof o == "object" && o && !Array.isArray(o) ? $_(o.default) : o : n, l = () => [te("span", {
|
|
17472
|
+
let o = n.children, c = () => a ? typeof o == "object" && o && !Array.isArray(o) ? $_(o.default) : o : n, l = () => [te("span", {
|
|
17473
|
+
"data-part": "tree",
|
|
17474
|
+
style: { "--ar-tt-depth": e.depth }
|
|
17475
|
+
}, [...t.controls?.() ?? [], te("span", { "data-part": "content" }, [c()])])];
|
|
17427
17476
|
if (!a) return te("td", i, l());
|
|
17428
17477
|
if (typeof n.type == "string") return te(n.type, {
|
|
17429
17478
|
...n.props,
|
|
@@ -17717,12 +17766,16 @@ var tv = I({
|
|
|
17717
17766
|
let L = U(null), te = U(null), ne = U(null);
|
|
17718
17767
|
function R(e, t) {
|
|
17719
17768
|
if (!n.draggable || L.value !== t.key) return e.preventDefault();
|
|
17720
|
-
te.value = t.key, e.dataTransfer?.setData("text/plain", String(t.key)), e.dataTransfer
|
|
17769
|
+
if (te.value = t.key, e.dataTransfer?.setData("text/plain", String(t.key)), e.dataTransfer) {
|
|
17770
|
+
e.dataTransfer.effectAllowed = "move";
|
|
17771
|
+
let t = e.currentTarget, n = t.getBoundingClientRect();
|
|
17772
|
+
e.dataTransfer.setDragImage?.(t, e.clientX - n.left, e.clientY - n.top);
|
|
17773
|
+
}
|
|
17721
17774
|
}
|
|
17722
17775
|
function re(e, t) {
|
|
17723
17776
|
if (te.value === null) return;
|
|
17724
17777
|
let n = e.currentTarget.getBoundingClientRect(), r = n.height ? (e.clientY - n.top) / n.height : 1, i = r < .3 ? "before" : r > .7 ? "after" : "inside";
|
|
17725
|
-
M({
|
|
17778
|
+
ne.value?.key === t.key && ne.value.position === i ? (e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "move")) : M({
|
|
17726
17779
|
key: te.value,
|
|
17727
17780
|
target: t.key,
|
|
17728
17781
|
position: i
|
|
@@ -17826,6 +17879,7 @@ var tv = I({
|
|
|
17826
17879
|
key: 2,
|
|
17827
17880
|
type: "button",
|
|
17828
17881
|
"data-part": "drag-handle",
|
|
17882
|
+
draggable: "true",
|
|
17829
17883
|
"data-key": o.key,
|
|
17830
17884
|
"aria-label": a.value.dragHandle,
|
|
17831
17885
|
onClick: n[0] ||= Z(() => {}, ["stop"]),
|
|
@@ -17875,6 +17929,7 @@ var tv = I({
|
|
|
17875
17929
|
key: 2,
|
|
17876
17930
|
type: "button",
|
|
17877
17931
|
"data-part": "drag-handle",
|
|
17932
|
+
draggable: "true",
|
|
17878
17933
|
"data-key": o.key,
|
|
17879
17934
|
"aria-label": a.value.dragHandle,
|
|
17880
17935
|
onClick: n[2] ||= Z(() => {}, ["stop"]),
|
|
@@ -19106,7 +19161,15 @@ var wy = {
|
|
|
19106
19161
|
}), h.value = {
|
|
19107
19162
|
kind: e,
|
|
19108
19163
|
key: t
|
|
19109
|
-
}
|
|
19164
|
+
}, e === "item" && B(() => {
|
|
19165
|
+
let n = c.value;
|
|
19166
|
+
if (!n || !y(e, t)) return;
|
|
19167
|
+
let i = n.getBoundingClientRect().right - (document.documentElement.clientWidth - 12);
|
|
19168
|
+
i > 0 && (_.value = {
|
|
19169
|
+
..._.value,
|
|
19170
|
+
left: `${Math.max(12, (r?.offsetLeft ?? 12) - i)}px`
|
|
19171
|
+
});
|
|
19172
|
+
});
|
|
19110
19173
|
}
|
|
19111
19174
|
function C() {
|
|
19112
19175
|
clearTimeout(v);
|
|
@@ -20421,10 +20484,7 @@ var wy = {
|
|
|
20421
20484
|
"data-part": "root",
|
|
20422
20485
|
"data-kind": "attention",
|
|
20423
20486
|
role: "note"
|
|
20424
|
-
}, qS = { "data-part": "text" }, JS = {
|
|
20425
|
-
key: 1,
|
|
20426
|
-
"data-part": "text"
|
|
20427
|
-
}, YS = /* @__PURE__ */ I({
|
|
20487
|
+
}, qS = { "data-part": "text" }, JS = { "data-part": "text" }, YS = /* @__PURE__ */ I({
|
|
20428
20488
|
__name: "ArInfo",
|
|
20429
20489
|
props: {
|
|
20430
20490
|
kind: { default: "note" },
|
|
@@ -20460,7 +20520,12 @@ var wy = {
|
|
|
20460
20520
|
line: "",
|
|
20461
20521
|
name: "help",
|
|
20462
20522
|
"data-part": "icon"
|
|
20463
|
-
})) : (H(), A(
|
|
20523
|
+
})) : (H(), A(x, { key: 1 }, [F($, {
|
|
20524
|
+
line: "",
|
|
20525
|
+
name: "info",
|
|
20526
|
+
"data-part": "icon",
|
|
20527
|
+
size: "sm"
|
|
20528
|
+
}), j("span", JS, [G(t.$slots, "default", {}, () => [P(q(e.text ?? e.labels.detail), 1)])])], 64))]),
|
|
20464
20529
|
_: 3
|
|
20465
20530
|
}, 8, [
|
|
20466
20531
|
"data-kind",
|
|
@@ -26372,4 +26437,4 @@ var VE = [
|
|
|
26372
26437
|
], 8, Bk)) : G(t.$slots, "default", {}, void 0, void 0, 1)], 12, zk));
|
|
26373
26438
|
}
|
|
26374
26439
|
});
|
|
26375
|
-
export { on as ArAffix, Wv as ArAlert, ln as ArAnchor, Db as ArAppFooter, Zb as ArAppHeader, px as ArApprovalFlow, Rk as ArAuthPanel, $i as ArAutoComplete, qn as ArAvatar, kf as ArAvatarGroup, Bt as ArBadge, gx as ArBalloon, qv as ArBorderBeam, kx as ArBottomNav, Fn as ArBreadcrumb, Nt as ArButton, op as ArCalendar, ti as ArCard, gp as ArCarousel, aa as ArCascader, rS as ArChangedValue, fa as ArCheckbox, ha as ArCheckboxGroup, aS as ArChip, Na as ArChoiceCard, ke as ArCluster, wp as ArCollapse, no as ArColorPicker, Ha as ArColorSwatches, je as ArCompact, Pp as ArCountdown, No as ArDateInput, Xo as ArDatePicker, ns as ArDateRange, hs as ArDateTimeInput, dS as ArDateView, vS as ArDaySummary, Vp as ArDescriptions, o as ArDesignError, Fe as ArDivider, CS as ArDocumentBlock, ty as ArDrawer, Dn as ArDropdown, xs as ArDurationInput, ES as ArEllipsis, ai as ArEmpty, RS as ArExample, As as ArField, BS as ArFlagGroup, US as ArFlagView, Ut as ArFloatButton, Fs as ArForm, Ie as ArGrid, $ as ArIcon, em as ArImage, YS as ArInfo, Js as ArInputNumber, bc as ArItem, $S as ArKanaInput, aC as ArKanaText, He as ArLayout, Kt as ArLink, mm as ArList, lC as ArLogoSpin, ym as ArMapPreview, We as ArMasonry, Ec as ArMentions, Vn as ArMenu, pC as ArMenuTile, ay as ArMessage, Ty as ArMessageHost, yC as ArMobileHeader, At as ArModal, TC as ArMonthDayInput, Ny as ArNotification, Py as ArNotificationHost, Pm as ArOrgChart, Nc as ArOtpInput, OC as ArPageHeading, qr as ArPagination, Jt as ArParagraph, ew as ArPayslip, HC as ArPayslipLine, MC as ArPayslipTable, qm as ArPdfViewer, Cw as ArPeriodBox, mw as ArPeriodNav, Ic as ArPills, Ym as ArPointerBadge, By as ArPopconfirm, ac as ArPopover,
|
|
26440
|
+
export { on as ArAffix, Wv as ArAlert, ln as ArAnchor, Db as ArAppFooter, Zb as ArAppHeader, px as ArApprovalFlow, Rk as ArAuthPanel, $i as ArAutoComplete, qn as ArAvatar, kf as ArAvatarGroup, Bt as ArBadge, gx as ArBalloon, qv as ArBorderBeam, kx as ArBottomNav, Fn as ArBreadcrumb, Nt as ArButton, op as ArCalendar, ti as ArCard, gp as ArCarousel, aa as ArCascader, rS as ArChangedValue, fa as ArCheckbox, ha as ArCheckboxGroup, aS as ArChip, Na as ArChoiceCard, ke as ArCluster, wp as ArCollapse, no as ArColorPicker, Ha as ArColorSwatches, je as ArCompact, Pp as ArCountdown, No as ArDateInput, Xo as ArDatePicker, ns as ArDateRange, hs as ArDateTimeInput, dS as ArDateView, vS as ArDaySummary, Vp as ArDescriptions, o as ArDesignError, Fe as ArDivider, CS as ArDocumentBlock, ty as ArDrawer, Dn as ArDropdown, xs as ArDurationInput, ES as ArEllipsis, ai as ArEmpty, RS as ArExample, As as ArField, BS as ArFlagGroup, US as ArFlagView, Ut as ArFloatButton, Fs as ArForm, Ie as ArGrid, $ as ArIcon, em as ArImage, YS as ArInfo, Js as ArInputNumber, bc as ArItem, $S as ArKanaInput, aC as ArKanaText, He as ArLayout, Kt as ArLink, mm as ArList, lC as ArLogoSpin, ym as ArMapPreview, We as ArMasonry, Ec as ArMentions, Vn as ArMenu, pC as ArMenuTile, ay as ArMessage, Ty as ArMessageHost, yC as ArMobileHeader, At as ArModal, TC as ArMonthDayInput, Ny as ArNotification, Py as ArNotificationHost, Pm as ArOrgChart, Nc as ArOtpInput, OC as ArPageHeading, qr as ArPagination, Jt as ArParagraph, ew as ArPayslip, HC as ArPayslipLine, MC as ArPayslipTable, qm as ArPdfViewer, Cw as ArPeriodBox, mw as ArPeriodNav, Ic as ArPills, Ym as ArPointerBadge, By as ArPopconfirm, ac as ArPopover, eh as ArProfileCard, Yy as ArProgress, Ow as ArPunchButton, Mw as ArPunchPanel, xh as ArQRCode, xa as ArRadio, Uc as ArRadioGroup, qc as ArRate, nb as ArResult, Th as ArRibbon, Cu as ArRichTextEditor, Iw as ArSaveBar, Vw as ArSectionHead, ui as ArSectionMenu, Qt as ArSegmented, Ir as ArSelect, bE as ArShiftChart, CE as ArShiftDaySheet, JD as ArShiftGrid, AO as ArShiftViewTable, cb as ArSkeleton, Ou as ArSlider, hb as ArSpin, Ye as ArSplit, $e as ArSplitter, et as ArStack, Np as ArStatistic, Pi as ArStepSelect, Fu as ArStepper, yi as ArSteps, Hu as ArSubItem, $u as ArSwitch, T_ as ArTable, Uk as ArTableHeader, Hi as ArTabs, Si as ArTag, nn as ArText, rr as ArTextInput, rd as ArTextarea, Te as ArThemeScope, YO as ArThumbnail, gk as ArTimeChart, ps as ArTimeInput, dd as ArTimePicker, gd as ArTimeRange, M_ as ArTimeline, rn as ArTitle, vb as ArToast, F_ as ArTooltip, K_ as ArTour, Od as ArTransfer, Q_ as ArTree, Jd as ArTreeSelect, Lv as ArTreeTable, Oe as ArUiProvider, gf as ArUpload, ml as ArVariablePanel, _g as ArViewOptions, bb as ArWatermark, yf as ArWeekdayPicker, Ji as ArWizard, yk as ArYearInput, wk as ArYearMonthInput, Dk as ArZipInput, Df as ArZoomControl, l as captureArUiContext, i as componentMeta, n as componentNames, r as contracts, a as defineDesign, t as designedComponents, we as icons, e as structuralComponents, sy as useArConfirm, my as useArMessage, Cy as useArNotification, f as useArUi };
|