@blueking/date-picker 3.0.0-beta.2 → 3.0.0-beta.4

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/README.md CHANGED
@@ -97,8 +97,113 @@ export default {
97
97
 
98
98
  ### 事件列表
99
99
 
100
- | 事件名 | 参数 | 参数类型 | 描述 |
101
- | ----------------- | ------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------ |
102
- | update:modelValue | value, info | value: IDatePickerProps['modelValue']<br/>info: Array<br/>{<br/>dayjs: dayjs.Dayjs \| null;<br/>formatText: null \| string;<br/>} | 更新date值的事件,以及相关信息 |
103
- | update:timezone | value, timezoneInfo | value: string<br/>timezoneInfo: ITimezoneItem | 更新时区值的事件,以及时区信息 |
104
- | update:format | value | value: string | 更新时间格式的值 |
100
+ | 事件名 | 参数 | 参数类型 | 描述 |
101
+ | ----------------- | ------------------- | -------------------------------------------------------------------------------------------------------------- | ------------------------------ |
102
+ | update:modelValue | value, info | value: IDatePickerProps['modelValue']`info: Array`{`dayjs: dayjs.Dayjs \| null;`formatText: null \| string;``} | 更新date值的事件,以及相关信息 |
103
+ | update:timezone | value, timezoneInfo | value: string``timezoneInfo: ITimezoneItem | 更新时区值的事件,以及时区信息 |
104
+ | update:format | value | value: string | 更新时间格式的值 |
105
+
106
+ ## TimezonePicker 时区选择器
107
+
108
+ ### 支持 Vue2/Vue3 版本 无差别使用
109
+
110
+ 时区选择器组件,支持搜索和选择全球时区。
111
+
112
+ #### 使用
113
+
114
+ - vue3框架下使用
115
+
116
+ ```javascript
117
+ <template>
118
+ <div class="app">
119
+ <TimezonePicker
120
+ v-model:value="timezone"
121
+ :timezoneOptions="customTimezoneOptions"
122
+ @update:value="handleTimezoneChange"
123
+ />
124
+ </div>
125
+ </template>
126
+ <script setup lang="ts">
127
+ import { ref } from 'vue';
128
+
129
+ import { TimezonePicker } from '@blueking/date-picker';
130
+ import '@blueking/date-picker/vue3/vue3.css';
131
+
132
+ const timezone = ref('Asia/Shanghai');
133
+ const customTimezoneOptions = ref(); // 可选,自定义时区选项
134
+
135
+ const handleTimezoneChange = (value, timezoneInfo) => {
136
+ console.log('选中的时区:', value);
137
+ console.log('时区信息:', timezoneInfo);
138
+ };
139
+ </script>
140
+ ```
141
+
142
+ - vue2框架下使用
143
+
144
+ ```javascript
145
+ <template>
146
+ <div class="hello">
147
+ <TimezonePicker
148
+ :value="timezone"
149
+ :timezoneOptions="customTimezoneOptions"
150
+ @update:value="handleTimezoneChange"
151
+ @change="handleTimezoneChange"
152
+ />
153
+ </div>
154
+ </template>
155
+
156
+ <script>
157
+ import {TimezonePicker } from '@blueking/date-picker/vue2'
158
+ import '@blueking/date-picker/vue2/vue2.css'
159
+
160
+ export default {
161
+ data() {
162
+ return {
163
+ timezone: 'Asia/Shanghai',
164
+ customTimezoneOptions: undefined // 可选,自定义时区选项
165
+ }
166
+ },
167
+ components: {
168
+ TimeZonePicker
169
+ },
170
+ methods: {
171
+ handleTimezoneChange(value, timezoneInfo) {
172
+ console.log('选中的时区:', value);
173
+ console.log('时区信息:', timezoneInfo);
174
+ this.timezone = value;
175
+ }
176
+ }
177
+ }
178
+ </script>
179
+ ```
180
+
181
+ ### TimezonePicker 属性列表
182
+
183
+ | 属性名 | 描述 | 属性类型 | 默认值 |
184
+ | --------------- | ------------------ | ------------------ | ---------------- |
185
+ | value | 当前选中的时区值 | `string` | |
186
+ | timezoneOptions | 自定义时区选项列表 | `ITimeZoneGroup[]` | 内置全球时区列表 |
187
+
188
+ ### TimezonePicker 事件列表
189
+
190
+ | 事件名 | 参数 | 参数类型 | 描述 |
191
+ | ------------ | ------------------- | ------------------------------------------ | ------------------------------ |
192
+ | update:value | value, timezoneInfo | value: string``timezoneInfo: ITimezoneItem | 更新时区值的事件,以及时区信息 |
193
+
194
+ ### 类型定义
195
+
196
+ ```typescript
197
+ interface ITimezoneItem {
198
+ abbreviation: string; // 时区缩写
199
+ country: string; // 国家名称
200
+ countryCode: string; // 国家代码
201
+ label: string; // 时区标识符(如 Asia/Shanghai)
202
+ utc: string; // UTC偏移量(如 UTC+08:00)
203
+ }
204
+
205
+ interface ITimeZoneGroup {
206
+ label: string; // 分组标签
207
+ options: ITimezoneItem[]; // 该分组下的时区选项
208
+ }
209
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/date-picker",
3
- "version": "3.0.0-beta.2",
3
+ "version": "3.0.0-beta.4",
4
4
  "description": "蓝鲸监控平台日期时间选择",
5
5
  "license": "MIT",
6
6
  "author": "Tencent BlueKing",
@@ -16,5 +16,5 @@ export declare const getTimezoneInfo: (searchIndex: string) => {
16
16
  countryCode: string;
17
17
  utc: string;
18
18
  };
19
- export declare const timezoneDetails: ITimeZoneGroup[];
19
+ export declare const CommonTimezoneOptions: ITimeZoneGroup[];
20
20
  export declare const getTimezoneInfoByValue: (value: string) => ITimezoneItem;
package/typings/vue2.d.ts CHANGED
@@ -15,7 +15,7 @@ declare const _default: {
15
15
  render(createElement: any): any;
16
16
  };
17
17
  export default _default;
18
- export declare const TimeZonePicker: any;
18
+ export declare const TimezonePicker: any;
19
19
  export * from './utils/constant';
20
20
  export * from './utils/date';
21
21
  export * from './utils/timezone';
@@ -25868,9 +25868,9 @@ const getTimezoneInfo = (searchIndex) => {
25868
25868
  utc: list[2].toLocaleUpperCase()
25869
25869
  };
25870
25870
  };
25871
- const timezoneDetails = getTimezoneDetails();
25871
+ const CommonTimezoneOptions = getTimezoneDetails();
25872
25872
  const getTimezoneInfoByValue = (value) => {
25873
- return timezoneDetails.reduce((pre, group) => {
25873
+ return CommonTimezoneOptions.reduce((pre, group) => {
25874
25874
  if ((pre == null ? void 0 : pre.label) === value) return pre;
25875
25875
  return group.options.find((option) => option.label === value);
25876
25876
  }, void 0);
@@ -25882,7 +25882,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
25882
25882
  },
25883
25883
  __name: "timezone-picker",
25884
25884
  props: {
25885
- timezoneOptions: { default: () => timezoneDetails },
25885
+ timezoneOptions: { default: () => CommonTimezoneOptions },
25886
25886
  value: {}
25887
25887
  },
25888
25888
  emits: ["update:value"],
@@ -25894,7 +25894,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
25894
25894
  const $attrs = useAttrs();
25895
25895
  const props2 = __props;
25896
25896
  const slots = useSlots();
25897
- const TimezonePicker = () => {
25897
+ const TimezonePicker2 = () => {
25898
25898
  return h$1(
25899
25899
  __webpack_exports__default$3,
25900
25900
  {
@@ -25907,8 +25907,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
25907
25907
  noMatchText: t("无匹配数据"),
25908
25908
  placeholder: t("请输入搜索(国家,城市,简称)"),
25909
25909
  popoverOptions: {
25910
- "ext-cls": "__bk-date-picker-popover__ __bk-timezone-picker-popover__ ",
25911
- minWidth: 1600
25910
+ "ext-cls": "__bk-date-picker-popover__ __bk-timezone-picker-popover__ "
25912
25911
  },
25913
25912
  searchPlaceholder: t("请输入搜索(国家,城市,简称)"),
25914
25913
  onChange: handleChange,
@@ -26008,7 +26007,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
26008
26007
  return ((_a = timezone.label) == null ? void 0 : _a.toLowerCase().includes(keyword.toLowerCase())) || ((_b = timezone.country) == null ? void 0 : _b.toLowerCase().includes(keyword.toLowerCase())) || ((_c = timezone.abbreviation) == null ? void 0 : _c.toLowerCase().includes(keyword.toLowerCase())) || ((_d = timezone.utc) == null ? void 0 : _d.toLowerCase().includes(keyword.toLowerCase()));
26009
26008
  };
26010
26009
  return (_ctx, _cache) => {
26011
- return openBlock(), createBlock(resolveDynamicComponent(TimezonePicker));
26010
+ return openBlock(), createBlock(resolveDynamicComponent(TimezonePicker2));
26012
26011
  };
26013
26012
  }
26014
26013
  });
@@ -28974,7 +28973,7 @@ const vue2 = {
28974
28973
  return createElement("div");
28975
28974
  }
28976
28975
  };
28977
- const TimeZonePicker = {
28976
+ const TimezonePicker = {
28978
28977
  model: {
28979
28978
  prop: "value",
28980
28979
  event: "change"
@@ -28988,9 +28987,9 @@ const TimeZonePicker = {
28988
28987
  render() {
28989
28988
  timezonePickerInstance = this;
28990
28989
  return h$1(_sfc_main$b, {
28991
- modelValue: props2.value,
28992
28990
  ...attrs,
28993
- "onUpdate:modelValue"() {
28991
+ ...props2,
28992
+ "onUpdate:value"() {
28994
28993
  emit("update:value", ...arguments);
28995
28994
  emit("change", ...arguments);
28996
28995
  }
@@ -29022,6 +29021,7 @@ const TimeZonePicker = {
29022
29021
  };
29023
29022
  export {
29024
29023
  CommonNaturalOptions,
29024
+ CommonTimezoneOptions,
29025
29025
  DATE_REGEX_FORMAT,
29026
29026
  DATE_REGEX_PARSE,
29027
29027
  DEFAULT_TIMEZONE,
@@ -29031,7 +29031,7 @@ export {
29031
29031
  NaturalOptionType,
29032
29032
  NaturalUnit,
29033
29033
  NowConstant,
29034
- TimeZonePicker,
29034
+ TimezonePicker,
29035
29035
  baselineDateRegexp,
29036
29036
  commonDateList,
29037
29037
  commonDateRegexp,
@@ -29053,7 +29053,6 @@ export {
29053
29053
  naturalUnitOptions,
29054
29054
  panels,
29055
29055
  recentDateRegexp,
29056
- timezoneDetails,
29057
29056
  timezoneStoreKey,
29058
29057
  transformDateRange2Dayjs,
29059
29058
  transformValue2Dayjs
@@ -33439,9 +33439,9 @@ ${$(r2)}`), n2;
33439
33439
  utc: list[2].toLocaleUpperCase()
