@ironsource/shared-ui 2.1.6-test.3 → 2.1.6-test.4
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/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_39c47ad1_lang.css +1 -0
- package/AppHeader.vue_vue_type_style_index_0_scoped_538ccdc6_lang.css +1 -0
- package/Autocomplete.vue_vue_type_style_index_0_scoped_a7bfd237_lang.css +1 -0
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_acd3440c_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_a8fdae89_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_6df3b70f_lang.css +1 -0
- package/DatePicker.vue_vue_type_style_index_0_scoped_67b44cbe_lang.css +1 -0
- package/DatePickerMonth.vue_vue_type_style_index_0_scoped_929d3028_lang.css +1 -0
- package/DateRange.vue_vue_type_style_index_0_scoped_70e316e9_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_ad524750_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +1 -0
- package/Dropdown.vue_vue_type_style_index_0_scoped_aaa8c4bb_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_0363db63_lang.css +1 -0
- package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +1 -0
- package/{FormCard.vue_vue_type_style_index_0_scoped_ef8b4e81_lang.css → FormCard.vue_vue_type_style_index_0_scoped_52ade67c_lang.css} +1 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_6a7b3795_lang.css +1 -0
- package/MultiBar.vue_vue_type_style_index_0_scoped_71617643_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_e0c24b6a_lang.css +1 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_8199b662_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +1 -0
- package/components/appHeader/AppHeader.vue.d.ts +6 -2
- package/components/appHeader/AppHeader.vue.js +2 -2
- package/components/appHeader/AppHeader.vue2.js +30 -28
- package/components/appHeader/index.d.ts +6 -2
- package/components/autocomplete/Autocomplete.vue.d.ts +5 -0
- package/components/autocomplete/Autocomplete.vue.js +4 -4
- package/components/autocomplete/Autocomplete.vue2.js +43 -37
- package/components/autocomplete/index.d.ts +20 -1
- package/components/datePicker/common/DatePicker.common.d.ts +11 -0
- package/components/datePicker/common/DatePicker.common.js +52 -0
- package/components/datePicker/common/DatePickerMonth.common.d.ts +85 -0
- package/components/datePicker/common/DatePickerMonth.common.js +66 -0
- package/components/datePicker/{DatePicker.vue.d.ts → v3/DatePicker.vue.d.ts} +1 -1
- package/components/datePicker/v3/DatePicker.vue.js +7 -0
- package/components/datePicker/v3/DatePicker.vue2.js +69 -0
- package/components/datePicker/v3/DatePickerMonth.vue.js +7 -0
- package/components/datePicker/v3/DatePickerMonth.vue2.js +40 -0
- package/components/datePicker/{index.d.ts → v3/index.d.ts} +1 -1
- package/components/datePicker/v4/DatePickerMonthV4.vue.d.ts +53 -0
- package/components/datePicker/v4/DatePickerV4.vue.d.ts +67 -0
- package/components/datePicker/v4/index.d.ts +184 -0
- package/components/dateRange/common/CalendarMonth.common.d.ts +17 -0
- package/components/dateRange/common/CalendarMonth.common.js +131 -0
- package/components/dateRange/common/DateRange.common.d.ts +47 -0
- package/components/dateRange/common/DateRange.common.js +265 -0
- package/components/dateRange/common/DateRangePicker.common.d.ts +3 -0
- package/components/dateRange/{CalendarMonth.vue.d.ts → v3/CalendarMonth.vue.d.ts} +1 -1
- package/components/dateRange/v3/CalendarMonth.vue.js +7 -0
- package/components/dateRange/v3/CalendarMonth.vue2.js +147 -0
- package/components/dateRange/{DateRange.vue.d.ts → v3/DateRange.vue.d.ts} +9 -9
- package/components/dateRange/v3/DateRange.vue.js +7 -0
- package/components/dateRange/v3/DateRange.vue2.js +226 -0
- package/components/dateRange/{DateRangePicker.vue.d.ts → v3/DateRangePicker.vue.d.ts} +9 -9
- package/components/dateRange/{index.d.ts → v3/index.d.ts} +21 -21
- package/components/dateRange/v4/CalendarMonthV4.vue.d.ts +75 -0
- package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +115 -0
- package/components/dateRange/v4/DateRangeV4.vue.d.ts +127 -0
- package/components/dateRange/v4/index.d.ts +408 -0
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +67 -62
- package/components/dropdown/common/Dropdown.common.js +21 -21
- package/components/dropdown/v3/Dropdown.vue.d.ts +4 -0
- package/components/dropdown/v3/Dropdown.vue.js +4 -4
- package/components/dropdown/v3/Dropdown.vue2.js +32 -32
- package/components/dropdown/v3/index.d.ts +13 -1
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +2 -0
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +16 -16
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/DropdownV4.vue.d.ts +16 -0
- package/components/dropdown/v4/DropdownV4.vue.js +2 -2
- package/components/dropdown/v4/DropdownV4.vue2.js +90 -85
- package/components/dropdown/v4/OptionV4.vue.d.ts +11 -0
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +61 -44
- package/components/dropdown/v4/index.d.ts +105 -4
- package/components/filtersPanel/v3/Filter.d.ts +1 -1
- package/components/forms/FormCard.vue.js +2 -2
- package/components/forms/FormCard.vue2.js +9 -9
- package/components/inlineCopy/InlineCopy.vue.d.ts +6 -2
- package/components/inlineCopy/InlineCopy.vue.js +3 -3
- package/components/inlineCopy/InlineCopy.vue2.js +23 -22
- package/components/inlineCopy/index.d.ts +6 -2
- package/components/input/v4/TextField.vue.d.ts +5 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +24 -21
- package/components/input/v4/index.d.ts +20 -1
- package/components/multibar/MultiBar.vue.js +3 -3
- package/components/multibar/MultiBar.vue2.js +21 -21
- package/components/shared/FieldLabel.vue.js +3 -3
- package/components/shared/FieldLabel.vue2.js +9 -9
- package/components/table/v4/DataGrid.vue.d.ts +4 -0
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +147 -147
- package/components/table/v4/index.d.ts +14 -2
- package/components/textArea/v4/TextAreaV4.vue.js +3 -3
- package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
- package/components/tooltip/v4/TooltipV4.vue.d.ts +6 -2
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +21 -19
- package/components/tooltip/v4/index.d.ts +17 -5
- package/index.d.ts +338 -34
- package/index.js +4 -4
- package/package.json +3 -3
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_0267d003_lang.css +0 -1
- package/AppHeader.vue_vue_type_style_index_0_scoped_c148fc7a_lang.css +0 -1
- package/Autocomplete.vue_vue_type_style_index_0_scoped_e43dd7e6_lang.css +0 -1
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_b2206adb_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_889042cf_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_c96fba2c_lang.css +0 -1
- package/DatePicker.vue_vue_type_style_index_0_scoped_e108ef3b_lang.css +0 -1
- package/DatePickerMonth.vue_vue_type_style_index_0_scoped_b171cdab_lang.css +0 -1
- package/DateRange.vue_vue_type_style_index_0_scoped_eb5d155e_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c9783327_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_c3004ba3_lang.css +0 -1
- package/Dropdown.vue_vue_type_style_index_0_scoped_d4f8e790_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_0968078f_lang.css +0 -1
- package/FieldLabel.vue_vue_type_style_index_0_scoped_72ab1f25_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_ff9f4a0f_lang.css +0 -1
- package/MultiBar.vue_vue_type_style_index_0_scoped_b473b35e_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_b8375219_lang.css +0 -1
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_0336a92f_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_e093021d_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_25809092_lang.css +0 -1
- package/components/datePicker/DatePicker.vue.js +0 -7
- package/components/datePicker/DatePicker.vue2.js +0 -97
- package/components/datePicker/DatePickerMonth.vue.js +0 -7
- package/components/datePicker/DatePickerMonth.vue2.js +0 -85
- package/components/dateRange/CalendarMonth.vue.js +0 -7
- package/components/dateRange/CalendarMonth.vue2.js +0 -244
- package/components/dateRange/DateRange.vue.js +0 -7
- package/components/dateRange/DateRange.vue2.js +0 -417
- /package/components/datePicker/{DatePickerMonth.vue.d.ts → v3/DatePickerMonth.vue.d.ts} +0 -0
- /package/components/datePicker/{index.js → v3/index.js} +0 -0
- /package/components/dateRange/{DateServices.d.ts → common/DateServices.common.d.ts} +0 -0
- /package/components/dateRange/{DateServices.js → common/DateServices.common.js} +0 -0
- /package/components/dateRange/{consts.d.ts → common/consts.common.d.ts} +0 -0
- /package/components/dateRange/{consts.js → common/consts.common.js} +0 -0
- /package/components/dateRange/{index.js → v3/index.js} +0 -0
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import "../../../DateRange.vue_vue_type_style_index_0_scoped_70e316e9_lang.css"; import { defineComponent as J, openBlock as s, createElementBlock as n, unref as e, normalizeClass as o, createElementVNode as d, renderSlot as P, toDisplayString as u, setBlockTracking as p, withDirectives as h, Fragment as v, renderList as k, createVNode as c, withCtx as g, createTextVNode as y, createCommentVNode as b, vShow as C, normalizeStyle as Q } from "vue";
|
|
2
|
+
import X from "./CalendarMonth.vue.js";
|
|
3
|
+
import { typeToName as Z, messagePerType as _ } from "../common/consts.common.js";
|
|
4
|
+
import x from "../../button/v3/Button.vue.js";
|
|
5
|
+
import "../../button/v3/IconButton.vue.js";
|
|
6
|
+
import "../../button/v3/ScrollButton.vue.js";
|
|
7
|
+
import "../../typography/Heading.vue.js";
|
|
8
|
+
import R from "../../typography/Text.vue.js";
|
|
9
|
+
import { DateRangeTestIdModifiers as l } from "../../../testids/index.js";
|
|
10
|
+
import { dateRangeCommon as ee } from "../common/DateRange.common.js";
|
|
11
|
+
const te = ["id", "data-testid"], ae = ["data-testid"], de = ["id", "data-testid"], se = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "type-picker"
|
|
14
|
+
}, ne = ["onClick"], ie = ["data-testid"], le = ["id"], oe = ["id"], re = ["onClick"], ue = { class: "dropdown-rightTriangle" }, ce = ["data-testid"], me = { class: "date-picker-calendar left-box" }, pe = { class: "buttons-cover" }, ge = { class: "range" }, De = /* @__PURE__ */ J({
|
|
15
|
+
__name: "DateRange",
|
|
16
|
+
props: {
|
|
17
|
+
range: null,
|
|
18
|
+
types: { default: () => ["date"] },
|
|
19
|
+
includeToday: { type: Boolean, default: !0 },
|
|
20
|
+
allowedDays: { default: null },
|
|
21
|
+
maxDaysInRange: { default: null },
|
|
22
|
+
datePresetList: { default: "date" },
|
|
23
|
+
regex: { default: () => /^(1[0-2]|0?[1-9])\/[\d]{1,2}\/[\d]{4}$/ },
|
|
24
|
+
dateFormat: { default: "mm/dd/yyyy" },
|
|
25
|
+
uniqueId: { default: Date.now() },
|
|
26
|
+
disabled: { type: Boolean, default: !1 },
|
|
27
|
+
initialType: { default: null },
|
|
28
|
+
openOnTop: { type: Boolean, default: !1 },
|
|
29
|
+
showPresets: { type: Boolean, default: !0 },
|
|
30
|
+
maxDate: { default: null },
|
|
31
|
+
testId: { default: "" }
|
|
32
|
+
},
|
|
33
|
+
emits: [
|
|
34
|
+
"rangeTypeChanged",
|
|
35
|
+
"currentDateChanged",
|
|
36
|
+
"rangeChanged",
|
|
37
|
+
"dateRangePresetNameChanged",
|
|
38
|
+
"opened",
|
|
39
|
+
"dismissed"
|
|
40
|
+
],
|
|
41
|
+
setup(t, { emit: E }) {
|
|
42
|
+
const A = t, {
|
|
43
|
+
datePicker: B,
|
|
44
|
+
datePickerId: S,
|
|
45
|
+
getMaxAllowedDate: q,
|
|
46
|
+
selectedPreset: $,
|
|
47
|
+
displayError: M,
|
|
48
|
+
rangeType: f,
|
|
49
|
+
selectedRange: O,
|
|
50
|
+
placement: z,
|
|
51
|
+
currentDate: I,
|
|
52
|
+
error: L,
|
|
53
|
+
presets: V,
|
|
54
|
+
isOpen: w,
|
|
55
|
+
popup: G,
|
|
56
|
+
currentMonths: m,
|
|
57
|
+
displayedMonthsKeys: T,
|
|
58
|
+
changeType: F,
|
|
59
|
+
presetChanged: K,
|
|
60
|
+
apply: U,
|
|
61
|
+
getNavigation: W,
|
|
62
|
+
navigationCallback: Y,
|
|
63
|
+
selectionChanged: j,
|
|
64
|
+
toggle: D,
|
|
65
|
+
isCompact: H
|
|
66
|
+
} = ee(A, E);
|
|
67
|
+
return (N, i) => (s(), n("div", {
|
|
68
|
+
id: e(S),
|
|
69
|
+
ref_key: "datePicker",
|
|
70
|
+
ref: B,
|
|
71
|
+
class: o(["relative-wrap", { "date-range-disabled": t.disabled }]),
|
|
72
|
+
"data-testid": `${t.testId}-${e(l).WRAPPER}`
|
|
73
|
+
}, [
|
|
74
|
+
d("div", {
|
|
75
|
+
class: "date-range-field",
|
|
76
|
+
"data-testid": `${t.testId}-${e(l).TRIGGER}`,
|
|
77
|
+
onClick: i[1] || (i[1] = (a) => e(D)())
|
|
78
|
+
}, [
|
|
79
|
+
P(N.$slots, "field", {
|
|
80
|
+
currentDate: e(I),
|
|
81
|
+
isOpen: e(w)
|
|
82
|
+
}, () => [
|
|
83
|
+
d("span", null, u(e(I)), 1),
|
|
84
|
+
i[0] || (p(-1), i[0] = d("div", { class: "small-triangle" }), p(1), i[0])
|
|
85
|
+
], !0)
|
|
86
|
+
], 8, ae),
|
|
87
|
+
h(d("div", {
|
|
88
|
+
id: "datepickerPopup" + t.uniqueId,
|
|
89
|
+
ref_key: "popup",
|
|
90
|
+
ref: G,
|
|
91
|
+
class: o(["pop-up", [
|
|
92
|
+
e(z),
|
|
93
|
+
t.openOnTop ? "open-on-top" : "",
|
|
94
|
+
t.showPresets ? "" : "hide-presets"
|
|
95
|
+
]]),
|
|
96
|
+
"data-testid": `${t.testId}-${e(l).CONTAINER}`
|
|
97
|
+
}, [
|
|
98
|
+
t.types.length > 1 ? (s(), n("div", se, [
|
|
99
|
+
(s(!0), n(v, null, k(t.types, (a) => (s(), n("span", {
|
|
100
|
+
key: a,
|
|
101
|
+
class: o(["range-type", { "selected-range-type": e(f) === a }]),
|
|
102
|
+
onClick: (r) => e(F)(a, !0)
|
|
103
|
+
}, [
|
|
104
|
+
c(e(R), { size: "sm" }, {
|
|
105
|
+
default: g(() => [
|
|
106
|
+
y(u(e(Z)[a]), 1)
|
|
107
|
+
]),
|
|
108
|
+
_: 2
|
|
109
|
+
}, 1024)
|
|
110
|
+
], 10, ne))), 128))
|
|
111
|
+
])) : b("", !0),
|
|
112
|
+
d("div", {
|
|
113
|
+
class: o(["flex", { "pop-up-content": t.types.length > 1 }])
|
|
114
|
+
}, [
|
|
115
|
+
t.showPresets ? (s(), n("div", {
|
|
116
|
+
key: 0,
|
|
117
|
+
class: "date-picker-menu",
|
|
118
|
+
"data-testid": `${t.testId}-${e(l).MENU}`
|
|
119
|
+
}, [
|
|
120
|
+
d("div", {
|
|
121
|
+
id: "presets" + t.uniqueId,
|
|
122
|
+
class: "preset-dropdown"
|
|
123
|
+
}, [
|
|
124
|
+
d("ul", {
|
|
125
|
+
id: "customDropDownList" + t.uniqueId
|
|
126
|
+
}, [
|
|
127
|
+
(s(!0), n(v, null, k(e(V), (a) => (s(), n("li", {
|
|
128
|
+
key: a.id,
|
|
129
|
+
class: o({
|
|
130
|
+
"selected-preset-container": e($) === a.id
|
|
131
|
+
})
|
|
132
|
+
}, [
|
|
133
|
+
d("div", {
|
|
134
|
+
class: o([{ "selected-preset": e($) === a.id }, "preset-element"]),
|
|
135
|
+
onClick: (r) => e(K)(a)
|
|
136
|
+
}, [
|
|
137
|
+
c(e(R), { size: "sm" }, {
|
|
138
|
+
default: g(() => [
|
|
139
|
+
y(u(a.name), 1)
|
|
140
|
+
]),
|
|
141
|
+
_: 2
|
|
142
|
+
}, 1024)
|
|
143
|
+
], 10, re),
|
|
144
|
+
h(d("div", ue, null, 512), [
|
|
145
|
+
[C, a.id === "custom"]
|
|
146
|
+
])
|
|
147
|
+
], 2))), 128))
|
|
148
|
+
], 8, oe)
|
|
149
|
+
], 8, le),
|
|
150
|
+
d("div", {
|
|
151
|
+
class: "type-message",
|
|
152
|
+
"data-testid": `${t.testId}-${e(l).MESSAGE}`
|
|
153
|
+
}, u(e(_)[e(f)]), 9, ce)
|
|
154
|
+
], 8, ie)) : b("", !0),
|
|
155
|
+
d("div", {
|
|
156
|
+
class: "calendar-wrap",
|
|
157
|
+
style: Q({ height: e(H) ? "336px" : "372px" })
|
|
158
|
+
}, [
|
|
159
|
+
d("div", me, [
|
|
160
|
+
(s(!0), n(v, null, k(e(T), (a, r) => (s(), n("div", { key: a }, [
|
|
161
|
+
c(X, {
|
|
162
|
+
id: t.uniqueId,
|
|
163
|
+
navigation: e(W)(
|
|
164
|
+
r === 0,
|
|
165
|
+
r === e(T).length - 1
|
|
166
|
+
),
|
|
167
|
+
year: e(m)[a].parsedMonth.year,
|
|
168
|
+
days: e(m)[a].parsedMonth.days,
|
|
169
|
+
weeks: e(m)[a].parsedMonth.weeks,
|
|
170
|
+
month: e(m)[a].parsedMonth.month,
|
|
171
|
+
range: e(O),
|
|
172
|
+
type: e(f),
|
|
173
|
+
"allowed-days": t.allowedDays,
|
|
174
|
+
"max-allowed-date": e(q),
|
|
175
|
+
"test-id": `${t.testId}-${r}`,
|
|
176
|
+
onSelectionChanged: e(j),
|
|
177
|
+
onNavigation: e(Y)
|
|
178
|
+
}, null, 8, ["id", "navigation", "year", "days", "weeks", "month", "range", "type", "allowed-days", "max-allowed-date", "test-id", "onSelectionChanged", "onNavigation"])
|
|
179
|
+
]))), 128)),
|
|
180
|
+
d("div", pe, [
|
|
181
|
+
d("div", ge, [
|
|
182
|
+
P(N.$slots, "footer", {}, void 0, !0)
|
|
183
|
+
]),
|
|
184
|
+
h(d("div", { class: "error" }, u(e(L)), 513), [
|
|
185
|
+
[C, e(M)]
|
|
186
|
+
]),
|
|
187
|
+
i[2] || (p(-1), i[2] = d("div", { class: "buttons" }, [
|
|
188
|
+
c(e(x), {
|
|
189
|
+
id: "button-ok" + t.uniqueId,
|
|
190
|
+
size: "sm",
|
|
191
|
+
class: "primary button small",
|
|
192
|
+
"data-testid": `${t.testId}-${e(l).ACTION_APPLY}`,
|
|
193
|
+
onClick: (a) => e(U)()
|
|
194
|
+
}, {
|
|
195
|
+
default: g(() => [
|
|
196
|
+
y(" Apply ")
|
|
197
|
+
]),
|
|
198
|
+
_: 1
|
|
199
|
+
}, 8, ["id", "data-testid", "onClick"]),
|
|
200
|
+
c(e(x), {
|
|
201
|
+
id: "button-cancel" + t.uniqueId,
|
|
202
|
+
size: "sm",
|
|
203
|
+
theme: "third",
|
|
204
|
+
class: "button small border third transparent",
|
|
205
|
+
"data-testid": `${t.testId}-${e(l).ACTION_CANCEL}`,
|
|
206
|
+
onClick: (a) => e(D)()
|
|
207
|
+
}, {
|
|
208
|
+
default: g(() => [
|
|
209
|
+
y(" Cancel ")
|
|
210
|
+
]),
|
|
211
|
+
_: 1
|
|
212
|
+
}, 8, ["id", "data-testid", "onClick"])
|
|
213
|
+
]), p(1), i[2])
|
|
214
|
+
])
|
|
215
|
+
])
|
|
216
|
+
], 4)
|
|
217
|
+
], 2)
|
|
218
|
+
], 10, de), [
|
|
219
|
+
[C, e(w)]
|
|
220
|
+
])
|
|
221
|
+
], 10, te));
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
export {
|
|
225
|
+
De as default
|
|
226
|
+
};
|
|
@@ -3,17 +3,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
3
3
|
from: Date;
|
|
4
4
|
to: Date;
|
|
5
5
|
};
|
|
6
|
-
types?: ("
|
|
6
|
+
types?: ("week" | "month" | "date")[];
|
|
7
7
|
isTitleStyle?: boolean;
|
|
8
8
|
includeToday?: boolean;
|
|
9
9
|
allowedDays?: number;
|
|
10
10
|
maxDaysInRange?: number;
|
|
11
|
-
datePresetList?: "
|
|
11
|
+
datePresetList?: "week" | "month" | "date" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
12
12
|
regex?: RegExp;
|
|
13
13
|
dateFormat?: string;
|
|
14
14
|
uniqueId?: string | number;
|
|
15
15
|
disabled?: boolean;
|
|
16
|
-
initialType: "
|
|
16
|
+
initialType: "week" | "month" | "date";
|
|
17
17
|
openOnTop: boolean;
|
|
18
18
|
testId?: string;
|
|
19
19
|
}>, {
|
|
@@ -39,17 +39,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
39
39
|
from: Date;
|
|
40
40
|
to: Date;
|
|
41
41
|
};
|
|
42
|
-
types?: ("
|
|
42
|
+
types?: ("week" | "month" | "date")[];
|
|
43
43
|
isTitleStyle?: boolean;
|
|
44
44
|
includeToday?: boolean;
|
|
45
45
|
allowedDays?: number;
|
|
46
46
|
maxDaysInRange?: number;
|
|
47
|
-
datePresetList?: "
|
|
47
|
+
datePresetList?: "week" | "month" | "date" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
48
48
|
regex?: RegExp;
|
|
49
49
|
dateFormat?: string;
|
|
50
50
|
uniqueId?: string | number;
|
|
51
51
|
disabled?: boolean;
|
|
52
|
-
initialType: "
|
|
52
|
+
initialType: "week" | "month" | "date";
|
|
53
53
|
openOnTop: boolean;
|
|
54
54
|
testId?: string;
|
|
55
55
|
}>, {
|
|
@@ -77,11 +77,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
77
77
|
uniqueId: string | number;
|
|
78
78
|
includeToday: boolean;
|
|
79
79
|
dateFormat: string;
|
|
80
|
-
types: ("
|
|
80
|
+
types: ("week" | "month" | "date")[];
|
|
81
81
|
maxDaysInRange: number;
|
|
82
|
-
datePresetList: "
|
|
82
|
+
datePresetList: "week" | "month" | "date" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
83
83
|
regex: RegExp;
|
|
84
|
-
initialType: "
|
|
84
|
+
initialType: "week" | "month" | "date";
|
|
85
85
|
openOnTop: boolean;
|
|
86
86
|
isTitleStyle: boolean;
|
|
87
87
|
}>, {
|
|
@@ -9,11 +9,11 @@ declare const DateRangeTypes: () => ({
|
|
|
9
9
|
uniqueId: string | number;
|
|
10
10
|
includeToday: boolean;
|
|
11
11
|
dateFormat: string;
|
|
12
|
-
types: ("
|
|
12
|
+
types: ("week" | "month" | "date")[];
|
|
13
13
|
maxDaysInRange: number;
|
|
14
|
-
datePresetList: "
|
|
14
|
+
datePresetList: "week" | "month" | "date" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
15
15
|
regex: RegExp;
|
|
16
|
-
initialType: "
|
|
16
|
+
initialType: "week" | "month" | "date";
|
|
17
17
|
openOnTop: boolean;
|
|
18
18
|
showPresets: boolean;
|
|
19
19
|
maxDate: Date;
|
|
@@ -50,7 +50,7 @@ declare const DateRangeTypes: () => ({
|
|
|
50
50
|
default: string;
|
|
51
51
|
};
|
|
52
52
|
types: {
|
|
53
|
-
type: import("vue").PropType<("
|
|
53
|
+
type: import("vue").PropType<("week" | "month" | "date")[]>;
|
|
54
54
|
default: () => string[];
|
|
55
55
|
};
|
|
56
56
|
maxDaysInRange: {
|
|
@@ -58,7 +58,7 @@ declare const DateRangeTypes: () => ({
|
|
|
58
58
|
default: any;
|
|
59
59
|
};
|
|
60
60
|
datePresetList: {
|
|
61
|
-
type: import("vue").PropType<"
|
|
61
|
+
type: import("vue").PropType<"week" | "month" | "date" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth">;
|
|
62
62
|
default: string;
|
|
63
63
|
};
|
|
64
64
|
regex: {
|
|
@@ -66,7 +66,7 @@ declare const DateRangeTypes: () => ({
|
|
|
66
66
|
default: () => RegExp;
|
|
67
67
|
};
|
|
68
68
|
initialType: {
|
|
69
|
-
type: import("vue").PropType<"
|
|
69
|
+
type: import("vue").PropType<"week" | "month" | "date">;
|
|
70
70
|
required: true;
|
|
71
71
|
default: any;
|
|
72
72
|
};
|
|
@@ -138,7 +138,7 @@ declare const DateRangeTypes: () => ({
|
|
|
138
138
|
default: string;
|
|
139
139
|
};
|
|
140
140
|
types: {
|
|
141
|
-
type: import("vue").PropType<("
|
|
141
|
+
type: import("vue").PropType<("week" | "month" | "date")[]>;
|
|
142
142
|
default: () => string[];
|
|
143
143
|
};
|
|
144
144
|
maxDaysInRange: {
|
|
@@ -146,7 +146,7 @@ declare const DateRangeTypes: () => ({
|
|
|
146
146
|
default: any;
|
|
147
147
|
};
|
|
148
148
|
datePresetList: {
|
|
149
|
-
type: import("vue").PropType<"
|
|
149
|
+
type: import("vue").PropType<"week" | "month" | "date" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth">;
|
|
150
150
|
default: string;
|
|
151
151
|
};
|
|
152
152
|
regex: {
|
|
@@ -154,7 +154,7 @@ declare const DateRangeTypes: () => ({
|
|
|
154
154
|
default: () => RegExp;
|
|
155
155
|
};
|
|
156
156
|
initialType: {
|
|
157
|
-
type: import("vue").PropType<"
|
|
157
|
+
type: import("vue").PropType<"week" | "month" | "date">;
|
|
158
158
|
required: true;
|
|
159
159
|
default: any;
|
|
160
160
|
};
|
|
@@ -193,11 +193,11 @@ declare const DateRangeTypes: () => ({
|
|
|
193
193
|
uniqueId: string | number;
|
|
194
194
|
includeToday: boolean;
|
|
195
195
|
dateFormat: string;
|
|
196
|
-
types: ("
|
|
196
|
+
types: ("week" | "month" | "date")[];
|
|
197
197
|
maxDaysInRange: number;
|
|
198
|
-
datePresetList: "
|
|
198
|
+
datePresetList: "week" | "month" | "date" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
199
199
|
regex: RegExp;
|
|
200
|
-
initialType: "
|
|
200
|
+
initialType: "week" | "month" | "date";
|
|
201
201
|
openOnTop: boolean;
|
|
202
202
|
showPresets: boolean;
|
|
203
203
|
maxDate: Date;
|
|
@@ -254,7 +254,7 @@ declare const DateRangeTypes: () => ({
|
|
|
254
254
|
default: string;
|
|
255
255
|
};
|
|
256
256
|
types: {
|
|
257
|
-
type: import("vue").PropType<("
|
|
257
|
+
type: import("vue").PropType<("week" | "month" | "date")[]>;
|
|
258
258
|
default: () => string[];
|
|
259
259
|
};
|
|
260
260
|
maxDaysInRange: {
|
|
@@ -262,7 +262,7 @@ declare const DateRangeTypes: () => ({
|
|
|
262
262
|
default: any;
|
|
263
263
|
};
|
|
264
264
|
datePresetList: {
|
|
265
|
-
type: import("vue").PropType<"
|
|
265
|
+
type: import("vue").PropType<"week" | "month" | "date" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth">;
|
|
266
266
|
default: string;
|
|
267
267
|
};
|
|
268
268
|
regex: {
|
|
@@ -270,7 +270,7 @@ declare const DateRangeTypes: () => ({
|
|
|
270
270
|
default: () => RegExp;
|
|
271
271
|
};
|
|
272
272
|
initialType: {
|
|
273
|
-
type: import("vue").PropType<"
|
|
273
|
+
type: import("vue").PropType<"week" | "month" | "date">;
|
|
274
274
|
required: true;
|
|
275
275
|
default: any;
|
|
276
276
|
};
|
|
@@ -332,7 +332,7 @@ declare const DateRangeTypes: () => ({
|
|
|
332
332
|
default: string;
|
|
333
333
|
};
|
|
334
334
|
types: {
|
|
335
|
-
type: import("vue").PropType<("
|
|
335
|
+
type: import("vue").PropType<("week" | "month" | "date")[]>;
|
|
336
336
|
default: () => string[];
|
|
337
337
|
};
|
|
338
338
|
maxDaysInRange: {
|
|
@@ -340,7 +340,7 @@ declare const DateRangeTypes: () => ({
|
|
|
340
340
|
default: any;
|
|
341
341
|
};
|
|
342
342
|
datePresetList: {
|
|
343
|
-
type: import("vue").PropType<"
|
|
343
|
+
type: import("vue").PropType<"week" | "month" | "date" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth">;
|
|
344
344
|
default: string;
|
|
345
345
|
};
|
|
346
346
|
regex: {
|
|
@@ -348,7 +348,7 @@ declare const DateRangeTypes: () => ({
|
|
|
348
348
|
default: () => RegExp;
|
|
349
349
|
};
|
|
350
350
|
initialType: {
|
|
351
|
-
type: import("vue").PropType<"
|
|
351
|
+
type: import("vue").PropType<"week" | "month" | "date">;
|
|
352
352
|
required: true;
|
|
353
353
|
default: any;
|
|
354
354
|
};
|
|
@@ -387,11 +387,11 @@ declare const DateRangeTypes: () => ({
|
|
|
387
387
|
uniqueId: string | number;
|
|
388
388
|
includeToday: boolean;
|
|
389
389
|
dateFormat: string;
|
|
390
|
-
types: ("
|
|
390
|
+
types: ("week" | "month" | "date")[];
|
|
391
391
|
maxDaysInRange: number;
|
|
392
|
-
datePresetList: "
|
|
392
|
+
datePresetList: "week" | "month" | "date" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
393
393
|
regex: RegExp;
|
|
394
|
-
initialType: "
|
|
394
|
+
initialType: "week" | "month" | "date";
|
|
395
395
|
openOnTop: boolean;
|
|
396
396
|
showPresets: boolean;
|
|
397
397
|
maxDate: Date;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Day } from '../common/DateServices.common';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
year: number;
|
|
4
|
+
days: Record<string, Day>;
|
|
5
|
+
weeks: Day[][];
|
|
6
|
+
month: number;
|
|
7
|
+
navigation: 'next' | 'previous' | 'all';
|
|
8
|
+
range: {
|
|
9
|
+
fromStart: Date;
|
|
10
|
+
fromEnd: Date;
|
|
11
|
+
toEnd: Date;
|
|
12
|
+
toStart: Date;
|
|
13
|
+
};
|
|
14
|
+
type: 'date' | 'week' | 'month';
|
|
15
|
+
id?: string | number;
|
|
16
|
+
allowedDays?: number;
|
|
17
|
+
maxAllowedDate?: Date;
|
|
18
|
+
testId?: string;
|
|
19
|
+
}>, {
|
|
20
|
+
id: number;
|
|
21
|
+
allowedDays: any;
|
|
22
|
+
maxAllowedDate: any;
|
|
23
|
+
testId: string;
|
|
24
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
navigation: (...args: any[]) => void;
|
|
26
|
+
selectionChanged: (...args: any[]) => void;
|
|
27
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
28
|
+
year: number;
|
|
29
|
+
days: Record<string, Day>;
|
|
30
|
+
weeks: Day[][];
|
|
31
|
+
month: number;
|
|
32
|
+
navigation: 'next' | 'previous' | 'all';
|
|
33
|
+
range: {
|
|
34
|
+
fromStart: Date;
|
|
35
|
+
fromEnd: Date;
|
|
36
|
+
toEnd: Date;
|
|
37
|
+
toStart: Date;
|
|
38
|
+
};
|
|
39
|
+
type: 'date' | 'week' | 'month';
|
|
40
|
+
id?: string | number;
|
|
41
|
+
allowedDays?: number;
|
|
42
|
+
maxAllowedDate?: Date;
|
|
43
|
+
testId?: string;
|
|
44
|
+
}>, {
|
|
45
|
+
id: number;
|
|
46
|
+
allowedDays: any;
|
|
47
|
+
maxAllowedDate: any;
|
|
48
|
+
testId: string;
|
|
49
|
+
}>>> & {
|
|
50
|
+
onNavigation?: (...args: any[]) => any;
|
|
51
|
+
onSelectionChanged?: (...args: any[]) => any;
|
|
52
|
+
}, {
|
|
53
|
+
testId: string;
|
|
54
|
+
id: string | number;
|
|
55
|
+
allowedDays: number;
|
|
56
|
+
maxAllowedDate: Date;
|
|
57
|
+
}>;
|
|
58
|
+
export default _default;
|
|
59
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
60
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
61
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
62
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
63
|
+
} : {
|
|
64
|
+
type: import('vue').PropType<T[K]>;
|
|
65
|
+
required: true;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
type __VLS_WithDefaults<P, D> = {
|
|
69
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
70
|
+
default: D[K];
|
|
71
|
+
}> : P[K];
|
|
72
|
+
};
|
|
73
|
+
type __VLS_Prettify<T> = {
|
|
74
|
+
[K in keyof T]: T[K];
|
|
75
|
+
} & {};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
range: {
|
|
3
|
+
from: Date;
|
|
4
|
+
to: Date;
|
|
5
|
+
};
|
|
6
|
+
types?: ("week" | "month" | "date")[];
|
|
7
|
+
isTitleStyle?: boolean;
|
|
8
|
+
includeToday?: boolean;
|
|
9
|
+
allowedDays?: number;
|
|
10
|
+
maxDaysInRange?: number;
|
|
11
|
+
datePresetList?: "week" | "month" | "date" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
12
|
+
regex?: RegExp;
|
|
13
|
+
dateFormat?: string;
|
|
14
|
+
uniqueId?: string | number;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
initialType: "week" | "month" | "date";
|
|
17
|
+
openOnTop: boolean;
|
|
18
|
+
testId?: string;
|
|
19
|
+
}>, {
|
|
20
|
+
isTitleStyle: boolean;
|
|
21
|
+
types: () => string[];
|
|
22
|
+
includeToday: boolean;
|
|
23
|
+
allowedDays: any;
|
|
24
|
+
maxDaysInRange: any;
|
|
25
|
+
datePresetList: string;
|
|
26
|
+
regex: () => RegExp;
|
|
27
|
+
dateFormat: string;
|
|
28
|
+
uniqueId: number;
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
initialType: any;
|
|
31
|
+
openOnTop: boolean;
|
|
32
|
+
testId: string;
|
|
33
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
+
opened: (...args: any[]) => void;
|
|
35
|
+
dismissed: (...args: any[]) => void;
|
|
36
|
+
"update:range": (...args: any[]) => void;
|
|
37
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
38
|
+
range: {
|
|
39
|
+
from: Date;
|
|
40
|
+
to: Date;
|
|
41
|
+
};
|
|
42
|
+
types?: ("week" | "month" | "date")[];
|
|
43
|
+
isTitleStyle?: boolean;
|
|
44
|
+
includeToday?: boolean;
|
|
45
|
+
allowedDays?: number;
|
|
46
|
+
maxDaysInRange?: number;
|
|
47
|
+
datePresetList?: "week" | "month" | "date" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
48
|
+
regex?: RegExp;
|
|
49
|
+
dateFormat?: string;
|
|
50
|
+
uniqueId?: string | number;
|
|
51
|
+
disabled?: boolean;
|
|
52
|
+
initialType: "week" | "month" | "date";
|
|
53
|
+
openOnTop: boolean;
|
|
54
|
+
testId?: string;
|
|
55
|
+
}>, {
|
|
56
|
+
isTitleStyle: boolean;
|
|
57
|
+
types: () => string[];
|
|
58
|
+
includeToday: boolean;
|
|
59
|
+
allowedDays: any;
|
|
60
|
+
maxDaysInRange: any;
|
|
61
|
+
datePresetList: string;
|
|
62
|
+
regex: () => RegExp;
|
|
63
|
+
dateFormat: string;
|
|
64
|
+
uniqueId: number;
|
|
65
|
+
disabled: boolean;
|
|
66
|
+
initialType: any;
|
|
67
|
+
openOnTop: boolean;
|
|
68
|
+
testId: string;
|
|
69
|
+
}>>> & {
|
|
70
|
+
onOpened?: (...args: any[]) => any;
|
|
71
|
+
onDismissed?: (...args: any[]) => any;
|
|
72
|
+
"onUpdate:range"?: (...args: any[]) => any;
|
|
73
|
+
}, {
|
|
74
|
+
disabled: boolean;
|
|
75
|
+
testId: string;
|
|
76
|
+
allowedDays: number;
|
|
77
|
+
uniqueId: string | number;
|
|
78
|
+
includeToday: boolean;
|
|
79
|
+
dateFormat: string;
|
|
80
|
+
types: ("week" | "month" | "date")[];
|
|
81
|
+
maxDaysInRange: number;
|
|
82
|
+
datePresetList: "week" | "month" | "date" | "date1-7-14-30-90" | "date7-14-30-60-90" | "date7-14-31-60-90" | "dateWithoutToday" | "dateWithoutLastMonth";
|
|
83
|
+
regex: RegExp;
|
|
84
|
+
initialType: "week" | "month" | "date";
|
|
85
|
+
openOnTop: boolean;
|
|
86
|
+
isTitleStyle: boolean;
|
|
87
|
+
}>, {
|
|
88
|
+
field?(_: {
|
|
89
|
+
currentDate: any;
|
|
90
|
+
isOpen: any;
|
|
91
|
+
}): any;
|
|
92
|
+
}>;
|
|
93
|
+
export default _default;
|
|
94
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
95
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
96
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
97
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
98
|
+
} : {
|
|
99
|
+
type: import('vue').PropType<T[K]>;
|
|
100
|
+
required: true;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
type __VLS_WithDefaults<P, D> = {
|
|
104
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
105
|
+
default: D[K];
|
|
106
|
+
}> : P[K];
|
|
107
|
+
};
|
|
108
|
+
type __VLS_Prettify<T> = {
|
|
109
|
+
[K in keyof T]: T[K];
|
|
110
|
+
} & {};
|
|
111
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
112
|
+
new (): {
|
|
113
|
+
$slots: S;
|
|
114
|
+
};
|
|
115
|
+
};
|