-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: implement user view prefs (remote columns for one2manytree) * fix: adjustment in useNetworkRequest and development mode * fix: remove console.log * fix: try to debug weird bug * fix: debug weird bug * Revert "fix: debug weird bug" This reverts commit 1235374. * Revert "fix: try to debug weird bug" This reverts commit 51ae0e6. * feat: allow sort columns in one2many infinite trees * feat(inifite-tree): initial wip * fix: work * feat: adjust method not exported * feat: refactor for reusing localstorage and remotestorage column state hooks * feat: search tree infinite does mostly work * feat: more work * feat: adjust context props * feat: improve state restoring in infinite table * feat: adapt one2many to use new select all rows approach * feat: more adjustments in tree * fix: adjust namesearch prop * fix: adjust treeactionview switcher * feat: work on side filter * feat: more work on side filtering * feat: wip in side search drawer * fix: improve side drawer * feat: more adjsutmetns * feat: more work on side drawer * feat: improvements in filter * fix: adjust tree infinite from attr and implement name_Search * fix: avoid two calls and adjust selection when filtering * fix: select all ids with domain and mergedParams * fix: adjust name search selection * fix: improvements in search tree infinite * fix: glitch * fix: adjust tree aggregates * update gisce/react-formiga-table to v1.7.0 (#603) * chore(release): 2.21.0 [skip ci] # [2.21.0](v2.20.0...v2.21.0) (2024-09-17) ### Features * infinite one2many's improvements, sort and persist state ([#590](#590)) ([cbc4479](cbc4479)), closes [#591](#591) [#592](#592) * fix: adjust fixed height in graph components in forms (#598) gisce/webclient#1220 * chore(release): 2.21.1 [skip ci] ## [2.21.1](v2.21.0...v2.21.1) (2024-09-23) ### Bug Fixes * adjust fixed height in graph components in forms ([#598](#598)) ([d8cb903](d8cb903)) * fix: allow clear in selection fields (#602) * chore(release): 2.21.2 [skip ci] ## [2.21.2](v2.21.1...v2.21.2) (2024-09-25) ### Bug Fixes * allow clear in selection fields ([#602](#602)) ([e73fd0b](e73fd0b)) * feat: update gisce/react-formiga-table to v1.7.0 https://github.com/gisce/react-formiga-table/releases/tag/v1.7.0 --------- Co-authored-by: semantic-release-bot <[email protected]> Co-authored-by: Marc Güell Segarra <[email protected]> Co-authored-by: mguellsegarra <[email protected]> * update gisce/ooui to v2.11.0 (#604) * chore(release): 2.21.0 [skip ci] # [2.21.0](v2.20.0...v2.21.0) (2024-09-17) ### Features * infinite one2many's improvements, sort and persist state ([#590](#590)) ([cbc4479](cbc4479)), closes [#591](#591) [#592](#592) * fix: adjust fixed height in graph components in forms (#598) gisce/webclient#1220 * chore(release): 2.21.1 [skip ci] ## [2.21.1](v2.21.0...v2.21.1) (2024-09-23) ### Bug Fixes * adjust fixed height in graph components in forms ([#598](#598)) ([d8cb903](d8cb903)) * fix: allow clear in selection fields (#602) * chore(release): 2.21.2 [skip ci] ## [2.21.2](v2.21.1...v2.21.2) (2024-09-25) ### Bug Fixes * allow clear in selection fields ([#602](#602)) ([e73fd0b](e73fd0b)) * feat: update gisce/ooui to v2.11.0 https://github.com/gisce/ooui/releases/tag/v2.11.0 --------- Co-authored-by: semantic-release-bot <[email protected]> Co-authored-by: Marc Güell Segarra <[email protected]> Co-authored-by: mguellsegarra <[email protected]> --------- Co-authored-by: Gisce <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> Co-authored-by: mguellsegarra <[email protected]>
- Loading branch information
1 parent
8a73550
commit 41b390d
Showing
35 changed files
with
1,571 additions
and
215 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,14 +35,16 @@ | |
"dependencies": { | ||
"@ant-design/plots": "^1.0.9", | ||
"@gisce/fiber-diagram": "2.1.1", | ||
"@gisce/ooui": "2.10.2", | ||
"@gisce/ooui": "2.11.0", | ||
"@gisce/react-formiga-components": "1.8.0", | ||
"@gisce/react-formiga-table": "1.6.0", | ||
"@gisce/react-formiga-table": "1.7.0", | ||
"@monaco-editor/react": "^4.4.5", | ||
"@tabler/icons-react": "^2.11.0", | ||
"@types/deep-equal": "^1.0.4", | ||
"antd": "5.13.1", | ||
"buffer": "^6.0.3", | ||
"file-type-buffer-browser": "git+ssh://[email protected]/mguellsegarra/file-type-buffer-browser.git", | ||
"framer-motion": "^11.5.5", | ||
"interweave": "^13.0.0", | ||
"md5": "^2.3.0", | ||
"nanoid": "^5.0.4", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export type One2manyTreeDataForHash = { | ||
parentViewId?: number; | ||
treeViewId?: number; | ||
one2ManyFieldName: string; | ||
}; | ||
|
||
export type O2mDataForHashWithModel = One2manyTreeDataForHash & { | ||
model: string; | ||
}; | ||
|
||
export const getKey = (dataForHash: O2mDataForHashWithModel) => { | ||
return `columnState-${dataForHash.parentViewId}-${dataForHash.treeViewId}-${dataForHash.one2ManyFieldName}-${dataForHash.model}`; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export type TreeDataForHash = { | ||
treeViewId?: number; | ||
model: string; | ||
}; | ||
|
||
export const getKey = (dataForHash: TreeDataForHash) => { | ||
if (!dataForHash.treeViewId || !dataForHash.model) { | ||
return undefined; | ||
} | ||
return `columnState-${dataForHash.treeViewId}-${dataForHash.model}`; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React, { useState, useEffect, RefObject, useMemo } from "react"; | ||
|
||
export const useAvailableHeight = <T extends HTMLElement>({ | ||
elementRef, | ||
offset = 0, | ||
dependencies = [], | ||
}: { | ||
elementRef: RefObject<T>; | ||
offset?: number; | ||
dependencies?: React.DependencyList; | ||
}): number => { | ||
const [availableHeight, setAvailableHeight] = useState<number>(0); | ||
|
||
useEffect(() => { | ||
const updateHeight = () => { | ||
if (elementRef.current) { | ||
const windowHeight = window.innerHeight; | ||
const boundingRect = elementRef.current.getBoundingClientRect(); | ||
const availableHeight = windowHeight - boundingRect.top; | ||
setAvailableHeight(availableHeight); | ||
} | ||
}; | ||
|
||
updateHeight(); | ||
window.addEventListener("resize", updateHeight); | ||
|
||
return () => window.removeEventListener("resize", updateHeight); | ||
// eslint-disable-next-line react-hooks/exhaustive-deps | ||
}, [elementRef, ...dependencies]); | ||
|
||
const memoizedHeight = useMemo(() => availableHeight, [availableHeight]); | ||
|
||
return memoizedHeight - offset; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.