glib-web 0.5.98 → 0.6.2
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/README.md +0 -0
- package/action.js +167 -167
- package/actions/analytics/logEvent.js +0 -0
- package/actions/auth/creditCard.js +0 -0
- package/actions/auth/restart.js +0 -0
- package/actions/auth/saveCsrfToken.js +0 -0
- package/actions/cables/push.js +0 -0
- package/actions/dialogs/alert.js +0 -0
- package/actions/dialogs/notification.js +0 -0
- package/actions/dialogs/oauth.js +0 -0
- package/actions/dialogs/open.js +0 -0
- package/actions/dialogs/options.js +0 -0
- package/actions/dialogs/show.js +0 -0
- package/actions/forms/submit.js +0 -0
- package/actions/http/delete.js +0 -0
- package/actions/http/patch.js +0 -0
- package/actions/http/post.js +0 -0
- package/actions/http/put.js +0 -0
- package/actions/panels/scrollTo.js +18 -18
- package/actions/panels/scrollToBottom.js +0 -0
- package/actions/runMultiple.js +0 -0
- package/actions/sheets/select.js +0 -0
- package/actions/snackbars/alert.js +0 -0
- package/actions/snackbars/select.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/open.js +0 -0
- package/actions/windows/openWeb.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/_badge.vue +23 -23
- package/components/_button.vue +107 -107
- package/components/_dropdownMenu.vue +76 -76
- package/components/_icon.vue +50 -50
- package/components/_message.vue +0 -0
- package/components/avatar.vue +18 -18
- package/components/banners/alert.vue +0 -0
- package/components/banners/select.vue +82 -82
- package/components/button.vue +33 -40
- package/components/calendar.vue +0 -0
- package/components/charts/column.vue +47 -34
- package/components/charts/line.vue +67 -65
- package/components/chip.vue +51 -26
- package/components/component.vue +225 -225
- package/components/datetime.vue +0 -0
- package/components/fab.vue +0 -0
- package/components/fields/_patternText.vue +65 -65
- package/components/fields/_select.vue +86 -86
- package/components/fields/autocomplete.vue +73 -73
- package/components/fields/check.vue +91 -81
- package/components/fields/checkGroup.vue +58 -58
- 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/creditCard.vue +22 -13
- package/components/fields/date.vue +24 -24
- package/components/fields/datetime.vue +0 -0
- package/components/fields/dynamicGroup.vue +0 -0
- package/components/fields/dynamicSelect.vue +0 -0
- package/components/fields/file.vue +0 -0
- package/components/fields/googlePlace.vue +0 -0
- package/components/fields/hidden.vue +0 -0
- package/components/fields/location.vue +198 -198
- package/components/fields/newRichText.vue +0 -0
- package/components/fields/phone/countries.js +315 -315
- package/components/fields/phone/field.vue +351 -351
- package/components/fields/phone/sprite.css +1071 -1071
- package/components/fields/radio.vue +16 -16
- package/components/fields/radioGroup.vue +42 -42
- 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 +28 -20
- package/components/h3.vue +29 -22
- package/components/h4.vue +28 -20
- package/components/h5.vue +28 -20
- package/components/h6.vue +28 -20
- package/components/hr.vue +0 -0
- package/components/html.vue +0 -0
- package/components/icon.vue +25 -25
- package/components/image.vue +0 -0
- package/components/label.vue +62 -62
- package/components/map.vue +0 -0
- package/components/markdown.vue +0 -0
- package/components/mixins/{chart.js → chart/annotation.js} +73 -73
- package/components/mixins/chart/tooltip.js +31 -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/longClick.js +0 -0
- package/components/mixins/scrolling.js +0 -0
- package/components/mixins/styles.js +222 -222
- package/components/mixins/table/autoload.js +0 -0
- package/components/mixins/table/export.js +0 -0
- package/components/mixins/table/import.js +0 -0
- package/components/mixins/text.js +20 -20
- package/components/mixins/tooltip.js +11 -0
- package/components/mixins/ws/actionCable.js +48 -48
- package/components/mixins/ws/phoenixSocket.js +0 -0
- package/components/p.vue +0 -0
- package/components/panels/carousel.vue +55 -55
- package/components/panels/column.vue +0 -0
- package/components/panels/custom.vue +0 -0
- package/components/panels/flow.vue +81 -81
- package/components/panels/form.vue +130 -130
- package/components/panels/horizontal.vue +0 -0
- package/components/panels/list.vue +247 -247
- package/components/panels/responsive.vue +94 -94
- package/components/panels/scroll.vue +0 -0
- package/components/panels/split.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/progressbar.vue +36 -36
- package/components/spacer.vue +0 -0
- package/components/switch.vue +42 -42
- package/components/tabBar.vue +68 -68
- package/extensions/array.js +0 -0
- package/extensions/string.js +21 -21
- package/index.js +199 -199
- package/keys.js +0 -0
- package/nav/appbar.vue +136 -136
- package/nav/content.vue +0 -0
- package/nav/dialog.vue +127 -127
- package/nav/drawer.vue +105 -105
- package/nav/drawerButton.vue +31 -31
- package/nav/drawerLabel.vue +0 -0
- package/nav/sheet.vue +0 -0
- package/nav/snackbar.vue +0 -0
- package/package.json +44 -44
- package/settings.json.example +0 -0
- 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/styles/test.sass +0 -0
- package/styles/test.scss +0 -0
- package/templates/_menu.vue +38 -38
- package/templates/comment.vue +202 -202
- package/templates/featured.vue +32 -32
- package/templates/thumbnail.vue +145 -145
- package/templates/unsupported.vue +12 -12
- package/utils/app.js +0 -0
- package/utils/dom.js +0 -0
- package/utils/form.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
- package/utils/public.js +0 -0
- package/utils/settings.js +0 -0
- package/utils/storage.js +0 -0
- package/utils/type.js +0 -0
- package/utils/uploader.js +0 -0
- package/utils/url.js +136 -136
|
@@ -1,65 +1,67 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<line-chart
|
|
3
|
-
:style="genericStyles()"
|
|
4
|
-
:class="$classes()"
|
|
5
|
-
:data="series"
|
|
6
|
-
:library="options"
|
|
7
|
-
></line-chart>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
this.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<line-chart
|
|
3
|
+
:style="genericStyles()"
|
|
4
|
+
:class="$classes()"
|
|
5
|
+
:data="series"
|
|
6
|
+
:library="options"
|
|
7
|
+
></line-chart>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
import annotation from "../mixins/chart/annotation.js";
|
|
12
|
+
import tooltip from "../mixins/chart/tooltip.js";
|
|
13
|
+
|
|
14
|
+
export default {
|
|
15
|
+
mixins: [annotation, tooltip],
|
|
16
|
+
props: {
|
|
17
|
+
spec: { type: Object, required: true }
|
|
18
|
+
},
|
|
19
|
+
data: function() {
|
|
20
|
+
return {
|
|
21
|
+
series: [],
|
|
22
|
+
dataName: "dataSeries"
|
|
23
|
+
};
|
|
24
|
+
},
|
|
25
|
+
methods: {
|
|
26
|
+
$ready() {
|
|
27
|
+
this.series.clear();
|
|
28
|
+
this.renderData(this.spec.dataSeries);
|
|
29
|
+
this.fetchNext(this.spec.nextPage);
|
|
30
|
+
},
|
|
31
|
+
fetchData(url) {
|
|
32
|
+
const vm = this;
|
|
33
|
+
Utils.type.ifString(url, val => {
|
|
34
|
+
Utils.http.execute({ url: val }, "GET", this, response => {
|
|
35
|
+
vm.renderData(response.dataSeries);
|
|
36
|
+
vm.fetchNext(response.nextPage);
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
},
|
|
40
|
+
fetchNext(nextPage) {
|
|
41
|
+
if (!Utils.type.isObject(nextPage)) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (nextPage.autoload != "all") {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
this.fetchData(nextPage.url);
|
|
48
|
+
},
|
|
49
|
+
renderData(series) {
|
|
50
|
+
if (!Utils.type.isArray(series)) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const data = series.map(element => {
|
|
55
|
+
const dataPoints = {};
|
|
56
|
+
element.points.forEach(point => {
|
|
57
|
+
dataPoints[point.x] = point.y;
|
|
58
|
+
});
|
|
59
|
+
return { name: element.title, data: dataPoints };
|
|
60
|
+
});
|
|
61
|
+
this.series = this.series.concat(data);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
</script>
|
|
66
|
+
|
|
67
|
+
<style scoped></style>
|
package/components/chip.vue
CHANGED
|
@@ -1,26 +1,51 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-
|
|
3
|
-
|
|
4
|
-
:
|
|
5
|
-
:
|
|
6
|
-
:
|
|
7
|
-
|
|
8
|
-
>
|
|
9
|
-
{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
</
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<v-tooltip
|
|
3
|
+
:disabled="!spec.tooltip"
|
|
4
|
+
:top="tooltipPositionMatches('top')"
|
|
5
|
+
:right="tooltipPositionMatches('right')"
|
|
6
|
+
:bottom="tooltipPositionMatches('bottom')"
|
|
7
|
+
:left="tooltipPositionMatches('left')"
|
|
8
|
+
>
|
|
9
|
+
<template v-slot:activator="{ on }">
|
|
10
|
+
<div v-on="on">
|
|
11
|
+
<v-chip
|
|
12
|
+
v-if="spec.onClick"
|
|
13
|
+
:style="genericStyles()"
|
|
14
|
+
:class="$classes()"
|
|
15
|
+
:href="$href()"
|
|
16
|
+
@click="$onClick()"
|
|
17
|
+
>
|
|
18
|
+
{{ spec.text }}
|
|
19
|
+
<common-badge :spec="spec" />
|
|
20
|
+
</v-chip>
|
|
21
|
+
<v-chip v-else :style="genericStyles()" :class="$classes()">
|
|
22
|
+
{{ spec.text }}
|
|
23
|
+
<common-badge :spec="spec" />
|
|
24
|
+
</v-chip>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
<span>{{ tooltip.text }}</span>
|
|
28
|
+
</v-tooltip>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script>
|
|
32
|
+
import TooltipMixins from "./mixins/tooltip";
|
|
33
|
+
export default {
|
|
34
|
+
mixins: [TooltipMixins],
|
|
35
|
+
props: {
|
|
36
|
+
spec: { type: Object, required: true }
|
|
37
|
+
},
|
|
38
|
+
data: function() {
|
|
39
|
+
return {
|
|
40
|
+
tooltip: {}
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
methods: {
|
|
44
|
+
$ready() {
|
|
45
|
+
this.tooltip = this.spec.tooltip || {};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
</script>
|
|
50
|
+
|
|
51
|
+
<style scoped></style>
|
package/components/component.vue
CHANGED
|
@@ -1,225 +1,225 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<fields-text v-if="name == 'fields-text'" :spec="spec" type="text" />
|
|
3
|
-
<fields-text v-else-if="name == 'fields-number'" :spec="spec" type="number" />
|
|
4
|
-
<fields-text v-else-if="name == 'fields-email'" :spec="spec" type="email" />
|
|
5
|
-
<fields-text v-else-if="name == 'fields-url'" :spec="spec" type="url" />
|
|
6
|
-
<fields-text
|
|
7
|
-
v-else-if="name == 'fields-password'"
|
|
8
|
-
:spec="spec"
|
|
9
|
-
type="password"
|
|
10
|
-
/>
|
|
11
|
-
<!-- <fields-textarea v-else-if="spec.view == 'fields/textarea-v1'" :spec="spec" />
|
|
12
|
-
<fields-richText v-else-if="spec.view == 'fields/richText-v1'" :spec="spec" /> -->
|
|
13
|
-
<!-- <fields-file v-else-if="spec.view == 'fields/file-v1'" :spec="spec" />
|
|
14
|
-
<fields-select v-else-if="spec.view == 'fields/select-v1'" :spec="spec" />
|
|
15
|
-
<fields-dynamicSelect
|
|
16
|
-
v-else-if="spec.view == 'fields/dynamicSelect-v1'"
|
|
17
|
-
:spec="spec"
|
|
18
|
-
/> -->
|
|
19
|
-
<!-- <fields-country v-else-if="spec.view == 'fields/country-v1'" :spec="spec" /> -->
|
|
20
|
-
|
|
21
|
-
<!-- <fields-latLong v-else-if="spec.view == 'fields/latLong-v1'" :spec="spec" /> -->
|
|
22
|
-
<fields-googlePlace
|
|
23
|
-
v-else-if="spec.view == 'fields/googlePlace-v1'"
|
|
24
|
-
:spec="spec"
|
|
25
|
-
/>
|
|
26
|
-
|
|
27
|
-
<!-- <panels-responsive v-else-if="spec.view == 'panels/scroll-v1'" :spec="spec" /> -->
|
|
28
|
-
|
|
29
|
-
<component :is="name" v-else-if="name" :spec="spec" />
|
|
30
|
-
|
|
31
|
-
<div v-else>Unsupported view: {{ spec.view }}</div>
|
|
32
|
-
</template>
|
|
33
|
-
|
|
34
|
-
<script>
|
|
35
|
-
import H1 from "./h1";
|
|
36
|
-
import H2 from "./h2";
|
|
37
|
-
import H3 from "./h3";
|
|
38
|
-
import H4 from "./h4";
|
|
39
|
-
import H5 from "./h5";
|
|
40
|
-
import H6 from "./h6";
|
|
41
|
-
import Label from "./label";
|
|
42
|
-
import P from "./p";
|
|
43
|
-
import Markdown from "./markdown";
|
|
44
|
-
import Html from "./html";
|
|
45
|
-
import Chip from "./chip";
|
|
46
|
-
import Datetime from "./datetime";
|
|
47
|
-
|
|
48
|
-
import ProgressBar from "./progressbar";
|
|
49
|
-
|
|
50
|
-
import Image from "./image";
|
|
51
|
-
import Avatar from "./avatar";
|
|
52
|
-
import Icon from "./icon";
|
|
53
|
-
|
|
54
|
-
import Button from "./button";
|
|
55
|
-
import Fab from "./fab";
|
|
56
|
-
import Switch from "./switch";
|
|
57
|
-
|
|
58
|
-
import Hr from "./hr";
|
|
59
|
-
import Spacer from "./spacer";
|
|
60
|
-
|
|
61
|
-
import Map from "./map";
|
|
62
|
-
import TabBar from "./tabBar";
|
|
63
|
-
import Calendar from "./calendar";
|
|
64
|
-
|
|
65
|
-
import HiddenField from "./fields/hidden";
|
|
66
|
-
import TextField from "./fields/text";
|
|
67
|
-
import SubmitField from "./fields/submit";
|
|
68
|
-
import TextAreaField from "./fields/textarea";
|
|
69
|
-
import RichTextField from "./fields/richText";
|
|
70
|
-
import NewRichTextField from "./fields/newRichText";
|
|
71
|
-
import FileField from "./fields/file";
|
|
72
|
-
import AutocompleteField from "./fields/autocomplete";
|
|
73
|
-
import SelectField from "./fields/select";
|
|
74
|
-
import TimeZoneField from "./fields/timeZone";
|
|
75
|
-
import DynamicSelectField from "./fields/dynamicSelect";
|
|
76
|
-
import CountryField from "./fields/country/field";
|
|
77
|
-
import RadioGroupField from "./fields/radioGroup";
|
|
78
|
-
import RadioField from "./fields/radio";
|
|
79
|
-
import CheckGroupField from "./fields/checkGroup";
|
|
80
|
-
import CheckField from "./fields/check";
|
|
81
|
-
import DateField from "./fields/date";
|
|
82
|
-
import DateTimeField from "./fields/datetime";
|
|
83
|
-
import LocationField from "./fields/location";
|
|
84
|
-
import GooglePlaceField from "./fields/googlePlace";
|
|
85
|
-
import DynamicGroupField from "./fields/dynamicGroup";
|
|
86
|
-
import StripeTokenField from "./fields/stripeToken";
|
|
87
|
-
import StripeExternalAccount from "./fields/stripeExternalAccount";
|
|
88
|
-
import CreditCardField from "./fields/creditCard";
|
|
89
|
-
import RatingField from "./fields/rating";
|
|
90
|
-
import PhoneField from "./fields/phone/field";
|
|
91
|
-
import TimerField from "./fields/timer";
|
|
92
|
-
|
|
93
|
-
import ScrollPanel from "./panels/scroll";
|
|
94
|
-
import VerticalPanel from "./panels/vertical";
|
|
95
|
-
import HorizontalPanel from "./panels/horizontal";
|
|
96
|
-
import FlowPanel from "./panels/flow";
|
|
97
|
-
import SplitPanel from "./panels/split";
|
|
98
|
-
import FormPanel from "./panels/form";
|
|
99
|
-
import ListPanel from "./panels/list";
|
|
100
|
-
import CarouselPanel from "./panels/carousel";
|
|
101
|
-
import TablePanel from "./panels/table";
|
|
102
|
-
import CustomPanel from "./panels/custom";
|
|
103
|
-
import ColumnPanel from "./panels/column";
|
|
104
|
-
import ResponsivePanel from "./panels/responsive";
|
|
105
|
-
import UlPanel from "./panels/ul";
|
|
106
|
-
import WebPanel from "./panels/web";
|
|
107
|
-
|
|
108
|
-
import AlertBanner from "./banners/alert";
|
|
109
|
-
import SelectBanner from "./banners/select";
|
|
110
|
-
|
|
111
|
-
import LineChart from "./charts/line";
|
|
112
|
-
import ColumnChart from "./charts/column";
|
|
113
|
-
|
|
114
|
-
export default {
|
|
115
|
-
components: {
|
|
116
|
-
"views-h1": H1,
|
|
117
|
-
"views-h2": H2,
|
|
118
|
-
"views-h3": H3,
|
|
119
|
-
"views-h4": H4,
|
|
120
|
-
"views-h5": H5,
|
|
121
|
-
"views-h6": H6,
|
|
122
|
-
"views-label": Label,
|
|
123
|
-
"views-p": P,
|
|
124
|
-
"views-markdown": Markdown,
|
|
125
|
-
"views-html": Html,
|
|
126
|
-
"views-chip": Chip,
|
|
127
|
-
"views-datetime": Datetime,
|
|
128
|
-
"views-progressBar": ProgressBar,
|
|
129
|
-
|
|
130
|
-
"views-image": Image,
|
|
131
|
-
"views-avatar": Avatar,
|
|
132
|
-
"views-icon": Icon,
|
|
133
|
-
|
|
134
|
-
"views-button": Button,
|
|
135
|
-
"views-fab": Fab,
|
|
136
|
-
"views-switch": Switch,
|
|
137
|
-
|
|
138
|
-
"views-hr": Hr,
|
|
139
|
-
"views-spacer": Spacer,
|
|
140
|
-
|
|
141
|
-
"views-map": Map,
|
|
142
|
-
"views-tabBar": TabBar,
|
|
143
|
-
"views-calendar": Calendar,
|
|
144
|
-
|
|
145
|
-
"fields-hidden": HiddenField,
|
|
146
|
-
"fields-text": TextField,
|
|
147
|
-
"fields-submit": SubmitField,
|
|
148
|
-
"fields-textarea": TextAreaField,
|
|
149
|
-
"fields-richText": RichTextField,
|
|
150
|
-
"fields-newRichText": NewRichTextField,
|
|
151
|
-
"fields-file": FileField,
|
|
152
|
-
"fields-autocomplete": AutocompleteField,
|
|
153
|
-
"fields-select": SelectField,
|
|
154
|
-
"fields-timeZone": TimeZoneField,
|
|
155
|
-
"fields-dynamicSelect": DynamicSelectField,
|
|
156
|
-
"fields-country": CountryField,
|
|
157
|
-
"fields-radioGroup": RadioGroupField,
|
|
158
|
-
"fields-radio": RadioField,
|
|
159
|
-
"fields-checkGroup": CheckGroupField,
|
|
160
|
-
"fields-check": CheckField,
|
|
161
|
-
"fields-date": DateField,
|
|
162
|
-
"fields-datetime": DateTimeField,
|
|
163
|
-
"fields-location": LocationField,
|
|
164
|
-
"fields-googlePlace": GooglePlaceField,
|
|
165
|
-
"fields-dynamicGroup": DynamicGroupField,
|
|
166
|
-
"fields-stripeToken": StripeTokenField,
|
|
167
|
-
"fields-stripeExternalAccount": StripeExternalAccount,
|
|
168
|
-
"fields-creditCard": CreditCardField,
|
|
169
|
-
"fields-rating": RatingField,
|
|
170
|
-
"fields-phone": PhoneField,
|
|
171
|
-
"fields-timer": TimerField,
|
|
172
|
-
|
|
173
|
-
"panels-scroll": ScrollPanel,
|
|
174
|
-
"panels-vertical": VerticalPanel,
|
|
175
|
-
"panels-horizontal": HorizontalPanel,
|
|
176
|
-
"panels-flow": FlowPanel,
|
|
177
|
-
"panels-split": SplitPanel,
|
|
178
|
-
"panels-form": FormPanel,
|
|
179
|
-
"panels-list": ListPanel,
|
|
180
|
-
"panels-carousel": CarouselPanel,
|
|
181
|
-
"panels-table": TablePanel,
|
|
182
|
-
"panels-custom": CustomPanel,
|
|
183
|
-
"panels-responsive": ResponsivePanel,
|
|
184
|
-
"panels-column": ColumnPanel,
|
|
185
|
-
"panels-ul": UlPanel,
|
|
186
|
-
"panels-web": WebPanel,
|
|
187
|
-
|
|
188
|
-
"banners-alert": AlertBanner,
|
|
189
|
-
"banners-select": SelectBanner,
|
|
190
|
-
|
|
191
|
-
"charts-line": LineChart,
|
|
192
|
-
"charts-column": ColumnChart
|
|
193
|
-
},
|
|
194
|
-
props: {
|
|
195
|
-
spec: { type: Object, required: true }
|
|
196
|
-
},
|
|
197
|
-
data() {
|
|
198
|
-
return {
|
|
199
|
-
name: null
|
|
200
|
-
};
|
|
201
|
-
},
|
|
202
|
-
beforeUpdate() {
|
|
203
|
-
// NOTE: Not sure what this is for
|
|
204
|
-
// Make sure vuejs will not attempt to render old data.
|
|
205
|
-
// if (this._mountedUrl !== window.location.href) {
|
|
206
|
-
// this.name = null;
|
|
207
|
-
// }
|
|
208
|
-
},
|
|
209
|
-
methods: {
|
|
210
|
-
$ready() {
|
|
211
|
-
const name = Utils.app.componentName(this.spec.view);
|
|
212
|
-
const strict = true;
|
|
213
|
-
if (strict) {
|
|
214
|
-
this.name = name;
|
|
215
|
-
} else {
|
|
216
|
-
if (this.$options.components[name]) {
|
|
217
|
-
this.name = name;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
};
|
|
223
|
-
</script>
|
|
224
|
-
|
|
225
|
-
<style scoped></style>
|
|
1
|
+
<template>
|
|
2
|
+
<fields-text v-if="name == 'fields-text'" :spec="spec" type="text" />
|
|
3
|
+
<fields-text v-else-if="name == 'fields-number'" :spec="spec" type="number" />
|
|
4
|
+
<fields-text v-else-if="name == 'fields-email'" :spec="spec" type="email" />
|
|
5
|
+
<fields-text v-else-if="name == 'fields-url'" :spec="spec" type="url" />
|
|
6
|
+
<fields-text
|
|
7
|
+
v-else-if="name == 'fields-password'"
|
|
8
|
+
:spec="spec"
|
|
9
|
+
type="password"
|
|
10
|
+
/>
|
|
11
|
+
<!-- <fields-textarea v-else-if="spec.view == 'fields/textarea-v1'" :spec="spec" />
|
|
12
|
+
<fields-richText v-else-if="spec.view == 'fields/richText-v1'" :spec="spec" /> -->
|
|
13
|
+
<!-- <fields-file v-else-if="spec.view == 'fields/file-v1'" :spec="spec" />
|
|
14
|
+
<fields-select v-else-if="spec.view == 'fields/select-v1'" :spec="spec" />
|
|
15
|
+
<fields-dynamicSelect
|
|
16
|
+
v-else-if="spec.view == 'fields/dynamicSelect-v1'"
|
|
17
|
+
:spec="spec"
|
|
18
|
+
/> -->
|
|
19
|
+
<!-- <fields-country v-else-if="spec.view == 'fields/country-v1'" :spec="spec" /> -->
|
|
20
|
+
|
|
21
|
+
<!-- <fields-latLong v-else-if="spec.view == 'fields/latLong-v1'" :spec="spec" /> -->
|
|
22
|
+
<fields-googlePlace
|
|
23
|
+
v-else-if="spec.view == 'fields/googlePlace-v1'"
|
|
24
|
+
:spec="spec"
|
|
25
|
+
/>
|
|
26
|
+
|
|
27
|
+
<!-- <panels-responsive v-else-if="spec.view == 'panels/scroll-v1'" :spec="spec" /> -->
|
|
28
|
+
|
|
29
|
+
<component :is="name" v-else-if="name" :spec="spec" />
|
|
30
|
+
|
|
31
|
+
<div v-else>Unsupported view: {{ spec.view }}</div>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<script>
|
|
35
|
+
import H1 from "./h1";
|
|
36
|
+
import H2 from "./h2";
|
|
37
|
+
import H3 from "./h3";
|
|
38
|
+
import H4 from "./h4";
|
|
39
|
+
import H5 from "./h5";
|
|
40
|
+
import H6 from "./h6";
|
|
41
|
+
import Label from "./label";
|
|
42
|
+
import P from "./p";
|
|
43
|
+
import Markdown from "./markdown";
|
|
44
|
+
import Html from "./html";
|
|
45
|
+
import Chip from "./chip";
|
|
46
|
+
import Datetime from "./datetime";
|
|
47
|
+
|
|
48
|
+
import ProgressBar from "./progressbar";
|
|
49
|
+
|
|
50
|
+
import Image from "./image";
|
|
51
|
+
import Avatar from "./avatar";
|
|
52
|
+
import Icon from "./icon";
|
|
53
|
+
|
|
54
|
+
import Button from "./button";
|
|
55
|
+
import Fab from "./fab";
|
|
56
|
+
import Switch from "./switch";
|
|
57
|
+
|
|
58
|
+
import Hr from "./hr";
|
|
59
|
+
import Spacer from "./spacer";
|
|
60
|
+
|
|
61
|
+
import Map from "./map";
|
|
62
|
+
import TabBar from "./tabBar";
|
|
63
|
+
import Calendar from "./calendar";
|
|
64
|
+
|
|
65
|
+
import HiddenField from "./fields/hidden";
|
|
66
|
+
import TextField from "./fields/text";
|
|
67
|
+
import SubmitField from "./fields/submit";
|
|
68
|
+
import TextAreaField from "./fields/textarea";
|
|
69
|
+
import RichTextField from "./fields/richText";
|
|
70
|
+
import NewRichTextField from "./fields/newRichText";
|
|
71
|
+
import FileField from "./fields/file";
|
|
72
|
+
import AutocompleteField from "./fields/autocomplete";
|
|
73
|
+
import SelectField from "./fields/select";
|
|
74
|
+
import TimeZoneField from "./fields/timeZone";
|
|
75
|
+
import DynamicSelectField from "./fields/dynamicSelect";
|
|
76
|
+
import CountryField from "./fields/country/field";
|
|
77
|
+
import RadioGroupField from "./fields/radioGroup";
|
|
78
|
+
import RadioField from "./fields/radio";
|
|
79
|
+
import CheckGroupField from "./fields/checkGroup";
|
|
80
|
+
import CheckField from "./fields/check";
|
|
81
|
+
import DateField from "./fields/date";
|
|
82
|
+
import DateTimeField from "./fields/datetime";
|
|
83
|
+
import LocationField from "./fields/location";
|
|
84
|
+
import GooglePlaceField from "./fields/googlePlace";
|
|
85
|
+
import DynamicGroupField from "./fields/dynamicGroup";
|
|
86
|
+
import StripeTokenField from "./fields/stripeToken";
|
|
87
|
+
import StripeExternalAccount from "./fields/stripeExternalAccount";
|
|
88
|
+
import CreditCardField from "./fields/creditCard";
|
|
89
|
+
import RatingField from "./fields/rating";
|
|
90
|
+
import PhoneField from "./fields/phone/field";
|
|
91
|
+
import TimerField from "./fields/timer";
|
|
92
|
+
|
|
93
|
+
import ScrollPanel from "./panels/scroll";
|
|
94
|
+
import VerticalPanel from "./panels/vertical";
|
|
95
|
+
import HorizontalPanel from "./panels/horizontal";
|
|
96
|
+
import FlowPanel from "./panels/flow";
|
|
97
|
+
import SplitPanel from "./panels/split";
|
|
98
|
+
import FormPanel from "./panels/form";
|
|
99
|
+
import ListPanel from "./panels/list";
|
|
100
|
+
import CarouselPanel from "./panels/carousel";
|
|
101
|
+
import TablePanel from "./panels/table";
|
|
102
|
+
import CustomPanel from "./panels/custom";
|
|
103
|
+
import ColumnPanel from "./panels/column";
|
|
104
|
+
import ResponsivePanel from "./panels/responsive";
|
|
105
|
+
import UlPanel from "./panels/ul";
|
|
106
|
+
import WebPanel from "./panels/web";
|
|
107
|
+
|
|
108
|
+
import AlertBanner from "./banners/alert";
|
|
109
|
+
import SelectBanner from "./banners/select";
|
|
110
|
+
|
|
111
|
+
import LineChart from "./charts/line";
|
|
112
|
+
import ColumnChart from "./charts/column";
|
|
113
|
+
|
|
114
|
+
export default {
|
|
115
|
+
components: {
|
|
116
|
+
"views-h1": H1,
|
|
117
|
+
"views-h2": H2,
|
|
118
|
+
"views-h3": H3,
|
|
119
|
+
"views-h4": H4,
|
|
120
|
+
"views-h5": H5,
|
|
121
|
+
"views-h6": H6,
|
|
122
|
+
"views-label": Label,
|
|
123
|
+
"views-p": P,
|
|
124
|
+
"views-markdown": Markdown,
|
|
125
|
+
"views-html": Html,
|
|
126
|
+
"views-chip": Chip,
|
|
127
|
+
"views-datetime": Datetime,
|
|
128
|
+
"views-progressBar": ProgressBar,
|
|
129
|
+
|
|
130
|
+
"views-image": Image,
|
|
131
|
+
"views-avatar": Avatar,
|
|
132
|
+
"views-icon": Icon,
|
|
133
|
+
|
|
134
|
+
"views-button": Button,
|
|
135
|
+
"views-fab": Fab,
|
|
136
|
+
"views-switch": Switch,
|
|
137
|
+
|
|
138
|
+
"views-hr": Hr,
|
|
139
|
+
"views-spacer": Spacer,
|
|
140
|
+
|
|
141
|
+
"views-map": Map,
|
|
142
|
+
"views-tabBar": TabBar,
|
|
143
|
+
"views-calendar": Calendar,
|
|
144
|
+
|
|
145
|
+
"fields-hidden": HiddenField,
|
|
146
|
+
"fields-text": TextField,
|
|
147
|
+
"fields-submit": SubmitField,
|
|
148
|
+
"fields-textarea": TextAreaField,
|
|
149
|
+
"fields-richText": RichTextField,
|
|
150
|
+
"fields-newRichText": NewRichTextField,
|
|
151
|
+
"fields-file": FileField,
|
|
152
|
+
"fields-autocomplete": AutocompleteField,
|
|
153
|
+
"fields-select": SelectField,
|
|
154
|
+
"fields-timeZone": TimeZoneField,
|
|
155
|
+
"fields-dynamicSelect": DynamicSelectField,
|
|
156
|
+
"fields-country": CountryField,
|
|
157
|
+
"fields-radioGroup": RadioGroupField,
|
|
158
|
+
"fields-radio": RadioField,
|
|
159
|
+
"fields-checkGroup": CheckGroupField,
|
|
160
|
+
"fields-check": CheckField,
|
|
161
|
+
"fields-date": DateField,
|
|
162
|
+
"fields-datetime": DateTimeField,
|
|
163
|
+
"fields-location": LocationField,
|
|
164
|
+
"fields-googlePlace": GooglePlaceField,
|
|
165
|
+
"fields-dynamicGroup": DynamicGroupField,
|
|
166
|
+
"fields-stripeToken": StripeTokenField,
|
|
167
|
+
"fields-stripeExternalAccount": StripeExternalAccount,
|
|
168
|
+
"fields-creditCard": CreditCardField,
|
|
169
|
+
"fields-rating": RatingField,
|
|
170
|
+
"fields-phone": PhoneField,
|
|
171
|
+
"fields-timer": TimerField,
|
|
172
|
+
|
|
173
|
+
"panels-scroll": ScrollPanel,
|
|
174
|
+
"panels-vertical": VerticalPanel,
|
|
175
|
+
"panels-horizontal": HorizontalPanel,
|
|
176
|
+
"panels-flow": FlowPanel,
|
|
177
|
+
"panels-split": SplitPanel,
|
|
178
|
+
"panels-form": FormPanel,
|
|
179
|
+
"panels-list": ListPanel,
|
|
180
|
+
"panels-carousel": CarouselPanel,
|
|
181
|
+
"panels-table": TablePanel,
|
|
182
|
+
"panels-custom": CustomPanel,
|
|
183
|
+
"panels-responsive": ResponsivePanel,
|
|
184
|
+
"panels-column": ColumnPanel,
|
|
185
|
+
"panels-ul": UlPanel,
|
|
186
|
+
"panels-web": WebPanel,
|
|
187
|
+
|
|
188
|
+
"banners-alert": AlertBanner,
|
|
189
|
+
"banners-select": SelectBanner,
|
|
190
|
+
|
|
191
|
+
"charts-line": LineChart,
|
|
192
|
+
"charts-column": ColumnChart
|
|
193
|
+
},
|
|
194
|
+
props: {
|
|
195
|
+
spec: { type: Object, required: true }
|
|
196
|
+
},
|
|
197
|
+
data() {
|
|
198
|
+
return {
|
|
199
|
+
name: null
|
|
200
|
+
};
|
|
201
|
+
},
|
|
202
|
+
beforeUpdate() {
|
|
203
|
+
// NOTE: Not sure what this is for
|
|
204
|
+
// Make sure vuejs will not attempt to render old data.
|
|
205
|
+
// if (this._mountedUrl !== window.location.href) {
|
|
206
|
+
// this.name = null;
|
|
207
|
+
// }
|
|
208
|
+
},
|
|
209
|
+
methods: {
|
|
210
|
+
$ready() {
|
|
211
|
+
const name = Utils.app.componentName(this.spec.view);
|
|
212
|
+
const strict = true;
|
|
213
|
+
if (strict) {
|
|
214
|
+
this.name = name;
|
|
215
|
+
} else {
|
|
216
|
+
if (this.$options.components[name]) {
|
|
217
|
+
this.name = name;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
</script>
|
|
224
|
+
|
|
225
|
+
<style scoped></style>
|
package/components/datetime.vue
CHANGED
|
File without changes
|