@sheinx/hooks 3.6.0-beta.9 → 3.6.1-beta.1

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 (95) hide show
  1. package/cjs/common/use-pagination-list/index.d.ts.map +1 -1
  2. package/cjs/common/use-pagination-list/index.js +6 -1
  3. package/cjs/common/use-position-style/index.d.ts.map +1 -1
  4. package/cjs/common/use-position-style/index.js +7 -3
  5. package/cjs/components/use-check/use-check.d.ts +1 -1
  6. package/cjs/components/use-check/use-check.d.ts.map +1 -1
  7. package/cjs/components/use-check/use-check.js +10 -3
  8. package/cjs/components/use-datepicker/use-datepicker-format.d.ts.map +1 -1
  9. package/cjs/components/use-datepicker/use-datepicker-format.js +4 -0
  10. package/cjs/components/use-datepicker/use-datepicker-format.type.d.ts +1 -1
  11. package/cjs/components/use-datepicker/use-datepicker-format.type.d.ts.map +1 -1
  12. package/cjs/components/use-form/Provider.d.ts +1 -2
  13. package/cjs/components/use-form/Provider.d.ts.map +1 -1
  14. package/cjs/components/use-form/use-form-control/use-form-control.d.ts.map +1 -1
  15. package/cjs/components/use-form/use-form-control/use-form-control.js +2 -3
  16. package/cjs/components/use-form/use-form.d.ts +1 -2
  17. package/cjs/components/use-form/use-form.d.ts.map +1 -1
  18. package/cjs/components/use-form/use-form.js +20 -11
  19. package/cjs/components/use-form/use-form.type.d.ts +5 -3
  20. package/cjs/components/use-form/use-form.type.d.ts.map +1 -1
  21. package/cjs/components/use-input/use-input-format.d.ts +1 -1
  22. package/cjs/components/use-input/use-input-number.d.ts +1 -1
  23. package/cjs/components/use-input/use-input-number.d.ts.map +1 -1
  24. package/cjs/components/use-input/use-input-number.js +1 -0
  25. package/cjs/components/use-popup/use-popup.d.ts.map +1 -1
  26. package/cjs/components/use-popup/use-popup.js +5 -0
  27. package/cjs/components/use-table/index.d.ts +2 -1
  28. package/cjs/components/use-table/index.d.ts.map +1 -1
  29. package/cjs/components/use-table/index.js +7 -0
  30. package/cjs/components/use-table/use-table-filter.d.ts +19 -0
  31. package/cjs/components/use-table/use-table-filter.d.ts.map +1 -0
  32. package/cjs/components/use-table/use-table-filter.js +96 -0
  33. package/cjs/components/use-table/use-table.type.d.ts +93 -0
  34. package/cjs/components/use-table/use-table.type.d.ts.map +1 -1
  35. package/cjs/components/use-tabs/context.d.ts +1 -1
  36. package/cjs/components/use-tabs/context.d.ts.map +1 -1
  37. package/cjs/components/use-tabs/use-tabs.d.ts +1 -1
  38. package/cjs/components/use-tree/use-tree.d.ts.map +1 -1
  39. package/cjs/components/use-tree/use-tree.js +58 -13
  40. package/cjs/components/use-tree/use-tree.type.d.ts +4 -0
  41. package/cjs/components/use-tree/use-tree.type.d.ts.map +1 -1
  42. package/cjs/components/use-treeselect/use-tiled.d.ts +1 -1
  43. package/cjs/utils/dom/element.d.ts +1 -1
  44. package/cjs/utils/dom/element.d.ts.map +1 -1
  45. package/cjs/utils/dom/element.js +5 -3
  46. package/cjs/utils/lazyload.d.ts.map +1 -1
  47. package/cjs/utils/lazyload.js +2 -2
  48. package/esm/common/use-pagination-list/index.d.ts.map +1 -1
  49. package/esm/common/use-pagination-list/index.js +6 -1
  50. package/esm/common/use-position-style/index.d.ts.map +1 -1
  51. package/esm/common/use-position-style/index.js +7 -3
  52. package/esm/components/use-check/use-check.d.ts +1 -1
  53. package/esm/components/use-check/use-check.d.ts.map +1 -1
  54. package/esm/components/use-check/use-check.js +10 -3
  55. package/esm/components/use-datepicker/use-datepicker-format.d.ts.map +1 -1
  56. package/esm/components/use-datepicker/use-datepicker-format.js +4 -0
  57. package/esm/components/use-datepicker/use-datepicker-format.type.d.ts +1 -1
  58. package/esm/components/use-datepicker/use-datepicker-format.type.d.ts.map +1 -1
  59. package/esm/components/use-form/Provider.d.ts +1 -2
  60. package/esm/components/use-form/Provider.d.ts.map +1 -1
  61. package/esm/components/use-form/use-form-control/use-form-control.d.ts.map +1 -1
  62. package/esm/components/use-form/use-form-control/use-form-control.js +2 -3
  63. package/esm/components/use-form/use-form.d.ts +1 -2
  64. package/esm/components/use-form/use-form.d.ts.map +1 -1
  65. package/esm/components/use-form/use-form.js +20 -11
  66. package/esm/components/use-form/use-form.type.d.ts +5 -3
  67. package/esm/components/use-form/use-form.type.d.ts.map +1 -1
  68. package/esm/components/use-input/use-input-format.d.ts +1 -1
  69. package/esm/components/use-input/use-input-number.d.ts +1 -1
  70. package/esm/components/use-input/use-input-number.d.ts.map +1 -1
  71. package/esm/components/use-input/use-input-number.js +1 -0
  72. package/esm/components/use-popup/use-popup.d.ts.map +1 -1
  73. package/esm/components/use-popup/use-popup.js +5 -0
  74. package/esm/components/use-table/index.d.ts +2 -1
  75. package/esm/components/use-table/index.d.ts.map +1 -1
  76. package/esm/components/use-table/index.js +1 -0
  77. package/esm/components/use-table/use-table-filter.d.ts +19 -0
  78. package/esm/components/use-table/use-table-filter.d.ts.map +1 -0
  79. package/esm/components/use-table/use-table-filter.js +89 -0
  80. package/esm/components/use-table/use-table.type.d.ts +93 -0
  81. package/esm/components/use-table/use-table.type.d.ts.map +1 -1
  82. package/esm/components/use-tabs/context.d.ts +1 -1
  83. package/esm/components/use-tabs/context.d.ts.map +1 -1
  84. package/esm/components/use-tabs/use-tabs.d.ts +1 -1
  85. package/esm/components/use-tree/use-tree.d.ts.map +1 -1
  86. package/esm/components/use-tree/use-tree.js +58 -13
  87. package/esm/components/use-tree/use-tree.type.d.ts +4 -0
  88. package/esm/components/use-tree/use-tree.type.d.ts.map +1 -1
  89. package/esm/components/use-treeselect/use-tiled.d.ts +1 -1
  90. package/esm/utils/dom/element.d.ts +1 -1
  91. package/esm/utils/dom/element.d.ts.map +1 -1
  92. package/esm/utils/dom/element.js +4 -2
  93. package/esm/utils/lazyload.d.ts.map +1 -1
  94. package/esm/utils/lazyload.js +3 -3
  95. package/package.json +1 -1
