@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.
Files changed (74) hide show
  1. package/dist/css/app.99f04c26.css +1 -0
  2. package/dist/favicon.ico +0 -0
  3. package/dist/img/EU.d180ac2d.svg +1 -0
  4. package/dist/img/login-email-mfa.33936706.svg +1 -0
  5. package/dist/img/login-email.4b81db3a.svg +1 -0
  6. package/dist/img/login-sso-azure.a49f3fe4.svg +1 -0
  7. package/dist/img/login-sso-okta.55de1bbd.svg +1 -0
  8. package/dist/index.html +1 -0
  9. package/dist/js/app.e6219346.js +2 -0
  10. package/dist/js/app.e6219346.js.map +1 -0
  11. package/dist/js/chunk-vendors.786a1bc3.js +12 -0
  12. package/dist/js/chunk-vendors.786a1bc3.js.map +1 -0
  13. package/package.json +4 -2
  14. package/src/assets/icons/login-key.svg +7 -0
  15. package/src/assets/images/fill-icons/login-email-mfa.svg +1 -0
  16. package/src/assets/images/fill-icons/login-email.svg +1 -0
  17. package/src/assets/images/fill-icons/login-sso-azure.svg +1 -0
  18. package/src/assets/images/fill-icons/login-sso-okta.svg +1 -0
  19. package/src/assets/images/flags/EU.svg +1 -0
  20. package/src/components/action-toolbar/action-toolbar.vue +2 -2
  21. package/src/components/alert/alert.vue +2 -2
  22. package/src/components/breadcrumb-button/breadcrumb-button.vue +2 -2
  23. package/src/components/button/button.vue +2 -2
  24. package/src/components/button-context/button-context.vue +1 -1
  25. package/src/components/button-more/button-more.vue +1 -1
  26. package/src/components/button-table/button-table.vue +1 -1
  27. package/src/components/button-toolbar/button-toolbar.vue +4 -4
  28. package/src/components/button-toolbar-icon/button-toolbar-icon.vue +1 -1
  29. package/src/components/collection-control/collection-control.vue +1 -1
  30. package/src/components/context-menu/context-menu.vue +215 -0
  31. package/src/components/data-card/data-card.vue +1 -1
  32. package/src/components/data-grid/data-grid-row.vue +25 -1
  33. package/src/components/dialog/dialog.vue +24 -46
  34. package/src/components/document-state/document-state.vue +1 -1
  35. package/src/components/empty-state/empty-state.vue +1 -1
  36. package/src/components/excerpt-snippet/excerpt-snippet.vue +1 -1
  37. package/src/components/fill-icon/fill-icon.vue +59 -0
  38. package/src/components/flag/flag.vue +5 -0
  39. package/src/components/index.js +6 -0
  40. package/src/components/info-tooltip/info-tooltip.vue +1 -1
  41. package/src/components/input-addon/input-addon.vue +1 -1
  42. package/src/components/input-clear/input-clear.vue +1 -1
  43. package/src/components/input-search/input-search.vue +1 -1
  44. package/src/components/multiselect-option/multiselect-option.vue +1 -1
  45. package/src/components/multiselect-search-token/multiselect-search-token.vue +2 -2
  46. package/src/components/multiselect-token/multiselect-token.vue +1 -1
  47. package/src/components/overlay/overlay.vue +1 -1
  48. package/src/components/pagination/pagination.vue +138 -105
  49. package/src/components/party-entry/party-entry.vue +2 -2
  50. package/src/components/popover-header/popover-header.vue +1 -1
  51. package/src/components/segment/segment.vue +1 -1
  52. package/src/components/select/select.vue +24 -3
  53. package/src/components/separator/separator.vue +93 -0
  54. package/src/components/sequence-map-button/sequence-map-button.vue +1 -1
  55. package/src/components/tab-button/tab-button.vue +16 -5
  56. package/src/components/transcript-state/transcript-state.vue +1 -1
  57. package/src/components/tree-list-item/tree-list-item.vue +1 -1
  58. package/src/stories/Changelog.stories.mdx +29 -0
  59. package/src/stories/context-menu/context-menu.stories.js +69 -0
  60. package/src/stories/fill-icon/fill-icon.stories.js +24 -0
  61. package/src/stories/flag/flag.stories.js +6 -1
  62. package/src/stories/pagination/pagination.stories.js +0 -15
  63. package/src/stories/select/select.stories.js +16 -0
  64. package/src/stories/separator/.DS_Store +0 -0
  65. package/src/stories/separator/separator.stories.js +33 -0
  66. package/dist/demo.html +0 -10
  67. package/dist/ec-shards.common.js +0 -26157
  68. package/dist/ec-shards.common.js.map +0 -1
  69. package/dist/ec-shards.css +0 -1
  70. package/dist/ec-shards.umd.js +0 -26167
  71. package/dist/ec-shards.umd.js.map +0 -1
  72. package/dist/ec-shards.umd.min.js +0 -6
  73. package/dist/ec-shards.umd.min.js.map +0 -1
  74. package/src/components/tiptap/tiptap.vue +0 -246
