@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,82 +0,0 @@
1
- import { AxiosError } from "axios";
2
- import { ResponseState } from "../../helpers/response/ResponseState";
3
- import { Subscribers, SubscribersEvents } from "./Subscribers";
4
- import { ResponseCode } from "../../helpers/response/ResponseCode";
5
- import { myOptions } from "../../wrapper";
6
-
7
- const laravelDefault403Error1 = "Unauthenticated.";
8
- const laravelDefault403Error2 = "This action is unauthorized.";
9
-
10
- export default class DefaultSubscribers implements Subscribers {
11
- protected errors;
12
- constructor() {
13
- this.errors = new Map([
14
- [ResponseCode.BadRequest, "Bad request"],
15
- [ResponseCode.Unauthorized, "Unauthorized error"],
16
- [ResponseCode.Forbidden, "Unauthorized action"],
17
- [ResponseCode.NotFound, "Resource is not found"],
18
- [ResponseCode.PageExpired, "Page is expired. Please reload the page"],
19
- [ResponseCode.UnprocessableEntity, "Data is not valid"],
20
- [ResponseCode.ServerError, "Server error"],
21
- [ResponseCode.ServiceUnavailable, "Service unavailable"],
22
- ]);
23
- }
24
-
25
- private getErrorMessageByCode(statusCode: number) {
26
- const errorMessage = this.errors.get(statusCode);
27
- return errorMessage !== undefined ? errorMessage : "Unknown error";
28
- }
29
-
30
- private generateError(error: AxiosError) {
31
- if (error.response.status === ResponseCode.UnprocessableEntity) {
32
- const { response } = error;
33
-
34
- // if there are error messages return false, because it will be shown by another handlers
35
- if (typeof response.data.errors !== "undefined") {
36
- return false;
37
- }
38
- return response.data.message;
39
- }
40
-
41
- if (
42
- error.response.data.message &&
43
- error.response.status === ResponseCode.Forbidden &&
44
- error.response.data.message !== "" &&
45
- error.response.data.message !== laravelDefault403Error1 &&
46
- error.response.data.message !== laravelDefault403Error2
47
- ) {
48
- return error.response.data.message;
49
- }
50
-
51
- return this.getErrorMessageByCode(error.response.status);
52
- }
53
-
54
- private async getMessageFromBlob(data: Blob) {
55
- await data.text().then((text) => {
56
- return JSON.parse(text);
57
- });
58
- }
59
-
60
- generate(): SubscribersEvents {
61
- return {
62
- [ResponseState.Pending]: () => {
63
- myOptions.storeAdapter.Request.mutations.incrementSent();
64
- },
65
- [ResponseState.Rejected]: (error: AxiosError) => {
66
- if (error.config.method === "head") {
67
- return false;
68
- }
69
-
70
- const errorMessage = this.generateError(error);
71
- if (!errorMessage) {
72
- return false;
73
- }
74
- myOptions.storeAdapter.Toasts.mutations.addError(errorMessage);
75
- },
76
- [ResponseState.Done]: () => {
77
- myOptions.storeAdapter.Request.mutations.incrementCompleted();
78
- myOptions.storeAdapter.Toasts.mutations.showAll();
79
- },
80
- };
81
- }
82
- }
@@ -1,28 +0,0 @@
1
- import { AxiosResponse } from "axios";
2
- import { Subscribers, SubscribersEvents } from "./Subscribers";
3
- import { ResponseState } from "../../helpers/response/ResponseState";
4
- import { ResponseCode } from "../../helpers/response/ResponseCode";
5
- import { myOptions } from "../../wrapper";
6
-
7
- export default class DeleteSubscribers implements Subscribers {
8
- private readonly resourceName: string;
9
- constructor(resourceName = "Item") {
10
- this.resourceName = resourceName;
11
- }
12
-
13
- generate(): SubscribersEvents {
14
- return {
15
- [ResponseState.Resolved]: (result: AxiosResponse) => {
16
- if (result.status === ResponseCode.NoContent) {
17
- myOptions.storeAdapter.Toasts.mutations.addMessage(
18
- `${this.resourceName} was successfully deleted`
19
- );
20
- } else {
21
- myOptions.storeAdapter.Toasts.mutations.addError(
22
- `Unable to delete ${this.resourceName}`
23
- );
24
- }
25
- },
26
- };
27
- }
28
- }
@@ -1,28 +0,0 @@
1
- import { AxiosResponse } from "axios";
2
- import { Subscribers, SubscribersEvents } from "./Subscribers";
3
- import { ResponseState } from "../../helpers/response/ResponseState";
4
- import { ResponseCode } from "../../helpers/response/ResponseCode";
5
- import { myOptions } from "../../wrapper";
6
-
7
- export default class DownloadSubscribers implements Subscribers {
8
- private readonly resourceName: string;
9
- constructor(resourceName = "File") {
10
- this.resourceName = resourceName;
11
- }
12
-
13
- generate(): SubscribersEvents {
14
- return {
15
- [ResponseState.Resolved]: (result: AxiosResponse) => {
16
- if (result.status === ResponseCode.Ok) {
17
- myOptions.storeAdapter.Toasts.mutations.addMessage(
18
- `${this.resourceName} was successfully downloaded`
19
- );
20
- } else {
21
- myOptions.storeAdapter.Toasts.mutations.addError(
22
- `Unable to download ${this.resourceName}`
23
- );
24
- }
25
- },
26
- };
27
- }
28
- }
@@ -1,13 +0,0 @@
1
- import { AxiosError, AxiosResponse } from "axios";
2
- import { ResponseState } from "../../helpers/response/ResponseState";
3
-
4
- export interface SubscribersEvents {
5
- [ResponseState.Pending]?: () => void;
6
- [ResponseState.Resolved]?: (result: AxiosResponse) => void;
7
- [ResponseState.Rejected]?: (error: AxiosError) => void;
8
- [ResponseState.Done]?: () => void;
9
- }
10
-
11
- export interface Subscribers {
12
- generate(): SubscribersEvents;
13
- }
@@ -1,32 +0,0 @@
1
- import { AxiosResponse } from "axios";
2
- import { Subscribers, SubscribersEvents } from "./Subscribers";
3
- import { ResponseState } from "../../helpers/response/ResponseState";
4
- import { ResponseCode } from "../../helpers/response/ResponseCode";
5
- import { myOptions } from "../../wrapper";
6
-
7
- export default class UpdateSubscribers implements Subscribers {
8
- private readonly resourceName: string;
9
- private readonly successMessage: string;
10
- constructor(resourceName = "Record", successMessage?: string) {
11
- this.resourceName = resourceName;
12
- this.successMessage = successMessage;
13
- }
14
-
15
- generate(): SubscribersEvents {
16
- return {
17
- [ResponseState.Resolved]: (result: AxiosResponse) => {
18
- if (result.status === ResponseCode.Ok) {
19
- myOptions.storeAdapter.Toasts.mutations.addMessage(
20
- this.successMessage
21
- ? this.successMessage
22
- : `${this.resourceName} was successfully updated`
23
- );
24
- } else {
25
- myOptions.storeAdapter.Toasts.mutations.addError(
26
- `Unable to update ${this.resourceName}`
27
- );
28
- }
29
- },
30
- };
31
- }
32
- }
@@ -1,66 +0,0 @@
1
- @use "sass:map";
2
- @import "./utils";
3
- @import "./variables";
4
-
5
- main {
6
- overflow: auto;
7
- position: relative;
8
- flex: 1 1 auto;
9
- }
10
- //helpers.
11
- .bold {
12
- font-weight: bold;
13
- }
14
-
15
- .margin-top-5 {
16
- margin-top: 5px;
17
- }
18
-
19
- .margin-top-10 {
20
- margin-top: 10px;
21
- }
22
-
23
- .padding-top-15 {
24
- padding-top: 15px;
25
- }
26
-
27
- .margin-top-15 {
28
- margin-top: 15px;
29
- }
30
- .margin-top-25 {
31
- margin-top: 25px;
32
- }
33
-
34
- .margin-top-50 {
35
- margin-top: 50px;
36
- }
37
-
38
- .title-row {
39
- margin: 30px 0 40px;
40
-
41
- .page-title {
42
- margin: 0;
43
- align-self: center;
44
- justify-self: flex-start;
45
- }
46
- button {
47
- order: 2;
48
- }
49
- }
50
-
51
- .center {
52
- text-align: center;
53
- justify-content: center;
54
- }
55
- .wide {
56
- width: 100%;
57
- }
58
- .pointer {
59
- cursor: pointer;
60
- }
61
-
62
- a,
63
- a:hover {
64
- text-decoration: none;
65
- color: map.get($intems-colors, "primary-hover");
66
- }
@@ -1,31 +0,0 @@
1
- // PLACEHOLDERS
2
- %clear-default-button-styles {
3
- padding: 0;
4
- border: 0;
5
- background: transparent;
6
- cursor: pointer;
7
- }
8
-
9
- // MIXINS
10
- // Inject icon path to element css styles
11
- @mixin icon($name) {
12
- background-image: url('~@/assets/icons/#{$name}.svg');
13
- mask-image: url('~@/assets/icons/#{$name}.svg');
14
- }
15
-
16
- @mixin margin-x($side, $attr-count: 15, $attr-steps: 5, $unit: 'px') {
17
- @for $i from 0 through $attr-count {
18
- $attr-value: $attr-steps * $i;
19
-
20
- .margin-#{$side}-#{$attr-value} {
21
- margin-#{$side}: #{$attr-value}#{$unit};
22
- }
23
- }
24
- }
25
-
26
- @mixin scale($scale, $speed: 0.4s) {
27
- transform: scale($scale);
28
- -webkit-transition: transform $speed ease-in-out;
29
- -moz-transition:transform $speed ease-in-out;
30
- -ms-transition:transform $speed ease-in-out;
31
- }
@@ -1,45 +0,0 @@
1
- @use "sass:map";
2
- @import "./variables";
3
-
4
- .tooltip {
5
- display: block !important;
6
- z-index: 10000;
7
-
8
- .tooltip-inner {
9
- max-width: 300px;
10
- padding: 6px 8px;
11
- background: map.get($intems-colors, "background-top-menu");
12
- border-radius: 6px;
13
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
14
- color: map.get($intems-colors, "text-on-color");
15
- font-size: $font-size-12;
16
- }
17
-
18
- &[x-placement^="top"] {
19
- margin-bottom: 5px;
20
- }
21
-
22
- &[x-placement^="bottom"] {
23
- margin-top: 5px;
24
- }
25
-
26
- &[x-placement^="right"] {
27
- margin-left: 5px;
28
- }
29
-
30
- &[x-placement^="left"] {
31
- margin-right: 5px;
32
- }
33
-
34
- &[aria-hidden="true"] {
35
- visibility: hidden;
36
- opacity: 0;
37
- transition: opacity 0.15s, visibility 0.15s;
38
- }
39
-
40
- &[aria-hidden="false"] {
41
- visibility: visible;
42
- opacity: 1;
43
- transition: opacity 0.15s;
44
- }
45
- }
@@ -1,26 +0,0 @@
1
- // Carousel
2
- // ==========================================================================
3
-
4
- $carousel-height: 400px !default;
5
- $carousel-item-height: calc(#{$carousel-height} / 2) !default;
6
- $carousel-item-width: $carousel-item-height !default;
7
-
8
- // Media Query Ranges
9
- // ==========================================================================
10
-
11
- $small-screen: 600px !default;
12
- $large-screen: 1200px !default;
13
-
14
- // Grid
15
- // ==========================================================================
16
-
17
- $gutter-width: 1.5rem !default;
18
- $element-top-margin: calc(#{$gutter-width} / 3) !default;
19
- $element-bottom-margin: calc(#{$gutter-width} * 2) / 3 !default;
20
-
21
- // Flow Text
22
- // ==========================================================================
23
-
24
- $range : calc(#{$large-screen} - #{$small-screen}) !default;
25
- $intervals: 20 !default;
26
- $interval-size: calc(#{$range} / #{$intervals}) !default;
@@ -1,103 +0,0 @@
1
- $intems-colors: (
2
- "white": #ffffff,
3
- "black": #000000,
4
- "orangish": #ff8041,
5
- "dark": #253746,
6
- "maintext": #415464,
7
-
8
- // primary colors
9
- "primary": #00a58e,
10
- "primary-hover": #008c79,
11
- "primary-container-tag": #c2e9e4,
12
-
13
- // new colors
14
- // background start
15
- "background": #f8fafc,
16
- "overlay": #253746,
17
- "tooltip": #253746,
18
- // background end
19
- //surface start
20
- "surface-primary": #ffffff,
21
- "surface-tertiary": #e2e8f0,
22
- // surface end
23
- // character start
24
- "select": #f1f5f9,
25
- "border": #cbd5e1,
26
- "icon": #94a3b8,
27
- "disable": #f1f5f9,
28
- "hover": #e2e8f0,
29
- // character end
30
- // text start
31
- "text-primary": #1a2732,
32
- "text-secondary": #475569,
33
- "text-disable": #94a3b8,
34
- "text-on-color": #ffffff,
35
- "text-tertiary": #64748b,
36
- // text end
37
- // functional start
38
- "information": #186ade,
39
- "information-container": #f0f4fa,
40
- "success-container": #ebf7ed,
41
- "warning-container": #faf6cf,
42
- "error-container": #fff1f1,
43
- "information-hover": #0d4ea6,
44
- "success": #16a163,
45
- "warning": #f5c518,
46
- "warning-text": #8f3415,
47
- "error": #da1e28,
48
-
49
- // status colors
50
- "error-container-tag": #ffd7d9,
51
- "error-hover": #a2191f,
52
- "information-container-tag": #d4e4fa,
53
- "warning-container-tag": #fcddc7,
54
-
55
- // accent
56
- "accent": #ff8041,
57
-
58
- // additional colors
59
- "success-container-tag": #c7ebd1,
60
- "green-70": #075e45,
61
-
62
- //top menu
63
- "background-top-menu": #253746,
64
- "text-top-menu": #f8fafc,
65
- "active-top-menu": #45d6ad,
66
- "icon-top-menu": #45d6ad,
67
- "accent-top-menu": #ff8041,
68
- "intellihub-user-top-menu": #3b4d5d,
69
- );
70
-
71
- $font-open-sans: "open sans", sans-serif;
72
- $font-play: play, sans-serif;
73
-
74
- $font-size-10: 0.67rem;
75
- $font-size-12: 0.8rem;
76
- $font-size-14: 0.94rem;
77
- $font-size-16: 1.07rem;
78
- $font-size-18: 1.2rem;
79
- $font-size-20: 1.3rem;
80
- $font-size-24: 1.6rem;
81
- $font-size-28: 1.75rem;
82
- $font-size-36: 2.4rem;
83
- $font-size-40: 2.5rem;
84
- $font-size-50: 3.34rem;
85
- $font-size-80: 5.34rem;
86
-
87
- // Media Query Ranges
88
- $small-screen-up: 601px !default;
89
- $medium-screen-up: 993px !default;
90
- $large-screen-up: 1201px !default;
91
- $small-screen: 600px !default;
92
- $medium-screen: 992px !default;
93
- $large-screen: 1200px !default;
94
-
95
- $medium-and-up: "only screen and (min-width : #{$small-screen-up})" !default;
96
- $large-and-up: "only screen and (min-width : #{$medium-screen-up})" !default;
97
- $extra-large-and-up: "only screen and (min-width : #{$large-screen-up})" !default;
98
- $small-and-down: "only screen and (max-width : #{$small-screen})" !default;
99
- $medium-and-down: "only screen and (max-width : #{$medium-screen})" !default;
100
- $medium-only: "only screen and (min-width : #{$small-screen-up}) and (max-width : #{$medium-screen})" !default;
101
-
102
- $spaceamounts: (5, 7, 10, 15, 20, 25, 30, 35, 40, 45, 50, 75, 80, 100);
103
- $sides: (top, bottom, left, right);
package/scss/main.scss DELETED
@@ -1,7 +0,0 @@
1
- // Fonts
2
- @import url("https://fonts.googleapis.com/css?family=Play:400,700&display=swap");
3
- @import url("https://fonts.googleapis.com/css?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap");
4
- @import url("https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i&display=swap");
5
-
6
- @import "components/tooltip";
7
- @import "components/global";
package/shims-vue.d.ts DELETED
@@ -1,9 +0,0 @@
1
- // This code fix tslint error TS2307 Cannot find module *.vue when importing
2
- declare module "*.vue" {
3
- import Vue from "vue";
4
-
5
- export default Vue;
6
- }
7
-
8
- declare module "*.jpg";
9
- declare module "*.png";
package/tsconfig.json DELETED
@@ -1,31 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "module": "esnext",
4
- "target": "es6",
5
- "lib": [
6
- "dom",
7
- "es6",
8
- "es2015.iterable",
9
- "es2017.object",
10
- "es2021"
11
- ],
12
- "downlevelIteration": true,
13
- "experimentalDecorators": true,
14
- "moduleResolution": "node",
15
- "baseUrl": "./",
16
- "paths": {
17
- "@/*": ["./*"],
18
- },
19
- "allowSyntheticDefaultImports": true
20
- },
21
- "include": [
22
- "**/*.ts"
23
- ],
24
- "exclude": [
25
- "node_modules",
26
- "**/*.spec.ts"
27
- ],
28
- "files": [
29
- "./shims-vue.d.ts"
30
- ]
31
- }
package/webpack.config.js DELETED
@@ -1,126 +0,0 @@
1
- const path = require('path');
2
- const VueLoaderPlugin = require('vue-loader/lib/plugin');
3
- const MiniCssExtractPlugin = require('mini-css-extract-plugin');
4
- const { CleanWebpackPlugin } = require('clean-webpack-plugin');
5
- const HtmlWebpackPlugin = require('html-webpack-plugin');
6
- const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
7
-
8
- const isDev = true;
9
-
10
- module.exports = {
11
- // devtool: 'source-map',
12
- mode: "development",
13
- entry: './wrapper.ts',
14
- output: {
15
- path: path.resolve(__dirname, './dist/'),
16
- filename: isDev ? 'js/[name].js' : 'js/[name].[hash].js',
17
- chunkFilename: isDev ? 'js/[name].js' : 'js/[name].[hash].js',
18
- publicPath: '/'
19
- },
20
- watchOptions: {
21
- ignored: /node_modules/,
22
- },
23
- plugins: [
24
- new CleanWebpackPlugin({
25
- cleanOnceBeforeBuildPatterns: ['js/*', 'css/*', 'images/*', 'html/*']
26
- }),
27
- new VueLoaderPlugin(),
28
- new ForkTsCheckerWebpackPlugin(),
29
- new MiniCssExtractPlugin({
30
- filename: isDev ? 'css/[name].css' : 'css/[name].[hash].css',
31
- chunkFilename: isDev ? 'css/[id].css' : 'css/[id].[hash].css'
32
- }),
33
- new HtmlWebpackPlugin({
34
- inject: false,
35
- hash: false,
36
- template: './app.html',
37
- filename: 'html/app.html'
38
- }),
39
- new HtmlWebpackPlugin({
40
- inject: false,
41
- hash: false,
42
- template: './styles.html',
43
- filename: 'html/styles.html'
44
- })
45
- ],
46
- module: {
47
- rules: [
48
- {
49
- test: /\.tsx?$/,
50
- loader: 'ts-loader',
51
- exclude: /node_modules/,
52
- options: {
53
- appendTsSuffixTo: [/\.vue$/],
54
- transpileOnly: true
55
- }
56
- },
57
- {
58
- test: /\.vue$/,
59
- loader: 'vue-loader'
60
- },
61
- {
62
- test: /\.scss$/,
63
- use: [
64
- 'vue-style-loader',
65
- MiniCssExtractPlugin.loader,
66
- {
67
- loader: 'css-loader',
68
- options: { sourceMap: isDev }
69
- },
70
- {
71
- loader: 'postcss-loader',
72
- options: {
73
- plugins: [require('autoprefixer')()],
74
- sourceMap: isDev
75
- }
76
- },
77
- {
78
- loader: 'sass-loader',
79
- options: {
80
- sourceMap: isDev,
81
- implementation: require('sass'),
82
- data: `
83
- @import "~@/scss/components/variables";
84
- @import "~@/scss/components/mixins";
85
- `
86
- }
87
- }
88
- ]
89
- },
90
- {
91
- test: /\.jsx?$/,
92
- exclude: /node_modules/,
93
- loader: 'babel-loader'
94
- },
95
- {
96
- test: /\.(png|jpg|gif|svg|ttf|eot|woff|woff2)$/,
97
- loader: 'file-loader',
98
- options: {
99
- name: 'images/[name].[ext]?[hash]'
100
- }
101
- },
102
- {
103
- test: /\.css$/,
104
- use: ['vue-style-loader', 'css-loader']
105
- }
106
- ]
107
- },
108
- resolve: {
109
- extensions: ['.tsx', '.ts', '.js', '.vue', '.scss'],
110
- alias: {
111
- vue$: 'vue/dist/vue.esm.js',
112
- '@': path.resolve(__dirname),
113
- }
114
- },
115
- optimization: {
116
- splitChunks: {
117
- cacheGroups: {
118
- vue: {
119
- test: /[\\/]node_modules[\\/](vue)[\\/]/,
120
- name: 'vue',
121
- chunks: 'all'
122
- }
123
- }
124
- }
125
- }
126
- };
package/wrapper.ts DELETED
@@ -1,51 +0,0 @@
1
- import Menu from "./Menu.vue";
2
- import {
3
- MenuOptions,
4
- ProjectName,
5
- Helpers,
6
- Submenus,
7
- } from "./models/ModuleOptions";
8
- import VueEcho from "vue-echo-laravel";
9
- import { io } from "socket.io-client";
10
- import { VTooltip } from "v-tooltip";
11
- import VModal from "vue-js-modal";
12
-
13
- let myOptions: MenuOptions;
14
-
15
- const MenuComponent = {
16
- install(Vue, options: MenuOptions): void {
17
- Vue.directive("tooltip", VTooltip);
18
-
19
- myOptions = options;
20
- const props = {};
21
-
22
- Object.keys(options).forEach((k) => {
23
- props[k] = { default: () => options[k] };
24
- });
25
-
26
- Vue.use(VueEcho, {
27
- broadcaster: "socket.io",
28
- host: options.storeAdapter.Config.state.data.liteSiteUrl,
29
- client: io,
30
- namespace: "App.Events.Broadcast",
31
- });
32
-
33
- Vue.use(VModal);
34
- Vue.component(Menu.name, { ...Menu, props });
35
- },
36
- };
37
-
38
- if (typeof window !== "undefined" && window.Vue) {
39
- window.Vue.use(MenuComponent);
40
- }
41
-
42
- export default MenuComponent;
43
-
44
- export {
45
- myOptions,
46
- MenuOptions,
47
- ProjectName,
48
- Helpers,
49
- Submenus,
50
- Menu as MainMenu,
51
- };