@acorex/components 22.2.0-next.0 → 22.2.0-next.1
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/comment/README.md +467 -2
- package/fesm2022/acorex-components-action-sheet.mjs +2 -2
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-alert.mjs +2 -2
- package/fesm2022/acorex-components-alert.mjs.map +1 -1
- package/fesm2022/acorex-components-avatar.mjs +2 -2
- package/fesm2022/acorex-components-button.mjs +1 -1
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +13 -15
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-check-box.mjs +2 -2
- package/fesm2022/acorex-components-check-box.mjs.map +1 -1
- package/fesm2022/acorex-components-color-box.mjs +2 -2
- package/fesm2022/acorex-components-color-box.mjs.map +1 -1
- package/fesm2022/acorex-components-combo-box.mjs +44 -2
- package/fesm2022/acorex-components-combo-box.mjs.map +1 -1
- package/fesm2022/acorex-components-command.mjs +2 -2
- package/fesm2022/acorex-components-command.mjs.map +1 -1
- package/fesm2022/acorex-components-comment.mjs +905 -69
- package/fesm2022/acorex-components-comment.mjs.map +1 -1
- package/fesm2022/{acorex-components-conversation-acorex-components-conversation-C1Lf9tAe.mjs → acorex-components-conversation-acorex-components-conversation-pR9sXIuW.mjs} +6 -6
- package/fesm2022/{acorex-components-conversation-acorex-components-conversation-C1Lf9tAe.mjs.map → acorex-components-conversation-acorex-components-conversation-pR9sXIuW.mjs.map} +1 -1
- package/fesm2022/{acorex-components-conversation-picker-rename-file-dialog.component-DyOC1WEb.mjs → acorex-components-conversation-picker-rename-file-dialog.component-DWIRLLMb.mjs} +2 -2
- 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
- package/fesm2022/acorex-components-conversation.mjs +1 -1
- package/fesm2022/acorex-components-data-list.mjs +1 -1
- package/fesm2022/acorex-components-data-list.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +524 -145
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +2 -2
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +2 -2
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-decorators.mjs +2 -2
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer.mjs +17 -6
- package/fesm2022/acorex-components-drawer.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown-button.mjs +16 -11
- package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown.mjs +2 -2
- package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
- package/fesm2022/acorex-components-fab.mjs +1 -1
- package/fesm2022/acorex-components-fab.mjs.map +1 -1
- package/fesm2022/acorex-components-file-viewer.mjs +6 -2
- package/fesm2022/acorex-components-file-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-image-editor.mjs +8 -8
- package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
- package/fesm2022/acorex-components-kanban.mjs +108 -5
- package/fesm2022/acorex-components-kanban.mjs.map +1 -1
- package/fesm2022/acorex-components-list.mjs +7 -8
- package/fesm2022/acorex-components-list.mjs.map +1 -1
- package/fesm2022/acorex-components-loading.mjs +2 -2
- package/fesm2022/acorex-components-loading.mjs.map +1 -1
- package/fesm2022/acorex-components-lookup.mjs +160 -23
- package/fesm2022/acorex-components-lookup.mjs.map +1 -1
- package/fesm2022/acorex-components-map.mjs +27 -9
- package/fesm2022/acorex-components-map.mjs.map +1 -1
- package/fesm2022/acorex-components-media-viewer.mjs +1 -1
- package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +30 -8
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-paint.mjs +1 -1
- package/fesm2022/acorex-components-paint.mjs.map +1 -1
- package/fesm2022/acorex-components-password-box.mjs +1 -1
- package/fesm2022/acorex-components-password-box.mjs.map +1 -1
- package/fesm2022/acorex-components-popover.mjs +14 -1
- package/fesm2022/acorex-components-popover.mjs.map +1 -1
- package/fesm2022/acorex-components-reaction.mjs +1 -1
- package/fesm2022/acorex-components-reaction.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler.mjs +10 -10
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-side-menu.mjs +1 -1
- package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-sidebar.mjs +2 -2
- package/fesm2022/acorex-components-sidebar.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +4 -2
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/fesm2022/acorex-components-tag-box.mjs +2 -2
- package/fesm2022/acorex-components-tag-box.mjs.map +1 -1
- package/fesm2022/acorex-components-text-editor.mjs +1950 -0
- package/fesm2022/acorex-components-text-editor.mjs.map +1 -0
- package/fesm2022/acorex-components-time-duration.mjs +59 -19
- package/fesm2022/acorex-components-time-duration.mjs.map +1 -1
- package/fesm2022/acorex-components-toast.mjs +2 -2
- package/fesm2022/acorex-components-toast.mjs.map +1 -1
- package/fesm2022/acorex-components-tooltip.mjs +49 -4
- package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
- package/fesm2022/acorex-components-tree-view.mjs +1 -1
- package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
- package/fesm2022/acorex-components-wysiwyg.mjs +10 -3
- package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
- package/package.json +9 -20
- package/text-editor/README.md +7 -0
- package/types/acorex-components-combo-box.d.ts +5 -0
- package/types/acorex-components-comment.d.ts +352 -33
- package/types/acorex-components-data-table.d.ts +121 -14
- package/types/acorex-components-drawer.d.ts +2 -2
- package/types/acorex-components-dropdown-button.d.ts +7 -2
- package/types/acorex-components-file-viewer.d.ts +3 -0
- package/types/acorex-components-lookup.d.ts +35 -6
- package/types/acorex-components-map.d.ts +7 -0
- package/types/acorex-components-menu.d.ts +5 -0
- package/types/acorex-components-popover.d.ts +5 -1
- package/types/acorex-components-text-editor.d.ts +1256 -0
- package/types/acorex-components-time-duration.d.ts +17 -3
- package/types/acorex-components-tooltip.d.ts +11 -1
- package/types/acorex-components-wysiwyg.d.ts +5 -0
- package/cron-job/README.md +0 -3
- package/editor/README.md +0 -3
- package/fesm2022/acorex-components-cron-job.mjs +0 -1309
- package/fesm2022/acorex-components-cron-job.mjs.map +0 -1
- package/fesm2022/acorex-components-editor.mjs +0 -199
- package/fesm2022/acorex-components-editor.mjs.map +0 -1
- package/types/acorex-components-cron-job.d.ts +0 -330
- 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
|
-
|
|
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
|
|
387
|
-
|
|
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
|
-
|
|
1250
|
-
|
|
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
|
-
|
|
1515
|
-
|
|
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;
|