refine-rails 2.11.1 → 2.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/index.css +62 -92
- data/app/assets/stylesheets/index.tailwind.css +63 -94
- data/app/views/refine/inline/filters/_add_first_condition_button.html.erb +1 -1
- data/app/views/refine/inline/filters/_and_button.html.erb +6 -2
- data/app/views/refine/inline/filters/_criterion.html.erb +9 -14
- data/app/views/refine/inline/filters/_group.html.erb +1 -4
- data/app/views/refine/inline/filters/_or_button.html.erb +10 -8
- data/app/views/refine/inline/filters/_show.html.erb +1 -1
- data/lib/refine/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec12ae81254832b4944ed63912029ae7e3b72bd6a148099165639d9722ccffce
|
4
|
+
data.tar.gz: bd7502535b6c4e135047a9c575d7ae3897943dec9492ff846b466cb0acf28b67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3463b960fb9f18706ac6bac468f17cb6f82c2a3cebe1f5faf9c99cb6f56afb4f42bd63738d07d57541755e0f675f8863b718d9ba2d22620d3aa6ce9aa6609ed9
|
7
|
+
data.tar.gz: 2cecf6e61f615e5fbba835545a2e5d5963c4b992233ba4fa194fc4e0e9ce9618520aff2a016225197eaf54c7b1d1385a229449126a20725eb8d943c70ec8d65c
|
@@ -1229,7 +1229,9 @@
|
|
1229
1229
|
|
1230
1230
|
.refine--filter-control-group {
|
1231
1231
|
text-wrap: nowrap;
|
1232
|
+
flex-wrap: wrap;
|
1232
1233
|
display: flex;
|
1234
|
+
align-items: center;
|
1233
1235
|
}
|
1234
1236
|
|
1235
1237
|
.refine--group-join, .refine--condition-join {
|
@@ -1320,67 +1322,27 @@
|
|
1320
1322
|
position: relative;
|
1321
1323
|
}
|
1322
1324
|
|
1323
|
-
.refine--condition-pill-start {
|
1324
|
-
padding: 0 0 0 10px;
|
1325
|
-
&:before {
|
1326
|
-
content: "";
|
1327
|
-
position: absolute;
|
1328
|
-
left: -10px;
|
1329
|
-
top: -2px;
|
1330
|
-
bottom: -2px;
|
1331
|
-
border: 2px solid #eee;
|
1332
|
-
width: 3px;
|
1333
|
-
}
|
1334
|
-
&:hover {
|
1335
|
-
&:before{
|
1336
|
-
border-color: #aaa;
|
1337
|
-
}
|
1338
|
-
}
|
1339
|
-
&:before {
|
1340
|
-
border-radius: 6px 0 0 6px;
|
1341
|
-
left: 0;
|
1342
|
-
border-right: none;
|
1343
|
-
}
|
1344
|
-
}
|
1345
|
-
|
1346
|
-
.refine--condition-pill-end {
|
1347
|
-
padding: 0 10px 0 0;
|
1348
|
-
&:after {
|
1349
|
-
content: "";
|
1350
|
-
position: absolute;
|
1351
|
-
right: -10px;
|
1352
|
-
top: -6px;
|
1353
|
-
bottom: -6px;
|
1354
|
-
border: 2px solid #eee;
|
1355
|
-
width: 3px;
|
1356
|
-
}
|
1357
|
-
&:hover {
|
1358
|
-
&:after {
|
1359
|
-
border-color: #aaa;
|
1360
|
-
}
|
1361
|
-
}
|
1362
|
-
&:after {
|
1363
|
-
border-radius: 0 6px 6px 0;
|
1364
|
-
border-left: none;
|
1365
|
-
}
|
1366
|
-
}
|
1367
|
-
|
1368
1325
|
.refine--condition-pill {
|
1369
|
-
|
1370
|
-
|
1371
|
-
|
1372
|
-
|
1326
|
+
display: flex;
|
1327
|
+
align-items: center;
|
1328
|
+
background-color: #F2F4F7;
|
1329
|
+
border: 1px solid #EBEBEB;
|
1373
1330
|
border-radius: 6px;
|
1374
1331
|
font-size: 14px;
|
1375
1332
|
cursor: pointer;
|
1376
1333
|
position: relative;
|
1377
1334
|
white-space: nowrap;
|
1335
|
+
padding: 4px 8px;
|
1378
1336
|
&:hover {
|
1379
|
-
border-color: #
|
1337
|
+
border-color: #D1D5DB;
|
1338
|
+
background-color: #E5E7EB;
|
1380
1339
|
.refine--remove-condition {
|
1381
1340
|
display: block;
|
1382
1341
|
}
|
1383
1342
|
}
|
1343
|
+
&:active {
|
1344
|
+
border-color: #E5E7EB;
|
1345
|
+
}
|
1384
1346
|
&:not(:hover){
|
1385
1347
|
.refine--condition-value-wrapper {
|
1386
1348
|
display: none;
|
@@ -1388,6 +1350,10 @@
|
|
1388
1350
|
}
|
1389
1351
|
}
|
1390
1352
|
|
1353
|
+
.refine--condition-pill-button {
|
1354
|
+
display: flex;
|
1355
|
+
}
|
1356
|
+
|
1391
1357
|
.refine--filter-condition {
|
1392
1358
|
display: flex;
|
1393
1359
|
align-items: center;
|
@@ -1398,30 +1364,22 @@
|
|
1398
1364
|
padding: 4px;
|
1399
1365
|
}
|
1400
1366
|
|
1401
|
-
.refine--condition-pill-name {
|
1402
|
-
padding: 4px 8px;
|
1403
|
-
display: block;
|
1404
|
-
}
|
1405
|
-
|
1406
1367
|
.refine--remove-condition {
|
1407
1368
|
display: none;
|
1408
|
-
|
1409
|
-
padding:
|
1369
|
+
color: #fff;
|
1370
|
+
padding: 0px 2px 0px 2px;
|
1410
1371
|
border-radius: 50%;
|
1411
1372
|
position: absolute;
|
1412
1373
|
top: -8px;
|
1413
1374
|
right:-8px;
|
1414
|
-
background-color: #
|
1375
|
+
background-color: #ee3f3f;
|
1415
1376
|
z-index: 999;
|
1416
|
-
|
1417
|
-
|
1418
|
-
|
1419
|
-
|
1420
|
-
|
1421
|
-
|
1422
|
-
width: 6px;
|
1423
|
-
height: 2px;
|
1424
|
-
background-color: #fff;
|
1377
|
+
line-height: 1;
|
1378
|
+
border: 1.5px solid #fff;
|
1379
|
+
.material-icons-outlined.refine--icon-sm,
|
1380
|
+
.material-icons.refine--icon-sm,
|
1381
|
+
.icon.refine--icon-sm {
|
1382
|
+
padding: 2px 0 ;
|
1425
1383
|
}
|
1426
1384
|
}
|
1427
1385
|
|
@@ -1452,8 +1410,18 @@
|
|
1452
1410
|
animation-fill-mode: both;
|
1453
1411
|
}
|
1454
1412
|
|
1455
|
-
.refine--condition-value-clause {
|
1456
|
-
|
1413
|
+
.refine--condition-value-clause, .refine--condition-value-self {
|
1414
|
+
padding-left: 4px;
|
1415
|
+
}
|
1416
|
+
|
1417
|
+
.refine--condition-pill-name, .refine--condition-value-self {
|
1418
|
+
font-weight: 600;
|
1419
|
+
}
|
1420
|
+
|
1421
|
+
.refine--condition-value-self {
|
1422
|
+
max-width: 150px;
|
1423
|
+
text-overflow: ellipsis;
|
1424
|
+
overflow: hidden;
|
1457
1425
|
}
|
1458
1426
|
|
1459
1427
|
/* Form widgets */
|
@@ -1699,41 +1667,36 @@ input.refine--text-condition-input:focus {
|
|
1699
1667
|
color: #767676;
|
1700
1668
|
}
|
1701
1669
|
|
1702
|
-
.refine--add-condition-button.refine--add-first-condition-button,
|
1703
|
-
.refine--add-condition-group-button.refine--add-first-condition-button {
|
1704
|
-
border: 1px dotted #aaa;
|
1705
|
-
padding-right: 8px;
|
1706
|
-
line-height: 16px;
|
1707
|
-
&:hover {
|
1708
|
-
background-color: #fff;
|
1709
|
-
border-style: solid;
|
1710
|
-
color: #111;
|
1711
|
-
}
|
1712
|
-
}
|
1713
|
-
|
1714
1670
|
.refine--add-condition-button, .refine--add-group-button {
|
1715
1671
|
display: flex;
|
1716
1672
|
gap: 5px;
|
1717
1673
|
color: #767676;
|
1718
1674
|
font-size: 14px;
|
1719
1675
|
border-radius: 6px;
|
1720
|
-
padding: 5px;
|
1721
1676
|
align-items: center;
|
1722
|
-
background-color: #
|
1677
|
+
background-color: #F2F4F7;
|
1678
|
+
border: 1px solid #EBEBEB;
|
1679
|
+
cursor: pointer;
|
1723
1680
|
position: relative;
|
1681
|
+
white-space: nowrap;
|
1682
|
+
padding: 4px 8px;
|
1683
|
+
font-weight: 600;
|
1684
|
+
&:hover {
|
1685
|
+
border-color: #D1D5DB;
|
1686
|
+
background-color: #E5E7EB;
|
1687
|
+
}
|
1688
|
+
&:active {
|
1689
|
+
border-color: #E5E7EB;
|
1690
|
+
}
|
1724
1691
|
&:disabled {
|
1725
|
-
|
1726
|
-
background-color: #f8f8f8;
|
1692
|
+
opacity: 0.5;
|
1727
1693
|
cursor: not-allowed;
|
1728
1694
|
}
|
1729
|
-
&:not([disabled]):hover {
|
1730
|
-
color: #111;
|
1731
|
-
background-color: #f8f8f8;
|
1732
|
-
}
|
1733
1695
|
}
|
1734
1696
|
|
1735
|
-
.refine--add-group-
|
1736
|
-
|
1697
|
+
.refine--add-group-wrapper {
|
1698
|
+
padding-left: 10px;
|
1699
|
+
border-left: 1px solid #E5E7EB;
|
1737
1700
|
}
|
1738
1701
|
|
1739
1702
|
.refine--has-many-groups .refine--add-button-label {
|
@@ -1857,7 +1820,9 @@ button.refine--apply-button {
|
|
1857
1820
|
}
|
1858
1821
|
|
1859
1822
|
.refine--save-filter-link-label, .refine--clear-filter-link-label {
|
1860
|
-
|
1823
|
+
&:hover {
|
1824
|
+
border-bottom: 1px dotted #111;
|
1825
|
+
}
|
1861
1826
|
}
|
1862
1827
|
|
1863
1828
|
.refine--save-filter-input-wrapper {
|
@@ -1895,6 +1860,10 @@ input.refine--save-filter-input {
|
|
1895
1860
|
z-index: 9999;
|
1896
1861
|
}
|
1897
1862
|
|
1863
|
+
.refine--save-filter-form {
|
1864
|
+
margin-left: 8px;
|
1865
|
+
}
|
1866
|
+
|
1898
1867
|
.refine--hotkey {
|
1899
1868
|
border-radius: 4px;
|
1900
1869
|
background-color: rgba(255,255,255,.3);
|
@@ -1914,6 +1883,7 @@ input.refine--save-filter-input {
|
|
1914
1883
|
.material-icons.refine--icon-sm,
|
1915
1884
|
.icon.refine--icon-sm {
|
1916
1885
|
font-size: 14px;
|
1886
|
+
padding: 3px 0;
|
1917
1887
|
}
|
1918
1888
|
|
1919
1889
|
.refine--search-box {
|
@@ -408,7 +408,9 @@
|
|
408
408
|
|
409
409
|
.refine--filter-control-group {
|
410
410
|
text-wrap: nowrap;
|
411
|
+
flex-wrap: wrap;
|
411
412
|
display: flex;
|
413
|
+
align-items: center;
|
412
414
|
}
|
413
415
|
|
414
416
|
.refine--group-join, .refine--condition-join {
|
@@ -500,68 +502,27 @@
|
|
500
502
|
position: relative;
|
501
503
|
}
|
502
504
|
|
503
|
-
.refine--condition-pill-start {
|
504
|
-
padding: 0 0 0 10px;
|
505
|
-
&:before {
|
506
|
-
content: "";
|
507
|
-
position: absolute;
|
508
|
-
left: -10px;
|
509
|
-
top: -2px;
|
510
|
-
bottom: -2px;
|
511
|
-
border: 2px solid #eee;
|
512
|
-
width: 3px;
|
513
|
-
}
|
514
|
-
&:hover {
|
515
|
-
&:before{
|
516
|
-
border-color: #aaa;
|
517
|
-
}
|
518
|
-
}
|
519
|
-
&:before {
|
520
|
-
border-radius: 6px 0 0 6px;
|
521
|
-
left: 0;
|
522
|
-
border-right: none;
|
523
|
-
}
|
524
|
-
|
525
|
-
}
|
526
|
-
|
527
|
-
.refine--condition-pill-end {
|
528
|
-
padding: 0 10px 0 0;
|
529
|
-
&:after {
|
530
|
-
content: "";
|
531
|
-
position: absolute;
|
532
|
-
right: -10px;
|
533
|
-
top: -6px;
|
534
|
-
bottom: -6px;
|
535
|
-
border: 2px solid #eee;
|
536
|
-
width: 3px;
|
537
|
-
}
|
538
|
-
&:hover {
|
539
|
-
&:after {
|
540
|
-
border-color: #aaa;
|
541
|
-
}
|
542
|
-
}
|
543
|
-
&:after {
|
544
|
-
border-radius: 0 6px 6px 0;
|
545
|
-
border-left: none;
|
546
|
-
}
|
547
|
-
}
|
548
|
-
|
549
505
|
.refine--condition-pill {
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
506
|
+
display: flex;
|
507
|
+
align-items: center;
|
508
|
+
background-color: #F2F4F7;
|
509
|
+
border: 1px solid #EBEBEB;
|
554
510
|
border-radius: 6px;
|
555
511
|
font-size: 14px;
|
556
512
|
cursor: pointer;
|
557
513
|
position: relative;
|
558
514
|
white-space: nowrap;
|
515
|
+
padding: 4px 8px;
|
559
516
|
&:hover {
|
560
|
-
border-color: #
|
517
|
+
border-color: #D1D5DB;
|
518
|
+
background-color: #E5E7EB;
|
561
519
|
.refine--remove-condition {
|
562
520
|
display: block;
|
563
521
|
}
|
564
522
|
}
|
523
|
+
&:active {
|
524
|
+
border-color: #E5E7EB;
|
525
|
+
}
|
565
526
|
&:not(:hover){
|
566
527
|
.refine--condition-value-wrapper {
|
567
528
|
display: none;
|
@@ -569,6 +530,10 @@
|
|
569
530
|
}
|
570
531
|
}
|
571
532
|
|
533
|
+
.refine--condition-pill-button {
|
534
|
+
display: flex;
|
535
|
+
}
|
536
|
+
|
572
537
|
.refine--filter-condition {
|
573
538
|
display: flex;
|
574
539
|
align-items: center;
|
@@ -579,31 +544,24 @@
|
|
579
544
|
padding: 4px;
|
580
545
|
}
|
581
546
|
|
582
|
-
.refine--condition-pill-name {
|
583
|
-
padding: 4px 8px;
|
584
|
-
display: block;
|
585
|
-
}
|
586
|
-
|
587
547
|
.refine--remove-condition {
|
588
548
|
display: none;
|
589
|
-
|
590
|
-
padding:
|
549
|
+
color: #fff;
|
550
|
+
padding: 0px 2px 0px 2px;
|
591
551
|
border-radius: 50%;
|
592
552
|
position: absolute;
|
593
553
|
top: -8px;
|
594
554
|
right:-8px;
|
595
|
-
background-color: #
|
555
|
+
background-color: #ee3f3f;
|
596
556
|
z-index: 999;
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
width: 6px;
|
604
|
-
height: 2px;
|
605
|
-
background-color: #fff;
|
557
|
+
line-height: 1;
|
558
|
+
border: 1.5px solid #fff;
|
559
|
+
.material-icons-outlined.refine--icon-sm,
|
560
|
+
.material-icons.refine--icon-sm,
|
561
|
+
.icon.refine--icon-sm {
|
562
|
+
padding: 2px 0 ;
|
606
563
|
}
|
564
|
+
|
607
565
|
}
|
608
566
|
&:hover {
|
609
567
|
border-color: #999;
|
@@ -630,8 +588,18 @@
|
|
630
588
|
animation-fill-mode: both;
|
631
589
|
}
|
632
590
|
|
633
|
-
.refine--condition-value-clause {
|
634
|
-
|
591
|
+
.refine--condition-value-clause, .refine--condition-value-self {
|
592
|
+
padding-left: 4px;
|
593
|
+
}
|
594
|
+
|
595
|
+
.refine--condition-pill-name, .refine--condition-value-self {
|
596
|
+
font-weight: 600;
|
597
|
+
}
|
598
|
+
|
599
|
+
.refine--condition-value-self {
|
600
|
+
max-width: 150px;
|
601
|
+
text-overflow: ellipsis;
|
602
|
+
overflow: hidden;
|
635
603
|
}
|
636
604
|
|
637
605
|
/* Form widgets */
|
@@ -870,42 +838,36 @@ input.refine--text-condition-input:focus {
|
|
870
838
|
color: #767676;
|
871
839
|
}
|
872
840
|
|
873
|
-
|
874
|
-
.refine--add-condition-button.refine--add-first-condition-button,
|
875
|
-
.refine--add-condition-group-button.refine--add-first-condition-button {
|
876
|
-
border: 1px dotted #aaa;
|
877
|
-
padding-right: 8px;
|
878
|
-
line-height: 16px;
|
879
|
-
&:hover {
|
880
|
-
background-color: #fff;
|
881
|
-
border-style: solid;
|
882
|
-
color: #111;
|
883
|
-
}
|
884
|
-
}
|
885
|
-
|
886
841
|
.refine--add-condition-button, .refine--add-group-button {
|
887
842
|
display: flex;
|
888
843
|
gap: 5px;
|
889
844
|
color: #767676;
|
890
845
|
font-size: 14px;
|
891
846
|
border-radius: 6px;
|
892
|
-
padding: 5px;
|
893
847
|
align-items: center;
|
894
|
-
background-color: #
|
848
|
+
background-color: #F2F4F7;
|
849
|
+
border: 1px solid #EBEBEB;
|
850
|
+
cursor: pointer;
|
895
851
|
position: relative;
|
852
|
+
white-space: nowrap;
|
853
|
+
padding: 4px 8px;
|
854
|
+
font-weight: 600;
|
855
|
+
&:hover {
|
856
|
+
border-color: #D1D5DB;
|
857
|
+
background-color: #E5E7EB;
|
858
|
+
}
|
859
|
+
&:active {
|
860
|
+
border-color: #E5E7EB;
|
861
|
+
}
|
896
862
|
&:disabled {
|
897
|
-
|
898
|
-
background-color: #f8f8f8;
|
863
|
+
opacity: 0.5;
|
899
864
|
cursor: not-allowed;
|
900
865
|
}
|
901
|
-
&:not([disabled]):hover {
|
902
|
-
color: #111;
|
903
|
-
background-color: #f8f8f8;
|
904
|
-
}
|
905
866
|
}
|
906
867
|
|
907
|
-
.refine--add-group-
|
908
|
-
|
868
|
+
.refine--add-group-wrapper {
|
869
|
+
padding-left: 10px;
|
870
|
+
border-left: 1px solid #E5E7EB;
|
909
871
|
}
|
910
872
|
|
911
873
|
.refine--has-many-groups .refine--add-button-label {
|
@@ -1023,7 +985,9 @@ button.refine--apply-button {
|
|
1023
985
|
}
|
1024
986
|
|
1025
987
|
.refine--save-filter-link-label, .refine--clear-filter-link-label {
|
1026
|
-
|
988
|
+
&:hover {
|
989
|
+
border-bottom: 1px dotted #111;
|
990
|
+
}
|
1027
991
|
}
|
1028
992
|
.refine--save-filter-input-wrapper {
|
1029
993
|
display: flex;
|
@@ -1060,6 +1024,10 @@ input.refine--save-filter-input {
|
|
1060
1024
|
z-index: 9999;
|
1061
1025
|
}
|
1062
1026
|
|
1027
|
+
.refine--save-filter-form {
|
1028
|
+
margin-left: 8px;
|
1029
|
+
}
|
1030
|
+
|
1063
1031
|
.refine--hotkey {
|
1064
1032
|
border-radius: 4px;
|
1065
1033
|
background-color: rgba(255,255,255,.3);
|
@@ -1079,6 +1047,7 @@ input.refine--save-filter-input {
|
|
1079
1047
|
.material-icons.refine--icon-sm,
|
1080
1048
|
.icon.refine--icon-sm {
|
1081
1049
|
font-size: 14px;
|
1050
|
+
padding: 3px 0;
|
1082
1051
|
}
|
1083
1052
|
|
1084
1053
|
.refine--search-box {
|
@@ -13,7 +13,7 @@
|
|
13
13
|
src: refine_inline_criteria_path(criterion.to_params) do
|
14
14
|
%>
|
15
15
|
<button class="refine--add-condition-button refine--add-first-condition-button" href="#" data-action="click->refine--popup#show" type="button">
|
16
|
-
<span class="icon material-icons-outlined refine--icon-sm">add</span>
|
17
16
|
<span><%= t(".filter") %></span>
|
17
|
+
<span class="icon material-icons-outlined refine--icon-sm">add</span>
|
18
18
|
</button>
|
19
19
|
<% end %>
|
@@ -10,8 +10,10 @@
|
|
10
10
|
|
11
11
|
<% if @refine_filter.criteria_limit_reached? %>
|
12
12
|
<button disabled class="refine--add-condition-button refine--group-last-item refine--condition-pill-end" type="button" title="<%= t(".criteria_limit", criteria_limit: @refine_filter.criteria_limit) %>">
|
13
|
+
<% if show_label %>
|
14
|
+
<span class="refine--add-button-label"><%= t("refine.inline.filters.and_button.condition") %></span>
|
15
|
+
<% end %>
|
13
16
|
<span class="icon material-icons-outlined refine--icon-sm">add</span>
|
14
|
-
<span class="refine--add-button-label"><%= t("refine.inline.filters.and_button.condition") %></span>
|
15
17
|
</button>
|
16
18
|
<% else %>
|
17
19
|
<%= render "refine/inline/filters/popup",
|
@@ -19,8 +21,10 @@
|
|
19
21
|
src: refine_inline_criteria_path(criterion.to_params) do
|
20
22
|
%>
|
21
23
|
<button class="refine--add-condition-button refine--group-last-item refine--condition-pill-end" type="button" data-action="click->refine--popup#show">
|
24
|
+
<% if show_label %>
|
25
|
+
<span class="refine--add-button-label"><%= t("refine.inline.filters.and_button.condition") %></span>
|
26
|
+
<% end %>
|
22
27
|
<span class="icon material-icons-outlined refine--icon-sm">add</span>
|
23
|
-
<span class="refine--add-button-label"><%= t("refine.inline.filters.and_button.condition") %></span>
|
24
28
|
</button>
|
25
29
|
<% end %>
|
26
30
|
<% end %>
|
@@ -1,26 +1,21 @@
|
|
1
1
|
<%# Filter Pill partial %>
|
2
|
-
<%
|
3
|
-
pill_class = if placement == 0
|
4
|
-
"refine--condition-pill-start"
|
5
|
-
end
|
6
|
-
%>
|
7
2
|
|
8
3
|
<%= render "refine/inline/filters/popup",
|
9
4
|
frame_id: dom_id(criterion) do
|
10
5
|
%>
|
11
6
|
|
12
|
-
<div class="refine--condition-pill-wrapper
|
7
|
+
<div class="refine--condition-pill-wrapper">
|
13
8
|
<div class="refine--condition-pill">
|
14
|
-
<%= link_to criterion.condition_display, edit_refine_inline_criterion_path(criterion.position, criterion.to_params), class: "refine--condition-pill-name", data: {controller: "refine--turbo-stream-link", action: "refine--turbo-stream-link#visit"} %>
|
15
|
-
<div class="refine--remove-condition"></div>
|
16
9
|
<%= link_to refine_inline_criterion_path(criterion.position, criterion.to_params), class: "refine--remove-condition", data: {turbo_method: :delete, controller: "refine--turbo-stream-link", action: "refine--turbo-stream-link#visit"} do %>
|
10
|
+
<span class="material-icons-outlined refine--icon-sm">clear</span>
|
11
|
+
<% end %>
|
12
|
+
<%= link_to edit_refine_inline_criterion_path(criterion.position, criterion.to_params), class:"refine--condition-pill-button", data: {controller: "refine--turbo-stream-link", action: "refine--turbo-stream-link#visit"} do %>
|
13
|
+
<div class="refine--condition-pill-name"><%= criterion.condition_display %></div>
|
14
|
+
<div class="refine--condition-value-clause"><%= criterion.clause_display %></div>
|
15
|
+
<div class="refine--condition-value-self" title="<%= criterion.human_readable_value %>">
|
16
|
+
<%= criterion.human_readable_value %>
|
17
|
+
</div>
|
17
18
|
<% end %>
|
18
|
-
<div class="refine--condition-value-wrapper">
|
19
|
-
<div class="refine--condition-value-clause"><%= criterion.clause_display %></div>
|
20
|
-
<div class="refine--condition-value-self">
|
21
|
-
<div><%= criterion.human_readable_value.truncate(64) %></div>
|
22
|
-
</div>
|
23
|
-
</div>
|
24
19
|
</div>
|
25
20
|
</div>
|
26
21
|
|
@@ -1,7 +1,4 @@
|
|
1
1
|
<% group.each.with_index do |criterion, i| %>
|
2
|
-
<% unless i == 0 %>
|
3
|
-
<div class="refine--condition-join"><%= t(".and") %></div>
|
4
|
-
<% end %>
|
5
2
|
<%= render "refine/inline/filters/criterion", criterion: criterion, placement: i, size: group.length %>
|
6
3
|
<% end %>
|
7
|
-
<%= render "refine/inline/filters/and_button", position: group.last.position + 1 %>
|
4
|
+
<%= render "refine/inline/filters/and_button", position: group.last.position + 1, show_label: (group_count < 2 && condition_count < 2) %>
|
@@ -9,18 +9,20 @@
|
|
9
9
|
%>
|
10
10
|
|
11
11
|
<% if @refine_filter.criteria_limit_reached? %>
|
12
|
-
<
|
13
|
-
<
|
14
|
-
|
15
|
-
|
12
|
+
<div class="refine--add-group-wrapper">
|
13
|
+
<button disabled class="refine--add-group-button" type="button" title="<%= t(".criteria_limit", criteria_limit: @refine_filter.criteria_limit) %>">
|
14
|
+
<span class="refine--add-group-button-label"><%= t(".group") %></span>
|
15
|
+
</button>
|
16
|
+
</div>
|
16
17
|
<% else %>
|
17
18
|
<%= render "refine/inline/filters/popup",
|
18
19
|
frame_id: dom_id(criterion),
|
19
20
|
src: refine_inline_criteria_path(criterion.to_params) do
|
20
21
|
%>
|
21
|
-
<
|
22
|
-
<
|
23
|
-
|
24
|
-
|
22
|
+
<div class="refine--add-group-wrapper">
|
23
|
+
<button class="refine--add-group-button" type="button" data-action="click->refine--popup#show">
|
24
|
+
<span class="refine--add-group-button-label"><%= t(".group") %></span>
|
25
|
+
</button>
|
26
|
+
</div>
|
25
27
|
<% end %>
|
26
28
|
<% end %>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<% unless i == 0 %>
|
18
18
|
<div class="refine--group-join"><%= t("refine.inline.filters.or") %></div>
|
19
19
|
<% end %>
|
20
|
-
<%= render "refine/inline/filters/group", group: group %>
|
20
|
+
<%= render "refine/inline/filters/group", group: group, group_count: groups.count, condition_count: group.count %>
|
21
21
|
<% if i == groups.length - 1 %>
|
22
22
|
<%= render "refine/inline/filters/or_button", position: @refine_filter.blueprint.length %>
|
23
23
|
<% end %>
|
data/lib/refine/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refine-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.11.
|
4
|
+
version: 2.11.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colleen Schnettler
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-09-
|
12
|
+
date: 2024-09-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|