pg_rails 7.6.24.pre.5 → 7.6.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/pg_engine/app/assets/stylesheets/nav_toolbar.scss +10 -0
- data/pg_engine/app/assets/stylesheets/{pg_rails_b5.scss → pg_engine.scss} +0 -3
- data/pg_engine/app/assets/stylesheets/tables.scss +29 -0
- data/pg_engine/app/assets/stylesheets/tom_select.scss +16 -0
- data/pg_rails/lib/version.rb +1 -1
- data/pg_rails/scss/pg_rails.scss +9 -60
- metadata +7 -4
- /data/{pg_rails/scss → pg_engine/app/assets/stylesheets}/border_radius.scss +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5202df927d12827a79e5c89d668cc344dfbd434a266b39810d5585ffdc3ac932
|
4
|
+
data.tar.gz: d74570bcf0eeb4a5d9f11fb5baf720585458a2026bb0683966a37556d7f2bf69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d83f4adfce2d2ad3b22996b88dd61df4818e5ee824f66a3b0ac8d5817063e653b4bcbe5c60d98363040ae72886437b4a4a752f2a41bcd36d692e51eca1374b49
|
7
|
+
data.tar.gz: 45adb571a8d819d11d23a66ef49882496119e3e97e0741e63b59c5f0091d7686189564eabb60ee1c78d6da7fa57139d28340bbcc4a5d41bf7ceb396a28624567
|
@@ -0,0 +1,10 @@
|
|
1
|
+
// Buttons border in nav toolbar
|
2
|
+
$warning-border-emphasis: shade-color($yellow, 60%);
|
3
|
+
.btn-toolbar .btn-warning {
|
4
|
+
border: 1px solid $warning-border-emphasis;
|
5
|
+
}
|
6
|
+
|
7
|
+
$light-border-emphasis: shade-color($light, 60%);
|
8
|
+
.btn-toolbar .btn-light {
|
9
|
+
border: 1px solid $light-border-emphasis;
|
10
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
// Column truncate
|
2
|
+
$values: 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100;
|
3
|
+
|
4
|
+
@for $i from 1 through length($values) {
|
5
|
+
$value: nth($values, $i);
|
6
|
+
$perc: #{percenage($value)};
|
7
|
+
|
8
|
+
.column-truncate-#{$value} {
|
9
|
+
max-width: 0;
|
10
|
+
width: percentage($value * 0.01);
|
11
|
+
overflow: hidden;
|
12
|
+
text-overflow: ellipsis;
|
13
|
+
white-space: nowrap;
|
14
|
+
min-width: 30em * $value * 0.01;
|
15
|
+
|
16
|
+
// TODO: con css grid esto se debería poder hacer mejor
|
17
|
+
// además, el pg_asociable directamente se rompe
|
18
|
+
&:has(form) {
|
19
|
+
min-width: 28em;
|
20
|
+
overflow: initial;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
// Table row clickable
|
26
|
+
// .listado tr:has(td:hover):has(.bi-eye-fill) td {
|
27
|
+
// background-color: #f2f2f2;
|
28
|
+
// cursor: pointer;
|
29
|
+
// }
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// Tom Select
|
2
|
+
.ts-control {
|
3
|
+
padding-top: 2px!important;
|
4
|
+
padding-bottom: 2px!important;
|
5
|
+
display: flex;
|
6
|
+
gap: 4px;
|
7
|
+
}
|
8
|
+
.input-group-sm > .ts-wrapper.multi.has-items .ts-control, .ts-wrapper.form-select-sm.multi.has-items .ts-control, .ts-wrapper.form-control-sm.multi.has-items .ts-control {
|
9
|
+
padding-top: 2px!important;
|
10
|
+
}
|
11
|
+
.ts-wrapper.multi .ts-control > div {
|
12
|
+
margin: 0!important;
|
13
|
+
}
|
14
|
+
.ts-control:not(.rtl) {
|
15
|
+
padding-right: 0.75rem !important;
|
16
|
+
}
|
data/pg_rails/lib/version.rb
CHANGED
data/pg_rails/scss/pg_rails.scss
CHANGED
@@ -4,71 +4,20 @@ $font-size-base: 0.9rem;
|
|
4
4
|
@import 'bootstrap_pre';
|
5
5
|
@import 'bootstrap_overrides';
|
6
6
|
@import 'bootstrap_post';
|
7
|
-
@import 'border_radius';
|
8
|
-
|
9
|
-
@import './../../pg_engine/app/assets/stylesheets/pg_rails_b5';
|
10
|
-
@import './../../pg_associable/app/assets/stylesheets/pg_associable';
|
11
|
-
@import './../../pg_layout/app/assets/stylesheets/sidebar';
|
12
|
-
@import './../../pg_layout/app/assets/stylesheets/animations';
|
13
7
|
|
14
8
|
@import 'bootstrap-icons/font/bootstrap-icons';
|
15
9
|
|
16
10
|
@import 'trix/dist/trix';
|
17
11
|
@import 'tom-select/dist/scss/tom-select.bootstrap5';
|
18
12
|
|
19
|
-
|
20
|
-
.ts-control {
|
21
|
-
padding-top: 2px!important;
|
22
|
-
padding-bottom: 2px!important;
|
23
|
-
display: flex;
|
24
|
-
gap: 4px;
|
25
|
-
}
|
26
|
-
.input-group-sm > .ts-wrapper.multi.has-items .ts-control, .ts-wrapper.form-select-sm.multi.has-items .ts-control, .ts-wrapper.form-control-sm.multi.has-items .ts-control {
|
27
|
-
padding-top: 2px!important;
|
28
|
-
}
|
29
|
-
.ts-wrapper.multi .ts-control > div {
|
30
|
-
margin: 0!important;
|
31
|
-
}
|
32
|
-
.ts-control:not(.rtl) {
|
33
|
-
padding-right: 0.75rem !important;
|
34
|
-
}
|
35
|
-
|
36
|
-
// Column truncate
|
37
|
-
$values: 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100;
|
38
|
-
|
39
|
-
@for $i from 1 through length($values) {
|
40
|
-
$value: nth($values, $i);
|
41
|
-
$perc: #{percenage($value)};
|
42
|
-
|
43
|
-
.column-truncate-#{$value} {
|
44
|
-
max-width: 0;
|
45
|
-
width: percentage($value * 0.01);
|
46
|
-
overflow: hidden;
|
47
|
-
text-overflow: ellipsis;
|
48
|
-
white-space: nowrap;
|
49
|
-
min-width: 30em * $value * 0.01;
|
50
|
-
|
51
|
-
// TODO: con css grid esto se debería poder hacer mejor
|
52
|
-
// además, el pg_asociable directamente se rompe
|
53
|
-
&:has(form) {
|
54
|
-
min-width: 28em;
|
55
|
-
overflow: initial;
|
56
|
-
}
|
57
|
-
}
|
58
|
-
}
|
59
|
-
|
60
|
-
// Buttons border in nav toolbar
|
61
|
-
$warning-border-emphasis: shade-color($yellow, 60%);
|
62
|
-
.btn-toolbar .btn-warning {
|
63
|
-
border: 1px solid $warning-border-emphasis;
|
64
|
-
}
|
13
|
+
@import './../../pg_associable/app/assets/stylesheets/pg_associable';
|
65
14
|
|
66
|
-
|
67
|
-
|
68
|
-
border: 1px solid $light-border-emphasis;
|
69
|
-
}
|
15
|
+
@import './../../pg_layout/app/assets/stylesheets/sidebar';
|
16
|
+
@import './../../pg_layout/app/assets/stylesheets/animations';
|
70
17
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
18
|
+
@import './../../pg_engine/app/assets/stylesheets/pg_engine';
|
19
|
+
@import './../../pg_engine/app/assets/stylesheets/notifications';
|
20
|
+
@import './../../pg_engine/app/assets/stylesheets/border_radius';
|
21
|
+
@import './../../pg_engine/app/assets/stylesheets/tom_select';
|
22
|
+
@import './../../pg_engine/app/assets/stylesheets/tables';
|
23
|
+
@import './../../pg_engine/app/assets/stylesheets/nav_toolbar';
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.6.24
|
4
|
+
version: 7.6.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martín Rosso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -685,8 +685,12 @@ files:
|
|
685
685
|
- pg_engine/app/assets/javascripts/active_admin.js
|
686
686
|
- pg_engine/app/assets/stylesheets/actiontext.css
|
687
687
|
- pg_engine/app/assets/stylesheets/active_admin.scss
|
688
|
+
- pg_engine/app/assets/stylesheets/border_radius.scss
|
689
|
+
- pg_engine/app/assets/stylesheets/nav_toolbar.scss
|
688
690
|
- pg_engine/app/assets/stylesheets/notifications.scss
|
689
|
-
- pg_engine/app/assets/stylesheets/
|
691
|
+
- pg_engine/app/assets/stylesheets/pg_engine.scss
|
692
|
+
- pg_engine/app/assets/stylesheets/tables.scss
|
693
|
+
- pg_engine/app/assets/stylesheets/tom_select.scss
|
690
694
|
- pg_engine/app/components/alert_component.html.slim
|
691
695
|
- pg_engine/app/components/alert_component.rb
|
692
696
|
- pg_engine/app/components/asociable_modal_component.html.slim
|
@@ -1065,7 +1069,6 @@ files:
|
|
1065
1069
|
- pg_rails/scss/bootstrap_overrides.scss
|
1066
1070
|
- pg_rails/scss/bootstrap_post.scss
|
1067
1071
|
- pg_rails/scss/bootstrap_pre.scss
|
1068
|
-
- pg_rails/scss/border_radius.scss
|
1069
1072
|
- pg_rails/scss/pg_rails.scss
|
1070
1073
|
- pg_scaffold/lib/generators/pg_active_record/model/model_generator.rb
|
1071
1074
|
- pg_scaffold/lib/generators/pg_active_record/model/templates/admin.rb
|
File without changes
|