@layers-app/shared 0.3.0 → 0.3.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.
- package/dist/assets/default-workspace-avatar.jpg.js +4 -0
- package/dist/assets/layers-logo-full.svg.js +2 -3
- package/dist/assets/layers-logo-full.svg2.js +3 -2
- package/dist/assets/layers-logo-icon.svg.js +2 -3
- package/dist/assets/layers-logo-icon.svg2.js +3 -2
- package/dist/assets/projects/figureA.svg.js +4 -0
- package/dist/assets/projects/figureB.svg.js +4 -0
- package/dist/assets/qwebchannel.d.ts +15 -0
- package/dist/assets/qwebchannel.d.ts.map +1 -0
- package/dist/assets/taskPriorities/high.svg.js +5 -0
- package/dist/assets/taskPriorities/low.svg.js +5 -0
- package/dist/assets/taskPriorities/none.svg.js +5 -0
- package/dist/assets/taskPriorities/normal.svg.js +5 -0
- package/dist/assets/taskPriorities/urgent.svg.js +5 -0
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.d.ts +3 -0
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.d.ts.map +1 -0
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.js +69 -0
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +27 -0
- package/dist/components/AnimatedFigurePage/types.d.ts +15 -0
- package/dist/components/AnimatedFigurePage/types.d.ts.map +1 -0
- package/dist/components/AnimatedFigurePage/useParallax.d.ts +6 -0
- package/dist/components/AnimatedFigurePage/useParallax.d.ts.map +1 -0
- package/dist/components/AnimatedFigurePage/useParallax.js +29 -0
- package/dist/components/AppContainer/AppContainer.d.ts +1 -1
- package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/AppContainer.js +37 -36
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +80 -45
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +60 -69
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.js +57 -51
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +3 -1
- package/dist/components/AppContainer/types.d.ts +3 -0
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +9 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +88 -74
- package/dist/components/ColorPicker/ColorPicker.module.css.js +31 -0
- package/dist/components/ColorPicker/ColorPickerList.d.ts +6 -0
- package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -0
- package/dist/components/ColorPicker/ColorPickerList.js +134 -0
- package/dist/components/ColorPicker/ColorPickerPopover.d.ts +6 -6
- package/dist/components/ColorPicker/ColorPickerPopover.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerPopover.js +29 -31
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts +13 -0
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -0
- package/dist/components/ColorPicker/ColorPickerToolbar.js +132 -0
- package/dist/components/ColorPicker/icons.d.ts +11 -0
- package/dist/components/ColorPicker/icons.d.ts.map +1 -0
- package/dist/components/ColorPicker/icons.js +71 -0
- package/dist/components/ColorPicker/types.d.ts +49 -0
- package/dist/components/ColorPicker/types.d.ts.map +1 -0
- package/dist/components/ColorPicker/types.js +10 -0
- package/dist/components/ColorPicker/useRecentColors.d.ts +13 -0
- package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -0
- package/dist/components/ColorPicker/useRecentColors.js +39 -0
- package/dist/components/CommentComposer/index.d.ts.map +1 -1
- package/dist/components/CommentComposer/index.js +115 -111
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +12 -10
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +3 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +49 -46
- package/dist/components/EmojiPicker/IconsPanel.d.ts +2 -1
- package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/IconsPanel.js +47 -45
- package/dist/components/EmojiPicker/custom-icons/customIcons.d.ts.map +1 -1
- package/dist/components/EmojiPicker/custom-icons/customIcons.js +66 -31
- package/dist/components/EntityIcon.d.ts +3 -3
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +59 -35
- package/dist/components/EntityTitle/EntityTitle.d.ts +1 -1
- package/dist/components/EntityTitle/EntityTitle.d.ts.map +1 -1
- package/dist/components/EntityTitle/EntityTitle.js +34 -34
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +111 -123
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +41 -39
- package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/UploadField/UploadField.js +34 -33
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +3 -3
- package/dist/components/Logotype.d.ts +2 -1
- package/dist/components/Logotype.d.ts.map +1 -1
- package/dist/components/Logotype.js +58 -49
- package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.js +122 -107
- package/dist/components/NavMenu/types.d.ts +1 -0
- package/dist/components/NavMenu/types.d.ts.map +1 -1
- package/dist/components/ProjectIcon/ProjectIcon.js +13 -13
- package/dist/components/TreeIndent/TreeIndent.d.ts +9 -0
- package/dist/components/TreeIndent/TreeIndent.d.ts.map +1 -0
- package/dist/components/TreeIndent/TreeIndent.js +15 -0
- package/dist/components/TreeIndent/TreeIndent.module.css.js +11 -0
- package/dist/components/TreeIndent/index.d.ts +2 -0
- package/dist/components/TreeIndent/index.d.ts.map +1 -0
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +11 -11
- package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +97 -101
- package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
- package/dist/config/brand.d.ts +1 -0
- package/dist/config/brand.d.ts.map +1 -1
- package/dist/config/brand.js +42 -34
- package/dist/config/envConfig.d.ts +40 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/config/envConfig.js +29 -10
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +15 -4
- package/dist/helpers/getFileIcons.d.ts.map +1 -1
- package/dist/helpers/getFileIcons.js +34 -29
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/getFileType.js +3 -3
- package/dist/helpers/hotjar.d.ts.map +1 -1
- package/dist/helpers/hotjar.js +11 -7
- package/dist/helpers/platform.js +4 -4
- package/dist/helpers/showNotifications.d.ts +3 -0
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +79 -44
- package/dist/hooks/useDateFnsLocale.d.ts +2 -0
- package/dist/hooks/useDateFnsLocale.d.ts.map +1 -1
- package/dist/hooks/useDateFnsLocale.js +9 -8
- package/dist/hooks/useDateUtils.d.ts.map +1 -1
- package/dist/hooks/useDateUtils.js +19 -19
- package/dist/hooks/useFormatDistance.d.ts.map +1 -1
- package/dist/hooks/useFormatDistance.js +6 -6
- package/dist/hooks/useNumberQueryParam.d.ts +1 -1
- package/dist/hooks/useNumberQueryParam.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +516 -494
- package/dist/lang/locales/ui_en.json.js +7 -7
- package/dist/lang/locales/ui_es.json.js +1 -1
- package/dist/lang/locales/ui_ru.json.js +11 -11
- package/dist/utils/formatStorage.d.ts +9 -0
- package/dist/utils/formatStorage.d.ts.map +1 -1
- package/dist/utils/formatStorage.js +14 -10
- package/package.json +1 -1
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import { jsxs as j, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { useState as d, useMemo as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { Popover as k, Center as
|
|
5
|
-
import { IconEntity as
|
|
6
|
-
import { EmojiPanel as
|
|
7
|
-
import { IconsPanel as
|
|
2
|
+
import { useState as d, useMemo as $, useEffect as v } from "react";
|
|
3
|
+
import { useTranslation as A } from "react-i18next";
|
|
4
|
+
import { Popover as k, Center as E, Tabs as t, Flex as T, Button as G } from "@mantine/core";
|
|
5
|
+
import { IconEntity as J } from "../ProjectIcon/ProjectIcon.js";
|
|
6
|
+
import { EmojiPanel as K } from "./EmojiPanel.js";
|
|
7
|
+
import { IconsPanel as U } from "./IconsPanel.js";
|
|
8
8
|
import f from "./EmojiPicker.module.css.js";
|
|
9
|
-
const
|
|
9
|
+
const ee = ({
|
|
10
10
|
project: C,
|
|
11
11
|
value: i,
|
|
12
|
-
querySearch:
|
|
12
|
+
querySearch: l,
|
|
13
13
|
children: N,
|
|
14
14
|
onChange: p,
|
|
15
15
|
position: R = "bottom-start",
|
|
16
|
-
popoverProps:
|
|
16
|
+
popoverProps: P,
|
|
17
17
|
showIcons: u,
|
|
18
18
|
showColors: D,
|
|
19
19
|
defaultActiveTab: I = null,
|
|
20
|
-
showEmojis:
|
|
20
|
+
showEmojis: s = !0,
|
|
21
21
|
withinPortal: w = !1,
|
|
22
22
|
locales: h,
|
|
23
23
|
openWhen: g = "click",
|
|
24
|
-
triggerRegex:
|
|
24
|
+
triggerRegex: b = /(^|\s):([^\s:]{1,})$/,
|
|
25
25
|
typingSeq: c,
|
|
26
|
-
showRemoveButton: L = !0
|
|
26
|
+
showRemoveButton: L = !0,
|
|
27
|
+
keepOpenOnRandom: M = !1
|
|
27
28
|
}) => {
|
|
28
|
-
const { t: e } =
|
|
29
|
+
const { t: e } = A("ui"), [n, r] = d(!1), [O, y] = d(I), [z, B] = d(i || null), [x, F] = d(null), a = $(() => ({
|
|
29
30
|
emojis: e("emojis"),
|
|
30
31
|
remove: e("remove"),
|
|
31
32
|
search: e("search"),
|
|
@@ -43,27 +44,28 @@ const _ = ({
|
|
|
43
44
|
objects: e("emojiPicker.categories.objects"),
|
|
44
45
|
symbols: e("emojiPicker.categories.symbols"),
|
|
45
46
|
flags: e("emojiPicker.categories.flags"),
|
|
47
|
+
additional: e("emojiPicker.categories.additional"),
|
|
46
48
|
...h?.emojiCategory
|
|
47
49
|
},
|
|
48
50
|
...h
|
|
49
51
|
}), [e, h]);
|
|
50
52
|
v(() => {
|
|
51
|
-
const m = u &&
|
|
53
|
+
const m = u && J.parse(i)?.icon ? "icons" : s ? "emojis" : null;
|
|
52
54
|
!n && m && y(m);
|
|
53
|
-
}, [n,
|
|
55
|
+
}, [n, s, u, i]), v(() => {
|
|
54
56
|
if (g !== "realtime" || typeof c != "number" || x === c) return;
|
|
55
|
-
|
|
56
|
-
const m =
|
|
57
|
-
r(
|
|
57
|
+
F(c);
|
|
58
|
+
const m = l ?? "", Q = !!s && b.test(m);
|
|
59
|
+
r(Q);
|
|
58
60
|
}, [
|
|
59
61
|
g,
|
|
60
62
|
c,
|
|
61
63
|
x,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
l,
|
|
65
|
+
b,
|
|
66
|
+
s
|
|
65
67
|
]);
|
|
66
|
-
const
|
|
68
|
+
const H = typeof l == "string";
|
|
67
69
|
return /* @__PURE__ */ j(
|
|
68
70
|
k,
|
|
69
71
|
{
|
|
@@ -93,19 +95,19 @@ const _ = ({
|
|
|
93
95
|
]
|
|
94
96
|
}
|
|
95
97
|
},
|
|
96
|
-
...
|
|
98
|
+
...P || {},
|
|
97
99
|
children: [
|
|
98
100
|
/* @__PURE__ */ o(k.Target, { children: /* @__PURE__ */ o(
|
|
99
|
-
|
|
101
|
+
E,
|
|
100
102
|
{
|
|
101
|
-
onClick: g === "click" && !
|
|
102
|
-
children: N ??
|
|
103
|
+
onClick: g === "click" && !P?.disabled ? () => r(!n) : void 0,
|
|
104
|
+
children: N ?? z
|
|
103
105
|
}
|
|
104
106
|
) }),
|
|
105
107
|
/* @__PURE__ */ o(k.Dropdown, { w: "380px", children: /* @__PURE__ */ j(
|
|
106
|
-
|
|
108
|
+
t,
|
|
107
109
|
{
|
|
108
|
-
value:
|
|
110
|
+
value: O,
|
|
109
111
|
onChange: y,
|
|
110
112
|
keepMounted: !1,
|
|
111
113
|
h: "100%",
|
|
@@ -123,8 +125,8 @@ const _ = ({
|
|
|
123
125
|
}
|
|
124
126
|
},
|
|
125
127
|
children: [
|
|
126
|
-
!
|
|
127
|
-
|
|
128
|
+
!H && /* @__PURE__ */ j(
|
|
129
|
+
t.List,
|
|
128
130
|
{
|
|
129
131
|
style: {
|
|
130
132
|
gap: "4px"
|
|
@@ -132,28 +134,28 @@ const _ = ({
|
|
|
132
134
|
h: 54,
|
|
133
135
|
px: 8,
|
|
134
136
|
children: [
|
|
135
|
-
|
|
136
|
-
|
|
137
|
+
s && /* @__PURE__ */ o(
|
|
138
|
+
t.Tab,
|
|
137
139
|
{
|
|
138
140
|
className: f.originalTab,
|
|
139
141
|
h: "100%",
|
|
140
142
|
p: 0,
|
|
141
143
|
value: "emojis",
|
|
142
|
-
children: /* @__PURE__ */ o(T, { className: f.customTab, px: "sm", h: 36, children:
|
|
144
|
+
children: /* @__PURE__ */ o(T, { className: f.customTab, px: "sm", h: 36, children: a.emojis })
|
|
143
145
|
}
|
|
144
146
|
),
|
|
145
147
|
u && /* @__PURE__ */ o(
|
|
146
|
-
|
|
148
|
+
t.Tab,
|
|
147
149
|
{
|
|
148
150
|
className: f.originalTab,
|
|
149
151
|
h: "100%",
|
|
150
152
|
p: 0,
|
|
151
153
|
value: "icons",
|
|
152
|
-
children: /* @__PURE__ */ o(T, { className: f.customTab, px: "sm", h: 36, children:
|
|
154
|
+
children: /* @__PURE__ */ o(T, { className: f.customTab, px: "sm", h: 36, children: a.icons })
|
|
153
155
|
}
|
|
154
156
|
),
|
|
155
157
|
!!String(i) && L && /* @__PURE__ */ o(
|
|
156
|
-
|
|
158
|
+
G,
|
|
157
159
|
{
|
|
158
160
|
variant: "subtle",
|
|
159
161
|
fz: "sm",
|
|
@@ -164,38 +166,39 @@ const _ = ({
|
|
|
164
166
|
color: "var(--mantine-color-gray-light-color)",
|
|
165
167
|
onClick: () => p?.(""),
|
|
166
168
|
style: { marginLeft: "auto" },
|
|
167
|
-
children:
|
|
169
|
+
children: a.remove
|
|
168
170
|
}
|
|
169
171
|
)
|
|
170
172
|
]
|
|
171
173
|
}
|
|
172
174
|
),
|
|
173
|
-
/* @__PURE__ */ o(
|
|
174
|
-
|
|
175
|
+
/* @__PURE__ */ o(t.Panel, { mah: 470, style: { overflow: "auto" }, value: "emojis", children: /* @__PURE__ */ o(
|
|
176
|
+
K,
|
|
175
177
|
{
|
|
176
178
|
onChange: p,
|
|
177
179
|
value: i,
|
|
178
|
-
querySearch:
|
|
179
|
-
locales:
|
|
180
|
-
setRandomIcon:
|
|
180
|
+
querySearch: l,
|
|
181
|
+
locales: a,
|
|
182
|
+
setRandomIcon: B,
|
|
181
183
|
onClose: () => r(!1)
|
|
182
184
|
}
|
|
183
185
|
) }),
|
|
184
186
|
/* @__PURE__ */ o(
|
|
185
|
-
|
|
187
|
+
t.Panel,
|
|
186
188
|
{
|
|
187
189
|
mah: 470,
|
|
188
190
|
h: "100%",
|
|
189
191
|
style: { overflow: "auto" },
|
|
190
192
|
value: "icons",
|
|
191
193
|
children: /* @__PURE__ */ o(
|
|
192
|
-
|
|
194
|
+
U,
|
|
193
195
|
{
|
|
194
196
|
project: C,
|
|
195
197
|
onChange: p,
|
|
196
198
|
value: i,
|
|
197
|
-
locales:
|
|
199
|
+
locales: a,
|
|
198
200
|
showColors: D,
|
|
201
|
+
keepOpenOnRandom: M,
|
|
199
202
|
onClose: () => r(!1)
|
|
200
203
|
}
|
|
201
204
|
)
|
|
@@ -209,5 +212,5 @@ const _ = ({
|
|
|
209
212
|
);
|
|
210
213
|
};
|
|
211
214
|
export {
|
|
212
|
-
|
|
215
|
+
ee as EmojiPicker
|
|
213
216
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EmojiPickerProps } from './EmojiPicker';
|
|
2
|
-
export declare const IconsPanel: import("react").MemoExoticComponent<({ showColors, locales, onChange, value, onClose, project, }: Pick<EmojiPickerProps, "locales" | "showColors" | "value" | "onChange" | "project"> & {
|
|
2
|
+
export declare const IconsPanel: import("react").MemoExoticComponent<({ showColors, locales, onChange, value, onClose, project, keepOpenOnRandom, }: Pick<EmojiPickerProps, "locales" | "showColors" | "value" | "onChange" | "project"> & {
|
|
3
3
|
onClose: () => void;
|
|
4
|
+
keepOpenOnRandom?: boolean;
|
|
4
5
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
5
6
|
//# sourceMappingURL=IconsPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/IconsPanel.tsx"],"names":[],"mappings":"AAoCA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AA0BjD,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"IconsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/IconsPanel.tsx"],"names":[],"mappings":"AAoCA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AA0BjD,eAAO,MAAM,UAAU,sHASlB,IAAI,CACL,gBAAgB,EAChB,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAC5D,GAAG;IACF,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,6CAwSF,CAAC"}
|
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { memo as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { Search01Icon as
|
|
2
|
+
import { memo as M, useState as x, useEffect as U, useCallback as V, useMemo as j } from "react";
|
|
3
|
+
import { useTranslation as G } from "react-i18next";
|
|
4
|
+
import { Search01Icon as Q, ShuffleIcon as Y } from "@hugeicons/core-free-icons";
|
|
5
5
|
import { HugeiconsIcon as L } from "@hugeicons/react";
|
|
6
|
-
import { useMantineTheme as
|
|
7
|
-
import { useEvent as
|
|
8
|
-
import { groupBy as
|
|
9
|
-
import { DEFAULT_VALUES as
|
|
10
|
-
import { ColorPicker as
|
|
11
|
-
import { NoData as
|
|
6
|
+
import { useMantineTheme as _, parseThemeColor as J, darken as K, Stack as y, Text as b, Flex as z, FocusTrap as W, TextInput as X, Tooltip as Z, ActionIcon as ee, Box as oe, Paper as E, SimpleGrid as N } from "@mantine/core";
|
|
7
|
+
import { useEvent as te } from "draggable-ui";
|
|
8
|
+
import { groupBy as re } from "lodash-es";
|
|
9
|
+
import { DEFAULT_VALUES as ie } from "../../constants.js";
|
|
10
|
+
import { ColorPicker as ne } from "../ColorPicker/ColorPicker.js";
|
|
11
|
+
import { NoData as ce } from "../NoData/NoData.js";
|
|
12
12
|
import { IconEntity as I, IconType as A } from "../ProjectIcon/ProjectIcon.js";
|
|
13
13
|
import { customIcons as D } from "./custom-icons/customIcons.js";
|
|
14
|
-
import { getIconsList as F, getRandomIcon as
|
|
14
|
+
import { getIconsList as F, getRandomIcon as ae } from "./utils.js";
|
|
15
15
|
import h from "./EmojiPicker.module.css.js";
|
|
16
|
-
async function
|
|
16
|
+
async function le(c, a, l = 500) {
|
|
17
17
|
const u = [], p = c.length;
|
|
18
18
|
for (let r = 0; r < p; r += l) {
|
|
19
|
-
const
|
|
20
|
-
u.push(...
|
|
19
|
+
const w = c.slice(r, r + l).filter(a);
|
|
20
|
+
u.push(...w), await new Promise((f) => setTimeout(f, 0));
|
|
21
21
|
}
|
|
22
22
|
return u;
|
|
23
23
|
}
|
|
24
|
-
const
|
|
24
|
+
const Ce = M(
|
|
25
25
|
({
|
|
26
26
|
showColors: c,
|
|
27
27
|
locales: a,
|
|
28
28
|
onChange: l,
|
|
29
29
|
value: u,
|
|
30
30
|
onClose: p,
|
|
31
|
-
project: r
|
|
31
|
+
project: r,
|
|
32
|
+
keepOpenOnRandom: C = !1
|
|
32
33
|
}) => {
|
|
33
|
-
const
|
|
34
|
+
const w = _(), [f, R] = x(""), { t: k } = G("ui"), [P, $] = x(
|
|
34
35
|
[]
|
|
35
36
|
);
|
|
36
|
-
|
|
37
|
+
U(() => {
|
|
37
38
|
(async () => {
|
|
38
|
-
const t = await F(r), s =
|
|
39
|
-
|
|
39
|
+
const t = await F(r), s = re(t, "c");
|
|
40
|
+
$(
|
|
40
41
|
Object.entries(s).map((v) => ({
|
|
41
42
|
id: v[0],
|
|
42
43
|
icons: v[1].map((d) => d.n)
|
|
@@ -44,19 +45,19 @@ const be = B(
|
|
|
44
45
|
);
|
|
45
46
|
})();
|
|
46
47
|
}, [r]);
|
|
47
|
-
const [T, S] = x([]),
|
|
48
|
+
const [T, S] = x([]), H = V(
|
|
48
49
|
async (o) => {
|
|
49
50
|
const t = o.currentTarget.value;
|
|
50
|
-
|
|
51
|
-
const s = await F(r), v = await
|
|
51
|
+
R(t);
|
|
52
|
+
const s = await F(r), v = await le(
|
|
52
53
|
s,
|
|
53
|
-
(d) => d.t.split(",").some((
|
|
54
|
+
(d) => d.t.split(",").some((B) => t.includes(String(B))) || d.n.includes(t),
|
|
54
55
|
500
|
|
55
56
|
);
|
|
56
57
|
S(v.map((d) => d.n));
|
|
57
58
|
},
|
|
58
59
|
[r]
|
|
59
|
-
), i = I.parse(u), g =
|
|
60
|
+
), i = I.parse(u), g = te((o) => {
|
|
60
61
|
const t = o.currentTarget.getAttribute("data-icon");
|
|
61
62
|
t && (l?.(
|
|
62
63
|
I.stringify({
|
|
@@ -65,24 +66,24 @@ const be = B(
|
|
|
65
66
|
type: i?.type || A.FILLED
|
|
66
67
|
})
|
|
67
68
|
), c || p());
|
|
68
|
-
}), n =
|
|
69
|
-
color: i?.color ||
|
|
70
|
-
theme:
|
|
71
|
-
}),
|
|
69
|
+
}), n = J({
|
|
70
|
+
color: i?.color || ie.COLORS[0],
|
|
71
|
+
theme: w
|
|
72
|
+
}), O = j(() => n.isThemeColor ? {
|
|
72
73
|
"--icon-color": `var(--mantine-color-${n.color}-filled)`,
|
|
73
74
|
"--icon-color-hover": `var(--mantine-color-${n.color}-filled-hover)`
|
|
74
75
|
} : {
|
|
75
76
|
"--icon-color": n.value,
|
|
76
|
-
"--icon-color-hover":
|
|
77
|
-
}, [n]),
|
|
78
|
-
const o = await
|
|
79
|
-
S([]), l?.(I.stringify({ icon: o, color: i?.color })), c
|
|
77
|
+
"--icon-color-hover": K(n.value, 0.2)
|
|
78
|
+
}, [n]), q = async () => {
|
|
79
|
+
const o = await ae(r);
|
|
80
|
+
S([]), l?.(I.stringify({ icon: o, color: i?.color })), !c && !C && p();
|
|
80
81
|
};
|
|
81
82
|
return /* @__PURE__ */ m(y, { w: "100%", gap: "sm", pt: 12, pb: 8, h: "100%", children: [
|
|
82
83
|
c && /* @__PURE__ */ m(y, { gap: 4, px: 8, w: "100%", children: [
|
|
83
84
|
/* @__PURE__ */ e(b, { lh: "140%", fw: 500, c: "dimmed", fz: "xs", children: a?.chooseColor || k("chooseColor") }),
|
|
84
85
|
/* @__PURE__ */ e(
|
|
85
|
-
|
|
86
|
+
ne,
|
|
86
87
|
{
|
|
87
88
|
swatchSize: 24,
|
|
88
89
|
gap: 4,
|
|
@@ -111,10 +112,10 @@ const be = B(
|
|
|
111
112
|
)
|
|
112
113
|
] }),
|
|
113
114
|
/* @__PURE__ */ m(z, { w: "100%", justify: "space-between", gap: 4, px: 8, h: 38, children: [
|
|
114
|
-
/* @__PURE__ */ e(
|
|
115
|
-
|
|
115
|
+
/* @__PURE__ */ e(W, { active: !0, children: /* @__PURE__ */ e(
|
|
116
|
+
X,
|
|
116
117
|
{
|
|
117
|
-
leftSection: /* @__PURE__ */ e(L, { size: 16, icon:
|
|
118
|
+
leftSection: /* @__PURE__ */ e(L, { size: 16, icon: Q }),
|
|
118
119
|
value: f,
|
|
119
120
|
placeholder: `${a?.search}...`,
|
|
120
121
|
"data-autofocus": !0,
|
|
@@ -125,31 +126,31 @@ const be = B(
|
|
|
125
126
|
}
|
|
126
127
|
},
|
|
127
128
|
w: 320,
|
|
128
|
-
onChange:
|
|
129
|
+
onChange: H,
|
|
129
130
|
radius: "var(--mantine-radius-default)"
|
|
130
131
|
}
|
|
131
132
|
) }),
|
|
132
|
-
/* @__PURE__ */ e(
|
|
133
|
-
|
|
133
|
+
/* @__PURE__ */ e(Z, { withArrow: !0, label: k("random"), children: /* @__PURE__ */ e(
|
|
134
|
+
ee,
|
|
134
135
|
{
|
|
135
136
|
h: 36,
|
|
136
137
|
w: 36,
|
|
137
138
|
variant: "outline",
|
|
138
139
|
color: "var(--mantine-color-default-border)",
|
|
139
|
-
onClick:
|
|
140
|
+
onClick: q,
|
|
140
141
|
className: h.randomIcon,
|
|
141
142
|
children: /* @__PURE__ */ e(
|
|
142
143
|
L,
|
|
143
144
|
{
|
|
144
145
|
color: "var(--mantine-color-default-color)",
|
|
145
146
|
size: 20,
|
|
146
|
-
icon:
|
|
147
|
+
icon: Y
|
|
147
148
|
}
|
|
148
149
|
)
|
|
149
150
|
}
|
|
150
151
|
) })
|
|
151
152
|
] }),
|
|
152
|
-
/* @__PURE__ */ e(
|
|
153
|
+
/* @__PURE__ */ e(oe, { h: "100%", pl: 8, pt: 4, style: O, children: /* @__PURE__ */ e(
|
|
153
154
|
y,
|
|
154
155
|
{
|
|
155
156
|
mah: "210px",
|
|
@@ -199,7 +200,7 @@ const be = B(
|
|
|
199
200
|
o
|
|
200
201
|
);
|
|
201
202
|
}) }) : /* @__PURE__ */ e(z, { flex: 1, justify: "center", align: "stretch", children: /* @__PURE__ */ e(
|
|
202
|
-
|
|
203
|
+
ce,
|
|
203
204
|
{
|
|
204
205
|
size: 100,
|
|
205
206
|
description: a?.searchNoResults,
|
|
@@ -208,11 +209,12 @@ const be = B(
|
|
|
208
209
|
}
|
|
209
210
|
}
|
|
210
211
|
) })
|
|
211
|
-
] }) :
|
|
212
|
+
] }) : P.map((o) => /* @__PURE__ */ m("div", { children: [
|
|
212
213
|
/* @__PURE__ */ e(
|
|
213
214
|
E,
|
|
214
215
|
{
|
|
215
216
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-6))",
|
|
217
|
+
px: 4,
|
|
216
218
|
py: 6,
|
|
217
219
|
pos: "sticky",
|
|
218
220
|
top: -1,
|
|
@@ -263,5 +265,5 @@ const be = B(
|
|
|
263
265
|
}
|
|
264
266
|
);
|
|
265
267
|
export {
|
|
266
|
-
|
|
268
|
+
Ce as IconsPanel
|
|
267
269
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customIcons.d.ts","sourceRoot":"","sources":["../../../../src/components/EmojiPicker/custom-icons/customIcons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"customIcons.d.ts","sourceRoot":"","sources":["../../../../src/components/EmojiPicker/custom-icons/customIcons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAqBhD,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,cAAc,EA6G3C,CAAC;AAEF,eAAO,MAAM,WAAW;;CAEvB,CAAC"}
|
|
@@ -1,99 +1,134 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
1
|
+
import s from "../../../assets/taskPriorities/high.svg.js";
|
|
2
|
+
import r from "../../../assets/taskPriorities/low.svg.js";
|
|
3
|
+
import a from "../../../assets/taskPriorities/none.svg.js";
|
|
4
|
+
import e from "../../../assets/taskPriorities/normal.svg.js";
|
|
5
|
+
import n from "../../../assets/taskPriorities/urgent.svg.js";
|
|
6
|
+
import { StatusCancel as m } from "./StatusCancel.js";
|
|
7
|
+
import { StatusDone as g } from "./StatusDone.js";
|
|
8
|
+
import { StatusProgress00 as i } from "./StatusProgress00.js";
|
|
9
|
+
import { StatusProgress10 as p } from "./StatusProgress10.js";
|
|
10
|
+
import { StatusProgress20 as c } from "./StatusProgress20.js";
|
|
11
|
+
import { StatusProgress30 as u } from "./StatusProgress30.js";
|
|
12
|
+
import { StatusProgress40 as d } from "./StatusProgress40.js";
|
|
13
|
+
import { StatusProgress50 as l } from "./StatusProgress50.js";
|
|
14
|
+
import { StatusProgress60 as y } from "./StatusProgress60.js";
|
|
15
|
+
import { StatusProgress70 as f } from "./StatusProgress70.js";
|
|
16
|
+
import { StatusProgress80 as A } from "./StatusProgress80.js";
|
|
17
|
+
import { StatusProgress90 as S } from "./StatusProgress90.js";
|
|
18
|
+
import { StatusProgress100 as P } from "./StatusProgress100.js";
|
|
19
|
+
const h = [
|
|
15
20
|
{
|
|
16
|
-
name: "
|
|
21
|
+
name: "high-priority",
|
|
22
|
+
component: s,
|
|
23
|
+
category: "Additional",
|
|
24
|
+
tags: ["priority", "high"]
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: "low-priority",
|
|
17
28
|
component: r,
|
|
18
29
|
category: "Additional",
|
|
30
|
+
tags: ["priority", "low"]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: "none-priority",
|
|
34
|
+
component: a,
|
|
35
|
+
category: "Additional",
|
|
36
|
+
tags: ["priority", "none"]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: "normal-priority",
|
|
40
|
+
component: e,
|
|
41
|
+
category: "Additional",
|
|
42
|
+
tags: ["priority", "normal"]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "urgent-priority",
|
|
46
|
+
component: n,
|
|
47
|
+
category: "Additional",
|
|
48
|
+
tags: ["priority", "urgent"]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "status-done",
|
|
52
|
+
component: g,
|
|
53
|
+
category: "Additional",
|
|
19
54
|
tags: ["status", "done", "complete", "finished", "ok", "check"]
|
|
20
55
|
},
|
|
21
56
|
{
|
|
22
57
|
name: "status-cancel",
|
|
23
|
-
component:
|
|
58
|
+
component: m,
|
|
24
59
|
category: "Additional",
|
|
25
60
|
tags: ["status", "cancel", "x", "uncheck"]
|
|
26
61
|
},
|
|
27
62
|
{
|
|
28
63
|
name: "status-progress-00",
|
|
29
|
-
component:
|
|
64
|
+
component: i,
|
|
30
65
|
category: "Additional",
|
|
31
66
|
tags: ["status", "todo", "progress", "00"]
|
|
32
67
|
},
|
|
33
68
|
{
|
|
34
69
|
name: "status-progress-10",
|
|
35
|
-
component:
|
|
70
|
+
component: p,
|
|
36
71
|
category: "Additional",
|
|
37
72
|
tags: ["status", "progress", "10"]
|
|
38
73
|
},
|
|
39
74
|
{
|
|
40
75
|
name: "status-progress-20",
|
|
41
|
-
component:
|
|
76
|
+
component: c,
|
|
42
77
|
category: "Additional",
|
|
43
78
|
tags: ["status", "progress", "20"]
|
|
44
79
|
},
|
|
45
80
|
{
|
|
46
81
|
name: "status-progress-30",
|
|
47
|
-
component:
|
|
82
|
+
component: u,
|
|
48
83
|
category: "Additional",
|
|
49
84
|
tags: ["status", "progress", "30"]
|
|
50
85
|
},
|
|
51
86
|
{
|
|
52
87
|
name: "status-progress-40",
|
|
53
|
-
component:
|
|
88
|
+
component: d,
|
|
54
89
|
category: "Additional",
|
|
55
90
|
tags: ["status", "progress", "40"]
|
|
56
91
|
},
|
|
57
92
|
{
|
|
58
93
|
name: "status-progress-50",
|
|
59
|
-
component:
|
|
94
|
+
component: l,
|
|
60
95
|
category: "Additional",
|
|
61
96
|
tags: ["status", "progress", "50"]
|
|
62
97
|
},
|
|
63
98
|
{
|
|
64
99
|
name: "status-progress-60",
|
|
65
|
-
component:
|
|
100
|
+
component: y,
|
|
66
101
|
category: "Additional",
|
|
67
102
|
tags: ["status", "progress", "60"]
|
|
68
103
|
},
|
|
69
104
|
{
|
|
70
105
|
name: "status-progress-70",
|
|
71
|
-
component:
|
|
106
|
+
component: f,
|
|
72
107
|
category: "Additional",
|
|
73
108
|
tags: ["status", "progress", "70"]
|
|
74
109
|
},
|
|
75
110
|
{
|
|
76
111
|
name: "status-progress-80",
|
|
77
|
-
component:
|
|
112
|
+
component: A,
|
|
78
113
|
category: "Additional",
|
|
79
114
|
tags: ["status", "progress", "80"]
|
|
80
115
|
},
|
|
81
116
|
{
|
|
82
117
|
name: "status-progress-90",
|
|
83
|
-
component:
|
|
118
|
+
component: S,
|
|
84
119
|
category: "Additional",
|
|
85
120
|
tags: ["status", "progress", "90"]
|
|
86
121
|
},
|
|
87
122
|
{
|
|
88
123
|
name: "status-progress-100",
|
|
89
|
-
component:
|
|
124
|
+
component: P,
|
|
90
125
|
category: "Additional",
|
|
91
126
|
tags: ["status", "progress", "100", "done", "complete"]
|
|
92
127
|
}
|
|
93
|
-
],
|
|
94
|
-
|
|
128
|
+
], F = Object.fromEntries(
|
|
129
|
+
h.map(({ name: t, component: o }) => [t, o])
|
|
95
130
|
);
|
|
96
131
|
export {
|
|
97
|
-
|
|
98
|
-
|
|
132
|
+
F as customIcons,
|
|
133
|
+
h as customIconsData
|
|
99
134
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
interface
|
|
1
|
+
export interface EntityIconData {
|
|
2
2
|
type?: string | null;
|
|
3
3
|
icon?: string | null;
|
|
4
4
|
title?: string | null;
|
|
5
5
|
size?: number | null;
|
|
6
|
+
fz?: number | null;
|
|
6
7
|
id?: string | null;
|
|
7
8
|
parentId?: string | null;
|
|
8
9
|
isFolder?: boolean;
|
|
9
10
|
pathById?: string[];
|
|
10
11
|
isOpen?: boolean;
|
|
11
12
|
}
|
|
12
|
-
export declare const EntityIcon: <T extends
|
|
13
|
+
export declare const EntityIcon: <T extends EntityIconData>({ item, }: {
|
|
13
14
|
item?: T;
|
|
14
15
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
15
|
-
export {};
|
|
16
16
|
//# sourceMappingURL=EntityIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityIcon.d.ts","sourceRoot":"","sources":["../../src/components/EntityIcon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EntityIcon.d.ts","sourceRoot":"","sources":["../../src/components/EntityIcon.tsx"],"names":[],"mappings":"AAkBA,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAQD,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,cAAc,EAAE,WAElD;IACD,IAAI,CAAC,EAAE,CAAC,CAAC;CACV,mDAyHA,CAAC"}
|