@ailife-dev-vue/uiplus 0.0.5 → 0.0.7-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
@@ -22,30 +22,22 @@ import { VNodeProps } from 'vue';
22
22
 
23
23
  export declare type ActionStatusbarCommandPayload = HilinkDeviceControlPayload;
24
24
 
25
- declare interface ActionStatusbarConfirmDialogConfig {
25
+ export declare interface ActionStatusbarConfirmDialogConfig {
26
26
  enabled?: boolean;
27
- /** 仅支持 i18n key,不支持直接传展示文案 */
27
+ /** 仅支持 i18n key,不支持直接传展示文案;0/1 点击共用 */
28
28
  content?: string;
29
29
  }
30
30
 
31
31
  export declare type ActionStatusbarProps = ExtractPropTypes<typeof actionStatusbarProps>;
32
32
 
33
33
  declare const actionStatusbarProps: {
34
- subscribes: {
34
+ subscribesCenter: {
35
35
  type: PropType<ProductSubscribe[]>;
36
36
  default: () => never[];
37
37
  };
38
- status: {
39
- type: PropType<ActionStatusbarState>;
40
- default: number;
41
- };
42
- showSecondStatus: {
43
- type: BooleanConstructor;
44
- default: boolean;
45
- };
46
- secondStatus: {
47
- type: PropType<ActionStatusbarState>;
48
- default: undefined;
38
+ statusConfigs: {
39
+ type: PropType<ActionStatusbarStatusConfig[]>;
40
+ default: () => never[];
49
41
  };
50
42
  showMiddle: {
51
43
  type: BooleanConstructor;
@@ -55,14 +47,20 @@ declare const actionStatusbarProps: {
55
47
  type: BooleanConstructor;
56
48
  default: boolean;
57
49
  };
58
- actionConfirmDialogs: {
59
- type: PropType<Partial<Record<ActionStatusbarState, ActionStatusbarConfirmDialogConfig>>>;
60
- default: () => {};
61
- };
62
50
  };
63
51
 
64
52
  export declare type ActionStatusbarState = 0 | 1 | 2;
65
53
 
54
+ export declare interface ActionStatusbarStatusConfig {
55
+ /** 设备 status 服务(sid=status, cid=status)的枚举值 */
56
+ status: number | string;
57
+ /** 主按钮点击下发的 action 值 */
58
+ action: ActionStatusbarState;
59
+ showSecondAction?: boolean;
60
+ secondAction?: ActionStatusbarState;
61
+ confirmDialog?: ActionStatusbarConfirmDialogConfig;
62
+ }
63
+
66
64
  /** 与 `sendHilinkDeviceControl` / `window.hilink._deviceControlInner` 约定一致 */
67
65
  declare type BoolIconCardCommandPayload = HilinkDeviceControlPayload;
68
66
  export { BoolIconCardCommandPayload }
@@ -1579,6 +1577,10 @@ declare const statusBarProps: {
1579
1577
  type: PropType<ProductSubscribe[]>;
1580
1578
  default: () => never[];
1581
1579
  };
1580
+ subscribesCenter: {
1581
+ type: PropType<ProductSubscribe[]>;
1582
+ default: () => never[];
1583
+ };
1582
1584
  showMiddle: {
1583
1585
  type: BooleanConstructor;
1584
1586
  default: boolean;
@@ -1770,21 +1772,13 @@ export declare type TimeWheelPickerValue = Record<string, string | number>;
1770
1772
 
1771
1773
  export declare const UpActionStatusbar: {
1772
1774
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
1773
- subscribes: {
1775
+ subscribesCenter: {
1774
1776
  type: PropType<ProductSubscribe[]>;
1775
1777
  default: () => never[];
1776
1778
  };
1777
- status: {
1778
- type: PropType<ActionStatusbarState>;
1779
- default: number;
1780
- };
1781
- showSecondStatus: {
1782
- type: BooleanConstructor;
1783
- default: boolean;
1784
- };
1785
- secondStatus: {
1786
- type: PropType<ActionStatusbarState>;
1787
- default: undefined;
1779
+ statusConfigs: {
1780
+ type: PropType<ActionStatusbarStatusConfig[]>;
1781
+ default: () => never[];
1788
1782
  };
1789
1783
  showMiddle: {
1790
1784
  type: BooleanConstructor;
@@ -1794,18 +1788,11 @@ export declare const UpActionStatusbar: {
1794
1788
  type: BooleanConstructor;
1795
1789
  default: boolean;
1796
1790
  };
1797
- actionConfirmDialogs: {
1798
- type: PropType<Partial<Record<ActionStatusbarState, ActionStatusbarConfirmDialogConfig>>>;
1799
- default: () => {};
1800
- };
1801
1791
  }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
1802
- subscribes: ProductSubscribe[];
1803
- status: ActionStatusbarState;
1792
+ subscribesCenter: ProductSubscribe[];
1804
1793
  showMiddle: boolean;
1805
1794
  showMiddleWhenOff: boolean;
1806
- showSecondStatus: boolean;
1807
- secondStatus: ActionStatusbarState;
1808
- actionConfirmDialogs: Partial<Record<ActionStatusbarState, ActionStatusbarConfirmDialogConfig>>;
1795
+ statusConfigs: ActionStatusbarStatusConfig[];
1809
1796
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
1810
1797
  P: {};
1811
1798
  B: {};
@@ -1814,21 +1801,13 @@ export declare const UpActionStatusbar: {
1814
1801
  M: {};
1815
1802
  Defaults: {};
1816
1803
  }, Readonly<ExtractPropTypes< {
1817
- subscribes: {
1804
+ subscribesCenter: {
1818
1805
  type: PropType<ProductSubscribe[]>;
1819
1806
  default: () => never[];
1820
1807
  };
1821
- status: {
1822
- type: PropType<ActionStatusbarState>;
1823
- default: number;
1824
- };
1825
- showSecondStatus: {
1826
- type: BooleanConstructor;
1827
- default: boolean;
1828
- };
1829
- secondStatus: {
1830
- type: PropType<ActionStatusbarState>;
1831
- default: undefined;
1808
+ statusConfigs: {
1809
+ type: PropType<ActionStatusbarStatusConfig[]>;
1810
+ default: () => never[];
1832
1811
  };
1833
1812
  showMiddle: {
1834
1813
  type: BooleanConstructor;
@@ -1838,38 +1817,23 @@ export declare const UpActionStatusbar: {
1838
1817
  type: BooleanConstructor;
1839
1818
  default: boolean;
1840
1819
  };
1841
- actionConfirmDialogs: {
1842
- type: PropType<Partial<Record<ActionStatusbarState, ActionStatusbarConfirmDialogConfig>>>;
1843
- default: () => {};
1844
- };
1845
1820
  }>> & Readonly<{}>, {}, {}, {}, {}, {
1846
- subscribes: ProductSubscribe[];
1847
- status: ActionStatusbarState;
1821
+ subscribesCenter: ProductSubscribe[];
1848
1822
  showMiddle: boolean;
1849
1823
  showMiddleWhenOff: boolean;
1850
- showSecondStatus: boolean;
1851
- secondStatus: ActionStatusbarState;
1852
- actionConfirmDialogs: Partial<Record<ActionStatusbarState, ActionStatusbarConfirmDialogConfig>>;
1824
+ statusConfigs: ActionStatusbarStatusConfig[];
1853
1825
  }>;
1854
1826
  __isFragment?: never;
1855
1827
  __isTeleport?: never;
1856
1828
  __isSuspense?: never;
1857
1829
  } & ComponentOptionsBase<Readonly<ExtractPropTypes< {
1858
- subscribes: {
1830
+ subscribesCenter: {
1859
1831
  type: PropType<ProductSubscribe[]>;
1860
1832
  default: () => never[];
1861
1833
  };
1862
- status: {
1863
- type: PropType<ActionStatusbarState>;
1864
- default: number;
1865
- };
1866
- showSecondStatus: {
1867
- type: BooleanConstructor;
1868
- default: boolean;
1869
- };
1870
- secondStatus: {
1871
- type: PropType<ActionStatusbarState>;
1872
- default: undefined;
1834
+ statusConfigs: {
1835
+ type: PropType<ActionStatusbarStatusConfig[]>;
1836
+ default: () => never[];
1873
1837
  };
1874
1838
  showMiddle: {
1875
1839
  type: BooleanConstructor;
@@ -1879,18 +1843,11 @@ showMiddleWhenOff: {
1879
1843
  type: BooleanConstructor;
1880
1844
  default: boolean;
1881
1845
  };
1882
- actionConfirmDialogs: {
1883
- type: PropType<Partial<Record<ActionStatusbarState, ActionStatusbarConfirmDialogConfig>>>;
1884
- default: () => {};
1885
- };
1886
1846
  }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
1887
- subscribes: ProductSubscribe[];
1888
- status: ActionStatusbarState;
1847
+ subscribesCenter: ProductSubscribe[];
1889
1848
  showMiddle: boolean;
1890
1849
  showMiddleWhenOff: boolean;
1891
- showSecondStatus: boolean;
1892
- secondStatus: ActionStatusbarState;
1893
- actionConfirmDialogs: Partial<Record<ActionStatusbarState, ActionStatusbarConfirmDialogConfig>>;
1850
+ statusConfigs: ActionStatusbarStatusConfig[];
1894
1851
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1895
1852
  $slots: {
1896
1853
  middle?(_: {}): any;
@@ -4763,6 +4720,10 @@ export declare const UpStatusBar: {
4763
4720
  type: PropType<ProductSubscribe[]>;
4764
4721
  default: () => never[];
4765
4722
  };
4723
+ subscribesCenter: {
4724
+ type: PropType<ProductSubscribe[]>;
4725
+ default: () => never[];
4726
+ };
4766
4727
  showMiddle: {
4767
4728
  type: BooleanConstructor;
4768
4729
  default: boolean;
@@ -4813,6 +4774,7 @@ export declare const UpStatusBar: {
4813
4774
  closeDialogShowTitle: boolean;
4814
4775
  closeDialogTitle: string;
4815
4776
  closeDialogContent: string;
4777
+ subscribesCenter: ProductSubscribe[];
4816
4778
  showMiddle: boolean;
4817
4779
  showMiddleWhenOff: boolean;
4818
4780
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
@@ -4827,6 +4789,10 @@ export declare const UpStatusBar: {
4827
4789
  type: PropType<ProductSubscribe[]>;
4828
4790
  default: () => never[];
4829
4791
  };
4792
+ subscribesCenter: {
4793
+ type: PropType<ProductSubscribe[]>;
4794
+ default: () => never[];
4795
+ };
4830
4796
  showMiddle: {
4831
4797
  type: BooleanConstructor;
4832
4798
  default: boolean;
@@ -4877,6 +4843,7 @@ export declare const UpStatusBar: {
4877
4843
  closeDialogShowTitle: boolean;
4878
4844
  closeDialogTitle: string;
4879
4845
  closeDialogContent: string;
4846
+ subscribesCenter: ProductSubscribe[];
4880
4847
  showMiddle: boolean;
4881
4848
  showMiddleWhenOff: boolean;
4882
4849
  }>;
@@ -4888,6 +4855,10 @@ subscribes: {
4888
4855
  type: PropType<ProductSubscribe[]>;
4889
4856
  default: () => never[];
4890
4857
  };
4858
+ subscribesCenter: {
4859
+ type: PropType<ProductSubscribe[]>;
4860
+ default: () => never[];
4861
+ };
4891
4862
  showMiddle: {
4892
4863
  type: BooleanConstructor;
4893
4864
  default: boolean;
@@ -4938,6 +4909,7 @@ enableCloseDialog: boolean;
4938
4909
  closeDialogShowTitle: boolean;
4939
4910
  closeDialogTitle: string;
4940
4911
  closeDialogContent: string;
4912
+ subscribesCenter: ProductSubscribe[];
4941
4913
  showMiddle: boolean;
4942
4914
  showMiddleWhenOff: boolean;
4943
4915
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {