@ui5/webcomponents-base 2.23.1 → 2.24.0-rc.1

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.
@@ -1078,115 +1078,115 @@
1078
1078
  },
1079
1079
  {
1080
1080
  "kind": "javascript-module",
1081
- "path": "dist/asset-registries/Icons.js",
1081
+ "path": "dist/config/AnimationMode.js",
1082
1082
  "declarations": [],
1083
1083
  "exports": []
1084
1084
  },
1085
1085
  {
1086
1086
  "kind": "javascript-module",
1087
- "path": "dist/asset-registries/Illustrations.js",
1087
+ "path": "dist/config/CalendarType.js",
1088
1088
  "declarations": [],
1089
1089
  "exports": []
1090
1090
  },
1091
1091
  {
1092
1092
  "kind": "javascript-module",
1093
- "path": "dist/asset-registries/LocaleData.js",
1093
+ "path": "dist/config/ConfigurationReset.js",
1094
1094
  "declarations": [],
1095
1095
  "exports": []
1096
1096
  },
1097
1097
  {
1098
1098
  "kind": "javascript-module",
1099
- "path": "dist/asset-registries/Themes.js",
1099
+ "path": "dist/config/ConfigurationSync.js",
1100
1100
  "declarations": [],
1101
1101
  "exports": []
1102
1102
  },
1103
1103
  {
1104
1104
  "kind": "javascript-module",
1105
- "path": "dist/asset-registries/i18n.js",
1105
+ "path": "dist/config/Fonts.js",
1106
1106
  "declarations": [],
1107
1107
  "exports": []
1108
1108
  },
1109
1109
  {
1110
1110
  "kind": "javascript-module",
1111
- "path": "dist/config/AnimationMode.js",
1111
+ "path": "dist/config/FormatSettings.js",
1112
1112
  "declarations": [],
1113
1113
  "exports": []
1114
1114
  },
1115
1115
  {
1116
1116
  "kind": "javascript-module",
1117
- "path": "dist/config/CalendarType.js",
1117
+ "path": "dist/config/Icons.js",
1118
1118
  "declarations": [],
1119
1119
  "exports": []
1120
1120
  },
1121
1121
  {
1122
1122
  "kind": "javascript-module",
1123
- "path": "dist/config/ConfigurationReset.js",
1123
+ "path": "dist/config/Language.js",
1124
1124
  "declarations": [],
1125
1125
  "exports": []
1126
1126
  },
1127
1127
  {
1128
1128
  "kind": "javascript-module",
1129
- "path": "dist/config/ConfigurationSync.js",
1129
+ "path": "dist/config/NoConflict.js",
1130
1130
  "declarations": [],
1131
1131
  "exports": []
1132
1132
  },
1133
1133
  {
1134
1134
  "kind": "javascript-module",
1135
- "path": "dist/config/Fonts.js",
1135
+ "path": "dist/config/Theme.js",
1136
1136
  "declarations": [],
1137
1137
  "exports": []
1138
1138
  },
1139
1139
  {
1140
1140
  "kind": "javascript-module",
1141
- "path": "dist/config/FormatSettings.js",
1141
+ "path": "dist/config/ThemeRoot.js",
1142
1142
  "declarations": [],
1143
1143
  "exports": []
1144
1144
  },
1145
1145
  {
1146
1146
  "kind": "javascript-module",
1147
- "path": "dist/config/Icons.js",
1147
+ "path": "dist/config/Timezone.js",
1148
1148
  "declarations": [],
1149
1149
  "exports": []
1150
1150
  },
1151
1151
  {
1152
1152
  "kind": "javascript-module",
1153
- "path": "dist/config/Language.js",
1153
+ "path": "dist/config/Tooltips.js",
1154
1154
  "declarations": [],
1155
1155
  "exports": []
1156
1156
  },
1157
1157
  {
1158
1158
  "kind": "javascript-module",
1159
- "path": "dist/config/NoConflict.js",
1159
+ "path": "dist/config/UrlParams.js",
1160
1160
  "declarations": [],
1161
1161
  "exports": []
1162
1162
  },
1163
1163
  {
1164
1164
  "kind": "javascript-module",
1165
- "path": "dist/config/Theme.js",
1165
+ "path": "dist/asset-registries/Icons.js",
1166
1166
  "declarations": [],
1167
1167
  "exports": []
1168
1168
  },
1169
1169
  {
1170
1170
  "kind": "javascript-module",
1171
- "path": "dist/config/ThemeRoot.js",
1171
+ "path": "dist/asset-registries/Illustrations.js",
1172
1172
  "declarations": [],
1173
1173
  "exports": []
1174
1174
  },
1175
1175
  {
1176
1176
  "kind": "javascript-module",
1177
- "path": "dist/config/Timezone.js",
1177
+ "path": "dist/asset-registries/LocaleData.js",
1178
1178
  "declarations": [],
1179
1179
  "exports": []
1180
1180
  },
1181
1181
  {
1182
1182
  "kind": "javascript-module",
1183
- "path": "dist/config/Tooltips.js",
1183
+ "path": "dist/asset-registries/Themes.js",
1184
1184
  "declarations": [],
1185
1185
  "exports": []
1186
1186
  },
1187
1187
  {
1188
1188
  "kind": "javascript-module",
1189
- "path": "dist/config/UrlParams.js",
1189
+ "path": "dist/asset-registries/i18n.js",
1190
1190
  "declarations": [],
1191
1191
  "exports": []
1192
1192
  },
@@ -1355,123 +1355,6 @@
1355
1355
  }
1356
1356
  ]
1357
1357
  },
1358
- {
1359
- "kind": "javascript-module",
1360
- "path": "dist/features/F6Navigation.js",
1361
- "declarations": [],
1362
- "exports": [
1363
- {
1364
- "kind": "js",
1365
- "name": "default",
1366
- "declaration": {
1367
- "name": "F6Navigation",
1368
- "module": "dist/features/F6Navigation.js"
1369
- }
1370
- }
1371
- ]
1372
- },
1373
- {
1374
- "kind": "javascript-module",
1375
- "path": "dist/features/InputElementsFormSupport.js",
1376
- "declarations": [],
1377
- "exports": []
1378
- },
1379
- {
1380
- "kind": "javascript-module",
1381
- "path": "dist/features/LegacyDateFormats.js",
1382
- "declarations": [],
1383
- "exports": [
1384
- {
1385
- "kind": "js",
1386
- "name": "default",
1387
- "declaration": {
1388
- "name": "LegacyDateFormats",
1389
- "module": "dist/features/LegacyDateFormats.js"
1390
- }
1391
- }
1392
- ]
1393
- },
1394
- {
1395
- "kind": "javascript-module",
1396
- "path": "dist/features/OpenUI5Element.js",
1397
- "declarations": [],
1398
- "exports": [
1399
- {
1400
- "kind": "js",
1401
- "name": "default",
1402
- "declaration": {
1403
- "name": "OpenUI5Element",
1404
- "module": "dist/features/OpenUI5Element.js"
1405
- }
1406
- }
1407
- ]
1408
- },
1409
- {
1410
- "kind": "javascript-module",
1411
- "path": "dist/features/OpenUI5Enablement.js",
1412
- "declarations": [],
1413
- "exports": [
1414
- {
1415
- "kind": "js",
1416
- "name": "default",
1417
- "declaration": {
1418
- "name": "OpenUI5Enablement",
1419
- "module": "dist/features/OpenUI5Enablement.js"
1420
- }
1421
- }
1422
- ]
1423
- },
1424
- {
1425
- "kind": "javascript-module",
1426
- "path": "dist/features/OpenUI5Support.js",
1427
- "declarations": [],
1428
- "exports": [
1429
- {
1430
- "kind": "js",
1431
- "name": "default",
1432
- "declaration": {
1433
- "name": "OpenUI5Support",
1434
- "module": "dist/features/OpenUI5Support.js"
1435
- }
1436
- }
1437
- ]
1438
- },
1439
- {
1440
- "kind": "javascript-module",
1441
- "path": "dist/features/insertOpenUI5PopupStyles.js",
1442
- "declarations": [],
1443
- "exports": [
1444
- {
1445
- "kind": "js",
1446
- "name": "default",
1447
- "declaration": {
1448
- "name": "insertOpenUI5PopupStyles",
1449
- "module": "dist/features/insertOpenUI5PopupStyles.js"
1450
- }
1451
- }
1452
- ]
1453
- },
1454
- {
1455
- "kind": "javascript-module",
1456
- "path": "dist/features/patchPatcher.js",
1457
- "declarations": [],
1458
- "exports": [
1459
- {
1460
- "kind": "js",
1461
- "name": "default",
1462
- "declaration": {
1463
- "name": "patchPatcher",
1464
- "module": "dist/features/patchPatcher.js"
1465
- }
1466
- }
1467
- ]
1468
- },
1469
- {
1470
- "kind": "javascript-module",
1471
- "path": "dist/features/patchPopup.js",
1472
- "declarations": [],
1473
- "exports": []
1474
- },
1475
1358
  {
1476
1359
  "kind": "javascript-module",
1477
1360
  "path": "dist/delegate/ItemNavigation.js",
@@ -1647,6 +1530,123 @@
1647
1530
  }
1648
1531
  ]
1649
1532
  },
