sit-onyx 1.4.1-dev-20251125094015 → 1.4.1-dev-20251126095536
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/OnyxDataGrid/OnyxDataGridRenderer/types.d.ts +1 -1
- package/dist/components/OnyxTable/types.d.ts +1 -0
- package/dist/index.esm-bundler.js +11 -19
- package/dist/index.esm-bundler.js.map +1 -1
- package/dist/index.js +1052 -1057
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -34,7 +34,7 @@ export type DataGridRendererColumn<TEntry extends DataGridEntry, TProps = any> =
|
|
|
34
34
|
* The width can also be defined using a fractional flex value like `1fr` or `0.5fr`.
|
|
35
35
|
* To define min and max widths, use the [`minmax`](https://developer.mozilla.org/en-US/docs/Web/CSS/minmax) function, e.g. `minmax(4rem, 10rem)`.
|
|
36
36
|
*
|
|
37
|
-
* @default "minmax(min-content, 1fr)"
|
|
37
|
+
* @default "minmax(min-content, 1fr)" or "1fr" when truncation is "ellipsis"
|
|
38
38
|
*/
|
|
39
39
|
width?: string;
|
|
40
40
|
/**
|
|
@@ -30,6 +30,7 @@ export type OnyxTableProps = DensityProp & {
|
|
|
30
30
|
/**
|
|
31
31
|
* Defines how overflows of text content in cells (`td`-elements) are handled.
|
|
32
32
|
* The cell can either grow to multiple lines (`'multiline'`) or truncate the text (`'ellipsis'`).
|
|
33
|
+
* The `'ellipsis'` mode will only show an ellipsis, when a (maximum) width has been defined for a cell/column.
|
|
33
34
|
*
|
|
34
35
|
* @default 'multiline'
|
|
35
36
|
*/
|
|
@@ -6937,12 +6937,13 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
6937
6937
|
const slots = useSlots();
|
|
6938
6938
|
const tableProps = useForwardProps(props, OnyxTable);
|
|
6939
6939
|
const columnStyle = computed(() => {
|
|
6940
|
+
const defaultWidth = props.truncation === "ellipsis" ? "1fr" : "minmax(min-content, 1fr)";
|
|
6940
6941
|
return {
|
|
6941
6942
|
"--onyx-data-grid-column-count": props.columns.length,
|
|
6942
6943
|
"--onyx-data-grid-row-count": Math.max(props.rows.length + 2, 3),
|
|
6943
6944
|
"--onyx-data-grid-template-columns": props.columns.map(({ key, width }) => {
|
|
6944
6945
|
const name = `--onyx-data-grid-column-${escapeCSS(key)}`;
|
|
6945
|
-
const value = width ??
|
|
6946
|
+
const value = width ?? defaultWidth;
|
|
6946
6947
|
return `var(${name}, ${value})`;
|
|
6947
6948
|
}).join(" ")
|
|
6948
6949
|
};
|
|
@@ -9266,6 +9267,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
9266
9267
|
const props = __props;
|
|
9267
9268
|
const i18n = injectI18n();
|
|
9268
9269
|
const slots = useSlots();
|
|
9270
|
+
const rendererProps = useForwardProps(props, OnyxDataGridRenderer);
|
|
9269
9271
|
const skeleton = useSkeletonContext(props);
|
|
9270
9272
|
const renderColumns = shallowRef([]);
|
|
9271
9273
|
const renderRows = shallowRef([]);
|
|
@@ -9312,7 +9314,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
9312
9314
|
},
|
|
9313
9315
|
{ immediate: true }
|
|
9314
9316
|
);
|
|
9315
|
-
const __returned__ = { props, i18n, slots, skeleton, renderColumns, renderRows, rendererColumnGroups, rendererScrollContainerAttributes, rendererSlots, columnConfig, data, features, columnGroups, async, get disposeWatcher() {
|
|
9317
|
+
const __returned__ = { props, i18n, slots, rendererProps, skeleton, renderColumns, renderRows, rendererColumnGroups, rendererScrollContainerAttributes, rendererSlots, columnConfig, data, features, columnGroups, async, get disposeWatcher() {
|
|
9316
9318
|
return disposeWatcher;
|
|
9317
9319
|
}, set disposeWatcher(v) {
|
|
9318
9320
|
disposeWatcher = v;
|
|
@@ -9324,20 +9326,12 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
9324
9326
|
}
|
|
9325
9327
|
});
|
|
9326
9328
|
function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9327
|
-
return openBlock(), createBlock($setup["OnyxDataGridRenderer"], mergeProps(
|
|
9328
|
-
|
|
9329
|
-
|
|
9330
|
-
|
|
9331
|
-
|
|
9332
|
-
|
|
9333
|
-
},
|
|
9334
|
-
$setup.mergeVueProps(_ctx.$attrs, {
|
|
9335
|
-
density: $setup.props.density,
|
|
9336
|
-
striped: $setup.props.striped,
|
|
9337
|
-
withVerticalBorders: $setup.props.withVerticalBorders,
|
|
9338
|
-
withPageScrolling: $setup.props.withPageScrolling
|
|
9339
|
-
})
|
|
9340
|
-
), createSlots({
|
|
9329
|
+
return openBlock(), createBlock($setup["OnyxDataGridRenderer"], mergeProps($setup.mergeVueProps(_ctx.$attrs, $setup.rendererProps), {
|
|
9330
|
+
"column-groups": $setup.rendererColumnGroups,
|
|
9331
|
+
columns: $setup.renderColumns,
|
|
9332
|
+
rows: $setup.renderRows,
|
|
9333
|
+
"scroll-container-attrs": $setup.rendererScrollContainerAttributes
|
|
9334
|
+
}), createSlots({
|
|
9341
9335
|
_: 2
|
|
9342
9336
|
/* DYNAMIC */
|
|
9343
9337
|
}, [
|
|
@@ -11553,9 +11547,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
11553
11547
|
});
|
|
11554
11548
|
const __returned__ = { props, emit, t, isOpen, currentValueLabel, get iconTranslate() {
|
|
11555
11549
|
return iconTranslate;
|
|
11556
|
-
},
|
|
11557
|
-
return OnyxSelectDialog;
|
|
11558
|
-
}, OnyxIcon, OnyxMenuItem };
|
|
11550
|
+
}, OnyxIcon, OnyxSelectDialog, OnyxMenuItem };
|
|
11559
11551
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
11560
11552
|
return __returned__;
|
|
11561
11553
|
}
|