@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
|
@@ -985,7 +985,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
985
985
|
|
|
986
986
|
/***/ }),
|
|
987
987
|
|
|
988
|
-
/***/
|
|
988
|
+
/***/ 62803:
|
|
989
989
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
990
990
|
|
|
991
991
|
"use strict";
|
|
@@ -998,7 +998,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
998
998
|
"default": () => (/* binding */ FilterDropdown)
|
|
999
999
|
});
|
|
1000
1000
|
|
|
1001
|
-
;// 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=
|
|
1001
|
+
;// 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&
|
|
1002
1002
|
var render = function () {
|
|
1003
1003
|
var _obj;
|
|
1004
1004
|
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:{
|
|
@@ -1042,7 +1042,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
1042
1042
|
|
|
1043
1043
|
/***/ }),
|
|
1044
1044
|
|
|
1045
|
-
/***/
|
|
1045
|
+
/***/ 70921:
|
|
1046
1046
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1047
1047
|
|
|
1048
1048
|
"use strict";
|
|
@@ -1055,10 +1055,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1055
1055
|
"default": () => (/* binding */ FilterOptions)
|
|
1056
1056
|
});
|
|
1057
1057
|
|
|
1058
|
-
;// 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=
|
|
1058
|
+
;// 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&
|
|
1059
1059
|
var render = function () {
|
|
1060
1060
|
var _obj;
|
|
1061
|
-
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
|
|
1061
|
+
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)}
|
|
1062
1062
|
var staticRenderFns = []
|
|
1063
1063
|
|
|
1064
1064
|
|
|
@@ -14082,7 +14082,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14082
14082
|
|
|
14083
14083
|
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()));
|
|
14084
14084
|
// Module
|
|
14085
|
-
___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}", ""]);
|
|
14085
|
+
___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}", ""]);
|
|
14086
14086
|
// Exports
|
|
14087
14087
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
14088
14088
|
|
|
@@ -18060,6 +18060,10 @@ var _createSuper = (__webpack_require__(13706)["default"]);
|
|
|
18060
18060
|
|
|
18061
18061
|
__webpack_require__(69070);
|
|
18062
18062
|
|
|
18063
|
+
__webpack_require__(57327);
|
|
18064
|
+
|
|
18065
|
+
__webpack_require__(41539);
|
|
18066
|
+
|
|
18063
18067
|
Object.defineProperty(exports, "X", ({
|
|
18064
18068
|
value: true
|
|
18065
18069
|
}));
|
|
@@ -18072,7 +18076,7 @@ var Link_vue_1 = tslib_1.__importDefault(__webpack_require__(66985));
|
|
|
18072
18076
|
|
|
18073
18077
|
var Icon_vue_1 = tslib_1.__importDefault(__webpack_require__(64652));
|
|
18074
18078
|
|
|
18075
|
-
var FilterOptions_vue_1 = tslib_1.__importDefault(__webpack_require__(
|
|
18079
|
+
var FilterOptions_vue_1 = tslib_1.__importDefault(__webpack_require__(70921));
|
|
18076
18080
|
|
|
18077
18081
|
var directives_1 = __webpack_require__(19748);
|
|
18078
18082
|
|
|
@@ -18124,6 +18128,40 @@ var FilterDropdown = /*#__PURE__*/function (_vue_property_decorat) {
|
|
|
18124
18128
|
document.removeEventListener('click', this.clickListener);
|
|
18125
18129
|
document.removeEventListener('keydown', this.keydownListener);
|
|
18126
18130
|
}
|
|
18131
|
+
}, {
|
|
18132
|
+
key: "checkboxOptionsChanged",
|
|
18133
|
+
value: function checkboxOptionsChanged(newVal, oldVal) {
|
|
18134
|
+
var newEnabledFilters = newVal.filter(function (o) {
|
|
18135
|
+
return o.enabled;
|
|
18136
|
+
});
|
|
18137
|
+
var oldEnabledFilters = oldVal.filter(function (o) {
|
|
18138
|
+
return o.enabled;
|
|
18139
|
+
});
|
|
18140
|
+
|
|
18141
|
+
if (newEnabledFilters.length !== oldEnabledFilters.length) {
|
|
18142
|
+
this.$emit('input', newVal);
|
|
18143
|
+
}
|
|
18144
|
+
}
|
|
18145
|
+
}, {
|
|
18146
|
+
key: "checkboxOptionChanged",
|
|
18147
|
+
value: function checkboxOptionChanged(newVal) {
|
|
18148
|
+
this.checkboxOptions = _toConsumableArray(newVal);
|
|
18149
|
+
}
|
|
18150
|
+
}, {
|
|
18151
|
+
key: "radioOptionsChanged",
|
|
18152
|
+
value: function radioOptionsChanged(newVal, oldVal) {
|
|
18153
|
+
var newEnabledFilters = newVal;
|
|
18154
|
+
var oldEnabledFilters = oldVal;
|
|
18155
|
+
|
|
18156
|
+
if (newEnabledFilters.length !== oldEnabledFilters.length) {
|
|
18157
|
+
this.$emit('input', newVal);
|
|
18158
|
+
}
|
|
18159
|
+
}
|
|
18160
|
+
}, {
|
|
18161
|
+
key: "radioOptionChanged",
|
|
18162
|
+
value: function radioOptionChanged(newVal) {
|
|
18163
|
+
this.radioOptions = _toConsumableArray(newVal);
|
|
18164
|
+
}
|
|
18127
18165
|
}]);
|
|
18128
18166
|
|
|
18129
18167
|
return FilterDropdown;
|
|
@@ -18151,6 +18189,14 @@ tslib_1.__decorate([(0, vue_property_decorator_1.Prop)({
|
|
|
18151
18189
|
"default": false
|
|
18152
18190
|
})], FilterDropdown.prototype, "responsiveButton", void 0);
|
|
18153
18191
|
|
|
18192
|
+
tslib_1.__decorate([(0, vue_property_decorator_1.Watch)('checkboxOptions')], FilterDropdown.prototype, "checkboxOptionsChanged", null);
|
|
18193
|
+
|
|
18194
|
+
tslib_1.__decorate([(0, vue_property_decorator_1.Watch)('checkboxEntries')], FilterDropdown.prototype, "checkboxOptionChanged", null);
|
|
18195
|
+
|
|
18196
|
+
tslib_1.__decorate([(0, vue_property_decorator_1.Watch)('radioOptions')], FilterDropdown.prototype, "radioOptionsChanged", null);
|
|
18197
|
+
|
|
18198
|
+
tslib_1.__decorate([(0, vue_property_decorator_1.Watch)('radioEntries')], FilterDropdown.prototype, "radioOptionChanged", null);
|
|
18199
|
+
|
|
18154
18200
|
FilterDropdown = tslib_1.__decorate([(0, vue_property_decorator_1.Component)({
|
|
18155
18201
|
components: {
|
|
18156
18202
|
FilterOptions: FilterOptions_vue_1["default"],
|
|
@@ -25629,9 +25675,9 @@ var Slider_vue_1 = tslib_1.__importDefault(__webpack_require__(47507));
|
|
|
25629
25675
|
|
|
25630
25676
|
var Button_vue_1 = tslib_1.__importDefault(__webpack_require__(58861));
|
|
25631
25677
|
|
|
25632
|
-
var FilterOptions_vue_1 = tslib_1.__importDefault(__webpack_require__(
|
|
25678
|
+
var FilterOptions_vue_1 = tslib_1.__importDefault(__webpack_require__(70921));
|
|
25633
25679
|
|
|
25634
|
-
var FilterDropdown_vue_1 = tslib_1.__importDefault(__webpack_require__(
|
|
25680
|
+
var FilterDropdown_vue_1 = tslib_1.__importDefault(__webpack_require__(62803));
|
|
25635
25681
|
|
|
25636
25682
|
var Link_vue_1 = tslib_1.__importDefault(__webpack_require__(66985));
|
|
25637
25683
|
|