@hostlink/nuxt-light 1.21.11 → 1.21.13

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.21.11",
4
+ "version": "1.21.13",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
@@ -335,7 +335,12 @@ const onLocalRequest = async (p: any) => {
335
335
  }
336
336
  }
337
337
 
338
- c = c.forPage(p.pagination.page, p.pagination.rowsPerPage);
338
+ console.log(p.pagination);
339
+
340
+ if (p.pagination.rowsPerPage != 0) {
341
+ c = c.forPage(p.pagination.page, p.pagination.rowsPerPage);
342
+ }
343
+
339
344
 
340
345
  const data = await c.all();
341
346
  const allData = {
@@ -31,7 +31,6 @@ const COLOR_CODE = {
31
31
  warning: "#ff9f43",
32
32
  dark: "#4b4b4b"
33
33
  };
34
- let styles = {};
35
34
  const light = reactive({
36
35
  styles: {
37
36
  table: {
@@ -46,8 +45,8 @@ const light = reactive({
46
45
  square: false
47
46
  },
48
47
  button: {
49
- outline: true,
50
- rounded: true,
48
+ outline: false,
49
+ rounded: false,
51
50
  unelevated: false,
52
51
  dense: false
53
52
  },
@@ -56,7 +55,7 @@ const light = reactive({
56
55
  outlined: true,
57
56
  standout: false,
58
57
  rounded: false,
59
- dense: true,
58
+ dense: false,
60
59
  square: false,
61
60
  stackLabel: true
62
61
  }
@@ -189,7 +188,7 @@ const light = reactive({
189
188
  name,
190
189
  value
191
190
  });
192
- styles[name] = value;
191
+ light.styles[name] = value;
193
192
  },
194
193
  setCurrentRoute(to) {
195
194
  currentRoute = to;
@@ -202,22 +201,18 @@ const light = reactive({
202
201
  const keyname = parts[1];
203
202
  return parseInt(currentRoute.params[keyname]);
204
203
  },
205
- init(styles2) {
206
- light.color = styles2.color || "primary";
207
- light.theme = styles2.theme || "semi-dark";
208
- styles2.input = { ...light.styles.input, ...styles2.input || {} };
209
- styles2.card = { ...light.styles.card, ...styles2.card || {} };
210
- styles2.button = { ...light.styles.button, ...styles2.button || {} };
211
- styles2.table = { ...light.styles.table, ...styles2.table || {} };
212
- light.styles = styles2;
204
+ init(styles) {
205
+ light.color = styles.color || "primary";
206
+ light.theme = styles.theme || "semi-dark";
207
+ light.styles.input = { ...light.styles.input, ...styles.input || {} };
208
+ light.styles.card = { ...light.styles.card, ...styles.card || {} };
209
+ light.styles.button = { ...light.styles.button, ...styles.button || {} };
210
+ light.styles.table = { ...light.styles.table, ...styles.table || {} };
213
211
  watch(() => light.theme, async () => {
214
212
  await light.setStyle("theme", light.theme);
215
213
  });
216
214
  watch(() => light.color, async () => {
217
- await m("updateMyStyle", {
218
- name: "color",
219
- value: light.color
220
- });
215
+ await light.setStyle("color", light.color);
221
216
  });
222
217
  },
223
218
  isGranted(right) {
@@ -103,6 +103,7 @@ const removeField = async (table) => {
103
103
 
104
104
  }
105
105
 
106
+
106
107
  const createTable = () => {
107
108
  light.dialog({
108
109
  component: table_add
@@ -202,6 +203,7 @@ const truncatTable = async () => {
202
203
  </script>
203
204
  <template>
204
205
  <l-page title="Database">
206
+
205
207
  <l-card>
206
208
  <l-list>
207
209
  <l-item label="Version">{{ data.version }}</l-item>
@@ -215,7 +217,7 @@ const truncatTable = async () => {
215
217
 
216
218
  <q-table :rows="custom_tables" hide-pagination flat bordered separator="cell" dense
217
219
  :rows-per-page-options="[0]" v-model:selected="selectedTable" selection="multiple"
218
- row-key="Name" @selection="onSelectionTable">
220
+ row-key="Name">
219
221
 
220
222
  <template #top-left>
221
223
  <q-btn icon="sym_o_add" @click="createTable()" round flat size="sm">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.21.11",
3
+ "version": "1.21.13",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": {
6
6
  "type": "git",