| 
1 | 1 | <template>  | 
2 |  | -  <div>  | 
 | 2 | +  <div class="dt-container">  | 
3 | 3 |     <div class="table-filters">  | 
4 | 4 |       <slot  | 
5 | 5 |         name="tableFilter"  | 
 | 
11 | 11 |           v-if="hasFilters"  | 
12 | 12 |           :filters="filters"  | 
13 | 13 |           :on-change="changeFilterValue"  | 
 | 14 | +          :translations="translations"  | 
14 | 15 |         />  | 
15 | 16 |       </slot>  | 
16 | 17 | 
 
  | 
 | 
24 | 25 |             v-if="search && search.global"  | 
25 | 26 |             :value="search.global.value"  | 
26 | 27 |             :on-change="changeGlobalSearchValue"  | 
 | 28 | +            :translations="translations"  | 
27 | 29 |           />  | 
28 | 30 |         </div>  | 
29 | 31 |       </slot>  | 
 | 
40 | 42 |           :rows="search"  | 
41 | 43 |           :new="newSearch"  | 
42 | 44 |           :on-add="enableSearch"  | 
 | 45 | +          :translations="translations"  | 
43 | 46 |         />  | 
44 | 47 |       </slot>  | 
45 | 48 | 
 
  | 
 | 
53 | 56 |           v-if="hasColumns"  | 
54 | 57 |           :columns="columns"  | 
55 | 58 |           :on-change="changeColumnStatus"  | 
 | 59 | +          :translations="translations"  | 
56 | 60 |         />  | 
57 | 61 |       </slot>  | 
58 | 62 |     </div>  | 
 | 
72 | 76 |         :new="newSearch"  | 
73 | 77 |         :on-remove="disableSearch"  | 
74 | 78 |         :on-change="changeSearchValue"  | 
 | 79 | +        :translations="translations"  | 
75 | 80 |       />  | 
76 | 81 |     </slot>  | 
77 | 82 | 
 
  | 
@@ -125,14 +130,61 @@ export default {  | 
125 | 130 | };  | 
126 | 131 | </script>  | 
127 | 132 | <style>  | 
128 |  | -:root {  | 
 | 133 | +.dt-container {  | 
129 | 134 |   --dt-text-opacity: 1;  | 
130 | 135 |   --dt-bg-opacity: 1;  | 
131 | 136 |   --dt-divide-y-reverse: 0;  | 
132 | 137 |   --dt-divide-opacity: 1;  | 
133 | 138 |   --dt-border-opacity: 1;  | 
134 | 139 |   --dt-input-border-color: 209, 213, 219;  | 
135 | 140 | }  | 
 | 141 | +
  | 
 | 142 | +.dt-container [type="button"],  | 
 | 143 | +.dt-container [type="reset"],  | 
 | 144 | +.dt-container [type="submit"],  | 
 | 145 | +.dt-container button {  | 
 | 146 | +  /* -webkit-appearance: button; */  | 
 | 147 | +  -webkit-appearance: none;  | 
 | 148 | +  /* background-color: transparent; */  | 
 | 149 | +  background-image: none;  | 
 | 150 | +}  | 
 | 151 | +.dt-container input {  | 
 | 152 | +  padding-top: 0.5rem;  | 
 | 153 | +  padding-right: 0.75rem;  | 
 | 154 | +  padding-bottom: 0.5rem;  | 
 | 155 | +  padding-left: 0.75rem;  | 
 | 156 | +}  | 
 | 157 | +
  | 
 | 158 | +.dt-container .sr-only {  | 
 | 159 | +  position: absolute;  | 
 | 160 | +  width: 1px;  | 
 | 161 | +  height: 1px;  | 
 | 162 | +  padding: 0;  | 
 | 163 | +  margin: -1px;  | 
 | 164 | +  overflow: hidden;  | 
 | 165 | +  clip: rect(0, 0, 0, 0);  | 
 | 166 | +  white-space: nowrap;  | 
 | 167 | +  border-width: 0;  | 
 | 168 | +}  | 
 | 169 | +
  | 
 | 170 | +.dt-container select {  | 
 | 171 | +  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");  | 
 | 172 | +  background-position: right 0.5rem center;  | 
 | 173 | +  background-repeat: no-repeat;  | 
 | 174 | +  background-size: 1.5em 1.5em;  | 
 | 175 | +  padding-right: 2.5rem;  | 
 | 176 | +  print-color-adjust: exact;  | 
 | 177 | +  appearance: none;  | 
 | 178 | +  background-color: #fff;  | 
 | 179 | +  padding-bottom: 0.5rem;  | 
 | 180 | +  padding-left: 0.75rem;  | 
 | 181 | +  font-size: 1rem;  | 
 | 182 | +  line-height: 1.5rem;  | 
 | 183 | +  padding-top: 0.5rem;  | 
 | 184 | +  border-width: 0;  | 
 | 185 | +  --dt-shadow: 0 0 #0000;  | 
 | 186 | +  text-transform: none;  | 
 | 187 | +}  | 
136 | 188 | </style>  | 
137 | 189 | 
 
  | 
138 | 190 | <style scoped>  | 
 | 
0 commit comments