shared-ritm 1.2.15 → 1.2.17
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/dist/shared-ritm.es.js +1542 -1522
- package/dist/shared-ritm.umd.js +6 -6
- package/dist/types/index.d.ts +2 -1
- package/package.json +1 -1
- package/src/App.vue +25 -15
- package/src/common/app-layout/AppLayout.vue +1 -5
- package/src/common/app-layout/components/AppLayoutPage.vue +32 -0
- package/src/index.ts +64 -62
package/dist/types/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import AppInput from '@/common/app-input/AppInput.vue';
|
|
|
6
6
|
import AppInputSearch from '@/common/app-input-search/AppInputSearch.vue';
|
|
7
7
|
import AppLayout from '@/common/app-layout/AppLayout.vue';
|
|
8
8
|
import AppLayoutHeader from '@/common/app-layout/components/AppLayoutHeader.vue';
|
|
9
|
+
import AppLayoutPage from '@/common/app-layout/components/AppLayoutPage.vue';
|
|
9
10
|
import AppLoader from '@/common/app-loader/index.vue';
|
|
10
11
|
import AppSelect from '@/common/app-select/AppSelect.vue';
|
|
11
12
|
import AppSheet from '@/common/app-sheet/AppSheet.vue';
|
|
@@ -22,7 +23,7 @@ import useTasksService from '@/api/services/TasksService';
|
|
|
22
23
|
import useAuthService from '@/api/services/AuthService';
|
|
23
24
|
import useFileService from '@/api/services/FileService';
|
|
24
25
|
import ApiService from '@/api/settings/ApiService';
|
|
25
|
-
export { AppButton, AppCheckbox, AppDatePicker, AppInput, AppInputSearch, AppLayout, AppLayoutHeader, AppLoader, AppSelect, AppSheet, AppSidebar, AppToggle, AppWrapper, AppConfirmDialog, AppDropdown, };
|
|
26
|
+
export { AppButton, AppCheckbox, AppDatePicker, AppInput, AppInputSearch, AppLayout, AppLayoutHeader, AppLayoutPage, AppLoader, AppSelect, AppSheet, AppSidebar, AppToggle, AppWrapper, AppConfirmDialog, AppDropdown, };
|
|
26
27
|
export { ApiService, useAuthService, useGanttService, useMetricsService, useProjectsService, useRepairsService, useTasksService, useFileService, };
|
|
27
28
|
export type { NotificationType } from './utils/notification';
|
|
28
29
|
export { notificationSettings } from './utils/notification';
|
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -6,20 +6,29 @@
|
|
|
6
6
|
<template #drawer>
|
|
7
7
|
<app-sidebar :is-drawer="true" :menu-items="menuItems" :is-route-active="isRouteActive" />
|
|
8
8
|
</template>
|
|
9
|
-
<
|
|
10
|
-
<app-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
9
|
+
<template #content>
|
|
10
|
+
<app-layout-page>
|
|
11
|
+
<div class="wrapper">
|
|
12
|
+
<app-button
|
|
13
|
+
label="asad"
|
|
14
|
+
color="primary"
|
|
15
|
+
@click="
|
|
16
|
+
openConfirm(
|
|
17
|
+
'После подтверждения проект ремонта, проект подготовки сотрудников и проект подготовки МТР будут перенесены в текущие проекты',
|
|
18
|
+
'delete',
|
|
19
|
+
)
|
|
20
|
+
"
|
|
21
|
+
/>
|
|
22
|
+
<app-input v-model="test" type="text" />
|
|
23
|
+
<app-date-picker
|
|
24
|
+
v-model="dateStart"
|
|
25
|
+
view="standard"
|
|
26
|
+
:disabled="isDisabled"
|
|
27
|
+
label="Прогнозируемая дата старта"
|
|
28
|
+
/>
|
|
29
|
+
</div>
|
|
30
|
+
</app-layout-page>
|
|
31
|
+
</template>
|
|
23
32
|
</app-layout>
|
|
24
33
|
</template>
|
|
25
34
|
|
|
@@ -33,6 +42,7 @@ import AppLayout from '@/common/app-layout/AppLayout.vue'
|
|
|
33
42
|
import AppLayoutHeader from '@/common/app-layout/components/AppLayoutHeader.vue'
|
|
34
43
|
import { useRoute } from 'vue-router'
|
|
35
44
|
import AppDatePicker from '@/common/app-date-picker/AppDatePicker.vue'
|
|
45
|
+
import AppLayoutPage from '@/common/app-layout/components/AppLayoutPage.vue'
|
|
36
46
|
const test = ref('sdf')
|
|
37
47
|
|
|
38
48
|
const $q = useQuasar()
|
|
@@ -2439,7 +2449,7 @@ const openConfirm = (content: string, type: 'delete' | 'edit') => {
|
|
|
2439
2449
|
</script>
|
|
2440
2450
|
<style lang="scss">
|
|
2441
2451
|
.wrapper {
|
|
2442
|
-
|
|
2452
|
+
width: 100%;
|
|
2443
2453
|
margin: 0 auto;
|
|
2444
2454
|
}
|
|
2445
2455
|
</style>
|
|
@@ -7,11 +7,7 @@
|
|
|
7
7
|
<slot name="drawer"></slot>
|
|
8
8
|
<slot name="header"></slot>
|
|
9
9
|
<q-page-container :class="{ container: container }" @wheel="mouseMove">
|
|
10
|
-
<
|
|
11
|
-
<slot></slot>
|
|
12
|
-
|
|
13
|
-
<slot name="page-bottom"></slot>
|
|
14
|
-
</q-page>
|
|
10
|
+
<slot name="content"></slot>
|
|
15
11
|
</q-page-container>
|
|
16
12
|
|
|
17
13
|
<slot name="footer"></slot>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<q-page class="page-container" :style="marginLeft">
|
|
3
|
+
<slot />
|
|
4
|
+
</q-page>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script setup lang="ts">
|
|
8
|
+
import { computed, onMounted, ref, onBeforeUnmount } from 'vue'
|
|
9
|
+
|
|
10
|
+
const hasPaddingLeft = ref(false)
|
|
11
|
+
|
|
12
|
+
const marginLeft = computed(() => {
|
|
13
|
+
return hasPaddingLeft.value ? { 'margin-left': '0px' } : { 'margin-left': '72px' }
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
function checkPaddingLeft() {
|
|
17
|
+
const el = document.querySelector('.q-page-container') as HTMLElement | null
|
|
18
|
+
if (el) {
|
|
19
|
+
const observer = new ResizeObserver(() => {
|
|
20
|
+
hasPaddingLeft.value = window.getComputedStyle(el).paddingLeft !== '0px'
|
|
21
|
+
})
|
|
22
|
+
observer.observe(el)
|
|
23
|
+
onBeforeUnmount(() => observer.disconnect())
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
onMounted(() => {
|
|
28
|
+
checkPaddingLeft()
|
|
29
|
+
})
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<style scoped lang="scss"></style>
|
package/src/index.ts
CHANGED
|
@@ -1,62 +1,64 @@
|
|
|
1
|
-
import '@/shared/styles/general.css'
|
|
2
|
-
import AppButton from '@/common/app-button/AppButton.vue'
|
|
3
|
-
import AppCheckbox from '@/common/app-checkbox/AppCheckbox.vue'
|
|
4
|
-
import AppDatePicker from '@/common/app-date-picker/AppDatePicker.vue'
|
|
5
|
-
import AppInput from '@/common/app-input/AppInput.vue'
|
|
6
|
-
import AppInputSearch from '@/common/app-input-search/AppInputSearch.vue'
|
|
7
|
-
import AppLayout from '@/common/app-layout/AppLayout.vue'
|
|
8
|
-
import AppLayoutHeader from '@/common/app-layout/components/AppLayoutHeader.vue'
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
export
|
|
60
|
-
|
|
61
|
-
export * from './api/types/
|
|
62
|
-
|
|
1
|
+
import '@/shared/styles/general.css'
|
|
2
|
+
import AppButton from '@/common/app-button/AppButton.vue'
|
|
3
|
+
import AppCheckbox from '@/common/app-checkbox/AppCheckbox.vue'
|
|
4
|
+
import AppDatePicker from '@/common/app-date-picker/AppDatePicker.vue'
|
|
5
|
+
import AppInput from '@/common/app-input/AppInput.vue'
|
|
6
|
+
import AppInputSearch from '@/common/app-input-search/AppInputSearch.vue'
|
|
7
|
+
import AppLayout from '@/common/app-layout/AppLayout.vue'
|
|
8
|
+
import AppLayoutHeader from '@/common/app-layout/components/AppLayoutHeader.vue'
|
|
9
|
+
import AppLayoutPage from '@/common/app-layout/components/AppLayoutPage.vue'
|
|
10
|
+
import AppLoader from '@/common/app-loader/index.vue'
|
|
11
|
+
import AppSelect from '@/common/app-select/AppSelect.vue'
|
|
12
|
+
import AppSheet from '@/common/app-sheet/AppSheet.vue'
|
|
13
|
+
import AppSidebar from '@/common/app-sidebar/AppSidebar.vue'
|
|
14
|
+
import AppToggle from '@/common/app-toggle/AppToggle.vue'
|
|
15
|
+
import AppWrapper from '@/common/app-wrapper/AppWrapper.vue'
|
|
16
|
+
import AppConfirmDialog from '@/common/app-dialogs/AppConfirmDialog.vue'
|
|
17
|
+
import AppDropdown from '@/common/app-dropdown/AppDropdown.vue'
|
|
18
|
+
|
|
19
|
+
import useGanttService from '@/api/services/GanttService'
|
|
20
|
+
import useMetricsService from '@/api/services/MetricsService'
|
|
21
|
+
import useProjectsService from '@/api/services/ProjectsService'
|
|
22
|
+
import useRepairsService from '@/api/services/RepairsService'
|
|
23
|
+
import useTasksService from '@/api/services/TasksService'
|
|
24
|
+
import useAuthService from '@/api/services/AuthService'
|
|
25
|
+
import useFileService from '@/api/services/FileService'
|
|
26
|
+
import ApiService from '@/api/settings/ApiService'
|
|
27
|
+
|
|
28
|
+
export {
|
|
29
|
+
AppButton,
|
|
30
|
+
AppCheckbox,
|
|
31
|
+
AppDatePicker,
|
|
32
|
+
AppInput,
|
|
33
|
+
AppInputSearch,
|
|
34
|
+
AppLayout,
|
|
35
|
+
AppLayoutHeader,
|
|
36
|
+
AppLayoutPage,
|
|
37
|
+
AppLoader,
|
|
38
|
+
AppSelect,
|
|
39
|
+
AppSheet,
|
|
40
|
+
AppSidebar,
|
|
41
|
+
AppToggle,
|
|
42
|
+
AppWrapper,
|
|
43
|
+
AppConfirmDialog,
|
|
44
|
+
AppDropdown,
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export {
|
|
48
|
+
ApiService,
|
|
49
|
+
useAuthService,
|
|
50
|
+
useGanttService,
|
|
51
|
+
useMetricsService,
|
|
52
|
+
useProjectsService,
|
|
53
|
+
useRepairsService,
|
|
54
|
+
useTasksService,
|
|
55
|
+
useFileService,
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type { NotificationType } from './utils/notification'
|
|
59
|
+
export { notificationSettings } from './utils/notification'
|
|
60
|
+
|
|
61
|
+
export * from './api/types/Api_Tasks'
|
|
62
|
+
export * from './api/types/Api_Repairs'
|
|
63
|
+
export * from './api/types/Api_Projects'
|
|
64
|
+
// export * from '@/api/types/Api_Metrics'
|