@pocketprep/ui-kit 3.0.1 → 3.0.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 +10 -10
- 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/Filters/FilterDropdown.vue +4 -4
- package/lib/components/Filters/FilterOptions.vue +4 -4
- package/lib/components/Quiz/Question.vue +2 -2
- package/package.json +2 -2
|
@@ -103,7 +103,7 @@ export default class FilterDropdown extends Vue {
|
|
|
103
103
|
document.removeEventListener('keydown', this.keydownListener)
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
@Watch('checkboxOptions')
|
|
106
|
+
@Watch('checkboxOptions', { deep: true })
|
|
107
107
|
checkboxOptionsChanged (newVal: TCheckboxOption[], oldVal: TCheckboxOption[]) {
|
|
108
108
|
const newEnabledFilters = newVal.filter(o => o.enabled)
|
|
109
109
|
const oldEnabledFilters = oldVal.filter(o => o.enabled)
|
|
@@ -111,12 +111,12 @@ export default class FilterDropdown extends Vue {
|
|
|
111
111
|
this.emitUpdateModelValue(newVal)
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
@Watch('checkboxEntries')
|
|
114
|
+
@Watch('checkboxEntries', { deep: true })
|
|
115
115
|
checkboxOptionChanged (newVal: TCheckboxOption[]) {
|
|
116
116
|
this.checkboxOptions = [ ...newVal ]
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
@Watch('radioOptions')
|
|
119
|
+
@Watch('radioOptions', { deep: true })
|
|
120
120
|
radioOptionsChanged (newVal: TRadioOption[], oldVal: TRadioOption[]) {
|
|
121
121
|
const newEnabledFilters = newVal
|
|
122
122
|
const oldEnabledFilters = oldVal
|
|
@@ -124,7 +124,7 @@ export default class FilterDropdown extends Vue {
|
|
|
124
124
|
this.emitUpdateModelValue(newVal)
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
@Watch('radioEntries')
|
|
127
|
+
@Watch('radioEntries', { deep: true })
|
|
128
128
|
radioOptionChanged (newVal: TRadioOption[]) {
|
|
129
129
|
this.radioOptions = [ ...newVal ]
|
|
130
130
|
}
|
|
@@ -156,7 +156,7 @@ export default class FilterOptions extends Vue {
|
|
|
156
156
|
document.addEventListener('keydown', this.keydownListener)
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
@Watch('checkboxOptions')
|
|
159
|
+
@Watch('checkboxOptions', { deep: true })
|
|
160
160
|
checkboxOptionsChanged (newVal: TCheckboxOption[], oldVal: TCheckboxOption[]) {
|
|
161
161
|
|
|
162
162
|
const newEnabledFilters = newVal.filter(o => o.enabled)
|
|
@@ -165,12 +165,12 @@ export default class FilterOptions extends Vue {
|
|
|
165
165
|
this.emitUpdateModelValue(newVal)
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
@Watch('checkboxEntries')
|
|
168
|
+
@Watch('checkboxEntries', { deep: true })
|
|
169
169
|
checkboxOptionChanged (newVal: TCheckboxOption[]) {
|
|
170
170
|
this.checkboxOptions = [ ...newVal ]
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
@Watch('radioOptions')
|
|
173
|
+
@Watch('radioOptions', { deep: true })
|
|
174
174
|
radioOptionsChanged (newVal: TRadioOption[], oldVal: TRadioOption[]) {
|
|
175
175
|
const newEnabledFilters = newVal
|
|
176
176
|
const oldEnabledFilters = oldVal
|
|
@@ -178,7 +178,7 @@ export default class FilterOptions extends Vue {
|
|
|
178
178
|
this.emitUpdateModelValue(newVal)
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
@Watch('radioEntries')
|
|
181
|
+
@Watch('radioEntries', { deep: true })
|
|
182
182
|
radioOptionChanged (newVal: TRadioOption[]) {
|
|
183
183
|
this.radioOptions = [ ...newVal ]
|
|
184
184
|
}
|
|
@@ -1503,12 +1503,12 @@ export default class Question extends Vue {
|
|
|
1503
1503
|
}
|
|
1504
1504
|
}
|
|
1505
1505
|
|
|
1506
|
-
@Watch('previousChoices')
|
|
1506
|
+
@Watch('previousChoices', { deep: true })
|
|
1507
1507
|
previousChoicesChanged (choices: TChoiceKey[]) {
|
|
1508
1508
|
this.updateSelectedChoices(choices)
|
|
1509
1509
|
}
|
|
1510
1510
|
|
|
1511
|
-
@Watch('selectedChoices')
|
|
1511
|
+
@Watch('selectedChoices', { deep: true })
|
|
1512
1512
|
selectedChoicesChanged () {
|
|
1513
1513
|
this.emitSelectedChoices({
|
|
1514
1514
|
isCorrect: this.selectedChoices.length === this.answerKeys.length
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pocketprep/ui-kit",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "Pocket Prep UI Kit",
|
|
5
5
|
"author": "pocketprep",
|
|
6
6
|
"scripts": {
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"litepicker": "2.0.12",
|
|
67
67
|
"resize-observer": "1.0.4",
|
|
68
68
|
"vue": "3.2.47",
|
|
69
|
-
"vue-facing-decorator": "2.1.
|
|
69
|
+
"vue-facing-decorator": "2.1.19"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@pocketprep/types": "1.8.4",
|