1533
+ {
1534
+ "kind": "javascript-module",
1535
+ "path": "dist/features/F6Navigation.js",
1536
+ "declarations": [],
1537
+ "exports": [
1538
+ {
1539
+ "kind": "js",
1540
+ "name": "default",
1541
+ "declaration": {
1542
+ "name": "F6Navigation",
1543
+ "module": "dist/features/F6Navigation.js"
1544
+ }
1545
+ }
1546
+ ]
1547
+ },
1548
+ {
1549
+ "kind": "javascript-module",
1550
+ "path": "dist/features/InputElementsFormSupport.js",
1551
+ "declarations": [],
1552
+ "exports": []
1553
+ },
1554
+ {
1555
+ "kind": "javascript-module",
1556
+ "path": "dist/features/LegacyDateFormats.js",
1557
+ "declarations": [],
1558
+ "exports": [
1559
+ {
1560
+ "kind": "js",
1561
+ "name": "default",
1562
+ "declaration": {
1563
+ "name": "LegacyDateFormats",
1564
+ "module": "dist/features/LegacyDateFormats.js"
1565
+ }
1566
+ }
1567
+ ]
1568
+ },
1569
+ {
1570
+ "kind": "javascript-module",
1571
+ "path": "dist/features/OpenUI5Element.js",
1572
+ "declarations": [],
1573
+ "exports": [
1574
+ {
1575
+ "kind": "js",
1576
+ "name": "default",
1577
+ "declaration": {
1578
+ "name": "OpenUI5Element",
1579
+ "module": "dist/features/OpenUI5Element.js"
1580
+ }
1581
+ }
1582
+ ]
1583
+ },
1584
+ {
1585
+ "kind": "javascript-module",
1586
+ "path": "dist/features/OpenUI5Enablement.js",
1587
+ "declarations": [],
1588
+ "exports": [
1589
+ {
1590
+ "kind": "js",
1591
+ "name": "default",
1592
+ "declaration": {
1593
+ "name": "OpenUI5Enablement",
1594
+ "module": "dist/features/OpenUI5Enablement.js"
1595
+ }
1596
+ }
1597
+ ]
1598
+ },
1599
+ {
1600
+ "kind": "javascript-module",
1601
+ "path": "dist/features/OpenUI5Support.js",
1602
+ "declarations": [],
1603
+ "exports": [
1604
+ {
1605
+ "kind": "js",
1606
+ "name": "default",
1607
+ "declaration": {
1608
+ "name": "OpenUI5Support",
1609
+ "module": "dist/features/OpenUI5Support.js"
1610
+ }
1611
+ }
1612
+ ]
1613
+ },
1614
+ {
1615
+ "kind": "javascript-module",
1616
+ "path": "dist/features/insertOpenUI5PopupStyles.js",
1617
+ "declarations": [],
1618
+ "exports": [
1619
+ {
1620
+ "kind": "js",
1621
+ "name": "default",
1622
+ "declaration": {
1623
+ "name": "insertOpenUI5PopupStyles",
1624
+ "module": "dist/features/insertOpenUI5PopupStyles.js"
1625
+ }
1626
+ }
1627
+ ]
1628
+ },
1629
+ {
1630
+ "kind": "javascript-module",
1631
+ "path": "dist/features/patchPatcher.js",
1632
+ "declarations": [],
1633
+ "exports": [
1634
+ {
1635
+ "kind": "js",
1636
+ "name": "default",
1637
+ "declaration": {
1638
+ "name": "patchPatcher",
1639
+ "module": "dist/features/patchPatcher.js"
1640
+ }
1641
+ }
1642
+ ]
1643
+ },
1644
+ {
1645
+ "kind": "javascript-module",
1646
+ "path": "dist/features/patchPopup.js",
1647
+ "declarations": [],
1648
+ "exports": []
1649
+ },
1650
1650
  {
1651
1651
  "kind": "javascript-module",
1652
1652
  "path": "dist/locale/Locale.js",
@@ -3,8 +3,10 @@ import type { CLDRData } from "../asset-registries/LocaleData.js";
3
3
  import type { LegacyDateCalendarCustomizing } from "../features/LegacyDateFormats.js";
4
4
  declare class OpenUI5Support {
5
5
  static enablePolling: boolean;
6
+ static _loadedFirst: boolean | undefined;
6
7
  static isAtLeastVersion(minor: number): boolean;
7
8
  static isOpenUI5Detected(): boolean;
9
+ static isOpenUI5LoadedFirst(): boolean | undefined;
8
10
  static initPromise?: Promise<void>;
9
11
  /**
10
12
  * Important - if OpenUI5 is loaded after UI5 Web Components, configuration is not synchronized and it's up to the app to initialize OpenUI5 with the same settings as UI5 Web Components for consistency.
@@ -20,6 +20,9 @@ class OpenUI5Support {
20
20
  static isOpenUI5Detected() {
21
21
  return typeof window.sap?.ui?.require === "function";
22
22
  }
23
+ static isOpenUI5LoadedFirst() {
24
+ return _a._loadedFirst;
25
+ }
23
26
  static awaitForOpenUI5() {
24
27
  if (_a.enablePolling) {
25
28
  const interval = setInterval(() => {
@@ -39,6 +42,7 @@ class OpenUI5Support {
39
42
  if (!_a.isOpenUI5Detected()) {
40
43
  return _a.awaitForOpenUI5();
41
44
  }
45
+ _a._loadedFirst ??= true;
42
46
  if (!_a.initPromise) {
43
47
  _a.initPromise = new Promise(resolve => {
44
48
  window.sap.ui.require(["sap/ui/core/Core"], async (Core) => {
@@ -179,6 +183,7 @@ OpenUI5Support.enablePolling = false; // set to true for old OpenUI5 versions
179
183
  * Important - if OpenUI5 is loaded after UI5 Web Components, configuration is not synchronized and it's up to the app to initialize OpenUI5 with the same settings as UI5 Web Components for consistency.
180
184
  */
181
185
  OpenUI5Support.OpenUI5DelayedInit = async () => {
186
+ _a._loadedFirst = false;
182
187
  _a.init(); // This ensures patchPopover and patchPatcher are called; and from this point OpenUI5 CSS vars start being detected
183
188
  await secondaryBoot(); // Re-run the parts of boot that were skipped due to OpenUI5 not having been loaded
184
189
  };
@@ -1 +1 @@
1
- {"version":3,"file":"OpenUI5Support.js","sourceRoot":"","sources":["../../src/features/OpenUI5Support.ts"],"names":[],"mappings":";AAAA,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EACN,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,eAAe,GACf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAG9C,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AA6D3C,MAAM,wBAAwB,GAAG,GAAG,CAAC;AAErC,MAAM,cAAc;IAGnB,MAAM,CAAC,gBAAgB,CAAC,KAAa;QACpC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAG,CAAC,OAAO,EAAE,CAAC;YAC7B,OAAO,IAAI,CAAC,CAAC,2DAA2D;QACzE,CAAC;QACD,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,EAAG,CAAC,OAAiB,CAAC;QACjD,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACjC,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAChC,OAAO,KAAK,CAAC;QACd,CAAC;QACD,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC;IAC9D,CAAC;IAED,MA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O,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;IACtD,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,SAAoB;QACzC,cAAc,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,MAAM,CAAC,iBAAiB,CAAC,KAAa;QACrC,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAC1B,CAAC;IAED,MAAM,CAAC,eAAe;QACrB,OAAO,eAAe,EAAE,CAAC;IAC1B,CAAC;;;AAtMM,4BAAa,GAAG,KAAK,AAAR,CAAS,CAAC,uCAAuC;AAoBrE;;GAEG;AACI,iCAAkB,GAAG,KAAK,IAAI,EAAE;IACtC,EAAc,CAAC,IAAI,EAAE,CAAC,CAAC,mHAAmH;IAC1I,MAAM,aAAa,EAAE,CAAC,CAAC,mFAAmF;AAC3G,CAAC,AAHwB,CAGxB;AA+KF,eAAe,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC;AAElD,eAAe,cAAc,CAAC","sourcesContent":["import patchPatcher from \"./patchPatcher.js\";\nimport type { OpenUI5Patcher } from \"./patchPatcher.js\";\nimport {\n\tpatchPopup,\n\taddOpenedPopup,\n\tremoveOpenedPopup,\n\tgetTopmostPopup,\n} from \"./patchPopup.js\";\nimport type { OpenUI5PopupClass, OpenUI5DialogClass, PopupInfo } from \"./patchPopup.js\";\nimport { registerFeature } from \"../FeaturesRegistry.js\";\nimport { setTheme } from \"../config/Theme.js\";\nimport type { CLDRData } from \"../asset-registries/LocaleData.js\";\nimport type { LegacyDateCalendarCustomizing } from \"../features/LegacyDateFormats.js\";\nimport { secondaryBoot } from \"../Boot.js\";\n\ntype OpenUI5Core = {\n\tattachInit: (callback: () => void) => void,\n\tready: () => Promise<void>,\n\tattachThemeChanged: (callback: () => void) => void,\n\tgetConfiguration: () => OpenUI5CoreConfiguration,\n};\n\ntype OpenUI5CoreConfiguration = {\n\tgetAnimationMode: () => string,\n\tgetLanguage: () => string,\n\tgetTheme: () => string,\n\tgetThemeRoot: () => string,\n\tgetRTL: () => string,\n\tgetTimezone: () => string,\n\tgetCalendarType: () => string,\n\tgetLocale: () => string,\n\tgetFormatSettings: () => {\n\t\tgetLegacyDateCalendarCustomizing: () => LegacyDateCalendarCustomizing;\n\t}\n};\n\ntype ControlBehavior = {\n\tgetAnimationMode: () => string,\n}\n\ntype Localization = {\n\tgetLanguage: () => string,\n\tgetLanguageTag: () => string,\n\tgetRTL: () => string,\n\tgetTimezone: () => string,\n}\n\ntype LocaleData = {\n\tgetInstance: (locale: string) => Locale,\n}\n\ntype Theming = {\n\tgetThemeRoot: () => string,\n\tgetTheme: () => string,\n\tattachApplied: (callback: () => void) => void,\n}\n\ntype Formatting = {\n\tgetCalendarType: () => string,\n\tgetLegacyDateCalendarCustomizing: () => LegacyDateCalendarCustomizing,\n\tgetCustomIslamicCalendarData?: () => LegacyDateCalendarCustomizing,\n}\n\ntype CalendarUtils = {\n\tgetWeekConfigurationValues: () => {\n\t\tfirstDayOfWeek: number | undefined,\n\t},\n}\n\ntype Locale = {\n\tgetFirstDayOfWeek: () => number,\n\t_get: () => CLDRData,\n};\n\nconst OPENUI5_POLLING_INTERVAL = 100;\n\nclass OpenUI5Support {\n\tstatic enablePolling = false; // set to true for old OpenUI5 versions\n\n\tstatic isAtLeastVersion(minor: number) {\n\t\tif (!window.sap.ui!.version) {\n\t\t\treturn true; // sap.ui.version will be removed in newer OpenUI5 versions\n\t\t}\n\t\tconst version = window.sap.ui!.version as string;\n\t\tconst parts = version.split(\".\");\n\t\tif (!parts || parts.length < 2) {\n\t\t\treturn false;\n\t\t}\n\t\treturn parseInt(parts[0]) > 1 || parseInt(parts[1]) >= minor;\n\t}\n\n\tstatic isOpenUI5Detected() {\n\t\treturn typeof window.sap?.ui?.require === \"function\";\n\t}\n\n\tstatic initPromise?: Promise<void>;\n\n\t/**\n\t * Important - if OpenUI5 is loaded after UI5 Web Components, configuration is not synchronized and it's up to the app to initialize OpenUI5 with the same settings as UI5 Web Components for consistency.\n\t */\n\tstatic OpenUI5DelayedInit = async () => {\n\t\tOpenUI5Support.init(); // This ensures patchPopover and patchPatcher are called; and from this point OpenUI5 CSS vars start being detected\n\t\tawait secondaryBoot(); // Re-run the parts of boot that were skipped due to OpenUI5 not having been loaded\n\t}\n\n\tstatic awaitForOpenUI5() {\n\t\tif (OpenUI5Support.enablePolling) {\n\t\t\tconst interval = setInterval(() => {\n\t\t\t\tif (OpenUI5Support.isOpenUI5Detected()) {\n\t\t\t\t\tclearInterval(interval);\n\t\t\t\t\tOpenUI5Support.OpenUI5DelayedInit();\n\t\t\t\t}\n\t\t\t}, OPENUI5_POLLING_INTERVAL);\n\t\t} else {\n\t\t\tdocument.addEventListener(\"sap-ui-core-ready\", () => {\n\t\t\t\tOpenUI5Support.OpenUI5DelayedInit();\n\t\t\t});\n\t\t}\n\t}\n\n\tstatic init() {\n\t\tif (!OpenUI5Support.isOpenUI5Detected()) {\n\t\t\treturn OpenUI5Support.awaitForOpenUI5();\n\t\t}\n\n\t\tif (!OpenUI5Support.initPromise) {\n\t\t\tOpenUI5Support.initPromise = new Promise<void>(resolve => {\n\t\t\t\twindow.sap.ui.require([\"sap/ui/core/Core\"], async (Core: OpenUI5Core) => {\n\t\t\t\t\tconst callback = () => {\n\t\t\t\t\t\tlet deps: Array<string> = [\"sap/ui/core/Popup\", \"sap/m/Dialog\", \"sap/ui/core/Patcher\", \"sap/ui/core/LocaleData\"];\n\t\t\t\t\t\tif (OpenUI5Support.isAtLeastVersion(116)) { // for versions since 1.116.0 and onward, use the modular core\n\t\t\t\t\t\t\tdeps = [\n\t\t\t\t\t\t\t\t...deps,\n\t\t\t\t\t\t\t\t\"sap/base/i18n/Formatting\",\n\t\t\t\t\t\t\t\t\"sap/base/i18n/Localization\",\n\t\t\t\t\t\t\t\t\"sap/ui/core/ControlBehavior\",\n\t\t\t\t\t\t\t\t\"sap/ui/core/Theming\",\n\t\t\t\t\t\t\t\t\"sap/ui/core/date/CalendarUtils\",\n\t\t\t\t\t\t\t];\n\t\t\t\t\t\t}\n\t\t\t\t\t\twindow.sap.ui.require(deps, (Popup: OpenUI5PopupClass, Dialog: OpenUI5DialogClass, Patcher: OpenUI5Patcher) => {\n\t\t\t\t\t\t\tpatchPatcher(Patcher);\n\t\t\t\t\t\t\tpatchPopup(Popup, Dialog);\n\t\t\t\t\t\t\tresolve();\n\t\t\t\t\t\t});\n\t\t\t\t\t};\n\t\t\t\t\tif (OpenUI5Support.isAtLeastVersion(116)) {\n\t\t\t\t\t\tawait Core.ready();\n\t\t\t\t\t\tcallback();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tCore.attachInit(callback);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\n\t\treturn OpenUI5Support.initPromise;\n\t}\n\n\tstatic getConfigurationSettingsObject() {\n\t\tif (!OpenUI5Support.isOpenUI5Detected()) {\n\t\t\treturn {};\n\t\t}\n\n\t\tif (OpenUI5Support.isAtLeastVersion(116)) {\n\t\t\tconst ControlBehavior = window.sap.ui.require(\"sap/ui/core/ControlBehavior\") as ControlBehavior;\n\t\t\tconst Localization = window.sap.ui.require(\"sap/base/i18n/Localization\") as Localization;\n\t\t\tconst Theming = window.sap.ui.require(\"sap/ui/core/Theming\") as Theming;\n\t\t\tconst Formatting = window.sap.ui.require(\"sap/base/i18n/Formatting\") as Formatting;\n\t\t\tconst CalendarUtils = window.sap.ui.require(\"sap/ui/core/date/CalendarUtils\") as CalendarUtils;\n\n\t\t\treturn {\n\t\t\t\tanimationMode: ControlBehavior.getAnimationMode(),\n\t\t\t\tlanguage: Localization.getLanguage(),\n\t\t\t\ttheme: Theming.getTheme(),\n\t\t\t\tthemeRoot: Theming.getThemeRoot(),\n\t\t\t\trtl: Localization.getRTL(),\n\t\t\t\ttimezone: Localization.getTimezone(),\n\t\t\t\tcalendarType: Formatting.getCalendarType(),\n\t\t\t\tformatSettings: {\n\t\t\t\t\tfirstDayOfWeek: CalendarUtils.getWeekConfigurationValues().firstDayOfWeek,\n\t\t\t\t\tlegacyDateCalendarCustomizing: Formatting.getCustomIslamicCalendarData?.()\n\t\t\t\t\t\t?? Formatting.getLegacyDateCalendarCustomizing?.(),\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\n\t\tconst Core = window.sap.ui.require(\"sap/ui/core/Core\") as OpenUI5Core;\n\t\tconst config = Core.getConfiguration();\n\t\tconst LocaleData = window.sap.ui.require(\"sap/ui/core/LocaleData\") as LocaleData;\n\n\t\treturn {\n\t\t\tanimationMode: config.getAnimationMode(),\n\t\t\tlanguage: config.getLanguage(),\n\t\t\ttheme: config.getTheme(),\n\t\t\tthemeRoot: typeof config.getThemeRoot === \"function\" ? config.getThemeRoot() : undefined,\n\t\t\trtl: config.getRTL(),\n\t\t\ttimezone: typeof config.getTimezone === \"function\" ? config.getTimezone() : undefined,\n\t\t\tcalendarType: config.getCalendarType(),\n\t\t\tformatSettings: {\n\t\t\t\tfirstDayOfWeek: LocaleData ? LocaleData.getInstance(config.getLocale()).getFirstDayOfWeek() : undefined,\n\t\t\t\tlegacyDateCalendarCustomizing: config.getFormatSettings().getLegacyDateCalendarCustomizing(),\n\t\t\t},\n\t\t};\n\t}\n\n\tstatic getLocaleDataObject() {\n\t\tif (!OpenUI5Support.isOpenUI5Detected()) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst LocaleData = window.sap.ui.require(\"sap/ui/core/LocaleData\") as LocaleData;\n\n\t\tif (OpenUI5Support.isAtLeastVersion(116)) {\n\t\t\tconst Localization = window.sap.ui.require(\"sap/base/i18n/Localization\") as Localization;\n\t\t\treturn LocaleData.getInstance(Localization.getLanguageTag())._get();\n\t\t}\n\n\t\tconst Core = window.sap.ui.require(\"sap/ui/core/Core\") as OpenUI5Core;\n\t\tconst config = Core.getConfiguration();\n\t\treturn LocaleData.getInstance(config.getLocale())._get();\n\t}\n\n\tstatic _listenForThemeChange() {\n\t\tif (OpenUI5Support.isAtLeastVersion(116)) {\n\t\t\tconst Theming: Theming = window.sap.ui.require(\"sap/ui/core/Theming\");\n\t\t\tTheming.attachApplied(() => {\n\t\t\t\tsetTheme(Theming.getTheme());\n\t\t\t});\n\t\t} else {\n\t\t\tconst Core = window.sap.ui.require(\"sap/ui/core/Core\") as OpenUI5Core;\n\t\t\tconst config = Core.getConfiguration();\n\t\t\tCore.attachThemeChanged(() => {\n\t\t\t\tsetTheme(config.getTheme());\n\t\t\t});\n\t\t}\n\t}\n\n\tstatic attachListeners() {\n\t\tif (!OpenUI5Support.isOpenUI5Detected()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tOpenUI5Support._listenForThemeChange();\n\t\treturn true;\n\t}\n\n\tstatic cssVariablesLoaded() {\n\t\tif (!OpenUI5Support.isOpenUI5Detected()) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst link = [...document.head.children].find(el => el.id === \"sap-ui-theme-sap.ui.core\") as HTMLLinkElement; // more reliable than querySelector early\n\t\tif (!link) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// The file name is \"css_variables.css\" until 1.127 and \"library.css\" from 1.127 onwards\n\t\tif (OpenUI5Support.isAtLeastVersion(127)) {\n\t\t\treturn !!link.href.match(/\\/css(-|_)variables\\.css/) || !!link.href.match(/\\/library\\.css/);\n\t\t}\n\n\t\treturn !!link.href.match(/\\/css(-|_)variables\\.css/);\n\t}\n\n\tstatic addOpenedPopup(popupInfo: PopupInfo) {\n\t\taddOpenedPopup(popupInfo);\n\t}\n\n\tstatic removeOpenedPopup(popup: object) {\n\t\tremoveOpenedPopup(popup);\n\t}\n\n\tstatic getTopmostPopup() {\n\t\treturn getTopmostPopup();\n\t}\n}\n\nregisterFeature(\"OpenUI5Support\", OpenUI5Support);\n\nexport default OpenUI5Support;\n"]}
1
+ {"version":3,"file":"OpenUI5Support.js","sourceRoot":"","sources":["../../src/features/OpenUI5Support.ts"],"names":[],"mappings":";AAAA,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EACN,UAAU,EACV,cAAc,EAC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AAe,EAAE,CAAC;IAC1B,CAAC;;;AA9MM,4BAAa,GAAG,KAAK,AAAR,CAAS,CAAC,uCAAuC;AAyBrE;;GAEG;AACI,iCAAkB,GAAG,KAAK,IAAI,EAAE;IACtC,EAAc,CAAC,YAAY,GAAG,KAAK,CAAC;IACpC,EAAc,CAAC,IAAI,EAAE,CAAC,CAAC,mHAAmH;IAC1I,MAAM,aAAa,EAAE,CAAC,CAAC,mFAAmF;AAC3G,CAAC,AAJwB,CAIxB;AAiLF,eAAe,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC;AAElD,eAAe,cAAc,CAAC","sourcesContent":["import patchPatcher from \"./patchPatcher.js\";\nimport type { OpenUI5Patcher } from \"./patchPatcher.js\";\nimport {\n\tpatchPopup,\n\taddOpenedPopup,\n\tremoveOpenedPopup,\n\tgetTopmostPopup,\n} from \"./patchPopup.js\";\nimport type { OpenUI5PopupClass, OpenUI5DialogClass, PopupInfo } from \"./patchPopup.js\";\nimport { registerFeature } from \"../FeaturesRegistry.js\";\nimport { setTheme } from \"../config/Theme.js\";\nimport type { CLDRData } from \"../asset-registries/LocaleData.js\";\nimport type { LegacyDateCalendarCustomizing } from \"../features/LegacyDateFormats.js\";\nimport { secondaryBoot } from \"../Boot.js\";\n\ntype OpenUI5Core = {\n\tattachInit: (callback: () => void) => void,\n\tready: () => Promise<void>,\n\tattachThemeChanged: (callback: () => void) => void,\n\tgetConfiguration: () => OpenUI5CoreConfiguration,\n};\n\ntype OpenUI5CoreConfiguration = {\n\tgetAnimationMode: () => string,\n\tgetLanguage: () => string,\n\tgetTheme: () => string,\n\tgetThemeRoot: () => string,\n\tgetRTL: () => string,\n\tgetTimezone: () => string,\n\tgetCalendarType: () => string,\n\tgetLocale: () => string,\n\tgetFormatSettings: () => {\n\t\tgetLegacyDateCalendarCustomizing: () => LegacyDateCalendarCustomizing;\n\t}\n};\n\ntype ControlBehavior = {\n\tgetAnimationMode: () => string,\n}\n\ntype Localization = {\n\tgetLanguage: () => string,\n\tgetLanguageTag: () => string,\n\tgetRTL: () => string,\n\tgetTimezone: () => string,\n}\n\ntype LocaleData = {\n\tgetInstance: (locale: string) => Locale,\n}\n\ntype Theming = {\n\tgetThemeRoot: () => string,\n\tgetTheme: () => string,\n\tattachApplied: (callback: () => void) => void,\n}\n\ntype Formatting = {\n\tgetCalendarType: () => string,\n\tgetLegacyDateCalendarCustomizing: () => LegacyDateCalendarCustomizing,\n\tgetCustomIslamicCalendarData?: () => LegacyDateCalendarCustomizing,\n}\n\ntype CalendarUtils = {\n\tgetWeekConfigurationValues: () => {\n\t\tfirstDayOfWeek: number | undefined,\n\t},\n}\n\ntype Locale = {\n\tgetFirstDayOfWeek: () => number,\n\t_get: () => CLDRData,\n};\n\nconst OPENUI5_POLLING_INTERVAL = 100;\n\nclass OpenUI5Support {\n\tstatic enablePolling = false; // set to true for old OpenUI5 versions\n\tstatic _loadedFirst: boolean | undefined;\n\n\tstatic isAtLeastVersion(minor: number) {\n\t\tif (!window.sap.ui!.version) {\n\t\t\treturn true; // sap.ui.version will be removed in newer OpenUI5 versions\n\t\t}\n\t\tconst version = window.sap.ui!.version as string;\n\t\tconst parts = version.split(\".\");\n\t\tif (!parts || parts.length < 2) {\n\t\t\treturn false;\n\t\t}\n\t\treturn parseInt(parts[0]) > 1 || parseInt(parts[1]) >= minor;\n\t}\n\n\tstatic isOpenUI5Detected() {\n\t\treturn typeof window.sap?.ui?.require === \"function\";\n\t}\n\n\tstatic isOpenUI5LoadedFirst() {\n\t\treturn OpenUI5Support._loadedFirst;\n\t}\n\n\tstatic initPromise?: Promise<void>;\n\n\t/**\n\t * Important - if OpenUI5 is loaded after UI5 Web Components, configuration is not synchronized and it's up to the app to initialize OpenUI5 with the same settings as UI5 Web Components for consistency.\n\t */\n\tstatic OpenUI5DelayedInit = async () => {\n\t\tOpenUI5Support._loadedFirst = false;\n\t\tOpenUI5Support.init(); // This ensures patchPopover and patchPatcher are called; and from this point OpenUI5 CSS vars start being detected\n\t\tawait secondaryBoot(); // Re-run the parts of boot that were skipped due to OpenUI5 not having been loaded\n\t}\n\n\tstatic awaitForOpenUI5() {\n\t\tif (OpenUI5Support.enablePolling) {\n\t\t\tconst interval = setInterval(() => {\n\t\t\t\tif (OpenUI5Support.isOpenUI5Detected()) {\n\t\t\t\t\tclearInterval(interval);\n\t\t\t\t\tOpenUI5Support.OpenUI5DelayedInit();\n\t\t\t\t}\n\t\t\t}, OPENUI5_POLLING_INTERVAL);\n\t\t} else {\n\t\t\tdocument.addEventListener(\"sap-ui-core-ready\", () => {\n\t\t\t\tOpenUI5Support.OpenUI5DelayedInit();\n\t\t\t});\n\t\t}\n\t}\n\n\tstatic init() {\n\t\tif (!OpenUI5Support.isOpenUI5Detected()) {\n\t\t\treturn OpenUI5Support.awaitForOpenUI5();\n\t\t}\n\n\t\tOpenUI5Support._loadedFirst ??= true;\n\n\t\tif (!OpenUI5Support.initPromise) {\n\t\t\tOpenUI5Support.initPromise = new Promise<void>(resolve => {\n\t\t\t\twindow.sap.ui.require([\"sap/ui/core/Core\"], async (Core: OpenUI5Core) => {\n\t\t\t\t\tconst callback = () => {\n\t\t\t\t\t\tlet deps: Array<string> = [\"sap/ui/core/Popup\", \"sap/m/Dialog\", \"sap/ui/core/Patcher\", \"sap/ui/core/LocaleData\"];\n\t\t\t\t\t\tif (OpenUI5Support.isAtLeastVersion(116)) { // for versions since 1.116.0 and onward, use the modular core\n\t\t\t\t\t\t\tdeps = [\n\t\t\t\t\t\t\t\t...deps,\n\t\t\t\t\t\t\t\t\"sap/base/i18n/Formatting\",\n\t\t\t\t\t\t\t\t\"sap/base/i18n/Localization\",\n\t\t\t\t\t\t\t\t\"sap/ui/core/ControlBehavior\",\n\t\t\t\t\t\t\t\t\"sap/ui/core/Theming\",\n\t\t\t\t\t\t\t\t\"sap/ui/core/date/CalendarUtils\",\n\t\t\t\t\t\t\t];\n\t\t\t\t\t\t}\n\t\t\t\t\t\twindow.sap.ui.require(deps, (Popup: OpenUI5PopupClass, Dialog: OpenUI5DialogClass, Patcher: OpenUI5Patcher) => {\n\t\t\t\t\t\t\tpatchPatcher(Patcher);\n\t\t\t\t\t\t\tpatchPopup(Popup, Dialog);\n\t\t\t\t\t\t\tresolve();\n\t\t\t\t\t\t});\n\t\t\t\t\t};\n\t\t\t\t\tif (OpenUI5Support.isAtLeastVersion(116)) {\n\t\t\t\t\t\tawait Core.ready();\n\t\t\t\t\t\tcallback();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tCore.attachInit(callback);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\n\t\treturn OpenUI5Support.initPromise;\n\t}\n\n\tstatic getConfigurationSettingsObject() {\n\t\tif (!OpenUI5Support.isOpenUI5Detected()) {\n\t\t\treturn {};\n\t\t}\n\n\t\tif (OpenUI5Support.isAtLeastVersion(116)) {\n\t\t\tconst ControlBehavior = window.sap.ui.require(\"sap/ui/core/ControlBehavior\") as ControlBehavior;\n\t\t\tconst Localization = window.sap.ui.require(\"sap/base/i18n/Localization\") as Localization;\n\t\t\tconst Theming = window.sap.ui.require(\"sap/ui/core/Theming\") as Theming;\n\t\t\tconst Formatting = window.sap.ui.require(\"sap/base/i18n/Formatting\") as Formatting;\n\t\t\tconst CalendarUtils = window.sap.ui.require(\"sap/ui/core/date/CalendarUtils\") as CalendarUtils;\n\n\t\t\treturn {\n\t\t\t\tanimationMode: ControlBehavior.getAnimationMode(),\n\t\t\t\tlanguage: Localization.getLanguage(),\n\t\t\t\ttheme: Theming.getTheme(),\n\t\t\t\tthemeRoot: Theming.getThemeRoot(),\n\t\t\t\trtl: Localization.getRTL(),\n\t\t\t\ttimezone: Localization.getTimezone(),\n\t\t\t\tcalendarType: Formatting.getCalendarType(),\n\t\t\t\tformatSettings: {\n\t\t\t\t\tfirstDayOfWeek: CalendarUtils.getWeekConfigurationValues().firstDayOfWeek,\n\t\t\t\t\tlegacyDateCalendarCustomizing: Formatting.getCustomIslamicCalendarData?.()\n\t\t\t\t\t\t?? Formatting.getLegacyDateCalendarCustomizing?.(),\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\n\t\tconst Core = window.sap.ui.require(\"sap/ui/core/Core\") as OpenUI5Core;\n\t\tconst config = Core.getConfiguration();\n\t\tconst LocaleData = window.sap.ui.require(\"sap/ui/core/LocaleData\") as LocaleData;\n\n\t\treturn {\n\t\t\tanimationMode: config.getAnimationMode(),\n\t\t\tlanguage: config.getLanguage(),\n\t\t\ttheme: config.getTheme(),\n\t\t\tthemeRoot: typeof config.getThemeRoot === \"function\" ? config.getThemeRoot() : undefined,\n\t\t\trtl: config.getRTL(),\n\t\t\ttimezone: typeof config.getTimezone === \"function\" ? config.getTimezone() : undefined,\n\t\t\tcalendarType: config.getCalendarType(),\n\t\t\tformatSettings: {\n\t\t\t\tfirstDayOfWeek: LocaleData ? LocaleData.getInstance(config.getLocale()).getFirstDayOfWeek() : undefined,\n\t\t\t\tlegacyDateCalendarCustomizing: config.getFormatSettings().getLegacyDateCalendarCustomizing(),\n\t\t\t},\n\t\t};\n\t}\n\n\tstatic getLocaleDataObject() {\n\t\tif (!OpenUI5Support.isOpenUI5Detected()) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst LocaleData = window.sap.ui.require(\"sap/ui/core/LocaleData\") as LocaleData;\n\n\t\tif (OpenUI5Support.isAtLeastVersion(116)) {\n\t\t\tconst Localization = window.sap.ui.require(\"sap/base/i18n/Localization\") as Localization;\n\t\t\treturn LocaleData.getInstance(Localization.getLanguageTag())._get();\n\t\t}\n\n\t\tconst Core = window.sap.ui.require(\"sap/ui/core/Core\") as OpenUI5Core;\n\t\tconst config = Core.getConfiguration();\n\t\treturn LocaleData.getInstance(config.getLocale())._get();\n\t}\n\n\tstatic _listenForThemeChange() {\n\t\tif (OpenUI5Support.isAtLeastVersion(116)) {\n\t\t\tconst Theming: Theming = window.sap.ui.require(\"sap/ui/core/Theming\");\n\t\t\tTheming.attachApplied(() => {\n\t\t\t\tsetTheme(Theming.getTheme());\n\t\t\t});\n\t\t} else {\n\t\t\tconst Core = window.sap.ui.require(\"sap/ui/core/Core\") as OpenUI5Core;\n\t\t\tconst config = Core.getConfiguration();\n\t\t\tCore.attachThemeChanged(() => {\n\t\t\t\tsetTheme(config.getTheme());\n\t\t\t});\n\t\t}\n\t}\n\n\tstatic attachListeners() {\n\t\tif (!OpenUI5Support.isOpenUI5Detected()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tOpenUI5Support._listenForThemeChange();\n\t\treturn true;\n\t}\n\n\tstatic cssVariablesLoaded() {\n\t\tif (!OpenUI5Support.isOpenUI5Detected()) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst link = [...document.head.children].find(el => el.id === \"sap-ui-theme-sap.ui.core\") as HTMLLinkElement; // more reliable than querySelector early\n\t\tif (!link) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// The file name is \"css_variables.css\" until 1.127 and \"library.css\" from 1.127 onwards\n\t\tif (OpenUI5Support.isAtLeastVersion(127)) {\n\t\t\treturn !!link.href.match(/\\/css(-|_)variables\\.css/) || !!link.href.match(/\\/library\\.css/);\n\t\t}\n\n\t\treturn !!link.href.match(/\\/css(-|_)variables\\.css/);\n\t}\n\n\tstatic addOpenedPopup(popupInfo: PopupInfo) {\n\t\taddOpenedPopup(popupInfo);\n\t}\n\n\tstatic removeOpenedPopup(popup: object) {\n\t\tremoveOpenedPopup(popup);\n\t}\n\n\tstatic getTopmostPopup() {\n\t\treturn getTopmostPopup();\n\t}\n}\n\nregisterFeature(\"OpenUI5Support\", OpenUI5Support);\n\nexport default OpenUI5Support;\n"]}
@@ -1,11 +1,11 @@
1
1
  const VersionInfo = {
2
- version: "2.23.1",
2
+ version: "2.24.0-rc.1",
3
3
  major: 2,
4
- minor: 23,
5
- patch: 1,
6
- suffix: "",
4
+ minor: 24,
5
+ patch: 0,
6
+ suffix: "-rc.1",
7
7
  isNext: false,
8
- buildTime: 1781204653,
8
+ buildTime: 1781779000,
9
9
  };
10
10
  export default VersionInfo;
11
11
  //# sourceMappingURL=VersionInfo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VersionInfo.js","sourceRoot":"","sources":["../../src/generated/VersionInfo.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IACnB,OAAO,EAAE,QAAQ;IACjB,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,EAAE;IACV,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,UAAU;CACrB,CAAC;AACF,eAAe,WAAW,CAAC","sourcesContent":["const VersionInfo = {\n\tversion: \"2.23.1\",\n\tmajor: 2,\n\tminor: 23,\n\tpatch: 1,\n\tsuffix: \"\",\n\tisNext: false,\n\tbuildTime: 1781204653,\n};\nexport default VersionInfo;"]}
1
+ {"version":3,"file":"VersionInfo.js","sourceRoot":"","sources":["../../src/generated/VersionInfo.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IACnB,OAAO,EAAE,aAAa;IACtB,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,OAAO;IACf,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,UAAU;CACrB,CAAC;AACF,eAAe,WAAW,CAAC","sourcesContent":["const VersionInfo = {\n\tversion: \"2.24.0-rc.1\",\n\tmajor: 2,\n\tminor: 24,\n\tpatch: 0,\n\tsuffix: \"-rc.1\",\n\tisNext: false,\n\tbuildTime: 1781779000,\n};\nexport default VersionInfo;"]}
@@ -1,2 +1,2 @@
1
- "use strict";const e=new Map,s=(t,r)=>{e.set(t,r)},n=t=>e.get(t);export{s as registerFeature,n as getFeature};
1
+ "use strict";const t=new Map,s=(e,r)=>{t.set(e,r)},n=e=>t.get(e),g=()=>[...t.keys()];export{s as registerFeature,n as getFeature,g as getRegisteredFeatures};
2
2
  //# sourceMappingURL=FeaturesRegistry.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/FeaturesRegistry.ts"],
4
- "sourcesContent": ["const features = new Map<string, any>();\n\nconst registerFeature = (name: string, feature: object) => {\n\tfeatures.set(name, feature);\n};\n\nconst getFeature = <T>(name: string): T => {\n\treturn features.get(name) as T;\n};\n\nexport {\n\tregisterFeature,\n\tgetFeature,\n};\n"],
5
- "mappings": "aAAA,MAAMA,EAAW,IAAI,IAEfC,EAAkB,CAACC,EAAcC,IAAoB,CAC1DH,EAAS,IAAIE,EAAMC,CAAO,CAC3B,EAEMC,EAAiBF,GACfF,EAAS,IAAIE,CAAI,EAGzB,OACCD,KAAA,gBACAG,KAAA",
6
- "names": ["features", "registerFeature", "name", "feature", "getFeature"]
4
+ "sourcesContent": ["const features = new Map<string, any>();\n\nconst registerFeature = (name: string, feature: object) => {\n\tfeatures.set(name, feature);\n};\n\nconst getFeature = <T>(name: string): T => {\n\treturn features.get(name) as T;\n};\n\nconst getRegisteredFeatures = (): Array<string> => {\n\treturn [...features.keys()];\n};\n\nexport {\n\tregisterFeature,\n\tgetFeature,\n\tgetRegisteredFeatures,\n};\n"],
5
+ "mappings": "aAAA,MAAMA,EAAW,IAAI,IAEfC,EAAkB,CAACC,EAAcC,IAAoB,CAC1DH,EAAS,IAAIE,EAAMC,CAAO,CAC3B,EAEMC,EAAiBF,GACfF,EAAS,IAAIE,CAAI,EAGnBG,EAAwB,IACtB,CAAC,GAAGL,EAAS,KAAK,CAAC,EAG3B,OACCC,KAAA,gBACAG,KAAA,WACAC,KAAA",
6
+ "names": ["features", "registerFeature", "name", "feature", "getFeature", "getRegisteredFeatures"]
7
7
  }
@@ -1,2 +1,2 @@
1
- "use strict";import{getAllRegisteredTags as f}from"./CustomElementsRegistry.js";import{getCustomElementsScopingRules as l,getCustomElementsScopingSuffix as p}from"./CustomElementsScopeUtils.js";import g from"./generated/VersionInfo.js";import R from"./getSharedResource.js";let s,u="";const c=new Map,o=R("Runtimes",[]),d=()=>{if(s===void 0){s=o.length;const e=g;o.push({...e,get scopingSuffix(){return p()},get registeredTags(){return f()},get scopingRules(){return l()},alias:u,description:`Runtime ${s} - ver ${e.version}${u?` (${u})`:""}`,importMetaUrl:import.meta.url})}},h=()=>s,a=(e,t)=>{if(e.isNext||t.isNext)return e.buildTime-t.buildTime;const r=e.major-t.major;if(r)return r;const n=e.minor-t.minor;if(n)return n;const i=e.patch-t.patch;return i||new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}).compare(e.suffix,t.suffix)},I=(e,t)=>{const r=`${e},${t}`;if(c.has(r))return c.get(r);const n=o[e],i=o[t];if(!n||!i)throw new Error("Invalid runtime index supplied");const m=a(n,i);return c.set(r,m),m},x=e=>{u=e},b=()=>o;export{h as getCurrentRuntimeIndex,d as registerCurrentRuntime,I as compareRuntimes,a as compareVersions,x as setRuntimeAlias,b as getAllRuntimes};
1
+ "use strict";import{getAllRegisteredTags as f}from"./CustomElementsRegistry.js";import{getCustomElementsScopingRules as l,getCustomElementsScopingSuffix as c}from"./CustomElementsScopeUtils.js";import{getRegisteredFeatures as d,getFeature as p}from"./FeaturesRegistry.js";import{getAnimationMode as I}from"./config/AnimationMode.js";import{getCalendarType as R,getSecondaryCalendarType as h}from"./config/CalendarType.js";import{getDefaultFontLoading as y}from"./config/Fonts.js";import{getFirstDayOfWeek as D,getLegacyDateCalendarCustomizing as C}from"./config/FormatSettings.js";import{getLanguage as T,getFetchDefaultLanguage as U}from"./config/Language.js";import{getNoConflict as S}from"./config/NoConflict.js";import{getTheme as b,getBaseTheme as O}from"./config/Theme.js";import{getThemeRoot as x}from"./config/ThemeRoot.js";import{getTimezone as F}from"./config/Timezone.js";import{getEnableDefaultTooltips as L}from"./config/Tooltips.js";import{getIgnoreUrlParams as A}from"./config/UrlParams.js";import $ from"./generated/VersionInfo.js";import M from"./getSharedResource.js";let a,s="";const u=new Map,i=M("Runtimes",[]),V=()=>{if(a===void 0){a=i.length;const e=$;i.push({...e,get scopingSuffix(){return c()},get registeredTags(){return f()},get registeredFeatures(){return d()},get configuration(){return{theme:b(),themeRoot:x(),baseTheme:O(),language:T(),fetchDefaultLanguage:U(),timezone:F(),animationMode:I(),calendarType:R(),secondaryCalendarType:h(),noConflict:S(),defaultFontLoading:y(),enableDefaultTooltips:L(),firstDayOfWeek:D(),legacyDateCalendarCustomizing:C(),ignoreUrlParams:A()}},get scopingRules(){return l()},get openUI5Detected(){return p("OpenUI5Support")?.isOpenUI5Detected()??!1},get openUI5LoadedFirst(){const t=p("OpenUI5Support");return t?t.isOpenUI5LoadedFirst():void 0},alias:s,description:`Runtime ${a} - ver ${e.version}${s?` (${s})`:""}`,importMetaUrl:import.meta.url})}},j=()=>a,g=(e,t)=>{if(e.isNext||t.isNext)return e.buildTime-t.buildTime;const r=e.major-t.major;if(r)return r;const n=e.minor-t.minor;if(n)return n;const o=e.patch-t.patch;return o||new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}).compare(e.suffix,t.suffix)},w=(e,t)=>{const r=`${e},${t}`;if(u.has(r))return u.get(r);const n=i[e],o=i[t];if(!n||!o)throw new Error("Invalid runtime index supplied");const m=g(n,o);return u.set(r,m),m},z=e=>{s=e},E=()=>i;export{j as getCurrentRuntimeIndex,V as registerCurrentRuntime,w as compareRuntimes,g as compareVersions,z as setRuntimeAlias,E as getAllRuntimes};
2
2
  //# sourceMappingURL=Runtimes.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Runtimes.ts"],
