@sap/ux-ui5-tooling 1.12.1 → 1.12.3
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/CHANGELOG.md +11 -0
- package/dist/cli/index.js +832 -4662
- package/dist/markdowns/add/add.en.md +1 -1
- package/dist/middlewares/fiori-tools-appreload.js +183 -111
- package/dist/middlewares/fiori-tools-preview.js +645 -394
- package/dist/middlewares/fiori-tools-proxy.js +5020 -7718
- package/dist/tasks/cf-deploy/index.js +668 -414
- package/dist/tasks/deploy/index.js +3699 -7531
- package/package.json +14 -13
|
@@ -2366,7 +2366,7 @@ var require_application = __commonJS({
|
|
|
2366
2366
|
"../lib/sapux-spec/dist/application.js"(exports2) {
|
|
2367
2367
|
"use strict";
|
|
2368
2368
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2369
|
-
exports2.AppPomXmlArtifactIdPlaceholder = exports2.AppType = exports2.RootIntent = exports2.
|
|
2369
|
+
exports2.AppPomXmlArtifactIdPlaceholder = exports2.AppType = exports2.RootIntent = exports2.OdataVersion = exports2.FioriElementsVersion = void 0;
|
|
2370
2370
|
var FioriElementsVersion3;
|
|
2371
2371
|
(function(FioriElementsVersion4) {
|
|
2372
2372
|
FioriElementsVersion4["v2"] = "v2";
|
|
@@ -2377,10 +2377,6 @@ var require_application = __commonJS({
|
|
|
2377
2377
|
OdataVersion3["v2"] = "v2";
|
|
2378
2378
|
OdataVersion3["v4"] = "v4";
|
|
2379
2379
|
})(OdataVersion2 || (exports2.OdataVersion = OdataVersion2 = {}));
|
|
2380
|
-
var PageHeaderType;
|
|
2381
|
-
(function(PageHeaderType2) {
|
|
2382
|
-
PageHeaderType2["Dynamic"] = "Dynamic";
|
|
2383
|
-
})(PageHeaderType || (exports2.PageHeaderType = PageHeaderType = {}));
|
|
2384
2380
|
var RootIntent;
|
|
2385
2381
|
(function(RootIntent2) {
|
|
2386
2382
|
RootIntent2["listReportV2"] = "masterDetail-display";
|
|
@@ -2499,35 +2495,35 @@ var require_common = __commonJS({
|
|
|
2499
2495
|
var Ke = Object.getOwnPropertyNames;
|
|
2500
2496
|
var Ye = Object.prototype.hasOwnProperty;
|
|
2501
2497
|
var d = (x, p) => {
|
|
2502
|
-
for (var
|
|
2503
|
-
P(x,
|
|
2498
|
+
for (var t in p)
|
|
2499
|
+
P(x, t, { get: p[t], enumerable: true });
|
|
2504
2500
|
};
|
|
2505
|
-
var
|
|
2501
|
+
var Ne = (x, p, t, o) => {
|
|
2506
2502
|
if (p && typeof p == "object" || typeof p == "function")
|
|
2507
2503
|
for (let n of Ke(p))
|
|
2508
|
-
!Ye.call(x, n) && n !==
|
|
2504
|
+
!Ye.call(x, n) && n !== t && P(x, n, { get: () => p[n], enumerable: !(o = Qe(p, n)) || o.enumerable });
|
|
2509
2505
|
return x;
|
|
2510
2506
|
};
|
|
2511
|
-
var
|
|
2512
|
-
var
|
|
2513
|
-
d(
|
|
2514
|
-
module2.exports =
|
|
2515
|
-
var
|
|
2516
|
-
var
|
|
2517
|
-
var qe = { ...
|
|
2507
|
+
var ze = (x) => Ne(P({}, "__esModule", { value: true }), x);
|
|
2508
|
+
var _t = {};
|
|
2509
|
+
d(_t, { ALPViewType: () => j, ActionTitlePrefix: () => Ze, ActionType: () => h, ArtifactType: () => v, BindingPropertyRegexAsString: () => De, ControlType: () => I, CustomExtensionType: () => D, DATESETTINGSPATH: () => pt, DataSourceType: () => z, DefinitionName: () => B, DirName: () => w, DraftDiscardEnabledSettings: () => Q, ExportArtifacts: () => L, FIORI_FCL_ROOT_ID: () => mt, FIORI_FCL_ROOT_VIEW_NAME: () => gt2, FRAGMENTNAMEPART: () => ct, FacetBase: () => _45, FacetTitlePrefix: () => $e, Features: () => ee, FileName: () => M, FioriElementsVersion: () => E, FlexChangeLayer: () => V, FlexibleColumnLayoutAggregations: () => N, FlexibleColumnLayoutType: () => y, GENERICAPPSETTINGS: () => lt, LogSeverity: () => $, LogSeverityLabel: () => ut, MANIFESTPATH: () => et, MacrosPropertyType: () => X, ManifestSection: () => q, OdataVersion: () => O, PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP: () => Je, PageType: () => qe, PageTypeV2: () => C, PageTypeV4: () => A, PropertyName: () => G, QUICKVARPATH: () => rt, QUICKVARPATHX: () => st, SAPUI5_FRAGMENT_CLASS: () => St, SAPUI5_VIEW_CLASS: () => bt, SchemaKeyName: () => W, SchemaTag: () => H, SchemaType: () => F, SectionType: () => R, StatePreservationMode: () => Y, TableColumnVerticalAlignment: () => K, TemplateType: () => Z, UIVOCABULARY: () => at, UIVOCABULARYALPHADOT: () => it, UIVOCABULARYDOT: () => nt, VOCWITHCOLONS: () => ot, VOCWITHSLASH: () => tt, ViewTemplateType: () => k, ViewTypes: () => J, Visualization: () => U, v2: () => f, v4: () => T });
|
|
2510
|
+
module2.exports = ze(_t);
|
|
2511
|
+
var C = ((r) => (r.ObjectPage = "ObjectPage", r.ListReport = "ListReport", r.OverviewPage = "OverviewPage", r.CustomPage = "CustomPage", r.AnalyticalListPage = "AnalyticalListPage", r))(C || {});
|
|
2512
|
+
var A = ((r) => (r.ObjectPage = "ObjectPage", r.ListReport = "ListReport", r.CustomPage = "CustomPage", r.FPMCustomPage = "FPMCustomPage", r.AnalyticalListPage = "AnalyticalListPage", r))(A || {});
|
|
2513
|
+
var qe = { ...C, ...A };
|
|
2518
2514
|
var Je = /* @__PURE__ */ new Map([["ListReport", "sap.suite.ui.generic.template.ListReport.view.ListReport"], ["AnalyticalListPage", "sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"], ["ObjectPage", "sap.suite.ui.generic.template.ObjectPage.view.Details"]]);
|
|
2519
|
-
var E = ((
|
|
2520
|
-
var
|
|
2521
|
-
var
|
|
2522
|
-
var V = ((
|
|
2515
|
+
var E = ((t) => (t.v2 = "v2", t.v4 = "v4", t))(E || {});
|
|
2516
|
+
var O = ((t) => (t.v2 = "v2", t.v4 = "v4", t))(O || {});
|
|
2517
|
+
var y = ((m) => (m.OneColumn = "OneColumn", m.TwoColumnsBeginExpanded = "TwoColumnsBeginExpanded", m.TwoColumnsMidExpanded = "TwoColumnsMidExpanded", m.MidColumnFullScreen = "MidColumnFullScreen", m.ThreeColumnsMidExpanded = "ThreeColumnsMidExpanded", m.ThreeColumnsEndExpanded = "ThreeColumnsEndExpanded", m.ThreeColumnsMidExpandedEndHidden = "ThreeColumnsMidExpandedEndHidden", m.ThreeColumnsBeginExpandedEndHidden = "ThreeColumnsBeginExpandedEndHidden", m.EndColumnFullScreen = "EndColumnFullScreen", m))(y || {});
|
|
2518
|
+
var V = ((t) => (t.Vendor = "VENDOR", t.Customer = "CUSTOMER_BASE", t))(V || {});
|
|
2523
2519
|
var F = ((b) => (b.Application = "Application", b.ObjectPage = "ObjectPage", b.ListReport = "ListReport", b.OverviewPage = "OverviewPage", b.AnalyticalListPage = "AnalyticalListPage", b.FreestylePage = "FreestylePage", b.FPMCustomPage = "FPMCustomPage", b.BuildingBlocks = "BuildingBlocks", b))(F || {});
|
|
2524
|
-
var L = ((
|
|
2525
|
-
var j = ((
|
|
2526
|
-
var
|
|
2527
|
-
var
|
|
2528
|
-
var
|
|
2520
|
+
var L = ((t) => (t.flex = "flex", t.manifest = "manifest", t))(L || {});
|
|
2521
|
+
var j = ((t) => (t.Primary = "primary", t.Secondary = "secondary", t))(j || {});
|
|
2522
|
+
var R = ((o) => (o.Section = "Section", o.SubSection = "SubSection", o.HeaderSection = "HeaderSection", o))(R || {});
|
|
2523
|
+
var v = ((n) => (n.Manifest = "Manifest", n.FlexChange = "FlexChange", n.Annotation = "Annotation", n.XMLProperty = "XMLProperty", n))(v || {});
|
|
2524
|
+
var h = ((o) => (o.Annotation = "Annotation", o.Custom = "Custom", o.Standard = "Standard", o))(h || {});
|
|
2529
2525
|
var I = ((g) => (g.Table = "sap.m.Table", g.TableColumn = "sap.m.Column", g.SmartTable = "sap.ui.comp.smarttable.SmartTable", g.SmartFilterBar = "sap.ui.comp.smartfilterbar.SmartFilterBar", g.SmartChart = "sap.ui.comp.smartchart.SmartChart", g.Group = "sap.ui.comp.smartform.Group", g.GroupElement = "sap.ui.comp.smartform.GroupElement", g.Button = "sap.m.Button", g.ToolbarButton = "sap.m.OverflowToolbarButton", g.Avatar = "sap.f.Avatar", g.ObjectPageDynamicHeaderTitle = "sap.uxap.ObjectPageDynamicHeaderTitle", g.ObjectPageGridProperties = "sap.ui.layout.GridData", g.ObjectPageHeader = "sap.uxap.ObjectPageHeader", g.ObjectPageLayout = "sap.uxap.ObjectPageLayout", g.HeaderAction = "sap.uxap.ObjectPageHeaderActionButton", g.DynamicPage = "sap.f.DynamicPage", g.Form = "sap.ui.layout.form", g.Chart = "sap.suite.ui.microchart", g.Section = "sap.uxap.ObjectPageSection", g.SubSection = "sap.uxap.ObjectPageSubSection", g))(I || {});
|
|
2530
|
-
var U = ((
|
|
2526
|
+
var U = ((t) => (t.LineItem = "LineItem", t.Chart = "Chart", t))(U || {});
|
|
2531
2527
|
var w = ((u) => (u.Sapux = "src", u.Schemas = ".schemas", u.Pages = "pages", u.Webapp = "webapp", u.Temp = ".tmp", u.Changes = "changes", u.LocalService = "localService", u.Controller = "controller", u.View = "view", u.Fragment = "fragment", u.Ext = "ext", u.VSCode = ".vscode", u))(w || {});
|
|
2532
2528
|
var M = ((p) => (p.App = "app.json", p))(M || {});
|
|
2533
2529
|
var $e = "Facet ID: ";
|
|
@@ -2539,103 +2535,102 @@ var require_common = __commonJS({
|
|
|
2539
2535
|
var G = ((s) => (s.actions = "actions", s.annotationPath = "annotationPath", s.chart = "chart", s.columns = "columns", s.defaultPath = "defaultPath", s.defaultTemplateAnnotationPath = "defaultTemplateAnnotationPath", s.footer = "footer", s.header = "header", s.sections = "sections", s.table = "table", s.views = "views", s.visualFilters = "visualFilters", s.selectionFields = "selectionFields", s))(G || {});
|
|
2540
2536
|
var H = ((s) => (s.annotationPath = "annotationPath", s.annotationType = "annotationType", s.artifactType = "artifactType", s.controlType = "controlType", s.actionType = "actionType", s.dataType = "dataType", s.fullyQualifiedName = "fullyQualifiedName", s.hidden = "hidden", s.isViewNode = "isViewNode", s.key = "key", s.keys = "keys", s.target = "target", s.propertyIndex = "propertyIndex", s))(H || {});
|
|
2541
2537
|
var W = ((S) => (S.id = "ID", S.value = "Value", S.action = "Action", S.target = "Target", S.key = "Key", S.semanticObject = "SemanticObject", S))(W || {});
|
|
2542
|
-
var et = "webapp/
|
|
2543
|
-
var tt = "
|
|
2544
|
-
var ot = "
|
|
2545
|
-
var at = "
|
|
2546
|
-
var nt = "com.sap.vocabularies.UI.v1";
|
|
2547
|
-
var it = "com.sap.vocabularies.UI.v1.";
|
|
2548
|
-
var rt = "
|
|
2549
|
-
var st = "/
|
|
2550
|
-
var pt = "/
|
|
2551
|
-
var ct = "
|
|
2552
|
-
var lt = ".fragment.";
|
|
2538
|
+
var et = "webapp/manifest.json";
|
|
2539
|
+
var tt = "/@com.sap.vocabularies";
|
|
2540
|
+
var ot = "::@com.sap.vocabularies";
|
|
2541
|
+
var at = "com.sap.vocabularies.UI.v1";
|
|
2542
|
+
var nt = "com.sap.vocabularies.UI.v1.";
|
|
2543
|
+
var it = "@com.sap.vocabularies.UI.v1.";
|
|
2544
|
+
var rt = "/quickVariantSelection";
|
|
2545
|
+
var st = "/quickVariantSelectionX";
|
|
2546
|
+
var pt = "/filterSettings/dateSettings";
|
|
2547
|
+
var ct = ".fragment.";
|
|
2553
2548
|
var X = ((n) => (n.Control = "Control", n.Property = "Property", n.Aggregation = "Aggregation", n.Event = "Event", n))(X || {});
|
|
2554
2549
|
var Q = ((p) => (p.restricted = "restricted", p))(Q || {});
|
|
2555
|
-
var K = ((
|
|
2556
|
-
var Y = ((
|
|
2557
|
-
var
|
|
2558
|
-
var
|
|
2550
|
+
var K = ((o) => (o.Top = "Top", o.Middle = "Middle", o.Bottom = "Bottom", o))(K || {});
|
|
2551
|
+
var Y = ((t) => (t.persistence = "persistence", t.discovery = "discovery", t))(Y || {});
|
|
2552
|
+
var N = ((o) => (o.BeginColumnPages = "beginColumnPages", o.MidColumnPages = "midColumnPages", o.EndColumnPages = "endColumnPages", o))(N || {});
|
|
2553
|
+
var z = ((t) => (t.OData = "OData", t.ODataAnnotation = "ODataAnnotation", t))(z || {});
|
|
2559
2554
|
var q = ((r) => (r.ui = "sap.ui", r.app = "sap.app", r.generic = "sap.ui.generic.app", r.ovp = "sap.ovp", r.ui5 = "sap.ui5", r))(q || {});
|
|
2560
|
-
var
|
|
2561
|
-
var
|
|
2562
|
-
var
|
|
2563
|
-
var J = ((
|
|
2564
|
-
var
|
|
2565
|
-
var
|
|
2566
|
-
var $ = ((
|
|
2567
|
-
var
|
|
2555
|
+
var lt = "sap.ui.generic.app/settings";
|
|
2556
|
+
var gt2 = "sap.fe.templates.RootContainer.view.Fcl";
|
|
2557
|
+
var mt = "appRootView";
|
|
2558
|
+
var J = ((o) => (o.XML = "XML", o.HTML = "HTML", o.JSON = "JSON", o))(J || {});
|
|
2559
|
+
var bt = "sap.ui.core.mvc.View";
|
|
2560
|
+
var St = "sap.ui.core.Fragment";
|
|
2561
|
+
var $ = ((o) => (o.Error = "error", o.Warning = "warning", o.Info = "info", o))($ || {});
|
|
2562
|
+
var ut = { error: "Error", warning: "Warning", info: "Information" };
|
|
2568
2563
|
var Z = ((S) => (S.ListReportObjectPageV2 = "ListReportObjectPageV2", S.ListReportObjectPageV4 = "ListReportObjectPageV4", S.OverviewPageV2 = "OverviewPageV2", S.AnalyticalListPageV2 = "AnalyticalListPageV2", S.AnalyticalListPageV4 = "AnalyticalListPageV4", S.FreestylePageV4 = "FreestylePageV4", S))(Z || {});
|
|
2569
2564
|
var D = ((c) => (c.CustomPage = "CustomPage", c.CustomColumn = "CustomColumn", c.CustomSection = "CustomSection", c.ObjectPage = "ObjectPage", c.CustomAction = "CustomAction", c.CustomView = "CustomView", c.ControllerExtension = "ControllerExtension", c.CustomSubSection = "CustomSubSection", c.CustomFilterField = "CustomFilterField", c.CustomHeaderSection = "CustomHeaderSection", c))(D || {});
|
|
2570
2565
|
var ee = ((p) => (p.BuildingBlocks = "BuildingBlocks", p))(ee || {});
|
|
2571
|
-
var
|
|
2572
|
-
d(
|
|
2573
|
-
var te = ((
|
|
2566
|
+
var f = {};
|
|
2567
|
+
d(f, { CardSettingsType: () => ae, CardTemplateType: () => oe, ChartCardType: () => te, ChartType: () => Ae, ContainerLayoutType: () => Oe, CreateMode: () => Ee, DateRangeType: () => ce, DefaultContentView: () => Pe, DefaultDateRangeValueType: () => le, DefaultFilterMode: () => de, ExtensionFragmentTypes: () => Te, FE_TEMPLATE_V2: () => Pt, FE_TEMPLATE_V2_ALP: () => At, FE_TEMPLATE_V2_LIST_REPORT: () => Ct, FE_TEMPLATE_V2_OBJECT_PAGE: () => dt, FilterPathType: () => ge, IgnoredFieldsType: () => xe, LinkListFlavorType: () => pe, ListFlavorType: () => ie, ListTypeType: () => re, LoadDataOnAppLaunchSettings: () => Ce, MeasureAggregateValues: () => ne, SAPUI5_CONTROLLER_EXTENSION: () => Tt, SAPUI5_VIEW_EXTENSION: () => ft, SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE: () => yt, SAPUI5_VIEW_EXTENSION_LIST_REPORT: () => Ot, SAPUI5_VIEW_EXTENSION_OBJECT_PAGE: () => Et, SectionPosition: () => fe, SortOrderType: () => se, Strategy: () => ue, TableColumnExtensionTypeV2: () => Se, TableTypeV2: () => be, cardTemplateTypeMap: () => xt, customColumnViewTypes: () => me });
|
|
2568
|
+
var te = ((o) => (o.cardBubble = "cardBubble", o.cardchartsline = "cardchartsline", o.cardchartsdonut = "cardchartsdonut", o))(te || {});
|
|
2574
2569
|
var oe = ((m) => (m.analytical = "sap.ovp.cards.charts.analytical", m.analyticalv4 = "sap.ovp.cards.v4.charts.analytical", m.list = "sap.ovp.cards.list", m.listv4 = "sap.ovp.cards.v4.list", m.linklist = "sap.ovp.cards.linklist", m.linklistv4 = "sap.ovp.cards.v4.linklist", m.table = "sap.ovp.cards.table", m.tablev4 = "sap.ovp.cards.v4.table", m.stack = "sap.ovp.cards.stack", m))(oe || {});
|
|
2575
|
-
var
|
|
2570
|
+
var xt = { "sap.ovp.cards.charts.analytical": "AnalyticalCard", "sap.ovp.cards.v4.charts.analytical": "AnalyticalCard", "sap.ovp.cards.list": "ListCard", "sap.ovp.cards.v4.list": "ListCard", "sap.ovp.cards.linklist": "LinklistCard", "sap.ovp.cards.v4.linklist": "LinklistCard", "sap.ovp.cards.table": "TableCard", "sap.ovp.cards.v4.table": "TableCard", "sap.ovp.cards.stack": "StackCard" };
|
|
2576
2571
|
var ae = ((b) => (b.analyticalCardSettings = "analyticalCardSettings", b.analyticalCardSettingsv4 = "analyticalCardSettingsv4", b.listCardSettings = "listCardSettings", b.listCardSettingsv4 = "listCardSettingsv4", b.stackCardSettings = "stackCardSettings", b.linkListCardSettings = "linkListCardSettings", b.tableCardSettings = "tableCardSettings", b.tableCardSettingsv4 = "tableCardSettingsv4", b))(ae || {});
|
|
2577
2572
|
var ne = ((r) => (r.average = "average", r.max = "max", r.min = "min", r.sum = "sum", r.count = "$count", r))(ne || {});
|
|
2578
|
-
var ie = ((
|
|
2579
|
-
var re = ((
|
|
2580
|
-
var se = ((
|
|
2581
|
-
var pe = ((
|
|
2573
|
+
var ie = ((o) => (o.standard = "standard", o.bar = "bar", o.carousel = "carousel", o))(ie || {});
|
|
2574
|
+
var re = ((t) => (t.extended = "extended", t.condensed = "condensed", t))(re || {});
|
|
2575
|
+
var se = ((t) => (t.ascending = "ascending", t.descending = "descending", t))(se || {});
|
|
2576
|
+
var pe = ((t) => (t.standard = "standard", t.carousel = "carousel", t))(pe || {});
|
|
2582
2577
|
var ce = ((a) => (a.DATERANGE = "DATERANGE", a.DATE = "DATE", a.FROM = "FROM", a.TO = "TO", a.DAYS = "DAYS", a.LASTDAYS = "LASTDAYS", a.LASTWEEKS = "LASTWEEKS", a.WEEK = "WEEK", a.LASTMONTHS = "LASTMONTHS", a.MONTH = "MONTH", a.QUARTER = "QUARTER", a.LASTQUARTERS = "LASTQUARTERS", a.LASTYEARS = "LASTYEARS", a.LASTYEAR = "LASTYEAR", a.YEAR = "YEAR", a.NEXTDAYS = "NEXTDAYS", a.NEXTWEEKS = "NEXTWEEKS", a.NEXTMONTHS = "NEXTMONTHS", a.NEXTQUARTERS = "NEXTQUARTERS", a.NEXTYEARS = "NEXTYEARS", a.NEXT = "NEXT", a.SPECIFICMONTH = "SPECIFICMONTH", a.YESTERDAY = "YESTERDAY", a.YEARTODATE = "YEARTODATE", a.TODAY = "TODAY", a.TOMORROW = "TOMORROW", a.THISWEEK = "THISWEEK", a.LASTWEEK = "LASTWEEK", a.LAST2WEEKS = "LAST2WEEKS", a.LAST3WEEKS = "LAST3WEEKS", a.LAST4WEEKS = "LAST4WEEKS", a.LAST5WEEKS = "LAST5WEEKS", a.NEXTWEEK = "NEXTWEEK", a.NEXT2WEEKS = "NEXT2WEEKS", a.NEXT3WEEKS = "NEXT3WEEKS", a.NEXT4WEEKS = "NEXT4WEEKS", a.NEXT5WEEKS = "NEXT5WEEKS", a.THISMONTH = "THISMONTH", a.LASTMONTH = "LASTMONTH", a.NEXTMONTH = "NEXTMONTH", a.THISQUARTER = "THISQUARTER", a.LASTQUARTER = "LASTQUARTER", a.NEXTQUARTER = "NEXTQUARTER", a.QUARTER1 = "QUARTER1", a.QUARTER2 = "QUARTER2", a.QUARTER3 = "QUARTER3", a.QUARTER4 = "QUARTER4", a.TODAYFROMTO = "TODAYFROMTO", a))(ce || {});
|
|
2583
2578
|
var le = ((l) => (l.YESTERDAY = "YESTERDAY", l.TODAY = "TODAY", l.THISWEEK = "THISWEEK", l.LASTWEEK = "LASTWEEK", l.THISMONTH = "THISMONTH", l.TOMORROW = "TOMORROW", l.LASTMONTH = "LASTMONTH", l.THISQUARTER = "THISQUARTER", l.LASTQUARTER = "LASTQUARTER", l.THISYEAR = "THISYEAR", l.LASTYEAR = "LASTYEAR", l.LAST2WEEKS = "LAST2WEEKS", l.LAST3WEEKS = "LAST3WEEKS", l.LAST4WEEKS = "LAST4WEEKS", l.LAST5WEEKS = "LAST5WEEKS", l.YEARTODATE = "YEARTODATE", l.QUARTER1 = "QUARTER1", l.QUARTER2 = "QUARTER2", l.QUARTER3 = "QUARTER3", l.QUARTER4 = "QUARTER4", l.DATETOYEAR = "DATETOYEAR", l))(le || {});
|
|
2584
|
-
var ge = ((
|
|
2579
|
+
var ge = ((t) => (t.key = "key", t.catgory = "category", t))(ge || {});
|
|
2585
2580
|
var me = ((p) => (p.XML = "XML", p))(me || {});
|
|
2586
2581
|
var be = ((n) => (n.ResponsiveTable = "ResponsiveTable", n.GridTable = "GridTable", n.AnalyticalTable = "AnalyticalTable", n.TreeTable = "TreeTable", n))(be || {});
|
|
2587
2582
|
var Se = ((n) => (n.ResponsiveTableColumnsExtension = "ResponsiveTableColumnsExtension", n.AnalyticalTableColumnsExtension = "AnalyticalTableColumnsExtension", n.TreeTableColumnsExtension = "TreeTableColumnsExtension", n.GridTableColumnsExtension = "GridTableColumnsExtension", n))(Se || {});
|
|
2588
2583
|
var ue = ((p) => (p.extension = "extension", p))(ue || {});
|
|
2589
2584
|
var xe = ((p) => (p.GENERICPROPERTY = "GENERICPROPERTY", p))(xe || {});
|
|
2590
|
-
var Pe = ((
|
|
2591
|
-
var de = ((
|
|
2592
|
-
var
|
|
2593
|
-
var
|
|
2594
|
-
var
|
|
2595
|
-
var
|
|
2596
|
-
var Ee = ((
|
|
2597
|
-
var
|
|
2598
|
-
var
|
|
2585
|
+
var Pe = ((o) => (o.charttable = "charttable", o.chart = "chart", o.table = "table", o))(Pe || {});
|
|
2586
|
+
var de = ((t) => (t.visual = "visual", t.compact = "compact", t))(de || {});
|
|
2587
|
+
var Ce = ((o) => (o.always = "always", o.never = "never", o.ifAnyFilterExist = "ifAnyFilterExist", o))(Ce || {});
|
|
2588
|
+
var Ae = ((i) => (i.bar = "bar", i.column = "column", i.line = "line", i.combination = "combination", i.pie = "pie", i.donut = "donut", i.scatter = "scatter", i.bubble = "bubble", i.heatmap = "heatmap", i.bullet = "bullet", i.verticalBullet = "vertical_bullet", i.stackedBar = "stacked_bar", i.stackedColumn = "stacked_column", i.stackedCombination = "stacked_combination", i.horizontalStackedCombination = "horizontal_stacked_combination", i.dualBar = "dual_bar", i.dualColumn = "dual_column", i.dualLine = "dual_line", i.dualStackedBar = "dual_stacked_bar", i.dualStackedColumn = "dual_stacked_column", i.dualCombination = "dual_combination", i.dualStackedCombination = "dual_stacked_combination", i.dualHorizontalCombination = "dual_horizontal_combination", i.dualHorizontalStackedCombination = "dual_horizontal_stacked_combination", i.hundredStackedBar = "100_stacked_bar", i.hundredStackedColumn = "100_stacked_column", i.hundredDualStackedBar = "100_dual_stacked_bar", i.hundredDualStackedColumn = "100_dual_stacked_column", i.waterfall = "waterfall", i.horizontalWaterfall = "horizontal_waterfall", i))(Ae || {});
|
|
2589
|
+
var fe = ((o) => (o.AfterFacet = "AfterFacet", o.BeforeFacet = "BeforeFacet", o.ReplaceFacet = "ReplaceFacet", o))(fe || {});
|
|
2590
|
+
var Te = ((p) => (p.XML = "XML", p))(Te || {});
|
|
2591
|
+
var Ee = ((o) => (o.creationRows = "creationRows", o.creationRowsHiddenInEditMode = "creationRowsHiddenInEditMode", o.inline = "inline", o))(Ee || {});
|
|
2592
|
+
var Pt = "sap.suite.ui.generic.template";
|
|
2593
|
+
var dt = "sap.suite.ui.generic.template.ObjectPage";
|
|
2599
2594
|
var Ct = "sap.suite.ui.generic.template.ListReport";
|
|
2600
|
-
var
|
|
2595
|
+
var At = "sap.suite.ui.generic.template.AnalyticalListPage";
|
|
2601
2596
|
var ft = "sap.ui.viewExtensions";
|
|
2602
|
-
var
|
|
2603
|
-
var
|
|
2597
|
+
var Tt = "sap.ui.controllerExtensions";
|
|
2598
|
+
var Et = "sap.suite.ui.generic.template.ObjectPage.view.Details";
|
|
2604
2599
|
var Ot = "sap.suite.ui.generic.template.ListReport.view.ListReport";
|
|
2605
|
-
var
|
|
2606
|
-
var
|
|
2607
|
-
var
|
|
2608
|
-
d(
|
|
2609
|
-
var
|
|
2600
|
+
var yt = "sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage";
|
|
2601
|
+
var Oe = ((t) => (t.fixed = "fixed", t.resizable = "resizable", t))(Oe || {});
|
|
2602
|
+
var T = {};
|
|
2603
|
+
d(T, { ActionPlacement: () => ye, Availability: () => Ge, CustomSectionViewTypesV4: () => Me, DefaultPathType: () => je, FE_TEMPLATE_V4: () => Vt, FE_TEMPLATE_V4_ALP: () => Rt, FE_TEMPLATE_V4_CUSTOM_PAGE: () => Ft, FE_TEMPLATE_V4_LIST_REPORT: () => jt, FE_TEMPLATE_V4_OBJECT_PAGE: () => Lt, FIORI_FCL_ROUTER_CLASS: () => ht, FilterFieldPlacement: () => he, HorizontalAlign: () => He, InitialLayoutType: () => ve, InitialLoadType: () => Le, LayoutType: () => Re, Placement: () => Be, SAPUI5_CONTROLLER_EXTENSION: () => Ut, SAPUI5_DEPENDENCY_LIB_SAP_F: () => It, SAPUI5_FRAGMENT_TYPE_V4: () => vt, SAPUI5_VIEW_EXTENSION_LIST_REPORT: () => Mt, SAPUI5_VIEW_EXTENSION_OBJECT_PAGE: () => wt, SectionLayoutType: () => Ue, SectionPosition: () => we, SectionPositionV4: () => ke, SelectType: () => Ie, SelectionMode: () => Ve, TableCreationModeType: () => _e, TableTypeV4: () => Fe, VariantManagementTypeListReport: () => Xe, VariantManagementTypeObjectPage: () => We });
|
|
2604
|
+
var ye = ((t) => (t.After = "After", t.Before = "Before", t))(ye || {});
|
|
2610
2605
|
var Ve = ((n) => (n.Multi = "Multi", n.None = "None", n.Single = "Single", n.Auto = "Auto", n))(Ve || {});
|
|
2611
|
-
var Fe = ((
|
|
2612
|
-
var Le = ((
|
|
2613
|
-
var je = ((
|
|
2614
|
-
var
|
|
2615
|
-
var
|
|
2616
|
-
var
|
|
2617
|
-
var Ie = ((
|
|
2618
|
-
var Ue = ((
|
|
2619
|
-
var we = ((
|
|
2606
|
+
var Fe = ((n) => (n.ResponsiveTable = "ResponsiveTable", n.GridTable = "GridTable", n.AnalyticalTable = "AnalyticalTable", n.TreeTable = "TreeTable", n))(Fe || {});
|
|
2607
|
+
var Le = ((o) => (o.Disabled = "Disabled", o.Enabled = "Enabled", o.Auto = "Auto", o))(Le || {});
|
|
2608
|
+
var je = ((o) => (o.Primary = "primary", o.Secondary = "secondary", o.Both = "both", o))(je || {});
|
|
2609
|
+
var Re = ((t) => (t.Compact = "Compact", t.CompactVisual = "CompactVisual", t))(Re || {});
|
|
2610
|
+
var ve = ((t) => (t.Compact = "Compact", t.Visual = "Visual", t))(ve || {});
|
|
2611
|
+
var he = ((t) => (t.After = "After", t.Before = "Before", t))(he || {});
|
|
2612
|
+
var Ie = ((t) => (t.single = "single", t.multi = "multi", t))(Ie || {});
|
|
2613
|
+
var Ue = ((t) => (t.Tabs = "Tabs", t.Page = "Page", t))(Ue || {});
|
|
2614
|
+
var we = ((t) => (t.After = "After", t.Before = "Before", t))(we || {});
|
|
2620
2615
|
var Me = ((p) => (p.XML = "XML", p))(Me || {});
|
|
2621
|
-
var _e = ((
|
|
2622
|
-
var
|
|
2623
|
-
var
|
|
2624
|
-
var
|
|
2625
|
-
var
|
|
2616
|
+
var _e = ((o) => (o.NewPage = "NewPage", o.InlineCreationRows = "InlineCreationRows", o.Inline = "Inline", o))(_e || {});
|
|
2617
|
+
var Vt = "sap.fe.templates";
|
|
2618
|
+
var Ft = "sap.fe.core.fpm";
|
|
2619
|
+
var Lt = "sap.fe.templates.ObjectPage";
|
|
2620
|
+
var jt = "sap.fe.templates.ListReport";
|
|
2626
2621
|
var Rt = "sap.fe.templates.AnalyticalListPage";
|
|
2627
2622
|
var vt = "XMLFragment";
|
|
2628
|
-
var ke = ((
|
|
2629
|
-
var
|
|
2630
|
-
var
|
|
2631
|
-
var
|
|
2632
|
-
var
|
|
2633
|
-
var
|
|
2634
|
-
var Be = ((
|
|
2635
|
-
var Ge = ((
|
|
2636
|
-
var He = ((
|
|
2637
|
-
var We = ((
|
|
2638
|
-
var Xe = ((
|
|
2623
|
+
var ke = ((t) => (t.AfterFacet = "AfterFacet", t.BeforeFacet = "BeforeFacet", t))(ke || {});
|
|
2624
|
+
var ht = "sap.f.routing.Router";
|
|
2625
|
+
var It = "sap.f";
|
|
2626
|
+
var Ut = "sap.ui.controllerExtensions";
|
|
2627
|
+
var wt = "sap.fe.templates.ObjectPage.ObjectPageController";
|
|
2628
|
+
var Mt = "sap.fe.templates.ListReport.ListReportController";
|
|
2629
|
+
var Be = ((t) => (t.After = "After", t.Before = "Before", t))(Be || {});
|
|
2630
|
+
var Ge = ((o) => (o.Default = "Default", o.Adaptation = "Adaptation", o.Hidden = "Hidden", o))(Ge || {});
|
|
2631
|
+
var He = ((o) => (o.Begin = "Begin", o.Center = "Center", o.End = "End", o))(He || {});
|
|
2632
|
+
var We = ((t) => (t.None = "None", t.Control = "Control", t))(We || {});
|
|
2633
|
+
var Xe = ((o) => (o.None = "None", o.Control = "Control", o.Page = "Page", o))(Xe || {});
|
|
2639
2634
|
}
|
|
2640
2635
|
});
|
|
2641
2636
|
|
|
@@ -2698,48 +2693,48 @@ var require_apiTypes = __commonJS({
|
|
|
2698
2693
|
var require_v2 = __commonJS({
|
|
2699
2694
|
"../../node_modules/@sap/ux-specification-types/dist/v2.js"(exports2, module2) {
|
|
2700
2695
|
var p = Object.defineProperty;
|
|
2701
|
-
var
|
|
2702
|
-
var
|
|
2703
|
-
var
|
|
2696
|
+
var W = Object.getOwnPropertyDescriptor;
|
|
2697
|
+
var F = Object.getOwnPropertyNames;
|
|
2698
|
+
var h = Object.prototype.hasOwnProperty;
|
|
2704
2699
|
var w = (c, o) => {
|
|
2705
2700
|
for (var a in o)
|
|
2706
2701
|
p(c, a, { get: o[a], enumerable: true });
|
|
2707
2702
|
};
|
|
2708
2703
|
var M = (c, o, a, n) => {
|
|
2709
2704
|
if (o && typeof o == "object" || typeof o == "function")
|
|
2710
|
-
for (let r of
|
|
2711
|
-
!
|
|
2705
|
+
for (let r of F(o))
|
|
2706
|
+
!h.call(c, r) && r !== a && p(c, r, { get: () => o[r], enumerable: !(n = W(o, r)) || n.enumerable });
|
|
2712
2707
|
return c;
|
|
2713
2708
|
};
|
|
2714
|
-
var
|
|
2715
|
-
var
|
|
2716
|
-
w(
|
|
2717
|
-
module2.exports =
|
|
2709
|
+
var Q = (c) => M(p({}, "__esModule", { value: true }), c);
|
|
2710
|
+
var D = {};
|
|
2711
|
+
w(D, { CardSettingsType: () => d, CardTemplateType: () => m, ChartCardType: () => b, ChartType: () => _45, ContainerLayoutType: () => j, CreateMode: () => k, DateRangeType: () => u, DefaultContentView: () => U, DefaultDateRangeValueType: () => f, DefaultFilterMode: () => I, ExtensionFragmentTypes: () => y, FE_TEMPLATE_V2: () => B, FE_TEMPLATE_V2_ALP: () => K, FE_TEMPLATE_V2_LIST_REPORT: () => G, FE_TEMPLATE_V2_OBJECT_PAGE: () => H, FilterPathType: () => C, IgnoredFieldsType: () => v, LinkListFlavorType: () => A, ListFlavorType: () => g, ListTypeType: () => E, LoadDataOnAppLaunchSettings: () => V, MeasureAggregateValues: () => T, SAPUI5_CONTROLLER_EXTENSION: () => z, SAPUI5_VIEW_EXTENSION: () => Y, SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE: () => $, SAPUI5_VIEW_EXTENSION_LIST_REPORT: () => J, SAPUI5_VIEW_EXTENSION_OBJECT_PAGE: () => q, SectionPosition: () => N, SortOrderType: () => x, Strategy: () => L, TableColumnExtensionTypeV2: () => R, TableTypeV2: () => O, cardTemplateTypeMap: () => X, customColumnViewTypes: () => P });
|
|
2712
|
+
module2.exports = Q(D);
|
|
2718
2713
|
var b = ((n) => (n.cardBubble = "cardBubble", n.cardchartsline = "cardchartsline", n.cardchartsdonut = "cardchartsdonut", n))(b || {});
|
|
2719
|
-
var
|
|
2720
|
-
var
|
|
2721
|
-
var
|
|
2722
|
-
var
|
|
2723
|
-
var
|
|
2724
|
-
var
|
|
2725
|
-
var
|
|
2714
|
+
var m = ((s) => (s.analytical = "sap.ovp.cards.charts.analytical", s.analyticalv4 = "sap.ovp.cards.v4.charts.analytical", s.list = "sap.ovp.cards.list", s.listv4 = "sap.ovp.cards.v4.list", s.linklist = "sap.ovp.cards.linklist", s.linklistv4 = "sap.ovp.cards.v4.linklist", s.table = "sap.ovp.cards.table", s.tablev4 = "sap.ovp.cards.v4.table", s.stack = "sap.ovp.cards.stack", s))(m || {});
|
|
2715
|
+
var X = { "sap.ovp.cards.charts.analytical": "AnalyticalCard", "sap.ovp.cards.v4.charts.analytical": "AnalyticalCard", "sap.ovp.cards.list": "ListCard", "sap.ovp.cards.v4.list": "ListCard", "sap.ovp.cards.linklist": "LinklistCard", "sap.ovp.cards.v4.linklist": "LinklistCard", "sap.ovp.cards.table": "TableCard", "sap.ovp.cards.v4.table": "TableCard", "sap.ovp.cards.stack": "StackCard" };
|
|
2716
|
+
var d = ((l) => (l.analyticalCardSettings = "analyticalCardSettings", l.analyticalCardSettingsv4 = "analyticalCardSettingsv4", l.listCardSettings = "listCardSettings", l.listCardSettingsv4 = "listCardSettingsv4", l.stackCardSettings = "stackCardSettings", l.linkListCardSettings = "linkListCardSettings", l.tableCardSettings = "tableCardSettings", l.tableCardSettingsv4 = "tableCardSettingsv4", l))(d || {});
|
|
2717
|
+
var T = ((S) => (S.average = "average", S.max = "max", S.min = "min", S.sum = "sum", S.count = "$count", S))(T || {});
|
|
2718
|
+
var g = ((n) => (n.standard = "standard", n.bar = "bar", n.carousel = "carousel", n))(g || {});
|
|
2719
|
+
var E = ((a) => (a.extended = "extended", a.condensed = "condensed", a))(E || {});
|
|
2720
|
+
var x = ((a) => (a.ascending = "ascending", a.descending = "descending", a))(x || {});
|
|
2726
2721
|
var A = ((a) => (a.standard = "standard", a.carousel = "carousel", a))(A || {});
|
|
2727
2722
|
var u = ((e) => (e.DATERANGE = "DATERANGE", e.DATE = "DATE", e.FROM = "FROM", e.TO = "TO", e.DAYS = "DAYS", e.LASTDAYS = "LASTDAYS", e.LASTWEEKS = "LASTWEEKS", e.WEEK = "WEEK", e.LASTMONTHS = "LASTMONTHS", e.MONTH = "MONTH", e.QUARTER = "QUARTER", e.LASTQUARTERS = "LASTQUARTERS", e.LASTYEARS = "LASTYEARS", e.LASTYEAR = "LASTYEAR", e.YEAR = "YEAR", e.NEXTDAYS = "NEXTDAYS", e.NEXTWEEKS = "NEXTWEEKS", e.NEXTMONTHS = "NEXTMONTHS", e.NEXTQUARTERS = "NEXTQUARTERS", e.NEXTYEARS = "NEXTYEARS", e.NEXT = "NEXT", e.SPECIFICMONTH = "SPECIFICMONTH", e.YESTERDAY = "YESTERDAY", e.YEARTODATE = "YEARTODATE", e.TODAY = "TODAY", e.TOMORROW = "TOMORROW", e.THISWEEK = "THISWEEK", e.LASTWEEK = "LASTWEEK", e.LAST2WEEKS = "LAST2WEEKS", e.LAST3WEEKS = "LAST3WEEKS", e.LAST4WEEKS = "LAST4WEEKS", e.LAST5WEEKS = "LAST5WEEKS", e.NEXTWEEK = "NEXTWEEK", e.NEXT2WEEKS = "NEXT2WEEKS", e.NEXT3WEEKS = "NEXT3WEEKS", e.NEXT4WEEKS = "NEXT4WEEKS", e.NEXT5WEEKS = "NEXT5WEEKS", e.THISMONTH = "THISMONTH", e.LASTMONTH = "LASTMONTH", e.NEXTMONTH = "NEXTMONTH", e.THISQUARTER = "THISQUARTER", e.LASTQUARTER = "LASTQUARTER", e.NEXTQUARTER = "NEXTQUARTER", e.QUARTER1 = "QUARTER1", e.QUARTER2 = "QUARTER2", e.QUARTER3 = "QUARTER3", e.QUARTER4 = "QUARTER4", e.TODAYFROMTO = "TODAYFROMTO", e))(u || {});
|
|
2728
|
-
var
|
|
2729
|
-
var
|
|
2730
|
-
var
|
|
2723
|
+
var f = ((i) => (i.YESTERDAY = "YESTERDAY", i.TODAY = "TODAY", i.THISWEEK = "THISWEEK", i.LASTWEEK = "LASTWEEK", i.THISMONTH = "THISMONTH", i.TOMORROW = "TOMORROW", i.LASTMONTH = "LASTMONTH", i.THISQUARTER = "THISQUARTER", i.LASTQUARTER = "LASTQUARTER", i.THISYEAR = "THISYEAR", i.LASTYEAR = "LASTYEAR", i.LAST2WEEKS = "LAST2WEEKS", i.LAST3WEEKS = "LAST3WEEKS", i.LAST4WEEKS = "LAST4WEEKS", i.LAST5WEEKS = "LAST5WEEKS", i.YEARTODATE = "YEARTODATE", i.QUARTER1 = "QUARTER1", i.QUARTER2 = "QUARTER2", i.QUARTER3 = "QUARTER3", i.QUARTER4 = "QUARTER4", i.DATETOYEAR = "DATETOYEAR", i))(f || {});
|
|
2724
|
+
var C = ((a) => (a.key = "key", a.catgory = "category", a))(C || {});
|
|
2725
|
+
var P = ((o) => (o.XML = "XML", o))(P || {});
|
|
2731
2726
|
var O = ((r) => (r.ResponsiveTable = "ResponsiveTable", r.GridTable = "GridTable", r.AnalyticalTable = "AnalyticalTable", r.TreeTable = "TreeTable", r))(O || {});
|
|
2732
|
-
var
|
|
2733
|
-
var
|
|
2727
|
+
var R = ((r) => (r.ResponsiveTableColumnsExtension = "ResponsiveTableColumnsExtension", r.AnalyticalTableColumnsExtension = "AnalyticalTableColumnsExtension", r.TreeTableColumnsExtension = "TreeTableColumnsExtension", r.GridTableColumnsExtension = "GridTableColumnsExtension", r))(R || {});
|
|
2728
|
+
var L = ((o) => (o.extension = "extension", o))(L || {});
|
|
2734
2729
|
var v = ((o) => (o.GENERICPROPERTY = "GENERICPROPERTY", o))(v || {});
|
|
2735
|
-
var
|
|
2736
|
-
var
|
|
2737
|
-
var
|
|
2738
|
-
var
|
|
2739
|
-
var
|
|
2740
|
-
var
|
|
2730
|
+
var U = ((n) => (n.charttable = "charttable", n.chart = "chart", n.table = "table", n))(U || {});
|
|
2731
|
+
var I = ((a) => (a.visual = "visual", a.compact = "compact", a))(I || {});
|
|
2732
|
+
var V = ((n) => (n.always = "always", n.never = "never", n.ifAnyFilterExist = "ifAnyFilterExist", n))(V || {});
|
|
2733
|
+
var _45 = ((t) => (t.bar = "bar", t.column = "column", t.line = "line", t.combination = "combination", t.pie = "pie", t.donut = "donut", t.scatter = "scatter", t.bubble = "bubble", t.heatmap = "heatmap", t.bullet = "bullet", t.verticalBullet = "vertical_bullet", t.stackedBar = "stacked_bar", t.stackedColumn = "stacked_column", t.stackedCombination = "stacked_combination", t.horizontalStackedCombination = "horizontal_stacked_combination", t.dualBar = "dual_bar", t.dualColumn = "dual_column", t.dualLine = "dual_line", t.dualStackedBar = "dual_stacked_bar", t.dualStackedColumn = "dual_stacked_column", t.dualCombination = "dual_combination", t.dualStackedCombination = "dual_stacked_combination", t.dualHorizontalCombination = "dual_horizontal_combination", t.dualHorizontalStackedCombination = "dual_horizontal_stacked_combination", t.hundredStackedBar = "100_stacked_bar", t.hundredStackedColumn = "100_stacked_column", t.hundredDualStackedBar = "100_dual_stacked_bar", t.hundredDualStackedColumn = "100_dual_stacked_column", t.waterfall = "waterfall", t.horizontalWaterfall = "horizontal_waterfall", t))(_45 || {});
|
|
2734
|
+
var N = ((n) => (n.AfterFacet = "AfterFacet", n.BeforeFacet = "BeforeFacet", n.ReplaceFacet = "ReplaceFacet", n))(N || {});
|
|
2735
|
+
var y = ((o) => (o.XML = "XML", o))(y || {});
|
|
2741
2736
|
var k = ((n) => (n.creationRows = "creationRows", n.creationRowsHiddenInEditMode = "creationRowsHiddenInEditMode", n.inline = "inline", n))(k || {});
|
|
2742
|
-
var
|
|
2737
|
+
var B = "sap.suite.ui.generic.template";
|
|
2743
2738
|
var H = "sap.suite.ui.generic.template.ObjectPage";
|
|
2744
2739
|
var G = "sap.suite.ui.generic.template.ListReport";
|
|
2745
2740
|
var K = "sap.suite.ui.generic.template.AnalyticalListPage";
|
|
@@ -2748,7 +2743,7 @@ var require_v2 = __commonJS({
|
|
|
2748
2743
|
var q = "sap.suite.ui.generic.template.ObjectPage.view.Details";
|
|
2749
2744
|
var J = "sap.suite.ui.generic.template.ListReport.view.ListReport";
|
|
2750
2745
|
var $ = "sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage";
|
|
2751
|
-
var
|
|
2746
|
+
var j = ((a) => (a.fixed = "fixed", a.resizable = "resizable", a))(j || {});
|
|
2752
2747
|
}
|
|
2753
2748
|
});
|
|
2754
2749
|
|
|
@@ -2759,23 +2754,23 @@ var require_v4 = __commonJS({
|
|
|
2759
2754
|
var O = Object.getOwnPropertyDescriptor;
|
|
2760
2755
|
var U = Object.getOwnPropertyNames;
|
|
2761
2756
|
var E = Object.prototype.hasOwnProperty;
|
|
2762
|
-
var w = (n,
|
|
2763
|
-
for (var e in
|
|
2764
|
-
a(n, e, { get:
|
|
2765
|
-
};
|
|
2766
|
-
var
|
|
2767
|
-
if (
|
|
2768
|
-
for (let
|
|
2769
|
-
!E.call(n,
|
|
2757
|
+
var w = (n, i) => {
|
|
2758
|
+
for (var e in i)
|
|
2759
|
+
a(n, e, { get: i[e], enumerable: true });
|
|
2760
|
+
};
|
|
2761
|
+
var h = (n, i, e, t) => {
|
|
2762
|
+
if (i && typeof i == "object" || typeof i == "function")
|
|
2763
|
+
for (let o of U(i))
|
|
2764
|
+
!E.call(n, o) && o !== e && a(n, o, { get: () => i[o], enumerable: !(t = O(i, o)) || t.enumerable });
|
|
2770
2765
|
return n;
|
|
2771
2766
|
};
|
|
2772
|
-
var
|
|
2767
|
+
var R = (n) => h(a({}, "__esModule", { value: true }), n);
|
|
2773
2768
|
var D = {};
|
|
2774
2769
|
w(D, { ActionPlacement: () => r, Availability: () => A, CustomSectionViewTypesV4: () => S, DefaultPathType: () => c, FE_TEMPLATE_V4: () => j, FE_TEMPLATE_V4_ALP: () => L, FE_TEMPLATE_V4_CUSTOM_PAGE: () => F, FE_TEMPLATE_V4_LIST_REPORT: () => B, FE_TEMPLATE_V4_OBJECT_PAGE: () => _45, FIORI_FCL_ROUTER_CLASS: () => N, FilterFieldPlacement: () => u, HorizontalAlign: () => V, InitialLayoutType: () => m, InitialLoadType: () => l, LayoutType: () => g, Placement: () => T, SAPUI5_CONTROLLER_EXTENSION: () => k, SAPUI5_DEPENDENCY_LIB_SAP_F: () => v, SAPUI5_FRAGMENT_TYPE_V4: () => I, SAPUI5_VIEW_EXTENSION_LIST_REPORT: () => G, SAPUI5_VIEW_EXTENSION_OBJECT_PAGE: () => M, SectionLayoutType: () => f, SectionPosition: () => x, SectionPositionV4: () => C, SelectType: () => b, SelectionMode: () => s, TableCreationModeType: () => P, TableTypeV4: () => p, VariantManagementTypeListReport: () => y, VariantManagementTypeObjectPage: () => d });
|
|
2775
|
-
module2.exports =
|
|
2770
|
+
module2.exports = R(D);
|
|
2776
2771
|
var r = ((e) => (e.After = "After", e.Before = "Before", e))(r || {});
|
|
2777
|
-
var s = ((
|
|
2778
|
-
var p = ((
|
|
2772
|
+
var s = ((o) => (o.Multi = "Multi", o.None = "None", o.Single = "Single", o.Auto = "Auto", o))(s || {});
|
|
2773
|
+
var p = ((o) => (o.ResponsiveTable = "ResponsiveTable", o.GridTable = "GridTable", o.AnalyticalTable = "AnalyticalTable", o.TreeTable = "TreeTable", o))(p || {});
|
|
2779
2774
|
var l = ((t) => (t.Disabled = "Disabled", t.Enabled = "Enabled", t.Auto = "Auto", t))(l || {});
|
|
2780
2775
|
var c = ((t) => (t.Primary = "primary", t.Secondary = "secondary", t.Both = "both", t))(c || {});
|
|
2781
2776
|
var g = ((e) => (e.Compact = "Compact", e.CompactVisual = "CompactVisual", e))(g || {});
|
|
@@ -2784,7 +2779,7 @@ var require_v4 = __commonJS({
|
|
|
2784
2779
|
var b = ((e) => (e.single = "single", e.multi = "multi", e))(b || {});
|
|
2785
2780
|
var f = ((e) => (e.Tabs = "Tabs", e.Page = "Page", e))(f || {});
|
|
2786
2781
|
var x = ((e) => (e.After = "After", e.Before = "Before", e))(x || {});
|
|
2787
|
-
var S = ((
|
|
2782
|
+
var S = ((i) => (i.XML = "XML", i))(S || {});
|
|
2788
2783
|
var P = ((t) => (t.NewPage = "NewPage", t.InlineCreationRows = "InlineCreationRows", t.Inline = "Inline", t))(P || {});
|
|
2789
2784
|
var j = "sap.fe.templates";
|
|
2790
2785
|
var F = "sap.fe.core.fpm";
|
|
@@ -18108,7 +18103,7 @@ var require_config = __commonJS({
|
|
|
18108
18103
|
"../lib/odata-client/dist/config.js"(exports2) {
|
|
18109
18104
|
"use strict";
|
|
18110
18105
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
18111
|
-
exports2.hasHTML5DynamicDestinationAttrib = exports2.hasFullUrlDestAttribute = exports2.hasDestinationAttrib = exports2.destinationPropertyId = exports2.DestinationAttributeProperty = exports2.DestinationProperties = exports2.AuthenticationType = exports2.ServiceName = void 0;
|
|
18106
|
+
exports2.hasHTML5DynamicDestinationAttrib = exports2.hasFullUrlDestAttribute = exports2.hasDestinationAttrib = exports2.DestinationProxyType = exports2.destinationPropertyId = exports2.DestinationAttributeProperty = exports2.DestinationProperties = exports2.AuthenticationType = exports2.ServiceName = void 0;
|
|
18112
18107
|
var ServiceName;
|
|
18113
18108
|
(function(ServiceName2) {
|
|
18114
18109
|
ServiceName2["SystemInfo"] = "fiori/system/info";
|
|
@@ -18132,6 +18127,7 @@ var require_config = __commonJS({
|
|
|
18132
18127
|
DestinationProperties2["HTML5DynamicDestination"] = "HTML5.DynamicDestination";
|
|
18133
18128
|
DestinationProperties2["HTML5SetXForwardedHeaders"] = "HTML5.SetXForwardedHeaders";
|
|
18134
18129
|
DestinationProperties2["TrustAll"] = "TrustAll";
|
|
18130
|
+
DestinationProperties2["ProxyType"] = "ProxyType";
|
|
18135
18131
|
})(DestinationProperties || (exports2.DestinationProperties = DestinationProperties = {}));
|
|
18136
18132
|
exports2.DestinationAttributeProperty = {
|
|
18137
18133
|
ODATA_GENERIC: "odata_gen",
|
|
@@ -18141,6 +18137,12 @@ var require_config = __commonJS({
|
|
|
18141
18137
|
ABAP_CLOUD: "abap_cloud"
|
|
18142
18138
|
};
|
|
18143
18139
|
exports2.destinationPropertyId = Object.keys(exports2.DestinationAttributeProperty);
|
|
18140
|
+
var DestinationProxyType;
|
|
18141
|
+
(function(DestinationProxyType2) {
|
|
18142
|
+
DestinationProxyType2["ON_PREMISE"] = "OnPremise";
|
|
18143
|
+
DestinationProxyType2["INTERNET"] = "Internet";
|
|
18144
|
+
DestinationProxyType2["PRIVATE_LINK"] = "PrivateLink";
|
|
18145
|
+
})(DestinationProxyType || (exports2.DestinationProxyType = DestinationProxyType = {}));
|
|
18144
18146
|
function hasDestinationAttrib(destinationProperty, destinationAttributeProperty, destinationAttribs = {}) {
|
|
18145
18147
|
var _a2;
|
|
18146
18148
|
return (destinationAttribs && ((_a2 = destinationAttribs[destinationProperty]) == null ? void 0 : _a2.includes(destinationAttributeProperty))) ?? false;
|
|
@@ -27835,6 +27837,24 @@ var require_follow_redirects = __commonJS({
|
|
|
27835
27837
|
var Writable = require("stream").Writable;
|
|
27836
27838
|
var assert = require("assert");
|
|
27837
27839
|
var debug = require_debug();
|
|
27840
|
+
var useNativeURL = false;
|
|
27841
|
+
try {
|
|
27842
|
+
assert(new URL2());
|
|
27843
|
+
} catch (error3) {
|
|
27844
|
+
useNativeURL = error3.code === "ERR_INVALID_URL";
|
|
27845
|
+
}
|
|
27846
|
+
var preservedUrlFields = [
|
|
27847
|
+
"auth",
|
|
27848
|
+
"host",
|
|
27849
|
+
"hostname",
|
|
27850
|
+
"href",
|
|
27851
|
+
"path",
|
|
27852
|
+
"pathname",
|
|
27853
|
+
"port",
|
|
27854
|
+
"protocol",
|
|
27855
|
+
"query",
|
|
27856
|
+
"search"
|
|
27857
|
+
];
|
|
27838
27858
|
var events = ["abort", "aborted", "connect", "error", "socket", "timeout"];
|
|
27839
27859
|
var eventHandlers = /* @__PURE__ */ Object.create(null);
|
|
27840
27860
|
events.forEach(function(event) {
|
|
@@ -27842,13 +27862,19 @@ var require_follow_redirects = __commonJS({
|
|
|
27842
27862
|
this._redirectable.emit(event, arg1, arg2, arg3);
|
|
27843
27863
|
};
|
|
27844
27864
|
});
|
|
27865
|
+
var InvalidUrlError = createErrorType(
|
|
27866
|
+
"ERR_INVALID_URL",
|
|
27867
|
+
"Invalid URL",
|
|
27868
|
+
TypeError
|
|
27869
|
+
);
|
|
27845
27870
|
var RedirectionError = createErrorType(
|
|
27846
27871
|
"ERR_FR_REDIRECTION_FAILURE",
|
|
27847
27872
|
"Redirected request failed"
|
|
27848
27873
|
);
|
|
27849
27874
|
var TooManyRedirectsError = createErrorType(
|
|
27850
27875
|
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
27851
|
-
"Maximum number of redirects exceeded"
|
|
27876
|
+
"Maximum number of redirects exceeded",
|
|
27877
|
+
RedirectionError
|
|
27852
27878
|
);
|
|
27853
27879
|
var MaxBodyLengthExceededError = createErrorType(
|
|
27854
27880
|
"ERR_FR_MAX_BODY_LENGTH_EXCEEDED",
|
|
@@ -27858,6 +27884,7 @@ var require_follow_redirects = __commonJS({
|
|
|
27858
27884
|
"ERR_STREAM_WRITE_AFTER_END",
|
|
27859
27885
|
"write after end"
|
|
27860
27886
|
);
|
|
27887
|
+
var destroy = Writable.prototype.destroy || noop3;
|
|
27861
27888
|
function RedirectableRequest(options2, responseCallback) {
|
|
27862
27889
|
Writable.call(this);
|
|
27863
27890
|
this._sanitizeOptions(options2);
|
|
@@ -27873,23 +27900,33 @@ var require_follow_redirects = __commonJS({
|
|
|
27873
27900
|
}
|
|
27874
27901
|
var self2 = this;
|
|
27875
27902
|
this._onNativeResponse = function(response) {
|
|
27876
|
-
|
|
27903
|
+
try {
|
|
27904
|
+
self2._processResponse(response);
|
|
27905
|
+
} catch (cause) {
|
|
27906
|
+
self2.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
|
|
27907
|
+
}
|
|
27877
27908
|
};
|
|
27878
27909
|
this._performRequest();
|
|
27879
27910
|
}
|
|
27880
27911
|
RedirectableRequest.prototype = Object.create(Writable.prototype);
|
|
27881
27912
|
RedirectableRequest.prototype.abort = function() {
|
|
27882
|
-
|
|
27913
|
+
destroyRequest(this._currentRequest);
|
|
27914
|
+
this._currentRequest.abort();
|
|
27883
27915
|
this.emit("abort");
|
|
27884
27916
|
};
|
|
27917
|
+
RedirectableRequest.prototype.destroy = function(error3) {
|
|
27918
|
+
destroyRequest(this._currentRequest, error3);
|
|
27919
|
+
destroy.call(this, error3);
|
|
27920
|
+
return this;
|
|
27921
|
+
};
|
|
27885
27922
|
RedirectableRequest.prototype.write = function(data2, encoding, callback) {
|
|
27886
27923
|
if (this._ending) {
|
|
27887
27924
|
throw new WriteAfterEndError();
|
|
27888
27925
|
}
|
|
27889
|
-
if (!(
|
|
27926
|
+
if (!isString(data2) && !isBuffer(data2)) {
|
|
27890
27927
|
throw new TypeError("data should be a string, Buffer or Uint8Array");
|
|
27891
27928
|
}
|
|
27892
|
-
if (
|
|
27929
|
+
if (isFunction(encoding)) {
|
|
27893
27930
|
callback = encoding;
|
|
27894
27931
|
encoding = null;
|
|
27895
27932
|
}
|
|
@@ -27909,10 +27946,10 @@ var require_follow_redirects = __commonJS({
|
|
|
27909
27946
|
}
|
|
27910
27947
|
};
|
|
27911
27948
|
RedirectableRequest.prototype.end = function(data2, encoding, callback) {
|
|
27912
|
-
if (
|
|
27949
|
+
if (isFunction(data2)) {
|
|
27913
27950
|
callback = data2;
|
|
27914
27951
|
data2 = encoding = null;
|
|
27915
|
-
} else if (
|
|
27952
|
+
} else if (isFunction(encoding)) {
|
|
27916
27953
|
callback = encoding;
|
|
27917
27954
|
encoding = null;
|
|
27918
27955
|
}
|
|
@@ -27962,6 +27999,7 @@ var require_follow_redirects = __commonJS({
|
|
|
27962
27999
|
self2.removeListener("abort", clearTimer);
|
|
27963
28000
|
self2.removeListener("error", clearTimer);
|
|
27964
28001
|
self2.removeListener("response", clearTimer);
|
|
28002
|
+
self2.removeListener("close", clearTimer);
|
|
27965
28003
|
if (callback) {
|
|
27966
28004
|
self2.removeListener("timeout", callback);
|
|
27967
28005
|
}
|
|
@@ -27981,6 +28019,7 @@ var require_follow_redirects = __commonJS({
|
|
|
27981
28019
|
this.on("abort", clearTimer);
|
|
27982
28020
|
this.on("error", clearTimer);
|
|
27983
28021
|
this.on("response", clearTimer);
|
|
28022
|
+
this.on("close", clearTimer);
|
|
27984
28023
|
return this;
|
|
27985
28024
|
};
|
|
27986
28025
|
[
|
|
@@ -28024,19 +28063,22 @@ var require_follow_redirects = __commonJS({
|
|
|
28024
28063
|
var protocol = this._options.protocol;
|
|
28025
28064
|
var nativeProtocol = this._options.nativeProtocols[protocol];
|
|
28026
28065
|
if (!nativeProtocol) {
|
|
28027
|
-
|
|
28028
|
-
return;
|
|
28066
|
+
throw new TypeError("Unsupported protocol " + protocol);
|
|
28029
28067
|
}
|
|
28030
28068
|
if (this._options.agents) {
|
|
28031
|
-
var scheme = protocol.
|
|
28069
|
+
var scheme = protocol.slice(0, -1);
|
|
28032
28070
|
this._options.agent = this._options.agents[scheme];
|
|
28033
28071
|
}
|
|
28034
28072
|
var request = this._currentRequest = nativeProtocol.request(this._options, this._onNativeResponse);
|
|
28035
|
-
this._currentUrl = url.format(this._options);
|
|
28036
28073
|
request._redirectable = this;
|
|
28037
|
-
for (var
|
|
28038
|
-
request.on(
|
|
28074
|
+
for (var event of events) {
|
|
28075
|
+
request.on(event, eventHandlers[event]);
|
|
28039
28076
|
}
|
|
28077
|
+
this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : (
|
|
28078
|
+
// When making a request to a proxy, […]
|
|
28079
|
+
// a client MUST send the target URI in absolute-form […].
|
|
28080
|
+
this._options.path
|
|
28081
|
+
);
|
|
28040
28082
|
if (this._isRedirect) {
|
|
28041
28083
|
var i = 0;
|
|
28042
28084
|
var self2 = this;
|
|
@@ -28067,61 +28109,61 @@ var require_follow_redirects = __commonJS({
|
|
|
28067
28109
|
});
|
|
28068
28110
|
}
|
|
28069
28111
|
var location = response.headers.location;
|
|
28070
|
-
if (location
|
|
28071
|
-
abortRequest(this._currentRequest);
|
|
28072
|
-
response.destroy();
|
|
28073
|
-
if (++this._redirectCount > this._options.maxRedirects) {
|
|
28074
|
-
this.emit("error", new TooManyRedirectsError());
|
|
28075
|
-
return;
|
|
28076
|
-
}
|
|
28077
|
-
if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" || // RFC7231§6.4.4: The 303 (See Other) status code indicates that
|
|
28078
|
-
// the server is redirecting the user agent to a different resource […]
|
|
28079
|
-
// A user agent can perform a retrieval request targeting that URI
|
|
28080
|
-
// (a GET or HEAD request if using HTTP) […]
|
|
28081
|
-
statusCode === 303 && !/^(?:GET|HEAD)$/.test(this._options.method)) {
|
|
28082
|
-
this._options.method = "GET";
|
|
28083
|
-
this._requestBodyBuffers = [];
|
|
28084
|
-
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
28085
|
-
}
|
|
28086
|
-
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
28087
|
-
var currentUrlParts = url.parse(this._currentUrl);
|
|
28088
|
-
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
28089
|
-
var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
28090
|
-
var redirectUrl;
|
|
28091
|
-
try {
|
|
28092
|
-
redirectUrl = url.resolve(currentUrl, location);
|
|
28093
|
-
} catch (cause) {
|
|
28094
|
-
this.emit("error", new RedirectionError(cause));
|
|
28095
|
-
return;
|
|
28096
|
-
}
|
|
28097
|
-
debug("redirecting to", redirectUrl);
|
|
28098
|
-
this._isRedirect = true;
|
|
28099
|
-
var redirectUrlParts = url.parse(redirectUrl);
|
|
28100
|
-
Object.assign(this._options, redirectUrlParts);
|
|
28101
|
-
if (redirectUrlParts.protocol !== currentUrlParts.protocol || !isSameOrSubdomain(redirectUrlParts.host, currentHost)) {
|
|
28102
|
-
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
|
28103
|
-
}
|
|
28104
|
-
if (typeof this._options.beforeRedirect === "function") {
|
|
28105
|
-
var responseDetails = { headers: response.headers };
|
|
28106
|
-
try {
|
|
28107
|
-
this._options.beforeRedirect.call(null, this._options, responseDetails);
|
|
28108
|
-
} catch (err) {
|
|
28109
|
-
this.emit("error", err);
|
|
28110
|
-
return;
|
|
28111
|
-
}
|
|
28112
|
-
this._sanitizeOptions(this._options);
|
|
28113
|
-
}
|
|
28114
|
-
try {
|
|
28115
|
-
this._performRequest();
|
|
28116
|
-
} catch (cause) {
|
|
28117
|
-
this.emit("error", new RedirectionError(cause));
|
|
28118
|
-
}
|
|
28119
|
-
} else {
|
|
28112
|
+
if (!location || this._options.followRedirects === false || statusCode < 300 || statusCode >= 400) {
|
|
28120
28113
|
response.responseUrl = this._currentUrl;
|
|
28121
28114
|
response.redirects = this._redirects;
|
|
28122
28115
|
this.emit("response", response);
|
|
28123
28116
|
this._requestBodyBuffers = [];
|
|
28117
|
+
return;
|
|
28124
28118
|
}
|
|
28119
|
+
destroyRequest(this._currentRequest);
|
|
28120
|
+
response.destroy();
|
|
28121
|
+
if (++this._redirectCount > this._options.maxRedirects) {
|
|
28122
|
+
throw new TooManyRedirectsError();
|
|
28123
|
+
}
|
|
28124
|
+
var requestHeaders;
|
|
28125
|
+
var beforeRedirect = this._options.beforeRedirect;
|
|
28126
|
+
if (beforeRedirect) {
|
|
28127
|
+
requestHeaders = Object.assign({
|
|
28128
|
+
// The Host header was set by nativeProtocol.request
|
|
28129
|
+
Host: response.req.getHeader("host")
|
|
28130
|
+
}, this._options.headers);
|
|
28131
|
+
}
|
|
28132
|
+
var method = this._options.method;
|
|
28133
|
+
if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" || // RFC7231§6.4.4: The 303 (See Other) status code indicates that
|
|
28134
|
+
// the server is redirecting the user agent to a different resource […]
|
|
28135
|
+
// A user agent can perform a retrieval request targeting that URI
|
|
28136
|
+
// (a GET or HEAD request if using HTTP) […]
|
|
28137
|
+
statusCode === 303 && !/^(?:GET|HEAD)$/.test(this._options.method)) {
|
|
28138
|
+
this._options.method = "GET";
|
|
28139
|
+
this._requestBodyBuffers = [];
|
|
28140
|
+
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
28141
|
+
}
|
|
28142
|
+
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
28143
|
+
var currentUrlParts = parseUrl(this._currentUrl);
|
|
28144
|
+
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
28145
|
+
var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
28146
|
+
var redirectUrl = resolveUrl(location, currentUrl);
|
|
28147
|
+
debug("redirecting to", redirectUrl.href);
|
|
28148
|
+
this._isRedirect = true;
|
|
28149
|
+
spreadUrlObject(redirectUrl, this._options);
|
|
28150
|
+
if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
|
|
28151
|
+
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
|
28152
|
+
}
|
|
28153
|
+
if (isFunction(beforeRedirect)) {
|
|
28154
|
+
var responseDetails = {
|
|
28155
|
+
headers: response.headers,
|
|
28156
|
+
statusCode
|
|
28157
|
+
};
|
|
28158
|
+
var requestDetails = {
|
|
28159
|
+
url: currentUrl,
|
|
28160
|
+
method,
|
|
28161
|
+
headers: requestHeaders
|
|
28162
|
+
};
|
|
28163
|
+
beforeRedirect(this._options, responseDetails, requestDetails);
|
|
28164
|
+
this._sanitizeOptions(this._options);
|
|
28165
|
+
}
|
|
28166
|
+
this._performRequest();
|
|
28125
28167
|
};
|
|
28126
28168
|
function wrap(protocols) {
|
|
28127
28169
|
var exports3 = {
|
|
@@ -28134,21 +28176,16 @@ var require_follow_redirects = __commonJS({
|
|
|
28134
28176
|
var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
|
|
28135
28177
|
var wrappedProtocol = exports3[scheme] = Object.create(nativeProtocol);
|
|
28136
28178
|
function request(input, options2, callback) {
|
|
28137
|
-
if (
|
|
28138
|
-
|
|
28139
|
-
|
|
28140
|
-
|
|
28141
|
-
} catch (err) {
|
|
28142
|
-
input = url.parse(urlStr);
|
|
28143
|
-
}
|
|
28144
|
-
} else if (URL2 && input instanceof URL2) {
|
|
28145
|
-
input = urlToOptions(input);
|
|
28179
|
+
if (isURL(input)) {
|
|
28180
|
+
input = spreadUrlObject(input);
|
|
28181
|
+
} else if (isString(input)) {
|
|
28182
|
+
input = spreadUrlObject(parseUrl(input));
|
|
28146
28183
|
} else {
|
|
28147
28184
|
callback = options2;
|
|
28148
|
-
options2 = input;
|
|
28185
|
+
options2 = validateUrl(input);
|
|
28149
28186
|
input = { protocol };
|
|
28150
28187
|
}
|
|
28151
|
-
if (
|
|
28188
|
+
if (isFunction(options2)) {
|
|
28152
28189
|
callback = options2;
|
|
28153
28190
|
options2 = null;
|
|
28154
28191
|
}
|
|
@@ -28157,6 +28194,9 @@ var require_follow_redirects = __commonJS({
|
|
|
28157
28194
|
maxBodyLength: exports3.maxBodyLength
|
|
28158
28195
|
}, input, options2);
|
|
28159
28196
|
options2.nativeProtocols = nativeProtocols;
|
|
28197
|
+
if (!isString(options2.host) && !isString(options2.hostname)) {
|
|
28198
|
+
options2.hostname = "::1";
|
|
28199
|
+
}
|
|
28160
28200
|
assert.equal(options2.protocol, protocol, "protocol mismatch");
|
|
28161
28201
|
debug("options", options2);
|
|
28162
28202
|
return new RedirectableRequest(options2, callback);
|
|
@@ -28175,23 +28215,43 @@ var require_follow_redirects = __commonJS({
|
|
|
28175
28215
|
}
|
|
28176
28216
|
function noop3() {
|
|
28177
28217
|
}
|
|
28178
|
-
function
|
|
28179
|
-
var
|
|
28180
|
-
|
|
28181
|
-
|
|
28182
|
-
|
|
28183
|
-
|
|
28184
|
-
)
|
|
28185
|
-
|
|
28186
|
-
|
|
28187
|
-
pathname: urlObject.pathname,
|
|
28188
|
-
path: urlObject.pathname + urlObject.search,
|
|
28189
|
-
href: urlObject.href
|
|
28190
|
-
};
|
|
28191
|
-
if (urlObject.port !== "") {
|
|
28192
|
-
options2.port = Number(urlObject.port);
|
|
28218
|
+
function parseUrl(input) {
|
|
28219
|
+
var parsed;
|
|
28220
|
+
if (useNativeURL) {
|
|
28221
|
+
parsed = new URL2(input);
|
|
28222
|
+
} else {
|
|
28223
|
+
parsed = validateUrl(url.parse(input));
|
|
28224
|
+
if (!isString(parsed.protocol)) {
|
|
28225
|
+
throw new InvalidUrlError({ input });
|
|
28226
|
+
}
|
|
28193
28227
|
}
|
|
28194
|
-
return
|
|
28228
|
+
return parsed;
|
|
28229
|
+
}
|
|
28230
|
+
function resolveUrl(relative, base) {
|
|
28231
|
+
return useNativeURL ? new URL2(relative, base) : parseUrl(url.resolve(base, relative));
|
|
28232
|
+
}
|
|
28233
|
+
function validateUrl(input) {
|
|
28234
|
+
if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
|
|
28235
|
+
throw new InvalidUrlError({ input: input.href || input });
|
|
28236
|
+
}
|
|
28237
|
+
if (/^\[/.test(input.host) && !/^\[[:0-9a-f]+\](:\d+)?$/i.test(input.host)) {
|
|
28238
|
+
throw new InvalidUrlError({ input: input.href || input });
|
|
28239
|
+
}
|
|
28240
|
+
return input;
|
|
28241
|
+
}
|
|
28242
|
+
function spreadUrlObject(urlObject, target) {
|
|
28243
|
+
var spread = target || {};
|
|
28244
|
+
for (var key of preservedUrlFields) {
|
|
28245
|
+
spread[key] = urlObject[key];
|
|
28246
|
+
}
|
|
28247
|
+
if (spread.hostname.startsWith("[")) {
|
|
28248
|
+
spread.hostname = spread.hostname.slice(1, -1);
|
|
28249
|
+
}
|
|
28250
|
+
if (spread.port !== "") {
|
|
28251
|
+
spread.port = Number(spread.port);
|
|
28252
|
+
}
|
|
28253
|
+
spread.path = spread.search ? spread.pathname + spread.search : spread.pathname;
|
|
28254
|
+
return spread;
|
|
28195
28255
|
}
|
|
28196
28256
|
function removeMatchingHeaders(regex, headers) {
|
|
28197
28257
|
var lastValue;
|
|
@@ -28203,36 +28263,50 @@ var require_follow_redirects = __commonJS({
|
|
|
28203
28263
|
}
|
|
28204
28264
|
return lastValue === null || typeof lastValue === "undefined" ? void 0 : String(lastValue).trim();
|
|
28205
28265
|
}
|
|
28206
|
-
function createErrorType(code,
|
|
28207
|
-
function CustomError(
|
|
28266
|
+
function createErrorType(code, message, baseClass) {
|
|
28267
|
+
function CustomError(properties) {
|
|
28208
28268
|
Error.captureStackTrace(this, this.constructor);
|
|
28209
|
-
|
|
28210
|
-
|
|
28211
|
-
|
|
28212
|
-
this.message = defaultMessage + ": " + cause.message;
|
|
28213
|
-
this.cause = cause;
|
|
28214
|
-
}
|
|
28269
|
+
Object.assign(this, properties || {});
|
|
28270
|
+
this.code = code;
|
|
28271
|
+
this.message = this.cause ? message + ": " + this.cause.message : message;
|
|
28215
28272
|
}
|
|
28216
|
-
CustomError.prototype = new Error();
|
|
28217
|
-
CustomError.prototype
|
|
28218
|
-
|
|
28219
|
-
|
|
28273
|
+
CustomError.prototype = new (baseClass || Error)();
|
|
28274
|
+
Object.defineProperties(CustomError.prototype, {
|
|
28275
|
+
constructor: {
|
|
28276
|
+
value: CustomError,
|
|
28277
|
+
enumerable: false
|
|
28278
|
+
},
|
|
28279
|
+
name: {
|
|
28280
|
+
value: "Error [" + code + "]",
|
|
28281
|
+
enumerable: false
|
|
28282
|
+
}
|
|
28283
|
+
});
|
|
28220
28284
|
return CustomError;
|
|
28221
28285
|
}
|
|
28222
|
-
function
|
|
28223
|
-
for (var
|
|
28224
|
-
request.removeListener(
|
|
28286
|
+
function destroyRequest(request, error3) {
|
|
28287
|
+
for (var event of events) {
|
|
28288
|
+
request.removeListener(event, eventHandlers[event]);
|
|
28225
28289
|
}
|
|
28226
28290
|
request.on("error", noop3);
|
|
28227
|
-
request.
|
|
28291
|
+
request.destroy(error3);
|
|
28228
28292
|
}
|
|
28229
|
-
function
|
|
28230
|
-
|
|
28231
|
-
|
|
28232
|
-
}
|
|
28233
|
-
const dot = subdomain.length - domain.length - 1;
|
|
28293
|
+
function isSubdomain(subdomain, domain) {
|
|
28294
|
+
assert(isString(subdomain) && isString(domain));
|
|
28295
|
+
var dot = subdomain.length - domain.length - 1;
|
|
28234
28296
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
28235
28297
|
}
|
|
28298
|
+
function isString(value) {
|
|
28299
|
+
return typeof value === "string" || value instanceof String;
|
|
28300
|
+
}
|
|
28301
|
+
function isFunction(value) {
|
|
28302
|
+
return typeof value === "function";
|
|
28303
|
+
}
|
|
28304
|
+
function isBuffer(value) {
|
|
28305
|
+
return typeof value === "object" && "length" in value;
|
|
28306
|
+
}
|
|
28307
|
+
function isURL(value) {
|
|
28308
|
+
return URL2 && value instanceof URL2;
|
|
28309
|
+
}
|
|
28236
28310
|
module2.exports = wrap({ http, https });
|
|
28237
28311
|
module2.exports.wrap = wrap;
|
|
28238
28312
|
}
|
|
@@ -31593,9 +31667,9 @@ var require_error2 = __commonJS({
|
|
|
31593
31667
|
}
|
|
31594
31668
|
});
|
|
31595
31669
|
|
|
31596
|
-
//
|
|
31670
|
+
// ../../node_modules/qs/lib/utils.js
|
|
31597
31671
|
var require_utils3 = __commonJS({
|
|
31598
|
-
"
|
|
31672
|
+
"../../node_modules/qs/lib/utils.js"(exports2, module2) {
|
|
31599
31673
|
"use strict";
|
|
31600
31674
|
var has = Object.prototype.hasOwnProperty;
|
|
31601
31675
|
var isArray = Array.isArray;
|
|
@@ -31775,9 +31849,9 @@ var require_utils3 = __commonJS({
|
|
|
31775
31849
|
}
|
|
31776
31850
|
});
|
|
31777
31851
|
|
|
31778
|
-
//
|
|
31852
|
+
// ../../node_modules/qs/lib/formats.js
|
|
31779
31853
|
var require_formats = __commonJS({
|
|
31780
|
-
"
|
|
31854
|
+
"../../node_modules/qs/lib/formats.js"(exports2, module2) {
|
|
31781
31855
|
"use strict";
|
|
31782
31856
|
var replace = String.prototype.replace;
|
|
31783
31857
|
var percentTwenties = /%20/g;
|
|
@@ -31803,9 +31877,9 @@ var require_formats = __commonJS({
|
|
|
31803
31877
|
}
|
|
31804
31878
|
});
|
|
31805
31879
|
|
|
31806
|
-
//
|
|
31880
|
+
// ../../node_modules/qs/lib/stringify.js
|
|
31807
31881
|
var require_stringify2 = __commonJS({
|
|
31808
|
-
"
|
|
31882
|
+
"../../node_modules/qs/lib/stringify.js"(exports2, module2) {
|
|
31809
31883
|
"use strict";
|
|
31810
31884
|
var utils = require_utils3();
|
|
31811
31885
|
var formats = require_formats();
|
|
@@ -32038,9 +32112,9 @@ var require_stringify2 = __commonJS({
|
|
|
32038
32112
|
}
|
|
32039
32113
|
});
|
|
32040
32114
|
|
|
32041
|
-
//
|
|
32115
|
+
// ../../node_modules/qs/lib/parse.js
|
|
32042
32116
|
var require_parse = __commonJS({
|
|
32043
|
-
"
|
|
32117
|
+
"../../node_modules/qs/lib/parse.js"(exports2, module2) {
|
|
32044
32118
|
"use strict";
|
|
32045
32119
|
var utils = require_utils3();
|
|
32046
32120
|
var has = Object.prototype.hasOwnProperty;
|
|
@@ -32244,9 +32318,9 @@ var require_parse = __commonJS({
|
|
|
32244
32318
|
}
|
|
32245
32319
|
});
|
|
32246
32320
|
|
|
32247
|
-
//
|
|
32321
|
+
// ../../node_modules/qs/lib/index.js
|
|
32248
32322
|
var require_lib = __commonJS({
|
|
32249
|
-
"
|
|
32323
|
+
"../../node_modules/qs/lib/index.js"(exports2, module2) {
|
|
32250
32324
|
"use strict";
|
|
32251
32325
|
var stringify = require_stringify2();
|
|
32252
32326
|
var parse4 = require_parse();
|
|
@@ -32550,7 +32624,8 @@ var require_uaaOauth = __commonJS({
|
|
|
32550
32624
|
const response = await axios_1.default.get(url, {
|
|
32551
32625
|
headers: {
|
|
32552
32626
|
authorization: `bearer ${accessToken}`,
|
|
32553
|
-
[common_1.CSRF.requestHeaderName]: common_1.CSRF.requestHeaderValue
|
|
32627
|
+
[common_1.CSRF.requestHeaderName]: common_1.CSRF.requestHeaderValue,
|
|
32628
|
+
"x-sap-security-session": "create"
|
|
32554
32629
|
}
|
|
32555
32630
|
});
|
|
32556
32631
|
return {
|
|
@@ -47563,7 +47638,7 @@ var require_connection = __commonJS({
|
|
|
47563
47638
|
return {
|
|
47564
47639
|
auth: config.auth,
|
|
47565
47640
|
cookies: new cookies_1.Cookies().setCookie(response),
|
|
47566
|
-
xsrfToken: response.headers[common_1.CSRF.responseHeaderName]
|
|
47641
|
+
xsrfToken: response == null ? void 0 : response.headers[common_1.CSRF.responseHeaderName]
|
|
47567
47642
|
};
|
|
47568
47643
|
}
|
|
47569
47644
|
function throwIfHtmlLoginForm(response) {
|
|
@@ -51569,6 +51644,7 @@ var require_utils6 = __commonJS({
|
|
|
51569
51644
|
error3 = err;
|
|
51570
51645
|
}
|
|
51571
51646
|
}
|
|
51647
|
+
await sapSystem.endSecuritySession();
|
|
51572
51648
|
return {
|
|
51573
51649
|
v2Count: result2[__1.ODataVersion.v2],
|
|
51574
51650
|
v4Count: result2[__1.ODataVersion.v4],
|
|
@@ -51815,6 +51891,15 @@ var require_oDataClient = __commonJS({
|
|
|
51815
51891
|
}
|
|
51816
51892
|
return response == null ? void 0 : response.data;
|
|
51817
51893
|
}
|
|
51894
|
+
async icfLogOff() {
|
|
51895
|
+
const httpClient = await this.getClient();
|
|
51896
|
+
const logOffPath = "bc/icf/logoff";
|
|
51897
|
+
try {
|
|
51898
|
+
await httpClient.get(logOffPath);
|
|
51899
|
+
} catch (e) {
|
|
51900
|
+
console.log(`Error ending security session ${e.message}`);
|
|
51901
|
+
}
|
|
51902
|
+
}
|
|
51818
51903
|
};
|
|
51819
51904
|
exports2.ODataClient = ODataClient;
|
|
51820
51905
|
ODataClient.hasAxiosDebugLoggerConfig = false;
|
|
@@ -52531,7 +52616,7 @@ var require_sapSystem = __commonJS({
|
|
|
52531
52616
|
* DO NOT directly create instances of this class outside of odata-client
|
|
52532
52617
|
*
|
|
52533
52618
|
* Please use the functions newSapSystem, newSapSystemForServiceUrl, newSapSystemForSteampunk
|
|
52534
|
-
*
|
|
52619
|
+
* newSapSystemForDestination
|
|
52535
52620
|
*
|
|
52536
52621
|
*/
|
|
52537
52622
|
constructor(name, config, credentials = {}, userDisplayName, unSaved = false, postConnectionCallbackCreator, sapSystemType = types_1.SapSystemType.BTP) {
|
|
@@ -52653,10 +52738,14 @@ var require_sapSystem = __commonJS({
|
|
|
52653
52738
|
}
|
|
52654
52739
|
return systemDisplayName + userDisplayName;
|
|
52655
52740
|
}
|
|
52656
|
-
|
|
52741
|
+
/**
|
|
52742
|
+
* Determine if the current Sap System has credentials saved against it
|
|
52743
|
+
*/
|
|
52744
|
+
hasSavedCredentials() {
|
|
52745
|
+
return Object.keys(this.credentials).length !== 0;
|
|
52746
|
+
}
|
|
52657
52747
|
isOnPremSystem() {
|
|
52658
|
-
|
|
52659
|
-
return ((_a2 = this.config) == null ? void 0 : _a2.authenticationType) === ux_store_1.AuthenticationType.Basic || Object.keys(this.credentials).length !== 0 && !(this.isScp() || this.isS4HC());
|
|
52748
|
+
return (0, config_1.hasDestinationAttrib)("ProxyType", "OnPremise", this.config.destinationAttributes);
|
|
52660
52749
|
}
|
|
52661
52750
|
isS4HC() {
|
|
52662
52751
|
var _a2;
|
|
@@ -52749,6 +52838,19 @@ var require_sapSystem = __commonJS({
|
|
|
52749
52838
|
return client;
|
|
52750
52839
|
}
|
|
52751
52840
|
}
|
|
52841
|
+
async endSecuritySession() {
|
|
52842
|
+
const path2 = "/sap/public/";
|
|
52843
|
+
const system = deepClone(this.config);
|
|
52844
|
+
system.service = path2;
|
|
52845
|
+
if (this.connection) {
|
|
52846
|
+
const client = new client_1.ODataClient({
|
|
52847
|
+
system,
|
|
52848
|
+
connection: this.connection,
|
|
52849
|
+
postConnectionCallback: this.postConnectionCallback()
|
|
52850
|
+
});
|
|
52851
|
+
await client.icfLogOff();
|
|
52852
|
+
}
|
|
52853
|
+
}
|
|
52752
52854
|
setUserDisplayName(u) {
|
|
52753
52855
|
this._userDisplayName = u;
|
|
52754
52856
|
}
|
|
@@ -56467,7 +56569,7 @@ var require_package2 = __commonJS({
|
|
|
56467
56569
|
"../lib/telemetry/dist/package.json"(exports2, module2) {
|
|
56468
56570
|
module2.exports = {
|
|
56469
56571
|
name: "@sap/ux-telemetry",
|
|
56470
|
-
version: "1.12.
|
|
56572
|
+
version: "1.12.3",
|
|
56471
56573
|
description: "SAP Fiori tools telemetry library",
|
|
56472
56574
|
main: "dist/src/index.js",
|
|
56473
56575
|
author: "SAP SE",
|
|
@@ -56492,10 +56594,10 @@ var require_package2 = __commonJS({
|
|
|
56492
56594
|
},
|
|
56493
56595
|
dependencies: {
|
|
56494
56596
|
"@sap-ux/store": "0.4.0",
|
|
56495
|
-
"@sap/ux-cds": "1.12.
|
|
56496
|
-
"@sap/ux-common-utils": "1.12.
|
|
56497
|
-
"@sap/ux-feature-toggle": "1.12.
|
|
56498
|
-
"@sap/ux-project-access": "1.12.
|
|
56597
|
+
"@sap/ux-cds": "1.12.3",
|
|
56598
|
+
"@sap/ux-common-utils": "1.12.3",
|
|
56599
|
+
"@sap/ux-feature-toggle": "1.12.3",
|
|
56600
|
+
"@sap/ux-project-access": "1.12.3",
|
|
56499
56601
|
applicationinsights: "1.4.1",
|
|
56500
56602
|
axios: "1.6.1",
|
|
56501
56603
|
"performance-now": "2.1.0",
|
|
@@ -68303,7 +68405,8 @@ var require_i18n2 = __commonJS({
|
|
|
68303
68405
|
ERROR_DETAIL_PROJECT_TYPE: "Cannot determine project type for app '{{- appRoot}}' with project root '{{- projectRoot}}'",
|
|
68304
68406
|
ERROR_UI5_YAML_PARSING: "Cannot parse ui5 config file '{{- filePath}}'. Cause - '{{- parsingError}}'",
|
|
68305
68407
|
ERROR_UI5_YAML_DYNAMIC_CFG_IMPORT: "Cannot import dynamic config from '{{- filePath}}', defined in - '{{- yamlFile}}'",
|
|
68306
|
-
ERROR_UI5_YAML_MISSING: "This project is not configured to use mockserver. To preview the data in the application, add mockserver config from the application info page"
|
|
68408
|
+
ERROR_UI5_YAML_MISSING: "This project is not configured to use mockserver. To preview the data in the application, add mockserver config from the application info page",
|
|
68409
|
+
ERROR_RESOLVING_I18N_BUNDLES: "Error resolving i18n bundles: '{{- error}}'"
|
|
68307
68410
|
};
|
|
68308
68411
|
}
|
|
68309
68412
|
});
|
|
@@ -74047,6 +74150,7 @@ var require_constants5 = __commonJS({
|
|
|
74047
74150
|
exports2.FileName = void 0;
|
|
74048
74151
|
exports2.FileName = {
|
|
74049
74152
|
AdaptationConfig: "config.json",
|
|
74153
|
+
CapJavaApplicationYaml: "application.yaml",
|
|
74050
74154
|
ExtConfigJson: ".extconfig.json",
|
|
74051
74155
|
Manifest: "manifest.json",
|
|
74052
74156
|
ManifestAppDescrVar: "manifest.appdescr_variant",
|
|
@@ -74466,7 +74570,7 @@ var require_cap = __commonJS({
|
|
|
74466
74570
|
var _a2;
|
|
74467
74571
|
return __awaiter(this, void 0, void 0, function* () {
|
|
74468
74572
|
const srv = (_a2 = capCustomPaths === null || capCustomPaths === void 0 ? void 0 : capCustomPaths.srv) !== null && _a2 !== void 0 ? _a2 : (yield getCapCustomPaths(projectRoot)).srv;
|
|
74469
|
-
return (0, file_1.fileExists)((0, path_1.join)(projectRoot, srv, "src", "main", "resources",
|
|
74573
|
+
return (0, file_1.fileExists)((0, path_1.join)(projectRoot, srv, "src", "main", "resources", constants_1.FileName.CapJavaApplicationYaml));
|
|
74470
74574
|
});
|
|
74471
74575
|
}
|
|
74472
74576
|
exports2.isCapJavaProject = isCapJavaProject;
|
|
@@ -74514,15 +74618,26 @@ var require_cap = __commonJS({
|
|
|
74514
74618
|
function getCapModelAndServices(projectRoot) {
|
|
74515
74619
|
var _a2;
|
|
74516
74620
|
return __awaiter(this, void 0, void 0, function* () {
|
|
74517
|
-
|
|
74518
|
-
|
|
74621
|
+
let _projectRoot;
|
|
74622
|
+
let _logger;
|
|
74623
|
+
if (typeof projectRoot === "object") {
|
|
74624
|
+
_projectRoot = projectRoot.projectRoot;
|
|
74625
|
+
_logger = projectRoot.logger;
|
|
74626
|
+
} else {
|
|
74627
|
+
_projectRoot = projectRoot;
|
|
74628
|
+
}
|
|
74629
|
+
const cds = yield loadCdsModuleFromProject(_projectRoot);
|
|
74630
|
+
_logger === null || _logger === void 0 ? void 0 : _logger.info(`@sap-ux/project-access:getCapModelAndServices - Using 'cds.home': ${cds.home}`);
|
|
74631
|
+
_logger === null || _logger === void 0 ? void 0 : _logger.info(`@sap-ux/project-access:getCapModelAndServices - Using 'cds.version': ${cds.version}`);
|
|
74632
|
+
_logger === null || _logger === void 0 ? void 0 : _logger.info(`@sap-ux/project-access:getCapModelAndServices - Using 'cds.root': ${cds.root}`);
|
|
74633
|
+
const capProjectPaths = yield getCapCustomPaths(_projectRoot);
|
|
74519
74634
|
const modelPaths = [
|
|
74520
|
-
(0, path_1.join)(
|
|
74521
|
-
(0, path_1.join)(
|
|
74522
|
-
(0, path_1.join)(
|
|
74635
|
+
(0, path_1.join)(_projectRoot, capProjectPaths.app),
|
|
74636
|
+
(0, path_1.join)(_projectRoot, capProjectPaths.srv),
|
|
74637
|
+
(0, path_1.join)(_projectRoot, capProjectPaths.db)
|
|
74523
74638
|
];
|
|
74524
74639
|
const model = yield cds.load(modelPaths);
|
|
74525
|
-
let services = (_a2 = cds.compile.to.serviceinfo(model, { root:
|
|
74640
|
+
let services = (_a2 = cds.compile.to.serviceinfo(model, { root: _projectRoot })) !== null && _a2 !== void 0 ? _a2 : [];
|
|
74526
74641
|
if (services.map) {
|
|
74527
74642
|
services = services.map((value) => {
|
|
74528
74643
|
return {
|
|
@@ -74684,6 +74799,7 @@ var require_cap = __commonJS({
|
|
|
74684
74799
|
if (global) {
|
|
74685
74800
|
global.cds = cds;
|
|
74686
74801
|
}
|
|
74802
|
+
cds.root = capProjectPath;
|
|
74687
74803
|
return cds;
|
|
74688
74804
|
});
|
|
74689
74805
|
}
|
|
@@ -76851,6 +76967,7 @@ var require_middlewares = __commonJS({
|
|
|
76851
76967
|
}
|
|
76852
76968
|
exports2.getAppReloadMiddlewareConfig = getAppReloadMiddlewareConfig;
|
|
76853
76969
|
function getFioriToolsProxyMiddlewareConfig(backends, ui5) {
|
|
76970
|
+
var _a2, _b;
|
|
76854
76971
|
const fioriToolsProxy = {
|
|
76855
76972
|
name: "fiori-tools-proxy",
|
|
76856
76973
|
afterMiddleware: "compression",
|
|
@@ -76866,14 +76983,15 @@ var require_middlewares = __commonJS({
|
|
|
76866
76983
|
];
|
|
76867
76984
|
if (backends && backends.length > 0) {
|
|
76868
76985
|
backends.forEach((element) => {
|
|
76869
|
-
|
|
76986
|
+
var _a3;
|
|
76987
|
+
element.path = (_a3 = element.path) !== null && _a3 !== void 0 ? _a3 : "/";
|
|
76870
76988
|
});
|
|
76871
76989
|
fioriToolsProxy.configuration.backend = backends;
|
|
76872
76990
|
}
|
|
76873
76991
|
if (ui5 !== void 0) {
|
|
76874
76992
|
fioriToolsProxy.configuration["ui5"] = {
|
|
76875
|
-
path: ui5.path
|
|
76876
|
-
url: ui5.url
|
|
76993
|
+
path: (_a2 = ui5.path) !== null && _a2 !== void 0 ? _a2 : ["/resources", "/test-resources"],
|
|
76994
|
+
url: (_b = ui5.url) !== null && _b !== void 0 ? _b : "https://ui5.sap.com"
|
|
76877
76995
|
};
|
|
76878
76996
|
if (ui5.version) {
|
|
76879
76997
|
fioriToolsProxy.configuration["ui5"].version = ui5.version;
|
|
@@ -76894,7 +77012,7 @@ var require_middlewares = __commonJS({
|
|
|
76894
77012
|
mountPath: "/",
|
|
76895
77013
|
services: [
|
|
76896
77014
|
{
|
|
76897
|
-
urlPath: path2
|
|
77015
|
+
urlPath: path2 !== null && path2 !== void 0 ? path2 : "",
|
|
76898
77016
|
metadataPath: "./webapp/localService/metadata.xml",
|
|
76899
77017
|
mockdataPath: "./webapp/localService/data",
|
|
76900
77018
|
generateMockData: true
|
|
@@ -77013,6 +77131,40 @@ var require_ui5config = __commonJS({
|
|
|
77013
77131
|
this.document.setIn({ path: "type", value });
|
|
77014
77132
|
return this;
|
|
77015
77133
|
}
|
|
77134
|
+
/**
|
|
77135
|
+
* Add a custom configuration to the yaml.
|
|
77136
|
+
*
|
|
77137
|
+
* @param key key/name of the custom property
|
|
77138
|
+
* @param value the properties value
|
|
77139
|
+
*/
|
|
77140
|
+
addCustomConfiguration(key, value) {
|
|
77141
|
+
try {
|
|
77142
|
+
const configNode = this.document.getMap({ path: "customConfiguration" });
|
|
77143
|
+
configNode.setIn([key], value);
|
|
77144
|
+
} catch (_error) {
|
|
77145
|
+
this.document.setIn({
|
|
77146
|
+
path: "customConfiguration",
|
|
77147
|
+
value: {
|
|
77148
|
+
[key]: value
|
|
77149
|
+
}
|
|
77150
|
+
});
|
|
77151
|
+
}
|
|
77152
|
+
}
|
|
77153
|
+
/**
|
|
77154
|
+
* Get a custom configuration from the yaml.
|
|
77155
|
+
*
|
|
77156
|
+
* @param key key/name of the custom property
|
|
77157
|
+
* @returns the value of the property or undefined
|
|
77158
|
+
*/
|
|
77159
|
+
getCustomConfiguration(key) {
|
|
77160
|
+
var _a2, _b;
|
|
77161
|
+
try {
|
|
77162
|
+
const node = this.document.getMap({ path: "customConfiguration" }).get(key);
|
|
77163
|
+
return (_b = (_a2 = node === null || node === void 0 ? void 0 : node.toJSON) === null || _a2 === void 0 ? void 0 : _a2.call(node)) !== null && _b !== void 0 ? _b : node === null || node === void 0 ? void 0 : node.toString();
|
|
77164
|
+
} catch (_error) {
|
|
77165
|
+
return void 0;
|
|
77166
|
+
}
|
|
77167
|
+
}
|
|
77016
77168
|
/**
|
|
77017
77169
|
* Adds a UI5 Framework entry to the yaml file.
|
|
77018
77170
|
*
|
|
@@ -77143,20 +77295,23 @@ var require_ui5config = __commonJS({
|
|
|
77143
77295
|
*
|
|
77144
77296
|
* @param target system that this app is to be deployed to
|
|
77145
77297
|
* @param app application configuration for the deployment to ABAP
|
|
77146
|
-
* @
|
|
77298
|
+
* @param fioriTools if true use the middleware included in the @sap/ux-ui5-tooling module
|
|
77299
|
+
* @returns this UI5Config instance
|
|
77147
77300
|
* @memberof UI5Config
|
|
77148
77301
|
*/
|
|
77149
|
-
addAbapDeployTask(target, app) {
|
|
77302
|
+
addAbapDeployTask(target, app, fioriTools = true) {
|
|
77150
77303
|
this.document.appendTo({
|
|
77151
|
-
path: "builder.resources",
|
|
77152
|
-
value:
|
|
77153
|
-
|
|
77154
|
-
|
|
77304
|
+
path: "builder.resources.excludes",
|
|
77305
|
+
value: "/test/**"
|
|
77306
|
+
});
|
|
77307
|
+
this.document.appendTo({
|
|
77308
|
+
path: "builder.resources.excludes",
|
|
77309
|
+
value: "/localService/**"
|
|
77155
77310
|
});
|
|
77156
77311
|
this.document.appendTo({
|
|
77157
77312
|
path: "builder.customTasks",
|
|
77158
77313
|
value: {
|
|
77159
|
-
name: "deploy-to-abap",
|
|
77314
|
+
name: fioriTools ? "deploy-to-abap" : "abap-deploy-task",
|
|
77160
77315
|
afterTask: "generateCachebusterInfo",
|
|
77161
77316
|
configuration: { target, app }
|
|
77162
77317
|
}
|
|
@@ -77437,79 +77592,20 @@ var require_ui5_config = __commonJS({
|
|
|
77437
77592
|
});
|
|
77438
77593
|
}
|
|
77439
77594
|
exports2.getWebappPath = getWebappPath;
|
|
77440
|
-
function readUi5Yaml(
|
|
77595
|
+
function readUi5Yaml(projectRoot, fileName) {
|
|
77441
77596
|
return __awaiter(this, void 0, void 0, function* () {
|
|
77442
|
-
const ui5YamlPath = (0, path_1.join)(
|
|
77597
|
+
const ui5YamlPath = (0, path_1.join)(projectRoot, fileName);
|
|
77443
77598
|
if (yield (0, file_1.fileExists)(ui5YamlPath)) {
|
|
77444
77599
|
const yamlString = yield (0, file_1.readFile)(ui5YamlPath);
|
|
77445
77600
|
return yield ui5_config_1.UI5Config.newInstance(yamlString);
|
|
77446
77601
|
}
|
|
77447
|
-
throw Error(`File '${fileName}' not found in project '${
|
|
77602
|
+
throw Error(`File '${fileName}' not found in project '${projectRoot}'`);
|
|
77448
77603
|
});
|
|
77449
77604
|
}
|
|
77450
77605
|
exports2.readUi5Yaml = readUi5Yaml;
|
|
77451
77606
|
}
|
|
77452
77607
|
});
|
|
77453
77608
|
|
|
77454
|
-
// ../../node_modules/@sap-ux/project-access/dist/project/info.js
|
|
77455
|
-
var require_info = __commonJS({
|
|
77456
|
-
"../../node_modules/@sap-ux/project-access/dist/project/info.js"(exports2) {
|
|
77457
|
-
"use strict";
|
|
77458
|
-
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
77459
|
-
function adopt(value) {
|
|
77460
|
-
return value instanceof P ? value : new P(function(resolve) {
|
|
77461
|
-
resolve(value);
|
|
77462
|
-
});
|
|
77463
|
-
}
|
|
77464
|
-
return new (P || (P = Promise))(function(resolve, reject) {
|
|
77465
|
-
function fulfilled(value) {
|
|
77466
|
-
try {
|
|
77467
|
-
step(generator.next(value));
|
|
77468
|
-
} catch (e) {
|
|
77469
|
-
reject(e);
|
|
77470
|
-
}
|
|
77471
|
-
}
|
|
77472
|
-
function rejected(value) {
|
|
77473
|
-
try {
|
|
77474
|
-
step(generator["throw"](value));
|
|
77475
|
-
} catch (e) {
|
|
77476
|
-
reject(e);
|
|
77477
|
-
}
|
|
77478
|
-
}
|
|
77479
|
-
function step(result2) {
|
|
77480
|
-
result2.done ? resolve(result2.value) : adopt(result2.value).then(fulfilled, rejected);
|
|
77481
|
-
}
|
|
77482
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
77483
|
-
});
|
|
77484
|
-
};
|
|
77485
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
77486
|
-
exports2.getAppProgrammingLanguage = void 0;
|
|
77487
|
-
var path_1 = require("path");
|
|
77488
|
-
var constants_1 = require_constants5();
|
|
77489
|
-
var file_1 = require_file4();
|
|
77490
|
-
var ui5_config_1 = require_ui5_config();
|
|
77491
|
-
function getAppProgrammingLanguage(appRoot, memFs) {
|
|
77492
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
77493
|
-
const ignoreFolders = ["node_modules", ".git"];
|
|
77494
|
-
let appLanguage = "";
|
|
77495
|
-
try {
|
|
77496
|
-
const webappPath = yield (0, ui5_config_1.getWebappPath)(appRoot, memFs);
|
|
77497
|
-
if (yield (0, file_1.fileExists)(webappPath, memFs)) {
|
|
77498
|
-
if ((yield (0, file_1.fileExists)((0, path_1.join)(appRoot, constants_1.FileName.Tsconfig), memFs)) && (yield (0, file_1.findFilesByExtension)(".ts", webappPath, ignoreFolders, memFs)).length > 0) {
|
|
77499
|
-
appLanguage = "TypeScript";
|
|
77500
|
-
} else if ((yield (0, file_1.findFilesByExtension)(".js", webappPath, ignoreFolders, memFs)).length > 0) {
|
|
77501
|
-
appLanguage = "JavaScript";
|
|
77502
|
-
}
|
|
77503
|
-
}
|
|
77504
|
-
} catch (_a2) {
|
|
77505
|
-
}
|
|
77506
|
-
return appLanguage;
|
|
77507
|
-
});
|
|
77508
|
-
}
|
|
77509
|
-
exports2.getAppProgrammingLanguage = getAppProgrammingLanguage;
|
|
77510
|
-
}
|
|
77511
|
-
});
|
|
77512
|
-
|
|
77513
77609
|
// ../../node_modules/@sap-ux/project-access/dist/project/search.js
|
|
77514
77610
|
var require_search = __commonJS({
|
|
77515
77611
|
"../../node_modules/@sap-ux/project-access/dist/project/search.js"(exports2) {
|
|
@@ -77645,23 +77741,32 @@ var require_search = __commonJS({
|
|
|
77645
77741
|
projectRoot: appRoot
|
|
77646
77742
|
};
|
|
77647
77743
|
}
|
|
77648
|
-
|
|
77649
|
-
|
|
77650
|
-
|
|
77651
|
-
|
|
77652
|
-
|
|
77653
|
-
|
|
77654
|
-
|
|
77655
|
-
|
|
77656
|
-
|
|
77657
|
-
|
|
77658
|
-
|
|
77744
|
+
const projectRoot = yield findCapProjectRoot(appRoot);
|
|
77745
|
+
if (projectRoot) {
|
|
77746
|
+
return {
|
|
77747
|
+
appRoot,
|
|
77748
|
+
projectRoot
|
|
77749
|
+
};
|
|
77750
|
+
}
|
|
77751
|
+
} catch (_a2) {
|
|
77752
|
+
}
|
|
77753
|
+
return null;
|
|
77754
|
+
});
|
|
77755
|
+
}
|
|
77756
|
+
function findCapProjectRoot(path2) {
|
|
77757
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77758
|
+
try {
|
|
77759
|
+
const { root } = (0, path_1.parse)(path2);
|
|
77760
|
+
let projectRoot = (0, path_1.dirname)(path2);
|
|
77761
|
+
while (projectRoot !== root) {
|
|
77762
|
+
if (yield (0, cap_1.getCapProjectType)(projectRoot)) {
|
|
77763
|
+
if ((0, path_1.join)(projectRoot, "app") !== path2) {
|
|
77764
|
+
return projectRoot;
|
|
77659
77765
|
}
|
|
77660
|
-
projectRoot = (0, path_1.dirname)(projectRoot);
|
|
77661
77766
|
}
|
|
77662
|
-
|
|
77767
|
+
projectRoot = (0, path_1.dirname)(projectRoot);
|
|
77663
77768
|
}
|
|
77664
|
-
} catch (
|
|
77769
|
+
} catch (_a2) {
|
|
77665
77770
|
}
|
|
77666
77771
|
return null;
|
|
77667
77772
|
});
|
|
@@ -77809,8 +77914,8 @@ var require_search = __commonJS({
|
|
|
77809
77914
|
function findCapProjects(options2) {
|
|
77810
77915
|
return __awaiter(this, void 0, void 0, function* () {
|
|
77811
77916
|
const result2 = /* @__PURE__ */ new Set();
|
|
77812
|
-
const excludeFolders2 = ["node_modules", "dist", "
|
|
77813
|
-
const fileNames = [constants_1.FileName.Pom, constants_1.FileName.Package];
|
|
77917
|
+
const excludeFolders2 = ["node_modules", "dist", "webapp", "MDKModule", "gen"];
|
|
77918
|
+
const fileNames = [constants_1.FileName.Pom, constants_1.FileName.Package, constants_1.FileName.CapJavaApplicationYaml];
|
|
77814
77919
|
const wsRoots = wsFoldersToRootPaths(options2.wsFolders);
|
|
77815
77920
|
for (const root of wsRoots) {
|
|
77816
77921
|
const filesToCheck = yield (0, file_1.findBy)({
|
|
@@ -77818,7 +77923,14 @@ var require_search = __commonJS({
|
|
|
77818
77923
|
root,
|
|
77819
77924
|
excludeFolders: excludeFolders2
|
|
77820
77925
|
});
|
|
77821
|
-
const
|
|
77926
|
+
const appYamlsToCheck = Array.from(new Set(filesToCheck.filter((file) => (0, path_1.basename)(file) === constants_1.FileName.CapJavaApplicationYaml).map((file) => (0, path_1.dirname)(file))));
|
|
77927
|
+
const foldersToCheck = Array.from(new Set(filesToCheck.filter((file) => (0, path_1.basename)(file) !== constants_1.FileName.CapJavaApplicationYaml).map((file) => (0, path_1.dirname)(file))));
|
|
77928
|
+
for (const appYamlToCheck of appYamlsToCheck) {
|
|
77929
|
+
const capRoot = yield findCapProjectRoot(appYamlToCheck);
|
|
77930
|
+
if (capRoot) {
|
|
77931
|
+
result2.add(capRoot);
|
|
77932
|
+
}
|
|
77933
|
+
}
|
|
77822
77934
|
for (const folderToCheck of foldersToCheck) {
|
|
77823
77935
|
if ((yield (0, cap_1.getCapProjectType)(folderToCheck)) !== void 0) {
|
|
77824
77936
|
result2.add(folderToCheck);
|
|
@@ -77832,6 +77944,118 @@ var require_search = __commonJS({
|
|
|
77832
77944
|
}
|
|
77833
77945
|
});
|
|
77834
77946
|
|
|
77947
|
+
// ../../node_modules/@sap-ux/project-access/dist/project/info.js
|
|
77948
|
+
var require_info = __commonJS({
|
|
77949
|
+
"../../node_modules/@sap-ux/project-access/dist/project/info.js"(exports2) {
|
|
77950
|
+
"use strict";
|
|
77951
|
+
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
77952
|
+
function adopt(value) {
|
|
77953
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
77954
|
+
resolve(value);
|
|
77955
|
+
});
|
|
77956
|
+
}
|
|
77957
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
77958
|
+
function fulfilled(value) {
|
|
77959
|
+
try {
|
|
77960
|
+
step(generator.next(value));
|
|
77961
|
+
} catch (e) {
|
|
77962
|
+
reject(e);
|
|
77963
|
+
}
|
|
77964
|
+
}
|
|
77965
|
+
function rejected(value) {
|
|
77966
|
+
try {
|
|
77967
|
+
step(generator["throw"](value));
|
|
77968
|
+
} catch (e) {
|
|
77969
|
+
reject(e);
|
|
77970
|
+
}
|
|
77971
|
+
}
|
|
77972
|
+
function step(result2) {
|
|
77973
|
+
result2.done ? resolve(result2.value) : adopt(result2.value).then(fulfilled, rejected);
|
|
77974
|
+
}
|
|
77975
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
77976
|
+
});
|
|
77977
|
+
};
|
|
77978
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
77979
|
+
exports2.getProjectType = exports2.getAppType = exports2.getAppProgrammingLanguage = void 0;
|
|
77980
|
+
var path_1 = require("path");
|
|
77981
|
+
var constants_1 = require_constants5();
|
|
77982
|
+
var file_1 = require_file4();
|
|
77983
|
+
var cap_1 = require_cap();
|
|
77984
|
+
var ui5_config_1 = require_ui5_config();
|
|
77985
|
+
var search_1 = require_search();
|
|
77986
|
+
function getAppProgrammingLanguage(appRoot, memFs) {
|
|
77987
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77988
|
+
const ignoreFolders = ["node_modules", ".git"];
|
|
77989
|
+
let appLanguage = "";
|
|
77990
|
+
try {
|
|
77991
|
+
const webappPath = yield (0, ui5_config_1.getWebappPath)(appRoot, memFs);
|
|
77992
|
+
if (yield (0, file_1.fileExists)(webappPath, memFs)) {
|
|
77993
|
+
if ((yield (0, file_1.fileExists)((0, path_1.join)(appRoot, constants_1.FileName.Tsconfig), memFs)) && (yield (0, file_1.findFilesByExtension)(".ts", webappPath, ignoreFolders, memFs)).length > 0) {
|
|
77994
|
+
appLanguage = "TypeScript";
|
|
77995
|
+
} else if ((yield (0, file_1.findFilesByExtension)(".js", webappPath, ignoreFolders, memFs)).length > 0) {
|
|
77996
|
+
appLanguage = "JavaScript";
|
|
77997
|
+
}
|
|
77998
|
+
}
|
|
77999
|
+
} catch (_a2) {
|
|
78000
|
+
}
|
|
78001
|
+
return appLanguage;
|
|
78002
|
+
});
|
|
78003
|
+
}
|
|
78004
|
+
exports2.getAppProgrammingLanguage = getAppProgrammingLanguage;
|
|
78005
|
+
function getAppType(appRoot) {
|
|
78006
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
78007
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78008
|
+
let appType;
|
|
78009
|
+
try {
|
|
78010
|
+
const artifacts = yield (0, search_1.findFioriArtifacts)({
|
|
78011
|
+
wsFolders: [appRoot],
|
|
78012
|
+
artifacts: ["adaptations", "applications", "extensions", "libraries"]
|
|
78013
|
+
});
|
|
78014
|
+
if (((_b = (_a2 = artifacts.applications) === null || _a2 === void 0 ? void 0 : _a2.length) !== null && _b !== void 0 ? _b : 0) + ((_d = (_c = artifacts.adaptations) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0) + ((_f = (_e = artifacts.extensions) === null || _e === void 0 ? void 0 : _e.length) !== null && _f !== void 0 ? _f : 0) + ((_h = (_g = artifacts.libraries) === null || _g === void 0 ? void 0 : _g.length) !== null && _h !== void 0 ? _h : 0) === 1) {
|
|
78015
|
+
if (((_j = artifacts.applications) === null || _j === void 0 ? void 0 : _j.length) === 1) {
|
|
78016
|
+
appType = yield getApplicationType(artifacts.applications[0]);
|
|
78017
|
+
} else if (((_k = artifacts.adaptations) === null || _k === void 0 ? void 0 : _k.length) === 1) {
|
|
78018
|
+
appType = "Fiori Adaptation";
|
|
78019
|
+
} else if (((_l = artifacts.extensions) === null || _l === void 0 ? void 0 : _l.length) === 1) {
|
|
78020
|
+
appType = "SAPUI5 Extension";
|
|
78021
|
+
} else if (((_m = artifacts.libraries) === null || _m === void 0 ? void 0 : _m.length) === 1) {
|
|
78022
|
+
appType = "Fiori Reuse";
|
|
78023
|
+
}
|
|
78024
|
+
}
|
|
78025
|
+
} catch (_o) {
|
|
78026
|
+
}
|
|
78027
|
+
return appType;
|
|
78028
|
+
});
|
|
78029
|
+
}
|
|
78030
|
+
exports2.getAppType = getAppType;
|
|
78031
|
+
function getApplicationType(application) {
|
|
78032
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78033
|
+
let appType;
|
|
78034
|
+
const rootPackageJsonPath = (0, path_1.join)(application.projectRoot, constants_1.FileName.Package);
|
|
78035
|
+
const packageJson = (yield (0, file_1.fileExists)(rootPackageJsonPath)) ? yield (0, file_1.readJSON)(rootPackageJsonPath) : null;
|
|
78036
|
+
if (application.projectRoot === application.appRoot) {
|
|
78037
|
+
appType = (packageJson === null || packageJson === void 0 ? void 0 : packageJson.sapux) ? "SAP Fiori elements" : "SAPUI5 freestyle";
|
|
78038
|
+
} else if (packageJson) {
|
|
78039
|
+
appType = Array.isArray(packageJson.sapux) && packageJson.sapux.find((relAppPath) => (0, path_1.join)(application.projectRoot, ...relAppPath.split(/[/\\]/)) === application.appRoot) ? "SAP Fiori elements" : "SAPUI5 freestyle";
|
|
78040
|
+
} else {
|
|
78041
|
+
appType = "SAPUI5 freestyle";
|
|
78042
|
+
}
|
|
78043
|
+
return appType;
|
|
78044
|
+
});
|
|
78045
|
+
}
|
|
78046
|
+
function getProjectType(projectRoot) {
|
|
78047
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78048
|
+
const capType = yield (0, cap_1.getCapProjectType)(projectRoot);
|
|
78049
|
+
if (capType === void 0) {
|
|
78050
|
+
return "EDMXBackend";
|
|
78051
|
+
}
|
|
78052
|
+
return capType;
|
|
78053
|
+
});
|
|
78054
|
+
}
|
|
78055
|
+
exports2.getProjectType = getProjectType;
|
|
78056
|
+
}
|
|
78057
|
+
});
|
|
78058
|
+
|
|
77835
78059
|
// ../../node_modules/@sap-ux/project-access/dist/project/mta.js
|
|
77836
78060
|
var require_mta = __commonJS({
|
|
77837
78061
|
"../../node_modules/@sap-ux/project-access/dist/project/mta.js"(exports2) {
|
|
@@ -77891,7 +78115,7 @@ var require_project2 = __commonJS({
|
|
|
77891
78115
|
"../../node_modules/@sap-ux/project-access/dist/project/index.js"(exports2) {
|
|
77892
78116
|
"use strict";
|
|
77893
78117
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
77894
|
-
exports2.getMtaPath = exports2.readUi5Yaml = exports2.getWebappPath = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findFioriArtifacts = exports2.findCapProjects = exports2.findAllApps = exports2.loadModuleFromProject = exports2.getAppProgrammingLanguage = exports2.getNodeModulesPath = exports2.readCapServiceMetadataEdmx = exports2.getCapEnvironment = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getCdsServices = exports2.getCdsRoots = exports2.getCdsFiles = exports2.getCapProjectType = exports2.getCapModelAndServices = exports2.getCapCustomPaths = void 0;
|
|
78118
|
+
exports2.getMtaPath = exports2.readUi5Yaml = exports2.getWebappPath = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findFioriArtifacts = exports2.findCapProjects = exports2.findAllApps = exports2.loadModuleFromProject = exports2.getProjectType = exports2.getAppType = exports2.getAppProgrammingLanguage = exports2.getNodeModulesPath = exports2.readCapServiceMetadataEdmx = exports2.getCapEnvironment = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getCdsServices = exports2.getCdsRoots = exports2.getCdsFiles = exports2.getCapProjectType = exports2.getCapModelAndServices = exports2.getCapCustomPaths = void 0;
|
|
77895
78119
|
var cap_1 = require_cap();
|
|
77896
78120
|
Object.defineProperty(exports2, "getCapCustomPaths", { enumerable: true, get: function() {
|
|
77897
78121
|
return cap_1.getCapCustomPaths;
|
|
@@ -77931,6 +78155,12 @@ var require_project2 = __commonJS({
|
|
|
77931
78155
|
Object.defineProperty(exports2, "getAppProgrammingLanguage", { enumerable: true, get: function() {
|
|
77932
78156
|
return info_1.getAppProgrammingLanguage;
|
|
77933
78157
|
} });
|
|
78158
|
+
Object.defineProperty(exports2, "getAppType", { enumerable: true, get: function() {
|
|
78159
|
+
return info_1.getAppType;
|
|
78160
|
+
} });
|
|
78161
|
+
Object.defineProperty(exports2, "getProjectType", { enumerable: true, get: function() {
|
|
78162
|
+
return info_1.getProjectType;
|
|
78163
|
+
} });
|
|
77934
78164
|
var module_loader_1 = require_module_loader();
|
|
77935
78165
|
Object.defineProperty(exports2, "loadModuleFromProject", { enumerable: true, get: function() {
|
|
77936
78166
|
return module_loader_1.loadModuleFromProject;
|
|
@@ -78072,7 +78302,7 @@ var require_dist11 = __commonJS({
|
|
|
78072
78302
|
__createBinding(exports3, m, p);
|
|
78073
78303
|
};
|
|
78074
78304
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
78075
|
-
exports2.getFilePaths = exports2.readUi5Yaml = exports2.readCapServiceMetadataEdmx = exports2.loadModuleFromProject = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getWebappPath = exports2.getNodeModulesPath = exports2.getMtaPath = exports2.getCdsServices = exports2.getCdsRoots = exports2.getCdsFiles = exports2.getCapProjectType = exports2.getCapModelAndServices = exports2.getCapEnvironment = exports2.getCapCustomPaths = exports2.getAppProgrammingLanguage = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findFioriArtifacts = exports2.findCapProjects = exports2.findAllApps = exports2.FileName = void 0;
|
|
78305
|
+
exports2.getFilePaths = exports2.readUi5Yaml = exports2.readCapServiceMetadataEdmx = exports2.loadModuleFromProject = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getWebappPath = exports2.getProjectType = exports2.getNodeModulesPath = exports2.getMtaPath = exports2.getCdsServices = exports2.getCdsRoots = exports2.getCdsFiles = exports2.getCapProjectType = exports2.getCapModelAndServices = exports2.getCapEnvironment = exports2.getCapCustomPaths = exports2.getAppType = exports2.getAppProgrammingLanguage = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findFioriArtifacts = exports2.findCapProjects = exports2.findAllApps = exports2.FileName = void 0;
|
|
78076
78306
|
var constants_1 = require_constants5();
|
|
78077
78307
|
Object.defineProperty(exports2, "FileName", { enumerable: true, get: function() {
|
|
78078
78308
|
return constants_1.FileName;
|
|
@@ -78096,6 +78326,9 @@ var require_dist11 = __commonJS({
|
|
|
78096
78326
|
Object.defineProperty(exports2, "getAppProgrammingLanguage", { enumerable: true, get: function() {
|
|
78097
78327
|
return project_1.getAppProgrammingLanguage;
|
|
78098
78328
|
} });
|
|
78329
|
+
Object.defineProperty(exports2, "getAppType", { enumerable: true, get: function() {
|
|
78330
|
+
return project_1.getAppType;
|
|
78331
|
+
} });
|
|
78099
78332
|
Object.defineProperty(exports2, "getCapCustomPaths", { enumerable: true, get: function() {
|
|
78100
78333
|
return project_1.getCapCustomPaths;
|
|
78101
78334
|
} });
|
|
@@ -78123,6 +78356,9 @@ var require_dist11 = __commonJS({
|
|
|
78123
78356
|
Object.defineProperty(exports2, "getNodeModulesPath", { enumerable: true, get: function() {
|
|
78124
78357
|
return project_1.getNodeModulesPath;
|
|
78125
78358
|
} });
|
|
78359
|
+
Object.defineProperty(exports2, "getProjectType", { enumerable: true, get: function() {
|
|
78360
|
+
return project_1.getProjectType;
|
|
78361
|
+
} });
|
|
78126
78362
|
Object.defineProperty(exports2, "getWebappPath", { enumerable: true, get: function() {
|
|
78127
78363
|
return project_1.getWebappPath;
|
|
78128
78364
|
} });
|
|
@@ -78441,32 +78677,41 @@ var require_utils9 = __commonJS({
|
|
|
78441
78677
|
if (await (0, capProject_1.isCapProject)(appRoot, appPckJson)) {
|
|
78442
78678
|
return null;
|
|
78443
78679
|
}
|
|
78444
|
-
|
|
78680
|
+
const projectRoot = await findCapRoot(appRoot);
|
|
78681
|
+
if (projectRoot) {
|
|
78682
|
+
return {
|
|
78683
|
+
appRoot,
|
|
78684
|
+
projectRoot
|
|
78685
|
+
};
|
|
78686
|
+
} else if (
|
|
78687
|
+
// Check for freestyle non CAP
|
|
78688
|
+
((0, fs_1.existsSync)((0, path_1.join)(appRoot, project_spec_1.FileName.Ui5LocalYaml)) || (0, fs_1.existsSync)((0, path_1.join)(appRoot, project_spec_1.FileName.ExtConfigJson))) && (0, exports2.hasDependency)(appPckJson, "@sap/ux-ui5-tooling") || await isReuseLib(appRoot)
|
|
78689
|
+
) {
|
|
78445
78690
|
return {
|
|
78446
78691
|
appRoot,
|
|
78447
78692
|
projectRoot: appRoot
|
|
78448
78693
|
};
|
|
78449
78694
|
}
|
|
78450
|
-
try {
|
|
78451
|
-
const { root } = (0, path_1.parse)(appRoot);
|
|
78452
|
-
let projectRoot = (0, path_1.dirname)(appRoot);
|
|
78453
|
-
while (projectRoot !== root) {
|
|
78454
|
-
if (await (0, capProject_1.isCapProject)(projectRoot) && (0, path_1.join)(projectRoot, "app") !== appRoot) {
|
|
78455
|
-
return {
|
|
78456
|
-
appRoot,
|
|
78457
|
-
projectRoot
|
|
78458
|
-
};
|
|
78459
|
-
}
|
|
78460
|
-
projectRoot = (0, path_1.dirname)(projectRoot);
|
|
78461
|
-
}
|
|
78462
|
-
} catch (e) {
|
|
78463
|
-
}
|
|
78464
78695
|
} catch (error3) {
|
|
78465
78696
|
console.error(error3);
|
|
78466
78697
|
}
|
|
78467
78698
|
return null;
|
|
78468
78699
|
}
|
|
78469
78700
|
exports2.findRootsForPath = findRootsForPath;
|
|
78701
|
+
async function findCapRoot(path2) {
|
|
78702
|
+
try {
|
|
78703
|
+
const { root } = (0, path_1.parse)(path2);
|
|
78704
|
+
let projectRoot = (0, path_1.dirname)(path2);
|
|
78705
|
+
while (projectRoot !== root) {
|
|
78706
|
+
if (await (0, capProject_1.isCapProject)(projectRoot) && (0, path_1.join)(projectRoot, "app") !== path2) {
|
|
78707
|
+
return projectRoot;
|
|
78708
|
+
}
|
|
78709
|
+
projectRoot = (0, path_1.dirname)(projectRoot);
|
|
78710
|
+
}
|
|
78711
|
+
} catch (e) {
|
|
78712
|
+
}
|
|
78713
|
+
return null;
|
|
78714
|
+
}
|
|
78470
78715
|
var findRunnableProjects = async (workspaceRoots, logger) => {
|
|
78471
78716
|
const result2 = [];
|
|
78472
78717
|
const roots = await findAllProjectRoots(workspaceRoots, false);
|
|
@@ -78832,13 +79077,18 @@ var require_utils9 = __commonJS({
|
|
|
78832
79077
|
exports2.checkServeLocalConfig = checkServeLocalConfig;
|
|
78833
79078
|
function getAppIdForFile(filepath, projectRoot, appIds) {
|
|
78834
79079
|
let appId = "";
|
|
78835
|
-
|
|
78836
|
-
const
|
|
79080
|
+
for (const appIdTmp of appIds) {
|
|
79081
|
+
const appPath = (0, path_1.join)(projectRoot, appIdTmp);
|
|
79082
|
+
if (appPath === filepath) {
|
|
79083
|
+
appId = appIdTmp;
|
|
79084
|
+
break;
|
|
79085
|
+
}
|
|
79086
|
+
const relativeStr = (0, path_1.relative)(appPath, filepath);
|
|
78837
79087
|
if (relativeStr && !relativeStr.startsWith("..") && !(0, path_1.isAbsolute)(relativeStr)) {
|
|
78838
79088
|
appId = appIdTmp;
|
|
79089
|
+
break;
|
|
78839
79090
|
}
|
|
78840
|
-
}
|
|
78841
|
-
appId = os_1.default.platform() === "win32" ? appId.replace(/\/\//g, "/") : appId;
|
|
79091
|
+
}
|
|
78842
79092
|
return appId;
|
|
78843
79093
|
}
|
|
78844
79094
|
exports2.getAppIdForFile = getAppIdForFile;
|
|
@@ -79470,6 +79720,7 @@ var require_EventName = __commonJS({
|
|
|
79470
79720
|
EventName5["GA_LINK_CREATED"] = "GA_LINK_CREATED";
|
|
79471
79721
|
EventName5["LIB_REFERENCE_ADDED"] = "LIB_REFERENCE_ADDED";
|
|
79472
79722
|
EventName5["ADT_TOOLS_APP_GEN"] = "ADT_TOOLS_APP_GEN";
|
|
79723
|
+
EventName5["AI_GEN"] = "AI_GEN";
|
|
79473
79724
|
})(EventName4 || (exports2.EventName = EventName4 = {}));
|
|
79474
79725
|
}
|
|
79475
79726
|
});
|