@everchron/ec-shards 5.0.39 → 5.0.40

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 (84) hide show
  1. package/README.md +1 -0
  2. package/dist/ec-shards.common.js +78 -70
  3. package/dist/ec-shards.common.js.map +1 -1
  4. package/dist/ec-shards.css +1 -1
  5. package/dist/ec-shards.umd.js +78 -70
  6. package/dist/ec-shards.umd.js.map +1 -1
  7. package/dist/ec-shards.umd.min.js +2 -2
  8. package/dist/ec-shards.umd.min.js.map +1 -1
  9. package/package.json +1 -1
  10. package/src/.DS_Store +0 -0
  11. package/src/assets/.DS_Store +0 -0
  12. package/src/assets/images/.DS_Store +0 -0
  13. package/src/assets/images/flags/.DS_Store +0 -0
  14. package/src/components/data-grid/data-grid-cell.vue +8 -2
  15. package/src/components/data-grid/data-grid-head-cell.vue +7 -3
  16. package/src/components/dialog/dialog.vue +18 -5
  17. package/src/stories/collection-control/.DS_Store +0 -0
  18. package/src/stories/comment/.DS_Store +0 -0
  19. package/src/stories/data-card/.DS_Store +0 -0
  20. package/src/stories/data-grid/data-grid-cell.stories.js +9 -0
  21. package/src/stories/data-list/.DS_Store +0 -0
  22. package/src/stories/dialog/.DS_Store +0 -0
  23. package/src/stories/dialog/dialog.stories.js +45 -3
  24. package/src/stories/dialog-header/.DS_Store +0 -0
  25. package/src/stories/directory-entry/.DS_Store +0 -0
  26. package/src/stories/document-state/.DS_Store +0 -0
  27. package/src/stories/dropzone/.DS_Store +0 -0
  28. package/src/stories/empty-state/.DS_Store +0 -0
  29. package/src/stories/excerpt-snippet/.DS_Store +0 -0
  30. package/src/stories/file-icon/.DS_Store +0 -0
  31. package/src/stories/file-list-item/.DS_Store +0 -0
  32. package/src/stories/flag/.DS_Store +0 -0
  33. package/src/stories/form-group/.DS_Store +0 -0
  34. package/src/stories/form-headline/.DS_Store +0 -0
  35. package/src/stories/form-set/.DS_Store +0 -0
  36. package/src/stories/formatted/.DS_Store +0 -0
  37. package/src/stories/icon/.DS_Store +0 -0
  38. package/src/stories/index-toolbar/.DS_Store +0 -0
  39. package/src/stories/info-tooltip/.DS_Store +0 -0
  40. package/src/stories/input/.DS_Store +0 -0
  41. package/src/stories/input-group/.DS_Store +0 -0
  42. package/src/stories/input-search/.DS_Store +0 -0
  43. package/src/stories/jumper-document/.DS_Store +0 -0
  44. package/src/stories/jumper-index/.DS_Store +0 -0
  45. package/src/stories/jumper-page/.DS_Store +0 -0
  46. package/src/stories/layout-data-table/.DS_Store +0 -0
  47. package/src/stories/layout-directory/.DS_Store +0 -0
  48. package/src/stories/layout-index/.DS_Store +0 -0
  49. package/src/stories/map/.DS_Store +0 -0
  50. package/src/stories/modal/.DS_Store +0 -0
  51. package/src/stories/multiselect-option/.DS_Store +0 -0
  52. package/src/stories/multiselect-search-token/.DS_Store +0 -0
  53. package/src/stories/multiselect-token/.DS_Store +0 -0
  54. package/src/stories/overlay/.DS_Store +0 -0
  55. package/src/stories/pagination/.DS_Store +0 -0
  56. package/src/stories/party-entry/.DS_Store +0 -0
  57. package/src/stories/popover-header/.DS_Store +0 -0
  58. package/src/stories/popover-list/.DS_Store +0 -0
  59. package/src/stories/popover-list-headline/.DS_Store +0 -0
  60. package/src/stories/popover-list-item/.DS_Store +0 -0
  61. package/src/stories/progress/.DS_Store +0 -0
  62. package/src/stories/quicklink/.DS_Store +0 -0
  63. package/src/stories/radiobutton/.DS_Store +0 -0
  64. package/src/stories/rating-favorability/.DS_Store +0 -0
  65. package/src/stories/rating-star-read/.DS_Store +0 -0
  66. package/src/stories/rating-star-write/.DS_Store +0 -0
  67. package/src/stories/scroll-container/.DS_Store +0 -0
  68. package/src/stories/section/.DS_Store +0 -0
  69. package/src/stories/segment/.DS_Store +0 -0
  70. package/src/stories/select/.DS_Store +0 -0
  71. package/src/stories/separator/.DS_Store +0 -0
  72. package/src/stories/sequence-map-button/.DS_Store +0 -0
  73. package/src/stories/sidebar/.DS_Store +0 -0
  74. package/src/stories/skeleton-loader/.DS_Store +0 -0
  75. package/src/stories/sortbutton/.DS_Store +0 -0
  76. package/src/stories/sticker/.DS_Store +0 -0
  77. package/src/stories/structured-content/.DS_Store +0 -0
  78. package/src/stories/switch/.DS_Store +0 -0
  79. package/src/stories/tabs/.DS_Store +0 -0
  80. package/src/stories/tag/.DS_Store +0 -0
  81. package/src/stories/toast/.DS_Store +0 -0
  82. package/src/stories/transcript-state/.DS_Store +0 -0
  83. package/src/stories/tree-list/.DS_Store +0 -0
  84. package/src/stories/video/.DS_Store +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everchron/ec-shards",
