@hostlink/nuxt-light 1.49.2 → 1.49.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.49.2",
4
+ "version": "1.49.3",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { defineNuxtModule, createResolver, extendPages, addComponentsDir, addImportsDir, resolveFiles, addPlugin } from '@nuxt/kit';
1
+ import { defineNuxtModule, createResolver, extendPages, addComponentsDir, addImportsDir, resolveFiles, addPluginTemplate, addPlugin } from '@nuxt/kit';
2
2
 
3
3
  const routes = [
4
4
  {
@@ -354,10 +354,19 @@ const module = defineNuxtModule({
354
354
  };
355
355
  for (const file of [...files, ...files2]) {
356
356
  const n1 = "Model_" + file.match(/([a-zA-Z0-9]+)\.ts$/)?.[1];
357
- addPlugin({
358
- src: file,
357
+ addPluginTemplate({
358
+ filename: "light.module.options.mjs",
359
359
  mode: "client",
360
- name: n1
360
+ getContents: () => `import { defineNuxtPlugin } from '#app/nuxt'
361
+
362
+ export default defineNuxtPlugin({
363
+ name: '${n1}-plugin',
364
+ async setup (nuxtApp) {
365
+
366
+ const a=await import('${file}');
367
+ a.default();
368
+ }
369
+ })`
361
370
  });
362
371
  }
363
372
  addPlugin({
@@ -1,11 +1,11 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
2
  label: string;
3
- to?: string | undefined;
4
3
  color?: string | undefined;
4
+ to?: string | undefined;
5
5
  $props: {
6
6
  readonly label?: string | undefined;
7
- readonly to?: string | undefined;
8
7
  readonly color?: string | undefined;
8
+ readonly to?: string | undefined;
9
9
  };
10
10
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
11
11
  export default _default;
@@ -1,11 +1,11 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
2
  label: string;
3
- to?: string | undefined;
4
3
  color?: string | undefined;
4
+ to?: string | undefined;
5
5
  $props: {
6
6
  readonly label?: string | undefined;
7
- readonly to?: string | undefined;
8
7
  readonly color?: string | undefined;
8
+ readonly to?: string | undefined;
9
9
  };
10
10
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
11
11
  export default _default;
@@ -1,19 +1,19 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
2
  $emit: (event: "update:theme" | "update:menuOverlayHeader" | "update:dense" | "update:color" | "update:miniState" | "update:footer", ...args: any[]) => void;
3
- color: string;
4
3
  time: string;
4
+ color: string;
5
5
  theme: string;
6
6
  dense: boolean;
7
- miniState: boolean;
8
7
  footer: boolean;
8
+ miniState: boolean;
9
9
  menuOverlayHeader: boolean;
10
10
  $props: {
11
- readonly color?: string | undefined;
12
11
  readonly time?: string | undefined;
12
+ readonly color?: string | undefined;
13
13
  readonly theme?: string | undefined;
14
14
  readonly dense?: boolean | undefined;
15
- readonly miniState?: boolean | undefined;
16
15
  readonly footer?: boolean | undefined;
16
+ readonly miniState?: boolean | undefined;
17
17
  readonly menuOverlayHeader?: boolean | undefined;
18
18
  };
19
19
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,19 +1,19 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
2
  $emit: (event: "update:theme" | "update:menuOverlayHeader" | "update:dense" | "update:color" | "update:miniState" | "update:footer", ...args: any[]) => void;
3
- color: string;
4
3
  time: string;
4
+ color: string;
5
5
  theme: string;
6
6
  dense: boolean;
7
- miniState: boolean;
8
7
  footer: boolean;
8
+ miniState: boolean;
9
9
  menuOverlayHeader: boolean;
10
10
  $props: {
11
- readonly color?: string | undefined;
12
11
  readonly time?: string | undefined;
12
+ readonly color?: string | undefined;
13
13
  readonly theme?: string | undefined;
14
14
  readonly dense?: boolean | undefined;
15
- readonly miniState?: boolean | undefined;
16
15
  readonly footer?: boolean | undefined;
16
+ readonly miniState?: boolean | undefined;
17
17
  readonly menuOverlayHeader?: boolean | undefined;
18
18
  };
19
19
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -13,11 +13,11 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
13
13
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
14
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
15
15
  }>, {
16
+ disable: boolean;
16
17
  dark: boolean | null;
17
18
  rounded: boolean;
18
19
  square: boolean;
19
20
  dense: boolean;
20
- disable: boolean;
21
21
  outlined: boolean;
22
22
  filled: boolean;
23
23
  stackLabel: boolean;
@@ -13,11 +13,11 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
13
13
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
14
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
15
15
  }>, {
16
+ disable: boolean;
16
17
  dark: boolean | null;
17
18
  rounded: boolean;
18
19
  square: boolean;
19
20
  dense: boolean;
20
- disable: boolean;
21
21
  outlined: boolean;
22
22
  filled: boolean;
23
23
  stackLabel: boolean;
@@ -6,9 +6,9 @@ declare const _default: import("vue").DefineComponent<LEditorProps, {}, {}, {},
6
6
  }, string, import("vue").PublicProps, Readonly<LEditorProps> & Readonly<{
7
7
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
8
8
  }>, {
9
+ modelValue: string;
9
10
  dense: boolean;
10
11
  placeholder: string;
11
- modelValue: string;
12
12
  fonts: any | undefined;
13
13
  toolbar: readonly any[];
14
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -6,9 +6,9 @@ declare const _default: import("vue").DefineComponent<LEditorProps, {}, {}, {},
6
6
  }, string, import("vue").PublicProps, Readonly<LEditorProps> & Readonly<{
7
7
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
8
8
  }>, {
9
+ modelValue: string;
9
10
  dense: boolean;
10
11
  placeholder: string;
11
- modelValue: string;
12
12
  fonts: any | undefined;
13
13
  toolbar: readonly any[];
14
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -5,15 +5,15 @@ type __VLS_WithSlots<T, S> = T & (new () => {
5
5
  });
6
6
  declare const __VLS_component: import("vue").DefineComponent<{}, {
7
7
  $emit: (event: "submit", ...args: any[]) => void;
8
- cancel: Function;
9
8
  value: Record<string, any>;
9
+ cancel: Function;
10
10
  width: string;
11
11
  title: string;
12
12
  save: Function;
13
13
  showNotification: boolean;
14
14
  $props: {
15
- readonly cancel?: Function | undefined;
16
15
  readonly value?: Record<string, any> | undefined;
16
+ readonly cancel?: Function | undefined;
17
17
  readonly width?: string | undefined;
18
18
  readonly title?: string | undefined;
19
19
  readonly save?: Function | undefined;
@@ -5,15 +5,15 @@ type __VLS_WithSlots<T, S> = T & (new () => {
5
5
  });
6
6
  declare const __VLS_component: import("vue").DefineComponent<{}, {
7
7
  $emit: (event: "submit", ...args: any[]) => void;
8
- cancel: Function;
9
8
  value: Record<string, any>;
9
+ cancel: Function;
10
10
  width: string;
11
11
  title: string;
12
12
  save: Function;
13
13
  showNotification: boolean;
14
14
  $props: {
15
- readonly cancel?: Function | undefined;
16
15
  readonly value?: Record<string, any> | undefined;
16
+ readonly cancel?: Function | undefined;
17
17
  readonly width?: string | undefined;
18
18
  readonly title?: string | undefined;
19
19
  readonly save?: Function | undefined;
@@ -23,8 +23,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
23
23
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
24
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
25
25
  }>, {
26
- format24h: boolean;
27
26
  required: boolean;
27
+ format24h: boolean;
28
28
  mask: string;
29
29
  hideBottomSpace: boolean;
30
30
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -23,8 +23,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
23
23
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
24
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
25
25
  }>, {
26
- format24h: boolean;
27
26
  required: boolean;
27
+ format24h: boolean;
28
28
  mask: string;
29
29
  hideBottomSpace: boolean;
30
30
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -8,5 +8,5 @@ export interface LightModel {
8
8
  name: string;
9
9
  fields: Record<string, LightModelField>;
10
10
  }
11
- declare const _default: (model: LightModel) => import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
11
+ declare const _default: (model: LightModel) => () => void;
12
12
  export default _default;
@@ -1,7 +1,6 @@
1
- import { defineNuxtPlugin } from "#app";
2
1
  import { default as api } from "./api.js";
3
2
  export default (model) => {
4
- return defineNuxtPlugin(() => {
3
+ return () => {
5
4
  api.models.create(model.name, model.fields);
6
- });
5
+ };
7
6
  };
@@ -224,6 +224,8 @@ declare const light: {
224
224
  isoName: string;
225
225
  nativeName: string;
226
226
  label: {
227
+ create: string;
228
+ set: string;
227
229
  cancel: string;
228
230
  close: string;
229
231
  reset: string;
@@ -231,11 +233,9 @@ declare const light: {
231
233
  filter: string;
232
234
  update: string;
233
235
  remove: string;
234
- set: string;
235
236
  clear: string;
236
237
  ok: string;
237
238
  search: string;
238
- create: string;
239
239
  refresh: string;
240
240
  expand: (label?: string | undefined) => string;
241
241
  collapse: (label?: string | undefined) => string;
@@ -319,9 +319,9 @@ declare const light: {
319
319
  name: string;
320
320
  type: {
321
321
  info: string;
322
- warning: string;
323
- negative: string;
324
322
  positive: string;
323
+ negative: string;
324
+ warning: string;
325
325
  };
326
326
  arrow: {
327
327
  left: string;
@@ -830,6 +830,8 @@ declare const _default: () => {
830
830
  isoName: string;
831
831
  nativeName: string;
832
832
  label: {
833
+ create: string;
834
+ set: string;
833
835
  cancel: string;
834
836
  close: string;
835
837
  reset: string;
@@ -837,11 +839,9 @@ declare const _default: () => {
837
839
  filter: string;
838
840
  update: string;
839
841
  remove: string;
840
- set: string;
841
842
  clear: string;
842
843
  ok: string;
843
844
  search: string;
844
- create: string;
845
845
  refresh: string;
846
846
  expand: (label?: string | undefined) => string;
847
847
  collapse: (label?: string | undefined) => string;
@@ -925,9 +925,9 @@ declare const _default: () => {
925
925
  name: string;
926
926
  type: {
927
927
  info: string;
928
- warning: string;
929
- negative: string;
930
928
  positive: string;
929
+ negative: string;
930
+ warning: string;
931
931
  };
932
932
  arrow: {
933
933
  left: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.49.2",
3
+ "version": "1.49.3",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": {
6
6
  "type": "git",