@pocketprep/ui-kit 2.0.29 → 2.0.31
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 +55 -9
- package/dist/@pocketprep/ui-kit.common.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.js +55 -9
- package/dist/@pocketprep/ui-kit.umd.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.min.js +2 -2
- package/dist/@pocketprep/ui-kit.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -995,7 +995,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
995
995
|
|
|
996
996
|
/***/ }),
|
|
997
997
|
|
|
998
|
-
/***/
|
|
998
|
+
/***/ 31142:
|
|
999
999
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1000
1000
|
|
|
1001
1001
|
"use strict";
|
|
@@ -1008,7 +1008,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1008
1008
|
"default": () => (/* binding */ FilterDropdown)
|
|
1009
1009
|
});
|
|
1010
1010
|
|
|
1011
|
-
;// 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/FilterDropdown.vue?vue&type=template&id=
|
|
1011
|
+
;// 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/FilterDropdown.vue?vue&type=template&id=b138a598&
|
|
1012
1012
|
var render = function () {
|
|
1013
1013
|
var _obj;
|
|
1014
1014
|
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"filter"},[_c('div',{staticClass:"filter-button"},[_c('Link',{directives:[{name:"dark",rawName:"v-dark",value:(_vm.isDarkMode),expression:"isDarkMode"}],staticClass:"filter-button__link",class:{
|
|
@@ -1052,7 +1052,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
1052
1052
|
|
|
1053
1053
|
/***/ }),
|
|
1054
1054
|
|
|
1055
|
-
/***/
|
|
1055
|
+
/***/ 87591:
|
|
1056
1056
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1057
1057
|
|
|
1058
1058
|
"use strict";
|
|
@@ -1065,10 +1065,10 @@ __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=019d1178&
|
|
1069
1069
|
var render = function () {
|
|
1070
1070
|
var _obj;
|
|
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
|
|
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)}
|
|
1072
1072
|
var staticRenderFns = []
|
|
1073
1073
|
|
|
1074
1074
|
|
|
@@ -14092,7 +14092,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14092
14092
|
|
|
14093
14093
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
14094
14094
|
// Module
|
|
14095
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".filter-options{background:#fff;border-radius:8px;box-shadow:0 6px 22px 0 rgba(31,53,69,.1);padding-bottom:20px;box-sizing:border-box;width:100%;max-width:250px;font-weight:500;max-height:305px;overflow:auto}.filter-options__label{display:flex;color:#587183;font-size:12px;letter-spacing:.24px;line-height:16px;text-align:left;padding:13px 20px}.filter-options__label--active svg{transform:rotate(180deg)}.filter-options__label:focus:before{content:\"\";left:-6px;top:-2px;width:calc(100% + 12px);height:100%;border:1px solid #0064ff;position:absolute;border-radius:6px}.filter-options__label--dark{color:#88a3b6}.filter-options__label--dark:focus:before{border-color:#ffce74}.filter-options__label span{margin-right:6px}.filter-options__label svg{color:#0064ff;width:11px;height:10px}.filter-options__radio{padding-left:20px}.filter-options__option{padding-left:20px;line-height:18px}", ""]);
|
|
14095
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".filter-options{background:#fff;border-radius:8px;box-shadow:0 6px 22px 0 rgba(31,53,69,.1);padding-bottom:20px;box-sizing:border-box;width:100%;max-width:250px;font-weight:500;max-height:305px;overflow:auto}.filter-options__label{display:flex;color:#587183;font-size:12px;letter-spacing:.24px;line-height:16px;text-align:left;padding:13px 20px}.filter-options__label--active svg{transform:rotate(180deg)}.filter-options__label:focus:before{content:\"\";left:-6px;top:-2px;width:calc(100% + 12px);height:100%;border:1px solid #0064ff;position:absolute;border-radius:6px}.filter-options__label--dark{color:#88a3b6}.filter-options__label--dark:focus:before{border-color:#ffce74}.filter-options__label span{margin-right:6px}.filter-options__label svg{color:#0064ff;width:11px;height:10px}.filter-options__radio{padding-left:20px}.filter-options__option{padding-left:20px;margin:0 6px;line-height:18px}", ""]);
|
|
14096
14096
|
// Exports
|
|
14097
14097
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
14098
14098
|
|
|
@@ -18070,6 +18070,10 @@ var _createSuper = (__webpack_require__(13400)["default"]);
|
|
|
18070
18070
|
|
|
18071
18071
|
__webpack_require__(69070);
|
|
18072
18072
|
|
|
18073
|
+
__webpack_require__(57327);
|
|
18074
|
+
|
|
18075
|
+
__webpack_require__(41539);
|
|
18076
|
+
|
|
18073
18077
|
Object.defineProperty(exports, "X", ({
|
|
18074
18078
|
value: true
|
|
18075
18079
|
}));
|
|
@@ -18082,7 +18086,7 @@ var Link_vue_1 = tslib_1.__importDefault(__webpack_require__(52491));
|
|
|
18082
18086
|
|
|
18083
18087
|
var Icon_vue_1 = tslib_1.__importDefault(__webpack_require__(38228));
|
|
18084
18088
|
|
|
18085
|
-
var FilterOptions_vue_1 = tslib_1.__importDefault(__webpack_require__(
|
|
18089
|
+
var FilterOptions_vue_1 = tslib_1.__importDefault(__webpack_require__(87591));
|
|
18086
18090
|
|
|
18087
18091
|
var directives_1 = __webpack_require__(92801);
|
|
18088
18092
|
|
|
@@ -18134,6 +18138,40 @@ var FilterDropdown = /*#__PURE__*/function (_vue_property_decorat) {
|
|
|
18134
18138
|
document.removeEventListener('click', this.clickListener);
|
|
18135
18139
|
document.removeEventListener('keydown', this.keydownListener);
|
|
18136
18140
|
}
|
|
18141
|
+
}, {
|
|
18142
|
+
key: "checkboxOptionsChanged",
|
|
18143
|
+
value: function checkboxOptionsChanged(newVal, oldVal) {
|
|
18144
|
+
var newEnabledFilters = newVal.filter(function (o) {
|
|
18145
|
+
return o.enabled;
|
|
18146
|
+
});
|
|
18147
|
+
var oldEnabledFilters = oldVal.filter(function (o) {
|
|
18148
|
+
return o.enabled;
|
|
18149
|
+
});
|
|
18150
|
+
|
|
18151
|
+
if (newEnabledFilters.length !== oldEnabledFilters.length) {
|
|
18152
|
+
this.$emit('input', newVal);
|
|
18153
|
+
}
|
|
18154
|
+
}
|
|
18155
|
+
}, {
|
|
18156
|
+
key: "checkboxOptionChanged",
|
|
18157
|
+
value: function checkboxOptionChanged(newVal) {
|
|
18158
|
+
this.checkboxOptions = _toConsumableArray(newVal);
|
|
18159
|
+
}
|
|
18160
|
+
}, {
|
|
18161
|
+
key: "radioOptionsChanged",
|
|
18162
|
+
value: function radioOptionsChanged(newVal, oldVal) {
|
|
18163
|
+
var newEnabledFilters = newVal;
|
|
18164
|
+
var oldEnabledFilters = oldVal;
|
|
18165
|
+
|
|
18166
|
+
if (newEnabledFilters.length !== oldEnabledFilters.length) {
|
|
18167
|
+
this.$emit('input', newVal);
|
|
18168
|
+
}
|
|
18169
|
+
}
|
|
18170
|
+
}, {
|
|
18171
|
+
key: "radioOptionChanged",
|
|
18172
|
+
value: function radioOptionChanged(newVal) {
|
|
18173
|
+
this.radioOptions = _toConsumableArray(newVal);
|
|
18174
|
+
}
|
|
18137
18175
|
}]);
|
|
18138
18176
|
|
|
18139
18177
|
return FilterDropdown;
|
|
@@ -18161,6 +18199,14 @@ tslib_1.__decorate([(0, vue_property_decorator_1.Prop)({
|
|
|
18161
18199
|
"default": false
|
|
18162
18200
|
})], FilterDropdown.prototype, "responsiveButton", void 0);
|
|
18163
18201
|
|
|
18202
|
+
tslib_1.__decorate([(0, vue_property_decorator_1.Watch)('checkboxOptions')], FilterDropdown.prototype, "checkboxOptionsChanged", null);
|
|
18203
|
+
|
|
18204
|
+
tslib_1.__decorate([(0, vue_property_decorator_1.Watch)('checkboxEntries')], FilterDropdown.prototype, "checkboxOptionChanged", null);
|
|
18205
|
+
|
|
18206
|
+
tslib_1.__decorate([(0, vue_property_decorator_1.Watch)('radioOptions')], FilterDropdown.prototype, "radioOptionsChanged", null);
|
|
18207
|
+
|
|
18208
|
+
tslib_1.__decorate([(0, vue_property_decorator_1.Watch)('radioEntries')], FilterDropdown.prototype, "radioOptionChanged", null);
|
|
18209
|
+
|
|
18164
18210
|
FilterDropdown = tslib_1.__decorate([(0, vue_property_decorator_1.Component)({
|
|
18165
18211
|
components: {
|
|
18166
18212
|
FilterOptions: FilterOptions_vue_1["default"],
|
|
@@ -25639,9 +25685,9 @@ var Slider_vue_1 = tslib_1.__importDefault(__webpack_require__(40659));
|
|
|
25639
25685
|
|
|
25640
25686
|
var Button_vue_1 = tslib_1.__importDefault(__webpack_require__(61350));
|
|
25641
25687
|
|
|
25642
|
-
var FilterOptions_vue_1 = tslib_1.__importDefault(__webpack_require__(
|
|
25688
|
+
var FilterOptions_vue_1 = tslib_1.__importDefault(__webpack_require__(87591));
|
|
25643
25689
|
|
|
25644
|
-
var FilterDropdown_vue_1 = tslib_1.__importDefault(__webpack_require__(
|
|
25690
|
+
var FilterDropdown_vue_1 = tslib_1.__importDefault(__webpack_require__(31142));
|
|
25645
25691
|
|
|
25646
25692
|
var Link_vue_1 = tslib_1.__importDefault(__webpack_require__(52491));
|
|
25647
25693
|
|