4
- "sourcesContent": ["import { getAllRegisteredTags } from \"./CustomElementsRegistry.js\";\nimport { getCustomElementsScopingRules, getCustomElementsScopingSuffix } from \"./CustomElementsScopeUtils.js\";\nimport VersionInfo from \"./generated/VersionInfo.js\";\nimport getSharedResource from \"./getSharedResource.js\";\n\ntype RuntimeData = VersionInfo & {\n\talias: string,\n\tdescription: string,\n\timportMetaUrl: string,\n};\n\nlet currentRuntimeIndex: number;\nlet currentRuntimeAlias = \"\";\n\nconst compareCache = new Map<string, number>();\n\n/**\n * Central registry where all runtimes register themselves by pushing an object.\n * The index in the registry servers as an ID for the runtime.\n * @type {*}\n */\nconst Runtimes = getSharedResource<Array<RuntimeData>>(\"Runtimes\", []);\n\n/**\n * Registers the current runtime in the shared runtimes resource registry\n */\nconst registerCurrentRuntime = () => {\n\tif (currentRuntimeIndex === undefined) {\n\t\tcurrentRuntimeIndex = Runtimes.length;\n\t\tconst versionInfo = VersionInfo;\n\n\t\tRuntimes.push({\n\t\t\t...versionInfo,\n\t\t\tget scopingSuffix() {\n\t\t\t\treturn getCustomElementsScopingSuffix();\n\t\t\t},\n\t\t\tget registeredTags() {\n\t\t\t\treturn getAllRegisteredTags();\n\t\t\t},\n\t\t\tget scopingRules() {\n\t\t\t\treturn getCustomElementsScopingRules();\n\t\t\t},\n\t\t\talias: currentRuntimeAlias,\n\t\t\tdescription: `Runtime ${currentRuntimeIndex} - ver ${versionInfo.version}${currentRuntimeAlias ? ` (${currentRuntimeAlias})` : \"\"}`,\n\t\t\timportMetaUrl: import.meta.url,\n\t\t});\n\t}\n};\n\n/**\n * Returns the index of the current runtime's object in the shared runtimes resource registry\n * @returns {*}\n */\nconst getCurrentRuntimeIndex = () => {\n\treturn currentRuntimeIndex;\n};\n\n/**\n * Compares two VersionInfo objects and returns 1 if the first is bigger, -1 if the second is bigger, and 0 if equal.\n */\nconst compareVersions = (v1: VersionInfo, v2: VersionInfo): number => {\n\tif (v1.isNext || v2.isNext) {\n\t\treturn v1.buildTime - v2.buildTime;\n\t}\n\n\tconst majorDiff = v1.major - v2.major;\n\tif (majorDiff) {\n\t\treturn majorDiff;\n\t}\n\n\tconst minorDiff = v1.minor - v2.minor;\n\tif (minorDiff) {\n\t\treturn minorDiff;\n\t}\n\n\tconst patchDiff = v1.patch - v2.patch;\n\tif (patchDiff) {\n\t\treturn patchDiff;\n\t}\n\n\tconst collator = new Intl.Collator(undefined, { numeric: true, sensitivity: \"base\" });\n\treturn collator.compare(v1.suffix, v2.suffix);\n};\n\n/**\n * Compares two runtimes and returns 1 if the first is of a bigger version, -1 if the second is of a bigger version, and 0 if equal\n * @param index1 The index of the first runtime to compare\n * @param index2 The index of the second runtime to compare\n * @returns {number}\n */\nconst compareRuntimes = (index1: number, index2: number) => {\n\tconst cacheIndex = `${index1},${index2}`;\n\tif (compareCache.has(cacheIndex)) {\n\t\treturn compareCache.get(cacheIndex)!;\n\t}\n\n\tconst runtime1 = Runtimes[index1];\n\tconst runtime2 = Runtimes[index2];\n\n\tif (!runtime1 || !runtime2) {\n\t\tthrow new Error(\"Invalid runtime index supplied\");\n\t}\n\n\tconst result = compareVersions(runtime1, runtime2);\n\n\tcompareCache.set(cacheIndex, result);\n\treturn result;\n};\n\n/**\n * Set an alias for the the current app/library/microfrontend which will appear in debug messages and console warnings\n * @param alias\n */\nconst setRuntimeAlias = (alias: string) => {\n\tcurrentRuntimeAlias = alias;\n};\n\nconst getAllRuntimes = () => {\n\treturn Runtimes;\n};\n\nexport {\n\tgetCurrentRuntimeIndex,\n\tregisterCurrentRuntime,\n\tcompareRuntimes,\n\tcompareVersions,\n\tsetRuntimeAlias,\n\tgetAllRuntimes,\n};\n"],
5
- "mappings": "aAAA,OAAS,wBAAAA,MAA4B,8BACrC,OAAS,iCAAAC,EAA+B,kCAAAC,MAAsC,gCAC9E,OAAOC,MAAiB,6BACxB,OAAOC,MAAuB,yBAQ9B,IAAIC,EACAC,EAAsB,GAE1B,MAAMC,EAAe,IAAI,IAOnBC,EAAWJ,EAAsC,WAAY,CAAC,CAAC,EAK/DK,EAAyB,IAAM,CACpC,GAAIJ,IAAwB,OAAW,CACtCA,EAAsBG,EAAS,OAC/B,MAAME,EAAcP,EAEpBK,EAAS,KAAK,CACb,GAAGE,EACH,IAAI,eAAgB,CACnB,OAAOR,EAA+B,CACvC,EACA,IAAI,gBAAiB,CACpB,OAAOF,EAAqB,CAC7B,EACA,IAAI,cAAe,CAClB,OAAOC,EAA8B,CACtC,EACA,MAAOK,EACP,YAAa,WAAWD,CAAmB,UAAUK,EAAY,OAAO,GAAGJ,EAAsB,KAAKA,CAAmB,IAAM,EAAE,GACjI,cAAe,YAAY,GAC5B,CAAC,CACF,CACD,EAMMK,EAAyB,IACvBN,EAMFO,EAAkB,CAACC,EAAiBC,IAA4B,CACrE,GAAID,EAAG,QAAUC,EAAG,OACnB,OAAOD,EAAG,UAAYC,EAAG,UAG1B,MAAMC,EAAYF,EAAG,MAAQC,EAAG,MAChC,GAAIC,EACH,OAAOA,EAGR,MAAMC,EAAYH,EAAG,MAAQC,EAAG,MAChC,GAAIE,EACH,OAAOA,EAGR,MAAMC,EAAYJ,EAAG,MAAQC,EAAG,MAChC,OAAIG,GAIa,IAAI,KAAK,SAAS,OAAW,CAAE,QAAS,GAAM,YAAa,MAAO,CAAC,EACpE,QAAQJ,EAAG,OAAQC,EAAG,MAAM,CAC7C,EAQMI,EAAkB,CAACC,EAAgBC,IAAmB,CAC3D,MAAMC,EAAa,GAAGF,CAAM,IAAIC,CAAM,GACtC,GAAIb,EAAa,IAAIc,CAAU,EAC9B,OAAOd,EAAa,IAAIc,CAAU,EAGnC,MAAMC,EAAWd,EAASW,CAAM,EAC1BI,EAAWf,EAASY,CAAM,EAEhC,GAAI,CAACE,GAAY,CAACC,EACjB,MAAM,IAAI,MAAM,gCAAgC,EAGjD,MAAMC,EAASZ,EAAgBU,EAAUC,CAAQ,EAEjD,OAAAhB,EAAa,IAAIc,EAAYG,CAAM,EAC5BA,CACR,EAMMC,EAAmBC,GAAkB,CAC1CpB,EAAsBoB,CACvB,EAEMC,EAAiB,IACfnB,EAGR,OACCG,KAAA,uBACAF,KAAA,uBACAS,KAAA,gBACAN,KAAA,gBACAa,KAAA,gBACAE,KAAA",
6
- "names": ["getAllRegisteredTags", "getCustomElementsScopingRules", "getCustomElementsScopingSuffix", "VersionInfo", "getSharedResource", "currentRuntimeIndex", "currentRuntimeAlias", "compareCache", "Runtimes", "registerCurrentRuntime", "versionInfo", "getCurrentRuntimeIndex", "compareVersions", "v1", "v2", "majorDiff", "minorDiff", "patchDiff", "compareRuntimes", "index1", "index2", "cacheIndex", "runtime1", "runtime2", "result", "setRuntimeAlias", "alias", "getAllRuntimes"]
4
+ "sourcesContent": ["import { getAllRegisteredTags } from \"./CustomElementsRegistry.js\";\nimport { getCustomElementsScopingRules, getCustomElementsScopingSuffix } from \"./CustomElementsScopeUtils.js\";\nimport { getRegisteredFeatures, getFeature } from \"./FeaturesRegistry.js\";\nimport type OpenUI5Support from \"./features/OpenUI5Support.js\";\nimport { getAnimationMode } from \"./config/AnimationMode.js\";\nimport { getCalendarType, getSecondaryCalendarType } from \"./config/CalendarType.js\";\nimport { getDefaultFontLoading } from \"./config/Fonts.js\";\nimport { getFirstDayOfWeek, getLegacyDateCalendarCustomizing } from \"./config/FormatSettings.js\";\nimport { getLanguage, getFetchDefaultLanguage } from \"./config/Language.js\";\nimport { getNoConflict } from \"./config/NoConflict.js\";\nimport { getTheme, getBaseTheme } from \"./config/Theme.js\";\nimport { getThemeRoot } from \"./config/ThemeRoot.js\";\nimport { getTimezone } from \"./config/Timezone.js\";\nimport { getEnableDefaultTooltips } from \"./config/Tooltips.js\";\nimport { getIgnoreUrlParams } from \"./config/UrlParams.js\";\nimport VersionInfo from \"./generated/VersionInfo.js\";\nimport getSharedResource from \"./getSharedResource.js\";\n\ntype RuntimeData = VersionInfo & {\n\talias: string,\n\tdescription: string,\n\timportMetaUrl: string,\n};\n\nlet currentRuntimeIndex: number;\nlet currentRuntimeAlias = \"\";\n\nconst compareCache = new Map<string, number>();\n\n/**\n * Central registry where all runtimes register themselves by pushing an object.\n * The index in the registry servers as an ID for the runtime.\n * @type {*}\n */\nconst Runtimes = getSharedResource<Array<RuntimeData>>(\"Runtimes\", []);\n\n/**\n * Registers the current runtime in the shared runtimes resource registry\n */\nconst registerCurrentRuntime = () => {\n\tif (currentRuntimeIndex === undefined) {\n\t\tcurrentRuntimeIndex = Runtimes.length;\n\t\tconst versionInfo = VersionInfo;\n\n\t\tRuntimes.push({\n\t\t\t...versionInfo,\n\t\t\tget scopingSuffix() {\n\t\t\t\treturn getCustomElementsScopingSuffix();\n\t\t\t},\n\t\t\tget registeredTags() {\n\t\t\t\treturn getAllRegisteredTags();\n\t\t\t},\n\t\t\tget registeredFeatures() {\n\t\t\t\treturn getRegisteredFeatures();\n\t\t\t},\n\t\t\tget configuration() {\n\t\t\t\treturn {\n\t\t\t\t\ttheme: getTheme(),\n\t\t\t\t\tthemeRoot: getThemeRoot(),\n\t\t\t\t\tbaseTheme: getBaseTheme(),\n\t\t\t\t\tlanguage: getLanguage(),\n\t\t\t\t\tfetchDefaultLanguage: getFetchDefaultLanguage(),\n\t\t\t\t\ttimezone: getTimezone(),\n\t\t\t\t\tanimationMode: getAnimationMode(),\n\t\t\t\t\tcalendarType: getCalendarType(),\n\t\t\t\t\tsecondaryCalendarType: getSecondaryCalendarType(),\n\t\t\t\t\tnoConflict: getNoConflict(),\n\t\t\t\t\tdefaultFontLoading: getDefaultFontLoading(),\n\t\t\t\t\tenableDefaultTooltips: getEnableDefaultTooltips(),\n\t\t\t\t\tfirstDayOfWeek: getFirstDayOfWeek(),\n\t\t\t\t\tlegacyDateCalendarCustomizing: getLegacyDateCalendarCustomizing(),\n\t\t\t\t\tignoreUrlParams: getIgnoreUrlParams(),\n\t\t\t\t};\n\t\t\t},\n\t\t\tget scopingRules() {\n\t\t\t\treturn getCustomElementsScopingRules();\n\t\t\t},\n\t\t\tget openUI5Detected() {\n\t\t\t\treturn getFeature<typeof OpenUI5Support>(\"OpenUI5Support\")?.isOpenUI5Detected() ?? false;\n\t\t\t},\n\t\t\tget openUI5LoadedFirst() {\n\t\t\t\tconst openUI5Support = getFeature<typeof OpenUI5Support>(\"OpenUI5Support\");\n\t\t\t\treturn openUI5Support ? openUI5Support.isOpenUI5LoadedFirst() : undefined;\n\t\t\t},\n\t\t\talias: currentRuntimeAlias,\n\t\t\tdescription: `Runtime ${currentRuntimeIndex} - ver ${versionInfo.version}${currentRuntimeAlias ? ` (${currentRuntimeAlias})` : \"\"}`,\n\t\t\timportMetaUrl: import.meta.url,\n\t\t});\n\t}\n};\n\n/**\n * Returns the index of the current runtime's object in the shared runtimes resource registry\n * @returns {*}\n */\nconst getCurrentRuntimeIndex = () => {\n\treturn currentRuntimeIndex;\n};\n\n/**\n * Compares two VersionInfo objects and returns 1 if the first is bigger, -1 if the second is bigger, and 0 if equal.\n */\nconst compareVersions = (v1: VersionInfo, v2: VersionInfo): number => {\n\tif (v1.isNext || v2.isNext) {\n\t\treturn v1.buildTime - v2.buildTime;\n\t}\n\n\tconst majorDiff = v1.major - v2.major;\n\tif (majorDiff) {\n\t\treturn majorDiff;\n\t}\n\n\tconst minorDiff = v1.minor - v2.minor;\n\tif (minorDiff) {\n\t\treturn minorDiff;\n\t}\n\n\tconst patchDiff = v1.patch - v2.patch;\n\tif (patchDiff) {\n\t\treturn patchDiff;\n\t}\n\n\tconst collator = new Intl.Collator(undefined, { numeric: true, sensitivity: \"base\" });\n\treturn collator.compare(v1.suffix, v2.suffix);\n};\n\n/**\n * Compares two runtimes and returns 1 if the first is of a bigger version, -1 if the second is of a bigger version, and 0 if equal\n * @param index1 The index of the first runtime to compare\n * @param index2 The index of the second runtime to compare\n * @returns {number}\n */\nconst compareRuntimes = (index1: number, index2: number) => {\n\tconst cacheIndex = `${index1},${index2}`;\n\tif (compareCache.has(cacheIndex)) {\n\t\treturn compareCache.get(cacheIndex)!;\n\t}\n\n\tconst runtime1 = Runtimes[index1];\n\tconst runtime2 = Runtimes[index2];\n\n\tif (!runtime1 || !runtime2) {\n\t\tthrow new Error(\"Invalid runtime index supplied\");\n\t}\n\n\tconst result = compareVersions(runtime1, runtime2);\n\n\tcompareCache.set(cacheIndex, result);\n\treturn result;\n};\n\n/**\n * Set an alias for the the current app/library/microfrontend which will appear in debug messages and console warnings\n * @param alias\n */\nconst setRuntimeAlias = (alias: string) => {\n\tcurrentRuntimeAlias = alias;\n};\n\nconst getAllRuntimes = () => {\n\treturn Runtimes;\n};\n\nexport {\n\tgetCurrentRunt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BU,EAAUC,CAAQ,EAEjD,OAAAjB,EAAa,IAAIe,EAAYG,CAAM,EAC5BA,CACR,EAMMC,EAAmBC,GAAkB,CAC1CrB,EAAsBqB,CACvB,EAEMC,EAAiB,IACfpB,EAGR,OACCI,KAAA,uBACAH,KAAA,uBACAU,KAAA,gBACAN,KAAA,gBACAa,KAAA,gBACAE,KAAA",
6
+ "names": ["getAllRegisteredTags", "getCustomElementsScopingRules", "getCustomElementsScopingSuffix", "getRegisteredFeatures", "getFeature", "getAnimationMode", "getCalendarType", "getSecondaryCalendarType", "getDefaultFontLoading", "getFirstDayOfWeek", "getLegacyDateCalendarCustomizing", "getLanguage", "getFetchDefaultLanguage", "getNoConflict", "getTheme", "getBaseTheme", "getThemeRoot", "getTimezone", "getEnableDefaultTooltips", "getIgnoreUrlParams", "VersionInfo", "getSharedResource", "currentRuntimeIndex", "currentRuntimeAlias", "compareCache", "Runtimes", "registerCurrentRuntime", "versionInfo", "openUI5Support", "getCurrentRuntimeIndex", "compareVersions", "v1", "v2", "majorDiff", "minorDiff", "patchDiff", "compareRuntimes", "index1", "index2", "cacheIndex", "runtime1", "runtime2", "result", "setRuntimeAlias", "alias", "getAllRuntimes"]
7
7
  }
