@ailife-dev-vue/uiplus 0.0.15-snapshot → 0.0.16-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
@@ -423,6 +423,11 @@ export declare interface EnumItem {
423
423
 
424
424
  export declare type EnumStatusCardSize = 'full' | 'half';
425
425
 
426
+ export declare interface EnumStatusConfig {
427
+ status: string | number;
428
+ enumDesc: string;
429
+ }
430
+
426
431
  export declare type EnumStatusEmits = {
427
432
  (e: 'expanded-change', expanded: boolean): void;
428
433
  };
@@ -449,12 +454,6 @@ declare const enumStatusGaugeProps: {
449
454
  };
450
455
  };
451
456
 
452
- export declare interface EnumStatusItemDescription {
453
- enumVal: string | number;
454
- /** L2 i18n key 或直接文案 */
455
- description: string;
456
- }
457
-
458
457
  export declare type EnumStatusProps = ExtractPropTypes<typeof enumStatusProps>;
459
458
 
460
459
  declare const enumStatusProps: {
@@ -462,27 +461,27 @@ declare const enumStatusProps: {
462
461
  type: PropType<ProductSubscribe[]>;
463
462
  default: () => never[];
464
463
  };
465
- /** 各枚举值在二级页与圆环同级的描述文案*/
466
- enumItemDescriptions: {
467
- type: PropType<EnumStatusItemDescription[]>;
464
+ /** 各枚举值在二级页与圆环同级的描述文案 */
465
+ enumStatusConfigs: {
466
+ type: PropType<EnumStatusConfig[]>;
468
467
  default: () => never[];
469
468
  };
470
- showResetButton: {
469
+ showReset: {
471
470
  type: BooleanConstructor;
472
471
  default: boolean;
473
472
  };
474
473
  /** 重置下发锚点,与 subscribes 独立;仅消费首项,须为 bool */
475
- resetSubscribes: {
474
+ bindData: {
476
475
  type: PropType<ProductSubscribe[]>;
477
476
  default: () => never[];
478
477
  };
479
478
  /** 重置按钮文案,同时作为确认弹窗标题;为空时不展示重置按钮 */
480
- resetButtonText: {
479
+ showBtnText: {
481
480
  type: StringConstructor;
482
481
  default: string;
483
482
  };
484
483
  /** 重置确认弹窗正文;为空时弹窗仍展示,正文区不渲染 */
485
- resetDialogContent: {
484
+ showDialogText: {
486
485
  type: StringConstructor;
487
486
  default: string;
488
487
  };
@@ -714,6 +713,7 @@ export declare const enUS: {
714
713
  };
715
714
  generalWarn: {
716
715
  detailTitle: string;
716
+ ariaBack: string;
717
717
  faultReason: string;
718
718
  solution: string;
719
719
  servicePhone: string;
@@ -1299,6 +1299,26 @@ declare const generalTimeSwitchProps: {
1299
1299
 
1300
1300
  declare type GeneralTimeSwitchWheelUnit = 'hourMinute' | 'minuteSecond';
1301
1301
 
1302
+ export declare interface GeneralWarnConfig {
1303
+ /** 须为 faultDetection 或 commonFaultDetection */
1304
+ sid: string;
1305
+ cid: string;
1306
+ /** 与 inject state 当前值字符串比较 */
1307
+ enumVal: string | number;
1308
+ /** 故障描述文案 */
1309
+ description?: string;
1310
+ /** 为 true 时可点击进入二级页;默认 false */
1311
+ isClickable?: boolean;
1312
+ /** 故障原因 */
1313
+ faultReason?: string;
1314
+ /** 解决办法;`@` 渲染为换行 */
1315
+ solution?: string;
1316
+ /** 服务电话 */
1317
+ servicePhone?: string;
1318
+ /** 购买链接 */
1319
+ purchaseLink?: string;
1320
+ }
1321
+
1302
1322
  export declare type GeneralWarnEmits = {
1303
1323
  (e: 'expanded-change', expanded: boolean): void;
1304
1324
  };
@@ -1306,31 +1326,10 @@ export declare type GeneralWarnEmits = {
1306
1326
  export declare type GeneralWarnProps = ExtractPropTypes<typeof generalWarnProps>;
1307
1327
 
1308
1328
  declare const generalWarnProps: {
1309
- /** 横幅与二级页顶部的故障描述文案 */
1310
- description: {
1311
- type: StringConstructor;
1312
- default: string;
1313
- };
1314
- /** 为 true 时可点击进入二级页 */
1315
- isClickable: {
1316
- type: BooleanConstructor;
1317
- default: boolean;
1318
- };
1319
- faultReason: {
1320
- type: StringConstructor;
1321
- default: string;
1322
- };
1323
- solution: {
1324
- type: StringConstructor;
1325
- default: string;
1326
- };
1327
- servicePhone: {
1328
- type: StringConstructor;
1329
- default: string;
1330
- };
1331
- purchaseLink: {
1332
- type: StringConstructor;
1333
- default: string;
1329
+ /** 各枚举值独立配置;state 命中 sid/cid/enumVal 时展示对应文案 */
1330
+ enumConfigs: {
1331
+ type: PropType<GeneralWarnConfig[]>;
1332
+ default: () => never[];
1334
1333
  };
1335
1334
  };
1336
1335
 
@@ -1630,7 +1629,7 @@ export declare function resolveProdHostText(resolveKey: (k: string, fb?: string)
1630
1629
 
1631
1630
  export declare type SecondaryZone = 'slider' | 'list' | 'schedule';
1632
1631
 
1633
- /** 调用宿主注入的 `window.hilink._deviceControlInner`;无实现时为 no-op */
1632
+ /** 调用宿主注入的 `window.hilink._deviceControlInner`;无实现时为 no-op */
1634
1633
  export declare function sendHilinkDeviceControl(payload: HilinkDeviceControlPayload): void;
1635
1634
 
1636
1635
  export declare interface Service {
@@ -1645,9 +1644,6 @@ export declare function setHilinkTitleVisible(visible: boolean, callbackName?: s
1645
1644
 
1646
1645
  export declare function setShowFakeTitleBar(visible: boolean): void;
1647
1646
 
1648
- /** 写入 `state[sid][cid]`;若 `state[sid]` 尚非对象则置为 `{ [cid]: value }`。 */
1649
- export declare const setStateValue: (state: ProductState, sid: string, cid: string, value: unknown) => void;
1650
-
1651
1647
  export declare type SheetDialogEmits = {
1652
1648
  (e: 'cancel'): void;
1653
1649
  (e: 'confirm'): void;
@@ -1778,6 +1774,9 @@ export declare type StatusBarValue = StatusBarBinaryState;
1778
1774
  /** 订阅组件库内 `sendHilinkDeviceControl` 的下发事件;返回取消订阅函数。 */
1779
1775
  export declare function subscribeHilinkDeviceControl(listener: HilinkDispatchListener): () => void;
1780
1776
 
1777
+ /** 调用宿主 `window.updateUI` 同步 inject state;无实现时为 no-op。 */
1778
+ export declare function syncDeviceUIState(payload: HilinkDeviceControlPayload): void;
1779
+
1781
1780
  export declare type TableLampFadeTimeCardSize = 'full' | 'half';
1782
1781
 
1783
1782
  export declare type TableLampFadeTimeCommandPayload = HilinkDeviceControlPayload;
@@ -2981,6 +2980,9 @@ theme: "dark" | "light";
2981
2980
  };
2982
2981
  }) & Plugin_2;
2983
2982
 
2983
+ /** 与宿主约定:`updateUI({ [sid]: { [cid]: value } })` 同步 inject 设备 state。 */
2984
+ export declare type UpdateUIFn = (payload: Record<string, Record<string, unknown>>) => void;
2985
+
2984
2986
  export declare const UpDelay: {
2985
2987
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
2986
2988
  readonly recordSettingTime: {
@@ -3037,23 +3039,23 @@ export declare const UpEnumStatus: {
3037
3039
  type: PropType<ProductSubscribe[]>;
3038
3040
  default: () => never[];
3039
3041
  };
3040
- enumItemDescriptions: {
3041
- type: PropType<EnumStatusItemDescription[]>;
3042
+ enumStatusConfigs: {
3043
+ type: PropType<EnumStatusConfig[]>;
3042
3044
  default: () => never[];
3043
3045
  };
3044
- showResetButton: {
3046
+ showReset: {
3045
3047
  type: BooleanConstructor;
3046
3048
  default: boolean;
3047
3049
  };
3048
- resetSubscribes: {
3050
+ bindData: {
3049
3051
  type: PropType<ProductSubscribe[]>;
3050
3052
  default: () => never[];
3051
3053
  };
3052
- resetButtonText: {
3054
+ showBtnText: {
3053
3055
  type: StringConstructor;
3054
3056
  default: string;
3055
3057
  };
3056
- resetDialogContent: {
3058
+ showDialogText: {
3057
3059
  type: StringConstructor;
3058
3060
  default: string;
3059
3061
  };
@@ -3068,11 +3070,11 @@ export declare const UpEnumStatus: {
3068
3070
  }, PublicProps, {
3069
3071
  subscribes: ProductSubscribe[];
3070
3072
  cardSize: EnumStatusCardSize;
3071
- enumItemDescriptions: EnumStatusItemDescription[];
3072
- showResetButton: boolean;
3073
- resetSubscribes: ProductSubscribe[];
3074
- resetButtonText: string;
3075
- resetDialogContent: string;
3073
+ enumStatusConfigs: EnumStatusConfig[];
3074
+ showReset: boolean;
3075
+ bindData: ProductSubscribe[];
3076
+ showBtnText: string;
3077
+ showDialogText: string;
3076
3078
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
3077
3079
  contentRef: HTMLDivElement;
3078
3080
  titleRef: HTMLDivElement;
@@ -3089,23 +3091,23 @@ export declare const UpEnumStatus: {
3089
3091
  type: PropType<ProductSubscribe[]>;
3090
3092
  default: () => never[];
3091
3093
  };
3092
- enumItemDescriptions: {
3093
- type: PropType<EnumStatusItemDescription[]>;
3094
+ enumStatusConfigs: {
3095
+ type: PropType<EnumStatusConfig[]>;
3094
3096
  default: () => never[];
3095
3097
  };
3096
- showResetButton: {
3098
+ showReset: {
3097
3099
  type: BooleanConstructor;
3098
3100
  default: boolean;
3099
3101
  };
3100
- resetSubscribes: {
3102
+ bindData: {
3101
3103
  type: PropType<ProductSubscribe[]>;
3102
3104
  default: () => never[];
3103
3105
  };
3104
- resetButtonText: {
3106
+ showBtnText: {
3105
3107
  type: StringConstructor;
3106
3108
  default: string;
3107
3109
  };
3108
- resetDialogContent: {
3110
+ showDialogText: {
3109
3111
  type: StringConstructor;
3110
3112
  default: string;
3111
3113
  };
@@ -3118,11 +3120,11 @@ export declare const UpEnumStatus: {
3118
3120
  }>, {}, {}, {}, {}, {
3119
3121
  subscribes: ProductSubscribe[];
3120
3122
  cardSize: EnumStatusCardSize;
3121
- enumItemDescriptions: EnumStatusItemDescription[];
3122
- showResetButton: boolean;
3123
- resetSubscribes: ProductSubscribe[];
3124
- resetButtonText: string;
3125
- resetDialogContent: string;
3123
+ enumStatusConfigs: EnumStatusConfig[];
3124
+ showReset: boolean;
3125
+ bindData: ProductSubscribe[];
3126
+ showBtnText: string;
3127
+ showDialogText: string;
3126
3128
  }>;
3127
3129
  __isFragment?: never;
3128
3130
  __isTeleport?: never;
@@ -3132,23 +3134,23 @@ subscribes: {
3132
3134
  type: PropType<ProductSubscribe[]>;
3133
3135
  default: () => never[];
3134
3136
  };
3135
- enumItemDescriptions: {
3136
- type: PropType<EnumStatusItemDescription[]>;
3137
+ enumStatusConfigs: {
3138
+ type: PropType<EnumStatusConfig[]>;
3137
3139
  default: () => never[];
3138
3140
  };
3139
- showResetButton: {
3141
+ showReset: {
3140
3142
  type: BooleanConstructor;
3141
3143
  default: boolean;
3142
3144
  };
3143
- resetSubscribes: {
3145
+ bindData: {
3144
3146
  type: PropType<ProductSubscribe[]>;
3145
3147
  default: () => never[];
3146
3148
  };
3147
- resetButtonText: {
3149
+ showBtnText: {
3148
3150
  type: StringConstructor;
3149
3151
  default: string;
3150
3152
  };
3151
- resetDialogContent: {
3153
+ showDialogText: {
3152
3154
  type: StringConstructor;
3153
3155
  default: string;
3154
3156
  };
@@ -3163,11 +3165,11 @@ default: string;
3163
3165
  }, string, {
3164
3166
  subscribes: ProductSubscribe[];
3165
3167
  cardSize: EnumStatusCardSize;
3166
- enumItemDescriptions: EnumStatusItemDescription[];
3167
- showResetButton: boolean;
3168
- resetSubscribes: ProductSubscribe[];
3169
- resetButtonText: string;
3170
- resetDialogContent: string;
3168
+ enumStatusConfigs: EnumStatusConfig[];
3169
+ showReset: boolean;
3170
+ bindData: ProductSubscribe[];
3171
+ showBtnText: string;
3172
+ showDialogText: string;
3171
3173
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
3172
3174
  $slots: {
3173
3175
  icon?(_: {}): any;
@@ -4183,42 +4185,19 @@ readonly wheelUnit: GeneralTimeSwitchWheelUnit;
4183
4185
 
4184
4186
  export declare const UpGeneralWarn: {
4185
4187
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
4186
- description: {
4187
- type: StringConstructor;
4188
- default: string;
4189
- };
4190
- isClickable: {
4191
- type: BooleanConstructor;
4192
- default: boolean;
4193
- };
4194
- faultReason: {
4195
- type: StringConstructor;
4196
- default: string;
4197
- };
4198
- solution: {
4199
- type: StringConstructor;
4200
- default: string;
4201
- };
4202
- servicePhone: {
4203
- type: StringConstructor;
4204
- default: string;
4205
- };
4206
- purchaseLink: {
4207
- type: StringConstructor;
4208
- default: string;
4188
+ enumConfigs: {
4189
+ type: PropType<GeneralWarnConfig[]>;
4190
+ default: () => never[];
4209
4191
  };
4210
4192
  }>> & Readonly<{
4211
4193
  "onExpanded-change"?: ((expanded: boolean) => any) | undefined;
4212
4194
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
4213
4195
  "expanded-change": (expanded: boolean) => any;
4214
4196
  }, PublicProps, {
4215
- description: string;
4216
- isClickable: boolean;
4217
- faultReason: string;
4218
- solution: string;
4219
- servicePhone: string;
4220
- purchaseLink: string;
4221
- }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
4197
+ enumConfigs: GeneralWarnConfig[];
4198
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
4199
+ stripRef: HTMLDivElement;
4200
+ }, HTMLDivElement, ComponentProvideOptions, {
4222
4201
  P: {};
4223
4202
  B: {};
4224
4203
  D: {};
@@ -4226,79 +4205,29 @@ export declare const UpGeneralWarn: {
4226
4205
  M: {};
4227
4206
  Defaults: {};
4228
4207
  }, Readonly<ExtractPropTypes< {
4229
- description: {
4230
- type: StringConstructor;
4231
- default: string;
4232
- };
4233
- isClickable: {
4234
- type: BooleanConstructor;
4235
- default: boolean;
4236
- };
4237
- faultReason: {
4238
- type: StringConstructor;
4239
- default: string;
4240
- };
4241
- solution: {
4242
- type: StringConstructor;
4243
- default: string;
4244
- };
4245
- servicePhone: {
4246
- type: StringConstructor;
4247
- default: string;
4248
- };
4249
- purchaseLink: {
4250
- type: StringConstructor;
4251
- default: string;
4208
+ enumConfigs: {
4209
+ type: PropType<GeneralWarnConfig[]>;
4210
+ default: () => never[];
4252
4211
  };
4253
4212
  }>> & Readonly<{
4254
4213
  "onExpanded-change"?: ((expanded: boolean) => any) | undefined;
4255
4214
  }>, {}, {}, {}, {}, {
4256
- description: string;
4257
- isClickable: boolean;
4258
- faultReason: string;
4259
- solution: string;
4260
- servicePhone: string;
4261
- purchaseLink: string;
4215
+ enumConfigs: GeneralWarnConfig[];
4262
4216
  }>;
4263
4217
  __isFragment?: never;
4264
4218
  __isTeleport?: never;
4265
4219
  __isSuspense?: never;
4266
4220
  } & ComponentOptionsBase<Readonly<ExtractPropTypes< {
4267
- description: {
4268
- type: StringConstructor;
4269
- default: string;
4270
- };
4271
- isClickable: {
4272
- type: BooleanConstructor;
4273
- default: boolean;
4274
- };
4275
- faultReason: {
4276
- type: StringConstructor;
4277
- default: string;
4278
- };
4279
- solution: {
4280
- type: StringConstructor;
4281
- default: string;
4282
- };
4283
- servicePhone: {
4284
- type: StringConstructor;
4285
- default: string;
4286
- };
4287
- purchaseLink: {
4288
- type: StringConstructor;
4289
- default: string;
4221
+ enumConfigs: {
4222
+ type: PropType<GeneralWarnConfig[]>;
4223
+ default: () => never[];
4290
4224
  };
4291
4225
  }>> & Readonly<{
4292
4226
  "onExpanded-change"?: ((expanded: boolean) => any) | undefined;
4293
4227
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
4294
4228
  "expanded-change": (expanded: boolean) => any;
4295
4229
  }, string, {
4296
- description: string;
4297
- isClickable: boolean;
4298
- faultReason: string;
4299
- solution: string;
4300
- servicePhone: string;
4301
- purchaseLink: string;
4230
+ enumConfigs: GeneralWarnConfig[];
4302
4231
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
4303
4232
 
4304
4233
  export declare const UpLampCCT: {
@@ -5835,14 +5764,6 @@ declare interface UseNumericInputDialogOptions {
5835
5764
  invalidText?: MaybeRef<string | undefined>;
5836
5765
  }
5837
5766
 
5838
- /**
5839
- * 在任意子组件中使用:对 inject 到的设备 `state` 按与 `getStateValue` 相同规则写入嵌套路径 `state[sid][cid]`。
5840
- * 返回 `false` 表示当前无注入或目标非法。
5841
- */
5842
- export declare function usePatchInjectedDeviceInfoState(): {
5843
- patchInjectedStateValue: (sid: string, cid: string, value: unknown) => boolean;
5844
- };
5845
-
5846
5767
  /**
5847
5768
  * 将主订阅解析为卡片标题展示文案(通过宿主 `resolveTextByKey` 查 `prodId.sid.cid`)。
5848
5769
  */
@@ -6135,6 +6056,7 @@ export declare const zhCN: {
6135
6056
  };
6136
6057
  generalWarn: {
6137
6058
  detailTitle: string;
6059
+ ariaBack: string;
6138
6060
  faultReason: string;
6139
6061
  solution: string;
6140
6062
  servicePhone: string;