3
- "version": "5.0.39",
3
+ "version": "5.0.40",
4
4
  "private": false,
5
5
  "description": "Everchron Shards UI Library",
6
6
  "repository": "https://github.com/everchron/ec-shards.git",
package/src/.DS_Store ADDED
Binary file
Binary file
Binary file
@@ -2,6 +2,7 @@
2
2
  <div class="ecs-data-grid-cell" :style="[fixedStyles]" :class="[fixedLeft ? 'fixed-left' : '', fixedLeftLast ? 'fixed-left-last' : '', fixedRight ? 'fixed-right' : '']">
3
3
  <div v-if="fixedRight" class="shadow" :class="fixedRight ? 'left' : ''" />
4
4
  <div class="ecs-data-grid-cell-inner" :style="[widthStyles, paddingStyles]" :data-column="computedId" :data-test="computedId">
5
+ <div v-if="firstNonStaticCell" class="first-cell-spacer" />
5
6
  <!-- @slot Tabe cell content slot. -->
6
7
  <slot></slot>
7
8
  </div>
@@ -56,7 +57,7 @@
56
57
  padding: {
57
58
  type: String
58
59
  },
59
- /* puts extra padding-left on the first non-static column in the index */
60
+ /** Adds extra 8px padding-left to the first non-static column in the index. */
60
61
  firstNonStaticCell: {
61
62
  type: Boolean
62
63
  }
@@ -91,7 +92,7 @@
91
92
  if (this.padding && this.padding !== '')
92
93
  return { padding: this.padding }
93
94
  else
94
- return this.firstNonStaticCell ? { padding: '8px 8px 8px 16px' } : { padding: '8px' }
95
+ return { padding: '8px' }
95
96
  },
96
97
 
