@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,240 +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 design',
|
|
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
|
-
column1sortable: {
|
|
60
|
-
name: 'Column 1 is sortable',
|
|
61
|
-
description: 'Enables column 1 to be sorted alphabetically.',
|
|
62
|
-
control: {
|
|
63
|
-
type: 'boolean',
|
|
64
|
-
},
|
|
65
|
-
table: {
|
|
66
|
-
defaultValue: { summary: false },
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
column2sortable: {
|
|
70
|
-
name: 'Column 2 is sortable',
|
|
71
|
-
description: 'Enables column 2 to be sorted alphabetically.',
|
|
72
|
-
control: {
|
|
73
|
-
type: 'boolean',
|
|
74
|
-
},
|
|
75
|
-
table: {
|
|
76
|
-
defaultValue: { summary: false },
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
column3sortable: {
|
|
80
|
-
name: 'Column 3 is sortable',
|
|
81
|
-
description: 'Enables column 3 to be sorted alphabetically.',
|
|
82
|
-
control: {
|
|
83
|
-
type: 'boolean',
|
|
84
|
-
},
|
|
85
|
-
table: {
|
|
86
|
-
defaultValue: { summary: false },
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
column4sortable: {
|
|
90
|
-
name: 'Column 4 is sortable',
|
|
91
|
-
description: 'Enables column 4 to be sorted alphabetically.',
|
|
92
|
-
control: {
|
|
93
|
-
type: 'boolean',
|
|
94
|
-
},
|
|
95
|
-
table: {
|
|
96
|
-
defaultValue: { summary: false },
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
verticalDivider: {
|
|
100
|
-
name: 'Vertical dividers',
|
|
101
|
-
description: 'Enables vertical dividers between Table columns.',
|
|
102
|
-
control: {
|
|
103
|
-
type: 'boolean',
|
|
104
|
-
},
|
|
105
|
-
table: {
|
|
106
|
-
defaultValue: { summary: false },
|
|
107
|
-
},
|
|
108
|
-
},
|
|
109
|
-
noMinWidth: {
|
|
110
|
-
name: 'No minimum width',
|
|
111
|
-
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.',
|
|
112
|
-
control: {
|
|
113
|
-
type: 'boolean',
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
column1Width: {
|
|
117
|
-
name: 'Column 1 width',
|
|
118
|
-
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.',
|
|
119
|
-
control: {
|
|
120
|
-
type: 'text',
|
|
121
|
-
},
|
|
122
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
123
|
-
},
|
|
124
|
-
column2Width: {
|
|
125
|
-
name: 'Column 2 width',
|
|
126
|
-
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.',
|
|
127
|
-
control: {
|
|
128
|
-
type: 'text',
|
|
129
|
-
},
|
|
130
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
131
|
-
},
|
|
132
|
-
column3Width: {
|
|
133
|
-
name: 'Column 3 width',
|
|
134
|
-
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.',
|
|
135
|
-
control: {
|
|
136
|
-
type: 'text',
|
|
137
|
-
},
|
|
138
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
139
|
-
},
|
|
140
|
-
column4Width: {
|
|
141
|
-
name: 'Column 4 width',
|
|
142
|
-
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.',
|
|
143
|
-
control: {
|
|
144
|
-
type: 'text',
|
|
145
|
-
},
|
|
146
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
147
|
-
},
|
|
148
|
-
},
|
|
149
|
-
args: {
|
|
150
|
-
modeVariant: 'Inherit from parent',
|
|
151
|
-
compactDesign: false,
|
|
152
|
-
responsiveDesign: false,
|
|
153
|
-
column1sortable: true,
|
|
154
|
-
column2sortable: true,
|
|
155
|
-
column3sortable: true,
|
|
156
|
-
column4sortable: true,
|
|
157
|
-
verticalDivider: false,
|
|
158
|
-
noMinWidth: false,
|
|
159
|
-
column1Width: '',
|
|
160
|
-
column2Width: '',
|
|
161
|
-
column3Width: '',
|
|
162
|
-
column4Width: '',
|
|
163
|
-
},
|
|
164
|
-
};
|
|
165
|
-
const SortingTemplate = ({ modeVariant, compactDesign, responsiveDesign, column1sortable, column2sortable, column3sortable, column4sortable, verticalDivider, noMinWidth, column1Width, column2Width, column3Width, column4Width, }) => formatHtmlPreview(`
|
|
166
|
-
<tds-table
|
|
167
|
-
table-id='tds-table-sorting-example'
|
|
168
|
-
vertical-dividers="${verticalDivider}"
|
|
169
|
-
compact-design="${compactDesign}"
|
|
170
|
-
responsive="${responsiveDesign}"
|
|
171
|
-
${noMinWidth ? 'no-min-width' : ''}
|
|
172
|
-
${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}
|
|
173
|
-
>
|
|
174
|
-
<tds-table-toolbar table-title="Sorting"></tds-table-toolbar>
|
|
175
|
-
<tds-table-header>
|
|
176
|
-
<tds-header-cell cell-key='truck' cell-value='Truck type' sortable="${column1sortable}" ${column1Width ? `custom-width="${column1Width}"` : ''}></tds-header-cell>
|
|
177
|
-
<tds-header-cell cell-key='driver' cell-value='Driver name' sortable="${column2sortable}" ${column2Width ? `custom-width="${column2Width}"` : ''}></tds-header-cell>
|
|
178
|
-
<tds-header-cell cell-key='country' cell-value='Country' sortable="${column3sortable}" ${column3Width ? `custom-width="${column3Width}"` : ''}></tds-header-cell>
|
|
179
|
-
<tds-header-cell cell-key='mileage' cell-value='Mileage' sortable="${column4sortable}" text-align='right' ${column4Width ? `custom-width="${column4Width}"` : ''}></tds-header-cell>
|
|
180
|
-
</tds-table-header>
|
|
181
|
-
<tds-table-body>
|
|
182
|
-
<tds-table-body-row>
|
|
183
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
184
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
185
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
186
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
187
|
-
</tds-table-body-row>
|
|
188
|
-
<tds-table-body-row>
|
|
189
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
190
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
191
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
192
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
193
|
-
</tds-table-body-row>
|
|
194
|
-
<tds-table-body-row>
|
|
195
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
196
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
197
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
198
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
199
|
-
</tds-table-body-row>
|
|
200
|
-
<tds-table-body-row>
|
|
201
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
202
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
203
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
204
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
205
|
-
</tds-table-body-row>
|
|
206
|
-
<tds-table-body-row>
|
|
207
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
208
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
209
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
210
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
211
|
-
</tds-table-body-row>
|
|
212
|
-
<tds-table-body-row>
|
|
213
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
214
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
215
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
216
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
217
|
-
</tds-table-body-row>
|
|
218
|
-
</tds-table-body>
|
|
219
|
-
</tds-table>
|
|
220
|
-
<!-- Note: Code below is just for demo purposes -->
|
|
221
|
-
<div class="tds-u-mt1" style="width: 500px; background-color: lightblue; padding: 16px;">
|
|
222
|
-
<p class="tds-u-mt0">Note: This box works only in "Canvas" tab.</p>
|
|
223
|
-
<h5 class="tds-u-mt0 tds-u-mb0">Event test box</h5>
|
|
224
|
-
<h6 class="tds-u-mt1 tds-u-mb0">Event name:</h6>
|
|
225
|
-
<textarea id="event-name-textarea" rows="1" cols="50" readonly></textarea>
|
|
226
|
-
<h6 class="tds-u-mt0 tds-u-mb0">Events value (aka detail)</h6>
|
|
227
|
-
<br>
|
|
228
|
-
<textarea id="event-value-textarea" rows="4" cols="50" readonly></textarea>
|
|
229
|
-
</div>
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
<script>
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
window.addEventListener('tdsSort', e => {
|
|
236
|
-
document.getElementById('event-name-textarea').value = e.type;
|
|
237
|
-
document.getElementById('event-value-textarea').value = JSON.stringify(e.detail, null, 2);
|
|
238
|
-
});
|
|
239
|
-
</script>`);
|
|
240
|
-
export const Sorting = SortingTemplate.bind({});
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import readme from "./readme.md";
|
|
2
|
-
import readmeItem from "./folder-tab/readme.md";
|
|
3
|
-
import { ComponentsFolder } from "../../../utils/constants";
|
|
4
|
-
import formatHtmlPreview from "../../../stories/formatHtmlPreview";
|
|
5
|
-
export default {
|
|
6
|
-
title: `${ComponentsFolder}/Tabs`,
|
|
7
|
-
parameters: {
|
|
8
|
-
notes: {
|
|
9
|
-
'Folder Tabs': readme,
|
|
10
|
-
'Folder Tab': readmeItem,
|
|
11
|
-
},
|
|
12
|
-
backgrounds: { default: 'white' },
|
|
13
|
-
design: [
|
|
14
|
-
{
|
|
15
|
-
name: 'Figma',
|
|
16
|
-
type: 'figma',
|
|
17
|
-
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=10544%3A32834&t=Ne6myqwca5m00de7-1',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
name: 'Link',
|
|
21
|
-
type: 'link',
|
|
22
|
-
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=10544%3A32834&t=Ne6myqwca5m00de7-1',
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
},
|
|
26
|
-
argTypes: {
|
|
27
|
-
modeVariant: {
|
|
28
|
-
name: 'Mode variant',
|
|
29
|
-
description: 'Mode variation adjusts component colors to have better visibility depending on global mode and background.',
|
|
30
|
-
control: {
|
|
31
|
-
type: 'radio',
|
|
32
|
-
},
|
|
33
|
-
options: ['Inherit from parent', 'Primary', 'Secondary'],
|
|
34
|
-
table: {
|
|
35
|
-
defaultValue: { summary: 'Inherit from parent' },
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
defaultSelectedIndex: {
|
|
39
|
-
name: 'Default selected index',
|
|
40
|
-
description: 'Sets the default selected Tab, if this is used the Tab changes will be done automatically.',
|
|
41
|
-
control: {
|
|
42
|
-
type: 'radio',
|
|
43
|
-
},
|
|
44
|
-
options: ['None', 0, 1, 2, 3],
|
|
45
|
-
table: {
|
|
46
|
-
defaultValue: { summary: '0' },
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
selectedIndex: {
|
|
50
|
-
name: 'Selected index',
|
|
51
|
-
description: 'Sets the selected Tab, if this is used the Tab changes has to be handled by the user.',
|
|
52
|
-
control: {
|
|
53
|
-
type: 'radio',
|
|
54
|
-
},
|
|
55
|
-
options: ['None', 0, 1, 2, 3],
|
|
56
|
-
if: { arg: 'defaultSelectedIndex', eq: 'None' },
|
|
57
|
-
},
|
|
58
|
-
backgrounds: {
|
|
59
|
-
table: {
|
|
60
|
-
disable: true,
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
args: {
|
|
65
|
-
modeVariant: 'Inherit from parent',
|
|
66
|
-
defaultSelectedIndex: 'None',
|
|
67
|
-
selectedIndex: 'None',
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
const Template = ({ modeVariant, selectedIndex, defaultSelectedIndex }) => formatHtmlPreview(`
|
|
71
|
-
<tds-folder-tabs
|
|
72
|
-
${defaultSelectedIndex !== 'None' ? `default-selected-index="${defaultSelectedIndex}"` : ''}
|
|
73
|
-
${selectedIndex && selectedIndex !== 'None' ? `selected-index="${selectedIndex}"` : ''}
|
|
74
|
-
${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}>
|
|
75
|
-
<tds-folder-tab>
|
|
76
|
-
<button>First tab</button>
|
|
77
|
-
</tds-folder-tab>
|
|
78
|
-
<tds-folder-tab>
|
|
79
|
-
<button>Second tab is much longer</button>
|
|
80
|
-
</tds-folder-tab>
|
|
81
|
-
<tds-folder-tab>
|
|
82
|
-
<button>Third tab</button>
|
|
83
|
-
</tds-folder-tab>
|
|
84
|
-
<tds-folder-tab disabled>
|
|
85
|
-
<button>Fourth tab</button>
|
|
86
|
-
</tds-folder-tab>
|
|
87
|
-
</tds-folder-tabs>
|
|
88
|
-
|
|
89
|
-
<!-- Demo container. -->
|
|
90
|
-
<div class="demo-container">
|
|
91
|
-
<h4 class="tds-headline-04">Selected tab index: <span class="selectedTabIndex"></span></h4>
|
|
92
|
-
</div>
|
|
93
|
-
|
|
94
|
-
<!-- Script tag with eventlistener for demo purposes. -->
|
|
95
|
-
<script>
|
|
96
|
-
selectedTabIndex = document.getElementsByClassName('selectedTabIndex')[0]
|
|
97
|
-
tabs = document.querySelector('tds-folder-tabs');
|
|
98
|
-
|
|
99
|
-
tabs.addEventListener('tdsChange', (event) => {
|
|
100
|
-
selectedTabIndex.innerHTML = event.detail.selectedTabIndex
|
|
101
|
-
console.log(event)
|
|
102
|
-
})
|
|
103
|
-
</script>
|
|
104
|
-
`);
|
|
105
|
-
export const FolderTabs = Template.bind({});
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import formatHtmlPreview from "../../../stories/formatHtmlPreview";
|
|
2
|
-
import readme from "./readme.md";
|
|
3
|
-
import readmeTab from "./inline-tab/readme.md";
|
|
4
|
-
import { ComponentsFolder } from "../../../utils/constants";
|
|
5
|
-
export default {
|
|
6
|
-
title: `${ComponentsFolder}/Tabs`,
|
|
7
|
-
parameters: {
|
|
8
|
-
notes: {
|
|
9
|
-
'Inline Tabs': readme,
|
|
10
|
-
'Inline Tab': readmeTab,
|
|
11
|
-
},
|
|
12
|
-
design: [
|
|
13
|
-
{
|
|
14
|
-
name: 'Figma',
|
|
15
|
-
type: 'figma',
|
|
16
|
-
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=10544%3A32834&t=Ne6myqwca5m00de7-1',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
name: 'Link',
|
|
20
|
-
type: 'link',
|
|
21
|
-
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=10544%3A32834&t=Ne6myqwca5m00de7-1',
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
},
|
|
25
|
-
argTypes: {
|
|
26
|
-
modeVariant: {
|
|
27
|
-
name: 'Mode variant',
|
|
28
|
-
description: 'Mode variation adjusts component colors to have better visibility depending on global mode and background.',
|
|
29
|
-
control: {
|
|
30
|
-
type: 'radio',
|
|
31
|
-
},
|
|
32
|
-
options: ['Inherit from parent', 'Primary', 'Secondary'],
|
|
33
|
-
table: {
|
|
34
|
-
defaultValue: { summary: 'Inherit from parent' },
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
defaultSelectedIndex: {
|
|
38
|
-
name: 'Default selected index',
|
|
39
|
-
description: 'Sets the default selected Tab, if this is used the Tab changes will be done automatically.',
|
|
40
|
-
control: {
|
|
41
|
-
type: 'radio',
|
|
42
|
-
},
|
|
43
|
-
options: ['None', 0, 1, 2, 3],
|
|
44
|
-
table: {
|
|
45
|
-
defaultValue: { summary: '0' },
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
selectedIndex: {
|
|
49
|
-
name: 'Selected index',
|
|
50
|
-
description: 'Sets the selected Tab, if this is used the Tab changes has to be handled by the user.',
|
|
51
|
-
control: {
|
|
52
|
-
type: 'radio',
|
|
53
|
-
},
|
|
54
|
-
options: ['None', 0, 1, 2, 3],
|
|
55
|
-
if: { arg: 'defaultSelectedIndex', eq: 'None' },
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
args: {
|
|
59
|
-
modeVariant: 'Inherit from parent',
|
|
60
|
-
defaultSelectedIndex: 'None',
|
|
61
|
-
selectedIndex: 'None',
|
|
62
|
-
},
|
|
63
|
-
};
|
|
64
|
-
const Template = ({ modeVariant, selectedIndex, defaultSelectedIndex }) => formatHtmlPreview(`
|
|
65
|
-
<tds-inline-tabs
|
|
66
|
-
${defaultSelectedIndex !== 'None' ? `default-selected-index="${defaultSelectedIndex}"` : ''}
|
|
67
|
-
${selectedIndex && selectedIndex !== 'None' ? `selected-index="${selectedIndex}"` : ''}
|
|
68
|
-
${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}>
|
|
69
|
-
<tds-inline-tab>
|
|
70
|
-
<button>First tab</button>
|
|
71
|
-
</tds-inline-tab>
|
|
72
|
-
<tds-inline-tab>
|
|
73
|
-
<button>Second tab is much longer</button>
|
|
74
|
-
</tds-inline-tab>
|
|
75
|
-
<tds-inline-tab>
|
|
76
|
-
<button>Third tab</button>
|
|
77
|
-
</tds-inline-tab>
|
|
78
|
-
<tds-inline-tab disabled>
|
|
79
|
-
<button>Fourth tab</button>
|
|
80
|
-
</tds-inline-tab>
|
|
81
|
-
</tds-inline-tabs>
|
|
82
|
-
|
|
83
|
-
<!-- Demo container. -->
|
|
84
|
-
<div class="demo-container">
|
|
85
|
-
<h4 class="tds-headline-04">Selected tabindex: <span class="selectedTabIndex"></span></h4>
|
|
86
|
-
</div>
|
|
87
|
-
|
|
88
|
-
<!-- Script tag with eventlistener for demo purposes. -->
|
|
89
|
-
<script>
|
|
90
|
-
selectedTabIndex = document.getElementsByClassName('selectedTabIndex')[0]
|
|
91
|
-
tabs = document.querySelector('tds-inline-tabs');
|
|
92
|
-
|
|
93
|
-
tabs.addEventListener('tdsChange', (event) => {
|
|
94
|
-
selectedTabIndex.innerHTML = event.detail.selectedTabIndex
|
|
95
|
-
console.log(event)
|
|
96
|
-
})
|
|
97
|
-
</script>
|
|
98
|
-
`);
|
|
99
|
-
export const InlineTabs = Template.bind({});
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import formatHtmlPreview from "../../../stories/formatHtmlPreview";
|
|
2
|
-
import readme from "./readme.md";
|
|
3
|
-
import readmeTab from "./navigation-tab/readme.md";
|
|
4
|
-
import { ComponentsFolder } from "../../../utils/constants";
|
|
5
|
-
export default {
|
|
6
|
-
title: `${ComponentsFolder}/Tabs`,
|
|
7
|
-
parameters: {
|
|
8
|
-
notes: {
|
|
9
|
-
'Navigation Tabs': readme,
|
|
10
|
-
'Navigation Tab': readmeTab,
|
|
11
|
-
},
|
|
12
|
-
design: [
|
|
13
|
-
{
|
|
14
|
-
name: 'Figma',
|
|
15
|
-
type: 'figma',
|
|
16
|
-
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=10544%3A31546&t=Ne6myqwca5m00de7-1',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
name: 'Link',
|
|
20
|
-
type: 'link',
|
|
21
|
-
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=10544%3A31546&t=Ne6myqwca5m00de7-1',
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
},
|
|
25
|
-
argTypes: {
|
|
26
|
-
modeVariant: {
|
|
27
|
-
name: 'Mode variant',
|
|
28
|
-
description: 'Mode variation adjusts component colors to have better visibility depending on global mode and background.',
|
|
29
|
-
control: {
|
|
30
|
-
type: 'radio',
|
|
31
|
-
},
|
|
32
|
-
options: ['Inherit from parent', 'Primary', 'Secondary'],
|
|
33
|
-
table: {
|
|
34
|
-
defaultValue: { summary: 'Inherit from parent' },
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
defaultSelectedIndex: {
|
|
38
|
-
name: 'Default selected index',
|
|
39
|
-
description: 'Sets the default selected Tab, if this is used the Tab changes will be done automatically.',
|
|
40
|
-
control: {
|
|
41
|
-
type: 'radio',
|
|
42
|
-
},
|
|
43
|
-
options: ['None', 0, 1, 2, 3],
|
|
44
|
-
table: {
|
|
45
|
-
defaultValue: { summary: '0' },
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
selectedIndex: {
|
|
49
|
-
name: 'Selected index',
|
|
50
|
-
description: 'Sets the selected Tab, if this is used the Tab changes has to be handled by the user.',
|
|
51
|
-
control: {
|
|
52
|
-
type: 'radio',
|
|
53
|
-
},
|
|
54
|
-
options: ['None', 0, 1, 2, 3],
|
|
55
|
-
if: { arg: 'defaultSelectedIndex', eq: 'None' },
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
args: {
|
|
59
|
-
modeVariant: 'Inherit from parent',
|
|
60
|
-
defaultSelectedIndex: 'None',
|
|
61
|
-
selectedIndex: 'None',
|
|
62
|
-
},
|
|
63
|
-
};
|
|
64
|
-
const Template = ({ modeVariant, selectedIndex, defaultSelectedIndex }) => formatHtmlPreview(`
|
|
65
|
-
<tds-navigation-tabs
|
|
66
|
-
${defaultSelectedIndex !== 'None' ? `default-selected-index="${defaultSelectedIndex}"` : ''}
|
|
67
|
-
${selectedIndex && selectedIndex !== 'None' ? `selected-index="${selectedIndex}"` : ''}
|
|
68
|
-
${modeVariant !== 'Inherit from parent' ? ` mode-variant="${modeVariant.toLowerCase()}"` : ''}
|
|
69
|
-
>
|
|
70
|
-
<tds-navigation-tab>
|
|
71
|
-
<button>First tab</button>
|
|
72
|
-
</tds-navigation-tab>
|
|
73
|
-
<tds-navigation-tab>
|
|
74
|
-
<button>Second tab is much longer</button>
|
|
75
|
-
</tds-navigation-tab>
|
|
76
|
-
<tds-navigation-tab>
|
|
77
|
-
<button>Third tab</button>
|
|
78
|
-
</tds-navigation-tab>
|
|
79
|
-
<tds-navigation-tab disabled>
|
|
80
|
-
<button>Fourth tab</button>
|
|
81
|
-
</tds-navigation-tab>
|
|
82
|
-
</tds-navigation-tabs>
|
|
83
|
-
|
|
84
|
-
<!-- Demo container. -->
|
|
85
|
-
<div class="demo-container">
|
|
86
|
-
<h4 class="tds-headline-04">Selected tabindex: <span class="selectedTabIndex"></span></h4>
|
|
87
|
-
</div>
|
|
88
|
-
|
|
89
|
-
<!-- Script tag with eventlistener for demo purposes. -->
|
|
90
|
-
<script>
|
|
91
|
-
selectedTab = document.getElementsByClassName('selectedTab')[0]
|
|
92
|
-
selectedTabIndex = document.getElementsByClassName('selectedTabIndex')[0]
|
|
93
|
-
tabs = document.querySelector('tds-navigation-tabs');
|
|
94
|
-
|
|
95
|
-
tabs.addEventListener('tdsChange', (event) => {
|
|
96
|
-
selectedTabIndex.innerHTML = event.detail.selectedTabIndex
|
|
97
|
-
console.log(event)
|
|
98
|
-
})
|
|
99
|
-
</script>
|
|
100
|
-
`);
|
|
101
|
-
export const NavigationTabs = Template.bind({});
|