glib-web 2.2.0 → 2.2.1
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/LICENSE +0 -0
- package/actions/auth/restart.js +0 -0
- package/actions/dialogs/oauth.js +0 -0
- package/actions/dialogs/options.js +0 -0
- package/actions/windows/openWeb.js +0 -0
- package/components/_message.vue +0 -0
- package/components/datetime.vue +0 -0
- package/components/fab.vue +0 -0
- package/components/fields/country/countries.js +0 -0
- package/components/fields/country/field.vue +0 -0
- package/components/fields/country/regions.js +0 -0
- package/components/fields/datetime.vue +0 -0
- package/components/fields/dynamicGroup.vue +3 -13
- package/components/fields/dynamicSelect.vue +0 -0
- package/components/fields/radioGroup.vue +5 -0
- package/components/fields/select.vue +0 -0
- package/components/fields/timeZone.vue +0 -0
- package/components/hr.vue +0 -0
- package/components/html.vue +0 -0
- package/components/mixins/generic.js +0 -1
- package/components/mixins/longClick.js +0 -0
- package/components/mixins/scrolling.js +0 -0
- package/components/mixins/styles.js +1 -4
- package/components/mixins/table/export.js +0 -0
- package/components/mixins/table/import.js +0 -0
- package/components/p.vue +0 -0
- package/keys.js +0 -0
- package/nav/appbar.vue +16 -44
- package/nav/drawer.vue +5 -6
- package/nav/drawerButton.vue +0 -0
- package/package.json +2 -2
- package/settings.json.example +0 -0
- package/styles/test.sass +0 -0
- package/styles/test.scss +0 -0
- package/templates/unsupported.vue +0 -0
- package/utils/dom.js +0 -0
- package/utils/eventBus.js +2 -0
- package/utils/public.js +0 -0
- package/utils/settings.js +0 -0
- package/utils/storage.js +0 -0
- package/utils/url.js +0 -0
package/LICENSE
CHANGED
|
File without changes
|
package/actions/auth/restart.js
CHANGED
|
File without changes
|
package/actions/dialogs/oauth.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/components/_message.vue
CHANGED
|
File without changes
|
package/components/datetime.vue
CHANGED
|
File without changes
|
package/components/fab.vue
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :style="genericStyles()" :class="$classes()">
|
|
3
3
|
<div v-for="(group, groupIndex) in groupSpecs" :key="`group${groupIndex}`">
|
|
4
|
-
<input
|
|
5
|
-
v-if="isDeleted(groupIndex)"
|
|
6
|
-
type="hidden"
|
|
7
|
-
:name="`${spec.name}[${groupIndex}][_destroy]`"
|
|
8
|
-
value="1"
|
|
9
|
-
/>
|
|
4
|
+
<input v-if="isDeleted(groupIndex)" type="hidden" :name="`${spec.name}[${groupIndex}][_destroy]`" value="1" />
|
|
10
5
|
<div :style="{ display: isDeleted(groupIndex) ? 'none' : 'block' }">
|
|
11
|
-
<v-icon
|
|
12
|
-
|
|
13
|
-
color="error"
|
|
14
|
-
@click="removeGroup(groupIndex)"
|
|
15
|
-
>remove_circle</v-icon
|
|
16
|
-
>
|
|
17
|
-
<h4>{{ spec.titlePrefix }} {{ groupIndex + 1 }}</h4>
|
|
6
|
+
<v-icon class="float-left mr-2" color="error" @click="removeGroup(groupIndex)">remove_circle</v-icon>
|
|
7
|
+
<h4 v-if="spec.titlePrefix">{{ spec.titlePrefix }} {{ groupIndex + 1 }}</h4>
|
|
18
8
|
<panels-responsive :spec="group" />
|
|
19
9
|
</div>
|
|
20
10
|
</div>
|
|
File without changes
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
|
+
<!-- In the current Vuetify, there seems to be a bug with validate-on-blur where once a radioGroup has a validation error,
|
|
3
|
+
the error can only be removed by submitting the form. But this is better than the alternative, which is radioGroup showing
|
|
4
|
+
validation error on page load.
|
|
5
|
+
-->
|
|
2
6
|
<v-radio-group
|
|
3
7
|
v-model="fieldModel"
|
|
4
8
|
:name="fieldName"
|
|
5
9
|
:disabled="spec.readOnly"
|
|
6
10
|
:rules="$validation()"
|
|
7
11
|
:row="spec.row"
|
|
12
|
+
validate-on-blur
|
|
8
13
|
@change="onChange"
|
|
9
14
|
>
|
|
10
15
|
<div v-for="(childView, index) in spec.childViews" :key="index">
|
|
File without changes
|
|
File without changes
|
package/components/hr.vue
CHANGED
|
File without changes
|
package/components/html.vue
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -202,10 +202,7 @@ export default {
|
|
|
202
202
|
// Has to be executed before $ready(). This executes regardless of whether a form is found because fields
|
|
203
203
|
// may be used without a form.
|
|
204
204
|
this.fieldName = this.spec.name;
|
|
205
|
-
|
|
206
|
-
if (this.spec.value) {
|
|
207
|
-
this.fieldModel = this._sanitizeValue(this.spec.value);
|
|
208
|
-
}
|
|
205
|
+
this.fieldModel = this._sanitizeValue(this.spec.value);
|
|
209
206
|
}
|
|
210
207
|
},
|
|
211
208
|
$classes(spec) {
|
|
File without changes
|
|
File without changes
|
package/components/p.vue
CHANGED
|
File without changes
|
package/keys.js
CHANGED
|
File without changes
|
package/nav/appbar.vue
CHANGED
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<nav-drawer
|
|
4
|
-
v-if="page.leftDrawer"
|
|
5
|
-
:trigger="drawerTrigger"
|
|
6
|
-
:permanent="isPermanent"
|
|
7
|
-
:spec="page.leftDrawer"
|
|
8
|
-
/>
|
|
3
|
+
<nav-drawer v-if="page.leftDrawer" :trigger="drawerTrigger" :permanent="isPermanent" :spec="page.leftDrawer" />
|
|
9
4
|
|
|
10
|
-
<v-toolbar :style="style" :height="navBar.height" :class="cssClasses()">
|
|
11
|
-
<v-app-bar-nav-icon
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
@click="drawerTrigger = new Date()"
|
|
15
|
-
></v-app-bar-nav-icon>
|
|
16
|
-
<v-progress-circular
|
|
17
|
-
v-if="$root.vueApp.indicator"
|
|
18
|
-
indeterminate
|
|
19
|
-
></v-progress-circular>
|
|
5
|
+
<v-toolbar v-if="navBar.height" :style="style" :height="navBar.height" :class="cssClasses()">
|
|
6
|
+
<v-app-bar-nav-icon v-if="page.leftDrawer && !isPermanent" style="color: inherit;"
|
|
7
|
+
@click="drawerTrigger = new Date()"></v-app-bar-nav-icon>
|
|
8
|
+
<v-progress-circular v-if="$root.vueApp.indicator" indeterminate></v-progress-circular>
|
|
20
9
|
<div v-else>
|
|
21
10
|
<panels-responsive v-if="navBar.logo" :spec="navBar.logo" />
|
|
22
11
|
<v-toolbar-title v-else-if="navBar.showTitle">{{
|
|
@@ -28,35 +17,16 @@
|
|
|
28
17
|
<!-- See https://codesandbox.io/embed/14ry9r3lll -->
|
|
29
18
|
<v-toolbar-items class="hidden-sm-and-down">
|
|
30
19
|
<template v-for="(btn, index) in navBar.rightButtons">
|
|
31
|
-
<common-dropdownMenu
|
|
32
|
-
|
|
33
|
-
:key="index"
|
|
34
|
-
:spec="btn"
|
|
35
|
-
:disabled="$isBusy"
|
|
36
|
-
/>
|
|
37
|
-
<common-button
|
|
38
|
-
v-else
|
|
39
|
-
:key="`right_${index}`"
|
|
40
|
-
:spec="buttonSpec(btn)"
|
|
41
|
-
:disabled="$isBusy"
|
|
42
|
-
/>
|
|
20
|
+
<common-dropdownMenu v-if="btn.childButtons" :key="index" :spec="btn" :disabled="$isBusy" />
|
|
21
|
+
<common-button v-else :key="`right_${index}`" :spec="buttonSpec(btn)" :disabled="$isBusy" />
|
|
43
22
|
</template>
|
|
44
23
|
</v-toolbar-items>
|
|
45
24
|
|
|
46
|
-
<common-dropdownMenu
|
|
47
|
-
v-if="showMobileMenu"
|
|
48
|
-
class="hidden-md-and-up"
|
|
49
|
-
:spec="mobileMenu"
|
|
50
|
-
/>
|
|
25
|
+
<common-dropdownMenu v-if="showMobileMenu" class="hidden-md-and-up" :spec="mobileMenu" />
|
|
51
26
|
|
|
52
27
|
<views-avatar v-if="navBar.imageUrl" :spec="avatarSpec(navBar)" />
|
|
53
28
|
|
|
54
|
-
<v-btn
|
|
55
|
-
v-if="viewSourceEnabled()"
|
|
56
|
-
icon
|
|
57
|
-
style="color: inherit;"
|
|
58
|
-
@click="viewSource"
|
|
59
|
-
>
|
|
29
|
+
<v-btn v-if="viewSourceEnabled()" icon style="color: inherit;" @click="viewSource">
|
|
60
30
|
<v-icon>zoom_in</v-icon>
|
|
61
31
|
</v-btn>
|
|
62
32
|
</v-toolbar>
|
|
@@ -75,7 +45,7 @@ export default {
|
|
|
75
45
|
props: {
|
|
76
46
|
page: { type: Object, required: true }
|
|
77
47
|
},
|
|
78
|
-
data: function() {
|
|
48
|
+
data: function () {
|
|
79
49
|
return {
|
|
80
50
|
drawerTrigger: null,
|
|
81
51
|
navBar: {},
|
|
@@ -84,11 +54,11 @@ export default {
|
|
|
84
54
|
};
|
|
85
55
|
},
|
|
86
56
|
computed: {
|
|
87
|
-
style: function() {
|
|
57
|
+
style: function () {
|
|
88
58
|
return Object.assign(this.genericStyles(this.navBar), this.leftPadding);
|
|
89
59
|
},
|
|
90
60
|
// We could've used the `app` attribute on `v-toolbar` if it didn't conflict with our header-footer css.
|
|
91
|
-
leftPadding: function() {
|
|
61
|
+
leftPadding: function () {
|
|
92
62
|
switch (this.$vuetify.breakpoint.name) {
|
|
93
63
|
case "lg":
|
|
94
64
|
case "xl":
|
|
@@ -124,11 +94,11 @@ export default {
|
|
|
124
94
|
styleClasses: styleClasses
|
|
125
95
|
});
|
|
126
96
|
},
|
|
127
|
-
viewSourceEnabled: function() {
|
|
97
|
+
viewSourceEnabled: function () {
|
|
128
98
|
// return process.env.NODE_ENV === "development";
|
|
129
99
|
return false;
|
|
130
100
|
},
|
|
131
|
-
viewSource: function() {
|
|
101
|
+
viewSource: function () {
|
|
132
102
|
const properties = { message: this.page };
|
|
133
103
|
Utils.launch.dialog.open(Object.assign({}, properties));
|
|
134
104
|
},
|
|
@@ -157,11 +127,13 @@ export default {
|
|
|
157
127
|
&.icon {
|
|
158
128
|
color: inherit;
|
|
159
129
|
}
|
|
130
|
+
|
|
160
131
|
&.text {
|
|
161
132
|
color: inherit;
|
|
162
133
|
}
|
|
163
134
|
}
|
|
164
135
|
}
|
|
136
|
+
|
|
165
137
|
.pages-navBar {
|
|
166
138
|
box-shadow: none !important;
|
|
167
139
|
}
|
package/nav/drawer.vue
CHANGED
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
// import UrlUtils from "../utils/url";
|
|
52
52
|
import NavDrawerButton from "./drawerButton";
|
|
53
53
|
import NavDrawerLabel from "./drawerLabel";
|
|
54
|
+
import bus from "../utils/eventBus";
|
|
54
55
|
|
|
55
56
|
export default {
|
|
56
57
|
components: {
|
|
@@ -102,12 +103,10 @@ export default {
|
|
|
102
103
|
methods: {
|
|
103
104
|
$ready() {
|
|
104
105
|
this.shrunk = this.mini = this.cssClasses.includes("mini");
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
this.updateState(false);
|
|
110
|
-
}
|
|
106
|
+
},
|
|
107
|
+
$mounted() {
|
|
108
|
+
bus.$on("drawers/toggle", () => {
|
|
109
|
+
this.updateState(!this.state);
|
|
111
110
|
});
|
|
112
111
|
},
|
|
113
112
|
updateState(state) {
|
package/nav/drawerButton.vue
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/settings.json.example
CHANGED
|
File without changes
|
package/styles/test.sass
CHANGED
|
File without changes
|
package/styles/test.scss
CHANGED
|
File without changes
|
|
File without changes
|
package/utils/dom.js
CHANGED
|
File without changes
|
package/utils/public.js
CHANGED
|
File without changes
|
package/utils/settings.js
CHANGED
|
File without changes
|
package/utils/storage.js
CHANGED
|
File without changes
|
package/utils/url.js
CHANGED
|
File without changes
|