@iris-ui-kit/vue 0.2.1 → 0.2.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/index.cjs +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -9289,6 +9289,7 @@ var IrisTable = vue.defineComponent({
|
|
|
9289
9289
|
"update:sort": (_value) => true,
|
|
9290
9290
|
"update:columnWidths": (_value) => true,
|
|
9291
9291
|
rowClick: (_row, _index) => true,
|
|
9292
|
+
rowDblclick: (_row, _index) => true,
|
|
9292
9293
|
cellEdit: (_payload) => true,
|
|
9293
9294
|
expandedRowsChange: (_keys) => true
|
|
9294
9295
|
},
|
|
@@ -9695,6 +9696,8 @@ var IrisTable = vue.defineComponent({
|
|
|
9695
9696
|
const isLeaf = !col.children || col.children.length === 0;
|
|
9696
9697
|
const sortable = isLeaf && col.sortable;
|
|
9697
9698
|
const align = col.align ?? "left";
|
|
9699
|
+
const headerSlot = slots[`header.${col.key}`];
|
|
9700
|
+
const title = headerSlot?.({ column: col }) ?? col.title;
|
|
9698
9701
|
cells.push(
|
|
9699
9702
|
vue.h(
|
|
9700
9703
|
"div",
|
|
@@ -9725,7 +9728,7 @@ var IrisTable = vue.defineComponent({
|
|
|
9725
9728
|
textOverflow: "ellipsis"
|
|
9726
9729
|
}
|
|
9727
9730
|
},
|
|
9728
|
-
[
|
|
9731
|
+
[title, sortable ? sortIndicator(col) : null]
|
|
9729
9732
|
)
|
|
9730
9733
|
);
|
|
9731
9734
|
}
|
|
@@ -9795,6 +9798,8 @@ var IrisTable = vue.defineComponent({
|
|
|
9795
9798
|
const col = props.columns[ci];
|
|
9796
9799
|
if (visibleColSet.value && !visibleColSet.value.has(ci)) continue;
|
|
9797
9800
|
const align = col.align ?? "left";
|
|
9801
|
+
const headerSlot = slots[`header.${col.key}`];
|
|
9802
|
+
const title = headerSlot?.({ column: col }) ?? col.title;
|
|
9798
9803
|
wireResize(col);
|
|
9799
9804
|
const handle = props.resizableColumns ? vue.h("span", {
|
|
9800
9805
|
ref: (el) => {
|
|
@@ -9862,7 +9867,7 @@ var IrisTable = vue.defineComponent({
|
|
|
9862
9867
|
},
|
|
9863
9868
|
"aria-sort": internalSort.value?.key === col.key ? internalSort.value.direction === "asc" ? "ascending" : "descending" : col.sortable ? "none" : void 0
|
|
9864
9869
|
},
|
|
9865
|
-
[
|
|
9870
|
+
[title, sortIndicator(col), handle]
|
|
9866
9871
|
)
|
|
9867
9872
|
);
|
|
9868
9873
|
}
|
|
@@ -10138,6 +10143,7 @@ var IrisTable = vue.defineComponent({
|
|
|
10138
10143
|
"data-iris-table-row": "",
|
|
10139
10144
|
"data-state": selected ? "selected" : void 0,
|
|
10140
10145
|
onClick: () => emit("rowClick", row, index),
|
|
10146
|
+
onDblclick: () => emit("rowDblclick", row, index),
|
|
10141
10147
|
style: {
|
|
10142
10148
|
display: "grid",
|
|
10143
10149
|
gridTemplateColumns: gridTemplate.value,
|