shared-ritm 1.0.52 → 1.0.54

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 (39) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +1135 -1104
  3. package/dist/shared-ritm.umd.js +7 -7
  4. package/dist/types/api/services/ProjectsService.d.ts +10 -0
  5. package/dist/types/index.d.ts +2 -1
  6. package/package.json +56 -56
  7. package/src/App.vue +2404 -2404
  8. package/src/api/services/AuthService.ts +37 -37
  9. package/src/api/services/GanttService.ts +17 -17
  10. package/src/api/services/MetricsService.ts +74 -74
  11. package/src/api/services/ProjectsService.ts +56 -15
  12. package/src/api/services/RepairsService.ts +82 -82
  13. package/src/api/services/TasksService.ts +15 -15
  14. package/src/api/settings/ApiService.ts +124 -124
  15. package/src/api/types/Api_Repairs.ts +57 -57
  16. package/src/api/types/Api_Tasks.ts +99 -99
  17. package/src/common/app-icon/AppIcon.vue +104 -104
  18. package/src/common/app-input/AppInput.vue +128 -128
  19. package/src/common/app-input-search/AppInputSearch.vue +170 -168
  20. package/src/common/app-layout/AppLayout.vue +62 -61
  21. package/src/common/app-layout/components/AppLayoutHeader.vue +119 -119
  22. package/src/common/app-loader/index.vue +43 -41
  23. package/src/common/app-page-layout/AppPageLayout.vue +122 -122
  24. package/src/common/app-select/AppSelect.vue +154 -154
  25. package/src/common/app-sidebar/AppSidebar.vue +163 -163
  26. package/src/common/app-sidebar/components/SidebarMenu.vue +27 -27
  27. package/src/common/app-sidebar/components/SidebarMenuItem.vue +134 -134
  28. package/src/common/app-toggle/index.vue +23 -23
  29. package/src/common/app-wrapper/AppWrapper.vue +25 -25
  30. package/src/global.d.ts +1 -1
  31. package/src/icons/sidebar/projects-icon.vue +31 -31
  32. package/src/icons/sidebar/tasks_tasks-icon.vue +39 -39
  33. package/src/icons/sidebar/tasks_today-icon.vue +27 -27
  34. package/src/index.ts +35 -34
  35. package/src/main.ts +15 -15
  36. package/src/quasar-user-options.ts +17 -17
  37. package/src/shared/styles/general.css +77 -77
  38. package/src/shims-vue.d.ts +5 -5
  39. package/README.md +0 -93
