@sheinx/hooks 3.3.0-beta.1 → 3.3.0-beta.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. package/cjs/common/use-position-style/index.d.ts.map +1 -1
  2. package/cjs/common/use-position-style/index.js +5 -2
  3. package/cjs/components/use-datepicker/use-date.d.ts.map +1 -1
  4. package/cjs/components/use-datepicker/use-date.js +1 -11
  5. package/cjs/components/use-datepicker/use-datepicker-format.d.ts.map +1 -1
  6. package/cjs/components/use-datepicker/use-datepicker-format.js +1 -0
  7. package/cjs/components/use-datepicker/use-datepicker-range.d.ts +2 -0
  8. package/cjs/components/use-datepicker/use-datepicker-range.d.ts.map +1 -1
  9. package/cjs/components/use-datepicker/use-datepicker-range.js +12 -2
  10. package/cjs/components/use-datepicker/util.d.ts +1 -0
  11. package/cjs/components/use-datepicker/util.d.ts.map +1 -1
  12. package/cjs/components/use-datepicker/util.js +15 -1
  13. package/cjs/components/use-form/use-form-fieldset/use-form-fieldset.d.ts +1 -0
  14. package/cjs/components/use-form/use-form-fieldset/use-form-fieldset.d.ts.map +1 -1
  15. package/cjs/components/use-form/use-form-fieldset/use-form-fieldset.js +2 -1
  16. package/cjs/components/use-form/use-form.d.ts +6 -0
  17. package/cjs/components/use-form/use-form.d.ts.map +1 -1
  18. package/cjs/components/use-form/use-form.js +37 -4
  19. package/cjs/components/use-form/use-form.type.d.ts +3 -0
  20. package/cjs/components/use-form/use-form.type.d.ts.map +1 -1
  21. package/cjs/components/use-pagination/use-pagination.d.ts +1 -1
  22. package/cjs/components/use-pagination/use-pagination.d.ts.map +1 -1
  23. package/cjs/components/use-pagination/use-pagination.js +11 -6
  24. package/cjs/components/use-table/use-table-layout.d.ts.map +1 -1
  25. package/cjs/components/use-table/use-table-layout.js +1 -1
  26. package/cjs/components/use-table/use-table.type.d.ts +2 -2
  27. package/cjs/utils/flat.d.ts +14 -0
  28. package/cjs/utils/flat.d.ts.map +1 -0
  29. package/cjs/utils/flat.js +94 -0
  30. package/cjs/utils/index.d.ts +1 -0
  31. package/cjs/utils/index.d.ts.map +1 -1
  32. package/cjs/utils/index.js +8 -1
  33. package/cjs/utils/render.d.ts +1 -1
  34. package/cjs/utils/render.d.ts.map +1 -1
  35. package/cjs/utils/render.js +2 -2
  36. package/esm/common/use-position-style/index.d.ts.map +1 -1
  37. package/esm/common/use-position-style/index.js +5 -2
  38. package/esm/components/use-datepicker/use-date.d.ts.map +1 -1
  39. package/esm/components/use-datepicker/use-date.js +1 -11
  40. package/esm/components/use-datepicker/use-datepicker-format.d.ts.map +1 -1
  41. package/esm/components/use-datepicker/use-datepicker-format.js +1 -0
  42. package/esm/components/use-datepicker/use-datepicker-range.d.ts +2 -0
  43. package/esm/components/use-datepicker/use-datepicker-range.d.ts.map +1 -1
  44. package/esm/components/use-datepicker/use-datepicker-range.js +12 -2
  45. package/esm/components/use-datepicker/util.d.ts +1 -0
  46. package/esm/components/use-datepicker/util.d.ts.map +1 -1
  47. package/esm/components/use-datepicker/util.js +15 -1
  48. package/esm/components/use-form/use-form-fieldset/use-form-fieldset.d.ts +1 -0
  49. package/esm/components/use-form/use-form-fieldset/use-form-fieldset.d.ts.map +1 -1
  50. package/esm/components/use-form/use-form-fieldset/use-form-fieldset.js +2 -1
  51. package/esm/components/use-form/use-form.d.ts +6 -0
  52. package/esm/components/use-form/use-form.d.ts.map +1 -1
  53. package/esm/components/use-form/use-form.js +37 -4
  54. package/esm/components/use-form/use-form.type.d.ts +3 -0
  55. package/esm/components/use-form/use-form.type.d.ts.map +1 -1
  56. package/esm/components/use-pagination/use-pagination.d.ts +1 -1
  57. package/esm/components/use-pagination/use-pagination.d.ts.map +1 -1
  58. package/esm/components/use-pagination/use-pagination.js +11 -6
  59. package/esm/components/use-table/use-table-layout.d.ts.map +1 -1
  60. package/esm/components/use-table/use-table-layout.js +2 -2
  61. package/esm/components/use-table/use-table.type.d.ts +2 -2
  62. package/esm/utils/flat.d.ts +14 -0
  63. package/esm/utils/flat.d.ts.map +1 -0
  64. package/esm/utils/flat.js +85 -0
  65. package/esm/utils/index.d.ts +1 -0
  66. package/esm/utils/index.d.ts.map +1 -1
  67. package/esm/utils/index.js +3 -1
  68. package/esm/utils/render.d.ts +1 -1
  69. package/esm/utils/render.d.ts.map +1 -1
  70. package/esm/utils/render.js +2 -2
  71. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["render.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,GAAG,EAAE,IAAI,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;AAE1E,eAAO,MAAM,MAAM,6EAIlB,CAAC;AAQF,wBAAgB,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,mBAM7E"}
1
+ {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["render.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,GAAG,EAAE,IAAI,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;AAE1E,eAAO,MAAM,MAAM,6EAIlB,CAAC;AAQF,wBAAgB,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,OAAO,mBAMpG"}
@@ -13,9 +13,9 @@ function $getKey(gen, d, index) {
13
13
  if (typeof gen === 'function') return gen(d, index);
14
14
  return index;
15
15
  }
16
- export function getKey(gen, d, index) {
16
+ export function getKey(gen, d, index, ignoreError) {
17
17
  var key = $getKey(gen, d, index);
18
- if (typeof key !== 'string' && typeof key !== 'number') {
18
+ if (typeof key !== 'string' && typeof key !== 'number' && !ignoreError) {
19
19
  console.error(new Error("keygen result expect a string or a number, get '".concat(_typeof(key), "'")));
20
20
  }
21
21
  return key;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/hooks",
3
- "version": "3.3.0-beta.1",
3
+ "version": "3.3.0-beta.11",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",