@ailife-dev-vue/uiplus 0.1.19-snapshot → 0.1.20-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
 
@@ -422,6 +447,9 @@ export declare interface DeviceInfoBase {
422
447
  quickmenu?: unknown[];
423
448
  }
424
449
 
450
+ /** 时间展示枚举:`minute`→00:00,`second`→00:00:00(仅做数值换算,不约定上报单位) */
451
+ export declare type DurationTimeUnit = 'minute' | 'second';
452
+
425
453
  /**
426
454
  * 设备产品档案模型与规则判定工具:
427
455
  * - 定义 profile/services/characteristics/state 的核心类型;
@@ -2049,7 +2077,7 @@ declare type StatusBarBinaryState = 0 | 1;
2049
2077
  /** 与 `sendHilinkDeviceControl` / `window.hilink._deviceControlInner` 约定一致 */
2050
2078
  export declare type StatusBarCommandPayload = HilinkDeviceControlPayload;
2051
2079
 
2052
- export declare type StatusBarMiddleTimeUnit = 'second' | 'mmss';
2080
+ export declare type StatusBarMiddleTimeUnit = DurationTimeUnit;
2053
2081
 
2054
2082
  export declare type StatusBarProps = ExtractPropTypes<typeof statusBarProps>;
2055
2083
 
@@ -2186,14 +2214,14 @@ declare const subpageDisplayItemProps: {
2186
2214
  type: BooleanConstructor;
2187
2215
  default: boolean;
2188
2216
  };
2189
- /** 仅 int/float 且 asTimeFormat=true:minute → HH:MM,second → HH:MM:SS */
2217
+ /** 仅 int/float 且 asTimeFormat=true:minute → 00:00,second → 00:00:00(仅做数值换算,不约定上报单位) */
2190
2218
  timeUnit: {
2191
2219
  type: PropType<SubpageDisplayItemTimeUnit>;
2192
2220
  default: string;
2193
2221
  };
2194
2222
  };
2195
2223
 
2196
- export declare type SubpageDisplayItemTimeUnit = 'minute' | 'second';
2224
+ export declare type SubpageDisplayItemTimeUnit = DurationTimeUnit;
2197
2225
 
2198
2226
  export declare type SubpageEnumItemCommandPayload = HilinkDeviceControlPayload;
2199
2227
 
@@ -2536,15 +2564,26 @@ export declare const UpActionStatusbar: {
2536
2564
  type: BooleanConstructor;
2537
2565
  default: boolean;
2538
2566
  };
2567
+ middleAsTimeFormat: {
2568
+ type: BooleanConstructor;
2569
+ default: boolean;
2570
+ };
2571
+ middleTimeUnit: {
2572
+ type: PropType<ActionStatusbarMiddleTimeUnit>;
2573
+ default: string;
2574
+ };
2539
2575
  }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
2540
2576
  subscribesCenter: ProductSubscribe[];
2541
2577
  showMiddle: boolean;
2542
2578
  showMiddleWhenOff: boolean;
2579
+ middleAsTimeFormat: boolean;
2580
+ middleTimeUnit: DurationTimeUnit;
2543
2581
  subscribesAction: ProductSubscribe[];
2544
2582
  subscribesStatus: ProductSubscribe[];
2545
2583
  statusConfigs: ActionStatusbarStatusConfig[];
2546
2584
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
2547
2585
  middleRef: HTMLDivElement;
