glib-web 0.5.77 → 0.5.78
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/README.md +0 -0
- package/action.js +167 -167
- package/actions/analytics/logEvent.js +0 -0
- package/actions/cables/push.js +0 -0
- package/actions/dialogs/notification.js +0 -0
- package/actions/http/patch.js +0 -0
- package/actions/panels/scrollTo.js +18 -18
- package/actions/panels/scrollToBottom.js +0 -0
- package/actions/timeouts/set.js +20 -20
- package/actions/windows/close.js +0 -0
- package/actions/windows/closeAll.js +0 -0
- package/actions/windows/closeWithReload.js +0 -0
- package/actions/windows/refreshState.js +5 -5
- package/actions/windows/reload.js +0 -0
- package/actions/ws/push.js +0 -0
- package/app.vue +180 -180
- package/components/_button.vue +101 -101
- package/components/_dropdownMenu.vue +76 -76
- package/components/_icon.vue +50 -50
- package/components/avatar.vue +16 -16
- package/components/banners/alert.vue +0 -0
- package/components/banners/select.vue +82 -82
- package/components/component.vue +222 -222
- package/components/fields/_patternText.vue +61 -61
- package/components/fields/_select.vue +86 -86
- package/components/fields/autocomplete.vue +73 -73
- package/components/fields/check.vue +104 -104
- package/components/fields/creditCard.vue +0 -0
- package/components/fields/dynamicGroup.vue +0 -0
- package/components/fields/hidden.vue +0 -0
- package/components/fields/location.vue +0 -0
- package/components/fields/newRichText.vue +0 -0
- package/components/fields/phone/countries.js +315 -315
- package/components/fields/phone/field.vue +348 -348
- package/components/fields/phone/sprite.css +1071 -1071
- package/components/fields/radio.vue +64 -64
- package/components/fields/radioGroup.vue +0 -0
- package/components/fields/rating.vue +0 -0
- package/components/fields/richText.vue +0 -0
- package/components/fields/select.vue +17 -17
- package/components/fields/stripe/stripeFields.vue +93 -93
- package/components/fields/stripe/stripeIndividualFields.vue +207 -207
- package/components/fields/stripeExternalAccount.vue +135 -135
- package/components/fields/text.vue +0 -0
- package/components/fields/textarea.vue +0 -0
- package/components/fields/timeZone.vue +22 -22
- package/components/fields/timer.vue +83 -83
- package/components/h1.vue +28 -28
- package/components/h2.vue +20 -20
- package/components/h3.vue +22 -22
- package/components/h4.vue +20 -20
- package/components/h5.vue +20 -20
- package/components/h6.vue +20 -20
- package/components/icon.vue +25 -25
- package/components/label.vue +62 -62
- package/components/map.vue +0 -0
- package/components/mixins/events.js +178 -178
- package/components/mixins/generic.js +0 -0
- package/components/mixins/list/autoload.js +0 -0
- package/components/mixins/styles.js +221 -221
- package/components/mixins/table/autoload.js +0 -0
- package/components/mixins/text.js +20 -20
- package/components/mixins/ws/actionCable.js +48 -48
- package/components/mixins/ws/phoenixSocket.js +0 -0
- package/components/panels/carousel.vue +55 -55
- package/components/panels/flow.vue +81 -81
- package/components/panels/form.vue +126 -126
- package/components/panels/list.vue +0 -0
- package/components/panels/scroll.vue +0 -0
- package/components/panels/table.vue +0 -0
- package/components/panels/ul.vue +34 -34
- package/components/panels/vertical.vue +0 -0
- package/components/panels/web.vue +11 -11
- package/components/spacer.vue +0 -0
- package/components/switch.vue +42 -42
- package/extensions/string.js +21 -21
- package/index.js +195 -195
- package/nav/content.vue +0 -0
- package/nav/dialog.vue +127 -127
- package/nav/snackbar.vue +0 -0
- package/package.json +42 -42
- package/static/plugins/alignment/alignment.js +0 -0
- package/static/plugins/alignment/alignment.min.js +0 -0
- package/static/plugins/beyondgrammar/beyondgrammar.js +0 -0
- package/static/plugins/beyondgrammar/beyondgrammar.min.js +0 -0
- package/static/plugins/blockcode/blockcode.js +0 -0
- package/static/plugins/blockcode/blockcode.min.js +0 -0
- package/static/plugins/clips/clips.js +0 -0
- package/static/plugins/clips/clips.min.js +0 -0
- package/static/plugins/counter/counter.js +0 -0
- package/static/plugins/counter/counter.min.js +0 -0
- package/static/plugins/definedlinks/definedlinks.js +0 -0
- package/static/plugins/definedlinks/definedlinks.min.js +0 -0
- package/static/plugins/handle/handle.js +0 -0
- package/static/plugins/handle/handle.min.js +0 -0
- package/static/plugins/icons/icons.js +0 -0
- package/static/plugins/icons/icons.min.js +0 -0
- package/static/plugins/imageposition/imageposition.js +0 -0
- package/static/plugins/imageposition/imageposition.min.js +0 -0
- package/static/plugins/inlineformat/inlineformat.js +0 -0
- package/static/plugins/inlineformat/inlineformat.min.js +0 -0
- package/static/plugins/removeformat/removeformat.js +0 -0
- package/static/plugins/removeformat/removeformat.min.js +0 -0
- package/static/plugins/selector/selector.js +0 -0
- package/static/plugins/selector/selector.min.js +0 -0
- package/static/plugins/specialchars/specialchars.js +0 -0
- package/static/plugins/specialchars/specialchars.min.js +0 -0
- package/static/plugins/textdirection/textdirection.js +0 -0
- package/static/plugins/textdirection/textdirection.min.js +0 -0
- package/static/plugins/textexpander/textexpander.js +0 -0
- package/static/plugins/textexpander/textexpander.min.js +0 -0
- package/static/plugins/underline/underline.js +0 -0
- package/static/plugins/underline/underline.min.js +0 -0
- package/static/redactorx.css +0 -0
- package/static/redactorx.js +0 -0
- package/static/redactorx.min.css +0 -0
- package/static/redactorx.min.js +0 -0
- package/static/redactorx.usm.min.js +0 -0
- package/templates/_menu.vue +38 -38
- package/templates/comment.vue +202 -202
- package/templates/featured.vue +32 -32
- package/templates/thumbnail.vue +138 -138
- package/templates/unsupported.vue +12 -12
- package/utils/app.js +0 -0
- package/utils/hash.js +0 -0
- package/utils/helper.js +0 -0
- package/utils/history.js +70 -70
- package/utils/http.js +209 -209
- package/utils/launch.js +135 -135
- package/utils/private/ws.js +0 -0
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-radio
|
|
3
|
-
:label="spec.label"
|
|
4
|
-
:value="spec.value.presence() || vuetifyEmptyString"
|
|
5
|
-
:off-icon="data.icon || '$vuetify.icons.radioOff'"
|
|
6
|
-
:on-icon="data.icon || '$vuetify.icons.radioOn'"
|
|
7
|
-
:class="$classes()"
|
|
8
|
-
:disabled="spec.readOnly"
|
|
9
|
-
@change="changed"
|
|
10
|
-
></v-radio>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script>
|
|
14
|
-
export default {
|
|
15
|
-
props: {
|
|
16
|
-
spec: { type: Object, required: true }
|
|
17
|
-
},
|
|
18
|
-
data() {
|
|
19
|
-
return {
|
|
20
|
-
groupElement: null,
|
|
21
|
-
data: { value: this.spec.value, icon: null }
|
|
22
|
-
};
|
|
23
|
-
},
|
|
24
|
-
methods: {
|
|
25
|
-
$ready() {
|
|
26
|
-
this.groupElement = this.$el.closest("[data-component=radioGroup]");
|
|
27
|
-
|
|
28
|
-
// Execute later to ensure the radioGroup has registered its event listener
|
|
29
|
-
const vm = this;
|
|
30
|
-
setTimeout(function() {
|
|
31
|
-
const ev = new Event("add");
|
|
32
|
-
ev.spec = vm.data;
|
|
33
|
-
vm.$type.ifObject(vm.groupElement, val => val.dispatchEvent(ev));
|
|
34
|
-
}, 100);
|
|
35
|
-
},
|
|
36
|
-
changed(event) {
|
|
37
|
-
// Execute later to ensure the checkbox's checked state has been updated.
|
|
38
|
-
const vm = this;
|
|
39
|
-
setTimeout(function() {
|
|
40
|
-
vm.$type.ifObject(vm.groupElement, val =>
|
|
41
|
-
val.dispatchEvent(new Event("change"))
|
|
42
|
-
);
|
|
43
|
-
}, 100);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
</script>
|
|
48
|
-
|
|
49
|
-
<style lang="scss">
|
|
50
|
-
.v-input--selection-controls {
|
|
51
|
-
.v-radio.vertical {
|
|
52
|
-
display: inline-block;
|
|
53
|
-
text-align: center;
|
|
54
|
-
|
|
55
|
-
.v-input--selection-controls__input {
|
|
56
|
-
margin-right: 0;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
label {
|
|
60
|
-
display: block;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<v-radio
|
|
3
|
+
:label="spec.label"
|
|
4
|
+
:value="spec.value.presence() || vuetifyEmptyString"
|
|
5
|
+
:off-icon="data.icon || '$vuetify.icons.radioOff'"
|
|
6
|
+
:on-icon="data.icon || '$vuetify.icons.radioOn'"
|
|
7
|
+
:class="$classes()"
|
|
8
|
+
:disabled="spec.readOnly"
|
|
9
|
+
@change="changed"
|
|
10
|
+
></v-radio>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
export default {
|
|
15
|
+
props: {
|
|
16
|
+
spec: { type: Object, required: true }
|
|
17
|
+
},
|
|
18
|
+
data() {
|
|
19
|
+
return {
|
|
20
|
+
groupElement: null,
|
|
21
|
+
data: { value: this.spec.value, icon: null }
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
methods: {
|
|
25
|
+
$ready() {
|
|
26
|
+
this.groupElement = this.$el.closest("[data-component=radioGroup]");
|
|
27
|
+
|
|
28
|
+
// Execute later to ensure the radioGroup has registered its event listener
|
|
29
|
+
const vm = this;
|
|
30
|
+
setTimeout(function() {
|
|
31
|
+
const ev = new Event("add");
|
|
32
|
+
ev.spec = vm.data;
|
|
33
|
+
vm.$type.ifObject(vm.groupElement, val => val.dispatchEvent(ev));
|
|
34
|
+
}, 100);
|
|
35
|
+
},
|
|
36
|
+
changed(event) {
|
|
37
|
+
// Execute later to ensure the checkbox's checked state has been updated.
|
|
38
|
+
const vm = this;
|
|
39
|
+
setTimeout(function() {
|
|
40
|
+
vm.$type.ifObject(vm.groupElement, val =>
|
|
41
|
+
val.dispatchEvent(new Event("change"))
|
|
42
|
+
);
|
|
43
|
+
}, 100);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
</script>
|
|
48
|
+
|
|
49
|
+
<style lang="scss">
|
|
50
|
+
.v-input--selection-controls {
|
|
51
|
+
.v-radio.vertical {
|
|
52
|
+
display: inline-block;
|
|
53
|
+
text-align: center;
|
|
54
|
+
|
|
55
|
+
.v-input--selection-controls__input {
|
|
56
|
+
margin-right: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
label {
|
|
60
|
+
display: block;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
</style>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<fields-genericSelect :spec="spec" />
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script>
|
|
6
|
-
import SelectField from "./_select";
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
components: {
|
|
10
|
-
// Need to start with `fields-` to enable jsonlogic in `styles.js#_linkFieldModels`
|
|
11
|
-
"fields-genericSelect": SelectField
|
|
12
|
-
},
|
|
13
|
-
props: {
|
|
14
|
-
spec: { type: Object, required: true }
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<fields-genericSelect :spec="spec" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
import SelectField from "./_select";
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
components: {
|
|
10
|
+
// Need to start with `fields-` to enable jsonlogic in `styles.js#_linkFieldModels`
|
|
11
|
+
"fields-genericSelect": SelectField
|
|
12
|
+
},
|
|
13
|
+
props: {
|
|
14
|
+
spec: { type: Object, required: true }
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
</script>
|
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div ref="container">
|
|
4
|
-
<!-- A Stripe Element will be inserted here. -->
|
|
5
|
-
</div>
|
|
6
|
-
</div>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script>
|
|
10
|
-
export default {
|
|
11
|
-
props: {
|
|
12
|
-
spec: { type: Object, required: true },
|
|
13
|
-
onComplete: {
|
|
14
|
-
type: Function,
|
|
15
|
-
required: true
|
|
16
|
-
},
|
|
17
|
-
onError: {
|
|
18
|
-
type: Function,
|
|
19
|
-
required: true
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
data() {
|
|
23
|
-
return {
|
|
24
|
-
stripe: null,
|
|
25
|
-
card: null
|
|
26
|
-
};
|
|
27
|
-
},
|
|
28
|
-
watch: {
|
|
29
|
-
"$root.vueApp.stateUpdatedAt": function(val, oldVal) {
|
|
30
|
-
this.onComplete(this.stripe, this.card);
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
mounted() {
|
|
34
|
-
this.stripe = Stripe(this.spec.publicKey);
|
|
35
|
-
const elements = this.stripe.elements();
|
|
36
|
-
|
|
37
|
-
const style = {
|
|
38
|
-
base: {
|
|
39
|
-
fontSize: "16px",
|
|
40
|
-
color: "#32325d"
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
this.card = elements.create("card", { style: style });
|
|
45
|
-
this.card.mount(this.$refs.container);
|
|
46
|
-
|
|
47
|
-
this._registerEvent();
|
|
48
|
-
},
|
|
49
|
-
methods: {
|
|
50
|
-
_registerEvent() {
|
|
51
|
-
this.card.addEventListener("change", event => {
|
|
52
|
-
const error = event.error;
|
|
53
|
-
if (error) {
|
|
54
|
-
this.onError(error.message);
|
|
55
|
-
} else {
|
|
56
|
-
this.onError("");
|
|
57
|
-
}
|
|
58
|
-
if (event.complete) {
|
|
59
|
-
this.onComplete(this.stripe, this.card);
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
</script>
|
|
66
|
-
|
|
67
|
-
<style lang="scss" scoped>
|
|
68
|
-
.outlined {
|
|
69
|
-
.StripeElement {
|
|
70
|
-
box-sizing: border-box;
|
|
71
|
-
height: 60px;
|
|
72
|
-
padding: 18px 12px;
|
|
73
|
-
border: 1px solid #999999;
|
|
74
|
-
border-radius: 4px;
|
|
75
|
-
background-color: white;
|
|
76
|
-
box-shadow: 0 1px 3px 0 #e6ebf1;
|
|
77
|
-
-webkit-transition: box-shadow 150ms ease;
|
|
78
|
-
transition: box-shadow 150ms ease;
|
|
79
|
-
}
|
|
80
|
-
.StripeElement:hover {
|
|
81
|
-
border-color: #000000;
|
|
82
|
-
cursor: text;
|
|
83
|
-
}
|
|
84
|
-
.StripeElement--focus {
|
|
85
|
-
border-color: #1976d2;
|
|
86
|
-
border-width: 2px;
|
|
87
|
-
}
|
|
88
|
-
.StripeElement--invalid {
|
|
89
|
-
border-color: #f44336;
|
|
90
|
-
border-width: 2px;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div ref="container">
|
|
4
|
+
<!-- A Stripe Element will be inserted here. -->
|
|
5
|
+
</div>
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
export default {
|
|
11
|
+
props: {
|
|
12
|
+
spec: { type: Object, required: true },
|
|
13
|
+
onComplete: {
|
|
14
|
+
type: Function,
|
|
15
|
+
required: true
|
|
16
|
+
},
|
|
17
|
+
onError: {
|
|
18
|
+
type: Function,
|
|
19
|
+
required: true
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
data() {
|
|
23
|
+
return {
|
|
24
|
+
stripe: null,
|
|
25
|
+
card: null
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
watch: {
|
|
29
|
+
"$root.vueApp.stateUpdatedAt": function(val, oldVal) {
|
|
30
|
+
this.onComplete(this.stripe, this.card);
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
mounted() {
|
|
34
|
+
this.stripe = Stripe(this.spec.publicKey);
|
|
35
|
+
const elements = this.stripe.elements();
|
|
36
|
+
|
|
37
|
+
const style = {
|
|
38
|
+
base: {
|
|
39
|
+
fontSize: "16px",
|
|
40
|
+
color: "#32325d"
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
this.card = elements.create("card", { style: style });
|
|
45
|
+
this.card.mount(this.$refs.container);
|
|
46
|
+
|
|
47
|
+
this._registerEvent();
|
|
48
|
+
},
|
|
49
|
+
methods: {
|
|
50
|
+
_registerEvent() {
|
|
51
|
+
this.card.addEventListener("change", event => {
|
|
52
|
+
const error = event.error;
|
|
53
|
+
if (error) {
|
|
54
|
+
this.onError(error.message);
|
|
55
|
+
} else {
|
|
56
|
+
this.onError("");
|
|
57
|
+
}
|
|
58
|
+
if (event.complete) {
|
|
59
|
+
this.onComplete(this.stripe, this.card);
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
</script>
|
|
66
|
+
|
|
67
|
+
<style lang="scss" scoped>
|
|
68
|
+
.outlined {
|
|
69
|
+
.StripeElement {
|
|
70
|
+
box-sizing: border-box;
|
|
71
|
+
height: 60px;
|
|
72
|
+
padding: 18px 12px;
|
|
73
|
+
border: 1px solid #999999;
|
|
74
|
+
border-radius: 4px;
|
|
75
|
+
background-color: white;
|
|
76
|
+
box-shadow: 0 1px 3px 0 #e6ebf1;
|
|
77
|
+
-webkit-transition: box-shadow 150ms ease;
|
|
78
|
+
transition: box-shadow 150ms ease;
|
|
79
|
+
}
|
|
80
|
+
.StripeElement:hover {
|
|
81
|
+
border-color: #000000;
|
|
82
|
+
cursor: text;
|
|
83
|
+
}
|
|
84
|
+
.StripeElement--focus {
|
|
85
|
+
border-color: #1976d2;
|
|
86
|
+
border-width: 2px;
|
|
87
|
+
}
|
|
88
|
+
.StripeElement--invalid {
|
|
89
|
+
border-color: #f44336;
|
|
90
|
+
border-width: 2px;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
</style>
|