@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
package/README.md CHANGED
@@ -1,52 +1,73 @@
1
1
  # intems-menu
2
2
 
3
3
  ## Project setup
4
+
4
5
  ```
5
6
  npm install
6
7
  ```
7
8
 
8
9
  ### Compiles and minifies for production
10
+
9
11
  ```
10
12
  npm run dev
11
13
  ```
12
14
 
13
15
  ### Lints and fixes files
16
+
14
17
  ```
15
18
  npm run lint
16
19
  ```
17
20
 
18
21
  ### NPM publish guideline:
19
- 1. Login to NPM
22
+
23
+ 1. Login to NPM
24
+
20
25
  #### If you aren't already logged in, you should use corporate npm account(intems) to get access to this package, as it's private on npm. Use user that's added as a collaborator to organization, or organization account.
26
+
21
27
  ```
22
28
  npm login
23
29
 
24
30
  ```
25
- 2. Build
31
+
32
+ 2. Build
33
+
26
34
  ```
27
35
  npm run dev
28
36
  ```
29
- 3. Publish
37
+
38
+ 3. Publish
39
+
30
40
  ```
31
41
  npm publish
32
42
  ```
33
43
 
34
- # Introduction
44
+ # Introduction
45
+
35
46
  Entry point of the project is "wrapper.ts" file. Here our component is registered, all data transfered to it from options parameter. MenuOptions interface is declaring, which options can be passed when importing module. If there's a demand to add anything new, you can extend this interface and add necessary data. It's automatically parsed and sent as props to "./Menu.vue" component.
36
47
 
37
48
  # Using the Package
49
+
38
50
  Since now have our package published, Let's take a look at how we can use this package in other repositories
39
51
 
40
52
  To Install
53
+
41
54
  ```
42
55
  npm install --save @intellias/menu
43
56
  ```
57
+
44
58
  Once you have installed the package, in your entry file of the repository (wrapper.ts) if you are using it in a Vue CLI project. Write the import command
45
59
 
46
60
  ```
47
61
  import MainMenu, { MenuOptions, ProjectNameType } from '@intellias/menu';
62
+ // Importing necessary chunks for dynamic modules from menu( will be fixed if moving to webpack ^5.0.0)
63
+ import '@intellias/menu/dist/js/kudosForm.js';
64
+ import '@intellias/menu/dist/js/vendors~kudosForm.js';
65
+ import '@intellias/menu/dist/js/rejectComponent.js';
66
+ import '@intellias/menu/dist/js/vendors~kudosForm~rejectComponent.js';
67
+ import '@intellias/menu/dist/js/vue.js';
48
68
 
49
69
  ```
70
+
50
71
  To install it globally.
51
72
 
52
73
  ```
@@ -57,6 +78,13 @@ const menuOptions: MenuOptions = {
57
78
 
58
79
  ```
59
80
 
81
+ It's also necessary to install styles(You can import them to App.vue or main.scss file) as follows:
82
+
83
+ ```
84
+ import MainMenu, { MenuOptions, ProjectNameType } from '@intellias/menu/dist/css/main.css' // Menu css import must be here for correct adding to the DOM
85
+
86
+ ```
87
+
60
88
  ## MenuOptions explained
61
89
 
62
90
  ```
@@ -70,21 +98,24 @@ export interface MenuOptions {
70
98
 
71
99
  ```
72
100
 
73
- - projectName -> provide specific value from ProjectName enum (Lite/IntelliHub/ManagersPortal)
74
- - storeAdapter -> provide necessary Vuex store adapters( StoreAdapter)
75
- - subMenus -> provide subMenuList object, optional. DEMANDED ONLY WHEN IMPORTING TO LITE PROJECT (@app/core/helpers/sub-menu/SubMenuList)
76
- - helperFunctions -> provide necessary helpers functions (add getUrlPathByName from @/bootstrap/vue-router)
101
+ - projectName -> provide specific value from ProjectName enum (Lite/IntelliHub/ManagersPortal)
102
+ - storeAdapter -> provide necessary Vuex store adapters( StoreAdapter)
103
+ - subMenus -> provide subMenuList object, optional. DEMANDED ONLY WHEN IMPORTING TO LITE PROJECT (@app/core/helpers/sub-menu/SubMenuList)
104
+ - helperFunctions -> provide necessary helpers functions (add getUrlPathByName from @/bootstrap/vue-router)
77
105
 
78
106
  # Updating the package and versioning
107
+
79
108
  So you have the package published on NPM and now you need to change certain things on the package and re-publish it with new changes. This process involves a list of steps which I am listing down below.