33440
33440
  };
33441
33441
  };
33442
- const timezoneDetails = getTimezoneDetails();
33442
+ const CommonTimezoneOptions = getTimezoneDetails();
33443
33443
  const getTimezoneInfoByValue = (value) => {
33444
- return timezoneDetails.reduce((pre, group) => {
33444
+ return CommonTimezoneOptions.reduce((pre, group) => {
33445
33445
  if ((pre == null ? void 0 : pre.label) === value) return pre;
33446
33446
  return group.options.find((option) => option.label === value);
33447
33447
  }, void 0);
@@ -33453,7 +33453,7 @@ ${$(r2)}`), n2;
33453
33453
  },
33454
33454
  __name: "timezone-picker",
33455
33455
  props: {
33456
- timezoneOptions: { default: () => timezoneDetails },
33456
+ timezoneOptions: { default: () => CommonTimezoneOptions },
33457
33457
  value: {}
33458
33458
  },
33459
33459
  emits: ["update:value"],
@@ -33465,7 +33465,7 @@ ${$(r2)}`), n2;
33465
33465
  const $attrs = useAttrs();
33466
33466
  const props2 = __props;
33467
33467
  const slots = useSlots();
33468
- const TimezonePicker = () => {
33468
+ const TimezonePicker2 = () => {
33469
33469
  return h$1(
33470
33470
  __webpack_exports__default$3,
33471
33471
  {
@@ -33478,8 +33478,7 @@ ${$(r2)}`), n2;
33478
33478
  noMatchText: t("无匹配数据"),
33479
33479
  placeholder: t("请输入搜索(国家,城市,简称)"),
33480
33480
  popoverOptions: {
33481
- "ext-cls": "__bk-date-picker-popover__ __bk-timezone-picker-popover__ ",
33482
- minWidth: 1600
33481
+ "ext-cls": "__bk-date-picker-popover__ __bk-timezone-picker-popover__ "
33483
33482
  },
33484
33483
  searchPlaceholder: t("请输入搜索(国家,城市,简称)"),
33485
33484
  onChange: handleChange,
@@ -33579,7 +33578,7 @@ ${$(r2)}`), n2;
33579
33578
  return ((_a = timezone2.label) == null ? void 0 : _a.toLowerCase().includes(keyword.toLowerCase())) || ((_b = timezone2.country) == null ? void 0 : _b.toLowerCase().includes(keyword.toLowerCase())) || ((_c = timezone2.abbreviation) == null ? void 0 : _c.toLowerCase().includes(keyword.toLowerCase())) || ((_d = timezone2.utc) == null ? void 0 : _d.toLowerCase().includes(keyword.toLowerCase()));
33580
33579
  };
33581
33580
  return (_ctx, _cache) => {
33582
- return openBlock(), createBlock(resolveDynamicComponent(TimezonePicker));
33581
+ return openBlock(), createBlock(resolveDynamicComponent(TimezonePicker2));
33583
33582
  };
33584
33583
  }
33585
33584
  });
@@ -36577,7 +36576,7 @@ ${$(r2)}`), n2;
36577
36576
  return createElement("div");
36578
36577
  }
36579
36578
  };
36580
- const TimeZonePicker = {
36579
+ const TimezonePicker = {
36581
36580
  model: {
36582
36581
  prop: "value",
36583
36582
  event: "change"
@@ -36591,9 +36590,9 @@ ${$(r2)}`), n2;
36591
36590
  render() {
36592
36591
  timezonePickerInstance = this;
36593
36592
  return h$1(_sfc_main$b, {
36594
- modelValue: props2.value,
36595
36593
  ...attrs,
36596
- "onUpdate:modelValue"() {
36594
+ ...props2,
36595
+ "onUpdate:value"() {
36597
36596
  emit2("update:value", ...arguments);
36598
36597
  emit2("change", ...arguments);
36599
36598
  }
@@ -36624,6 +36623,7 @@ ${$(r2)}`), n2;
36624
36623
  }
36625
36624
  };
36626
36625
  exports.CommonNaturalOptions = CommonNaturalOptions;
36626
+ exports.CommonTimezoneOptions = CommonTimezoneOptions;
36627
36627
  exports.DATE_REGEX_FORMAT = DATE_REGEX_FORMAT;
36628
36628
  exports.DATE_REGEX_PARSE = DATE_REGEX_PARSE;
36629
36629
  exports.DEFAULT_TIMEZONE = DEFAULT_TIMEZONE;
@@ -36633,7 +36633,7 @@ ${$(r2)}`), n2;
36633
36633
  exports.NaturalOptionType = NaturalOptionType;
36634
36634
  exports.NaturalUnit = NaturalUnit;
36635
36635
  exports.NowConstant = NowConstant;
36636
- exports.TimeZonePicker = TimeZonePicker;
36636
+ exports.TimezonePicker = TimezonePicker;
36637
36637
  exports.baselineDateRegexp = baselineDateRegexp;
36638
36638
  exports.commonDateList = commonDateList;
36639
36639
  exports.commonDateRegexp = commonDateRegexp;
@@ -36655,7 +36655,6 @@ ${$(r2)}`), n2;
36655
36655
  exports.naturalUnitOptions = naturalUnitOptions;
36656
36656
  exports.panels = panels;
36657
36657
  exports.recentDateRegexp = recentDateRegexp;
36658
- exports.timezoneDetails = timezoneDetails;
36659
36658
  exports.timezoneStoreKey = timezoneStoreKey;
36660
36659
  exports.transformDateRange2Dayjs = transformDateRange2Dayjs;
36661
36660
  exports.transformValue2Dayjs = transformValue2Dayjs;
@@ -25883,9 +25883,9 @@ ${$(r2)}`), n2;
25883
25883
  utc: list[2].toLocaleUpperCase()
25884
25884
  };
25885
25885
  };
