flameresttable 1.0.61 → 1.0.62

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/Table/Table.vue +12 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flameresttable",
3
- "version": "1.0.61",
3
+ "version": "1.0.62",
4
4
  "main": "./src/plugin.ts",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,7 +24,7 @@
24
24
  <!--<div>-->
25
25
 
26
26
  <!-- ЧЕКБОКСЫ -->
27
- <div class="w-[21px] align-middle col-span-1">
27
+ <div class="w-[21px] align-middle col-span-1" :style="'grid-column:' + 0">
28
28
  <label class="checkbox" v-if="Table.opts.rowSelectors">
29
29
  <input type='checkbox' @change="CheckboxSelectionChanged($event, true)">
30
30
  <span class='indicator'></span>
@@ -32,22 +32,24 @@
32
32
  </div>
33
33
 
34
34
 
35
- <template v-for="column in Table.columns">
35
+ <template v-for="(column, key, index) in Table.columns">
36
36
  <div v-if="column.Table.isShow" :key="'cheader_' + column.name"
37
37
  :class="' defaultHeader ' + column.Table.classesHeader"
38
- class=" col-span-1 align-middle border-r border-r-slate-100 px-2">
38
+ class=" col-span-1 align-middle border-r border-r-slate-100 px-2" :style="'grid-column:' + (index + 2)">
39
39
  <span>{{ column.Table.titleCustom !== null ? (column as any).Table.titleCustom(column) : column.Table.title !==
40
40
  '' ?
41
41
  column.Table.title : column.title !== '' ? column.title :
42
42
  column.name }}</span>
43
43
  </div>
44
44
  </template>
45
- <div v-if="opts.Edit.can" class=" col-span-1 border-r border-r-slate-100 px-2">
46
- <button class="bg-green-600 invisible">
45
+ <div v-if="opts.Edit.can" class=" col-span-1 border-r border-r-slate-100 px-2"
46
+ :style="'grid-column:' + (columnCount() - 1)">
47
+ <button class=" bg-green-600 invisible">
47
48
 
48
49
  </button>
49
50
  </div>
50
- <div v-if="opts.Remove.can" class=" col-span-1 border-r border-r-slate-100 px-2">
51
+ <div v-if="opts.Remove.can" class=" col-span-1 border-r border-r-slate-100 px-2"
52
+ :style="'grid-column:' + (columnCount())">
51
53
  <button class="bg-green-600 invisible">
52
54
 
53
55
  </button>
@@ -55,7 +57,7 @@
55
57
  <!--</div>-->
56
58
 
57
59
  <!-- СТРОКИ-->
58
- <template v-for="(row) in (Table.Rows.rows)">
60
+ <template v-for="( row ) in (Table.Rows.rows) ">
59
61
  <template v-if="true">
60
62
 
61
63
  <!-- ЧЕКБОКСЫ -->
@@ -68,7 +70,7 @@
68
70
  </label>
69
71
  </div>
70
72
 
71
- <template v-for="column in Table.columns">
73
+ <template v-for=" column in Table.columns ">
72
74
  <div v-if="column.Table.isShow" :key="'tc_' + column.name + '_row_' + (row as any).id"
73
75
  :class="' defaultCell ' + column.Table.classes"
74
76
  class=" col-span-1 align-middle border-r border-r-slate-100 px-2 last:border-r-0 last:pr-0"
@@ -123,7 +125,7 @@
123
125
  <slot name="header" />
124
126
 
125
127
  <!-- КОЛОНКИ ТАБЛИЦЫ-->
126
- <label v-for="column in ColumnNames" v-show="Table.columns[column].Popup.isShow" :key="'c' + column"
128
+ <label v-for=" column in ColumnNames " v-show="Table.columns[column].Popup.isShow" :key="'c' + column"
127
129
  class="flex items-stretch justify-center w-full my-1 ml-2">
128
130
 
129
131
  <!-- Заголовок -->
@@ -150,7 +152,7 @@
150
152
  <div v-if="Table.columns[column].Popup.popupType === 'selector'"
151
153
  class="flex-1 mr-5 w-full flex flex-col self-stretch"><select v-model="Table.columns[column].Popup.model"
152
154
  class="h-full self-stretch py-1 px-2 w-full outline-none border border-slate-100">
153
- <option v-for="(selectorVal, selectorKey) in Table.columns[column].Popup.Selector.values"
155
+ <option v-for="( selectorVal, selectorKey ) in Table.columns[column].Popup.Selector.values "
154
156
  :key="'sel_' + selectorKey"
155
157
  :value="getSelector(Table.columns[column].Popup.Selector.values, selectorKey, selectorVal)[1]">{{
156
158
  getSelector(Table.columns[column].Popup.Selector.values, selectorKey, selectorVal)[0] }}</option>
@@ -455,7 +457,6 @@ export default defineComponent({
455
457
  <style scoped lang="scss">
456
458
  .grid-container {
457
459
  display: grid;
458
- grid-template-columns: repeat(var(--column-count), 1fr);
459
460
  }
460
461
 
461
462
  .no-wrap-cell {