@yh-ui/components 0.1.43 → 0.1.45

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.
@@ -1,7 +1,7 @@
1
1
  <script setup>
2
2
  import { ref, computed, watch, onMounted } from "vue";
3
3
  import dayjs from "../../dayjs";
4
- import isoWeekPlugin from "dayjs/plugin/isoWeek.js";
4
+ import isoWeekPluginModule from "dayjs/plugin/isoWeek.js";
5
5
  import { useNamespace, useLocale } from "@yh-ui/hooks";
6
6
  import { useComponentTheme } from "@yh-ui/theme";
7
7
  import {
@@ -10,7 +10,7 @@ import {
10
10
  DEFAULT_CHINA_HOLIDAYS_2026
11
11
  } from "./calendar";
12
12
  import { YhButton } from "../../button";
13
- dayjs.extend(isoWeekPlugin);
13
+ dayjs.extend(isoWeekPluginModule);
14
14
  defineOptions({
15
15
  name: "YhCalendar"
16
16
  });
@@ -1,16 +1,16 @@
1
1
  import dayjs from "../../dayjs.mjs";
2
- import isBetweenPlugin from "dayjs/plugin/isBetween.js";
3
- import weekOfYearPlugin from "dayjs/plugin/weekOfYear.js";
4
- import isoWeekPlugin from "dayjs/plugin/isoWeek.js";
5
- import quarterOfYearPlugin from "dayjs/plugin/quarterOfYear.js";
6
- import advancedFormatPlugin from "dayjs/plugin/advancedFormat.js";
7
- import customParseFormatPlugin from "dayjs/plugin/customParseFormat.js";
8
- dayjs.extend(isBetweenPlugin);
9
- dayjs.extend(weekOfYearPlugin);
10
- dayjs.extend(isoWeekPlugin);
11
- dayjs.extend(quarterOfYearPlugin);
12
- dayjs.extend(advancedFormatPlugin);
13
- dayjs.extend(customParseFormatPlugin);
2
+ import isBetweenPluginModule from "dayjs/plugin/isBetween.js";
3
+ import weekOfYearPluginModule from "dayjs/plugin/weekOfYear.js";
4
+ import isoWeekPluginModule from "dayjs/plugin/isoWeek.js";
5
+ import quarterOfYearPluginModule from "dayjs/plugin/quarterOfYear.js";
6
+ import advancedFormatPluginModule from "dayjs/plugin/advancedFormat.js";
7
+ import customParseFormatPluginModule from "dayjs/plugin/customParseFormat.js";
8
+ dayjs.extend(isBetweenPluginModule);
9
+ dayjs.extend(weekOfYearPluginModule);
10
+ dayjs.extend(isoWeekPluginModule);
11
+ dayjs.extend(quarterOfYearPluginModule);
12
+ dayjs.extend(advancedFormatPluginModule);
13
+ dayjs.extend(customParseFormatPluginModule);
14
14
  export const DEFAULT_FORMATS = {
15
15
  date: "YYYY-MM-DD",
16
16
  datetime: "YYYY-MM-DD HH:mm:ss",
package/dist/dayjs.cjs CHANGED
@@ -4,8 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var dayjsModule = _interopRequireWildcard(require("dayjs"));
8
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
9
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
10
- const dayjs = "default" in dayjsModule ? dayjsModule.default ?? dayjsModule : dayjsModule;
11
- module.exports = dayjs;
7
+ var _dayjs = _interopRequireDefault(require("dayjs"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ module.exports = _dayjs.default;
package/dist/dayjs.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import type dayjsType from 'dayjs';
2
- declare const dayjs: typeof dayjsType;
3
- export default dayjs;
2
+ declare const _default: typeof dayjsType;
3
+ export default _default;
4
4
  export type { Dayjs, PluginFunc } from 'dayjs';
package/dist/dayjs.mjs CHANGED
@@ -1,3 +1,2 @@
1
- import * as dayjsModule from "dayjs";
2
- const dayjs = "default" in dayjsModule ? dayjsModule.default ?? dayjsModule : dayjsModule;
1
+ import dayjs from "dayjs";
3
2
  export default dayjs;
@@ -1,17 +1,17 @@
1
1
  <script setup>
2
2
  import { ref, computed, watch } from "vue";
3
3
  import dayjs from "../../dayjs";
4
- import isBetweenPlugin from "dayjs/plugin/isBetween.js";
5
- import isoWeekPlugin from "dayjs/plugin/isoWeek.js";
6
- import quarterOfYearPlugin from "dayjs/plugin/quarterOfYear.js";
4
+ import isBetweenPluginModule from "dayjs/plugin/isBetween.js";
5
+ import isoWeekPluginModule from "dayjs/plugin/isoWeek.js";
6
+ import quarterOfYearPluginModule from "dayjs/plugin/quarterOfYear.js";
7
7
  import { useNamespace } from "@yh-ui/hooks";
8
8
  import { useComponentTheme } from "@yh-ui/theme";
9
9
  import { YhTooltip } from "../../tooltip";
10
10
  import { YhInput } from "../../input";
11
11
  import { YhRadioGroup, YhRadioButton } from "../../radio";
12
- dayjs.extend(isBetweenPlugin);
13
- dayjs.extend(isoWeekPlugin);
14
- dayjs.extend(quarterOfYearPlugin);
12
+ dayjs.extend(isBetweenPluginModule);
13
+ dayjs.extend(isoWeekPluginModule);
14
+ dayjs.extend(quarterOfYearPluginModule);
15
15
  defineOptions({ name: "YhGanttChart" });
16
16
  const props = defineProps({
17
17
  data: { type: Array, required: true, default: () => [] },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yh-ui/components",
3
- "version": "0.1.43",
3
+ "version": "0.1.45",
4
4
  "description": "YH-UI Vue 3 Components",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -36,10 +36,10 @@
36
36
  "dependencies": {
37
37
  "@webcontainer/api": "^1.6.1",
38
38
  "@floating-ui/dom": "^1.7.4",
39
- "@yh-ui/hooks": "^0.1.43",
40
- "@yh-ui/locale": "^0.1.43",
41
- "@yh-ui/theme": "^0.1.43",
42
- "@yh-ui/utils": "^0.1.43",
39
+ "@yh-ui/hooks": "^0.1.45",
40
+ "@yh-ui/locale": "^0.1.45",
41
+ "@yh-ui/theme": "^0.1.45",
42
+ "@yh-ui/utils": "^0.1.45",
43
43
  "async-validator": "^4.2.5",
44
44
  "dayjs": "^1.11.19",
45
45
  "markdown-it": "^14.1.1",