80
109
 
81
110
  Make changes to the codebase
82
111
  Before we can publish the changes we need to make sure the working directory is clean
112
+
83
113
  ```
84
114
  git add -A
85
115
 
86
116
  git commit -m "Fix bug in the package"
87
117
  ```
118
+
88
119
  Increment the version number in NPM
89
120
  NPM follows the semantic version (semver) versions, in which each number denotes if it's a major release, minor change, or a patch fix. (Read details about semver here )
90
121
 
@@ -94,6 +125,7 @@ In this case, let's just bump the patch version by 1
94
125
  npm version patch -m "Minor changes to the Hello World Text"
95
126
 
96
127
  ```
128
+
97
129
  This will update the version number in your package.json file.
98
130
 
99
131
  And since we have the GitHub repository linked to the npm. It will also create a tag for the bumped up version number.
@@ -104,12 +136,14 @@ Run the following command to check the latest tag
104
136
  git tag
105
137
 
106
138
  ```
139
+
107
140
  Next up, push the latest changes to git along with the new tag.
108
141
 
109
142
  ```
110
143
  git push --follow-tags
111
144
 
112
145
  ```
146
+
113
147
  Now you can go ahead and publish the new changes on npm
114
148
 
115
149
  ```
@@ -118,4 +152,5 @@ npm publish
118
152
  ```
119
153
 
120
154
  # Additional information
