@fox-js/foxui-pad 4.1.1-20 → 4.1.1-22

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/style.js CHANGED
@@ -1,3 +1,3 @@
1
1
  /*!
2
- * @fox-js/foxui-desktop v4.0.0 2026-03-26T15:58:07.460Z
2
+ * @fox-js/foxui-desktop v4.0.0 2026-04-07T04:07:26.366Z
3
3
  */
@@ -259,8 +259,24 @@ export declare interface BroadcastCallback {
259
259
  */
260
260
  export declare const BroadcastKey: unique symbol;
261
261
 
262
+ /**
263
+ * 浏览模式属性
264
+ * @param source
265
+ * @returns
266
+ */
267
+ export declare function browseProperty(source: Ref): Ref<'on' | 'off'>;
268
+
262
269
  export declare function cancelRaf(id: number): void;
263
270
 
271
+ /**
272
+ * clamp
273
+ * @param num
274
+ * @param min
275
+ * @param max
276
+ * @returns
277
+ */
278
+ export declare const clamp: (num: number, min: number, max: number) => number;
279
+
264
280
  /**
265
281
  * 清理非数字
266
282
  */
@@ -683,6 +699,21 @@ export declare function defineDataItem(domain: Domain, name: string, descriptor:
683
699
  */
684
700
  export declare function defineDomain(name: string | null, props: Record<string, any>, ignores?: any[], exposes?: Record<string, BroadcastCallback>): Domain;
685
701
 
702
+ /**
703
+ * 定义domain item属性
704
+ */
705
+ export declare function defineDomainItemProperty(props: {
706
+ disabled?: boolean | string;
707
+ readonly?: boolean | string;
708
+ browse?: 'off' | 'on';
709
+ }): {
710
+ innerDisabled: Ref<boolean, boolean>;
711
+ disabled: Ref<boolean, boolean>;
712
+ innerReadonly: Ref<boolean, boolean>;
713
+ readonly: Ref<boolean, boolean>;
714
+ browse: Ref<"off" | "on", "off" | "on">;
715
+ };
716
+
686
717
  /**
687
718
  * 定义domain item
688
719
  * @returns
@@ -736,7 +767,7 @@ declare type Direction = '' | 'vertical' | 'horizontal';
736
767
  * 禁用属性
737
768
  * @param source
738
769
  */
739
- export declare function disabledProperty(source: Ref): Ref;
770
+ export declare function disabledProperty(source: Ref): Ref<boolean>;
740
771
 
741
772
  export { divide }
742
773
 
@@ -1559,6 +1590,13 @@ export declare function isTouch(): boolean;
1559
1590
  */
1560
1591
  export declare function isWindow(obj: any): boolean;
1561
1592
 
1593
+ /**
1594
+ * 中划线格式转换为大驼峰
1595
+ * @param str
1596
+ * @returns
1597
+ */
1598
+ export declare function kebabToPascal(str: string): string;
1599
+
1562
1600
  /**
1563
1601
  * 获取对应元素的在数组中最后一个匹配的索引
1564
1602
  * @param x
@@ -1659,6 +1697,11 @@ export declare interface Padding {
1659
1697
  bottom: number | string | null;
1660
1698
  }
1661
1699
 
1700
+ /**
1701
+ * pad zero
1702
+ */
1703
+ export declare const padZero: (num: number | string, length?: number) => string;
1704
+
1662
1705
  /**
1663
1706
  * page layout
1664
1707
  */
@@ -1696,6 +1739,13 @@ export declare interface PageState {
1696
1739
  footerMounted?: boolean;
1697
1740
  }
1698
1741
 
1742
+ /**
1743
+ * 大驼峰转换为中划线
1744
+ * @param str
1745
+ * @returns
1746
+ */
1747
+ export declare function pascalToKebab<T extends string>(str: string): string;
1748
+
1699
1749
  /**
1700
1750
  * 持久消息
1701
1751
  */
@@ -1713,6 +1763,13 @@ export declare interface Point {
1713
1763
  y: number;
1714
1764
  }
1715
1765
 
1766
+ /**
1767
+ * prevent default
1768
+ * @param event
1769
+ * @param isStopPropagation
1770
+ */
1771
+ export declare function preventDefault(event: Event, isStopPropagation?: boolean): void;
1772
+
1716
1773
  /**
1717
1774
  * 优先策略
1718
1775
  */
@@ -1728,7 +1785,7 @@ export declare enum PriorityPolicy {
1728
1785
  * @param policy
1729
1786
  * @param filter
1730
1787
  */
1731
- export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
1788
+ export declare function property<T>(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref<T>;
1732
1789
 
1733
1790
  /**
1734
1791
  * 设置虚拟页面范围
@@ -1750,7 +1807,7 @@ export declare const raf: any;
1750
1807
  * 只读属性
1751
1808
  * @param source
1752
1809
  */
1753
- export declare function readonlyProperty(source: Ref): Ref;
1810
+ export declare function readonlyProperty(source: Ref): Ref<boolean>;
1754
1811
 
1755
1812
  /**
1756
1813
  * Rect类型
@@ -2250,7 +2307,7 @@ export declare class ValidateSchema {
2250
2307
  export declare const ValidateSchemaKey: unique symbol;
2251
2308
 
2252
2309
  /**
2253
- * value 格式话
2310
+ * value 格式化
2254
2311
  */
2255
2312
  export declare interface ValueFormat<T, K> {
2256
2313
  (value: T): K;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fox-js/foxui-pad",
3
3
  "type": "module",
4
- "version": "4.1.1-20",
4
+ "version": "4.1.1-22",
5
5
  "description": "FoxUI PAD端组件库",
6
6
  "author": "jiangcheng",
7
7
  "main": "./dist/index.umd.js",