Skip to content

Commit 529ded0

Browse files
committed
review findings
1 parent 6f05fb2 commit 529ded0

File tree

9 files changed

+10
-23
lines changed

9 files changed

+10
-23
lines changed

packages/headless/src/composables/dataGrid/createDataGrid.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ export const createDataGrid = createBuilder(
291291
() =>
292292
({
293293
ref: tableElement,
294-
// onFocusinCapture,
295294
onFocusin,
296295
onKeydown,
297296
role: "grid",

packages/sit-onyx/src/components/OnyxDataGrid/OnyxDataGrid.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ watch(
107107
columnGroups,
108108
async,
109109
skeleton,
110-
editable: true,
111110
},
112111
);
113112
disposeWatcher?.();

packages/sit-onyx/src/components/OnyxDataGrid/OnyxDataGridRenderer/OnyxDataGridRenderer.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function getDummyCell(
6868
return {
6969
component: (props) => h("span", props.row.id.toString()),
7070
props: {
71-
column: column,
71+
column,
7272
row: {
7373
id,
7474
},

packages/sit-onyx/src/components/OnyxDataGrid/OnyxDataGridRenderer/OnyxDataGridRenderer.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ const columnStyle = computed(() => {
3434
<OnyxTable
3535
class="onyx-data-grid"
3636
v-bind="tableProps"
37-
:style="columnStyle"
3837
:scroll-container-attrs="mergeVueProps(props.scrollContainerAttrs, { style: columnStyle })"
3938
>
4039
<template #head>

packages/sit-onyx/src/components/OnyxDataGrid/examples/EditingExample.vue

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { ref, toRaw, watch } from "vue";
2+
import { computed, ref } from "vue";
33
import { DataGridFeatures, OnyxDataGrid, type ColumnConfig } from "../../../index.js";
44
import OnyxButton from "../../OnyxButton/OnyxButton.vue";
55
import OnyxCodeTab from "../../OnyxCodeTab/OnyxCodeTab.vue";
@@ -100,21 +100,11 @@ const features = [
100100
}),
101101
];
102102
103-
const log = ref("");
103+
const log = computed(() => JSON.stringify(editState.value, null, 2));
104+
104105
const reset = () => {
105106
editState.value = {};
106-
log.value = "";
107107
};
108-
109-
watch(
110-
editState,
111-
() => {
112-
log.value = JSON.stringify(toRaw(editState.value), null, 2);
113-
},
114-
{
115-
deep: true,
116-
},
117-
);
118108
</script>
119109

120110
<template>

packages/sit-onyx/src/components/OnyxDataGrid/examples/OnyxDataGridFeatureExamples.stories.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export const Pagination: Story = {
2424
};
2525

2626
export const Editing: Story = {
27+
tags: ["new:feature"],
2728
...createAdvancedStoryExample("OnyxDataGrid", "EditingExample"),
2829
};
2930

packages/sit-onyx/src/components/OnyxDataGrid/features/base/base.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export const BASE_MUTATION_ORDER =
2828
export const BASE_FEATURE = (options?: BaseFeatureOptions) =>
2929
createFeature(({ skeleton }) => {
3030
const rowCount = ref(0);
31-
const selectedCell = ref();
3231

3332
const headline = computed(() => {
3433
const _headline = toValue(options?.headline);
@@ -41,7 +40,7 @@ export const BASE_FEATURE = (options?: BaseFeatureOptions) =>
4140

4241
return {
4342
name: BASE_FEATURE_SYMBOL,
44-
watch: [skeleton, headline, selectedCell],
43+
watch: [skeleton, headline],
4544
modifyColumns: {
4645
func: (columns) => {
4746
if (!skeleton.value) return [...columns];

packages/sit-onyx/src/components/OnyxDataGrid/features/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,6 @@ export type UseDataGridFeaturesOptions<
426426
i18n: OnyxI18n;
427427
columnGroups: MaybeRefOrGetter<TColumnGroup>;
428428
async: Readonly<Ref<boolean>>;
429-
editable: MaybeRefOrGetter<boolean>;
430429
skeleton: DataGridFeatureContext["skeleton"];
431430
};
432431

packages/sit-onyx/src/components/OnyxTable/OnyxTable.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const headlineId = computed(() => (slots.headline ? _headlineId : undefined));
5454
>
5555
<table
5656
ref="table"
57-
v-bind="tableAttrs"
57+
v-bind="props.tableAttrs"
5858
:class="[
5959
'onyx-table',
6060
'onyx-text',
@@ -79,7 +79,8 @@ const headlineId = computed(() => (slots.headline ? _headlineId : undefined));
7979
:key="group.key"
8080
:colspan="group.span"
8181
scope="colgroup"
82-
class="onyx-table__colgroup"
82+
:class="['onyx-table__colgroup', group.class]"
83+
:style="group.style"
8384
>
8485
{{ group.header }}
8586
</th>
@@ -159,7 +160,7 @@ $border: var(--onyx-1px-in-rem) solid var(--onyx-color-component-border-neutral)
159160
display: flex;
160161
flex-direction: column;
161162
gap: var(--onyx-density-xs);
162-
font-family: var(--onyx-font-family);
163+
font-family: var(--onyx-font-family-paragraph);
163164
color: var(--onyx-color-text-icons-neutral-intense);
164165
165166
&__container {

0 commit comments

Comments
 (0)