@layers-app/shared 0.4.6 → 0.4.8
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 +1 -1
- package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
- package/dist/components/AliasTextInput/AliasTextInput.js +32 -32
- 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 +82 -70
- package/dist/components/AppContainer/AppContainer.module.css.js +20 -10
- package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.d.ts +6 -0
- package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.d.ts.map +1 -0
- package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.js +161 -0
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +77 -49
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +238 -105
- package/dist/components/AppContainer/components/Main.js +4 -4
- package/dist/components/AppContainer/components/NavbarContent.d.ts.map +1 -1
- package/dist/components/AppContainer/components/NavbarContent.js +16 -2
- package/dist/components/AppContainer/components/SlideAnimation.js +4 -4
- package/dist/components/AppContainer/components/ToolSidebar.d.ts +5 -0
- package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
- package/dist/components/AppContainer/components/ToolSidebar.js +51 -39
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts +62 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +1107 -137
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +158 -6
- package/dist/components/AppContainer/types.d.ts +12 -0
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts +3 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +237 -93
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +18 -16
- package/dist/components/Chat/ChatInput/index.d.ts +13 -1
- package/dist/components/Chat/ChatInput/index.d.ts.map +1 -1
- package/dist/components/Chat/ChatInput/index.js +264 -164
- package/dist/components/Chat/ChatInput/useVoiceRecorder.d.ts +16 -0
- package/dist/components/Chat/ChatInput/useVoiceRecorder.d.ts.map +1 -0
- package/dist/components/Chat/ChatInput/useVoiceRecorder.js +83 -0
- package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +20 -16
- package/dist/components/Chat/ChatMessage/index.d.ts +16 -0
- package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -1
- package/dist/components/Chat/ChatMessage/index.js +153 -118
- package/dist/components/Chat/MessageActions/index.d.ts +2 -0
- package/dist/components/Chat/MessageActions/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageActions/index.js +189 -50
- package/dist/components/Chat/MessageAuthor/index.d.ts +7 -1
- package/dist/components/Chat/MessageAuthor/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageAuthor/index.js +39 -25
- package/dist/components/Chat/MessageList/MessageList.module.css.js +14 -12
- package/dist/components/Chat/MessageList/index.d.ts +17 -25
- package/dist/components/Chat/MessageList/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageList/index.js +201 -149
- package/dist/components/Chat/MessageMeta/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageMeta/index.js +21 -19
- package/dist/components/ColorPicker/ColorPicker.d.ts +3 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +81 -76
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts +1 -0
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +97 -91
- package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts +2 -1
- package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts.map +1 -1
- package/dist/components/CommentComposer/CommentEditorHotkeys.js +29 -26
- package/dist/components/CommentComposer/index.d.ts +1 -1
- package/dist/components/CommentComposer/index.d.ts.map +1 -1
- package/dist/components/CommentComposer/index.js +70 -68
- package/dist/components/CommentComposer/types.d.ts +6 -0
- package/dist/components/CommentComposer/types.d.ts.map +1 -1
- package/dist/components/CustomKBD/index.js +21 -22
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -0
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +129 -121
- package/dist/components/EntityTitle/EntityTitle.d.ts +3 -4
- package/dist/components/EntityTitle/EntityTitle.d.ts.map +1 -1
- package/dist/components/EntityTitle/EntityTitle.js +81 -80
- package/dist/components/FormViewer/helpers/conditions.d.ts.map +1 -1
- package/dist/components/FormViewer/helpers/conditions.js +33 -17
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts +3 -1
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts.map +1 -1
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.js +26 -25
- package/dist/components/NewToolbar/utils.d.ts +12 -0
- package/dist/components/NewToolbar/utils.d.ts.map +1 -0
- package/dist/components/Notification/InfiniteScroll.d.ts +12 -0
- package/dist/components/Notification/InfiniteScroll.d.ts.map +1 -0
- package/dist/components/Notification/InfiniteScroll.js +42 -0
- package/dist/components/Notification/Notification.d.ts +4 -1
- package/dist/components/Notification/Notification.d.ts.map +1 -1
- package/dist/components/Notification/Notification.module.css.js +28 -4
- package/dist/components/Notification/atoms/ActionBadge.d.ts +11 -0
- package/dist/components/Notification/atoms/ActionBadge.d.ts.map +1 -0
- package/dist/components/Notification/atoms/ActionBadge.js +53 -0
- package/dist/components/Notification/atoms/ArchiveIcon.d.ts +7 -0
- package/dist/components/Notification/atoms/ArchiveIcon.d.ts.map +1 -0
- package/dist/components/Notification/atoms/ArchiveIcon.js +40 -0
- package/dist/components/Notification/atoms/InboxIcon.d.ts +7 -0
- package/dist/components/Notification/atoms/InboxIcon.d.ts.map +1 -0
- package/dist/components/Notification/atoms/InboxIcon.js +33 -0
- package/dist/components/Notification/atoms/MarkReadIcon.d.ts +7 -0
- package/dist/components/Notification/atoms/MarkReadIcon.d.ts.map +1 -0
- package/dist/components/Notification/atoms/MarkReadIcon.js +33 -0
- package/dist/components/Notification/atoms/ResourceIcon.d.ts +7 -0
- package/dist/components/Notification/atoms/ResourceIcon.d.ts.map +1 -0
- package/dist/components/Notification/atoms/TabBadge.d.ts +7 -0
- package/dist/components/Notification/atoms/TabBadge.d.ts.map +1 -0
- package/dist/components/Notification/atoms/TabBadge.js +32 -0
- package/dist/components/Notification/atoms/UnreadDot.d.ts +6 -0
- package/dist/components/Notification/atoms/UnreadDot.d.ts.map +1 -0
- package/dist/components/Notification/atoms/UnreadDot.js +23 -0
- package/dist/components/Notification/atoms/index.d.ts +5 -0
- package/dist/components/Notification/atoms/index.d.ts.map +1 -0
- package/dist/components/Notification/hooks/index.d.ts +8 -0
- package/dist/components/Notification/hooks/index.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useInboxActions.d.ts +12 -0
- package/dist/components/Notification/hooks/useInboxActions.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useInboxActions.js +58 -0
- package/dist/components/Notification/hooks/useInboxLoader.d.ts +8 -0
- package/dist/components/Notification/hooks/useInboxLoader.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useInboxLoader.js +49 -0
- package/dist/components/Notification/hooks/useNotificationItem.d.ts +26 -0
- package/dist/components/Notification/hooks/useNotificationItem.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useNotificationItem.js +51 -0
- package/dist/components/Notification/hooks/useNotificationStore.d.ts +49 -0
- package/dist/components/Notification/hooks/useNotificationStore.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useNotificationStore.js +139 -0
- package/dist/components/Notification/hooks/useNotificationStream.d.ts +2 -0
- package/dist/components/Notification/hooks/useNotificationStream.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useNotificationStream.js +86 -0
- package/dist/components/Notification/hooks/useNotificationTime.d.ts +2 -0
- package/dist/components/Notification/hooks/useNotificationTime.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useNotificationTime.js +23 -0
- package/dist/components/Notification/hooks/useNotificationsApi.d.ts +25 -0
- package/dist/components/Notification/hooks/useNotificationsApi.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useNotificationsApi.js +64 -0
- package/dist/components/Notification/lib/api.d.ts +4 -0
- package/dist/components/Notification/lib/api.d.ts.map +1 -0
- package/dist/components/Notification/lib/api.js +19 -0
- package/dist/components/Notification/lib/index.d.ts +5 -0
- package/dist/components/Notification/lib/index.d.ts.map +1 -0
- package/dist/components/Notification/lib/notificationText.d.ts +10 -0
- package/dist/components/Notification/lib/notificationText.d.ts.map +1 -0
- package/dist/components/Notification/lib/notificationText.js +131 -0
- package/dist/components/Notification/lib/stripHtml.d.ts +2 -0
- package/dist/components/Notification/lib/stripHtml.d.ts.map +1 -0
- package/dist/components/Notification/lib/stripHtml.js +6 -0
- package/dist/components/Notification/lib/types.d.ts +45 -0
- package/dist/components/Notification/lib/types.d.ts.map +1 -0
- package/dist/components/Notification/lib/types.js +9 -0
- package/dist/components/Notification/molecules/InboxEmpty.d.ts +8 -0
- package/dist/components/Notification/molecules/InboxEmpty.d.ts.map +1 -0
- package/dist/components/Notification/molecules/InboxEmpty.js +21 -0
- package/dist/components/Notification/molecules/InboxHeader.d.ts +17 -0
- package/dist/components/Notification/molecules/InboxHeader.d.ts.map +1 -0
- package/dist/components/Notification/molecules/InboxHeader.js +73 -0
- package/dist/components/Notification/molecules/InboxTabs.d.ts +15 -0
- package/dist/components/Notification/molecules/InboxTabs.d.ts.map +1 -0
- package/dist/components/Notification/molecules/InboxTabs.js +60 -0
- package/dist/components/Notification/molecules/NotificationActions.d.ts +9 -0
- package/dist/components/Notification/molecules/NotificationActions.d.ts.map +1 -0
- package/dist/components/Notification/molecules/NotificationActions.js +64 -0
- package/dist/components/Notification/molecules/NotificationAvatar.d.ts +17 -0
- package/dist/components/Notification/molecules/NotificationAvatar.d.ts.map +1 -0
- package/dist/components/Notification/molecules/NotificationAvatar.js +38 -0
- package/dist/components/Notification/molecules/NotificationContent.d.ts +22 -0
- package/dist/components/Notification/molecules/NotificationContent.d.ts.map +1 -0
- package/dist/components/Notification/molecules/NotificationContent.js +183 -0
- package/dist/components/Notification/molecules/index.d.ts +7 -0
- package/dist/components/Notification/molecules/index.d.ts.map +1 -0
- package/dist/components/Notification/organisms/InboxItem.d.ts +14 -0
- package/dist/components/Notification/organisms/InboxItem.d.ts.map +1 -0
- package/dist/components/Notification/organisms/InboxItem.js +100 -0
- package/dist/components/Notification/organisms/InboxPanel.d.ts +4 -0
- package/dist/components/Notification/organisms/InboxPanel.d.ts.map +1 -0
- package/dist/components/Notification/organisms/InboxPanel.js +99 -0
- package/dist/components/Notification/organisms/index.d.ts +3 -0
- package/dist/components/Notification/organisms/index.d.ts.map +1 -0
- package/dist/components/OnboardingTour/index.d.ts +1 -1
- package/dist/components/OnboardingTour/index.d.ts.map +1 -1
- package/dist/components/OnboardingTour/useOnboardingTour.d.ts +2 -0
- package/dist/components/OnboardingTour/useOnboardingTour.d.ts.map +1 -1
- package/dist/components/OnboardingTour/useOnboardingTour.js +63 -51
- package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
- package/dist/components/modals/RemoveConfirmModal.js +27 -26
- package/dist/config/brand.d.ts.map +1 -1
- package/dist/config/brand.js +29 -29
- package/dist/config/envConfig.d.ts +4 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/config/envConfig.js +29 -28
- package/dist/helpers/getFileIcons.js +5 -5
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/getFileType.js +11 -2
- package/dist/helpers/platform.d.ts +1 -1
- package/dist/helpers/platform.d.ts.map +1 -1
- package/dist/helpers/platform.js +1 -0
- package/dist/helpers/showNotifications.d.ts +8 -14
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +107 -111
- package/dist/helpers/showNotifications.module.css.js +4 -16
- package/dist/hooks/useDateUtils.d.ts.map +1 -1
- package/dist/hooks/useDateUtils.js +19 -23
- package/dist/index.css +1 -1
- package/dist/index.js +576 -573
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.context.js +15 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.js +228 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.module.css.js +4 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioControls.js +19 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioMuteButton.js +30 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioPlayButton.js +40 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSkipButton.js +28 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSpectrum.js +137 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSpeedControl.js +31 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioTimeDisplay.js +44 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioTimeline.js +71 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioVolumeSlider.js +43 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioWaveform.js +166 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/use-audio.js +201 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.context.js +15 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.js +272 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.module.css.js +4 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoCaptionsButton.js +55 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoControls.js +30 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoFullscreenButton.js +31 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoMuteButton.js +29 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoPiPButton.js +29 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoPlayButton.js +28 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoSkipButton.js +27 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoTimeDisplay.js +44 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoTimeline.js +70 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/use-video.js +170 -0
- package/package.json +5 -3
- package/dist/components/Notification/Notification.js +0 -119
- package/dist/components/Notification/NotificationCard.d.ts +0 -10
- package/dist/components/Notification/NotificationCard.d.ts.map +0 -1
- package/dist/components/Notification/NotificationCard.js +0 -93
|
@@ -1,87 +1,94 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as d,
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { Popover as j, Center as
|
|
5
|
-
import { getEnvConfig as
|
|
6
|
-
import { usePlatform as
|
|
7
|
-
import { FilePickerGiphy as
|
|
8
|
-
import { IconEntity as
|
|
9
|
-
import { EmojiPanel as
|
|
10
|
-
import { IconsPanel as
|
|
11
|
-
import
|
|
1
|
+
import { jsxs as h, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as d, useEffect as C, useMemo as K } from "react";
|
|
3
|
+
import { useTranslation as U } from "react-i18next";
|
|
4
|
+
import { Popover as j, Center as V, Tabs as i, Flex as P, Button as X } from "@mantine/core";
|
|
5
|
+
import { getEnvConfig as Y } from "../../config/envConfig.js";
|
|
6
|
+
import { usePlatform as Z } from "../../hooks/usePlatform.js";
|
|
7
|
+
import { FilePickerGiphy as _ } from "../FilePicker/FilePickerGiphy.js";
|
|
8
|
+
import { IconEntity as q } from "../ProjectIcon/ProjectIcon.js";
|
|
9
|
+
import { EmojiPanel as S } from "./EmojiPanel.js";
|
|
10
|
+
import { IconsPanel as W } from "./IconsPanel.js";
|
|
11
|
+
import a from "./EmojiPicker.module.css.js";
|
|
12
|
+
function ee(l) {
|
|
13
|
+
const { t: e } = U("ui");
|
|
14
|
+
return K(
|
|
15
|
+
() => ({
|
|
16
|
+
emojis: e("emojis"),
|
|
17
|
+
remove: e("remove"),
|
|
18
|
+
search: e("search"),
|
|
19
|
+
random: e("random"),
|
|
20
|
+
searchResults: e("emojiPicker.searchResults"),
|
|
21
|
+
icons: e("emojiPicker.icons"),
|
|
22
|
+
gifs: e("emojiPicker.gifs"),
|
|
23
|
+
searchNoResults: e("emojiPicker.searchNoResults"),
|
|
24
|
+
chooseColor: e("emojiPicker.chooseColor"),
|
|
25
|
+
emojiCategory: {
|
|
26
|
+
frequent: e("emojiPicker.categories.frequent"),
|
|
27
|
+
people: e("emojiPicker.categories.people"),
|
|
28
|
+
nature: e("emojiPicker.categories.nature"),
|
|
29
|
+
foods: e("emojiPicker.categories.foods"),
|
|
30
|
+
activity: e("emojiPicker.categories.activity"),
|
|
31
|
+
places: e("emojiPicker.categories.places"),
|
|
32
|
+
objects: e("emojiPicker.categories.objects"),
|
|
33
|
+
symbols: e("emojiPicker.categories.symbols"),
|
|
34
|
+
flags: e("emojiPicker.categories.flags"),
|
|
35
|
+
additional: e("emojiPicker.categories.additional"),
|
|
36
|
+
...l?.emojiCategory
|
|
37
|
+
},
|
|
38
|
+
...l
|
|
39
|
+
}),
|
|
40
|
+
[e, l]
|
|
41
|
+
);
|
|
42
|
+
}
|
|
12
43
|
const de = ({
|
|
13
|
-
project:
|
|
14
|
-
value:
|
|
15
|
-
querySearch:
|
|
16
|
-
children:
|
|
44
|
+
project: l,
|
|
45
|
+
value: e,
|
|
46
|
+
querySearch: n,
|
|
47
|
+
children: N,
|
|
17
48
|
onChange: p,
|
|
18
|
-
position:
|
|
19
|
-
popoverProps:
|
|
49
|
+
position: R = "bottom-start",
|
|
50
|
+
popoverProps: b,
|
|
20
51
|
showIcons: u,
|
|
21
|
-
showColors:
|
|
22
|
-
showGifs:
|
|
23
|
-
onSelectGif:
|
|
24
|
-
defaultActiveTab:
|
|
25
|
-
showEmojis:
|
|
26
|
-
withinPortal:
|
|
27
|
-
locales:
|
|
28
|
-
openWhen:
|
|
29
|
-
triggerRegex:
|
|
52
|
+
showColors: w,
|
|
53
|
+
showGifs: D,
|
|
54
|
+
onSelectGif: E,
|
|
55
|
+
defaultActiveTab: I = null,
|
|
56
|
+
showEmojis: c = !0,
|
|
57
|
+
withinPortal: L = !1,
|
|
58
|
+
locales: F,
|
|
59
|
+
openWhen: g = "click",
|
|
60
|
+
triggerRegex: k = /(^|\s):([^\s:]{1,})$/,
|
|
30
61
|
typingSeq: m,
|
|
31
|
-
showRemoveButton:
|
|
32
|
-
keepOpenOnRandom:
|
|
33
|
-
showRandomButton:
|
|
34
|
-
closeOnSelect:
|
|
62
|
+
showRemoveButton: M = !0,
|
|
63
|
+
keepOpenOnRandom: z = !1,
|
|
64
|
+
showRandomButton: A = !0,
|
|
65
|
+
closeOnSelect: y = !0
|
|
35
66
|
}) => {
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
chooseColor: e("emojiPicker.chooseColor"),
|
|
46
|
-
emojiCategory: {
|
|
47
|
-
frequent: e("emojiPicker.categories.frequent"),
|
|
48
|
-
people: e("emojiPicker.categories.people"),
|
|
49
|
-
nature: e("emojiPicker.categories.nature"),
|
|
50
|
-
foods: e("emojiPicker.categories.foods"),
|
|
51
|
-
activity: e("emojiPicker.categories.activity"),
|
|
52
|
-
places: e("emojiPicker.categories.places"),
|
|
53
|
-
objects: e("emojiPicker.categories.objects"),
|
|
54
|
-
symbols: e("emojiPicker.categories.symbols"),
|
|
55
|
-
flags: e("emojiPicker.categories.flags"),
|
|
56
|
-
additional: e("emojiPicker.categories.additional"),
|
|
57
|
-
...g?.emojiCategory
|
|
58
|
-
},
|
|
59
|
-
...g
|
|
60
|
-
}), [e, g]);
|
|
61
|
-
N(() => {
|
|
62
|
-
const a = u && W.parse(s)?.icon ? "icons" : n ? "emojis" : null;
|
|
63
|
-
!f && a && T(a);
|
|
64
|
-
}, [f, n, u, s]), N(() => {
|
|
65
|
-
if (h !== "realtime" || typeof m != "number" || C === m) return;
|
|
66
|
-
$(m);
|
|
67
|
-
const a = c ?? "", K = !!n && y.test(a);
|
|
68
|
-
r(K);
|
|
67
|
+
const B = Z(), v = !!D && B.has("giphy") && Y().media?.giphyEnabled !== !1, [f, s] = d(!1), [G, x] = d(I), [H, O] = d(e || null), [T, Q] = d(null), t = ee(F);
|
|
68
|
+
C(() => {
|
|
69
|
+
const r = u && q.parse(e)?.icon ? "icons" : c ? "emojis" : null;
|
|
70
|
+
!f && r && x(r);
|
|
71
|
+
}, [f, c, u, e]), C(() => {
|
|
72
|
+
if (g !== "realtime" || typeof m != "number" || T === m) return;
|
|
73
|
+
Q(m);
|
|
74
|
+
const r = n ?? "", J = !!c && k.test(r);
|
|
75
|
+
s(J);
|
|
69
76
|
}, [
|
|
70
|
-
|
|
77
|
+
g,
|
|
71
78
|
m,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
79
|
+
T,
|
|
80
|
+
n,
|
|
81
|
+
k,
|
|
82
|
+
c
|
|
76
83
|
]);
|
|
77
|
-
const
|
|
78
|
-
return /* @__PURE__ */
|
|
84
|
+
const $ = typeof n == "string";
|
|
85
|
+
return /* @__PURE__ */ h(
|
|
79
86
|
j,
|
|
80
87
|
{
|
|
81
|
-
withinPortal:
|
|
88
|
+
withinPortal: L,
|
|
82
89
|
opened: f,
|
|
83
|
-
onChange:
|
|
84
|
-
position:
|
|
90
|
+
onChange: s,
|
|
91
|
+
position: R,
|
|
85
92
|
radius: "var(--mantine-spacing-sm)",
|
|
86
93
|
styles: {
|
|
87
94
|
dropdown: {
|
|
@@ -104,20 +111,20 @@ const de = ({
|
|
|
104
111
|
]
|
|
105
112
|
}
|
|
106
113
|
},
|
|
107
|
-
...
|
|
114
|
+
...b || {},
|
|
108
115
|
children: [
|
|
109
|
-
/* @__PURE__ */
|
|
110
|
-
|
|
116
|
+
/* @__PURE__ */ o(j.Target, { children: /* @__PURE__ */ o(
|
|
117
|
+
V,
|
|
111
118
|
{
|
|
112
|
-
onClick:
|
|
113
|
-
children:
|
|
119
|
+
onClick: g === "click" && !b?.disabled ? () => s(!f) : void 0,
|
|
120
|
+
children: N ?? H
|
|
114
121
|
}
|
|
115
122
|
) }),
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
|
|
123
|
+
/* @__PURE__ */ o(j.Dropdown, { w: "380px", children: /* @__PURE__ */ h(
|
|
124
|
+
i,
|
|
118
125
|
{
|
|
119
|
-
value:
|
|
120
|
-
onChange:
|
|
126
|
+
value: G,
|
|
127
|
+
onChange: x,
|
|
121
128
|
keepMounted: !1,
|
|
122
129
|
h: "100%",
|
|
123
130
|
styles: {
|
|
@@ -134,8 +141,8 @@ const de = ({
|
|
|
134
141
|
}
|
|
135
142
|
},
|
|
136
143
|
children: [
|
|
137
|
-
|
|
138
|
-
|
|
144
|
+
!$ && /* @__PURE__ */ h(
|
|
145
|
+
i.List,
|
|
139
146
|
{
|
|
140
147
|
style: {
|
|
141
148
|
gap: "4px"
|
|
@@ -143,38 +150,38 @@ const de = ({
|
|
|
143
150
|
h: 54,
|
|
144
151
|
px: 8,
|
|
145
152
|
children: [
|
|
146
|
-
|
|
147
|
-
|
|
153
|
+
c && /* @__PURE__ */ o(
|
|
154
|
+
i.Tab,
|
|
148
155
|
{
|
|
149
|
-
className:
|
|
156
|
+
className: a.originalTab,
|
|
150
157
|
h: "100%",
|
|
151
158
|
p: 0,
|
|
152
159
|
value: "emojis",
|
|
153
|
-
children: /* @__PURE__ */
|
|
160
|
+
children: /* @__PURE__ */ o(P, { className: a.customTab, px: "sm", h: 36, children: t.emojis })
|
|
154
161
|
}
|
|
155
162
|
),
|
|
156
|
-
u && /* @__PURE__ */
|
|
157
|
-
|
|
163
|
+
u && /* @__PURE__ */ o(
|
|
164
|
+
i.Tab,
|
|
158
165
|
{
|
|
159
|
-
className:
|
|
166
|
+
className: a.originalTab,
|
|
160
167
|
h: "100%",
|
|
161
168
|
p: 0,
|
|
162
169
|
value: "icons",
|
|
163
|
-
children: /* @__PURE__ */
|
|
170
|
+
children: /* @__PURE__ */ o(P, { className: a.customTab, px: "sm", h: 36, children: t.icons })
|
|
164
171
|
}
|
|
165
172
|
),
|
|
166
|
-
|
|
167
|
-
|
|
173
|
+
v && /* @__PURE__ */ o(
|
|
174
|
+
i.Tab,
|
|
168
175
|
{
|
|
169
|
-
className:
|
|
176
|
+
className: a.originalTab,
|
|
170
177
|
h: "100%",
|
|
171
178
|
p: 0,
|
|
172
179
|
value: "gifs",
|
|
173
|
-
children: /* @__PURE__ */
|
|
180
|
+
children: /* @__PURE__ */ o(P, { className: a.customTab, px: "sm", h: 36, children: t.gifs })
|
|
174
181
|
}
|
|
175
182
|
),
|
|
176
|
-
!!String(
|
|
177
|
-
|
|
183
|
+
!!String(e) && M && /* @__PURE__ */ o(
|
|
184
|
+
X,
|
|
178
185
|
{
|
|
179
186
|
variant: "subtle",
|
|
180
187
|
fz: "sm",
|
|
@@ -191,53 +198,53 @@ const de = ({
|
|
|
191
198
|
]
|
|
192
199
|
}
|
|
193
200
|
),
|
|
194
|
-
/* @__PURE__ */ i
|
|
195
|
-
|
|
201
|
+
/* @__PURE__ */ o(i.Panel, { mah: 470, style: { overflow: "auto" }, value: "emojis", children: /* @__PURE__ */ o(
|
|
202
|
+
S,
|
|
196
203
|
{
|
|
197
204
|
onChange: p,
|
|
198
|
-
value:
|
|
199
|
-
querySearch:
|
|
205
|
+
value: e,
|
|
206
|
+
querySearch: n,
|
|
200
207
|
locales: t,
|
|
201
|
-
setRandomIcon:
|
|
202
|
-
showRandomButton:
|
|
203
|
-
onClose:
|
|
208
|
+
setRandomIcon: O,
|
|
209
|
+
showRandomButton: A,
|
|
210
|
+
onClose: y ? () => s(!1) : () => {
|
|
204
211
|
}
|
|
205
212
|
}
|
|
206
213
|
) }),
|
|
207
|
-
/* @__PURE__ */
|
|
208
|
-
|
|
214
|
+
/* @__PURE__ */ o(
|
|
215
|
+
i.Panel,
|
|
209
216
|
{
|
|
210
217
|
mah: 470,
|
|
211
218
|
h: "100%",
|
|
212
219
|
style: { overflow: "auto" },
|
|
213
220
|
value: "icons",
|
|
214
|
-
children: /* @__PURE__ */
|
|
215
|
-
|
|
221
|
+
children: /* @__PURE__ */ o(
|
|
222
|
+
W,
|
|
216
223
|
{
|
|
217
|
-
project:
|
|
224
|
+
project: l,
|
|
218
225
|
onChange: p,
|
|
219
|
-
value:
|
|
226
|
+
value: e,
|
|
220
227
|
locales: t,
|
|
221
|
-
showColors:
|
|
222
|
-
keepOpenOnRandom:
|
|
223
|
-
onClose:
|
|
228
|
+
showColors: w,
|
|
229
|
+
keepOpenOnRandom: z,
|
|
230
|
+
onClose: y ? () => s(!1) : () => {
|
|
224
231
|
}
|
|
225
232
|
}
|
|
226
233
|
)
|
|
227
234
|
}
|
|
228
235
|
),
|
|
229
|
-
|
|
230
|
-
|
|
236
|
+
v && /* @__PURE__ */ o(
|
|
237
|
+
i.Panel,
|
|
231
238
|
{
|
|
232
239
|
mah: 470,
|
|
233
240
|
style: { overflow: "auto" },
|
|
234
241
|
p: "sm",
|
|
235
242
|
value: "gifs",
|
|
236
|
-
children: /* @__PURE__ */
|
|
237
|
-
|
|
243
|
+
children: /* @__PURE__ */ o(
|
|
244
|
+
_,
|
|
238
245
|
{
|
|
239
|
-
onChange: (
|
|
240
|
-
|
|
246
|
+
onChange: (r) => {
|
|
247
|
+
E?.(r), s(!1);
|
|
241
248
|
}
|
|
242
249
|
}
|
|
243
250
|
)
|
|
@@ -251,5 +258,6 @@ const de = ({
|
|
|
251
258
|
);
|
|
252
259
|
};
|
|
253
260
|
export {
|
|
254
|
-
de as EmojiPicker
|
|
261
|
+
de as EmojiPicker,
|
|
262
|
+
ee as useEmojiPickerLocales
|
|
255
263
|
};
|
|
@@ -3,17 +3,16 @@ declare global {
|
|
|
3
3
|
isTitleFocused: boolean;
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
|
-
export declare const EntityTitle: ({
|
|
6
|
+
export declare const EntityTitle: import("react").MemoExoticComponent<({ title, handleTitle, placeholder, error, isReadOnly, nowrap, maxLength, fw, onPressEnter, onBlur, }: {
|
|
7
7
|
title: string;
|
|
8
|
-
lock?: boolean;
|
|
9
8
|
handleTitle?: (title: string) => void;
|
|
10
9
|
placeholder?: string;
|
|
11
10
|
error?: boolean;
|
|
12
11
|
isReadOnly?: boolean;
|
|
13
|
-
accessEdit?: boolean;
|
|
14
12
|
nowrap?: boolean;
|
|
15
13
|
maxLength?: number;
|
|
16
14
|
fw?: number;
|
|
17
15
|
onPressEnter?: () => void;
|
|
18
|
-
|
|
16
|
+
onBlur?: () => void;
|
|
17
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
19
18
|
//# sourceMappingURL=EntityTitle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityTitle.d.ts","sourceRoot":"","sources":["../../../src/components/EntityTitle/EntityTitle.tsx"],"names":[],"mappings":"AAcA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,cAAc,EAAE,OAAO,CAAC;KACzB;CACF;AAED,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"EntityTitle.d.ts","sourceRoot":"","sources":["../../../src/components/EntityTitle/EntityTitle.tsx"],"names":[],"mappings":"AAcA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,cAAc,EAAE,OAAO,CAAC;KACzB;CACF;AAED,eAAO,MAAM,WAAW,6IAYnB;IACD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB,6CA+FF,CAAC"}
|
|
@@ -1,86 +1,87 @@
|
|
|
1
|
-
import { jsx as r, Fragment as
|
|
2
|
-
import { useRef as x, useLayoutEffect as F } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Textarea as E } from "@mantine/core";
|
|
1
|
+
import { jsx as r, Fragment as g } from "react/jsx-runtime";
|
|
2
|
+
import { memo as v, useRef as x, useLayoutEffect as F } from "react";
|
|
3
|
+
import { useLocation as T } from "react-router-dom";
|
|
4
|
+
import { Textarea as D } from "@mantine/core";
|
|
6
5
|
import s from "./EntityTitle.module.css.js";
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
e.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
6
|
+
const j = v(
|
|
7
|
+
({
|
|
8
|
+
title: t,
|
|
9
|
+
handleTitle: u,
|
|
10
|
+
placeholder: c,
|
|
11
|
+
error: i,
|
|
12
|
+
isReadOnly: f = !1,
|
|
13
|
+
nowrap: d = !1,
|
|
14
|
+
maxLength: m = 255,
|
|
15
|
+
fw: h,
|
|
16
|
+
onPressEnter: p,
|
|
17
|
+
onBlur: w
|
|
18
|
+
}) => {
|
|
19
|
+
const y = T(), { isNewPage: a } = y.state || {}, n = x(null), l = f;
|
|
20
|
+
return F(() => {
|
|
21
|
+
if ((a || t === "") && n.current) {
|
|
22
|
+
const e = n.current;
|
|
23
|
+
requestAnimationFrame(() => {
|
|
24
|
+
a && (e.focus(), e.setSelectionRange(
|
|
25
|
+
e.value.length,
|
|
26
|
+
e.value.length
|
|
27
|
+
));
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}, [a, n.current, l]), /* @__PURE__ */ r(g, { children: l ? /* @__PURE__ */ r(
|
|
31
|
+
"h1",
|
|
32
|
+
{
|
|
33
|
+
style: {
|
|
34
|
+
overflowWrap: "anywhere"
|
|
35
|
+
},
|
|
36
|
+
"data-empty": String(!t),
|
|
37
|
+
className: s.EntityTitle,
|
|
38
|
+
children: t
|
|
39
|
+
}
|
|
40
|
+
) : /* @__PURE__ */ r(
|
|
41
|
+
D,
|
|
42
|
+
{
|
|
43
|
+
"data-mantine-stop-propagation": "true",
|
|
44
|
+
ref: n,
|
|
45
|
+
onKeyDown: (e) => {
|
|
46
|
+
e.key === "Enter" && (p?.(), e.preventDefault());
|
|
47
|
+
},
|
|
48
|
+
onBlur: (e) => {
|
|
49
|
+
window.isTitleFocused = !1;
|
|
50
|
+
const o = e.currentTarget.value.trim();
|
|
51
|
+
w?.(), o !== t && u?.(o);
|
|
52
|
+
},
|
|
53
|
+
onChange: (e) => {
|
|
54
|
+
const o = e.currentTarget.value;
|
|
55
|
+
u?.(o);
|
|
56
|
+
},
|
|
57
|
+
onFocus: () => {
|
|
58
|
+
window.isTitleFocused = !0;
|
|
59
|
+
},
|
|
60
|
+
value: t,
|
|
61
|
+
placeholder: c,
|
|
62
|
+
maxLength: m,
|
|
63
|
+
unstyled: !0,
|
|
64
|
+
autosize: !0,
|
|
65
|
+
"data-autofocus": !0,
|
|
66
|
+
"data-error": !!i,
|
|
67
|
+
classNames: {
|
|
68
|
+
input: s.textareaInput,
|
|
69
|
+
root: s.textareaRoot
|
|
70
|
+
},
|
|
71
|
+
styles: {
|
|
72
|
+
input: {
|
|
73
|
+
fontWeight: h || 400,
|
|
74
|
+
...d && {
|
|
75
|
+
whiteSpace: "nowrap",
|
|
76
|
+
overflowX: "auto",
|
|
77
|
+
overflowY: "hidden"
|
|
78
|
+
}
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
) });
|
|
83
|
+
}
|
|
84
|
+
);
|
|
84
85
|
export {
|
|
85
|
-
|
|
86
|
+
j as EntityTitle
|
|
86
87
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conditions.d.ts","sourceRoot":"","sources":["../../../../src/components/FormViewer/helpers/conditions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAGlD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEpE,eAAO,MAAM,WAAW,GACtB,MAAM,QAAQ,EACd,OAAO,QAAQ,EAAE,EACjB,MAAM,iBAAiB,CAAC,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQzC,CAAC;
|
|
1
|
+
{"version":3,"file":"conditions.d.ts","sourceRoot":"","sources":["../../../../src/components/FormViewer/helpers/conditions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAGlD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEpE,eAAO,MAAM,WAAW,GACtB,MAAM,QAAQ,EACd,OAAO,QAAQ,EAAE,EACjB,MAAM,iBAAiB,CAAC,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQzC,CAAC;AA2FF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,WAAW,EAAE,YAAY,EAAE,CAmBjE,CAAC"}
|
|
@@ -1,23 +1,39 @@
|
|
|
1
|
-
import { isNil as
|
|
2
|
-
const
|
|
3
|
-
const e =
|
|
4
|
-
return
|
|
5
|
-
},
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { isNil as a } from "lodash-es";
|
|
2
|
+
const c = (o, l, i) => {
|
|
3
|
+
const e = f(o, i.getValues()), r = l.find((t) => t.id === e), d = l.findIndex((t) => t.id === o.id);
|
|
4
|
+
return r ?? l[d + 1];
|
|
5
|
+
}, m = (o, l, i) => {
|
|
6
|
+
const e = o.controls.find((t) => t.id === l), r = e && "options" in e ? e.options : void 0;
|
|
7
|
+
return (Array.isArray(i) ? i : a(i) ? [] : [i]).flatMap((t) => {
|
|
8
|
+
const n = String(t), s = r?.find((p) => p.id === n)?.label;
|
|
9
|
+
return a(s) ? [n] : [n, s];
|
|
10
|
+
});
|
|
11
|
+
}, f = (o, l) => {
|
|
12
|
+
if (o.conditions?.length) {
|
|
13
|
+
const i = o.conditions.find((e) => {
|
|
14
|
+
const r = l[e.controlId];
|
|
15
|
+
if (e.operator === "empty" && a(r) || e.operator === "filledIn" && (r || r === 0))
|
|
10
16
|
return !0;
|
|
11
|
-
if (
|
|
17
|
+
if (e.operator === "selected" || e.operator === "notSelected") {
|
|
18
|
+
const n = (e.compareValue ?? "").toLowerCase(), s = m(o, e.controlId, r).some(
|
|
19
|
+
(p) => p.toLowerCase() === n
|
|
20
|
+
);
|
|
21
|
+
return e.operator === "selected" ? s : !s;
|
|
22
|
+
}
|
|
23
|
+
if (a(r) || a(e.compareValue))
|
|
12
24
|
return !1;
|
|
13
|
-
|
|
14
|
-
|
|
25
|
+
if (e.operator === "biggerWhen" || e.operator === "smallerWhen") {
|
|
26
|
+
const n = Number(r), s = Number(e.compareValue);
|
|
27
|
+
return Number.isNaN(n) || Number.isNaN(s) ? !1 : e.operator === "biggerWhen" ? n > s : n < s;
|
|
28
|
+
}
|
|
29
|
+
const d = r.toString().toLowerCase(), t = e.compareValue.toLowerCase();
|
|
30
|
+
if (e.operator === "is" && d === t || e.operator === "isNot" && d !== t || e.operator === "startsWidth" && d.startsWith(t) || e.operator === "endsWidth" && d.endsWith(t))
|
|
15
31
|
return !0;
|
|
16
32
|
});
|
|
17
|
-
if (
|
|
33
|
+
if (i) return i.trigger;
|
|
18
34
|
}
|
|
19
|
-
return
|
|
20
|
-
},
|
|
35
|
+
return o.trigger;
|
|
36
|
+
}, h = {
|
|
21
37
|
choice: ["filledIn", "empty", "selected", "notSelected"],
|
|
22
38
|
pictureChoice: ["filledIn", "empty", "selected", "notSelected"],
|
|
23
39
|
dropdown: ["filledIn", "empty", "selected", "notSelected"],
|
|
@@ -38,6 +54,6 @@ const p = (n, o, l) => {
|
|
|
38
54
|
rating: ["filledIn", "empty", "is", "isNot", "smallerWhen", "biggerWhen"]
|
|
39
55
|
};
|
|
40
56
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
57
|
+
c as getNextStep,
|
|
58
|
+
h as operatorsRelation
|
|
43
59
|
};
|
|
@@ -12,10 +12,12 @@ export interface IntegrationFlowAnimationProps {
|
|
|
12
12
|
colors?: string[];
|
|
13
13
|
/** Background image URL */
|
|
14
14
|
backgroundImage?: string;
|
|
15
|
+
/** Start particles already distributed across the path instead of waiting for initial delays */
|
|
16
|
+
startDistributed?: boolean;
|
|
15
17
|
}
|
|
16
18
|
/**
|
|
17
19
|
* A reusable animation component showing data flow between two integration icons.
|
|
18
20
|
* Displays animated particles flowing from left icon to right icon.
|
|
19
21
|
*/
|
|
20
|
-
export declare const IntegrationFlowAnimation: ({ leftIcon, rightIcon, height, particleCount, colors, backgroundImage, }: IntegrationFlowAnimationProps) => ReactNode;
|
|
22
|
+
export declare const IntegrationFlowAnimation: ({ leftIcon, rightIcon, height, particleCount, colors, backgroundImage, startDistributed, }: IntegrationFlowAnimationProps) => ReactNode;
|
|
21
23
|
//# sourceMappingURL=IntegrationFlowAnimation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntegrationFlowAnimation.d.ts","sourceRoot":"","sources":["../../../src/components/IntegrationFlowAnimation/IntegrationFlowAnimation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AA8C1D,MAAM,WAAW,6BAA6B;IAC5C,qDAAqD;IACrD,QAAQ,EAAE,SAAS,CAAC;IACpB,2DAA2D;IAC3D,SAAS,EAAE,SAAS,CAAC;IACrB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,qCAAqC;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wFAAwF;IACxF,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,2BAA2B;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"IntegrationFlowAnimation.d.ts","sourceRoot":"","sources":["../../../src/components/IntegrationFlowAnimation/IntegrationFlowAnimation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AA8C1D,MAAM,WAAW,6BAA6B;IAC5C,qDAAqD;IACrD,QAAQ,EAAE,SAAS,CAAC;IACpB,2DAA2D;IAC3D,SAAS,EAAE,SAAS,CAAC;IACrB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,qCAAqC;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wFAAwF;IACxF,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,2BAA2B;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gGAAgG;IAChG,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;;GAGG;AACH,eAAO,MAAM,wBAAwB,GAAI,4FAQtC,6BAA6B,KAAG,SA6ElC,CAAC"}
|