@intellias/menu 1.0.2 → 1.0.5
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 +44 -9
- package/dist/css/main.css +155 -2
- package/dist/index.html +9 -0
- package/dist/js/{1.js → kudosForm.js} +24 -58
- package/dist/js/main.js +654 -689
- package/dist/js/rejectComponent.js +363 -0
- package/dist/js/{6.js → vendors~kudosForm.js} +5 -5
- package/dist/js/{0.js → vendors~kudosForm~rejectComponent.js} +27 -27
- package/dist/js/vue.js +2 -2
- package/package.json +100 -112
- package/Menu.ts +0 -625
- package/assets/icons/arrow-down.svg +0 -13
- package/assets/icons/arrow-left.svg +0 -3
- package/assets/icons/arrow-submenu.svg +0 -8
- package/assets/icons/close.svg +0 -3
- package/assets/icons/delete.svg +0 -13
- package/assets/icons/faq-new.svg +0 -4
- package/assets/icons/kudos.svg +0 -14
- package/assets/icons/loading-spinner.svg +0 -40
- package/assets/icons/notification.svg +0 -11
- package/assets/icons/notifications/assessment.svg +0 -10
- package/assets/icons/notifications/buddy_program.svg +0 -8
- package/assets/icons/notifications/compensation_packages.svg +0 -10
- package/assets/icons/notifications/dsat.svg +0 -8
- package/assets/icons/notifications/feedback.svg +0 -7
- package/assets/icons/notifications/kudos.svg +0 -4
- package/assets/icons/notifications/overtime_requests.svg +0 -15
- package/assets/icons/notifications/pdu_program.svg +0 -4
- package/assets/icons/notifications/profile_update.svg +0 -6
- package/assets/icons/notifications/recommendation_program.svg +0 -7
- package/assets/icons/notifications/reminders.svg +0 -4
- package/assets/icons/notifications/sick_leaves.svg +0 -5
- package/assets/icons/notifications/smarts.svg +0 -4
- package/assets/icons/notifications/survey.svg +0 -8
- package/assets/icons/notifications/unpaid_leave.svg +0 -4
- package/assets/icons/notifications/vacations.svg +0 -4
- package/assets/icons/pause.svg +0 -13
- package/assets/icons/play.svg +0 -13
- package/assets/icons/smart.svg +0 -14
- package/assets/icons/smarts-kudos.svg +0 -11
- package/assets/icons/spinner-solid.svg +0 -1
- package/assets/icons/vacation.svg +0 -14
- package/assets/icons/visibility.svg +0 -1
- package/assets/intems-logo.svg +0 -3
- package/babel.config.js +0 -6
- package/buses/eventBus.ts +0 -19
- package/buses/events/GiveKudosEvent.ts +0 -7
- package/components/buttons/action-button/ActionButton.scss +0 -133
- package/components/buttons/action-button/ActionButton.ts +0 -57
- package/components/buttons/action-button/ActionButton.vue +0 -50
- package/components/buttons/secondary-button/SecondaryButton.scss +0 -48
- package/components/buttons/secondary-button/SecondaryButton.ts +0 -28
- package/components/buttons/secondary-button/SecondaryButton.vue +0 -27
- package/components/confirm/Confirm.scss +0 -44
- package/components/confirm/Confirm.ts +0 -82
- package/components/confirm/Confirm.vue +0 -64
- package/components/give-kudos-form/GiveKudosForm.scss +0 -114
- package/components/give-kudos-form/GiveKudosForm.ts +0 -159
- package/components/give-kudos-form/GiveKudosForm.vue +0 -131
- package/components/give-kudos-form/mixins/UserSelectMixin.ts +0 -57
- package/components/give-kudos-form/models/KudosShareModel.ts +0 -6
- package/components/give-kudos-form/models/UserListModel.ts +0 -5
- package/components/give-kudos-form/validators/InEnglishValidatorRegex.ts +0 -17
- package/components/give-kudos-form/validators/KudosBalance.ts +0 -10
- package/components/modal/Modal.scss +0 -53
- package/components/modal/Modal.ts +0 -70
- package/components/modal/Modal.vue +0 -28
- package/components/notifications-sidebar/NotificationsSidebar.scss +0 -665
- package/components/notifications-sidebar/NotificationsSidebar.ts +0 -203
- package/components/notifications-sidebar/NotificationsSidebar.vue +0 -171
- package/components/notifications-sidebar/models/BroadcastNotificationPayload.ts +0 -8
- package/components/notifications-sidebar/models/TotalCounter.ts +0 -50
- package/components/notifications-sidebar/notification/Notification.ts +0 -17
- package/components/notifications-sidebar/notification/Notification.vue +0 -87
- package/components/play-pause/PlayPause.scss +0 -33
- package/components/play-pause/PlayPause.ts +0 -156
- package/components/play-pause/PlayPause.vue +0 -36
- package/components/play-pause/PlayPauseStatus.ts +0 -4
- package/components/play-pause/helpers/LatestTrackedTimeDurationHelper.ts +0 -55
- package/components/play-pause/helpers/PauseHelper.ts +0 -55
- package/components/play-pause/helpers/TrackedTimeHelper.ts +0 -80
- package/components/preloader/Preloader.vue +0 -34
- package/components/request-loader/RequestLoader.scss +0 -20
- package/components/request-loader/RequestLoader.ts +0 -80
- package/components/request-loader/RequestLoader.vue +0 -15
- package/components/sub-menu/SubMenu.scss +0 -33
- package/components/sub-menu/SubMenu.ts +0 -38
- package/components/sub-menu/SubMenu.vue +0 -21
- package/components/time-ago/TimeAgo.ts +0 -34
- package/components/time-ago/TimeAgo.vue +0 -9
- package/components/user-picture/UserPicture.scss +0 -62
- package/components/user-picture/UserPicture.ts +0 -105
- package/components/user-picture/UserPicture.vue +0 -23
- package/components/v-select-intems/VSelectIntems.ts +0 -112
- package/components/v-select-intems/VSelectIntems.vue +0 -68
- package/components/v-select-intems/open-indicator/OpenIndicator.vue +0 -3
- package/dist/css/1.css +0 -85
- package/dist/css/2.css +0 -34
- package/dist/css/3.css +0 -34
- package/dist/css/4.css +0 -34
- package/dist/css/5.css +0 -34
- package/dist/html/app.html +0 -19
- package/dist/html/styles.html +0 -1
- package/dist/js/2.js +0 -217
- package/dist/js/3.js +0 -181
- package/dist/js/4.js +0 -181
- package/dist/js/5.js +0 -181
- package/helpers/GeneralHelper.ts +0 -61
- package/helpers/PublisherSubscriber.ts +0 -34
- package/helpers/QueryFilter.ts +0 -204
- package/helpers/TimeHelper.ts +0 -54
- package/helpers/Validations.ts +0 -7
- package/helpers/model/ModelHelper.ts +0 -155
- package/helpers/model/decorators/AsCollection.ts +0 -26
- package/helpers/model/decorators/AsModel.ts +0 -25
- package/helpers/model/decorators/DateTime.ts +0 -26
- package/helpers/model/decorators/TimeDuration.ts +0 -33
- package/helpers/moment/Duration.ts +0 -64
- package/helpers/moment/Moment.ts +0 -17
- package/helpers/moment/index.d.ts +0 -20
- package/helpers/response/AxiosProxy.ts +0 -72
- package/helpers/response/ErrorsToToastHelper.ts +0 -42
- package/helpers/response/ResponseCode.ts +0 -16
- package/helpers/response/ResponseHelper.ts +0 -42
- package/helpers/response/ResponseInterface.ts +0 -34
- package/helpers/response/ResponseState.ts +0 -6
- package/jsconfig.json +0 -19
- package/mixins/IntemsMath.ts +0 -29
- package/mixins/notifications/ActionProcessing.ts +0 -134
- package/mixins/notifications/confirms/AssetRejectionConfirm.vue +0 -59
- package/mixins/notifications/confirms/SickLeaveRejectionConfirm.vue +0 -31
- package/mixins/notifications/confirms/UnpaidLeaveRejectionConfirm.vue +0 -31
- package/mixins/notifications/confirms/VacationRejectionConfirm.vue +0 -31
- package/models/AssetModel.ts +0 -80
- package/models/AssetRequestModel.ts +0 -25
- package/models/ConfigModel.ts +0 -20
- package/models/EmployeeStartEndDateModel.ts +0 -16
- package/models/EmploymentTypeModel.ts +0 -95
- package/models/LogoutModel.ts +0 -3
- package/models/Model.ts +0 -12
- package/models/ModuleOptions.ts +0 -24
- package/models/PublicInfoModel.ts +0 -38
- package/models/PublicLocationModel.ts +0 -36
- package/models/StatusModel.ts +0 -8
- package/models/TrackedTimeModel.ts +0 -32
- package/models/location/PublicLocationModel.ts +0 -36
- package/models/timezones/LocalTimezoneHistoryModel.ts +0 -8
- package/models/timezones/TimezoneModel.ts +0 -9
- package/models/user/ExtendedInfoModel.ts +0 -37
- package/models/user/NotificationActionModel.ts +0 -53
- package/models/user/NotificationModel.ts +0 -84
- package/models/user/PublicInfoModel.ts +0 -38
- package/models/user/WelcomeProgram.ts +0 -4
- package/repositories/BaseRepository.ts +0 -42
- package/repositories/BaseUrl.ts +0 -107
- package/repositories/Repository.ts +0 -291
- package/repositories/ResourceRepository.ts +0 -99
- package/repositories/TrackedTimeRepository.ts +0 -43
- package/repositories/UserRepository.ts +0 -75
- package/repositories/subscribers/CreateSubscribers.ts +0 -28
- package/repositories/subscribers/DefaultSubscribers.ts +0 -82
- package/repositories/subscribers/DeleteSubscribers.ts +0 -28
- package/repositories/subscribers/DownloadSubscribers.ts +0 -28
- package/repositories/subscribers/Subscribers.ts +0 -13
- package/repositories/subscribers/UpdateSubscribers.ts +0 -32
- package/scss/components/_global.scss +0 -66
- package/scss/components/_mixins.scss +0 -31
- package/scss/components/_tooltip.scss +0 -45
- package/scss/components/_utils.scss +0 -26
- package/scss/components/_variables.scss +0 -103
- package/scss/main.scss +0 -7
- package/shims-vue.d.ts +0 -9
- package/tsconfig.json +0 -31
- package/webpack.config.js +0 -126
- package/wrapper.ts +0 -51
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import PublicInfoModel from "../../../models/user/PublicInfoModel";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
methods: {
|
|
5
|
-
filteredOptions(options: Array<PublicInfoModel>): Array<PublicInfoModel> {
|
|
6
|
-
return options.filter((option) => {
|
|
7
|
-
return this.userSelect.filterBy.some((filterKey) => {
|
|
8
|
-
return option[filterKey]
|
|
9
|
-
.toLowerCase()
|
|
10
|
-
.includes(this.userSelect.search.toLowerCase());
|
|
11
|
-
});
|
|
12
|
-
});
|
|
13
|
-
},
|
|
14
|
-
userSelectOptions(options: Array<PublicInfoModel>): Array<PublicInfoModel> {
|
|
15
|
-
return this.filteredOptions(options).slice(0, this.userSelect.limit);
|
|
16
|
-
},
|
|
17
|
-
userSelectHasNextPage(): boolean {
|
|
18
|
-
return this.userSelectOptions().length < this.filteredOptions().length;
|
|
19
|
-
},
|
|
20
|
-
async userSelectOnOpen(): Promise<void> {
|
|
21
|
-
if (this.userSelectHasNextPage) {
|
|
22
|
-
this.userSelect.observer = new IntersectionObserver(
|
|
23
|
-
this.infiniteScroll
|
|
24
|
-
);
|
|
25
|
-
await this.$nextTick();
|
|
26
|
-
this.userSelect.observer.observe(this.$refs.loadUsers);
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
userSelectOnClose(): void {
|
|
30
|
-
this.userSelect.search = "";
|
|
31
|
-
this.userSelect.observer.disconnect();
|
|
32
|
-
},
|
|
33
|
-
userSelectOnSearch(optionName: string): void {
|
|
34
|
-
this.userSelect.search = optionName;
|
|
35
|
-
},
|
|
36
|
-
async infiniteScroll([{ isIntersecting, target }]): Promise<void> {
|
|
37
|
-
if (isIntersecting) {
|
|
38
|
-
const ul = target.offsetParent;
|
|
39
|
-
const { scrollTop } = target.offsetParent;
|
|
40
|
-
this.userSelect.limit += 10;
|
|
41
|
-
await this.$nextTick();
|
|
42
|
-
ul.scrollTop = scrollTop;
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
data(): Record<string, unknown> {
|
|
47
|
-
return {
|
|
48
|
-
userSelect: {
|
|
49
|
-
label: "full_name",
|
|
50
|
-
filterBy: ["full_name", "full_name_reversed", "username"],
|
|
51
|
-
observer: null,
|
|
52
|
-
limit: 10 as number,
|
|
53
|
-
search: "" as string,
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
},
|
|
57
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const InEnglishValidatorRegex = (value: string) => {
|
|
2
|
-
if (!value) {
|
|
3
|
-
return true;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
return !/[^\x00-\x7F]+/.test(value);
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
const InEnglishWithoutSymbolsRegex = (value: string) => {
|
|
10
|
-
if (!value) {
|
|
11
|
-
return true;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
return /^[a-zA-Z0-9\s.,\n]*$/.test(value);
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export { InEnglishValidatorRegex, InEnglishWithoutSymbolsRegex };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import UserExtendedInfoModel from "../../../models/user/ExtendedInfoModel";
|
|
2
|
-
import { myOptions } from "../../../wrapper";
|
|
3
|
-
|
|
4
|
-
const KudosBalance = (value: number) =>
|
|
5
|
-
value > 0 &&
|
|
6
|
-
value <=
|
|
7
|
-
(myOptions.storeAdapter.User.state.data as UserExtendedInfoModel)
|
|
8
|
-
.kudos_balance;
|
|
9
|
-
|
|
10
|
-
export { KudosBalance };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@import "../../scss/components/utils";
|
|
3
|
-
@import "../../scss/components/variables";
|
|
4
|
-
|
|
5
|
-
.modal {
|
|
6
|
-
&-wrapper {
|
|
7
|
-
padding-bottom: 1rem;
|
|
8
|
-
border-radius: 6px !important;
|
|
9
|
-
background-color: map.get($intems-colors, "surface-primary") !important;
|
|
10
|
-
box-shadow: 0 15px 30px rgba(37, 55, 70, 0.202715);
|
|
11
|
-
color: map.get($intems-colors, "text-primary");
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&-header {
|
|
15
|
-
display: flex;
|
|
16
|
-
justify-content: space-between;
|
|
17
|
-
padding: 2rem 2rem 1rem 2rem;
|
|
18
|
-
font-size: 1.25rem;
|
|
19
|
-
font-weight: bold;
|
|
20
|
-
|
|
21
|
-
i.icon:before {
|
|
22
|
-
background-color: map.get($intems-colors, "text-primary") !important;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&-content {
|
|
27
|
-
padding: 1rem 2rem;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&-close {
|
|
31
|
-
width: 15px !important;
|
|
32
|
-
min-width: 15px;
|
|
33
|
-
height: 15px !important;
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&-footer {
|
|
38
|
-
display: flex;
|
|
39
|
-
justify-content: flex-end;
|
|
40
|
-
padding: 1rem 2rem;
|
|
41
|
-
|
|
42
|
-
.btn {
|
|
43
|
-
&:not(:first-child) {
|
|
44
|
-
margin-left: 1rem;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.vm--overlay {
|
|
51
|
-
background-color: rgba(37, 55, 70, 0.55) !important;
|
|
52
|
-
transition: 0.3s !important;
|
|
53
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { isMobile } from "mobile-device-detect";
|
|
2
|
-
|
|
3
|
-
enum ModalSize {
|
|
4
|
-
mobile = "85%",
|
|
5
|
-
sm = "500px",
|
|
6
|
-
md = "780px",
|
|
7
|
-
lg = "968px",
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
enum ModalSizeName {
|
|
11
|
-
sm = "sm",
|
|
12
|
-
md = "md",
|
|
13
|
-
lg = "lg",
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const modalSizeToName = new Map([
|
|
17
|
-
[ModalSizeName.sm, ModalSize.sm],
|
|
18
|
-
[ModalSizeName.md, ModalSize.md],
|
|
19
|
-
[ModalSizeName.lg, ModalSize.lg],
|
|
20
|
-
]);
|
|
21
|
-
|
|
22
|
-
export default {
|
|
23
|
-
props: {
|
|
24
|
-
name: {
|
|
25
|
-
type: String,
|
|
26
|
-
required: true,
|
|
27
|
-
},
|
|
28
|
-
size: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: ModalSizeName.sm,
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
methods: {
|
|
34
|
-
open(): void {
|
|
35
|
-
this.$modal.show(this.name);
|
|
36
|
-
},
|
|
37
|
-
close(): void {
|
|
38
|
-
this.$modal.hide(this.name);
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
computed: {
|
|
42
|
-
modalWidth(): string {
|
|
43
|
-
switch (this.size) {
|
|
44
|
-
case ModalSizeName.sm:
|
|
45
|
-
return !isMobile
|
|
46
|
-
? modalSizeToName.get(ModalSizeName.sm)
|
|
47
|
-
: ModalSize.mobile;
|
|
48
|
-
case ModalSizeName.md:
|
|
49
|
-
return !isMobile
|
|
50
|
-
? modalSizeToName.get(ModalSizeName.md)
|
|
51
|
-
: ModalSize.mobile;
|
|
52
|
-
case ModalSizeName.lg:
|
|
53
|
-
return !isMobile
|
|
54
|
-
? modalSizeToName.get(ModalSizeName.lg)
|
|
55
|
-
: ModalSize.mobile;
|
|
56
|
-
default:
|
|
57
|
-
return ModalSize.mobile;
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
modalOptions(): Record<string, unknown> {
|
|
61
|
-
return {
|
|
62
|
-
classes: ["modal-wrapper"],
|
|
63
|
-
width: this.modalWidth,
|
|
64
|
-
height: "auto",
|
|
65
|
-
clickToClose: false,
|
|
66
|
-
scrollable: true,
|
|
67
|
-
};
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<modal :name="name" v-bind="modalOptions">
|
|
3
|
-
<div class="modal-header">
|
|
4
|
-
<slot name="header">
|
|
5
|
-
<span>
|
|
6
|
-
<slot name="header"></slot>
|
|
7
|
-
</span>
|
|
8
|
-
</slot>
|
|
9
|
-
<i class="modal-close icon close" @click="close"></i>
|
|
10
|
-
</div>
|
|
11
|
-
<div v-if="!!$slots.content" class="modal-content">
|
|
12
|
-
<slot name="content"></slot>
|
|
13
|
-
</div>
|
|
14
|
-
<div v-if="!!$slots.footer" class="modal-footer">
|
|
15
|
-
<slot name="footer"></slot>
|
|
16
|
-
</div>
|
|
17
|
-
</modal>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<script>
|
|
21
|
-
import Modal from "./Modal";
|
|
22
|
-
|
|
23
|
-
export default Modal;
|
|
24
|
-
</script>
|
|
25
|
-
|
|
26
|
-
<style lang="scss">
|
|
27
|
-
@import "Modal";
|
|
28
|
-
</style>
|