atom-nuxt 1.3.3 → 1.3.5

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.3.3",
4
+ "version": "1.3.5",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
@@ -170,10 +170,10 @@ const dialogTransition = computed(() => {
170
170
  v-model="dialogOpen"
171
171
  :fullscreen="shouldUseFullscreen"
172
172
  z-index="2000"
173
- :max-width="effectiveDialogStyle === 'default' && isLarge && !shouldUseFullscreen ? effectiveDialogSize : ''"
174
- :width="effectiveDialogStyle === 'leaf' && !shouldUseFullscreen ? effectiveDialogSize : ''"
173
+ :max-width="!props.fullScreen && effectiveDialogStyle === 'default' && isLarge && !shouldUseFullscreen ? effectiveDialogSize : ''"
174
+ :width="!props.fullScreen && effectiveDialogStyle === 'leaf' && !shouldUseFullscreen ? effectiveDialogSize : ''"
175
175
  :transition="dialogTransition"
176
- :content-class="effectiveDialogStyle === 'leaf' ? 'leaf-dialog' : ''"
176
+ :content-class="effectiveDialogStyle === 'leaf' && !props.fullScreen ? 'leaf-dialog' : ''"
177
177
  >
178
178
  <v-card :class="['bg-white d-flex flex-column pa-0', effectiveDialogStyle === 'leaf' ? 'leaf-card' : '']">
179
179
  <v-toolbar :class="effectiveDialogStyle === 'leaf' ? 'leaf-toolbar' : ''">
@@ -11,6 +11,20 @@ import CrudFormDialog from "./CrudFormDialog.vue";
11
11
  import CrudErrorDisplay from "./CrudErrorDisplay.vue";
12
12
  const { parseQuery, stringifyQuery, cloneDeep } = useCrudConverters();
13
13
  const props = defineProps({
14
+ filtersTitle: {
15
+ type: String,
16
+ required: false,
17
+ default() {
18
+ return "Filters";
19
+ }
20
+ },
21
+ resultsTitle: {
22
+ type: String,
23
+ required: false,
24
+ default() {
25
+ return "Results";
26
+ }
27
+ },
14
28
  filterClasses: {
15
29
  type: String,
16
30
  required: false,
@@ -417,6 +431,9 @@ const exportAction = async () => {
417
431
  <v-row>
418
432
  <v-col v-if="!hideFilters && filters.length > 0" cols="12" md="3">
419
433
  <div>
434
+ <slot name="filtersTitle">
435
+ <h3 v-if="filtersTitle" class="mb-2">{{ filtersTitle }}</h3>
436
+ </slot>
420
437
  <slot name="filters" :filters="filters">
421
438
  <div :class="filterClasses">
422
439
  <crud-filter-list v-model="filterValues" :filters="filters"></crud-filter-list>
@@ -426,6 +443,9 @@ const exportAction = async () => {
426
443
  </v-col>
427
444
  <v-col cols="12" :md="hideFilters || filters.length === 0 ? '12' : '9'">
428
445
  <div class="">
446
+ <slot name="resultsTitle">
447
+ <h3 v-if="resultsTitle" class="mb-2">{{ resultsTitle }}</h3>
448
+ </slot>
429
449
  <slot v-if="!listPending && totalItems === 0 && !hasListErrors" name="empty" :create-action="createForm">
430
450
  <v-alert icon="mdi-playlist-remove" type="info" class="pa-5">
431
451
  {{ noResultsText }}
@@ -22,6 +22,8 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
22
22
  viewDialogSize: string | number;
23
23
  allowCreate: boolean;
24
24
  hideFilters: boolean;
25
+ filtersTitle: string;
26
+ resultsTitle: string;
25
27
  filterClasses: string;
26
28
  resultClasses: string;
27
29
  fullScreenDialog: boolean;
@@ -52,10 +54,14 @@ type __VLS_Slots = {
52
54
  exportPending: any;
53
55
  exportErrors: any;
54
56
  }) => any) | undefined;
57
+ } & {
58
+ filtersTitle?: ((props: {}) => any) | undefined;
55
59
  } & {
56
60
  filters?: ((props: {
57
61
  filters: any;
58
62
  }) => any) | undefined;
63
+ } & {
64
+ resultsTitle?: ((props: {}) => any) | undefined;
59
65
  } & {
60
66
  empty?: ((props: {
61
67
  createAction: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atom-nuxt",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "description": "My new Nuxt module",
5
5
  "repository": "atomengine/atom-nuxt",
6
6
  "license": "MIT",