@cocoar/vue-ui 1.14.0 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/button/CoarButton.vue.d.ts.map +1 -1
- package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts.map +1 -1
- package/dist/components/segmented-control/CoarSegmentedControl.vue.d.ts +40 -0
- package/dist/components/segmented-control/CoarSegmentedControl.vue.d.ts.map +1 -0
- package/dist/components/segmented-control/index.d.ts +3 -0
- package/dist/components/segmented-control/index.d.ts.map +1 -0
- package/dist/components/select/CoarSelect.vue.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +347 -281
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -842,7 +842,7 @@ var Z = /* @__PURE__ */ X(/* @__PURE__ */ d({
|
|
|
842
842
|
}, null, 8, ["name"])])) : a("", !0)
|
|
843
843
|
], 10, Ge));
|
|
844
844
|
}
|
|
845
|
-
}), [["__scopeId", "data-v-
|
|
845
|
+
}), [["__scopeId", "data-v-805cd707"]]);
|
|
846
846
|
//#endregion
|
|
847
847
|
//#region src/components/icon/icon-plugin.ts
|
|
848
848
|
function et(e) {
|
|
@@ -5497,7 +5497,7 @@ var Ls = ["id", "aria-label"], Rs = {
|
|
|
5497
5497
|
class: y(["coar-select-arrow", { "coar-select-arrow--open": L(x) }])
|
|
5498
5498
|
}, null, 8, ["class"])])], 42, Ws)])], 2));
|
|
5499
5499
|
}
|
|
5500
|
-
}), [["__scopeId", "data-v-
|
|
5500
|
+
}), [["__scopeId", "data-v-e3362523"]]), Ys = ["id"], Xs = { class: "coar-tooltip-text" }, Zs = /* @__PURE__ */ X(/* @__PURE__ */ d({
|
|
5501
5501
|
__name: "CoarTooltipPanel",
|
|
5502
5502
|
props: {
|
|
5503
5503
|
content: {},
|
|
@@ -8883,7 +8883,73 @@ var Gu = /* @__PURE__ */ d({
|
|
|
8883
8883
|
hidden: h.value !== e.id
|
|
8884
8884
|
}, [_(e) ? (w(), i(j(() => e.contentSlot), { key: 0 })) : a("", !0)], 10, Qu))), 128))])]));
|
|
8885
8885
|
}
|
|
8886
|
-
}), [["__scopeId", "data-v-b93fdeed"]]), ed = ["aria-label"
|
|
8886
|
+
}), [["__scopeId", "data-v-b93fdeed"]]), ed = ["aria-label", "aria-disabled"], td = [
|
|
8887
|
+
"disabled",
|
|
8888
|
+
"aria-pressed",
|
|
8889
|
+
"aria-label",
|
|
8890
|
+
"onClick"
|
|
8891
|
+
], nd = {
|
|
8892
|
+
key: 1,
|
|
8893
|
+
class: "coar-segmented-control__label"
|
|
8894
|
+
}, rd = /* @__PURE__ */ X(/* @__PURE__ */ d({
|
|
8895
|
+
__name: "CoarSegmentedControl",
|
|
8896
|
+
props: /* @__PURE__ */ g({
|
|
8897
|
+
options: {},
|
|
8898
|
+
size: { default: "s" },
|
|
8899
|
+
disabled: {
|
|
8900
|
+
type: Boolean,
|
|
8901
|
+
default: !1
|
|
8902
|
+
},
|
|
8903
|
+
fullWidth: {
|
|
8904
|
+
type: Boolean,
|
|
8905
|
+
default: !1
|
|
8906
|
+
},
|
|
8907
|
+
ariaLabel: { default: void 0 }
|
|
8908
|
+
}, {
|
|
8909
|
+
modelValue: { required: !0 },
|
|
8910
|
+
modelModifiers: {}
|
|
8911
|
+
}),
|
|
8912
|
+
emits: /* @__PURE__ */ g(["change"], ["update:modelValue"]),
|
|
8913
|
+
setup(t, { emit: n }) {
|
|
8914
|
+
let s = t, c = z(t, "modelValue"), l = n;
|
|
8915
|
+
function u(e) {
|
|
8916
|
+
return c.value === e.value;
|
|
8917
|
+
}
|
|
8918
|
+
function d(e) {
|
|
8919
|
+
s.disabled || e.disabled || c.value !== e.value && (c.value = e.value, l("change", e.value, e));
|
|
8920
|
+
}
|
|
8921
|
+
let f = r(() => [
|
|
8922
|
+
"coar-segmented-control",
|
|
8923
|
+
`coar-segmented-control--${s.size}`,
|
|
8924
|
+
{
|
|
8925
|
+
"coar-segmented-control--full-width": s.fullWidth,
|
|
8926
|
+
"coar-segmented-control--disabled": s.disabled
|
|
8927
|
+
}
|
|
8928
|
+
]);
|
|
8929
|
+
return (n, r) => (w(), o("div", {
|
|
8930
|
+
class: y(f.value),
|
|
8931
|
+
role: "group",
|
|
8932
|
+
"aria-label": t.ariaLabel,
|
|
8933
|
+
"aria-disabled": t.disabled ? "true" : void 0
|
|
8934
|
+
}, [(w(!0), o(e, null, k(t.options, (e) => (w(), o("button", {
|
|
8935
|
+
key: String(e.value),
|
|
8936
|
+
type: "button",
|
|
8937
|
+
class: y(["coar-segmented-control__segment", {
|
|
8938
|
+
"coar-segmented-control__segment--active": u(e),
|
|
8939
|
+
"coar-segmented-control__segment--disabled": e.disabled
|
|
8940
|
+
}]),
|
|
8941
|
+
disabled: t.disabled || e.disabled,
|
|
8942
|
+
"aria-pressed": u(e),
|
|
8943
|
+
"aria-label": e.ariaLabel ?? (e.icon && !e.label ? e.label : void 0),
|
|
8944
|
+
onClick: (t) => d(e)
|
|
8945
|
+
}, [e.icon ? (w(), i(Z, {
|
|
8946
|
+
key: 0,
|
|
8947
|
+
name: e.icon,
|
|
8948
|
+
size: "auto",
|
|
8949
|
+
class: "coar-segmented-control__icon"
|
|
8950
|
+
}, null, 8, ["name"])) : a("", !0), e.label ? (w(), o("span", nd, P(e.label), 1)) : a("", !0)], 10, td))), 128))], 10, ed));
|
|
8951
|
+
}
|
|
8952
|
+
}), [["__scopeId", "data-v-72983826"]]), id = ["aria-label"], ad = { class: "coar-breadcrumb-list" }, od = /* @__PURE__ */ X(/* @__PURE__ */ d({
|
|
8887
8953
|
__name: "CoarBreadcrumb",
|
|
8888
8954
|
props: {
|
|
8889
8955
|
separator: { default: "/" },
|
|
@@ -8895,23 +8961,23 @@ var Gu = /* @__PURE__ */ d({
|
|
|
8895
8961
|
class: "coar-breadcrumb",
|
|
8896
8962
|
"aria-label": e.ariaLabel,
|
|
8897
8963
|
style: x({ "--coar-breadcrumb-separator": n.value })
|
|
8898
|
-
}, [s("ol",
|
|
8964
|
+
}, [s("ol", ad, [A(t.$slots, "default", {}, void 0, !0)])], 12, id));
|
|
8899
8965
|
}
|
|
8900
|
-
}), [["__scopeId", "data-v-e7a867c8"]]),
|
|
8966
|
+
}), [["__scopeId", "data-v-e7a867c8"]]), sd = ["aria-current"], cd = /* @__PURE__ */ X(/* @__PURE__ */ d({
|
|
8901
8967
|
__name: "CoarBreadcrumbItem",
|
|
8902
8968
|
props: { active: { type: Boolean } },
|
|
8903
8969
|
setup(e) {
|
|
8904
8970
|
return (t, n) => (w(), o("li", {
|
|
8905
8971
|
class: y(["coar-breadcrumb-item", { "coar-breadcrumb-item--active": e.active }]),
|
|
8906
8972
|
"aria-current": e.active ? "page" : void 0
|
|
8907
|
-
}, [A(t.$slots, "default", {}, void 0, !0)], 10,
|
|
8973
|
+
}, [A(t.$slots, "default", {}, void 0, !0)], 10, sd));
|
|
8908
8974
|
}
|
|
8909
|
-
}), [["__scopeId", "data-v-35575ef1"]]),
|
|
8975
|
+
}), [["__scopeId", "data-v-35575ef1"]]), ld = ["aria-label"], ud = { class: "coar-pagination-nav" }, dd = ["disabled", "aria-label"], fd = ["disabled", "aria-label"], pd = ["aria-label"], md = [
|
|
8910
8976
|
"disabled",
|
|
8911
8977
|
"aria-current",
|
|
8912
8978
|
"aria-label",
|
|
8913
8979
|
"onClick"
|
|
8914
|
-
],
|
|
8980
|
+
], hd = ["disabled", "aria-label"], gd = ["disabled", "aria-label"], _d = /* @__PURE__ */ X(/* @__PURE__ */ d({
|
|
8915
8981
|
__name: "CoarPagination",
|
|
8916
8982
|
props: /* @__PURE__ */ g({
|
|
8917
8983
|
totalItems: {},
|
|
@@ -8960,7 +9026,7 @@ var Gu = /* @__PURE__ */ d({
|
|
|
8960
9026
|
return (n, r) => (w(), o("nav", {
|
|
8961
9027
|
class: y(["coar-pagination", { "coar-pagination--disabled": t.disabled }]),
|
|
8962
9028
|
"aria-label": L(c)("coar.ui.pagination.nav", void 0, "Pagination")
|
|
8963
|
-
}, [s("div",
|
|
9029
|
+
}, [s("div", ud, [
|
|
8964
9030
|
t.showFirstLast ? (w(), o("button", {
|
|
8965
9031
|
key: 0,
|
|
8966
9032
|
type: "button",
|
|
@@ -8971,7 +9037,7 @@ var Gu = /* @__PURE__ */ d({
|
|
|
8971
9037
|
}, [u(Z, {
|
|
8972
9038
|
name: "chevrons-left",
|
|
8973
9039
|
size: "s"
|
|
8974
|
-
})], 8,
|
|
9040
|
+
})], 8, dd)) : a("", !0),
|
|
8975
9041
|
s("button", {
|
|
8976
9042
|
type: "button",
|
|
8977
9043
|
class: "coar-pagination-button coar-pagination-button--nav",
|
|
@@ -8981,13 +9047,13 @@ var Gu = /* @__PURE__ */ d({
|
|
|
8981
9047
|
}, [u(Z, {
|
|
8982
9048
|
name: "chevron-left",
|
|
8983
9049
|
size: "s"
|
|
8984
|
-
})], 8,
|
|
9050
|
+
})], 8, fd),
|
|
8985
9051
|
(w(!0), o(e, null, k(h.value, (n, r) => (w(), o(e, { key: _(r, n) }, [n.type === "ellipsis" ? (w(), o("span", {
|
|
8986
9052
|
key: 0,
|
|
8987
9053
|
class: "coar-pagination-ellipsis",
|
|
8988
9054
|
role: "separator",
|
|
8989
9055
|
"aria-label": L(c)("coar.ui.pagination.morePage", void 0, "More pages")
|
|
8990
|
-
}, "...", 8,
|
|
9056
|
+
}, "...", 8, pd)) : (w(), o("button", {
|
|
8991
9057
|
key: 1,
|
|
8992
9058
|
type: "button",
|
|
8993
9059
|
class: y(["coar-pagination-button coar-pagination-button--page", { "coar-pagination-button--active": n.page === l.value }]),
|
|
@@ -8995,7 +9061,7 @@ var Gu = /* @__PURE__ */ d({
|
|
|
8995
9061
|
"aria-current": n.page === l.value ? "page" : void 0,
|
|
8996
9062
|
"aria-label": L(c)("coar.ui.pagination.goToPage", { page: n.page }, "Go to page " + n.page),
|
|
8997
9063
|
onClick: (e) => g(n.page)
|
|
8998
|
-
}, P(n.page), 11,
|
|
9064
|
+
}, P(n.page), 11, md))], 64))), 128)),
|
|
8999
9065
|
s("button", {
|
|
9000
9066
|
type: "button",
|
|
9001
9067
|
class: "coar-pagination-button coar-pagination-button--nav",
|
|
@@ -9005,7 +9071,7 @@ var Gu = /* @__PURE__ */ d({
|
|
|
9005
9071
|
}, [u(Z, {
|
|
9006
9072
|
name: "chevron-right",
|
|
9007
9073
|
size: "s"
|
|
9008
|
-
})], 8,
|
|
9074
|
+
})], 8, hd),
|
|
9009
9075
|
t.showFirstLast ? (w(), o("button", {
|
|
9010
9076
|
key: 1,
|
|
9011
9077
|
type: "button",
|
|
@@ -9016,22 +9082,22 @@ var Gu = /* @__PURE__ */ d({
|
|
|
9016
9082
|
}, [u(Z, {
|
|
9017
9083
|
name: "chevrons-right",
|
|
9018
9084
|
size: "s"
|
|
9019
|
-
})], 8,
|
|
9020
|
-
])], 10,
|
|
9085
|
+
})], 8, gd)) : a("", !0)
|
|
9086
|
+
])], 10, ld));
|
|
9021
9087
|
}
|
|
9022
9088
|
}), [["__scopeId", "data-v-9e40bd44"]]);
|
|
9023
9089
|
//#endregion
|
|
9024
9090
|
//#region src/components/sidebar/sidebar-context.ts
|
|
9025
|
-
function
|
|
9091
|
+
function vd(e) {
|
|
9026
9092
|
return e === "top" || e === "bottom" ? "horizontal" : "vertical";
|
|
9027
9093
|
}
|
|
9028
|
-
var
|
|
9094
|
+
var yd = Symbol("sidebar-collapsed"), bd = Symbol("sidebar-icon-size"), xd = Symbol("sidebar-side"), Sd = Symbol("sidebar-flyout-icon-only"), Cd = Symbol("sidebar-flyout-parent"), wd = ["aria-label"], Td = {
|
|
9029
9095
|
key: 0,
|
|
9030
9096
|
class: "coar-sidebar__header"
|
|
9031
|
-
},
|
|
9097
|
+
}, Ed = { class: "coar-sidebar__content" }, Dd = {
|
|
9032
9098
|
key: 1,
|
|
9033
9099
|
class: "coar-sidebar__footer"
|
|
9034
|
-
},
|
|
9100
|
+
}, Od = /* @__PURE__ */ X(/* @__PURE__ */ d({
|
|
9035
9101
|
__name: "CoarSidebar",
|
|
9036
9102
|
props: {
|
|
9037
9103
|
side: { default: void 0 },
|
|
@@ -9054,8 +9120,8 @@ var hd = Symbol("sidebar-collapsed"), gd = Symbol("sidebar-icon-size"), _d = Sym
|
|
|
9054
9120
|
},
|
|
9055
9121
|
emits: ["update:collapsed"],
|
|
9056
9122
|
setup(e) {
|
|
9057
|
-
let t = e, n = r(() => t.side ?? t.position ?? "left"), i = r(() =>
|
|
9058
|
-
T(
|
|
9123
|
+
let t = e, n = r(() => t.side ?? t.position ?? "left"), i = r(() => vd(n.value)), s = F(t, "collapsed"), c = F(t, "size");
|
|
9124
|
+
T(yd, s), T(bd, c), T(xd, n);
|
|
9059
9125
|
let l = r(() => ({
|
|
9060
9126
|
"coar-sidebar": !0,
|
|
9061
9127
|
[`coar-sidebar--${t.variant}`]: !0,
|
|
@@ -9079,19 +9145,19 @@ var hd = Symbol("sidebar-collapsed"), gd = Symbol("sidebar-icon-size"), _d = Sym
|
|
|
9079
9145
|
"aria-label": e.ariaLabel || "Sidebar",
|
|
9080
9146
|
class: y(l.value)
|
|
9081
9147
|
}, [
|
|
9082
|
-
n.$slots.header ? (w(), o("div",
|
|
9083
|
-
K((w(), o("div",
|
|
9084
|
-
n.$slots.footer ? (w(), o("div",
|
|
9085
|
-
], 10,
|
|
9148
|
+
n.$slots.header ? (w(), o("div", Td, [A(n.$slots, "header", { collapsed: t.collapsed }, void 0, !0)])) : a("", !0),
|
|
9149
|
+
K((w(), o("div", Ed, [A(n.$slots, "default", { collapsed: t.collapsed }, void 0, !0)])), [[L(Fs), u.value]]),
|
|
9150
|
+
n.$slots.footer ? (w(), o("div", Dd, [A(n.$slots, "footer", { collapsed: t.collapsed }, void 0, !0)])) : a("", !0)
|
|
9151
|
+
], 10, wd));
|
|
9086
9152
|
}
|
|
9087
|
-
}), [["__scopeId", "data-v-656c121e"]]),
|
|
9153
|
+
}), [["__scopeId", "data-v-656c121e"]]), kd = [
|
|
9088
9154
|
"aria-disabled",
|
|
9089
9155
|
"aria-current",
|
|
9090
9156
|
"tabindex"
|
|
9091
|
-
],
|
|
9157
|
+
], Ad = {
|
|
9092
9158
|
class: "coar-sidebar-item__icon",
|
|
9093
9159
|
"aria-hidden": "true"
|
|
9094
|
-
},
|
|
9160
|
+
}, jd = { class: "coar-sidebar-item__label" }, Md = /* @__PURE__ */ X(/* @__PURE__ */ d({
|
|
9095
9161
|
__name: "CoarSidebarItem",
|
|
9096
9162
|
props: {
|
|
9097
9163
|
label: {},
|
|
@@ -9107,7 +9173,7 @@ var hd = Symbol("sidebar-collapsed"), gd = Symbol("sidebar-icon-size"), _d = Sym
|
|
|
9107
9173
|
},
|
|
9108
9174
|
emits: ["click"],
|
|
9109
9175
|
setup(e, { emit: t }) {
|
|
9110
|
-
let n = e, i = t, a = m(
|
|
9176
|
+
let n = e, i = t, a = m(yd, O(!1)), c = m(bd, O("m")), l = m(xd, O("left")), d = m(Sd, O(!1)), f = r(() => {
|
|
9111
9177
|
switch (l.value) {
|
|
9112
9178
|
case "right": return "left";
|
|
9113
9179
|
case "top": return "bottom";
|
|
@@ -9122,7 +9188,7 @@ var hd = Symbol("sidebar-collapsed"), gd = Symbol("sidebar-icon-size"), _d = Sym
|
|
|
9122
9188
|
content: n.label,
|
|
9123
9189
|
placement: f.value,
|
|
9124
9190
|
openDelay: 200
|
|
9125
|
-
} : !1), h = r(() =>
|
|
9191
|
+
} : !1), h = r(() => vd(l.value));
|
|
9126
9192
|
function g(e) {
|
|
9127
9193
|
if (n.disabled) {
|
|
9128
9194
|
e.preventDefault();
|
|
@@ -9149,12 +9215,12 @@ var hd = Symbol("sidebar-collapsed"), gd = Symbol("sidebar-icon-size"), _d = Sym
|
|
|
9149
9215
|
tabindex: n.disabled ? -1 : 0,
|
|
9150
9216
|
onClick: g,
|
|
9151
9217
|
onKeydown: _
|
|
9152
|
-
}, [s("span",
|
|
9218
|
+
}, [s("span", Ad, [u(Z, {
|
|
9153
9219
|
name: n.icon || "square-dashed",
|
|
9154
9220
|
size: L(c)
|
|
9155
|
-
}, null, 8, ["name", "size"])]), s("span",
|
|
9221
|
+
}, null, 8, ["name", "size"])]), s("span", jd, P(n.label), 1)], 42, kd)), [[L(uc), p.value]]);
|
|
9156
9222
|
}
|
|
9157
|
-
}), [["__scopeId", "data-v-33cbb961"]]),
|
|
9223
|
+
}), [["__scopeId", "data-v-33cbb961"]]), Nd = /* @__PURE__ */ d({
|
|
9158
9224
|
__name: "SidebarFlyoutProvider",
|
|
9159
9225
|
props: {
|
|
9160
9226
|
iconOnly: { type: Boolean },
|
|
@@ -9162,12 +9228,12 @@ var hd = Symbol("sidebar-collapsed"), gd = Symbol("sidebar-icon-size"), _d = Sym
|
|
|
9162
9228
|
},
|
|
9163
9229
|
setup(e) {
|
|
9164
9230
|
let t = e;
|
|
9165
|
-
return T(
|
|
9231
|
+
return T(Sd, F(t, "iconOnly")), T(Cd, t.parentControl), (e, t) => A(e.$slots, "default");
|
|
9166
9232
|
}
|
|
9167
|
-
}),
|
|
9233
|
+
}), Pd = ["id"], Fd = {
|
|
9168
9234
|
key: 0,
|
|
9169
9235
|
class: "coar-sidebar-flyout__header"
|
|
9170
|
-
},
|
|
9236
|
+
}, Id = { class: "coar-sidebar-flyout__items" }, Ld = /* @__PURE__ */ d({
|
|
9171
9237
|
__name: "CoarSidebarFlyoutPanel",
|
|
9172
9238
|
props: {
|
|
9173
9239
|
id: {
|
|
@@ -9193,7 +9259,7 @@ var hd = Symbol("sidebar-collapsed"), gd = Symbol("sidebar-icon-size"), _d = Sym
|
|
|
9193
9259
|
},
|
|
9194
9260
|
emits: ["flyoutEnter", "flyoutLeave"],
|
|
9195
9261
|
setup(e) {
|
|
9196
|
-
return (t, n) => (w(), i(
|
|
9262
|
+
return (t, n) => (w(), i(Nd, {
|
|
9197
9263
|
"icon-only": e.iconOnly,
|
|
9198
9264
|
"parent-control": e.parentControl
|
|
9199
9265
|
}, {
|
|
@@ -9203,19 +9269,19 @@ var hd = Symbol("sidebar-collapsed"), gd = Symbol("sidebar-icon-size"), _d = Sym
|
|
|
9203
9269
|
role: "menu",
|
|
9204
9270
|
onMouseenter: n[0] ||= (e) => t.$emit("flyoutEnter"),
|
|
9205
9271
|
onMouseleave: n[1] ||= (e) => t.$emit("flyoutLeave")
|
|
9206
|
-
}, [e.iconOnly ? a("", !0) : (w(), o("div",
|
|
9272
|
+
}, [e.iconOnly ? a("", !0) : (w(), o("div", Fd, P(e.label), 1)), s("div", Id, [(w(), i(j({ render: e.renderContent })))])], 42, Pd)]),
|
|
9207
9273
|
_: 1
|
|
9208
9274
|
}, 8, ["icon-only", "parent-control"]));
|
|
9209
9275
|
}
|
|
9210
|
-
}),
|
|
9276
|
+
}), Rd = [
|
|
9211
9277
|
"aria-expanded",
|
|
9212
9278
|
"aria-disabled",
|
|
9213
9279
|
"tabindex",
|
|
9214
9280
|
"onKeydown"
|
|
9215
|
-
],
|
|
9281
|
+
], zd = {
|
|
9216
9282
|
class: "coar-sidebar-group__icon",
|
|
9217
9283
|
"aria-hidden": "true"
|
|
9218
|
-
},
|
|
9284
|
+
}, Bd = { class: "coar-sidebar-group__caret" }, Vd = { class: "coar-sidebar-group__label" }, Hd = ["aria-hidden"], Ud = { class: "coar-sidebar-group__panel-inner" }, Wd = /* @__PURE__ */ X(/* @__PURE__ */ d({
|
|
9219
9285
|
__name: "CoarSidebarGroup",
|
|
9220
9286
|
props: /* @__PURE__ */ g({
|
|
9221
9287
|
label: {},
|
|
@@ -9242,7 +9308,7 @@ var hd = Symbol("sidebar-collapsed"), gd = Symbol("sidebar-icon-size"), _d = Sym
|
|
|
9242
9308
|
}),
|
|
9243
9309
|
emits: ["update:open"],
|
|
9244
9310
|
setup(e) {
|
|
9245
|
-
let t = `coar-sidebar-group-${R()}`, n = e, i = z(e, "open"), c = m(
|
|
9311
|
+
let t = `coar-sidebar-group-${R()}`, n = e, i = z(e, "open"), c = m(yd, O(!1)), l = m(bd, O("m")), d = m(xd, O("left")), f = r(() => vd(d.value)), p = m(Sd, O(!1)), g = r(() => n.iconOnly ?? p.value), _ = r(() => i.value), v = r(() => n.mode === "flyout"), b = B(), x = O(!1), C = O(null), T = null, E = null, D = null, k = m(Cd, null), j = {
|
|
9246
9312
|
cancelClose: () => {
|
|
9247
9313
|
ae(), k?.cancelClose();
|
|
9248
9314
|
},
|
|
@@ -9325,7 +9391,7 @@ var hd = Symbol("sidebar-collapsed"), gd = Symbol("sidebar-icon-size"), _d = Sym
|
|
|
9325
9391
|
},
|
|
9326
9392
|
content: {
|
|
9327
9393
|
kind: "component",
|
|
9328
|
-
component: h(
|
|
9394
|
+
component: h(Ld)
|
|
9329
9395
|
},
|
|
9330
9396
|
inputs: {
|
|
9331
9397
|
id: t,
|
|
@@ -9392,52 +9458,52 @@ var hd = Symbol("sidebar-collapsed"), gd = Symbol("sidebar-icon-size"), _d = Sym
|
|
|
9392
9458
|
onMouseenter: Y,
|
|
9393
9459
|
onMouseleave: ce
|
|
9394
9460
|
}, [
|
|
9395
|
-
s("span",
|
|
9461
|
+
s("span", zd, [u(Z, {
|
|
9396
9462
|
name: n.icon || "square-dashed",
|
|
9397
9463
|
size: L(l)
|
|
9398
|
-
}, null, 8, ["name", "size"]), s("span",
|
|
9464
|
+
}, null, 8, ["name", "size"]), s("span", Bd, [u(Z, {
|
|
9399
9465
|
name: v.value ? x.value ? V.value : I.value : _.value ? "minus" : "plus",
|
|
9400
9466
|
size: "xs"
|
|
9401
9467
|
}, null, 8, ["name"])])]),
|
|
9402
|
-
s("span",
|
|
9468
|
+
s("span", Vd, P(n.label), 1),
|
|
9403
9469
|
u(Z, {
|
|
9404
9470
|
name: v.value ? x.value ? V.value : I.value : _.value ? "minus" : "plus",
|
|
9405
9471
|
size: "xs",
|
|
9406
9472
|
class: "coar-sidebar-group__chevron",
|
|
9407
9473
|
"aria-hidden": "true"
|
|
9408
9474
|
}, null, 8, ["name"])
|
|
9409
|
-
], 42,
|
|
9475
|
+
], 42, Rd)), [[L(uc), F.value]]), v.value ? a("", !0) : (w(), o("div", {
|
|
9410
9476
|
key: 0,
|
|
9411
9477
|
id: t,
|
|
9412
9478
|
class: y(["coar-sidebar-group__panel", { "coar-sidebar-group__panel--open": _.value }]),
|
|
9413
9479
|
"aria-hidden": !_.value || void 0,
|
|
9414
9480
|
role: "group"
|
|
9415
|
-
}, [s("div",
|
|
9481
|
+
}, [s("div", Ud, [A(e.$slots, "default", {}, void 0, !0)])], 10, Hd))], 2));
|
|
9416
9482
|
}
|
|
9417
|
-
}), [["__scopeId", "data-v-fc4f23cf"]]),
|
|
9483
|
+
}), [["__scopeId", "data-v-fc4f23cf"]]), Gd = {
|
|
9418
9484
|
key: 0,
|
|
9419
9485
|
class: "coar-sidebar-heading__text"
|
|
9420
|
-
},
|
|
9486
|
+
}, Kd = /* @__PURE__ */ X(/* @__PURE__ */ d({
|
|
9421
9487
|
__name: "CoarSidebarHeading",
|
|
9422
9488
|
props: { label: {} },
|
|
9423
9489
|
setup(e) {
|
|
9424
|
-
let t = e, n = m(
|
|
9490
|
+
let t = e, n = m(yd, O(!1));
|
|
9425
9491
|
return (e, r) => (w(), o("div", {
|
|
9426
9492
|
class: y(["coar-sidebar-heading", { "coar-sidebar-heading--collapsed": L(n) }]),
|
|
9427
9493
|
role: "heading",
|
|
9428
9494
|
"aria-level": "3"
|
|
9429
|
-
}, [L(n) ? a("", !0) : (w(), o("span",
|
|
9495
|
+
}, [L(n) ? a("", !0) : (w(), o("span", Gd, P(t.label), 1))], 2));
|
|
9430
9496
|
}
|
|
9431
|
-
}), [["__scopeId", "data-v-99fb2c2f"]]),
|
|
9497
|
+
}), [["__scopeId", "data-v-99fb2c2f"]]), qd = /* @__PURE__ */ X(/* @__PURE__ */ d({
|
|
9432
9498
|
__name: "CoarSidebarDivider",
|
|
9433
9499
|
setup(e) {
|
|
9434
|
-
let t = m(
|
|
9500
|
+
let t = m(yd, O(!1));
|
|
9435
9501
|
return (e, n) => (w(), o("div", {
|
|
9436
9502
|
class: y(["coar-sidebar-divider", { "coar-sidebar-divider--collapsed": L(t) }]),
|
|
9437
9503
|
role: "separator"
|
|
9438
9504
|
}, null, 2));
|
|
9439
9505
|
}
|
|
9440
|
-
}), [["__scopeId", "data-v-c70a1b23"]]),
|
|
9506
|
+
}), [["__scopeId", "data-v-c70a1b23"]]), Jd = /* @__PURE__ */ X(/* @__PURE__ */ d({
|
|
9441
9507
|
__name: "CoarSidebarSpacer",
|
|
9442
9508
|
props: {
|
|
9443
9509
|
height: { default: void 0 },
|
|
@@ -9454,16 +9520,16 @@ var hd = Symbol("sidebar-collapsed"), gd = Symbol("sidebar-icon-size"), _d = Sym
|
|
|
9454
9520
|
"aria-hidden": "true"
|
|
9455
9521
|
}, null, 6));
|
|
9456
9522
|
}
|
|
9457
|
-
}), [["__scopeId", "data-v-502139f5"]]),
|
|
9523
|
+
}), [["__scopeId", "data-v-502139f5"]]), Yd = {
|
|
9458
9524
|
key: 0,
|
|
9459
9525
|
class: "coar-navbar__start"
|
|
9460
|
-
},
|
|
9526
|
+
}, Xd = {
|
|
9461
9527
|
key: 1,
|
|
9462
9528
|
class: "coar-navbar__center"
|
|
9463
|
-
},
|
|
9529
|
+
}, Zd = {
|
|
9464
9530
|
key: 2,
|
|
9465
9531
|
class: "coar-navbar__end"
|
|
9466
|
-
},
|
|
9532
|
+
}, Qd = /* @__PURE__ */ X(/* @__PURE__ */ d({
|
|
9467
9533
|
__name: "CoarNavbar",
|
|
9468
9534
|
props: {
|
|
9469
9535
|
elevated: {
|
|
@@ -9483,17 +9549,17 @@ var hd = Symbol("sidebar-collapsed"), gd = Symbol("sidebar-icon-size"), _d = Sym
|
|
|
9483
9549
|
}]),
|
|
9484
9550
|
role: "banner"
|
|
9485
9551
|
}, [
|
|
9486
|
-
t.$slots.start ? (w(), o("div",
|
|
9552
|
+
t.$slots.start ? (w(), o("div", Yd, [A(t.$slots, "start", {}, void 0, !0)])) : a("", !0),
|
|
9487
9553
|
n[0] ||= s("div", { class: "coar-navbar__spacer" }, null, -1),
|
|
9488
|
-
t.$slots.center ? (w(), o("div",
|
|
9554
|
+
t.$slots.center ? (w(), o("div", Xd, [A(t.$slots, "center", {}, void 0, !0)])) : a("", !0),
|
|
9489
9555
|
n[1] ||= s("div", { class: "coar-navbar__spacer" }, null, -1),
|
|
9490
|
-
t.$slots.end ? (w(), o("div",
|
|
9556
|
+
t.$slots.end ? (w(), o("div", Zd, [A(t.$slots, "end", {}, void 0, !0)])) : a("", !0)
|
|
9491
9557
|
], 2));
|
|
9492
9558
|
}
|
|
9493
9559
|
}), [["__scopeId", "data-v-c7eb4106"]]);
|
|
9494
9560
|
//#endregion
|
|
9495
9561
|
//#region src/components/date-time/_shared/time-helpers.ts
|
|
9496
|
-
function
|
|
9562
|
+
function $d(e) {
|
|
9497
9563
|
try {
|
|
9498
9564
|
return new Intl.DateTimeFormat(e, {
|
|
9499
9565
|
hour: "numeric",
|
|
@@ -9503,13 +9569,13 @@ function Yd(e) {
|
|
|
9503
9569
|
return !1;
|
|
9504
9570
|
}
|
|
9505
9571
|
}
|
|
9506
|
-
function
|
|
9572
|
+
function ef(e, t, n) {
|
|
9507
9573
|
let r = String(t).padStart(2, "0");
|
|
9508
9574
|
if (n) return `${String(e).padStart(2, "0")}:${r}`;
|
|
9509
9575
|
let i = e >= 12 ? "PM" : "AM", a = e % 12;
|
|
9510
9576
|
return a === 0 && (a = 12), `${a}:${r} ${i}`;
|
|
9511
9577
|
}
|
|
9512
|
-
function
|
|
9578
|
+
function tf(e) {
|
|
9513
9579
|
if (!e || typeof e != "string") return null;
|
|
9514
9580
|
let t = e.trim().toUpperCase(), n = t.match(/^(\d{1,2}):(\d{2})\s*(AM|PM)$/);
|
|
9515
9581
|
if (n) {
|
|
@@ -9529,41 +9595,41 @@ function Zd(e) {
|
|
|
9529
9595
|
}
|
|
9530
9596
|
return null;
|
|
9531
9597
|
}
|
|
9532
|
-
function
|
|
9598
|
+
function nf(e) {
|
|
9533
9599
|
let t = e >= 12 ? "PM" : "AM", n = e % 12;
|
|
9534
9600
|
return n === 0 && (n = 12), {
|
|
9535
9601
|
hours: n,
|
|
9536
9602
|
period: t
|
|
9537
9603
|
};
|
|
9538
9604
|
}
|
|
9539
|
-
function
|
|
9605
|
+
function rf(e, t) {
|
|
9540
9606
|
return t === "AM" ? e === 12 ? 0 : e : e === 12 ? 12 : e + 12;
|
|
9541
9607
|
}
|
|
9542
|
-
function
|
|
9608
|
+
function af(e, t) {
|
|
9543
9609
|
let n = (e + t) % 24;
|
|
9544
9610
|
return n < 0 ? n + 24 : n;
|
|
9545
9611
|
}
|
|
9546
|
-
function
|
|
9612
|
+
function of(e, t, n = 1) {
|
|
9547
9613
|
let r = e + t * n, i = 0, a = r;
|
|
9548
9614
|
return r >= 60 ? (i = Math.floor(r / 60), a = r % 60) : r < 0 && (i = Math.floor(r / 60), a = (r % 60 + 60) % 60), {
|
|
9549
9615
|
minutes: a,
|
|
9550
9616
|
hourDelta: i
|
|
9551
9617
|
};
|
|
9552
9618
|
}
|
|
9553
|
-
function
|
|
9619
|
+
function sf(e, t) {
|
|
9554
9620
|
return Math.round(e / t) * t;
|
|
9555
9621
|
}
|
|
9556
9622
|
//#endregion
|
|
9557
9623
|
//#region src/components/date-time/time-picker/CoarTimePicker.vue?vue&type=script&setup=true&lang.ts
|
|
9558
|
-
var
|
|
9624
|
+
var cf = ["aria-label"], lf = { class: "coar-time-picker__spinner coar-time-picker__hours" }, uf = ["disabled", "aria-label"], df = [
|
|
9559
9625
|
"aria-valuenow",
|
|
9560
9626
|
"aria-valuemin",
|
|
9561
9627
|
"aria-valuemax",
|
|
9562
9628
|
"aria-label"
|
|
9563
|
-
],
|
|
9629
|
+
], ff = ["disabled", "aria-label"], pf = { class: "coar-time-picker__spinner coar-time-picker__minutes" }, mf = ["disabled", "aria-label"], hf = ["aria-valuenow", "aria-label"], gf = ["disabled", "aria-label"], _f = {
|
|
9564
9630
|
key: 0,
|
|
9565
9631
|
class: "coar-time-picker__spinner coar-time-picker__period"
|
|
9566
|
-
},
|
|
9632
|
+
}, vf = ["disabled"], yf = ["aria-valuenow", "aria-valuetext"], bf = ["disabled"], xf = /* @__PURE__ */ X(/* @__PURE__ */ d({
|
|
9567
9633
|
__name: "CoarTimePicker",
|
|
9568
9634
|
props: /* @__PURE__ */ g({
|
|
9569
9635
|
size: { default: "m" },
|
|
@@ -9592,9 +9658,9 @@ var rf = ["aria-label"], af = { class: "coar-time-picker__spinner coar-time-pick
|
|
|
9592
9658
|
setup(e) {
|
|
9593
9659
|
let t = e, n = z(e, "modelValue"), { t: i } = q(), c = J(), l = r(() => t.locale ?? c?.language.value ?? navigator.language), d = O(9), f = O(0), p = O("AM");
|
|
9594
9660
|
U(n, (e) => {
|
|
9595
|
-
e && (d.value = e.hours, f.value =
|
|
9661
|
+
e && (d.value = e.hours, f.value = sf(e.minutes, t.minuteStep), p.value = e.hours >= 12 ? "PM" : "AM");
|
|
9596
9662
|
}, { immediate: !0 });
|
|
9597
|
-
let m = r(() => t.use24Hour === !0 ? !1 : t.use24Hour === !1 ? !0 :
|
|
9663
|
+
let m = r(() => t.use24Hour === !0 ? !1 : t.use24Hour === !1 ? !0 : $d(l.value)), h = r(() => m.value ? nf(d.value).hours : d.value), g = r(() => f.value), _ = r(() => +!!m.value), v = r(() => m.value ? 12 : 23), b = r(() => t.size === "xs" ? "xs" : "s");
|
|
9598
9664
|
function x(e) {
|
|
9599
9665
|
return e.hours * 60 + e.minutes;
|
|
9600
9666
|
}
|
|
@@ -9629,11 +9695,11 @@ var rf = ["aria-label"], af = { class: "coar-time-picker__spinner coar-time-pick
|
|
|
9629
9695
|
if (!(t.disabled || t.readonly || S.value)) {
|
|
9630
9696
|
if (m.value) {
|
|
9631
9697
|
let e = h.value, t = e + 1;
|
|
9632
|
-
if (t > 12 && (t = 1), d.value =
|
|
9698
|
+
if (t > 12 && (t = 1), d.value = rf(t, p.value), e === 11) {
|
|
9633
9699
|
I();
|
|
9634
9700
|
return;
|
|
9635
9701
|
}
|
|
9636
|
-
} else d.value =
|
|
9702
|
+
} else d.value = af(d.value, 1);
|
|
9637
9703
|
A();
|
|
9638
9704
|
}
|
|
9639
9705
|
}
|
|
@@ -9641,28 +9707,28 @@ var rf = ["aria-label"], af = { class: "coar-time-picker__spinner coar-time-pick
|
|
|
9641
9707
|
if (!(t.disabled || t.readonly || C.value)) {
|
|
9642
9708
|
if (m.value) {
|
|
9643
9709
|
let e = h.value, t = e - 1;
|
|
9644
|
-
if (t < 1 && (t = 12), d.value =
|
|
9710
|
+
if (t < 1 && (t = 12), d.value = rf(t, p.value), e === 12) {
|
|
9645
9711
|
I();
|
|
9646
9712
|
return;
|
|
9647
9713
|
}
|
|
9648
|
-
} else d.value =
|
|
9714
|
+
} else d.value = af(d.value, -1);
|
|
9649
9715
|
A();
|
|
9650
9716
|
}
|
|
9651
9717
|
}
|
|
9652
9718
|
function N() {
|
|
9653
9719
|
if (t.disabled || t.readonly || T.value) return;
|
|
9654
|
-
let { minutes: e, hourDelta: n } =
|
|
9655
|
-
f.value = e, n !== 0 && (d.value =
|
|
9720
|
+
let { minutes: e, hourDelta: n } = of(f.value, 1, t.minuteStep);
|
|
9721
|
+
f.value = e, n !== 0 && (d.value = af(d.value, n), p.value = d.value >= 12 ? "PM" : "AM"), A();
|
|
9656
9722
|
}
|
|
9657
9723
|
function F() {
|
|
9658
9724
|
if (t.disabled || t.readonly || E.value) return;
|
|
9659
|
-
let { minutes: e, hourDelta: n } =
|
|
9660
|
-
f.value = e, n !== 0 && (d.value =
|
|
9725
|
+
let { minutes: e, hourDelta: n } = of(f.value, -1, t.minuteStep);
|
|
9726
|
+
f.value = e, n !== 0 && (d.value = af(d.value, n), p.value = d.value >= 12 ? "PM" : "AM"), A();
|
|
9661
9727
|
}
|
|
9662
9728
|
function I() {
|
|
9663
9729
|
if (t.disabled || t.readonly || !m.value) return;
|
|
9664
9730
|
let e = p.value === "AM" ? "PM" : "AM";
|
|
9665
|
-
e === "AM" && D.value || e === "PM" && k.value || (p.value = e, d.value =
|
|
9731
|
+
e === "AM" && D.value || e === "PM" && k.value || (p.value = e, d.value = rf(h.value, e), A());
|
|
9666
9732
|
}
|
|
9667
9733
|
function R(e) {
|
|
9668
9734
|
t.disabled || t.readonly || (e.key === "ArrowUp" ? (e.preventDefault(), j()) : e.key === "ArrowDown" && (e.preventDefault(), M()));
|
|
@@ -9686,7 +9752,7 @@ var rf = ["aria-label"], af = { class: "coar-time-picker__spinner coar-time-pick
|
|
|
9686
9752
|
role: "group",
|
|
9687
9753
|
"aria-label": e.ariaLabel
|
|
9688
9754
|
}, [
|
|
9689
|
-
s("div",
|
|
9755
|
+
s("div", lf, [
|
|
9690
9756
|
s("button", {
|
|
9691
9757
|
type: "button",
|
|
9692
9758
|
class: "coar-time-picker__btn coar-time-picker__btn--up",
|
|
@@ -9697,7 +9763,7 @@ var rf = ["aria-label"], af = { class: "coar-time-picker__spinner coar-time-pick
|
|
|
9697
9763
|
}, [u(Z, {
|
|
9698
9764
|
name: "chevron-up",
|
|
9699
9765
|
size: b.value
|
|
9700
|
-
}, null, 8, ["size"])], 8,
|
|
9766
|
+
}, null, 8, ["size"])], 8, uf),
|
|
9701
9767
|
s("div", {
|
|
9702
9768
|
class: "coar-time-picker__value",
|
|
9703
9769
|
role: "spinbutton",
|
|
@@ -9707,7 +9773,7 @@ var rf = ["aria-label"], af = { class: "coar-time-picker__spinner coar-time-pick
|
|
|
9707
9773
|
"aria-valuemax": v.value,
|
|
9708
9774
|
"aria-label": L(i)("coar.ui.timePicker.hours", void 0, "Hours"),
|
|
9709
9775
|
onKeydown: R
|
|
9710
|
-
}, P(h.value.toString().padStart(2, "0")), 41,
|
|
9776
|
+
}, P(h.value.toString().padStart(2, "0")), 41, df),
|
|
9711
9777
|
s("button", {
|
|
9712
9778
|
type: "button",
|
|
9713
9779
|
class: "coar-time-picker__btn coar-time-picker__btn--down",
|
|
@@ -9718,13 +9784,13 @@ var rf = ["aria-label"], af = { class: "coar-time-picker__spinner coar-time-pick
|
|
|
9718
9784
|
}, [u(Z, {
|
|
9719
9785
|
name: "chevron-down",
|
|
9720
9786
|
size: b.value
|
|
9721
|
-
}, null, 8, ["size"])], 8,
|
|
9787
|
+
}, null, 8, ["size"])], 8, ff)
|
|
9722
9788
|
]),
|
|
9723
9789
|
n[0] ||= s("span", {
|
|
9724
9790
|
class: "coar-time-picker__separator",
|
|
9725
9791
|
"aria-hidden": "true"
|
|
9726
9792
|
}, ":", -1),
|
|
9727
|
-
s("div",
|
|
9793
|
+
s("div", pf, [
|
|
9728
9794
|
s("button", {
|
|
9729
9795
|
type: "button",
|
|
9730
9796
|
class: "coar-time-picker__btn coar-time-picker__btn--up",
|
|
@@ -9735,7 +9801,7 @@ var rf = ["aria-label"], af = { class: "coar-time-picker__spinner coar-time-pick
|
|
|
9735
9801
|
}, [u(Z, {
|
|
9736
9802
|
name: "chevron-up",
|
|
9737
9803
|
size: b.value
|
|
9738
|
-
}, null, 8, ["size"])], 8,
|
|
9804
|
+
}, null, 8, ["size"])], 8, mf),
|
|
9739
9805
|
s("div", {
|
|
9740
9806
|
class: "coar-time-picker__value",
|
|
9741
9807
|
role: "spinbutton",
|
|
@@ -9745,7 +9811,7 @@ var rf = ["aria-label"], af = { class: "coar-time-picker__spinner coar-time-pick
|
|
|
9745
9811
|
"aria-valuemax": "59",
|
|
9746
9812
|
"aria-label": L(i)("coar.ui.timePicker.minutes", void 0, "Minutes"),
|
|
9747
9813
|
onKeydown: B
|
|
9748
|
-
}, P(g.value.toString().padStart(2, "0")), 41,
|
|
9814
|
+
}, P(g.value.toString().padStart(2, "0")), 41, hf),
|
|
9749
9815
|
s("button", {
|
|
9750
9816
|
type: "button",
|
|
9751
9817
|
class: "coar-time-picker__btn coar-time-picker__btn--down",
|
|
@@ -9756,9 +9822,9 @@ var rf = ["aria-label"], af = { class: "coar-time-picker__spinner coar-time-pick
|
|
|
9756
9822
|
}, [u(Z, {
|
|
9757
9823
|
name: "chevron-down",
|
|
9758
9824
|
size: b.value
|
|
9759
|
-
}, null, 8, ["size"])], 8,
|
|
9825
|
+
}, null, 8, ["size"])], 8, gf)
|
|
9760
9826
|
]),
|
|
9761
|
-
m.value ? (w(), o("div",
|
|
9827
|
+
m.value ? (w(), o("div", _f, [
|
|
9762
9828
|
s("button", {
|
|
9763
9829
|
type: "button",
|
|
9764
9830
|
class: "coar-time-picker__btn coar-time-picker__btn--up",
|
|
@@ -9769,7 +9835,7 @@ var rf = ["aria-label"], af = { class: "coar-time-picker__spinner coar-time-pick
|
|
|
9769
9835
|
}, [u(Z, {
|
|
9770
9836
|
name: "chevron-up",
|
|
9771
9837
|
size: b.value
|
|
9772
|
-
}, null, 8, ["size"])], 8,
|
|
9838
|
+
}, null, 8, ["size"])], 8, vf),
|
|
9773
9839
|
s("div", {
|
|
9774
9840
|
class: "coar-time-picker__value coar-time-picker__period-value",
|
|
9775
9841
|
role: "spinbutton",
|
|
@@ -9780,7 +9846,7 @@ var rf = ["aria-label"], af = { class: "coar-time-picker__spinner coar-time-pick
|
|
|
9780
9846
|
"aria-valuetext": p.value,
|
|
9781
9847
|
"aria-label": "AM/PM",
|
|
9782
9848
|
onKeydown: V
|
|
9783
|
-
}, P(p.value), 41,
|
|
9849
|
+
}, P(p.value), 41, yf),
|
|
9784
9850
|
s("button", {
|
|
9785
9851
|
type: "button",
|
|
9786
9852
|
class: "coar-time-picker__btn coar-time-picker__btn--down",
|
|
@@ -9791,14 +9857,14 @@ var rf = ["aria-label"], af = { class: "coar-time-picker__spinner coar-time-pick
|
|
|
9791
9857
|
}, [u(Z, {
|
|
9792
9858
|
name: "chevron-down",
|
|
9793
9859
|
size: b.value
|
|
9794
|
-
}, null, 8, ["size"])], 8,
|
|
9860
|
+
}, null, 8, ["size"])], 8, bf)
|
|
9795
9861
|
])) : a("", !0)
|
|
9796
|
-
], 8,
|
|
9862
|
+
], 8, cf)], 2));
|
|
9797
9863
|
}
|
|
9798
|
-
}), [["__scopeId", "data-v-
|
|
9864
|
+
}), [["__scopeId", "data-v-a5cd4780"]]);
|
|
9799
9865
|
//#endregion
|
|
9800
9866
|
//#region src/components/date-time/_shared/date-helpers.ts
|
|
9801
|
-
function
|
|
9867
|
+
function Sf(e) {
|
|
9802
9868
|
try {
|
|
9803
9869
|
let t = new Intl.DateTimeFormat(e).formatToParts(new Date(2024, 0, 15)), n = t.findIndex((e) => e.type === "day"), r = t.findIndex((e) => e.type === "month"), i = t.findIndex((e) => e.type === "year");
|
|
9804
9870
|
return n === -1 || r === -1 || i === -1 ? null : n < r && r < i ? "dd.mm.yyyy" : r < n && n < i ? "mm/dd/yyyy" : i < r && r < n ? "yyyy-mm-dd" : null;
|
|
@@ -9806,7 +9872,7 @@ function vf(e) {
|
|
|
9806
9872
|
return null;
|
|
9807
9873
|
}
|
|
9808
9874
|
}
|
|
9809
|
-
function
|
|
9875
|
+
function Cf(e) {
|
|
9810
9876
|
try {
|
|
9811
9877
|
let t = new Intl.Locale(e);
|
|
9812
9878
|
return (t.getWeekInfo?.() ?? t.weekInfo)?.firstDay === 7 ? 7 : 1;
|
|
@@ -9814,10 +9880,10 @@ function yf(e) {
|
|
|
9814
9880
|
return 1;
|
|
9815
9881
|
}
|
|
9816
9882
|
}
|
|
9817
|
-
function
|
|
9883
|
+
function wf(e) {
|
|
9818
9884
|
return e.includes(".") ? "." : e.includes("/") ? "/" : "-";
|
|
9819
9885
|
}
|
|
9820
|
-
function
|
|
9886
|
+
function Tf(e, t) {
|
|
9821
9887
|
let n = new Intl.DateTimeFormat(e, { weekday: "short" }), r = [];
|
|
9822
9888
|
for (let e = 0; e < 7; e++) {
|
|
9823
9889
|
let t = new Date(2024, 0, 1 + e);
|
|
@@ -9829,8 +9895,8 @@ function xf(e, t) {
|
|
|
9829
9895
|
}
|
|
9830
9896
|
return r;
|
|
9831
9897
|
}
|
|
9832
|
-
function
|
|
9833
|
-
let n =
|
|
9898
|
+
function Ef(e, t) {
|
|
9899
|
+
let n = wf(t), r = String(e.day).padStart(2, "0"), i = String(e.month).padStart(2, "0"), a = String(e.year);
|
|
9834
9900
|
switch (t) {
|
|
9835
9901
|
case "dd.mm.yyyy":
|
|
9836
9902
|
case "dd/mm/yyyy": return `${r}${n}${i}${n}${a}`;
|
|
@@ -9839,9 +9905,9 @@ function Sf(e, t) {
|
|
|
9839
9905
|
default: return `${r}${n}${i}${n}${a}`;
|
|
9840
9906
|
}
|
|
9841
9907
|
}
|
|
9842
|
-
function
|
|
9908
|
+
function Df(e, t, n) {
|
|
9843
9909
|
if (!e) return null;
|
|
9844
|
-
let r =
|
|
9910
|
+
let r = wf(t), i = e.split(r);
|
|
9845
9911
|
if (i.length !== 3 || i.some((e) => e.length === 0 || !/^\d+$/.test(e))) return null;
|
|
9846
9912
|
let a, o, s;
|
|
9847
9913
|
try {
|
|
@@ -9869,19 +9935,19 @@ function Cf(e, t, n) {
|
|
|
9869
9935
|
return null;
|
|
9870
9936
|
}
|
|
9871
9937
|
}
|
|
9872
|
-
function
|
|
9938
|
+
function Of(e) {
|
|
9873
9939
|
return new Date(e.year, e.month - 1, e.day);
|
|
9874
9940
|
}
|
|
9875
|
-
function
|
|
9876
|
-
let t =
|
|
9941
|
+
function kf(e) {
|
|
9942
|
+
let t = Of(e), n = t.getDay() || 7;
|
|
9877
9943
|
t.setDate(t.getDate() + 4 - n);
|
|
9878
9944
|
let r = new Date(t.getFullYear(), 0, 1);
|
|
9879
9945
|
return Math.ceil(((t.getTime() - r.getTime()) / 864e5 + 1) / 7);
|
|
9880
9946
|
}
|
|
9881
|
-
function
|
|
9947
|
+
function Af(e, t) {
|
|
9882
9948
|
return t?.min && Y.PlainDate.compare(e, t.min) < 0 ? t.min : t?.max && Y.PlainDate.compare(e, t.max) > 0 ? t.max : e;
|
|
9883
9949
|
}
|
|
9884
|
-
function
|
|
9950
|
+
function jf(e, t) {
|
|
9885
9951
|
let n = e.toPlainDate({ day: 1 }), r = e.daysInMonth, i = n.dayOfWeek, a;
|
|
9886
9952
|
a = t === 1 ? (i - 1 + 7) % 7 : i % 7;
|
|
9887
9953
|
let o = [];
|
|
@@ -9905,20 +9971,20 @@ function Df(e, t) {
|
|
|
9905
9971
|
}
|
|
9906
9972
|
//#endregion
|
|
9907
9973
|
//#region src/components/date-time/scrollable-calendar/CoarScrollableCalendar.vue?vue&type=script&setup=true&lang.ts
|
|
9908
|
-
var
|
|
9974
|
+
var Mf = {
|
|
9909
9975
|
key: 0,
|
|
9910
9976
|
class: "coar-scrollable-calendar__week-spacer"
|
|
9911
|
-
},
|
|
9977
|
+
}, Nf = ["id", "data-year-month"], Pf = { class: "coar-scrollable-calendar__month-name" }, Ff = { class: "coar-scrollable-calendar__month-year" }, If = {
|
|
9912
9978
|
key: 0,
|
|
9913
9979
|
class: "coar-scrollable-calendar__week-number"
|
|
9914
|
-
},
|
|
9980
|
+
}, Lf = [
|
|
9915
9981
|
"disabled",
|
|
9916
9982
|
"tabindex",
|
|
9917
9983
|
"data-date",
|
|
9918
9984
|
"aria-selected",
|
|
9919
9985
|
"aria-current",
|
|
9920
9986
|
"onClick"
|
|
9921
|
-
],
|
|
9987
|
+
], Rf = 12, zf = 12, Bf = 6, Vf = 25, Hf = /* @__PURE__ */ X(/* @__PURE__ */ d({
|
|
9922
9988
|
__name: "CoarScrollableCalendar",
|
|
9923
9989
|
props: /* @__PURE__ */ g({
|
|
9924
9990
|
min: { default: null },
|
|
@@ -9944,13 +10010,13 @@ var Of = {
|
|
|
9944
10010
|
setup(t, { emit: n }) {
|
|
9945
10011
|
let i = t, c = z(t, "modelValue"), l = z(t, "activeMonth"), u = n, d = J(), f = r(() => i.locale ?? d?.language.value ?? navigator.language), p = r(() => {
|
|
9946
10012
|
if (i.dateFormatConfig) return i.dateFormatConfig;
|
|
9947
|
-
let e =
|
|
10013
|
+
let e = Sf(f.value), t = Cf(f.value);
|
|
9948
10014
|
return {
|
|
9949
10015
|
pattern: e ?? "dd.mm.yyyy",
|
|
9950
10016
|
firstDayOfWeek: t
|
|
9951
10017
|
};
|
|
9952
10018
|
}), m = r(() => p.value.firstDayOfWeek), h = r(() => Y.Now.plainDateISO()), g = r(() => {
|
|
9953
|
-
let e =
|
|
10019
|
+
let e = Tf(f.value, m.value), t = m.value;
|
|
9954
10020
|
return e.map((e, n) => {
|
|
9955
10021
|
let r;
|
|
9956
10022
|
return r = t === 1 ? n + 1 : n === 0 ? 7 : n, {
|
|
@@ -9958,7 +10024,7 @@ var Of = {
|
|
|
9958
10024
|
isWeekend: r === 6 || r === 7
|
|
9959
10025
|
};
|
|
9960
10026
|
});
|
|
9961
|
-
}), _ = O(Y.Now.plainDateISO().toPlainYearMonth().subtract({ months:
|
|
10027
|
+
}), _ = O(Y.Now.plainDateISO().toPlainYearMonth().subtract({ months: Rf })), b = O(Y.Now.plainDateISO().toPlainYearMonth().add({ months: zf })), x = O(null), T = O(null), E = O(!1), D = !1, A = !1, j = !1;
|
|
9962
10028
|
function M() {
|
|
9963
10029
|
let e = T.value;
|
|
9964
10030
|
return e ? e.querySelector("[data-overlayscrollbars-viewport]") ?? e : null;
|
|
@@ -9985,8 +10051,8 @@ var Of = {
|
|
|
9985
10051
|
};
|
|
9986
10052
|
}
|
|
9987
10053
|
function I(e) {
|
|
9988
|
-
let t = f.value, n = new Intl.DateTimeFormat(t, { month: "long" }).format(new Date(e.year, e.month - 1, 1)), r =
|
|
9989
|
-
for (let e = 0; e < 6; e++) a.push(
|
|
10054
|
+
let t = f.value, n = new Intl.DateTimeFormat(t, { month: "long" }).format(new Date(e.year, e.month - 1, 1)), r = jf(e, m.value), i = r.map((e) => F(e.date, e.isOutsideMonth)), a = [];
|
|
10055
|
+
for (let e = 0; e < 6; e++) a.push(kf(r[e * 7].date));
|
|
9990
10056
|
return {
|
|
9991
10057
|
yearMonth: e,
|
|
9992
10058
|
monthName: n,
|
|
@@ -10077,7 +10143,7 @@ var Of = {
|
|
|
10077
10143
|
if (j) return;
|
|
10078
10144
|
j = !0;
|
|
10079
10145
|
let e = M(), t = e?.scrollHeight ?? 0, n = i.min?.toPlainYearMonth() ?? null, r = _.value, a = [];
|
|
10080
|
-
for (let e = 0; e <
|
|
10146
|
+
for (let e = 0; e < Bf; e++) {
|
|
10081
10147
|
let e = r.subtract({ months: 1 });
|
|
10082
10148
|
if (n && Y.PlainYearMonth.compare(e, n) < 0) break;
|
|
10083
10149
|
r = e, a.unshift(I(r));
|
|
@@ -10098,7 +10164,7 @@ var Of = {
|
|
|
10098
10164
|
if (j) return;
|
|
10099
10165
|
j = !0;
|
|
10100
10166
|
let e = i.max?.toPlainYearMonth() ?? null, t = b.value, n = [];
|
|
10101
|
-
for (let r = 0; r <
|
|
10167
|
+
for (let r = 0; r < Bf; r++) {
|
|
10102
10168
|
let r = t.add({ months: 1 });
|
|
10103
10169
|
if (e && Y.PlainYearMonth.compare(r, e) > 0) break;
|
|
10104
10170
|
t = r, n.push(I(t));
|
|
@@ -10113,14 +10179,14 @@ var Of = {
|
|
|
10113
10179
|
}
|
|
10114
10180
|
function re() {
|
|
10115
10181
|
let e = B.value;
|
|
10116
|
-
if (e.length <=
|
|
10117
|
-
let t = e.slice(0,
|
|
10182
|
+
if (e.length <= Vf) return;
|
|
10183
|
+
let t = e.slice(0, Vf);
|
|
10118
10184
|
B.value = t, b.value = t[t.length - 1].yearMonth;
|
|
10119
10185
|
}
|
|
10120
10186
|
function ie() {
|
|
10121
10187
|
let e = B.value;
|
|
10122
|
-
if (e.length <=
|
|
10123
|
-
let t = e.length -
|
|
10188
|
+
if (e.length <= Vf) return;
|
|
10189
|
+
let t = e.length - Vf, n = e.slice(t);
|
|
10124
10190
|
B.value = n, _.value = n[0].yearMonth;
|
|
10125
10191
|
}
|
|
10126
10192
|
function ae(e) {
|
|
@@ -10139,7 +10205,7 @@ var Of = {
|
|
|
10139
10205
|
r = n.add({ years: e });
|
|
10140
10206
|
break;
|
|
10141
10207
|
}
|
|
10142
|
-
r =
|
|
10208
|
+
r = Af(r, {
|
|
10143
10209
|
min: i.min,
|
|
10144
10210
|
max: i.max
|
|
10145
10211
|
}), x.value = r;
|
|
@@ -10203,7 +10269,7 @@ var Of = {
|
|
|
10203
10269
|
}), (n, r) => (w(), o("div", {
|
|
10204
10270
|
class: "coar-scrollable-calendar",
|
|
10205
10271
|
onKeydown: se
|
|
10206
|
-
}, [s("div", { class: y(["coar-scrollable-calendar__weekdays", { "coar-scrollable-calendar__weekdays--with-weeks": t.showWeekNumbers }]) }, [t.showWeekNumbers ? (w(), o("span",
|
|
10272
|
+
}, [s("div", { class: y(["coar-scrollable-calendar__weekdays", { "coar-scrollable-calendar__weekdays--with-weeks": t.showWeekNumbers }]) }, [t.showWeekNumbers ? (w(), o("span", Mf)) : a("", !0), (w(!0), o(e, null, k(g.value, (e) => (w(), o("span", {
|
|
10207
10273
|
key: e.name,
|
|
10208
10274
|
class: y(["coar-scrollable-calendar__weekday", { "coar-scrollable-calendar__weekday--weekend": t.highlightWeekends && e.isWeekend }])
|
|
10209
10275
|
}, P(e.name), 3))), 128))], 2), s("div", { class: y(["coar-scrollable-calendar__months-wrapper", { "coar-scrollable-calendar__months-wrapper--ready": E.value }]) }, [K((w(), o("div", {
|
|
@@ -10215,10 +10281,10 @@ var Of = {
|
|
|
10215
10281
|
key: n.yearMonth.toString(),
|
|
10216
10282
|
"data-year-month": n.yearMonth.toString(),
|
|
10217
10283
|
class: "coar-scrollable-calendar__month"
|
|
10218
|
-
}, [s("div", { class: y(["coar-scrollable-calendar__month-header", { "coar-scrollable-calendar__month-header--with-weeks": t.showWeekNumbers }]) }, [s("span",
|
|
10284
|
+
}, [s("div", { class: y(["coar-scrollable-calendar__month-header", { "coar-scrollable-calendar__month-header--with-weeks": t.showWeekNumbers }]) }, [s("span", Pf, P(n.monthName), 1), s("span", Ff, P(n.year), 1)], 2), s("div", {
|
|
10219
10285
|
class: y(["coar-scrollable-calendar__grid", { "coar-scrollable-calendar__grid--with-weeks": t.showWeekNumbers }]),
|
|
10220
10286
|
role: "grid"
|
|
10221
|
-
}, [(w(!0), o(e, null, k(n.days, (r, i) => (w(), o(e, { key: r.date.toString() }, [t.showWeekNumbers && i % 7 == 0 ? (w(), o("span",
|
|
10287
|
+
}, [(w(!0), o(e, null, k(n.days, (r, i) => (w(), o(e, { key: r.date.toString() }, [t.showWeekNumbers && i % 7 == 0 ? (w(), o("span", If, P(n.weekNumbers[i / 7]), 1)) : a("", !0), s("button", {
|
|
10222
10288
|
type: "button",
|
|
10223
10289
|
class: y(["coar-scrollable-calendar__day", [r.markerCssClass, {
|
|
10224
10290
|
"coar-scrollable-calendar__day--outside": r.isOutsideMonth,
|
|
@@ -10235,12 +10301,12 @@ var Of = {
|
|
|
10235
10301
|
"aria-selected": r.isSelected,
|
|
10236
10302
|
"aria-current": r.isToday ? "date" : void 0,
|
|
10237
10303
|
onClick: (e) => ae(r.date)
|
|
10238
|
-
}, P(r.day), 11,
|
|
10304
|
+
}, P(r.day), 11, Lf)], 64))), 128))], 2)], 8, Nf))), 128))])), [[L(Fs), {
|
|
10239
10305
|
overflowX: "hidden",
|
|
10240
10306
|
autoHide: "leave"
|
|
10241
10307
|
}]])], 2)], 32));
|
|
10242
10308
|
}
|
|
10243
|
-
}), [["__scopeId", "data-v-e9dd37f6"]]),
|
|
10309
|
+
}), [["__scopeId", "data-v-e9dd37f6"]]), Uf = { class: "coar-month-list-host" }, Wf = { class: "coar-month-list" }, Gf = { class: "coar-month-list__year-stepper" }, Kf = ["disabled", "aria-label"], qf = { class: "coar-month-list__year" }, Jf = ["disabled", "aria-label"], Yf = ["aria-label"], Xf = ["aria-selected", "onClick"], Zf = /* @__PURE__ */ X(/* @__PURE__ */ d({
|
|
10244
10310
|
__name: "CoarMonthList",
|
|
10245
10311
|
props: /* @__PURE__ */ g({
|
|
10246
10312
|
locale: { default: void 0 },
|
|
@@ -10297,7 +10363,7 @@ var Of = {
|
|
|
10297
10363
|
v(() => E());
|
|
10298
10364
|
}), C(() => {
|
|
10299
10365
|
setTimeout(() => E(), 50);
|
|
10300
|
-
}), (t, n) => (w(), o("div",
|
|
10366
|
+
}), (t, n) => (w(), o("div", Uf, [s("div", Wf, [s("div", Gf, [
|
|
10301
10367
|
s("button", {
|
|
10302
10368
|
type: "button",
|
|
10303
10369
|
class: "coar-month-list__year-btn",
|
|
@@ -10307,8 +10373,8 @@ var Of = {
|
|
|
10307
10373
|
}, [u(Z, {
|
|
10308
10374
|
name: "chevron-left",
|
|
10309
10375
|
size: "s"
|
|
10310
|
-
})], 8,
|
|
10311
|
-
s("span",
|
|
10376
|
+
})], 8, Kf),
|
|
10377
|
+
s("span", qf, P(p.value), 1),
|
|
10312
10378
|
s("button", {
|
|
10313
10379
|
type: "button",
|
|
10314
10380
|
class: "coar-month-list__year-btn",
|
|
@@ -10318,7 +10384,7 @@ var Of = {
|
|
|
10318
10384
|
}, [u(Z, {
|
|
10319
10385
|
name: "chevron-right",
|
|
10320
10386
|
size: "s"
|
|
10321
|
-
})], 8,
|
|
10387
|
+
})], 8, Jf)
|
|
10322
10388
|
]), K((w(), o("div", {
|
|
10323
10389
|
ref_key: "monthsContainerRef",
|
|
10324
10390
|
ref: T,
|
|
@@ -10332,16 +10398,16 @@ var Of = {
|
|
|
10332
10398
|
role: "option",
|
|
10333
10399
|
"aria-selected": e.isActive,
|
|
10334
10400
|
onClick: (t) => S(e.yearMonth)
|
|
10335
|
-
}, P(e.name), 11,
|
|
10401
|
+
}, P(e.name), 11, Xf))), 128))], 8, Yf)), [[L(Fs), {
|
|
10336
10402
|
overflowX: "hidden",
|
|
10337
10403
|
autoHide: "leave"
|
|
10338
10404
|
}]])])]));
|
|
10339
10405
|
}
|
|
10340
|
-
}), [["__scopeId", "data-v-11c8cf34"]]),
|
|
10406
|
+
}), [["__scopeId", "data-v-11c8cf34"]]), Qf = {
|
|
10341
10407
|
pattern: "dd.mm.yyyy",
|
|
10342
10408
|
firstDayOfWeek: 1
|
|
10343
10409
|
};
|
|
10344
|
-
function
|
|
10410
|
+
function $f(e) {
|
|
10345
10411
|
let t = J(), n = ne(), i = r(() => e.locale?.value ? e.locale.value : t.language.value || navigator.language || "en"), a = r(() => {
|
|
10346
10412
|
if (e.dateFormat?.value) return e.dateFormat.value;
|
|
10347
10413
|
let n = t.localeData.value;
|
|
@@ -10349,12 +10415,12 @@ function Yf(e) {
|
|
|
10349
10415
|
pattern: n.date.pattern,
|
|
10350
10416
|
firstDayOfWeek: n.date.firstDayOfWeek === 0 ? 7 : n.date.firstDayOfWeek
|
|
10351
10417
|
};
|
|
10352
|
-
let r =
|
|
10418
|
+
let r = Sf(i.value), a = Cf(i.value);
|
|
10353
10419
|
return r ? {
|
|
10354
10420
|
pattern: r,
|
|
10355
10421
|
firstDayOfWeek: a
|
|
10356
10422
|
} : {
|
|
10357
|
-
...
|
|
10423
|
+
...Qf,
|
|
10358
10424
|
firstDayOfWeek: a
|
|
10359
10425
|
};
|
|
10360
10426
|
}), o = r(() => {
|
|
@@ -10383,10 +10449,10 @@ function Yf(e) {
|
|
|
10383
10449
|
}
|
|
10384
10450
|
//#endregion
|
|
10385
10451
|
//#region src/components/date-time/_shared/types.ts
|
|
10386
|
-
var
|
|
10452
|
+
var ep = {
|
|
10387
10453
|
use24Hour: "auto",
|
|
10388
10454
|
minuteStep: 5
|
|
10389
|
-
},
|
|
10455
|
+
}, tp = {
|
|
10390
10456
|
"dd.mm.yyyy": "dd/mm/yyyy",
|
|
10391
10457
|
"dd/mm/yyyy": "dd/mm/yyyy",
|
|
10392
10458
|
"mm/dd/yyyy": "mm/dd/yyyy",
|
|
@@ -10394,28 +10460,28 @@ var Xf = {
|
|
|
10394
10460
|
};
|
|
10395
10461
|
//#endregion
|
|
10396
10462
|
//#region src/components/date-time/_shared/maskito-config.ts
|
|
10397
|
-
function
|
|
10463
|
+
function np(e) {
|
|
10398
10464
|
return ae({
|
|
10399
|
-
mode:
|
|
10400
|
-
separator:
|
|
10465
|
+
mode: tp[e],
|
|
10466
|
+
separator: wf(e)
|
|
10401
10467
|
});
|
|
10402
10468
|
}
|
|
10403
|
-
function
|
|
10469
|
+
function rp(e, t) {
|
|
10404
10470
|
return oe({
|
|
10405
|
-
dateMode:
|
|
10406
|
-
dateSeparator:
|
|
10471
|
+
dateMode: tp[e],
|
|
10472
|
+
dateSeparator: wf(e),
|
|
10407
10473
|
timeMode: t ? "HH:MM AA" : "HH:MM"
|
|
10408
10474
|
});
|
|
10409
10475
|
}
|
|
10410
10476
|
//#endregion
|
|
10411
10477
|
//#region src/components/date-time/plain-date-picker/CoarPlainDatePickerPanel.vue?vue&type=script&setup=true&lang.ts
|
|
10412
|
-
var
|
|
10478
|
+
var ip = { class: "coar-plain-date-picker-calendar-column" }, ap = ["aria-label"], op = { class: "coar-plain-date-picker-side-column" }, sp = { class: "coar-plain-date-picker-year-stepper" }, cp = ["disabled", "aria-label"], lp = { class: "coar-plain-date-picker-year" }, up = ["disabled", "aria-label"], dp = { class: "coar-plain-date-picker-month-list-wrapper" }, fp = ["aria-label"], pp = { class: "coar-plain-date-picker-month-list-content" }, mp = ["aria-selected", "onClick"], hp = {
|
|
10413
10479
|
key: 0,
|
|
10414
10480
|
class: "coar-plain-date-picker-events"
|
|
10415
|
-
},
|
|
10481
|
+
}, gp = { class: "coar-plain-date-picker-events-list" }, _p = { class: "coar-plain-date-picker-events-content" }, vp = { class: "coar-plain-date-picker-event-details" }, yp = { class: "coar-plain-date-picker-event-text" }, bp = {
|
|
10416
10482
|
key: 0,
|
|
10417
10483
|
class: "coar-plain-date-picker-event-dates"
|
|
10418
|
-
},
|
|
10484
|
+
}, xp = /* @__PURE__ */ d({
|
|
10419
10485
|
__name: "CoarPlainDatePickerPanel",
|
|
10420
10486
|
props: {
|
|
10421
10487
|
modelValue: {},
|
|
@@ -10458,7 +10524,7 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
10458
10524
|
return n && r;
|
|
10459
10525
|
}) : [];
|
|
10460
10526
|
});
|
|
10461
|
-
return (n, r) => (w(), o("div", { class: y(["coar-plain-date-picker-panel", { "coar-plain-date-picker-panel--with-weeks": t.showWeekNumbers }]) }, [s("div",
|
|
10527
|
+
return (n, r) => (w(), o("div", { class: y(["coar-plain-date-picker-panel", { "coar-plain-date-picker-panel--with-weeks": t.showWeekNumbers }]) }, [s("div", ip, [u(Hf, {
|
|
10462
10528
|
"model-value": t.modelValue,
|
|
10463
10529
|
"active-month": t.activeMonth,
|
|
10464
10530
|
min: t.min ?? void 0,
|
|
@@ -10491,8 +10557,8 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
10491
10557
|
}, [u(Z, {
|
|
10492
10558
|
name: h.value === "up" ? "chevron-up" : "chevron-down",
|
|
10493
10559
|
size: "xs"
|
|
10494
|
-
}, null, 8, ["name"])], 8,
|
|
10495
|
-
s("div",
|
|
10560
|
+
}, null, 8, ["name"])], 8, ap)) : a("", !0)]), s("div", op, [
|
|
10561
|
+
s("div", sp, [
|
|
10496
10562
|
s("button", {
|
|
10497
10563
|
type: "button",
|
|
10498
10564
|
class: "coar-plain-date-picker-year-btn",
|
|
@@ -10502,8 +10568,8 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
10502
10568
|
}, [u(Z, {
|
|
10503
10569
|
name: "chevron-left",
|
|
10504
10570
|
size: "s"
|
|
10505
|
-
})], 8,
|
|
10506
|
-
s("span",
|
|
10571
|
+
})], 8, cp),
|
|
10572
|
+
s("span", lp, P(c.value), 1),
|
|
10507
10573
|
s("button", {
|
|
10508
10574
|
type: "button",
|
|
10509
10575
|
class: "coar-plain-date-picker-year-btn",
|
|
@@ -10513,31 +10579,31 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
10513
10579
|
}, [u(Z, {
|
|
10514
10580
|
name: "chevron-right",
|
|
10515
10581
|
size: "s"
|
|
10516
|
-
})], 8,
|
|
10582
|
+
})], 8, up)
|
|
10517
10583
|
]),
|
|
10518
|
-
s("div",
|
|
10584
|
+
s("div", dp, [s("div", {
|
|
10519
10585
|
class: "coar-plain-date-picker-month-list",
|
|
10520
10586
|
role: "listbox",
|
|
10521
10587
|
"aria-label": L(i)("coar.ui.datePicker.months", void 0, "Months")
|
|
10522
|
-
}, [s("div",
|
|
10588
|
+
}, [s("div", pp, [(w(!0), o(e, null, k(p.value, (e) => (w(), o("button", {
|
|
10523
10589
|
key: e.month,
|
|
10524
10590
|
type: "button",
|
|
10525
10591
|
class: y(["coar-plain-date-picker-month-item", { "coar-plain-date-picker-month-item--active": e.isActive }]),
|
|
10526
10592
|
role: "option",
|
|
10527
10593
|
"aria-selected": e.isActive,
|
|
10528
10594
|
onClick: (n) => t.onSelectMonth(e.yearMonth)
|
|
10529
|
-
}, P(e.name), 11,
|
|
10530
|
-
_.value.length > 0 ? (w(), o("div",
|
|
10595
|
+
}, P(e.name), 11, mp))), 128))])], 8, fp)]),
|
|
10596
|
+
_.value.length > 0 ? (w(), o("div", hp, [s("div", gp, [s("div", _p, [(w(!0), o(e, null, k(_.value, (e) => (w(), o("div", {
|
|
10531
10597
|
key: e.description,
|
|
10532
10598
|
class: "coar-plain-date-picker-event-item"
|
|
10533
|
-
}, [r[3] ||= s("span", { class: "coar-plain-date-picker-event-dot" }, null, -1), s("div",
|
|
10599
|
+
}, [r[3] ||= s("span", { class: "coar-plain-date-picker-event-dot" }, null, -1), s("div", vp, [s("span", yp, P(e.description), 1), e.endDate && !e.startDate.equals(e.endDate) ? (w(), o("span", bp, P(e.startDate.day) + "/" + P(e.startDate.month) + " – " + P(e.endDate.day) + "/" + P(e.endDate.month), 1)) : a("", !0)])]))), 128))])])])) : a("", !0)
|
|
10534
10600
|
])], 2));
|
|
10535
10601
|
}
|
|
10536
|
-
}),
|
|
10602
|
+
}), Sp = {
|
|
10537
10603
|
key: 0,
|
|
10538
10604
|
class: "coar-plain-date-picker-required",
|
|
10539
10605
|
"aria-hidden": "true"
|
|
10540
|
-
},
|
|
10606
|
+
}, Cp = ["aria-expanded", "aria-controls"], wp = ["aria-label"], Tp = [
|
|
10541
10607
|
"value",
|
|
10542
10608
|
"placeholder",
|
|
10543
10609
|
"disabled",
|
|
@@ -10545,7 +10611,7 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
10545
10611
|
"aria-labelledby",
|
|
10546
10612
|
"aria-invalid",
|
|
10547
10613
|
"aria-describedby"
|
|
10548
|
-
],
|
|
10614
|
+
], Ep = ["aria-label", "disabled"], Dp = ["title"], Op = /* @__PURE__ */ X(/* @__PURE__ */ d({
|
|
10549
10615
|
__name: "CoarPlainDatePicker",
|
|
10550
10616
|
props: /* @__PURE__ */ g({
|
|
10551
10617
|
label: { default: "" },
|
|
@@ -10596,17 +10662,17 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
10596
10662
|
}),
|
|
10597
10663
|
emits: /* @__PURE__ */ g(["opened", "closed"], ["update:modelValue"]),
|
|
10598
10664
|
setup(e, { emit: t }) {
|
|
10599
|
-
let n = e, i = z(e, "modelValue"), c = t, { t: d } = q(), f =
|
|
10665
|
+
let n = e, i = z(e, "modelValue"), c = t, { t: d } = q(), f = $f({
|
|
10600
10666
|
locale: r(() => n.locale),
|
|
10601
10667
|
dateFormat: r(() => n.dateFormat)
|
|
10602
10668
|
}), p = O(i.value?.toPlainYearMonth() ?? Y.Now.plainDateISO().toPlainYearMonth()), m = `coar-plain-date-picker-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, g = `${m}-label`, _ = `${m}-input`, b = `${m}-panel`, x = `${m}-message`, T = O(null), D = O(null), k = null, A = O(""), j;
|
|
10603
10669
|
function M() {
|
|
10604
10670
|
if (j?.destroy(), !D.value) return;
|
|
10605
|
-
let e =
|
|
10671
|
+
let e = np(f.effectiveDateFormat.value.pattern);
|
|
10606
10672
|
j = new ie(D.value, e);
|
|
10607
10673
|
}
|
|
10608
10674
|
U(i, (e) => {
|
|
10609
|
-
e ? A.value =
|
|
10675
|
+
e ? A.value = Ef(e, f.effectiveDateFormat.value.pattern) : A.value = "";
|
|
10610
10676
|
}, { immediate: !0 }), U([D, () => f.effectiveDateFormat.value], () => {
|
|
10611
10677
|
v(() => M());
|
|
10612
10678
|
}), S(() => {
|
|
@@ -10682,7 +10748,7 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
10682
10748
|
},
|
|
10683
10749
|
content: {
|
|
10684
10750
|
kind: "component",
|
|
10685
|
-
component: h(
|
|
10751
|
+
component: h(xp)
|
|
10686
10752
|
},
|
|
10687
10753
|
inputs: t
|
|
10688
10754
|
}), f.open(), c("opened"), k.afterClosed.then(() => {
|
|
@@ -10707,7 +10773,7 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
10707
10773
|
function ne(e) {
|
|
10708
10774
|
let t = e.target;
|
|
10709
10775
|
A.value = t.value;
|
|
10710
|
-
let r =
|
|
10776
|
+
let r = Df(t.value, f.effectiveDateFormat.value.pattern, {
|
|
10711
10777
|
min: n.min,
|
|
10712
10778
|
max: n.max
|
|
10713
10779
|
});
|
|
@@ -10715,10 +10781,10 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
10715
10781
|
}
|
|
10716
10782
|
function re() {
|
|
10717
10783
|
let e = A.value;
|
|
10718
|
-
!
|
|
10784
|
+
!Df(e, f.effectiveDateFormat.value.pattern, {
|
|
10719
10785
|
min: n.min,
|
|
10720
10786
|
max: n.max
|
|
10721
|
-
}) && e.length > 0 && (i.value ? A.value =
|
|
10787
|
+
}) && e.length > 0 && (i.value ? A.value = Ef(i.value, f.effectiveDateFormat.value.pattern) : A.value = "");
|
|
10722
10788
|
}
|
|
10723
10789
|
return (t, n) => (w(), o("div", { class: y(["coar-plain-date-picker-wrapper", [`coar-plain-date-picker--${e.size}`, {
|
|
10724
10790
|
"coar-plain-date-picker--disabled": I.value,
|
|
@@ -10730,7 +10796,7 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
10730
10796
|
key: 0,
|
|
10731
10797
|
id: g,
|
|
10732
10798
|
class: "coar-plain-date-picker-label"
|
|
10733
|
-
}, [l(P(e.label) + " ", 1), e.required ? (w(), o("span",
|
|
10799
|
+
}, [l(P(e.label) + " ", 1), e.required ? (w(), o("span", Sp, "*")) : a("", !0)])) : a("", !0),
|
|
10734
10800
|
s("div", {
|
|
10735
10801
|
ref_key: "triggerRef",
|
|
10736
10802
|
ref: T,
|
|
@@ -10754,7 +10820,7 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
10754
10820
|
}, [u(Z, {
|
|
10755
10821
|
name: "x",
|
|
10756
10822
|
size: "auto"
|
|
10757
|
-
})], 10,
|
|
10823
|
+
})], 10, wp),
|
|
10758
10824
|
s("input", {
|
|
10759
10825
|
id: _,
|
|
10760
10826
|
ref_key: "dateInputRef",
|
|
@@ -10772,7 +10838,7 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
10772
10838
|
onInput: ne,
|
|
10773
10839
|
onBlur: re,
|
|
10774
10840
|
onKeydown: te
|
|
10775
|
-
}, null, 40,
|
|
10841
|
+
}, null, 40, Tp),
|
|
10776
10842
|
s("button", {
|
|
10777
10843
|
type: "button",
|
|
10778
10844
|
class: "coar-plain-date-picker-btn",
|
|
@@ -10783,23 +10849,23 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
10783
10849
|
}, [u(Z, {
|
|
10784
10850
|
name: "calendar",
|
|
10785
10851
|
size: "s"
|
|
10786
|
-
})], 8,
|
|
10787
|
-
], 10,
|
|
10852
|
+
})], 8, Ep)
|
|
10853
|
+
], 10, Cp),
|
|
10788
10854
|
F.value ? (w(), o("div", {
|
|
10789
10855
|
key: 1,
|
|
10790
10856
|
id: x,
|
|
10791
10857
|
class: y(["coar-form-field-message", { "coar-form-field-message--error": N.value }]),
|
|
10792
10858
|
title: F.value
|
|
10793
|
-
}, P(F.value), 11,
|
|
10859
|
+
}, P(F.value), 11, Dp)) : a("", !0)
|
|
10794
10860
|
], 2));
|
|
10795
10861
|
}
|
|
10796
|
-
}), [["__scopeId", "data-v-
|
|
10862
|
+
}), [["__scopeId", "data-v-2c8a34e4"]]), kp = { class: "coar-pdtp-calendar-column" }, Ap = ["aria-label"], jp = { class: "coar-pdtp-side-column" }, Mp = { class: "coar-pdtp-year-stepper" }, Np = ["disabled", "aria-label"], Pp = { class: "coar-pdtp-year" }, Fp = ["disabled", "aria-label"], Ip = { class: "coar-pdtp-month-list-wrapper" }, Lp = ["aria-label"], Rp = { class: "coar-pdtp-month-list-content" }, zp = ["aria-selected", "onClick"], Bp = { class: "coar-pdtp-time-section" }, Vp = {
|
|
10797
10863
|
key: 0,
|
|
10798
10864
|
class: "coar-pdtp-events"
|
|
10799
|
-
},
|
|
10865
|
+
}, Hp = { class: "coar-pdtp-events-list" }, Up = { class: "coar-pdtp-events-content" }, Wp = { class: "coar-pdtp-event-details" }, Gp = { class: "coar-pdtp-event-text" }, Kp = {
|
|
10800
10866
|
key: 0,
|
|
10801
10867
|
class: "coar-pdtp-event-dates"
|
|
10802
|
-
},
|
|
10868
|
+
}, qp = /* @__PURE__ */ d({
|
|
10803
10869
|
__name: "CoarPlainDateTimePickerPanel",
|
|
10804
10870
|
props: {
|
|
10805
10871
|
modelValue: {},
|
|
@@ -10850,7 +10916,7 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
10850
10916
|
return n && r;
|
|
10851
10917
|
}) : [];
|
|
10852
10918
|
});
|
|
10853
|
-
return (n, r) => (w(), o("div", { class: y(["coar-pdtp-panel", { "coar-pdtp-panel--with-weeks": t.showWeekNumbers }]) }, [s("div",
|
|
10919
|
+
return (n, r) => (w(), o("div", { class: y(["coar-pdtp-panel", { "coar-pdtp-panel--with-weeks": t.showWeekNumbers }]) }, [s("div", kp, [u(Hf, {
|
|
10854
10920
|
"model-value": t.modelValue,
|
|
10855
10921
|
"active-month": t.activeMonth,
|
|
10856
10922
|
min: t.min ?? void 0,
|
|
@@ -10883,8 +10949,8 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
10883
10949
|
}, [u(Z, {
|
|
10884
10950
|
name: h.value === "up" ? "chevron-up" : "chevron-down",
|
|
10885
10951
|
size: "xs"
|
|
10886
|
-
}, null, 8, ["name"])], 8,
|
|
10887
|
-
s("div",
|
|
10952
|
+
}, null, 8, ["name"])], 8, Ap)) : a("", !0)]), s("div", jp, [
|
|
10953
|
+
s("div", Mp, [
|
|
10888
10954
|
s("button", {
|
|
10889
10955
|
type: "button",
|
|
10890
10956
|
class: "coar-pdtp-year-btn",
|
|
@@ -10894,8 +10960,8 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
10894
10960
|
}, [u(Z, {
|
|
10895
10961
|
name: "chevron-left",
|
|
10896
10962
|
size: "s"
|
|
10897
|
-
})], 8,
|
|
10898
|
-
s("span",
|
|
10963
|
+
})], 8, Np),
|
|
10964
|
+
s("span", Pp, P(c.value), 1),
|
|
10899
10965
|
s("button", {
|
|
10900
10966
|
type: "button",
|
|
10901
10967
|
class: "coar-pdtp-year-btn",
|
|
@@ -10905,21 +10971,21 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
10905
10971
|
}, [u(Z, {
|
|
10906
10972
|
name: "chevron-right",
|
|
10907
10973
|
size: "s"
|
|
10908
|
-
})], 8,
|
|
10974
|
+
})], 8, Fp)
|
|
10909
10975
|
]),
|
|
10910
|
-
s("div",
|
|
10976
|
+
s("div", Ip, [s("div", {
|
|
10911
10977
|
class: "coar-pdtp-month-list",
|
|
10912
10978
|
role: "listbox",
|
|
10913
10979
|
"aria-label": L(i)("coar.ui.datePicker.months", void 0, "Months")
|
|
10914
|
-
}, [s("div",
|
|
10980
|
+
}, [s("div", Rp, [(w(!0), o(e, null, k(p.value, (e) => (w(), o("button", {
|
|
10915
10981
|
key: e.month,
|
|
10916
10982
|
type: "button",
|
|
10917
10983
|
class: y(["coar-pdtp-month-item", { "coar-pdtp-month-item--active": e.isActive }]),
|
|
10918
10984
|
role: "option",
|
|
10919
10985
|
"aria-selected": e.isActive,
|
|
10920
10986
|
onClick: (n) => t.onSelectMonth(e.yearMonth)
|
|
10921
|
-
}, P(e.name), 11,
|
|
10922
|
-
s("div",
|
|
10987
|
+
}, P(e.name), 11, zp))), 128))])], 8, Lp)]),
|
|
10988
|
+
s("div", Bp, [u(xf, {
|
|
10923
10989
|
"model-value": t.selectedTime,
|
|
10924
10990
|
"use24-hour": t.use24Hour,
|
|
10925
10991
|
"minute-step": t.minuteStep,
|
|
@@ -10941,17 +11007,17 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
10941
11007
|
"max-time",
|
|
10942
11008
|
"onUpdate:modelValue"
|
|
10943
11009
|
])]),
|
|
10944
|
-
_.value.length > 0 ? (w(), o("div",
|
|
11010
|
+
_.value.length > 0 ? (w(), o("div", Vp, [s("div", Hp, [s("div", Up, [(w(!0), o(e, null, k(_.value, (e) => (w(), o("div", {
|
|
10945
11011
|
key: e.description,
|
|
10946
11012
|
class: "coar-pdtp-event-item"
|
|
10947
|
-
}, [r[3] ||= s("span", { class: "coar-pdtp-event-dot" }, null, -1), s("div",
|
|
11013
|
+
}, [r[3] ||= s("span", { class: "coar-pdtp-event-dot" }, null, -1), s("div", Wp, [s("span", Gp, P(e.description), 1), e.endDate && !e.startDate.equals(e.endDate) ? (w(), o("span", Kp, P(e.startDate.day) + "/" + P(e.startDate.month) + " – " + P(e.endDate.day) + "/" + P(e.endDate.month), 1)) : a("", !0)])]))), 128))])])])) : a("", !0)
|
|
10948
11014
|
])], 2));
|
|
10949
11015
|
}
|
|
10950
|
-
}),
|
|
11016
|
+
}), Jp = {
|
|
10951
11017
|
key: 0,
|
|
10952
11018
|
class: "coar-pdtp-required",
|
|
10953
11019
|
"aria-hidden": "true"
|
|
10954
|
-
},
|
|
11020
|
+
}, Yp = ["aria-expanded", "aria-controls"], Xp = ["aria-label"], Zp = [
|
|
10955
11021
|
"value",
|
|
10956
11022
|
"placeholder",
|
|
10957
11023
|
"disabled",
|
|
@@ -10959,7 +11025,7 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
10959
11025
|
"aria-labelledby",
|
|
10960
11026
|
"aria-invalid",
|
|
10961
11027
|
"aria-describedby"
|
|
10962
|
-
],
|
|
11028
|
+
], Qp = ["aria-label", "disabled"], $p = ["title"], em = /* @__PURE__ */ X(/* @__PURE__ */ d({
|
|
10963
11029
|
__name: "CoarPlainDateTimePicker",
|
|
10964
11030
|
props: /* @__PURE__ */ g({
|
|
10965
11031
|
label: { default: "" },
|
|
@@ -11015,17 +11081,17 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
11015
11081
|
}),
|
|
11016
11082
|
emits: /* @__PURE__ */ g(["opened", "closed"], ["update:modelValue"]),
|
|
11017
11083
|
setup(e, { emit: t }) {
|
|
11018
|
-
let n = e, i = z(e, "modelValue"), c = t, { t: d } = q(), f =
|
|
11084
|
+
let n = e, i = z(e, "modelValue"), c = t, { t: d } = q(), f = $f({
|
|
11019
11085
|
locale: r(() => n.locale),
|
|
11020
11086
|
dateFormat: r(() => n.dateFormat)
|
|
11021
|
-
}), p = O(i.value?.toPlainDate().toPlainYearMonth() ?? Y.Now.plainDateISO().toPlainYearMonth()), m = O(null), g = `coar-plain-dt-picker-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, _ = `${g}-label`, b = `${g}-input`, x = `${g}-panel`, T = `${g}-message`, D = O(null), k = O(null), A = null, j = O(""), M = r(() => n.use24Hour === !0 ? !0 : n.use24Hour === !1 ? !1 :
|
|
11087
|
+
}), p = O(i.value?.toPlainDate().toPlainYearMonth() ?? Y.Now.plainDateISO().toPlainYearMonth()), m = O(null), g = `coar-plain-dt-picker-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, _ = `${g}-label`, b = `${g}-input`, x = `${g}-panel`, T = `${g}-message`, D = O(null), k = O(null), A = null, j = O(""), M = r(() => n.use24Hour === !0 ? !0 : n.use24Hour === !1 ? !1 : !$d(f.effectiveLocale.value)), N;
|
|
11022
11088
|
function F() {
|
|
11023
11089
|
if (N?.destroy(), !k.value) return;
|
|
11024
|
-
let e =
|
|
11090
|
+
let e = rp(f.effectiveDateFormat.value.pattern, !M.value);
|
|
11025
11091
|
N = new ie(k.value, e);
|
|
11026
11092
|
}
|
|
11027
11093
|
function I(e) {
|
|
11028
|
-
return `${
|
|
11094
|
+
return `${Ef(e.toPlainDate(), f.effectiveDateFormat.value.pattern)} ${ef(e.hour, e.minute, M.value)}`;
|
|
11029
11095
|
}
|
|
11030
11096
|
U(i, (e) => {
|
|
11031
11097
|
j.value = e ? I(e) : "";
|
|
@@ -11077,7 +11143,7 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
11077
11143
|
onDateSelected: (e) => {
|
|
11078
11144
|
let t = K.value ?? n.defaultTime, r = e.toPlainDateTime({
|
|
11079
11145
|
hour: t.hours,
|
|
11080
|
-
minute:
|
|
11146
|
+
minute: sf(t.minutes, n.minuteStep)
|
|
11081
11147
|
});
|
|
11082
11148
|
r = se(r), i.value = r;
|
|
11083
11149
|
},
|
|
@@ -11154,7 +11220,7 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
11154
11220
|
},
|
|
11155
11221
|
content: {
|
|
11156
11222
|
kind: "component",
|
|
11157
|
-
component: h(
|
|
11223
|
+
component: h(qp)
|
|
11158
11224
|
},
|
|
11159
11225
|
inputs: t
|
|
11160
11226
|
}), f.open(), c("opened"), A.afterClosed.then(() => {
|
|
@@ -11190,12 +11256,12 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
11190
11256
|
if (!e) return null;
|
|
11191
11257
|
let t = e.split(" ");
|
|
11192
11258
|
if (t.length < 2) return null;
|
|
11193
|
-
let n =
|
|
11259
|
+
let n = Df(t[0], f.effectiveDateFormat.value.pattern, {
|
|
11194
11260
|
min: ee.value,
|
|
11195
11261
|
max: te.value
|
|
11196
11262
|
});
|
|
11197
11263
|
if (!n) return null;
|
|
11198
|
-
let r =
|
|
11264
|
+
let r = tf(t.slice(1).join(" "));
|
|
11199
11265
|
return r ? n.toPlainDateTime({
|
|
11200
11266
|
hour: r.hours,
|
|
11201
11267
|
minute: r.minutes
|
|
@@ -11211,7 +11277,7 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
11211
11277
|
key: 0,
|
|
11212
11278
|
id: _,
|
|
11213
11279
|
class: "coar-pdtp-label"
|
|
11214
|
-
}, [l(P(e.label) + " ", 1), e.required ? (w(), o("span",
|
|
11280
|
+
}, [l(P(e.label) + " ", 1), e.required ? (w(), o("span", Jp, "*")) : a("", !0)])) : a("", !0),
|
|
11215
11281
|
s("div", {
|
|
11216
11282
|
ref_key: "triggerRef",
|
|
11217
11283
|
ref: D,
|
|
@@ -11235,7 +11301,7 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
11235
11301
|
}, [u(Z, {
|
|
11236
11302
|
name: "x",
|
|
11237
11303
|
size: "auto"
|
|
11238
|
-
})], 10,
|
|
11304
|
+
})], 10, Xp),
|
|
11239
11305
|
s("input", {
|
|
11240
11306
|
id: b,
|
|
11241
11307
|
ref_key: "dateInputRef",
|
|
@@ -11253,7 +11319,7 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
11253
11319
|
onInput: pe,
|
|
11254
11320
|
onBlur: me,
|
|
11255
11321
|
onKeydown: de
|
|
11256
|
-
}, null, 40,
|
|
11322
|
+
}, null, 40, Zp),
|
|
11257
11323
|
s("button", {
|
|
11258
11324
|
type: "button",
|
|
11259
11325
|
class: "coar-pdtp-btn",
|
|
@@ -11264,32 +11330,32 @@ var ep = { class: "coar-plain-date-picker-calendar-column" }, tp = ["aria-label"
|
|
|
11264
11330
|
}, [u(Z, {
|
|
11265
11331
|
name: "calendar",
|
|
11266
11332
|
size: "s"
|
|
11267
|
-
})], 8,
|
|
11268
|
-
], 10,
|
|
11333
|
+
})], 8, Qp)
|
|
11334
|
+
], 10, Yp),
|
|
11269
11335
|
B.value ? (w(), o("div", {
|
|
11270
11336
|
key: 1,
|
|
11271
11337
|
id: T,
|
|
11272
11338
|
class: y(["coar-form-field-message", { "coar-form-field-message--error": R.value }]),
|
|
11273
11339
|
title: B.value
|
|
11274
|
-
}, P(B.value), 11,
|
|
11340
|
+
}, P(B.value), 11, $p)) : a("", !0)
|
|
11275
11341
|
], 2));
|
|
11276
11342
|
}
|
|
11277
|
-
}), [["__scopeId", "data-v-
|
|
11343
|
+
}), [["__scopeId", "data-v-55dfa9b2"]]);
|
|
11278
11344
|
//#endregion
|
|
11279
11345
|
//#region src/components/date-time/_shared/timezone-helpers.ts
|
|
11280
|
-
function
|
|
11346
|
+
function tm() {
|
|
11281
11347
|
try {
|
|
11282
11348
|
return ["UTC", ...Intl.supportedValuesOf("timeZone")];
|
|
11283
11349
|
} catch {
|
|
11284
11350
|
return ["UTC"];
|
|
11285
11351
|
}
|
|
11286
11352
|
}
|
|
11287
|
-
function
|
|
11353
|
+
function nm(e, t) {
|
|
11288
11354
|
let n = t ?? Y.Now.instant();
|
|
11289
11355
|
try {
|
|
11290
11356
|
let t = n.toZonedDateTimeISO(e).offsetNanoseconds, r = Math.round(t / 6e10);
|
|
11291
11357
|
return {
|
|
11292
|
-
offset:
|
|
11358
|
+
offset: rm(r),
|
|
11293
11359
|
offsetMinutes: r
|
|
11294
11360
|
};
|
|
11295
11361
|
} catch {
|
|
@@ -11299,21 +11365,21 @@ function Qp(e, t) {
|
|
|
11299
11365
|
};
|
|
11300
11366
|
}
|
|
11301
11367
|
}
|
|
11302
|
-
function
|
|
11368
|
+
function rm(e) {
|
|
11303
11369
|
if (e === 0) return "UTC";
|
|
11304
11370
|
let t = e >= 0 ? "+" : "-", n = Math.abs(e), r = Math.floor(n / 60), i = n % 60;
|
|
11305
11371
|
return i === 0 ? `UTC${t}${r}` : `UTC${t}${r}:${String(i).padStart(2, "0")}`;
|
|
11306
11372
|
}
|
|
11307
|
-
function
|
|
11373
|
+
function im(e) {
|
|
11308
11374
|
if (e === "UTC") return "UTC";
|
|
11309
11375
|
let t = e.split("/");
|
|
11310
11376
|
return t[t.length - 1].replace(/_/g, " ");
|
|
11311
11377
|
}
|
|
11312
|
-
function
|
|
11313
|
-
let n =
|
|
11378
|
+
function am(e, t) {
|
|
11379
|
+
let n = im(e), { offset: r } = nm(e, t);
|
|
11314
11380
|
return `${n} (${r})`;
|
|
11315
11381
|
}
|
|
11316
|
-
function
|
|
11382
|
+
function om(e, t) {
|
|
11317
11383
|
if (!t || t.length === 0) return e;
|
|
11318
11384
|
let n = t.map((e) => {
|
|
11319
11385
|
let t = e.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*");
|
|
@@ -11321,19 +11387,19 @@ function nm(e, t) {
|
|
|
11321
11387
|
});
|
|
11322
11388
|
return e.filter((e) => n.some((t) => t.test(e)));
|
|
11323
11389
|
}
|
|
11324
|
-
function
|
|
11325
|
-
let { offset: n, offsetMinutes: r } =
|
|
11390
|
+
function sm(e, t) {
|
|
11391
|
+
let { offset: n, offsetMinutes: r } = nm(e, t);
|
|
11326
11392
|
return {
|
|
11327
11393
|
id: e,
|
|
11328
|
-
city:
|
|
11394
|
+
city: im(e),
|
|
11329
11395
|
offset: n,
|
|
11330
11396
|
offsetMinutes: r
|
|
11331
11397
|
};
|
|
11332
11398
|
}
|
|
11333
|
-
function
|
|
11399
|
+
function cm(e, t, n) {
|
|
11334
11400
|
let r = t?.trim().toLowerCase(), i = /* @__PURE__ */ new Map();
|
|
11335
11401
|
for (let t of e) {
|
|
11336
|
-
let e =
|
|
11402
|
+
let e = sm(t, n);
|
|
11337
11403
|
if (r && r.length > 0) {
|
|
11338
11404
|
let n = e.city.toLowerCase().includes(r), i = t.toLowerCase().includes(r);
|
|
11339
11405
|
if (!n && !i) continue;
|
|
@@ -11353,25 +11419,25 @@ function im(e, t, n) {
|
|
|
11353
11419
|
}
|
|
11354
11420
|
//#endregion
|
|
11355
11421
|
//#region src/components/date-time/zoned-date-time-picker/CoarZonedDateTimePickerPanel.vue?vue&type=script&setup=true&lang.ts
|
|
11356
|
-
var
|
|
11422
|
+
var lm = { class: "coar-zdtp-body" }, um = { class: "coar-zdtp-calendar-column" }, dm = ["aria-label"], fm = { class: "coar-zdtp-side-column" }, pm = {
|
|
11357
11423
|
key: 0,
|
|
11358
11424
|
class: "coar-zdtp-side-header"
|
|
11359
|
-
},
|
|
11425
|
+
}, mm = ["disabled", "aria-label"], hm = { class: "coar-zdtp-year" }, gm = ["disabled", "aria-label"], _m = {
|
|
11360
11426
|
key: 1,
|
|
11361
11427
|
class: "coar-zdtp-side-header coar-zdtp-side-header--search"
|
|
11362
|
-
},
|
|
11428
|
+
}, vm = ["placeholder", "onKeydown"], ym = ["aria-label"], bm = { class: "coar-zdtp-tz-group-header" }, xm = ["onClick"], Sm = { class: "coar-zdtp-tz-picker-item-city" }, Cm = { class: "coar-zdtp-tz-picker-item-offset" }, wm = ["aria-label"], Tm = ["aria-selected", "onClick"], Em = { class: "coar-zdtp-time-section" }, Dm = { class: "coar-zdtp-display-tz-label" }, Om = { class: "coar-zdtp-display-tz-btn-label" }, km = {
|
|
11363
11429
|
key: 0,
|
|
11364
11430
|
class: "coar-zdtp-events"
|
|
11365
|
-
},
|
|
11431
|
+
}, Am = {
|
|
11366
11432
|
key: 0,
|
|
11367
11433
|
class: "coar-zdtp-footer-placeholder"
|
|
11368
|
-
},
|
|
11434
|
+
}, jm = {
|
|
11369
11435
|
key: 1,
|
|
11370
11436
|
class: "coar-zdtp-footer-edit"
|
|
11371
|
-
},
|
|
11437
|
+
}, Mm = ["aria-label"], Nm = {
|
|
11372
11438
|
key: 2,
|
|
11373
11439
|
class: "coar-zdtp-footer-display"
|
|
11374
|
-
},
|
|
11440
|
+
}, Pm = { class: "coar-zdtp-footer-tz-name" }, Fm = { class: "coar-zdtp-footer-tz-value" }, Im = ["aria-label"], Lm = /* @__PURE__ */ d({
|
|
11375
11441
|
__name: "CoarZonedDateTimePickerPanel",
|
|
11376
11442
|
props: {
|
|
11377
11443
|
modelValue: {},
|
|
@@ -11429,9 +11495,9 @@ var am = { class: "coar-zdtp-body" }, om = { class: "coar-zdtp-calendar-column"
|
|
|
11429
11495
|
let n = Y.PlainDate.compare(e, t.startDate) >= 0, r = t.endDate ? Y.PlainDate.compare(e, t.endDate) <= 0 : Y.PlainDate.compare(e, t.startDate) === 0;
|
|
11430
11496
|
return n && r;
|
|
11431
11497
|
}) : [];
|
|
11432
|
-
}), E = r(() =>
|
|
11498
|
+
}), E = r(() => om(n.allTimezones, n.timezoneFilter)), D = r(() => cm(E.value, d.value)), A = r(() => E.value.map((e) => ({
|
|
11433
11499
|
value: e,
|
|
11434
|
-
label:
|
|
11500
|
+
label: am(e)
|
|
11435
11501
|
})));
|
|
11436
11502
|
function j() {
|
|
11437
11503
|
c.value = !0, d.value = "", v(() => {
|
|
@@ -11458,7 +11524,7 @@ var am = { class: "coar-zdtp-body" }, om = { class: "coar-zdtp-calendar-column"
|
|
|
11458
11524
|
function R() {
|
|
11459
11525
|
l.value = !1;
|
|
11460
11526
|
}
|
|
11461
|
-
return (n, r) => (w(), o("div", { class: y(["coar-zdtp-panel", { "coar-zdtp-panel--with-weeks": t.showWeekNumbers }]) }, [s("div",
|
|
11527
|
+
return (n, r) => (w(), o("div", { class: y(["coar-zdtp-panel", { "coar-zdtp-panel--with-weeks": t.showWeekNumbers }]) }, [s("div", lm, [s("div", um, [u(Hf, {
|
|
11462
11528
|
"model-value": t.modelValue,
|
|
11463
11529
|
"active-month": t.activeMonth,
|
|
11464
11530
|
min: t.min ?? void 0,
|
|
@@ -11491,8 +11557,8 @@ var am = { class: "coar-zdtp-body" }, om = { class: "coar-zdtp-calendar-column"
|
|
|
11491
11557
|
}, [u(Z, {
|
|
11492
11558
|
name: S.value === "up" ? "chevron-up" : "chevron-down",
|
|
11493
11559
|
size: "xs"
|
|
11494
|
-
}, null, 8, ["name"])], 8,
|
|
11495
|
-
c.value ? (w(), o("div",
|
|
11560
|
+
}, null, 8, ["name"])], 8, dm)) : a("", !0)]), s("div", fm, [
|
|
11561
|
+
c.value ? (w(), o("div", _m, [K(s("input", {
|
|
11496
11562
|
ref_key: "tzSearchInputRef",
|
|
11497
11563
|
ref: f,
|
|
11498
11564
|
"onUpdate:modelValue": r[3] ||= (e) => d.value = e,
|
|
@@ -11500,7 +11566,7 @@ var am = { class: "coar-zdtp-body" }, om = { class: "coar-zdtp-calendar-column"
|
|
|
11500
11566
|
class: "coar-zdtp-tz-search-input",
|
|
11501
11567
|
placeholder: L(i)("coar.ui.zonedDateTimePicker.searchTimezone", void 0, "Search timezone..."),
|
|
11502
11568
|
onKeydown: ee(te(M, ["stop"]), ["escape"])
|
|
11503
|
-
}, null, 40,
|
|
11569
|
+
}, null, 40, vm), [[H, d.value]]), s("button", {
|
|
11504
11570
|
type: "button",
|
|
11505
11571
|
class: "coar-zdtp-tz-search-close",
|
|
11506
11572
|
"aria-label": L(i)("coar.ui.zonedDateTimePicker.closeTimezoneSearch", void 0, "Close timezone search"),
|
|
@@ -11508,7 +11574,7 @@ var am = { class: "coar-zdtp-body" }, om = { class: "coar-zdtp-calendar-column"
|
|
|
11508
11574
|
}, [u(Z, {
|
|
11509
11575
|
name: "x",
|
|
11510
11576
|
size: "xs"
|
|
11511
|
-
})], 8,
|
|
11577
|
+
})], 8, ym)])) : (w(), o("div", pm, [
|
|
11512
11578
|
s("button", {
|
|
11513
11579
|
type: "button",
|
|
11514
11580
|
class: "coar-zdtp-year-btn",
|
|
@@ -11518,8 +11584,8 @@ var am = { class: "coar-zdtp-body" }, om = { class: "coar-zdtp-calendar-column"
|
|
|
11518
11584
|
}, [u(Z, {
|
|
11519
11585
|
name: "chevron-left",
|
|
11520
11586
|
size: "s"
|
|
11521
|
-
})], 8,
|
|
11522
|
-
s("span",
|
|
11587
|
+
})], 8, mm),
|
|
11588
|
+
s("span", hm, P(m.value), 1),
|
|
11523
11589
|
s("button", {
|
|
11524
11590
|
type: "button",
|
|
11525
11591
|
class: "coar-zdtp-year-btn",
|
|
@@ -11529,7 +11595,7 @@ var am = { class: "coar-zdtp-body" }, om = { class: "coar-zdtp-calendar-column"
|
|
|
11529
11595
|
}, [u(Z, {
|
|
11530
11596
|
name: "chevron-right",
|
|
11531
11597
|
size: "s"
|
|
11532
|
-
})], 8,
|
|
11598
|
+
})], 8, gm)
|
|
11533
11599
|
])),
|
|
11534
11600
|
c.value ? K((w(), o("div", {
|
|
11535
11601
|
key: 2,
|
|
@@ -11539,12 +11605,12 @@ var am = { class: "coar-zdtp-body" }, om = { class: "coar-zdtp-calendar-column"
|
|
|
11539
11605
|
}, [(w(!0), o(e, null, k(D.value, (n) => (w(), o("div", {
|
|
11540
11606
|
key: n.name,
|
|
11541
11607
|
class: "coar-zdtp-tz-group"
|
|
11542
|
-
}, [s("div",
|
|
11608
|
+
}, [s("div", bm, P(n.name), 1), (w(!0), o(e, null, k(n.items, (e) => (w(), o("button", {
|
|
11543
11609
|
key: e.id,
|
|
11544
11610
|
type: "button",
|
|
11545
11611
|
class: y(["coar-zdtp-tz-picker-item", { "coar-zdtp-tz-picker-item--active": e.id === t.effectiveDisplayTimeZone }]),
|
|
11546
11612
|
onClick: (t) => N(e.id)
|
|
11547
|
-
}, [s("span",
|
|
11613
|
+
}, [s("span", Sm, P(e.city), 1), s("span", Cm, P(e.offset), 1)], 10, xm))), 128))]))), 128))])), [[L(Fs), {
|
|
11548
11614
|
overflowX: "hidden",
|
|
11549
11615
|
autoHide: "leave"
|
|
11550
11616
|
}]]) : a("", !0),
|
|
@@ -11560,8 +11626,8 @@ var am = { class: "coar-zdtp-body" }, om = { class: "coar-zdtp-calendar-column"
|
|
|
11560
11626
|
role: "option",
|
|
11561
11627
|
"aria-selected": e.isActive,
|
|
11562
11628
|
onClick: (n) => t.onSelectMonth(e.yearMonth)
|
|
11563
|
-
}, P(e.name), 11,
|
|
11564
|
-
s("div",
|
|
11629
|
+
}, P(e.name), 11, Tm))), 128))], 8, wm),
|
|
11630
|
+
s("div", Em, [u(xf, {
|
|
11565
11631
|
"model-value": t.selectedTime ?? void 0,
|
|
11566
11632
|
"use24-hour": t.use24Hour,
|
|
11567
11633
|
"minute-step": t.minuteStep,
|
|
@@ -11577,16 +11643,16 @@ var am = { class: "coar-zdtp-body" }, om = { class: "coar-zdtp-calendar-column"
|
|
|
11577
11643
|
"max",
|
|
11578
11644
|
"onUpdate:modelValue"
|
|
11579
11645
|
])]),
|
|
11580
|
-
s("div",
|
|
11646
|
+
s("div", Dm, P(L(i)("coar.ui.zonedDateTimePicker.displayTimezone", void 0, "Display Timezone")), 1),
|
|
11581
11647
|
s("button", {
|
|
11582
11648
|
type: "button",
|
|
11583
11649
|
class: "coar-zdtp-display-tz-btn",
|
|
11584
11650
|
onClick: j
|
|
11585
|
-
}, [s("span",
|
|
11651
|
+
}, [s("span", Om, P(L(am)(t.effectiveDisplayTimeZone)), 1), u(Z, {
|
|
11586
11652
|
name: "chevron-down",
|
|
11587
11653
|
size: "xs"
|
|
11588
11654
|
})]),
|
|
11589
|
-
T.value.length > 0 ? K((w(), o("div",
|
|
11655
|
+
T.value.length > 0 ? K((w(), o("div", km, [(w(!0), o(e, null, k(T.value, (e, t) => (w(), o("div", {
|
|
11590
11656
|
key: t,
|
|
11591
11657
|
class: y(["coar-zdtp-event-item", e.cssClass])
|
|
11592
11658
|
}, P(e.description), 3))), 128))])), [[L(Fs), {
|
|
@@ -11594,7 +11660,7 @@ var am = { class: "coar-zdtp-body" }, om = { class: "coar-zdtp-calendar-column"
|
|
|
11594
11660
|
autoHide: "leave"
|
|
11595
11661
|
}]]) : a("", !0)
|
|
11596
11662
|
], 64))
|
|
11597
|
-
])]), s("div", { class: y(["coar-zdtp-footer", { "coar-zdtp-footer--differs": t.timeZonesDiffer }]) }, [t.hasValue ? l.value ? (w(), o("div",
|
|
11663
|
+
])]), s("div", { class: y(["coar-zdtp-footer", { "coar-zdtp-footer--differs": t.timeZonesDiffer }]) }, [t.hasValue ? l.value ? (w(), o("div", jm, [u(Js, {
|
|
11598
11664
|
"model-value": t.valueTimeZone,
|
|
11599
11665
|
options: A.value,
|
|
11600
11666
|
appearance: "inline",
|
|
@@ -11615,14 +11681,14 @@ var am = { class: "coar-zdtp-body" }, om = { class: "coar-zdtp-calendar-column"
|
|
|
11615
11681
|
}, [u(Z, {
|
|
11616
11682
|
name: "x",
|
|
11617
11683
|
size: "xs"
|
|
11618
|
-
})], 8,
|
|
11684
|
+
})], 8, Mm)])) : (w(), o("div", Nm, [
|
|
11619
11685
|
u(Z, {
|
|
11620
11686
|
name: "map-pin",
|
|
11621
11687
|
size: "xs",
|
|
11622
11688
|
class: "coar-zdtp-footer-icon"
|
|
11623
11689
|
}),
|
|
11624
|
-
s("span",
|
|
11625
|
-
s("span",
|
|
11690
|
+
s("span", Pm, P(t.valueTimeZoneLabel), 1),
|
|
11691
|
+
s("span", Fm, P(t.formatValueInValueTz), 1),
|
|
11626
11692
|
s("button", {
|
|
11627
11693
|
type: "button",
|
|
11628
11694
|
class: "coar-zdtp-footer-lock",
|
|
@@ -11631,28 +11697,28 @@ var am = { class: "coar-zdtp-body" }, om = { class: "coar-zdtp-calendar-column"
|
|
|
11631
11697
|
}, [u(Z, {
|
|
11632
11698
|
name: "settings",
|
|
11633
11699
|
size: "xs"
|
|
11634
|
-
})], 8,
|
|
11635
|
-
])) : (w(), o("span",
|
|
11700
|
+
})], 8, Im)
|
|
11701
|
+
])) : (w(), o("span", Am, [u(Z, {
|
|
11636
11702
|
name: "map-pin",
|
|
11637
11703
|
size: "xs"
|
|
11638
11704
|
}), s("span", null, P(L(i)("coar.ui.zonedDateTimePicker.eventTimezone", void 0, "Event timezone")), 1)]))], 2)], 2));
|
|
11639
11705
|
}
|
|
11640
|
-
}),
|
|
11706
|
+
}), Rm = {
|
|
11641
11707
|
key: 0,
|
|
11642
11708
|
class: "coar-zdtp-required",
|
|
11643
11709
|
"aria-hidden": "true"
|
|
11644
|
-
},
|
|
11710
|
+
}, zm = [
|
|
11645
11711
|
"aria-expanded",
|
|
11646
11712
|
"aria-controls",
|
|
11647
11713
|
"aria-labelledby",
|
|
11648
11714
|
"aria-invalid"
|
|
11649
|
-
],
|
|
11715
|
+
], Bm = ["aria-label", "disabled"], Vm = [
|
|
11650
11716
|
"placeholder",
|
|
11651
11717
|
"value",
|
|
11652
11718
|
"disabled",
|
|
11653
11719
|
"readonly",
|
|
11654
11720
|
"aria-describedby"
|
|
11655
|
-
],
|
|
11721
|
+
], Hm = ["title"], Um = ["aria-label", "disabled"], Wm = ["disabled", "aria-label"], Gm = /* @__PURE__ */ X(/* @__PURE__ */ d({
|
|
11656
11722
|
__name: "CoarZonedDateTimePicker",
|
|
11657
11723
|
props: /* @__PURE__ */ g({
|
|
11658
11724
|
label: { default: "" },
|
|
@@ -11710,34 +11776,34 @@ var am = { class: "coar-zdtp-body" }, om = { class: "coar-zdtp-calendar-column"
|
|
|
11710
11776
|
}),
|
|
11711
11777
|
emits: /* @__PURE__ */ g(["opened", "closed"], ["update:modelValue"]),
|
|
11712
11778
|
setup(e, { emit: t }) {
|
|
11713
|
-
let n = e, i = z(e, "modelValue"), c = t, { t: d } = q(), f =
|
|
11779
|
+
let n = e, i = z(e, "modelValue"), c = t, { t: d } = q(), f = $f({
|
|
11714
11780
|
locale: r(() => n.locale),
|
|
11715
11781
|
dateFormat: r(() => n.dateFormat)
|
|
11716
11782
|
}), p = O(i.value?.toPlainDateTime().toPlainDate().toPlainYearMonth() ?? Y.Now.plainDateISO().toPlainYearMonth()), m = O(null), g = O(null), _ = `coar-zdtp-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, b = `${_}-label`, x = `${_}-input`, T = `${_}-panel`, D = `${_}-message`, k = O(null), A = O(null), j = null, M = O(""), N = r(() => f.timezone.value || Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC"), F = r(() => i.value?.timeZoneId ?? null), I = r(() => g.value ?? N.value), R = r(() => n.timeZone ?? N.value), B = r(() => F.value != null && F.value !== N.value), V = r(() => F.value != null && I.value !== F.value), H = r(() => {
|
|
11717
11783
|
let e = I.value, t = N.value, n = F.value;
|
|
11718
11784
|
return e === t ? "home" : n && e === n ? "location" : "world";
|
|
11719
|
-
}), W = r(() => B.value || H.value !== "home"), G = r(() =>
|
|
11785
|
+
}), W = r(() => B.value || H.value !== "home"), G = r(() => am(I.value)), K = r(() => {
|
|
11720
11786
|
let e = F.value;
|
|
11721
|
-
return e ?
|
|
11722
|
-
}), ee =
|
|
11787
|
+
return e ? am(e) : "";
|
|
11788
|
+
}), ee = tm(), J = r(() => n.use24Hour === !0 ? !0 : n.use24Hour === !1 ? !1 : !$d(f.effectiveLocale.value)), ne;
|
|
11723
11789
|
function re() {
|
|
11724
11790
|
if (ne?.destroy(), !A.value) return;
|
|
11725
|
-
let e =
|
|
11791
|
+
let e = rp(f.effectiveDateFormat.value.pattern, !J.value);
|
|
11726
11792
|
ne = new ie(A.value, e);
|
|
11727
11793
|
}
|
|
11728
11794
|
function ae(e) {
|
|
11729
11795
|
let t = I.value, n = e.withTimeZone(t);
|
|
11730
|
-
return `${
|
|
11796
|
+
return `${Ef(n.toPlainDate(), f.effectiveDateFormat.value.pattern)} ${ef(n.hour, n.minute, J.value)}`;
|
|
11731
11797
|
}
|
|
11732
11798
|
function oe() {
|
|
11733
|
-
return i.value ? `${
|
|
11799
|
+
return i.value ? `${Ef(i.value.toPlainDate(), f.effectiveDateFormat.value.pattern)} ${ef(i.value.hour, i.value.minute, J.value)}` : "";
|
|
11734
11800
|
}
|
|
11735
11801
|
function se(e) {
|
|
11736
11802
|
let t = e.trim().split(/\s+/);
|
|
11737
11803
|
if (t.length < 2) return null;
|
|
11738
|
-
let n = t[0], r = t.slice(1).join(" "), i =
|
|
11804
|
+
let n = t[0], r = t.slice(1).join(" "), i = Df(n, f.effectiveDateFormat.value.pattern);
|
|
11739
11805
|
if (!i) return null;
|
|
11740
|
-
let a =
|
|
11806
|
+
let a = tf(r);
|
|
11741
11807
|
if (!a) return null;
|
|
11742
11808
|
let o = i.toPlainDateTime({
|
|
11743
11809
|
hour: a.hours,
|
|
@@ -11813,7 +11879,7 @@ var am = { class: "coar-zdtp-body" }, om = { class: "coar-zdtp-calendar-column"
|
|
|
11813
11879
|
onDateSelected: (e) => {
|
|
11814
11880
|
let t = ge.value ?? n.defaultTime, r = e.toPlainDateTime({
|
|
11815
11881
|
hour: t.hours,
|
|
11816
|
-
minute:
|
|
11882
|
+
minute: sf(t.minutes, n.minuteStep)
|
|
11817
11883
|
}), a = F.value ?? R.value, o;
|
|
11818
11884
|
o = pe.value === a ? r.toZonedDateTime(a) : r.toZonedDateTime(pe.value).withTimeZone(a), o = we(o), i.value = o;
|
|
11819
11885
|
},
|
|
@@ -11904,7 +11970,7 @@ var am = { class: "coar-zdtp-body" }, om = { class: "coar-zdtp-calendar-column"
|
|
|
11904
11970
|
},
|
|
11905
11971
|
content: {
|
|
11906
11972
|
kind: "component",
|
|
11907
|
-
component: h(
|
|
11973
|
+
component: h(Lm)
|
|
11908
11974
|
},
|
|
11909
11975
|
inputs: t
|
|
11910
11976
|
}), f.open(), c("opened"), j.afterClosed.then(() => {
|
|
@@ -11953,7 +12019,7 @@ var am = { class: "coar-zdtp-body" }, om = { class: "coar-zdtp-calendar-column"
|
|
|
11953
12019
|
id: b,
|
|
11954
12020
|
class: "coar-zdtp-label",
|
|
11955
12021
|
for: x
|
|
11956
|
-
}, [l(P(e.label) + " ", 1), e.required ? (w(), o("span",
|
|
12022
|
+
}, [l(P(e.label) + " ", 1), e.required ? (w(), o("span", Rm, "*")) : a("", !0)])) : a("", !0),
|
|
11957
12023
|
s("div", {
|
|
11958
12024
|
ref_key: "triggerRef",
|
|
11959
12025
|
ref: k,
|
|
@@ -11980,8 +12046,8 @@ var am = { class: "coar-zdtp-body" }, om = { class: "coar-zdtp-calendar-column"
|
|
|
11980
12046
|
onClick: Oe
|
|
11981
12047
|
}, [u(Z, {
|
|
11982
12048
|
name: "x",
|
|
11983
|
-
size: "
|
|
11984
|
-
})], 10,
|
|
12049
|
+
size: "auto"
|
|
12050
|
+
})], 10, Bm),
|
|
11985
12051
|
s("input", {
|
|
11986
12052
|
id: x,
|
|
11987
12053
|
ref_key: "dateInputRef",
|
|
@@ -11996,12 +12062,12 @@ var am = { class: "coar-zdtp-body" }, om = { class: "coar-zdtp-calendar-column"
|
|
|
11996
12062
|
autocomplete: "off",
|
|
11997
12063
|
onInput: ke,
|
|
11998
12064
|
onBlur: Ae
|
|
11999
|
-
}, null, 40,
|
|
12065
|
+
}, null, 40, Vm),
|
|
12000
12066
|
i.value ? (w(), o("span", {
|
|
12001
12067
|
key: 0,
|
|
12002
12068
|
class: "coar-zdtp-tz-inline",
|
|
12003
12069
|
title: G.value
|
|
12004
|
-
}, P(G.value), 9,
|
|
12070
|
+
}, P(G.value), 9, Hm)) : a("", !0),
|
|
12005
12071
|
s("button", {
|
|
12006
12072
|
type: "button",
|
|
12007
12073
|
class: y(["coar-zdtp-tz-indicator", {
|
|
@@ -12015,7 +12081,7 @@ var am = { class: "coar-zdtp-body" }, om = { class: "coar-zdtp-calendar-column"
|
|
|
12015
12081
|
}, [u(Z, {
|
|
12016
12082
|
name: Me.value,
|
|
12017
12083
|
size: "xs"
|
|
12018
|
-
}, null, 8, ["name"])], 10,
|
|
12084
|
+
}, null, 8, ["name"])], 10, Um),
|
|
12019
12085
|
s("button", {
|
|
12020
12086
|
type: "button",
|
|
12021
12087
|
class: "coar-zdtp-btn",
|
|
@@ -12026,8 +12092,8 @@ var am = { class: "coar-zdtp-body" }, om = { class: "coar-zdtp-calendar-column"
|
|
|
12026
12092
|
}, [u(Z, {
|
|
12027
12093
|
name: "calendar",
|
|
12028
12094
|
size: "s"
|
|
12029
|
-
})], 8,
|
|
12030
|
-
], 42,
|
|
12095
|
+
})], 8, Wm)
|
|
12096
|
+
], 42, zm),
|
|
12031
12097
|
le.value ? (w(), o("div", {
|
|
12032
12098
|
key: 1,
|
|
12033
12099
|
id: D,
|
|
@@ -12036,6 +12102,6 @@ var am = { class: "coar-zdtp-body" }, om = { class: "coar-zdtp-calendar-column"
|
|
|
12036
12102
|
}, P(le.value), 3)) : a("", !0)
|
|
12037
12103
|
], 2));
|
|
12038
12104
|
}
|
|
12039
|
-
}), [["__scopeId", "data-v-
|
|
12105
|
+
}), [["__scopeId", "data-v-c6c2a031"]]);
|
|
12040
12106
|
//#endregion
|
|
12041
|
-
export { Fe as COAR_BUILTIN_ICON_SOURCE_KEY,
|
|
12107
|
+
export { Fe as COAR_BUILTIN_ICON_SOURCE_KEY, tp as COAR_DATE_FORMAT_TO_MASKITO_MODE, ep as COAR_DEFAULT_TIME_FORMAT, Pe as COAR_ICON_SERVICE_KEY, ze as CORE_ICONS, Bt as CoarAvatar, ct as CoarBadge, od as CoarBreadcrumb, cd as CoarBreadcrumbItem, $e as CoarButton, _t as CoarCard, gn as CoarCheckbox, jt as CoarCodeBlock, Me as CoarCollapse, Uu as CoarContextMenu, Ql as CoarDialogShell, rt as CoarDivider, cl as CoarDualListbox, ke as CoarFade, Oe as CoarFormField, Le as CoarHttpIconSource, Z as CoarIcon, Ie as CoarIconMapSource, tt as CoarIconPlugin, Re as CoarIconService, nl as CoarListbox, yu as CoarMenu, Du as CoarMenuDivider, Ou as CoarMenuHeading, Cu as CoarMenuItem, Zf as CoarMonthList, Oc as CoarMultiSelect, Qd as CoarNavbar, lt as CoarNote, un as CoarNumberInput, wl as CoarOverlayHost, dl as CoarOverlayOutlet, or as CoarOverlayPlugin, _d as CoarPagination, en as CoarPasswordInput, Op as CoarPlainDatePicker, em as CoarPlainDateTimePicker, jl as CoarPopconfirm, Al as CoarPopconfirmPanel, Wl as CoarPopover, pt as CoarProgressBar, wn as CoarRadioButton, bn as CoarRadioGroup, je as CoarScale, Hf as CoarScrollableCalendar, rd as CoarSegmentedControl, Js as CoarSelect, Od as CoarSidebar, qd as CoarSidebarDivider, Wd as CoarSidebarGroup, Kd as CoarSidebarHeading, Md as CoarSidebarItem, Jd as CoarSidebarSpacer, Ae as CoarSlide, at as CoarSpinner, Fu as CoarSubExpand, Vu as CoarSubFlyout, Vu as CoarSubmenuItem, On as CoarSwitch, Gu as CoarTab, $u as CoarTabGroup, Vt as CoarTable, Pt as CoarTag, zc as CoarTagSelect, Yt as CoarTextInput, xf as CoarTimePicker, Cl as CoarToastContainer, xl as CoarToastItem, Gm as CoarZonedDateTimePicker, Ce as FORM_FIELD_INJECTION_KEY, cu as MenuCascade, An as OVERLAY_DEFAULTS, nr as OVERLAY_PARENT_KEY, tr as OVERLAY_SERVICE_KEY, Ne as PRESET_SIZES, _n as RADIO_GROUP_INJECTION_KEY, yd as SIDEBAR_COLLAPSED_KEY, bd as SIDEBAR_ICON_SIZE_KEY, Yn as TOAST_SERVICE_KEY, zn as computeOverlayCoordinates, et as createCoarIconService, Kn as createOverlayService, Qn as createToastService, pr as dialogPreset, Fn as getAnchorRect, Nn as getContainerRect, ar as getOverlayService, Rn as getScrollParents, Is as getScrollbarInstance, er as getToastService, Mn as getViewportRect, fr as hoverMenuPreset, ur as menuPreset, lr as modalPreset, yr as popconfirmPreset, fu as provideMenuCascade, mu as provideMenuClose, jn as resolveOverlaySpec, dr as selectPreset, be as setCoarDragImageFromElement, xe as setCoarDragImageFromHtml, cr as tooltipPreset, Wu as useContextMenu, ru as useDialog, ve as useDragDrop, pu as useMenuCascade, hu as useMenuClose, sr as useOverlay, rr as useOverlayParent, Rl as useToast, le as useVirtualList, Fs as vScrollbar, uc as vTooltip };
|