@unvired/turboforms-embed-sdk 2.0.48 → 2.0.50
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 +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/turboforms.esm.js +14 -12
- package/dist/turboforms.html +218 -10
- package/dist/turboforms.js +14 -12
- package/package.json +1 -1
package/dist/turboforms.html
CHANGED
|
@@ -2631,7 +2631,7 @@
|
|
|
2631
2631
|
.tf-formio-sdk .comments-header {
|
|
2632
2632
|
background-color: white;
|
|
2633
2633
|
display: flex;
|
|
2634
|
-
padding:
|
|
2634
|
+
padding: 5px;
|
|
2635
2635
|
align-items: baseline;
|
|
2636
2636
|
justify-content: space-between;
|
|
2637
2637
|
position: fixed;
|
|
@@ -2668,6 +2668,191 @@
|
|
|
2668
2668
|
|
|
2669
2669
|
.tf-formio-sdk .relative-position {
|
|
2670
2670
|
position: relative;
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
/* ==========================================================================
|
|
2674
|
+
12. Recogito Comments UI Overrides (Modernized)
|
|
2675
|
+
========================================================================== */
|
|
2676
|
+
|
|
2677
|
+
/* The main modal container */
|
|
2678
|
+
.r6o-editor {
|
|
2679
|
+
width: 450px !important;
|
|
2680
|
+
border-radius: 12px !important;
|
|
2681
|
+
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
|
|
2682
|
+
border: 1px solid #eaeaea !important;
|
|
2683
|
+
font-family: inherit !important;
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2686
|
+
/* Modal Inner */
|
|
2687
|
+
.r6o-editor-inner {
|
|
2688
|
+
border-radius: 12px !important;
|
|
2689
|
+
overflow: hidden !important;
|
|
2690
|
+
}
|
|
2691
|
+
|
|
2692
|
+
/* Comment text area */
|
|
2693
|
+
.r6o-widget.comment {
|
|
2694
|
+
padding: 8px !important;
|
|
2695
|
+
border-bottom: 1px solid #f0f0f0 !important;
|
|
2696
|
+
}
|
|
2697
|
+
|
|
2698
|
+
.r6o-widget.comment textarea {
|
|
2699
|
+
min-height: 90px !important;
|
|
2700
|
+
padding: 12px !important;
|
|
2701
|
+
border: 1px solid #e0e0e0 !important;
|
|
2702
|
+
border-radius: 8px !important;
|
|
2703
|
+
font-size: 14px !important;
|
|
2704
|
+
background-color: #f9f9f9 !important;
|
|
2705
|
+
transition: border-color 0.2s ease, background-color 0.2s ease !important;
|
|
2706
|
+
}
|
|
2707
|
+
|
|
2708
|
+
.r6o-widget.comment textarea:focus {
|
|
2709
|
+
border-color: var(--tf-primary-color, #0d6efd) !important;
|
|
2710
|
+
background-color: #fff !important;
|
|
2711
|
+
outline: none !important;
|
|
2712
|
+
box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1) !important;
|
|
2713
|
+
}
|
|
2714
|
+
|
|
2715
|
+
/* Tags area */
|
|
2716
|
+
.r6o-widget.r6o-tag {
|
|
2717
|
+
padding: 12px 16px !important;
|
|
2718
|
+
background-color: #fff !important;
|
|
2719
|
+
border-bottom: 1px solid #f0f0f0 !important;
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2722
|
+
.r6o-widget.r6o-tag input {
|
|
2723
|
+
font-size: 14px !important;
|
|
2724
|
+
padding: 8px !important;
|
|
2725
|
+
border: 1px dashed #e0e0e0 !important;
|
|
2726
|
+
border-radius: 6px !important;
|
|
2727
|
+
}
|
|
2728
|
+
|
|
2729
|
+
.r6o-widget.r6o-tag input:focus {
|
|
2730
|
+
border-color: var(--tf-primary-color, #0d6efd) !important;
|
|
2731
|
+
border-style: solid !important;
|
|
2732
|
+
}
|
|
2733
|
+
|
|
2734
|
+
/* Tag chips */
|
|
2735
|
+
.r6o-widget.r6o-tag ul.r6o-taglist li {
|
|
2736
|
+
border-radius: 16px !important;
|
|
2737
|
+
background-color: var(--tf-primary-color-transparent, #e9ecef) !important;
|
|
2738
|
+
border: none !important;
|
|
2739
|
+
color: var(--tf-primary-color, #495057) !important;
|
|
2740
|
+
font-size: 12px !important;
|
|
2741
|
+
padding: 4px 6px !important;
|
|
2742
|
+
font-weight: 500 !important;
|
|
2743
|
+
}
|
|
2744
|
+
|
|
2745
|
+
.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-wrapper {
|
|
2746
|
+
background-color: transparent !important;
|
|
2747
|
+
color: inherit !important;
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2750
|
+
.r6o-widget.r6o-tag ul.r6o-taglist li .r6o-delete-wrapper .r6o-delete:hover {
|
|
2751
|
+
background-color: rgba(0, 0, 0, 0.05) !important;
|
|
2752
|
+
border-radius: 50% !important;
|
|
2753
|
+
}
|
|
2754
|
+
|
|
2755
|
+
/* Footer & Buttons */
|
|
2756
|
+
.r6o-footer {
|
|
2757
|
+
|
|
2758
|
+
background-color: #fafafa !important;
|
|
2759
|
+
display: flex !important;
|
|
2760
|
+
justify-content: flex-end !important;
|
|
2761
|
+
gap: 12px !important;
|
|
2762
|
+
}
|
|
2763
|
+
|
|
2764
|
+
.r6o-btn {
|
|
2765
|
+
padding: 2px 20px !important;
|
|
2766
|
+
border-radius: 6px !important;
|
|
2767
|
+
font-weight: 500 !important;
|
|
2768
|
+
font-size: 14px !important;
|
|
2769
|
+
text-transform: none !important;
|
|
2770
|
+
transition: all 0.2s ease !important;
|
|
2771
|
+
min-width: 80px !important;
|
|
2772
|
+
text-align: center !important;
|
|
2773
|
+
}
|
|
2774
|
+
|
|
2775
|
+
.r6o-btn:not(.outline) {
|
|
2776
|
+
background-color: var(--tf-primary-color, #0d6efd) !important;
|
|
2777
|
+
border-color: var(--tf-primary-color, #0d6efd) !important;
|
|
2778
|
+
}
|
|
2779
|
+
|
|
2780
|
+
.r6o-btn:not(.outline):hover {
|
|
2781
|
+
filter: brightness(0.9) !important;
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
.r6o-btn.outline {
|
|
2785
|
+
color: #495057 !important;
|
|
2786
|
+
border-color: #ced4da !important;
|
|
2787
|
+
background-color: #fff !important;
|
|
2788
|
+
}
|
|
2789
|
+
|
|
2790
|
+
.r6o-btn.outline:hover {
|
|
2791
|
+
background-color: #f8f9fa !important;
|
|
2792
|
+
border-color: #adb5bd !important;
|
|
2793
|
+
}
|
|
2794
|
+
|
|
2795
|
+
@media (max-width: 600px) {
|
|
2796
|
+
.r6o-editor {
|
|
2797
|
+
width: 320px !important;
|
|
2798
|
+
}
|
|
2799
|
+
}
|
|
2800
|
+
|
|
2801
|
+
.r6o-widget.comment textarea:not(.formio-component-htmlelement *) {
|
|
2802
|
+
resize: vertical !important;
|
|
2803
|
+
min-height: 60px !important;
|
|
2804
|
+
}
|
|
2805
|
+
|
|
2806
|
+
/* Comment Dropdown Arrow */
|
|
2807
|
+
.r6o-widget.comment .r6o-arrow-down {
|
|
2808
|
+
height: 26px !important;
|
|
2809
|
+
width: 26px !important;
|
|
2810
|
+
top: 12px !important;
|
|
2811
|
+
right: 12px !important;
|
|
2812
|
+
border: 1px solid #e0e0e0 !important;
|
|
2813
|
+
border-radius: 6px !important;
|
|
2814
|
+
display: flex !important;
|
|
2815
|
+
align-items: center !important;
|
|
2816
|
+
justify-content: center !important;
|
|
2817
|
+
transition: all 0.2s ease !important;
|
|
2818
|
+
color: #6c757d !important;
|
|
2819
|
+
background-color: #fff !important;
|
|
2820
|
+
}
|
|
2821
|
+
|
|
2822
|
+
.r6o-widget.comment .r6o-arrow-down:hover {
|
|
2823
|
+
background-color: #f8f9fa !important;
|
|
2824
|
+
color: #495057 !important;
|
|
2825
|
+
}
|
|
2826
|
+
|
|
2827
|
+
.r6o-widget.comment .r6o-arrow-down.r6o-menu-open {
|
|
2828
|
+
border-color: var(--tf-primary-color, #0d6efd) !important;
|
|
2829
|
+
color: var(--tf-primary-color, #0d6efd) !important;
|
|
2830
|
+
background-color: var(--tf-primary-color-transparent, #e9ecef) !important;
|
|
2831
|
+
}
|
|
2832
|
+
|
|
2833
|
+
/* Comment Dropdown Menu */
|
|
2834
|
+
.r6o-widget.comment .r6o-comment-dropdown-menu {
|
|
2835
|
+
top: 42px !important;
|
|
2836
|
+
right: 12px !important;
|
|
2837
|
+
border-radius: 8px !important;
|
|
2838
|
+
border: 1px solid #eaeaea !important;
|
|
2839
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
|
|
2840
|
+
padding: 4px 0 !important;
|
|
2841
|
+
min-width: 140px !important;
|
|
2842
|
+
overflow: hidden !important;
|
|
2843
|
+
background-color: #fff !important;
|
|
2844
|
+
}
|
|
2845
|
+
|
|
2846
|
+
.r6o-widget.comment .r6o-comment-dropdown-menu li {
|
|
2847
|
+
padding: 8px 16px !important;
|
|
2848
|
+
font-size: 14px !important;
|
|
2849
|
+
color: #495057 !important;
|
|
2850
|
+
transition: background-color 0.2s ease, color 0.2s ease !important;
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2853
|
+
.r6o-widget.comment .r6o-comment-dropdown-menu li:hover {
|
|
2854
|
+
background-color: var(--tf-primary-color-transparent, #f1f3f5) !important;
|
|
2855
|
+
color: var(--tf-primary-color, #212529) !important;
|
|
2671
2856
|
}</style>
|
|
2672
2857
|
<link href="custom-theme/custom-theme.css" rel="stylesheet">
|
|
2673
2858
|
|
|
@@ -22424,14 +22609,26 @@ function showFormView() {
|
|
|
22424
22609
|
const commentsHeader = document.getElementById("comments-header");
|
|
22425
22610
|
const cmtFooter = document.getElementById("cmt-footer");
|
|
22426
22611
|
const formCmt = document.getElementById("formio-cmt");
|
|
22612
|
+
const commentsBtnTop = document.getElementById("comments-back-btn-top");
|
|
22613
|
+
const formBackBtn = document.getElementById("form-back-btn");
|
|
22614
|
+
const stickyHeader = document.getElementById("sticky-header");
|
|
22427
22615
|
|
|
22428
22616
|
if (commentsHeader) commentsHeader.style.display = "none";
|
|
22429
22617
|
if (cmtFooter) cmtFooter.style.display = "none";
|
|
22430
22618
|
if (formCmt) formCmt.style.display = "none";
|
|
22619
|
+
if (commentsBtnTop) commentsBtnTop.style.setProperty("display", "none", "important");
|
|
22431
22620
|
|
|
22432
22621
|
if (formHeader) formHeader.style.display = "";
|
|
22622
|
+
if (stickyHeader) stickyHeader.style.display = "";
|
|
22433
22623
|
if (formEl) formEl.style.display = "";
|
|
22434
22624
|
if (stickyFooter) stickyFooter.style.display = "flex";
|
|
22625
|
+
if (formBackBtn) {
|
|
22626
|
+
if (window.__unviredFormsOptions && window.__unviredFormsOptions.showBackButton) {
|
|
22627
|
+
formBackBtn.style.setProperty("display", "flex", "important");
|
|
22628
|
+
} else {
|
|
22629
|
+
formBackBtn.style.setProperty("display", "none", "important");
|
|
22630
|
+
}
|
|
22631
|
+
}
|
|
22435
22632
|
}
|
|
22436
22633
|
|
|
22437
22634
|
function showCommentsView() {
|
|
@@ -22442,14 +22639,20 @@ function showCommentsView() {
|
|
|
22442
22639
|
const commentsHeader = document.getElementById("comments-header");
|
|
22443
22640
|
const cmtFooter = document.getElementById("cmt-footer");
|
|
22444
22641
|
const formCmt = document.getElementById("formio-cmt");
|
|
22642
|
+
const commentsBtnTop = document.getElementById("comments-back-btn-top");
|
|
22643
|
+
const formBackBtn = document.getElementById("form-back-btn");
|
|
22644
|
+
const stickyHeader = document.getElementById("sticky-header");
|
|
22445
22645
|
|
|
22446
22646
|
if (formHeader) formHeader.style.display = "none";
|
|
22447
22647
|
if (formEl) formEl.style.display = "none";
|
|
22448
22648
|
if (stickyFooter) stickyFooter.style.display = "none";
|
|
22649
|
+
if (stickyHeader) stickyHeader.style.display = "none";
|
|
22650
|
+
if (formBackBtn) formBackBtn.style.setProperty("display", "none", "important");
|
|
22449
22651
|
|
|
22450
22652
|
if (commentsHeader) commentsHeader.style.display = "";
|
|
22451
22653
|
if (formCmt) formCmt.style.display = "";
|
|
22452
22654
|
if (cmtFooter) cmtFooter.style.display = "flex";
|
|
22655
|
+
if (commentsBtnTop) commentsBtnTop.style.setProperty("display", "inline-block", "important");
|
|
22453
22656
|
}
|
|
22454
22657
|
|
|
22455
22658
|
// expose to other modules
|
|
@@ -41649,10 +41852,12 @@ async function loadTRform(
|
|
|
41649
41852
|
let initialDataSet = false;
|
|
41650
41853
|
formObj.on("change", () => {
|
|
41651
41854
|
if (!initialDataSet) {
|
|
41652
|
-
|
|
41653
|
-
|
|
41654
|
-
|
|
41655
|
-
|
|
41855
|
+
if (!initialFormData) {
|
|
41856
|
+
try {
|
|
41857
|
+
initialFormData = JSON.parse(JSON.stringify(formObj.getValue().data));
|
|
41858
|
+
} catch (e) {
|
|
41859
|
+
initialFormData = formObj.getValue().data;
|
|
41860
|
+
}
|
|
41656
41861
|
}
|
|
41657
41862
|
initialDataSet = true;
|
|
41658
41863
|
}
|
|
@@ -42501,6 +42706,9 @@ window.FormOnPrevious = function () {
|
|
|
42501
42706
|
window.formOnCompleteFunction = FormOnComplete;
|
|
42502
42707
|
|
|
42503
42708
|
window.resetFormCache = resetFormCache;
|
|
42709
|
+
window.resetInitialFormData = function() {
|
|
42710
|
+
initialFormData = null;
|
|
42711
|
+
};
|
|
42504
42712
|
|
|
42505
42713
|
// Notify that loadTRform is ready (for event-based coordination)
|
|
42506
42714
|
document.dispatchEvent(new CustomEvent('LoadRNformReady'));
|
|
@@ -42676,7 +42884,7 @@ async function loadCommentsform(
|
|
|
42676
42884
|
template,
|
|
42677
42885
|
userData,
|
|
42678
42886
|
commentsData,
|
|
42679
|
-
|
|
42887
|
+
commentsVobArr,
|
|
42680
42888
|
users = []
|
|
42681
42889
|
) {
|
|
42682
42890
|
// ✅ Clean up existing instances before creating new ones
|
|
@@ -42737,7 +42945,7 @@ async function loadCommentsform(
|
|
|
42737
42945
|
userSuggestions: users,
|
|
42738
42946
|
editable: "MINE_ONLY",
|
|
42739
42947
|
},
|
|
42740
|
-
{ widget: "TAG", vocabulary:
|
|
42948
|
+
{ widget: "TAG", vocabulary: commentsVobArr },
|
|
42741
42949
|
],
|
|
42742
42950
|
mode: "html",
|
|
42743
42951
|
});
|
|
@@ -42902,7 +43110,7 @@ window.CommentOnBack = CommentOnBack;
|
|
|
42902
43110
|
|
|
42903
43111
|
|
|
42904
43112
|
<div id="sticky-footer">
|
|
42905
|
-
<div class="build-version">SDK v2.0.
|
|
43113
|
+
<div class="build-version">SDK v2.0.50</div>
|
|
42906
43114
|
<div class="relative-position">
|
|
42907
43115
|
<button id="unvired-more-btn" class="ui button primary dataGrid-addRow" onclick="toggleTooltip()">
|
|
42908
43116
|
<i class="icon options"></i>
|
|
@@ -43068,7 +43276,7 @@ window.CommentOnBack = CommentOnBack;
|
|
|
43068
43276
|
platform, language, translations,
|
|
43069
43277
|
environmentVariable, themeData,
|
|
43070
43278
|
userData, controlData, showBackButton, showMoreButton,
|
|
43071
|
-
privateExternal, permission, attachmentfileKeys, commentsData,
|
|
43279
|
+
privateExternal, permission, attachmentfileKeys, commentsData, commentsVobArr,
|
|
43072
43280
|
userList
|
|
43073
43281
|
} = event.data;
|
|
43074
43282
|
|
|
@@ -43176,7 +43384,7 @@ window.CommentOnBack = CommentOnBack;
|
|
|
43176
43384
|
window.FORM_PREVIOUS_DATA = formPreviousData;
|
|
43177
43385
|
window.FORM_MODE = mode;
|
|
43178
43386
|
window.FORM_COMMENTS_DATA = commentsData || [];
|
|
43179
|
-
window.FORM_VOB_ARR =
|
|
43387
|
+
window.FORM_VOB_ARR = commentsVobArr || [];
|
|
43180
43388
|
window.FORM_USERS_LIST = userList || [];
|
|
43181
43389
|
|
|
43182
43390
|
window.FORM_PLATFORM = platform;
|