@ailife-dev-vue/uiplus 0.1.5 → 0.1.7-snapshot
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/dist/index.css +1 -1
- package/dist/index.d.ts +534 -193
- package/dist/index.mjs +11973 -10199
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,20 +7,17 @@ import { ComponentProvideOptions } from 'vue';
|
|
|
7
7
|
import { Composer } from 'vue-i18n';
|
|
8
8
|
import { ComputedRef } from 'vue';
|
|
9
9
|
import { CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
10
|
-
import { CSSProperties } from 'vue';
|
|
11
10
|
import { DefineComponent } from 'vue';
|
|
12
11
|
import { ExtractPropTypes } from 'vue';
|
|
13
12
|
import { GlobalComponents } from 'vue';
|
|
14
13
|
import { GlobalDirectives } from 'vue';
|
|
15
14
|
import { InjectionKey } from 'vue';
|
|
16
15
|
import { MaybeRef } from 'vue';
|
|
17
|
-
import { MaybeRefOrGetter } from 'vue';
|
|
18
16
|
import { Plugin as Plugin_2 } from 'vue';
|
|
19
17
|
import { PropType } from 'vue';
|
|
20
18
|
import { PublicProps } from 'vue';
|
|
21
19
|
import { Ref } from 'vue';
|
|
22
20
|
import { VNodeProps } from 'vue';
|
|
23
|
-
import { WatchSource } from 'vue';
|
|
24
21
|
|
|
25
22
|
export declare type ActionStatusbarCommandPayload = HilinkDeviceControlPayload;
|
|
26
23
|
|
|
@@ -135,8 +132,20 @@ declare const boolIconCardProps: {
|
|
|
135
132
|
type: PropType<BoolIconCardLocaleText>;
|
|
136
133
|
default: string;
|
|
137
134
|
};
|
|
135
|
+
/** 点击单下发:每次点击固定下发 `singleTapDispatchTarget` 对应值,视觉不跟随 inject state */
|
|
136
|
+
singleTapDispatch: {
|
|
137
|
+
type: BooleanConstructor;
|
|
138
|
+
default: boolean;
|
|
139
|
+
};
|
|
140
|
+
/** 单下发方向:`open` → 1,`close` → 0;`singleTapDispatch=true` 时生效 */
|
|
141
|
+
singleTapDispatchTarget: {
|
|
142
|
+
type: PropType<BoolIconCardSingleTapDispatchTarget>;
|
|
143
|
+
default: string;
|
|
144
|
+
};
|
|
138
145
|
};
|
|
139
146
|
|
|
147
|
+
declare type BoolIconCardSingleTapDispatchTarget = 'open' | 'close';
|
|
148
|
+
|
|
140
149
|
/** 与 `sendHilinkDeviceControl` / `window.hilink._deviceControlInner` 约定一致 */
|
|
141
150
|
export declare type BoolPanelCardCommandPayload = HilinkDeviceControlPayload;
|
|
142
151
|
|
|
@@ -203,17 +212,6 @@ declare const boolPanelCardProps: {
|
|
|
203
212
|
};
|
|
204
213
|
};
|
|
205
214
|
|
|
206
|
-
/** 半卡主/副标题默认 fit 参数,供文档与接入方引用 */
|
|
207
|
-
export declare const CARD_TITLE_TEXT_FIT_DEFAULTS: {
|
|
208
|
-
readonly titleMode: CardTitleTextLineMode;
|
|
209
|
-
readonly subtitleMode: CardTitleTextLineMode;
|
|
210
|
-
readonly titleBaseFontSize: 16;
|
|
211
|
-
readonly subtitleBaseFontSize: 12;
|
|
212
|
-
readonly titleMinFontSize: 12;
|
|
213
|
-
readonly subtitleMinFontSize: 9;
|
|
214
|
-
readonly lineHeightRatio: 1.2;
|
|
215
|
-
};
|
|
216
|
-
|
|
217
215
|
export declare type CardsProps = ExtractPropTypes<typeof cardsProps>;
|
|
218
216
|
|
|
219
217
|
declare const cardsProps: {
|
|
@@ -224,8 +222,6 @@ declare const cardsProps: {
|
|
|
224
222
|
};
|
|
225
223
|
};
|
|
226
224
|
|
|
227
|
-
export declare type CardTitleTextLineMode = 1 | 2;
|
|
228
|
-
|
|
229
225
|
export declare interface Characteristic {
|
|
230
226
|
characteristicName: string;
|
|
231
227
|
characteristicType: string;
|
|
@@ -354,28 +350,11 @@ export declare type CommonInfoViewItem = {
|
|
|
354
350
|
isEnum: boolean;
|
|
355
351
|
};
|
|
356
352
|
|
|
357
|
-
/** 解析 HiLink 桥接层返回的 JSON 字符串(与历史记录等回调格式一致)。 */
|
|
358
|
-
export declare function dataChange(result: string): unknown;
|
|
359
|
-
|
|
360
353
|
declare const _default: {
|
|
361
354
|
install: (app: App) => void;
|
|
362
355
|
};
|
|
363
356
|
export default _default;
|
|
364
357
|
|
|
365
|
-
/** UpDelay 组件文案 key(`@uiplus/locale` zh-CN / en-US) */
|
|
366
|
-
export declare const DELAY_I18N_KEYS: {
|
|
367
|
-
readonly titleIdle: "delay.titleIdle";
|
|
368
|
-
readonly titleOn: "delay.titleOn";
|
|
369
|
-
readonly titleOff: "delay.titleOff";
|
|
370
|
-
readonly previewWillOn: "delay.previewWillOn";
|
|
371
|
-
readonly previewWillOff: "delay.previewWillOff";
|
|
372
|
-
readonly previewWillOnTomorrow: "delay.previewWillOnTomorrow";
|
|
373
|
-
readonly previewWillOffTomorrow: "delay.previewWillOffTomorrow";
|
|
374
|
-
readonly closeCountdown: "delay.closeCountdown";
|
|
375
|
-
readonly wheelHour: "delay.wheelHour";
|
|
376
|
-
readonly wheelMinute: "delay.wheelMinute";
|
|
377
|
-
};
|
|
378
|
-
|
|
379
358
|
export declare type DelayCardSize = 'full' | 'half';
|
|
380
359
|
|
|
381
360
|
export declare type DelayProps = ExtractPropTypes<typeof delayProps>;
|
|
@@ -391,8 +370,6 @@ declare const delayProps: {
|
|
|
391
370
|
};
|
|
392
371
|
};
|
|
393
372
|
|
|
394
|
-
export declare const DEVICE_INFO_STATE_KEY: InjectionKey<MaybeRef_2<ProductState>>;
|
|
395
|
-
|
|
396
373
|
/**
|
|
397
374
|
* `设备基础信息字段(宿主可通过 provide 注入)。
|
|
398
375
|
*/
|
|
@@ -512,6 +489,9 @@ export declare const enUS: {
|
|
|
512
489
|
'status-on': string;
|
|
513
490
|
'status-off': string;
|
|
514
491
|
'status-enabled': string;
|
|
492
|
+
'status-executing': string;
|
|
493
|
+
'status-execution-completed': string;
|
|
494
|
+
'status-execution-failed': string;
|
|
515
495
|
'open-dialog-default-title': string;
|
|
516
496
|
'open-dialog-default-content': string;
|
|
517
497
|
'close-dialog-default-title': string;
|
|
@@ -685,6 +665,14 @@ export declare const enUS: {
|
|
|
685
665
|
subtitleMinuteSecond: string;
|
|
686
666
|
closePrefix: string;
|
|
687
667
|
};
|
|
668
|
+
timerCut: {
|
|
669
|
+
title: string;
|
|
670
|
+
subtitle: string;
|
|
671
|
+
durationZero: string;
|
|
672
|
+
durationSeconds: string;
|
|
673
|
+
durationMinutes: string;
|
|
674
|
+
durationMinuteSecond: string;
|
|
675
|
+
};
|
|
688
676
|
generalEnumSlider: {
|
|
689
677
|
placeholderOption1: string;
|
|
690
678
|
placeholderOption2: string;
|
|
@@ -697,7 +685,10 @@ export declare const enUS: {
|
|
|
697
685
|
placeholderOption4: string;
|
|
698
686
|
more: string;
|
|
699
687
|
};
|
|
700
|
-
commonBannerNew: {
|
|
688
|
+
commonBannerNew: {
|
|
689
|
+
placeholderStatus: string;
|
|
690
|
+
placeholderDescription: string;
|
|
691
|
+
};
|
|
701
692
|
generalMode: {
|
|
702
693
|
actionOpen: string;
|
|
703
694
|
inUse: string;
|
|
@@ -720,6 +711,15 @@ export declare const enUS: {
|
|
|
720
711
|
placeholderOption3: string;
|
|
721
712
|
placeholderOption4: string;
|
|
722
713
|
};
|
|
714
|
+
generalWheel: {
|
|
715
|
+
zoneUp: string;
|
|
716
|
+
zoneDown: string;
|
|
717
|
+
zoneLeft: string;
|
|
718
|
+
zoneRight: string;
|
|
719
|
+
zoneCenter: string;
|
|
720
|
+
operateMinus: string;
|
|
721
|
+
operatePlus: string;
|
|
722
|
+
};
|
|
723
723
|
generalIntCard: {
|
|
724
724
|
inputPlaceholder: string;
|
|
725
725
|
};
|
|
@@ -890,41 +890,6 @@ declare const firmwareUpdatesProps: {
|
|
|
890
890
|
};
|
|
891
891
|
};
|
|
892
892
|
|
|
893
|
-
export declare const formatCommonInfoMinutesAsHHMM: (totalMinutes: number) => string;
|
|
894
|
-
|
|
895
|
-
export declare const formatCommonInfoNumericDisplay: (value: number, step: number) => string;
|
|
896
|
-
|
|
897
|
-
export declare const formatCommonInfoSecondsAsHHMMSS: (totalSeconds: number) => string;
|
|
898
|
-
|
|
899
|
-
/** 总秒数 → `MM:SS`(分秒) */
|
|
900
|
-
export declare const formatCommonInfoSecondsAsMMSS: (totalSeconds: number) => string;
|
|
901
|
-
|
|
902
|
-
export declare const formatNumericDisplay: (value: number, step: number) => string;
|
|
903
|
-
|
|
904
|
-
/**
|
|
905
|
-
* 将 `Date` 格式化为 UTC 绝对时间字符串。
|
|
906
|
-
* 格式:`yyyyMMddTHHmmssZ`(24h),例如 `20160321T121200Z`。
|
|
907
|
-
* 与 `mockData/profile.json` 中 delay/timer 等特征的 UTC 时间描述一致。
|
|
908
|
-
*/
|
|
909
|
-
export declare function formatUtcAbsoluteTime(date: Date): string;
|
|
910
|
-
|
|
911
|
-
/** 当前时刻起偏移若干毫秒后的 UTC 绝对时间(倒计时、延时等场景常用) */
|
|
912
|
-
export declare function formatUtcAbsoluteTimeAfterOffsetMs(offsetMs: number): string;
|
|
913
|
-
|
|
914
|
-
/** 毫秒时间戳 → `formatUtcAbsoluteTime` */
|
|
915
|
-
export declare function formatUtcAbsoluteTimeFromMs(timestampMs: number): string;
|
|
916
|
-
|
|
917
|
-
/** UpGeneralTimeSwitch 组件文案 key(`@uiplus/locale` zh-CN / en-US) */
|
|
918
|
-
export declare const GENERAL_TIME_SWITCH_I18N_KEYS: {
|
|
919
|
-
readonly unitHour: "generalTimeSwitch.unitHour";
|
|
920
|
-
readonly unitMinute: "generalTimeSwitch.unitMinute";
|
|
921
|
-
readonly unitSecond: "generalTimeSwitch.unitSecond";
|
|
922
|
-
readonly subtitleHourMinute: "generalTimeSwitch.subtitleHourMinute";
|
|
923
|
-
readonly subtitleMinuteSecond: "generalTimeSwitch.subtitleMinuteSecond";
|
|
924
|
-
/** active 弹框左键:前缀 + 弹框标题(如「关闭自清洁倒计时」) */
|
|
925
|
-
readonly closePrefix: "generalTimeSwitch.closePrefix";
|
|
926
|
-
};
|
|
927
|
-
|
|
928
893
|
export declare type GeneralCombinedDeliveryDisplayItem = {
|
|
929
894
|
enumVal: string;
|
|
930
895
|
label: string;
|
|
@@ -961,6 +926,37 @@ export declare type GeneralCombinedDeliverySecondaryConfig = {
|
|
|
961
926
|
rangeMax?: number;
|
|
962
927
|
};
|
|
963
928
|
|
|
929
|
+
export declare type GeneralDisplayCardCardSize = 'full' | 'half';
|
|
930
|
+
|
|
931
|
+
export declare type GeneralDisplayCardLevelColorPair = {
|
|
932
|
+
light?: string;
|
|
933
|
+
dark?: string;
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
/** level 枚举取值与 current 数值着色配置(浅色 color / 深色 darkColor) */
|
|
937
|
+
export declare type GeneralDisplayCardLevelConfig = {
|
|
938
|
+
enumVal: string | number;
|
|
939
|
+
color?: string;
|
|
940
|
+
darkColor?: string;
|
|
941
|
+
};
|
|
942
|
+
|
|
943
|
+
export declare type GeneralDisplayCardProps = ExtractPropTypes<typeof generalDisplayCardProps>;
|
|
944
|
+
|
|
945
|
+
declare const generalDisplayCardProps: {
|
|
946
|
+
subscribes: {
|
|
947
|
+
type: PropType<ProductSubscribe[]>;
|
|
948
|
+
default: () => never[];
|
|
949
|
+
};
|
|
950
|
+
level: {
|
|
951
|
+
type: PropType<GeneralDisplayCardLevelConfig[]>;
|
|
952
|
+
default: () => never[];
|
|
953
|
+
};
|
|
954
|
+
cardSize: {
|
|
955
|
+
type: PropType<GeneralDisplayCardCardSize>;
|
|
956
|
+
default: string;
|
|
957
|
+
};
|
|
958
|
+
};
|
|
959
|
+
|
|
964
960
|
export declare type GeneralEnumDialogCardCommandPayload = HilinkDeviceControlPayload;
|
|
965
961
|
|
|
966
962
|
export declare type GeneralEnumDialogCardProps = ExtractPropTypes<typeof generalEnumDialogCardProps>;
|
|
@@ -1071,6 +1067,25 @@ declare const generalEnumTileProps: {
|
|
|
1071
1067
|
};
|
|
1072
1068
|
};
|
|
1073
1069
|
|
|
1070
|
+
export declare type GeneralExecutionCardSize = 'full' | 'half';
|
|
1071
|
+
|
|
1072
|
+
export declare type GeneralExecutionCommandPayload = HilinkDeviceControlPayload;
|
|
1073
|
+
|
|
1074
|
+
export declare type GeneralExecutionPhase = 'inactive' | 'executing' | 'completed' | 'failed';
|
|
1075
|
+
|
|
1076
|
+
export declare type GeneralExecutionProps = ExtractPropTypes<typeof generalExecutionProps>;
|
|
1077
|
+
|
|
1078
|
+
declare const generalExecutionProps: {
|
|
1079
|
+
subscribes: {
|
|
1080
|
+
type: PropType<ProductSubscribe[]>;
|
|
1081
|
+
default: () => never[];
|
|
1082
|
+
};
|
|
1083
|
+
cardSize: {
|
|
1084
|
+
type: PropType<GeneralExecutionCardSize>;
|
|
1085
|
+
default: string;
|
|
1086
|
+
};
|
|
1087
|
+
};
|
|
1088
|
+
|
|
1074
1089
|
export declare interface GeneralHistoricalRecordConfigItem {
|
|
1075
1090
|
/** 对应 historyServices[].serviceId */
|
|
1076
1091
|
sid: string;
|
|
@@ -1186,6 +1201,23 @@ declare const generalIntTileProps: {
|
|
|
1186
1201
|
};
|
|
1187
1202
|
};
|
|
1188
1203
|
|
|
1204
|
+
export declare type GeneralMemoryControlCardSize = 'full' | 'half';
|
|
1205
|
+
|
|
1206
|
+
export declare type GeneralMemoryControlCommandPayload = HilinkDeviceControlPayload;
|
|
1207
|
+
|
|
1208
|
+
export declare type GeneralMemoryControlProps = ExtractPropTypes<typeof generalMemoryControlProps>;
|
|
1209
|
+
|
|
1210
|
+
declare const generalMemoryControlProps: {
|
|
1211
|
+
subscribes: {
|
|
1212
|
+
type: PropType<ProductSubscribe[]>;
|
|
1213
|
+
default: () => never[];
|
|
1214
|
+
};
|
|
1215
|
+
cardSize: {
|
|
1216
|
+
type: PropType<GeneralMemoryControlCardSize>;
|
|
1217
|
+
default: string;
|
|
1218
|
+
};
|
|
1219
|
+
};
|
|
1220
|
+
|
|
1189
1221
|
export declare type GeneralModeDisplayItem = {
|
|
1190
1222
|
enumVal: string;
|
|
1191
1223
|
label: string;
|
|
@@ -1296,6 +1328,25 @@ export declare interface GeneralScreenRowModel {
|
|
|
1296
1328
|
|
|
1297
1329
|
export declare type GeneralScreenTimeUnit = 'hour' | 'day';
|
|
1298
1330
|
|
|
1331
|
+
export declare type GeneralTaskCardSize = 'full' | 'half';
|
|
1332
|
+
|
|
1333
|
+
export declare type GeneralTaskCommandPayload = HilinkDeviceControlPayload;
|
|
1334
|
+
|
|
1335
|
+
export declare type GeneralTaskPhase = 'inactive' | 'executing' | 'completed' | 'failed';
|
|
1336
|
+
|
|
1337
|
+
export declare type GeneralTaskProps = ExtractPropTypes<typeof generalTaskProps>;
|
|
1338
|
+
|
|
1339
|
+
declare const generalTaskProps: {
|
|
1340
|
+
subscribes: {
|
|
1341
|
+
type: PropType<ProductSubscribe[]>;
|
|
1342
|
+
default: () => never[];
|
|
1343
|
+
};
|
|
1344
|
+
cardSize: {
|
|
1345
|
+
type: PropType<GeneralTaskCardSize>;
|
|
1346
|
+
default: string;
|
|
1347
|
+
};
|
|
1348
|
+
};
|
|
1349
|
+
|
|
1299
1350
|
export declare type GeneralTimeSwitchCardSize = 'full' | 'half';
|
|
1300
1351
|
|
|
1301
1352
|
export declare type GeneralTimeSwitchProps = ExtractPropTypes<typeof generalTimeSwitchProps>;
|
|
@@ -1355,17 +1406,15 @@ declare const generalWarnProps: {
|
|
|
1355
1406
|
};
|
|
1356
1407
|
};
|
|
1357
1408
|
|
|
1358
|
-
export declare
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
export declare const getNumericPrecision: (n: number) => number;
|
|
1409
|
+
export declare type GeneralWheelProps = {
|
|
1410
|
+
subscribeData: GeneralWheelSubscribeData;
|
|
1411
|
+
};
|
|
1363
1412
|
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1413
|
+
export declare type GeneralWheelSubscribeData = {
|
|
1414
|
+
mode: 1 | 2;
|
|
1415
|
+
dismissCenter?: boolean;
|
|
1416
|
+
showSector?: boolean;
|
|
1417
|
+
} & Record<WheelZoneKey, WheelZoneConfig>;
|
|
1369
1418
|
|
|
1370
1419
|
export declare interface HilinkDevHistoryParams {
|
|
1371
1420
|
devId: string;
|
|
@@ -1395,6 +1444,9 @@ export declare type HilinkDeviceControlPayload = Record<string, Record<string, s
|
|
|
1395
1444
|
|
|
1396
1445
|
export declare type HilinkDispatchListener = (payload: HilinkDeviceControlPayload) => void;
|
|
1397
1446
|
|
|
1447
|
+
/** 与宿主 HiLink 约定:`setDeviceInfoWithoutCallback(deviceId, payloadJson)`,无回调下发。 */
|
|
1448
|
+
export declare type HilinkSetDeviceInfoWithoutCallbackFn = (deviceId: string, payloadJson: string) => void | Promise<unknown>;
|
|
1449
|
+
|
|
1398
1450
|
/** 与宿主约定:`setTitleVisible(visible, callbackName)`,`true` 显示原生标题栏,`false` 隐藏。 */
|
|
1399
1451
|
export declare type HilinkSetTitleVisibleFn = (visible: boolean, callbackName: string) => void;
|
|
1400
1452
|
|
|
@@ -1441,23 +1493,6 @@ export declare interface Language {
|
|
|
1441
1493
|
*/
|
|
1442
1494
|
export declare const localeContextKey: InjectionKey<Ref<Language>>;
|
|
1443
1495
|
|
|
1444
|
-
declare type MaybeRef_2<T> = T | Ref<T> | ComputedRef<T>;
|
|
1445
|
-
|
|
1446
|
-
declare interface NormalizeNumericOptions {
|
|
1447
|
-
min: number;
|
|
1448
|
-
max: number;
|
|
1449
|
-
step: number;
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1452
|
-
/** Clamp to [min, max] then snap to nearest step multiple from min. */
|
|
1453
|
-
export declare const normalizeNumericValue: (raw: number, opts: NormalizeNumericOptions) => number;
|
|
1454
|
-
|
|
1455
|
-
/** 对应 `@uiplus/locale` 中 `zh-CN` / `en-US` 的 `common.numeric-input-*` */
|
|
1456
|
-
export declare const NUMERIC_INPUT_DEFAULT_I18N_KEYS: {
|
|
1457
|
-
readonly placeholder: "common.numeric-input-placeholder";
|
|
1458
|
-
readonly invalid: "common.numeric-input-invalid";
|
|
1459
|
-
};
|
|
1460
|
-
|
|
1461
1496
|
export declare type NumericInputFieldEmits = {
|
|
1462
1497
|
(e: 'update:modelValue', value: string): void;
|
|
1463
1498
|
(e: 'input'): void;
|
|
@@ -1577,11 +1612,6 @@ declare const pageBarNewProps: {
|
|
|
1577
1612
|
};
|
|
1578
1613
|
};
|
|
1579
1614
|
|
|
1580
|
-
/**
|
|
1581
|
-
* 解析 `yyyyMMddTHHmmssZ` 为 UTC `Date`;非法返回 `null`。
|
|
1582
|
-
*/
|
|
1583
|
-
export declare function parseUtcAbsoluteTime(value: string): Date | null;
|
|
1584
|
-
|
|
1585
1615
|
export declare interface ProductProfile {
|
|
1586
1616
|
subscribes: ProductSubscribe[];
|
|
1587
1617
|
rules: ProductRule[];
|
|
@@ -1622,9 +1652,6 @@ declare interface ProductSubscribe {
|
|
|
1622
1652
|
descEn?: string;
|
|
1623
1653
|
}
|
|
1624
1654
|
|
|
1625
|
-
/** 特征级标题:仅 `prodId.sid.cid` 宿主扁平键 */
|
|
1626
|
-
export declare function resolveCharTitleFromHost(resolveKey: (k: string, fb?: string) => string, composer: Composer | undefined, currentLocale: string, pid: string, sid: string, cid: string, zh: boolean): string;
|
|
1627
|
-
|
|
1628
1655
|
export declare type ResolvedSecondaryItem = {
|
|
1629
1656
|
cid: string;
|
|
1630
1657
|
characteristicName: string;
|
|
@@ -1637,20 +1664,8 @@ export declare type ResolvedSecondaryItem = {
|
|
|
1637
1664
|
unit: string;
|
|
1638
1665
|
};
|
|
1639
1666
|
|
|
1640
|
-
/** 枚举取值展示:仅 `prodId.sid.cid.enumVal` 宿主扁平键 */
|
|
1641
|
-
export declare function resolveEnumFromHost(resolveKey: (k: string, fb?: string) => string, composer: Composer | undefined, currentLocale: string, pid: string, sid: string, cid: string, enumVal: string, zh: boolean): string;
|
|
1642
|
-
|
|
1643
|
-
/**
|
|
1644
|
-
* 与 `resolveTextByKey` 对齐:当前界面语种与目标语种一致时走完整解析链;
|
|
1645
|
-
* 仅在不一致时用 `composer.t(..., { locale })` 读另一语种的宿主扁平键。
|
|
1646
|
-
*/
|
|
1647
|
-
export declare function resolveProdHostText(resolveKey: (k: string, fb?: string) => string, composer: Composer | undefined, currentLocale: string, targetLocale: string, key: string): string;
|
|
1648
|
-
|
|
1649
1667
|
export declare type SecondaryZone = 'slider' | 'list' | 'schedule';
|
|
1650
1668
|
|
|
1651
|
-
/** 调用宿主注入的 `window.hilink._deviceControlInner`;无实现时为 no-op。 */
|
|
1652
|
-
export declare function sendHilinkDeviceControl(payload: HilinkDeviceControlPayload): void;
|
|
1653
|
-
|
|
1654
1669
|
export declare interface Service {
|
|
1655
1670
|
descCh?: string;
|
|
1656
1671
|
serviceType?: string;
|
|
@@ -1659,10 +1674,6 @@ export declare interface Service {
|
|
|
1659
1674
|
characteristics: Characteristic[];
|
|
1660
1675
|
}
|
|
1661
1676
|
|
|
1662
|
-
export declare function setHilinkTitleVisible(visible: boolean, callbackName?: string): void;
|
|
1663
|
-
|
|
1664
|
-
export declare function setShowFakeTitleBar(visible: boolean): void;
|
|
1665
|
-
|
|
1666
1677
|
export declare type SheetDialogEmits = {
|
|
1667
1678
|
(e: 'cancel'): void;
|
|
1668
1679
|
(e: 'confirm'): void;
|
|
@@ -1794,12 +1805,6 @@ declare const statusBarProps: {
|
|
|
1794
1805
|
|
|
1795
1806
|
export declare type StatusBarValue = StatusBarBinaryState;
|
|
1796
1807
|
|
|
1797
|
-
/** 订阅组件库内 `sendHilinkDeviceControl` 的下发事件;返回取消订阅函数。 */
|
|
1798
|
-
export declare function subscribeHilinkDeviceControl(listener: HilinkDispatchListener): () => void;
|
|
1799
|
-
|
|
1800
|
-
/** 调用宿主 `window.updateUI` 同步 inject state;无实现时为 no-op。 */
|
|
1801
|
-
export declare function syncDeviceUIState(payload: HilinkDeviceControlPayload): void;
|
|
1802
|
-
|
|
1803
1808
|
export declare type TableLampFadeTimeCardSize = 'full' | 'half';
|
|
1804
1809
|
|
|
1805
1810
|
export declare type TableLampFadeTimeCommandPayload = HilinkDeviceControlPayload;
|
|
@@ -1898,6 +1903,9 @@ declare type TimerCommandPayload = HilinkDeviceControlPayload;
|
|
|
1898
1903
|
export { TimerCommandPayload }
|
|
1899
1904
|
export { TimerCommandPayload as TimerNewCommandPayload }
|
|
1900
1905
|
|
|
1906
|
+
/** UpTimerCut 无对外 Props;保留类型导出供画布/文档引用 */
|
|
1907
|
+
export declare type TimerCutProps = Record<string, never>;
|
|
1908
|
+
|
|
1901
1909
|
declare interface TimerFunctionOption {
|
|
1902
1910
|
label: string;
|
|
1903
1911
|
sid: string;
|
|
@@ -2129,6 +2137,14 @@ export declare const UpBoolIconCard: {
|
|
|
2129
2137
|
type: PropType<BoolIconCardLocaleText>;
|
|
2130
2138
|
default: string;
|
|
2131
2139
|
};
|
|
2140
|
+
singleTapDispatch: {
|
|
2141
|
+
type: BooleanConstructor;
|
|
2142
|
+
default: boolean;
|
|
2143
|
+
};
|
|
2144
|
+
singleTapDispatchTarget: {
|
|
2145
|
+
type: PropType<BoolIconCardSingleTapDispatchTarget>;
|
|
2146
|
+
default: string;
|
|
2147
|
+
};
|
|
2132
2148
|
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
2133
2149
|
subscribes: ProductSubscribe[];
|
|
2134
2150
|
showInfo: boolean;
|
|
@@ -2142,6 +2158,8 @@ export declare const UpBoolIconCard: {
|
|
|
2142
2158
|
closeDialogTitle: string;
|
|
2143
2159
|
closeDialogContent: string;
|
|
2144
2160
|
cardSize: "full" | "half";
|
|
2161
|
+
singleTapDispatch: boolean;
|
|
2162
|
+
singleTapDispatchTarget: BoolIconCardSingleTapDispatchTarget;
|
|
2145
2163
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
2146
2164
|
headRef: HTMLDivElement;
|
|
2147
2165
|
titleRowRef: HTMLDivElement;
|
|
@@ -2205,6 +2223,14 @@ export declare const UpBoolIconCard: {
|
|
|
2205
2223
|
type: PropType<BoolIconCardLocaleText>;
|
|
2206
2224
|
default: string;
|
|
2207
2225
|
};
|
|
2226
|
+
singleTapDispatch: {
|
|
2227
|
+
type: BooleanConstructor;
|
|
2228
|
+
default: boolean;
|
|
2229
|
+
};
|
|
2230
|
+
singleTapDispatchTarget: {
|
|
2231
|
+
type: PropType<BoolIconCardSingleTapDispatchTarget>;
|
|
2232
|
+
default: string;
|
|
2233
|
+
};
|
|
2208
2234
|
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
2209
2235
|
subscribes: ProductSubscribe[];
|
|
2210
2236
|
showInfo: boolean;
|
|
@@ -2218,6 +2244,8 @@ export declare const UpBoolIconCard: {
|
|
|
2218
2244
|
closeDialogTitle: string;
|
|
2219
2245
|
closeDialogContent: string;
|
|
2220
2246
|
cardSize: "full" | "half";
|
|
2247
|
+
singleTapDispatch: boolean;
|
|
2248
|
+
singleTapDispatchTarget: BoolIconCardSingleTapDispatchTarget;
|
|
2221
2249
|
}>;
|
|
2222
2250
|
__isFragment?: never;
|
|
2223
2251
|
__isTeleport?: never;
|
|
@@ -2271,6 +2299,14 @@ closeDialogContent: {
|
|
|
2271
2299
|
type: PropType<BoolIconCardLocaleText>;
|
|
2272
2300
|
default: string;
|
|
2273
2301
|
};
|
|
2302
|
+
singleTapDispatch: {
|
|
2303
|
+
type: BooleanConstructor;
|
|
2304
|
+
default: boolean;
|
|
2305
|
+
};
|
|
2306
|
+
singleTapDispatchTarget: {
|
|
2307
|
+
type: PropType<BoolIconCardSingleTapDispatchTarget>;
|
|
2308
|
+
default: string;
|
|
2309
|
+
};
|
|
2274
2310
|
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
2275
2311
|
subscribes: ProductSubscribe[];
|
|
2276
2312
|
showInfo: boolean;
|
|
@@ -2284,6 +2320,8 @@ closeDialogShowTitle: boolean;
|
|
|
2284
2320
|
closeDialogTitle: string;
|
|
2285
2321
|
closeDialogContent: string;
|
|
2286
2322
|
cardSize: "full" | "half";
|
|
2323
|
+
singleTapDispatch: boolean;
|
|
2324
|
+
singleTapDispatchTarget: BoolIconCardSingleTapDispatchTarget;
|
|
2287
2325
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
2288
2326
|
$slots: {
|
|
2289
2327
|
icon?(_: {}): any;
|
|
@@ -2537,6 +2575,14 @@ export declare const UpBoolSwitchCard: {
|
|
|
2537
2575
|
type: PropType<BoolIconCardLocaleText>;
|
|
2538
2576
|
default: string;
|
|
2539
2577
|
};
|
|
2578
|
+
singleTapDispatch: {
|
|
2579
|
+
type: BooleanConstructor;
|
|
2580
|
+
default: boolean;
|
|
2581
|
+
};
|
|
2582
|
+
singleTapDispatchTarget: {
|
|
2583
|
+
type: PropType<BoolIconCardSingleTapDispatchTarget>;
|
|
2584
|
+
default: string;
|
|
2585
|
+
};
|
|
2540
2586
|
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
2541
2587
|
subscribes: ProductSubscribe[];
|
|
2542
2588
|
showInfo: boolean;
|
|
@@ -2550,6 +2596,8 @@ export declare const UpBoolSwitchCard: {
|
|
|
2550
2596
|
closeDialogTitle: string;
|
|
2551
2597
|
closeDialogContent: string;
|
|
2552
2598
|
cardSize: "full" | "half";
|
|
2599
|
+
singleTapDispatch: boolean;
|
|
2600
|
+
singleTapDispatchTarget: BoolIconCardSingleTapDispatchTarget;
|
|
2553
2601
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
2554
2602
|
headRef: HTMLDivElement;
|
|
2555
2603
|
titleRowRef: HTMLDivElement;
|
|
@@ -2613,6 +2661,14 @@ export declare const UpBoolSwitchCard: {
|
|
|
2613
2661
|
type: PropType<BoolIconCardLocaleText>;
|
|
2614
2662
|
default: string;
|
|
2615
2663
|
};
|
|
2664
|
+
singleTapDispatch: {
|
|
2665
|
+
type: BooleanConstructor;
|
|
2666
|
+
default: boolean;
|
|
2667
|
+
};
|
|
2668
|
+
singleTapDispatchTarget: {
|
|
2669
|
+
type: PropType<BoolIconCardSingleTapDispatchTarget>;
|
|
2670
|
+
default: string;
|
|
2671
|
+
};
|
|
2616
2672
|
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
2617
2673
|
subscribes: ProductSubscribe[];
|
|
2618
2674
|
showInfo: boolean;
|
|
@@ -2626,6 +2682,8 @@ export declare const UpBoolSwitchCard: {
|
|
|
2626
2682
|
closeDialogTitle: string;
|
|
2627
2683
|
closeDialogContent: string;
|
|
2628
2684
|
cardSize: "full" | "half";
|
|
2685
|
+
singleTapDispatch: boolean;
|
|
2686
|
+
singleTapDispatchTarget: BoolIconCardSingleTapDispatchTarget;
|
|
2629
2687
|
}>;
|
|
2630
2688
|
__isFragment?: never;
|
|
2631
2689
|
__isTeleport?: never;
|
|
@@ -2679,6 +2737,14 @@ closeDialogContent: {
|
|
|
2679
2737
|
type: PropType<BoolIconCardLocaleText>;
|
|
2680
2738
|
default: string;
|
|
2681
2739
|
};
|
|
2740
|
+
singleTapDispatch: {
|
|
2741
|
+
type: BooleanConstructor;
|
|
2742
|
+
default: boolean;
|
|
2743
|
+
};
|
|
2744
|
+
singleTapDispatchTarget: {
|
|
2745
|
+
type: PropType<BoolIconCardSingleTapDispatchTarget>;
|
|
2746
|
+
default: string;
|
|
2747
|
+
};
|
|
2682
2748
|
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
2683
2749
|
subscribes: ProductSubscribe[];
|
|
2684
2750
|
showInfo: boolean;
|
|
@@ -2692,6 +2758,8 @@ closeDialogShowTitle: boolean;
|
|
|
2692
2758
|
closeDialogTitle: string;
|
|
2693
2759
|
closeDialogContent: string;
|
|
2694
2760
|
cardSize: "full" | "half";
|
|
2761
|
+
singleTapDispatch: boolean;
|
|
2762
|
+
singleTapDispatchTarget: BoolIconCardSingleTapDispatchTarget;
|
|
2695
2763
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
2696
2764
|
|
|
2697
2765
|
export declare const UpCards: {
|
|
@@ -3439,6 +3507,71 @@ showTitle: boolean;
|
|
|
3439
3507
|
modeOptionConfigs: GeneralCombinedDeliveryModeOptionConfig[];
|
|
3440
3508
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
3441
3509
|
|
|
3510
|
+
export declare const UpGeneralDisplayCard: {
|
|
3511
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
3512
|
+
subscribes: {
|
|
3513
|
+
type: PropType<ProductSubscribe[]>;
|
|
3514
|
+
default: () => never[];
|
|
3515
|
+
};
|
|
3516
|
+
level: {
|
|
3517
|
+
type: PropType<GeneralDisplayCardLevelConfig[]>;
|
|
3518
|
+
default: () => never[];
|
|
3519
|
+
};
|
|
3520
|
+
cardSize: {
|
|
3521
|
+
type: PropType<GeneralDisplayCardCardSize>;
|
|
3522
|
+
default: string;
|
|
3523
|
+
};
|
|
3524
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
3525
|
+
subscribes: ProductSubscribe[];
|
|
3526
|
+
cardSize: GeneralDisplayCardCardSize;
|
|
3527
|
+
level: GeneralDisplayCardLevelConfig[];
|
|
3528
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
3529
|
+
P: {};
|
|
3530
|
+
B: {};
|
|
3531
|
+
D: {};
|
|
3532
|
+
C: {};
|
|
3533
|
+
M: {};
|
|
3534
|
+
Defaults: {};
|
|
3535
|
+
}, Readonly<ExtractPropTypes< {
|
|
3536
|
+
subscribes: {
|
|
3537
|
+
type: PropType<ProductSubscribe[]>;
|
|
3538
|
+
default: () => never[];
|
|
3539
|
+
};
|
|
3540
|
+
level: {
|
|
3541
|
+
type: PropType<GeneralDisplayCardLevelConfig[]>;
|
|
3542
|
+
default: () => never[];
|
|
3543
|
+
};
|
|
3544
|
+
cardSize: {
|
|
3545
|
+
type: PropType<GeneralDisplayCardCardSize>;
|
|
3546
|
+
default: string;
|
|
3547
|
+
};
|
|
3548
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
3549
|
+
subscribes: ProductSubscribe[];
|
|
3550
|
+
cardSize: GeneralDisplayCardCardSize;
|
|
3551
|
+
level: GeneralDisplayCardLevelConfig[];
|
|
3552
|
+
}>;
|
|
3553
|
+
__isFragment?: never;
|
|
3554
|
+
__isTeleport?: never;
|
|
3555
|
+
__isSuspense?: never;
|
|
3556
|
+
} & ComponentOptionsBase<Readonly<ExtractPropTypes< {
|
|
3557
|
+
subscribes: {
|
|
3558
|
+
type: PropType<ProductSubscribe[]>;
|
|
3559
|
+
default: () => never[];
|
|
3560
|
+
};
|
|
3561
|
+
level: {
|
|
3562
|
+
type: PropType<GeneralDisplayCardLevelConfig[]>;
|
|
3563
|
+
default: () => never[];
|
|
3564
|
+
};
|
|
3565
|
+
cardSize: {
|
|
3566
|
+
type: PropType<GeneralDisplayCardCardSize>;
|
|
3567
|
+
default: string;
|
|
3568
|
+
};
|
|
3569
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
3570
|
+
subscribes: ProductSubscribe[];
|
|
3571
|
+
cardSize: GeneralDisplayCardCardSize;
|
|
3572
|
+
level: GeneralDisplayCardLevelConfig[];
|
|
3573
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
3574
|
+
|
|
3442
3575
|
export declare const UpGeneralEnumDialogCard: {
|
|
3443
3576
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
3444
3577
|
subscribes: {
|
|
@@ -3678,8 +3811,8 @@ export declare const UpGeneralEnumTile: {
|
|
|
3678
3811
|
};
|
|
3679
3812
|
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
3680
3813
|
subscribes: ProductSubscribe[];
|
|
3681
|
-
showTitle: boolean;
|
|
3682
3814
|
singleTapDispatch: boolean;
|
|
3815
|
+
showTitle: boolean;
|
|
3683
3816
|
invertEnabled: boolean;
|
|
3684
3817
|
invertEnumValue: string | number;
|
|
3685
3818
|
enumOptionConfigs: GeneralEnumTileOptionConfig[];
|
|
@@ -3725,8 +3858,8 @@ export declare const UpGeneralEnumTile: {
|
|
|
3725
3858
|
};
|
|
3726
3859
|
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
3727
3860
|
subscribes: ProductSubscribe[];
|
|
3728
|
-
showTitle: boolean;
|
|
3729
3861
|
singleTapDispatch: boolean;
|
|
3862
|
+
showTitle: boolean;
|
|
3730
3863
|
invertEnabled: boolean;
|
|
3731
3864
|
invertEnumValue: string | number;
|
|
3732
3865
|
enumOptionConfigs: GeneralEnumTileOptionConfig[];
|
|
@@ -3766,8 +3899,8 @@ default: () => never[];
|
|
|
3766
3899
|
};
|
|
3767
3900
|
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
3768
3901
|
subscribes: ProductSubscribe[];
|
|
3769
|
-
showTitle: boolean;
|
|
3770
3902
|
singleTapDispatch: boolean;
|
|
3903
|
+
showTitle: boolean;
|
|
3771
3904
|
invertEnabled: boolean;
|
|
3772
3905
|
invertEnumValue: string | number;
|
|
3773
3906
|
enumOptionConfigs: GeneralEnumTileOptionConfig[];
|
|
@@ -3778,6 +3911,60 @@ moreEnumOptionConfigs: GeneralEnumTileOptionConfig[];
|
|
|
3778
3911
|
};
|
|
3779
3912
|
}) & Plugin_2;
|
|
3780
3913
|
|
|
3914
|
+
export declare const UpGeneralExecution: {
|
|
3915
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
3916
|
+
subscribes: {
|
|
3917
|
+
type: PropType<ProductSubscribe[]>;
|
|
3918
|
+
default: () => never[];
|
|
3919
|
+
};
|
|
3920
|
+
cardSize: {
|
|
3921
|
+
type: PropType<GeneralExecutionCardSize>;
|
|
3922
|
+
default: string;
|
|
3923
|
+
};
|
|
3924
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
3925
|
+
subscribes: ProductSubscribe[];
|
|
3926
|
+
cardSize: GeneralExecutionCardSize;
|
|
3927
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
3928
|
+
titleRowRef: HTMLDivElement;
|
|
3929
|
+
titleRef: HTMLDivElement;
|
|
3930
|
+
statusRef: HTMLDivElement;
|
|
3931
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
3932
|
+
P: {};
|
|
3933
|
+
B: {};
|
|
3934
|
+
D: {};
|
|
3935
|
+
C: {};
|
|
3936
|
+
M: {};
|
|
3937
|
+
Defaults: {};
|
|
3938
|
+
}, Readonly<ExtractPropTypes< {
|
|
3939
|
+
subscribes: {
|
|
3940
|
+
type: PropType<ProductSubscribe[]>;
|
|
3941
|
+
default: () => never[];
|
|
3942
|
+
};
|
|
3943
|
+
cardSize: {
|
|
3944
|
+
type: PropType<GeneralExecutionCardSize>;
|
|
3945
|
+
default: string;
|
|
3946
|
+
};
|
|
3947
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
3948
|
+
subscribes: ProductSubscribe[];
|
|
3949
|
+
cardSize: GeneralExecutionCardSize;
|
|
3950
|
+
}>;
|
|
3951
|
+
__isFragment?: never;
|
|
3952
|
+
__isTeleport?: never;
|
|
3953
|
+
__isSuspense?: never;
|
|
3954
|
+
} & ComponentOptionsBase<Readonly<ExtractPropTypes< {
|
|
3955
|
+
subscribes: {
|
|
3956
|
+
type: PropType<ProductSubscribe[]>;
|
|
3957
|
+
default: () => never[];
|
|
3958
|
+
};
|
|
3959
|
+
cardSize: {
|
|
3960
|
+
type: PropType<GeneralExecutionCardSize>;
|
|
3961
|
+
default: string;
|
|
3962
|
+
};
|
|
3963
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
3964
|
+
subscribes: ProductSubscribe[];
|
|
3965
|
+
cardSize: GeneralExecutionCardSize;
|
|
3966
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
3967
|
+
|
|
3781
3968
|
export declare const UpGeneralHistoricalRecord: {
|
|
3782
3969
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
3783
3970
|
items: {
|
|
@@ -4053,6 +4240,60 @@ subscribes: ProductSubscribe[];
|
|
|
4053
4240
|
intPresetOptionConfigs: GeneralIntTilePresetOptionConfig[];
|
|
4054
4241
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
4055
4242
|
|
|
4243
|
+
export declare const UpGeneralMemoryControl: {
|
|
4244
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
4245
|
+
subscribes: {
|
|
4246
|
+
type: PropType<ProductSubscribe[]>;
|
|
4247
|
+
default: () => never[];
|
|
4248
|
+
};
|
|
4249
|
+
cardSize: {
|
|
4250
|
+
type: PropType<GeneralMemoryControlCardSize>;
|
|
4251
|
+
default: string;
|
|
4252
|
+
};
|
|
4253
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
4254
|
+
subscribes: ProductSubscribe[];
|
|
4255
|
+
cardSize: GeneralMemoryControlCardSize;
|
|
4256
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
4257
|
+
titleRowRef: HTMLDivElement;
|
|
4258
|
+
titleRef: HTMLDivElement;
|
|
4259
|
+
statusRef: HTMLDivElement;
|
|
4260
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
4261
|
+
P: {};
|
|
4262
|
+
B: {};
|
|
4263
|
+
D: {};
|
|
4264
|
+
C: {};
|
|
4265
|
+
M: {};
|
|
4266
|
+
Defaults: {};
|
|
4267
|
+
}, Readonly<ExtractPropTypes< {
|
|
4268
|
+
subscribes: {
|
|
4269
|
+
type: PropType<ProductSubscribe[]>;
|
|
4270
|
+
default: () => never[];
|
|
4271
|
+
};
|
|
4272
|
+
cardSize: {
|
|
4273
|
+
type: PropType<GeneralMemoryControlCardSize>;
|
|
4274
|
+
default: string;
|
|
4275
|
+
};
|
|
4276
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
4277
|
+
subscribes: ProductSubscribe[];
|
|
4278
|
+
cardSize: GeneralMemoryControlCardSize;
|
|
4279
|
+
}>;
|
|
4280
|
+
__isFragment?: never;
|
|
4281
|
+
__isTeleport?: never;
|
|
4282
|
+
__isSuspense?: never;
|
|
4283
|
+
} & ComponentOptionsBase<Readonly<ExtractPropTypes< {
|
|
4284
|
+
subscribes: {
|
|
4285
|
+
type: PropType<ProductSubscribe[]>;
|
|
4286
|
+
default: () => never[];
|
|
4287
|
+
};
|
|
4288
|
+
cardSize: {
|
|
4289
|
+
type: PropType<GeneralMemoryControlCardSize>;
|
|
4290
|
+
default: string;
|
|
4291
|
+
};
|
|
4292
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
4293
|
+
subscribes: ProductSubscribe[];
|
|
4294
|
+
cardSize: GeneralMemoryControlCardSize;
|
|
4295
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
4296
|
+
|
|
4056
4297
|
export declare const UpGeneralMode: {
|
|
4057
4298
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
4058
4299
|
subscribes: {
|
|
@@ -4191,6 +4432,60 @@ default: () => never[];
|
|
|
4191
4432
|
filterElementItemConfigs: GeneralScreenFilterElementItemConfig[];
|
|
4192
4433
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
4193
4434
|
|
|
4435
|
+
export declare const UpGeneralTask: {
|
|
4436
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
4437
|
+
subscribes: {
|
|
4438
|
+
type: PropType<ProductSubscribe[]>;
|
|
4439
|
+
default: () => never[];
|
|
4440
|
+
};
|
|
4441
|
+
cardSize: {
|
|
4442
|
+
type: PropType<GeneralTaskCardSize>;
|
|
4443
|
+
default: string;
|
|
4444
|
+
};
|
|
4445
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
4446
|
+
subscribes: ProductSubscribe[];
|
|
4447
|
+
cardSize: GeneralTaskCardSize;
|
|
4448
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
4449
|
+
titleRowRef: HTMLDivElement;
|
|
4450
|
+
titleRef: HTMLDivElement;
|
|
4451
|
+
statusRef: HTMLDivElement;
|
|
4452
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
4453
|
+
P: {};
|
|
4454
|
+
B: {};
|
|
4455
|
+
D: {};
|
|
4456
|
+
C: {};
|
|
4457
|
+
M: {};
|
|
4458
|
+
Defaults: {};
|
|
4459
|
+
}, Readonly<ExtractPropTypes< {
|
|
4460
|
+
subscribes: {
|
|
4461
|
+
type: PropType<ProductSubscribe[]>;
|
|
4462
|
+
default: () => never[];
|
|
4463
|
+
};
|
|
4464
|
+
cardSize: {
|
|
4465
|
+
type: PropType<GeneralTaskCardSize>;
|
|
4466
|
+
default: string;
|
|
4467
|
+
};
|
|
4468
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
4469
|
+
subscribes: ProductSubscribe[];
|
|
4470
|
+
cardSize: GeneralTaskCardSize;
|
|
4471
|
+
}>;
|
|
4472
|
+
__isFragment?: never;
|
|
4473
|
+
__isTeleport?: never;
|
|
4474
|
+
__isSuspense?: never;
|
|
4475
|
+
} & ComponentOptionsBase<Readonly<ExtractPropTypes< {
|
|
4476
|
+
subscribes: {
|
|
4477
|
+
type: PropType<ProductSubscribe[]>;
|
|
4478
|
+
default: () => never[];
|
|
4479
|
+
};
|
|
4480
|
+
cardSize: {
|
|
4481
|
+
type: PropType<GeneralTaskCardSize>;
|
|
4482
|
+
default: string;
|
|
4483
|
+
};
|
|
4484
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
4485
|
+
subscribes: ProductSubscribe[];
|
|
4486
|
+
cardSize: GeneralTaskCardSize;
|
|
4487
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
4488
|
+
|
|
4194
4489
|
export declare const UpGeneralTimeSwitch: {
|
|
4195
4490
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
4196
4491
|
readonly subscribes: {
|
|
@@ -4318,6 +4613,35 @@ default: () => never[];
|
|
|
4318
4613
|
enumConfigs: GeneralWarnConfig[];
|
|
4319
4614
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
4320
4615
|
|
|
4616
|
+
export declare const UpGeneralWheel: {
|
|
4617
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
4618
|
+
readonly subscribeData: {
|
|
4619
|
+
readonly type: PropType<GeneralWheelSubscribeData>;
|
|
4620
|
+
readonly required: true;
|
|
4621
|
+
};
|
|
4622
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
4623
|
+
P: {};
|
|
4624
|
+
B: {};
|
|
4625
|
+
D: {};
|
|
4626
|
+
C: {};
|
|
4627
|
+
M: {};
|
|
4628
|
+
Defaults: {};
|
|
4629
|
+
}, Readonly<ExtractPropTypes< {
|
|
4630
|
+
readonly subscribeData: {
|
|
4631
|
+
readonly type: PropType<GeneralWheelSubscribeData>;
|
|
4632
|
+
readonly required: true;
|
|
4633
|
+
};
|
|
4634
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
4635
|
+
__isFragment?: never;
|
|
4636
|
+
__isTeleport?: never;
|
|
4637
|
+
__isSuspense?: never;
|
|
4638
|
+
} & ComponentOptionsBase<Readonly<ExtractPropTypes< {
|
|
4639
|
+
readonly subscribeData: {
|
|
4640
|
+
readonly type: PropType<GeneralWheelSubscribeData>;
|
|
4641
|
+
readonly required: true;
|
|
4642
|
+
};
|
|
4643
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
4644
|
+
|
|
4321
4645
|
export declare const UpLampCCT: {
|
|
4322
4646
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
4323
4647
|
linkColourMode: {
|
|
@@ -5505,6 +5829,25 @@ default: string;
|
|
|
5505
5829
|
cardSize: TimerCardSize;
|
|
5506
5830
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
5507
5831
|
|
|
5832
|
+
export declare const UpTimerCut: {
|
|
5833
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
5834
|
+
headRef: HTMLDivElement;
|
|
5835
|
+
titleRowRef: HTMLDivElement;
|
|
5836
|
+
titleRef: HTMLDivElement;
|
|
5837
|
+
statusRef: HTMLDivElement;
|
|
5838
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
5839
|
+
P: {};
|
|
5840
|
+
B: {};
|
|
5841
|
+
D: {};
|
|
5842
|
+
C: {};
|
|
5843
|
+
M: {};
|
|
5844
|
+
Defaults: {};
|
|
5845
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
5846
|
+
__isFragment?: never;
|
|
5847
|
+
__isTeleport?: never;
|
|
5848
|
+
__isSuspense?: never;
|
|
5849
|
+
} & ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
5850
|
+
|
|
5508
5851
|
export declare const UpTimerNew: {
|
|
5509
5852
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
5510
5853
|
P: {};
|
|
@@ -5774,31 +6117,6 @@ bindStatusEnabled: boolean;
|
|
|
5774
6117
|
bindStatusValue: string | number;
|
|
5775
6118
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
5776
6119
|
|
|
5777
|
-
export declare function useCardTitleTextFit(
|
|
5778
|
-
/** 文本区容器(`flex:1; min-width:0`),用于 ResizeObserver 与可见宽度早退 */
|
|
5779
|
-
measureWidthRef: Ref<HTMLElement | null>, titleRef: Ref<HTMLElement | null>, subtitleRef: Ref<HTMLElement | null>, options?: UseCardTitleTextFitOptions): {
|
|
5780
|
-
titleStyle: ComputedRef<CSSProperties>;
|
|
5781
|
-
subtitleStyle: ComputedRef<CSSProperties>;
|
|
5782
|
-
titleNeedsEllipsis: Ref<boolean, boolean>;
|
|
5783
|
-
subtitleNeedsEllipsis: Ref<boolean, boolean>;
|
|
5784
|
-
titleUseMultiline: Ref<boolean, boolean>;
|
|
5785
|
-
subtitleUseMultiline: Ref<boolean, boolean>;
|
|
5786
|
-
remeasure: () => void;
|
|
5787
|
-
};
|
|
5788
|
-
|
|
5789
|
-
export declare interface UseCardTitleTextFitOptions {
|
|
5790
|
-
/** 1: 单行;2: 优先单行缩小至 min,仍放不下则固定 min 字号换最多两行。默认主标题 2、副标题 1 */
|
|
5791
|
-
titleMode?: CardTitleTextLineMode;
|
|
5792
|
-
subtitleMode?: CardTitleTextLineMode;
|
|
5793
|
-
titleBaseFontSize?: number;
|
|
5794
|
-
subtitleBaseFontSize?: number;
|
|
5795
|
-
titleMinFontSize?: number;
|
|
5796
|
-
subtitleMinFontSize?: number;
|
|
5797
|
-
lineHeightRatio?: number;
|
|
5798
|
-
hasSubtitle?: MaybeRefOrGetter<boolean>;
|
|
5799
|
-
watchSources?: WatchSource[];
|
|
5800
|
-
}
|
|
5801
|
-
|
|
5802
6120
|
/**
|
|
5803
6121
|
* 是否与 `UpConfigProvider` 的 `theme="dark"` 一致:依据 `document.documentElement` 是否包含 `dark` 类。
|
|
5804
6122
|
* 用于组件内随深浅色切换资源(如图标),并在运行时响应主题切换。
|
|
@@ -5814,11 +6132,6 @@ export declare const useGlobalI18n: () => {
|
|
|
5814
6132
|
resolveTextByKey: (key: string, fallback?: string) => string;
|
|
5815
6133
|
};
|
|
5816
6134
|
|
|
5817
|
-
/**
|
|
5818
|
-
* 全屏二级页打开时隐藏宿主原生标题与假标题栏,关闭时恢复;卸载时强制恢复,避免残留隐藏态。
|
|
5819
|
-
*/
|
|
5820
|
-
export declare function useHilinkSubPageTitleVisibility(isSubPage: MaybeRefOrGetter<boolean>): void;
|
|
5821
|
-
|
|
5822
6135
|
/**
|
|
5823
6136
|
* Hook to access i18n translations for a specific component.
|
|
5824
6137
|
* Usage: const { t } = useLocale('enum-droplist-card')
|
|
@@ -5840,34 +6153,6 @@ export declare const useNamespace: (block: string) => {
|
|
|
5840
6153
|
is: (state: string, active?: boolean) => string;
|
|
5841
6154
|
};
|
|
5842
6155
|
|
|
5843
|
-
export declare const useNumericInputDialog: (options: UseNumericInputDialogOptions) => {
|
|
5844
|
-
draft: Ref<string, string>;
|
|
5845
|
-
error: Ref<string, string>;
|
|
5846
|
-
resolvedPlaceholder: ComputedRef<string>;
|
|
5847
|
-
resolvedInvalidText: ComputedRef<string>;
|
|
5848
|
-
open: (initial: number) => void;
|
|
5849
|
-
close: () => void;
|
|
5850
|
-
clearDraft: () => void;
|
|
5851
|
-
onDraftInput: () => void;
|
|
5852
|
-
tryConfirm: () => number | null;
|
|
5853
|
-
};
|
|
5854
|
-
|
|
5855
|
-
declare interface UseNumericInputDialogOptions {
|
|
5856
|
-
min: MaybeRef<number>;
|
|
5857
|
-
max: MaybeRef<number>;
|
|
5858
|
-
step?: MaybeRef<number>;
|
|
5859
|
-
integerOnly?: MaybeRef<boolean>;
|
|
5860
|
-
/** 非空时优先使用,不再走 common 占位符模板 */
|
|
5861
|
-
placeholder?: MaybeRef<string | undefined>;
|
|
5862
|
-
/** 非空时优先使用,不再走 common.invalid */
|
|
5863
|
-
invalidText?: MaybeRef<string | undefined>;
|
|
5864
|
-
}
|
|
5865
|
-
|
|
5866
|
-
/**
|
|
5867
|
-
* 将主订阅解析为卡片标题展示文案(通过宿主 `resolveTextByKey` 查 `prodId.sid.cid`)。
|
|
5868
|
-
*/
|
|
5869
|
-
export declare function useResolvedDeviceInfoCardTitle(primarySubscribe: ComputedRef<ProductSubscribe | null | undefined>, resolveTextByKey: (key: string, fallback?: string) => string): ComputedRef<string>;
|
|
5870
|
-
|
|
5871
6156
|
/**
|
|
5872
6157
|
* 根据当前主题返回应使用的图片地址。
|
|
5873
6158
|
* - 暗色模式优先返回 darkSrc;
|
|
@@ -5881,9 +6166,6 @@ export declare const useTinyEngineI18n: () => {
|
|
|
5881
6166
|
buildText: (keyOrBuilder: string | (() => string), fallbackText?: string, params?: unknown) => ComputedRef<string>;
|
|
5882
6167
|
};
|
|
5883
6168
|
|
|
5884
|
-
/** profile / HiLink 常用 UTC 绝对时间正则:`yyyyMMddTHHmmssZ` */
|
|
5885
|
-
export declare const UTC_ABSOLUTE_TIME_PATTERN: RegExp;
|
|
5886
|
-
|
|
5887
6169
|
export declare type WaterHeaterTimeEndCardSize = 'full' | 'half';
|
|
5888
6170
|
|
|
5889
6171
|
export declare type WaterHeaterTimeEndCommandPayload = HilinkDeviceControlPayload;
|
|
@@ -5926,6 +6208,42 @@ declare const waterHeaterTimeStartProps: {
|
|
|
5926
6208
|
};
|
|
5927
6209
|
};
|
|
5928
6210
|
|
|
6211
|
+
declare const WHEEL_ZONE_KEYS: readonly ["0", "1", "2", "3", "4"];
|
|
6212
|
+
|
|
6213
|
+
declare type WheelOperate = 0 | 1;
|
|
6214
|
+
|
|
6215
|
+
export declare type WheelZoneConfig = {
|
|
6216
|
+
sid: string;
|
|
6217
|
+
cid: string;
|
|
6218
|
+
type: WheelZoneType;
|
|
6219
|
+
operate: WheelOperate;
|
|
6220
|
+
defaultValue?: string;
|
|
6221
|
+
reverse?: boolean;
|
|
6222
|
+
values?: string[];
|
|
6223
|
+
icons?: Record<string, string[]>;
|
|
6224
|
+
/** key = 展示值字符串;value 支持 string / { zh, en, key } / 槽位数组 */
|
|
6225
|
+
texts?: WheelZoneTexts;
|
|
6226
|
+
/** 本区文案字号(px) */
|
|
6227
|
+
textSize?: number;
|
|
6228
|
+
/** 本区文案是否加粗 */
|
|
6229
|
+
textBold?: boolean;
|
|
6230
|
+
};
|
|
6231
|
+
|
|
6232
|
+
export declare type WheelZoneKey = (typeof WHEEL_ZONE_KEYS)[number];
|
|
6233
|
+
|
|
6234
|
+
/** texts 单条:i18n key 字面量 / 双语对象 / { key } */
|
|
6235
|
+
declare type WheelZoneTextEntry = string | WheelZoneTextI18n;
|
|
6236
|
+
|
|
6237
|
+
declare type WheelZoneTextI18n = {
|
|
6238
|
+
zh?: string;
|
|
6239
|
+
en?: string;
|
|
6240
|
+
key?: string;
|
|
6241
|
+
};
|
|
6242
|
+
|
|
6243
|
+
declare type WheelZoneTexts = Record<string, WheelZoneTextEntry | WheelZoneTextEntry[]>;
|
|
6244
|
+
|
|
6245
|
+
export declare type WheelZoneType = 'enum' | 'bool' | 'int';
|
|
6246
|
+
|
|
5929
6247
|
/**
|
|
5930
6248
|
* Wrap a component with an `install` method so it can be used as a Vue plugin.
|
|
5931
6249
|
*/
|
|
@@ -5940,6 +6258,9 @@ export declare const zhCN: {
|
|
|
5940
6258
|
'status-on': string;
|
|
5941
6259
|
'status-off': string;
|
|
5942
6260
|
'status-enabled': string;
|
|
6261
|
+
'status-executing': string;
|
|
6262
|
+
'status-execution-completed': string;
|
|
6263
|
+
'status-execution-failed': string;
|
|
5943
6264
|
'open-dialog-default-title': string;
|
|
5944
6265
|
'open-dialog-default-content': string;
|
|
5945
6266
|
'close-dialog-default-title': string;
|
|
@@ -6107,6 +6428,14 @@ export declare const zhCN: {
|
|
|
6107
6428
|
subtitleMinuteSecond: string;
|
|
6108
6429
|
closePrefix: string;
|
|
6109
6430
|
};
|
|
6431
|
+
timerCut: {
|
|
6432
|
+
title: string;
|
|
6433
|
+
subtitle: string;
|
|
6434
|
+
durationZero: string;
|
|
6435
|
+
durationSeconds: string;
|
|
6436
|
+
durationMinutes: string;
|
|
6437
|
+
durationMinuteSecond: string;
|
|
6438
|
+
};
|
|
6110
6439
|
waterHeaterTimeEnd: {
|
|
6111
6440
|
cardTitle: string;
|
|
6112
6441
|
dialogTitle: string;
|
|
@@ -6125,7 +6454,10 @@ export declare const zhCN: {
|
|
|
6125
6454
|
placeholderOption4: string;
|
|
6126
6455
|
more: string;
|
|
6127
6456
|
};
|
|
6128
|
-
commonBannerNew: {
|
|
6457
|
+
commonBannerNew: {
|
|
6458
|
+
placeholderStatus: string;
|
|
6459
|
+
placeholderDescription: string;
|
|
6460
|
+
};
|
|
6129
6461
|
generalMode: {
|
|
6130
6462
|
actionOpen: string;
|
|
6131
6463
|
inUse: string;
|
|
@@ -6148,6 +6480,15 @@ export declare const zhCN: {
|
|
|
6148
6480
|
placeholderOption3: string;
|
|
6149
6481
|
placeholderOption4: string;
|
|
6150
6482
|
};
|
|
6483
|
+
generalWheel: {
|
|
6484
|
+
zoneUp: string;
|
|
6485
|
+
zoneDown: string;
|
|
6486
|
+
zoneLeft: string;
|
|
6487
|
+
zoneRight: string;
|
|
6488
|
+
zoneCenter: string;
|
|
6489
|
+
operateMinus: string;
|
|
6490
|
+
operatePlus: string;
|
|
6491
|
+
};
|
|
6151
6492
|
generalIntCard: {
|
|
6152
6493
|
inputPlaceholder: string;
|
|
6153
6494
|
};
|