@everchron/ec-shards 0.8.17 → 0.8.20
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 -65
- package/dist/ec-shards.common.js.map +1 -1
- package/dist/ec-shards.css +1 -1
- package/dist/ec-shards.umd.js +68 -65
- 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/button-dialog/button-dialog.vue +3 -2
- package/src/components/swatches-picker/swatches-picker.vue +12 -8
- package/src/.DS_Store +0 -0
- package/src/assets/.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-item/.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/sequence-map-button/.DS_Store +0 -0
- package/src/stories/sidebar/.DS_Store +0 -0
- package/src/stories/sidebar-footer/.DS_Store +0 -0
- package/src/stories/sidebar-header/.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/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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<button class="ecs-dialog-footer-button" :class="[typeClass, loading ? `loading` : '']" @click="$emit('click', $event)">
|
|
2
|
+
<button class="ecs-dialog-footer-button" :class="[typeClass, loading ? `loading` : '']" @click="$emit('click', $event)" :disabled="disabled">
|
|
3
3
|
<ecs-icon v-if="icon || loading" :type="iconType" />
|
|
4
4
|
<slot></slot>
|
|
5
5
|
</button>
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
validator: v => ['danger', 'confirm', null].includes(v),
|
|
24
24
|
default: null
|
|
25
25
|
},
|
|
26
|
-
loading: Boolean
|
|
26
|
+
loading: Boolean,
|
|
27
|
+
disabled: Boolean
|
|
27
28
|
},
|
|
28
29
|
|
|
29
30
|
computed: {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
/** Sets the selected color value. Must be a HEX value that exists in the swatches (data) list. */
|
|
25
25
|
selected: {
|
|
26
26
|
type: String,
|
|
27
|
-
validator: v => ['#F9DF00', '#F3A100', '#B7EA80', '#48E4C2', '#489DFF', '#B877F0', '#FD78FD', '#
|
|
27
|
+
validator: v => ['#F9DF00', '#F3A100', '#B7EA80', '#48E4C2', '#489DFF', '#B877F0', '#FD78FD', '#858E9F', '#227FD3', '#C59465', '#5DAF00', '#A4927A', '#95989C', '#D78B21', '#EE5452', 'null', null].includes(v)
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
{ title: 'Blue', color: '#489DFF' },
|
|
39
39
|
{ title: 'Indigo', color: '#B877F0' },
|
|
40
40
|
{ title: 'Pink', color: '#FD78FD' },
|
|
41
|
-
{ title: 'Red', color: '#EE5452' },
|
|
42
41
|
{ title: 'Brown', color: '#C59465' },
|
|
43
|
-
{ title: '
|
|
42
|
+
{ title: 'Gray', color: '#858E9F' },
|
|
43
|
+
{ title: 'Red', color: '#EE5452' },
|
|
44
44
|
{ title: 'Dark Blue', color: '#227FD3' },
|
|
45
|
-
{ title: '
|
|
45
|
+
{ title: 'Green', color: '#5DAF00' },
|
|
46
46
|
{ title: 'Brass', color: '#A4927A' },
|
|
47
47
|
{ title: 'Silver', color: '#95989C' },
|
|
48
|
-
{ title: 'Gold', color: '#D78B21' }
|
|
48
|
+
{ title: 'Gold', color: '#D78B21' }
|
|
49
49
|
],
|
|
50
50
|
selectedColor: this.selected,
|
|
51
51
|
selectedTitle: ''
|
|
@@ -62,25 +62,29 @@
|
|
|
62
62
|
|
|
63
63
|
methods: {
|
|
64
64
|
emitSelected(){
|
|
65
|
-
/** Returns the selected color value and title as Object.
|
|
65
|
+
/** Returns the selected color value and title as Object.
|
|
66
66
|
this.$emit('input', {
|
|
67
67
|
color: this.selectedColor,
|
|
68
68
|
title: this.selectedTitle
|
|
69
69
|
})
|
|
70
|
+
*/
|
|
71
|
+
this.$emit('input', this.selectedColor)
|
|
70
72
|
}
|
|
71
73
|
},
|
|
72
74
|
|
|
75
|
+
/*
|
|
73
76
|
mounted () {
|
|
74
|
-
if(this.selected)
|
|
77
|
+
if (this.selected)
|
|
75
78
|
this.selectedTitle = this.swatches[this.swatches.findIndex(x => x.color === this.selectedColor)].title
|
|
76
79
|
this.emitSelected()
|
|
77
80
|
},
|
|
81
|
+
*/
|
|
78
82
|
|
|
79
83
|
watch: {
|
|
80
84
|
selectedColor(){
|
|
81
85
|
this.selectedTitle = this.swatches[this.swatches.findIndex(x => x.color === this.selectedColor)].title
|
|
82
86
|
this.emitSelected()
|
|
83
|
-
}
|
|
87
|
+
}
|
|
84
88
|
}
|
|
85
89
|
}
|
|
86
90
|
</script>
|
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
|