glib-web 0.11.13 → 0.11.17
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/components/fields/radio.vue +27 -22
- package/components/fields/radioGroup.vue +19 -2
- package/components/fields/textarea.vue +1 -0
- package/nav/dialog.vue +22 -12
- package/package.json +2 -2
- package/static/plugins/alignment/alignment.min.js +0 -0
- package/static/plugins/beyondgrammar/beyondgrammar.min.js +0 -0
- package/static/plugins/blockcode/blockcode.min.js +0 -0
- package/static/plugins/clips/clips.min.js +0 -0
- package/static/plugins/counter/counter.min.js +0 -0
- package/static/plugins/definedlinks/definedlinks.min.js +0 -0
- package/static/plugins/handle/handle.min.js +0 -0
- package/static/plugins/icons/icons.min.js +0 -0
- package/static/plugins/imageposition/imageposition.min.js +0 -0
- package/static/plugins/inlineformat/inlineformat.min.js +0 -0
- package/static/plugins/removeformat/removeformat.min.js +0 -0
- package/static/plugins/selector/selector.min.js +0 -0
- package/static/plugins/specialchars/specialchars.min.js +0 -0
- package/static/plugins/textdirection/textdirection.min.js +0 -0
- package/static/plugins/textexpander/textexpander.min.js +0 -0
- package/static/plugins/underline/underline.min.js +0 -0
- package/static/redactorx.min.css +0 -0
- package/static/redactorx.min.js +0 -0
|
@@ -1,26 +1,31 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<v-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
2
|
+
<div :class="$classes()">
|
|
3
|
+
<v-tooltip
|
|
4
|
+
:disabled="tooltip.disabled"
|
|
5
|
+
:top="tooltipPositionMatches('top')"
|
|
6
|
+
:right="tooltipPositionMatches('right')"
|
|
7
|
+
:bottom="tooltipPositionMatches('bottom')"
|
|
8
|
+
:left="tooltipPositionMatches('left')"
|
|
9
|
+
>
|
|
10
|
+
<template v-slot:activator="{ on }">
|
|
11
|
+
<v-radio
|
|
12
|
+
:label="spec.label"
|
|
13
|
+
:value="spec.value.presence() || vuetifyEmptyString"
|
|
14
|
+
:disabled="spec.readOnly"
|
|
15
|
+
:on-icon="spec.onIcon"
|
|
16
|
+
:off-icon="spec.offIcon"
|
|
17
|
+
v-on="on"
|
|
18
|
+
@click="$onClick()"
|
|
19
|
+
/>
|
|
20
|
+
<div v-if="spec.childViews" class="radio-childviews">
|
|
21
|
+
<div v-for="(item, i) in spec.childViews" :key="i">
|
|
22
|
+
<glib-component :spec="item" />
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
|
26
|
+
<span>{{ tooltip.text }}</span>
|
|
27
|
+
</v-tooltip>
|
|
28
|
+
</div>
|
|
24
29
|
</template>
|
|
25
30
|
|
|
26
31
|
<script>
|
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
:row="spec.row"
|
|
8
8
|
@change="onChange"
|
|
9
9
|
>
|
|
10
|
-
<div v-for="(
|
|
11
|
-
<
|
|
10
|
+
<div v-for="(childView, index) in spec.childViews" :key="index">
|
|
11
|
+
<div :class="activeClass(childView)" @click="updateValue(childView)">
|
|
12
|
+
<glib-component :spec="childView" />
|
|
13
|
+
</div>
|
|
12
14
|
</div>
|
|
13
15
|
|
|
14
16
|
<input
|
|
@@ -32,6 +34,21 @@ export default {
|
|
|
32
34
|
GLib.action.execute(onChange, this);
|
|
33
35
|
});
|
|
34
36
|
});
|
|
37
|
+
},
|
|
38
|
+
updateValue(variable) {
|
|
39
|
+
if (variable.value) {
|
|
40
|
+
this.fieldModel = variable.value;
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
activeClass(childView) {
|
|
44
|
+
if (
|
|
45
|
+
childView.view.includes("fields/radio") &&
|
|
46
|
+
this.fieldModel == childView.value
|
|
47
|
+
) {
|
|
48
|
+
return "radio--active";
|
|
49
|
+
} else {
|
|
50
|
+
return "";
|
|
51
|
+
}
|
|
35
52
|
}
|
|
36
53
|
}
|
|
37
54
|
};
|
package/nav/dialog.vue
CHANGED
|
@@ -60,6 +60,7 @@ export default {
|
|
|
60
60
|
footer: null,
|
|
61
61
|
model: null,
|
|
62
62
|
url: null,
|
|
63
|
+
urlLoaded: false,
|
|
63
64
|
showClose: false
|
|
64
65
|
};
|
|
65
66
|
},
|
|
@@ -74,8 +75,9 @@ export default {
|
|
|
74
75
|
$ready() {
|
|
75
76
|
this.$root.vueApp = this.vueApp;
|
|
76
77
|
|
|
77
|
-
this.show();
|
|
78
|
+
this.show(false);
|
|
78
79
|
this.stack.push(this);
|
|
80
|
+
console.log("DIALOG READY1", this.stack.length);
|
|
79
81
|
},
|
|
80
82
|
$tearDown() {
|
|
81
83
|
console.log("Dialog destroyed");
|
|
@@ -91,23 +93,31 @@ export default {
|
|
|
91
93
|
},
|
|
92
94
|
reload(newSpec) {
|
|
93
95
|
this.spec = newSpec;
|
|
94
|
-
this.
|
|
96
|
+
this.urlLoaded = false;
|
|
97
|
+
this.show(true);
|
|
95
98
|
},
|
|
96
|
-
show() {
|
|
99
|
+
show(reload) {
|
|
97
100
|
const spec = this.spec;
|
|
98
101
|
this.url = spec.url;
|
|
99
102
|
this.showClose = Utils.type.isString(this.url);
|
|
100
103
|
|
|
101
104
|
if (Utils.type.isString(this.url)) {
|
|
102
|
-
this.
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
this.
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
105
|
+
if (!this.urlLoaded) {
|
|
106
|
+
if (!reload) {
|
|
107
|
+
this.message = "Loading...";
|
|
108
|
+
}
|
|
109
|
+
const url = Utils.url.appendParams(this.url, { _dialog: "v1" });
|
|
110
|
+
Http.execute({ url: url }, "GET", this, response => {
|
|
111
|
+
Utils.http.forceComponentUpdate(() => {
|
|
112
|
+
this.urlLoaded = true;
|
|
113
|
+
this.title = response.title;
|
|
114
|
+
this.message = "";
|
|
115
|
+
this.body = response.body;
|
|
116
|
+
this.footer = response.footer;
|
|
117
|
+
this.showClose = this.spec.showClose || false;
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
}
|
|
111
121
|
} else {
|
|
112
122
|
this.title = this.spec.title;
|
|
113
123
|
this.message = this.spec.message;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/static/redactorx.min.css
CHANGED
|
File without changes
|
package/static/redactorx.min.js
CHANGED
|
File without changes
|