classcard-ui 0.2.281 → 0.2.282

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.
@@ -87848,12 +87848,12 @@ var CCheckbox_component = normalizeComponent(
87848
87848
  )
87849
87849
 
87850
87850
  /* harmony default export */ var CCheckbox = (CCheckbox_component.exports);
87851
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"98a06534-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/CSelect/CSelect.vue?vue&type=template&id=3d23c22a&
87852
- var CSelectvue_type_template_id_3d23c22a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.label)?_c('div',{staticClass:"flex justify-between w-full"},[_c('div',{staticClass:"flex items-center"},[_c('label',{staticClass:"block text-sm font-medium text-gray-900"},[_vm._v(" "+_vm._s(_vm.label)+" ")]),(_vm.isRequired)?_c('p',{staticClass:"text-red-600 ml-1"},[_vm._v("*")]):_vm._e()]),(_vm.hint)?_c('span',{staticClass:"text-sm text-gray-500"},[_vm._v(_vm._s(_vm.hint))]):_vm._e()]):_vm._e(),_c('div',{staticClass:"relative",class:_vm.label ? 'mt-1' : ''},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.selectSearch),expression:"selectSearch"}],staticClass:"relative w-full rounded-md pl-3 pr-10 py-2 text-left cursor-pointer focus:outline-none sm:text-sm disabled:opacity-50",class:_vm.classes,attrs:{"type":"text","aria-haspopup":"listbox","aria-expanded":"true","aria-labelledby":"listbox-label","disabled":_vm.isDisabled},domProps:{"value":(_vm.selectSearch)},on:{"click":function($event){_vm.toggleDropdown = !_vm.toggleDropdown},"focus":function($event){_vm.type == 'tertiary' ? (_vm.showFocus = true) : ''},"blur":function($event){return _vm.close()},"keyup":function($event){return _vm.search()},"input":function($event){if($event.target.composing){ return; }_vm.selectSearch=$event.target.value}}}),_c('div',{staticClass:"absolute top-2 left-3 flex pointer-events-none"},[_c('span',{staticClass:"flex items-center"},[(_vm.showImage && !_vm.selectSearch)?_c('c-avatar',{attrs:{"size":"extraextrasmall","image":"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80","rounded":true}}):_vm._e(),(_vm.icon && !_vm.selectSearch)?_c('c-icon',{class:_vm.icon.class,attrs:{"name":_vm.icon.name,"type":_vm.icon.type}}):_vm._e(),_c('span',{staticClass:"block truncate text-sm",class:_vm.showImage ? 'ml-3' : ''},[_vm._v(" "+_vm._s(_vm.selectedValue ? _vm.selectedValue : !_vm.selectSearch || _vm.selectSearch == "" ? _vm.placeholder : null)+" ")])],1)]),_c('div',{staticClass:"absolute top-2.5 right-3 flex pointer-events-none"},[(_vm.type == 'tertiary' ? _vm.showFocus : true)?_c('div',{staticClass:"right-0 flex items-center pointer-events-none"},[_c('c-icon',{staticClass:"h-5 w-5",attrs:{"name":"selector","type":"solid"}})],1):_vm._e()]),_c('transition',{attrs:{"enter-active-class":"transition ease-out duration-100","enter-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"}},[(_vm.toggleDropdown && !_vm.isDisabled)?_c('div',{staticClass:"absolute mt-1 rounded-md bg-white shadow-lg z-10 w-full"},[_c('ul',{staticClass:"max-h-60 rounded-md py-1 text-base ring-1 ring-gray-900 ring-opacity-5 overflow-auto focus:outline-none sm:text-sm",attrs:{"tabindex":"-1","role":"listbox","aria-labelledby":"listbox-label"}},[(_vm.addAction)?_c('li',{staticClass:"flex hover:bg-indigo-100 text-indigo-500 hover:text-indigo-700 select-none relative py-2 pl-3 pr-9 cursor-pointer",on:{"mousedown":function($event){return _vm.actionEvent($event)}}},[_c('c-icon',{staticClass:"h-5 w-5 mr-1 text-indigo-400 group-hover:text-indigo-500",attrs:{"type":"outline","name":"plus"}}),_vm._v(" "+_vm._s(_vm.addAction.label)+" ")],1):_vm._e(),_vm._l((_vm.renderOptions),function(option,index){return _c('li',{key:index,staticClass:"text-gray-900 hover:bg-indigo-700 hover:text-white select-none relative py-2 pl-3 pr-9 cursor-pointer",attrs:{"id":"listbox-option-0","role":"option"},on:{"mousedown":function($event){return _vm.handleSelect($event, option)}}},[_c('span',{staticClass:"flex items-center"},[(_vm.showImage && option.image)?_c('c-avatar',{attrs:{"size":"extraextrasmall","image":option.image,"rounded":true}}):_vm._e(),_c('span',{staticClass:"font-normal block break-words list-options",class:_vm.showImage && option.image ? 'ml-3' : ''},[_vm._v(_vm._s(option[_vm.renderOptionName])+" ")])],1),_c('span',{staticClass:"text-indigo-600 absolute inset-y-0 right-0 flex items-center pr-4"},[_c('c-icon',{directives:[{name:"show",rawName:"v-show",value:(_vm.showSelectedValue),expression:"showSelectedValue"}],staticClass:"h-5 w-5",attrs:{"id":"list-icon","name":"check","type":"solid"}})],1)])})],2)]):_vm._e()]),(!_vm.isValidate)?_c('p',{staticClass:"mt-2 text-sm text-left text-red-600"},[_vm._v(" "+_vm._s(_vm.errorMessage)+" ")]):_vm._e(),(_vm.helpText)?_c('p',{staticClass:"mt-2 text-sm text-gray-500"},[_vm._v(" "+_vm._s(_vm.helpText)+" ")]):_vm._e()],1)])}
87853
- var CSelectvue_type_template_id_3d23c22a_staticRenderFns = []
87851
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"98a06534-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/CSelect/CSelect.vue?vue&type=template&id=4b473a5b&
87852
+ var CSelectvue_type_template_id_4b473a5b_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.label)?_c('div',{staticClass:"flex justify-between w-full"},[_c('div',{staticClass:"flex items-center"},[_c('label',{staticClass:"block text-sm font-medium text-gray-900"},[_vm._v(" "+_vm._s(_vm.label)+" ")]),(_vm.isRequired)?_c('p',{staticClass:"text-red-600 ml-1"},[_vm._v("*")]):_vm._e()]),(_vm.hint)?_c('span',{staticClass:"text-sm text-gray-500"},[_vm._v(_vm._s(_vm.hint))]):_vm._e()]):_vm._e(),_c('div',{staticClass:"relative",class:_vm.label ? 'mt-1' : ''},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.selectSearch),expression:"selectSearch"}],staticClass:"relative w-full rounded-md pl-3 pr-10 py-2 text-left cursor-pointer focus:outline-none sm:text-sm disabled:opacity-50",class:_vm.classes,attrs:{"type":"text","aria-haspopup":"listbox","aria-expanded":"true","aria-labelledby":"listbox-label","disabled":_vm.isDisabled},domProps:{"value":(_vm.selectSearch)},on:{"click":function($event){_vm.toggleDropdown = !_vm.toggleDropdown},"focus":function($event){_vm.type == 'tertiary' ? (_vm.showFocus = true) : ''},"blur":function($event){return _vm.close()},"keyup":function($event){return _vm.search()},"input":function($event){if($event.target.composing){ return; }_vm.selectSearch=$event.target.value}}}),_c('div',{staticClass:"absolute top-2 left-3 flex pointer-events-none"},[_c('span',{staticClass:"flex items-center"},[(_vm.showImage && !_vm.selectSearch)?_c('c-avatar',{attrs:{"size":"extraextrasmall","image":"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80","rounded":true}}):_vm._e(),(_vm.icon && !_vm.selectSearch)?_c('c-icon',{class:_vm.icon.class,attrs:{"name":_vm.icon.name,"type":_vm.icon.type}}):_vm._e(),_c('span',{staticClass:"block truncate text-sm",class:_vm.showImage ? 'ml-3' : ''},[_vm._v(" "+_vm._s(_vm.selectedValue ? _vm.selectedValue : !_vm.selectSearch || _vm.selectSearch == "" ? _vm.placeholder : null)+" ")])],1)]),_c('div',{staticClass:"absolute top-2.5 right-3 flex pointer-events-none"},[(_vm.type == 'tertiary' ? _vm.showFocus : true)?_c('div',{staticClass:"right-0 flex items-center pointer-events-none"},[_c('c-icon',{staticClass:"h-5 w-5",attrs:{"name":"selector","type":"solid"}})],1):_vm._e()]),_c('transition',{attrs:{"enter-active-class":"transition ease-out duration-100","enter-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"}},[(_vm.toggleDropdown && !_vm.isDisabled)?_c('div',{staticClass:"absolute mt-1 rounded-md bg-white shadow-lg z-10 w-full"},[_c('ul',{staticClass:"max-h-60 rounded-md py-1 text-base ring-1 ring-gray-900 ring-opacity-5 overflow-auto focus:outline-none sm:text-sm",attrs:{"tabindex":"-1","role":"listbox","aria-labelledby":"listbox-label"}},[(_vm.addAction)?_c('li',{staticClass:"flex hover:bg-indigo-100 text-indigo-500 hover:text-indigo-700 select-none relative py-2 pl-3 pr-9 cursor-pointer",on:{"mousedown":function($event){return _vm.actionEvent($event)}}},[_c('c-icon',{staticClass:"h-5 w-5 mr-1 text-indigo-400 group-hover:text-indigo-500",attrs:{"type":"outline","name":"plus"}}),_vm._v(" "+_vm._s(_vm.addAction.label)+" ")],1):_vm._e(),_vm._l((_vm.renderOptions),function(option,index){return _c('li',{key:index,staticClass:"text-gray-900 hover:bg-indigo-700 hover:text-white select-none relative py-2 pl-3 pr-9 cursor-pointer",attrs:{"id":"listbox-option-0","role":"option"},on:{"mousedown":function($event){return _vm.handleSelect($event, option)}}},[_c('span',{staticClass:"flex items-center"},[(_vm.showImage && option.image)?_c('c-avatar',{attrs:{"size":"extraextrasmall","image":option.image,"rounded":true}}):_vm._e(),_c('span',{staticClass:"font-normal block break-words list-options",class:_vm.showImage && option.image ? 'ml-3' : ''},[_vm._v(_vm._s(option[_vm.renderOptionName])+" ")])],1),_c('span',{staticClass:"text-indigo-600 absolute inset-y-0 right-0 flex items-center pr-4"},[_c('c-icon',{directives:[{name:"show",rawName:"v-show",value:(_vm.showSelectedValue),expression:"showSelectedValue"}],staticClass:"h-5 w-5",attrs:{"id":"list-icon","name":"check","type":"solid"}})],1)])})],2)]):_vm._e()]),(!_vm.isValidate)?_c('p',{staticClass:"mt-2 text-sm text-left text-red-600"},[_vm._v(" "+_vm._s(_vm.errorMessage)+" ")]):_vm._e(),(_vm.helpText)?_c('p',{staticClass:"mt-2 text-sm text-gray-500"},[_vm._v(" "+_vm._s(_vm.helpText)+" ")]):_vm._e()],1)])}
87853
+ var CSelectvue_type_template_id_4b473a5b_staticRenderFns = []
87854
87854
 
