@drivenets/design-system 0.0.3 → 0.0.4
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/CHANGELOG.md +6 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.cjs +157 -52
- package/dist/components/ds-alert-banner/ds-alert-banner.d.cts +5 -5
- package/dist/components/ds-alert-banner/ds-alert-banner.d.cts.map +1 -1
- package/dist/components/ds-alert-banner/ds-alert-banner.js +157 -52
- package/dist/components/ds-alert-banner/ds-alert-banner.js.map +1 -1
- package/dist/components/ds-alert-banner/ds-alert-banner.types.d.cts.map +1 -1
- package/dist/components/ds-alert-banner/ds-alert-banner.types.js.map +1 -1
- package/dist/components/ds-breadcrumb/ds-breadcrumb.cjs +59 -16
- package/dist/components/ds-breadcrumb/ds-breadcrumb.js +59 -16
- package/dist/components/ds-breadcrumb/ds-breadcrumb.js.map +1 -1
- package/dist/components/ds-button/ds-button.cjs +18 -2
- package/dist/components/ds-button/ds-button.d.cts +2 -2
- package/dist/components/ds-button/ds-button.d.ts +2 -2
- package/dist/components/ds-button/ds-button.js +18 -2
- package/dist/components/ds-button/ds-button.js.map +1 -1
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.cjs +79 -10
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.js +79 -10
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.js.map +1 -1
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.cjs +78 -10
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.js +78 -10
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.js.map +1 -1
- package/dist/components/ds-checkbox/ds-checkbox.cjs +89 -18
- package/dist/components/ds-checkbox/ds-checkbox.js +89 -18
- package/dist/components/ds-checkbox/ds-checkbox.js.map +1 -1
- package/dist/components/ds-chip/ds-chip.cjs +100 -30
- package/dist/components/ds-chip/ds-chip.js +100 -30
- package/dist/components/ds-chip/ds-chip.js.map +1 -1
- package/dist/components/ds-chip-group/ds-chip-group.cjs +6 -6
- package/dist/components/ds-chip-group/ds-chip-group.js +6 -6
- package/dist/components/ds-chip-group/ds-chip-group.js.map +1 -1
- package/dist/components/ds-chip-group/hooks/use-chip-row-calculation.js.map +1 -1
- package/dist/components/ds-confirmation/ds-confirmation.cjs +210 -56
- package/dist/components/ds-confirmation/ds-confirmation.d.cts +8 -8
- package/dist/components/ds-confirmation/ds-confirmation.d.cts.map +1 -1
- package/dist/components/ds-confirmation/ds-confirmation.d.ts +8 -8
- package/dist/components/ds-confirmation/ds-confirmation.js +210 -56
- package/dist/components/ds-confirmation/ds-confirmation.js.map +1 -1
- package/dist/components/ds-dialog/ds-dialog.js.map +1 -1
- package/dist/components/ds-drawer/ds-drawer.cjs +261 -61
- package/dist/components/ds-drawer/ds-drawer.d.cts +9 -9
- package/dist/components/ds-drawer/ds-drawer.d.ts +9 -9
- package/dist/components/ds-drawer/ds-drawer.js +261 -61
- package/dist/components/ds-drawer/ds-drawer.js.map +1 -1
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.cjs +481 -135
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.js +481 -135
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.js.map +1 -1
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.cjs +146 -56
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.cts +2 -2
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.ts +2 -2
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.js +146 -56
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.js.map +1 -1
- package/dist/components/ds-file-upload/components/file-upload/file-upload.cjs +190 -69
- package/dist/components/ds-file-upload/components/file-upload/file-upload.js +190 -69
- package/dist/components/ds-file-upload/components/file-upload/file-upload.js.map +1 -1
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.cjs +273 -132
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.js +273 -132
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.js.map +1 -1
- package/dist/components/ds-file-upload/ds-file-upload.cjs +96 -16
- package/dist/components/ds-file-upload/ds-file-upload.js +96 -16
- package/dist/components/ds-file-upload/ds-file-upload.js.map +1 -1
- package/dist/components/ds-file-upload/errors/file-upload-errors.js.map +1 -1
- package/dist/components/ds-file-upload/hooks/use-file-upload.cjs +93 -93
- package/dist/components/ds-file-upload/hooks/use-file-upload.js +93 -93
- package/dist/components/ds-file-upload/hooks/use-file-upload.js.map +1 -1
- package/dist/components/ds-file-upload/types/accept-types.js.map +1 -1
- package/dist/components/ds-file-upload/utils/accept-utils.js.map +1 -1
- package/dist/components/ds-file-upload/utils/constants.js.map +1 -1
- package/dist/components/ds-file-upload/utils/file-factory.js.map +1 -1
- package/dist/components/ds-file-upload/utils/format-file-size.js.map +1 -1
- package/dist/components/ds-file-upload/utils/generate-helper-text.js.map +1 -1
- package/dist/components/ds-file-upload/utils/get-error-message.js.map +1 -1
- package/dist/components/ds-file-upload/utils/is-file-equal.js.map +1 -1
- package/dist/components/ds-form-control/ds-form-control.cjs +119 -34
- package/dist/components/ds-form-control/ds-form-control.d.cts +7 -7
- package/dist/components/ds-form-control/ds-form-control.d.ts +7 -7
- package/dist/components/ds-form-control/ds-form-control.d.ts.map +1 -1
- package/dist/components/ds-form-control/ds-form-control.js +119 -34
- package/dist/components/ds-form-control/ds-form-control.js.map +1 -1
- package/dist/components/ds-form-control/ds-form-control.types.js.map +1 -1
- package/dist/components/ds-grid/ds-grid.js.map +1 -1
- package/dist/components/ds-icon/ds-icon.cjs +84 -13
- package/dist/components/ds-icon/ds-icon.js +84 -13
- package/dist/components/ds-icon/ds-icon.js.map +1 -1
- package/dist/components/ds-icon/ds-icon.types.d.cts.map +1 -1
- package/dist/components/ds-icon/ds-icon.types.js.map +1 -1
- package/dist/components/ds-modal/ds-modal.cjs +222 -55
- package/dist/components/ds-modal/ds-modal.d.cts +8 -8
- package/dist/components/ds-modal/ds-modal.d.cts.map +1 -1
- package/dist/components/ds-modal/ds-modal.d.ts +8 -8
- package/dist/components/ds-modal/ds-modal.d.ts.map +1 -1
- package/dist/components/ds-modal/ds-modal.js +222 -55
- package/dist/components/ds-modal/ds-modal.js.map +1 -1
- package/dist/components/ds-number-input/ds-number-input.cjs +136 -49
- package/dist/components/ds-number-input/ds-number-input.js +136 -49
- package/dist/components/ds-number-input/ds-number-input.js.map +1 -1
- package/dist/components/ds-panel/ds-panel.cjs +111 -19
- package/dist/components/ds-panel/ds-panel.d.cts +2 -2
- package/dist/components/ds-panel/ds-panel.d.cts.map +1 -1
- package/dist/components/ds-panel/ds-panel.js +111 -19
- package/dist/components/ds-panel/ds-panel.js.map +1 -1
- package/dist/components/ds-password-input/ds-password-input.cjs +108 -41
- package/dist/components/ds-password-input/ds-password-input.js +108 -41
- package/dist/components/ds-password-input/ds-password-input.js.map +1 -1
- package/dist/components/ds-popover/ds-popover.cjs +50 -12
- package/dist/components/ds-popover/ds-popover.js +50 -12
- package/dist/components/ds-popover/ds-popover.js.map +1 -1
- package/dist/components/ds-radio-group/ds-radio-group.cjs +209 -53
- package/dist/components/ds-radio-group/ds-radio-group.js +209 -53
- package/dist/components/ds-radio-group/ds-radio-group.js.map +1 -1
- package/dist/components/ds-select/ds-select.cjs +198 -89
- package/dist/components/ds-select/ds-select.d.cts +2 -2
- package/dist/components/ds-select/ds-select.d.cts.map +1 -1
- package/dist/components/ds-select/ds-select.js +198 -89
- package/dist/components/ds-select/ds-select.js.map +1 -1
- package/dist/components/ds-select/select-items-chips.cjs +73 -22
- package/dist/components/ds-select/select-items-chips.js +73 -22
- package/dist/components/ds-select/select-items-chips.js.map +1 -1
- package/dist/components/ds-smart-tabs/ds-smart-tabs.cjs +208 -46
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.cts +2 -2
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.cts.map +1 -1
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.ts +2 -2
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.ts.map +1 -1
- package/dist/components/ds-smart-tabs/ds-smart-tabs.js +208 -46
- package/dist/components/ds-smart-tabs/ds-smart-tabs.js.map +1 -1
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.js.map +1 -1
- package/dist/components/ds-spinner/ds-spinner.cjs +90 -20
- package/dist/components/ds-spinner/ds-spinner.js +90 -20
- package/dist/components/ds-spinner/ds-spinner.js.map +1 -1
- package/dist/components/ds-spinner/ds-spinner.types.js.map +1 -1
- package/dist/components/ds-status-badge/ds-status-badge.cjs +54 -11
- package/dist/components/ds-status-badge/ds-status-badge.js +54 -11
- package/dist/components/ds-status-badge/ds-status-badge.js.map +1 -1
- package/dist/components/ds-stepper/components/ds-step-content.cjs +59 -13
- package/dist/components/ds-stepper/components/ds-step-content.d.cts +2 -2
- package/dist/components/ds-stepper/components/ds-step-content.d.ts +2 -2
- package/dist/components/ds-stepper/components/ds-step-content.js +59 -13
- package/dist/components/ds-stepper/components/ds-step-content.js.map +1 -1
- package/dist/components/ds-stepper/components/ds-step-description.cjs +14 -5
- package/dist/components/ds-stepper/components/ds-step-description.js +14 -5
- package/dist/components/ds-stepper/components/ds-step-description.js.map +1 -1
- package/dist/components/ds-stepper/components/ds-step-label.cjs +14 -5
- package/dist/components/ds-stepper/components/ds-step-label.js +14 -5
- package/dist/components/ds-stepper/components/ds-step-label.js.map +1 -1
- package/dist/components/ds-stepper/components/ds-step-next-button.cjs +23 -6
- package/dist/components/ds-stepper/components/ds-step-next-button.d.cts +2 -2
- package/dist/components/ds-stepper/components/ds-step-next-button.d.ts +2 -2
- package/dist/components/ds-stepper/components/ds-step-next-button.js +23 -6
- package/dist/components/ds-stepper/components/ds-step-next-button.js.map +1 -1
- package/dist/components/ds-stepper/components/ds-step.cjs +106 -25
- package/dist/components/ds-stepper/components/ds-step.d.cts +2 -2
- package/dist/components/ds-stepper/components/ds-step.d.ts +2 -2
- package/dist/components/ds-stepper/components/ds-step.js +106 -25
- package/dist/components/ds-stepper/components/ds-step.js.map +1 -1
- package/dist/components/ds-stepper/ds-stepper.cjs +62 -15
- package/dist/components/ds-stepper/ds-stepper.d.cts +2 -2
- package/dist/components/ds-stepper/ds-stepper.d.cts.map +1 -1
- package/dist/components/ds-stepper/ds-stepper.d.ts +2 -2
- package/dist/components/ds-stepper/ds-stepper.js +62 -15
- package/dist/components/ds-stepper/ds-stepper.js.map +1 -1
- package/dist/components/ds-stepper/hooks/use-stepper.js.map +1 -1
- package/dist/components/ds-stepper/hooks/use-steps.cjs +29 -9
- package/dist/components/ds-stepper/hooks/use-steps.js +29 -9
- package/dist/components/ds-stepper/hooks/use-steps.js.map +1 -1
- package/dist/components/ds-system-status/ds-system-status.cjs +37 -7
- package/dist/components/ds-system-status/ds-system-status.js +37 -7
- package/dist/components/ds-system-status/ds-system-status.js.map +1 -1
- package/dist/components/ds-system-status/ds-system-status.types.js.map +1 -1
- package/dist/components/ds-table/components/core-table/core-table.cjs +281 -48
- package/dist/components/ds-table/components/core-table/core-table.js +281 -48
- package/dist/components/ds-table/components/core-table/core-table.js.map +1 -1
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.cjs +134 -50
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.js +134 -50
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.js.map +1 -1
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.cjs +140 -43
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.js +140 -43
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.js.map +1 -1
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.cjs +37 -6
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.js +37 -6
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.js.map +1 -1
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.cjs +272 -100
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.js +272 -100
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.js.map +1 -1
- package/dist/components/ds-table/context/ds-table-context.js.map +1 -1
- package/dist/components/ds-table/ds-table.cjs +15 -15
- package/dist/components/ds-table/ds-table.d.cts +2 -2
- package/dist/components/ds-table/ds-table.js +15 -15
- package/dist/components/ds-table/ds-table.js.map +1 -1
- package/dist/components/ds-table/hooks/use-drag-and-drop.cjs +126 -38
- package/dist/components/ds-table/hooks/use-drag-and-drop.js +126 -38
- package/dist/components/ds-table/hooks/use-drag-and-drop.js.map +1 -1
- package/dist/components/ds-table/utils/column-styling.js.map +1 -1
- package/dist/components/ds-table/utils/create-columns-grid-template.js.map +1 -1
- package/dist/components/ds-table/utils/merge-refs.js.map +1 -1
- package/dist/components/ds-text-input/ds-text-input.cjs +128 -43
- package/dist/components/ds-text-input/ds-text-input.js +128 -43
- package/dist/components/ds-text-input/ds-text-input.js.map +1 -1
- package/dist/components/ds-text-input/ds-text-input.types.js.map +1 -1
- package/dist/components/ds-textarea/ds-textarea.cjs +66 -22
- package/dist/components/ds-textarea/ds-textarea.js +66 -22
- package/dist/components/ds-textarea/ds-textarea.js.map +1 -1
- package/dist/components/ds-toast/ds-toast-context.cjs +62 -17
- package/dist/components/ds-toast/ds-toast-context.js +62 -17
- package/dist/components/ds-toast/ds-toast-context.js.map +1 -1
- package/dist/components/ds-toast/ds-toast.cjs +90 -26
- package/dist/components/ds-toast/ds-toast.js +90 -26
- package/dist/components/ds-toast/ds-toast.js.map +1 -1
- package/dist/components/ds-tooltip/ds-tooltip.cjs +51 -13
- package/dist/components/ds-tooltip/ds-tooltip.js +51 -13
- package/dist/components/ds-tooltip/ds-tooltip.js.map +1 -1
- package/dist/components/ds-typography/ds-typography.cjs +51 -7
- package/dist/components/ds-typography/ds-typography.config.js.map +1 -1
- package/dist/components/ds-typography/ds-typography.js +51 -7
- package/dist/components/ds-typography/ds-typography.js.map +1 -1
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.cjs +91 -30
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.cts +5 -5
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.ts +5 -5
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.js +91 -30
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.js.map +1 -1
- package/dist/index.min.css +1 -1
- package/package.json +7 -1
|
@@ -14,6 +14,7 @@ const require_column_styling = require('../../utils/column-styling.cjs');
|
|
|
14
14
|
const require_ds_table_cell = require('../ds-table-cell/ds-table-cell.cjs');
|
|
15
15
|
require('../ds-table-cell/index.cjs');
|
|
16
16
|
const require_ds_table_row_module = require('./ds-table-row.module.cjs');
|
|
17
|
+
let react_compiler_runtime = require("react/compiler-runtime");
|
|
17
18
|
let classnames = require("classnames");
|
|
18
19
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
19
20
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -23,118 +24,289 @@ let __dnd_kit_sortable = require("@dnd-kit/sortable");
|
|
|
23
24
|
let __dnd_kit_utilities = require("@dnd-kit/utilities");
|
|
24
25
|
|
|
25
26
|
//#region src/components/ds-table/components/ds-table-row/ds-table-row.tsx
|
|
26
|
-
const DsRowDragHandle = (
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
const DsRowDragHandle = (t0) => {
|
|
28
|
+
const $ = (0, react_compiler_runtime.c)(10);
|
|
29
|
+
const { isDragging, attributes, listeners } = t0;
|
|
30
|
+
let t1;
|
|
31
|
+
if ($[0] !== isDragging) {
|
|
32
|
+
t1 = (0, classnames.default)(require_ds_table_row_module.default.tableCell, require_ds_table_row_module.default.cellReorder, { [require_ds_table_row_module.default.isDragging]: isDragging });
|
|
33
|
+
$[0] = isDragging;
|
|
34
|
+
$[1] = t1;
|
|
35
|
+
} else t1 = $[1];
|
|
36
|
+
const t2 = isDragging ? "drag_indicator" : "arrow_downward";
|
|
37
|
+
const t3 = isDragging ? "medium" : "small";
|
|
38
|
+
let t4;
|
|
39
|
+
if ($[2] !== attributes || $[3] !== listeners || $[4] !== t2 || $[5] !== t3) {
|
|
40
|
+
t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_icon.default, {
|
|
30
41
|
className: require_ds_table_row_module.default.rowDragHandle,
|
|
31
|
-
icon:
|
|
32
|
-
size:
|
|
33
|
-
onClick:
|
|
42
|
+
icon: t2,
|
|
43
|
+
size: t3,
|
|
44
|
+
onClick: _temp,
|
|
34
45
|
...attributes,
|
|
35
46
|
...listeners
|
|
36
|
-
})
|
|
37
|
-
|
|
47
|
+
});
|
|
48
|
+
$[2] = attributes;
|
|
49
|
+
$[3] = listeners;
|
|
50
|
+
$[4] = t2;
|
|
51
|
+
$[5] = t3;
|
|
52
|
+
$[6] = t4;
|
|
53
|
+
} else t4 = $[6];
|
|
54
|
+
let t5;
|
|
55
|
+
if ($[7] !== t1 || $[8] !== t4) {
|
|
56
|
+
t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_core_table.TableCell, {
|
|
57
|
+
className: t1,
|
|
58
|
+
children: t4
|
|
59
|
+
});
|
|
60
|
+
$[7] = t1;
|
|
61
|
+
$[8] = t4;
|
|
62
|
+
$[9] = t5;
|
|
63
|
+
} else t5 = $[9];
|
|
64
|
+
return t5;
|
|
38
65
|
};
|
|
39
|
-
const DsTableRow = (
|
|
66
|
+
const DsTableRow = (t0) => {
|
|
67
|
+
const $ = (0, react_compiler_runtime.c)(75);
|
|
68
|
+
const { ref, row, virtualRow } = t0;
|
|
40
69
|
const { expandable, expandedRows, selectable, reorderable, onRowClick, onRowDoubleClick, renderExpandedRow, virtualized, bordered, highlightOnHover, rowSize, toggleRowExpanded, primaryRowActions, secondaryRowActions, activeRowId } = require_ds_table_context.useDsTableContext();
|
|
41
70
|
const isExpanded = expandedRows[row.id];
|
|
42
|
-
|
|
71
|
+
let t1;
|
|
72
|
+
if ($[0] !== expandable || $[1] !== row.original) {
|
|
73
|
+
t1 = typeof expandable === "function" ? expandable(row.original) : expandable;
|
|
74
|
+
$[0] = expandable;
|
|
75
|
+
$[1] = row.original;
|
|
76
|
+
$[2] = t1;
|
|
77
|
+
} else t1 = $[2];
|
|
78
|
+
const isExpandable = t1;
|
|
43
79
|
const isActive = activeRowId === row.id;
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
const t2 = !reorderable;
|
|
81
|
+
let t3;
|
|
82
|
+
if ($[3] !== row.id || $[4] !== t2) {
|
|
83
|
+
t3 = {
|
|
84
|
+
id: row.id,
|
|
85
|
+
disabled: t2
|
|
86
|
+
};
|
|
87
|
+
$[3] = row.id;
|
|
88
|
+
$[4] = t2;
|
|
89
|
+
$[5] = t3;
|
|
90
|
+
} else t3 = $[5];
|
|
91
|
+
const { attributes, listeners, setNodeRef, transform, transition, isDragging } = (0, __dnd_kit_sortable.useSortable)(t3);
|
|
92
|
+
let t4;
|
|
93
|
+
if ($[6] !== isDragging || $[7] !== reorderable || $[8] !== transform || $[9] !== transition || $[10] !== virtualRow || $[11] !== virtualized) {
|
|
94
|
+
t4 = virtualRow && virtualized ? { transform: `translateY(${String(virtualRow.start)}px)` } : reorderable ? {
|
|
95
|
+
transform: __dnd_kit_utilities.CSS.Transform.toString(transform),
|
|
96
|
+
transition,
|
|
97
|
+
...isDragging ? {
|
|
98
|
+
background: "var(--action-active-light)",
|
|
99
|
+
boxShadow: "0 0 12px 0 rgba(0, 102, 250, 0.60)",
|
|
100
|
+
zIndex: 1
|
|
101
|
+
} : {},
|
|
102
|
+
position: "relative"
|
|
103
|
+
} : {};
|
|
104
|
+
$[6] = isDragging;
|
|
105
|
+
$[7] = reorderable;
|
|
106
|
+
$[8] = transform;
|
|
107
|
+
$[9] = transition;
|
|
108
|
+
$[10] = virtualRow;
|
|
109
|
+
$[11] = virtualized;
|
|
110
|
+
$[12] = t4;
|
|
111
|
+
} else t4 = $[12];
|
|
112
|
+
const rowStyle = t4;
|
|
113
|
+
const t5 = row.id;
|
|
114
|
+
const t6 = reorderable ? setNodeRef : null;
|
|
115
|
+
let t7;
|
|
116
|
+
if ($[13] !== ref || $[14] !== t6) {
|
|
117
|
+
t7 = require_merge_refs.mergeRefs(t6, ref);
|
|
118
|
+
$[13] = ref;
|
|
119
|
+
$[14] = t6;
|
|
120
|
+
$[15] = t7;
|
|
121
|
+
} else t7 = $[15];
|
|
122
|
+
const t8 = isActive ? "active" : row.getIsSelected() ? "selected" : void 0;
|
|
123
|
+
const t9 = rowSize === "small";
|
|
124
|
+
const t10 = rowSize === "medium";
|
|
125
|
+
const t11 = rowSize === "large";
|
|
126
|
+
let t12;
|
|
127
|
+
if ($[16] !== bordered || $[17] !== highlightOnHover || $[18] !== isExpanded || $[19] !== onRowClick || $[20] !== t10 || $[21] !== t11 || $[22] !== t9 || $[23] !== virtualized) {
|
|
128
|
+
t12 = (0, classnames.default)(require_ds_table_row_module.default.tableRow, {
|
|
129
|
+
[require_ds_table_row_module.default.sizeSmall]: t9,
|
|
130
|
+
[require_ds_table_row_module.default.sizeMedium]: t10,
|
|
131
|
+
[require_ds_table_row_module.default.sizeLarge]: t11
|
|
132
|
+
}, virtualized && require_ds_table_row_module.default.virtualizedRow, onRowClick && require_ds_table_row_module.default.clickableRow, highlightOnHover && require_ds_table_row_module.default.highlightHoverRow, !bordered && require_ds_table_row_module.default.rowNoBorder, isExpanded && require_ds_table_row_module.default.expanded);
|
|
133
|
+
$[16] = bordered;
|
|
134
|
+
$[17] = highlightOnHover;
|
|
135
|
+
$[18] = isExpanded;
|
|
136
|
+
$[19] = onRowClick;
|
|
137
|
+
$[20] = t10;
|
|
138
|
+
$[21] = t11;
|
|
139
|
+
$[22] = t9;
|
|
140
|
+
$[23] = virtualized;
|
|
141
|
+
$[24] = t12;
|
|
142
|
+
} else t12 = $[24];
|
|
143
|
+
let t13;
|
|
144
|
+
if ($[25] !== onRowClick || $[26] !== row.original) {
|
|
145
|
+
t13 = () => onRowClick?.(row.original);
|
|
146
|
+
$[25] = onRowClick;
|
|
147
|
+
$[26] = row.original;
|
|
148
|
+
$[27] = t13;
|
|
149
|
+
} else t13 = $[27];
|
|
150
|
+
let t14;
|
|
151
|
+
if ($[28] !== onRowDoubleClick || $[29] !== row.original) {
|
|
152
|
+
t14 = () => onRowDoubleClick?.(row.original);
|
|
153
|
+
$[28] = onRowDoubleClick;
|
|
154
|
+
$[29] = row.original;
|
|
155
|
+
$[30] = t14;
|
|
156
|
+
} else t14 = $[30];
|
|
157
|
+
let t15;
|
|
158
|
+
if ($[31] !== row || $[32] !== selectable) {
|
|
159
|
+
t15 = selectable && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_core_table.TableCell, {
|
|
160
|
+
className: (0, classnames.default)(require_ds_table_row_module.default.tableCell, require_ds_table_row_module.default.cellCheckbox),
|
|
161
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_checkbox.default, {
|
|
162
|
+
className: require_ds_table_shared_module.default.checkboxContainer,
|
|
163
|
+
checked: row.getIsSelected(),
|
|
164
|
+
disabled: !row.getCanSelect(),
|
|
165
|
+
onClick: (e) => {
|
|
166
|
+
e.stopPropagation();
|
|
167
|
+
row.getToggleSelectedHandler()(e);
|
|
168
|
+
},
|
|
169
|
+
onDoubleClick: _temp2
|
|
170
|
+
})
|
|
171
|
+
});
|
|
172
|
+
$[31] = row;
|
|
173
|
+
$[32] = selectable;
|
|
174
|
+
$[33] = t15;
|
|
175
|
+
} else t15 = $[33];
|
|
176
|
+
let t16;
|
|
177
|
+
if ($[34] !== expandable || $[35] !== isExpandable || $[36] !== isExpanded || $[37] !== row.id || $[38] !== toggleRowExpanded || $[39] !== virtualized) {
|
|
178
|
+
t16 = expandable && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_core_table.TableCell, {
|
|
179
|
+
className: (0, classnames.default)(require_ds_table_row_module.default.tableCell, require_ds_table_row_module.default.cellButton),
|
|
180
|
+
children: isExpandable && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_button.default, {
|
|
181
|
+
variant: virtualized ? "ghost" : "borderless",
|
|
182
|
+
size: "small",
|
|
183
|
+
onClick: (e_1) => {
|
|
184
|
+
e_1.stopPropagation();
|
|
185
|
+
toggleRowExpanded(row.id);
|
|
186
|
+
},
|
|
187
|
+
onDoubleClick: _temp3,
|
|
188
|
+
className: require_ds_table_row_module.default.expandToggleButton,
|
|
189
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_icon.default, {
|
|
190
|
+
icon: virtualized ? isExpanded ? "arrow_drop_down" : "arrow_right" : "chevron_right",
|
|
191
|
+
className: (0, classnames.default)(require_ds_table_shared_module.default.pageButtonIcon, !virtualized && isExpanded && "rotate-90")
|
|
83
192
|
})
|
|
84
|
-
})
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
193
|
+
})
|
|
194
|
+
});
|
|
195
|
+
$[34] = expandable;
|
|
196
|
+
$[35] = isExpandable;
|
|
197
|
+
$[36] = isExpanded;
|
|
198
|
+
$[37] = row.id;
|
|
199
|
+
$[38] = toggleRowExpanded;
|
|
200
|
+
$[39] = virtualized;
|
|
201
|
+
$[40] = t16;
|
|
202
|
+
} else t16 = $[40];
|
|
203
|
+
let t17;
|
|
204
|
+
if ($[41] !== attributes || $[42] !== isDragging || $[43] !== listeners || $[44] !== reorderable) {
|
|
205
|
+
t17 = reorderable && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DsRowDragHandle, {
|
|
206
|
+
isDragging,
|
|
207
|
+
attributes,
|
|
208
|
+
listeners
|
|
209
|
+
});
|
|
210
|
+
$[41] = attributes;
|
|
211
|
+
$[42] = isDragging;
|
|
212
|
+
$[43] = listeners;
|
|
213
|
+
$[44] = reorderable;
|
|
214
|
+
$[45] = t17;
|
|
215
|
+
} else t17 = $[45];
|
|
216
|
+
let t18;
|
|
217
|
+
if ($[46] !== primaryRowActions || $[47] !== row || $[48] !== secondaryRowActions || $[49] !== virtualized) {
|
|
218
|
+
t18 = row.getVisibleCells().map((cell, idx) => {
|
|
219
|
+
const isLastColumn = idx === row.getVisibleCells().length - 1;
|
|
220
|
+
const cellStyle = require_column_styling.getColumnStyle(cell.column.getSize(), virtualized, isLastColumn);
|
|
221
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_core_table.TableCell, {
|
|
222
|
+
className: require_ds_table_row_module.default.tableCell,
|
|
223
|
+
style: cellStyle,
|
|
224
|
+
children: isLastColumn ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_table_cell.DsTableCell, {
|
|
225
|
+
row,
|
|
226
|
+
cell,
|
|
227
|
+
primaryRowActions,
|
|
228
|
+
secondaryRowActions
|
|
229
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_table_cell.DsTableCell, {
|
|
230
|
+
row,
|
|
231
|
+
cell
|
|
102
232
|
})
|
|
103
|
-
})
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
233
|
+
}, cell.id);
|
|
234
|
+
});
|
|
235
|
+
$[46] = primaryRowActions;
|
|
236
|
+
$[47] = row;
|
|
237
|
+
$[48] = secondaryRowActions;
|
|
238
|
+
$[49] = virtualized;
|
|
239
|
+
$[50] = t18;
|
|
240
|
+
} else t18 = $[50];
|
|
241
|
+
let t19;
|
|
242
|
+
if ($[51] !== rowStyle || $[52] !== t12 || $[53] !== t13 || $[54] !== t14 || $[55] !== t15 || $[56] !== t16 || $[57] !== t17 || $[58] !== t18 || $[59] !== t7 || $[60] !== t8) {
|
|
243
|
+
t19 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_core_table.TableRow, {
|
|
244
|
+
ref: t7,
|
|
245
|
+
"data-state": t8,
|
|
246
|
+
className: t12,
|
|
247
|
+
style: rowStyle,
|
|
248
|
+
onClick: t13,
|
|
249
|
+
onDoubleClick: t14,
|
|
250
|
+
children: [
|
|
251
|
+
t15,
|
|
252
|
+
t16,
|
|
253
|
+
t17,
|
|
254
|
+
t18
|
|
255
|
+
]
|
|
256
|
+
});
|
|
257
|
+
$[51] = rowStyle;
|
|
258
|
+
$[52] = t12;
|
|
259
|
+
$[53] = t13;
|
|
260
|
+
$[54] = t14;
|
|
261
|
+
$[55] = t15;
|
|
262
|
+
$[56] = t16;
|
|
263
|
+
$[57] = t17;
|
|
264
|
+
$[58] = t18;
|
|
265
|
+
$[59] = t7;
|
|
266
|
+
$[60] = t8;
|
|
267
|
+
$[61] = t19;
|
|
268
|
+
} else t19 = $[61];
|
|
269
|
+
let t20;
|
|
270
|
+
if ($[62] !== isExpandable || $[63] !== isExpanded || $[64] !== renderExpandedRow || $[65] !== reorderable || $[66] !== row || $[67] !== selectable || $[68] !== virtualRow || $[69] !== virtualized) {
|
|
271
|
+
t20 = isExpanded && renderExpandedRow && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_core_table.TableRow, {
|
|
272
|
+
style: virtualRow && virtualized ? { transform: `translateY(${String(virtualRow.start + virtualRow.size)}px)` } : void 0,
|
|
273
|
+
className: require_ds_table_row_module.default.expandedRow,
|
|
274
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_core_table.TableCell, {
|
|
275
|
+
colSpan: row.getVisibleCells().length + (selectable ? 1 : 0) + (isExpandable ? 1 : 0) + (reorderable ? 1 : 0),
|
|
276
|
+
className: require_ds_table_row_module.default.tableCell,
|
|
277
|
+
children: renderExpandedRow(row.original)
|
|
125
278
|
})
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
279
|
+
});
|
|
280
|
+
$[62] = isExpandable;
|
|
281
|
+
$[63] = isExpanded;
|
|
282
|
+
$[64] = renderExpandedRow;
|
|
283
|
+
$[65] = reorderable;
|
|
284
|
+
$[66] = row;
|
|
285
|
+
$[67] = selectable;
|
|
286
|
+
$[68] = virtualRow;
|
|
287
|
+
$[69] = virtualized;
|
|
288
|
+
$[70] = t20;
|
|
289
|
+
} else t20 = $[70];
|
|
290
|
+
let t21;
|
|
291
|
+
if ($[71] !== row.id || $[72] !== t19 || $[73] !== t20) {
|
|
292
|
+
t21 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react.default.Fragment, { children: [t19, t20] }, t5);
|
|
293
|
+
$[71] = row.id;
|
|
294
|
+
$[72] = t19;
|
|
295
|
+
$[73] = t20;
|
|
296
|
+
$[74] = t21;
|
|
297
|
+
} else t21 = $[74];
|
|
298
|
+
return t21;
|
|
136
299
|
};
|
|
137
300
|
var ds_table_row_default = DsTableRow;
|
|
301
|
+
function _temp(e) {
|
|
302
|
+
return e.stopPropagation();
|
|
303
|
+
}
|
|
304
|
+
function _temp2(e_0) {
|
|
305
|
+
e_0.stopPropagation();
|
|
306
|
+
}
|
|
307
|
+
function _temp3(e_2) {
|
|
308
|
+
e_2.stopPropagation();
|
|
309
|
+
}
|
|
138
310
|
|
|
139
311
|
//#endregion
|
|
140
312
|
exports.default = ds_table_row_default;
|