web-mojo 2.1.701 → 2.1.703

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 (61) hide show
  1. package/dist/admin.cjs.js +1 -1
  2. package/dist/admin.es.js +10 -10
  3. package/dist/auth.cjs.js +1 -1
  4. package/dist/auth.cjs.js.map +1 -1
  5. package/dist/auth.es.js +3 -3
  6. package/dist/auth.es.js.map +1 -1
  7. package/dist/charts.cjs.js +1 -1
  8. package/dist/charts.es.js +2 -2
  9. package/dist/chunks/ChatView-B-ALlbsJ.js +2 -0
  10. package/dist/chunks/ChatView-B-ALlbsJ.js.map +1 -0
  11. package/dist/chunks/{ChatView-B7yJCx17.js → ChatView-CzcjZ6QP.js} +51 -6
  12. package/dist/chunks/ChatView-CzcjZ6QP.js.map +1 -0
  13. package/dist/chunks/{ContextMenu-CWyVdD0T.js → ContextMenu-3XJxQeJC.js} +2 -2
  14. package/dist/chunks/{ContextMenu-CWyVdD0T.js.map → ContextMenu-3XJxQeJC.js.map} +1 -1
  15. package/dist/chunks/{ContextMenu-BiDmTQZo.js → ContextMenu-BLLaTKfb.js} +2 -2
  16. package/dist/chunks/{ContextMenu-BiDmTQZo.js.map → ContextMenu-BLLaTKfb.js.map} +1 -1
  17. package/dist/chunks/{DataView-Da5d73mm.js → DataView-NYvpXEiu.js} +2 -2
  18. package/dist/chunks/{DataView-Da5d73mm.js.map → DataView-NYvpXEiu.js.map} +1 -1
  19. package/dist/chunks/{DataView-CEdYpR2R.js → DataView-aE9jvYh1.js} +2 -2
  20. package/dist/chunks/{DataView-CEdYpR2R.js.map → DataView-aE9jvYh1.js.map} +1 -1
  21. package/dist/chunks/{Dialog-INdmGoDn.js → Dialog-BKMpiDdL.js} +2 -2
  22. package/dist/chunks/{Dialog-INdmGoDn.js.map → Dialog-BKMpiDdL.js.map} +1 -1
  23. package/dist/chunks/{Dialog-BvZ2fvRX.js → Dialog-DKYQBU7p.js} +5 -5
  24. package/dist/chunks/{Dialog-BvZ2fvRX.js.map → Dialog-DKYQBU7p.js.map} +1 -1
  25. package/dist/chunks/{FormView-D09jIpPW.js → FormView-DVBIrh9Q.js} +2 -2
  26. package/dist/chunks/{FormView-D09jIpPW.js.map → FormView-DVBIrh9Q.js.map} +1 -1
  27. package/dist/chunks/{FormView-DrvOoQIv.js → FormView-DV_HKp0B.js} +2 -2
  28. package/dist/chunks/{FormView-DrvOoQIv.js.map → FormView-DV_HKp0B.js.map} +1 -1
  29. package/dist/chunks/{MetricsMiniChartWidget-ZTG7qeuN.js → MetricsMiniChartWidget-k3WKOCxR.js} +3 -3
  30. package/dist/chunks/{MetricsMiniChartWidget-ZTG7qeuN.js.map → MetricsMiniChartWidget-k3WKOCxR.js.map} +1 -1
  31. package/dist/chunks/{MetricsMiniChartWidget-BPzkJlms.js → MetricsMiniChartWidget-lOwyTz8v.js} +2 -2
  32. package/dist/chunks/{MetricsMiniChartWidget-BPzkJlms.js.map → MetricsMiniChartWidget-lOwyTz8v.js.map} +1 -1
  33. package/dist/chunks/{PDFViewer-XPdHx5lU.js → PDFViewer-89y-uAXH.js} +3 -3
  34. package/dist/chunks/{PDFViewer-XPdHx5lU.js.map → PDFViewer-89y-uAXH.js.map} +1 -1
  35. package/dist/chunks/{PDFViewer-iUPvg3Pk.js → PDFViewer-BYcD9j5q.js} +2 -2
  36. package/dist/chunks/{PDFViewer-iUPvg3Pk.js.map → PDFViewer-BYcD9j5q.js.map} +1 -1
  37. package/dist/chunks/{Page-DjEZe6Y8.js → Page-CqYpkV9V.js} +2 -2
  38. package/dist/chunks/{Page-DjEZe6Y8.js.map → Page-CqYpkV9V.js.map} +1 -1
  39. package/dist/chunks/{Page-DaVKtn-L.js → Page-yJn8PtJJ.js} +2 -2
  40. package/dist/chunks/{Page-DaVKtn-L.js.map → Page-yJn8PtJJ.js.map} +1 -1
  41. package/dist/chunks/{TopNav-dQWeQUAc.js → TopNav-CfNvkf5T.js} +5 -5
  42. package/dist/chunks/{TopNav-dQWeQUAc.js.map → TopNav-CfNvkf5T.js.map} +1 -1
  43. package/dist/chunks/{TopNav-BnnxvlpA.js → TopNav-D_J-xBQS.js} +2 -2
  44. package/dist/chunks/{TopNav-BnnxvlpA.js.map → TopNav-D_J-xBQS.js.map} +1 -1
  45. package/dist/chunks/WebApp-Bjz0wkVk.js +2 -0
  46. package/dist/chunks/WebApp-Bjz0wkVk.js.map +1 -0
  47. package/dist/chunks/{WebApp-Di6aAIhF.js → WebApp-BxWFN9k7.js} +38 -13
  48. package/dist/chunks/WebApp-BxWFN9k7.js.map +1 -0
  49. package/dist/docit.cjs.js +1 -1
  50. package/dist/docit.es.js +5 -5
  51. package/dist/index.cjs.js +1 -1
  52. package/dist/index.es.js +11 -11
  53. package/dist/lightbox.cjs.js +1 -1
  54. package/dist/lightbox.es.js +4 -4
  55. package/package.json +1 -1
  56. package/dist/chunks/ChatView-B7yJCx17.js.map +0 -1
  57. package/dist/chunks/ChatView-DdifP25v.js +0 -2
  58. package/dist/chunks/ChatView-DdifP25v.js.map +0 -1
  59. package/dist/chunks/WebApp-Di6aAIhF.js.map +0 -1
  60. package/dist/chunks/WebApp-jb7JVJWT.js +0 -2
  61. package/dist/chunks/WebApp-jb7JVJWT.js.map +0 -1
