@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
|
|
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(
|
|
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
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
dayjs.extend(
|
|
9
|
-
dayjs.extend(
|
|
10
|
-
dayjs.extend(
|
|
11
|
-
dayjs.extend(
|
|
12
|
-
dayjs.extend(
|
|
13
|
-
dayjs.extend(
|
|
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
|
|
8
|
-
function
|
|
9
|
-
|
|
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
package/dist/dayjs.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { ref, computed, watch } from "vue";
|
|
3
3
|
import dayjs from "../../dayjs";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
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(
|
|
13
|
-
dayjs.extend(
|
|
14
|
-
dayjs.extend(
|
|
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.
|
|
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.
|
|
40
|
-
"@yh-ui/locale": "^0.1.
|
|
41
|
-
"@yh-ui/theme": "^0.1.
|
|
42
|
-
"@yh-ui/utils": "^0.1.
|
|
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",
|