@acorex/components 22.2.0-next.0 → 22.2.0-next.2

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 (115) hide show
  1. package/comment/README.md +467 -2
  2. package/fesm2022/acorex-components-action-sheet.mjs +2 -2
  3. package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
  4. package/fesm2022/acorex-components-alert.mjs +2 -2
  5. package/fesm2022/acorex-components-alert.mjs.map +1 -1
  6. package/fesm2022/acorex-components-avatar.mjs +2 -2
  7. package/fesm2022/acorex-components-button.mjs +1 -1
  8. package/fesm2022/acorex-components-button.mjs.map +1 -1
  9. package/fesm2022/acorex-components-calendar.mjs +13 -15
  10. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  11. package/fesm2022/acorex-components-check-box.mjs +2 -2
  12. package/fesm2022/acorex-components-check-box.mjs.map +1 -1
  13. package/fesm2022/acorex-components-color-box.mjs +2 -2
  14. package/fesm2022/acorex-components-color-box.mjs.map +1 -1
  15. package/fesm2022/acorex-components-combo-box.mjs +44 -2
  16. package/fesm2022/acorex-components-combo-box.mjs.map +1 -1
  17. package/fesm2022/acorex-components-command.mjs +2 -2
  18. package/fesm2022/acorex-components-command.mjs.map +1 -1
  19. package/fesm2022/acorex-components-comment.mjs +905 -69
  20. package/fesm2022/acorex-components-comment.mjs.map +1 -1
  21. package/fesm2022/{acorex-components-conversation-acorex-components-conversation-C1Lf9tAe.mjs → acorex-components-conversation-acorex-components-conversation-pR9sXIuW.mjs} +6 -6
  22. package/fesm2022/{acorex-components-conversation-acorex-components-conversation-C1Lf9tAe.mjs.map → acorex-components-conversation-acorex-components-conversation-pR9sXIuW.mjs.map} +1 -1
  23. package/fesm2022/{acorex-components-conversation-picker-rename-file-dialog.component-DyOC1WEb.mjs → acorex-components-conversation-picker-rename-file-dialog.component-DWIRLLMb.mjs} +2 -2
  24. package/fesm2022/{acorex-components-conversation-picker-rename-file-dialog.component-DyOC1WEb.mjs.map → acorex-components-conversation-picker-rename-file-dialog.component-DWIRLLMb.mjs.map} +1 -1
  25. package/fesm2022/acorex-components-conversation.mjs +1 -1
  26. package/fesm2022/acorex-components-data-list.mjs +1 -1
  27. package/fesm2022/acorex-components-data-list.mjs.map +1 -1
  28. package/fesm2022/acorex-components-data-table.mjs +524 -145
  29. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  30. package/fesm2022/acorex-components-datetime-box.mjs +2 -2
  31. package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
  32. package/fesm2022/acorex-components-datetime-picker.mjs +2 -2
  33. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  34. package/fesm2022/acorex-components-decorators.mjs +2 -2
  35. package/fesm2022/acorex-components-decorators.mjs.map +1 -1
  36. package/fesm2022/acorex-components-drawer.mjs +17 -6
  37. package/fesm2022/acorex-components-drawer.mjs.map +1 -1
  38. package/fesm2022/acorex-components-dropdown-button.mjs +16 -11
  39. package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
  40. package/fesm2022/acorex-components-dropdown.mjs +2 -2
  41. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  42. package/fesm2022/acorex-components-fab.mjs +1 -1
  43. package/fesm2022/acorex-components-fab.mjs.map +1 -1
  44. package/fesm2022/acorex-components-file-viewer.mjs +6 -2
  45. package/fesm2022/acorex-components-file-viewer.mjs.map +1 -1
  46. package/fesm2022/acorex-components-image-editor.mjs +8 -8
  47. package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
  48. package/fesm2022/acorex-components-kanban.mjs +108 -5
  49. package/fesm2022/acorex-components-kanban.mjs.map +1 -1
  50. package/fesm2022/acorex-components-list.mjs +7 -8
  51. package/fesm2022/acorex-components-list.mjs.map +1 -1
  52. package/fesm2022/acorex-components-loading.mjs +2 -2
  53. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  54. package/fesm2022/acorex-components-lookup.mjs +160 -23
  55. package/fesm2022/acorex-components-lookup.mjs.map +1 -1
  56. package/fesm2022/acorex-components-map.mjs +27 -9
  57. package/fesm2022/acorex-components-map.mjs.map +1 -1
  58. package/fesm2022/acorex-components-media-viewer.mjs +1 -1
  59. package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
  60. package/fesm2022/acorex-components-menu.mjs +30 -8
  61. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  62. package/fesm2022/acorex-components-paint.mjs +1 -1
  63. package/fesm2022/acorex-components-paint.mjs.map +1 -1
  64. package/fesm2022/acorex-components-password-box.mjs +1 -1
  65. package/fesm2022/acorex-components-password-box.mjs.map +1 -1
  66. package/fesm2022/acorex-components-popover.mjs +14 -1
  67. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  68. package/fesm2022/acorex-components-reaction.mjs +1 -1
  69. package/fesm2022/acorex-components-reaction.mjs.map +1 -1
  70. package/fesm2022/acorex-components-scheduler.mjs +10 -10
  71. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  72. package/fesm2022/acorex-components-side-menu.mjs +1 -1
  73. package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
  74. package/fesm2022/acorex-components-sidebar.mjs +2 -2
  75. package/fesm2022/acorex-components-sidebar.mjs.map +1 -1
  76. package/fesm2022/acorex-components-tabs.mjs +4 -2
  77. package/fesm2022/acorex-components-tabs.mjs.map +1 -1
  78. package/fesm2022/acorex-components-tag-box.mjs +2 -2
  79. package/fesm2022/acorex-components-tag-box.mjs.map +1 -1
  80. package/fesm2022/acorex-components-text-editor.mjs +1950 -0
  81. package/fesm2022/acorex-components-text-editor.mjs.map +1 -0
  82. package/fesm2022/acorex-components-time-duration.mjs +59 -19
  83. package/fesm2022/acorex-components-time-duration.mjs.map +1 -1
  84. package/fesm2022/acorex-components-toast.mjs +2 -2
  85. package/fesm2022/acorex-components-toast.mjs.map +1 -1
  86. package/fesm2022/acorex-components-tooltip.mjs +49 -4
  87. package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
  88. package/fesm2022/acorex-components-tree-view.mjs +1 -1
  89. package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
  90. package/fesm2022/acorex-components-wysiwyg.mjs +10 -3
  91. package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
  92. package/package.json +9 -20
  93. package/text-editor/README.md +7 -0
  94. package/types/acorex-components-combo-box.d.ts +5 -0
  95. package/types/acorex-components-comment.d.ts +352 -33
  96. package/types/acorex-components-data-table.d.ts +121 -14
  97. package/types/acorex-components-drawer.d.ts +2 -2
  98. package/types/acorex-components-dropdown-button.d.ts +7 -2
  99. package/types/acorex-components-file-viewer.d.ts +3 -0
  100. package/types/acorex-components-lookup.d.ts +35 -6
  101. package/types/acorex-components-map.d.ts +7 -0
  102. package/types/acorex-components-menu.d.ts +5 -0
  103. package/types/acorex-components-popover.d.ts +5 -1
  104. package/types/acorex-components-text-editor.d.ts +1256 -0
  105. package/types/acorex-components-time-duration.d.ts +17 -3
  106. package/types/acorex-components-tooltip.d.ts +11 -1
  107. package/types/acorex-components-wysiwyg.d.ts +5 -0
  108. package/cron-job/README.md +0 -3
  109. package/editor/README.md +0 -3
  110. package/fesm2022/acorex-components-cron-job.mjs +0 -1309
  111. package/fesm2022/acorex-components-cron-job.mjs.map +0 -1
  112. package/fesm2022/acorex-components-editor.mjs +0 -199
  113. package/fesm2022/acorex-components-editor.mjs.map +0 -1
  114. package/types/acorex-components-cron-job.d.ts +0 -330
  115. package/types/acorex-components-editor.d.ts +0 -79
