@scania/tegel 1.4.0 → 1.5.0
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/cjs/loader.cjs.js +1 -1
- package/dist/cjs/tds-dropdown.cjs.entry.js +17 -13
- package/dist/cjs/tds-header-cell.cjs.entry.js +2 -2
- package/dist/cjs/tds-icon.cjs.entry.js +3 -2
- package/dist/cjs/tds-modal.cjs.entry.js +1 -1
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/collection/components/dropdown/dropdown.css +1 -0
- package/dist/collection/components/dropdown/dropdown.js +16 -12
- package/dist/collection/components/icon/icon.js +23 -5
- package/dist/collection/components/modal/modal.css +1 -1
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +13 -10
- package/dist/components/icon.js +4 -2
- package/dist/components/tds-dropdown.js +17 -13
- package/dist/components/tds-header-cell.js +2 -2
- package/dist/components/tds-modal.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tds-dropdown.entry.js +17 -13
- package/dist/esm/tds-header-cell.entry.js +2 -2
- package/dist/esm/tds-icon.entry.js +3 -2
- package/dist/esm/tds-modal.entry.js +1 -1
- package/dist/esm/tegel.js +1 -1
- package/dist/tegel/p-15f8ac46.entry.js +1 -0
- package/dist/tegel/p-3b597a64.entry.js +1 -0
- package/dist/tegel/{p-6dc8f2dd.entry.js → p-78853c02.entry.js} +1 -1
- package/dist/tegel/p-7d93c35b.entry.js +1 -0
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/dropdown/dropdown.d.ts +2 -0
- package/dist/types/components/icon/icon.d.ts +6 -3
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +14 -8
- package/dist/types/components.d.ts +20 -12
- package/package.json +1 -1
- package/dist/collection/components/accordion/accordion.stories.js +0 -100
- package/dist/collection/components/accordion/test/basic/accordion.e2e.js +0 -19
- package/dist/collection/components/accordion/test/disabled/accordion.e2e.js +0 -19
- package/dist/collection/components/accordion/test/expanded/accordion.e2e.js +0 -24
- package/dist/collection/components/accordion/test/padding-reset/accordion.e2e.js +0 -24
- package/dist/collection/components/badge/badge.stories.js +0 -106
- package/dist/collection/components/badge/test/basic/badge.e2e.js +0 -10
- package/dist/collection/components/badge/test/value/badge.e2e.js +0 -11
- package/dist/collection/components/banner/banner.stories.js +0 -92
- package/dist/collection/components/banner/test/basic/banner.e2e.js +0 -15
- package/dist/collection/components/banner/test/default/banner.e2e.js +0 -37
- package/dist/collection/components/banner/test/error/banner.e2e.js +0 -15
- package/dist/collection/components/banner/test/information/banner.e2e.js +0 -15
- package/dist/collection/components/block/block.stories.js +0 -49
- package/dist/collection/components/breadcrumbs/breadcrumbs.stories.js +0 -36
- package/dist/collection/components/breadcrumbs/test/default/breadcrumbs.e2e.js +0 -33
- package/dist/collection/components/button/button.stories.js +0 -185
- package/dist/collection/components/button/test/basic/button.e2e.js +0 -35
- package/dist/collection/components/button/test/danger/button.e2e.js +0 -18
- package/dist/collection/components/button/test/disabled/button.e2e.js +0 -24
- package/dist/collection/components/button/test/ghost/button.e2e.js +0 -18
- package/dist/collection/components/button/test/icon/button.e2e.js +0 -38
- package/dist/collection/components/button/test/secondary/button.e2e.js +0 -18
- package/dist/collection/components/card/card.stories.js +0 -163
- package/dist/collection/components/card/test/basic/card.e2e.js +0 -10
- package/dist/collection/components/card/test/clickable/card.e2e.js +0 -21
- package/dist/collection/components/card/test/default/card.e2e.js +0 -33
- package/dist/collection/components/checkbox/checkbox.stories.js +0 -93
- package/dist/collection/components/chip/chip.stories.js +0 -230
- package/dist/collection/components/datetime/datetime.stories.js +0 -219
- package/dist/collection/components/divider/divider.stories.js +0 -62
- package/dist/collection/components/dropdown/dropdown.stories.js +0 -260
- package/dist/collection/components/dropdown/test/basic/dropdown.e2e.js +0 -41
- package/dist/collection/components/dropdown/test/default/dropdown.e2e.js +0 -76
- package/dist/collection/components/dropdown/test/error/dropdown.e2e.js +0 -36
- package/dist/collection/components/dropdown/test/filter/dropdown.e2e.js +0 -56
- package/dist/collection/components/dropdown/test/filter/hide-no-result-message/dropdown.e2e.js +0 -23
- package/dist/collection/components/dropdown/test/filter/normalize-text-false/dropdown.e2e.js +0 -43
- package/dist/collection/components/dropdown/test/multiselect/dropdown.e2e.js +0 -81
- package/dist/collection/components/footer/footer.stories.js +0 -145
- package/dist/collection/components/footer/test/default/footer.e2e.js +0 -34
- package/dist/collection/components/header/header.stories.js +0 -82
- package/dist/collection/components/header/test/default/header.e2e.js +0 -44
- package/dist/collection/components/icon/icon.stories.js +0 -48
- package/dist/collection/components/link/link.stories.js +0 -59
- package/dist/collection/components/message/message.stories.js +0 -109
- package/dist/collection/components/message/test/basic/message.e2e.js +0 -16
- package/dist/collection/components/message/test/error/message.e2e.js +0 -28
- package/dist/collection/components/message/test/information/message.e2e.js +0 -10
- package/dist/collection/components/message/test/success/message.e2e.js +0 -10
- package/dist/collection/components/message/test/warning/message.e2e.js +0 -10
- package/dist/collection/components/modal/modal.stories.js +0 -119
- package/dist/collection/components/modal/test/default/modal.e2e.js +0 -28
- package/dist/collection/components/modal/test/open-close/modal.e2e.js +0 -63
- package/dist/collection/components/modal/test/prevent-true/modal.e2e.js +0 -13
- package/dist/collection/components/popover-canvas/popover-canvas.stories.js +0 -92
- package/dist/collection/components/popover-canvas/test/default/popover-canvas.e2e.js +0 -30
- package/dist/collection/components/popover-canvas/test/show-false/popover-canvas.e2e.js +0 -30
- package/dist/collection/components/popover-canvas/test/show-true/popover-canvas.e2e.js +0 -30
- package/dist/collection/components/popover-menu/popover-menu.stories.js +0 -146
- package/dist/collection/components/popover-menu/test/default/popover-menu.e2e.js +0 -60
- package/dist/collection/components/popover-menu/test/icons-fluid/popover-menu.e2e.js +0 -27
- package/dist/collection/components/popover-menu/test/show/popover-menu.e2e.js +0 -20
- package/dist/collection/components/popover-menu/test/show-false/popover-menu.e2e.js +0 -20
- package/dist/collection/components/radio-button/radio-button.stories.js +0 -91
- package/dist/collection/components/side-menu/side-menu.stories.js +0 -224
- package/dist/collection/components/side-menu/test/collapsible/side-menu.e2e.js +0 -28
- package/dist/collection/components/side-menu/test/default/side-menu.e2e.js +0 -38
- package/dist/collection/components/slider/slider.stories.js +0 -243
- package/dist/collection/components/spinner/spinner.stories.js +0 -61
- package/dist/collection/components/stepper/stepper.stories.js +0 -95
- package/dist/collection/components/table/table/test/batch/table.e2e.js +0 -24
- package/dist/collection/components/table/table/test/default/table.e2e.js +0 -46
- package/dist/collection/components/table/table/test/expandable-row/table.e2e.js +0 -64
- package/dist/collection/components/table/table/test/filtering/table.e2e.js +0 -41
- package/dist/collection/components/table/table/test/multiselect/table.e2e.js +0 -47
- package/dist/collection/components/table/table/test/pagination/table.e2e.js +0 -53
- package/dist/collection/components/table/table/test/sorting/table.e2e.js +0 -36
- package/dist/collection/components/table/table-component-basic.stories.js +0 -184
- package/dist/collection/components/table/table-component-batch-actions.stories.js +0 -188
- package/dist/collection/components/table/table-component-custom-width.stories.js +0 -174
- package/dist/collection/components/table/table-component-expandable-rows.stories.js +0 -160
- package/dist/collection/components/table/table-component-filtering.stories.js +0 -195
- package/dist/collection/components/table/table-component-multiselect.stories.js +0 -211
- package/dist/collection/components/table/table-component-pagination.stories.js +0 -196
- package/dist/collection/components/table/table-component-sorting.stories.js +0 -240
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.stories.js +0 -105
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.stories.js +0 -99
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +0 -101
- package/dist/collection/components/text-field/text-field.stories.js +0 -247
- package/dist/collection/components/textarea/test/basic/textarea.e2e.js +0 -26
- package/dist/collection/components/textarea/test/default/textarea.e2e.js +0 -34
- package/dist/collection/components/textarea/test/read-only/textarea.e2e.js +0 -26
- package/dist/collection/components/textarea/textarea.stories.js +0 -188
- package/dist/collection/components/toast/toast.stories.js +0 -90
- package/dist/collection/components/toggle/toggle.stories.js +0 -95
- package/dist/collection/components/tooltip/tooltip.stories.js +0 -126
- package/dist/collection/stories/Installation/angular.stories.js +0 -111
- package/dist/collection/stories/Installation/javascript.stories.js +0 -99
- package/dist/collection/stories/Installation/react.stories.js +0 -117
- package/dist/collection/stories/announcements/announce-tegel.stories.js +0 -262
- package/dist/collection/stories/announcements/prefix-change.stories.js +0 -93
- package/dist/collection/stories/formatHtmlPreview.js +0 -10
- package/dist/collection/stories/foundations/color/color-brand.stories.js +0 -38
- package/dist/collection/stories/foundations/color/color-scales.stories.js +0 -71
- package/dist/collection/stories/foundations/color/color-semantic.stories.js +0 -40
- package/dist/collection/stories/foundations/grid/grid.stories.js +0 -386
- package/dist/collection/stories/foundations/spacing/spacing-element.stories.js +0 -100
- package/dist/collection/stories/foundations/spacing/spacing-layout.stories.js +0 -94
- package/dist/collection/stories/foundations/typography/typography-body.stories.js +0 -16
- package/dist/collection/stories/foundations/typography/typography-detail.stories.js +0 -17
- package/dist/collection/stories/foundations/typography/typography-headline.stories.js +0 -39
- package/dist/collection/stories/foundations/typography/typography-paragraph.stories.js +0 -12
- package/dist/collection/stories/patterns/navigation/navigation-basic.stories.js +0 -85
- package/dist/collection/stories/patterns/navigation/navigation-fewitems.stories.js +0 -259
- package/dist/collection/stories/patterns/navigation/navigation-manyitems.stories.js +0 -247
- package/dist/collection/stories/patterns/navigation/navigation-user-menu.stories.js +0 -140
- package/dist/collection/stories/tegel.stories.js +0 -283
- package/dist/collection/stories/utility/color/background-color.stories.js +0 -96
- package/dist/collection/stories/utility/color/text-color.stories.js +0 -94
- package/dist/tegel/p-556600b1.entry.js +0 -1
- package/dist/tegel/p-c6553022.entry.js +0 -1
- package/dist/tegel/p-f801cf0e.entry.js +0 -1
- package/dist/types/components/accordion/accordion.stories.d.ts +0 -77
- package/dist/types/components/badge/badge.stories.d.ts +0 -73
- package/dist/types/components/banner/banner.stories.d.ts +0 -69
- package/dist/types/components/block/block.stories.d.ts +0 -32
- package/dist/types/components/breadcrumbs/breadcrumbs.stories.d.ts +0 -16
- package/dist/types/components/button/button.stories.d.ts +0 -147
- package/dist/types/components/card/card.stories.d.ts +0 -128
- package/dist/types/components/checkbox/checkbox.stories.d.ts +0 -65
- package/dist/types/components/chip/chip.stories.d.ts +0 -99
- package/dist/types/components/datetime/datetime.stories.d.ts +0 -151
- package/dist/types/components/divider/divider.stories.d.ts +0 -58
- package/dist/types/components/dropdown/dropdown.stories.d.ts +0 -205
- package/dist/types/components/footer/footer.stories.d.ts +0 -44
- package/dist/types/components/header/header.stories.d.ts +0 -32
- package/dist/types/components/icon/icon.stories.d.ts +0 -36
- package/dist/types/components/link/link.stories.d.ts +0 -44
- package/dist/types/components/message/message.stories.d.ts +0 -88
- package/dist/types/components/modal/modal.stories.d.ts +0 -78
- package/dist/types/components/popover-canvas/popover-canvas.stories.d.ts +0 -27
- package/dist/types/components/popover-menu/popover-menu.stories.d.ts +0 -51
- package/dist/types/components/radio-button/radio-button.stories.d.ts +0 -39
- package/dist/types/components/side-menu/side-menu.stories.d.ts +0 -65
- package/dist/types/components/slider/slider.stories.d.ts +0 -235
- package/dist/types/components/spinner/spinner.stories.d.ts +0 -46
- package/dist/types/components/stepper/stepper.stories.d.ts +0 -80
- package/dist/types/components/table/table-component-basic.stories.d.ts +0 -144
- package/dist/types/components/table/table-component-batch-actions.stories.d.ts +0 -139
- package/dist/types/components/table/table-component-custom-width.stories.d.ts +0 -131
- package/dist/types/components/table/table-component-expandable-rows.stories.d.ts +0 -131
- package/dist/types/components/table/table-component-filtering.stories.d.ts +0 -131
- package/dist/types/components/table/table-component-multiselect.stories.d.ts +0 -147
- package/dist/types/components/table/table-component-pagination.stories.d.ts +0 -131
- package/dist/types/components/table/table-component-sorting.stories.d.ts +0 -183
- package/dist/types/components/tabs/folder-tabs/folder-tabs.stories.d.ts +0 -69
- package/dist/types/components/tabs/inline-tabs/inline-tabs.stories.d.ts +0 -61
- package/dist/types/components/tabs/navigation-tabs/navigation-tabs.stories.d.ts +0 -61
- package/dist/types/components/text-field/text-field.stories.d.ts +0 -201
- package/dist/types/components/textarea/textarea.stories.d.ts +0 -139
- package/dist/types/components/toast/toast.stories.d.ts +0 -64
- package/dist/types/components/toggle/toggle.stories.d.ts +0 -74
- package/dist/types/components/tooltip/tooltip.stories.d.ts +0 -66
- package/dist/types/stories/Installation/angular.stories.d.ts +0 -6
- package/dist/types/stories/Installation/javascript.stories.d.ts +0 -7
- package/dist/types/stories/Installation/react.stories.d.ts +0 -6
- package/dist/types/stories/announcements/announce-tegel.stories.d.ts +0 -6
- package/dist/types/stories/announcements/prefix-change.stories.d.ts +0 -6
- package/dist/types/stories/formatHtmlPreview.d.ts +0 -2
- package/dist/types/stories/foundations/color/color-brand.stories.d.ts +0 -13
- package/dist/types/stories/foundations/color/color-scales.stories.d.ts +0 -30
- package/dist/types/stories/foundations/color/color-semantic.stories.d.ts +0 -13
- package/dist/types/stories/foundations/grid/grid.stories.d.ts +0 -35
- package/dist/types/stories/foundations/spacing/spacing-element.stories.d.ts +0 -8
- package/dist/types/stories/foundations/spacing/spacing-layout.stories.d.ts +0 -8
- package/dist/types/stories/foundations/typography/typography-body.stories.d.ts +0 -8
- package/dist/types/stories/foundations/typography/typography-detail.stories.d.ts +0 -8
- package/dist/types/stories/foundations/typography/typography-headline.stories.d.ts +0 -21
- package/dist/types/stories/foundations/typography/typography-paragraph.stories.d.ts +0 -8
- package/dist/types/stories/patterns/navigation/navigation-basic.stories.d.ts +0 -23
- package/dist/types/stories/patterns/navigation/navigation-fewitems.stories.d.ts +0 -23
- package/dist/types/stories/patterns/navigation/navigation-manyitems.stories.d.ts +0 -38
- package/dist/types/stories/patterns/navigation/navigation-user-menu.stories.d.ts +0 -33
- package/dist/types/stories/tegel.stories.d.ts +0 -6
- package/dist/types/stories/utility/color/background-color.stories.d.ts +0 -64
- package/dist/types/stories/utility/color/text-color.stories.d.ts +0 -64
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import formatHtmlPreview from "../../stories/formatHtmlPreview";
|
|
2
|
-
import tdsTable from "./table/readme.md";
|
|
3
|
-
import tdsTableToolbar from "./table-toolbar/readme.md";
|
|
4
|
-
import tdsHeader from "./table-header/readme.md";
|
|
5
|
-
import tdsHeaderCell from "./table-header-cell/readme.md";
|
|
6
|
-
import tdsTableBody from "./table-body/readme.md";
|
|
7
|
-
import tdsBodyRow from "./table-body-row/readme.md";
|
|
8
|
-
import tdsBodyRowExpandable from "./table-body-row-expandable/readme.md";
|
|
9
|
-
import tdsBodyCell from "./table-body-cell/readme.md";
|
|
10
|
-
import tdsTableFooter from "./table-footer/readme.md";
|
|
11
|
-
import { ComponentsFolder } from "../../utils/constants";
|
|
12
|
-
export default {
|
|
13
|
-
title: `${ComponentsFolder}/Table`,
|
|
14
|
-
parameters: {
|
|
15
|
-
notes: {
|
|
16
|
-
'tds-table': tdsTable,
|
|
17
|
-
'tds-table-toolbar': tdsTableToolbar,
|
|
18
|
-
'tds-header': tdsHeader,
|
|
19
|
-
'tds-header-cell': tdsHeaderCell,
|
|
20
|
-
'tds-table-body': tdsTableBody,
|
|
21
|
-
'tds-body-row': tdsBodyRow,
|
|
22
|
-
'tds-body-row-expandable': tdsBodyRowExpandable,
|
|
23
|
-
'tds-body-cell': tdsBodyCell,
|
|
24
|
-
'tds-table-footer': tdsTableFooter,
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
argTypes: {
|
|
28
|
-
modeVariant: {
|
|
29
|
-
name: 'Mode variant',
|
|
30
|
-
description: 'Mode variant adjusts component colors to have better visibility depending on global mode and background.',
|
|
31
|
-
control: {
|
|
32
|
-
type: 'radio',
|
|
33
|
-
},
|
|
34
|
-
options: ['Inherit from parent', 'Primary', 'Secondary'],
|
|
35
|
-
table: {
|
|
36
|
-
defaultValue: { summary: 'Inherit from parent' },
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
compactDesign: {
|
|
40
|
-
name: 'Compact design',
|
|
41
|
-
description: 'Enables compact design of the Table, rows with less height.',
|
|
42
|
-
control: {
|
|
43
|
-
type: 'boolean',
|
|
44
|
-
},
|
|
45
|
-
table: {
|
|
46
|
-
defaultValue: { summary: false },
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
responsiveDesign: {
|
|
50
|
-
name: 'Responsive Table',
|
|
51
|
-
description: 'Enables Table to take 100% of available width. For column values less than 192px, "No minimum width" has to be enabled too.',
|
|
52
|
-
control: {
|
|
53
|
-
type: 'boolean',
|
|
54
|
-
},
|
|
55
|
-
table: {
|
|
56
|
-
defaultValue: { summary: false },
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
batchArea: {
|
|
60
|
-
name: 'Batch code',
|
|
61
|
-
description: 'Enables code to be injected into the toolbar area.',
|
|
62
|
-
control: {
|
|
63
|
-
type: 'text',
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
verticalDivider: {
|
|
67
|
-
name: 'Vertical dividers',
|
|
68
|
-
description: 'Enables vertical dividers between Table columns.',
|
|
69
|
-
control: {
|
|
70
|
-
type: 'boolean',
|
|
71
|
-
},
|
|
72
|
-
table: {
|
|
73
|
-
defaultValue: { summary: false },
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
noMinWidth: {
|
|
77
|
-
name: 'No minimum width',
|
|
78
|
-
description: 'Resets min-width rule and enables setting column width value to less than 192px which is the default. When enabled, controls for column width will show here.',
|
|
79
|
-
control: {
|
|
80
|
-
type: 'boolean',
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
column1Width: {
|
|
84
|
-
name: 'Column 1 width',
|
|
85
|
-
description: 'Value of width for column 1. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
86
|
-
control: {
|
|
87
|
-
type: 'text',
|
|
88
|
-
},
|
|
89
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
90
|
-
},
|
|
91
|
-
column2Width: {
|
|
92
|
-
name: 'Column 2 width',
|
|
93
|
-
description: 'Value of width for column 2. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
94
|
-
control: {
|
|
95
|
-
type: 'text',
|
|
96
|
-
},
|
|
97
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
98
|
-
},
|
|
99
|
-
column3Width: {
|
|
100
|
-
name: 'Column 3 width',
|
|
101
|
-
description: 'Value of width for column 3. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
102
|
-
control: {
|
|
103
|
-
type: 'text',
|
|
104
|
-
},
|
|
105
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
106
|
-
},
|
|
107
|
-
column4Width: {
|
|
108
|
-
name: 'Column 4 width',
|
|
109
|
-
description: 'Value of width for column 4. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
110
|
-
control: {
|
|
111
|
-
type: 'text',
|
|
112
|
-
},
|
|
113
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
args: {
|
|
117
|
-
modeVariant: 'Inherit from parent',
|
|
118
|
-
compactDesign: false,
|
|
119
|
-
responsiveDesign: false,
|
|
120
|
-
batchArea: formatHtmlPreview(`<div slot="end" class="tds-u-flex tds-u-align-items-center tds-u-h-100 tds-u-gap1"><tds-button type="ghost" size="sm">
|
|
121
|
-
<tds-icon slot="icon" class="tds-btn-icon" size="16px" name="settings"></tds-icon>
|
|
122
|
-
</tds-button><tds-button type="primary" size="sm" text="Download"></tds-button></div>`),
|
|
123
|
-
verticalDivider: false,
|
|
124
|
-
noMinWidth: false,
|
|
125
|
-
column1Width: '',
|
|
126
|
-
column2Width: '',
|
|
127
|
-
column3Width: '',
|
|
128
|
-
column4Width: '',
|
|
129
|
-
},
|
|
130
|
-
};
|
|
131
|
-
const BatchActionTemplate = ({ modeVariant, compactDesign, responsiveDesign, batchArea, verticalDivider, noMinWidth, column1Width, column2Width, column3Width, column4Width, }) => formatHtmlPreview(`
|
|
132
|
-
<tds-table
|
|
133
|
-
vertical-dividers="${verticalDivider}"
|
|
134
|
-
compact-design="${compactDesign}"
|
|
135
|
-
responsive="${responsiveDesign}"
|
|
136
|
-
${noMinWidth ? 'no-min-width' : ''}
|
|
137
|
-
${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}
|
|
138
|
-
>
|
|
139
|
-
<tds-table-toolbar table-title="Batch action">
|
|
140
|
-
${batchArea}
|
|
141
|
-
</tds-table-toolbar>
|
|
142
|
-
<tds-table-header>
|
|
143
|
-
<tds-header-cell ${column1Width ? `style="width: ${column1Width};"` : ''} cell-key='truck' cell-value='Truck type'></tds-header-cell>
|
|
144
|
-
<tds-header-cell ${column2Width ? `style="width: ${column2Width};"` : ''} cell-key='driver' cell-value='Driver name'></tds-header-cell>
|
|
145
|
-
<tds-header-cell ${column3Width ? `style="width: ${column3Width};"` : ''} cell-key='country' cell-value='Country'></tds-header-cell>
|
|
146
|
-
<tds-header-cell ${column4Width ? `style="width: ${column4Width};"` : ''} cell-key='mileage' cell-value='Mileage' text-align='right'></tds-header-cell>
|
|
147
|
-
</tds-table-header>
|
|
148
|
-
<tds-table-body>
|
|
149
|
-
<tds-table-body-row>
|
|
150
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
151
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
152
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
153
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
154
|
-
</tds-table-body-row>
|
|
155
|
-
<tds-table-body-row>
|
|
156
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
157
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
158
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
159
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
160
|
-
</tds-table-body-row>
|
|
161
|
-
<tds-table-body-row>
|
|
162
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
163
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
164
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
165
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
166
|
-
</tds-table-body-row>
|
|
167
|
-
<tds-table-body-row>
|
|
168
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
169
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
170
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
171
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
172
|
-
</tds-table-body-row>
|
|
173
|
-
<tds-table-body-row>
|
|
174
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
175
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
176
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
177
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
178
|
-
</tds-table-body-row>
|
|
179
|
-
<tds-table-body-row>
|
|
180
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
181
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
182
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
183
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
184
|
-
</tds-table-body-row>
|
|
185
|
-
</tds-table-body>
|
|
186
|
-
</tds-table>
|
|
187
|
-
`);
|
|
188
|
-
export const BatchAction = BatchActionTemplate.bind({});
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import formatHtmlPreview from "../../stories/formatHtmlPreview";
|
|
2
|
-
import tdsTable from "./table/readme.md";
|
|
3
|
-
import tdsTableToolbar from "./table-toolbar/readme.md";
|
|
4
|
-
import tdsHeader from "./table-header/readme.md";
|
|
5
|
-
import tdsHeaderCell from "./table-header-cell/readme.md";
|
|
6
|
-
import tdsTableBody from "./table-body/readme.md";
|
|
7
|
-
import tdsBodyRow from "./table-body-row/readme.md";
|
|
8
|
-
import tdsBodyRowExpandable from "./table-body-row-expandable/readme.md";
|
|
9
|
-
import tdsBodyCell from "./table-body-cell/readme.md";
|
|
10
|
-
import tdsTableFooter from "./table-footer/readme.md";
|
|
11
|
-
import { ComponentsFolder } from "../../utils/constants";
|
|
12
|
-
export default {
|
|
13
|
-
title: `${ComponentsFolder}/Table`,
|
|
14
|
-
parameters: {
|
|
15
|
-
notes: {
|
|
16
|
-
'tds-table': tdsTable,
|
|
17
|
-
'tds-table-toolbar': tdsTableToolbar,
|
|
18
|
-
'tds-header': tdsHeader,
|
|
19
|
-
'tds-header-cell': tdsHeaderCell,
|
|
20
|
-
'tds-table-body': tdsTableBody,
|
|
21
|
-
'tds-body-row': tdsBodyRow,
|
|
22
|
-
'tds-body-row-expandable': tdsBodyRowExpandable,
|
|
23
|
-
'tds-body-cell': tdsBodyCell,
|
|
24
|
-
'tds-table-footer': tdsTableFooter,
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
argTypes: {
|
|
28
|
-
modeVariant: {
|
|
29
|
-
name: 'Mode variant',
|
|
30
|
-
description: 'Mode variant adjusts component colors to have better visibility depending on global mode and background.',
|
|
31
|
-
control: {
|
|
32
|
-
type: 'radio',
|
|
33
|
-
},
|
|
34
|
-
options: ['Inherit from parent', 'Primary', 'Secondary'],
|
|
35
|
-
table: {
|
|
36
|
-
defaultValue: { summary: 'Inherit from parent' },
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
compactDesign: {
|
|
40
|
-
name: 'Compact design',
|
|
41
|
-
description: 'Enables compact design of the Table, rows with less height.',
|
|
42
|
-
control: {
|
|
43
|
-
type: 'boolean',
|
|
44
|
-
},
|
|
45
|
-
table: {
|
|
46
|
-
defaultValue: { summary: false },
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
responsiveDesign: {
|
|
50
|
-
name: 'Responsive Table',
|
|
51
|
-
description: 'Enables Table to take 100% of available width. For column values less than 192px, "No minimum width" has to be enabled too.',
|
|
52
|
-
control: {
|
|
53
|
-
type: 'boolean',
|
|
54
|
-
},
|
|
55
|
-
table: {
|
|
56
|
-
defaultValue: { summary: false },
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
verticalDivider: {
|
|
60
|
-
name: 'Vertical dividers',
|
|
61
|
-
description: 'Enables vertical dividers between Table columns.',
|
|
62
|
-
control: {
|
|
63
|
-
type: 'boolean',
|
|
64
|
-
},
|
|
65
|
-
table: {
|
|
66
|
-
defaultValue: { summary: false },
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
noMinWidth: {
|
|
70
|
-
name: 'No minimum width',
|
|
71
|
-
description: 'Resets min-width rule and enables setting column width value to less than 192px which is the default. When enabled, controls for column width will show here.',
|
|
72
|
-
control: {
|
|
73
|
-
type: 'boolean',
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
column1Width: {
|
|
77
|
-
name: 'Column 1 width',
|
|
78
|
-
description: 'Value of width for column 1. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
79
|
-
control: {
|
|
80
|
-
type: 'text',
|
|
81
|
-
},
|
|
82
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
83
|
-
},
|
|
84
|
-
column2Width: {
|
|
85
|
-
name: 'Column 2 width',
|
|
86
|
-
description: 'Value of width for column 2. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
87
|
-
control: {
|
|
88
|
-
type: 'text',
|
|
89
|
-
},
|
|
90
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
91
|
-
},
|
|
92
|
-
column3Width: {
|
|
93
|
-
name: 'Column 3 width',
|
|
94
|
-
description: 'Value of width for column 3. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
95
|
-
control: {
|
|
96
|
-
type: 'text',
|
|
97
|
-
},
|
|
98
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
99
|
-
},
|
|
100
|
-
column4Width: {
|
|
101
|
-
name: 'Column 4 width',
|
|
102
|
-
description: 'Value of width for column 4. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
103
|
-
control: {
|
|
104
|
-
type: 'text',
|
|
105
|
-
},
|
|
106
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
107
|
-
},
|
|
108
|
-
},
|
|
109
|
-
args: {
|
|
110
|
-
modeVariant: 'Inherit from parent',
|
|
111
|
-
compactDesign: false,
|
|
112
|
-
responsiveDesign: false,
|
|
113
|
-
verticalDivider: true,
|
|
114
|
-
noMinWidth: true,
|
|
115
|
-
column1Width: '321px',
|
|
116
|
-
column2Width: '400px',
|
|
117
|
-
column3Width: '150px',
|
|
118
|
-
column4Width: '110px',
|
|
119
|
-
},
|
|
120
|
-
};
|
|
121
|
-
const BasicTemplate = ({ modeVariant, compactDesign, responsiveDesign, verticalDivider, noMinWidth, column1Width, column2Width, column3Width, column4Width, }) => formatHtmlPreview(`
|
|
122
|
-
<tds-table
|
|
123
|
-
vertical-dividers="${verticalDivider}"
|
|
124
|
-
compact-design="${compactDesign}"
|
|
125
|
-
responsive="${responsiveDesign}"
|
|
126
|
-
${noMinWidth ? 'no-min-width' : ''}
|
|
127
|
-
${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}
|
|
128
|
-
>
|
|
129
|
-
<tds-table-header>
|
|
130
|
-
<tds-header-cell cell-key='truck' cell-value='Truck type' ${column1Width ? `custom-width="${column1Width}"` : ''} ></tds-header-cell>
|
|
131
|
-
<tds-header-cell cell-key='driver' cell-value='Driver name' ${column2Width ? `custom-width="${column2Width}"` : ''}></tds-header-cell>
|
|
132
|
-
<tds-header-cell cell-key='country' cell-value='Country' ${column3Width ? `custom-width="${column3Width}"` : ''}></tds-header-cell>
|
|
133
|
-
<tds-header-cell cell-key='mileage' cell-value='Mileage' ${column4Width ? `custom-width="${column4Width}"` : ''} text-align='right'></tds-header-cell>
|
|
134
|
-
</tds-table-header>
|
|
135
|
-
<tds-table-body>
|
|
136
|
-
<tds-table-body-row>
|
|
137
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
138
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
139
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
140
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
141
|
-
</tds-table-body-row>
|
|
142
|
-
<tds-table-body-row>
|
|
143
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
144
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
145
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
146
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
147
|
-
</tds-table-body-row>
|
|
148
|
-
<tds-table-body-row>
|
|
149
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
150
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
151
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
152
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
153
|
-
</tds-table-body-row>
|
|
154
|
-
<tds-table-body-row>
|
|
155
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
156
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
157
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
158
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
159
|
-
</tds-table-body-row>
|
|
160
|
-
<tds-table-body-row>
|
|
161
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
162
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
163
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
164
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
165
|
-
</tds-table-body-row>
|
|
166
|
-
<tds-table-body-row>
|
|
167
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
168
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
169
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
170
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
171
|
-
</tds-table-body-row>
|
|
172
|
-
</tds-table-body>
|
|
173
|
-
</tds-table>`);
|
|
174
|
-
export const CustomWidth = BasicTemplate.bind({});
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import formatHtmlPreview from "../../stories/formatHtmlPreview";
|
|
2
|
-
import tdsTable from "./table/readme.md";
|
|
3
|
-
import tdsTableToolbar from "./table-toolbar/readme.md";
|
|
4
|
-
import tdsHeader from "./table-header/readme.md";
|
|
5
|
-
import tdsHeaderCell from "./table-header-cell/readme.md";
|
|
6
|
-
import tdsTableBody from "./table-body/readme.md";
|
|
7
|
-
import tdsBodyRow from "./table-body-row/readme.md";
|
|
8
|
-
import tdsBodyRowExpandable from "./table-body-row-expandable/readme.md";
|
|
9
|
-
import tdsBodyCell from "./table-body-cell/readme.md";
|
|
10
|
-
import tdsTableFooter from "./table-footer/readme.md";
|
|
11
|
-
import { ComponentsFolder } from "../../utils/constants";
|
|
12
|
-
export default {
|
|
13
|
-
title: `${ComponentsFolder}/Table`,
|
|
14
|
-
parameters: {
|
|
15
|
-
notes: {
|
|
16
|
-
'tds-table': tdsTable,
|
|
17
|
-
'tds-table-toolbar': tdsTableToolbar,
|
|
18
|
-
'tds-header': tdsHeader,
|
|
19
|
-
'tds-header-cell': tdsHeaderCell,
|
|
20
|
-
'tds-table-body': tdsTableBody,
|
|
21
|
-
'tds-body-row': tdsBodyRow,
|
|
22
|
-
'tds-body-row-expandable': tdsBodyRowExpandable,
|
|
23
|
-
'tds-body-cell': tdsBodyCell,
|
|
24
|
-
'tds-table-footer': tdsTableFooter,
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
argTypes: {
|
|
28
|
-
modeVariant: {
|
|
29
|
-
name: 'Mode variant',
|
|
30
|
-
description: 'Mode variant adjusts component colors to have better visibility depending on global mode and background.',
|
|
31
|
-
control: {
|
|
32
|
-
type: 'radio',
|
|
33
|
-
},
|
|
34
|
-
options: ['Inherit from parent', 'Primary', 'Secondary'],
|
|
35
|
-
table: {
|
|
36
|
-
defaultValue: { summary: 'Inherit from parent' },
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
compactDesign: {
|
|
40
|
-
name: 'Compact design',
|
|
41
|
-
description: 'Enables compact design of the Table, rows with less height.',
|
|
42
|
-
control: {
|
|
43
|
-
type: 'boolean',
|
|
44
|
-
},
|
|
45
|
-
table: {
|
|
46
|
-
defaultValue: { summary: false },
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
responsiveDesign: {
|
|
50
|
-
name: 'Responsive Table',
|
|
51
|
-
description: 'Enables Table to take 100% of available width. For column values less than 192px, "No minimum width" has to be enabled too.',
|
|
52
|
-
control: {
|
|
53
|
-
type: 'boolean',
|
|
54
|
-
},
|
|
55
|
-
table: {
|
|
56
|
-
defaultValue: { summary: false },
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
verticalDivider: {
|
|
60
|
-
name: 'Vertical dividers',
|
|
61
|
-
description: 'Enables vertical dividers between Table columns.',
|
|
62
|
-
control: {
|
|
63
|
-
type: 'boolean',
|
|
64
|
-
},
|
|
65
|
-
table: {
|
|
66
|
-
defaultValue: { summary: false },
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
noMinWidth: {
|
|
70
|
-
name: 'No minimum width',
|
|
71
|
-
description: 'Resets min-width rule and enables setting column width value to less than 192px which is the default. When enabled, controls for column width will show here.',
|
|
72
|
-
control: {
|
|
73
|
-
type: 'boolean',
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
column1Width: {
|
|
77
|
-
name: 'Column 1 width',
|
|
78
|
-
description: 'Value of width for column 1. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
79
|
-
control: {
|
|
80
|
-
type: 'text',
|
|
81
|
-
},
|
|
82
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
83
|
-
},
|
|
84
|
-
column2Width: {
|
|
85
|
-
name: 'Column 2 width',
|
|
86
|
-
description: 'Value of width for column 2. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
87
|
-
control: {
|
|
88
|
-
type: 'text',
|
|
89
|
-
},
|
|
90
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
91
|
-
},
|
|
92
|
-
column3Width: {
|
|
93
|
-
name: 'Column 3 width',
|
|
94
|
-
description: 'Value of width for column 3. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
95
|
-
control: {
|
|
96
|
-
type: 'text',
|
|
97
|
-
},
|
|
98
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
99
|
-
},
|
|
100
|
-
column4Width: {
|
|
101
|
-
name: 'Column 4 width',
|
|
102
|
-
description: 'Value of width for column 4. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
103
|
-
control: {
|
|
104
|
-
type: 'text',
|
|
105
|
-
},
|
|
106
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
107
|
-
},
|
|
108
|
-
},
|
|
109
|
-
args: {
|
|
110
|
-
modeVariant: 'Inherit from parent',
|
|
111
|
-
compactDesign: false,
|
|
112
|
-
responsiveDesign: false,
|
|
113
|
-
verticalDivider: false,
|
|
114
|
-
noMinWidth: false,
|
|
115
|
-
column1Width: '',
|
|
116
|
-
column2Width: '',
|
|
117
|
-
column3Width: '',
|
|
118
|
-
column4Width: '',
|
|
119
|
-
},
|
|
120
|
-
};
|
|
121
|
-
const ExpandableRowTemplate = ({ modeVariant, compactDesign, responsiveDesign, verticalDivider, noMinWidth, column1Width, column2Width, column3Width, column4Width, }) => formatHtmlPreview(`
|
|
122
|
-
<tds-table
|
|
123
|
-
expandable-rows
|
|
124
|
-
vertical-dividers="${verticalDivider}"
|
|
125
|
-
compact-design="${compactDesign}"
|
|
126
|
-
responsive="${responsiveDesign}"
|
|
127
|
-
${noMinWidth ? 'no-min-width' : ''}
|
|
128
|
-
${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}
|
|
129
|
-
>
|
|
130
|
-
<tds-table-header>
|
|
131
|
-
<tds-header-cell cell-key='truck' cell-value='Truck type' ${column1Width ? `custom-width="${column1Width}"` : ''}></tds-header-cell>
|
|
132
|
-
<tds-header-cell cell-key='driver' cell-value='Driver name' ${column2Width ? `custom-width="${column2Width}"` : ''}></tds-header-cell>
|
|
133
|
-
<tds-header-cell cell-key='country' cell-value='Country' ${column3Width ? `custom-width="${column3Width}"` : ''}></tds-header-cell>
|
|
134
|
-
<tds-header-cell cell-key='mileage' cell-value='Mileage' text-align='right' ${column4Width ? `custom-width="${column4Width}"` : ''}></tds-header-cell>
|
|
135
|
-
</tds-table-header>
|
|
136
|
-
<tds-table-body>
|
|
137
|
-
<tds-table-body-row-expandable>
|
|
138
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
139
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
140
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
141
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
142
|
-
<div slot="expand-row">Hello world 1</div>
|
|
143
|
-
</tds-table-body-row-expandable>
|
|
144
|
-
<tds-table-body-row-expandable>
|
|
145
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
146
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
147
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
148
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
149
|
-
<div slot="expand-row">Hello to you too</div>
|
|
150
|
-
</tds-table-body-row-expandable>
|
|
151
|
-
<tds-table-body-row-expandable>
|
|
152
|
-
<tds-body-cell cell-value="Test value 9" cell-key="truck"></tds-body-cell>
|
|
153
|
-
<tds-body-cell cell-value="Test value 10" cell-key="driver"></tds-body-cell>
|
|
154
|
-
<tds-body-cell cell-value="Test value 11" cell-key="country"></tds-body-cell>
|
|
155
|
-
<tds-body-cell cell-value="Test value 12" cell-key="mileage"></tds-body-cell>
|
|
156
|
-
<div slot="expand-row"><tds-button type="primary" text="Call to action"></tds-button></div>
|
|
157
|
-
</tds-table-body-row-expandable>
|
|
158
|
-
</tds-table-body>
|
|
159
|
-
</tds-table>`);
|
|
160
|
-
export const ExpandableRows = ExpandableRowTemplate.bind({});
|