2586
+ middlePrimaryRef: HTMLDivElement;
2548
2587
  }, HTMLDivElement, ComponentProvideOptions, {
2549
2588
  P: {};
2550
2589
  B: {};
@@ -2577,10 +2616,20 @@ export declare const UpActionStatusbar: {
2577
2616
  type: BooleanConstructor;
2578
2617
  default: boolean;
2579
2618
  };
2619
+ middleAsTimeFormat: {
2620
+ type: BooleanConstructor;
2621
+ default: boolean;
2622
+ };
2623
+ middleTimeUnit: {
2624
+ type: PropType<ActionStatusbarMiddleTimeUnit>;
2625
+ default: string;
2626
+ };
2580
2627
  }>> & Readonly<{}>, {}, {}, {}, {}, {
2581
2628
  subscribesCenter: ProductSubscribe[];
2582
2629
  showMiddle: boolean;
2583
2630
  showMiddleWhenOff: boolean;
2631
+ middleAsTimeFormat: boolean;
2632
+ middleTimeUnit: DurationTimeUnit;
2584
2633
  subscribesAction: ProductSubscribe[];
2585
2634
  subscribesStatus: ProductSubscribe[];
2586
2635
  statusConfigs: ActionStatusbarStatusConfig[];
@@ -2613,10 +2662,20 @@ showMiddleWhenOff: {
2613
2662
  type: BooleanConstructor;
2614
2663
  default: boolean;
2615
2664
  };
2665
+ middleAsTimeFormat: {
2666
+ type: BooleanConstructor;
2667
+ default: boolean;
2668
+ };
2669
+ middleTimeUnit: {
2670
+ type: PropType<ActionStatusbarMiddleTimeUnit>;
2671
+ default: string;
2672
+ };
2616
2673
  }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
2617
2674
  subscribesCenter: ProductSubscribe[];
2618
2675
  showMiddle: boolean;
2619
2676
  showMiddleWhenOff: boolean;
2677
+ middleAsTimeFormat: boolean;
2678
+ middleTimeUnit: DurationTimeUnit;
2620
2679
  subscribesAction: ProductSubscribe[];
2621
2680
  subscribesStatus: ProductSubscribe[];
2622
2681
  statusConfigs: ActionStatusbarStatusConfig[];
@@ -3395,6 +3454,14 @@ export declare const UpCommonBannerNew: {
3395
3454
  type: BooleanConstructor;
3396
3455
  default: boolean;
3397
3456
  };
