@bimdata/design-system 1.2.0-rc.11 → 1.2.0-rc.16
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/css/design-system.css +4 -4
- package/dist/js/BIMDataComponents/BIMDataDropdownList.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataIcon.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataNavigation.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataPaginatedList.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataSearch.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataSelect.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataTable.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataTabs.js +1 -1
- package/dist/js/BIMDataComponents/BIMDataTextarea.js +1 -1
- package/dist/js/BIMDataComponents/index.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataDropdownList.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataIcon.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataNavigation.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataPaginatedList.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataSearch.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataSelect.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataTable.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataTabs.js +1 -1
- package/dist/js/BIMDataComponents/vue3/BIMDataTextarea.js +1 -1
- package/dist/js/BIMDataSmartComponents/BIMDataFileManager.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={directives:{focus:{inserted:function(e,{value:r}){r&&e.focus()}}},model:{prop:"modelValue",event:"update:modelValue"},props:{name:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:null},autofocus:{type:Boolean,default:!1},placeholder:{type:String,default:null},label:{type:String,default:""},readonly:{type:Boolean,default:!1},width:{type:[Number,String],default:"150px"},height:{type:[Number,String],default:"32px"},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},success:{type:Boolean,default:!1},errorMessage:{type:String,default:""},successMessage:{type:String,default:""}},emits:["update:modelValue"],created(){this.$watch(()=>this.success&&this.error,e=>{if(e)throw"Textarea state cannot be both success and error."})},methods:{focus(){this.$refs.input&&this.$refs.input.focus()}}};function r(e,r,a,t,o,i,s,l,n,c){"boolean"!=typeof s&&(n=l,l=s,s=!1);const d="function"==typeof a?a.options:a;let b;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,o&&(d.functional=!0)),t&&(d._scopeId=t),i?(b=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,n(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},d._ssrRegister=b):r&&(b=s?function(e){r.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){r.call(this,l(e))}),b)if(d.functional){const e=d.render;d.render=function(r,a){return b.call(a),e(r,a)}}else{const e=d.beforeCreate;d.beforeCreate=e?[].concat(e,b):[b]}return a}const a="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function t(e){return(e,r)=>function(e,r){const t=a?r.media||"default":e,s=i[t]||(i[t]={ids:new Set,styles:[]});if(!s.ids.has(e)){s.ids.add(e);let a=r.source;if(r.map&&(a+="\n/*# sourceURL="+r.map.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r.map))))+" */"),s.element||(s.element=document.createElement("style"),s.element.type="text/css",r.media&&s.element.setAttribute("media",r.media),void 0===o&&(o=document.head||document.getElementsByTagName("head")[0]),o.appendChild(s.element)),"styleSheet"in s.element)s.styles.push(a),s.element.styleSheet.cssText=s.styles.filter(Boolean).join("\n");else{const e=s.ids.size-1,r=document.createTextNode(a),t=s.element.childNodes;t[e]&&s.element.removeChild(t[e]),t.length?s.element.insertBefore(r,t[e]):s.element.appendChild(r)}}}(e,r)}let o;const i={};const s=r({render:function(){var e=this,r=e.$createElement,a=e._self._c||r;return a("div",{staticClass:"bimdata-textarea",class:{"not-empty":null!==e.modelValue&&""!==e.modelValue||null!==e.placeholder,error:e.error,success:e.success},style:{"min-width":e.width,"min-height":e.height}},[a("textarea",{directives:[{name:"focus",rawName:"v-focus",value:e.autofocus,expression:"autofocus"}],attrs:{name:e.name,id:e.name,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly},domProps:{value:e.modelValue},on:{input:
|
|
1
|
+
var e={directives:{focus:{inserted:function(e,{value:r}){r&&e.focus()}}},model:{prop:"modelValue",event:"update:modelValue"},props:{name:{type:[String,Number],default:""},resizable:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:null},autofocus:{type:Boolean,default:!1},placeholder:{type:String,default:null},label:{type:String,default:""},readonly:{type:Boolean,default:!1},width:{type:[Number,String],default:"150px"},height:{type:[Number,String],default:"32px"},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},success:{type:Boolean,default:!1},errorMessage:{type:String,default:""},successMessage:{type:String,default:""},fitContent:{type:Boolean,default:!1}},emits:["update:modelValue"],created(){this.$watch(()=>this.success&&this.error,e=>{if(e)throw new Error("Textarea state cannot be both success and error.")})},mounted(){this.fitContent&&this.handleFitContent()},methods:{focus(){this.$refs.input&&this.$refs.input.focus()},handleFitContent(){this.$refs.textarea.style.height="auto",this.$refs.textarea.style.height=this.$refs.textarea.scrollHeight+"px"},onInput(e){this.$emit("update:modelValue",e.currentTarget.value),this.fitContent&&this.handleFitContent()}}};function r(e,r,a,t,o,i,s,l,n,c){"boolean"!=typeof s&&(n=l,l=s,s=!1);const d="function"==typeof a?a.options:a;let b;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,o&&(d.functional=!0)),t&&(d._scopeId=t),i?(b=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,n(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},d._ssrRegister=b):r&&(b=s?function(e){r.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){r.call(this,l(e))}),b)if(d.functional){const e=d.render;d.render=function(r,a){return b.call(a),e(r,a)}}else{const e=d.beforeCreate;d.beforeCreate=e?[].concat(e,b):[b]}return a}const a="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function t(e){return(e,r)=>function(e,r){const t=a?r.media||"default":e,s=i[t]||(i[t]={ids:new Set,styles:[]});if(!s.ids.has(e)){s.ids.add(e);let a=r.source;if(r.map&&(a+="\n/*# sourceURL="+r.map.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r.map))))+" */"),s.element||(s.element=document.createElement("style"),s.element.type="text/css",r.media&&s.element.setAttribute("media",r.media),void 0===o&&(o=document.head||document.getElementsByTagName("head")[0]),o.appendChild(s.element)),"styleSheet"in s.element)s.styles.push(a),s.element.styleSheet.cssText=s.styles.filter(Boolean).join("\n");else{const e=s.ids.size-1,r=document.createTextNode(a),t=s.element.childNodes;t[e]&&s.element.removeChild(t[e]),t.length?s.element.insertBefore(r,t[e]):s.element.appendChild(r)}}}(e,r)}let o;const i={};const s=r({render:function(){var e=this,r=e.$createElement,a=e._self._c||r;return a("div",{staticClass:"bimdata-textarea",class:{"not-empty":null!==e.modelValue&&""!==e.modelValue||null!==e.placeholder,error:e.error,success:e.success},style:{"min-width":e.width,"min-height":e.height}},[a("textarea",e._b({directives:[{name:"focus",rawName:"v-focus",value:e.autofocus,expression:"autofocus"}],ref:"textarea",style:e.resizable?"":"resize: none;",attrs:{name:e.name,id:e.name,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly},domProps:{value:e.modelValue},on:{input:e.onInput}},"textarea",e.$attrs,!1)),e._v(" "),a("label",{attrs:{for:e.name}},[e._v(e._s(e.label))]),e._v(" "),a("span",{staticClass:"bar"}),e._v(" "),e.error?a("span",{staticClass:"error"},[e._v(e._s(e.errorMessage))]):e._e(),e._v(" "),e.success?a("span",{staticClass:"success"},[e._v(e._s(e.successMessage))]):e._e()])},staticRenderFns:[]},(function(e){e&&(e("data-v-46be5b10_0",{source:'html[data-v-46be5b10]{--color-primary-lighter:rgba(248, 249, 250, 1);--color-primary-light:rgba(67, 78, 105, 1);--color-primary:rgba(47, 55, 74, 1);--color-primary-dark:rgba(27, 32, 43, 1);--color-secondary-lighter:rgba(255, 252, 242, 1);--color-secondary-light:rgba(250, 212, 94, 1);--color-secondary:rgba(249, 199, 44, 1);--color-secondary-dark:rgba(235, 180, 7, 1);--color-white:rgba(255, 255, 255, 1);--color-silver-light:rgba(247, 247, 247, 1);--color-silver:rgba(216, 216, 216, 1);--color-silver-dark:rgba(189, 189, 189, 1);--color-granite-light:rgba(122, 122, 122, 1);--color-granite:rgba(96, 96, 96, 1);--color-black:rgba(0, 0, 0, 1);--color-text:rgba(47, 55, 74, 1);--color-black-100:rgba(0, 0, 0, 0.1);--color-success-lighter:rgba(226, 255, 239, 1);--color-success-light:rgba(0, 200, 92, 1);--color-success:rgba(0, 175, 80, 1);--color-success-dark:rgba(0, 149, 68, 1);--color-warning-lighter:rgba(255, 233, 204, 1);--color-warning-light:rgba(255, 167, 51, 1);--color-warning:rgba(255, 145, 0, 1);--color-warning-dark:rgba(204, 116, 0, 1);--color-high-lighter:rgba(255, 237, 234, 1);--color-high-light:rgba(255, 104, 81, 1);--color-high:rgba(255, 61, 30, 1);--color-high-dark:rgba(234, 31, 0, 1);--font-size:14px;--box-shadow:0px 2px 10px rgba(0, 0, 0, 0.1);--border-radius-tiny:3px;--spacing-unit:12px;--size-btn-options:45px;--primary-font:"roboto",sans-serif}html[data-v-46be5b10]{--color-primary-lighter:rgba(248, 249, 250, 1);--color-primary-light:rgba(67, 78, 105, 1);--color-primary:rgba(47, 55, 74, 1);--color-primary-dark:rgba(27, 32, 43, 1);--color-secondary-lighter:rgba(255, 252, 242, 1);--color-secondary-light:rgba(250, 212, 94, 1);--color-secondary:rgba(249, 199, 44, 1);--color-secondary-dark:rgba(235, 180, 7, 1);--color-white:rgba(255, 255, 255, 1);--color-silver-light:rgba(247, 247, 247, 1);--color-silver:rgba(216, 216, 216, 1);--color-silver-dark:rgba(189, 189, 189, 1);--color-granite-light:rgba(122, 122, 122, 1);--color-granite:rgba(96, 96, 96, 1);--color-black:rgba(0, 0, 0, 1);--color-text:rgba(47, 55, 74, 1);--color-black-100:rgba(0, 0, 0, 0.1);--color-success-lighter:rgba(226, 255, 239, 1);--color-success-light:rgba(0, 200, 92, 1);--color-success:rgba(0, 175, 80, 1);--color-success-dark:rgba(0, 149, 68, 1);--color-warning-lighter:rgba(255, 233, 204, 1);--color-warning-light:rgba(255, 167, 51, 1);--color-warning:rgba(255, 145, 0, 1);--color-warning-dark:rgba(204, 116, 0, 1);--color-high-lighter:rgba(255, 237, 234, 1);--color-high-light:rgba(255, 104, 81, 1);--color-high:rgba(255, 61, 30, 1);--color-high-dark:rgba(234, 31, 0, 1);--font-size:14px;--box-shadow:0px 2px 10px rgba(0, 0, 0, 0.1);--border-radius-tiny:3px;--spacing-unit:12px;--size-btn-options:45px;--primary-font:"roboto",sans-serif}.text-left[data-v-46be5b10]{text-align:left}.text-center[data-v-46be5b10]{text-align:center}.text-right[data-v-46be5b10]{text-align:right}.bimdata-link[data-v-46be5b10]{color:var(--color-primary);border-bottom:1px solid var(--color-primary);font-weight:700}.primary-font[data-v-46be5b10]{font-family:roboto,sans-serif}',map:void 0,media:void 0}),e("data-v-46be5b10_1",{source:'textarea:-webkit-autofill{box-shadow:0 0 0 1000px var(--color-white) inset}.bimdata-textarea{margin:var(--spacing-unit) 0;position:relative;inline-size:min-content;font-family:var(--primary-font);font-size:1em}.bimdata-textarea textarea{padding:0;width:100%;min-width:inherit;max-width:100%;min-height:inherit;display:flex;margin:0;border:none}.bimdata-textarea textarea:disabled{background-color:transparent}.bimdata-textarea textarea:disabled~label{color:var(--color-silver-dark);cursor:default}.bimdata-textarea textarea:focus{outline:0}.bimdata-textarea textarea:focus~label{top:-26px;font-size:.7142857143em}.bimdata-textarea textarea:focus~.bar:after{width:100%;transition:transform .2s cubic-bezier(.55,0,.55,.2);transform:scaleX(1)}.bimdata-textarea.not-empty label{top:-26px;color:var(--color-primary);font-size:.7142857143em}.bimdata-textarea label{position:absolute;top:0;left:0;font-size:.8571428571em;transform:translateY(8px);transition:.2s ease all;color:var(--color-granite-light);cursor:pointer}.bimdata-textarea .bar{width:100%;height:1px;display:block;background:var(--color-silver)}.bimdata-textarea .bar::after{width:0;height:2px;content:"";display:block;position:absolute;background-color:var(--color-primary);transform:scaleX(0)}.bimdata-textarea .error{color:var(--color-high);font-size:.7857142857em}.bimdata-textarea .success{color:var(--color-success);font-size:.7857142857em}.bimdata-textarea.error label{color:var(--color-high)}.bimdata-textarea.error .bar{background-color:var(--color-high)}.bimdata-textarea.error .bar::after,.bimdata-textarea.error .bar::before{background-color:var(--color-high)}.bimdata-textarea.success label{color:var(--color-success)}.bimdata-textarea.success .bar{background-color:var(--color-success)}.bimdata-textarea.success .bar::after,.bimdata-textarea.success .bar::before{background-color:var(--color-success)}',map:void 0,media:void 0}))}),e,"data-v-46be5b10",!1,void 0,!1,t,void 0,void 0);export{s as default};
|