classcard-ui 0.2.300 → 0.2.301
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/classcard-ui.common.js +10 -6
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +10 -6
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CSelect/CSelect.vue +20 -16
package/dist/classcard-ui.umd.js
CHANGED
|
@@ -87863,12 +87863,12 @@ var CCheckbox_component = normalizeComponent(
|
|
|
87863
87863
|
)
|
|
87864
87864
|
|
|
87865
87865
|
/* harmony default export */ var CCheckbox = (CCheckbox_component.exports);
|
|
87866
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7ab675ec-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=
|
|
87867
|
-
var
|
|
87868
|
-
var
|
|
87866
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7ab675ec-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=6851a701&
|
|
87867
|
+
var CSelectvue_type_template_id_6851a701_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.label)?_c('div',{staticClass:"flex w-full justify-between"},[_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:"ml-1 text-red-600"},[_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:"focus:outline-none relative w-full cursor-pointer rounded-md py-2 pl-3 pr-10 text-left disabled:opacity-50 sm:text-sm",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:"pointer-events-none absolute top-2 left-3 flex"},[_c('span',{staticClass:"flex items-center",style:(_vm.selectedOptionStyles)},[(_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:"pointer-events-none absolute top-2.5 right-3 flex"},[(_vm.type == 'tertiary' ? _vm.showFocus : true)?_c('div',{staticClass:"pointer-events-none right-0 flex items-center"},[_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 z-10 mt-1 w-full rounded-md bg-white shadow-lg"},[_c('ul',{staticClass:"focus:outline-none max-h-60 overflow-auto rounded-md py-1 text-base ring-1 ring-gray-900 ring-opacity-5 sm:text-sm",attrs:{"tabindex":"-1","role":"listbox","aria-labelledby":"listbox-label"}},[(_vm.addAction)?_c('li',{staticClass:"relative flex cursor-pointer select-none py-2 pl-3 pr-9 text-indigo-500 hover:bg-indigo-100 hover:text-indigo-700",on:{"mousedown":function($event){return _vm.actionEvent($event)}}},[_c('c-icon',{staticClass:"mr-1 h-5 w-5 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:"relative cursor-pointer select-none py-2 pl-3 pr-9 text-gray-900 hover:bg-indigo-700 hover:text-white",class:option.isDisabled ? 'pointer-events-none opacity-50' : '',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:"list-options block break-words font-normal",class:_vm.showImage && option.image ? 'ml-3' : ''},[_vm._v(_vm._s(option[_vm.renderOptionName])+" ")])],1),_c('span',{staticClass:"absolute inset-y-0 right-0 flex items-center pr-4 text-indigo-600"},[_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-left text-sm 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)])}
|
|
87868
|
+
var CSelectvue_type_template_id_6851a701_staticRenderFns = []
|
|
87869
87869
|
|
|
87870
87870
|
|
|
87871
|
-
// CONCATENATED MODULE: ./src/components/CSelect/CSelect.vue?vue&type=template&id=
|
|
87871
|
+
// CONCATENATED MODULE: ./src/components/CSelect/CSelect.vue?vue&type=template&id=6851a701&
|
|
87872
87872
|
|
|
87873
87873
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 5 modules
|
|
87874
87874
|
var toConsumableArray = __webpack_require__("2909");
|
|
@@ -88081,6 +88081,10 @@ var lodash = __webpack_require__("2ef0");
|
|
|
88081
88081
|
isValidate: {
|
|
88082
88082
|
type: Boolean
|
|
88083
88083
|
},
|
|
88084
|
+
// will truncate the text in input field
|
|
88085
|
+
selectedOptionStyles: {
|
|
88086
|
+
type: String
|
|
88087
|
+
},
|
|
88084
88088
|
// validation error message
|
|
88085
88089
|
errorMessage: {
|
|
88086
88090
|
type: String
|
|
@@ -88186,8 +88190,8 @@ var lodash = __webpack_require__("2ef0");
|
|
|
88186
88190
|
|
|
88187
88191
|
var CSelect_component = normalizeComponent(
|
|
88188
88192
|
CSelect_CSelectvue_type_script_lang_js_,
|
|
88189
|
-
|
|
88190
|
-
|
|
88193
|
+
CSelectvue_type_template_id_6851a701_render,
|
|
88194
|
+
CSelectvue_type_template_id_6851a701_staticRenderFns,
|
|
88191
88195
|
false,
|
|
88192
88196
|
null,
|
|
88193
88197
|
null,
|