@hostlink/nuxt-light 1.21.11 → 1.21.12

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.12",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
@@ -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) {
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.12",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": {
6
6
  "type": "git",