@@ -1,168 +1,170 @@
1
- <template>
2
- <q-input
3
- v-model="value"
4
- standout
5
- outlined
6
- clearable
7
- dense
8
- bg-color="white"
9
- :class="[$style['app-input'], itemClasses]"
10
- :type="type"
11
- :readonly="readonly || field"
12
- :placeholder="label"
13
- >
14
- <template #prepend>
15
- <q-icon>
16
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
17
- <path
18
- d="M11.5 21C16.7467 21 21 16.7467 21 11.5C21 6.25329 16.7467 2 11.5 2C6.25329 2 2 6.25329 2 11.5C2 16.7467 6.25329 21 11.5 21Z"
19
- stroke="#404650"
20
- stroke-width="1.5"
21
- stroke-linecap="round"
22
- stroke-linejoin="round"
23
- />
24
- <path d="M22 22L20 20" stroke="#3F8CFF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
25
- </svg>
26
- </q-icon>
27
- </template>
28
- </q-input>
29
- </template>
30
-
31
- <script lang="ts" setup>
32
- import { defineProps, defineEmits, computed, withDefaults } from 'vue'
33
-
34
- import { ValidationRule, VueClassProp, VueStyleProp } from 'quasar/dist/types/api'
35
-
36
- interface AppQInputProps {
37
- name?: string | undefined
38
- mask?: string | undefined
39
- fillMask?: boolean | string | undefined
40
- reverseFillMask?: boolean | undefined
41
- unmaskedValue?: boolean | undefined
42
- modelValue: string | number | null | undefined
43
- error?: boolean | undefined
44
- errorMessage?: string | undefined
45
- noErrorIcon?: boolean | undefined
46
- rules?: ValidationRule[] | undefined
47
- reactiveRules?: boolean | undefined
48
- lazyRules?: boolean | 'ondemand' | undefined
49
- label?: string | undefined
50
- stackLabel?: boolean | undefined
51
- hint?: string | undefined
52
- hideHint?: boolean | undefined
53
- prefix?: string | undefined
54
- suffix?: string | undefined
55
- labelColor?: string | undefined
56
- color?: string | undefined
57
- bgColor?: string | undefined
58
- dark?: boolean | undefined
59
- loading?: boolean | undefined
60
- clearable?: boolean | undefined
61
- clearIcon?: string | undefined
62
- filled?: boolean | undefined
63
- outlined?: boolean | undefined
64
- borderless?: boolean | undefined
65
- bordered?: boolean | undefined
66
- standout?: boolean | string | undefined
67
- labelSlot?: boolean | undefined
68
- bottomSlots?: boolean | undefined
69
- hideBottomSpace?: boolean | undefined
70
- counter?: boolean | undefined
71
- rounded?: boolean | undefined
72
- square?: boolean | undefined
73
- dense?: boolean | undefined
74
- itemAligned?: boolean | undefined
75
- disable?: boolean | undefined
76
- readonly?: boolean | undefined
77
- autofocus?: boolean | undefined
78
- for?: string | undefined
79
- shadowText?: string | undefined
80
- type?:
81
- | 'text'
82
- | 'password'
83
- | 'textarea'
84
- | 'email'
85
- | 'search'
86
- | 'tel'
87
- | 'file'
88
- | 'number'
89
- | 'url'
90
- | 'time'
91
- | 'date'
92
- | undefined
93
- debounce?: string | number | undefined
94
- maxlength?: string | number | undefined
95
- autogrow?: boolean | undefined
96
- inputClass?: VueClassProp | undefined
97
- inputStyle?: VueStyleProp | undefined
98
- onClear?: (value: any) => void
99
- 'onUpdate:modelValue'?: (value: string | number | null) => void
100
- onFocus?: (evt: Event) => void
101
- onBlur?: (evt: Event) => void
102
- onClick?: (evt: Event) => void
103
- }
104
-
105
- interface AppInputProps extends AppQInputProps {
106
- field?: boolean
107
- required?: boolean
108
- datePicker?: boolean
109
- timePicker?: boolean
110
- dateLocale?: any
111
- withIcon?: boolean
112
- iconName?: string
113
- iconColor?: string
114
- withButton?: boolean
115
- buttonIcon?: string
116
- buttonTooltip?: string
117
- clearTooltip?: string
118
- withArrow?: boolean
119
- }
120
-
121
- const props = withDefaults(defineProps<AppInputProps>(), {
122
- dense: true,
123
- outlined: true,
124
- error: undefined,
125
- modelValue: '',
126
- })
127
-
128
- const emit = defineEmits(['update:modelValue', 'button-click', 'clear', 'focus', 'blur', 'click'])
129
-
130
- const value = computed({
131
- get: () =>
132
- props.modelValue !== null && props.modelValue !== undefined && props.type === 'number'
133
- ? +props.modelValue
134
- : props.modelValue,
135
- set: (newValue: any) => emit('update:modelValue', props.type === 'number' ? +newValue : newValue),
136
- })
137
-
138
- const itemClasses = computed(() => ({
139
- '--dense': props.dense,
140
- '--bordered': props.bordered,
141
- }))
142
- </script>
143
-
144
- <style lang="scss" module>
145
- .app-input {
146
- &:global(.q-field--outlined .q-field__control) {
147
- border-radius: 14px;
148
- height: 48px;
149
- align-items: center;
150
- padding: 0 16px;
151
- color: #87caff;
152
- }
153
- :global(.q-field__control-container) {
154
- margin-left: 8px;
155
- }
156
- }
157
- @media (max-width: 1440px) {
158
- .app-input {
159
- &:global(.q-field--outlined .q-field__control) {
160
- height: 40px;
161
- padding: 0 12px;
162
- }
163
- :global(.q-field__control-container) {
164
- margin-left: 6px;
165
- }
166
- }
167
- }
168
- </style>
1
+ <template>
2
+ <q-input
3
+ v-model="value"
4
+ standout
5
+ outlined
6
+ clearable
7
+ dense
8
+ bg-color="white"
9
+ :class="[$style['app-input'], itemClasses]"
10
+ :type="type"
11
+ :readonly="readonly || field"
12
+ :placeholder="label"
13
+ >
14
+ <template #prepend>
15
+ <q-icon>
16
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
17
+ <path
18
+ d="M11.5 21C16.7467 21 21 16.7467 21 11.5C21 6.25329 16.7467 2 11.5 2C6.25329 2 2 6.25329 2 11.5C2 16.7467 6.25329 21 11.5 21Z"
19
+ stroke="#404650"
20
+ stroke-width="1.5"
21
+ stroke-linecap="round"
22
+ stroke-linejoin="round"
23
+ />
24
+ <path d="M22 22L20 20" stroke="#3F8CFF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
25
+ </svg>
26
+ </q-icon>
27
+ </template>
28
+ </q-input>
29
+ </template>
30
+
31
+ <script lang="ts" setup>
32
+ import { defineProps, defineEmits, computed, withDefaults } from 'vue'
33
+
34
+ import { ValidationRule, VueClassProp, VueStyleProp } from 'quasar/dist/types/api'
35
+
36
+ interface AppQInputProps {
37
+ height?: string
38
+ name?: string | undefined
39
+ mask?: string | undefined
40
+ fillMask?: boolean | string | undefined
41
+ reverseFillMask?: boolean | undefined
42
+ unmaskedValue?: boolean | undefined
43
+ modelValue: string | number | null | undefined
44
+ error?: boolean | undefined
45
+ errorMessage?: string | undefined
46
+ noErrorIcon?: boolean | undefined
47
+ rules?: ValidationRule[] | undefined
48
+ reactiveRules?: boolean | undefined
49
+ lazyRules?: boolean | 'ondemand' | undefined
50
+ label?: string | undefined
51
+ stackLabel?: boolean | undefined
52
+ hint?: string | undefined
53
+ hideHint?: boolean | undefined
54
+ prefix?: string | undefined
55
+ suffix?: string | undefined
56
+ labelColor?: string | undefined
57
+ color?: string | undefined
58
+ bgColor?: string | undefined
59
+ dark?: boolean | undefined
60
+ loading?: boolean | undefined
61
+ clearable?: boolean | undefined
62
+ clearIcon?: string | undefined
63
+ filled?: boolean | undefined
64
+ outlined?: boolean | undefined
65
+ borderless?: boolean | undefined
66
+ bordered?: boolean | undefined
67
+ standout?: boolean | string | undefined
68
+ labelSlot?: boolean | undefined
69
+ bottomSlots?: boolean | undefined
70
+ hideBottomSpace?: boolean | undefined
71
+ counter?: boolean | undefined
72
+ rounded?: boolean | undefined
73
+ square?: boolean | undefined
74
+ dense?: boolean | undefined
75
+ itemAligned?: boolean | undefined
76
+ disable?: boolean | undefined
77
+ readonly?: boolean | undefined
78
+ autofocus?: boolean | undefined
79
+ for?: string | undefined
80
+ shadowText?: string | undefined
81
+ type?:
82
+ | 'text'
83
+ | 'password'
84
+ | 'textarea'
85
+ | 'email'
86
+ | 'search'
87
+ | 'tel'
88
+ | 'file'
89
+ | 'number'
90
+ | 'url'
91
+ | 'time'
92
+ | 'date'
93
+ | undefined
94
+ debounce?: string | number | undefined
95
+ maxlength?: string | number | undefined
96
+ autogrow?: boolean | undefined
97
+ inputClass?: VueClassProp | undefined
98
+ inputStyle?: VueStyleProp | undefined
99
+ onClear?: (value: any) => void
100
+ 'onUpdate:modelValue'?: (value: string | number | null) => void
101
+ onFocus?: (evt: Event) => void
102
+ onBlur?: (evt: Event) => void
103
+ onClick?: (evt: Event) => void
104
+ }
105
+
106
+ interface AppInputProps extends AppQInputProps {
107
+ field?: boolean
108
+ required?: boolean
109
+ datePicker?: boolean
110
+ timePicker?: boolean
111
+ dateLocale?: any
112
+ withIcon?: boolean
113
+ iconName?: string
114
+ iconColor?: string
115
+ withButton?: boolean
116
+ buttonIcon?: string
117
+ buttonTooltip?: string
118
+ clearTooltip?: string
119
+ withArrow?: boolean
120
+ }
121
+
122
+ const props = withDefaults(defineProps<AppInputProps>(), {
123
+ dense: true,
124
+ height: '48px',
125
+ outlined: true,
126
+ error: undefined,
127
+ modelValue: '',
128
+ })
129
+
130
+ const emit = defineEmits(['update:modelValue', 'button-click', 'clear', 'focus', 'blur', 'click'])
131
+
132
+ const value = computed({
133
+ get: () =>
134
+ props.modelValue !== null && props.modelValue !== undefined && props.type === 'number'
135
+ ? +props.modelValue
136
+ : props.modelValue,
137
+ set: (newValue: any) => emit('update:modelValue', props.type === 'number' ? +newValue : newValue),
138
+ })
139
+
140
+ const itemClasses = computed(() => ({
141
+ '--dense': props.dense,
142
+ '--bordered': props.bordered,
143
+ }))
144
+ </script>
145
+
146
+ <style lang="scss" module>
147
+ .app-input {
148
+ &:global(.q-field--outlined .q-field__control) {
149
+ border-radius: 14px;
150
+ height: v-bind(height);
151
+ align-items: center;
152
+ padding: 0 16px;
153
+ color: #87caff;
154
+ }
155
+ :global(.q-field__control-container) {
156
+ margin-left: 8px;
157
+ }
158
+ }
159
+ @media (max-width: 1440px) {
160
+ .app-input {
161
+ &:global(.q-field--outlined .q-field__control) {
162
+ height: 40px;
163
+ padding: 0 12px;
164
+ }
165
+ :global(.q-field__control-container) {
166
+ margin-left: 6px;
167
+ }
168
+ }
169
+ }
170
+ </style>
@@ -1,61 +1,62 @@
1
- <template>
2
- <q-layout :class="$style.layout" view="lHh LpR fFf">
3
- <div v-if="logged" :class="$style['loader-backdrop']">
4
- <q-spinner size="md" color="white" :class="$style['loader-spinner']" />
5
- </div>
6
- <slot name="drawer"></slot>
7
- <slot name="header"></slot>
8
- <q-page-container :class="{ container: container }" @wheel="mouseMove">
9
- <q-page>
10
- <slot></slot>
11
-
12
- <slot name="page-bottom"></slot>
13
- </q-page>
14
- </q-page-container>
15
-
16
- <slot name="footer"></slot>
17
- </q-layout>
18
- </template>
19
-
20
- <script lang="ts" setup>
21
- import { defineProps } from 'vue'
22
- // import LoaderGeneral from '@g/src/components/General/LoaderGeneral.vue'
23
- interface LayoutProps {
24
- logged: boolean
25
- console?: boolean
26
- container?: boolean
27
- padding?: string
28
- }
29
-
30
- const props = defineProps<LayoutProps>()
31
-
32
- function mouseMove(e: any) {
33
- const content = document.getElementById('content')
34
- const scrollable = e.target
35
- if (content && !scrollable.closest('#content')) {
36
- content.scrollBy({ top: e.deltaY })
37
- }
38
- }
39
- </script>
40
-
41
- <style lang="scss" module>
42
- .layout {
43
- position: relative;
44
- background: linear-gradient(235deg, #87caff 9.16%, #5386d3 45.8%, #0b3f8e 92.27%);
45
- }
46
- .loader {
47
- &-backdrop {
48
- width: 100%;
49
- height: 100%;
50
- background-color: rgba(255, 255, 255, 0.45);
51
- position: absolute;
52
- z-index: 9999;
53
- }
54
- &-spinner {
55
- position: absolute;
56
- top: 50%;
57
- left: 50%;
58
- z-index: 2;
59
- }
60
- }
61
- </style>
1
+ <template>
2
+ <q-layout :class="$style.layout" view="lHh LpR fFf">
3
+ <!-- <div v-if="logged" :class="$style['loader-backdrop']">-->
4
+ <!-- <q-spinner size="md" color="white" :class="$style['loader-spinner']" />-->
5
+ <!-- </div>-->
6
+ <app-loader :loading="logged" size="md" :thickness="3" :backdrop="true" />
7
+ <slot name="drawer"></slot>
8
+ <slot name="header"></slot>
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>
15
+ </q-page-container>
16
+
17
+ <slot name="footer"></slot>
18
+ </q-layout>
19
+ </template>
20
+
21
+ <script lang="ts" setup>
22
+ import { defineProps } from 'vue'
23
+ import AppLoader from '@/common/app-loader/index.vue'
24
+ interface LayoutProps {
25
+ logged: boolean
26
+ console?: boolean
27
+ container?: boolean
28
+ padding?: string
29
+ }
30
+
31
+ const props = defineProps<LayoutProps>()
32
+
33
+ function mouseMove(e: any) {
34
+ const content = document.getElementById('content')
35
+ const scrollable = e.target
36
+ if (content && !scrollable.closest('#content')) {
37
+ content.scrollBy({ top: e.deltaY })
38
+ }
39
+ }
40
+ </script>
41
+
42
+ <style lang="scss" module>
43
+ .layout {
44
+ position: relative;
45
+ background: linear-gradient(235deg, #87caff 9.16%, #5386d3 45.8%, #0b3f8e 92.27%);
46
+ }
47
+ //.loader {
48
+ // &-backdrop {
49
+ // width: 100%;
50
+ // height: 100%;
51
+ // background-color: rgba(255, 255, 255, 0.45);
52
+ // position: absolute;
53
+ // z-index: 9999;
54
+ // }
55
+ // &-spinner {
56
+ // position: absolute;
57
+ // top: 50%;
58
+ // left: 50%;
59
+ // z-index: 2;
60
+ // }
61
+ //}
62
+ </style>