rails_modal_manager 1.0.36 → 1.0.37
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/README.md +14 -1
- data/app/assets/stylesheets/rails_modal_manager.css +8 -4
- data/app/javascript/rails_modal_manager/controllers/rmm_modal_controller.js +5 -1
- data/app/views/rails_modal_manager/_modal.html.erb +3 -0
- data/lib/rails_modal_manager/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ed4634070e4b9c7e76f0f1e884c88ce98641828e3bc7e7bf59db8a402365029a
|
|
4
|
+
data.tar.gz: 4656c4b397fecedf19b386e104ac81173365ab59cc5266a32e0bf0a38f0505e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 82fa5ef91503bf5476c50e41f3479d25b896ced5af72ab064fbffe4ce7b1c5fe431bbfa17a7d67ad8eee077dae139be36f5d774785e0006975b2d38f17478852
|
|
7
|
+
data.tar.gz: e70cb55620dc62d709ea81ba20950b4b98626816a1792f96e9fece6faee8b0301c3b953ed68d39cc598edc94c3f3cfeba0fe8d788122de19f70829a92518298a
|
data/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Rails 애플리케이션을 위한 고급 모달 매니저입니다.
|
|
4
4
|
`@reshacs/react-modal-manager`에서 포팅되었습니다.
|
|
5
5
|
|
|
6
|
-
**Version:** 1.0.
|
|
6
|
+
**Version:** 1.0.37
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -798,6 +798,19 @@ MIT License
|
|
|
798
798
|
|
|
799
799
|
## 변경 이력
|
|
800
800
|
|
|
801
|
+
### v1.0.37
|
|
802
|
+
|
|
803
|
+
- **커스텀 헤더 색상 옵션 추가**:
|
|
804
|
+
- `header_bg`: 헤더 배경색 (단색 또는 그라디언트)
|
|
805
|
+
- `header_text`: 타이틀, 버튼 아이콘, 드래그 핸들 색상
|
|
806
|
+
- `header_border`: 헤더 하단 보더 색상
|
|
807
|
+
- `header_close_btn_hover`: 닫기 버튼 hover 시 배경색
|
|
808
|
+
- **기본 Depth별 헤더 색상 변경** (라이트 모드):
|
|
809
|
+
- Depth 0 (부모): `#3b82f6` (파란색, 그라디언트 제거)
|
|
810
|
+
- Depth 1 (자식): `#0ea5e9` (하늘색)
|
|
811
|
+
- Depth 2 (손자): `#06b6d4` (청록색)
|
|
812
|
+
- Depth 3+ (증손자): `#64748B` (회색)
|
|
813
|
+
|
|
801
814
|
### v1.0.33
|
|
802
815
|
|
|
803
816
|
- **Taskbar 기능 대폭 개선**:
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
--rmm-header-height: 56px;
|
|
25
25
|
|
|
26
26
|
/* Header - Depth Colors (Parent/Child/Grandchild) */
|
|
27
|
-
--rmm-header-bg-depth-0:
|
|
27
|
+
--rmm-header-bg-depth-0: #3b82f6;
|
|
28
28
|
--rmm-header-text-depth-0: #ffffff;
|
|
29
|
-
--rmm-header-bg-depth-1:
|
|
29
|
+
--rmm-header-bg-depth-1: #0ea5e9;
|
|
30
30
|
--rmm-header-text-depth-1: #ffffff;
|
|
31
|
-
--rmm-header-bg-depth-2:
|
|
31
|
+
--rmm-header-bg-depth-2: #06b6d4;
|
|
32
32
|
--rmm-header-text-depth-2: #ffffff;
|
|
33
|
-
--rmm-header-bg-depth-3:
|
|
33
|
+
--rmm-header-bg-depth-3: #64748B;
|
|
34
34
|
--rmm-header-text-depth-3: #ffffff;
|
|
35
35
|
|
|
36
36
|
/* Footer */
|
|
@@ -639,6 +639,10 @@
|
|
|
639
639
|
background: var(--rmm-custom-header-btn-hover, rgba(255, 255, 255, 0.15));
|
|
640
640
|
}
|
|
641
641
|
|
|
642
|
+
.rmm-modal.rmm-custom-header .rmm-header-btn.rmm-close-btn:hover {
|
|
643
|
+
background: var(--rmm-custom-header-close-btn-hover, rgba(239, 68, 68, 0.9));
|
|
644
|
+
}
|
|
645
|
+
|
|
642
646
|
.rmm-modal.rmm-custom-header .rmm-drag-handle {
|
|
643
647
|
color: var(--rmm-custom-header-text, var(--rmm-header-text));
|
|
644
648
|
}
|
|
@@ -41,6 +41,7 @@ export default class extends Controller {
|
|
|
41
41
|
headerBg: String, // Custom header background color (e.g., "#3b82f6" or "linear-gradient(135deg, #667eea, #764ba2)")
|
|
42
42
|
headerText: String, // Custom header text color (e.g., "#ffffff")
|
|
43
43
|
headerBorder: String, // Custom header border color (e.g., "#2563eb")
|
|
44
|
+
headerCloseBtnHover: String, // Custom close button hover background color (e.g., "rgba(239, 68, 68, 0.9)")
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
connect() {
|
|
@@ -365,7 +366,7 @@ export default class extends Controller {
|
|
|
365
366
|
modal.classList.remove('rmm-depth-0', 'rmm-depth-1', 'rmm-depth-2', 'rmm-depth-3')
|
|
366
367
|
|
|
367
368
|
// Check for custom header colors
|
|
368
|
-
const hasCustomHeader = this.hasHeaderBgValue || this.hasHeaderTextValue || this.hasHeaderBorderValue
|
|
369
|
+
const hasCustomHeader = this.hasHeaderBgValue || this.hasHeaderTextValue || this.hasHeaderBorderValue || this.hasHeaderCloseBtnHoverValue
|
|
369
370
|
|
|
370
371
|
if (hasCustomHeader) {
|
|
371
372
|
// Apply custom header colors via CSS variables
|
|
@@ -380,6 +381,9 @@ export default class extends Controller {
|
|
|
380
381
|
if (this.hasHeaderBorderValue && this.headerBorderValue) {
|
|
381
382
|
modal.style.setProperty('--rmm-custom-header-border', this.headerBorderValue)
|
|
382
383
|
}
|
|
384
|
+
if (this.hasHeaderCloseBtnHoverValue && this.headerCloseBtnHoverValue) {
|
|
385
|
+
modal.style.setProperty('--rmm-custom-header-close-btn-hover', this.headerCloseBtnHoverValue)
|
|
386
|
+
}
|
|
383
387
|
} else {
|
|
384
388
|
// Apply depth class (only if no custom header colors)
|
|
385
389
|
const depthClass = `rmm-depth-${Math.min(depth, 3)}`
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
header_bg: String - Custom header background (e.g., "#3b82f6" or "linear-gradient(135deg, #667eea, #764ba2)")
|
|
46
46
|
header_text: String - Custom header text color (e.g., "#ffffff")
|
|
47
47
|
header_border: String - Custom header border color (e.g., "#2563eb")
|
|
48
|
+
header_close_btn_hover: String - Custom close button hover background color (e.g., "rgba(239, 68, 68, 0.9)")
|
|
48
49
|
%>
|
|
49
50
|
<%
|
|
50
51
|
# Default values
|
|
@@ -92,6 +93,7 @@
|
|
|
92
93
|
header_bg ||= nil
|
|
93
94
|
header_text ||= nil
|
|
94
95
|
header_border ||= nil
|
|
96
|
+
header_close_btn_hover ||= nil
|
|
95
97
|
|
|
96
98
|
# Build CSS classes
|
|
97
99
|
modal_classes = ["rmm-modal", "rmm-size-#{size}", "rmm-position-#{position}"]
|
|
@@ -131,6 +133,7 @@
|
|
|
131
133
|
data_attrs[:rmm_modal_header_bg_value] = header_bg if header_bg
|
|
132
134
|
data_attrs[:rmm_modal_header_text_value] = header_text if header_text
|
|
133
135
|
data_attrs[:rmm_modal_header_border_value] = header_border if header_border
|
|
136
|
+
data_attrs[:rmm_modal_header_close_btn_hover_value] = header_close_btn_hover if header_close_btn_hover
|
|
134
137
|
data_attrs.merge!(extra_data)
|
|
135
138
|
%>
|
|
136
139
|
|