datocms-react-ui 3.1.0-next.6 → 4.0.0-next.7
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 +2 -1
- package/dist/DateInput.d.ts +2 -0
- package/dist/DateInput.js +2 -0
- package/dist/DateTimeInput.d.ts +2 -0
- package/dist/DateTimeInput.js +2 -0
- package/dist/DateTimeRangeInput.d.ts +2 -0
- package/dist/DateTimeRangeInput.js +2 -0
- package/dist/FilterBuilder.d.ts +2 -0
- package/dist/FilterBuilder.js +2 -0
- package/dist/RecordRow.d.ts +2 -0
- package/dist/RecordRow.js +2 -0
- package/dist/UploadCard.js +2 -2
- package/dist/UploadPreview.d.ts +2 -2
- package/dist/UploadPreview.js +1 -1
- package/dist/UserRow.d.ts +2 -0
- package/dist/UserRow.js +2 -0
- package/dist/react-ui/src/Canvas.d.ts +7 -1
- package/dist/react-ui/src/Canvas.js +26 -4
- package/dist/react-ui/src/ctxAnswer.js +21 -0
- package/dist/react-ui/src/ctxDateSettings.js +7 -5
- package/dist/react-ui/src/ctxRecordPresentation.js +34 -0
- package/dist/react-ui/src/ctxUploads.js +23 -0
- package/dist/styles.css +592 -11
- package/dist/ui-public/icons/index.js +79 -81
- package/dist/ui-public/locales/en.js +43 -5
- package/dist/ui-public/src/Message.d.ts +3 -4
- package/dist/ui-public/src/UiTextKey.d.ts +1 -1
- package/dist/ui-public/src/actions/Actions/ActionTooltip.js +1 -1
- package/dist/ui-public/src/actions/Actions/registry.d.ts +2 -2
- package/dist/ui-public/src/actions/Actions/registry.js +2 -2
- package/dist/ui-public/src/actions/Button.d.ts +10 -10
- package/dist/ui-public/src/actions/Button.js +1 -1
- package/dist/ui-public/src/actions/Dropdown/Menu.d.ts +2 -2
- package/dist/ui-public/src/actions/Dropdown/Option.d.ts +7 -7
- package/dist/ui-public/src/actions/Dropdown/index.d.ts +1 -1
- package/dist/ui-public/src/actions/Dropdown/triggers/ButtonTrigger.d.ts +5 -5
- package/dist/ui-public/src/actions/Dropdown/triggers/DropdownTriggerButton.d.ts +2 -2
- package/dist/ui-public/src/actions/Dropdown/triggers/IconTrigger.d.ts +6 -6
- package/dist/ui-public/src/actions/Dropdown/triggers/IconTrigger.js +1 -1
- package/dist/ui-public/src/actions/EditorToolbar/Button.d.ts +1 -1
- package/dist/ui-public/src/actions/MultipleSelectionActionBar.d.ts +1 -1
- package/dist/ui-public/src/actions/SplitButton/Caret.js +2 -2
- package/dist/ui-public/src/actions/SplitButton/Halves.js +1 -1
- package/dist/ui-public/src/actions/SplitButton/index.d.ts +3 -3
- package/dist/ui-public/src/actions/disabledReason.d.ts +4 -4
- package/dist/ui-public/src/content/Avatar.d.ts +3 -3
- package/dist/ui-public/src/content/Avatar.js +2 -2
- package/dist/ui-public/src/content/CodeSnippet.d.ts +1 -1
- package/dist/ui-public/src/content/CopyableValue.d.ts +1 -1
- package/dist/ui-public/src/content/EnvironmentPill.d.ts +1 -1
- package/dist/ui-public/src/content/EnvironmentPill.js +1 -1
- package/dist/ui-public/src/content/IconAvatar.d.ts +1 -1
- package/dist/ui-public/src/content/ItemStatus.d.ts +1 -1
- package/dist/ui-public/src/content/Pill.d.ts +1 -1
- package/dist/ui-public/src/content/SmartDate.d.ts +1 -1
- package/dist/ui-public/src/content/UploadPreview/asset.js +200 -0
- package/dist/ui-public/src/content/UploadPreview/audio.js +120 -0
- package/dist/ui-public/src/content/{UploadPreview.d.ts → UploadPreview/box.d.ts} +10 -10
- package/dist/ui-public/src/content/{UploadPreview.js → UploadPreview/box.js} +7 -7
- package/dist/ui-public/src/content/{uploadPreviewFit.d.ts → UploadPreview/fit.d.ts} +2 -2
- package/dist/ui-public/src/content/{uploadPreviewFit.js → UploadPreview/fit.js} +3 -3
- package/dist/ui-public/src/content/UploadPreview/index.d.ts +61 -0
- package/dist/ui-public/src/content/UploadPreview/index.js +36 -0
- package/dist/ui-public/src/content/UploadPreview/presentation.js +63 -0
- package/dist/ui-public/src/content/UploadPreview/thumbhash.js +91 -0
- package/dist/ui-public/src/content/UploadPreview/upload.d.ts +104 -0
- package/dist/ui-public/src/content/UploadPreview/upload.js +112 -0
- package/dist/ui-public/src/content/UsageMeter.d.ts +1 -1
- package/dist/ui-public/src/content/ValidityTriangles.d.ts +1 -1
- package/dist/ui-public/src/feedback/BlankSlate.d.ts +5 -5
- package/dist/ui-public/src/feedback/Callout.d.ts +5 -5
- package/dist/ui-public/src/feedback/Callout.js +1 -1
- package/dist/ui-public/src/feedback/ProgressBar.d.ts +4 -4
- package/dist/ui-public/src/feedback/Spinner.d.ts +6 -6
- package/dist/ui-public/src/feedback/Spinner.js +1 -1
- package/dist/ui-public/src/form/DateInput.d.ts +13 -0
- package/dist/ui-public/src/form/DateInput.js +16 -0
- package/dist/ui-public/src/form/DateTimeInput/Base.d.ts +89 -0
- package/dist/ui-public/src/form/DateTimeInput/Base.js +330 -0
- package/dist/ui-public/src/form/DateTimeInput/CalendarGrid.d.ts +29 -0
- package/dist/ui-public/src/form/DateTimeInput/CalendarGrid.js +195 -0
- package/dist/ui-public/src/form/DateTimeInput/dateText.js +38 -0
- package/dist/ui-public/src/form/DateTimeInput/index.d.ts +10 -0
- package/dist/ui-public/src/form/DateTimeInput/index.js +18 -0
- package/dist/ui-public/src/form/DateTimeInput/value.js +31 -0
- package/dist/ui-public/src/form/DateTimeRangeInput/Panel.js +167 -0
- package/dist/ui-public/src/form/DateTimeRangeInput/index.d.ts +123 -0
- package/dist/ui-public/src/form/DateTimeRangeInput/index.js +186 -0
- package/dist/ui-public/src/form/DateTimeRangeInput/rangeLabel.js +46 -0
- package/dist/ui-public/src/form/FieldHint.d.ts +2 -2
- package/dist/ui-public/src/form/FieldWrapper.d.ts +9 -9
- package/dist/ui-public/src/form/FieldWrapper.js +3 -3
- package/dist/ui-public/src/form/FilterBuilder/Editor.js +123 -0
- package/dist/ui-public/src/form/FilterBuilder/index.d.ts +9 -0
- package/dist/ui-public/src/form/FilterBuilder/index.js +294 -0
- package/dist/ui-public/src/form/FilterBuilder/types.d.ts +188 -0
- package/dist/ui-public/src/form/FilterBuilder/values.js +86 -0
- package/dist/ui-public/src/form/InputGroup.d.ts +2 -2
- package/dist/ui-public/src/form/InputGroup.js +1 -1
- package/dist/ui-public/src/form/KeyValueList.d.ts +1 -1
- package/dist/ui-public/src/form/Label.d.ts +2 -2
- package/dist/ui-public/src/form/RadioGroupInput.d.ts +2 -2
- package/dist/ui-public/src/form/RadioGroupInput.js +1 -1
- package/dist/ui-public/src/form/SelectInput/SelectMenu.d.ts +2 -2
- package/dist/ui-public/src/form/SelectInput/index.d.ts +3 -3
- package/dist/ui-public/src/form/SwitchInput.d.ts +2 -2
- package/dist/ui-public/src/form/SwitchList.d.ts +1 -1
- package/dist/ui-public/src/form/SwitchList.js +1 -1
- package/dist/ui-public/src/form/TableList.d.ts +2 -2
- package/dist/ui-public/src/form/TextareaInput.js +1 -1
- package/dist/ui-public/src/form/inputProps.d.ts +6 -6
- package/dist/ui-public/src/hooks/useAsyncSelectOptions.d.ts +1 -1
- package/dist/ui-public/src/hooks/useSmartRowClick.d.ts +1 -1
- package/dist/ui-public/src/hooks/useSmartRowClick.js +1 -1
- package/dist/ui-public/src/layout/Page/PageGroup.d.ts +2 -2
- package/dist/ui-public/src/layout/Page/PageGroup.js +1 -1
- package/dist/ui-public/src/layout/Pane/FormHeader.d.ts +1 -1
- package/dist/ui-public/src/layout/Pane/FormHeader.js +1 -1
- package/dist/ui-public/src/layout/Pane/ListFilter.d.ts +1 -1
- package/dist/ui-public/src/layout/Pane/ListPresets.d.ts +1 -1
- package/dist/ui-public/src/layout/Pane/PaneHeader.d.ts +1 -1
- package/dist/ui-public/src/layout/Pane/index.d.ts +2 -2
- package/dist/ui-public/src/layout/SidebarPanel.d.ts +1 -1
- package/dist/ui-public/src/layout/SplitPane/Rail.js +1 -1
- package/dist/ui-public/src/layout/SplitPane/index.d.ts +6 -6
- package/dist/ui-public/src/layout/Toolbar/AddNewButton.d.ts +2 -2
- package/dist/ui-public/src/layout/Toolbar/Help.d.ts +3 -3
- package/dist/ui-public/src/layout/Toolbar/Help.js +2 -2
- package/dist/ui-public/src/layout/Toolbar/Note.d.ts +1 -1
- package/dist/ui-public/src/layout/Toolbar/Note.js +1 -1
- package/dist/ui-public/src/layout/Toolbar/Pagination.d.ts +1 -1
- package/dist/ui-public/src/layout/Toolbar/Pagination.js +1 -1
- package/dist/ui-public/src/layout/Toolbar/PresetsTitle.d.ts +3 -3
- package/dist/ui-public/src/layout/Toolbar/PresetsTitle.js +2 -2
- package/dist/ui-public/src/layout/Toolbar/PrimaryButton.d.ts +3 -3
- package/dist/ui-public/src/layout/Toolbar/Root.d.ts +1 -1
- package/dist/ui-public/src/layout/Toolbar/Root.js +4 -1
- package/dist/ui-public/src/layout/Toolbar/ToolbarTitleTrigger.js +1 -1
- package/dist/ui-public/src/lists/CardList.d.ts +3 -3
- package/dist/ui-public/src/lists/EmptySlot.d.ts +1 -1
- package/dist/ui-public/src/lists/InfoList/User.d.ts +1 -1
- package/dist/ui-public/src/lists/InfoList/Value.d.ts +1 -1
- package/dist/ui-public/src/lists/InfoList/Value.js +1 -1
- package/dist/ui-public/src/lists/InfoList/index.d.ts +3 -3
- package/dist/ui-public/src/lists/InfoList/index.js +1 -1
- package/dist/ui-public/src/lists/MediaCard.d.ts +7 -7
- package/dist/ui-public/src/lists/RecordRow/Image.d.ts +24 -0
- package/dist/ui-public/src/lists/RecordRow/Image.js +22 -0
- package/dist/ui-public/src/lists/RecordRow/List.d.ts +26 -0
- package/dist/ui-public/src/lists/RecordRow/List.js +30 -0
- package/dist/ui-public/src/lists/RecordRow/context.js +31 -0
- package/dist/ui-public/src/lists/RecordRow/index.d.ts +94 -0
- package/dist/ui-public/src/lists/RecordRow/index.js +122 -0
- package/dist/ui-public/src/lists/RecordRow/presentation.js +73 -0
- package/dist/ui-public/src/lists/RecordRow/types.d.ts +58 -0
- package/dist/ui-public/src/lists/RowList.d.ts +5 -5
- package/dist/ui-public/src/lists/SettingsList.d.ts +3 -3
- package/dist/ui-public/src/lists/SettingsList.js +2 -2
- package/dist/ui-public/src/lists/Table/Row.d.ts +5 -5
- package/dist/ui-public/src/lists/Table/Table.d.ts +3 -3
- package/dist/ui-public/src/lists/Table/TreeToggle.d.ts +2 -2
- package/dist/ui-public/src/lists/Table/TreeToggle.js +1 -1
- package/dist/ui-public/src/lists/Table/cells/LinkCell.d.ts +1 -1
- package/dist/ui-public/src/lists/TreeRow/Action.d.ts +1 -1
- package/dist/ui-public/src/lists/TreeRow/Action.js +1 -1
- package/dist/ui-public/src/lists/TreeRow/Link.d.ts +1 -1
- package/dist/ui-public/src/lists/TreeRow/Link.js +1 -1
- package/dist/ui-public/src/lists/UploadCard.d.ts +66 -3
- package/dist/ui-public/src/lists/UploadCard.js +116 -7
- package/dist/ui-public/src/lists/UserRow.d.ts +122 -0
- package/dist/ui-public/src/lists/UserRow.js +104 -0
- package/dist/ui-public/src/lists/dnd/DragHandle.d.ts +2 -2
- package/dist/ui-public/src/lists/dnd/SortableList.d.ts +1 -1
- package/dist/ui-public/src/lists/dnd/dropTargetClassName.d.ts +1 -1
- package/dist/ui-public/src/lists/dnd/tree/SortableTree.d.ts +2 -2
- package/dist/ui-public/src/navigation/Chevron.d.ts +4 -4
- package/dist/ui-public/src/navigation/Chevron.js +1 -1
- package/dist/ui-public/src/navigation/Link.d.ts +5 -5
- package/dist/ui-public/src/navigation/Link.js +1 -1
- package/dist/ui-public/src/navigation/NavList.d.ts +1 -1
- package/dist/ui-public/src/navigation/NavList.js +1 -1
- package/dist/ui-public/src/navigation/NavigationProvider.d.ts +1 -1
- package/dist/ui-public/src/navigation/SegmentedControl.d.ts +2 -2
- package/dist/ui-public/src/navigation/SettingsMenu.d.ts +8 -8
- package/dist/ui-public/src/navigation/SettingsMenu.js +1 -1
- package/dist/ui-public/src/navigation/SidebarTree/SidebarTreeNode.d.ts +4 -4
- package/dist/ui-public/src/overlays/FullscreenModal/TitleContext.d.ts +1 -1
- package/dist/ui-public/src/overlays/FullscreenModal/TitleContext.js +1 -1
- package/dist/ui-public/src/overlays/NewZIndex.d.ts +1 -1
- package/dist/ui-public/src/overlays/NewZIndex.js +1 -1
- package/dist/ui-public/src/overlays/Popover.d.ts +1 -1
- package/dist/ui-public/src/overlays/PortalWrapper.js +1 -1
- package/dist/ui-public/src/overlays/useModalClose.js +3 -3
- package/dist/ui-public/src/patterns/ListDetail/FloatingDetail.js +2 -2
- package/dist/ui-public/src/patterns/ListDetail/Page.d.ts +8 -9
- package/dist/ui-public/src/patterns/ListDetail/Page.js +4 -5
- package/dist/ui-public/src/patterns/ListDetail/Panel.d.ts +2 -2
- package/dist/ui-public/src/patterns/ListDetail/Panel.js +1 -1
- package/dist/ui-public/src/patterns/ListDetail/Split.d.ts +9 -10
- package/dist/ui-public/src/patterns/ListDetail/Split.js +5 -5
- package/dist/ui-public/src/patterns/ListFormPage.d.ts +3 -3
- package/dist/ui-public/src/patterns/ListFormPage.js +1 -1
- package/dist/ui-public/src/semantic/Heading.d.ts +1 -1
- package/dist/ui-public/src/semantic/Heading.js +1 -1
- package/dist/ui-public/src/semantic/Image.js +1 -1
- package/dist/ui-public/src/semantic/Nav.d.ts +3 -3
- package/dist/ui-public/src/semantic/Nav.js +3 -3
- package/dist/ui-public/src/semantic/RawButton.d.ts +3 -3
- package/dist/ui-public/src/semantic/RawButton.js +1 -1
- package/dist/ui-public/src/semantic/Search.d.ts +1 -1
- package/dist/ui-public/src/semantic/Search.js +1 -1
- package/dist/ui-public/src/utils/format.d.ts +21 -0
- package/dist/ui-public/src/utils/format.js +20 -0
- package/dist/ui-public/src/utils/formatDate.d.ts +10 -2
- package/dist/ui-public/src/utils/formatDate.js +4 -4
- package/dist/ui-public/src/utils/tickBatcher.js +44 -0
- package/dist/ui-public/src/utils/timezones.js +277 -0
- package/dist/ui-public/src/utils/weekStartForLocale.js +25 -0
- package/dist/utils/format.d.ts +1 -0
- package/dist/utils/format.js +2 -0
- package/package.json +2 -2
- package/dist/ui-public/icons/lucide/receipt.js +0 -26
|
@@ -33,7 +33,7 @@ export type PaneProps = PropsWithChildren<{
|
|
|
33
33
|
/**
|
|
34
34
|
* Puts the pane in a mode (for example the reorder mode of a sidebar).
|
|
35
35
|
* While the prop is set, the pane draws a primary frame around its
|
|
36
|
-
* content, under the title bar.
|
|
36
|
+
* content, under the title bar. So the user sees that the pane is in
|
|
37
37
|
* that mode. The title in the header is the name of the mode.
|
|
38
38
|
*
|
|
39
39
|
* For a screen reader, the content is then a group with the title as its
|
|
@@ -99,7 +99,7 @@ declare const _default: React.NamedExoticComponent<{
|
|
|
99
99
|
/**
|
|
100
100
|
* Puts the pane in a mode (for example the reorder mode of a sidebar).
|
|
101
101
|
* While the prop is set, the pane draws a primary frame around its
|
|
102
|
-
* content, under the title bar.
|
|
102
|
+
* content, under the title bar. So the user sees that the pane is in
|
|
103
103
|
* that mode. The title in the header is the name of the mode.
|
|
104
104
|
*
|
|
105
105
|
* For a screen reader, the content is then a group with the title as its
|
|
@@ -47,7 +47,7 @@ export type SidebarPanelUncontrolled = {
|
|
|
47
47
|
collapse?: never;
|
|
48
48
|
};
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* You keep the open state, for example with
|
|
51
51
|
* `useLocalStorageSidebarPanelOpen`.
|
|
52
52
|
*/
|
|
53
53
|
export type SidebarPanelControlled = {
|
|
@@ -15,7 +15,7 @@ var LABELS = {
|
|
|
15
15
|
/**
|
|
16
16
|
* The rail of a collapsed secondary pane: a narrow button that opens the
|
|
17
17
|
* pane. `SplitPane` renders it. The product scenes render it alone, as the
|
|
18
|
-
* picture at rest of a collapsed pane (`
|
|
18
|
+
* picture at rest of a collapsed pane (`SplitPane/Rail`).
|
|
19
19
|
*/
|
|
20
20
|
var Rail = React.forwardRef(function Rail({ side, state = "collapsed", wrapIcon, onClick, onPointerDown, onHoverChange }, ref) {
|
|
21
21
|
const { t } = useTranslation();
|
|
@@ -3,8 +3,8 @@ export { TOGGLE_LEFT_SIDEBAR_ACTION_ID, TOGGLE_RIGHT_SIDEBAR_ACTION_ID, } from '
|
|
|
3
3
|
export type SplitPaneProps = {
|
|
4
4
|
/**
|
|
5
5
|
* "split" puts the two panes side by side. "overlay" shows the secondary
|
|
6
|
-
* pane over the page, for example on a small viewport.
|
|
7
|
-
*
|
|
6
|
+
* pane over the page, for example on a small viewport. You
|
|
7
|
+
* compute it, because its own controls use the same breakpoint.
|
|
8
8
|
* @default "split"
|
|
9
9
|
*/
|
|
10
10
|
mode?: 'overlay' | 'split';
|
|
@@ -43,7 +43,7 @@ export type SplitPaneProps = {
|
|
|
43
43
|
*/
|
|
44
44
|
export type SplitPaneSize = number | `${number}%`;
|
|
45
45
|
export type SplitPaneCollapse = {
|
|
46
|
-
/**
|
|
46
|
+
/** Says if the secondary pane is open. */
|
|
47
47
|
open: boolean;
|
|
48
48
|
/**
|
|
49
49
|
* Runs with the new state: `true` when the pane opens, `false` when it
|
|
@@ -51,7 +51,7 @@ export type SplitPaneCollapse = {
|
|
|
51
51
|
*/
|
|
52
52
|
onToggle: (open: boolean) => void;
|
|
53
53
|
/**
|
|
54
|
-
* Hides the rail of the collapsed pane. Use it when
|
|
54
|
+
* Hides the rail of the collapsed pane. Use it when you give another
|
|
55
55
|
* control that opens the pane, for example the menu button of the mobile
|
|
56
56
|
* header.
|
|
57
57
|
* @default false
|
|
@@ -59,8 +59,8 @@ export type SplitPaneCollapse = {
|
|
|
59
59
|
hideRail?: boolean;
|
|
60
60
|
/**
|
|
61
61
|
* Puts the toggle (the button on the sash or the icon of the rail) in an
|
|
62
|
-
* element of
|
|
63
|
-
*
|
|
62
|
+
* element of yours, for example a spotlight that explains the toggle to the
|
|
63
|
+
* user.
|
|
64
64
|
*/
|
|
65
65
|
wrapToggle?: (toggle: React.ReactElement) => React.ReactNode;
|
|
66
66
|
};
|
|
@@ -4,7 +4,7 @@ import { SvgIcon } from '../../utils/types.js';
|
|
|
4
4
|
type ExtraAction = {
|
|
5
5
|
/** The text of the action */
|
|
6
6
|
label: TextMessage;
|
|
7
|
-
/** The full URL of the page (
|
|
7
|
+
/** The full URL of the page (DatoCMS adds its prefixes) */
|
|
8
8
|
to: string;
|
|
9
9
|
/** The icon of the action */
|
|
10
10
|
icon?: SvgIcon;
|
|
@@ -13,7 +13,7 @@ export type AddNewButtonProps = {
|
|
|
13
13
|
/** The text of the button ("Add new webhook") */
|
|
14
14
|
label: TextMessage;
|
|
15
15
|
/**
|
|
16
|
-
* The full URL of the page of the new item (
|
|
16
|
+
* The full URL of the page of the new item (DatoCMS adds its prefixes,
|
|
17
17
|
* for example the environment)
|
|
18
18
|
*/
|
|
19
19
|
to: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
export type HelpProps = {
|
|
3
|
-
/** The text that
|
|
3
|
+
/** The text that says what the page is for: two short sentences, plain text */
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
/**
|
|
6
6
|
* The page of the documentation about the subject. A "Learn more" link to
|
|
@@ -9,14 +9,14 @@ export type HelpProps = {
|
|
|
9
9
|
docsUrl?: string;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
* A "?" button that opens the text that
|
|
12
|
+
* A "?" button that opens the text that says what the page is for. Give
|
|
13
13
|
* Help to the "help" prop of Toolbar.Title, not as a sibling of the title.
|
|
14
14
|
*/
|
|
15
15
|
declare function Help({ children, docsUrl }: HelpProps): React.JSX.Element;
|
|
16
16
|
/**
|
|
17
17
|
* The text of a Help, without the "?" button. Help shows it in its popover.
|
|
18
18
|
* A title that opens a menu (Toolbar.PresetsTitle) shows it at the bottom of
|
|
19
|
-
* the menu ("footer"), with "secondary",
|
|
19
|
+
* the menu ("footer"), with "secondary", instead of the "?" button.
|
|
20
20
|
*/
|
|
21
21
|
export declare function HelpBody({ children, docsUrl, secondary, }: HelpProps & {
|
|
22
22
|
/**
|
|
@@ -17,7 +17,7 @@ function Trigger({ open, onTrigger }) {
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* A "?" button that opens the text that
|
|
20
|
+
* A "?" button that opens the text that says what the page is for. Give
|
|
21
21
|
* Help to the "help" prop of Toolbar.Title, not as a sibling of the title.
|
|
22
22
|
*/
|
|
23
23
|
function Help({ children, docsUrl }) {
|
|
@@ -36,7 +36,7 @@ function Help({ children, docsUrl }) {
|
|
|
36
36
|
/**
|
|
37
37
|
* The text of a Help, without the "?" button. Help shows it in its popover.
|
|
38
38
|
* A title that opens a menu (Toolbar.PresetsTitle) shows it at the bottom of
|
|
39
|
-
* the menu ("footer"), with "secondary",
|
|
39
|
+
* the menu ("footer"), with "secondary", instead of the "?" button.
|
|
40
40
|
*/
|
|
41
41
|
function HelpBody({ children, docsUrl, secondary = false }) {
|
|
42
42
|
const { t } = useTranslation();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
|
-
* A short quiet text before a button at the end of the toolbar, that
|
|
3
|
+
* A short quiet text before a button at the end of the toolbar, that says
|
|
4
4
|
* why the button is there (for example "New version available!" before
|
|
5
5
|
* "Update"). It ends with an ellipsis when the toolbar is narrow.
|
|
6
6
|
*/
|
|
@@ -2,7 +2,7 @@ import "react";
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
//#region ../ui-public/src/layout/Toolbar/Note.tsx
|
|
4
4
|
/**
|
|
5
|
-
* A short quiet text before a button at the end of the toolbar, that
|
|
5
|
+
* A short quiet text before a button at the end of the toolbar, that says
|
|
6
6
|
* why the button is there (for example "New version available!" before
|
|
7
7
|
* "Update"). It ends with an ellipsis when the toolbar is narrow.
|
|
8
8
|
*/
|
|
@@ -28,7 +28,7 @@ export type ToolbarPaginationProps = Omit<PaginationProps, 'maxPagesToBeShown' |
|
|
|
28
28
|
/**
|
|
29
29
|
* The pages of a list. The pages show when the list has more than one page.
|
|
30
30
|
* The "Show" select shows when the list has more items than its smallest
|
|
31
|
-
* option,
|
|
31
|
+
* option, so the user can always go back to a smaller page.
|
|
32
32
|
*/
|
|
33
33
|
declare function ToolbarPagination({ ariaLabel, totalEntries, compact, perPage, currentPage, onChange, disabled, perPageSelect, }: ToolbarPaginationProps): React.JSX.Element | null;
|
|
34
34
|
export default ToolbarPagination;
|
|
@@ -14,7 +14,7 @@ var DEFAULT_PER_PAGE_OPTIONS = [
|
|
|
14
14
|
/**
|
|
15
15
|
* The pages of a list. The pages show when the list has more than one page.
|
|
16
16
|
* The "Show" select shows when the list has more items than its smallest
|
|
17
|
-
* option,
|
|
17
|
+
* option, so the user can always go back to a smaller page.
|
|
18
18
|
*/
|
|
19
19
|
function ToolbarPagination({ ariaLabel, totalEntries, compact, perPage, currentPage, onChange, disabled, perPageSelect }) {
|
|
20
20
|
const paneAriaLabel = usePaneAriaLabel();
|
|
@@ -13,17 +13,17 @@ export type PresetsTitleProps = {
|
|
|
13
13
|
children: ReactNode;
|
|
14
14
|
/**
|
|
15
15
|
* The content at the bottom of the menu, after a separator. The title
|
|
16
|
-
* opens a menu,
|
|
16
|
+
* opens a menu, so a "?" button next to it is one control too many: put
|
|
17
17
|
* the help of the page here (a Toolbar.HelpBody with "secondary").
|
|
18
18
|
*/
|
|
19
19
|
footer?: ReactNode;
|
|
20
20
|
/** The level of the title as a heading (see Toolbar.Title) */
|
|
21
21
|
level?: HeadingLevel;
|
|
22
|
-
/** The id of the heading,
|
|
22
|
+
/** The id of the heading, so other elements can use it as their label */
|
|
23
23
|
id?: string;
|
|
24
24
|
};
|
|
25
25
|
export type PresetsTitleOptionProps = {
|
|
26
|
-
/** The name of the preset: it
|
|
26
|
+
/** The name of the preset: it says exactly what the preset keeps */
|
|
27
27
|
children: ReactNode;
|
|
28
28
|
/** The number of the items that the preset keeps */
|
|
29
29
|
count?: number;
|
|
@@ -9,8 +9,8 @@ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
|
9
9
|
/**
|
|
10
10
|
* A toolbar title that is the menu of the presets of a list (views of the
|
|
11
11
|
* list: fixed filters with a name). It only draws the title and the menu:
|
|
12
|
-
*
|
|
13
|
-
* Pane.Header.Title does this (see useFilteredList in
|
|
12
|
+
* you give the options and keep the active preset. In a Pane,
|
|
13
|
+
* Pane.Header.Title does this (see useFilteredList in Pane).
|
|
14
14
|
*/
|
|
15
15
|
var PresetsTitle = React.memo(function PresetsTitle({ label, qualifier, children, footer, level, id }) {
|
|
16
16
|
const { tc } = useTranslation();
|
|
@@ -2,9 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { ButtonSize } from '../../actions/Button.js';
|
|
3
3
|
import { type TextMessage } from '../../Message.js';
|
|
4
4
|
import { SvgIcon } from '../../utils/types.js';
|
|
5
|
-
/** An action that opens a page of
|
|
5
|
+
/** An action that opens a page of DatoCMS */
|
|
6
6
|
type LinkActionItem = {
|
|
7
|
-
/** A page of
|
|
7
|
+
/** A page of DatoCMS that the action opens */
|
|
8
8
|
to: string;
|
|
9
9
|
onPick?: never;
|
|
10
10
|
};
|
|
@@ -40,7 +40,7 @@ export type PrimaryButtonProps = {
|
|
|
40
40
|
*/
|
|
41
41
|
iconOnly?: boolean;
|
|
42
42
|
/**
|
|
43
|
-
* The size of the button. The default is the size of
|
|
43
|
+
* The size of the button. The default is the size of its container: "milli"
|
|
44
44
|
* in a toolbar, "small" out of a toolbar.
|
|
45
45
|
*/
|
|
46
46
|
size?: ButtonSize;
|
|
@@ -11,7 +11,7 @@ export type ToolbarProps = {
|
|
|
11
11
|
borderBottom?: boolean;
|
|
12
12
|
/**
|
|
13
13
|
* The toolbar holds fields (a filter form): its buttons have the height
|
|
14
|
-
* of the fields ("field" size),
|
|
14
|
+
* of the fields ("field" size), so their edges align
|
|
15
15
|
*/
|
|
16
16
|
fields?: boolean;
|
|
17
17
|
/**
|
|
@@ -21,7 +21,10 @@ function Root({ children, style, borderBottom, fields, onClose, className }) {
|
|
|
21
21
|
};
|
|
22
22
|
return /* @__PURE__ */ jsx("div", {
|
|
23
23
|
onKeyDown: onClose ? handleKeyDown : void 0,
|
|
24
|
-
className: classNames("Toolbar", style && `Toolbar--${style}`, {
|
|
24
|
+
className: classNames("Toolbar", style && `Toolbar--${style}`, {
|
|
25
|
+
"Toolbar--border-bottom": borderBottom,
|
|
26
|
+
"Toolbar--fields": fields
|
|
27
|
+
}, className),
|
|
25
28
|
children: /* @__PURE__ */ jsx(InToolbarContext.Provider, {
|
|
26
29
|
value: true,
|
|
27
30
|
children: /* @__PURE__ */ jsx(ButtonSizeContext.Provider, {
|
|
@@ -7,7 +7,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
/**
|
|
8
8
|
* The title of a toolbar that opens a menu. Use it only for a menu that
|
|
9
9
|
* switches the view of the same list (see Toolbar.PresetsTitle), never for actions
|
|
10
|
-
* on the thing that the title names. The chevron always shows,
|
|
10
|
+
* on the thing that the title names. The chevron always shows, so the
|
|
11
11
|
* user sees that the title opens a menu.
|
|
12
12
|
*/
|
|
13
13
|
function ToolbarTitleTrigger({ onTrigger, label, open }) {
|
|
@@ -26,7 +26,7 @@ export type CardListProps = {
|
|
|
26
26
|
/** The button that adds an item, in the footer of the card */
|
|
27
27
|
add?: ActionOrMenu;
|
|
28
28
|
/**
|
|
29
|
-
* Shows
|
|
29
|
+
* Shows instead of the card when the card has no items (for example an
|
|
30
30
|
* EmptySlot with the button that adds the first item)
|
|
31
31
|
*/
|
|
32
32
|
empty?: ReactNode;
|
|
@@ -66,7 +66,7 @@ export type CardListRow = {
|
|
|
66
66
|
/**
|
|
67
67
|
* The actions of the item (an icon button, a menu, a "Change" button).
|
|
68
68
|
* They go in a column with the width of a micro icon button at least,
|
|
69
|
-
*
|
|
69
|
+
* so the icon actions of all the items align.
|
|
70
70
|
*/
|
|
71
71
|
actions?: ReactNode;
|
|
72
72
|
};
|
|
@@ -99,7 +99,7 @@ type ItemWithoutRow = {
|
|
|
99
99
|
expandable?: never;
|
|
100
100
|
};
|
|
101
101
|
/**
|
|
102
|
-
* The other props go to the `li`,
|
|
102
|
+
* The other props go to the `li`, so the item can be the trigger of a
|
|
103
103
|
* Tooltip for the whole row
|
|
104
104
|
*/
|
|
105
105
|
type ItemElementProps = Omit<React.HTMLAttributes<HTMLLIElement>, 'children' | 'className'>;
|
|
@@ -3,7 +3,7 @@ import { type Message } from '../Message.js';
|
|
|
3
3
|
import { type ActionOrMenu } from './ActionOrMenu.js';
|
|
4
4
|
type EmptySlotAction =
|
|
5
5
|
/**
|
|
6
|
-
* The actions show
|
|
6
|
+
* The actions show instead of the message when the pointer is on the
|
|
7
7
|
* slot, when an action has the focus or when its menu is open. On a touch
|
|
8
8
|
* device, they always show.
|
|
9
9
|
*/
|
|
@@ -7,7 +7,7 @@ export type InfoListUserProps = {
|
|
|
7
7
|
user: InfoListUserData;
|
|
8
8
|
/**
|
|
9
9
|
* A text about the user, for example the type of the user. It goes in a
|
|
10
|
-
* tooltip
|
|
10
|
+
* tooltip on the left, so the text does not wrap in a narrow column.
|
|
11
11
|
* Without it, there is no tooltip.
|
|
12
12
|
*/
|
|
13
13
|
tooltip?: Message;
|
|
@@ -14,7 +14,7 @@ export type InfoListValueTriggerProps = {
|
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* A value in a row of an InfoList, that the user cannot change. It has the
|
|
17
|
-
* same look as `InfoList.Value.Trigger`,
|
|
17
|
+
* same look as `InfoList.Value.Trigger`, so the values of the rows align.
|
|
18
18
|
*/
|
|
19
19
|
declare function Value({ label }: InfoListValueProps): React.JSX.Element;
|
|
20
20
|
/**
|
|
@@ -6,7 +6,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
//#region ../ui-public/src/lists/InfoList/Value.tsx
|
|
7
7
|
/**
|
|
8
8
|
* A value in a row of an InfoList, that the user cannot change. It has the
|
|
9
|
-
* same look as `InfoList.Value.Trigger`,
|
|
9
|
+
* same look as `InfoList.Value.Trigger`, so the values of the rows align.
|
|
10
10
|
*/
|
|
11
11
|
function Value({ label }) {
|
|
12
12
|
const { tc } = useTranslation();
|
|
@@ -9,15 +9,15 @@ export type InfoListProps = {
|
|
|
9
9
|
};
|
|
10
10
|
declare function BaseInfoList({ className, children }: InfoListProps): React.JSX.Element;
|
|
11
11
|
export type InfoListRowProps = {
|
|
12
|
-
/** The name of the fact,
|
|
12
|
+
/** The name of the fact, on the left */
|
|
13
13
|
title: Message;
|
|
14
14
|
/**
|
|
15
|
-
* The value,
|
|
15
|
+
* The value, on the right. A short note about the value goes under it, in
|
|
16
16
|
* the value.
|
|
17
17
|
*/
|
|
18
18
|
children: ReactNode;
|
|
19
19
|
};
|
|
20
|
-
/** A line with a title
|
|
20
|
+
/** A line with a title on the left and its value on the right. */
|
|
21
21
|
declare function Row({ title, children }: InfoListRowProps): React.JSX.Element;
|
|
22
22
|
export type InfoListGroupProps = {
|
|
23
23
|
/**
|
|
@@ -16,7 +16,7 @@ function BaseInfoList({ className, children }) {
|
|
|
16
16
|
children
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
/** A line with a title
|
|
19
|
+
/** A line with a title on the left and its value on the right. */
|
|
20
20
|
function Row({ title, children }) {
|
|
21
21
|
const { tc } = useTranslation();
|
|
22
22
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -5,7 +5,7 @@ import { SvgIcon } from '../utils/types.js';
|
|
|
5
5
|
export type MediaCardAction = {
|
|
6
6
|
/**
|
|
7
7
|
* The key of the action. Give it when the label changes, for example
|
|
8
|
-
* "Play" and "Pause".
|
|
8
|
+
* "Play" and "Pause". So the button keeps the keyboard focus.
|
|
9
9
|
*/
|
|
10
10
|
id?: string;
|
|
11
11
|
/** The text of the button or of the menu option. */
|
|
@@ -38,7 +38,7 @@ export type MediaCardOption = MediaCardOptionBase & ({
|
|
|
38
38
|
action?: never;
|
|
39
39
|
} | {
|
|
40
40
|
/**
|
|
41
|
-
* The id of an action of the registry (`
|
|
41
|
+
* The id of an action of the registry (`Actions`). The option
|
|
42
42
|
* runs it and shows its keys.
|
|
43
43
|
*/
|
|
44
44
|
action: string;
|
|
@@ -60,10 +60,10 @@ export type MediaCardCaption = {
|
|
|
60
60
|
*/
|
|
61
61
|
muted?: boolean;
|
|
62
62
|
};
|
|
63
|
-
/** A click on the media opens a page of
|
|
63
|
+
/** A click on the media opens a page of DatoCMS. */
|
|
64
64
|
type LinkCard = {
|
|
65
65
|
/**
|
|
66
|
-
* The page that the card opens. The media is a link,
|
|
66
|
+
* The page that the card opens. The media is a link, so the user can
|
|
67
67
|
* open the page in a new tab.
|
|
68
68
|
*/
|
|
69
69
|
to: string;
|
|
@@ -121,11 +121,11 @@ export type MediaCardSelection = {
|
|
|
121
121
|
*/
|
|
122
122
|
onSelect?: () => void;
|
|
123
123
|
};
|
|
124
|
-
/** The caption has a checkbox,
|
|
124
|
+
/** The caption has a checkbox, so it has no `captionAction`. */
|
|
125
125
|
type CheckboxCaption = {
|
|
126
126
|
selection: MediaCardSelection & {
|
|
127
127
|
/**
|
|
128
|
-
* The checkbox
|
|
128
|
+
* The checkbox on the right of the caption. Its name is the caption.
|
|
129
129
|
* "hover" shows it when the pointer is on the card, when the card has
|
|
130
130
|
* the focus, when the card is selected and on a touch screen. "always"
|
|
131
131
|
* shows it in all cases, for example when the user has selected a card.
|
|
@@ -139,7 +139,7 @@ type PlainCaption = {
|
|
|
139
139
|
selection?: MediaCardSelection & {
|
|
140
140
|
checkbox?: never;
|
|
141
141
|
};
|
|
142
|
-
/** An action
|
|
142
|
+
/** An action on the right of the caption, for example the cross that cancels an upload. */
|
|
143
143
|
captionAction?: React.ReactNode;
|
|
144
144
|
};
|
|
145
145
|
export type MediaCardProps = MediaCardBaseProps & (LinkCard | ClickCard | StaticCard) & (CheckboxCaption | PlainCaption);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The image of a record. "image" is a picture to show in the square, cut to
|
|
4
|
+
* fill it. "file" is a file that is not a picture: the square shows the icon
|
|
5
|
+
* of its extension.
|
|
6
|
+
*/
|
|
7
|
+
export type RecordRowImage = {
|
|
8
|
+
type: 'image';
|
|
9
|
+
url: string;
|
|
10
|
+
} | {
|
|
11
|
+
type: 'file';
|
|
12
|
+
extension: string;
|
|
13
|
+
};
|
|
14
|
+
export type RecordRowImageProps = {
|
|
15
|
+
/** The image of the record. Without it, the square is a muted placeholder. */
|
|
16
|
+
image: RecordRowImage | null;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* The image of a record in a square that its container sizes. The image of
|
|
20
|
+
* a `RecordRow`, also alone in a cell or a chip.
|
|
21
|
+
*/
|
|
22
|
+
declare function Image({ image }: RecordRowImageProps): React.JSX.Element;
|
|
23
|
+
declare const _default: React.MemoExoticComponent<typeof Image>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import FileTypeIcon from "../../content/FileTypeIcon.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region ../ui-public/src/lists/RecordRow/Image.tsx
|
|
6
|
+
/**
|
|
7
|
+
* The image of a record in a square that its container sizes. The image of
|
|
8
|
+
* a `RecordRow`, also alone in a cell or a chip.
|
|
9
|
+
*/
|
|
10
|
+
function Image({ image }) {
|
|
11
|
+
if (image?.type === "file") return /* @__PURE__ */ jsx(FileTypeIcon, {
|
|
12
|
+
extension: image.extension,
|
|
13
|
+
className: "RecordRow__image"
|
|
14
|
+
});
|
|
15
|
+
return /* @__PURE__ */ jsx("div", {
|
|
16
|
+
className: classNames("RecordRow__image", { "RecordRow__image--placeholder": !image }),
|
|
17
|
+
style: image ? { backgroundImage: `url(${image.url})` } : void 0
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
var Image_default = React.memo(Image);
|
|
21
|
+
//#endregion
|
|
22
|
+
export { Image_default as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
export type RecordRowListProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The rows show the model above the title. Give false when all the
|
|
5
|
+
* records have the same model.
|
|
6
|
+
* @default true
|
|
7
|
+
*/
|
|
8
|
+
showModel?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* All the rows show the image slot from the start, before a row with an
|
|
11
|
+
* image loads. Use it when a model of the rows has an image, in a list
|
|
12
|
+
* with many records of the same models.
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
reserveImageSlot?: boolean;
|
|
16
|
+
/** The rows */
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Put it around the rows of records of a list that are one above the other.
|
|
21
|
+
* It renders no element: it gives the rows the same settings, so that they
|
|
22
|
+
* look the same. When one row has an image, all the rows show the image
|
|
23
|
+
* slot, so that the titles align.
|
|
24
|
+
*/
|
|
25
|
+
declare function List({ showModel, reserveImageSlot, children, }: RecordRowListProps): React.JSX.Element;
|
|
26
|
+
export default List;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { RecordRowListContext } from "./context.js";
|
|
2
|
+
import { useEffect, useMemo, useRef, useState } from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region ../ui-public/src/lists/RecordRow/List.tsx
|
|
5
|
+
/**
|
|
6
|
+
* Put it around the rows of records of a list that are one above the other.
|
|
7
|
+
* It renders no element: it gives the rows the same settings, so that they
|
|
8
|
+
* look the same. When one row has an image, all the rows show the image
|
|
9
|
+
* slot, so that the titles align.
|
|
10
|
+
*/
|
|
11
|
+
function List({ showModel = true, reserveImageSlot = false, children }) {
|
|
12
|
+
const [imageSlot, setImageSlot] = useState(reserveImageSlot);
|
|
13
|
+
const previousReserve = useRef(reserveImageSlot);
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
if (previousReserve.current === reserveImageSlot) return;
|
|
16
|
+
previousReserve.current = reserveImageSlot;
|
|
17
|
+
setImageSlot(reserveImageSlot);
|
|
18
|
+
}, [reserveImageSlot]);
|
|
19
|
+
const value = useMemo(() => ({
|
|
20
|
+
showModel,
|
|
21
|
+
imageSlot,
|
|
22
|
+
showImageSlot: () => setImageSlot(true)
|
|
23
|
+
}), [showModel, imageSlot]);
|
|
24
|
+
return /* @__PURE__ */ jsx(RecordRowListContext.Provider, {
|
|
25
|
+
value,
|
|
26
|
+
children
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { List as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createContext, useContext, useEffect } from "react";
|
|
2
|
+
//#region ../ui-public/src/lists/RecordRow/context.tsx
|
|
3
|
+
var RecordRowListContext = createContext({
|
|
4
|
+
showModel: true,
|
|
5
|
+
imageSlot: false,
|
|
6
|
+
showImageSlot: () => {}
|
|
7
|
+
});
|
|
8
|
+
/** False when the `RecordRow.List` around hides the model of its rows */
|
|
9
|
+
function useRecordRowsShowModel() {
|
|
10
|
+
return useContext(RecordRowListContext).showModel;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Tells if a row of a `RecordRow.List` shows the image slot. A row with an
|
|
14
|
+
* image shows it, and makes all the rows of the list show it, so that the
|
|
15
|
+
* titles align. A `standalone` record (a chip) shows the slot only when it
|
|
16
|
+
* has an image, and does not change the rows.
|
|
17
|
+
*/
|
|
18
|
+
function useRecordRowImageSlot(hasImage, standalone = false) {
|
|
19
|
+
const { imageSlot, showImageSlot } = useContext(RecordRowListContext);
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
if (!standalone && hasImage && !imageSlot) showImageSlot();
|
|
22
|
+
}, [
|
|
23
|
+
standalone,
|
|
24
|
+
hasImage,
|
|
25
|
+
imageSlot,
|
|
26
|
+
showImageSlot
|
|
27
|
+
]);
|
|
28
|
+
return hasImage || !standalone && imageSlot;
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { RecordRowListContext, useRecordRowImageSlot, useRecordRowsShowModel };
|