25886
- const timezoneDetails = getTimezoneDetails();
25886
+ const CommonTimezoneOptions = getTimezoneDetails();
25887
25887
  const getTimezoneInfoByValue = (value) => {
25888
- return timezoneDetails.reduce((pre, group) => {
25888
+ return CommonTimezoneOptions.reduce((pre, group) => {
25889
25889
  if ((pre == null ? void 0 : pre.label) === value) return pre;
25890
25890
  return group.options.find((option) => option.label === value);
25891
25891
  }, void 0);
@@ -25897,7 +25897,7 @@ ${$(r2)}`), n2;
25897
25897
  },
25898
25898
  __name: "timezone-picker",
25899
25899
  props: {
25900
- timezoneOptions: { default: () => timezoneDetails },
25900
+ timezoneOptions: { default: () => CommonTimezoneOptions },
25901
25901
  value: {}
25902
25902
  },
25903
25903
  emits: ["update:value"],
@@ -25909,7 +25909,7 @@ ${$(r2)}`), n2;
25909
25909
  const $attrs = __WEBPACK_EXTERNAL_MODULE_vue__.useAttrs();
25910
25910
  const props2 = __props;
25911
25911
  const slots = __WEBPACK_EXTERNAL_MODULE_vue__.useSlots();
25912
- const TimezonePicker = () => {
25912
+ const TimezonePicker2 = () => {
25913
25913
  return __WEBPACK_EXTERNAL_MODULE_vue__.h(
25914
25914
  __webpack_exports__default$3,
25915
25915
  {
@@ -25922,8 +25922,7 @@ ${$(r2)}`), n2;
25922
25922
  noMatchText: t("无匹配数据"),
25923
25923
  placeholder: t("请输入搜索(国家,城市,简称)"),
25924
25924
  popoverOptions: {
25925
- "ext-cls": "__bk-date-picker-popover__ __bk-timezone-picker-popover__ ",
25926
- minWidth: 1600
25925
+ "ext-cls": "__bk-date-picker-popover__ __bk-timezone-picker-popover__ "
25927
25926
  },
25928
25927
  searchPlaceholder: t("请输入搜索(国家,城市,简称)"),
25929
25928
  onChange: handleChange,
@@ -26023,7 +26022,7 @@ ${$(r2)}`), n2;
26023
26022
  return ((_a = timezone.label) == null ? void 0 : _a.toLowerCase().includes(keyword.toLowerCase())) || ((_b = timezone.country) == null ? void 0 : _b.toLowerCase().includes(keyword.toLowerCase())) || ((_c = timezone.abbreviation) == null ? void 0 : _c.toLowerCase().includes(keyword.toLowerCase())) || ((_d = timezone.utc) == null ? void 0 : _d.toLowerCase().includes(keyword.toLowerCase()));
26024
26023
  };
26025
26024
  return (_ctx, _cache) => {
26026
- return __WEBPACK_EXTERNAL_MODULE_vue__.openBlock(), __WEBPACK_EXTERNAL_MODULE_vue__.createBlock(__WEBPACK_EXTERNAL_MODULE_vue__.resolveDynamicComponent(TimezonePicker));
26025
+ return __WEBPACK_EXTERNAL_MODULE_vue__.openBlock(), __WEBPACK_EXTERNAL_MODULE_vue__.createBlock(__WEBPACK_EXTERNAL_MODULE_vue__.resolveDynamicComponent(TimezonePicker2));
26027
26026
  };
26028
26027
  }
26029
26028
  });
@@ -28989,7 +28988,7 @@ ${$(r2)}`), n2;
28989
28988
  return createElement("div");
28990
28989
  }
28991
28990
  };
28992
- const TimeZonePicker = {
28991
+ const TimezonePicker = {
28993
28992
  model: {
28994
28993
  prop: "value",
28995
28994
  event: "change"
@@ -29003,9 +29002,9 @@ ${$(r2)}`), n2;
29003
29002
  render() {
29004
29003
  timezonePickerInstance = this;
29005
29004
  return __WEBPACK_EXTERNAL_MODULE_vue__.h(_sfc_main$b, {
29006
- modelValue: props2.value,
29007
29005
  ...attrs,
29008
- "onUpdate:modelValue"() {
29006
+ ...props2,
29007
+ "onUpdate:value"() {
29009
29008
  emit("update:value", ...arguments);
29010
29009
  emit("change", ...arguments);
29011
29010
  }
@@ -29036,6 +29035,7 @@ ${$(r2)}`), n2;
29036
29035
  }
29037
29036
  };
29038
29037
  exports2.CommonNaturalOptions = CommonNaturalOptions;
29038
+ exports2.CommonTimezoneOptions = CommonTimezoneOptions;
29039
29039
  exports2.DATE_REGEX_FORMAT = DATE_REGEX_FORMAT;
29040
29040
  exports2.DATE_REGEX_PARSE = DATE_REGEX_PARSE;
29041
29041
  exports2.DEFAULT_TIMEZONE = DEFAULT_TIMEZONE;
@@ -29045,7 +29045,7 @@ ${$(r2)}`), n2;
29045
29045
  exports2.NaturalOptionType = NaturalOptionType;
29046
29046
  exports2.NaturalUnit = NaturalUnit;
29047
29047
  exports2.NowConstant = NowConstant;
29048
- exports2.TimeZonePicker = TimeZonePicker;
29048
+ exports2.TimezonePicker = TimezonePicker;
29049
29049
  exports2.baselineDateRegexp = baselineDateRegexp;
29050
29050
  exports2.commonDateList = commonDateList;
29051
29051
  exports2.commonDateRegexp = commonDateRegexp;
@@ -29067,7 +29067,6 @@ ${$(r2)}`), n2;
29067
29067
  exports2.naturalUnitOptions = naturalUnitOptions;
29068
29068
  exports2.panels = panels;
29069
29069
  exports2.recentDateRegexp = recentDateRegexp;
29070
- exports2.timezoneDetails = timezoneDetails;
29071
29070
  exports2.timezoneStoreKey = timezoneStoreKey;
29072
29071
  exports2.transformDateRange2Dayjs = transformDateRange2Dayjs;
29073
29072
  exports2.transformValue2Dayjs = transformValue2Dayjs;
@@ -1486,9 +1486,9 @@ const getTimezoneInfo = (searchIndex) => {
1486
1486
  utc: list[2].toLocaleUpperCase()
1487
1487
  };
1488
1488
  };
1489
- const timezoneDetails = getTimezoneDetails();
1489
+ const CommonTimezoneOptions = getTimezoneDetails();
1490
1490
  const getTimezoneInfoByValue = (value) => {
1491
- return timezoneDetails.reduce((pre, group) => {
1491
+ return CommonTimezoneOptions.reduce((pre, group) => {
1492
1492
  if ((pre == null ? void 0 : pre.label) === value) return pre;
1493
1493
  return group.options.find((option) => option.label === value);
1494
1494
  }, void 0);
@@ -1500,7 +1500,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
1500
1500
  },
1501
1501
  __name: "timezone-picker",
1502
1502
  props: {
1503
- timezoneOptions: { default: () => timezoneDetails },
1503
+ timezoneOptions: { default: () => CommonTimezoneOptions },
1504
1504
  value: {}
1505
1505
  },
1506
1506
  emits: ["update:value"],
@@ -1525,8 +1525,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
1525
1525
  noMatchText: t("无匹配数据"),
1526
1526
  placeholder: t("请输入搜索(国家,城市,简称)"),
1527
1527
  popoverOptions: {
1528
- "ext-cls": "__bk-date-picker-popover__ __bk-timezone-picker-popover__ ",
1529
- minWidth: 1600
1528
+ "ext-cls": "__bk-date-picker-popover__ __bk-timezone-picker-popover__ "
1530
1529
  },
1531
1530
  searchPlaceholder: t("请输入搜索(国家,城市,简称)"),
1532
1531
  onChange: handleChange,
@@ -4518,6 +4517,7 @@ dayjs.extend(tz);
4518
4517
  dayjs.extend(utc);
4519
4518
  export {
4520
4519
  CommonNaturalOptions,
4520
+ CommonTimezoneOptions,
4521
4521
  DATE_REGEX_FORMAT,
4522
4522
  DATE_REGEX_PARSE,
4523
4523
  DEFAULT_TIMEZONE,
@@ -4551,7 +4551,6 @@ export {
4551
4551
  naturalUnitOptions,
4552
4552
  panels,
4553
4553
  recentDateRegexp,
4554
- timezoneDetails,
4555
4554
  timezoneStoreKey,
4556
4555
  transformDateRange2Dayjs,
4557
4556
  transformValue2Dayjs
@@ -26457,9 +26457,9 @@ ${$(r2)}`), n2;
26457
26457
  utc: list[2].toLocaleUpperCase()
26458
26458
  };
26459
26459
  };
