This commit is contained in:
2020-10-06 14:41:33 +00:00
parent 12f9f6aec2
commit d7b9b94804
6 changed files with 32 additions and 8 deletions

View File

@@ -46,7 +46,7 @@
v-on="on" v-on="on"
v-model="formatTime" v-model="formatTime"
label label
prepend-icon="fa-clock" prepend-icon="$ayiClock"
@click:prepend="dlgtime = true" @click:prepend="dlgtime = true"
readonly readonly
:error="!!error" :error="!!error"

View File

@@ -5,7 +5,7 @@
:data-cy="!!$ay.dev ? 'errorbox' : false" :data-cy="!!$ay.dev ? 'errorbox' : false"
v-show="errorBoxMessage" v-show="errorBoxMessage"
color="error" color="error"
icon="fa-exclamation-circle " icon="$ayiExclamationCircle"
transition="scale-transition" transition="scale-transition"
class="multi-line" class="multi-line"
outlined outlined

View File

@@ -112,7 +112,7 @@
<template v-else-if="c.t == 6"> <template v-else-if="c.t == 6">
<!-- BOOL --> <!-- BOOL -->
<div class="text-center"> <div class="text-center">
<v-icon v-if="c.v === false" small>far fa-square</v-icon> <v-icon v-if="c.v === false" small>$ayiSquare</v-icon>
<v-icon v-else-if="c.v === true" small <v-icon v-else-if="c.v === true" small
>far $ayiCheckSquare</v-icon >far $ayiCheckSquare</v-icon
> >
@@ -199,7 +199,7 @@
@click="props.toggleSelectAll(!props.everyItem)" @click="props.toggleSelectAll(!props.everyItem)"
class="pl-2 pt-2" class="pl-2 pt-2"
> >
<v-icon v-if="!props.someItems" large>far fa-square</v-icon> <v-icon v-if="!props.someItems" large>$ayiSquare</v-icon>
<v-icon v-if="props.someItems && !props.everyItem" large <v-icon v-if="props.someItems && !props.everyItem" large
>far $ayiMinus-square</v-icon >far $ayiMinus-square</v-icon
> >
@@ -285,7 +285,7 @@
<!-- BOOL --> <!-- BOOL -->
<div> <div>
<v-icon v-if="c.v === false" small <v-icon v-if="c.v === false" small
>far fa-square</v-icon >$ayiSquare</v-icon
> >
<v-icon v-else-if="c.v === true" small <v-icon v-else-if="c.v === true" small
>far $ayiCheckSquare</v-icon >far $ayiCheckSquare</v-icon

View File

@@ -17,7 +17,7 @@
<v-icon large color="info">$ayiInfoCircle</v-icon> <v-icon large color="info">$ayiInfoCircle</v-icon>
</template> </template>
<template v-if="options.type == 'warning'"> <template v-if="options.type == 'warning'">
<v-icon large color="warning">fa-exclamation-circle</v-icon> <v-icon large color="warning">$ayiExclamationCircle</v-icon>
</template> </template>
<template v-if="options.type == 'error'"> <template v-if="options.type == 'error'">
<v-icon large color="error">fa-exclamation-triangle</v-icon> <v-icon large color="error">fa-exclamation-triangle</v-icon>

View File

@@ -8,7 +8,7 @@
v-on="on" v-on="on"
v-model="formatTime" v-model="formatTime"
v-bind:label="label" v-bind:label="label"
prepend-icon="fa-clock" prepend-icon="$ayiClock"
@click:prepend="dlgtime = true" @click:prepend="dlgtime = true"
readonly readonly
:error="!!error" :error="!!error"

View File

@@ -11,6 +11,7 @@ import { library } from "@fortawesome/fontawesome-svg-core";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
Vue.component("font-awesome-icon", FontAwesomeIcon); // Register component globally Vue.component("font-awesome-icon", FontAwesomeIcon); // Register component globally
import { faSquare as farSquare } from "@fortawesome/free-regular-svg-icons";
import { import {
faAddressBook, faAddressBook,
faAddressCard, faAddressCard,
@@ -33,6 +34,7 @@ import {
faCheckSquare, faCheckSquare,
faChevronDown, faChevronDown,
faChild, faChild,
faClock,
faCode, faCode,
faCogs, faCogs,
faColumns, faColumns,
@@ -42,6 +44,7 @@ import {
faDoorOpen, faDoorOpen,
faEdit, faEdit,
faEllipsisV, faEllipsisV,
faExclamationCircle,
faEye, faEye,
faEyeSlash, faEyeSlash,
faFan, faFan,
@@ -113,7 +116,7 @@ import {
faUserTie, faUserTie,
faVial faVial
} from "@fortawesome/free-solid-svg-icons"; } from "@fortawesome/free-solid-svg-icons";
//import { faUserCircle as farUserCircle } from "@fortawesome/free-regular-svg-icons";
Vue.component("font-awesome-icon", FontAwesomeIcon); Vue.component("font-awesome-icon", FontAwesomeIcon);
library.add( library.add(
@@ -138,6 +141,7 @@ library.add(
faCheckSquare, faCheckSquare,
faChevronDown, faChevronDown,
faChild, faChild,
faClock,
faCode, faCode,
faCogs, faCogs,
faColumns, faColumns,
@@ -147,6 +151,7 @@ library.add(
faDoorOpen, faDoorOpen,
faEdit, faEdit,
faEllipsisV, faEllipsisV,
faExclamationCircle,
faEye, faEye,
faEyeSlash, faEyeSlash,
faFan, faFan,
@@ -202,6 +207,7 @@ library.add(
faSignOutAlt, faSignOutAlt,
faSitemap, faSitemap,
faSlidersH, faSlidersH,
farSquare,
faSquareFull, faSquareFull,
faStickyNote, faStickyNote,
faStore, faStore,
@@ -328,6 +334,12 @@ const CUSTOM_ICONS = {
icon: ["fas", "child"] icon: ["fas", "child"]
} }
}, },
ayiClock: {
component: FontAwesomeIcon,
props: {
icon: ["fas", "clock"]
}
},
ayiCode: { ayiCode: {
component: FontAwesomeIcon, component: FontAwesomeIcon,
props: { props: {
@@ -382,6 +394,12 @@ const CUSTOM_ICONS = {
icon: ["fas", "edit"] icon: ["fas", "edit"]
} }
}, },
ayiExclamationCircle: {
component: FontAwesomeIcon,
props: {
icon: ["fas", "exclamation-circle"]
}
},
ayiEye: { ayiEye: {
component: FontAwesomeIcon, component: FontAwesomeIcon,
props: { props: {
@@ -712,6 +730,12 @@ const CUSTOM_ICONS = {
icon: ["fas", "sitemap"] icon: ["fas", "sitemap"]
} }
}, },
ayiSquare: {
component: FontAwesomeIcon,
props: {
icon: ["far", "square"]
}
},
ayiSquareFull: { ayiSquareFull: {
component: FontAwesomeIcon, component: FontAwesomeIcon,
props: { props: {