@oliasoft-open-source/react-ui-library 5.7.0-beta-13 → 5.7.0-beta-14

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -48
  2. 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
- }), sectionNames = [
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: "general",
8334
- sectionLabel: "General"
8335
- },
8336
- {
8337
- sectionKey: "generalAppearance",
8334
+ sectionKey: "appearance",
8338
8335
  sectionLabel: "General — Appearance"
8339
8336
  },
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,23 +8359,7 @@ const createDiffPatcher = (e = {}) => create({
8386
8359
  sectionLabel: "Drilling Mechanics"
8387
8360
  },
8388
8361
  {
8389
- sectionKey: "drillingMechanicsGeneral",
8390
- sectionLabel: "Drilling Mechanics — General"
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",
8362
+ sectionKey: "wear",
8406
8363
  sectionLabel: "Drilling Mechanics — Wear"
8407
8364
  },
8408
8365
  {
@@ -8421,7 +8378,14 @@ const createDiffPatcher = (e = {}) => create({
8421
8378
  sectionKey: "webhooks",
8422
8379
  sectionLabel: "Webhooks"
8423
8380
  }
8424
- ], getSectionName = (e) => sectionNames.find((t) => e.find((e) => e.includes(t.sectionKey)))?.sectionLabel || "", defaultMessage = (e) => {
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "5.7.0-beta-13",
3
+ "version": "5.7.0-beta-14",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {