@applica-software-guru/react-admin 1.3.134 → 1.3.136

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 (35) hide show
  1. package/bitbucket-pipelines.yml +1 -1
  2. package/dist/components/ra-forms/TableForm/TableFormIteratorItem.d.ts.map +1 -1
  3. package/dist/components/ra-forms/TableForm/index.d.ts +0 -3
  4. package/dist/components/ra-forms/TableForm/index.d.ts.map +1 -1
  5. package/dist/{components/ra-forms/TableForm → contexts}/TableFormIteratorContext.d.ts +2 -1
  6. package/dist/contexts/TableFormIteratorContext.d.ts.map +1 -0
  7. package/dist/{components/ra-forms/TableForm → contexts}/TableFormIteratorItemContext.d.ts +2 -1
  8. package/dist/contexts/TableFormIteratorItemContext.d.ts.map +1 -0
  9. package/dist/contexts/index.d.ts +2 -0
  10. package/dist/contexts/index.d.ts.map +1 -1
  11. package/dist/hooks/index.d.ts +3 -1
  12. package/dist/hooks/index.d.ts.map +1 -1
  13. package/dist/{components/ra-forms/TableForm → hooks}/useTableFormIterator.d.ts +2 -1
  14. package/dist/hooks/useTableFormIterator.d.ts.map +1 -0
  15. package/dist/hooks/useTableFormIteratorItem.d.ts +9 -0
  16. package/dist/hooks/useTableFormIteratorItem.d.ts.map +1 -0
  17. package/dist/react-admin.cjs.js +49 -49
  18. package/dist/react-admin.cjs.js.map +1 -1
  19. package/dist/react-admin.es.js +2300 -2296
  20. package/dist/react-admin.es.js.map +1 -1
  21. package/dist/react-admin.umd.js +54 -54
  22. package/dist/react-admin.umd.js.map +1 -1
  23. package/package.json +1 -1
  24. package/src/components/ra-forms/TableForm/TableFormIterator.tsx +1 -1
  25. package/src/components/ra-forms/TableForm/TableFormIteratorItem.tsx +3 -3
  26. package/src/components/ra-forms/TableForm/index.ts +0 -3
  27. package/src/{components/ra-forms/TableForm → contexts}/TableFormIteratorContext.ts +3 -1
  28. package/src/{components/ra-forms/TableForm → contexts}/TableFormIteratorItemContext.ts +3 -1
  29. package/src/contexts/index.jsx +2 -0
  30. package/src/hooks/index.jsx +13 -1
  31. package/src/{components/ra-forms/TableForm → hooks}/useTableFormIterator.ts +4 -2
  32. package/src/hooks/useTableFormIteratorItem.ts +12 -0
  33. package/dist/components/ra-forms/TableForm/TableFormIteratorContext.d.ts.map +0 -1
  34. package/dist/components/ra-forms/TableForm/TableFormIteratorItemContext.d.ts.map +0 -1
  35. package/dist/components/ra-forms/TableForm/useTableFormIterator.d.ts.map +0 -1
@@ -9,7 +9,7 @@ pipelines:
9
9
  caches:
10
10
  - node
11
11
  script:
12
- - yarn install
12
+ - npm install
13
13
  - step:
14
14
  name: Security Scan
15
15
  script:
