@bethinkpl/design-system 26.14.0 → 26.14.3
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/.github/workflows/build-dist-on-trigger.yml +19 -3
- package/dist/design-system.umd.cjs +15 -15
- package/dist/design-system.umd.cjs.map +1 -1
- package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.composables.d.ts +4 -1
- package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.vue.d.ts +535 -8
- package/dist/lib/js/components/DatePickers/DateRangePicker/DateRangePicker.vue.d.ts +529 -2
- package/dist/lib/js/components/RichList/RichListItem/RichListItem.vue.d.ts +1 -1
- package/docs/assets/{BasicRichListItem-CEiYZukO.js → BasicRichListItem-B1E5DYkk.js} +1 -1
- package/docs/assets/{BasicRichListItem.stories-ePDSld8d.js → BasicRichListItem.stories-Bwk6-q_S.js} +1 -1
- package/docs/assets/{Color-ERTF36HU-CUHUHSmH.js → Color-ERTF36HU-Zy8s_54Y.js} +1 -1
- package/docs/assets/{DateBox.stories-BP1Z4i2_.js → DateBox.stories-DLmMNPBT.js} +1 -1
- package/docs/assets/DatePicker-DHykkoW4.js +2 -0
- package/docs/assets/{DatePicker.stories-AUPbbqFP.js → DatePicker.stories-DHiM_CF1.js} +2 -2
- package/docs/assets/DateRangePicker-DyLp3jfg.js +1 -0
- package/docs/assets/{DateRangePicker.stories-BQFhc4cw.js → DateRangePicker.stories-Chl7D6cH.js} +1 -1
- package/docs/assets/{DocsRenderer-CFRXHY34-BTRR5RRG.js → DocsRenderer-CFRXHY34-Mv9wJbYE.js} +5 -5
- package/docs/assets/{GroupRichListItem-8v8vJXgH.js → GroupRichListItem-onOADtuh.js} +1 -1
- package/docs/assets/{GroupRichListItem.stories-KjZ2JDho.js → GroupRichListItem.stories-BXIoUT_x.js} +1 -1
- package/docs/assets/{RichListItem.stories-C7rIgxO4.js → RichListItem.stories-bEj3sobC.js} +1 -1
- package/docs/assets/{SelectionTile-D9A_Tf3q.js → SelectionTile-BuBzVZpf.js} +1 -1
- package/docs/assets/{SelectionTile.stories-aEkis98r.js → SelectionTile.stories-Da-1b5iP.js} +1 -1
- package/docs/assets/{iframe-BmaPoam5.js → iframe-B7O_YbfU.js} +5 -5
- package/docs/assets/{index-g_7p32Ii.js → index-5RZErJTT.js} +1 -1
- package/docs/assets/{index-z7xpE_Pa.js → index-By8fdPgt.js} +1 -1
- package/docs/assets/{preview-DqmV_9DV.js → preview-C6pVUegQ.js} +1 -1
- package/docs/assets/{preview-Ds_xi8UF.js → preview-dRTG5wog.js} +2 -2
- package/docs/iframe.html +1 -1
- package/docs/project.json +1 -1
- package/lib/js/components/DatePickers/DatePicker/DatePicker.composables.ts +30 -12
- package/lib/js/components/DatePickers/DatePicker/DatePicker.stories.ts +5 -5
- package/lib/js/components/DatePickers/DatePicker/DatePicker.vue +38 -26
- package/lib/js/components/DatePickers/DateRangePicker/DateRangePicker.stories.ts +3 -3
- package/lib/js/components/DatePickers/DateRangePicker/DateRangePicker.vue +27 -24
- package/lib/js/components/RichList/RichListItem/RichListItem.vue +20 -17
- package/package.json +1 -1
- package/docs/assets/DatePicker-Bc1APlab.js +0 -2
- package/docs/assets/DateRangePicker-CNuyzpfG.js +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Instance as DatePickerInstance } from 'flatpickr/dist/types/instance';
|
|
1
2
|
import { PropType, Ref } from 'vue';
|
|
2
3
|
import { DatePickerCalendarPositions, DatePickerColors, DatePickerStates } from '../DatePicker';
|
|
3
4
|
|
|
@@ -13,11 +14,536 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
13
14
|
state: DatePickerStates;
|
|
14
15
|
updatePositionBasedOnScrollableSelector: string;
|
|
15
16
|
}, {
|
|
17
|
+
flatpickrInstance: Ref<{
|
|
18
|
+
element: HTMLElement;
|
|
19
|
+
input: HTMLInputElement;
|
|
20
|
+
altInput?: HTMLInputElement | undefined;
|
|
21
|
+
_input: HTMLInputElement;
|
|
22
|
+
mobileInput?: HTMLInputElement | undefined;
|
|
23
|
+
mobileFormatStr?: string | undefined;
|
|
24
|
+
selectedDateElem?: import('flatpickr/dist/types/instance').DayElement | undefined;
|
|
25
|
+
todayDateElem?: import('flatpickr/dist/types/instance').DayElement | undefined;
|
|
26
|
+
_positionElement: HTMLElement;
|
|
27
|
+
weekdayContainer: HTMLDivElement;
|
|
28
|
+
calendarContainer: HTMLDivElement;
|
|
29
|
+
innerContainer?: HTMLDivElement | undefined;
|
|
30
|
+
rContainer?: HTMLDivElement | undefined;
|
|
31
|
+
daysContainer?: HTMLDivElement | undefined;
|
|
32
|
+
days: HTMLDivElement;
|
|
33
|
+
weekWrapper?: HTMLDivElement | undefined;
|
|
34
|
+
weekNumbers?: HTMLDivElement | undefined;
|
|
35
|
+
monthNav: HTMLDivElement;
|
|
36
|
+
monthsDropdownContainer: HTMLSelectElement;
|
|
37
|
+
yearElements: HTMLInputElement[];
|
|
38
|
+
monthElements: HTMLSpanElement[];
|
|
39
|
+
currentYearElement: HTMLInputElement;
|
|
40
|
+
currentMonthElement: HTMLSpanElement;
|
|
41
|
+
_hidePrevMonthArrow: boolean;
|
|
42
|
+
_hideNextMonthArrow: boolean;
|
|
43
|
+
prevMonthNav: HTMLElement;
|
|
44
|
+
nextMonthNav: HTMLElement;
|
|
45
|
+
timeContainer?: HTMLDivElement | undefined;
|
|
46
|
+
hourElement?: HTMLInputElement | undefined;
|
|
47
|
+
minuteElement?: HTMLInputElement | undefined;
|
|
48
|
+
secondElement?: HTMLInputElement | undefined;
|
|
49
|
+
amPM?: HTMLSpanElement | undefined;
|
|
50
|
+
pluginElements: Node[];
|
|
51
|
+
revFormat: import('flatpickr/dist/utils/formatting').RevFormat;
|
|
52
|
+
formats: {
|
|
53
|
+
D: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
54
|
+
M: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
55
|
+
i: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
56
|
+
s: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
57
|
+
u: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
58
|
+
w: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
59
|
+
l: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
60
|
+
h: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
61
|
+
j: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
62
|
+
n: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
63
|
+
y: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
64
|
+
m: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
65
|
+
d: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
66
|
+
S: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
67
|
+
F: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
68
|
+
G: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
69
|
+
H: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
70
|
+
J: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
71
|
+
K: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
72
|
+
U: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
73
|
+
W: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
74
|
+
Y: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
75
|
+
Z: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
76
|
+
};
|
|
77
|
+
tokenRegex: {
|
|
78
|
+
D: string;
|
|
79
|
+
M: string;
|
|
80
|
+
i: string;
|
|
81
|
+
s: string;
|
|
82
|
+
u: string;
|
|
83
|
+
w: string;
|
|
84
|
+
l: string;
|
|
85
|
+
h: string;
|
|
86
|
+
j: string;
|
|
87
|
+
n: string;
|
|
88
|
+
y: string;
|
|
89
|
+
m: string;
|
|
90
|
+
d: string;
|
|
91
|
+
S: string;
|
|
92
|
+
F: string;
|
|
93
|
+
G: string;
|
|
94
|
+
H: string;
|
|
95
|
+
J: string;
|
|
96
|
+
K: string;
|
|
97
|
+
U: string;
|
|
98
|
+
W: string;
|
|
99
|
+
Y: string;
|
|
100
|
+
Z: string;
|
|
101
|
+
};
|
|
102
|
+
minRangeDate?: Date | undefined;
|
|
103
|
+
maxRangeDate?: Date | undefined;
|
|
104
|
+
now: Date;
|
|
105
|
+
latestSelectedDateObj?: Date | undefined;
|
|
106
|
+
_selectedDateObj?: Date | undefined;
|
|
107
|
+
selectedDates: Date[];
|
|
108
|
+
_initialDate: Date;
|
|
109
|
+
config: {
|
|
110
|
+
_disable: (Date | ((date: Date) => boolean) | {
|
|
111
|
+
from: Date;
|
|
112
|
+
to: Date;
|
|
113
|
+
})[];
|
|
114
|
+
_enable?: (Date | ((date: Date) => boolean) | {
|
|
115
|
+
from: Date;
|
|
116
|
+
to: Date;
|
|
117
|
+
})[] | undefined;
|
|
118
|
+
_maxDate?: Date | undefined;
|
|
119
|
+
_maxTime?: Date | undefined;
|
|
120
|
+
_minDate?: Date | undefined;
|
|
121
|
+
_minTime?: Date | undefined;
|
|
122
|
+
allowInput: boolean;
|
|
123
|
+
allowInvalidPreload: boolean;
|
|
124
|
+
altFormat: string;
|
|
125
|
+
altInput: boolean;
|
|
126
|
+
altInputClass: string;
|
|
127
|
+
animate: boolean;
|
|
128
|
+
appendTo?: HTMLElement | undefined;
|
|
129
|
+
ariaDateFormat: string;
|
|
130
|
+
autoFillDefaultTime: boolean;
|
|
131
|
+
clickOpens: boolean;
|
|
132
|
+
closeOnSelect: boolean;
|
|
133
|
+
conjunction: string;
|
|
134
|
+
dateFormat: string;
|
|
135
|
+
defaultDate?: (Date | Date[]) | undefined;
|
|
136
|
+
defaultHour: number;
|
|
137
|
+
defaultMinute: number;
|
|
138
|
+
defaultSeconds: number;
|
|
139
|
+
disable: (Date | ((date: Date) => boolean) | {
|
|
140
|
+
from: Date;
|
|
141
|
+
to: Date;
|
|
142
|
+
})[];
|
|
143
|
+
disableMobile: boolean;
|
|
144
|
+
enable?: (Date | ((date: Date) => boolean) | {
|
|
145
|
+
from: Date;
|
|
146
|
+
to: Date;
|
|
147
|
+
})[] | undefined;
|
|
148
|
+
enableSeconds: boolean;
|
|
149
|
+
enableTime: boolean;
|
|
150
|
+
errorHandler: (err: Error) => void;
|
|
151
|
+
formatDate?: ((date: Date, format: string, locale: import('flatpickr/dist/types/locale').Locale) => string) | undefined;
|
|
152
|
+
getWeek: (date: Date) => string | number;
|
|
153
|
+
hourIncrement: number;
|
|
154
|
+
ignoredFocusElements: HTMLElement[];
|
|
155
|
+
inline: boolean;
|
|
156
|
+
locale: import('flatpickr/dist/types/locale').key | {
|
|
157
|
+
ordinal?: import('flatpickr/dist/types/locale').Locale["ordinal"] | undefined;
|
|
158
|
+
daysInMonth?: import('flatpickr/dist/types/locale').Locale["daysInMonth"] | undefined;
|
|
159
|
+
firstDayOfWeek?: import('flatpickr/dist/types/locale').Locale["firstDayOfWeek"] | undefined;
|
|
160
|
+
rangeSeparator?: import('flatpickr/dist/types/locale').Locale["rangeSeparator"] | undefined;
|
|
161
|
+
weekAbbreviation?: import('flatpickr/dist/types/locale').Locale["weekAbbreviation"] | undefined;
|
|
162
|
+
toggleTitle?: import('flatpickr/dist/types/locale').Locale["toggleTitle"] | undefined;
|
|
163
|
+
scrollTitle?: import('flatpickr/dist/types/locale').Locale["scrollTitle"] | undefined;
|
|
164
|
+
yearAriaLabel?: string | undefined;
|
|
165
|
+
monthAriaLabel?: string | undefined;
|
|
166
|
+
hourAriaLabel?: string | undefined;
|
|
167
|
+
minuteAriaLabel?: string | undefined;
|
|
168
|
+
amPM?: import('flatpickr/dist/types/locale').Locale["amPM"] | undefined;
|
|
169
|
+
time_24hr?: import('flatpickr/dist/types/locale').Locale["time_24hr"] | undefined;
|
|
170
|
+
weekdays: {
|
|
171
|
+
shorthand: [string, string, string, string, string, string, string];
|
|
172
|
+
longhand: [string, string, string, string, string, string, string];
|
|
173
|
+
};
|
|
174
|
+
months: {
|
|
175
|
+
shorthand: [string, string, string, string, string, string, string, string, string, string, string, string];
|
|
176
|
+
longhand: [string, string, string, string, string, string, string, string, string, string, string, string];
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
maxDate?: Date | undefined;
|
|
180
|
+
maxTime?: Date | undefined;
|
|
181
|
+
minDate?: Date | undefined;
|
|
182
|
+
minTime?: Date | undefined;
|
|
183
|
+
minuteIncrement: number;
|
|
184
|
+
mode: import('flatpickr/dist/types/options').BaseOptions["mode"];
|
|
185
|
+
monthSelectorType: string;
|
|
186
|
+
nextArrow: string;
|
|
187
|
+
noCalendar: boolean;
|
|
188
|
+
now: Date;
|
|
189
|
+
onChange: import('flatpickr/dist/types/options').Hook[];
|
|
190
|
+
onClose: import('flatpickr/dist/types/options').Hook[];
|
|
191
|
+
onDayCreate: import('flatpickr/dist/types/options').Hook[];
|
|
192
|
+
onDestroy: import('flatpickr/dist/types/options').Hook[];
|
|
193
|
+
onKeyDown: import('flatpickr/dist/types/options').Hook[];
|
|
194
|
+
onMonthChange: import('flatpickr/dist/types/options').Hook[];
|
|
195
|
+
onOpen: import('flatpickr/dist/types/options').Hook[];
|
|
196
|
+
onParseConfig: import('flatpickr/dist/types/options').Hook[];
|
|
197
|
+
onReady: import('flatpickr/dist/types/options').Hook[];
|
|
198
|
+
onValueUpdate: import('flatpickr/dist/types/options').Hook[];
|
|
199
|
+
onYearChange: import('flatpickr/dist/types/options').Hook[];
|
|
200
|
+
onPreCalendarPosition: import('flatpickr/dist/types/options').Hook[];
|
|
201
|
+
parseDate?: import('flatpickr/dist/types/options').BaseOptions["parseDate"] | undefined;
|
|
202
|
+
plugins: import('flatpickr/dist/types/options').Plugin[];
|
|
203
|
+
position: import('flatpickr/dist/types/options').BaseOptions["position"];
|
|
204
|
+
positionElement?: HTMLElement | undefined;
|
|
205
|
+
prevArrow: string;
|
|
206
|
+
shorthandCurrentMonth: boolean;
|
|
207
|
+
showMonths: number;
|
|
208
|
+
static: boolean;
|
|
209
|
+
time_24hr: boolean;
|
|
210
|
+
weekNumbers: boolean;
|
|
211
|
+
wrap: boolean;
|
|
212
|
+
};
|
|
213
|
+
loadedPlugins: string[];
|
|
214
|
+
l10n: {
|
|
215
|
+
weekdays: {
|
|
216
|
+
shorthand: [string, string, string, string, string, string, string];
|
|
217
|
+
longhand: [string, string, string, string, string, string, string];
|
|
218
|
+
};
|
|
219
|
+
months: {
|
|
220
|
+
shorthand: [string, string, string, string, string, string, string, string, string, string, string, string];
|
|
221
|
+
longhand: [string, string, string, string, string, string, string, string, string, string, string, string];
|
|
222
|
+
};
|
|
223
|
+
daysInMonth: [number, number, number, number, number, number, number, number, number, number, number, number];
|
|
224
|
+
firstDayOfWeek: number;
|
|
225
|
+
ordinal: (nth: number) => string;
|
|
226
|
+
rangeSeparator: string;
|
|
227
|
+
weekAbbreviation: string;
|
|
228
|
+
scrollTitle: string;
|
|
229
|
+
toggleTitle: string;
|
|
230
|
+
amPM: [string, string];
|
|
231
|
+
yearAriaLabel: string;
|
|
232
|
+
monthAriaLabel: string;
|
|
233
|
+
hourAriaLabel: string;
|
|
234
|
+
minuteAriaLabel: string;
|
|
235
|
+
time_24hr: boolean;
|
|
236
|
+
};
|
|
237
|
+
currentYear: number;
|
|
238
|
+
currentMonth: number;
|
|
239
|
+
isOpen: boolean;
|
|
240
|
+
isMobile: boolean;
|
|
241
|
+
minDateHasTime: boolean;
|
|
242
|
+
maxDateHasTime: boolean;
|
|
243
|
+
changeMonth: (value: number, isOffset?: boolean, fromKeyboard?: boolean) => void;
|
|
244
|
+
changeYear: (year: number) => void;
|
|
245
|
+
clear: (emitChangeEvent?: boolean, toInitial?: boolean) => void;
|
|
246
|
+
close: () => void;
|
|
247
|
+
destroy: () => void;
|
|
248
|
+
isEnabled: (date: import('flatpickr/dist/types/options').DateOption, timeless?: boolean) => boolean;
|
|
249
|
+
jumpToDate: (date?: import('flatpickr/dist/types/options').DateOption, triggerChange?: boolean) => void;
|
|
250
|
+
updateValue: (triggerChange?: boolean) => void;
|
|
251
|
+
onMouseOver: (elem?: import('flatpickr/dist/types/instance').DayElement, cellClass?: string) => void;
|
|
252
|
+
open: (e?: FocusEvent | MouseEvent, positionElement?: HTMLElement) => void;
|
|
253
|
+
redraw: () => void;
|
|
254
|
+
set: (option: keyof import('flatpickr/dist/types/options').Options | { [k in keyof import('flatpickr/dist/types/options').Options]?: import('flatpickr/dist/types/options').Options[k]; }, value?: any) => void;
|
|
255
|
+
setDate: (date: import('flatpickr/dist/types/options').DateOption | import('flatpickr/dist/types/options').DateOption[], triggerChange?: boolean, format?: string) => void;
|
|
256
|
+
toggle: () => void;
|
|
257
|
+
pad: (num: string | number) => string;
|
|
258
|
+
parseDate: (date: Date | string | number, givenFormat?: string, timeless?: boolean) => Date | undefined;
|
|
259
|
+
formatDate: (dateObj: Date, frmt: string) => string;
|
|
260
|
+
_handlers: {
|
|
261
|
+
remove: () => void;
|
|
262
|
+
}[];
|
|
263
|
+
_bind: <E extends Element | Window | Document>(element: E | E[], event: string | string[], handler: (e?: any) => void, options?: {
|
|
264
|
+
capture?: boolean;
|
|
265
|
+
once?: boolean;
|
|
266
|
+
passive?: boolean;
|
|
267
|
+
}) => void;
|
|
268
|
+
_createElement: <E extends HTMLElement>(tag: keyof HTMLElementTagNameMap, className: string, content?: string) => E;
|
|
269
|
+
createDay: (className: string, date: Date, dayNumber: number, i: number) => import('flatpickr/dist/types/instance').DayElement;
|
|
270
|
+
_setHoursFromDate: (date: Date) => void;
|
|
271
|
+
_debouncedChange: () => void;
|
|
272
|
+
__hideNextMonthArrow: boolean;
|
|
273
|
+
__hidePrevMonthArrow: boolean;
|
|
274
|
+
_positionCalendar: (customPositionElement?: HTMLElement) => void;
|
|
275
|
+
utils: {
|
|
276
|
+
getDaysInMonth: (month?: number, year?: number) => number;
|
|
277
|
+
};
|
|
278
|
+
} | null, DatePickerInstance | {
|
|
279
|
+
element: HTMLElement;
|
|
280
|
+
input: HTMLInputElement;
|
|
281
|
+
altInput?: HTMLInputElement | undefined;
|
|
282
|
+
_input: HTMLInputElement;
|
|
283
|
+
mobileInput?: HTMLInputElement | undefined;
|
|
284
|
+
mobileFormatStr?: string | undefined;
|
|
285
|
+
selectedDateElem?: import('flatpickr/dist/types/instance').DayElement | undefined;
|
|
286
|
+
todayDateElem?: import('flatpickr/dist/types/instance').DayElement | undefined;
|
|
287
|
+
_positionElement: HTMLElement;
|
|
288
|
+
weekdayContainer: HTMLDivElement;
|
|
289
|
+
calendarContainer: HTMLDivElement;
|
|
290
|
+
innerContainer?: HTMLDivElement | undefined;
|
|
291
|
+
rContainer?: HTMLDivElement | undefined;
|
|
292
|
+
daysContainer?: HTMLDivElement | undefined;
|
|
293
|
+
days: HTMLDivElement;
|
|
294
|
+
weekWrapper?: HTMLDivElement | undefined;
|
|
295
|
+
weekNumbers?: HTMLDivElement | undefined;
|
|
296
|
+
monthNav: HTMLDivElement;
|
|
297
|
+
monthsDropdownContainer: HTMLSelectElement;
|
|
298
|
+
yearElements: HTMLInputElement[];
|
|
299
|
+
monthElements: HTMLSpanElement[];
|
|
300
|
+
currentYearElement: HTMLInputElement;
|
|
301
|
+
currentMonthElement: HTMLSpanElement;
|
|
302
|
+
_hidePrevMonthArrow: boolean;
|
|
303
|
+
_hideNextMonthArrow: boolean;
|
|
304
|
+
prevMonthNav: HTMLElement;
|
|
305
|
+
nextMonthNav: HTMLElement;
|
|
306
|
+
timeContainer?: HTMLDivElement | undefined;
|
|
307
|
+
hourElement?: HTMLInputElement | undefined;
|
|
308
|
+
minuteElement?: HTMLInputElement | undefined;
|
|
309
|
+
secondElement?: HTMLInputElement | undefined;
|
|
310
|
+
amPM?: HTMLSpanElement | undefined;
|
|
311
|
+
pluginElements: Node[];
|
|
312
|
+
revFormat: import('flatpickr/dist/utils/formatting').RevFormat;
|
|
313
|
+
formats: {
|
|
314
|
+
D: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
315
|
+
M: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
316
|
+
i: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
317
|
+
s: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
318
|
+
u: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
319
|
+
w: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
320
|
+
l: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
321
|
+
h: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
322
|
+
j: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
323
|
+
n: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
324
|
+
y: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
325
|
+
m: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
326
|
+
d: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
327
|
+
S: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
328
|
+
F: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
329
|
+
G: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
330
|
+
H: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
331
|
+
J: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
332
|
+
K: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
333
|
+
U: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
334
|
+
W: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
335
|
+
Y: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
336
|
+
Z: (date: Date, locale: import('flatpickr/dist/types/locale').Locale, options: import('flatpickr/dist/types/options').ParsedOptions) => string | number;
|
|
337
|
+
};
|
|
338
|
+
tokenRegex: {
|
|
339
|
+
D: string;
|
|
340
|
+
M: string;
|
|
341
|
+
i: string;
|
|
342
|
+
s: string;
|
|
343
|
+
u: string;
|
|
344
|
+
w: string;
|
|
345
|
+
l: string;
|
|
346
|
+
h: string;
|
|
347
|
+
j: string;
|
|
348
|
+
n: string;
|
|
349
|
+
y: string;
|
|
350
|
+
m: string;
|
|
351
|
+
d: string;
|
|
352
|
+
S: string;
|
|
353
|
+
F: string;
|
|
354
|
+
G: string;
|
|
355
|
+
H: string;
|
|
356
|
+
J: string;
|
|
357
|
+
K: string;
|
|
358
|
+
U: string;
|
|
359
|
+
W: string;
|
|
360
|
+
Y: string;
|
|
361
|
+
Z: string;
|
|
362
|
+
};
|
|
363
|
+
minRangeDate?: Date | undefined;
|
|
364
|
+
maxRangeDate?: Date | undefined;
|
|
365
|
+
now: Date;
|
|
366
|
+
latestSelectedDateObj?: Date | undefined;
|
|
367
|
+
_selectedDateObj?: Date | undefined;
|
|
368
|
+
selectedDates: Date[];
|
|
369
|
+
_initialDate: Date;
|
|
370
|
+
config: {
|
|
371
|
+
_disable: (Date | ((date: Date) => boolean) | {
|
|
372
|
+
from: Date;
|
|
373
|
+
to: Date;
|
|
374
|
+
})[];
|
|
375
|
+
_enable?: (Date | ((date: Date) => boolean) | {
|
|
376
|
+
from: Date;
|
|
377
|
+
to: Date;
|
|
378
|
+
})[] | undefined;
|
|
379
|
+
_maxDate?: Date | undefined;
|
|
380
|
+
_maxTime?: Date | undefined;
|
|
381
|
+
_minDate?: Date | undefined;
|
|
382
|
+
_minTime?: Date | undefined;
|
|
383
|
+
allowInput: boolean;
|
|
384
|
+
allowInvalidPreload: boolean;
|
|
385
|
+
altFormat: string;
|
|
386
|
+
altInput: boolean;
|
|
387
|
+
altInputClass: string;
|
|
388
|
+
animate: boolean;
|
|
389
|
+
appendTo?: HTMLElement | undefined;
|
|
390
|
+
ariaDateFormat: string;
|
|
391
|
+
autoFillDefaultTime: boolean;
|
|
392
|
+
clickOpens: boolean;
|
|
393
|
+
closeOnSelect: boolean;
|
|
394
|
+
conjunction: string;
|
|
395
|
+
dateFormat: string;
|
|
396
|
+
defaultDate?: (Date | Date[]) | undefined;
|
|
397
|
+
defaultHour: number;
|
|
398
|
+
defaultMinute: number;
|
|
399
|
+
defaultSeconds: number;
|
|
400
|
+
disable: (Date | ((date: Date) => boolean) | {
|
|
401
|
+
from: Date;
|
|
402
|
+
to: Date;
|
|
403
|
+
})[];
|
|
404
|
+
disableMobile: boolean;
|
|
405
|
+
enable?: (Date | ((date: Date) => boolean) | {
|
|
406
|
+
from: Date;
|
|
407
|
+
to: Date;
|
|
408
|
+
})[] | undefined;
|
|
409
|
+
enableSeconds: boolean;
|
|
410
|
+
enableTime: boolean;
|
|
411
|
+
errorHandler: (err: Error) => void;
|
|
412
|
+
formatDate?: ((date: Date, format: string, locale: import('flatpickr/dist/types/locale').Locale) => string) | undefined;
|
|
413
|
+
getWeek: (date: Date) => string | number;
|
|
414
|
+
hourIncrement: number;
|
|
415
|
+
ignoredFocusElements: HTMLElement[];
|
|
416
|
+
inline: boolean;
|
|
417
|
+
locale: import('flatpickr/dist/types/locale').key | {
|
|
418
|
+
ordinal?: import('flatpickr/dist/types/locale').Locale["ordinal"] | undefined;
|
|
419
|
+
daysInMonth?: import('flatpickr/dist/types/locale').Locale["daysInMonth"] | undefined;
|
|
420
|
+
firstDayOfWeek?: import('flatpickr/dist/types/locale').Locale["firstDayOfWeek"] | undefined;
|
|
421
|
+
rangeSeparator?: import('flatpickr/dist/types/locale').Locale["rangeSeparator"] | undefined;
|
|
422
|
+
weekAbbreviation?: import('flatpickr/dist/types/locale').Locale["weekAbbreviation"] | undefined;
|
|
423
|
+
toggleTitle?: import('flatpickr/dist/types/locale').Locale["toggleTitle"] | undefined;
|
|
424
|
+
scrollTitle?: import('flatpickr/dist/types/locale').Locale["scrollTitle"] | undefined;
|
|
425
|
+
yearAriaLabel?: string | undefined;
|
|
426
|
+
monthAriaLabel?: string | undefined;
|
|
427
|
+
hourAriaLabel?: string | undefined;
|
|
428
|
+
minuteAriaLabel?: string | undefined;
|
|
429
|
+
amPM?: import('flatpickr/dist/types/locale').Locale["amPM"] | undefined;
|
|
430
|
+
time_24hr?: import('flatpickr/dist/types/locale').Locale["time_24hr"] | undefined;
|
|
431
|
+
weekdays: {
|
|
432
|
+
shorthand: [string, string, string, string, string, string, string];
|
|
433
|
+
longhand: [string, string, string, string, string, string, string];
|
|
434
|
+
};
|
|
435
|
+
months: {
|
|
436
|
+
shorthand: [string, string, string, string, string, string, string, string, string, string, string, string];
|
|
437
|
+
longhand: [string, string, string, string, string, string, string, string, string, string, string, string];
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
maxDate?: Date | undefined;
|
|
441
|
+
maxTime?: Date | undefined;
|
|
442
|
+
minDate?: Date | undefined;
|
|
443
|
+
minTime?: Date | undefined;
|
|
444
|
+
minuteIncrement: number;
|
|
445
|
+
mode: import('flatpickr/dist/types/options').BaseOptions["mode"];
|
|
446
|
+
monthSelectorType: string;
|
|
447
|
+
nextArrow: string;
|
|
448
|
+
noCalendar: boolean;
|
|
449
|
+
now: Date;
|
|
450
|
+
onChange: import('flatpickr/dist/types/options').Hook[];
|
|
451
|
+
onClose: import('flatpickr/dist/types/options').Hook[];
|
|
452
|
+
onDayCreate: import('flatpickr/dist/types/options').Hook[];
|
|
453
|
+
onDestroy: import('flatpickr/dist/types/options').Hook[];
|
|
454
|
+
onKeyDown: import('flatpickr/dist/types/options').Hook[];
|
|
455
|
+
onMonthChange: import('flatpickr/dist/types/options').Hook[];
|
|
456
|
+
onOpen: import('flatpickr/dist/types/options').Hook[];
|
|
457
|
+
onParseConfig: import('flatpickr/dist/types/options').Hook[];
|
|
458
|
+
onReady: import('flatpickr/dist/types/options').Hook[];
|
|
459
|
+
onValueUpdate: import('flatpickr/dist/types/options').Hook[];
|
|
460
|
+
onYearChange: import('flatpickr/dist/types/options').Hook[];
|
|
461
|
+
onPreCalendarPosition: import('flatpickr/dist/types/options').Hook[];
|
|
462
|
+
parseDate?: import('flatpickr/dist/types/options').BaseOptions["parseDate"] | undefined;
|
|
463
|
+
plugins: import('flatpickr/dist/types/options').Plugin[];
|
|
464
|
+
position: import('flatpickr/dist/types/options').BaseOptions["position"];
|
|
465
|
+
positionElement?: HTMLElement | undefined;
|
|
466
|
+
prevArrow: string;
|
|
467
|
+
shorthandCurrentMonth: boolean;
|
|
468
|
+
showMonths: number;
|
|
469
|
+
static: boolean;
|
|
470
|
+
time_24hr: boolean;
|
|
471
|
+
weekNumbers: boolean;
|
|
472
|
+
wrap: boolean;
|
|
473
|
+
};
|
|
474
|
+
loadedPlugins: string[];
|
|
475
|
+
l10n: {
|
|
476
|
+
weekdays: {
|
|
477
|
+
shorthand: [string, string, string, string, string, string, string];
|
|
478
|
+
longhand: [string, string, string, string, string, string, string];
|
|
479
|
+
};
|
|
480
|
+
months: {
|
|
481
|
+
shorthand: [string, string, string, string, string, string, string, string, string, string, string, string];
|
|
482
|
+
longhand: [string, string, string, string, string, string, string, string, string, string, string, string];
|
|
483
|
+
};
|
|
484
|
+
daysInMonth: [number, number, number, number, number, number, number, number, number, number, number, number];
|
|
485
|
+
firstDayOfWeek: number;
|
|
486
|
+
ordinal: (nth: number) => string;
|
|
487
|
+
rangeSeparator: string;
|
|
488
|
+
weekAbbreviation: string;
|
|
489
|
+
scrollTitle: string;
|
|
490
|
+
toggleTitle: string;
|
|
491
|
+
amPM: [string, string];
|
|
492
|
+
yearAriaLabel: string;
|
|
493
|
+
monthAriaLabel: string;
|
|
494
|
+
hourAriaLabel: string;
|
|
495
|
+
minuteAriaLabel: string;
|
|
496
|
+
time_24hr: boolean;
|
|
497
|
+
};
|
|
498
|
+
currentYear: number;
|
|
499
|
+
currentMonth: number;
|
|
500
|
+
isOpen: boolean;
|
|
501
|
+
isMobile: boolean;
|
|
502
|
+
minDateHasTime: boolean;
|
|
503
|
+
maxDateHasTime: boolean;
|
|
504
|
+
changeMonth: (value: number, isOffset?: boolean, fromKeyboard?: boolean) => void;
|
|
505
|
+
changeYear: (year: number) => void;
|
|
506
|
+
clear: (emitChangeEvent?: boolean, toInitial?: boolean) => void;
|
|
507
|
+
close: () => void;
|
|
508
|
+
destroy: () => void;
|
|
509
|
+
isEnabled: (date: import('flatpickr/dist/types/options').DateOption, timeless?: boolean) => boolean;
|
|
510
|
+
jumpToDate: (date?: import('flatpickr/dist/types/options').DateOption, triggerChange?: boolean) => void;
|
|
511
|
+
updateValue: (triggerChange?: boolean) => void;
|
|
512
|
+
onMouseOver: (elem?: import('flatpickr/dist/types/instance').DayElement, cellClass?: string) => void;
|
|
513
|
+
open: (e?: FocusEvent | MouseEvent, positionElement?: HTMLElement) => void;
|
|
514
|
+
redraw: () => void;
|
|
515
|
+
set: (option: keyof import('flatpickr/dist/types/options').Options | { [k in keyof import('flatpickr/dist/types/options').Options]?: import('flatpickr/dist/types/options').Options[k]; }, value?: any) => void;
|
|
516
|
+
setDate: (date: import('flatpickr/dist/types/options').DateOption | import('flatpickr/dist/types/options').DateOption[], triggerChange?: boolean, format?: string) => void;
|
|
517
|
+
toggle: () => void;
|
|
518
|
+
pad: (num: string | number) => string;
|
|
519
|
+
parseDate: (date: Date | string | number, givenFormat?: string, timeless?: boolean) => Date | undefined;
|
|
520
|
+
formatDate: (dateObj: Date, frmt: string) => string;
|
|
521
|
+
_handlers: {
|
|
522
|
+
remove: () => void;
|
|
523
|
+
}[];
|
|
524
|
+
_bind: <E extends Element | Window | Document>(element: E | E[], event: string | string[], handler: (e?: any) => void, options?: {
|
|
525
|
+
capture?: boolean;
|
|
526
|
+
once?: boolean;
|
|
527
|
+
passive?: boolean;
|
|
528
|
+
}) => void;
|
|
529
|
+
_createElement: <E extends HTMLElement>(tag: keyof HTMLElementTagNameMap, className: string, content?: string) => E;
|
|
530
|
+
createDay: (className: string, date: Date, dayNumber: number, i: number) => import('flatpickr/dist/types/instance').DayElement;
|
|
531
|
+
_setHoursFromDate: (date: Date) => void;
|
|
532
|
+
_debouncedChange: () => void;
|
|
533
|
+
__hideNextMonthArrow: boolean;
|
|
534
|
+
__hidePrevMonthArrow: boolean;
|
|
535
|
+
_positionCalendar: (customPositionElement?: HTMLElement) => void;
|
|
536
|
+
utils: {
|
|
537
|
+
getDaysInMonth: (month?: number, year?: number) => number;
|
|
538
|
+
};
|
|
539
|
+
} | null>;
|
|
16
540
|
dateRangePickerRef: Ref<HTMLDivElement, HTMLDivElement>;
|
|
17
541
|
flatpickrInputRef: Ref<HTMLInputElement, HTMLInputElement>;
|
|
18
542
|
isOpen: Ref<boolean, boolean>;
|
|
19
543
|
toggleDatePicker: () => void;
|
|
20
|
-
createDatePicker: (flatpickrInputElement: HTMLInputElement, dateRangePickerRef: HTMLElement, updatePositionBasedOnScrollableSelector: string) => Promise<
|
|
544
|
+
createDatePicker: (flatpickrInputElement: HTMLInputElement, dateRangePickerRef: HTMLElement, updatePositionBasedOnScrollableSelector: string) => Promise<DatePickerInstance | undefined>;
|
|
545
|
+
destroyDatePicker: () => void;
|
|
546
|
+
updateDatePicker: () => void;
|
|
21
547
|
DATE_PICKER_CALENDAR_POSITIONS: Readonly<{
|
|
22
548
|
TOP: string;
|
|
23
549
|
TOP_LEFT: string;
|
|
@@ -42,7 +568,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
42
568
|
TILE: string;
|
|
43
569
|
}>;
|
|
44
570
|
}, {}, {}, {
|
|
45
|
-
|
|
571
|
+
bindFlatpickrInstance(): Promise<void>;
|
|
572
|
+
toggle(): Promise<void>;
|
|
46
573
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
47
574
|
'update:date': (value: {
|
|
48
575
|
startDate: Date;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IconColor, IconItem } from '../../../components/Icons/Icon';
|
|
2
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { IconColor, IconItem } from '../../../components/Icons/Icon';
|
|
3
3
|
import { RichListItemBackgroundColor, RichListItemBorderColor, RichListItemElevation, RichListItemLayout, RichListItemSize, RichListItemState, RichListItemType } from './RichListItem.consts';
|
|
4
4
|
|
|
5
5
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as y,t as v,b,h as T,e as l,n as S,r as u,o as g,f as n,a as E,k as L}from"./vue.esm-bundler-DmkhfO_9.js";import{I as R,c as C}from"./Icon-BPz80dqH.js";import{D as h,T as r,c as i}from"./TextGroup-D5le3QVY.js";import{i as O,R as d,c as s,b as p,a as t,d as _,e as f,f as D}from"./GroupRichListItem-
|
|
1
|
+
import{d as y,t as v,b,h as T,e as l,n as S,r as u,o as g,f as n,a as E,k as L}from"./vue.esm-bundler-DmkhfO_9.js";import{I as R,c as C}from"./Icon-BPz80dqH.js";import{D as h,T as r,c as i}from"./TextGroup-D5le3QVY.js";import{i as O,R as d,c as s,b as p,a as t,d as _,e as f,f as D}from"./GroupRichListItem-onOADtuh.js";import{_ as V}from"./_plugin-vue_export-helper-DlAUqK2U.js";const m=y({name:"BasicRichListItem",components:{DsTextGroup:h,RichListItem:O},props:{type:{type:String,default:d.DEFAULT,validator(e){return Object.values(d).includes(e)}},state:{type:String,default:s.DEFAULT,validator(e){return Object.values(s).includes(e)}},layout:{type:String,default:p.HORIZONTAL,validator(e){return Object.values(p).includes(e)}},size:{type:String,default:t.MEDIUM,validator(e){return Object.values(t).includes(e)}},isInteractive:{type:Boolean,default:!0},isDimmed:{type:Boolean,default:!1},isDraggable:{type:Boolean,default:!0},icon:{type:Object,default:null,validator(e){return Object.values(R).includes(v(e))}},iconColor:{type:String,default:null,validator(e){return Object.values(C).includes(e)}},iconColorHex:{type:String,default:null},borderColor:{type:String,default:null,validator(e){return Object.values(_).includes(e)}},borderColorHex:{type:String,default:null},text:{type:String,required:!0},textEllipsis:{type:Boolean,default:!1},eyebrow:{type:String,default:null},eyebrowEllipsis:{type:Boolean,default:!1},isEyebrowUppercase:{type:Boolean,default:!1},supportingText:{type:String,default:null},supportingTextEllipsis:{type:Boolean,default:!1},isSupportingTextTooltipEnabled:{type:Boolean,default:!1},backgroundColor:{type:String,default:f.NEUTRAL,validator(e){return Object.values(f).includes(e)}},elevation:{type:String,default:null,validator(e){return Object.values(D).includes(e)}},hasDraggableHandler:{type:Boolean,default:!0},hasActionsSlotDivider:{type:Boolean,default:!0},isSelectable:{type:Boolean,default:!0},isSelected:{type:Boolean,default:!1},isTextGroupSelected:{type:Boolean,default:!1}},emits:{"update:is-selected":e=>!0},data(){return{hovered:!1,RICH_LIST_ITEM_SIZE:Object.freeze(t),RICH_LIST_ITEM_STATE:Object.freeze(s)}},computed:{textGroupSize(){return{[t.SMALL]:r.SMALL,[t.MEDIUM]:r.MEDIUM}[this.size]},textGroupState(){return this.state===s.LOADING?i.LOADING:this.hovered&&this.isInteractive?i.HOVERED:i.DEFAULT}}}),M={class:"ds-basicRichListItem__content"};function A(e,a,H,B,U,w){const c=u("ds-text-group"),I=u("rich-list-item");return g(),b(I,{size:e.size,type:e.type,layout:e.layout,"is-interactive":e.isInteractive,"is-draggable":e.isDraggable,icon:e.icon,"icon-color":e.iconColor,"icon-color-hex":e.iconColorHex,"is-dimmed":e.isDimmed,"border-color":e.borderColor,"border-color-hex":e.borderColorHex,state:e.state,"background-color":e.backgroundColor,elevation:e.elevation,"has-draggable-handler":e.hasDraggableHandler,"has-actions-slot-divider":e.hasActionsSlotDivider,"is-selectable":e.isSelectable,"is-selected":e.isSelected,class:S(["ds-basicRichListItem",{"-ds-loading":e.state===e.RICH_LIST_ITEM_STATE.LOADING,"-ds-small":e.size===e.RICH_LIST_ITEM_SIZE.SMALL}]),onMouseover:a[0]||(a[0]=o=>e.hovered=!0),onMouseleave:a[1]||(a[1]=o=>e.hovered=!1),"onUpdate:isSelected":a[2]||(a[2]=o=>e.$emit("update:is-selected",o))},T({content:l(()=>[E("div",M,[L(c,{"eyebrow-text":e.eyebrow,"eyebrow-text-ellipsis":e.eyebrowEllipsis,"is-eyebrow-text-uppercase":e.isEyebrowUppercase,"is-selected":e.isTextGroupSelected,"is-interactive":!1,"main-text":e.text,"main-text-ellipsis":e.textEllipsis,"supporting-text":e.supportingText,"supporting-text-ellipsis":e.supportingTextEllipsis,size:e.textGroupSize,state:e.textGroupState,"is-supporting-text-tooltip-enabled":e.isSupportingTextTooltipEnabled},null,8,["eyebrow-text","eyebrow-text-ellipsis","is-eyebrow-text-uppercase","is-selected","main-text","main-text-ellipsis","supporting-text","supporting-text-ellipsis","size","state","is-supporting-text-tooltip-enabled"])])]),_:2},[e.$slots.media?{name:"media",fn:l(()=>[n(e.$slots,"media",{},void 0,!0)]),key:"0"}:void 0,e.$slots.metadata?{name:"metadata",fn:l(()=>[n(e.$slots,"metadata",{},void 0,!0)]),key:"1"}:void 0,e.$slots.actions?{name:"actions",fn:l(()=>[n(e.$slots,"actions",{},void 0,!0)]),key:"2"}:void 0]),1032,["size","type","layout","is-interactive","is-draggable","icon","icon-color","icon-color-hex","is-dimmed","border-color","border-color-hex","state","background-color","elevation","has-draggable-handler","has-actions-slot-divider","is-selectable","is-selected","class"])}const k=V(m,[["render",A],["__scopeId","data-v-c8b54c95"]]);m.__docgenInfo={displayName:"BasicRichListItem",exportName:"default",description:"",tags:{},props:[{name:"type",type:{name:"RichListItemType"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_TYPE.DEFAULT"}},{name:"state",type:{name:"RichListItemState"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_STATE.DEFAULT"}},{name:"layout",type:{name:"RichListItemLayout"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_LAYOUT.HORIZONTAL"}},{name:"size",type:{name:"RichListItemSize"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_SIZE.MEDIUM"}},{name:"isInteractive",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isDimmed",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isDraggable",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"icon",type:{name:"IconItem"},defaultValue:{func:!1,value:"null"}},{name:"iconColor",type:{name:"IconColor"},defaultValue:{func:!1,value:"null"}},{name:"iconColorHex",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"borderColor",type:{name:"RichListItemBorderColor"},defaultValue:{func:!1,value:"null"}},{name:"borderColorHex",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"text",type:{name:"string"},required:!0},{name:"textEllipsis",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"eyebrow",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"eyebrowEllipsis",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isEyebrowUppercase",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"supportingText",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"supportingTextEllipsis",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isSupportingTextTooltipEnabled",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"backgroundColor",type:{name:"RichListItemBackgroundColor"},defaultValue:{func:!1,value:"RICH_LIST_ITEM_BACKGROUND_COLOR.NEUTRAL"}},{name:"elevation",type:{name:"RichListItemElevation"},defaultValue:{func:!1,value:"null"}},{name:"hasDraggableHandler",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"hasActionsSlotDivider",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isSelectable",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"isSelected",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isTextGroupSelected",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"update:is-selected"}],slots:[{name:"media"},{name:"metadata"},{name:"actions"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue"]};export{k as B};
|
package/docs/assets/{BasicRichListItem.stories-ePDSld8d.js → BasicRichListItem.stories-Bwk6-q_S.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{B as l}from"./BasicRichListItem-
|
|
1
|
+
import{B as l}from"./BasicRichListItem-B1E5DYkk.js";import{w as h}from"./decorator-CSnIf-k5.js";import"./Avatar-DUThlKLV.js";import"./Badge-DSmH78WU.js";import"./BadgeScore-GfZixoUY.js";import"./Banner-DDGfdClH.js";import"./Button-yeAor0pZ.js";import"./ToggleButton-eR3n1vbs.js";import"./Card-BzXb8FVb.js";import"./CardExpandable-t59MJJJ1.js";import"./DatePicker-DHykkoW4.js";import"./DateRangePicker-DyLp3jfg.js";import"./Divider-CeZli6az.js";import"./FeatureIcon-Zls5aPDA.js";import{c as T,I as a}from"./Icon-BPz80dqH.js";import"./IconButton-gTykCZIi.js";import"./string-CFc0pFCE.js";import"./Modal-D7RDnkRT.js";import"./ModalDialog-D-FrIv9r.js";import"./NumberInCircle-CYZFaZ00.js";import"./TabItem-Cceq5FQB.js";import"./Tile-DvjxsEPO.js";import"./Toast-DKAzASvr.js";import"./AccessStatus-BKJi9u47.js";import"./BlockadeStatus-D6w6lZhK.js";import"./SurveyToggle-BECsKZHH.js";import"./SurveyQuestionScale-I7rmD2z-.js";import"./SurveyQuestionOpenEnded-DUybHAVt.js";import"./SectionHeader-CwB5neO2.js";import"./PageHeader-C5oCP3S2.js";import"./SectionTitle-BQZh7aFs.js";import"./Drawer-BAhS1Aex.js";import"./DrawerContent-BC_l9IKr.js";import"./DrawerDivider-DuTuIbLz.js";import"./DrawerHeader-CivXan1m.js";import"./DrawerListItem-BCPF0NKt.js";import"./DrawerListItemGroup-BTfrsZ_p.js";import"./DrawerTile-CTrRTsz5.js";import"./DrawerSection-B6PrbMVD.js";import"./OutlineItem-DqMRN7G1.js";import"./OutlineDivider-DItdz99b.js";import"./OutlineSectionHeader-CtypBCqR.js";import"./Chip-DmzVP4Nc.js";import"./CounterToggle-UTpNPOSH.js";import"./SelectList-T6eJOYPv.js";import"./SelectListItem-DPuR0fG2.js";import"./SelectListItemDivider-CTuILyj9.js";import"./SelectListItemToggle-Bd5zU5Vc.js";import"./SelectListItemTile-CWD-7N0p.js";import"./SelectListSectionTitle-BOCjrVHo.js";import"./SelectionTile-BuBzVZpf.js";import"./LoadingBar-C1yAImWt.js";import"./PopOver-DlmHqZVO.js";import"./Dropdown-B75bqkCY.js";import"./ProgressBar-DcRQqf-M.js";import"./ProgressDonutChart-O1ep3At7.js";import"./IconText-7zvo_ew8.js";import"./Pagination-xRPA6q3h.js";import"./OverlayHeader-D3BWUMCs.js";import"./Well-Chn1RK_x.js";import"./ThreeColumnLayout-CFf8NRwP.js";import{R as p,a as c,b as n,c as d,d as C,e as m,f as E}from"./GroupRichListItem-onOADtuh.js";import"./Switch-C8il24TP.js";import"./TextGroup-D5le3QVY.js";import"./Tooltip-DB8acOEc.js";import{I as O}from"./Image-B9jnhF_n.js";import"./Skeleton-DMxKKJ0Z.js";import"./vue.esm-bundler-DmkhfO_9.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./v4-BZawosSj.js";import"./iframe-B7O_YbfU.js";import"../sb-preview/runtime.js";import"./device-9fgosCm4.js";import"./user-_JB5aHqq.js";import"./SelectionControl-Xe-aYMrS.js";import"./vue-popper-DQfdblyw.js";import"./_commonjsHelpers-Chg3vePA.js";import"./Checkbox-K_NwPnQU.js";const{useArgs:y}=__STORYBOOK_MODULE_PREVIEW_API__,Xe={title:"Components/RichList/BasicRichListItem",component:l,decorators:[e=>({components:{story:e},template:"<div style='display: flex;padding: 16px;'><story /></div>"}),h]},v=(e,i={})=>(e.argTypes={type:{options:Object.values(p),control:"select"},size:{options:Object.values(c),control:"select"},layout:{options:Object.values(n),control:{type:"select"}},state:{options:Object.values(d),control:"select"},iconColor:{options:[null,...Object.values(T)],control:"select"},borderColor:{options:[null,...Object.values(C)],control:"select"},icon:{options:[null,...Object.keys(a)],control:"select"},iconColorHex:{control:"text"},borderColorHex:{control:"text"},eyebrow:{control:"text"},eyebrowEllipsis:{control:"boolean"},isEyebrowUppercase:{control:"boolean"},text:{control:"text"},textEllipsis:{control:"boolean"},supportingText:{control:"text"},supportingTextEllipsis:{control:"boolean"},isSupportingTextTooltipEnabled:{control:"boolean"},metadata:{control:"text"},actions:{control:"text"},draggableIconClassName:{control:"text"},backgroundColor:{options:[null,...Object.values(m)],control:"select"},elevation:{options:[null,...Object.values(E)],control:"select"}},e.args={size:c.MEDIUM,type:p.DEFAULT,layout:n.HORIZONTAL,backgroundColor:m.NEUTRAL,elevation:null,isDimmed:!1,isDraggable:!0,hasDraggableHandler:!0,icon:null,iconColor:null,iconColorHex:"",hasActionsSlotDivider:!0,isSelectable:!0,isSelected:!0,isTextGroupSelected:!1,borderColor:null,borderColorHex:"",state:d.DEFAULT,isInteractive:!0,draggableIconClassName:"draggableIconClassName-1",eyebrow:"Eyebrow Uppercase",eyebrowEllipsis:!1,isEyebrowUppercase:!1,text:"Długa nazwa gdy się nie mieści Praesentium dicta sit. Molestiae unde voluptatem eaque labore.",textEllipsis:!1,supportingText:"null",supportingTextEllipsis:!1,isSupportingTextTooltipEnabled:!1,metadata:"Metadata Slot",actions:"ACS",...i},e.parameters={actions:{handles:["icon-click","click","update:is-selected"]},layout:"fullscreen",design:{type:"figma",url:"https://www.figma.com/file/izQdYyiBR1GQgFkaOIfIJI/LMS---DS-Components?type=design&node-id=8673-2345&mode=design&t=QeEz8TmzxDbrGYK3-4"}},e),w=e=>{const[i,r]=y();return{components:{BasicRichListItem:l},setup(){return e},data(){return{ICONS:Object.freeze(a)}},methods:{updateIsSelected(s){r({isSelected:s})}},template:`
|
|
2
2
|
<basic-rich-list-item
|
|
3
3
|
:size="size"
|
|
4
4
|
:type="type"
|