@hostlink/nuxt-light 1.51.0 → 1.51.2

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.51.0",
4
+ "version": "1.51.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -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;
@@ -67,13 +67,13 @@ const myFavoritesCount = computed(() => {
67
67
  });
68
68
  $q.dark.set(light.isDarkMode());
69
69
  const i18n = useI18n();
70
- i18n.locale = my.language || "en";
70
+ i18n.locale.value = my.language || "en";
71
71
  let system = tt.system;
72
- let messages = i18n.messages.value[i18n.locale];
72
+ let messages = i18n.messages.value[i18n.locale.value] || {};
73
73
  for (let t of app.i18nMessages) {
74
74
  messages[t.name] = t.value;
75
75
  }
76
- i18n.setLocaleMessage(i18n.locale, messages);
76
+ i18n.setLocaleMessage(i18n.locale.value, messages);
77
77
  const menus = ref(app.menus);
78
78
  const my_menus = ref(my.menu);
79
79
  const leftDrawerOpen = ref(false);
@@ -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>;
@@ -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;
@@ -821,6 +821,8 @@ declare const _default: () => {
821
821
  isoName: string;
822
822
  nativeName: string;
823
823
  label: {
824
+ create: string;
825
+ set: string;
824
826
  cancel: string;
825
827
  close: string;
826
828
  reset: string;
@@ -828,11 +830,9 @@ declare const _default: () => {
828
830
  filter: string;
829
831
  update: string;
830
832
  remove: string;
831
- set: string;
832
833
  clear: string;
833
834
  ok: string;
834
835
  search: string;
835
- create: string;
836
836
  refresh: string;
837
837
  expand: (label?: string | undefined) => string;
838
838
  collapse: (label?: string | undefined) => string;
@@ -916,9 +916,9 @@ declare const _default: () => {
916
916
  name: string;
917
917
  type: {
918
918
  info: string;
919
- warning: string;
920
- negative: string;
921
919
  positive: string;
920
+ negative: string;
921
+ warning: string;
922
922
  };
923
923
  arrow: {
924
924
  left: string;
@@ -15,7 +15,6 @@ watch(selected, async (newSelected) => {
15
15
  const name = newSelected[0].Db + "." + newSelected[0].Name;
16
16
  const event = await getEvent(name);
17
17
  eventDetail.value = event;
18
- console.log("\u53D6\u5F97\u7684\u4E8B\u4EF6\u8CC7\u6599:", event);
19
18
  } else {
20
19
  eventDetail.value = null;
21
20
  }
@@ -40,7 +39,7 @@ const getEvent = async (name) => {
40
39
  <l-page>
41
40
 
42
41
  <q-table :rows="system.database.events" :pagination="{ rowsPerPage: 0 }" v-model:selected="selected"
43
- selection="single" />
42
+ row-key="Name" selection="single" />
44
43
 
45
44
  <!-- 顯示選中的事件詳細內容 -->
46
45
  <div v-if="eventDetail" class="q-mt-md">
@@ -59,7 +58,8 @@ const getEvent = async (name) => {
59
58
  <div><strong>事件名稱:</strong> {{ eventDetail.Event }}</div>
60
59
  <div>
61
60
  <strong>SQL 模式:</strong>
62
- <div class="q-mt-xs text-caption" style="word-break: break-all; line-height: 1.3;">
61
+ <div class="q-mt-xs text-caption"
62
+ style="word-break: break-all; line-height: 1.3;">
63
63
  {{ eventDetail.sql_mode }}
64
64
  </div>
65
65
  </div>
@@ -76,7 +76,8 @@ const getEvent = async (name) => {
76
76
  <q-card-section>
77
77
  <div class="text-subtitle1 text-weight-bold">事件定義</div>
78
78
  <q-separator class="q-my-sm" />
79
- <pre class="q-pa-sm bg-grey-1" style="white-space: pre-wrap; font-size: 12px;">{{ eventDetail['Create Event'] }}</pre>
79
+ <pre class="q-pa-sm bg-grey-1" style="white-space: pre-wrap; font-size: 12px;">{{
80
+ eventDetail['Create Event'] }}</pre>
80
81
  </q-card-section>
81
82
  </q-card>
82
83
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.51.0",
3
+ "version": "1.51.2",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": {
6
6
  "type": "git",