@ailife-dev-vue/uiplus 0.0.14-snapshot → 0.0.15-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
@@ -421,6 +421,8 @@ export declare interface EnumItem {
421
421
  descCh: string;
422
422
  }
423
423
 
424
+ export declare type EnumStatusCardSize = 'full' | 'half';
425
+
424
426
  export declare type EnumStatusEmits = {
425
427
  (e: 'expanded-change', expanded: boolean): void;
426
428
  };
@@ -432,46 +434,61 @@ declare const enumStatusGaugeProps: {
432
434
  type: StringConstructor;
433
435
  default: string;
434
436
  };
435
- statusColor: {
437
+ /** 圆环中心下行「当前{特征名}」整句,由父组件拼好传入 */
438
+ currentLabel: {
436
439
  type: StringConstructor;
437
440
  default: string;
438
441
  };
439
- subtitle: {
440
- type: StringConstructor;
441
- default: string;
442
+ enumCount: {
443
+ type: NumberConstructor;
444
+ default: number;
442
445
  };
443
- ratio: {
446
+ selectedIndex: {
444
447
  type: NumberConstructor;
445
448
  default: number;
446
449
  };
447
450
  };
448
451
 
452
+ export declare interface EnumStatusItemDescription {
453
+ enumVal: string | number;
454
+ /** L2 i18n key 或直接文案 */
455
+ description: string;
456
+ }
457
+
449
458
  export declare type EnumStatusProps = ExtractPropTypes<typeof enumStatusProps>;
450
459
 
451
460
  declare const enumStatusProps: {
452
- title: {
453
- type: StringConstructor;
454
- default: string;
461
+ subscribes: {
462
+ type: PropType<ProductSubscribe[]>;
463
+ default: () => never[];
455
464
  };
456
- statusText: {
457
- type: StringConstructor;
458
- default: string;
465
+ /** 各枚举值在二级页与圆环同级的描述文案*/
466
+ enumItemDescriptions: {
467
+ type: PropType<EnumStatusItemDescription[]>;
468
+ default: () => never[];
469
+ };
470
+ showResetButton: {
471
+ type: BooleanConstructor;
472
+ default: boolean;
473
+ };
474
+ /** 重置下发锚点,与 subscribes 独立;仅消费首项,须为 bool */
475
+ resetSubscribes: {
476
+ type: PropType<ProductSubscribe[]>;
477
+ default: () => never[];
459
478
  };
460
- statusColor: {
479
+ /** 重置按钮文案,同时作为确认弹窗标题;为空时不展示重置按钮 */
480
+ resetButtonText: {
461
481
  type: StringConstructor;
462
482
  default: string;
463
483
  };
464
- detailSubtitle: {
484
+ /** 重置确认弹窗正文;为空时弹窗仍展示,正文区不渲染 */
485
+ resetDialogContent: {
465
486
  type: StringConstructor;
466
487
  default: string;
467
488
  };
468
- detailRatio: {
469
- type: NumberConstructor;
470
- default: number;
471
- };
472
- disabled: {
473
- type: BooleanConstructor;
474
- default: boolean;
489
+ cardSize: {
490
+ type: PropType<EnumStatusCardSize>;
491
+ default: string;
475
492
  };
476
493
  };
477
494
 
@@ -765,6 +782,25 @@ export declare const enUS: {
765
782
  };
766
783
  rangeValue: string;
767
784
  };
785
+ tableLampNightWake: {
786
+ cardTitle: string;
787
+ aria: {
788
+ back: string;
789
+ };
790
+ field: {
791
+ activePeriod: string;
792
+ activePeriodValue: string;
793
+ startTime: string;
794
+ endTime: string;
795
+ brightness: string;
796
+ };
797
+ detailHint: string;
798
+ timeUnit: {
799
+ hour: string;
800
+ minute: string;
801
+ };
802
+ nextDayPrefix: string;
803
+ };
768
804
  tableLampSleepy: {
769
805
  cardTitle: string;
770
806
  aria: {
@@ -800,6 +836,9 @@ export declare const enUS: {
800
836
  infoTitle: string;
801
837
  statPlaceholder: string;
802
838
  };
839
+ enumStatus: {
840
+ gaugeCurrentLabel: string;
841
+ };
803
842
  lampColour: {
804
843
  cardTitle: string;
805
844
  cardSubtitle: string;
@@ -1781,6 +1820,35 @@ declare const tableLampMorningProps: {
1781
1820
  };
1782
1821
  };
1783
1822
 
1823
+ export declare type TableLampNightWakeCardSize = 'full' | 'half';
1824
+
1825
+ export declare type TableLampNightWakeCommandPayload = HilinkDeviceControlPayload;
1826
+
1827
+ export declare type TableLampNightWakeEmits = {
1828
+ (e: 'expanded-change', expanded: boolean): void;
1829
+ };
1830
+
1831
+ export declare type TableLampNightWakeProps = ExtractPropTypes<typeof tableLampNightWakeProps>;
1832
+
1833
+ declare const tableLampNightWakeProps: {
1834
+ cardSize: {
1835
+ type: PropType<TableLampNightWakeCardSize>;
1836
+ default: string;
1837
+ };
1838
+ title: {
1839
+ type: StringConstructor;
1840
+ default: string;
1841
+ };
1842
+ showDetailHint: {
1843
+ type: BooleanConstructor;
1844
+ default: boolean;
1845
+ };
1846
+ detailHint: {
1847
+ type: StringConstructor;
1848
+ default: string;
1849
+ };
1850
+ };
1851
+
1784
1852
  export declare type TableLampSleepyCardSize = 'full' | 'half';
1785
1853
 
1786
1854
  export declare type TableLampSleepyCommandPayload = HilinkDeviceControlPayload;
@@ -2965,42 +3033,51 @@ readonly recordSettingTime: boolean;
2965
3033
 
2966
3034
  export declare const UpEnumStatus: {
2967
3035
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
2968
- title: {
2969
- type: StringConstructor;
2970
- default: string;
3036
+ subscribes: {
3037
+ type: PropType<ProductSubscribe[]>;
3038
+ default: () => never[];
2971
3039
  };
2972
- statusText: {
2973
- type: StringConstructor;
2974
- default: string;
3040
+ enumItemDescriptions: {
3041
+ type: PropType<EnumStatusItemDescription[]>;
3042
+ default: () => never[];
3043
+ };
3044
+ showResetButton: {
3045
+ type: BooleanConstructor;
3046
+ default: boolean;
3047
+ };
3048
+ resetSubscribes: {
3049
+ type: PropType<ProductSubscribe[]>;
3050
+ default: () => never[];
2975
3051
  };
2976
- statusColor: {
3052
+ resetButtonText: {
2977
3053
  type: StringConstructor;
2978
3054
  default: string;
2979
3055
  };
2980
- detailSubtitle: {
3056
+ resetDialogContent: {
2981
3057
  type: StringConstructor;
2982
3058
  default: string;
2983
3059
  };
2984
- detailRatio: {
2985
- type: NumberConstructor;
2986
- default: number;
2987
- };
2988
- disabled: {
2989
- type: BooleanConstructor;
2990
- default: boolean;
3060
+ cardSize: {
3061
+ type: PropType<EnumStatusCardSize>;
3062
+ default: string;
2991
3063
  };
2992
3064
  }>> & Readonly<{
2993
3065
  "onExpanded-change"?: ((expanded: boolean) => any) | undefined;
2994
3066
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2995
3067
  "expanded-change": (expanded: boolean) => any;
2996
3068
  }, PublicProps, {
2997
- title: string;
2998
- disabled: boolean;
2999
- statusText: string;
3000
- statusColor: string;
3001
- detailSubtitle: string;
3002
- detailRatio: number;
3003
- }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
3069
+ subscribes: ProductSubscribe[];
3070
+ cardSize: EnumStatusCardSize;
3071
+ enumItemDescriptions: EnumStatusItemDescription[];
3072
+ showResetButton: boolean;
3073
+ resetSubscribes: ProductSubscribe[];
3074
+ resetButtonText: string;
3075
+ resetDialogContent: string;
3076
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
3077
+ contentRef: HTMLDivElement;
3078
+ titleRef: HTMLDivElement;
3079
+ statusRef: HTMLDivElement;
3080
+ }, HTMLDivElement, ComponentProvideOptions, {
3004
3081
  P: {};
3005
3082
  B: {};
3006
3083
  D: {};
@@ -3008,79 +3085,89 @@ export declare const UpEnumStatus: {
3008
3085
  M: {};
3009
3086
  Defaults: {};
3010
3087
  }, Readonly<ExtractPropTypes< {
3011
- title: {
3012
- type: StringConstructor;
3013
- default: string;
3088
+ subscribes: {
3089
+ type: PropType<ProductSubscribe[]>;
3090
+ default: () => never[];
3014
3091
  };
3015
- statusText: {
3016
- type: StringConstructor;
3017
- default: string;
3092
+ enumItemDescriptions: {
3093
+ type: PropType<EnumStatusItemDescription[]>;
3094
+ default: () => never[];
3018
3095
  };
3019
- statusColor: {
3096
+ showResetButton: {
3097
+ type: BooleanConstructor;
3098
+ default: boolean;
3099
+ };
3100
+ resetSubscribes: {
3101
+ type: PropType<ProductSubscribe[]>;
3102
+ default: () => never[];
3103
+ };
3104
+ resetButtonText: {
3020
3105
  type: StringConstructor;
3021
3106
  default: string;
3022
3107
  };
3023
- detailSubtitle: {
3108
+ resetDialogContent: {
3024
3109
  type: StringConstructor;
3025
3110
  default: string;
3026
3111
  };
3027
- detailRatio: {
3028
- type: NumberConstructor;
3029
- default: number;
3030
- };
3031
- disabled: {
3032
- type: BooleanConstructor;
3033
- default: boolean;
3112
+ cardSize: {
3113
+ type: PropType<EnumStatusCardSize>;
3114
+ default: string;
3034
3115
  };
3035
3116
  }>> & Readonly<{
3036
3117
  "onExpanded-change"?: ((expanded: boolean) => any) | undefined;
3037
3118
  }>, {}, {}, {}, {}, {
3038
- title: string;
3039
- disabled: boolean;
3040
- statusText: string;
3041
- statusColor: string;
3042
- detailSubtitle: string;
3043
- detailRatio: number;
3119
+ subscribes: ProductSubscribe[];
3120
+ cardSize: EnumStatusCardSize;
3121
+ enumItemDescriptions: EnumStatusItemDescription[];
3122
+ showResetButton: boolean;
3123
+ resetSubscribes: ProductSubscribe[];
3124
+ resetButtonText: string;
3125
+ resetDialogContent: string;
3044
3126
  }>;
3045
3127
  __isFragment?: never;
3046
3128
  __isTeleport?: never;
3047
3129
  __isSuspense?: never;
3048
3130
  } & ComponentOptionsBase<Readonly<ExtractPropTypes< {
3049
- title: {
3050
- type: StringConstructor;
3051
- default: string;
3131
+ subscribes: {
3132
+ type: PropType<ProductSubscribe[]>;
3133
+ default: () => never[];
3052
3134
  };
3053
- statusText: {
3054
- type: StringConstructor;
3055
- default: string;
3135
+ enumItemDescriptions: {
3136
+ type: PropType<EnumStatusItemDescription[]>;
3137
+ default: () => never[];
3138
+ };
3139
+ showResetButton: {
3140
+ type: BooleanConstructor;
3141
+ default: boolean;
3142
+ };
3143
+ resetSubscribes: {
3144
+ type: PropType<ProductSubscribe[]>;
3145
+ default: () => never[];
3056
3146
  };
3057
- statusColor: {
3147
+ resetButtonText: {
3058
3148
  type: StringConstructor;
3059
3149
  default: string;
3060
3150
  };
3061
- detailSubtitle: {
3151
+ resetDialogContent: {
3062
3152
  type: StringConstructor;
3063
3153
  default: string;
3064
3154
  };
3065
- detailRatio: {
3066
- type: NumberConstructor;
3067
- default: number;
3068
- };
3069
- disabled: {
3070
- type: BooleanConstructor;
3071
- default: boolean;
3155
+ cardSize: {
3156
+ type: PropType<EnumStatusCardSize>;
3157
+ default: string;
3072
3158
  };
3073
3159
  }>> & Readonly<{
3074
3160
  "onExpanded-change"?: ((expanded: boolean) => any) | undefined;
3075
3161
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
3076
3162
  "expanded-change": (expanded: boolean) => any;
3077
3163
  }, string, {
3078
- title: string;
3079
- disabled: boolean;
3080
- statusText: string;
3081
- statusColor: string;
3082
- detailSubtitle: string;
3083
- detailRatio: number;
3164
+ subscribes: ProductSubscribe[];
3165
+ cardSize: EnumStatusCardSize;
3166
+ enumItemDescriptions: EnumStatusItemDescription[];
3167
+ showResetButton: boolean;
3168
+ resetSubscribes: ProductSubscribe[];
3169
+ resetButtonText: string;
3170
+ resetDialogContent: string;
3084
3171
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
3085
3172
  $slots: {
3086
3173
  icon?(_: {}): any;
@@ -3093,23 +3180,23 @@ export declare const UpEnumStatusGauge: {
3093
3180
  type: StringConstructor;
3094
3181
  default: string;
3095
3182
  };
3096
- statusColor: {
3183
+ currentLabel: {
3097
3184
  type: StringConstructor;
3098
3185
  default: string;
3099
3186
  };
3100
- subtitle: {
3101
- type: StringConstructor;
3102
- default: string;
3187
+ enumCount: {
3188
+ type: NumberConstructor;
3189
+ default: number;
3103
3190
  };
3104
- ratio: {
3191
+ selectedIndex: {
3105
3192
  type: NumberConstructor;
3106
3193
  default: number;
3107
3194
  };
3108
3195
  }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
3109
3196
  statusText: string;
3110
- subtitle: string;
3111
- statusColor: string;
3112
- ratio: number;
3197
+ currentLabel: string;
3198
+ enumCount: number;
3199
+ selectedIndex: number;
3113
3200
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
3114
3201
  P: {};
3115
3202
  B: {};
@@ -3122,23 +3209,23 @@ export declare const UpEnumStatusGauge: {
3122
3209
  type: StringConstructor;
3123
3210
  default: string;
3124
3211
  };
3125
- statusColor: {
3212
+ currentLabel: {
3126
3213
  type: StringConstructor;
3127
3214
  default: string;
3128
3215
  };
3129
- subtitle: {
3130
- type: StringConstructor;
3131
- default: string;
3216
+ enumCount: {
3217
+ type: NumberConstructor;
3218
+ default: number;
3132
3219
  };
3133
- ratio: {
3220
+ selectedIndex: {
3134
3221
  type: NumberConstructor;
3135
3222
  default: number;
3136
3223
  };
3137
3224
  }>> & Readonly<{}>, {}, {}, {}, {}, {
3138
3225
  statusText: string;
3139
- subtitle: string;
3140
- statusColor: string;
3141
- ratio: number;
3226
+ currentLabel: string;
3227
+ enumCount: number;
3228
+ selectedIndex: number;
3142
3229
  }>;
3143
3230
  __isFragment?: never;
3144
3231
  __isTeleport?: never;
@@ -3148,23 +3235,23 @@ statusText: {
3148
3235
  type: StringConstructor;
3149
3236
  default: string;
3150
3237
  };
3151
- statusColor: {
3238
+ currentLabel: {
3152
3239
  type: StringConstructor;
3153
3240
  default: string;
3154
3241
  };
3155
- subtitle: {
3156
- type: StringConstructor;
3157
- default: string;
3242
+ enumCount: {
3243
+ type: NumberConstructor;
3244
+ default: number;
3158
3245
  };
3159
- ratio: {
3246
+ selectedIndex: {
3160
3247
  type: NumberConstructor;
3161
3248
  default: number;
3162
3249
  };
3163
3250
  }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
3164
3251
  statusText: string;
3165
- subtitle: string;
3166
- statusColor: string;
3167
- ratio: number;
3252
+ currentLabel: string;
3253
+ enumCount: number;
3254
+ selectedIndex: number;
3168
3255
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
3169
3256
 
3170
3257
  export declare const UpFirmwareUpdates: {
@@ -5205,6 +5292,96 @@ title: string;
5205
5292
  cardSize: TableLampMorningCardSize;
5206
5293
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
5207
5294
 
5295
+ export declare const UpTableLampNightWake: {
5296
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
5297
+ cardSize: {
5298
+ type: PropType<TableLampNightWakeCardSize>;
5299
+ default: string;
5300
+ };
5301
+ title: {
5302
+ type: StringConstructor;
5303
+ default: string;
5304
+ };
5305
+ showDetailHint: {
5306
+ type: BooleanConstructor;
5307
+ default: boolean;
5308
+ };
5309
+ detailHint: {
5310
+ type: StringConstructor;
5311
+ default: string;
5312
+ };
5313
+ }>> & Readonly<{
5314
+ "onExpanded-change"?: ((expanded: boolean) => any) | undefined;
5315
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
5316
+ "expanded-change": (expanded: boolean) => any;
5317
+ }, PublicProps, {
5318
+ title: string;
5319
+ cardSize: TableLampNightWakeCardSize;
5320
+ showDetailHint: boolean;
5321
+ detailHint: string;
5322
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
5323
+ P: {};
5324
+ B: {};
5325
+ D: {};
5326
+ C: {};
5327
+ M: {};
5328
+ Defaults: {};
5329
+ }, Readonly<ExtractPropTypes< {
5330
+ cardSize: {
5331
+ type: PropType<TableLampNightWakeCardSize>;
5332
+ default: string;
5333
+ };
5334
+ title: {
5335
+ type: StringConstructor;
5336
+ default: string;
5337
+ };
5338
+ showDetailHint: {
5339
+ type: BooleanConstructor;
5340
+ default: boolean;
5341
+ };
5342
+ detailHint: {
5343
+ type: StringConstructor;
5344
+ default: string;
5345
+ };
5346
+ }>> & Readonly<{
5347
+ "onExpanded-change"?: ((expanded: boolean) => any) | undefined;
5348
+ }>, {}, {}, {}, {}, {
5349
+ title: string;
5350
+ cardSize: TableLampNightWakeCardSize;
5351
+ showDetailHint: boolean;
5352
+ detailHint: string;
5353
+ }>;
5354
+ __isFragment?: never;
5355
+ __isTeleport?: never;
5356
+ __isSuspense?: never;
5357
+ } & ComponentOptionsBase<Readonly<ExtractPropTypes< {
5358
+ cardSize: {
5359
+ type: PropType<TableLampNightWakeCardSize>;
5360
+ default: string;
5361
+ };
5362
+ title: {
5363
+ type: StringConstructor;
5364
+ default: string;
5365
+ };
5366
+ showDetailHint: {
5367
+ type: BooleanConstructor;
5368
+ default: boolean;
5369
+ };
5370
+ detailHint: {
5371
+ type: StringConstructor;
5372
+ default: string;
5373
+ };
5374
+ }>> & Readonly<{
5375
+ "onExpanded-change"?: ((expanded: boolean) => any) | undefined;
5376
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
5377
+ "expanded-change": (expanded: boolean) => any;
5378
+ }, string, {
5379
+ title: string;
5380
+ cardSize: TableLampNightWakeCardSize;
5381
+ showDetailHint: boolean;
5382
+ detailHint: string;
5383
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
5384
+
5208
5385
  export declare const UpTableLampSleepy: {
5209
5386
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
5210
5387
  cardSize: {
@@ -6026,6 +6203,25 @@ export declare const zhCN: {
6026
6203
  };
6027
6204
  rangeValue: string;
6028
6205
  };
6206
+ tableLampNightWake: {
6207
+ cardTitle: string;
6208
+ aria: {
6209
+ back: string;
6210
+ };
6211
+ field: {
6212
+ activePeriod: string;
6213
+ activePeriodValue: string;
6214
+ startTime: string;
6215
+ endTime: string;
6216
+ brightness: string;
6217
+ };
6218
+ detailHint: string;
6219
+ timeUnit: {
6220
+ hour: string;
6221
+ minute: string;
6222
+ };
6223
+ nextDayPrefix: string;
6224
+ };
6029
6225
  tableLampSleepy: {
6030
6226
  cardTitle: string;
6031
6227
  aria: {
@@ -6061,6 +6257,9 @@ export declare const zhCN: {
6061
6257
  infoTitle: string;
6062
6258
  statPlaceholder: string;
6063
6259
  };
6260
+ enumStatus: {
6261
+ gaugeCurrentLabel: string;
6262
+ };
6064
6263
  lampColour: {
6065
6264
  cardTitle: string;
6066
6265
  cardSubtitle: string;