@nmorph/nmorph-ui-kit 2.2.45 → 2.2.47
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/assets/icons/forward.svg.js +11 -7
- package/dist/assets/icons/reply.svg.js +9 -5
- package/dist/components/basic/nmorph-icon/NmorphIcon.css +1 -1
- package/dist/components/basic/nmorph-link/NmorphLink.vue.js +46 -34
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.css +1 -1
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.js +42 -40
- package/dist/components/feedback/nmorph-callout/NmorphCallout.css +1 -1
- package/dist/components/feedback/nmorph-callout/NmorphCallout.vue.js +66 -28
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.css +1 -1
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js +81 -47
- package/dist/emoji/base.js +77 -0
- package/dist/emoji/index.d.ts +2 -0
- package/dist/emoji/index.js +16 -0
- package/dist/emoji/locales/en.js +41 -0
- package/dist/emoji/locales/ru.js +41 -0
- package/dist/emoji/locales/zh.js +41 -0
- package/dist/index.es.js +861 -855
- package/dist/index.umd.js +27 -27
- package/dist/package.json.js +1 -1
- package/dist/src/components/basic/nmorph-link/NmorphLink.vue.d.ts +7 -0
- package/dist/src/components/basic/nmorph-link/types.d.ts +7 -0
- package/dist/src/components/data/nmorph-audio-preview/NmorphAudioPreview.vue.d.ts +2 -2
- package/dist/src/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-emoji-picker/types.d.ts +1 -0
- package/dist/src/components/data/nmorph-empty/NmorphEmpty.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-file-card/NmorphFileCard.vue.d.ts +2 -2
- package/dist/src/components/data/nmorph-video-preview/NmorphVideoPreview.vue.d.ts +2 -2
- package/dist/src/components/feedback/nmorph-callout/NmorphCallout.vue.d.ts +17 -3
- package/dist/src/components/feedback/nmorph-callout/types.d.ts +12 -1
- package/dist/src/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.d.ts +2 -2
- package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +2 -2
- package/dist/src/emoji/base.d.ts +20 -0
- package/dist/src/emoji/index.d.ts +8 -0
- package/dist/src/emoji/locales/en.d.ts +3 -0
- package/dist/src/emoji/locales/ru.d.ts +3 -0
- package/dist/src/emoji/locales/zh.d.ts +3 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +17 -1
package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './NmorphNotificationProvider.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { NmorphNotificationPlacement as
|
|
4
|
-
import
|
|
2
|
+
import { defineComponent as A, ref as h, inject as F, computed as g, watch as L, onBeforeUnmount as O, openBlock as a, createElementBlock as c, normalizeStyle as I, Fragment as x, renderList as T, createBlock as P, TransitionGroup as S, normalizeClass as D, withCtx as V, createVNode as j, unref as q, mergeProps as G, createElementVNode as _, toDisplayString as U, createCommentVNode as H } from "vue";
|
|
3
|
+
import { NmorphNotificationPlacement as J } from "./types.js";
|
|
4
|
+
import K from "../../feedback/nmorph-alert/NmorphAlert.vue.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
const
|
|
6
|
+
const Q = ["title"], W = { class: "nmorph-notification-provider__duration-value" }, X = 500, re = /* @__PURE__ */ A({
|
|
7
7
|
__name: "NmorphNotificationProvider",
|
|
8
8
|
props: {
|
|
9
9
|
notifications: {},
|
|
@@ -11,62 +11,96 @@ const q = 500, b = /* @__PURE__ */ k({
|
|
|
11
11
|
zIndex: { default: void 0 },
|
|
12
12
|
quantity: { default: 100 }
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
setup(b) {
|
|
15
|
+
const k = (e) => typeof e.id == "string" && e.id.length > 0, d = h([]), i = h([]), n = h([]), s = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), w = Object.values(J), l = (e) => typeof e.duration != "number" || !Number.isFinite(e.duration) ? 0 : Math.max(e.duration, 0), N = (e) => l(e) > 0, z = (e) => {
|
|
16
|
+
if (e < 1e3) return `${e}ms`;
|
|
17
|
+
const t = e / 1e3;
|
|
18
|
+
return `${Number.isInteger(t) ? t : Number(t.toFixed(1))}s`;
|
|
19
|
+
}, y = (e) => z(l(e)), $ = (e) => ({
|
|
20
|
+
"--nmorph-notification-provider-duration": `${l(e)}ms`
|
|
21
|
+
}), p = (e) => {
|
|
22
|
+
const t = s.get(e);
|
|
23
|
+
t && clearTimeout(t), s.delete(e), u.delete(e);
|
|
24
|
+
}, C = (e) => {
|
|
25
|
+
n.value = n.value.filter((t) => t.id !== e), i.value = i.value.filter((t) => t !== e), p(e);
|
|
26
|
+
}, f = (e, t = !0) => {
|
|
27
|
+
i.value.includes(e) || (p(e), t && !d.value.includes(e) && (d.value = [...d.value, e]), i.value = [...i.value, e], setTimeout(() => C(e), X));
|
|
28
|
+
}, E = (e) => {
|
|
29
|
+
const t = l(e);
|
|
30
|
+
u.get(e.id) !== t && (p(e.id), t && (s.set(
|
|
31
|
+
e.id,
|
|
32
|
+
setTimeout(() => f(e.id), t)
|
|
33
|
+
), u.set(e.id, t)));
|
|
34
|
+
}, m = b, B = F("nmorph", void 0), M = g(
|
|
35
|
+
() => w.map((e) => {
|
|
36
|
+
const t = n.value.filter(
|
|
37
|
+
(o) => (o.placement ?? m.placement) === e
|
|
38
|
+
), r = Math.max(t.length - m.quantity, 0);
|
|
24
39
|
return {
|
|
25
|
-
placement:
|
|
26
|
-
notifications:
|
|
40
|
+
placement: e,
|
|
41
|
+
notifications: t.slice(r)
|
|
27
42
|
};
|
|
28
43
|
})
|
|
29
44
|
);
|
|
30
|
-
|
|
31
|
-
() =>
|
|
32
|
-
(
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
return
|
|
37
|
-
}),
|
|
38
|
-
|
|
39
|
-
(
|
|
40
|
-
) ||
|
|
41
|
-
}),
|
|
42
|
-
(
|
|
43
|
-
).forEach((
|
|
45
|
+
L(
|
|
46
|
+
() => m.notifications,
|
|
47
|
+
(e) => {
|
|
48
|
+
const t = e.filter(k).filter((r) => !d.value.includes(r.id));
|
|
49
|
+
n.value = n.value.map((r) => {
|
|
50
|
+
const o = t.find((v) => v.id === r.id);
|
|
51
|
+
return o ? { ...r, ...o } : r;
|
|
52
|
+
}), t.forEach((r) => {
|
|
53
|
+
n.value.some(
|
|
54
|
+
(v) => v.id === r.id
|
|
55
|
+
) || n.value.push(r);
|
|
56
|
+
}), t.forEach((r) => E(r)), n.value.filter(
|
|
57
|
+
(r) => !t.some((o) => o.id === r.id)
|
|
58
|
+
).forEach((r) => f(r.id, !1));
|
|
44
59
|
},
|
|
45
60
|
{ deep: !0, immediate: !0 }
|
|
46
61
|
);
|
|
47
|
-
const
|
|
48
|
-
return (
|
|
62
|
+
const R = g(() => m.zIndex ?? (B?.zIndex.current.value ?? 1e3) + 1);
|
|
63
|
+
return O(() => {
|
|
64
|
+
s.forEach((e) => clearTimeout(e)), s.clear(), u.clear();
|
|
65
|
+
}), (e, t) => (a(), c("div", {
|
|
49
66
|
class: "nmorph-notification-provider",
|
|
50
|
-
style:
|
|
67
|
+
style: I({ zIndex: R.value })
|
|
51
68
|
}, [
|
|
52
|
-
(a(!0),
|
|
53
|
-
key:
|
|
69
|
+
(a(!0), c(x, null, T(M.value, (r) => (a(), P(S, {
|
|
70
|
+
key: r.placement,
|
|
54
71
|
appear: "",
|
|
55
72
|
name: "nmorph-notification",
|
|
56
73
|
tag: "div",
|
|
57
|
-
class:
|
|
74
|
+
class: D(`nmorph-notification-provider__list nmorph-notification-provider__list--${r.placement}`)
|
|
58
75
|
}, {
|
|
59
|
-
default:
|
|
60
|
-
(a(!0),
|
|
61
|
-
key:
|
|
62
|
-
style:
|
|
63
|
-
class: [
|
|
76
|
+
default: V(() => [
|
|
77
|
+
(a(!0), c(x, null, T(r.notifications, (o) => (a(), c("div", {
|
|
78
|
+
key: o.id,
|
|
79
|
+
style: I($(o)),
|
|
80
|
+
class: D([
|
|
64
81
|
"nmorph-notification-provider__notification",
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
82
|
+
N(o) && "nmorph-notification-provider__notification--with-duration",
|
|
83
|
+
i.value.includes(o.id) && "nmorph-notification-provider__notification--closing"
|
|
84
|
+
])
|
|
85
|
+
}, [
|
|
86
|
+
j(q(K), G({
|
|
87
|
+
class: "nmorph-notification-provider__alert",
|
|
88
|
+
style: { width: o.width }
|
|
89
|
+
}, { ref_for: !0 }, o, {
|
|
90
|
+
onClose: () => f(o.id)
|
|
91
|
+
}), null, 16, ["style", "onClose"]),
|
|
92
|
+
N(o) ? (a(), c("div", {
|
|
93
|
+
key: `${o.id}-${l(o)}`,
|
|
94
|
+
class: "nmorph-notification-provider__duration",
|
|
95
|
+
title: y(o),
|
|
96
|
+
"aria-hidden": "true"
|
|
97
|
+
}, [
|
|
98
|
+
t[0] || (t[0] = _("span", { class: "nmorph-notification-provider__duration-track" }, [
|
|
99
|
+
_("span", { class: "nmorph-notification-provider__duration-bar" })
|
|
100
|
+
], -1)),
|
|
101
|
+
_("span", W, U(y(o)), 1)
|
|
102
|
+
], 8, Q)) : H("", !0)
|
|
103
|
+
], 6))), 128))
|
|
70
104
|
]),
|
|
71
105
|
_: 2
|
|
72
106
|
}, 1032, ["class"]))), 128))
|
|
@@ -74,5 +108,5 @@ const q = 500, b = /* @__PURE__ */ k({
|
|
|
74
108
|
}
|
|
75
109
|
});
|
|
76
110
|
export {
|
|
77
|
-
|
|
111
|
+
re as default
|
|
78
112
|
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
const m = [
|
|
2
|
+
{
|
|
3
|
+
group: "Smileys",
|
|
4
|
+
tags: ["face", "smile", "emotion"],
|
|
5
|
+
emojis: "😀 😃 😄 😁 😆 😅 😂 🤣 🥲 ☺️ 😊 😇 🙂 🙃 😉 😌 😍 🥰 😘 😗 😙 😚 😋 😛 😝 😜 🤪 🤨 🧐 🤓 😎 🥸 🤩 🥳 😏 😒 😞 😔 😟 😕 🙁 ☹️ 😣 😖 😫 😩 🥺 😢 😭 😤 😠 😡 🤬 🤯 😳 🥵 🥶 😱 😨 😰 😥 😓 🫣 🤗 🫡 🤔 🫢 🤭 🤫 🤥 😶 😶🌫️ 😐 😑 😬 🫨 🫠 🙄 😯 😦 😧 😮 😲 🥱 😴 🤤 😪 😵 😵💫 🥴 🤢 🤮 🤧 😷 🤒 🤕"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
group: "People",
|
|
9
|
+
tags: ["person", "gesture", "body"],
|
|
10
|
+
emojis: "👋 🤚 🖐️ ✋ 🖖 🫱 🫲 🫳 🫴 👌 🤌 🤏 ✌️ 🤞 🫰 🤟 🤘 🤙 👈 👉 👆 🖕 👇 ☝️ 🫵 👍 👎 ✊ 👊 🤛 🤜 👏 🙌 🫶 👐 🤲 🤝 🙏 ✍️ 💅 🤳 💪 🦾 🦿 🦵 🦶 👂 🦻 👃 🧠 🫀 🫁 🦷 🦴 👀 👁️ 👅 👄 🫦 👶 🧒 👦 👧 🧑 👱 👨 🧔 🧔♂️ 🧔♀️ 👩 🧓 👴 👵 🙍 🙎 🙅 🙆 💁 🙋 🧏 🙇 🤦 🤷 🧑⚕️ 🧑🎓 🧑🏫 🧑⚖️ 🧑🌾 🧑🍳 🧑🔧 🧑🏭 🧑💼 🧑🔬 🧑💻 🧑🎤 🧑🎨 🧑✈️ 🧑🚀 🧑🚒 👮 🕵️ 💂 🥷 👷 🫅 🤴 👸 👳 👲 🧕 🤵 👰 🤰 🫃 🫄 👼 🎅 🤶 🦸 🦹 🧙 🧚 🧛 🧜 🧝 🧞 🧟"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
group: "Animals",
|
|
14
|
+
tags: ["animal", "nature"],
|
|
15
|
+
emojis: "🐶 🐱 🐭 🐹 🐰 🦊 🐻 🐼 🐻❄️ 🐨 🐯 🦁 🐮 🐷 🐽 🐸 🐵 🙈 🙉 🙊 🐒 🐔 🐧 🐦 🐤 🐣 🐥 🦆 🦅 🦉 🦇 🐺 🐗 🐴 🦄 🫎 🐝 🪱 🐛 🦋 🐌 🐞 🐜 🪰 🪲 🪳 🦟 🦗 🕷️ 🕸️ 🦂 🐢 🐍 🦎 🦖 🦕 🐙 🦑 🦐 🦞 🦀 🪼 🪸 🐡 🐠 🐟 🐬 🐳 🐋 🦈 🐊 🐅 🐆 🦓 🦍 🦧 🦣 🐘 🦛 🦏 🐪 🐫 🦒 🦘 🦬 🐃 🐂 🐄 🫏 🐎 🐖 🐏 🐑 🦙 🐐 🦌 🐕 🐩 🦮 🐕🦺 🐈 🐈⬛ 🪶 🐓 🦃 🦤 🦚 🦜 🪽 🐇 🦝 🦨 🦡 🦫 🦦 🦥 🐁 🐀 🐿️ 🦔"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
group: "Nature",
|
|
19
|
+
tags: ["plant", "weather", "nature"],
|
|
20
|
+
emojis: "🌵 🎄 🌲 🌳 🌴 🪵 🌱 🌿 ☘️ 🍀 🎍 🪴 🎋 🍃 🍂 🍁 🪺 🪹 🍄 🪨 🐚 🪷 🌾 💐 🌷 🪻 🌹 🥀 🪸 🌺 🌸 🌼 🌻 🌞 🌝 🌛 🌜 🌚 🌕 🌖 🌗 🌘 🌑 🌒 🌓 🌔 🌙 🌎 🌍 🌏 🪐 💫 ⭐ 🌟 ✨ ⚡ ☄️ 💥 🔥 🌪️ 🌈 ☀️ 🌤️ ⛅ 🌥️ ☁️ 🌦️ 🌧️ ⛈️ 🌩️ 🌨️ ❄️ ☃️ ⛄ 🌬️ 💨 💧 💦 ☔ ☂️ 🌊 🌫️"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
group: "Food",
|
|
24
|
+
tags: ["food", "drink"],
|
|
25
|
+
emojis: "🍏 🍎 🍐 🍊 🍋 🍌 🍉 🍇 🍓 🫐 🍈 🍒 🍑 🥭 🍍 🥥 🥝 🍅 🍆 🥑 🫛 🥦 🥬 🥒 🌶️ 🫑 🌽 🥕 🫒 🧄 🧅 🥔 🍠 🫘 🥐 🥯 🍞 🥖 🥨 🧀 🥚 🍳 🧈 🥞 🧇 🥓 🥩 🍗 🍖 🦴 🌭 🍔 🍟 🍕 🫓 🥪 🥙 🧆 🌮 🌯 🫔 🥗 🥘 🫕 🥫 🍝 🍜 🍲 🍛 🍣 🍱 🥟 🦪 🍤 🍙 🍚 🍘 🍥 🥠 🥮 🍢 🍡 🍧 🍨 🍦 🥧 🧁 🍰 🎂 🍮 🍭 🍬 🍫 🍿 🍩 🍪 🌰 🥜 🍯 🥛 🍼 🫖 ☕ 🍵 🧃 🥤 🧋 🍶 🍺 🍻 🥂 🍷 🥃 🍸 🍹 🧉 🍾 🧊"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
group: "Activity",
|
|
29
|
+
tags: ["activity", "sport", "game"],
|
|
30
|
+
emojis: "⚽ 🏀 🏈 ⚾ 🥎 🎾 🏐 🏉 🥏 🎱 🪀 🏓 🏸 🏒 🏑 🥍 🏏 🪃 🥅 ⛳ 🪁 🏹 🎣 🤿 🥊 🥋 🎽 🛹 🛼 🛷 ⛸️ 🥌 🎿 ⛷️ 🏂 🪂 🏋️ 🤼 🤸 ⛹️ 🤺 🤾 🏌️ 🏇 🧘 🏄 🏊 🤽 🚣 🧗 🚵 🚴 🏆 🥇 🥈 🥉 🏅 🎖️ 🏵️ 🎗️ 🎫 🎟️ 🎪 🤹 🎭 🩰 🎨 🎬 🎤 🎧 🎼 🎹 🥁 🪘 🎷 🎺 🪗 🎸 🪕 🎻 🪈 🎲 ♟️ 🎯 🎳 🎮 🎰 🧩"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
group: "Travel",
|
|
34
|
+
tags: ["travel", "place", "vehicle"],
|
|
35
|
+
emojis: "🚗 🚕 🚙 🚌 🚎 🏎️ 🚓 🚑 🚒 🚐 🛻 🚚 🚛 🚜 🏍️ 🛵 🦽 🦼 🛺 🚲 🛴 🛹 🛼 🚏 🛣️ 🛤️ 🛢️ ⛽ 🛞 🚨 🚥 🚦 🛑 🚧 ⚓ 🛟 ⛵ 🛶 🚤 🛳️ ⛴️ 🛥️ 🚢 ✈️ 🛩️ 🛫 🛬 🪂 💺 🚁 🚟 🚠 🚡 🛰️ 🚀 🛸 🛎️ 🧳 ⌛ ⏳ ⌚ ⏰ ⏱️ ⏲️ 🕰️ 🌋 🗻 🏕️ 🏖️ 🏜️ 🏝️ 🏞️ 🏟️ 🏛️ 🏗️ 🧱 🪨 🪵 🛖 🏘️ 🏚️ 🏠 🏡 🏢 🏣 🏤 🏥 🏦 🏨 🏩 🏪 🏫 🏬 🏭 🏯 🏰 💒 🗼 🗽 ⛪ 🕌 🛕 🕍 ⛩️ 🕋 ⛲ ⛺ 🌁 🌃 🏙️ 🌄 🌅 🌆 🌇 🌉"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
group: "Objects",
|
|
39
|
+
tags: ["object", "tool", "device"],
|
|
40
|
+
emojis: "⌚ 📱 📲 💻 ⌨️ 🖥️ 🖨️ 🖱️ 🖲️ 🕹️ 🗜️ 💽 💾 💿 📀 📼 📷 📸 📹 🎥 📽️ 🎞️ 📞 ☎️ 📟 📠 📺 📻 🎙️ 🎚️ 🎛️ 🧭 ⏱️ ⏲️ ⏰ 🕰️ ⌛ ⏳ 📡 🔋 🪫 🔌 💡 🔦 🕯️ 🪔 🧯 🛢️ 💸 💵 💴 💶 💷 🪙 💰 💳 🧾 💎 ⚖️ 🪜 🧰 🪛 🔧 🔨 ⚒️ 🛠️ ⛏️ 🪚 🔩 ⚙️ 🪤 🧱 ⛓️ 🧲 🔫 💣 🧨 🪓 🔪 🗡️ ⚔️ 🛡️ 🚬 ⚰️ 🪦 ⚱️ 🏺 🔮 📿 🧿 🪬 💈 ⚗️ 🔭 🔬 🕳️ 🩹 🩺 🩻 🩼 💊 💉 🩸 🧬 🦠 🧫 🧪 🌡️ 🧹 🪠 🧺 🧻 🚽 🚰 🚿 🛁 🛀 🧼 🪥 🪒 🧽 🪣 🧴 🛎️ 🔑 🗝️ 🚪 🪑 🛋️ 🛏️ 🛌 🧸 🪆 🖼️ 🪞 🪟 🛍️ 🛒 🎁 🎈 🎏 🎀 🪄 🪅 🎊 🎉"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
group: "Symbols",
|
|
44
|
+
tags: ["symbol", "heart", "sign"],
|
|
45
|
+
emojis: "❤️ 🩷 🧡 💛 💚 💙 🩵 💜 🤎 🖤 🩶 🤍 💔 ❤️🔥 ❤️🩹 ❣️ 💕 💞 💓 💗 💖 💘 💝 💟 ☮️ ✝️ ☪️ 🕉️ ☸️ ✡️ 🔯 🕎 ☯️ ☦️ 🛐 ⛎ ♈ ♉ ♊ ♋ ♌ ♍ ♎ ♏ ♐ ♑ ♒ ♓ 🆔 ⚛️ 🉑 ☢️ ☣️ 📴 📳 🈶 🈚 🈸 🈺 🈷️ ✴️ 🆚 💮 🉐 ㊙️ ㊗️ 🈴 🈵 🈹 🈲 🅰️ 🅱️ 🆎 🆑 🅾️ 🆘 ❌ ⭕ 🛑 ⛔ 📛 🚫 💯 💢 ♨️ 🚷 🚯 🚳 🚱 🔞 📵 🚭 ❗ ❕ ❓ ❔ ‼️ ⁉️ 🔅 🔆 〽️ ⚠️ 🚸 🔱 ⚜️ 🔰 ♻️ ✅ 🈯 💹 ❇️ ✳️ ❎ 🌐 💠 Ⓜ️ 🌀 💤 🏧 🚾 ♿ 🅿️ 🛗 🈳 🈂️ 🛂 🛃 🛄 🛅 🚹 🚺 🚼 ⚧️ 🚻 🚮 🎦 📶 🈁 🔣 ℹ️ 🔤 🔡 🔠 🆖 🆗 🆙 🆒 🆕 🆓 0️⃣ 1️⃣ 2️⃣ 3️⃣ 4️⃣ 5️⃣ 6️⃣ 7️⃣ 8️⃣ 9️⃣ 🔟"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
group: "Flags",
|
|
49
|
+
tags: ["flag", "country"],
|
|
50
|
+
emojis: "🏁 🚩 🎌 🏴 🏳️ 🏳️🌈 🏳️⚧️ 🏴☠️ 🇺🇳 🇦🇨 🇦🇩 🇦🇪 🇦🇫 🇦🇬 🇦🇮 🇦🇱 🇦🇲 🇦🇴 🇦🇶 🇦🇷 🇦🇸 🇦🇹 🇦🇺 🇦🇼 🇦🇽 🇦🇿 🇧🇦 🇧🇧 🇧🇩 🇧🇪 🇧🇫 🇧🇬 🇧🇭 🇧🇮 🇧🇯 🇧🇱 🇧🇲 🇧🇳 🇧🇴 🇧🇶 🇧🇷 🇧🇸 🇧🇹 🇧🇻 🇧🇼 🇧🇾 🇧🇿 🇨🇦 🇨🇨 🇨🇩 🇨🇫 🇨🇬 🇨🇭 🇨🇮 🇨🇰 🇨🇱 🇨🇲 🇨🇳 🇨🇴 🇨🇵 🇨🇷 🇨🇺 🇨🇻 🇨🇼 🇨🇽 🇨🇾 🇨🇿 🇩🇪 🇩🇬 🇩🇯 🇩🇰 🇩🇲 🇩🇴 🇩🇿 🇪🇦 🇪🇨 🇪🇪 🇪🇬 🇪🇭 🇪🇷 🇪🇸 🇪🇹 🇪🇺 🇫🇮 🇫🇯 🇫🇰 🇫🇲 🇫🇴 🇫🇷 🇬🇦 🇬🇧 🇬🇩 🇬🇪 🇬🇫 🇬🇬 🇬🇭 🇬🇮 🇬🇱 🇬🇲 🇬🇳 🇬🇵 🇬🇶 🇬🇷 🇬🇸 🇬🇹 🇬🇺 🇬🇼 🇬🇾 🇭🇰 🇭🇲 🇭🇳 🇭🇷 🇭🇹 🇭🇺 🇮🇨 🇮🇩 🇮🇪 🇮🇱 🇮🇲 🇮🇳 🇮🇴 🇮🇶 🇮🇷 🇮🇸 🇮🇹 🇯🇪 🇯🇲 🇯🇴 🇯🇵 🇰🇪 🇰🇬 🇰🇭 🇰🇮 🇰🇲 🇰🇳 🇰🇵 🇰🇷 🇰🇼 🇰🇾 🇰🇿"
|
|
51
|
+
}
|
|
52
|
+
], n = ["👍", "❤️", "😂", "🎉", "🔥", "👀", "✅", "🙏"], p = (e) => {
|
|
53
|
+
const r = m.flatMap((o, i) => {
|
|
54
|
+
const t = e.groups[o.group] || {
|
|
55
|
+
label: o.group,
|
|
56
|
+
tags: []
|
|
57
|
+
}, a = t.label || o.group, g = a.toLocaleLowerCase(e.language), l = Array.from(/* @__PURE__ */ new Set([...o.tags, ...t.tags, g]));
|
|
58
|
+
return o.emojis.split(/\s+/).filter(Boolean).map((u, s) => ({
|
|
59
|
+
emoji: u,
|
|
60
|
+
annotation: `${a} ${s + 1}`,
|
|
61
|
+
groupLabel: a,
|
|
62
|
+
tags: l,
|
|
63
|
+
group: o.group,
|
|
64
|
+
order: i * 1e3 + s
|
|
65
|
+
}));
|
|
66
|
+
});
|
|
67
|
+
return {
|
|
68
|
+
language: e.language,
|
|
69
|
+
data: r,
|
|
70
|
+
i18n: e.i18n,
|
|
71
|
+
quickList: e.quickList || n
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
export {
|
|
75
|
+
p as createNmorphEmojiLocale,
|
|
76
|
+
n as nmorphEmojiQuickList
|
|
77
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createNmorphEmojiLocale as c, nmorphEmojiQuickList as i } from "./base.js";
|
|
2
|
+
const l = [
|
|
3
|
+
{ value: "en", label: "EN" },
|
|
4
|
+
{ value: "ru", label: "RU" },
|
|
5
|
+
{ value: "zh", label: "ZH" }
|
|
6
|
+
], e = {
|
|
7
|
+
en: () => import("./locales/en.js"),
|
|
8
|
+
ru: () => import("./locales/ru.js"),
|
|
9
|
+
zh: () => import("./locales/zh.js")
|
|
10
|
+
}, r = async (o) => (await e[o]()).default;
|
|
11
|
+
export {
|
|
12
|
+
c as createNmorphEmojiLocale,
|
|
13
|
+
r as loadNmorphEmojiLocale,
|
|
14
|
+
l as nmorphEmojiLanguageOptions,
|
|
15
|
+
i as nmorphEmojiQuickList
|
|
16
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { createNmorphEmojiLocale as a } from "../base.js";
|
|
2
|
+
const e = {
|
|
3
|
+
Smileys: "Smileys",
|
|
4
|
+
People: "People",
|
|
5
|
+
Animals: "Animals",
|
|
6
|
+
Nature: "Nature",
|
|
7
|
+
Food: "Food",
|
|
8
|
+
Activity: "Activity",
|
|
9
|
+
Travel: "Travel",
|
|
10
|
+
Objects: "Objects",
|
|
11
|
+
Symbols: "Symbols",
|
|
12
|
+
Flags: "Flags"
|
|
13
|
+
}, o = a({
|
|
14
|
+
language: "en",
|
|
15
|
+
groups: {
|
|
16
|
+
Smileys: { label: e.Smileys, tags: ["face", "smile", "emotion"] },
|
|
17
|
+
People: { label: e.People, tags: ["person", "gesture", "body"] },
|
|
18
|
+
Animals: { label: e.Animals, tags: ["animal", "nature"] },
|
|
19
|
+
Nature: { label: e.Nature, tags: ["plant", "weather", "nature"] },
|
|
20
|
+
Food: { label: e.Food, tags: ["food", "drink"] },
|
|
21
|
+
Activity: { label: e.Activity, tags: ["activity", "sport", "game"] },
|
|
22
|
+
Travel: { label: e.Travel, tags: ["travel", "place", "vehicle"] },
|
|
23
|
+
Objects: { label: e.Objects, tags: ["object", "tool", "device"] },
|
|
24
|
+
Symbols: { label: e.Symbols, tags: ["symbol", "heart", "sign"] },
|
|
25
|
+
Flags: { label: e.Flags, tags: ["flag", "country"] }
|
|
26
|
+
},
|
|
27
|
+
i18n: {
|
|
28
|
+
searchPlaceholder: "Search emoji",
|
|
29
|
+
searchLabel: "Search emoji",
|
|
30
|
+
quickLabel: "Frequent reactions",
|
|
31
|
+
expandLabel: "Open emoji picker",
|
|
32
|
+
collapseLabel: "Collapse emoji picker",
|
|
33
|
+
noResults: "No emoji found",
|
|
34
|
+
categoryLabel: "Emoji categories",
|
|
35
|
+
resultsLabel: "Emoji results",
|
|
36
|
+
categories: e
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
o as default
|
|
41
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { createNmorphEmojiLocale as a } from "../base.js";
|
|
2
|
+
const l = {
|
|
3
|
+
Smileys: "Смайлы",
|
|
4
|
+
People: "Люди",
|
|
5
|
+
Animals: "Животные",
|
|
6
|
+
Nature: "Природа",
|
|
7
|
+
Food: "Еда",
|
|
8
|
+
Activity: "Активность",
|
|
9
|
+
Travel: "Путешествия",
|
|
10
|
+
Objects: "Предметы",
|
|
11
|
+
Symbols: "Символы",
|
|
12
|
+
Flags: "Флаги"
|
|
13
|
+
}, s = a({
|
|
14
|
+
language: "ru",
|
|
15
|
+
groups: {
|
|
16
|
+
Smileys: { label: l.Smileys, tags: ["лицо", "улыбка", "эмоция"] },
|
|
17
|
+
People: { label: l.People, tags: ["человек", "жест", "тело"] },
|
|
18
|
+
Animals: { label: l.Animals, tags: ["животное", "природа"] },
|
|
19
|
+
Nature: { label: l.Nature, tags: ["растение", "погода", "природа"] },
|
|
20
|
+
Food: { label: l.Food, tags: ["еда", "напиток"] },
|
|
21
|
+
Activity: { label: l.Activity, tags: ["активность", "спорт", "игра"] },
|
|
22
|
+
Travel: { label: l.Travel, tags: ["путешествие", "место", "транспорт"] },
|
|
23
|
+
Objects: { label: l.Objects, tags: ["предмет", "инструмент", "устройство"] },
|
|
24
|
+
Symbols: { label: l.Symbols, tags: ["символ", "сердце", "знак"] },
|
|
25
|
+
Flags: { label: l.Flags, tags: ["флаг", "страна"] }
|
|
26
|
+
},
|
|
27
|
+
i18n: {
|
|
28
|
+
searchPlaceholder: "Поиск эмодзи",
|
|
29
|
+
searchLabel: "Поиск эмодзи",
|
|
30
|
+
quickLabel: "Частые реакции",
|
|
31
|
+
expandLabel: "Открыть эмодзи",
|
|
32
|
+
collapseLabel: "Свернуть эмодзи",
|
|
33
|
+
noResults: "Эмодзи не найдены",
|
|
34
|
+
categoryLabel: "Категории эмодзи",
|
|
35
|
+
resultsLabel: "Результаты эмодзи",
|
|
36
|
+
categories: l
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
s as default
|
|
41
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { createNmorphEmojiLocale as a } from "../base.js";
|
|
2
|
+
const l = {
|
|
3
|
+
Smileys: "笑脸",
|
|
4
|
+
People: "人物",
|
|
5
|
+
Animals: "动物",
|
|
6
|
+
Nature: "自然",
|
|
7
|
+
Food: "食物",
|
|
8
|
+
Activity: "活动",
|
|
9
|
+
Travel: "旅行",
|
|
10
|
+
Objects: "物品",
|
|
11
|
+
Symbols: "符号",
|
|
12
|
+
Flags: "旗帜"
|
|
13
|
+
}, s = a({
|
|
14
|
+
language: "zh",
|
|
15
|
+
groups: {
|
|
16
|
+
Smileys: { label: l.Smileys, tags: ["表情", "微笑", "情绪"] },
|
|
17
|
+
People: { label: l.People, tags: ["人物", "手势", "身体"] },
|
|
18
|
+
Animals: { label: l.Animals, tags: ["动物", "自然"] },
|
|
19
|
+
Nature: { label: l.Nature, tags: ["植物", "天气", "自然"] },
|
|
20
|
+
Food: { label: l.Food, tags: ["食物", "饮料"] },
|
|
21
|
+
Activity: { label: l.Activity, tags: ["活动", "运动", "游戏"] },
|
|
22
|
+
Travel: { label: l.Travel, tags: ["旅行", "地点", "交通"] },
|
|
23
|
+
Objects: { label: l.Objects, tags: ["物品", "工具", "设备"] },
|
|
24
|
+
Symbols: { label: l.Symbols, tags: ["符号", "爱心", "标志"] },
|
|
25
|
+
Flags: { label: l.Flags, tags: ["旗帜", "国家"] }
|
|
26
|
+
},
|
|
27
|
+
i18n: {
|
|
28
|
+
searchPlaceholder: "搜索表情",
|
|
29
|
+
searchLabel: "搜索表情",
|
|
30
|
+
quickLabel: "常用反应",
|
|
31
|
+
expandLabel: "打开表情选择器",
|
|
32
|
+
collapseLabel: "收起表情选择器",
|
|
33
|
+
noResults: "没有找到表情",
|
|
34
|
+
categoryLabel: "表情分类",
|
|
35
|
+
resultsLabel: "表情结果",
|
|
36
|
+
categories: l
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
s as default
|
|
41
|
+
};
|