@blueking/date-picker 0.0.62 → 0.0.63

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.
@@ -62,7 +62,7 @@ export declare const datePickTabList: {
62
62
  id: DateMode;
63
63
  name: string;
64
64
  }[];
65
- export declare const timezoneStoreKey = "BK_DATE_PICKER_TIMEZONE";
65
+ export declare const timezoneStoreKey = "blueking_timezone";
66
66
  export declare const getStoreKey: (key?: number | string) => string;
67
67
  export declare const getStoreTabKey: (key?: number | string) => string;
68
68
  export declare const dateFormatList: string[];
@@ -19477,7 +19477,7 @@ const v3 = [
19477
19477
  id: nt.Date,
19478
19478
  name: Me("日期选择")
19479
19479
  }
19480
- ], wT = "BK_DATE_PICKER_STORE", MT = "BK_DATE_PICKER_STORE_TAB", IT = "BK_DATE_PICKER_TIMEZONE", K0 = (e = 1) => `${wT}_${e}`, m3 = (e = 1) => `${MT}_${e}`, CT = [
19480
+ ], wT = "BK_DATE_PICKER_STORE", MT = "BK_DATE_PICKER_STORE_TAB", IT = "blueking_timezone", K0 = (e = 1) => `${wT}_${e}`, m3 = (e = 1) => `${MT}_${e}`, CT = [
19481
19481
  "YYYY-MM-DD HH:mm:ss",
19482
19482
  "YYYY-MM-DD HH:mm:ss,SSS",
19483
19483
  "YYYY-MM-DD HH:mm:ss.SSS",
@@ -19530,7 +19530,7 @@ const v3 = [
19530
19530
  ["now/M", "now"],
19531
19531
  ["now-1M/M", "now-1M/M"],
19532
19532
  ["now-1M/M", "now"]
19533
- ], gt = "now", NT = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, Mm = Symbol("DATE_PICKER_PROVIDER_KEY"), _T = (e) => {
19533
+ ], gt = "now", NT = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, Nk = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, Mm = Symbol("DATE_PICKER_PROVIDER_KEY"), _T = (e) => {
19534
19534
  Rs(Mm, e);
19535
19535
  }, Im = () => Jr(Mm);
19536
19536
  Se.extend(wv);
@@ -21072,7 +21072,7 @@ const ef = (e, t = "start", n) => {
21072
21072
  return Se.tz(a.valueOf(), n || Se.tz.guess());
21073
21073
  const [, i, s, o] = r.match(ps) || [];
21074
21074
  return i ? a = Se().add(+i, s || o || "d") : r === gt && (a = Se()), o ? (a = t === "start" ? Se.tz(Se(a.isValid() ? a : void 0).valueOf(), n).startOf(o) : Se.tz(Se(a.isValid() ? a : void 0), n).endOf(o), a != null && a.isValid() ? a : void 0) : a.isValid() ? Se.tz(a.valueOf(), n || Se.tz.guess()) : void 0;
21075
- }, Nk = (e, t) => {
21075
+ }, _k = (e, t) => {
21076
21076
  if (!Array.isArray(e) || e.length < 1)
21077
21077
  return [];
21078
21078
  const [n, r] = e || [], a = ef(n, "start", t), i = ef(r, "end", t);
@@ -27141,7 +27141,7 @@ Se.extend(mv);
27141
27141
  Se.extend(oy);
27142
27142
  Se.extend(yv);
27143
27143
  Se.extend(wv);
27144
- const _k = {
27144
+ const jk = {
27145
27145
  beforeDestroy() {
27146
27146
  var e;
27147
27147
  this.unWatchStack.forEach((t) => t == null ? void 0 : t()), (e = this.app) == null || e.unmount();
@@ -27228,12 +27228,29 @@ const _k = {
27228
27228
  }
27229
27229
  };
27230
27230
  export {
27231
+ F0 as CommonNaturalOptions,
27232
+ Nk as DATE_REGEX_FORMAT,
27233
+ NT as DATE_REGEX_PARSE,
27231
27234
  Hi as DateRange,
27235
+ wm as DateUnitList,
27236
+ ga as NaturalOptionType,
27237
+ Wl as NaturalUnit,
27238
+ gt as NowConstant,
27239
+ X0 as commonDateList,
27232
27240
  ps as commonDateRegexp,
27233
- _k as default,
27241
+ CT as dateFormatList,
27242
+ bT as datePickTabList,
27243
+ po as dateUnit,
27244
+ jk as default,
27234
27245
  PT as futureDateRegexp,
27246
+ K0 as getStoreKey,
27247
+ m3 as getStoreTabKey,
27235
27248
  q0 as naturalDateRegexp,
27249
+ OT as naturalDateShortcutMap,
27250
+ v3 as naturalUnitOptions,
27251
+ yT as panels,
27236
27252
  LT as recentDateRegexp,
27237
- Nk as transformDateRange2Dayjs,
27253
+ IT as timezoneStoreKey,
27254
+ _k as transformDateRange2Dayjs,
27238
27255
  ef as transformValue2Dayjs
27239
27256
  };
@@ -18855,7 +18855,7 @@ const v3 = [
18855
18855
  id: nt.Date,
18856
18856
  name: be("日期选择")
18857
18857
  }
18858
- ], oT = "BK_DATE_PICKER_STORE", sT = "BK_DATE_PICKER_STORE_TAB", lT = "BK_DATE_PICKER_TIMEZONE", K0 = (e = 1) => `${oT}_${e}`, m3 = (e = 1) => `${sT}_${e}`, cT = [
18858
+ ], oT = "BK_DATE_PICKER_STORE", sT = "BK_DATE_PICKER_STORE_TAB", lT = "blueking_timezone", K0 = (e = 1) => `${oT}_${e}`, m3 = (e = 1) => `${sT}_${e}`, cT = [
18859
18859
  "YYYY-MM-DD HH:mm:ss",
18860
18860
  "YYYY-MM-DD HH:mm:ss,SSS",
18861
18861
  "YYYY-MM-DD HH:mm:ss.SSS",
@@ -18908,7 +18908,7 @@ const v3 = [
18908
18908
  ["now/M", "now"],
18909
18909
  ["now-1M/M", "now-1M/M"],
18910
18910
  ["now-1M/M", "now"]
18911
- ], ht = "now", dT = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, p2 = Symbol("DATE_PICKER_PROVIDER_KEY"), fT = (e) => {
18911
+ ], ht = "now", dT = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, yk = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, p2 = Symbol("DATE_PICKER_PROVIDER_KEY"), fT = (e) => {
18912
18912
  Qs(p2, e);
18913
18913
  }, v2 = () => Ar(p2);
18914
18914
  De.extend(r6);
@@ -20450,7 +20450,7 @@ const ed = (e, t = "start", n) => {
20450
20450
  return De.tz(a.valueOf(), n || De.tz.guess());
20451
20451
  const [, i, s, o] = r.match(fs) || [];
20452
20452
  return i ? a = De().add(+i, s || o || "d") : r === ht && (a = De()), o ? (a = t === "start" ? De.tz(De(a.isValid() ? a : void 0).valueOf(), n).startOf(o) : De.tz(De(a.isValid() ? a : void 0), n).endOf(o), a != null && a.isValid() ? a : void 0) : a.isValid() ? De.tz(a.valueOf(), n || De.tz.guess()) : void 0;
20453
- }, yk = (e, t) => {
20453
+ }, bk = (e, t) => {
20454
20454
  if (!Array.isArray(e) || e.length < 1)
20455
20455
  return [];
20456
20456
  const [n, r] = e || [], a = ed(n, "start", t), i = ed(r, "end", t);
@@ -26519,7 +26519,7 @@ De.extend(t6);
26519
26519
  De.extend(Hm);
26520
26520
  De.extend(n6);
26521
26521
  De.extend(r6);
26522
- const bk = {
26522
+ const wk = {
26523
26523
  beforeDestroy() {
26524
26524
  var e;
26525
26525
  this.unWatchStack.forEach((t) => t == null ? void 0 : t()), (e = this.app) == null || e.unmount();
@@ -26606,12 +26606,29 @@ const bk = {
26606
26606
  }
26607
26607
  };
26608
26608
  export {
26609
+ F0 as CommonNaturalOptions,
26610
+ yk as DATE_REGEX_FORMAT,
26611
+ dT as DATE_REGEX_PARSE,
26609
26612
  $i as DateRange,
26613
+ f2 as DateUnitList,
26614
+ ma as NaturalOptionType,
26615
+ Bl as NaturalUnit,
26616
+ ht as NowConstant,
26617
+ X0 as commonDateList,
26610
26618
  fs as commonDateRegexp,
26611
- bk as default,
26619
+ cT as dateFormatList,
26620
+ iT as datePickTabList,
26621
+ uo as dateUnit,
26622
+ wk as default,
26612
26623
  hT as futureDateRegexp,
26624
+ K0 as getStoreKey,
26625
+ m3 as getStoreTabKey,
26613
26626
  q0 as naturalDateRegexp,
26627
+ uT as naturalDateShortcutMap,
26628
+ v3 as naturalUnitOptions,
26629
+ aT as panels,
26614
26630
  gT as recentDateRegexp,
26615
- yk as transformDateRange2Dayjs,
26631
+ lT as timezoneStoreKey,
26632
+ bk as transformDateRange2Dayjs,
26616
26633
  ed as transformValue2Dayjs
26617
26634
  };
package/dist/vue2.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  declare const _default: any;
2
2
  export default _default;
3
3
  export * from './utils/date';
4
+ export * from './utils/constant';
@@ -14575,7 +14575,7 @@ const ed = [
14575
14575
  id: Ge.Date,
14576
14576
  name: ve("日期选择")
14577
14577
  }
14578
- ], eI = "BK_DATE_PICKER_STORE", tI = "BK_DATE_PICKER_STORE_TAB", nI = "BK_DATE_PICKER_TIMEZONE", Ys = (t = 1) => `${eI}_${t}`, td = (t = 1) => `${tI}_${t}`, rI = [
14578
+ ], eI = "BK_DATE_PICKER_STORE", tI = "BK_DATE_PICKER_STORE_TAB", nI = "blueking_timezone", Ys = (t = 1) => `${eI}_${t}`, td = (t = 1) => `${tI}_${t}`, rI = [
14579
14579
  "YYYY-MM-DD HH:mm:ss",
14580
14580
  "YYYY-MM-DD HH:mm:ss,SSS",
14581
14581
  "YYYY-MM-DD HH:mm:ss.SSS",
@@ -14628,7 +14628,7 @@ const ed = [
14628
14628
  ["now/M", "now"],
14629
14629
  ["now-1M/M", "now-1M/M"],
14630
14630
  ["now-1M/M", "now"]
14631
- ], lt = "now", iI = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, X9 = Symbol("DATE_PICKER_PROVIDER_KEY"), oI = (t) => {
14631
+ ], lt = "now", iI = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, iL = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, X9 = Symbol("DATE_PICKER_PROVIDER_KEY"), oI = (t) => {
14632
14632
  _6(X9, t);
14633
14633
  }, q9 = () => S6(X9);
14634
14634
  Oe.extend(Fd);
@@ -16170,7 +16170,7 @@ const Hs = (t, e = "start", n) => {
16170
16170
  return Oe.tz(a.valueOf(), n || Oe.tz.guess());
16171
16171
  const [, o, s, i] = r.match(Pi) || [];
16172
16172
  return o ? a = Oe().add(+o, s || i || "d") : r === lt && (a = Oe()), i ? (a = e === "start" ? Oe.tz(Oe(a.isValid() ? a : void 0).valueOf(), n).startOf(i) : Oe.tz(Oe(a.isValid() ? a : void 0), n).endOf(i), a != null && a.isValid() ? a : void 0) : a.isValid() ? Oe.tz(a.valueOf(), n || Oe.tz.guess()) : void 0;
16173
- }, iL = (t, e) => {
16173
+ }, oL = (t, e) => {
16174
16174
  if (!Array.isArray(t) || t.length < 1)
16175
16175
  return [];
16176
16176
  const [n, r] = t || [], a = Hs(n, "start", e), o = Hs(r, "end", e);
@@ -22010,7 +22010,7 @@ const qj = /* @__PURE__ */ Te(
22010
22010
  ), eL = {
22011
22011
  key: 0,
22012
22012
  class: "date-content-utc"
22013
- }, tL = { class: "date-tooltips-timezone" }, oL = /* @__PURE__ */ pr({
22013
+ }, tL = { class: "date-tooltips-timezone" }, lL = /* @__PURE__ */ pr({
22014
22014
  name: "DatePicker",
22015
22015
  __name: "date-picker",
22016
22016
  props: {
@@ -22240,14 +22240,31 @@ Oe.extend(R6);
22240
22240
  Oe.extend(Hd);
22241
22241
  Oe.extend(Fd);
22242
22242
  export {
22243
- oL as DatePicker,
22243
+ Bs as CommonNaturalOptions,
22244
+ iL as DATE_REGEX_FORMAT,
22245
+ iI as DATE_REGEX_PARSE,
22246
+ lL as DatePicker,
22244
22247
  La as DateRange,
22248
+ K9 as DateUnitList,
22249
+ Tr as NaturalOptionType,
22250
+ Qo as NaturalUnit,
22251
+ lt as NowConstant,
22252
+ Gs as commonDateList,
22245
22253
  Pi as commonDateRegexp,
22254
+ rI as dateFormatList,
22255
+ qw as datePickTabList,
22256
+ Wa as dateUnit,
22246
22257
  Oe as dayjs,
22247
- oL as default,
22258
+ lL as default,
22248
22259
  dI as futureDateRegexp,
22260
+ Ys as getStoreKey,
22261
+ td as getStoreTabKey,
22249
22262
  Vs as naturalDateRegexp,
22263
+ aI as naturalDateShortcutMap,
22264
+ ed as naturalUnitOptions,
22265
+ Xw as panels,
22250
22266
  cI as recentDateRegexp,
22251
- iL as transformDateRange2Dayjs,
22267
+ nI as timezoneStoreKey,
22268
+ oL as transformDateRange2Dayjs,
22252
22269
  Hs as transformValue2Dayjs
22253
22270
  };
@@ -2,7 +2,7 @@ var re = Object.defineProperty;
2
2
  var le = (s, a, n) => a in s ? re(s, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : s[a] = n;
3
3
  var ta = (s, a, n) => (le(s, typeof a != "symbol" ? a + "" : a, n), n);
4
4
  import d from "dayjs";
5
- import { default as Ai } from "dayjs";
5
+ import { default as gi } from "dayjs";
6
6
  import Ua from "dayjs/plugin/customParseFormat";
7
7
  import se from "dayjs/plugin/localizedFormat";
8
8
  import Ha from "dayjs/plugin/timezone";
@@ -227,7 +227,7 @@ const ja = [
227
227
  id: w.Date,
228
228
  name: r("日期选择")
229
229
  }
230
- ], Se = "BK_DATE_PICKER_STORE", Ce = "BK_DATE_PICKER_STORE_TAB", Pe = "BK_DATE_PICKER_TIMEZONE", Aa = (s = 1) => `${Se}_${s}`, Ba = (s = 1) => `${Ce}_${s}`, Te = [
230
+ ], Se = "BK_DATE_PICKER_STORE", Ce = "BK_DATE_PICKER_STORE_TAB", Pe = "blueking_timezone", Aa = (s = 1) => `${Se}_${s}`, Ba = (s = 1) => `${Ce}_${s}`, Te = [
231
231
  "YYYY-MM-DD HH:mm:ss",
232
232
  "YYYY-MM-DD HH:mm:ss,SSS",
233
233
  "YYYY-MM-DD HH:mm:ss.SSS",
@@ -280,7 +280,7 @@ const ja = [
280
280
  ["now/M", "now"],
281
281
  ["now-1M/M", "now-1M/M"],
282
282
  ["now-1M/M", "now"]
283
- ], P = "now", Ne = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, Wa = Symbol("DATE_PICKER_PROVIDER_KEY"), $e = (s) => {
283
+ ], P = "now", Ne = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, vi = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, Wa = Symbol("DATE_PICKER_PROVIDER_KEY"), $e = (s) => {
284
284
  ce(Wa, s);
285
285
  }, Za = () => ue(Wa);
286
286
  d.extend(Ka);
@@ -1822,7 +1822,7 @@ const Ia = (s, a = "start", n) => {
1822
1822
  return d.tz(l.valueOf(), n || d.tz.guess());
1823
1823
  const [, b, o, u] = e.match(ua) || [];
1824
1824
  return b ? l = d().add(+b, o || u || "d") : e === P && (l = d()), u ? (l = a === "start" ? d.tz(d(l.isValid() ? l : void 0).valueOf(), n).startOf(u) : d.tz(d(l.isValid() ? l : void 0), n).endOf(u), l != null && l.isValid() ? l : void 0) : l.isValid() ? d.tz(l.valueOf(), n || d.tz.guess()) : void 0;
1825
- }, vi = (s, a) => {
1825
+ }, bi = (s, a) => {
1826
1826
  if (!Array.isArray(s) || s.length < 1)
1827
1827
  return [];
1828
1828
  const [n, e] = s || [], l = Ia(n, "start", a), b = Ia(e, "end", a);
@@ -3046,7 +3046,7 @@ const $t = /* @__PURE__ */ v(
3046
3046
  ), jt = {
3047
3047
  key: 0,
3048
3048
  class: "date-content-utc"
3049
- }, Bt = { class: "date-tooltips-timezone" }, bi = /* @__PURE__ */ Q({
3049
+ }, Bt = { class: "date-tooltips-timezone" }, fi = /* @__PURE__ */ Q({
3050
3050
  name: "DatePicker",
3051
3051
  __name: "date-picker",
3052
3052
  props: {
@@ -3276,14 +3276,31 @@ d.extend(se);
3276
3276
  d.extend(Ha);
3277
3277
  d.extend(Ka);
3278
3278
  export {
3279
- bi as DatePicker,
3279
+ pa as CommonNaturalOptions,
3280
+ vi as DATE_REGEX_FORMAT,
3281
+ Ne as DATE_REGEX_PARSE,
3282
+ fi as DatePicker,
3280
3283
  na as DateRange,
3284
+ Ja as DateUnitList,
3285
+ aa as NaturalOptionType,
3286
+ ma as NaturalUnit,
3287
+ P as NowConstant,
3288
+ ga as commonDateList,
3281
3289
  ua as commonDateRegexp,
3282
- Ai as dayjs,
3283
- bi as default,
3290
+ Te as dateFormatList,
3291
+ ze as datePickTabList,
3292
+ sa as dateUnit,
3293
+ gi as dayjs,
3294
+ fi as default,
3284
3295
  Le as futureDateRegexp,
3296
+ Aa as getStoreKey,
3297
+ Ba as getStoreTabKey,
3285
3298
  xa as naturalDateRegexp,
3299
+ Ve as naturalDateShortcutMap,
3300
+ ja as naturalUnitOptions,
3301
+ Ee as panels,
3286
3302
  Re as recentDateRegexp,
3287
- vi as transformDateRange2Dayjs,
3303
+ Pe as timezoneStoreKey,
3304
+ bi as transformDateRange2Dayjs,
3288
3305
  Ia as transformValue2Dayjs
3289
3306
  };
package/dist/vue3.d.ts CHANGED
@@ -3,3 +3,4 @@ import DatePicker from './date-picker.vue';
3
3
  export { DatePicker, dayjs };
4
4
  export default DatePicker;
5
5
  export * from './utils/date';
6
+ export * from './utils/constant';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/date-picker",
3
- "version": "0.0.62",
3
+ "version": "0.0.63",
4
4
  "description": "蓝鲸监控平台日期时间选择",
5
5
  "license": "MIT",
6
6
  "author": "Tencent BlueKing",