@payloadcms/ui 3.68.0-internal-debug.35482da → 3.68.0-internal-debug.654e4ad
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/elements/ArrayAction/index.d.ts +6 -6
- package/dist/elements/ArrayAction/index.d.ts.map +1 -1
- package/dist/elements/ArrayAction/index.js +28 -28
- package/dist/elements/ArrayAction/index.js.map +1 -1
- package/dist/elements/HTMLDiff/diff/index.js.map +1 -1
- package/dist/elements/withMergedProps/index.d.ts +1 -1
- package/dist/elements/withMergedProps/index.js +1 -1
- package/dist/elements/withMergedProps/index.js.map +1 -1
- package/dist/exports/client/index.d.ts +2 -0
- package/dist/exports/client/index.d.ts.map +1 -1
- package/dist/exports/client/index.js +2 -0
- package/dist/exports/client/index.js.map +1 -1
- package/dist/fields/Array/ArrayRow.d.ts +18 -7
- package/dist/fields/Array/ArrayRow.d.ts.map +1 -1
- package/dist/fields/Array/ArrayRow.js +17 -17
- package/dist/fields/Array/ArrayRow.js.map +1 -1
- package/dist/fields/Array/index.d.ts.map +1 -1
- package/dist/fields/Array/index.js +14 -7
- package/dist/fields/Array/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/exports/client/index.ts"],"sourcesContent":["/* eslint-disable perfectionist/sort-exports */\n'use client'\n\n// IMPORTANT: this file cannot use any wildcard exports because it is wrapped in a `use client` boundary\n// IMPORTANT: do _not_ alias any of the exports in this file, this will cause a mismatch between the unbundled exports\n\n// hooks\n\nexport { fieldComponents } from '../../fields/index.js'\n\nexport { useDebounce } from '../../hooks/useDebounce.js'\nexport { useDebouncedCallback } from '../../hooks/useDebouncedCallback.js'\nexport { useDebouncedEffect } from '../../hooks/useDebouncedEffect.js'\nexport { useDelay } from '../../hooks/useDelay.js'\nexport { useDelayedRender } from '../../hooks/useDelayedRender.js'\nexport { useHotkey } from '../../hooks/useHotkey.js'\nexport { useIntersect } from '../../hooks/useIntersect.js'\nexport { usePayloadAPI } from '../../hooks/usePayloadAPI.js'\nexport { useResize } from '../../hooks/useResize.js'\nexport { useThrottledEffect } from '../../hooks/useThrottledEffect.js'\nexport { useEffectEvent } from '../../hooks/useEffectEvent.js'\nexport { FieldPathContext, useFieldPath } from '../../forms/RenderFields/context.js'\nexport { useQueue } from '../../hooks/useQueue.js'\n\nexport { useUseTitleField } from '../../hooks/useUseAsTitle.js'\n\nexport { SortHeader } from '../../elements/SortHeader/index.js'\nexport { SortRow } from '../../elements/SortRow/index.js'\nexport { OrderableTable } from '../../elements/Table/OrderableTable.js'\n\n// query preset elements\nexport { QueryPresetsColumnsCell } from '../../elements/QueryPresets/cells/ColumnsCell/index.js'\nexport { QueryPresetsWhereCell } from '../../elements/QueryPresets/cells/WhereCell/index.js'\nexport { QueryPresetsAccessCell } from '../../elements/QueryPresets/cells/AccessCell/index.js'\nexport { QueryPresetsGroupByCell } from '../../elements/QueryPresets/cells/GroupByCell/index.js'\nexport { QueryPresetsColumnField } from '../../elements/QueryPresets/fields/ColumnsField/index.js'\nexport { QueryPresetsWhereField } from '../../elements/QueryPresets/fields/WhereField/index.js'\nexport { QueryPresetsGroupByField } from '../../elements/QueryPresets/fields/GroupByField/index.js'\n\n// elements\nexport { ConfirmationModal } from '../../elements/ConfirmationModal/index.js'\nexport type { OnCancel } from '../../elements/ConfirmationModal/index.js'\nexport { Link } from '../../elements/Link/index.js'\nexport { LeaveWithoutSaving } from '../../elements/LeaveWithoutSaving/index.js'\nexport { DocumentTakeOver } from '../../elements/DocumentTakeOver/index.js'\nexport { DocumentLocked } from '../../elements/DocumentLocked/index.js'\nexport { TableColumnsProvider, useTableColumns } from '../../providers/TableColumns/index.js'\nexport {\n RenderDefaultCell,\n useCellProps,\n} from '../../providers/TableColumns/RenderDefaultCell/index.js'\nexport { DateCell } from '../../elements/Table/DefaultCell/fields/Date/index.js'\n\nexport { Translation } from '../../elements/Translation/index.js'\nexport { default as DatePicker } from '../../elements/DatePicker/DatePicker.js'\nexport { ViewDescription } from '../../elements/ViewDescription/index.js'\nexport { AppHeader } from '../../elements/AppHeader/index.js'\nexport { RenderCustomComponent } from '../../elements/RenderCustomComponent/index.js'\nexport {\n BulkUploadDrawer,\n BulkUploadProvider,\n useBulkUpload,\n useBulkUploadDrawerSlug,\n} from '../../elements/BulkUpload/index.js'\nexport { DrawerContentContainer } from '../../elements/DrawerContentContainer/index.js'\nexport type { BulkUploadProps } from '../../elements/BulkUpload/index.js'\nexport { Banner } from '../../elements/Banner/index.js'\nexport { Button } from '../../elements/Button/index.js'\nexport { AnimateHeight } from '../../elements/AnimateHeight/index.js'\nexport { PillSelector, type SelectablePill } from '../../elements/PillSelector/index.js'\nexport { Card } from '../../elements/Card/index.js'\nexport { Collapsible, useCollapsible } from '../../elements/Collapsible/index.js'\nexport { CopyLocaleData } from '../../elements/CopyLocaleData/index.js'\nexport { CopyToClipboard } from '../../elements/CopyToClipboard/index.js'\nexport { DeleteMany } from '../../elements/DeleteMany/index.js'\nexport { DocumentControls } from '../../elements/DocumentControls/index.js'\nexport { Dropzone } from '../../elements/Dropzone/index.js'\nexport { documentDrawerBaseClass, useDocumentDrawer } from '../../elements/DocumentDrawer/index.js'\nexport { getHTMLDiffComponents } from '../../elements/HTMLDiff/index.js'\nexport type {\n DocumentDrawerProps,\n DocumentTogglerProps,\n UseDocumentDrawer,\n} from '../../elements/DocumentDrawer/types.js'\nexport { useClickOutside } from '../../hooks/useClickOutside.js'\nexport { useClickOutsideContext } from '../../providers/ClickOutside/index.js'\nexport { useDocumentDrawerContext } from '../../elements/DocumentDrawer/Provider.js'\nexport { DocumentFields } from '../../elements/DocumentFields/index.js'\nexport { Drawer, DrawerToggler, formatDrawerSlug } from '../../elements/Drawer/index.js'\nexport { useDrawerSlug } from '../../elements/Drawer/useDrawerSlug.js'\nexport { EditMany } from '../../elements/EditMany/index.js'\nexport { ErrorPill } from '../../elements/ErrorPill/index.js'\nexport { FullscreenModal } from '../../elements/FullscreenModal/index.js'\nexport { GenerateConfirmation } from '../../elements/GenerateConfirmation/index.js'\nexport { Gutter } from '../../elements/Gutter/index.js'\nexport { Hamburger } from '../../elements/Hamburger/index.js'\nexport { HydrateAuthProvider } from '../../elements/HydrateAuthProvider/index.js'\nexport { Locked } from '../../elements/Locked/index.js'\nexport { ListControls } from '../../elements/ListControls/index.js'\nexport { useListDrawer } from '../../elements/ListDrawer/index.js'\nexport type {\n ListDrawerProps,\n ListTogglerProps,\n RenderListServerFnArgs,\n RenderListServerFnReturnType,\n UseListDrawer,\n} from '../../elements/ListDrawer/types.js'\nexport { ListSelection } from '../../views/List/ListSelection/index.js'\nexport { CollectionListHeader as ListHeader } from '../../views/List/ListHeader/index.js'\nexport { GroupByHeader } from '../../views/List/GroupByHeader/index.js'\nexport { PageControls, PageControlsComponent } from '../../elements/PageControls/index.js'\nexport { StickyToolbar } from '../../elements/StickyToolbar/index.js'\n\nexport { GroupByPageControls } from '../../elements/PageControls/GroupByPageControls.js'\nexport { LoadingOverlayToggle } from '../../elements/Loading/index.js'\nexport { FormLoadingOverlayToggle } from '../../elements/Loading/index.js'\nexport { LoadingOverlay } from '../../elements/Loading/index.js'\nexport { Logout } from '../../elements/Logout/index.js'\nexport { Modal, useModal } from '../../elements/Modal/index.js'\nexport { NavToggler } from '../../elements/Nav/NavToggler/index.js'\nexport { NavContext, NavProvider, useNav } from '../../elements/Nav/context.js'\nexport { NavGroup } from '../../elements/NavGroup/index.js'\nexport { Pagination } from '../../elements/Pagination/index.js'\nexport { PerPage } from '../../elements/PerPage/index.js'\nexport { Pill } from '../../elements/Pill/index.js'\nimport * as PopupList from '../../elements/Popup/PopupButtonList/index.js'\nexport { PopupList }\nexport { Popup } from '../../elements/Popup/index.js'\nexport { Combobox } from '../../elements/Combobox/index.js'\nexport type { ComboboxEntry, ComboboxProps } from '../../elements/Combobox/index.js'\nexport { PublishMany } from '../../elements/PublishMany/index.js'\nexport { PublishButton } from '../../elements/PublishButton/index.js'\nexport { SaveButton } from '../../elements/SaveButton/index.js'\nexport { SaveDraftButton } from '../../elements/SaveDraftButton/index.js'\n\n// folder elements\nexport { FolderProvider, useFolder } from '../../providers/Folders/index.js'\nexport { BrowseByFolderButton } from '../../elements/FolderView/BrowseByFolderButton/index.js'\nexport { FolderTypeField } from '../../elements/FolderView/FolderTypeField/index.js'\nexport { FolderFileTable } from '../../elements/FolderView/FolderFileTable/index.js'\nexport { ItemCardGrid } from '../../elements/FolderView/ItemCardGrid/index.js'\n\nexport { type Option as ReactSelectOption, ReactSelect } from '../../elements/ReactSelect/index.js'\nexport { ReactSelect as Select } from '../../elements/ReactSelect/index.js'\nexport { RenderTitle } from '../../elements/RenderTitle/index.js'\nexport { ShimmerEffect } from '../../elements/ShimmerEffect/index.js'\nexport { StaggeredShimmers } from '../../elements/ShimmerEffect/index.js'\nexport { SortColumn } from '../../elements/SortColumn/index.js'\nexport { SetStepNav } from '../../elements/StepNav/SetStepNav.js'\nexport { useStepNav } from '../../elements/StepNav/index.js'\nexport type { StepNavItem } from '../../elements/StepNav/types.js'\nexport {\n RelationshipProvider,\n useListRelationships,\n} from '../../elements/Table/RelationshipProvider/index.js'\nexport { Table } from '../../elements/Table/index.js'\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import { Column } from 'payload'` instead.\n */\n Column,\n} from 'payload'\nexport { DefaultCell } from '../../elements/Table/DefaultCell/index.js'\nexport { Thumbnail } from '../../elements/Thumbnail/index.js'\nexport { Tooltip } from '../../elements/Tooltip/index.js'\nimport { toast } from 'sonner'\nexport { toast }\nexport { UnpublishMany } from '../../elements/UnpublishMany/index.js'\nexport { Upload } from '../../elements/Upload/index.js'\nexport { SearchFilter } from '../../elements/SearchFilter/index.js'\nexport { EditUpload } from '../../elements/EditUpload/index.js'\nexport { FileDetails } from '../../elements/FileDetails/index.js'\nexport { PreviewSizes } from '../../elements/PreviewSizes/index.js'\nexport { PreviewButton } from '../../elements/PreviewButton/index.js'\nexport { RelationshipTable } from '../../elements/RelationshipTable/index.js'\nexport { TimezonePicker } from '../../elements/TimezonePicker/index.js'\nexport {\n MoveDocToFolder,\n MoveDocToFolderButton,\n} from '../../elements/FolderView/MoveDocToFolder/index.js'\n\nexport { BlocksDrawer } from '../../fields/Blocks/BlocksDrawer/index.js'\nexport { BlockSelector } from '../../fields/Blocks/BlockSelector/index.js'\nexport { SectionTitle } from '../../fields/Blocks/SectionTitle/index.js'\n\n// fields\nexport { HiddenField } from '../../fields/Hidden/index.js'\nexport { ArrayField } from '../../fields/Array/index.js'\nexport { BlocksField } from '../../fields/Blocks/index.js'\nexport { CheckboxField, CheckboxInput } from '../../fields/Checkbox/index.js'\nexport { CodeField } from '../../fields/Code/index.js'\nexport { CodeEditor as CodeEditorLazy } from '../../elements/CodeEditor/index.js'\nexport { default as CodeEdiftor } from '../../elements/CodeEditor/CodeEditor.js'\n\nexport { CollapsibleField } from '../../fields/Collapsible/index.js'\nexport { ConfirmPasswordField } from '../../fields/ConfirmPassword/index.js'\nexport { DateTimeField } from '../../fields/DateTime/index.js'\nexport { EmailField } from '../../fields/Email/index.js'\nexport { FieldDescription } from '../../fields/FieldDescription/index.js'\nexport { FieldError } from '../../fields/FieldError/index.js'\nexport { FieldLabel } from '../../fields/FieldLabel/index.js'\nexport { GroupField } from '../../fields/Group/index.js'\nexport { JSONField } from '../../fields/JSON/index.js'\nexport { NumberField } from '../../fields/Number/index.js'\nexport { PasswordField } from '../../fields/Password/index.js'\nexport { PointField } from '../../fields/Point/index.js'\nexport { RadioGroupField } from '../../fields/RadioGroup/index.js'\nexport { RelationshipField, RelationshipInput } from '../../fields/Relationship/index.js'\nexport { RichTextField } from '../../fields/RichText/index.js'\nexport { RowField } from '../../fields/Row/index.js'\nexport { SelectField, SelectInput } from '../../fields/Select/index.js'\nexport { TabsField, TabsProvider } from '../../fields/Tabs/index.js'\nexport { TabComponent } from '../../fields/Tabs/Tab/index.js'\nexport { SlugField } from '../../fields/Slug/index.js'\n\nexport { TextField, TextInput } from '../../fields/Text/index.js'\nexport { JoinField } from '../../fields/Join/index.js'\nexport type { TextInputProps } from '../../fields/Text/index.js'\nexport { allFieldComponents } from '../../fields/index.js'\n\nexport { TextareaField, TextareaInput } from '../../fields/Textarea/index.js'\nexport type { TextAreaInputProps } from '../../fields/Textarea/index.js'\n\nexport { UIField } from '../../fields/UI/index.js'\nexport { UploadField, UploadInput } from '../../fields/Upload/index.js'\nexport type { UploadInputProps } from '../../fields/Upload/index.js'\n\nexport { fieldBaseClass } from '../../fields/shared/index.js'\n\n// forms\n\nexport {\n useAllFormFields,\n useDocumentForm,\n useForm,\n useFormBackgroundProcessing,\n useFormFields,\n useFormInitializing,\n useFormModified,\n useFormProcessing,\n useFormSubmitted,\n useWatchForm,\n} from '../../forms/Form/context.js'\nexport { Form, type FormProps } from '../../forms/Form/index.js'\nexport type { FieldAction } from '../../forms/Form/types.js'\nexport { fieldReducer } from '../../forms/Form/fieldReducer.js'\nexport { NullifyLocaleField } from '../../forms/NullifyField/index.js'\nexport { RenderFields } from '../../forms/RenderFields/index.js'\n\nexport { RowLabel, type RowLabelProps } from '../../forms/RowLabel/index.js'\nexport { RowLabelProvider, useRowLabel } from '../../forms/RowLabel/Context/index.js'\n\nexport { FormSubmit } from '../../forms/Submit/index.js'\nexport { WatchChildErrors } from '../../forms/WatchChildErrors/index.js'\nexport { FieldContext, useField } from '../../forms/useField/index.js'\nexport type { FieldType, Options } from '../../forms/useField/types.js'\n\nexport { withCondition } from '../../forms/withCondition/index.js'\nexport { WatchCondition } from '../../forms/withCondition/WatchCondition.js'\n\n// graphics\nexport { Account } from '../../graphics/Account/index.js'\nexport { PayloadIcon } from '../../graphics/Icon/index.js'\n\nexport { DefaultBlockImage } from '../../graphics/DefaultBlockImage/index.js'\nexport { File } from '../../graphics/File/index.js'\n\n// icons\nexport { CalendarIcon } from '../../icons/Calendar/index.js'\nexport { CheckIcon } from '../../icons/Check/index.js'\nexport { ChevronIcon } from '../../icons/Chevron/index.js'\nexport { CloseMenuIcon } from '../../icons/CloseMenu/index.js'\nexport { CodeBlockIcon } from '../../icons/CodeBlock/index.js'\nexport { CopyIcon } from '../../icons/Copy/index.js'\nexport { DragHandleIcon } from '../../icons/DragHandle/index.js'\nexport { EditIcon } from '../../icons/Edit/index.js'\nexport { ExternalLinkIcon } from '../../icons/ExternalLink/index.js'\nexport { LineIcon } from '../../icons/Line/index.js'\nexport { LinkIcon } from '../../icons/Link/index.js'\nexport { LogOutIcon } from '../../icons/LogOut/index.js'\nexport { MenuIcon } from '../../icons/Menu/index.js'\nexport { MinimizeMaximizeIcon } from '../../icons/MinimizeMaximize/index.js'\nexport { MoreIcon } from '../../icons/More/index.js'\nexport { PlusIcon } from '../../icons/Plus/index.js'\nexport { SearchIcon } from '../../icons/Search/index.js'\nexport { SwapIcon } from '../../icons/Swap/index.js'\nexport { XIcon } from '../../icons/X/index.js'\nexport { FolderIcon } from '../../icons/Folder/index.js'\nexport { GearIcon } from '../../icons/Gear/index.js'\nexport { DocumentIcon } from '../../icons/Document/index.js'\nexport { MoveFolderIcon } from '../../icons/MoveFolder/index.js'\nexport { GridViewIcon } from '../../icons/GridView/index.js'\nexport { ListViewIcon } from '../../icons/ListView/index.js'\nexport { Error as ErrorIcon } from '../../providers/ToastContainer/icons/Error.js'\nexport { Info as InfoIcon } from '../../providers/ToastContainer/icons/Info.js'\nexport { Success as SuccessIcon } from '../../providers/ToastContainer/icons/Success.js'\nexport { Warning as WarningIcon } from '../../providers/ToastContainer/icons/Warning.js'\n\n// providers\nexport {\n type RenderDocumentResult,\n type RenderDocumentServerFunction,\n ServerFunctionsContext,\n type ServerFunctionsContextType,\n ServerFunctionsProvider,\n useServerFunctions,\n} from '../../providers/ServerFunctions/index.js'\nexport { ActionsProvider, useActions } from '../../providers/Actions/index.js'\nexport { AuthProvider, useAuth } from '../../providers/Auth/index.js'\nexport type { UserWithToken } from '../../providers/Auth/index.js'\nexport { ClientFunctionProvider, useClientFunctions } from '../../providers/ClientFunction/index.js'\nexport { useAddClientFunction } from '../../providers/ClientFunction/index.js'\n\nexport { LivePreviewProvider } from '../../providers/LivePreview/index.js'\n\nexport { ProgressBar } from '../../providers/RouteTransition/ProgressBar/index.js'\nexport {\n RouteTransitionProvider,\n useRouteTransition,\n} from '../../providers/RouteTransition/index.js'\nexport { ConfigProvider, PageConfigProvider, useConfig } from '../../providers/Config/index.js'\nexport { DocumentEventsProvider, useDocumentEvents } from '../../providers/DocumentEvents/index.js'\nexport { DocumentInfoProvider, useDocumentInfo } from '../../providers/DocumentInfo/index.js'\nexport { useDocumentTitle } from '../../providers/DocumentTitle/index.js'\nexport type { DocumentInfoContext, DocumentInfoProps } from '../../providers/DocumentInfo/index.js'\nexport { useUploadControls } from '../../providers/UploadControls/index.js'\nexport { EditDepthProvider, useEditDepth } from '../../providers/EditDepth/index.js'\nexport {\n EntityVisibilityProvider,\n useEntityVisibility,\n} from '../../providers/EntityVisibility/index.js'\nexport { UploadEditsProvider, useUploadEdits } from '../../providers/UploadEdits/index.js'\nexport {\n ListDrawerContextProvider,\n useListDrawerContext,\n} from '../../elements/ListDrawer/Provider.js'\nexport { ListQueryProvider, useListQuery } from '../../providers/ListQuery/index.js'\nexport { LocaleProvider, useLocale } from '../../providers/Locale/index.js'\nexport { OperationProvider, useOperation } from '../../providers/Operation/index.js'\nexport { ParamsProvider, useParams } from '../../providers/Params/index.js'\nexport { PreferencesProvider, usePreferences } from '../../providers/Preferences/index.js'\nexport { RootProvider } from '../../providers/Root/index.js'\nexport {\n RouteCache as RouteCacheProvider,\n useRouteCache,\n} from '../../providers/RouteCache/index.js'\nexport { ScrollInfoProvider, useScrollInfo } from '../../providers/ScrollInfo/index.js'\nexport { SearchParamsProvider, useSearchParams } from '../../providers/SearchParams/index.js'\nexport { SelectionProvider, useSelection } from '../../providers/Selection/index.js'\nexport { UploadHandlersProvider, useUploadHandlers } from '../../providers/UploadHandlers/index.js'\nexport type { UploadHandlersContext } from '../../providers/UploadHandlers/index.js'\nexport { defaultTheme, type Theme, ThemeProvider, useTheme } from '../../providers/Theme/index.js'\nexport { TranslationProvider, useTranslation } from '../../providers/Translation/index.js'\nexport { useWindowInfo, WindowInfoProvider } from '../../providers/WindowInfo/index.js'\nexport { useControllableState } from '../../hooks/useControllableState.js'\n\nexport { Text as TextCondition } from '../../elements/WhereBuilder/Condition/Text/index.js'\nexport { Select as SelectCondition } from '../../elements/WhereBuilder/Condition/Select/index.js'\nexport { RelationshipFilter as RelationshipCondition } from '../../elements/WhereBuilder/Condition/Relationship/index.js'\nexport { NumberFilter as NumberCondition } from '../../elements/WhereBuilder/Condition/Number/index.js'\nexport { DateFilter as DateCondition } from '../../elements/WhereBuilder/Condition/Date/index.js'\nexport { EmailAndUsernameFields } from '../../elements/EmailAndUsername/index.js'\nexport { SelectAll } from '../../elements/SelectAll/index.js'\nexport { SelectRow } from '../../elements/SelectRow/index.js'\nexport { SelectMany } from '../../elements/SelectMany/index.js'\n\nexport { DefaultListView } from '../../views/List/index.js'\nexport { DefaultCollectionFolderView } from '../../views/CollectionFolder/index.js'\nexport { DefaultBrowseByFolderView } from '../../views/BrowseByFolder/index.js'\n\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import type { ListViewSlots } from 'payload'` instead.\n */\n ListViewSlots,\n} from 'payload'\n\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import type { ListViewClientProps } from 'payload'` instead.\n */\n ListViewClientProps,\n} from 'payload'\n\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import type { ListViewClientProps } from 'payload'` instead.\n */\n ListViewClientProps as ListComponentClientProps,\n} from 'payload'\n\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import type { ListViewServerProps } from 'payload'` instead.\n */\n ListViewServerProps as ListComponentServerProps,\n} from 'payload'\n\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import type { CollectionPreferences } from 'payload'` instead.\n */\n ListPreferences,\n} from 'payload'\n\nexport type { ListHeaderProps } from '../../views/List/ListHeader/index.js'\n\nexport { DefaultEditView } from '../../views/Edit/index.js'\nexport { SetDocumentStepNav } from '../../views/Edit/SetDocumentStepNav/index.js'\nexport { SetDocumentTitle } from '../../views/Edit/SetDocumentTitle/index.js'\n\nexport { parseSearchParams } from '../../utilities/parseSearchParams.js'\nexport { FieldDiffLabel } from '../../elements/FieldDiffLabel/index.js'\nexport { FieldDiffContainer } from '../../elements/FieldDiffContainer/index.js'\nexport { formatTimeToNow } from '../../utilities/formatDocTitle/formatDateTitle.js'\nexport type {\n RenderFieldServerFnArgs,\n RenderFieldServerFnReturnType,\n} from '../../forms/fieldSchemasToFormState/serverFunctions/renderFieldServerFn.js'\n\nexport { useLivePreviewContext } from '../../providers/LivePreview/context.js'\nexport { LivePreviewWindow } from '../../elements/LivePreview/Window/index.js'\n"],"names":["fieldComponents","useDebounce","useDebouncedCallback","useDebouncedEffect","useDelay","useDelayedRender","useHotkey","useIntersect","usePayloadAPI","useResize","useThrottledEffect","useEffectEvent","FieldPathContext","useFieldPath","useQueue","useUseTitleField","SortHeader","SortRow","OrderableTable","QueryPresetsColumnsCell","QueryPresetsWhereCell","QueryPresetsAccessCell","QueryPresetsGroupByCell","QueryPresetsColumnField","QueryPresetsWhereField","QueryPresetsGroupByField","ConfirmationModal","Link","LeaveWithoutSaving","DocumentTakeOver","DocumentLocked","TableColumnsProvider","useTableColumns","RenderDefaultCell","useCellProps","DateCell","Translation","default","DatePicker","ViewDescription","AppHeader","RenderCustomComponent","BulkUploadDrawer","BulkUploadProvider","useBulkUpload","useBulkUploadDrawerSlug","DrawerContentContainer","Banner","Button","AnimateHeight","PillSelector","Card","Collapsible","useCollapsible","CopyLocaleData","CopyToClipboard","DeleteMany","DocumentControls","Dropzone","documentDrawerBaseClass","useDocumentDrawer","getHTMLDiffComponents","useClickOutside","useClickOutsideContext","useDocumentDrawerContext","DocumentFields","Drawer","DrawerToggler","formatDrawerSlug","useDrawerSlug","EditMany","ErrorPill","FullscreenModal","GenerateConfirmation","Gutter","Hamburger","HydrateAuthProvider","Locked","ListControls","useListDrawer","ListSelection","CollectionListHeader","ListHeader","GroupByHeader","PageControls","PageControlsComponent","StickyToolbar","GroupByPageControls","LoadingOverlayToggle","FormLoadingOverlayToggle","LoadingOverlay","Logout","Modal","useModal","NavToggler","NavContext","NavProvider","useNav","NavGroup","Pagination","PerPage","Pill","PopupList","Popup","Combobox","PublishMany","PublishButton","SaveButton","SaveDraftButton","FolderProvider","useFolder","BrowseByFolderButton","FolderTypeField","FolderFileTable","ItemCardGrid","ReactSelect","Select","RenderTitle","ShimmerEffect","StaggeredShimmers","SortColumn","SetStepNav","useStepNav","RelationshipProvider","useListRelationships","Table","DefaultCell","Thumbnail","Tooltip","toast","UnpublishMany","Upload","SearchFilter","EditUpload","FileDetails","PreviewSizes","PreviewButton","RelationshipTable","TimezonePicker","MoveDocToFolder","MoveDocToFolderButton","BlocksDrawer","BlockSelector","SectionTitle","HiddenField","ArrayField","BlocksField","CheckboxField","CheckboxInput","CodeField","CodeEditor","CodeEditorLazy","CodeEdiftor","CollapsibleField","ConfirmPasswordField","DateTimeField","EmailField","FieldDescription","FieldError","FieldLabel","GroupField","JSONField","NumberField","PasswordField","PointField","RadioGroupField","RelationshipField","RelationshipInput","RichTextField","RowField","SelectField","SelectInput","TabsField","TabsProvider","TabComponent","SlugField","TextField","TextInput","JoinField","allFieldComponents","TextareaField","TextareaInput","UIField","UploadField","UploadInput","fieldBaseClass","useAllFormFields","useDocumentForm","useForm","useFormBackgroundProcessing","useFormFields","useFormInitializing","useFormModified","useFormProcessing","useFormSubmitted","useWatchForm","Form","fieldReducer","NullifyLocaleField","RenderFields","RowLabel","RowLabelProvider","useRowLabel","FormSubmit","WatchChildErrors","FieldContext","useField","withCondition","WatchCondition","Account","PayloadIcon","DefaultBlockImage","File","CalendarIcon","CheckIcon","ChevronIcon","CloseMenuIcon","CodeBlockIcon","CopyIcon","DragHandleIcon","EditIcon","ExternalLinkIcon","LineIcon","LinkIcon","LogOutIcon","MenuIcon","MinimizeMaximizeIcon","MoreIcon","PlusIcon","SearchIcon","SwapIcon","XIcon","FolderIcon","GearIcon","DocumentIcon","MoveFolderIcon","GridViewIcon","ListViewIcon","Error","ErrorIcon","Info","InfoIcon","Success","SuccessIcon","Warning","WarningIcon","ServerFunctionsContext","ServerFunctionsProvider","useServerFunctions","ActionsProvider","useActions","AuthProvider","useAuth","ClientFunctionProvider","useClientFunctions","useAddClientFunction","LivePreviewProvider","ProgressBar","RouteTransitionProvider","useRouteTransition","ConfigProvider","PageConfigProvider","useConfig","DocumentEventsProvider","useDocumentEvents","DocumentInfoProvider","useDocumentInfo","useDocumentTitle","useUploadControls","EditDepthProvider","useEditDepth","EntityVisibilityProvider","useEntityVisibility","UploadEditsProvider","useUploadEdits","ListDrawerContextProvider","useListDrawerContext","ListQueryProvider","useListQuery","LocaleProvider","useLocale","OperationProvider","useOperation","ParamsProvider","useParams","PreferencesProvider","usePreferences","RootProvider","RouteCache","RouteCacheProvider","useRouteCache","ScrollInfoProvider","useScrollInfo","SearchParamsProvider","useSearchParams","SelectionProvider","useSelection","UploadHandlersProvider","useUploadHandlers","defaultTheme","ThemeProvider","useTheme","TranslationProvider","useTranslation","useWindowInfo","WindowInfoProvider","useControllableState","Text","TextCondition","SelectCondition","RelationshipFilter","RelationshipCondition","NumberFilter","NumberCondition","DateFilter","DateCondition","EmailAndUsernameFields","SelectAll","SelectRow","SelectMany","DefaultListView","DefaultCollectionFolderView","DefaultBrowseByFolderView","DefaultEditView","SetDocumentStepNav","SetDocumentTitle","parseSearchParams","FieldDiffLabel","FieldDiffContainer","formatTimeToNow","useLivePreviewContext","LivePreviewWindow"],"mappings":"AAAA,6CAA6C,GAC7C;AAEA,wGAAwG;AACxG,sHAAsH;AAEtH,QAAQ;AAER,SAASA,eAAe,QAAQ,wBAAuB;AAEvD,SAASC,WAAW,QAAQ,6BAA4B;AACxD,SAASC,oBAAoB,QAAQ,sCAAqC;AAC1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B,QAAQ,+CAA8C;AACjF,SAASC,gBAAgB,QAAQ,6CAA4C;AAE7E,SAASC,iBAAiB,QAAQ,uCAAsC;AACxE,SAASC,cAAc,QAAQ,yCAAwC;AACvE,SAASC,kBAAkB,QAAQ,6CAA4C;AAC/E,SAASC,eAAe,QAAQ,oDAAmD;AAMnF,SAASC,qBAAqB,QAAQ,yCAAwC;AAC9E,SAASC,iBAAiB,QAAQ,6CAA4C"}
|
|
1
|
+
{"version":3,"sources":["../../../src/exports/client/index.ts"],"sourcesContent":["/* eslint-disable perfectionist/sort-exports */\n'use client'\n\n// IMPORTANT: this file cannot use any wildcard exports because it is wrapped in a `use client` boundary\n// IMPORTANT: do _not_ alias any of the exports in this file, this will cause a mismatch between the unbundled exports\n\n// hooks\n\nexport { fieldComponents } from '../../fields/index.js'\n\nexport { useDebounce } from '../../hooks/useDebounce.js'\nexport { useDebouncedCallback } from '../../hooks/useDebouncedCallback.js'\nexport { useDebouncedEffect } from '../../hooks/useDebouncedEffect.js'\nexport { useDelay } from '../../hooks/useDelay.js'\nexport { useDelayedRender } from '../../hooks/useDelayedRender.js'\nexport { useHotkey } from '../../hooks/useHotkey.js'\nexport { useIntersect } from '../../hooks/useIntersect.js'\nexport { usePayloadAPI } from '../../hooks/usePayloadAPI.js'\nexport { useResize } from '../../hooks/useResize.js'\nexport { useThrottledEffect } from '../../hooks/useThrottledEffect.js'\nexport { useEffectEvent } from '../../hooks/useEffectEvent.js'\nexport { FieldPathContext, useFieldPath } from '../../forms/RenderFields/context.js'\nexport { useQueue } from '../../hooks/useQueue.js'\n\nexport { useUseTitleField } from '../../hooks/useUseAsTitle.js'\n\nexport { SortHeader } from '../../elements/SortHeader/index.js'\nexport { SortRow } from '../../elements/SortRow/index.js'\nexport { OrderableTable } from '../../elements/Table/OrderableTable.js'\n\n// query preset elements\nexport { QueryPresetsColumnsCell } from '../../elements/QueryPresets/cells/ColumnsCell/index.js'\nexport { QueryPresetsWhereCell } from '../../elements/QueryPresets/cells/WhereCell/index.js'\nexport { QueryPresetsAccessCell } from '../../elements/QueryPresets/cells/AccessCell/index.js'\nexport { QueryPresetsGroupByCell } from '../../elements/QueryPresets/cells/GroupByCell/index.js'\nexport { QueryPresetsColumnField } from '../../elements/QueryPresets/fields/ColumnsField/index.js'\nexport { QueryPresetsWhereField } from '../../elements/QueryPresets/fields/WhereField/index.js'\nexport { QueryPresetsGroupByField } from '../../elements/QueryPresets/fields/GroupByField/index.js'\n\n// elements\nexport { ConfirmationModal } from '../../elements/ConfirmationModal/index.js'\nexport type { OnCancel } from '../../elements/ConfirmationModal/index.js'\nexport { Link } from '../../elements/Link/index.js'\nexport { LeaveWithoutSaving } from '../../elements/LeaveWithoutSaving/index.js'\nexport { DocumentTakeOver } from '../../elements/DocumentTakeOver/index.js'\nexport { DocumentLocked } from '../../elements/DocumentLocked/index.js'\nexport { TableColumnsProvider, useTableColumns } from '../../providers/TableColumns/index.js'\nexport {\n RenderDefaultCell,\n useCellProps,\n} from '../../providers/TableColumns/RenderDefaultCell/index.js'\nexport { DateCell } from '../../elements/Table/DefaultCell/fields/Date/index.js'\n\nexport { Translation } from '../../elements/Translation/index.js'\nexport { default as DatePicker } from '../../elements/DatePicker/DatePicker.js'\nexport { ViewDescription } from '../../elements/ViewDescription/index.js'\nexport { AppHeader } from '../../elements/AppHeader/index.js'\nexport { RenderCustomComponent } from '../../elements/RenderCustomComponent/index.js'\nexport {\n BulkUploadDrawer,\n BulkUploadProvider,\n useBulkUpload,\n useBulkUploadDrawerSlug,\n} from '../../elements/BulkUpload/index.js'\nexport { DrawerContentContainer } from '../../elements/DrawerContentContainer/index.js'\nexport type { BulkUploadProps } from '../../elements/BulkUpload/index.js'\nexport { Banner } from '../../elements/Banner/index.js'\nexport { Button } from '../../elements/Button/index.js'\nexport { AnimateHeight } from '../../elements/AnimateHeight/index.js'\nexport { PillSelector, type SelectablePill } from '../../elements/PillSelector/index.js'\nexport { Card } from '../../elements/Card/index.js'\nexport { Collapsible, useCollapsible } from '../../elements/Collapsible/index.js'\nexport { CopyLocaleData } from '../../elements/CopyLocaleData/index.js'\nexport { CopyToClipboard } from '../../elements/CopyToClipboard/index.js'\nexport { DeleteMany } from '../../elements/DeleteMany/index.js'\nexport { DocumentControls } from '../../elements/DocumentControls/index.js'\nexport { Dropzone } from '../../elements/Dropzone/index.js'\nexport { documentDrawerBaseClass, useDocumentDrawer } from '../../elements/DocumentDrawer/index.js'\nexport { getHTMLDiffComponents } from '../../elements/HTMLDiff/index.js'\nexport type {\n DocumentDrawerProps,\n DocumentTogglerProps,\n UseDocumentDrawer,\n} from '../../elements/DocumentDrawer/types.js'\nexport { useClickOutside } from '../../hooks/useClickOutside.js'\nexport { useClickOutsideContext } from '../../providers/ClickOutside/index.js'\nexport { useDocumentDrawerContext } from '../../elements/DocumentDrawer/Provider.js'\nexport { DocumentFields } from '../../elements/DocumentFields/index.js'\nexport { Drawer, DrawerToggler, formatDrawerSlug } from '../../elements/Drawer/index.js'\nexport { useDrawerSlug } from '../../elements/Drawer/useDrawerSlug.js'\nexport { EditMany } from '../../elements/EditMany/index.js'\nexport { ErrorPill } from '../../elements/ErrorPill/index.js'\nexport { FullscreenModal } from '../../elements/FullscreenModal/index.js'\nexport { GenerateConfirmation } from '../../elements/GenerateConfirmation/index.js'\nexport { Gutter } from '../../elements/Gutter/index.js'\nexport { Hamburger } from '../../elements/Hamburger/index.js'\nexport { HydrateAuthProvider } from '../../elements/HydrateAuthProvider/index.js'\nexport { Locked } from '../../elements/Locked/index.js'\nexport { ListControls } from '../../elements/ListControls/index.js'\nexport { useListDrawer } from '../../elements/ListDrawer/index.js'\nexport type {\n ListDrawerProps,\n ListTogglerProps,\n RenderListServerFnArgs,\n RenderListServerFnReturnType,\n UseListDrawer,\n} from '../../elements/ListDrawer/types.js'\nexport { ListSelection } from '../../views/List/ListSelection/index.js'\nexport { CollectionListHeader as ListHeader } from '../../views/List/ListHeader/index.js'\nexport { GroupByHeader } from '../../views/List/GroupByHeader/index.js'\nexport { PageControls, PageControlsComponent } from '../../elements/PageControls/index.js'\nexport { StickyToolbar } from '../../elements/StickyToolbar/index.js'\n\nexport { GroupByPageControls } from '../../elements/PageControls/GroupByPageControls.js'\nexport { LoadingOverlayToggle } from '../../elements/Loading/index.js'\nexport { FormLoadingOverlayToggle } from '../../elements/Loading/index.js'\nexport { LoadingOverlay } from '../../elements/Loading/index.js'\nexport { Logout } from '../../elements/Logout/index.js'\nexport { Modal, useModal } from '../../elements/Modal/index.js'\nexport { NavToggler } from '../../elements/Nav/NavToggler/index.js'\nexport { NavContext, NavProvider, useNav } from '../../elements/Nav/context.js'\nexport { NavGroup } from '../../elements/NavGroup/index.js'\nexport { Pagination } from '../../elements/Pagination/index.js'\nexport { PerPage } from '../../elements/PerPage/index.js'\nexport { Pill } from '../../elements/Pill/index.js'\nimport * as PopupList from '../../elements/Popup/PopupButtonList/index.js'\nexport { PopupList }\nexport { Popup } from '../../elements/Popup/index.js'\nexport { Combobox } from '../../elements/Combobox/index.js'\nexport type { ComboboxEntry, ComboboxProps } from '../../elements/Combobox/index.js'\nexport { PublishMany } from '../../elements/PublishMany/index.js'\nexport { PublishButton } from '../../elements/PublishButton/index.js'\nexport { SaveButton } from '../../elements/SaveButton/index.js'\nexport { SaveDraftButton } from '../../elements/SaveDraftButton/index.js'\n\n// folder elements\nexport { FolderProvider, useFolder } from '../../providers/Folders/index.js'\nexport { BrowseByFolderButton } from '../../elements/FolderView/BrowseByFolderButton/index.js'\nexport { FolderTypeField } from '../../elements/FolderView/FolderTypeField/index.js'\nexport { FolderFileTable } from '../../elements/FolderView/FolderFileTable/index.js'\nexport { ItemCardGrid } from '../../elements/FolderView/ItemCardGrid/index.js'\n\nexport { type Option as ReactSelectOption, ReactSelect } from '../../elements/ReactSelect/index.js'\nexport { ReactSelect as Select } from '../../elements/ReactSelect/index.js'\nexport { RenderTitle } from '../../elements/RenderTitle/index.js'\nexport { ShimmerEffect } from '../../elements/ShimmerEffect/index.js'\nexport { StaggeredShimmers } from '../../elements/ShimmerEffect/index.js'\nexport { SortColumn } from '../../elements/SortColumn/index.js'\nexport { SetStepNav } from '../../elements/StepNav/SetStepNav.js'\nexport { useStepNav } from '../../elements/StepNav/index.js'\nexport type { StepNavItem } from '../../elements/StepNav/types.js'\nexport {\n RelationshipProvider,\n useListRelationships,\n} from '../../elements/Table/RelationshipProvider/index.js'\nexport { Table } from '../../elements/Table/index.js'\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import { Column } from 'payload'` instead.\n */\n Column,\n} from 'payload'\nexport { DefaultCell } from '../../elements/Table/DefaultCell/index.js'\nexport { Thumbnail } from '../../elements/Thumbnail/index.js'\nexport { Tooltip } from '../../elements/Tooltip/index.js'\nimport { toast } from 'sonner'\nexport { toast }\nexport { UnpublishMany } from '../../elements/UnpublishMany/index.js'\nexport { Upload } from '../../elements/Upload/index.js'\nexport { SearchFilter } from '../../elements/SearchFilter/index.js'\nexport { EditUpload } from '../../elements/EditUpload/index.js'\nexport { FileDetails } from '../../elements/FileDetails/index.js'\nexport { PreviewSizes } from '../../elements/PreviewSizes/index.js'\nexport { PreviewButton } from '../../elements/PreviewButton/index.js'\nexport { RelationshipTable } from '../../elements/RelationshipTable/index.js'\nexport { TimezonePicker } from '../../elements/TimezonePicker/index.js'\nexport {\n MoveDocToFolder,\n MoveDocToFolderButton,\n} from '../../elements/FolderView/MoveDocToFolder/index.js'\n\nexport { BlocksDrawer } from '../../fields/Blocks/BlocksDrawer/index.js'\nexport { BlockSelector } from '../../fields/Blocks/BlockSelector/index.js'\nexport { SectionTitle } from '../../fields/Blocks/SectionTitle/index.js'\n\n// fields\nexport { HiddenField } from '../../fields/Hidden/index.js'\nexport { ArrayField } from '../../fields/Array/index.js'\nexport { ArrayRow } from '../../fields/Array/ArrayRow.js'\nexport { BlocksField } from '../../fields/Blocks/index.js'\nexport { BlockRow } from '../../fields/Blocks/BlockRow.js'\nexport { CheckboxField, CheckboxInput } from '../../fields/Checkbox/index.js'\nexport { CodeField } from '../../fields/Code/index.js'\nexport { CodeEditor as CodeEditorLazy } from '../../elements/CodeEditor/index.js'\nexport { default as CodeEdiftor } from '../../elements/CodeEditor/CodeEditor.js'\n\nexport { CollapsibleField } from '../../fields/Collapsible/index.js'\nexport { ConfirmPasswordField } from '../../fields/ConfirmPassword/index.js'\nexport { DateTimeField } from '../../fields/DateTime/index.js'\nexport { EmailField } from '../../fields/Email/index.js'\nexport { FieldDescription } from '../../fields/FieldDescription/index.js'\nexport { FieldError } from '../../fields/FieldError/index.js'\nexport { FieldLabel } from '../../fields/FieldLabel/index.js'\nexport { GroupField } from '../../fields/Group/index.js'\nexport { JSONField } from '../../fields/JSON/index.js'\nexport { NumberField } from '../../fields/Number/index.js'\nexport { PasswordField } from '../../fields/Password/index.js'\nexport { PointField } from '../../fields/Point/index.js'\nexport { RadioGroupField } from '../../fields/RadioGroup/index.js'\nexport { RelationshipField, RelationshipInput } from '../../fields/Relationship/index.js'\nexport { RichTextField } from '../../fields/RichText/index.js'\nexport { RowField } from '../../fields/Row/index.js'\nexport { SelectField, SelectInput } from '../../fields/Select/index.js'\nexport { TabsField, TabsProvider } from '../../fields/Tabs/index.js'\nexport { TabComponent } from '../../fields/Tabs/Tab/index.js'\nexport { SlugField } from '../../fields/Slug/index.js'\n\nexport { TextField, TextInput } from '../../fields/Text/index.js'\nexport { JoinField } from '../../fields/Join/index.js'\nexport type { TextInputProps } from '../../fields/Text/index.js'\nexport { allFieldComponents } from '../../fields/index.js'\n\nexport { TextareaField, TextareaInput } from '../../fields/Textarea/index.js'\nexport type { TextAreaInputProps } from '../../fields/Textarea/index.js'\n\nexport { UIField } from '../../fields/UI/index.js'\nexport { UploadField, UploadInput } from '../../fields/Upload/index.js'\nexport type { UploadInputProps } from '../../fields/Upload/index.js'\n\nexport { fieldBaseClass } from '../../fields/shared/index.js'\n\n// forms\n\nexport {\n useAllFormFields,\n useDocumentForm,\n useForm,\n useFormBackgroundProcessing,\n useFormFields,\n useFormInitializing,\n useFormModified,\n useFormProcessing,\n useFormSubmitted,\n useWatchForm,\n} from '../../forms/Form/context.js'\nexport { Form, type FormProps } from '../../forms/Form/index.js'\nexport type { FieldAction } from '../../forms/Form/types.js'\nexport { fieldReducer } from '../../forms/Form/fieldReducer.js'\nexport { NullifyLocaleField } from '../../forms/NullifyField/index.js'\nexport { RenderFields } from '../../forms/RenderFields/index.js'\n\nexport { RowLabel, type RowLabelProps } from '../../forms/RowLabel/index.js'\nexport { RowLabelProvider, useRowLabel } from '../../forms/RowLabel/Context/index.js'\n\nexport { FormSubmit } from '../../forms/Submit/index.js'\nexport { WatchChildErrors } from '../../forms/WatchChildErrors/index.js'\nexport { FieldContext, useField } from '../../forms/useField/index.js'\nexport type { FieldType, Options } from '../../forms/useField/types.js'\n\nexport { withCondition } from '../../forms/withCondition/index.js'\nexport { WatchCondition } from '../../forms/withCondition/WatchCondition.js'\n\n// graphics\nexport { Account } from '../../graphics/Account/index.js'\nexport { PayloadIcon } from '../../graphics/Icon/index.js'\n\nexport { DefaultBlockImage } from '../../graphics/DefaultBlockImage/index.js'\nexport { File } from '../../graphics/File/index.js'\n\n// icons\nexport { CalendarIcon } from '../../icons/Calendar/index.js'\nexport { CheckIcon } from '../../icons/Check/index.js'\nexport { ChevronIcon } from '../../icons/Chevron/index.js'\nexport { CloseMenuIcon } from '../../icons/CloseMenu/index.js'\nexport { CodeBlockIcon } from '../../icons/CodeBlock/index.js'\nexport { CopyIcon } from '../../icons/Copy/index.js'\nexport { DragHandleIcon } from '../../icons/DragHandle/index.js'\nexport { EditIcon } from '../../icons/Edit/index.js'\nexport { ExternalLinkIcon } from '../../icons/ExternalLink/index.js'\nexport { LineIcon } from '../../icons/Line/index.js'\nexport { LinkIcon } from '../../icons/Link/index.js'\nexport { LogOutIcon } from '../../icons/LogOut/index.js'\nexport { MenuIcon } from '../../icons/Menu/index.js'\nexport { MinimizeMaximizeIcon } from '../../icons/MinimizeMaximize/index.js'\nexport { MoreIcon } from '../../icons/More/index.js'\nexport { PlusIcon } from '../../icons/Plus/index.js'\nexport { SearchIcon } from '../../icons/Search/index.js'\nexport { SwapIcon } from '../../icons/Swap/index.js'\nexport { XIcon } from '../../icons/X/index.js'\nexport { FolderIcon } from '../../icons/Folder/index.js'\nexport { GearIcon } from '../../icons/Gear/index.js'\nexport { DocumentIcon } from '../../icons/Document/index.js'\nexport { MoveFolderIcon } from '../../icons/MoveFolder/index.js'\nexport { GridViewIcon } from '../../icons/GridView/index.js'\nexport { ListViewIcon } from '../../icons/ListView/index.js'\nexport { Error as ErrorIcon } from '../../providers/ToastContainer/icons/Error.js'\nexport { Info as InfoIcon } from '../../providers/ToastContainer/icons/Info.js'\nexport { Success as SuccessIcon } from '../../providers/ToastContainer/icons/Success.js'\nexport { Warning as WarningIcon } from '../../providers/ToastContainer/icons/Warning.js'\n\n// providers\nexport {\n type RenderDocumentResult,\n type RenderDocumentServerFunction,\n ServerFunctionsContext,\n type ServerFunctionsContextType,\n ServerFunctionsProvider,\n useServerFunctions,\n} from '../../providers/ServerFunctions/index.js'\nexport { ActionsProvider, useActions } from '../../providers/Actions/index.js'\nexport { AuthProvider, useAuth } from '../../providers/Auth/index.js'\nexport type { UserWithToken } from '../../providers/Auth/index.js'\nexport { ClientFunctionProvider, useClientFunctions } from '../../providers/ClientFunction/index.js'\nexport { useAddClientFunction } from '../../providers/ClientFunction/index.js'\n\nexport { LivePreviewProvider } from '../../providers/LivePreview/index.js'\n\nexport { ProgressBar } from '../../providers/RouteTransition/ProgressBar/index.js'\nexport {\n RouteTransitionProvider,\n useRouteTransition,\n} from '../../providers/RouteTransition/index.js'\nexport { ConfigProvider, PageConfigProvider, useConfig } from '../../providers/Config/index.js'\nexport { DocumentEventsProvider, useDocumentEvents } from '../../providers/DocumentEvents/index.js'\nexport { DocumentInfoProvider, useDocumentInfo } from '../../providers/DocumentInfo/index.js'\nexport { useDocumentTitle } from '../../providers/DocumentTitle/index.js'\nexport type { DocumentInfoContext, DocumentInfoProps } from '../../providers/DocumentInfo/index.js'\nexport { useUploadControls } from '../../providers/UploadControls/index.js'\nexport { EditDepthProvider, useEditDepth } from '../../providers/EditDepth/index.js'\nexport {\n EntityVisibilityProvider,\n useEntityVisibility,\n} from '../../providers/EntityVisibility/index.js'\nexport { UploadEditsProvider, useUploadEdits } from '../../providers/UploadEdits/index.js'\nexport {\n ListDrawerContextProvider,\n useListDrawerContext,\n} from '../../elements/ListDrawer/Provider.js'\nexport { ListQueryProvider, useListQuery } from '../../providers/ListQuery/index.js'\nexport { LocaleProvider, useLocale } from '../../providers/Locale/index.js'\nexport { OperationProvider, useOperation } from '../../providers/Operation/index.js'\nexport { ParamsProvider, useParams } from '../../providers/Params/index.js'\nexport { PreferencesProvider, usePreferences } from '../../providers/Preferences/index.js'\nexport { RootProvider } from '../../providers/Root/index.js'\nexport {\n RouteCache as RouteCacheProvider,\n useRouteCache,\n} from '../../providers/RouteCache/index.js'\nexport { ScrollInfoProvider, useScrollInfo } from '../../providers/ScrollInfo/index.js'\nexport { SearchParamsProvider, useSearchParams } from '../../providers/SearchParams/index.js'\nexport { SelectionProvider, useSelection } from '../../providers/Selection/index.js'\nexport { UploadHandlersProvider, useUploadHandlers } from '../../providers/UploadHandlers/index.js'\nexport type { UploadHandlersContext } from '../../providers/UploadHandlers/index.js'\nexport { defaultTheme, type Theme, ThemeProvider, useTheme } from '../../providers/Theme/index.js'\nexport { TranslationProvider, useTranslation } from '../../providers/Translation/index.js'\nexport { useWindowInfo, WindowInfoProvider } from '../../providers/WindowInfo/index.js'\nexport { useControllableState } from '../../hooks/useControllableState.js'\n\nexport { Text as TextCondition } from '../../elements/WhereBuilder/Condition/Text/index.js'\nexport { Select as SelectCondition } from '../../elements/WhereBuilder/Condition/Select/index.js'\nexport { RelationshipFilter as RelationshipCondition } from '../../elements/WhereBuilder/Condition/Relationship/index.js'\nexport { NumberFilter as NumberCondition } from '../../elements/WhereBuilder/Condition/Number/index.js'\nexport { DateFilter as DateCondition } from '../../elements/WhereBuilder/Condition/Date/index.js'\nexport { EmailAndUsernameFields } from '../../elements/EmailAndUsername/index.js'\nexport { SelectAll } from '../../elements/SelectAll/index.js'\nexport { SelectRow } from '../../elements/SelectRow/index.js'\nexport { SelectMany } from '../../elements/SelectMany/index.js'\n\nexport { DefaultListView } from '../../views/List/index.js'\nexport { DefaultCollectionFolderView } from '../../views/CollectionFolder/index.js'\nexport { DefaultBrowseByFolderView } from '../../views/BrowseByFolder/index.js'\n\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import type { ListViewSlots } from 'payload'` instead.\n */\n ListViewSlots,\n} from 'payload'\n\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import type { ListViewClientProps } from 'payload'` instead.\n */\n ListViewClientProps,\n} from 'payload'\n\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import type { ListViewClientProps } from 'payload'` instead.\n */\n ListViewClientProps as ListComponentClientProps,\n} from 'payload'\n\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import type { ListViewServerProps } from 'payload'` instead.\n */\n ListViewServerProps as ListComponentServerProps,\n} from 'payload'\n\nexport type {\n /**\n * @deprecated\n * This export will be removed in the next major version.\n * Use `import type { CollectionPreferences } from 'payload'` instead.\n */\n ListPreferences,\n} from 'payload'\n\nexport type { ListHeaderProps } from '../../views/List/ListHeader/index.js'\n\nexport { DefaultEditView } from '../../views/Edit/index.js'\nexport { SetDocumentStepNav } from '../../views/Edit/SetDocumentStepNav/index.js'\nexport { SetDocumentTitle } from '../../views/Edit/SetDocumentTitle/index.js'\n\nexport { parseSearchParams } from '../../utilities/parseSearchParams.js'\nexport { FieldDiffLabel } from '../../elements/FieldDiffLabel/index.js'\nexport { FieldDiffContainer } from '../../elements/FieldDiffContainer/index.js'\nexport { formatTimeToNow } from '../../utilities/formatDocTitle/formatDateTitle.js'\nexport type {\n RenderFieldServerFnArgs,\n RenderFieldServerFnReturnType,\n} from '../../forms/fieldSchemasToFormState/serverFunctions/renderFieldServerFn.js'\n\nexport { useLivePreviewContext } from '../../providers/LivePreview/context.js'\nexport { LivePreviewWindow } from '../../elements/LivePreview/Window/index.js'\n"],"names":["fieldComponents","useDebounce","useDebouncedCallback","useDebouncedEffect","useDelay","useDelayedRender","useHotkey","useIntersect","usePayloadAPI","useResize","useThrottledEffect","useEffectEvent","FieldPathContext","useFieldPath","useQueue","useUseTitleField","SortHeader","SortRow","OrderableTable","QueryPresetsColumnsCell","QueryPresetsWhereCell","QueryPresetsAccessCell","QueryPresetsGroupByCell","QueryPresetsColumnField","QueryPresetsWhereField","QueryPresetsGroupByField","ConfirmationModal","Link","LeaveWithoutSaving","DocumentTakeOver","DocumentLocked","TableColumnsProvider","useTableColumns","RenderDefaultCell","useCellProps","DateCell","Translation","default","DatePicker","ViewDescription","AppHeader","RenderCustomComponent","BulkUploadDrawer","BulkUploadProvider","useBulkUpload","useBulkUploadDrawerSlug","DrawerContentContainer","Banner","Button","AnimateHeight","PillSelector","Card","Collapsible","useCollapsible","CopyLocaleData","CopyToClipboard","DeleteMany","DocumentControls","Dropzone","documentDrawerBaseClass","useDocumentDrawer","getHTMLDiffComponents","useClickOutside","useClickOutsideContext","useDocumentDrawerContext","DocumentFields","Drawer","DrawerToggler","formatDrawerSlug","useDrawerSlug","EditMany","ErrorPill","FullscreenModal","GenerateConfirmation","Gutter","Hamburger","HydrateAuthProvider","Locked","ListControls","useListDrawer","ListSelection","CollectionListHeader","ListHeader","GroupByHeader","PageControls","PageControlsComponent","StickyToolbar","GroupByPageControls","LoadingOverlayToggle","FormLoadingOverlayToggle","LoadingOverlay","Logout","Modal","useModal","NavToggler","NavContext","NavProvider","useNav","NavGroup","Pagination","PerPage","Pill","PopupList","Popup","Combobox","PublishMany","PublishButton","SaveButton","SaveDraftButton","FolderProvider","useFolder","BrowseByFolderButton","FolderTypeField","FolderFileTable","ItemCardGrid","ReactSelect","Select","RenderTitle","ShimmerEffect","StaggeredShimmers","SortColumn","SetStepNav","useStepNav","RelationshipProvider","useListRelationships","Table","DefaultCell","Thumbnail","Tooltip","toast","UnpublishMany","Upload","SearchFilter","EditUpload","FileDetails","PreviewSizes","PreviewButton","RelationshipTable","TimezonePicker","MoveDocToFolder","MoveDocToFolderButton","BlocksDrawer","BlockSelector","SectionTitle","HiddenField","ArrayField","ArrayRow","BlocksField","BlockRow","CheckboxField","CheckboxInput","CodeField","CodeEditor","CodeEditorLazy","CodeEdiftor","CollapsibleField","ConfirmPasswordField","DateTimeField","EmailField","FieldDescription","FieldError","FieldLabel","GroupField","JSONField","NumberField","PasswordField","PointField","RadioGroupField","RelationshipField","RelationshipInput","RichTextField","RowField","SelectField","SelectInput","TabsField","TabsProvider","TabComponent","SlugField","TextField","TextInput","JoinField","allFieldComponents","TextareaField","TextareaInput","UIField","UploadField","UploadInput","fieldBaseClass","useAllFormFields","useDocumentForm","useForm","useFormBackgroundProcessing","useFormFields","useFormInitializing","useFormModified","useFormProcessing","useFormSubmitted","useWatchForm","Form","fieldReducer","NullifyLocaleField","RenderFields","RowLabel","RowLabelProvider","useRowLabel","FormSubmit","WatchChildErrors","FieldContext","useField","withCondition","WatchCondition","Account","PayloadIcon","DefaultBlockImage","File","CalendarIcon","CheckIcon","ChevronIcon","CloseMenuIcon","CodeBlockIcon","CopyIcon","DragHandleIcon","EditIcon","ExternalLinkIcon","LineIcon","LinkIcon","LogOutIcon","MenuIcon","MinimizeMaximizeIcon","MoreIcon","PlusIcon","SearchIcon","SwapIcon","XIcon","FolderIcon","GearIcon","DocumentIcon","MoveFolderIcon","GridViewIcon","ListViewIcon","Error","ErrorIcon","Info","InfoIcon","Success","SuccessIcon","Warning","WarningIcon","ServerFunctionsContext","ServerFunctionsProvider","useServerFunctions","ActionsProvider","useActions","AuthProvider","useAuth","ClientFunctionProvider","useClientFunctions","useAddClientFunction","LivePreviewProvider","ProgressBar","RouteTransitionProvider","useRouteTransition","ConfigProvider","PageConfigProvider","useConfig","DocumentEventsProvider","useDocumentEvents","DocumentInfoProvider","useDocumentInfo","useDocumentTitle","useUploadControls","EditDepthProvider","useEditDepth","EntityVisibilityProvider","useEntityVisibility","UploadEditsProvider","useUploadEdits","ListDrawerContextProvider","useListDrawerContext","ListQueryProvider","useListQuery","LocaleProvider","useLocale","OperationProvider","useOperation","ParamsProvider","useParams","PreferencesProvider","usePreferences","RootProvider","RouteCache","RouteCacheProvider","useRouteCache","ScrollInfoProvider","useScrollInfo","SearchParamsProvider","useSearchParams","SelectionProvider","useSelection","UploadHandlersProvider","useUploadHandlers","defaultTheme","ThemeProvider","useTheme","TranslationProvider","useTranslation","useWindowInfo","WindowInfoProvider","useControllableState","Text","TextCondition","SelectCondition","RelationshipFilter","RelationshipCondition","NumberFilter","NumberCondition","DateFilter","DateCondition","EmailAndUsernameFields","SelectAll","SelectRow","SelectMany","DefaultListView","DefaultCollectionFolderView","DefaultBrowseByFolderView","DefaultEditView","SetDocumentStepNav","SetDocumentTitle","parseSearchParams","FieldDiffLabel","FieldDiffContainer","formatTimeToNow","useLivePreviewContext","LivePreviewWindow"],"mappings":"AAAA,6CAA6C,GAC7C;AAEA,wGAAwG;AACxG,sHAAsH;AAEtH,QAAQ;AAER,SAASA,eAAe,QAAQ,wBAAuB;AAEvD,SAASC,WAAW,QAAQ,6BAA4B;AACxD,SAASC,oBAAoB,QAAQ,sCAAqC;AAC1E,SAASC,kBAAkB,QAAQ,oCAAmC;AACtE,SAASC,QAAQ,QAAQ,0BAAyB;AAClD,SAASC,gBAAgB,QAAQ,kCAAiC;AAClE,SAASC,SAAS,QAAQ,2BAA0B;AACpD,SAASC,YAAY,QAAQ,8BAA6B;AAC1D,SAASC,aAAa,QAAQ,+BAA8B;AAC5D,SAASC,SAAS,QAAQ,2BAA0B;AACpD,SAASC,kBAAkB,QAAQ,oCAAmC;AACtE,SAASC,cAAc,QAAQ,gCAA+B;AAC9D,SAASC,gBAAgB,EAAEC,YAAY,QAAQ,sCAAqC;AACpF,SAASC,QAAQ,QAAQ,0BAAyB;AAElD,S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, ClientField, Row, SanitizedFieldPermissions } from 'payload';
|
|
2
|
+
import type { CSSProperties } from 'react';
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import type { UseDraggableSortableReturn } from '../../elements/DraggableSortable/useDraggableSortable/types.js';
|
|
4
5
|
import './index.scss';
|
|
5
6
|
type ArrayRowProps = {
|
|
6
|
-
readonly addRow
|
|
7
|
-
readonly copyRow
|
|
7
|
+
readonly addRow?: (rowIndex: number) => Promise<void> | void;
|
|
8
|
+
readonly copyRow?: (rowIndex: number) => void;
|
|
8
9
|
readonly CustomRowLabel?: React.ReactNode;
|
|
9
|
-
readonly duplicateRow
|
|
10
|
+
readonly duplicateRow?: (rowIndex: number) => void;
|
|
10
11
|
readonly errorCount: number;
|
|
11
12
|
readonly fields: ClientField[];
|
|
12
13
|
readonly hasMaxRows?: boolean;
|
|
13
14
|
readonly isLoading?: boolean;
|
|
14
15
|
readonly isSortable?: boolean;
|
|
15
16
|
readonly labels: Partial<ArrayField['labels']>;
|
|
16
|
-
readonly moveRow
|
|
17
|
+
readonly moveRow?: (fromIndex: number, toIndex: number) => void;
|
|
17
18
|
readonly parentPath: string;
|
|
18
|
-
readonly pasteRow
|
|
19
|
+
readonly pasteRow?: (rowIndex: number) => void;
|
|
19
20
|
readonly path: string;
|
|
20
21
|
readonly permissions: SanitizedFieldPermissions;
|
|
21
22
|
readonly readOnly?: boolean;
|
|
22
|
-
readonly
|
|
23
|
+
readonly ref?: React.Ref<HTMLDivElement>;
|
|
24
|
+
readonly removeRow?: (rowIndex: number) => void;
|
|
23
25
|
readonly row: Row;
|
|
24
26
|
readonly rowCount: number;
|
|
25
27
|
readonly rowIndex: number;
|
|
26
28
|
readonly schemaPath: string;
|
|
27
29
|
readonly setCollapse: (rowID: string, collapsed: boolean) => void;
|
|
28
|
-
|
|
30
|
+
readonly showActions?: boolean;
|
|
31
|
+
readonly style?: CSSProperties;
|
|
32
|
+
} & ({
|
|
33
|
+
readonly dragHandleAttributes?: React.HTMLAttributes<HTMLElement>;
|
|
34
|
+
readonly dragHandleListeners?: UseDraggableSortableReturn['listeners'];
|
|
35
|
+
readonly isDragging?: UseDraggableSortableReturn['isDragging'];
|
|
36
|
+
readonly isSortable: true;
|
|
37
|
+
} | {
|
|
38
|
+
readonly isSortable?: false;
|
|
39
|
+
}) & Pick<ClientComponentProps, 'forceRender'>;
|
|
29
40
|
export declare const ArrayRow: React.FC<ArrayRowProps>;
|
|
30
41
|
export {};
|
|
31
42
|
//# sourceMappingURL=ArrayRow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrayRow.d.ts","sourceRoot":"","sources":["../../../src/fields/Array/ArrayRow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,oBAAoB,EACpB,WAAW,EACX,GAAG,EACH,yBAAyB,EAC1B,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"ArrayRow.d.ts","sourceRoot":"","sources":["../../../src/fields/Array/ArrayRow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,oBAAoB,EACpB,WAAW,EACX,GAAG,EACH,yBAAyB,EAC1B,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAG1C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gEAAgE,CAAA;AAWhH,OAAO,cAAc,CAAA;AAIrB,KAAK,aAAa,GAAG;IACnB,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IAC5D,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7C,QAAQ,CAAC,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACzC,QAAQ,CAAC,YAAY,CAAC,EAA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;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAA;CAC/B,GAAG,CACA;IACE,QAAQ,CAAC,oBAAoB,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;IACjE,QAAQ,CAAC,mBAAmB,CAAC,EAAE,0BAA0B,CAAC,WAAW,CAAC,CAAA;IACtE,QAAQ,CAAC,UAAU,CAAC,EAAE,0BAA0B,CAAC,YAAY,CAAC,CAAA;IAC9D,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAA;CAC1B,GACD;IACE,QAAQ,CAAC,UAAU,CAAC,EAAE,KAAK,CAAA;CAC5B,CACJ,GACC,IAAI,CAAC,oBAAoB,EAAE,aAAa,CAAC,CAAA;AAE3C,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA2H5C,CAAA"}
|
|
@@ -13,7 +13,8 @@ import { useThrottledValue } from '../../hooks/useThrottledValue.js';
|
|
|
13
13
|
import { useTranslation } from '../../providers/Translation/index.js';
|
|
14
14
|
import './index.scss';
|
|
15
15
|
const baseClass = 'array-field';
|
|
16
|
-
export const ArrayRow = (
|
|
16
|
+
export const ArrayRow = (props)=>{
|
|
17
|
+
const { addRow, copyRow, CustomRowLabel, duplicateRow, errorCount, fields, forceRender = false, hasMaxRows, isLoading: isLoadingFromProps, isSortable, labels, moveRow, parentPath, pasteRow, path, permissions, readOnly, ref, removeRow, row, rowCount, rowIndex, schemaPath, setCollapse, showActions, style } = props;
|
|
17
18
|
const isLoading = useThrottledValue(isLoadingFromProps, 500);
|
|
18
19
|
const { i18n } = useTranslation();
|
|
19
20
|
const hasSubmitted = useFormSubmitted();
|
|
@@ -25,14 +26,13 @@ export const ArrayRow = ({ addRow, attributes, copyRow, CustomRowLabel, duplicat
|
|
|
25
26
|
].filter(Boolean).join(' ');
|
|
26
27
|
return /*#__PURE__*/ _jsxDEV("div", {
|
|
27
28
|
id: `${parentPath.split('.').join('-')}-row-${rowIndex}`,
|
|
28
|
-
ref:
|
|
29
|
+
ref: ref,
|
|
29
30
|
style: {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
zIndex: isDragging ? 1 : undefined
|
|
31
|
+
...style || {},
|
|
32
|
+
zIndex: isSortable && props?.isDragging ? 1 : undefined
|
|
33
33
|
},
|
|
34
34
|
children: /*#__PURE__*/ _jsxDEV(Collapsible, {
|
|
35
|
-
actions: !readOnly ? /*#__PURE__*/ _jsxDEV(ArrayAction, {
|
|
35
|
+
actions: !readOnly && showActions !== false ? /*#__PURE__*/ _jsxDEV(ArrayAction, {
|
|
36
36
|
addRow: addRow,
|
|
37
37
|
copyRow: copyRow,
|
|
38
38
|
duplicateRow: duplicateRow,
|
|
@@ -45,15 +45,15 @@ export const ArrayRow = ({ addRow, attributes, copyRow, CustomRowLabel, duplicat
|
|
|
45
45
|
rowCount: rowCount
|
|
46
46
|
}, void 0, false, {
|
|
47
47
|
fileName: "src/fields/Array/ArrayRow.tsx",
|
|
48
|
-
lineNumber:
|
|
48
|
+
lineNumber: 130,
|
|
49
49
|
columnNumber: 13
|
|
50
50
|
}, void 0) : undefined,
|
|
51
51
|
className: classNames,
|
|
52
52
|
collapsibleStyle: fieldHasErrors ? 'error' : 'default',
|
|
53
53
|
dragHandleProps: isSortable ? {
|
|
54
54
|
id: row.id,
|
|
55
|
-
attributes,
|
|
56
|
-
listeners
|
|
55
|
+
attributes: props?.dragHandleAttributes,
|
|
56
|
+
listeners: props?.dragHandleListeners
|
|
57
57
|
} : undefined,
|
|
58
58
|
header: /*#__PURE__*/ _jsxDEV("div", {
|
|
59
59
|
className: `${baseClass}__row-header`,
|
|
@@ -63,7 +63,7 @@ export const ArrayRow = ({ addRow, attributes, copyRow, CustomRowLabel, duplicat
|
|
|
63
63
|
width: "8rem"
|
|
64
64
|
}, void 0, false, {
|
|
65
65
|
fileName: "src/fields/Array/ArrayRow.tsx",
|
|
66
|
-
lineNumber:
|
|
66
|
+
lineNumber: 158,
|
|
67
67
|
columnNumber: 15
|
|
68
68
|
}, void 0) : /*#__PURE__*/ _jsxDEV(RowLabel, {
|
|
69
69
|
CustomComponent: CustomRowLabel,
|
|
@@ -72,7 +72,7 @@ export const ArrayRow = ({ addRow, attributes, copyRow, CustomRowLabel, duplicat
|
|
|
72
72
|
rowNumber: rowIndex
|
|
73
73
|
}, void 0, false, {
|
|
74
74
|
fileName: "src/fields/Array/ArrayRow.tsx",
|
|
75
|
-
lineNumber:
|
|
75
|
+
lineNumber: 160,
|
|
76
76
|
columnNumber: 15
|
|
77
77
|
}, void 0),
|
|
78
78
|
fieldHasErrors && /*#__PURE__*/ _jsxDEV(ErrorPill, {
|
|
@@ -81,20 +81,20 @@ export const ArrayRow = ({ addRow, attributes, copyRow, CustomRowLabel, duplicat
|
|
|
81
81
|
withMessage: true
|
|
82
82
|
}, void 0, false, {
|
|
83
83
|
fileName: "src/fields/Array/ArrayRow.tsx",
|
|
84
|
-
lineNumber:
|
|
84
|
+
lineNumber: 167,
|
|
85
85
|
columnNumber: 32
|
|
86
86
|
}, void 0)
|
|
87
87
|
]
|
|
88
88
|
}, void 0, true, {
|
|
89
89
|
fileName: "src/fields/Array/ArrayRow.tsx",
|
|
90
|
-
lineNumber:
|
|
90
|
+
lineNumber: 156,
|
|
91
91
|
columnNumber: 11
|
|
92
92
|
}, void 0),
|
|
93
93
|
isCollapsed: row.collapsed,
|
|
94
94
|
onToggle: (collapsed)=>setCollapse(row.id, collapsed),
|
|
95
95
|
children: isLoading ? /*#__PURE__*/ _jsxDEV(ShimmerEffect, {}, void 0, false, {
|
|
96
96
|
fileName: "src/fields/Array/ArrayRow.tsx",
|
|
97
|
-
lineNumber:
|
|
97
|
+
lineNumber: 174,
|
|
98
98
|
columnNumber: 11
|
|
99
99
|
}, this) : /*#__PURE__*/ _jsxDEV(RenderFields, {
|
|
100
100
|
className: `${baseClass}__fields`,
|
|
@@ -108,17 +108,17 @@ export const ArrayRow = ({ addRow, attributes, copyRow, CustomRowLabel, duplicat
|
|
|
108
108
|
readOnly: readOnly
|
|
109
109
|
}, void 0, false, {
|
|
110
110
|
fileName: "src/fields/Array/ArrayRow.tsx",
|
|
111
|
-
lineNumber:
|
|
111
|
+
lineNumber: 176,
|
|
112
112
|
columnNumber: 11
|
|
113
113
|
}, this)
|
|
114
114
|
}, void 0, false, {
|
|
115
115
|
fileName: "src/fields/Array/ArrayRow.tsx",
|
|
116
|
-
lineNumber:
|
|
116
|
+
lineNumber: 127,
|
|
117
117
|
columnNumber: 7
|
|
118
118
|
}, this)
|
|
119
119
|
}, `${parentPath}-row-${row.id}`, false, {
|
|
120
120
|
fileName: "src/fields/Array/ArrayRow.tsx",
|
|
121
|
-
lineNumber:
|
|
121
|
+
lineNumber: 118,
|
|
122
122
|
columnNumber: 5
|
|
123
123
|
}, this);
|
|
124
124
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/fields/Array/ArrayRow.tsx"],"sourcesContent":["'use client'\nimport type {\n ArrayField,\n ClientComponentProps,\n ClientField,\n Row,\n SanitizedFieldPermissions,\n} from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport React from 'react'\n\nimport type { UseDraggableSortableReturn } from '../../elements/DraggableSortable/useDraggableSortable/types.js'\n\nimport { ArrayAction } from '../../elements/ArrayAction/index.js'\nimport { Collapsible } from '../../elements/Collapsible/index.js'\nimport { ErrorPill } from '../../elements/ErrorPill/index.js'\nimport { ShimmerEffect } from '../../elements/ShimmerEffect/index.js'\nimport { useFormSubmitted } from '../../forms/Form/context.js'\nimport { RenderFields } from '../../forms/RenderFields/index.js'\nimport { RowLabel } from '../../forms/RowLabel/index.js'\nimport { useThrottledValue } from '../../hooks/useThrottledValue.js'\nimport { useTranslation } from '../../providers/Translation/index.js'\nimport './index.scss'\n\nconst baseClass = 'array-field'\n\ntype ArrayRowProps = {\n readonly addRow
|
|
1
|
+
{"version":3,"sources":["../../../src/fields/Array/ArrayRow.tsx"],"sourcesContent":["'use client'\nimport type {\n ArrayField,\n ClientComponentProps,\n ClientField,\n Row,\n SanitizedFieldPermissions,\n} from 'payload'\nimport type { CSSProperties } from 'react'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport React from 'react'\n\nimport type { UseDraggableSortableReturn } from '../../elements/DraggableSortable/useDraggableSortable/types.js'\n\nimport { ArrayAction } from '../../elements/ArrayAction/index.js'\nimport { Collapsible } from '../../elements/Collapsible/index.js'\nimport { ErrorPill } from '../../elements/ErrorPill/index.js'\nimport { ShimmerEffect } from '../../elements/ShimmerEffect/index.js'\nimport { useFormSubmitted } from '../../forms/Form/context.js'\nimport { RenderFields } from '../../forms/RenderFields/index.js'\nimport { RowLabel } from '../../forms/RowLabel/index.js'\nimport { useThrottledValue } from '../../hooks/useThrottledValue.js'\nimport { useTranslation } from '../../providers/Translation/index.js'\nimport './index.scss'\n\nconst baseClass = 'array-field'\n\ntype ArrayRowProps = {\n readonly addRow?: (rowIndex: number) => Promise<void> | void\n readonly copyRow?: (rowIndex: number) => void\n readonly CustomRowLabel?: React.ReactNode\n readonly duplicateRow?: (rowIndex: number) => void\n readonly errorCount: number\n readonly fields: ClientField[]\n readonly hasMaxRows?: boolean\n readonly isLoading?: boolean\n readonly isSortable?: boolean\n readonly labels: Partial<ArrayField['labels']>\n readonly moveRow?: (fromIndex: number, toIndex: number) => void\n readonly parentPath: string\n readonly pasteRow?: (rowIndex: number) => void\n readonly path: string\n readonly permissions: SanitizedFieldPermissions\n readonly readOnly?: boolean\n readonly ref?: React.Ref<HTMLDivElement>\n readonly removeRow?: (rowIndex: number) => void\n readonly row: Row\n readonly rowCount: number\n readonly rowIndex: number\n readonly schemaPath: string\n readonly setCollapse: (rowID: string, collapsed: boolean) => void\n readonly showActions?: boolean\n readonly style?: CSSProperties\n} & (\n | {\n readonly dragHandleAttributes?: React.HTMLAttributes<HTMLElement>\n readonly dragHandleListeners?: UseDraggableSortableReturn['listeners']\n readonly isDragging?: UseDraggableSortableReturn['isDragging']\n readonly isSortable: true\n }\n | {\n readonly isSortable?: false\n }\n) &\n Pick<ClientComponentProps, 'forceRender'>\n\nexport const ArrayRow: React.FC<ArrayRowProps> = (props) => {\n const {\n addRow,\n copyRow,\n CustomRowLabel,\n duplicateRow,\n errorCount,\n fields,\n forceRender = false,\n hasMaxRows,\n isLoading: isLoadingFromProps,\n isSortable,\n labels,\n moveRow,\n parentPath,\n pasteRow,\n path,\n permissions,\n readOnly,\n ref,\n removeRow,\n row,\n rowCount,\n rowIndex,\n schemaPath,\n setCollapse,\n showActions,\n style,\n } = props\n\n const isLoading = useThrottledValue(isLoadingFromProps, 500)\n\n const { i18n } = useTranslation()\n const hasSubmitted = useFormSubmitted()\n\n const fallbackLabel = `${getTranslation(labels.singular, i18n)} ${String(rowIndex + 1).padStart(\n 2,\n '0',\n )}`\n\n const fieldHasErrors = errorCount > 0 && hasSubmitted\n\n const classNames = [\n `${baseClass}__row`,\n fieldHasErrors ? `${baseClass}__row--has-errors` : `${baseClass}__row--no-errors`,\n ]\n .filter(Boolean)\n .join(' ')\n\n return (\n <div\n id={`${parentPath.split('.').join('-')}-row-${rowIndex}`}\n key={`${parentPath}-row-${row.id}`}\n ref={ref}\n style={{\n ...(style || {}),\n zIndex: isSortable && props?.isDragging ? 1 : undefined,\n }}\n >\n <Collapsible\n actions={\n !readOnly && showActions !== false ? (\n <ArrayAction\n addRow={addRow}\n copyRow={copyRow}\n duplicateRow={duplicateRow}\n hasMaxRows={hasMaxRows}\n index={rowIndex}\n isSortable={isSortable}\n moveRow={moveRow}\n pasteRow={pasteRow}\n removeRow={removeRow}\n rowCount={rowCount}\n />\n ) : undefined\n }\n className={classNames}\n collapsibleStyle={fieldHasErrors ? 'error' : 'default'}\n dragHandleProps={\n isSortable\n ? {\n id: row.id,\n attributes: props?.dragHandleAttributes,\n listeners: props?.dragHandleListeners,\n }\n : undefined\n }\n header={\n <div className={`${baseClass}__row-header`}>\n {isLoading ? (\n <ShimmerEffect height=\"1rem\" width=\"8rem\" />\n ) : (\n <RowLabel\n CustomComponent={CustomRowLabel}\n label={fallbackLabel}\n path={path}\n rowNumber={rowIndex}\n />\n )}\n {fieldHasErrors && <ErrorPill count={errorCount} i18n={i18n} withMessage />}\n </div>\n }\n isCollapsed={row.collapsed}\n onToggle={(collapsed) => setCollapse(row.id, collapsed)}\n >\n {isLoading ? (\n <ShimmerEffect />\n ) : (\n <RenderFields\n className={`${baseClass}__fields`}\n fields={fields}\n forceRender={forceRender}\n margins=\"small\"\n parentIndexPath=\"\"\n parentPath={path}\n parentSchemaPath={schemaPath}\n permissions={permissions === true ? permissions : permissions?.fields}\n readOnly={readOnly}\n />\n )}\n </Collapsible>\n </div>\n )\n}\n"],"names":["getTranslation","React","ArrayAction","Collapsible","ErrorPill","ShimmerEffect","useFormSubmitted","RenderFields","RowLabel","useThrottledValue","useTranslation","baseClass","ArrayRow","props","addRow","copyRow","CustomRowLabel","duplicateRow","errorCount","fields","forceRender","hasMaxRows","isLoading","isLoadingFromProps","isSortable","labels","moveRow","parentPath","pasteRow","path","permissions","readOnly","ref","removeRow","row","rowCount","rowIndex","schemaPath","setCollapse","showActions","style","i18n","hasSubmitted","fallbackLabel","singular","String","padStart","fieldHasErrors","classNames","filter","Boolean","join","div","id","split","zIndex","isDragging","undefined","actions","index","className","collapsibleStyle","dragHandleProps","attributes","dragHandleAttributes","listeners","dragHandleListeners","header","height","width","CustomComponent","label","rowNumber","count","withMessage","isCollapsed","collapsed","onToggle","margins","parentIndexPath","parentSchemaPath"],"mappings":"AAAA;;AAUA,SAASA,cAAc,QAAQ,2BAA0B;AACzD,OAAOC,WAAW,QAAO;AAIzB,SAASC,WAAW,QAAQ,sCAAqC;AACjE,SAASC,WAAW,QAAQ,sCAAqC;AACjE,SAASC,SAAS,QAAQ,oCAAmC;AAC7D,SAASC,aAAa,QAAQ,wCAAuC;AACrE,SAASC,gBAAgB,QAAQ,8BAA6B;AAC9D,SAASC,YAAY,QAAQ,oCAAmC;AAChE,SAASC,QAAQ,QAAQ,gCAA+B;AAC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CY,QAAQA;gBACRC,SAASA;gBACTE,cAAcA;gBACdI,YAAYA;gBACZsC,OAAOvB;gBACPZ,YAAYA;gBACZE,SAASA;gBACTE,UAAUA;gBACVK,WAAWA;gBACXE,UAAUA;;;;;yBAEVsB;YAENG,WAAWZ;YACXa,kBAAkBd,iBAAiB,UAAU;YAC7Ce,iBACEtC,aACI;gBACE6B,IAAInB,IAAImB,EAAE;gBACVU,YAAYlD,OAAOmD;gBACnBC,WAAWpD,OAAOqD;YACpB,IACAT;YAENU,sBACE,QAACf;gBAAIQ,WAAW,GAAGjD,UAAU,YAAY,CAAC;;oBACvCW,0BACC,QAACjB;wBAAc+D,QAAO;wBAAOC,OAAM;;;;;+CAEnC,QAAC7D;wBACC8D,iBAAiBtD;wBACjBuD,OAAO5B;wBACPd,MAAMA;wBACN2C,WAAWpC;;;;;;oBAGdW,gCAAkB,QAAC3C;wBAAUqE,OAAOvD;wBAAYuB,MAAMA;wBAAMiC,WAAW;;;;;;;;;;;;YAG5EC,aAAazC,IAAI0C,SAAS;YAC1BC,UAAU,CAACD,YAActC,YAAYJ,IAAImB,EAAE,EAAEuB;sBAE5CtD,0BACC,QAACjB;;;;qCAED,QAACE;gBACCqD,WAAW,GAAGjD,UAAU,QAAQ,CAAC;gBACjCQ,QAAQA;gBACRC,aAAaA;gBACb0D,SAAQ;gBACRC,iBAAgB;gBAChBpD,YAAYE;gBACZmD,kBAAkB3C;gBAClBP,aAAaA,gBAAgB,OAAOA,cAAcA,aAAaX;gBAC/DY,UAAUA;;;;;;;;;;;OAjEX,GAAGJ,WAAW,KAAK,EAAEO,IAAImB,EAAE,EAAE;;;;;AAuExC,EAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/Array/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,yBAAyB,EAG1B,MAAM,SAAS,CAAA;AAGhB,OAAO,KAAyC,MAAM,OAAO,CAAA;AAiC7D,OAAO,cAAc,CAAA;AAIrB,eAAO,MAAM,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/Array/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,yBAAyB,EAG1B,MAAM,SAAS,CAAA;AAGhB,OAAO,KAAyC,MAAM,OAAO,CAAA;AAiC7D,OAAO,cAAc,CAAA;AAIrB,eAAO,MAAM,mBAAmB,EAAE,yBAgcjC,CAAA;AAED,eAAO,MAAM,UAAU;;;;+EAAqC,CAAA"}
|
|
@@ -469,16 +469,18 @@ export const ArrayFieldComponent = (props)=>{
|
|
|
469
469
|
return /*#__PURE__*/ _jsxDEV(DraggableSortableItem, {
|
|
470
470
|
disabled: readOnly || disabled || !isSortable,
|
|
471
471
|
id: rowID,
|
|
472
|
-
children: (
|
|
473
|
-
...draggableSortableItemProps,
|
|
472
|
+
children: (dragProps)=>/*#__PURE__*/ _jsxDEV(ArrayRow, {
|
|
474
473
|
addRow: addRow,
|
|
475
474
|
copyRow: copyRow,
|
|
476
475
|
CustomRowLabel: rows?.[i]?.customComponents?.RowLabel,
|
|
476
|
+
dragHandleAttributes: dragProps?.attributes,
|
|
477
|
+
dragHandleListeners: dragProps?.listeners,
|
|
477
478
|
duplicateRow: duplicateRow,
|
|
478
479
|
errorCount: rowErrorCount,
|
|
479
480
|
fields: fields,
|
|
480
481
|
forceRender: forceRender,
|
|
481
482
|
hasMaxRows: hasMaxRows,
|
|
483
|
+
isDragging: dragProps?.isDragging,
|
|
482
484
|
isLoading: isLoading,
|
|
483
485
|
isSortable: isSortable,
|
|
484
486
|
labels: labels,
|
|
@@ -488,12 +490,17 @@ export const ArrayFieldComponent = (props)=>{
|
|
|
488
490
|
path: rowPath,
|
|
489
491
|
permissions: permissions,
|
|
490
492
|
readOnly: readOnly || disabled,
|
|
493
|
+
ref: dragProps?.setNodeRef,
|
|
491
494
|
removeRow: removeRow,
|
|
492
495
|
row: rowData,
|
|
493
496
|
rowCount: rows?.length,
|
|
494
497
|
rowIndex: i,
|
|
495
498
|
schemaPath: schemaPath,
|
|
496
|
-
setCollapse: setCollapse
|
|
499
|
+
setCollapse: setCollapse,
|
|
500
|
+
style: {
|
|
501
|
+
transform: dragProps?.transform,
|
|
502
|
+
transition: dragProps?.transition
|
|
503
|
+
}
|
|
497
504
|
}, void 0, false, {
|
|
498
505
|
fileName: "src/fields/Array/index.tsx",
|
|
499
506
|
lineNumber: 418,
|
|
@@ -513,7 +520,7 @@ export const ArrayFieldComponent = (props)=>{
|
|
|
513
520
|
})
|
|
514
521
|
}, void 0, false, {
|
|
515
522
|
fileName: "src/fields/Array/index.tsx",
|
|
516
|
-
lineNumber:
|
|
523
|
+
lineNumber: 458,
|
|
517
524
|
columnNumber: 17
|
|
518
525
|
}, this),
|
|
519
526
|
showMinRows && /*#__PURE__*/ _jsxDEV(Banner, {
|
|
@@ -524,13 +531,13 @@ export const ArrayFieldComponent = (props)=>{
|
|
|
524
531
|
})
|
|
525
532
|
}, void 0, false, {
|
|
526
533
|
fileName: "src/fields/Array/index.tsx",
|
|
527
|
-
lineNumber:
|
|
534
|
+
lineNumber: 463,
|
|
528
535
|
columnNumber: 17
|
|
529
536
|
}, this)
|
|
530
537
|
]
|
|
531
538
|
}, void 0, true, {
|
|
532
539
|
fileName: "src/fields/Array/index.tsx",
|
|
533
|
-
lineNumber:
|
|
540
|
+
lineNumber: 456,
|
|
534
541
|
columnNumber: 13
|
|
535
542
|
}, this)
|
|
536
543
|
]
|
|
@@ -554,7 +561,7 @@ export const ArrayFieldComponent = (props)=>{
|
|
|
554
561
|
})
|
|
555
562
|
}, void 0, false, {
|
|
556
563
|
fileName: "src/fields/Array/index.tsx",
|
|
557
|
-
lineNumber:
|
|
564
|
+
lineNumber: 477,
|
|
558
565
|
columnNumber: 9
|
|
559
566
|
}, this),
|
|
560
567
|
AfterInput
|