@customviews-js/customviews 1.1.5 → 1.1.6
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 +1325 -1339
- package/dist/custom-views.core.cjs.js.map +1 -1
- package/dist/custom-views.core.esm.js +1325 -1339
- package/dist/custom-views.core.esm.js.map +1 -1
- package/dist/custom-views.esm.js +1325 -1339
- package/dist/custom-views.esm.js.map +1 -1
- package/dist/custom-views.js +1325 -1339
- 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/tab-manager.d.ts.map +1 -1
- package/package.json +61 -61
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @customviews-js/customviews v1.1.
|
|
2
|
+
* @customviews-js/customviews v1.1.6
|
|
3
3
|
* (c) 2025 Chan Ger Teck
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -465,12 +465,12 @@ class TabManager {
|
|
|
465
465
|
const tabElements = Array.from(groupEl.children).filter((child) => child.tagName.toLowerCase() === 'cv-tab');
|
|
466
466
|
// Check for Font Awesome shortcodes in tab headers
|
|
467
467
|
tabElements.forEach((tabEl) => {
|
|
468
|
-
const
|
|
469
|
-
if (!
|
|
468
|
+
const rawTabId = tabEl.getAttribute('id');
|
|
469
|
+
if (!rawTabId)
|
|
470
470
|
return;
|
|
471
|
-
const splitIds = this.splitTabIds(
|
|
472
|
-
const
|
|
473
|
-
const header = tabEl.getAttribute('header') || this.getTabLabel(
|
|
471
|
+
const splitIds = this.splitTabIds(rawTabId);
|
|
472
|
+
const tabId = splitIds[0] || rawTabId;
|
|
473
|
+
const header = tabEl.getAttribute('header') || this.getTabLabel(tabId, groupId, cfgGroups) || tabId || '';
|
|
474
474
|
if (/:fa-[\w-]+:/.test(header)) {
|
|
475
475
|
hasFontAwesomeShortcodes = true;
|
|
476
476
|
}
|
|
@@ -508,78 +508,64 @@ class TabManager {
|
|
|
508
508
|
groupEl.insertBefore(navContainer, groupEl.firstChild);
|
|
509
509
|
// Build nav items
|
|
510
510
|
tabElements.forEach((tabEl) => {
|
|
511
|
-
const
|
|
512
|
-
if (!
|
|
511
|
+
const rawTabId = tabEl.getAttribute('id');
|
|
512
|
+
if (!rawTabId)
|
|
513
513
|
return;
|
|
514
|
-
const splitIds = this.splitTabIds(
|
|
515
|
-
//
|
|
516
|
-
|
|
514
|
+
const splitIds = this.splitTabIds(rawTabId);
|
|
515
|
+
// If multiple IDs, use the first as primary
|
|
516
|
+
const tabId = splitIds[0] || rawTabId;
|
|
517
|
+
// Get header for this tab (single header, not multiple)
|
|
517
518
|
const headerAttr = tabEl.getAttribute('header') || '';
|
|
518
|
-
let
|
|
519
|
-
if (headerAttr
|
|
520
|
-
|
|
519
|
+
let header = '';
|
|
520
|
+
if (headerAttr) {
|
|
521
|
+
// Single header provided on the element
|
|
522
|
+
header = headerAttr;
|
|
521
523
|
}
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
524
|
+
else {
|
|
525
|
+
// Use config label or id as fallback
|
|
526
|
+
header = this.getTabLabel(tabId, groupId, cfgGroups) || tabId || '';
|
|
527
|
+
}
|
|
528
|
+
// Create a single nav link for this tab element
|
|
529
|
+
const listItem = document.createElement('li');
|
|
530
|
+
listItem.className = 'nav-item';
|
|
531
|
+
const navLink = document.createElement('a');
|
|
532
|
+
navLink.className = 'nav-link';
|
|
533
|
+
navLink.innerHTML = replaceIconShortcodes(header);
|
|
534
|
+
navLink.href = '#';
|
|
535
|
+
navLink.setAttribute('data-tab-id', tabId);
|
|
536
|
+
navLink.setAttribute('data-raw-tab-id', rawTabId);
|
|
537
|
+
navLink.setAttribute('data-group-id', groupId);
|
|
538
|
+
navLink.setAttribute('role', 'tab');
|
|
539
|
+
// Check if any of the split IDs is active
|
|
540
|
+
const activeTabId = this.resolveActiveTabForGroup(groupId, {}, cfgGroups, groupEl); // Pass empty tabs for initial state
|
|
541
|
+
const isActive = splitIds.includes(activeTabId || '');
|
|
542
|
+
if (isActive) {
|
|
543
|
+
navLink.classList.add('active');
|
|
544
|
+
navLink.setAttribute('aria-selected', 'true');
|
|
527
545
|
}
|
|
528
546
|
else {
|
|
529
|
-
|
|
530
|
-
fallbackHeader = this.getTabLabel(firstId, groupId, cfgGroups) || firstId || '';
|
|
547
|
+
navLink.setAttribute('aria-selected', 'false');
|
|
531
548
|
}
|
|
532
|
-
//
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
//
|
|
545
|
-
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
// Check if this split ID is active (same logic as applySelections)
|
|
553
|
-
const activeTabId = this.resolveActiveTabForGroup(groupId, {}, cfgGroups, groupEl); // Pass empty tabs for initial state
|
|
554
|
-
const isActive = splitIds.includes(activeTabId || '');
|
|
555
|
-
if (isActive) {
|
|
556
|
-
navLink.classList.add('active');
|
|
557
|
-
navLink.setAttribute('aria-selected', 'true');
|
|
558
|
-
}
|
|
559
|
-
else {
|
|
560
|
-
navLink.setAttribute('aria-selected', 'false');
|
|
561
|
-
}
|
|
562
|
-
// Add click handler for local tab switch
|
|
563
|
-
if (onTabClick) {
|
|
564
|
-
navLink.addEventListener('click', (e) => {
|
|
565
|
-
e.preventDefault();
|
|
566
|
-
// console.log("Single-click detected");
|
|
567
|
-
onTabClick(groupId, splitId, groupEl);
|
|
568
|
-
});
|
|
569
|
-
}
|
|
570
|
-
// Add double-click handler for sync
|
|
571
|
-
if (onTabDoubleClick) {
|
|
572
|
-
navLink.addEventListener('dblclick', (e) => {
|
|
573
|
-
e.preventDefault();
|
|
574
|
-
// console.log("Double-click detected");
|
|
575
|
-
onTabDoubleClick(groupId, splitId, groupEl);
|
|
576
|
-
});
|
|
577
|
-
}
|
|
578
|
-
// Add tooltip for UX feedback (use native title attribute)
|
|
579
|
-
navLink.setAttribute('title', 'Double click to change switch tabs across all groups');
|
|
580
|
-
listItem.appendChild(navLink);
|
|
581
|
-
navContainer.appendChild(listItem);
|
|
582
|
-
});
|
|
549
|
+
// Add click handler for local tab switch (if split id, switches to default first ID)
|
|
550
|
+
if (onTabClick) {
|
|
551
|
+
navLink.addEventListener('click', (e) => {
|
|
552
|
+
e.preventDefault();
|
|
553
|
+
// console.log("Single-click detected");
|
|
554
|
+
onTabClick(groupId, tabId, groupEl);
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
// Add double-click handler for sync
|
|
558
|
+
if (onTabDoubleClick) {
|
|
559
|
+
navLink.addEventListener('dblclick', (e) => {
|
|
560
|
+
e.preventDefault();
|
|
561
|
+
// console.log("Double-click detected");
|
|
562
|
+
onTabDoubleClick(groupId, tabId, groupEl);
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
// Add tooltip for UX feedback (use native title attribute)
|
|
566
|
+
navLink.setAttribute('title', 'Double click to change switch tabs across all groups');
|
|
567
|
+
listItem.appendChild(navLink);
|
|
568
|
+
navContainer.appendChild(listItem);
|
|
583
569
|
});
|
|
584
570
|
// Add bottom border line at the end of the tab group
|
|
585
571
|
const bottomBorder = document.createElement('div');
|
|
@@ -643,12 +629,12 @@ class TabManager {
|
|
|
643
629
|
static updateNavActiveState(groupEl, activeTabId) {
|
|
644
630
|
const navLinks = groupEl.querySelectorAll('.nav-link');
|
|
645
631
|
navLinks.forEach((link) => {
|
|
646
|
-
const
|
|
647
|
-
if (!
|
|
632
|
+
const rawTabId = link.getAttribute('data-raw-tab-id');
|
|
633
|
+
if (!rawTabId)
|
|
648
634
|
return;
|
|
649
|
-
// Check if activeTabId
|
|
650
|
-
const splitIds = this.splitTabIds(
|
|
651
|
-
const isActive =
|
|
635
|
+
// Check if activeTabId is in the split IDs of this link
|
|
636
|
+
const splitIds = this.splitTabIds(rawTabId);
|
|
637
|
+
const isActive = splitIds.includes(activeTabId);
|
|
652
638
|
if (isActive) {
|
|
653
639
|
link.classList.add('active');
|
|
654
640
|
link.setAttribute('aria-selected', 'true');
|
|
@@ -675,12 +661,12 @@ class TabManager {
|
|
|
675
661
|
// Update nav links for this group
|
|
676
662
|
const navLinks = groupEl.querySelectorAll('.nav-link');
|
|
677
663
|
navLinks.forEach((link) => {
|
|
678
|
-
const
|
|
679
|
-
if (!
|
|
664
|
+
const rawTabId = link.getAttribute('data-raw-tab-id');
|
|
665
|
+
if (!rawTabId)
|
|
680
666
|
return;
|
|
681
|
-
// Check if activeTabId
|
|
682
|
-
const splitIds = this.splitTabIds(
|
|
683
|
-
const isActive =
|
|
667
|
+
// Check if activeTabId is in the split IDs of this link
|
|
668
|
+
const splitIds = this.splitTabIds(rawTabId);
|
|
669
|
+
const isActive = splitIds.includes(activeTabId);
|
|
684
670
|
if (isActive) {
|
|
685
671
|
link.classList.add('active');
|
|
686
672
|
link.setAttribute('aria-selected', 'true');
|
|
@@ -848,166 +834,166 @@ class ToggleManager {
|
|
|
848
834
|
/**
|
|
849
835
|
* Styles for toggle visibility and animations
|
|
850
836
|
*/
|
|
851
|
-
const TOGGLE_STYLES = `
|
|
852
|
-
/* Core toggle visibility transitions */
|
|
853
|
-
[data-cv-toggle], [data-customviews-toggle], cv-toggle {
|
|
854
|
-
transition: opacity 150ms ease,
|
|
855
|
-
transform 150ms ease,
|
|
856
|
-
max-height 200ms ease,
|
|
857
|
-
margin 150ms ease;
|
|
858
|
-
will-change: opacity, transform, max-height, margin;
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
.cv-visible {
|
|
862
|
-
opacity: 1 !important;
|
|
863
|
-
transform: translateY(0) !important;
|
|
864
|
-
max-height: var(--cv-max-height, 9999px) !important;
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
.cv-hidden {
|
|
868
|
-
opacity: 0 !important;
|
|
869
|
-
transform: translateY(-4px) !important;
|
|
870
|
-
pointer-events: none !important;
|
|
871
|
-
padding-top: 0 !important;
|
|
872
|
-
padding-bottom: 0 !important;
|
|
873
|
-
border-top-width: 0 !important;
|
|
874
|
-
border-bottom-width: 0 !important;
|
|
875
|
-
max-height: 0 !important;
|
|
876
|
-
margin-top: 0 !important;
|
|
877
|
-
margin-bottom: 0 !important;
|
|
878
|
-
overflow: hidden !important;
|
|
879
|
-
}
|
|
837
|
+
const TOGGLE_STYLES = `
|
|
838
|
+
/* Core toggle visibility transitions */
|
|
839
|
+
[data-cv-toggle], [data-customviews-toggle], cv-toggle {
|
|
840
|
+
transition: opacity 150ms ease,
|
|
841
|
+
transform 150ms ease,
|
|
842
|
+
max-height 200ms ease,
|
|
843
|
+
margin 150ms ease;
|
|
844
|
+
will-change: opacity, transform, max-height, margin;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
.cv-visible {
|
|
848
|
+
opacity: 1 !important;
|
|
849
|
+
transform: translateY(0) !important;
|
|
850
|
+
max-height: var(--cv-max-height, 9999px) !important;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
.cv-hidden {
|
|
854
|
+
opacity: 0 !important;
|
|
855
|
+
transform: translateY(-4px) !important;
|
|
856
|
+
pointer-events: none !important;
|
|
857
|
+
padding-top: 0 !important;
|
|
858
|
+
padding-bottom: 0 !important;
|
|
859
|
+
border-top-width: 0 !important;
|
|
860
|
+
border-bottom-width: 0 !important;
|
|
861
|
+
max-height: 0 !important;
|
|
862
|
+
margin-top: 0 !important;
|
|
863
|
+
margin-bottom: 0 !important;
|
|
864
|
+
overflow: hidden !important;
|
|
865
|
+
}
|
|
880
866
|
`;
|
|
881
867
|
|
|
882
868
|
/**
|
|
883
869
|
* Styles for tab groups and tab navigation
|
|
884
870
|
*/
|
|
885
|
-
const TAB_STYLES = `
|
|
886
|
-
/* Tab navigation styles - Bootstrap-style tabs matching MarkBind */
|
|
887
|
-
.cv-tabs-nav {
|
|
888
|
-
display: flex;
|
|
889
|
-
flex-wrap: wrap;
|
|
890
|
-
padding-left: 0;
|
|
891
|
-
margin-top: 0.5rem;
|
|
892
|
-
margin-bottom: 1rem;
|
|
893
|
-
list-style: none;
|
|
894
|
-
border-bottom: 1px solid #dee2e6;
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
.cv-tabs-nav .nav-item {
|
|
898
|
-
margin-bottom: -1px;
|
|
899
|
-
list-style: none;
|
|
900
|
-
display: inline-block;
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
.cv-tabs-nav .nav-link {
|
|
904
|
-
display: block;
|
|
905
|
-
padding: 0.5rem 1rem;
|
|
906
|
-
color: #495057;
|
|
907
|
-
text-decoration: none;
|
|
908
|
-
background-color: transparent;
|
|
909
|
-
border: 1px solid transparent;
|
|
910
|
-
border-top-left-radius: 0.25rem;
|
|
911
|
-
border-top-right-radius: 0.25rem;
|
|
912
|
-
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
|
|
913
|
-
cursor: pointer;
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
.cv-tabs-nav .nav-link:hover,
|
|
917
|
-
.cv-tabs-nav .nav-link:focus {
|
|
918
|
-
border-color: #e9ecef #e9ecef #dee2e6;
|
|
919
|
-
isolation: isolate;
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
.cv-tabs-nav .nav-link.active {
|
|
923
|
-
color: #495057;
|
|
924
|
-
background-color: #fff;
|
|
925
|
-
border-color: #dee2e6 #dee2e6 #fff;
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
.cv-tabs-nav .nav-link:focus {
|
|
929
|
-
outline: 0;
|
|
930
|
-
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
/* Legacy button-based nav (deprecated, kept for compatibility) */
|
|
934
|
-
.cv-tabs-nav-item {
|
|
935
|
-
background: none;
|
|
936
|
-
border: none;
|
|
937
|
-
border-bottom: 2px solid transparent;
|
|
938
|
-
padding: 0.5rem 1rem;
|
|
939
|
-
cursor: pointer;
|
|
940
|
-
font-size: 1rem;
|
|
941
|
-
color: #6c757d;
|
|
942
|
-
transition: color 150ms ease, border-color 150ms ease;
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
.cv-tabs-nav-item:hover {
|
|
946
|
-
color: #495057;
|
|
947
|
-
border-bottom-color: #dee2e6;
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
.cv-tabs-nav-item.active {
|
|
951
|
-
color: #007bff;
|
|
952
|
-
border-bottom-color: #007bff;
|
|
953
|
-
font-weight: 500;
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
.cv-tabs-nav-item:focus {
|
|
957
|
-
outline: 2px solid #007bff;
|
|
958
|
-
outline-offset: 2px;
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
/* Tab panel base styles */
|
|
962
|
-
cv-tab {
|
|
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
|
-
}
|
|
871
|
+
const TAB_STYLES = `
|
|
872
|
+
/* Tab navigation styles - Bootstrap-style tabs matching MarkBind */
|
|
873
|
+
.cv-tabs-nav {
|
|
874
|
+
display: flex;
|
|
875
|
+
flex-wrap: wrap;
|
|
876
|
+
padding-left: 0;
|
|
877
|
+
margin-top: 0.5rem;
|
|
878
|
+
margin-bottom: 1rem;
|
|
879
|
+
list-style: none;
|
|
880
|
+
border-bottom: 1px solid #dee2e6;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
.cv-tabs-nav .nav-item {
|
|
884
|
+
margin-bottom: -1px;
|
|
885
|
+
list-style: none;
|
|
886
|
+
display: inline-block;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
.cv-tabs-nav .nav-link {
|
|
890
|
+
display: block;
|
|
891
|
+
padding: 0.5rem 1rem;
|
|
892
|
+
color: #495057;
|
|
893
|
+
text-decoration: none;
|
|
894
|
+
background-color: transparent;
|
|
895
|
+
border: 1px solid transparent;
|
|
896
|
+
border-top-left-radius: 0.25rem;
|
|
897
|
+
border-top-right-radius: 0.25rem;
|
|
898
|
+
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
|
|
899
|
+
cursor: pointer;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
.cv-tabs-nav .nav-link:hover,
|
|
903
|
+
.cv-tabs-nav .nav-link:focus {
|
|
904
|
+
border-color: #e9ecef #e9ecef #dee2e6;
|
|
905
|
+
isolation: isolate;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
.cv-tabs-nav .nav-link.active {
|
|
909
|
+
color: #495057;
|
|
910
|
+
background-color: #fff;
|
|
911
|
+
border-color: #dee2e6 #dee2e6 #fff;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
.cv-tabs-nav .nav-link:focus {
|
|
915
|
+
outline: 0;
|
|
916
|
+
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
/* Legacy button-based nav (deprecated, kept for compatibility) */
|
|
920
|
+
.cv-tabs-nav-item {
|
|
921
|
+
background: none;
|
|
922
|
+
border: none;
|
|
923
|
+
border-bottom: 2px solid transparent;
|
|
924
|
+
padding: 0.5rem 1rem;
|
|
925
|
+
cursor: pointer;
|
|
926
|
+
font-size: 1rem;
|
|
927
|
+
color: #6c757d;
|
|
928
|
+
transition: color 150ms ease, border-color 150ms ease;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
.cv-tabs-nav-item:hover {
|
|
932
|
+
color: #495057;
|
|
933
|
+
border-bottom-color: #dee2e6;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
.cv-tabs-nav-item.active {
|
|
937
|
+
color: #007bff;
|
|
938
|
+
border-bottom-color: #007bff;
|
|
939
|
+
font-weight: 500;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
.cv-tabs-nav-item:focus {
|
|
943
|
+
outline: 2px solid #007bff;
|
|
944
|
+
outline-offset: 2px;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
/* Tab panel base styles */
|
|
948
|
+
cv-tab {
|
|
949
|
+
display: block;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
/* Override visibility for tab panels - use display instead of collapse animation */
|
|
953
|
+
cv-tab.cv-hidden {
|
|
954
|
+
display: none !important;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
cv-tab.cv-visible {
|
|
958
|
+
display: block !important;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
cv-tabgroup {
|
|
962
|
+
display: block;
|
|
963
|
+
margin-bottom: 1.5rem;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
/* Bottom border line for tab groups */
|
|
967
|
+
.cv-tabgroup-bottom-border {
|
|
968
|
+
border-bottom: 1px solid #dee2e6;
|
|
969
|
+
margin-top: 1rem;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
/* Tab content wrapper */
|
|
973
|
+
.cv-tab-content {
|
|
974
|
+
padding: 1rem 0;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
/* Viewer-controlled nav visibility: hide nav containers when requested */
|
|
978
|
+
.cv-tabs-nav-hidden {
|
|
979
|
+
display: none !important;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
/* Print-friendly: hide tab navigation when printing to reduce clutter */
|
|
983
|
+
@media print {
|
|
984
|
+
.cv-tabs-nav {
|
|
985
|
+
display: none !important;
|
|
986
|
+
}
|
|
987
|
+
}
|
|
1002
988
|
`;
|
|
1003
989
|
|
|
1004
990
|
/**
|
|
1005
991
|
* Combined core styles for toggles and tabs
|
|
1006
992
|
*/
|
|
1007
|
-
const CORE_STYLES = `
|
|
1008
|
-
${TOGGLE_STYLES}
|
|
1009
|
-
|
|
1010
|
-
${TAB_STYLES}
|
|
993
|
+
const CORE_STYLES = `
|
|
994
|
+
${TOGGLE_STYLES}
|
|
995
|
+
|
|
996
|
+
${TAB_STYLES}
|
|
1011
997
|
`;
|
|
1012
998
|
/**
|
|
1013
999
|
* Add styles for hiding and showing toggles animations and transitions to the document head
|
|
@@ -1401,993 +1387,993 @@ class CustomViews {
|
|
|
1401
1387
|
* Note: Styles are kept as a TypeScript string for compatibility with the build system.
|
|
1402
1388
|
* This approach ensures the styles are properly bundled and don't require separate CSS file handling.
|
|
1403
1389
|
*/
|
|
1404
|
-
const WIDGET_STYLES = `
|
|
1405
|
-
/* Rounded rectangle widget icon styles */
|
|
1406
|
-
.cv-widget-icon {
|
|
1407
|
-
position: fixed;
|
|
1408
|
-
/* Slightly transparent by default so the widget is subtle at the page edge */
|
|
1409
|
-
background: rgba(255, 255, 255, 0.92);
|
|
1410
|
-
color: rgba(0, 0, 0, 0.9);
|
|
1411
|
-
opacity: 0.6;
|
|
1412
|
-
display: flex;
|
|
1413
|
-
align-items: center;
|
|
1414
|
-
justify-content: center;
|
|
1415
|
-
font-size: 18px;
|
|
1416
|
-
font-weight: bold;
|
|
1417
|
-
cursor: pointer;
|
|
1418
|
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
1419
|
-
z-index: 9998;
|
|
1420
|
-
transition: all 0.3s ease;
|
|
1421
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
1422
|
-
}
|
|
1423
|
-
|
|
1424
|
-
.cv-widget-icon:hover {
|
|
1425
|
-
/* Become fully opaque on hover to improve readability */
|
|
1426
|
-
background: rgba(255, 255, 255, 1);
|
|
1427
|
-
color: rgba(0, 0, 0, 1);
|
|
1428
|
-
opacity: 1;
|
|
1429
|
-
}
|
|
1430
|
-
|
|
1431
|
-
/* Top-right: rounded end on left, sticks out leftward on hover */
|
|
1432
|
-
.cv-widget-top-right {
|
|
1433
|
-
top: 20px;
|
|
1434
|
-
right: 0;
|
|
1435
|
-
border-radius: 18px 0 0 18px;
|
|
1436
|
-
padding-left: 8px;
|
|
1437
|
-
justify-content: flex-start;
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
/* Top-left: rounded end on right, sticks out rightward on hover */
|
|
1441
|
-
.cv-widget-top-left {
|
|
1442
|
-
top: 20px;
|
|
1443
|
-
left: 0;
|
|
1444
|
-
border-radius: 0 18px 18px 0;
|
|
1445
|
-
padding-right: 8px;
|
|
1446
|
-
justify-content: flex-end;
|
|
1447
|
-
}
|
|
1448
|
-
|
|
1449
|
-
/* Bottom-right: rounded end on left, sticks out leftward on hover */
|
|
1450
|
-
.cv-widget-bottom-right {
|
|
1451
|
-
bottom: 20px;
|
|
1452
|
-
right: 0;
|
|
1453
|
-
border-radius: 18px 0 0 18px;
|
|
1454
|
-
padding-left: 8px;
|
|
1455
|
-
justify-content: flex-start;
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
/* Bottom-left: rounded end on right, sticks out rightward on hover */
|
|
1459
|
-
.cv-widget-bottom-left {
|
|
1460
|
-
bottom: 20px;
|
|
1461
|
-
left: 0;
|
|
1462
|
-
border-radius: 0 18px 18px 0;
|
|
1463
|
-
padding-right: 8px;
|
|
1464
|
-
justify-content: flex-end;
|
|
1465
|
-
}
|
|
1466
|
-
|
|
1467
|
-
/* Middle-left: rounded end on right, sticks out rightward on hover */
|
|
1468
|
-
.cv-widget-middle-left {
|
|
1469
|
-
top: 50%;
|
|
1470
|
-
left: 0;
|
|
1471
|
-
transform: translateY(-50%);
|
|
1472
|
-
border-radius: 0 18px 18px 0;
|
|
1473
|
-
padding-right: 8px;
|
|
1474
|
-
justify-content: flex-end;
|
|
1475
|
-
}
|
|
1476
|
-
|
|
1477
|
-
/* Middle-right: rounded end on left, sticks out leftward on hover */
|
|
1478
|
-
.cv-widget-middle-right {
|
|
1479
|
-
top: 50%;
|
|
1480
|
-
right: 0;
|
|
1481
|
-
transform: translateY(-50%);
|
|
1482
|
-
border-radius: 18px 0 0 18px;
|
|
1483
|
-
padding-left: 8px;
|
|
1484
|
-
justify-content: flex-start;
|
|
1485
|
-
}
|
|
1486
|
-
|
|
1487
|
-
.cv-widget-top-right,
|
|
1488
|
-
.cv-widget-middle-right,
|
|
1489
|
-
.cv-widget-bottom-right,
|
|
1490
|
-
.cv-widget-top-left,
|
|
1491
|
-
.cv-widget-middle-left,
|
|
1492
|
-
.cv-widget-bottom-left {
|
|
1493
|
-
height: 36px;
|
|
1494
|
-
width: 36px;
|
|
1495
|
-
}
|
|
1496
|
-
|
|
1497
|
-
.cv-widget-middle-right:hover,
|
|
1498
|
-
.cv-widget-top-right:hover,
|
|
1499
|
-
.cv-widget-bottom-right:hover,
|
|
1500
|
-
.cv-widget-top-left:hover,
|
|
1501
|
-
.cv-widget-middle-left:hover,
|
|
1502
|
-
.cv-widget-bottom-left:hover {
|
|
1503
|
-
width: 55px;
|
|
1504
|
-
}
|
|
1505
|
-
|
|
1506
|
-
/* Modal content styles */
|
|
1507
|
-
.cv-widget-section {
|
|
1508
|
-
margin-bottom: 16px;
|
|
1509
|
-
}
|
|
1510
|
-
|
|
1511
|
-
.cv-widget-section:last-child {
|
|
1512
|
-
margin-bottom: 0;
|
|
1513
|
-
}
|
|
1514
|
-
|
|
1515
|
-
.cv-widget-section label {
|
|
1516
|
-
display: block;
|
|
1517
|
-
margin-bottom: 4px;
|
|
1518
|
-
font-weight: 500;
|
|
1519
|
-
color: #555;
|
|
1520
|
-
}
|
|
1521
|
-
|
|
1522
|
-
.cv-widget-profile-select,
|
|
1523
|
-
.cv-widget-state-select {
|
|
1524
|
-
width: 100%;
|
|
1525
|
-
padding: 8px 12px;
|
|
1526
|
-
border: 1px solid #ddd;
|
|
1527
|
-
border-radius: 4px;
|
|
1528
|
-
background: white;
|
|
1529
|
-
font-size: 14px;
|
|
1530
|
-
}
|
|
1531
|
-
|
|
1532
|
-
.cv-widget-profile-select:focus,
|
|
1533
|
-
.cv-widget-state-select:focus {
|
|
1534
|
-
outline: none;
|
|
1535
|
-
border-color: #007bff;
|
|
1536
|
-
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
|
|
1537
|
-
}
|
|
1538
|
-
|
|
1539
|
-
.cv-widget-profile-select:disabled,
|
|
1540
|
-
.cv-widget-state-select:disabled {
|
|
1541
|
-
background: #f8f9fa;
|
|
1542
|
-
color: #6c757d;
|
|
1543
|
-
cursor: not-allowed;
|
|
1544
|
-
}
|
|
1545
|
-
|
|
1546
|
-
.cv-widget-current {
|
|
1547
|
-
margin: 16px 0;
|
|
1548
|
-
padding: 12px;
|
|
1549
|
-
background: #f8f9fa;
|
|
1550
|
-
border-radius: 4px;
|
|
1551
|
-
border-left: 4px solid #007bff;
|
|
1552
|
-
}
|
|
1553
|
-
|
|
1554
|
-
.cv-widget-current label {
|
|
1555
|
-
font-size: 12px;
|
|
1556
|
-
text-transform: uppercase;
|
|
1557
|
-
letter-spacing: 0.5px;
|
|
1558
|
-
color: #666;
|
|
1559
|
-
margin-bottom: 4px;
|
|
1560
|
-
}
|
|
1561
|
-
|
|
1562
|
-
.cv-widget-current-view {
|
|
1563
|
-
font-weight: 500;
|
|
1564
|
-
color: #333;
|
|
1565
|
-
}
|
|
1566
|
-
|
|
1567
|
-
.cv-widget-reset {
|
|
1568
|
-
width: 100%;
|
|
1569
|
-
padding: 8px 16px;
|
|
1570
|
-
background: #dc3545;
|
|
1571
|
-
color: white;
|
|
1572
|
-
border: none;
|
|
1573
|
-
border-radius: 4px;
|
|
1574
|
-
cursor: pointer;
|
|
1575
|
-
font-size: 14px;
|
|
1576
|
-
font-weight: 500;
|
|
1577
|
-
}
|
|
1578
|
-
|
|
1579
|
-
.cv-widget-reset:hover {
|
|
1580
|
-
background: #c82333;
|
|
1581
|
-
}
|
|
1582
|
-
|
|
1583
|
-
.cv-widget-reset:active {
|
|
1584
|
-
background: #bd2130;
|
|
1585
|
-
}
|
|
1586
|
-
|
|
1587
|
-
/* Responsive design for mobile */
|
|
1588
|
-
@media (max-width: 768px) {
|
|
1589
|
-
.cv-widget-top-right,
|
|
1590
|
-
.cv-widget-top-left {
|
|
1591
|
-
top: 10px;
|
|
1592
|
-
}
|
|
1593
|
-
|
|
1594
|
-
.cv-widget-bottom-right,
|
|
1595
|
-
.cv-widget-bottom-left {
|
|
1596
|
-
bottom: 10px;
|
|
1597
|
-
}
|
|
1598
|
-
|
|
1599
|
-
/* All widgets stay flush with screen edges */
|
|
1600
|
-
.cv-widget-top-right,
|
|
1601
|
-
.cv-widget-bottom-right,
|
|
1602
|
-
.cv-widget-middle-right {
|
|
1603
|
-
right: 0;
|
|
1604
|
-
}
|
|
1605
|
-
|
|
1606
|
-
.cv-widget-top-left,
|
|
1607
|
-
.cv-widget-bottom-left,
|
|
1608
|
-
.cv-widget-middle-left {
|
|
1609
|
-
left: 0;
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
|
-
/* Slightly smaller on mobile */
|
|
1613
|
-
.cv-widget-icon {
|
|
1614
|
-
width: 60px;
|
|
1615
|
-
height: 32px;
|
|
1616
|
-
}
|
|
1617
|
-
|
|
1618
|
-
.cv-widget-icon:hover {
|
|
1619
|
-
width: 75px;
|
|
1620
|
-
}
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
|
-
/* Modal styles */
|
|
1624
|
-
.cv-widget-modal-overlay {
|
|
1625
|
-
position: fixed;
|
|
1626
|
-
top: 0;
|
|
1627
|
-
left: 0;
|
|
1628
|
-
right: 0;
|
|
1629
|
-
bottom: 0;
|
|
1630
|
-
background: rgba(0, 0, 0, 0.5);
|
|
1631
|
-
display: flex;
|
|
1632
|
-
align-items: center;
|
|
1633
|
-
justify-content: center;
|
|
1634
|
-
z-index: 10002;
|
|
1635
|
-
animation: fadeIn 0.2s ease;
|
|
1636
|
-
}
|
|
1637
|
-
|
|
1638
|
-
@keyframes fadeIn {
|
|
1639
|
-
from { opacity: 0; }
|
|
1640
|
-
to { opacity: 1; }
|
|
1641
|
-
}
|
|
1642
|
-
|
|
1643
|
-
.cv-widget-modal {
|
|
1644
|
-
background: white;
|
|
1645
|
-
border-radius: 0.75rem;
|
|
1646
|
-
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
|
1647
|
-
max-width: 32rem;
|
|
1648
|
-
width: 90vw;
|
|
1649
|
-
max-height: 80vh;
|
|
1650
|
-
animation: slideIn 0.2s ease;
|
|
1651
|
-
display: flex;
|
|
1652
|
-
flex-direction: column;
|
|
1653
|
-
}
|
|
1654
|
-
|
|
1655
|
-
@keyframes slideIn {
|
|
1656
|
-
from {
|
|
1657
|
-
opacity: 0;
|
|
1658
|
-
transform: scale(0.9) translateY(-20px);
|
|
1659
|
-
}
|
|
1660
|
-
to {
|
|
1661
|
-
opacity: 1;
|
|
1662
|
-
transform: scale(1) translateY(0);
|
|
1663
|
-
}
|
|
1664
|
-
}
|
|
1665
|
-
|
|
1666
|
-
.cv-modal-header {
|
|
1667
|
-
display: flex;
|
|
1668
|
-
align-items: center;
|
|
1669
|
-
justify-content: space-between;
|
|
1670
|
-
padding: 0.5rem 1rem;
|
|
1671
|
-
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
1672
|
-
}
|
|
1673
|
-
|
|
1674
|
-
.cv-modal-header-content {
|
|
1675
|
-
display: flex;
|
|
1676
|
-
align-items: center;
|
|
1677
|
-
gap: 0.75rem;
|
|
1678
|
-
}
|
|
1679
|
-
|
|
1680
|
-
.cv-modal-icon {
|
|
1681
|
-
position: relative;
|
|
1682
|
-
width: 1rem;
|
|
1683
|
-
height: 1rem;
|
|
1684
|
-
display: flex;
|
|
1685
|
-
align-items: center;
|
|
1686
|
-
justify-content: center;
|
|
1687
|
-
border-radius: 9999px;
|
|
1688
|
-
}
|
|
1689
|
-
|
|
1690
|
-
.cv-modal-icon-svg {
|
|
1691
|
-
width: 100%;
|
|
1692
|
-
height: 100%;
|
|
1693
|
-
opacity: 1;
|
|
1694
|
-
}
|
|
1695
|
-
|
|
1696
|
-
.cv-modal-title {
|
|
1697
|
-
font-size: 1.125rem;
|
|
1698
|
-
font-weight: bold;
|
|
1699
|
-
color: rgba(0, 0, 0, 0.9);
|
|
1700
|
-
margin: 0;
|
|
1701
|
-
}
|
|
1702
|
-
|
|
1703
|
-
.cv-modal-close {
|
|
1704
|
-
width: 2rem;
|
|
1705
|
-
height: 2rem;
|
|
1706
|
-
display: flex;
|
|
1707
|
-
align-items: center;
|
|
1708
|
-
justify-content: center;
|
|
1709
|
-
border-radius: 9999px;
|
|
1710
|
-
background: transparent;
|
|
1711
|
-
border: none;
|
|
1712
|
-
color: rgba(0, 0, 0, 0.6);
|
|
1713
|
-
cursor: pointer;
|
|
1714
|
-
transition: all 0.2s ease;
|
|
1715
|
-
}
|
|
1716
|
-
|
|
1717
|
-
.cv-modal-close:hover {
|
|
1718
|
-
background: rgba(62, 132, 244, 0.1);
|
|
1719
|
-
color: #3e84f4;
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
|
-
.cv-modal-close-icon {
|
|
1723
|
-
width: 1.25rem;
|
|
1724
|
-
height: 1.25rem;
|
|
1725
|
-
}
|
|
1726
|
-
|
|
1727
|
-
.cv-modal-main {
|
|
1728
|
-
padding: 1rem;
|
|
1729
|
-
flex: 1;
|
|
1730
|
-
display: flex;
|
|
1731
|
-
flex-direction: column;
|
|
1732
|
-
gap: 1rem;
|
|
1733
|
-
overflow-y: auto;
|
|
1734
|
-
max-height: calc(80vh - 8rem);
|
|
1735
|
-
}
|
|
1736
|
-
|
|
1737
|
-
.cv-modal-description {
|
|
1738
|
-
font-size: 0.875rem;
|
|
1739
|
-
color: rgba(0, 0, 0, 0.8);
|
|
1740
|
-
margin: 0;
|
|
1741
|
-
line-height: 1.4;
|
|
1742
|
-
}
|
|
1743
|
-
|
|
1744
|
-
.cv-content-section,
|
|
1745
|
-
.cv-tab-groups-section {
|
|
1746
|
-
display: flex;
|
|
1747
|
-
flex-direction: column;
|
|
1748
|
-
gap: 0.75rem;
|
|
1749
|
-
}
|
|
1750
|
-
|
|
1751
|
-
.cv-section-heading {
|
|
1752
|
-
font-size: 1rem;
|
|
1753
|
-
font-weight: bold;
|
|
1754
|
-
color: rgba(0, 0, 0, 0.9);
|
|
1755
|
-
margin: 0;
|
|
1756
|
-
}
|
|
1757
|
-
|
|
1758
|
-
.cv-widget-modal-actions {
|
|
1759
|
-
margin-top: 20px;
|
|
1760
|
-
padding-top: 16px;
|
|
1761
|
-
border-top: 1px solid #e9ecef;
|
|
1762
|
-
}
|
|
1763
|
-
|
|
1764
|
-
.cv-widget-restore {
|
|
1765
|
-
width: 100%;
|
|
1766
|
-
padding: 10px 16px;
|
|
1767
|
-
background: #28a745;
|
|
1768
|
-
color: white;
|
|
1769
|
-
border: none;
|
|
1770
|
-
border-radius: 4px;
|
|
1771
|
-
cursor: pointer;
|
|
1772
|
-
font-size: 14px;
|
|
1773
|
-
font-weight: 500;
|
|
1774
|
-
}
|
|
1775
|
-
|
|
1776
|
-
.cv-widget-restore:hover {
|
|
1777
|
-
background: #218838;
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
.cv-widget-create-state {
|
|
1781
|
-
width: 100%;
|
|
1782
|
-
padding: 10px 16px;
|
|
1783
|
-
background: #007bff;
|
|
1784
|
-
color: white;
|
|
1785
|
-
border: none;
|
|
1786
|
-
border-radius: 4px;
|
|
1787
|
-
cursor: pointer;
|
|
1788
|
-
font-size: 14px;
|
|
1789
|
-
font-weight: 500;
|
|
1790
|
-
margin-bottom: 10px;
|
|
1791
|
-
}
|
|
1792
|
-
|
|
1793
|
-
.cv-widget-create-state:hover {
|
|
1794
|
-
background: #0056b3;
|
|
1795
|
-
}
|
|
1796
|
-
|
|
1797
|
-
.cv-widget-theme-dark .cv-widget-modal {
|
|
1798
|
-
background: #101722;
|
|
1799
|
-
color: #e2e8f0;
|
|
1800
|
-
}
|
|
1801
|
-
|
|
1802
|
-
.cv-widget-theme-dark .cv-modal-header {
|
|
1803
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
1804
|
-
}
|
|
1805
|
-
|
|
1806
|
-
.cv-widget-theme-dark .cv-modal-title {
|
|
1807
|
-
color: #e2e8f0;
|
|
1808
|
-
}
|
|
1809
|
-
|
|
1810
|
-
.cv-widget-theme-dark .cv-modal-close {
|
|
1811
|
-
color: rgba(255, 255, 255, 0.6);
|
|
1812
|
-
}
|
|
1813
|
-
|
|
1814
|
-
.cv-widget-theme-dark .cv-modal-close:hover {
|
|
1815
|
-
background: rgba(62, 132, 244, 0.2);
|
|
1816
|
-
color: #3e84f4;
|
|
1817
|
-
}
|
|
1818
|
-
|
|
1819
|
-
.cv-widget-theme-dark .cv-modal-description {
|
|
1820
|
-
color: rgba(255, 255, 255, 0.8);
|
|
1821
|
-
}
|
|
1822
|
-
|
|
1823
|
-
.cv-widget-theme-dark .cv-section-heading {
|
|
1824
|
-
color: #e2e8f0;
|
|
1825
|
-
}
|
|
1826
|
-
|
|
1827
|
-
.cv-widget-theme-dark .cv-toggles-container
|
|
1828
|
-
.cv-widget-theme-dark .cv-tabgroups-container {
|
|
1829
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
|
-
.cv-widget-theme-dark .cv-toggle-card,
|
|
1833
|
-
.cv-widget-theme-dark .cv-tabgroup-card {
|
|
1834
|
-
background: #101722;
|
|
1835
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
1836
|
-
}
|
|
1837
|
-
|
|
1838
|
-
.cv-widget-theme-dark .cv-toggle-title,
|
|
1839
|
-
.cv-widget-theme-dark .cv-tabgroup-title {
|
|
1840
|
-
color: #e2e8f0;
|
|
1841
|
-
}
|
|
1842
|
-
|
|
1843
|
-
.cv-widget-theme-dark .cv-toggle-description,
|
|
1844
|
-
.cv-widget-theme-dark .cv-tabgroup-description {
|
|
1845
|
-
color: rgba(255, 255, 255, 0.6);
|
|
1846
|
-
}
|
|
1847
|
-
|
|
1848
|
-
.cv-widget-theme-dark .cv-toggle-slider {
|
|
1849
|
-
background: rgba(255, 255, 255, 0.2);
|
|
1850
|
-
}
|
|
1851
|
-
|
|
1852
|
-
.cv-widget-theme-dark .cv-tab-group-description {
|
|
1853
|
-
color: rgba(255, 255, 255, 0.8);
|
|
1854
|
-
}
|
|
1855
|
-
|
|
1856
|
-
.cv-widget-theme-dark .cv-tabgroup-select {
|
|
1857
|
-
background: #101722;
|
|
1858
|
-
border-color: rgba(255, 255, 255, 0.2);
|
|
1859
|
-
color: #e2e8f0;
|
|
1860
|
-
}
|
|
1861
|
-
|
|
1862
|
-
.cv-widget-theme-dark .cv-modal-footer {
|
|
1863
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
1864
|
-
background: #101722;
|
|
1865
|
-
}
|
|
1866
|
-
|
|
1867
|
-
.cv-widget-theme-dark .cv-reset-btn {
|
|
1868
|
-
color: #e2e8f0;
|
|
1869
|
-
background: rgba(255, 255, 255, 0.1);
|
|
1870
|
-
}
|
|
1871
|
-
|
|
1872
|
-
.cv-widget-theme-dark .cv-reset-btn:hover {
|
|
1873
|
-
background: rgba(255, 255, 255, 0.2);
|
|
1874
|
-
}
|
|
1875
|
-
|
|
1876
|
-
/* Custom state creator styles */
|
|
1877
|
-
.cv-custom-state-modal {
|
|
1878
|
-
max-width: 500px;
|
|
1879
|
-
}
|
|
1880
|
-
|
|
1881
|
-
.cv-custom-state-form .cv-section-header {
|
|
1882
|
-
font-size: 16px;
|
|
1883
|
-
font-weight: 600;
|
|
1884
|
-
color: #333;
|
|
1885
|
-
border-bottom: 1px solid #e9ecef;
|
|
1886
|
-
padding-bottom: 5px;
|
|
1887
|
-
}
|
|
1888
|
-
|
|
1889
|
-
.cv-custom-state-form p {
|
|
1890
|
-
font-size: 15px;
|
|
1891
|
-
line-height: 1.6;
|
|
1892
|
-
color: #555;
|
|
1893
|
-
margin-bottom: 24px;
|
|
1894
|
-
text-align: justify;
|
|
1895
|
-
}
|
|
1896
|
-
|
|
1897
|
-
.cv-custom-state-section {
|
|
1898
|
-
margin-bottom: 16px;
|
|
1899
|
-
}
|
|
1900
|
-
|
|
1901
|
-
.cv-custom-state-section label {
|
|
1902
|
-
display: block;
|
|
1903
|
-
margin-bottom: 4px;
|
|
1904
|
-
font-weight: 500;
|
|
1905
|
-
color: #555;
|
|
1906
|
-
}
|
|
1907
|
-
|
|
1908
|
-
.cv-custom-state-input {
|
|
1909
|
-
width: 100%;
|
|
1910
|
-
padding: 8px 12px;
|
|
1911
|
-
border: 1px solid #ddd;
|
|
1912
|
-
border-radius: 4px;
|
|
1913
|
-
background: white;
|
|
1914
|
-
font-size: 14px;
|
|
1915
|
-
}
|
|
1916
|
-
|
|
1917
|
-
.cv-custom-state-input:focus {
|
|
1918
|
-
outline: none;
|
|
1919
|
-
border-color: #007bff;
|
|
1920
|
-
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
|
|
1921
|
-
}
|
|
1922
|
-
|
|
1923
|
-
/* Toggles Container */
|
|
1924
|
-
.cv-toggles-container {
|
|
1925
|
-
display: flex;
|
|
1926
|
-
flex-direction: column;
|
|
1927
|
-
gap: 0.5rem;
|
|
1928
|
-
border-radius: 0.5rem;
|
|
1929
|
-
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
1930
|
-
overflow: hidden;
|
|
1931
|
-
}
|
|
1932
|
-
|
|
1933
|
-
.cv-toggle-card,
|
|
1934
|
-
.cv-tabgroup-card {
|
|
1935
|
-
background: white;
|
|
1936
|
-
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
1937
|
-
}
|
|
1938
|
-
|
|
1939
|
-
.cv-toggle-card:last-child {
|
|
1940
|
-
border-bottom: none;
|
|
1941
|
-
}
|
|
1942
|
-
|
|
1943
|
-
.cv-toggle-content {
|
|
1944
|
-
display: flex;
|
|
1945
|
-
align-items: center;
|
|
1946
|
-
justify-content: space-between;
|
|
1947
|
-
padding: 0.75rem;
|
|
1948
|
-
}
|
|
1949
|
-
|
|
1950
|
-
.cv-toggle-title {
|
|
1951
|
-
font-weight: 500;
|
|
1952
|
-
font-size: 0.875rem;
|
|
1953
|
-
color: rgba(0, 0, 0, 0.9);
|
|
1954
|
-
margin: 0 0 0.125rem 0;
|
|
1955
|
-
}
|
|
1956
|
-
|
|
1957
|
-
.cv-toggle-description {
|
|
1958
|
-
font-size: 0.75rem;
|
|
1959
|
-
color: rgba(0, 0, 0, 0.6);
|
|
1960
|
-
margin: 0;
|
|
1961
|
-
}
|
|
1962
|
-
|
|
1963
|
-
.cv-toggle-label{
|
|
1964
|
-
position: relative;
|
|
1965
|
-
display: inline-block;
|
|
1966
|
-
width: 2.75rem;
|
|
1967
|
-
height: 1.5rem;
|
|
1968
|
-
cursor: pointer;
|
|
1969
|
-
}
|
|
1970
|
-
|
|
1971
|
-
.cv-toggle-input {
|
|
1972
|
-
opacity: 0;
|
|
1973
|
-
width: 0;
|
|
1974
|
-
height: 0;
|
|
1975
|
-
}
|
|
1976
|
-
|
|
1977
|
-
.cv-toggle-slider {
|
|
1978
|
-
position: absolute;
|
|
1979
|
-
top: 0;
|
|
1980
|
-
left: 0;
|
|
1981
|
-
right: 0;
|
|
1982
|
-
bottom: 0;
|
|
1983
|
-
background: rgba(0, 0, 0, 0.2);
|
|
1984
|
-
border-radius: 9999px;
|
|
1985
|
-
transition: background-color 0.2s ease;
|
|
1986
|
-
}
|
|
1987
|
-
|
|
1988
|
-
.cv-toggle-slider:before {
|
|
1989
|
-
position: absolute;
|
|
1990
|
-
content: "";
|
|
1991
|
-
height: 1rem;
|
|
1992
|
-
width: 1rem;
|
|
1993
|
-
left: 0.25rem;
|
|
1994
|
-
bottom: 0.25rem;
|
|
1995
|
-
background: white;
|
|
1996
|
-
border-radius: 50%;
|
|
1997
|
-
transition: transform 0.2s ease;
|
|
1998
|
-
}
|
|
1999
|
-
|
|
2000
|
-
.cv-toggle-input:checked + .cv-toggle-slider {
|
|
2001
|
-
background: #3e84f4;
|
|
2002
|
-
}
|
|
2003
|
-
|
|
2004
|
-
.cv-toggle-input:checked + .cv-toggle-slider:before {
|
|
2005
|
-
transform: translateX(1.25rem);
|
|
2006
|
-
}
|
|
2007
|
-
|
|
2008
|
-
/* Dark theme toggle switch styles */
|
|
2009
|
-
.cv-widget-theme-dark .cv-toggle-switch {
|
|
2010
|
-
background: #4a5568;
|
|
2011
|
-
}
|
|
2012
|
-
|
|
2013
|
-
.cv-widget-theme-dark .cv-toggle-switch:hover {
|
|
2014
|
-
background: #5a6578;
|
|
2015
|
-
}
|
|
2016
|
-
|
|
2017
|
-
.cv-widget-theme-dark .cv-toggle-switch.cv-toggle-active {
|
|
2018
|
-
background: #63b3ed;
|
|
2019
|
-
}
|
|
2020
|
-
|
|
2021
|
-
.cv-widget-theme-dark .cv-toggle-switch.cv-toggle-active:hover {
|
|
2022
|
-
background: #4299e1;
|
|
2023
|
-
}
|
|
2024
|
-
|
|
2025
|
-
/* Tab Groups Container */
|
|
2026
|
-
.cv-tab-groups-list {
|
|
2027
|
-
display: flex;
|
|
2028
|
-
flex-direction: column;
|
|
2029
|
-
gap: 1px;
|
|
2030
|
-
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
2031
|
-
border-radius: 0.5rem;
|
|
2032
|
-
overflow: hidden;
|
|
2033
|
-
}
|
|
2034
|
-
|
|
2035
|
-
/* Tab Group Card - Header (Navigation Headers toggle) */
|
|
2036
|
-
.cv-tabgroup-card.cv-tabgroup-header {
|
|
2037
|
-
display: flex;
|
|
2038
|
-
align-items: center;
|
|
2039
|
-
justify-content: space-between;
|
|
2040
|
-
padding: 0.75rem;
|
|
2041
|
-
border-bottom: 0px;
|
|
2042
|
-
}
|
|
2043
|
-
|
|
2044
|
-
.cv-tabgroup-card.cv-tabgroup-header .cv-tabgroup-row {
|
|
2045
|
-
display: flex;
|
|
2046
|
-
align-items: center;
|
|
2047
|
-
justify-content: space-between;
|
|
2048
|
-
width: 100%;
|
|
2049
|
-
gap: 1rem;
|
|
2050
|
-
}
|
|
2051
|
-
|
|
2052
|
-
/* Tab Group Card - Items */
|
|
2053
|
-
.cv-tabgroup-card.cv-tabgroup-item {
|
|
2054
|
-
display: flex;
|
|
2055
|
-
flex-direction: column;
|
|
2056
|
-
gap: 0.5rem;
|
|
2057
|
-
padding: 0.75rem;
|
|
2058
|
-
background: white;
|
|
2059
|
-
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
|
2060
|
-
}
|
|
2061
|
-
|
|
2062
|
-
.cv-tabgroup-card.cv-tabgroup-item:last-child {
|
|
2063
|
-
border-bottom: none;
|
|
2064
|
-
}
|
|
2065
|
-
|
|
2066
|
-
/* Tab Group Info */
|
|
2067
|
-
.cv-tabgroup-info {
|
|
2068
|
-
flex: 1;
|
|
2069
|
-
}
|
|
2070
|
-
|
|
2071
|
-
.cv-tabgroup-title {
|
|
2072
|
-
font-weight: 500;
|
|
2073
|
-
font-size: 0.875rem;
|
|
2074
|
-
color: rgba(0, 0, 0, 0.9);
|
|
2075
|
-
margin: 0 0 0.25rem 0;
|
|
2076
|
-
}
|
|
2077
|
-
|
|
2078
|
-
.cv-tabgroup-description {
|
|
2079
|
-
font-size: 0.75rem;
|
|
2080
|
-
color: rgba(0, 0, 0, 0.6);
|
|
2081
|
-
margin: 0;
|
|
2082
|
-
line-height: 1.3;
|
|
2083
|
-
}
|
|
2084
|
-
|
|
2085
|
-
/* Tab Group Label (for select dropdowns) */
|
|
2086
|
-
.cv-tabgroup-label {
|
|
2087
|
-
font-size: 0.875rem;
|
|
2088
|
-
color: rgba(0, 0, 0, 0.8);
|
|
2089
|
-
margin: 0;
|
|
2090
|
-
line-height: 1.4;
|
|
2091
|
-
font-weight: 500;
|
|
2092
|
-
display: block;
|
|
2093
|
-
cursor: pointer;
|
|
2094
|
-
}
|
|
2095
|
-
|
|
2096
|
-
/* Tab Group Select */
|
|
2097
|
-
.cv-tabgroup-select {
|
|
2098
|
-
width: 100%;
|
|
2099
|
-
border-radius: 0.5rem;
|
|
2100
|
-
background: white;
|
|
2101
|
-
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
2102
|
-
color: rgba(0, 0, 0, 0.9);
|
|
2103
|
-
padding: 0.5rem 0.75rem;
|
|
2104
|
-
font-size: 0.875rem;
|
|
2105
|
-
cursor: pointer;
|
|
2106
|
-
transition: all 0.15s ease;
|
|
2107
|
-
font-family: inherit;
|
|
2108
|
-
}
|
|
2109
|
-
|
|
2110
|
-
.cv-tabgroup-select:hover {
|
|
2111
|
-
border-color: rgba(0, 0, 0, 0.25);
|
|
2112
|
-
}
|
|
2113
|
-
|
|
2114
|
-
.cv-tabgroup-select:focus {
|
|
2115
|
-
outline: none;
|
|
2116
|
-
border-color: #3e84f4;
|
|
2117
|
-
box-shadow: 0 0 0 2px rgba(62, 132, 244, 0.2);
|
|
2118
|
-
}
|
|
2119
|
-
|
|
2120
|
-
/* Modern Toggle Switch */
|
|
2121
|
-
.cv-toggle-switch {
|
|
2122
|
-
position: relative;
|
|
2123
|
-
display: inline-flex;
|
|
2124
|
-
align-items: center;
|
|
2125
|
-
width: 44px;
|
|
2126
|
-
height: 24px;
|
|
2127
|
-
background: rgba(0, 0, 0, 0.1);
|
|
2128
|
-
border-radius: 9999px;
|
|
2129
|
-
padding: 2px;
|
|
2130
|
-
box-sizing: border-box;
|
|
2131
|
-
cursor: pointer;
|
|
2132
|
-
transition: background-color 0.2s ease;
|
|
2133
|
-
border: none;
|
|
2134
|
-
}
|
|
2135
|
-
|
|
2136
|
-
.cv-toggle-switch input {
|
|
2137
|
-
display: none;
|
|
2138
|
-
}
|
|
2139
|
-
|
|
2140
|
-
.cv-toggle-switch .cv-switch-bg {
|
|
2141
|
-
position: absolute;
|
|
2142
|
-
inset: 0;
|
|
2143
|
-
border-radius: 9999px;
|
|
2144
|
-
background: rgba(0, 0, 0, 0.1);
|
|
2145
|
-
transition: background-color 0.2s ease;
|
|
2146
|
-
pointer-events: none;
|
|
2147
|
-
}
|
|
2148
|
-
|
|
2149
|
-
.cv-toggle-switch .cv-switch-knob {
|
|
2150
|
-
position: relative;
|
|
2151
|
-
width: 20px;
|
|
2152
|
-
height: 20px;
|
|
2153
|
-
background: white;
|
|
2154
|
-
border-radius: 50%;
|
|
2155
|
-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
|
|
2156
|
-
transition: transform 0.2s ease;
|
|
2157
|
-
z-index: 1;
|
|
2158
|
-
}
|
|
2159
|
-
|
|
2160
|
-
.cv-toggle-switch input:checked + .cv-switch-bg {
|
|
2161
|
-
background: #3e84f4;
|
|
2162
|
-
}
|
|
2163
|
-
|
|
2164
|
-
.cv-toggle-switch input:checked ~ .cv-switch-knob {
|
|
2165
|
-
transform: translateX(20px);
|
|
2166
|
-
}
|
|
2167
|
-
|
|
2168
|
-
/* Dark Theme - Tab Groups */
|
|
2169
|
-
.cv-widget-theme-dark .cv-tabgroup-card.cv-tabgroup-header {
|
|
2170
|
-
background: #101722;
|
|
2171
|
-
border-bottom-color: rgba(255, 255, 255, 0.1);
|
|
2172
|
-
}
|
|
2173
|
-
|
|
2174
|
-
.cv-widget-theme-dark .cv-tabgroup-card.cv-tabgroup-item {
|
|
2175
|
-
background: #101722;
|
|
2176
|
-
border-bottom-color: rgba(255, 255, 255, 0.05);
|
|
2177
|
-
}
|
|
2178
|
-
|
|
2179
|
-
.cv-widget-theme-dark .cv-tabgroup-title {
|
|
2180
|
-
color: #e2e8f0;
|
|
2181
|
-
}
|
|
2182
|
-
|
|
2183
|
-
.cv-widget-theme-dark .cv-tabgroup-description {
|
|
2184
|
-
color: rgba(255, 255, 255, 0.6);
|
|
2185
|
-
}
|
|
2186
|
-
|
|
2187
|
-
.cv-widget-theme-dark .cv-tabgroup-label {
|
|
2188
|
-
color: rgba(255, 255, 255, 0.8);
|
|
2189
|
-
}
|
|
2190
|
-
|
|
2191
|
-
.cv-widget-theme-dark .cv-tab-groups-list {
|
|
2192
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
2193
|
-
}
|
|
2194
|
-
|
|
2195
|
-
.cv-widget-theme-dark .cv-tabgroup-select {
|
|
2196
|
-
background: #101722;
|
|
2197
|
-
border-color: rgba(255, 255, 255, 0.15);
|
|
2198
|
-
color: #e2e8f0;
|
|
2199
|
-
}
|
|
2200
|
-
|
|
2201
|
-
.cv-widget-theme-dark .cv-tabgroup-select:hover {
|
|
2202
|
-
border-color: rgba(255, 255, 255, 0.25);
|
|
2203
|
-
}
|
|
2204
|
-
|
|
2205
|
-
.cv-widget-theme-dark .cv-tabgroup-select:focus {
|
|
2206
|
-
border-color: #60a5fa;
|
|
2207
|
-
box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
|
|
2208
|
-
}
|
|
2209
|
-
|
|
2210
|
-
/* Dark Theme - Toggle Switch */
|
|
2211
|
-
.cv-widget-theme-dark .cv-toggle-switch .cv-switch-bg {
|
|
2212
|
-
background: rgba(255, 255, 255, 0.1);
|
|
2213
|
-
}
|
|
2214
|
-
|
|
2215
|
-
.cv-widget-theme-dark .cv-toggle-switch .cv-switch-knob {
|
|
2216
|
-
background: #e2e8f0;
|
|
2217
|
-
}
|
|
2218
|
-
|
|
2219
|
-
.cv-widget-theme-dark .cv-toggle-switch input:checked + .cv-switch-bg {
|
|
2220
|
-
background: #63b3ed;
|
|
2221
|
-
}
|
|
2222
|
-
|
|
2223
|
-
.cv-modal-footer {
|
|
2224
|
-
display: flex;
|
|
2225
|
-
justify-content: space-between;
|
|
2226
|
-
align-items: center;
|
|
2227
|
-
padding: 0.75rem;
|
|
2228
|
-
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
|
2229
|
-
}
|
|
2230
|
-
|
|
2231
|
-
.cv-reset-btn,
|
|
2232
|
-
.cv-share-btn {
|
|
2233
|
-
display: flex;
|
|
2234
|
-
align-items: center;
|
|
2235
|
-
gap: 0.5rem;
|
|
2236
|
-
padding: 0.375rem 0.75rem;
|
|
2237
|
-
border-radius: 0.5rem;
|
|
2238
|
-
font-weight: 600;
|
|
2239
|
-
font-size: 0.875rem;
|
|
2240
|
-
cursor: pointer;
|
|
2241
|
-
transition: all 0.2s ease;
|
|
2242
|
-
border: none;
|
|
2243
|
-
}
|
|
2244
|
-
|
|
2245
|
-
.cv-reset-btn {
|
|
2246
|
-
color: rgba(0, 0, 0, 0.9);
|
|
2247
|
-
background: rgba(0, 0, 0, 0.1);
|
|
2248
|
-
}
|
|
2249
|
-
|
|
2250
|
-
.cv-reset-btn:hover {
|
|
2251
|
-
background: rgba(0, 0, 0, 0.2);
|
|
2252
|
-
}
|
|
2253
|
-
|
|
2254
|
-
.cv-share-btn {
|
|
2255
|
-
color: white;
|
|
2256
|
-
background: #3e84f4;
|
|
2257
|
-
}
|
|
2258
|
-
|
|
2259
|
-
.cv-share-btn:hover {
|
|
2260
|
-
background: rgba(62, 132, 244, 0.9);
|
|
2261
|
-
}
|
|
2262
|
-
|
|
2263
|
-
.cv-btn-icon {
|
|
2264
|
-
width: 1rem;
|
|
2265
|
-
height: 1rem;
|
|
2266
|
-
}
|
|
2267
|
-
|
|
2268
|
-
/* Dark theme custom state styles */
|
|
2269
|
-
/* Welcome modal styles */
|
|
2270
|
-
.cv-welcome-modal {
|
|
2271
|
-
max-width: 32rem;
|
|
2272
|
-
width: 90vw;
|
|
2273
|
-
background: white;
|
|
2274
|
-
border-radius: 0.75rem;
|
|
2275
|
-
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
|
2276
|
-
animation: slideIn 0.2s ease;
|
|
2277
|
-
display: flex;
|
|
2278
|
-
flex-direction: column;
|
|
2279
|
-
}
|
|
2280
|
-
|
|
2281
|
-
.cv-modal-main {
|
|
2282
|
-
padding: 1rem;
|
|
2283
|
-
flex: 1;
|
|
2284
|
-
display: flex;
|
|
2285
|
-
flex-direction: column;
|
|
2286
|
-
gap: 1rem;
|
|
2287
|
-
overflow-y: auto;
|
|
2288
|
-
max-height: calc(80vh - 8rem);
|
|
2289
|
-
}
|
|
2290
|
-
|
|
2291
|
-
.cv-welcome-message {
|
|
2292
|
-
font-size: 0.875rem;
|
|
2293
|
-
color: rgba(0, 0, 0, 0.8);
|
|
2294
|
-
margin: 0;
|
|
2295
|
-
line-height: 1.4;
|
|
2296
|
-
text-align: center;
|
|
2297
|
-
}
|
|
2298
|
-
|
|
2299
|
-
.cv-welcome-message a {
|
|
2300
|
-
color: #3e84f4;
|
|
2301
|
-
text-align: justify;
|
|
2302
|
-
text-decoration: none;
|
|
2303
|
-
}
|
|
2304
|
-
|
|
2305
|
-
.cv-welcome-message a:hover {
|
|
2306
|
-
text-decoration: underline;
|
|
2307
|
-
}
|
|
2308
|
-
|
|
2309
|
-
.cv-welcome-widget-preview {
|
|
2310
|
-
display: flex;
|
|
2311
|
-
align-items: center;
|
|
2312
|
-
justify-content: center;
|
|
2313
|
-
gap: 1rem;
|
|
2314
|
-
padding: 1rem;
|
|
2315
|
-
background: #f8f9fa;
|
|
2316
|
-
border-radius: 0.5rem;
|
|
2317
|
-
margin: 1rem 0;
|
|
2318
|
-
}
|
|
2319
|
-
|
|
2320
|
-
.cv-welcome-widget-icon {
|
|
2321
|
-
width: 2rem;
|
|
2322
|
-
height: 2rem;
|
|
2323
|
-
background: rgba(62, 132, 244, 0.1);
|
|
2324
|
-
border-radius: 9999px;
|
|
2325
|
-
display: flex;
|
|
2326
|
-
align-items: center;
|
|
2327
|
-
justify-content: center;
|
|
2328
|
-
animation: cv-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
2329
|
-
color: #3e84f4;
|
|
2330
|
-
}
|
|
2331
|
-
|
|
2332
|
-
.cv-welcome-widget-label {
|
|
2333
|
-
font-size: 0.875rem;
|
|
2334
|
-
font-weight: 500;
|
|
2335
|
-
color: rgba(0, 0, 0, 0.8);
|
|
2336
|
-
margin: 0;
|
|
2337
|
-
}
|
|
2338
|
-
|
|
2339
|
-
.cv-welcome-got-it {
|
|
2340
|
-
width: 100%;
|
|
2341
|
-
background: #3e84f4;
|
|
2342
|
-
color: white;
|
|
2343
|
-
font-weight: 600;
|
|
2344
|
-
padding: 0.75rem 1rem;
|
|
2345
|
-
border-radius: 0.5rem;
|
|
2346
|
-
border: none;
|
|
2347
|
-
cursor: pointer;
|
|
2348
|
-
font-size: 0.875rem;
|
|
2349
|
-
transition: background-color 0.2s ease;
|
|
2350
|
-
outline: none;
|
|
2351
|
-
}
|
|
2352
|
-
|
|
2353
|
-
.cv-welcome-got-it:hover {
|
|
2354
|
-
background: rgba(62, 132, 244, 0.9);
|
|
2355
|
-
}
|
|
2356
|
-
|
|
2357
|
-
.cv-welcome-got-it:focus {
|
|
2358
|
-
box-shadow: 0 0 0 2px rgba(62, 132, 244, 0.5);
|
|
2359
|
-
}
|
|
2360
|
-
|
|
2361
|
-
/* Animations */
|
|
2362
|
-
@keyframes cv-pulse {
|
|
2363
|
-
0%, 100% {
|
|
2364
|
-
opacity: 1;
|
|
2365
|
-
}
|
|
2366
|
-
50% {
|
|
2367
|
-
opacity: 0.5;
|
|
2368
|
-
}
|
|
2369
|
-
}
|
|
2370
|
-
|
|
2371
|
-
/* Dark theme welcome modal styles */
|
|
2372
|
-
.cv-widget-theme-dark .cv-welcome-modal {
|
|
2373
|
-
background: #101722;
|
|
2374
|
-
}
|
|
2375
|
-
|
|
2376
|
-
.cv-widget-theme-dark .cv-welcome-message {
|
|
2377
|
-
color: rgba(255, 255, 255, 0.8);
|
|
2378
|
-
}
|
|
2379
|
-
|
|
2380
|
-
.cv-widget-theme-dark .cv-welcome-message a {
|
|
2381
|
-
color: #60a5fa;
|
|
2382
|
-
}
|
|
2383
|
-
|
|
2384
|
-
.cv-widget-theme-dark .cv-welcome-widget-preview {
|
|
2385
|
-
background: rgba(255, 255, 255, 0.1);
|
|
2386
|
-
}
|
|
2387
|
-
|
|
2388
|
-
.cv-widget-theme-dark .cv-welcome-widget-label {
|
|
2389
|
-
color: #e2e8f0;
|
|
2390
|
-
}
|
|
1390
|
+
const WIDGET_STYLES = `
|
|
1391
|
+
/* Rounded rectangle widget icon styles */
|
|
1392
|
+
.cv-widget-icon {
|
|
1393
|
+
position: fixed;
|
|
1394
|
+
/* Slightly transparent by default so the widget is subtle at the page edge */
|
|
1395
|
+
background: rgba(255, 255, 255, 0.92);
|
|
1396
|
+
color: rgba(0, 0, 0, 0.9);
|
|
1397
|
+
opacity: 0.6;
|
|
1398
|
+
display: flex;
|
|
1399
|
+
align-items: center;
|
|
1400
|
+
justify-content: center;
|
|
1401
|
+
font-size: 18px;
|
|
1402
|
+
font-weight: bold;
|
|
1403
|
+
cursor: pointer;
|
|
1404
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
1405
|
+
z-index: 9998;
|
|
1406
|
+
transition: all 0.3s ease;
|
|
1407
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
.cv-widget-icon:hover {
|
|
1411
|
+
/* Become fully opaque on hover to improve readability */
|
|
1412
|
+
background: rgba(255, 255, 255, 1);
|
|
1413
|
+
color: rgba(0, 0, 0, 1);
|
|
1414
|
+
opacity: 1;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
/* Top-right: rounded end on left, sticks out leftward on hover */
|
|
1418
|
+
.cv-widget-top-right {
|
|
1419
|
+
top: 20px;
|
|
1420
|
+
right: 0;
|
|
1421
|
+
border-radius: 18px 0 0 18px;
|
|
1422
|
+
padding-left: 8px;
|
|
1423
|
+
justify-content: flex-start;
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
/* Top-left: rounded end on right, sticks out rightward on hover */
|
|
1427
|
+
.cv-widget-top-left {
|
|
1428
|
+
top: 20px;
|
|
1429
|
+
left: 0;
|
|
1430
|
+
border-radius: 0 18px 18px 0;
|
|
1431
|
+
padding-right: 8px;
|
|
1432
|
+
justify-content: flex-end;
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
/* Bottom-right: rounded end on left, sticks out leftward on hover */
|
|
1436
|
+
.cv-widget-bottom-right {
|
|
1437
|
+
bottom: 20px;
|
|
1438
|
+
right: 0;
|
|
1439
|
+
border-radius: 18px 0 0 18px;
|
|
1440
|
+
padding-left: 8px;
|
|
1441
|
+
justify-content: flex-start;
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
/* Bottom-left: rounded end on right, sticks out rightward on hover */
|
|
1445
|
+
.cv-widget-bottom-left {
|
|
1446
|
+
bottom: 20px;
|
|
1447
|
+
left: 0;
|
|
1448
|
+
border-radius: 0 18px 18px 0;
|
|
1449
|
+
padding-right: 8px;
|
|
1450
|
+
justify-content: flex-end;
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
/* Middle-left: rounded end on right, sticks out rightward on hover */
|
|
1454
|
+
.cv-widget-middle-left {
|
|
1455
|
+
top: 50%;
|
|
1456
|
+
left: 0;
|
|
1457
|
+
transform: translateY(-50%);
|
|
1458
|
+
border-radius: 0 18px 18px 0;
|
|
1459
|
+
padding-right: 8px;
|
|
1460
|
+
justify-content: flex-end;
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
/* Middle-right: rounded end on left, sticks out leftward on hover */
|
|
1464
|
+
.cv-widget-middle-right {
|
|
1465
|
+
top: 50%;
|
|
1466
|
+
right: 0;
|
|
1467
|
+
transform: translateY(-50%);
|
|
1468
|
+
border-radius: 18px 0 0 18px;
|
|
1469
|
+
padding-left: 8px;
|
|
1470
|
+
justify-content: flex-start;
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
.cv-widget-top-right,
|
|
1474
|
+
.cv-widget-middle-right,
|
|
1475
|
+
.cv-widget-bottom-right,
|
|
1476
|
+
.cv-widget-top-left,
|
|
1477
|
+
.cv-widget-middle-left,
|
|
1478
|
+
.cv-widget-bottom-left {
|
|
1479
|
+
height: 36px;
|
|
1480
|
+
width: 36px;
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
.cv-widget-middle-right:hover,
|
|
1484
|
+
.cv-widget-top-right:hover,
|
|
1485
|
+
.cv-widget-bottom-right:hover,
|
|
1486
|
+
.cv-widget-top-left:hover,
|
|
1487
|
+
.cv-widget-middle-left:hover,
|
|
1488
|
+
.cv-widget-bottom-left:hover {
|
|
1489
|
+
width: 55px;
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
/* Modal content styles */
|
|
1493
|
+
.cv-widget-section {
|
|
1494
|
+
margin-bottom: 16px;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
.cv-widget-section:last-child {
|
|
1498
|
+
margin-bottom: 0;
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
.cv-widget-section label {
|
|
1502
|
+
display: block;
|
|
1503
|
+
margin-bottom: 4px;
|
|
1504
|
+
font-weight: 500;
|
|
1505
|
+
color: #555;
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
.cv-widget-profile-select,
|
|
1509
|
+
.cv-widget-state-select {
|
|
1510
|
+
width: 100%;
|
|
1511
|
+
padding: 8px 12px;
|
|
1512
|
+
border: 1px solid #ddd;
|
|
1513
|
+
border-radius: 4px;
|
|
1514
|
+
background: white;
|
|
1515
|
+
font-size: 14px;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
.cv-widget-profile-select:focus,
|
|
1519
|
+
.cv-widget-state-select:focus {
|
|
1520
|
+
outline: none;
|
|
1521
|
+
border-color: #007bff;
|
|
1522
|
+
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
.cv-widget-profile-select:disabled,
|
|
1526
|
+
.cv-widget-state-select:disabled {
|
|
1527
|
+
background: #f8f9fa;
|
|
1528
|
+
color: #6c757d;
|
|
1529
|
+
cursor: not-allowed;
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
.cv-widget-current {
|
|
1533
|
+
margin: 16px 0;
|
|
1534
|
+
padding: 12px;
|
|
1535
|
+
background: #f8f9fa;
|
|
1536
|
+
border-radius: 4px;
|
|
1537
|
+
border-left: 4px solid #007bff;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
.cv-widget-current label {
|
|
1541
|
+
font-size: 12px;
|
|
1542
|
+
text-transform: uppercase;
|
|
1543
|
+
letter-spacing: 0.5px;
|
|
1544
|
+
color: #666;
|
|
1545
|
+
margin-bottom: 4px;
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
.cv-widget-current-view {
|
|
1549
|
+
font-weight: 500;
|
|
1550
|
+
color: #333;
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
.cv-widget-reset {
|
|
1554
|
+
width: 100%;
|
|
1555
|
+
padding: 8px 16px;
|
|
1556
|
+
background: #dc3545;
|
|
1557
|
+
color: white;
|
|
1558
|
+
border: none;
|
|
1559
|
+
border-radius: 4px;
|
|
1560
|
+
cursor: pointer;
|
|
1561
|
+
font-size: 14px;
|
|
1562
|
+
font-weight: 500;
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
.cv-widget-reset:hover {
|
|
1566
|
+
background: #c82333;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
.cv-widget-reset:active {
|
|
1570
|
+
background: #bd2130;
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
/* Responsive design for mobile */
|
|
1574
|
+
@media (max-width: 768px) {
|
|
1575
|
+
.cv-widget-top-right,
|
|
1576
|
+
.cv-widget-top-left {
|
|
1577
|
+
top: 10px;
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
.cv-widget-bottom-right,
|
|
1581
|
+
.cv-widget-bottom-left {
|
|
1582
|
+
bottom: 10px;
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
/* All widgets stay flush with screen edges */
|
|
1586
|
+
.cv-widget-top-right,
|
|
1587
|
+
.cv-widget-bottom-right,
|
|
1588
|
+
.cv-widget-middle-right {
|
|
1589
|
+
right: 0;
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
.cv-widget-top-left,
|
|
1593
|
+
.cv-widget-bottom-left,
|
|
1594
|
+
.cv-widget-middle-left {
|
|
1595
|
+
left: 0;
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
/* Slightly smaller on mobile */
|
|
1599
|
+
.cv-widget-icon {
|
|
1600
|
+
width: 60px;
|
|
1601
|
+
height: 32px;
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
.cv-widget-icon:hover {
|
|
1605
|
+
width: 75px;
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
/* Modal styles */
|
|
1610
|
+
.cv-widget-modal-overlay {
|
|
1611
|
+
position: fixed;
|
|
1612
|
+
top: 0;
|
|
1613
|
+
left: 0;
|
|
1614
|
+
right: 0;
|
|
1615
|
+
bottom: 0;
|
|
1616
|
+
background: rgba(0, 0, 0, 0.5);
|
|
1617
|
+
display: flex;
|
|
1618
|
+
align-items: center;
|
|
1619
|
+
justify-content: center;
|
|
1620
|
+
z-index: 10002;
|
|
1621
|
+
animation: fadeIn 0.2s ease;
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
@keyframes fadeIn {
|
|
1625
|
+
from { opacity: 0; }
|
|
1626
|
+
to { opacity: 1; }
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
.cv-widget-modal {
|
|
1630
|
+
background: white;
|
|
1631
|
+
border-radius: 0.75rem;
|
|
1632
|
+
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
|
1633
|
+
max-width: 32rem;
|
|
1634
|
+
width: 90vw;
|
|
1635
|
+
max-height: 80vh;
|
|
1636
|
+
animation: slideIn 0.2s ease;
|
|
1637
|
+
display: flex;
|
|
1638
|
+
flex-direction: column;
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
@keyframes slideIn {
|
|
1642
|
+
from {
|
|
1643
|
+
opacity: 0;
|
|
1644
|
+
transform: scale(0.9) translateY(-20px);
|
|
1645
|
+
}
|
|
1646
|
+
to {
|
|
1647
|
+
opacity: 1;
|
|
1648
|
+
transform: scale(1) translateY(0);
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
.cv-modal-header {
|
|
1653
|
+
display: flex;
|
|
1654
|
+
align-items: center;
|
|
1655
|
+
justify-content: space-between;
|
|
1656
|
+
padding: 0.5rem 1rem;
|
|
1657
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
.cv-modal-header-content {
|
|
1661
|
+
display: flex;
|
|
1662
|
+
align-items: center;
|
|
1663
|
+
gap: 0.75rem;
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
.cv-modal-icon {
|
|
1667
|
+
position: relative;
|
|
1668
|
+
width: 1rem;
|
|
1669
|
+
height: 1rem;
|
|
1670
|
+
display: flex;
|
|
1671
|
+
align-items: center;
|
|
1672
|
+
justify-content: center;
|
|
1673
|
+
border-radius: 9999px;
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
.cv-modal-icon-svg {
|
|
1677
|
+
width: 100%;
|
|
1678
|
+
height: 100%;
|
|
1679
|
+
opacity: 1;
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
.cv-modal-title {
|
|
1683
|
+
font-size: 1.125rem;
|
|
1684
|
+
font-weight: bold;
|
|
1685
|
+
color: rgba(0, 0, 0, 0.9);
|
|
1686
|
+
margin: 0;
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
.cv-modal-close {
|
|
1690
|
+
width: 2rem;
|
|
1691
|
+
height: 2rem;
|
|
1692
|
+
display: flex;
|
|
1693
|
+
align-items: center;
|
|
1694
|
+
justify-content: center;
|
|
1695
|
+
border-radius: 9999px;
|
|
1696
|
+
background: transparent;
|
|
1697
|
+
border: none;
|
|
1698
|
+
color: rgba(0, 0, 0, 0.6);
|
|
1699
|
+
cursor: pointer;
|
|
1700
|
+
transition: all 0.2s ease;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
.cv-modal-close:hover {
|
|
1704
|
+
background: rgba(62, 132, 244, 0.1);
|
|
1705
|
+
color: #3e84f4;
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
.cv-modal-close-icon {
|
|
1709
|
+
width: 1.25rem;
|
|
1710
|
+
height: 1.25rem;
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
.cv-modal-main {
|
|
1714
|
+
padding: 1rem;
|
|
1715
|
+
flex: 1;
|
|
1716
|
+
display: flex;
|
|
1717
|
+
flex-direction: column;
|
|
1718
|
+
gap: 1rem;
|
|
1719
|
+
overflow-y: auto;
|
|
1720
|
+
max-height: calc(80vh - 8rem);
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
.cv-modal-description {
|
|
1724
|
+
font-size: 0.875rem;
|
|
1725
|
+
color: rgba(0, 0, 0, 0.8);
|
|
1726
|
+
margin: 0;
|
|
1727
|
+
line-height: 1.4;
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
.cv-content-section,
|
|
1731
|
+
.cv-tab-groups-section {
|
|
1732
|
+
display: flex;
|
|
1733
|
+
flex-direction: column;
|
|
1734
|
+
gap: 0.75rem;
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
.cv-section-heading {
|
|
1738
|
+
font-size: 1rem;
|
|
1739
|
+
font-weight: bold;
|
|
1740
|
+
color: rgba(0, 0, 0, 0.9);
|
|
1741
|
+
margin: 0;
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
.cv-widget-modal-actions {
|
|
1745
|
+
margin-top: 20px;
|
|
1746
|
+
padding-top: 16px;
|
|
1747
|
+
border-top: 1px solid #e9ecef;
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
.cv-widget-restore {
|
|
1751
|
+
width: 100%;
|
|
1752
|
+
padding: 10px 16px;
|
|
1753
|
+
background: #28a745;
|
|
1754
|
+
color: white;
|
|
1755
|
+
border: none;
|
|
1756
|
+
border-radius: 4px;
|
|
1757
|
+
cursor: pointer;
|
|
1758
|
+
font-size: 14px;
|
|
1759
|
+
font-weight: 500;
|
|
1760
|
+
}
|
|
1761
|
+
|
|
1762
|
+
.cv-widget-restore:hover {
|
|
1763
|
+
background: #218838;
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
.cv-widget-create-state {
|
|
1767
|
+
width: 100%;
|
|
1768
|
+
padding: 10px 16px;
|
|
1769
|
+
background: #007bff;
|
|
1770
|
+
color: white;
|
|
1771
|
+
border: none;
|
|
1772
|
+
border-radius: 4px;
|
|
1773
|
+
cursor: pointer;
|
|
1774
|
+
font-size: 14px;
|
|
1775
|
+
font-weight: 500;
|
|
1776
|
+
margin-bottom: 10px;
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1779
|
+
.cv-widget-create-state:hover {
|
|
1780
|
+
background: #0056b3;
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
.cv-widget-theme-dark .cv-widget-modal {
|
|
1784
|
+
background: #101722;
|
|
1785
|
+
color: #e2e8f0;
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
.cv-widget-theme-dark .cv-modal-header {
|
|
1789
|
+
border-color: rgba(255, 255, 255, 0.1);
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
.cv-widget-theme-dark .cv-modal-title {
|
|
1793
|
+
color: #e2e8f0;
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
.cv-widget-theme-dark .cv-modal-close {
|
|
1797
|
+
color: rgba(255, 255, 255, 0.6);
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
.cv-widget-theme-dark .cv-modal-close:hover {
|
|
1801
|
+
background: rgba(62, 132, 244, 0.2);
|
|
1802
|
+
color: #3e84f4;
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
.cv-widget-theme-dark .cv-modal-description {
|
|
1806
|
+
color: rgba(255, 255, 255, 0.8);
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
.cv-widget-theme-dark .cv-section-heading {
|
|
1810
|
+
color: #e2e8f0;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
.cv-widget-theme-dark .cv-toggles-container
|
|
1814
|
+
.cv-widget-theme-dark .cv-tabgroups-container {
|
|
1815
|
+
border-color: rgba(255, 255, 255, 0.1);
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
.cv-widget-theme-dark .cv-toggle-card,
|
|
1819
|
+
.cv-widget-theme-dark .cv-tabgroup-card {
|
|
1820
|
+
background: #101722;
|
|
1821
|
+
border-color: rgba(255, 255, 255, 0.1);
|
|
1822
|
+
}
|
|
1823
|
+
|
|
1824
|
+
.cv-widget-theme-dark .cv-toggle-title,
|
|
1825
|
+
.cv-widget-theme-dark .cv-tabgroup-title {
|
|
1826
|
+
color: #e2e8f0;
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
.cv-widget-theme-dark .cv-toggle-description,
|
|
1830
|
+
.cv-widget-theme-dark .cv-tabgroup-description {
|
|
1831
|
+
color: rgba(255, 255, 255, 0.6);
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
.cv-widget-theme-dark .cv-toggle-slider {
|
|
1835
|
+
background: rgba(255, 255, 255, 0.2);
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
.cv-widget-theme-dark .cv-tab-group-description {
|
|
1839
|
+
color: rgba(255, 255, 255, 0.8);
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
.cv-widget-theme-dark .cv-tabgroup-select {
|
|
1843
|
+
background: #101722;
|
|
1844
|
+
border-color: rgba(255, 255, 255, 0.2);
|
|
1845
|
+
color: #e2e8f0;
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
.cv-widget-theme-dark .cv-modal-footer {
|
|
1849
|
+
border-color: rgba(255, 255, 255, 0.1);
|
|
1850
|
+
background: #101722;
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
.cv-widget-theme-dark .cv-reset-btn {
|
|
1854
|
+
color: #e2e8f0;
|
|
1855
|
+
background: rgba(255, 255, 255, 0.1);
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
.cv-widget-theme-dark .cv-reset-btn:hover {
|
|
1859
|
+
background: rgba(255, 255, 255, 0.2);
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
/* Custom state creator styles */
|
|
1863
|
+
.cv-custom-state-modal {
|
|
1864
|
+
max-width: 500px;
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1867
|
+
.cv-custom-state-form .cv-section-header {
|
|
1868
|
+
font-size: 16px;
|
|
1869
|
+
font-weight: 600;
|
|
1870
|
+
color: #333;
|
|
1871
|
+
border-bottom: 1px solid #e9ecef;
|
|
1872
|
+
padding-bottom: 5px;
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
.cv-custom-state-form p {
|
|
1876
|
+
font-size: 15px;
|
|
1877
|
+
line-height: 1.6;
|
|
1878
|
+
color: #555;
|
|
1879
|
+
margin-bottom: 24px;
|
|
1880
|
+
text-align: justify;
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
.cv-custom-state-section {
|
|
1884
|
+
margin-bottom: 16px;
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
.cv-custom-state-section label {
|
|
1888
|
+
display: block;
|
|
1889
|
+
margin-bottom: 4px;
|
|
1890
|
+
font-weight: 500;
|
|
1891
|
+
color: #555;
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
.cv-custom-state-input {
|
|
1895
|
+
width: 100%;
|
|
1896
|
+
padding: 8px 12px;
|
|
1897
|
+
border: 1px solid #ddd;
|
|
1898
|
+
border-radius: 4px;
|
|
1899
|
+
background: white;
|
|
1900
|
+
font-size: 14px;
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
.cv-custom-state-input:focus {
|
|
1904
|
+
outline: none;
|
|
1905
|
+
border-color: #007bff;
|
|
1906
|
+
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
/* Toggles Container */
|
|
1910
|
+
.cv-toggles-container {
|
|
1911
|
+
display: flex;
|
|
1912
|
+
flex-direction: column;
|
|
1913
|
+
gap: 0.5rem;
|
|
1914
|
+
border-radius: 0.5rem;
|
|
1915
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
1916
|
+
overflow: hidden;
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
.cv-toggle-card,
|
|
1920
|
+
.cv-tabgroup-card {
|
|
1921
|
+
background: white;
|
|
1922
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
1923
|
+
}
|
|
1924
|
+
|
|
1925
|
+
.cv-toggle-card:last-child {
|
|
1926
|
+
border-bottom: none;
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
.cv-toggle-content {
|
|
1930
|
+
display: flex;
|
|
1931
|
+
align-items: center;
|
|
1932
|
+
justify-content: space-between;
|
|
1933
|
+
padding: 0.75rem;
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
.cv-toggle-title {
|
|
1937
|
+
font-weight: 500;
|
|
1938
|
+
font-size: 0.875rem;
|
|
1939
|
+
color: rgba(0, 0, 0, 0.9);
|
|
1940
|
+
margin: 0 0 0.125rem 0;
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
.cv-toggle-description {
|
|
1944
|
+
font-size: 0.75rem;
|
|
1945
|
+
color: rgba(0, 0, 0, 0.6);
|
|
1946
|
+
margin: 0;
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1949
|
+
.cv-toggle-label{
|
|
1950
|
+
position: relative;
|
|
1951
|
+
display: inline-block;
|
|
1952
|
+
width: 2.75rem;
|
|
1953
|
+
height: 1.5rem;
|
|
1954
|
+
cursor: pointer;
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1957
|
+
.cv-toggle-input {
|
|
1958
|
+
opacity: 0;
|
|
1959
|
+
width: 0;
|
|
1960
|
+
height: 0;
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
.cv-toggle-slider {
|
|
1964
|
+
position: absolute;
|
|
1965
|
+
top: 0;
|
|
1966
|
+
left: 0;
|
|
1967
|
+
right: 0;
|
|
1968
|
+
bottom: 0;
|
|
1969
|
+
background: rgba(0, 0, 0, 0.2);
|
|
1970
|
+
border-radius: 9999px;
|
|
1971
|
+
transition: background-color 0.2s ease;
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1974
|
+
.cv-toggle-slider:before {
|
|
1975
|
+
position: absolute;
|
|
1976
|
+
content: "";
|
|
1977
|
+
height: 1rem;
|
|
1978
|
+
width: 1rem;
|
|
1979
|
+
left: 0.25rem;
|
|
1980
|
+
bottom: 0.25rem;
|
|
1981
|
+
background: white;
|
|
1982
|
+
border-radius: 50%;
|
|
1983
|
+
transition: transform 0.2s ease;
|
|
1984
|
+
}
|
|
1985
|
+
|
|
1986
|
+
.cv-toggle-input:checked + .cv-toggle-slider {
|
|
1987
|
+
background: #3e84f4;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
.cv-toggle-input:checked + .cv-toggle-slider:before {
|
|
1991
|
+
transform: translateX(1.25rem);
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
/* Dark theme toggle switch styles */
|
|
1995
|
+
.cv-widget-theme-dark .cv-toggle-switch {
|
|
1996
|
+
background: #4a5568;
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
.cv-widget-theme-dark .cv-toggle-switch:hover {
|
|
2000
|
+
background: #5a6578;
|
|
2001
|
+
}
|
|
2002
|
+
|
|
2003
|
+
.cv-widget-theme-dark .cv-toggle-switch.cv-toggle-active {
|
|
2004
|
+
background: #63b3ed;
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
.cv-widget-theme-dark .cv-toggle-switch.cv-toggle-active:hover {
|
|
2008
|
+
background: #4299e1;
|
|
2009
|
+
}
|
|
2010
|
+
|
|
2011
|
+
/* Tab Groups Container */
|
|
2012
|
+
.cv-tab-groups-list {
|
|
2013
|
+
display: flex;
|
|
2014
|
+
flex-direction: column;
|
|
2015
|
+
gap: 1px;
|
|
2016
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
2017
|
+
border-radius: 0.5rem;
|
|
2018
|
+
overflow: hidden;
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
/* Tab Group Card - Header (Navigation Headers toggle) */
|
|
2022
|
+
.cv-tabgroup-card.cv-tabgroup-header {
|
|
2023
|
+
display: flex;
|
|
2024
|
+
align-items: center;
|
|
2025
|
+
justify-content: space-between;
|
|
2026
|
+
padding: 0.75rem;
|
|
2027
|
+
border-bottom: 0px;
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
.cv-tabgroup-card.cv-tabgroup-header .cv-tabgroup-row {
|
|
2031
|
+
display: flex;
|
|
2032
|
+
align-items: center;
|
|
2033
|
+
justify-content: space-between;
|
|
2034
|
+
width: 100%;
|
|
2035
|
+
gap: 1rem;
|
|
2036
|
+
}
|
|
2037
|
+
|
|
2038
|
+
/* Tab Group Card - Items */
|
|
2039
|
+
.cv-tabgroup-card.cv-tabgroup-item {
|
|
2040
|
+
display: flex;
|
|
2041
|
+
flex-direction: column;
|
|
2042
|
+
gap: 0.5rem;
|
|
2043
|
+
padding: 0.75rem;
|
|
2044
|
+
background: white;
|
|
2045
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
.cv-tabgroup-card.cv-tabgroup-item:last-child {
|
|
2049
|
+
border-bottom: none;
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2052
|
+
/* Tab Group Info */
|
|
2053
|
+
.cv-tabgroup-info {
|
|
2054
|
+
flex: 1;
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
.cv-tabgroup-title {
|
|
2058
|
+
font-weight: 500;
|
|
2059
|
+
font-size: 0.875rem;
|
|
2060
|
+
color: rgba(0, 0, 0, 0.9);
|
|
2061
|
+
margin: 0 0 0.25rem 0;
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
.cv-tabgroup-description {
|
|
2065
|
+
font-size: 0.75rem;
|
|
2066
|
+
color: rgba(0, 0, 0, 0.6);
|
|
2067
|
+
margin: 0;
|
|
2068
|
+
line-height: 1.3;
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2071
|
+
/* Tab Group Label (for select dropdowns) */
|
|
2072
|
+
.cv-tabgroup-label {
|
|
2073
|
+
font-size: 0.875rem;
|
|
2074
|
+
color: rgba(0, 0, 0, 0.8);
|
|
2075
|
+
margin: 0;
|
|
2076
|
+
line-height: 1.4;
|
|
2077
|
+
font-weight: 500;
|
|
2078
|
+
display: block;
|
|
2079
|
+
cursor: pointer;
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2082
|
+
/* Tab Group Select */
|
|
2083
|
+
.cv-tabgroup-select {
|
|
2084
|
+
width: 100%;
|
|
2085
|
+
border-radius: 0.5rem;
|
|
2086
|
+
background: white;
|
|
2087
|
+
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
2088
|
+
color: rgba(0, 0, 0, 0.9);
|
|
2089
|
+
padding: 0.5rem 0.75rem;
|
|
2090
|
+
font-size: 0.875rem;
|
|
2091
|
+
cursor: pointer;
|
|
2092
|
+
transition: all 0.15s ease;
|
|
2093
|
+
font-family: inherit;
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
.cv-tabgroup-select:hover {
|
|
2097
|
+
border-color: rgba(0, 0, 0, 0.25);
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
.cv-tabgroup-select:focus {
|
|
2101
|
+
outline: none;
|
|
2102
|
+
border-color: #3e84f4;
|
|
2103
|
+
box-shadow: 0 0 0 2px rgba(62, 132, 244, 0.2);
|
|
2104
|
+
}
|
|
2105
|
+
|
|
2106
|
+
/* Modern Toggle Switch */
|
|
2107
|
+
.cv-toggle-switch {
|
|
2108
|
+
position: relative;
|
|
2109
|
+
display: inline-flex;
|
|
2110
|
+
align-items: center;
|
|
2111
|
+
width: 44px;
|
|
2112
|
+
height: 24px;
|
|
2113
|
+
background: rgba(0, 0, 0, 0.1);
|
|
2114
|
+
border-radius: 9999px;
|
|
2115
|
+
padding: 2px;
|
|
2116
|
+
box-sizing: border-box;
|
|
2117
|
+
cursor: pointer;
|
|
2118
|
+
transition: background-color 0.2s ease;
|
|
2119
|
+
border: none;
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2122
|
+
.cv-toggle-switch input {
|
|
2123
|
+
display: none;
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
.cv-toggle-switch .cv-switch-bg {
|
|
2127
|
+
position: absolute;
|
|
2128
|
+
inset: 0;
|
|
2129
|
+
border-radius: 9999px;
|
|
2130
|
+
background: rgba(0, 0, 0, 0.1);
|
|
2131
|
+
transition: background-color 0.2s ease;
|
|
2132
|
+
pointer-events: none;
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
.cv-toggle-switch .cv-switch-knob {
|
|
2136
|
+
position: relative;
|
|
2137
|
+
width: 20px;
|
|
2138
|
+
height: 20px;
|
|
2139
|
+
background: white;
|
|
2140
|
+
border-radius: 50%;
|
|
2141
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
|
|
2142
|
+
transition: transform 0.2s ease;
|
|
2143
|
+
z-index: 1;
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
.cv-toggle-switch input:checked + .cv-switch-bg {
|
|
2147
|
+
background: #3e84f4;
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
.cv-toggle-switch input:checked ~ .cv-switch-knob {
|
|
2151
|
+
transform: translateX(20px);
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
/* Dark Theme - Tab Groups */
|
|
2155
|
+
.cv-widget-theme-dark .cv-tabgroup-card.cv-tabgroup-header {
|
|
2156
|
+
background: #101722;
|
|
2157
|
+
border-bottom-color: rgba(255, 255, 255, 0.1);
|
|
2158
|
+
}
|
|
2159
|
+
|
|
2160
|
+
.cv-widget-theme-dark .cv-tabgroup-card.cv-tabgroup-item {
|
|
2161
|
+
background: #101722;
|
|
2162
|
+
border-bottom-color: rgba(255, 255, 255, 0.05);
|
|
2163
|
+
}
|
|
2164
|
+
|
|
2165
|
+
.cv-widget-theme-dark .cv-tabgroup-title {
|
|
2166
|
+
color: #e2e8f0;
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2169
|
+
.cv-widget-theme-dark .cv-tabgroup-description {
|
|
2170
|
+
color: rgba(255, 255, 255, 0.6);
|
|
2171
|
+
}
|
|
2172
|
+
|
|
2173
|
+
.cv-widget-theme-dark .cv-tabgroup-label {
|
|
2174
|
+
color: rgba(255, 255, 255, 0.8);
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
.cv-widget-theme-dark .cv-tab-groups-list {
|
|
2178
|
+
border-color: rgba(255, 255, 255, 0.1);
|
|
2179
|
+
}
|
|
2180
|
+
|
|
2181
|
+
.cv-widget-theme-dark .cv-tabgroup-select {
|
|
2182
|
+
background: #101722;
|
|
2183
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
2184
|
+
color: #e2e8f0;
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2187
|
+
.cv-widget-theme-dark .cv-tabgroup-select:hover {
|
|
2188
|
+
border-color: rgba(255, 255, 255, 0.25);
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
.cv-widget-theme-dark .cv-tabgroup-select:focus {
|
|
2192
|
+
border-color: #60a5fa;
|
|
2193
|
+
box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2196
|
+
/* Dark Theme - Toggle Switch */
|
|
2197
|
+
.cv-widget-theme-dark .cv-toggle-switch .cv-switch-bg {
|
|
2198
|
+
background: rgba(255, 255, 255, 0.1);
|
|
2199
|
+
}
|
|
2200
|
+
|
|
2201
|
+
.cv-widget-theme-dark .cv-toggle-switch .cv-switch-knob {
|
|
2202
|
+
background: #e2e8f0;
|
|
2203
|
+
}
|
|
2204
|
+
|
|
2205
|
+
.cv-widget-theme-dark .cv-toggle-switch input:checked + .cv-switch-bg {
|
|
2206
|
+
background: #63b3ed;
|
|
2207
|
+
}
|
|
2208
|
+
|
|
2209
|
+
.cv-modal-footer {
|
|
2210
|
+
display: flex;
|
|
2211
|
+
justify-content: space-between;
|
|
2212
|
+
align-items: center;
|
|
2213
|
+
padding: 0.75rem;
|
|
2214
|
+
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
|
2215
|
+
}
|
|
2216
|
+
|
|
2217
|
+
.cv-reset-btn,
|
|
2218
|
+
.cv-share-btn {
|
|
2219
|
+
display: flex;
|
|
2220
|
+
align-items: center;
|
|
2221
|
+
gap: 0.5rem;
|
|
2222
|
+
padding: 0.375rem 0.75rem;
|
|
2223
|
+
border-radius: 0.5rem;
|
|
2224
|
+
font-weight: 600;
|
|
2225
|
+
font-size: 0.875rem;
|
|
2226
|
+
cursor: pointer;
|
|
2227
|
+
transition: all 0.2s ease;
|
|
2228
|
+
border: none;
|
|
2229
|
+
}
|
|
2230
|
+
|
|
2231
|
+
.cv-reset-btn {
|
|
2232
|
+
color: rgba(0, 0, 0, 0.9);
|
|
2233
|
+
background: rgba(0, 0, 0, 0.1);
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2236
|
+
.cv-reset-btn:hover {
|
|
2237
|
+
background: rgba(0, 0, 0, 0.2);
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
.cv-share-btn {
|
|
2241
|
+
color: white;
|
|
2242
|
+
background: #3e84f4;
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
.cv-share-btn:hover {
|
|
2246
|
+
background: rgba(62, 132, 244, 0.9);
|
|
2247
|
+
}
|
|
2248
|
+
|
|
2249
|
+
.cv-btn-icon {
|
|
2250
|
+
width: 1rem;
|
|
2251
|
+
height: 1rem;
|
|
2252
|
+
}
|
|
2253
|
+
|
|
2254
|
+
/* Dark theme custom state styles */
|
|
2255
|
+
/* Welcome modal styles */
|
|
2256
|
+
.cv-welcome-modal {
|
|
2257
|
+
max-width: 32rem;
|
|
2258
|
+
width: 90vw;
|
|
2259
|
+
background: white;
|
|
2260
|
+
border-radius: 0.75rem;
|
|
2261
|
+
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
|
2262
|
+
animation: slideIn 0.2s ease;
|
|
2263
|
+
display: flex;
|
|
2264
|
+
flex-direction: column;
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2267
|
+
.cv-modal-main {
|
|
2268
|
+
padding: 1rem;
|
|
2269
|
+
flex: 1;
|
|
2270
|
+
display: flex;
|
|
2271
|
+
flex-direction: column;
|
|
2272
|
+
gap: 1rem;
|
|
2273
|
+
overflow-y: auto;
|
|
2274
|
+
max-height: calc(80vh - 8rem);
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
.cv-welcome-message {
|
|
2278
|
+
font-size: 0.875rem;
|
|
2279
|
+
color: rgba(0, 0, 0, 0.8);
|
|
2280
|
+
margin: 0;
|
|
2281
|
+
line-height: 1.4;
|
|
2282
|
+
text-align: center;
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
.cv-welcome-message a {
|
|
2286
|
+
color: #3e84f4;
|
|
2287
|
+
text-align: justify;
|
|
2288
|
+
text-decoration: none;
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2291
|
+
.cv-welcome-message a:hover {
|
|
2292
|
+
text-decoration: underline;
|
|
2293
|
+
}
|
|
2294
|
+
|
|
2295
|
+
.cv-welcome-widget-preview {
|
|
2296
|
+
display: flex;
|
|
2297
|
+
align-items: center;
|
|
2298
|
+
justify-content: center;
|
|
2299
|
+
gap: 1rem;
|
|
2300
|
+
padding: 1rem;
|
|
2301
|
+
background: #f8f9fa;
|
|
2302
|
+
border-radius: 0.5rem;
|
|
2303
|
+
margin: 1rem 0;
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
.cv-welcome-widget-icon {
|
|
2307
|
+
width: 2rem;
|
|
2308
|
+
height: 2rem;
|
|
2309
|
+
background: rgba(62, 132, 244, 0.1);
|
|
2310
|
+
border-radius: 9999px;
|
|
2311
|
+
display: flex;
|
|
2312
|
+
align-items: center;
|
|
2313
|
+
justify-content: center;
|
|
2314
|
+
animation: cv-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
2315
|
+
color: #3e84f4;
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2318
|
+
.cv-welcome-widget-label {
|
|
2319
|
+
font-size: 0.875rem;
|
|
2320
|
+
font-weight: 500;
|
|
2321
|
+
color: rgba(0, 0, 0, 0.8);
|
|
2322
|
+
margin: 0;
|
|
2323
|
+
}
|
|
2324
|
+
|
|
2325
|
+
.cv-welcome-got-it {
|
|
2326
|
+
width: 100%;
|
|
2327
|
+
background: #3e84f4;
|
|
2328
|
+
color: white;
|
|
2329
|
+
font-weight: 600;
|
|
2330
|
+
padding: 0.75rem 1rem;
|
|
2331
|
+
border-radius: 0.5rem;
|
|
2332
|
+
border: none;
|
|
2333
|
+
cursor: pointer;
|
|
2334
|
+
font-size: 0.875rem;
|
|
2335
|
+
transition: background-color 0.2s ease;
|
|
2336
|
+
outline: none;
|
|
2337
|
+
}
|
|
2338
|
+
|
|
2339
|
+
.cv-welcome-got-it:hover {
|
|
2340
|
+
background: rgba(62, 132, 244, 0.9);
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2343
|
+
.cv-welcome-got-it:focus {
|
|
2344
|
+
box-shadow: 0 0 0 2px rgba(62, 132, 244, 0.5);
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
/* Animations */
|
|
2348
|
+
@keyframes cv-pulse {
|
|
2349
|
+
0%, 100% {
|
|
2350
|
+
opacity: 1;
|
|
2351
|
+
}
|
|
2352
|
+
50% {
|
|
2353
|
+
opacity: 0.5;
|
|
2354
|
+
}
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
/* Dark theme welcome modal styles */
|
|
2358
|
+
.cv-widget-theme-dark .cv-welcome-modal {
|
|
2359
|
+
background: #101722;
|
|
2360
|
+
}
|
|
2361
|
+
|
|
2362
|
+
.cv-widget-theme-dark .cv-welcome-message {
|
|
2363
|
+
color: rgba(255, 255, 255, 0.8);
|
|
2364
|
+
}
|
|
2365
|
+
|
|
2366
|
+
.cv-widget-theme-dark .cv-welcome-message a {
|
|
2367
|
+
color: #60a5fa;
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
.cv-widget-theme-dark .cv-welcome-widget-preview {
|
|
2371
|
+
background: rgba(255, 255, 255, 0.1);
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
.cv-widget-theme-dark .cv-welcome-widget-label {
|
|
2375
|
+
color: #e2e8f0;
|
|
2376
|
+
}
|
|
2391
2377
|
`;
|
|
2392
2378
|
/**
|
|
2393
2379
|
* Inject widget styles into the document head
|
|
@@ -2410,34 +2396,34 @@ function injectWidgetStyles() {
|
|
|
2410
2396
|
* Settings gear icon for modal header
|
|
2411
2397
|
*/
|
|
2412
2398
|
function getGearIcon() {
|
|
2413
|
-
return `<svg class="cv-modal-icon-svg" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2414
|
-
<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"/>
|
|
2415
|
-
<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"/>
|
|
2399
|
+
return `<svg class="cv-modal-icon-svg" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2400
|
+
<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"/>
|
|
2401
|
+
<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"/>
|
|
2416
2402
|
</svg>`;
|
|
2417
2403
|
}
|
|
2418
2404
|
/**
|
|
2419
2405
|
* Close/X icon for modal close button
|
|
2420
2406
|
*/
|
|
2421
2407
|
function getCloseIcon() {
|
|
2422
|
-
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">
|
|
2423
|
-
<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>
|
|
2408
|
+
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">
|
|
2409
|
+
<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>
|
|
2424
2410
|
</svg>`;
|
|
2425
2411
|
}
|
|
2426
2412
|
/**
|
|
2427
2413
|
* Reset/refresh icon for reset button
|
|
2428
2414
|
*/
|
|
2429
2415
|
function getResetIcon() {
|
|
2430
|
-
return `<svg class="cv-btn-icon" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2431
|
-
<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"/>
|
|
2416
|
+
return `<svg class="cv-btn-icon" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2417
|
+
<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"/>
|
|
2432
2418
|
</svg>`;
|
|
2433
2419
|
}
|
|
2434
2420
|
/**
|
|
2435
2421
|
* Share icon for share button
|
|
2436
2422
|
*/
|
|
2437
2423
|
function getShareIcon() {
|
|
2438
|
-
return `<svg class="cv-btn-icon" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2439
|
-
<path xmlns="http://www.w3.org/2000/svg" d="M6 11C6 8.17157 6 6.75736 6.87868 5.87868C7.75736 5 9.17157 5 12 5H15C17.8284 5 19.2426 5 20.1213 5.87868C21 6.75736 21 8.17157 21 11V16C21 18.8284 21 20.2426 20.1213 21.1213C19.2426 22 17.8284 22 15 22H12C9.17157 22 7.75736 22 6.87868 21.1213C6 20.2426 6 18.8284 6 16V11Z" stroke="#1C274C" stroke-width="1.5"/>
|
|
2440
|
-
<path xmlns="http://www.w3.org/2000/svg" opacity="0.5" d="M6 19C4.34315 19 3 17.6569 3 16V10C3 6.22876 3 4.34315 4.17157 3.17157C5.34315 2 7.22876 2 11 2H15C16.6569 2 18 3.34315 18 5" stroke="#1C274C" stroke-width="1.5"/>
|
|
2424
|
+
return `<svg class="cv-btn-icon" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2425
|
+
<path xmlns="http://www.w3.org/2000/svg" d="M6 11C6 8.17157 6 6.75736 6.87868 5.87868C7.75736 5 9.17157 5 12 5H15C17.8284 5 19.2426 5 20.1213 5.87868C21 6.75736 21 8.17157 21 11V16C21 18.8284 21 20.2426 20.1213 21.1213C19.2426 22 17.8284 22 15 22H12C9.17157 22 7.75736 22 6.87868 21.1213C6 20.2426 6 18.8284 6 16V11Z" stroke="#1C274C" stroke-width="1.5"/>
|
|
2426
|
+
<path xmlns="http://www.w3.org/2000/svg" opacity="0.5" d="M6 19C4.34315 19 3 17.6569 3 16V10C3 6.22876 3 4.34315 4.17157 3.17157C5.34315 2 7.22876 2 11 2H15C16.6569 2 18 3.34315 18 5" stroke="#1C274C" stroke-width="1.5"/>
|
|
2441
2427
|
</svg>`;
|
|
2442
2428
|
}
|
|
2443
2429
|
|
|
@@ -2541,18 +2527,18 @@ class CustomViewsWidget {
|
|
|
2541
2527
|
this.modal = document.createElement('div');
|
|
2542
2528
|
this.modal.className = 'cv-widget-modal-overlay';
|
|
2543
2529
|
this.applyThemeToModal();
|
|
2544
|
-
const toggleControlsHtml = toggles.map(toggle => `
|
|
2545
|
-
<div class="cv-toggle-card">
|
|
2546
|
-
<div class="cv-toggle-content">
|
|
2547
|
-
<div>
|
|
2548
|
-
<p class="cv-toggle-title">${this.formatToggleName(toggle)}</p>
|
|
2549
|
-
</div>
|
|
2550
|
-
<label class="cv-toggle-label">
|
|
2551
|
-
<input class="cv-toggle-input" type="checkbox" data-toggle="${toggle}"/>
|
|
2552
|
-
<span class="cv-toggle-slider"></span>
|
|
2553
|
-
</label>
|
|
2554
|
-
</div>
|
|
2555
|
-
</div>
|
|
2530
|
+
const toggleControlsHtml = toggles.map(toggle => `
|
|
2531
|
+
<div class="cv-toggle-card">
|
|
2532
|
+
<div class="cv-toggle-content">
|
|
2533
|
+
<div>
|
|
2534
|
+
<p class="cv-toggle-title">${this.formatToggleName(toggle)}</p>
|
|
2535
|
+
</div>
|
|
2536
|
+
<label class="cv-toggle-label">
|
|
2537
|
+
<input class="cv-toggle-input" type="checkbox" data-toggle="${toggle}"/>
|
|
2538
|
+
<span class="cv-toggle-slider"></span>
|
|
2539
|
+
</label>
|
|
2540
|
+
</div>
|
|
2541
|
+
</div>
|
|
2556
2542
|
`).join('');
|
|
2557
2543
|
// Todo: Re-add description if needed (Line 168, add label field to toggles if needed change structure)
|
|
2558
2544
|
// <p class="cv-toggle-description">Show or hide the ${this.formatToggleName(toggle).toLowerCase()} area </p>
|
|
@@ -2582,82 +2568,82 @@ class CustomViewsWidget {
|
|
|
2582
2568
|
ensureFontAwesomeInjected();
|
|
2583
2569
|
}
|
|
2584
2570
|
if (this.options.showTabGroups && tabGroups && tabGroups.length > 0) {
|
|
2585
|
-
tabGroupControlsHTML = `
|
|
2586
|
-
<div class="cv-tabgroup-card cv-tabgroup-header">
|
|
2587
|
-
<div class="cv-tabgroup-row">
|
|
2588
|
-
<div class="cv-tabgroup-info">
|
|
2589
|
-
<p class="cv-tabgroup-title">Navigation Headers</p>
|
|
2590
|
-
<p class="cv-tabgroup-description">Show or hide navigation headers</p>
|
|
2591
|
-
</div>
|
|
2592
|
-
<label class="cv-toggle-switch cv-nav-toggle">
|
|
2593
|
-
<input class="cv-nav-pref-input" type="checkbox" aria-label="Show or hide navigation headers" />
|
|
2594
|
-
<span class="cv-switch-bg"></span>
|
|
2595
|
-
<span class="cv-switch-knob"></span>
|
|
2596
|
-
</label>
|
|
2597
|
-
</div>
|
|
2598
|
-
</div>
|
|
2599
|
-
<div class="cv-tab-groups-list">
|
|
2600
|
-
${tabGroups.map(group => `
|
|
2601
|
-
<div class="cv-tabgroup-card cv-tabgroup-item">
|
|
2602
|
-
<label class="cv-tabgroup-label" for="tab-group-${group.id}">
|
|
2603
|
-
${replaceIconShortcodes(group.label || group.id)}
|
|
2604
|
-
</label>
|
|
2605
|
-
<select id="tab-group-${group.id}" class="cv-tabgroup-select" data-group-id="${group.id}">
|
|
2606
|
-
${group.tabs.map(tab => `<option value="${tab.id}">${replaceIconShortcodes(tab.label || tab.id)}</option>`).join('')}
|
|
2607
|
-
</select>
|
|
2608
|
-
</div>
|
|
2609
|
-
`).join('')}
|
|
2610
|
-
</div>
|
|
2571
|
+
tabGroupControlsHTML = `
|
|
2572
|
+
<div class="cv-tabgroup-card cv-tabgroup-header">
|
|
2573
|
+
<div class="cv-tabgroup-row">
|
|
2574
|
+
<div class="cv-tabgroup-info">
|
|
2575
|
+
<p class="cv-tabgroup-title">Navigation Headers</p>
|
|
2576
|
+
<p class="cv-tabgroup-description">Show or hide navigation headers</p>
|
|
2577
|
+
</div>
|
|
2578
|
+
<label class="cv-toggle-switch cv-nav-toggle">
|
|
2579
|
+
<input class="cv-nav-pref-input" type="checkbox" aria-label="Show or hide navigation headers" />
|
|
2580
|
+
<span class="cv-switch-bg"></span>
|
|
2581
|
+
<span class="cv-switch-knob"></span>
|
|
2582
|
+
</label>
|
|
2583
|
+
</div>
|
|
2584
|
+
</div>
|
|
2585
|
+
<div class="cv-tab-groups-list">
|
|
2586
|
+
${tabGroups.map(group => `
|
|
2587
|
+
<div class="cv-tabgroup-card cv-tabgroup-item">
|
|
2588
|
+
<label class="cv-tabgroup-label" for="tab-group-${group.id}">
|
|
2589
|
+
${replaceIconShortcodes(group.label || group.id)}
|
|
2590
|
+
</label>
|
|
2591
|
+
<select id="tab-group-${group.id}" class="cv-tabgroup-select" data-group-id="${group.id}">
|
|
2592
|
+
${group.tabs.map(tab => `<option value="${tab.id}">${replaceIconShortcodes(tab.label || tab.id)}</option>`).join('')}
|
|
2593
|
+
</select>
|
|
2594
|
+
</div>
|
|
2595
|
+
`).join('')}
|
|
2596
|
+
</div>
|
|
2611
2597
|
`;
|
|
2612
2598
|
}
|
|
2613
|
-
this.modal.innerHTML = `
|
|
2614
|
-
<div class="cv-widget-modal cv-custom-state-modal">
|
|
2615
|
-
<header class="cv-modal-header">
|
|
2616
|
-
<div class="cv-modal-header-content">
|
|
2617
|
-
<div class="cv-modal-icon">
|
|
2618
|
-
${getGearIcon()}
|
|
2619
|
-
</div>
|
|
2620
|
-
<div class="cv-modal-title">${this.options.title}</div>
|
|
2621
|
-
</div>
|
|
2622
|
-
<button class="cv-modal-close" aria-label="Close modal">
|
|
2623
|
-
${getCloseIcon()}
|
|
2624
|
-
</button>
|
|
2625
|
-
</header>
|
|
2626
|
-
<main class="cv-modal-main">
|
|
2627
|
-
${this.options.description ? `<p class="cv-modal-description">${this.options.description}</p>` : ''}
|
|
2628
|
-
|
|
2629
|
-
${toggles.length ? `
|
|
2630
|
-
<div class="cv-content-section">
|
|
2631
|
-
<div class="cv-section-heading">Toggles</div>
|
|
2632
|
-
<div class="cv-toggles-container">
|
|
2633
|
-
${toggleControlsHtml}
|
|
2634
|
-
</div>
|
|
2635
|
-
</div>
|
|
2636
|
-
` : ''}
|
|
2637
|
-
|
|
2638
|
-
${this.options.showTabGroups && tabGroups && tabGroups.length > 0 ? `
|
|
2639
|
-
<div class="cv-content-section">
|
|
2640
|
-
<div class="cv-section-heading">Tab Groups</div>
|
|
2641
|
-
<div class="cv-tabgroups-container">
|
|
2642
|
-
${tabGroupControlsHTML}
|
|
2643
|
-
</div>
|
|
2644
|
-
</div>
|
|
2645
|
-
` : ''}
|
|
2646
|
-
</main>
|
|
2647
|
-
|
|
2648
|
-
<footer class="cv-modal-footer">
|
|
2649
|
-
${this.options.showReset ? `
|
|
2650
|
-
<button class="cv-reset-btn">
|
|
2651
|
-
${getResetIcon()}
|
|
2652
|
-
<span>Reset to Default</span>
|
|
2653
|
-
</button>
|
|
2654
|
-
` : ''}
|
|
2655
|
-
<button class="cv-share-btn">
|
|
2656
|
-
${getShareIcon()}
|
|
2657
|
-
<span>Copy Shareable URL</span>
|
|
2658
|
-
</button>
|
|
2659
|
-
</footer>
|
|
2660
|
-
</div>
|
|
2599
|
+
this.modal.innerHTML = `
|
|
2600
|
+
<div class="cv-widget-modal cv-custom-state-modal">
|
|
2601
|
+
<header class="cv-modal-header">
|
|
2602
|
+
<div class="cv-modal-header-content">
|
|
2603
|
+
<div class="cv-modal-icon">
|
|
2604
|
+
${getGearIcon()}
|
|
2605
|
+
</div>
|
|
2606
|
+
<div class="cv-modal-title">${this.options.title}</div>
|
|
2607
|
+
</div>
|
|
2608
|
+
<button class="cv-modal-close" aria-label="Close modal">
|
|
2609
|
+
${getCloseIcon()}
|
|
2610
|
+
</button>
|
|
2611
|
+
</header>
|
|
2612
|
+
<main class="cv-modal-main">
|
|
2613
|
+
${this.options.description ? `<p class="cv-modal-description">${this.options.description}</p>` : ''}
|
|
2614
|
+
|
|
2615
|
+
${toggles.length ? `
|
|
2616
|
+
<div class="cv-content-section">
|
|
2617
|
+
<div class="cv-section-heading">Toggles</div>
|
|
2618
|
+
<div class="cv-toggles-container">
|
|
2619
|
+
${toggleControlsHtml}
|
|
2620
|
+
</div>
|
|
2621
|
+
</div>
|
|
2622
|
+
` : ''}
|
|
2623
|
+
|
|
2624
|
+
${this.options.showTabGroups && tabGroups && tabGroups.length > 0 ? `
|
|
2625
|
+
<div class="cv-content-section">
|
|
2626
|
+
<div class="cv-section-heading">Tab Groups</div>
|
|
2627
|
+
<div class="cv-tabgroups-container">
|
|
2628
|
+
${tabGroupControlsHTML}
|
|
2629
|
+
</div>
|
|
2630
|
+
</div>
|
|
2631
|
+
` : ''}
|
|
2632
|
+
</main>
|
|
2633
|
+
|
|
2634
|
+
<footer class="cv-modal-footer">
|
|
2635
|
+
${this.options.showReset ? `
|
|
2636
|
+
<button class="cv-reset-btn">
|
|
2637
|
+
${getResetIcon()}
|
|
2638
|
+
<span>Reset to Default</span>
|
|
2639
|
+
</button>
|
|
2640
|
+
` : ''}
|
|
2641
|
+
<button class="cv-share-btn">
|
|
2642
|
+
${getShareIcon()}
|
|
2643
|
+
<span>Copy Shareable URL</span>
|
|
2644
|
+
</button>
|
|
2645
|
+
</footer>
|
|
2646
|
+
</div>
|
|
2661
2647
|
`;
|
|
2662
2648
|
document.body.appendChild(this.modal);
|
|
2663
2649
|
this.attachStateModalEventListeners();
|
|
@@ -2833,7 +2819,7 @@ class CustomViewsWidget {
|
|
|
2833
2819
|
});
|
|
2834
2820
|
// Load tab group selections
|
|
2835
2821
|
const activeTabs = this.core.getCurrentActiveTabs();
|
|
2836
|
-
const tabGroupSelects = this.modal.querySelectorAll('.cv-
|
|
2822
|
+
const tabGroupSelects = this.modal.querySelectorAll('.cv-tabgroup-select');
|
|
2837
2823
|
tabGroupSelects.forEach(select => {
|
|
2838
2824
|
const groupId = select.dataset.groupId;
|
|
2839
2825
|
if (groupId && activeTabs[groupId]) {
|
|
@@ -2891,29 +2877,29 @@ class CustomViewsWidget {
|
|
|
2891
2877
|
this.modal = document.createElement('div');
|
|
2892
2878
|
this.modal.className = 'cv-widget-modal-overlay cv-welcome-modal-overlay';
|
|
2893
2879
|
this.applyThemeToModal();
|
|
2894
|
-
this.modal.innerHTML = `
|
|
2895
|
-
<div class="cv-widget-modal cv-welcome-modal">
|
|
2896
|
-
<header class="cv-modal-header">
|
|
2897
|
-
<div class="cv-modal-header-content">
|
|
2898
|
-
<div class="cv-modal-icon">
|
|
2899
|
-
${getGearIcon()}
|
|
2900
|
-
</div>
|
|
2901
|
-
<h1 class="cv-modal-title">${this.options.welcomeTitle}</h1>
|
|
2902
|
-
</div>
|
|
2903
|
-
</header>
|
|
2904
|
-
<div class="cv-modal-main">
|
|
2905
|
-
<p class="cv-welcome-message">${this.options.welcomeMessage}</p>
|
|
2906
|
-
|
|
2907
|
-
<div class="cv-welcome-widget-preview">
|
|
2908
|
-
<div class="cv-welcome-widget-icon">
|
|
2909
|
-
${getGearIcon()}
|
|
2910
|
-
</div>
|
|
2911
|
-
<p class="cv-welcome-widget-label">Look for this widget</p>
|
|
2912
|
-
</div>
|
|
2913
|
-
|
|
2914
|
-
<button class="cv-welcome-got-it">Got it!</button>
|
|
2915
|
-
</div>
|
|
2916
|
-
</div>
|
|
2880
|
+
this.modal.innerHTML = `
|
|
2881
|
+
<div class="cv-widget-modal cv-welcome-modal">
|
|
2882
|
+
<header class="cv-modal-header">
|
|
2883
|
+
<div class="cv-modal-header-content">
|
|
2884
|
+
<div class="cv-modal-icon">
|
|
2885
|
+
${getGearIcon()}
|
|
2886
|
+
</div>
|
|
2887
|
+
<h1 class="cv-modal-title">${this.options.welcomeTitle}</h1>
|
|
2888
|
+
</div>
|
|
2889
|
+
</header>
|
|
2890
|
+
<div class="cv-modal-main">
|
|
2891
|
+
<p class="cv-welcome-message">${this.options.welcomeMessage}</p>
|
|
2892
|
+
|
|
2893
|
+
<div class="cv-welcome-widget-preview">
|
|
2894
|
+
<div class="cv-welcome-widget-icon">
|
|
2895
|
+
${getGearIcon()}
|
|
2896
|
+
</div>
|
|
2897
|
+
<p class="cv-welcome-widget-label">Look for this widget</p>
|
|
2898
|
+
</div>
|
|
2899
|
+
|
|
2900
|
+
<button class="cv-welcome-got-it">Got it!</button>
|
|
2901
|
+
</div>
|
|
2902
|
+
</div>
|
|
2917
2903
|
`;
|
|
2918
2904
|
document.body.appendChild(this.modal);
|
|
2919
2905
|
this.attachWelcomeModalEventListeners();
|