@blueking/date-picker 2.0.0-beta.8 → 2.0.0-beta.9
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 +5 -7
- package/typings/date-picker.vue.d.ts +2 -2
- package/typings/vue2.d.ts +45 -1
- package/vue2/index.es.min.js +14 -11
- package/vue2/index.iife.min.js +1 -1
- package/vue2/index.umd.min.js +1 -1
- package/vue3/index.es.min.js +13 -10
- package/vue3/index.iife.min.js +1 -1
- package/vue3/index.umd.min.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blueking/date-picker",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.9",
|
|
4
4
|
"description": "蓝鲸监控平台日期时间选择",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Tencent BlueKing",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"registry": "https://registry.npmjs.org/"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@blueking/bkui-library": "
|
|
53
|
-
"bkui-vue": "
|
|
52
|
+
"@blueking/bkui-library": "latest",
|
|
53
|
+
"bkui-vue": "latest",
|
|
54
54
|
"dayjs": "^1.11.10",
|
|
55
|
-
"vue": "
|
|
55
|
+
"vue": "latest"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/node": "^20.12.3",
|
|
@@ -61,7 +61,6 @@
|
|
|
61
61
|
"@typescript-eslint/eslint-plugin": "^7.5.0",
|
|
62
62
|
"@typescript-eslint/parser": "^7.5.0",
|
|
63
63
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
64
|
-
"bkui-vue": "1.0.3-beta.25",
|
|
65
64
|
"eslint": "^8.57.0",
|
|
66
65
|
"eslint-config-prettier": "^9.1.0",
|
|
67
66
|
"eslint-config-tencent": "^1.0.4",
|
|
@@ -96,7 +95,6 @@
|
|
|
96
95
|
"vite-bundle-visualizer": "^1.1.0",
|
|
97
96
|
"vite-plugin-css-injected-by-js": "^3.5.0",
|
|
98
97
|
"vite-plugin-inspect": "^0.8.3",
|
|
99
|
-
"vue": "^3.4.21",
|
|
100
98
|
"vue-eslint-parser": "^9.4.2",
|
|
101
99
|
"vue-tsc": "^2.0.7",
|
|
102
100
|
"zip-a-folder": "^3.1.6"
|
|
@@ -118,7 +116,7 @@
|
|
|
118
116
|
"*.{js,json}": [
|
|
119
117
|
"prettier --write"
|
|
120
118
|
],
|
|
121
|
-
"*.ts?(x)": [
|
|
119
|
+
"*.{ts?(x),vue}": [
|
|
122
120
|
"eslint --fix"
|
|
123
121
|
]
|
|
124
122
|
},
|
|
@@ -4,7 +4,7 @@ import { type DateValue, type IDatePickerProps } from './utils';
|
|
|
4
4
|
import { type ITimezoneItem } from './utils/timezone';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<IDatePickerProps>, {
|
|
6
6
|
behavior: string;
|
|
7
|
-
commonUseList:
|
|
7
|
+
commonUseList: () => DateValue[];
|
|
8
8
|
format: string;
|
|
9
9
|
needTimezone: boolean;
|
|
10
10
|
version: string;
|
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
19
19
|
"update:timezone": (value: string, timezoneInfo: ITimezoneItem) => void;
|
|
20
20
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<IDatePickerProps>, {
|
|
21
21
|
behavior: string;
|
|
22
|
-
commonUseList:
|
|
22
|
+
commonUseList: () => DateValue[];
|
|
23
23
|
format: string;
|
|
24
24
|
needTimezone: boolean;
|
|
25
25
|
version: string;
|
package/typings/vue2.d.ts
CHANGED
|
@@ -1,4 +1,48 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: {
|
|
2
|
+
beforeDestroy(): void;
|
|
3
|
+
created(): void;
|
|
4
|
+
data(): {
|
|
5
|
+
app: null;
|
|
6
|
+
unWatchStack: never[];
|
|
7
|
+
};
|
|
8
|
+
methods: {
|
|
9
|
+
handleHidePanel(): void;
|
|
10
|
+
handleShowPanel(): void;
|
|
11
|
+
};
|
|
12
|
+
mounted(): void;
|
|
13
|
+
name: string;
|
|
14
|
+
props: {
|
|
15
|
+
behavior: {
|
|
16
|
+
default: string;
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
validate: (v: string) => boolean;
|
|
19
|
+
};
|
|
20
|
+
commonUseList: ArrayConstructor;
|
|
21
|
+
disabled: {
|
|
22
|
+
default: boolean;
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
};
|
|
25
|
+
format: {
|
|
26
|
+
default: string;
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
};
|
|
29
|
+
modelValue: {
|
|
30
|
+
default: () => never[];
|
|
31
|
+
type: ArrayConstructor;
|
|
32
|
+
};
|
|
33
|
+
needTimezone: {
|
|
34
|
+
default: boolean;
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
};
|
|
37
|
+
timezone: StringConstructor;
|
|
38
|
+
version: {
|
|
39
|
+
default: number;
|
|
40
|
+
type: NumberConstructor;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
render(createElement: any): any;
|
|
44
|
+
};
|
|
2
45
|
export default _default;
|
|
3
46
|
export * from './utils/date';
|
|
4
47
|
export * from './utils/constant';
|
|
48
|
+
export type * from './utils/types';
|
package/vue2/index.es.min.js
CHANGED
|
@@ -19352,7 +19352,10 @@ const gj = (t) => {
|
|
|
19352
19352
|
近: "Last",
|
|
19353
19353
|
"(至今)": " so far"
|
|
19354
19354
|
};
|
|
19355
|
-
Object.keys(Iu).reduce(
|
|
19355
|
+
Object.keys(Iu).reduce(
|
|
19356
|
+
(t, e) => (t[Iu[e]] = e, t),
|
|
19357
|
+
{}
|
|
19358
|
+
);
|
|
19356
19359
|
const Vl = gj("blueking_language") || "zh-cn", ye = (t) => Vl !== "en" ? va[t] || t : va[t] || hj[t] || yj[t] || Iu[t] || t;
|
|
19357
19360
|
var $e = /* @__PURE__ */ ((t) => (t.Date = "date", t.FUTURE = "now+", t.NATURAL = "natural", t.RECENT = "now-", t))($e || {});
|
|
19358
19361
|
const Cf = [
|
|
@@ -21247,10 +21250,10 @@ const ju = (t, e = "start", r) => {
|
|
|
21247
21250
|
}, g = (l) => {
|
|
21248
21251
|
r.minDate && l.isBefore(r.minDate, "day") || n("update:modelValue", l);
|
|
21249
21252
|
};
|
|
21250
|
-
let c
|
|
21253
|
+
let c;
|
|
21251
21254
|
const d = (l) => {
|
|
21252
21255
|
l.preventDefault(), !r.diableNow && (c || (n("update:isNow", !r.isNow), c = setTimeout(() => {
|
|
21253
|
-
clearTimeout(c), c =
|
|
21256
|
+
clearTimeout(c), c = null;
|
|
21254
21257
|
}, 500)));
|
|
21255
21258
|
};
|
|
21256
21259
|
return (l, u) => (Qe(), nt("div", kj, [
|
|
@@ -21433,17 +21436,17 @@ const ju = (t, e = "start", r) => {
|
|
|
21433
21436
|
if (F.length) {
|
|
21434
21437
|
let V = !0;
|
|
21435
21438
|
const X = (F[7] || "0").substring(0, 3), he = F[6] || 0;
|
|
21436
|
-
V = he < 60;
|
|
21439
|
+
V = +he < 60;
|
|
21437
21440
|
const _ = F[5] || 0;
|
|
21438
|
-
V = V && _ < 60;
|
|
21441
|
+
V = V && +_ < 60;
|
|
21439
21442
|
const C = F[4] || 0;
|
|
21440
|
-
V = V && C < 24;
|
|
21443
|
+
V = V && +C < 24;
|
|
21441
21444
|
const N = F[3] || 1;
|
|
21442
|
-
V = V && N < 32;
|
|
21443
|
-
const O = F[2] - 1 || 0;
|
|
21445
|
+
V = V && +N < 32;
|
|
21446
|
+
const O = +F[2] - 1 || 0;
|
|
21444
21447
|
V = V && O < 12;
|
|
21445
21448
|
const J = F[1];
|
|
21446
|
-
V = V && J.length < 5, ae = V ? Ne(new Date(J, O, N, C, _, he, X)) : Q;
|
|
21449
|
+
V = V && J.length < 5, ae = V ? Ne(new Date(+J, O, +N, +C, +_, +he, +X)) : Q;
|
|
21447
21450
|
}
|
|
21448
21451
|
}
|
|
21449
21452
|
ae || (ae = Ne(E)), ae.isValid() && (Q != null && Q.isSame(ae) || (H.value = E === ft, Z === "start" ? S(f ? ae : ae.startOf("d")) : R(p ? ae : ae.endOf("d")))), K.value = Z === "start" ? ((T = f.value) == null ? void 0 : T.format(d.value)) || "" : ((D = p.value) == null ? void 0 : D.format(d.value)) || "";
|
|
@@ -22307,7 +22310,7 @@ const ju = (t, e = "start", r) => {
|
|
|
22307
22310
|
__name: "date-picker",
|
|
22308
22311
|
props: {
|
|
22309
22312
|
behavior: { default: "normal" },
|
|
22310
|
-
commonUseList: { default: Cu },
|
|
22313
|
+
commonUseList: { default: () => Cu },
|
|
22311
22314
|
disabled: { type: Boolean },
|
|
22312
22315
|
format: { default: "YYYY-MM-DD HH:mm:ss" },
|
|
22313
22316
|
modelValue: {},
|
|
@@ -22560,7 +22563,7 @@ const ZN = {
|
|
|
22560
22563
|
},
|
|
22561
22564
|
created() {
|
|
22562
22565
|
const t = this.$props, e = this.$emit.bind(this);
|
|
22563
|
-
let r
|
|
22566
|
+
let r;
|
|
22564
22567
|
this.app = k3({
|
|
22565
22568
|
render() {
|
|
22566
22569
|
return r = this, A3(xN, {
|