1.14.1 • Published 2 years ago

grid-component-react-ex-1 v1.14.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

React - Grid component

Reusable grid component

npm install grid-component-react-ex

Required library for the button and arrays

npm i @fluentui/react
npm i @fluentui/react-hooks

You’ll need to install React and PropTypes separately since those dependencies aren’t included in the package.

<GridComponent
Table={Table} //Name of entity
SearchBoxComponent={SearchBoxComponent} //Search component input field
SearchBoxClass={SearchBoxClass} //Search componet name of classes
PlaceHolderText={PlaceHolderText} //Search componet placeholder text
SearchBoxStyle={SearchBoxStyle} //Search component style
RemoveSearch={RemoveSearch} //Name of localstorage key. to remove search data
setFilterBySearch={setFilterBySearch} //Set filter data function, where set filter information
SearchString={SearchString} //Search string state variable
DisplayExport={DisplayExport} //Allow to display export or not (true | false)
IsAllowExport={IsAllowExport} //Allow to export file or not (true | false)
IsAllowAllButtons={IsAllowAllButtons} //Allow to display all action button (crud button)
DefaultButton={DefaultButton} //Button Component
ExportIcon={ExportIcon} //Icon props
ExportText={ExportText} //Button text props
ExportClass={ExportClass} //Button classNames props
PreviewPDFReport={PreviewPDFReport} //Export PDF function
FilterClass={FilterClass} //Filter button className
FilterSecondaryText={FilterSecondaryText} //Second filter button text custom filter
FilterButtonText={FilterButtonText} //Filter button text single filter
FilterIcon={FilterIcon} //Filter icon
FetchAdvanceFilterData={FetchAdvanceFilterData} //Add filter api 
SelectedColumn={SelectedColumn} //Array of selected column
FilterBySearch={FilterBySearch} //Array already applied filters
StoreMethod={StoreMethod} //Reducer action method
UrlRoute={UrlRoute} //Name of module to store data in localstorage
PrimaryButton={PrimaryButton} //Button component
IsAllowWriteInfo={IsAllowWriteInfo} //Allow user for add event
AddIcon={AddIcon} //Add (plus) icon
AddButtonClass={AddButtonClass} //Add button classname
OpenAddForm={OpenAddForm} //Function for click event to open add form
AddButtonText={AddButtonText} //Add button text
OpenColumnPanel={OpenColumnPanel} //Toggle function to open panel window (true/false)
RemoveSearchButton={RemoveSearchButton} //Remove search button component
SearchPara={SearchPara} //Search values
SetSearchPara={SetSearchPara} //Set method to change search paramaters
SearchParaElements={SearchParaElements} //Array of object of the whole search elements
SetSearchParaElement={SetSearchParaElement} //Set method to change all the search elements (add/remove/edit)
ParentTable={ParentTable} //Name of module table
JoinTable={JoinTable} //Name of other table name which is used for join
TableHead={TableHead} //Table header part of the header (array of object)
TableBody={TableBody} //Table body part of the data (array of object)
ColumnIndex={ColumnIndex} //Name of column based on database ("id")
SortData={SortData} //Perform sorting using this method 
OrderBy={OrderBy} //Order by values (asc | desc)
SortBy={SortBy} //Name of column based on database
AllowAccess={AllowAccess} //True | False
ModuleId={ModuleId} //Module id based on database record (1 | 2)
CommonGetSiteDataApi={CommonGetSiteDataApi} //Fetch single data api 
GetEditableData={GetEditableData} //Action method of reducer to store data
ViewApi={ViewApi} //Fetch single record api
SetLoading={SetLoading} //true/false
History={History} //History hook
Dispatch={Dispatch} //Dispatch hook
ViewFormUrl={ViewFormUrl} //View page route url
EditFormUrl={EditFormUrl} //Edit form route url
ToggleHideDialog={ToggleHideDialog} //Method to hide/show modal window of confirm while delete call 
ConfirmArchive={ConfirmArchive} //Method to hide/show modal window of confirm while data archive
ExportPdfReport={ExportPdfReport} //Export report function 
ReportName={ReportName} //Define name of exported file 
AllowViewInfo={AllowViewInfo} //Allow to view info or not (true | false)
AllowExportInfo={AllowExportInfo} //Allow to export report or not (true | false) 
AllowEditInfo={AllowEditInfo} //Allow to edit info or not (true | false)
AllowDeleteInfo={AllowDeleteInfo} //Allow to delete info or not (true | false)
AllowPrimaryInfo={AllowPrimaryInfo} //Allow to set detail primary or not (true | false)
AssignApi={AssignApi} //Assign API for client 
SetFieldsAsPrimary={SetFieldsAsPrimary} //Method to change primary set values
EntityName={EntityName} //Name of entity based on backend
FieldId={FieldId} //Module id based on database 
TotalRecord={TotalRecord} //Count of whole data 
PostsPerPage={PostsPerPage} //Count on single load data on page (10 per page)
CheckSpinner={CheckSpinner} //True | False
LoadMoreData={LoadMoreData} //Function to load more 10 data and append to the grid
SpinnerButton={SpinnerButton} //Spinner button component
toggleHideDialog={toggleHideDialog} //Function to hide/show dropdown 
alertClicked={alertClicked} //Function for the removing all the applied filter 
RemoveAdvFilter={RemoveAdvFilter} //Function remove adv filter
MenuItems={menuItems} //Array of dropdown inner option for custom fitler 
AddUserToArchive={AddUserToArchive} //Function for call api to user archive
ArchiveButtonText={ArchiveButtonText} //Archive button text
IsAllowArchive={IsAllowArchive} //Is allow to access archive
ToggleArchiveClientList={ToggleArchiveClientList} //True | False 
IsArchive={IsArchive} //True | False
toggleHideDialog={toggleHideDialog} //True | False
UseParamsData={parseInt(UseParamsData)} //id paramaters from url
IsAllowDragDrop={IsDragDrop} //Allow to user drag and drop (true|false)
HandleDragDrop={HandleDragDrop} //Function to change to change position and call api 
ChangeOrderButtonText={ChangeOrderButtonText} //Button text
IsModalOpen={IsModalOpen} //True | False
AllowModelOpen={AllowModelOpen} //True | False
/>
ajvacornajv-errorsajv-keywordsansi-regexansi-stylesaprobaarr-diffanymatcharr-flattenarr-unionarray-uniqueassertasn1.jsassign-symbolsasync-eachatobbabel-code-framebabel-generatorbabel-helper-bindify-decoratorsbabel-helper-builder-binary-assignment-operator-visitorbabel-helper-builder-react-jsxbabel-helper-call-delegatebabel-helper-define-mapbabel-helper-explode-assignable-expressionbabel-helper-function-namebabel-helper-get-function-aritybabel-helper-explode-classbabel-helper-hoist-variablesbabel-helper-optimise-call-expressionbabel-helper-regexbabel-helper-remap-async-to-generatorbabel-helper-replace-supersbabel-messagesbabel-helpersbabel-plugin-check-es2015-constantsbabel-plugin-syntax-async-functionsbabel-plugin-syntax-async-generatorsbabel-plugin-syntax-class-constructor-callbabel-plugin-syntax-class-propertiesbabel-plugin-syntax-decoratorsbabel-plugin-syntax-do-expressionsbabel-plugin-syntax-dynamic-importbabel-plugin-syntax-exponentiation-operatorbabel-plugin-syntax-export-extensionsbabel-plugin-syntax-function-bindbabel-plugin-syntax-flowbabel-plugin-syntax-jsxbabel-plugin-syntax-object-rest-spreadbabel-plugin-transform-async-generator-functionsbabel-plugin-syntax-trailing-function-commasbabel-plugin-transform-async-to-generatorbabel-plugin-transform-class-constructor-callbabel-plugin-transform-class-propertiesbabel-plugin-transform-decoratorsbabel-plugin-transform-es2015-arrow-functionsbabel-plugin-transform-do-expressionsbabel-plugin-transform-es2015-block-scoped-functionsbabel-plugin-transform-es2015-block-scopingbabel-plugin-transform-es2015-classesbabel-plugin-transform-es2015-computed-propertiesbabel-plugin-transform-es2015-destructuringbabel-plugin-transform-es2015-duplicate-keysbabel-plugin-transform-es2015-for-ofbabel-plugin-transform-es2015-function-namebabel-plugin-transform-es2015-modules-amdbabel-plugin-transform-es2015-literalsbabel-plugin-transform-es2015-modules-commonjsbabel-plugin-transform-es2015-modules-systemjsbabel-plugin-transform-es2015-object-superbabel-plugin-transform-es2015-modules-umdbabel-plugin-transform-es2015-parametersbabel-plugin-transform-es2015-shorthand-propertiesbabel-plugin-transform-es2015-spreadbabel-plugin-transform-es2015-sticky-regexbabel-plugin-transform-es2015-template-literalsbabel-plugin-transform-es2015-typeof-symbolbabel-plugin-transform-es2015-unicode-regexbabel-plugin-transform-exponentiation-operatorbabel-plugin-transform-export-extensionsbabel-plugin-transform-flow-strip-typesbabel-plugin-transform-function-bindbabel-plugin-transform-object-rest-spreadbabel-plugin-transform-react-display-namebabel-plugin-transform-react-jsxbabel-plugin-transform-react-jsx-selfbabel-plugin-transform-react-jsx-sourcebabel-plugin-transform-regeneratorbabel-plugin-transform-strict-modebabel-preset-stage-1babel-preset-flowbabel-preset-stage-2babel-preset-stage-3babel-registerbabel-runtimebabel-traversebabel-templatebabylonbabel-typesbalanced-matchbasebase64-jsbig.jsbinary-extensionsbluebirdbrace-expansionbn.jsbracesbrorandbrowserify-cipherbrowserify-aesbrowserify-desbrowserify-rsabrowserslistbrowserify-signbrowserify-zlibbufferbuffer-frombuffer-xorbuiltin-status-codescacachecache-basecamelcasecaniuse-litechalkchownrchokidarchrome-trace-eventcipher-baseclass-utilscliuicolor-convertcollection-visitcolor-namecommandercolorettecommondircomponent-emitterconcat-mapconcat-streamconstants-browserifyconsole-browserifycopy-concurrentlyconvert-source-mapcopy-descriptorcore-util-iscore-jscreate-hashcreate-ecdhcreate-hmaccross-spawncrypto-browserifycssescdecamelizecyclistdebugdecode-uri-componentdes.jsdefine-propertydetect-filedetect-indentdomain-browserdiffie-hellmanduplexifyelectron-to-chromiumellipticemojis-listemoji-regexend-of-streamenhanced-resolveescape-string-regexperrnoeslint-scopeesrecurseestraverseesutilsexpand-bracketseventsevp_bytestokeyexpand-tildeextend-shallowextglobfast-deep-equalfast-json-stable-stringifyfiggy-puddingfill-rangefind-cache-dirfind-upfindup-syncflush-write-streamfor-infragment-cachefrom2fs-write-stream-atomicfs.realpathget-caller-fileget-valueglob-parentglobglobal-modulesglobal-prefixglobalsgraceful-fshas-ansihas-flaghas-valueshas-valuehash-basehash.jshome-or-tmphmac-drbghomedir-polyfillhttps-browserifyieee754icss-utilsiferrimport-localimurmurhashinfer-ownerinflightinheritsiniinterpretinvariantis-binary-pathis-bufferis-accessor-descriptoris-data-descriptoris-descriptoris-extglobis-extendableis-fullwidth-code-pointis-finiteis-globis-numberis-plain-objectis-wslisexeisarrayis-windowsisobjectjs-tokensjsescjson-parse-better-errorsjson-schema-traversekind-ofloader-runnerjson5locate-pathloader-utilslodashloose-envifylru-cachemake-dirmap-visitmap-cachemd5.jsmemory-fsmicromatchmiller-rabinmime-dbmime-typesminimalistic-assertminimalistic-crypto-utilsminimatchmississippimixin-deepminimistmkdirpmove-concurrentlymsnanoidnanomatchnice-tryneo-asyncnode-libs-browserobject-assignnormalize-pathobject-copyobject-visitobject.pickonceos-browserifyos-homediros-tmpdirp-limitp-locatep-trypakoparse-passwdparallel-transformparse-asn1pascalcasepath-dirnamepath-browserifypath-existspath-is-absolutepath-keypbkdf2picomatchpkg-dirpifyposix-character-classespostcsspostcss-modules-extract-importspostcss-modules-local-by-defaultpostcss-modules-valuespostcss-modules-scopepostcss-selector-parserpostcss-value-parserprivateprocessprocess-nextick-argspromise-inflightprrpublic-encryptpumppumpifyquerystringpunycodequerystring-es3randombytesrandomfillreact-isreadable-streamreaddirpregenerator-transformregenerateregenerator-runtimeregex-notregexpu-coreregjsparserregjsgenremove-trailing-separatorrepeat-elementrepeat-stringrequire-directoryrepeatingrequire-main-filenameresolve-dirresolve-cwdresolve-fromresolve-urlretrimrafripemd160run-queuesafe-buffersafe-regexsafer-bufferschedulerschema-utilssemverserialize-javascriptset-blockingset-valuesetimmediatesha.jsshebang-commandslashshebang-regexsnapdragonsnapdragon-nodesnapdragon-utilsource-list-mapsource-mapsource-map-jssource-map-resolvesource-map-supportsource-map-urlsplit-stringssristream-browserifystatic-extendstream-eachstream-httpstring-widthstream-shiftstring_decoderstrip-ansisupports-colortersertapableterser-webpack-pluginthrough2timers-browserifyto-arraybufferto-object-pathto-fast-propertiesto-regex-rangetrim-righttypedarraytty-browserifyunion-valueto-regexunique-filenameunique-slugunset-valueupathuri-jsurixurluseutilutil-deprecatev8-compile-cachevm-browserifywatchpackwebpack-sourceswatchpack-chokidar2whichwhich-modulewrap-ansiwrappyworker-farmxtendyallisty18nyargsyargs-parser
1.14.1

2 years ago

1.14.0

2 years ago

1.13.10

2 years ago

1.13.9

2 years ago

1.13.8

2 years ago

1.13.7

2 years ago