26460
- const timezoneDetails = getTimezoneDetails();
26460
+ const CommonTimezoneOptions = getTimezoneDetails();
26461
26461
  const getTimezoneInfoByValue = (value) => {
26462
- return timezoneDetails.reduce((pre, group) => {
26462
+ return CommonTimezoneOptions.reduce((pre, group) => {
26463
26463
  if ((pre == null ? void 0 : pre.label) === value) return pre;
26464
26464
  return group.options.find((option) => option.label === value);
26465
26465
  }, void 0);
@@ -26471,7 +26471,7 @@ ${$(r2)}`), n2;
26471
26471
  },
26472
26472
  __name: "timezone-picker",
26473
26473
  props: {
26474
- timezoneOptions: { default: () => timezoneDetails },
26474
+ timezoneOptions: { default: () => CommonTimezoneOptions },
26475
26475
  value: {}
26476
26476
  },
26477
26477
  emits: ["update:value"],
@@ -26496,8 +26496,7 @@ ${$(r2)}`), n2;
26496
26496
  noMatchText: t("无匹配数据"),
26497
26497
  placeholder: t("请输入搜索(国家,城市,简称)"),
26498
26498
  popoverOptions: {
26499
- "ext-cls": "__bk-date-picker-popover__ __bk-timezone-picker-popover__ ",
26500
- minWidth: 1600
26499
+ "ext-cls": "__bk-date-picker-popover__ __bk-timezone-picker-popover__ "
26501
26500
  },
26502
26501
  searchPlaceholder: t("请输入搜索(国家,城市,简称)"),
26503
26502
  onChange: handleChange,
@@ -29520,6 +29519,7 @@ ${$(r2)}`), n2;
29520
29519
  dayjs.extend(tz);
29521
29520
  dayjs.extend(utc);
29522
29521
  exports.CommonNaturalOptions = CommonNaturalOptions;
29522
+ exports.CommonTimezoneOptions = CommonTimezoneOptions;
29523
29523
  exports.DATE_REGEX_FORMAT = DATE_REGEX_FORMAT;
29524
29524
  exports.DATE_REGEX_PARSE = DATE_REGEX_PARSE;
29525
29525
  exports.DEFAULT_TIMEZONE = DEFAULT_TIMEZONE;
@@ -29553,7 +29553,6 @@ ${$(r2)}`), n2;
29553
29553
  exports.naturalUnitOptions = naturalUnitOptions;
29554
29554
  exports.panels = panels;
29555
29555
  exports.recentDateRegexp = recentDateRegexp;
29556
- exports.timezoneDetails = timezoneDetails;
29557
29556
  exports.timezoneStoreKey = timezoneStoreKey;
29558
29557
  exports.transformDateRange2Dayjs = transformDateRange2Dayjs;
29559
29558
  exports.transformValue2Dayjs = transformValue2Dayjs;
@@ -1482,9 +1482,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1482
1482
  utc: list[2].toLocaleUpperCase()
1483
1483
  };
