shared-ritm 1.3.98 → 1.3.100

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 (100) hide show
  1. package/README.md +103 -103
  2. package/dist/index.css +1 -1
  3. package/dist/shared-ritm.es.js +30 -21
  4. package/dist/shared-ritm.umd.js +3 -3
  5. package/dist/types/api/services/GanttService.d.ts +6 -0
  6. package/dist/types/api/services/InstrumentsService.d.ts +2 -1
  7. package/dist/types/api/types/Api_Instruments.d.ts +20 -0
  8. package/package.json +1 -1
  9. package/src/api/services/BrigadesService.ts +32 -32
  10. package/src/api/services/CommentsService.ts +24 -24
  11. package/src/api/services/FileService.ts +17 -17
  12. package/src/api/services/GanttService.ts +58 -47
  13. package/src/api/services/InstrumentsService.ts +5 -1
  14. package/src/api/services/ModulesService.ts +27 -27
  15. package/src/api/services/ProjectsService.ts +83 -83
  16. package/src/api/services/ScheduleService.ts +69 -69
  17. package/src/api/services/SearchService.ts +22 -22
  18. package/src/api/services/TasksService.ts +157 -157
  19. package/src/api/settings/ApiService.ts +184 -184
  20. package/src/api/types/Api_Brigades.ts +36 -36
  21. package/src/api/types/Api_Comment.ts +40 -40
  22. package/src/api/types/Api_Files.ts +7 -7
  23. package/src/api/types/Api_Instruments.ts +22 -1
  24. package/src/api/types/Api_Modules.ts +21 -21
  25. package/src/api/types/Api_Projects.ts +62 -62
  26. package/src/api/types/Api_Schedule.ts +64 -64
  27. package/src/api/types/Api_Service.ts +9 -9
  28. package/src/common/app-button/AppButton.vue +173 -173
  29. package/src/common/app-date-picker/AppDatePicker.vue +81 -81
  30. package/src/common/app-datepicker/AppDatepicker.vue +218 -218
  31. package/src/common/app-dropdown/AppDropdown.vue +37 -37
  32. package/src/common/app-file/AppFile.vue +80 -80
  33. package/src/common/app-input/AppInput.vue +150 -150
  34. package/src/common/app-input-search/AppInputSearch.vue +174 -174
  35. package/src/common/app-layout/AppLayout.vue +84 -84
  36. package/src/common/app-layout/components/AppLayoutPage.vue +16 -16
  37. package/src/common/app-loader/index.vue +43 -43
  38. package/src/common/app-page-layout/AppPageLayout.vue +122 -122
  39. package/src/common/app-sheet/AppSheet.vue +120 -120
  40. package/src/common/app-sheet-new/AppSheetNew.vue +244 -244
  41. package/src/common/app-sidebar/components/SidebarMenu.vue +37 -37
  42. package/src/common/app-sidebar/components/SidebarMenuItem.vue +149 -149
  43. package/src/common/app-table/AppTableLayout.vue +137 -137
  44. package/src/common/app-table/components/TablePagination.vue +152 -152
  45. package/src/common/app-table/components/TableSearch.vue +76 -76
  46. package/src/common/app-table/controllers/useBaseTable.ts +45 -45
  47. package/src/global.d.ts +1 -1
  48. package/src/icons/components/arrow-down-icon.vue +25 -25
  49. package/src/icons/components/arrow-frame-icon.vue +19 -19
  50. package/src/icons/components/arrow-square.vue +22 -22
  51. package/src/icons/components/table-filter-icon.vue +30 -30
  52. package/src/icons/dialogs/RemoveIcon.vue +12 -12
  53. package/src/icons/dialogs/SafetyIcon.vue +12 -12
  54. package/src/icons/header/NotificationIcon.vue +18 -18
  55. package/src/icons/header/PersonIcon.vue +11 -11
  56. package/src/icons/header/SettingIcon.vue +14 -14
  57. package/src/icons/header/flashIcon.vue +24 -24
  58. package/src/icons/header/searchStatusIcon.vue +24 -24
  59. package/src/icons/header/smallCapsIcon.vue +34 -34
  60. package/src/icons/sidebar/assign-module-icon.vue +36 -36
  61. package/src/icons/sidebar/instrument-history-icon.vue +32 -32
  62. package/src/icons/sidebar/instrument-order-icon.vue +38 -38
  63. package/src/icons/sidebar/instrument-work-zone-icon.vue +18 -18
  64. package/src/icons/sidebar/instruments-icon.vue +45 -45
  65. package/src/icons/sidebar/logo-icon.vue +15 -15
  66. package/src/icons/sidebar/logout-icon.vue +13 -13
  67. package/src/icons/sidebar/modules-icon.vue +16 -16
  68. package/src/icons/sidebar/notifications-icon.vue +24 -24
  69. package/src/icons/sidebar/order-icon.vue +44 -44
  70. package/src/icons/sidebar/pass-icon.vue +38 -38
  71. package/src/icons/sidebar/positions-icon.vue +42 -42
  72. package/src/icons/sidebar/preorder-icon.vue +19 -19
  73. package/src/icons/sidebar/projects-icon.vue +31 -31
  74. package/src/icons/sidebar/repair-object-icon.vue +18 -18
  75. package/src/icons/sidebar/repairs-icon.vue +20 -20
  76. package/src/icons/sidebar/roles-icon.vue +26 -26
  77. package/src/icons/sidebar/status-history-icon.vue +24 -24
  78. package/src/icons/sidebar/tasks-icon.vue +28 -28
  79. package/src/icons/sidebar/tasks_tasks-icon.vue +39 -39
  80. package/src/icons/sidebar/tasks_today-icon.vue +27 -27
  81. package/src/icons/sidebar/teams-icon.vue +32 -32
  82. package/src/icons/sidebar/user-icon.vue +18 -18
  83. package/src/icons/sidebar/users-icon.vue +46 -46
  84. package/src/icons/sidebar/videosources-icon.vue +19 -19
  85. package/src/icons/sidebar/videowall-icon.vue +13 -13
  86. package/src/icons/sidebar/videozones-icon.vue +21 -21
  87. package/src/icons/sidebar/warehouses-icon.vue +43 -43
  88. package/src/icons/sidebar/workshop-icon.vue +100 -100
  89. package/src/icons/sidebar/workzones-icon.vue +22 -22
  90. package/src/icons/task/attention-icon.vue +13 -13
  91. package/src/icons/task/clock-icon.vue +10 -10
  92. package/src/icons/task/delete-icon.vue +10 -10
  93. package/src/icons/task/fire-icon.vue +16 -16
  94. package/src/main.ts +28 -28
  95. package/src/quasar-user-options.ts +17 -17
  96. package/src/router/index.ts +10 -10
  97. package/src/shims-vue.d.ts +5 -5
  98. package/src/utils/confirm.ts +12 -12
  99. package/src/utils/faceApiHelper.ts +132 -132
  100. package/src/utils/notification.ts +9 -9