@@ -1,8 +1,8 @@
1
- const VERSION = "2.1.701";
1
+ const VERSION = "2.1.703";
2
2
  const VERSION_MAJOR = 2;
3
3
  const VERSION_MINOR = 1;
4
- const VERSION_REVISION = 701;
5
- const BUILD_TIME = "2025-10-05T00:34:01.642Z";
4
+ const VERSION_REVISION = 703;
5
+ const BUILD_TIME = "2025-10-05T03:42:31.682Z";
6
6
  const VERSION_INFO = {
7
7
  full: VERSION,
8
8
  major: VERSION_MAJOR,
@@ -558,6 +558,7 @@ class DataFormatter {
558
558
  this.register("image", this.image.bind(this));
559
559
  this.register("tooltip", this.tooltip.bind(this));
560
560
  this.register("default", this.default.bind(this));
561
+ this.register("equals", this.equals.bind(this));
561
562
  this.register("json", this.json.bind(this));
562
563
  this.register("raw", (v) => v);
563
564
  this.register("custom", (v, fn) => typeof fn === "function" ? fn(v) : v);
@@ -1568,6 +1569,30 @@ class DataFormatter {
1568
1569
  default(value, defaultValue = "") {
1569
1570
  return value === null || value === void 0 || value === "" ? defaultValue : value;
1570
1571
  }
1572
+ /**
1573
+ * Compare value and return one of two results based on equality
1574
+ * Useful for conditional CSS classes, text, or any conditional output
1575
+ *
1576
+ * @param {*} value - Value to compare
1577
+ * @param {*} compareValue - Value to compare against
1578
+ * @param {*} trueResult - Result if values are equal
1579
+ * @param {*} falseResult - Result if values are not equal (optional, defaults to empty string)
1580
+ * @returns {*} trueResult or falseResult
1581
+ *
1582
+ * @example
1583
+ * // CSS classes
1584
+ * {{status|equals:1:'text-success':'text-secondary'}}
1585
+ * {{model.state|equals:'active':'badge-success':'badge-secondary'}}
1586
+ *
1587
+ * // Text output
1588
+ * {{role|equals:'admin':'Administrator':'User'}}
1589
+ *
1590
+ * // Numbers
1591
+ * {{count|equals:0:'No items':'Has items'}}
1592
+ */
1593
+ equals(value, compareValue, trueResult, falseResult = "") {
1594
+ return value == compareValue ? trueResult : falseResult;
1595
+ }
1571
1596
  /**
1572
1597
  * Format as JSON
1573
1598
  * @param {*} value - Value to stringify
@@ -4986,7 +5011,7 @@ class WebApp {
4986
5011
  */
4987
5012
  async showError(message) {
4988
5013
  try {
4989
- const Dialog = (await import("./Dialog-BvZ2fvRX.js")).default;
5014
+ const Dialog = (await import("./Dialog-DKYQBU7p.js")).default;
4990
5015
  await Dialog.alert(message, "Error", { size: "md", class: "text-danger" });
4991
5016
  } catch (e) {
4992
5017
  this.events.emit("notification", { message, type: "error" });
@@ -5003,7 +5028,7 @@ class WebApp {
5003
5028
  */
5004
5029
  async showSuccess(message) {
5005
5030
  try {
5006
- const Dialog = (await import("./Dialog-BvZ2fvRX.js")).default;
5031
+ const Dialog = (await import("./Dialog-DKYQBU7p.js")).default;
5007
5032
  await Dialog.alert(message, "Success", { size: "md", class: "text-success" });
5008
5033
  } catch (e) {
5009
5034
  this.events.emit("notification", { message, type: "success" });
@@ -5020,7 +5045,7 @@ class WebApp {
5020
5045
  */
5021
5046
  async showInfo(message) {
5022
5047
  try {
5023
- const Dialog = (await import("./Dialog-BvZ2fvRX.js")).default;
5048
+ const Dialog = (await import("./Dialog-DKYQBU7p.js")).default;
5024
5049
  await Dialog.alert(message, "Information", { size: "md", class: "text-info" });
5025
5050
  } catch (e) {
5026
5051
  this.events.emit("notification", { message, type: "info" });
@@ -5037,7 +5062,7 @@ class WebApp {
5037
5062
  */
5038
5063
  async showWarning(message) {
5039
5064
  try {
5040
- const Dialog = (await import("./Dialog-BvZ2fvRX.js")).default;
5065
+ const Dialog = (await import("./Dialog-DKYQBU7p.js")).default;
5041
5066
  await Dialog.alert(message, "Warning", { size: "md", class: "text-warning" });
5042
5067
  } catch (e) {
5043
5068
  this.events.emit("notification", { message, type: "warning" });
@@ -5063,7 +5088,7 @@ class WebApp {
5063
5088
  opts = { message: opts };
5064
5089
  }
5065
5090
  try {
5066
- const Dialog = (await import("./Dialog-BvZ2fvRX.js")).default;
5091
+ const Dialog = (await import("./Dialog-DKYQBU7p.js")).default;
5067
5092
  Dialog.showBusy(opts);
5068
5093
  } catch (e) {
5069
5094
  if (typeof window !== "undefined" && window?.console) {
@@ -5077,7 +5102,7 @@ class WebApp {
5077
5102
  */
5078
5103
  async hideLoading() {
5079
5104
  try {
5080
- const Dialog = (await import("./Dialog-BvZ2fvRX.js")).default;
5105
+ const Dialog = (await import("./Dialog-DKYQBU7p.js")).default;
5081
5106
  Dialog.hideBusy();
5082
5107
  } catch (e) {
5083
5108
  if (typeof window !== "undefined" && window?.console) {
@@ -5087,7 +5112,7 @@ class WebApp {
5087
5112
  }
5088
5113
  async showModelForm(options = {}) {
5089
5114
  try {
5090
- const Dialog = (await import("./Dialog-BvZ2fvRX.js")).default;
5115
+ const Dialog = (await import("./Dialog-DKYQBU7p.js")).default;
5091
5116
  return await Dialog.showModelForm(options);
5092
5117
  } catch (e) {
5093
5118
  if (typeof window !== "undefined" && window?.console) {
@@ -5098,7 +5123,7 @@ class WebApp {
5098
5123
  }
5099
5124
  async showForm(options = {}) {
5100
5125
  try {
5101
- const Dialog = (await import("./Dialog-BvZ2fvRX.js")).default;
5126
+ const Dialog = (await import("./Dialog-DKYQBU7p.js")).default;
5102
5127
  return await Dialog.showForm(options);
5103
5128
  } catch (e) {
5104
5129
  if (typeof window !== "undefined" && window?.console) {
@@ -5108,7 +5133,7 @@ class WebApp {
5108
5133
  }
5109
5134
  }
5110
5135
  async confirm(message, title = "Confirm", options = {}) {
5111
- const Dialog = (await import("./Dialog-BvZ2fvRX.js")).default;
5136
+ const Dialog = (await import("./Dialog-DKYQBU7p.js")).default;
5112
5137
  return await Dialog.confirm(message, title, options);
5113
5138
  }
5114
5139
  /**
@@ -5361,4 +5386,4 @@ export {
5361
5386
  EventEmitter as i,
5362
5387
  rest as r
5363
5388
  };
5364
- //# sourceMappingURL=WebApp-Di6aAIhF.js.map
5389
+ //# sourceMappingURL=WebApp-BxWFN9k7.js.map