@ailife-dev-vue/uiplus 0.1.44 → 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 +69 -25
  2. package/dist/index.mjs +12870 -12783
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -372,8 +372,15 @@ export declare type CommonInfoDismissValOption = {
372
372
  /** 单条掩码条件,形态与 UpPageBarNew `dialogConfigs[].rules` 一致 */
373
373
  export declare type CommonInfoDismissValRule = StateConditionRule;
374
374
 
375
+ /** 单个 enumVal 的浅色 / 深色文案色 */
376
+ export declare type CommonInfoEnumColorPair = {
377
+ light?: string;
378
+ dark?: string;
379
+ };
380
+
375
381
  export declare type CommonInfoEnumItemConfig = CommonInfoItemConfigBase & {
376
- enumColorMap?: Record<string, string>;
382
+ /** key 为 profile enumVal 字符串;按 html.dark 取 light 或 dark */
383
+ enumColorMap?: Record<string, CommonInfoEnumColorPair>;
377
384
  };
378
385
 
379
386
  export declare type CommonInfoIntFloatItemConfig = CommonInfoItemConfigBase & {
@@ -1134,6 +1141,7 @@ declare const generalCombinedDeliveryProps: {
1134
1141
  type: BooleanConstructor;
1135
1142
  default: boolean;
1136
1143
  };
1144
+ /** 一级瓷片已配置项按本数组顺序排在前面;未出现的可见项按 profile enumList 接在后面。空数组时整表按 enumList */
1137
1145
  modeOptionConfigs: {
1138
1146
  type: PropType<GeneralCombinedDeliveryModeOptionConfig[]>;
1139
1147
  default: () => never[];
@@ -1217,6 +1225,24 @@ declare const generalEnumActionProps: {
1217
1225
  type: BooleanConstructor;
1218
1226
  default: boolean;
1219
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
+ };
1220
1246
  };
1221
1247
 
1222
1248
  export declare type GeneralEnumControlCommandPayload = HilinkDeviceControlPayload;
@@ -1375,6 +1401,8 @@ export declare type GeneralEnumTileDisplayItem = {
1375
1401
  export declare type GeneralEnumTileOptionConfig = {
1376
1402
  enumVal: string | number;
1377
1403
  visible?: boolean;
1404
+ /** 为 true 时该项进入「更多」下拉;不因此从主栅格移除 */
1405
+ more?: boolean;
1378
1406
  /** 可选;2 或 4 项 URL,后缀 on/off/DarkOn/DarkOff(2 项时为 on+DarkOn 或 off+DarkOff,缺对镜像补齐);全 `custom` 或未配置时用内置默认图标 */
1379
1407
  icons?: string[];
1380
1408
  enableOpenDialog?: boolean;
@@ -1406,14 +1434,11 @@ declare const generalEnumTileProps: {
1406
1434
  type: PropType<string | number>;
1407
1435
  default: string;
1408
1436
  };
1437
+ /** 主栅格按本数组顺序排列;`more: true` 的项同时按相对顺序进入「更多」下拉,且不因此离开主栅格。空数组时主栅格按 enumList,且无「更多」 */
1409
1438
  enumOptionConfigs: {
1410
1439
  type: PropType<GeneralEnumTileOptionConfig[]>;
1411
1440
  default: () => never[];
1412
1441
  };
1413
- moreEnumOptionConfigs: {
1414
- type: PropType<GeneralEnumTileOptionConfig[]>;
1415
- default: () => never[];
1416
- };
1417
1442
  /** 是否在标题旁展示说明入口;为 true 时始终渲染图标 */
1418
1443
  showInfo: {
1419
1444
  type: BooleanConstructor;
@@ -1665,6 +1690,7 @@ declare const generalModeProps: {
1665
1690
  default: string;
1666
1691
  validator: (v: string) => v is "grid" | "list";
1667
1692
  };
1693
+ /** 已配置项按本数组顺序排在前面;未出现的项按 profile enumList 接在后面。空数组时整表按 enumList */
1668
1694
  modeOptionConfigs: {
1669
1695
  type: PropType<GeneralModeOptionConfig[]>;
1670
1696
  default: () => never[];
@@ -1733,10 +1759,14 @@ export declare interface GeneralScreenFilterElementItemConfig {
1733
1759
  showResetButton?: boolean;
1734
1760
  resetButtonName?: string;
1735
1761
  resetDialogContent?: string;
1736
- tutorialImageUrlZhLight?: string;
1737
- tutorialImageUrlZhDark?: string;
1738
- tutorialImageUrlEnLight?: string;
1739
- 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[];
1740
1770
  /** 滤芯告警条文案;空则用「展示名 + 默认后缀」 */
1741
1771
  alarmText?: string;
1742
1772
  /** 是否允许进入该滤芯二级详情(列表行与告警条) */
@@ -5216,12 +5246,22 @@ export declare const UpGeneralEnumAction: {
5216
5246
  type: BooleanConstructor;
5217
5247
  default: boolean;
5218
5248
  };
5249
+ status1Icon: {
5250
+ type: PropType<string[]>;
5251
+ default: undefined;
5252
+ };
5253
+ status2Icon: {
5254
+ type: PropType<string[]>;
5255
+ default: undefined;
5256
+ };
5219
5257
  }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
5220
5258
  subscribes: ProductSubscribe[];
5221
5259
  status1EnumVal: string | number;
5222
5260
  status2EnumVal: string | number;
5223
5261
  pauseEnumVal: string | number;
5224
5262
  showDivider: boolean;
5263
+ status1Icon: string[];
5264
+ status2Icon: string[];
5225
5265
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
5226
5266
  P: {};
5227
5267
  B: {};
@@ -5250,12 +5290,22 @@ export declare const UpGeneralEnumAction: {
5250
5290
  type: BooleanConstructor;
5251
5291
  default: boolean;
5252
5292
  };
5293
+ status1Icon: {
5294
+ type: PropType<string[]>;
5295
+ default: undefined;
5296
+ };
5297
+ status2Icon: {
5298
+ type: PropType<string[]>;
5299
+ default: undefined;
5300
+ };
5253
5301
  }>> & Readonly<{}>, {}, {}, {}, {}, {
5254
5302
  subscribes: ProductSubscribe[];
5255
5303
  status1EnumVal: string | number;
5256
5304
  status2EnumVal: string | number;
5257
5305
  pauseEnumVal: string | number;
5258
5306
  showDivider: boolean;
5307
+ status1Icon: string[];
5308
+ status2Icon: string[];
5259
5309
  }>;
5260
5310
  __isFragment?: never;
5261
5311
  __isTeleport?: never;
@@ -5281,12 +5331,22 @@ showDivider: {
5281
5331
  type: BooleanConstructor;
5282
5332
  default: boolean;
5283
5333
  };
5334
+ status1Icon: {
5335
+ type: PropType<string[]>;
5336
+ default: undefined;
5337
+ };
5338
+ status2Icon: {
5339
+ type: PropType<string[]>;
5340
+ default: undefined;
5341
+ };
5284
5342
  }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
5285
5343
  subscribes: ProductSubscribe[];
5286
5344
  status1EnumVal: string | number;
5287
5345
  status2EnumVal: string | number;
5288
5346
  pauseEnumVal: string | number;
5289
5347
  showDivider: boolean;
5348
+ status1Icon: string[];
5349
+ status2Icon: string[];
5290
5350
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
5291
5351
 
5292
5352
  export declare const UpGeneralEnumControl: {
@@ -5931,10 +5991,6 @@ export declare const UpGeneralEnumTile: {
5931
5991
  type: PropType<GeneralEnumTileOptionConfig[]>;
5932
5992
  default: () => never[];
5933
5993
  };
5934
- moreEnumOptionConfigs: {
5935
- type: PropType<GeneralEnumTileOptionConfig[]>;
5936
- default: () => never[];
5937
- };
5938
5994
  showInfo: {
5939
5995
  type: BooleanConstructor;
5940
5996
  default: boolean;
@@ -5952,9 +6008,7 @@ export declare const UpGeneralEnumTile: {
5952
6008
  invertEnabled: boolean;
5953
6009
  invertEnumValue: string | number;
5954
6010
  enumOptionConfigs: GeneralEnumTileOptionConfig[];
5955
- moreEnumOptionConfigs: GeneralEnumTileOptionConfig[];
5956
6011
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
5957
- moreDropdownRef: HTMLDivElement;
5958
6012
  dropzoneRef: HTMLDivElement;
5959
6013
  }, HTMLDivElement, ComponentProvideOptions, {
5960
6014
  P: {};
@@ -5988,10 +6042,6 @@ export declare const UpGeneralEnumTile: {
5988
6042
  type: PropType<GeneralEnumTileOptionConfig[]>;
5989
6043
  default: () => never[];
5990
6044
  };
5991
- moreEnumOptionConfigs: {
5992
- type: PropType<GeneralEnumTileOptionConfig[]>;
5993
- default: () => never[];
5994
- };
5995
6045
  showInfo: {
5996
6046
  type: BooleanConstructor;
5997
6047
  default: boolean;
@@ -6009,7 +6059,6 @@ export declare const UpGeneralEnumTile: {
6009
6059
  invertEnabled: boolean;
6010
6060
  invertEnumValue: string | number;
6011
6061
  enumOptionConfigs: GeneralEnumTileOptionConfig[];
6012
- moreEnumOptionConfigs: GeneralEnumTileOptionConfig[];
6013
6062
  }>;
6014
6063
  __isFragment?: never;
6015
6064
  __isTeleport?: never;
@@ -6039,10 +6088,6 @@ enumOptionConfigs: {
6039
6088
  type: PropType<GeneralEnumTileOptionConfig[]>;
6040
6089
  default: () => never[];
6041
6090
  };
6042
- moreEnumOptionConfigs: {
6043
- type: PropType<GeneralEnumTileOptionConfig[]>;
6044
- default: () => never[];
6045
- };
6046
6091
  showInfo: {
6047
6092
  type: BooleanConstructor;
6048
6093
  default: boolean;
@@ -6060,7 +6105,6 @@ showTitle: boolean;
6060
6105
  invertEnabled: boolean;
6061
6106
  invertEnumValue: string | number;
6062
6107
  enumOptionConfigs: GeneralEnumTileOptionConfig[];
6063
- moreEnumOptionConfigs: GeneralEnumTileOptionConfig[];
6064
6108
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
6065
6109
  $slots: {
6066
6110
  default?(_: {}): any;