webcake-ui-kit 1.1.35 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webcake-ui-kit",
3
- "version": "1.1.35",
3
+ "version": "1.1.37",
4
4
  "description": "UI Kit for Vue 2 && 3 - Pure Options API",
5
5
  "main": "src/index.js",
6
6
  "module": "src/index.js",
@@ -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 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)
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 customParseFormat from 'dayjs/plugin/customParseFormat'
11
- import localeData from 'dayjs/plugin/localeData'
12
-
13
- dayjs.extend(customParseFormat)
14
- dayjs.extend(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