{"_id":"@croz/nrich-registry-mui","_rev":"1-de6619133271868be8e9ffdea1fa427c","name":"@croz/nrich-registry-mui","dist-tags":{"latest":"0.0.2-RC"},"versions":{"0.0.1-RC":{"name":"@croz/nrich-registry-mui","description":"Contains the UI implementation of registry for the MUI component library","version":"0.0.1-RC","author":{"name":"CROZ"},"bugs":{"url":"https://github.com/croz-ltd/nrich-frontend/issues"},"devDependencies":{"@croz/nrich-jest-config":"*","@croz/nrich-tsconfig":"*","@croz/nrich-tsup-config":"*","@emotion/react":"^11.9.0","@emotion/styled":"^11.8.1","@mui/icons-material":"^5.0.0","@mui/material":"^5.0.0","@testing-library/dom":"^8.13.0","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@testing-library/user-event":"^13.5.0","@types/jest":"^28.1.0","eslint":"^8.2.0","eslint-config-nrich":"*","jest":"^28.1.0","msw":"^0.48.1","react":"^18.1.0","react-dom":"^18.1.0","tsup":"^6.5.0"},"homepage":"https://github.com/croz-ltd/nrich-frontend/tree/master/libs/registry/mui#readme","keywords":["croz","nrich","nrich-registry","react","typescript","zustand"],"license":"Apache-2.0","main":"dist/index.js","module":"dist/index.mjs","peerDependencies":{"@croz/nrich-form-configuration-core":"*","@croz/nrich-registry-core":"*","@mui/icons-material":"^5.0.0","@mui/material":"^5.0.0","react":">=16.8.0","react-dom":">=16.8.0"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/croz-ltd/nrich-frontend.git","directory":"libs/registry/mui"},"scripts":{"build":"tsup","clean":"rm -rf .turbo && rm -rf dist","lint":"eslint . --ext .ts,.tsx","test":"jest"},"types":"dist/index.d.ts","gitHead":"609bd7e4b7b5fa2495746637a9265688c587d9c8","_id":"@croz/nrich-registry-mui@0.0.1-RC","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-rHY/1R+A0o4i0U8bjNY/Js4BAMMcg8uOTd7/5c+M9uYDs9Wd6d3ArHrAooGtO/po8IbQN+SqZ87h6UeSdwdVdA==","shasum":"c0b6487d64965863f9480a892231f7b1c8b6c267","tarball":"https://registry.npmjs.org/@croz/nrich-registry-mui/-/nrich-registry-mui-0.0.1-RC.tgz","fileCount":7,"unpackedSize":133550,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICu/PLTD5jPF18zaDTOm2N73eDRTl0EWHo3XGraISWGAAiA0LHIcCSfnRTcHptu4GVf7PbfW4gWz80mCegBYZZm5Jw=="}]},"_npmUser":{"name":"jtomic","email":"jtomic@croz.net"},"directories":{},"maintainers":[{"name":"djajcevic","email":"denis.jajcevic+npmjs@gmail.com"},{"name":"jtomic","email":"jtomic@croz.net"},{"name":"ivankrnic","email":"ikrnic@croz.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nrich-registry-mui_0.0.1-RC_1708680328019_0.09886017266435854"},"_hasShrinkwrap":false},"0.0.2-RC":{"name":"@croz/nrich-registry-mui","description":"Contains the UI implementation of registry for the MUI component library","version":"0.0.2-RC","author":{"name":"CROZ"},"bugs":{"url":"https://github.com/croz-ltd/nrich-frontend/issues"},"devDependencies":{"@croz/nrich-jest-config":"*","@croz/nrich-tsconfig":"*","@croz/nrich-tsup-config":"*","@emotion/react":"^11.9.0","@emotion/styled":"^11.8.1","@mui/icons-material":"^5.0.0","@mui/material":"^5.0.0","@testing-library/dom":"^8.13.0","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@testing-library/user-event":"^13.5.0","@types/jest":"^28.1.0","eslint":"^8.2.0","eslint-config-nrich":"*","jest":"^28.1.0","msw":"^0.48.1","react":"^18.1.0","react-dom":"^18.1.0","tsup":"^6.5.0"},"homepage":"https://github.com/croz-ltd/nrich-frontend/tree/master/libs/registry/mui#readme","keywords":["croz","nrich","nrich-registry","react","typescript","zustand"],"license":"Apache-2.0","main":"dist/index.js","module":"dist/index.mjs","peerDependencies":{"@croz/nrich-form-configuration-core":"*","@croz/nrich-registry-core":"*","@mui/icons-material":"^5.0.0","@mui/material":"^5.0.0","react":">=16.8.0","react-dom":">=16.8.0"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/croz-ltd/nrich-frontend.git","directory":"libs/registry/mui"},"scripts":{"build":"tsup","clean":"rm -rf .turbo && rm -rf dist","lint":"eslint . --ext .ts,.tsx","test":"jest"},"types":"dist/index.d.ts","gitHead":"997cb055ec189043c99f394b1a52a183e1c05446","_id":"@croz/nrich-registry-mui@0.0.2-RC","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-r/NPP4p6b23Mq2XwYbN98yP1wWLWUkRS8GVr0lQ3+HQgUoYddd6c8LuPy/wHqe9k+zPqezjc+H90EabyJQaezw==","shasum":"6e51f87f30bbc1e9b9ad856721b63af7e1322189","tarball":"https://registry.npmjs.org/@croz/nrich-registry-mui/-/nrich-registry-mui-0.0.2-RC.tgz","fileCount":7,"unpackedSize":126673,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBM9jWJs3XxV1gQNqhAcscIPEvrSfHclxTeCYPFSQ5YyAiBdcVr3RrvOw3KDLcOkAxJrDg6oVlDAyrZDWuun+R1IkA=="}]},"_npmUser":{"name":"jtomic","email":"jtomic@croz.net"},"directories":{},"maintainers":[{"name":"djajcevic","email":"denis.jajcevic+npmjs@gmail.com"},{"name":"jtomic","email":"jtomic@croz.net"},{"name":"ivankrnic","email":"ikrnic@croz.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nrich-registry-mui_0.0.2-RC_1712231003835_0.13146699167506215"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-23T09:25:27.890Z","0.0.1-RC":"2024-02-23T09:25:28.224Z","modified":"2024-04-04T11:43:24.268Z","0.0.2-RC":"2024-04-04T11:43:24.035Z"},"maintainers":[{"name":"djajcevic","email":"denis.jajcevic+npmjs@gmail.com"},{"name":"jtomic","email":"jtomic@croz.net"},{"name":"ivankrnic","email":"ikrnic@croz.net"}],"description":"Contains the UI implementation of registry for the MUI component library","homepage":"https://github.com/croz-ltd/nrich-frontend/tree/master/libs/registry/mui#readme","keywords":["croz","nrich","nrich-registry","react","typescript","zustand"],"repository":{"type":"git","url":"git+https://github.com/croz-ltd/nrich-frontend.git","directory":"libs/registry/mui"},"author":{"name":"CROZ"},"bugs":{"url":"https://github.com/croz-ltd/nrich-frontend/issues"},"license":"Apache-2.0","readme":"# @croz/nrich-registry-mui\r\n\r\n## Overview\r\n\r\n`@croz/nrich-registry-mui` is a [MUI](https://mui.com/) wrapper for the [@croz/nrich-registry-core](../core/README.md) module.\r\nModule uses generic MUI components to provide basic functionality for registry administration.\r\n\r\n## Setup\r\n\r\nTo use this module in your project run `npm install @croz/nrich-registry-mui` or `yarn add @croz/nrich-registry-mui`\r\n\r\n## Usage\r\n\r\nIn your app, inside your registry administration, use `RegistryProvider` which loads configurations.\r\nBe vary that you also need `FormConfigurationProvider` somewhere in the tree so that form validations are loaded.\r\nInside the `RegistryProvider` you can use `RegistryEntity` component which encapsulates display with filtering, actions for adding, editing and removing entities.\r\n\r\n```tsx\r\n<FormConfigurationProvider>\r\n  <RegistryProvider>\r\n    <RegistryEntity entityName=\"Address\"/>\r\n  </RegistryProvider>\r\n</FormConfigurationProvider>\r\n```\r\n\r\nIf you want to customize the display, or use some part from the `RegistryEntity` component, you can also use `RegistryTable`, `RegistryFilter` and `RegistryForm` components together with\r\n`useRegistryEntityAdministration` hook.\r\n\r\nThere is also a `RegistryEntityPicker` component which can be used to pick an entity from a list of available entities.\r\n\r\nList of component and which hooks they use internally:\r\n\r\n| Component name         | Description                                                       | Used hook                                     |\r\n|------------------------|-------------------------------------------------------------------|-----------------------------------------------|\r\n| `RegistryEntity`       | Main component which encapsulates whole entity administration     | `useRegistryEntityAdministration`             |\r\n| `RegistryTable`        | Table with data, with filtering and sorting                       | `useRegistryEntityContext`, `useRegistrySort` |\r\n| `RegistryFilter`       | Search input and filter properties                                | `useRegistryFilter`                           |\r\n| `RegistryForm`         | Form for adding and updating entities                             | `useRegistryEntity`, `useRegistryForm`        |\r\n| `RegistryEntityPicker` | Component for picking an entity from a list of available entities | `useRegistryConfigurationStore`               |\r\n\r\n","readmeFilename":"README.md"}