@das-fed/upf-utils 6.4.0-dev.249 → 6.4.0-dev.251
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/api-services/es5.js +2786 -2217
- package/api-services/index.js +2115 -1716
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +1911 -1342
- package/api-services/modules/app-manage/index.js +1450 -1051
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +2011 -1454
- package/api-services/modules/authentication/index.js +1547 -1166
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +2042 -1473
- package/api-services/modules/bems/index.js +1595 -1196
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +2039 -1470
- package/api-services/modules/contract/index.js +1592 -1193
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +1890 -1309
- package/api-services/modules/duty-manage/index.js +1446 -1029
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +2013 -1453
- package/api-services/modules/enterpriseright/index.js +1550 -1165
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +2891 -2313
- package/api-services/modules/file/es5.js +2814 -2245
- package/api-services/modules/file/index.js +2196 -1797
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +2011 -1454
- package/api-services/modules/gateway-edge/index.js +1547 -1166
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +2225 -1812
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +1929 -1357
- package/api-services/modules/iot/index.js +1464 -1061
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +1889 -1308
- package/api-services/modules/justauth/index.js +1443 -1026
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +2039 -1470
- package/api-services/modules/knowledge/index.js +1592 -1193
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +1886 -1305
- package/api-services/modules/link/index.js +1442 -1025
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +1907 -1338
- package/api-services/modules/permission/index.js +1445 -1046
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +2034 -1477
- package/api-services/modules/platformManage/index.js +1563 -1182
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +1907 -1338
- package/api-services/modules/portal/index.js +1445 -1046
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +2039 -1470
- package/api-services/modules/space-manage/index.js +1592 -1193
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +2029 -1472
- package/api-services/modules/super-admin/index.js +1559 -1178
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +2015 -1458
- package/api-services/modules/supplier/index.js +1549 -1168
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +1886 -1305
- package/api-services/modules/supplychain-manage/index.js +1442 -1025
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +2039 -1468
- package/api-services/modules/systemConfiguration/index.js +1593 -1190
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +1907 -1338
- package/api-services/modules/tool/index.js +1445 -1046
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +2007 -1450
- package/api-services/src/create-service/index.js +1544 -1163
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +2443 -1886
- package/common-info/getPermissionMethod/es5.js +1945 -1376
- package/common-info/getPermissionMethod/index.js +1442 -1043
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.js +1861 -1480
- package/common-info/index.js.gz +0 -0
- package/common-tools/timezone-format/es5.d.ts +60 -1
- package/common-tools/timezone-format/es5.js +832 -531
- package/common-tools/timezone-format/get-iana-data/es5.d.ts +3 -0
- package/common-tools/timezone-format/get-iana-data/es5.js +353 -0
- package/common-tools/timezone-format/get-iana-data/index.d.ts +3 -0
- package/common-tools/timezone-format/get-iana-data/index.js +213 -0
- package/common-tools/timezone-format/get-iana-data/index.js.gz +0 -0
- package/common-tools/timezone-format/get-iana-data/moment-iana-loader.d.ts +4 -3
- package/common-tools/timezone-format/index.d.ts +60 -1
- package/common-tools/timezone-format/index.js +547 -339
- package/common-tools/timezone-format/index.js.gz +0 -0
- package/create-api-service/es5.js +1877 -1298
- package/create-api-service/index.js +1434 -1021
- package/create-api-service/index.js.gz +0 -0
- package/esm-map.json +16 -1
- package/package.json +3 -3
- package/theme/es5.js +1 -1
- package/theme/index.js +1 -1
- package/theme/index.js.gz +0 -0
package/common-info/index.js.gz
CHANGED
|
Binary file
|
|
@@ -94,9 +94,21 @@ export interface FormatLocalDateTimeOptions {
|
|
|
94
94
|
/** 未传 timeZone 时是否读取 sessionStorage/客户端时区。默认 false,兼容旧 toLocalDate。 */
|
|
95
95
|
useClientTimeZone?: boolean;
|
|
96
96
|
}
|
|
97
|
+
export interface FormatLocalDateTimeIntlOptions {
|
|
98
|
+
/** 目标 IANA 时区;为空时读取浏览器当前时区。 */
|
|
99
|
+
timeZone?: string | null;
|
|
100
|
+
/** 输出格式,默认 YYYY-MM-DD HH:mm:ss。 */
|
|
101
|
+
format?: string;
|
|
102
|
+
/** Intl locale,默认 zh-CN,保证中后台测试文案稳定。 */
|
|
103
|
+
locale?: string;
|
|
104
|
+
}
|
|
97
105
|
export interface ApplyIanaTimeZoneOptions {
|
|
98
106
|
/** 指定默认时区,后续 dayjs.tz(value) 可直接使用。 */
|
|
99
107
|
defaultTimeZone?: string;
|
|
108
|
+
/** 运行期快照来源:接口数据为 iana,随包数据或本地兜底为 fallback。 */
|
|
109
|
+
runtimeSource?: IanaTimeZoneDataSource;
|
|
110
|
+
/** 是否把 packed 数据写到 window 快照,供 iframe 子应用复用。默认 true。 */
|
|
111
|
+
writeRuntimeSnapshot?: boolean;
|
|
100
112
|
}
|
|
101
113
|
export interface LoadIanaTimeZoneOptions extends PreloadDayjsIanaOptions, ApplyIanaTimeZoneOptions {
|
|
102
114
|
}
|
|
@@ -104,9 +116,48 @@ export interface ApplyIanaTimeZoneResult {
|
|
|
104
116
|
data: PackedIanaData;
|
|
105
117
|
knownTimeZones: string[];
|
|
106
118
|
}
|
|
119
|
+
export type IanaTimeZoneDataSource = 'iana' | 'fallback';
|
|
120
|
+
export interface RuntimeIanaTimeZoneDataSnapshot extends PackedIanaData {
|
|
121
|
+
source: IanaTimeZoneDataSource;
|
|
122
|
+
timestamp: number;
|
|
123
|
+
}
|
|
107
124
|
export interface LoadMomentIanaTimeZoneOptions extends LoadIanaFromApiOptions {
|
|
108
125
|
url?: string;
|
|
109
126
|
}
|
|
127
|
+
export interface ClientTimeZoneChangeDetail {
|
|
128
|
+
/** 当前用户选择的 IANA 时区;空字符串表示清空选择并回退本机推断。 */
|
|
129
|
+
timeZone: string;
|
|
130
|
+
/** 触发来源,用于区分主应用、子应用同步或本窗口事件。 */
|
|
131
|
+
source?: string;
|
|
132
|
+
timestamp: number;
|
|
133
|
+
}
|
|
134
|
+
export interface SetClientTimeZoneOptions {
|
|
135
|
+
/** 是否写入 sessionStorage.timeZone,默认 true。 */
|
|
136
|
+
persist?: boolean;
|
|
137
|
+
/** 是否通知 onClientTimeZoneChange 订阅者,默认 true。 */
|
|
138
|
+
notify?: boolean;
|
|
139
|
+
/** 是否派发 window timezonechange 事件,默认 true。 */
|
|
140
|
+
dispatchEvent?: boolean;
|
|
141
|
+
/** 是否同步 dayjs 默认时区,默认 true。 */
|
|
142
|
+
syncDefault?: boolean;
|
|
143
|
+
source?: string;
|
|
144
|
+
}
|
|
145
|
+
export type ClientTimeZoneChangeHandler = (timeZone: string, detail: ClientTimeZoneChangeDetail) => void;
|
|
146
|
+
export interface ClientTimeZoneRef {
|
|
147
|
+
/** 框架无关的当前时区快照;Vue/Angular/原生应用都可直接读取。 */
|
|
148
|
+
value: string;
|
|
149
|
+
}
|
|
150
|
+
export declare const TIMEZONE_CHANGE_EVENT = "timezonechange";
|
|
151
|
+
export declare const UPF_TIMEZONE_MESSAGE_TYPE = "__UPF_TIMEZONE_CHANGE__";
|
|
152
|
+
export declare const UPF_IANA_TIMEZONE_DATA_KEY = "__UPF_IANA_TIMEZONE_DATA__";
|
|
153
|
+
export declare const IANA_TIMEZONE_DATA_CHANGE_EVENT = "ianatimezonedatachange";
|
|
154
|
+
export declare const setRuntimeIanaTimeZoneDataSnapshot: (data: PackedIanaData, options?: {
|
|
155
|
+
source?: IanaTimeZoneDataSource;
|
|
156
|
+
dispatchEvent?: boolean;
|
|
157
|
+
}) => RuntimeIanaTimeZoneDataSnapshot | null;
|
|
158
|
+
export declare const getRuntimeIanaTimeZoneDataSnapshot: () => RuntimeIanaTimeZoneDataSnapshot | null;
|
|
159
|
+
export declare const readInjectedParentIanaTimeZoneDataSnapshot: () => RuntimeIanaTimeZoneDataSnapshot | null;
|
|
160
|
+
export declare const clientTimeZone: ClientTimeZoneRef;
|
|
110
161
|
export declare const isKnownTimeZone: (timeZone?: string | null) => any;
|
|
111
162
|
export declare const rebuildKnownTimeZoneIds: (data: Pick<PackedIanaData, "zones" | "links">) => any;
|
|
112
163
|
export declare const getKnownTimeZoneIds: () => any;
|
|
@@ -114,14 +165,22 @@ export declare const applyDayjsIanaTimeZoneData: (data: PackedIanaData, options?
|
|
|
114
165
|
export declare const loadDayjsIanaTimeZoneData: (options?: LoadIanaTimeZoneOptions) => Promise<ApplyIanaTimeZoneResult>;
|
|
115
166
|
export declare const applyMomentIanaTimeZoneData: (moment: MomentWithTimezone, data: PackedIanaTzData) => PackedIanaTzData;
|
|
116
167
|
export declare const loadMomentIanaTimeZoneData: (moment: MomentWithTimezone, options?: LoadMomentIanaTimeZoneOptions) => unknown;
|
|
168
|
+
export declare const setDefaultTimeZone: (timeZone?: string | null) => boolean;
|
|
169
|
+
export declare const ensureInjectedIanaTimeZoneData: () => Promise<ApplyIanaTimeZoneResult | null>;
|
|
170
|
+
export declare const setClientTimeZone: (timeZone?: string | null, options?: SetClientTimeZoneOptions) => any;
|
|
171
|
+
export declare const syncClientTimeZone: (source?: string) => any;
|
|
172
|
+
export declare const onClientTimeZoneChange: (handler: ClientTimeZoneChangeHandler) => () => any;
|
|
173
|
+
export declare const initClientTimeZoneSync: () => boolean;
|
|
117
174
|
export declare const getClientTimeZone: () => any;
|
|
118
175
|
export declare const resolveTimeZone: (timeZone?: string | null) => any;
|
|
119
|
-
export declare const setDefaultTimeZone: (timeZone?: string | null) => boolean;
|
|
120
176
|
export declare const normalizeLocaleCode: (locale?: string, supportedLocales?: string[]) => any;
|
|
121
177
|
export declare const getZoneUtcOffset: (value: TimeValue, timeZone?: string | null) => any;
|
|
122
178
|
export declare const formatInTimeZone: (value?: TimeValue, timeZone?: string | null, format?: string) => any;
|
|
123
179
|
export declare const formatLocalDateTime: (value?: TimeValue, options?: FormatLocalDateTimeOptions | string) => string;
|
|
124
180
|
export declare const toLocalDate: (value?: TimeValue, format?: string, options?: Omit<FormatLocalDateTimeOptions, "format">) => string;
|
|
181
|
+
export declare const getBrowserTimeZone: () => any;
|
|
182
|
+
export declare function formatLocalDateTimeIntl(value?: TimeValue, timeZone?: string | null, format?: string, locale?: string): string;
|
|
183
|
+
export declare function formatLocalDateTimeIntl(value?: TimeValue, options?: FormatLocalDateTimeIntlOptions): string;
|
|
125
184
|
export declare const formatTimeZoneOffsetLabel: (value?: TimeValue, timeZone?: string | null) => string;
|
|
126
185
|
export declare const resolveUtcOffsetFallback: (option: Pick<TimeZoneOption, "timeZoneId" | "baseUtcOffsetText" | "currentUtcOffsetText">, referenceDate?: Date) => string;
|
|
127
186
|
export declare const timeZoneHasDST: (timeZone?: string | null, value?: TimeValue) => boolean;
|