97
98
  computedId(){
@@ -179,5 +180,10 @@
179
180
  .ecs-data-grid-row.added .ecs-data-grid-cell{
180
181
  animation: highlight-to-white 8s ease forwards;
181
182
  }
183
+
184
+ .first-cell-spacer{
185
+ flex-shrink: 0;
186
+ width: $spacing-10;
187
+ }
182
188
  </style>
183
189
 
@@ -2,6 +2,7 @@
2
2
  <div class="ecs-data-grid-head-cell" :style="[fixedStyles]" :class="[fixedLeft ? 'fixed-left' : '', fixedLeftLast ? 'fixed-left-last' : '', fixedRight ? 'fixed-right' : '']">
3
3
  <div v-if="fixedRight" class="shadow" :class="fixedRight ? 'left' : ''" />
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
+ <div v-if="firstNonStaticCell" class="first-cell-spacer" />
5
6
  <ecs-icon v-if="icon" :type="icon" size="20" color="#202127" :title="name" />
6
7
  <ecs-select v-else-if="select" @change="$emit('selection', $event.target.value)" type="invisible">
7
8
  <option v-for="(option, index) in select" :key="index" :selected="option.selected" :value="option.value">{{ option.name }}</option>
@@ -98,7 +99,7 @@
98
99
  type: Boolean,
99
100
  default: false
100
101
  },
101
- /** Determines if the column gets extra left padding. */
102
+ /** Adds extra 8px padding-left to the first non-static column in the index. */
102
103
  firstNonStaticCell: {
103
104
  type: Boolean,
104
105
  default: false
@@ -136,8 +137,6 @@
136
137
  return { padding: '0 8px 0 4px' }
137
138
  else if (this.select && this.select !== '')
138
139
  return { padding: '0 8px 0 0' }
139
- else if (this.firstNonStaticCell)
140
- return { padding: '0 8px 0 16px' }
141
140
  else
142
141
  return { padding: '0 8px' }
143
142
  },
@@ -334,6 +333,11 @@
334
333
  background: linear-gradient(90deg, rgba($color-gray-15, .12) 0%, rgba($color-gray-15, .04) 35%, rgba($color-gray-15, 0) 100%);
335
334
  }
336
335
  }
336
+
337
+ .first-cell-spacer{
338
+ flex-shrink: 0;
339
+ width: $spacing-10;
340
+ }
337
341
  </style>
338
342
 
339
343
  <style lang="scss">
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <dialog v-if="lazyLoad" ref="dialog" :class="[large ? 'ecs-dialog-large' : '']" class="ecs-dialog">
2
+ <dialog v-if="lazyLoad" ref="dialog" :class="'ecs-dialog-' + size" class="ecs-dialog">
3
3
  <div class="ecs-dialog-body">
4
4
  <slot></slot>
5
5
  </div>
@@ -19,11 +19,17 @@
19
19
  type: Boolean,
20
20
  default: false
21
21
  },
