atom-nuxt 1.4.18 → 1.4.20

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atomengine/atom-nuxt",
3
3
  "configKey": "atomNuxt",
4
- "version": "1.4.18",
4
+ "version": "1.4.20",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
@@ -7,9 +7,11 @@ import CrudFilterList from "./CrudFilterList.vue";
7
7
  import { computed, ref, watch, onMounted, onBeforeUnmount, toRaw, nextTick } from "vue";
8
8
  import { useDebounceFn } from "@vueuse/core";
9
9
  import { useListenerService } from "../composables/useListenerService";
10
+ import { useDisplay } from "vuetify";
10
11
  import CrudFormDialog from "./CrudFormDialog.vue";
11
12
  import CrudErrorDisplay from "./CrudErrorDisplay.vue";
12
13
  const { parseQuery, stringifyQuery, cloneDeep } = useCrudConverters();
14
+ const { mdAndUp } = useDisplay();
13
15
  const props = defineProps({
14
16
  filtersTitle: {
15
17
  type: String,
@@ -147,6 +149,12 @@ const props = defineProps({
147
149
  required: false,
148
150
  default: ""
149
151
  },
152
+ filtersWidth: {
153
+ type: Number,
154
+ required: false,
155
+ default: 250,
156
+ validator: (value) => value > 0
157
+ },
150
158
  dialogStyle: {
151
159
  type: String,
152
160
  required: false,
@@ -505,7 +513,16 @@ const exportAction = async () => {
505
513
  </slot>
506
514
  <div :class="contentClasses">
507
515
  <v-row>
508
- <v-col v-if="!hideFilters && (filters.length > 0 || isInitialLoad)" cols="12" md="3">
516
+ <v-col
517
+ v-if="!hideFilters && (filters.length > 0 || isInitialLoad)"
518
+ cols="12"
519
+ md="auto"
520
+ :style="{
521
+ width: mdAndUp ? `${filtersWidth}px` : undefined,
522
+ maxWidth: mdAndUp ? `${filtersWidth}px` : undefined,
523
+ flex: mdAndUp ? '0 0 auto' : undefined
524
+ }"
525
+ >
509
526
  <div>
510
527
  <Transition name="fade" mode="out-in">
511
528
  <div v-if="isInitialLoad" key="skeleton">
@@ -527,7 +544,13 @@ const exportAction = async () => {
527
544
  </Transition>
528
545
  </div>
529
546
  </v-col>
530
- <v-col cols="12" :md="hideFilters || (filters.length === 0 && !isInitialLoad) ? '12' : '9'">
547
+ <v-col
548
+ cols="12"
549
+ md="auto"
550
+ :style="{
551
+ flex: mdAndUp ? '1 1 auto' : undefined
552
+ }"
553
+ >
531
554
  <v-progress-linear :active="listPending && !isInitialLoad" indeterminate color="primary"></v-progress-linear>
532
555
  <div class="">
533
556
  <Transition name="fade" mode="out-in">
@@ -29,6 +29,7 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
29
29
  resultClasses: string;
30
30
  fullScreenDialog: boolean;
31
31
  contentClasses: string;
32
+ filtersWidth: number;
32
33
  title?: string | undefined;
33
34
  loaderKey?: string | undefined;
34
35
  initialItem?: Record<string, any> | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atom-nuxt",
3
- "version": "1.4.18",
3
+ "version": "1.4.20",
4
4
  "description": "My new Nuxt module",
5
5
  "repository": "atomengine/atom-nuxt",
6
6
  "license": "MIT",