@unvired/turboforms-embed-sdk 2.0.49 → 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 +8 -8
- package/dist/turboforms.html +206 -10
- package/dist/turboforms.js +8 -8
- package/package.json +1 -1
package/dist/turboforms.html
CHANGED
|
@@ -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
|
|
|
@@ -22437,7 +22622,13 @@ function showFormView() {
|
|
|
22437
22622
|
if (stickyHeader) stickyHeader.style.display = "";
|
|
22438
22623
|
if (formEl) formEl.style.display = "";
|
|
22439
22624
|
if (stickyFooter) stickyFooter.style.display = "flex";
|
|
22440
|
-
if (formBackBtn)
|
|
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
|
+
}
|
|
22441
22632
|
}
|
|
22442
22633
|
|
|
22443
22634
|
function showCommentsView() {
|
|
@@ -41661,10 +41852,12 @@ async function loadTRform(
|
|
|
41661
41852
|
let initialDataSet = false;
|
|
41662
41853
|
formObj.on("change", () => {
|
|
41663
41854
|
if (!initialDataSet) {
|
|
41664
|
-
|
|
41665
|
-
|
|
41666
|
-
|
|
41667
|
-
|
|
41855
|
+
if (!initialFormData) {
|
|
41856
|
+
try {
|
|
41857
|
+
initialFormData = JSON.parse(JSON.stringify(formObj.getValue().data));
|
|
41858
|
+
} catch (e) {
|
|
41859
|
+
initialFormData = formObj.getValue().data;
|
|
41860
|
+
}
|
|
41668
41861
|
}
|
|
41669
41862
|
initialDataSet = true;
|
|
41670
41863
|
}
|
|
@@ -42513,6 +42706,9 @@ window.FormOnPrevious = function () {
|
|
|
42513
42706
|
window.formOnCompleteFunction = FormOnComplete;
|
|
42514
42707
|
|
|
42515
42708
|
window.resetFormCache = resetFormCache;
|
|
42709
|
+
window.resetInitialFormData = function() {
|
|
42710
|
+
initialFormData = null;
|
|
42711
|
+
};
|
|
42516
42712
|
|
|
42517
42713
|
// Notify that loadTRform is ready (for event-based coordination)
|
|
42518
42714
|
document.dispatchEvent(new CustomEvent('LoadRNformReady'));
|
|
@@ -42688,7 +42884,7 @@ async function loadCommentsform(
|
|
|
42688
42884
|
template,
|
|
42689
42885
|
userData,
|
|
42690
42886
|
commentsData,
|
|
42691
|
-
|
|
42887
|
+
commentsVobArr,
|
|
42692
42888
|
users = []
|
|
42693
42889
|
) {
|
|
42694
42890
|
// ✅ Clean up existing instances before creating new ones
|
|
@@ -42749,7 +42945,7 @@ async function loadCommentsform(
|
|
|
42749
42945
|
userSuggestions: users,
|
|
42750
42946
|
editable: "MINE_ONLY",
|
|
42751
42947
|
},
|
|
42752
|
-
{ widget: "TAG", vocabulary:
|
|
42948
|
+
{ widget: "TAG", vocabulary: commentsVobArr },
|
|
42753
42949
|
],
|
|
42754
42950
|
mode: "html",
|
|
42755
42951
|
});
|
|
@@ -42914,7 +43110,7 @@ window.CommentOnBack = CommentOnBack;
|
|
|
42914
43110
|
|
|
42915
43111
|
|
|
42916
43112
|
<div id="sticky-footer">
|
|
42917
|
-
<div class="build-version">SDK v2.0.
|
|
43113
|
+
<div class="build-version">SDK v2.0.50</div>
|
|
42918
43114
|
<div class="relative-position">
|
|
42919
43115
|
<button id="unvired-more-btn" class="ui button primary dataGrid-addRow" onclick="toggleTooltip()">
|
|
42920
43116
|
<i class="icon options"></i>
|
|
@@ -43080,7 +43276,7 @@ window.CommentOnBack = CommentOnBack;
|
|
|
43080
43276
|
platform, language, translations,
|
|
43081
43277
|
environmentVariable, themeData,
|
|
43082
43278
|
userData, controlData, showBackButton, showMoreButton,
|
|
43083
|
-
privateExternal, permission, attachmentfileKeys, commentsData,
|
|
43279
|
+
privateExternal, permission, attachmentfileKeys, commentsData, commentsVobArr,
|
|
43084
43280
|
userList
|
|
43085
43281
|
} = event.data;
|
|
43086
43282
|
|
|
@@ -43188,7 +43384,7 @@ window.CommentOnBack = CommentOnBack;
|
|
|
43188
43384
|
window.FORM_PREVIOUS_DATA = formPreviousData;
|
|
43189
43385
|
window.FORM_MODE = mode;
|
|
43190
43386
|
window.FORM_COMMENTS_DATA = commentsData || [];
|
|
43191
|
-
window.FORM_VOB_ARR =
|
|
43387
|
+
window.FORM_VOB_ARR = commentsVobArr || [];
|
|
43192
43388
|
window.FORM_USERS_LIST = userList || [];
|
|
43193
43389
|
|
|
43194
43390
|
window.FORM_PLATFORM = platform;
|