wimui 0.51.2 → 0.52.2
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/components/_internal/FeedbackCloseButton.cjs +1 -1
- package/dist/components/_internal/FeedbackCloseButton.js +14 -13
- package/dist/components/_internal/FieldLabelContent.cjs +1 -1
- package/dist/components/_internal/FieldLabelContent.js +18 -17
- package/dist/components/ai/AIResponseFeedback/AIResponseFeedback.cjs +1 -1
- package/dist/components/ai/AIResponseFeedback/AIResponseFeedback.js +46 -45
- package/dist/components/ai/AIResponseFeedback/airesponse-feedback.module.cjs +1 -1
- package/dist/components/ai/AIResponseFeedback/airesponse-feedback.module.js +1 -1
- package/dist/components/ai/AgentStatus/AgentStatus.cjs +1 -1
- package/dist/components/ai/AgentStatus/AgentStatus.js +24 -23
- package/dist/components/ai/ArtifactsOverlay/ArtifactsOverlay.cjs +1 -1
- package/dist/components/ai/ArtifactsOverlay/ArtifactsOverlay.js +47 -45
- package/dist/components/ai/ChatUI/ChatUI.cjs +1 -1
- package/dist/components/ai/ChatUI/ChatUI.js +82 -81
- package/dist/components/ai/CodeBlock/CodeBlock.cjs +3 -3
- package/dist/components/ai/CodeBlock/CodeBlock.js +53 -52
- package/dist/components/ai/CodeBlock/code-block.module.cjs +1 -1
- package/dist/components/ai/CodeBlock/code-block.module.js +1 -1
- package/dist/components/ai/CodeDiffViewer/CodeDiffViewer.cjs +2 -2
- package/dist/components/ai/CodeDiffViewer/CodeDiffViewer.js +105 -104
- package/dist/components/ai/CodeDiffViewer/code-diff-viewer.module.cjs +1 -1
- package/dist/components/ai/CodeDiffViewer/code-diff-viewer.module.js +2 -2
- package/dist/components/ai/MarkdownRenderer/MarkdownRenderer.cjs +1 -1
- package/dist/components/ai/MarkdownRenderer/MarkdownRenderer.js +60 -59
- package/dist/components/ai/ModelSelector/ModelSelector.cjs +1 -1
- package/dist/components/ai/ModelSelector/ModelSelector.js +83 -82
- package/dist/components/ai/ModelSelector/model-selector.module.cjs +1 -1
- package/dist/components/ai/ModelSelector/model-selector.module.js +1 -1
- package/dist/components/ai/PromptInput/PromptInput.cjs +1 -1
- package/dist/components/ai/PromptInput/PromptInput.js +76 -75
- package/dist/components/ai/SourceCitation/SourceCitation.cjs +1 -1
- package/dist/components/ai/SourceCitation/SourceCitation.js +39 -38
- package/dist/components/ai/Terminal/Terminal.cjs +2 -2
- package/dist/components/ai/Terminal/Terminal.js +65 -64
- package/dist/components/ai/Terminal/terminal.module.cjs +1 -1
- package/dist/components/ai/Terminal/terminal.module.js +1 -1
- package/dist/components/ai/ThoughtProcess/thought-process.module.cjs +1 -1
- package/dist/components/ai/ThoughtProcess/thought-process.module.js +4 -4
- package/dist/components/ai/ThreadList/ThreadList.cjs +1 -1
- package/dist/components/ai/ThreadList/ThreadList.js +58 -57
- package/dist/components/ai/ThreadList/thread-list.module.cjs +1 -1
- package/dist/components/ai/ThreadList/thread-list.module.js +1 -1
- package/dist/components/data-display/Accordion/accordion.module.cjs +1 -1
- package/dist/components/data-display/Accordion/accordion.module.js +1 -1
- package/dist/components/data-display/Barcode/Barcode.cjs +1 -1
- package/dist/components/data-display/Barcode/Barcode.js +76 -75
- package/dist/components/data-display/Calendar/Calendar.cjs +1 -1
- package/dist/components/data-display/Calendar/Calendar.js +75 -74
- package/dist/components/data-display/Calendar/calendar.module.cjs +1 -1
- package/dist/components/data-display/Calendar/calendar.module.js +1 -1
- package/dist/components/data-display/CalendarHeatmap/CalendarHeatmap.cjs +1 -1
- package/dist/components/data-display/CalendarHeatmap/CalendarHeatmap.js +54 -52
- package/dist/components/data-display/Carousel/Carousel.cjs +1 -1
- package/dist/components/data-display/Carousel/Carousel.js +62 -61
- package/dist/components/data-display/Carousel/carousel.module.cjs +1 -1
- package/dist/components/data-display/Carousel/carousel.module.js +1 -1
- package/dist/components/data-display/Chip/Chip.cjs +1 -1
- package/dist/components/data-display/Chip/Chip.js +36 -35
- package/dist/components/data-display/Comment/Comment.cjs +1 -1
- package/dist/components/data-display/Comment/Comment.js +58 -57
- package/dist/components/data-display/Comment/comment.module.cjs +1 -1
- package/dist/components/data-display/Comment/comment.module.js +1 -1
- package/dist/components/data-display/Countdown/Countdown.cjs +1 -1
- package/dist/components/data-display/Countdown/Countdown.js +56 -55
- package/dist/components/data-display/DataGrid/DataGrid.cjs +1 -1
- package/dist/components/data-display/DataGrid/DataGrid.js +128 -127
- package/dist/components/data-display/JsonViewer/JsonViewer.cjs +1 -1
- package/dist/components/data-display/JsonViewer/JsonViewer.js +153 -152
- package/dist/components/data-display/JsonViewer/json-viewer.module.cjs +1 -1
- package/dist/components/data-display/JsonViewer/json-viewer.module.js +3 -3
- package/dist/components/data-display/Kanban/Kanban.cjs +1 -1
- package/dist/components/data-display/Kanban/Kanban.js +95 -94
- package/dist/components/data-display/NodeGraph/NodeGraph.cjs +1 -1
- package/dist/components/data-display/NodeGraph/NodeGraph.js +62 -61
- package/dist/components/data-display/NodeGraph/node-graph.module.cjs +1 -1
- package/dist/components/data-display/NodeGraph/node-graph.module.js +1 -1
- package/dist/components/data-display/PivotTable/PivotTable.cjs +1 -1
- package/dist/components/data-display/PivotTable/PivotTable.js +153 -152
- package/dist/components/data-display/PivotTable/pivot-table.module.cjs +1 -1
- package/dist/components/data-display/PivotTable/pivot-table.module.js +1 -1
- package/dist/components/data-display/Presence/Presence.cjs +1 -1
- package/dist/components/data-display/Presence/Presence.js +28 -27
- package/dist/components/data-display/PullToRefresh/PullToRefresh.cjs +1 -1
- package/dist/components/data-display/PullToRefresh/PullToRefresh.js +73 -72
- package/dist/components/data-display/Reaction/Reaction.cjs +1 -1
- package/dist/components/data-display/Reaction/Reaction.js +31 -30
- package/dist/components/data-display/ScheduleView/ScheduleView.cjs +1 -1
- package/dist/components/data-display/ScheduleView/ScheduleView.js +49 -48
- package/dist/components/data-display/SortableList/SortableList.cjs +1 -1
- package/dist/components/data-display/SortableList/SortableList.js +44 -43
- package/dist/components/data-display/Tag/Tag.cjs +1 -1
- package/dist/components/data-display/Tag/Tag.js +29 -28
- package/dist/components/data-display/Tag/tag.module.cjs +1 -1
- package/dist/components/data-display/Tag/tag.module.js +1 -1
- package/dist/components/data-display/TreeDiagram/TreeDiagram.cjs +1 -1
- package/dist/components/data-display/TreeDiagram/TreeDiagram.js +85 -84
- package/dist/components/data-display/TreeDiagram/tree-diagram.module.cjs +1 -1
- package/dist/components/data-display/TreeDiagram/tree-diagram.module.js +1 -1
- package/dist/components/data-display/TreeView/TreeView.cjs +1 -1
- package/dist/components/data-display/TreeView/TreeView.js +123 -122
- package/dist/components/feedback/Autosave/Autosave.cjs +1 -1
- package/dist/components/feedback/Autosave/Autosave.js +32 -31
- package/dist/components/feedback/Banner/banner.module.cjs +1 -1
- package/dist/components/feedback/Banner/banner.module.js +2 -2
- package/dist/components/feedback/ErrorBoundary/ErrorBoundary.cjs +1 -1
- package/dist/components/feedback/ErrorBoundary/ErrorBoundary.js +35 -34
- package/dist/components/feedback/Notification/notification.module.cjs +1 -1
- package/dist/components/feedback/Notification/notification.module.js +2 -2
- package/dist/components/feedback/ScrollProgress/ScrollProgress.cjs +1 -1
- package/dist/components/feedback/ScrollProgress/ScrollProgress.js +21 -20
- package/dist/components/feedback/Tour/Tour.cjs +1 -1
- package/dist/components/feedback/Tour/Tour.js +98 -97
- package/dist/components/form/Button/Button.cjs +1 -1
- package/dist/components/form/Button/Button.js +55 -54
- package/dist/components/form/ColorInput/ColorInput.cjs +1 -1
- package/dist/components/form/ColorInput/ColorInput.js +30 -29
- package/dist/components/form/ColorPicker/color-picker.module.cjs +1 -1
- package/dist/components/form/ColorPicker/color-picker.module.js +1 -1
- package/dist/components/form/Combobox/combobox.module.cjs +1 -1
- package/dist/components/form/Combobox/combobox.module.js +1 -1
- package/dist/components/form/CopyButton/CopyButton.cjs +1 -1
- package/dist/components/form/CopyButton/CopyButton.js +27 -26
- package/dist/components/form/DatePicker/DatePicker.cjs +1 -1
- package/dist/components/form/DatePicker/DatePicker.js +47 -46
- package/dist/components/form/DatePicker/date-picker.module.cjs +1 -1
- package/dist/components/form/DatePicker/date-picker.module.js +1 -1
- package/dist/components/form/DateRangePicker/DateRangePicker.cjs +1 -1
- package/dist/components/form/DateRangePicker/DateRangePicker.js +36 -35
- package/dist/components/form/Dropzone/Dropzone.cjs +1 -1
- package/dist/components/form/Dropzone/Dropzone.js +56 -55
- package/dist/components/form/FileUpload/FileUpload.cjs +1 -1
- package/dist/components/form/FileUpload/FileUpload.js +47 -46
- package/dist/components/form/FloatButton/FloatButton.cjs +1 -1
- package/dist/components/form/FloatButton/FloatButton.d.ts +4 -1
- package/dist/components/form/FloatButton/FloatButton.js +6 -6
- package/dist/components/form/ImageCropper/ImageCropper.cjs +1 -1
- package/dist/components/form/ImageCropper/ImageCropper.js +101 -99
- package/dist/components/form/InlineEdit/InlineEdit.cjs +1 -1
- package/dist/components/form/InlineEdit/InlineEdit.js +66 -65
- package/dist/components/form/InlineEdit/inline-edit.module.cjs +1 -1
- package/dist/components/form/InlineEdit/inline-edit.module.js +1 -1
- package/dist/components/form/Input/Input.cjs +1 -1
- package/dist/components/form/Input/Input.js +45 -44
- package/dist/components/form/InputBase/InputBase.cjs +1 -1
- package/dist/components/form/InputBase/InputBase.js +51 -50
- package/dist/components/form/InputBase/input-base.module.cjs +1 -1
- package/dist/components/form/InputBase/input-base.module.js +1 -1
- package/dist/components/form/Mentions/mentions.module.cjs +1 -1
- package/dist/components/form/Mentions/mentions.module.js +1 -1
- package/dist/components/form/MultiSelect/multiselect.module.cjs +1 -1
- package/dist/components/form/MultiSelect/multiselect.module.js +1 -1
- package/dist/components/form/PasswordStrength/PasswordStrength.cjs +1 -1
- package/dist/components/form/PasswordStrength/PasswordStrength.js +27 -26
- package/dist/components/form/PhoneInput/PhoneInput.cjs +1 -1
- package/dist/components/form/PhoneInput/PhoneInput.js +10 -10
- package/dist/components/form/PhoneInput/phone-input.module.cjs +1 -1
- package/dist/components/form/PhoneInput/phone-input.module.js +1 -1
- package/dist/components/form/QueryBuilder/QueryBuilder.cjs +1 -1
- package/dist/components/form/QueryBuilder/QueryBuilder.js +90 -89
- package/dist/components/form/RangeSlider/RangeSlider.cjs +1 -1
- package/dist/components/form/RangeSlider/RangeSlider.js +30 -29
- package/dist/components/form/Rating/rating.module.cjs +1 -1
- package/dist/components/form/Rating/rating.module.js +1 -1
- package/dist/components/form/RichTextEditor/RichTextEditor.cjs +1 -1
- package/dist/components/form/RichTextEditor/RichTextEditor.js +223 -222
- package/dist/components/form/RichTextEditor/rich-text-editor.module.cjs +1 -1
- package/dist/components/form/RichTextEditor/rich-text-editor.module.js +1 -1
- package/dist/components/form/SegmentedControl/SegmentedControl.cjs +1 -1
- package/dist/components/form/SegmentedControl/SegmentedControl.js +7 -7
- package/dist/components/form/SegmentedControl/segmented-control.module.cjs +1 -1
- package/dist/components/form/SegmentedControl/segmented-control.module.js +1 -1
- package/dist/components/form/Select/Select.cjs +1 -1
- package/dist/components/form/Select/Select.js +112 -111
- package/dist/components/form/Select/select.module.cjs +1 -1
- package/dist/components/form/Select/select.module.js +1 -1
- package/dist/components/form/SignaturePad/SignaturePad.cjs +1 -1
- package/dist/components/form/SignaturePad/SignaturePad.js +86 -79
- package/dist/components/form/SmartSearchInput/SmartSearchInput.cjs +1 -1
- package/dist/components/form/SmartSearchInput/SmartSearchInput.js +63 -62
- package/dist/components/form/TagInput/TagInput.cjs +1 -1
- package/dist/components/form/TagInput/TagInput.js +68 -67
- package/dist/components/form/ThemeToggle/ThemeToggle.cjs +1 -1
- package/dist/components/form/ThemeToggle/ThemeToggle.js +68 -67
- package/dist/components/form/ThemeToggle/theme-toggle.module.cjs +1 -1
- package/dist/components/form/ThemeToggle/theme-toggle.module.js +1 -1
- package/dist/components/form/ToggleGroup/ToggleGroup.cjs +1 -1
- package/dist/components/form/ToggleGroup/ToggleGroup.js +6 -6
- package/dist/components/form/ToggleGroup/toggle-group.module.cjs +1 -1
- package/dist/components/form/ToggleGroup/toggle-group.module.js +1 -1
- package/dist/components/form/Transfer/Transfer.cjs +1 -1
- package/dist/components/form/Transfer/Transfer.js +127 -126
- package/dist/components/form/TreeSelect/TreeSelect.cjs +1 -1
- package/dist/components/form/TreeSelect/TreeSelect.js +6 -6
- package/dist/components/layout/Dashboard/Dashboard.cjs +1 -1
- package/dist/components/layout/Dashboard/Dashboard.js +90 -89
- package/dist/components/layout/Navbar/Navbar.cjs +1 -1
- package/dist/components/layout/Navbar/Navbar.d.ts +1 -1
- package/dist/components/layout/Navbar/Navbar.js +1 -1
- package/dist/components/layout/Sidebar/Sidebar.d.ts +1 -1
- package/dist/components/layout/Splitter/Splitter.cjs +1 -1
- package/dist/components/layout/Splitter/Splitter.js +40 -39
- package/dist/components/layout/Toolbar/Toolbar.cjs +1 -1
- package/dist/components/layout/Toolbar/Toolbar.js +66 -39
- package/dist/components/media/Audio/Audio.cjs +1 -1
- package/dist/components/media/Audio/Audio.js +90 -89
- package/dist/components/media/Audio/components/AudioCustomControls.cjs +1 -1
- package/dist/components/media/Audio/components/AudioCustomControls.js +115 -114
- package/dist/components/media/Gallery/Gallery.cjs +1 -1
- package/dist/components/media/Gallery/Gallery.js +132 -131
- package/dist/components/media/ImageCompare/ImageCompare.cjs +1 -1
- package/dist/components/media/ImageCompare/ImageCompare.js +72 -71
- package/dist/components/media/Lightbox/Lightbox.cjs +1 -1
- package/dist/components/media/Lightbox/Lightbox.js +128 -127
- package/dist/components/media/Video/Video.cjs +1 -1
- package/dist/components/media/Video/Video.js +56 -55
- package/dist/components/media/Video/components/VideoAdvancedMenu.cjs +1 -1
- package/dist/components/media/Video/components/VideoAdvancedMenu.js +136 -135
- package/dist/components/media/Video/components/VideoControls.cjs +1 -1
- package/dist/components/media/Video/components/VideoControls.js +103 -102
- package/dist/components/navigation/BackTop/BackTop.cjs +1 -1
- package/dist/components/navigation/BackTop/BackTop.js +37 -36
- package/dist/components/navigation/Breadcrumb/Breadcrumb.cjs +1 -1
- package/dist/components/navigation/Breadcrumb/Breadcrumb.js +41 -40
- package/dist/components/navigation/CommandPalette/CommandPalette.cjs +1 -1
- package/dist/components/navigation/CommandPalette/CommandPalette.js +100 -99
- package/dist/components/navigation/CommandPalette/command-palette.module.cjs +1 -1
- package/dist/components/navigation/CommandPalette/command-palette.module.js +1 -1
- package/dist/components/navigation/HamburgerMenu/HamburgerMenu.cjs +1 -1
- package/dist/components/navigation/HamburgerMenu/HamburgerMenu.d.ts +6 -0
- package/dist/components/navigation/HamburgerMenu/HamburgerMenu.js +32 -22
- package/dist/components/navigation/HamburgerMenu/hamburger-menu.module.cjs +1 -1
- package/dist/components/navigation/HamburgerMenu/hamburger-menu.module.js +1 -1
- package/dist/components/navigation/Menubar/menubar.module.cjs +1 -1
- package/dist/components/navigation/Menubar/menubar.module.js +1 -1
- package/dist/components/navigation/Pagination/Pagination.cjs +1 -1
- package/dist/components/navigation/Pagination/Pagination.js +39 -38
- package/dist/components/navigation/SpeedDial/SpeedDial.cjs +1 -1
- package/dist/components/navigation/SpeedDial/SpeedDial.js +50 -47
- package/dist/components/navigation/TabBar/tab-bar.module.cjs +1 -1
- package/dist/components/navigation/TabBar/tab-bar.module.js +1 -1
- package/dist/components/navigation/TabNavigation/tab-navigation.module.cjs +1 -1
- package/dist/components/navigation/TabNavigation/tab-navigation.module.js +1 -1
- package/dist/components/navigation/Tabs/tabs.module.cjs +1 -1
- package/dist/components/navigation/Tabs/tabs.module.js +1 -1
- package/dist/components/overlay/ContextMenu/ContextMenu.cjs +1 -1
- package/dist/components/overlay/ContextMenu/ContextMenu.js +4 -4
- package/dist/components/overlay/Popover/Popover.cjs +1 -1
- package/dist/components/overlay/Popover/Popover.js +63 -62
- package/dist/components/typography/Spoiler/Spoiler.cjs +1 -1
- package/dist/components/typography/Spoiler/Spoiler.js +38 -37
- package/dist/components/typography/Spoiler/spoiler.module.cjs +1 -1
- package/dist/components/typography/Spoiler/spoiler.module.js +1 -1
- package/dist/i18n/generated/common.cjs +2 -0
- package/dist/i18n/generated/common.d.ts +3 -0
- package/dist/i18n/generated/common.js +570 -0
- package/dist/i18n/generated/components.cjs +2 -0
- package/dist/i18n/generated/components.d.ts +3 -0
- package/dist/i18n/generated/components.js +399 -0
- package/dist/i18n/generated/data-display.cjs +2 -0
- package/dist/i18n/generated/data-display.d.ts +3 -0
- package/dist/i18n/generated/data-display.js +12 -0
- package/dist/i18n/generated/form.cjs +2 -0
- package/dist/i18n/generated/form.d.ts +3 -0
- package/dist/i18n/generated/form.js +321 -0
- package/dist/i18n/generated/keys.d.ts +5 -1
- package/dist/i18n/generated/locales.cjs +2 -0
- package/dist/i18n/generated/locales.d.ts +1 -0
- package/dist/i18n/generated/locales.js +9 -0
- package/dist/i18n/instance.cjs +1 -1
- package/dist/i18n/instance.d.ts +18 -3
- package/dist/i18n/instance.js +24 -26
- package/dist/i18n/useWimTranslation.cjs +1 -1
- package/dist/i18n/useWimTranslation.d.ts +7 -8
- package/dist/i18n/useWimTranslation.js +6 -5
- package/dist/llms-full.txt +7 -3
- package/dist/llms.txt +1 -1
- package/dist/locales/en/common.json +1 -1
- package/dist/locales/ja/common.json +1 -1
- package/dist/locales/pt/common.json +1 -1
- package/dist/styles.css +1 -1
- package/dist/wimui.umd.css +1 -1
- package/dist/wimui.umd.js +5 -5
- package/package.json +10 -10
- package/dist/i18n/generated/resources.cjs +0 -2
- package/dist/i18n/generated/resources.d.ts +0 -4
- package/dist/i18n/generated/resources.js +0 -1283
|
@@ -1,86 +1,87 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useWimTranslation as e } from "../../../i18n/useWimTranslation.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import r from "
|
|
6
|
-
import i from "
|
|
7
|
-
import a from "
|
|
8
|
-
import
|
|
3
|
+
import { commonNs as t } from "../../../i18n/generated/common.js";
|
|
4
|
+
import { VisuallyHidden as n } from "../../layout/VisuallyHidden/VisuallyHidden.js";
|
|
5
|
+
import { Avatar as r } from "../Avatar/Avatar.js";
|
|
6
|
+
import i from "./comment.module.js";
|
|
7
|
+
import a from "react";
|
|
8
|
+
import o from "classnames";
|
|
9
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
9
10
|
//#region src/components/data-display/Comment/Comment.tsx
|
|
10
|
-
var
|
|
11
|
-
let { t:
|
|
12
|
-
reply:
|
|
13
|
-
edit:
|
|
14
|
-
delete:
|
|
15
|
-
},
|
|
11
|
+
var l = a.forwardRef(({ id: l, author: u, timestamp: d, children: f, replies: p, edited: m = !1, replyingTo: h, editingId: g, composer: _, editor: v, onReply: y, onEdit: b, onDelete: x, actions: S, className: C, ...w }, T) => {
|
|
12
|
+
let { t: E } = e(t), D = `${l}-author`, O = g !== void 0 && g === l, k = h !== void 0 && h === l, A = {
|
|
13
|
+
reply: y,
|
|
14
|
+
edit: b,
|
|
15
|
+
delete: x
|
|
16
|
+
}, j = [
|
|
16
17
|
"reply",
|
|
17
18
|
"edit",
|
|
18
19
|
"delete"
|
|
19
|
-
].filter((e) =>
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
ref:
|
|
22
|
-
"aria-labelledby":
|
|
23
|
-
className:
|
|
24
|
-
...
|
|
20
|
+
].filter((e) => A[e] !== void 0);
|
|
21
|
+
return /* @__PURE__ */ c("article", {
|
|
22
|
+
ref: T,
|
|
23
|
+
"aria-labelledby": D,
|
|
24
|
+
className: o("wim-comment", i.root, C),
|
|
25
|
+
...w,
|
|
25
26
|
children: [
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
className:
|
|
28
|
-
children: [/* @__PURE__ */
|
|
29
|
-
src:
|
|
30
|
-
initials:
|
|
27
|
+
/* @__PURE__ */ c("div", {
|
|
28
|
+
className: i.head,
|
|
29
|
+
children: [/* @__PURE__ */ s(r, {
|
|
30
|
+
src: u.avatarSrc,
|
|
31
|
+
initials: u.initials,
|
|
31
32
|
size: "sm",
|
|
32
33
|
alt: "",
|
|
33
34
|
"aria-hidden": "true"
|
|
34
|
-
}), /* @__PURE__ */
|
|
35
|
-
className:
|
|
35
|
+
}), /* @__PURE__ */ c("div", {
|
|
36
|
+
className: i.meta,
|
|
36
37
|
children: [
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
id:
|
|
39
|
-
className:
|
|
40
|
-
children:
|
|
38
|
+
/* @__PURE__ */ s("span", {
|
|
39
|
+
id: D,
|
|
40
|
+
className: i.author,
|
|
41
|
+
children: u.name
|
|
41
42
|
}),
|
|
42
|
-
|
|
43
|
-
className:
|
|
44
|
-
children:
|
|
43
|
+
u.badge && /* @__PURE__ */ s("span", {
|
|
44
|
+
className: i.badge,
|
|
45
|
+
children: u.badge
|
|
45
46
|
}),
|
|
46
|
-
|
|
47
|
-
className:
|
|
48
|
-
children:
|
|
47
|
+
d && /* @__PURE__ */ s("span", {
|
|
48
|
+
className: i.timestamp,
|
|
49
|
+
children: d
|
|
49
50
|
}),
|
|
50
|
-
|
|
51
|
-
className:
|
|
52
|
-
children:
|
|
51
|
+
m && /* @__PURE__ */ s("span", {
|
|
52
|
+
className: i.edited,
|
|
53
|
+
children: E("comment.edited")
|
|
53
54
|
})
|
|
54
55
|
]
|
|
55
56
|
})]
|
|
56
57
|
}),
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
className:
|
|
59
|
-
children:
|
|
58
|
+
/* @__PURE__ */ s("div", {
|
|
59
|
+
className: i.body,
|
|
60
|
+
children: O ? v : f
|
|
60
61
|
}),
|
|
61
|
-
(
|
|
62
|
-
className:
|
|
63
|
-
children: [
|
|
62
|
+
(j.length > 0 || S) && /* @__PURE__ */ c("div", {
|
|
63
|
+
className: i.actions,
|
|
64
|
+
children: [j.map((e) => /* @__PURE__ */ c("button", {
|
|
64
65
|
type: "button",
|
|
65
|
-
className:
|
|
66
|
-
onClick: () =>
|
|
67
|
-
children: [
|
|
68
|
-
}, e)),
|
|
66
|
+
className: i.action,
|
|
67
|
+
onClick: () => A[e]?.(l),
|
|
68
|
+
children: [E(`comment.${e}`), /* @__PURE__ */ c(n, { children: [" ", E("comment.action_context", { name: u.name })] })]
|
|
69
|
+
}, e)), S]
|
|
69
70
|
}),
|
|
70
|
-
|
|
71
|
-
className:
|
|
72
|
-
children:
|
|
71
|
+
k && _ && /* @__PURE__ */ s("div", {
|
|
72
|
+
className: i.composer,
|
|
73
|
+
children: _
|
|
73
74
|
}),
|
|
74
|
-
|
|
75
|
-
className:
|
|
76
|
-
children:
|
|
77
|
-
className:
|
|
75
|
+
p && /* @__PURE__ */ s("ul", {
|
|
76
|
+
className: i.replies,
|
|
77
|
+
children: a.Children.map(p, (e, t) => /* @__PURE__ */ s("li", {
|
|
78
|
+
className: i.reply,
|
|
78
79
|
children: e
|
|
79
80
|
}, t))
|
|
80
81
|
})
|
|
81
82
|
]
|
|
82
83
|
});
|
|
83
84
|
});
|
|
84
|
-
|
|
85
|
+
l.displayName = "Comment";
|
|
85
86
|
//#endregion
|
|
86
|
-
export {
|
|
87
|
+
export { l as Comment };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var e=`
|
|
2
|
+
var e=`_root_sh66j_3`,t=`_head_sh66j_9`,n=`_meta_sh66j_18`,r=`_author_sh66j_25`,i=`_badge_sh66j_29`,a=`_timestamp_sh66j_33`,o=`_edited_sh66j_34`,s=`_body_sh66j_42`,c=`_actions_sh66j_46`,l=`_action_sh66j_46`,u=`_composer_sh66j_91`,d=`_replies_sh66j_99`,f=`_reply_sh66j_109`,p={root:e,head:t,meta:n,author:r,badge:i,timestamp:a,edited:o,body:s,actions:c,action:l,composer:u,replies:d,reply:f};exports.action=l,exports.actions=c,exports.author=r,exports.badge=i,exports.body=s,exports.composer=u,exports.default=p,exports.edited=o,exports.head=t,exports.meta=n,exports.replies=d,exports.reply=f,exports.root=e,exports.timestamp=a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
//#region src/components/data-display/Comment/comment.module.scss
|
|
3
|
-
var e = "
|
|
3
|
+
var e = "_root_sh66j_3", t = "_head_sh66j_9", n = "_meta_sh66j_18", r = "_author_sh66j_25", i = "_badge_sh66j_29", a = "_timestamp_sh66j_33", o = "_edited_sh66j_34", s = "_body_sh66j_42", c = "_actions_sh66j_46", l = "_action_sh66j_46", u = "_composer_sh66j_91", d = "_replies_sh66j_99", f = "_reply_sh66j_109", p = {
|
|
4
4
|
root: e,
|
|
5
5
|
head: t,
|
|
6
6
|
meta: n,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/@radix-ui/react-slot/dist/index.cjs"),n=require("../../../i18n/useWimTranslation.cjs"),r=require("./countdown.module.cjs");let
|
|
2
|
+
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/@radix-ui/react-slot/dist/index.cjs"),n=require("../../../i18n/useWimTranslation.cjs"),r=require("../../../i18n/generated/data-display.cjs"),i=require("./countdown.module.cjs");let a=require("react");a=e.__toESM(a,1);let o=require("classnames");o=e.__toESM(o,1);let s=require("react/jsx-runtime");var c=e=>e instanceof Date?e.getTime():new Date(e).getTime(),l=e=>String(e).padStart(2,`0`),u=(e,t)=>{let n=Math.floor(e/86400),r=Math.floor(t?e/3600:e%86400/3600),i=Math.floor(e%3600/60),a=e%60,o=[];return!t&&n>0&&o.push({unit:`day`,value:n}),(o.length>0||r>0)&&o.push({unit:`hour`,value:r}),o.push({unit:`minute`,value:i}),o.push({unit:`second`,value:a}),o},d=a.default.forwardRef(({target:e,baseDate:d,variant:f=`digital`,size:p=`md`,locale:m,unitDisplay:h=`short`,paused:g=!1,onComplete:_,completedContent:v,fallback:y,asChild:b=!1,className:x,children:S,...C},w)=>{let{t:T,i18n:E}=n.useWimTranslation(r.dataDisplayNs),D=m??E?.language??`en`,O=b?t.Root:`time`,k=c(e),A=!Number.isNaN(k),j=d!==void 0,[M,N]=a.default.useState(()=>Date.now()),P=j?c(d):M,F=A?Math.max(0,k-P):0,I=A&&F<=0,L=!j&&!g&&A&&!I;a.default.useEffect(()=>{!g&&!j&&N(Date.now())},[g,j]),a.default.useEffect(()=>{if(!L)return;let e=(k-Date.now())%1e3||1e3,t=window.setTimeout(()=>N(Date.now()),e);return()=>window.clearTimeout(t)},[L,k,M]);let R=a.default.useRef(!1);a.default.useEffect(()=>{R.current=!1},[k]),a.default.useEffect(()=>{A&&!j&&I&&(R.current||(R.current=!0,_?.()))},[I,j,A,_]);let z=a.default.useMemo(()=>new Map,[D]),B=(e,t)=>{let n=`${e}-${t}`,r=z.get(n);if(!r){let i={style:`unit`,unit:e,unitDisplay:t};try{r=new Intl.NumberFormat(D,i)}catch{r=new Intl.NumberFormat(`en`,i)}z.set(n,r)}return r},V=e=>B(e.unit,h).formatToParts(e.value).filter(e=>e.type===`unit`).map(e=>e.value).join(``);if(!A)return(0,s.jsxs)(O,{ref:w,className:(0,o.default)(`wim-countdown`,i.default.root,x),...C,children:[(0,s.jsx)(t.Slottable,{children:S}),y]});let H=Math.floor(F/1e3),U=u(H,f===`digital`),W=I&&v!==void 0,G=u(H,!1).map(e=>B(e.unit,`long`).format(e.value)).join(` `);return(0,s.jsxs)(O,{ref:w,role:`timer`,"aria-label":W?void 0:T(`countdown.remaining`,{time:G}),className:(0,o.default)(`wim-countdown`,i.default.root,i.default[f],i.default[p],x),dateTime:new Date(k).toISOString(),...C,children:[(0,s.jsx)(t.Slottable,{children:S}),W?v:f===`digital`?U.map((e,t)=>(0,s.jsxs)(a.default.Fragment,{children:[t>0&&(0,s.jsx)(`span`,{className:i.default.separator,"aria-hidden":`true`,children:`:`}),(0,s.jsx)(`span`,{className:i.default.value,children:l(e.value)})]},e.unit)):U.map(e=>(0,s.jsxs)(`span`,{className:i.default.segment,children:[(0,s.jsx)(`span`,{className:i.default.value,children:e.unit===`day`?String(e.value):l(e.value)}),(0,s.jsx)(`span`,{className:i.default.label,children:V(e)})]},e.unit))]})});d.displayName=`Countdown`,exports.Countdown=d;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Root as e, Slottable as t } from "../../../node_modules/@radix-ui/react-slot/dist/index.js";
|
|
3
3
|
import { useWimTranslation as n } from "../../../i18n/useWimTranslation.js";
|
|
4
|
-
import r from "
|
|
5
|
-
import i from "
|
|
6
|
-
import a from "
|
|
7
|
-
import
|
|
4
|
+
import { dataDisplayNs as r } from "../../../i18n/generated/data-display.js";
|
|
5
|
+
import i from "./countdown.module.js";
|
|
6
|
+
import a from "react";
|
|
7
|
+
import o from "classnames";
|
|
8
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
9
|
//#region src/components/data-display/Countdown/Countdown.tsx
|
|
9
|
-
var
|
|
10
|
+
var l = (e) => e instanceof Date ? e.getTime() : new Date(e).getTime(), u = (e) => String(e).padStart(2, "0"), d = (e, t) => {
|
|
10
11
|
let n = Math.floor(e / 86400), r = Math.floor(t ? e / 3600 : e % 86400 / 3600), i = Math.floor(e % 3600 / 60), a = e % 60, o = [];
|
|
11
12
|
return !t && n > 0 && o.push({
|
|
12
13
|
unit: "day",
|
|
@@ -21,32 +22,32 @@ var c = (e) => e instanceof Date ? e.getTime() : new Date(e).getTime(), l = (e)
|
|
|
21
22
|
unit: "second",
|
|
22
23
|
value: a
|
|
23
24
|
}), o;
|
|
24
|
-
},
|
|
25
|
-
let { t:
|
|
26
|
-
|
|
27
|
-
!
|
|
28
|
-
}, [
|
|
29
|
-
if (!
|
|
30
|
-
let e = (
|
|
25
|
+
}, f = a.forwardRef(({ target: f, baseDate: p, variant: m = "digital", size: h = "md", locale: g, unitDisplay: _ = "short", paused: v = !1, onComplete: y, completedContent: b, fallback: x, asChild: S = !1, className: C, children: w, ...T }, E) => {
|
|
26
|
+
let { t: D, i18n: O } = n(r), k = g ?? O?.language ?? "en", A = S ? e : "time", j = l(f), M = !Number.isNaN(j), N = p !== void 0, [P, F] = a.useState(() => Date.now()), I = N ? l(p) : P, L = M ? Math.max(0, j - I) : 0, R = M && L <= 0, z = !N && !v && M && !R;
|
|
27
|
+
a.useEffect(() => {
|
|
28
|
+
!v && !N && F(Date.now());
|
|
29
|
+
}, [v, N]), a.useEffect(() => {
|
|
30
|
+
if (!z) return;
|
|
31
|
+
let e = (j - Date.now()) % 1e3 || 1e3, t = window.setTimeout(() => F(Date.now()), e);
|
|
31
32
|
return () => window.clearTimeout(t);
|
|
32
33
|
}, [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
z,
|
|
35
|
+
j,
|
|
36
|
+
P
|
|
36
37
|
]);
|
|
37
|
-
let
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}, [
|
|
41
|
-
|
|
38
|
+
let B = a.useRef(!1);
|
|
39
|
+
a.useEffect(() => {
|
|
40
|
+
B.current = !1;
|
|
41
|
+
}, [j]), a.useEffect(() => {
|
|
42
|
+
M && !N && R && (B.current || (B.current = !0, y?.()));
|
|
42
43
|
}, [
|
|
43
|
-
|
|
44
|
+
R,
|
|
45
|
+
N,
|
|
44
46
|
M,
|
|
45
|
-
|
|
46
|
-
v
|
|
47
|
+
y
|
|
47
48
|
]);
|
|
48
|
-
let
|
|
49
|
-
let n = `${e}-${t}`, r =
|
|
49
|
+
let V = a.useMemo(() => /* @__PURE__ */ new Map(), [k]), H = (e, t) => {
|
|
50
|
+
let n = `${e}-${t}`, r = V.get(n);
|
|
50
51
|
if (!r) {
|
|
51
52
|
let i = {
|
|
52
53
|
style: "unit",
|
|
@@ -54,47 +55,47 @@ var c = (e) => e instanceof Date ? e.getTime() : new Date(e).getTime(), l = (e)
|
|
|
54
55
|
unitDisplay: t
|
|
55
56
|
};
|
|
56
57
|
try {
|
|
57
|
-
r = new Intl.NumberFormat(
|
|
58
|
+
r = new Intl.NumberFormat(k, i);
|
|
58
59
|
} catch {
|
|
59
60
|
r = new Intl.NumberFormat("en", i);
|
|
60
61
|
}
|
|
61
|
-
|
|
62
|
+
V.set(n, r);
|
|
62
63
|
}
|
|
63
64
|
return r;
|
|
64
|
-
},
|
|
65
|
-
if (!
|
|
66
|
-
ref:
|
|
67
|
-
className:
|
|
68
|
-
...
|
|
69
|
-
children: [/* @__PURE__ */
|
|
65
|
+
}, U = (e) => H(e.unit, _).formatToParts(e.value).filter((e) => e.type === "unit").map((e) => e.value).join("");
|
|
66
|
+
if (!M) return /* @__PURE__ */ c(A, {
|
|
67
|
+
ref: E,
|
|
68
|
+
className: o("wim-countdown", i.root, C),
|
|
69
|
+
...T,
|
|
70
|
+
children: [/* @__PURE__ */ s(t, { children: w }), x]
|
|
70
71
|
});
|
|
71
|
-
let
|
|
72
|
-
return /* @__PURE__ */
|
|
73
|
-
ref:
|
|
72
|
+
let W = Math.floor(L / 1e3), G = d(W, m === "digital"), K = R && b !== void 0, q = d(W, !1).map((e) => H(e.unit, "long").format(e.value)).join(" ");
|
|
73
|
+
return /* @__PURE__ */ c(A, {
|
|
74
|
+
ref: E,
|
|
74
75
|
role: "timer",
|
|
75
|
-
"aria-label":
|
|
76
|
-
className:
|
|
77
|
-
dateTime: new Date(
|
|
78
|
-
...
|
|
79
|
-
children: [/* @__PURE__ */
|
|
80
|
-
className:
|
|
76
|
+
"aria-label": K ? void 0 : D("countdown.remaining", { time: q }),
|
|
77
|
+
className: o("wim-countdown", i.root, i[m], i[h], C),
|
|
78
|
+
dateTime: new Date(j).toISOString(),
|
|
79
|
+
...T,
|
|
80
|
+
children: [/* @__PURE__ */ s(t, { children: w }), K ? b : m === "digital" ? G.map((e, t) => /* @__PURE__ */ c(a.Fragment, { children: [t > 0 && /* @__PURE__ */ s("span", {
|
|
81
|
+
className: i.separator,
|
|
81
82
|
"aria-hidden": "true",
|
|
82
83
|
children: ":"
|
|
83
|
-
}), /* @__PURE__ */
|
|
84
|
-
className:
|
|
85
|
-
children:
|
|
86
|
-
})] }, e.unit)) :
|
|
87
|
-
className:
|
|
88
|
-
children: [/* @__PURE__ */
|
|
89
|
-
className:
|
|
90
|
-
children: e.unit === "day" ? String(e.value) :
|
|
91
|
-
}), /* @__PURE__ */
|
|
92
|
-
className:
|
|
93
|
-
children:
|
|
84
|
+
}), /* @__PURE__ */ s("span", {
|
|
85
|
+
className: i.value,
|
|
86
|
+
children: u(e.value)
|
|
87
|
+
})] }, e.unit)) : G.map((e) => /* @__PURE__ */ c("span", {
|
|
88
|
+
className: i.segment,
|
|
89
|
+
children: [/* @__PURE__ */ s("span", {
|
|
90
|
+
className: i.value,
|
|
91
|
+
children: e.unit === "day" ? String(e.value) : u(e.value)
|
|
92
|
+
}), /* @__PURE__ */ s("span", {
|
|
93
|
+
className: i.label,
|
|
94
|
+
children: U(e)
|
|
94
95
|
})]
|
|
95
96
|
}, e.unit))]
|
|
96
97
|
});
|
|
97
98
|
});
|
|
98
|
-
|
|
99
|
+
f.displayName = "Countdown";
|
|
99
100
|
//#endregion
|
|
100
|
-
export {
|
|
101
|
+
export { f as Countdown };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../i18n/useWimTranslation.cjs"),n=require("../../form/Checkbox/Checkbox.cjs"),
|
|
2
|
+
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../i18n/useWimTranslation.cjs"),n=require("../../../i18n/generated/common.cjs"),r=require("../../form/Checkbox/Checkbox.cjs"),i=require("../../navigation/Pagination/Pagination.cjs"),a=require("../Table/Table.cjs"),o=require("./useFixedColumns.cjs"),s=require("./useDataGridKeyboard.cjs"),c=require("./useInfiniteScroll.cjs"),l=require("./datagrid.module.cjs");let u=require("react");u=e.__toESM(u,1);let d=require("classnames");d=e.__toESM(d,1);let f=require("react/jsx-runtime");function p({columns:e,data:p,rowKey:m=`id`,loading:h=!1,striped:g=!1,bordered:_=!1,hoverable:v=!0,stickyHeader:y=!0,height:b,maxHeight:x,emptyMessage:S,mobileCard:C=!1,selection:w,selectedRowKeys:T,onSelectionChange:E,sortConfig:D,onSortChange:O,pagination:k,infiniteScroll:A,className:j,ariaLabel:M}){let{t:N}=t.useWimTranslation(n.commonNs),P=h!==!1&&h!==void 0,F=h===!0||h===`blocking`,I=(0,u.useMemo)(()=>w?w===!0?{type:`checkbox`,selectedRowKeys:T??[],onChange:(e,t)=>{E?.(e,t)}}:w:null,[w,T,E]),{fixedLeftOffsets:L,fixedRightOffsets:R}=o.useFixedColumns(e,!!I),z=(e,t=!1)=>{let n=L[e];if(n)return{stickyLeft:!0,leftOffset:n.offset,stickyZIndex:t?1e3+n.zIndex:n.zIndex,className:(0,d.default)(l.default.cellFixed,n.isLast&&l.default.cellFixedLeftLast)};let r=R[e];return r?{stickyRight:!0,rightOffset:r.offset,stickyZIndex:t?1e3+r.zIndex:r.zIndex,className:(0,d.default)(l.default.cellFixed,r.isFirst&&l.default.cellFixedRightFirst)}:{}},B=(0,u.useCallback)(e=>typeof m==`function`?m(e):e[m],[m]),V=(0,u.useMemo)(()=>!I||p.length===0?!1:p.every(e=>I.selectedRowKeys.includes(B(e))),[p,I,B]),H=(0,u.useMemo)(()=>I?!V&&p.some(e=>I.selectedRowKeys.includes(B(e))):!1,[p,I,V,B]),U=e=>{if(!I)return;let t=e.target.checked,n=t?p.map(B):[],r=t?p:[];I.onChange(n,r)},W=(e,t)=>{if(!I)return;let n=t.target.checked,r=B(e),i=n?[...I.selectedRowKeys,r]:I.selectedRowKeys.filter(e=>e!==r),a=p.filter(e=>i.includes(B(e)));I.onChange(i,a)},{focusedCell:G,handleKeyDown:K,containerRef:q}=s.useDataGridKeyboard(e,p,!!I),{loaderRef:J}=c.useInfiniteScroll(A),Y=e.length+ +!!I;return(0,f.jsxs)(`div`,{className:(0,d.default)(`wim-data-grid`,l.default.root,F&&l.default.loading,C===`md`?l.default.mobileCardMd:C&&l.default.mobileCard,j),"aria-busy":P||void 0,children:[(0,f.jsxs)(`div`,{className:l.default.container,style:{height:b,maxHeight:x},inert:F||void 0,children:[(0,f.jsxs)(a.Table,{ref:q,onKeyDown:K,tabIndex:0,role:`grid`,"aria-label":M??N(`a11y.data_grid`),"aria-rowcount":p.length+1,"aria-colcount":Y,striped:g,bordered:_,hoverable:v,stickyHeader:y,mobileCard:C,fullWidth:!0,className:(0,d.default)(`wim-table`,l.default.table),containerClassName:l.default.tableContainer,children:[(0,f.jsx)(a.Table.Header,{children:(0,f.jsxs)(a.Table.Row,{children:[I&&(0,f.jsx)(a.Table.Head,{role:`columnheader`,selection:!0,stickyLeft:!0,leftOffset:0,stickyZIndex:1150,"data-row":-1,"data-col":-1,"aria-label":N(`a11y.select_all_rows`),tabIndex:G.row===-1&&G.col===-1?0:-1,children:(I.type??`checkbox`)===`checkbox`&&(0,f.jsx)(r.Checkbox,{checked:V,indeterminate:H,onChange:U,"aria-label":N(`a11y.select_all_rows`)})}),e.map((e,t)=>{let n=z(e.key,!0);return(0,f.jsx)(a.Table.Head,{role:`columnheader`,style:{width:e.width,minWidth:e.width},sortable:!!(e.sortable&&O),sortDirection:D?.key===e.key?D.direction:`none`,onSort:()=>{if(!e.sortable||!O)return;let t=D?.key===e.key?D.direction===`asc`?`desc`:D.direction===`desc`?`none`:`asc`:`asc`;O(e.key,t)},...n,tabIndex:G.row===-1&&G.col===(I?t+1:t)?0:-1,"data-row":-1,"data-col":I?t+1:t,children:e.title},e.key)})]})}),(0,f.jsx)(a.Table.Body,{children:p.map((t,n)=>{let i=B(t),o=I?.selectedRowKeys.includes(i);return(0,f.jsxs)(a.Table.Row,{selected:o,children:[I&&(0,f.jsx)(a.Table.Cell,{role:`gridcell`,selection:!0,stickyLeft:!0,leftOffset:0,stickyZIndex:150,"data-row":n,"data-col":-1,tabIndex:G.row===n&&G.col===-1?0:-1,children:(0,f.jsx)(r.Checkbox,{checked:o,onChange:e=>W(t,e),"aria-label":N(`a11y.select_row`)})}),e.map((e,r)=>{let i=z(e.key,!1),o=t[e.dataIndex??e.key];return(0,f.jsx)(a.Table.Cell,{role:`gridcell`,label:typeof e.title==`string`?e.title:void 0,...i,"data-row":n,"data-col":I?r+1:r,tabIndex:G.row===n&&G.col===(I?r+1:r)?0:-1,children:e.maxWidth==null?e.render?e.render(o,t,n):o:(0,f.jsx)(`div`,{style:{maxWidth:e.maxWidth},children:e.render?e.render(o,t,n):o})},e.key)})]},i)})})]}),p.length===0&&S&&(0,f.jsx)(`div`,{role:`status`,className:l.default.empty,children:S}),A?.hasMore&&(0,f.jsx)(`div`,{ref:J,className:l.default.loader,children:A.hasMore&&N(`dataGrid.loading_more`)})]}),k&&(0,f.jsxs)(`div`,{className:l.default.footer,inert:F||void 0,children:[(0,f.jsxs)(`div`,{className:l.default.info,children:[N(`dataGrid.displaying`,{shown:p.length,total:k.total}),I?.selectedRowKeys&&I.selectedRowKeys.length>0&&(0,f.jsx)(`span`,{className:l.default.selectionInfo,children:N(`dataGrid.rows_selected`,{selected:I.selectedRowKeys.length})})]}),(0,f.jsx)(`div`,{className:l.default.pagination,children:(0,f.jsx)(i.Pagination,{className:l.default.paginationContent,current:k.current,total:k.total,pageSize:k.pageSize,onChange:k.onChange})})]})]})}exports.DataGrid=p;
|