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
128
Issues
128
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
b93fcabe
Commit
b93fcabe
authored
Jul 08, 2022
by
arturo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
>>> BEGIN
parent
83b4876a
Pipeline
#3013
canceled with stage
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
53 additions
and
23 deletions
+53
-23
bootstrap-darkster.css
dist/styles/bootstrap-darkster.css
+1
-1
bootstrap-default.css
dist/styles/bootstrap-default.css
+1
-1
bootstrap-greyson.css
dist/styles/bootstrap-greyson.css
+1
-1
bootstrap-herbie.css
dist/styles/bootstrap-herbie.css
+1
-1
bootstrap-monotony.css
dist/styles/bootstrap-monotony.css
+1
-1
Search.purs
src/Gargantext/Components/NgramsTable/Search.purs
+47
-17
_list.sass
src/sass/_legacy/_list.sass
+1
-1
No files found.
dist/styles/bootstrap-darkster.css
View file @
b93fcabe
...
...
@@ -8955,7 +8955,7 @@ select.form-control {
margin-right
:
8px
;
}
.
search-button-prepend
.input-group-text
{
.
ngrams-table-search-button
.input-group-text
{
width
:
41px
;
z-index
:
initial
;
}
...
...
dist/styles/bootstrap-default.css
View file @
b93fcabe
...
...
@@ -8908,7 +8908,7 @@ select.form-control {
margin-right
:
8px
;
}
.
search-button-prepend
.input-group-text
{
.
ngrams-table-search-button
.input-group-text
{
width
:
41px
;
z-index
:
initial
;
}
...
...
dist/styles/bootstrap-greyson.css
View file @
b93fcabe
...
...
@@ -8664,7 +8664,7 @@ select.form-control {
margin-right
:
8px
;
}
.
search-button-prepend
.input-group-text
{
.
ngrams-table-search-button
.input-group-text
{
width
:
41px
;
z-index
:
initial
;
}
...
...
dist/styles/bootstrap-herbie.css
View file @
b93fcabe
...
...
@@ -8912,7 +8912,7 @@ select.form-control {
margin-right
:
8px
;
}
.
search-button-prepend
.input-group-text
{
.
ngrams-table-search-button
.input-group-text
{
width
:
41px
;
z-index
:
initial
;
}
...
...
dist/styles/bootstrap-monotony.css
View file @
b93fcabe
...
...
@@ -8913,7 +8913,7 @@ select.form-control {
margin-right
:
8px
;
}
.
search-button-prepend
.input-group-text
{
.
ngrams-table-search-button
.input-group-text
{
width
:
41px
;
z-index
:
initial
;
}
...
...
src/Gargantext/Components/NgramsTable/Search.purs
View file @
b93fcabe
...
...
@@ -45,42 +45,73 @@ type SearchButtonProps =
searchButton :: R2.Component SearchButtonProps
searchButton = R.createElement searchButtonCpt
searchButtonCpt :: R.Component SearchButtonProps
searchButtonCpt = here.component "searchButton" cpt where
cpt { inputRef, searchQuery } _ = do
-- | States
-- |
searchQuery' <- T.useLive T.unequal searchQuery
-- | Behaviors
-- |
let
onReset _ = do
R2.setInputValue inputRef ""
T.write_ "" searchQuery
onSubmit _ = do
T.write_ (R2.getInputValue inputRef) searchQuery
-- | Render
-- |
pure $
H.div
{ className: "search-button-append input-group-append" }
{ className: intercalate " "
[ "ngrams-table-search-button"
, "input-group-append"
]
}
[
if searchQuery' /= ""
then
R.fragment
[ B.button
[
B.button
{ variant: ButtonVariant Light
, callback:
\_ -> do
R2.setInputValue inputRef "
"
T.write_ "" searchQuery
, className: "input-group-text" }
[
B.icon
, callback:
onReset
, className: "input-group-text
"
}
[
B.icon
{ name: "times"
, className: "text-danger"
}
]
, B.button { callback: \_ -> T.write_ (R2.getInputValue inputRef) searchQuery
, className: "input-group-text" }
[ B.icon { name: "search" }
,
B.button
{ variant: ButtonVariant Light
, callback: onSubmit
, className: "input-group-text"
}
[ B.icon
{ name: "search"
, className: "text-secondary"
}
]
]
else
B.button { callback: \_ -> T.write_ (R2.getInputValue inputRef) searchQuery
, className: "input-group-text" }
[ B.icon
{ name: "search" }
]
B.button
{ variant: ButtonVariant Light
, callback: onSubmit
, className: "input-group-text"
}
[ B.icon
{ name: "search"
, className: "text-secondary"
}
]
]
type SearchFieldInputProps =
...
...
@@ -109,4 +140,3 @@ searchFieldInputCpt = here.component "searchFieldInput" cpt where
T.write_ (R2.getInputValue inputRef) searchQuery
else
pure unit
src/sass/_legacy/_list.sass
View file @
b93fcabe
...
...
@@ -52,7 +52,7 @@
///////////////////////////////////////////////////:
.
search-button-prepend
.
ngrams-table-search-button
.input-group-text
// @XXX Glyphicon icons lack of homogeneous width
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment