comand-component-library 4.1.74 → 4.1.76

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "4.1.74",
3
+ "version": "4.1.76",
4
4
  "license": "GPL-3.0-only",
5
5
  "author": "CoManD-UI",
6
6
  "private": false,
@@ -297,7 +297,7 @@ export default {
297
297
  iconClass: "icon-register",
298
298
  tooltip: ""
299
299
  },
300
- text: "Forgot password"
300
+ text: "Create account"
301
301
  }
302
302
  }
303
303
  },
@@ -350,6 +350,7 @@ export default {
350
350
  &.open {
351
351
  > ul {
352
352
  display: block;
353
+
353
354
  > li {
354
355
  &.open {
355
356
  > ul {
@@ -2,6 +2,7 @@
2
2
  <div
3
3
  :class="['cmd-table-wrapper', {'collapsed': !showTableData, 'full-width': fullWidth, 'has-caption': hasCaption, 'has-overflow': hasOverflow}]">
4
4
  <div v-if="collapsible || userCanToggleWidth" class="button-wrapper">
5
+ <!-- begin button to toggle table-width -->
5
6
  <a v-if="userCanToggleWidth" class="button"
6
7
  href="#" @click.prevent="fullWidth = !fullWidth"
7
8
  :title="iconToggleWidth.tooltip"
@@ -10,6 +11,9 @@
10
11
  <CmdIcon :iconClass="iconToggleWidth.iconClass" :type="iconToggleWidth.iconType"/>
11
12
  <!-- end CmdIcon -->
12
13
  </a>
14
+ <!-- end button to toggle table-width -->
15
+
16
+ <!-- begin button to collapse table-content -->
13
17
  <a v-if="collapsible" class="button"
14
18
  href="#" @click.prevent="showTableData = !showTableData"
15
19
  :title="showTableData ? iconCollapse.tooltip : iconExpand.tooltip"
@@ -19,6 +23,7 @@
19
23
  :type="showTableData ? iconCollapse.iconType : iconExpand.iconType"/>
20
24
  <!-- end CmdIcon -->
21
25
  </a>
26
+ <!-- end button to collapse table-content -->
22
27
  </div>
23
28
  <div class="inner-wrapper" ref="innerWrapper" @scroll="updatePosition">
24
29
  <!-- begin CmdSlideButton -->
@@ -31,36 +36,40 @@
31
36
 
32
37
  <!-- begin table -->
33
38
  <table ref="table" :class="{'full-width': fullWidth}">
34
- <caption v-if="tableData.caption?.text || caption?.text" :class="{ hidden: hideCaption }">
35
- {{ caption?.text || tableData.caption?.text }}
36
- </caption>
37
- <thead>
38
- <tr>
39
- <th v-for="(tablehead, indexHead) in tableData.thead" :key="indexHead">
40
- {{ tablehead }}
41
- </th>
42
- </tr>
43
- </thead>
39
+ <slot name="table-top">
40
+ <caption v-if="tableData.caption?.text || caption?.text" :class="{ hidden: hideCaption }">
41
+ {{ caption?.text || tableData.caption?.text }}
42
+ </caption>
43
+ </slot>
44
+ <slot name="table-head">
45
+ <thead>
46
+ <tr>
47
+ <th v-for="(tablehead, indexHead) in tableData.thead" :key="indexHead" v-html="tablehead"></th>
48
+ </tr>
49
+ </thead>
50
+ </slot>
44
51
  <transition :name="useTransition ? 'fade' : null">
45
- <tbody v-show="showTableData" aria-expanded="true">
46
- <tr :class="{'active' : tableData.rowIndexHighlighted === indexRows}"
47
- v-for="(tablerows, indexRows) in tableData.tbody" :key="indexRows">
48
- <td :class="{'active' : tableData.columnIndexHighlighted === indexData}"
49
- v-for="(tabledata, indexData) in tablerows" :key="indexData">
50
- {{ tabledata }}
51
- </td>
52
- </tr>
53
- </tbody>
52
+ <slot name="table-body">
53
+ <tbody v-show="showTableData" aria-expanded="true">
54
+ <tr :class="{'active' : tableData.rowIndexHighlighted === indexRows}"
55
+ v-for="(tablerows, indexRows) in tableData.tbody" :key="indexRows">
56
+ <td :class="{'active' : tableData.columnIndexHighlighted === indexData}"
57
+ v-for="(tabledata, indexData) in tablerows" :key="indexData" v-html="tabledata">
58
+ </td>
59
+ </tr>
60
+ </tbody>
61
+ </slot>
54
62
  </transition>
55
63
  <transition :name="useTransition ? 'fade' : null">
56
- <tfoot v-if="tableData.tfoot && tableData.tfoot.length && showTableData" aria-expanded="true">
57
- <tr>
58
- <td :class="{'active' : tableData.columnIndexHighlighted === indexFoot}"
59
- v-for="(tablefoot, indexFoot) in tableData.tfoot" :key="indexFoot">
60
- {{ tablefoot }}
61
- </td>
62
- </tr>
63
- </tfoot>
64
+ <slot name="table-foot">
65
+ <tfoot v-if="tableData.tfoot && tableData.tfoot.length && showTableData" aria-expanded="true">
66
+ <tr>
67
+ <td :class="{'active' : tableData.columnIndexHighlighted === indexFoot}"
68
+ v-for="(tablefoot, indexFoot) in tableData.tfoot" :key="indexFoot" v-html="tablefoot">
69
+ </td>
70
+ </tr>
71
+ </tfoot>
72
+ </slot>
64
73
  </transition>
65
74
  </table>
66
75
  <!-- end table -->