@everchron/ec-shards 5.0.0 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/ec-shards.common.js +118 -64
- package/dist/ec-shards.common.js.map +1 -1
- package/dist/ec-shards.css +1 -1
- package/dist/ec-shards.umd.js +118 -64
- package/dist/ec-shards.umd.js.map +1 -1
- package/dist/ec-shards.umd.min.js +2 -2
- package/dist/ec-shards.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/data-grid/data-grid-head-cell.vue +3 -3
- package/src/components/index.js +3 -1
- package/src/components/tree-list/tree-list-headline.vue +17 -0
- package/src/components/{tree-list-item → tree-list}/tree-list-item.vue +0 -0
- package/src/stories/Changelog.stories.mdx +6 -0
- package/src/stories/data-grid/data-grid-head-cell.stories.js +25 -1
- package/src/stories/tree-list/tree-list.stories.js +1 -1
- package/src/stories/tree-list-headline/tree-list-headline.stories.js +21 -0
- package/src/stories/tree-list-item/tree-list-item.stories.js +1 -1
- package/src/.DS_Store +0 -0
- package/src/assets/.DS_Store +0 -0
- package/src/assets/images/.DS_Store +0 -0
- package/src/assets/images/flags/.DS_Store +0 -0
- package/src/stories/collection-control/.DS_Store +0 -0
- package/src/stories/comment/.DS_Store +0 -0
- package/src/stories/data-card/.DS_Store +0 -0
- package/src/stories/data-list/.DS_Store +0 -0
- package/src/stories/dialog/.DS_Store +0 -0
- package/src/stories/dialog-header/.DS_Store +0 -0
- package/src/stories/directory-entry/.DS_Store +0 -0
- package/src/stories/document-state/.DS_Store +0 -0
- package/src/stories/dropzone/.DS_Store +0 -0
- package/src/stories/empty-state/.DS_Store +0 -0
- package/src/stories/excerpt-snippet/.DS_Store +0 -0
- package/src/stories/file-icon/.DS_Store +0 -0
- package/src/stories/file-list-item/.DS_Store +0 -0
- package/src/stories/flag/.DS_Store +0 -0
- package/src/stories/form-group/.DS_Store +0 -0
- package/src/stories/form-headline/.DS_Store +0 -0
- package/src/stories/form-set/.DS_Store +0 -0
- package/src/stories/formatted/.DS_Store +0 -0
- package/src/stories/icon/.DS_Store +0 -0
- package/src/stories/index-toolbar/.DS_Store +0 -0
- package/src/stories/info-tooltip/.DS_Store +0 -0
- package/src/stories/input/.DS_Store +0 -0
- package/src/stories/input-group/.DS_Store +0 -0
- package/src/stories/input-search/.DS_Store +0 -0
- package/src/stories/jumper-document/.DS_Store +0 -0
- package/src/stories/jumper-index/.DS_Store +0 -0
- package/src/stories/jumper-page/.DS_Store +0 -0
- package/src/stories/layout-data-table/.DS_Store +0 -0
- package/src/stories/layout-directory/.DS_Store +0 -0
- package/src/stories/layout-index/.DS_Store +0 -0
- package/src/stories/map/.DS_Store +0 -0
- package/src/stories/modal/.DS_Store +0 -0
- package/src/stories/multiselect-option/.DS_Store +0 -0
- package/src/stories/multiselect-search-token/.DS_Store +0 -0
- package/src/stories/multiselect-token/.DS_Store +0 -0
- package/src/stories/overlay/.DS_Store +0 -0
- package/src/stories/pagination/.DS_Store +0 -0
- package/src/stories/party-entry/.DS_Store +0 -0
- package/src/stories/popover-header/.DS_Store +0 -0
- package/src/stories/popover-list/.DS_Store +0 -0
- package/src/stories/popover-list-headline/.DS_Store +0 -0
- package/src/stories/popover-list-item/.DS_Store +0 -0
- package/src/stories/progress/.DS_Store +0 -0
- package/src/stories/quicklink/.DS_Store +0 -0
- package/src/stories/radiobutton/.DS_Store +0 -0
- package/src/stories/rating-favorability/.DS_Store +0 -0
- package/src/stories/rating-star-read/.DS_Store +0 -0
- package/src/stories/rating-star-write/.DS_Store +0 -0
- package/src/stories/scroll-container/.DS_Store +0 -0
- package/src/stories/section/.DS_Store +0 -0
- package/src/stories/segment/.DS_Store +0 -0
- package/src/stories/select/.DS_Store +0 -0
- package/src/stories/separator/.DS_Store +0 -0
- package/src/stories/sequence-map-button/.DS_Store +0 -0
- package/src/stories/sidebar/.DS_Store +0 -0
- package/src/stories/skeleton-loader/.DS_Store +0 -0
- package/src/stories/sortbutton/.DS_Store +0 -0
- package/src/stories/sticker/.DS_Store +0 -0
- package/src/stories/structured-content/.DS_Store +0 -0
- package/src/stories/switch/.DS_Store +0 -0
- package/src/stories/tabs/.DS_Store +0 -0
- package/src/stories/tag/.DS_Store +0 -0
- package/src/stories/toast/.DS_Store +0 -0
- package/src/stories/transcript-state/.DS_Store +0 -0
- package/src/stories/tree-list/.DS_Store +0 -0
- package/src/stories/tree-list-item/.DS_Store +0 -0
- package/src/stories/video/.DS_Store +0 -0
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<div ref="resizer" class="ecs-data-grid-head-cell-inner" :style="[widthStyles, paddingStyles, resizeStyles]" :class="resizable ? 'resizable' : ''" :data-column="computedId" :data-test="computedId">
|
|
5
5
|
<ecs-icon v-if="icon" :type="icon" size="20" color="#202127" :title="name" />
|
|
6
6
|
<ecs-select v-else-if="select" @change="$emit('selection', $event.target.value)" type="invisible">
|
|
7
|
-
<option v-for="(option, index) in select" :key="index" :value="option.value">{{ option.name }}</option>
|
|
7
|
+
<option v-for="(option, index) in select" :key="index" :selected="option.selected" :value="option.value">{{ option.name }}</option>
|
|
8
8
|
</ecs-select>
|
|
9
9
|
<div v-else class="ecs-data-grid-head-cell-text">
|
|
10
10
|
{{ name }}
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
type: Boolean,
|
|
75
75
|
default: false
|
|
76
76
|
},
|
|
77
|
-
/** If passed, the head cell won't render the slot in the text, but a select menu with the passed options instead. This is useful when one column should be able to switch the data that is shown in it. For example, you could have a column with a selector in the head cell which allows you to switch between ECID, Bates Range, and Trial Exhibit No. The array needs to contain objects with `value` and `
|
|
77
|
+
/** If passed, the head cell won't render the slot in the text, but a select menu with the passed options instead. This is useful when one column should be able to switch the data that is shown in it. For example, you could have a column with a selector in the head cell which allows you to switch between ECID, Bates Range, and Trial Exhibit No. The array needs to contain objects with `value`, `name` and `selected`. */
|
|
78
78
|
select: {
|
|
79
79
|
type: Array
|
|
80
80
|
},
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
const currentColumnWidth = resizedEl.offsetWidth
|
|
183
183
|
|
|
184
184
|
/** Emitted when the column has been resized. Returns the new width of the column in pixels. */
|
|
185
|
-
this.$emit('resizedWidth', currentColumnWidth)
|
|
185
|
+
this.$emit('resizedWidth', { id: this.computedId, currentColumnWidth })
|
|
186
186
|
|
|
187
187
|
let columnCells = document.querySelectorAll('[data-column="' + this.name.toLowerCase() + '-column-cell"]')
|
|
188
188
|
columnCells.forEach(cell => {
|
package/src/components/index.js
CHANGED
|
@@ -129,7 +129,8 @@ import EcsToasts from "./toasts/toasts.vue"
|
|
|
129
129
|
import EcsToolbar from "./toolbar/toolbar.vue"
|
|
130
130
|
import EcsTranscriptState from "./transcript-state/transcript-state.vue"
|
|
131
131
|
import EcsTreeList from "./tree-list/tree-list.vue"
|
|
132
|
-
import EcsTreeListItem from "./tree-list
|
|
132
|
+
import EcsTreeListItem from "./tree-list/tree-list-item.vue"
|
|
133
|
+
import EcsTreeListHeadline from "./tree-list/tree-list-headline.vue"
|
|
133
134
|
import EcsVideo from "./video/video.vue"
|
|
134
135
|
|
|
135
136
|
const Components = {
|
|
@@ -262,6 +263,7 @@ const Components = {
|
|
|
262
263
|
EcsTranscriptState,
|
|
263
264
|
EcsTreeList,
|
|
264
265
|
EcsTreeListItem,
|
|
266
|
+
EcsTreeListHeadline,
|
|
265
267
|
EcsVideo
|
|
266
268
|
}
|
|
267
269
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="ecs-tree-view-headline">
|
|
3
|
+
<slot></slot>
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<style lang="scss" scoped>
|
|
8
|
+
@import "../../tokens/build/scss/tokens.scss";
|
|
9
|
+
@import "../mixins/svg-uri";
|
|
10
|
+
|
|
11
|
+
.ecs-tree-view-headline{
|
|
12
|
+
color: $color-gray-10;
|
|
13
|
+
font-size: $type-scale-2-font-size;
|
|
14
|
+
line-height: $type-scale-2-line-height;
|
|
15
|
+
padding: $spacing-5 10px;
|
|
16
|
+
}
|
|
17
|
+
</style>
|
|
File without changes
|
|
@@ -29,7 +29,7 @@ export const headCellSelect = () => ({
|
|
|
29
29
|
return {
|
|
30
30
|
selectOptions: [
|
|
31
31
|
{ value: 'ecid', name: 'ECID' },
|
|
32
|
-
{ value: 'bates', name: 'Bates Range' },
|
|
32
|
+
{ value: 'bates', name: 'Bates Range', selected: true },
|
|
33
33
|
{ value: 'trialex', name: 'Trial Exhibit'}
|
|
34
34
|
]
|
|
35
35
|
}
|
|
@@ -41,6 +41,30 @@ export const headCellSelect = () => ({
|
|
|
41
41
|
</ecs-data-grid>`,
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
+
export const headCellDefault = () => ({
|
|
45
|
+
components: { EcsDataGridHeadCell, EcsDataGrid },
|
|
46
|
+
props: {
|
|
47
|
+
selected: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: 'Bates Range'
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
data() {
|
|
53
|
+
return {
|
|
54
|
+
selectOptions: [
|
|
55
|
+
{ value: 'ecid', name: 'ECID' },
|
|
56
|
+
{ value: 'bates', name: 'Bates Range' },
|
|
57
|
+
{ value: 'trialex', name: 'Trial Exhibit'}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
template: `<ecs-data-grid striped>
|
|
62
|
+
<template slot="head">
|
|
63
|
+
<ecs-data-grid-head-cell name="Identifiers" :width="200" :select="selectOptions" :value="selected" />
|
|
64
|
+
</template>
|
|
65
|
+
</ecs-data-grid>`,
|
|
66
|
+
});
|
|
67
|
+
|
|
44
68
|
export const headCellSorting = () => ({
|
|
45
69
|
components: { EcsDataGridHeadCell, EcsDataGrid },
|
|
46
70
|
data() {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import EcsTreeListItem from '@components/tree-list/tree-list-item'
|
|
2
|
+
import EcsTreeListHeadline from '@components/tree-list/tree-list-headline'
|
|
3
|
+
import EcsTreeList from '@components/tree-list/tree-list'
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Data/Tree List/Tree List Headline',
|
|
7
|
+
component: EcsTreeListHeadline
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const treeListHeadline = () => ({
|
|
11
|
+
components: { EcsTreeListItem, EcsTreeList, EcsTreeListHeadline },
|
|
12
|
+
template: `<ecs-tree-list>
|
|
13
|
+
<ecs-tree-list-headline>Headline</ecs-tree-list-headline>
|
|
14
|
+
<ecs-tree-list-item :after-label="13">
|
|
15
|
+
List Item
|
|
16
|
+
</ecs-tree-list-item>
|
|
17
|
+
<ecs-tree-list-item :after-label="13">
|
|
18
|
+
List Item
|
|
19
|
+
</ecs-tree-list-item>
|
|
20
|
+
</ecs-tree-list>`,
|
|
21
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import EcsTreeListItem from '@components/tree-list
|
|
1
|
+
import EcsTreeListItem from '@components/tree-list/tree-list-item'
|
|
2
2
|
import EcsTreeList from '@components/tree-list/tree-list'
|
|
3
3
|
import EcsButton from '@components/button/button'
|
|
4
4
|
import EcsCheckbox from '@components/checkbox/checkbox'
|
package/src/.DS_Store
DELETED
|
Binary file
|
package/src/assets/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|