@intellias/menu 1.0.0
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/Menu.ts +625 -0
- package/README.md +121 -0
- package/assets/icons/arrow-down.svg +13 -0
- package/assets/icons/arrow-left.svg +3 -0
- package/assets/icons/arrow-submenu.svg +8 -0
- package/assets/icons/close.svg +3 -0
- package/assets/icons/delete.svg +13 -0
- package/assets/icons/faq-new.svg +4 -0
- package/assets/icons/kudos.svg +14 -0
- package/assets/icons/loading-spinner.svg +40 -0
- package/assets/icons/notification.svg +11 -0
- package/assets/icons/notifications/assessment.svg +10 -0
- package/assets/icons/notifications/buddy_program.svg +8 -0
- package/assets/icons/notifications/compensation_packages.svg +10 -0
- package/assets/icons/notifications/dsat.svg +8 -0
- package/assets/icons/notifications/feedback.svg +7 -0
- package/assets/icons/notifications/kudos.svg +4 -0
- package/assets/icons/notifications/overtime_requests.svg +15 -0
- package/assets/icons/notifications/pdu_program.svg +4 -0
- package/assets/icons/notifications/profile_update.svg +6 -0
- package/assets/icons/notifications/recommendation_program.svg +7 -0
- package/assets/icons/notifications/reminders.svg +4 -0
- package/assets/icons/notifications/sick_leaves.svg +5 -0
- package/assets/icons/notifications/smarts.svg +4 -0
- package/assets/icons/notifications/survey.svg +8 -0
- package/assets/icons/notifications/unpaid_leave.svg +4 -0
- package/assets/icons/notifications/vacations.svg +4 -0
- package/assets/icons/pause.svg +13 -0
- package/assets/icons/play.svg +13 -0
- package/assets/icons/smart.svg +14 -0
- package/assets/icons/smarts-kudos.svg +11 -0
- package/assets/icons/spinner-solid.svg +1 -0
- package/assets/icons/vacation.svg +14 -0
- package/assets/icons/visibility.svg +1 -0
- package/assets/intems-logo.svg +3 -0
- package/babel.config.js +6 -0
- package/buses/eventBus.ts +19 -0
- package/buses/events/GiveKudosEvent.ts +7 -0
- package/components/buttons/action-button/ActionButton.scss +133 -0
- package/components/buttons/action-button/ActionButton.ts +57 -0
- package/components/buttons/action-button/ActionButton.vue +50 -0
- package/components/buttons/secondary-button/SecondaryButton.scss +48 -0
- package/components/buttons/secondary-button/SecondaryButton.ts +28 -0
- package/components/buttons/secondary-button/SecondaryButton.vue +27 -0
- package/components/confirm/Confirm.scss +44 -0
- package/components/confirm/Confirm.ts +82 -0
- package/components/confirm/Confirm.vue +64 -0
- package/components/give-kudos-form/GiveKudosForm.scss +114 -0
- package/components/give-kudos-form/GiveKudosForm.ts +159 -0
- package/components/give-kudos-form/GiveKudosForm.vue +131 -0
- package/components/give-kudos-form/mixins/UserSelectMixin.ts +57 -0
- package/components/give-kudos-form/models/KudosShareModel.ts +6 -0
- package/components/give-kudos-form/models/UserListModel.ts +5 -0
- package/components/give-kudos-form/validators/InEnglishValidatorRegex.ts +17 -0
- package/components/give-kudos-form/validators/KudosBalance.ts +10 -0
- package/components/modal/Modal.scss +53 -0
- package/components/modal/Modal.ts +70 -0
- package/components/modal/Modal.vue +28 -0
- package/components/notifications-sidebar/NotificationsSidebar.scss +665 -0
- package/components/notifications-sidebar/NotificationsSidebar.ts +203 -0
- package/components/notifications-sidebar/NotificationsSidebar.vue +171 -0
- package/components/notifications-sidebar/models/BroadcastNotificationPayload.ts +8 -0
- package/components/notifications-sidebar/models/TotalCounter.ts +50 -0
- package/components/notifications-sidebar/notification/Notification.ts +17 -0
- package/components/notifications-sidebar/notification/Notification.vue +87 -0
- package/components/play-pause/PlayPause.scss +33 -0
- package/components/play-pause/PlayPause.ts +156 -0
- package/components/play-pause/PlayPause.vue +36 -0
- package/components/play-pause/PlayPauseStatus.ts +4 -0
- package/components/play-pause/helpers/LatestTrackedTimeDurationHelper.ts +55 -0
- package/components/play-pause/helpers/PauseHelper.ts +55 -0
- package/components/play-pause/helpers/TrackedTimeHelper.ts +80 -0
- package/components/preloader/Preloader.vue +34 -0
- package/components/request-loader/RequestLoader.scss +20 -0
- package/components/request-loader/RequestLoader.ts +80 -0
- package/components/request-loader/RequestLoader.vue +15 -0
- package/components/sub-menu/SubMenu.scss +33 -0
- package/components/sub-menu/SubMenu.ts +38 -0
- package/components/sub-menu/SubMenu.vue +21 -0
- package/components/time-ago/TimeAgo.ts +34 -0
- package/components/time-ago/TimeAgo.vue +9 -0
- package/components/user-picture/UserPicture.scss +62 -0
- package/components/user-picture/UserPicture.ts +105 -0
- package/components/user-picture/UserPicture.vue +23 -0
- package/components/v-select-intems/VSelectIntems.ts +112 -0
- package/components/v-select-intems/VSelectIntems.vue +68 -0
- package/components/v-select-intems/open-indicator/OpenIndicator.vue +3 -0
- package/dist/css/1.css +85 -0
- package/dist/css/2.css +34 -0
- package/dist/css/3.css +34 -0
- package/dist/css/4.css +34 -0
- package/dist/css/5.css +34 -0
- package/dist/css/main.css +1564 -0
- package/dist/html/app.html +19 -0
- package/dist/html/styles.html +1 -0
- package/dist/images/intems-logo.svg +3 -0
- package/dist/js/0.js +315 -0
- package/dist/js/1.js +313 -0
- package/dist/js/2.js +217 -0
- package/dist/js/3.js +181 -0
- package/dist/js/4.js +181 -0
- package/dist/js/5.js +181 -0
- package/dist/js/6.js +47 -0
- package/dist/js/main.js +7465 -0
- package/dist/js/vue.js +15 -0
- package/helpers/GeneralHelper.ts +61 -0
- package/helpers/PublisherSubscriber.ts +34 -0
- package/helpers/QueryFilter.ts +204 -0
- package/helpers/TimeHelper.ts +54 -0
- package/helpers/Validations.ts +7 -0
- package/helpers/model/ModelHelper.ts +155 -0
- package/helpers/model/decorators/AsCollection.ts +26 -0
- package/helpers/model/decorators/AsModel.ts +25 -0
- package/helpers/model/decorators/DateTime.ts +26 -0
- package/helpers/model/decorators/TimeDuration.ts +33 -0
- package/helpers/moment/Duration.ts +64 -0
- package/helpers/moment/Moment.ts +17 -0
- package/helpers/moment/index.d.ts +20 -0
- package/helpers/response/AxiosProxy.ts +72 -0
- package/helpers/response/ErrorsToToastHelper.ts +42 -0
- package/helpers/response/ResponseCode.ts +16 -0
- package/helpers/response/ResponseHelper.ts +42 -0
- package/helpers/response/ResponseInterface.ts +34 -0
- package/helpers/response/ResponseState.ts +6 -0
- package/jsconfig.json +19 -0
- package/mixins/IntemsMath.ts +29 -0
- package/mixins/notifications/ActionProcessing.ts +134 -0
- package/mixins/notifications/confirms/AssetRejectionConfirm.vue +59 -0
- package/mixins/notifications/confirms/SickLeaveRejectionConfirm.vue +31 -0
- package/mixins/notifications/confirms/UnpaidLeaveRejectionConfirm.vue +31 -0
- package/mixins/notifications/confirms/VacationRejectionConfirm.vue +31 -0
- package/models/AssetModel.ts +80 -0
- package/models/AssetRequestModel.ts +25 -0
- package/models/ConfigModel.ts +20 -0
- package/models/EmployeeStartEndDateModel.ts +16 -0
- package/models/EmploymentTypeModel.ts +95 -0
- package/models/LogoutModel.ts +3 -0
- package/models/Model.ts +12 -0
- package/models/ModuleOptions.ts +24 -0
- package/models/PublicInfoModel.ts +38 -0
- package/models/PublicLocationModel.ts +36 -0
- package/models/StatusModel.ts +8 -0
- package/models/TrackedTimeModel.ts +32 -0
- package/models/location/PublicLocationModel.ts +36 -0
- package/models/timezones/LocalTimezoneHistoryModel.ts +8 -0
- package/models/timezones/TimezoneModel.ts +9 -0
- package/models/user/ExtendedInfoModel.ts +37 -0
- package/models/user/NotificationActionModel.ts +53 -0
- package/models/user/NotificationModel.ts +84 -0
- package/models/user/PublicInfoModel.ts +38 -0
- package/models/user/WelcomeProgram.ts +4 -0
- package/package.json +117 -0
- package/repositories/BaseRepository.ts +42 -0
- package/repositories/BaseUrl.ts +107 -0
- package/repositories/Repository.ts +291 -0
- package/repositories/ResourceRepository.ts +99 -0
- package/repositories/TrackedTimeRepository.ts +43 -0
- package/repositories/UserRepository.ts +75 -0
- package/repositories/subscribers/CreateSubscribers.ts +28 -0
- package/repositories/subscribers/DefaultSubscribers.ts +82 -0
- package/repositories/subscribers/DeleteSubscribers.ts +28 -0
- package/repositories/subscribers/DownloadSubscribers.ts +28 -0
- package/repositories/subscribers/Subscribers.ts +13 -0
- package/repositories/subscribers/UpdateSubscribers.ts +32 -0
- package/scss/components/_global.scss +66 -0
- package/scss/components/_mixins.scss +31 -0
- package/scss/components/_tooltip.scss +45 -0
- package/scss/components/_utils.scss +26 -0
- package/scss/components/_variables.scss +103 -0
- package/scss/main.scss +7 -0
- package/shims-vue.d.ts +9 -0
- package/tsconfig.json +31 -0
- package/webpack.config.js +126 -0
- package/wrapper.ts +51 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@import "../../scss/components/variables";
|
|
3
|
+
|
|
4
|
+
.image-wrapper {
|
|
5
|
+
&.sm {
|
|
6
|
+
width: 35px;
|
|
7
|
+
height: 35px;
|
|
8
|
+
.user-image {
|
|
9
|
+
border: 1px solid map.get($intems-colors, "border");
|
|
10
|
+
&.anonymous {
|
|
11
|
+
font-size: $font-size-12;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
&.md {
|
|
16
|
+
height: 44px;
|
|
17
|
+
width: 44px;
|
|
18
|
+
.user-image {
|
|
19
|
+
border: 1px solid map.get($intems-colors, "border");
|
|
20
|
+
&.anonymous {
|
|
21
|
+
font-size: $font-size-16;
|
|
22
|
+
color: map.get($intems-colors, "text-disable");
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
&.lg {
|
|
27
|
+
height: 96px;
|
|
28
|
+
width: 96px;
|
|
29
|
+
}
|
|
30
|
+
&.xl {
|
|
31
|
+
height: 128px;
|
|
32
|
+
width: 128px;
|
|
33
|
+
.user-image.anonymous {
|
|
34
|
+
font-size: $font-size-50;
|
|
35
|
+
color: map.get($intems-colors, "text-disable");
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
.user-image {
|
|
39
|
+
border: 2px solid map.get($intems-colors, "border");
|
|
40
|
+
border-radius: 50%;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
width: inherit;
|
|
43
|
+
height: inherit;
|
|
44
|
+
|
|
45
|
+
&img {
|
|
46
|
+
object-fit: cover;
|
|
47
|
+
}
|
|
48
|
+
&.anonymous {
|
|
49
|
+
background-color: map.get($intems-colors, "background");
|
|
50
|
+
font-size: $font-size-40;
|
|
51
|
+
color: map.get($intems-colors, "text-disable");
|
|
52
|
+
font-weight: 600;
|
|
53
|
+
text-transform: uppercase;
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
align-items: center;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
&.no-border .user-image {
|
|
60
|
+
border: none;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { PropType } from "vue";
|
|
2
|
+
import { VueLazyloadImage } from "vue-lazyload";
|
|
3
|
+
import PublicInfoModel from "../../models/PublicInfoModel";
|
|
4
|
+
|
|
5
|
+
enum Size {
|
|
6
|
+
sm = "sm",
|
|
7
|
+
md = "md",
|
|
8
|
+
lg = "lg",
|
|
9
|
+
xl = "xl",
|
|
10
|
+
full = "full",
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface IPictureOptions {
|
|
14
|
+
size: Size;
|
|
15
|
+
noBorder: boolean;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const OPTIONS: IPictureOptions = {
|
|
19
|
+
size: Size.md,
|
|
20
|
+
noBorder: false,
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export interface IPictureModel {
|
|
24
|
+
avatar_url: string;
|
|
25
|
+
thumbnail_url: string;
|
|
26
|
+
first_name: string;
|
|
27
|
+
last_name: string;
|
|
28
|
+
}
|
|
29
|
+
const EMPTY_MODEL: IPictureModel = {
|
|
30
|
+
avatar_url: "",
|
|
31
|
+
first_name: "",
|
|
32
|
+
last_name: "",
|
|
33
|
+
thumbnail_url: "",
|
|
34
|
+
};
|
|
35
|
+
export default {
|
|
36
|
+
props: {
|
|
37
|
+
employee: {} as PublicInfoModel | IPictureModel,
|
|
38
|
+
options: {} as PropType<IPictureOptions>,
|
|
39
|
+
},
|
|
40
|
+
mounted(): void {
|
|
41
|
+
this.cOptions = { ...OPTIONS, ...this.options };
|
|
42
|
+
this.pictureModel = this.toPictureModel();
|
|
43
|
+
},
|
|
44
|
+
watch: {
|
|
45
|
+
employee: {
|
|
46
|
+
deep: true,
|
|
47
|
+
handler(newVal: IPictureModel, oldVal: IPictureModel): void {
|
|
48
|
+
if (newVal.avatar_url && newVal.avatar_url !== oldVal.avatar_url) {
|
|
49
|
+
this.anonymous = false;
|
|
50
|
+
}
|
|
51
|
+
this.pictureModel = this.toPictureModel();
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
computed: {
|
|
56
|
+
image(): VueLazyloadImage {
|
|
57
|
+
return {
|
|
58
|
+
src: this.imageUrl,
|
|
59
|
+
error: `not-image`,
|
|
60
|
+
} as VueLazyloadImage;
|
|
61
|
+
},
|
|
62
|
+
imageUrl(): string {
|
|
63
|
+
return [Size.sm, Size.md].includes(this.cOptions.size) &&
|
|
64
|
+
this.pictureModel.thumbnail_url
|
|
65
|
+
? this.pictureModel.thumbnail_url
|
|
66
|
+
: this.pictureModel.avatar_url;
|
|
67
|
+
},
|
|
68
|
+
imageAlt(): string {
|
|
69
|
+
return `${this.pictureModel.first_name} ${this.pictureModel.last_name} avatar`;
|
|
70
|
+
},
|
|
71
|
+
employeeInitials(): string {
|
|
72
|
+
return `${
|
|
73
|
+
typeof this.pictureModel.first_name === "string"
|
|
74
|
+
? this.pictureModel.first_name.substring(0, 1)
|
|
75
|
+
: ""
|
|
76
|
+
}${
|
|
77
|
+
typeof this.pictureModel.last_name === "string"
|
|
78
|
+
? this.pictureModel.last_name.substring(0, 1)
|
|
79
|
+
: ""
|
|
80
|
+
}`;
|
|
81
|
+
},
|
|
82
|
+
border(): string {
|
|
83
|
+
return this.cOptions.noBorder ? "no-border" : "";
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
methods: {
|
|
87
|
+
replaceByAnonymous(): void {
|
|
88
|
+
this.anonymous = true;
|
|
89
|
+
},
|
|
90
|
+
toPictureModel(): IPictureModel {
|
|
91
|
+
if (this.employee === undefined) {
|
|
92
|
+
return EMPTY_MODEL as IPictureModel;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return { ...EMPTY_MODEL, ...this.employee };
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
data(): Record<string, unknown> {
|
|
99
|
+
return {
|
|
100
|
+
anonymous: false,
|
|
101
|
+
cOptions: {} as IPictureOptions,
|
|
102
|
+
pictureModel: {} as IPictureModel,
|
|
103
|
+
};
|
|
104
|
+
},
|
|
105
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="image-wrapper" :class="[cOptions.size, border]">
|
|
3
|
+
<img
|
|
4
|
+
v-if="imageUrl && !anonymous"
|
|
5
|
+
class="user-image"
|
|
6
|
+
v-lazy="image"
|
|
7
|
+
:alt="imageAlt"
|
|
8
|
+
@error="replaceByAnonymous"
|
|
9
|
+
/>
|
|
10
|
+
<div v-else class="user-image anonymous" :title="imageAlt">
|
|
11
|
+
<span>{{ employeeInitials }}</span>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script>
|
|
17
|
+
import UserPicture from "./UserPicture";
|
|
18
|
+
|
|
19
|
+
export default UserPicture;
|
|
20
|
+
</script>
|
|
21
|
+
<style lang="scss">
|
|
22
|
+
@import "UserPicture";
|
|
23
|
+
</style>
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import vSelect from "vue-select";
|
|
2
|
+
import debounce from "lodash.debounce";
|
|
3
|
+
import UserPicture from "../user-picture/UserPicture.vue";
|
|
4
|
+
import UserListModel from "../give-kudos-form/models/UserListModel";
|
|
5
|
+
import OpenIndicator from "./open-indicator/OpenIndicator.vue";
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
components: { UserPicture, vSelect },
|
|
9
|
+
props: ["data", "value"],
|
|
10
|
+
methods: {
|
|
11
|
+
onInput(val): void {
|
|
12
|
+
this.$emit("input", val);
|
|
13
|
+
},
|
|
14
|
+
handlers(map, vm) {
|
|
15
|
+
const choose = (e) => {
|
|
16
|
+
e.preventDefault();
|
|
17
|
+
|
|
18
|
+
if (
|
|
19
|
+
vm.filteredOptions.length === 1 &&
|
|
20
|
+
vm.filteredOptions[0] instanceof UserListModel &&
|
|
21
|
+
vm.filteredOptions[0].disabled_option
|
|
22
|
+
) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
vm.typeAheadSelect();
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
return {
|
|
29
|
+
...map,
|
|
30
|
+
13: choose,
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
opened(): void {
|
|
34
|
+
this.$emit("open");
|
|
35
|
+
|
|
36
|
+
const comboboxEl = this.toggleElement;
|
|
37
|
+
const selectedEl = this.$el.getElementsByClassName("vs__selected")[0];
|
|
38
|
+
if (this.data.multiple || !comboboxEl || !selectedEl) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
comboboxEl.style.height = `${selectedEl.offsetHeight + 9}px`;
|
|
43
|
+
},
|
|
44
|
+
search: debounce(function (val) {
|
|
45
|
+
if (val) {
|
|
46
|
+
this.$emit("search", val);
|
|
47
|
+
}
|
|
48
|
+
}, 500),
|
|
49
|
+
selected(val): void {
|
|
50
|
+
this.$emit("selected", val);
|
|
51
|
+
},
|
|
52
|
+
deselected(val): void {
|
|
53
|
+
this.$emit("deselected", val);
|
|
54
|
+
},
|
|
55
|
+
selecting(val): void {
|
|
56
|
+
this.$emit("selecting", val);
|
|
57
|
+
},
|
|
58
|
+
deselecting(val): void {
|
|
59
|
+
this.$emit("deselecting", val);
|
|
60
|
+
},
|
|
61
|
+
closed(): void {
|
|
62
|
+
this.$emit("close");
|
|
63
|
+
|
|
64
|
+
const comboboxEl = this.toggleElement;
|
|
65
|
+
if (this.data.multiple && !comboboxEl) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
comboboxEl.style.height = null;
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
computed: {
|
|
73
|
+
toggleElement(): Element {
|
|
74
|
+
return this.$el.getElementsByClassName("vs__dropdown-toggle")[0];
|
|
75
|
+
},
|
|
76
|
+
filterBy() {
|
|
77
|
+
return this.data.filterBy
|
|
78
|
+
? (
|
|
79
|
+
option: Record<string, unknown>,
|
|
80
|
+
label: string,
|
|
81
|
+
search: string
|
|
82
|
+
): boolean => {
|
|
83
|
+
let searchString = "";
|
|
84
|
+
this.data.filterBy.forEach((field) => {
|
|
85
|
+
searchString +=
|
|
86
|
+
option[field] !== undefined ? ` ${option[field]}` : "";
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
return (
|
|
90
|
+
searchString.toLowerCase().indexOf(search.toLowerCase()) > -1
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
: undefined;
|
|
94
|
+
},
|
|
95
|
+
showOptionsWithAvatars(): boolean {
|
|
96
|
+
return this.data.class && this.data.class["select-with-avatars"];
|
|
97
|
+
},
|
|
98
|
+
customOption(): boolean {
|
|
99
|
+
return this.showOptionsWithAvatars;
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
data(): Record<string, unknown> {
|
|
103
|
+
return {
|
|
104
|
+
Deselect,
|
|
105
|
+
OpenIndicator,
|
|
106
|
+
attributes: {
|
|
107
|
+
ref: "openIndicator",
|
|
108
|
+
role: "presentation",
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
},
|
|
112
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-select
|
|
3
|
+
:selectable="(item) => !item.disabled_option"
|
|
4
|
+
:value="value"
|
|
5
|
+
@input="onInput"
|
|
6
|
+
v-bind="data"
|
|
7
|
+
:components="{ OpenIndicator }"
|
|
8
|
+
v-bind:filterBy="filterBy"
|
|
9
|
+
:map-keydown="handlers"
|
|
10
|
+
@open="opened"
|
|
11
|
+
@close="closed"
|
|
12
|
+
@search="search"
|
|
13
|
+
@option:selected="selected"
|
|
14
|
+
@option:deselected="deselected"
|
|
15
|
+
@option:selecting="selecting"
|
|
16
|
+
@option:deselecting="deselecting"
|
|
17
|
+
>
|
|
18
|
+
<template
|
|
19
|
+
slot="selected-option"
|
|
20
|
+
v-if="showOptionsWithAvatars"
|
|
21
|
+
slot-scope="option"
|
|
22
|
+
>
|
|
23
|
+
<div class="option-with-image">
|
|
24
|
+
<user-picture
|
|
25
|
+
:employee="option"
|
|
26
|
+
:options="{ size: 'sm' }"
|
|
27
|
+
></user-picture>
|
|
28
|
+
<div class="option-value">
|
|
29
|
+
<div class="label">{{ option[data.label] }}</div>
|
|
30
|
+
<div class="position">
|
|
31
|
+
{{ option.position }}
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
<template slot="option" slot-scope="option">
|
|
37
|
+
<div>
|
|
38
|
+
<user-picture
|
|
39
|
+
:employee="option"
|
|
40
|
+
:options="{ size: 'sm' }"
|
|
41
|
+
></user-picture>
|
|
42
|
+
<span class="text-wrapper"> {{ option[data.label] }}</span>
|
|
43
|
+
</div>
|
|
44
|
+
</template>
|
|
45
|
+
<template slot="option" v-if="customOption" slot-scope="option">
|
|
46
|
+
<div class="option-with-image" v-if="showOptionsWithAvatars">
|
|
47
|
+
<user-picture
|
|
48
|
+
:employee="option"
|
|
49
|
+
:options="{ size: 'sm' }"
|
|
50
|
+
></user-picture>
|
|
51
|
+
<div class="text-block">
|
|
52
|
+
<span class="text-name"> {{ option[data.label] }}</span>
|
|
53
|
+
<br />
|
|
54
|
+
<span class="text-position"> {{ option.position }}</span>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</template>
|
|
58
|
+
|
|
59
|
+
<template #list-footer>
|
|
60
|
+
<slot name="list-footer"></slot>
|
|
61
|
+
</template>
|
|
62
|
+
</v-select>
|
|
63
|
+
</template>
|
|
64
|
+
<script>
|
|
65
|
+
import VSelectIntems from "./VSelectIntems";
|
|
66
|
+
|
|
67
|
+
export default VSelectIntems;
|
|
68
|
+
</script>
|
package/dist/css/1.css
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
.give-kudos .user ul {
|
|
2
|
+
max-height: 200px;
|
|
3
|
+
}
|
|
4
|
+
.give-kudos a {
|
|
5
|
+
font-weight: bold;
|
|
6
|
+
}
|
|
7
|
+
.give-kudos .subtitle {
|
|
8
|
+
padding: 0px 0 30px 0;
|
|
9
|
+
}
|
|
10
|
+
.give-kudos .form {
|
|
11
|
+
display: grid;
|
|
12
|
+
grid-template-columns: auto 207px;
|
|
13
|
+
grid-gap: 15px;
|
|
14
|
+
/* Chrome, Safari, Edge, Opera */
|
|
15
|
+
/* Firefox */
|
|
16
|
+
}
|
|
17
|
+
.give-kudos .form .vs__selected-options {
|
|
18
|
+
flex-wrap: nowrap;
|
|
19
|
+
}
|
|
20
|
+
.give-kudos .form .vs__selected-options span.vs__selected {
|
|
21
|
+
white-space: nowrap;
|
|
22
|
+
}
|
|
23
|
+
.give-kudos .form .kudos-quantity {
|
|
24
|
+
height: 38px;
|
|
25
|
+
margin: 0;
|
|
26
|
+
border: solid 1px #cbd5e1;
|
|
27
|
+
background-color: #ffffff;
|
|
28
|
+
padding: 0 15px;
|
|
29
|
+
width: 175px;
|
|
30
|
+
}
|
|
31
|
+
.give-kudos .form input.kudos-quantity:focus {
|
|
32
|
+
border: solid 1px #00a58e;
|
|
33
|
+
box-shadow: none;
|
|
34
|
+
}
|
|
35
|
+
.give-kudos .form input::-webkit-outer-spin-button,
|
|
36
|
+
.give-kudos .form input::-webkit-inner-spin-button {
|
|
37
|
+
-webkit-appearance: none;
|
|
38
|
+
margin: 0;
|
|
39
|
+
}
|
|
40
|
+
.give-kudos .form input[type=number] {
|
|
41
|
+
-moz-appearance: textfield;
|
|
42
|
+
}
|
|
43
|
+
.give-kudos .form .user {
|
|
44
|
+
grid-column: span 2;
|
|
45
|
+
margin-right: 1px;
|
|
46
|
+
}
|
|
47
|
+
.give-kudos .form .block-kudos-quantity {
|
|
48
|
+
width: 190px;
|
|
49
|
+
}
|
|
50
|
+
.give-kudos .form .block-kudos-category {
|
|
51
|
+
margin-right: 5px;
|
|
52
|
+
}
|
|
53
|
+
.give-kudos .form .description {
|
|
54
|
+
grid-column: span 2;
|
|
55
|
+
margin-right: 1px;
|
|
56
|
+
}
|
|
57
|
+
.give-kudos .form .description textarea {
|
|
58
|
+
resize: none;
|
|
59
|
+
min-height: 100px;
|
|
60
|
+
max-height: 300px;
|
|
61
|
+
min-width: 100%;
|
|
62
|
+
max-width: 100%;
|
|
63
|
+
border-radius: 2px;
|
|
64
|
+
border: solid 1px #cbd5e1;
|
|
65
|
+
outline: none;
|
|
66
|
+
padding: 10px;
|
|
67
|
+
}
|
|
68
|
+
.give-kudos .form label {
|
|
69
|
+
display: flex;
|
|
70
|
+
font-size: 0.94rem;
|
|
71
|
+
margin-bottom: 10px;
|
|
72
|
+
color: #1a2732;
|
|
73
|
+
}
|
|
74
|
+
.give-kudos .form .error {
|
|
75
|
+
font-size: 0.8rem;
|
|
76
|
+
}
|
|
77
|
+
.give-kudos .form .error-field {
|
|
78
|
+
border: solid 1px #da1e28;
|
|
79
|
+
}
|
|
80
|
+
.give-kudos button.btn-large[disabled] {
|
|
81
|
+
background-color: #c2e9e4 !important;
|
|
82
|
+
}
|
|
83
|
+
.give-kudos .vs__clear svg {
|
|
84
|
+
display: none;
|
|
85
|
+
}
|
package/dist/css/2.css
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.modal.confirm {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
min-width: 280px;
|
|
4
|
+
min-height: 150px;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
background-color: #ffffff;
|
|
7
|
+
position: fixed;
|
|
8
|
+
}
|
|
9
|
+
.modal.confirm.open {
|
|
10
|
+
display: flex !important;
|
|
11
|
+
}
|
|
12
|
+
.modal.confirm .header {
|
|
13
|
+
padding-bottom: 10px;
|
|
14
|
+
}
|
|
15
|
+
.modal.confirm .header i.modal-close {
|
|
16
|
+
float: right;
|
|
17
|
+
height: 24px;
|
|
18
|
+
line-height: 24px;
|
|
19
|
+
}
|
|
20
|
+
.modal.confirm .header h3 {
|
|
21
|
+
color: #1a2732;
|
|
22
|
+
}
|
|
23
|
+
.modal.confirm .header + .modal-footer {
|
|
24
|
+
padding-top: 30px;
|
|
25
|
+
}
|
|
26
|
+
.modal.confirm .modal-content {
|
|
27
|
+
white-space: normal;
|
|
28
|
+
color: #1a2732;
|
|
29
|
+
overflow: initial;
|
|
30
|
+
font-weight: normal;
|
|
31
|
+
line-height: normal;
|
|
32
|
+
margin-right: 0;
|
|
33
|
+
padding-right: 0;
|
|
34
|
+
}
|
package/dist/css/3.css
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.modal.confirm {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
min-width: 280px;
|
|
4
|
+
min-height: 150px;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
background-color: #ffffff;
|
|
7
|
+
position: fixed;
|
|
8
|
+
}
|
|
9
|
+
.modal.confirm.open {
|
|
10
|
+
display: flex !important;
|
|
11
|
+
}
|
|
12
|
+
.modal.confirm .header {
|
|
13
|
+
padding-bottom: 10px;
|
|
14
|
+
}
|
|
15
|
+
.modal.confirm .header i.modal-close {
|
|
16
|
+
float: right;
|
|
17
|
+
height: 24px;
|
|
18
|
+
line-height: 24px;
|
|
19
|
+
}
|
|
20
|
+
.modal.confirm .header h3 {
|
|
21
|
+
color: #1a2732;
|
|
22
|
+
}
|
|
23
|
+
.modal.confirm .header + .modal-footer {
|
|
24
|
+
padding-top: 30px;
|
|
25
|
+
}
|
|
26
|
+
.modal.confirm .modal-content {
|
|
27
|
+
white-space: normal;
|
|
28
|
+
color: #1a2732;
|
|
29
|
+
overflow: initial;
|
|
30
|
+
font-weight: normal;
|
|
31
|
+
line-height: normal;
|
|
32
|
+
margin-right: 0;
|
|
33
|
+
padding-right: 0;
|
|
34
|
+
}
|
package/dist/css/4.css
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.modal.confirm {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
min-width: 280px;
|
|
4
|
+
min-height: 150px;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
background-color: #ffffff;
|
|
7
|
+
position: fixed;
|
|
8
|
+
}
|
|
9
|
+
.modal.confirm.open {
|
|
10
|
+
display: flex !important;
|
|
11
|
+
}
|
|
12
|
+
.modal.confirm .header {
|
|
13
|
+
padding-bottom: 10px;
|
|
14
|
+
}
|
|
15
|
+
.modal.confirm .header i.modal-close {
|
|
16
|
+
float: right;
|
|
17
|
+
height: 24px;
|
|
18
|
+
line-height: 24px;
|
|
19
|
+
}
|
|
20
|
+
.modal.confirm .header h3 {
|
|
21
|
+
color: #1a2732;
|
|
22
|
+
}
|
|
23
|
+
.modal.confirm .header + .modal-footer {
|
|
24
|
+
padding-top: 30px;
|
|
25
|
+
}
|
|
26
|
+
.modal.confirm .modal-content {
|
|
27
|
+
white-space: normal;
|
|
28
|
+
color: #1a2732;
|
|
29
|
+
overflow: initial;
|
|
30
|
+
font-weight: normal;
|
|
31
|
+
line-height: normal;
|
|
32
|
+
margin-right: 0;
|
|
33
|
+
padding-right: 0;
|
|
34
|
+
}
|
package/dist/css/5.css
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.modal.confirm {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
min-width: 280px;
|
|
4
|
+
min-height: 150px;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
background-color: #ffffff;
|
|
7
|
+
position: fixed;
|
|
8
|
+
}
|
|
9
|
+
.modal.confirm.open {
|
|
10
|
+
display: flex !important;
|
|
11
|
+
}
|
|
12
|
+
.modal.confirm .header {
|
|
13
|
+
padding-bottom: 10px;
|
|
14
|
+
}
|
|
15
|
+
.modal.confirm .header i.modal-close {
|
|
16
|
+
float: right;
|
|
17
|
+
height: 24px;
|
|
18
|
+
line-height: 24px;
|
|
19
|
+
}
|
|
20
|
+
.modal.confirm .header h3 {
|
|
21
|
+
color: #1a2732;
|
|
22
|
+
}
|
|
23
|
+
.modal.confirm .header + .modal-footer {
|
|
24
|
+
padding-top: 30px;
|
|
25
|
+
}
|
|
26
|
+
.modal.confirm .modal-content {
|
|
27
|
+
white-space: normal;
|
|
28
|
+
color: #1a2732;
|
|
29
|
+
overflow: initial;
|
|
30
|
+
font-weight: normal;
|
|
31
|
+
line-height: normal;
|
|
32
|
+
margin-right: 0;
|
|
33
|
+
padding-right: 0;
|
|
34
|
+
}
|