@agrotools1/at-components 0.5.6 → 0.5.7

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.
Files changed (30) hide show
  1. package/dist/DatePicker/DatePicker.d.ts +31 -0
  2. package/dist/DatePicker/DatePicker.helper.d.ts +6 -0
  3. package/dist/DatePicker/DatePicker.vue.js +111 -100
  4. package/dist/DatePicker/DatePicker.vue2.js +82 -64
  5. package/dist/Dropdown/Dropdown.core.vue.js +28 -22
  6. package/dist/Dropdown/Dropdown.core.vue2.js +48 -42
  7. package/dist/Dropdown/DropdownContent/DropdownContent.d.ts +2 -0
  8. package/dist/Dropdown/DropdownContent/DropdownContent.vue.js +12 -0
  9. package/dist/Dropdown/DropdownContent/DropdownContent.vue2.js +9 -0
  10. package/dist/Search/Search.d.ts +16 -0
  11. package/dist/Search/Search.vue.js +4 -3
  12. package/dist/Search/Search.vue2.js +24 -19
  13. package/dist/Select/Multiple/Select.multiple.d.ts +9 -0
  14. package/dist/Select/Multiple/Select.multiple.vue.js +4 -4
  15. package/dist/Select/Multiple/Select.multiple.vue2.js +19 -12
  16. package/dist/Select/Select.core.d.ts +4 -0
  17. package/dist/Select/Select.core.vue.js +5 -4
  18. package/dist/Select/Select.core.vue2.js +13 -10
  19. package/dist/Select/Single/Select.single.d.ts +9 -0
  20. package/dist/Select/Single/Select.single.vue.js +7 -7
  21. package/dist/Select/Single/Select.single.vue2.js +33 -26
  22. package/dist/Select/index.d.ts +18 -0
  23. package/dist/Tabs/Tabs.vue.js +5 -5
  24. package/dist/Upload/MultipleUpload/MultipleUpload.vue.js +2 -2
  25. package/dist/Upload/SingleUpload/SingleUpload.vue.js +1 -1
  26. package/dist/Upload/UploaderInput/UploaderInput.d.ts +4 -1
  27. package/dist/Upload/UploaderInput/UploaderInput.vue.js +24 -25
  28. package/dist/Upload/UploaderInput/UploaderInput.vue2.js +11 -8
  29. package/dist/style.css +1 -1
  30. package/package.json +1 -1
@@ -62,6 +62,18 @@ declare const _default: import("vue").DefineComponent<{
62
62
  default: boolean;
63
63
  validator: (value: boolean) => boolean;
64
64
  };
