@ailife-dev-vue/uiplus 0.0.4 → 0.0.5

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
@@ -318,6 +318,8 @@ export declare const DELAY_I18N_KEYS: {
318
318
  readonly titleOff: "delay.titleOff";
319
319
  readonly previewWillOn: "delay.previewWillOn";
320
320
  readonly previewWillOff: "delay.previewWillOff";
321
+ readonly previewWillOnTomorrow: "delay.previewWillOnTomorrow";
322
+ readonly previewWillOffTomorrow: "delay.previewWillOffTomorrow";
321
323
  readonly closeCountdown: "delay.closeCountdown";
322
324
  readonly wheelHour: "delay.wheelHour";
323
325
  readonly wheelMinute: "delay.wheelMinute";
@@ -541,6 +543,7 @@ export declare const enUS: {
541
543
  placeholderPleaseSelect: string;
542
544
  toastMaxTimers: string;
543
545
  toastSelectFunction: string;
546
+ toastStartEndSame: string;
544
547
  summary: {
545
548
  template: {
546
549
  dualToday: string;
@@ -589,10 +592,19 @@ export declare const enUS: {
589
592
  titleOff: string;
590
593
  previewWillOn: string;
591
594
  previewWillOff: string;
595
+ previewWillOnTomorrow: string;
596
+ previewWillOffTomorrow: string;
592
597
  closeCountdown: string;
593
598
  wheelHour: string;
594
599
  wheelMinute: string;
595
600
  };
601
+ generalTimeSwitch: {
602
+ unitHour: string;
603
+ unitMinute: string;
604
+ unitSecond: string;
605
+ subtitleHourMinute: string;
606
+ subtitleMinuteSecond: string;
607
+ };
596
608
  generalEnumSlider: {
597
609
  placeholderOption1: string;
598
610
  placeholderOption2: string;
@@ -603,6 +615,7 @@ export declare const enUS: {
603
615
  placeholderOption2: string;
604
616
  placeholderOption3: string;
605
617
  placeholderOption4: string;
618
+ more: string;
606
619
  };
607
620
  commonBannerNew: {
608
621
  connect: {
@@ -754,6 +767,15 @@ export declare function formatUtcAbsoluteTimeAfterOffsetMs(offsetMs: number): st
754
767
  /** 毫秒时间戳 → `formatUtcAbsoluteTime` */
755
768
  export declare function formatUtcAbsoluteTimeFromMs(timestampMs: number): string;
756
769
 
770
+ /** UpGeneralTimeSwitch 组件文案 key(`@uiplus/locale` zh-CN / en-US) */
771
+ export declare const GENERAL_TIME_SWITCH_I18N_KEYS: {
772
+ readonly unitHour: "generalTimeSwitch.unitHour";
773
+ readonly unitMinute: "generalTimeSwitch.unitMinute";
774
+ readonly unitSecond: "generalTimeSwitch.unitSecond";
775
+ readonly subtitleHourMinute: "generalTimeSwitch.subtitleHourMinute";
776
+ readonly subtitleMinuteSecond: "generalTimeSwitch.subtitleMinuteSecond";
777
+ };
778
+
757
779
  export declare type GeneralCombinedDeliveryDisplayItem = {
758
780
  enumVal: string;
759
781
  label: string;
@@ -855,6 +877,7 @@ export declare type GeneralEnumTileDisplayItem = {
855
877
  enumVal: string;
856
878
  label: string;
857
879
  isPlaceholder?: boolean;
880
+ isMore?: boolean;
858
881
  };
859
882
 
860
883
  export declare type GeneralEnumTileOptionConfig = {
@@ -893,6 +916,10 @@ declare const generalEnumTileProps: {
893
916
  type: PropType<GeneralEnumTileOptionConfig[]>;
894
917
  default: () => never[];
895
918
  };
919
+ moreEnumOptionConfigs: {
920
+ type: PropType<GeneralEnumTileOptionConfig[]>;
921
+ default: () => never[];
922
+ };
896
923
  };
897
924
 
898
925
  export declare interface GeneralHistoricalRecordConfigItem {
@@ -1121,6 +1148,27 @@ export declare interface GeneralScreenRowModel {
1121
1148
 
1122
1149
  export declare type GeneralScreenTimeUnit = 'hour' | 'day';
1123
1150
 
1151
+ export declare type GeneralTimeSwitchCardSize = 'full' | 'half';
1152
+
1153
+ export declare type GeneralTimeSwitchProps = ExtractPropTypes<typeof generalTimeSwitchProps>;
1154
+
1155
+ declare const generalTimeSwitchProps: {
1156
+ readonly subscribes: {
1157
+ readonly type: PropType<ProductSubscribe[]>;
1158
+ readonly default: () => never[];
1159
+ };
1160
+ readonly cardSize: {
1161
+ readonly type: PropType<GeneralTimeSwitchCardSize>;
1162
+ readonly default: "half";
1163
+ };
1164
+ readonly wheelUnit: {
1165
+ readonly type: PropType<GeneralTimeSwitchWheelUnit>;
1166
+ readonly default: "hourMinute";
1167
+ };
1168
+ };
1169
+
1170
+ declare type GeneralTimeSwitchWheelUnit = 'hourMinute' | 'minuteSecond';
1171
+
1124
1172
  export declare type GeneralWarnEmits = {
1125
1173
  (e: 'expanded-change', expanded: boolean): void;
1126
1174
  };
@@ -1461,6 +1509,8 @@ export declare interface Service {
1461
1509
 
1462
1510
  export declare function setHilinkTitleVisible(visible: boolean, callbackName?: string): void;
1463
1511
 
1512
+ export declare function setShowFakeTitleBar(visible: boolean): void;
1513
+
1464
1514
  /** 写入 `state[sid][cid]`;若 `state[sid]` 尚非对象则置为 `{ [cid]: value }`。 */
1465
1515
  export declare const setStateValue: (state: ProductState, sid: string, cid: string, value: unknown) => void;
1466
1516
 
@@ -1514,6 +1564,9 @@ declare const sheetDialogProps: {
1514
1564
  };
1515
1565
  };
1516
1566
 
1567
+ /** 与宿主约定:`showFakeTitleBar(visible)`,二级页显示/隐藏假标题栏。 */
1568
+ export declare type ShowFakeTitleBarFn = (visible: boolean) => void;
1569
+
1517
1570
  declare type StatusBarBinaryState = 0 | 1;
1518
1571
 
1519
1572
  /** 与 `sendHilinkDeviceControl` / `window.hilink._deviceControlInner` 约定一致 */
@@ -1706,6 +1759,11 @@ declare const timeWheelPickerProps: {
1706
1759
  type: NumberConstructor;
1707
1760
  default: number;
1708
1761
  };
1762
+ /** 为 true 时,列 key 为 hour/minute 的选项展示补零(如 1 → 01) */
1763
+ padTimeDigits: {
1764
+ type: BooleanConstructor;
1765
+ default: boolean;
1766
+ };
1709
1767
  };
1710
1768
 
1711
1769
  export declare type TimeWheelPickerValue = Record<string, string | number>;
@@ -3377,6 +3435,10 @@ export declare const UpGeneralEnumTile: {
3377
3435
  type: PropType<GeneralEnumTileOptionConfig[]>;
3378
3436
  default: () => never[];
3379
3437
  };
3438
+ moreEnumOptionConfigs: {
3439
+ type: PropType<GeneralEnumTileOptionConfig[]>;
3440
+ default: () => never[];
3441
+ };
3380
3442
  }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
3381
3443
  subscribes: ProductSubscribe[];
3382
3444
  showTitle: boolean;
@@ -3384,7 +3446,10 @@ export declare const UpGeneralEnumTile: {
3384
3446
  invertEnabled: boolean;
3385
3447
  invertEnumValue: string | number;
3386
3448
  enumOptionConfigs: GeneralEnumTileOptionConfig[];
3387
- }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
3449
+ moreEnumOptionConfigs: GeneralEnumTileOptionConfig[];
3450
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
3451
+ moreDropdownRef: HTMLDivElement;
3452
+ }, HTMLDivElement, ComponentProvideOptions, {
3388
3453
  P: {};
3389
3454
  B: {};
3390
3455
  D: {};
@@ -3416,6 +3481,10 @@ export declare const UpGeneralEnumTile: {
3416
3481
  type: PropType<GeneralEnumTileOptionConfig[]>;
3417
3482
  default: () => never[];
3418
3483
  };
3484
+ moreEnumOptionConfigs: {
3485
+ type: PropType<GeneralEnumTileOptionConfig[]>;
3486
+ default: () => never[];
3487
+ };
3419
3488
  }>> & Readonly<{}>, {}, {}, {}, {}, {
3420
3489
  subscribes: ProductSubscribe[];
3421
3490
  showTitle: boolean;
@@ -3423,6 +3492,7 @@ export declare const UpGeneralEnumTile: {
3423
3492
  invertEnabled: boolean;
3424
3493
  invertEnumValue: string | number;
3425
3494
  enumOptionConfigs: GeneralEnumTileOptionConfig[];
3495
+ moreEnumOptionConfigs: GeneralEnumTileOptionConfig[];
3426
3496
  }>;
3427
3497
  __isFragment?: never;
3428
3498
  __isTeleport?: never;
@@ -3452,6 +3522,10 @@ enumOptionConfigs: {
3452
3522
  type: PropType<GeneralEnumTileOptionConfig[]>;
3453
3523
  default: () => never[];
3454
3524
  };
3525
+ moreEnumOptionConfigs: {
3526
+ type: PropType<GeneralEnumTileOptionConfig[]>;
3527
+ default: () => never[];
3528
+ };
3455
3529
  }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
3456
3530
  subscribes: ProductSubscribe[];
3457
3531
  showTitle: boolean;
@@ -3459,6 +3533,7 @@ singleTapDispatch: boolean;
3459
3533
  invertEnabled: boolean;
3460
3534
  invertEnumValue: string | number;
3461
3535
  enumOptionConfigs: GeneralEnumTileOptionConfig[];
3536
+ moreEnumOptionConfigs: GeneralEnumTileOptionConfig[];
3462
3537
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
3463
3538
  $slots: {
3464
3539
  default?(_: {}): any;
@@ -3878,6 +3953,71 @@ default: () => never[];
3878
3953
  filterElementItemConfigs: GeneralScreenFilterElementItemConfig[];
3879
3954
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
3880
3955
 
3956
+ export declare const UpGeneralTimeSwitch: {
3957
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
3958
+ readonly subscribes: {
3959
+ readonly type: PropType<ProductSubscribe[]>;
3960
+ readonly default: () => never[];
3961
+ };
3962
+ readonly cardSize: {
3963
+ readonly type: PropType<GeneralTimeSwitchCardSize>;
3964
+ readonly default: "half";
3965
+ };
3966
+ readonly wheelUnit: {
3967
+ readonly type: PropType<GeneralTimeSwitchWheelUnit>;
3968
+ readonly default: "hourMinute";
3969
+ };
3970
+ }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
3971
+ readonly subscribes: ProductSubscribe[];
3972
+ readonly cardSize: GeneralTimeSwitchCardSize;
3973
+ readonly wheelUnit: GeneralTimeSwitchWheelUnit;
3974
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
3975
+ P: {};
3976
+ B: {};
3977
+ D: {};
3978
+ C: {};
3979
+ M: {};
3980
+ Defaults: {};
3981
+ }, Readonly<ExtractPropTypes< {
3982
+ readonly subscribes: {
3983
+ readonly type: PropType<ProductSubscribe[]>;
3984
+ readonly default: () => never[];
3985
+ };
3986
+ readonly cardSize: {
3987
+ readonly type: PropType<GeneralTimeSwitchCardSize>;
3988
+ readonly default: "half";
3989
+ };
3990
+ readonly wheelUnit: {
3991
+ readonly type: PropType<GeneralTimeSwitchWheelUnit>;
3992
+ readonly default: "hourMinute";
3993
+ };
3994
+ }>> & Readonly<{}>, {}, {}, {}, {}, {
3995
+ readonly subscribes: ProductSubscribe[];
3996
+ readonly cardSize: GeneralTimeSwitchCardSize;
3997
+ readonly wheelUnit: GeneralTimeSwitchWheelUnit;
3998
+ }>;
3999
+ __isFragment?: never;
4000
+ __isTeleport?: never;
4001
+ __isSuspense?: never;
4002
+ } & ComponentOptionsBase<Readonly<ExtractPropTypes< {
4003
+ readonly subscribes: {
4004
+ readonly type: PropType<ProductSubscribe[]>;
4005
+ readonly default: () => never[];
4006
+ };
4007
+ readonly cardSize: {
4008
+ readonly type: PropType<GeneralTimeSwitchCardSize>;
4009
+ readonly default: "half";
4010
+ };
4011
+ readonly wheelUnit: {
4012
+ readonly type: PropType<GeneralTimeSwitchWheelUnit>;
4013
+ readonly default: "hourMinute";
4014
+ };
4015
+ }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
4016
+ readonly subscribes: ProductSubscribe[];
4017
+ readonly cardSize: GeneralTimeSwitchCardSize;
4018
+ readonly wheelUnit: GeneralTimeSwitchWheelUnit;
4019
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
4020
+
3881
4021
  export declare const UpGeneralWarn: {
3882
4022
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
3883
4023
  description: {
@@ -4369,7 +4509,9 @@ export declare const UpPageBarNew: {
4369
4509
  }, PublicProps, {
4370
4510
  showProductWikiCard: boolean;
4371
4511
  productWikiDeviceTransport: PageBarNewProductWikiDeviceTransport;
4372
- }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
4512
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
4513
+ scrollRef: HTMLDivElement;
4514
+ }, HTMLDivElement, ComponentProvideOptions, {
4373
4515
  P: {};
4374
4516
  B: {};
4375
4517
  D: {};
@@ -4998,6 +5140,10 @@ export declare const UpTimeWheelPicker: {
4998
5140
  type: NumberConstructor;
4999
5141
  default: number;
5000
5142
  };
5143
+ padTimeDigits: {
5144
+ type: BooleanConstructor;
5145
+ default: boolean;
5146
+ };
5001
5147
  }>> & Readonly<{
5002
5148
  onChange?: ((value: TimeWheelPickerValue) => any) | undefined;
5003
5149
  "onUpdate:modelValue"?: ((value: TimeWheelPickerValue) => any) | undefined;
@@ -5010,6 +5156,7 @@ export declare const UpTimeWheelPicker: {
5010
5156
  itemHeight: number;
5011
5157
  viewHeight: number;
5012
5158
  centerItemHeight: number;
5159
+ padTimeDigits: boolean;
5013
5160
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
5014
5161
  P: {};
5015
5162
  B: {};
@@ -5038,6 +5185,10 @@ export declare const UpTimeWheelPicker: {
5038
5185
  type: NumberConstructor;
5039
5186
  default: number;
5040
5187
  };
5188
+ padTimeDigits: {
5189
+ type: BooleanConstructor;
5190
+ default: boolean;
5191
+ };
5041
5192
  }>> & Readonly<{
5042
5193
  onChange?: ((value: TimeWheelPickerValue) => any) | undefined;
5043
5194
  "onUpdate:modelValue"?: ((value: TimeWheelPickerValue) => any) | undefined;
@@ -5047,6 +5198,7 @@ export declare const UpTimeWheelPicker: {
5047
5198
  itemHeight: number;
5048
5199
  viewHeight: number;
5049
5200
  centerItemHeight: number;
5201
+ padTimeDigits: boolean;
5050
5202
  }>;
5051
5203
  __isFragment?: never;
5052
5204
  __isTeleport?: never;
@@ -5072,6 +5224,10 @@ centerItemHeight: {
5072
5224
  type: NumberConstructor;
5073
5225
  default: number;
5074
5226
  };
5227
+ padTimeDigits: {
5228
+ type: BooleanConstructor;
5229
+ default: boolean;
5230
+ };
5075
5231
  }>> & Readonly<{
5076
5232
  onChange?: ((value: TimeWheelPickerValue) => any) | undefined;
5077
5233
  "onUpdate:modelValue"?: ((value: TimeWheelPickerValue) => any) | undefined;
@@ -5084,6 +5240,7 @@ columns: TimeWheelPickerColumn[];
5084
5240
  itemHeight: number;
5085
5241
  viewHeight: number;
5086
5242
  centerItemHeight: number;
5243
+ padTimeDigits: boolean;
5087
5244
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
5088
5245
 
5089
5246
  export declare const UpWaterHeaterTimeEnd: {
@@ -5232,7 +5389,7 @@ export declare const useGlobalI18n: () => {
5232
5389
  };
5233
5390
 
5234
5391
  /**
5235
- * 全屏二级页打开时隐藏宿主原生标题,关闭时恢复;卸载时强制恢复,避免残留隐藏态。
5392
+ * 全屏二级页打开时隐藏宿主原生标题与假标题栏,关闭时恢复;卸载时强制恢复,避免残留隐藏态。
5236
5393
  */
5237
5394
  export declare function useHilinkSubPageTitleVisibility(isSubPage: MaybeRefOrGetter<boolean>): void;
5238
5395
 
@@ -5465,6 +5622,7 @@ export declare const zhCN: {
5465
5622
  placeholderPleaseSelect: string;
5466
5623
  toastMaxTimers: string;
5467
5624
  toastSelectFunction: string;
5625
+ toastStartEndSame: string;
5468
5626
  summary: {
5469
5627
  template: {
5470
5628
  dualToday: string;
@@ -5507,10 +5665,19 @@ export declare const zhCN: {
5507
5665
  titleOff: string;
5508
5666
  previewWillOn: string;
5509
5667
  previewWillOff: string;
5668
+ previewWillOnTomorrow: string;
5669
+ previewWillOffTomorrow: string;
5510
5670
  closeCountdown: string;
5511
5671
  wheelHour: string;
5512
5672
  wheelMinute: string;
5513
5673
  };
5674
+ generalTimeSwitch: {
5675
+ unitHour: string;
5676
+ unitMinute: string;
5677
+ unitSecond: string;
5678
+ subtitleHourMinute: string;
5679
+ subtitleMinuteSecond: string;
5680
+ };
5514
5681
  waterHeaterTimeEnd: {
5515
5682
  cardTitle: string;
5516
5683
  dialogTitle: string;
@@ -5527,6 +5694,7 @@ export declare const zhCN: {
5527
5694
  placeholderOption2: string;
5528
5695
  placeholderOption3: string;
5529
5696
  placeholderOption4: string;
5697
+ more: string;
5530
5698
  };
5531
5699
  commonBannerNew: {
5532
5700
  connect: {