@bigbinary/neeto-molecules 1.1.10 → 1.1.12
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/AutoSaveInput/autosaveinput.scss +15 -0
- package/dist/AutoSaveInput/constants.js +13 -0
- package/dist/AutoSaveInput/index.js +124 -0
- package/dist/AutoSaveInput/utils.js +10 -0
- package/dist/Breadcrumbs/breadcrumbs.scss +33 -0
- package/dist/Breadcrumbs/index.js +31 -0
- package/dist/BrowserSupport/Callout.js +15 -0
- package/dist/BrowserSupport/ContactUs.js +21 -0
- package/dist/BrowserSupport/DownloadLink.js +17 -0
- package/dist/BrowserSupport/PartialSupportedBrowserVersion.js +17 -0
- package/dist/BrowserSupport/UnknownBrowser.js +13 -0
- package/dist/BrowserSupport/UnsupportedBrowser.js +24 -0
- package/dist/BrowserSupport/UnsupportedBrowserMessage.js +22 -0
- package/dist/BrowserSupport/UnsupportedBrowserVersion.js +27 -0
- package/dist/BrowserSupport/UnsupportedVersionMessage.js +30 -0
- package/dist/BrowserSupport/browsersupport.scss +71 -0
- package/dist/BrowserSupport/constants.js +63 -0
- package/dist/BrowserSupport/index.js +58 -0
- package/dist/BrowserSupport/utils.js +32 -0
- package/dist/CalendarView/CustomDatePicker.js +87 -0
- package/dist/CalendarView/Header.js +53 -0
- package/dist/CalendarView/constants.js +19 -0
- package/dist/CalendarView/index.js +83 -0
- package/dist/CalendarView/utils.js +50 -0
- package/dist/Codeblock/index.js +30 -0
- package/dist/{Columns.js → Columns/index.js} +13 -130
- package/dist/Columns/utils.js +20 -0
- package/dist/ConfirmationModal/constants.js +3 -0
- package/dist/{ConfirmationModal.js → ConfirmationModal/index.js} +7 -23
- package/dist/ConfirmationModal/utils.js +10 -0
- package/dist/Container/container.scss +21 -0
- package/dist/Container/index.js +23 -0
- package/dist/CopyToClipboardButton/constants.js +13 -0
- package/dist/CopyToClipboardButton/copyToClipboard.scss +22 -0
- package/dist/CopyToClipboardButton/index.js +59 -0
- package/dist/CustomDomain/index.js +98 -0
- package/dist/CustomDomainDashboard/DeleteAlert.js +28 -0
- package/dist/CustomDomainDashboard/Header.js +32 -0
- package/dist/CustomDomainDashboard/Manage/Record.js +42 -0
- package/dist/CustomDomainDashboard/Manage/StatusInfo.js +21 -0
- package/dist/CustomDomainDashboard/Manage/TagBlock.js +36 -0
- package/dist/CustomDomainDashboard/Manage/constants.js +4 -0
- package/dist/CustomDomainDashboard/Manage/index.js +124 -0
- package/dist/CustomDomainDashboard/Manage/utils.js +8 -0
- package/dist/CustomDomainDashboard/api.js +35 -0
- package/dist/CustomDomainDashboard/constants.js +2 -0
- package/dist/CustomDomainDashboard/index.js +118 -0
- package/dist/CustomDomainDashboard/useCustomDomainApi.js +71 -0
- package/dist/CustomDomainDashboard/utils.js +84 -0
- package/dist/{DateFormat.js → DateFormat/index.js} +8 -25
- package/dist/DateRangeFilter/index.js +60 -0
- package/dist/DateRangeFilter/utils.js +113 -0
- package/dist/DynamicVariables/dynamic-variables.scss +34 -0
- package/dist/DynamicVariables/index.js +59 -0
- package/dist/DynamicVariables/utils.js +37 -0
- package/dist/EmailForm/EmailForm.js +97 -0
- package/dist/EmailForm/EmailFormProvider.js +45 -0
- package/dist/EmailForm/EmailPreview.js +129 -0
- package/dist/EmailForm/ReplyToField.js +55 -0
- package/dist/EmailForm/SendToField.js +27 -0
- package/dist/EmailForm/SubjectField.js +64 -0
- package/dist/EmailForm/constants.js +33 -0
- package/dist/EmailForm/contexts/EmailForm.js +7 -0
- package/dist/EmailForm/index.js +4 -0
- package/dist/EmailForm/utils.js +10 -0
- package/dist/EmailPreview/index.js +2 -0
- package/dist/{ErrorPage.js → ErrorPage/constants.js} +36 -175
- package/dist/ErrorPage/index.js +78 -0
- package/dist/Header/Breadcrumbs.js +31 -0
- package/dist/Header/Dropdown.js +12 -0
- package/dist/Header/constants.js +6 -0
- package/dist/Header/header.scss +121 -0
- package/dist/Header/index.js +61 -0
- package/dist/IconPicker/Icon.js +34 -0
- package/dist/IconPicker/NoResults.js +12 -0
- package/dist/IconPicker/constants.js +8 -0
- package/dist/IconPicker/icon-picker.scss +1 -0
- package/dist/IconPicker/index.js +164 -0
- package/dist/ImageWithFallback/ImagePlaceholder.js +16 -0
- package/dist/ImageWithFallback/index.js +31 -0
- package/dist/IntegrationCard/Dropdown.js +45 -0
- package/dist/IntegrationCard/Status.js +25 -0
- package/dist/IntegrationCard/index.js +128 -0
- package/dist/IntegrationDisconnectAlert/index.js +36 -0
- package/dist/{IntegrationWalkthroughModal.js → IntegrationWalkthroughModal/index.js} +6 -8
- package/dist/IpRestriction/AllowedIpRanges.js +75 -0
- package/dist/IpRestriction/CurrentIp.js +26 -0
- package/dist/IpRestriction/FormRow.js +84 -0
- package/dist/IpRestriction/Row.js +91 -0
- package/dist/IpRestriction/apis/allowed_ip_ranges.js +28 -0
- package/dist/IpRestriction/apis/current_ip.js +11 -0
- package/dist/IpRestriction/apis/ip_restriction.js +16 -0
- package/dist/IpRestriction/constants.js +20 -0
- package/dist/IpRestriction/hooks/reactQuery/useAllowedIpRanges.js +34 -0
- package/dist/IpRestriction/hooks/reactQuery/useCurrentIp.js +10 -0
- package/dist/IpRestriction/hooks/reactQuery/useIpRestrictions.js +18 -0
- package/dist/IpRestriction/index.js +102 -0
- package/dist/IpRestriction/utils.js +85 -0
- package/dist/KeyboardShortcuts/Pane/HotKey.js +44 -0
- package/dist/KeyboardShortcuts/Pane/HotKeyList.js +42 -0
- package/dist/KeyboardShortcuts/Pane/constants.js +25 -0
- package/dist/KeyboardShortcuts/Pane/index.js +61 -0
- package/dist/KeyboardShortcuts/Pane/keyboard-shortcuts.scss +5 -0
- package/dist/KeyboardShortcuts/Pane/utils.js +66 -0
- package/dist/KeyboardShortcuts/hooks/useKeyboardShortcutsPaneState.js +31 -0
- package/dist/KeyboardShortcuts/index.js +9 -0
- package/dist/LoginPage/Form.js +57 -0
- package/dist/LoginPage/constants.js +12 -0
- package/dist/LoginPage/index.js +103 -0
- package/dist/MenuBar/AddNew.js +25 -0
- package/dist/MenuBar/Block.js +60 -0
- package/dist/MenuBar/Item.js +32 -0
- package/dist/MenuBar/Search.js +39 -0
- package/dist/MenuBar/SubTitle.js +23 -0
- package/dist/MenuBar/index.js +46 -0
- package/dist/MenuBar/menubar.scss +154 -0
- package/dist/Metadata/Block.js +30 -0
- package/dist/Metadata/DetailsBlock.js +86 -0
- package/dist/Metadata/constants.js +9 -0
- package/dist/Metadata/index.js +29 -0
- package/dist/Metadata/metadata.scss +15 -0
- package/dist/MoreDropdown/constants.js +25 -0
- package/dist/{MoreDropdown.js → MoreDropdown/index.js} +9 -102
- package/dist/NavigationHeader/LeftBlock.js +32 -0
- package/dist/NavigationHeader/Navigation.js +24 -0
- package/dist/NavigationHeader/RightBlock.js +68 -0
- package/dist/NavigationHeader/constants.js +11 -0
- package/dist/NavigationHeader/index.js +19 -0
- package/dist/NavigationHeader/navigation-header.scss +3 -0
- package/dist/NeetoWidget/CodeBlock.js +57 -0
- package/dist/NeetoWidget/CodeSnippet.js +119 -0
- package/dist/NeetoWidget/EmbedCode.js +281 -0
- package/dist/NeetoWidget/Main.js +19 -0
- package/dist/NeetoWidget/SelectionSwitches/TooltipSwitch.js +25 -0
- package/dist/NeetoWidget/SelectionSwitches/index.js +44 -0
- package/dist/NeetoWidget/SyntaxHighlighter.js +17 -0
- package/dist/NeetoWidget/api.js +20 -0
- package/dist/NeetoWidget/constants.js +62 -0
- package/dist/NeetoWidget/hooks/useForceUpdate.js +14 -0
- package/dist/NeetoWidget/index.js +7 -0
- package/dist/NeetoWidget/mutations.js +9 -0
- package/dist/NeetoWidget/queries.js +32 -0
- package/dist/NeetoWidget/utils.js +83 -0
- package/dist/PageLoader/index.js +81 -0
- package/dist/PageLoader/page-loader.scss +95 -0
- package/dist/PhoneNumber/CountryPicker/SingleValue.js +21 -0
- package/dist/PhoneNumber/CountryPicker/constants.js +26 -0
- package/dist/PhoneNumber/CountryPicker/index.js +59 -0
- package/dist/PhoneNumber/FormikPhoneNumberInput.js +21 -0
- package/dist/PhoneNumber/PhoneNumber.js +30 -0
- package/dist/PhoneNumber/PhoneNumberInput.js +79 -0
- package/dist/PhoneNumber/index.js +5 -0
- package/dist/PhoneNumber/utils.js +55 -0
- package/dist/PublishBlock/AlertBlock.js +14 -0
- package/dist/PublishBlock/index.js +100 -0
- package/dist/PublishBlock/publish-block.scss +25 -0
- package/dist/Rename/DummySpan.js +21 -0
- package/dist/Rename/constants.js +1 -0
- package/dist/Rename/index.js +191 -0
- package/dist/Rename/rename.scss +69 -0
- package/dist/Rename/utils.js +10 -0
- package/dist/ResponsiveDevicePicker/constants.js +19 -0
- package/dist/ResponsiveDevicePicker/index.js +36 -0
- package/dist/Schedule/DisplayAvailability.js +58 -0
- package/dist/Schedule/Fields.js +43 -0
- package/dist/Schedule/Form/ScheduleRow.js +125 -0
- package/dist/Schedule/Form/constants.js +20 -0
- package/dist/Schedule/Form/index.js +144 -0
- package/dist/Schedule/Form/utils.js +63 -0
- package/dist/Schedule/Header.js +76 -0
- package/dist/Schedule/ScheduleContext.js +8 -0
- package/dist/Schedule/constants.js +8 -0
- package/dist/Schedule/dayjsExtended/constants.js +1 -0
- package/dist/Schedule/dayjsExtended/index.js +14 -0
- package/dist/Schedule/dayjsExtended/range.js +73 -0
- package/dist/Schedule/index.js +80 -0
- package/dist/Schedule/utils.js +152 -0
- package/dist/Scrollable/constants.js +8 -0
- package/dist/Scrollable/index.js +26 -0
- package/dist/Scrollable/scrollable.scss +32 -0
- package/dist/Search/index.js +52 -0
- package/dist/Security/AllowedKeywords/Add.js +38 -0
- package/dist/Security/AllowedKeywords/index.js +38 -0
- package/dist/Security/PasswordBlock.js +31 -0
- package/dist/Security/RadioBlock.js +38 -0
- package/dist/Security/api.js +12 -0
- package/dist/Security/constants.js +58 -0
- package/dist/Security/index.js +68 -0
- package/dist/Security/useSecurityApi.js +22 -0
- package/dist/Security/utils.js +31 -0
- package/dist/SendToFields/FilePicker.js +34 -0
- package/dist/SendToFields/constants.js +6 -0
- package/dist/SendToFields/index.js +102 -0
- package/dist/SendToFields/utils.js +54 -0
- package/dist/Settings/Category.js +30 -0
- package/dist/Settings/Item.js +38 -0
- package/dist/Settings/index.js +37 -0
- package/dist/Settings/utils.js +4 -0
- package/dist/ShareViaEmail/EmailBodyEditor.js +22 -0
- package/dist/ShareViaEmail/FilePicker.js +43 -0
- package/dist/ShareViaEmail/Form.js +101 -0
- package/dist/ShareViaEmail/FormikDatePicker.js +24 -0
- package/dist/ShareViaEmail/constants.js +14 -0
- package/dist/ShareViaEmail/index.js +89 -0
- package/dist/ShareViaEmail/utils.js +72 -0
- package/dist/ShareViaLink/EditURL.js +74 -0
- package/dist/ShareViaLink/Link.js +105 -0
- package/dist/ShareViaLink/QRCode.js +41 -0
- package/dist/ShareViaLink/RegenerateURL.js +47 -0
- package/dist/ShareViaLink/SocialMedia.js +52 -0
- package/dist/ShareViaLink/constants.js +25 -0
- package/dist/ShareViaLink/edit-url.scss +8 -0
- package/dist/ShareViaLink/index.js +46 -0
- package/dist/ShareViaLink/utils.js +47 -0
- package/dist/Sidebar/AppSwitcher/AppLink.js +45 -0
- package/dist/Sidebar/AppSwitcher/Backdrop.js +13 -0
- package/dist/Sidebar/AppSwitcher/Body.js +65 -0
- package/dist/Sidebar/AppSwitcher/Portal.js +27 -0
- package/dist/Sidebar/AppSwitcher/appswitcher.scss +164 -0
- package/dist/Sidebar/AppSwitcher/index.js +47 -0
- package/dist/Sidebar/AppSwitcher/utils.js +25 -0
- package/dist/Sidebar/Chevron.js +14 -0
- package/dist/Sidebar/FeaturedTooltip.js +19 -0
- package/dist/Sidebar/Footer/AppSwitcherButton.js +48 -0
- package/dist/Sidebar/Footer/ProfileButton.js +30 -0
- package/dist/Sidebar/Footer/index.js +56 -0
- package/dist/Sidebar/Footer/utils.js +39 -0
- package/dist/Sidebar/Header.js +33 -0
- package/dist/Sidebar/HelpSection/HelpSectionMenu.js +52 -0
- package/dist/Sidebar/HelpSection/index.js +32 -0
- package/dist/Sidebar/Links.js +112 -0
- package/dist/Sidebar/NavIconWrapper.js +20 -0
- package/dist/Sidebar/ProfileSection/LinkSection.js +36 -0
- package/dist/Sidebar/ProfileSection/ProfileMenu.js +48 -0
- package/dist/Sidebar/ProfileSection/index.js +42 -0
- package/dist/Sidebar/constants.js +40 -0
- package/dist/Sidebar/index.js +94 -0
- package/dist/Sidebar/sidebar.scss +379 -0
- package/dist/Sidebar/utils.js +18 -0
- package/dist/SubHeader/RightBlock/Columns.js +35 -0
- package/dist/SubHeader/RightBlock/Download.js +28 -0
- package/dist/SubHeader/RightBlock/Filter.js +31 -0
- package/dist/SubHeader/RightBlock/index.js +21 -0
- package/dist/SubHeader/RightBlock/utils.js +13 -0
- package/dist/SubHeader/index.js +28 -0
- package/dist/SubHeader/subheader.scss +78 -0
- package/dist/TableWrapper/index.js +18 -0
- package/dist/ThemeSidebar/Customize/Logo.js +39 -0
- package/dist/ThemeSidebar/Customize/Properties.js +170 -0
- package/dist/ThemeSidebar/Customize/index.js +66 -0
- package/dist/ThemeSidebar/Themes/ThemeCard.js +135 -0
- package/dist/ThemeSidebar/Themes/index.js +110 -0
- package/dist/ThemeSidebar/TitleBar.js +62 -0
- package/dist/ThemeSidebar/constants.js +127 -0
- package/dist/ThemeSidebar/fields/AlignmentBlock.js +50 -0
- package/dist/ThemeSidebar/fields/Card.js +19 -0
- package/dist/ThemeSidebar/fields/ColorBlock.js +19 -0
- package/dist/ThemeSidebar/fields/FontPickerBlock.js +35 -0
- package/dist/ThemeSidebar/fields/ImageBlock/ImageUploader.js +67 -0
- package/dist/ThemeSidebar/fields/ImageBlock/ProgressBar.js +22 -0
- package/dist/ThemeSidebar/fields/ImageBlock/index.js +55 -0
- package/dist/ThemeSidebar/fields/SelectBlock.js +24 -0
- package/dist/ThemeSidebar/fields/SliderBlock.js +30 -0
- package/dist/ThemeSidebar/fields/SwitchBlock.js +17 -0
- package/dist/ThemeSidebar/fields/TextBlock.js +13 -0
- package/dist/ThemeSidebar/fields/slider.scss +199 -0
- package/dist/ThemeSidebar/hooks/useDirectUploadDropzone.js +149 -0
- package/dist/ThemeSidebar/index.js +118 -0
- package/dist/ThemeSidebar/themeSidebar.scss +45 -0
- package/dist/ThemeSidebar/utils.js +169 -0
- package/dist/TimeFormat/index.js +3 -0
- package/dist/TimezoneMismatchModal/apis/time_zone.js +9 -0
- package/dist/TimezoneMismatchModal/index.js +83 -0
- package/dist/TimezoneMismatchModal/useTimeZoneApi.js +10 -0
- package/dist/TimezoneMismatchModal/utils.js +12 -0
- package/dist/ToggleFeatureCard/ToolTipSwitch.js +31 -0
- package/dist/ToggleFeatureCard/constants.js +5 -0
- package/dist/ToggleFeatureCard/hooks/useScrollIntoView.js +11 -0
- package/dist/ToggleFeatureCard/index.js +148 -0
- package/dist/ToggleFeatureCard/toggleFeatureCard.scss +4 -0
- package/package.json +28 -34
- package/src/translations/en.json +5 -1
- package/types/Search.d.ts +19 -0
- package/dist/AutoSaveInput.cjs.js +0 -724
- package/dist/AutoSaveInput.cjs.js.map +0 -1
- package/dist/AutoSaveInput.js +0 -718
- package/dist/AutoSaveInput.js.map +0 -1
- package/dist/Breadcrumbs.cjs.js +0 -44
- package/dist/Breadcrumbs.cjs.js.map +0 -1
- package/dist/Breadcrumbs.js +0 -38
- package/dist/Breadcrumbs.js.map +0 -1
- package/dist/BrowserSupport.cjs.js +0 -1731
- package/dist/BrowserSupport.cjs.js.map +0 -1
- package/dist/BrowserSupport.js +0 -1725
- package/dist/BrowserSupport.js.map +0 -1
- package/dist/CalendarView.cjs.js +0 -610
- package/dist/CalendarView.cjs.js.map +0 -1
- package/dist/CalendarView.js +0 -598
- package/dist/CalendarView.js.map +0 -1
- package/dist/Codeblock.cjs.js +0 -302
- package/dist/Codeblock.cjs.js.map +0 -1
- package/dist/Codeblock.js +0 -296
- package/dist/Codeblock.js.map +0 -1
- package/dist/Columns.cjs.js +0 -248
- package/dist/Columns.cjs.js.map +0 -1
- package/dist/Columns.js.map +0 -1
- package/dist/ConfirmationModal.cjs.js +0 -87
- package/dist/ConfirmationModal.cjs.js.map +0 -1
- package/dist/ConfirmationModal.js.map +0 -1
- package/dist/Container.cjs.js +0 -1277
- package/dist/Container.cjs.js.map +0 -1
- package/dist/Container.js +0 -1271
- package/dist/Container.js.map +0 -1
- package/dist/CopyToClipboardButton.cjs.js +0 -275
- package/dist/CopyToClipboardButton.cjs.js.map +0 -1
- package/dist/CopyToClipboardButton.js +0 -269
- package/dist/CopyToClipboardButton.js.map +0 -1
- package/dist/CustomDomain.cjs.js +0 -774
- package/dist/CustomDomain.cjs.js.map +0 -1
- package/dist/CustomDomain.js +0 -747
- package/dist/CustomDomain.js.map +0 -1
- package/dist/CustomDomainDashboard.cjs.js +0 -2370
- package/dist/CustomDomainDashboard.cjs.js.map +0 -1
- package/dist/CustomDomainDashboard.js +0 -2342
- package/dist/CustomDomainDashboard.js.map +0 -1
- package/dist/DateFormat.cjs.js +0 -51
- package/dist/DateFormat.cjs.js.map +0 -1
- package/dist/DateFormat.js.map +0 -1
- package/dist/DateRangeFilter.cjs.js +0 -236
- package/dist/DateRangeFilter.cjs.js.map +0 -1
- package/dist/DateRangeFilter.js +0 -229
- package/dist/DateRangeFilter.js.map +0 -1
- package/dist/DynamicVariables.cjs.js +0 -189
- package/dist/DynamicVariables.cjs.js.map +0 -1
- package/dist/DynamicVariables.js +0 -183
- package/dist/DynamicVariables.js.map +0 -1
- package/dist/EmailForm.cjs.js +0 -4295
- package/dist/EmailForm.cjs.js.map +0 -1
- package/dist/EmailForm.js +0 -4265
- package/dist/EmailForm.js.map +0 -1
- package/dist/EmailPreview.cjs.js +0 -1419
- package/dist/EmailPreview.cjs.js.map +0 -1
- package/dist/EmailPreview.js +0 -1413
- package/dist/EmailPreview.js.map +0 -1
- package/dist/ErrorPage.cjs.js +0 -226
- package/dist/ErrorPage.cjs.js.map +0 -1
- package/dist/ErrorPage.js.map +0 -1
- package/dist/Header.cjs.js +0 -188
- package/dist/Header.cjs.js.map +0 -1
- package/dist/Header.js +0 -182
- package/dist/Header.js.map +0 -1
- package/dist/IconPicker.cjs.js +0 -1308
- package/dist/IconPicker.cjs.js.map +0 -1
- package/dist/IconPicker.js +0 -1302
- package/dist/IconPicker.js.map +0 -1
- package/dist/ImageWithFallback.cjs.js +0 -247
- package/dist/ImageWithFallback.cjs.js.map +0 -1
- package/dist/ImageWithFallback.js +0 -241
- package/dist/ImageWithFallback.js.map +0 -1
- package/dist/IntegrationCard.cjs.js +0 -409
- package/dist/IntegrationCard.cjs.js.map +0 -1
- package/dist/IntegrationCard.js +0 -403
- package/dist/IntegrationCard.js.map +0 -1
- package/dist/IntegrationDisconnectAlert.cjs.js +0 -89
- package/dist/IntegrationDisconnectAlert.cjs.js.map +0 -1
- package/dist/IntegrationDisconnectAlert.js +0 -80
- package/dist/IntegrationDisconnectAlert.js.map +0 -1
- package/dist/IntegrationWalkthroughModal.cjs.js +0 -50
- package/dist/IntegrationWalkthroughModal.cjs.js.map +0 -1
- package/dist/IntegrationWalkthroughModal.js.map +0 -1
- package/dist/IpRestriction.cjs.js +0 -3931
- package/dist/IpRestriction.cjs.js.map +0 -1
- package/dist/IpRestriction.js +0 -3905
- package/dist/IpRestriction.js.map +0 -1
- package/dist/KeyboardShortcuts.cjs.js +0 -2263
- package/dist/KeyboardShortcuts.cjs.js.map +0 -1
- package/dist/KeyboardShortcuts.js +0 -2256
- package/dist/KeyboardShortcuts.js.map +0 -1
- package/dist/LoginPage.cjs.js +0 -618
- package/dist/LoginPage.cjs.js.map +0 -1
- package/dist/LoginPage.js +0 -593
- package/dist/LoginPage.js.map +0 -1
- package/dist/MenuBar.cjs.js +0 -34273
- package/dist/MenuBar.cjs.js.map +0 -1
- package/dist/MenuBar.js +0 -34267
- package/dist/MenuBar.js.map +0 -1
- package/dist/Metadata.cjs.js +0 -272
- package/dist/Metadata.cjs.js.map +0 -1
- package/dist/Metadata.js +0 -266
- package/dist/Metadata.js.map +0 -1
- package/dist/MoreDropdown.cjs.js +0 -168
- package/dist/MoreDropdown.cjs.js.map +0 -1
- package/dist/MoreDropdown.js.map +0 -1
- package/dist/NavigationHeader.cjs.js +0 -756
- package/dist/NavigationHeader.cjs.js.map +0 -1
- package/dist/NavigationHeader.js +0 -750
- package/dist/NavigationHeader.js.map +0 -1
- package/dist/NeetoWidget.cjs.js +0 -3375
- package/dist/NeetoWidget.cjs.js.map +0 -1
- package/dist/NeetoWidget.js +0 -3348
- package/dist/NeetoWidget.js.map +0 -1
- package/dist/PageLoader.cjs.js +0 -158
- package/dist/PageLoader.cjs.js.map +0 -1
- package/dist/PageLoader.js +0 -134
- package/dist/PageLoader.js.map +0 -1
- package/dist/PhoneNumber.cjs.js +0 -7021
- package/dist/PhoneNumber.cjs.js.map +0 -1
- package/dist/PhoneNumber.js +0 -6989
- package/dist/PhoneNumber.js.map +0 -1
- package/dist/PublishBlock.cjs.js +0 -224
- package/dist/PublishBlock.cjs.js.map +0 -1
- package/dist/PublishBlock.js +0 -218
- package/dist/PublishBlock.js.map +0 -1
- package/dist/Rename.cjs.js +0 -516
- package/dist/Rename.cjs.js.map +0 -1
- package/dist/Rename.js +0 -510
- package/dist/Rename.js.map +0 -1
- package/dist/ResponsiveDevicePicker.cjs.js +0 -260
- package/dist/ResponsiveDevicePicker.cjs.js.map +0 -1
- package/dist/ResponsiveDevicePicker.js +0 -254
- package/dist/ResponsiveDevicePicker.js.map +0 -1
- package/dist/Schedule.cjs.js +0 -1077
- package/dist/Schedule.cjs.js.map +0 -1
- package/dist/Schedule.js +0 -1046
- package/dist/Schedule.js.map +0 -1
- package/dist/Scrollable.cjs.js +0 -188
- package/dist/Scrollable.cjs.js.map +0 -1
- package/dist/Scrollable.js +0 -182
- package/dist/Scrollable.js.map +0 -1
- package/dist/Security.cjs.js +0 -1921
- package/dist/Security.cjs.js.map +0 -1
- package/dist/Security.js +0 -1895
- package/dist/Security.js.map +0 -1
- package/dist/SendToFields.cjs.js +0 -2524
- package/dist/SendToFields.cjs.js.map +0 -1
- package/dist/SendToFields.js +0 -2517
- package/dist/SendToFields.js.map +0 -1
- package/dist/Settings.cjs.js +0 -501
- package/dist/Settings.cjs.js.map +0 -1
- package/dist/Settings.js +0 -495
- package/dist/Settings.js.map +0 -1
- package/dist/ShareViaEmail.cjs.js +0 -4272
- package/dist/ShareViaEmail.cjs.js.map +0 -1
- package/dist/ShareViaEmail.js +0 -4246
- package/dist/ShareViaEmail.js.map +0 -1
- package/dist/ShareViaLink.cjs.js +0 -1512
- package/dist/ShareViaLink.cjs.js.map +0 -1
- package/dist/ShareViaLink.js +0 -1486
- package/dist/ShareViaLink.js.map +0 -1
- package/dist/Sidebar.cjs.js +0 -34985
- package/dist/Sidebar.cjs.js.map +0 -1
- package/dist/Sidebar.js +0 -34959
- package/dist/Sidebar.js.map +0 -1
- package/dist/SubHeader.cjs.js +0 -283
- package/dist/SubHeader.cjs.js.map +0 -1
- package/dist/SubHeader.js +0 -276
- package/dist/SubHeader.js.map +0 -1
- package/dist/TableWrapper.cjs.js +0 -87
- package/dist/TableWrapper.cjs.js.map +0 -1
- package/dist/TableWrapper.js +0 -81
- package/dist/TableWrapper.js.map +0 -1
- package/dist/ThemeSidebar.cjs.js +0 -13705
- package/dist/ThemeSidebar.cjs.js.map +0 -1
- package/dist/ThemeSidebar.js +0 -13680
- package/dist/ThemeSidebar.js.map +0 -1
- package/dist/TimeFormat.cjs.js +0 -53
- package/dist/TimeFormat.cjs.js.map +0 -1
- package/dist/TimeFormat.js +0 -47
- package/dist/TimeFormat.js.map +0 -1
- package/dist/TimezoneMismatchModal.cjs.js +0 -176
- package/dist/TimezoneMismatchModal.cjs.js.map +0 -1
- package/dist/TimezoneMismatchModal.js +0 -168
- package/dist/TimezoneMismatchModal.js.map +0 -1
- package/dist/ToggleFeatureCard.cjs.js +0 -389
- package/dist/ToggleFeatureCard.cjs.js.map +0 -1
- package/dist/ToggleFeatureCard.js +0 -383
- package/dist/ToggleFeatureCard.js.map +0 -1
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
5
|
+
var _excluded = ["selectedDate", "setSelectedDate", "picker"];
|
|
6
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
|
+
import React, { useRef, useState } from "react";
|
|
9
|
+
import dayjs from "dayjs";
|
|
10
|
+
import { Down, Left, Right } from "@bigbinary/neeto-icons";
|
|
11
|
+
import { Typography, Button, DatePicker } from "@bigbinary/neetoui";
|
|
12
|
+
import { getFormattedRangeStr } from "./utils";
|
|
13
|
+
var CustomDatePicker = function CustomDatePicker(_ref) {
|
|
14
|
+
var selectedDate = _ref.selectedDate,
|
|
15
|
+
setSelectedDate = _ref.setSelectedDate,
|
|
16
|
+
picker = _ref.picker,
|
|
17
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
+
var _useState = useState(false),
|
|
19
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
20
|
+
isOpen = _useState2[0],
|
|
21
|
+
setIsOpen = _useState2[1];
|
|
22
|
+
var datePickerRef = useRef(null);
|
|
23
|
+
var buttonRef = useRef(null);
|
|
24
|
+
var selectedRangeStr = getFormattedRangeStr(selectedDate, picker);
|
|
25
|
+
var onPrevious = function onPrevious() {
|
|
26
|
+
return setSelectedDate(function (selectedDate) {
|
|
27
|
+
return selectedDate.subtract(1, picker);
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
var onNext = function onNext() {
|
|
31
|
+
return setSelectedDate(function (selectedDate) {
|
|
32
|
+
return selectedDate.add(1, picker);
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
var onToday = function onToday() {
|
|
36
|
+
return setSelectedDate(dayjs());
|
|
37
|
+
};
|
|
38
|
+
var handleButtonMouseDown = function handleButtonMouseDown(e) {
|
|
39
|
+
if (buttonRef.current && buttonRef.current.contains(e.target)) {
|
|
40
|
+
e.stopPropagation();
|
|
41
|
+
if (isOpen) datePickerRef.current.focus();
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
45
|
+
className: "flex items-center justify-start space-x-4"
|
|
46
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
47
|
+
label: "Today",
|
|
48
|
+
style: "secondary",
|
|
49
|
+
onClick: onToday
|
|
50
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
51
|
+
className: "flex"
|
|
52
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
53
|
+
className: "mr-1",
|
|
54
|
+
icon: Left,
|
|
55
|
+
style: "text",
|
|
56
|
+
onClick: onPrevious
|
|
57
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
58
|
+
icon: Down,
|
|
59
|
+
ref: buttonRef,
|
|
60
|
+
style: "text",
|
|
61
|
+
onClick: function onClick() {
|
|
62
|
+
return setIsOpen(function (isOpen) {
|
|
63
|
+
return !isOpen;
|
|
64
|
+
});
|
|
65
|
+
},
|
|
66
|
+
onMouseDown: handleButtonMouseDown
|
|
67
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
68
|
+
style: "h5"
|
|
69
|
+
}, selectedRangeStr)), /*#__PURE__*/React.createElement(DatePicker, _extends({
|
|
70
|
+
className: "invisible w-0 px-0",
|
|
71
|
+
defaultValue: selectedDate,
|
|
72
|
+
open: isOpen,
|
|
73
|
+
placement: "topRight",
|
|
74
|
+
ref: datePickerRef,
|
|
75
|
+
value: selectedDate,
|
|
76
|
+
onChange: setSelectedDate,
|
|
77
|
+
onOpenChange: setIsOpen
|
|
78
|
+
}, _objectSpread({
|
|
79
|
+
picker: picker
|
|
80
|
+
}, otherProps))), /*#__PURE__*/React.createElement(Button, {
|
|
81
|
+
className: "ml-1",
|
|
82
|
+
icon: Right,
|
|
83
|
+
style: "text",
|
|
84
|
+
onClick: onNext
|
|
85
|
+
})));
|
|
86
|
+
};
|
|
87
|
+
export default CustomDatePicker;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React, { useEffect } from "react";
|
|
2
|
+
import { capitalize } from "@bigbinary/neeto-commons-frontend/pure";
|
|
3
|
+
import { Button, Dropdown } from "@bigbinary/neetoui";
|
|
4
|
+
import { prop, values } from "ramda";
|
|
5
|
+
import CustomDatePicker from "./CustomDatePicker";
|
|
6
|
+
var Header = function Header(_ref) {
|
|
7
|
+
var calendarRef = _ref.calendarRef,
|
|
8
|
+
selectedView = _ref.selectedView,
|
|
9
|
+
setSelectedView = _ref.setSelectedView,
|
|
10
|
+
setSelectedDate = _ref.setSelectedDate,
|
|
11
|
+
selectedDate = _ref.selectedDate,
|
|
12
|
+
calenderViewOptions = _ref.calenderViewOptions;
|
|
13
|
+
var Menu = Dropdown.Menu,
|
|
14
|
+
MenuItem = Dropdown.MenuItem;
|
|
15
|
+
var handleViewSelection = function handleViewSelection(option) {
|
|
16
|
+
setSelectedView(option);
|
|
17
|
+
calendarRef.current.calendar.changeView(option.fullCalendarView);
|
|
18
|
+
};
|
|
19
|
+
var navigateToSelectedDate = function navigateToSelectedDate() {
|
|
20
|
+
var _calendarRef$current, _calendarRef$current$;
|
|
21
|
+
return calendarRef === null || calendarRef === void 0 ? void 0 : (_calendarRef$current = calendarRef.current) === null || _calendarRef$current === void 0 ? void 0 : (_calendarRef$current$ = _calendarRef$current.calendar) === null || _calendarRef$current$ === void 0 ? void 0 : _calendarRef$current$.gotoDate(selectedDate.format("YYYY-MM-DD"));
|
|
22
|
+
};
|
|
23
|
+
useEffect(function () {
|
|
24
|
+
setTimeout(navigateToSelectedDate);
|
|
25
|
+
}, [selectedDate]);
|
|
26
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
27
|
+
className: "flex space-x-4"
|
|
28
|
+
}, /*#__PURE__*/React.createElement(CustomDatePicker, {
|
|
29
|
+
getPopupContainer: prop("parentNode"),
|
|
30
|
+
picker: selectedView.picker,
|
|
31
|
+
selectedDate: selectedDate,
|
|
32
|
+
setSelectedDate: setSelectedDate
|
|
33
|
+
}), Object.keys(calenderViewOptions).length === 1 ? /*#__PURE__*/React.createElement(Button, {
|
|
34
|
+
className: "pointer-events-none",
|
|
35
|
+
label: calenderViewOptions[Object.keys(calenderViewOptions)[0]].label,
|
|
36
|
+
style: "secondary"
|
|
37
|
+
}) : /*#__PURE__*/React.createElement(Dropdown, {
|
|
38
|
+
buttonProps: {
|
|
39
|
+
"data-testid": "calendar-view-dropdown"
|
|
40
|
+
},
|
|
41
|
+
buttonStyle: "secondary",
|
|
42
|
+
label: capitalize(selectedView.label)
|
|
43
|
+
}, /*#__PURE__*/React.createElement(Menu, null, values(calenderViewOptions).map(function (option, idx) {
|
|
44
|
+
return /*#__PURE__*/React.createElement(MenuItem.Button, {
|
|
45
|
+
isActive: selectedView === option,
|
|
46
|
+
key: idx,
|
|
47
|
+
onClick: function onClick() {
|
|
48
|
+
return handleViewSelection(option);
|
|
49
|
+
}
|
|
50
|
+
}, capitalize(option.label));
|
|
51
|
+
}))));
|
|
52
|
+
};
|
|
53
|
+
export default Header;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
var _VIEW_OPTIONS;
|
|
3
|
+
import { t } from "i18next";
|
|
4
|
+
var WEEKLY_VIEW = t("neetoMolecules.calendarView.weekly");
|
|
5
|
+
var MONTHLY_VIEW = t("neetoMolecules.calendarView.monthly");
|
|
6
|
+
var DAILY_VIEW = t("neetoMolecules.calendarView.daily");
|
|
7
|
+
export var VIEW_OPTIONS = (_VIEW_OPTIONS = {}, _defineProperty(_VIEW_OPTIONS, DAILY_VIEW, {
|
|
8
|
+
label: DAILY_VIEW,
|
|
9
|
+
fullCalendarView: "timeGridDay",
|
|
10
|
+
picker: "day"
|
|
11
|
+
}), _defineProperty(_VIEW_OPTIONS, WEEKLY_VIEW, {
|
|
12
|
+
label: WEEKLY_VIEW,
|
|
13
|
+
fullCalendarView: "timeGridWeek",
|
|
14
|
+
picker: "week"
|
|
15
|
+
}), _defineProperty(_VIEW_OPTIONS, MONTHLY_VIEW, {
|
|
16
|
+
label: MONTHLY_VIEW,
|
|
17
|
+
fullCalendarView: "dayGridMonth",
|
|
18
|
+
picker: "month"
|
|
19
|
+
}), _VIEW_OPTIONS);
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
5
|
+
var _excluded = ["viewOptions", "events", "handleDateClick", "handleEventClick", "eventClassNames", "dayCellClassNames", "dayMaxEvents", "eventMaxStack"];
|
|
6
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
|
+
import React, { useRef, useState } from "react";
|
|
9
|
+
import dayGridPlugin from "@fullcalendar/daygrid";
|
|
10
|
+
import interactionPlugin from "@fullcalendar/interaction";
|
|
11
|
+
import FullCalendar from "@fullcalendar/react";
|
|
12
|
+
import timeGridPlugin from "@fullcalendar/timegrid";
|
|
13
|
+
import dayjs from "dayjs";
|
|
14
|
+
import { noop } from "@bigbinary/neeto-commons-frontend/pure";
|
|
15
|
+
import { Typography } from "@bigbinary/neetoui";
|
|
16
|
+
import { useTranslation } from "react-i18next";
|
|
17
|
+
import SubHeader from "../SubHeader";
|
|
18
|
+
import { VIEW_OPTIONS } from "./constants";
|
|
19
|
+
import Header from "./Header";
|
|
20
|
+
var CalendarView = function CalendarView(_ref) {
|
|
21
|
+
var _ref$viewOptions = _ref.viewOptions,
|
|
22
|
+
viewOptions = _ref$viewOptions === void 0 ? VIEW_OPTIONS : _ref$viewOptions,
|
|
23
|
+
_ref$events = _ref.events,
|
|
24
|
+
events = _ref$events === void 0 ? [] : _ref$events,
|
|
25
|
+
_ref$handleDateClick = _ref.handleDateClick,
|
|
26
|
+
handleDateClick = _ref$handleDateClick === void 0 ? noop : _ref$handleDateClick,
|
|
27
|
+
_ref$handleEventClick = _ref.handleEventClick,
|
|
28
|
+
handleEventClick = _ref$handleEventClick === void 0 ? noop : _ref$handleEventClick,
|
|
29
|
+
_ref$eventClassNames = _ref.eventClassNames,
|
|
30
|
+
eventClassNames = _ref$eventClassNames === void 0 ? "" : _ref$eventClassNames,
|
|
31
|
+
_ref$dayCellClassName = _ref.dayCellClassNames,
|
|
32
|
+
dayCellClassNames = _ref$dayCellClassName === void 0 ? "" : _ref$dayCellClassName,
|
|
33
|
+
dayMaxEvents = _ref.dayMaxEvents,
|
|
34
|
+
eventMaxStack = _ref.eventMaxStack,
|
|
35
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
36
|
+
var calenderViewOptions = viewOptions || VIEW_OPTIONS;
|
|
37
|
+
var _useState = useState(calenderViewOptions[Object.keys(calenderViewOptions)[0]]),
|
|
38
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
39
|
+
selectedView = _useState2[0],
|
|
40
|
+
setSelectedView = _useState2[1];
|
|
41
|
+
var _useState3 = useState(dayjs()),
|
|
42
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
43
|
+
selectedDate = _useState4[0],
|
|
44
|
+
setSelectedDate = _useState4[1];
|
|
45
|
+
var _useTranslation = useTranslation(),
|
|
46
|
+
t = _useTranslation.t;
|
|
47
|
+
var calendarRef = useRef();
|
|
48
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
49
|
+
className: "flex-col",
|
|
50
|
+
"data-testid": "calendar-view"
|
|
51
|
+
}, /*#__PURE__*/React.createElement(SubHeader, {
|
|
52
|
+
leftActionBlock: /*#__PURE__*/React.createElement(Typography, {
|
|
53
|
+
style: "h2"
|
|
54
|
+
}, selectedDate.format("MMMM, YYYY")),
|
|
55
|
+
rightActionBlock: /*#__PURE__*/React.createElement(Header, {
|
|
56
|
+
calendarRef: calendarRef,
|
|
57
|
+
calenderViewOptions: calenderViewOptions,
|
|
58
|
+
selectedDate: selectedDate,
|
|
59
|
+
selectedView: selectedView,
|
|
60
|
+
setSelectedDate: setSelectedDate,
|
|
61
|
+
setSelectedView: setSelectedView
|
|
62
|
+
})
|
|
63
|
+
}), /*#__PURE__*/React.createElement(FullCalendar, _extends({
|
|
64
|
+
expandRows: true,
|
|
65
|
+
allDayText: t("neetoMolecules.calendarView.allDay"),
|
|
66
|
+
dateClick: handleDateClick,
|
|
67
|
+
dayHeaderClassNames: "p-2",
|
|
68
|
+
displayEventTime: false,
|
|
69
|
+
eventClick: handleEventClick,
|
|
70
|
+
headerToolbar: false,
|
|
71
|
+
height: "auto",
|
|
72
|
+
initialView: selectedView.fullCalendarView,
|
|
73
|
+
plugins: [dayGridPlugin, timeGridPlugin, interactionPlugin],
|
|
74
|
+
ref: calendarRef
|
|
75
|
+
}, _objectSpread({
|
|
76
|
+
dayCellClassNames: dayCellClassNames,
|
|
77
|
+
dayMaxEvents: dayMaxEvents,
|
|
78
|
+
eventClassNames: eventClassNames,
|
|
79
|
+
eventMaxStack: eventMaxStack,
|
|
80
|
+
events: events
|
|
81
|
+
}, otherProps))));
|
|
82
|
+
};
|
|
83
|
+
export default CalendarView;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import dayjs from "dayjs";
|
|
2
|
+
var getWeekString = function getWeekString(_ref) {
|
|
3
|
+
var date = _ref.date,
|
|
4
|
+
_ref$isStartOfWeek = _ref.isStartOfWeek,
|
|
5
|
+
isStartOfWeek = _ref$isStartOfWeek === void 0 ? true : _ref$isStartOfWeek,
|
|
6
|
+
_ref$showMonth = _ref.showMonth,
|
|
7
|
+
showMonth = _ref$showMonth === void 0 ? false : _ref$showMonth,
|
|
8
|
+
_ref$showYear = _ref.showYear,
|
|
9
|
+
showYear = _ref$showYear === void 0 ? false : _ref$showYear;
|
|
10
|
+
return "".concat(showMonth || isStartOfWeek ? date.format("MMM") : "", " ").concat(date.date(), " ").concat(showYear || !isStartOfWeek ? date.format("YYYY") : "");
|
|
11
|
+
};
|
|
12
|
+
export var getStartOfWeek = function getStartOfWeek(date) {
|
|
13
|
+
return dayjs(date).startOf("week");
|
|
14
|
+
};
|
|
15
|
+
export var getEndOfWeek = function getEndOfWeek(date) {
|
|
16
|
+
return dayjs(date).endOf("week");
|
|
17
|
+
};
|
|
18
|
+
export var getFormattedMonthStr = function getFormattedMonthStr(date) {
|
|
19
|
+
return date.format("MMM YYYY");
|
|
20
|
+
};
|
|
21
|
+
export var getFormattedWeekRangeStr = function getFormattedWeekRangeStr(date) {
|
|
22
|
+
var startOfWeek = getStartOfWeek(date);
|
|
23
|
+
var endOfWeek = getEndOfWeek(date);
|
|
24
|
+
var shouldShowMonthsSeparately = startOfWeek.month() !== endOfWeek.month();
|
|
25
|
+
var shouldShowYearsSeparately = startOfWeek.year() !== endOfWeek.year();
|
|
26
|
+
var startOfWeekStr = getWeekString({
|
|
27
|
+
date: startOfWeek,
|
|
28
|
+
showMonth: shouldShowMonthsSeparately,
|
|
29
|
+
showYear: shouldShowYearsSeparately
|
|
30
|
+
});
|
|
31
|
+
var endOfWeekStr = getWeekString({
|
|
32
|
+
date: endOfWeek,
|
|
33
|
+
isStartOfWeek: false,
|
|
34
|
+
showMonth: shouldShowMonthsSeparately,
|
|
35
|
+
showYear: shouldShowYearsSeparately
|
|
36
|
+
});
|
|
37
|
+
return "".concat(startOfWeekStr, " - ").concat(endOfWeekStr);
|
|
38
|
+
};
|
|
39
|
+
export var getFormattedDayStr = function getFormattedDayStr(date) {
|
|
40
|
+
return date.format("DD MMM YYYY");
|
|
41
|
+
};
|
|
42
|
+
export var getFormattedRangeStr = function getFormattedRangeStr(date, picker) {
|
|
43
|
+
var formatFunctions = {
|
|
44
|
+
month: getFormattedMonthStr,
|
|
45
|
+
week: getFormattedWeekRangeStr,
|
|
46
|
+
day: getFormattedDayStr
|
|
47
|
+
};
|
|
48
|
+
var selectedFormatter = formatFunctions[picker];
|
|
49
|
+
return selectedFormatter(date);
|
|
50
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { PrismLight as CodeBlock } from "react-syntax-highlighter";
|
|
4
|
+
import { dracula } from "react-syntax-highlighter/dist/esm/styles/prism";
|
|
5
|
+
import CopyCode from "../CopyToClipboardButton";
|
|
6
|
+
var Codeblock = function Codeblock(_ref) {
|
|
7
|
+
var code = _ref.code,
|
|
8
|
+
_ref$showCopyButton = _ref.showCopyButton,
|
|
9
|
+
showCopyButton = _ref$showCopyButton === void 0 ? true : _ref$showCopyButton,
|
|
10
|
+
codeblockProps = _ref.codeblockProps,
|
|
11
|
+
_ref$copyButtonProps = _ref.copyButtonProps,
|
|
12
|
+
copyButtonProps = _ref$copyButtonProps === void 0 ? {
|
|
13
|
+
label: "Copy"
|
|
14
|
+
} : _ref$copyButtonProps;
|
|
15
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CodeBlock, _extends({
|
|
16
|
+
wrapLines: true,
|
|
17
|
+
"data-cy": "code-block",
|
|
18
|
+
"data-testid": "codeblock-react-highlighter",
|
|
19
|
+
language: "javascript",
|
|
20
|
+
style: dracula
|
|
21
|
+
}, codeblockProps), code), showCopyButton && /*#__PURE__*/React.createElement(CopyCode, _extends({
|
|
22
|
+
className: "absolute top-3 right-3",
|
|
23
|
+
"data-cy": "copy-button",
|
|
24
|
+
"data-testid": "codeblock-copy-button",
|
|
25
|
+
size: "small",
|
|
26
|
+
style: "secondary",
|
|
27
|
+
value: code
|
|
28
|
+
}, copyButtonProps)));
|
|
29
|
+
};
|
|
30
|
+
export default Codeblock;
|
|
@@ -1,131 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useLocalStorage } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
5
|
-
import { Search } from '@bigbinary/neeto-icons';
|
|
6
|
-
import { Dropdown, Input, Label, Checkbox } from '@bigbinary/neetoui';
|
|
7
|
-
import { includes, __, filter, trim, toLower, append, without, isEmpty, identity } from 'ramda';
|
|
8
|
-
import { useTranslation } from 'react-i18next';
|
|
9
|
-
|
|
10
|
-
function _extends() {
|
|
11
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
12
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
13
|
-
var source = arguments[i];
|
|
14
|
-
for (var key in source) {
|
|
15
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
16
|
-
target[key] = source[key];
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return target;
|
|
21
|
-
};
|
|
22
|
-
return _extends.apply(this, arguments);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function _arrayWithHoles(arr) {
|
|
26
|
-
if (Array.isArray(arr)) return arr;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function _iterableToArrayLimit(arr, i) {
|
|
30
|
-
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
31
|
-
if (null != _i) {
|
|
32
|
-
var _s,
|
|
33
|
-
_e,
|
|
34
|
-
_x,
|
|
35
|
-
_r,
|
|
36
|
-
_arr = [],
|
|
37
|
-
_n = !0,
|
|
38
|
-
_d = !1;
|
|
39
|
-
try {
|
|
40
|
-
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
41
|
-
if (Object(_i) !== _i) return;
|
|
42
|
-
_n = !1;
|
|
43
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
44
|
-
} catch (err) {
|
|
45
|
-
_d = !0, _e = err;
|
|
46
|
-
} finally {
|
|
47
|
-
try {
|
|
48
|
-
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
|
|
49
|
-
} finally {
|
|
50
|
-
if (_d) throw _e;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return _arr;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function _arrayLikeToArray(arr, len) {
|
|
58
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
59
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
60
|
-
return arr2;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
64
|
-
if (!o) return;
|
|
65
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
66
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
67
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
68
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
69
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
function _nonIterableRest() {
|
|
73
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
function _slicedToArray(arr, i) {
|
|
77
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
81
|
-
if (source == null) return {};
|
|
82
|
-
var target = {};
|
|
83
|
-
var sourceKeys = Object.keys(source);
|
|
84
|
-
var key, i;
|
|
85
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
86
|
-
key = sourceKeys[i];
|
|
87
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
88
|
-
target[key] = source[key];
|
|
89
|
-
}
|
|
90
|
-
return target;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function _objectWithoutProperties(source, excluded) {
|
|
94
|
-
if (source == null) return {};
|
|
95
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
96
|
-
var key, i;
|
|
97
|
-
if (Object.getOwnPropertySymbols) {
|
|
98
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
99
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
100
|
-
key = sourceSymbolKeys[i];
|
|
101
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
102
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
103
|
-
target[key] = source[key];
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
return target;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
var removeFixedColumns = function removeFixedColumns(fixedColumns, columnData) {
|
|
110
|
-
return removeBy({
|
|
111
|
-
dataIndex: includes(__, fixedColumns)
|
|
112
|
-
}, columnData);
|
|
113
|
-
};
|
|
114
|
-
var filterBySearchTerm = function filterBySearchTerm(searchTerm, columns) {
|
|
115
|
-
return filter(function (_ref) {
|
|
116
|
-
var title = _ref.title;
|
|
117
|
-
return includes(trim(toLower(searchTerm)), trim(toLower(title)));
|
|
118
|
-
}, columns);
|
|
119
|
-
};
|
|
120
|
-
var removeDeletedColumns = function removeDeletedColumns(hiddenColumns, columnData) {
|
|
121
|
-
return hiddenColumns.filter(function (hiddenColumn) {
|
|
122
|
-
return existsBy({
|
|
123
|
-
dataIndex: hiddenColumn
|
|
124
|
-
}, columnData);
|
|
125
|
-
});
|
|
126
|
-
};
|
|
127
|
-
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
128
4
|
var _excluded = ["actionBlock", "checkboxProps", "columnData", "fixedColumns", "isSearchable", "localStorageKey", "initialValue", "noColumnMessage", "onChange", "searchProps"];
|
|
5
|
+
import React, { useState, useImperativeHandle, forwardRef, useEffect } from "react";
|
|
6
|
+
import i18next from "i18next";
|
|
7
|
+
import { isNotEmpty, removeBy } from "@bigbinary/neeto-commons-frontend/pure";
|
|
8
|
+
import { useLocalStorage } from "@bigbinary/neeto-commons-frontend/react-utils";
|
|
9
|
+
import { Search } from "@bigbinary/neeto-icons";
|
|
10
|
+
import { Checkbox, Dropdown, Input, Label } from "@bigbinary/neetoui";
|
|
11
|
+
import { __, append, identity, includes, isEmpty, without } from "ramda";
|
|
12
|
+
import { useTranslation } from "react-i18next";
|
|
13
|
+
import { filterBySearchTerm, removeDeletedColumns, removeFixedColumns } from "./utils";
|
|
129
14
|
var Columns = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
130
15
|
var actionBlock = _ref.actionBlock,
|
|
131
16
|
_ref$checkboxProps = _ref.checkboxProps,
|
|
@@ -236,6 +121,4 @@ var Columns = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
236
121
|
}, noColumnMessage), !!actionBlock && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, null), actionBlock))));
|
|
237
122
|
});
|
|
238
123
|
Columns.displayName = "Columns";
|
|
239
|
-
|
|
240
|
-
export { Columns as default };
|
|
241
|
-
//# sourceMappingURL=Columns.js.map
|
|
124
|
+
export default Columns;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { existsBy, removeBy } from "@bigbinary/neeto-commons-frontend/pure";
|
|
2
|
+
import { __, filter, includes, toLower, trim } from "ramda";
|
|
3
|
+
export var removeFixedColumns = function removeFixedColumns(fixedColumns, columnData) {
|
|
4
|
+
return removeBy({
|
|
5
|
+
dataIndex: includes(__, fixedColumns)
|
|
6
|
+
}, columnData);
|
|
7
|
+
};
|
|
8
|
+
export var filterBySearchTerm = function filterBySearchTerm(searchTerm, columns) {
|
|
9
|
+
return filter(function (_ref) {
|
|
10
|
+
var title = _ref.title;
|
|
11
|
+
return includes(trim(toLower(searchTerm)), trim(toLower(title)));
|
|
12
|
+
}, columns);
|
|
13
|
+
};
|
|
14
|
+
export var removeDeletedColumns = function removeDeletedColumns(hiddenColumns, columnData) {
|
|
15
|
+
return hiddenColumns.filter(function (hiddenColumn) {
|
|
16
|
+
return existsBy({
|
|
17
|
+
dataIndex: hiddenColumn
|
|
18
|
+
}, columnData);
|
|
19
|
+
});
|
|
20
|
+
};
|
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { Modal, Typography } from
|
|
3
|
-
import { Form, Input
|
|
4
|
-
import { type } from
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
var INITIAL_VALUES = {
|
|
9
|
-
confirmationText: ""
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
var deletionValidationSchema = function deletionValidationSchema(confirmationText) {
|
|
13
|
-
var errorMessage = t("neetoMolecules.confirmationModal.required", {
|
|
14
|
-
confirmationText: confirmationText
|
|
15
|
-
});
|
|
16
|
-
return yup.object({
|
|
17
|
-
confirmationText: yup.string().required(errorMessage).oneOf([confirmationText], errorMessage)
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Modal, Typography } from "@bigbinary/neetoui";
|
|
3
|
+
import { Button, Form, Input } from "@bigbinary/neetoui/formik";
|
|
4
|
+
import { type } from "ramda";
|
|
5
|
+
import { INITIAL_VALUES } from "./constants";
|
|
6
|
+
import { deletionValidationSchema } from "./utils";
|
|
21
7
|
var ConfirmationModal = function ConfirmationModal(_ref) {
|
|
22
8
|
var buttonLabel = _ref.buttonLabel,
|
|
23
9
|
confirmationText = _ref.confirmationText,
|
|
@@ -57,6 +43,4 @@ var ConfirmationModal = function ConfirmationModal(_ref) {
|
|
|
57
43
|
style: "danger"
|
|
58
44
|
}))));
|
|
59
45
|
};
|
|
60
|
-
|
|
61
|
-
export { ConfirmationModal as default };
|
|
62
|
-
//# sourceMappingURL=ConfirmationModal.js.map
|
|
46
|
+
export default ConfirmationModal;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { t } from "i18next";
|
|
2
|
+
import * as yup from "yup";
|
|
3
|
+
export var deletionValidationSchema = function deletionValidationSchema(confirmationText) {
|
|
4
|
+
var errorMessage = t("neetoMolecules.confirmationModal.required", {
|
|
5
|
+
confirmationText: confirmationText
|
|
6
|
+
});
|
|
7
|
+
return yup.object({
|
|
8
|
+
confirmationText: yup.string().required(errorMessage).oneOf([confirmationText], errorMessage)
|
|
9
|
+
});
|
|
10
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.neeto-molecules-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
justify-content: flex-start;
|
|
5
|
+
align-items: flex-start;
|
|
6
|
+
flex-grow: 1;
|
|
7
|
+
height: 100vh;
|
|
8
|
+
overflow-y: auto;
|
|
9
|
+
padding: 0 40px !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.neeto-molecules-container--header-fixed {
|
|
13
|
+
padding: 0 !important;
|
|
14
|
+
|
|
15
|
+
& > .neeto-molecules-header,
|
|
16
|
+
& > .neeto-molecules-subheader,
|
|
17
|
+
& > .neeto-molecules-scrollable {
|
|
18
|
+
padding-left: 40px !important;
|
|
19
|
+
padding-right: 40px !important;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { forwardRef } from "react";
|
|
2
|
+
import classnames from "classnames";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import "./container.scss";
|
|
5
|
+
var Container = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6
|
+
var _ref$isHeaderFixed = _ref.isHeaderFixed,
|
|
7
|
+
isHeaderFixed = _ref$isHeaderFixed === void 0 ? false : _ref$isHeaderFixed,
|
|
8
|
+
children = _ref.children;
|
|
9
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
10
|
+
ref: ref,
|
|
11
|
+
className: classnames("neeto-molecules-container", {
|
|
12
|
+
"neeto-molecules-container--header-fixed": isHeaderFixed
|
|
13
|
+
})
|
|
14
|
+
}, children);
|
|
15
|
+
});
|
|
16
|
+
Container.displayName = "Container";
|
|
17
|
+
Container.propTypes = {
|
|
18
|
+
/**
|
|
19
|
+
* Decides whether the `Header` component should be stickied at the top on scroll.
|
|
20
|
+
*/
|
|
21
|
+
isHeaderFixed: PropTypes.bool
|
|
22
|
+
};
|
|
23
|
+
export default Container;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var TIME_OUT = 2000;
|
|
2
|
+
var TOOLTIP_CONFIG = {
|
|
3
|
+
content: "Copied",
|
|
4
|
+
trigger: "click",
|
|
5
|
+
hideAfter: TIME_OUT,
|
|
6
|
+
position: "top"
|
|
7
|
+
};
|
|
8
|
+
var BUTTON_STYLES = {
|
|
9
|
+
primary: "primary",
|
|
10
|
+
secondary: "secondary",
|
|
11
|
+
text: "text"
|
|
12
|
+
};
|
|
13
|
+
export { TOOLTIP_CONFIG, TIME_OUT, BUTTON_STYLES };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
.neeto-molecules-copy-button {
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
.neeto-ui-btn {
|
|
6
|
+
&:hover, &:focus, &:active {
|
|
7
|
+
box-shadow: none;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.neeto-molecules-copy-button--active {
|
|
13
|
+
background: rgba(var(--neeto-ui-success-500));
|
|
14
|
+
color: white;
|
|
15
|
+
&.neeto-ui-btn {
|
|
16
|
+
&:hover, &:focus, &:active {
|
|
17
|
+
background: rgba(var(--neeto-ui-success-600));
|
|
18
|
+
color: white;
|
|
19
|
+
box-shadow: none;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|