webcake-ui-kit 1.1.34 → 1.1.35
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/package.json
CHANGED
|
@@ -25,17 +25,21 @@
|
|
|
25
25
|
</div>
|
|
26
26
|
<template #footer>
|
|
27
27
|
<slot name="footer">
|
|
28
|
-
<Button
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
<Button
|
|
29
|
+
size="sm"
|
|
30
|
+
:variant="cancelVariant"
|
|
31
|
+
class="ui-alert-dialog-btn"
|
|
32
|
+
@click="handleCancel"
|
|
33
|
+
:label="cancelText"
|
|
34
|
+
/>
|
|
31
35
|
<Button
|
|
32
36
|
size="sm"
|
|
33
37
|
:variant="okVariant"
|
|
34
38
|
:loading="confirmLoading"
|
|
35
39
|
class="ui-alert-dialog-btn"
|
|
36
40
|
@click="handleOk"
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
:label="okText"
|
|
42
|
+
/>
|
|
39
43
|
</slot>
|
|
40
44
|
</template>
|
|
41
45
|
</Dialog>
|
|
@@ -127,7 +127,16 @@
|
|
|
127
127
|
*/
|
|
128
128
|
import Menu from '../menu/Menu.vue'
|
|
129
129
|
import CalendarPanel from './CalendarPanel.vue'
|
|
130
|
-
import dayjs from '
|
|
130
|
+
import dayjs from 'dayjs'
|
|
131
|
+
import customParseFormat from 'dayjs/plugin/customParseFormat'
|
|
132
|
+
import localeData from 'dayjs/plugin/localeData'
|
|
133
|
+
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'
|
|
134
|
+
import isSameOrAfter from 'dayjs/plugin/isSameOrAfter'
|
|
135
|
+
|
|
136
|
+
dayjs.extend(customParseFormat)
|
|
137
|
+
dayjs.extend(localeData)
|
|
138
|
+
dayjs.extend(isSameOrBefore)
|
|
139
|
+
dayjs.extend(isSameOrAfter)
|
|
131
140
|
import { ISO, toDayjs, toISO, isDateDisabled, weekdayLabels, buildDayMatrix, orderISO } from './calendar.js'
|
|
132
141
|
import { WkiCalendar, WkiX } from '../../icons'
|
|
133
142
|
|
|
@@ -6,7 +6,12 @@
|
|
|
6
6
|
// its selection as ISO strings internally (stable identity, no deep-reactive
|
|
7
7
|
// Day.js objects in `data`) and only converts to Date/formatted output at the
|
|
8
8
|
// component boundary.
|
|
9
|
-
import dayjs from '
|
|
9
|
+
import dayjs from 'dayjs'
|
|
10
|
+
import customParseFormat from 'dayjs/plugin/customParseFormat'
|
|
11
|
+
import localeData from 'dayjs/plugin/localeData'
|
|
12
|
+
|
|
13
|
+
dayjs.extend(customParseFormat)
|
|
14
|
+
dayjs.extend(localeData)
|
|
10
15
|
|
|
11
16
|
export const ISO = 'YYYY-MM-DD'
|
|
12
17
|
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// Configured Day.js singleton for the date-picker.
|
|
2
|
-
//
|
|
3
|
-
// Day.js ships as a tiny core; every feature the picker needs (custom format
|
|
4
|
-
// parsing, locale-aware week start, week/quarter numbers, inclusive comparisons)
|
|
5
|
-
// lives in an opt-in plugin. We register them ONCE here and re-export the same
|
|
6
|
-
// instance so every date-picker file shares one configured dayjs — importing
|
|
7
|
-
// `dayjs` directly elsewhere would get the unconfigured core.
|
|
8
|
-
//
|
|
9
|
-
// `dayjs.extend` is idempotent (re-extending with the same plugin is a no-op),
|
|
10
|
-
// so this module is safe to import from multiple files under both the Vite
|
|
11
|
-
// (Vue 3) and webpack (Vue 2) bundlers.
|
|
12
|
-
import dayjs from 'dayjs'
|
|
13
|
-
|
|
14
|
-
import customParseFormat from 'dayjs/plugin/customParseFormat'
|
|
15
|
-
import localeData from 'dayjs/plugin/localeData'
|
|
16
|
-
import weekday from 'dayjs/plugin/weekday'
|
|
17
|
-
import weekOfYear from 'dayjs/plugin/weekOfYear'
|
|
18
|
-
import isoWeek from 'dayjs/plugin/isoWeek'
|
|
19
|
-
import advancedFormat from 'dayjs/plugin/advancedFormat'
|
|
20
|
-
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'
|
|
21
|
-
import isSameOrAfter from 'dayjs/plugin/isSameOrAfter'
|
|
22
|
-
import quarterOfYear from 'dayjs/plugin/quarterOfYear'
|
|
23
|
-
|
|
24
|
-
dayjs.extend(customParseFormat)
|
|
25
|
-
dayjs.extend(localeData)
|
|
26
|
-
dayjs.extend(weekday)
|
|
27
|
-
dayjs.extend(weekOfYear)
|
|
28
|
-
dayjs.extend(isoWeek)
|
|
29
|
-
dayjs.extend(advancedFormat)
|
|
30
|
-
dayjs.extend(isSameOrBefore)
|
|
31
|
-
dayjs.extend(isSameOrAfter)
|
|
32
|
-
dayjs.extend(quarterOfYear)
|
|
33
|
-
|
|
34
|
-
export default dayjs
|