Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions css/NcDateTimePicker-DRVX_HEr.chunk.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/logreader-main.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/* extracted by css-entry-points-plugin */
@import './main-D4dJjpgr.chunk.css';
@import './main-DSR2r8Ux.chunk.css';
16 changes: 16 additions & 0 deletions css/main-DSR2r8Ux.chunk.css

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*! third party licenses: js/vendor.LICENSE.txt */
import{c as gt,n as Ct,d as kt,u as St,b as Ft,e as At,f as Ot,h as Et,l as Mt,t as xt,N as jt,i as Lt,j as Pt,m as Bt,k as Dt,o as Nt,p as Rt,r as Tt}from"./logreader-main.mjs";import{d as mt,C as _t,a as wt}from"./colors-D3xlq-id-BUp7eygq.chunk.mjs";var bt={exports:{}},Ht=bt.exports,yt;function zt(){return yt||(yt=1,function(z,X){(function(a,o){z.exports=o()})(typeof self<"u"?self:Ht,function(){return function(a){function o(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return a[r].call(i.exports,i,i.exports,o),i.l=!0,i.exports}var e={};return o.m=a,o.c=e,o.d=function(r,i,s){o.o(r,i)||Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:s})},o.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return o.d(i,"a",i),i},o.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},o.p="",o(o.s=60)}([function(a,o){function e(i,s){var t=i[1]||"",f=i[3];if(!f)return t;if(s&&typeof btoa=="function"){var n=r(f);return[t].concat(f.sources.map(function(l){return"/*# sourceURL="+f.sourceRoot+l+" */"})).concat([n]).join(`
import{c as gt,n as Ct,d as kt,u as St,b as Ft,e as At,f as Ot,h as Et,l as Mt,t as xt,N as jt,i as Lt,j as Pt,m as Bt,k as Dt,o as Nt,p as Rt,r as Tt}from"./logreader-main.mjs";import{d as mt,C as _t,a as wt}from"./colors-BwQwSDJi-BUp7eygq.chunk.mjs";var bt={exports:{}},Ht=bt.exports,yt;function zt(){return yt||(yt=1,function(z,X){(function(a,o){z.exports=o()})(typeof self<"u"?self:Ht,function(){return function(a){function o(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return a[r].call(i.exports,i,i.exports,o),i.l=!0,i.exports}var e={};return o.m=a,o.c=e,o.d=function(r,i,s){o.o(r,i)||Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:s})},o.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return o.d(i,"a",i),i},o.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},o.p="",o(o.s=60)}([function(a,o){function e(i,s){var t=i[1]||"",f=i[3];if(!f)return t;if(s&&typeof btoa=="function"){var n=r(f);return[t].concat(f.sources.map(function(l){return"/*# sourceURL="+f.sourceRoot+l+" */"})).concat([n]).join(`
`)}return[t].join(`
`)}function r(i){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"}a.exports=function(i){var s=[];return s.toString=function(){return this.map(function(t){var f=e(t,i);return t[2]?"@media "+t[2]+"{"+f+"}":f}).join("")},s.i=function(t,f){typeof t=="string"&&(t=[[null,t,""]]);for(var n={},l=0;l<this.length;l++){var p=this[l][0];typeof p=="number"&&(n[p]=!0)}for(l=0;l<t.length;l++){var d=t[l];typeof d[0]=="number"&&n[d[0]]||(f&&!d[2]?d[2]=f:f&&(d[2]="("+d[2]+") and ("+f+")"),s.push(d))}},s}},function(a,o,e){function r(A){for(var j=0;j<A.length;j++){var L=A[j],O=p[L.id];if(O){O.refs++;for(var g=0;g<O.parts.length;g++)O.parts[g](L.parts[g]);for(;g<L.parts.length;g++)O.parts.push(s(L.parts[g]));O.parts.length>L.parts.length&&(O.parts.length=L.parts.length)}else{for(var M=[],g=0;g<L.parts.length;g++)M.push(s(L.parts[g]));p[L.id]={id:L.id,refs:1,parts:M}}}}function i(){var A=document.createElement("style");return A.type="text/css",d.appendChild(A),A}function s(A){var j,L,O=document.querySelector("style["+F+'~="'+A.id+'"]');if(O){if(v)return y;O.parentNode.removeChild(O)}if(T){var g=_++;O=b||(b=i()),j=t.bind(null,O,g,!1),L=t.bind(null,O,g,!0)}else O=i(),j=f.bind(null,O),L=function(){O.parentNode.removeChild(O)};return j(A),function(M){if(M){if(M.css===A.css&&M.media===A.media&&M.sourceMap===A.sourceMap)return;j(A=M)}else L()}}function t(A,j,L,O){var g=L?"":O.css;if(A.styleSheet)A.styleSheet.cssText=J(j,g);else{var M=document.createTextNode(g),B=A.childNodes;B[j]&&A.removeChild(B[j]),B.length?A.insertBefore(M,B[j]):A.appendChild(M)}}function f(A,j){var L=j.css,O=j.media,g=j.sourceMap;if(O&&A.setAttribute("media",O),w.ssrId&&A.setAttribute(F,j.id),g&&(L+=`
/*# sourceURL=`+g.sources[0]+" */",L+=`
Expand Down Expand Up @@ -861,4 +861,4 @@ import{c as gt,n as Ct,d as kt,u as St,b as Ft,e as At,f as Ot,h as Et,l as Mt,t
right: 12px;
}
`,""])},function(a,o,e){var r=function(){var t=this,f=t.$createElement,n=t._self._c||f;return n("div",{staticClass:"vc-twitter",class:{"vc-twitter-hide-triangle ":t.triangle==="hide","vc-twitter-top-left-triangle ":t.triangle==="top-left","vc-twitter-top-right-triangle ":t.triangle==="top-right"},style:{width:typeof t.width=="number"?t.width+"px":t.width}},[n("div",{staticClass:"vc-twitter-triangle-shadow"}),t._v(" "),n("div",{staticClass:"vc-twitter-triangle"}),t._v(" "),n("div",{staticClass:"vc-twitter-body"},[t._l(t.defaultColors,function(l,p){return n("span",{key:p,staticClass:"vc-twitter-swatch",style:{background:l,boxShadow:"0 0 4px "+(t.equal(l)?l:"transparent")},on:{click:function(d){return t.handlerClick(l)}}})}),t._v(" "),n("div",{staticClass:"vc-twitter-hash"},[t._v("#")]),t._v(" "),n("editable-input",{attrs:{label:"#",value:t.hex},on:{change:t.inputChange}}),t._v(" "),n("div",{staticClass:"vc-twitter-clear"})],2)])},i=[];r._withStripped=!0;var s={render:r,staticRenderFns:i};o.a=s}])})}(bt)),bt.exports}var $t=zt();Tt();const It={model:{event:"update:modelValue",prop:"modelValue"}},Ut=kt({...It,__name:"NcColorPicker",props:{advancedFields:{type:Boolean},clearable:{type:Boolean},container:{default:"body"},modelValue:{default:""},value:{default:void 0},open:{type:Boolean},palette:{default:()=>[]},paletteOnly:{type:Boolean}},emits:["submit","close","update:modelValue","update:value"],setup(z,{emit:X}){const a=z,o=St("value","update:value",!0),e=Ft(a,"open",X,{passive:!0,eventName:"update:open"}),r=/^#([a-f0-9]{3}|[a-f0-9]{6})$/i,i=At(),s=Ot(!1),t=Et(()=>{let _=a.palette;for(const v of _)if(typeof v=="string"&&!v.match(r)||typeof v=="object"&&!v.color?.match(r)){Mt.error("[NcColorPicker] Invalid palette passed",{color:v}),_=[];break}return _.length===0&&(_=a.clearable?[...mt,_t,wt]:[...mt]),_.map(v=>({color:typeof v=="object"?v.color:v,name:typeof v=="object"&&v.name?v.name:xt("A color with a HEX value {hex}",{hex:typeof v=="string"?v:v.color})}))});function f(_){X("submit",o.value),_(),s.value=!1}function n(_){_=typeof _=="string"?_:_.color,a.clearable&&o.value===_?o.value=void 0:o.value=_}function l(_){o.value=_.hex}function p(_){return d(_)>.5?_t.color:wt.color}function d(_){const[v,y,w]=b(_);return(.2126*v+.7152*y+.0722*w)/255}function b(_){const v=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(_);return v?[parseInt(v[1],16),parseInt(v[2],16),parseInt(v[3],16)]:[0,0,0]}return{__sfc:!0,props:a,emit:X,currentColor:o,modelOpen:e,HEX_REGEX:r,id:i,advanced:s,normalizedPalette:t,handleConfirm:f,toggleColor:n,pickCustomColor:l,getContrastColor:p,calculateLuma:d,hexToRGB:b,mdiArrowLeft:Rt,mdiCheck:Nt,mdiCloseCircleOutline:Dt,mdiDotsHorizontal:Bt,Chrome:$t.Chrome,NcButton:Pt,NcIconSvgWrapper:Lt,NcPopover:jt,t:xt}}});var Gt=function(){var z=this,X=z._self._c,a=z._self._setupProxy;return X(a.NcPopover,z._g(z._b({attrs:{shown:a.modelOpen,container:z.container,"popup-role":"dialog"},on:{"update:shown":function(o){a.modelOpen=o},"apply-hide":function(o){return a.emit("close")}},scopedSlots:z._u([{key:"trigger",fn:function(o){return[z._t("default",null,null,o)]}},{key:"default",fn:function(o){return[X("div",{staticClass:"color-picker",class:{"color-picker--advanced-fields":a.advanced&&z.advancedFields,"color-picker--clearable":z.clearable},attrs:{role:"dialog","aria-modal":"true","aria-label":a.t("Color picker")}},[X("Transition",{attrs:{name:"slide",mode:"out-in"}},[a.advanced?X(a.Chrome,{staticClass:"color-picker__advanced",attrs:{"disable-alpha":!0,"disable-fields":!z.advancedFields,value:a.currentColor??"#000000"},on:{input:a.pickCustomColor}}):X("div",{staticClass:"color-picker__simple"},[z._l(a.normalizedPalette,function({color:e,name:r},i){return X("label",{key:i,staticClass:"color-picker__simple-color-circle",class:{"color-picker__simple-color-circle--active":e===a.currentColor},style:{backgroundColor:e,color:a.getContrastColor(e)}},[X("span",{staticClass:"hidden-visually"},[z._v(" "+z._s(e)+" -- "+z._s(a.currentColor)+" ")]),e===a.currentColor?X(a.NcIconSvgWrapper,{attrs:{path:a.mdiCheck}}):z._e(),X("input",{staticClass:"hidden-visually",attrs:{type:"radio","aria-label":r,name:`color-picker-${a.id}`},domProps:{checked:e===a.currentColor},on:{click:function(s){return a.toggleColor(e)}}})],1)}),z.clearable?X("label",{staticClass:"color-picker__clear",attrs:{title:a.t("No color")}},[X(a.NcIconSvgWrapper,{attrs:{size:a.currentColor?28:34,path:a.mdiCloseCircleOutline}}),X("input",{staticClass:"hidden-visually",attrs:{type:"radio","aria-label":a.t("No color"),name:`color-picker-${a.id}`},domProps:{checked:!a.currentColor},on:{click:function(e){a.currentColor=void 0}}})],1):z._e()],2)],1),z.paletteOnly?z._e():X("div",{staticClass:"color-picker__navigation"},[a.advanced?X(a.NcButton,{attrs:{"aria-label":a.t("Back"),title:a.t("Back"),variant:"tertiary"},on:{click:function(e){a.advanced=!1}},scopedSlots:z._u([{key:"icon",fn:function(){return[X(a.NcIconSvgWrapper,{attrs:{directional:"",path:a.mdiArrowLeft}})]},proxy:!0}],null,!0)}):X(a.NcButton,{attrs:{"aria-label":a.t("More options"),title:a.t("More options"),variant:"tertiary"},on:{click:function(e){a.advanced=!0}},scopedSlots:z._u([{key:"icon",fn:function(){return[X(a.NcIconSvgWrapper,{attrs:{path:a.mdiDotsHorizontal}})]},proxy:!0}],null,!0)}),X(a.NcButton,{attrs:{variant:"primary"},on:{click:function(e){return a.handleConfirm(o.hide)}}},[z._v(" "+z._s(a.t("Choose"))+" ")])],1)],1)]}}],null,!0)},"NcPopover",z.$attrs,!1),z.$listeners))},Vt=[],Wt=Ct(Ut,Gt,Vt,!1,null,"01d41e75");const qt=Wt.exports;export{qt as default};
//# sourceMappingURL=NcColorPicker-CQKmRV6g.chunk.mjs.map
//# sourceMappingURL=NcColorPicker-CD-30f1k.chunk.mjs.map

Large diffs are not rendered by default.

Loading
Loading