65
+ position: {
66
+ type: () => DatePickerProps["position"];
67
+ default: string;
68
+ };
69
+ id: {
70
+ type: () => DatePickerProps["id"];
71
+ default: string;
72
+ };
73
+ error: {
74
+ type: () => DatePickerProps["error"];
75
+ default: () => void;
76
+ };
65
77
  }, {
66
78
  displayModal: import("vue").Ref<boolean>;
67
79
  auxValue: import("vue").Ref<{
@@ -287,6 +299,7 @@ declare const _default: import("vue").DefineComponent<{
287
299
  checkUnFocus: () => void;
288
300
  keepFocus: () => void;
289
301
  clearValue: () => void;
302
+ onOpenedModal: (value: boolean) => void;
290
303
  isInputHovered: import("vue").Ref<boolean>;
291
304
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "confirmBoxConfirmed")[], "update:value" | "confirmBoxConfirmed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
292
305
  value: {
@@ -351,13 +364,31 @@ declare const _default: import("vue").DefineComponent<{
351
364
  default: boolean;
352
365
  validator: (value: boolean) => boolean;
353
366
  };
367
+ position: {
368
+ type: () => DatePickerProps["position"];
369
+ default: string;
370
+ };
371
+ id: {
372
+ type: () => DatePickerProps["id"];
373
+ default: string;
374
+ };
375
+ error: {
376
+ type: () => DatePickerProps["error"];
377
+ default: () => void;
378
+ };
354
379
  }>> & {
355
380
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
356
381
  onConfirmBoxConfirmed?: ((...args: any[]) => any) | undefined;
357
382
  }, {
358
383
  label: string;
384
+ error: {
385
+ value: boolean;
386
+ message: string;
387
+ };
359
388
  disabled: boolean;
389
+ id: string;
360
390
  value: DatePickerRange;
391
+ position: "left" | "right" | undefined;
361
392
  forceFocus: boolean;
362
393
  useRange: boolean;
363
394
  useTimeInput: boolean;
@@ -13,6 +13,12 @@ export interface DatePickerProps {
13
13
  setTimeInputFocus: "default" | "hours" | "minutes" | "none";
14
14
  force12HourTime: boolean;
15
15
  forceFocus: boolean;
16
+ position?: "left" | "right";
17
+ id: string;
18
+ error: {
19
+ value: boolean;
20
+ message: string;
21
+ };
16
22
  }
17
23
  export declare const monthTranslationObj: Record<string, string[]>;
18
24
  export declare const weekInitialsObject: Record<string, string[]>;
@@ -1,111 +1,122 @@
1
- import g from "./DatePicker.vue2.js";
2
- import { resolveComponent as a, openBlock as t, createElementBlock as d, createElementVNode as p, createVNode as l, createBlock as u, createCommentVNode as o, withCtx as m, createTextVNode as k, toDisplayString as P } from "vue";
1
+ import f from "./DatePicker.vue2.js";
2
+ import { resolveComponent as o, openBlock as t, createElementBlock as i, createElementVNode as m, createVNode as l, withCtx as d, createBlock as u, createCommentVNode as a, createTextVNode as k, toDisplayString as D } from "vue";
3
3
  import "./DatePicker.scss.js";
4
4
  import v from "../_virtual/_plugin-vue_export-helper.js";
5
- const A = { class: "AT-DATEPICKER_container no-select" }, M = { class: "AT-DATEPICKER_core" }, I = {
5
+ const M = { class: "AT-DATEPICKER_container no-select" }, I = { class: "AT-DATEPICKER_core" }, b = {
6
6
  key: 0,
7
7
  class: "AT-DATEPICKER-callToAction"
8
8
  };
9
- function b(e, r, V, T, E, S) {
10
- const y = a("AtCoreInput"), C = a("AtDatePickerHeader"), D = a("AtDatePickerCalendar"), f = a("AtDatePickerTime"), s = a("AtDatePickerListSelector"), i = a("AtButton");
11
- return t(), d("div", A, [
12
- p("div", {
13
- onClick: r[3] || (r[3] = (n) => e.updateFocus(!e.displayModal))
14
- }, [
15
- l(y, {
16
- modelValue: e.displayValue,
17
- "onUpdate:modelValue": r[0] || (r[0] = (n) => e.displayValue = n),
18
- label: e.label,
19
- disabled: e.disabled,
20
- readonly: !0,
21
- "force-focus": e.displayModal,
22
- cursor: "pointer",
23
- icon: { name: "AtCalendarRegularIcon" },
24
- "use-clear-button": e.value.startDate != null || e.value.endDate != null,
25
- "force-event-clear-button": !0,
26
- onClickOutside: e.checkUnFocus,
27
- onClearInput: r[1] || (r[1] = (n) => e.$emit("update:value", e.clearValue())),
28
- onMouseover: r[2] || (r[2] = (n) => e.isInputHovered = n)
29
- }, null, 8, ["modelValue", "label", "disabled", "force-focus", "use-clear-button", "onClickOutside"])
30
- ]),
31
- e.displayModal ? (t(), d("div", {
32
- key: 0,
33
- class: "AT-DATEPICKER_modal",
34
- onClick: r[14] || (r[14] = (...n) => e.keepFocus && e.keepFocus(...n))
35
- }, [
9
+ function V(e, r, T, E, c, S) {
10
+ const P = o("AtCoreInput"), g = o("AtDatePickerHeader"), y = o("AtDatePickerCalendar"), A = o("AtDatePickerTime"), s = o("AtDatePickerListSelector"), p = o("AtButton"), C = o("AtDropdown");
11
+ return t(), i("div", M, [
12
+ m("div", null, [
36
13
  l(C, {
37
- "date-picker-mode": e.datePickerMode,
38
- "current-month": e.getMonthName(e.currentMonth),
39
- "current-year": e.currentYear,
40
- "current-year-range": e.currentYearRange,
41
- "selected-year": e.selectedMonthYear,
42
- style: { marginBottom: "16px" },
43
- onSimpleArrows: r[4] || (r[4] = (n) => e.updateDatePeriod(n, !0)),
44
- "onUpdate:datePickerMode": r[5] || (r[5] = (n) => e.datePickerMode = n)
45
- }, null, 8, ["date-picker-mode", "current-month", "current-year", "current-year-range", "selected-year"]),
46
- p("div", M, [
47
- e.datePickerMode === "calendar" ? (t(), u(D, {
48
- key: 0,
49
- year: e.currentYear,
50
- month: e.currentMonth,
51
- "selected-range": e.useConfirmBox ? e.auxValue : e.value,
52
- "use-range": e.useRange,
53
- "week-initials": e.weekInitials,
54
- onIncrementMonth: r[6] || (r[6] = (n) => e.updateDatePeriod(n, !0)),
55
- onSelected: r[7] || (r[7] = (n) => e.updateValue(n))
56
- }, null, 8, ["year", "month", "selected-range", "use-range", "week-initials"])) : o("", !0),
57
- e.useTimeInput && !e.useRange && e.datePickerMode === "calendar" ? (t(), u(f, {
58
- key: 1,
59
- date: e.useConfirmBox ? e.auxValue.startDate : e.value.startDate,
60
- "period12-hour": e.display12HourFormat,
61
- disabled: e.disabled || !e.value.startDate,
62
- "set-focus-element": e.setTimeInputFocus,
63
- "onUpdate:date": r[8] || (r[8] = (n) => e.updateValue({ startDate: n, endDate: n }))
64
- }, null, 8, ["date", "period12-hour", "disabled", "set-focus-element"])) : o("", !0),
65
- e.datePickerMode === "monthSelector" ? (t(), u(s, {
66
- key: 2,
67
- elements: e.monthList,
68
- "current-page-value": `${e.currentYear}-${e.currentMonth}`,
69
- onElementSelected: r[9] || (r[9] = (n) => {
70
- e.updateMonthYear(n), e.datePickerMode = "calendar";
71
- })
72
- }, null, 8, ["elements", "current-page-value"])) : o("", !0),
73
- e.datePickerMode === "yearSelector" ? (t(), u(s, {
74
- key: 3,
75
- elements: e.yearList,
76
- "current-page-value": String(e.currentYear),
77
- "current-page-index": e.currentYearPageIndex,
78
- onUpdateCurrentPageIndex: r[10] || (r[10] = (n) => e.currentYearPageIndex = n),
79
- onUpdateCurrentSelector: r[11] || (r[11] = (n) => e.currentYearRange = n),
80
- onElementSelected: r[12] || (r[12] = (n) => {
81
- e.updateMonthYear(n), e.datePickerMode = "calendar";
82
- })
83
- }, null, 8, ["elements", "current-page-value", "current-page-index"])) : o("", !0)
84
- ]),
85
- e.useConfirmBox ? (t(), d("div", I, [
86
- l(i, {
87
- variant: "secondary",
88
- onClick: r[13] || (r[13] = (n) => e.updateFocus(!1))
89
- }, {
90
- default: m(() => [
91
- k(P(e.buttonNames.cancel), 1)
92
- ]),
93
- _: 1
94
- }),
95
- l(i, {
96
- disabled: !(e.auxValue.startDate && e.auxValue.endDate),
97
- onClick: e.confirmInput
98
- }, {
99
- default: m(() => [
100
- k(P(e.buttonNames.save), 1)
101
- ]),
102
- _: 1
103
- }, 8, ["disabled", "onClick"])
104
- ])) : o("", !0)
105
- ])) : o("", !0)
14
+ id: e.id,
15
+ "is-open": e.displayModal,
16
+ position: e.position,
17
+ "onUpdate:isOpen": e.onOpenedModal
18
+ }, {
19
+ trigger: d(() => [
20
+ l(P, {
21
+ modelValue: e.displayValue,
22
+ "onUpdate:modelValue": r[0] || (r[0] = (n) => e.displayValue = n),
23
+ label: e.label,
24
+ disabled: e.disabled,
25
+ readonly: !0,
26
+ "force-focus": e.displayModal,
27
+ cursor: "pointer",
28
+ icon: { name: "AtCalendarRegularIcon" },
29
+ "use-clear-button": e.value.startDate != null || e.value.endDate != null,
30
+ "force-event-clear-button": !0,
31
+ error: e.error,
32
+ onClickOutside: e.checkUnFocus,
33
+ onClearInput: r[1] || (r[1] = (n) => e.$emit("update:value", e.clearValue())),
34
+ onMouseover: r[2] || (r[2] = (n) => e.isInputHovered = n)
35
+ }, null, 8, ["modelValue", "label", "disabled", "force-focus", "use-clear-button", "error", "onClickOutside"])
36
+ ]),
37
+ default: d(() => [
38
+ e.displayModal ? (t(), i("div", {
39
+ key: 0,
40
+ class: "AT-DATEPICKER_modal",
41
+ onClick: r[13] || (r[13] = (...n) => e.keepFocus && e.keepFocus(...n))
42
+ }, [
43
+ l(g, {
44
+ "date-picker-mode": e.datePickerMode,
45
+ "current-month": e.getMonthName(e.currentMonth),
46
+ "current-year": e.currentYear,
47
+ "current-year-range": e.currentYearRange,
48
+ "selected-year": e.selectedMonthYear,
49
+ style: { marginBottom: "16px" },
50
+ onSimpleArrows: r[3] || (r[3] = (n) => e.updateDatePeriod(n, !0)),
51
+ "onUpdate:datePickerMode": r[4] || (r[4] = (n) => e.datePickerMode = n)
52
+ }, null, 8, ["date-picker-mode", "current-month", "current-year", "current-year-range", "selected-year"]),
53
+ m("div", I, [
54
+ e.datePickerMode === "calendar" ? (t(), u(y, {
55
+ key: 0,
56
+ year: e.currentYear,
57
+ month: e.currentMonth,
58
+ "selected-range": e.useConfirmBox ? e.auxValue : e.value,
59
+ "use-range": e.useRange,
60
+ "week-initials": e.weekInitials,
61
+ onIncrementMonth: r[5] || (r[5] = (n) => e.updateDatePeriod(n, !0)),
62
+ onSelected: r[6] || (r[6] = (n) => e.updateValue(n))
63
+ }, null, 8, ["year", "month", "selected-range", "use-range", "week-initials"])) : a("", !0),
64
+ e.useTimeInput && !e.useRange && e.datePickerMode === "calendar" ? (t(), u(A, {
65
+ key: 1,
66
+ date: e.useConfirmBox ? e.auxValue.startDate : e.value.startDate,
67
+ "period12-hour": e.display12HourFormat,
68
+ disabled: e.disabled || !e.value.startDate,
69
+ "set-focus-element": e.setTimeInputFocus,
70
+ "onUpdate:date": r[7] || (r[7] = (n) => e.updateValue({ startDate: n, endDate: n }))
71
+ }, null, 8, ["date", "period12-hour", "disabled", "set-focus-element"])) : a("", !0),
72
+ e.datePickerMode === "monthSelector" ? (t(), u(s, {
73
+ key: 2,
74
+ elements: e.monthList,
75
+ "current-page-value": `${e.currentYear}-${e.currentMonth}`,
76
+ onElementSelected: r[8] || (r[8] = (n) => {
77
+ e.updateMonthYear(n), e.datePickerMode = "calendar";
78
+ })
79
+ }, null, 8, ["elements", "current-page-value"])) : a("", !0),
80
+ e.datePickerMode === "yearSelector" ? (t(), u(s, {
81
+ key: 3,
82
+ elements: e.yearList,
83
+ "current-page-value": String(e.currentYear),
84
+ "current-page-index": e.currentYearPageIndex,
85
+ onUpdateCurrentPageIndex: r[9] || (r[9] = (n) => e.currentYearPageIndex = n),
86
+ onUpdateCurrentSelector: r[10] || (r[10] = (n) => e.currentYearRange = n),
87
+ onElementSelected: r[11] || (r[11] = (n) => {
88
+ e.updateMonthYear(n), e.datePickerMode = "calendar";
89
+ })
90
+ }, null, 8, ["elements", "current-page-value", "current-page-index"])) : a("", !0)
91
+ ]),
92
+ e.useConfirmBox ? (t(), i("div", b, [
93
+ l(p, {
94
+ variant: "secondary",
95
+ onClick: r[12] || (r[12] = (n) => e.updateFocus(!1))
96
+ }, {
97
+ default: d(() => [
98
+ k(D(e.buttonNames.cancel), 1)
99
+ ]),
100
+ _: 1
101
+ }),
102
+ l(p, {
103
+ disabled: !(e.auxValue.startDate && e.auxValue.endDate),
104
+ onClick: e.confirmInput
105
+ }, {
106
+ default: d(() => [
107
+ k(D(e.buttonNames.save), 1)
108
+ ]),
109
+ _: 1
110
+ }, 8, ["disabled", "onClick"])
111
+ ])) : a("", !0)
112
+ ])) : a("", !0)
113
+ ]),
114
+ _: 1
115
+ }, 8, ["id", "is-open", "position", "onUpdate:isOpen"])
116
+ ])
106
117
  ]);
107
118
  }
108
- const $ = /* @__PURE__ */ v(g, [["render", b], ["__scopeId", "data-v-6eff5439"]]);
119
+ const $ = /* @__PURE__ */ v(f, [["render", V], ["__scopeId", "data-v-e5010289"]]);
109
120
  export {
110
121
  $ as default
111
122
  };
@@ -1,20 +1,22 @@
1
- import { defineComponent as j, ref as l, computed as o, watch as g } from "vue";
2
- import _ from "../Button/Button.vue.js";
3
- import U from "../Input/Input.core.vue.js";
4
- import { monthTranslationObj as h, weekInitialsObject as L, cancelTranslation as E, saveTranslation as z, placeholderTranslation as b, isUsing12HourFormat as G } from "./DatePicker.helper.js";
5
- import J from "./DatePickerCalendar/DatePickerCalendar.vue.js";
6
- import K from "./DatePickerHeader/DatePickerHeader.vue.js";
7
- import Q from "./DatePickerListSelector/DatePickerListSelector.vue.js";
8
- import W from "./DatePickerTime/DatePickerTime.vue.js";
9
- const ue = j({
1
+ import { defineComponent as _, ref as l, computed as o, watch as g } from "vue";
2
+ import U from "../Button/Button.vue.js";
3
+ import E from "../Input/Input.core.vue.js";
4
+ import { monthTranslationObj as b, weekInitialsObject as h, cancelTranslation as z, saveTranslation as G, placeholderTranslation as L, isUsing12HourFormat as J } from "./DatePicker.helper.js";
5
+ import K from "../Dropdown/Dropdown.core.vue.js";
6
+ import Q from "./DatePickerCalendar/DatePickerCalendar.vue.js";
7
+ import W from "./DatePickerHeader/DatePickerHeader.vue.js";
8
+ import X from "./DatePickerListSelector/DatePickerListSelector.vue.js";
9
+ import Z from "./DatePickerTime/DatePickerTime.vue.js";
10
+ const se = _({
10
11
  name: "AtDatePicker",
11
12
  components: {
12
- AtButton: _,
13
- AtCoreInput: U,
14
- AtDatePickerHeader: K,
15
- AtDatePickerCalendar: J,
16
- AtDatePickerTime: W,
17
- AtDatePickerListSelector: Q
13
+ AtButton: U,
14
+ AtCoreInput: E,
15
+ AtDatePickerHeader: W,
16
+ AtDatePickerCalendar: Q,
17
+ AtDatePickerTime: Z,
18
+ AtDatePickerListSelector: X,
19
+ AtDropdown: K
18
20
  },
19
21
  props: {
20
22
  value: {
@@ -78,66 +80,81 @@ const ue = j({
78
80
  type: Boolean,
79
81
  default: !1,
80
82
  validator: (e) => typeof e == "boolean"
83
+ },
84
+ position: {
85
+ type: String,
86
+ default: "left"
87
+ },
88
+ id: {
89
+ type: String,
90
+ default: ""
91
+ },
92
+ error: {
93
+ type: Object,
94
+ default: () => {
95
+ }
81
96
  }
82
97
  },
83
98
  emits: ["update:value", "confirmBoxConfirmed"],
84
- setup(e, T) {
85
- const F = /* @__PURE__ */ new Date(), s = l({ ...e.value }), i = l(e.forceFocus), r = l(/* @__PURE__ */ new Date()), m = l("calendar"), I = o(() => r.value.getMonth() + 1), D = o(() => r.value.getFullYear()), k = l(""), v = l(-1), c = l(D.value), q = l(null), f = l(!1), M = l(!1), y = o(() => h && e.setLanguage in h ? h[e.setLanguage] : []), H = o(
99
+ setup(e, S) {
100
+ const F = /* @__PURE__ */ new Date(), i = l({ ...e.value }), r = l(e.forceFocus), s = l(/* @__PURE__ */ new Date()), m = l("calendar"), I = o(() => s.value.getMonth() + 1), D = o(() => s.value.getFullYear()), k = l(""), v = l(-1), d = l(D.value), q = l(null), c = l(!1), M = l(!1), y = o(() => b && e.setLanguage in b ? b[e.setLanguage] : []), w = o(
86
101
  () => y.value.map((t, a) => ({
87
102
  name: t.slice(0, 3),
88
- value: `${c.value}-${a + 1}`
103
+ value: `${d.value}-${a + 1}`
89
104
  }))
90
- ), P = l(
105
+ ), H = l(
91
106
  Array.from({ length: 101 }, () => F.getFullYear() - 50).map(
92
107
  (t, a) => ({
93
108
  name: String(t + a),
94
109
  value: String(t + a)
95
110
  })
96
111
  )
97
- ), w = o(() => L && e.setLanguage in L ? L[e.setLanguage] : []), R = o(() => ({
98
- cancel: E[e.setLanguage],
99
- save: z[e.setLanguage]
100
- })), A = o(() => {
101
- const t = e.useRange ? b[e.setLanguage].dateStart : b[e.setLanguage].date;
112
+ ), P = o(() => h && e.setLanguage in h ? h[e.setLanguage] : []), A = o(() => ({
113
+ cancel: z[e.setLanguage],
114
+ save: G[e.setLanguage]
115
+ })), R = o(() => {
116
+ const t = e.useRange ? L[e.setLanguage].dateStart : L[e.setLanguage].date;
102
117
  let a = "";
103
- if (M.value || i.value || e.value.startDate) {
104
- const n = e.useConfirmBox ? s.value : e.value;
118
+ if (M.value || r.value || e.value.startDate) {
119
+ const n = e.useConfirmBox ? i.value : e.value;
105
120
  n.startDate ? (a = n.startDate.toLocaleDateString(), e.useTimeInput && !e.useRange && (e.force12HourTime ? a += ` ${n.startDate.toLocaleTimeString("en-us")}` : a += ` ${n.startDate.toLocaleTimeString()}`)) : a = t;
106
- const u = n.endDate ? n.endDate.toLocaleDateString() : b[e.setLanguage].dateEnd;
121
+ const u = n.endDate ? n.endDate.toLocaleDateString() : L[e.setLanguage].dateEnd;
107
122
  return e.useRange ? `${a} - ${u}` : a;
108
123
  }
109
124
  return "";
110
- }), C = o(() => G() || e.force12HourTime), Y = (t, a = !1) => {
111
- const n = new Date(r.value);
112
- m.value === "calendar" ? a ? n.setMonth(n.getMonth() + t) : n.setMonth(t - 1) : m.value === "monthSelector" ? a ? c.value += t : c.value = t : a ? v.value += t : v.value = t, r.value = n;
125
+ }), C = o(() => J() || e.force12HourTime), Y = (t, a = !1) => {
126
+ const n = new Date(s.value);
127
+ m.value === "calendar" ? a ? n.setMonth(n.getMonth() + t) : n.setMonth(t - 1) : m.value === "monthSelector" ? a ? d.value += t : d.value = t : a ? v.value += t : v.value = t, s.value = n;
113
128
  }, x = (t) => {
114
129
  const a = t.split("-").map((n) => Number.parseInt(n));
115
130
  if (a.length > 0) {
116
- const n = new Date(r.value);
117
- n.setFullYear(a[0]), a.length > 1 && n.setMonth(a[1] - 1), r.value = n;
131
+ const n = new Date(s.value);
132
+ n.setFullYear(a[0]), a.length > 1 && n.setMonth(a[1] - 1), s.value = n;
118
133
  }
119
- }, $ = (t) => t >= 1 && t <= y.value.length ? y.value[t - 1] : String(t), d = (t, a = !1) => {
134
+ }, O = (t) => t >= 1 && t <= y.value.length ? y.value[t - 1] : String(t), f = (t, a = !1) => {
120
135
  if (a || !e.useConfirmBox) {
121
136
  const n = e.value;
122
- n.startDate = t.startDate, n.endDate = t.endDate, T.emit("update:value", n), (!e.useTimeInput && n.endDate || a) && (i.value = !1);
137
+ n.startDate = t.startDate, n.endDate = t.endDate, S.emit("update:value", n), (!e.useTimeInput && n.endDate || a) && (r.value = !1);
123
138
  }
124
- s.value = { ...t };
125
- }, S = (t) => {
126
- e.disabled || (i.value = t, t || (s.value = { ...e.value }, e.useRange && !e.value.endDate && B()));
139
+ i.value = { ...t };
140
+ }, T = (t) => {
141
+ e.disabled || (r.value = t, t || (i.value = { ...e.value }, e.useRange && !e.value.endDate && B()));
142
+ }, $ = () => {
143
+ c.value || T(!1);
144
+ }, j = () => {
145
+ c.value = !0, setTimeout(() => c.value = !1, 100);
127
146
  }, N = () => {
128
- f.value || S(!1);
129
- }, O = () => {
130
- f.value = !0, setTimeout(() => f.value = !1, 100);
131
- }, V = () => {
132
- d(s.value, !0), T.emit("confirmBoxConfirmed");
147
+ f(i.value, !0), S.emit("confirmBoxConfirmed");
133
148
  }, B = () => {
134
- d(
149
+ f(
135
150
  {
136
151
  startDate: null,
137
152
  endDate: null
138
153
  },
139
154
  !0
140
155
  );
156
+ }, V = (t) => {
157
+ e.disabled || (r.value = t);
141
158
  };
142
159
  return g(
143
160
  () => e.useRange,
@@ -148,52 +165,53 @@ const ue = j({
148
165
  startDate: new Date(e.value.startDate),
149
166
  endDate: new Date(e.value.endDate)
150
167
  };
151
- (a = u.startDate) == null || a.setHours(0), (n = u.startDate) == null || n.setMinutes(0), u.endDate = t ? null : u.startDate, s.value = { ...u }, d(u, !0);
168
+ (a = u.startDate) == null || a.setHours(0), (n = u.startDate) == null || n.setMinutes(0), u.endDate = t ? null : u.startDate, i.value = { ...u }, f(u, !0);
152
169
  }
153
170
  }
154
171
  ), g(
155
172
  () => e.disabled,
156
173
  () => {
157
- i.value = !1;
174
+ r.value = !1;
158
175
  }
159
176
  ), g(
160
177
  () => e.forceFocus,
161
178
  (t) => {
162
- i.value = t;
179
+ r.value = t;
163
180
  }
164
181
  ), g(D, (t) => {
165
- c.value = t;
182
+ d.value = t;
166
183
  }), {
167
- displayModal: i,
168
- auxValue: s,
184
+ displayModal: r,
185
+ auxValue: i,
169
186
  datePickerMode: m,
170
- confirmInput: V,
187
+ confirmInput: N,
171
188
  currentMonth: I,
172
189
  currentYear: D,
173
190
  currentYearRange: k,
174
191
  currentYearPageIndex: v,
175
- selectedMonthYear: c,
176
- monthList: H,
177
- yearList: P,
178
- clickedOnModal: f,
192
+ selectedMonthYear: d,
193
+ monthList: w,
194
+ yearList: H,
195
+ clickedOnModal: c,
179
196
  display12HourFormat: C,
180
197
  updateDatePeriod: Y,
181
198
  updateMonthYear: x,
182
- displayValue: A,
183
- currentMenuDate: r,
184
- getMonthName: $,
185
- weekInitials: w,
186
- updateValue: d,
187
- updateFocus: S,
188
- buttonNames: R,
199
+ displayValue: R,
200
+ currentMenuDate: s,
201
+ getMonthName: O,
202
+ weekInitials: P,
203
+ updateValue: f,
204
+ updateFocus: T,
205
+ buttonNames: A,
189
206
  coreInput: q,
190
- checkUnFocus: N,
191
- keepFocus: O,
207
+ checkUnFocus: $,
208
+ keepFocus: j,
192
209
  clearValue: B,
210
+ onOpenedModal: V,
193
211
  isInputHovered: M
194
212
  };
195
213
  }
196
214
  });
197
215
  export {
198
- ue as default
216
+ se as default
199
217
  };
@@ -1,35 +1,41 @@
1
- import d from "./Dropdown.core.vue2.js";
2
- import { openBlock as o, createElementBlock as r, createElementVNode as i, normalizeClass as l, renderSlot as s, createCommentVNode as n, createBlock as g, Teleport as m, normalizeStyle as p } from "vue";
1
+ import a from "./Dropdown.core.vue2.js";
2
+ import { resolveComponent as g, openBlock as o, createElementBlock as r, createElementVNode as l, normalizeClass as n, renderSlot as i, createCommentVNode as p, createBlock as m, Teleport as c, createVNode as f, withCtx as u, normalizeStyle as C } from "vue";
3
3
  import "./Dropdown.core.vue3.js";
4
- import c from "../_virtual/_plugin-vue_export-helper.js";
5
- const f = { class: "container-dialog" }, u = ["id"];
6
- function $(e, t, k, v, y, C) {
7
- return o(), r("section", f, [
8
- i("div", {
9
- class: l(e.getDialogClass)
4
+ import $ from "../_virtual/_plugin-vue_export-helper.js";
5
+ const v = { class: "container-dialog" }, D = ["id"];
6
+ function _(e, t, k, y, w, E) {
7
+ const s = g("DropdownContent");
8
+ return o(), r("section", v, [
9
+ l("div", {
10
+ class: n(e.getDialogClass)
10
11
  }, [
11
12
  e.$slots.trigger ? (o(), r("section", {
12
13
  key: 0,
13
14
  id: "trigger",
14
15
  ref: "triggerElem",
15
- onClick: t[0] || (t[0] = (...a) => e.toggleDialog && e.toggleDialog(...a))
16
+ onClick: t[0] || (t[0] = (...d) => e.toggleDialog && e.toggleDialog(...d))
16
17
  }, [
17
- s(e.$slots, "trigger", {}, void 0, !0)
18
- ], 512)) : n("", !0),
19
- (o(), g(m, { to: "body" }, [
20
- i("div", {
21
- id: e.id,
22
- ref: "dialogElem",
23
- class: l([{ isOpen: e.dialogIsOpen }, "dialog-content"]),
24
- style: p(e.dialogStyle)
25
- }, [
26
- s(e.$slots, "default", {}, void 0, !0)
27
- ], 14, u)
18
+ i(e.$slots, "trigger", {}, void 0, !0)
19
+ ], 512)) : p("", !0),
20
+ (o(), m(c, { to: "body" }, [
21
+ f(s, null, {
22
+ default: u(() => [
23
+ l("div", {
24
+ id: e.id,
25
+ ref: "dialogElem",
26
+ class: n([{ isOpen: e.dialogIsOpen }, "dialog-content"]),
27
+ style: C(e.dialogStyle)
28
+ }, [
29
+ i(e.$slots, "default", {}, void 0, !0)
30
+ ], 14, D)
31
+ ]),
32
+ _: 3
33
+ })
28
34
  ]))
29
35
  ], 2)
30
36
  ]);
31
37
  }
32
- const _ = /* @__PURE__ */ c(d, [["render", $], ["__scopeId", "data-v-635b3523"]]);
38
+ const h = /* @__PURE__ */ $(a, [["render", _], ["__scopeId", "data-v-0a851f51"]]);
33
39
  export {
34
- _ as default
40
+ h as default
35
41
  };