@hostlink/nuxt-light 1.46.1 → 1.46.3

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": "light",
3
3
  "configKey": "light",
4
- "version": "1.46.1",
4
+ "version": "1.46.3",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -16,9 +16,11 @@ type __VLS_PublicProps = __VLS_Props & {
16
16
  "minimized"?: boolean;
17
17
  "maximized"?: boolean;
18
18
  };
19
- declare var __VLS_66: {};
19
+ declare var __VLS_14: {}, __VLS_68: {};
20
20
  type __VLS_Slots = {} & {
21
- default?: (props: typeof __VLS_66) => any;
21
+ actions?: (props: typeof __VLS_14) => any;
22
+ } & {
23
+ default?: (props: typeof __VLS_68) => any;
22
24
  };
23
25
  declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
26
  close: (...args: any[]) => void;
@@ -39,6 +39,7 @@ const showBar = computed(() => {
39
39
  if (props.minimizable) return true;
40
40
  if (props.title !== void 0) return true;
41
41
  if (showSecurity.value) return true;
42
+ if (attrs.value.actions) return true;
42
43
  return false;
43
44
  });
44
45
  const showSecurity = computed(() => {
@@ -105,6 +106,8 @@ const onMinimize = () => {
105
106
  <div>{{ $t(title ?? "") }}</div>
106
107
  <q-space />
107
108
 
109
+ <slot name="actions"></slot>
110
+
108
111
  <q-btn dense flat icon="sym_o_lock" persistent v-if="showSecurity">
109
112
  <q-menu>
110
113
  <q-list>
@@ -16,9 +16,11 @@ type __VLS_PublicProps = __VLS_Props & {
16
16
  "minimized"?: boolean;
17
17
  "maximized"?: boolean;
18
18
  };
19
- declare var __VLS_66: {};
19
+ declare var __VLS_14: {}, __VLS_68: {};
20
20
  type __VLS_Slots = {} & {
21
- default?: (props: typeof __VLS_66) => any;
21
+ actions?: (props: typeof __VLS_14) => any;
22
+ } & {
23
+ default?: (props: typeof __VLS_68) => any;
22
24
  };
23
25
  declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
26
  close: (...args: any[]) => void;
@@ -4,6 +4,11 @@ export default (name) => {
4
4
  return Object.assign(m, {
5
5
  columns(fields) {
6
6
  let columns = [];
7
+ if (!Array.isArray(fields)) {
8
+ fields = Object.fromEntries(
9
+ Object.entries(fields).filter(([key, value]) => value !== false)
10
+ );
11
+ }
7
12
  const fs = Array.isArray(fields) ? fields : Object.keys(fields);
8
13
  for (let f of fs) {
9
14
  const field = m.field(f);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.46.1",
3
+ "version": "1.46.3",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": {
6
6
  "type": "git",