@ailife-dev-vue/uiplus 0.1.19-snapshot → 0.1.21-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.d.ts CHANGED
@@ -27,6 +27,9 @@ export declare interface ActionStatusbarConfirmDialogConfig {
27
27
  content?: string;
28
28
  }
29
29
 
30
+ /** 与 StatusBar 一致:`minute`→00:00,`second`→00:00:00 */
31
+ export declare type ActionStatusbarMiddleTimeUnit = DurationTimeUnit;
32
+
30
33
  export declare type ActionStatusbarProps = ExtractPropTypes<typeof actionStatusbarProps>;
31
34
 
32
35
  declare const actionStatusbarProps: {
@@ -56,6 +59,14 @@ declare const actionStatusbarProps: {
56
59
  type: BooleanConstructor;
57
60
  default: boolean;
58
61
  };
62
+ middleAsTimeFormat: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
66
+ middleTimeUnit: {
67
+ type: PropType<ActionStatusbarMiddleTimeUnit>;
68
+ default: string;
69
+ };
59
70
  };
60
71
 
61
72
  export declare type ActionStatusbarState = 0 | 1 | 2;
@@ -253,6 +264,9 @@ export declare interface Characteristic {
253
264
  report?: number;
254
265
  }
255
266
 
267
+ /** 与 StatusBar 一致:`minute`→00:00,`second`→00:00:00;作用于左下 int/float */
268
+ export declare type CommonBannerNewMiddleTimeUnit = DurationTimeUnit;
269
+
256
270
  export declare type CommonBannerNewProps = ExtractPropTypes<typeof commonBannerNewProps>;
257
271
 
