shared-ritm 1.2.23 → 1.2.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.2.23",
3
+ "version": "1.2.25",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -5,13 +5,10 @@
5
5
  </div>
6
6
 
7
7
  <slot name="drawer" />
8
-
9
8
  <slot name="header" :style="marginLeft" />
10
9
 
11
10
  <q-page-container :class="{ container: container }" @wheel="mouseMove">
12
- <div :style="marginLeft">
13
- <slot name="content" />
14
- </div>
11
+ <slot name="content" :style="marginLeft" />
15
12
  </q-page-container>
16
13
 
17
14
  <slot name="footer" />
@@ -1,108 +1,108 @@
1
- <template>
2
- <q-header :class="[$style.header, { [$style[`header-full`]]: fullWidth }]">
3
- <q-toolbar :class="$style.toolbar">
4
- <h1>{{ pageTitle }}</h1>
5
- <div :class="$style['action-buttons']">
6
- <app-button icon="person" text-color="black" :label="shortName" rounded :class="$style['button-person']" />
7
- </div>
8
- </q-toolbar>
9
- </q-header>
10
- </template>
11
-
12
- <script lang="ts" setup>
13
- import { computed, defineProps, withDefaults } from 'vue'
14
- import AppButton from '@/common/app-button/AppButton.vue'
15
- interface Props {
16
- userData: any
17
- fullWidth?: boolean
18
- pageTitle?: string
19
- }
20
-
21
- const props = withDefaults(defineProps<Props>(), {
22
- pageTitle: '',
23
- })
24
-
25
- const shortName = computed(
26
- () =>
27
- `${props.userData?.last_name} ${props.userData?.first_name?.[0]}. ${props.userData?.patronymic?.[0] || ''} ${
28
- props.userData?.patronymic?.[0] ? '.' : ''
29
- }`,
30
- )
31
- </script>
32
-
33
- <style lang="scss" module>
34
- .header {
35
- height: 100px;
36
- background: transparent;
37
- margin: 0 auto;
38
- max-width: 1300px;
39
- }
40
- .header-full {
41
- max-width: 100%;
42
- padding-right: 20px;
43
- padding-left: 20px;
44
- }
45
- .toolbar {
46
- padding: 0;
47
- min-height: 100%;
48
- h1 {
49
- font-weight: 600;
50
- font-size: 28px;
51
- line-height: 100%;
52
- font-family: Montserrat, sans-serif;
53
- }
54
- }
55
-
56
- .header-search {
57
- width: 412px;
58
- font-size: 16px;
59
- }
60
-
61
- .action-buttons {
62
- flex: 1;
63
- position: relative;
64
- display: flex;
65
- align-items: center;
66
- column-gap: 16px;
67
- justify-content: end;
68
- }
69
-
70
- .button {
71
- padding: 12px;
72
- background: white;
73
- transition: all 0.3s ease, color 0.3s ease;
74
- }
75
-
76
- .button-person {
77
- padding: 10px 14px;
78
- background: white;
79
- }
80
-
81
- @media (max-width: 1440px) {
82
- .header {
83
- height: 100px;
84
- background: transparent;
85
- margin: 0 auto;
86
- max-width: 874px;
87
- }
88
- .header-search {
89
- width: 343px;
90
- font-size: 16px;
91
- }
92
- .action-buttons {
93
- position: relative;
94
- display: flex;
95
- align-items: center;
96
- column-gap: 8px;
97
- }
98
- .button {
99
- padding: 10px;
100
- background: white;
101
- transition: all 0.3s ease, color 0.3s ease;
102
- }
103
- .button-person {
104
- padding: 8px 10px;
105
- background: white;
106
- }
107
- }
108
- </style>
1
+ <template>
2
+ <q-header :class="[$style.header, { [$style[`header-full`]]: fullWidth }]">
3
+ <q-toolbar :class="$style.toolbar">
4
+ <h1>{{ pageTitle }}</h1>
5
+ <div :class="$style['action-buttons']">
6
+ <app-button icon="person" text-color="black" :label="shortName" rounded :class="$style['button-person']" />
7
+ </div>
8
+ </q-toolbar>
9
+ </q-header>
10
+ </template>
11
+
12
+ <script lang="ts" setup>
13
+ import { computed, defineProps, withDefaults } from 'vue'
14
+ import AppButton from '@/common/app-button/AppButton.vue'
15
+ interface Props {
16
+ userData: any
17
+ fullWidth?: boolean
18
+ pageTitle?: string
19
+ }
20
+
21
+ const props = withDefaults(defineProps<Props>(), {
22
+ pageTitle: '',
23
+ })
24
+
25
+ const shortName = computed(
26
+ () =>
27
+ `${props.userData?.last_name} ${props.userData?.first_name?.[0]}. ${props.userData?.patronymic?.[0] || ''} ${
28
+ props.userData?.patronymic?.[0] ? '.' : ''
29
+ }`,
30
+ )
31
+ </script>
32
+
33
+ <style lang="scss" module>
34
+ .header {
35
+ height: 100px;
36
+ background: transparent;
37
+ margin: 0 auto;
38
+ max-width: 1300px;
39
+ }
40
+ .header-full {
41
+ max-width: 100%;
42
+ padding-right: 30px;
43
+ padding-left: 30px;
44
+ }
45
+ .toolbar {
46
+ padding: 0;
47
+ min-height: 100%;
48
+ h1 {
49
+ font-weight: 600;
50
+ font-size: 28px;
51
+ line-height: 100%;
52
+ font-family: Montserrat, sans-serif;
53
+ }
54
+ }
55
+
56
+ .header-search {
57
+ width: 412px;
58
+ font-size: 16px;
59
+ }
60
+
61
+ .action-buttons {
62
+ flex: 1;
63
+ position: relative;
64
+ display: flex;
65
+ align-items: center;
66
+ column-gap: 16px;
67
+ justify-content: end;
68
+ }
69
+
70
+ .button {
71
+ padding: 12px;
72
+ background: white;
73
+ transition: all 0.3s ease, color 0.3s ease;
74
+ }
75
+
76
+ .button-person {
77
+ padding: 10px 14px;
78
+ background: white;
79
+ }
80
+
81
+ @media (max-width: 1440px) {
82
+ .header {
83
+ height: 100px;
84
+ background: transparent;
85
+ margin: 0 auto;
86
+ max-width: 874px;
87
+ }
88
+ .header-search {
89
+ width: 343px;
90
+ font-size: 16px;
91
+ }
92
+ .action-buttons {
93
+ position: relative;
94
+ display: flex;
95
+ align-items: center;
96
+ column-gap: 8px;
97
+ }
98
+ .button {
99
+ padding: 10px;
100
+ background: white;
101
+ transition: all 0.3s ease, color 0.3s ease;
102
+ }
103
+ .button-person {
104
+ padding: 8px 10px;
105
+ background: white;
106
+ }
107
+ }
108
+ </style>
@@ -10,7 +10,7 @@
10
10
  .page-container {
11
11
  display: flex;
12
12
  flex-direction: column;
13
- padding: 0px 20px;
13
+ padding: 0px 30px;
14
14
  height: 100%;
15
15
  }
16
16
  </style>
package/src/main.ts CHANGED
@@ -16,3 +16,13 @@ app.use(Quasar, quasarUserOptions)
16
16
 
17
17
  app.use(router)
18
18
  app.mount('#app')
19
+
20
+ const observerErrRe = /^ResizeObserver loop completed/
21
+
22
+ const originalConsoleError = console.error
23
+ console.error = (...args) => {
24
+ if (typeof args[0] === 'string' && observerErrRe.test(args[0])) {
25
+ return
26
+ }
27
+ originalConsoleError(...args)
28
+ }