shared-ritm 1.2.57 → 1.2.59

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 (103) hide show
  1. package/README.md +103 -103
  2. package/dist/index.css +1 -1
  3. package/dist/shared-ritm.es.js +1639 -1629
  4. package/dist/shared-ritm.umd.js +7 -7
  5. package/dist/types/api/services/VideoService.d.ts +6 -0
  6. package/dist/types/index.d.ts +2 -1
  7. package/package.json +63 -63
  8. package/src/App.vue +2461 -2461
  9. package/src/api/services/AuthService.ts +58 -58
  10. package/src/api/services/FileService.ts +15 -15
  11. package/src/api/services/GanttService.ts +17 -17
  12. package/src/api/services/MetricsService.ts +109 -109
  13. package/src/api/services/ProjectsService.ts +67 -67
  14. package/src/api/services/RepairsService.ts +100 -100
  15. package/src/api/services/TasksService.ts +137 -137
  16. package/src/api/services/VideoService.ts +14 -0
  17. package/src/api/settings/ApiService.ts +128 -128
  18. package/src/api/types/Api_Controls.ts +72 -72
  19. package/src/api/types/Api_Files.ts +1 -1
  20. package/src/api/types/Api_Projects.ts +55 -55
  21. package/src/api/types/Api_Repairs.ts +93 -93
  22. package/src/api/types/Api_Tasks.ts +155 -155
  23. package/src/common/app-button/AppButton.vue +173 -173
  24. package/src/common/app-checkbox/AppCheckbox.vue +26 -26
  25. package/src/common/app-date-picker/AppDatePicker.vue +81 -81
  26. package/src/common/app-dialogs/AppConfirmDialog.vue +99 -99
  27. package/src/common/app-dropdown/AppDropdown.vue +31 -31
  28. package/src/common/app-icon/AppIcon.vue +108 -108
  29. package/src/common/app-input/AppInput.vue +148 -147
  30. package/src/common/app-input-search/AppInputSearch.vue +174 -174
  31. package/src/common/app-layout/AppLayout.vue +84 -84
  32. package/src/common/app-layout/components/AppLayoutHeader.vue +246 -246
  33. package/src/common/app-layout/components/AppLayoutPage.vue +16 -16
  34. package/src/common/app-loader/index.vue +43 -43
  35. package/src/common/app-page-layout/AppPageLayout.vue +122 -122
  36. package/src/common/app-select/AppSelect.vue +157 -157
  37. package/src/common/app-sheet/AppSheet.vue +120 -120
  38. package/src/common/app-sidebar/AppSidebar.vue +168 -168
  39. package/src/common/app-sidebar/components/SidebarMenu.vue +37 -37
  40. package/src/common/app-sidebar/components/SidebarMenuItem.vue +148 -148
  41. package/src/common/app-table/controllers/useColumnSelector.ts +38 -38
  42. package/src/common/app-toggle/AppToggle.vue +23 -23
  43. package/src/common/app-wrapper/AppWrapper.vue +28 -28
  44. package/src/global.d.ts +1 -1
  45. package/src/icons/components/arrow-down-icon.vue +25 -25
  46. package/src/icons/components/arrow-frame-icon.vue +19 -19
  47. package/src/icons/components/arrow-square.vue +22 -22
  48. package/src/icons/components/table-filter-icon.vue +30 -30
  49. package/src/icons/dialogs/RemoveIcon.vue +12 -12
  50. package/src/icons/dialogs/SafetyIcon.vue +12 -12
  51. package/src/icons/header/NotificationIcon.vue +18 -18
  52. package/src/icons/header/PersonIcon.vue +11 -11
  53. package/src/icons/header/SettingIcon.vue +14 -14
  54. package/src/icons/header/flashIcon.vue +24 -24
  55. package/src/icons/header/searchStatusIcon.vue +24 -24
  56. package/src/icons/header/smallCapsIcon.vue +34 -34
  57. package/src/icons/sidebar/assign-module-icon.vue +36 -36
  58. package/src/icons/sidebar/instrument-history-icon.vue +32 -32
  59. package/src/icons/sidebar/instrument-order-icon.vue +38 -38
  60. package/src/icons/sidebar/instrument-work-zone-icon.vue +18 -18
  61. package/src/icons/sidebar/instruments-icon.vue +45 -45
  62. package/src/icons/sidebar/logo-icon.vue +15 -15
  63. package/src/icons/sidebar/logout-icon.vue +13 -13
  64. package/src/icons/sidebar/modules-icon.vue +16 -16
  65. package/src/icons/sidebar/notifications-icon.vue +24 -24
  66. package/src/icons/sidebar/order-icon.vue +44 -44
  67. package/src/icons/sidebar/pass-icon.vue +38 -38
  68. package/src/icons/sidebar/positions-icon.vue +42 -42
  69. package/src/icons/sidebar/preorder-icon.vue +19 -19
  70. package/src/icons/sidebar/projects-icon.vue +31 -31
  71. package/src/icons/sidebar/repair-object-icon.vue +18 -18
  72. package/src/icons/sidebar/repairs-icon.vue +20 -20
  73. package/src/icons/sidebar/roles-icon.vue +26 -26
  74. package/src/icons/sidebar/status-history-icon.vue +24 -24
  75. package/src/icons/sidebar/tasks-icon.vue +28 -28
  76. package/src/icons/sidebar/tasks_tasks-icon.vue +39 -39
  77. package/src/icons/sidebar/tasks_today-icon.vue +27 -27
  78. package/src/icons/sidebar/teams-icon.vue +32 -32
  79. package/src/icons/sidebar/user-icon.vue +18 -18
  80. package/src/icons/sidebar/users-icon.vue +46 -46
  81. package/src/icons/sidebar/videosources-icon.vue +19 -19
  82. package/src/icons/sidebar/videowall-icon.vue +13 -13
  83. package/src/icons/sidebar/videozones-icon.vue +21 -21
  84. package/src/icons/sidebar/warehouses-icon.vue +43 -43
  85. package/src/icons/sidebar/workshop-icon.vue +100 -100
  86. package/src/icons/sidebar/workzones-icon.vue +22 -22
  87. package/src/icons/task/attention-icon.vue +13 -13
  88. package/src/icons/task/clock-icon.vue +10 -10
  89. package/src/icons/task/delete-icon.vue +10 -10
  90. package/src/icons/task/fire-icon.vue +16 -16
  91. package/src/index.ts +2 -0
  92. package/src/main.ts +28 -28
  93. package/src/quasar-user-options.ts +17 -17
  94. package/src/router/index.ts +10 -10
  95. package/src/shared/fonts/Inter_18pt-Black.ttf +0 -0
  96. package/src/shared/fonts/Inter_18pt-Bold.ttf +0 -0
  97. package/src/shared/fonts/Inter_18pt-Regular.ttf +0 -0
  98. package/src/shared/fonts/Inter_18pt-SemiBold.ttf +0 -0
  99. package/src/shared/styles/general.css +125 -96
  100. package/src/shims-vue.d.ts +5 -5
  101. package/src/styles/variables.sass +12 -12
  102. package/src/utils/confirm.ts +12 -12
  103. package/src/utils/notification.ts +9 -9
