@customviews-js/customviews 1.1.8 → 1.1.10
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.
- package/README.md +362 -362
- package/dist/custom-views.core.cjs.js +1598 -1324
- package/dist/custom-views.core.cjs.js.map +1 -1
- package/dist/custom-views.core.esm.js +1598 -1324
- package/dist/custom-views.core.esm.js.map +1 -1
- package/dist/custom-views.esm.js +1598 -1324
- package/dist/custom-views.esm.js.map +1 -1
- package/dist/custom-views.js +1598 -1324
- package/dist/custom-views.js.map +1 -1
- package/dist/custom-views.min.js +2 -2
- package/dist/custom-views.min.js.map +1 -1
- package/dist/types/core/core.d.ts +14 -0
- package/dist/types/core/core.d.ts.map +1 -1
- package/dist/types/core/persistence.d.ts +8 -0
- package/dist/types/core/persistence.d.ts.map +1 -1
- package/dist/types/core/tab-manager.d.ts.map +1 -1
- package/dist/types/core/widget.d.ts.map +1 -1
- package/dist/types/styles/widget-styles.d.ts +1 -1
- package/dist/types/styles/widget-styles.d.ts.map +1 -1
- package/dist/types/types/types.d.ts +2 -4
- package/dist/types/types/types.d.ts.map +1 -1
- package/dist/types/utils/icons.d.ts +9 -2
- package/dist/types/utils/icons.d.ts.map +1 -1
- package/package.json +62 -62
package/dist/custom-views.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @customviews-js/customviews v1.1.
|
|
2
|
+
* @customviews-js/customviews v1.1.10
|
|
3
3
|
* (c) 2025 Chan Ger Teck
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
class PersistenceManager {
|
|
16
16
|
// Storage keys for localStorage
|
|
17
17
|
static STORAGE_KEYS = {
|
|
18
|
-
STATE: 'customviews-state'
|
|
18
|
+
STATE: 'customviews-state',
|
|
19
|
+
TAB_NAV_VISIBILITY: 'cv-tab-navs-visible'
|
|
19
20
|
};
|
|
20
21
|
/**
|
|
21
22
|
* Check if localStorage is available in the current environment
|
|
@@ -52,6 +53,35 @@
|
|
|
52
53
|
if (!this.isStorageAvailable())
|
|
53
54
|
return;
|
|
54
55
|
localStorage.removeItem(PersistenceManager.STORAGE_KEYS.STATE);
|
|
56
|
+
localStorage.removeItem(PersistenceManager.STORAGE_KEYS.TAB_NAV_VISIBILITY);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Persist tab nav visibility preference
|
|
60
|
+
*/
|
|
61
|
+
persistTabNavVisibility(visible) {
|
|
62
|
+
if (!this.isStorageAvailable())
|
|
63
|
+
return;
|
|
64
|
+
try {
|
|
65
|
+
localStorage.setItem(PersistenceManager.STORAGE_KEYS.TAB_NAV_VISIBILITY, visible ? 'true' : 'false');
|
|
66
|
+
}
|
|
67
|
+
catch (error) {
|
|
68
|
+
console.warn('Failed to persist tab nav visibility:', error);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Get persisted tab nav visibility preference
|
|
73
|
+
*/
|
|
74
|
+
getPersistedTabNavVisibility() {
|
|
75
|
+
if (!this.isStorageAvailable())
|
|
76
|
+
return null;
|
|
77
|
+
try {
|
|
78
|
+
const raw = localStorage.getItem(PersistenceManager.STORAGE_KEYS.TAB_NAV_VISIBILITY);
|
|
79
|
+
return raw === null ? null : raw === 'true';
|
|
80
|
+
}
|
|
81
|
+
catch (error) {
|
|
82
|
+
console.warn('Failed to get persisted tab nav visibility:', error);
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
55
85
|
}
|
|
56
86
|
/**
|
|
57
87
|
* Check if any persistence data exists
|
|
@@ -324,13 +354,10 @@
|
|
|
324
354
|
if (tabs[groupId]) {
|
|
325
355
|
return tabs[groupId];
|
|
326
356
|
}
|
|
327
|
-
// 2. Check config
|
|
357
|
+
// 2. Check config for first tab
|
|
328
358
|
if (cfgGroups) {
|
|
329
359
|
const groupCfg = cfgGroups.find(g => g.id === groupId);
|
|
330
360
|
if (groupCfg) {
|
|
331
|
-
if (groupCfg.default) {
|
|
332
|
-
return groupCfg.default;
|
|
333
|
-
}
|
|
334
361
|
// Fallback to first tab in config
|
|
335
362
|
const firstConfigTab = groupCfg.tabs[0];
|
|
336
363
|
if (firstConfigTab) {
|
|
@@ -826,188 +853,188 @@
|
|
|
826
853
|
/**
|
|
827
854
|
* Styles for toggle visibility and animations
|
|
828
855
|
*/
|
|
829
|
-
const TOGGLE_STYLES = `
|
|
830
|
-
/* Core toggle visibility transitions */
|
|
831
|
-
[data-cv-toggle], [data-customviews-toggle], cv-toggle {
|
|
832
|
-
transition: opacity 150ms ease,
|
|
833
|
-
transform 150ms ease,
|
|
834
|
-
max-height 200ms ease,
|
|
835
|
-
margin 150ms ease;
|
|
836
|
-
will-change: opacity, transform, max-height, margin;
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
.cv-visible {
|
|
840
|
-
opacity: 1 !important;
|
|
841
|
-
transform: translateY(0) !important;
|
|
842
|
-
max-height: var(--cv-max-height, 9999px) !important;
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
.cv-hidden {
|
|
846
|
-
opacity: 0 !important;
|
|
847
|
-
transform: translateY(-4px) !important;
|
|
848
|
-
pointer-events: none !important;
|
|
849
|
-
padding-top: 0 !important;
|
|
850
|
-
padding-bottom: 0 !important;
|
|
851
|
-
border-top-width: 0 !important;
|
|
852
|
-
border-bottom-width: 0 !important;
|
|
853
|
-
max-height: 0 !important;
|
|
854
|
-
margin-top: 0 !important;
|
|
855
|
-
margin-bottom: 0 !important;
|
|
856
|
-
overflow: hidden !important;
|
|
857
|
-
}
|
|
856
|
+
const TOGGLE_STYLES = `
|
|
857
|
+
/* Core toggle visibility transitions */
|
|
858
|
+
[data-cv-toggle], [data-customviews-toggle], cv-toggle {
|
|
859
|
+
transition: opacity 150ms ease,
|
|
860
|
+
transform 150ms ease,
|
|
861
|
+
max-height 200ms ease,
|
|
862
|
+
margin 150ms ease;
|
|
863
|
+
will-change: opacity, transform, max-height, margin;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
.cv-visible {
|
|
867
|
+
opacity: 1 !important;
|
|
868
|
+
transform: translateY(0) !important;
|
|
869
|
+
max-height: var(--cv-max-height, 9999px) !important;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
.cv-hidden {
|
|
873
|
+
opacity: 0 !important;
|
|
874
|
+
transform: translateY(-4px) !important;
|
|
875
|
+
pointer-events: none !important;
|
|
876
|
+
padding-top: 0 !important;
|
|
877
|
+
padding-bottom: 0 !important;
|
|
878
|
+
border-top-width: 0 !important;
|
|
879
|
+
border-bottom-width: 0 !important;
|
|
880
|
+
max-height: 0 !important;
|
|
881
|
+
margin-top: 0 !important;
|
|
882
|
+
margin-bottom: 0 !important;
|
|
883
|
+
overflow: hidden !important;
|
|
884
|
+
}
|
|
858
885
|
`;
|
|
859
886
|
|
|
860
887
|
/**
|
|
861
888
|
* Styles for tab groups and tab navigation
|
|
862
889
|
*/
|
|
863
|
-
const TAB_STYLES = `
|
|
864
|
-
/* Tab navigation styles - Bootstrap-style tabs matching MarkBind */
|
|
865
|
-
.cv-tabs-nav {
|
|
866
|
-
display: flex;
|
|
867
|
-
flex-wrap: wrap;
|
|
868
|
-
padding-left: 0;
|
|
869
|
-
margin-top: 0.5rem;
|
|
870
|
-
margin-bottom: 1rem;
|
|
871
|
-
list-style: none;
|
|
872
|
-
border-bottom: 1px solid #dee2e6;
|
|
873
|
-
|
|
874
|
-
align-items: stretch;
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
.cv-tabs-nav .nav-item {
|
|
878
|
-
margin-bottom: -1px;
|
|
879
|
-
list-style: none;
|
|
880
|
-
display: flex; /* was inline-block → make flex to stretch height */
|
|
881
|
-
align-items: stretch; /* stretch link to full height */
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
.cv-tabs-nav .nav-link {
|
|
885
|
-
display: flex;
|
|
886
|
-
align-items: center;
|
|
887
|
-
justify-content: center;
|
|
888
|
-
padding: 0.5rem 1rem;
|
|
889
|
-
color: #495057;
|
|
890
|
-
text-decoration: none;
|
|
891
|
-
background-color: transparent;
|
|
892
|
-
border: 1px solid transparent;
|
|
893
|
-
border-top-left-radius: 0.25rem;
|
|
894
|
-
border-top-right-radius: 0.25rem;
|
|
895
|
-
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
|
|
896
|
-
cursor: pointer;
|
|
897
|
-
min-height: 2.5rem;
|
|
898
|
-
box-sizing: border-box;
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
.cv-tabs-nav .nav-link p {
|
|
902
|
-
margin: 0; /* remove default margins */
|
|
903
|
-
display: inline; /* or inline-block */
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
.cv-tabs-nav .nav-link:hover,
|
|
907
|
-
.cv-tabs-nav .nav-link:focus {
|
|
908
|
-
border-color: #e9ecef #e9ecef #dee2e6;
|
|
909
|
-
isolation: isolate;
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
.cv-tabs-nav .nav-link.active {
|
|
913
|
-
color: #495057;
|
|
914
|
-
background-color: #fff;
|
|
915
|
-
border-color: #dee2e6 #dee2e6 #fff;
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
.cv-tabs-nav .nav-link:focus {
|
|
919
|
-
outline: 0;
|
|
920
|
-
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
/* Legacy button-based nav (deprecated, kept for compatibility) */
|
|
924
|
-
.cv-tabs-nav-item {
|
|
925
|
-
background: none;
|
|
926
|
-
border: none;
|
|
927
|
-
border-bottom: 2px solid transparent;
|
|
928
|
-
padding: 0.5rem 1rem;
|
|
929
|
-
cursor: pointer;
|
|
930
|
-
font-size: 1rem;
|
|
931
|
-
color: #6c757d;
|
|
932
|
-
transition: color 150ms ease, border-color 150ms ease;
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
.cv-tabs-nav-item:hover {
|
|
936
|
-
color: #495057;
|
|
937
|
-
border-bottom-color: #dee2e6;
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
.cv-tabs-nav-item.active {
|
|
941
|
-
color: #007bff;
|
|
942
|
-
border-bottom-color: #007bff;
|
|
943
|
-
font-weight: 500;
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
.cv-tabs-nav-item:focus {
|
|
947
|
-
outline: 2px solid #007bff;
|
|
948
|
-
outline-offset: 2px;
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
/* Tab panel base styles */
|
|
952
|
-
cv-tab {
|
|
953
|
-
display: block;
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
/* Hide cv-tab-header source element; content is extracted to nav link */
|
|
957
|
-
cv-tab-header {
|
|
958
|
-
display: none !important;
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
/* Allow cv-tab-body to flow naturally */
|
|
962
|
-
cv-tab-body {
|
|
963
|
-
display: block;
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
/* Override visibility for tab panels - use display instead of collapse animation */
|
|
967
|
-
cv-tab.cv-hidden {
|
|
968
|
-
display: none !important;
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
cv-tab.cv-visible {
|
|
972
|
-
display: block !important;
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
cv-tabgroup {
|
|
976
|
-
display: block;
|
|
977
|
-
margin-bottom: 1.5rem;
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
/* Bottom border line for tab groups */
|
|
981
|
-
.cv-tabgroup-bottom-border {
|
|
982
|
-
border-bottom: 1px solid #dee2e6;
|
|
983
|
-
margin-top: 1rem;
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
/* Tab content wrapper */
|
|
987
|
-
.cv-tab-content {
|
|
988
|
-
padding: 1rem 0;
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
/* Viewer-controlled nav visibility: hide nav containers when requested */
|
|
992
|
-
.cv-tabs-nav-hidden {
|
|
993
|
-
display: none !important;
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
/* Print-friendly: hide tab navigation when printing to reduce clutter */
|
|
997
|
-
@media print {
|
|
998
|
-
.cv-tabs-nav {
|
|
999
|
-
display: none !important;
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
890
|
+
const TAB_STYLES = `
|
|
891
|
+
/* Tab navigation styles - Bootstrap-style tabs matching MarkBind */
|
|
892
|
+
.cv-tabs-nav {
|
|
893
|
+
display: flex;
|
|
894
|
+
flex-wrap: wrap;
|
|
895
|
+
padding-left: 0;
|
|
896
|
+
margin-top: 0.5rem;
|
|
897
|
+
margin-bottom: 1rem;
|
|
898
|
+
list-style: none;
|
|
899
|
+
border-bottom: 1px solid #dee2e6;
|
|
900
|
+
|
|
901
|
+
align-items: stretch;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
.cv-tabs-nav .nav-item {
|
|
905
|
+
margin-bottom: -1px;
|
|
906
|
+
list-style: none;
|
|
907
|
+
display: flex; /* was inline-block → make flex to stretch height */
|
|
908
|
+
align-items: stretch; /* stretch link to full height */
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
.cv-tabs-nav .nav-link {
|
|
912
|
+
display: flex;
|
|
913
|
+
align-items: center;
|
|
914
|
+
justify-content: center;
|
|
915
|
+
padding: 0.5rem 1rem;
|
|
916
|
+
color: #495057;
|
|
917
|
+
text-decoration: none;
|
|
918
|
+
background-color: transparent;
|
|
919
|
+
border: 1px solid transparent;
|
|
920
|
+
border-top-left-radius: 0.25rem;
|
|
921
|
+
border-top-right-radius: 0.25rem;
|
|
922
|
+
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
|
|
923
|
+
cursor: pointer;
|
|
924
|
+
min-height: 2.5rem;
|
|
925
|
+
box-sizing: border-box;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
.cv-tabs-nav .nav-link p {
|
|
929
|
+
margin: 0; /* remove default margins */
|
|
930
|
+
display: inline; /* or inline-block */
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
.cv-tabs-nav .nav-link:hover,
|
|
934
|
+
.cv-tabs-nav .nav-link:focus {
|
|
935
|
+
border-color: #e9ecef #e9ecef #dee2e6;
|
|
936
|
+
isolation: isolate;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
.cv-tabs-nav .nav-link.active {
|
|
940
|
+
color: #495057;
|
|
941
|
+
background-color: #fff;
|
|
942
|
+
border-color: #dee2e6 #dee2e6 #fff;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
.cv-tabs-nav .nav-link:focus {
|
|
946
|
+
outline: 0;
|
|
947
|
+
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
/* Legacy button-based nav (deprecated, kept for compatibility) */
|
|
951
|
+
.cv-tabs-nav-item {
|
|
952
|
+
background: none;
|
|
953
|
+
border: none;
|
|
954
|
+
border-bottom: 2px solid transparent;
|
|
955
|
+
padding: 0.5rem 1rem;
|
|
956
|
+
cursor: pointer;
|
|
957
|
+
font-size: 1rem;
|
|
958
|
+
color: #6c757d;
|
|
959
|
+
transition: color 150ms ease, border-color 150ms ease;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
.cv-tabs-nav-item:hover {
|
|
963
|
+
color: #495057;
|
|
964
|
+
border-bottom-color: #dee2e6;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
.cv-tabs-nav-item.active {
|
|
968
|
+
color: #007bff;
|
|
969
|
+
border-bottom-color: #007bff;
|
|
970
|
+
font-weight: 500;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
.cv-tabs-nav-item:focus {
|
|
974
|
+
outline: 2px solid #007bff;
|
|
975
|
+
outline-offset: 2px;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
/* Tab panel base styles */
|
|
979
|
+
cv-tab {
|
|
980
|
+
display: block;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
/* Hide cv-tab-header source element; content is extracted to nav link */
|
|
984
|
+
cv-tab-header {
|
|
985
|
+
display: none !important;
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
/* Allow cv-tab-body to flow naturally */
|
|
989
|
+
cv-tab-body {
|
|
990
|
+
display: block;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
/* Override visibility for tab panels - use display instead of collapse animation */
|
|
994
|
+
cv-tab.cv-hidden {
|
|
995
|
+
display: none !important;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
cv-tab.cv-visible {
|
|
999
|
+
display: block !important;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
cv-tabgroup {
|
|
1003
|
+
display: block;
|
|
1004
|
+
margin-bottom: 1.5rem;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
/* Bottom border line for tab groups */
|
|
1008
|
+
.cv-tabgroup-bottom-border {
|
|
1009
|
+
border-bottom: 1px solid #dee2e6;
|
|
1010
|
+
margin-top: 1rem;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
/* Tab content wrapper */
|
|
1014
|
+
.cv-tab-content {
|
|
1015
|
+
padding: 1rem 0;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
/* Viewer-controlled nav visibility: hide nav containers when requested */
|
|
1019
|
+
.cv-tabs-nav-hidden {
|
|
1020
|
+
display: none !important;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
/* Print-friendly: hide tab navigation when printing to reduce clutter */
|
|
1024
|
+
@media print {
|
|
1025
|
+
.cv-tabs-nav {
|
|
1026
|
+
display: none !important;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1002
1029
|
`;
|
|
1003
1030
|
|
|
1004
1031
|
/**
|
|
1005
1032
|
* Combined core styles for toggles and tabs
|
|
1006
1033
|
*/
|
|
1007
|
-
const CORE_STYLES = `
|
|
1008
|
-
${TOGGLE_STYLES}
|
|
1009
|
-
|
|
1010
|
-
${TAB_STYLES}
|
|
1034
|
+
const CORE_STYLES = `
|
|
1035
|
+
${TOGGLE_STYLES}
|
|
1036
|
+
|
|
1037
|
+
${TAB_STYLES}
|
|
1011
1038
|
`;
|
|
1012
1039
|
/**
|
|
1013
1040
|
* Add styles for hiding and showing toggles animations and transitions to the document head
|
|
@@ -1039,7 +1066,7 @@ ${TAB_STYLES}
|
|
|
1039
1066
|
this.persistenceManager = new PersistenceManager();
|
|
1040
1067
|
this.visibilityManager = new VisibilityManager();
|
|
1041
1068
|
this.showUrlEnabled = opt.showUrl ?? false;
|
|
1042
|
-
this.lastAppliedState = this.cloneState(this.
|
|
1069
|
+
this.lastAppliedState = this.cloneState(this.getComputedDefaultState());
|
|
1043
1070
|
}
|
|
1044
1071
|
getConfig() {
|
|
1045
1072
|
return this.config;
|
|
@@ -1050,6 +1077,36 @@ ${TAB_STYLES}
|
|
|
1050
1077
|
getTabGroups() {
|
|
1051
1078
|
return this.config.tabGroups;
|
|
1052
1079
|
}
|
|
1080
|
+
/**
|
|
1081
|
+
* Generate a computed default state:
|
|
1082
|
+
* - If config.defaultState is defined, use it (even if empty)
|
|
1083
|
+
* - Otherwise, compute a default: enable all toggles and set all tab groups to their first tab
|
|
1084
|
+
*/
|
|
1085
|
+
getComputedDefaultState() {
|
|
1086
|
+
const configDefaultState = this.config?.defaultState;
|
|
1087
|
+
// If defaultState is explicitly defined in config, use it as-is
|
|
1088
|
+
if (configDefaultState !== undefined) {
|
|
1089
|
+
return configDefaultState;
|
|
1090
|
+
}
|
|
1091
|
+
// Otherwise, compute a default state: all toggles on, all tabs to first
|
|
1092
|
+
const tabs = {};
|
|
1093
|
+
// Set all tab groups to their first tab
|
|
1094
|
+
if (this.config.tabGroups?.length) {
|
|
1095
|
+
this.config.tabGroups.forEach(group => {
|
|
1096
|
+
if (group.tabs && group.tabs.length > 0) {
|
|
1097
|
+
const firstTab = group.tabs[0];
|
|
1098
|
+
if (firstTab?.id) {
|
|
1099
|
+
tabs[group.id] = firstTab.id;
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
});
|
|
1103
|
+
}
|
|
1104
|
+
const computedState = {
|
|
1105
|
+
toggles: [...(this.config.allToggles || [])],
|
|
1106
|
+
tabs
|
|
1107
|
+
};
|
|
1108
|
+
return computedState;
|
|
1109
|
+
}
|
|
1053
1110
|
/**
|
|
1054
1111
|
* Get currently active tabs (from URL > persisted (localStorage) > defaults)
|
|
1055
1112
|
*/
|
|
@@ -1061,7 +1118,7 @@ ${TAB_STYLES}
|
|
|
1061
1118
|
if (persistedState?.tabs) {
|
|
1062
1119
|
return { ...persistedState.tabs };
|
|
1063
1120
|
}
|
|
1064
|
-
return this.
|
|
1121
|
+
return this.getComputedDefaultState().tabs || {};
|
|
1065
1122
|
}
|
|
1066
1123
|
/**
|
|
1067
1124
|
* Set active tab for a group and apply state
|
|
@@ -1103,21 +1160,17 @@ ${TAB_STYLES}
|
|
|
1103
1160
|
this.applyState(newState);
|
|
1104
1161
|
});
|
|
1105
1162
|
// Apply stored nav visibility preference on page load
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
const visible = navPref === 'true';
|
|
1110
|
-
TabManager.setNavsVisibility(this.rootEl, visible);
|
|
1111
|
-
}
|
|
1163
|
+
const navPref = this.persistenceManager.getPersistedTabNavVisibility();
|
|
1164
|
+
if (navPref !== null) {
|
|
1165
|
+
TabManager.setNavsVisibility(this.rootEl, navPref);
|
|
1112
1166
|
}
|
|
1113
|
-
catch (e) { /* ignore */ }
|
|
1114
1167
|
// For session history, clicks on back/forward button
|
|
1115
1168
|
window.addEventListener("popstate", () => {
|
|
1116
1169
|
this.loadAndCallApplyState();
|
|
1117
1170
|
});
|
|
1118
1171
|
this.loadAndCallApplyState();
|
|
1119
1172
|
}
|
|
1120
|
-
// Priority: URL state > persisted state > default
|
|
1173
|
+
// Priority: URL state > persisted state > config default > computed default
|
|
1121
1174
|
// Also filters using the visibility manager to persist selection
|
|
1122
1175
|
// across back/forward button clicks
|
|
1123
1176
|
async loadAndCallApplyState() {
|
|
@@ -1133,8 +1186,8 @@ ${TAB_STYLES}
|
|
|
1133
1186
|
this.applyState(persistedState);
|
|
1134
1187
|
return;
|
|
1135
1188
|
}
|
|
1136
|
-
// 3.
|
|
1137
|
-
this.renderState(this.
|
|
1189
|
+
// 3. Computed Default Fallback
|
|
1190
|
+
this.renderState(this.getComputedDefaultState());
|
|
1138
1191
|
}
|
|
1139
1192
|
/**
|
|
1140
1193
|
* Apply a custom state, saves to localStorage and updates the URL
|
|
@@ -1153,7 +1206,7 @@ ${TAB_STYLES}
|
|
|
1153
1206
|
/** Render all toggles for the current state */
|
|
1154
1207
|
renderState(state) {
|
|
1155
1208
|
this.lastAppliedState = this.cloneState(state);
|
|
1156
|
-
const toggles = state
|
|
1209
|
+
const toggles = state?.toggles || [];
|
|
1157
1210
|
const finalToggles = this.visibilityManager.filterVisibleToggles(toggles);
|
|
1158
1211
|
// Apply toggle visibility
|
|
1159
1212
|
ToggleManager.applyToggles(this.rootEl, finalToggles);
|
|
@@ -1172,11 +1225,13 @@ ${TAB_STYLES}
|
|
|
1172
1225
|
resetToDefault() {
|
|
1173
1226
|
this.persistenceManager.clearAll();
|
|
1174
1227
|
if (this.config) {
|
|
1175
|
-
this.renderState(this.
|
|
1228
|
+
this.renderState(this.getComputedDefaultState());
|
|
1176
1229
|
}
|
|
1177
1230
|
else {
|
|
1178
1231
|
console.warn("No configuration loaded, cannot reset to default state");
|
|
1179
1232
|
}
|
|
1233
|
+
// Reset tab nav visibility to default (visible)
|
|
1234
|
+
TabManager.setNavsVisibility(this.rootEl, true);
|
|
1180
1235
|
// Clear URL
|
|
1181
1236
|
URLStateManager.clearURL();
|
|
1182
1237
|
}
|
|
@@ -1188,7 +1243,7 @@ ${TAB_STYLES}
|
|
|
1188
1243
|
return this.lastAppliedState.toggles || [];
|
|
1189
1244
|
}
|
|
1190
1245
|
if (this.config) {
|
|
1191
|
-
return this.
|
|
1246
|
+
return this.getComputedDefaultState().toggles || [];
|
|
1192
1247
|
}
|
|
1193
1248
|
return [];
|
|
1194
1249
|
}
|
|
@@ -1198,7 +1253,7 @@ ${TAB_STYLES}
|
|
|
1198
1253
|
clearPersistence() {
|
|
1199
1254
|
this.persistenceManager.clearAll();
|
|
1200
1255
|
if (this.config) {
|
|
1201
|
-
this.renderState(this.
|
|
1256
|
+
this.renderState(this.getComputedDefaultState());
|
|
1202
1257
|
}
|
|
1203
1258
|
else {
|
|
1204
1259
|
console.warn("No configuration loaded, cannot reset to default state");
|
|
@@ -1255,6 +1310,18 @@ ${TAB_STYLES}
|
|
|
1255
1310
|
}
|
|
1256
1311
|
});
|
|
1257
1312
|
}
|
|
1313
|
+
/**
|
|
1314
|
+
* Persist tab nav visibility preference
|
|
1315
|
+
*/
|
|
1316
|
+
persistTabNavVisibility(visible) {
|
|
1317
|
+
this.persistenceManager.persistTabNavVisibility(visible);
|
|
1318
|
+
}
|
|
1319
|
+
/**
|
|
1320
|
+
* Get persisted tab nav visibility preference
|
|
1321
|
+
*/
|
|
1322
|
+
getPersistedTabNavVisibility() {
|
|
1323
|
+
return this.persistenceManager.getPersistedTabNavVisibility();
|
|
1324
|
+
}
|
|
1258
1325
|
cloneState(state) {
|
|
1259
1326
|
if (!state)
|
|
1260
1327
|
return {};
|
|
@@ -1265,7 +1332,7 @@ ${TAB_STYLES}
|
|
|
1265
1332
|
return this.cloneState(this.lastAppliedState);
|
|
1266
1333
|
}
|
|
1267
1334
|
if (this.config) {
|
|
1268
|
-
return this.cloneState(this.
|
|
1335
|
+
return this.cloneState(this.getComputedDefaultState());
|
|
1269
1336
|
}
|
|
1270
1337
|
return {};
|
|
1271
1338
|
}
|
|
@@ -1425,993 +1492,1077 @@ ${TAB_STYLES}
|
|
|
1425
1492
|
* Note: Styles are kept as a TypeScript string for compatibility with the build system.
|
|
1426
1493
|
* This approach ensures the styles are properly bundled and don't require separate CSS file handling.
|
|
1427
1494
|
*/
|
|
1428
|
-
const WIDGET_STYLES = `
|
|
1429
|
-
/* Rounded rectangle widget icon styles */
|
|
1430
|
-
.cv-widget-icon {
|
|
1431
|
-
position: fixed;
|
|
1432
|
-
/* Slightly transparent by default so the widget is subtle at the page edge */
|
|
1433
|
-
background: rgba(255, 255, 255, 0.92);
|
|
1434
|
-
color: rgba(0, 0, 0, 0.9);
|
|
1435
|
-
opacity: 0.6;
|
|
1436
|
-
display: flex;
|
|
1437
|
-
align-items: center;
|
|
1438
|
-
justify-content: center;
|
|
1439
|
-
font-size: 18px;
|
|
1440
|
-
font-weight: bold;
|
|
1441
|
-
cursor: pointer;
|
|
1442
|
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
1443
|
-
z-index: 9998;
|
|
1444
|
-
transition: all 0.3s ease;
|
|
1445
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
1446
|
-
}
|
|
1447
|
-
|
|
1448
|
-
.cv-widget-icon:hover {
|
|
1449
|
-
/* Become fully opaque on hover to improve readability */
|
|
1450
|
-
background: rgba(255, 255, 255, 1);
|
|
1451
|
-
color: rgba(0, 0, 0, 1);
|
|
1452
|
-
opacity: 1;
|
|
1453
|
-
}
|
|
1454
|
-
|
|
1455
|
-
/* Top-right: rounded end on left, sticks out leftward on hover */
|
|
1456
|
-
.cv-widget-top-right {
|
|
1457
|
-
top: 20px;
|
|
1458
|
-
right: 0;
|
|
1459
|
-
border-radius: 18px 0 0 18px;
|
|
1460
|
-
padding-left: 8px;
|
|
1461
|
-
justify-content: flex-start;
|
|
1462
|
-
}
|
|
1463
|
-
|
|
1464
|
-
/* Top-left: rounded end on right, sticks out rightward on hover */
|
|
1465
|
-
.cv-widget-top-left {
|
|
1466
|
-
top: 20px;
|
|
1467
|
-
left: 0;
|
|
1468
|
-
border-radius: 0 18px 18px 0;
|
|
1469
|
-
padding-right: 8px;
|
|
1470
|
-
justify-content: flex-end;
|
|
1471
|
-
}
|
|
1472
|
-
|
|
1473
|
-
/* Bottom-right: rounded end on left, sticks out leftward on hover */
|
|
1474
|
-
.cv-widget-bottom-right {
|
|
1475
|
-
bottom: 20px;
|
|
1476
|
-
right: 0;
|
|
1477
|
-
border-radius: 18px 0 0 18px;
|
|
1478
|
-
padding-left: 8px;
|
|
1479
|
-
justify-content: flex-start;
|
|
1480
|
-
}
|
|
1481
|
-
|
|
1482
|
-
/* Bottom-left: rounded end on right, sticks out rightward on hover */
|
|
1483
|
-
.cv-widget-bottom-left {
|
|
1484
|
-
bottom: 20px;
|
|
1485
|
-
left: 0;
|
|
1486
|
-
border-radius: 0 18px 18px 0;
|
|
1487
|
-
padding-right: 8px;
|
|
1488
|
-
justify-content: flex-end;
|
|
1489
|
-
}
|
|
1490
|
-
|
|
1491
|
-
/* Middle-left: rounded end on right, sticks out rightward on hover */
|
|
1492
|
-
.cv-widget-middle-left {
|
|
1493
|
-
top: 50%;
|
|
1494
|
-
left: 0;
|
|
1495
|
-
transform: translateY(-50%);
|
|
1496
|
-
border-radius: 0 18px 18px 0;
|
|
1497
|
-
padding-right: 8px;
|
|
1498
|
-
justify-content: flex-end;
|
|
1499
|
-
}
|
|
1500
|
-
|
|
1501
|
-
/* Middle-right: rounded end on left, sticks out leftward on hover */
|
|
1502
|
-
.cv-widget-middle-right {
|
|
1503
|
-
top: 50%;
|
|
1504
|
-
right: 0;
|
|
1505
|
-
transform: translateY(-50%);
|
|
1506
|
-
border-radius: 18px 0 0 18px;
|
|
1507
|
-
padding-left: 8px;
|
|
1508
|
-
justify-content: flex-start;
|
|
1509
|
-
}
|
|
1510
|
-
|
|
1511
|
-
.cv-widget-top-right,
|
|
1512
|
-
.cv-widget-middle-right,
|
|
1513
|
-
.cv-widget-bottom-right,
|
|
1514
|
-
.cv-widget-top-left,
|
|
1515
|
-
.cv-widget-middle-left,
|
|
1516
|
-
.cv-widget-bottom-left {
|
|
1517
|
-
height: 36px;
|
|
1518
|
-
width: 36px;
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
.cv-widget-middle-right:hover,
|
|
1522
|
-
.cv-widget-top-right:hover,
|
|
1523
|
-
.cv-widget-bottom-right:hover,
|
|
1524
|
-
.cv-widget-top-left:hover,
|
|
1525
|
-
.cv-widget-middle-left:hover,
|
|
1526
|
-
.cv-widget-bottom-left:hover {
|
|
1527
|
-
width: 55px;
|
|
1528
|
-
}
|
|
1529
|
-
|
|
1530
|
-
/* Modal content styles */
|
|
1531
|
-
.cv-widget-section {
|
|
1532
|
-
margin-bottom: 16px;
|
|
1533
|
-
}
|
|
1534
|
-
|
|
1535
|
-
.cv-widget-section:last-child {
|
|
1536
|
-
margin-bottom: 0;
|
|
1537
|
-
}
|
|
1538
|
-
|
|
1539
|
-
.cv-widget-section label {
|
|
1540
|
-
display: block;
|
|
1541
|
-
margin-bottom: 4px;
|
|
1542
|
-
font-weight: 500;
|
|
1543
|
-
color: #555;
|
|
1544
|
-
}
|
|
1545
|
-
|
|
1546
|
-
.cv-widget-profile-select,
|
|
1547
|
-
.cv-widget-state-select {
|
|
1548
|
-
width: 100%;
|
|
1549
|
-
padding: 8px 12px;
|
|
1550
|
-
border: 1px solid #ddd;
|
|
1551
|
-
border-radius: 4px;
|
|
1552
|
-
background: white;
|
|
1553
|
-
font-size: 14px;
|
|
1554
|
-
}
|
|
1555
|
-
|
|
1556
|
-
.cv-widget-profile-select:focus,
|
|
1557
|
-
.cv-widget-state-select:focus {
|
|
1558
|
-
outline: none;
|
|
1559
|
-
border-color: #007bff;
|
|
1560
|
-
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
|
|
1561
|
-
}
|
|
1562
|
-
|
|
1563
|
-
.cv-widget-profile-select:disabled,
|
|
1564
|
-
.cv-widget-state-select:disabled {
|
|
1565
|
-
background: #f8f9fa;
|
|
1566
|
-
color: #6c757d;
|
|
1567
|
-
cursor: not-allowed;
|
|
1568
|
-
}
|
|
1569
|
-
|
|
1570
|
-
.cv-widget-current {
|
|
1571
|
-
margin: 16px 0;
|
|
1572
|
-
padding: 12px;
|
|
1573
|
-
background: #f8f9fa;
|
|
1574
|
-
border-radius: 4px;
|
|
1575
|
-
border-left: 4px solid #007bff;
|
|
1576
|
-
}
|
|
1577
|
-
|
|
1578
|
-
.cv-widget-current label {
|
|
1579
|
-
font-size: 12px;
|
|
1580
|
-
text-transform: uppercase;
|
|
1581
|
-
letter-spacing: 0.5px;
|
|
1582
|
-
color: #666;
|
|
1583
|
-
margin-bottom: 4px;
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
|
-
.cv-widget-current-view {
|
|
1587
|
-
font-weight: 500;
|
|
1588
|
-
color: #333;
|
|
1589
|
-
}
|
|
1590
|
-
|
|
1591
|
-
.cv-widget-reset {
|
|
1592
|
-
width: 100%;
|
|
1593
|
-
padding: 8px 16px;
|
|
1594
|
-
background: #dc3545;
|
|
1595
|
-
color: white;
|
|
1596
|
-
border: none;
|
|
1597
|
-
border-radius: 4px;
|
|
1598
|
-
cursor: pointer;
|
|
1599
|
-
font-size: 14px;
|
|
1600
|
-
font-weight: 500;
|
|
1601
|
-
}
|
|
1602
|
-
|
|
1603
|
-
.cv-widget-reset:hover {
|
|
1604
|
-
background: #c82333;
|
|
1605
|
-
}
|
|
1606
|
-
|
|
1607
|
-
.cv-widget-reset:active {
|
|
1608
|
-
background: #bd2130;
|
|
1609
|
-
}
|
|
1610
|
-
|
|
1611
|
-
/* Responsive design for mobile */
|
|
1612
|
-
@media (max-width: 768px) {
|
|
1613
|
-
.cv-widget-top-right,
|
|
1614
|
-
.cv-widget-top-left {
|
|
1615
|
-
top: 10px;
|
|
1616
|
-
}
|
|
1617
|
-
|
|
1618
|
-
.cv-widget-bottom-right,
|
|
1619
|
-
.cv-widget-bottom-left {
|
|
1620
|
-
bottom: 10px;
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
|
-
/* All widgets stay flush with screen edges */
|
|
1624
|
-
.cv-widget-top-right,
|
|
1625
|
-
.cv-widget-bottom-right,
|
|
1626
|
-
.cv-widget-middle-right {
|
|
1627
|
-
right: 0;
|
|
1628
|
-
}
|
|
1629
|
-
|
|
1630
|
-
.cv-widget-top-left,
|
|
1631
|
-
.cv-widget-bottom-left,
|
|
1632
|
-
.cv-widget-middle-left {
|
|
1633
|
-
left: 0;
|
|
1634
|
-
}
|
|
1635
|
-
|
|
1636
|
-
/* Slightly smaller on mobile */
|
|
1637
|
-
.cv-widget-icon {
|
|
1638
|
-
width: 60px;
|
|
1639
|
-
height: 32px;
|
|
1640
|
-
}
|
|
1641
|
-
|
|
1642
|
-
.cv-widget-icon:hover {
|
|
1643
|
-
width: 75px;
|
|
1644
|
-
}
|
|
1645
|
-
}
|
|
1646
|
-
|
|
1647
|
-
/* Modal styles */
|
|
1648
|
-
.cv-widget-modal-overlay {
|
|
1649
|
-
position: fixed;
|
|
1650
|
-
top: 0;
|
|
1651
|
-
left: 0;
|
|
1652
|
-
right: 0;
|
|
1653
|
-
bottom: 0;
|
|
1654
|
-
background: rgba(0, 0, 0, 0.5);
|
|
1655
|
-
display: flex;
|
|
1656
|
-
align-items: center;
|
|
1657
|
-
justify-content: center;
|
|
1658
|
-
z-index: 10002;
|
|
1659
|
-
animation: fadeIn 0.2s ease;
|
|
1660
|
-
}
|
|
1661
|
-
|
|
1662
|
-
@keyframes fadeIn {
|
|
1663
|
-
from { opacity: 0; }
|
|
1664
|
-
to { opacity: 1; }
|
|
1665
|
-
}
|
|
1666
|
-
|
|
1667
|
-
.cv-widget-modal {
|
|
1668
|
-
background: white;
|
|
1669
|
-
border-radius: 0.75rem;
|
|
1670
|
-
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
|
1671
|
-
max-width: 32rem;
|
|
1672
|
-
width: 90vw;
|
|
1673
|
-
max-height: 80vh;
|
|
1674
|
-
animation: slideIn 0.2s ease;
|
|
1675
|
-
display: flex;
|
|
1676
|
-
flex-direction: column;
|
|
1677
|
-
}
|
|
1678
|
-
|
|
1679
|
-
@keyframes slideIn {
|
|
1680
|
-
from {
|
|
1681
|
-
opacity: 0;
|
|
1682
|
-
transform: scale(0.9) translateY(-20px);
|
|
1683
|
-
}
|
|
1684
|
-
to {
|
|
1685
|
-
opacity: 1;
|
|
1686
|
-
transform: scale(1) translateY(0);
|
|
1687
|
-
}
|
|
1688
|
-
}
|
|
1689
|
-
|
|
1690
|
-
.cv-modal-header {
|
|
1691
|
-
display: flex;
|
|
1692
|
-
align-items: center;
|
|
1693
|
-
justify-content: space-between;
|
|
1694
|
-
padding: 0.5rem 1rem;
|
|
1695
|
-
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
1696
|
-
}
|
|
1697
|
-
|
|
1698
|
-
.cv-modal-header-content {
|
|
1699
|
-
display: flex;
|
|
1700
|
-
align-items: center;
|
|
1701
|
-
gap: 0.75rem;
|
|
1702
|
-
}
|
|
1703
|
-
|
|
1704
|
-
.cv-modal-icon {
|
|
1705
|
-
position: relative;
|
|
1706
|
-
width: 1rem;
|
|
1707
|
-
height: 1rem;
|
|
1708
|
-
display: flex;
|
|
1709
|
-
align-items: center;
|
|
1710
|
-
justify-content: center;
|
|
1711
|
-
border-radius: 9999px;
|
|
1712
|
-
}
|
|
1713
|
-
|
|
1714
|
-
.cv-modal-icon-svg {
|
|
1715
|
-
width: 100%;
|
|
1716
|
-
height: 100%;
|
|
1717
|
-
opacity: 1;
|
|
1718
|
-
}
|
|
1719
|
-
|
|
1720
|
-
.cv-modal-title {
|
|
1721
|
-
font-size: 1.125rem;
|
|
1722
|
-
font-weight: bold;
|
|
1723
|
-
color: rgba(0, 0, 0, 0.9);
|
|
1724
|
-
margin: 0;
|
|
1725
|
-
}
|
|
1726
|
-
|
|
1727
|
-
.cv-modal-close {
|
|
1728
|
-
width: 2rem;
|
|
1729
|
-
height: 2rem;
|
|
1730
|
-
display: flex;
|
|
1731
|
-
align-items: center;
|
|
1732
|
-
justify-content: center;
|
|
1733
|
-
border-radius: 9999px;
|
|
1734
|
-
background: transparent;
|
|
1735
|
-
border: none;
|
|
1736
|
-
color: rgba(0, 0, 0, 0.6);
|
|
1737
|
-
cursor: pointer;
|
|
1738
|
-
transition: all 0.2s ease;
|
|
1739
|
-
}
|
|
1740
|
-
|
|
1741
|
-
.cv-modal-close:hover {
|
|
1742
|
-
background: rgba(62, 132, 244, 0.1);
|
|
1743
|
-
color: #3e84f4;
|
|
1744
|
-
}
|
|
1745
|
-
|
|
1746
|
-
.cv-modal-close-icon {
|
|
1747
|
-
width: 1.25rem;
|
|
1748
|
-
height: 1.25rem;
|
|
1749
|
-
}
|
|
1750
|
-
|
|
1751
|
-
.cv-modal-main {
|
|
1752
|
-
padding: 1rem;
|
|
1753
|
-
flex: 1;
|
|
1754
|
-
display: flex;
|
|
1755
|
-
flex-direction: column;
|
|
1756
|
-
gap: 1rem;
|
|
1757
|
-
overflow-y: auto;
|
|
1758
|
-
max-height: calc(80vh - 8rem);
|
|
1759
|
-
}
|
|
1760
|
-
|
|
1761
|
-
.cv-modal-description {
|
|
1762
|
-
font-size: 0.875rem;
|
|
1763
|
-
color: rgba(0, 0, 0, 0.8);
|
|
1764
|
-
margin: 0;
|
|
1765
|
-
line-height: 1.4;
|
|
1766
|
-
}
|
|
1767
|
-
|
|
1768
|
-
.cv-content-section,
|
|
1769
|
-
.cv-tab-groups-section {
|
|
1770
|
-
display: flex;
|
|
1771
|
-
flex-direction: column;
|
|
1772
|
-
gap: 0.75rem;
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
|
-
.cv-section-heading {
|
|
1776
|
-
font-size: 1rem;
|
|
1777
|
-
font-weight: bold;
|
|
1778
|
-
color: rgba(0, 0, 0, 0.9);
|
|
1779
|
-
margin: 0;
|
|
1780
|
-
}
|
|
1781
|
-
|
|
1782
|
-
.cv-widget-modal-actions {
|
|
1783
|
-
margin-top: 20px;
|
|
1784
|
-
padding-top: 16px;
|
|
1785
|
-
border-top: 1px solid #e9ecef;
|
|
1786
|
-
}
|
|
1787
|
-
|
|
1788
|
-
.cv-widget-restore {
|
|
1789
|
-
width: 100%;
|
|
1790
|
-
padding: 10px 16px;
|
|
1791
|
-
background: #28a745;
|
|
1792
|
-
color: white;
|
|
1793
|
-
border: none;
|
|
1794
|
-
border-radius: 4px;
|
|
1795
|
-
cursor: pointer;
|
|
1796
|
-
font-size: 14px;
|
|
1797
|
-
font-weight: 500;
|
|
1798
|
-
}
|
|
1799
|
-
|
|
1800
|
-
.cv-widget-restore:hover {
|
|
1801
|
-
background: #218838;
|
|
1802
|
-
}
|
|
1803
|
-
|
|
1804
|
-
.cv-widget-create-state {
|
|
1805
|
-
width: 100%;
|
|
1806
|
-
padding: 10px 16px;
|
|
1807
|
-
background: #007bff;
|
|
1808
|
-
color: white;
|
|
1809
|
-
border: none;
|
|
1810
|
-
border-radius: 4px;
|
|
1811
|
-
cursor: pointer;
|
|
1812
|
-
font-size: 14px;
|
|
1813
|
-
font-weight: 500;
|
|
1814
|
-
margin-bottom: 10px;
|
|
1815
|
-
}
|
|
1816
|
-
|
|
1817
|
-
.cv-widget-create-state:hover {
|
|
1818
|
-
background: #0056b3;
|
|
1819
|
-
}
|
|
1820
|
-
|
|
1821
|
-
.cv-widget-theme-dark .cv-widget-modal {
|
|
1822
|
-
background: #101722;
|
|
1823
|
-
color: #e2e8f0;
|
|
1824
|
-
}
|
|
1825
|
-
|
|
1826
|
-
.cv-widget-theme-dark .cv-modal-header {
|
|
1827
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
1828
|
-
}
|
|
1829
|
-
|
|
1830
|
-
.cv-widget-theme-dark .cv-modal-title {
|
|
1831
|
-
color: #e2e8f0;
|
|
1832
|
-
}
|
|
1833
|
-
|
|
1834
|
-
.cv-widget-theme-dark .cv-modal-close {
|
|
1835
|
-
color: rgba(255, 255, 255, 0.6);
|
|
1836
|
-
}
|
|
1837
|
-
|
|
1838
|
-
.cv-widget-theme-dark .cv-modal-close:hover {
|
|
1839
|
-
background: rgba(62, 132, 244, 0.2);
|
|
1840
|
-
color: #3e84f4;
|
|
1841
|
-
}
|
|
1842
|
-
|
|
1843
|
-
.cv-widget-theme-dark .cv-modal-description {
|
|
1844
|
-
color: rgba(255, 255, 255, 0.8);
|
|
1845
|
-
}
|
|
1846
|
-
|
|
1847
|
-
.cv-widget-theme-dark .cv-section-heading {
|
|
1848
|
-
color: #e2e8f0;
|
|
1849
|
-
}
|
|
1850
|
-
|
|
1851
|
-
.cv-widget-theme-dark .cv-toggles-container
|
|
1852
|
-
.cv-widget-theme-dark .cv-tabgroups-container {
|
|
1853
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
1854
|
-
}
|
|
1855
|
-
|
|
1856
|
-
.cv-widget-theme-dark .cv-toggle-card,
|
|
1857
|
-
.cv-widget-theme-dark .cv-tabgroup-card {
|
|
1858
|
-
background: #101722;
|
|
1859
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
1860
|
-
}
|
|
1861
|
-
|
|
1862
|
-
.cv-widget-theme-dark .cv-toggle-title,
|
|
1863
|
-
.cv-widget-theme-dark .cv-tabgroup-title {
|
|
1864
|
-
color: #e2e8f0;
|
|
1865
|
-
}
|
|
1866
|
-
|
|
1867
|
-
.cv-widget-theme-dark .cv-toggle-description,
|
|
1868
|
-
.cv-widget-theme-dark .cv-tabgroup-description {
|
|
1869
|
-
color: rgba(255, 255, 255, 0.6);
|
|
1870
|
-
}
|
|
1871
|
-
|
|
1872
|
-
.cv-widget-theme-dark .cv-toggle-slider {
|
|
1873
|
-
background: rgba(255, 255, 255, 0.2);
|
|
1874
|
-
}
|
|
1875
|
-
|
|
1876
|
-
.cv-widget-theme-dark .cv-tab-group-description {
|
|
1877
|
-
color: rgba(255, 255, 255, 0.8);
|
|
1878
|
-
}
|
|
1879
|
-
|
|
1880
|
-
.cv-widget-theme-dark .cv-tabgroup-select {
|
|
1881
|
-
background: #101722;
|
|
1882
|
-
border-color: rgba(255, 255, 255, 0.2);
|
|
1883
|
-
color: #e2e8f0;
|
|
1884
|
-
}
|
|
1885
|
-
|
|
1886
|
-
.cv-widget-theme-dark .cv-modal-footer {
|
|
1887
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
1888
|
-
background: #101722;
|
|
1889
|
-
}
|
|
1890
|
-
|
|
1891
|
-
.cv-widget-theme-dark .cv-reset-btn {
|
|
1892
|
-
color: #e2e8f0;
|
|
1893
|
-
background: rgba(255, 255, 255, 0.1);
|
|
1894
|
-
}
|
|
1895
|
-
|
|
1896
|
-
.cv-widget-theme-dark .cv-reset-btn:hover {
|
|
1897
|
-
background: rgba(255, 255, 255, 0.2);
|
|
1898
|
-
}
|
|
1899
|
-
|
|
1900
|
-
/* Custom state creator styles */
|
|
1901
|
-
.cv-custom-state-modal {
|
|
1902
|
-
max-width: 500px;
|
|
1903
|
-
}
|
|
1904
|
-
|
|
1905
|
-
.cv-custom-state-form .cv-section-header {
|
|
1906
|
-
font-size: 16px;
|
|
1907
|
-
font-weight: 600;
|
|
1908
|
-
color: #333;
|
|
1909
|
-
border-bottom: 1px solid #e9ecef;
|
|
1910
|
-
padding-bottom: 5px;
|
|
1911
|
-
}
|
|
1912
|
-
|
|
1913
|
-
.cv-custom-state-form p {
|
|
1914
|
-
font-size: 15px;
|
|
1915
|
-
line-height: 1.6;
|
|
1916
|
-
color: #555;
|
|
1917
|
-
margin-bottom: 24px;
|
|
1918
|
-
text-align: justify;
|
|
1919
|
-
}
|
|
1920
|
-
|
|
1921
|
-
.cv-custom-state-section {
|
|
1922
|
-
margin-bottom: 16px;
|
|
1923
|
-
}
|
|
1924
|
-
|
|
1925
|
-
.cv-custom-state-section label {
|
|
1926
|
-
display: block;
|
|
1927
|
-
margin-bottom: 4px;
|
|
1928
|
-
font-weight: 500;
|
|
1929
|
-
color: #555;
|
|
1930
|
-
}
|
|
1931
|
-
|
|
1932
|
-
.cv-custom-state-input {
|
|
1933
|
-
width: 100%;
|
|
1934
|
-
padding: 8px 12px;
|
|
1935
|
-
border: 1px solid #ddd;
|
|
1936
|
-
border-radius: 4px;
|
|
1937
|
-
background: white;
|
|
1938
|
-
font-size: 14px;
|
|
1939
|
-
}
|
|
1940
|
-
|
|
1941
|
-
.cv-custom-state-input:focus {
|
|
1942
|
-
outline: none;
|
|
1943
|
-
border-color: #007bff;
|
|
1944
|
-
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
|
|
1945
|
-
}
|
|
1946
|
-
|
|
1947
|
-
/* Toggles Container */
|
|
1948
|
-
.cv-toggles-container {
|
|
1949
|
-
display: flex;
|
|
1950
|
-
flex-direction: column;
|
|
1951
|
-
gap: 0.5rem;
|
|
1952
|
-
border-radius: 0.5rem;
|
|
1953
|
-
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
1954
|
-
overflow: hidden;
|
|
1955
|
-
}
|
|
1956
|
-
|
|
1957
|
-
.cv-toggle-card,
|
|
1958
|
-
.cv-tabgroup-card {
|
|
1959
|
-
background: white;
|
|
1960
|
-
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
1961
|
-
}
|
|
1962
|
-
|
|
1963
|
-
.cv-toggle-card:last-child {
|
|
1964
|
-
border-bottom: none;
|
|
1965
|
-
}
|
|
1966
|
-
|
|
1967
|
-
.cv-toggle-content {
|
|
1968
|
-
display: flex;
|
|
1969
|
-
align-items: center;
|
|
1970
|
-
justify-content: space-between;
|
|
1971
|
-
padding: 0.75rem;
|
|
1972
|
-
}
|
|
1973
|
-
|
|
1974
|
-
.cv-toggle-title {
|
|
1975
|
-
font-weight: 500;
|
|
1976
|
-
font-size: 0.875rem;
|
|
1977
|
-
color: rgba(0, 0, 0, 0.9);
|
|
1978
|
-
margin: 0 0 0.125rem 0;
|
|
1979
|
-
}
|
|
1980
|
-
|
|
1981
|
-
.cv-toggle-description {
|
|
1982
|
-
font-size: 0.75rem;
|
|
1983
|
-
color: rgba(0, 0, 0, 0.6);
|
|
1984
|
-
margin: 0;
|
|
1985
|
-
}
|
|
1986
|
-
|
|
1987
|
-
.cv-toggle-label{
|
|
1988
|
-
position: relative;
|
|
1989
|
-
display: inline-block;
|
|
1990
|
-
width: 2.75rem;
|
|
1991
|
-
height: 1.5rem;
|
|
1992
|
-
cursor: pointer;
|
|
1993
|
-
}
|
|
1994
|
-
|
|
1995
|
-
.cv-toggle-input {
|
|
1996
|
-
opacity: 0;
|
|
1997
|
-
width: 0;
|
|
1998
|
-
height: 0;
|
|
1999
|
-
}
|
|
2000
|
-
|
|
2001
|
-
.cv-toggle-slider {
|
|
2002
|
-
position: absolute;
|
|
2003
|
-
top: 0;
|
|
2004
|
-
left: 0;
|
|
2005
|
-
right: 0;
|
|
2006
|
-
bottom: 0;
|
|
2007
|
-
background: rgba(0, 0, 0, 0.2);
|
|
2008
|
-
border-radius: 9999px;
|
|
2009
|
-
transition: background-color 0.2s ease;
|
|
2010
|
-
}
|
|
2011
|
-
|
|
2012
|
-
.cv-toggle-slider:before {
|
|
2013
|
-
position: absolute;
|
|
2014
|
-
content: "";
|
|
2015
|
-
height: 1rem;
|
|
2016
|
-
width: 1rem;
|
|
2017
|
-
left: 0.25rem;
|
|
2018
|
-
bottom: 0.25rem;
|
|
2019
|
-
background: white;
|
|
2020
|
-
border-radius: 50%;
|
|
2021
|
-
transition: transform 0.2s ease;
|
|
2022
|
-
}
|
|
2023
|
-
|
|
2024
|
-
.cv-toggle-input:checked + .cv-toggle-slider {
|
|
2025
|
-
background: #3e84f4;
|
|
2026
|
-
}
|
|
2027
|
-
|
|
2028
|
-
.cv-toggle-input:checked + .cv-toggle-slider:before {
|
|
2029
|
-
transform: translateX(1.25rem);
|
|
2030
|
-
}
|
|
2031
|
-
|
|
2032
|
-
/* Dark theme toggle switch styles */
|
|
2033
|
-
.cv-widget-theme-dark .cv-toggle-switch {
|
|
2034
|
-
background: #4a5568;
|
|
2035
|
-
}
|
|
2036
|
-
|
|
2037
|
-
.cv-widget-theme-dark .cv-toggle-switch:hover {
|
|
2038
|
-
background: #5a6578;
|
|
2039
|
-
}
|
|
2040
|
-
|
|
2041
|
-
.cv-widget-theme-dark .cv-toggle-switch.cv-toggle-active {
|
|
2042
|
-
background: #63b3ed;
|
|
2043
|
-
}
|
|
2044
|
-
|
|
2045
|
-
.cv-widget-theme-dark .cv-toggle-switch.cv-toggle-active:hover {
|
|
2046
|
-
background: #4299e1;
|
|
2047
|
-
}
|
|
2048
|
-
|
|
2049
|
-
/* Tab Groups Container */
|
|
2050
|
-
.cv-tab-groups-list {
|
|
2051
|
-
display: flex;
|
|
2052
|
-
flex-direction: column;
|
|
2053
|
-
gap: 1px;
|
|
2054
|
-
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
2055
|
-
border-radius: 0.5rem;
|
|
2056
|
-
overflow: hidden;
|
|
2057
|
-
}
|
|
2058
|
-
|
|
2059
|
-
/* Tab Group Card - Header (Navigation Headers toggle) */
|
|
2060
|
-
.cv-tabgroup-card.cv-tabgroup-header {
|
|
2061
|
-
display: flex;
|
|
2062
|
-
align-items: center;
|
|
2063
|
-
justify-content: space-between;
|
|
2064
|
-
padding: 0.75rem;
|
|
2065
|
-
border-bottom: 0px;
|
|
2066
|
-
}
|
|
2067
|
-
|
|
2068
|
-
.cv-tabgroup-card.cv-tabgroup-header .cv-tabgroup-row {
|
|
2069
|
-
display: flex;
|
|
2070
|
-
align-items: center;
|
|
2071
|
-
justify-content: space-between;
|
|
2072
|
-
width: 100%;
|
|
2073
|
-
gap: 1rem;
|
|
2074
|
-
}
|
|
2075
|
-
|
|
2076
|
-
/*
|
|
2077
|
-
.cv-
|
|
2078
|
-
display: flex;
|
|
2079
|
-
|
|
2080
|
-
gap: 0.5rem;
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
.
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
.cv-tabgroup-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
.cv-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
}
|
|
2187
|
-
|
|
2188
|
-
.cv-
|
|
2189
|
-
|
|
2190
|
-
}
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
}
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
border-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
.cv-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
}
|
|
2268
|
-
|
|
2269
|
-
.cv-
|
|
2270
|
-
color: rgba(
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
}
|
|
2282
|
-
|
|
2283
|
-
.cv-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
.
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
font-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
}
|
|
2322
|
-
|
|
2323
|
-
.cv-
|
|
2324
|
-
color:
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
}
|
|
2362
|
-
|
|
2363
|
-
.cv-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
}
|
|
2380
|
-
|
|
2381
|
-
.cv-welcome-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
background: #
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
1495
|
+
const WIDGET_STYLES = `
|
|
1496
|
+
/* Rounded rectangle widget icon styles */
|
|
1497
|
+
.cv-widget-icon {
|
|
1498
|
+
position: fixed;
|
|
1499
|
+
/* Slightly transparent by default so the widget is subtle at the page edge */
|
|
1500
|
+
background: rgba(255, 255, 255, 0.92);
|
|
1501
|
+
color: rgba(0, 0, 0, 0.9);
|
|
1502
|
+
opacity: 0.6;
|
|
1503
|
+
display: flex;
|
|
1504
|
+
align-items: center;
|
|
1505
|
+
justify-content: center;
|
|
1506
|
+
font-size: 18px;
|
|
1507
|
+
font-weight: bold;
|
|
1508
|
+
cursor: pointer;
|
|
1509
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
1510
|
+
z-index: 9998;
|
|
1511
|
+
transition: all 0.3s ease;
|
|
1512
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
.cv-widget-icon:hover {
|
|
1516
|
+
/* Become fully opaque on hover to improve readability */
|
|
1517
|
+
background: rgba(255, 255, 255, 1);
|
|
1518
|
+
color: rgba(0, 0, 0, 1);
|
|
1519
|
+
opacity: 1;
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
/* Top-right: rounded end on left, sticks out leftward on hover */
|
|
1523
|
+
.cv-widget-top-right {
|
|
1524
|
+
top: 20px;
|
|
1525
|
+
right: 0;
|
|
1526
|
+
border-radius: 18px 0 0 18px;
|
|
1527
|
+
padding-left: 8px;
|
|
1528
|
+
justify-content: flex-start;
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
/* Top-left: rounded end on right, sticks out rightward on hover */
|
|
1532
|
+
.cv-widget-top-left {
|
|
1533
|
+
top: 20px;
|
|
1534
|
+
left: 0;
|
|
1535
|
+
border-radius: 0 18px 18px 0;
|
|
1536
|
+
padding-right: 8px;
|
|
1537
|
+
justify-content: flex-end;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
/* Bottom-right: rounded end on left, sticks out leftward on hover */
|
|
1541
|
+
.cv-widget-bottom-right {
|
|
1542
|
+
bottom: 20px;
|
|
1543
|
+
right: 0;
|
|
1544
|
+
border-radius: 18px 0 0 18px;
|
|
1545
|
+
padding-left: 8px;
|
|
1546
|
+
justify-content: flex-start;
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
/* Bottom-left: rounded end on right, sticks out rightward on hover */
|
|
1550
|
+
.cv-widget-bottom-left {
|
|
1551
|
+
bottom: 20px;
|
|
1552
|
+
left: 0;
|
|
1553
|
+
border-radius: 0 18px 18px 0;
|
|
1554
|
+
padding-right: 8px;
|
|
1555
|
+
justify-content: flex-end;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
/* Middle-left: rounded end on right, sticks out rightward on hover */
|
|
1559
|
+
.cv-widget-middle-left {
|
|
1560
|
+
top: 50%;
|
|
1561
|
+
left: 0;
|
|
1562
|
+
transform: translateY(-50%);
|
|
1563
|
+
border-radius: 0 18px 18px 0;
|
|
1564
|
+
padding-right: 8px;
|
|
1565
|
+
justify-content: flex-end;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
/* Middle-right: rounded end on left, sticks out leftward on hover */
|
|
1569
|
+
.cv-widget-middle-right {
|
|
1570
|
+
top: 50%;
|
|
1571
|
+
right: 0;
|
|
1572
|
+
transform: translateY(-50%);
|
|
1573
|
+
border-radius: 18px 0 0 18px;
|
|
1574
|
+
padding-left: 8px;
|
|
1575
|
+
justify-content: flex-start;
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
.cv-widget-top-right,
|
|
1579
|
+
.cv-widget-middle-right,
|
|
1580
|
+
.cv-widget-bottom-right,
|
|
1581
|
+
.cv-widget-top-left,
|
|
1582
|
+
.cv-widget-middle-left,
|
|
1583
|
+
.cv-widget-bottom-left {
|
|
1584
|
+
height: 36px;
|
|
1585
|
+
width: 36px;
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
.cv-widget-middle-right:hover,
|
|
1589
|
+
.cv-widget-top-right:hover,
|
|
1590
|
+
.cv-widget-bottom-right:hover,
|
|
1591
|
+
.cv-widget-top-left:hover,
|
|
1592
|
+
.cv-widget-middle-left:hover,
|
|
1593
|
+
.cv-widget-bottom-left:hover {
|
|
1594
|
+
width: 55px;
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
/* Modal content styles */
|
|
1598
|
+
.cv-widget-section {
|
|
1599
|
+
margin-bottom: 16px;
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
.cv-widget-section:last-child {
|
|
1603
|
+
margin-bottom: 0;
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
.cv-widget-section label {
|
|
1607
|
+
display: block;
|
|
1608
|
+
margin-bottom: 4px;
|
|
1609
|
+
font-weight: 500;
|
|
1610
|
+
color: #555;
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
.cv-widget-profile-select,
|
|
1614
|
+
.cv-widget-state-select {
|
|
1615
|
+
width: 100%;
|
|
1616
|
+
padding: 8px 12px;
|
|
1617
|
+
border: 1px solid #ddd;
|
|
1618
|
+
border-radius: 4px;
|
|
1619
|
+
background: white;
|
|
1620
|
+
font-size: 14px;
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
.cv-widget-profile-select:focus,
|
|
1624
|
+
.cv-widget-state-select:focus {
|
|
1625
|
+
outline: none;
|
|
1626
|
+
border-color: #007bff;
|
|
1627
|
+
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
.cv-widget-profile-select:disabled,
|
|
1631
|
+
.cv-widget-state-select:disabled {
|
|
1632
|
+
background: #f8f9fa;
|
|
1633
|
+
color: #6c757d;
|
|
1634
|
+
cursor: not-allowed;
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
.cv-widget-current {
|
|
1638
|
+
margin: 16px 0;
|
|
1639
|
+
padding: 12px;
|
|
1640
|
+
background: #f8f9fa;
|
|
1641
|
+
border-radius: 4px;
|
|
1642
|
+
border-left: 4px solid #007bff;
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
|
+
.cv-widget-current label {
|
|
1646
|
+
font-size: 12px;
|
|
1647
|
+
text-transform: uppercase;
|
|
1648
|
+
letter-spacing: 0.5px;
|
|
1649
|
+
color: #666;
|
|
1650
|
+
margin-bottom: 4px;
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
.cv-widget-current-view {
|
|
1654
|
+
font-weight: 500;
|
|
1655
|
+
color: #333;
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
.cv-widget-reset {
|
|
1659
|
+
width: 100%;
|
|
1660
|
+
padding: 8px 16px;
|
|
1661
|
+
background: #dc3545;
|
|
1662
|
+
color: white;
|
|
1663
|
+
border: none;
|
|
1664
|
+
border-radius: 4px;
|
|
1665
|
+
cursor: pointer;
|
|
1666
|
+
font-size: 14px;
|
|
1667
|
+
font-weight: 500;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
.cv-widget-reset:hover {
|
|
1671
|
+
background: #c82333;
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
.cv-widget-reset:active {
|
|
1675
|
+
background: #bd2130;
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
/* Responsive design for mobile */
|
|
1679
|
+
@media (max-width: 768px) {
|
|
1680
|
+
.cv-widget-top-right,
|
|
1681
|
+
.cv-widget-top-left {
|
|
1682
|
+
top: 10px;
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
.cv-widget-bottom-right,
|
|
1686
|
+
.cv-widget-bottom-left {
|
|
1687
|
+
bottom: 10px;
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
/* All widgets stay flush with screen edges */
|
|
1691
|
+
.cv-widget-top-right,
|
|
1692
|
+
.cv-widget-bottom-right,
|
|
1693
|
+
.cv-widget-middle-right {
|
|
1694
|
+
right: 0;
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
.cv-widget-top-left,
|
|
1698
|
+
.cv-widget-bottom-left,
|
|
1699
|
+
.cv-widget-middle-left {
|
|
1700
|
+
left: 0;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
/* Slightly smaller on mobile */
|
|
1704
|
+
.cv-widget-icon {
|
|
1705
|
+
width: 60px;
|
|
1706
|
+
height: 32px;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
.cv-widget-icon:hover {
|
|
1710
|
+
width: 75px;
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
/* Modal styles */
|
|
1715
|
+
.cv-widget-modal-overlay {
|
|
1716
|
+
position: fixed;
|
|
1717
|
+
top: 0;
|
|
1718
|
+
left: 0;
|
|
1719
|
+
right: 0;
|
|
1720
|
+
bottom: 0;
|
|
1721
|
+
background: rgba(0, 0, 0, 0.5);
|
|
1722
|
+
display: flex;
|
|
1723
|
+
align-items: center;
|
|
1724
|
+
justify-content: center;
|
|
1725
|
+
z-index: 10002;
|
|
1726
|
+
animation: fadeIn 0.2s ease;
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
@keyframes fadeIn {
|
|
1730
|
+
from { opacity: 0; }
|
|
1731
|
+
to { opacity: 1; }
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
.cv-widget-modal {
|
|
1735
|
+
background: white;
|
|
1736
|
+
border-radius: 0.75rem;
|
|
1737
|
+
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
|
1738
|
+
max-width: 32rem;
|
|
1739
|
+
width: 90vw;
|
|
1740
|
+
max-height: 80vh;
|
|
1741
|
+
animation: slideIn 0.2s ease;
|
|
1742
|
+
display: flex;
|
|
1743
|
+
flex-direction: column;
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
@keyframes slideIn {
|
|
1747
|
+
from {
|
|
1748
|
+
opacity: 0;
|
|
1749
|
+
transform: scale(0.9) translateY(-20px);
|
|
1750
|
+
}
|
|
1751
|
+
to {
|
|
1752
|
+
opacity: 1;
|
|
1753
|
+
transform: scale(1) translateY(0);
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
.cv-modal-header {
|
|
1758
|
+
display: flex;
|
|
1759
|
+
align-items: center;
|
|
1760
|
+
justify-content: space-between;
|
|
1761
|
+
padding: 0.5rem 1rem;
|
|
1762
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
.cv-modal-header-content {
|
|
1766
|
+
display: flex;
|
|
1767
|
+
align-items: center;
|
|
1768
|
+
gap: 0.75rem;
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
.cv-modal-icon {
|
|
1772
|
+
position: relative;
|
|
1773
|
+
width: 1rem;
|
|
1774
|
+
height: 1rem;
|
|
1775
|
+
display: flex;
|
|
1776
|
+
align-items: center;
|
|
1777
|
+
justify-content: center;
|
|
1778
|
+
border-radius: 9999px;
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
.cv-modal-icon-svg {
|
|
1782
|
+
width: 100%;
|
|
1783
|
+
height: 100%;
|
|
1784
|
+
opacity: 1;
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
.cv-modal-title {
|
|
1788
|
+
font-size: 1.125rem;
|
|
1789
|
+
font-weight: bold;
|
|
1790
|
+
color: rgba(0, 0, 0, 0.9);
|
|
1791
|
+
margin: 0;
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
.cv-modal-close {
|
|
1795
|
+
width: 2rem;
|
|
1796
|
+
height: 2rem;
|
|
1797
|
+
display: flex;
|
|
1798
|
+
align-items: center;
|
|
1799
|
+
justify-content: center;
|
|
1800
|
+
border-radius: 9999px;
|
|
1801
|
+
background: transparent;
|
|
1802
|
+
border: none;
|
|
1803
|
+
color: rgba(0, 0, 0, 0.6);
|
|
1804
|
+
cursor: pointer;
|
|
1805
|
+
transition: all 0.2s ease;
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
.cv-modal-close:hover {
|
|
1809
|
+
background: rgba(62, 132, 244, 0.1);
|
|
1810
|
+
color: #3e84f4;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
.cv-modal-close-icon {
|
|
1814
|
+
width: 1.25rem;
|
|
1815
|
+
height: 1.25rem;
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
.cv-modal-main {
|
|
1819
|
+
padding: 1rem;
|
|
1820
|
+
flex: 1;
|
|
1821
|
+
display: flex;
|
|
1822
|
+
flex-direction: column;
|
|
1823
|
+
gap: 1rem;
|
|
1824
|
+
overflow-y: auto;
|
|
1825
|
+
max-height: calc(80vh - 8rem);
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
.cv-modal-description {
|
|
1829
|
+
font-size: 0.875rem;
|
|
1830
|
+
color: rgba(0, 0, 0, 0.8);
|
|
1831
|
+
margin: 0;
|
|
1832
|
+
line-height: 1.4;
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
.cv-content-section,
|
|
1836
|
+
.cv-tab-groups-section {
|
|
1837
|
+
display: flex;
|
|
1838
|
+
flex-direction: column;
|
|
1839
|
+
gap: 0.75rem;
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
.cv-section-heading {
|
|
1843
|
+
font-size: 1rem;
|
|
1844
|
+
font-weight: bold;
|
|
1845
|
+
color: rgba(0, 0, 0, 0.9);
|
|
1846
|
+
margin: 0;
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
.cv-widget-modal-actions {
|
|
1850
|
+
margin-top: 20px;
|
|
1851
|
+
padding-top: 16px;
|
|
1852
|
+
border-top: 1px solid #e9ecef;
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
.cv-widget-restore {
|
|
1856
|
+
width: 100%;
|
|
1857
|
+
padding: 10px 16px;
|
|
1858
|
+
background: #28a745;
|
|
1859
|
+
color: white;
|
|
1860
|
+
border: none;
|
|
1861
|
+
border-radius: 4px;
|
|
1862
|
+
cursor: pointer;
|
|
1863
|
+
font-size: 14px;
|
|
1864
|
+
font-weight: 500;
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1867
|
+
.cv-widget-restore:hover {
|
|
1868
|
+
background: #218838;
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
.cv-widget-create-state {
|
|
1872
|
+
width: 100%;
|
|
1873
|
+
padding: 10px 16px;
|
|
1874
|
+
background: #007bff;
|
|
1875
|
+
color: white;
|
|
1876
|
+
border: none;
|
|
1877
|
+
border-radius: 4px;
|
|
1878
|
+
cursor: pointer;
|
|
1879
|
+
font-size: 14px;
|
|
1880
|
+
font-weight: 500;
|
|
1881
|
+
margin-bottom: 10px;
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
.cv-widget-create-state:hover {
|
|
1885
|
+
background: #0056b3;
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
.cv-widget-theme-dark .cv-widget-modal {
|
|
1889
|
+
background: #101722;
|
|
1890
|
+
color: #e2e8f0;
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1893
|
+
.cv-widget-theme-dark .cv-modal-header {
|
|
1894
|
+
border-color: rgba(255, 255, 255, 0.1);
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
.cv-widget-theme-dark .cv-modal-title {
|
|
1898
|
+
color: #e2e8f0;
|
|
1899
|
+
}
|
|
1900
|
+
|
|
1901
|
+
.cv-widget-theme-dark .cv-modal-close {
|
|
1902
|
+
color: rgba(255, 255, 255, 0.6);
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
.cv-widget-theme-dark .cv-modal-close:hover {
|
|
1906
|
+
background: rgba(62, 132, 244, 0.2);
|
|
1907
|
+
color: #3e84f4;
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
.cv-widget-theme-dark .cv-modal-description {
|
|
1911
|
+
color: rgba(255, 255, 255, 0.8);
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
.cv-widget-theme-dark .cv-section-heading {
|
|
1915
|
+
color: #e2e8f0;
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
.cv-widget-theme-dark .cv-toggles-container
|
|
1919
|
+
.cv-widget-theme-dark .cv-tabgroups-container {
|
|
1920
|
+
border-color: rgba(255, 255, 255, 0.1);
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
.cv-widget-theme-dark .cv-toggle-card,
|
|
1924
|
+
.cv-widget-theme-dark .cv-tabgroup-card {
|
|
1925
|
+
background: #101722;
|
|
1926
|
+
border-color: rgba(255, 255, 255, 0.1);
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
.cv-widget-theme-dark .cv-toggle-title,
|
|
1930
|
+
.cv-widget-theme-dark .cv-tabgroup-title {
|
|
1931
|
+
color: #e2e8f0;
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
.cv-widget-theme-dark .cv-toggle-description,
|
|
1935
|
+
.cv-widget-theme-dark .cv-tabgroup-description {
|
|
1936
|
+
color: rgba(255, 255, 255, 0.6);
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
.cv-widget-theme-dark .cv-toggle-slider {
|
|
1940
|
+
background: rgba(255, 255, 255, 0.2);
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
.cv-widget-theme-dark .cv-tab-group-description {
|
|
1944
|
+
color: rgba(255, 255, 255, 0.8);
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
.cv-widget-theme-dark .cv-tabgroup-select {
|
|
1948
|
+
background: #101722;
|
|
1949
|
+
border-color: rgba(255, 255, 255, 0.2);
|
|
1950
|
+
color: #e2e8f0;
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
.cv-widget-theme-dark .cv-modal-footer {
|
|
1954
|
+
border-color: rgba(255, 255, 255, 0.1);
|
|
1955
|
+
background: #101722;
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
.cv-widget-theme-dark .cv-reset-btn {
|
|
1959
|
+
color: #e2e8f0;
|
|
1960
|
+
background: rgba(255, 255, 255, 0.1);
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
.cv-widget-theme-dark .cv-reset-btn:hover {
|
|
1964
|
+
background: rgba(255, 255, 255, 0.2);
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
/* Custom state creator styles */
|
|
1968
|
+
.cv-custom-state-modal {
|
|
1969
|
+
max-width: 500px;
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
.cv-custom-state-form .cv-section-header {
|
|
1973
|
+
font-size: 16px;
|
|
1974
|
+
font-weight: 600;
|
|
1975
|
+
color: #333;
|
|
1976
|
+
border-bottom: 1px solid #e9ecef;
|
|
1977
|
+
padding-bottom: 5px;
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1980
|
+
.cv-custom-state-form p {
|
|
1981
|
+
font-size: 15px;
|
|
1982
|
+
line-height: 1.6;
|
|
1983
|
+
color: #555;
|
|
1984
|
+
margin-bottom: 24px;
|
|
1985
|
+
text-align: justify;
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
.cv-custom-state-section {
|
|
1989
|
+
margin-bottom: 16px;
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1992
|
+
.cv-custom-state-section label {
|
|
1993
|
+
display: block;
|
|
1994
|
+
margin-bottom: 4px;
|
|
1995
|
+
font-weight: 500;
|
|
1996
|
+
color: #555;
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
.cv-custom-state-input {
|
|
2000
|
+
width: 100%;
|
|
2001
|
+
padding: 8px 12px;
|
|
2002
|
+
border: 1px solid #ddd;
|
|
2003
|
+
border-radius: 4px;
|
|
2004
|
+
background: white;
|
|
2005
|
+
font-size: 14px;
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
.cv-custom-state-input:focus {
|
|
2009
|
+
outline: none;
|
|
2010
|
+
border-color: #007bff;
|
|
2011
|
+
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
/* Toggles Container */
|
|
2015
|
+
.cv-toggles-container {
|
|
2016
|
+
display: flex;
|
|
2017
|
+
flex-direction: column;
|
|
2018
|
+
gap: 0.5rem;
|
|
2019
|
+
border-radius: 0.5rem;
|
|
2020
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
2021
|
+
overflow: hidden;
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
.cv-toggle-card,
|
|
2025
|
+
.cv-tabgroup-card {
|
|
2026
|
+
background: white;
|
|
2027
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
.cv-toggle-card:last-child {
|
|
2031
|
+
border-bottom: none;
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
.cv-toggle-content {
|
|
2035
|
+
display: flex;
|
|
2036
|
+
align-items: center;
|
|
2037
|
+
justify-content: space-between;
|
|
2038
|
+
padding: 0.75rem;
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
.cv-toggle-title {
|
|
2042
|
+
font-weight: 500;
|
|
2043
|
+
font-size: 0.875rem;
|
|
2044
|
+
color: rgba(0, 0, 0, 0.9);
|
|
2045
|
+
margin: 0 0 0.125rem 0;
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
.cv-toggle-description {
|
|
2049
|
+
font-size: 0.75rem;
|
|
2050
|
+
color: rgba(0, 0, 0, 0.6);
|
|
2051
|
+
margin: 0;
|
|
2052
|
+
}
|
|
2053
|
+
|
|
2054
|
+
.cv-toggle-label{
|
|
2055
|
+
position: relative;
|
|
2056
|
+
display: inline-block;
|
|
2057
|
+
width: 2.75rem;
|
|
2058
|
+
height: 1.5rem;
|
|
2059
|
+
cursor: pointer;
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
.cv-toggle-input {
|
|
2063
|
+
opacity: 0;
|
|
2064
|
+
width: 0;
|
|
2065
|
+
height: 0;
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2068
|
+
.cv-toggle-slider {
|
|
2069
|
+
position: absolute;
|
|
2070
|
+
top: 0;
|
|
2071
|
+
left: 0;
|
|
2072
|
+
right: 0;
|
|
2073
|
+
bottom: 0;
|
|
2074
|
+
background: rgba(0, 0, 0, 0.2);
|
|
2075
|
+
border-radius: 9999px;
|
|
2076
|
+
transition: background-color 0.2s ease;
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2079
|
+
.cv-toggle-slider:before {
|
|
2080
|
+
position: absolute;
|
|
2081
|
+
content: "";
|
|
2082
|
+
height: 1rem;
|
|
2083
|
+
width: 1rem;
|
|
2084
|
+
left: 0.25rem;
|
|
2085
|
+
bottom: 0.25rem;
|
|
2086
|
+
background: white;
|
|
2087
|
+
border-radius: 50%;
|
|
2088
|
+
transition: transform 0.2s ease;
|
|
2089
|
+
}
|
|
2090
|
+
|
|
2091
|
+
.cv-toggle-input:checked + .cv-toggle-slider {
|
|
2092
|
+
background: #3e84f4;
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
.cv-toggle-input:checked + .cv-toggle-slider:before {
|
|
2096
|
+
transform: translateX(1.25rem);
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
/* Dark theme toggle switch styles */
|
|
2100
|
+
.cv-widget-theme-dark .cv-toggle-switch {
|
|
2101
|
+
background: #4a5568;
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
.cv-widget-theme-dark .cv-toggle-switch:hover {
|
|
2105
|
+
background: #5a6578;
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
.cv-widget-theme-dark .cv-toggle-switch.cv-toggle-active {
|
|
2109
|
+
background: #63b3ed;
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
.cv-widget-theme-dark .cv-toggle-switch.cv-toggle-active:hover {
|
|
2113
|
+
background: #4299e1;
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
/* Tab Groups Container */
|
|
2117
|
+
.cv-tab-groups-list {
|
|
2118
|
+
display: flex;
|
|
2119
|
+
flex-direction: column;
|
|
2120
|
+
gap: 1px;
|
|
2121
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
2122
|
+
border-radius: 0.5rem;
|
|
2123
|
+
overflow: hidden;
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
/* Tab Group Card - Header (Navigation Headers toggle) */
|
|
2127
|
+
.cv-tabgroup-card.cv-tabgroup-header {
|
|
2128
|
+
display: flex;
|
|
2129
|
+
align-items: center;
|
|
2130
|
+
justify-content: space-between;
|
|
2131
|
+
padding: 0.75rem;
|
|
2132
|
+
border-bottom: 0px;
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
.cv-tabgroup-card.cv-tabgroup-header .cv-tabgroup-row {
|
|
2136
|
+
display: flex;
|
|
2137
|
+
align-items: center;
|
|
2138
|
+
justify-content: space-between;
|
|
2139
|
+
width: 100%;
|
|
2140
|
+
gap: 1rem;
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2143
|
+
/* Navigation toggle icon container */
|
|
2144
|
+
.cv-nav-toggle-container {
|
|
2145
|
+
display: flex;
|
|
2146
|
+
align-items: center;
|
|
2147
|
+
gap: 0.5rem;
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
.cv-nav-icon {
|
|
2151
|
+
width: 2rem;
|
|
2152
|
+
height: 2rem;
|
|
2153
|
+
color: rgba(0, 0, 0, 0.8);
|
|
2154
|
+
display: flex;
|
|
2155
|
+
align-items: center;
|
|
2156
|
+
justify-content: center;
|
|
2157
|
+
flex-shrink: 0;
|
|
2158
|
+
transition: color 0.2s ease;
|
|
2159
|
+
}
|
|
2160
|
+
|
|
2161
|
+
/* Logo box - centered grey box on its own row */
|
|
2162
|
+
.cv-tabgroup-logo-box {
|
|
2163
|
+
width: 3.5rem;
|
|
2164
|
+
height: 3.5rem;
|
|
2165
|
+
background: rgba(0, 0, 0, 0.08);
|
|
2166
|
+
border-radius: 0.5rem;
|
|
2167
|
+
display: flex;
|
|
2168
|
+
align-items: center;
|
|
2169
|
+
justify-content: center;
|
|
2170
|
+
flex-shrink: 0;
|
|
2171
|
+
margin-bottom: 0.5rem;
|
|
2172
|
+
}
|
|
2173
|
+
|
|
2174
|
+
/* Title container for title alignment (without icon) */
|
|
2175
|
+
.cv-tabgroup-title-container {
|
|
2176
|
+
display: flex;
|
|
2177
|
+
align-items: center;
|
|
2178
|
+
gap: 0.5rem;
|
|
2179
|
+
}
|
|
2180
|
+
|
|
2181
|
+
/* Hover state for icon - apply to the entire tabgroup-row */
|
|
2182
|
+
.cv-tabgroup-card.cv-tabgroup-header:hover .cv-nav-icon {
|
|
2183
|
+
color: #3e84f4;
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
.cv-widget-theme-dark .cv-nav-icon {
|
|
2187
|
+
color: rgba(255, 255, 255, 0.8);
|
|
2188
|
+
}
|
|
2189
|
+
|
|
2190
|
+
.cv-widget-theme-dark .cv-tabgroup-card.cv-tabgroup-header:hover .cv-nav-icon {
|
|
2191
|
+
color: #60a5fa;
|
|
2192
|
+
}
|
|
2193
|
+
|
|
2194
|
+
/* Tab Group Card - Items */
|
|
2195
|
+
.cv-tabgroup-card.cv-tabgroup-item {
|
|
2196
|
+
display: flex;
|
|
2197
|
+
flex-direction: column;
|
|
2198
|
+
gap: 0.5rem;
|
|
2199
|
+
padding: 0.75rem;
|
|
2200
|
+
background: white;
|
|
2201
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
|
2202
|
+
}
|
|
2203
|
+
|
|
2204
|
+
.cv-tabgroup-card.cv-tabgroup-item:last-child {
|
|
2205
|
+
border-bottom: none;
|
|
2206
|
+
}
|
|
2207
|
+
|
|
2208
|
+
/* Tab Group Info */
|
|
2209
|
+
.cv-tabgroup-info {
|
|
2210
|
+
flex: 1;
|
|
2211
|
+
display: flex;
|
|
2212
|
+
flex-direction: column;
|
|
2213
|
+
gap: 0.25rem;
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
.cv-tabgroup-title {
|
|
2217
|
+
font-weight: 500;
|
|
2218
|
+
font-size: 0.875rem;
|
|
2219
|
+
color: rgba(0, 0, 0, 0.9);
|
|
2220
|
+
margin: 0 0 0 0;
|
|
2221
|
+
}
|
|
2222
|
+
|
|
2223
|
+
.cv-tabgroup-description {
|
|
2224
|
+
font-size: 0.75rem;
|
|
2225
|
+
color: rgba(0, 0, 0, 0.6);
|
|
2226
|
+
margin: 0;
|
|
2227
|
+
line-height: 1.3;
|
|
2228
|
+
}
|
|
2229
|
+
|
|
2230
|
+
/* Tab Group Label (for select dropdowns) */
|
|
2231
|
+
.cv-tabgroup-label {
|
|
2232
|
+
font-size: 0.875rem;
|
|
2233
|
+
color: rgba(0, 0, 0, 0.8);
|
|
2234
|
+
margin: 0;
|
|
2235
|
+
line-height: 1.4;
|
|
2236
|
+
font-weight: 500;
|
|
2237
|
+
display: block;
|
|
2238
|
+
cursor: pointer;
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
/* Tab Group Select */
|
|
2242
|
+
.cv-tabgroup-select {
|
|
2243
|
+
width: 100%;
|
|
2244
|
+
border-radius: 0.5rem;
|
|
2245
|
+
background: white;
|
|
2246
|
+
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
2247
|
+
color: rgba(0, 0, 0, 0.9);
|
|
2248
|
+
padding: 0.5rem 0.75rem;
|
|
2249
|
+
font-size: 0.875rem;
|
|
2250
|
+
cursor: pointer;
|
|
2251
|
+
transition: all 0.15s ease;
|
|
2252
|
+
font-family: inherit;
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
.cv-tabgroup-select:hover {
|
|
2256
|
+
border-color: rgba(0, 0, 0, 0.25);
|
|
2257
|
+
}
|
|
2258
|
+
|
|
2259
|
+
.cv-tabgroup-select:focus {
|
|
2260
|
+
outline: none;
|
|
2261
|
+
border-color: #3e84f4;
|
|
2262
|
+
box-shadow: 0 0 0 2px rgba(62, 132, 244, 0.2);
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
/* Modern Toggle Switch */
|
|
2266
|
+
.cv-toggle-switch {
|
|
2267
|
+
position: relative;
|
|
2268
|
+
display: inline-flex;
|
|
2269
|
+
align-items: center;
|
|
2270
|
+
width: 44px;
|
|
2271
|
+
height: 24px;
|
|
2272
|
+
background: rgba(0, 0, 0, 0.1);
|
|
2273
|
+
border-radius: 9999px;
|
|
2274
|
+
padding: 2px;
|
|
2275
|
+
box-sizing: border-box;
|
|
2276
|
+
cursor: pointer;
|
|
2277
|
+
transition: background-color 0.2s ease;
|
|
2278
|
+
border: none;
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
.cv-toggle-switch input {
|
|
2282
|
+
display: none;
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
.cv-toggle-switch .cv-switch-bg {
|
|
2286
|
+
position: absolute;
|
|
2287
|
+
inset: 0;
|
|
2288
|
+
border-radius: 9999px;
|
|
2289
|
+
background: rgba(0, 0, 0, 0.1);
|
|
2290
|
+
transition: background-color 0.2s ease;
|
|
2291
|
+
pointer-events: none;
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
.cv-toggle-switch .cv-switch-knob {
|
|
2295
|
+
position: relative;
|
|
2296
|
+
width: 20px;
|
|
2297
|
+
height: 20px;
|
|
2298
|
+
background: white;
|
|
2299
|
+
border-radius: 50%;
|
|
2300
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
|
|
2301
|
+
transition: transform 0.2s ease;
|
|
2302
|
+
z-index: 1;
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2305
|
+
.cv-toggle-switch input:checked + .cv-switch-bg {
|
|
2306
|
+
background: #3e84f4;
|
|
2307
|
+
}
|
|
2308
|
+
|
|
2309
|
+
.cv-toggle-switch input:checked ~ .cv-switch-knob {
|
|
2310
|
+
transform: translateX(20px);
|
|
2311
|
+
}
|
|
2312
|
+
|
|
2313
|
+
/* Dark Theme - Tab Groups */
|
|
2314
|
+
.cv-widget-theme-dark .cv-tabgroup-card.cv-tabgroup-header {
|
|
2315
|
+
background: #101722;
|
|
2316
|
+
border-bottom-color: rgba(255, 255, 255, 0.1);
|
|
2317
|
+
}
|
|
2318
|
+
|
|
2319
|
+
.cv-widget-theme-dark .cv-tabgroup-card.cv-tabgroup-item {
|
|
2320
|
+
background: #101722;
|
|
2321
|
+
border-bottom-color: rgba(255, 255, 255, 0.05);
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2324
|
+
.cv-widget-theme-dark .cv-tabgroup-title {
|
|
2325
|
+
color: #e2e8f0;
|
|
2326
|
+
}
|
|
2327
|
+
|
|
2328
|
+
.cv-widget-theme-dark .cv-tabgroup-description {
|
|
2329
|
+
color: rgba(255, 255, 255, 0.6);
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
.cv-widget-theme-dark .cv-tabgroup-label {
|
|
2333
|
+
color: rgba(255, 255, 255, 0.8);
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2336
|
+
.cv-widget-theme-dark .cv-tab-groups-list {
|
|
2337
|
+
border-color: rgba(255, 255, 255, 0.1);
|
|
2338
|
+
}
|
|
2339
|
+
|
|
2340
|
+
.cv-widget-theme-dark .cv-tabgroup-select {
|
|
2341
|
+
background: #101722;
|
|
2342
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
2343
|
+
color: #e2e8f0;
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
.cv-widget-theme-dark .cv-tabgroup-select:hover {
|
|
2347
|
+
border-color: rgba(255, 255, 255, 0.25);
|
|
2348
|
+
}
|
|
2349
|
+
|
|
2350
|
+
.cv-widget-theme-dark .cv-tabgroup-select:focus {
|
|
2351
|
+
border-color: #60a5fa;
|
|
2352
|
+
box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
|
|
2353
|
+
}
|
|
2354
|
+
|
|
2355
|
+
/* Dark Theme - Toggle Switch */
|
|
2356
|
+
.cv-widget-theme-dark .cv-toggle-switch .cv-switch-bg {
|
|
2357
|
+
background: rgba(255, 255, 255, 0.1);
|
|
2358
|
+
}
|
|
2359
|
+
|
|
2360
|
+
.cv-widget-theme-dark .cv-toggle-switch .cv-switch-knob {
|
|
2361
|
+
background: #e2e8f0;
|
|
2362
|
+
}
|
|
2363
|
+
|
|
2364
|
+
.cv-widget-theme-dark .cv-toggle-switch input:checked + .cv-switch-bg {
|
|
2365
|
+
background: #63b3ed;
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
.cv-modal-footer {
|
|
2369
|
+
display: flex;
|
|
2370
|
+
justify-content: space-between;
|
|
2371
|
+
align-items: center;
|
|
2372
|
+
padding: 0.75rem;
|
|
2373
|
+
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
.cv-reset-btn,
|
|
2377
|
+
.cv-share-btn {
|
|
2378
|
+
display: flex;
|
|
2379
|
+
align-items: center;
|
|
2380
|
+
gap: 0.5rem;
|
|
2381
|
+
padding: 0.375rem 0.75rem;
|
|
2382
|
+
border-radius: 0.5rem;
|
|
2383
|
+
font-weight: 600;
|
|
2384
|
+
font-size: 0.875rem;
|
|
2385
|
+
cursor: pointer;
|
|
2386
|
+
transition: all 0.2s ease;
|
|
2387
|
+
border: none;
|
|
2388
|
+
}
|
|
2389
|
+
|
|
2390
|
+
.cv-reset-btn {
|
|
2391
|
+
color: rgba(0, 0, 0, 0.9);
|
|
2392
|
+
background: rgba(0, 0, 0, 0.1);
|
|
2393
|
+
}
|
|
2394
|
+
|
|
2395
|
+
.cv-reset-btn:hover {
|
|
2396
|
+
background: rgba(0, 0, 0, 0.2);
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
.cv-share-btn {
|
|
2400
|
+
color: white;
|
|
2401
|
+
background: #3e84f4;
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2404
|
+
.cv-share-btn:hover {
|
|
2405
|
+
background: rgba(62, 132, 244, 0.9);
|
|
2406
|
+
}
|
|
2407
|
+
|
|
2408
|
+
.cv-btn-icon {
|
|
2409
|
+
width: 1rem;
|
|
2410
|
+
height: 1rem;
|
|
2411
|
+
display: flex;
|
|
2412
|
+
align-items: center;
|
|
2413
|
+
justify-content: center;
|
|
2414
|
+
transition: transform 0.2s ease;
|
|
2415
|
+
}
|
|
2416
|
+
|
|
2417
|
+
/* Dark theme custom state styles */
|
|
2418
|
+
/* Welcome modal styles */
|
|
2419
|
+
.cv-welcome-modal {
|
|
2420
|
+
max-width: 32rem;
|
|
2421
|
+
width: 90vw;
|
|
2422
|
+
background: white;
|
|
2423
|
+
border-radius: 0.75rem;
|
|
2424
|
+
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
|
2425
|
+
animation: slideIn 0.2s ease;
|
|
2426
|
+
display: flex;
|
|
2427
|
+
flex-direction: column;
|
|
2428
|
+
}
|
|
2429
|
+
|
|
2430
|
+
.cv-modal-main {
|
|
2431
|
+
padding: 1rem;
|
|
2432
|
+
flex: 1;
|
|
2433
|
+
display: flex;
|
|
2434
|
+
flex-direction: column;
|
|
2435
|
+
gap: 1rem;
|
|
2436
|
+
overflow-y: auto;
|
|
2437
|
+
max-height: calc(80vh - 8rem);
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2440
|
+
.cv-welcome-message {
|
|
2441
|
+
font-size: 0.875rem;
|
|
2442
|
+
color: rgba(0, 0, 0, 0.8);
|
|
2443
|
+
margin: 0;
|
|
2444
|
+
line-height: 1.4;
|
|
2445
|
+
text-align: center;
|
|
2446
|
+
}
|
|
2447
|
+
|
|
2448
|
+
.cv-welcome-message a {
|
|
2449
|
+
color: #3e84f4;
|
|
2450
|
+
text-align: justify;
|
|
2451
|
+
text-decoration: none;
|
|
2452
|
+
}
|
|
2453
|
+
|
|
2454
|
+
.cv-welcome-message a:hover {
|
|
2455
|
+
text-decoration: underline;
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2458
|
+
.cv-welcome-widget-preview {
|
|
2459
|
+
display: flex;
|
|
2460
|
+
align-items: center;
|
|
2461
|
+
justify-content: center;
|
|
2462
|
+
gap: 1rem;
|
|
2463
|
+
padding: 1rem;
|
|
2464
|
+
background: #f8f9fa;
|
|
2465
|
+
border-radius: 0.5rem;
|
|
2466
|
+
margin: 1rem 0;
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
.cv-welcome-widget-icon {
|
|
2470
|
+
width: 2rem;
|
|
2471
|
+
height: 2rem;
|
|
2472
|
+
background: rgba(62, 132, 244, 0.1);
|
|
2473
|
+
border-radius: 9999px;
|
|
2474
|
+
display: flex;
|
|
2475
|
+
align-items: center;
|
|
2476
|
+
justify-content: center;
|
|
2477
|
+
animation: cv-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
2478
|
+
color: #3e84f4;
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
.cv-welcome-widget-label {
|
|
2482
|
+
font-size: 0.875rem;
|
|
2483
|
+
font-weight: 500;
|
|
2484
|
+
color: rgba(0, 0, 0, 0.8);
|
|
2485
|
+
margin: 0;
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2488
|
+
.cv-welcome-got-it {
|
|
2489
|
+
width: 100%;
|
|
2490
|
+
background: #3e84f4;
|
|
2491
|
+
color: white;
|
|
2492
|
+
font-weight: 600;
|
|
2493
|
+
padding: 0.75rem 1rem;
|
|
2494
|
+
border-radius: 0.5rem;
|
|
2495
|
+
border: none;
|
|
2496
|
+
cursor: pointer;
|
|
2497
|
+
font-size: 0.875rem;
|
|
2498
|
+
transition: background-color 0.2s ease;
|
|
2499
|
+
outline: none;
|
|
2500
|
+
}
|
|
2501
|
+
|
|
2502
|
+
.cv-welcome-got-it:hover {
|
|
2503
|
+
background: rgba(62, 132, 244, 0.9);
|
|
2504
|
+
}
|
|
2505
|
+
|
|
2506
|
+
.cv-welcome-got-it:focus {
|
|
2507
|
+
box-shadow: 0 0 0 2px rgba(62, 132, 244, 0.5);
|
|
2508
|
+
}
|
|
2509
|
+
|
|
2510
|
+
/* Animations */
|
|
2511
|
+
@keyframes cv-pulse {
|
|
2512
|
+
0%, 100% {
|
|
2513
|
+
opacity: 1;
|
|
2514
|
+
}
|
|
2515
|
+
50% {
|
|
2516
|
+
opacity: 0.5;
|
|
2517
|
+
}
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2520
|
+
/* Dark theme welcome modal styles */
|
|
2521
|
+
.cv-widget-theme-dark .cv-welcome-modal {
|
|
2522
|
+
background: #101722;
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2525
|
+
.cv-widget-theme-dark .cv-welcome-message {
|
|
2526
|
+
color: rgba(255, 255, 255, 0.8);
|
|
2527
|
+
}
|
|
2528
|
+
|
|
2529
|
+
.cv-widget-theme-dark .cv-welcome-message a {
|
|
2530
|
+
color: #60a5fa;
|
|
2531
|
+
}
|
|
2532
|
+
|
|
2533
|
+
.cv-widget-theme-dark .cv-welcome-widget-preview {
|
|
2534
|
+
background: rgba(255, 255, 255, 0.1);
|
|
2535
|
+
}
|
|
2536
|
+
|
|
2537
|
+
.cv-widget-theme-dark .cv-welcome-widget-label {
|
|
2538
|
+
color: #e2e8f0;
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
/* Dark theme logo box */
|
|
2542
|
+
.cv-widget-theme-dark .cv-tabgroup-logo-box {
|
|
2543
|
+
background: rgba(255, 255, 255, 0.1);
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2546
|
+
/* Spinning animation for reset button icon */
|
|
2547
|
+
@keyframes cv-spin {
|
|
2548
|
+
from {
|
|
2549
|
+
transform: rotate(0deg);
|
|
2550
|
+
}
|
|
2551
|
+
to {
|
|
2552
|
+
transform: rotate(-360deg);
|
|
2553
|
+
}
|
|
2554
|
+
}
|
|
2555
|
+
|
|
2556
|
+
.cv-spinning {
|
|
2557
|
+
animation: cv-spin 0.6s ease-in-out;
|
|
2558
|
+
}
|
|
2559
|
+
|
|
2560
|
+
/* Hide widget icon in print view */
|
|
2561
|
+
@media print {
|
|
2562
|
+
.cv-widget-icon {
|
|
2563
|
+
display: none !important;
|
|
2564
|
+
}
|
|
2565
|
+
}
|
|
2415
2566
|
`;
|
|
2416
2567
|
/**
|
|
2417
2568
|
* Inject widget styles into the document head
|
|
@@ -2434,35 +2585,102 @@ ${TAB_STYLES}
|
|
|
2434
2585
|
* Settings gear icon for modal header
|
|
2435
2586
|
*/
|
|
2436
2587
|
function getGearIcon() {
|
|
2437
|
-
return `<svg class="cv-modal-icon-svg" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2438
|
-
<path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M12 8.00002C9.79085 8.00002 7.99999 9.79088 7.99999 12C7.99999 14.2092 9.79085 16 12 16C14.2091 16 16 14.2092 16 12C16 9.79088 14.2091 8.00002 12 8.00002ZM9.99999 12C9.99999 10.8955 10.8954 10 12 10C13.1046 10 14 10.8955 14 12C14 13.1046 13.1046 14 12 14C10.8954 14 9.99999 13.1046 9.99999 12Z" fill="#0F1729"/>
|
|
2439
|
-
<path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M10.7673 1.01709C10.9925 0.999829 11.2454 0.99993 11.4516 1.00001L12.5484 1.00001C12.7546 0.99993 13.0075 0.999829 13.2327 1.01709C13.4989 1.03749 13.8678 1.08936 14.2634 1.26937C14.7635 1.49689 15.1915 1.85736 15.5007 2.31147C15.7454 2.67075 15.8592 3.0255 15.9246 3.2843C15.9799 3.50334 16.0228 3.75249 16.0577 3.9557L16.1993 4.77635L16.2021 4.77788C16.2369 4.79712 16.2715 4.81659 16.306 4.8363L16.3086 4.83774L17.2455 4.49865C17.4356 4.42978 17.6693 4.34509 17.8835 4.28543C18.1371 4.2148 18.4954 4.13889 18.9216 4.17026C19.4614 4.20998 19.9803 4.39497 20.4235 4.70563C20.7734 4.95095 21.0029 5.23636 21.1546 5.4515C21.2829 5.63326 21.4103 5.84671 21.514 6.02029L22.0158 6.86003C22.1256 7.04345 22.2594 7.26713 22.3627 7.47527C22.4843 7.7203 22.6328 8.07474 22.6777 8.52067C22.7341 9.08222 22.6311 9.64831 22.3803 10.1539C22.1811 10.5554 21.9171 10.8347 21.7169 11.0212C21.5469 11.1795 21.3428 11.3417 21.1755 11.4746L20.5 12L21.1755 12.5254C21.3428 12.6584 21.5469 12.8205 21.7169 12.9789C21.9171 13.1653 22.1811 13.4446 22.3802 13.8461C22.631 14.3517 22.7341 14.9178 22.6776 15.4794C22.6328 15.9253 22.4842 16.2797 22.3626 16.5248C22.2593 16.7329 22.1255 16.9566 22.0158 17.14L21.5138 17.9799C21.4102 18.1535 21.2828 18.3668 21.1546 18.5485C21.0028 18.7637 20.7734 19.0491 20.4234 19.2944C19.9803 19.6051 19.4613 19.7901 18.9216 19.8298C18.4954 19.8612 18.1371 19.7852 17.8835 19.7146C17.6692 19.6549 17.4355 19.5703 17.2454 19.5014L16.3085 19.1623L16.306 19.1638C16.2715 19.1835 16.2369 19.2029 16.2021 19.2222L16.1993 19.2237L16.0577 20.0443C16.0228 20.2475 15.9799 20.4967 15.9246 20.7157C15.8592 20.9745 15.7454 21.3293 15.5007 21.6886C15.1915 22.1427 14.7635 22.5032 14.2634 22.7307C13.8678 22.9107 13.4989 22.9626 13.2327 22.983C13.0074 23.0002 12.7546 23.0001 12.5484 23H11.4516C11.2454 23.0001 10.9925 23.0002 10.7673 22.983C10.5011 22.9626 10.1322 22.9107 9.73655 22.7307C9.23648 22.5032 8.80849 22.1427 8.49926 21.6886C8.25461 21.3293 8.14077 20.9745 8.07542 20.7157C8.02011 20.4967 7.97723 20.2475 7.94225 20.0443L7.80068 19.2237L7.79791 19.2222C7.7631 19.2029 7.72845 19.1835 7.69396 19.1637L7.69142 19.1623L6.75458 19.5014C6.5645 19.5702 6.33078 19.6549 6.11651 19.7146C5.86288 19.7852 5.50463 19.8611 5.07841 19.8298C4.53866 19.7901 4.01971 19.6051 3.57654 19.2944C3.2266 19.0491 2.99714 18.7637 2.84539 18.5485C2.71718 18.3668 2.58974 18.1534 2.4861 17.9798L1.98418 17.14C1.87447 16.9566 1.74067 16.7329 1.63737 16.5248C1.51575 16.2797 1.36719 15.9253 1.32235 15.4794C1.26588 14.9178 1.36897 14.3517 1.61976 13.8461C1.81892 13.4446 2.08289 13.1653 2.28308 12.9789C2.45312 12.8205 2.65717 12.6584 2.82449 12.5254L3.47844 12.0054V11.9947L2.82445 11.4746C2.65712 11.3417 2.45308 11.1795 2.28304 11.0212C2.08285 10.8347 1.81888 10.5554 1.61972 10.1539C1.36893 9.64832 1.26584 9.08224 1.3223 8.52069C1.36714 8.07476 1.51571 7.72032 1.63732 7.47528C1.74062 7.26715 1.87443 7.04347 1.98414 6.86005L2.48605 6.02026C2.58969 5.84669 2.71714 5.63326 2.84534 5.45151C2.9971 5.23637 3.22655 4.95096 3.5765 4.70565C4.01966 4.39498 4.53862 4.20999 5.07837 4.17027C5.50458 4.1389 5.86284 4.21481 6.11646 4.28544C6.33072 4.34511 6.56444 4.4298 6.75451 4.49867L7.69141 4.83775L7.69394 4.8363C7.72844 4.8166 7.7631 4.79712 7.79791 4.77788L7.80068 4.77635L7.94225 3.95571C7.97723 3.7525 8.02011 3.50334 8.07542 3.2843C8.14077 3.0255 8.25461 2.67075 8.49926 2.31147C8.80849 1.85736 9.23648 1.49689 9.73655 1.26937C10.1322 1.08936 10.5011 1.03749 10.7673 1.01709ZM14.0938 4.3363C14.011 3.85634 13.9696 3.61637 13.8476 3.43717C13.7445 3.2858 13.6019 3.16564 13.4352 3.0898C13.2378 3.00002 12.9943 3.00002 12.5073 3.00002H11.4927C11.0057 3.00002 10.7621 3.00002 10.5648 3.0898C10.3981 3.16564 10.2555 3.2858 10.1524 3.43717C10.0304 3.61637 9.98895 3.85634 9.90615 4.3363L9.75012 5.24064C9.69445 5.56333 9.66662 5.72467 9.60765 5.84869C9.54975 5.97047 9.50241 6.03703 9.40636 6.13166C9.30853 6.22804 9.12753 6.3281 8.76554 6.52822C8.73884 6.54298 8.71227 6.55791 8.68582 6.57302C8.33956 6.77078 8.16643 6.86966 8.03785 6.90314C7.91158 6.93602 7.83293 6.94279 7.70289 6.93196C7.57049 6.92094 7.42216 6.86726 7.12551 6.7599L6.11194 6.39308C5.66271 6.2305 5.43809 6.14921 5.22515 6.16488C5.04524 6.17811 4.87225 6.23978 4.72453 6.34333C4.5497 6.46589 4.42715 6.67094 4.18206 7.08103L3.72269 7.84965C3.46394 8.2826 3.33456 8.49907 3.31227 8.72078C3.29345 8.90796 3.32781 9.09665 3.41141 9.26519C3.51042 9.4648 3.7078 9.62177 4.10256 9.9357L4.82745 10.5122C5.07927 10.7124 5.20518 10.8126 5.28411 10.9199C5.36944 11.036 5.40583 11.1114 5.44354 11.2504C5.47844 11.379 5.47844 11.586 5.47844 12C5.47844 12.414 5.47844 12.621 5.44354 12.7497C5.40582 12.8887 5.36944 12.9641 5.28413 13.0801C5.20518 13.1875 5.07927 13.2876 4.82743 13.4879L4.10261 14.0643C3.70785 14.3783 3.51047 14.5352 3.41145 14.7349C3.32785 14.9034 3.29349 15.0921 3.31231 15.2793C3.33461 15.501 3.46398 15.7174 3.72273 16.1504L4.1821 16.919C4.4272 17.3291 4.54974 17.5342 4.72457 17.6567C4.8723 17.7603 5.04528 17.8219 5.2252 17.8352C5.43813 17.8508 5.66275 17.7695 6.11199 17.607L7.12553 17.2402C7.42216 17.1328 7.5705 17.0791 7.7029 17.0681C7.83294 17.0573 7.91159 17.064 8.03786 17.0969C8.16644 17.1304 8.33956 17.2293 8.68582 17.427C8.71228 17.4421 8.73885 17.4571 8.76554 17.4718C9.12753 17.6719 9.30853 17.772 9.40635 17.8684C9.50241 17.963 9.54975 18.0296 9.60765 18.1514C9.66662 18.2754 9.69445 18.4367 9.75012 18.7594L9.90615 19.6637C9.98895 20.1437 10.0304 20.3837 10.1524 20.5629C10.2555 20.7142 10.3981 20.8344 10.5648 20.9102C10.7621 21 11.0057 21 11.4927 21H12.5073C12.9943 21 13.2378 21 13.4352 20.9102C13.6019 20.8344 13.7445 20.7142 13.8476 20.5629C13.9696 20.3837 14.011 20.1437 14.0938 19.6637L14.2499 18.7594C14.3055 18.4367 14.3334 18.2754 14.3923 18.1514C14.4502 18.0296 14.4976 17.963 14.5936 17.8684C14.6915 17.772 14.8725 17.6719 15.2344 17.4718C15.2611 17.4571 15.2877 17.4421 15.3141 17.427C15.6604 17.2293 15.8335 17.1304 15.9621 17.0969C16.0884 17.064 16.167 17.0573 16.2971 17.0681C16.4295 17.0791 16.5778 17.1328 16.8744 17.2402L17.888 17.607C18.3372 17.7696 18.5619 17.8509 18.7748 17.8352C18.9547 17.8219 19.1277 17.7603 19.2754 17.6567C19.4502 17.5342 19.5728 17.3291 19.8179 16.919L20.2773 16.1504C20.536 15.7175 20.6654 15.501 20.6877 15.2793C20.7065 15.0921 20.6721 14.9034 20.5885 14.7349C20.4895 14.5353 20.2921 14.3783 19.8974 14.0643L19.1726 13.4879C18.9207 13.2876 18.7948 13.1875 18.7159 13.0801C18.6306 12.9641 18.5942 12.8887 18.5564 12.7497C18.5215 12.6211 18.5215 12.414 18.5215 12C18.5215 11.586 18.5215 11.379 18.5564 11.2504C18.5942 11.1114 18.6306 11.036 18.7159 10.9199C18.7948 10.8126 18.9207 10.7124 19.1725 10.5122L19.8974 9.9357C20.2922 9.62176 20.4896 9.46479 20.5886 9.26517C20.6722 9.09664 20.7065 8.90795 20.6877 8.72076C20.6654 8.49906 20.5361 8.28259 20.2773 7.84964L19.8179 7.08102C19.5728 6.67093 19.4503 6.46588 19.2755 6.34332C19.1277 6.23977 18.9548 6.1781 18.7748 6.16486C18.5619 6.14919 18.3373 6.23048 17.888 6.39307L16.8745 6.75989C16.5778 6.86725 16.4295 6.92093 16.2971 6.93195C16.167 6.94278 16.0884 6.93601 15.9621 6.90313C15.8335 6.86965 15.6604 6.77077 15.3142 6.57302C15.2877 6.55791 15.2611 6.54298 15.2345 6.52822C14.8725 6.3281 14.6915 6.22804 14.5936 6.13166C14.4976 6.03703 14.4502 5.97047 14.3923 5.84869C14.3334 5.72467 14.3055 5.56332 14.2499 5.24064L14.0938 4.3363Z" fill="#0F1729"/>
|
|
2588
|
+
return `<svg class="cv-modal-icon-svg" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2589
|
+
<path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M12 8.00002C9.79085 8.00002 7.99999 9.79088 7.99999 12C7.99999 14.2092 9.79085 16 12 16C14.2091 16 16 14.2092 16 12C16 9.79088 14.2091 8.00002 12 8.00002ZM9.99999 12C9.99999 10.8955 10.8954 10 12 10C13.1046 10 14 10.8955 14 12C14 13.1046 13.1046 14 12 14C10.8954 14 9.99999 13.1046 9.99999 12Z" fill="#0F1729"/>
|
|
2590
|
+
<path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M10.7673 1.01709C10.9925 0.999829 11.2454 0.99993 11.4516 1.00001L12.5484 1.00001C12.7546 0.99993 13.0075 0.999829 13.2327 1.01709C13.4989 1.03749 13.8678 1.08936 14.2634 1.26937C14.7635 1.49689 15.1915 1.85736 15.5007 2.31147C15.7454 2.67075 15.8592 3.0255 15.9246 3.2843C15.9799 3.50334 16.0228 3.75249 16.0577 3.9557L16.1993 4.77635L16.2021 4.77788C16.2369 4.79712 16.2715 4.81659 16.306 4.8363L16.3086 4.83774L17.2455 4.49865C17.4356 4.42978 17.6693 4.34509 17.8835 4.28543C18.1371 4.2148 18.4954 4.13889 18.9216 4.17026C19.4614 4.20998 19.9803 4.39497 20.4235 4.70563C20.7734 4.95095 21.0029 5.23636 21.1546 5.4515C21.2829 5.63326 21.4103 5.84671 21.514 6.02029L22.0158 6.86003C22.1256 7.04345 22.2594 7.26713 22.3627 7.47527C22.4843 7.7203 22.6328 8.07474 22.6777 8.52067C22.7341 9.08222 22.6311 9.64831 22.3803 10.1539C22.1811 10.5554 21.9171 10.8347 21.7169 11.0212C21.5469 11.1795 21.3428 11.3417 21.1755 11.4746L20.5 12L21.1755 12.5254C21.3428 12.6584 21.5469 12.8205 21.7169 12.9789C21.9171 13.1653 22.1811 13.4446 22.3802 13.8461C22.631 14.3517 22.7341 14.9178 22.6776 15.4794C22.6328 15.9253 22.4842 16.2797 22.3626 16.5248C22.2593 16.7329 22.1255 16.9566 22.0158 17.14L21.5138 17.9799C21.4102 18.1535 21.2828 18.3668 21.1546 18.5485C21.0028 18.7637 20.7734 19.0491 20.4234 19.2944C19.9803 19.6051 19.4613 19.7901 18.9216 19.8298C18.4954 19.8612 18.1371 19.7852 17.8835 19.7146C17.6692 19.6549 17.4355 19.5703 17.2454 19.5014L16.3085 19.1623L16.306 19.1638C16.2715 19.1835 16.2369 19.2029 16.2021 19.2222L16.1993 19.2237L16.0577 20.0443C16.0228 20.2475 15.9799 20.4967 15.9246 20.7157C15.8592 20.9745 15.7454 21.3293 15.5007 21.6886C15.1915 22.1427 14.7635 22.5032 14.2634 22.7307C13.8678 22.9107 13.4989 22.9626 13.2327 22.983C13.0074 23.0002 12.7546 23.0001 12.5484 23H11.4516C11.2454 23.0001 10.9925 23.0002 10.7673 22.983C10.5011 22.9626 10.1322 22.9107 9.73655 22.7307C9.23648 22.5032 8.80849 22.1427 8.49926 21.6886C8.25461 21.3293 8.14077 20.9745 8.07542 20.7157C8.02011 20.4967 7.97723 20.2475 7.94225 20.0443L7.80068 19.2237L7.79791 19.2222C7.7631 19.2029 7.72845 19.1835 7.69396 19.1637L7.69142 19.1623L6.75458 19.5014C6.5645 19.5702 6.33078 19.6549 6.11651 19.7146C5.86288 19.7852 5.50463 19.8611 5.07841 19.8298C4.53866 19.7901 4.01971 19.6051 3.57654 19.2944C3.2266 19.0491 2.99714 18.7637 2.84539 18.5485C2.71718 18.3668 2.58974 18.1534 2.4861 17.9798L1.98418 17.14C1.87447 16.9566 1.74067 16.7329 1.63737 16.5248C1.51575 16.2797 1.36719 15.9253 1.32235 15.4794C1.26588 14.9178 1.36897 14.3517 1.61976 13.8461C1.81892 13.4446 2.08289 13.1653 2.28308 12.9789C2.45312 12.8205 2.65717 12.6584 2.82449 12.5254L3.47844 12.0054V11.9947L2.82445 11.4746C2.65712 11.3417 2.45308 11.1795 2.28304 11.0212C2.08285 10.8347 1.81888 10.5554 1.61972 10.1539C1.36893 9.64832 1.26584 9.08224 1.3223 8.52069C1.36714 8.07476 1.51571 7.72032 1.63732 7.47528C1.74062 7.26715 1.87443 7.04347 1.98414 6.86005L2.48605 6.02026C2.58969 5.84669 2.71714 5.63326 2.84534 5.45151C2.9971 5.23637 3.22655 4.95096 3.5765 4.70565C4.01966 4.39498 4.53862 4.20999 5.07837 4.17027C5.50458 4.1389 5.86284 4.21481 6.11646 4.28544C6.33072 4.34511 6.56444 4.4298 6.75451 4.49867L7.69141 4.83775L7.69394 4.8363C7.72844 4.8166 7.7631 4.79712 7.79791 4.77788L7.80068 4.77635L7.94225 3.95571C7.97723 3.7525 8.02011 3.50334 8.07542 3.2843C8.14077 3.0255 8.25461 2.67075 8.49926 2.31147C8.80849 1.85736 9.23648 1.49689 9.73655 1.26937C10.1322 1.08936 10.5011 1.03749 10.7673 1.01709ZM14.0938 4.3363C14.011 3.85634 13.9696 3.61637 13.8476 3.43717C13.7445 3.2858 13.6019 3.16564 13.4352 3.0898C13.2378 3.00002 12.9943 3.00002 12.5073 3.00002H11.4927C11.0057 3.00002 10.7621 3.00002 10.5648 3.0898C10.3981 3.16564 10.2555 3.2858 10.1524 3.43717C10.0304 3.61637 9.98895 3.85634 9.90615 4.3363L9.75012 5.24064C9.69445 5.56333 9.66662 5.72467 9.60765 5.84869C9.54975 5.97047 9.50241 6.03703 9.40636 6.13166C9.30853 6.22804 9.12753 6.3281 8.76554 6.52822C8.73884 6.54298 8.71227 6.55791 8.68582 6.57302C8.33956 6.77078 8.16643 6.86966 8.03785 6.90314C7.91158 6.93602 7.83293 6.94279 7.70289 6.93196C7.57049 6.92094 7.42216 6.86726 7.12551 6.7599L6.11194 6.39308C5.66271 6.2305 5.43809 6.14921 5.22515 6.16488C5.04524 6.17811 4.87225 6.23978 4.72453 6.34333C4.5497 6.46589 4.42715 6.67094 4.18206 7.08103L3.72269 7.84965C3.46394 8.2826 3.33456 8.49907 3.31227 8.72078C3.29345 8.90796 3.32781 9.09665 3.41141 9.26519C3.51042 9.4648 3.7078 9.62177 4.10256 9.9357L4.82745 10.5122C5.07927 10.7124 5.20518 10.8126 5.28411 10.9199C5.36944 11.036 5.40583 11.1114 5.44354 11.2504C5.47844 11.379 5.47844 11.586 5.47844 12C5.47844 12.414 5.47844 12.621 5.44354 12.7497C5.40582 12.8887 5.36944 12.9641 5.28413 13.0801C5.20518 13.1875 5.07927 13.2876 4.82743 13.4879L4.10261 14.0643C3.70785 14.3783 3.51047 14.5352 3.41145 14.7349C3.32785 14.9034 3.29349 15.0921 3.31231 15.2793C3.33461 15.501 3.46398 15.7174 3.72273 16.1504L4.1821 16.919C4.4272 17.3291 4.54974 17.5342 4.72457 17.6567C4.8723 17.7603 5.04528 17.8219 5.2252 17.8352C5.43813 17.8508 5.66275 17.7695 6.11199 17.607L7.12553 17.2402C7.42216 17.1328 7.5705 17.0791 7.7029 17.0681C7.83294 17.0573 7.91159 17.064 8.03786 17.0969C8.16644 17.1304 8.33956 17.2293 8.68582 17.427C8.71228 17.4421 8.73885 17.4571 8.76554 17.4718C9.12753 17.6719 9.30853 17.772 9.40635 17.8684C9.50241 17.963 9.54975 18.0296 9.60765 18.1514C9.66662 18.2754 9.69445 18.4367 9.75012 18.7594L9.90615 19.6637C9.98895 20.1437 10.0304 20.3837 10.1524 20.5629C10.2555 20.7142 10.3981 20.8344 10.5648 20.9102C10.7621 21 11.0057 21 11.4927 21H12.5073C12.9943 21 13.2378 21 13.4352 20.9102C13.6019 20.8344 13.7445 20.7142 13.8476 20.5629C13.9696 20.3837 14.011 20.1437 14.0938 19.6637L14.2499 18.7594C14.3055 18.4367 14.3334 18.2754 14.3923 18.1514C14.4502 18.0296 14.4976 17.963 14.5936 17.8684C14.6915 17.772 14.8725 17.6719 15.2344 17.4718C15.2611 17.4571 15.2877 17.4421 15.3141 17.427C15.6604 17.2293 15.8335 17.1304 15.9621 17.0969C16.0884 17.064 16.167 17.0573 16.2971 17.0681C16.4295 17.0791 16.5778 17.1328 16.8744 17.2402L17.888 17.607C18.3372 17.7696 18.5619 17.8509 18.7748 17.8352C18.9547 17.8219 19.1277 17.7603 19.2754 17.6567C19.4502 17.5342 19.5728 17.3291 19.8179 16.919L20.2773 16.1504C20.536 15.7175 20.6654 15.501 20.6877 15.2793C20.7065 15.0921 20.6721 14.9034 20.5885 14.7349C20.4895 14.5353 20.2921 14.3783 19.8974 14.0643L19.1726 13.4879C18.9207 13.2876 18.7948 13.1875 18.7159 13.0801C18.6306 12.9641 18.5942 12.8887 18.5564 12.7497C18.5215 12.6211 18.5215 12.414 18.5215 12C18.5215 11.586 18.5215 11.379 18.5564 11.2504C18.5942 11.1114 18.6306 11.036 18.7159 10.9199C18.7948 10.8126 18.9207 10.7124 19.1725 10.5122L19.8974 9.9357C20.2922 9.62176 20.4896 9.46479 20.5886 9.26517C20.6722 9.09664 20.7065 8.90795 20.6877 8.72076C20.6654 8.49906 20.5361 8.28259 20.2773 7.84964L19.8179 7.08102C19.5728 6.67093 19.4503 6.46588 19.2755 6.34332C19.1277 6.23977 18.9548 6.1781 18.7748 6.16486C18.5619 6.14919 18.3373 6.23048 17.888 6.39307L16.8745 6.75989C16.5778 6.86725 16.4295 6.92093 16.2971 6.93195C16.167 6.94278 16.0884 6.93601 15.9621 6.90313C15.8335 6.86965 15.6604 6.77077 15.3142 6.57302C15.2877 6.55791 15.2611 6.54298 15.2345 6.52822C14.8725 6.3281 14.6915 6.22804 14.5936 6.13166C14.4976 6.03703 14.4502 5.97047 14.3923 5.84869C14.3334 5.72467 14.3055 5.56332 14.2499 5.24064L14.0938 4.3363Z" fill="#0F1729"/>
|
|
2440
2591
|
</svg>`;
|
|
2441
2592
|
}
|
|
2442
2593
|
/**
|
|
2443
2594
|
* Close/X icon for modal close button
|
|
2444
2595
|
*/
|
|
2445
2596
|
function getCloseIcon() {
|
|
2446
|
-
return `<svg class="cv-modal-close-icon" fill="currentColor" height="20px" viewBox="0 0 256 256" width="20px" xmlns="http://www.w3.org/2000/svg">
|
|
2447
|
-
<path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path>
|
|
2597
|
+
return `<svg class="cv-modal-close-icon" fill="currentColor" height="20px" viewBox="0 0 256 256" width="20px" xmlns="http://www.w3.org/2000/svg">
|
|
2598
|
+
<path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path>
|
|
2448
2599
|
</svg>`;
|
|
2449
2600
|
}
|
|
2450
2601
|
/**
|
|
2451
2602
|
* Reset/refresh icon for reset button
|
|
2452
2603
|
*/
|
|
2453
2604
|
function getResetIcon() {
|
|
2454
|
-
return `<svg class="cv-btn-icon" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2455
|
-
<path d="M22.719 12A10.719 10.719 0 0 1 1.28 12h.838a9.916 9.916 0 1 0 1.373-5H8v1H2V2h1v4.2A10.71 10.71 0 0 1 22.719 12z"/><path fill="none" d="M0 0h24v24H0z"/>
|
|
2605
|
+
return `<svg class="cv-btn-icon" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2606
|
+
<path d="M22.719 12A10.719 10.719 0 0 1 1.28 12h.838a9.916 9.916 0 1 0 1.373-5H8v1H2V2h1v4.2A10.71 10.71 0 0 1 22.719 12z"/><path fill="none" d="M0 0h24v24H0z"/>
|
|
2456
2607
|
</svg>`;
|
|
2457
2608
|
}
|
|
2458
2609
|
/**
|
|
2459
|
-
*
|
|
2610
|
+
* Copy icon for sharing URL button
|
|
2460
2611
|
*/
|
|
2461
|
-
function
|
|
2462
|
-
return `<svg
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2612
|
+
function getCopyIcon() {
|
|
2613
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18" viewBox="0 0 18 18" version="1.1" fill="currentColor">
|
|
2614
|
+
<g id="surface1">
|
|
2615
|
+
<path d="M 11.273438 0 L 2.546875 0 C 1.746094 0 1.089844 0.613281 1.089844
|
|
2616
|
+
1.363281 L 1.089844 10.910156 L 2.546875 10.910156 L 2.546875 1.363281 L 11.273438
|
|
2617
|
+
1.363281 Z M 13.453125 2.726562 L 5.453125 2.726562 C 4.65625 2.726562 4 3.339844 4
|
|
2618
|
+
4.089844 L 4 13.636719 C 4 14.386719 4.65625 15 5.453125 15 L 13.453125 15 C 14.253906
|
|
2619
|
+
15 14.910156 14.386719 14.910156 13.636719 L 14.910156 4.089844 C 14.910156 3.339844
|
|
2620
|
+
14.253906 2.726562 13.453125 2.726562 Z M 13.453125 13.636719 L 5.453125 13.636719 L
|
|
2621
|
+
5.453125 4.089844 L 13.453125 4.089844 Z M 13.453125 13.636719 "></path>
|
|
2622
|
+
</g>
|
|
2623
|
+
</svg>`;
|
|
2624
|
+
}
|
|
2625
|
+
function getTickIcon() {
|
|
2626
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="2 2 22 22" fill="currentColor">
|
|
2627
|
+
<path d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875
|
|
2628
|
+
L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 Z"></path>
|
|
2629
|
+
</svg>`;
|
|
2630
|
+
}
|
|
2631
|
+
function getNavHeadingOnIcon() {
|
|
2632
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="250" height="181" viewBox="0 0 250 181">
|
|
2633
|
+
<rect y="34.5001" width="250" height="146" rx="4" stroke="currentColor" stroke-width="10" fill="none"/>
|
|
2634
|
+
<line x1="27" y1="62.0001" x2="77" y2="62.0001" stroke="currentColor" stroke-width="5"/>
|
|
2635
|
+
<line x1="27" y1="77.8888" x2="77" y2="77.8888" stroke="currentColor" stroke-width="5"/>
|
|
2636
|
+
<line x1="27" y1="97.4454" x2="221" y2="97.4454" stroke="currentColor" stroke-width="5"/>
|
|
2637
|
+
<line x1="27" y1="114.555" x2="221" y2="114.555" stroke="currentColor" stroke-width="5"/>
|
|
2638
|
+
<line x1="27" y1="132.889" x2="221" y2="132.889" stroke="currentColor" stroke-width="5"/>
|
|
2639
|
+
<line x1="27" y1="150" x2="221" y2="150" stroke="currentColor" stroke-width="5"/>
|
|
2640
|
+
<line x1="247.5" y1="43.0001" x2="247.5" y2="13.0001" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>
|
|
2641
|
+
<path d="M185 12.5001L247 12.5001" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>
|
|
2642
|
+
<line x1="204.09" y1="36.6095" x2="181.698" y2="10.0228" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>
|
|
2643
|
+
<path d="M125 9.50012L181 9.50012" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>
|
|
2644
|
+
<path d="M144.305 35.2579L120.095 6.56679" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>
|
|
2645
|
+
<path d="M120 6.50037L64 6.50037" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>
|
|
2646
|
+
<path d="M87.1957 36.1024L59 2.50008" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>
|
|
2647
|
+
<path d="M59 2.50037L3 2.50037" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>
|
|
2648
|
+
<path d="M2.5 38.5001L2.5 3.00012" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>
|
|
2649
|
+
</svg>`;
|
|
2650
|
+
}
|
|
2651
|
+
function getNavHeadingOffIcon() {
|
|
2652
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="250" height="181" viewBox="0 0 250 181" fill="currentColor">
|
|
2653
|
+
<rect y="34.5001" width="250" height="146" rx="4" stroke="currentColor" stroke-width="10" fill="none"/>
|
|
2654
|
+
<line x1="27" y1="62" x2="77" y2="62" stroke="currentColor" stroke-width="5"/>
|
|
2655
|
+
<line x1="27" y1="77.8887" x2="77" y2="77.8887" stroke="currentColor" stroke-width="5"/>
|
|
2656
|
+
<line x1="27" y1="97.4453" x2="221" y2="97.4453" stroke="currentColor" stroke-width="5"/>
|
|
2657
|
+
<line x1="27" y1="114.555" x2="221" y2="114.555" stroke="currentColor" stroke-width="5"/>
|
|
2658
|
+
<line x1="27" y1="132.889" x2="221" y2="132.889" stroke="currentColor" stroke-width="5"/>
|
|
2659
|
+
<line x1="27" y1="150" x2="221" y2="150" stroke="currentColor" stroke-width="5"/>
|
|
2660
|
+
</svg>`;
|
|
2661
|
+
}
|
|
2662
|
+
/**
|
|
2663
|
+
* Transition Icon for Navigation Headings
|
|
2664
|
+
*/
|
|
2665
|
+
function getNavDashed() {
|
|
2666
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="250" height="181" viewBox="0 0 250 181">
|
|
2667
|
+
<rect y="34.5001" width="250" height="146" rx="4" stroke="currentColor" stroke-width="10" fill="none"/>
|
|
2668
|
+
<line x1="27" y1="62.0001" x2="77" y2="62.0001" stroke="currentColor" stroke-width="5"/>
|
|
2669
|
+
<line x1="27" y1="77.8888" x2="77" y2="77.8888" stroke="currentColor" stroke-width="5"/>
|
|
2670
|
+
<line x1="27" y1="97.4454" x2="221" y2="97.4454" stroke="currentColor" stroke-width="5"/>
|
|
2671
|
+
<line x1="27" y1="114.555" x2="221" y2="114.555" stroke="currentColor" stroke-width="5"/>
|
|
2672
|
+
<line x1="27" y1="132.889" x2="221" y2="132.889" stroke="currentColor" stroke-width="5"/>
|
|
2673
|
+
<line x1="27" y1="150" x2="221" y2="150" stroke="currentColor" stroke-width="5"/>
|
|
2674
|
+
<path d="M245 37.0001V39.5001H250V37.0001H247.5H245ZM250 13.0001C250 11.6194 248.881 10.5001 247.5 10.5001C246.119 10.5001 245 11.6194 245 13.0001H247.5H250ZM250 31.0001C250 29.6194 248.881 28.5001 247.5 28.5001C246.119 28.5001 245 29.6194 245 31.0001H247.5H250ZM245 19.0001C245 20.3808 246.119 21.5001 247.5 21.5001C248.881 21.5001 250 20.3808 250 19.0001H247.5H245ZM247.5 37.0001H250V31.0001H247.5H245V37.0001H247.5ZM247.5 19.0001H250V13.0001H247.5H245V19.0001H247.5Z" fill="currentColor"/>
|
|
2675
|
+
<line x1="204.09" y1="36.6095" x2="181.698" y2="10.0228" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>
|
|
2676
|
+
<path d="M125 9.50012L181 9.50012" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>
|
|
2677
|
+
<path d="M144.305 35.2579L120.095 6.56679" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>
|
|
2678
|
+
<path d="M120 6.50037L64 6.50037" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>
|
|
2679
|
+
<path d="M87.1957 36.1024L59 2.50008" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>
|
|
2680
|
+
<path d="M59 2.50037L3 2.50037" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>
|
|
2681
|
+
<path d="M2.5 38.5001L2.5 3.00012" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>
|
|
2682
|
+
<path d="M185 12.5001L247 12.5001" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>
|
|
2683
|
+
</svg>`;
|
|
2466
2684
|
}
|
|
2467
2685
|
|
|
2468
2686
|
class CustomViewsWidget {
|
|
@@ -2565,18 +2783,18 @@ ${TAB_STYLES}
|
|
|
2565
2783
|
this.modal = document.createElement('div');
|
|
2566
2784
|
this.modal.className = 'cv-widget-modal-overlay';
|
|
2567
2785
|
this.applyThemeToModal();
|
|
2568
|
-
const toggleControlsHtml = toggles.map(toggle => `
|
|
2569
|
-
<div class="cv-toggle-card">
|
|
2570
|
-
<div class="cv-toggle-content">
|
|
2571
|
-
<div>
|
|
2572
|
-
<p class="cv-toggle-title">${this.formatToggleName(toggle)}</p>
|
|
2573
|
-
</div>
|
|
2574
|
-
<label class="cv-toggle-label">
|
|
2575
|
-
<input class="cv-toggle-input" type="checkbox" data-toggle="${toggle}"/>
|
|
2576
|
-
<span class="cv-toggle-slider"></span>
|
|
2577
|
-
</label>
|
|
2578
|
-
</div>
|
|
2579
|
-
</div>
|
|
2786
|
+
const toggleControlsHtml = toggles.map(toggle => `
|
|
2787
|
+
<div class="cv-toggle-card">
|
|
2788
|
+
<div class="cv-toggle-content">
|
|
2789
|
+
<div>
|
|
2790
|
+
<p class="cv-toggle-title">${this.formatToggleName(toggle)}</p>
|
|
2791
|
+
</div>
|
|
2792
|
+
<label class="cv-toggle-label">
|
|
2793
|
+
<input class="cv-toggle-input" type="checkbox" data-toggle="${toggle}"/>
|
|
2794
|
+
<span class="cv-toggle-slider"></span>
|
|
2795
|
+
</label>
|
|
2796
|
+
</div>
|
|
2797
|
+
</div>
|
|
2580
2798
|
`).join('');
|
|
2581
2799
|
// Todo: Re-add description if needed (Line 168, add label field to toggles if needed change structure)
|
|
2582
2800
|
// <p class="cv-toggle-description">Show or hide the ${this.formatToggleName(toggle).toLowerCase()} area </p>
|
|
@@ -2584,82 +2802,89 @@ ${TAB_STYLES}
|
|
|
2584
2802
|
const tabGroups = this.core.getTabGroups();
|
|
2585
2803
|
let tabGroupControlsHTML = '';
|
|
2586
2804
|
if (this.options.showTabGroups && tabGroups && tabGroups.length > 0) {
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
<
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
<
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2805
|
+
// Determine initial nav visibility state
|
|
2806
|
+
const initialNavsVisible = TabManager.areNavsVisible(document.body);
|
|
2807
|
+
tabGroupControlsHTML = `
|
|
2808
|
+
<div class="cv-tabgroup-card cv-tabgroup-header">
|
|
2809
|
+
<div class="cv-tabgroup-row">
|
|
2810
|
+
<div class="cv-tabgroup-logo-box" id="cv-nav-icon-box">
|
|
2811
|
+
<div class="cv-nav-icon" id="cv-nav-icon">${initialNavsVisible ? getNavHeadingOnIcon() : getNavHeadingOffIcon()}</div>
|
|
2812
|
+
</div>
|
|
2813
|
+
<div class="cv-tabgroup-info">
|
|
2814
|
+
<div class="cv-tabgroup-title-container">
|
|
2815
|
+
<p class="cv-tabgroup-title">Navigation Headers</p>
|
|
2816
|
+
</div>
|
|
2817
|
+
<p class="cv-tabgroup-description">Show or hide navigation headers</p>
|
|
2818
|
+
</div>
|
|
2819
|
+
<label class="cv-toggle-switch cv-nav-toggle">
|
|
2820
|
+
<input class="cv-nav-pref-input" type="checkbox" ${initialNavsVisible ? 'checked' : ''} aria-label="Show or hide navigation headers" />
|
|
2821
|
+
<span class="cv-switch-bg"></span>
|
|
2822
|
+
<span class="cv-switch-knob"></span>
|
|
2823
|
+
</label>
|
|
2824
|
+
</div>
|
|
2825
|
+
</div>
|
|
2826
|
+
<div class="cv-tab-groups-list">
|
|
2827
|
+
${tabGroups.map(group => `
|
|
2828
|
+
<div class="cv-tabgroup-card cv-tabgroup-item">
|
|
2829
|
+
<label class="cv-tabgroup-label" for="tab-group-${group.id}">
|
|
2830
|
+
${group.label || group.id}
|
|
2831
|
+
</label>
|
|
2832
|
+
<select id="tab-group-${group.id}" class="cv-tabgroup-select" data-group-id="${group.id}">
|
|
2833
|
+
${group.tabs.map(tab => `<option value="${tab.id}">${tab.label || tab.id}</option>`).join('')}
|
|
2834
|
+
</select>
|
|
2835
|
+
</div>
|
|
2836
|
+
`).join('')}
|
|
2837
|
+
</div>
|
|
2613
2838
|
`;
|
|
2614
2839
|
}
|
|
2615
|
-
this.modal.innerHTML = `
|
|
2616
|
-
<div class="cv-widget-modal cv-custom-state-modal">
|
|
2617
|
-
<header class="cv-modal-header">
|
|
2618
|
-
<div class="cv-modal-header-content">
|
|
2619
|
-
<div class="cv-modal-icon">
|
|
2620
|
-
${getGearIcon()}
|
|
2621
|
-
</div>
|
|
2622
|
-
<div class="cv-modal-title">${this.options.title}</div>
|
|
2623
|
-
</div>
|
|
2624
|
-
<button class="cv-modal-close" aria-label="Close modal">
|
|
2625
|
-
${getCloseIcon()}
|
|
2626
|
-
</button>
|
|
2627
|
-
</header>
|
|
2628
|
-
<main class="cv-modal-main">
|
|
2629
|
-
${this.options.description ? `<p class="cv-modal-description">${this.options.description}</p>` : ''}
|
|
2630
|
-
|
|
2631
|
-
${toggles.length ? `
|
|
2632
|
-
<div class="cv-content-section">
|
|
2633
|
-
<div class="cv-section-heading">Toggles</div>
|
|
2634
|
-
<div class="cv-toggles-container">
|
|
2635
|
-
${toggleControlsHtml}
|
|
2636
|
-
</div>
|
|
2637
|
-
</div>
|
|
2638
|
-
` : ''}
|
|
2639
|
-
|
|
2640
|
-
${this.options.showTabGroups && tabGroups && tabGroups.length > 0 ? `
|
|
2641
|
-
<div class="cv-content-section">
|
|
2642
|
-
<div class="cv-section-heading">Tab Groups</div>
|
|
2643
|
-
<div class="cv-tabgroups-container">
|
|
2644
|
-
${tabGroupControlsHTML}
|
|
2645
|
-
</div>
|
|
2646
|
-
</div>
|
|
2647
|
-
` : ''}
|
|
2648
|
-
</main>
|
|
2649
|
-
|
|
2650
|
-
<footer class="cv-modal-footer">
|
|
2651
|
-
${this.options.showReset ? `
|
|
2652
|
-
<button class="cv-reset-btn">
|
|
2653
|
-
|
|
2654
|
-
<span>Reset to Default</span>
|
|
2655
|
-
</button>
|
|
2656
|
-
` : ''}
|
|
2657
|
-
<button class="cv-share-btn">
|
|
2658
|
-
|
|
2659
|
-
<span
|
|
2660
|
-
</button>
|
|
2661
|
-
</footer>
|
|
2662
|
-
</div>
|
|
2840
|
+
this.modal.innerHTML = `
|
|
2841
|
+
<div class="cv-widget-modal cv-custom-state-modal">
|
|
2842
|
+
<header class="cv-modal-header">
|
|
2843
|
+
<div class="cv-modal-header-content">
|
|
2844
|
+
<div class="cv-modal-icon">
|
|
2845
|
+
${getGearIcon()}
|
|
2846
|
+
</div>
|
|
2847
|
+
<div class="cv-modal-title">${this.options.title}</div>
|
|
2848
|
+
</div>
|
|
2849
|
+
<button class="cv-modal-close" aria-label="Close modal">
|
|
2850
|
+
${getCloseIcon()}
|
|
2851
|
+
</button>
|
|
2852
|
+
</header>
|
|
2853
|
+
<main class="cv-modal-main">
|
|
2854
|
+
${this.options.description ? `<p class="cv-modal-description">${this.options.description}</p>` : ''}
|
|
2855
|
+
|
|
2856
|
+
${toggles.length ? `
|
|
2857
|
+
<div class="cv-content-section">
|
|
2858
|
+
<div class="cv-section-heading">Toggles</div>
|
|
2859
|
+
<div class="cv-toggles-container">
|
|
2860
|
+
${toggleControlsHtml}
|
|
2861
|
+
</div>
|
|
2862
|
+
</div>
|
|
2863
|
+
` : ''}
|
|
2864
|
+
|
|
2865
|
+
${this.options.showTabGroups && tabGroups && tabGroups.length > 0 ? `
|
|
2866
|
+
<div class="cv-content-section">
|
|
2867
|
+
<div class="cv-section-heading">Tab Groups</div>
|
|
2868
|
+
<div class="cv-tabgroups-container">
|
|
2869
|
+
${tabGroupControlsHTML}
|
|
2870
|
+
</div>
|
|
2871
|
+
</div>
|
|
2872
|
+
` : ''}
|
|
2873
|
+
</main>
|
|
2874
|
+
|
|
2875
|
+
<footer class="cv-modal-footer">
|
|
2876
|
+
${this.options.showReset ? `
|
|
2877
|
+
<button class="cv-reset-btn">
|
|
2878
|
+
<span class="cv-reset-btn-icon">${getResetIcon()}</span>
|
|
2879
|
+
<span>Reset to Default</span>
|
|
2880
|
+
</button>
|
|
2881
|
+
` : ''}
|
|
2882
|
+
<button class="cv-share-btn">
|
|
2883
|
+
<span>Copy Shareable URL</span>
|
|
2884
|
+
<span class="cv-share-btn-icon">${getCopyIcon()}</span>
|
|
2885
|
+
</button>
|
|
2886
|
+
</footer>
|
|
2887
|
+
</div>
|
|
2663
2888
|
`;
|
|
2664
2889
|
document.body.appendChild(this.modal);
|
|
2665
2890
|
this.attachStateModalEventListeners();
|
|
@@ -2684,14 +2909,35 @@ ${TAB_STYLES}
|
|
|
2684
2909
|
if (copyUrlBtn) {
|
|
2685
2910
|
copyUrlBtn.addEventListener('click', () => {
|
|
2686
2911
|
this.copyShareableURL();
|
|
2912
|
+
// Visual feedback: change icon to tick for 3 seconds
|
|
2913
|
+
const iconContainer = copyUrlBtn.querySelector('.cv-share-btn-icon');
|
|
2914
|
+
if (iconContainer) {
|
|
2915
|
+
const originalIcon = iconContainer.innerHTML;
|
|
2916
|
+
iconContainer.innerHTML = getTickIcon();
|
|
2917
|
+
// Revert after 3 seconds
|
|
2918
|
+
setTimeout(() => {
|
|
2919
|
+
iconContainer.innerHTML = originalIcon;
|
|
2920
|
+
}, 3000);
|
|
2921
|
+
}
|
|
2687
2922
|
});
|
|
2688
2923
|
}
|
|
2689
2924
|
// Reset to default button
|
|
2690
2925
|
const resetBtn = this.modal.querySelector('.cv-reset-btn');
|
|
2691
2926
|
if (resetBtn) {
|
|
2692
2927
|
resetBtn.addEventListener('click', () => {
|
|
2928
|
+
// Add spinning animation to icon
|
|
2929
|
+
const resetIcon = resetBtn.querySelector('.cv-reset-btn-icon');
|
|
2930
|
+
if (resetIcon) {
|
|
2931
|
+
resetIcon.classList.add('cv-spinning');
|
|
2932
|
+
}
|
|
2693
2933
|
this.core.resetToDefault();
|
|
2694
2934
|
this.loadCurrentStateIntoForm();
|
|
2935
|
+
// Remove spinning animation after it completes
|
|
2936
|
+
setTimeout(() => {
|
|
2937
|
+
if (resetIcon) {
|
|
2938
|
+
resetIcon.classList.remove('cv-spinning');
|
|
2939
|
+
}
|
|
2940
|
+
}, 600); // 600ms matches the animation duration
|
|
2695
2941
|
});
|
|
2696
2942
|
}
|
|
2697
2943
|
// Listen to toggle switches
|
|
@@ -2725,14 +2971,34 @@ ${TAB_STYLES}
|
|
|
2725
2971
|
});
|
|
2726
2972
|
// Listener for show/hide tab navs
|
|
2727
2973
|
const tabNavToggle = this.modal.querySelector('.cv-nav-pref-input');
|
|
2728
|
-
|
|
2974
|
+
const navIcon = this.modal?.querySelector('#cv-nav-icon');
|
|
2975
|
+
const navHeaderCard = this.modal?.querySelector('.cv-tabgroup-card.cv-tabgroup-header');
|
|
2976
|
+
if (tabNavToggle && navIcon && navHeaderCard) {
|
|
2977
|
+
// Helper to update icon based on state
|
|
2978
|
+
const updateIcon = (isVisible, isHovering = false) => {
|
|
2979
|
+
if (isHovering) {
|
|
2980
|
+
// On hover, show the transition icon
|
|
2981
|
+
navIcon.innerHTML = getNavDashed();
|
|
2982
|
+
}
|
|
2983
|
+
else {
|
|
2984
|
+
// Normal state, show the status icon (on if visible, off if hidden)
|
|
2985
|
+
navIcon.innerHTML = isVisible ? getNavHeadingOnIcon() : getNavHeadingOffIcon();
|
|
2986
|
+
}
|
|
2987
|
+
};
|
|
2988
|
+
// Add hover listeners to entire header card
|
|
2989
|
+
navHeaderCard.addEventListener('mouseenter', () => {
|
|
2990
|
+
updateIcon(tabNavToggle.checked, true);
|
|
2991
|
+
});
|
|
2992
|
+
navHeaderCard.addEventListener('mouseleave', () => {
|
|
2993
|
+
updateIcon(tabNavToggle.checked, false);
|
|
2994
|
+
});
|
|
2995
|
+
// Add change listener
|
|
2729
2996
|
tabNavToggle.addEventListener('change', () => {
|
|
2730
2997
|
const visible = tabNavToggle.checked;
|
|
2731
|
-
//
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
catch (e) { /* ignore */ }
|
|
2998
|
+
// Update the icon based on new state (not hovering)
|
|
2999
|
+
updateIcon(visible, false);
|
|
3000
|
+
// Persist preference via core
|
|
3001
|
+
this.core.persistTabNavVisibility(visible);
|
|
2736
3002
|
// Apply to DOM using TabManager via core
|
|
2737
3003
|
try {
|
|
2738
3004
|
const rootEl = document.body;
|
|
@@ -2844,21 +3110,22 @@ ${TAB_STYLES}
|
|
|
2844
3110
|
});
|
|
2845
3111
|
// Load tab nav visibility preference
|
|
2846
3112
|
const navPref = (() => {
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
return TabManager.areNavsVisible(document.body);
|
|
2851
|
-
return raw === 'true';
|
|
2852
|
-
}
|
|
2853
|
-
catch (e) {
|
|
2854
|
-
return TabManager.areNavsVisible(document.body);
|
|
3113
|
+
const persisted = this.core.getPersistedTabNavVisibility();
|
|
3114
|
+
if (persisted !== null) {
|
|
3115
|
+
return persisted;
|
|
2855
3116
|
}
|
|
3117
|
+
return TabManager.areNavsVisible(document.body);
|
|
2856
3118
|
})();
|
|
2857
3119
|
const tabNavToggle = this.modal.querySelector('.cv-nav-pref-input');
|
|
3120
|
+
const navIcon = this.modal?.querySelector('#cv-nav-icon');
|
|
2858
3121
|
if (tabNavToggle) {
|
|
2859
3122
|
tabNavToggle.checked = navPref;
|
|
2860
3123
|
// Ensure UI matches actual visibility
|
|
2861
3124
|
TabManager.setNavsVisibility(document.body, navPref);
|
|
3125
|
+
// Update the nav icon to reflect the current state
|
|
3126
|
+
if (navIcon) {
|
|
3127
|
+
navIcon.innerHTML = navPref ? getNavHeadingOnIcon() : getNavHeadingOffIcon();
|
|
3128
|
+
}
|
|
2862
3129
|
}
|
|
2863
3130
|
}
|
|
2864
3131
|
/**
|
|
@@ -2875,12 +3142,19 @@ ${TAB_STYLES}
|
|
|
2875
3142
|
// Check if welcome has been shown before
|
|
2876
3143
|
const hasSeenWelcome = localStorage.getItem(STORAGE_KEY);
|
|
2877
3144
|
if (!hasSeenWelcome) {
|
|
2878
|
-
//
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
3145
|
+
// Check if this page has any custom views elements
|
|
3146
|
+
const hasCustomViewElements = document.querySelector('cv-tabgroup') !== null ||
|
|
3147
|
+
document.querySelector('cv-tab') !== null ||
|
|
3148
|
+
document.querySelector('cv-toggle') !== null ||
|
|
3149
|
+
document.querySelector('[data-cv-toggle]') !== null;
|
|
3150
|
+
if (hasCustomViewElements) {
|
|
3151
|
+
// Show welcome modal after a short delay to let the page settle
|
|
3152
|
+
setTimeout(() => {
|
|
3153
|
+
this.createWelcomeModal();
|
|
3154
|
+
}, 500);
|
|
3155
|
+
// Mark as shown
|
|
3156
|
+
localStorage.setItem(STORAGE_KEY, 'true');
|
|
3157
|
+
}
|
|
2884
3158
|
}
|
|
2885
3159
|
}
|
|
2886
3160
|
/**
|
|
@@ -2893,29 +3167,29 @@ ${TAB_STYLES}
|
|
|
2893
3167
|
this.modal = document.createElement('div');
|
|
2894
3168
|
this.modal.className = 'cv-widget-modal-overlay cv-welcome-modal-overlay';
|
|
2895
3169
|
this.applyThemeToModal();
|
|
2896
|
-
this.modal.innerHTML = `
|
|
2897
|
-
<div class="cv-widget-modal cv-welcome-modal">
|
|
2898
|
-
<header class="cv-modal-header">
|
|
2899
|
-
<div class="cv-modal-header-content">
|
|
2900
|
-
<div class="cv-modal-icon">
|
|
2901
|
-
${getGearIcon()}
|
|
2902
|
-
</div>
|
|
2903
|
-
<h1 class="cv-modal-title">${this.options.welcomeTitle}</h1>
|
|
2904
|
-
</div>
|
|
2905
|
-
</header>
|
|
2906
|
-
<div class="cv-modal-main">
|
|
2907
|
-
<p class="cv-welcome-message">${this.options.welcomeMessage}</p>
|
|
2908
|
-
|
|
2909
|
-
<div class="cv-welcome-widget-preview">
|
|
2910
|
-
<div class="cv-welcome-widget-icon">
|
|
2911
|
-
${getGearIcon()}
|
|
2912
|
-
</div>
|
|
2913
|
-
<p class="cv-welcome-widget-label">Look for this widget</p>
|
|
2914
|
-
</div>
|
|
2915
|
-
|
|
2916
|
-
<button class="cv-welcome-got-it">Got it!</button>
|
|
2917
|
-
</div>
|
|
2918
|
-
</div>
|
|
3170
|
+
this.modal.innerHTML = `
|
|
3171
|
+
<div class="cv-widget-modal cv-welcome-modal">
|
|
3172
|
+
<header class="cv-modal-header">
|
|
3173
|
+
<div class="cv-modal-header-content">
|
|
3174
|
+
<div class="cv-modal-icon">
|
|
3175
|
+
${getGearIcon()}
|
|
3176
|
+
</div>
|
|
3177
|
+
<h1 class="cv-modal-title">${this.options.welcomeTitle}</h1>
|
|
3178
|
+
</div>
|
|
3179
|
+
</header>
|
|
3180
|
+
<div class="cv-modal-main">
|
|
3181
|
+
<p class="cv-welcome-message">${this.options.welcomeMessage}</p>
|
|
3182
|
+
|
|
3183
|
+
<div class="cv-welcome-widget-preview">
|
|
3184
|
+
<div class="cv-welcome-widget-icon">
|
|
3185
|
+
${getGearIcon()}
|
|
3186
|
+
</div>
|
|
3187
|
+
<p class="cv-welcome-widget-label">Look for this widget</p>
|
|
3188
|
+
</div>
|
|
3189
|
+
|
|
3190
|
+
<button class="cv-welcome-got-it">Got it!</button>
|
|
3191
|
+
</div>
|
|
3192
|
+
</div>
|
|
2919
3193
|
`;
|
|
2920
3194
|
document.body.appendChild(this.modal);
|
|
2921
3195
|
this.attachWelcomeModalEventListeners();
|