@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.
Files changed (175) hide show
  1. package/README.md +44 -9
  2. package/dist/css/main.css +155 -2
  3. package/dist/index.html +9 -0
  4. package/dist/js/{1.js → kudosForm.js} +24 -58
  5. package/dist/js/main.js +654 -689
  6. package/dist/js/rejectComponent.js +363 -0
  7. package/dist/js/{6.js → vendors~kudosForm.js} +5 -5
  8. package/dist/js/{0.js → vendors~kudosForm~rejectComponent.js} +27 -27
  9. package/dist/js/vue.js +2 -2
  10. package/package.json +100 -112
  11. package/Menu.ts +0 -625
  12. package/assets/icons/arrow-down.svg +0 -13
  13. package/assets/icons/arrow-left.svg +0 -3
  14. package/assets/icons/arrow-submenu.svg +0 -8
  15. package/assets/icons/close.svg +0 -3
  16. package/assets/icons/delete.svg +0 -13
  17. package/assets/icons/faq-new.svg +0 -4
  18. package/assets/icons/kudos.svg +0 -14
  19. package/assets/icons/loading-spinner.svg +0 -40
  20. package/assets/icons/notification.svg +0 -11
  21. package/assets/icons/notifications/assessment.svg +0 -10
  22. package/assets/icons/notifications/buddy_program.svg +0 -8
  23. package/assets/icons/notifications/compensation_packages.svg +0 -10
  24. package/assets/icons/notifications/dsat.svg +0 -8
  25. package/assets/icons/notifications/feedback.svg +0 -7
  26. package/assets/icons/notifications/kudos.svg +0 -4
  27. package/assets/icons/notifications/overtime_requests.svg +0 -15
  28. package/assets/icons/notifications/pdu_program.svg +0 -4
  29. package/assets/icons/notifications/profile_update.svg +0 -6
  30. package/assets/icons/notifications/recommendation_program.svg +0 -7
  31. package/assets/icons/notifications/reminders.svg +0 -4
  32. package/assets/icons/notifications/sick_leaves.svg +0 -5
  33. package/assets/icons/notifications/smarts.svg +0 -4
  34. package/assets/icons/notifications/survey.svg +0 -8
  35. package/assets/icons/notifications/unpaid_leave.svg +0 -4
  36. package/assets/icons/notifications/vacations.svg +0 -4
  37. package/assets/icons/pause.svg +0 -13
  38. package/assets/icons/play.svg +0 -13
  39. package/assets/icons/smart.svg +0 -14
  40. package/assets/icons/smarts-kudos.svg +0 -11
  41. package/assets/icons/spinner-solid.svg +0 -1
  42. package/assets/icons/vacation.svg +0 -14
  43. package/assets/icons/visibility.svg +0 -1
  44. package/assets/intems-logo.svg +0 -3
  45. package/babel.config.js +0 -6
  46. package/buses/eventBus.ts +0 -19
  47. package/buses/events/GiveKudosEvent.ts +0 -7
  48. package/components/buttons/action-button/ActionButton.scss +0 -133
  49. package/components/buttons/action-button/ActionButton.ts +0 -57
  50. package/components/buttons/action-button/ActionButton.vue +0 -50
  51. package/components/buttons/secondary-button/SecondaryButton.scss +0 -48
  52. package/components/buttons/secondary-button/SecondaryButton.ts +0 -28
  53. package/components/buttons/secondary-button/SecondaryButton.vue +0 -27
  54. package/components/confirm/Confirm.scss +0 -44
  55. package/components/confirm/Confirm.ts +0 -82
  56. package/components/confirm/Confirm.vue +0 -64
  57. package/components/give-kudos-form/GiveKudosForm.scss +0 -114
  58. package/components/give-kudos-form/GiveKudosForm.ts +0 -159
  59. package/components/give-kudos-form/GiveKudosForm.vue +0 -131
  60. package/components/give-kudos-form/mixins/UserSelectMixin.ts +0 -57
  61. package/components/give-kudos-form/models/KudosShareModel.ts +0 -6
  62. package/components/give-kudos-form/models/UserListModel.ts +0 -5
  63. package/components/give-kudos-form/validators/InEnglishValidatorRegex.ts +0 -17
  64. package/components/give-kudos-form/validators/KudosBalance.ts +0 -10
  65. package/components/modal/Modal.scss +0 -53
  66. package/components/modal/Modal.ts +0 -70
  67. package/components/modal/Modal.vue +0 -28
  68. package/components/notifications-sidebar/NotificationsSidebar.scss +0 -665
  69. package/components/notifications-sidebar/NotificationsSidebar.ts +0 -203
  70. package/components/notifications-sidebar/NotificationsSidebar.vue +0 -171
  71. package/components/notifications-sidebar/models/BroadcastNotificationPayload.ts +0 -8
  72. package/components/notifications-sidebar/models/TotalCounter.ts +0 -50
  73. package/components/notifications-sidebar/notification/Notification.ts +0 -17
  74. package/components/notifications-sidebar/notification/Notification.vue +0 -87
  75. package/components/play-pause/PlayPause.scss +0 -33
  76. package/components/play-pause/PlayPause.ts +0 -156
  77. package/components/play-pause/PlayPause.vue +0 -36
  78. package/components/play-pause/PlayPauseStatus.ts +0 -4
  79. package/components/play-pause/helpers/LatestTrackedTimeDurationHelper.ts +0 -55
  80. package/components/play-pause/helpers/PauseHelper.ts +0 -55
  81. package/components/play-pause/helpers/TrackedTimeHelper.ts +0 -80
  82. package/components/preloader/Preloader.vue +0 -34
  83. package/components/request-loader/RequestLoader.scss +0 -20
  84. package/components/request-loader/RequestLoader.ts +0 -80
  85. package/components/request-loader/RequestLoader.vue +0 -15
  86. package/components/sub-menu/SubMenu.scss +0 -33
  87. package/components/sub-menu/SubMenu.ts +0 -38
  88. package/components/sub-menu/SubMenu.vue +0 -21
  89. package/components/time-ago/TimeAgo.ts +0 -34
  90. package/components/time-ago/TimeAgo.vue +0 -9
  91. package/components/user-picture/UserPicture.scss +0 -62
  92. package/components/user-picture/UserPicture.ts +0 -105
  93. package/components/user-picture/UserPicture.vue +0 -23
  94. package/components/v-select-intems/VSelectIntems.ts +0 -112
  95. package/components/v-select-intems/VSelectIntems.vue +0 -68
  96. package/components/v-select-intems/open-indicator/OpenIndicator.vue +0 -3
  97. package/dist/css/1.css +0 -85
  98. package/dist/css/2.css +0 -34
  99. package/dist/css/3.css +0 -34
  100. package/dist/css/4.css +0 -34
  101. package/dist/css/5.css +0 -34
  102. package/dist/html/app.html +0 -19
  103. package/dist/html/styles.html +0 -1
  104. package/dist/js/2.js +0 -217
  105. package/dist/js/3.js +0 -181
  106. package/dist/js/4.js +0 -181
  107. package/dist/js/5.js +0 -181
  108. package/helpers/GeneralHelper.ts +0 -61
  109. package/helpers/PublisherSubscriber.ts +0 -34
  110. package/helpers/QueryFilter.ts +0 -204
  111. package/helpers/TimeHelper.ts +0 -54
  112. package/helpers/Validations.ts +0 -7
  113. package/helpers/model/ModelHelper.ts +0 -155
  114. package/helpers/model/decorators/AsCollection.ts +0 -26
  115. package/helpers/model/decorators/AsModel.ts +0 -25
  116. package/helpers/model/decorators/DateTime.ts +0 -26
  117. package/helpers/model/decorators/TimeDuration.ts +0 -33
  118. package/helpers/moment/Duration.ts +0 -64
  119. package/helpers/moment/Moment.ts +0 -17
  120. package/helpers/moment/index.d.ts +0 -20
  121. package/helpers/response/AxiosProxy.ts +0 -72
  122. package/helpers/response/ErrorsToToastHelper.ts +0 -42
  123. package/helpers/response/ResponseCode.ts +0 -16
  124. package/helpers/response/ResponseHelper.ts +0 -42
  125. package/helpers/response/ResponseInterface.ts +0 -34
  126. package/helpers/response/ResponseState.ts +0 -6
  127. package/jsconfig.json +0 -19
  128. package/mixins/IntemsMath.ts +0 -29
  129. package/mixins/notifications/ActionProcessing.ts +0 -134
  130. package/mixins/notifications/confirms/AssetRejectionConfirm.vue +0 -59
  131. package/mixins/notifications/confirms/SickLeaveRejectionConfirm.vue +0 -31
  132. package/mixins/notifications/confirms/UnpaidLeaveRejectionConfirm.vue +0 -31
  133. package/mixins/notifications/confirms/VacationRejectionConfirm.vue +0 -31
  134. package/models/AssetModel.ts +0 -80
  135. package/models/AssetRequestModel.ts +0 -25
  136. package/models/ConfigModel.ts +0 -20
  137. package/models/EmployeeStartEndDateModel.ts +0 -16
  138. package/models/EmploymentTypeModel.ts +0 -95
  139. package/models/LogoutModel.ts +0 -3
  140. package/models/Model.ts +0 -12
  141. package/models/ModuleOptions.ts +0 -24
  142. package/models/PublicInfoModel.ts +0 -38
  143. package/models/PublicLocationModel.ts +0 -36
  144. package/models/StatusModel.ts +0 -8
  145. package/models/TrackedTimeModel.ts +0 -32
  146. package/models/location/PublicLocationModel.ts +0 -36
  147. package/models/timezones/LocalTimezoneHistoryModel.ts +0 -8
  148. package/models/timezones/TimezoneModel.ts +0 -9
  149. package/models/user/ExtendedInfoModel.ts +0 -37
  150. package/models/user/NotificationActionModel.ts +0 -53
  151. package/models/user/NotificationModel.ts +0 -84
  152. package/models/user/PublicInfoModel.ts +0 -38
  153. package/models/user/WelcomeProgram.ts +0 -4
  154. package/repositories/BaseRepository.ts +0 -42
  155. package/repositories/BaseUrl.ts +0 -107
  156. package/repositories/Repository.ts +0 -291
  157. package/repositories/ResourceRepository.ts +0 -99
  158. package/repositories/TrackedTimeRepository.ts +0 -43
  159. package/repositories/UserRepository.ts +0 -75
  160. package/repositories/subscribers/CreateSubscribers.ts +0 -28
  161. package/repositories/subscribers/DefaultSubscribers.ts +0 -82
  162. package/repositories/subscribers/DeleteSubscribers.ts +0 -28
  163. package/repositories/subscribers/DownloadSubscribers.ts +0 -28
  164. package/repositories/subscribers/Subscribers.ts +0 -13
  165. package/repositories/subscribers/UpdateSubscribers.ts +0 -32
  166. package/scss/components/_global.scss +0 -66
  167. package/scss/components/_mixins.scss +0 -31
  168. package/scss/components/_tooltip.scss +0 -45
  169. package/scss/components/_utils.scss +0 -26
  170. package/scss/components/_variables.scss +0 -103
  171. package/scss/main.scss +0 -7
  172. package/shims-vue.d.ts +0 -9
  173. package/tsconfig.json +0 -31
  174. package/webpack.config.js +0 -126
  175. 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,6 +0,0 @@
1
- export default class KudosShareModel {
2
- employee_id = undefined as string;
3
- points_amount = undefined as number;
4
- share_reason = undefined as number;
5
- comment = undefined as string;
6
- }
@@ -1,5 +0,0 @@
1
- import UserPublicInfoModel from "../../../models/user/PublicInfoModel";
2
-
3
- export default class UserListModel extends UserPublicInfoModel {
4
- disabled_option = undefined as boolean;
5
- }
@@ -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>