@ailife-dev-vue/uiplus 0.1.5 → 0.1.6-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 +526 -193
- package/dist/index.mjs +11931 -10145
- 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,13 @@ export declare const enUS: {
|
|
|
685
665
|
subtitleMinuteSecond: string;
|
|
686
666
|
closePrefix: string;
|
|
687
667
|
};
|
|
668
|
+
timerCut: {
|
|
669
|
+
subtitle: string;
|
|
670
|
+
durationZero: string;
|
|
671
|
+
durationSeconds: string;
|
|
672
|
+
durationMinutes: string;
|
|
673
|
+
durationMinuteSecond: string;
|
|
674
|
+
};
|
|
688
675
|
generalEnumSlider: {
|
|
689
676
|
placeholderOption1: string;
|
|
690
677
|
placeholderOption2: string;
|
|
@@ -697,7 +684,10 @@ export declare const enUS: {
|
|
|
697
684
|
placeholderOption4: string;
|
|
698
685
|
more: string;
|
|
699
686
|
};
|
|
700
|
-
commonBannerNew: {
|
|
687
|
+
commonBannerNew: {
|
|
688
|
+
placeholderStatus: string;
|
|
689
|
+
placeholderDescription: string;
|
|
690
|
+
};
|
|
701
691
|
generalMode: {
|
|
702
692
|
actionOpen: string;
|
|
703
693
|
inUse: string;
|
|
@@ -720,6 +710,15 @@ export declare const enUS: {
|
|
|
720
710
|
placeholderOption3: string;
|
|
721
711
|
placeholderOption4: string;
|
|
722
712
|
};
|
|
713
|
+
generalWheel: {
|
|
714
|
+
zoneUp: string;
|
|
715
|
+
zoneDown: string;
|
|
716
|
+
zoneLeft: string;
|
|
717
|
+
zoneRight: string;
|
|
718
|
+
zoneCenter: string;
|
|
719
|
+
operateMinus: string;
|
|
720
|
+
operatePlus: string;
|
|
721
|
+
};
|
|
723
722
|
generalIntCard: {
|
|
724
723
|
inputPlaceholder: string;
|
|
725
724
|
};
|
|
@@ -890,41 +889,6 @@ declare const firmwareUpdatesProps: {
|
|
|
890
889
|
};
|
|
891
890
|
};
|
|
892
891
|
|
|
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
892
|
export declare type GeneralCombinedDeliveryDisplayItem = {
|
|
929
893
|
enumVal: string;
|
|
930
894
|
label: string;
|
|
@@ -961,6 +925,31 @@ export declare type GeneralCombinedDeliverySecondaryConfig = {
|
|
|
961
925
|
rangeMax?: number;
|
|
962
926
|
};
|
|
963
927
|
|
|
928
|
+
export declare type GeneralDisplayCardCardSize = 'full' | 'half';
|
|
929
|
+
|
|
930
|
+
/** level 枚举取值与 current 数值着色配置 */
|
|
931
|
+
export declare type GeneralDisplayCardLevelConfig = {
|
|
932
|
+
enumVal: string | number;
|
|
933
|
+
color: string;
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
export declare type GeneralDisplayCardProps = ExtractPropTypes<typeof generalDisplayCardProps>;
|
|
937
|
+
|
|
938
|
+
declare const generalDisplayCardProps: {
|
|
939
|
+
subscribes: {
|
|
940
|
+
type: PropType<ProductSubscribe[]>;
|
|
941
|
+
default: () => never[];
|
|
942
|
+
};
|
|
943
|
+
level: {
|
|
944
|
+
type: PropType<GeneralDisplayCardLevelConfig[]>;
|
|
945
|
+
default: () => never[];
|
|
946
|
+
};
|
|
947
|
+
cardSize: {
|
|
948
|
+
type: PropType<GeneralDisplayCardCardSize>;
|
|
949
|
+
default: string;
|
|
950
|
+
};
|
|
951
|
+
};
|
|
952
|
+
|
|
964
953
|
export declare type GeneralEnumDialogCardCommandPayload = HilinkDeviceControlPayload;
|
|
965
954
|
|
|
966
955
|
export declare type GeneralEnumDialogCardProps = ExtractPropTypes<typeof generalEnumDialogCardProps>;
|
|
@@ -1071,6 +1060,25 @@ declare const generalEnumTileProps: {
|
|
|
1071
1060
|
};
|
|
1072
1061
|
};
|
|
1073
1062
|
|
|
1063
|
+
export declare type GeneralExecutionCardSize = 'full' | 'half';
|
|
1064
|
+
|
|
1065
|
+
export declare type GeneralExecutionCommandPayload = HilinkDeviceControlPayload;
|
|
1066
|
+
|
|
1067
|
+
export declare type GeneralExecutionPhase = 'inactive' | 'executing' | 'completed' | 'failed';
|
|
1068
|
+
|
|
1069
|
+
export declare type GeneralExecutionProps = ExtractPropTypes<typeof generalExecutionProps>;
|
|
1070
|
+
|
|
1071
|
+
declare const generalExecutionProps: {
|
|
1072
|
+
subscribes: {
|
|
1073
|
+
type: PropType<ProductSubscribe[]>;
|
|
1074
|
+
default: () => never[];
|
|
1075
|
+
};
|
|
1076
|
+
cardSize: {
|
|
1077
|
+
type: PropType<GeneralExecutionCardSize>;
|
|
1078
|
+
default: string;
|
|
1079
|
+
};
|
|
1080
|
+
};
|
|
1081
|
+
|
|
1074
1082
|
export declare interface GeneralHistoricalRecordConfigItem {
|
|
1075
1083
|
/** 对应 historyServices[].serviceId */
|
|
1076
1084
|
sid: string;
|
|
@@ -1186,6 +1194,23 @@ declare const generalIntTileProps: {
|
|
|
1186
1194
|
};
|
|
1187
1195
|
};
|
|
1188
1196
|
|
|
1197
|
+
export declare type GeneralMemoryControlCardSize = 'full' | 'half';
|
|
1198
|
+
|
|
1199
|
+
export declare type GeneralMemoryControlCommandPayload = HilinkDeviceControlPayload;
|
|
1200
|
+
|
|
1201
|
+
export declare type GeneralMemoryControlProps = ExtractPropTypes<typeof generalMemoryControlProps>;
|
|
1202
|
+
|
|
1203
|
+
declare const generalMemoryControlProps: {
|
|
1204
|
+
subscribes: {
|
|
1205
|
+
type: PropType<ProductSubscribe[]>;
|
|
1206
|
+
default: () => never[];
|
|
1207
|
+
};
|
|
1208
|
+
cardSize: {
|
|
1209
|
+
type: PropType<GeneralMemoryControlCardSize>;
|
|
1210
|
+
default: string;
|
|
1211
|
+
};
|
|
1212
|
+
};
|
|
1213
|
+
|
|
1189
1214
|
export declare type GeneralModeDisplayItem = {
|
|
1190
1215
|
enumVal: string;
|
|
1191
1216
|
label: string;
|
|
@@ -1296,6 +1321,25 @@ export declare interface GeneralScreenRowModel {
|
|
|
1296
1321
|
|
|
1297
1322
|
export declare type GeneralScreenTimeUnit = 'hour' | 'day';
|
|
1298
1323
|
|
|
1324
|
+
export declare type GeneralTaskCardSize = 'full' | 'half';
|
|
1325
|
+
|
|
1326
|
+
export declare type GeneralTaskCommandPayload = HilinkDeviceControlPayload;
|
|
1327
|
+
|
|
1328
|
+
export declare type GeneralTaskPhase = 'inactive' | 'executing' | 'completed' | 'failed';
|
|
1329
|
+
|
|
1330
|
+
export declare type GeneralTaskProps = ExtractPropTypes<typeof generalTaskProps>;
|
|
1331
|
+
|
|
1332
|
+
declare const generalTaskProps: {
|
|
1333
|
+
subscribes: {
|
|
1334
|
+
type: PropType<ProductSubscribe[]>;
|
|
1335
|
+
default: () => never[];
|
|
1336
|
+
};
|
|
1337
|
+
cardSize: {
|
|
1338
|
+
type: PropType<GeneralTaskCardSize>;
|
|
1339
|
+
default: string;
|
|
1340
|
+
};
|
|
1341
|
+
};
|
|
1342
|
+
|
|
1299
1343
|
export declare type GeneralTimeSwitchCardSize = 'full' | 'half';
|
|
1300
1344
|
|
|
1301
1345
|
export declare type GeneralTimeSwitchProps = ExtractPropTypes<typeof generalTimeSwitchProps>;
|
|
@@ -1355,17 +1399,15 @@ declare const generalWarnProps: {
|
|
|
1355
1399
|
};
|
|
1356
1400
|
};
|
|
1357
1401
|
|
|
1358
|
-
export declare
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
export declare const getNumericPrecision: (n: number) => number;
|
|
1402
|
+
export declare type GeneralWheelProps = {
|
|
1403
|
+
subscribeData: GeneralWheelSubscribeData;
|
|
1404
|
+
};
|
|
1363
1405
|
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1406
|
+
export declare type GeneralWheelSubscribeData = {
|
|
1407
|
+
mode: 1 | 2;
|
|
1408
|
+
dismissCenter?: boolean;
|
|
1409
|
+
showSector?: boolean;
|
|
1410
|
+
} & Record<WheelZoneKey, WheelZoneConfig>;
|
|
1369
1411
|
|
|
1370
1412
|
export declare interface HilinkDevHistoryParams {
|
|
1371
1413
|
devId: string;
|
|
@@ -1395,6 +1437,9 @@ export declare type HilinkDeviceControlPayload = Record<string, Record<string, s
|
|
|
1395
1437
|
|
|
1396
1438
|
export declare type HilinkDispatchListener = (payload: HilinkDeviceControlPayload) => void;
|
|
1397
1439
|
|
|
1440
|
+
/** 与宿主 HiLink 约定:`setDeviceInfoWithoutCallback(deviceId, payloadJson)`,无回调下发。 */
|
|
1441
|
+
export declare type HilinkSetDeviceInfoWithoutCallbackFn = (deviceId: string, payloadJson: string) => void | Promise<unknown>;
|
|
1442
|
+
|
|
1398
1443
|
/** 与宿主约定:`setTitleVisible(visible, callbackName)`,`true` 显示原生标题栏,`false` 隐藏。 */
|
|
1399
1444
|
export declare type HilinkSetTitleVisibleFn = (visible: boolean, callbackName: string) => void;
|
|
1400
1445
|
|
|
@@ -1441,23 +1486,6 @@ export declare interface Language {
|
|
|
1441
1486
|
*/
|
|
1442
1487
|
export declare const localeContextKey: InjectionKey<Ref<Language>>;
|
|
1443
1488
|
|
|
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
1489
|
export declare type NumericInputFieldEmits = {
|
|
1462
1490
|
(e: 'update:modelValue', value: string): void;
|
|
1463
1491
|
(e: 'input'): void;
|
|
@@ -1577,11 +1605,6 @@ declare const pageBarNewProps: {
|
|
|
1577
1605
|
};
|
|
1578
1606
|
};
|
|
1579
1607
|
|
|
1580
|
-
/**
|
|
1581
|
-
* 解析 `yyyyMMddTHHmmssZ` 为 UTC `Date`;非法返回 `null`。
|
|
1582
|
-
*/
|
|
1583
|
-
export declare function parseUtcAbsoluteTime(value: string): Date | null;
|
|
1584
|
-
|
|
1585
1608
|
export declare interface ProductProfile {
|
|
1586
1609
|
subscribes: ProductSubscribe[];
|
|
1587
1610
|
rules: ProductRule[];
|
|
@@ -1622,9 +1645,6 @@ declare interface ProductSubscribe {
|
|
|
1622
1645
|
descEn?: string;
|
|
1623
1646
|
}
|
|
1624
1647
|
|
|
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
1648
|
export declare type ResolvedSecondaryItem = {
|
|
1629
1649
|
cid: string;
|
|
1630
1650
|
characteristicName: string;
|
|
@@ -1637,20 +1657,8 @@ export declare type ResolvedSecondaryItem = {
|
|
|
1637
1657
|
unit: string;
|
|
1638
1658
|
};
|
|
1639
1659
|
|
|
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
1660
|
export declare type SecondaryZone = 'slider' | 'list' | 'schedule';
|
|
1650
1661
|
|
|
1651
|
-
/** 调用宿主注入的 `window.hilink._deviceControlInner`;无实现时为 no-op。 */
|
|
1652
|
-
export declare function sendHilinkDeviceControl(payload: HilinkDeviceControlPayload): void;
|
|
1653
|
-
|
|
1654
1662
|
export declare interface Service {
|
|
1655
1663
|
descCh?: string;
|
|
1656
1664
|
serviceType?: string;
|
|
@@ -1659,10 +1667,6 @@ export declare interface Service {
|
|
|
1659
1667
|
characteristics: Characteristic[];
|
|
1660
1668
|
}
|
|
1661
1669
|
|
|
1662
|
-
export declare function setHilinkTitleVisible(visible: boolean, callbackName?: string): void;
|
|
1663
|
-
|
|
1664
|
-
export declare function setShowFakeTitleBar(visible: boolean): void;
|
|
1665
|
-
|
|
1666
1670
|
export declare type SheetDialogEmits = {
|
|
1667
1671
|
(e: 'cancel'): void;
|
|
1668
1672
|
(e: 'confirm'): void;
|
|
@@ -1794,12 +1798,6 @@ declare const statusBarProps: {
|
|
|
1794
1798
|
|
|
1795
1799
|
export declare type StatusBarValue = StatusBarBinaryState;
|
|
1796
1800
|
|
|
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
1801
|
export declare type TableLampFadeTimeCardSize = 'full' | 'half';
|
|
1804
1802
|
|
|
1805
1803
|
export declare type TableLampFadeTimeCommandPayload = HilinkDeviceControlPayload;
|
|
@@ -1898,6 +1896,9 @@ declare type TimerCommandPayload = HilinkDeviceControlPayload;
|
|
|
1898
1896
|
export { TimerCommandPayload }
|
|
1899
1897
|
export { TimerCommandPayload as TimerNewCommandPayload }
|
|
1900
1898
|
|
|
1899
|
+
/** UpTimerCut 无对外 Props;保留类型导出供画布/文档引用 */
|
|
1900
|
+
export declare type TimerCutProps = Record<string, never>;
|
|
1901
|
+
|
|
1901
1902
|
declare interface TimerFunctionOption {
|
|
1902
1903
|
label: string;
|
|
1903
1904
|
sid: string;
|
|
@@ -2129,6 +2130,14 @@ export declare const UpBoolIconCard: {
|
|
|
2129
2130
|
type: PropType<BoolIconCardLocaleText>;
|
|
2130
2131
|
default: string;
|
|
2131
2132
|
};
|
|
2133
|
+
singleTapDispatch: {
|
|
2134
|
+
type: BooleanConstructor;
|
|
2135
|
+
default: boolean;
|
|
2136
|
+
};
|
|
2137
|
+
singleTapDispatchTarget: {
|
|
2138
|
+
type: PropType<BoolIconCardSingleTapDispatchTarget>;
|
|
2139
|
+
default: string;
|
|
2140
|
+
};
|
|
2132
2141
|
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
2133
2142
|
subscribes: ProductSubscribe[];
|
|
2134
2143
|
showInfo: boolean;
|
|
@@ -2142,6 +2151,8 @@ export declare const UpBoolIconCard: {
|
|
|
2142
2151
|
closeDialogTitle: string;
|
|
2143
2152
|
closeDialogContent: string;
|
|
2144
2153
|
cardSize: "full" | "half";
|
|
2154
|
+
singleTapDispatch: boolean;
|
|
2155
|
+
singleTapDispatchTarget: BoolIconCardSingleTapDispatchTarget;
|
|
2145
2156
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
2146
2157
|
headRef: HTMLDivElement;
|
|
2147
2158
|
titleRowRef: HTMLDivElement;
|
|
@@ -2205,6 +2216,14 @@ export declare const UpBoolIconCard: {
|
|
|
2205
2216
|
type: PropType<BoolIconCardLocaleText>;
|
|
2206
2217
|
default: string;
|
|
2207
2218
|
};
|
|
2219
|
+
singleTapDispatch: {
|
|
2220
|
+
type: BooleanConstructor;
|
|
2221
|
+
default: boolean;
|
|
2222
|
+
};
|
|
2223
|
+
singleTapDispatchTarget: {
|
|
2224
|
+
type: PropType<BoolIconCardSingleTapDispatchTarget>;
|
|
2225
|
+
default: string;
|
|
2226
|
+
};
|
|
2208
2227
|
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
2209
2228
|
subscribes: ProductSubscribe[];
|
|
2210
2229
|
showInfo: boolean;
|
|
@@ -2218,6 +2237,8 @@ export declare const UpBoolIconCard: {
|
|
|
2218
2237
|
closeDialogTitle: string;
|
|
2219
2238
|
closeDialogContent: string;
|
|
2220
2239
|
cardSize: "full" | "half";
|
|
2240
|
+
singleTapDispatch: boolean;
|
|
2241
|
+
singleTapDispatchTarget: BoolIconCardSingleTapDispatchTarget;
|
|
2221
2242
|
}>;
|
|
2222
2243
|
__isFragment?: never;
|
|
2223
2244
|
__isTeleport?: never;
|
|
@@ -2271,6 +2292,14 @@ closeDialogContent: {
|
|
|
2271
2292
|
type: PropType<BoolIconCardLocaleText>;
|
|
2272
2293
|
default: string;
|
|
2273
2294
|
};
|
|
2295
|
+
singleTapDispatch: {
|
|
2296
|
+
type: BooleanConstructor;
|
|
2297
|
+
default: boolean;
|
|
2298
|
+
};
|
|
2299
|
+
singleTapDispatchTarget: {
|
|
2300
|
+
type: PropType<BoolIconCardSingleTapDispatchTarget>;
|
|
2301
|
+
default: string;
|
|
2302
|
+
};
|
|
2274
2303
|
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
2275
2304
|
subscribes: ProductSubscribe[];
|
|
2276
2305
|
showInfo: boolean;
|
|
@@ -2284,6 +2313,8 @@ closeDialogShowTitle: boolean;
|
|
|
2284
2313
|
closeDialogTitle: string;
|
|
2285
2314
|
closeDialogContent: string;
|
|
2286
2315
|
cardSize: "full" | "half";
|
|
2316
|
+
singleTapDispatch: boolean;
|
|
2317
|
+
singleTapDispatchTarget: BoolIconCardSingleTapDispatchTarget;
|
|
2287
2318
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
2288
2319
|
$slots: {
|
|
2289
2320
|
icon?(_: {}): any;
|
|
@@ -2537,6 +2568,14 @@ export declare const UpBoolSwitchCard: {
|
|
|
2537
2568
|
type: PropType<BoolIconCardLocaleText>;
|
|
2538
2569
|
default: string;
|
|
2539
2570
|
};
|
|
2571
|
+
singleTapDispatch: {
|
|
2572
|
+
type: BooleanConstructor;
|
|
2573
|
+
default: boolean;
|
|
2574
|
+
};
|
|
2575
|
+
singleTapDispatchTarget: {
|
|
2576
|
+
type: PropType<BoolIconCardSingleTapDispatchTarget>;
|
|
2577
|
+
default: string;
|
|
2578
|
+
};
|
|
2540
2579
|
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
2541
2580
|
subscribes: ProductSubscribe[];
|
|
2542
2581
|
showInfo: boolean;
|
|
@@ -2550,6 +2589,8 @@ export declare const UpBoolSwitchCard: {
|
|
|
2550
2589
|
closeDialogTitle: string;
|
|
2551
2590
|
closeDialogContent: string;
|
|
2552
2591
|
cardSize: "full" | "half";
|
|
2592
|
+
singleTapDispatch: boolean;
|
|
2593
|
+
singleTapDispatchTarget: BoolIconCardSingleTapDispatchTarget;
|
|
2553
2594
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
2554
2595
|
headRef: HTMLDivElement;
|
|
2555
2596
|
titleRowRef: HTMLDivElement;
|
|
@@ -2613,6 +2654,14 @@ export declare const UpBoolSwitchCard: {
|
|
|
2613
2654
|
type: PropType<BoolIconCardLocaleText>;
|
|
2614
2655
|
default: string;
|
|
2615
2656
|
};
|
|
2657
|
+
singleTapDispatch: {
|
|
2658
|
+
type: BooleanConstructor;
|
|
2659
|
+
default: boolean;
|
|
2660
|
+
};
|
|
2661
|
+
singleTapDispatchTarget: {
|
|
2662
|
+
type: PropType<BoolIconCardSingleTapDispatchTarget>;
|
|
2663
|
+
default: string;
|
|
2664
|
+
};
|
|
2616
2665
|
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
2617
2666
|
subscribes: ProductSubscribe[];
|
|
2618
2667
|
showInfo: boolean;
|
|
@@ -2626,6 +2675,8 @@ export declare const UpBoolSwitchCard: {
|
|
|
2626
2675
|
closeDialogTitle: string;
|
|
2627
2676
|
closeDialogContent: string;
|
|
2628
2677
|
cardSize: "full" | "half";
|
|
2678
|
+
singleTapDispatch: boolean;
|
|
2679
|
+
singleTapDispatchTarget: BoolIconCardSingleTapDispatchTarget;
|
|
2629
2680
|
}>;
|
|
2630
2681
|
__isFragment?: never;
|
|
2631
2682
|
__isTeleport?: never;
|
|
@@ -2679,6 +2730,14 @@ closeDialogContent: {
|
|
|
2679
2730
|
type: PropType<BoolIconCardLocaleText>;
|
|
2680
2731
|
default: string;
|
|
2681
2732
|
};
|
|
2733
|
+
singleTapDispatch: {
|
|
2734
|
+
type: BooleanConstructor;
|
|
2735
|
+
default: boolean;
|
|
2736
|
+
};
|
|
2737
|
+
singleTapDispatchTarget: {
|
|
2738
|
+
type: PropType<BoolIconCardSingleTapDispatchTarget>;
|
|
2739
|
+
default: string;
|
|
2740
|
+
};
|
|
2682
2741
|
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
2683
2742
|
subscribes: ProductSubscribe[];
|
|
2684
2743
|
showInfo: boolean;
|
|
@@ -2692,6 +2751,8 @@ closeDialogShowTitle: boolean;
|
|
|
2692
2751
|
closeDialogTitle: string;
|
|
2693
2752
|
closeDialogContent: string;
|
|
2694
2753
|
cardSize: "full" | "half";
|
|
2754
|
+
singleTapDispatch: boolean;
|
|
2755
|
+
singleTapDispatchTarget: BoolIconCardSingleTapDispatchTarget;
|
|
2695
2756
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
2696
2757
|
|
|
2697
2758
|
export declare const UpCards: {
|
|
@@ -3439,6 +3500,71 @@ showTitle: boolean;
|
|
|
3439
3500
|
modeOptionConfigs: GeneralCombinedDeliveryModeOptionConfig[];
|
|
3440
3501
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
3441
3502
|
|
|
3503
|
+
export declare const UpGeneralDisplayCard: {
|
|
3504
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
3505
|
+
subscribes: {
|
|
3506
|
+
type: PropType<ProductSubscribe[]>;
|
|
3507
|
+
default: () => never[];
|
|
3508
|
+
};
|
|
3509
|
+
level: {
|
|
3510
|
+
type: PropType<GeneralDisplayCardLevelConfig[]>;
|
|
3511
|
+
default: () => never[];
|
|
3512
|
+
};
|
|
3513
|
+
cardSize: {
|
|
3514
|
+
type: PropType<GeneralDisplayCardCardSize>;
|
|
3515
|
+
default: string;
|
|
3516
|
+
};
|
|
3517
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
3518
|
+
subscribes: ProductSubscribe[];
|
|
3519
|
+
cardSize: GeneralDisplayCardCardSize;
|
|
3520
|
+
level: GeneralDisplayCardLevelConfig[];
|
|
3521
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
3522
|
+
P: {};
|
|
3523
|
+
B: {};
|
|
3524
|
+
D: {};
|
|
3525
|
+
C: {};
|
|
3526
|
+
M: {};
|
|
3527
|
+
Defaults: {};
|
|
3528
|
+
}, Readonly<ExtractPropTypes< {
|
|
3529
|
+
subscribes: {
|
|
3530
|
+
type: PropType<ProductSubscribe[]>;
|
|
3531
|
+
default: () => never[];
|
|
3532
|
+
};
|
|
3533
|
+
level: {
|
|
3534
|
+
type: PropType<GeneralDisplayCardLevelConfig[]>;
|
|
3535
|
+
default: () => never[];
|
|
3536
|
+
};
|
|
3537
|
+
cardSize: {
|
|
3538
|
+
type: PropType<GeneralDisplayCardCardSize>;
|
|
3539
|
+
default: string;
|
|
3540
|
+
};
|
|
3541
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
3542
|
+
subscribes: ProductSubscribe[];
|
|
3543
|
+
cardSize: GeneralDisplayCardCardSize;
|
|
3544
|
+
level: GeneralDisplayCardLevelConfig[];
|
|
3545
|
+
}>;
|
|
3546
|
+
__isFragment?: never;
|
|
3547
|
+
__isTeleport?: never;
|
|
3548
|
+
__isSuspense?: never;
|
|
3549
|
+
} & ComponentOptionsBase<Readonly<ExtractPropTypes< {
|
|
3550
|
+
subscribes: {
|
|
3551
|
+
type: PropType<ProductSubscribe[]>;
|
|
3552
|
+
default: () => never[];
|
|
3553
|
+
};
|
|
3554
|
+
level: {
|
|
3555
|
+
type: PropType<GeneralDisplayCardLevelConfig[]>;
|
|
3556
|
+
default: () => never[];
|
|
3557
|
+
};
|
|
3558
|
+
cardSize: {
|
|
3559
|
+
type: PropType<GeneralDisplayCardCardSize>;
|
|
3560
|
+
default: string;
|
|
3561
|
+
};
|
|
3562
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
3563
|
+
subscribes: ProductSubscribe[];
|
|
3564
|
+
cardSize: GeneralDisplayCardCardSize;
|
|
3565
|
+
level: GeneralDisplayCardLevelConfig[];
|
|
3566
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
3567
|
+
|
|
3442
3568
|
export declare const UpGeneralEnumDialogCard: {
|
|
3443
3569
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
3444
3570
|
subscribes: {
|
|
@@ -3678,8 +3804,8 @@ export declare const UpGeneralEnumTile: {
|
|
|
3678
3804
|
};
|
|
3679
3805
|
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
3680
3806
|
subscribes: ProductSubscribe[];
|
|
3681
|
-
showTitle: boolean;
|
|
3682
3807
|
singleTapDispatch: boolean;
|
|
3808
|
+
showTitle: boolean;
|
|
3683
3809
|
invertEnabled: boolean;
|
|
3684
3810
|
invertEnumValue: string | number;
|
|
3685
3811
|
enumOptionConfigs: GeneralEnumTileOptionConfig[];
|
|
@@ -3725,8 +3851,8 @@ export declare const UpGeneralEnumTile: {
|
|
|
3725
3851
|
};
|
|
3726
3852
|
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
3727
3853
|
subscribes: ProductSubscribe[];
|
|
3728
|
-
showTitle: boolean;
|
|
3729
3854
|
singleTapDispatch: boolean;
|
|
3855
|
+
showTitle: boolean;
|
|
3730
3856
|
invertEnabled: boolean;
|
|
3731
3857
|
invertEnumValue: string | number;
|
|
3732
3858
|
enumOptionConfigs: GeneralEnumTileOptionConfig[];
|
|
@@ -3766,8 +3892,8 @@ default: () => never[];
|
|
|
3766
3892
|
};
|
|
3767
3893
|
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
3768
3894
|
subscribes: ProductSubscribe[];
|
|
3769
|
-
showTitle: boolean;
|
|
3770
3895
|
singleTapDispatch: boolean;
|
|
3896
|
+
showTitle: boolean;
|
|
3771
3897
|
invertEnabled: boolean;
|
|
3772
3898
|
invertEnumValue: string | number;
|
|
3773
3899
|
enumOptionConfigs: GeneralEnumTileOptionConfig[];
|
|
@@ -3778,6 +3904,60 @@ moreEnumOptionConfigs: GeneralEnumTileOptionConfig[];
|
|
|
3778
3904
|
};
|
|
3779
3905
|
}) & Plugin_2;
|
|
3780
3906
|
|
|
3907
|
+
export declare const UpGeneralExecution: {
|
|
3908
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
3909
|
+
subscribes: {
|
|
3910
|
+
type: PropType<ProductSubscribe[]>;
|
|
3911
|
+
default: () => never[];
|
|
3912
|
+
};
|
|
3913
|
+
cardSize: {
|
|
3914
|
+
type: PropType<GeneralExecutionCardSize>;
|
|
3915
|
+
default: string;
|
|
3916
|
+
};
|
|
3917
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
3918
|
+
subscribes: ProductSubscribe[];
|
|
3919
|
+
cardSize: GeneralExecutionCardSize;
|
|
3920
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
3921
|
+
titleRowRef: HTMLDivElement;
|
|
3922
|
+
titleRef: HTMLDivElement;
|
|
3923
|
+
statusRef: HTMLDivElement;
|
|
3924
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
3925
|
+
P: {};
|
|
3926
|
+
B: {};
|
|
3927
|
+
D: {};
|
|
3928
|
+
C: {};
|
|
3929
|
+
M: {};
|
|
3930
|
+
Defaults: {};
|
|
3931
|
+
}, Readonly<ExtractPropTypes< {
|
|
3932
|
+
subscribes: {
|
|
3933
|
+
type: PropType<ProductSubscribe[]>;
|
|
3934
|
+
default: () => never[];
|
|
3935
|
+
};
|
|
3936
|
+
cardSize: {
|
|
3937
|
+
type: PropType<GeneralExecutionCardSize>;
|
|
3938
|
+
default: string;
|
|
3939
|
+
};
|
|
3940
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
3941
|
+
subscribes: ProductSubscribe[];
|
|
3942
|
+
cardSize: GeneralExecutionCardSize;
|
|
3943
|
+
}>;
|
|
3944
|
+
__isFragment?: never;
|
|
3945
|
+
__isTeleport?: never;
|
|
3946
|
+
__isSuspense?: never;
|
|
3947
|
+
} & ComponentOptionsBase<Readonly<ExtractPropTypes< {
|
|
3948
|
+
subscribes: {
|
|
3949
|
+
type: PropType<ProductSubscribe[]>;
|
|
3950
|
+
default: () => never[];
|
|
3951
|
+
};
|
|
3952
|
+
cardSize: {
|
|
3953
|
+
type: PropType<GeneralExecutionCardSize>;
|
|
3954
|
+
default: string;
|
|
3955
|
+
};
|
|
3956
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
3957
|
+
subscribes: ProductSubscribe[];
|
|
3958
|
+
cardSize: GeneralExecutionCardSize;
|
|
3959
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
3960
|
+
|
|
3781
3961
|
export declare const UpGeneralHistoricalRecord: {
|
|
3782
3962
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
3783
3963
|
items: {
|
|
@@ -4053,6 +4233,60 @@ subscribes: ProductSubscribe[];
|
|
|
4053
4233
|
intPresetOptionConfigs: GeneralIntTilePresetOptionConfig[];
|
|
4054
4234
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
4055
4235
|
|
|
4236
|
+
export declare const UpGeneralMemoryControl: {
|
|
4237
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
4238
|
+
subscribes: {
|
|
4239
|
+
type: PropType<ProductSubscribe[]>;
|
|
4240
|
+
default: () => never[];
|
|
4241
|
+
};
|
|
4242
|
+
cardSize: {
|
|
4243
|
+
type: PropType<GeneralMemoryControlCardSize>;
|
|
4244
|
+
default: string;
|
|
4245
|
+
};
|
|
4246
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
4247
|
+
subscribes: ProductSubscribe[];
|
|
4248
|
+
cardSize: GeneralMemoryControlCardSize;
|
|
4249
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
4250
|
+
titleRowRef: HTMLDivElement;
|
|
4251
|
+
titleRef: HTMLDivElement;
|
|
4252
|
+
statusRef: HTMLDivElement;
|
|
4253
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
4254
|
+
P: {};
|
|
4255
|
+
B: {};
|
|
4256
|
+
D: {};
|
|
4257
|
+
C: {};
|
|
4258
|
+
M: {};
|
|
4259
|
+
Defaults: {};
|
|
4260
|
+
}, Readonly<ExtractPropTypes< {
|
|
4261
|
+
subscribes: {
|
|
4262
|
+
type: PropType<ProductSubscribe[]>;
|
|
4263
|
+
default: () => never[];
|
|
4264
|
+
};
|
|
4265
|
+
cardSize: {
|
|
4266
|
+
type: PropType<GeneralMemoryControlCardSize>;
|
|
4267
|
+
default: string;
|
|
4268
|
+
};
|
|
4269
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
4270
|
+
subscribes: ProductSubscribe[];
|
|
4271
|
+
cardSize: GeneralMemoryControlCardSize;
|
|
4272
|
+
}>;
|
|
4273
|
+
__isFragment?: never;
|
|
4274
|
+
__isTeleport?: never;
|
|
4275
|
+
__isSuspense?: never;
|
|
4276
|
+
} & ComponentOptionsBase<Readonly<ExtractPropTypes< {
|
|
4277
|
+
subscribes: {
|
|
4278
|
+
type: PropType<ProductSubscribe[]>;
|
|
4279
|
+
default: () => never[];
|
|
4280
|
+
};
|
|
4281
|
+
cardSize: {
|
|
4282
|
+
type: PropType<GeneralMemoryControlCardSize>;
|
|
4283
|
+
default: string;
|
|
4284
|
+
};
|
|
4285
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
4286
|
+
subscribes: ProductSubscribe[];
|
|
4287
|
+
cardSize: GeneralMemoryControlCardSize;
|
|
4288
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
4289
|
+
|
|
4056
4290
|
export declare const UpGeneralMode: {
|
|
4057
4291
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
4058
4292
|
subscribes: {
|
|
@@ -4191,6 +4425,60 @@ default: () => never[];
|
|
|
4191
4425
|
filterElementItemConfigs: GeneralScreenFilterElementItemConfig[];
|
|
4192
4426
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
4193
4427
|
|
|
4428
|
+
export declare const UpGeneralTask: {
|
|
4429
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
4430
|
+
subscribes: {
|
|
4431
|
+
type: PropType<ProductSubscribe[]>;
|
|
4432
|
+
default: () => never[];
|
|
4433
|
+
};
|
|
4434
|
+
cardSize: {
|
|
4435
|
+
type: PropType<GeneralTaskCardSize>;
|
|
4436
|
+
default: string;
|
|
4437
|
+
};
|
|
4438
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
4439
|
+
subscribes: ProductSubscribe[];
|
|
4440
|
+
cardSize: GeneralTaskCardSize;
|
|
4441
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
4442
|
+
titleRowRef: HTMLDivElement;
|
|
4443
|
+
titleRef: HTMLDivElement;
|
|
4444
|
+
statusRef: HTMLDivElement;
|
|
4445
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
4446
|
+
P: {};
|
|
4447
|
+
B: {};
|
|
4448
|
+
D: {};
|
|
4449
|
+
C: {};
|
|
4450
|
+
M: {};
|
|
4451
|
+
Defaults: {};
|
|
4452
|
+
}, Readonly<ExtractPropTypes< {
|
|
4453
|
+
subscribes: {
|
|
4454
|
+
type: PropType<ProductSubscribe[]>;
|
|
4455
|
+
default: () => never[];
|
|
4456
|
+
};
|
|
4457
|
+
cardSize: {
|
|
4458
|
+
type: PropType<GeneralTaskCardSize>;
|
|
4459
|
+
default: string;
|
|
4460
|
+
};
|
|
4461
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
4462
|
+
subscribes: ProductSubscribe[];
|
|
4463
|
+
cardSize: GeneralTaskCardSize;
|
|
4464
|
+
}>;
|
|
4465
|
+
__isFragment?: never;
|
|
4466
|
+
__isTeleport?: never;
|
|
4467
|
+
__isSuspense?: never;
|
|
4468
|
+
} & ComponentOptionsBase<Readonly<ExtractPropTypes< {
|
|
4469
|
+
subscribes: {
|
|
4470
|
+
type: PropType<ProductSubscribe[]>;
|
|
4471
|
+
default: () => never[];
|
|
4472
|
+
};
|
|
4473
|
+
cardSize: {
|
|
4474
|
+
type: PropType<GeneralTaskCardSize>;
|
|
4475
|
+
default: string;
|
|
4476
|
+
};
|
|
4477
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
4478
|
+
subscribes: ProductSubscribe[];
|
|
4479
|
+
cardSize: GeneralTaskCardSize;
|
|
4480
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
4481
|
+
|
|
4194
4482
|
export declare const UpGeneralTimeSwitch: {
|
|
4195
4483
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
4196
4484
|
readonly subscribes: {
|
|
@@ -4318,6 +4606,35 @@ default: () => never[];
|
|
|
4318
4606
|
enumConfigs: GeneralWarnConfig[];
|
|
4319
4607
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
4320
4608
|
|
|
4609
|
+
export declare const UpGeneralWheel: {
|
|
4610
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
4611
|
+
readonly subscribeData: {
|
|
4612
|
+
readonly type: PropType<GeneralWheelSubscribeData>;
|
|
4613
|
+
readonly required: true;
|
|
4614
|
+
};
|
|
4615
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
4616
|
+
P: {};
|
|
4617
|
+
B: {};
|
|
4618
|
+
D: {};
|
|
4619
|
+
C: {};
|
|
4620
|
+
M: {};
|
|
4621
|
+
Defaults: {};
|
|
4622
|
+
}, Readonly<ExtractPropTypes< {
|
|
4623
|
+
readonly subscribeData: {
|
|
4624
|
+
readonly type: PropType<GeneralWheelSubscribeData>;
|
|
4625
|
+
readonly required: true;
|
|
4626
|
+
};
|
|
4627
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
4628
|
+
__isFragment?: never;
|
|
4629
|
+
__isTeleport?: never;
|
|
4630
|
+
__isSuspense?: never;
|
|
4631
|
+
} & ComponentOptionsBase<Readonly<ExtractPropTypes< {
|
|
4632
|
+
readonly subscribeData: {
|
|
4633
|
+
readonly type: PropType<GeneralWheelSubscribeData>;
|
|
4634
|
+
readonly required: true;
|
|
4635
|
+
};
|
|
4636
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
4637
|
+
|
|
4321
4638
|
export declare const UpLampCCT: {
|
|
4322
4639
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
4323
4640
|
linkColourMode: {
|
|
@@ -5505,6 +5822,25 @@ default: string;
|
|
|
5505
5822
|
cardSize: TimerCardSize;
|
|
5506
5823
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
5507
5824
|
|
|
5825
|
+
export declare const UpTimerCut: {
|
|
5826
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
5827
|
+
headRef: HTMLDivElement;
|
|
5828
|
+
titleRowRef: HTMLDivElement;
|
|
5829
|
+
titleRef: HTMLDivElement;
|
|
5830
|
+
statusRef: HTMLDivElement;
|
|
5831
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
5832
|
+
P: {};
|
|
5833
|
+
B: {};
|
|
5834
|
+
D: {};
|
|
5835
|
+
C: {};
|
|
5836
|
+
M: {};
|
|
5837
|
+
Defaults: {};
|
|
5838
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
5839
|
+
__isFragment?: never;
|
|
5840
|
+
__isTeleport?: never;
|
|
5841
|
+
__isSuspense?: never;
|
|
5842
|
+
} & ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
5843
|
+
|
|
5508
5844
|
export declare const UpTimerNew: {
|
|
5509
5845
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
5510
5846
|
P: {};
|
|
@@ -5774,31 +6110,6 @@ bindStatusEnabled: boolean;
|
|
|
5774
6110
|
bindStatusValue: string | number;
|
|
5775
6111
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
5776
6112
|
|
|
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
6113
|
/**
|
|
5803
6114
|
* 是否与 `UpConfigProvider` 的 `theme="dark"` 一致:依据 `document.documentElement` 是否包含 `dark` 类。
|
|
5804
6115
|
* 用于组件内随深浅色切换资源(如图标),并在运行时响应主题切换。
|
|
@@ -5814,11 +6125,6 @@ export declare const useGlobalI18n: () => {
|
|
|
5814
6125
|
resolveTextByKey: (key: string, fallback?: string) => string;
|
|
5815
6126
|
};
|
|
5816
6127
|
|
|
5817
|
-
/**
|
|
5818
|
-
* 全屏二级页打开时隐藏宿主原生标题与假标题栏,关闭时恢复;卸载时强制恢复,避免残留隐藏态。
|
|
5819
|
-
*/
|
|
5820
|
-
export declare function useHilinkSubPageTitleVisibility(isSubPage: MaybeRefOrGetter<boolean>): void;
|
|
5821
|
-
|
|
5822
6128
|
/**
|
|
5823
6129
|
* Hook to access i18n translations for a specific component.
|
|
5824
6130
|
* Usage: const { t } = useLocale('enum-droplist-card')
|
|
@@ -5840,34 +6146,6 @@ export declare const useNamespace: (block: string) => {
|
|
|
5840
6146
|
is: (state: string, active?: boolean) => string;
|
|
5841
6147
|
};
|
|
5842
6148
|
|
|
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
6149
|
/**
|
|
5872
6150
|
* 根据当前主题返回应使用的图片地址。
|
|
5873
6151
|
* - 暗色模式优先返回 darkSrc;
|
|
@@ -5881,9 +6159,6 @@ export declare const useTinyEngineI18n: () => {
|
|
|
5881
6159
|
buildText: (keyOrBuilder: string | (() => string), fallbackText?: string, params?: unknown) => ComputedRef<string>;
|
|
5882
6160
|
};
|
|
5883
6161
|
|
|
5884
|
-
/** profile / HiLink 常用 UTC 绝对时间正则:`yyyyMMddTHHmmssZ` */
|
|
5885
|
-
export declare const UTC_ABSOLUTE_TIME_PATTERN: RegExp;
|
|
5886
|
-
|
|
5887
6162
|
export declare type WaterHeaterTimeEndCardSize = 'full' | 'half';
|
|
5888
6163
|
|
|
5889
6164
|
export declare type WaterHeaterTimeEndCommandPayload = HilinkDeviceControlPayload;
|
|
@@ -5926,6 +6201,42 @@ declare const waterHeaterTimeStartProps: {
|
|
|
5926
6201
|
};
|
|
5927
6202
|
};
|
|
5928
6203
|
|
|
6204
|
+
declare const WHEEL_ZONE_KEYS: readonly ["0", "1", "2", "3", "4"];
|
|
6205
|
+
|
|
6206
|
+
declare type WheelOperate = 0 | 1;
|
|
6207
|
+
|
|
6208
|
+
export declare type WheelZoneConfig = {
|
|
6209
|
+
sid: string;
|
|
6210
|
+
cid: string;
|
|
6211
|
+
type: WheelZoneType;
|
|
6212
|
+
operate: WheelOperate;
|
|
6213
|
+
defaultValue?: string;
|
|
6214
|
+
reverse?: boolean;
|
|
6215
|
+
values?: string[];
|
|
6216
|
+
icons?: Record<string, string[]>;
|
|
6217
|
+
/** key = 展示值字符串;value 支持 string / { zh, en, key } / 槽位数组 */
|
|
6218
|
+
texts?: WheelZoneTexts;
|
|
6219
|
+
/** 本区文案字号(px) */
|
|
6220
|
+
textSize?: number;
|
|
6221
|
+
/** 本区文案是否加粗 */
|
|
6222
|
+
textBold?: boolean;
|
|
6223
|
+
};
|
|
6224
|
+
|
|
6225
|
+
export declare type WheelZoneKey = (typeof WHEEL_ZONE_KEYS)[number];
|
|
6226
|
+
|
|
6227
|
+
/** texts 单条:i18n key 字面量 / 双语对象 / { key } */
|
|
6228
|
+
declare type WheelZoneTextEntry = string | WheelZoneTextI18n;
|
|
6229
|
+
|
|
6230
|
+
declare type WheelZoneTextI18n = {
|
|
6231
|
+
zh?: string;
|
|
6232
|
+
en?: string;
|
|
6233
|
+
key?: string;
|
|
6234
|
+
};
|
|
6235
|
+
|
|
6236
|
+
declare type WheelZoneTexts = Record<string, WheelZoneTextEntry | WheelZoneTextEntry[]>;
|
|
6237
|
+
|
|
6238
|
+
export declare type WheelZoneType = 'enum' | 'bool' | 'int';
|
|
6239
|
+
|
|
5929
6240
|
/**
|
|
5930
6241
|
* Wrap a component with an `install` method so it can be used as a Vue plugin.
|
|
5931
6242
|
*/
|
|
@@ -5940,6 +6251,9 @@ export declare const zhCN: {
|
|
|
5940
6251
|
'status-on': string;
|
|
5941
6252
|
'status-off': string;
|
|
5942
6253
|
'status-enabled': string;
|
|
6254
|
+
'status-executing': string;
|
|
6255
|
+
'status-execution-completed': string;
|
|
6256
|
+
'status-execution-failed': string;
|
|
5943
6257
|
'open-dialog-default-title': string;
|
|
5944
6258
|
'open-dialog-default-content': string;
|
|
5945
6259
|
'close-dialog-default-title': string;
|
|
@@ -6107,6 +6421,13 @@ export declare const zhCN: {
|
|
|
6107
6421
|
subtitleMinuteSecond: string;
|
|
6108
6422
|
closePrefix: string;
|
|
6109
6423
|
};
|
|
6424
|
+
timerCut: {
|
|
6425
|
+
subtitle: string;
|
|
6426
|
+
durationZero: string;
|
|
6427
|
+
durationSeconds: string;
|
|
6428
|
+
durationMinutes: string;
|
|
6429
|
+
durationMinuteSecond: string;
|
|
6430
|
+
};
|
|
6110
6431
|
waterHeaterTimeEnd: {
|
|
6111
6432
|
cardTitle: string;
|
|
6112
6433
|
dialogTitle: string;
|
|
@@ -6125,7 +6446,10 @@ export declare const zhCN: {
|
|
|
6125
6446
|
placeholderOption4: string;
|
|
6126
6447
|
more: string;
|
|
6127
6448
|
};
|
|
6128
|
-
commonBannerNew: {
|
|
6449
|
+
commonBannerNew: {
|
|
6450
|
+
placeholderStatus: string;
|
|
6451
|
+
placeholderDescription: string;
|
|
6452
|
+
};
|
|
6129
6453
|
generalMode: {
|
|
6130
6454
|
actionOpen: string;
|
|
6131
6455
|
inUse: string;
|
|
@@ -6148,6 +6472,15 @@ export declare const zhCN: {
|
|
|
6148
6472
|
placeholderOption3: string;
|
|
6149
6473
|
placeholderOption4: string;
|
|
6150
6474
|
};
|
|
6475
|
+
generalWheel: {
|
|
6476
|
+
zoneUp: string;
|
|
6477
|
+
zoneDown: string;
|
|
6478
|
+
zoneLeft: string;
|
|
6479
|
+
zoneRight: string;
|
|
6480
|
+
zoneCenter: string;
|
|
6481
|
+
operateMinus: string;
|
|
6482
|
+
operatePlus: string;
|
|
6483
|
+
};
|
|
6151
6484
|
generalIntCard: {
|
|
6152
6485
|
inputPlaceholder: string;
|
|
6153
6486
|
};
|