@@ -1,147 +1,148 @@
1
- <template>
2
- <q-input
3
- v-model="value"
4
- :class="[inputClasses, $style['app-input']]"
5
- standout
6
- outlined
7
- dense
8
- :type="inputType"
9
- autocomplete="h87h58g7h8hd"
10
- :readonly="readonly || field"
11
- :disable="disabled"
12
- :placeholder="placeholder"
13
- >
14
- </q-input>
15
- </template>
16
-
17
- <script lang="ts" setup>
18
- import { defineProps, defineEmits, computed, ref, withDefaults } from 'vue'
19
-
20
- interface AppQInputProps {
21
- name?: string | undefined
22
- mask?: string | undefined
23
- fillMask?: boolean | string | undefined
24
- reverseFillMask?: boolean | undefined
25
- unmaskedValue?: boolean | undefined
26
- modelValue: string | number | null | undefined
27
- error?: boolean | undefined
28
- errorMessage?: string | undefined
29
- noErrorIcon?: boolean | undefined
30
- rules?: any | undefined
31
- reactiveRules?: boolean | undefined
32
- lazyRules?: boolean | 'ondemand' | undefined
33
- label?: string | undefined
34
- stackLabel?: boolean | undefined
35
- hint?: string | undefined
36
- hideHint?: boolean | undefined
37
- prefix?: string | undefined
38
- suffix?: string | undefined
39
- labelColor?: string | undefined
40
- color?: string | undefined
41
- bgColor?: string | undefined
42
- dark?: boolean | undefined
43
- loading?: boolean | undefined
44
- clearable?: boolean | undefined
45
- clearIcon?: string | undefined
46
- filled?: boolean | undefined
47
- outlined?: boolean | undefined
48
- borderless?: boolean | undefined
49
- standout?: boolean | string | undefined
50
- labelSlot?: boolean | undefined
51
- bottomSlots?: boolean | undefined
52
- hideBottomSpace?: boolean | undefined
53
- counter?: boolean | undefined
54
- rounded?: boolean | undefined
55
- square?: boolean | undefined
56
- dense?: boolean | undefined
57
- itemAligned?: boolean | undefined
58
- disable?: boolean | undefined
59
- readonly?: boolean | undefined
60
- autofocus?: boolean | undefined
61
- for?: string | undefined
62
- shadowText?: string | undefined
63
- type?:
64
- | 'text'
65
- | 'password'
66
- | 'textarea'
67
- | 'email'
68
- | 'search'
69
- | 'tel'
70
- | 'file'
71
- | 'number'
72
- | 'url'
73
- | 'time'
74
- | 'date'
75
- | undefined
76
- debounce?: string | number | undefined
77
- disabled?: boolean | undefined
78
- maxlength?: string | number | undefined
79
- autogrow?: boolean | undefined
80
- inputClass?: any | undefined
81
- inputStyle?: any | undefined
82
- onClear?: (value: any) => void
83
- 'onUpdate:modelValue'?: (value: string | number | null) => void
84
- onFocus?: (evt: Event) => void
85
- onBlur?: (evt: Event) => void
86
- onClick?: (evt: Event) => void
87
- placeholder?: string | undefined
88
- }
89
-
90
- interface AppInputProps extends AppQInputProps {
91
- field?: boolean
92
- required?: boolean
93
- datePicker?: boolean
94
- timePicker?: boolean
95
- withIcon?: boolean
96
- withButton?: boolean
97
- withArrow?: boolean
98
- borderColor?: string
99
- borderRadius?: string
100
- borderWidth?: string
101
- width?: string
102
- height?: string
103
- }
104
-
105
- const props = withDefaults(defineProps<AppInputProps>(), {
106
- dense: true,
107
- outlined: true,
108
- error: undefined,
109
- modelValue: '',
110
- borderRadius: '8px',
111
- borderWidth: '1px',
112
- width: 'auto',
113
- height: 'auto',
114
- })
115
-
116
- const emit = defineEmits(['update:modelValue', 'button-click', 'clear', 'focus', 'blur', 'click'])
117
- const passwordVisibility = ref(false)
118
- const inputType = computed(() => {
119
- if (props.type === 'password') return passwordVisibility.value ? 'text' : 'password'
120
- return props.type || 'text'
121
- })
122
-
123
- const value = computed({
124
- get: () =>
125
- props.modelValue !== null && props.modelValue !== undefined && props.type === 'number'
126
- ? +props.modelValue
127
- : props.modelValue,
128
- set: (newValue: any) => emit('update:modelValue', props.type === 'number' ? +newValue : newValue),
129
- })
130
-
131
- const inputClasses = computed(() => {
132
- return {
133
- 'app-input': true,
134
- '--required': props.required,
135
- '--field': props.field,
136
- 'input-number-without-arrow': inputType.value === 'number' && !props.withArrow,
137
- }
138
- })
139
- </script>
140
-
141
- <style module lang="scss">
142
- .app-input {
143
- &:global(.q-field--dense .q-field__control) {
144
- height: v-bind(height);
145
- }
146
- }
147
- </style>
1
+ <template>
2
+ <q-input
3
+ v-model="value"
4
+ :class="[inputClasses, $style['app-input']]"
5
+ standout
6
+ outlined
7
+ dense
8
+ :rules="rules"
9
+ :type="inputType"
10
+ autocomplete="h87h58g7h8hd"
11
+ :readonly="readonly || field"
12
+ :disable="disabled"
13
+ :placeholder="placeholder"
14
+ >
15
+ </q-input>
16
+ </template>
17
+
18
+ <script lang="ts" setup>
19
+ import { defineProps, defineEmits, computed, ref, withDefaults } from 'vue'
20
+
21
+ interface AppQInputProps {
22
+ name?: string | undefined
23
+ mask?: string | undefined
24
+ fillMask?: boolean | string | undefined
25
+ reverseFillMask?: boolean | undefined
26
+ unmaskedValue?: boolean | undefined
27
+ modelValue: string | number | null | undefined
28
+ error?: boolean | undefined
29
+ errorMessage?: string | undefined
30
+ noErrorIcon?: boolean | undefined
31
+ rules?: any | undefined
32
+ reactiveRules?: boolean | undefined
33
+ lazyRules?: boolean | 'ondemand' | undefined
34
+ label?: string | undefined
35
+ stackLabel?: boolean | undefined
36
+ hint?: string | undefined
37
+ hideHint?: boolean | undefined
38
+ prefix?: string | undefined
39
+ suffix?: string | undefined
40
+ labelColor?: string | undefined
41
+ color?: string | undefined
42
+ bgColor?: string | undefined
43
+ dark?: boolean | undefined
44
+ loading?: boolean | undefined
45
+ clearable?: boolean | undefined
46
+ clearIcon?: string | undefined
47
+ filled?: boolean | undefined
48
+ outlined?: boolean | undefined
49
+ borderless?: boolean | undefined
50
+ standout?: boolean | string | undefined
51
+ labelSlot?: boolean | undefined
52
+ bottomSlots?: boolean | undefined
53
+ hideBottomSpace?: boolean | undefined
54
+ counter?: boolean | undefined
55
+ rounded?: boolean | undefined
56
+ square?: boolean | undefined
57
+ dense?: boolean | undefined
58
+ itemAligned?: boolean | undefined
59
+ disable?: boolean | undefined
60
+ readonly?: boolean | undefined
61
+ autofocus?: boolean | undefined
62
+ for?: string | undefined
63
+ shadowText?: string | undefined
64
+ type?:
65
+ | 'text'
66
+ | 'password'
67
+ | 'textarea'
68
+ | 'email'
69
+ | 'search'
70
+ | 'tel'
71
+ | 'file'
72
+ | 'number'
73
+ | 'url'
74
+ | 'time'
75
+ | 'date'
76
+ | undefined
77
+ debounce?: string | number | undefined
78
+ disabled?: boolean | undefined
79
+ maxlength?: string | number | undefined
80
+ autogrow?: boolean | undefined
81
+ inputClass?: any | undefined
82
+ inputStyle?: any | undefined
83
+ onClear?: (value: any) => void
84
+ 'onUpdate:modelValue'?: (value: string | number | null) => void
85
+ onFocus?: (evt: Event) => void
86
+ onBlur?: (evt: Event) => void
87
+ onClick?: (evt: Event) => void
88
+ placeholder?: string | undefined
89
+ }
90
+
91
+ interface AppInputProps extends AppQInputProps {
92
+ field?: boolean
93
+ required?: boolean
94
+ datePicker?: boolean
95
+ timePicker?: boolean
96
+ withIcon?: boolean
97
+ withButton?: boolean
98
+ withArrow?: boolean
99
+ borderColor?: string
100
+ borderRadius?: string
101
+ borderWidth?: string
102
+ width?: string
103
+ height?: string
104
+ }
105
+
106
+ const props = withDefaults(defineProps<AppInputProps>(), {
107
+ dense: true,
108
+ outlined: true,
109
+ error: undefined,
110
+ modelValue: '',
111
+ borderRadius: '8px',
112
+ borderWidth: '1px',
113
+ width: 'auto',
114
+ height: 'auto',
115
+ })
116
+
117
+ const emit = defineEmits(['update:modelValue', 'button-click', 'clear', 'focus', 'blur', 'click'])
118
+ const passwordVisibility = ref(false)
119
+ const inputType = computed(() => {
120
+ if (props.type === 'password') return passwordVisibility.value ? 'text' : 'password'
121
+ return props.type || 'text'
122
+ })
123
+
124
+ const value = computed({
125
+ get: () =>
126
+ props.modelValue !== null && props.modelValue !== undefined && props.type === 'number'
127
+ ? +props.modelValue
128
+ : props.modelValue,
129
+ set: (newValue: any) => emit('update:modelValue', props.type === 'number' ? +newValue : newValue),
130
+ })
131
+
132
+ const inputClasses = computed(() => {
133
+ return {
134
+ 'app-input': true,
135
+ '--required': props.required,
136
+ '--field': props.field,
137
+ 'input-number-without-arrow': inputType.value === 'number' && !props.withArrow,
138
+ }
139
+ })
140
+ </script>
141
+
142
+ <style module lang="scss">
143
+ .app-input {
144
+ &:global(.q-field--dense .q-field__control) {
145
+ height: v-bind(height);
146
+ }
147
+ }
148
+ </style>
@@ -1,174 +1,174 @@
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 v-if="searchIcon" #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
- borderRadius?: string | undefined
68
- standout?: boolean | string | undefined
69
- searchIcon?: boolean | undefined
70
- labelSlot?: boolean | undefined
71
- bottomSlots?: boolean | undefined
72
- hideBottomSpace?: boolean | undefined
73
- counter?: boolean | undefined
74
- rounded?: boolean | undefined
75
- square?: boolean | undefined
76
- dense?: boolean | undefined
77
- itemAligned?: boolean | undefined
78
- disable?: boolean | undefined
79
- readonly?: boolean | undefined
80
- autofocus?: boolean | undefined
81
- for?: string | undefined
82
- shadowText?: string | undefined
83
- type?:
84
- | 'text'
85
- | 'password'
86
- | 'textarea'
87
- | 'email'
88
- | 'search'
89
- | 'tel'
90
- | 'file'
91
- | 'number'
92
- | 'url'
93
- | 'time'
94
- | 'date'
95
- | undefined
96
- debounce?: string | number | undefined
97
- maxlength?: string | number | undefined
98
- autogrow?: boolean | undefined
99
- inputClass?: VueClassProp | undefined
100
- inputStyle?: VueStyleProp | undefined
101
- onClear?: (value: any) => void
102
- 'onUpdate:modelValue'?: (value: string | number | null) => void
103
- onFocus?: (evt: Event) => void
104
- onBlur?: (evt: Event) => void
105
- onClick?: (evt: Event) => void
106
- }
107
-
108
- interface AppInputProps extends AppQInputProps {
109
- field?: boolean
110
- required?: boolean
111
- datePicker?: boolean
112
- timePicker?: boolean
113
- dateLocale?: any
114
- withIcon?: boolean
115
- iconName?: string
116
- iconColor?: string
117
- withButton?: boolean
118
- buttonIcon?: string
119
- buttonTooltip?: string
120
- clearTooltip?: string
121
- withArrow?: boolean
122
- }
123
-
124
- const props = withDefaults(defineProps<AppInputProps>(), {
125
- dense: true,
126
- height: '48px',
127
- outlined: true,
128
- error: undefined,
129
- modelValue: '',
130
- borderRadius: '14px',
131
- searchIcon: true,
132
- })
133
-
134
- const emit = defineEmits(['update:modelValue', 'button-click', 'clear', 'focus', 'blur', 'click'])
135
-
136
- const value = computed({
137
- get: () =>
138
- props.modelValue !== null && props.modelValue !== undefined && props.type === 'number'
139
- ? +props.modelValue
140
- : props.modelValue,
141
- set: (newValue: any) => emit('update:modelValue', props.type === 'number' ? +newValue : newValue),
142
- })
143
-
144
- const itemClasses = computed(() => ({
145
- '--dense': props.dense,
146
- '--bordered': props.bordered,
147
- }))
148
- </script>
149
-
150
- <style lang="scss" module>
151
- .app-input {
152
- &:global(.q-field--outlined .q-field__control) {
153
- border-radius: v-bind(borderRadius);
154
- height: v-bind(height);
155
- align-items: center;
156
- padding: 0 12px;
157
- color: #87caff;
158
- }
159
- :global(.q-field__control-container) {
160
- margin-left: 8px;
161
- }
162
- }
163
- @media (max-width: 1440px) {
164
- .app-input {
165
- &:global(.q-field--outlined .q-field__control) {
166
- height: 40px;
167
- padding: 0 12px;
168
- }
169
- :global(.q-field__control-container) {
170
- margin-left: 6px;
171
- }
172
- }
173
- }
174
- </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 v-if="searchIcon" #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
+ borderRadius?: string | undefined
68
+ standout?: boolean | string | undefined
69
+ searchIcon?: boolean | undefined
70
+ labelSlot?: boolean | undefined
71
+ bottomSlots?: boolean | undefined
72
+ hideBottomSpace?: boolean | undefined
73
+ counter?: boolean | undefined
74
+ rounded?: boolean | undefined
75
+ square?: boolean | undefined
76
+ dense?: boolean | undefined
77
+ itemAligned?: boolean | undefined
78
+ disable?: boolean | undefined
79
+ readonly?: boolean | undefined
80
+ autofocus?: boolean | undefined
81
+ for?: string | undefined
82
+ shadowText?: string | undefined
83
+ type?:
84
+ | 'text'
85
+ | 'password'
86
+ | 'textarea'
87
+ | 'email'
88
+ | 'search'
89
+ | 'tel'
90
+ | 'file'
91
+ | 'number'
92
+ | 'url'
93
+ | 'time'
94
+ | 'date'
95
+ | undefined
96
+ debounce?: string | number | undefined
97
+ maxlength?: string | number | undefined
98
+ autogrow?: boolean | undefined
99
+ inputClass?: VueClassProp | undefined
100
+ inputStyle?: VueStyleProp | undefined
101
+ onClear?: (value: any) => void
102
+ 'onUpdate:modelValue'?: (value: string | number | null) => void
103
+ onFocus?: (evt: Event) => void
104
+ onBlur?: (evt: Event) => void
105
+ onClick?: (evt: Event) => void
106
+ }
107
+
108
+ interface AppInputProps extends AppQInputProps {
109
+ field?: boolean
110
+ required?: boolean
111
+ datePicker?: boolean
112
+ timePicker?: boolean
113
+ dateLocale?: any
114
+ withIcon?: boolean
115
+ iconName?: string
116
+ iconColor?: string
117
+ withButton?: boolean
118
+ buttonIcon?: string
119
+ buttonTooltip?: string
120
+ clearTooltip?: string
121
+ withArrow?: boolean
122
+ }
123
+
124
+ const props = withDefaults(defineProps<AppInputProps>(), {
125
+ dense: true,
126
+ height: '48px',
127
+ outlined: true,
128
+ error: undefined,
129
+ modelValue: '',
130
+ borderRadius: '14px',
131
+ searchIcon: true,
132
+ })
133
+
134
+ const emit = defineEmits(['update:modelValue', 'button-click', 'clear', 'focus', 'blur', 'click'])
135
+
136
+ const value = computed({
137
+ get: () =>
138
+ props.modelValue !== null && props.modelValue !== undefined && props.type === 'number'
139
+ ? +props.modelValue
140
+ : props.modelValue,
141
+ set: (newValue: any) => emit('update:modelValue', props.type === 'number' ? +newValue : newValue),
142
+ })
143
+
144
+ const itemClasses = computed(() => ({
145
+ '--dense': props.dense,
146
+ '--bordered': props.bordered,
147
+ }))
148
+ </script>
149
+
150
+ <style lang="scss" module>
151
+ .app-input {
152
+ &:global(.q-field--outlined .q-field__control) {
153
+ border-radius: v-bind(borderRadius);
154
+ height: v-bind(height);
155
+ align-items: center;
156
+ padding: 0 12px;
157
+ color: #87caff;
158
+ }
159
+ :global(.q-field__control-container) {
160
+ margin-left: 8px;
161
+ }
162
+ }
163
+ @media (max-width: 1440px) {
164
+ .app-input {
165
+ &:global(.q-field--outlined .q-field__control) {
166
+ height: 40px;
167
+ padding: 0 12px;
168
+ }
169
+ :global(.q-field__control-container) {
170
+ margin-left: 6px;
171
+ }
172
+ }
173
+ }
174
+ </style>