@@ -1 +1 @@
1
- {"version":3,"file":"TableFormIteratorItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/TableForm/TableFormIteratorItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAY,YAAY,EAAE,SAAS,EAAyC,MAAM,OAAO,CAAC;AAMjG,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAInC,eAAO,MAAM,qBAAqB,4FAgEhC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,MAAM,EAAE,QAAQ,CAAC;IACjB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"TableFormIteratorItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/TableForm/TableFormIteratorItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAY,YAAY,EAAE,SAAS,EAAyC,MAAM,OAAO,CAAC;AAKjG,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAKnC,eAAO,MAAM,qBAAqB,4FAgEhC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,MAAM,EAAE,QAAQ,CAAC;IACjB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1,7 +1,4 @@
1
1
  import TableFormIterator from './TableFormIterator';
2
- export * from './TableFormIteratorContext';
3
2
  export * from './TableFormIteratorItem';
4
- export * from './TableFormIteratorItemContext';
5
- export * from './useTableFormIterator';
6
3
  export default TableFormIterator;
7
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/TableForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AAEvC,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/TableForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,cAAc,yBAAyB,CAAC;AAExC,eAAe,iBAAiB,CAAC"}
@@ -6,7 +6,7 @@
6
6
  * @see {ArrayInput}
7
7
  *
8
8
  */
9
- export declare const TableFormIteratorContext: import("react").Context<TableFormIteratorContextValue>;
9
+ declare const TableFormIteratorContext: import("react").Context<TableFormIteratorContextValue>;
10
10
  export type TableFormIteratorContextValue = {
11
11
  add: () => void;
12
12
  remove: (index: number) => void;
@@ -14,4 +14,5 @@ export type TableFormIteratorContextValue = {
14
14
  source: string;
15
15
  total: number;
16
16
  };
17
+ export { TableFormIteratorContext };
17
18
  //# sourceMappingURL=TableFormIteratorContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableFormIteratorContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/TableFormIteratorContext.ts"],"names":[],"mappings":";AAEA;;;;;;GAMG;AAEH,QAAA,MAAM,wBAAwB,wDAA0D,CAAC;AAEzF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,GAAG,EAAE,MAAM,IAAI,CAAC;IAChB,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
@@ -5,11 +5,12 @@
5
5
  * @see {TableFormIterator}
6
6
  * @see {ArrayInput}
7
7
  */
8
- export declare const TableFormIteratorItemContext: import("react").Context<TableFormIteratorItemContextValue>;
8
+ declare const TableFormIteratorItemContext: import("react").Context<TableFormIteratorItemContextValue>;
9
9
  export type TableFormIteratorItemContextValue = {
10
10
  index: number;
11
11
  total: number;
12
12
  remove: () => void;
13
13
  reOrder: (newIndex: number) => void;
14
14
  };
15
+ export { TableFormIteratorItemContext };
15
16
  //# sourceMappingURL=TableFormIteratorItemContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableFormIteratorItemContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/TableFormIteratorItemContext.ts"],"names":[],"mappings":";AAEA;;;;;GAKG;AAEH,QAAA,MAAM,4BAA4B,4DAA8D,CAAC;AAEjG,MAAM,MAAM,iCAAiC,GAAG;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC,CAAC;AAEF,OAAO,EAAE,4BAA4B,EAAE,CAAC"}
@@ -2,5 +2,7 @@ export { MenuPropTypes };
2
2
  export * from "./ThemeConfigContext";
3
3
  export * from "./MenuConfigContext";
4
4
  export * from "./AppConfigContext";
5
+ export * from "./TableFormIteratorContext";
6
+ export * from "./TableFormIteratorItemContext";
5
7
  import MenuPropTypes from './MenuPropTypes';
6
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.jsx"],"names":[],"mappings":";;;;0BAA0B,iBAAiB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.jsx"],"names":[],"mappings":";;;;;;0BAA0B,iBAAiB"}
@@ -8,5 +8,7 @@ import useLocalStorage from './useLocalStorage';
8
8
  import useThemeConfig from './useThemeConfig';
9
9
  import useResourceTitle from './useResourceTitle';
10
10
  import useMenuConfig from './useMenuConfig';
11
- export { useAppConfig, useMenu, useBreadcrumbs, useLocalStorage, useThemeConfig, useResourceTitle, useMenuConfig };
11
+ import useTableFormIterator from './useTableFormIterator';
12
+ import useTableFormIteratorItem from './useTableFormIteratorItem';
13
+ export { useAppConfig, useMenu, useBreadcrumbs, useLocalStorage, useThemeConfig, useResourceTitle, useMenuConfig, useTableFormIterator, useTableFormIteratorItem };
12
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.jsx"],"names":[],"mappings":";;;yBAAyB,gBAAgB;oBAGrB,WAAW;2BAFJ,kBAAkB;4BACjB,mBAAmB;2BAIpB,kBAAkB;6BADhB,oBAAoB;0BADvB,iBAAiB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.jsx"],"names":[],"mappings":";;;yBAAyB,gBAAgB;oBAGrB,WAAW;2BAFJ,kBAAkB;4BACjB,mBAAmB;2BAIpB,kBAAkB;6BADhB,oBAAoB;0BADvB,iBAAiB;iCAGV,wBAAwB;qCACpB,4BAA4B"}
@@ -4,5 +4,6 @@
4
4
  * @see {TableFormIterator}
5
5
  * @see {ArrayInput}
6
6
  */
7
- export declare const useTableFormIterator: () => import("./TableFormIteratorContext").TableFormIteratorContextValue;
7
+ declare const useTableFormIterator: () => import("../contexts").TableFormIteratorContextValue;
8
+ export default useTableFormIterator;
8
9
  //# sourceMappingURL=useTableFormIterator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTableFormIterator.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTableFormIterator.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,QAAA,MAAM,oBAAoB,2DAA6C,CAAC;AAExE,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * A hook that provides access to a TableFormIterator item meta (its index and the total number of items) and mutators (reorder and remove this remove).
3
+ * Useful to create custom array input iterators.
4
+ * @see {TableFormIterator}
5
+ * @see {ArrayInput}
6
+ */
7
+ declare const useTableFormIteratorItem: () => import("../contexts").TableFormIteratorItemContextValue;
8
+ export default useTableFormIteratorItem;
9
+ //# sourceMappingURL=useTableFormIteratorItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTableFormIteratorItem.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTableFormIteratorItem.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,QAAA,MAAM,wBAAwB,+DAAiD,CAAC;AAEhF,eAAe,wBAAwB,CAAC"}