web-mojo 2.1.70 → 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.
Files changed (81) hide show
  1. package/dist/admin.cjs.js +1 -1
  2. package/dist/admin.cjs.js.map +1 -1
  3. package/dist/admin.es.js +14 -26
  4. package/dist/admin.es.js.map +1 -1
  5. package/dist/auth.cjs.js +1 -1
  6. package/dist/auth.cjs.js.map +1 -1
  7. package/dist/auth.css +179 -660
  8. package/dist/auth.es.js +83 -43
  9. package/dist/auth.es.js.map +1 -1
  10. package/dist/charts.cjs.js +1 -1
  11. package/dist/charts.es.js +2 -2
  12. package/dist/chunks/{ContextMenu-Cds78Jny.js → ContextMenu-CBsEWxms.js} +2 -2
  13. package/dist/chunks/{ContextMenu-Cds78Jny.js.map → ContextMenu-CBsEWxms.js.map} +1 -1
  14. package/dist/chunks/{ContextMenu-CD5yoYTS.js → ContextMenu-Dp2L51_O.js} +2 -2
  15. package/dist/chunks/{ContextMenu-CD5yoYTS.js.map → ContextMenu-Dp2L51_O.js.map} +1 -1
  16. package/dist/chunks/{DataView-DPSnw5Nb.js → DataView-CP1qLEAn.js} +2 -2
  17. package/dist/chunks/{DataView-DPSnw5Nb.js.map → DataView-CP1qLEAn.js.map} +1 -1
  18. package/dist/chunks/{DataView-CfPr57_R.js → DataView-DYXd8IT_.js} +2 -2
  19. package/dist/chunks/{DataView-CfPr57_R.js.map → DataView-DYXd8IT_.js.map} +1 -1
  20. package/dist/chunks/{Dialog-B9C-Tivh.js → Dialog-BJgl27dz.js} +5 -5
  21. package/dist/chunks/{Dialog-B9C-Tivh.js.map → Dialog-BJgl27dz.js.map} +1 -1
  22. package/dist/chunks/{Dialog-BqNrby-G.js → Dialog-C7eQM655.js} +2 -2
  23. package/dist/chunks/{Dialog-BqNrby-G.js.map → Dialog-C7eQM655.js.map} +1 -1
  24. package/dist/chunks/FilePreviewView-BsX81q61.js +2 -0
  25. package/dist/chunks/FilePreviewView-BsX81q61.js.map +1 -0
  26. package/dist/chunks/{FilePreviewView-Bp09ZiEw.js → FilePreviewView-rWCKXhwS.js} +77 -32
  27. package/dist/chunks/FilePreviewView-rWCKXhwS.js.map +1 -0
  28. package/dist/chunks/{FormView-DWR9Albb.js → FormView-Da3OHCwQ.js} +54 -7
  29. package/dist/chunks/FormView-Da3OHCwQ.js.map +1 -0
  30. package/dist/chunks/FormView-zirMC01H.js +2 -0
  31. package/dist/chunks/FormView-zirMC01H.js.map +1 -0
  32. package/dist/chunks/{MetricsChart-BHv1mj0l.js → MetricsChart-BFZhPmLN.js} +2 -2
  33. package/dist/chunks/{MetricsChart-BHv1mj0l.js.map → MetricsChart-BFZhPmLN.js.map} +1 -1
  34. package/dist/chunks/{MetricsChart-Du8mtBlY.js → MetricsChart-Dx3EUpkC.js} +3 -3
  35. package/dist/chunks/{MetricsChart-Du8mtBlY.js.map → MetricsChart-Dx3EUpkC.js.map} +1 -1
  36. package/dist/chunks/{PDFViewer-9beaQaeq.js → PDFViewer-Cvn5uIzK.js} +3 -3
  37. package/dist/chunks/{PDFViewer-9beaQaeq.js.map → PDFViewer-Cvn5uIzK.js.map} +1 -1
  38. package/dist/chunks/{PDFViewer-C-RkFhlV.js → PDFViewer-DFPUg3Q2.js} +2 -2
  39. package/dist/chunks/{PDFViewer-C-RkFhlV.js.map → PDFViewer-DFPUg3Q2.js.map} +1 -1
  40. package/dist/chunks/{Page-Dg7X1BML.js → Page-CSdWY0RU.js} +2 -2
  41. package/dist/chunks/{Page-Dg7X1BML.js.map → Page-CSdWY0RU.js.map} +1 -1
  42. package/dist/chunks/{Page-KLwFxSBF.js → Page-jLcH5oU3.js} +2 -2
  43. package/dist/chunks/{Page-KLwFxSBF.js.map → Page-jLcH5oU3.js.map} +1 -1
  44. package/dist/chunks/{TopNav-47rWUwBU.js → TopNav-BRMYx23E.js} +14 -4
  45. package/dist/chunks/TopNav-BRMYx23E.js.map +1 -0
  46. package/dist/chunks/TopNav-CXtXM9fQ.js +2 -0
  47. package/dist/chunks/TopNav-CXtXM9fQ.js.map +1 -0
  48. package/dist/chunks/{User-DNxU39NR.js → User-BhmqIo3p.js} +31 -2
  49. package/dist/chunks/User-BhmqIo3p.js.map +1 -0
  50. package/dist/chunks/User-DSQo0K5v.js +3 -0
  51. package/dist/chunks/User-DSQo0K5v.js.map +1 -0
  52. package/dist/chunks/WebApp-0BphS1GM.js +2 -0
  53. package/dist/chunks/WebApp-0BphS1GM.js.map +1 -0
  54. package/dist/chunks/{WebApp-No-qysKc.js → WebApp-Cs-c1f0h.js} +161 -26
  55. package/dist/chunks/WebApp-Cs-c1f0h.js.map +1 -0
  56. package/dist/css/web-mojo.css +2 -2
  57. package/dist/docit.cjs.js +1 -1
  58. package/dist/docit.es.js +6 -6
  59. package/dist/index.cjs.js +1 -1
  60. package/dist/index.cjs.js.map +1 -1
  61. package/dist/index.es.js +16 -15
  62. package/dist/index.es.js.map +1 -1
  63. package/dist/lightbox.cjs.js +1 -1
  64. package/dist/lightbox.es.js +4 -4
  65. package/dist/portal.css +258 -44
  66. package/package.json +1 -1
  67. package/dist/chunks/FilePreviewView-Bp09ZiEw.js.map +0 -1
  68. package/dist/chunks/FilePreviewView-CnZhI3Yw.js +0 -2
  69. package/dist/chunks/FilePreviewView-CnZhI3Yw.js.map +0 -1
  70. package/dist/chunks/FormView-D0dUMQGM.js +0 -2
  71. package/dist/chunks/FormView-D0dUMQGM.js.map +0 -1
  72. package/dist/chunks/FormView-DWR9Albb.js.map +0 -1
  73. package/dist/chunks/TopNav-47rWUwBU.js.map +0 -1
  74. package/dist/chunks/TopNav-DAB4M5C6.js +0 -2
  75. package/dist/chunks/TopNav-DAB4M5C6.js.map +0 -1
  76. package/dist/chunks/User-DNxU39NR.js.map +0 -1
  77. package/dist/chunks/User-lVECCjCu.js +0 -3
  78. package/dist/chunks/User-lVECCjCu.js.map +0 -1
  79. package/dist/chunks/WebApp-Bci5ZTRS.js +0 -2
  80. package/dist/chunks/WebApp-Bci5ZTRS.js.map +0 -1
  81. package/dist/chunks/WebApp-No-qysKc.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { M as Mustache, h as MOJOUtils, V as View } from "./WebApp-No-qysKc.js";
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
- element.addEventListener("keydown", this.handleInputKeydown.bind(this), { once: true });
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
- this.removeTag(this.tags.length - 1);
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
- this.focusTag(this.tags.length - 1);
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
  }
@@ -4789,7 +4836,7 @@ class FormView extends View {
4789
4836
  return true;
4790
4837
  }
4791
4838
  if (fieldType === "collection") {
4792
- if (typeof originalValue === "object" && typeof newValue === "string") {
4839
+ if (typeof originalValue === "object" && originalValue !== null && originalValue !== void 0 && typeof newValue === "string") {
4793
4840
  if (newValue === "0") {
4794
4841
  return originalValue !== null;
4795
4842
  }
@@ -5072,4 +5119,4 @@ export {
5072
5119
  applyFileDropMixin as a,
5073
5120
  FormView$1 as b
5074
5121
  };
5075
- //# sourceMappingURL=FormView-DWR9Albb.js.map
5122
+ //# sourceMappingURL=FormView-Da3OHCwQ.js.map