3457
+ middleAsTimeFormat: {
3458
+ type: BooleanConstructor;
3459
+ default: boolean;
3460
+ };
3461
+ middleTimeUnit: {
3462
+ type: PropType<CommonBannerNewMiddleTimeUnit>;
3463
+ default: string;
3464
+ };
3398
3465
  enableOpenDialog: {
3399
3466
  type: BooleanConstructor;
3400
3467
  default: boolean;
@@ -3436,6 +3503,8 @@ export declare const UpCommonBannerNew: {
3436
3503
  closeDialogShowTitle: boolean;
3437
3504
  closeDialogTitle: string;
3438
3505
  closeDialogContent: string;
3506
+ middleAsTimeFormat: boolean;
3507
+ middleTimeUnit: DurationTimeUnit;
3439
3508
  subscribesLeftTop: ProductSubscribe[];
3440
3509
  showLeftBottom: boolean;
3441
3510
  subscribesLeftBottom: ProductSubscribe[];
@@ -3479,6 +3548,14 @@ export declare const UpCommonBannerNew: {
3479
3548
  type: BooleanConstructor;
3480
3549
  default: boolean;
3481
3550
  };
3551
+ middleAsTimeFormat: {
3552
+ type: BooleanConstructor;
3553
+ default: boolean;
3554
+ };
3555
+ middleTimeUnit: {
3556
+ type: PropType<CommonBannerNewMiddleTimeUnit>;
3557
+ default: string;
3558
+ };
3482
3559
  enableOpenDialog: {
3483
3560
  type: BooleanConstructor;
3484
3561
  default: boolean;
@@ -3520,6 +3597,8 @@ export declare const UpCommonBannerNew: {
3520
3597
  closeDialogShowTitle: boolean;
3521
3598
  closeDialogTitle: string;
3522
3599
  closeDialogContent: string;
3600
+ middleAsTimeFormat: boolean;
3601
+ middleTimeUnit: DurationTimeUnit;
3523
3602
  subscribesLeftTop: ProductSubscribe[];
3524
3603
  showLeftBottom: boolean;
3525
3604
  subscribesLeftBottom: ProductSubscribe[];
@@ -3560,6 +3639,14 @@ showBottomWhenOff: {
3560
3639
  type: BooleanConstructor;
3561
3640
  default: boolean;
3562
3641
  };
3642
+ middleAsTimeFormat: {
3643
+ type: BooleanConstructor;
3644
+ default: boolean;
3645
+ };
3646
+ middleTimeUnit: {
3647
+ type: PropType<CommonBannerNewMiddleTimeUnit>;
3648
+ default: string;
3649
+ };
3563
3650
  enableOpenDialog: {
3564
3651
  type: BooleanConstructor;
3565
3652
  default: boolean;
@@ -3601,6 +3688,8 @@ enableCloseDialog: boolean;
3601
3688
  closeDialogShowTitle: boolean;
3602
3689
  closeDialogTitle: string;
3603
3690
  closeDialogContent: string;
3691
+ middleAsTimeFormat: boolean;
3692
+ middleTimeUnit: DurationTimeUnit;
3604
3693
  subscribesLeftTop: ProductSubscribe[];
3605
3694
  showLeftBottom: boolean;
3606
3695
  subscribesLeftBottom: ProductSubscribe[];
@@ -5856,8 +5945,8 @@ zIndex: number;
5856
5945
  placeholder: string;
5857
5946
  inputmode: NumericInputFieldInputMode;
5858
5947
  step: number;
5859
- initialValue: number;
5860
5948
  invalidText: string;
5949
+ initialValue: number;
5861
5950
  integerOnly: boolean;
5862
5951
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
5863
5952
 
@@ -6558,7 +6647,7 @@ export declare const UpStatusBar: {
6558
6647
  showMiddle: boolean;
6559
6648
  showMiddleWhenOff: boolean;
6560
6649
  middleAsTimeFormat: boolean;
6561
- middleTimeUnit: StatusBarMiddleTimeUnit;
6650
+ middleTimeUnit: DurationTimeUnit;
6562
6651
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
6563
6652
  middleRef: HTMLDivElement;
6564
6653
  middlePrimaryRef: HTMLDivElement;
@@ -6645,7 +6734,7 @@ export declare const UpStatusBar: {
6645
6734
  showMiddle: boolean;
6646
6735
  showMiddleWhenOff: boolean;
6647
6736
  middleAsTimeFormat: boolean;
6648
- middleTimeUnit: StatusBarMiddleTimeUnit;
6737
+ middleTimeUnit: DurationTimeUnit;
6649
6738
  }>;
6650
6739
  __isFragment?: never;
6651
6740
  __isTeleport?: never;
@@ -6726,7 +6815,7 @@ subscribesCenter: ProductSubscribe[];
6726
6815
  showMiddle: boolean;
6727
6816
  showMiddleWhenOff: boolean;
6728
6817
  middleAsTimeFormat: boolean;
6729
- middleTimeUnit: StatusBarMiddleTimeUnit;
6818
+ middleTimeUnit: DurationTimeUnit;
6730
6819
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
6731
6820
  $slots: {
6732
6821
  icon?(_: {}): any;
@@ -6910,7 +6999,7 @@ export declare const UpSubpageDisplayItem: {
6910
6999
  subscribes: ProductSubscribe[];
6911
7000
  displayUnit: string;
6912
7001
  asTimeFormat: boolean;
6913
- timeUnit: SubpageDisplayItemTimeUnit;
7002
+ timeUnit: DurationTimeUnit;
6914
7003
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
6915
7004
  P: {};
6916
7005
  B: {};
@@ -6939,7 +7028,7 @@ export declare const UpSubpageDisplayItem: {
6939
7028
  subscribes: ProductSubscribe[];
6940
7029
  displayUnit: string;
6941
7030
  asTimeFormat: boolean;
6942
- timeUnit: SubpageDisplayItemTimeUnit;
7031
+ timeUnit: DurationTimeUnit;
6943
7032
  }>;
6944
7033
  __isFragment?: never;
6945
7034
  __isTeleport?: never;
@@ -6965,7 +7054,7 @@ default: string;
6965
7054
  subscribes: ProductSubscribe[];
6966
7055
  displayUnit: string;
6967
7056
  asTimeFormat: boolean;
6968
- timeUnit: SubpageDisplayItemTimeUnit;
7057
+ timeUnit: DurationTimeUnit;
6969
7058
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
6970
7059
 
6971
7060
  export declare const UpSubpageEnumItem: {