@@ -1,246 +0,0 @@
1
- <template>
2
- <div class="ecs-tiptap">
3
- <bubble-menu
4
- class="ecs-bubble-menu"
5
- :tippy-options="{ duration: 100 }"
6
- :editor="editor"
7
- v-if="editor"
8
- >
9
- <button @click="editor.chain().focus().toggleBold().run()" :class="{ 'is-active': editor.isActive('bold') }" title="Bold">
10
- <ecs-icon type="format-bold" width="26px" height="26px" />
11
- </button>
12
- <button @click="editor.chain().focus().toggleItalic().run()" :class="{ 'is-active': editor.isActive('italic') }" title="Italic">
13
- <ecs-icon type="format-italic" width="26px" height="26px" />
14
- </button>
15
- <button @click="editor.chain().focus().toggleUnderline().run()" :class="{ 'is-active': editor.isActive('underline') }" title="Underline">
16
- <ecs-icon type="format-underline" width="26px" height="26px" />
17
- </button>
18
- <button @click="setLink" :class="{ 'is-active': editor.isActive('link') }" title="Link">
19
- <ecs-icon type="link" width="26px" height="26px" />
20
- </button>
21
- <button @click="editor.chain().focus().unsetLink().run()" v-if="editor.isActive('link')" title="Remove Link">
22
- <ecs-icon type="link-remove" width="26px" height="26px" />
23
- </button>
24
- <button @click="editor.chain().focus().toggleBlockquote().run()" :class="{ 'is-active': editor.isActive('blockquote') }" title="Quote">
25
- <ecs-icon type="format-blockquote" width="26px" height="26px" />
26
- </button>
27
- <button @click="editor.chain().focus().toggleOrderedList().run()" :class="{ 'is-active': editor.isActive('orderedList') }" title="Ordered List">
28
- <ecs-icon type="format-ol" width="26px" height="26px" />
29
- </button>
30
- <button @click="editor.chain().focus().toggleBulletList().run()" :class="{ 'is-active': editor.isActive('bulletList') }" title="Bullet List">
31
- <ecs-icon type="format-ul" width="26px" height="26px" />
32
- </button>
33
- </bubble-menu>
34
-
35
- <editor-content :editor="editor" />
36
- </div>
37
- </template>
38
-
39
- <script>
40
- import EcsIcon from '../icon/icon'
41
-
42
- import {
43
- Editor,
44
- EditorContent,
45
- BubbleMenu,
46
- FloatingMenu,
47
- } from '@tiptap/vue-2'
48
-
49
- import Underline from '@tiptap/extension-underline'
50
- import Placeholder from '@tiptap/extension-placeholder'
51
- import Link from '@tiptap/extension-link'
52
- import Blockquote from '@tiptap/extension-blockquote'
53
- import OrderedList from '@tiptap/extension-ordered-list'
54
- import BulletList from '@tiptap/extension-bullet-list'
55
- import ListItem from '@tiptap/extension-list-item'
56
-
57
- import { defaultExtensions } from '@tiptap/starter-kit'
58
-
59
- export default {
60
- components: {
61
- EcsIcon,
62
- EditorContent,
63
- BubbleMenu,
64
- FloatingMenu
65
- },
66
-
67
- props: {
68
- placeholder: {
69
- type: String,
70
- default: 'Write something…'
71
- }
72
- },
73
-
74
- data() {
75
- return {
76
- editor: null,
77
- }
78
- },
79
-
80
- mounted() {
81
- this.editor = new Editor({
82
- extensions: [
83
- ...defaultExtensions(),
84
- Underline,
85
- Placeholder.configure({
86
- placeholder: this.placeholder,
87
- }),
88
- Link,
89
- Blockquote,
90
- OrderedList,
91
- BulletList,
92
- ListItem,
93
- ],
94
- content: ``
95
- })
96
- },
97
-
98
- methods: {
99
- setLink() {
100
- const url = window.prompt('Enter URL')
101
- this.editor.chain().focus().setLink({ href: url }).run()
102
- },
103
- },
104
-
105
- beforeDestroy() {
106
- this.editor.destroy()
107
- }
108
- }
109
- </script>
110
-
111
- <style lang="scss">
112
- @import "../../tokens/build/scss/tokens.scss";
113
- @import "../mixins/svg-uri";
114
-
115
- .ProseMirror{
116
- font-size: $type-scale-3-font-size;
117
- line-height: 1.4em;
118
- padding: 10px;
119
-
120
- > *:first-child{
121
- margin-top: 0;
122
- }
123
-
124
- > *:last-child{
125
- margin-bottom: 0;
126
- }
127
-
128
- p{
129
- margin: 1em 0;
130
- }
131
-
132
- i{
133
- font-style: italic;
134
- }
135
-
136
- u{
137
- text-decoration: underline;
138
- }
139
-
140
- b, strong{
141
- font-weight: 600;
142
- }
143
-
144
- ul{
145
- list-style-type: disc;
146
- padding-left: 16px;
147
- margin: 1em 0;
148
- }
149
-
150
- ol{
151
- padding-left: 16px;
152
- margin: 1em 0;
153
- }
154
-
155
- ul li, ol li{
156
- > *:first-child{
157
- margin-top: 0;
158
- }
159
-
160
- > *:last-child{
161
- margin-bottom: 0;
162
- }
163
- }
164
-
165
- blockquote{
166
- border-left: 3px solid rgba($color-gray-6, .4);
167
- color: $color-gray-10;
168
- margin: 1em 0;
169
- padding-left: 16px;
170
- }
171
-
172
- a{
173
- color: $color-blue-10;
174
- text-decoration: none;
175
- transition: .2s;
176
-
177
- &:after{
178
- opacity: .7;
179
- transition: .2s;
180
- }
181
-
182
- &:hover{
183
- color: darken($color-blue-10, 5%);
184
-
185
- &:after{
186
- opacity: 1;
187
- }
188
- }
189
-
190
- &[href*="//"]:not([href*="everchron.com"]):after,
191
- &[href*="//"]:not([href*="everchron.me"]):after,
192
- &[href*="//"]:not([href*="everchron.co.uk"]):after,
193
- &[href*="//"]:not([href*="everchron.com.au"]):after,
194
- &[href*="//"]:not([href*="everchron.wtf"]):after{
195
- content: "";
196
- background: svg-uri('<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8"><path fill="#858E9E" d="M7.625,3.5 C7.524,3.5 7.434,3.459 7.366,3.395 C7.364,3.393 7.361,3.393 7.359,3.391 L6.427,2.458 L4.067,4.818 C3.823,5.061 3.427,5.061 3.183,4.818 C2.939,4.574 2.939,4.178 3.183,3.934 L5.542,1.575 L4.609,0.641 C4.607,0.639 4.607,0.636 4.605,0.634 C4.541,0.566 4.5,0.476 4.5,0.375 C4.5,0.168 4.668,0 4.875,0 L7.5,0 C7.776,0 8,0.224 8,0.5 L8,3.125 C8,3.332 7.832,3.5 7.625,3.5 Z M1,2.25 L1,6.75 C1,6.888 1.112,7 1.25,7 L5.75,7 C5.888,7 6,6.888 6,6.75 L6,4 L7,5 L7,7 C7,7.553 6.553,8 6,8 L1,8 C0.448,8 0,7.553 0,7 L0,2 C0,1.448 0.448,1 1,1 L3,1 L4,2 L1.25,2 C1.112,2 1,2.112 1,2.25 Z"/></svg>');
197
- width: 8px;
198
- display: inline-block;
199
- height: 8px;
200
- margin-left: 4px;
201
- }
202
- }
203
- }
204
-
205
- .ProseMirror p.is-editor-empty:first-child::before {
206
- content: attr(data-placeholder);
207
- float: left;
208
- color: $color-gray-6;
209
- pointer-events: none;
210
- height: 0;
211
- }
212
-
213
- .ecs-bubble-menu {
214
- display: flex;
215
- align-items: center;
216
- background-color: rgba($color-gray-13, .97);
217
- padding: 4px;
218
- border-radius: $border-radius-medium;
219
-
220
- button {
221
- border: none;
222
- background: none;
223
- color: #FFF;
224
- opacity: 0.6;
225
- transition: .2s;
226
- padding: 0;
227
- display: flex;
228
- border-radius: $border-radius-small;
229
- margin-right: 4px;
230
-
231
- &:last-child{
232
- margin-right: 0;
233
- }
234
-
235
- &:hover{
236
- opacity: .8;
237
- background: rgba(#000, .5);
238
- }
239
-
240
- &.is-active{
241
- opacity: 1;
242
- background: rgba(#000, .5);
243
- }
244
- }
245
- }
246
- </style>