classcard-ui 0.2.192 → 0.2.193
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 +12 -6
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +12 -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/CUpload/CUpload.vue +5 -0
- package/src/stories/CUpload.stories.js +1 -0
package/dist/classcard-ui.umd.js
CHANGED
|
@@ -66848,17 +66848,18 @@ var CTimeline_component = normalizeComponent(
|
|
|
66848
66848
|
// CONCATENATED MODULE: ./src/components/CTimeline/index.js
|
|
66849
66849
|
|
|
66850
66850
|
/* harmony default export */ var components_CTimeline = (CTimeline);
|
|
66851
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"583a59b4-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/CUpload/CUpload.vue?vue&type=template&id=
|
|
66852
|
-
var
|
|
66853
|
-
var
|
|
66851
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"583a59b4-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/CUpload/CUpload.vue?vue&type=template&id=158a67b4&
|
|
66852
|
+
var CUploadvue_type_template_id_158a67b4_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.type === 'default')?_c('div',[_vm._t("default"),_c('div',{staticClass:"flex justify-between"},[_c('label',{staticClass:"block text-sm font-medium text-gray-900"},[_vm._v(" "+_vm._s(_vm.label)+" ")]),(_vm.hint)?_c('span',{staticClass:"text-sm text-gray-500"},[_vm._v(_vm._s(_vm.hint))]):_vm._e()]),_c('div',{staticClass:"w-full mt-2 flex justify-center px-6 py-14 border-2 rounded-md",class:_vm.errorClasses},[_c('div',{staticClass:"space-y-1 text-center"},[_c('div',{staticClass:"flex text-sm text-gray-600"},[_c('c-icon',{staticClass:"h-5 w-5 text-indigo-600",attrs:{"type":"solid","name":"arrow-up"}}),_vm._m(0)],1)])])],2):_vm._e(),(_vm.type === 'filestack')?_c('div',{class:_vm.filestackClasses,attrs:{"id":"filestack-uploader"}}):_vm._e(),(!_vm.isValidate)?_c('p',{staticClass:"mt-2 text-sm text-red-600"},[_vm._v(" "+_vm._s(_vm.errorMessage)+" ")]):_vm._e()])}
|
|
66853
|
+
var CUploadvue_type_template_id_158a67b4_staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{staticClass:"relative cursor-pointer bg-white rounded-md font-medium text-indigo-600 hover:text-indigo-500 focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-indigo-500 ml-1"},[_c('span',[_vm._v("Upload")]),_c('input',{staticClass:"sr-only",attrs:{"type":"file"}})])}]
|
|
66854
66854
|
|
|
66855
66855
|
|
|
66856
|
-
// CONCATENATED MODULE: ./src/components/CUpload/CUpload.vue?vue&type=template&id=
|
|
66856
|
+
// CONCATENATED MODULE: ./src/components/CUpload/CUpload.vue?vue&type=template&id=158a67b4&
|
|
66857
66857
|
|
|
66858
66858
|
// EXTERNAL MODULE: ./node_modules/filestack-js/build/browser/filestack.esm.js
|
|
66859
66859
|
var filestack_esm = __webpack_require__("c299");
|
|
66860
66860
|
|
|
66861
66861
|
// 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/CUpload/CUpload.vue?vue&type=script&lang=js&
|
|
66862
|
+
|
|
66862
66863
|
//
|
|
66863
66864
|
//
|
|
66864
66865
|
//
|
|
@@ -66935,6 +66936,10 @@ var filestack_esm = __webpack_require__("c299");
|
|
|
66935
66936
|
filestackClasses: {
|
|
66936
66937
|
type: String,
|
|
66937
66938
|
default: "w-96 h-96"
|
|
66939
|
+
},
|
|
66940
|
+
maxFiles: {
|
|
66941
|
+
type: Number,
|
|
66942
|
+
default: 1
|
|
66938
66943
|
}
|
|
66939
66944
|
},
|
|
66940
66945
|
methods: {
|
|
@@ -66946,6 +66951,7 @@ var filestack_esm = __webpack_require__("c299");
|
|
|
66946
66951
|
displayMode: "inline",
|
|
66947
66952
|
container: "#filestack-uploader",
|
|
66948
66953
|
uploadInBackground: false,
|
|
66954
|
+
maxFiles: this.maxFiles,
|
|
66949
66955
|
onUploadDone: function onUploadDone(res) {
|
|
66950
66956
|
return _this.$emit("filestack-uploaded", res);
|
|
66951
66957
|
}
|
|
@@ -66980,8 +66986,8 @@ var filestack_esm = __webpack_require__("c299");
|
|
|
66980
66986
|
|
|
66981
66987
|
var CUpload_component = normalizeComponent(
|
|
66982
66988
|
CUpload_CUploadvue_type_script_lang_js_,
|
|
66983
|
-
|
|
66984
|
-
|
|
66989
|
+
CUploadvue_type_template_id_158a67b4_render,
|
|
66990
|
+
CUploadvue_type_template_id_158a67b4_staticRenderFns,
|
|
66985
66991
|
false,
|
|
66986
66992
|
null,
|
|
66987
66993
|
null,
|