@@ -375,7 +375,9 @@ class AXLeafletService {
375
375
  return this.defaultIcon;
376
376
  }
377
377
  try {
378
- // Try to resolve using the icon resolver if available
378
+ if (this.isDirectIconContent(iconSrc)) {
379
+ return this.createLeafletIcon(iconSrc);
380
+ }
379
381
  if (this.iconResolver) {
380
382
  try {
381
383
  const resolvedIcon = await this.iconResolver.resolve(iconSrc);
@@ -383,11 +385,10 @@ class AXLeafletService {
383
385
  return this.createLeafletIcon(resolvedIcon);
384
386
  }
385
387
  }
386
- catch (error) {
387
- console.warn(`Error resolving icon: ${iconSrc}`, error);
388
+ catch {
389
+ // Key was not registered; fall through and treat the value as a URL/path.
388
390
  }
389
391
  }
390
- // If resolver not available or resolution failed, treat as direct content
391
392
  return this.createLeafletIcon(iconSrc);
392
393
  }
393
394
  catch (error) {
@@ -395,6 +396,17 @@ class AXLeafletService {
395
396
  return this.defaultIcon;
396
397
  }
397
398
  }
399
+ /**
400
+ * True when the value is already renderable (inline SVG, data URI, or URL/path)
401
+ * and should not be sent to AXIconResolverService as an icon key.
402
+ */
403
+ isDirectIconContent(iconSrc) {
404
+ const value = iconSrc.trim();
405
+ return (value.startsWith('<svg') ||
406
+ value.startsWith('<SVG') ||
407
+ value.startsWith('data:') ||
408
+ /^(https?:\/\/|\.?\.?\/)/i.test(value));
409
+ }
398
410
  /**
399
411
  * Creates a Leaflet icon from SVG or URL
400
412
  * @param iconSrc The icon source (SVG string or URL)
@@ -406,7 +418,7 @@ class AXLeafletService {
406
418
  }
407
419
  try {
408
420
  // Check if the iconSrc is a URL or SVG string
409
- const isSvgString = iconSrc.trim().startsWith('<svg');
421
+ const isSvgString = iconSrc.trim().toLowerCase().startsWith('<svg');
410
422
  if (isSvgString) {
411
423
  // Create a div icon with the SVG content
412
424
  return this.L.divIcon({
@@ -658,6 +670,9 @@ class AXLeafletService {
658
670
  if (layer.options.iconKey) {
659
671
  poi.iconKey = layer.options.iconKey;
660
672
  }
673
+ if (layer.options.icon) {
674
+ poi.icon = layer.options.icon;
675
+ }
661
676
  if (layer.options.providerKey) {
662
677
  poi.providerKey = layer.options.providerKey;
663
678
  }
@@ -1246,8 +1261,9 @@ class AXLeafletService {
1246
1261
  }
1247
1262
  // Get icon from either iconKey or direct icon
1248
1263
  let markerIcon = this.defaultIcon;
1249
- if (location.iconKey) {
1250
- markerIcon = await this.setCustomIcon(location.iconKey);
1264
+ const iconSource = location.iconKey || location.icon;
1265
+ if (iconSource) {
1266
+ markerIcon = await this.setCustomIcon(iconSource);
1251
1267
  }
1252
1268
  // Add the marker to the map
1253
1269
  const marker = this.L.marker([location.latitude, location.longitude], {
@@ -1511,8 +1527,9 @@ class AXLeafletService {
1511
1527
  const addSinglePoi = async (poi) => {
1512
1528
  try {
1513
1529
  let icon = this.defaultIcon;
1514
- if (poi.iconKey) {
1515
- icon = await this.setCustomIcon(poi.iconKey);
1530
+ const iconSource = poi.iconKey || poi.icon;
1531
+ if (iconSource) {
1532
+ icon = await this.setCustomIcon(iconSource);
1516
1533
  }
1517
1534
  const markerOptions = {
1518
1535
  icon,
@@ -1521,6 +1538,7 @@ class AXLeafletService {
1521
1538
  };
1522
1539
  // Add custom properties to options
1523
1540
  markerOptions.iconKey = poi.iconKey;
1541
+ markerOptions.icon = poi.icon;
1524
1542
  markerOptions.providerKey = poi.providerKey;
1525
1543
  // Store minZoom property in marker options
1526
1544
  markerOptions.minZoom = poi.minZoom !== undefined ? poi.minZoom : this.poiMinZoom;