@epam/ai-dial-ui-kit 0.16.0-dev.3 → 0.16.0-dev.33
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/README.md +6 -1
- package/dist/CHANGELOG.md +59 -1
- package/dist/DateCellRenderer-BX8RfCHm.cjs +63 -0
- package/dist/{IconButton-DHOFapLo.cjs → IconButton-CsePS6PY.cjs} +1 -1
- package/dist/JsonEditor-DQhHSm93.cjs +1 -0
- package/dist/{MarkdownEditor-Cp-KX6-T.cjs → MarkdownEditor-CvIPIbPq.cjs} +1 -1
- package/dist/{MarkdownEditor-Dav_pp0T.cjs → MarkdownEditor-TR6X_gdl.cjs} +1 -1
- package/dist/MarkdownEditorContainer-JIn_VNUX.cjs +1 -0
- package/dist/{Switch-DE6MrcqJ.cjs → Switch-HEL_aq23.cjs} +1 -1
- package/dist/_virtual/_commonjsHelpers.js +3 -28
- package/dist/_virtual/index.js +5 -3
- package/dist/components/Analytics/Bar/Bar.js +7 -7
- package/dist/components/Analytics/BarGroup/BarGroup.js +18 -18
- package/dist/components/Analytics/Histogram/Histogram.js +10 -10
- package/dist/components/Checkbox/Checkbox.js +9 -9
- package/dist/components/Dropdown/constants.js +2 -2
- package/dist/components/DropdownIcon/DropdownIcon.js +5 -5
- package/dist/components/Grid/Grid.js +11 -11
- package/dist/components/IconButton/IconButton.js +7 -7
- package/dist/components/InputPopup/InputPopup.js +8 -8
- package/dist/components/LoadFileArea/EmptyFileArea.js +28 -28
- package/dist/components/Loader/Loader.js +8 -8
- package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +16 -18
- package/dist/components/New/Avatar/Avatar.js +18 -17
- package/dist/components/New/BottomSheet/BottomSheet.js +53 -52
- package/dist/components/New/Breadcrumbs/constants.js +1 -1
- package/dist/components/New/Calendar/Calendar.js +314 -227
- package/dist/components/New/Calendar/TimePickerPanel.js +87 -0
- package/dist/components/New/Calendar/constants.js +27 -25
- package/dist/components/New/CaptionText/CaptionText.js +3 -4
- package/dist/components/New/Checkbox/Checkbox.js +23 -21
- package/dist/components/New/Checkbox/CheckboxBox.js +25 -18
- package/dist/components/New/ConfirmationPopup/ConfirmationPopup.js +49 -44
- package/dist/components/New/Dropdown/Dropdown.js +334 -254
- package/dist/components/New/Dropdown/constants.js +21 -18
- package/dist/components/New/Dropdown/search.js +37 -0
- package/dist/components/New/FolderPath/FolderPath.js +151 -46
- package/dist/components/New/Grid/Grid.js +139 -132
- package/dist/components/New/Grid/constants.js +5 -2
- package/dist/components/New/Input/Input.js +121 -107
- package/dist/components/New/MenuItem/MenuItem.js +17 -17
- package/dist/components/New/NoDataContent/NoDataContent.js +22 -27
- package/dist/components/New/NoDataContent/NoDataIllustration.js +53 -0
- package/dist/components/New/Popup/constants.js +1 -1
- package/dist/components/New/Radio/Radio.js +19 -17
- package/dist/components/New/ResizeHandle/ResizeHandle.js +147 -0
- package/dist/components/New/SchemaRenderer/components/SchemaField.js +45 -44
- package/dist/components/New/SchemaRenderer/components/SchemaFieldContent.js +41 -38
- package/dist/components/New/SchemaRenderer/components/SchemaPrimitiveField.js +45 -39
- package/dist/components/New/Select/Select.js +205 -202
- package/dist/components/New/Select/constants.js +29 -38
- package/dist/components/New/SharedEntityIndicator/SharedEntityIndicator.js +1 -1
- package/dist/components/New/SideDrawer/SideDrawer.js +1 -1
- package/dist/components/New/StateScreen/StateScreen.js +61 -0
- package/dist/components/New/Switch/Switch.js +19 -17
- package/dist/components/New/Textarea/Textarea.js +37 -33
- package/dist/components/New/TransferQueue/TransferQueue.js +66 -71
- package/dist/components/New/TransferQueue/TransferQueueHeader.js +30 -38
- package/dist/components/New/TransferQueue/TransferQueueRow.js +106 -49
- package/dist/components/Search/Search.js +1 -1
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/constants.js +6 -6
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Steps/Step.js +9 -9
- package/dist/components/TagInput/TagInput.js +1 -1
- package/dist/components-manifest.json +422 -1171
- package/dist/constants/public-class-names.js +11 -0
- package/dist/dial-ui-kit.cjs +4 -2
- package/dist/dial-ui-kit.js +354 -366
- package/dist/editors.cjs +1 -1
- package/dist/grid.cjs +1 -1
- package/dist/grid.js +19 -17
- package/dist/index.css +2 -6
- package/dist/lazy-kq-xfXXv.cjs +1 -0
- package/dist/{merge-classes-BEJXjzkx.cjs → merge-classes-B0SnCG4i.cjs} +1 -1
- package/dist/migration-guides/0.16.0/caption-text-no-alert-role.md +90 -0
- package/dist/migration-guides/0.16.0/legacy-file-manager-removal.md +89 -0
- package/dist/migration-guides/0.16.0/tailwind-v4-stylesheet.md +98 -0
- package/dist/migration-guides/README.md +3 -0
- package/dist/node_modules/ag-grid-community/dist/package/main.esm.js +1767 -1763
- package/dist/node_modules/react-dnd/dist/hooks/useCollector.js +1 -1
- package/dist/src/components/ButtonDropdown/constants.d.ts +2 -2
- package/dist/src/components/Dropdown/constants.d.ts +1 -1
- package/dist/src/components/Grid/Grid.d.ts +1 -1
- package/dist/src/components/JsonEditor/lazy.d.ts +1 -1
- package/dist/src/components/MarkdownEditor/lazy.d.ts +1 -1
- package/dist/src/components/New/Avatar/Avatar.d.ts +9 -3
- package/dist/src/components/New/Breadcrumbs/constants.d.ts +2 -2
- package/dist/src/components/New/ButtonDropdown/constants.d.ts +1 -1
- package/dist/src/components/New/Calendar/Calendar.d.ts +10 -2
- package/dist/src/components/New/Calendar/TimePickerPanel.d.ts +15 -0
- package/dist/src/components/New/Calendar/constants.d.ts +7 -5
- package/dist/src/components/New/CaptionText/CaptionText.d.ts +8 -1
- package/dist/src/components/New/Dropdown/Dropdown.d.ts +42 -0
- package/dist/src/components/New/Dropdown/constants.d.ts +7 -1
- package/dist/src/components/New/Dropdown/search.d.ts +9 -0
- package/dist/src/components/New/FilterChips/FilterChips.d.ts +1 -1
- package/dist/src/components/New/FolderPath/FolderPath.d.ts +16 -8
- package/dist/src/components/New/Grid/Grid.d.ts +12 -1
- package/dist/src/components/New/Grid/components/SelectionCell.d.ts +1 -1
- package/dist/src/components/New/Grid/components/SelectionHeader.d.ts +1 -1
- package/dist/src/components/New/InteractiveTooltip/constants.d.ts +1 -1
- package/dist/src/components/New/MarkdownEditor/lazy.d.ts +1 -1
- package/dist/src/components/New/MenuItem/constants.d.ts +1 -1
- package/dist/src/components/New/NoDataContent/NoDataContent.d.ts +16 -8
- package/dist/src/components/New/NoDataContent/NoDataIllustration.d.ts +7 -0
- package/dist/src/components/New/Popup/constants.d.ts +1 -1
- package/dist/src/components/New/ResizeHandle/ResizeHandle.d.ts +68 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaFieldContent.d.ts +1 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaPrimitiveField.d.ts +2 -0
- package/dist/src/components/New/SchemaRenderer/types.d.ts +3 -1
- package/dist/src/components/New/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/src/components/New/Select/Select.d.ts +2 -0
- package/dist/src/components/New/Select/constants.d.ts +3 -4
- package/dist/src/components/New/StateScreen/StateScreen.d.ts +47 -0
- package/dist/src/components/New/Tooltip/constants.d.ts +2 -2
- package/dist/src/components/New/TransferQueue/TransferQueue.d.ts +9 -5
- package/dist/src/components/New/TransferQueue/TransferQueueHeader.d.ts +1 -3
- package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/src/components/Select/constants.d.ts +3 -3
- package/dist/src/constants/public-class-names.d.ts +11 -0
- package/dist/src/index.d.ts +8 -13
- package/dist/src/subpaths/editors.d.ts +1 -1
- package/dist/src/subpaths/grid.d.ts +1 -0
- package/dist/src/types/avatar.d.ts +9 -0
- package/dist/src/types/grid.d.ts +8 -0
- package/dist/src/utils/avatar.d.ts +2 -1
- package/dist/src/utils/sub-menu-floating.d.ts +1 -1
- package/dist/types/avatar.js +3 -2
- package/dist/types/grid.js +4 -0
- package/dist/utils/avatar.js +41 -18
- package/dist/utils/merge-classes.js +36 -7
- package/dist/utils/sub-menu-floating.js +8 -8
- package/package.json +9 -12
- package/dist/DateCellRenderer-BdUMSg-E.cjs +0 -1
- package/dist/DateCellRenderer-CZNa4jVJ.cjs +0 -63
- package/dist/JsonEditor-eAV7SaKu.cjs +0 -1
- package/dist/MarkdownEditorContainer-96cKYmYd.cjs +0 -1
- package/dist/_virtual/___vite-browser-external.js +0 -6
- package/dist/_virtual/__vite-browser-external.js +0 -4
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/index3.js +0 -7
- package/dist/assets/icons/add-child.svg.js +0 -5
- package/dist/assets/icons/add-sibling.svg.js +0 -5
- package/dist/assets/icons/copy-to.svg.js +0 -5
- package/dist/assets/icons/move-to.svg.js +0 -5
- package/dist/assets/icons/no-data.svg.js +0 -5
- package/dist/assets/icons/unshare.svg.js +0 -5
- package/dist/components/FileManager/FileManager.js +0 -888
- package/dist/components/FileManager/FileManagerContext.js +0 -5
- package/dist/components/FileManager/FileManagerProvider.js +0 -772
- package/dist/components/FileManager/FileManagerTooltip.js +0 -92
- package/dist/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.js +0 -293
- package/dist/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.js +0 -201
- package/dist/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.js +0 -52
- package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.js +0 -103
- package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/constants.js +0 -5
- package/dist/components/FileManager/components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.js +0 -56
- package/dist/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.js +0 -69
- package/dist/components/FileManager/components/FileManagerItemName/FileManagerItemName.js +0 -100
- package/dist/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.js +0 -93
- package/dist/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.js +0 -165
- package/dist/components/FileManager/components/FileManagerNavigationPanel/constants.js +0 -6
- package/dist/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.js +0 -120
- package/dist/components/FileManager/components/FileMetadataPopup/FileMetadataPopup.js +0 -119
- package/dist/components/FileManager/components/FileMetadataPopup/constants.js +0 -9
- package/dist/components/FileManager/components/FoldersTree/FoldersTree.js +0 -180
- package/dist/components/FileManager/components/FoldersTree/constants.js +0 -9
- package/dist/components/FileManager/components/FoldersTree/hooks/use-expanded-paths.js +0 -51
- package/dist/components/FileManager/constants.js +0 -28
- package/dist/components/FileManager/errors.js +0 -10
- package/dist/components/FileManager/hooks/use-bulk-actions.js +0 -143
- package/dist/components/FileManager/hooks/use-collapse-tree.js +0 -22
- package/dist/components/FileManager/hooks/use-conflict-resolution.js +0 -158
- package/dist/components/FileManager/hooks/use-current-path.js +0 -29
- package/dist/components/FileManager/hooks/use-file-clipboard.js +0 -154
- package/dist/components/FileManager/hooks/use-file-delete.js +0 -39
- package/dist/components/FileManager/hooks/use-file-download.js +0 -16
- package/dist/components/FileManager/hooks/use-file-manager-columns.js +0 -106
- package/dist/components/FileManager/hooks/use-file-manager-context.js +0 -13
- package/dist/components/FileManager/hooks/use-file-manager-tabs.js +0 -23
- package/dist/components/FileManager/hooks/use-file-metadata.js +0 -20
- package/dist/components/FileManager/hooks/use-file-search.js +0 -90
- package/dist/components/FileManager/hooks/use-file-upload.js +0 -338
- package/dist/components/FileManager/hooks/use-folder-creation.js +0 -151
- package/dist/components/FileManager/hooks/use-grid-actions-column.js +0 -65
- package/dist/components/FileManager/hooks/use-grid-context-menu.js +0 -188
- package/dist/components/FileManager/hooks/use-item-renaming.js +0 -124
- package/dist/components/FileManager/hooks/use-new-actions.js +0 -67
- package/dist/components/FileManager/hooks/use-paths-selection.js +0 -28
- package/dist/components/FileManager/hooks/use-show-hidden-files.js +0 -20
- package/dist/components/FileManager/hooks/use-tree-additional-buttons.js +0 -39
- package/dist/components/FileManager/hooks/use-trigger-view-create-folder.js +0 -42
- package/dist/components/FileManager/hooks/use-trigger-view-rename.js +0 -25
- package/dist/components/FileManager/utils.js +0 -129
- package/dist/constants/file-grid-columns.js +0 -176
- package/dist/editor-BH6_A1k2.cjs +0 -1
- package/dist/file-manager.cjs +0 -1
- package/dist/file-manager.js +0 -22
- package/dist/hooks/use-flexible-actions.js +0 -72
- package/dist/hooks/use-width-breakpoint.js +0 -15
- package/dist/lazy-DMVYJhUR.cjs +0 -1
- package/dist/node_modules/mime-db/db.json.js +0 -2527
- package/dist/node_modules/mime-db/index.js +0 -8
- package/dist/node_modules/mime-types/index.js +0 -70
- package/dist/node_modules/mime-types/mimeScore.js +0 -38
- package/dist/src/__mocks__/monaco-editor.d.ts +0 -13
- package/dist/src/components/Analytics/Bar/utils.spec.d.ts +0 -1
- package/dist/src/components/Analytics/Histogram/utils.spec.d.ts +0 -1
- package/dist/src/components/Button/ButtonWrappers.test.d.ts +0 -1
- package/dist/src/components/Button/__tests__/utils.spec.d.ts +0 -1
- package/dist/src/components/FileManager/FileManager.d.ts +0 -326
- package/dist/src/components/FileManager/FileManagerContext.d.ts +0 -181
- package/dist/src/components/FileManager/FileManagerProvider.d.ts +0 -21
- package/dist/src/components/FileManager/FileManagerTooltip.d.ts +0 -12
- package/dist/src/components/FileManager/__mocks__/files.d.ts +0 -3
- package/dist/src/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.d.ts +0 -90
- package/dist/src/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.d.ts +0 -73
- package/dist/src/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.d.ts +0 -63
- package/dist/src/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.test.d.ts +0 -1
- package/dist/src/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.d.ts +0 -56
- package/dist/src/components/FileManager/components/FileManagerBulkActionsToolbar/constants.d.ts +0 -3
- package/dist/src/components/FileManager/components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.d.ts +0 -26
- package/dist/src/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.d.ts +0 -51
- package/dist/src/components/FileManager/components/FileManagerItemName/FileManagerItemName.d.ts +0 -57
- package/dist/src/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.d.ts +0 -71
- package/dist/src/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.d.ts +0 -64
- package/dist/src/components/FileManager/components/FileManagerNavigationPanel/constants.d.ts +0 -3
- package/dist/src/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.d.ts +0 -76
- package/dist/src/components/FileManager/components/FileMetadataPopup/FileMetadataPopup.d.ts +0 -50
- package/dist/src/components/FileManager/components/FileMetadataPopup/constants.d.ts +0 -6
- package/dist/src/components/FileManager/components/FoldersTree/FoldersTree.d.ts +0 -135
- package/dist/src/components/FileManager/components/FoldersTree/constants.d.ts +0 -6
- package/dist/src/components/FileManager/components/FoldersTree/hooks/use-expanded-paths.d.ts +0 -13
- package/dist/src/components/FileManager/constants.d.ts +0 -21
- package/dist/src/components/FileManager/errors.d.ts +0 -6
- package/dist/src/components/FileManager/hooks/__tests__/use-conflict-resolution.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-current-path.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-clipboard.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-delete.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-download.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-upload.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-show-hidden-files.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-trigger-view-rename.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/use-bulk-actions.d.ts +0 -30
- package/dist/src/components/FileManager/hooks/use-collapse-tree.d.ts +0 -9
- package/dist/src/components/FileManager/hooks/use-conflict-resolution.d.ts +0 -27
- package/dist/src/components/FileManager/hooks/use-current-path.d.ts +0 -13
- package/dist/src/components/FileManager/hooks/use-file-clipboard.d.ts +0 -37
- package/dist/src/components/FileManager/hooks/use-file-delete.d.ts +0 -13
- package/dist/src/components/FileManager/hooks/use-file-download.d.ts +0 -9
- package/dist/src/components/FileManager/hooks/use-file-manager-columns.d.ts +0 -43
- package/dist/src/components/FileManager/hooks/use-file-manager-context.d.ts +0 -7
- package/dist/src/components/FileManager/hooks/use-file-manager-tabs.d.ts +0 -10
- package/dist/src/components/FileManager/hooks/use-file-metadata.d.ts +0 -10
- package/dist/src/components/FileManager/hooks/use-file-search.d.ts +0 -23
- package/dist/src/components/FileManager/hooks/use-file-upload.d.ts +0 -64
- package/dist/src/components/FileManager/hooks/use-folder-creation.d.ts +0 -30
- package/dist/src/components/FileManager/hooks/use-grid-actions-column.d.ts +0 -15
- package/dist/src/components/FileManager/hooks/use-grid-context-menu.d.ts +0 -44
- package/dist/src/components/FileManager/hooks/use-item-renaming.d.ts +0 -22
- package/dist/src/components/FileManager/hooks/use-new-actions.d.ts +0 -23
- package/dist/src/components/FileManager/hooks/use-paths-selection.d.ts +0 -13
- package/dist/src/components/FileManager/hooks/use-show-hidden-files.d.ts +0 -9
- package/dist/src/components/FileManager/hooks/use-tree-additional-buttons.d.ts +0 -22
- package/dist/src/components/FileManager/hooks/use-trigger-view-create-folder.d.ts +0 -26
- package/dist/src/components/FileManager/hooks/use-trigger-view-rename.d.ts +0 -20
- package/dist/src/components/FileManager/utils.d.ts +0 -69
- package/dist/src/components/FileManager/utils.spec.d.ts +0 -1
- package/dist/src/components/Grid/comparators/base-column-comparator.spec.d.ts +0 -1
- package/dist/src/components/Grid/renderers/utils.spec.d.ts +0 -1
- package/dist/src/components/New/AutocompleteTagInput/utils.spec.d.ts +0 -1
- package/dist/src/components/New/Button/__tests__/utils.spec.d.ts +0 -1
- package/dist/src/components/New/Calendar/utils.spec.d.ts +0 -1
- package/dist/src/components/New/Slider/utils.spec.d.ts +0 -1
- package/dist/src/components/New/TagInput/utils.spec.d.ts +0 -1
- package/dist/src/components/Pagination/tests/utils.spec.d.ts +0 -1
- package/dist/src/components/SchemaRenderer/tests/utils.spec.d.ts +0 -1
- package/dist/src/components/Steps/tests/Steps.test.d.ts +0 -1
- package/dist/src/components/Steps/tests/utils.spec.d.ts +0 -1
- package/dist/src/constants/file-grid-columns.d.ts +0 -4
- package/dist/src/models/file-manager.d.ts +0 -19
- package/dist/src/subpaths/file-manager.d.ts +0 -21
- package/dist/src/types/file-manager.d.ts +0 -59
- package/dist/src/utils/__tests__/accessible-name.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/avatar.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/element-size-observer.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/file-accept.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/merge-classes.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/path.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/pointer.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/timezone.spec.d.ts +0 -1
- package/dist/src/utils/grid-registration.spec.d.ts +0 -1
- package/dist/types/file-manager.js +0 -12
- package/dist/use-file-manager-tabs-Bzzwwcgk.cjs +0 -3
- package/dist/utils/path.js +0 -4
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { IconArrowsHorizontal as O } from "@tabler/icons-react";
|
|
3
|
+
import { useState as T, useRef as a, useEffect as Y, useCallback as U } from "react";
|
|
4
|
+
import { DIAL_KIT_ICON_STROKE as $ } from "../constants/icon.js";
|
|
5
|
+
import { Tooltip as j } from "../Tooltip/Tooltip.js";
|
|
6
|
+
import { DIAL_ICON_SIZE as q } from "../../../constants/icon.js";
|
|
7
|
+
import { DIAL_KIT_CLASS as B } from "../../../constants/public-class-names.js";
|
|
8
|
+
import { TooltipPlacement as b } from "../../../types/tooltip.js";
|
|
9
|
+
import { mergeClasses as L } from "../../../utils/merge-classes.js";
|
|
10
|
+
const G = 16, V = 1e3, Z = 4, h = (r) => r == null ? !1 : (r.closest("[dir]")?.getAttribute("dir") ?? r.ownerDocument.defaultView?.getComputedStyle(r).direction) === "rtl", se = ({
|
|
11
|
+
width: r,
|
|
12
|
+
minWidth: o,
|
|
13
|
+
maxWidth: s,
|
|
14
|
+
defaultWidth: R,
|
|
15
|
+
onWidthChange: f,
|
|
16
|
+
label: w,
|
|
17
|
+
tooltip: z,
|
|
18
|
+
keyboardStep: g = G,
|
|
19
|
+
className: S
|
|
20
|
+
}) => {
|
|
21
|
+
const [y, D] = T(!1), [I, m] = T(!1), [k, A] = T(!1), c = a(null), C = a(null), p = a({ x: 0, y: 0 }), l = a(null), u = a(void 0), i = a(void 0);
|
|
22
|
+
Y(
|
|
23
|
+
() => () => {
|
|
24
|
+
clearTimeout(u.current), i.current != null && cancelAnimationFrame(i.current);
|
|
25
|
+
},
|
|
26
|
+
[]
|
|
27
|
+
);
|
|
28
|
+
const P = U(
|
|
29
|
+
(e) => {
|
|
30
|
+
const t = Number.isFinite(e) ? e : o;
|
|
31
|
+
return Math.round(Math.min(s, Math.max(o, t)));
|
|
32
|
+
},
|
|
33
|
+
[s, o]
|
|
34
|
+
), E = (e) => {
|
|
35
|
+
C.current?.style.setProperty(
|
|
36
|
+
"transform",
|
|
37
|
+
`translate(${e.clientX}px, ${e.clientY}px) translate(-50%, -50%)`
|
|
38
|
+
), A(!0);
|
|
39
|
+
}, x = (e) => {
|
|
40
|
+
p.current = { x: e.clientX, y: e.clientY }, clearTimeout(u.current), u.current = setTimeout(() => m(!0), V);
|
|
41
|
+
}, M = (e) => {
|
|
42
|
+
E(e), x(e);
|
|
43
|
+
}, H = () => {
|
|
44
|
+
A(!1), clearTimeout(u.current), m(!1);
|
|
45
|
+
}, K = (e) => {
|
|
46
|
+
e.button === 0 && (e.currentTarget.setPointerCapture(e.pointerId), l.current = { x: e.clientX, width: r }, D(!0));
|
|
47
|
+
}, N = (e) => {
|
|
48
|
+
E(e);
|
|
49
|
+
const t = l.current;
|
|
50
|
+
if (t == null) {
|
|
51
|
+
Math.hypot(
|
|
52
|
+
e.clientX - p.current.x,
|
|
53
|
+
e.clientY - p.current.y
|
|
54
|
+
) > Z && (m(!1), x(e));
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const n = h(c.current) ? -1 : 1, F = P(t.width + (e.clientX - t.x) * n);
|
|
58
|
+
i.current != null && cancelAnimationFrame(i.current), i.current = requestAnimationFrame(() => f(F));
|
|
59
|
+
}, _ = (e) => {
|
|
60
|
+
l.current != null && (l.current = null, D(!1), e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
|
|
61
|
+
}, X = (e) => {
|
|
62
|
+
const t = h(c.current) ? -1 : 1;
|
|
63
|
+
let n;
|
|
64
|
+
switch (e.key) {
|
|
65
|
+
case "ArrowRight":
|
|
66
|
+
n = r + g * t;
|
|
67
|
+
break;
|
|
68
|
+
case "ArrowLeft":
|
|
69
|
+
n = r - g * t;
|
|
70
|
+
break;
|
|
71
|
+
case "Home":
|
|
72
|
+
n = o;
|
|
73
|
+
break;
|
|
74
|
+
case "End":
|
|
75
|
+
n = s;
|
|
76
|
+
break;
|
|
77
|
+
default:
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
e.preventDefault(), f(P(n));
|
|
81
|
+
}, v = () => {
|
|
82
|
+
R != null && f(P(R));
|
|
83
|
+
};
|
|
84
|
+
return (
|
|
85
|
+
/* A focusable separator is the ARIA window-splitter widget, so it is interactive. */
|
|
86
|
+
/* @__PURE__ */ d(
|
|
87
|
+
"div",
|
|
88
|
+
{
|
|
89
|
+
ref: c,
|
|
90
|
+
role: "separator",
|
|
91
|
+
"aria-orientation": "vertical",
|
|
92
|
+
"aria-label": w,
|
|
93
|
+
"aria-valuenow": r,
|
|
94
|
+
"aria-valuemin": o,
|
|
95
|
+
"aria-valuemax": s,
|
|
96
|
+
tabIndex: 0,
|
|
97
|
+
className: L(
|
|
98
|
+
"absolute inset-y-0 end-0 -me-1 w-2 touch-none select-none",
|
|
99
|
+
"dial-resize-handle",
|
|
100
|
+
k && "dial-resize-handle-cursor-ready",
|
|
101
|
+
I && "dial-resize-handle-hover",
|
|
102
|
+
y && "dial-resize-handle-dragging",
|
|
103
|
+
S,
|
|
104
|
+
B.resizeHandle
|
|
105
|
+
),
|
|
106
|
+
onPointerEnter: M,
|
|
107
|
+
onPointerLeave: H,
|
|
108
|
+
onPointerDown: K,
|
|
109
|
+
onPointerMove: N,
|
|
110
|
+
onPointerUp: _,
|
|
111
|
+
onPointerCancel: _,
|
|
112
|
+
onKeyDown: X,
|
|
113
|
+
onDoubleClick: v,
|
|
114
|
+
children: /* @__PURE__ */ d(
|
|
115
|
+
j,
|
|
116
|
+
{
|
|
117
|
+
tooltip: z,
|
|
118
|
+
open: I && !y,
|
|
119
|
+
placement: h(c.current) ? b.Left : b.Right,
|
|
120
|
+
asChild: !0,
|
|
121
|
+
children: /* @__PURE__ */ d(
|
|
122
|
+
"span",
|
|
123
|
+
{
|
|
124
|
+
ref: C,
|
|
125
|
+
"aria-hidden": "true",
|
|
126
|
+
className: L(
|
|
127
|
+
"pointer-events-none fixed top-0 left-0 z-tooltip hidden text-secondary",
|
|
128
|
+
"dial-resize-handle-arrow"
|
|
129
|
+
),
|
|
130
|
+
children: /* @__PURE__ */ d(
|
|
131
|
+
O,
|
|
132
|
+
{
|
|
133
|
+
size: q.LG,
|
|
134
|
+
stroke: $
|
|
135
|
+
}
|
|
136
|
+
)
|
|
137
|
+
}
|
|
138
|
+
)
|
|
139
|
+
}
|
|
140
|
+
)
|
|
141
|
+
}
|
|
142
|
+
)
|
|
143
|
+
);
|
|
144
|
+
};
|
|
145
|
+
export {
|
|
146
|
+
se as ResizeHandle
|
|
147
|
+
};
|
|
@@ -1,83 +1,84 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
1
|
+
import { jsx as t, jsxs as u } from "react/jsx-runtime";
|
|
2
2
|
import { useId as F } from "react";
|
|
3
3
|
import { ErrorText as R } from "../../CaptionText/CaptionText.js";
|
|
4
4
|
import { Label as T } from "../../Label/Label.js";
|
|
5
|
-
import { JsonSchemaType as
|
|
6
|
-
import { resolveRef as
|
|
7
|
-
import { useSchemaContext as
|
|
8
|
-
import { SchemaFieldContent as
|
|
9
|
-
import { SchemaSection as
|
|
10
|
-
const
|
|
11
|
-
schema:
|
|
12
|
-
value:
|
|
13
|
-
onChange:
|
|
5
|
+
import { JsonSchemaType as b } from "../../../../types/json-schema.js";
|
|
6
|
+
import { resolveRef as E, isObjectType as I, validateRequired as L, buildSummary as v, isMissingRequiredValue as C, toRequiredMessage as M } from "../../../../utils/json-schema.js";
|
|
7
|
+
import { useSchemaContext as N, isPathTouched as x } from "../context.js";
|
|
8
|
+
import { SchemaFieldContent as S } from "./SchemaFieldContent.js";
|
|
9
|
+
import { SchemaSection as P } from "./SchemaSection.js";
|
|
10
|
+
const q = ({
|
|
11
|
+
schema: y,
|
|
12
|
+
value: e,
|
|
13
|
+
onChange: a,
|
|
14
14
|
path: o,
|
|
15
|
-
level:
|
|
15
|
+
level: m = 0,
|
|
16
16
|
required: i,
|
|
17
17
|
label: s
|
|
18
18
|
}) => {
|
|
19
|
-
const
|
|
20
|
-
rootSchema:
|
|
21
|
-
defaultExpanded:
|
|
19
|
+
const c = F(), {
|
|
20
|
+
rootSchema: n,
|
|
21
|
+
defaultExpanded: g = !0,
|
|
22
22
|
touchedPaths: p,
|
|
23
23
|
skipUntouched: l
|
|
24
|
-
} =
|
|
25
|
-
if (
|
|
26
|
-
const j =
|
|
24
|
+
} = N(), r = E(y, n), d = o.join(".");
|
|
25
|
+
if (I(r) || r.type === b.Array) {
|
|
26
|
+
const j = L(e, r, n, d), h = s ?? r.title ?? o[o.length - 1] ?? "Section";
|
|
27
27
|
return /* @__PURE__ */ t(
|
|
28
|
-
|
|
28
|
+
P,
|
|
29
29
|
{
|
|
30
|
-
title:
|
|
31
|
-
description:
|
|
32
|
-
level:
|
|
33
|
-
summary:
|
|
34
|
-
errorCount:
|
|
35
|
-
defaultExpanded:
|
|
30
|
+
title: h,
|
|
31
|
+
description: r.description,
|
|
32
|
+
level: m,
|
|
33
|
+
summary: v(e, r, n),
|
|
34
|
+
errorCount: x(d, p, l, !0) ? j.length : 0,
|
|
35
|
+
defaultExpanded: g,
|
|
36
36
|
children: /* @__PURE__ */ t(
|
|
37
|
-
|
|
37
|
+
S,
|
|
38
38
|
{
|
|
39
|
-
schema:
|
|
40
|
-
value:
|
|
41
|
-
onChange:
|
|
39
|
+
schema: r,
|
|
40
|
+
value: e,
|
|
41
|
+
onChange: a,
|
|
42
42
|
path: o,
|
|
43
|
-
level:
|
|
43
|
+
level: m + 1,
|
|
44
44
|
required: i,
|
|
45
|
-
ariaLabel:
|
|
45
|
+
ariaLabel: h
|
|
46
46
|
}
|
|
47
47
|
)
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
const
|
|
52
|
-
return /* @__PURE__ */
|
|
51
|
+
const f = x(d, p, l) && i && C(e) ? M(s ?? "Field") : void 0;
|
|
52
|
+
return /* @__PURE__ */ u("div", { className: "flex flex-col gap-2", children: [
|
|
53
53
|
/* @__PURE__ */ t(
|
|
54
54
|
T,
|
|
55
55
|
{
|
|
56
|
-
htmlFor:
|
|
56
|
+
htmlFor: c,
|
|
57
57
|
label: s,
|
|
58
58
|
required: i,
|
|
59
|
-
caption:
|
|
59
|
+
caption: r.description
|
|
60
60
|
}
|
|
61
61
|
),
|
|
62
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ u("div", { className: "flex flex-col gap-1", children: [
|
|
63
63
|
/* @__PURE__ */ t(
|
|
64
|
-
|
|
64
|
+
S,
|
|
65
65
|
{
|
|
66
|
-
schema:
|
|
67
|
-
value:
|
|
68
|
-
onChange:
|
|
66
|
+
schema: r,
|
|
67
|
+
value: e,
|
|
68
|
+
onChange: a,
|
|
69
69
|
path: o,
|
|
70
|
-
level:
|
|
70
|
+
level: m,
|
|
71
71
|
required: i,
|
|
72
72
|
suppressInlineError: !0,
|
|
73
|
-
fieldId:
|
|
74
|
-
ariaLabel: s
|
|
73
|
+
fieldId: c,
|
|
74
|
+
ariaLabel: s,
|
|
75
|
+
ariaDescribedBy: f ? `${c}-error` : void 0
|
|
75
76
|
}
|
|
76
77
|
),
|
|
77
|
-
/* @__PURE__ */ t(R, { text:
|
|
78
|
+
/* @__PURE__ */ t(R, { id: `${c}-error`, text: f })
|
|
78
79
|
] })
|
|
79
80
|
] });
|
|
80
81
|
};
|
|
81
82
|
export {
|
|
82
|
-
|
|
83
|
+
q as SchemaField
|
|
83
84
|
};
|
|
@@ -1,57 +1,59 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
1
|
+
import { jsx as r, jsxs as C } from "react/jsx-runtime";
|
|
2
|
+
import { useId as F } from "react";
|
|
3
|
+
import { ErrorText as T } from "../../CaptionText/CaptionText.js";
|
|
4
|
+
import { JsonSchemaType as h } from "../../../../types/json-schema.js";
|
|
5
|
+
import { resolveRef as A, isObjectType as k, isMissingRequiredValue as M, toRequiredMessage as R } from "../../../../utils/json-schema.js";
|
|
6
|
+
import { useSchemaContext as q, isPathTouched as B } from "../context.js";
|
|
7
|
+
import { SchemaAnyOfEditor as I } from "./SchemaAnyOfEditor.js";
|
|
8
|
+
import { SchemaArrayEditor as J } from "./SchemaArrayEditor.js";
|
|
9
|
+
import { SchemaJsonEditor as N } from "./SchemaJsonEditor.js";
|
|
10
|
+
import { SchemaKeyValueEditor as V } from "./SchemaKeyValueEditor.js";
|
|
11
|
+
import { SchemaObjectEditor as b } from "./SchemaObjectEditor.js";
|
|
12
|
+
import { SchemaOneOfEditor as D } from "./SchemaOneOfEditor.js";
|
|
12
13
|
import { SchemaPrimitiveField as K } from "./SchemaPrimitiveField.js";
|
|
13
|
-
const
|
|
14
|
-
schema:
|
|
14
|
+
const ee = ({
|
|
15
|
+
schema: S,
|
|
15
16
|
value: m,
|
|
16
|
-
onChange:
|
|
17
|
+
onChange: y,
|
|
17
18
|
path: d,
|
|
18
|
-
level:
|
|
19
|
-
required:
|
|
20
|
-
suppressInlineError:
|
|
19
|
+
level: u,
|
|
20
|
+
required: E,
|
|
21
|
+
suppressInlineError: P = !1,
|
|
21
22
|
fieldId: a,
|
|
22
|
-
ariaLabel:
|
|
23
|
+
ariaLabel: t,
|
|
24
|
+
ariaDescribedBy: g
|
|
23
25
|
}) => {
|
|
24
|
-
const { rootSchema:
|
|
25
|
-
|
|
26
|
+
const l = F(), { rootSchema: x, renderField: p, markTouched: O, touchedPaths: j, skipUntouched: v } = q(), e = A(S, x), f = d.join("."), c = (i) => {
|
|
27
|
+
O?.(f), y(i);
|
|
26
28
|
}, s = {
|
|
27
29
|
schema: e,
|
|
28
30
|
value: m,
|
|
29
31
|
onChange: c,
|
|
30
32
|
path: d,
|
|
31
|
-
level:
|
|
33
|
+
level: u
|
|
32
34
|
};
|
|
33
35
|
let o;
|
|
34
36
|
if (e.oneOf)
|
|
35
|
-
o = /* @__PURE__ */
|
|
36
|
-
else if (e.anyOf && e.type !==
|
|
37
|
-
o = /* @__PURE__ */
|
|
38
|
-
else if (
|
|
37
|
+
o = /* @__PURE__ */ r(D, { ...s, ariaLabel: t });
|
|
38
|
+
else if (e.anyOf && e.type !== h.Object)
|
|
39
|
+
o = /* @__PURE__ */ r(I, { ...s, ariaLabel: t });
|
|
40
|
+
else if (k(e)) {
|
|
39
41
|
const i = e.additionalProperties != null && e.additionalProperties !== !1, n = !e.properties || Object.keys(e.properties).length === 0;
|
|
40
|
-
i && n ? o = /* @__PURE__ */
|
|
41
|
-
|
|
42
|
+
i && n ? o = /* @__PURE__ */ r(V, { ...s }) : n && e.additionalProperties !== !1 ? o = /* @__PURE__ */ r(
|
|
43
|
+
N,
|
|
42
44
|
{
|
|
43
45
|
value: m,
|
|
44
46
|
onChange: c,
|
|
45
47
|
id: a,
|
|
46
|
-
ariaLabel:
|
|
48
|
+
ariaLabel: t
|
|
47
49
|
}
|
|
48
|
-
) : o = /* @__PURE__ */
|
|
49
|
-
} else if (e.type ===
|
|
50
|
-
o = /* @__PURE__ */
|
|
50
|
+
) : o = /* @__PURE__ */ r(b, { ...s });
|
|
51
|
+
} else if (e.type === h.Array)
|
|
52
|
+
o = /* @__PURE__ */ r(J, { ...s });
|
|
51
53
|
else {
|
|
52
|
-
const i =
|
|
53
|
-
o = /* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */
|
|
54
|
+
const i = B(f, j, v) && !!E && M(m), n = !P && i ? R(e.title ?? t ?? "Field") : void 0;
|
|
55
|
+
o = /* @__PURE__ */ C("div", { className: "flex flex-col gap-1", children: [
|
|
56
|
+
/* @__PURE__ */ r(
|
|
55
57
|
K,
|
|
56
58
|
{
|
|
57
59
|
schema: e,
|
|
@@ -59,14 +61,15 @@ const Z = ({
|
|
|
59
61
|
onChange: c,
|
|
60
62
|
invalid: i,
|
|
61
63
|
id: a,
|
|
62
|
-
ariaLabel:
|
|
64
|
+
ariaLabel: t,
|
|
65
|
+
ariaDescribedBy: n ? l : g
|
|
63
66
|
}
|
|
64
67
|
),
|
|
65
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ r(T, { id: l, text: n })
|
|
66
69
|
] });
|
|
67
70
|
}
|
|
68
|
-
return
|
|
71
|
+
return p ? p(d, e, o) : o;
|
|
69
72
|
};
|
|
70
73
|
export {
|
|
71
|
-
|
|
74
|
+
ee as SchemaFieldContent
|
|
72
75
|
};
|
|
@@ -1,55 +1,57 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { Input as
|
|
3
|
-
import { NumberInput as
|
|
4
|
-
import { PasswordInput as
|
|
5
|
-
import { RadioGroup as
|
|
6
|
-
import { Select as
|
|
7
|
-
import { Switch as
|
|
8
|
-
import { JsonSchemaType as p, SchemaDisplayMode as
|
|
9
|
-
import { RadioGroupOrientation as
|
|
10
|
-
import { useSchemaContext as
|
|
11
|
-
const
|
|
2
|
+
import { Input as I } from "../../Input/Input.js";
|
|
3
|
+
import { NumberInput as w } from "../../NumberInput/NumberInput.js";
|
|
4
|
+
import { PasswordInput as O } from "../../PasswordInput/PasswordInput.js";
|
|
5
|
+
import { RadioGroup as T } from "../../RadioGroup/RadioGroup.js";
|
|
6
|
+
import { Select as N } from "../../Select/Select.js";
|
|
7
|
+
import { Switch as v } from "../../Switch/Switch.js";
|
|
8
|
+
import { JsonSchemaType as p, SchemaDisplayMode as V, SchemaOrientation as F } from "../../../../types/json-schema.js";
|
|
9
|
+
import { RadioGroupOrientation as R } from "../../../../types/radio-group.js";
|
|
10
|
+
import { useSchemaContext as G } from "../context.js";
|
|
11
|
+
const C = (e) => typeof e == "string" ? e : e[0], S = (e) => e != null ? String(e) : "", M = (e) => e !== void 0 ? Number(e) : void 0, W = ({
|
|
12
12
|
schema: e,
|
|
13
13
|
value: t,
|
|
14
14
|
onChange: i,
|
|
15
15
|
invalid: c,
|
|
16
16
|
id: o,
|
|
17
|
-
ariaLabel: n
|
|
17
|
+
ariaLabel: n,
|
|
18
|
+
ariaDescribedBy: d
|
|
18
19
|
}) => {
|
|
19
20
|
const {
|
|
20
21
|
texts: a,
|
|
21
22
|
readonly: s = !1,
|
|
22
23
|
inputClassName: u,
|
|
23
|
-
acceptableResourceTypes:
|
|
24
|
-
} =
|
|
24
|
+
acceptableResourceTypes: P
|
|
25
|
+
} = G(), h = e.const !== void 0, m = Array.isArray(e.enum) ? e.enum : [], b = m.length > 0;
|
|
25
26
|
if (e["dial:resource"] === !0 && Array.isArray(e.acceptableResourceTypes) && e.acceptableResourceTypes.length > 0 && (e.type === p.String || e.type === void 0)) {
|
|
26
27
|
const r = (e.acceptableResourceTypes ?? []).flatMap(
|
|
27
|
-
(
|
|
28
|
-
const
|
|
29
|
-
return Array.isArray(
|
|
30
|
-
const
|
|
31
|
-
return { value:
|
|
28
|
+
(g) => {
|
|
29
|
+
const f = P?.[g];
|
|
30
|
+
return Array.isArray(f) ? f.map((A) => {
|
|
31
|
+
const y = String(A);
|
|
32
|
+
return { value: y, label: y };
|
|
32
33
|
}) : [];
|
|
33
34
|
}
|
|
34
35
|
);
|
|
35
36
|
return /* @__PURE__ */ l(
|
|
36
|
-
|
|
37
|
+
N,
|
|
37
38
|
{
|
|
38
39
|
id: o,
|
|
39
40
|
ariaLabel: n,
|
|
41
|
+
ariaDescribedBy: d,
|
|
40
42
|
options: r,
|
|
41
43
|
value: t != null ? String(t) : void 0,
|
|
42
44
|
invalid: c,
|
|
43
45
|
disabled: s,
|
|
44
|
-
onChange: (
|
|
46
|
+
onChange: (g) => i(C(g)),
|
|
45
47
|
placeholder: a.enumSelectPlaceholder,
|
|
46
48
|
className: u
|
|
47
49
|
}
|
|
48
50
|
);
|
|
49
51
|
}
|
|
50
|
-
if (
|
|
52
|
+
if (h)
|
|
51
53
|
return /* @__PURE__ */ l(
|
|
52
|
-
|
|
54
|
+
I,
|
|
53
55
|
{
|
|
54
56
|
id: o,
|
|
55
57
|
"aria-label": n,
|
|
@@ -58,33 +60,34 @@ const R = (e) => typeof e == "string" ? e : e[0], g = (e) => e != null ? String(
|
|
|
58
60
|
containerClassName: u
|
|
59
61
|
}
|
|
60
62
|
);
|
|
61
|
-
if (
|
|
63
|
+
if (b && e.enumDisplay === V.Radio)
|
|
62
64
|
return /* @__PURE__ */ l(
|
|
63
|
-
|
|
65
|
+
T,
|
|
64
66
|
{
|
|
65
67
|
id: o,
|
|
66
68
|
ariaLabel: n,
|
|
67
|
-
items:
|
|
69
|
+
items: m.map((r) => ({ value: String(r), label: String(r) })),
|
|
68
70
|
value: t != null ? String(t) : void 0,
|
|
69
|
-
orientation: e.enumOrientation ===
|
|
71
|
+
orientation: e.enumOrientation === F.Row ? R.Row : R.Column,
|
|
70
72
|
disabled: s,
|
|
71
73
|
onChange: (r) => i(r)
|
|
72
74
|
}
|
|
73
75
|
);
|
|
74
|
-
if (
|
|
76
|
+
if (b)
|
|
75
77
|
return /* @__PURE__ */ l(
|
|
76
|
-
|
|
78
|
+
N,
|
|
77
79
|
{
|
|
78
80
|
id: o,
|
|
79
81
|
ariaLabel: n,
|
|
80
|
-
|
|
82
|
+
ariaDescribedBy: d,
|
|
83
|
+
options: m.map((r) => ({
|
|
81
84
|
value: String(r),
|
|
82
85
|
label: String(r)
|
|
83
86
|
})),
|
|
84
87
|
value: t != null ? String(t) : void 0,
|
|
85
88
|
invalid: c,
|
|
86
89
|
disabled: s,
|
|
87
|
-
onChange: (r) => i(
|
|
90
|
+
onChange: (r) => i(C(r)),
|
|
88
91
|
placeholder: a.enumSelectPlaceholder,
|
|
89
92
|
className: u
|
|
90
93
|
}
|
|
@@ -92,7 +95,7 @@ const R = (e) => typeof e == "string" ? e : e[0], g = (e) => e != null ? String(
|
|
|
92
95
|
switch (e.type) {
|
|
93
96
|
case p.Boolean:
|
|
94
97
|
return /* @__PURE__ */ l(
|
|
95
|
-
|
|
98
|
+
v,
|
|
96
99
|
{
|
|
97
100
|
id: o,
|
|
98
101
|
"aria-label": n,
|
|
@@ -104,26 +107,28 @@ const R = (e) => typeof e == "string" ? e : e[0], g = (e) => e != null ? String(
|
|
|
104
107
|
case p.Integer:
|
|
105
108
|
case p.Number:
|
|
106
109
|
return /* @__PURE__ */ l(
|
|
107
|
-
|
|
110
|
+
w,
|
|
108
111
|
{
|
|
109
112
|
id: o,
|
|
110
113
|
"aria-label": n,
|
|
114
|
+
"aria-describedby": d,
|
|
111
115
|
integer: e.type === p.Integer,
|
|
112
|
-
value:
|
|
116
|
+
value: S(t),
|
|
113
117
|
invalid: c,
|
|
114
118
|
disabled: s,
|
|
115
|
-
onChange: (r) => i(
|
|
119
|
+
onChange: (r) => i(M(r)),
|
|
116
120
|
placeholder: e.type === p.Integer ? a.integerInputPlaceholder : a.numberInputPlaceholder,
|
|
117
121
|
containerClassName: u
|
|
118
122
|
}
|
|
119
123
|
);
|
|
120
124
|
default:
|
|
121
125
|
return e.isProtected ? /* @__PURE__ */ l(
|
|
122
|
-
|
|
126
|
+
O,
|
|
123
127
|
{
|
|
124
128
|
id: o,
|
|
125
129
|
"aria-label": n,
|
|
126
|
-
|
|
130
|
+
"aria-describedby": d,
|
|
131
|
+
value: S(t),
|
|
127
132
|
invalid: c,
|
|
128
133
|
disabled: s,
|
|
129
134
|
onChange: (r) => i(r ?? void 0),
|
|
@@ -131,11 +136,12 @@ const R = (e) => typeof e == "string" ? e : e[0], g = (e) => e != null ? String(
|
|
|
131
136
|
containerClassName: u
|
|
132
137
|
}
|
|
133
138
|
) : /* @__PURE__ */ l(
|
|
134
|
-
|
|
139
|
+
I,
|
|
135
140
|
{
|
|
136
141
|
id: o,
|
|
137
142
|
"aria-label": n,
|
|
138
|
-
|
|
143
|
+
"aria-describedby": d,
|
|
144
|
+
value: S(t),
|
|
139
145
|
invalid: c,
|
|
140
146
|
disabled: s,
|
|
141
147
|
onChange: (r) => i(r ?? void 0),
|
|
@@ -146,5 +152,5 @@ const R = (e) => typeof e == "string" ? e : e[0], g = (e) => e != null ? String(
|
|
|
146
152
|
}
|
|
147
153
|
};
|
|
148
154
|
export {
|
|
149
|
-
|
|
155
|
+
W as SchemaPrimitiveField
|
|
150
156
|
};
|