87855
87855
 
87856
- // CONCATENATED MODULE: ./src/components/CSelect/CSelect.vue?vue&type=template&id=3d23c22a&
87856
+ // CONCATENATED MODULE: ./src/components/CSelect/CSelect.vue?vue&type=template&id=4b473a5b&
87857
87857
 
87858
87858
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 5 modules
87859
87859
  var toConsumableArray = __webpack_require__("2909");
@@ -88110,7 +88110,7 @@ var lodash = __webpack_require__("2ef0");
88110
88110
  computed: {
88111
88111
  classes: function classes() {
88112
88112
  return {
88113
- "text-gray-900 hover:bg-gray-200 bg-gray-100 focus:ring-2 focus:border-gray-200 focus:ring-gray-200 focus:ring-offset-2 shadow-sm": this.type == "gray",
88113
+ "text-gray-900 border border-gray-200 hover:bg-gray-200 bg-gray-100 focus:ring-2 focus:border-gray-200 focus:ring-gray-200 focus:ring-offset-2 shadow-sm": this.type == "gray",
88114
88114
  "bg-white border border-gray-200 hover:bg-indigo-100 text-indigo-600 hover:text-indigo-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-200": this.type == "tertiary",
88115
88115
  "border border-gray-300 focus:ring-indigo-500 focus:border-indigo-500 bg-white shadow-sm focus:ring-1": this.type == null
88116
88116
  };
@@ -88170,8 +88170,8 @@ var lodash = __webpack_require__("2ef0");
88170
88170
 
88171
88171
  var CSelect_component = normalizeComponent(
88172
88172
  CSelect_CSelectvue_type_script_lang_js_,
88173
- CSelectvue_type_template_id_3d23c22a_render,
88174
- CSelectvue_type_template_id_3d23c22a_staticRenderFns,
88173
+ CSelectvue_type_template_id_4b473a5b_render,
88174
+ CSelectvue_type_template_id_4b473a5b_staticRenderFns,
88175
88175
  false,
88176
88176
  null,
88177
88177
  null,