@ailife-dev-vue/uiplus 0.1.43 → 0.1.47

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +104 -25
  2. package/dist/index.mjs +11812 -11767
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -361,8 +361,26 @@ declare const commonBannerNewProps: {
361
361
 
362
362
  declare type CommonInfoCharType = 'int' | 'float' | 'enum';
363
363
 
364
+ /**
365
+ * 一组掩码条件。组内 rules 为 AND;空 rules 永不命中。
366
+ * 组数、组内条数上限与弹框配置画布菜单一致,组件运行时不裁剪。
367
+ */
368
+ export declare type CommonInfoDismissValOption = {
369
+ rules: CommonInfoDismissValRule[];
370
+ };
371
+
372
+ /** 单条掩码条件,形态与 UpPageBarNew `dialogConfigs[].rules` 一致 */
373
+ export declare type CommonInfoDismissValRule = StateConditionRule;
374
+
375
+ /** 单个 enumVal 的浅色 / 深色文案色 */
376
+ export declare type CommonInfoEnumColorPair = {
377
+ light?: string;
378
+ dark?: string;
379
+ };
380
+
364
381
  export declare type CommonInfoEnumItemConfig = CommonInfoItemConfigBase & {
365
- enumColorMap?: Record<string, string>;
382
+ /** key 为 profile enumVal 字符串;按 html.dark 取 light 或 dark */
383
+ enumColorMap?: Record<string, CommonInfoEnumColorPair>;
366
384
  };
367
385
 
368
386
  export declare type CommonInfoIntFloatItemConfig = CommonInfoItemConfigBase & {
@@ -386,6 +404,11 @@ declare type CommonInfoItemConfigBase = {
386
404
  * 已配置有效 sid 且开关为 0 时 value 显示 `- -`;未配置则按正常值显示。
387
405
  */
388
406
  subscribesSwitch?: ProductSubscribe[];
407
+ /**
408
+ * 组合条件掩码:任一组命中(组间 OR)时,该项属性值显示 `--`。
409
+ * 持续命中即保持 `--`,条件失效后恢复正常值。
410
+ */
411
+ dismissValOptions?: CommonInfoDismissValOption[];
389
412
  };
390
413
 
391
414
  export declare type CommonInfoProps = ExtractPropTypes<typeof commonInfoProps>;
@@ -1202,6 +1225,24 @@ declare const generalEnumActionProps: {
1202
1225
  type: BooleanConstructor;
1203
1226
  default: boolean;
1204
1227
  };
1228
+ /**
1229
+ * 状态 1(左侧,对应 status1EnumVal)图标。仅未选中时展示。
1230
+ * 4 项 URL,后缀 off / on / DarkOff / DarkOn;未选中取 off / DarkOff。
1231
+ * 选中(暂停)固定用内置暂停图。未配置或全 custom 时未选中用 Tile_def_off。
1232
+ */
1233
+ status1Icon: {
1234
+ type: PropType<string[]>;
1235
+ default: undefined;
1236
+ };
1237
+ /**
1238
+ * 状态 2(右侧,对应 status2EnumVal)图标。仅未选中时展示。
1239
+ * 4 项 URL,后缀 off / on / DarkOff / DarkOn;未选中取 off / DarkOff。
1240
+ * 选中(暂停)固定用内置暂停图。未配置或全 custom 时未选中用 Tile_def_off。
1241
+ */
1242
+ status2Icon: {
1243
+ type: PropType<string[]>;
1244
+ default: undefined;
1245
+ };
1205
1246
  };
1206
1247
 
1207
1248
  export declare type GeneralEnumControlCommandPayload = HilinkDeviceControlPayload;
@@ -1718,10 +1759,14 @@ export declare interface GeneralScreenFilterElementItemConfig {
1718
1759
  showResetButton?: boolean;
1719
1760
  resetButtonName?: string;
1720
1761
  resetDialogContent?: string;
1721
- tutorialImageUrlZhLight?: string;
1722
- tutorialImageUrlZhDark?: string;
1723
- tutorialImageUrlEnLight?: string;
1724
- tutorialImageUrlEnDark?: string;
1762
+ /** 教程图 URL 列表:中文 + 浅色。默认 1 项;多于 1 项只读第 1 项;空数组表示未配置 */
1763
+ tutorialImageUrlZhLight?: string[];
1764
+ /** 教程图 URL 列表:中文 + 深色。默认 1 项;多于 1 项只读第 1 项;空数组表示未配置 */
1765
+ tutorialImageUrlZhDark?: string[];
1766
+ /** 教程图 URL 列表:英文 + 浅色。默认 1 项;多于 1 项只读第 1 项;空数组表示未配置 */
1767
+ tutorialImageUrlEnLight?: string[];
1768
+ /** 教程图 URL 列表:英文 + 深色。默认 1 项;多于 1 项只读第 1 项;空数组表示未配置 */
1769
+ tutorialImageUrlEnDark?: string[];
1725
1770
  /** 滤芯告警条文案;空则用「展示名 + 默认后缀」 */
1726
1771
  alarmText?: string;
1727
1772
  /** 是否允许进入该滤芯二级详情(列表行与告警条) */
@@ -2131,25 +2176,6 @@ export declare type PageBarNewDialogConfig = {
2131
2176
  dialog: PageBarNewDialogPresentation;
2132
2177
  };
2133
2178
 
2134
- declare type PageBarNewDialogEnumRule = {
2135
- sid: string;
2136
- cid: string;
2137
- type: 'enum' | 'bool';
2138
- prodId?: string;
2139
- enumValues: Array<string | number>;
2140
- };
2141
-
2142
- declare type PageBarNewDialogNumericOperator = '>' | '<' | '=' | '>=' | '<=';
2143
-
2144
- declare type PageBarNewDialogNumericRule = {
2145
- sid: string;
2146
- cid: string;
2147
- type: 'int' | 'float';
2148
- prodId?: string;
2149
- operator: PageBarNewDialogNumericOperator;
2150
- value: number;
2151
- };
2152
-
2153
2179
  export declare type PageBarNewDialogPresentation = {
2154
2180
  type: 'icon-text' | 'title-text';
2155
2181
  /** 与 UpBoolIconCard `icon` 相同:2 或 4 项 URL(on/off/DarkOn/DarkOff) */
@@ -2160,7 +2186,7 @@ export declare type PageBarNewDialogPresentation = {
2160
2186
  text?: string;
2161
2187
  };
2162
2188
 
2163
- export declare type PageBarNewDialogRule = PageBarNewDialogEnumRule | PageBarNewDialogNumericRule;
2189
+ export declare type PageBarNewDialogRule = StateConditionRule;
2164
2190
 
2165
2191
  export declare type PageBarNewEmits = {
2166
2192
  (e: 'first-card-click'): void;
@@ -2502,6 +2528,29 @@ declare const sheetDialogProps: {
2502
2528
  /** 与宿主约定:`showFakeTitleBar(visible)`,二级页显示/隐藏假标题栏。 */
2503
2529
  export declare type ShowFakeTitleBarFn = (visible: boolean) => void;
2504
2530
 
2531
+ declare type StateConditionEnumRule = {
2532
+ sid: string;
2533
+ cid: string;
2534
+ type: 'enum' | 'bool';
2535
+ prodId?: string;
2536
+ enumValues: Array<string | number>;
2537
+ };
2538
+
2539
+ /** 与 UpPageBarNew dialogConfigs.rules 相同的数值比较符 */
2540
+ declare type StateConditionNumericOperator = '>' | '<' | '=' | '>=' | '<=';
2541
+
2542
+ declare type StateConditionNumericRule = {
2543
+ sid: string;
2544
+ cid: string;
2545
+ type: 'int' | 'float';
2546
+ prodId?: string;
2547
+ operator: StateConditionNumericOperator;
2548
+ value: number;
2549
+ };
2550
+
2551
+ /** 单条条件。prodId 仅作配置元数据,不参与匹配 */
2552
+ declare type StateConditionRule = StateConditionEnumRule | StateConditionNumericRule;
2553
+
2505
2554
  export declare type StatisticChartCalendarTab = 'day' | 'week' | 'month' | 'year';
2506
2555
 
2507
2556
  /** 图表数据来源:平均、累计、最高+最低(双系列) */
@@ -5197,12 +5246,22 @@ export declare const UpGeneralEnumAction: {
5197
5246
  type: BooleanConstructor;
5198
5247
  default: boolean;
5199
5248
  };
5249
+ status1Icon: {
5250
+ type: PropType<string[]>;
5251
+ default: undefined;
5252
+ };
5253
+ status2Icon: {
5254
+ type: PropType<string[]>;
5255
+ default: undefined;
5256
+ };
5200
5257
  }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
5201
5258
  subscribes: ProductSubscribe[];
5202
5259
  status1EnumVal: string | number;
5203
5260
  status2EnumVal: string | number;
5204
5261
  pauseEnumVal: string | number;
5205
5262
  showDivider: boolean;
5263
+ status1Icon: string[];
5264
+ status2Icon: string[];
5206
5265
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
5207
5266
  P: {};
5208
5267
  B: {};
@@ -5231,12 +5290,22 @@ export declare const UpGeneralEnumAction: {
5231
5290
  type: BooleanConstructor;
5232
5291
  default: boolean;
5233
5292
  };
5293
+ status1Icon: {
5294
+ type: PropType<string[]>;
5295
+ default: undefined;
5296
+ };
5297
+ status2Icon: {
5298
+ type: PropType<string[]>;
5299
+ default: undefined;
5300
+ };
5234
5301
  }>> & Readonly<{}>, {}, {}, {}, {}, {
5235
5302
  subscribes: ProductSubscribe[];
5236
5303
  status1EnumVal: string | number;
5237
5304
  status2EnumVal: string | number;
5238
5305
  pauseEnumVal: string | number;
5239
5306
  showDivider: boolean;
5307
+ status1Icon: string[];
5308
+ status2Icon: string[];
5240
5309
  }>;
5241
5310
  __isFragment?: never;
5242
5311
  __isTeleport?: never;
@@ -5262,12 +5331,22 @@ showDivider: {
5262
5331
  type: BooleanConstructor;
5263
5332
  default: boolean;
5264
5333
  };
5334
+ status1Icon: {
5335
+ type: PropType<string[]>;
5336
+ default: undefined;
5337
+ };
5338
+ status2Icon: {
5339
+ type: PropType<string[]>;
5340
+ default: undefined;
5341
+ };
5265
5342
  }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
5266
5343
  subscribes: ProductSubscribe[];
5267
5344
  status1EnumVal: string | number;
5268
5345
  status2EnumVal: string | number;
5269
5346
  pauseEnumVal: string | number;
5270
5347
  showDivider: boolean;
5348
+ status1Icon: string[];
5349
+ status2Icon: string[];
5271
5350
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
5272
5351
 
5273
5352
  export declare const UpGeneralEnumControl: {