atom-nuxt 1.0.155 → 1.0.156

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.0.155",
4
+ "version": "1.0.156",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
@@ -16,7 +16,7 @@ const selectionModel = defineModel();
16
16
  const search = ref("");
17
17
  const searchDialog = ref(false);
18
18
  const searchDialogSelectedValue = ref(null);
19
- const hasSelection = computed(() => selectionModel.value !== null);
19
+ const hasSelection = computed(() => props.multiple ? selectionModel.value !== null && Array.isArray(selectionModel.value) && selectionModel.value.length > 0 : selectionModel.value !== null);
20
20
  const onAction = () => {
21
21
  searchDialogSelectedValue.value = selectionModel.value ? Array.isArray(selectionModel.value) ? [...selectionModel.value] : selectionModel.value : null;
22
22
  searchDialog.value = true;
@@ -339,6 +339,8 @@ const exportAction = async () => {
339
339
  <slot
340
340
  name="before"
341
341
  :items="items"
342
+ :total-items="totalItems"
343
+ :total-pages="totalPages"
342
344
  :pending="listPending"
343
345
  :create-action="createForm"
344
346
  :update-action="updateForm"
@@ -31,6 +31,8 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
31
31
  type __VLS_Slots = {
32
32
  before?: ((props: {
33
33
  items: any;
34
+ totalItems: any;
35
+ totalPages: any;
34
36
  pending: any;
35
37
  createAction: any;
36
38
  updateAction: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atom-nuxt",
3
- "version": "1.0.155",
3
+ "version": "1.0.156",
4
4
  "description": "My new Nuxt module",
5
5
  "repository": "atomengine/atom-nuxt",
6
6
  "license": "MIT",