cnhis-design-vue 3.1.48-beta.17 → 3.1.48-beta.18

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.
@@ -1 +1 @@
1
- import{hex2rgba as o}from"../../../../shared/utils/index.js";import{isFunction as r,isString as t,isObject as n}from"lodash-es";import"../../index.js";import{useUUIDMap as e}from"../utils/index.js";import{defineTablePlugin as s}from"../hooks/useTablePlugin.js";function u(){const u="highLightSetPlugin",{getItemFromUUID:i,removeItemFromUUID:l,setItemFromUUID:a}=e((()=>!1));return s({name:u,apply(e){e.dataHooks.data.tapPromise(u,(async(o,r)=>{r.uuid&&(o.rowColor||o.fontColor)&&a(r.uuid,!0)})),e.dataHooks.dataEnd.tap(u,(e=>{if(!e.uuid||!i(e.uuid))return;const s=e.rowStyle;e.rowStyle=function(t){if(t.row.rowColor||t.row.fontColor){const[n,e,u,i]=o(t.row.rowColor||"",.2),l={"--row-background-color":`rgba(${n}, ${e}, ${u}, ${i})`,color:t.row.fontColor};return r(s)?Object.assign(l,s(t)):l}return r(s)?s(t):null};const u=e.rowClassName;e.rowClassName=function(o){if(o.row.rowColor){const e="row--custom";if(t(u))return`${e} ${u}`;if(r(u)){const r=u(o);return n(r)?Object.assign({"row--custom":!0},r):t(r)?`${e} ${r}`:null}return e}return r(u)?u(o):t(u)?u:null},l(e.uuid)}))}})}export{u as highLightSetPlugin};
1
+ import{traverse as o,hex2rgba as r}from"../../../../shared/utils/index.js";import{isFunction as t,isString as n,isObject as e}from"lodash-es";import"../../index.js";import{useUUIDMap as i}from"../utils/index.js";import{defineTablePlugin as u}from"../hooks/useTablePlugin.js";function s(){const s="highLightSetPlugin",{getItemFromUUID:l,removeItemFromUUID:a,setItemFromUUID:m}=i((()=>!1));return u({name:s,apply(i){i.dataHooks.data.tapPromise(s,(async(r,t)=>{if(!t.uuid||l(t.uuid))return;let n=!1;o(r,((o,r)=>{(o.rowColor||o.fontColor)&&(n=!0,r())}),["children","childrenList"]),n&&m(t.uuid,!0)})),i.dataHooks.dataEnd.tap(s,(o=>{if(!o.uuid||!l(o.uuid))return;const i=o.rowStyle;o.rowStyle=function(o){if(o.row.rowColor||o.row.fontColor){const[n,e,u,s]=r(o.row.rowColor||"",.2),l={"--row-background-color":`rgba(${n}, ${e}, ${u}, ${s})`,color:o.row.fontColor};return t(i)?Object.assign(l,i(o)):l}return t(i)?i(o):null};const u=o.rowClassName;o.rowClassName=function(o){if(o.row.rowColor){const r="row--custom";if(n(u))return`${r} ${u}`;if(t(u)){const t=u(o);return e(t)?Object.assign({"row--custom":!0},t):n(t)?`${r} ${t}`:null}return r}return t(u)?u(o):n(u)?u:null},a(o.uuid)}))}})}export{s as highLightSetPlugin};
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",i="3.1.48-beta.17",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.48-beta.17",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
1
+ var e="@cnhis-design-vue/shared",i="3.1.48-beta.18",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.48-beta.18",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.48-beta.17",
3
+ "version": "3.1.48-beta.18",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -63,5 +63,5 @@
63
63
  "iOS 7",
64
64
  "last 3 iOS versions"
65
65
  ],
66
- "gitHead": "0f3bae75865b659b94d188fe48d3566e91659230"
66
+ "gitHead": "09622e07a5bdf55418cc02cfebcc52a326d725ce"
67
67
  }