@fernir2/saas-kit-cli 0.1.4 → 0.1.6
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/package.json +211 -7
- package/cli/.gitlab-ci.yml +0 -14
- package/cli/.husky/commit-msg +0 -1
- package/cli/.husky/pre-commit +0 -1
- package/cli/README.md +0 -101
- package/cli/bin/index.ts +0 -358
- package/cli/drizzle.config.ts +0 -12
- package/cli/global-setup.ts +0 -25
- package/cli/npm-commands/gen-meta/index.ts +0 -3
- package/cli/npm-commands/gen-schema/index.ts +0 -5
- package/cli/npm-commands/migrate-db/index.ts +0 -5
- package/cli/npm-commands/migrate-db/migrate-db.ts +0 -15
- package/cli/npm-commands/seed-db/index.ts +0 -5
- package/cli/npm-commands/seed-db/seed-db.ts +0 -15
- package/cli/playwright.config.ts +0 -34
- package/cli/postcss.config.mjs +0 -9
- package/cli/server.ts +0 -41
- package/cli/src/app/api/v1/[resourceName]/[id]/route.ts/route.ts +0 -11
- package/cli/src/app/api/v1/[resourceName]/route.ts/route.ts +0 -14
- package/cli/src/app/api/v1/[resourceName]/upsert/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/log/route.ts/route.ts +0 -7
- package/cli/src/app/api/v1/otheruser/[id]/route.ts/route.ts +0 -14
- package/cli/src/app/api/v1/otheruser/route.ts/route.ts +0 -7
- package/cli/src/app/api/v1/password/forgotpassword/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/password/resetpassword/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/payment/method/route.ts/route.ts +0 -4
- package/cli/src/app/api/v1/payment/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/payment/verify-fail/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/payment/verify-success/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/preload/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/searchable-resources/route.ts/route.ts +0 -11
- package/cli/src/app/api/v1/searchresult/route.ts/route.ts +0 -35
- package/cli/src/app/api/v1/sign-in/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/sign-out/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/sign-up/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/subscription/cancel/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/subscription/create/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/subscription/update/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/uimeta/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/uimetas/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/userpermission/route.ts/route.ts +0 -3
- package/cli/src/app/api/v1/visible-workspace/route.ts/route.ts +0 -5
- package/cli/src/app/api/v1/workspace/change/route.ts/route.ts +0 -5
- package/cli/src/app/favicon.ico +0 -0
- package/cli/src/app/layout.tsx +0 -42
- package/cli/src/app/page.tsx +0 -9
- package/cli/tailwind.config.ts +0 -13
- package/packages/base-repo/tools/git/commit-msg-script.ts +0 -42
- package/packages/base-repo/tools/git/pre-commit-script.ts +0 -431
- package/packages/level2/client/components/error-fallback/FdErrorFallback.jsx +0 -14
- package/packages/level2/client/components/feed/FdFeed.funcs.jsx +0 -65
- package/packages/level2/client/components/feed/FdFeed.jsx +0 -34
- package/packages/level2/client/components/feed/FdFeedActions.jsx +0 -15
- package/packages/level2/client/components/feed/FdFeedComments.jsx +0 -6
- package/packages/level2/client/components/feed/FdFeedEntry.jsx +0 -36
- package/packages/level2/client/components/feed/FdFeedHeader.jsx +0 -23
- package/packages/level2/client/components/feed/FdFeedReactionsSummary.jsx +0 -16
- package/packages/level2/client/components/providers/FdProviders.jsx +0 -28
- package/packages/level2/client/components/subscription-plan/FdSubscriptionPlan.jsx +0 -163
- package/packages/level2/client/components/wizard/FdWizard.jsx +0 -45
- package/packages/level2/client/components/wizard/FdWizardStepper.jsx +0 -55
- package/packages/level2/client/pages/dashboard-page/DashbordPage.jsx +0 -46
- package/packages/level2/client/pages/dynamic-layout-page/DynamicLayoutPage.jsx +0 -22
- package/packages/level2/client/pages/edit-password-page/EditPasswordPage.jsx +0 -8
- package/packages/level2/client/pages/edit-user-by-id-page/EditUserByIdPage.jsx +0 -14
- package/packages/level2/client/pages/edit-user-page/EditUserPage.jsx +0 -6
- package/packages/level2/client/pages/feed-page/FeedPage.jsx +0 -8
- package/packages/level2/client/pages/file-upload-page/FileUploadPage.jsx +0 -7
- package/packages/level2/client/pages/forgot-password-page/ForgotPasswordPage.jsx +0 -8
- package/packages/level2/client/pages/leads-viw-page/LeadsViewPage.jsx +0 -6
- package/packages/level2/client/pages/microsoft-page/MicrosoftPage.jsx +0 -16
- package/packages/level2/client/pages/payment-plan-page/PaymentPlanPage.jsx +0 -18
- package/packages/level2/client/pages/preload-page/PreloadPage.jsx +0 -25
- package/packages/level2/client/pages/reset-password-page/ResetPasswordPage.jsx +0 -8
- package/packages/level2/client/pages/screenshot-page/TestScreenshotPage.jsx +0 -23
- package/packages/level2/client/pages/sign-in-page/SignInPage.jsx +0 -24
- package/packages/level2/client/pages/sign-up-page/SignUpPage.jsx +0 -9
- package/packages/level2/client/pages/status-board-page/StatusBoardPage.jsx +0 -6
- package/packages/level2/client/pages/test-layout/TestLayout.jsx +0 -11
- package/packages/level2/client/pages/test-page/TestPage.jsx +0 -12
- package/packages/level2/client/pages/user-list-page/UserListPage.jsx +0 -4
- package/packages/level2/client/pages/view-page/ViewPage.jsx +0 -21
- package/packages/level2/client/payments/change-payment-method-field/ChangePaymentMethodField.jsx +0 -48
- package/packages/level2/client/payments/checkout-form/CheckoutForm.jsx +0 -95
- package/packages/level2/client/payments/checkout-form/CheckoutFormSubmit.jsx +0 -11
- package/packages/level2/client/payments/checkout-form/checkout-form-fields.jsx +0 -68
- package/packages/level2/client/website-scan/FdWebsiteScanResult.funcs.jsx +0 -12
- package/packages/level2/client/website-scan/FdWebsiteScanResult.jsx +0 -33
- package/packages/level2/client/website-scan/website-scan-data.jsx +0 -28
- package/packages/level2/client/website-scan/website-scan-icons/FacebookIcon.jsx +0 -6
- package/packages/level2/client/website-scan/website-scan-icons/FacebookPixelIcon.jsx +0 -49
- package/packages/level2/client/website-scan/website-scan-icons/GoogleAnalyticsIcon.jsx +0 -7
- package/packages/level2/client/website-scan/website-scan-icons/InstagramIcon.jsx +0 -32
- package/packages/level2/client/website-scan/website-scan-icons/LinkedinIcon.jsx +0 -6
- package/packages/level2/client/website-scan/website-scan-icons/OtherPlatformIcon.jsx +0 -110
- package/packages/level2/client/website-scan/website-scan-icons/ShopifyIcon.jsx +0 -46
- package/packages/level2/client/website-scan/website-scan-icons/SquarespaceIcon.jsx +0 -57
- package/packages/level2/client/website-scan/website-scan-icons/TiktokIcon.jsx +0 -15
- package/packages/level2/client/website-scan/website-scan-icons/WixIcon.jsx +0 -62
- package/packages/level2/client/website-scan/website-scan-icons/WordpressIcon.jsx +0 -53
- package/packages/level2/client/website-scan/website-scan-icons/XIcon.jsx +0 -6
- package/packages/level2/fd-app-toolbox/edit-other-user/EditOtherUser.jsx +0 -7
- package/packages/level2/fd-app-toolbox/edit-password-form/EditPasswordForm.jsx +0 -68
- package/packages/level2/fd-app-toolbox/edit-user-form/EditUserForm.jsx +0 -122
- package/packages/level2/fd-app-toolbox/edit-user-sheet/EditUserSheet.jsx +0 -35
- package/packages/level2/fd-app-toolbox/forgot-password-form/ForgotPasswordForm.jsx +0 -87
- package/packages/level2/fd-app-toolbox/layout/client-layout/ClientLayout.jsx +0 -19
- package/packages/level2/fd-app-toolbox/layout/client-root/ClientRoot.jsx +0 -32
- package/packages/level2/fd-app-toolbox/layout/hamburger-menu/FdHamburgerMenu.jsx +0 -47
- package/packages/level2/fd-app-toolbox/layout/navbar/FdNarrowNavbar.jsx +0 -40
- package/packages/level2/fd-app-toolbox/layout/sidebar/FdSidebar.jsx +0 -48
- package/packages/level2/fd-app-toolbox/layout/sidebar/sidebar-dropdown-menu/FdDropdownMenuItemTitle.jsx +0 -12
- package/packages/level2/fd-app-toolbox/layout/sidebar/sidebar-dropdown-menu/FdSidebarDropdownMenu.jsx +0 -81
- package/packages/level2/fd-app-toolbox/layout/sidebar/sidebar-resources-provider.jsx +0 -30
- package/packages/level2/fd-app-toolbox/layout/toolbar/FdToolbar.jsx +0 -89
- package/packages/level2/fd-app-toolbox/layout/toolbar/FdTopNav.jsx +0 -42
- package/packages/level2/fd-app-toolbox/layout/toolbar/title-provider/ToolbarTitleProvider.jsx +0 -10
- package/packages/level2/fd-app-toolbox/login-form/LoginForm.jsx +0 -165
- package/packages/level2/fd-app-toolbox/menu/notifications-menu/FdNotificationMenu.jsx +0 -43
- package/packages/level2/fd-app-toolbox/menu/notifications-menu/notification-list/FdNotificationList.jsx +0 -53
- package/packages/level2/fd-app-toolbox/menu/top-menu/FdTopMenu.jsx +0 -28
- package/packages/level2/fd-app-toolbox/menu/top-menu/top-menu-group/FdTopMenuGroup.jsx +0 -35
- package/packages/level2/fd-app-toolbox/menu/top-menu/top-menu-item/FdTopMenuItem.jsx +0 -47
- package/packages/level2/fd-app-toolbox/menu/user-dropdown-menu/FdUserDropdownMenu.jsx +0 -122
- package/packages/level2/fd-app-toolbox/menu/user-dropdown-menu/user-dropdown-menu-item/FdUserDropdownMenuItem.jsx +0 -56
- package/packages/level2/fd-app-toolbox/menu/visible-workspace-picker/FdVisibleWorkspacePicker.jsx +0 -36
- package/packages/level2/fd-app-toolbox/menu/workspace-picker/FdWorkspacePicker.jsx +0 -47
- package/packages/level2/fd-app-toolbox/providers/ThemeProvider/ThemeProvider.jsx +0 -27
- package/packages/level2/fd-app-toolbox/providers/auth-provider/AuthProvider.jsx +0 -38
- package/packages/level2/fd-app-toolbox/providers/sidebar-provider/FdSidebarContext.jsx +0 -17
- package/packages/level2/fd-app-toolbox/register-form/RegisterForm.jsx +0 -119
- package/packages/level2/fd-app-toolbox/report/FdChart.jsx +0 -120
- package/packages/level2/fd-app-toolbox/report/ReportChart.jsx +0 -29
- package/packages/level2/fd-app-toolbox/reset-password-form/ResetPasswordForm.jsx +0 -81
- package/packages/level2/fd-app-toolbox/search/FdSearch.jsx +0 -56
- package/packages/level2/fd-app-toolbox/search/search-dialog/FdSearchDialog.jsx +0 -72
- package/packages/level2/fd-app-toolbox/search/search-dialog-provider.jsx +0 -16
- package/packages/level2/fd-app-toolbox/search/search-input/FdSearchInput.jsx +0 -49
- package/packages/level2/fd-app-toolbox/search/search-resource-results/FdSearchResourcesResults.jsx +0 -36
- package/packages/level2/fd-app-toolbox/search/search-result/FdSearchResult.jsx +0 -46
- package/packages/level2/fd-app-toolbox/search/search-searchable-resource-results/FdSearchSearchableResourceResult.jsx +0 -43
- package/packages/level2/fd-app-toolbox/search/search-searchable-resource-results/FdSearchSearchableResourceResults.jsx +0 -22
- package/packages/level2/fd-app-toolbox/server/layout/private-layout/PrivateLayout.jsx +0 -32
- package/packages/level2/fd-app-toolbox/status-board/FdStatusBoard.jsx +0 -49
- package/packages/level2/fd-app-toolbox/status-board/status-board-item/FdStatusBoardItem.jsx +0 -17
- package/packages/level2/fd-app-toolbox/status-board/status-board-status/FdStatusBoardStatus.jsx +0 -27
- package/packages/level2/fd-app-toolbox/user-list/UserList.jsx +0 -58
- package/packages/level2/fd-component-toolbox/animation/FdLabelAnimation.jsx +0 -55
- package/packages/level2/fd-component-toolbox/avatar/FdAvatar.jsx +0 -50
- package/packages/level2/fd-component-toolbox/back-button/FdBackButton.jsx +0 -21
- package/packages/level2/fd-component-toolbox/badge/FdBadge.jsx +0 -19
- package/packages/level2/fd-component-toolbox/badge-toggle-list/FdBadgeToggleList.jsx +0 -47
- package/packages/level2/fd-component-toolbox/button/FdButton.jsx +0 -64
- package/packages/level2/fd-component-toolbox/calendar/FdCalendar.jsx +0 -68
- package/packages/level2/fd-component-toolbox/card/FdCard.jsx +0 -56
- package/packages/level2/fd-component-toolbox/card/FdCardBigDigits.jsx +0 -25
- package/packages/level2/fd-component-toolbox/chart/FdChart.jsx +0 -269
- package/packages/level2/fd-component-toolbox/checkbox/FdCheckbox.jsx +0 -39
- package/packages/level2/fd-component-toolbox/command/FdCommand.jsx +0 -123
- package/packages/level2/fd-component-toolbox/datepicker/FdDatePicker.jsx +0 -155
- package/packages/level2/fd-component-toolbox/dialog/FdDialog.jsx +0 -106
- package/packages/level2/fd-component-toolbox/dialog/YesOrNoDialog.jsx +0 -57
- package/packages/level2/fd-component-toolbox/drag-and-drop/FdDragDropContext.jsx +0 -19
- package/packages/level2/fd-component-toolbox/drag-and-drop/FdDraggable.jsx +0 -27
- package/packages/level2/fd-component-toolbox/drag-and-drop/FdDroppable.jsx +0 -22
- package/packages/level2/fd-component-toolbox/dropdown-menu/FdDropdownMenu.jsx +0 -198
- package/packages/level2/fd-component-toolbox/dynamic-layout/FdDynamicComponent.jsx +0 -27
- package/packages/level2/fd-component-toolbox/dynamic-layout/FdDynamicLayoutDragAndDrop.jsx +0 -78
- package/packages/level2/fd-component-toolbox/fade-out-text/FdFadeOutText.jsx +0 -52
- package/packages/level2/fd-component-toolbox/form/FdForm.jsx +0 -146
- package/packages/level2/fd-component-toolbox/icon/FdIcon.jsx +0 -192
- package/packages/level2/fd-component-toolbox/icon/custom-icons/FdFilterIcon.jsx +0 -11
- package/packages/level2/fd-component-toolbox/image/FdImage.jsx +0 -15
- package/packages/level2/fd-component-toolbox/input/FdInput.jsx +0 -94
- package/packages/level2/fd-component-toolbox/label/FdLabel.jsx +0 -19
- package/packages/level2/fd-component-toolbox/link/FdLink.jsx +0 -23
- package/packages/level2/fd-component-toolbox/list/FdList.jsx +0 -20
- package/packages/level2/fd-component-toolbox/list/list-item/FdListItem.jsx +0 -46
- package/packages/level2/fd-component-toolbox/loading/FdLoadingIndicator.jsx +0 -7
- package/packages/level2/fd-component-toolbox/logos/FacebookLogo.jsx +0 -11
- package/packages/level2/fd-component-toolbox/logos/GoogleLogo.jsx +0 -12
- package/packages/level2/fd-component-toolbox/logos/MicrosoftLogo.jsx +0 -11
- package/packages/level2/fd-component-toolbox/markdown/FdMarkdown.jsx +0 -105
- package/packages/level2/fd-component-toolbox/markdown/markdown-parser.jsx +0 -72
- package/packages/level2/fd-component-toolbox/multiselect/FdMultiselect.jsx +0 -240
- package/packages/level2/fd-component-toolbox/navigation/FdNavigation.jsx +0 -43
- package/packages/level2/fd-component-toolbox/navigation/navigation-item/FdNavigationItem.jsx +0 -23
- package/packages/level2/fd-component-toolbox/radio-group/FdRadioGroup.jsx +0 -46
- package/packages/level2/fd-component-toolbox/rich-text/FdRichText.jsx +0 -58
- package/packages/level2/fd-component-toolbox/save-status/FdSaveStatus.jsx +0 -40
- package/packages/level2/fd-component-toolbox/select/FdSelect.jsx +0 -173
- package/packages/level2/fd-component-toolbox/separator/FdSeparator.jsx +0 -19
- package/packages/level2/fd-component-toolbox/sheet/FdSheet.jsx +0 -121
- package/packages/level2/fd-component-toolbox/slide-toggle/FdSlideToggle.jsx +0 -57
- package/packages/level2/fd-component-toolbox/spinner/Spinner.jsx +0 -36
- package/packages/level2/fd-component-toolbox/subheading/FdSubHeading.jsx +0 -12
- package/packages/level2/fd-component-toolbox/switch/FdSwitch.jsx +0 -55
- package/packages/level2/fd-component-toolbox/tabs/FdTabs.jsx +0 -53
- package/packages/level2/fd-component-toolbox/textarea/FdTextArea.jsx +0 -42
- package/packages/level2/fd-component-toolbox/toaster/FdToaster.jsx +0 -20
- package/packages/level2/fd-component-toolbox/tooltip/FdTooltip.jsx +0 -80
- package/packages/level2/meta/browsers/base-multi-browser/FdBaseMultiBrowser.jsx +0 -72
- package/packages/level2/meta/browsers/base-multi-browser/base-multi-browser-dialog/FdBaseMultiBrowserDialog.jsx +0 -159
- package/packages/level2/meta/browsers/browser/FdBrowser.jsx +0 -58
- package/packages/level2/meta/browsers/browser/browser-dialog/FdBrowserDialog.jsx +0 -89
- package/packages/level2/meta/browsers/many-to-many-browser/FdManyToManyBrowser.jsx +0 -33
- package/packages/level2/meta/browsers/multi-browser/FdMultiBrowser.jsx +0 -32
- package/packages/level2/meta/card-list/FdCardList.jsx +0 -40
- package/packages/level2/meta/card-list/card/FdCard.jsx +0 -44
- package/packages/level2/meta/card-list/card/action-block/FdCardActionBlock.jsx +0 -70
- package/packages/level2/meta/card-list/card/content-block/FdCardContentBlock.jsx +0 -64
- package/packages/level2/meta/card-list/card/image-block/FdCardImage.jsx +0 -10
- package/packages/level2/meta/client/framework/hooks.jsx +0 -39
- package/packages/level2/meta/comment/FdComment.jsx +0 -16
- package/packages/level2/meta/comment/FdCommentList.jsx +0 -32
- package/packages/level2/meta/components/edit-image/FdEditImage.jsx +0 -42
- package/packages/level2/meta/components/edit-image/FdEditImageActionMenu.jsx +0 -31
- package/packages/level2/meta/components/edit-image/FdEditImageDropdownMenu.jsx +0 -42
- package/packages/level2/meta/components/file-upload/FileUpload.jsx +0 -103
- package/packages/level2/meta/components/file-upload/PreviewMedia.jsx +0 -36
- package/packages/level2/meta/components/multi-list/FdMultiList.jsx +0 -65
- package/packages/level2/meta/components/multi-list/FdMultiListEditResource.jsx +0 -31
- package/packages/level2/meta/edit-resource/FdEditResource.jsx +0 -135
- package/packages/level2/meta/edit-resource/FdEditResourceFormBody.jsx +0 -8
- package/packages/level2/meta/edit-resource/FdEditResourceHeader.jsx +0 -43
- package/packages/level2/meta/edit-resource/FdEditResourceSheet.jsx +0 -70
- package/packages/level2/meta/edit-resource/SaveCompleteProvider.jsx +0 -16
- package/packages/level2/meta/edit-resource/edit-link/FdEditLink.jsx +0 -48
- package/packages/level2/meta/edit-resource/edit-link/FdEditLinkResource.jsx +0 -18
- package/packages/level2/meta/edit-resource/edit-resource-dialog/FdEditResourceDialog.jsx +0 -34
- package/packages/level2/meta/edit-resource/edit-resource-property-block/FdEditResourceBlobField.jsx +0 -15
- package/packages/level2/meta/edit-resource/edit-resource-property-block/FdEditResourceEnumField.jsx +0 -35
- package/packages/level2/meta/edit-resource/edit-resource-property-block/FdEditResourceFlagsEnumField.jsx +0 -23
- package/packages/level2/meta/edit-resource/edit-resource-property-block/FdEditResourceImageField.jsx +0 -7
- package/packages/level2/meta/edit-resource/edit-resource-property-block/FdEditResourcePropertyBlock.jsx +0 -38
- package/packages/level2/meta/edit-resource/edit-resource-property-block/FdEditResourceRichTextField.jsx +0 -16
- package/packages/level2/meta/edit-resource/edit-resource-property-block/edit-resource-fields.jsx +0 -53
- package/packages/level2/meta/edit-resource/edit-resource-property-field/FdEditResourcePropertyField.jsx +0 -105
- package/packages/level2/meta/filtering/filter/FdEnumFlagFilter.jsx +0 -40
- package/packages/level2/meta/filtering/filter/FdFilter.jsx +0 -123
- package/packages/level2/meta/filtering/filter/filters/BooleanFilter.jsx +0 -25
- package/packages/level2/meta/filtering/filter/filters/DateFilter.jsx +0 -10
- package/packages/level2/meta/filtering/filter/filters/EnumFilter.jsx +0 -44
- package/packages/level2/meta/filtering/filter/filters/GuidFilter.jsx +0 -28
- package/packages/level2/meta/filtering/filter/filters/IntegerFilter.jsx +0 -28
- package/packages/level2/meta/filtering/filter/filters/TextFilter.jsx +0 -11
- package/packages/level2/meta/filtering/resource-filter-list/FdResourceFilterList.jsx +0 -120
- package/packages/level2/meta/filtering/resource-filter-list/resource-list-dropdown-menu/ResourceListDropdownMenu.funcs.jsx +0 -4
- package/packages/level2/meta/filtering/resource-filter-list/resource-list-dropdown-menu/ResourceListDropdownMenu.jsx +0 -43
- package/packages/level2/meta/providers/global-provider/FdGlobalContext.jsx +0 -17
- package/packages/level2/meta/resource-list/ResourceList.jsx +0 -63
- package/packages/level2/meta/resource-list/resource-add-button.jsx +0 -11
- package/packages/level2/meta/resource-list/resource-list-card/FdResourceListCard.jsx +0 -7
- package/packages/level2/meta/resource-list/resource-list-filter/FdResourceListFilter.jsx +0 -11
- package/packages/level2/meta/resource-list/resource-table-list/FdResourceTableList.jsx +0 -14
- package/packages/level2/meta/table/FdTable.jsx +0 -147
- package/packages/level2/meta/table/body/FdTableBody.jsx +0 -9
- package/packages/level2/meta/table/body-cell/FdActionBodyCell.jsx +0 -145
- package/packages/level2/meta/table/body-cell/FdBlobBodyCell.jsx +0 -27
- package/packages/level2/meta/table/body-cell/FdBodyCell.jsx +0 -133
- package/packages/level2/meta/table/body-cell/FdBodyCellValue.jsx +0 -59
- package/packages/level2/meta/table/body-cell/FdBodyExpandCell.jsx +0 -6
- package/packages/level2/meta/table/body-cell/FdBodyExpandPropertyCell.jsx +0 -22
- package/packages/level2/meta/table/body-cell/FdCustomActionLink.jsx +0 -16
- package/packages/level2/meta/table/body-cell/FdMultiselectCellTemplate.jsx +0 -39
- package/packages/level2/meta/table/body-cell/FdViewCell.jsx +0 -12
- package/packages/level2/meta/table/body-row/FdTableBodyRow.jsx +0 -49
- package/packages/level2/meta/table/header/FdTableHeader.jsx +0 -54
- package/packages/level2/meta/table/header-cell/FdResizable.jsx +0 -18
- package/packages/level2/meta/table/header-cell/FdResizableEdgeHandle.jsx +0 -4
- package/packages/level2/meta/table/header-cell/FdTableHeaderActionCell.jsx +0 -49
- package/packages/level2/meta/table/header-cell/FdTableHeaderCell.jsx +0 -89
- package/packages/level2/meta/table/header-cell/FdTableHeaderCellActionButton.jsx +0 -23
- package/packages/level2/meta/table/pager/FdPager.jsx +0 -72
- package/packages/level2/meta/table/table-custom-action/TableCustomAction.jsx +0 -26
- package/packages/level2/meta/view/FdView.jsx +0 -31
- package/packages/level2/meta/view/FdViewSheet.jsx +0 -103
- package/packages/level2/meta/view/view-resource/FdViewResource.jsx +0 -108
- package/packages/level2/meta/view/view-resource/templates/ManyToOneTableHeaderCellTemplate.jsx +0 -13
- package/src/app/error.jsx +0 -5
- package/src/app/global-error.jsx +0 -5
- package/src/app/loading.jsx +0 -11
- package/src/hd/footer/HdFooter.jsx +0 -27
- package/src/hd/footer/hd-footer-item/HdFooterItem.jsx +0 -14
- package/src/lm/ai-scan/AiScanAction.jsx +0 -21
- package/src/lm/ai-scan/cell-templates/AiScanWebsiteResultCellTemplate.jsx +0 -31
- package/src/lm/components/LmCardReport.jsx +0 -12
- package/src/lm/configs/lm-list-configs.jsx +0 -72
- package/src/lm/google-place/action-dropdown/GooglePlaceActionDropdown.jsx +0 -42
- package/src/lm/google-place/actions/GooglePlaceSaveToGroupAction.jsx +0 -22
- package/src/lm/google-place/cell-templates/GooglePlaceBusinessInfoCellTemplate.jsx +0 -59
- package/src/lm/google-place/cell-templates/GooglePlaceEmailsCellTemplate.jsx +0 -34
- package/src/lm/google-place/cell-templates/GooglePlaceScanAction.jsx +0 -15
- package/src/lm/lead/action-dropdown/LeadActionDropdown.jsx +0 -39
- package/src/lm/lead/actions/move-to-group-action/LeadMoveToGroupAction.jsx +0 -28
- package/src/lm/lead/cell-templates/LeadBusinessInfoCellTemplate.jsx +0 -64
- package/src/lm/lead/cell-templates/LeadScanAction.jsx +0 -15
- package/src/lm/lead/lead-google-place/LeadGooglePlaceIndicator.jsx +0 -8
- package/src/lm/lead/lead-google-place/LeadGooglePlaceIndicators.jsx +0 -17
- package/src/lm/lead/lead-google-place/LeadGooglePlaceInfo.jsx +0 -15
- package/src/lm/lead/view/LeadsView.jsx +0 -8
- package/src/lm/pages/HomePage.jsx +0 -53
- package/types-output/tsconfig.tsbuildinfo +0 -1
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { cn } from "@fd-toolbox/lib/utils";
|
|
2
|
-
export function OtherPlatformIcon({ className }) {
|
|
3
|
-
return (<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 400 400" className={cn(className)}>
|
|
4
|
-
<path d="
|
|
5
|
-
M36.35 161.83
|
|
6
|
-
c-.65-.91-1.14-2.08-1.98-2.69
|
|
7
|
-
-10.25-7.45-20.56-14.79-30.83-22.2
|
|
8
|
-
-3.83-2.76-4.65-7.46-1.94-11.23
|
|
9
|
-
.78-1.08 1.94-1.89 3.02-2.67
|
|
10
|
-
43.2-31.05 86.4-62.08 129.61-93.12
|
|
11
|
-
12.92-9.28 25.89-18.49 38.75-27.88
|
|
12
|
-
3.61-2.64 6.76-2.75 10.41-.1
|
|
13
|
-
20.58 14.89 41.24 29.65 61.88 44.46
|
|
14
|
-
30.02 21.54 60.04 43.08 90.05 64.64
|
|
15
|
-
5.98 4.29 11.98 8.54 17.86 12.99
|
|
16
|
-
4.56 3.45 4.45 9.52-.19 12.9
|
|
17
|
-
-10.37 7.55-20.82 14.98-31.19 22.52
|
|
18
|
-
-.71.52-1.08 1.57-1.61 2.38
|
|
19
|
-
-3.35-.35-5.24 2.56-7.63 4.18
|
|
20
|
-
-6.51 4.4-12.8 9.2-19.2 13.79
|
|
21
|
-
-6.08 4.36-12.22 8.64-18.29 13.01
|
|
22
|
-
-7.8 5.62-15.55 11.32-23.36 16.93
|
|
23
|
-
-7.49 5.38-15.04 10.65-22.53 16.03
|
|
24
|
-
-7.81 5.61-15.56 11.3-23.35 16.94
|
|
25
|
-
-7.34 5.31-14.7 10.61-22.05 15.91
|
|
26
|
-
-2.73 1.97-5.66 3.49-8.77 1.34
|
|
27
|
-
-8.22-5.69-16.35-11.53-24.48-17.37
|
|
28
|
-
-7.49-5.38-14.91-10.87-22.39-16.24
|
|
29
|
-
-9.15-6.57-18.37-13.04-27.52-19.62
|
|
30
|
-
-8.89-6.39-17.72-12.89-26.61-19.3
|
|
31
|
-
-11.06-7.98-22.12-15.95-33.23-23.82
|
|
32
|
-
-1.28-.91-2.93-1.19-4.41-1.77
|
|
33
|
-
" style={{ fill: "#4295fe", strokeWidth: 0 }}/>
|
|
34
|
-
<path d="
|
|
35
|
-
M320.23 223.31
|
|
36
|
-
c7.86 5.58 15.73 11.15 23.58 16.75
|
|
37
|
-
3.09 2.2 6.2 4.39 9.23 6.69
|
|
38
|
-
4.6 3.49 4.76 9.5.1 12.91
|
|
39
|
-
-13.87 10.15-27.84 20.13-41.79 30.15
|
|
40
|
-
-30.98 22.27-61.96 44.52-92.94 66.77
|
|
41
|
-
-11.63 8.35-23.27 16.7-34.92 25.03
|
|
42
|
-
-4.38 3.13-6.12 3.09-10.54-.08
|
|
43
|
-
-46.27-33.23-92.54-66.45-138.82-99.67
|
|
44
|
-
-9.83-7.06-19.67-14.12-29.51-21.17
|
|
45
|
-
-2.46-1.76-4.87-3.77-4.45-7.28
|
|
46
|
-
.24-2.06 1.03-4.77 2.45-5.83
|
|
47
|
-
11.18-8.31 22.57-16.3 33.9-24.39
|
|
48
|
-
1.19.47 2.5.71 3.53 1.44
|
|
49
|
-
4.87 3.42 9.64 7.01 14.48 10.47
|
|
50
|
-
7.57 5.42 15.19 10.76 22.75 16.18
|
|
51
|
-
4.97 3.56 9.86 7.25 14.82 10.81
|
|
52
|
-
7.63 5.47 15.3 10.87 22.93 16.34
|
|
53
|
-
4.9 3.52 9.74 7.15 14.64 10.65
|
|
54
|
-
8.91 6.37 17.87 12.66 26.78 19.02
|
|
55
|
-
6.18 4.41 12.29 8.96 18.5 13.32
|
|
56
|
-
2.17 1.52 4.58 1.43 6.76-.11
|
|
57
|
-
5.86-4.14 11.66-8.36 17.5-12.52
|
|
58
|
-
7.83-5.58 15.69-11.12 23.5-16.73
|
|
59
|
-
7.49-5.38 14.91-10.86 22.4-16.24
|
|
60
|
-
7.81-5.61 15.69-11.12 23.5-16.73
|
|
61
|
-
7.49-5.38 14.92-10.85 22.4-16.25
|
|
62
|
-
8.18-5.91 16.35-11.83 24.6-17.63
|
|
63
|
-
1.35-.95 3.07-1.28 4.62-1.9
|
|
64
|
-
" style={{ strokeWidth: 0, fill: "#2b46ec" }}/>
|
|
65
|
-
<path d="
|
|
66
|
-
M320.23 223.31
|
|
67
|
-
c-1.55.62-3.27.95-4.62 1.9
|
|
68
|
-
-8.25 5.8-16.42 11.72-24.6 17.63
|
|
69
|
-
-7.48 5.4-14.91 10.87-22.4 16.25
|
|
70
|
-
-7.81 5.61-15.68 11.12-23.5 16.73
|
|
71
|
-
-7.49 5.38-14.92 10.86-22.4 16.24
|
|
72
|
-
-7.81 5.61-15.67 11.15-23.5 16.73
|
|
73
|
-
-5.84 4.17-11.64 8.38-17.5 12.52
|
|
74
|
-
-2.19 1.54-4.6 1.64-6.76.11
|
|
75
|
-
-6.21-4.36-12.32-8.91-18.5-13.32
|
|
76
|
-
-8.91-6.36-17.87-12.66-26.78-19.02
|
|
77
|
-
-4.91-3.51-9.74-7.14-14.64-10.65
|
|
78
|
-
-7.63-5.47-15.3-10.87-22.93-16.34
|
|
79
|
-
-4.97-3.56-9.86-7.25-14.82-10.81
|
|
80
|
-
-7.57-5.42-15.18-10.77-22.75-16.18
|
|
81
|
-
-4.84-3.46-9.61-7.05-14.48-10.47
|
|
82
|
-
-1.03-.72-2.35-.97-3.53-1.44
|
|
83
|
-
-.43-.69-.71-1.6-1.3-2.02
|
|
84
|
-
-10.13-7.32-20.29-14.58-30.44-21.87
|
|
85
|
-
-1.08-.78-2.23-1.58-3.06-2.63
|
|
86
|
-
-2.76-3.54-2.18-8.43 1.47-11.09
|
|
87
|
-
9.51-6.96 19.1-13.8 28.67-20.67
|
|
88
|
-
1.47-1.06 2.99-2.04 4.48-3.06
|
|
89
|
-
1.48.57 3.14.86 4.42 1.77
|
|
90
|
-
11.12 7.88 22.18 15.85 33.23 23.82
|
|
91
|
-
8.88 6.41 17.71 12.9 26.61 19.3
|
|
92
|
-
9.15 6.58 18.37 13.05 27.52 19.62
|
|
93
|
-
7.49 5.38 14.91 10.86 22.39 16.24
|
|
94
|
-
8.13 5.84 16.26 11.68 24.48 17.37
|
|
95
|
-
3.11 2.15 6.04.63 8.77-1.34
|
|
96
|
-
7.35-5.3 14.71-10.59 22.05-15.91
|
|
97
|
-
7.79-5.64 15.55-11.33 23.35-16.94
|
|
98
|
-
7.49-5.38 15.04-10.65 22.53-16.03
|
|
99
|
-
7.81-5.61 15.56-11.31 23.36-16.93
|
|
100
|
-
6.08-4.37 12.21-8.65 18.29-13.01
|
|
101
|
-
6.4-4.59 12.69-9.39 19.2-13.79
|
|
102
|
-
2.39-1.61 4.28-4.52 7.63-4.18
|
|
103
|
-
8.55 6.08 17.11 12.16 25.66 18.25
|
|
104
|
-
2.51 1.79 5.03 3.55 7.45 5.47
|
|
105
|
-
4.27 3.38 4.33 9.33-.07 12.57
|
|
106
|
-
-10.44 7.69-21 15.18-31.47 22.82
|
|
107
|
-
-.69.5-1.03 1.57-1.53 2.37
|
|
108
|
-
" style={{ fill: "#376cfa", strokeWidth: 0 }}/>
|
|
109
|
-
</svg>);
|
|
110
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { cn } from "@fd-toolbox/lib/utils";
|
|
2
|
-
export function ShopifyIcon({ className }) {
|
|
3
|
-
return (<svg viewBox="-18 0 292 292" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid" fill="#000000" className={cn(className)}>
|
|
4
|
-
<g id="SVGRepo_bgCarrier" strokeWidth="0"></g>
|
|
5
|
-
<g id="SVGRepo_tracerCarrier" strokeLinecap="round" strokeLinejoin="round"></g>
|
|
6
|
-
<g id="SVGRepo_iconCarrier">
|
|
7
|
-
<path d="
|
|
8
|
-
M223.774 57.34
|
|
9
|
-
c-.201-1.46-1.48-2.268-2.537-2.357
|
|
10
|
-
-1.055-.088-23.383-1.743-23.383-1.743
|
|
11
|
-
s-15.507-15.395-17.209-17.099
|
|
12
|
-
c-1.703-1.703-5.029-1.185-6.32-.805
|
|
13
|
-
-.19.056-3.388 1.043-8.678 2.68
|
|
14
|
-
-5.18-14.906-14.322-28.604-30.405-28.604
|
|
15
|
-
-.444 0-.901.018-1.358.044
|
|
16
|
-
C129.31 3.407 123.644.779 118.75.779
|
|
17
|
-
c-37.465 0-55.364 46.835-60.976 70.635
|
|
18
|
-
-14.558 4.511-24.9 7.718-26.221 8.133
|
|
19
|
-
-8.126 2.549-8.383 2.805-9.45 10.462
|
|
20
|
-
C21.3 95.806.038 260.235.038 260.235
|
|
21
|
-
l165.678 31.042 89.77-19.42
|
|
22
|
-
S223.973 58.8 223.775 57.34
|
|
23
|
-
|
|
24
|
-
M156.49 40.848
|
|
25
|
-
l-14.019 4.339
|
|
26
|
-
c.005-.988.01-1.96.01-3.023
|
|
27
|
-
0-9.264-1.286-16.723-3.349-22.636
|
|
28
|
-
8.287 1.04 13.806 10.469 17.358 21.32
|
|
29
|
-
|
|
30
|
-
m-27.638-19.483
|
|
31
|
-
c2.304 5.773 3.802 14.058 3.802 25.238
|
|
32
|
-
0 .572-.005 1.095-.01 1.624
|
|
33
|
-
-9.117 2.824-19.024 5.89-28.953 8.966
|
|
34
|
-
5.575-21.516 16.025-31.908 25.161-35.828
|
|
35
|
-
|
|
36
|
-
m-11.131-10.537
|
|
37
|
-
c1.617 0 3.246.549 4.805 1.622
|
|
38
|
-
-12.007 5.65-24.877 19.88-30.312 48.297
|
|
39
|
-
l-22.886 7.088
|
|
40
|
-
C75.694 46.16 90.81 10.828 117.72 10.828
|
|
41
|
-
" fill="#95BF46"></path>
|
|
42
|
-
<path d="M221.237 54.983c-1.055-.088-23.383-1.743-23.383-1.743s-15.507-15.395-17.209-17.099c-.637-.634-1.496-.959-2.394-1.099l-12.527 256.233 89.762-19.418S223.972 58.8 223.774 57.34c-.201-1.46-1.48-2.268-2.537-2.357" fill="#5E8E3E"></path>
|
|
43
|
-
<path d="M135.242 104.585l-11.069 32.926s-9.698-5.176-21.586-5.176c-17.428 0-18.305 10.937-18.305 13.693 0 15.038 39.2 20.8 39.2 56.024 0 27.713-17.577 45.558-41.277 45.558-28.44 0-42.984-17.7-42.984-17.7l7.615-25.16s14.95 12.835 27.565 12.835c8.243 0 11.596-6.49 11.596-11.232 0-19.616-32.16-20.491-32.16-52.724 0-27.129 19.472-53.382 58.778-53.382 15.145 0 22.627 4.338 22.627 4.338" fill="#FFF"></path>
|
|
44
|
-
</g>
|
|
45
|
-
</svg>);
|
|
46
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { cn } from "@fd-toolbox/lib/utils";
|
|
2
|
-
export function SquarespaceIcon({ className }) {
|
|
3
|
-
return (<svg viewBox="0 -26 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid" fill="#000000" className={cn(className)}>
|
|
4
|
-
<g id="SVGRepo_bgCarrier" strokeWidth="0"></g>
|
|
5
|
-
<g id="SVGRepo_tracerCarrier" strokeLinecap="round" strokeLinejoin="round"></g>
|
|
6
|
-
<g id="SVGRepo_iconCarrier">
|
|
7
|
-
<g>
|
|
8
|
-
<path d="
|
|
9
|
-
M162.931025,40.6692367
|
|
10
|
-
C158.108009,35.8462208 150.287249,35.8462208 145.466793,40.6692367
|
|
11
|
-
L66.8700656,119.268524
|
|
12
|
-
C57.2189139,128.911995 41.5825121,128.911995 31.9390403,119.268524
|
|
13
|
-
C22.2853286,109.622492 22.2853286,93.9835301 31.9390403,84.3323783
|
|
14
|
-
L109.022815,7.24860376
|
|
15
|
-
C99.3767831,-2.399988 83.7352613,-2.399988 74.0892296,7.24860376
|
|
16
|
-
L14.4671277,66.8681457
|
|
17
|
-
C-4.82237589,86.1627692 -4.82237589,117.438133 14.4671277,136.735316
|
|
18
|
-
C33.7617512,156.02994 65.0371148,156.02994 84.3317383,136.735316
|
|
19
|
-
L162.931025,58.1360293
|
|
20
|
-
C167.751481,53.3130134 167.751481,45.4922525 162.931025,40.6692367
|
|
21
|
-
|
|
22
|
-
M189.129934,14.4728876
|
|
23
|
-
C169.835311,-4.82429588 138.559947,-4.82429588 119.265324,14.4728876
|
|
24
|
-
L40.6685967,93.0670547
|
|
25
|
-
C35.8481408,97.8875106 35.8481408,105.713391 40.6685967,110.533847
|
|
26
|
-
C45.4916125,115.356863 53.3098135,115.356863 58.1328293,110.533847
|
|
27
|
-
L136.734676,31.9396803
|
|
28
|
-
C146.380708,22.2910885 162.01711,22.2910885 171.660582,31.9396803
|
|
29
|
-
C176.488718,36.7601362 184.306918,36.7601362 189.129934,31.9396803
|
|
30
|
-
C193.95295,27.1115444 193.95295,19.2959035 189.129934,14.4728876
|
|
31
|
-
M215.331403,93.0670547
|
|
32
|
-
C210.508387,88.2491588 202.685067,88.2491588 197.862051,93.0670547
|
|
33
|
-
L119.265324,171.663782
|
|
34
|
-
C109.619292,181.309813 93.9777701,181.309813 84.3317383,171.663782
|
|
35
|
-
C79.5112824,166.843326 71.6930815,166.843326 66.8700656,171.663782
|
|
36
|
-
C62.0393698,176.489358 62.0393698,184.310118 66.8700656,189.128014
|
|
37
|
-
C86.1570092,208.422638 117.440053,208.422638 136.734676,189.128014
|
|
38
|
-
L215.331403,110.533847
|
|
39
|
-
C220.151859,105.713391 220.151859,97.8875106 215.331403,93.0670547
|
|
40
|
-
|
|
41
|
-
M241.532872,66.8707056
|
|
42
|
-
C222.238249,47.5786421 190.957765,47.5786421 171.668262,66.8707056
|
|
43
|
-
L93.0664147,145.469993
|
|
44
|
-
C88.2433988,150.287889 88.2433988,158.113769 93.0664147,162.934225
|
|
45
|
-
C97.8919905,167.759801 105.712751,167.759801 110.533207,162.934225
|
|
46
|
-
L189.129934,84.3374983
|
|
47
|
-
C198.773406,74.6889066 214.417488,74.6889066 224.06096,84.3374983
|
|
48
|
-
C233.706991,93.9835301 233.706991,109.622492 224.06096,119.268524
|
|
49
|
-
L146.977185,196.354858
|
|
50
|
-
C156.623217,205.99833 172.257059,205.99833 181.91077,196.354858
|
|
51
|
-
L241.532872,136.735316
|
|
52
|
-
C260.822376,117.438133 260.822376,86.1627692 241.532872,66.8707056
|
|
53
|
-
" fill="#1A1918"/>
|
|
54
|
-
</g>
|
|
55
|
-
</g>
|
|
56
|
-
</svg>);
|
|
57
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { cn } from "@fd-toolbox/lib/utils";
|
|
2
|
-
export function TiktokIcon({ className }) {
|
|
3
|
-
return (<svg width="100%" height="100%" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg" className={cn(className)}>
|
|
4
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M29.1224 20.67C30.73 21.8129 32.6552 22.4235 34.6277 22.4161V18.507C34.2399 18.508 33.8532 18.4665 33.4745 18.3832V21.4974C31.4976 21.5009 29.5696 20.8833 27.9627 19.7318V27.7715C27.9578 29.0908 27.596 30.3841 26.9157 31.5144C26.2353 32.6447 25.2618 33.5698 24.0983 34.1916C22.9348 34.8134 21.6247
|
|
5
|
-
35.1088 20.3069 35.0464C18.9891 34.984 17.7128 34.5661 16.6133 33.8371C17.6303 34.8661 18.9299 35.5702 20.3473 35.8602C21.7648 36.1502 23.2364 36.013 24.5758 35.4661C25.9153 34.9191 27.0623 33.987 27.8717 32.7878C28.681 31.5885 29.1163 30.176 29.1224 28.7292V20.67ZM30.5492 16.6827C29.7317 15.7966 29.23
|
|
6
|
-
14.6651 29.1224 13.4642V12.9561H28.0278C28.1631 13.7194 28.4575 14.4456 28.8919 15.0877C29.3263 15.7297 29.891 16.2732 30.5492 16.6827V16.6827ZM19.1477 30.7424C18.7683 30.2463 18.5358 29.6537 18.4767 29.032C18.4175 28.4103 18.5341 27.7845 18.8131 27.2257C19.0921 26.667 19.5224 26.1979 20.0549 25.8716C20.5875
|
|
7
|
-
25.5454 21.2009 25.3752 21.8254 25.3804C22.1702 25.3803 22.513 25.4331 22.8418 25.5368V21.4974C22.4574 21.4465 22.0697 21.4247 21.6821 21.4323V24.5726C20.8814 24.3195 20.0149 24.377 19.2547 24.7338C18.4946 25.0905 17.8966 25.7203 17.5797 26.4979C17.2627 27.2754 17.2501 28.1438 17.5442 28.9303C17.8384 29.7168 18.4178 30.3637 19.1672 30.7424H19.1477Z" fill="#EE1D52"/>
|
|
8
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M27.9613 19.7055C29.5682 20.857 31.4963 21.4746 33.4731 21.4711V18.3568C32.3468 18.1187 31.3236 17.533 30.5478 16.6825C29.8896 16.2729 29.325 15.7295 28.8906 15.0874C28.4562 14.4454 28.1618 13.7191 28.0265 12.9558H25.1468V28.729C25.1441 29.4271 24.9229 30.1069 24.5141 30.673C24.1053 31.239 23.5296
|
|
9
|
-
31.6627 22.8676 31.8848C22.2057 32.1069 21.4909 32.1161 20.8235 31.9112C20.156 31.7062 19.5696 31.2974 19.1463 30.7421C18.4756 30.4037 17.9385 29.8492 17.6216 29.1681C17.3047 28.4869 17.2265 27.7189 17.3997 26.9878C17.5728 26.2568 17.9872 25.6054 18.576 25.1388C19.1648 24.6722 19.8936 24.4175 20.6448
|
|
10
|
-
24.4159C20.9895 24.417 21.3321 24.4697 21.6612 24.5723V21.432C20.2393 21.4661 18.8583 21.9147 17.6878 22.7226C16.5173 23.5305 15.6081 24.6626 15.0719 25.9799C14.5357 27.2973 14.3958 28.7425 14.6693 30.1382C14.9429 31.534 15.6181 32.8194 16.6119 33.8368C17.7117 34.5711 18.99 34.9933 20.3108 35.0584C21.6315 35.1236 22.9452 34.8292 24.1118 34.2068C25.2785 33.5843 26.2545 32.6571 26.9359 31.5238C27.6172 30.3905 27.9784 29.0936 27.9809 27.7712L27.9613 19.7055Z" fill="black"/>
|
|
11
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M33.4736 18.3565V17.5161C32.4392 17.5205 31.4248 17.2313 30.5483 16.6821C31.3221 17.5352 32.3461 18.1213 33.4736 18.3565V18.3565ZM28.0269 12.9555C28.0269 12.8056 27.9813 12.6492 27.9618 12.4994V11.9912H23.9875V27.7709C23.9841 28.6545 23.6302 29.5006 23.0036 30.1235C22.377 30.7465 21.5288 31.0954 20.6452
|
|
12
|
-
31.0936C20.125 31.0962 19.6115 30.9757 19.1468 30.7418C19.57 31.2971 20.1565 31.7059 20.8239 31.9108C21.4913 32.1158 22.2062 32.1066 22.8681 31.8845C23.53 31.6624 24.1058 31.2386 24.5145 30.6726C24.9233 30.1066 25.1445 29.4268 25.1472 28.7286V12.9555H28.0269ZM21.6616 21.4252V20.5326C20.0262 20.3104 18.3638
|
|
13
|
-
20.6487 16.9453 21.4923C15.5268 22.3359 14.4359 23.6351 13.8502 25.1781C13.2646 26.7211 13.2189 28.4169 13.7205 29.9893C14.2221 31.5616 15.2414 32.9177 16.6124 33.8365C15.626 32.8167 14.9581 31.5318 14.6901 30.1386C14.4221 28.7454 14.5657 27.3043 15.1033 25.9914C15.6409 24.6785 16.5492 23.5506 17.7174 22.7455C18.8855 21.9403 20.2629 21.4929 21.6812 21.4577L21.6616 21.4252Z" fill="#69C9D0"/>
|
|
14
|
-
</svg>);
|
|
15
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { cn } from "@fd-toolbox/lib/utils";
|
|
2
|
-
export function WixIcon({ className }) {
|
|
3
|
-
return (<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="100%" height="100%" viewBox="0 0 32 32" className={cn(className)}>
|
|
4
|
-
<path d="
|
|
5
|
-
M22.050781 9.9492188
|
|
6
|
-
C21.525781 9.9242187 21.099609 10 21.099609 10
|
|
7
|
-
L25.099609 16
|
|
8
|
-
L21.099609 21.900391
|
|
9
|
-
C21.099609 21.900391 22.899219 22.200391 23.699219 21.400391
|
|
10
|
-
C24.199219 20.900391 24.499219 20.4 26.199219 18
|
|
11
|
-
C26.499219 17.5 26.800781 18 26.800781 18
|
|
12
|
-
C28.300781 20 28.700391 20.800391 29.400391 21.400391
|
|
13
|
-
C30.300391 22.100391 32 21.900391 32 21.900391
|
|
14
|
-
L28 16
|
|
15
|
-
L31.900391 10
|
|
16
|
-
C31.900391 10 30.200391 9.7 29.400391 10.5
|
|
17
|
-
C28.800391 11.1 28.200781 11.9 26.800781 14
|
|
18
|
-
C26.800781 14 26.499219 14.5 26.199219 14
|
|
19
|
-
C24.799219 12 24.199609 11.1 23.599609 10.5
|
|
20
|
-
C23.199609 10.1 22.575781 9.9742188 22.050781 9.9492188
|
|
21
|
-
|
|
22
|
-
M0.41992188 9.9902344
|
|
23
|
-
C0.27851562 9.9835938 0.1375 9.9875 0 10
|
|
24
|
-
L3.1992188 22
|
|
25
|
-
C3.1992187 22 4.1992187 22.000781 4.6992188 21.800781
|
|
26
|
-
C5.3992187 21.500781 5.6996094 21.199609 6.0996094 19.599609
|
|
27
|
-
C6.4996094 18.199609 7.4996094 13.899609 7.5996094 13.599609
|
|
28
|
-
C7.7996094 12.899609 8.1007813 12.899609 8.3007812 13.599609
|
|
29
|
-
C8.4007812 13.899609 9.4007812 18.099609 9.8007812 19.599609
|
|
30
|
-
C10.200781 21.199609 10.499219 21.500781 11.199219 21.800781
|
|
31
|
-
C11.799219 22.100781 12.800781 22 12.800781 22
|
|
32
|
-
L16 10
|
|
33
|
-
C14.9 9.9 13.6 10.499219 13.5 11.699219
|
|
34
|
-
L11.800781 18.099609
|
|
35
|
-
L10.400391 12.900391
|
|
36
|
-
C10.100391 11.400391 9.3996094 10.599609 8.0996094 10.599609
|
|
37
|
-
C6.7996094 10.599609 6.2007813 11.300391 5.8007812 12.900391
|
|
38
|
-
L4.4003906 18.099609
|
|
39
|
-
L2.6992188 11.699219
|
|
40
|
-
C2.4367187 10.561719 1.4097656 10.036719 0.41992188 9.9902344
|
|
41
|
-
|
|
42
|
-
M19.599609 10
|
|
43
|
-
C19.599609 10 18.800781 9.9992188 18.300781 10.199219
|
|
44
|
-
C17.700781 10.499219 17.5 11.099609 17.5 12.599609
|
|
45
|
-
C17.5 12.599609 17.800781 12.299609 18.300781 12.099609
|
|
46
|
-
C19.700781 11.599609 19.599609 10.6 19.599609 10
|
|
47
|
-
|
|
48
|
-
M19.5 12
|
|
49
|
-
L19.5 12.076172
|
|
50
|
-
C19.524326 12.032657 19.530125 12 19.5 12
|
|
51
|
-
|
|
52
|
-
M19.5 12.076172
|
|
53
|
-
C19.443576 12.177106 19.249766 12.36025 18.900391 12.5
|
|
54
|
-
C18.600391 12.7 18.3 12.800391 18 12.900391
|
|
55
|
-
C17.3 13.200391 17.400391 13.599609 17.400391 14.599609
|
|
56
|
-
L17.400391 22
|
|
57
|
-
C17.400391 22 18.199219 22.100781 18.699219 21.800781
|
|
58
|
-
C19.399219 21.500781 19.5 21.099609 19.5 19.599609
|
|
59
|
-
L19.5 12.076172
|
|
60
|
-
"/>
|
|
61
|
-
</svg>);
|
|
62
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { cn } from "@fd-toolbox/lib/utils";
|
|
2
|
-
export function WordpressIcon({ className }) {
|
|
3
|
-
return (<svg viewBox="-1.2 -1.2 26.40 26.40" xmlns="http://www.w3.org/2000/svg" fill="#000000" className={cn(className)}>
|
|
4
|
-
<g id="SVGRepo_bgCarrier" strokeWidth="0"></g>
|
|
5
|
-
<g id="SVGRepo_tracerCarrier" strokeLinecap="round" strokeLinejoin="round"></g>
|
|
6
|
-
<g id="SVGRepo_iconCarrier">
|
|
7
|
-
<path fill="#21759B" fillRule="evenodd" d="
|
|
8
|
-
M0,11.99925
|
|
9
|
-
C0,16.749 2.76,20.85375 6.76275,22.7985
|
|
10
|
-
L1.03875,7.116
|
|
11
|
-
C0.3735,8.60775 0,10.25925 0,11.99925
|
|
12
|
-
|
|
13
|
-
M20.10015,11.394
|
|
14
|
-
C20.10015,9.9105 19.5669,8.88375 19.1109,8.085
|
|
15
|
-
C18.50265,7.09575 17.9319,6.25875 17.9319,5.27025
|
|
16
|
-
C17.9319,4.167 18.76815,3.14025 19.94715,3.14025
|
|
17
|
-
C20.0004,3.14025 20.05065,3.147 20.1024,3.15
|
|
18
|
-
C17.9679,1.194 15.12315,0 11.9994,0
|
|
19
|
-
C7.8069,0 4.11915,2.151 1.9734,5.40825
|
|
20
|
-
C2.2554,5.41725 2.5209,5.4225 2.7459,5.4225
|
|
21
|
-
C4.00065,5.4225 5.9439,5.27025 5.9439,5.27025
|
|
22
|
-
C6.5904,5.232 6.6669,6.183 6.0204,6.25875
|
|
23
|
-
C6.0204,6.25875 5.37015,6.33525 4.64715,6.3735
|
|
24
|
-
L9.01665,19.371
|
|
25
|
-
L11.64315,11.49525
|
|
26
|
-
L9.77415,6.3735
|
|
27
|
-
C9.12765,6.33525 8.5149,6.25875 8.5149,6.25875
|
|
28
|
-
C7.8684,6.2205 7.94415,5.232 8.5914,5.27025
|
|
29
|
-
C8.5914,5.27025 10.5729,5.4225 11.7519,5.4225
|
|
30
|
-
C13.00665,5.4225 14.9499,5.27025 14.9499,5.27025
|
|
31
|
-
C15.59715,5.232 15.6729,6.183 15.0264,6.25875
|
|
32
|
-
C15.0264,6.25875 14.3754,6.33525 13.65315,6.3735
|
|
33
|
-
L17.98965,19.272
|
|
34
|
-
L19.1874,15.273
|
|
35
|
-
C19.7049,13.6125 20.10015,12.42075 20.10015,11.394
|
|
36
|
-
|
|
37
|
-
M12.21015,13.04895
|
|
38
|
-
L8.6094,23.5107
|
|
39
|
-
C9.6849,23.8272 10.8219,23.9997 11.9994,23.9997
|
|
40
|
-
C13.39665,23.9997 14.7369,23.7582 15.98415,23.31945
|
|
41
|
-
C15.95265,23.2677 15.92265,23.2137 15.89865,23.15445
|
|
42
|
-
L12.21015,13.04895
|
|
43
|
-
|
|
44
|
-
M22.52925,6.242475
|
|
45
|
-
C22.581,6.624975 22.61025,7.034475 22.61025,7.476225
|
|
46
|
-
C22.61025,8.693475 22.38225,10.062225 21.6975,11.774475
|
|
47
|
-
L18.03225,22.371225
|
|
48
|
-
C21.6,20.291475 23.99925,16.425975 23.99925,11.999475
|
|
49
|
-
C23.99925,9.912975 23.466,7.951725 22.52925,6.242475
|
|
50
|
-
"/>
|
|
51
|
-
</g>
|
|
52
|
-
</svg>);
|
|
53
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { cn } from "@fd-toolbox/lib/utils";
|
|
2
|
-
export function XIcon({ className }) {
|
|
3
|
-
return (<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="100%" height="100%" viewBox="0 0 50 50" className={cn(className)}>
|
|
4
|
-
<path d="M 11 4 C 7.134 4 4 7.134 4 11 L 4 39 C 4 42.866 7.134 46 11 46 L 39 46 C 42.866 46 46 42.866 46 39 L 46 11 C 46 7.134 42.866 4 39 4 L 11 4 z M 13.085938 13 L 21.023438 13 L 26.660156 21.009766 L 33.5 13 L 36 13 L 27.789062 22.613281 L 37.914062 37 L 29.978516 37 L 23.4375 27.707031 L 15.5 37 L 13 37 L 22.308594 26.103516 L 13.085938 13 z M 16.914062 15 L 31.021484 35 L 34.085938 35 L 19.978516 15 L 16.914062 15 z"></path>
|
|
5
|
-
</svg>);
|
|
6
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import React, { useCallback, useState } from "react";
|
|
3
|
-
import { useForm } from "react-hook-form";
|
|
4
|
-
import { useFdRouter } from "@meta/client/framework/hooks";
|
|
5
|
-
import { FdForm, FdFormControl, FdFormField, FdFormItem, FdFormMessage, } from "@fd-component-toolbox/form/FdForm";
|
|
6
|
-
import { FdLabel } from "@fd-component-toolbox/label/FdLabel";
|
|
7
|
-
import { FdInput } from "@fd-component-toolbox/input/FdInput";
|
|
8
|
-
import { FdButton } from "@fd-component-toolbox/button/FdButton";
|
|
9
|
-
import { FdIcon, iconNames } from "@fd-component-toolbox/icon/FdIcon";
|
|
10
|
-
import { editPasswordLabels } from "@fd-app-toolbox/passwords/edit-password-dto";
|
|
11
|
-
import { userRoutes } from "@fd-toolbox/constants/user-routes";
|
|
12
|
-
import { useSetTitle } from "@meta/page/use-set-title";
|
|
13
|
-
import { onEditPassword } from "@fd-app-toolbox/edit-password-form/EditPasswordForm.funcs";
|
|
14
|
-
const pageTitle = "Edit Password";
|
|
15
|
-
/**
|
|
16
|
-
* Change password form for authenticated users.
|
|
17
|
-
*/
|
|
18
|
-
function EditPasswordForm() {
|
|
19
|
-
const [hidePassword, setHidePassword] = useState(true);
|
|
20
|
-
useSetTitle(pageTitle);
|
|
21
|
-
const form = useForm({
|
|
22
|
-
mode: "onChange",
|
|
23
|
-
});
|
|
24
|
-
const { handleSubmit, formState: { isValid }, control, } = form;
|
|
25
|
-
const router = useFdRouter();
|
|
26
|
-
const onSubmit = useCallback((data) => onEditPassword(data, router), [router]);
|
|
27
|
-
const togglePasswordVisibility = useCallback(() => {
|
|
28
|
-
setHidePassword((prev) => !prev);
|
|
29
|
-
}, []);
|
|
30
|
-
const customIconFunc = useCallback(() => hidePassword ? (<FdIcon name={iconNames.visibilityOff} onClick={togglePasswordVisibility}/>) : (<FdIcon name={iconNames.visibility} onClick={togglePasswordVisibility}/>), [hidePassword, togglePasswordVisibility]);
|
|
31
|
-
return (<div className="flex size-full items-center justify-center py-12">
|
|
32
|
-
<div className="mx-auto grid w-80 gap-6">
|
|
33
|
-
<div className="grid gap-2 text-center">
|
|
34
|
-
<h1 className="text-3xl font-bold">Change Password</h1>
|
|
35
|
-
</div>
|
|
36
|
-
<FdForm {...form}>
|
|
37
|
-
<form onSubmit={handleSubmit(onSubmit)}>
|
|
38
|
-
<FdFormField control={control} name={userRoutes.currentPassword} render={({ field }) => (<FdFormItem>
|
|
39
|
-
<div className="w-full py-1">
|
|
40
|
-
<FdLabel>{editPasswordLabels.currentPassword}</FdLabel>
|
|
41
|
-
<FdFormControl>
|
|
42
|
-
<FdInput {...field} inputId="passwordInput" placeholder={editPasswordLabels.currentPassword} type={hidePassword ? "password" : "text"} showClearIcon={true}>
|
|
43
|
-
<FdButton variant="icon" size="icon" type="button" tabIndex={-1} className="w-6">
|
|
44
|
-
{customIconFunc()}
|
|
45
|
-
</FdButton>
|
|
46
|
-
</FdInput>
|
|
47
|
-
</FdFormControl>
|
|
48
|
-
<FdFormMessage />
|
|
49
|
-
</div>
|
|
50
|
-
</FdFormItem>)}/>
|
|
51
|
-
<FdFormField control={control} name={userRoutes.newPassword} render={({ field }) => (<FdFormItem>
|
|
52
|
-
<div className="w-full py-1">
|
|
53
|
-
<FdLabel>{editPasswordLabels.newPassword}</FdLabel>
|
|
54
|
-
<FdFormControl>
|
|
55
|
-
<FdInput {...field} inputId="editPasswordInput" placeholder={editPasswordLabels.newPassword} type={hidePassword ? "password" : "text"} showClearIcon={true}></FdInput>
|
|
56
|
-
</FdFormControl>
|
|
57
|
-
<FdFormMessage />
|
|
58
|
-
</div>
|
|
59
|
-
</FdFormItem>)}/>
|
|
60
|
-
<FdButton className="mr-4 mt-4 block w-full" id="editButton" disabled={!isValid} type="submit">
|
|
61
|
-
Change
|
|
62
|
-
</FdButton>
|
|
63
|
-
</form>
|
|
64
|
-
</FdForm>
|
|
65
|
-
</div>
|
|
66
|
-
</div>);
|
|
67
|
-
}
|
|
68
|
-
export default EditPasswordForm;
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useCallback, useMemo, useState } from "react";
|
|
3
|
-
import { useForm } from "react-hook-form";
|
|
4
|
-
import { zodResolver } from "@hookform/resolvers/zod";
|
|
5
|
-
import { getUserFormValidationSchema, getUserFormMode, getUserHandler, getUserFormDefaultFormValues, onUserFormUserSubmission, } from "@fd-app-toolbox/edit-user-form/EditUserForm.funcs";
|
|
6
|
-
import { FdInput } from "@fd-component-toolbox/input/FdInput";
|
|
7
|
-
import { FdButton } from "@fd-component-toolbox/button/FdButton";
|
|
8
|
-
import { FdForm, FdFormControl, FdFormField, FdFormItem, FdFormMessage, } from "@fd-component-toolbox/form/FdForm";
|
|
9
|
-
import { FdSwitch } from "@fd-component-toolbox/switch/FdSwitch";
|
|
10
|
-
import { userRoutes } from "@fd-toolbox/constants/user-routes";
|
|
11
|
-
import { useSetTitle } from "@meta/page/use-set-title";
|
|
12
|
-
import { resourceNames } from "@fd-toolbox/resources/resource-names";
|
|
13
|
-
import { FdIcon, iconNames } from "@fd-component-toolbox/icon/FdIcon";
|
|
14
|
-
import { FdSubHeading } from "@fd-component-toolbox/subheading/FdSubHeading";
|
|
15
|
-
import { userDisplayProps, userDtoProps } from "@fd-app-toolbox/user-dto";
|
|
16
|
-
const onRenderPasswordIcon = (field, hidePassword, hideRepeatPassword, togglePasswordVisibility) => {
|
|
17
|
-
const isHidden = field === "Password" ? hidePassword : hideRepeatPassword;
|
|
18
|
-
const icon = isHidden ? iconNames.eyeNoneIcon : iconNames.eyeOpenIcon;
|
|
19
|
-
return <FdIcon onClick={() => togglePasswordVisibility(field)} className="cursor-pointer" name={icon}/>;
|
|
20
|
-
};
|
|
21
|
-
const pageTitle = "Edit {0}";
|
|
22
|
-
function EditUserForm({ userData, onCancelClick }) {
|
|
23
|
-
const [hidePassword, setHidePassword] = useState(true);
|
|
24
|
-
const [hideRepeatPassword, setHideRepeatPassword] = useState(true);
|
|
25
|
-
useSetTitle(pageTitle.replace("{0}", userData?.firstName ?? resourceNames.user));
|
|
26
|
-
const mode = useMemo(() => getUserFormMode(userData?.id), [userData?.id]);
|
|
27
|
-
const form = useForm({
|
|
28
|
-
resolver: zodResolver(getUserFormValidationSchema(mode)),
|
|
29
|
-
mode: "onChange",
|
|
30
|
-
defaultValues: getUserFormDefaultFormValues(userData),
|
|
31
|
-
});
|
|
32
|
-
const { control, handleSubmit, formState: { isValid, errors }, } = form;
|
|
33
|
-
const userHandler = useMemo(() => getUserHandler(mode), [mode]);
|
|
34
|
-
const onSubmit = useCallback((updatedUserData) => onUserFormUserSubmission(userHandler, updatedUserData, userData), [userHandler, userData]);
|
|
35
|
-
const togglePasswordVisibility = useCallback((field) => {
|
|
36
|
-
if (field === "Password") {
|
|
37
|
-
setHidePassword((prev) => !prev);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
setHideRepeatPassword((prev) => !prev);
|
|
41
|
-
}
|
|
42
|
-
}, []);
|
|
43
|
-
const renderPasswordIcon = useCallback((field) => onRenderPasswordIcon(field, hidePassword, hideRepeatPassword, togglePasswordVisibility), [hidePassword, hideRepeatPassword, togglePasswordVisibility]);
|
|
44
|
-
const onCancel = useCallback(() => {
|
|
45
|
-
onCancelClick?.();
|
|
46
|
-
}, [onCancelClick]);
|
|
47
|
-
return (<div className="flex w-full flex-col items-center justify-center">
|
|
48
|
-
<FdForm {...form}>
|
|
49
|
-
<form className="mt-4 flex w-full flex-col" onSubmit={handleSubmit(onSubmit)}>
|
|
50
|
-
<FdSubHeading className="mb-10 text-lg text-foreground">User</FdSubHeading>
|
|
51
|
-
<div className="mb-5 flex justify-start gap-2">
|
|
52
|
-
<FdButton id="addButton" disabled={!isValid} type="submit">
|
|
53
|
-
Save
|
|
54
|
-
</FdButton>
|
|
55
|
-
<FdButton type="button" onClick={onCancel} id="cancelButton" variant="outline">
|
|
56
|
-
Cancel
|
|
57
|
-
</FdButton>
|
|
58
|
-
</div>
|
|
59
|
-
<div className="flex flex-col gap-3">
|
|
60
|
-
<div className="flex w-full flex-col gap-x-8 gap-y-2.5">
|
|
61
|
-
<FdFormField control={control} name={userDtoProps.firstName} render={({ field }) => (<FdFormItem>
|
|
62
|
-
<div className="w-full">
|
|
63
|
-
<FdFormControl>
|
|
64
|
-
<FdInput {...field} inputId="FirstNameInput" type="text" label={userDisplayProps.firstName} showClearIcon={true} aria-invalid={!!errors.firstName}/>
|
|
65
|
-
</FdFormControl>
|
|
66
|
-
<FdFormMessage />
|
|
67
|
-
</div>
|
|
68
|
-
</FdFormItem>)}/>
|
|
69
|
-
<FdFormField control={control} name={userRoutes.lastName} render={({ field }) => (<FdFormItem>
|
|
70
|
-
<div className="w-full">
|
|
71
|
-
<FdFormControl>
|
|
72
|
-
<FdInput {...field} inputId="LastNameInput" type="text" label={userDisplayProps.lastName} showClearIcon={true} aria-invalid={!!errors.lastName}/>
|
|
73
|
-
</FdFormControl>
|
|
74
|
-
<FdFormMessage />
|
|
75
|
-
</div>
|
|
76
|
-
</FdFormItem>)}/>
|
|
77
|
-
<FdFormField control={control} name={userRoutes.email} render={({ field }) => (<FdFormItem>
|
|
78
|
-
<div className="w-full">
|
|
79
|
-
<FdFormControl>
|
|
80
|
-
<FdInput {...field} value={field.value} inputId="EmailInput" label={userDisplayProps.email} showClearIcon={true} aria-invalid={!!errors.email}/>
|
|
81
|
-
</FdFormControl>
|
|
82
|
-
<FdFormMessage />
|
|
83
|
-
</div>
|
|
84
|
-
</FdFormItem>)}/>
|
|
85
|
-
</div>
|
|
86
|
-
<div className="flex w-full flex-col gap-x-8 gap-y-2.5">
|
|
87
|
-
<FdFormField control={control} name={userRoutes.password} render={({ field }) => (<FdFormItem>
|
|
88
|
-
<div className="w-full">
|
|
89
|
-
<FdFormControl>
|
|
90
|
-
<FdInput {...field} inputId="passwordInput" type={hidePassword ? "password" : "text"} label={userDisplayProps.password} showClearIcon={true} aria-invalid={!!errors.password}>
|
|
91
|
-
<FdButton variant="icon" size="icon" type="button" tabIndex={-1} className="w-6">
|
|
92
|
-
{renderPasswordIcon("Password")}
|
|
93
|
-
</FdButton>
|
|
94
|
-
</FdInput>
|
|
95
|
-
</FdFormControl>
|
|
96
|
-
<FdFormMessage />
|
|
97
|
-
</div>
|
|
98
|
-
</FdFormItem>)}/>
|
|
99
|
-
<FdFormField control={control} name={userRoutes.repeatPassword} render={({ field }) => (<FdFormItem>
|
|
100
|
-
<div className="w-full">
|
|
101
|
-
<FdFormControl>
|
|
102
|
-
<FdInput {...field} inputId="repeatPasswordInput" type={hideRepeatPassword ? "password" : "text"} label={userDisplayProps.repeatPassword} showClearIcon={true} aria-invalid={!!errors.repeatPassword}>
|
|
103
|
-
<FdButton variant="icon" size="icon" type="button" tabIndex={-1} className="w-6">
|
|
104
|
-
{renderPasswordIcon("RepeatPassword")}
|
|
105
|
-
</FdButton>
|
|
106
|
-
</FdInput>
|
|
107
|
-
</FdFormControl>
|
|
108
|
-
<FdFormMessage />
|
|
109
|
-
</div>
|
|
110
|
-
</FdFormItem>)}/>
|
|
111
|
-
</div>
|
|
112
|
-
</div>
|
|
113
|
-
<FdFormField control={control} name={userRoutes.isDisabled} render={({ field }) => (<FdFormItem>
|
|
114
|
-
<div className="w-full">
|
|
115
|
-
<FdSwitch text={userDisplayProps.isDisabled} onCheckedChange={field.onChange} name={field.name} checked={field.value}/>
|
|
116
|
-
</div>
|
|
117
|
-
</FdFormItem>)}/>
|
|
118
|
-
</form>
|
|
119
|
-
</FdForm>
|
|
120
|
-
</div>);
|
|
121
|
-
}
|
|
122
|
-
export default EditUserForm;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { FdSheet, FdSheetTrigger, FdSheetContent, FdSheetTitle, FdSheetDescription, } from "@fd-component-toolbox/sheet/FdSheet";
|
|
2
|
-
import React, { useCallback, useEffect, useState } from "react";
|
|
3
|
-
import { useTitle } from "@meta/page/use-title";
|
|
4
|
-
import EditUserForm from "@fd-app-toolbox/edit-user-form/EditUserForm";
|
|
5
|
-
import { onOpenEditUserSheet } from "@fd-app-toolbox/edit-user-sheet/EditUserSheet.funcs";
|
|
6
|
-
const pageTitle = "User List";
|
|
7
|
-
/**
|
|
8
|
-
* A modal sheet interface for editing user information. Provides a slide-out panel
|
|
9
|
-
* that contains a user editing form with responsive design and integrated title management.
|
|
10
|
-
*
|
|
11
|
-
* @param props - See {@link EditUserSheetProps}
|
|
12
|
-
*/
|
|
13
|
-
export function EditUserSheet({ children, onEditClick, userData }) {
|
|
14
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
15
|
-
const { setTitle } = useTitle();
|
|
16
|
-
useEffect(() => {
|
|
17
|
-
if (!isOpen) {
|
|
18
|
-
setTitle?.(pageTitle);
|
|
19
|
-
}
|
|
20
|
-
}, [isOpen, setTitle]);
|
|
21
|
-
const onOpenChange = useCallback((open) => onOpenEditUserSheet(setIsOpen, open, onEditClick), [onEditClick]);
|
|
22
|
-
const onCancelClick = useCallback(() => {
|
|
23
|
-
onOpenChange(false);
|
|
24
|
-
}, [onOpenChange]);
|
|
25
|
-
return (<FdSheet open={isOpen} onOpenChange={onOpenChange}>
|
|
26
|
-
<FdSheetTrigger asChild>{children}</FdSheetTrigger>
|
|
27
|
-
<FdSheetContent className="w-3/4 overflow-y-auto md:w-1/2 xl:w-1/4">
|
|
28
|
-
<FdSheetTitle className="absolute overflow-hidden whitespace-nowrap border-0 p-0 text-transparent">
|
|
29
|
-
SheetContent
|
|
30
|
-
</FdSheetTitle>
|
|
31
|
-
<FdSheetDescription></FdSheetDescription>
|
|
32
|
-
<EditUserForm userData={userData} onCancelClick={onCancelClick}></EditUserForm>
|
|
33
|
-
</FdSheetContent>
|
|
34
|
-
</FdSheet>);
|
|
35
|
-
}
|