@oliasoft-open-source/react-ui-library 5.7.0-beta-13 → 5.7.0-beta-15
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/index.js +15 -53
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8316,7 +8316,8 @@ const createDiffPatcher = (e = {}) => create({
|
|
|
8316
8316
|
minLength: 120
|
|
8317
8317
|
},
|
|
8318
8318
|
cloneDiffValues: !0
|
|
8319
|
-
})
|
|
8319
|
+
});
|
|
8320
|
+
var sectionMap = Object.fromEntries([
|
|
8320
8321
|
{
|
|
8321
8322
|
sectionKey: "hierarchy",
|
|
8322
8323
|
sectionLabel: "Hierarchy"
|
|
@@ -8330,17 +8331,9 @@ const createDiffPatcher = (e = {}) => create({
|
|
|
8330
8331
|
sectionLabel: "Hierarchy Optional Parameters"
|
|
8331
8332
|
},
|
|
8332
8333
|
{
|
|
8333
|
-
sectionKey: "
|
|
8334
|
+
sectionKey: "appearance",
|
|
8334
8335
|
sectionLabel: "General"
|
|
8335
8336
|
},
|
|
8336
|
-
{
|
|
8337
|
-
sectionKey: "generalAppearance",
|
|
8338
|
-
sectionLabel: "General — Appearance"
|
|
8339
|
-
},
|
|
8340
|
-
{
|
|
8341
|
-
sectionKey: "generalUnitSettings",
|
|
8342
|
-
sectionLabel: "General — Unit Settings"
|
|
8343
|
-
},
|
|
8344
8337
|
{
|
|
8345
8338
|
sectionKey: "generalUnitPrecision",
|
|
8346
8339
|
sectionLabel: "General — Unit Precision"
|
|
@@ -8357,26 +8350,6 @@ const createDiffPatcher = (e = {}) => create({
|
|
|
8357
8350
|
sectionKey: "casingDesign",
|
|
8358
8351
|
sectionLabel: "Casing Design"
|
|
8359
8352
|
},
|
|
8360
|
-
{
|
|
8361
|
-
sectionKey: "casingDesignFactors",
|
|
8362
|
-
sectionLabel: "Casing Design — Factors"
|
|
8363
|
-
},
|
|
8364
|
-
{
|
|
8365
|
-
sectionKey: "casingDesignKickTolerance",
|
|
8366
|
-
sectionLabel: "Casing Design — Kick Tolerance"
|
|
8367
|
-
},
|
|
8368
|
-
{
|
|
8369
|
-
sectionKey: "casingDesignStressAnalysisOptions",
|
|
8370
|
-
sectionLabel: "Casing Design — Stress Analysis Options"
|
|
8371
|
-
},
|
|
8372
|
-
{
|
|
8373
|
-
sectionKey: "casingDesignLoadsDefaultConfig",
|
|
8374
|
-
sectionLabel: "Casing Design — Loads Default Config"
|
|
8375
|
-
},
|
|
8376
|
-
{
|
|
8377
|
-
sectionKey: "casingDesignMultipleFlowSimulations",
|
|
8378
|
-
sectionLabel: "Casing Design — Multiple Flow Simulations"
|
|
8379
|
-
},
|
|
8380
8353
|
{
|
|
8381
8354
|
sectionKey: "annularFluidExpansion",
|
|
8382
8355
|
sectionLabel: "Annular Fluid Expansion"
|
|
@@ -8386,24 +8359,8 @@ const createDiffPatcher = (e = {}) => create({
|
|
|
8386
8359
|
sectionLabel: "Drilling Mechanics"
|
|
8387
8360
|
},
|
|
8388
8361
|
{
|
|
8389
|
-
sectionKey: "
|
|
8390
|
-
sectionLabel: "Drilling Mechanics
|
|
8391
|
-
},
|
|
8392
|
-
{
|
|
8393
|
-
sectionKey: "drillingMechanicsHydraulics",
|
|
8394
|
-
sectionLabel: "Drilling Mechanics — Hydraulics"
|
|
8395
|
-
},
|
|
8396
|
-
{
|
|
8397
|
-
sectionKey: "drillingMechanicsSurgeAndSwab",
|
|
8398
|
-
sectionLabel: "Drilling Mechanics — Surge & Swab"
|
|
8399
|
-
},
|
|
8400
|
-
{
|
|
8401
|
-
sectionKey: "drillingMechanicsTorqueAndDrag",
|
|
8402
|
-
sectionLabel: "Drilling Mechanics — Torque & Drag"
|
|
8403
|
-
},
|
|
8404
|
-
{
|
|
8405
|
-
sectionKey: "drillingMechanicsWear",
|
|
8406
|
-
sectionLabel: "Drilling Mechanics — Wear"
|
|
8362
|
+
sectionKey: "wear",
|
|
8363
|
+
sectionLabel: "Drilling Mechanics"
|
|
8407
8364
|
},
|
|
8408
8365
|
{
|
|
8409
8366
|
sectionKey: "tempsim",
|
|
@@ -8421,7 +8378,14 @@ const createDiffPatcher = (e = {}) => create({
|
|
|
8421
8378
|
sectionKey: "webhooks",
|
|
8422
8379
|
sectionLabel: "Webhooks"
|
|
8423
8380
|
}
|
|
8424
|
-
]
|
|
8381
|
+
].map((e) => [e.sectionKey, e.sectionLabel]));
|
|
8382
|
+
const getSectionName = (e) => {
|
|
8383
|
+
for (let t = e.length - 1; t >= 0; t--) {
|
|
8384
|
+
let n = e[t], r = sectionMap[n];
|
|
8385
|
+
if (r) return r;
|
|
8386
|
+
}
|
|
8387
|
+
return "";
|
|
8388
|
+
}, defaultMessage = (e) => {
|
|
8425
8389
|
switch (e.length) {
|
|
8426
8390
|
case 1: {
|
|
8427
8391
|
let [t] = e;
|
|
@@ -8462,11 +8426,9 @@ const createDiffPatcher = (e = {}) => create({
|
|
|
8462
8426
|
{ value: "" }
|
|
8463
8427
|
] }],
|
|
8464
8428
|
rows: e.map((e) => {
|
|
8465
|
-
let { deltaFormat: t, path: n } = e, r = getSectionName(n);
|
|
8466
|
-
console.log(n, r);
|
|
8467
|
-
let { type: i, before: a, after: o } = defaultMessage(t), s = n.length > 0 ? n[n.length - 1] : "";
|
|
8429
|
+
let { deltaFormat: t, path: n } = e, r = getSectionName(n), { type: i, before: a, after: o } = defaultMessage(t);
|
|
8468
8430
|
return { cells: [
|
|
8469
|
-
{ value:
|
|
8431
|
+
{ value: i },
|
|
8470
8432
|
{ value: a },
|
|
8471
8433
|
{ value: o },
|
|
8472
8434
|
{ value: r }
|
package/package.json
CHANGED