web-mojo 2.1.355 → 2.1.362
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/dist/admin.cjs.js +1 -1
- package/dist/admin.es.js +10 -10
- package/dist/auth.cjs.js +1 -1
- package/dist/auth.cjs.js.map +1 -1
- package/dist/auth.es.js +3 -3
- package/dist/auth.es.js.map +1 -1
- package/dist/charts.cjs.js +1 -1
- package/dist/charts.es.js +2 -2
- package/dist/chunks/{ContextMenu-CaO_Wb-z.js → ContextMenu-B1iN4ArK.js} +2 -2
- package/dist/chunks/{ContextMenu-CaO_Wb-z.js.map → ContextMenu-B1iN4ArK.js.map} +1 -1
- package/dist/chunks/{ContextMenu-iaY1S0SP.js → ContextMenu-Bh_lLoz2.js} +2 -2
- package/dist/chunks/{ContextMenu-iaY1S0SP.js.map → ContextMenu-Bh_lLoz2.js.map} +1 -1
- package/dist/chunks/{DataView-Cyk0e7AN.js → DataView-BPZ5eISe.js} +2 -2
- package/dist/chunks/{DataView-Cyk0e7AN.js.map → DataView-BPZ5eISe.js.map} +1 -1
- package/dist/chunks/{DataView-krcnWI32.js → DataView-pFA8BU-t.js} +2 -2
- package/dist/chunks/{DataView-krcnWI32.js.map → DataView-pFA8BU-t.js.map} +1 -1
- package/dist/chunks/{Dialog-CYmFy-eO.js → Dialog-BccYQCCA.js} +5 -5
- package/dist/chunks/{Dialog-CYmFy-eO.js.map → Dialog-BccYQCCA.js.map} +1 -1
- package/dist/chunks/{Dialog-DYw31Dje.js → Dialog-xGWlYBDO.js} +2 -2
- package/dist/chunks/{Dialog-DYw31Dje.js.map → Dialog-xGWlYBDO.js.map} +1 -1
- package/dist/chunks/{FilePreviewView-CKGKsiXj.js → FilePreviewView-BGZUCgI4.js} +2 -2
- package/dist/chunks/{FilePreviewView-CKGKsiXj.js.map → FilePreviewView-BGZUCgI4.js.map} +1 -1
- package/dist/chunks/{FilePreviewView-Bsnm2Kci.js → FilePreviewView-DvZzrOtt.js} +6 -6
- package/dist/chunks/{FilePreviewView-Bsnm2Kci.js.map → FilePreviewView-DvZzrOtt.js.map} +1 -1
- package/dist/chunks/{FormView-DUd1S8uG.js → FormView-DRPt29EF.js} +2 -2
- package/dist/chunks/{FormView-DUd1S8uG.js.map → FormView-DRPt29EF.js.map} +1 -1
- package/dist/chunks/{FormView-C0vzlNsh.js → FormView-rtiwVHoR.js} +13 -37
- package/dist/chunks/{FormView-C0vzlNsh.js.map → FormView-rtiwVHoR.js.map} +1 -1
- package/dist/chunks/{MetricsChart-BZoxSlBL.js → MetricsChart-BJ9LBu5Q.js} +2 -2
- package/dist/chunks/{MetricsChart-BZoxSlBL.js.map → MetricsChart-BJ9LBu5Q.js.map} +1 -1
- package/dist/chunks/{MetricsChart-CUTtFUtT.js → MetricsChart-DE3G8LgS.js} +3 -3
- package/dist/chunks/{MetricsChart-CUTtFUtT.js.map → MetricsChart-DE3G8LgS.js.map} +1 -1
- package/dist/chunks/{PDFViewer-CMUMrupI.js → PDFViewer-D7kCo1x3.js} +2 -2
- package/dist/chunks/{PDFViewer-CMUMrupI.js.map → PDFViewer-D7kCo1x3.js.map} +1 -1
- package/dist/chunks/{PDFViewer-Cu7dvzI9.js → PDFViewer-DRKZrcCF.js} +3 -3
- package/dist/chunks/{PDFViewer-Cu7dvzI9.js.map → PDFViewer-DRKZrcCF.js.map} +1 -1
- package/dist/chunks/{Page-CvTKpKY7.js → Page-CC9vB_Gi.js} +2 -2
- package/dist/chunks/{Page-CvTKpKY7.js.map → Page-CC9vB_Gi.js.map} +1 -1
- package/dist/chunks/{Page-D1uPtRm3.js → Page-DnYOBzbF.js} +2 -2
- package/dist/chunks/{Page-D1uPtRm3.js.map → Page-DnYOBzbF.js.map} +1 -1
- package/dist/chunks/{TopNav-C97SDt7k.js → TopNav-CkWwWYMm.js} +2 -2
- package/dist/chunks/{TopNav-C97SDt7k.js.map → TopNav-CkWwWYMm.js.map} +1 -1
- package/dist/chunks/{TopNav-CpuxII1x.js → TopNav-FSY-N8Q-.js} +2 -2
- package/dist/chunks/{TopNav-CpuxII1x.js.map → TopNav-FSY-N8Q-.js.map} +1 -1
- package/dist/chunks/{WebApp-BGlgRy-V.js → WebApp-BM2CoF7q.js} +2 -2
- package/dist/chunks/{WebApp-BGlgRy-V.js.map → WebApp-BM2CoF7q.js.map} +1 -1
- package/dist/chunks/{WebApp-Br3Dja6P.js → WebApp-DYte9XVv.js} +12 -12
- package/dist/chunks/{WebApp-Br3Dja6P.js.map → WebApp-DYte9XVv.js.map} +1 -1
- package/dist/docit.cjs.js +1 -1
- package/dist/docit.es.js +5 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +11 -11
- package/dist/lightbox.cjs.js +1 -1
- package/dist/lightbox.es.js +4 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Mustache, h as MOJOUtils, V as View } from "./WebApp-
|
|
1
|
+
import { M as Mustache, h as MOJOUtils, V as View } from "./WebApp-DYte9XVv.js";
|
|
2
2
|
class FormBuilder {
|
|
3
3
|
constructor(config = {}) {
|
|
4
4
|
this.fields = config.fields || [];
|
|
@@ -5590,9 +5590,9 @@ class FieldStatusManager {
|
|
|
5590
5590
|
* Find existing status container or create one based on field type
|
|
5591
5591
|
*/
|
|
5592
5592
|
findOrCreateStatusContainer() {
|
|
5593
|
-
let container = this.fieldElement.parentElement.querySelector(".field-status
|
|
5594
|
-
if (!container
|
|
5595
|
-
const label = this.
|
|
5593
|
+
let container = this.fieldElement.parentElement.querySelector(".field-status-label-inline");
|
|
5594
|
+
if (!container) {
|
|
5595
|
+
const label = this.findFieldLabel();
|
|
5596
5596
|
if (label) {
|
|
5597
5597
|
container = label.querySelector(".field-status-label-inline");
|
|
5598
5598
|
}
|
|
@@ -5607,18 +5607,9 @@ class FieldStatusManager {
|
|
|
5607
5607
|
*/
|
|
5608
5608
|
createStatusContainer() {
|
|
5609
5609
|
const fieldType = this.getFieldType();
|
|
5610
|
-
|
|
5610
|
+
this.getPlacementStrategy(fieldType);
|
|
5611
5611
|
const container = document.createElement("div");
|
|
5612
|
-
|
|
5613
|
-
case "label-inline":
|
|
5614
|
-
return this.createLabelInlineContainer(container);
|
|
5615
|
-
case "input-overlay":
|
|
5616
|
-
return this.createInputOverlayContainer(container);
|
|
5617
|
-
case "full-overlay":
|
|
5618
|
-
return this.createFullOverlayContainer(container);
|
|
5619
|
-
default:
|
|
5620
|
-
return this.createInputOverlayContainer(container);
|
|
5621
|
-
}
|
|
5612
|
+
return this.createLabelInlineContainer(container);
|
|
5622
5613
|
}
|
|
5623
5614
|
/**
|
|
5624
5615
|
* Determine field type from element
|
|
@@ -5642,26 +5633,15 @@ class FieldStatusManager {
|
|
|
5642
5633
|
* Determine placement strategy for field type
|
|
5643
5634
|
*/
|
|
5644
5635
|
getPlacementStrategy(fieldType) {
|
|
5645
|
-
|
|
5646
|
-
case "toggle":
|
|
5647
|
-
return "label-inline";
|
|
5648
|
-
// New inline label approach
|
|
5649
|
-
case "textarea":
|
|
5650
|
-
return "full-overlay";
|
|
5651
|
-
case "input":
|
|
5652
|
-
case "select":
|
|
5653
|
-
return "input-overlay";
|
|
5654
|
-
default:
|
|
5655
|
-
return "input-overlay";
|
|
5656
|
-
}
|
|
5636
|
+
return "label-inline";
|
|
5657
5637
|
}
|
|
5658
5638
|
/**
|
|
5659
|
-
* Create inline label status container (for
|
|
5639
|
+
* Create inline label status container (for all input types)
|
|
5660
5640
|
*/
|
|
5661
5641
|
createLabelInlineContainer(container) {
|
|
5662
5642
|
container.className = "field-status-label-inline";
|
|
5663
5643
|
container.innerHTML = this.getStatusHTML();
|
|
5664
|
-
const label = this.
|
|
5644
|
+
const label = this.findFieldLabel();
|
|
5665
5645
|
if (label) {
|
|
5666
5646
|
label.appendChild(container);
|
|
5667
5647
|
} else {
|
|
@@ -5670,9 +5650,9 @@ class FieldStatusManager {
|
|
|
5670
5650
|
return container;
|
|
5671
5651
|
}
|
|
5672
5652
|
/**
|
|
5673
|
-
* Find the label associated with
|
|
5653
|
+
* Find the label associated with any field type
|
|
5674
5654
|
*/
|
|
5675
|
-
|
|
5655
|
+
findFieldLabel() {
|
|
5676
5656
|
if (this.fieldElement.id) {
|
|
5677
5657
|
const label2 = document.querySelector(`label[for="${this.fieldElement.id}"]`);
|
|
5678
5658
|
if (label2) return label2;
|
|
@@ -5743,11 +5723,7 @@ class FieldStatusManager {
|
|
|
5743
5723
|
*/
|
|
5744
5724
|
showStatus(type, options = {}) {
|
|
5745
5725
|
this.clearTimeout(type);
|
|
5746
|
-
|
|
5747
|
-
this.showFullOverlayStatus(type, options);
|
|
5748
|
-
} else {
|
|
5749
|
-
this.showStandardStatus(type, options);
|
|
5750
|
-
}
|
|
5726
|
+
this.showStandardStatus(type, options);
|
|
5751
5727
|
}
|
|
5752
5728
|
/**
|
|
5753
5729
|
* Show status for standard containers (right-side, input-overlay)
|
|
@@ -5865,4 +5841,4 @@ export {
|
|
|
5865
5841
|
applyFileDropMixin as a,
|
|
5866
5842
|
FormView$1 as b
|
|
5867
5843
|
};
|
|
5868
|
-
//# sourceMappingURL=FormView-
|
|
5844
|
+
//# sourceMappingURL=FormView-rtiwVHoR.js.map
|