@octostar/map-component 0.6.1 โ 0.6.3
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/index.mjs +172 -154
- package/dist/index.mjs.map +1 -1
- package/dist/types/components/icon-picker.d.ts +1 -8
- package/dist/types/components/icon-picker.d.ts.map +1 -1
- package/dist/types/lib/icon-catalog.d.ts +10 -0
- package/dist/types/lib/icon-catalog.d.ts.map +1 -0
- package/dist/types/lib/paint-feature.d.ts +7 -0
- package/dist/types/lib/paint-feature.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1527,6 +1527,154 @@ function formatGradientStop(value) {
|
|
|
1527
1527
|
}
|
|
1528
1528
|
return new Intl.NumberFormat("en-US", { maximumFractionDigits: 2 }).format(value);
|
|
1529
1529
|
}
|
|
1530
|
+
const ICONS = [
|
|
1531
|
+
// Location & Places
|
|
1532
|
+
{ id: "map-pin", emoji: "๐", name: "Map Pin", category: "places" },
|
|
1533
|
+
{ id: "home", emoji: "๐ ", name: "Home", category: "places" },
|
|
1534
|
+
{ id: "building", emoji: "๐ข", name: "Building", category: "places" },
|
|
1535
|
+
{ id: "store", emoji: "๐ช", name: "Store", category: "places" },
|
|
1536
|
+
{ id: "factory", emoji: "๐ญ", name: "Factory", category: "places" },
|
|
1537
|
+
{ id: "construction", emoji: "๐๏ธ", name: "Construction", category: "places" },
|
|
1538
|
+
{ id: "church", emoji: "โช", name: "Church", category: "places" },
|
|
1539
|
+
{ id: "hospital", emoji: "๐ฅ", name: "Hospital", category: "places" },
|
|
1540
|
+
{ id: "school", emoji: "๐ซ", name: "School", category: "places" },
|
|
1541
|
+
{ id: "graduation", emoji: "๐", name: "University", category: "places" },
|
|
1542
|
+
{ id: "library", emoji: "๐", name: "Library", category: "places" },
|
|
1543
|
+
{ id: "landmark", emoji: "๐๏ธ", name: "Landmark", category: "places" },
|
|
1544
|
+
{ id: "castle", emoji: "๐ฐ", name: "Castle", category: "places" },
|
|
1545
|
+
{ id: "mosque", emoji: "๐", name: "Mosque", category: "places" },
|
|
1546
|
+
{ id: "stadium", emoji: "๐๏ธ", name: "Stadium", category: "places" },
|
|
1547
|
+
{ id: "tent", emoji: "โบ", name: "Camping", category: "places" },
|
|
1548
|
+
// Transport
|
|
1549
|
+
{ id: "car", emoji: "๐", name: "Car", category: "transport" },
|
|
1550
|
+
{ id: "bus", emoji: "๐", name: "Bus", category: "transport" },
|
|
1551
|
+
{ id: "train", emoji: "๐", name: "Train", category: "transport" },
|
|
1552
|
+
{ id: "plane", emoji: "โ๏ธ", name: "Plane", category: "transport" },
|
|
1553
|
+
{ id: "ship", emoji: "๐ข", name: "Ship", category: "transport" },
|
|
1554
|
+
{ id: "bike", emoji: "๐ฒ", name: "Bike", category: "transport" },
|
|
1555
|
+
{ id: "fuel", emoji: "โฝ", name: "Gas Station", category: "transport" },
|
|
1556
|
+
{ id: "helicopter", emoji: "๐", name: "Helicopter", category: "transport" },
|
|
1557
|
+
{ id: "rocket", emoji: "๐", name: "Rocket", category: "transport" },
|
|
1558
|
+
{ id: "motorcycle", emoji: "๐๏ธ", name: "Motorcycle", category: "transport" },
|
|
1559
|
+
{ id: "taxi", emoji: "๐", name: "Taxi", category: "transport" },
|
|
1560
|
+
{ id: "truck", emoji: "๐", name: "Truck", category: "transport" },
|
|
1561
|
+
// Food & Drink
|
|
1562
|
+
{ id: "utensils", emoji: "๐ด", name: "Restaurant", category: "food" },
|
|
1563
|
+
{ id: "coffee", emoji: "โ", name: "Coffee", category: "food" },
|
|
1564
|
+
{ id: "beer", emoji: "๐บ", name: "Bar", category: "food" },
|
|
1565
|
+
{ id: "wine", emoji: "๐ท", name: "Wine", category: "food" },
|
|
1566
|
+
{ id: "pizza", emoji: "๐", name: "Pizza", category: "food" },
|
|
1567
|
+
{ id: "ice-cream", emoji: "๐ฆ", name: "Ice Cream", category: "food" },
|
|
1568
|
+
{ id: "apple", emoji: "๐", name: "Apple", category: "food" },
|
|
1569
|
+
{ id: "cake", emoji: "๐", name: "Cake", category: "food" },
|
|
1570
|
+
{ id: "hamburger", emoji: "๐", name: "Burger", category: "food" },
|
|
1571
|
+
// Nature
|
|
1572
|
+
{ id: "trees", emoji: "๐ฒ", name: "Forest", category: "nature" },
|
|
1573
|
+
{ id: "mountain", emoji: "โฐ๏ธ", name: "Mountain", category: "nature" },
|
|
1574
|
+
{ id: "waves", emoji: "๐", name: "Water", category: "nature" },
|
|
1575
|
+
{ id: "sun", emoji: "โ๏ธ", name: "Sun", category: "nature" },
|
|
1576
|
+
{ id: "cloud", emoji: "โ๏ธ", name: "Cloud", category: "nature" },
|
|
1577
|
+
{ id: "umbrella", emoji: "๐", name: "Umbrella", category: "nature" },
|
|
1578
|
+
{ id: "flower", emoji: "๐ธ", name: "Flower", category: "nature" },
|
|
1579
|
+
{ id: "leaf", emoji: "๐", name: "Leaf", category: "nature" },
|
|
1580
|
+
{ id: "rainbow", emoji: "๐", name: "Rainbow", category: "nature" },
|
|
1581
|
+
{ id: "snowflake", emoji: "โ๏ธ", name: "Snow", category: "nature" },
|
|
1582
|
+
{ id: "fire", emoji: "๐ฅ", name: "Fire", category: "nature" },
|
|
1583
|
+
{ id: "volcano", emoji: "๐", name: "Volcano", category: "nature" },
|
|
1584
|
+
// Symbols & Markers
|
|
1585
|
+
{ id: "heart", emoji: "โค๏ธ", name: "Heart", category: "symbols" },
|
|
1586
|
+
{ id: "star", emoji: "โญ", name: "Star", category: "symbols" },
|
|
1587
|
+
{ id: "flag", emoji: "๐ฉ", name: "Flag", category: "symbols" },
|
|
1588
|
+
{ id: "alert", emoji: "โ ๏ธ", name: "Warning", category: "symbols" },
|
|
1589
|
+
{ id: "info", emoji: "โน๏ธ", name: "Info", category: "symbols" },
|
|
1590
|
+
{ id: "check", emoji: "โ
", name: "Check", category: "symbols" },
|
|
1591
|
+
{ id: "x-mark", emoji: "โ", name: "X", category: "symbols" },
|
|
1592
|
+
{ id: "zap", emoji: "โก", name: "Zap", category: "symbols" },
|
|
1593
|
+
{ id: "bell", emoji: "๐", name: "Bell", category: "symbols" },
|
|
1594
|
+
{ id: "peace", emoji: "โฎ๏ธ", name: "Peace", category: "symbols" },
|
|
1595
|
+
{ id: "recycle", emoji: "โป๏ธ", name: "Recycle", category: "symbols" },
|
|
1596
|
+
{ id: "radioactive", emoji: "โข๏ธ", name: "Radioactive", category: "symbols" },
|
|
1597
|
+
{ id: "biohazard", emoji: "โฃ๏ธ", name: "Biohazard", category: "symbols" },
|
|
1598
|
+
// Activities
|
|
1599
|
+
{ id: "camera", emoji: "๐ท", name: "Camera", category: "activities" },
|
|
1600
|
+
{ id: "music", emoji: "๐ต", name: "Music", category: "activities" },
|
|
1601
|
+
{ id: "film", emoji: "๐ฌ", name: "Cinema", category: "activities" },
|
|
1602
|
+
{ id: "gamepad", emoji: "๐ฎ", name: "Gaming", category: "activities" },
|
|
1603
|
+
{ id: "trophy", emoji: "๐", name: "Trophy", category: "activities" },
|
|
1604
|
+
{ id: "medal", emoji: "๐๏ธ", name: "Medal", category: "activities" },
|
|
1605
|
+
{ id: "sports", emoji: "โฝ", name: "Sports", category: "activities" },
|
|
1606
|
+
{ id: "basketball", emoji: "๐", name: "Basketball", category: "activities" },
|
|
1607
|
+
{ id: "fishing", emoji: "๐ฃ", name: "Fishing", category: "activities" },
|
|
1608
|
+
{ id: "art", emoji: "๐จ", name: "Art", category: "activities" },
|
|
1609
|
+
// Work & Tools
|
|
1610
|
+
{ id: "briefcase", emoji: "๐ผ", name: "Office", category: "work" },
|
|
1611
|
+
{ id: "wrench", emoji: "๐ง", name: "Repair", category: "work" },
|
|
1612
|
+
{ id: "hammer", emoji: "๐จ", name: "Construction", category: "work" },
|
|
1613
|
+
{ id: "gear", emoji: "โ๏ธ", name: "Settings", category: "work" },
|
|
1614
|
+
{ id: "microscope", emoji: "๐ฌ", name: "Science", category: "work" },
|
|
1615
|
+
{ id: "test-tube", emoji: "๐งช", name: "Lab", category: "work" },
|
|
1616
|
+
{ id: "computer", emoji: "๐ป", name: "Computer", category: "work" },
|
|
1617
|
+
// Shopping
|
|
1618
|
+
{ id: "cart", emoji: "๐", name: "Shopping", category: "shopping" },
|
|
1619
|
+
{ id: "gift", emoji: "๐", name: "Gift", category: "shopping" },
|
|
1620
|
+
{ id: "package", emoji: "๐ฆ", name: "Package", category: "shopping" },
|
|
1621
|
+
{ id: "money", emoji: "๐ฐ", name: "Money", category: "shopping" },
|
|
1622
|
+
{ id: "credit-card", emoji: "๐ณ", name: "Payment", category: "shopping" },
|
|
1623
|
+
// Communication
|
|
1624
|
+
{ id: "phone", emoji: "๐ฑ", name: "Phone", category: "communication" },
|
|
1625
|
+
{ id: "mail", emoji: "๐ง", name: "Mail", category: "communication" },
|
|
1626
|
+
{ id: "globe", emoji: "๐", name: "Web", category: "communication" },
|
|
1627
|
+
{ id: "satellite", emoji: "๐ก", name: "Satellite", category: "communication" },
|
|
1628
|
+
{ id: "radio", emoji: "๐ป", name: "Radio", category: "communication" },
|
|
1629
|
+
{ id: "tv", emoji: "๐บ", name: "TV", category: "communication" },
|
|
1630
|
+
// People & Animals
|
|
1631
|
+
{ id: "user", emoji: "๐ค", name: "Person", category: "people" },
|
|
1632
|
+
{ id: "users", emoji: "๐ฅ", name: "Group", category: "people" },
|
|
1633
|
+
{ id: "baby", emoji: "๐ถ", name: "Baby", category: "people" },
|
|
1634
|
+
{ id: "dog", emoji: "๐", name: "Dog", category: "people" },
|
|
1635
|
+
{ id: "cat", emoji: "๐", name: "Cat", category: "people" },
|
|
1636
|
+
{ id: "bird", emoji: "๐ฆ", name: "Bird", category: "people" },
|
|
1637
|
+
{ id: "horse", emoji: "๐ด", name: "Horse", category: "people" },
|
|
1638
|
+
{ id: "fish", emoji: "๐", name: "Fish", category: "people" },
|
|
1639
|
+
// Maritime & Navigation
|
|
1640
|
+
{ id: "anchor", emoji: "โ", name: "Anchor", category: "maritime" },
|
|
1641
|
+
{ id: "compass", emoji: "๐งญ", name: "Compass", category: "maritime" },
|
|
1642
|
+
{ id: "lighthouse", emoji: "๐ผ", name: "Lighthouse", category: "maritime" },
|
|
1643
|
+
{ id: "sailboat", emoji: "โต", name: "Sailboat", category: "maritime" },
|
|
1644
|
+
// Security
|
|
1645
|
+
{ id: "lock", emoji: "๐", name: "Lock", category: "security" },
|
|
1646
|
+
{ id: "key", emoji: "๐", name: "Key", category: "security" },
|
|
1647
|
+
{ id: "shield", emoji: "๐ก๏ธ", name: "Shield", category: "security" },
|
|
1648
|
+
{ id: "eye", emoji: "๐๏ธ", name: "Eye", category: "security" },
|
|
1649
|
+
{ id: "search", emoji: "๐", name: "Search", category: "security" },
|
|
1650
|
+
{ id: "police", emoji: "๐", name: "Police", category: "security" },
|
|
1651
|
+
{ id: "siren", emoji: "๐จ", name: "Siren", category: "security" },
|
|
1652
|
+
// Time & Organization
|
|
1653
|
+
{ id: "clock", emoji: "๐", name: "Clock", category: "time" },
|
|
1654
|
+
{ id: "calendar", emoji: "๐
", name: "Calendar", category: "time" },
|
|
1655
|
+
{ id: "bookmark", emoji: "๐", name: "Bookmark", category: "time" },
|
|
1656
|
+
{ id: "tag", emoji: "๐ท๏ธ", name: "Tag", category: "time" },
|
|
1657
|
+
{ id: "pushpin", emoji: "๐", name: "Pin", category: "time" },
|
|
1658
|
+
// Shapes & Geometric
|
|
1659
|
+
{ id: "red-circle", emoji: "๐ด", name: "Red Circle", category: "shapes" },
|
|
1660
|
+
{ id: "blue-circle", emoji: "๐ต", name: "Blue Circle", category: "shapes" },
|
|
1661
|
+
{ id: "green-circle", emoji: "๐ข", name: "Green Circle", category: "shapes" },
|
|
1662
|
+
{ id: "yellow-circle", emoji: "๐ก", name: "Yellow Circle", category: "shapes" },
|
|
1663
|
+
{ id: "orange-circle", emoji: "๐ ", name: "Orange Circle", category: "shapes" },
|
|
1664
|
+
{ id: "purple-circle", emoji: "๐ฃ", name: "Purple Circle", category: "shapes" },
|
|
1665
|
+
{ id: "white-circle", emoji: "โช", name: "White Circle", category: "shapes" },
|
|
1666
|
+
{ id: "black-circle", emoji: "โซ", name: "Black Circle", category: "shapes" },
|
|
1667
|
+
{ id: "red-square", emoji: "๐ฅ", name: "Red Square", category: "shapes" },
|
|
1668
|
+
{ id: "blue-square", emoji: "๐ฆ", name: "Blue Square", category: "shapes" },
|
|
1669
|
+
{ id: "diamond", emoji: "๐", name: "Diamond", category: "shapes" },
|
|
1670
|
+
// Arrows
|
|
1671
|
+
{ id: "arrow-up", emoji: "โฌ๏ธ", name: "Arrow Up", category: "arrows" },
|
|
1672
|
+
{ id: "arrow-down", emoji: "โฌ๏ธ", name: "Arrow Down", category: "arrows" },
|
|
1673
|
+
{ id: "arrow-left", emoji: "โฌ
๏ธ", name: "Arrow Left", category: "arrows" },
|
|
1674
|
+
{ id: "arrow-right", emoji: "โก๏ธ", name: "Arrow Right", category: "arrows" },
|
|
1675
|
+
{ id: "target", emoji: "๐ฏ", name: "Target", category: "arrows" }
|
|
1676
|
+
];
|
|
1677
|
+
const EMOJI_BY_ID = new Map(ICONS.map((i) => [i.id, i.emoji]));
|
|
1530
1678
|
function windowFromRange(start, end) {
|
|
1531
1679
|
if (!start || !end) return null;
|
|
1532
1680
|
const t0 = start.getTime();
|
|
@@ -2005,6 +2153,23 @@ function sanitizeValue(value) {
|
|
|
2005
2153
|
if (value instanceof Date) return value.toISOString();
|
|
2006
2154
|
return String(value);
|
|
2007
2155
|
}
|
|
2156
|
+
const EMOJI_ICON = new RegExp(
|
|
2157
|
+
String.raw`^(?:(?:[\p{Extended_Pictographic}\p{Regional_Indicator}]|[0-9#*]\uFE0F?\u20E3)[\p{Emoji_Modifier}\uFE0F\u20E3\u{E0020}-\u{E007F}]*\u200D?)+$`,
|
|
2158
|
+
"u"
|
|
2159
|
+
);
|
|
2160
|
+
function isEmojiIcon(value) {
|
|
2161
|
+
return typeof value === "string" && EMOJI_ICON.test(value);
|
|
2162
|
+
}
|
|
2163
|
+
let lastIcon = "";
|
|
2164
|
+
let lastResolvedIcon = "";
|
|
2165
|
+
function resolveIcon(value) {
|
|
2166
|
+
if (typeof value !== "string" || value === "") return "";
|
|
2167
|
+
if (value !== lastIcon) {
|
|
2168
|
+
lastIcon = value;
|
|
2169
|
+
lastResolvedIcon = isEmojiIcon(value) ? value : EMOJI_BY_ID.get(value) ?? "";
|
|
2170
|
+
}
|
|
2171
|
+
return lastResolvedIcon;
|
|
2172
|
+
}
|
|
2008
2173
|
const heatmapHidesPoints = (layer) => {
|
|
2009
2174
|
var _a;
|
|
2010
2175
|
return ((_a = layer == null ? void 0 : layer.heatmapConfig) == null ? void 0 : _a.enabled) === true;
|
|
@@ -2070,12 +2235,13 @@ function styleFeatureForPaint(f, layer, ctx, slim) {
|
|
|
2070
2235
|
labelText = fieldValue !== void 0 && fieldValue !== null ? String(fieldValue) : "";
|
|
2071
2236
|
}
|
|
2072
2237
|
}
|
|
2073
|
-
let featureIcon = ((_e = f.properties) == null ? void 0 : _e.pointIcon) || ((_f = f.properties) == null ? void 0 : _f.icon);
|
|
2238
|
+
let featureIcon = resolveIcon(((_e = f.properties) == null ? void 0 : _e.pointIcon) || ((_f = f.properties) == null ? void 0 : _f.icon));
|
|
2074
2239
|
let featureIconSize = ((_g = f.properties) == null ? void 0 : _g.pointIconSize) || ((_h = f.properties) == null ? void 0 : _h.iconSize) || 24;
|
|
2075
2240
|
const iconConfig = visualConfig == null ? void 0 : visualConfig.icon;
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2241
|
+
const layerIcon = !featureIcon && (iconConfig == null ? void 0 : iconConfig.enabled) ? resolveIcon(iconConfig.icon) : "";
|
|
2242
|
+
if (layerIcon) {
|
|
2243
|
+
featureIcon = layerIcon;
|
|
2244
|
+
featureIconSize = (iconConfig == null ? void 0 : iconConfig.size) ?? 24;
|
|
2079
2245
|
}
|
|
2080
2246
|
const isPoint = f.geometry.type === "Point";
|
|
2081
2247
|
const hideByHeatmap = isPoint && heatmapHidesPoints(layer);
|
|
@@ -2129,7 +2295,7 @@ function styleFeatureForPaint(f, layer, ctx, slim) {
|
|
|
2129
2295
|
isHiddenByCluster: hideByCluster ? 1 : 0,
|
|
2130
2296
|
isTracePoint: isTracePoint2 ? true : false,
|
|
2131
2297
|
_endpointRadius: endpointRadius,
|
|
2132
|
-
icon: featureIcon
|
|
2298
|
+
icon: featureIcon,
|
|
2133
2299
|
iconSize: featureIconSize,
|
|
2134
2300
|
stroke: strokeColor,
|
|
2135
2301
|
"stroke-width": strokeWidth,
|
|
@@ -2382,153 +2548,6 @@ function IngestProgressOverlay({
|
|
|
2382
2548
|
}
|
|
2383
2549
|
);
|
|
2384
2550
|
}
|
|
2385
|
-
const ICONS = [
|
|
2386
|
-
// Location & Places
|
|
2387
|
-
{ id: "map-pin", emoji: "๐", name: "Map Pin", category: "places" },
|
|
2388
|
-
{ id: "home", emoji: "๐ ", name: "Home", category: "places" },
|
|
2389
|
-
{ id: "building", emoji: "๐ข", name: "Building", category: "places" },
|
|
2390
|
-
{ id: "store", emoji: "๐ช", name: "Store", category: "places" },
|
|
2391
|
-
{ id: "factory", emoji: "๐ญ", name: "Factory", category: "places" },
|
|
2392
|
-
{ id: "construction", emoji: "๐๏ธ", name: "Construction", category: "places" },
|
|
2393
|
-
{ id: "church", emoji: "โช", name: "Church", category: "places" },
|
|
2394
|
-
{ id: "hospital", emoji: "๐ฅ", name: "Hospital", category: "places" },
|
|
2395
|
-
{ id: "school", emoji: "๐ซ", name: "School", category: "places" },
|
|
2396
|
-
{ id: "graduation", emoji: "๐", name: "University", category: "places" },
|
|
2397
|
-
{ id: "library", emoji: "๐", name: "Library", category: "places" },
|
|
2398
|
-
{ id: "landmark", emoji: "๐๏ธ", name: "Landmark", category: "places" },
|
|
2399
|
-
{ id: "castle", emoji: "๐ฐ", name: "Castle", category: "places" },
|
|
2400
|
-
{ id: "mosque", emoji: "๐", name: "Mosque", category: "places" },
|
|
2401
|
-
{ id: "stadium", emoji: "๐๏ธ", name: "Stadium", category: "places" },
|
|
2402
|
-
{ id: "tent", emoji: "โบ", name: "Camping", category: "places" },
|
|
2403
|
-
// Transport
|
|
2404
|
-
{ id: "car", emoji: "๐", name: "Car", category: "transport" },
|
|
2405
|
-
{ id: "bus", emoji: "๐", name: "Bus", category: "transport" },
|
|
2406
|
-
{ id: "train", emoji: "๐", name: "Train", category: "transport" },
|
|
2407
|
-
{ id: "plane", emoji: "โ๏ธ", name: "Plane", category: "transport" },
|
|
2408
|
-
{ id: "ship", emoji: "๐ข", name: "Ship", category: "transport" },
|
|
2409
|
-
{ id: "bike", emoji: "๐ฒ", name: "Bike", category: "transport" },
|
|
2410
|
-
{ id: "fuel", emoji: "โฝ", name: "Gas Station", category: "transport" },
|
|
2411
|
-
{ id: "helicopter", emoji: "๐", name: "Helicopter", category: "transport" },
|
|
2412
|
-
{ id: "rocket", emoji: "๐", name: "Rocket", category: "transport" },
|
|
2413
|
-
{ id: "motorcycle", emoji: "๐๏ธ", name: "Motorcycle", category: "transport" },
|
|
2414
|
-
{ id: "taxi", emoji: "๐", name: "Taxi", category: "transport" },
|
|
2415
|
-
{ id: "truck", emoji: "๐", name: "Truck", category: "transport" },
|
|
2416
|
-
// Food & Drink
|
|
2417
|
-
{ id: "utensils", emoji: "๐ด", name: "Restaurant", category: "food" },
|
|
2418
|
-
{ id: "coffee", emoji: "โ", name: "Coffee", category: "food" },
|
|
2419
|
-
{ id: "beer", emoji: "๐บ", name: "Bar", category: "food" },
|
|
2420
|
-
{ id: "wine", emoji: "๐ท", name: "Wine", category: "food" },
|
|
2421
|
-
{ id: "pizza", emoji: "๐", name: "Pizza", category: "food" },
|
|
2422
|
-
{ id: "ice-cream", emoji: "๐ฆ", name: "Ice Cream", category: "food" },
|
|
2423
|
-
{ id: "apple", emoji: "๐", name: "Apple", category: "food" },
|
|
2424
|
-
{ id: "cake", emoji: "๐", name: "Cake", category: "food" },
|
|
2425
|
-
{ id: "hamburger", emoji: "๐", name: "Burger", category: "food" },
|
|
2426
|
-
// Nature
|
|
2427
|
-
{ id: "trees", emoji: "๐ฒ", name: "Forest", category: "nature" },
|
|
2428
|
-
{ id: "mountain", emoji: "โฐ๏ธ", name: "Mountain", category: "nature" },
|
|
2429
|
-
{ id: "waves", emoji: "๐", name: "Water", category: "nature" },
|
|
2430
|
-
{ id: "sun", emoji: "โ๏ธ", name: "Sun", category: "nature" },
|
|
2431
|
-
{ id: "cloud", emoji: "โ๏ธ", name: "Cloud", category: "nature" },
|
|
2432
|
-
{ id: "umbrella", emoji: "๐", name: "Umbrella", category: "nature" },
|
|
2433
|
-
{ id: "flower", emoji: "๐ธ", name: "Flower", category: "nature" },
|
|
2434
|
-
{ id: "leaf", emoji: "๐", name: "Leaf", category: "nature" },
|
|
2435
|
-
{ id: "rainbow", emoji: "๐", name: "Rainbow", category: "nature" },
|
|
2436
|
-
{ id: "snowflake", emoji: "โ๏ธ", name: "Snow", category: "nature" },
|
|
2437
|
-
{ id: "fire", emoji: "๐ฅ", name: "Fire", category: "nature" },
|
|
2438
|
-
{ id: "volcano", emoji: "๐", name: "Volcano", category: "nature" },
|
|
2439
|
-
// Symbols & Markers
|
|
2440
|
-
{ id: "heart", emoji: "โค๏ธ", name: "Heart", category: "symbols" },
|
|
2441
|
-
{ id: "star", emoji: "โญ", name: "Star", category: "symbols" },
|
|
2442
|
-
{ id: "flag", emoji: "๐ฉ", name: "Flag", category: "symbols" },
|
|
2443
|
-
{ id: "alert", emoji: "โ ๏ธ", name: "Warning", category: "symbols" },
|
|
2444
|
-
{ id: "info", emoji: "โน๏ธ", name: "Info", category: "symbols" },
|
|
2445
|
-
{ id: "check", emoji: "โ
", name: "Check", category: "symbols" },
|
|
2446
|
-
{ id: "x-mark", emoji: "โ", name: "X", category: "symbols" },
|
|
2447
|
-
{ id: "zap", emoji: "โก", name: "Zap", category: "symbols" },
|
|
2448
|
-
{ id: "bell", emoji: "๐", name: "Bell", category: "symbols" },
|
|
2449
|
-
{ id: "peace", emoji: "โฎ๏ธ", name: "Peace", category: "symbols" },
|
|
2450
|
-
{ id: "recycle", emoji: "โป๏ธ", name: "Recycle", category: "symbols" },
|
|
2451
|
-
{ id: "radioactive", emoji: "โข๏ธ", name: "Radioactive", category: "symbols" },
|
|
2452
|
-
{ id: "biohazard", emoji: "โฃ๏ธ", name: "Biohazard", category: "symbols" },
|
|
2453
|
-
// Activities
|
|
2454
|
-
{ id: "camera", emoji: "๐ท", name: "Camera", category: "activities" },
|
|
2455
|
-
{ id: "music", emoji: "๐ต", name: "Music", category: "activities" },
|
|
2456
|
-
{ id: "film", emoji: "๐ฌ", name: "Cinema", category: "activities" },
|
|
2457
|
-
{ id: "gamepad", emoji: "๐ฎ", name: "Gaming", category: "activities" },
|
|
2458
|
-
{ id: "trophy", emoji: "๐", name: "Trophy", category: "activities" },
|
|
2459
|
-
{ id: "medal", emoji: "๐๏ธ", name: "Medal", category: "activities" },
|
|
2460
|
-
{ id: "sports", emoji: "โฝ", name: "Sports", category: "activities" },
|
|
2461
|
-
{ id: "basketball", emoji: "๐", name: "Basketball", category: "activities" },
|
|
2462
|
-
{ id: "fishing", emoji: "๐ฃ", name: "Fishing", category: "activities" },
|
|
2463
|
-
{ id: "art", emoji: "๐จ", name: "Art", category: "activities" },
|
|
2464
|
-
// Work & Tools
|
|
2465
|
-
{ id: "briefcase", emoji: "๐ผ", name: "Office", category: "work" },
|
|
2466
|
-
{ id: "wrench", emoji: "๐ง", name: "Repair", category: "work" },
|
|
2467
|
-
{ id: "hammer", emoji: "๐จ", name: "Construction", category: "work" },
|
|
2468
|
-
{ id: "gear", emoji: "โ๏ธ", name: "Settings", category: "work" },
|
|
2469
|
-
{ id: "microscope", emoji: "๐ฌ", name: "Science", category: "work" },
|
|
2470
|
-
{ id: "test-tube", emoji: "๐งช", name: "Lab", category: "work" },
|
|
2471
|
-
{ id: "computer", emoji: "๐ป", name: "Computer", category: "work" },
|
|
2472
|
-
// Shopping
|
|
2473
|
-
{ id: "cart", emoji: "๐", name: "Shopping", category: "shopping" },
|
|
2474
|
-
{ id: "gift", emoji: "๐", name: "Gift", category: "shopping" },
|
|
2475
|
-
{ id: "package", emoji: "๐ฆ", name: "Package", category: "shopping" },
|
|
2476
|
-
{ id: "money", emoji: "๐ฐ", name: "Money", category: "shopping" },
|
|
2477
|
-
{ id: "credit-card", emoji: "๐ณ", name: "Payment", category: "shopping" },
|
|
2478
|
-
// Communication
|
|
2479
|
-
{ id: "phone", emoji: "๐ฑ", name: "Phone", category: "communication" },
|
|
2480
|
-
{ id: "mail", emoji: "๐ง", name: "Mail", category: "communication" },
|
|
2481
|
-
{ id: "globe", emoji: "๐", name: "Web", category: "communication" },
|
|
2482
|
-
{ id: "satellite", emoji: "๐ก", name: "Satellite", category: "communication" },
|
|
2483
|
-
{ id: "radio", emoji: "๐ป", name: "Radio", category: "communication" },
|
|
2484
|
-
{ id: "tv", emoji: "๐บ", name: "TV", category: "communication" },
|
|
2485
|
-
// People & Animals
|
|
2486
|
-
{ id: "user", emoji: "๐ค", name: "Person", category: "people" },
|
|
2487
|
-
{ id: "users", emoji: "๐ฅ", name: "Group", category: "people" },
|
|
2488
|
-
{ id: "baby", emoji: "๐ถ", name: "Baby", category: "people" },
|
|
2489
|
-
{ id: "dog", emoji: "๐", name: "Dog", category: "people" },
|
|
2490
|
-
{ id: "cat", emoji: "๐", name: "Cat", category: "people" },
|
|
2491
|
-
{ id: "bird", emoji: "๐ฆ", name: "Bird", category: "people" },
|
|
2492
|
-
{ id: "horse", emoji: "๐ด", name: "Horse", category: "people" },
|
|
2493
|
-
{ id: "fish", emoji: "๐", name: "Fish", category: "people" },
|
|
2494
|
-
// Maritime & Navigation
|
|
2495
|
-
{ id: "anchor", emoji: "โ", name: "Anchor", category: "maritime" },
|
|
2496
|
-
{ id: "compass", emoji: "๐งญ", name: "Compass", category: "maritime" },
|
|
2497
|
-
{ id: "lighthouse", emoji: "๐ผ", name: "Lighthouse", category: "maritime" },
|
|
2498
|
-
{ id: "sailboat", emoji: "โต", name: "Sailboat", category: "maritime" },
|
|
2499
|
-
// Security
|
|
2500
|
-
{ id: "lock", emoji: "๐", name: "Lock", category: "security" },
|
|
2501
|
-
{ id: "key", emoji: "๐", name: "Key", category: "security" },
|
|
2502
|
-
{ id: "shield", emoji: "๐ก๏ธ", name: "Shield", category: "security" },
|
|
2503
|
-
{ id: "eye", emoji: "๐๏ธ", name: "Eye", category: "security" },
|
|
2504
|
-
{ id: "search", emoji: "๐", name: "Search", category: "security" },
|
|
2505
|
-
{ id: "police", emoji: "๐", name: "Police", category: "security" },
|
|
2506
|
-
{ id: "siren", emoji: "๐จ", name: "Siren", category: "security" },
|
|
2507
|
-
// Time & Organization
|
|
2508
|
-
{ id: "clock", emoji: "๐", name: "Clock", category: "time" },
|
|
2509
|
-
{ id: "calendar", emoji: "๐
", name: "Calendar", category: "time" },
|
|
2510
|
-
{ id: "bookmark", emoji: "๐", name: "Bookmark", category: "time" },
|
|
2511
|
-
{ id: "tag", emoji: "๐ท๏ธ", name: "Tag", category: "time" },
|
|
2512
|
-
{ id: "pushpin", emoji: "๐", name: "Pin", category: "time" },
|
|
2513
|
-
// Shapes & Geometric
|
|
2514
|
-
{ id: "red-circle", emoji: "๐ด", name: "Red Circle", category: "shapes" },
|
|
2515
|
-
{ id: "blue-circle", emoji: "๐ต", name: "Blue Circle", category: "shapes" },
|
|
2516
|
-
{ id: "green-circle", emoji: "๐ข", name: "Green Circle", category: "shapes" },
|
|
2517
|
-
{ id: "yellow-circle", emoji: "๐ก", name: "Yellow Circle", category: "shapes" },
|
|
2518
|
-
{ id: "orange-circle", emoji: "๐ ", name: "Orange Circle", category: "shapes" },
|
|
2519
|
-
{ id: "purple-circle", emoji: "๐ฃ", name: "Purple Circle", category: "shapes" },
|
|
2520
|
-
{ id: "white-circle", emoji: "โช", name: "White Circle", category: "shapes" },
|
|
2521
|
-
{ id: "black-circle", emoji: "โซ", name: "Black Circle", category: "shapes" },
|
|
2522
|
-
{ id: "red-square", emoji: "๐ฅ", name: "Red Square", category: "shapes" },
|
|
2523
|
-
{ id: "blue-square", emoji: "๐ฆ", name: "Blue Square", category: "shapes" },
|
|
2524
|
-
{ id: "diamond", emoji: "๐", name: "Diamond", category: "shapes" },
|
|
2525
|
-
// Arrows
|
|
2526
|
-
{ id: "arrow-up", emoji: "โฌ๏ธ", name: "Arrow Up", category: "arrows" },
|
|
2527
|
-
{ id: "arrow-down", emoji: "โฌ๏ธ", name: "Arrow Down", category: "arrows" },
|
|
2528
|
-
{ id: "arrow-left", emoji: "โฌ
๏ธ", name: "Arrow Left", category: "arrows" },
|
|
2529
|
-
{ id: "arrow-right", emoji: "โก๏ธ", name: "Arrow Right", category: "arrows" },
|
|
2530
|
-
{ id: "target", emoji: "๐ฏ", name: "Target", category: "arrows" }
|
|
2531
|
-
];
|
|
2532
2551
|
const CATEGORIES = [
|
|
2533
2552
|
{ id: "places", label: "Places" },
|
|
2534
2553
|
{ id: "transport", label: "Transport" },
|
|
@@ -2546,7 +2565,6 @@ const CATEGORIES = [
|
|
|
2546
2565
|
{ id: "shapes", label: "Shapes" },
|
|
2547
2566
|
{ id: "arrows", label: "Arrows" }
|
|
2548
2567
|
];
|
|
2549
|
-
const EMOJI_BY_ID = new Map(ICONS.map((i) => [i.id, i.emoji]));
|
|
2550
2568
|
function IconPicker({ value, onChange, disabled = false, renderTrigger, open: controlledOpen, onOpenChange }) {
|
|
2551
2569
|
const [internalOpen, setInternalOpen] = useState(false);
|
|
2552
2570
|
const open = controlledOpen ?? internalOpen;
|
|
@@ -9650,7 +9668,7 @@ function loadEmojiIconsIntoMap(mapInstance) {
|
|
|
9650
9668
|
}
|
|
9651
9669
|
}
|
|
9652
9670
|
mapInstance.setMissingStyleImageResolver((id) => {
|
|
9653
|
-
if (mapInstance.hasImage(id)) return;
|
|
9671
|
+
if (mapInstance.hasImage(id) || !isEmojiIcon(id)) return;
|
|
9654
9672
|
try {
|
|
9655
9673
|
const canvas = renderEmojiToCanvas(id);
|
|
9656
9674
|
mapInstance.addImage(id, emojiCanvasToImageData(canvas), { pixelRatio: ratio });
|