@monoui/vuejs 1.1.10
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 +27 -0
- package/dist/main.js +410 -0
- package/package.json +105 -0
- package/src/components/BreadCrumb/BreadCrumb.vue +59 -0
- package/src/components/BreadCrumb/index.js +3 -0
- package/src/components/Button/Button.vue +118 -0
- package/src/components/Button/ButtonCore.vue +59 -0
- package/src/components/Button/ButtonEdit.vue +15 -0
- package/src/components/Button/ButtonRemove.vue +15 -0
- package/src/components/Button/index.js +4 -0
- package/src/components/Card/Card.vue +82 -0
- package/src/components/Card/CardBody.vue +72 -0
- package/src/components/Card/CardFooter.vue +55 -0
- package/src/components/Card/CardHeader.vue +58 -0
- package/src/components/Card/CardSubTitle.vue +43 -0
- package/src/components/Card/CardText.vue +21 -0
- package/src/components/Card/CardTitle.vue +38 -0
- package/src/components/Card/index.js +17 -0
- package/src/components/Checkbox/Checkbox.vue +72 -0
- package/src/components/Checkbox/index.js +3 -0
- package/src/components/Cron/Cron.vue +68 -0
- package/src/components/Cron/index.js +3 -0
- package/src/components/Date/DatePicker.vue +406 -0
- package/src/components/Date/index.js +3 -0
- package/src/components/Dropdown/Dropdown.vue +51 -0
- package/src/components/Dropdown/DropdownDivider.vue +12 -0
- package/src/components/Dropdown/DropdownItem.vue +23 -0
- package/src/components/Dropdown/index.js +5 -0
- package/src/components/DynamicInput/DynamicInput.vue +192 -0
- package/src/components/DynamicInput/index.js +3 -0
- package/src/components/DynamicInput/inputTypes.js +14 -0
- package/src/components/Icon/Icon.vue +43 -0
- package/src/components/Icon/index.js +3 -0
- package/src/components/Info/Info.vue +19 -0
- package/src/components/Info/index.js +3 -0
- package/src/components/Input/Input.vue +73 -0
- package/src/components/Input/index.js +3 -0
- package/src/components/KeyValue/KeyValue.vue +138 -0
- package/src/components/KeyValue/index.js +3 -0
- package/src/components/KeyValueInput/KeyValueInput.vue +203 -0
- package/src/components/KeyValueInput/index.js +3 -0
- package/src/components/Loader/Loader.vue +82 -0
- package/src/components/Loader/content-loader.js +150 -0
- package/src/components/Loader/index.js +2 -0
- package/src/components/Modal/Alert.vue +96 -0
- package/src/components/Modal/Modal.vue +125 -0
- package/src/components/Modal/RemoveAlert.vue +58 -0
- package/src/components/Modal/UnsavedChangesAlert.vue +83 -0
- package/src/components/Modal/index.js +6 -0
- package/src/components/MultiKeyValue/MultiKeyValue.vue +359 -0
- package/src/components/MultiKeyValue/index.js +3 -0
- package/src/components/NoData/NoData.vue +20 -0
- package/src/components/NoData/index.js +3 -0
- package/src/components/Popover/Popover.vue +91 -0
- package/src/components/Popover/index.js +3 -0
- package/src/components/Select/Select.vue +71 -0
- package/src/components/Select/index.js +3 -0
- package/src/components/Spinner/Spinner.vue +19 -0
- package/src/components/Spinner/index.js +3 -0
- package/src/components/Table/Icons/ArrowDown.vue +18 -0
- package/src/components/Table/Icons/ArrowDownLong.vue +18 -0
- package/src/components/Table/Icons/ArrowUp.vue +18 -0
- package/src/components/Table/Icons/ArrowUpLong.vue +18 -0
- package/src/components/Table/Icons/BaseIcon.vue +46 -0
- package/src/components/Table/Icons/Sorting.vue +16 -0
- package/src/components/Table/Icons/SortingAZ.vue +18 -0
- package/src/components/Table/Icons/SortingArrows.vue +18 -0
- package/src/components/Table/Table.vue +548 -0
- package/src/components/Table/index.js +3 -0
- package/src/components/Tabs/Tab.vue +36 -0
- package/src/components/Tabs/Tabs.vue +44 -0
- package/src/components/Tabs/index.js +4 -0
- package/src/components/TagInput/TagInput.vue +129 -0
- package/src/components/TagInput/index.js +3 -0
- package/src/components/Timeline/Timeline.vue +33 -0
- package/src/components/Timeline/TimelineItem.vue +40 -0
- package/src/components/Timeline/index.js +4 -0
- package/src/components/Tooltip/Tooltip.vue +62 -0
- package/src/components/Tooltip/index.js +3 -0
- package/src/functions/alert.js +40 -0
- package/src/functions/notification.js +51 -0
- package/src/icons.js +144 -0
- package/src/index.js +133 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<textarea v-model="value" name="mix"></textarea>
|
|
3
|
+
</template>
|
|
4
|
+
<script>
|
|
5
|
+
import Tagify from "@yaireo/tagify/dist/tagify.js";
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
name: "mui-tag-input",
|
|
9
|
+
data() {
|
|
10
|
+
return {
|
|
11
|
+
settings: {
|
|
12
|
+
mixTagsInterpolator: ["{{", "}}"],
|
|
13
|
+
mode: "mix",
|
|
14
|
+
pattern: /@|#/,
|
|
15
|
+
enforceWhitelist: true,
|
|
16
|
+
duplicates: true,
|
|
17
|
+
transformTag: this.transformTag,
|
|
18
|
+
dropdown: {
|
|
19
|
+
enabled: 4
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
computed: {
|
|
25
|
+
whitelist() {
|
|
26
|
+
if (this.variables.length === 0) return [];
|
|
27
|
+
return this.variables.map(el => el.key);
|
|
28
|
+
},
|
|
29
|
+
mappingData() {
|
|
30
|
+
if (this.variables.length === 0) return {};
|
|
31
|
+
return this.variables.reduce((obj, item) => {
|
|
32
|
+
obj[item.key] = item.value;
|
|
33
|
+
return obj;
|
|
34
|
+
}, {});
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
methods: {
|
|
38
|
+
transformValue(inputValue) {
|
|
39
|
+
if (this.tagType === "key")
|
|
40
|
+
return inputValue.replace(/{{{"value":"([^}]*)"}}}/gm, function(
|
|
41
|
+
i,
|
|
42
|
+
match
|
|
43
|
+
) {
|
|
44
|
+
return `{{${match}}}`;
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
return inputValue.replace(
|
|
48
|
+
/{{{"value":"([^}]*)",[^}]*}}}/gm,
|
|
49
|
+
function(i, match) {
|
|
50
|
+
return `{{${match}}}`;
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
},
|
|
54
|
+
transformTag(tagData) {
|
|
55
|
+
if (this.tagType === "key") return;
|
|
56
|
+
tagData.mapping = this.mappingData[tagData.value];
|
|
57
|
+
},
|
|
58
|
+
onTagdAdd(e, inputElm) {
|
|
59
|
+
this.$emit("input", this.transformValue(inputElm.value));
|
|
60
|
+
},
|
|
61
|
+
onTagRemove(e, inputElm) {
|
|
62
|
+
this.$emit("input", this.transformValue(inputElm.value));
|
|
63
|
+
},
|
|
64
|
+
onInput(e, tagify, inputElm) {
|
|
65
|
+
var prefix = e.detail.prefix;
|
|
66
|
+
if (prefix) {
|
|
67
|
+
if (e.detail.value.length > 0) {
|
|
68
|
+
this.$emit("suggest", event, tagify);
|
|
69
|
+
this.$nextTick(() => {
|
|
70
|
+
tagify.settings.whitelist = this.whitelist;
|
|
71
|
+
tagify.dropdown.show.call(tagify, e.detail.value);
|
|
72
|
+
});
|
|
73
|
+
tagify.dropdown.show.call(tagify, e.detail.value);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
this.$emit("input", this.transformValue(inputElm.value));
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
mounted() {
|
|
80
|
+
var input = document.querySelector("[name=mix]");
|
|
81
|
+
var tagType = this.tagType;
|
|
82
|
+
var tagify = new Tagify(input, {
|
|
83
|
+
...this.settings,
|
|
84
|
+
whitelist: this.whitelist,
|
|
85
|
+
templates: {
|
|
86
|
+
tag(v, tagData) {
|
|
87
|
+
if (tagType === "key") {
|
|
88
|
+
return `<tag title='${v}' contenteditable='false' spellcheck="false" class='tagify__tag ${
|
|
89
|
+
tagData.class ? tagData.class : ""
|
|
90
|
+
}' ${this.getAttributes(tagData)}>
|
|
91
|
+
<x title='' class='tagify__tag__removeBtn'></x><div><span class='tagify__tag-text'>${v}</span></div>
|
|
92
|
+
</tag>`;
|
|
93
|
+
} else {
|
|
94
|
+
return `<tag title='${v}' contenteditable='false' spellcheck="false" class='tagify__tag ${
|
|
95
|
+
tagData.class ? tagData.class : ""
|
|
96
|
+
}' ${this.getAttributes(tagData)}>
|
|
97
|
+
<x title='remove tag' class='tagify__tag__removeBtn'></x>
|
|
98
|
+
<div>
|
|
99
|
+
<span class='tagify__tag-text'>
|
|
100
|
+
<b>${v}: </b>${
|
|
101
|
+
tagData.mapping ? tagData.mapping : v
|
|
102
|
+
}
|
|
103
|
+
</span>
|
|
104
|
+
</div>
|
|
105
|
+
</tag>`;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
tagify.on("input", e => this.onInput(e, tagify, input));
|
|
111
|
+
tagify.on("add", e => this.onTagdAdd(e, input));
|
|
112
|
+
tagify.on("remove", e => this.onTagRemove(e, input));
|
|
113
|
+
},
|
|
114
|
+
props: {
|
|
115
|
+
value: {
|
|
116
|
+
type: String
|
|
117
|
+
},
|
|
118
|
+
tagType: {
|
|
119
|
+
type: String,
|
|
120
|
+
default: "key",
|
|
121
|
+
validator: prop => ["key", "key-value"].includes(prop)
|
|
122
|
+
},
|
|
123
|
+
variables: {
|
|
124
|
+
type: Array,
|
|
125
|
+
default: () => []
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
</script>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<ul class="timeline">
|
|
3
|
+
<slot> </slot>
|
|
4
|
+
<slot name="pending"> </slot>
|
|
5
|
+
</ul>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
/**
|
|
10
|
+
* MonoUI Timeline Component
|
|
11
|
+
*/
|
|
12
|
+
export default {
|
|
13
|
+
name: "mui-timeline",
|
|
14
|
+
props: {}
|
|
15
|
+
};
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<style scoped>
|
|
19
|
+
ul.timeline {
|
|
20
|
+
list-style-type: none;
|
|
21
|
+
position: relative;
|
|
22
|
+
}
|
|
23
|
+
ul.timeline:before {
|
|
24
|
+
content: " ";
|
|
25
|
+
background: #a0a0a0;
|
|
26
|
+
display: inline-block;
|
|
27
|
+
position: absolute;
|
|
28
|
+
left: 29px;
|
|
29
|
+
width: 2px;
|
|
30
|
+
height: 100%;
|
|
31
|
+
z-index: 400;
|
|
32
|
+
}
|
|
33
|
+
</style>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<li>
|
|
3
|
+
<p>
|
|
4
|
+
<slot></slot>
|
|
5
|
+
</p>
|
|
6
|
+
</li>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
/**
|
|
11
|
+
* MonoUI Timeline Item Component
|
|
12
|
+
*/
|
|
13
|
+
export default {
|
|
14
|
+
name: "mui-timeline-item",
|
|
15
|
+
props: {}
|
|
16
|
+
};
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<style scoped>
|
|
20
|
+
p {
|
|
21
|
+
padding-left: 4%;
|
|
22
|
+
}
|
|
23
|
+
li {
|
|
24
|
+
margin: 20px 0;
|
|
25
|
+
padding-left: 20px;
|
|
26
|
+
}
|
|
27
|
+
li:before {
|
|
28
|
+
content: " ";
|
|
29
|
+
background: white;
|
|
30
|
+
display: inline-block;
|
|
31
|
+
position: absolute;
|
|
32
|
+
border-radius: 50%;
|
|
33
|
+
border: 3px solid #a0a0a0;
|
|
34
|
+
/* border: 3px solid #22c0e8; */
|
|
35
|
+
left: 20px;
|
|
36
|
+
width: 20px;
|
|
37
|
+
height: 20px;
|
|
38
|
+
z-index: 400;
|
|
39
|
+
}
|
|
40
|
+
</style>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<b-tooltip
|
|
3
|
+
ref="tooltip"
|
|
4
|
+
v-bind="this.$props"
|
|
5
|
+
@show="onShow"
|
|
6
|
+
@shown="onShown"
|
|
7
|
+
@hide="onHide"
|
|
8
|
+
@hidden="onHidden"
|
|
9
|
+
@enabled="onEnabled"
|
|
10
|
+
@disabled="onDisabled"
|
|
11
|
+
>
|
|
12
|
+
<slot name="default"></slot>
|
|
13
|
+
</b-tooltip>
|
|
14
|
+
</template>
|
|
15
|
+
<script>
|
|
16
|
+
export default {
|
|
17
|
+
name: "mui-tooltip",
|
|
18
|
+
props: {
|
|
19
|
+
id: {},
|
|
20
|
+
title: {},
|
|
21
|
+
target: { required: true },
|
|
22
|
+
triggers: {},
|
|
23
|
+
variant: {},
|
|
24
|
+
customClass: {},
|
|
25
|
+
boundary: {},
|
|
26
|
+
boundaryPadding: {},
|
|
27
|
+
offset: {},
|
|
28
|
+
placement: {},
|
|
29
|
+
fallbackPlacement: {},
|
|
30
|
+
container: {},
|
|
31
|
+
delay: {},
|
|
32
|
+
show: {},
|
|
33
|
+
disabled: {}
|
|
34
|
+
},
|
|
35
|
+
methods: {
|
|
36
|
+
onShow(event) {
|
|
37
|
+
this.$emit("show", event);
|
|
38
|
+
},
|
|
39
|
+
onShown(event) {
|
|
40
|
+
this.$emit("shown", event);
|
|
41
|
+
},
|
|
42
|
+
onHide(event) {
|
|
43
|
+
this.$emit("hide", event);
|
|
44
|
+
},
|
|
45
|
+
onHidden(event) {
|
|
46
|
+
this.$emit("hidden", event);
|
|
47
|
+
},
|
|
48
|
+
onEnabled(event) {
|
|
49
|
+
this.$emit("enabled", event);
|
|
50
|
+
},
|
|
51
|
+
onDisabled(event) {
|
|
52
|
+
this.$emit("disabled", event);
|
|
53
|
+
},
|
|
54
|
+
showTooltip() {
|
|
55
|
+
this.$refs.tooltip.$emit("open");
|
|
56
|
+
},
|
|
57
|
+
hideTooltip() {
|
|
58
|
+
this.$refs.tooltip.$emit("close");
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
</script>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
install(Vue) {
|
|
3
|
+
Vue.prototype.$alert = function(
|
|
4
|
+
title,
|
|
5
|
+
text,
|
|
6
|
+
type = "info",
|
|
7
|
+
onConfirm,
|
|
8
|
+
confirmButtonText = "Confirm",
|
|
9
|
+
confirmButtonColor = "#000",
|
|
10
|
+
cancelButtonText = "No, cancel!"
|
|
11
|
+
) {
|
|
12
|
+
this.$swal({
|
|
13
|
+
title: title,
|
|
14
|
+
type: type,
|
|
15
|
+
html: text,
|
|
16
|
+
showCancelButton: true,
|
|
17
|
+
focusConfirm: false,
|
|
18
|
+
reverseButtons: true,
|
|
19
|
+
confirmButtonColor: confirmButtonColor,
|
|
20
|
+
confirmButtonText: confirmButtonText,
|
|
21
|
+
cancelButtonText: cancelButtonText
|
|
22
|
+
}).then(result => {
|
|
23
|
+
if (result.value === true) {
|
|
24
|
+
onConfirm();
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
Vue.prototype.$alert.remove = function(title, text, onConfirm) {
|
|
30
|
+
Vue.prototype.$alert(
|
|
31
|
+
title,
|
|
32
|
+
text,
|
|
33
|
+
"warning",
|
|
34
|
+
onConfirm,
|
|
35
|
+
"<i class='fas fa-fw fa-trash'></i> Yes, delete it!",
|
|
36
|
+
"#d33"
|
|
37
|
+
);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
const defaultDelay = 3000;
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
install(Vue) {
|
|
5
|
+
function toast(that, title, message, variant) {
|
|
6
|
+
let icon = "fas fa-check-circle mr-2";
|
|
7
|
+
if (variant === "danger") {
|
|
8
|
+
icon = "fas fa-exclamation-triangle mr-2";
|
|
9
|
+
} else if (variant === "info") {
|
|
10
|
+
icon = "fas fa-info-circle text-primary mr-1";
|
|
11
|
+
}
|
|
12
|
+
const h = that.$createElement;
|
|
13
|
+
const element = h(
|
|
14
|
+
"div",
|
|
15
|
+
{
|
|
16
|
+
class: [
|
|
17
|
+
"d-flex",
|
|
18
|
+
"flex-grow-1",
|
|
19
|
+
"align-items-baseline",
|
|
20
|
+
"mr-1"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
[
|
|
24
|
+
h("i", { class: `${icon} text-${variant}` }),
|
|
25
|
+
h("span", { class: "mr-2" }, title)
|
|
26
|
+
]
|
|
27
|
+
);
|
|
28
|
+
that.$root.$bvToast.toast(message, {
|
|
29
|
+
title: [element],
|
|
30
|
+
solid: false,
|
|
31
|
+
appendToast: true,
|
|
32
|
+
variant: variant === "success" ? "default" : variant,
|
|
33
|
+
autoHideDelay: defaultDelay,
|
|
34
|
+
isStatus: true,
|
|
35
|
+
toaster: "b-toaster-bottom-right"
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
Vue.prototype.$errorToast = function(title, message) {
|
|
40
|
+
toast(this, title, message, "danger");
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
Vue.prototype.$successToast = function(title, message) {
|
|
44
|
+
toast(this, title, message, "success");
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
Vue.prototype.$toast = function(title, message) {
|
|
48
|
+
toast(this, title, message, "info");
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
};
|
package/src/icons.js
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { library } from "@fortawesome/fontawesome-svg-core";
|
|
2
|
+
// Official documentation available at: https://github.com/FortAwesome/vue-fontawesome
|
|
3
|
+
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
faEnvelope,
|
|
7
|
+
faHeart,
|
|
8
|
+
faGraduationCap,
|
|
9
|
+
faHome,
|
|
10
|
+
faInfo,
|
|
11
|
+
faList,
|
|
12
|
+
faSpinner,
|
|
13
|
+
faPlug,
|
|
14
|
+
faSquare,
|
|
15
|
+
faTh,
|
|
16
|
+
faShapes,
|
|
17
|
+
faCube,
|
|
18
|
+
faCubes,
|
|
19
|
+
faDatabase,
|
|
20
|
+
faLayerGroup,
|
|
21
|
+
faLink,
|
|
22
|
+
faFolder,
|
|
23
|
+
faGlobe,
|
|
24
|
+
faExchangeAlt,
|
|
25
|
+
faUserAltSlash,
|
|
26
|
+
faDotCircle,
|
|
27
|
+
faRandom,
|
|
28
|
+
faMagic,
|
|
29
|
+
faProjectDiagram,
|
|
30
|
+
faCheck,
|
|
31
|
+
faCheckCircle,
|
|
32
|
+
faCalendarAlt,
|
|
33
|
+
faPlus,
|
|
34
|
+
faPlusCircle,
|
|
35
|
+
faLongArrowAltDown,
|
|
36
|
+
faLongArrowAltLeft,
|
|
37
|
+
faLongArrowAltRight,
|
|
38
|
+
faLongArrowAltUp,
|
|
39
|
+
faEdit,
|
|
40
|
+
faTrash,
|
|
41
|
+
faCode,
|
|
42
|
+
faPalette,
|
|
43
|
+
faTextHeight,
|
|
44
|
+
faDirections,
|
|
45
|
+
faAngleDoubleRight,
|
|
46
|
+
faStopwatch,
|
|
47
|
+
faFilter,
|
|
48
|
+
faBezierCurve,
|
|
49
|
+
faInfoCircle,
|
|
50
|
+
faBolt,
|
|
51
|
+
faLock,
|
|
52
|
+
faKey,
|
|
53
|
+
faSyncAlt,
|
|
54
|
+
faPlay,
|
|
55
|
+
faExclamationTriangle,
|
|
56
|
+
faBan,
|
|
57
|
+
faSave,
|
|
58
|
+
faTerminal,
|
|
59
|
+
faMinusCircle,
|
|
60
|
+
faStarHalfAlt,
|
|
61
|
+
faStarHalf,
|
|
62
|
+
faStar,
|
|
63
|
+
faSort,
|
|
64
|
+
faSortUp,
|
|
65
|
+
faSortDown
|
|
66
|
+
} from "@fortawesome/free-solid-svg-icons";
|
|
67
|
+
import {
|
|
68
|
+
faFontAwesome,
|
|
69
|
+
faMicrosoft,
|
|
70
|
+
faVuejs
|
|
71
|
+
} from "@fortawesome/free-brands-svg-icons";
|
|
72
|
+
|
|
73
|
+
// If not present, it won't be visible within the application. Considering that you
|
|
74
|
+
// don't want all the icons for no reason. This is a good way to avoid importing too many
|
|
75
|
+
// unnecessary things.
|
|
76
|
+
library.add(
|
|
77
|
+
faEnvelope,
|
|
78
|
+
faHeart,
|
|
79
|
+
faGraduationCap,
|
|
80
|
+
faHome,
|
|
81
|
+
faInfo,
|
|
82
|
+
faList,
|
|
83
|
+
faSpinner,
|
|
84
|
+
|
|
85
|
+
// Brands
|
|
86
|
+
faFontAwesome,
|
|
87
|
+
faMicrosoft,
|
|
88
|
+
faVuejs,
|
|
89
|
+
faPlug,
|
|
90
|
+
faSquare,
|
|
91
|
+
faTh,
|
|
92
|
+
faShapes,
|
|
93
|
+
faCube,
|
|
94
|
+
faCubes,
|
|
95
|
+
faDatabase,
|
|
96
|
+
faLayerGroup,
|
|
97
|
+
faLink,
|
|
98
|
+
faFolder,
|
|
99
|
+
faGlobe,
|
|
100
|
+
faExchangeAlt,
|
|
101
|
+
faUserAltSlash,
|
|
102
|
+
faDotCircle,
|
|
103
|
+
faRandom,
|
|
104
|
+
faMagic,
|
|
105
|
+
faProjectDiagram,
|
|
106
|
+
faCheck,
|
|
107
|
+
faCheckCircle,
|
|
108
|
+
faCalendarAlt,
|
|
109
|
+
faPlus,
|
|
110
|
+
faPlusCircle,
|
|
111
|
+
faLongArrowAltDown,
|
|
112
|
+
faLongArrowAltLeft,
|
|
113
|
+
faLongArrowAltRight,
|
|
114
|
+
faLongArrowAltUp,
|
|
115
|
+
faEdit,
|
|
116
|
+
faTrash,
|
|
117
|
+
faCode,
|
|
118
|
+
faPalette,
|
|
119
|
+
faTextHeight,
|
|
120
|
+
faDirections,
|
|
121
|
+
faAngleDoubleRight,
|
|
122
|
+
faStopwatch,
|
|
123
|
+
faFilter,
|
|
124
|
+
faBezierCurve,
|
|
125
|
+
faInfoCircle,
|
|
126
|
+
faBolt,
|
|
127
|
+
faLock,
|
|
128
|
+
faKey,
|
|
129
|
+
faSyncAlt,
|
|
130
|
+
faPlay,
|
|
131
|
+
faExclamationTriangle,
|
|
132
|
+
faBan,
|
|
133
|
+
faSave,
|
|
134
|
+
faTerminal,
|
|
135
|
+
faMinusCircle,
|
|
136
|
+
faStarHalfAlt,
|
|
137
|
+
faStarHalf,
|
|
138
|
+
faStar,
|
|
139
|
+
faSort,
|
|
140
|
+
faSortUp,
|
|
141
|
+
faSortDown
|
|
142
|
+
);
|
|
143
|
+
|
|
144
|
+
export { FontAwesomeIcon };
|
package/src/index.js
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
// ***Components***
|
|
2
|
+
import Loader from "./components/Loader";
|
|
3
|
+
import { Button, ButtonCore } from "./components/Button";
|
|
4
|
+
import DynamicInput from "./components/DynamicInput";
|
|
5
|
+
import NoData from "./components/NoData";
|
|
6
|
+
import Info from "./components/Info";
|
|
7
|
+
import BreadCrumb from "./components/BreadCrumb";
|
|
8
|
+
import Input from "./components/Input";
|
|
9
|
+
import { Tab, Tabs } from "./components/Tabs";
|
|
10
|
+
import KeyValueInput from "./components/KeyValueInput";
|
|
11
|
+
import Checkbox from "./components/Checkbox";
|
|
12
|
+
import Tooltip from "./components/Tooltip";
|
|
13
|
+
import Spinner from "./components/Spinner";
|
|
14
|
+
import Table from "./components/Table";
|
|
15
|
+
import MultiKeyValue from "./components/MultiKeyValue";
|
|
16
|
+
import {
|
|
17
|
+
Alert,
|
|
18
|
+
Modal,
|
|
19
|
+
RemoveAlert,
|
|
20
|
+
UnsavedChangesAlert
|
|
21
|
+
} from "./components/Modal";
|
|
22
|
+
import Cron from "./components/Cron";
|
|
23
|
+
import Popover from "./components/Popover";
|
|
24
|
+
import TagInput from "./components/TagInput";
|
|
25
|
+
import Icon from "./components/Icon";
|
|
26
|
+
import DatePicker from "./components/Date";
|
|
27
|
+
import Select from "./components/Select";
|
|
28
|
+
import { Dropdown, DropdownItem, DropdownDivider } from "./components/Dropdown";
|
|
29
|
+
import {
|
|
30
|
+
Card,
|
|
31
|
+
CardBody,
|
|
32
|
+
CardFooter,
|
|
33
|
+
CardHeader,
|
|
34
|
+
CardSubTitle,
|
|
35
|
+
CardText,
|
|
36
|
+
CardTitle
|
|
37
|
+
} from "./components/Card";
|
|
38
|
+
import KeyValue from "./components/KeyValue";
|
|
39
|
+
import { Timeline, TimelineItem } from "./components/Timeline";
|
|
40
|
+
// ***Components***
|
|
41
|
+
|
|
42
|
+
// ***Functions***
|
|
43
|
+
import Notification from "./functions/notification";
|
|
44
|
+
import Alerte from "./functions/alert";
|
|
45
|
+
// ***Functions***
|
|
46
|
+
|
|
47
|
+
// ***Plugins***
|
|
48
|
+
import "bootstrap/dist/css/bootstrap.css";
|
|
49
|
+
import "bootstrap-vue/dist/bootstrap-vue.css";
|
|
50
|
+
import "sweetalert2/dist/sweetalert2.min.css";
|
|
51
|
+
import "@yaireo/tagify/dist/tagify.css";
|
|
52
|
+
|
|
53
|
+
import BootstrapVue from "bootstrap-vue";
|
|
54
|
+
import { FontAwesomeIcon } from "./icons";
|
|
55
|
+
import { ValidationObserver, ValidationProvider, extend } from "vee-validate";
|
|
56
|
+
import { min, required, email } from "vee-validate/dist/rules";
|
|
57
|
+
import VueSweetalert2 from "vue-sweetalert2";
|
|
58
|
+
import VueNoty from "vuejs-noty";
|
|
59
|
+
// ***Plugins***
|
|
60
|
+
|
|
61
|
+
export default {
|
|
62
|
+
install(Vue) {
|
|
63
|
+
// ***BootstrapVue***
|
|
64
|
+
Vue.use(BootstrapVue);
|
|
65
|
+
// ***BootstrapVue***
|
|
66
|
+
|
|
67
|
+
// ***FontAwesome
|
|
68
|
+
Vue.component("font-awesome-icon", FontAwesomeIcon);
|
|
69
|
+
// ***FontAwesome
|
|
70
|
+
|
|
71
|
+
// ***VeeValidate***
|
|
72
|
+
Vue.component("ValidationObserver", ValidationObserver);
|
|
73
|
+
Vue.component("ValidationProvider", ValidationProvider);
|
|
74
|
+
|
|
75
|
+
extend("required", required);
|
|
76
|
+
extend("min", min);
|
|
77
|
+
extend("email", email);
|
|
78
|
+
// ***VeeValidate***
|
|
79
|
+
|
|
80
|
+
// ***Vue Sweet Alert***
|
|
81
|
+
Vue.use(VueSweetalert2);
|
|
82
|
+
// **Vue Sweet Alert***
|
|
83
|
+
|
|
84
|
+
// ***Noty***
|
|
85
|
+
Vue.use(VueNoty);
|
|
86
|
+
// ***Noty***
|
|
87
|
+
|
|
88
|
+
Vue.component(Loader.name, Loader);
|
|
89
|
+
Vue.component(DynamicInput.name, DynamicInput);
|
|
90
|
+
Vue.component(NoData.name, NoData);
|
|
91
|
+
Vue.component(Info.name, Info);
|
|
92
|
+
Vue.component(BreadCrumb.name, BreadCrumb);
|
|
93
|
+
Vue.component(KeyValueInput.name, KeyValueInput);
|
|
94
|
+
Vue.component(Tooltip.name, Tooltip);
|
|
95
|
+
Vue.component(Spinner.name, Spinner);
|
|
96
|
+
Vue.component(MultiKeyValue.name, MultiKeyValue);
|
|
97
|
+
Vue.component(Alert.name, Alert);
|
|
98
|
+
Vue.component(Modal.name, Modal);
|
|
99
|
+
Vue.component(RemoveAlert.name, RemoveAlert);
|
|
100
|
+
Vue.component(UnsavedChangesAlert.name, UnsavedChangesAlert);
|
|
101
|
+
|
|
102
|
+
Vue.component(Cron.name, Cron);
|
|
103
|
+
Vue.component(Table.name, Table);
|
|
104
|
+
Vue.component(Popover.name, Popover);
|
|
105
|
+
Vue.component(Icon.name, Icon);
|
|
106
|
+
Vue.component(TagInput.name, TagInput);
|
|
107
|
+
Vue.component(DatePicker.name, DatePicker);
|
|
108
|
+
|
|
109
|
+
Vue.component(Input.name, Input);
|
|
110
|
+
Vue.component(Checkbox.name, Checkbox);
|
|
111
|
+
Vue.component(ButtonCore.name, ButtonCore);
|
|
112
|
+
Vue.component(Button.name, Button);
|
|
113
|
+
Vue.component(Tabs.name, Tabs);
|
|
114
|
+
Vue.component(Tab.name, Tab);
|
|
115
|
+
Vue.component(Select.name, Select);
|
|
116
|
+
Vue.component(Dropdown.name, Dropdown);
|
|
117
|
+
Vue.component(DropdownItem.name, DropdownItem);
|
|
118
|
+
Vue.component(DropdownDivider.name, DropdownDivider);
|
|
119
|
+
Vue.component(Card.name, Card);
|
|
120
|
+
Vue.component(CardBody.name, CardBody);
|
|
121
|
+
Vue.component(CardFooter.name, CardFooter);
|
|
122
|
+
Vue.component(CardHeader.name, CardHeader);
|
|
123
|
+
Vue.component(CardSubTitle.name, CardSubTitle);
|
|
124
|
+
Vue.component(CardText.name, CardText);
|
|
125
|
+
Vue.component(CardTitle.name, CardTitle);
|
|
126
|
+
Vue.component(KeyValue.name, KeyValue);
|
|
127
|
+
Vue.component(Timeline.name, Timeline);
|
|
128
|
+
Vue.component(TimelineItem.name, TimelineItem);
|
|
129
|
+
|
|
130
|
+
Vue.use(Notification);
|
|
131
|
+
Vue.use(Alerte);
|
|
132
|
+
}
|
|
133
|
+
};
|