@everchron/ec-shards 4.2.0 → 4.4.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/css/app.99f04c26.css +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/img/EU.d180ac2d.svg +1 -0
- package/dist/img/login-email-mfa.33936706.svg +1 -0
- package/dist/img/login-email.4b81db3a.svg +1 -0
- package/dist/img/login-sso-azure.a49f3fe4.svg +1 -0
- package/dist/img/login-sso-okta.55de1bbd.svg +1 -0
- package/dist/index.html +1 -0
- package/dist/js/app.e6219346.js +2 -0
- package/dist/js/app.e6219346.js.map +1 -0
- package/dist/js/chunk-vendors.786a1bc3.js +12 -0
- package/dist/js/chunk-vendors.786a1bc3.js.map +1 -0
- package/package.json +4 -2
- package/src/assets/icons/login-key.svg +7 -0
- package/src/assets/images/fill-icons/login-email-mfa.svg +1 -0
- package/src/assets/images/fill-icons/login-email.svg +1 -0
- package/src/assets/images/fill-icons/login-sso-azure.svg +1 -0
- package/src/assets/images/fill-icons/login-sso-okta.svg +1 -0
- package/src/assets/images/flags/EU.svg +1 -0
- package/src/components/action-toolbar/action-toolbar.vue +2 -2
- package/src/components/alert/alert.vue +2 -2
- package/src/components/breadcrumb-button/breadcrumb-button.vue +2 -2
- package/src/components/button/button.vue +2 -2
- package/src/components/button-context/button-context.vue +1 -1
- package/src/components/button-more/button-more.vue +1 -1
- package/src/components/button-table/button-table.vue +1 -1
- package/src/components/button-toolbar/button-toolbar.vue +4 -4
- package/src/components/button-toolbar-icon/button-toolbar-icon.vue +1 -1
- package/src/components/collection-control/collection-control.vue +1 -1
- package/src/components/context-menu/context-menu.vue +215 -0
- package/src/components/data-card/data-card.vue +1 -1
- package/src/components/data-grid/data-grid-row.vue +25 -1
- package/src/components/dialog/dialog.vue +24 -46
- package/src/components/document-state/document-state.vue +1 -1
- package/src/components/empty-state/empty-state.vue +1 -1
- package/src/components/excerpt-snippet/excerpt-snippet.vue +1 -1
- package/src/components/fill-icon/fill-icon.vue +59 -0
- package/src/components/flag/flag.vue +5 -0
- package/src/components/index.js +6 -0
- package/src/components/info-tooltip/info-tooltip.vue +1 -1
- package/src/components/input-addon/input-addon.vue +1 -1
- package/src/components/input-clear/input-clear.vue +1 -1
- package/src/components/input-search/input-search.vue +1 -1
- package/src/components/multiselect-option/multiselect-option.vue +1 -1
- package/src/components/multiselect-search-token/multiselect-search-token.vue +2 -2
- package/src/components/multiselect-token/multiselect-token.vue +1 -1
- package/src/components/overlay/overlay.vue +1 -1
- package/src/components/pagination/pagination.vue +138 -105
- package/src/components/party-entry/party-entry.vue +2 -2
- package/src/components/popover-header/popover-header.vue +1 -1
- package/src/components/segment/segment.vue +1 -1
- package/src/components/select/select.vue +24 -3
- package/src/components/separator/separator.vue +93 -0
- package/src/components/sequence-map-button/sequence-map-button.vue +1 -1
- package/src/components/tab-button/tab-button.vue +16 -5
- package/src/components/transcript-state/transcript-state.vue +1 -1
- package/src/components/tree-list-item/tree-list-item.vue +1 -1
- package/src/stories/Changelog.stories.mdx +29 -0
- package/src/stories/context-menu/context-menu.stories.js +69 -0
- package/src/stories/fill-icon/fill-icon.stories.js +24 -0
- package/src/stories/flag/flag.stories.js +6 -1
- package/src/stories/pagination/pagination.stories.js +0 -15
- package/src/stories/select/select.stories.js +16 -0
- package/src/stories/separator/.DS_Store +0 -0
- package/src/stories/separator/separator.stories.js +33 -0
- package/dist/demo.html +0 -10
- package/dist/ec-shards.common.js +0 -26157
- package/dist/ec-shards.common.js.map +0 -1
- package/dist/ec-shards.css +0 -1
- package/dist/ec-shards.umd.js +0 -26167
- package/dist/ec-shards.umd.js.map +0 -1
- package/dist/ec-shards.umd.min.js +0 -6
- package/dist/ec-shards.umd.min.js.map +0 -1
- package/src/components/tiptap/tiptap.vue +0 -246
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
@click="handleClick">
|
|
9
9
|
|
|
10
10
|
<ecs-icon v-if="icon" :type="icon" />
|
|
11
|
-
<ecs-icon v-if="icon && sticker" :type="`sticker-${sticker}`" class="sticker"
|
|
11
|
+
<ecs-icon v-if="icon && sticker" :type="`sticker-${sticker}`" class="sticker" size="16" />
|
|
12
12
|
<slot></slot>
|
|
13
13
|
<span v-if="shortcut" class="shortcut">{{ shortcut }}</span>
|
|
14
14
|
<span class="hover" />
|
|
@@ -316,10 +316,10 @@
|
|
|
316
316
|
padding-left: 1px;
|
|
317
317
|
|
|
318
318
|
.ecs-tab-button{
|
|
319
|
-
border-radius: 0 0
|
|
319
|
+
border-radius: 0 0 $border-radius-small $border-radius-small;
|
|
320
320
|
color: $color-gray-14;
|
|
321
321
|
height: 38px;
|
|
322
|
-
padding: 0
|
|
322
|
+
padding: 0 $spacing-25;
|
|
323
323
|
text-align: center;
|
|
324
324
|
font-size: $type-scale-3-font-size;
|
|
325
325
|
line-height: 26px;
|
|
@@ -330,6 +330,11 @@
|
|
|
330
330
|
border-top-color: $color-gray-4;
|
|
331
331
|
position: relative;
|
|
332
332
|
margin-left: -1px;
|
|
333
|
+
transition: .2s background-color, .2s border-color, .2s color;
|
|
334
|
+
|
|
335
|
+
&:hover{
|
|
336
|
+
background-color: $color-gray-3;
|
|
337
|
+
}
|
|
333
338
|
|
|
334
339
|
&:before{
|
|
335
340
|
content: "";
|
|
@@ -338,7 +343,7 @@
|
|
|
338
343
|
background: $color-gray-4;
|
|
339
344
|
border-radius: 1px;
|
|
340
345
|
position: absolute;
|
|
341
|
-
|
|
346
|
+
left: 0;
|
|
342
347
|
}
|
|
343
348
|
|
|
344
349
|
&:after{
|
|
@@ -354,18 +359,24 @@
|
|
|
354
359
|
&.show{
|
|
355
360
|
color: $color-blue-10;
|
|
356
361
|
font-weight: $font-weight-medium;
|
|
362
|
+
letter-spacing: -.015em;
|
|
357
363
|
background: #FFFFFF;
|
|
358
364
|
border: 1px solid $color-gray-4;
|
|
359
365
|
border-top-color: #FFF;
|
|
366
|
+
z-index: 1;
|
|
360
367
|
|
|
361
368
|
&:after{
|
|
362
369
|
transform: scale(1);
|
|
363
370
|
opacity: 1;
|
|
364
371
|
}
|
|
372
|
+
|
|
373
|
+
+ .ecs-tab-button:before{
|
|
374
|
+
opacity: 0;
|
|
375
|
+
}
|
|
365
376
|
}
|
|
366
377
|
|
|
367
378
|
&.show:before,
|
|
368
|
-
&:
|
|
379
|
+
&:first-child:before{
|
|
369
380
|
opacity: 0;
|
|
370
381
|
}
|
|
371
382
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<div v-if="state =='repairing'" class="repairing" />
|
|
6
6
|
<div v-if="state =='corrupted'" class="corrupted" />
|
|
7
7
|
<span v-if="state == 'loading'" class="loading">
|
|
8
|
-
<ecs-icon type="loading"
|
|
8
|
+
<ecs-icon type="loading" size="18px" color="#202127" />
|
|
9
9
|
</span>
|
|
10
10
|
</div>
|
|
11
11
|
</template>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
:collapsed="!isVisible"
|
|
16
16
|
@click="toggleCollapse" />
|
|
17
17
|
|
|
18
|
-
<ecs-icon v-if="icon" :type="icon" :color="iconColor" :
|
|
18
|
+
<ecs-icon v-if="icon" :type="icon" :color="iconColor" :size="iconSize" />
|
|
19
19
|
|
|
20
20
|
<div v-if="$slots.control" class="ecs-tree-view-entry-control">
|
|
21
21
|
<!-- @slot Slot for a selection control, such as a checkbox or radiobutton. -->
|
|
@@ -6,6 +6,35 @@ import { Meta } from '@storybook/addon-docs/blocks';
|
|
|
6
6
|
Changelog
|
|
7
7
|
</h1>
|
|
8
8
|
|
|
9
|
+
## Version 3.3.0 (12 January 2023)
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
- Added new EcsFillIcon component
|
|
14
|
+
- Added `login-key` icon
|
|
15
|
+
- Added EU flag icon
|
|
16
|
+
- Added new `placeholder` prop support for EcsSelect component
|
|
17
|
+
- Added new EcsSeparator component
|
|
18
|
+
|
|
19
|
+
## Version 3.2.0 (11 January 2023)
|
|
20
|
+
|
|
21
|
+
### Fixes
|
|
22
|
+
|
|
23
|
+
Reverted all EcsPagination updates and moved these changes to the @next branch, until infinite scroll feature can be implemented. This means 3.2.0 can be used again as a stable release for current application development.
|
|
24
|
+
|
|
25
|
+
## Version 3.1.5 (undefined)
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
- Added item range indicator to EcsPagination component
|
|
30
|
+
|
|
31
|
+
### Fixes
|
|
32
|
+
|
|
33
|
+
- Overwrite margins of dialog
|
|
34
|
+
- Only add EcsDialog to the DOM when it's being shown
|
|
35
|
+
- Fix subtle layout shift on EcsTabButton of type `sheet`.
|
|
36
|
+
- Replaced soon to be deprecated `width` and `height` props of EcsIcon with `size`.
|
|
37
|
+
|
|
9
38
|
## Version 3.1.2 (15 December 2022)
|
|
10
39
|
|
|
11
40
|
### Fixes
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import EcsContextMenu from '@components/context-menu/context-menu';
|
|
2
|
+
import EcsDataGrid from '@components/data-grid/data-grid';
|
|
3
|
+
import EcsDataGridGroup from '@components/data-grid/data-grid-group';
|
|
4
|
+
import EcsDataGridRow from '@components/data-grid/data-grid-row';
|
|
5
|
+
import EcsDataGridHeadCell from '@components/data-grid/data-grid-head-cell';
|
|
6
|
+
import EcsDataGridCell from '@components/data-grid/data-grid-cell';
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
title: 'Action/Context Menu',
|
|
10
|
+
component: EcsContextMenu
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const contextMenu = () => ({
|
|
14
|
+
components: { EcsContextMenu, EcsDataGrid, EcsDataGridGroup, EcsDataGridRow, EcsDataGridHeadCell, EcsDataGridCell },
|
|
15
|
+
template: `<div style="width: 100%;">
|
|
16
|
+
<ecs-data-grid :striped="false">
|
|
17
|
+
<template slot="head">
|
|
18
|
+
<ecs-data-grid-head-cell name="First" :width="200" />
|
|
19
|
+
<ecs-data-grid-head-cell name="Second" :width="200" />
|
|
20
|
+
<ecs-data-grid-head-cell name="Third" :width="200" />
|
|
21
|
+
<ecs-data-grid-head-cell name="Fourth" :width="200" />
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<ecs-data-grid-row v-for="index in 6" :key="index" mouse-event="contextmenu" @click="(e) => handleClick(e, index)">
|
|
25
|
+
<ecs-data-grid-cell column="first" :width="200">Right click me</ecs-data-grid-cell>
|
|
26
|
+
<ecs-data-grid-cell column="second" :width="200">Right click me</ecs-data-grid-cell>
|
|
27
|
+
<ecs-data-grid-cell column="third" :width="200">Right click me</ecs-data-grid-cell>
|
|
28
|
+
<ecs-data-grid-cell column="fourth" :width="200">Right click me</ecs-data-grid-cell>
|
|
29
|
+
</ecs-data-grid-row>
|
|
30
|
+
</ecs-data-grid>
|
|
31
|
+
|
|
32
|
+
<ecs-context-menu
|
|
33
|
+
element-id="rowMenu"
|
|
34
|
+
ref="contextMenu"
|
|
35
|
+
:options="options"
|
|
36
|
+
></ecs-context-menu>
|
|
37
|
+
</div>`,
|
|
38
|
+
data() {
|
|
39
|
+
return {
|
|
40
|
+
options: [
|
|
41
|
+
{
|
|
42
|
+
name: 'Duplicate',
|
|
43
|
+
slug: 'duplicate',
|
|
44
|
+
icon: 'evidence'
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Edit',
|
|
48
|
+
slug: 'edit',
|
|
49
|
+
icon: 'edit',
|
|
50
|
+
disabled: true
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
type: 'divider',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'Delete',
|
|
57
|
+
slug: 'delete',
|
|
58
|
+
type: 'danger',
|
|
59
|
+
icon: 'delete'
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
methods: {
|
|
65
|
+
handleClick(event, item) {
|
|
66
|
+
this.$refs.contextMenu.showMenu(event, item)
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
})
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import EcsFillIcon from '@components/fill-icon/fill-icon';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Icons/Fill Icon',
|
|
5
|
+
component: EcsFillIcon
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const fillIcon = () => ({
|
|
9
|
+
components: { EcsFillIcon },
|
|
10
|
+
template: `<main>
|
|
11
|
+
<ecs-fill-icon type="login-sso-azure" />
|
|
12
|
+
<ecs-fill-icon type="login-sso-okta" />
|
|
13
|
+
<ecs-fill-icon type="login-email" />
|
|
14
|
+
<ecs-fill-icon type="login-email-mfa" :width="23" />
|
|
15
|
+
</main>`,
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export const fillIconSizes = () => ({
|
|
19
|
+
components: { EcsFillIcon },
|
|
20
|
+
template: `<main>
|
|
21
|
+
<ecs-fill-icon type="login-sso-azure" :width="40" />
|
|
22
|
+
<ecs-fill-icon type="login-sso-azure" :height="40" :width="40" />
|
|
23
|
+
</main>`,
|
|
24
|
+
});
|
|
@@ -7,5 +7,10 @@ export default {
|
|
|
7
7
|
|
|
8
8
|
export const flag = () => ({
|
|
9
9
|
components: { EcsFlag },
|
|
10
|
-
template: `<
|
|
10
|
+
template: `<main>
|
|
11
|
+
<ecs-flag code="us" />
|
|
12
|
+
<ecs-flag code="eu" />
|
|
13
|
+
<ecs-flag code="gb" />
|
|
14
|
+
<ecs-flag code="au" />
|
|
15
|
+
</main>`,
|
|
11
16
|
});
|
|
@@ -35,18 +35,3 @@ export const tabPagination = () => ({
|
|
|
35
35
|
</ecs-pagination>
|
|
36
36
|
</div>`,
|
|
37
37
|
});
|
|
38
|
-
|
|
39
|
-
export const infiniteScroll = () => ({
|
|
40
|
-
components: { EcsPagination, EcsTabBar, EcsTabButton },
|
|
41
|
-
template: `<div style="display:flex;flex-direction:column;height: 200px;justify-content: flex-end;">
|
|
42
|
-
<ecs-pagination type="infinite" :current-page="2" :total-pages="10" loading>
|
|
43
|
-
<template slot="tabs">
|
|
44
|
-
<ecs-tab-bar type="sheet">
|
|
45
|
-
<ecs-tab-button show>Settings</ecs-tab-button>
|
|
46
|
-
<ecs-tab-button>Calendar</ecs-tab-button>
|
|
47
|
-
<ecs-tab-button>Versions</ecs-tab-button>
|
|
48
|
-
</ecs-tab-bar>
|
|
49
|
-
</template>
|
|
50
|
-
</ecs-pagination>
|
|
51
|
-
</div>`,
|
|
52
|
-
});
|
|
@@ -89,3 +89,19 @@ export const selectNaked = () => ({
|
|
|
89
89
|
</ecs-select>
|
|
90
90
|
</div>`,
|
|
91
91
|
});
|
|
92
|
+
|
|
93
|
+
export const selectPlaceholders = () => ({
|
|
94
|
+
components: { EcsSelect },
|
|
95
|
+
template: `<div>
|
|
96
|
+
<ecs-select placeholder="Placeholder" class="mb-4">
|
|
97
|
+
<option value="admin">Admin</option>
|
|
98
|
+
<option value="basic">Basic</option>
|
|
99
|
+
<option value="guest">Guest</option>
|
|
100
|
+
</ecs-select>
|
|
101
|
+
<ecs-select placeholder="Placeholder" subtle>
|
|
102
|
+
<option value="admin">Admin</option>
|
|
103
|
+
<option value="basic">Basic</option>
|
|
104
|
+
<option value="guest">Guest</option>
|
|
105
|
+
</ecs-select>
|
|
106
|
+
</div>`,
|
|
107
|
+
});
|
|
Binary file
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import EcsSeparator from '@components/separator/separator';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Layout/Separator',
|
|
5
|
+
component: EcsSeparator
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const separator = () => ({
|
|
9
|
+
components: { EcsSeparator },
|
|
10
|
+
template: `<div>
|
|
11
|
+
<ecs-separator :margin="20" />
|
|
12
|
+
<ecs-separator type="vertical" height="24px" />
|
|
13
|
+
</div>`,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export const separatorStrengths = () => ({
|
|
17
|
+
components: { EcsSeparator },
|
|
18
|
+
template: `<div>
|
|
19
|
+
<ecs-separator strength="soft" :margin="20" />
|
|
20
|
+
<ecs-separator strength="medium" :margin="20" />
|
|
21
|
+
<ecs-separator strength="strong" :margin="20" />
|
|
22
|
+
</div>`,
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export const separatorMargins = () => ({
|
|
26
|
+
components: { EcsSeparator },
|
|
27
|
+
template: `<div>
|
|
28
|
+
<ecs-separator :margin="20" />
|
|
29
|
+
<ecs-separator type="vertical" :margin="20" height="24px" />
|
|
30
|
+
<ecs-separator :margin="[20, 40]" />
|
|
31
|
+
<ecs-separator type="vertical" :margin="[8, 16, 12, 20]" height="24px" />
|
|
32
|
+
</div>`,
|
|
33
|
+
});
|