@ailife-dev-vue/uiplus 0.0.9-snapshot → 0.0.11-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 +151 -83
- package/dist/index.mjs +9044 -8431
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -276,31 +276,57 @@ declare const commonBannerNewProps: {
|
|
|
276
276
|
};
|
|
277
277
|
};
|
|
278
278
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
279
|
+
declare type CommonInfoCharType = 'int' | 'float' | 'enum';
|
|
280
|
+
|
|
281
|
+
export declare type CommonInfoEnumItemConfig = CommonInfoItemConfigBase & {
|
|
282
|
+
enumColorMap?: Record<string, string>;
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
export declare type CommonInfoIntFloatItemConfig = CommonInfoItemConfigBase & {
|
|
286
|
+
valueMode?: CommonInfoValueMode;
|
|
287
|
+
asTimeFormat?: boolean;
|
|
288
|
+
timeUnit?: 'minute' | 'second';
|
|
283
289
|
unit?: string;
|
|
284
|
-
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
export declare type CommonInfoItemConfig = CommonInfoIntFloatItemConfig | CommonInfoEnumItemConfig;
|
|
293
|
+
|
|
294
|
+
declare type CommonInfoItemConfigBase = {
|
|
295
|
+
sid: string;
|
|
296
|
+
cid?: string;
|
|
297
|
+
label?: string;
|
|
298
|
+
infoContent?: string;
|
|
285
299
|
};
|
|
286
300
|
|
|
287
301
|
export declare type CommonInfoProps = ExtractPropTypes<typeof commonInfoProps>;
|
|
288
302
|
|
|
289
303
|
declare const commonInfoProps: {
|
|
290
|
-
|
|
291
|
-
type: PropType<
|
|
304
|
+
subscribes: {
|
|
305
|
+
type: PropType<ProductSubscribe[]>;
|
|
292
306
|
default: () => never[];
|
|
293
307
|
};
|
|
294
|
-
|
|
295
|
-
type:
|
|
296
|
-
default:
|
|
297
|
-
};
|
|
298
|
-
itemsPerPage: {
|
|
299
|
-
type: NumberConstructor;
|
|
300
|
-
default: number;
|
|
308
|
+
itemConfigs: {
|
|
309
|
+
type: PropType<CommonInfoItemConfig[]>;
|
|
310
|
+
default: () => never[];
|
|
301
311
|
};
|
|
302
312
|
};
|
|
303
313
|
|
|
314
|
+
export declare type CommonInfoValueMode = 'current' | 'todaySum' | 'weekSum' | 'monthSum' | 'yearSum' | 'last7DaysSum' | 'last30DaysSum';
|
|
315
|
+
|
|
316
|
+
export declare type CommonInfoViewItem = {
|
|
317
|
+
key: string;
|
|
318
|
+
sid: string;
|
|
319
|
+
cid: string;
|
|
320
|
+
charType: CommonInfoCharType;
|
|
321
|
+
label: string;
|
|
322
|
+
valueText: string;
|
|
323
|
+
unitText: string;
|
|
324
|
+
valueColor?: string;
|
|
325
|
+
showInfo: boolean;
|
|
326
|
+
infoContent: string;
|
|
327
|
+
isEnum: boolean;
|
|
328
|
+
};
|
|
329
|
+
|
|
304
330
|
/** 解析 HiLink 桥接层返回的 JSON 字符串(与历史记录等回调格式一致)。 */
|
|
305
331
|
export declare function dataChange(result: string): unknown;
|
|
306
332
|
|
|
@@ -716,6 +742,10 @@ export declare const enUS: {
|
|
|
716
742
|
clear: string;
|
|
717
743
|
manualInput: string;
|
|
718
744
|
};
|
|
745
|
+
commonInfo: {
|
|
746
|
+
infoTitle: string;
|
|
747
|
+
statPlaceholder: string;
|
|
748
|
+
};
|
|
719
749
|
lampColour: {
|
|
720
750
|
cardTitle: string;
|
|
721
751
|
cardSubtitle: string;
|
|
@@ -751,6 +781,15 @@ declare const firmwareUpdatesProps: {
|
|
|
751
781
|
};
|
|
752
782
|
};
|
|
753
783
|
|
|
784
|
+
export declare const formatCommonInfoMinutesAsHHMM: (totalMinutes: number) => string;
|
|
785
|
+
|
|
786
|
+
export declare const formatCommonInfoNumericDisplay: (value: number, step: number) => string;
|
|
787
|
+
|
|
788
|
+
export declare const formatCommonInfoSecondsAsHHMMSS: (totalSeconds: number) => string;
|
|
789
|
+
|
|
790
|
+
/** 总秒数 → `MM:SS`(分秒) */
|
|
791
|
+
export declare const formatCommonInfoSecondsAsMMSS: (totalSeconds: number) => string;
|
|
792
|
+
|
|
754
793
|
export declare const formatNumericDisplay: (value: number, step: number) => string;
|
|
755
794
|
|
|
756
795
|
/**
|
|
@@ -929,7 +968,7 @@ export declare interface GeneralHistoricalRecordConfigItem {
|
|
|
929
968
|
/** 二级页 tab 标题 */
|
|
930
969
|
tabTitle: string;
|
|
931
970
|
/**
|
|
932
|
-
*
|
|
971
|
+
* 允许展示的记录值
|
|
933
972
|
* 为空数组时展示该项全部记录
|
|
934
973
|
*/
|
|
935
974
|
enabledValues?: Array<string | number>;
|
|
@@ -1203,6 +1242,8 @@ declare const generalWarnProps: {
|
|
|
1203
1242
|
};
|
|
1204
1243
|
};
|
|
1205
1244
|
|
|
1245
|
+
export declare const getCommonInfoDisplayPrecision: (step: number) => number;
|
|
1246
|
+
|
|
1206
1247
|
export declare function getHilinkDevHistory(params: HilinkDevHistoryParams): Promise<HilinkDevHistoryRecord[]>;
|
|
1207
1248
|
|
|
1208
1249
|
export declare const getNumericPrecision: (n: number) => number;
|
|
@@ -1571,10 +1612,16 @@ declare type StatusBarBinaryState = 0 | 1;
|
|
|
1571
1612
|
/** 与 `sendHilinkDeviceControl` / `window.hilink._deviceControlInner` 约定一致 */
|
|
1572
1613
|
export declare type StatusBarCommandPayload = HilinkDeviceControlPayload;
|
|
1573
1614
|
|
|
1615
|
+
export declare type StatusBarMiddleTimeUnit = 'second' | 'mmss';
|
|
1616
|
+
|
|
1574
1617
|
export declare type StatusBarProps = ExtractPropTypes<typeof statusBarProps>;
|
|
1575
1618
|
|
|
1576
1619
|
declare const statusBarProps: {
|
|
1577
|
-
|
|
1620
|
+
subscribesLeft: {
|
|
1621
|
+
type: PropType<ProductSubscribe[]>;
|
|
1622
|
+
default: () => never[];
|
|
1623
|
+
};
|
|
1624
|
+
subscribesRight: {
|
|
1578
1625
|
type: PropType<ProductSubscribe[]>;
|
|
1579
1626
|
default: () => never[];
|
|
1580
1627
|
};
|
|
@@ -1590,6 +1637,14 @@ declare const statusBarProps: {
|
|
|
1590
1637
|
type: BooleanConstructor;
|
|
1591
1638
|
default: boolean;
|
|
1592
1639
|
};
|
|
1640
|
+
middleAsTimeFormat: {
|
|
1641
|
+
type: BooleanConstructor;
|
|
1642
|
+
default: boolean;
|
|
1643
|
+
};
|
|
1644
|
+
middleTimeUnit: {
|
|
1645
|
+
type: PropType<StatusBarMiddleTimeUnit>;
|
|
1646
|
+
default: string;
|
|
1647
|
+
};
|
|
1593
1648
|
enableOpenDialog: {
|
|
1594
1649
|
type: BooleanConstructor;
|
|
1595
1650
|
default: boolean;
|
|
@@ -2684,31 +2739,18 @@ showBottomWhenOff: boolean;
|
|
|
2684
2739
|
|
|
2685
2740
|
export declare const UpCommonInfo: {
|
|
2686
2741
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
2687
|
-
|
|
2688
|
-
type: PropType<
|
|
2742
|
+
subscribes: {
|
|
2743
|
+
type: PropType<ProductSubscribe[]>;
|
|
2689
2744
|
default: () => never[];
|
|
2690
2745
|
};
|
|
2691
|
-
|
|
2692
|
-
type:
|
|
2693
|
-
default:
|
|
2694
|
-
};
|
|
2695
|
-
itemsPerPage: {
|
|
2696
|
-
type: NumberConstructor;
|
|
2697
|
-
default: number;
|
|
2746
|
+
itemConfigs: {
|
|
2747
|
+
type: PropType<CommonInfoItemConfig[]>;
|
|
2748
|
+
default: () => never[];
|
|
2698
2749
|
};
|
|
2699
|
-
}>> & Readonly<{
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
}
|
|
2703
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2704
|
-
"item-click": (payload: {
|
|
2705
|
-
item: CommonInfoItem;
|
|
2706
|
-
}) => any;
|
|
2707
|
-
}, PublicProps, {
|
|
2708
|
-
items: CommonInfoItem[];
|
|
2709
|
-
minVisibleItems: number;
|
|
2710
|
-
itemsPerPage: number;
|
|
2711
|
-
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
2750
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
2751
|
+
subscribes: ProductSubscribe[];
|
|
2752
|
+
itemConfigs: CommonInfoItemConfig[];
|
|
2753
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
2712
2754
|
P: {};
|
|
2713
2755
|
B: {};
|
|
2714
2756
|
D: {};
|
|
@@ -2716,55 +2758,33 @@ export declare const UpCommonInfo: {
|
|
|
2716
2758
|
M: {};
|
|
2717
2759
|
Defaults: {};
|
|
2718
2760
|
}, Readonly<ExtractPropTypes< {
|
|
2719
|
-
|
|
2720
|
-
type: PropType<
|
|
2761
|
+
subscribes: {
|
|
2762
|
+
type: PropType<ProductSubscribe[]>;
|
|
2721
2763
|
default: () => never[];
|
|
2722
2764
|
};
|
|
2723
|
-
|
|
2724
|
-
type:
|
|
2725
|
-
default:
|
|
2726
|
-
};
|
|
2727
|
-
itemsPerPage: {
|
|
2728
|
-
type: NumberConstructor;
|
|
2729
|
-
default: number;
|
|
2765
|
+
itemConfigs: {
|
|
2766
|
+
type: PropType<CommonInfoItemConfig[]>;
|
|
2767
|
+
default: () => never[];
|
|
2730
2768
|
};
|
|
2731
|
-
}>> & Readonly<{
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
}) => any) | undefined;
|
|
2735
|
-
}>, {}, {}, {}, {}, {
|
|
2736
|
-
items: CommonInfoItem[];
|
|
2737
|
-
minVisibleItems: number;
|
|
2738
|
-
itemsPerPage: number;
|
|
2769
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
2770
|
+
subscribes: ProductSubscribe[];
|
|
2771
|
+
itemConfigs: CommonInfoItemConfig[];
|
|
2739
2772
|
}>;
|
|
2740
2773
|
__isFragment?: never;
|
|
2741
2774
|
__isTeleport?: never;
|
|
2742
2775
|
__isSuspense?: never;
|
|
2743
2776
|
} & ComponentOptionsBase<Readonly<ExtractPropTypes< {
|
|
2744
|
-
|
|
2745
|
-
type: PropType<
|
|
2777
|
+
subscribes: {
|
|
2778
|
+
type: PropType<ProductSubscribe[]>;
|
|
2746
2779
|
default: () => never[];
|
|
2747
2780
|
};
|
|
2748
|
-
|
|
2749
|
-
type:
|
|
2750
|
-
default:
|
|
2751
|
-
};
|
|
2752
|
-
itemsPerPage: {
|
|
2753
|
-
type: NumberConstructor;
|
|
2754
|
-
default: number;
|
|
2781
|
+
itemConfigs: {
|
|
2782
|
+
type: PropType<CommonInfoItemConfig[]>;
|
|
2783
|
+
default: () => never[];
|
|
2755
2784
|
};
|
|
2756
|
-
}>> & Readonly<{
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
}) => any) | undefined;
|
|
2760
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2761
|
-
"item-click": (payload: {
|
|
2762
|
-
item: CommonInfoItem;
|
|
2763
|
-
}) => any;
|
|
2764
|
-
}, string, {
|
|
2765
|
-
items: CommonInfoItem[];
|
|
2766
|
-
minVisibleItems: number;
|
|
2767
|
-
itemsPerPage: number;
|
|
2785
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
2786
|
+
subscribes: ProductSubscribe[];
|
|
2787
|
+
itemConfigs: CommonInfoItemConfig[];
|
|
2768
2788
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
2769
2789
|
|
|
2770
2790
|
export declare const UpConfigProvider: {
|
|
@@ -4717,7 +4737,11 @@ zIndex: number;
|
|
|
4717
4737
|
|
|
4718
4738
|
export declare const UpStatusBar: {
|
|
4719
4739
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
4720
|
-
|
|
4740
|
+
subscribesLeft: {
|
|
4741
|
+
type: PropType<ProductSubscribe[]>;
|
|
4742
|
+
default: () => never[];
|
|
4743
|
+
};
|
|
4744
|
+
subscribesRight: {
|
|
4721
4745
|
type: PropType<ProductSubscribe[]>;
|
|
4722
4746
|
default: () => never[];
|
|
4723
4747
|
};
|
|
@@ -4733,6 +4757,14 @@ export declare const UpStatusBar: {
|
|
|
4733
4757
|
type: BooleanConstructor;
|
|
4734
4758
|
default: boolean;
|
|
4735
4759
|
};
|
|
4760
|
+
middleAsTimeFormat: {
|
|
4761
|
+
type: BooleanConstructor;
|
|
4762
|
+
default: boolean;
|
|
4763
|
+
};
|
|
4764
|
+
middleTimeUnit: {
|
|
4765
|
+
type: PropType<StatusBarMiddleTimeUnit>;
|
|
4766
|
+
default: string;
|
|
4767
|
+
};
|
|
4736
4768
|
enableOpenDialog: {
|
|
4737
4769
|
type: BooleanConstructor;
|
|
4738
4770
|
default: boolean;
|
|
@@ -4766,7 +4798,6 @@ export declare const UpStatusBar: {
|
|
|
4766
4798
|
default: string;
|
|
4767
4799
|
};
|
|
4768
4800
|
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
4769
|
-
subscribes: ProductSubscribe[];
|
|
4770
4801
|
enableOpenDialog: boolean;
|
|
4771
4802
|
openDialogShowTitle: boolean;
|
|
4772
4803
|
openDialogTitle: string;
|
|
@@ -4775,9 +4806,13 @@ export declare const UpStatusBar: {
|
|
|
4775
4806
|
closeDialogShowTitle: boolean;
|
|
4776
4807
|
closeDialogTitle: string;
|
|
4777
4808
|
closeDialogContent: string;
|
|
4809
|
+
subscribesLeft: ProductSubscribe[];
|
|
4810
|
+
subscribesRight: ProductSubscribe[];
|
|
4778
4811
|
subscribesCenter: ProductSubscribe[];
|
|
4779
4812
|
showMiddle: boolean;
|
|
4780
4813
|
showMiddleWhenOff: boolean;
|
|
4814
|
+
middleAsTimeFormat: boolean;
|
|
4815
|
+
middleTimeUnit: StatusBarMiddleTimeUnit;
|
|
4781
4816
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
4782
4817
|
P: {};
|
|
4783
4818
|
B: {};
|
|
@@ -4786,7 +4821,11 @@ export declare const UpStatusBar: {
|
|
|
4786
4821
|
M: {};
|
|
4787
4822
|
Defaults: {};
|
|
4788
4823
|
}, Readonly<ExtractPropTypes< {
|
|
4789
|
-
|
|
4824
|
+
subscribesLeft: {
|
|
4825
|
+
type: PropType<ProductSubscribe[]>;
|
|
4826
|
+
default: () => never[];
|
|
4827
|
+
};
|
|
4828
|
+
subscribesRight: {
|
|
4790
4829
|
type: PropType<ProductSubscribe[]>;
|
|
4791
4830
|
default: () => never[];
|
|
4792
4831
|
};
|
|
@@ -4802,6 +4841,14 @@ export declare const UpStatusBar: {
|
|
|
4802
4841
|
type: BooleanConstructor;
|
|
4803
4842
|
default: boolean;
|
|
4804
4843
|
};
|
|
4844
|
+
middleAsTimeFormat: {
|
|
4845
|
+
type: BooleanConstructor;
|
|
4846
|
+
default: boolean;
|
|
4847
|
+
};
|
|
4848
|
+
middleTimeUnit: {
|
|
4849
|
+
type: PropType<StatusBarMiddleTimeUnit>;
|
|
4850
|
+
default: string;
|
|
4851
|
+
};
|
|
4805
4852
|
enableOpenDialog: {
|
|
4806
4853
|
type: BooleanConstructor;
|
|
4807
4854
|
default: boolean;
|
|
@@ -4835,7 +4882,6 @@ export declare const UpStatusBar: {
|
|
|
4835
4882
|
default: string;
|
|
4836
4883
|
};
|
|
4837
4884
|
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
4838
|
-
subscribes: ProductSubscribe[];
|
|
4839
4885
|
enableOpenDialog: boolean;
|
|
4840
4886
|
openDialogShowTitle: boolean;
|
|
4841
4887
|
openDialogTitle: string;
|
|
@@ -4844,15 +4890,23 @@ export declare const UpStatusBar: {
|
|
|
4844
4890
|
closeDialogShowTitle: boolean;
|
|
4845
4891
|
closeDialogTitle: string;
|
|
4846
4892
|
closeDialogContent: string;
|
|
4893
|
+
subscribesLeft: ProductSubscribe[];
|
|
4894
|
+
subscribesRight: ProductSubscribe[];
|
|
4847
4895
|
subscribesCenter: ProductSubscribe[];
|
|
4848
4896
|
showMiddle: boolean;
|
|
4849
4897
|
showMiddleWhenOff: boolean;
|
|
4898
|
+
middleAsTimeFormat: boolean;
|
|
4899
|
+
middleTimeUnit: StatusBarMiddleTimeUnit;
|
|
4850
4900
|
}>;
|
|
4851
4901
|
__isFragment?: never;
|
|
4852
4902
|
__isTeleport?: never;
|
|
4853
4903
|
__isSuspense?: never;
|
|
4854
4904
|
} & ComponentOptionsBase<Readonly<ExtractPropTypes< {
|
|
4855
|
-
|
|
4905
|
+
subscribesLeft: {
|
|
4906
|
+
type: PropType<ProductSubscribe[]>;
|
|
4907
|
+
default: () => never[];
|
|
4908
|
+
};
|
|
4909
|
+
subscribesRight: {
|
|
4856
4910
|
type: PropType<ProductSubscribe[]>;
|
|
4857
4911
|
default: () => never[];
|
|
4858
4912
|
};
|
|
@@ -4868,6 +4922,14 @@ showMiddleWhenOff: {
|
|
|
4868
4922
|
type: BooleanConstructor;
|
|
4869
4923
|
default: boolean;
|
|
4870
4924
|
};
|
|
4925
|
+
middleAsTimeFormat: {
|
|
4926
|
+
type: BooleanConstructor;
|
|
4927
|
+
default: boolean;
|
|
4928
|
+
};
|
|
4929
|
+
middleTimeUnit: {
|
|
4930
|
+
type: PropType<StatusBarMiddleTimeUnit>;
|
|
4931
|
+
default: string;
|
|
4932
|
+
};
|
|
4871
4933
|
enableOpenDialog: {
|
|
4872
4934
|
type: BooleanConstructor;
|
|
4873
4935
|
default: boolean;
|
|
@@ -4901,7 +4963,6 @@ type: StringConstructor;
|
|
|
4901
4963
|
default: string;
|
|
4902
4964
|
};
|
|
4903
4965
|
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
4904
|
-
subscribes: ProductSubscribe[];
|
|
4905
4966
|
enableOpenDialog: boolean;
|
|
4906
4967
|
openDialogShowTitle: boolean;
|
|
4907
4968
|
openDialogTitle: string;
|
|
@@ -4910,12 +4971,15 @@ enableCloseDialog: boolean;
|
|
|
4910
4971
|
closeDialogShowTitle: boolean;
|
|
4911
4972
|
closeDialogTitle: string;
|
|
4912
4973
|
closeDialogContent: string;
|
|
4974
|
+
subscribesLeft: ProductSubscribe[];
|
|
4975
|
+
subscribesRight: ProductSubscribe[];
|
|
4913
4976
|
subscribesCenter: ProductSubscribe[];
|
|
4914
4977
|
showMiddle: boolean;
|
|
4915
4978
|
showMiddleWhenOff: boolean;
|
|
4979
|
+
middleAsTimeFormat: boolean;
|
|
4980
|
+
middleTimeUnit: StatusBarMiddleTimeUnit;
|
|
4916
4981
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
4917
4982
|
$slots: {
|
|
4918
|
-
middle?(_: {}): any;
|
|
4919
4983
|
icon?(_: {}): any;
|
|
4920
4984
|
};
|
|
4921
4985
|
}) & Plugin_2;
|
|
@@ -5770,6 +5834,10 @@ export declare const zhCN: {
|
|
|
5770
5834
|
clear: string;
|
|
5771
5835
|
manualInput: string;
|
|
5772
5836
|
};
|
|
5837
|
+
commonInfo: {
|
|
5838
|
+
infoTitle: string;
|
|
5839
|
+
statPlaceholder: string;
|
|
5840
|
+
};
|
|
5773
5841
|
lampColour: {
|
|
5774
5842
|
cardTitle: string;
|
|
5775
5843
|
cardSubtitle: string;
|