@everchron/ec-shards 6.1.1 → 6.1.3
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/ec-shards.common.js +68 -55
- package/dist/ec-shards.common.js.map +1 -1
- package/dist/ec-shards.css +1 -1
- package/dist/ec-shards.umd.js +68 -55
- 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/collapse/collapse.vue +10 -0
- package/src/components/entry-link/entry-link.vue +10 -2
- package/src/stories/Changelog.stories.mdx +12 -0
- package/src/stories/collapse/collapse.stories.js +17 -0
package/package.json
CHANGED
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
:class="[headlineBold ? 'ecs-headline-section-bold' : 'ecs-headline-section', isVisible ? '' : 'collapsed']"
|
|
13
13
|
@click="toggleCollapse">
|
|
14
14
|
{{title}}
|
|
15
|
+
<div v-if="$slots.controls" class="ecs-collapsable-headline-controls">
|
|
16
|
+
<slot name="controls"></slot>
|
|
17
|
+
</div>
|
|
15
18
|
</h3>
|
|
16
19
|
</div>
|
|
17
20
|
|
|
@@ -216,6 +219,13 @@ export default {
|
|
|
216
219
|
transform: rotate(-90deg);
|
|
217
220
|
opacity: 1;
|
|
218
221
|
}
|
|
222
|
+
|
|
223
|
+
&-controls{
|
|
224
|
+
margin: 0 $spacing-40 0 auto;
|
|
225
|
+
display: flex;
|
|
226
|
+
align-items: center;
|
|
227
|
+
column-gap: $spacing-10;
|
|
228
|
+
}
|
|
219
229
|
}
|
|
220
230
|
|
|
221
231
|
.remove-button{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="ecs-entry-link" @click.stop="handleClick">
|
|
3
|
-
<div v-if="icon" class="entry-icon">
|
|
3
|
+
<div v-if="icon" class="entry-icon" :title="iconTitle">
|
|
4
4
|
<ecs-icon v-if="icon" :type="icon" :color="iconColor" size="20" />
|
|
5
5
|
<ecs-sticker v-if="sticker" :type="sticker" />
|
|
6
6
|
</div>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<!-- @slot Slot for additional prepended content that should preceed the title. Use with care. -->
|
|
9
9
|
<slot name="prepender"></slot>
|
|
10
10
|
</div>
|
|
11
|
-
<div class="ecs-entry-link-label" :class="emphasized ? 'emphasized' : ''">{{ label }}</div>
|
|
11
|
+
<div class="ecs-entry-link-label" :class="emphasized ? 'emphasized' : ''" :title="linkTitle">{{ label }}</div>
|
|
12
12
|
<div v-if="$slots.appender" class="append">
|
|
13
13
|
<!-- @slot Slot for additional appended content that should follow the title. Use with care. -->
|
|
14
14
|
<slot name="appender"></slot>
|
|
@@ -62,6 +62,14 @@
|
|
|
62
62
|
/** Shows a Sticker icon on top of the main icon. */
|
|
63
63
|
sticker: {
|
|
64
64
|
type: String
|
|
65
|
+
},
|
|
66
|
+
/** Separate tooltip title for the icon. */
|
|
67
|
+
iconTitle: {
|
|
68
|
+
type: String
|
|
69
|
+
},
|
|
70
|
+
/** Tooltip for the link itself */
|
|
71
|
+
linkTitle: {
|
|
72
|
+
type: String
|
|
65
73
|
}
|
|
66
74
|
},
|
|
67
75
|
|
|
@@ -6,6 +6,18 @@ import { Meta } from '@storybook/addon-docs/blocks';
|
|
|
6
6
|
Changelog
|
|
7
7
|
</h1>
|
|
8
8
|
|
|
9
|
+
## Version 6.1.3 (8 May 2023)
|
|
10
|
+
|
|
11
|
+
### Fixes
|
|
12
|
+
|
|
13
|
+
- Add linkTitle and iconTitle props to EntryLink component, to allow separate tooltips
|
|
14
|
+
|
|
15
|
+
## Version 6.1.2 (4 May 2023)
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
- Added a custom controls slot to the Collapse component
|
|
20
|
+
|
|
9
21
|
## Version 6.1.1 (4 May 2023)
|
|
10
22
|
|
|
11
23
|
### Fixes
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import EcsCollapse from '@components/collapse/collapse';
|
|
2
|
+
import EcsButton from '@components/button/button';
|
|
2
3
|
|
|
3
4
|
export default {
|
|
4
5
|
title: 'Navigation/Collapse',
|
|
@@ -25,6 +26,22 @@ export const indentation = () => ({
|
|
|
25
26
|
</div>`,
|
|
26
27
|
});
|
|
27
28
|
|
|
29
|
+
export const controls = () => ({
|
|
30
|
+
components: { EcsCollapse, EcsButton },
|
|
31
|
+
methods: {
|
|
32
|
+
showAlert() {
|
|
33
|
+
alert('Button clicked!');
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
template: `<ecs-collapse headline-bold visible id="test" title="Headline" border-bottom border-top>
|
|
37
|
+
Content
|
|
38
|
+
<template slot="controls">
|
|
39
|
+
<ecs-button @click.stop="showAlert()">Button</ecs-button>
|
|
40
|
+
<ecs-button @click.stop="showAlert()">Button</ecs-button>
|
|
41
|
+
</template>
|
|
42
|
+
</ecs-collapse>`,
|
|
43
|
+
});
|
|
44
|
+
|
|
28
45
|
export const removable = () => ({
|
|
29
46
|
components: { EcsCollapse },
|
|
30
47
|
template: `<ecs-collapse visible headline-indent="sml" removable id="test7" title="Removable" border-bottom border-top>Content</ecs-collapse>`,
|