@yh-ui/components 0.1.44 → 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.
- package/dist/calendar/src/calendar.vue +2 -4
- package/dist/date-picker/src/panel-utils.cjs +12 -23
- package/dist/date-picker/src/panel-utils.mjs +12 -21
- package/dist/dayjs.cjs +3 -5
- package/dist/dayjs.d.ts +2 -2
- package/dist/dayjs.mjs +1 -2
- package/dist/gantt-chart/src/gantt-chart.vue +6 -15
- package/package.json +5 -5
|
@@ -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,9 +10,7 @@ import {
|
|
|
10
10
|
DEFAULT_CHINA_HOLIDAYS_2026
|
|
11
11
|
} from "./calendar";
|
|
12
12
|
import { YhButton } from "../../button";
|
|
13
|
-
dayjs.extend(
|
|
14
|
-
typeof isoWeekPluginModule === "function" ? isoWeekPluginModule : isoWeekPluginModule.default ?? isoWeekPluginModule
|
|
15
|
-
);
|
|
13
|
+
dayjs.extend(isoWeekPluginModule);
|
|
16
14
|
defineOptions({
|
|
17
15
|
name: "YhCalendar"
|
|
18
16
|
});
|
|
@@ -5,30 +5,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.parseDate = exports.generateCalendar = exports.formatDate = exports.DEFAULT_FORMATS = void 0;
|
|
7
7
|
var _dayjs = _interopRequireDefault(require("../../dayjs.cjs"));
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
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); }
|
|
15
|
-
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; }
|
|
8
|
+
var _isBetween = _interopRequireDefault(require("dayjs/plugin/isBetween.js"));
|
|
9
|
+
var _weekOfYear = _interopRequireDefault(require("dayjs/plugin/weekOfYear.js"));
|
|
10
|
+
var _isoWeek = _interopRequireDefault(require("dayjs/plugin/isoWeek.js"));
|
|
11
|
+
var _quarterOfYear = _interopRequireDefault(require("dayjs/plugin/quarterOfYear.js"));
|
|
12
|
+
var _advancedFormat = _interopRequireDefault(require("dayjs/plugin/advancedFormat.js"));
|
|
13
|
+
var _customParseFormat = _interopRequireDefault(require("dayjs/plugin/customParseFormat.js"));
|
|
16
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
return module;
|
|
25
|
-
}
|
|
26
|
-
_dayjs.default.extend(resolveDayjsPlugin(isBetweenPluginModule));
|
|
27
|
-
_dayjs.default.extend(resolveDayjsPlugin(weekOfYearPluginModule));
|
|
28
|
-
_dayjs.default.extend(resolveDayjsPlugin(isoWeekPluginModule));
|
|
29
|
-
_dayjs.default.extend(resolveDayjsPlugin(quarterOfYearPluginModule));
|
|
30
|
-
_dayjs.default.extend(resolveDayjsPlugin(advancedFormatPluginModule));
|
|
31
|
-
_dayjs.default.extend(resolveDayjsPlugin(customParseFormatPluginModule));
|
|
15
|
+
_dayjs.default.extend(_isBetween.default);
|
|
16
|
+
_dayjs.default.extend(_weekOfYear.default);
|
|
17
|
+
_dayjs.default.extend(_isoWeek.default);
|
|
18
|
+
_dayjs.default.extend(_quarterOfYear.default);
|
|
19
|
+
_dayjs.default.extend(_advancedFormat.default);
|
|
20
|
+
_dayjs.default.extend(_customParseFormat.default);
|
|
32
21
|
const DEFAULT_FORMATS = exports.DEFAULT_FORMATS = {
|
|
33
22
|
date: "YYYY-MM-DD",
|
|
34
23
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
@@ -1,25 +1,16 @@
|
|
|
1
1
|
import dayjs from "../../dayjs.mjs";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
return module;
|
|
16
|
-
}
|
|
17
|
-
dayjs.extend(resolveDayjsPlugin(isBetweenPluginModule));
|
|
18
|
-
dayjs.extend(resolveDayjsPlugin(weekOfYearPluginModule));
|
|
19
|
-
dayjs.extend(resolveDayjsPlugin(isoWeekPluginModule));
|
|
20
|
-
dayjs.extend(resolveDayjsPlugin(quarterOfYearPluginModule));
|
|
21
|
-
dayjs.extend(resolveDayjsPlugin(advancedFormatPluginModule));
|
|
22
|
-
dayjs.extend(resolveDayjsPlugin(customParseFormatPluginModule));
|
|
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);
|
|
23
14
|
export const DEFAULT_FORMATS = {
|
|
24
15
|
date: "YYYY-MM-DD",
|
|
25
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,26 +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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
if (typeof module.default === "function") {
|
|
17
|
-
return module.default;
|
|
18
|
-
}
|
|
19
|
-
return module;
|
|
20
|
-
};
|
|
21
|
-
dayjs.extend(resolveDayjsPlugin(isBetweenPluginModule));
|
|
22
|
-
dayjs.extend(resolveDayjsPlugin(isoWeekPluginModule));
|
|
23
|
-
dayjs.extend(resolveDayjsPlugin(quarterOfYearPluginModule));
|
|
12
|
+
dayjs.extend(isBetweenPluginModule);
|
|
13
|
+
dayjs.extend(isoWeekPluginModule);
|
|
14
|
+
dayjs.extend(quarterOfYearPluginModule);
|
|
24
15
|
defineOptions({ name: "YhGanttChart" });
|
|
25
16
|
const props = defineProps({
|
|
26
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",
|