@club-employes/utopia 4.290.0 → 4.291.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.
|
@@ -3,6 +3,7 @@ type __VLS_Props = {
|
|
|
3
3
|
formattedDraftDateDisplay: string;
|
|
4
4
|
enableTime: boolean;
|
|
5
5
|
language: string;
|
|
6
|
+
hideConfirmButton?: boolean;
|
|
6
7
|
};
|
|
7
8
|
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
8
9
|
clear: () => any;
|
package/dist/index.js
CHANGED
|
@@ -7947,7 +7947,8 @@ const j4 = ["href", "target"], S4 = /* @__PURE__ */ ie({
|
|
|
7947
7947
|
props: {
|
|
7948
7948
|
formattedDraftDateDisplay: {},
|
|
7949
7949
|
enableTime: { type: Boolean },
|
|
7950
|
-
language: {}
|
|
7950
|
+
language: {},
|
|
7951
|
+
hideConfirmButton: { type: Boolean }
|
|
7951
7952
|
},
|
|
7952
7953
|
emits: ["clear", "confirm"],
|
|
7953
7954
|
setup(e, { emit: t }) {
|
|
@@ -7964,7 +7965,8 @@ const j4 = ["href", "target"], S4 = /* @__PURE__ */ ie({
|
|
|
7964
7965
|
onClick: r[0] || (r[0] = (i) => o("clear"))
|
|
7965
7966
|
}, O(a.value.clearDate), 1)
|
|
7966
7967
|
]),
|
|
7967
|
-
|
|
7968
|
+
e.hideConfirmButton ? P("", !0) : (A(), T(y(Oe), {
|
|
7969
|
+
key: 0,
|
|
7968
7970
|
size: "xs",
|
|
7969
7971
|
onClick: r[1] || (r[1] = (i) => o("confirm"))
|
|
7970
7972
|
}, {
|
|
@@ -7972,10 +7974,10 @@ const j4 = ["href", "target"], S4 = /* @__PURE__ */ ie({
|
|
|
7972
7974
|
F(O(e.enableTime ? a.value.chooseDateHour : a.value.chooseDate), 1)
|
|
7973
7975
|
]),
|
|
7974
7976
|
_: 1
|
|
7975
|
-
})
|
|
7977
|
+
}))
|
|
7976
7978
|
]));
|
|
7977
7979
|
}
|
|
7978
|
-
}), kp = /* @__PURE__ */ fe(Cp, [["__scopeId", "data-v-
|
|
7980
|
+
}), kp = /* @__PURE__ */ fe(Cp, [["__scopeId", "data-v-c657a54b"]]), Op = /^(\d{1,2})\s*\/\s*(\d{1,2})\s*\/\s*(\d{2,4})$/;
|
|
7979
7981
|
function sl(e) {
|
|
7980
7982
|
if (!e) return null;
|
|
7981
7983
|
if (e instanceof Date) return Number.isNaN(e.getTime()) ? null : e;
|
|
@@ -8074,7 +8076,8 @@ const Sp = /* @__PURE__ */ ie({
|
|
|
8074
8076
|
defaultDateOffsetHours: { default: 1 },
|
|
8075
8077
|
teleport: { type: Boolean, default: !1 },
|
|
8076
8078
|
language: { default: "fr" },
|
|
8077
|
-
minuteStep: {}
|
|
8079
|
+
minuteStep: {},
|
|
8080
|
+
hideConfirmButton: { type: Boolean }
|
|
8078
8081
|
},
|
|
8079
8082
|
emits: ["update:modelValue", "change"],
|
|
8080
8083
|
setup(e, { expose: t, emit: n }) {
|
|
@@ -8279,7 +8282,7 @@ const Sp = /* @__PURE__ */ ie({
|
|
|
8279
8282
|
v.value = new Date(v.value.getFullYear() - 1, 0, 1);
|
|
8280
8283
|
}
|
|
8281
8284
|
function Et(E) {
|
|
8282
|
-
xe(E) || (b.value = new Date(E), yt(b.value));
|
|
8285
|
+
xe(E) || (b.value = new Date(E), yt(b.value), o.hideConfirmButton && !o.enableTime && se());
|
|
8283
8286
|
}
|
|
8284
8287
|
function ht() {
|
|
8285
8288
|
b.value || (b.value = /* @__PURE__ */ new Date());
|
|
@@ -8466,9 +8469,10 @@ const Sp = /* @__PURE__ */ ie({
|
|
|
8466
8469
|
"formatted-draft-date-display": Me.value,
|
|
8467
8470
|
"enable-time": o.enableTime,
|
|
8468
8471
|
language: o.language,
|
|
8472
|
+
"hide-confirm-button": o.hideConfirmButton,
|
|
8469
8473
|
onClear: Xe,
|
|
8470
8474
|
onConfirm: se
|
|
8471
|
-
}, null, 8, ["formatted-draft-date-display", "enable-time", "language"])
|
|
8475
|
+
}, null, 8, ["formatted-draft-date-display", "enable-time", "language", "hide-confirm-button"])
|
|
8472
8476
|
], 4)) : P("", !0)
|
|
8473
8477
|
]),
|
|
8474
8478
|
_: 1
|
|
@@ -8476,7 +8480,7 @@ const Sp = /* @__PURE__ */ ie({
|
|
|
8476
8480
|
], 8, ["disabled"]))
|
|
8477
8481
|
], 2));
|
|
8478
8482
|
}
|
|
8479
|
-
}), Cs = /* @__PURE__ */ fe(Sp, [["__scopeId", "data-v-
|
|
8483
|
+
}), Cs = /* @__PURE__ */ fe(Sp, [["__scopeId", "data-v-6686b5cf"]]), Hp = {
|
|
8480
8484
|
key: 0,
|
|
8481
8485
|
class: "utopia-dropdown__label-required",
|
|
8482
8486
|
"aria-label": "requis"
|