Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
138
Issues
138
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
purescript-gargantext
Commits
b3b47ea2
Commit
b3b47ea2
authored
Jul 22, 2022
by
arturo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[layout] Replace "react-awesome-popover"
*
#427
parent
786e7c81
Pipeline
#3057
failed with stage
in 0 seconds
Changes
26
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
426 additions
and
34165 deletions
+426
-34165
index.html
dist/index.html
+2
-0
bootstrap.bundle.min.js
dist/js/bootstrap@4.6.2/bootstrap.bundle.min.js
+7
-0
jquery.slim.min.js
dist/js/jquery@3.5.1/jquery.slim.min.js
+2
-0
knowledge-phylomemy.json
dist/js/knowledge-phylomemy.json
+0
-13418
vaccines_countries_06_2021.json
dist/js/vaccines_countries_06_2021.json
+0
-20152
bootstrap-darkster.css
dist/styles/bootstrap-darkster.css
+19
-54
bootstrap-default.css
dist/styles/bootstrap-default.css
+19
-54
bootstrap-greyson.css
dist/styles/bootstrap-greyson.css
+19
-54
bootstrap-herbie.css
dist/styles/bootstrap-herbie.css
+19
-54
bootstrap-monotony.css
dist/styles/bootstrap-monotony.css
+19
-54
BaseModal.js
src/Gargantext/Components/Bootstrap/Floaty/BaseModal.js
+23
-5
BaseModal.purs
src/Gargantext/Components/Bootstrap/Floaty/BaseModal.purs
+126
-72
Button.purs
src/Gargantext/Components/Bootstrap/Inline/Button.purs
+1
-1
Types.purs
src/Gargantext/Components/Bootstrap/Types.purs
+21
-1
DocsTable.purs
src/Gargantext/Components/DocsTable.purs
+3
-2
Box.purs
src/Gargantext/Components/FolderView/Box.purs
+15
-10
Node.purs
src/Gargantext/Components/Forest/Tree/Node.purs
+38
-39
Box.purs
src/Gargantext/Components/Forest/Tree/Node/Box.purs
+27
-24
Login.purs
src/Gargantext/Components/Login.purs
+5
-2
Modal.js
src/Gargantext/Components/Modals/Modal.js
+0
-17
Modal.purs
src/Gargantext/Components/Modals/Modal.purs
+0
-9
Router.purs
src/Gargantext/Components/Router.purs
+22
-18
Themes.js
src/Gargantext/Components/Themes.js
+0
-17
Themes.purs
src/Gargantext/Components/Themes.purs
+6
-23
_tree.sass
src/sass/_legacy/_tree.sass
+26
-69
_grouped.scss
src/sass/components/_grouped.scss
+7
-16
No files found.
dist/index.html
View file @
b3b47ea2
...
...
@@ -12,6 +12,8 @@
<body>
<div
id=
"app"
></div>
<div
id=
"portal"
></div>
<script
src=
"js/jquery@3.5.1/jquery.slim.min.js"
></script>
<script
src=
"js/bootstrap@4.6.2/bootstrap.bundle.min.js"
></script>
<script
src=
"bundle.js"
></script>
</body>
</html>
dist/js/bootstrap@4.6.2/bootstrap.bundle.min.js
0 → 100644
View file @
b3b47ea2
This diff is collapsed.
Click to expand it.
dist/js/jquery@3.5.1/jquery.slim.min.js
0 → 100644
View file @
b3b47ea2
This diff is collapsed.
Click to expand it.
dist/js/knowledge-phylomemy.json
deleted
100644 → 0
View file @
786e7c81
This diff is collapsed.
Click to expand it.
dist/js/vaccines_countries_06_2021.json
deleted
100644 → 0
View file @
786e7c81
This diff is collapsed.
Click to expand it.
dist/styles/bootstrap-darkster.css
View file @
b3b47ea2
...
...
@@ -5941,30 +5941,23 @@ h3 {
font-weight
:
700
;
}
.b-modal--visible
{
display
:
block
;
}
.b-modal__content
{
background-color
:
#fff
;
ma
x-height
:
calc
(
100%
-
3.5rem
)
;
overflow
:
auto
;
ma
rgin-left
:
1.75rem
;
margin-right
:
1.75rem
;
}
.b-modal__header
{
background-color
:
white
;
}
.b-modal__header__
content
{
.b-modal__header__
title
{
color
:
#FF550B
;
font-size
:
21px
;
}
.b-modal__overlay
{
width
:
100%
;
height
:
100%
;
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
position
:
absolute
;
}
.b-modal__overlay--collapsible
{
cursor
:
pointer
;
}
.b-spinner
{
font-size
:
inherit
;
...
...
@@ -8404,65 +8397,37 @@ a:focus, a:hover {
padding-right
:
20px
;
}
#node-popup-tooltip
{
position
:
fixed
;
background-color
:
white
;
border-radius
:
6px
;
top
:
50%
;
left
:
50%
;
transform
:
translateX
(
-50%
)
translateY
(
-50%
);
}
#node-popup-tooltip
:hover
{
border
:
none
;
text-decoration
:
none
;
}
#node-popup-tooltip
.tree
.node
{
margin-top
:
5px
;
}
#node-popup-tooltip
.tree
.children
.node
{
padding-left
:
15px
;
.forest-tree-node-modal
{
width
:
fit-content
;
min-width
:
544px
;
max-width
:
100vw
;
}
#node-popup-tooltip
.panel-actions
.almost-useable
{
.node-popup-tooltip
.panel-actions__almost-useable
{
color
:
orange
;
}
#node-popup-tooltip
.panel-actions
.
development-in-progress
{
.node-popup-tooltip
.panel-actions__
development-in-progress
{
color
:
red
;
}
#node-popup-tooltip
.panel-actions
.
ok-to-use
{
.node-popup-tooltip
.panel-actions__
ok-to-use
{
color
:
black
;
}
#
node-popup-tooltip
.popup-container
{
.
node-popup-tooltip
.popup-container
{
display
:
flex
;
flex-direction
:
colum
;
}
#node-popup-tooltip
.popup-container
>
.card
{
width
:
auto
!important
;
min-width
:
544px
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.2
);
box-shadow
:
0
2px
5px
rgba
(
0
,
0
,
0
,
0.2
);
margin-bottom
:
initial
;
flex-direction
:
column
;
}
#node-popup-tooltip
.popup-container
>
.card
.fa-pencil
{
.node-popup-tooltip
.popup-container__header
.fa-pencil
{
color
:
black
;
}
#node-popup-tooltip
.popup-container
>
.card
.card-
body
{
.node-popup-tooltip
.popup-container__
body
{
display
:
flex
;
justify-content
:
center
;
background-color
:
white
;
border
:
none
;
}
#node-popup-tooltip
.popup-container
>
.card
.card-body
.spacer
{
margin
:
8px
;
background-color
:
#000000
;
}
#node-popup-tooltip
.popup-container
.frame-search.card
{
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.2
);
box-shadow
:
0
2px
5px
rgba
(
0
,
0
,
0
,
0.2
);
height
:
600px
;
.frame-search.card
{
width
:
1000px
;
}
#node-popup-tooltip
.popup-container-body
{
max-height
:
70vh
;
overflow-y
:
auto
;
height
:
600px
;
}
.forest-layout
{
...
...
dist/styles/bootstrap-default.css
View file @
b3b47ea2
...
...
@@ -5895,30 +5895,23 @@ h3 {
font-weight
:
700
;
}
.b-modal--visible
{
display
:
block
;
}
.b-modal__content
{
background-color
:
#fff
;
ma
x-height
:
calc
(
100%
-
3.5rem
)
;
overflow
:
auto
;
ma
rgin-left
:
1.75rem
;
margin-right
:
1.75rem
;
}
.b-modal__header
{
background-color
:
rgba
(
0
,
0
,
0
,
0.03
);
}
.b-modal__header__
content
{
.b-modal__header__
title
{
color
:
#005a9a
;
font-size
:
21px
;
}
.b-modal__overlay
{
width
:
100%
;
height
:
100%
;
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
position
:
absolute
;
}
.b-modal__overlay--collapsible
{
cursor
:
pointer
;
}
.b-spinner
{
font-size
:
inherit
;
...
...
@@ -8357,65 +8350,37 @@ a:focus, a:hover {
padding-right
:
20px
;
}
#node-popup-tooltip
{
position
:
fixed
;
background-color
:
white
;
border-radius
:
6px
;
top
:
50%
;
left
:
50%
;
transform
:
translateX
(
-50%
)
translateY
(
-50%
);
}
#node-popup-tooltip
:hover
{
border
:
none
;
text-decoration
:
none
;
}
#node-popup-tooltip
.tree
.node
{
margin-top
:
5px
;
}
#node-popup-tooltip
.tree
.children
.node
{
padding-left
:
15px
;
.forest-tree-node-modal
{
width
:
fit-content
;
min-width
:
544px
;
max-width
:
100vw
;
}
#node-popup-tooltip
.panel-actions
.almost-useable
{
.node-popup-tooltip
.panel-actions__almost-useable
{
color
:
orange
;
}
#node-popup-tooltip
.panel-actions
.
development-in-progress
{
.node-popup-tooltip
.panel-actions__
development-in-progress
{
color
:
red
;
}
#node-popup-tooltip
.panel-actions
.
ok-to-use
{
.node-popup-tooltip
.panel-actions__
ok-to-use
{
color
:
black
;
}
#
node-popup-tooltip
.popup-container
{
.
node-popup-tooltip
.popup-container
{
display
:
flex
;
flex-direction
:
colum
;
}
#node-popup-tooltip
.popup-container
>
.card
{
width
:
auto
!important
;
min-width
:
544px
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.2
);
box-shadow
:
0
2px
5px
rgba
(
0
,
0
,
0
,
0.2
);
margin-bottom
:
initial
;
flex-direction
:
column
;
}
#node-popup-tooltip
.popup-container
>
.card
.fa-pencil
{
.node-popup-tooltip
.popup-container__header
.fa-pencil
{
color
:
black
;
}
#node-popup-tooltip
.popup-container
>
.card
.card-
body
{
.node-popup-tooltip
.popup-container__
body
{
display
:
flex
;
justify-content
:
center
;
background-color
:
white
;
border
:
none
;
}
#node-popup-tooltip
.popup-container
>
.card
.card-body
.spacer
{
margin
:
8px
;
background-color
:
#fff
;
}
#node-popup-tooltip
.popup-container
.frame-search.card
{
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.2
);
box-shadow
:
0
2px
5px
rgba
(
0
,
0
,
0
,
0.2
);
height
:
600px
;
.frame-search.card
{
width
:
1000px
;
}
#node-popup-tooltip
.popup-container-body
{
max-height
:
70vh
;
overflow-y
:
auto
;
height
:
600px
;
}
.forest-layout
{
...
...
dist/styles/bootstrap-greyson.css
View file @
b3b47ea2
...
...
@@ -5650,30 +5650,23 @@ h3 {
font-weight
:
700
;
}
.b-modal--visible
{
display
:
block
;
}
.b-modal__content
{
background-color
:
#fff
;
ma
x-height
:
calc
(
100%
-
3.5rem
)
;
overflow
:
auto
;
ma
rgin-left
:
1.75rem
;
margin-right
:
1.75rem
;
}
.b-modal__header
{
background-color
:
rgba
(
0
,
0
,
0
,
0.03
);
}
.b-modal__header__
content
{
.b-modal__header__
title
{
color
:
#2f3c48
;
font-size
:
21px
;
}
.b-modal__overlay
{
width
:
100%
;
height
:
100%
;
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
position
:
absolute
;
}
.b-modal__overlay--collapsible
{
cursor
:
pointer
;
}
.b-spinner
{
font-size
:
inherit
;
...
...
@@ -8113,65 +8106,37 @@ a:focus, a:hover {
padding-right
:
20px
;
}
#node-popup-tooltip
{
position
:
fixed
;
background-color
:
white
;
border-radius
:
6px
;
top
:
50%
;
left
:
50%
;
transform
:
translateX
(
-50%
)
translateY
(
-50%
);
}
#node-popup-tooltip
:hover
{
border
:
none
;
text-decoration
:
none
;
}
#node-popup-tooltip
.tree
.node
{
margin-top
:
5px
;
}
#node-popup-tooltip
.tree
.children
.node
{
padding-left
:
15px
;
.forest-tree-node-modal
{
width
:
fit-content
;
min-width
:
544px
;
max-width
:
100vw
;
}
#node-popup-tooltip
.panel-actions
.almost-useable
{
.node-popup-tooltip
.panel-actions__almost-useable
{
color
:
orange
;
}
#node-popup-tooltip
.panel-actions
.
development-in-progress
{
.node-popup-tooltip
.panel-actions__
development-in-progress
{
color
:
red
;
}
#node-popup-tooltip
.panel-actions
.
ok-to-use
{
.node-popup-tooltip
.panel-actions__
ok-to-use
{
color
:
black
;
}
#
node-popup-tooltip
.popup-container
{
.
node-popup-tooltip
.popup-container
{
display
:
flex
;
flex-direction
:
colum
;
}
#node-popup-tooltip
.popup-container
>
.card
{
width
:
auto
!important
;
min-width
:
544px
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.2
);
box-shadow
:
0
2px
5px
rgba
(
0
,
0
,
0
,
0.2
);
margin-bottom
:
initial
;
flex-direction
:
column
;
}
#node-popup-tooltip
.popup-container
>
.card
.fa-pencil
{
.node-popup-tooltip
.popup-container__header
.fa-pencil
{
color
:
black
;
}
#node-popup-tooltip
.popup-container
>
.card
.card-
body
{
.node-popup-tooltip
.popup-container__
body
{
display
:
flex
;
justify-content
:
center
;
background-color
:
white
;
border
:
none
;
}
#node-popup-tooltip
.popup-container
>
.card
.card-body
.spacer
{
margin
:
8px
;
background-color
:
#fff
;
}
#node-popup-tooltip
.popup-container
.frame-search.card
{
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.2
);
box-shadow
:
0
2px
5px
rgba
(
0
,
0
,
0
,
0.2
);
height
:
600px
;
.frame-search.card
{
width
:
1000px
;
}
#node-popup-tooltip
.popup-container-body
{
max-height
:
70vh
;
overflow-y
:
auto
;
height
:
600px
;
}
.forest-layout
{
...
...
dist/styles/bootstrap-herbie.css
View file @
b3b47ea2
...
...
@@ -5898,30 +5898,23 @@ h3 {
font-weight
:
700
;
}
.b-modal--visible
{
display
:
block
;
}
.b-modal__content
{
background-color
:
#fff
;
ma
x-height
:
calc
(
100%
-
3.5rem
)
;
overflow
:
auto
;
ma
rgin-left
:
1.75rem
;
margin-right
:
1.75rem
;
}
.b-modal__header
{
background-color
:
rgba
(
0
,
0
,
0
,
0.03
);
}
.b-modal__header__
content
{
.b-modal__header__
title
{
color
:
#083358
;
font-size
:
21px
;
}
.b-modal__overlay
{
width
:
100%
;
height
:
100%
;
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
position
:
absolute
;
}
.b-modal__overlay--collapsible
{
cursor
:
pointer
;
}
.b-spinner
{
font-size
:
inherit
;
...
...
@@ -8361,65 +8354,37 @@ a:focus, a:hover {
padding-right
:
20px
;
}
#node-popup-tooltip
{
position
:
fixed
;
background-color
:
white
;
border-radius
:
6px
;
top
:
50%
;
left
:
50%
;
transform
:
translateX
(
-50%
)
translateY
(
-50%
);
}
#node-popup-tooltip
:hover
{
border
:
none
;
text-decoration
:
none
;
}
#node-popup-tooltip
.tree
.node
{
margin-top
:
5px
;
}
#node-popup-tooltip
.tree
.children
.node
{
padding-left
:
15px
;
.forest-tree-node-modal
{
width
:
fit-content
;
min-width
:
544px
;
max-width
:
100vw
;
}
#node-popup-tooltip
.panel-actions
.almost-useable
{
.node-popup-tooltip
.panel-actions__almost-useable
{
color
:
orange
;
}
#node-popup-tooltip
.panel-actions
.
development-in-progress
{
.node-popup-tooltip
.panel-actions__
development-in-progress
{
color
:
red
;
}
#node-popup-tooltip
.panel-actions
.
ok-to-use
{
.node-popup-tooltip
.panel-actions__
ok-to-use
{
color
:
black
;
}
#
node-popup-tooltip
.popup-container
{
.
node-popup-tooltip
.popup-container
{
display
:
flex
;
flex-direction
:
colum
;
}
#node-popup-tooltip
.popup-container
>
.card
{
width
:
auto
!important
;
min-width
:
544px
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.2
);
box-shadow
:
0
2px
5px
rgba
(
0
,
0
,
0
,
0.2
);
margin-bottom
:
initial
;
flex-direction
:
column
;
}
#node-popup-tooltip
.popup-container
>
.card
.fa-pencil
{
.node-popup-tooltip
.popup-container__header
.fa-pencil
{
color
:
black
;
}
#node-popup-tooltip
.popup-container
>
.card
.card-
body
{
.node-popup-tooltip
.popup-container__
body
{
display
:
flex
;
justify-content
:
center
;
background-color
:
white
;
border
:
none
;
}
#node-popup-tooltip
.popup-container
>
.card
.card-body
.spacer
{
margin
:
8px
;
background-color
:
#fff
;
}
#node-popup-tooltip
.popup-container
.frame-search.card
{
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.2
);
box-shadow
:
0
2px
5px
rgba
(
0
,
0
,
0
,
0.2
);
height
:
600px
;
.frame-search.card
{
width
:
1000px
;
}
#node-popup-tooltip
.popup-container-body
{
max-height
:
70vh
;
overflow-y
:
auto
;
height
:
600px
;
}
.forest-layout
{
...
...
dist/styles/bootstrap-monotony.css
View file @
b3b47ea2
...
...
@@ -5899,30 +5899,23 @@ h3 {
font-weight
:
700
;
}
.b-modal--visible
{
display
:
block
;
}
.b-modal__content
{
background-color
:
#fff
;
ma
x-height
:
calc
(
100%
-
3.5rem
)
;
overflow
:
auto
;
ma
rgin-left
:
1.75rem
;
margin-right
:
1.75rem
;
}
.b-modal__header
{
background-color
:
rgba
(
0
,
0
,
0
,
0.03
);
}
.b-modal__header__
content
{
.b-modal__header__
title
{
color
:
#222222
;
font-size
:
21px
;
}
.b-modal__overlay
{
width
:
100%
;
height
:
100%
;
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
position
:
absolute
;
}
.b-modal__overlay--collapsible
{
cursor
:
pointer
;
}
.b-spinner
{
font-size
:
inherit
;
...
...
@@ -8362,65 +8355,37 @@ a:focus, a:hover {
padding-right
:
20px
;
}
#node-popup-tooltip
{
position
:
fixed
;
background-color
:
white
;
border-radius
:
6px
;
top
:
50%
;
left
:
50%
;
transform
:
translateX
(
-50%
)
translateY
(
-50%
);
}
#node-popup-tooltip
:hover
{
border
:
none
;
text-decoration
:
none
;
}
#node-popup-tooltip
.tree
.node
{
margin-top
:
5px
;
}
#node-popup-tooltip
.tree
.children
.node
{
padding-left
:
15px
;
.forest-tree-node-modal
{
width
:
fit-content
;
min-width
:
544px
;
max-width
:
100vw
;
}
#node-popup-tooltip
.panel-actions
.almost-useable
{
.node-popup-tooltip
.panel-actions__almost-useable
{
color
:
orange
;
}
#node-popup-tooltip
.panel-actions
.
development-in-progress
{
.node-popup-tooltip
.panel-actions__
development-in-progress
{
color
:
red
;
}
#node-popup-tooltip
.panel-actions
.
ok-to-use
{
.node-popup-tooltip
.panel-actions__
ok-to-use
{
color
:
black
;
}
#
node-popup-tooltip
.popup-container
{
.
node-popup-tooltip
.popup-container
{
display
:
flex
;
flex-direction
:
colum
;
}
#node-popup-tooltip
.popup-container
>
.card
{
width
:
auto
!important
;
min-width
:
544px
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.2
);
box-shadow
:
0
2px
5px
rgba
(
0
,
0
,
0
,
0.2
);
margin-bottom
:
initial
;
flex-direction
:
column
;
}
#node-popup-tooltip
.popup-container
>
.card
.fa-pencil
{
.node-popup-tooltip
.popup-container__header
.fa-pencil
{
color
:
black
;
}
#node-popup-tooltip
.popup-container
>
.card
.card-
body
{
.node-popup-tooltip
.popup-container__
body
{
display
:
flex
;
justify-content
:
center
;
background-color
:
white
;
border
:
none
;
}
#node-popup-tooltip
.popup-container
>
.card
.card-body
.spacer
{
margin
:
8px
;
background-color
:
#fff
;
}
#node-popup-tooltip
.popup-container
.frame-search.card
{
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.2
);
box-shadow
:
0
2px
5px
rgba
(
0
,
0
,
0
,
0.2
);
height
:
600px
;
.frame-search.card
{
width
:
1000px
;
}
#node-popup-tooltip
.popup-container-body
{
max-height
:
70vh
;
overflow-y
:
auto
;
height
:
600px
;
}
.forest-layout
{
...
...
src/Gargantext/Components/Bootstrap/Floaty/BaseModal.js
View file @
b3b47ea2
'use strict'
;
exports
.
_addClassName
=
function
(
window
,
className
)
{
window
.
document
.
body
.
classList
.
add
(
className
);
exports
.
_show
=
show
;
exports
.
_hide
=
hide
;
/**
* @function show
* @param {Window} window
* @param {string} querySelector
* @unpure {Object} window.$
*/
function
show
(
window
,
querySelector
)
{
window
.
$
(
querySelector
).
modal
(
'show'
);
}
exports
.
_removeClassName
=
function
(
window
,
className
)
{
window
.
document
.
body
.
classList
.
remove
(
className
);
/**
* @function hide
* @param {Window} window
* @param {string} querySelector
* @unpure {Object} window.$
*/
function
hide
(
window
,
querySelector
)
{
window
.
$
(
querySelector
).
modal
(
'hide'
);
// @XXX Bootstrap not removing some modal elements on "hide" method
// @https://stackoverflow.com/questions/50168312/bootstrap-4-close-modal-backdrop-doesnt-disappear
window
.
$
(
'body'
).
removeClass
(
'modal-open'
);
window
.
$
(
'body'
).
css
(
'padding-right'
,
'0'
);
window
.
$
(
'.modal-backdrop'
).
remove
();
}
src/Gargantext/Components/Bootstrap/Floaty/BaseModal.purs
View file @
b3b47ea2
...
...
@@ -4,153 +4,207 @@ import Gargantext.Prelude
import DOM.Simple (Window, window)
import Data.Foldable (intercalate)
import Data.Maybe (Maybe(..))
import Data.UUID as UUID
import Effect (Effect)
import Effect.Uncurried (EffectFn2, runEffectFn2)
import Gargantext.Utils (nbsp, (?))
import Gargantext.Components.Bootstrap.Types (ModalSizing(..))
import Gargantext.Hooks.UpdateEffect (useUpdateEffect1')
import Gargantext.Utils ((?))
import Gargantext.Utils.Reactix as R2
import Reactix as R
import Reactix.DOM.HTML as H
import Toestand as T
foreign import _addClassName :: EffectFn2 Window String Unit
foreign import _removeClassName :: EffectFn2 Window String Unit
foreign import _show :: EffectFn2
Window
String
Unit
showModal ::
Window
-> String
-> Effect Unit
showModal = runEffectFn2 _show
foreign import _hide :: EffectFn2
Window
String
Unit
hideModal ::
Window
-> String
-> Effect Unit
hideModal = runEffectFn2 _hide
type Props =
( isVisibleBox :: T.Box Boolean
( isVisibleBox
:: T.Box Boolean
| Options
)
type Options =
( id :: String
, title :: String
, hasBackground :: Boolean
, hasCollapsibleBackground :: Boolean
( modalClassName :: String
, title :: Maybe String
, hasCollapsibleBackground :: Boolean
, hasInnerScroll :: Boolean
, noHeader :: Boolean
, noBody :: Boolean -- ie. Bootstrap Body
, size :: ModalSizing
)
options :: Record Options
options =
{ id: ""
, title: ""
, hasBackground: true
, hasCollapsibleBackground: true
{ modalClassName : ""
, title : Nothing
, hasCollapsibleBackground : true
, hasInnerScroll : false
, noHeader : false
, noBody : false
, size : MediumModalSize
}
componentName :: String
componentName = "b-modal"
vendorName :: String
vendorName = "modal"
-- | Structural Component for the Bootstrap modal