classcard-ui 0.2.640 → 0.2.643
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/classcard-ui.common.js +84 -63
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.css +1 -1
- package/dist/classcard-ui.umd.js +84 -63
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CEditor/CEditor.vue +5 -0
- package/src/components/CIconDropdown/CIconDropdown.vue +7 -1
- package/src/components/CTable/CTable.vue +26 -6
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
:options="editorOption"
|
|
11
11
|
@change="onChange($event)"
|
|
12
12
|
@ready="onReady($event)"
|
|
13
|
+
:disabled="disabled"
|
|
13
14
|
></quill-editor>
|
|
14
15
|
<p v-if="helpText" class="mt-2 text-sm text-gray-500">
|
|
15
16
|
{{ helpText }}
|
|
@@ -46,6 +47,10 @@ export default {
|
|
|
46
47
|
placeholder: {
|
|
47
48
|
type: String,
|
|
48
49
|
},
|
|
50
|
+
disabled: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: false,
|
|
53
|
+
},
|
|
49
54
|
},
|
|
50
55
|
methods: {
|
|
51
56
|
onChange(params) {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<slot></slot>
|
|
4
|
-
<div
|
|
4
|
+
<div
|
|
5
|
+
:class="`${isDropDownRelative ? 'relative' : ''} inline-block text-left`"
|
|
6
|
+
>
|
|
5
7
|
<div>
|
|
6
8
|
<button
|
|
7
9
|
type="white"
|
|
@@ -85,6 +87,10 @@ export default {
|
|
|
85
87
|
action: {
|
|
86
88
|
type: Function,
|
|
87
89
|
},
|
|
90
|
+
isDropDownRelative: {
|
|
91
|
+
type: Boolean,
|
|
92
|
+
default: true,
|
|
93
|
+
},
|
|
88
94
|
},
|
|
89
95
|
data() {
|
|
90
96
|
return {
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<div
|
|
3
|
+
<div
|
|
4
|
+
slot="table-actions"
|
|
5
|
+
v-if="tableActions"
|
|
6
|
+
class="mb-4 rounded-lg bg-gray-50 p-3"
|
|
7
|
+
>
|
|
4
8
|
<div class="flex justify-between">
|
|
5
9
|
<div v-if="searching">
|
|
6
10
|
<c-input
|
|
@@ -19,11 +23,15 @@
|
|
|
19
23
|
<div>
|
|
20
24
|
<button
|
|
21
25
|
@click="handleToggle"
|
|
22
|
-
class="
|
|
26
|
+
class="inline-flex w-full justify-center rounded-md border border-gray-200 bg-white px-2 py-2 text-sm font-medium shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-600 focus:ring-offset-2"
|
|
23
27
|
aria-haspopup="true"
|
|
24
28
|
aria-expanded="true"
|
|
25
29
|
>
|
|
26
|
-
<c-icon
|
|
30
|
+
<c-icon
|
|
31
|
+
name="view-board"
|
|
32
|
+
type="solid"
|
|
33
|
+
class="h-5 w-5 text-gray-400"
|
|
34
|
+
></c-icon>
|
|
27
35
|
<c-icon
|
|
28
36
|
name="chevron-down"
|
|
29
37
|
type="solid"
|
|
@@ -88,7 +96,9 @@
|
|
|
88
96
|
}`"
|
|
89
97
|
mode="remote"
|
|
90
98
|
ref="my-table"
|
|
91
|
-
:styleClass="
|
|
99
|
+
:styleClass="
|
|
100
|
+
showLoader ? 'vgt-table opacity-50 pointer-events-none' : 'vgt-table'
|
|
101
|
+
"
|
|
92
102
|
:row-style-class="rowStyleClassFn"
|
|
93
103
|
min-height="400px"
|
|
94
104
|
:globalSearch="true"
|
|
@@ -365,8 +375,12 @@ export default {
|
|
|
365
375
|
},
|
|
366
376
|
// array of rows after drag and drop
|
|
367
377
|
rearrange(oldIndex, newIndex) {
|
|
368
|
-
const movedItem = this.reorderedArray.find(
|
|
369
|
-
|
|
378
|
+
const movedItem = this.reorderedArray.find(
|
|
379
|
+
(item, index) => index === oldIndex
|
|
380
|
+
);
|
|
381
|
+
const remainingItems = this.reorderedArray.filter(
|
|
382
|
+
(item, index) => index !== oldIndex
|
|
383
|
+
);
|
|
370
384
|
const reorderedItems = [
|
|
371
385
|
...remainingItems.slice(0, newIndex),
|
|
372
386
|
movedItem,
|
|
@@ -485,4 +499,10 @@ table.vgt-table tr.clickable:hover > th.vgt-checkbox-col {
|
|
|
485
499
|
.vgt-table th.sortable:hover .sortingIcon {
|
|
486
500
|
visibility: visible;
|
|
487
501
|
}
|
|
502
|
+
.vgt-responsive {
|
|
503
|
+
position: static;
|
|
504
|
+
}
|
|
505
|
+
.vgt-wrap {
|
|
506
|
+
position: static;
|
|
507
|
+
}
|
|
488
508
|
</style>
|