@ailife-dev-vue/uiplus 0.0.11-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 -24
- package/dist/index.mjs +10530 -9981
- 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;
|
|
@@ -1131,7 +1147,6 @@ declare const generalReminderProps: {
|
|
|
1131
1147
|
export declare interface GeneralReminderRelation {
|
|
1132
1148
|
sid: string;
|
|
1133
1149
|
cid: string;
|
|
1134
|
-
expectedValues: Array<string | number | boolean>;
|
|
1135
1150
|
}
|
|
1136
1151
|
|
|
1137
1152
|
export declare interface GeneralScreenFilterElementItemConfig {
|
|
@@ -1280,6 +1295,8 @@ export declare type HilinkDeviceControlFn = (deviceId: string, payloadJson: stri
|
|
|
1280
1295
|
*/
|
|
1281
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>>>>;
|
|
1282
1297
|
|
|
1298
|
+
export declare type HilinkDispatchListener = (payload: HilinkDeviceControlPayload) => void;
|
|
1299
|
+
|
|
1283
1300
|
/** 与宿主约定:`setTitleVisible(visible, callbackName)`,`true` 显示原生标题栏,`false` 隐藏。 */
|
|
1284
1301
|
export declare type HilinkSetTitleVisibleFn = (visible: boolean, callbackName: string) => void;
|
|
1285
1302
|
|
|
@@ -1681,6 +1698,9 @@ declare const statusBarProps: {
|
|
|
1681
1698
|
|
|
1682
1699
|
export declare type StatusBarValue = StatusBarBinaryState;
|
|
1683
1700
|
|
|
1701
|
+
/** 订阅组件库内 `sendHilinkDeviceControl` 的下发事件;返回取消订阅函数。 */
|
|
1702
|
+
export declare function subscribeHilinkDeviceControl(listener: HilinkDispatchListener): () => void;
|
|
1703
|
+
|
|
1684
1704
|
export declare type TableLampFadeTimeCardSize = 'full' | 'half';
|
|
1685
1705
|
|
|
1686
1706
|
export declare type TableLampFadeTimeCommandPayload = HilinkDeviceControlPayload;
|
|
@@ -1975,8 +1995,11 @@ export declare const UpBoolIconCard: {
|
|
|
1975
1995
|
cardSize: "full" | "half";
|
|
1976
1996
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
1977
1997
|
headRef: HTMLDivElement;
|
|
1998
|
+
titleRowRef: HTMLDivElement;
|
|
1999
|
+
titleRef: HTMLDivElement;
|
|
1978
2000
|
infoTriggerRef: HTMLButtonElement;
|
|
1979
2001
|
infoTooltipRef: HTMLDivElement;
|
|
2002
|
+
statusRef: HTMLDivElement;
|
|
1980
2003
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
1981
2004
|
P: {};
|
|
1982
2005
|
B: {};
|
|
@@ -2178,8 +2201,12 @@ export declare const UpBoolPanelCard: {
|
|
|
2178
2201
|
closeDialogContent: string;
|
|
2179
2202
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
2180
2203
|
headRef: HTMLDivElement;
|
|
2204
|
+
titleRowRef: HTMLDivElement;
|
|
2205
|
+
titleRef: HTMLDivElement;
|
|
2181
2206
|
infoTriggerRef: HTMLButtonElement;
|
|
2182
2207
|
infoTooltipRef: HTMLDivElement;
|
|
2208
|
+
statusRef: HTMLDivElement;
|
|
2209
|
+
dropzoneRef: HTMLDivElement;
|
|
2183
2210
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
2184
2211
|
P: {};
|
|
2185
2212
|
B: {};
|
|
@@ -2376,8 +2403,11 @@ export declare const UpBoolSwitchCard: {
|
|
|
2376
2403
|
cardSize: "full" | "half";
|
|
2377
2404
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
2378
2405
|
headRef: HTMLDivElement;
|
|
2406
|
+
titleRowRef: HTMLDivElement;
|
|
2407
|
+
titleRef: HTMLDivElement;
|
|
2379
2408
|
infoTriggerRef: HTMLButtonElement;
|
|
2380
2409
|
infoTooltipRef: HTMLDivElement;
|
|
2410
|
+
statusRef: HTMLDivElement;
|
|
2381
2411
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
2382
2412
|
P: {};
|
|
2383
2413
|
B: {};
|
|
@@ -2524,8 +2554,9 @@ export declare const UpCards: {
|
|
|
2524
2554
|
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
2525
2555
|
collapsedRows: number;
|
|
2526
2556
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
2557
|
+
rootRef: HTMLDivElement;
|
|
2527
2558
|
gridRef: HTMLDivElement;
|
|
2528
|
-
},
|
|
2559
|
+
}, any, ComponentProvideOptions, {
|
|
2529
2560
|
P: {};
|
|
2530
2561
|
B: {};
|
|
2531
2562
|
D: {};
|
|
@@ -3205,7 +3236,11 @@ export declare const UpGeneralEnumDialogCard: {
|
|
|
3205
3236
|
subscribes: ProductSubscribe[];
|
|
3206
3237
|
cardSize: GeneralEnumDialogCardSize;
|
|
3207
3238
|
visibleEnumValues: (string | number)[];
|
|
3208
|
-
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
3239
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
3240
|
+
textRef: HTMLDivElement;
|
|
3241
|
+
titleRef: HTMLDivElement;
|
|
3242
|
+
subtitleRef: HTMLDivElement;
|
|
3243
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
3209
3244
|
P: {};
|
|
3210
3245
|
B: {};
|
|
3211
3246
|
D: {};
|
|
@@ -3278,6 +3313,9 @@ export declare const UpGeneralEnumDroplistCard: {
|
|
|
3278
3313
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
3279
3314
|
rootRef: HTMLDivElement;
|
|
3280
3315
|
dropdownRef: HTMLDivElement;
|
|
3316
|
+
textRef: HTMLDivElement;
|
|
3317
|
+
titleRef: HTMLDivElement;
|
|
3318
|
+
subtitleRef: HTMLDivElement;
|
|
3281
3319
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
3282
3320
|
P: {};
|
|
3283
3321
|
B: {};
|
|
@@ -3427,6 +3465,7 @@ export declare const UpGeneralEnumTile: {
|
|
|
3427
3465
|
moreEnumOptionConfigs: GeneralEnumTileOptionConfig[];
|
|
3428
3466
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
3429
3467
|
moreDropdownRef: HTMLDivElement;
|
|
3468
|
+
dropzoneRef: HTMLDivElement;
|
|
3430
3469
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
3431
3470
|
P: {};
|
|
3432
3471
|
B: {};
|
|
@@ -3869,7 +3908,7 @@ export declare const UpGeneralReminder: {
|
|
|
3869
3908
|
};
|
|
3870
3909
|
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
3871
3910
|
enumConfigs: GeneralReminderEnumConfig[];
|
|
3872
|
-
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {},
|
|
3911
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
3873
3912
|
P: {};
|
|
3874
3913
|
B: {};
|
|
3875
3914
|
D: {};
|
|
@@ -4489,6 +4528,7 @@ export declare const UpPageBarNew: {
|
|
|
4489
4528
|
productWikiDeviceTransport: PageBarNewProductWikiDeviceTransport;
|
|
4490
4529
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
4491
4530
|
scrollRef: HTMLDivElement;
|
|
4531
|
+
dropzoneRef: HTMLDivElement;
|
|
4492
4532
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
4493
4533
|
P: {};
|
|
4494
4534
|
B: {};
|
|
@@ -5410,6 +5450,31 @@ bindStatusEnabled: boolean;
|
|
|
5410
5450
|
bindStatusValue: string | number;
|
|
5411
5451
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
5412
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
|
+
|
|
5413
5478
|
/**
|
|
5414
5479
|
* 是否与 `UpConfigProvider` 的 `theme="dark"` 一致:依据 `document.documentElement` 是否包含 `dark` 类。
|
|
5415
5480
|
* 用于组件内随深浅色切换资源(如图标),并在运行时响应主题切换。
|
|
@@ -5568,6 +5633,16 @@ export declare const zhCN: {
|
|
|
5568
5633
|
'numeric-input-placeholder': string;
|
|
5569
5634
|
'numeric-input-invalid': string;
|
|
5570
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
|
+
};
|
|
5571
5646
|
pageBarNew: {
|
|
5572
5647
|
scene: {
|
|
5573
5648
|
sectionTitle: string;
|
|
@@ -5733,16 +5808,7 @@ export declare const zhCN: {
|
|
|
5733
5808
|
placeholderOption4: string;
|
|
5734
5809
|
more: string;
|
|
5735
5810
|
};
|
|
5736
|
-
commonBannerNew: {
|
|
5737
|
-
connect: {
|
|
5738
|
-
disconnected: string;
|
|
5739
|
-
connecting: string;
|
|
5740
|
-
failed: string;
|
|
5741
|
-
failureDialogContent: string;
|
|
5742
|
-
tryLater: string;
|
|
5743
|
-
reconnectNow: string;
|
|
5744
|
-
};
|
|
5745
|
-
};
|
|
5811
|
+
commonBannerNew: {};
|
|
5746
5812
|
generalMode: {
|
|
5747
5813
|
actionOpen: string;
|
|
5748
5814
|
inUse: string;
|