@intellias/menu 1.0.0 → 1.0.4

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