@pocketprep/ui-kit 2.0.32 → 2.0.34
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.common.js +48 -4
- package/dist/@pocketprep/ui-kit.common.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.js +48 -4
- package/dist/@pocketprep/ui-kit.umd.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.min.js +5 -5
- package/dist/@pocketprep/ui-kit.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1052,7 +1052,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
1052
1052
|
|
|
1053
1053
|
/***/ }),
|
|
1054
1054
|
|
|
1055
|
-
/***/
|
|
1055
|
+
/***/ 40080:
|
|
1056
1056
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1057
1057
|
|
|
1058
1058
|
"use strict";
|
|
@@ -1065,7 +1065,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1065
1065
|
"default": () => (/* binding */ FilterOptions)
|
|
1066
1066
|
});
|
|
1067
1067
|
|
|
1068
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Filters/FilterOptions.vue?vue&type=template&id=
|
|
1068
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Filters/FilterOptions.vue?vue&type=template&id=6b512266&
|
|
1069
1069
|
var render = function () {
|
|
1070
1070
|
var _obj;
|
|
1071
1071
|
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"dark",rawName:"v-dark"}],staticClass:"filter-options",class:( _obj = {}, _obj[("filter-options--" + _vm.align)] = true, _obj[("filter-options-" + _vm.size)] = true, _obj )},[_vm._t("radioLabel",function(){return [(_vm.radioOptions.length > 0)?_c('div',{directives:[{name:"dark",rawName:"v-dark"}],staticClass:"filter-options__label",class:{ 'filter-options__label--active': _vm.showRadioOptions },attrs:{"aria-expanded":_vm.showFilterDropdown ? 'true' : 'false'},on:{"click":function($event){_vm.showRadioOptions = !_vm.showRadioOptions; _vm.showCheckboxOptions = false;},"mousedown":function($event){$event.preventDefault();}}},[_vm._t("radioLabelText",function(){return [_c('span',[_vm._v("FILTER BY QUESTION TYPE")])]}),_vm._t("radioLabelIcon",function(){return [_c('Icon',{directives:[{name:"dark",rawName:"v-dark",value:(_vm.isDarkMode),expression:"isDarkMode"}],staticClass:"filter-options__arrow",attrs:{"type":"accordionArrow"}})]})],2):_vm._e()]}),_vm._t("radio",function(){return [(_vm.showRadioOptions)?_c('Radio',{staticClass:"filter-options__radio",attrs:{"aria-live":"polite","data":_vm.radioOptions},model:{value:(_vm.radioEntry),callback:function ($$v) {_vm.radioEntry=$$v},expression:"radioEntry"}}):_vm._e()]}),_vm._t("checkboxLabel",function(){return [(_vm.radioOptions.length > 0)?_c('div',{directives:[{name:"dark",rawName:"v-dark"}],staticClass:"filter-options__label",class:{ 'filter-options__label--active': _vm.showCheckboxOptions },attrs:{"aria-expanded":_vm.showFilterDropdown ? 'true' : 'false'},on:{"click":function($event){_vm.showCheckboxOptions = !_vm.showCheckboxOptions; _vm.showRadioOptions = false;},"mousedown":function($event){$event.preventDefault();}}},[_vm._t("checkboxLabelText",function(){return [_c('span',[_vm._v("FILTER BY SUBJECT")])]}),_vm._t("checkboxLabelIcon",function(){return [_c('Icon',{directives:[{name:"dark",rawName:"v-dark",value:(_vm.isDarkMode),expression:"isDarkMode"}],staticClass:"filter-options__arrow",attrs:{"type":"accordionArrow"}})]})],2):_c('div',{directives:[{name:"dark",rawName:"v-dark"}],staticClass:"filter-options__label",class:{ 'filter-options__label--active': _vm.showCheckboxOptions },attrs:{"aria-expanded":_vm.showFilterDropdown ? 'true' : 'false'}},[_vm._t("checkboxLabelText",function(){return [_c('span',[_vm._v("FILTER BY SUBJECT")])]})],2)]}),_vm._t("checkbox",function(){return [(_vm.showCheckboxOptions || _vm.radioOptions.length === 0)?_c('div',{staticClass:"filter-options__checkbox"},_vm._l((_vm.checkboxOptions),function(option){return _c('CheckboxOption',{directives:[{name:"dark",rawName:"v-dark",value:(_vm.isDarkMode),expression:"isDarkMode"}],key:option.id,staticClass:"filter-options__option",attrs:{"label":option.label},on:{"click":function($event){option.enabled = !option.enabled}},model:{value:(option.enabled),callback:function ($$v) {_vm.$set(option, "enabled", $$v)},expression:"option.enabled"}})}),1):_vm._e()]})],2)}
|
|
@@ -18086,7 +18086,7 @@ var Link_vue_1 = tslib_1.__importDefault(__webpack_require__(52491));
|
|
|
18086
18086
|
|
|
18087
18087
|
var Icon_vue_1 = tslib_1.__importDefault(__webpack_require__(38228));
|
|
18088
18088
|
|
|
18089
|
-
var FilterOptions_vue_1 = tslib_1.__importDefault(__webpack_require__(
|
|
18089
|
+
var FilterOptions_vue_1 = tslib_1.__importDefault(__webpack_require__(40080));
|
|
18090
18090
|
|
|
18091
18091
|
var directives_1 = __webpack_require__(92801);
|
|
18092
18092
|
|
|
@@ -18247,6 +18247,8 @@ __webpack_require__(26699);
|
|
|
18247
18247
|
|
|
18248
18248
|
__webpack_require__(32023);
|
|
18249
18249
|
|
|
18250
|
+
__webpack_require__(57327);
|
|
18251
|
+
|
|
18250
18252
|
Object.defineProperty(exports, "X", ({
|
|
18251
18253
|
value: true
|
|
18252
18254
|
}));
|
|
@@ -18315,6 +18317,40 @@ var FilterOptions = /*#__PURE__*/function (_vue_property_decorat) {
|
|
|
18315
18317
|
document.addEventListener('click', this.clickListener);
|
|
18316
18318
|
document.addEventListener('keydown', this.keydownListener);
|
|
18317
18319
|
}
|
|
18320
|
+
}, {
|
|
18321
|
+
key: "checkboxOptionsChanged",
|
|
18322
|
+
value: function checkboxOptionsChanged(newVal, oldVal) {
|
|
18323
|
+
var newEnabledFilters = newVal.filter(function (o) {
|
|
18324
|
+
return o.enabled;
|
|
18325
|
+
});
|
|
18326
|
+
var oldEnabledFilters = oldVal.filter(function (o) {
|
|
18327
|
+
return o.enabled;
|
|
18328
|
+
});
|
|
18329
|
+
|
|
18330
|
+
if (newEnabledFilters.length !== oldEnabledFilters.length) {
|
|
18331
|
+
this.$emit('input', newVal);
|
|
18332
|
+
}
|
|
18333
|
+
}
|
|
18334
|
+
}, {
|
|
18335
|
+
key: "checkboxOptionChanged",
|
|
18336
|
+
value: function checkboxOptionChanged(newVal) {
|
|
18337
|
+
this.checkboxOptions = _toConsumableArray(newVal);
|
|
18338
|
+
}
|
|
18339
|
+
}, {
|
|
18340
|
+
key: "radioOptionsChanged",
|
|
18341
|
+
value: function radioOptionsChanged(newVal, oldVal) {
|
|
18342
|
+
var newEnabledFilters = newVal;
|
|
18343
|
+
var oldEnabledFilters = oldVal;
|
|
18344
|
+
|
|
18345
|
+
if (newEnabledFilters.length !== oldEnabledFilters.length) {
|
|
18346
|
+
this.$emit('input', newVal);
|
|
18347
|
+
}
|
|
18348
|
+
}
|
|
18349
|
+
}, {
|
|
18350
|
+
key: "radioOptionChanged",
|
|
18351
|
+
value: function radioOptionChanged(newVal) {
|
|
18352
|
+
this.radioOptions = _toConsumableArray(newVal);
|
|
18353
|
+
}
|
|
18318
18354
|
}]);
|
|
18319
18355
|
|
|
18320
18356
|
return FilterOptions;
|
|
@@ -18340,6 +18376,14 @@ tslib_1.__decorate([(0, vue_property_decorator_1.Prop)({
|
|
|
18340
18376
|
"default": false
|
|
18341
18377
|
})], FilterOptions.prototype, "isDarkMode", void 0);
|
|
18342
18378
|
|
|
18379
|
+
tslib_1.__decorate([(0, vue_property_decorator_1.Watch)('checkboxOptions')], FilterOptions.prototype, "checkboxOptionsChanged", null);
|
|
18380
|
+
|
|
18381
|
+
tslib_1.__decorate([(0, vue_property_decorator_1.Watch)('checkboxEntries')], FilterOptions.prototype, "checkboxOptionChanged", null);
|
|
18382
|
+
|
|
18383
|
+
tslib_1.__decorate([(0, vue_property_decorator_1.Watch)('radioOptions')], FilterOptions.prototype, "radioOptionsChanged", null);
|
|
18384
|
+
|
|
18385
|
+
tslib_1.__decorate([(0, vue_property_decorator_1.Watch)('radioEntries')], FilterOptions.prototype, "radioOptionChanged", null);
|
|
18386
|
+
|
|
18343
18387
|
FilterOptions = tslib_1.__decorate([(0, vue_property_decorator_1.Component)({
|
|
18344
18388
|
components: {
|
|
18345
18389
|
CheckboxOption: CheckboxOption_vue_1["default"],
|
|
@@ -25685,7 +25729,7 @@ var Slider_vue_1 = tslib_1.__importDefault(__webpack_require__(40659));
|
|
|
25685
25729
|
|
|
25686
25730
|
var Button_vue_1 = tslib_1.__importDefault(__webpack_require__(61350));
|
|
25687
25731
|
|
|
25688
|
-
var FilterOptions_vue_1 = tslib_1.__importDefault(__webpack_require__(
|
|
25732
|
+
var FilterOptions_vue_1 = tslib_1.__importDefault(__webpack_require__(40080));
|
|
25689
25733
|
|
|
25690
25734
|
var FilterDropdown_vue_1 = tslib_1.__importDefault(__webpack_require__(31142));
|
|
25691
25735
|
|