glib-web 3.4.6 → 3.4.8

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.
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <v-badge :color="badge.backgroundColor || 'red'" overlap :model-value="badgeExists()" :style="styles()">
2
+ <v-badge :color="badge.backgroundColor || 'red'" :offset-x="badge.offsetX" :offset-y="badge.offsetY" :model-value="badgeExists()" :style="styles()">
3
3
  <template v-slot:badge>{{ badge.text }}</template>
4
4
  <slot />
5
5
  </v-badge>
@@ -12,7 +12,7 @@ export default {
12
12
  },
13
13
  data() {
14
14
  return {
15
- badge: {}
15
+ badge: {},
16
16
  };
17
17
  },
18
18
  methods: {
@@ -34,7 +34,7 @@ export default {
34
34
  return determineSize(this.spec.styleClasses)
35
35
  },
36
36
  variant() {
37
- return determineVariant(this.spec.styleClasses, 'elevated')
37
+ return determineVariant(this.spec.styleClasses, 'text')
38
38
  }
39
39
  },
40
40
  methods: {
@@ -5,10 +5,11 @@
5
5
  </template>
6
6
 
7
7
  <script setup>
8
+ import 'chartkick/chart.js';
8
9
  import { computed } from 'vue';
9
10
  import { singleDataSeries } from './series';
10
11
 
11
- const { spec } = defineProps({ spec: Object })
12
- const color = spec.colors == null ? '' : [spec.colors]
13
- const series = computed(() => singleDataSeries(spec.dataSeries))
12
+ const { spec } = defineProps({ spec: Object });
13
+ const color = spec.colors == null ? '' : [spec.colors];
14
+ const series = computed(() => singleDataSeries(spec.dataSeries));
14
15
  </script>
@@ -3,12 +3,12 @@
3
3
  </template>
4
4
 
5
5
  <script setup>
6
-
6
+ import 'chartkick/chart.js';
7
7
  import { computed } from 'vue';
8
8
  import { multipleDataSeries } from './series';
9
9
 
10
- const { spec } = defineProps({ spec: Object })
11
- const color = spec.colors == null ? '' : spec.colors
10
+ const { spec } = defineProps({ spec: Object });
11
+ const color = spec.colors == null ? '' : spec.colors;
12
12
  const series = computed(() => multipleDataSeries(spec.dataGroups))
13
13
 
14
14
  </script>
@@ -3,11 +3,12 @@
3
3
  </template>
4
4
 
5
5
  <script setup>
6
+ import 'chartkick/chart.js';
6
7
  import { computed } from 'vue';
7
8
  import { multipleDataSeries } from './series';
8
9
 
9
- const { spec } = defineProps({ spec: Object })
10
- const color = spec.colors == null ? '' : spec.colors
10
+ const { spec } = defineProps({ spec: Object });
11
+ const color = spec.colors == null ? '' : spec.colors;
11
12
 
12
- const series = computed(() => multipleDataSeries(spec.dataSeries))
13
+ const series = computed(() => multipleDataSeries(spec.dataSeries));
13
14
  </script>
@@ -3,11 +3,12 @@
3
3
  </template>
4
4
 
5
5
  <script setup>
6
+ import 'chartkick/chart.js';
6
7
  import { computed } from 'vue';
7
8
  import { singleDataSeries } from './series';
8
9
 
9
- const { spec } = defineProps({ spec: Object })
10
- const color = spec.colors == null ? '' : spec.colors
10
+ const { spec } = defineProps({ spec: Object });
11
+ const color = spec.colors == null ? '' : spec.colors;
11
12
  const series = computed(() => singleDataSeries(spec.dataSeries))
12
13
 
13
14
  </script>
@@ -63,7 +63,7 @@ import HiddenField from "./fields/hidden.vue";
63
63
  import TextField from "./fields/text.vue";
64
64
  import SubmitField from "./fields/submit.vue";
65
65
  import TextAreaField from "./fields/textarea.vue";
66
- import RichTextField from "./fields/richText.vue";
66
+ const RichTextField = defineAsyncComponent(() => import("./fields/richText.vue"));
67
67
  // import NewRichTextField from "./fields/newRichText.vue";
68
68
  import FileField from "./fields/file.vue";
69
69
  import AutocompleteField from "./fields/autocomplete.vue";
@@ -110,15 +110,16 @@ import MultimediaVideo from "./multimedia/video.vue";
110
110
  import AlertBanner from "./banners/alert.vue";
111
111
  import SelectBanner from "./banners/select.vue";
112
112
 
113
- import LineChart from "./charts/line.vue";
114
- import ColumnChart from "./charts/column.vue";
115
- import PieChart from "./charts/pie.vue";
116
- import AreaChart from "./charts/area.vue";
113
+ const LineChart = defineAsyncComponent(() => import("./charts/line.vue"));
114
+ const ColumnChart = defineAsyncComponent(() => import("./charts/column.vue"));
115
+ const PieChart = defineAsyncComponent(() => import("./charts/pie.vue"));
116
+ const AreaChart = defineAsyncComponent(() => import("./charts/area.vue"));
117
117
 
118
118
  import ShareButton from "./shareButton.vue";
119
119
  import Action from "../action";
120
120
 
121
121
  import { getCurrentInstance } from 'vue';
122
+ import { defineAsyncComponent } from "vue";
122
123
 
123
124
  export default {
124
125
  components: {
@@ -26,8 +26,10 @@
26
26
  </template>
27
27
 
28
28
  <script>
29
+ import '@vueup/vue-quill/dist/vue-quill.snow.css';
30
+
29
31
  import Uploader from "../../utils/uploader";
30
- import { QuillEditor, Quill } from '@vueup/vue-quill'
32
+ import { QuillEditor, Quill } from '@vueup/vue-quill';
31
33
 
32
34
  import TurndownService from "turndown";
33
35
  import { gfm } from "turndown-plugin-gfm";
@@ -264,7 +266,7 @@ export default {
264
266
  );
265
267
  },
266
268
  onRichTextEditorChanged: eventFiltering.debounce(function () {
267
- this.richEditorValue = this.$refs.quilEditor.getHTML()
269
+ this.richEditorValue = this.$refs.quilEditor.getHTML();
268
270
  this.producedValue = this.textEditor.producedValue(
269
271
  this.richEditorValue,
270
272
  "html",
package/index.js CHANGED
@@ -4,8 +4,6 @@ import App from "./app.vue";
4
4
  import { settings } from "./utils/settings";
5
5
  import { useTheme } from "vuetify";
6
6
 
7
- import '@vueup/vue-quill/dist/vue-quill.snow.css';
8
-
9
7
  // lib for deep merge
10
8
  import merge from 'lodash.merge';
11
9
 
@@ -41,14 +39,7 @@ Vue.component('gmap-marker', Marker);
41
39
  Vue.component('gmap-autocomplete', Autocomplete);
42
40
 
43
41
 
44
-
45
- import "./styles/test.scss";
46
- import "./styles/test.sass";
47
-
48
-
49
42
  import VueChartkick from 'vue-chartkick';
50
- import 'chartkick/chart.js';
51
-
52
43
  Vue.use(VueChartkick);
53
44
 
54
45
  // import VueAnalytics from 'vue-analytics'
package/nav/appbar.vue CHANGED
@@ -77,7 +77,7 @@ export default {
77
77
  },
78
78
  mobileMenu() {
79
79
  return {
80
- icon: { material: { name: "mdi-dots-vertical" } },
80
+ icon: { material: { name: "more_vert" } },
81
81
  childButtons: this.rightButtons
82
82
  };
83
83
  }
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <!-- <v-list-item class="popover-menu-item"> -->
3
3
 
4
- <v-list-item class="drawer-button">
4
+ <!-- <v-list-item class="drawer-button"> -->
5
5
 
6
6
  <!-- <v-list-item :href="$href(spec)" @click="performAction($event)" class="popover-menu-item"> -->
7
7
  <!-- <v-list-item :href="$href(spec)" @click="performAction($event)"> -->
@@ -14,8 +14,13 @@
14
14
  {{ spec.text }}
15
15
  </common-badge>
16
16
  </v-list-item-title> -->
17
- <common-button :spec="buttonSpec(spec)" />
18
- </v-list-item>
17
+ <!-- <common-button :spec="buttonSpec(spec)" />
18
+ </v-list-item> -->
19
+
20
+ <div ref="buttonContainer" class="drawer-button">
21
+ <common-button :spec="buttonSpec" v-if="buttonSpec" />
22
+ </div>
23
+
19
24
  </template>
20
25
 
21
26
  <script>
@@ -23,27 +28,64 @@ export default {
23
28
  props: {
24
29
  spec: { type: Object, required: true }
25
30
  },
31
+ data: function () {
32
+ return {
33
+ buttonSpec: null,
34
+ };
35
+ },
26
36
  methods: {
37
+ $ready() {
38
+ this.buttonSpec = Object.assign({}, this.spec, {
39
+ view: "button-v1",
40
+ width: "matchParent",
41
+ styleClasses: ["text"]
42
+ });
43
+
44
+ // Delay so we get the correct width and height.
45
+ this.$nextTick(() => {
46
+ this.$type.ifObject(this.buttonSpec.badge, badge => {
47
+ const container = this.$refs.buttonContainer
48
+ badge.offsetX = 18
49
+ badge.offsetY = (container.offsetHeight / 2) - 3
50
+ })
51
+ })
52
+ },
27
53
  performAction(event) {
28
54
  // this.$el.dispatchEvent(new Event("drawers/clickButton", { bubbles: true }))
29
55
  this.$dispatchEvent("drawers/clickButton", {});
30
56
  this.$onClick(event);
31
57
  },
32
- buttonSpec(item) {
33
- return Object.assign({}, item, {
34
- view: "button-v1",
35
- // width: "matchParent",
36
- styleClasses: ["text"]
37
- });
38
- }
58
+ // buttonSpec() {
59
+ // return Object.assign({}, this.spec, {
60
+ // view: "button-v1",
61
+ // width: "matchParent",
62
+ // styleClasses: ["text"]
63
+ // // styleClasses: ["text", "drawer-button"]
64
+ // });
65
+ // }
39
66
  }
40
67
  };
41
68
  </script>
42
69
 
43
70
  <style lang="scss" scoped>
71
+ // .drawer-button {
72
+ // justify-content: flex-start;
73
+ // }
44
74
  </style>
45
75
 
46
76
  <style lang="scss">
77
+ .drawer-button {
78
+ .v-badge {
79
+ .v-badge__wrapper {
80
+ width: 100%;
81
+ }
82
+ }
83
+
84
+ .v-btn {
85
+ justify-content: flex-start;
86
+ }
87
+ }
88
+
47
89
  // .drawer-button {
48
90
  // .v-list-item__content {
49
91
  // text-align: left;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glib-web",
3
- "version": "3.4.6",
3
+ "version": "3.4.8",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -12,7 +12,7 @@ export default {
12
12
  css: "text/css",
13
13
  csv: "text/csv",
14
14
  doc: "application/msword",
15
- docx: "application/msword",
15
+ docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
16
16
  dll: "application/octet-stream",
17
17
  eot: "application/vnd.ms-fontobject",
18
18
  epub: "application/epub+zip",
@@ -44,7 +44,7 @@ export default {
44
44
  otf: "font/otf",
45
45
  png: "image/png",
46
46
  ppt: "application/vnd.ms-powerpoint",
47
- pptx: "application/vnd.ms-powerpoint",
47
+ pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
48
48
  rar: "application/x-rar-compressed",
49
49
  rtf: "application/rtf",
50
50
  sh: "application/x-sh",
@@ -65,7 +65,7 @@ export default {
65
65
  woff2: "font/woff2",
66
66
  xhtml: "application/xhtml+xml",
67
67
  xls: "application/vnd.ms-excel",
68
- xlsx: "application/vnd.ms-excel",
68
+ xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
69
69
  xlsx_OLD: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
70
70
  xml: "application/xml",
71
71
  xul: "application/vnd.mozilla.xul+xml",