@@ -1,80 +1,80 @@
1
- <template>
2
- <div
3
- v-if="!!slots['drag-drop']"
4
- class="drag-wrapper"
5
- @dragover.prevent.stop="isFileHover = true"
6
- @dragleave.prevent.stop="isFileHover = false"
7
- @drop.prevent.stop="onFileDrop"
8
- >
9
- <slot name="drag-drop" :isFileHover="isFileHover" />
10
- </div>
11
- <slot name="default" />
12
- <q-file
13
- ref="RefFile"
14
- v-model="ModelFile"
15
- style="display: none"
16
- :disable="disabled"
17
- :multiple="multiple"
18
- :label="label"
19
- :accept="accept"
20
- />
21
- </template>
22
-
23
- <script setup lang="ts">
24
- import { computed, defineProps, defineEmits, defineExpose, ref, Ref, useSlots } from 'vue'
25
- import { QFile } from 'quasar'
26
-
27
- interface Props {
28
- modelValue: File | File[] | FileList | null
29
- label?: string
30
- accept?: string
31
- multiple?: boolean
32
- disabled?: boolean
33
- }
34
-
35
- const emits = defineEmits(['update:modelValue'])
36
- const props = defineProps<Props>()
37
- const slots = useSlots()
38
-
39
- const RefFile: Ref<any | null> = ref(null)
40
-
41
- const isFileHover = ref(false)
42
-
43
- const ModelFile = computed({
44
- get() {
45
- return props.modelValue
46
- },
47
- set(value: File | File[] | FileList | null) {
48
- emits('update:modelValue', value)
49
- },
50
- })
51
-
52
- function addKeyToFile(file: File) {
53
- Object.defineProperty(file, '__key', {
54
- value: `${file.lastModified}${file.name}${file.size}`,
55
- writable: false,
56
- enumerable: true,
57
- })
58
- return file
59
- }
60
-
61
- const onFileDrop = (e: DragEvent) => {
62
- isFileHover.value = false
63
- if (props?.disabled) return
64
- if (!e?.dataTransfer?.files?.length) return
65
- if (!props.multiple) ModelFile.value = Array.from(e.dataTransfer.files).map(addKeyToFile)?.[0]
66
- if (props.multiple) ModelFile.value = Array.from(e.dataTransfer.files).map(addKeyToFile)
67
- }
68
-
69
- defineExpose({
70
- removeFile: () => RefFile.value?.removeFile(),
71
- pickFiles: () => RefFile.value?.pickFiles(),
72
- })
73
- </script>
74
-
75
- <style scoped lang="scss">
76
- .drag-wrapper {
77
- width: 100%;
78
- height: 100%;
79
- }
80
- </style>
1
+ <template>
2
+ <div
3
+ v-if="!!slots['drag-drop']"
4
+ class="drag-wrapper"
5
+ @dragover.prevent.stop="isFileHover = true"
6
+ @dragleave.prevent.stop="isFileHover = false"
7
+ @drop.prevent.stop="onFileDrop"
8
+ >
9
+ <slot name="drag-drop" :isFileHover="isFileHover" />
10
+ </div>
11
+ <slot name="default" />
12
+ <q-file
13
+ ref="RefFile"
14
+ v-model="ModelFile"
15
+ style="display: none"
16
+ :disable="disabled"
17
+ :multiple="multiple"
18
+ :label="label"
19
+ :accept="accept"
20
+ />
21
+ </template>
22
+
23
+ <script setup lang="ts">
24
+ import { computed, defineProps, defineEmits, defineExpose, ref, Ref, useSlots } from 'vue'
25
+ import { QFile } from 'quasar'
26
+
27
+ interface Props {
28
+ modelValue: File | File[] | FileList | null
29
+ label?: string
30
+ accept?: string
31
+ multiple?: boolean
32
+ disabled?: boolean
33
+ }
34
+
35
+ const emits = defineEmits(['update:modelValue'])
36
+ const props = defineProps<Props>()
37
+ const slots = useSlots()
38
+
39
+ const RefFile: Ref<any | null> = ref(null)
40
+
41
+ const isFileHover = ref(false)
42
+
43
+ const ModelFile = computed({
44
+ get() {
45
+ return props.modelValue
46
+ },
47
+ set(value: File | File[] | FileList | null) {
48
+ emits('update:modelValue', value)
49
+ },
50
+ })
51
+
52
+ function addKeyToFile(file: File) {
53
+ Object.defineProperty(file, '__key', {
54
+ value: `${file.lastModified}${file.name}${file.size}`,
55
+ writable: false,
56
+ enumerable: true,
57
+ })
58
+ return file
59
+ }
60
+
61
+ const onFileDrop = (e: DragEvent) => {
62
+ isFileHover.value = false
63
+ if (props?.disabled) return
64
+ if (!e?.dataTransfer?.files?.length) return
65
+ if (!props.multiple) ModelFile.value = Array.from(e.dataTransfer.files).map(addKeyToFile)?.[0]
66
+ if (props.multiple) ModelFile.value = Array.from(e.dataTransfer.files).map(addKeyToFile)
67
+ }
68
+
69
+ defineExpose({
70
+ removeFile: () => RefFile.value?.removeFile(),
71
+ pickFiles: () => RefFile.value?.pickFiles(),
72
+ })
73
+ </script>
74
+
75
+ <style scoped lang="scss">
76
+ .drag-wrapper {
77
+ width: 100%;
78
+ height: 100%;
79
+ }
80
+ </style>
@@ -1,150 +1,150 @@
1
- <template>
2
- <q-input
3
- v-model="value"
4
- :class="[inputClasses, $style['app-input']]"
5
- standout
6
- outlined
7
- :clearable="clearable"
8
- dense
9
- :rules="rules"
10
- :type="inputType"
11
- autocomplete="h87h58g7h8hd"
12
- :readonly="readonly || field"
13
- :disable="disabled"
14
- :placeholder="placeholder"
15
- >
16
- </q-input>
17
- </template>
18
-
19
- <script lang="ts" setup>
20
- import { defineProps, defineEmits, computed, ref, withDefaults } from 'vue'
21
-
22
- interface AppQInputProps {
23
- name?: string | undefined
24
- mask?: string | undefined
25
- fillMask?: boolean | string | undefined
26
- reverseFillMask?: boolean | undefined
27
- unmaskedValue?: boolean | undefined
28
- modelValue: string | number | null | undefined
29
- error?: boolean | undefined
30
- errorMessage?: string | undefined
31
- noErrorIcon?: boolean | undefined
32
- rules?: any | undefined
33
- reactiveRules?: boolean | undefined
34
- lazyRules?: boolean | 'ondemand' | undefined
35
- label?: string | undefined
36
- stackLabel?: boolean | undefined
37
- hint?: string | undefined
38
- hideHint?: boolean | undefined
39
- prefix?: string | undefined
40
- suffix?: string | undefined
41
- labelColor?: string | undefined
42
- color?: string | undefined
43
- bgColor?: string | undefined
44
- dark?: boolean | undefined
45
- loading?: boolean | undefined
46
- clearable?: boolean | undefined
47
- clearIcon?: string | undefined
48
- filled?: boolean | undefined
49
- outlined?: boolean | undefined
50
- borderless?: boolean | undefined
51
- standout?: boolean | string | undefined
52
- labelSlot?: boolean | undefined
53
- bottomSlots?: boolean | undefined
54
- hideBottomSpace?: boolean | undefined
55
- counter?: boolean | undefined
56
- rounded?: boolean | undefined
57
- square?: boolean | undefined
58
- dense?: boolean | undefined
59
- itemAligned?: boolean | undefined
60
- disable?: boolean | undefined
61
- readonly?: boolean | undefined
62
- autofocus?: boolean | undefined
63
- for?: string | undefined
64
- shadowText?: string | undefined
65
- type?:
66
- | 'text'
67
- | 'password'
68
- | 'textarea'
69
- | 'email'
70
- | 'search'
71
- | 'tel'
72
- | 'file'
73
- | 'number'
74
- | 'url'
75
- | 'time'
76
- | 'date'
77
- | undefined
78
- debounce?: string | number | undefined
79
- disabled?: boolean | undefined
80
- maxlength?: string | number | undefined
81
- autogrow?: boolean | undefined
82
- inputClass?: any | undefined
83
- inputStyle?: any | undefined
84
- onClear?: (value: any) => void
85
- 'onUpdate:modelValue'?: (value: string | number | null) => void
86
- onFocus?: (evt: Event) => void
87
- onBlur?: (evt: Event) => void
88
- onClick?: (evt: Event) => void
89
- placeholder?: string | undefined
90
- }
91
-
92
- interface AppInputProps extends AppQInputProps {
93
- field?: boolean
94
- required?: boolean
95
- datePicker?: boolean
96
- timePicker?: boolean
97
- withIcon?: boolean
98
- withButton?: boolean
99
- withArrow?: boolean
100
- borderColor?: string
101
- borderRadius?: string
102
- borderWidth?: string
103
- width?: string
104
- height?: string
105
- clearable?: boolean
106
- }
107
-
108
- const props = withDefaults(defineProps<AppInputProps>(), {
109
- dense: true,
110
- outlined: true,
111
- error: undefined,
112
- modelValue: '',
113
- borderRadius: '8px',
114
- borderWidth: '1px',
115
- width: 'auto',
116
- height: 'auto',
117
- })
118
-
119
- const emit = defineEmits(['update:modelValue', 'button-click', 'clear', 'focus', 'blur', 'click'])
120
- const passwordVisibility = ref(false)
121
- const inputType = computed(() => {
122
- if (props.type === 'password') return passwordVisibility.value ? 'text' : 'password'
123
- return props.type || 'text'
124
- })
125
-
126
- const value = computed({
127
- get: () =>
128
- props.modelValue !== null && props.modelValue !== undefined && props.type === 'number'
129
- ? +props.modelValue
130
- : props.modelValue,
131
- set: (newValue: any) => emit('update:modelValue', props.type === 'number' ? +newValue : newValue),
132
- })
133
-
134
- const inputClasses = computed(() => {
135
- return {
136
- 'app-input': true,
137
- '--required': props.required,
138
- '--field': props.field,
139
- 'input-number-without-arrow': inputType.value === 'number' && !props.withArrow,
140
- }
141
- })
142
- </script>
143
-
144
- <style module lang="scss">
145
- .app-input {
146
- &:global(.q-field--dense .q-field__control) {
147
- height: v-bind(height);
148
- }
149
- }
150
- </style>
1
+ <template>
2
+ <q-input
3
+ v-model="value"
4
+ :class="[inputClasses, $style['app-input']]"
5
+ standout
6
+ outlined
7
+ :clearable="clearable"
8
+ dense
9
+ :rules="rules"
10
+ :type="inputType"
11
+ autocomplete="h87h58g7h8hd"
12
+ :readonly="readonly || field"
13
+ :disable="disabled"
14
+ :placeholder="placeholder"
15
+ >
16
+ </q-input>
17
+ </template>
18
+
19
+ <script lang="ts" setup>
20
+ import { defineProps, defineEmits, computed, ref, withDefaults } from 'vue'
21
+
22
+ interface AppQInputProps {
23
+ name?: string | undefined
24
+ mask?: string | undefined
25
+ fillMask?: boolean | string | undefined
26
+ reverseFillMask?: boolean | undefined
27
+ unmaskedValue?: boolean | undefined
28
+ modelValue: string | number | null | undefined
29
+ error?: boolean | undefined
30
+ errorMessage?: string | undefined
31
+ noErrorIcon?: boolean | undefined
32
+ rules?: any | undefined
33
+ reactiveRules?: boolean | undefined
34
+ lazyRules?: boolean | 'ondemand' | undefined
35
+ label?: string | undefined
36
+ stackLabel?: boolean | undefined
37
+ hint?: string | undefined
38
+ hideHint?: boolean | undefined
39
+ prefix?: string | undefined
40
+ suffix?: string | undefined
41
+ labelColor?: string | undefined
42
+ color?: string | undefined
43
+ bgColor?: string | undefined
44
+ dark?: boolean | undefined
45
+ loading?: boolean | undefined
46
+ clearable?: boolean | undefined
47
+ clearIcon?: string | undefined
48
+ filled?: boolean | undefined
49
+ outlined?: boolean | undefined
50
+ borderless?: boolean | undefined
51
+ standout?: boolean | string | undefined
52
+ labelSlot?: boolean | undefined
53
+ bottomSlots?: boolean | undefined
54
+ hideBottomSpace?: boolean | undefined
55
+ counter?: boolean | undefined
56
+ rounded?: boolean | undefined
57
+ square?: boolean | undefined
58
+ dense?: boolean | undefined
59
+ itemAligned?: boolean | undefined
60
+ disable?: boolean | undefined
61
+ readonly?: boolean | undefined
62
+ autofocus?: boolean | undefined
63
+ for?: string | undefined
64
+ shadowText?: string | undefined
65
+ type?:
66
+ | 'text'
67
+ | 'password'
68
+ | 'textarea'
69
+ | 'email'
70
+ | 'search'
71
+ | 'tel'
72
+ | 'file'
73
+ | 'number'
74
+ | 'url'
75
+ | 'time'
76
+ | 'date'
77
+ | undefined
78
+ debounce?: string | number | undefined
79
+ disabled?: boolean | undefined
80
+ maxlength?: string | number | undefined
81
+ autogrow?: boolean | undefined
82
+ inputClass?: any | undefined
83
+ inputStyle?: any | undefined
84
+ onClear?: (value: any) => void
85
+ 'onUpdate:modelValue'?: (value: string | number | null) => void
86
+ onFocus?: (evt: Event) => void
87
+ onBlur?: (evt: Event) => void
88
+ onClick?: (evt: Event) => void
89
+ placeholder?: string | undefined
90
+ }
91
+
92
+ interface AppInputProps extends AppQInputProps {
93
+ field?: boolean
94
+ required?: boolean
95
+ datePicker?: boolean
96
+ timePicker?: boolean
97
+ withIcon?: boolean
98
+ withButton?: boolean
99
+ withArrow?: boolean
100
+ borderColor?: string
101
+ borderRadius?: string
102
+ borderWidth?: string
103
+ width?: string
104
+ height?: string
105
+ clearable?: boolean
106
+ }
107
+
108
+ const props = withDefaults(defineProps<AppInputProps>(), {
109
+ dense: true,
110
+ outlined: true,
111
+ error: undefined,
112
+ modelValue: '',
113
+ borderRadius: '8px',
114
+ borderWidth: '1px',
115
+ width: 'auto',
116
+ height: 'auto',
117
+ })
118
+
119
+ const emit = defineEmits(['update:modelValue', 'button-click', 'clear', 'focus', 'blur', 'click'])
120
+ const passwordVisibility = ref(false)
121
+ const inputType = computed(() => {
122
+ if (props.type === 'password') return passwordVisibility.value ? 'text' : 'password'
123
+ return props.type || 'text'
124
+ })
125
+
126
+ const value = computed({
127
+ get: () =>
128
+ props.modelValue !== null && props.modelValue !== undefined && props.type === 'number'
129
+ ? +props.modelValue
130
+ : props.modelValue,
131
+ set: (newValue: any) => emit('update:modelValue', props.type === 'number' ? +newValue : newValue),
132
+ })
133
+
134
+ const inputClasses = computed(() => {
135
+ return {
136
+ 'app-input': true,
137
+ '--required': props.required,
138
+ '--field': props.field,
139
+ 'input-number-without-arrow': inputType.value === 'number' && !props.withArrow,
140
+ }
141
+ })
142
+ </script>
143
+
144
+ <style module lang="scss">
145
+ .app-input {
146
+ &:global(.q-field--dense .q-field__control) {
147
+ height: v-bind(height);
148
+ }
149
+ }
150
+ </style>