webcake-ui-kit 1.1.36 → 1.1.37
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
|
@@ -127,16 +127,7 @@
|
|
|
127
127
|
*/
|
|
128
128
|
import Menu from '../menu/Menu.vue'
|
|
129
129
|
import CalendarPanel from './CalendarPanel.vue'
|
|
130
|
-
import dayjs from 'dayjs'
|
|
131
|
-
import * as _customParseFormat from 'dayjs/plugin/customParseFormat'
|
|
132
|
-
import * as _localeData from 'dayjs/plugin/localeData'
|
|
133
|
-
import * as _isSameOrBefore from 'dayjs/plugin/isSameOrBefore'
|
|
134
|
-
import * as _isSameOrAfter from 'dayjs/plugin/isSameOrAfter'
|
|
135
|
-
|
|
136
|
-
dayjs.extend(_customParseFormat.default || _customParseFormat)
|
|
137
|
-
dayjs.extend(_localeData.default || _localeData)
|
|
138
|
-
dayjs.extend(_isSameOrBefore.default || _isSameOrBefore)
|
|
139
|
-
dayjs.extend(_isSameOrAfter.default || _isSameOrAfter)
|
|
130
|
+
import dayjs from './dayjs.js'
|
|
140
131
|
import { ISO, toDayjs, toISO, isDateDisabled, weekdayLabels, buildDayMatrix, orderISO } from './calendar.js'
|
|
141
132
|
import { WkiCalendar, WkiX } from '../../icons'
|
|
142
133
|
|
|
@@ -6,12 +6,7 @@
|
|
|
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 'dayjs'
|
|
10
|
-
import * as _customParseFormat from 'dayjs/plugin/customParseFormat'
|
|
11
|
-
import * as _localeData from 'dayjs/plugin/localeData'
|
|
12
|
-
|
|
13
|
-
dayjs.extend(_customParseFormat.default || _customParseFormat)
|
|
14
|
-
dayjs.extend(_localeData.default || _localeData)
|
|
9
|
+
import dayjs from './dayjs.js'
|
|
15
10
|
|
|
16
11
|
export const ISO = 'YYYY-MM-DD'
|
|
17
12
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import dayjs from 'dayjs'
|
|
2
|
+
import * as _customParseFormat from 'dayjs/plugin/customParseFormat'
|
|
3
|
+
import * as _localeData from 'dayjs/plugin/localeData'
|
|
4
|
+
import * as _weekday from 'dayjs/plugin/weekday'
|
|
5
|
+
import * as _weekOfYear from 'dayjs/plugin/weekOfYear'
|
|
6
|
+
import * as _isoWeek from 'dayjs/plugin/isoWeek'
|
|
7
|
+
import * as _advancedFormat from 'dayjs/plugin/advancedFormat'
|
|
8
|
+
import * as _isSameOrBefore from 'dayjs/plugin/isSameOrBefore'
|
|
9
|
+
import * as _isSameOrAfter from 'dayjs/plugin/isSameOrAfter'
|
|
10
|
+
import * as _quarterOfYear from 'dayjs/plugin/quarterOfYear'
|
|
11
|
+
|
|
12
|
+
function resolvePlugin(mod, globalName) {
|
|
13
|
+
if (typeof mod === 'function') return mod
|
|
14
|
+
if (mod && typeof mod.default === 'function') return mod.default
|
|
15
|
+
return (typeof globalThis !== 'undefined' && globalThis[globalName]) || mod
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
dayjs.extend(resolvePlugin(_customParseFormat, 'dayjs_plugin_customParseFormat'))
|
|
19
|
+
dayjs.extend(resolvePlugin(_localeData, 'dayjs_plugin_localeData'))
|
|
20
|
+
dayjs.extend(resolvePlugin(_weekday, 'dayjs_plugin_weekday'))
|
|
21
|
+
dayjs.extend(resolvePlugin(_weekOfYear, 'dayjs_plugin_weekOfYear'))
|
|
22
|
+
dayjs.extend(resolvePlugin(_isoWeek, 'dayjs_plugin_isoWeek'))
|
|
23
|
+
dayjs.extend(resolvePlugin(_advancedFormat, 'dayjs_plugin_advancedFormat'))
|
|
24
|
+
dayjs.extend(resolvePlugin(_isSameOrBefore, 'dayjs_plugin_isSameOrBefore'))
|
|
25
|
+
dayjs.extend(resolvePlugin(_isSameOrAfter, 'dayjs_plugin_isSameOrAfter'))
|
|
26
|
+
dayjs.extend(resolvePlugin(_quarterOfYear, 'dayjs_plugin_quarterOfYear'))
|
|
27
|
+
|
|
28
|
+
export default dayjs
|