spark-grid-vue3 0.0.75 → 0.0.76

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spark-grid-vue3",
3
- "version": "0.0.75",
3
+ "version": "0.0.76",
4
4
  "description": "",
5
5
  "files": [
6
6
  "src"
@@ -1,22 +1,20 @@
1
1
  <template>
2
2
  <div class="grid-row grid-search-row">
3
3
  <div class="spark-grid-datatable-header-cell form-group-sm" v-if="props.grid.config.checkboxEnabled"
4
- data-label="Selecionar"
5
- :style="DataTableStyler.getCheckboxColumnStyles()"></div>
4
+ data-label="Selecionar" :style="DataTableStyler.getCheckboxColumnStyles()"></div>
6
5
  <div class="spark-grid-datatable-header-cell form-group-sm" v-if="props.grid.config.radioButtonSelectionEnabled"
7
- data-label="Selecionar"
8
- :style="DataTableStyler.getCheckboxColumnStyles()"></div>
6
+ data-label="Selecionar" :style="DataTableStyler.getCheckboxColumnStyles()"></div>
9
7
 
10
- <div class="spark-grid-datatable-header-cell form-group-sm" v-for="column in grid.getColumns()" :key="column.name"
11
- :data-label="column.label"
8
+ <div class="spark-grid-datatable-header-cell form-group-sm" v-for="column in grid.getColumns()"
9
+ :key="column.name" :data-label="column.label"
12
10
  :style="DataTableStyler.getSearchRowColumnStyle(column, props.grid)">
13
11
  <DataTableSearchField v-if="column.searchEnabled ?? true" :type="column.searchType"
14
12
  :search-config="column.searchConfig" :name="column.filterName ?? column.name"
15
- :disabled="isDisabled(column)" :uuid="grid.uuid" @change="value => onFilterChanged(column, value)" />
13
+ :disabled="isDisabled(column)" :uuid="grid.uuid" :emits-events="true"
14
+ @change="value => onFilterChanged(column, value)" />
16
15
  </div>
17
16
 
18
- <div :style="DataTableStyler.getActionRowColumn(props.grid)" v-if="props.grid.config.actions"
19
- data-label="Ações"
17
+ <div :style="DataTableStyler.getActionRowColumn(props.grid)" v-if="props.grid.config.actions" data-label="Ações"
20
18
  class="spark-grid-datatable-header-cell form-group-sm"></div>
21
19
 
22
20
  <!-- <th v-if="hasActions" class="text-center"></th>-->
@@ -4,4 +4,6 @@
4
4
 
5
5
  <script setup lang="ts">
6
6
  import DataTableSearchField from "./DataTableSearchField.vue"
7
+
8
+ defineOptions({ inheritAttrs: false })
7
9
  </script>
@@ -7,7 +7,7 @@
7
7
 
8
8
  <div class="grid-search-row-cell" v-for="column in columns" :key="column.name"
9
9
  :style="GridStyler.getSearchRowColumnStyle(column, props.grid)">
10
- <GridSearchField v-if="column.searchEnabled ?? true" :type="column.searchType"
10
+ <DataTableSearchField v-if="column.searchEnabled ?? true" :type="column.searchType"
11
11
  :search-config="column.searchConfig" :name="column.filterName ?? column.name"
12
12
  :disabled="isDisabled(column)" :uuid="grid.uuid" :emits-events="true"
13
13
  @change="value => onFilterChanged(column, value)" />
@@ -15,14 +15,12 @@
15
15
 
16
16
  <div :style="GridStyler.getActionRowColumn(props.grid)" v-if="props.grid.config.actions"
17
17
  class="grid-search-row-cell"></div>
18
-
19
- <!-- <th v-if="hasActions" class="text-center"></th>-->
20
18
  </div>
21
19
  </template>
22
20
 
23
21
  <script setup lang="ts">
24
22
  import type { GridComponent, Column } from "../types/types"
25
- import GridSearchField from "./GridSearchField.vue"
23
+ import DataTableSearchField from "./DataTableSearchField.vue"
26
24
  import { computed } from "vue"
27
25
  import { GridStyler } from "../utils/GridStyler"
28
26