@das-fed/upf-utils 6.4.0-dev.270 → 6.4.0-dev.271

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.
Files changed (55) hide show
  1. package/api-services/es5.js +1672 -1660
  2. package/api-services/index.js +1362 -1344
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/es5.js +850 -852
  5. package/api-services/modules/app-manage/index.js +667 -671
  6. package/api-services/modules/app-manage/index.js.gz +0 -0
  7. package/api-services/modules/bems/es5.js +1141 -1153
  8. package/api-services/modules/bems/index.js +946 -964
  9. package/api-services/modules/bems/index.js.gz +0 -0
  10. package/api-services/modules/contract/es5.js +1122 -1134
  11. package/api-services/modules/contract/index.js +930 -948
  12. package/api-services/modules/contract/index.js.gz +0 -0
  13. package/api-services/modules/enterpriseright/es5.js +1134 -1122
  14. package/api-services/modules/enterpriseright/index.js +948 -930
  15. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  16. package/api-services/modules/file/es5.js +1548 -1536
  17. package/api-services/modules/file/index.js +1284 -1266
  18. package/api-services/modules/file/index.js.gz +0 -0
  19. package/api-services/modules/iot/es5.js +1229 -1241
  20. package/api-services/modules/iot/index.js +1021 -1039
  21. package/api-services/modules/iot/index.js.gz +0 -0
  22. package/api-services/modules/knowledge/es5.js +1122 -1134
  23. package/api-services/modules/knowledge/index.js +930 -948
  24. package/api-services/modules/knowledge/index.js.gz +0 -0
  25. package/api-services/modules/permission/es5.js +1122 -1134
  26. package/api-services/modules/permission/index.js +930 -948
  27. package/api-services/modules/permission/index.js.gz +0 -0
  28. package/api-services/modules/platformManage/es5.js +1238 -1226
  29. package/api-services/modules/platformManage/index.js +1032 -1014
  30. package/api-services/modules/platformManage/index.js.gz +0 -0
  31. package/api-services/modules/portal/es5.js +1122 -1134
  32. package/api-services/modules/portal/index.js +930 -948
  33. package/api-services/modules/portal/index.js.gz +0 -0
  34. package/api-services/modules/space-manage/es5.js +1122 -1110
  35. package/api-services/modules/space-manage/index.js +936 -918
  36. package/api-services/modules/space-manage/index.js.gz +0 -0
  37. package/api-services/modules/supplychain-manage/es5.js +1134 -1122
  38. package/api-services/modules/supplychain-manage/index.js +948 -930
  39. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  40. package/api-services/modules/systemConfiguration/es5.js +1134 -1122
  41. package/api-services/modules/systemConfiguration/index.js +948 -930
  42. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  43. package/common-info/getPermissionMethod/es5.js +1356 -1365
  44. package/common-info/getPermissionMethod/index.js +1121 -1135
  45. package/common-info/getPermissionMethod/index.js.gz +0 -0
  46. package/common-tools/timezone-format/es5.d.ts +25 -0
  47. package/common-tools/timezone-format/es5.js +545 -456
  48. package/common-tools/timezone-format/index.d.ts +25 -0
  49. package/common-tools/timezone-format/index.js +376 -326
  50. package/common-tools/timezone-format/index.js.gz +0 -0
  51. package/curring-http/es5.js +406 -417
  52. package/curring-http/index.js +323 -321
  53. package/curring-http/index.js.gz +0 -0
  54. package/esm-map.json +7 -1
  55. package/package.json +3 -3
@@ -9,6 +9,7 @@ export type TimeValue = string | number | Date | Dayjs | null | undefined;
9
9
  export type TimeZoneFlag = number | string | null | undefined;
10
10
  export type TimeZoneDateLibrary = 'dayjs' | 'moment';
11
11
  export type TimeZoneInputMode = 'instant' | 'local';
12
+ export type TimeZonePickerMode = 'none' | 'instant' | 'local';
12
13
  interface MomentFormatValue {
13
14
  tz?: (timeZone: string) => MomentFormatValue;
14
15
  format: (format?: string) => string;
@@ -103,6 +104,24 @@ export interface FormatLocalDateTimeIntlOptions {
103
104
  /** Intl 本地化语言,默认 zh-CN。 */
104
105
  locale?: string;
105
106
  }
107
+ export interface TimeZonePickerOptions {
108
+ /** none 保持原行为;instant 表示真实时间点;local 表示业务时区本地时间。 */
109
+ timeZoneMode?: TimeZonePickerMode;
110
+ /** 显式业务时区,优先级高于 useClientTimeZone。 */
111
+ timeZone?: string | null;
112
+ /** 是否读取当前客户端/右上角选择的时区。 */
113
+ useClientTimeZone?: boolean;
114
+ /** 开启时区模式后的输出格式;未传时 instant 默认带 offset,local 默认本地时间文本。 */
115
+ timeZoneValueFormat?: string;
116
+ }
117
+ export interface TimeZoneDayBoundaryOptions {
118
+ /** 显式业务时区;为空时可配合 useClientTimeZone 读取当前用户时区。 */
119
+ timeZone?: string | null;
120
+ /** 是否读取当前客户端/右上角选择的时区。 */
121
+ useClientTimeZone?: boolean;
122
+ /** date 保留输入日期标签;instant 按真实时间点在目标时区所属日期计算。 */
123
+ inputMode?: 'date' | 'instant';
124
+ }
106
125
  export interface ApplyIanaTimeZoneOptions {
107
126
  /** 指定默认时区,后续 dayjs.tz(value) 可直接使用。 */
108
127
  defaultTimeZone?: string;
@@ -168,10 +187,16 @@ export declare const onClientTimeZoneChange: (handler: ClientTimeZoneChangeHandl
168
187
  export declare const initClientTimeZoneSync: () => boolean;
169
188
  export declare const getClientTimeZone: () => any;
170
189
  export declare const resolveTimeZone: (timeZone?: string | null) => any;
190
+ export declare const resolvePickerTimeZone: (options?: TimeZonePickerOptions) => any;
191
+ export declare const isTimeZonePickerModeEnabled: (options?: TimeZonePickerOptions) => boolean;
171
192
  export declare const normalizeLocaleCode: (locale?: string, supportedLocales?: string[]) => any;
172
193
  export declare const getTimeZoneDayjs: () => TimeZoneDayjsFactory;
194
+ export declare const toTimeZonePickerValue: <T extends TimeValue>(value?: T, options?: TimeZonePickerOptions) => any;
195
+ export declare const fromTimeZonePickerValue: (value?: TimeValue, options?: TimeZonePickerOptions) => any;
173
196
  export declare const getZoneUtcOffset: (value: TimeValue, timeZone?: string | null) => any;
174
197
  export declare const formatInTimeZone: (value?: TimeValue, timeZone?: string | null, format?: string) => any;
198
+ export declare const toTimestampAtZoneStartOfDay: (value?: TimeValue, options?: TimeZoneDayBoundaryOptions) => number | undefined;
199
+ export declare const toTimestampAtZoneEndOfDay: (value?: TimeValue, options?: TimeZoneDayBoundaryOptions) => number | undefined;
175
200
  export declare const isMomentTimezoneFormatInstance: (moment?: unknown) => moment is MomentTimezoneFormatInstance;
176
201
  export declare const formatLocalDateTime: (value?: TimeValue, options?: FormatLocalDateTimeOptions | string) => string;
177
202
  export declare const formatLocalDateTimeIntl: (value?: TimeValue, options?: FormatLocalDateTimeIntlOptions | string) => string;