@@ -1,2 +1,2 @@
1
- "use strict";import l from"./patchPatcher.js";import{patchPopup as u,addOpenedPopup as m,removeOpenedPopup as d,getTopmostPopup as p}from"./patchPopup.js";import{registerFeature as f}from"../FeaturesRegistry.js";import{setTheme as g}from"../config/Theme.js";import{secondaryBoot as C}from"../Boot.js";const h=100;class t{static{this.enablePolling=!1}static isAtLeastVersion(e){if(!window.sap.ui.version)return!0;const i=window.sap.ui.version.split(".");return!i||i.length<2?!1:parseInt(i[0])>1||parseInt(i[1])>=e}static isOpenUI5Detected(){return typeof window.sap?.ui?.require=="function"}static{this.OpenUI5DelayedInit=async()=>{t.init(),await C()}}static awaitForOpenUI5(){if(t.enablePolling){const e=setInterval(()=>{t.isOpenUI5Detected()&&(clearInterval(e),t.OpenUI5DelayedInit())},h)}else document.addEventListener("sap-ui-core-ready",()=>{t.OpenUI5DelayedInit()})}static init(){return t.isOpenUI5Detected()?(t.initPromise||(t.initPromise=new Promise(e=>{window.sap.ui.require(["sap/ui/core/Core"],async a=>{const i=()=>{let n=["sap/ui/core/Popup","sap/m/Dialog","sap/ui/core/Patcher","sap/ui/core/LocaleData"];t.isAtLeastVersion(116)&&(n=[...n,"sap/base/i18n/Formatting","sap/base/i18n/Localization","sap/ui/core/ControlBehavior","sap/ui/core/Theming","sap/ui/core/date/CalendarUtils"]),window.sap.ui.require(n,(o,r,s)=>{l(s),u(o,r),e()})};t.isAtLeastVersion(116)?(await a.ready(),i()):a.attachInit(i)})})),t.initPromise):t.awaitForOpenUI5()}static getConfigurationSettingsObject(){if(!t.isOpenUI5Detected())return{};if(t.isAtLeastVersion(116)){const n=window.sap.ui.require("sap/ui/core/ControlBehavior"),o=window.sap.ui.require("sap/base/i18n/Localization"),r=window.sap.ui.require("sap/ui/core/Theming"),s=window.sap.ui.require("sap/base/i18n/Formatting"),c=window.sap.ui.require("sap/ui/core/date/CalendarUtils");return{animationMode:n.getAnimationMode(),language:o.getLanguage(),theme:r.getTheme(),themeRoot:r.getThemeRoot(),rtl:o.getRTL(),timezone:o.getTimezone(),calendarType:s.getCalendarType(),formatSettings:{firstDayOfWeek:c.getWeekConfigurationValues().firstDayOfWeek,legacyDateCalendarCustomizing:s.getCustomIslamicCalendarData?.()??s.getLegacyDateCalendarCustomizing?.()}}}const a=window.sap.ui.require("sap/ui/core/Core").getConfiguration(),i=window.sap.ui.require("sap/ui/core/LocaleData");return{animationMode:a.getAnimationMode(),language:a.getLanguage(),theme:a.getTheme(),themeRoot:typeof a.getThemeRoot=="function"?a.getThemeRoot():void 0,rtl:a.getRTL(),timezone:typeof a.getTimezone=="function"?a.getTimezone():void 0,calendarType:a.getCalendarType(),formatSettings:{firstDayOfWeek:i?i.getInstance(a.getLocale()).getFirstDayOfWeek():void 0,legacyDateCalendarCustomizing:a.getFormatSettings().getLegacyDateCalendarCustomizing()}}}static getLocaleDataObject(){if(!t.isOpenUI5Detected())return;const e=window.sap.ui.require("sap/ui/core/LocaleData");if(t.isAtLeastVersion(116)){const n=window.sap.ui.require("sap/base/i18n/Localization");return e.getInstance(n.getLanguageTag())._get()}const i=window.sap.ui.require("sap/ui/core/Core").getConfiguration();return e.getInstance(i.getLocale())._get()}static _listenForThemeChange(){if(t.isAtLeastVersion(116)){const e=window.sap.ui.require("sap/ui/core/Theming");e.attachApplied(()=>{g(e.getTheme())})}else{const e=window.sap.ui.require("sap/ui/core/Core"),a=e.getConfiguration();e.attachThemeChanged(()=>{g(a.getTheme())})}}static attachListeners(){return t.isOpenUI5Detected()?(t._listenForThemeChange(),!0):!1}static cssVariablesLoaded(){if(!t.isOpenUI5Detected())return;const e=[...document.head.children].find(a=>a.id==="sap-ui-theme-sap.ui.core");return e?t.isAtLeastVersion(127)?!!e.href.match(/\/css(-|_)variables\.css/)||!!e.href.match(/\/library\.css/):!!e.href.match(/\/css(-|_)variables\.css/):!1}static addOpenedPopup(e){m(e)}static removeOpenedPopup(e){d(e)}static getTopmostPopup(){return p()}}f("OpenUI5Support",t);export default t;
1
+ "use strict";import l from"./patchPatcher.js";import{patchPopup as d,addOpenedPopup as u,removeOpenedPopup as m,getTopmostPopup as p}from"./patchPopup.js";import{registerFeature as f}from"../FeaturesRegistry.js";import{setTheme as g}from"../config/Theme.js";import{secondaryBoot as C}from"../Boot.js";const h=100;class e{static{this.enablePolling=!1}static isAtLeastVersion(t){if(!window.sap.ui.version)return!0;const i=window.sap.ui.version.split(".");return!i||i.length<2?!1:parseInt(i[0])>1||parseInt(i[1])>=t}static isOpenUI5Detected(){return typeof window.sap?.ui?.require=="function"}static isOpenUI5LoadedFirst(){return e._loadedFirst}static{this.OpenUI5DelayedInit=async()=>{e._loadedFirst=!1,e.init(),await C()}}static awaitForOpenUI5(){if(e.enablePolling){const t=setInterval(()=>{e.isOpenUI5Detected()&&(clearInterval(t),e.OpenUI5DelayedInit())},h)}else document.addEventListener("sap-ui-core-ready",()=>{e.OpenUI5DelayedInit()})}static init(){return e.isOpenUI5Detected()?(e._loadedFirst??=!0,e.initPromise||(e.initPromise=new Promise(t=>{window.sap.ui.require(["sap/ui/core/Core"],async a=>{const i=()=>{let n=["sap/ui/core/Popup","sap/m/Dialog","sap/ui/core/Patcher","sap/ui/core/LocaleData"];e.isAtLeastVersion(116)&&(n=[...n,"sap/base/i18n/Formatting","sap/base/i18n/Localization","sap/ui/core/ControlBehavior","sap/ui/core/Theming","sap/ui/core/date/CalendarUtils"]),window.sap.ui.require(n,(o,r,s)=>{l(s),d(o,r),t()})};e.isAtLeastVersion(116)?(await a.ready(),i()):a.attachInit(i)})})),e.initPromise):e.awaitForOpenUI5()}static getConfigurationSettingsObject(){if(!e.isOpenUI5Detected())return{};if(e.isAtLeastVersion(116)){const n=window.sap.ui.require("sap/ui/core/ControlBehavior"),o=window.sap.ui.require("sap/base/i18n/Localization"),r=window.sap.ui.require("sap/ui/core/Theming"),s=window.sap.ui.require("sap/base/i18n/Formatting"),c=window.sap.ui.require("sap/ui/core/date/CalendarUtils");return{animationMode:n.getAnimationMode(),language:o.getLanguage(),theme:r.getTheme(),themeRoot:r.getThemeRoot(),rtl:o.getRTL(),timezone:o.getTimezone(),calendarType:s.getCalendarType(),formatSettings:{firstDayOfWeek:c.getWeekConfigurationValues().firstDayOfWeek,legacyDateCalendarCustomizing:s.getCustomIslamicCalendarData?.()??s.getLegacyDateCalendarCustomizing?.()}}}const a=window.sap.ui.require("sap/ui/core/Core").getConfiguration(),i=window.sap.ui.require("sap/ui/core/LocaleData");return{animationMode:a.getAnimationMode(),language:a.getLanguage(),theme:a.getTheme(),themeRoot:typeof a.getThemeRoot=="function"?a.getThemeRoot():void 0,rtl:a.getRTL(),timezone:typeof a.getTimezone=="function"?a.getTimezone():void 0,calendarType:a.getCalendarType(),formatSettings:{firstDayOfWeek:i?i.getInstance(a.getLocale()).getFirstDayOfWeek():void 0,legacyDateCalendarCustomizing:a.getFormatSettings().getLegacyDateCalendarCustomizing()}}}static getLocaleDataObject(){if(!e.isOpenUI5Detected())return;const t=window.sap.ui.require("sap/ui/core/LocaleData");if(e.isAtLeastVersion(116)){const n=window.sap.ui.require("sap/base/i18n/Localization");return t.getInstance(n.getLanguageTag())._get()}const i=window.sap.ui.require("sap/ui/core/Core").getConfiguration();return t.getInstance(i.getLocale())._get()}static _listenForThemeChange(){if(e.isAtLeastVersion(116)){const t=window.sap.ui.require("sap/ui/core/Theming");t.attachApplied(()=>{g(t.getTheme())})}else{const t=window.sap.ui.require("sap/ui/core/Core"),a=t.getConfiguration();t.attachThemeChanged(()=>{g(a.getTheme())})}}static attachListeners(){return e.isOpenUI5Detected()?(e._listenForThemeChange(),!0):!1}static cssVariablesLoaded(){if(!e.isOpenUI5Detected())return;const t=[...document.head.children].find(a=>a.id==="sap-ui-theme-sap.ui.core");return t?e.isAtLeastVersion(127)?!!t.href.match(/\/css(-|_)variables\.css/)||!!t.href.match(/\/library\.css/):!!t.href.match(/\/css(-|_)variables\.css/):!1}static addOpenedPopup(t){u(t)}static removeOpenedPopup(t){m(t)}static getTopmostPopup(){return p()}}f("OpenUI5Support",e);export default e;
2
2
  //# sourceMappingURL=OpenUI5Support.js.map