121
- - [Full guideline of using package is shown here](https://5balloons.info/create-publish-you-first-vue-plugin-on-npm-the-right-way/)
155
+
156
+ - [Full guideline of using package is shown here](https://5balloons.info/create-publish-you-first-vue-plugin-on-npm-the-right-way/)
package/dist/css/main.css CHANGED
@@ -172,6 +172,25 @@
172
172
  align-items: center;
173
173
  padding: 0 30px 0 0;
174
174
  }
175
+ .notifications-sidebar .v-dropdown-menu__container .v-dropdown-menu__header .note-title-row .col.s2 .notification-manage-toggler {
176
+ position: relative;
177
+ display: flex;
178
+ flex-wrap: wrap;
179
+ flex-direction: column;
180
+ justify-content: center;
181
+ width: 20px;
182
+ height: 64px;
183
+ line-height: 64px;
184
+ cursor: pointer;
185
+ }
186
+ .notifications-sidebar .v-dropdown-menu__container .v-dropdown-menu__header .note-title-row .col.s2 .notification-manage-toggler span {
187
+ background-color: #94a3b8;
188
+ width: 4px;
189
+ height: 4px;
190
+ display: inline-block;
191
+ border-radius: 50%;
192
+ margin: 1px auto;
193
+ }
175
194
  .notifications-sidebar .v-dropdown-menu__container .v-dropdown-menu__header .note-title-row .sub-menu {
176
195
  border: 1px #cbd5e1 solid;
177
196
  border-radius: 2px;
@@ -537,9 +556,8 @@
537
556
  .modal-wrapper {
538
557
  padding-bottom: 1rem;
539
558
  border-radius: 6px !important;
540
- background-color: #ffffff !important;
559
+ background-color: #ffffff;
541
560
  box-shadow: 0 15px 30px rgba(37, 55, 70, 0.202715);
542
- color: #1a2732;
543
561
  }
544
562
  .modal-header {
545
563
  display: flex;
@@ -547,6 +565,7 @@
547
565
  padding: 2rem 2rem 1rem 2rem;
548
566
  font-size: 1.25rem;
549
567
  font-weight: bold;
568
+ color: #1a2732 !important;
550
569
  }
551
570
  .modal-header i.icon:before {
552
571
  background-color: #1a2732 !important;
@@ -1562,3 +1581,137 @@ a:hover {
1562
1581
  text-decoration: none;
1563
1582
  color: #008c79;
1564
1583
  }
1584
+ .modal.confirm {
1585
+ box-sizing: border-box;
1586
+ min-width: 280px;
1587
+ min-height: 150px;
1588
+ flex-direction: column;
1589
+ background-color: #ffffff;
1590
+ position: fixed;
1591
+ }
1592
+ .modal.confirm.open {
1593
+ display: flex !important;
1594
+ }
1595
+ .modal.confirm .header {
1596
+ padding-bottom: 10px;
1597
+ }
1598
+ .modal.confirm .header i.modal-close {
1599
+ float: right;
1600
+ height: 24px;
1601
+ line-height: 24px;
1602
+ }
1603
+ .modal.confirm .header h3 {
1604
+ color: #1a2732;
1605
+ }
1606
+ .modal.confirm .header + .modal-footer {
1607
+ padding-top: 30px;
1608
+ }
1609
+ .modal.confirm .modal-content {
1610
+ white-space: normal;
1611
+ color: #1a2732;
1612
+ overflow: initial;
1613
+ font-weight: normal;
1614
+ line-height: normal;
1615
+ margin-right: 0;
1616
+ padding-right: 0;
1617
+ }
1618
+ .give-kudos .user ul {
1619
+ max-height: 200px;
1620
+ }
1621
+ .give-kudos a {
1622
+ font-weight: bold;
1623
+ }
1624
+ .give-kudos .subtitle {
1625
+ padding: 0px 0 30px 0;
1626
+ }
1627
+ .give-kudos .form {
1628
+ display: grid;
1629
+ grid-template-columns: auto 207px;
1630
+ grid-gap: 15px;
1631
+ /* Chrome, Safari, Edge, Opera */
1632
+ /* Firefox */
1633
+ }
1634
+ .give-kudos .form .vs__selected-options {
1635
+ flex-wrap: nowrap;
1636
+ }
1637
+ .give-kudos .form .vs__selected-options span.vs__selected {
1638
+ white-space: nowrap;
1639
+ }
1640
+ .give-kudos .form .kudos-quantity {
1641
+ height: 38px;
1642
+ margin: 0;
1643
+ border: solid 1px #cbd5e1;
1644
+ background-color: #ffffff;
1645
+ padding: 0 15px;
1646
+ width: 175px;
1647
+ }
1648
+ .give-kudos .form .kudos-quantity.theme-reactive {
1649
+ border: solid 1px var(--border);
1650
+ background-color: var(--surface-primary);
1651
+ color: var(--text-primary);
1652
+ }
1653
+ .give-kudos .form .kudos-quantity:focus,
1654
+ .give-kudos .form .kudos-quantity:active,
1655
+ .give-kudos .form .kudos-quantity:focus-visible {
1656
+ border: solid 1px #00a58e !important;
1657
+ box-shadow: none;
1658
+ outline: none !important;
1659
+ }
1660
+ .give-kudos .form input::-webkit-outer-spin-button,
1661
+ .give-kudos .form input::-webkit-inner-spin-button {
1662
+ -webkit-appearance: none;
1663
+ margin: 0;
1664
+ }
1665
+ .give-kudos .form input[type=number] {
1666
+ -moz-appearance: textfield;
1667
+ }
1668
+ .give-kudos .form .user {
1669
+ grid-column: span 2;
1670
+ margin-right: 1px;
1671
+ }
1672
+ .give-kudos .form .block-kudos-quantity {
1673
+ width: 190px;
1674
+ }
1675
+ .give-kudos .form .block-kudos-category {
1676
+ margin-right: 5px;
1677
+ }
1678
+ .give-kudos .form .description {
1679
+ grid-column: span 2;
1680
+ margin-right: 1px;
1681
+ }
1682
+ .give-kudos .form .description textarea {
1683
+ resize: none;
1684
+ min-height: 100px;
1685
+ max-height: 300px;
1686
+ min-width: 100%;
1687
+ max-width: 100%;
1688
+ border-radius: 2px;
1689
+ outline: none;
1690
+ padding: 10px;
1691
+ }
1692
+ .give-kudos .form .description textarea.theme-reactive {
1693
+ border: solid 1px var(--border);
1694
+ background-color: var(--surface-primary);
1695
+ color: var(--text-primary);
1696
+ }
1697
+ .give-kudos .form .description textarea.theme-reactive:focus {
1698
+ border: solid 1px var(--accent-primary);
1699
+ }
1700
+ .give-kudos .form label {
1701
+ display: flex;
1702
+ font-size: 0.94rem;
1703
+ margin-bottom: 10px;
1704
+ color: var(--text-primary);
1705
+ }
1706
+ .give-kudos .form .error {
1707
+ font-size: 0.8rem;
1708
+ }
1709
+ .give-kudos .form .error-field {
1710
+ border: solid 1px var(--error);
1711
+ }
1712
+ .give-kudos button.btn-large[disabled] {
1713
+ background-color: #c2e9e4 !important;
1714
+ }
1715
+ .give-kudos .vs__clear svg {
1716
+ display: none;
1717
+ }
@@ -0,0 +1,9 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Webpack App</title>
6
+ <link href="/css/main.css" rel="stylesheet"></head>
7
+ <body>
8
+ <script type="text/javascript" src="/js/main.js"></script></body>
9
+ </html>