classcard-ui 0.2.183 → 0.2.184
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.umd.js
CHANGED
|
@@ -60275,12 +60275,12 @@ var CAnchorTabs_component = normalizeComponent(
|
|
|
60275
60275
|
// CONCATENATED MODULE: ./src/components/CAnchorTabs/index.js
|
|
60276
60276
|
|
|
60277
60277
|
/* harmony default export */ var components_CAnchorTabs = (CAnchorTabs);
|
|
60278
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"fb2328fa-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/CAnchorTag/CAnchorTag.vue?vue&type=template&id=
|
|
60279
|
-
var
|
|
60280
|
-
var
|
|
60278
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"fb2328fa-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/CAnchorTag/CAnchorTag.vue?vue&type=template&id=dab10ffe&
|
|
60279
|
+
var CAnchorTagvue_type_template_id_dab10ffe_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a',{staticClass:"flex cursor-pointer text-sm hover:underline",class:(_vm.classes + " " + _vm.textColor),attrs:{"href":_vm.href},on:{"click":function($event){$event.preventDefault();return _vm.action.apply(null, arguments)}}},[(_vm.icon)?_c('c-icon',{class:_vm.icon.class,attrs:{"type":_vm.icon.type,"name":_vm.icon.name}}):_vm._e(),_vm._v(" "+_vm._s(_vm.label)+" ")],1)}
|
|
60280
|
+
var CAnchorTagvue_type_template_id_dab10ffe_staticRenderFns = []
|
|
60281
60281
|
|
|
60282
60282
|
|
|
60283
|
-
// CONCATENATED MODULE: ./src/components/CAnchorTag/CAnchorTag.vue?vue&type=template&id=
|
|
60283
|
+
// CONCATENATED MODULE: ./src/components/CAnchorTag/CAnchorTag.vue?vue&type=template&id=dab10ffe&
|
|
60284
60284
|
|
|
60285
60285
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/CAnchorTag/CAnchorTag.vue?vue&type=script&lang=js&
|
|
60286
60286
|
//
|
|
@@ -60293,6 +60293,11 @@ var CAnchorTagvue_type_template_id_f8e89a3c_staticRenderFns = []
|
|
|
60293
60293
|
//
|
|
60294
60294
|
//
|
|
60295
60295
|
//
|
|
60296
|
+
//
|
|
60297
|
+
//
|
|
60298
|
+
//
|
|
60299
|
+
//
|
|
60300
|
+
//
|
|
60296
60301
|
|
|
60297
60302
|
/* harmony default export */ var CAnchorTagvue_type_script_lang_js_ = ({
|
|
60298
60303
|
name: "CAnchorTag",
|
|
@@ -60314,6 +60319,19 @@ var CAnchorTagvue_type_template_id_f8e89a3c_staticRenderFns = []
|
|
|
60314
60319
|
},
|
|
60315
60320
|
action: {
|
|
60316
60321
|
type: Function
|
|
60322
|
+
},
|
|
60323
|
+
color: {
|
|
60324
|
+
type: String,
|
|
60325
|
+
default: "blue"
|
|
60326
|
+
}
|
|
60327
|
+
},
|
|
60328
|
+
computed: {
|
|
60329
|
+
textColor: function textColor() {
|
|
60330
|
+
if (this.color === "red") {
|
|
60331
|
+
return "text-red-800";
|
|
60332
|
+
} else {
|
|
60333
|
+
return "text-indigo-800";
|
|
60334
|
+
}
|
|
60317
60335
|
}
|
|
60318
60336
|
}
|
|
60319
60337
|
});
|
|
@@ -60329,8 +60347,8 @@ var CAnchorTagvue_type_template_id_f8e89a3c_staticRenderFns = []
|
|
|
60329
60347
|
|
|
60330
60348
|
var CAnchorTag_component = normalizeComponent(
|
|
60331
60349
|
CAnchorTag_CAnchorTagvue_type_script_lang_js_,
|
|
60332
|
-
|
|
60333
|
-
|
|
60350
|
+
CAnchorTagvue_type_template_id_dab10ffe_render,
|
|
60351
|
+
CAnchorTagvue_type_template_id_dab10ffe_staticRenderFns,
|
|
60334
60352
|
false,
|
|
60335
60353
|
null,
|
|
60336
60354
|
null,
|
|
@@ -61008,12 +61026,12 @@ var CCheckbox_component = normalizeComponent(
|
|
|
61008
61026
|
)
|
|
61009
61027
|
|
|
61010
61028
|
/* harmony default export */ var CCheckbox = (CCheckbox_component.exports);
|
|
61011
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"fb2328fa-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=
|
|
61012
|
-
var
|
|
61013
|
-
var
|
|
61029
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"fb2328fa-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=16f04270&
|
|
61030
|
+
var CSelectvue_type_template_id_16f04270_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('button',{staticClass:"relative w-full rounded-md pl-2 pr-10 py-2 text-left cursor-pointer focus:outline-none sm:text-sm disabled:opacity-50",class:_vm.classes,attrs:{"type":"button","aria-haspopup":"listbox","aria-expanded":"true","aria-labelledby":"listbox-label","disabled":_vm.isDisabled},on:{"click":function($event){_vm.toggleDropdown = !_vm.toggleDropdown},"focus":function($event){_vm.type == 'tertiary' ? (_vm.showFocus = true) : ''},"blur":function($event){return _vm.close()}}},[_c('span',{staticClass:"flex items-center"},[(_vm.showImage)?_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)?_c('c-icon',{class:_vm.icon.class,attrs:{"name":_vm.icon.name,"type":_vm.icon.type}}):_vm._e(),_c('span',{staticClass:"block truncate",class:_vm.showImage ? 'ml-3' : ''},[_vm._v(" "+_vm._s(_vm.selectedValue ? _vm.selectedValue : _vm.placeholder)+" ")])],1),(_vm.type == 'tertiary' ? _vm.showFocus : true)?_c('span',{staticClass:"absolute inset-y-0 right-0 flex items-center pr-2 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.options),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-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)])}
|
|
61031
|
+
var CSelectvue_type_template_id_16f04270_staticRenderFns = []
|
|
61014
61032
|
|
|
61015
61033
|
|
|
61016
|
-
// CONCATENATED MODULE: ./src/components/CSelect/CSelect.vue?vue&type=template&id=
|
|
61034
|
+
// CONCATENATED MODULE: ./src/components/CSelect/CSelect.vue?vue&type=template&id=16f04270&
|
|
61017
61035
|
|
|
61018
61036
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./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=script&lang=js&
|
|
61019
61037
|
//
|
|
@@ -61213,7 +61231,7 @@ var CSelectvue_type_template_id_0cb043b5_staticRenderFns = []
|
|
|
61213
61231
|
data: function data() {
|
|
61214
61232
|
return {
|
|
61215
61233
|
toggleDropdown: false,
|
|
61216
|
-
selectedValue: this.value
|
|
61234
|
+
selectedValue: this.value !== null && this.value.option ? this.value.option : this.value,
|
|
61217
61235
|
showSelectedValue: false,
|
|
61218
61236
|
showFocus: false
|
|
61219
61237
|
};
|
|
@@ -61243,7 +61261,7 @@ var CSelectvue_type_template_id_0cb043b5_staticRenderFns = []
|
|
|
61243
61261
|
},
|
|
61244
61262
|
watch: {
|
|
61245
61263
|
value: function value() {
|
|
61246
|
-
this.selectedValue = this.value.option ? this.value.option : this.value;
|
|
61264
|
+
this.selectedValue = this.value !== null && this.value.option ? this.value.option : this.value;
|
|
61247
61265
|
}
|
|
61248
61266
|
}
|
|
61249
61267
|
});
|
|
@@ -61259,8 +61277,8 @@ var CSelectvue_type_template_id_0cb043b5_staticRenderFns = []
|
|
|
61259
61277
|
|
|
61260
61278
|
var CSelect_component = normalizeComponent(
|
|
61261
61279
|
CSelect_CSelectvue_type_script_lang_js_,
|
|
61262
|
-
|
|
61263
|
-
|
|
61280
|
+
CSelectvue_type_template_id_16f04270_render,
|
|
61281
|
+
CSelectvue_type_template_id_16f04270_staticRenderFns,
|
|
61264
61282
|
false,
|
|
61265
61283
|
null,
|
|
61266
61284
|
null,
|