@pocketprep/ui-kit 3.8.1 → 3.8.3
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/dist/@pocketprep/ui-kit.js +4 -3
- package/dist/@pocketprep/ui-kit.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.cjs +2 -2
- package/dist/@pocketprep/ui-kit.umd.cjs.map +1 -1
- package/lib/components/Forms/Select.vue +6 -1
- package/lib/components/Quiz/question.d.ts +1 -1
- package/lib/utils.ts +2 -2
- package/package.json +1 -1
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
v-model="searchText"
|
|
63
63
|
v-dark="isDarkMode"
|
|
64
64
|
type="text"
|
|
65
|
+
ref="uikit-select__input"
|
|
65
66
|
class="uikit-select__input"
|
|
66
67
|
:class="{
|
|
67
68
|
'uikit-select__input--placeholder': !modelValue && !searchText,
|
|
@@ -218,7 +219,11 @@ export default class Select extends Vue {
|
|
|
218
219
|
|
|
219
220
|
mounted () {
|
|
220
221
|
if (this.autoFocus) {
|
|
221
|
-
(this
|
|
222
|
+
if (this.typeahead) {
|
|
223
|
+
(this.$refs['uikit-select__input'] as HTMLElement).focus()
|
|
224
|
+
} else {
|
|
225
|
+
(this.$refs['uikit-select__input-container'] as HTMLElement).focus()
|
|
226
|
+
}
|
|
222
227
|
}
|
|
223
228
|
|
|
224
229
|
if (this.typeahead && this.modelValue?.label) {
|
|
@@ -7,7 +7,7 @@ export type TBuildListChoiceKey = `a${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}`
|
|
|
7
7
|
export type TQuizMode = 'qotd' | 'quick10' | 'timed' | 'weakest' | 'missed' | 'custom'
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line max-len
|
|
10
|
-
export type TContextIcon = 'quick10' | 'calendar' | 'missedQuestions' | 'subject' | 'stopwatch' | 'exam' | 'levelup' | 'pencil' | 'assignment'
|
|
10
|
+
export type TContextIcon = 'quick10' | 'calendar' | 'missedQuestions' | 'subject' | 'stopwatch' | 'exam' | 'levelup' | 'pencil' | 'assignment' | 'concept'
|
|
11
11
|
|
|
12
12
|
export type TBreakPointsObject = {
|
|
13
13
|
'mobile': number
|
package/lib/utils.ts
CHANGED