@corva/ui 3.13.0-4 → 3.13.0-6
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/cjs-bundle/components/NewDocumentViewer/utils.js +1 -1
- package/cjs-bundle/constants/assetTypes.js +1 -1
- package/cjs-bundle/constants/assetTypes.js.map +1 -1
- package/components/NewDocumentViewer/utils.d.ts +1 -1
- package/components/NewDocumentViewer/utils.d.ts.map +1 -1
- package/components/NewDocumentViewer/utils.js +1 -1
- package/constants/assetTypes.js +1 -1
- package/constants/assetTypes.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),t=require("papaparse");function r(e){
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),t=require("papaparse");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=r(require("read-excel-file"));exports.getCsvData=function(r){return e.__awaiter(void 0,void 0,void 0,(function(){var n;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,fetch(r)];case 1:return[4,e.sent().text()];case 2:return n=e.sent(),[2,(a=n,t.parse(a,{header:!0,dynamicTyping:!0,skipEmptyLines:!0}).data)]}var a}))}))},exports.getTextData=function(t){return e.__awaiter(void 0,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,fetch(t)];case 1:return[4,e.sent().text()];case 2:return[2,e.sent()]}}))}))},exports.getXlsxData=function(t){return e.__awaiter(void 0,void 0,void 0,(function(){var r,a;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,fetch(t)];case 1:return[4,e.sent().arrayBuffer()];case 2:return r=e.sent(),[4,n.default(r)];case 3:return[2,null==(a=e.sent())?void 0:a.map((function(e){return null==e?void 0:e.map((function(e){return String(e||"")}))}))]}}))}))};
|
|
2
2
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.ASSET_TYPES={program:{label:"Program/BU",type:"program",id:"programId"},rig:{label:"Rig",type:"rig",id:"rigId"},well:{label:"Well",type:"well",id:"wellId"},asset:{label:"Asset",type:"asset",id:"assetId"},frac_fleet:{label:"Frac Fleet",type:"frac_fleet",id:"fracFleetId"},pad:{label:"Pad",type:"pad",id:"padId"},drillout_unit:{label:"Drillout Unit",type:"drillout_unit",id:"drilloutUnitId"},intervention_unit:{label:"Intervention
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.ASSET_TYPES={program:{label:"Program/BU",type:"program",id:"programId"},rig:{label:"Rig",type:"rig",id:"rigId"},well:{label:"Well",type:"well",id:"wellId"},asset:{label:"Asset",type:"asset",id:"assetId"},frac_fleet:{label:"Frac Fleet",type:"frac_fleet",id:"fracFleetId"},pad:{label:"Pad",type:"pad",id:"padId"},drillout_unit:{label:"Drillout Unit",type:"drillout_unit",id:"drilloutUnitId"},intervention_unit:{label:"Intervention",type:"intervention_unit",id:"interventionUnitId"}};
|
|
2
2
|
//# sourceMappingURL=assetTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assetTypes.js","sources":["../../../src/constants/assetTypes.js"],"sourcesContent":["export const ASSET_TYPES = {\n program: {\n label: 'Program/BU',\n type: 'program',\n id: 'programId',\n },\n rig: {\n label: 'Rig',\n type: 'rig',\n id: 'rigId',\n },\n well: {\n label: 'Well',\n type: 'well',\n id: 'wellId',\n },\n asset: {\n label: 'Asset',\n type: 'asset',\n id: 'assetId',\n },\n frac_fleet: {\n label: 'Frac Fleet',\n type: 'frac_fleet',\n id: 'fracFleetId',\n },\n pad: {\n label: 'Pad',\n type: 'pad',\n id: 'padId',\n },\n drillout_unit: {\n label: 'Drillout Unit',\n type: 'drillout_unit',\n id: 'drilloutUnitId',\n },\n intervention_unit: {\n label: 'Intervention
|
|
1
|
+
{"version":3,"file":"assetTypes.js","sources":["../../../src/constants/assetTypes.js"],"sourcesContent":["export const ASSET_TYPES = {\n program: {\n label: 'Program/BU',\n type: 'program',\n id: 'programId',\n },\n rig: {\n label: 'Rig',\n type: 'rig',\n id: 'rigId',\n },\n well: {\n label: 'Well',\n type: 'well',\n id: 'wellId',\n },\n asset: {\n label: 'Asset',\n type: 'asset',\n id: 'assetId',\n },\n frac_fleet: {\n label: 'Frac Fleet',\n type: 'frac_fleet',\n id: 'fracFleetId',\n },\n pad: {\n label: 'Pad',\n type: 'pad',\n id: 'padId',\n },\n drillout_unit: {\n label: 'Drillout Unit',\n type: 'drillout_unit',\n id: 'drilloutUnitId',\n },\n intervention_unit: {\n label: 'Intervention',\n type: 'intervention_unit',\n id: 'interventionUnitId',\n },\n};\n"],"names":["program","label","type","id","rig","well","asset","frac_fleet","pad","drillout_unit","intervention_unit"],"mappings":"wFAA2B,CACzBA,QAAS,CACPC,MAAO,aACPC,KAAM,UACNC,GAAI,aAENC,IAAK,CACHH,MAAO,MACPC,KAAM,MACNC,GAAI,SAENE,KAAM,CACJJ,MAAO,OACPC,KAAM,OACNC,GAAI,UAENG,MAAO,CACLL,MAAO,QACPC,KAAM,QACNC,GAAI,WAENI,WAAY,CACVN,MAAO,aACPC,KAAM,aACNC,GAAI,eAENK,IAAK,CACHP,MAAO,MACPC,KAAM,MACNC,GAAI,SAENM,cAAe,CACbR,MAAO,gBACPC,KAAM,gBACNC,GAAI,kBAENO,kBAAmB,CACjBT,MAAO,eACPC,KAAM,oBACNC,GAAI"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const getCsvData: (fileUrl: string) => Promise<object[]>;
|
|
2
2
|
export declare const getTextData: (fileUrl: string) => Promise<string>;
|
|
3
|
-
export declare const getXlsxData: (fileUrl: string) => Promise<string>;
|
|
3
|
+
export declare const getXlsxData: (fileUrl: string) => Promise<string[][]>;
|
|
4
4
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/NewDocumentViewer/utils.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,UAAU,YAAmB,MAAM,KAAG,OAAO,CAAC,MAAM,EAAE,CAKlE,CAAC;AAEF,eAAO,MAAM,WAAW,YAAmB,MAAM,KAAG,OAAO,CAAC,MAAM,CAIjE,CAAC;AAEF,eAAO,MAAM,WAAW,YAAmB,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/NewDocumentViewer/utils.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,UAAU,YAAmB,MAAM,KAAG,OAAO,CAAC,MAAM,EAAE,CAKlE,CAAC;AAEF,eAAO,MAAM,WAAW,YAAmB,MAAM,KAAG,OAAO,CAAC,MAAM,CAIjE,CAAC;AAEF,eAAO,MAAM,WAAW,YAAmB,MAAM,wBAKhD,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as e}from'./../../ext-esm/tslib/tslib.es6.js';import{parse as
|
|
1
|
+
import{__awaiter as t,__generator as e}from'./../../ext-esm/tslib/tslib.es6.js';import{parse as n}from"papaparse";import r from"read-excel-file";var i=function(r){return t(void 0,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,fetch(r)];case 1:return[4,e.sent().text()];case 2:return t=e.sent(),[2,(i=t,n(i,{header:!0,dynamicTyping:!0,skipEmptyLines:!0}).data)]}var i}))}))},u=function(n){return t(void 0,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,fetch(n)];case 1:return[4,t.sent().text()];case 2:return[2,t.sent()]}}))}))},o=function(n){return t(void 0,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return[4,fetch(n)];case 1:return[4,e.sent().arrayBuffer()];case 2:return t=e.sent(),[4,r(t)];case 3:return[2,null==(i=e.sent())?void 0:i.map((function(t){return null==t?void 0:t.map((function(t){return String(t||"")}))}))]}}))}))};export{i as getCsvData,u as getTextData,o as getXlsxData};
|
|
2
2
|
//# sourceMappingURL=utils.js.map
|
package/constants/assetTypes.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={program:{label:"Program/BU",type:"program",id:"programId"},rig:{label:"Rig",type:"rig",id:"rigId"},well:{label:"Well",type:"well",id:"wellId"},asset:{label:"Asset",type:"asset",id:"assetId"},frac_fleet:{label:"Frac Fleet",type:"frac_fleet",id:"fracFleetId"},pad:{label:"Pad",type:"pad",id:"padId"},drillout_unit:{label:"Drillout Unit",type:"drillout_unit",id:"drilloutUnitId"},intervention_unit:{label:"Intervention
|
|
1
|
+
var e={program:{label:"Program/BU",type:"program",id:"programId"},rig:{label:"Rig",type:"rig",id:"rigId"},well:{label:"Well",type:"well",id:"wellId"},asset:{label:"Asset",type:"asset",id:"assetId"},frac_fleet:{label:"Frac Fleet",type:"frac_fleet",id:"fracFleetId"},pad:{label:"Pad",type:"pad",id:"padId"},drillout_unit:{label:"Drillout Unit",type:"drillout_unit",id:"drilloutUnitId"},intervention_unit:{label:"Intervention",type:"intervention_unit",id:"interventionUnitId"}};export{e as ASSET_TYPES};
|
|
2
2
|
//# sourceMappingURL=assetTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assetTypes.js","sources":["../../src/constants/assetTypes.js"],"sourcesContent":["export const ASSET_TYPES = {\n program: {\n label: 'Program/BU',\n type: 'program',\n id: 'programId',\n },\n rig: {\n label: 'Rig',\n type: 'rig',\n id: 'rigId',\n },\n well: {\n label: 'Well',\n type: 'well',\n id: 'wellId',\n },\n asset: {\n label: 'Asset',\n type: 'asset',\n id: 'assetId',\n },\n frac_fleet: {\n label: 'Frac Fleet',\n type: 'frac_fleet',\n id: 'fracFleetId',\n },\n pad: {\n label: 'Pad',\n type: 'pad',\n id: 'padId',\n },\n drillout_unit: {\n label: 'Drillout Unit',\n type: 'drillout_unit',\n id: 'drilloutUnitId',\n },\n intervention_unit: {\n label: 'Intervention
|
|
1
|
+
{"version":3,"file":"assetTypes.js","sources":["../../src/constants/assetTypes.js"],"sourcesContent":["export const ASSET_TYPES = {\n program: {\n label: 'Program/BU',\n type: 'program',\n id: 'programId',\n },\n rig: {\n label: 'Rig',\n type: 'rig',\n id: 'rigId',\n },\n well: {\n label: 'Well',\n type: 'well',\n id: 'wellId',\n },\n asset: {\n label: 'Asset',\n type: 'asset',\n id: 'assetId',\n },\n frac_fleet: {\n label: 'Frac Fleet',\n type: 'frac_fleet',\n id: 'fracFleetId',\n },\n pad: {\n label: 'Pad',\n type: 'pad',\n id: 'padId',\n },\n drillout_unit: {\n label: 'Drillout Unit',\n type: 'drillout_unit',\n id: 'drilloutUnitId',\n },\n intervention_unit: {\n label: 'Intervention',\n type: 'intervention_unit',\n id: 'interventionUnitId',\n },\n};\n"],"names":["ASSET_TYPES","program","label","type","id","rig","well","asset","frac_fleet","pad","drillout_unit","intervention_unit"],"mappings":"AAAO,IAAMA,EAAc,CACzBC,QAAS,CACPC,MAAO,aACPC,KAAM,UACNC,GAAI,aAENC,IAAK,CACHH,MAAO,MACPC,KAAM,MACNC,GAAI,SAENE,KAAM,CACJJ,MAAO,OACPC,KAAM,OACNC,GAAI,UAENG,MAAO,CACLL,MAAO,QACPC,KAAM,QACNC,GAAI,WAENI,WAAY,CACVN,MAAO,aACPC,KAAM,aACNC,GAAI,eAENK,IAAK,CACHP,MAAO,MACPC,KAAM,MACNC,GAAI,SAENM,cAAe,CACbR,MAAO,gBACPC,KAAM,gBACNC,GAAI,kBAENO,kBAAmB,CACjBT,MAAO,eACPC,KAAM,oBACNC,GAAI"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corva/ui",
|
|
3
|
-
"version": "3.13.0-
|
|
3
|
+
"version": "3.13.0-6",
|
|
4
4
|
"description": "Shared components/utils for Corva ui projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"corva-ui"
|
|
@@ -160,6 +160,7 @@
|
|
|
160
160
|
"react-sortable-hoc": "0.6.8",
|
|
161
161
|
"react-virtualized": "9.21.2",
|
|
162
162
|
"react-virtualized-auto-sizer": "1.0.2",
|
|
163
|
+
"read-excel-file": "^5.8.7",
|
|
163
164
|
"resize-observer-polyfill": "^1.5.1",
|
|
164
165
|
"rollbar": "^2.26.1",
|
|
165
166
|
"semver": "7.6.2",
|
|
@@ -170,8 +171,7 @@
|
|
|
170
171
|
"tinygradient": "1.1.5",
|
|
171
172
|
"uuid": "3.4.0",
|
|
172
173
|
"validate-color": "^2.2.1",
|
|
173
|
-
"video-extensions": "1.1.0"
|
|
174
|
-
"xlsx": "0.12.13"
|
|
174
|
+
"video-extensions": "1.1.0"
|
|
175
175
|
},
|
|
176
176
|
"devDependencies": {
|
|
177
177
|
"@babel/core": "^7.12.10",
|