@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.
- package/README.md +40 -11
- package/dist/css/1.css +20 -5
- package/dist/css/main.css +20 -2
- package/dist/index.html +9 -0
- package/dist/js/0.js +27 -27
- package/dist/js/1.js +27 -27
- package/dist/js/2.js +19 -19
- package/dist/js/3.js +16 -16
- package/dist/js/4.js +16 -16
- package/dist/js/5.js +16 -16
- package/dist/js/6.js +5 -5
- package/dist/js/main.js +653 -642
- package/dist/js/vue.js +2 -2
- package/package.json +99 -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/html/app.html +0 -19
- package/dist/html/styles.html +0 -1
- 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,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
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
|
-
};
|