22
- /** Renders a wider dialog. Should be used for dialogs that contain forms with more than one input, or larger elements such as a folder picker. */
23
- large: {
22
+ /** If set `true`, the dialog element will render where it's placed inside the DOM. This can be useful for dialogs that should not "escape" their parent elements, e.g. when a dialog is launched within a larger modal. **Note:** dialogs shown in place have no backdrop element and need to be positioned manually via CSS. */
23
+ showInPlace: {
24
24
  type: Boolean,
25
25
  default: false
26
26
  },
27
+ /** Determines the size of the dialog. */
28
+ size: {
29
+ type: String,
30
+ validator: v => ['sml', 'md', 'lg'].includes(v),
31
+ default: 'sml'
32
+ },
27
33
  /** When enabled, this will stack buttons inside the footer, instead of aligning them next to each other. Should be used when a dialog footer contains button with extremely long labels, or more than 2 buttons. */
28
34
  stackedFooter: {
29
35
  type: Boolean,
@@ -53,7 +59,10 @@
53
59
  if(this.isShown){
54
60
  this.lazyLoad = true
55
61
  this.$nextTick(() => {
56
- this.$refs.dialog.showModal()
62
+ if(this.showInPlace)
63
+ this.$refs.dialog.show()
64
+ else
65
+ this.$refs.dialog.showModal()
57
66
  })
58
67
  } else {
59
68
  this.$refs.dialog.close()
@@ -118,7 +127,11 @@
118
127
  background: rgba(49,52,57, .5);
119
128
  }
120
129
 
121
- &-large{
130
+ &-md{
131
+ max-width: 380px;
132
+ }
133
+
134
+ &-lg{
122
135
  max-width: 540px;
123
136
 
124
137
  .ecs-dialog-body{
Binary file
Binary file
@@ -26,3 +26,12 @@ export const cellCustomPadding = () => ({
26
26
  </ecs-data-grid-row>
27
27
  </ecs-data-grid>`,
28
28
  });
29
+
30
+ export const firstCellPadding = () => ({
31
+ components: { EcsDataGrid, EcsDataGridGroup, EcsDataGridRow, EcsDataGridHeadCell, EcsDataGridCell },
32
+ template: `<ecs-data-grid>
33
+ <ecs-data-grid-row>
34
+ <ecs-data-grid-cell column="first" :width="200" padding="8px 20px" first-non-static-cell>Cell</ecs-data-grid-cell>
35
+ </ecs-data-grid-row>
36
+ </ecs-data-grid>`,
37
+ });
Binary file
Binary file
@@ -27,16 +27,58 @@ export const dialogPrompt = () => ({
27
27
  </div>`
28
28
  });
29
29
 
30
- export const dialogLarge = () => ({
30
+ export const dialogSizes = () => ({
31
31
  components: { EcsDialog, EcsDialogHeader, EcsButtonDialog },
32
32
  data() {
33
33
  return {
34
- showdialog: false
34
+ showdialogSmall: false,
35
+ showdialogMedium: false,
36
+ showdialogLarge: false
35
37
  }
36
38
  },
37
39
  template: `<div>
40
+ <button @click="showdialogSmall = !showdialogSmall">Open Small</button>
41
+ <ecs-dialog size="sml" :show="showdialogSmall">
42
+ <ecs-dialog-header>Choose Attachment</ecs-dialog-header>
43
+ <p>Select documents to attach to.</p>
44
+ <template slot="actions">
45
+ <ecs-button-dialog @click="showdialogSmall = !showdialogSmall">Cancel</ecs-button-dialog>
46
+ <ecs-button-dialog type="confirm" icon="download">Confirm</ecs-button-dialog>
47
+ </template>
48
+ </ecs-dialog>
49
+
50
+ <button @click="showdialogMedium = !showdialogMedium">Open Medium</button>
51
+ <ecs-dialog size="md" :show="showdialogMedium">
52
+ <ecs-dialog-header>Choose Attachment</ecs-dialog-header>
53
+ <p>Select documents to attach to.</p>
54
+ <template slot="actions">
55
+ <ecs-button-dialog @click="showdialogMedium = !showdialogMedium">Cancel</ecs-button-dialog>
56
+ <ecs-button-dialog type="confirm" icon="download">Confirm</ecs-button-dialog>
57
+ </template>
58
+ </ecs-dialog>
59
+
60
+ <button @click="showdialogLarge = !showdialogLarge">Open Large</button>
61
+ <ecs-dialog size="lg" :show="showdialogLarge">
62
+ <ecs-dialog-header>Choose Attachment</ecs-dialog-header>
63
+ <p>Select documents to attach to.</p>
64
+ <template slot="actions">
65
+ <ecs-button-dialog @click="showdialogLarge = !showdialogLarge">Cancel</ecs-button-dialog>
66
+ <ecs-button-dialog type="confirm" icon="download">Confirm</ecs-button-dialog>
67
+ </template>
68
+ </ecs-dialog>
69
+ </div>`
70
+ });
71
+
72
+ export const dialogInPlace = () => ({
73
+ components: { EcsDialog, EcsDialogHeader, EcsButtonDialog },
74
+ data() {
75
+ return {
76
+ showdialog: false
77
+ }
78
+ },
79
+ template: `<div style="height:400px">
38
80
  <button @click="showdialog = !showdialog">Open</button>
39
- <ecs-dialog id="example2" large :show="showdialog">
81
+ <ecs-dialog show-in-place :show="showdialog">
40
82
  <ecs-dialog-header>Choose Attachment</ecs-dialog-header>
41
83
  <p>Select documents to attach to.</p>
42
84
  <template slot="actions">
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