@hostlink/nuxt-light 1.60.1 → 1.60.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.60.1",
4
+ "version": "1.60.3",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -357,7 +357,6 @@ const submitSearch = (e) => {
357
357
  loadItems();
358
358
  };
359
359
  const onDownloadRow = async (row) => {
360
- getDrive(row.driveIndex).files.readAsBase64(row.path);
361
360
  const app = await q({
362
361
  app: {
363
362
  drive: {
@@ -6,13 +6,13 @@ type __VLS_WithSlots<T, S> = T & (new () => {
6
6
  });
7
7
  declare const __VLS_base: import("vue").DefineComponent<{}, {
8
8
  $props: Partial<typeof props>;
9
- type: string;
9
+ label?: string | undefined;
10
10
  to?: string | undefined;
11
11
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
12
  type __VLS_Slots = {
13
13
  default?: ((props: {}) => any) | undefined;
14
14
  };
15
15
  declare const props: {
16
- readonly type: string;
16
+ readonly label?: string | undefined;
17
17
  readonly to?: string | undefined;
18
18
  };
@@ -1,22 +1,19 @@
1
1
  <script setup>
2
- import { useLight } from "#imports";
3
- import { computed } from "vue";
4
- const $light = useLight();
5
2
  const props = defineProps({
6
3
  to: {
7
4
  type: String,
8
5
  required: false
9
6
  },
10
- type: {
7
+ label: {
11
8
  type: String,
12
- required: false,
13
- default: "primary"
9
+ required: false
14
10
  }
15
11
  });
16
12
  </script>
17
13
 
18
14
  <template>
19
15
  <router-link :to="props.to" style="text-decoration: underline;" class="text-primary">
20
- <slot />
16
+ <template v-if="props.label">{{ $t(props.label) }}</template>
17
+ <slot v-else />
21
18
  </router-link>
22
19
  </template>
@@ -6,13 +6,13 @@ type __VLS_WithSlots<T, S> = T & (new () => {
6
6
  });
7
7
  declare const __VLS_base: import("vue").DefineComponent<{}, {
8
8
  $props: Partial<typeof props>;
9
- type: string;
9
+ label?: string | undefined;
10
10
  to?: string | undefined;
11
11
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
12
  type __VLS_Slots = {
13
13
  default?: ((props: {}) => any) | undefined;
14
14
  };
15
15
  declare const props: {
16
- readonly type: string;
16
+ readonly label?: string | undefined;
17
17
  readonly to?: string | undefined;
18
18
  };
@@ -13,8 +13,7 @@ const value = computed({
13
13
 
14
14
  <template>
15
15
  <l-date-picker v-model="value" v-bind="context.attrs" :label="context.label" :error="error"
16
- :type="context.inputType" :error-message="errorMessage" :disable="context.disabled"
17
- :required="context.state.required">
16
+ :type="context.inputType" :error-message="errorMessage" :disable="context.disabled">
18
17
  <template v-for="(s, name) in $slots" v-slot:[name]="props" :key="name">
19
18
  <slot :name="name" v-bind="props ?? {}"></slot>
20
19
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.60.1",
3
+ "version": "1.60.3",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": {
6
6
  "type": "git",