web-mojo 2.1.116 → 2.1.144
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 +11 -11
- 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-DRp4XFcC.js → ContextMenu-CBsEWxms.js} +2 -2
- package/dist/chunks/{ContextMenu-DRp4XFcC.js.map → ContextMenu-CBsEWxms.js.map} +1 -1
- package/dist/chunks/{ContextMenu-CUvwhX0l.js → ContextMenu-Dp2L51_O.js} +2 -2
- package/dist/chunks/{ContextMenu-CUvwhX0l.js.map → ContextMenu-Dp2L51_O.js.map} +1 -1
- package/dist/chunks/{DataView-D4K18g9k.js → DataView-CP1qLEAn.js} +2 -2
- package/dist/chunks/{DataView-D4K18g9k.js.map → DataView-CP1qLEAn.js.map} +1 -1
- package/dist/chunks/{DataView-DsSzhNcH.js → DataView-DYXd8IT_.js} +2 -2
- package/dist/chunks/{DataView-DsSzhNcH.js.map → DataView-DYXd8IT_.js.map} +1 -1
- package/dist/chunks/{Dialog-DXrIEti_.js → Dialog-BJgl27dz.js} +5 -5
- package/dist/chunks/{Dialog-DXrIEti_.js.map → Dialog-BJgl27dz.js.map} +1 -1
- package/dist/chunks/{Dialog--4J9O60R.js → Dialog-C7eQM655.js} +2 -2
- package/dist/chunks/{Dialog--4J9O60R.js.map → Dialog-C7eQM655.js.map} +1 -1
- package/dist/chunks/{FilePreviewView-NeIc7I0M.js → FilePreviewView-BsX81q61.js} +2 -2
- package/dist/chunks/{FilePreviewView-NeIc7I0M.js.map → FilePreviewView-BsX81q61.js.map} +1 -1
- package/dist/chunks/{FilePreviewView-HtW6KRdR.js → FilePreviewView-rWCKXhwS.js} +6 -6
- package/dist/chunks/{FilePreviewView-HtW6KRdR.js.map → FilePreviewView-rWCKXhwS.js.map} +1 -1
- package/dist/chunks/{FormView-CIa1o6FC.js → FormView-Da3OHCwQ.js} +53 -6
- package/dist/chunks/FormView-Da3OHCwQ.js.map +1 -0
- package/dist/chunks/FormView-zirMC01H.js +2 -0
- package/dist/chunks/FormView-zirMC01H.js.map +1 -0
- package/dist/chunks/{MetricsChart-DemSixLu.js → MetricsChart-BFZhPmLN.js} +2 -2
- package/dist/chunks/{MetricsChart-DemSixLu.js.map → MetricsChart-BFZhPmLN.js.map} +1 -1
- package/dist/chunks/{MetricsChart-Dx66dFfT.js → MetricsChart-Dx3EUpkC.js} +3 -3
- package/dist/chunks/{MetricsChart-Dx66dFfT.js.map → MetricsChart-Dx3EUpkC.js.map} +1 -1
- package/dist/chunks/{PDFViewer-vqSk5_Md.js → PDFViewer-Cvn5uIzK.js} +3 -3
- package/dist/chunks/{PDFViewer-vqSk5_Md.js.map → PDFViewer-Cvn5uIzK.js.map} +1 -1
- package/dist/chunks/{PDFViewer-rK7woJFy.js → PDFViewer-DFPUg3Q2.js} +2 -2
- package/dist/chunks/{PDFViewer-rK7woJFy.js.map → PDFViewer-DFPUg3Q2.js.map} +1 -1
- package/dist/chunks/{Page-BetG0u0h.js → Page-CSdWY0RU.js} +2 -2
- package/dist/chunks/{Page-BetG0u0h.js.map → Page-CSdWY0RU.js.map} +1 -1
- package/dist/chunks/{Page-B88l1hS3.js → Page-jLcH5oU3.js} +2 -2
- package/dist/chunks/{Page-B88l1hS3.js.map → Page-jLcH5oU3.js.map} +1 -1
- package/dist/chunks/{TopNav-B-ox8ef4.js → TopNav-BRMYx23E.js} +2 -2
- package/dist/chunks/{TopNav-B-ox8ef4.js.map → TopNav-BRMYx23E.js.map} +1 -1
- package/dist/chunks/{TopNav-aS3Dyowj.js → TopNav-CXtXM9fQ.js} +2 -2
- package/dist/chunks/{TopNav-aS3Dyowj.js.map → TopNav-CXtXM9fQ.js.map} +1 -1
- package/dist/chunks/{User-B3Iz5PQD.js → User-BhmqIo3p.js} +2 -2
- package/dist/chunks/{User-B3Iz5PQD.js.map → User-BhmqIo3p.js.map} +1 -1
- package/dist/chunks/{User-Bi9SbbzB.js → User-DSQo0K5v.js} +2 -2
- package/dist/chunks/{User-Bi9SbbzB.js.map → User-DSQo0K5v.js.map} +1 -1
- package/dist/chunks/WebApp-0BphS1GM.js +2 -0
- package/dist/chunks/WebApp-0BphS1GM.js.map +1 -0
- package/dist/chunks/{WebApp-Bdehjb5l.js → WebApp-Cs-c1f0h.js} +32 -26
- package/dist/chunks/WebApp-Cs-c1f0h.js.map +1 -0
- package/dist/docit.cjs.js +1 -1
- package/dist/docit.es.js +6 -6
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +10 -10
- package/dist/lightbox.cjs.js +1 -1
- package/dist/lightbox.es.js +4 -4
- package/package.json +1 -1
- package/dist/chunks/FormView-CIa1o6FC.js.map +0 -1
- package/dist/chunks/FormView-CTGzaTJ0.js +0 -2
- package/dist/chunks/FormView-CTGzaTJ0.js.map +0 -1
- package/dist/chunks/WebApp-Bdehjb5l.js.map +0 -1
- package/dist/chunks/WebApp-DGWgRFwF.js +0 -2
- package/dist/chunks/WebApp-DGWgRFwF.js.map +0 -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-Cs-c1f0h.js";
|
|
2
2
|
class FormBuilder {
|
|
3
3
|
constructor(config = {}) {
|
|
4
4
|
this.fields = config.fields || [];
|
|
@@ -2062,10 +2062,14 @@ class TagInputView extends View {
|
|
|
2062
2062
|
* Handle focus on container
|
|
2063
2063
|
*/
|
|
2064
2064
|
async onActionFocusInput(_event, _element) {
|
|
2065
|
+
this.focus();
|
|
2066
|
+
}
|
|
2067
|
+
focus() {
|
|
2065
2068
|
const input = this.element.querySelector(".tag-input-field");
|
|
2066
2069
|
if (input && !this.disabled) {
|
|
2067
2070
|
input.focus();
|
|
2068
2071
|
}
|
|
2072
|
+
this.focusedTagIndex = -1;
|
|
2069
2073
|
}
|
|
2070
2074
|
/**
|
|
2071
2075
|
* Handle tag removal
|
|
@@ -2092,17 +2096,26 @@ class TagInputView extends View {
|
|
|
2092
2096
|
}
|
|
2093
2097
|
return;
|
|
2094
2098
|
}
|
|
2095
|
-
|
|
2099
|
+
}
|
|
2100
|
+
bindEvents() {
|
|
2101
|
+
if (!this.__bnd_keydown) this.__bnd_keydown = this.handleInputKeydown.bind(this);
|
|
2102
|
+
this.element.addEventListener("keydown", this.__bnd_keydown);
|
|
2103
|
+
this.events.bind(this.element);
|
|
2104
|
+
}
|
|
2105
|
+
unbindEvents() {
|
|
2106
|
+
if (this.__bnd_keydown) this.element.removeEventListener("keydown", this.__bnd_keydown);
|
|
2107
|
+
this.events.unbind();
|
|
2096
2108
|
}
|
|
2097
2109
|
/**
|
|
2098
2110
|
* Handle keyboard interactions
|
|
2099
2111
|
*/
|
|
2100
2112
|
handleInputKeydown(event) {
|
|
2101
2113
|
const input = event.target;
|
|
2102
|
-
const value = input.value;
|
|
2114
|
+
const value = input.value || "";
|
|
2103
2115
|
switch (event.key) {
|
|
2104
2116
|
case "Enter":
|
|
2105
2117
|
case "Tab":
|
|
2118
|
+
case ",":
|
|
2106
2119
|
if (value.trim()) {
|
|
2107
2120
|
event.preventDefault();
|
|
2108
2121
|
this.addTag(value);
|
|
@@ -2112,13 +2125,46 @@ class TagInputView extends View {
|
|
|
2112
2125
|
case "Backspace":
|
|
2113
2126
|
if (value === "" && this.tags.length > 0) {
|
|
2114
2127
|
event.preventDefault();
|
|
2115
|
-
|
|
2128
|
+
if (this.focusedTagIndex >= 0) {
|
|
2129
|
+
this.removeTag(this.focusedTagIndex);
|
|
2130
|
+
if (this.focusedTagIndex == 0) {
|
|
2131
|
+
this.focus();
|
|
2132
|
+
} else {
|
|
2133
|
+
this.focusTag(this.focusedTagIndex - 1);
|
|
2134
|
+
}
|
|
2135
|
+
} else {
|
|
2136
|
+
this.removeTag(this.tags.length - 1);
|
|
2137
|
+
}
|
|
2116
2138
|
}
|
|
2117
2139
|
break;
|
|
2118
2140
|
case "ArrowLeft":
|
|
2119
2141
|
if (value === "" && this.tags.length > 0) {
|
|
2120
2142
|
event.preventDefault();
|
|
2121
|
-
|
|
2143
|
+
if (this.focusedTagIndex >= 0) {
|
|
2144
|
+
const newIndex = this.focusedTagIndex - 1;
|
|
2145
|
+
if (newIndex >= 0) {
|
|
2146
|
+
this.focusTag(newIndex);
|
|
2147
|
+
} else {
|
|
2148
|
+
this.focus();
|
|
2149
|
+
}
|
|
2150
|
+
} else {
|
|
2151
|
+
this.focusTag(this.tags.length - 1);
|
|
2152
|
+
}
|
|
2153
|
+
}
|
|
2154
|
+
break;
|
|
2155
|
+
case "ArrowRight":
|
|
2156
|
+
if (value === "" && this.tags.length > 0) {
|
|
2157
|
+
event.preventDefault();
|
|
2158
|
+
if (this.focusedTagIndex >= 0) {
|
|
2159
|
+
const newIndex = this.focusedTagIndex + 1;
|
|
2160
|
+
if (newIndex < this.tags.length) {
|
|
2161
|
+
this.focusTag(newIndex);
|
|
2162
|
+
} else {
|
|
2163
|
+
this.focus();
|
|
2164
|
+
}
|
|
2165
|
+
} else {
|
|
2166
|
+
this.focusTag(0);
|
|
2167
|
+
}
|
|
2122
2168
|
}
|
|
2123
2169
|
break;
|
|
2124
2170
|
case "Escape":
|
|
@@ -2248,6 +2294,7 @@ class TagInputView extends View {
|
|
|
2248
2294
|
const tagElements = this.element.querySelectorAll(".tag-item");
|
|
2249
2295
|
if (tagElements[index]) {
|
|
2250
2296
|
this.focusedTagIndex = index;
|
|
2297
|
+
console.log(`Focused tag index: ${index}`);
|
|
2251
2298
|
tagElements[index].focus();
|
|
2252
2299
|
}
|
|
2253
2300
|
}
|
|
@@ -5072,4 +5119,4 @@ export {
|
|
|
5072
5119
|
applyFileDropMixin as a,
|
|
5073
5120
|
FormView$1 as b
|
|
5074
5121
|
};
|
|
5075
|
-
//# sourceMappingURL=FormView-
|
|
5122
|
+
//# sourceMappingURL=FormView-Da3OHCwQ.js.map
|