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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.2.15",
3
+ "version": "1.2.17",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
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
- <div class="wrapper">
10
- <app-button
11
- label="asad"
12
- color="primary"
13
- @click="
14
- openConfirm(
15
- 'После подтверждения проект ремонта, проект подготовки сотрудников и проект подготовки МТР будут перенесены в текущие проекты',
16
- 'delete',
17
- )
18
- "
19
- />
20
- <app-input v-model="test" type="text" />
21
- <app-date-picker v-model="dateStart" view="standard" :disabled="isDisabled" label="Прогнозируемая дата старта" />
22
- </div>
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
- max-width: 1300px;
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
- <q-page>
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 AppLoader from '@/common/app-loader/index.vue'
10
- import AppSelect from '@/common/app-select/AppSelect.vue'
11
- import AppSheet from '@/common/app-sheet/AppSheet.vue'
12
- import AppSidebar from '@/common/app-sidebar/AppSidebar.vue'
13
- import AppToggle from '@/common/app-toggle/AppToggle.vue'
14
- import AppWrapper from '@/common/app-wrapper/AppWrapper.vue'
15
- import AppConfirmDialog from '@/common/app-dialogs/AppConfirmDialog.vue'
16
- import AppDropdown from '@/common/app-dropdown/AppDropdown.vue'
17
-
18
- import useGanttService from '@/api/services/GanttService'
19
- import useMetricsService from '@/api/services/MetricsService'
20
- import useProjectsService from '@/api/services/ProjectsService'
21
- import useRepairsService from '@/api/services/RepairsService'
22
- import useTasksService from '@/api/services/TasksService'
23
- import useAuthService from '@/api/services/AuthService'
24
- import useFileService from '@/api/services/FileService'
25
- import ApiService from '@/api/settings/ApiService'
26
-
27
- export {
28
- AppButton,
29
- AppCheckbox,
30
- AppDatePicker,
31
- AppInput,
32
- AppInputSearch,
33
- AppLayout,
34
- AppLayoutHeader,
35
- AppLoader,
36
- AppSelect,
37
- AppSheet,
38
- AppSidebar,
39
- AppToggle,
40
- AppWrapper,
41
- AppConfirmDialog,
42
- AppDropdown,
43
- }
44
-
45
- export {
46
- ApiService,
47
- useAuthService,
48
- useGanttService,
49
- useMetricsService,
50
- useProjectsService,
51
- useRepairsService,
52
- useTasksService,
53
- useFileService,
54
- }
55
-
56
- export type { NotificationType } from './utils/notification'
57
- export { notificationSettings } from './utils/notification'
58
-
59
- export * from './api/types/Api_Tasks'
60
- export * from './api/types/Api_Repairs'
61
- export * from './api/types/Api_Projects'
62
- // export * from '@/api/types/Api_Metrics'
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'