@ailife-dev-vue/uiplus 0.0.12-snapshot → 0.0.13-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 +90 -23
- package/dist/index.mjs +10455 -9915
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ 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';
|
|
10
11
|
import { DefineComponent } from 'vue';
|
|
11
12
|
import { ExtractPropTypes } from 'vue';
|
|
12
13
|
import { GlobalComponents } from 'vue';
|
|
@@ -19,6 +20,7 @@ import { PropType } from 'vue';
|
|
|
19
20
|
import { PublicProps } from 'vue';
|
|
20
21
|
import { Ref } from 'vue';
|
|
21
22
|
import { VNodeProps } from 'vue';
|
|
23
|
+
import { WatchSource } from 'vue';
|
|
22
24
|
|
|
23
25
|
export declare type ActionStatusbarCommandPayload = HilinkDeviceControlPayload;
|
|
24
26
|
|
|
@@ -201,6 +203,17 @@ declare const boolPanelCardProps: {
|
|
|
201
203
|
};
|
|
202
204
|
};
|
|
203
205
|
|
|
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
|
+
|
|
204
217
|
export declare type CardsProps = ExtractPropTypes<typeof cardsProps>;
|
|
205
218
|
|
|
206
219
|
declare const cardsProps: {
|
|
@@ -211,6 +224,8 @@ declare const cardsProps: {
|
|
|
211
224
|
};
|
|
212
225
|
};
|
|
213
226
|
|
|
227
|
+
export declare type CardTitleTextLineMode = 1 | 2;
|
|
228
|
+
|
|
214
229
|
export declare interface Characteristic {
|
|
215
230
|
characteristicName: string;
|
|
216
231
|
characteristicType: string;
|
|
@@ -476,6 +491,16 @@ export declare const enUS: {
|
|
|
476
491
|
'numeric-input-placeholder': string;
|
|
477
492
|
'numeric-input-invalid': string;
|
|
478
493
|
};
|
|
494
|
+
connect: {
|
|
495
|
+
disconnected: string;
|
|
496
|
+
connecting: string;
|
|
497
|
+
failed: string;
|
|
498
|
+
connected: string;
|
|
499
|
+
failureDialogContent: string;
|
|
500
|
+
tryLater: string;
|
|
501
|
+
reconnect: string;
|
|
502
|
+
reconnectNow: string;
|
|
503
|
+
};
|
|
479
504
|
pageBarNew: {
|
|
480
505
|
scene: {
|
|
481
506
|
sectionTitle: string;
|
|
@@ -641,16 +666,7 @@ export declare const enUS: {
|
|
|
641
666
|
placeholderOption4: string;
|
|
642
667
|
more: string;
|
|
643
668
|
};
|
|
644
|
-
commonBannerNew: {
|
|
645
|
-
connect: {
|
|
646
|
-
disconnected: string;
|
|
647
|
-
connecting: string;
|
|
648
|
-
failed: string;
|
|
649
|
-
failureDialogContent: string;
|
|
650
|
-
tryLater: string;
|
|
651
|
-
reconnectNow: string;
|
|
652
|
-
};
|
|
653
|
-
};
|
|
669
|
+
commonBannerNew: {};
|
|
654
670
|
generalMode: {
|
|
655
671
|
actionOpen: string;
|
|
656
672
|
inUse: string;
|
|
@@ -1279,6 +1295,8 @@ export declare type HilinkDeviceControlFn = (deviceId: string, payloadJson: stri
|
|
|
1279
1295
|
*/
|
|
1280
1296
|
export declare type HilinkDeviceControlPayload = Record<string, Record<string, string | number | boolean | Record<string, unknown> | Array<unknown>>> | Array<Record<string, Record<string, string | number | boolean | Record<string, unknown> | Array<unknown>>>>;
|
|
1281
1297
|
|
|
1298
|
+
export declare type HilinkDispatchListener = (payload: HilinkDeviceControlPayload) => void;
|
|
1299
|
+
|
|
1282
1300
|
/** 与宿主约定:`setTitleVisible(visible, callbackName)`,`true` 显示原生标题栏,`false` 隐藏。 */
|
|
1283
1301
|
export declare type HilinkSetTitleVisibleFn = (visible: boolean, callbackName: string) => void;
|
|
1284
1302
|
|
|
@@ -1680,6 +1698,9 @@ declare const statusBarProps: {
|
|
|
1680
1698
|
|
|
1681
1699
|
export declare type StatusBarValue = StatusBarBinaryState;
|
|
1682
1700
|
|
|
1701
|
+
/** 订阅组件库内 `sendHilinkDeviceControl` 的下发事件;返回取消订阅函数。 */
|
|
1702
|
+
export declare function subscribeHilinkDeviceControl(listener: HilinkDispatchListener): () => void;
|
|
1703
|
+
|
|
1683
1704
|
export declare type TableLampFadeTimeCardSize = 'full' | 'half';
|
|
1684
1705
|
|
|
1685
1706
|
export declare type TableLampFadeTimeCommandPayload = HilinkDeviceControlPayload;
|
|
@@ -1974,8 +1995,11 @@ export declare const UpBoolIconCard: {
|
|
|
1974
1995
|
cardSize: "full" | "half";
|
|
1975
1996
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
1976
1997
|
headRef: HTMLDivElement;
|
|
1998
|
+
titleRowRef: HTMLDivElement;
|
|
1999
|
+
titleRef: HTMLDivElement;
|
|
1977
2000
|
infoTriggerRef: HTMLButtonElement;
|
|
1978
2001
|
infoTooltipRef: HTMLDivElement;
|
|
2002
|
+
statusRef: HTMLDivElement;
|
|
1979
2003
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
1980
2004
|
P: {};
|
|
1981
2005
|
B: {};
|
|
@@ -2177,8 +2201,12 @@ export declare const UpBoolPanelCard: {
|
|
|
2177
2201
|
closeDialogContent: string;
|
|
2178
2202
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
2179
2203
|
headRef: HTMLDivElement;
|
|
2204
|
+
titleRowRef: HTMLDivElement;
|
|
2205
|
+
titleRef: HTMLDivElement;
|
|
2180
2206
|
infoTriggerRef: HTMLButtonElement;
|
|
2181
2207
|
infoTooltipRef: HTMLDivElement;
|
|
2208
|
+
statusRef: HTMLDivElement;
|
|
2209
|
+
dropzoneRef: HTMLDivElement;
|
|
2182
2210
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
2183
2211
|
P: {};
|
|
2184
2212
|
B: {};
|
|
@@ -2375,8 +2403,11 @@ export declare const UpBoolSwitchCard: {
|
|
|
2375
2403
|
cardSize: "full" | "half";
|
|
2376
2404
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
2377
2405
|
headRef: HTMLDivElement;
|
|
2406
|
+
titleRowRef: HTMLDivElement;
|
|
2407
|
+
titleRef: HTMLDivElement;
|
|
2378
2408
|
infoTriggerRef: HTMLButtonElement;
|
|
2379
2409
|
infoTooltipRef: HTMLDivElement;
|
|
2410
|
+
statusRef: HTMLDivElement;
|
|
2380
2411
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
2381
2412
|
P: {};
|
|
2382
2413
|
B: {};
|
|
@@ -2523,8 +2554,9 @@ export declare const UpCards: {
|
|
|
2523
2554
|
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
2524
2555
|
collapsedRows: number;
|
|
2525
2556
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
2557
|
+
rootRef: HTMLDivElement;
|
|
2526
2558
|
gridRef: HTMLDivElement;
|
|
2527
|
-
},
|
|
2559
|
+
}, any, ComponentProvideOptions, {
|
|
2528
2560
|
P: {};
|
|
2529
2561
|
B: {};
|
|
2530
2562
|
D: {};
|
|
@@ -3204,7 +3236,11 @@ export declare const UpGeneralEnumDialogCard: {
|
|
|
3204
3236
|
subscribes: ProductSubscribe[];
|
|
3205
3237
|
cardSize: GeneralEnumDialogCardSize;
|
|
3206
3238
|
visibleEnumValues: (string | number)[];
|
|
3207
|
-
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
3239
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
3240
|
+
textRef: HTMLDivElement;
|
|
3241
|
+
titleRef: HTMLDivElement;
|
|
3242
|
+
subtitleRef: HTMLDivElement;
|
|
3243
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
3208
3244
|
P: {};
|
|
3209
3245
|
B: {};
|
|
3210
3246
|
D: {};
|
|
@@ -3277,6 +3313,9 @@ export declare const UpGeneralEnumDroplistCard: {
|
|
|
3277
3313
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
3278
3314
|
rootRef: HTMLDivElement;
|
|
3279
3315
|
dropdownRef: HTMLDivElement;
|
|
3316
|
+
textRef: HTMLDivElement;
|
|
3317
|
+
titleRef: HTMLDivElement;
|
|
3318
|
+
subtitleRef: HTMLDivElement;
|
|
3280
3319
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
3281
3320
|
P: {};
|
|
3282
3321
|
B: {};
|
|
@@ -3426,6 +3465,7 @@ export declare const UpGeneralEnumTile: {
|
|
|
3426
3465
|
moreEnumOptionConfigs: GeneralEnumTileOptionConfig[];
|
|
3427
3466
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
3428
3467
|
moreDropdownRef: HTMLDivElement;
|
|
3468
|
+
dropzoneRef: HTMLDivElement;
|
|
3429
3469
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
3430
3470
|
P: {};
|
|
3431
3471
|
B: {};
|
|
@@ -3868,7 +3908,7 @@ export declare const UpGeneralReminder: {
|
|
|
3868
3908
|
};
|
|
3869
3909
|
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
3870
3910
|
enumConfigs: GeneralReminderEnumConfig[];
|
|
3871
|
-
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {},
|
|
3911
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
3872
3912
|
P: {};
|
|
3873
3913
|
B: {};
|
|
3874
3914
|
D: {};
|
|
@@ -4488,6 +4528,7 @@ export declare const UpPageBarNew: {
|
|
|
4488
4528
|
productWikiDeviceTransport: PageBarNewProductWikiDeviceTransport;
|
|
4489
4529
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
4490
4530
|
scrollRef: HTMLDivElement;
|
|
4531
|
+
dropzoneRef: HTMLDivElement;
|
|
4491
4532
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
4492
4533
|
P: {};
|
|
4493
4534
|
B: {};
|
|
@@ -5409,6 +5450,31 @@ bindStatusEnabled: boolean;
|
|
|
5409
5450
|
bindStatusValue: string | number;
|
|
5410
5451
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
5411
5452
|
|
|
5453
|
+
export declare function useCardTitleTextFit(
|
|
5454
|
+
/** 文本区容器(`flex:1; min-width:0`),用于 ResizeObserver 与可见宽度早退 */
|
|
5455
|
+
measureWidthRef: Ref<HTMLElement | null>, titleRef: Ref<HTMLElement | null>, subtitleRef: Ref<HTMLElement | null>, options?: UseCardTitleTextFitOptions): {
|
|
5456
|
+
titleStyle: ComputedRef<CSSProperties>;
|
|
5457
|
+
subtitleStyle: ComputedRef<CSSProperties>;
|
|
5458
|
+
titleNeedsEllipsis: Ref<boolean, boolean>;
|
|
5459
|
+
subtitleNeedsEllipsis: Ref<boolean, boolean>;
|
|
5460
|
+
titleUseMultiline: Ref<boolean, boolean>;
|
|
5461
|
+
subtitleUseMultiline: Ref<boolean, boolean>;
|
|
5462
|
+
remeasure: () => void;
|
|
5463
|
+
};
|
|
5464
|
+
|
|
5465
|
+
export declare interface UseCardTitleTextFitOptions {
|
|
5466
|
+
/** 1: 单行;2: 优先单行缩小至 min,仍放不下则固定 min 字号换最多两行。默认主标题 2、副标题 1 */
|
|
5467
|
+
titleMode?: CardTitleTextLineMode;
|
|
5468
|
+
subtitleMode?: CardTitleTextLineMode;
|
|
5469
|
+
titleBaseFontSize?: number;
|
|
5470
|
+
subtitleBaseFontSize?: number;
|
|
5471
|
+
titleMinFontSize?: number;
|
|
5472
|
+
subtitleMinFontSize?: number;
|
|
5473
|
+
lineHeightRatio?: number;
|
|
5474
|
+
hasSubtitle?: MaybeRefOrGetter<boolean>;
|
|
5475
|
+
watchSources?: WatchSource[];
|
|
5476
|
+
}
|
|
5477
|
+
|
|
5412
5478
|
/**
|
|
5413
5479
|
* 是否与 `UpConfigProvider` 的 `theme="dark"` 一致:依据 `document.documentElement` 是否包含 `dark` 类。
|
|
5414
5480
|
* 用于组件内随深浅色切换资源(如图标),并在运行时响应主题切换。
|
|
@@ -5567,6 +5633,16 @@ export declare const zhCN: {
|
|
|
5567
5633
|
'numeric-input-placeholder': string;
|
|
5568
5634
|
'numeric-input-invalid': string;
|
|
5569
5635
|
};
|
|
5636
|
+
connect: {
|
|
5637
|
+
disconnected: string;
|
|
5638
|
+
connecting: string;
|
|
5639
|
+
failed: string;
|
|
5640
|
+
connected: string;
|
|
5641
|
+
failureDialogContent: string;
|
|
5642
|
+
tryLater: string;
|
|
5643
|
+
reconnect: string;
|
|
5644
|
+
reconnectNow: string;
|
|
5645
|
+
};
|
|
5570
5646
|
pageBarNew: {
|
|
5571
5647
|
scene: {
|
|
5572
5648
|
sectionTitle: string;
|
|
@@ -5732,16 +5808,7 @@ export declare const zhCN: {
|
|
|
5732
5808
|
placeholderOption4: string;
|
|
5733
5809
|
more: string;
|
|
5734
5810
|
};
|
|
5735
|
-
commonBannerNew: {
|
|
5736
|
-
connect: {
|
|
5737
|
-
disconnected: string;
|
|
5738
|
-
connecting: string;
|
|
5739
|
-
failed: string;
|
|
5740
|
-
failureDialogContent: string;
|
|
5741
|
-
tryLater: string;
|
|
5742
|
-
reconnectNow: string;
|
|
5743
|
-
};
|
|
5744
|
-
};
|
|
5811
|
+
commonBannerNew: {};
|
|
5745
5812
|
generalMode: {
|
|
5746
5813
|
actionOpen: string;
|
|
5747
5814
|
inUse: string;
|