shared-ritm 1.2.28 → 1.2.29
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,170 +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 #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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
| '
|
|
85
|
-
| '
|
|
86
|
-
| '
|
|
87
|
-
| '
|
|
88
|
-
| '
|
|
89
|
-
| '
|
|
90
|
-
| '
|
|
91
|
-
| '
|
|
92
|
-
| '
|
|
93
|
-
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
'
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
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 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 16px;
|
|
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>
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
|
13
13
|
<div :class="$style['action-wrapper']">
|
|
14
|
-
<q-btn :class="$style['notification']" flat padding="sm" :ripple="false" @click="clickNotification"
|
|
15
|
-
<app-icon color="white" size="28px" name="notifications-icon"
|
|
16
|
-
</q-btn
|
|
14
|
+
<!-- <q-btn :class="$style['notification']" flat padding="sm" :ripple="false" @click="clickNotification">-->
|
|
15
|
+
<!-- <app-icon color="white" size="28px" name="notifications-icon" />-->
|
|
16
|
+
<!-- </q-btn>-->
|
|
17
17
|
<q-separator color="white" vertical size="1px" />
|
|
18
18
|
<q-btn
|
|
19
19
|
ref="refMenuSettings"
|