sprintify-ui 0.0.95 → 0.0.96
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/sprintify-ui.es.js
CHANGED
|
@@ -7490,9 +7490,9 @@ const Eh = /* @__PURE__ */ ft(wh, [["render", Sh]]), Oh = { class: "flex justify
|
|
|
7490
7490
|
]), 1032, ["url", "url-query", "default-query", "searchable", "actions", "history-mode"]);
|
|
7491
7491
|
};
|
|
7492
7492
|
}
|
|
7493
|
-
}), qh = { class: "relative" }, Rh = { class: "pointer-events-none absolute top-0 left-0 flex h-
|
|
7493
|
+
}), qh = { class: "relative" }, Rh = { class: "pointer-events-none absolute top-0 left-0 flex h-10 items-center justify-center pl-2.5" }, Dh = ["value", "disabled", "placeholder"], Fh = {
|
|
7494
7494
|
key: 0,
|
|
7495
|
-
class: "absolute top-0 right-0 flex h-
|
|
7495
|
+
class: "absolute top-0 right-0 flex h-10 items-center justify-center p-1"
|
|
7496
7496
|
}, Uh = /* @__PURE__ */ me({
|
|
7497
7497
|
__name: "BaseDatePicker",
|
|
7498
7498
|
props: {
|
|
@@ -7527,6 +7527,10 @@ const Eh = /* @__PURE__ */ ft(wh, [["render", Sh]]), Oh = { class: "flex justify
|
|
|
7527
7527
|
name: {
|
|
7528
7528
|
default: void 0,
|
|
7529
7529
|
type: String
|
|
7530
|
+
},
|
|
7531
|
+
inline: {
|
|
7532
|
+
default: !1,
|
|
7533
|
+
type: Boolean
|
|
7530
7534
|
}
|
|
7531
7535
|
},
|
|
7532
7536
|
emits: ["update:modelValue"],
|
|
@@ -7565,6 +7569,7 @@ const Eh = /* @__PURE__ */ ft(wh, [["render", Sh]]), Oh = { class: "flex justify
|
|
|
7565
7569
|
theme: "pikaday-white",
|
|
7566
7570
|
field: a.value,
|
|
7567
7571
|
yearRange: n.yearRange,
|
|
7572
|
+
bound: !n.inline,
|
|
7568
7573
|
i18n: {
|
|
7569
7574
|
previousMonth: l.t("sui.previous_month"),
|
|
7570
7575
|
nextMonth: l.t("sui.next_month"),
|
|
@@ -7620,7 +7625,7 @@ const Eh = /* @__PURE__ */ ft(wh, [["render", Sh]]), Oh = { class: "flex justify
|
|
|
7620
7625
|
type: "text",
|
|
7621
7626
|
readonly: "",
|
|
7622
7627
|
disabled: e.disabled,
|
|
7623
|
-
class: ue(["w-full rounded pl-10 pr-16 disabled:cursor-not-allowed disabled:text-slate-300", [P(r) ? "border-red-500" : "border-slate-300"]]),
|
|
7628
|
+
class: ue(["h-10 w-full rounded pl-10 pr-16 disabled:cursor-not-allowed disabled:text-slate-300", [P(r) ? "border-red-500" : "border-slate-300"]]),
|
|
7624
7629
|
placeholder: g.$t("sui.click_or_select_date")
|
|
7625
7630
|
}, null, 10, Dh),
|
|
7626
7631
|
P(v) && !e.disabled ? (U(), te("div", Fh, [
|
|
@@ -32,6 +32,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
32
|
default: undefined;
|
|
33
33
|
type: StringConstructor;
|
|
34
34
|
};
|
|
35
|
+
inline: {
|
|
36
|
+
default: boolean;
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
};
|
|
35
39
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
40
|
modelValue: {
|
|
37
41
|
default: undefined;
|
|
@@ -65,6 +69,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
69
|
default: undefined;
|
|
66
70
|
type: StringConstructor;
|
|
67
71
|
};
|
|
72
|
+
inline: {
|
|
73
|
+
default: boolean;
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
};
|
|
68
76
|
}>> & {
|
|
69
77
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
70
78
|
}, {
|
|
@@ -73,6 +81,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
73
81
|
modelValue: string | null | undefined;
|
|
74
82
|
disabled: boolean;
|
|
75
83
|
hasError: boolean;
|
|
84
|
+
inline: boolean;
|
|
76
85
|
minDate: Date;
|
|
77
86
|
maxDate: Date;
|
|
78
87
|
yearRange: number | [number, number];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="relative">
|
|
3
3
|
<div
|
|
4
|
-
class="pointer-events-none absolute top-0 left-0 flex h-
|
|
4
|
+
class="pointer-events-none absolute top-0 left-0 flex h-10 items-center justify-center pl-2.5"
|
|
5
5
|
>
|
|
6
6
|
<BaseIcon
|
|
7
7
|
class="relative -top-px h-5 w-5 text-slate-400"
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
type="text"
|
|
15
15
|
readonly
|
|
16
16
|
:disabled="disabled"
|
|
17
|
-
class="w-full rounded pl-10 pr-16 disabled:cursor-not-allowed disabled:text-slate-300"
|
|
17
|
+
class="h-10 w-full rounded pl-10 pr-16 disabled:cursor-not-allowed disabled:text-slate-300"
|
|
18
18
|
:class="[hasErrorInternal ? 'border-red-500' : 'border-slate-300']"
|
|
19
19
|
:placeholder="$t('sui.click_or_select_date')"
|
|
20
20
|
/>
|
|
21
21
|
<div
|
|
22
22
|
v-if="modelValueFormatted && !disabled"
|
|
23
|
-
class="absolute top-0 right-0 flex h-
|
|
23
|
+
class="absolute top-0 right-0 flex h-10 items-center justify-center p-1"
|
|
24
24
|
>
|
|
25
25
|
<button
|
|
26
26
|
type="button"
|
|
@@ -74,6 +74,10 @@ const props = defineProps({
|
|
|
74
74
|
default: undefined,
|
|
75
75
|
type: String,
|
|
76
76
|
},
|
|
77
|
+
inline: {
|
|
78
|
+
default: false,
|
|
79
|
+
type: Boolean,
|
|
80
|
+
},
|
|
77
81
|
});
|
|
78
82
|
|
|
79
83
|
const emit = defineEmits(['update:modelValue']);
|
|
@@ -136,6 +140,7 @@ onMounted(() => {
|
|
|
136
140
|
theme: 'pikaday-white',
|
|
137
141
|
field: datepicker.value,
|
|
138
142
|
yearRange: props.yearRange,
|
|
143
|
+
bound: !props.inline,
|
|
139
144
|
i18n: {
|
|
140
145
|
previousMonth: i18n.t('sui.previous_month'),
|
|
141
146
|
nextMonth: i18n.t('sui.next_month'),
|