1484
1484
  };
1485
- const timezoneDetails = getTimezoneDetails();
1485
+ const CommonTimezoneOptions = getTimezoneDetails();
1486
1486
  const getTimezoneInfoByValue = (value) => {
1487
- return timezoneDetails.reduce((pre, group) => {
1487
+ return CommonTimezoneOptions.reduce((pre, group) => {
1488
1488
  if ((pre == null ? void 0 : pre.label) === value) return pre;
1489
1489
  return group.options.find((option) => option.label === value);
1490
1490
  }, void 0);
@@ -1496,7 +1496,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1496
1496
  },
1497
1497
  __name: "timezone-picker",
1498
1498
  props: {
1499
- timezoneOptions: { default: () => timezoneDetails },
1499
+ timezoneOptions: { default: () => CommonTimezoneOptions },
1500
1500
  value: {}
1501
1501
  },
1502
1502
  emits: ["update:value"],
@@ -1521,8 +1521,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1521
1521
  noMatchText: t("无匹配数据"),
1522
1522
  placeholder: t("请输入搜索(国家,城市,简称)"),
1523
1523
  popoverOptions: {
1524
- "ext-cls": "__bk-date-picker-popover__ __bk-timezone-picker-popover__ ",
1525
- minWidth: 1600
1524
+ "ext-cls": "__bk-date-picker-popover__ __bk-timezone-picker-popover__ "
1526
1525
  },
1527
1526
  searchPlaceholder: t("请输入搜索(国家,城市,简称)"),
1528
1527
  onChange: handleChange,
@@ -4514,6 +4513,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4514
4513
  dayjs.extend(utc);
4515
4514
  exports2.dayjs = dayjs;
4516
4515
  exports2.CommonNaturalOptions = CommonNaturalOptions;
4516
+ exports2.CommonTimezoneOptions = CommonTimezoneOptions;
4517
4517
  exports2.DATE_REGEX_FORMAT = DATE_REGEX_FORMAT;
4518
4518
  exports2.DATE_REGEX_PARSE = DATE_REGEX_PARSE;
4519
4519
  exports2.DEFAULT_TIMEZONE = DEFAULT_TIMEZONE;
@@ -4546,7 +4546,6 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4546
4546
  exports2.naturalUnitOptions = naturalUnitOptions;
4547
4547
  exports2.panels = panels;
4548
4548
  exports2.recentDateRegexp = recentDateRegexp;
4549
- exports2.timezoneDetails = timezoneDetails;
4550
4549
  exports2.timezoneStoreKey = timezoneStoreKey;
4551
4550
  exports2.transformDateRange2Dayjs = transformDateRange2Dayjs;
4552
4551
  exports2.transformValue2Dayjs = transformValue2Dayjs;