258
272
  declare const commonBannerNewProps: {
@@ -284,6 +298,16 @@ declare const commonBannerNewProps: {
284
298
  type: BooleanConstructor;
285
299
  default: boolean;
286
300
  };
301
+ /** 左下绑 int/float 时是否格式化为时间;enum 忽略 */
302
+ middleAsTimeFormat: {
303
+ type: BooleanConstructor;
304
+ default: boolean;
305
+ };
306
+ /** middleAsTimeFormat=true 时生效;默认 minute→00:00 */
307
+ middleTimeUnit: {
308
+ type: PropType<CommonBannerNewMiddleTimeUnit>;
309
+ default: string;
310
+ };
287
311
  enableOpenDialog: {
288
312
  type: BooleanConstructor;
289
313
  default: boolean;
@@ -327,7 +351,8 @@ export declare type CommonInfoEnumItemConfig = CommonInfoItemConfigBase & {
327
351
  export declare type CommonInfoIntFloatItemConfig = CommonInfoItemConfigBase & {
328
352
  valueMode?: CommonInfoValueMode;
329
353
  asTimeFormat?: boolean;
330
- timeUnit?: 'minute' | 'second';
354
+ /** asTimeFormat=true:minute → 00:00,second → 00:00:00(仅做数值换算,不约定上报单位) */
355
+ timeUnit?: DurationTimeUnit;
331
356
  unit?: string;
332
357
  };
333
358
 
@@ -338,6 +363,8 @@ declare type CommonInfoItemConfigBase = {
338
363
  cid?: string;
339
364
  label?: string;
340
365
  infoContent?: string;
366
+ /** path 非空时展示跳转箭头,点击标签行按 UpPageRouter 规则导航 */
367
+ router?: PageRouterTarget;
341
368
  };
342
369
 
343
370
  export declare type CommonInfoProps = ExtractPropTypes<typeof commonInfoProps>;
@@ -367,6 +394,9 @@ export declare type CommonInfoViewItem = {
367
394
  showInfo: boolean;
368
395
  infoContent: string;
369
396
  isEnum: boolean;
397
+ /** itemConfigs.router.path 非空 */
398
+ showArrow: boolean;
399
+ router?: PageRouterTarget;
370
400
  };
371
401
 
372
402
  declare const _default: {
@@ -422,6 +452,9 @@ export declare interface DeviceInfoBase {
422
452
  quickmenu?: unknown[];
423
453
  }
424
454
 
455
+ /** 时间展示枚举:`minute`→00:00,`second`→00:00:00(仅做数值换算,不约定上报单位) */
456
+ export declare type DurationTimeUnit = 'minute' | 'second';
457
+
425
458
  /**
426
459
  * 设备产品档案模型与规则判定工具:
427
460
  * - 定义 profile/services/characteristics/state 的核心类型;
@@ -2049,7 +2082,7 @@ declare type StatusBarBinaryState = 0 | 1;
2049
2082
  /** 与 `sendHilinkDeviceControl` / `window.hilink._deviceControlInner` 约定一致 */
2050
2083
  export declare type StatusBarCommandPayload = HilinkDeviceControlPayload;
2051
2084
 
2052
- export declare type StatusBarMiddleTimeUnit = 'second' | 'mmss';
2085
+ export declare type StatusBarMiddleTimeUnit = DurationTimeUnit;
2053
2086
 
2054
2087
  export declare type StatusBarProps = ExtractPropTypes<typeof statusBarProps>;
2055
2088
 
@@ -2186,14 +2219,14 @@ declare const subpageDisplayItemProps: {
2186
2219
  type: BooleanConstructor;
2187
2220
  default: boolean;
2188
2221
  };
2189
- /** 仅 int/float 且 asTimeFormat=true:minute → HH:MM,second → HH:MM:SS */
2222
+ /** 仅 int/float 且 asTimeFormat=true:minute → 00:00,second → 00:00:00(仅做数值换算,不约定上报单位) */
2190
2223
  timeUnit: {
2191
2224
  type: PropType<SubpageDisplayItemTimeUnit>;
2192
2225
  default: string;
2193
2226
  };
2194
2227
  };
2195
2228
 
2196
- export declare type SubpageDisplayItemTimeUnit = 'minute' | 'second';
2229
+ export declare type SubpageDisplayItemTimeUnit = DurationTimeUnit;
2197
2230
 
2198
2231
  export declare type SubpageEnumItemCommandPayload = HilinkDeviceControlPayload;
2199
2232
 
@@ -2536,15 +2569,26 @@ export declare const UpActionStatusbar: {
2536
2569
  type: BooleanConstructor;
2537
2570
  default: boolean;
2538
2571
  };
2572
+ middleAsTimeFormat: {
2573
+ type: BooleanConstructor;
2574
+ default: boolean;
2575
+ };
2576
+ middleTimeUnit: {
2577
+ type: PropType<ActionStatusbarMiddleTimeUnit>;
2578
+ default: string;
2579
+ };
2539
2580
  }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
2540
2581
  subscribesCenter: ProductSubscribe[];
2541
2582
  showMiddle: boolean;
2542
2583
  showMiddleWhenOff: boolean;
2584
+ middleAsTimeFormat: boolean;
2585
+ middleTimeUnit: DurationTimeUnit;
2543
2586
  subscribesAction: ProductSubscribe[];
2544
2587
  subscribesStatus: ProductSubscribe[];
2545
2588
  statusConfigs: ActionStatusbarStatusConfig[];
2546
2589
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
2547
2590
  middleRef: HTMLDivElement;
2591
+ middlePrimaryRef: HTMLDivElement;
2548
2592
  }, HTMLDivElement, ComponentProvideOptions, {
2549
2593
  P: {};
2550
2594
  B: {};
@@ -2577,10 +2621,20 @@ export declare const UpActionStatusbar: {
2577
2621
  type: BooleanConstructor;
2578
2622
  default: boolean;
2579
2623
  };
2624
+ middleAsTimeFormat: {
2625
+ type: BooleanConstructor;
2626
+ default: boolean;
2627
+ };
2628
+ middleTimeUnit: {
2629
+ type: PropType<ActionStatusbarMiddleTimeUnit>;
2630
+ default: string;
2631
+ };
2580
2632
  }>> & Readonly<{}>, {}, {}, {}, {}, {
2581
2633
  subscribesCenter: ProductSubscribe[];
2582
2634
  showMiddle: boolean;
2583
2635
  showMiddleWhenOff: boolean;
2636
+ middleAsTimeFormat: boolean;
2637
+ middleTimeUnit: DurationTimeUnit;
2584
2638
  subscribesAction: ProductSubscribe[];
2585
2639
  subscribesStatus: ProductSubscribe[];
2586
2640
  statusConfigs: ActionStatusbarStatusConfig[];
@@ -2613,10 +2667,20 @@ showMiddleWhenOff: {
2613
2667
  type: BooleanConstructor;
2614
2668
  default: boolean;
2615
2669
  };
2670
+ middleAsTimeFormat: {
2671
+ type: BooleanConstructor;
2672
+ default: boolean;
2673
+ };
2674
+ middleTimeUnit: {
2675
+ type: PropType<ActionStatusbarMiddleTimeUnit>;
2676
+ default: string;
2677
+ };
2616
2678
  }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
2617
2679
  subscribesCenter: ProductSubscribe[];
2618
2680
  showMiddle: boolean;
2619
2681
  showMiddleWhenOff: boolean;
2682
+ middleAsTimeFormat: boolean;
2683
+ middleTimeUnit: DurationTimeUnit;
2620
2684
  subscribesAction: ProductSubscribe[];
2621
2685
  subscribesStatus: ProductSubscribe[];
2622
2686
  statusConfigs: ActionStatusbarStatusConfig[];
@@ -3395,6 +3459,14 @@ export declare const UpCommonBannerNew: {
3395
3459
  type: BooleanConstructor;
3396
3460
  default: boolean;
3397
3461
  };
3462
+ middleAsTimeFormat: {
3463
+ type: BooleanConstructor;
3464
+ default: boolean;
3465
+ };
3466
+ middleTimeUnit: {
3467
+ type: PropType<CommonBannerNewMiddleTimeUnit>;
3468
+ default: string;
3469
+ };
3398
3470
  enableOpenDialog: {
3399
3471
  type: BooleanConstructor;
3400
3472
  default: boolean;
@@ -3436,6 +3508,8 @@ export declare const UpCommonBannerNew: {
3436
3508
  closeDialogShowTitle: boolean;
3437
3509
  closeDialogTitle: string;
3438
3510
  closeDialogContent: string;
3511
+ middleAsTimeFormat: boolean;
3512
+ middleTimeUnit: DurationTimeUnit;
3439
3513
  subscribesLeftTop: ProductSubscribe[];
3440
3514
  showLeftBottom: boolean;
3441
3515
  subscribesLeftBottom: ProductSubscribe[];
@@ -3479,6 +3553,14 @@ export declare const UpCommonBannerNew: {
3479
3553
  type: BooleanConstructor;
3480
3554
  default: boolean;
3481
3555
  };
3556
+ middleAsTimeFormat: {
3557
+ type: BooleanConstructor;
3558
+ default: boolean;
3559
+ };
3560
+ middleTimeUnit: {
3561
+ type: PropType<CommonBannerNewMiddleTimeUnit>;
3562
+ default: string;
3563
+ };
3482
3564
  enableOpenDialog: {
3483
3565
  type: BooleanConstructor;
3484
3566
  default: boolean;
@@ -3520,6 +3602,8 @@ export declare const UpCommonBannerNew: {
3520
3602
  closeDialogShowTitle: boolean;
3521
3603
  closeDialogTitle: string;
3522
3604
  closeDialogContent: string;
3605
+ middleAsTimeFormat: boolean;
3606
+ middleTimeUnit: DurationTimeUnit;
3523
3607
  subscribesLeftTop: ProductSubscribe[];
3524
3608
  showLeftBottom: boolean;
3525
3609
  subscribesLeftBottom: ProductSubscribe[];
@@ -3560,6 +3644,14 @@ showBottomWhenOff: {
3560
3644
  type: BooleanConstructor;
3561
3645
  default: boolean;
3562
3646
  };
3647
+ middleAsTimeFormat: {
3648
+ type: BooleanConstructor;
3649
+ default: boolean;
3650
+ };
3651
+ middleTimeUnit: {
3652
+ type: PropType<CommonBannerNewMiddleTimeUnit>;
3653
+ default: string;
3654
+ };
3563
3655
  enableOpenDialog: {
3564
3656
  type: BooleanConstructor;
3565
3657
  default: boolean;
@@ -3601,6 +3693,8 @@ enableCloseDialog: boolean;
3601
3693
  closeDialogShowTitle: boolean;
3602
3694
  closeDialogTitle: string;
3603
3695
  closeDialogContent: string;
3696
+ middleAsTimeFormat: boolean;
3697
+ middleTimeUnit: DurationTimeUnit;
3604
3698
  subscribesLeftTop: ProductSubscribe[];
3605
3699
  showLeftBottom: boolean;
3606
3700
  subscribesLeftBottom: ProductSubscribe[];
@@ -5856,8 +5950,8 @@ zIndex: number;
5856
5950
  placeholder: string;
5857
5951
  inputmode: NumericInputFieldInputMode;
5858
5952
  step: number;
5859
- initialValue: number;
5860
5953
  invalidText: string;
5954
+ initialValue: number;
5861
5955
  integerOnly: boolean;
5862
5956
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
5863
5957
 
@@ -6558,7 +6652,7 @@ export declare const UpStatusBar: {
6558
6652
  showMiddle: boolean;
6559
6653
  showMiddleWhenOff: boolean;
6560
6654
  middleAsTimeFormat: boolean;
6561
- middleTimeUnit: StatusBarMiddleTimeUnit;
6655
+ middleTimeUnit: DurationTimeUnit;
6562
6656
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
6563
6657
  middleRef: HTMLDivElement;
6564
6658
  middlePrimaryRef: HTMLDivElement;
@@ -6645,7 +6739,7 @@ export declare const UpStatusBar: {
6645
6739
  showMiddle: boolean;
6646
6740
  showMiddleWhenOff: boolean;
6647
6741
  middleAsTimeFormat: boolean;
6648
- middleTimeUnit: StatusBarMiddleTimeUnit;
6742
+ middleTimeUnit: DurationTimeUnit;
6649
6743
  }>;
6650
6744
  __isFragment?: never;
6651
6745
  __isTeleport?: never;
@@ -6726,7 +6820,7 @@ subscribesCenter: ProductSubscribe[];
6726
6820
  showMiddle: boolean;
6727
6821
  showMiddleWhenOff: boolean;
6728
6822
  middleAsTimeFormat: boolean;
6729
- middleTimeUnit: StatusBarMiddleTimeUnit;
6823
+ middleTimeUnit: DurationTimeUnit;
6730
6824
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
6731
6825
  $slots: {
6732
6826
  icon?(_: {}): any;
@@ -6910,7 +7004,7 @@ export declare const UpSubpageDisplayItem: {
6910
7004
  subscribes: ProductSubscribe[];
6911
7005
  displayUnit: string;
6912
7006
  asTimeFormat: boolean;
6913
- timeUnit: SubpageDisplayItemTimeUnit;
7007
+ timeUnit: DurationTimeUnit;
6914
7008
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
6915
7009
  P: {};
6916
7010
  B: {};
@@ -6939,7 +7033,7 @@ export declare const UpSubpageDisplayItem: {
6939
7033
  subscribes: ProductSubscribe[];
6940
7034
  displayUnit: string;
6941
7035
  asTimeFormat: boolean;
6942
- timeUnit: SubpageDisplayItemTimeUnit;
7036
+ timeUnit: DurationTimeUnit;
6943
7037
  }>;
6944
7038
  __isFragment?: never;
6945
7039
  __isTeleport?: never;
@@ -6965,7 +7059,7 @@ default: string;
6965
7059
  subscribes: ProductSubscribe[];
6966
7060
  displayUnit: string;
6967
7061
  asTimeFormat: boolean;
6968
- timeUnit: SubpageDisplayItemTimeUnit;
7062
+ timeUnit: DurationTimeUnit;
6969
7063
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
6970
7064
 
6971
7065
  export declare const UpSubpageEnumItem: {