@semcore/date-picker 3.0.8 → 3.0.11
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/CHANGELOG.md +18 -0
- package/README.md +72 -0
- package/lib/cjs/components/Calendar.js +17 -17
- package/lib/cjs/components/PickerAbstract.js +7 -7
- package/lib/cjs/components/RangePickerAbstract.js +7 -7
- package/lib/cjs/components/index.js +3 -3
- package/lib/es6/components/Calendar.js +17 -17
- package/lib/es6/components/PickerAbstract.js +7 -7
- package/lib/es6/components/RangePickerAbstract.js +7 -7
- package/lib/es6/components/index.js +3 -3
- package/package.json +2 -2
- package/src/DatePicker.jsx +0 -113
- package/src/DateRangePicker.jsx +0 -91
- package/src/MonthPicker.jsx +0 -71
- package/src/MonthRangePicker.jsx +0 -108
- package/src/components/ButtonTrigger.jsx +0 -23
- package/src/components/Calendar.jsx +0 -284
- package/src/components/PickerAbstract.jsx +0 -199
- package/src/components/RangePickerAbstract.jsx +0 -340
- package/src/components/index.jsx +0 -121
- package/src/index.d.ts +0 -355
- package/src/index.js +0 -8
- package/src/style/calendar.shadow.css +0 -190
- package/src/style/date-picker.shadow.css +0 -49
- package/src/translations/de.json +0 -13
- package/src/translations/en.json +0 -13
- package/src/translations/es.json +0 -13
- package/src/translations/fr.json +0 -13
- package/src/translations/it.json +0 -13
- package/src/translations/ja.json +0 -13
- package/src/translations/ko.json +0 -13
- package/src/translations/pt.json +0 -13
- package/src/translations/ru.json +0 -13
- package/src/translations/vi.json +0 -13
- package/src/translations/zh.json +0 -13
- package/src/utils/cronTabScheduler.js +0 -99
- package/src/utils/formatDate.js +0 -8
- package/src/utils/includesDate.js +0 -13
- package/src/utils/shortDateRangeFormat.js +0 -70
package/src/index.d.ts
DELETED
|
@@ -1,355 +0,0 @@
|
|
|
1
|
-
import React, { ComponentProps } from 'react';
|
|
2
|
-
import dayjs from 'dayjs';
|
|
3
|
-
import { Box, IBoxProps } from '@semcore/flex-box';
|
|
4
|
-
import Button from '@semcore/button';
|
|
5
|
-
import { CProps, Merge, PropGetterFn, ReturnEl } from '@semcore/core';
|
|
6
|
-
import Dropdown, { IDropdownProps } from '@semcore/dropdown';
|
|
7
|
-
import { IWithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';
|
|
8
|
-
import BaseTrigger from '@semcore/base-trigger';
|
|
9
|
-
|
|
10
|
-
export type DateConstructorParams = string | number | Date;
|
|
11
|
-
|
|
12
|
-
export interface ICalendarProps extends IBoxProps {
|
|
13
|
-
/**
|
|
14
|
-
* Locale for displaying the days of a week and months, to be transferred to `Intl`
|
|
15
|
-
* @default en
|
|
16
|
-
* */
|
|
17
|
-
locale?: NavigatorLanguage['language'];
|
|
18
|
-
/**
|
|
19
|
-
* Array of dates blocked for selection
|
|
20
|
-
* Accepts the date, the range of dates or `falsICalendarPropse` for specifying infinity ([Date | false, Date | false]), crontab( 6,7)
|
|
21
|
-
* */
|
|
22
|
-
disabled?: (Date | (Date | false)[] | string)[];
|
|
23
|
-
/**
|
|
24
|
-
* @ignore
|
|
25
|
-
* */
|
|
26
|
-
highlighted?: DateConstructorParams[];
|
|
27
|
-
/**
|
|
28
|
-
* @ignore
|
|
29
|
-
* */
|
|
30
|
-
onHighlightedChange?: (date: Date[]) => void;
|
|
31
|
-
/**
|
|
32
|
-
* The selected date, accepts everything which is accepted by `new Date()`
|
|
33
|
-
* */
|
|
34
|
-
value?: DateConstructorParams[];
|
|
35
|
-
/**
|
|
36
|
-
* To be activated upon selecting the date
|
|
37
|
-
* */
|
|
38
|
-
onChange?: (date: Date[]) => void;
|
|
39
|
-
/**
|
|
40
|
-
* Date for showing the necessary month
|
|
41
|
-
* @default new Date()
|
|
42
|
-
* */
|
|
43
|
-
displayedPeriod?: Date;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export interface ICalendarDaysContext {
|
|
47
|
-
days: ICalendarUnitProps[];
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export interface ICalendarMonthsContext {
|
|
51
|
-
months: ICalendarUnitProps[];
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface ICalendarUnitProps extends IBoxProps {
|
|
55
|
-
selected?: boolean;
|
|
56
|
-
outdated?: boolean;
|
|
57
|
-
disabled?: boolean;
|
|
58
|
-
today?: boolean;
|
|
59
|
-
startSelected?: boolean;
|
|
60
|
-
endSelected?: boolean;
|
|
61
|
-
highlighted?: boolean;
|
|
62
|
-
startHighlighted?: boolean;
|
|
63
|
-
endHighlighted?: boolean;
|
|
64
|
-
children?: React.ReactNode;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface ICalendarContext {
|
|
68
|
-
getUnitProps: PropGetterFn;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
declare const Calendar: (<T>(
|
|
72
|
-
props: CProps<ICalendarProps & T, ICalendarContext, IAbstractDatePickerHandlers>,
|
|
73
|
-
) => ReturnEl) & {
|
|
74
|
-
Unit: <T>(props: ICalendarUnitProps & T) => ReturnEl;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
export interface IDatePickerProps extends IDropdownProps, IWithI18nEnhanceProps {
|
|
78
|
-
/**
|
|
79
|
-
* The selected date, accepts everything which is accepted by `new Date()`
|
|
80
|
-
* */
|
|
81
|
-
value?: DateConstructorParams;
|
|
82
|
-
/**
|
|
83
|
-
* To be activated upon selecting the date
|
|
84
|
-
* */
|
|
85
|
-
onChange?: (date: Date) => void;
|
|
86
|
-
/**
|
|
87
|
-
* Array of dates blocked for selection
|
|
88
|
-
* */
|
|
89
|
-
disabled?: (Date | (Date | false)[] | string)[];
|
|
90
|
-
/**
|
|
91
|
-
* Date for showing the necessary month
|
|
92
|
-
* @default new Date()
|
|
93
|
-
* */
|
|
94
|
-
displayedPeriod?: DateConstructorParams;
|
|
95
|
-
/**
|
|
96
|
-
* To be activated upon changing the current shown month
|
|
97
|
-
* */
|
|
98
|
-
onDisplayedPeriodChange?: (date: Date) => void;
|
|
99
|
-
/**
|
|
100
|
-
* Component size
|
|
101
|
-
* @default m
|
|
102
|
-
*/
|
|
103
|
-
size?: 'm' | 'l';
|
|
104
|
-
/**
|
|
105
|
-
* The selected date, accepts everything which is accepted by `new Date()`
|
|
106
|
-
* */
|
|
107
|
-
highlighted?: DateConstructorParams[];
|
|
108
|
-
/**
|
|
109
|
-
* Default value selected date, accepts everything which is accepted by `new Date()`
|
|
110
|
-
* */
|
|
111
|
-
defaultValue?: DateConstructorParams;
|
|
112
|
-
/**
|
|
113
|
-
* Default value date for showing the necessary month
|
|
114
|
-
* */
|
|
115
|
-
defaultDisplayedPeriod?: DateConstructorParams;
|
|
116
|
-
/**
|
|
117
|
-
* Default value selected date, accepts everything which is accepted by `new Date()`
|
|
118
|
-
* */
|
|
119
|
-
defaultHighlighted?: DateConstructorParams[];
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export interface IDateRangePickerProps extends IDropdownProps, IWithI18nEnhanceProps {
|
|
123
|
-
/**
|
|
124
|
-
* The selected date, accepts everything which is accepted by `new Date()`
|
|
125
|
-
* */
|
|
126
|
-
value?: DateConstructorParams[];
|
|
127
|
-
/**
|
|
128
|
-
* Default value selected date, accepts everything which is accepted by `new Date()`
|
|
129
|
-
* */
|
|
130
|
-
defaultValue?: DateConstructorParams[];
|
|
131
|
-
/**
|
|
132
|
-
* Default value date for showing the necessary month
|
|
133
|
-
* */
|
|
134
|
-
defaultDisplayedPeriod?: DateConstructorParams;
|
|
135
|
-
/**
|
|
136
|
-
* Default value selected date, accepts everything which is accepted by `new Date()`
|
|
137
|
-
* */
|
|
138
|
-
defaultHighlighted?: DateConstructorParams[];
|
|
139
|
-
/**
|
|
140
|
-
* To be activated upon selecting the date
|
|
141
|
-
* */
|
|
142
|
-
onChange?: (date: Date[]) => void;
|
|
143
|
-
/**
|
|
144
|
-
* Array of dates blocked for selection
|
|
145
|
-
* */
|
|
146
|
-
disabled?: (Date | (Date | false)[] | string)[];
|
|
147
|
-
/**
|
|
148
|
-
* Date for showing the necessary month
|
|
149
|
-
* @default new Date()
|
|
150
|
-
* */
|
|
151
|
-
displayedPeriod?: DateConstructorParams;
|
|
152
|
-
/**
|
|
153
|
-
* To be activated upon changing the current shown month
|
|
154
|
-
* */
|
|
155
|
-
onDisplayedPeriodChange?: (date: Date) => void;
|
|
156
|
-
/**
|
|
157
|
-
* Component size
|
|
158
|
-
* @default m
|
|
159
|
-
*/
|
|
160
|
-
size?: 'm' | 'l' | 'xl';
|
|
161
|
-
/**
|
|
162
|
-
* The selected date, accepts everything which is accepted by `new Date()`
|
|
163
|
-
* */
|
|
164
|
-
highlighted?: DateConstructorParams[];
|
|
165
|
-
/**
|
|
166
|
-
* Remove the 'Reset' button
|
|
167
|
-
* */
|
|
168
|
-
unclearable?: boolean;
|
|
169
|
-
/**
|
|
170
|
-
* To be activated upon selecting the date
|
|
171
|
-
* */
|
|
172
|
-
onHighlightedChange?: (date: Date[]) => void;
|
|
173
|
-
/**
|
|
174
|
-
* Array of periods
|
|
175
|
-
* [{value: [new Date(), new Date()], children: "Today"}]
|
|
176
|
-
* @default Past 2 days / Past week / Past 2 week / Past month / Past 2 month
|
|
177
|
-
* */
|
|
178
|
-
periods?: (ComponentProps<typeof Button> & { value: Date[] })[];
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
export interface IDateRangePickerPeriodProps extends IBoxProps {
|
|
182
|
-
/**
|
|
183
|
-
* Current selected period
|
|
184
|
-
* */
|
|
185
|
-
value?: DateConstructorParams[];
|
|
186
|
-
/**
|
|
187
|
-
* To be activated by clicking the button for switching the selected period.
|
|
188
|
-
* */
|
|
189
|
-
onChange?: (date: Date[]) => void;
|
|
190
|
-
/**
|
|
191
|
-
* To be activated by hovering a cursor over the button for changing the current displayed month.
|
|
192
|
-
* */
|
|
193
|
-
onDisplayedPeriodChange?: (date: Date) => void;
|
|
194
|
-
/**
|
|
195
|
-
* To be activated by hovering a cursor over the button for selecting the dates.
|
|
196
|
-
* */
|
|
197
|
-
onHighlightedChange?: (date: Date[]) => void;
|
|
198
|
-
/**
|
|
199
|
-
* Array of periods
|
|
200
|
-
* [{value: [new Date(), new Date()], children: "Today"}]
|
|
201
|
-
* @default Past 2 days / Past week / Past 2 week / Past month / Past 2 month
|
|
202
|
-
* */
|
|
203
|
-
periods?: (ComponentProps<typeof Button> & { value: Date[] })[];
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export interface IDatePickerContext {
|
|
207
|
-
getTriggerProps: PropGetterFn;
|
|
208
|
-
getPopperProps: PropGetterFn;
|
|
209
|
-
getHeaderProps: PropGetterFn;
|
|
210
|
-
getTitleProps: PropGetterFn;
|
|
211
|
-
getNextProps: PropGetterFn;
|
|
212
|
-
getPrevProps: PropGetterFn;
|
|
213
|
-
getCalendarProps: PropGetterFn;
|
|
214
|
-
getTodayProps: PropGetterFn;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
export interface IAbstractDatePickerHandlers {
|
|
218
|
-
displayedPeriod: (value: DateConstructorParams) => void;
|
|
219
|
-
visible: (index: boolean) => void;
|
|
220
|
-
highlighted: (list: DateConstructorParams[]) => void;
|
|
221
|
-
value: (index: DateConstructorParams) => void;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
export interface IDatePickerHandlers {
|
|
225
|
-
visible: (index: boolean) => void;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
declare const DatePicker: ((
|
|
229
|
-
props: CProps<IDatePickerProps, IDatePickerContext & ICalendarDaysContext, IDatePickerHandlers>,
|
|
230
|
-
) => ReturnEl) & {
|
|
231
|
-
Trigger: (<T>(
|
|
232
|
-
props: Merge<ComponentProps<typeof Dropdown.Trigger>, ComponentProps<typeof BaseTrigger>> & T,
|
|
233
|
-
) => ReturnEl) & {
|
|
234
|
-
Addon: typeof BaseTrigger.Addon;
|
|
235
|
-
Text: typeof BaseTrigger.Text;
|
|
236
|
-
};
|
|
237
|
-
Popper: typeof Dropdown.Popper;
|
|
238
|
-
Header: typeof Box;
|
|
239
|
-
Title: <T>(props: CProps<IDatePickerProps & IBoxProps & T, IDatePickerContext>) => ReturnEl;
|
|
240
|
-
Prev: typeof Button;
|
|
241
|
-
Next: typeof Button;
|
|
242
|
-
Calendar: typeof Calendar;
|
|
243
|
-
Today: typeof Box;
|
|
244
|
-
add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;
|
|
245
|
-
subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
export interface IDateRangePickerContext {
|
|
249
|
-
getTriggerProps: PropGetterFn;
|
|
250
|
-
getPopperProps: PropGetterFn;
|
|
251
|
-
getHeaderProps: PropGetterFn;
|
|
252
|
-
getTitleProps: PropGetterFn;
|
|
253
|
-
getNextProps: PropGetterFn;
|
|
254
|
-
getPrevProps: PropGetterFn;
|
|
255
|
-
getCalendarProps: PropGetterFn;
|
|
256
|
-
getPeriodProps: PropGetterFn;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
declare const DateRangePicker: ((
|
|
260
|
-
props: CProps<
|
|
261
|
-
IDateRangePickerProps,
|
|
262
|
-
IDateRangePickerContext & ICalendarDaysContext,
|
|
263
|
-
IDatePickerHandlers
|
|
264
|
-
>,
|
|
265
|
-
) => ReturnEl) & {
|
|
266
|
-
Trigger: (<T>(
|
|
267
|
-
props: Merge<ComponentProps<typeof Dropdown.Trigger>, ComponentProps<typeof BaseTrigger>> & T,
|
|
268
|
-
) => ReturnEl) & {
|
|
269
|
-
Addon: typeof BaseTrigger.Addon;
|
|
270
|
-
Text: typeof BaseTrigger.Text;
|
|
271
|
-
};
|
|
272
|
-
Popper: <T>(props: ComponentProps<typeof Dropdown.Popper> & T) => ReturnEl;
|
|
273
|
-
Header: typeof Box;
|
|
274
|
-
Title: <T>(
|
|
275
|
-
props: CProps<IDateRangePickerProps & IBoxProps & T, IDateRangePickerContext>,
|
|
276
|
-
) => ReturnEl;
|
|
277
|
-
Prev: typeof Button;
|
|
278
|
-
Next: typeof Button;
|
|
279
|
-
Calendar: typeof Calendar;
|
|
280
|
-
Period: <T>(props: IDateRangePickerPeriodProps & T) => ReturnEl;
|
|
281
|
-
add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;
|
|
282
|
-
subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;
|
|
283
|
-
};
|
|
284
|
-
|
|
285
|
-
export interface IMonthPickerContext {
|
|
286
|
-
getTriggerProps: PropGetterFn;
|
|
287
|
-
getPopperProps: PropGetterFn;
|
|
288
|
-
getHeaderProps: PropGetterFn;
|
|
289
|
-
getTitleProps: PropGetterFn;
|
|
290
|
-
getNextProps: PropGetterFn;
|
|
291
|
-
getPrevProps: PropGetterFn;
|
|
292
|
-
getCalendarProps: PropGetterFn;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
declare const MonthPicker: ((
|
|
296
|
-
props: CProps<
|
|
297
|
-
IDatePickerProps,
|
|
298
|
-
IMonthPickerContext & ICalendarMonthsContext,
|
|
299
|
-
IDatePickerHandlers
|
|
300
|
-
>,
|
|
301
|
-
) => ReturnEl) & {
|
|
302
|
-
Trigger: (<T>(
|
|
303
|
-
props: Merge<ComponentProps<typeof Dropdown.Trigger>, ComponentProps<typeof BaseTrigger>> & T,
|
|
304
|
-
) => ReturnEl) & {
|
|
305
|
-
Addon: typeof BaseTrigger.Addon;
|
|
306
|
-
Text: typeof BaseTrigger.Text;
|
|
307
|
-
};
|
|
308
|
-
Popper: typeof Dropdown.Popper;
|
|
309
|
-
Header: typeof Box;
|
|
310
|
-
Title: <T>(props: CProps<IDatePickerProps & IBoxProps & T, IMonthPickerContext>) => ReturnEl;
|
|
311
|
-
Prev: typeof Button;
|
|
312
|
-
Next: typeof Button;
|
|
313
|
-
Calendar: typeof Calendar;
|
|
314
|
-
add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;
|
|
315
|
-
subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;
|
|
316
|
-
};
|
|
317
|
-
|
|
318
|
-
export interface IMonthRangePickerContext {
|
|
319
|
-
getTriggerProps: PropGetterFn;
|
|
320
|
-
getPopperProps: PropGetterFn;
|
|
321
|
-
getHeaderProps: PropGetterFn;
|
|
322
|
-
getTitleProps: PropGetterFn;
|
|
323
|
-
getNextProps: PropGetterFn;
|
|
324
|
-
getPrevProps: PropGetterFn;
|
|
325
|
-
getCalendarProps: PropGetterFn;
|
|
326
|
-
getPeriodProps: PropGetterFn;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
declare const MonthRangePicker: ((
|
|
330
|
-
props: CProps<
|
|
331
|
-
IDateRangePickerProps,
|
|
332
|
-
IMonthRangePickerContext & ICalendarMonthsContext,
|
|
333
|
-
IDatePickerHandlers
|
|
334
|
-
>,
|
|
335
|
-
) => ReturnEl) & {
|
|
336
|
-
Trigger: (<T>(
|
|
337
|
-
props: Merge<ComponentProps<typeof Dropdown.Trigger>, ComponentProps<typeof BaseTrigger>> & T,
|
|
338
|
-
) => ReturnEl) & {
|
|
339
|
-
Addon: typeof BaseTrigger.Addon;
|
|
340
|
-
Text: typeof BaseTrigger.Text;
|
|
341
|
-
};
|
|
342
|
-
Popper: typeof Dropdown.Popper;
|
|
343
|
-
Header: typeof Box;
|
|
344
|
-
Title: <T>(
|
|
345
|
-
props: CProps<IDateRangePickerProps & IBoxProps & T, IMonthRangePickerContext>,
|
|
346
|
-
) => ReturnEl;
|
|
347
|
-
Prev: typeof Button;
|
|
348
|
-
Next: typeof Button;
|
|
349
|
-
Calendar: typeof Calendar;
|
|
350
|
-
Period: <T>(props: IDateRangePickerPeriodProps & T) => ReturnEl;
|
|
351
|
-
add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;
|
|
352
|
-
subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;
|
|
353
|
-
};
|
|
354
|
-
|
|
355
|
-
export { DatePicker, DateRangePicker, MonthPicker, MonthRangePicker };
|
package/src/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { default as DatePicker } from './DatePicker';
|
|
2
|
-
export * from './DatePicker';
|
|
3
|
-
|
|
4
|
-
export { default as DateRangePicker } from './DateRangePicker';
|
|
5
|
-
|
|
6
|
-
export { default as MonthPicker } from './MonthPicker';
|
|
7
|
-
|
|
8
|
-
export { default as MonthRangePicker } from './MonthRangePicker';
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
@import '@semcore/utils/style/var.css';
|
|
2
|
-
|
|
3
|
-
SCalendar {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
SGridDays {
|
|
9
|
-
display: grid;
|
|
10
|
-
grid-template-columns: repeat(7, minmax(32px, auto));
|
|
11
|
-
grid-template-rows: repeat(auto-fit, minmax(32px, auto));
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
SGridMonths {
|
|
15
|
-
display: grid;
|
|
16
|
-
grid-row-gap: 8px;
|
|
17
|
-
grid-template-columns: repeat(3, minmax(60px, auto));
|
|
18
|
-
grid-template-rows: repeat(4, minmax(32px, auto));
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
SWeekDays {
|
|
22
|
-
display: grid;
|
|
23
|
-
grid-template-columns: repeat(7, minmax(32px, auto));
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
SWeekDay {
|
|
27
|
-
min-width: 32px;
|
|
28
|
-
min-height: 32px;
|
|
29
|
-
display: flex;
|
|
30
|
-
align-items: center;
|
|
31
|
-
justify-content: center;
|
|
32
|
-
color: var(--gray-500);
|
|
33
|
-
font-size: var(--fs-200);
|
|
34
|
-
font-weight: 400;
|
|
35
|
-
overflow: hidden;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
SCalendarUnit {
|
|
39
|
-
font-family: inherit;
|
|
40
|
-
font-weight: normal;
|
|
41
|
-
line-height: normal;
|
|
42
|
-
text-decoration: none;
|
|
43
|
-
text-align: center;
|
|
44
|
-
vertical-align: middle;
|
|
45
|
-
border: 1px solid transparent;
|
|
46
|
-
color: var(--gray-800);
|
|
47
|
-
outline: 0;
|
|
48
|
-
box-shadow: none;
|
|
49
|
-
overflow: visible;
|
|
50
|
-
user-select: none;
|
|
51
|
-
touch-action: manipulation;
|
|
52
|
-
-webkit-tap-highlight-color: transparent;
|
|
53
|
-
background: transparent;
|
|
54
|
-
|
|
55
|
-
align-items: center;
|
|
56
|
-
border-radius: var(--rounded-m);
|
|
57
|
-
box-sizing: border-box;
|
|
58
|
-
cursor: pointer;
|
|
59
|
-
display: flex;
|
|
60
|
-
font-size: var(--fs-200);
|
|
61
|
-
justify-content: center;
|
|
62
|
-
min-height: 32px;
|
|
63
|
-
min-width: 32px;
|
|
64
|
-
position: relative;
|
|
65
|
-
transition: color 0.15s, background 0.15s;
|
|
66
|
-
outline: none;
|
|
67
|
-
|
|
68
|
-
&:hover {
|
|
69
|
-
color: var(--gray-800);
|
|
70
|
-
background: var(--gray-100);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&:focus-visible {
|
|
74
|
-
box-shadow: var(--keyboard-focus);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
SCalendarUnit[today] {
|
|
79
|
-
&:before {
|
|
80
|
-
content: '';
|
|
81
|
-
position: absolute;
|
|
82
|
-
display: block;
|
|
83
|
-
top: 1px;
|
|
84
|
-
left: 1px;
|
|
85
|
-
border-radius: var(--rounded-m);
|
|
86
|
-
width: calc(100% - 2px);
|
|
87
|
-
height: calc(100% - 2px);
|
|
88
|
-
box-sizing: border-box;
|
|
89
|
-
border: 1px solid var(--gray-200);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
SCalendarUnit[today]SCalendarUnit[startSelected],
|
|
94
|
-
SCalendarUnit[today]SCalendarUnit[endSelected] {
|
|
95
|
-
&:before {
|
|
96
|
-
border-color: color-mod(white alpha(50%));
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
SCalendarUnit[selected] {
|
|
101
|
-
background: var(--blue-100);
|
|
102
|
-
border-radius: 0;
|
|
103
|
-
color: var(--gray-800);
|
|
104
|
-
|
|
105
|
-
&:hover {
|
|
106
|
-
background: var(--blue-400);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
SCalendarUnit[highlighted] {
|
|
111
|
-
background: color-mod(var(--blue-400) alpha(20%));
|
|
112
|
-
border-radius: 0;
|
|
113
|
-
color: var(--gray-800);
|
|
114
|
-
|
|
115
|
-
&:hover {
|
|
116
|
-
background: color-mod(var(--blue-400) alpha(30%));
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
SCalendarUnit[startSelected] {
|
|
121
|
-
border-bottom-left-radius: var(--rounded-m);
|
|
122
|
-
border-bottom-right-radius: 0;
|
|
123
|
-
border-top-left-radius: var(--rounded-m);
|
|
124
|
-
border-top-right-radius: 0;
|
|
125
|
-
color: white;
|
|
126
|
-
background: var(--blue-300);
|
|
127
|
-
|
|
128
|
-
&:hover {
|
|
129
|
-
color: white;
|
|
130
|
-
background: var(--blue-400);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
SCalendarUnit[endSelected] {
|
|
135
|
-
background: var(--blue-300);
|
|
136
|
-
border-bottom-left-radius: 0;
|
|
137
|
-
border-bottom-right-radius: var(--rounded-m);
|
|
138
|
-
border-top-left-radius: 0;
|
|
139
|
-
border-top-right-radius: var(--rounded-m);
|
|
140
|
-
color: white;
|
|
141
|
-
|
|
142
|
-
&:hover {
|
|
143
|
-
color: white;
|
|
144
|
-
background: var(--blue-400);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
SCalendarUnit[startHighlighted] {
|
|
149
|
-
border-bottom-left-radius: var(--rounded-m);
|
|
150
|
-
border-bottom-right-radius: 0;
|
|
151
|
-
border-top-left-radius: var(--rounded-m);
|
|
152
|
-
border-top-right-radius: 0;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
SCalendarUnit[endHighlighted] {
|
|
156
|
-
border-bottom-left-radius: 0;
|
|
157
|
-
border-bottom-right-radius: var(--rounded-m);
|
|
158
|
-
border-top-left-radius: 0;
|
|
159
|
-
border-top-right-radius: var(--rounded-m);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
SCalendarUnit[startHighlighted]SCalendarUnit[endHighlighted] {
|
|
163
|
-
border-bottom-left-radius: var(--rounded-m);
|
|
164
|
-
border-bottom-right-radius: var(--rounded-m);
|
|
165
|
-
border-top-left-radius: var(--rounded-m);
|
|
166
|
-
border-top-right-radius: var(--rounded-m);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
SCalendarUnit[startSelected]SCalendarUnit[endSelected] {
|
|
170
|
-
border-bottom-left-radius: var(--rounded-m);
|
|
171
|
-
border-bottom-right-radius: var(--rounded-m);
|
|
172
|
-
border-top-left-radius: var(--rounded-m);
|
|
173
|
-
border-top-right-radius: var(--rounded-m);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
SCalendarUnit[outdated] {
|
|
177
|
-
opacity: 0.2;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
SCalendarUnit[disabled] {
|
|
181
|
-
opacity: 0.4;
|
|
182
|
-
cursor: default;
|
|
183
|
-
pointer-events: none;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
@media (prefers-reduced-motion) {
|
|
187
|
-
SCalendarUnit {
|
|
188
|
-
transition: none;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
@import '@semcore/utils/style/var.css';
|
|
2
|
-
|
|
3
|
-
SPopper {
|
|
4
|
-
padding: 16px;
|
|
5
|
-
outline: 0;
|
|
6
|
-
|
|
7
|
-
&::-moz-focus-inner {
|
|
8
|
-
border: none;
|
|
9
|
-
padding: 0;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&:active,
|
|
13
|
-
&:hover,
|
|
14
|
-
&:focus {
|
|
15
|
-
outline: 0;
|
|
16
|
-
text-decoration: none;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&:focus {
|
|
20
|
-
box-shadow: var(--keyboard-focus);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
SHeader {
|
|
25
|
-
display: flex;
|
|
26
|
-
align-items: center;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
STitle {
|
|
30
|
-
font-size: var(--fs-200);
|
|
31
|
-
color: var(--gray-800);
|
|
32
|
-
height: 32px;
|
|
33
|
-
width: 100%;
|
|
34
|
-
display: flex;
|
|
35
|
-
justify-content: center;
|
|
36
|
-
align-items: center;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
SToday {
|
|
40
|
-
display: flex;
|
|
41
|
-
margin-top: 12px;
|
|
42
|
-
justify-content: center;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
SPeriod {
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: column;
|
|
48
|
-
margin-bottom: 8px;
|
|
49
|
-
}
|
package/src/translations/de.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"apply": "Anwenden",
|
|
3
|
-
"reset": "Zurücksetzen",
|
|
4
|
-
"today": "Heute",
|
|
5
|
-
"last2Days": "Letzte 2 Tage",
|
|
6
|
-
"lastWeek": "Letzte Woche",
|
|
7
|
-
"last2Weeks": "Letzte 2 Wochen",
|
|
8
|
-
"lastMonth": "Letzten Monat",
|
|
9
|
-
"last2Months": "Letzte 2 Monate",
|
|
10
|
-
"last3Months": "Letzte 3 Monate",
|
|
11
|
-
"last6Months": "Letzte 6 Monate",
|
|
12
|
-
"last12Months": "Letzte 12 Monate"
|
|
13
|
-
}
|
package/src/translations/en.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"apply": "Apply",
|
|
3
|
-
"reset": "Reset",
|
|
4
|
-
"today": "Today",
|
|
5
|
-
"last2Days": "Last 2 days",
|
|
6
|
-
"lastWeek": "Last week",
|
|
7
|
-
"last2Weeks": "Last 2 weeks",
|
|
8
|
-
"lastMonth": "Last month",
|
|
9
|
-
"last2Months": "Last 2 months",
|
|
10
|
-
"last3Months": "Last 3 months",
|
|
11
|
-
"last6Months": "Last 6 months",
|
|
12
|
-
"last12Months": "Last 12 months"
|
|
13
|
-
}
|
package/src/translations/es.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"apply": "Aplicar",
|
|
3
|
-
"reset": "Resetear",
|
|
4
|
-
"today": "Hoy",
|
|
5
|
-
"last2Days": "Últimos 2 días",
|
|
6
|
-
"lastWeek": "Última semana",
|
|
7
|
-
"last2Weeks": "Últimas 2 semanas",
|
|
8
|
-
"lastMonth": "Último mes",
|
|
9
|
-
"last2Months": "Últimos 2 meses",
|
|
10
|
-
"last3Months": "Últimos 3 meses",
|
|
11
|
-
"last6Months": "Últimos 6 meses",
|
|
12
|
-
"last12Months": "Últimos 12 meses"
|
|
13
|
-
}
|
package/src/translations/fr.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"apply": "Appliquer",
|
|
3
|
-
"reset": "Réinitialiser",
|
|
4
|
-
"today": "Aujourd'hui",
|
|
5
|
-
"last2Days": "2 derniers jours",
|
|
6
|
-
"lastWeek": "La semaine dernière",
|
|
7
|
-
"last2Weeks": "2 dernières semaines",
|
|
8
|
-
"lastMonth": "Le mois dernier",
|
|
9
|
-
"last2Months": "2 derniers mois",
|
|
10
|
-
"last3Months": "3 derniers mois",
|
|
11
|
-
"last6Months": "6 derniers mois",
|
|
12
|
-
"last12Months": "12 derniers mois"
|
|
13
|
-
}
|
package/src/translations/it.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"apply": "Applica",
|
|
3
|
-
"reset": "Reimposta",
|
|
4
|
-
"today": "Oggi",
|
|
5
|
-
"last2Days": "Ultimi 2 giorni",
|
|
6
|
-
"lastWeek": "Ultima settimana",
|
|
7
|
-
"last2Weeks": "Ultime 2 settimane",
|
|
8
|
-
"lastMonth": "Ultimo mese",
|
|
9
|
-
"last2Months": "Ultimi 2 mesi",
|
|
10
|
-
"last3Months": "Ultimi 3 mesi",
|
|
11
|
-
"last6Months": "Ultimi 6 mesi",
|
|
12
|
-
"last12Months": "Ultimi 12 mesi"
|
|
13
|
-
}
|
package/src/translations/ja.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"apply": "適用",
|
|
3
|
-
"reset": "リセット",
|
|
4
|
-
"today": "今日",
|
|
5
|
-
"last2Days": "過去2日",
|
|
6
|
-
"lastWeek": "先週",
|
|
7
|
-
"last2Weeks": "直近2週間",
|
|
8
|
-
"lastMonth": "先月",
|
|
9
|
-
"last2Months": "過去2か月間",
|
|
10
|
-
"last3Months": "過去3か月間",
|
|
11
|
-
"last6Months": "過去6か月間",
|
|
12
|
-
"last12Months": "過去12か月間"
|
|
13
|
-
}
|
package/src/translations/ko.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"apply": "적용",
|
|
3
|
-
"reset": "재설정",
|
|
4
|
-
"today": "오늘",
|
|
5
|
-
"last2Days": "최근 2일",
|
|
6
|
-
"lastWeek": "지난 주",
|
|
7
|
-
"last2Weeks": "지난 2주",
|
|
8
|
-
"lastMonth": "지난 달",
|
|
9
|
-
"last2Months": "최근 2개월",
|
|
10
|
-
"last3Months": "최근 3개월",
|
|
11
|
-
"last6Months": "최근 6개월",
|
|
12
|
-
"last12Months": "최근 12개월"
|
|
13
|
-
}
|