@@ -43,6 +43,10 @@ export interface BaseTreeProps<DataItem> {
43
43
  * @private 内部属性
44
44
  */
45
45
  isControlled: boolean;
46
+ /**
47
+ * @private 内部属性
48
+ */
49
+ tiledData?: DataItem[];
46
50
  active?: KeygenResult;
47
51
  /**
48
52
  * @en Selected key (controlled)
@@ -1 +1 @@
1
- {"version":3,"file":"use-tree.type.d.ts","sourceRoot":"","sources":["use-tree.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEpF,MAAM,MAAM,iBAAiB,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE1C,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE7C,MAAM,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;AAEjE,MAAM,MAAM,YAAY,CAAC,QAAQ,IAAI;IACnC,EAAE,EAAE,YAAY,CAAC;IACjB,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,WAAW,WAAW,CAAC,QAAQ;IACnC,OAAO,EAAE,GAAG,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;IACzC,OAAO,EAAE,GAAG,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;IACrC,QAAQ,EAAE,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC;IACnC,iBAAiB,EAAE,GAAG,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;IAClD,QAAQ,EAAE,GAAG,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC;IAC/C,iBAAiB,EAAE,GAAG,CAAC,GAAG,EAAE,GAAG,CAA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UAAU,EAAE,CAAC,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IAC3D,YAAY,EAAE,CAAC,EAAE,EAAE,YAAY,KAAK,IAAI,CAAC;IACzC,WAAW,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC;IACpC,SAAS,EAAE,GAAG,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,QAAQ,EAAE,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC;IACnC,OAAO,EAAE,GAAG,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;IACzC,OAAO,EAAE,GAAG,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;IACrC,QAAQ,EAAE,GAAG,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC;IAC/C,iBAAiB,EAAE,GAAG,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;CACnD"}
@@ -7,7 +7,7 @@ declare const useTiled: <DataItem>(props: UseTiledProps<DataItem>) => {
7
7
  } | {
8
8
  data: any;
9
9
  onFilter: (text: string, from?: string) => void;
10
- expandIcons: ((item: DataItem) => string | number | boolean | import("react").ReactFragment | JSX.Element | null | undefined)[];
10
+ expandIcons: ((item: DataItem) => string | number | boolean | Iterable<import("react").ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined)[];
11
11
  };
12
12
  export default useTiled;
13
13
  //# sourceMappingURL=use-tiled.d.ts.map
@@ -13,7 +13,7 @@ export declare const addResizeObserver: (el: HTMLElement, handler: any, options?
13
13
  }) => () => void;
14
14
  export declare function getParent(el: HTMLElement | null | Element, target?: string | HTMLElement): Element | null;
15
15
  export declare function getClosestScrollContainer(element: HTMLElement | null): HTMLElement | null;
16
- export declare function getClosestFixedContainer(element: Element | HTMLElement | null): HTMLElement | null;
16
+ export declare function getClosestPositionedContainer(element: Element | HTMLElement | null, positions?: React.CSSProperties['position'][]): HTMLElement | null;
17
17
  export declare function cssSupport(attr: keyof CSSStyleDeclaration, value: string): boolean;
18
18
  export declare const parsePxToNumber: (str: string) => number;
19
19
  export declare const getFieldId: (name?: string, formName?: string) => string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"element.d.ts","sourceRoot":"","sources":["element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,EACzB,WAAW,UAAQ,EACnB,SAAS,CAAC,EAAE,MAAM,GACjB,KAAK,CAAC,SAAS,CASjB;AAGD,eAAO,MAAM,iBAAiB,OACxB,WAAW,WACN,GAAG;;;gBA4Cb,CAAC;AAEF,wBAAgB,SAAS,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,GAAG,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,kBAmBxF;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,WAAW,GAAG,IAAI,CAmCzF;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,GAAG,IAAI,sBAqB7E;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,mBAAmB,EAAE,KAAK,EAAE,MAAM,WAYxE;AAED,eAAO,MAAM,eAAe,QAAS,MAAM,WAAwC,CAAC;AAEpF,eAAO,MAAM,UAAU,UAAW,MAAM,aAAa,MAAM,uBAG1D,CAAC"}
1
+ {"version":3,"file":"element.d.ts","sourceRoot":"","sources":["element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,EACzB,WAAW,UAAQ,EACnB,SAAS,CAAC,EAAE,MAAM,GACjB,KAAK,CAAC,SAAS,CASjB;AAGD,eAAO,MAAM,iBAAiB,OACxB,WAAW,WACN,GAAG;;;gBA4Cb,CAAC;AAEF,wBAAgB,SAAS,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,GAAG,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,kBAmBxF;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,WAAW,GAAG,IAAI,CAmCzF;AAED,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,OAAO,GAAG,WAAW,GAAG,IAAI,EACrC,SAAS,GAAE,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,EAA0B,sBAuBrE;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,mBAAmB,EAAE,KAAK,EAAE,MAAM,WAYxE;AAED,eAAO,MAAM,eAAe,QAAS,MAAM,WAAwC,CAAC;AAEpF,eAAO,MAAM,UAAU,UAAW,MAAM,aAAa,MAAM,uBAG1D,CAAC"}
@@ -145,13 +145,15 @@ export function getClosestScrollContainer(element) {
145
145
  // 如果没有找到可滚动的祖先,返回 body 或 documentElement
146
146
  return document.scrollingElement || document.documentElement;
147
147
  }
148
- export function getClosestFixedContainer(element) {
148
+ export function getClosestPositionedContainer(element) {
149
+ var positions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ['fixed', 'absolute'];
149
150
  if (!element) {
150
151
  return null;
151
152
  }
152
153
  var isFixable = function isFixable(el) {
153
154
  var style = window.getComputedStyle(el);
154
- return style.position === 'fixed';
155
+ var position = style.position;
156
+ return positions.includes(position);
155
157
  };
156
158
 
157
159
  // 遍历父元素
@@ -1 +1 @@
1
- {"version":3,"file":"lazyload.d.ts","sourceRoot":"","sources":["lazyload.ts"],"names":[],"mappings":"AAKA,KAAK,UAAU,GAAG;IAChB,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,oBAAoB,CAAC;CACjC,CAAC;AAsBF,wBAAgB,QAAQ,SAgBvB;AAWD,wBAAgB,WAAW,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,cAAc,CAAC,EAAE,OAAO,QAUvE;AAyBD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,UAAU,iBA4BvC"}
1
+ {"version":3,"file":"lazyload.d.ts","sourceRoot":"","sources":["lazyload.ts"],"names":[],"mappings":"AAKA,KAAK,UAAU,GAAG;IAChB,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,oBAAoB,CAAC;CACjC,CAAC;AAsBF,wBAAgB,QAAQ,SAgBvB;AAWD,wBAAgB,WAAW,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,cAAc,CAAC,EAAE,OAAO,QAUvE;AA0BD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,UAAU,iBA4BvC"}
@@ -1,5 +1,5 @@
1
1
  import { generateUUID, docSize, devUseWarning } from "../utils";
2
- import { getClosestFixedContainer } from "./dom/element";
2
+ import { getClosestPositionedContainer } from "./dom/element";
3
3
  var throttle = 80;
4
4
  var components = {};
5
5
  var timeout = null;
@@ -11,7 +11,6 @@ var getRect = function getRect(el) {
11
11
  if (el) {
12
12
  devUseWarning.error("the ".concat(el, " is not a element"));
13
13
  }
14
- ;
15
14
  return {
16
15
  top: 0,
17
16
  bottom: winHeight
@@ -67,13 +66,14 @@ function getObserver(obj, id) {
67
66
  render = obj.render,
68
67
  offscreen = obj.offscreen,
69
68
  noRemove = obj.noRemove;
70
- var fixedContainer = getClosestFixedContainer(element);
69
+ var fixedContainer = getClosestPositionedContainer(element, ['fixed', 'absolute']);
71
70
  var observer = new IntersectionObserver(function (entries) {
72
71
  entries.forEach(function (en) {
73
72
  if (en.isIntersecting || en.intersectionRatio > 0) {
74
73
  render();
75
74
  if (!noRemove) removeStack(id);
76
75
  } else {
76
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
77
77
  offscreen && offscreen();
78
78
  }
79
79
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/hooks",
3
- "version": "3.6.0-beta.9",
3
+ "version": "3.6.1-beta.1",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",