sit-onyx 1.3.0-dev-20251021070623 → 1.3.0-dev-20251021104446
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.
|
@@ -9,6 +9,7 @@ declare function __VLS_template(): {
|
|
|
9
9
|
};
|
|
10
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
11
|
declare const __VLS_component: import('vue').DefineComponent<OnyxTableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<OnyxTableProps> & Readonly<{}>, {
|
|
12
|
+
truncation: import('../../index.js', { with: { "resolution-mode": "import" } }).TruncationType;
|
|
12
13
|
striped: boolean;
|
|
13
14
|
withVerticalBorders: boolean;
|
|
14
15
|
withPageScrolling: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'vue';
|
|
2
2
|
import { DensityProp } from '../../composables/density.js';
|
|
3
|
+
import { TruncationType } from '../../types/index.js';
|
|
3
4
|
export type OnyxTableProps = DensityProp & {
|
|
4
5
|
/**
|
|
5
6
|
* Whether to use striped row background colors.
|
|
@@ -26,6 +27,13 @@ export type OnyxTableProps = DensityProp & {
|
|
|
26
27
|
* Supports attributes like id, class, style, and events.
|
|
27
28
|
*/
|
|
28
29
|
scrollContainerAttrs?: HTMLAttributes;
|
|
30
|
+
/**
|
|
31
|
+
* Defines how overflows of text content in cells (`td`-elements) are handled.
|
|
32
|
+
* The cell can either grow to multiple lines (`'multiline'`) or truncate the text (`'ellipsis'`).
|
|
33
|
+
*
|
|
34
|
+
* @default 'multiline'
|
|
35
|
+
*/
|
|
36
|
+
truncation?: TruncationType;
|
|
29
37
|
};
|
|
30
38
|
export type OnyxTableSlots = {
|
|
31
39
|
/**
|
|
@@ -6015,7 +6015,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
6015
6015
|
withVerticalBorders: { type: Boolean, required: false, default: false },
|
|
6016
6016
|
withPageScrolling: { type: Boolean, required: false, default: false },
|
|
6017
6017
|
columnGroups: { type: Array, required: false },
|
|
6018
|
-
scrollContainerAttrs: { type: Object, required: false }
|
|
6018
|
+
scrollContainerAttrs: { type: Object, required: false },
|
|
6019
|
+
truncation: { type: null, required: false, default: "multiline" }
|
|
6019
6020
|
},
|
|
6020
6021
|
setup(__props, { expose: __expose }) {
|
|
6021
6022
|
__expose();
|
|
@@ -6087,7 +6088,8 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6087
6088
|
class: normalizeClass(["onyx-table onyx-text", [
|
|
6088
6089
|
{
|
|
6089
6090
|
"onyx-table--striped": $setup.props.striped,
|
|
6090
|
-
"onyx-table--vertical-borders": $setup.props.withVerticalBorders
|
|
6091
|
+
"onyx-table--vertical-borders": $setup.props.withVerticalBorders,
|
|
6092
|
+
[`onyx-table--cell-truncation-${$setup.props.truncation}`]: true
|
|
6091
6093
|
},
|
|
6092
6094
|
$setup.densityClass
|
|
6093
6095
|
]]),
|
|
@@ -6172,6 +6174,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
6172
6174
|
withPageScrolling: { type: Boolean, required: false },
|
|
6173
6175
|
columnGroups: { type: Array, required: false },
|
|
6174
6176
|
scrollContainerAttrs: { type: Object, required: false },
|
|
6177
|
+
truncation: { type: null, required: false },
|
|
6175
6178
|
columns: { type: Array, required: true },
|
|
6176
6179
|
rows: { type: Array, required: true }
|
|
6177
6180
|
},
|
|
@@ -8343,7 +8346,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
8343
8346
|
density: { type: null, required: false },
|
|
8344
8347
|
striped: { type: Boolean, required: false, default: true },
|
|
8345
8348
|
withVerticalBorders: { type: Boolean, required: false, default: true },
|
|
8346
|
-
withPageScrolling: { type: Boolean, required: false }
|
|
8349
|
+
withPageScrolling: { type: Boolean, required: false },
|
|
8350
|
+
truncation: { type: null, required: false }
|
|
8347
8351
|
},
|
|
8348
8352
|
setup(__props, { expose: __expose }) {
|
|
8349
8353
|
__expose();
|