classcard-ui 0.2.139 → 0.2.143

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.
@@ -43693,16 +43693,16 @@ var CFormSectionHeading_component = normalizeComponent(
43693
43693
  // CONCATENATED MODULE: ./src/components/CIcon/index.js
43694
43694
 
43695
43695
  /* harmony default export */ var components_CIcon = (CIcon);
43696
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7cc97ecd-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/CGroupedSelect/CGroupedSelect.vue?vue&type=template&id=7b644a90&
43697
- var CGroupedSelectvue_type_template_id_7b644a90_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.label)?_c('label',{staticClass:"block text-sm font-medium text-gray-700"},[_vm._v(" "+_vm._s(_vm.label)+" ")]):_vm._e(),_c('div',{staticClass:"mt-1 relative"},[_c('div',{staticClass:"relative"},[_c('input',{staticClass:"bg-white relative w-full border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",attrs:{"type":"text","aria-haspopup":"listbox","aria-expanded":"true","aria-labelledby":"listbox-label","placeholder":_vm.placeholder},domProps:{"value":_vm.inputValue},on:{"focus":function($event){_vm.showDropDown = true},"blur":function($event){return _vm.closeDropDown()},"input":_vm.onInput}}),_c('span',{staticClass:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},[_c('svg',{staticClass:"h-5 w-5 text-gray-400",attrs:{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 20 20","fill":"currentColor","aria-hidden":"true"}},[_c('path',{attrs:{"fill-rule":"evenodd","d":"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z","clip-rule":"evenodd"}})])])]),(_vm.showDropDown && _vm.options.length > 0)?_c('ul',{staticClass:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm",attrs:{"tabindex":"-1","role":"listbox","aria-labelledby":"listbox-label","aria-activedescendant":"listbox-option-3"}},_vm._l((_vm.options),function(option){return _c('span',{key:option.id},[_c('li',{staticClass:"text-gray-900 cursor-default select-none relative py-2 pl-3 pr-9",attrs:{"role":"option"}},[_c('span',{staticClass:"font-bold italic block truncate"},[_vm._v(" "+_vm._s(option.label)+" ")])]),_vm._l((option.options),function(subOption){return _c('li',{key:subOption.id,staticClass:"text-gray-900 cursor-default select-none relative py-2 pl-3 pr-9 group hover:text-white hover:bg-indigo-600",attrs:{"role":"option"},on:{"click":function($event){return _vm.handleOptionClick(subOption)}}},[_c('span',{class:[
43696
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7cc97ecd-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/CGroupedSelect/CGroupedSelect.vue?vue&type=template&id=229d4b38&
43697
+ var CGroupedSelectvue_type_template_id_229d4b38_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.label)?_c('label',{staticClass:"block text-sm font-medium text-gray-700"},[_vm._v(" "+_vm._s(_vm.label)+" ")]):_vm._e(),_c('div',{staticClass:"mt-1 relative"},[_c('div',{staticClass:"relative"},[_c('input',{staticClass:"bg-white relative w-full border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",attrs:{"type":"text","aria-haspopup":"listbox","aria-expanded":"true","aria-labelledby":"listbox-label","placeholder":_vm.placeholder},domProps:{"value":_vm.inputValue},on:{"focus":function($event){return _vm.openDropDown()},"blur":function($event){return _vm.closeDropDown()},"input":_vm.onInput}}),_c('span',{staticClass:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},[_c('svg',{staticClass:"h-5 w-5 text-gray-400",attrs:{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 20 20","fill":"currentColor","aria-hidden":"true"}},[_c('path',{attrs:{"fill-rule":"evenodd","d":"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z","clip-rule":"evenodd"}})])])]),(_vm.showDropDown && _vm.options.length > 0)?_c('ul',{staticClass:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm",attrs:{"tabindex":"-1","role":"listbox","aria-labelledby":"listbox-label","aria-activedescendant":"listbox-option-3"}},[(_vm.isSearching)?_c('div',{staticClass:"w-full h-8 relative block top-0 left-0 bg-white opacity-75 z-50"},[_c('span',{staticClass:"text-gray-500 opacity-75 top-1/4 my-0 mx-auto block relative w-0 h-0"},[_c('c-icon',{staticClass:"h-5 w-5",attrs:{"name":"loader"}})],1)]):_vm._e(),_vm._l((_vm.options),function(option){return _c('span',{key:option.id},[_c('li',{staticClass:"text-gray-900 cursor-default select-none relative py-2 pl-3 pr-9",attrs:{"role":"option"}},[_c('span',{staticClass:"font-bold italic block truncate"},[_vm._v(" "+_vm._s(option.label)+" ")])]),_vm._l((option.options),function(subOption){return _c('li',{key:subOption.id,staticClass:"text-gray-900 cursor-default select-none relative py-2 pl-3 pr-9 group hover:text-white hover:bg-indigo-600",attrs:{"role":"option"},on:{"click":function($event){return _vm.handleOptionClick(subOption)}}},[_c('span',{class:[
43698
43698
  subOption.label === _vm.value.label
43699
43699
  ? 'font-semibold'
43700
43700
  : 'font-normal',
43701
- ' block truncate' ]},[_vm._v(" "+_vm._s(subOption.label)+" ")]),(subOption.label === _vm.value.label)?_c('span',{staticClass:"text-indigo-600 absolute inset-y-0 right-0 flex items-center pr-4 group-hover:text-white"},[_c('svg',{staticClass:"h-5 w-5",attrs:{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 20 20","fill":"currentColor","aria-hidden":"true"}},[_c('path',{attrs:{"fill-rule":"evenodd","d":"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"}})])]):_vm._e()])})],2)}),0):_vm._e()])])}
43702
- var CGroupedSelectvue_type_template_id_7b644a90_staticRenderFns = []
43701
+ ' block break-words' ]},[_vm._v(" "+_vm._s(subOption.label)+" ")]),(subOption.label === _vm.value.label)?_c('span',{staticClass:"text-indigo-600 absolute inset-y-0 right-0 flex items-center pr-4 group-hover:text-white"},[_c('svg',{staticClass:"h-5 w-5",attrs:{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 20 20","fill":"currentColor","aria-hidden":"true"}},[_c('path',{attrs:{"fill-rule":"evenodd","d":"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"}})])]):_vm._e()])})],2)})],2):_vm._e()])])}
43702
+ var CGroupedSelectvue_type_template_id_229d4b38_staticRenderFns = []
43703
43703
 
43704
43704
 
43705
- // CONCATENATED MODULE: ./src/components/CGroupedSelect/CGroupedSelect.vue?vue&type=template&id=7b644a90&
43705
+ // CONCATENATED MODULE: ./src/components/CGroupedSelect/CGroupedSelect.vue?vue&type=template&id=229d4b38&
43706
43706
 
43707
43707
  // CONCATENATED MODULE: ./node_modules/lodash-es/isObject.js
43708
43708
  /**
@@ -44372,14 +44372,30 @@ function debounce(func, wait, options) {
44372
44372
  //
44373
44373
  //
44374
44374
  //
44375
+ //
44376
+ //
44377
+ //
44378
+ //
44379
+ //
44380
+ //
44381
+ //
44382
+ //
44383
+ //
44384
+ //
44385
+ //
44386
+
44375
44387
 
44376
44388
  /* harmony default export */ var CGroupedSelectvue_type_script_lang_js_ = ({
44377
44389
  name: "CGroupedSelect",
44390
+ components: {
44391
+ CIcon: CIcon
44392
+ },
44378
44393
  props: {
44379
44394
  label: String,
44380
44395
  options: Array,
44381
44396
  value: Object,
44382
- placeholder: String
44397
+ placeholder: String,
44398
+ isSearching: Boolean
44383
44399
  },
44384
44400
  data: function data() {
44385
44401
  return {
@@ -44393,7 +44409,11 @@ function debounce(func, wait, options) {
44393
44409
  this.emitSearch(e.target.value);
44394
44410
  },
44395
44411
  emitSearch: lodash_es_debounce(function (value) {
44396
- this.$emit("search", value);
44412
+ if (value !== this.value.label) {
44413
+ this.$emit("search", value);
44414
+ } else {
44415
+ this.$emit("search", "");
44416
+ }
44397
44417
  }, 500),
44398
44418
  handleOptionClick: function handleOptionClick(option) {
44399
44419
  this.$emit("input", option);
@@ -44402,6 +44422,10 @@ function debounce(func, wait, options) {
44402
44422
  closeDropDown: function closeDropDown() {
44403
44423
  this.inputValue = this.value.label;
44404
44424
  this.showDropDown = false;
44425
+ },
44426
+ openDropDown: function openDropDown() {
44427
+ this.showDropDown = true;
44428
+ this.emitSearch("");
44405
44429
  }
44406
44430
  },
44407
44431
  watch: {
@@ -44425,8 +44449,8 @@ function debounce(func, wait, options) {
44425
44449
 
44426
44450
  var CGroupedSelect_component = normalizeComponent(
44427
44451
  CGroupedSelect_CGroupedSelectvue_type_script_lang_js_,
44428
- CGroupedSelectvue_type_template_id_7b644a90_render,
44429
- CGroupedSelectvue_type_template_id_7b644a90_staticRenderFns,
44452
+ CGroupedSelectvue_type_template_id_229d4b38_render,
44453
+ CGroupedSelectvue_type_template_id_229d4b38_staticRenderFns,
44430
44454
  false,
44431
44455
  null,
44432
44456
  null,