neo-cmp-cli 1.13.21 → 1.13.23
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/README.md +3 -0
- package/dist/_virtual/array-set2.js +1 -0
- package/dist/_virtual/base64-vlq2.js +1 -0
- package/dist/_virtual/base642.js +1 -0
- package/dist/_virtual/binary-search2.js +1 -0
- package/dist/_virtual/mapping-list2.js +1 -0
- package/dist/_virtual/picocolors.js +1 -0
- package/dist/_virtual/quick-sort2.js +1 -0
- package/dist/_virtual/source-map-consumer2.js +1 -0
- package/dist/_virtual/source-map-generator2.js +1 -0
- package/dist/_virtual/source-map2.js +1 -0
- package/dist/_virtual/source-node2.js +1 -0
- package/dist/_virtual/symbols.js +1 -0
- package/dist/_virtual/util2.js +1 -0
- package/dist/loaders/component-scope-style-loader2.js +1 -1
- package/dist/node_modules/nanoid/non-secure/index.js +1 -0
- package/dist/node_modules/picocolors/picocolors.js +1 -0
- package/dist/node_modules/postcss/lib/at-rule.js +1 -0
- package/dist/node_modules/postcss/lib/comment.js +1 -0
- package/dist/node_modules/postcss/lib/container.js +1 -0
- package/dist/node_modules/postcss/lib/css-syntax-error.js +1 -0
- package/dist/node_modules/postcss/lib/declaration.js +1 -0
- package/dist/node_modules/postcss/lib/document.js +1 -0
- package/dist/node_modules/postcss/lib/fromJSON.js +1 -0
- package/dist/node_modules/postcss/lib/input.js +1 -0
- package/dist/node_modules/postcss/lib/lazy-result.js +1 -0
- package/dist/node_modules/postcss/lib/list.js +1 -0
- package/dist/node_modules/postcss/lib/map-generator.js +1 -0
- package/dist/node_modules/postcss/lib/no-work-result.js +1 -0
- package/dist/node_modules/postcss/lib/node.js +1 -0
- package/dist/node_modules/postcss/lib/parse.js +1 -0
- package/dist/node_modules/postcss/lib/parser.js +1 -0
- package/dist/node_modules/postcss/lib/postcss.js +1 -0
- package/dist/node_modules/postcss/lib/previous-map.js +1 -0
- package/dist/node_modules/postcss/lib/processor.js +1 -0
- package/dist/node_modules/postcss/lib/result.js +1 -0
- package/dist/node_modules/postcss/lib/root.js +1 -0
- package/dist/node_modules/postcss/lib/rule.js +1 -0
- package/dist/node_modules/postcss/lib/stringifier.js +1 -0
- package/dist/node_modules/postcss/lib/stringify.js +1 -0
- package/dist/node_modules/postcss/lib/symbols.js +1 -0
- package/dist/node_modules/postcss/lib/terminal-highlight.js +1 -0
- package/dist/node_modules/postcss/lib/tokenize.js +1 -0
- package/dist/node_modules/postcss/lib/warn-once.js +1 -0
- package/dist/node_modules/postcss/lib/warning.js +1 -0
- package/dist/node_modules/source-map/lib/array-set.js +1 -1
- package/dist/node_modules/source-map/lib/base64-vlq.js +1 -1
- package/dist/node_modules/source-map/lib/base64.js +1 -1
- package/dist/node_modules/source-map/lib/binary-search.js +1 -1
- package/dist/node_modules/source-map/lib/mapping-list.js +1 -1
- package/dist/node_modules/source-map/lib/quick-sort.js +1 -1
- package/dist/node_modules/source-map/lib/source-map-consumer.js +1 -1
- package/dist/node_modules/source-map/lib/source-map-generator.js +1 -1
- package/dist/node_modules/source-map/lib/source-node.js +1 -1
- package/dist/node_modules/source-map/lib/util.js +1 -1
- package/dist/node_modules/source-map/source-map.js +1 -1
- package/dist/node_modules/source-map-js/lib/array-set.js +1 -0
- package/dist/node_modules/source-map-js/lib/base64-vlq.js +1 -0
- package/dist/node_modules/source-map-js/lib/base64.js +1 -0
- package/dist/node_modules/source-map-js/lib/binary-search.js +1 -0
- package/dist/node_modules/source-map-js/lib/mapping-list.js +1 -0
- package/dist/node_modules/source-map-js/lib/quick-sort.js +1 -0
- package/dist/node_modules/source-map-js/lib/source-map-consumer.js +1 -0
- package/dist/node_modules/source-map-js/lib/source-map-generator.js +1 -0
- package/dist/node_modules/source-map-js/lib/source-node.js +1 -0
- package/dist/node_modules/source-map-js/lib/util.js +1 -0
- package/dist/node_modules/source-map-js/source-map.js +1 -0
- package/dist/package.json.js +1 -1
- package/package.json +7 -5
- package/template/antd-custom-cmp-template/package.json +1 -1
- package/template/antd-custom-cmp-template/src/components/dataDashboard__c/model.ts +1 -1
- package/template/antd-custom-cmp-template/src/components/dataDashboard__c/style.scss +11 -11
- package/template/antd-custom-cmp-template/src/components/searchWidget__c/model.ts +1 -1
- package/template/asset-manage-template/package.json +1 -1
- package/template/asset-manage-template/src/components/assetManage__c/style.scss +4 -4
- package/template/asset-manage-template/src/components/bidList__c/style.scss +2 -2
- package/template/asset-manage-template/src/components/bidPackage__c/style.scss +2 -2
- package/template/echarts-custom-cmp-template/package.json +1 -1
- package/template/echarts-custom-cmp-template/src/components/chartWidget__c/model.ts +1 -1
- package/template/echarts-custom-cmp-template/src/components/chartWidget__c/style.scss +1 -1
- package/template/empty-custom-cmp-template/package.json +1 -1
- package/template/map-custom-cmp-template/package.json +1 -1
- package/template/map-custom-cmp-template/src/components/mapWidget__c/model.ts +1 -1
- package/template/map-custom-cmp-template/src/components/mapWidget__c/style.scss +2 -2
- package/template/neo-bi-cmps/package.json +1 -1
- package/template/neo-bi-cmps/public/demo.html +10 -10
- package/template/neo-bi-cmps/src/components/filterBar__c/model.ts +2 -1
- package/template/neo-bi-cmps/src/components/targetNumber__c/index.tsx +13 -8
- package/template/neo-bi-cmps/src/components/targetNumber__c/model.ts +10 -4
- package/template/neo-bi-cmps/src/components/targetNumber__c/style.scss +13 -5
- package/template/neo-custom-cmp-template/CODEBUDDY.md +92 -0
- package/template/neo-custom-cmp-template/package.json +1 -1
- package/template/neo-custom-cmp-template/src/components/customApi__c/index.tsx +8 -4
- package/template/neo-custom-cmp-template/src/components/customApi__c/model.ts +1 -1
- package/template/neo-custom-cmp-template/src/components/customApi__c/style.scss +25 -20
- package/template/neo-custom-cmp-template/src/components/entityDetail__c/index.tsx +26 -55
- package/template/neo-custom-cmp-template/src/components/entityDetail__c/model.ts +1 -1
- package/template/neo-custom-cmp-template/src/components/entityDetail__c/style.scss +155 -100
- package/template/neo-custom-cmp-template/src/components/entityForm__c/index.tsx +0 -1
- package/template/neo-custom-cmp-template/src/components/entityForm__c/model.ts +11 -3
- package/template/neo-custom-cmp-template/src/components/entityForm__c/style.scss +1 -1
- package/template/neo-custom-cmp-template/src/components/entityTable__c/index.tsx +10 -9
- package/template/neo-custom-cmp-template/src/components/entityTable__c/model.ts +12 -3
- package/template/neo-custom-cmp-template/src/components/entityTable__c/style.scss +171 -116
- package/template/neo-custom-cmp-template/src/components/simpleCmp__c/index.tsx +3 -3
- package/template/neo-custom-cmp-template/src/components/simpleCmp__c/model.ts +1 -1
- package/template/neo-custom-cmp-template/src/components/simpleCmp__c/style.scss +94 -13
- package/template/neo-h5-cmps/package.json +1 -1
- package/template/neo-h5-cmps/src/components/chatPage__c/model.ts +1 -1
- package/template/neo-h5-cmps/src/components/entityList__c/model.ts +1 -1
- package/template/neo-h5-cmps/src/components/entityTabs__c/model.ts +2 -2
- package/template/neo-h5-cmps/src/components/entityTabs__c/style.scss +15 -6
- package/template/neo-h5-cmps/src/components/globalSearchInput__c/model.ts +1 -1
- package/template/neo-h5-cmps/src/components/openChatPageBtn__c/model.ts +1 -1
- package/template/neo-order-cmps/package.json +1 -1
- package/template/neo-order-cmps/src/components/entityInfoCard__c/index.tsx +4 -12
- package/template/neo-order-cmps/src/components/entityInfoCard__c/model.ts +3 -3
- package/template/neo-order-cmps/src/components/entityInfoCard__c/style.scss +6 -5
- package/template/neo-order-cmps/src/components/simpleTable__c/index.tsx +71 -20
- package/template/neo-order-cmps/src/components/simpleTable__c/model.ts +15 -11
- package/template/neo-order-cmps/src/components/simpleTable__c/style.scss +39 -29
- package/template/neo-pipeline-cmps/package.json +1 -1
- package/template/neo-pipeline-cmps/public/demo.html +10 -10
- package/template/neo-pipeline-cmps/src/components/pipelineFunnel__c/style.scss +1 -1
- package/template/neo-pipeline-cmps/src/components/showHealthResult__c/style.scss +1 -1
- package/template/neo-pipeline-cmps/src/components/simpleTable__c/common.scss +3 -3
- package/template/neo-pipeline-cmps/src/components/simpleTable__c/style.scss +2 -2
- package/template/neo-pipeline-cmps/src/components/stageSwitch__c/style.scss +1 -1
- package/template/neo-pipeline-cmps/src/components/stageTimeChart__c/style.scss +2 -2
- package/template/neo-web-entity-grid/package.json +1 -1
- package/template/neo-web-entity-grid/src/components/createForm__c/model.ts +1 -1
- package/template/neo-web-entity-grid/src/components/entityGrid2__c/model.ts +2 -2
- package/template/neo-web-entity-grid/src/components/entityGrid2__c/style.scss +1 -5
- package/template/neo-web-entity-grid/src/components/entityGrid3__c/model.ts +3 -1
- package/template/neo-web-entity-grid/src/components/entityGrid3__c/style.scss +1 -6
- package/template/neo-web-entity-grid/src/components/entityGrid4__c/model.ts +1 -1
- package/template/neo-web-entity-grid/src/components/entityGrid__c/model.ts +1 -1
- package/template/neo-web-entity-grid/src/components/entityGrid__c/style.scss +1 -6
- package/template/neo-web-entity-grid/src/components/searchForm__c/model.ts +11 -3
- package/template/neo-web-form/package.json +1 -1
- package/template/neo-web-form/src/components/batchAddTable__c/model.ts +1 -1
- package/template/neo-web-form/src/components/batchAddTable__c/tableModal.scss +1 -1
- package/template/neo-web-form/src/components/listSummary__c/model.ts +1 -1
- package/template/neo-web-form/src/components/listSummary__c/style.scss +2 -2
- package/template/react-custom-cmp-template/package.json +1 -1
- package/template/react-custom-cmp-template/src/components/infoCard__c/model.js +1 -1
- package/template/react-ts-custom-cmp-template/package.json +1 -1
- package/template/react-ts-custom-cmp-template/src/components/listWidget__c/model.ts +1 -1
- package/template/react-ts-custom-cmp-template/src/components/listWidget__c/style.scss +1 -1
- package/template/vue2-custom-cmp-template/package.json +1 -1
- package/template/vue2-custom-cmp-template/src/components/vueInfoCard__c/model.js +1 -1
- package/template/antd-custom-cmp-template/src/components/infoCard__c/index.tsx +0 -89
- package/template/antd-custom-cmp-template/src/components/infoCard__c/model.ts +0 -76
- package/template/antd-custom-cmp-template/src/components/infoCard__c/style.scss +0 -105
- package/template/neo-custom-cmp-template/src/components/entityCardList__c/README.md +0 -61
- package/template/neo-custom-cmp-template/src/components/entityCardList__c/index.tsx +0 -225
- package/template/neo-custom-cmp-template/src/components/entityCardList__c/model.ts +0 -81
- package/template/neo-custom-cmp-template/src/components/entityCardList__c/style.scss +0 -260
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../_virtual/source-map-consumer.js"),n=require("./util.js"),r=require("./binary-search.js"),t=require("./array-set.js"),o=require("./base64-vlq.js"),i=require("./quick-sort.js");var s;exports.__require=function(){if(s)return e.__exports;s=1;var a=n.__require(),u=r.__require(),l=t.__require().ArraySet,g=o.__require(),p=i.__require().quickSort;function c(e,n){var r=e;return"string"==typeof e&&(r=a.parseSourceMapInput(e)),null!=r.sections?new d(r,n):new h(r,n)}function h(e,n){var r=e;"string"==typeof e&&(r=a.parseSourceMapInput(e));var t=a.getArg(r,"version"),o=a.getArg(r,"sources"),i=a.getArg(r,"names",[]),s=a.getArg(r,"sourceRoot",null),u=a.getArg(r,"sourcesContent",null),g=a.getArg(r,"mappings"),p=a.getArg(r,"file",null);if(t!=this._version)throw new Error("Unsupported version: "+t);s&&(s=a.normalize(s)),o=o.map(String).map(a.normalize).map(function(e){return s&&a.isAbsolute(s)&&a.isAbsolute(e)?a.relative(s,e):e}),this._names=l.fromArray(i.map(String),!0),this._sources=l.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(e){return a.computeSourceURL(s,e,n)}),this.sourceRoot=s,this.sourcesContent=u,this._mappings=g,this._sourceMapURL=n,this.file=p}function f(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}c.fromSourceMap=function(e,n){return h.fromSourceMap(e,n)},c.prototype._version=3,c.prototype.__generatedMappings=null,Object.defineProperty(c.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),c.prototype.__originalMappings=null,Object.defineProperty(c.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),c.prototype._charIsMappingSeparator=function(e,n){var r=e.charAt(n);return";"===r||","===r},c.prototype._parseMappings=function(e,n){throw new Error("Subclasses must implement _parseMappings")},c.GENERATED_ORDER=1,c.ORIGINAL_ORDER=2,c.GREATEST_LOWER_BOUND=1,c.LEAST_UPPER_BOUND=2,c.prototype.eachMapping=function(e,n,r){var t,o=n||null;switch(r||c.GENERATED_ORDER){case c.GENERATED_ORDER:t=this._generatedMappings;break;case c.ORIGINAL_ORDER:t=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var i=this.sourceRoot,s=e.bind(o),u=this._names,l=this._sources,g=this._sourceMapURL,p=0,h=t.length;p<h;p++){var f=t[p],_=null===f.source?null:l.at(f.source);null!==_&&(_=a.computeSourceURL(i,_,g)),s({source:_,generatedLine:f.generatedLine,generatedColumn:f.generatedColumn,originalLine:f.originalLine,originalColumn:f.originalColumn,name:null===f.name?null:u.at(f.name)})}},c.prototype.allGeneratedPositionsFor=function(e){var n=a.getArg(e,"line"),r={source:a.getArg(e,"source"),originalLine:n,originalColumn:a.getArg(e,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var t=[],o=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",a.compareByOriginalPositions,u.LEAST_UPPER_BOUND);if(o>=0){var i=this._originalMappings[o];if(void 0===e.column)for(var s=i.originalLine;i&&i.originalLine===s;)t.push({line:a.getArg(i,"generatedLine",null),column:a.getArg(i,"generatedColumn",null),lastColumn:a.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++o];else for(var l=i.originalColumn;i&&i.originalLine===n&&i.originalColumn==l;)t.push({line:a.getArg(i,"generatedLine",null),column:a.getArg(i,"generatedColumn",null),lastColumn:a.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++o]}return t},e.__exports.SourceMapConsumer=c,h.prototype=Object.create(c.prototype),h.prototype.consumer=c,h.prototype._findSourceIndex=function(e){var n,r=e;if(null!=this.sourceRoot&&(r=a.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(n=0;n<this._absoluteSources.length;++n)if(this._absoluteSources[n]==e)return n;return-1},h.fromSourceMap=function(e,n){var r=Object.create(h.prototype),t=r._names=l.fromArray(e._names.toArray(),!0),o=r._sources=l.fromArray(e._sources.toArray(),!0);r.sourceRoot=e._sourceRoot,r.sourcesContent=e._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=e._file,r._sourceMapURL=n,r._absoluteSources=r._sources.toArray().map(function(e){return a.computeSourceURL(r.sourceRoot,e,n)});for(var i=e._mappings.toArray().slice(),s=r.__generatedMappings=[],u=r.__originalMappings=[],g=0,c=i.length;g<c;g++){var _=i[g],m=new f;m.generatedLine=_.generatedLine,m.generatedColumn=_.generatedColumn,_.source&&(m.source=o.indexOf(_.source),m.originalLine=_.originalLine,m.originalColumn=_.originalColumn,_.name&&(m.name=t.indexOf(_.name)),u.push(m)),s.push(m)}return p(r.__originalMappings,a.compareByOriginalPositions),r},h.prototype._version=3,Object.defineProperty(h.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});const _=a.compareByGeneratedPositionsDeflatedNoLine;function m(e,n){let r=e.length,t=e.length-n;if(!(t<=1))if(2==t){let r=e[n],t=e[n+1];_(r,t)>0&&(e[n]=t,e[n+1]=r)}else if(t<20)for(let t=n;t<r;t++)for(let r=t;r>n;r--){let n=e[r-1],t=e[r];if(_(n,t)<=0)break;e[r-1]=t,e[r]=n}else p(e,_,n)}function d(e,n){var r=e;"string"==typeof e&&(r=a.parseSourceMapInput(e));var t=a.getArg(r,"version"),o=a.getArg(r,"sections");if(t!=this._version)throw new Error("Unsupported version: "+t);this._sources=new l,this._names=new l;var i={line:-1,column:0};this._sections=o.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var r=a.getArg(e,"offset"),t=a.getArg(r,"line"),o=a.getArg(r,"column");if(t<i.line||t===i.line&&o<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=r,{generatedOffset:{generatedLine:t+1,generatedColumn:o+1},consumer:new c(a.getArg(e,"map"),n)}})}return h.prototype._parseMappings=function(e,n){var r,t,o,i,s=1,u=0,l=0,c=0,h=0,_=0,d=e.length,C=0,v={},L=[],y=[];let A=0;for(;C<d;)if(";"===e.charAt(C))s++,C++,u=0,m(y,A),A=y.length;else if(","===e.charAt(C))C++;else{for((r=new f).generatedLine=s,o=C;o<d&&!this._charIsMappingSeparator(e,o);o++);for(e.slice(C,o),t=[];C<o;)g.decode(e,C,v),i=v.value,C=v.rest,t.push(i);if(2===t.length)throw new Error("Found a source, but no line and column");if(3===t.length)throw new Error("Found a source and line, but no column");if(r.generatedColumn=u+t[0],u=r.generatedColumn,t.length>1&&(r.source=h+t[1],h+=t[1],r.originalLine=l+t[2],l=r.originalLine,r.originalLine+=1,r.originalColumn=c+t[3],c=r.originalColumn,t.length>4&&(r.name=_+t[4],_+=t[4])),y.push(r),"number"==typeof r.originalLine){let e=r.source;for(;L.length<=e;)L.push(null);null===L[e]&&(L[e]=[]),L[e].push(r)}}m(y,A),this.__generatedMappings=y;for(var M=0;M<L.length;M++)null!=L[M]&&p(L[M],a.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...L)},h.prototype._findMapping=function(e,n,r,t,o,i){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[t]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[t]);return u.search(e,n,o,i)},h.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var n=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(n.generatedLine===r.generatedLine){n.lastGeneratedColumn=r.generatedColumn-1;continue}}n.lastGeneratedColumn=1/0}},h.prototype.originalPositionFor=function(e){var n={generatedLine:a.getArg(e,"line"),generatedColumn:a.getArg(e,"column")},r=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",a.compareByGeneratedPositionsDeflated,a.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(r>=0){var t=this._generatedMappings[r];if(t.generatedLine===n.generatedLine){var o=a.getArg(t,"source",null);null!==o&&(o=this._sources.at(o),o=a.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var i=a.getArg(t,"name",null);return null!==i&&(i=this._names.at(i)),{source:o,line:a.getArg(t,"originalLine",null),column:a.getArg(t,"originalColumn",null),name:i}}}return{source:null,line:null,column:null,name:null}},h.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},h.prototype.sourceContentFor=function(e,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var t,o=e;if(null!=this.sourceRoot&&(o=a.relative(this.sourceRoot,o)),null!=this.sourceRoot&&(t=a.urlParse(this.sourceRoot))){var i=o.replace(/^file:\/\//,"");if("file"==t.scheme&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!t.path||"/"==t.path)&&this._sources.has("/"+o))return this.sourcesContent[this._sources.indexOf("/"+o)]}if(n)return null;throw new Error('"'+o+'" is not in the SourceMap.')},h.prototype.generatedPositionFor=function(e){var n=a.getArg(e,"source");if((n=this._findSourceIndex(n))<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:a.getArg(e,"line"),originalColumn:a.getArg(e,"column")},t=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",a.compareByOriginalPositions,a.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(t>=0){var o=this._originalMappings[t];if(o.source===r.source)return{line:a.getArg(o,"generatedLine",null),column:a.getArg(o,"generatedColumn",null),lastColumn:a.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},e.__exports.BasicSourceMapConsumer=h,d.prototype=Object.create(c.prototype),d.prototype.constructor=c,d.prototype._version=3,Object.defineProperty(d.prototype,"sources",{get:function(){for(var e=[],n=0;n<this._sections.length;n++)for(var r=0;r<this._sections[n].consumer.sources.length;r++)e.push(this._sections[n].consumer.sources[r]);return e}}),d.prototype.originalPositionFor=function(e){var n={generatedLine:a.getArg(e,"line"),generatedColumn:a.getArg(e,"column")},r=u.search(n,this._sections,function(e,n){var r=e.generatedLine-n.generatedOffset.generatedLine;return r||e.generatedColumn-n.generatedOffset.generatedColumn}),t=this._sections[r];return t?t.consumer.originalPositionFor({line:n.generatedLine-(t.generatedOffset.generatedLine-1),column:n.generatedColumn-(t.generatedOffset.generatedLine===n.generatedLine?t.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},d.prototype.sourceContentFor=function(e,n){for(var r=0;r<this._sections.length;r++){var t=this._sections[r].consumer.sourceContentFor(e,!0);if(t||""===t)return t}if(n)return null;throw new Error('"'+e+'" is not in the SourceMap.')},d.prototype.generatedPositionFor=function(e){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(-1!==r.consumer._findSourceIndex(a.getArg(e,"source"))){var t=r.consumer.generatedPositionFor(e);if(t)return{line:t.line+(r.generatedOffset.generatedLine-1),column:t.column+(r.generatedOffset.generatedLine===t.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(e,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var t=this._sections[r],o=t.consumer._generatedMappings,i=0;i<o.length;i++){var s=o[i],u=t.consumer._sources.at(s.source);null!==u&&(u=a.computeSourceURL(t.consumer.sourceRoot,u,this._sourceMapURL)),this._sources.add(u),u=this._sources.indexOf(u);var l=null;s.name&&(l=t.consumer._names.at(s.name),this._names.add(l),l=this._names.indexOf(l));var g={source:u,generatedLine:s.generatedLine+(t.generatedOffset.generatedLine-1),generatedColumn:s.generatedColumn+(t.generatedOffset.generatedLine===s.generatedLine?t.generatedOffset.generatedColumn-1:0),originalLine:s.originalLine,originalColumn:s.originalColumn,name:l};this.__generatedMappings.push(g),"number"==typeof g.originalLine&&this.__originalMappings.push(g)}p(this.__generatedMappings,a.compareByGeneratedPositionsDeflated),p(this.__originalMappings,a.compareByOriginalPositions)},e.__exports.IndexedSourceMapConsumer=d,e.__exports};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../_virtual/source-map-generator.js"),n=require("./base64-vlq.js"),o=require("./util.js"),r=require("./array-set.js"),t=require("./mapping-list.js");var i;exports.__require=function(){if(i)return e.__exports;i=1;var s=n.__require(),l=o.__require(),u=r.__require().ArraySet,a=t.__require().MappingList;function c(e){e||(e={}),this._file=l.getArg(e,"file",null),this._sourceRoot=l.getArg(e,"sourceRoot",null),this._skipValidation=l.getArg(e,"skipValidation",!1),this._ignoreInvalidMapping=l.getArg(e,"ignoreInvalidMapping",!1),this._sources=new u,this._names=new u,this._mappings=new a,this._sourcesContents=null}return c.prototype._version=3,c.fromSourceMap=function(e,n){var o=e.sourceRoot,r=new c(Object.assign(n||{},{file:e.file,sourceRoot:o}));return e.eachMapping(function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=o&&(n.source=l.relative(o,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)}),e.sources.forEach(function(n){var t=n;null!==o&&(t=l.relative(o,n)),r._sources.has(t)||r._sources.add(t);var i=e.sourceContentFor(n);null!=i&&r.setSourceContent(n,i)}),r},c.prototype.addMapping=function(e){var n=l.getArg(e,"generated"),o=l.getArg(e,"original",null),r=l.getArg(e,"source",null),t=l.getArg(e,"name",null);(this._skipValidation||!1!==this._validateMapping(n,o,r,t))&&(null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=t&&(t=String(t),this._names.has(t)||this._names.add(t)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:null!=o&&o.line,originalColumn:null!=o&&o.column,source:r,name:t}))},c.prototype.setSourceContent=function(e,n){var o=e;null!=this._sourceRoot&&(o=l.relative(this._sourceRoot,o)),null!=n?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[l.toSetString(o)]=n):this._sourcesContents&&(delete this._sourcesContents[l.toSetString(o)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},c.prototype.applySourceMap=function(e,n,o){var r=n;if(null==n){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var t=this._sourceRoot;null!=t&&(r=l.relative(t,r));var i=new u,s=new u;this._mappings.unsortedForEach(function(n){if(n.source===r&&null!=n.originalLine){var u=e.originalPositionFor({line:n.originalLine,column:n.originalColumn});null!=u.source&&(n.source=u.source,null!=o&&(n.source=l.join(o,n.source)),null!=t&&(n.source=l.relative(t,n.source)),n.originalLine=u.line,n.originalColumn=u.column,null!=u.name&&(n.name=u.name))}var a=n.source;null==a||i.has(a)||i.add(a);var c=n.name;null==c||s.has(c)||s.add(c)},this),this._sources=i,this._names=s,e.sources.forEach(function(n){var r=e.sourceContentFor(n);null!=r&&(null!=o&&(n=l.join(o,n)),null!=t&&(n=l.relative(t,n)),this.setSourceContent(n,r))},this)},c.prototype._validateMapping=function(e,n,o,r){if(n&&"number"!=typeof n.line&&"number"!=typeof n.column){var t="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return"undefined"!=typeof console&&console.warn&&console.warn(t),!1;throw new Error(t)}if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||n||o||r)&&!(e&&"line"in e&&"column"in e&&n&&"line"in n&&"column"in n&&e.line>0&&e.column>=0&&n.line>0&&n.column>=0&&o)){t="Invalid mapping: "+JSON.stringify({generated:e,source:o,original:n,name:r});if(this._ignoreInvalidMapping)return"undefined"!=typeof console&&console.warn&&console.warn(t),!1;throw new Error(t)}},c.prototype._serializeMappings=function(){for(var e,n,o,r,t=0,i=1,u=0,a=0,c=0,p=0,g="",h=this._mappings.toArray(),_=0,m=h.length;_<m;_++){if(e="",(n=h[_]).generatedLine!==i)for(t=0;n.generatedLine!==i;)e+=";",i++;else if(_>0){if(!l.compareByGeneratedPositionsInflated(n,h[_-1]))continue;e+=","}e+=s.encode(n.generatedColumn-t),t=n.generatedColumn,null!=n.source&&(r=this._sources.indexOf(n.source),e+=s.encode(r-p),p=r,e+=s.encode(n.originalLine-1-a),a=n.originalLine-1,e+=s.encode(n.originalColumn-u),u=n.originalColumn,null!=n.name&&(o=this._names.indexOf(n.name),e+=s.encode(o-c),c=o)),g+=e}return g},c.prototype._generateSourcesContent=function(e,n){return e.map(function(e){if(!this._sourcesContents)return null;null!=n&&(e=l.relative(n,e));var o=l.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,o)?this._sourcesContents[o]:null},this)},c.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},c.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.__exports.SourceMapGenerator=c,e.__exports};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../_virtual/source-node.js"),n=require("./source-map-generator.js"),r=require("./util.js");var t;exports.__require=function(){if(t)return e.__exports;t=1;var o=n.__require().SourceMapGenerator,i=r.__require(),l=/(\r?\n)/,u="$$$isSourceNode$$$";function s(e,n,r,t,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==n?null:n,this.source=null==r?null:r,this.name=null==o?null:o,this[u]=!0,null!=t&&this.add(t)}return s.fromStringWithSourceMap=function(e,n,r){var t=new s,o=e.split(l),u=0,c=function(){return e()+(e()||"");function e(){return u<o.length?o[u++]:void 0}},a=1,h=0,d=null;return n.eachMapping(function(e){if(null!==d){if(!(a<e.generatedLine)){var n=(r=o[u]||"").substr(0,e.generatedColumn-h);return o[u]=r.substr(e.generatedColumn-h),h=e.generatedColumn,p(d,n),void(d=e)}p(d,c()),a++,h=0}for(;a<e.generatedLine;)t.add(c()),a++;if(h<e.generatedColumn){var r=o[u]||"";t.add(r.substr(0,e.generatedColumn)),o[u]=r.substr(e.generatedColumn),h=e.generatedColumn}d=e},this),u<o.length&&(d&&p(d,c()),t.add(o.splice(u).join(""))),n.sources.forEach(function(e){var o=n.sourceContentFor(e);null!=o&&(null!=r&&(e=i.join(r,e)),t.setSourceContent(e,o))}),t;function p(e,n){if(null===e||void 0===e.source)t.add(n);else{var o=r?i.join(r,e.source):e.source;t.add(new s(e.originalLine,e.originalColumn,o,n,e.name))}}},s.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[u]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},s.prototype.prepend=function(e){if(Array.isArray(e))for(var n=e.length-1;n>=0;n--)this.prepend(e[n]);else{if(!e[u]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var n,r=0,t=this.children.length;r<t;r++)(n=this.children[r])[u]?n.walk(e):""!==n&&e(n,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(e){var n,r,t=this.children.length;if(t>0){for(n=[],r=0;r<t-1;r++)n.push(this.children[r]),n.push(e);n.push(this.children[r]),this.children=n}return this},s.prototype.replaceRight=function(e,n){var r=this.children[this.children.length-1];return r[u]?r.replaceRight(e,n):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,n):this.children.push("".replace(e,n)),this},s.prototype.setSourceContent=function(e,n){this.sourceContents[i.toSetString(e)]=n},s.prototype.walkSourceContents=function(e){for(var n=0,r=this.children.length;n<r;n++)this.children[n][u]&&this.children[n].walkSourceContents(e);var t=Object.keys(this.sourceContents);for(n=0,r=t.length;n<r;n++)e(i.fromSetString(t[n]),this.sourceContents[t[n]])},s.prototype.toString=function(){var e="";return this.walk(function(n){e+=n}),e},s.prototype.toStringWithSourceMap=function(e){var n={code:"",line:1,column:0},r=new o(e),t=!1,i=null,l=null,u=null,s=null;return this.walk(function(e,o){n.code+=e,null!==o.source&&null!==o.line&&null!==o.column?(i===o.source&&l===o.line&&u===o.column&&s===o.name||r.addMapping({source:o.source,original:{line:o.line,column:o.column},generated:{line:n.line,column:n.column},name:o.name}),i=o.source,l=o.line,u=o.column,s=o.name,t=!0):t&&(r.addMapping({generated:{line:n.line,column:n.column}}),i=null,t=!1);for(var c=0,a=e.length;c<a;c++)10===e.charCodeAt(c)?(n.line++,n.column=0,c+1===a?(i=null,t=!1):t&&r.addMapping({source:o.source,original:{line:o.line,column:o.column},generated:{line:n.line,column:n.column},name:o.name})):n.column++}),this.walkSourceContents(function(e,n){r.setSourceContent(e,n)}),{code:n.code,map:r}},e.__exports.SourceNode=s,e.__exports};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../_virtual/util.js");var r;exports.__require=function(){return r||(r=1,function(e){e.getArg=function(e,r,n){if(r in e)return e[r];if(3===arguments.length)return n;throw new Error('"'+r+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function t(e){var n=e.match(r);return n?{scheme:n[1],auth:n[2],host:n[3],port:n[4],path:n[5]}:null}function i(e){var r="";return e.scheme&&(r+=e.scheme+":"),r+="//",e.auth&&(r+=e.auth+"@"),e.host&&(r+=e.host),e.port&&(r+=":"+e.port),e.path&&(r+=e.path),r}e.urlParse=t,e.urlGenerate=i;var o,a,u=(o=function(r){var n=r,o=t(r);if(o){if(!o.path)return r;n=o.path}for(var a=e.isAbsolute(n),u=[],l=0,c=0;;){if(l=c,-1===(c=n.indexOf("/",l))){u.push(n.slice(l));break}for(u.push(n.slice(l,c));c<n.length&&"/"===n[c];)c++}var s,f=0;for(c=u.length-1;c>=0;c--)"."===(s=u[c])?u.splice(c,1):".."===s?f++:f>0&&(""===s?(u.splice(c+1,f),f=0):(u.splice(c,2),f--));return""===(n=u.join("/"))&&(n=a?"/":"."),o?(o.path=n,i(o)):n},a=[],function(e){for(var r=0;r<a.length;r++)if(a[r].input===e){var n=a[0];return a[0]=a[r],a[r]=n,a[0].result}var t=o(e);return a.unshift({input:e,result:t}),a.length>32&&a.pop(),t});function l(e,r){""===e&&(e="."),""===r&&(r=".");var o=t(r),a=t(e);if(a&&(e=a.path||"/"),o&&!o.scheme)return a&&(o.scheme=a.scheme),i(o);if(o||r.match(n))return r;if(a&&!a.host&&!a.path)return a.host=r,i(a);var l="/"===r.charAt(0)?r:u(e.replace(/\/+$/,"")+"/"+r);return a?(a.path=l,i(a)):l}e.normalize=u,e.join=l,e.isAbsolute=function(e){return"/"===e.charAt(0)||r.test(e)},e.relative=function(e,r){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==r.indexOf(e+"/");){var t=e.lastIndexOf("/");if(t<0)return r;if((e=e.slice(0,t)).match(/^([^\/]+:\/)?\/*$/))return r;++n}return Array(n+1).join("../")+r.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function s(e){return e}function f(e){if(!e)return!1;var r=e.length;if(r<9)return!1;if(95!==e.charCodeAt(r-1)||95!==e.charCodeAt(r-2)||111!==e.charCodeAt(r-3)||116!==e.charCodeAt(r-4)||111!==e.charCodeAt(r-5)||114!==e.charCodeAt(r-6)||112!==e.charCodeAt(r-7)||95!==e.charCodeAt(r-8)||95!==e.charCodeAt(r-9))return!1;for(var n=r-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function g(e,r){return e===r?0:null===e?1:null===r?-1:e>r?1:-1}e.toSetString=c?s:function(e){return f(e)?"$"+e:e},e.fromSetString=c?s:function(e){return f(e)?e.slice(1):e},e.compareByOriginalPositions=function(e,r,n){var t=g(e.source,r.source);return 0!==t||0!==(t=e.originalLine-r.originalLine)||0!==(t=e.originalColumn-r.originalColumn)||n||0!==(t=e.generatedColumn-r.generatedColumn)||0!==(t=e.generatedLine-r.generatedLine)?t:g(e.name,r.name)},e.compareByOriginalPositionsNoSource=function(e,r,n){var t;return 0!==(t=e.originalLine-r.originalLine)||0!==(t=e.originalColumn-r.originalColumn)||n||0!==(t=e.generatedColumn-r.generatedColumn)||0!==(t=e.generatedLine-r.generatedLine)?t:g(e.name,r.name)},e.compareByGeneratedPositionsDeflated=function(e,r,n){var t=e.generatedLine-r.generatedLine;return 0!==t||0!==(t=e.generatedColumn-r.generatedColumn)||n||0!==(t=g(e.source,r.source))||0!==(t=e.originalLine-r.originalLine)||0!==(t=e.originalColumn-r.originalColumn)?t:g(e.name,r.name)},e.compareByGeneratedPositionsDeflatedNoLine=function(e,r,n){var t=e.generatedColumn-r.generatedColumn;return 0!==t||n||0!==(t=g(e.source,r.source))||0!==(t=e.originalLine-r.originalLine)||0!==(t=e.originalColumn-r.originalColumn)?t:g(e.name,r.name)},e.compareByGeneratedPositionsInflated=function(e,r){var n=e.generatedLine-r.generatedLine;return 0!==n||0!==(n=e.generatedColumn-r.generatedColumn)||0!==(n=g(e.source,r.source))||0!==(n=e.originalLine-r.originalLine)||0!==(n=e.originalColumn-r.originalColumn)?n:g(e.name,r.name)},e.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(e,r,n){if(r=r||"",e&&("/"!==e[e.length-1]&&"/"!==r[0]&&(e+="/"),r=e+r),n){var o=t(n);if(!o)throw new Error("sourceMapURL could not be parsed");if(o.path){var a=o.path.lastIndexOf("/");a>=0&&(o.path=o.path.substring(0,a+1))}r=l(i(o),r)}return u(r)}}(e.__exports)),e.__exports};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/source-map.js"),r=require("./lib/source-map-generator.js"),o=require("./lib/source-map-consumer.js"),u=require("./lib/source-node.js");var s;exports.__require=function(){return s||(s=1,e.__exports.SourceMapGenerator=r.__require().SourceMapGenerator,e.__exports.SourceMapConsumer=o.__require().SourceMapConsumer,e.__exports.SourceNode=u.__require().SourceNode),e.__exports};
|
package/dist/package.json.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e="1.13.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e="1.13.22";const o={version:e};exports.default=o,exports.version=e;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neo-cmp-cli",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.23",
|
|
4
4
|
"description": "Neo 自定义组件开发工具,支持react 和 vue2.0技术栈。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"neo-cli",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"url": "https://github.com/xsy-neoui/neo-cmp-cli/issues"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
+
"@cloudbase/js-sdk": "^1.7.1",
|
|
43
44
|
"adm-zip": "^0.5.10",
|
|
44
45
|
"akfun": "^5.3.3",
|
|
45
46
|
"axios": "^1.7.0",
|
|
@@ -51,14 +52,15 @@
|
|
|
51
52
|
"form-data": "^4.0.0",
|
|
52
53
|
"fs-extra": "^10.1.0",
|
|
53
54
|
"inquirer": "^8.2.7",
|
|
55
|
+
"jsdom": "^28.0.0",
|
|
54
56
|
"lodash": "^4.17.23",
|
|
55
57
|
"open": "^8.4.2",
|
|
56
58
|
"ora": "^4.0.4",
|
|
57
59
|
"portfinder": "^1.0.38",
|
|
60
|
+
"postcss-less": "^6.0.0",
|
|
61
|
+
"postcss-scss": "^4.0.9",
|
|
58
62
|
"webpack-sources": "^3.2.3",
|
|
59
|
-
"yargs": "^17.7.2"
|
|
60
|
-
"jsdom": "^28.0.0",
|
|
61
|
-
"@cloudbase/js-sdk": "^1.7.1"
|
|
63
|
+
"yargs": "^17.7.2"
|
|
62
64
|
},
|
|
63
65
|
"devDependencies": {
|
|
64
66
|
"@commitlint/cli": "^18.0.0",
|
|
@@ -82,4 +84,4 @@
|
|
|
82
84
|
"Firefox >= 20",
|
|
83
85
|
"Android > 4.4"
|
|
84
86
|
]
|
|
85
|
-
}
|
|
87
|
+
}
|
|
@@ -12,7 +12,7 @@ export class DataDashboardModel {
|
|
|
12
12
|
label: string = '数据仪表板';
|
|
13
13
|
|
|
14
14
|
// 组件描述,用于设置在编辑器左侧组件面板中展示的描述
|
|
15
|
-
description: string = '
|
|
15
|
+
description: string = '使用 antd ui 组件实现的数据展示仪表板,支持动态数据更新和动画效果';
|
|
16
16
|
|
|
17
17
|
// 分类标签,用于设置在编辑器左侧组件面板哪个分类中展示
|
|
18
18
|
// tags: string[] = ['自定义组件'];
|
|
@@ -473,11 +473,11 @@
|
|
|
473
473
|
align-items: center;
|
|
474
474
|
gap: var(--space-md);
|
|
475
475
|
animation: gradientShift 3s ease infinite;
|
|
476
|
-
letter-spacing:
|
|
476
|
+
letter-spacing: 0.06em;
|
|
477
477
|
|
|
478
478
|
.ant-tag {
|
|
479
479
|
font-size: 14px;
|
|
480
|
-
font-weight:
|
|
480
|
+
font-weight: 500;
|
|
481
481
|
padding: 4px 12px;
|
|
482
482
|
border-radius: var(--radius-full);
|
|
483
483
|
border: none;
|
|
@@ -540,7 +540,7 @@
|
|
|
540
540
|
}
|
|
541
541
|
|
|
542
542
|
.user-name {
|
|
543
|
-
font-weight:
|
|
543
|
+
font-weight: 500;
|
|
544
544
|
color: var(--primary-color);
|
|
545
545
|
font-size: 16px;
|
|
546
546
|
}
|
|
@@ -629,7 +629,7 @@
|
|
|
629
629
|
.ant-statistic-title {
|
|
630
630
|
color: var(--text-secondary);
|
|
631
631
|
font-size: 14px;
|
|
632
|
-
font-weight:
|
|
632
|
+
font-weight: 500;
|
|
633
633
|
margin-bottom: var(--space-sm);
|
|
634
634
|
text-transform: uppercase;
|
|
635
635
|
letter-spacing: 0.5px;
|
|
@@ -678,7 +678,7 @@
|
|
|
678
678
|
var(--success-light)
|
|
679
679
|
);
|
|
680
680
|
border: none;
|
|
681
|
-
font-weight:
|
|
681
|
+
font-weight: 500;
|
|
682
682
|
font-size: 12px;
|
|
683
683
|
}
|
|
684
684
|
}
|
|
@@ -840,7 +840,7 @@
|
|
|
840
840
|
);
|
|
841
841
|
color: white;
|
|
842
842
|
border-radius: var(--radius-md);
|
|
843
|
-
font-weight:
|
|
843
|
+
font-weight: 500;
|
|
844
844
|
padding: var(--space-sm) var(--space-lg);
|
|
845
845
|
transition: all var(--duration-normal) var(--ease-in-out);
|
|
846
846
|
|
|
@@ -908,7 +908,7 @@
|
|
|
908
908
|
.ant-tag {
|
|
909
909
|
border: none;
|
|
910
910
|
border-radius: var(--radius-md);
|
|
911
|
-
font-weight:
|
|
911
|
+
font-weight: 500;
|
|
912
912
|
font-size: 12px;
|
|
913
913
|
padding: var(--space-xs) var(--space-sm);
|
|
914
914
|
|
|
@@ -1115,7 +1115,7 @@
|
|
|
1115
1115
|
|
|
1116
1116
|
.metric-name {
|
|
1117
1117
|
font-size: 14px;
|
|
1118
|
-
font-weight:
|
|
1118
|
+
font-weight: 500;
|
|
1119
1119
|
color: var(--text-primary);
|
|
1120
1120
|
text-transform: uppercase;
|
|
1121
1121
|
letter-spacing: 0.5px;
|
|
@@ -1249,13 +1249,13 @@
|
|
|
1249
1249
|
background-clip: text;
|
|
1250
1250
|
line-height: 1;
|
|
1251
1251
|
animation: gradientShift 3s ease infinite;
|
|
1252
|
-
letter-spacing:
|
|
1252
|
+
letter-spacing: 0.06em;
|
|
1253
1253
|
}
|
|
1254
1254
|
|
|
1255
1255
|
.unit {
|
|
1256
1256
|
font-size: 20px;
|
|
1257
1257
|
color: var(--text-secondary);
|
|
1258
|
-
font-weight:
|
|
1258
|
+
font-weight: 500;
|
|
1259
1259
|
text-transform: uppercase;
|
|
1260
1260
|
letter-spacing: 0.5px;
|
|
1261
1261
|
}
|
|
@@ -1469,7 +1469,7 @@
|
|
|
1469
1469
|
|
|
1470
1470
|
.ant-spin-text {
|
|
1471
1471
|
color: var(--text-primary);
|
|
1472
|
-
font-weight:
|
|
1472
|
+
font-weight: 500;
|
|
1473
1473
|
}
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
@@ -12,7 +12,7 @@ export class SearchWidgetModel {
|
|
|
12
12
|
label: string = '搜索组件';
|
|
13
13
|
|
|
14
14
|
// 组件描述,用于设置在编辑器左侧组件面板中展示的描述
|
|
15
|
-
description: string = '
|
|
15
|
+
description: string = '使用 antd ui 组件实现的支持搜索输入,点击回车键显示搜索内容';
|
|
16
16
|
|
|
17
17
|
// 分类标签,用于设置在编辑器左侧组件面板哪个分类中展示
|
|
18
18
|
// tags: string[] = ['自定义组件'];
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
.header-title {
|
|
40
40
|
font-size: 16px;
|
|
41
|
-
font-weight:
|
|
41
|
+
font-weight: 500;
|
|
42
42
|
color: #262626;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
.sidebar-label {
|
|
74
74
|
font-size: 11px;
|
|
75
|
-
font-weight:
|
|
75
|
+
font-weight: 500;
|
|
76
76
|
color: #bfbfbf;
|
|
77
77
|
text-transform: uppercase;
|
|
78
78
|
letter-spacing: 1px;
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
.card-name {
|
|
266
266
|
margin: 0;
|
|
267
267
|
font-size: 15px;
|
|
268
|
-
font-weight:
|
|
268
|
+
font-weight: 500;
|
|
269
269
|
color: #262626;
|
|
270
270
|
flex: 1;
|
|
271
271
|
overflow: hidden;
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
padding: 2px 10px;
|
|
315
315
|
border-radius: 10px;
|
|
316
316
|
font-size: 11px;
|
|
317
|
-
font-weight:
|
|
317
|
+
font-weight: 500;
|
|
318
318
|
white-space: nowrap;
|
|
319
319
|
flex-shrink: 0;
|
|
320
320
|
}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
align-items: center;
|
|
22
22
|
gap: 6px;
|
|
23
23
|
font-size: 15px;
|
|
24
|
-
font-weight:
|
|
24
|
+
font-weight: 500;
|
|
25
25
|
color: #262626;
|
|
26
26
|
|
|
27
27
|
.title-icon {
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
|
|
153
153
|
.meta-budget {
|
|
154
154
|
color: #1890ff;
|
|
155
|
-
font-weight:
|
|
155
|
+
font-weight: 500;
|
|
156
156
|
font-size: 13px;
|
|
157
157
|
}
|
|
158
158
|
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
.header-title {
|
|
25
25
|
margin: 0 0 4px;
|
|
26
26
|
font-size: 18px;
|
|
27
|
-
font-weight:
|
|
27
|
+
font-weight: 500;
|
|
28
28
|
color: #262626;
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
.ant-table {
|
|
110
110
|
.ant-table-thead > tr > th {
|
|
111
111
|
background: #fafafa;
|
|
112
|
-
font-weight:
|
|
112
|
+
font-weight: 500;
|
|
113
113
|
color: #262626;
|
|
114
114
|
font-size: 14px;
|
|
115
115
|
}
|
|
@@ -12,7 +12,7 @@ export class MapWidgetModel {
|
|
|
12
12
|
label: string = '地图组件';
|
|
13
13
|
|
|
14
14
|
// 组件描述,用于设置在编辑器左侧组件面板中展示的描述
|
|
15
|
-
description: string = '
|
|
15
|
+
description: string = '使用高德地图实现的地图区域展示组件,支持传入经纬度或地址名称';
|
|
16
16
|
|
|
17
17
|
// 分类标签,用于设置在编辑器左侧组件面板哪个分类中展示
|
|
18
18
|
// tags: string[] = ['自定义组件'];
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
.map-widget-title {
|
|
15
15
|
margin: 0 0 8px 0;
|
|
16
16
|
font-size: 18px;
|
|
17
|
-
font-weight:
|
|
17
|
+
font-weight: 500;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.map-widget-address {
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
|
|
129
129
|
.info-title {
|
|
130
130
|
font-size: 14px;
|
|
131
|
-
font-weight:
|
|
131
|
+
font-weight: 500;
|
|
132
132
|
color: #333;
|
|
133
133
|
margin-bottom: 8px;
|
|
134
134
|
}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
h1 {
|
|
28
28
|
font-size: 20px;
|
|
29
|
-
font-weight:
|
|
29
|
+
font-weight: 500;
|
|
30
30
|
margin-bottom: 4px;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
.tab-btn {
|
|
48
48
|
padding: 10px 24px;
|
|
49
49
|
font-size: 14px;
|
|
50
|
-
font-weight:
|
|
50
|
+
font-weight: 500;
|
|
51
51
|
cursor: pointer;
|
|
52
52
|
border: none;
|
|
53
53
|
background: none;
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
|
|
125
125
|
.stage-tab.active .stage-name {
|
|
126
126
|
color: #6366f1;
|
|
127
|
-
font-weight:
|
|
127
|
+
font-weight: 500;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
.stage-tab .stage-amount {
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
|
|
252
252
|
.bi-chart h3 {
|
|
253
253
|
font-size: 14px;
|
|
254
|
-
font-weight:
|
|
254
|
+
font-weight: 500;
|
|
255
255
|
margin-bottom: 16px;
|
|
256
256
|
}
|
|
257
257
|
|
|
@@ -275,7 +275,7 @@
|
|
|
275
275
|
justify-content: center;
|
|
276
276
|
color: #fff;
|
|
277
277
|
font-size: 11px;
|
|
278
|
-
font-weight:
|
|
278
|
+
font-weight: 500;
|
|
279
279
|
cursor: default;
|
|
280
280
|
transition: opacity 0.2s;
|
|
281
281
|
}
|
|
@@ -374,7 +374,7 @@
|
|
|
374
374
|
align-items: center;
|
|
375
375
|
margin-bottom: 12px;
|
|
376
376
|
font-size: 13px;
|
|
377
|
-
font-weight:
|
|
377
|
+
font-weight: 500;
|
|
378
378
|
}
|
|
379
379
|
|
|
380
380
|
.calendar-nav span {
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
|
|
398
398
|
.calendar-grid .day-header {
|
|
399
399
|
color: #999;
|
|
400
|
-
font-weight:
|
|
400
|
+
font-weight: 500;
|
|
401
401
|
padding: 6px 0;
|
|
402
402
|
}
|
|
403
403
|
|
|
@@ -444,7 +444,7 @@
|
|
|
444
444
|
color: #fff;
|
|
445
445
|
cursor: pointer;
|
|
446
446
|
font-size: 13px;
|
|
447
|
-
font-weight:
|
|
447
|
+
font-weight: 500;
|
|
448
448
|
}
|
|
449
449
|
|
|
450
450
|
.date-picker-footer button:hover {
|
|
@@ -520,7 +520,7 @@
|
|
|
520
520
|
padding: 6px 14px;
|
|
521
521
|
font-size: 11px;
|
|
522
522
|
color: #999;
|
|
523
|
-
font-weight:
|
|
523
|
+
font-weight: 500;
|
|
524
524
|
text-transform: uppercase;
|
|
525
525
|
letter-spacing: 0.5px;
|
|
526
526
|
}
|
|
@@ -542,7 +542,7 @@
|
|
|
542
542
|
.owner-item.selected {
|
|
543
543
|
background: #f0f0ff;
|
|
544
544
|
color: #6366f1;
|
|
545
|
-
font-weight:
|
|
545
|
+
font-weight: 500;
|
|
546
546
|
}
|
|
547
547
|
|
|
548
548
|
.owner-icon {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export class FilterBarModel {
|
|
2
2
|
label: string = '筛选栏';
|
|
3
|
-
description: string =
|
|
3
|
+
description: string =
|
|
4
|
+
'筛选工具栏,支持日期范围、负责人、业务类型等多维度筛选';
|
|
4
5
|
iconUrl: string = 'https://custom-widgets.bj.bcebos.com/filter.svg';
|
|
5
6
|
targetPage: string[] = ['all'];
|
|
6
7
|
targetDevice: string = 'all';
|
|
@@ -35,6 +35,7 @@ interface FieldDesc {
|
|
|
35
35
|
* 自定义样式配置接口
|
|
36
36
|
*/
|
|
37
37
|
interface TargetNumberStyle {
|
|
38
|
+
headerTitle?: string;
|
|
38
39
|
baseStyle?: {
|
|
39
40
|
backgroundColor?: string;
|
|
40
41
|
paddingMargin?: {
|
|
@@ -77,6 +78,8 @@ interface TargetNumberProps {
|
|
|
77
78
|
entityApiKey?: EntityApiKey;
|
|
78
79
|
/** 绑定的字段描述信息数组 */
|
|
79
80
|
selectFieldDesc?: FieldDesc[];
|
|
81
|
+
/** 标题文案(与 targetNumberStyle.titleStyle 联用) */
|
|
82
|
+
headerTitle?: string;
|
|
80
83
|
/** 自定义样式配置 */
|
|
81
84
|
targetNumberStyle?: TargetNumberStyle;
|
|
82
85
|
/** 数值格式化函数 */
|
|
@@ -287,7 +290,7 @@ class TargetNumber extends BaseCmp<TargetNumberProps, TargetNumberState> {
|
|
|
287
290
|
*/
|
|
288
291
|
render() {
|
|
289
292
|
const { targetNumbers, loading, error } = this.state;
|
|
290
|
-
const { className, targetNumberStyle = {} } = this.props;
|
|
293
|
+
const { className, targetNumberStyle = {}, headerTitle } = this.props;
|
|
291
294
|
|
|
292
295
|
console.log('TargetNumber:', this.props);
|
|
293
296
|
|
|
@@ -337,8 +340,8 @@ class TargetNumber extends BaseCmp<TargetNumberProps, TargetNumberState> {
|
|
|
337
340
|
const numberTitleStyle: React.CSSProperties = {
|
|
338
341
|
fontSize: numberTitleStyleConfig?.fontSize
|
|
339
342
|
? `${numberTitleStyleConfig.fontSize}px`
|
|
340
|
-
: '
|
|
341
|
-
fontWeight: numberTitleStyleConfig?.fontWeight ||
|
|
343
|
+
: '16px',
|
|
344
|
+
fontWeight: numberTitleStyleConfig?.fontWeight || 500,
|
|
342
345
|
color: numberTitleStyleConfig?.color || '#8c8c8c',
|
|
343
346
|
};
|
|
344
347
|
|
|
@@ -348,10 +351,12 @@ class TargetNumber extends BaseCmp<TargetNumberProps, TargetNumberState> {
|
|
|
348
351
|
fontSize:
|
|
349
352
|
titleStyleConfig?.fontSize != null
|
|
350
353
|
? `${titleStyleConfig.fontSize}px`
|
|
351
|
-
:
|
|
352
|
-
fontWeight: titleStyleConfig?.fontWeight ??
|
|
353
|
-
color: titleStyleConfig?.color || '#
|
|
354
|
-
|
|
354
|
+
: undefined,
|
|
355
|
+
fontWeight: titleStyleConfig?.fontWeight ?? 500,
|
|
356
|
+
color: titleStyleConfig?.color || '#1f1f1f',
|
|
357
|
+
...(titleStyleConfig?.backgroundColor
|
|
358
|
+
? { backgroundColor: titleStyleConfig.backgroundColor }
|
|
359
|
+
: {}),
|
|
355
360
|
};
|
|
356
361
|
|
|
357
362
|
// 渲染单个数值块
|
|
@@ -407,7 +412,7 @@ class TargetNumber extends BaseCmp<TargetNumberProps, TargetNumberState> {
|
|
|
407
412
|
>
|
|
408
413
|
{showTitle && (titleStyleConfig?.text ?? '') !== '' && (
|
|
409
414
|
<div className="target-number-title" style={titleStyle}>
|
|
410
|
-
{titleStyleConfig?.text}
|
|
415
|
+
{headerTitle || titleStyleConfig?.text}
|
|
411
416
|
</div>
|
|
412
417
|
)}
|
|
413
418
|
<div className="target-number-block multiple-fields">
|
|
@@ -20,7 +20,7 @@ export class TargetNumberModel {
|
|
|
20
20
|
|
|
21
21
|
/** 组件描述,用于设置在编辑器左侧组件面板中展示的描述 */
|
|
22
22
|
description: string =
|
|
23
|
-
'
|
|
23
|
+
'关键数值指标展示卡片,支持从 XObject 实体对象获取动态数据,支持绑定多个字段进行展示';
|
|
24
24
|
|
|
25
25
|
/** 分类标签,用于设置在编辑器左侧组件面板哪个分类中展示 */
|
|
26
26
|
// tags: string[] = ['自定义组件'];
|
|
@@ -50,6 +50,7 @@ export class TargetNumberModel {
|
|
|
50
50
|
/** 初次插入页面的默认属性数据 */
|
|
51
51
|
defaultComProps = {
|
|
52
52
|
entityApiKey: '',
|
|
53
|
+
headerTitle: '关键数据',
|
|
53
54
|
targetNumberStyle: {
|
|
54
55
|
baseStyle: {
|
|
55
56
|
backgroundColor: '#ffffff',
|
|
@@ -63,9 +64,9 @@ export class TargetNumberModel {
|
|
|
63
64
|
},
|
|
64
65
|
titleStyle: {
|
|
65
66
|
show: true,
|
|
66
|
-
text: '
|
|
67
|
-
fontSize:
|
|
68
|
-
fontWeight:
|
|
67
|
+
text: '关键数据',
|
|
68
|
+
fontSize: 16,
|
|
69
|
+
fontWeight: 500,
|
|
69
70
|
color: '#333',
|
|
70
71
|
backgroundColor: '#eaf3fc',
|
|
71
72
|
},
|
|
@@ -97,6 +98,11 @@ export class TargetNumberModel {
|
|
|
97
98
|
* 定义组件在编辑器中可配置的属性
|
|
98
99
|
*/
|
|
99
100
|
propsSchema = [
|
|
101
|
+
{
|
|
102
|
+
type: 'panelInput',
|
|
103
|
+
name: 'headerTitle',
|
|
104
|
+
label: 'Header 标题',
|
|
105
|
+
},
|
|
100
106
|
{
|
|
101
107
|
type: 'xObjectDetailApi',
|
|
102
108
|
name: 'entityApiKey',
|