From eb8a3240d40a6be9b6a98a24e5fc7f0a325b8cae Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Thu, 4 Apr 2024 16:47:53 +0300 Subject: [PATCH 01/33] feat: Create definitions for pseudo modules --- package.json | 6 +- .../createPseudoModulesInfo.ts | 136 ++++++++++++++++++ 2 files changed, 140 insertions(+), 2 deletions(-) create mode 100644 scripts/metadataProvider/createPseudoModulesInfo.ts diff --git a/package.json b/package.json index 80d20c37..6bbdca72 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,8 @@ "unit-debug": "ava debug", "unit-update-snapshots": "ava --update-snapshots", "unit-watch": "ava --watch", - "update-semantic-model-info": "tsx scripts/metadataProvider/createMetadataInfo.ts" + "update-semantic-model-info": "tsx scripts/metadataProvider/createMetadataInfo.ts", + "update-pseudo-modules-info": "tsx scripts/metadataProvider/createPseudoModulesInfo.ts" }, "files": [ "CHANGELOG.md", @@ -99,6 +100,7 @@ "semver": "^7.6.0", "sinon": "^17.0.1", "tsx": "^4.7.2", - "typescript-eslint": "^7.6.0" + "typescript-eslint": "^7.6.0", + "unzip-stream": "^0.3.1" } } diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts new file mode 100644 index 00000000..ee6949f6 --- /dev/null +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -0,0 +1,136 @@ +import {pipeline} from "node:stream/promises"; +import {Extract} from "unzip-stream"; +import MetadataProvider from "./MetadataProvider.js"; +import {writeFile} from "node:fs/promises"; + +import type {UI5Enum} from "@ui5-language-assistant/semantic-model-types"; + +const RAW_API_JSON_FILES_FOLDER = "tmp/apiJson"; + +async function downloadAPIJsons(url: string) { + const response = await fetch(url); + if (!response.ok) { + throw new Error(`unexpected response ${response.statusText}`); + } + + if (response.body && response.body instanceof ReadableStream) { + await pipeline(response.body, Extract({path: RAW_API_JSON_FILES_FOLDER})); + } else { + throw new Error("Malformed response"); + } +} + +async function transformFiles() { + const metadataProvider = new MetadataProvider(); + await metadataProvider.init(RAW_API_JSON_FILES_FOLDER); + + const {enums} = metadataProvider.getModel(); + + const groupedEnums = Object.keys(enums).reduce((acc: Record, enumKey: string) => { + const curEnum = enums[enumKey]; + + acc[curEnum.library] = acc[curEnum.library] ?? []; + acc[curEnum.library].push(curEnum); + + return acc; + }, Object.create(null)); + + await addOverrides(groupedEnums); +} + +async function addOverrides(enums: Record) { + const indexFilesImports: string[] = []; + const buildJSDoc = (enumEntry: UI5Enum, indent: string = "") => { + const jsDocBuilder: string[] = [`${indent}/**`]; + + if (enumEntry.description) { + jsDocBuilder.push(`${indent} * ${enumEntry.description.replaceAll("\n", "\n" + indent + " * ")}`); + jsDocBuilder.push(`${indent} *`); + } + + if (enumEntry.experimentalInfo) { + let experimental: string = `${indent} * @experimental`; + if (enumEntry.experimentalInfo.since) { + experimental += ` (since ${enumEntry.experimentalInfo.since})`; + } + if (enumEntry.experimentalInfo.text) { + experimental += ` - ${enumEntry.experimentalInfo.text}`; + } + jsDocBuilder.push(experimental); + } + + if (enumEntry.deprecatedInfo) { + let deprecated: string = `${indent} * @deprecated`; + if (enumEntry.deprecatedInfo.since) { + deprecated += ` (since ${enumEntry.deprecatedInfo.since})`; + } + if (enumEntry.deprecatedInfo.text) { + deprecated += ` - ${enumEntry.deprecatedInfo.text}`; + } + jsDocBuilder.push(deprecated); + } + + if (enumEntry.visibility) { + jsDocBuilder.push(`${indent} * @${enumEntry.visibility}`); + } + + if (enumEntry.since) { + jsDocBuilder.push(`${indent} * @since ${enumEntry.since}`); + } + jsDocBuilder.push(`${indent}*/`); + + return jsDocBuilder.join("\n"); + } + + Object.keys(enums).forEach(async (libName) => { + const enumEntries = enums[libName]; + + let stringBuilder: string[] = [ + `declare module "${libName.replaceAll(".", "/")}/library" {` + ]; + enumEntries.forEach((enumEntry) => { + if (enumEntry.kind !== "UI5Enum") { + return; + } + + stringBuilder.push(buildJSDoc(enumEntry, "\t")); + stringBuilder.push(`\texport enum ${enumEntry.name} {`); + enumEntry.fields.forEach((value) => { + stringBuilder.push(buildJSDoc(value, "\t\t")); + stringBuilder.push(`\t\t${value.name} = "${value.name}",`); + }); + stringBuilder.push(`\t}`); + + return stringBuilder.join("\n"); + }); + stringBuilder.push(`}`) + + indexFilesImports.push(`import "./${libName}";`); + await writeFile( + new URL(`../../resources/overrides/library/${libName}.d.ts`, import.meta.url), + stringBuilder.join("\n") + ); + }); + + await writeFile( + new URL(`../../resources/overrides/library/index.d.ts`, import.meta.url), + indexFilesImports.join("\n") + ); +} + +async function main(url: string) { + await downloadAPIJsons(url); + + await transformFiles(); +} + +try { + const url = process.argv[2]; + if (!url) { + throw new Error("second argument \"url\" is missing"); + } + await main(url); +} catch (err) { + process.stderr.write(String(err)); + process.exit(1); +} From df88d408065a8d6cd14744b7b0903c53f80e42e2 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Thu, 4 Apr 2024 16:48:55 +0300 Subject: [PATCH 02/33] fix: Eslint issues --- .../createPseudoModulesInfo.ts | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index ee6949f6..d079994c 100644 --- a/scripts/metadataProvider/createPseudoModulesInfo.ts +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -23,15 +23,15 @@ async function downloadAPIJsons(url: string) { async function transformFiles() { const metadataProvider = new MetadataProvider(); await metadataProvider.init(RAW_API_JSON_FILES_FOLDER); - + const {enums} = metadataProvider.getModel(); - + const groupedEnums = Object.keys(enums).reduce((acc: Record, enumKey: string) => { const curEnum = enums[enumKey]; acc[curEnum.library] = acc[curEnum.library] ?? []; acc[curEnum.library].push(curEnum); - + return acc; }, Object.create(null)); @@ -40,16 +40,16 @@ async function transformFiles() { async function addOverrides(enums: Record) { const indexFilesImports: string[] = []; - const buildJSDoc = (enumEntry: UI5Enum, indent: string = "") => { + const buildJSDoc = (enumEntry: UI5Enum, indent = "") => { const jsDocBuilder: string[] = [`${indent}/**`]; - + if (enumEntry.description) { jsDocBuilder.push(`${indent} * ${enumEntry.description.replaceAll("\n", "\n" + indent + " * ")}`); jsDocBuilder.push(`${indent} *`); } if (enumEntry.experimentalInfo) { - let experimental: string = `${indent} * @experimental`; + let experimental = `${indent} * @experimental`; if (enumEntry.experimentalInfo.since) { experimental += ` (since ${enumEntry.experimentalInfo.since})`; } @@ -58,9 +58,9 @@ async function addOverrides(enums: Record) { } jsDocBuilder.push(experimental); } - + if (enumEntry.deprecatedInfo) { - let deprecated: string = `${indent} * @deprecated`; + let deprecated = `${indent} * @deprecated`; if (enumEntry.deprecatedInfo.since) { deprecated += ` (since ${enumEntry.deprecatedInfo.since})`; } @@ -78,15 +78,15 @@ async function addOverrides(enums: Record) { jsDocBuilder.push(`${indent} * @since ${enumEntry.since}`); } jsDocBuilder.push(`${indent}*/`); - + return jsDocBuilder.join("\n"); - } - + }; + Object.keys(enums).forEach(async (libName) => { const enumEntries = enums[libName]; - let stringBuilder: string[] = [ - `declare module "${libName.replaceAll(".", "/")}/library" {` + const stringBuilder: string[] = [ + `declare module "${libName.replaceAll(".", "/")}/library" {`, ]; enumEntries.forEach((enumEntry) => { if (enumEntry.kind !== "UI5Enum") { @@ -103,7 +103,7 @@ async function addOverrides(enums: Record) { return stringBuilder.join("\n"); }); - stringBuilder.push(`}`) + stringBuilder.push(`}`); indexFilesImports.push(`import "./${libName}";`); await writeFile( @@ -111,7 +111,7 @@ async function addOverrides(enums: Record) { stringBuilder.join("\n") ); }); - + await writeFile( new URL(`../../resources/overrides/library/index.d.ts`, import.meta.url), indexFilesImports.join("\n") From e1ae412f6b880c2e7ae4316c1d8eacd2ccc0853d Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Fri, 5 Apr 2024 10:21:28 +0300 Subject: [PATCH 03/33] refactor: Address Eslint issues --- .../createPseudoModulesInfo.ts | 79 ++++++++++--------- 1 file changed, 40 insertions(+), 39 deletions(-) diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index d079994c..728ce0de 100644 --- a/scripts/metadataProvider/createPseudoModulesInfo.ts +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -3,7 +3,7 @@ import {Extract} from "unzip-stream"; import MetadataProvider from "./MetadataProvider.js"; import {writeFile} from "node:fs/promises"; -import type {UI5Enum} from "@ui5-language-assistant/semantic-model-types"; +import type {UI5Enum, UI5EnumValue} from "@ui5-language-assistant/semantic-model-types"; const RAW_API_JSON_FILES_FOLDER = "tmp/apiJson"; @@ -33,56 +33,57 @@ async function transformFiles() { acc[curEnum.library].push(curEnum); return acc; - }, Object.create(null)); + }, Object.create(null) as Record); await addOverrides(groupedEnums); } -async function addOverrides(enums: Record) { - const indexFilesImports: string[] = []; - const buildJSDoc = (enumEntry: UI5Enum, indent = "") => { - const jsDocBuilder: string[] = [`${indent}/**`]; +function buildJSDoc(enumEntry: UI5Enum | UI5EnumValue, indent = "") { + const jsDocBuilder: string[] = [`${indent}/**`]; - if (enumEntry.description) { - jsDocBuilder.push(`${indent} * ${enumEntry.description.replaceAll("\n", "\n" + indent + " * ")}`); - jsDocBuilder.push(`${indent} *`); - } + if (enumEntry.description) { + jsDocBuilder.push(`${indent} * ${enumEntry.description.replaceAll("\n", "\n" + indent + " * ")}`); + jsDocBuilder.push(`${indent} *`); + } - if (enumEntry.experimentalInfo) { - let experimental = `${indent} * @experimental`; - if (enumEntry.experimentalInfo.since) { - experimental += ` (since ${enumEntry.experimentalInfo.since})`; - } - if (enumEntry.experimentalInfo.text) { - experimental += ` - ${enumEntry.experimentalInfo.text}`; - } - jsDocBuilder.push(experimental); + if (enumEntry.experimentalInfo) { + let experimental = `${indent} * @experimental`; + if (enumEntry.experimentalInfo.since) { + experimental += ` (since ${enumEntry.experimentalInfo.since})`; } - - if (enumEntry.deprecatedInfo) { - let deprecated = `${indent} * @deprecated`; - if (enumEntry.deprecatedInfo.since) { - deprecated += ` (since ${enumEntry.deprecatedInfo.since})`; - } - if (enumEntry.deprecatedInfo.text) { - deprecated += ` - ${enumEntry.deprecatedInfo.text}`; - } - jsDocBuilder.push(deprecated); + if (enumEntry.experimentalInfo.text) { + experimental += ` - ${enumEntry.experimentalInfo.text}`; } + jsDocBuilder.push(experimental); + } - if (enumEntry.visibility) { - jsDocBuilder.push(`${indent} * @${enumEntry.visibility}`); + if (enumEntry.deprecatedInfo) { + let deprecated = `${indent} * @deprecated`; + if (enumEntry.deprecatedInfo.since) { + deprecated += ` (since ${enumEntry.deprecatedInfo.since})`; } - - if (enumEntry.since) { - jsDocBuilder.push(`${indent} * @since ${enumEntry.since}`); + if (enumEntry.deprecatedInfo.text) { + deprecated += ` - ${enumEntry.deprecatedInfo.text}`; } - jsDocBuilder.push(`${indent}*/`); + jsDocBuilder.push(deprecated); + } + + if (enumEntry.visibility) { + jsDocBuilder.push(`${indent} * @${enumEntry.visibility}`); + } + + if (enumEntry.since) { + jsDocBuilder.push(`${indent} * @since ${enumEntry.since}`); + } + jsDocBuilder.push(`${indent}*/`); - return jsDocBuilder.join("\n"); - }; + return jsDocBuilder.join("\n"); +} - Object.keys(enums).forEach(async (libName) => { +async function addOverrides(enums: Record) { + const indexFilesImports: string[] = []; + + for (const libName of Object.keys(enums)) { const enumEntries = enums[libName]; const stringBuilder: string[] = [ @@ -110,7 +111,7 @@ async function addOverrides(enums: Record) { new URL(`../../resources/overrides/library/${libName}.d.ts`, import.meta.url), stringBuilder.join("\n") ); - }); + } await writeFile( new URL(`../../resources/overrides/library/index.d.ts`, import.meta.url), From 53bbe07d530ab7b94987f6ae4777efe6f6eb96ed Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Fri, 5 Apr 2024 13:52:24 +0300 Subject: [PATCH 04/33] feat: Detect badly imported enums --- src/linter/ui5Types/SourceFileLinter.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/linter/ui5Types/SourceFileLinter.ts b/src/linter/ui5Types/SourceFileLinter.ts index eb5ae832..34772fe3 100644 --- a/src/linter/ui5Types/SourceFileLinter.ts +++ b/src/linter/ui5Types/SourceFileLinter.ts @@ -435,6 +435,18 @@ export default class SourceFileLinter { messageDetails: deprecationInfo.messageDetails, }); } + + if (this.isSymbolOfPseudoType(symbol)) { + this.#reporter.addMessage({ + node: moduleSpecifierNode, + severity: LintMessageSeverity.Error, + ruleId: "ui5-linter-no-deprecated-api", + message: + `Import of pseudo module ` + + `'${moduleSpecifierNode.text}'`, + messageDetails: "Import library and reuse the enum from there", + }); + } } isSymbolOfUi5Type(symbol: ts.Symbol) { @@ -465,6 +477,10 @@ export default class SourceFileLinter { return symbol.valueDeclaration?.getSourceFile().fileName === "/types/@ui5/linter/overrides/jquery.sap.d.ts"; } + isSymbolOfPseudoType(symbol: ts.Symbol | undefined) { + return symbol?.valueDeclaration?.getSourceFile().fileName.includes("/types/@ui5/linter/overrides/library/"); + } + findClassOrInterface(node: ts.Node): ts.Type | undefined { let nodeType: ts.Type | undefined = this.#checker.getTypeAtLocation(node); if (nodeType.isClassOrInterface()) { From 64a6a9617470d1e278e452108ccdb922d7fac99d Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Fri, 5 Apr 2024 14:03:23 +0300 Subject: [PATCH 05/33] fix: Define properly modules --- scripts/metadataProvider/createPseudoModulesInfo.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index 728ce0de..3e856763 100644 --- a/scripts/metadataProvider/createPseudoModulesInfo.ts +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -85,15 +85,15 @@ async function addOverrides(enums: Record) { for (const libName of Object.keys(enums)) { const enumEntries = enums[libName]; + const stringBuilder: string[] = []; - const stringBuilder: string[] = [ - `declare module "${libName.replaceAll(".", "/")}/library" {`, - ]; enumEntries.forEach((enumEntry) => { if (enumEntry.kind !== "UI5Enum") { return; } + stringBuilder.push(`declare module "${libName.replaceAll(".", "/")}/${enumEntry.name}" {`); + stringBuilder.push(""); stringBuilder.push(buildJSDoc(enumEntry, "\t")); stringBuilder.push(`\texport enum ${enumEntry.name} {`); enumEntry.fields.forEach((value) => { @@ -101,10 +101,11 @@ async function addOverrides(enums: Record) { stringBuilder.push(`\t\t${value.name} = "${value.name}",`); }); stringBuilder.push(`\t}`); + stringBuilder.push(`}`); + stringBuilder.push(""); return stringBuilder.join("\n"); }); - stringBuilder.push(`}`); indexFilesImports.push(`import "./${libName}";`); await writeFile( From e7e8b9d722a4d1a3ef9b8038571542d7dd8afef0 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Mon, 8 Apr 2024 11:09:33 +0300 Subject: [PATCH 06/33] feat: Adds generated files to the definitions --- resources/overrides/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/overrides/index.d.ts b/resources/overrides/index.d.ts index d0085e99..a05c44fa 100644 --- a/resources/overrides/index.d.ts +++ b/resources/overrides/index.d.ts @@ -1,2 +1,3 @@ import "./jquery.sap.mobile"; import "./jquery.sap"; +import "./library/index" \ No newline at end of file From 9635435525ac9b8f021a0d6807269436bcd0093b Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Mon, 8 Apr 2024 14:29:41 +0300 Subject: [PATCH 07/33] feat: Filter enums for only real pseudo ones --- package-lock.json | 68 ++++++++++++++++++- .../createPseudoModulesInfo.ts | 29 +++++++- 2 files changed, 94 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 289dc7fa..d804e23b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -52,7 +52,8 @@ "semver": "^7.6.0", "sinon": "^17.0.1", "tsx": "^4.7.2", - "typescript-eslint": "^7.6.0" + "typescript-eslint": "^7.6.0", + "unzip-stream": "^0.3.1" }, "engines": { "node": "^18.14.2 || ^20.11.0 || >=21.2.0", @@ -4225,6 +4226,19 @@ "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, + "node_modules/binary": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/binary/-/binary-0.3.0.tgz", + "integrity": "sha512-D4H1y5KYwpJgK8wk1Cue5LLPgmwHKYSChkbspQg5JtVuR5ulGckxfR62H3AE9UDkdMC8yyXlqYihuz3Aqg2XZg==", + "dev": true, + "dependencies": { + "buffers": "~0.1.1", + "chainsaw": "~0.1.0" + }, + "engines": { + "node": "*" + } + }, "node_modules/binary-extensions": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", @@ -4341,6 +4355,15 @@ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" }, + "node_modules/buffers": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/buffers/-/buffers-0.1.1.tgz", + "integrity": "sha512-9q/rDEGSb/Qsvv2qvzIzdluL5k7AaJOTrw23z9reQthrbF7is4CtlT0DXyO1oei2DCp4uojjzQ7igaSHp1kAEQ==", + "dev": true, + "engines": { + "node": ">=0.2.0" + } + }, "node_modules/builtins": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/builtins/-/builtins-5.1.0.tgz", @@ -4569,6 +4592,18 @@ "node": ">=12.19" } }, + "node_modules/chainsaw": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/chainsaw/-/chainsaw-0.1.0.tgz", + "integrity": "sha512-75kWfWt6MEKNC8xYXIdRpDehRYY/tNSgwKaJq+dbbDcxORuVrrQ+SEHoWsniVn9XPYfP4gmdWIeDk/4YNp1rNQ==", + "dev": true, + "dependencies": { + "traverse": ">=0.3.0 <0.4" + }, + "engines": { + "node": "*" + } + }, "node_modules/chalk": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", @@ -12492,6 +12527,15 @@ "node": ">=8.0" } }, + "node_modules/traverse": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.3.9.tgz", + "integrity": "sha512-iawgk0hLP3SxGKDfnDJf8wTz4p2qImnyihM5Hh/sGvQ3K37dPi/w8sRhdNIxYA1TwFwc5mDhIJq+O0RsvXBKdQ==", + "dev": true, + "engines": { + "node": "*" + } + }, "node_modules/treeverse": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/treeverse/-/treeverse-3.0.0.tgz", @@ -12811,6 +12855,28 @@ "node": ">= 10.0.0" } }, + "node_modules/unzip-stream": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/unzip-stream/-/unzip-stream-0.3.1.tgz", + "integrity": "sha512-RzaGXLNt+CW+T41h1zl6pGz3EaeVhYlK+rdAap+7DxW5kqsqePO8kRtWPaCiVqdhZc86EctSPVYNix30YOMzmw==", + "dev": true, + "dependencies": { + "binary": "^0.3.0", + "mkdirp": "^0.5.1" + } + }, + "node_modules/unzip-stream/node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dev": true, + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, "node_modules/update-browserslist-db": { "version": "1.0.13", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index 3e856763..3fd4c5c9 100644 --- a/scripts/metadataProvider/createPseudoModulesInfo.ts +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -1,9 +1,12 @@ import {pipeline} from "node:stream/promises"; import {Extract} from "unzip-stream"; import MetadataProvider from "./MetadataProvider.js"; -import {writeFile} from "node:fs/promises"; +import {writeFile, readdir} from "node:fs/promises"; +import {createRequire} from "module"; +const require = createRequire(import.meta.url); import type {UI5Enum, UI5EnumValue} from "@ui5-language-assistant/semantic-model-types"; +import path from "node:path"; const RAW_API_JSON_FILES_FOLDER = "tmp/apiJson"; @@ -20,13 +23,35 @@ async function downloadAPIJsons(url: string) { } } +async function extractPseudoModuleNames() { + const apiJsonList = await readdir(RAW_API_JSON_FILES_FOLDER); + + return apiJsonList.flatMap((library) => { + const libApiJson = require(path.resolve(RAW_API_JSON_FILES_FOLDER, library)); + return libApiJson.symbols; + }).reduce((acc: Record, symbol) => { + if (symbol.kind === "enum" && symbol.resource.endsWith("library.js")) { + acc[symbol.name] = true; + } + + return acc; + }, Object.create(null) as Record); +} + async function transformFiles() { const metadataProvider = new MetadataProvider(); - await metadataProvider.init(RAW_API_JSON_FILES_FOLDER); + await metadataProvider.init(RAW_API_JSON_FILES_FOLDER, "1.120.12" /** TODO: Extract it from URL */); + + const pseudoModuleNames = await extractPseudoModuleNames(); const {enums} = metadataProvider.getModel(); const groupedEnums = Object.keys(enums).reduce((acc: Record, enumKey: string) => { + // Filter only real pseudo modules i.e. defined within library.js files + if (!pseudoModuleNames[enumKey]) { + return acc; + } + const curEnum = enums[enumKey]; acc[curEnum.library] = acc[curEnum.library] ?? []; From bebeeeb471aec16f51a5a8930955a37bea50199f Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Mon, 8 Apr 2024 15:27:33 +0300 Subject: [PATCH 08/33] refactor: Export imports from library.json --- .../createPseudoModulesInfo.ts | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index 3fd4c5c9..f67dc149 100644 --- a/scripts/metadataProvider/createPseudoModulesInfo.ts +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -25,9 +25,17 @@ async function downloadAPIJsons(url: string) { async function extractPseudoModuleNames() { const apiJsonList = await readdir(RAW_API_JSON_FILES_FOLDER); - + + interface apiJSON { + symbols: { + name: string; + kind: string; + resource: string; + }; + } + return apiJsonList.flatMap((library) => { - const libApiJson = require(path.resolve(RAW_API_JSON_FILES_FOLDER, library)); + const libApiJson = require(path.resolve(RAW_API_JSON_FILES_FOLDER, library)) as apiJSON; return libApiJson.symbols; }).reduce((acc: Record, symbol) => { if (symbol.kind === "enum" && symbol.resource.endsWith("library.js")) { @@ -118,14 +126,12 @@ async function addOverrides(enums: Record) { } stringBuilder.push(`declare module "${libName.replaceAll(".", "/")}/${enumEntry.name}" {`); + + stringBuilder.push(`\timport ${enumEntry.name} from "${libName.replaceAll(".", "/")}/library";`); stringBuilder.push(""); stringBuilder.push(buildJSDoc(enumEntry, "\t")); - stringBuilder.push(`\texport enum ${enumEntry.name} {`); - enumEntry.fields.forEach((value) => { - stringBuilder.push(buildJSDoc(value, "\t\t")); - stringBuilder.push(`\t\t${value.name} = "${value.name}",`); - }); - stringBuilder.push(`\t}`); + stringBuilder.push(`\texport default ${enumEntry.name};`); + stringBuilder.push(`}`); stringBuilder.push(""); From 61f0b3f4f21ce1470027c9742a6df5ca61fec7e9 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Mon, 8 Apr 2024 15:35:39 +0300 Subject: [PATCH 09/33] feat: Add generated definitions --- resources/overrides/library/index.d.ts | 33 + resources/overrides/library/sap.ca.ui.d.ts | 35 + resources/overrides/library/sap.chart.d.ts | 87 ++ .../overrides/library/sap.collaboration.d.ts | 32 + resources/overrides/library/sap.f.d.ts | 91 ++ resources/overrides/library/sap.gantt.d.ts | 326 +++++ resources/overrides/library/sap.m.d.ts | 1206 +++++++++++++++++ resources/overrides/library/sap.makit.d.ts | 63 + resources/overrides/library/sap.me.d.ts | 38 + resources/overrides/library/sap.rules.ui.d.ts | 56 + .../library/sap.suite.ui.commons.d.ts | 710 ++++++++++ .../sap.suite.ui.generic.template.d.ts | 10 + .../library/sap.suite.ui.microchart.d.ts | 83 ++ resources/overrides/library/sap.tnt.d.ts | 10 + .../overrides/library/sap.ui.commons.d.ts | 288 ++++ resources/overrides/library/sap.ui.comp.d.ts | 327 +++++ resources/overrides/library/sap.ui.core.d.ts | 346 +++++ .../overrides/library/sap.ui.export.d.ts | 23 + .../overrides/library/sap.ui.generic.app.d.ts | 35 + .../overrides/library/sap.ui.integration.d.ts | 99 ++ .../overrides/library/sap.ui.layout.d.ts | 127 ++ resources/overrides/library/sap.ui.mdc.d.ts | 128 ++ .../library/sap.ui.richtexteditor.d.ts | 10 + resources/overrides/library/sap.ui.suite.d.ts | 10 + .../overrides/library/sap.ui.support.d.ts | 59 + resources/overrides/library/sap.ui.table.d.ts | 104 ++ .../overrides/library/sap.ui.unified.d.ts | 108 ++ resources/overrides/library/sap.ui.ux3.d.ts | 112 ++ resources/overrides/library/sap.ui.vbm.d.ts | 32 + .../overrides/library/sap.ui.webc.fiori.d.ts | 207 +++ .../overrides/library/sap.ui.webc.main.d.ts | 584 ++++++++ resources/overrides/library/sap.ushell.d.ts | 21 + resources/overrides/library/sap.uxap.d.ts | 77 ++ resources/overrides/library/sap.viz.d.ts | 737 ++++++++++ 34 files changed, 6214 insertions(+) create mode 100644 resources/overrides/library/index.d.ts create mode 100644 resources/overrides/library/sap.ca.ui.d.ts create mode 100644 resources/overrides/library/sap.chart.d.ts create mode 100644 resources/overrides/library/sap.collaboration.d.ts create mode 100644 resources/overrides/library/sap.f.d.ts create mode 100644 resources/overrides/library/sap.gantt.d.ts create mode 100644 resources/overrides/library/sap.m.d.ts create mode 100644 resources/overrides/library/sap.makit.d.ts create mode 100644 resources/overrides/library/sap.me.d.ts create mode 100644 resources/overrides/library/sap.rules.ui.d.ts create mode 100644 resources/overrides/library/sap.suite.ui.commons.d.ts create mode 100644 resources/overrides/library/sap.suite.ui.generic.template.d.ts create mode 100644 resources/overrides/library/sap.suite.ui.microchart.d.ts create mode 100644 resources/overrides/library/sap.tnt.d.ts create mode 100644 resources/overrides/library/sap.ui.commons.d.ts create mode 100644 resources/overrides/library/sap.ui.comp.d.ts create mode 100644 resources/overrides/library/sap.ui.core.d.ts create mode 100644 resources/overrides/library/sap.ui.export.d.ts create mode 100644 resources/overrides/library/sap.ui.generic.app.d.ts create mode 100644 resources/overrides/library/sap.ui.integration.d.ts create mode 100644 resources/overrides/library/sap.ui.layout.d.ts create mode 100644 resources/overrides/library/sap.ui.mdc.d.ts create mode 100644 resources/overrides/library/sap.ui.richtexteditor.d.ts create mode 100644 resources/overrides/library/sap.ui.suite.d.ts create mode 100644 resources/overrides/library/sap.ui.support.d.ts create mode 100644 resources/overrides/library/sap.ui.table.d.ts create mode 100644 resources/overrides/library/sap.ui.unified.d.ts create mode 100644 resources/overrides/library/sap.ui.ux3.d.ts create mode 100644 resources/overrides/library/sap.ui.vbm.d.ts create mode 100644 resources/overrides/library/sap.ui.webc.fiori.d.ts create mode 100644 resources/overrides/library/sap.ui.webc.main.d.ts create mode 100644 resources/overrides/library/sap.ushell.d.ts create mode 100644 resources/overrides/library/sap.uxap.d.ts create mode 100644 resources/overrides/library/sap.viz.d.ts diff --git a/resources/overrides/library/index.d.ts b/resources/overrides/library/index.d.ts new file mode 100644 index 00000000..2d0c5cd0 --- /dev/null +++ b/resources/overrides/library/index.d.ts @@ -0,0 +1,33 @@ +import "./sap.ca.ui"; +import "./sap.chart"; +import "./sap.collaboration"; +import "./sap.f"; +import "./sap.gantt"; +import "./sap.m"; +import "./sap.makit"; +import "./sap.me"; +import "./sap.rules.ui"; +import "./sap.suite.ui.commons"; +import "./sap.suite.ui.generic.template"; +import "./sap.suite.ui.microchart"; +import "./sap.tnt"; +import "./sap.ui.commons"; +import "./sap.ui.comp"; +import "./sap.ui.core"; +import "./sap.ui.export"; +import "./sap.ui.generic.app"; +import "./sap.ui.integration"; +import "./sap.ui.layout"; +import "./sap.ui.mdc"; +import "./sap.ui.richtexteditor"; +import "./sap.ui.suite"; +import "./sap.ui.support"; +import "./sap.ui.table"; +import "./sap.ui.unified"; +import "./sap.ui.ux3"; +import "./sap.ui.vbm"; +import "./sap.ui.webc.fiori"; +import "./sap.ui.webc.main"; +import "./sap.ushell"; +import "./sap.uxap"; +import "./sap.viz"; \ No newline at end of file diff --git a/resources/overrides/library/sap.ca.ui.d.ts b/resources/overrides/library/sap.ca.ui.d.ts new file mode 100644 index 00000000..6e79e140 --- /dev/null +++ b/resources/overrides/library/sap.ca.ui.d.ts @@ -0,0 +1,35 @@ +declare module "sap/ca/ui/ChartColor" { + import ChartColor from "sap/ca/ui/library"; + + /** + * Enumeration of available color to be used in sap.ca.ui charts. + * + * @deprecated (since 1.24) - Sap.ca charts have been replaced with sap.viz and VizFrame in 1.24. The UI5 control "sap.viz.ui5.controls.VizFrame" serves as a single point of entry for all the new charts. Now that 1.24 is available you are asked to use sap.viz charts and the VizFrame instead! This control will not be supported anymore from 1.24. + * @public + */ + export default ChartColor; +} + +declare module "sap/ca/ui/ChartSelectionMode" { + import ChartSelectionMode from "sap/ca/ui/library"; + + /** + * Determines the selection mode of a Chart. + * + * @deprecated (since 1.24) - Sap.ca charts have been replaced with sap.viz and VizFrame in 1.24. The UI5 control "sap.viz.ui5.controls.VizFrame" serves as a single point of entry for all the new charts. Now that 1.24 is available you are asked to use sap.viz charts and the VizFrame instead! This control will not be supported anymore from 1.24. + * @public + */ + export default ChartSelectionMode; +} + +declare module "sap/ca/ui/ChartSemanticColor" { + import ChartSemanticColor from "sap/ca/ui/library"; + + /** + * Enumeration of available semantic color to be used in sap.Ca.ui + * + * @deprecated (since 1.24) - Sap.ca charts have been replaced with sap.viz and VizFrame in 1.24. The UI5 control "sap.viz.ui5.controls.VizFrame" serves as a single point of entry for all the new charts. Now that 1.24 is available you are asked to use sap.viz charts and the VizFrame instead! This control will not be supported anymore from 1.24. + * @public + */ + export default ChartSemanticColor; +} diff --git a/resources/overrides/library/sap.chart.d.ts b/resources/overrides/library/sap.chart.d.ts new file mode 100644 index 00000000..7346f12c --- /dev/null +++ b/resources/overrides/library/sap.chart.d.ts @@ -0,0 +1,87 @@ +declare module "sap/chart/GradationDivergingColorScheme" { + import GradationDivergingColorScheme from "sap/chart/library"; + + /** + * Enumeration for supported Gradation diverging color scheme in analytical chart + * + * @public + */ + export default GradationDivergingColorScheme; +} + +declare module "sap/chart/GradationSaturation" { + import GradationSaturation from "sap/chart/library"; + + /** + * Enumeration for supported Gradation color saturation in analytical chart + * + * @public + */ + export default GradationSaturation; +} + +declare module "sap/chart/GradationSingleColorScheme" { + import GradationSingleColorScheme from "sap/chart/library"; + + /** + * Enumeration for supported Gradation single color scheme in analytical chart + * + * @public + */ + export default GradationSingleColorScheme; +} + +declare module "sap/chart/GradationTargetColorScheme" { + import GradationTargetColorScheme from "sap/chart/library"; + + /** + * Enumeration for supported Gradation target color scheme in analytical chart + * + * @public + */ + export default GradationTargetColorScheme; +} + +declare module "sap/chart/ImprovementDirectionType" { + import ImprovementDirectionType from "sap/chart/library"; + + /** + * Enumeration for supported ImprovementDirection types in analytical chart + * + * @public + */ + export default ImprovementDirectionType; +} + +declare module "sap/chart/MessageId" { + import MessageId from "sap/chart/library"; + + /** + * Enumeration for supported message types in analytical chart. + * + * @public + */ + export default MessageId; +} + +declare module "sap/chart/SelectionBehavior" { + import SelectionBehavior from "sap/chart/library"; + + /** + * Enumeration for supported selection behavior in analytical chart + * + * @public + */ + export default SelectionBehavior; +} + +declare module "sap/chart/SelectionMode" { + import SelectionMode from "sap/chart/library"; + + /** + * Enumeration for supported selection mode in analytical chart + * + * @public + */ + export default SelectionMode; +} diff --git a/resources/overrides/library/sap.collaboration.d.ts b/resources/overrides/library/sap.collaboration.d.ts new file mode 100644 index 00000000..2d8acbdc --- /dev/null +++ b/resources/overrides/library/sap.collaboration.d.ts @@ -0,0 +1,32 @@ +declare module "sap/collaboration/AppType" { + import AppType from "sap/collaboration/library"; + + /** + * Application Type (Mode) + * + * @public + */ + export default AppType; +} + +declare module "sap/collaboration/DisplayFeedType" { + import DisplayFeedType from "sap/collaboration/library"; + + /** + * Feed Types to be displayed by the Social Timeline + * + * @public + */ + export default DisplayFeedType; +} + +declare module "sap/collaboration/FeedType" { + import FeedType from "sap/collaboration/library"; + + /** + * Feed Types + * + * @public + */ + export default FeedType; +} diff --git a/resources/overrides/library/sap.f.d.ts b/resources/overrides/library/sap.f.d.ts new file mode 100644 index 00000000..c1088af8 --- /dev/null +++ b/resources/overrides/library/sap.f.d.ts @@ -0,0 +1,91 @@ +declare module "sap/f/AvatarGroupType" { + import AvatarGroupType from "sap/f/library"; + + /** + * Group modes for the {@link sap.f.AvatarGroup} control. + * + * @experimental (since 1.73) + * @public + * @since 1.73 + */ + export default AvatarGroupType; +} + +declare module "sap/f/HeaderPosition" { + import HeaderPosition from "sap/f/library"; + + /** + * Different options for the position of the header in controls that implement the {@link sap.f.ICard} interface. + * + * @public + * @since 1.65 + */ + export default HeaderPosition; +} + +declare module "sap/f/NumericHeaderSideIndicatorsAlignment" { + import NumericHeaderSideIndicatorsAlignment from "sap/f/library"; + + /** + * Different options for the alignment of the side indicators in the numeric header. + * + * @public + * @since 1.96 + */ + export default NumericHeaderSideIndicatorsAlignment; +} + +declare module "sap/f/DynamicPageTitleArea" { + import DynamicPageTitleArea from "sap/f/library"; + + /** + * Defines the areas within the sap.f.DynamicPageTitle control. + * + * @deprecated (since 1.54) - Consumers of the {@link sap.f.DynamicPageTitle} control should now use the areaShrinkRatio property instead of the primaryArea property. + * @public + * @since 1.50 + */ + export default DynamicPageTitleArea; +} + +declare module "sap/f/LayoutType" { + import LayoutType from "sap/f/library"; + + /** + * Layouts, representing the number of columns to be displayed and their relative widths for a {@link sap.f.FlexibleColumnLayout} control. + * + * Each layout has a predefined ratio for the three columns, depending on device size. Based on the device and layout, some columns are hidden. For more information, refer to the ratios (in %) for each value, listed below: (dash "-" means non-accessible columns). + * + * Note: Please note that on a phone device, due to the limited screen size, only one column can be displayed at a time. For all two-column layouts, this column is the Mid column, and for all three-column layouts - the End column, even though the respective column may be hidden on desktop and tablet for that particular layout. Therefore some of the names (such as ThreeColumnsMidExpandedEndHidden for example) are representative of the desktop scenario only. + * + * For more information, see {@link topic:3b9f760da5b64adf8db7f95247879086 Types of Layout} in the documentation. + * + * @public + * @since 1.46 + */ + export default LayoutType; +} + +declare module "sap/f/NavigationDirection" { + import NavigationDirection from "sap/f/library"; + + /** + * Enumeration for different navigation directions. + * + * @public + * @since 1.85 + */ + export default NavigationDirection; +} + +declare module "sap/f/SidePanelPosition" { + import SidePanelPosition from "sap/f/library"; + + /** + * Enumeration for different SidePanel position. + * + * @public + * @since 1.104 + */ + export default SidePanelPosition; +} diff --git a/resources/overrides/library/sap.gantt.d.ts b/resources/overrides/library/sap.gantt.d.ts new file mode 100644 index 00000000..a072a9ad --- /dev/null +++ b/resources/overrides/library/sap.gantt.d.ts @@ -0,0 +1,326 @@ +declare module "sap/gantt/AdhocLineLayer" { + import AdhocLineLayer from "sap/gantt/library"; + + /** + * The layer of adhoc line in chart area + * + * @public + */ + export default AdhocLineLayer; +} + +declare module "sap/gantt/BirdEyeRange" { + import BirdEyeRange from "sap/gantt/library"; + + /** + * Define the range of data that bird eye would use to calculate visibleHorizon + * + * @public + */ + export default BirdEyeRange; +} + +declare module "sap/gantt/FindMode" { + import FindMode from "sap/gantt/library"; + + /** + * Defines the control where find and select search box will appear + * + * @public + */ + export default FindMode; +} + +declare module "sap/gantt/TimeUnit" { + import TimeUnit from "sap/gantt/library"; + + /** + * Different time units used as part of the zoom level. They are names of d3 time unit classes. + * + * @public + */ + export default TimeUnit; +} + +declare module "sap/gantt/ZoomControlType" { + import ZoomControlType from "sap/gantt/library"; + + /** + * Define the type of zoom control in global tool bar + * + * @public + */ + export default ZoomControlType; +} + +declare module "sap/gantt/ColorMatrixValue" { + import ColorMatrixValue from "sap/gantt/library"; + + /** + * Color Matrix Values. + * + * The matrix decides what target color from source color. + * + * @public + */ + export default ColorMatrixValue; +} + +declare module "sap/gantt/MorphologyOperator" { + import MorphologyOperator from "sap/gantt/library"; + + /** + * Morphology Operators. + * + * The operator decides the morphology to make the shape fatter or slimmer. + * + * @public + */ + export default MorphologyOperator; +} + +declare module "sap/gantt/DeltaLineLayer" { + import DeltaLineLayer from "sap/gantt/library"; + + /** + * The layer of delta line in chart area + * + * @public + * @since 1.84 + */ + export default DeltaLineLayer; +} + +declare module "sap/gantt/GhostAlignment" { + import GhostAlignment from "sap/gantt/library"; + + /** + * Defines how Gantt Chart aligns a draggable shape to the mouse pointer before dragging. + * + * @public + */ + export default GhostAlignment; +} + +declare module "sap/gantt/SnapMode" { + import SnapMode from "sap/gantt/library"; + + /** + * Defines the side of the shape that gets attached to the nearest visual element. + * + * @public + * @since 1.91 + */ + export default SnapMode; +} + +declare module "sap/gantt/DragOrientation" { + import DragOrientation from "sap/gantt/library"; + + /** + * Defines how dragged ghost moves when dragging. + * + * @public + */ + export default DragOrientation; +} + +declare module "sap/gantt/MouseWheelZoomType" { + import MouseWheelZoomType from "sap/gantt/library"; + + /** + * Different zoom type for mouse wheel zooming + * + * @public + */ + export default MouseWheelZoomType; +} + +declare module "sap/gantt/SelectionMode" { + import SelectionMode from "sap/gantt/library"; + + /** + * Different selection mode for GanttChart + * + * @public + */ + export default SelectionMode; +} + +declare module "sap/gantt/RelationshipType" { + import RelationshipType from "sap/gantt/library"; + + /** + * Type of relationships + * + * @public + */ + export default RelationshipType; +} + +declare module "sap/gantt/ShapeCategory" { + import ShapeCategory from "sap/gantt/library"; + + /** + * Shape Categories. + * + * Different categories use different Drawers. Therefore, different categories may have different designs of parameters in their getter methods. + * + * @public + */ + export default ShapeCategory; +} + +declare module "sap/gantt/connectorType" { + import connectorType from "sap/gantt/library"; + + /** + * Type connector shapes for relationship + * + * @public + * @since 1.86 + */ + export default connectorType; +} + +declare module "sap/gantt/ContainerToolbarPlaceholderType" { + import ContainerToolbarPlaceholderType from "sap/gantt/library"; + + /** + * Toolbar placeholders for a Gantt chart container. + * + * @public + */ + export default ContainerToolbarPlaceholderType; +} + +declare module "sap/gantt/findByOperator" { + import findByOperator from "sap/gantt/library"; + + /** + * Defines the relationship between the operator and the property names using the findAll method + * + * @public + * @since 1.100 + */ + export default findByOperator; +} + +declare module "sap/gantt/GanttChartWithTableDisplayType" { + import GanttChartWithTableDisplayType from "sap/gantt/library"; + + /** + * Gantt chart display types. + * + * @public + */ + export default GanttChartWithTableDisplayType; +} + +declare module "sap/gantt/horizontalTextAlignment" { + import horizontalTextAlignment from "sap/gantt/library"; + + /** + * Configuration options for horizontal alignment of title of the shape representing a Task. + * + * @public + * @since 1.81 + */ + export default horizontalTextAlignment; +} + +declare module "sap/gantt/relationshipShapeSize" { + import relationshipShapeSize from "sap/gantt/library"; + + /** + * Size of shapes in the relationship + * + * @public + * @since 1.96 + */ + export default relationshipShapeSize; +} + +declare module "sap/gantt/RelationshipType" { + import RelationshipType from "sap/gantt/library"; + + /** + * Type of relationship shape. sap.gantt.simple.RelationshipType shall be used to define property type on class sap.gantt.simple.Relationship + * + * @public + * @since 1.60.0 + */ + export default RelationshipType; +} + +declare module "sap/gantt/ShapeAlignment" { + import ShapeAlignment from "sap/gantt/library"; + + /** + * Configuration options for vertical alignment of shape representing a Task. This is only applicable for Tasks. + * + * @public + * @since 1.81 + */ + export default ShapeAlignment; +} + +declare module "sap/gantt/TaskType" { + import TaskType from "sap/gantt/library"; + + /** + * Type of task shape. + * + * @public + * @since 1.69 + */ + export default TaskType; +} + +declare module "sap/gantt/verticalTextAlignment" { + import verticalTextAlignment from "sap/gantt/library"; + + /** + * Configuration options for vertical alignment of title of the shape representing a Task. + * + * @public + * @since 1.81 + */ + export default verticalTextAlignment; +} + +declare module "sap/gantt/VisibleHorizonUpdateSubType" { + import VisibleHorizonUpdateSubType from "sap/gantt/library"; + + /** + * This specifies the sub reason detailing why the visible horizon is changing + * + * @public + * @since 1.100 + */ + export default VisibleHorizonUpdateSubType; +} + +declare module "sap/gantt/VisibleHorizonUpdateType" { + import VisibleHorizonUpdateType from "sap/gantt/library"; + + /** + * This type specifies the reason why visible horizon is changing. + * + * @public + * @since 1.68 + */ + export default VisibleHorizonUpdateType; +} + +declare module "sap/gantt/yAxisColumnContent" { + import yAxisColumnContent from "sap/gantt/library"; + + /** + * Configaration option for yAxis Column. + * + * @public + * @since 1.102 + */ + export default yAxisColumnContent; +} diff --git a/resources/overrides/library/sap.m.d.ts b/resources/overrides/library/sap.m.d.ts new file mode 100644 index 00000000..23d0da87 --- /dev/null +++ b/resources/overrides/library/sap.m.d.ts @@ -0,0 +1,1206 @@ +declare module "sap/m/BackgroundDesign" { + import BackgroundDesign from "sap/m/library"; + + /** + * Available Background Design. + * + * @public + */ + export default BackgroundDesign; +} + +declare module "sap/m/BadgeAnimationType" { + import BadgeAnimationType from "sap/m/library"; + + /** + * Types of animation performed by {@link sap.m.BadgeEnabler}. + * + * @public + * @since 1.87 + */ + export default BadgeAnimationType; +} + +declare module "sap/m/BadgeState" { + import BadgeState from "sap/m/library"; + + /** + * Types of state of {@link sap.m.BadgeEnabler} to expose its current state. + * + * @public + * @since 1.81 + */ + export default BadgeState; +} + +declare module "sap/m/BarDesign" { + import BarDesign from "sap/m/library"; + + /** + * Types of the Bar design. + * + * @public + * @since 1.20 + */ + export default BarDesign; +} + +declare module "sap/m/BorderDesign" { + import BorderDesign from "sap/m/library"; + + /** + * Available Border Design. + * + * @public + */ + export default BorderDesign; +} + +declare module "sap/m/BreadcrumbsSeparatorStyle" { + import BreadcrumbsSeparatorStyle from "sap/m/library"; + + /** + * Variations of the {@link sap.m.Breadcrumbs} separators. + * + * @public + * @since 1.69 + */ + export default BreadcrumbsSeparatorStyle; +} + +declare module "sap/m/ButtonAccessibleRole" { + import ButtonAccessibleRole from "sap/m/library"; + + /** + * Enumeration for possible Button accessibility roles. + * + * @public + * @since 1.114.0 + */ + export default ButtonAccessibleRole; +} + +declare module "sap/m/ButtonType" { + import ButtonType from "sap/m/library"; + + /** + * Different predefined button types for the {@link sap.m.Button sap.m.Button}. + * + * @public + */ + export default ButtonType; +} + +declare module "sap/m/CarouselArrowsPlacement" { + import CarouselArrowsPlacement from "sap/m/library"; + + /** + * Carousel arrows align. + * + * @public + */ + export default CarouselArrowsPlacement; +} + +declare module "sap/m/DateTimeInputType" { + import DateTimeInputType from "sap/m/library"; + + /** + * A subset of DateTimeInput types that fit to a simple API returning one string. + * + * @deprecated (since 1.32.8) - Instead, use dedicated sap.m.DatePicker and/or sap.m.TimePicker controls. + * @public + */ + export default DateTimeInputType; +} + +declare module "sap/m/DeviationIndicator" { + import DeviationIndicator from "sap/m/library"; + + /** + * Enum of the available deviation markers for the NumericContent control. + * + * @public + * @since 1.34 + */ + export default DeviationIndicator; +} + +declare module "sap/m/DialogRoleType" { + import DialogRoleType from "sap/m/library"; + + /** + * Enum for the ARIA role of {@link sap.m.Dialog} control. + * + * @public + * @since 1.65 + */ + export default DialogRoleType; +} + +declare module "sap/m/DialogType" { + import DialogType from "sap/m/library"; + + /** + * Enum for the type of {@link sap.m.Dialog} control. + * + * @public + */ + export default DialogType; +} + +declare module "sap/m/DraftIndicatorState" { + import DraftIndicatorState from "sap/m/library"; + + /** + * Enum for the state of {@link sap.m.DraftIndicator} control. + * + * @public + */ + export default DraftIndicatorState; +} + +declare module "sap/m/DynamicDateRangeGroups" { + import DynamicDateRangeGroups from "sap/m/library"; + + /** + * Defines the groups in {@link sap.m.DynamicDateRange}. + * + * @public + * @since 1.118 + */ + export default DynamicDateRangeGroups; +} + +declare module "sap/m/EmptyIndicatorMode" { + import EmptyIndicatorMode from "sap/m/library"; + + /** + * Modes in which a control will render empty indicator if its content is empty. + * + * @public + * @since 1.87 + */ + export default EmptyIndicatorMode; +} + +declare module "sap/m/ExpandableTextOverflowMode" { + import ExpandableTextOverflowMode from "sap/m/library"; + + /** + * Expandable text overflow mode + * + * @public + */ + export default ExpandableTextOverflowMode; +} + +declare module "sap/m/FacetFilterListDataType" { + import FacetFilterListDataType from "sap/m/library"; + + /** + * FacetFilterList data types. + * + * @public + */ + export default FacetFilterListDataType; +} + +declare module "sap/m/FacetFilterType" { + import FacetFilterType from "sap/m/library"; + + /** + * Used by the FacetFilter control to adapt its design according to type. + * + * @public + */ + export default FacetFilterType; +} + +declare module "sap/m/FlexAlignContent" { + import FlexAlignContent from "sap/m/library"; + + /** + * Available options for the layout of container lines along the cross axis of the flexbox layout. + * + * @public + */ + export default FlexAlignContent; +} + +declare module "sap/m/FlexAlignItems" { + import FlexAlignItems from "sap/m/library"; + + /** + * Available options for the layout of all elements along the cross axis of the flexbox layout. + * + * @public + */ + export default FlexAlignItems; +} + +declare module "sap/m/FlexAlignSelf" { + import FlexAlignSelf from "sap/m/library"; + + /** + * Available options for the layout of individual elements along the cross axis of the flexbox layout overriding the default alignment. + * + * @public + */ + export default FlexAlignSelf; +} + +declare module "sap/m/FlexDirection" { + import FlexDirection from "sap/m/library"; + + /** + * Available directions for flex layouts. + * + * @public + */ + export default FlexDirection; +} + +declare module "sap/m/FlexJustifyContent" { + import FlexJustifyContent from "sap/m/library"; + + /** + * Available options for the layout of elements along the main axis of the flexbox layout. + * + * @public + */ + export default FlexJustifyContent; +} + +declare module "sap/m/FlexRendertype" { + import FlexRendertype from "sap/m/library"; + + /** + * Determines the type of HTML elements used for rendering controls. + * + * @public + */ + export default FlexRendertype; +} + +declare module "sap/m/FlexWrap" { + import FlexWrap from "sap/m/library"; + + /** + * Available options for the wrapping behavior of a flex container. + * + * @public + */ + export default FlexWrap; +} + +declare module "sap/m/FrameType" { + import FrameType from "sap/m/library"; + + /** + * Enum for possible frame size types for sap.m.TileContent and sap.m.GenericTile control. + * + * @public + * @since 1.34.0 + */ + export default FrameType; +} + +declare module "sap/m/GenericTagDesign" { + import GenericTagDesign from "sap/m/library"; + + /** + * Design modes for the GenericTag control. + * + * @public + * @since 1.62.0 + */ + export default GenericTagDesign; +} + +declare module "sap/m/GenericTagValueState" { + import GenericTagValueState from "sap/m/library"; + + /** + * Value states for the GenericTag control. + * + * @public + * @since 1.62.0 + */ + export default GenericTagValueState; +} + +declare module "sap/m/GenericTileMode" { + import GenericTileMode from "sap/m/library"; + + /** + * Defines the mode of GenericTile. + * + * @public + * @since 1.38.0 + */ + export default GenericTileMode; +} + +declare module "sap/m/GenericTileScope" { + import GenericTileScope from "sap/m/library"; + + /** + * Defines the scopes of GenericTile enabling the developer to implement different "flavors" of tiles. + * + * @public + * @since 1.46.0 + */ + export default GenericTileScope; +} + +declare module "sap/m/HeaderLevel" { + import HeaderLevel from "sap/m/library"; + + /** + * Different levels for headers. + * + * @public + */ + export default HeaderLevel; +} + +declare module "sap/m/IBarHTMLTag" { + import IBarHTMLTag from "sap/m/library"; + + /** + * Allowed tags for the implementation of the IBar interface. + * + * @public + * @since 1.22 + */ + export default IBarHTMLTag; +} + +declare module "sap/m/IconTabDensityMode" { + import IconTabDensityMode from "sap/m/library"; + + /** + * Specifies IconTabBar tab density mode. + * + * @public + */ + export default IconTabDensityMode; +} + +declare module "sap/m/IconTabFilterDesign" { + import IconTabFilterDesign from "sap/m/library"; + + /** + * Available Filter Item Design. + * + * @public + */ + export default IconTabFilterDesign; +} + +declare module "sap/m/IconTabHeaderMode" { + import IconTabHeaderMode from "sap/m/library"; + + /** + * Specifies IconTabBar header mode. + * + * @public + */ + export default IconTabHeaderMode; +} + +declare module "sap/m/ImageMode" { + import ImageMode from "sap/m/library"; + + /** + * Determines how the source image is used on the output DOM element. + * + * @public + * @since 1.30.0 + */ + export default ImageMode; +} + +declare module "sap/m/InputTextFormatMode" { + import InputTextFormatMode from "sap/m/library"; + + /** + * Defines how the input display text should be formatted. + * + * @public + * @since 1.44.0 + */ + export default InputTextFormatMode; +} + +declare module "sap/m/InputType" { + import InputType from "sap/m/library"; + + /** + * A subset of input types that fits to a simple API returning one string. + * + * Not available on purpose: button, checkbox, hidden, image, password, radio, range, reset, search, submit. + * + * @public + */ + export default InputType; +} + +declare module "sap/m/LabelDesign" { + import LabelDesign from "sap/m/library"; + + /** + * Available label display modes. + * + * @public + */ + export default LabelDesign; +} + +declare module "sap/m/LightBoxLoadingStates" { + import LightBoxLoadingStates from "sap/m/library"; + + /** + * Types of LightBox loading stages. + * + * @public + * @since 1.40 + */ + export default LightBoxLoadingStates; +} + +declare module "sap/m/LinkAccessibleRole" { + import LinkAccessibleRole from "sap/m/library"; + + /** + * Enumeration for possible Link accessibility roles. + * + * @public + * @since 1.104.0 + */ + export default LinkAccessibleRole; +} + +declare module "sap/m/LinkConversion" { + import LinkConversion from "sap/m/library"; + + /** + * Enumeration for possible link-to-anchor conversion strategy. + * + * @public + * @since 1.45.5 + */ + export default LinkConversion; +} + +declare module "sap/m/ListGrowingDirection" { + import ListGrowingDirection from "sap/m/library"; + + /** + * Defines the growing direction of the sap.m.List or sap.m.Table. + * + * @public + * @since 1.40.0 + */ + export default ListGrowingDirection; +} + +declare module "sap/m/ListHeaderDesign" { + import ListHeaderDesign from "sap/m/library"; + + /** + * Defines the different header styles. + * + * @deprecated (since 1.16) - Has no functionality since 1.16. + * @public + */ + export default ListHeaderDesign; +} + +declare module "sap/m/ListKeyboardMode" { + import ListKeyboardMode from "sap/m/library"; + + /** + * Defines the keyboard handling behavior of the sap.m.List or sap.m.Table. + * + * @public + * @since 1.38.0 + */ + export default ListKeyboardMode; +} + +declare module "sap/m/ListMode" { + import ListMode from "sap/m/library"; + + /** + * Defines the mode of the list. + * + * @public + */ + export default ListMode; +} + +declare module "sap/m/ListSeparators" { + import ListSeparators from "sap/m/library"; + + /** + * Defines which separator style will be applied for the items. + * + * @public + */ + export default ListSeparators; +} + +declare module "sap/m/ListType" { + import ListType from "sap/m/library"; + + /** + * Defines the visual indication and behaviour of the list items. + * + * @public + */ + export default ListType; +} + +declare module "sap/m/LoadState" { + import LoadState from "sap/m/library"; + + /** + * Enumeration of possible load statuses. + * + * @public + * @since 1.34.0 + */ + export default LoadState; +} + +declare module "sap/m/MenuButtonMode" { + import MenuButtonMode from "sap/m/library"; + + /** + * Different modes for a MenuButton (predefined types). + * + * @public + * @since 1.38.0 + */ + export default MenuButtonMode; +} + +declare module "sap/m/MultiSelectMode" { + import MultiSelectMode from "sap/m/library"; + + /** + * Enumeration of the multiSelectMode>/code> in ListBase. + * + * @public + * @since 1.93 + */ + export default MultiSelectMode; +} + +declare module "sap/m/ObjectHeaderPictureShape" { + import ObjectHeaderPictureShape from "sap/m/library"; + + /** + * Used by the ObjectHeader control to define which shape to use for the image. + * + * @public + * @since 1.61 + */ + export default ObjectHeaderPictureShape; +} + +declare module "sap/m/ObjectMarkerType" { + import ObjectMarkerType from "sap/m/library"; + + /** + * Predefined types for ObjectMarker. + * + * @public + */ + export default ObjectMarkerType; +} + +declare module "sap/m/ObjectMarkerVisibility" { + import ObjectMarkerVisibility from "sap/m/library"; + + /** + * Predefined visibility for ObjectMarker. + * + * @public + */ + export default ObjectMarkerVisibility; +} + +declare module "sap/m/OverflowToolbarPriority" { + import OverflowToolbarPriority from "sap/m/library"; + + /** + * Defines the priorities of the controls within {@link sap.m.OverflowToolbar}. + * + * @public + * @since 1.32 + */ + export default OverflowToolbarPriority; +} + +declare module "sap/m/P13nConditionOperation" { + import P13nConditionOperation from "sap/m/library"; + + /** + * @experimental (since 1.26) - !!! THIS TYPE IS ONLY FOR INTERNAL USE !!! + * @public + */ + export default P13nConditionOperation; +} + +declare module "sap/m/P13nPanelType" { + import P13nPanelType from "sap/m/library"; + + /** + * Type of panels used in the personalization dialog. + * + * @public + */ + export default P13nPanelType; +} + +declare module "sap/m/P13nPopupMode" { + import P13nPopupMode from "sap/m/library"; + + /** + * Type of popup used in the sap.m.p13n.Popup. + * + * @public + */ + export default P13nPopupMode; +} + +declare module "sap/m/PageBackgroundDesign" { + import PageBackgroundDesign from "sap/m/library"; + + /** + * Available Page Background Design. + * + * @public + */ + export default PageBackgroundDesign; +} + +declare module "sap/m/PanelAccessibleRole" { + import PanelAccessibleRole from "sap/m/library"; + + /** + * Available Panel Accessible Landmark Roles. + * + * @public + */ + export default PanelAccessibleRole; +} + +declare module "sap/m/PDFViewerDisplayType" { + import PDFViewerDisplayType from "sap/m/library"; + + /** + * PDF viewer display types. + * + * @public + */ + export default PDFViewerDisplayType; +} + +declare module "sap/m/PlacementType" { + import PlacementType from "sap/m/library"; + + /** + * Types for the placement of Popover control. + * + * @public + */ + export default PlacementType; +} + +declare module "sap/m/PlanningCalendarBuiltInView" { + import PlanningCalendarBuiltInView from "sap/m/library"; + + /** + * A list of the default built-in views in a {@link sap.m.PlanningCalendar}, described by their keys. + * + * @public + * @since 1.50 + */ + export default PlanningCalendarBuiltInView; +} + +declare module "sap/m/PlanningCalendarStickyMode" { + import PlanningCalendarStickyMode from "sap/m/library"; + + /** + * Available sticky modes for the {@link sap.m.SinglePlanningCalendar} + * + * @public + * @since 1.62 + */ + export default PlanningCalendarStickyMode; +} + +declare module "sap/m/CopyPreference" { + import CopyPreference from "sap/m/library"; + + /** + * Enumeration of the copyPreference in CopyProvider. Determines what is copied during a copy operation. + * + * @public + * @since 1.119 + */ + export default CopyPreference; +} + +declare module "sap/m/PopinDisplay" { + import PopinDisplay from "sap/m/library"; + + /** + * Defines the display of table pop-ins. + * + * @public + * @since 1.13.2 + */ + export default PopinDisplay; +} + +declare module "sap/m/PopinLayout" { + import PopinLayout from "sap/m/library"; + + /** + * Defines the layout options of the table popins. + * + * @public + * @since 1.52 + */ + export default PopinLayout; +} + +declare module "sap/m/Priority" { + import Priority from "sap/m/library"; + + /** + * Defines the priority for the TileContent in ActionMode + * + * @public + */ + export default Priority; +} + +declare module "sap/m/QuickViewGroupElementType" { + import QuickViewGroupElementType from "sap/m/library"; + + /** + * QuickViewGroupElement is a combination of one label and another control (Link or Text) associated to this label. + * + * @public + */ + export default QuickViewGroupElementType; +} + +declare module "sap/m/RatingIndicatorVisualMode" { + import RatingIndicatorVisualMode from "sap/m/library"; + + /** + * Possible values for the visualization of float values in the RatingIndicator control. + * + * @public + */ + export default RatingIndicatorVisualMode; +} + +declare module "sap/m/ResetAllMode" { + import ResetAllMode from "sap/m/library"; + + /** + * Enumeration of the ResetAllMode>/code> that can be used in a TablePersoController. + * + * @public + */ + export default ResetAllMode; +} + +declare module "sap/m/ScreenSize" { + import ScreenSize from "sap/m/library"; + + /** + * Breakpoint names for different screen sizes. + * + * @public + */ + export default ScreenSize; +} + +declare module "sap/m/SelectDialogInitialFocus" { + import SelectDialogInitialFocus from "sap/m/library"; + + /** + * Defines the control that will receive the initial focus in the sap.m.SelectDialog or sap.m.TableSelectDialog. + * + * @public + * @since 1.117.0 + */ + export default SelectDialogInitialFocus; +} + +declare module "sap/m/SelectionDetailsActionLevel" { + import SelectionDetailsActionLevel from "sap/m/library"; + + /** + * Enumeration for different action levels in sap.m.SelectionDetails control. + * + * @protected + * @since 1.48 + */ + export default SelectionDetailsActionLevel; +} + +declare module "sap/m/SelectListKeyboardNavigationMode" { + import SelectListKeyboardNavigationMode from "sap/m/library"; + + /** + * Defines the keyboard navigation mode. + * + * @public + * @since 1.38 + */ + export default SelectListKeyboardNavigationMode; +} + +declare module "sap/m/SelectType" { + import SelectType from "sap/m/library"; + + /** + * Enumeration for different Select types. + * + * @public + * @since 1.16 + */ + export default SelectType; +} + +declare module "sap/m/SemanticRuleSetType" { + import SemanticRuleSetType from "sap/m/library"; + + /** + * Declares the type of semantic ruleset that will govern the styling and positioning of semantic content. + * + * @public + * @since 1.44 + */ + export default SemanticRuleSetType; +} + +declare module "sap/m/SinglePlanningCalendarSelectionMode" { + import SinglePlanningCalendarSelectionMode from "sap/m/library"; + + /** + * Available selection modes for the {@link sap.m.SinglePlanningCalendar} + * + * @public + * @since 1.113 + */ + export default SinglePlanningCalendarSelectionMode; +} + +declare module "sap/m/Size" { + import Size from "sap/m/library"; + + /** + * Enumeration of possible size settings. + * + * @public + * @since 1.34.0 + */ + export default Size; +} + +declare module "sap/m/SplitAppMode" { + import SplitAppMode from "sap/m/library"; + + /** + * The mode of SplitContainer or SplitApp control to show/hide the master area. + * + * @public + */ + export default SplitAppMode; +} + +declare module "sap/m/StandardDynamicDateRangeKeys" { + import StandardDynamicDateRangeKeys from "sap/m/library"; + + /** + * The option keys of all the standard options of a DynamicDateRange control. + * + * @public + */ + export default StandardDynamicDateRangeKeys; +} + +declare module "sap/m/StandardTileType" { + import StandardTileType from "sap/m/library"; + + /** + * Types for StandardTile. + * + * @public + */ + export default StandardTileType; +} + +declare module "sap/m/StepInputStepModeType" { + import StepInputStepModeType from "sap/m/library"; + + /** + * Available step modes for {@link sap.m.StepInput}. + * + * @public + * @since 1.54 + */ + export default StepInputStepModeType; +} + +declare module "sap/m/StepInputValidationMode" { + import StepInputValidationMode from "sap/m/library"; + + /** + * Available validation modes for {@link sap.m.StepInput}. + * + * @public + */ + export default StepInputValidationMode; +} + +declare module "sap/m/Sticky" { + import Sticky from "sap/m/library"; + + /** + * Defines which area of the control remains fixed at the top of the page during vertical scrolling as long as the control is in the viewport. + * + * @public + * @since 1.54 + */ + export default Sticky; +} + +declare module "sap/m/StringFilterOperator" { + import StringFilterOperator from "sap/m/library"; + + /** + * Types of string filter operators. + * + * @public + * @since 1.42 + */ + export default StringFilterOperator; +} + +declare module "sap/m/SwipeDirection" { + import SwipeDirection from "sap/m/library"; + + /** + * Directions for swipe event. + * + * @public + */ + export default SwipeDirection; +} + +declare module "sap/m/SwitchType" { + import SwitchType from "sap/m/library"; + + /** + * Enumeration for different switch types. + * + * @public + */ + export default SwitchType; +} + +declare module "sap/m/Category" { + import Category from "sap/m/library"; + + /** + * Categories of column menu entries. + * + * @public + * @since 1.110 + */ + export default Category; +} + +declare module "sap/m/TabsOverflowMode" { + import TabsOverflowMode from "sap/m/library"; + + /** + * Specifies IconTabBar tab overflow mode. + * + * @public + * @since 1.90.0 + */ + export default TabsOverflowMode; +} + +declare module "sap/m/TileSizeBehavior" { + import TileSizeBehavior from "sap/m/library"; + + /** + * Describes the behavior of tiles when displayed on a small-screened phone (374px wide and lower). + * + * @public + * @since 1.56.0 + */ + export default TileSizeBehavior; +} + +declare module "sap/m/TimePickerMaskMode" { + import TimePickerMaskMode from "sap/m/library"; + + /** + * Different modes for the sap.m.TimePicker mask. + * + * @public + * @since 1.54 + */ + export default TimePickerMaskMode; +} + +declare module "sap/m/TitleAlignment" { + import TitleAlignment from "sap/m/library"; + + /** + * Declares the type of title alignment for some controls + * + * @public + */ + export default TitleAlignment; +} + +declare module "sap/m/TokenizerRenderMode" { + import TokenizerRenderMode from "sap/m/library"; + + /** + * Types of the sap.m.Tokenizer responsive modes. + * + * @public + * @since 1.80 + */ + export default TokenizerRenderMode; +} + +declare module "sap/m/ToolbarDesign" { + import ToolbarDesign from "sap/m/library"; + + /** + * Types of the Toolbar Design. + * + * To preview the different combinations of sap.m.ToolbarDesign and sap.m.ToolbarStyle, see the OverflowToolbar - Design and styling sample of the {@link sap.m.OverflowToolbar} control. + * + * @public + * @since 1.16.8 + */ + export default ToolbarDesign; +} + +declare module "sap/m/ToolbarStyle" { + import ToolbarStyle from "sap/m/library"; + + /** + * Types of visual styles for the {@link sap.m.Toolbar}. + * + * Note: Keep in mind that the styles are theme-dependent and can differ based on the currently used theme. + * + * To preview the different combinations of sap.m.ToolbarDesign and sap.m.ToolbarStyle, see the OverflowToolbar - Design and styling sample of the {@link sap.m.OverflowToolbar} control. + * + * @public + * @since 1.54 + */ + export default ToolbarStyle; +} + +declare module "sap/m/UploadSetwithTableActionPlaceHolder" { + import UploadSetwithTableActionPlaceHolder from "sap/m/library"; + + /** + * Defines the placeholder type for the control to be replaced. + * + * @public + * @since 1.120 + */ + export default UploadSetwithTableActionPlaceHolder; +} + +declare module "sap/m/UploadState" { + import UploadState from "sap/m/library"; + + /** + * States of the upload process of {@link sap.m.UploadCollectionItem}. + * + * @public + */ + export default UploadState; +} + +declare module "sap/m/UploadType" { + import UploadType from "sap/m/library"; + + /** + * Type of the upload {@link sap.m.UploadSetItem}. + * + * @public + */ + export default UploadType; +} + +declare module "sap/m/ValueColor" { + import ValueColor from "sap/m/library"; + + /** + * Enumeration of possible value color settings. + * + * @public + */ + export default ValueColor; +} + +declare module "sap/m/VerticalPlacementType" { + import VerticalPlacementType from "sap/m/library"; + + /** + * Types for the placement of message Popover control. + * + * @public + */ + export default VerticalPlacementType; +} + +declare module "sap/m/WizardRenderMode" { + import WizardRenderMode from "sap/m/library"; + + /** + * Wizard rendering mode. + * + * @experimental (since 1.83) + * @public + */ + export default WizardRenderMode; +} + +declare module "sap/m/WrappingType" { + import WrappingType from "sap/m/library"; + + /** + * Available wrapping types for text controls that can be wrapped that enable you to display the text as hyphenated. + * + * For more information about text hyphenation, see {@link sap.ui.core.hyphenation.Hyphenation} and {@link topic:6322164936f047de941ec522b95d7b70 Text Controls Hyphenation}. + * + * @public + * @since 1.60 + */ + export default WrappingType; +} diff --git a/resources/overrides/library/sap.makit.d.ts b/resources/overrides/library/sap.makit.d.ts new file mode 100644 index 00000000..8c912dc2 --- /dev/null +++ b/resources/overrides/library/sap.makit.d.ts @@ -0,0 +1,63 @@ +declare module "sap/makit/ChartType" { + import ChartType from "sap/makit/library"; + + /** + * Enumeration for chart type + * + * @deprecated (since 1.38) - MAKIT charts have been replaced with sap.viz and vizFrame in 1.38. This control will not be supported anymore from 1.38. + * @public + * @since 1.8 + */ + export default ChartType; +} + +declare module "sap/makit/LegendPosition" { + import LegendPosition from "sap/makit/library"; + + /** + * Enumeration for legend position. + * + * @deprecated (since 1.38) - MAKIT charts have been replaced with sap.viz and vizFrame in 1.38. This control will not be supported anymore from 1.38. + * @public + */ + export default LegendPosition; +} + +declare module "sap/makit/SortOrder" { + import SortOrder from "sap/makit/library"; + + /** + * Enumeration for sort order + * + * @deprecated (since 1.38) - MAKIT charts have been replaced with sap.viz and vizFrame in 1.38. This control will not be supported anymore from 1.38. + * @public + * @since 1.8 + */ + export default SortOrder; +} + +declare module "sap/makit/ValueBubblePosition" { + import ValueBubblePosition from "sap/makit/library"; + + /** + * Position for Value Bubble only applies to Pie/Donut Chart. + * + * @deprecated (since 1.38) - MAKIT charts have been replaced with sap.viz and vizFrame in 1.38. This control will not be supported anymore from 1.38. + * @public + * @since 1.8 + */ + export default ValueBubblePosition; +} + +declare module "sap/makit/ValueBubbleStyle" { + import ValueBubbleStyle from "sap/makit/library"; + + /** + * Enumeration for Value Bubble's positioning style. This applies all chart types except Pie/Donut/HBar chart. + * + * @deprecated (since 1.38) - MAKIT charts have been replaced with sap.viz and vizFrame in 1.38. This control will not be supported anymore from 1.38. + * @public + * @since 1.8 + */ + export default ValueBubbleStyle; +} diff --git a/resources/overrides/library/sap.me.d.ts b/resources/overrides/library/sap.me.d.ts new file mode 100644 index 00000000..098a2f11 --- /dev/null +++ b/resources/overrides/library/sap.me.d.ts @@ -0,0 +1,38 @@ +declare module "sap/me/CalendarDesign" { + import CalendarDesign from "sap/me/library"; + + /** + * Type of Design for the Calendar + * + * @experimental (since 1.12) - API is not yet finished and might change completely + * @deprecated (since 1.34) + * @public + */ + export default CalendarDesign; +} + +declare module "sap/me/CalendarEventType" { + import CalendarEventType from "sap/me/library"; + + /** + * Type code for a calendar event + * + * @experimental (since 1.12) - API is not yet finished and might change completely + * @deprecated (since 1.34) + * @public + */ + export default CalendarEventType; +} + +declare module "sap/me/CalendarSelectionMode" { + import CalendarSelectionMode from "sap/me/library"; + + /** + * Selection Mode for the Calendar + * + * @experimental (since 1.12) - API is not yet finished and might change completely + * @deprecated (since 1.34) + * @public + */ + export default CalendarSelectionMode; +} diff --git a/resources/overrides/library/sap.rules.ui.d.ts b/resources/overrides/library/sap.rules.ui.d.ts new file mode 100644 index 00000000..bf8a312c --- /dev/null +++ b/resources/overrides/library/sap.rules.ui.d.ts @@ -0,0 +1,56 @@ +declare module "sap/rules/ui/DecisionTableCellFormat" { + import DecisionTableCellFormat from "sap/rules/ui/library"; + + /** + * An enumeration that defines how a cell in a decision table is formulated by the rule creator. + * + * @deprecated (since 1.52.8) - use the property decisionTableFormat. + * @public + */ + export default DecisionTableCellFormat; +} + +declare module "sap/rules/ui/DecisionTableFormat" { + import DecisionTableFormat from "sap/rules/ui/library"; + + /** + * An enumeration that decides the rendering format for decisionTable. + * + * @public + */ + export default DecisionTableFormat; +} + +declare module "sap/rules/ui/ExpressionType" { + import ExpressionType from "sap/rules/ui/library"; + + /** + * An enumeration that defines the different business data types for an expression + * + * @public + */ + export default ExpressionType; +} + +declare module "sap/rules/ui/RuleHitPolicy" { + import RuleHitPolicy from "sap/rules/ui/library"; + + /** + * An enumeration that defines the output when more than one rule in the decision table is matched for a given set of inputs. + * + * @deprecated (since 1.120.2) - to configure the settings, use the Manage Rules Project app or the Rule Authoring APIs. + * @public + */ + export default RuleHitPolicy; +} + +declare module "sap/rules/ui/RuleType" { + import RuleType from "sap/rules/ui/library"; + + /** + * An enumeration that defines whether the rule is formulated as a table with multiple rules instead of a rule with a single associated condition. + * + * @public + */ + export default RuleType; +} diff --git a/resources/overrides/library/sap.suite.ui.commons.d.ts b/resources/overrides/library/sap.suite.ui.commons.d.ts new file mode 100644 index 00000000..ca0b04c9 --- /dev/null +++ b/resources/overrides/library/sap.suite.ui.commons.d.ts @@ -0,0 +1,710 @@ +declare module "sap/suite/ui/commons/BulletChartMode" { + import BulletChartMode from "sap/suite/ui/commons/library"; + + /** + * Enumeration of possible BulletChart display modes. + * + * @deprecated (since 1.34) - Deprecated. sap.suite.ui.microchart.BulletMicroChartModeType should be used. + * @public + */ + export default BulletChartMode; +} + +declare module "sap/suite/ui/commons/CalculationBuilderComparisonOperatorType" { + import CalculationBuilderComparisonOperatorType from "sap/suite/ui/commons/library"; + + /** + * Comparison operators supported by the calculation builder. + * + * @public + */ + export default CalculationBuilderComparisonOperatorType; +} + +declare module "sap/suite/ui/commons/CalculationBuilderFunctionType" { + import CalculationBuilderFunctionType from "sap/suite/ui/commons/library"; + + /** + * Functions supported by the calculation builder.
To add a custom function, use {@link sap.suite.ui.commons.CalculationBuilderFunction}. + * + * @public + */ + export default CalculationBuilderFunctionType; +} + +declare module "sap/suite/ui/commons/CalculationBuilderItemType" { + import CalculationBuilderItemType from "sap/suite/ui/commons/library"; + + /** + * The types of items (operands) that can be used in a calculation builder expression. + * + * @public + */ + export default CalculationBuilderItemType; +} + +declare module "sap/suite/ui/commons/CalculationBuilderLayoutType" { + import CalculationBuilderLayoutType from "sap/suite/ui/commons/library"; + + /** + * Layout of the calculation builder. + * + * @public + */ + export default CalculationBuilderLayoutType; +} + +declare module "sap/suite/ui/commons/CalculationBuilderLogicalOperatorType" { + import CalculationBuilderLogicalOperatorType from "sap/suite/ui/commons/library"; + + /** + * Logical operators supported by the calculation builder. + * + * @public + */ + export default CalculationBuilderLogicalOperatorType; +} + +declare module "sap/suite/ui/commons/CalculationBuilderOperatorType" { + import CalculationBuilderOperatorType from "sap/suite/ui/commons/library"; + + /** + * Arithmetic operators supported by the calculation builder. + * + * @public + */ + export default CalculationBuilderOperatorType; +} + +declare module "sap/suite/ui/commons/CalculationBuilderValidationMode" { + import CalculationBuilderValidationMode from "sap/suite/ui/commons/library"; + + /** + * Types of expression validation that define when the expression entered into the {@link sap.suite.ui.commons.CalculationBuilder} is validated. + * + * @public + */ + export default CalculationBuilderValidationMode; +} + +declare module "sap/suite/ui/commons/CommonBackground" { + import CommonBackground from "sap/suite/ui/commons/library"; + + /** + * Enumeration of possible theme specific background colors. + * + * @deprecated (since 1.34) - Deprecated. Moved to sapui5.runtime. + * @public + */ + export default CommonBackground; +} + +declare module "sap/suite/ui/commons/ComparisonChartView" { + import ComparisonChartView from "sap/suite/ui/commons/library"; + + /** + * The view of the ComparisonChart. + * + * @deprecated (since 1.34) - Deprecated. sap.suite.ui.microchart.ComparisonMicroChartViewType should be used. + * @public + */ + export default ComparisonChartView; +} + +declare module "sap/suite/ui/commons/DeviationIndicator" { + import DeviationIndicator from "sap/suite/ui/commons/library"; + + /** + * The marker for the deviation trend. + * + * @deprecated (since 1.34) - Deprecated. Moved to sapui5.runtime. + * @public + */ + export default DeviationIndicator; +} + +declare module "sap/suite/ui/commons/FacetOverviewHeight" { + import FacetOverviewHeight from "sap/suite/ui/commons/library"; + + /** + * Enumeration of possible FacetOverview height settings. + * + * @deprecated (since 1.32) - Deprecated. Object page should be used instead. + * @public + */ + export default FacetOverviewHeight; +} + +declare module "sap/suite/ui/commons/FilePickerModes" { + import FilePickerModes from "sap/suite/ui/commons/library"; + + /** + * Modes for the {@link sap.suite.ui.commons.CloudFilePicker}. + * + * @public + */ + export default FilePickerModes; +} + +declare module "sap/suite/ui/commons/FilePickerType" { + import FilePickerType from "sap/suite/ui/commons/library"; + + /** + * Runtime mode for the {@link sap.suite.ui.commons.CloudFilePicker}. + * + * @public + */ + export default FilePickerType; +} + +declare module "sap/suite/ui/commons/FrameType" { + import FrameType from "sap/suite/ui/commons/library"; + + /** + * Enumeration of possible frame types. + * + * @deprecated (since 1.34) - Deprecated. Moved to openUI5. + * @public + */ + export default FrameType; +} + +declare module "sap/suite/ui/commons/HeaderContainerView" { + import HeaderContainerView from "sap/suite/ui/commons/library"; + + /** + * The list of possible HeaderContainer views. + * + * @deprecated (since 1.48) - This control is deprecated since 1.48. Please use the equivalent sap.ui.core.Orientation. + * @public + */ + export default HeaderContainerView; +} + +declare module "sap/suite/ui/commons/ImageEditorContainerButton" { + import ImageEditorContainerButton from "sap/suite/ui/commons/library"; + + /** + * Action buttons for the {@link sap.suite.ui.commons.imageeditor.ImageEditorContainer}. + * + * @public + */ + export default ImageEditorContainerButton; +} + +declare module "sap/suite/ui/commons/ImageEditorContainerMode" { + import ImageEditorContainerMode from "sap/suite/ui/commons/library"; + + /** + * Mode types for {@link sap.suite.ui.commons.imageeditor.ImageEditorContainer}. + * + * @public + */ + export default ImageEditorContainerMode; +} + +declare module "sap/suite/ui/commons/ImageEditorMode" { + import ImageEditorMode from "sap/suite/ui/commons/library"; + + /** + * Mode types for {@link sap.suite.ui.commons.imageeditor.ImageEditor}. + * + * @public + */ + export default ImageEditorMode; +} + +declare module "sap/suite/ui/commons/ImageFormat" { + import ImageFormat from "sap/suite/ui/commons/library"; + + /** + * Image file format. + * + * @public + */ + export default ImageFormat; +} + +declare module "sap/suite/ui/commons/InfoTileSize" { + import InfoTileSize from "sap/suite/ui/commons/library"; + + /** + * Enumeration of possible PointTile size settings. + * + * @deprecated (since 1.34) - Deprecated. sap.m.InfoTileSize should be used. + * @public + */ + export default InfoTileSize; +} + +declare module "sap/suite/ui/commons/InfoTileTextColor" { + import InfoTileTextColor from "sap/suite/ui/commons/library"; + + /** + * Enumeration of possible InfoTile text color settings. + * + * @deprecated (since 1.34) - Deprecated. sap.m.InfoTileTextColor should be used. + * @public + */ + export default InfoTileTextColor; +} + +declare module "sap/suite/ui/commons/InfoTileValueColor" { + import InfoTileValueColor from "sap/suite/ui/commons/library"; + + /** + * Enumeration of possible InfoTile value color settings. + * + * @deprecated (since 1.34) - Deprecated. sap.m.InfoTileValueColor should be used. + * @public + */ + export default InfoTileValueColor; +} + +declare module "sap/suite/ui/commons/LayoutType" { + import LayoutType from "sap/suite/ui/commons/library"; + + /** + * Supported Layout Types for {@link sap.suite.ui.commons.BaseContainer}. + * + * @public + */ + export default LayoutType; +} + +declare module "sap/suite/ui/commons/LoadState" { + import LoadState from "sap/suite/ui/commons/library"; + + /** + * Enumeration of possible load states for LoadableView. + * + * @deprecated (since 1.34) - Deprecated. sap.m.LoadState should be used. + * @public + */ + export default LoadState; +} + +declare module "sap/suite/ui/commons/MicroAreaChartView" { + import MicroAreaChartView from "sap/suite/ui/commons/library"; + + /** + * The list of possible MicroAreaChart views. + * + * @deprecated (since 1.34) - Deprecated. sap.suite.ui.microchart.AreaMicroChartViewType should be used. + * @public + */ + export default MicroAreaChartView; +} + +declare module "sap/suite/ui/commons/MicroProcessFlowRenderType" { + import MicroProcessFlowRenderType from "sap/suite/ui/commons/library"; + + /** + * Options that define how the micro process flow should be rendered inside its parent container.
These options can be useful when the width of the parent container does not allow for all nodes in the micro process flow to be displayed on the same line. + * + * @public + */ + export default MicroProcessFlowRenderType; +} + +declare module "sap/suite/ui/commons/ActionButtonPosition" { + import ActionButtonPosition from "sap/suite/ui/commons/library"; + + /** + * Position of a custom action button. + * + * @public + */ + export default ActionButtonPosition; +} + +declare module "sap/suite/ui/commons/BackgroundColor" { + import BackgroundColor from "sap/suite/ui/commons/library"; + + /** + * Background color for the network graph. + * + * @public + */ + export default BackgroundColor; +} + +declare module "sap/suite/ui/commons/ElementStatus" { + import ElementStatus from "sap/suite/ui/commons/library"; + + /** + * Semantic type of the node status. + * + * @public + */ + export default ElementStatus; +} + +declare module "sap/suite/ui/commons/HeaderCheckboxState" { + import HeaderCheckboxState from "sap/suite/ui/commons/library"; + + /** + * States of the Header checkbox. + * + * @public + */ + export default HeaderCheckboxState; +} + +declare module "sap/suite/ui/commons/LayoutRenderType" { + import LayoutRenderType from "sap/suite/ui/commons/library"; + + /** + * Types of layout algorithms that define the visual features and layout of the network graph. + * + * @public + */ + export default LayoutRenderType; +} + +declare module "sap/suite/ui/commons/LineArrowOrientation" { + import LineArrowOrientation from "sap/suite/ui/commons/library"; + + /** + * Direction of the arrow on the connector line. + * + * @public + */ + export default LineArrowOrientation; +} + +declare module "sap/suite/ui/commons/LineArrowPosition" { + import LineArrowPosition from "sap/suite/ui/commons/library"; + + /** + * Position of the arrow on a connector line. + * + * @public + */ + export default LineArrowPosition; +} + +declare module "sap/suite/ui/commons/LineType" { + import LineType from "sap/suite/ui/commons/library"; + + /** + * Type of connector line used in the network graph. + * + * @public + */ + export default LineType; +} + +declare module "sap/suite/ui/commons/NodePlacement" { + import NodePlacement from "sap/suite/ui/commons/library"; + + /** + * Type of node placement for Layered Algorithm. See {@link https://rtsys.informatik.uni-kiel.de/confluence/display/KIELER/KLay+Layered+Layout+Options#KLayLayeredLayoutOptions-nodePlacement} + * + * @public + */ + export default NodePlacement; +} + +declare module "sap/suite/ui/commons/NodeShape" { + import NodeShape from "sap/suite/ui/commons/library"; + + /** + * Shape of a node in a network graph. + * + * @public + */ + export default NodeShape; +} + +declare module "sap/suite/ui/commons/Orientation" { + import Orientation from "sap/suite/ui/commons/library"; + + /** + * Orientation of layered layout. + * + * @public + */ + export default Orientation; +} + +declare module "sap/suite/ui/commons/RenderType" { + import RenderType from "sap/suite/ui/commons/library"; + + /** + * Determines how nodes are rendered. For optimal performance and usability, it is recommended that you use HTML, which allows you to avoid dealing with SVG limitations. + * + * @public + */ + export default RenderType; +} + +declare module "sap/suite/ui/commons/ProcessFlowConnectionLabelState" { + import ProcessFlowConnectionLabelState from "sap/suite/ui/commons/library"; + + /** + * Describes the state of a connection label. + * + * @public + */ + export default ProcessFlowConnectionLabelState; +} + +declare module "sap/suite/ui/commons/ProcessFlowConnectionState" { + import ProcessFlowConnectionState from "sap/suite/ui/commons/library"; + + /** + * Describes the state of a connection. + * + * @public + */ + export default ProcessFlowConnectionState; +} + +declare module "sap/suite/ui/commons/ProcessFlowConnectionType" { + import ProcessFlowConnectionType from "sap/suite/ui/commons/library"; + + /** + * Describes the type of a connection. + * + * @public + */ + export default ProcessFlowConnectionType; +} + +declare module "sap/suite/ui/commons/ProcessFlowDisplayState" { + import ProcessFlowDisplayState from "sap/suite/ui/commons/library"; + + /** + * The ProcessFlow calculates the ProcessFlowDisplayState based on the 'focused' and 'highlighted' properties of each node. + * + * @public + */ + export default ProcessFlowDisplayState; +} + +declare module "sap/suite/ui/commons/ProcessFlowLaneState" { + import ProcessFlowLaneState from "sap/suite/ui/commons/library"; + + /** + * This type is used in the 'state' property of the ProcessFlowLaneHeader. For example, app developers can set the status of the lane header if lanes are displayed without documents. If the complete process flow is displayed (that is, if the lane header is displayed with documents underneath), the given state values of the lane header are ignored and will be calculated in the ProcessFlow according to the current state of the documents. + * + * @public + */ + export default ProcessFlowLaneState; +} + +declare module "sap/suite/ui/commons/ProcessFlowNodeState" { + import ProcessFlowNodeState from "sap/suite/ui/commons/library"; + + /** + * Describes the state connected to the content it is representing in the Process Flow Node. The state is also displayed in the Process Flow Lane Header as a color segment of the donut. + * + * @public + */ + export default ProcessFlowNodeState; +} + +declare module "sap/suite/ui/commons/ProcessFlowNodeType" { + import ProcessFlowNodeType from "sap/suite/ui/commons/library"; + + /** + * Describes the type of a node. The type value could be single or aggregated. With this type, the application can define if several nodes should be displayed as one aggregated node in a path per column to represent a grouping of semantically equal nodes. + * + * @public + */ + export default ProcessFlowNodeType; +} + +declare module "sap/suite/ui/commons/ProcessFlowZoomLevel" { + import ProcessFlowZoomLevel from "sap/suite/ui/commons/library"; + + /** + * The zoom level defines level of details for the node and how much space the process flow requires. + * + * @public + */ + export default ProcessFlowZoomLevel; +} + +declare module "sap/suite/ui/commons/SelectionModes" { + import SelectionModes from "sap/suite/ui/commons/library"; + + /** + * File selection mode(Upload) for the {@link sap.suite.ui.commons.CloudFilePicker}. + * + * @public + */ + export default SelectionModes; +} + +declare module "sap/suite/ui/commons/SelectionState" { + import SelectionState from "sap/suite/ui/commons/library"; + + /** + * SelectionState + * + * @deprecated (since 1.48) - This Enumeration is deprecated as it is not used anywhere. + * @public + */ + export default SelectionState; +} + +declare module "sap/suite/ui/commons/FillingDirectionType" { + import FillingDirectionType from "sap/suite/ui/commons/library"; + + /** + * The direction of animation.
+ * + * The direction types Up, Down, Left, and Right are available when {@link sap.suite.ui.commons.statusindicator.FillingType} is set to Linear.
The direction types Clockwise and Counterclockwise are available when {@link sap.suite.ui.commons.statusindicator.FillingType} is set to Circular. + * + * @public + */ + export default FillingDirectionType; +} + +declare module "sap/suite/ui/commons/FillingType" { + import FillingType from "sap/suite/ui/commons/library"; + + /** + * The type of filling. + * + * @public + */ + export default FillingType; +} + +declare module "sap/suite/ui/commons/HorizontalAlignmentType" { + import HorizontalAlignmentType from "sap/suite/ui/commons/library"; + + /** + * The horizontal alignment of the status indicator within its parent container. + * + * @public + */ + export default HorizontalAlignmentType; +} + +declare module "sap/suite/ui/commons/LabelPositionType" { + import LabelPositionType from "sap/suite/ui/commons/library"; + + /** + * Position of the label, relative to the status indicator. + * + * @public + */ + export default LabelPositionType; +} + +declare module "sap/suite/ui/commons/SizeType" { + import SizeType from "sap/suite/ui/commons/library"; + + /** + * Predefined sizes of the status indicator. + * + * @public + */ + export default SizeType; +} + +declare module "sap/suite/ui/commons/VerticalAlignmentType" { + import VerticalAlignmentType from "sap/suite/ui/commons/library"; + + /** + * The vertical alignment of the status indicator within its parent container. + * + * @public + */ + export default VerticalAlignmentType; +} + +declare module "sap/suite/ui/commons/TAccountPanelState" { + import TAccountPanelState from "sap/suite/ui/commons/library"; + + /** + * The state of the {@link sap.suite.ui.commons.taccount.TAccountPanel} that defines how T accounts included in the panel are displayed. + * + * @public + */ + export default TAccountPanelState; +} + +declare module "sap/suite/ui/commons/ThingGroupDesign" { + import ThingGroupDesign from "sap/suite/ui/commons/library"; + + /** + * Defines the way how UnifiedThingGroup control is rendered. + * + * @deprecated (since 1.32) - Deprecated. Object page should be used instead. + * @public + */ + export default ThingGroupDesign; +} + +declare module "sap/suite/ui/commons/TimelineAlignment" { + import TimelineAlignment from "sap/suite/ui/commons/library"; + + /** + * The alignment of timeline posts relative to the timeline axis. + * + * @public + */ + export default TimelineAlignment; +} + +declare module "sap/suite/ui/commons/TimelineAxisOrientation" { + import TimelineAxisOrientation from "sap/suite/ui/commons/library"; + + /** + * Defines the orientation of the timeline axis. + * + * @public + */ + export default TimelineAxisOrientation; +} + +declare module "sap/suite/ui/commons/TimelineFilterType" { + import TimelineFilterType from "sap/suite/ui/commons/library"; + + /** + * Filter type for the timeline. + * + * @public + */ + export default TimelineFilterType; +} + +declare module "sap/suite/ui/commons/TimelineGroupType" { + import TimelineGroupType from "sap/suite/ui/commons/library"; + + /** + * Type of grouping for timeline entries. + * + * @public + */ + export default TimelineGroupType; +} + +declare module "sap/suite/ui/commons/TimelineScrollingFadeout" { + import TimelineScrollingFadeout from "sap/suite/ui/commons/library"; + + /** + * Type of the fadeout effect applied to the upper and lower margins of the visible timeline area. + * + * @deprecated (since 1.54.0) - Not Fiori. + * @public + */ + export default TimelineScrollingFadeout; +} + +declare module "sap/suite/ui/commons/ValueStatus" { + import ValueStatus from "sap/suite/ui/commons/library"; + + /** + * Marker for the key value status. + * + * @deprecated (since 1.32) - Deprecated. Numeric content or any other standard Fiori control should be used instead. + * @public + */ + export default ValueStatus; +} diff --git a/resources/overrides/library/sap.suite.ui.generic.template.d.ts b/resources/overrides/library/sap.suite.ui.generic.template.d.ts new file mode 100644 index 00000000..7ac155bc --- /dev/null +++ b/resources/overrides/library/sap.suite.ui.generic.template.d.ts @@ -0,0 +1,10 @@ +declare module "sap/suite/ui/generic/template/displayMode" { + import displayMode from "sap/suite/ui/generic/template/library"; + + /** + * A static enumeration type which indicates the mode of targeted page while using navigateInternal extensionAPI + * + * @public + */ + export default displayMode; +} diff --git a/resources/overrides/library/sap.suite.ui.microchart.d.ts b/resources/overrides/library/sap.suite.ui.microchart.d.ts new file mode 100644 index 00000000..526df35c --- /dev/null +++ b/resources/overrides/library/sap.suite.ui.microchart.d.ts @@ -0,0 +1,83 @@ +declare module "sap/suite/ui/microchart/AreaMicroChartViewType" { + import AreaMicroChartViewType from "sap/suite/ui/microchart/library"; + + /** + * Enum of available views for the area micro chart concerning the position of the labels. + * + * @public + * @since 1.34 + */ + export default AreaMicroChartViewType; +} + +declare module "sap/suite/ui/microchart/BulletMicroChartModeType" { + import BulletMicroChartModeType from "sap/suite/ui/microchart/library"; + + /** + * Defines if the horizontal bar represents a current value only or if it represents the delta between a current value and a threshold value. + * + * @public + * @since 1.34 + */ + export default BulletMicroChartModeType; +} + +declare module "sap/suite/ui/microchart/CommonBackgroundType" { + import CommonBackgroundType from "sap/suite/ui/microchart/library"; + + /** + * Lists the available theme-specific background colors. + * + * @public + * @since 1.34 + */ + export default CommonBackgroundType; +} + +declare module "sap/suite/ui/microchart/ComparisonMicroChartViewType" { + import ComparisonMicroChartViewType from "sap/suite/ui/microchart/library"; + + /** + * Lists the views of the comparison micro chart concerning the position of titles and labels. + * + * @public + * @since 1.34 + */ + export default ComparisonMicroChartViewType; +} + +declare module "sap/suite/ui/microchart/DeltaMicroChartViewType" { + import DeltaMicroChartViewType from "sap/suite/ui/microchart/library"; + + /** + * Lists the views of the delta micro chart concerning the position of titles. + * + * @public + * @since 1.61 + */ + export default DeltaMicroChartViewType; +} + +declare module "sap/suite/ui/microchart/HorizontalAlignmentType" { + import HorizontalAlignmentType from "sap/suite/ui/microchart/library"; + + /** + * Alignment type for the microchart content. + * + * @public + * @since 1.62 + */ + export default HorizontalAlignmentType; +} + +declare module "sap/suite/ui/microchart/LineType" { + import LineType from "sap/suite/ui/microchart/library"; + + /** + * Type of the microchart line. + * + * @public + * @since 1.60 + */ + export default LineType; +} diff --git a/resources/overrides/library/sap.tnt.d.ts b/resources/overrides/library/sap.tnt.d.ts new file mode 100644 index 00000000..a2a123b3 --- /dev/null +++ b/resources/overrides/library/sap.tnt.d.ts @@ -0,0 +1,10 @@ +declare module "sap/tnt/RenderMode" { + import RenderMode from "sap/tnt/library"; + + /** + * Predefined types of InfoLabel + * + * @public + */ + export default RenderMode; +} diff --git a/resources/overrides/library/sap.ui.commons.d.ts b/resources/overrides/library/sap.ui.commons.d.ts new file mode 100644 index 00000000..adc63927 --- /dev/null +++ b/resources/overrides/library/sap.ui.commons.d.ts @@ -0,0 +1,288 @@ +declare module "sap/ui/commons/ButtonStyle" { + import ButtonStyle from "sap/ui/commons/library"; + + /** + * different styles for a button. + * + * @deprecated (since 1.38) + * @public + */ + export default ButtonStyle; +} + +declare module "sap/ui/commons/AreaDesign" { + import AreaDesign from "sap/ui/commons/library"; + + /** + * Value set for the background design of areas + * + * @deprecated (since 1.38) + * @public + */ + export default AreaDesign; +} + +declare module "sap/ui/commons/BorderDesign" { + import BorderDesign from "sap/ui/commons/library"; + + /** + * Value set for the border design of areas + * + * @deprecated (since 1.38) + * @public + */ + export default BorderDesign; +} + +declare module "sap/ui/commons/Orientation" { + import Orientation from "sap/ui/commons/library"; + + /** + * Orientation of a UI element + * + * @deprecated (since 1.38) + * @public + */ + export default Orientation; +} + +declare module "sap/ui/commons/HorizontalDividerHeight" { + import HorizontalDividerHeight from "sap/ui/commons/library"; + + /** + * Enumeration of possible HorizontalDivider height settings. + * + * @deprecated (since 1.38) + * @public + */ + export default HorizontalDividerHeight; +} + +declare module "sap/ui/commons/HorizontalDividerType" { + import HorizontalDividerType from "sap/ui/commons/library"; + + /** + * Enumeration of possible HorizontalDivider types. + * + * @deprecated (since 1.38) + * @public + */ + export default HorizontalDividerType; +} + +declare module "sap/ui/commons/LabelDesign" { + import LabelDesign from "sap/ui/commons/library"; + + /** + * Available label display modes. + * + * @deprecated (since 1.38) + * @public + */ + export default LabelDesign; +} + +declare module "sap/ui/commons/BackgroundDesign" { + import BackgroundDesign from "sap/ui/commons/library"; + + /** + * Background design (i.e. color), e.g. of a layout cell. + * + * @deprecated (since 1.38) + * @public + */ + export default BackgroundDesign; +} + +declare module "sap/ui/commons/BorderLayoutAreaTypes" { + import BorderLayoutAreaTypes from "sap/ui/commons/library"; + + /** + * The type (=position) of a BorderLayoutArea + * + * @deprecated (since 1.38) + * @public + */ + export default BorderLayoutAreaTypes; +} + +declare module "sap/ui/commons/HAlign" { + import HAlign from "sap/ui/commons/library"; + + /** + * Horizontal alignment, e.g. of a layout cell's content within the cell's borders. Note that some values depend on the current locale's writing direction while others do not. + * + * @deprecated (since 1.38) + * @public + */ + export default HAlign; +} + +declare module "sap/ui/commons/Padding" { + import Padding from "sap/ui/commons/library"; + + /** + * Padding, e.g. of a layout cell's content within the cell's borders. Note that all options except "None" include a padding of 2px at the top and bottom, and differ only in the presence of a 4px padding towards the beginning or end of a line, in the current locale's writing direction. + * + * @deprecated (since 1.38) + * @public + */ + export default Padding; +} + +declare module "sap/ui/commons/Separation" { + import Separation from "sap/ui/commons/library"; + + /** + * Separation, e.g. of a layout cell from its neighbor, via a vertical gutter of defined width, with or without a vertical line in its middle. + * + * @deprecated (since 1.38) + * @public + */ + export default Separation; +} + +declare module "sap/ui/commons/VAlign" { + import VAlign from "sap/ui/commons/library"; + + /** + * Vertical alignment, e.g. of a layout cell's content within the cell's borders. + * + * @deprecated (since 1.38) + * @public + */ + export default VAlign; +} + +declare module "sap/ui/commons/MenuBarDesign" { + import MenuBarDesign from "sap/ui/commons/library"; + + /** + * Determines the visual design of a MenuBar. The feature might be not supported by all themes. + * + * @deprecated (since 1.38) + * @public + */ + export default MenuBarDesign; +} + +declare module "sap/ui/commons/MessageType" { + import MessageType from "sap/ui/commons/library"; + + /** + * [Enter description for MessageType] + * + * @deprecated (since 1.38) + * @public + */ + export default MessageType; +} + +declare module "sap/ui/commons/PaginatorEvent" { + import PaginatorEvent from "sap/ui/commons/library"; + + /** + * Distinct paginator event types + * + * @deprecated (since 1.38) + * @public + */ + export default PaginatorEvent; +} + +declare module "sap/ui/commons/RatingIndicatorVisualMode" { + import RatingIndicatorVisualMode from "sap/ui/commons/library"; + + /** + * Possible values for the visualization of float values in the RatingIndicator Control. + * + * @deprecated (since 1.38) + * @public + */ + export default RatingIndicatorVisualMode; +} + +declare module "sap/ui/commons/RowRepeaterDesign" { + import RowRepeaterDesign from "sap/ui/commons/library"; + + /** + * Determines the visual design of a RowRepeater. + * + * @deprecated (since 1.38) + * @public + */ + export default RowRepeaterDesign; +} + +declare module "sap/ui/commons/TextViewColor" { + import TextViewColor from "sap/ui/commons/library"; + + /** + * Semantic Colors of a text. + * + * @deprecated (since 1.38) + * @public + */ + export default TextViewColor; +} + +declare module "sap/ui/commons/TextViewDesign" { + import TextViewDesign from "sap/ui/commons/library"; + + /** + * Designs for TextView. + * + * @deprecated (since 1.38) + * @public + */ + export default TextViewDesign; +} + +declare module "sap/ui/commons/ToolbarDesign" { + import ToolbarDesign from "sap/ui/commons/library"; + + /** + * Determines the visual design of a Toolbar. + * + * @deprecated (since 1.38) + * @public + */ + export default ToolbarDesign; +} + +declare module "sap/ui/commons/ToolbarSeparatorDesign" { + import ToolbarSeparatorDesign from "sap/ui/commons/library"; + + /** + * Design of the Toolbar Separator. + * + * @deprecated (since 1.38) + * @public + */ + export default ToolbarSeparatorDesign; +} + +declare module "sap/ui/commons/TreeSelectionMode" { + import TreeSelectionMode from "sap/ui/commons/library"; + + /** + * Selection mode of the tree + * + * @deprecated (since 1.38) + * @public + */ + export default TreeSelectionMode; +} + +declare module "sap/ui/commons/TriStateCheckBoxState" { + import TriStateCheckBoxState from "sap/ui/commons/library"; + + /** + * States for TriStateCheckBox + * + * @deprecated (since 1.38) + * @public + * @since 1.7.2 + */ + export default TriStateCheckBoxState; +} diff --git a/resources/overrides/library/sap.ui.comp.d.ts b/resources/overrides/library/sap.ui.comp.d.ts new file mode 100644 index 00000000..a4b1d984 --- /dev/null +++ b/resources/overrides/library/sap.ui.comp.d.ts @@ -0,0 +1,327 @@ +declare module "sap/ui/comp/ChangeHandlerType" { + import ChangeHandlerType from "sap/ui/comp/library"; + + /** + * Type of change handler type for link personalization. + * + * @public + */ + export default ChangeHandlerType; +} + +declare module "sap/ui/comp/AggregationRole" { + import AggregationRole from "sap/ui/comp/library"; + + /** + * Provides enumeration sap.ui.comp.personalization.AggregationRole. A subset of aggregation roles used in table personalization. + * + * @public + */ + export default AggregationRole; +} + +declare module "sap/ui/comp/ChangeType" { + import ChangeType from "sap/ui/comp/library"; + + /** + * Provides enumeration sap.ui.comp.personalization.ChangeType. A subset of changes done during table personalization. + * + * @public + */ + export default ChangeType; +} + +declare module "sap/ui/comp/ColumnType" { + import ColumnType from "sap/ui/comp/library"; + + /** + * Provides enumeration sap.ui.comp.personalization.ColumnType. A subset of column types that fit for table personalization. + * + * @public + */ + export default ColumnType; +} + +declare module "sap/ui/comp/ResetType" { + import ResetType from "sap/ui/comp/library"; + + /** + * Provides enumeration sap.ui.comp.personalization.ResetType. A subset of reset types used in table personalization. + * + * @public + */ + export default ResetType; +} + +declare module "sap/ui/comp/TableType" { + import TableType from "sap/ui/comp/library"; + + /** + * Provides enumeration sap.ui.comp.personalization.TableType. A subset of table types that fit for table personalization. + * + * @public + */ + export default TableType; +} + +declare module "sap/ui/comp/SelectionMode" { + import SelectionMode from "sap/ui/comp/library"; + + /** + * Enumeration for supported selection mode in SmartChart + * + * @public + */ + export default SelectionMode; +} + +declare module "sap/ui/comp/ControlContextType" { + import ControlContextType from "sap/ui/comp/library"; + + /** + * Enumeration of the different contexts supported by the SmartField, if it is using an OData model. + * + * @public + */ + export default ControlContextType; +} + +declare module "sap/ui/comp/ControlProposalType" { + import ControlProposalType from "sap/ui/comp/library"; + + /** + * Enumeration of the different control proposals supported by the Smart Field, if it is using an OData model. + * + * @public + */ + export default ControlProposalType; +} + +declare module "sap/ui/comp/ControlType" { + import ControlType from "sap/ui/comp/library"; + + /** + * The available control types to configure the internal control selection of a SmartField control. + * + * @public + */ + export default ControlType; +} + +declare module "sap/ui/comp/CriticalityRepresentationType" { + import CriticalityRepresentationType from "sap/ui/comp/library"; + + /** + * The different options to visualize the ObjectStatus control. + * + * @public + */ + export default CriticalityRepresentationType; +} + +declare module "sap/ui/comp/DisplayBehaviour" { + import DisplayBehaviour from "sap/ui/comp/library"; + + /** + * The different options to define display behavior for the value help of a SmartField control. + * + * @public + */ + export default DisplayBehaviour; +} + +declare module "sap/ui/comp/Importance" { + import Importance from "sap/ui/comp/library"; + + /** + * Provides information about the importance of the field + * + * @public + * @since 1.87 + */ + export default Importance; +} + +declare module "sap/ui/comp/JSONType" { + import JSONType from "sap/ui/comp/library"; + + /** + * Enumeration of the different data types supported by the SmartField control, if it is using a JSON model. + * + * @public + */ + export default JSONType; +} + +declare module "sap/ui/comp/TextInEditModeSource" { + import TextInEditModeSource from "sap/ui/comp/library"; + + /** + * Enumeration of sources from which text values for Codes/IDs are fetched in edit mode. The text is usually visualized as description/text value for IDs, for example, for LT (Laptop). + * + * @public + * @since 1.54 + */ + export default TextInEditModeSource; +} + +declare module "sap/ui/comp/ControlType" { + import ControlType from "sap/ui/comp/library"; + + /** + * The available control types to configure the internal control selection of a SmartFilterBar control. + * + * @public + */ + export default ControlType; +} + +declare module "sap/ui/comp/DisplayBehaviour" { + import DisplayBehaviour from "sap/ui/comp/library"; + + /** + * The different options to define display behavior for fields in the SmartFilter control. + * + * @public + */ + export default DisplayBehaviour; +} + +declare module "sap/ui/comp/FilterType" { + import FilterType from "sap/ui/comp/library"; + + /** + * The available filter types to configure the internal control of a SmartFilterBar control. + * + * @public + */ + export default FilterType; +} + +declare module "sap/ui/comp/MandatoryType" { + import MandatoryType from "sap/ui/comp/library"; + + /** + * The different options to define mandatory state for fields in the SmartFilter control. + * + * @public + */ + export default MandatoryType; +} + +declare module "sap/ui/comp/SelectOptionSign" { + import SelectOptionSign from "sap/ui/comp/library"; + + /** + * The different options to define Sign for Select Options used in SmartFilter control. + * + * @public + */ + export default SelectOptionSign; +} + +declare module "sap/ui/comp/Importance" { + import Importance from "sap/ui/comp/library"; + + /** + * Enumeration of SmartForm Importance types + * + * @public + * @since 1.87 + */ + export default Importance; +} + +declare module "sap/ui/comp/SmartFormValidationMode" { + import SmartFormValidationMode from "sap/ui/comp/library"; + + /** + * Enumeration of SmartForm validation mode. + * + * @public + * @since 1.81 + */ + export default SmartFormValidationMode; +} + +declare module "sap/ui/comp/ListType" { + import ListType from "sap/ui/comp/library"; + + /** + * Provides enumeration sap.ui.comp.smartlist.ListType. A subset of list types that fit to a simple API returning one string. + * + * @public + * @since 1.48 + */ + export default ListType; +} + +declare module "sap/ui/comp/ExportType" { + import ExportType from "sap/ui/comp/library"; + + /** + * Provides the type of services available for export in the SmartTable control. + * + * @public + */ + export default ExportType; +} + +declare module "sap/ui/comp/InfoToolbarBehavior" { + import InfoToolbarBehavior from "sap/ui/comp/library"; + + /** + * Enumeration sap.ui.comp.smarttable.InfoToolbarBehavior determines the behavior of the info toolbar in the SmartTable control. + * + * The info toolbar represents the filters that are applied using the table personalization dialog. + * + * @public + * @since 1.70 + */ + export default InfoToolbarBehavior; +} + +declare module "sap/ui/comp/TableType" { + import TableType from "sap/ui/comp/library"; + + /** + * Provides enumeration sap.ui.comp.smarttable.TableType. A subset of table types that fit to a simple API returning one string. + * + * @public + */ + export default TableType; +} + +declare module "sap/ui/comp/ChangeHandlerType" { + import ChangeHandlerType from "sap/ui/comp/library"; + + /** + * Enumeration for changes for personalization of variant favorites. + * + * @public + */ + export default ChangeHandlerType; +} + +declare module "sap/ui/comp/TextArrangementType" { + import TextArrangementType from "sap/ui/comp/library"; + + /** + * Enumeration of text arrangement types. + * + * @public + * @since 1.60 + */ + export default TextArrangementType; +} + +declare module "sap/ui/comp/ValueHelpRangeOperation" { + import ValueHelpRangeOperation from "sap/ui/comp/library"; + + /** + * The range operations supported by the ValueHelpDialog control. + * + * @public + */ + export default ValueHelpRangeOperation; +} diff --git a/resources/overrides/library/sap.ui.core.d.ts b/resources/overrides/library/sap.ui.core.d.ts new file mode 100644 index 00000000..da8f810c --- /dev/null +++ b/resources/overrides/library/sap.ui.core.d.ts @@ -0,0 +1,346 @@ +declare module "sap/ui/core/AccessibleLandmarkRole" { + import AccessibleLandmarkRole from "sap/ui/core/library"; + + /** + * Defines the accessible landmark roles for ARIA support. This enumeration is used with the AccessibleRole control property. For more information, go to "Roles for Accessible Rich Internet Applications (WAI-ARIA Roles)" at the www.w3.org homepage. + * + * @public + */ + export default AccessibleLandmarkRole; +} + +declare module "sap/ui/core/AccessibleRole" { + import AccessibleRole from "sap/ui/core/library"; + + /** + * Defines the accessible roles for ARIA support. This enumeration is used with the AccessibleRole control property. For more information, goto "Roles for Accessible Rich Internet Applications (WAI-ARIA Roles)" at the www.w3.org homepage. + * + * @public + */ + export default AccessibleRole; +} + +declare module "sap/ui/core/HasPopup" { + import HasPopup from "sap/ui/core/library"; + + /** + * Types of popups to set as aria-haspopup attribute. Most of the values (except "None") of the enumeration are taken from the ARIA specification: https://www.w3.org/TR/wai-aria/#aria-haspopup + * + * @public + * @since 1.84 + */ + export default HasPopup; +} + +declare module "sap/ui/core/BarColor" { + import BarColor from "sap/ui/core/library"; + + /** + * Configuration options for the colors of a progress bar. + * + * @public + */ + export default BarColor; +} + +declare module "sap/ui/core/BusyIndicatorSize" { + import BusyIndicatorSize from "sap/ui/core/library"; + + /** + * Configuration options for the BusyIndicator size. + * + * @public + */ + export default BusyIndicatorSize; +} + +declare module "sap/ui/core/ComponentLifecycle" { + import ComponentLifecycle from "sap/ui/core/library"; + + /** + * Enumeration for different lifecycle behaviors of components created by the ComponentContainer. + * + * @public + */ + export default ComponentLifecycle; +} + +declare module "sap/ui/core/Design" { + import Design from "sap/ui/core/library"; + + /** + * Font design for texts. + * + * @public + */ + export default Design; +} + +declare module "sap/ui/core/DropEffect" { + import DropEffect from "sap/ui/core/library"; + + /** + * Configuration options for visual drop effects that are given during a drag and drop operation. + * + * @public + * @since 1.52.0 + */ + export default DropEffect; +} + +declare module "sap/ui/core/DropLayout" { + import DropLayout from "sap/ui/core/library"; + + /** + * Configuration options for the layout of the droppable controls. + * + * @public + * @since 1.52.0 + */ + export default DropLayout; +} + +declare module "sap/ui/core/DropPosition" { + import DropPosition from "sap/ui/core/library"; + + /** + * Configuration options for drop positions. + * + * @public + * @since 1.52.0 + */ + export default DropPosition; +} + +declare module "sap/ui/core/RelativeDropPosition" { + import RelativeDropPosition from "sap/ui/core/library"; + + /** + * Drop positions relative to a dropped element. + * + * @public + * @since 1.100.0 + */ + export default RelativeDropPosition; +} + +declare module "sap/ui/core/HorizontalAlign" { + import HorizontalAlign from "sap/ui/core/library"; + + /** + * Configuration options for horizontal alignments of controls. + * + * @public + */ + export default HorizontalAlign; +} + +declare module "sap/ui/core/IconColor" { + import IconColor from "sap/ui/core/library"; + + /** + * Semantic Colors of an icon. + * + * @public + */ + export default IconColor; +} + +declare module "sap/ui/core/ImeMode" { + import ImeMode from "sap/ui/core/library"; + + /** + * State of the Input Method Editor (IME) for the control. + * + * Depending on its value, it allows users to enter and edit for example Chinese characters. + * + * @public + */ + export default ImeMode; +} + +declare module "sap/ui/core/IndicationColor" { + import IndicationColor from "sap/ui/core/library"; + + /** + * Colors to highlight certain UI elements. + * + * In contrast to the ValueState, the semantic meaning must be defined by the application. + * + * @public + * @since 1.62.0 + */ + export default IndicationColor; +} + +declare module "sap/ui/core/InvisibleMessageMode" { + import InvisibleMessageMode from "sap/ui/core/library"; + + /** + * Enumeration for different mode behaviors of the InvisibleMessage. + * + * @experimental (since 1.73) + * @public + * @since 1.78 + */ + export default InvisibleMessageMode; +} + +declare module "sap/ui/core/MessageType" { + import MessageType from "sap/ui/core/library"; + + /** + * Specifies possible message types. + * + * @deprecated (since 1.120) - Please use {@link sap.ui.core.message.MessageType} instead. + * @public + */ + export default MessageType; +} + +declare module "sap/ui/core/OpenState" { + import OpenState from "sap/ui/core/library"; + + /** + * Defines the different possible states of an element that can be open or closed and does not only toggle between these states, but also spends some time in between (e.g. because of an animation). + * + * @public + */ + export default OpenState; +} + +declare module "sap/ui/core/Orientation" { + import Orientation from "sap/ui/core/library"; + + /** + * Orientation of a UI element. + * + * @public + * @since 1.22 + */ + export default Orientation; +} + +declare module "sap/ui/core/Priority" { + import Priority from "sap/ui/core/library"; + + /** + * Priorities for general use. + * + * @public + */ + export default Priority; +} + +declare module "sap/ui/core/HistoryDirection" { + import HistoryDirection from "sap/ui/core/library"; + + /** + * Enumeration for different HistoryDirections. + * + * @public + */ + export default HistoryDirection; +} + +declare module "sap/ui/core/ScrollBarAction" { + import ScrollBarAction from "sap/ui/core/library"; + + /** + * Actions are: Click on track, button, drag of thumb, or mouse wheel click. + * + * @public + */ + export default ScrollBarAction; +} + +declare module "sap/ui/core/Scrolling" { + import Scrolling from "sap/ui/core/library"; + + /** + * Defines the possible values for horizontal and vertical scrolling behavior. + * + * @public + */ + export default Scrolling; +} + +declare module "sap/ui/core/SortOrder" { + import SortOrder from "sap/ui/core/library"; + + /** + * Sort order of a column. + * + * @public + * @since 1.61.0 + */ + export default SortOrder; +} + +declare module "sap/ui/core/TextAlign" { + import TextAlign from "sap/ui/core/library"; + + /** + * Configuration options for text alignments. + * + * @public + */ + export default TextAlign; +} + +declare module "sap/ui/core/TextDirection" { + import TextDirection from "sap/ui/core/library"; + + /** + * Configuration options for the direction of texts. + * + * @public + */ + export default TextDirection; +} + +declare module "sap/ui/core/TitleLevel" { + import TitleLevel from "sap/ui/core/library"; + + /** + * Level of a title. + * + * @public + * @since 1.9.1 + */ + export default TitleLevel; +} + +declare module "sap/ui/core/ValueState" { + import ValueState from "sap/ui/core/library"; + + /** + * Marker for the correctness of the current value. + * + * @public + * @since 1.0 + */ + export default ValueState; +} + +declare module "sap/ui/core/VerticalAlign" { + import VerticalAlign from "sap/ui/core/library"; + + /** + * Configuration options for vertical alignments, for example of a layout cell content within the borders. + * + * @public + */ + export default VerticalAlign; +} + +declare module "sap/ui/core/Wrapping" { + import Wrapping from "sap/ui/core/library"; + + /** + * Configuration options for text wrapping. + * + * @public + */ + export default Wrapping; +} diff --git a/resources/overrides/library/sap.ui.export.d.ts b/resources/overrides/library/sap.ui.export.d.ts new file mode 100644 index 00000000..fb58a177 --- /dev/null +++ b/resources/overrides/library/sap.ui.export.d.ts @@ -0,0 +1,23 @@ +declare module "sap/ui/export/EdmType" { + import EdmType from "sap/ui/export/library"; + + /** + * EDM data types for document export. + * + * @public + * @since 1.50.0 + */ + export default EdmType; +} + +declare module "sap/ui/export/FileType" { + import FileType from "sap/ui/export/library"; + + /** + * File types for document export. + * + * @public + * @since 1.78 + */ + export default FileType; +} diff --git a/resources/overrides/library/sap.ui.generic.app.d.ts b/resources/overrides/library/sap.ui.generic.app.d.ts new file mode 100644 index 00000000..500d2bec --- /dev/null +++ b/resources/overrides/library/sap.ui.generic.app.d.ts @@ -0,0 +1,35 @@ +declare module "sap/ui/generic/app/NavType" { + import NavType from "sap/ui/generic/app/library"; + + /** + * A static enumeration type which indicates the type of inbound navigation + * + * @deprecated (since 1.83.0) - Please use {@link sap.fe.navigation.NavType} instead. + * @public + */ + export default NavType; +} + +declare module "sap/ui/generic/app/ParamHandlingMode" { + import ParamHandlingMode from "sap/ui/generic/app/library"; + + /** + * A static enumeration type which indicates the conflict resolution method when merging URL parameters into select options + * + * @deprecated (since 1.83.0) - Please use {@link sap.fe.navigation.ParamHandlingMode} instead. + * @public + */ + export default ParamHandlingMode; +} + +declare module "sap/ui/generic/app/SuppressionBehavior" { + import SuppressionBehavior from "sap/ui/generic/app/library"; + + /** + * A static enumeration type which indicates whether semantic attributes with values null, undefined or "" (empty string) shall be suppressed, before they are mixed in to the selection variant in the method {@link sap.ui.generic.app.navigation.service.NavigationHandler.mixAttributesAndSelectionVariant mixAttributesAndSelectionVariant} of the {@link sap.ui.generic.app.navigation.service.NavigationHandler NavigationHandler} + * + * @deprecated (since 1.83.0) - Please use {@link sap.fe.navigation.SuppressionBehavior} instead. + * @public + */ + export default SuppressionBehavior; +} diff --git a/resources/overrides/library/sap.ui.integration.d.ts b/resources/overrides/library/sap.ui.integration.d.ts new file mode 100644 index 00000000..d3a0bec6 --- /dev/null +++ b/resources/overrides/library/sap.ui.integration.d.ts @@ -0,0 +1,99 @@ +declare module "sap/ui/integration/AttributesLayoutType" { + import AttributesLayoutType from "sap/ui/integration/library"; + + /** + * Defines the layout type of the List card attributes. + * + * @public + * @since 1.96 + */ + export default AttributesLayoutType; +} + +declare module "sap/ui/integration/CardActionType" { + import CardActionType from "sap/ui/integration/library"; + + /** + * Enumeration of possible card action types. + * + * @experimental (since 1.64) - Disclaimer: this property is in a beta state - incompatible API changes may be done before its official public release. Use at your own discretion. + * @public + */ + export default CardActionType; +} + +declare module "sap/ui/integration/CardArea" { + import CardArea from "sap/ui/integration/library"; + + /** + * Defines the areas in a card. + * + * @public + * @since 1.86 + */ + export default CardArea; +} + +declare module "sap/ui/integration/CardBlockingMessageType" { + import CardBlockingMessageType from "sap/ui/integration/library"; + + /** + * Card blocking message types. + * + * @experimental (since 1.114) + * @public + */ + export default CardBlockingMessageType; +} + +declare module "sap/ui/integration/CardDataMode" { + import CardDataMode from "sap/ui/integration/library"; + + /** + * Possible data modes for {@link sap.ui.integration.widgets.Card}. + * + * @experimental (since 1.65) + * @public + * @since 1.65 + */ + export default CardDataMode; +} + +declare module "sap/ui/integration/CardDesign" { + import CardDesign from "sap/ui/integration/library"; + + /** + * Possible designs for {@link sap.ui.integration.widgets.Card}. + * + * @experimental (since 1.109) + * @public + * @since 1.109 + */ + export default CardDesign; +} + +declare module "sap/ui/integration/CardDisplayVariant" { + import CardDisplayVariant from "sap/ui/integration/library"; + + /** + * Possible variants for {@link sap.ui.integration.widgets.Card} rendering and behavior. + * + * @experimental (since 1.118) - For usage only by Work Zone. + * @public + * @since 1.118 + */ + export default CardDisplayVariant; +} + +declare module "sap/ui/integration/CardPreviewMode" { + import CardPreviewMode from "sap/ui/integration/library"; + + /** + * Preview modes for {@link sap.ui.integration.widgets.Card}. Helpful in scenarios when the end user is choosing or configuring a card. + * + * @experimental (since 1.112) + * @public + * @since 1.112 + */ + export default CardPreviewMode; +} diff --git a/resources/overrides/library/sap.ui.layout.d.ts b/resources/overrides/library/sap.ui.layout.d.ts new file mode 100644 index 00000000..87534fc9 --- /dev/null +++ b/resources/overrides/library/sap.ui.layout.d.ts @@ -0,0 +1,127 @@ +declare module "sap/ui/layout/BackgroundDesign" { + import BackgroundDesign from "sap/ui/layout/library"; + + /** + * Available Background Design. + * + * @public + * @since 1.36.0 + */ + export default BackgroundDesign; +} + +declare module "sap/ui/layout/BlockBackgroundType" { + import BlockBackgroundType from "sap/ui/layout/library"; + + /** + * A string type that is used inside the BlockLayout to set predefined background color to the cells inside the control. + * + * @public + */ + export default BlockBackgroundType; +} + +declare module "sap/ui/layout/BlockLayoutCellColorSet" { + import BlockLayoutCellColorSet from "sap/ui/layout/library"; + + /** + * A string type that is used inside the BlockLayoutCell to set a predefined set of colors for the cells. + * + * @public + * @since 1.48 + */ + export default BlockLayoutCellColorSet; +} + +declare module "sap/ui/layout/BlockLayoutCellColorShade" { + import BlockLayoutCellColorShade from "sap/ui/layout/library"; + + /** + * A string type that is used inside the BlockLayoutCell to set a predefined set of color shades for the cells. The colors are defined with sap.ui.layout.BlockLayoutCellColorSet. And this is for the shades only. + * + * @public + * @since 1.48 + */ + export default BlockLayoutCellColorShade; +} + +declare module "sap/ui/layout/BlockRowColorSets" { + import BlockRowColorSets from "sap/ui/layout/library"; + + /** + * A string type that is used inside the BlockLayoutRow to set predefined set of colors the cells inside the control. Color sets depend on sap.ui.layout.BlockBackgroundType + * + * @public + */ + export default BlockRowColorSets; +} + +declare module "sap/ui/layout/CSSGridAutoFlow" { + import CSSGridAutoFlow from "sap/ui/layout/library"; + + /** + * A string type that is used for CSS grid to control how the auto-placement algorithm works, specifying exactly how auto-placed items get flowed into the grid. + * + * @public + * @since 1.60.0 + */ + export default CSSGridAutoFlow; +} + +declare module "sap/ui/layout/SimpleFormLayout" { + import SimpleFormLayout from "sap/ui/layout/library"; + + /** + * Available FormLayouts used to render a SimpleForm. + * + * @public + * @since 1.16.0 + */ + export default SimpleFormLayout; +} + +declare module "sap/ui/layout/GridPosition" { + import GridPosition from "sap/ui/layout/library"; + + /** + * The position of the {@link sap.ui.layout.Grid}. Can be Left (default), Center or Right. + * + * @public + */ + export default GridPosition; +} + +declare module "sap/ui/layout/SideContentFallDown" { + import SideContentFallDown from "sap/ui/layout/library"; + + /** + * Types of the DynamicSideContent FallDown options + * + * @public + * @since 1.30 + */ + export default SideContentFallDown; +} + +declare module "sap/ui/layout/SideContentPosition" { + import SideContentPosition from "sap/ui/layout/library"; + + /** + * The position of the side content - End (default) and Begin. + * + * @public + */ + export default SideContentPosition; +} + +declare module "sap/ui/layout/SideContentVisibility" { + import SideContentVisibility from "sap/ui/layout/library"; + + /** + * Types of the DynamicSideContent Visibility options + * + * @public + * @since 1.30 + */ + export default SideContentVisibility; +} diff --git a/resources/overrides/library/sap.ui.mdc.d.ts b/resources/overrides/library/sap.ui.mdc.d.ts new file mode 100644 index 00000000..12e1b4fe --- /dev/null +++ b/resources/overrides/library/sap.ui.mdc.d.ts @@ -0,0 +1,128 @@ +declare module "sap/ui/mdc/ChartP13nMode" { + import ChartP13nMode from "sap/ui/mdc/library"; + + /** + * Defines the personalization mode of the chart. + * + * @deprecated (since 1.115.0) - please see {@link sap.ui.mdc.enums.ChartP13nMode} + * @restricted + * @since 1.75 + */ + export default ChartP13nMode; +} + +declare module "sap/ui/mdc/ChartToolbarActionType" { + import ChartToolbarActionType from "sap/ui/mdc/library"; + + /** + * Defines the types of chart actions in the toolbar.
Can be used to remove some of the default ToolbarAction. For more information, see @link sap.ui.mdc.Chart#ignoreToolbarActions}. + * + * @deprecated (since 1.115.0) - please see {@link sap.ui.mdc.enums.ChartToolbarActionType} + * @restricted + * @since 1.64 + */ + export default ChartToolbarActionType; +} + +declare module "sap/ui/mdc/FilterBarP13nMode" { + import FilterBarP13nMode from "sap/ui/mdc/library"; + + /** + * Defines the personalization mode of the filter bar. + * + * @deprecated (since 1.115.0) - please see {@link sap.ui.mdc.enums.FilterBarP13nMode} + * @restricted + * @since 1.74 + */ + export default FilterBarP13nMode; +} + +declare module "sap/ui/mdc/GrowingMode" { + import GrowingMode from "sap/ui/mdc/library"; + + /** + * Defines the growing options of the responsive table. + * + * @deprecated (since 1.115.0) - please see {@link sap.ui.mdc.enums.TableGrowingMode} + * @restricted + * @since 1.65 + */ + export default GrowingMode; +} + +declare module "sap/ui/mdc/MultiSelectMode" { + import MultiSelectMode from "sap/ui/mdc/library"; + + /** + * Enumeration of the multiSelectMode in ListBase. + * + * @deprecated (since 1.115.0) - please see {@link sap.ui.mdc.enums.TableMultiSelectMode} + * @restricted + */ + export default MultiSelectMode; +} + +declare module "sap/ui/mdc/RowAction" { + import RowAction from "sap/ui/mdc/library"; + + /** + * Defines the actions that can be used in the table. + * + * @deprecated (since 1.115.0) - please see {@link sap.ui.mdc.enums.TableRowAction} + * @restricted + * @since 1.60 + */ + export default RowAction; +} + +declare module "sap/ui/mdc/RowCountMode" { + import RowCountMode from "sap/ui/mdc/library"; + + /** + * Defines the row count mode of the GridTable. + * + * @deprecated (since 1.115.0) - please see {@link sap.ui.mdc.enums.TableRowCountMode} + * @restricted + * @since 1.65 + */ + export default RowCountMode; +} + +declare module "sap/ui/mdc/SelectionMode" { + import SelectionMode from "sap/ui/mdc/library"; + + /** + * Defines the mode of the table. + * + * @deprecated (since 1.115.0) - please see {@link sap.ui.mdc.enums.TableSelectionMode} + * @restricted + * @since 1.58 + */ + export default SelectionMode; +} + +declare module "sap/ui/mdc/TableP13nMode" { + import TableP13nMode from "sap/ui/mdc/library"; + + /** + * Defines the personalization mode of the table. + * + * @deprecated (since 1.115.0) - please see {@link sap.ui.mdc.enums.TableP13nMode} + * @restricted + * @since 1.62 + */ + export default TableP13nMode; +} + +declare module "sap/ui/mdc/TableType" { + import TableType from "sap/ui/mdc/library"; + + /** + * Defines the type of table used in the MDC table. + * + * @deprecated (since 1.115.0) - please see {@link sap.ui.mdc.enums.TableType} + * @restricted + * @since 1.58 + */ + export default TableType; +} diff --git a/resources/overrides/library/sap.ui.richtexteditor.d.ts b/resources/overrides/library/sap.ui.richtexteditor.d.ts new file mode 100644 index 00000000..91714b15 --- /dev/null +++ b/resources/overrides/library/sap.ui.richtexteditor.d.ts @@ -0,0 +1,10 @@ +declare module "sap/ui/richtexteditor/EditorType" { + import EditorType from "sap/ui/richtexteditor/library"; + + /** + * Determines which editor component should be used for editing the text. + * + * @public + */ + export default EditorType; +} diff --git a/resources/overrides/library/sap.ui.suite.d.ts b/resources/overrides/library/sap.ui.suite.d.ts new file mode 100644 index 00000000..d41c6868 --- /dev/null +++ b/resources/overrides/library/sap.ui.suite.d.ts @@ -0,0 +1,10 @@ +declare module "sap/ui/suite/TaskCircleColor" { + import TaskCircleColor from "sap/ui/suite/library"; + + /** + * Defined color values for the Task Circle Control + * + * @public + */ + export default TaskCircleColor; +} diff --git a/resources/overrides/library/sap.ui.support.d.ts b/resources/overrides/library/sap.ui.support.d.ts new file mode 100644 index 00000000..9c7b4485 --- /dev/null +++ b/resources/overrides/library/sap.ui.support.d.ts @@ -0,0 +1,59 @@ +declare module "sap/ui/support/Audiences" { + import Audiences from "sap/ui/support/library"; + + /** + * Defines the Audiences. + * + * @public + * @since 1.50 + */ + export default Audiences; +} + +declare module "sap/ui/support/Categories" { + import Categories from "sap/ui/support/library"; + + /** + * Issue Categories. + * + * @public + * @since 1.50 + */ + export default Categories; +} + +declare module "sap/ui/support/HistoryFormats" { + import HistoryFormats from "sap/ui/support/library"; + + /** + * Analysis history formats. + * + * @public + * @since 1.58 + */ + export default HistoryFormats; +} + +declare module "sap/ui/support/Severity" { + import Severity from "sap/ui/support/library"; + + /** + * Defines severity types. + * + * @public + * @since 1.50 + */ + export default Severity; +} + +declare module "sap/ui/support/SystemPresets" { + import SystemPresets from "sap/ui/support/library"; + + /** + * Contains the available system presets. + * + * @public + * @since 1.60 + */ + export default SystemPresets; +} diff --git a/resources/overrides/library/sap.ui.table.d.ts b/resources/overrides/library/sap.ui.table.d.ts new file mode 100644 index 00000000..3fc8fc01 --- /dev/null +++ b/resources/overrides/library/sap.ui.table.d.ts @@ -0,0 +1,104 @@ +declare module "sap/ui/table/GroupEventType" { + import GroupEventType from "sap/ui/table/library"; + + /** + * Details about the group event to distinguish between different actions associated with grouping + * + * @public + */ + export default GroupEventType; +} + +declare module "sap/ui/table/NavigationMode" { + import NavigationMode from "sap/ui/table/library"; + + /** + * Navigation mode of the table + * + * @deprecated (since 1.38) + * @public + */ + export default NavigationMode; +} + +declare module "sap/ui/table/ResetAllMode" { + import ResetAllMode from "sap/ui/table/library"; + + /** + * Enumeration of the ResetAllMode that can be used in a TablePersoController. + * + * @deprecated (since 1.115) + * @public + */ + export default ResetAllMode; +} + +declare module "sap/ui/table/RowActionType" { + import RowActionType from "sap/ui/table/library"; + + /** + * Row Action types. + * + * @public + */ + export default RowActionType; +} + +declare module "sap/ui/table/SelectionBehavior" { + import SelectionBehavior from "sap/ui/table/library"; + + /** + * Selection behavior of the table + * + * @public + */ + export default SelectionBehavior; +} + +declare module "sap/ui/table/SelectionMode" { + import SelectionMode from "sap/ui/table/library"; + + /** + * Selection mode of the table + * + * @public + */ + export default SelectionMode; +} + +declare module "sap/ui/table/SharedDomRef" { + import SharedDomRef from "sap/ui/table/library"; + + /** + * Shared DOM Reference IDs of the table. + * + * Contains IDs of shared DOM references, which should be accessible to inheriting controls via getDomRef() function. + * + * @public + */ + export default SharedDomRef; +} + +declare module "sap/ui/table/SortOrder" { + import SortOrder from "sap/ui/table/library"; + + /** + * Sort order of a column + * + * @deprecated (since 1.120) - replaced with sap.ui.core.SortOrder + * @public + */ + export default SortOrder; +} + +declare module "sap/ui/table/VisibleRowCountMode" { + import VisibleRowCountMode from "sap/ui/table/library"; + + /** + * VisibleRowCountMode of the table + * + * @deprecated (since 1.119) + * @public + */ + export default VisibleRowCountMode; +} diff --git a/resources/overrides/library/sap.ui.unified.d.ts b/resources/overrides/library/sap.ui.unified.d.ts new file mode 100644 index 00000000..2c96a003 --- /dev/null +++ b/resources/overrides/library/sap.ui.unified.d.ts @@ -0,0 +1,108 @@ +declare module "sap/ui/unified/CalendarAppointmentHeight" { + import CalendarAppointmentHeight from "sap/ui/unified/library"; + + /** + * Types of a calendar appointment display mode + * + * @public + * @since 1.80.0 + */ + export default CalendarAppointmentHeight; +} + +declare module "sap/ui/unified/CalendarAppointmentRoundWidth" { + import CalendarAppointmentRoundWidth from "sap/ui/unified/library"; + + /** + * Types of a calendar appointment display mode + * + * @experimental (since 1.81.0) + * @public + * @since 1.81.0 + */ + export default CalendarAppointmentRoundWidth; +} + +declare module "sap/ui/unified/CalendarAppointmentVisualization" { + import CalendarAppointmentVisualization from "sap/ui/unified/library"; + + /** + * Visualization types for {@link sap.ui.unified.CalendarAppointment}. + * + * @public + * @since 1.40.0 + */ + export default CalendarAppointmentVisualization; +} + +declare module "sap/ui/unified/CalendarDayType" { + import CalendarDayType from "sap/ui/unified/library"; + + /** + * Types of a calendar day used for visualization. + * + * @public + * @since 1.13 + */ + export default CalendarDayType; +} + +declare module "sap/ui/unified/CalendarIntervalType" { + import CalendarIntervalType from "sap/ui/unified/library"; + + /** + * Interval types in a CalendarRow. + * + * @public + * @since 1.34.0 + */ + export default CalendarIntervalType; +} + +declare module "sap/ui/unified/ColorPickerMode" { + import ColorPickerMode from "sap/ui/unified/library"; + + /** + * different styles for a ColorPicker. + * + * @public + */ + export default ColorPickerMode; +} + +declare module "sap/ui/unified/ContentSwitcherAnimation" { + import ContentSwitcherAnimation from "sap/ui/unified/library"; + + /** + * Predefined animations for the ContentSwitcher + * + * @experimental (since 1.16.0) - API is not yet finished and might change completely + * @public + * @since 1.16.0 + */ + export default ContentSwitcherAnimation; +} + +declare module "sap/ui/unified/GroupAppointmentsMode" { + import GroupAppointmentsMode from "sap/ui/unified/library"; + + /** + * Types of display mode for overlapping appointments. + * + * @public + * @since 1.48.0 + */ + export default GroupAppointmentsMode; +} + +declare module "sap/ui/unified/StandardCalendarLegendItem" { + import StandardCalendarLegendItem from "sap/ui/unified/library"; + + /** + * Standard day types visualized in a {@link sap.m.PlanningCalendarLegend}, which correspond to days in a {@link sap.ui.unified.Calendar}. + * + * @public + * @since 1.50 + */ + export default StandardCalendarLegendItem; +} diff --git a/resources/overrides/library/sap.ui.ux3.d.ts b/resources/overrides/library/sap.ui.ux3.d.ts new file mode 100644 index 00000000..bb6e2a8e --- /dev/null +++ b/resources/overrides/library/sap.ui.ux3.d.ts @@ -0,0 +1,112 @@ +declare module "sap/ui/ux3/ActionBarSocialActions" { + import ActionBarSocialActions from "sap/ui/ux3/library"; + + /** + * Enumeration of available standard actions for 'sap.ui.ux3.ActionBar'. To be used as parameters for function 'sap.ui.ux3.ActionBar.getSocialAction'. + * + * @experimental (since 1.2) - API is not yet finished and might change completely + * @deprecated (since 1.38) + * @public + */ + export default ActionBarSocialActions; +} + +declare module "sap/ui/ux3/ExactOrder" { + import ExactOrder from "sap/ui/ux3/library"; + + /** + * Defines the order of the sub lists of a list in the ExactBrowser. + * + * @deprecated (since 1.38) + * @public + * @since 1.7.1 + */ + export default ExactOrder; +} + +declare module "sap/ui/ux3/FeederType" { + import FeederType from "sap/ui/ux3/library"; + + /** + * Type of a Feeder. + * + * @experimental (since 1.2) - The whole Feed/Feeder API is still under discussion, significant changes are likely. Especially text presentation (e.g. @-references and formatted text) is not final. Also the Feed model topic is still open. + * @deprecated (since 1.38) + * @public + */ + export default FeederType; +} + +declare module "sap/ui/ux3/FollowActionState" { + import FollowActionState from "sap/ui/ux3/library"; + + /** + * Defines the states of the follow action + * + * @deprecated (since 1.38) + * @public + */ + export default FollowActionState; +} + +declare module "sap/ui/ux3/NotificationBarStatus" { + import NotificationBarStatus from "sap/ui/ux3/library"; + + /** + * This entries are used to set the visibility status of a NotificationBar + * + * @deprecated (since 1.38) + * @public + */ + export default NotificationBarStatus; +} + +declare module "sap/ui/ux3/ShellDesignType" { + import ShellDesignType from "sap/ui/ux3/library"; + + /** + * Available shell design types. + * + * @deprecated (since 1.38) + * @public + * @since 1.12.0 + */ + export default ShellDesignType; +} + +declare module "sap/ui/ux3/ShellHeaderType" { + import ShellHeaderType from "sap/ui/ux3/library"; + + /** + * Available shell header display types. + * + * @deprecated (since 1.38) + * @public + */ + export default ShellHeaderType; +} + +declare module "sap/ui/ux3/ThingViewerHeaderType" { + import ThingViewerHeaderType from "sap/ui/ux3/library"; + + /** + * Available ThingViewer header display types. + * + * @deprecated (since 1.38) + * @public + * @since 1.16.3 + */ + export default ThingViewerHeaderType; +} + +declare module "sap/ui/ux3/VisibleItemCountMode" { + import VisibleItemCountMode from "sap/ui/ux3/library"; + + /** + * VisibleItemCountMode of the FacetFilter defines if the FacetFilter takes the whole available height (Auto) in the surrounding container, or is so high as needed to show 5 Items ("Fixed " - default). + * + * @deprecated (since 1.38) + * @public + */ + export default VisibleItemCountMode; +} diff --git a/resources/overrides/library/sap.ui.vbm.d.ts b/resources/overrides/library/sap.ui.vbm.d.ts new file mode 100644 index 00000000..d389aca9 --- /dev/null +++ b/resources/overrides/library/sap.ui.vbm.d.ts @@ -0,0 +1,32 @@ +declare module "sap/ui/vbm/ClusterInfoType" { + import ClusterInfoType from "sap/ui/vbm/library"; + + /** + * Cluster Info Type + * + * @public + */ + export default ClusterInfoType; +} + +declare module "sap/ui/vbm/RouteType" { + import RouteType from "sap/ui/vbm/library"; + + /** + * Route type, determining how line between start and endpoint should be drawn. + * + * @public + */ + export default RouteType; +} + +declare module "sap/ui/vbm/SemanticType" { + import SemanticType from "sap/ui/vbm/library"; + + /** + * Semantic type with pre-defined display properties, like colors, icon, pin image, and so on. Semantic types enforce to fiori guidelines. + * + * @public + */ + export default SemanticType; +} diff --git a/resources/overrides/library/sap.ui.webc.fiori.d.ts b/resources/overrides/library/sap.ui.webc.fiori.d.ts new file mode 100644 index 00000000..4069dc62 --- /dev/null +++ b/resources/overrides/library/sap.ui.webc.fiori.d.ts @@ -0,0 +1,207 @@ +declare module "sap/ui/webc/fiori/BarDesign" { + import BarDesign from "sap/ui/webc/fiori/library"; + + /** + * Different types of Bar design + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default BarDesign; +} + +declare module "sap/ui/webc/fiori/FCLLayout" { + import FCLLayout from "sap/ui/webc/fiori/library"; + + /** + * Different types of FCLLayout. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default FCLLayout; +} + +declare module "sap/ui/webc/fiori/IllustrationMessageSize" { + import IllustrationMessageSize from "sap/ui/webc/fiori/library"; + + /** + * Different types of IllustrationMessageSize. + * + * @experimental (since 1.106.0) - This API is experimental and might change significantly. + * @public + * @since 1.106.0 + */ + export default IllustrationMessageSize; +} + +declare module "sap/ui/webc/fiori/IllustrationMessageType" { + import IllustrationMessageType from "sap/ui/webc/fiori/library"; + + /** + * Different illustration types of Illustrated Message. + * + * @experimental (since 1.95.0) - This API is experimental and might change significantly. + * @public + * @since 1.95.0 + */ + export default IllustrationMessageType; +} + +declare module "sap/ui/webc/fiori/MediaGalleryItemLayout" { + import MediaGalleryItemLayout from "sap/ui/webc/fiori/library"; + + /** + * Defines the layout of the content displayed in the ui5-media-gallery-item. + * + * @experimental (since 1.99.0) - This API is experimental and might change significantly. + * @public + * @since 1.99.0 + */ + export default MediaGalleryItemLayout; +} + +declare module "sap/ui/webc/fiori/MediaGalleryLayout" { + import MediaGalleryLayout from "sap/ui/webc/fiori/library"; + + /** + * Defines the layout type of the thumbnails list of the ui5-media-gallery component. + * + * @experimental (since 1.99.0) - This API is experimental and might change significantly. + * @public + * @since 1.99.0 + */ + export default MediaGalleryLayout; +} + +declare module "sap/ui/webc/fiori/MediaGalleryMenuHorizontalAlign" { + import MediaGalleryMenuHorizontalAlign from "sap/ui/webc/fiori/library"; + + /** + * Defines the horizontal alignment of the thumbnails menu of the ui5-media-gallery component. + * + * @experimental (since 1.99.0) - This API is experimental and might change significantly. + * @public + * @since 1.99.0 + */ + export default MediaGalleryMenuHorizontalAlign; +} + +declare module "sap/ui/webc/fiori/MediaGalleryMenuVerticalAlign" { + import MediaGalleryMenuVerticalAlign from "sap/ui/webc/fiori/library"; + + /** + * Types for the vertical alignment of the thumbnails menu of the ui5-media-gallery component. + * + * @experimental (since 1.99.0) - This API is experimental and might change significantly. + * @public + * @since 1.99.0 + */ + export default MediaGalleryMenuVerticalAlign; +} + +declare module "sap/ui/webc/fiori/PageBackgroundDesign" { + import PageBackgroundDesign from "sap/ui/webc/fiori/library"; + + /** + * Available Page Background Design. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default PageBackgroundDesign; +} + +declare module "sap/ui/webc/fiori/SideContentFallDown" { + import SideContentFallDown from "sap/ui/webc/fiori/library"; + + /** + * SideContent FallDown options. + * + * @experimental (since 1.99.0) - This API is experimental and might change significantly. + * @public + * @since 1.99.0 + */ + export default SideContentFallDown; +} + +declare module "sap/ui/webc/fiori/SideContentPosition" { + import SideContentPosition from "sap/ui/webc/fiori/library"; + + /** + * Side Content position options. + * + * @experimental (since 1.99.0) - This API is experimental and might change significantly. + * @public + * @since 1.99.0 + */ + export default SideContentPosition; +} + +declare module "sap/ui/webc/fiori/SideContentVisibility" { + import SideContentVisibility from "sap/ui/webc/fiori/library"; + + /** + * Side Content visibility options. + * + * @experimental (since 1.99.0) - This API is experimental and might change significantly. + * @public + * @since 1.99.0 + */ + export default SideContentVisibility; +} + +declare module "sap/ui/webc/fiori/TimelineLayout" { + import TimelineLayout from "sap/ui/webc/fiori/library"; + + /** + * Available Timeline layout orientation + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default TimelineLayout; +} + +declare module "sap/ui/webc/fiori/UploadState" { + import UploadState from "sap/ui/webc/fiori/library"; + + /** + * Different types of UploadState. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default UploadState; +} + +declare module "sap/ui/webc/fiori/ViewSettingsDialogMode" { + import ViewSettingsDialogMode from "sap/ui/webc/fiori/library"; + + /** + * Different types of Bar. + * + * @experimental (since 1.115.0) - This API is experimental and might change significantly. + * @public + * @since 1.115.0 + */ + export default ViewSettingsDialogMode; +} + +declare module "sap/ui/webc/fiori/WizardContentLayout" { + import WizardContentLayout from "sap/ui/webc/fiori/library"; + + /** + * Enumeration for different content layouts of the ui5-wizard. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default WizardContentLayout; +} diff --git a/resources/overrides/library/sap.ui.webc.main.d.ts b/resources/overrides/library/sap.ui.webc.main.d.ts new file mode 100644 index 00000000..ad02ac3d --- /dev/null +++ b/resources/overrides/library/sap.ui.webc.main.d.ts @@ -0,0 +1,584 @@ +declare module "sap/ui/webc/main/AvatarColorScheme" { + import AvatarColorScheme from "sap/ui/webc/main/library"; + + /** + * Different types of AvatarColorScheme. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default AvatarColorScheme; +} + +declare module "sap/ui/webc/main/AvatarGroupType" { + import AvatarGroupType from "sap/ui/webc/main/library"; + + /** + * Different types of AvatarGroupType. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default AvatarGroupType; +} + +declare module "sap/ui/webc/main/AvatarShape" { + import AvatarShape from "sap/ui/webc/main/library"; + + /** + * Different types of AvatarShape. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default AvatarShape; +} + +declare module "sap/ui/webc/main/AvatarSize" { + import AvatarSize from "sap/ui/webc/main/library"; + + /** + * Different types of AvatarSize. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default AvatarSize; +} + +declare module "sap/ui/webc/main/BackgroundDesign" { + import BackgroundDesign from "sap/ui/webc/main/library"; + + /** + * Defines background designs. + * + * @experimental (since 1.115.0) - This API is experimental and might change significantly. + * @public + * @since 1.115.0 + */ + export default BackgroundDesign; +} + +declare module "sap/ui/webc/main/BorderDesign" { + import BorderDesign from "sap/ui/webc/main/library"; + + /** + * Defines border designs. + * + * @experimental (since 1.115.0) - This API is experimental and might change significantly. + * @public + * @since 1.115.0 + */ + export default BorderDesign; +} + +declare module "sap/ui/webc/main/BreadcrumbsDesign" { + import BreadcrumbsDesign from "sap/ui/webc/main/library"; + + /** + * Different Breadcrumbs designs. + * + * @experimental (since 1.95.0) - This API is experimental and might change significantly. + * @public + * @since 1.95.0 + */ + export default BreadcrumbsDesign; +} + +declare module "sap/ui/webc/main/BreadcrumbsSeparatorStyle" { + import BreadcrumbsSeparatorStyle from "sap/ui/webc/main/library"; + + /** + * Different Breadcrumbs separator styles. + * + * @experimental (since 1.95.0) - This API is experimental and might change significantly. + * @public + * @since 1.95.0 + */ + export default BreadcrumbsSeparatorStyle; +} + +declare module "sap/ui/webc/main/BusyIndicatorSize" { + import BusyIndicatorSize from "sap/ui/webc/main/library"; + + /** + * Different BusyIndicator sizes. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default BusyIndicatorSize; +} + +declare module "sap/ui/webc/main/ButtonDesign" { + import ButtonDesign from "sap/ui/webc/main/library"; + + /** + * Different Button designs. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default ButtonDesign; +} + +declare module "sap/ui/webc/main/ButtonType" { + import ButtonType from "sap/ui/webc/main/library"; + + /** + * Determines if the button has special form-related functionality. + * + * @experimental (since 1.120.0) - This API is experimental and might change significantly. + * @public + * @since 1.120.0 + */ + export default ButtonType; +} + +declare module "sap/ui/webc/main/CalendarSelectionMode" { + import CalendarSelectionMode from "sap/ui/webc/main/library"; + + /** + * Different Calendar selection mode. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default CalendarSelectionMode; +} + +declare module "sap/ui/webc/main/CarouselArrowsPlacement" { + import CarouselArrowsPlacement from "sap/ui/webc/main/library"; + + /** + * Different Carousel arrows placement. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default CarouselArrowsPlacement; +} + +declare module "sap/ui/webc/main/CarouselPageIndicatorStyle" { + import CarouselPageIndicatorStyle from "sap/ui/webc/main/library"; + + /** + * Different Carousel page indicator styles. + * + * @experimental (since 1.115.0) - This API is experimental and might change significantly. + * @public + * @since 1.115.0 + */ + export default CarouselPageIndicatorStyle; +} + +declare module "sap/ui/webc/main/ComboBoxFilter" { + import ComboBoxFilter from "sap/ui/webc/main/library"; + + /** + * Different filtering types of the ComboBox. + * + * @experimental (since 1.115.0) - This API is experimental and might change significantly. + * @public + * @since 1.115.0 + */ + export default ComboBoxFilter; +} + +declare module "sap/ui/webc/main/HasPopup" { + import HasPopup from "sap/ui/webc/main/library"; + + /** + * Different types of HasPopup. + * + * @experimental (since 1.99.0) - This API is experimental and might change significantly. + * @public + * @since 1.99.0 + */ + export default HasPopup; +} + +declare module "sap/ui/webc/main/IconDesign" { + import IconDesign from "sap/ui/webc/main/library"; + + /** + * Different Icon semantic designs. + * + * @experimental (since 1.115.0) - This API is experimental and might change significantly. + * @public + * @since 1.115.0 + */ + export default IconDesign; +} + +declare module "sap/ui/webc/main/InputType" { + import InputType from "sap/ui/webc/main/library"; + + /** + * Different input types. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default InputType; +} + +declare module "sap/ui/webc/main/LinkDesign" { + import LinkDesign from "sap/ui/webc/main/library"; + + /** + * Different link designs. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default LinkDesign; +} + +declare module "sap/ui/webc/main/ListGrowingMode" { + import ListGrowingMode from "sap/ui/webc/main/library"; + + /** + * Different list growing modes. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default ListGrowingMode; +} + +declare module "sap/ui/webc/main/ListItemType" { + import ListItemType from "sap/ui/webc/main/library"; + + /** + * Different list item types. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default ListItemType; +} + +declare module "sap/ui/webc/main/ListMode" { + import ListMode from "sap/ui/webc/main/library"; + + /** + * Different list modes. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default ListMode; +} + +declare module "sap/ui/webc/main/ListSeparators" { + import ListSeparators from "sap/ui/webc/main/library"; + + /** + * Different types of list items separators. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default ListSeparators; +} + +declare module "sap/ui/webc/main/MessageStripDesign" { + import MessageStripDesign from "sap/ui/webc/main/library"; + + /** + * MessageStrip designs. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default MessageStripDesign; +} + +declare module "sap/ui/webc/main/PanelAccessibleRole" { + import PanelAccessibleRole from "sap/ui/webc/main/library"; + + /** + * Panel accessible roles. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default PanelAccessibleRole; +} + +declare module "sap/ui/webc/main/PopoverHorizontalAlign" { + import PopoverHorizontalAlign from "sap/ui/webc/main/library"; + + /** + * Popover horizontal align types. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default PopoverHorizontalAlign; +} + +declare module "sap/ui/webc/main/PopoverPlacementType" { + import PopoverPlacementType from "sap/ui/webc/main/library"; + + /** + * Popover placement types. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default PopoverPlacementType; +} + +declare module "sap/ui/webc/main/PopoverVerticalAlign" { + import PopoverVerticalAlign from "sap/ui/webc/main/library"; + + /** + * Popover vertical align types. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default PopoverVerticalAlign; +} + +declare module "sap/ui/webc/main/PopupAccessibleRole" { + import PopupAccessibleRole from "sap/ui/webc/main/library"; + + /** + * Popup accessible roles. + * + * @experimental (since 1.115.0) - This API is experimental and might change significantly. + * @public + * @since 1.115.0 + */ + export default PopupAccessibleRole; +} + +declare module "sap/ui/webc/main/Priority" { + import Priority from "sap/ui/webc/main/library"; + + /** + * Different types of Priority. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default Priority; +} + +declare module "sap/ui/webc/main/SegmentedButtonMode" { + import SegmentedButtonMode from "sap/ui/webc/main/library"; + + /** + * Different SegmentedButton modes. + * + * @experimental (since 1.115.0) - This API is experimental and might change significantly. + * @public + * @since 1.115.0 + */ + export default SegmentedButtonMode; +} + +declare module "sap/ui/webc/main/SemanticColor" { + import SemanticColor from "sap/ui/webc/main/library"; + + /** + * Different types of SemanticColor. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default SemanticColor; +} + +declare module "sap/ui/webc/main/SwitchDesign" { + import SwitchDesign from "sap/ui/webc/main/library"; + + /** + * Different types of Switch designs. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default SwitchDesign; +} + +declare module "sap/ui/webc/main/TabContainerBackgroundDesign" { + import TabContainerBackgroundDesign from "sap/ui/webc/main/library"; + + /** + * Background design for the header and content of TabContainer. + * + * @experimental (since 1.115.0) - This API is experimental and might change significantly. + * @public + * @since 1.115.0 + */ + export default TabContainerBackgroundDesign; +} + +declare module "sap/ui/webc/main/TabLayout" { + import TabLayout from "sap/ui/webc/main/library"; + + /** + * Tab layout of TabContainer. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default TabLayout; +} + +declare module "sap/ui/webc/main/TableColumnPopinDisplay" { + import TableColumnPopinDisplay from "sap/ui/webc/main/library"; + + /** + * Table cell popin display. + * + * @experimental (since 1.115.0) - This API is experimental and might change significantly. + * @public + * @since 1.115.0 + */ + export default TableColumnPopinDisplay; +} + +declare module "sap/ui/webc/main/TableGrowingMode" { + import TableGrowingMode from "sap/ui/webc/main/library"; + + /** + * Different table growing modes. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default TableGrowingMode; +} + +declare module "sap/ui/webc/main/TableMode" { + import TableMode from "sap/ui/webc/main/library"; + + /** + * Different table modes. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default TableMode; +} + +declare module "sap/ui/webc/main/TableRowType" { + import TableRowType from "sap/ui/webc/main/library"; + + /** + * Different table row types. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default TableRowType; +} + +declare module "sap/ui/webc/main/TabsOverflowMode" { + import TabsOverflowMode from "sap/ui/webc/main/library"; + + /** + * Tabs overflow mode in TabContainer. + * + * @experimental (since 1.99.0) - This API is experimental and might change significantly. + * @public + * @since 1.99.0 + */ + export default TabsOverflowMode; +} + +declare module "sap/ui/webc/main/TitleLevel" { + import TitleLevel from "sap/ui/webc/main/library"; + + /** + * Different types of Title level. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default TitleLevel; +} + +declare module "sap/ui/webc/main/ToastPlacement" { + import ToastPlacement from "sap/ui/webc/main/library"; + + /** + * Toast placement. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default ToastPlacement; +} + +declare module "sap/ui/webc/main/ToolbarAlign" { + import ToolbarAlign from "sap/ui/webc/main/library"; + + /** + * Defines which direction the items of ui5-toolbar will be aligned. + * + * @experimental (since 1.120.0) - This API is experimental and might change significantly. + * @public + * @since 1.120.0 + */ + export default ToolbarAlign; +} + +declare module "sap/ui/webc/main/ToolbarItemOverflowBehavior" { + import ToolbarItemOverflowBehavior from "sap/ui/webc/main/library"; + + /** + * Defines the priority of the toolbar item to go inside overflow popover. + * + * @experimental (since 1.120.0) - This API is experimental and might change significantly. + * @public + * @since 1.120.0 + */ + export default ToolbarItemOverflowBehavior; +} + +declare module "sap/ui/webc/main/WrappingType" { + import WrappingType from "sap/ui/webc/main/library"; + + /** + * Different types of wrapping. + * + * @experimental (since 1.92.0) - This API is experimental and might change significantly. + * @public + * @since 1.92.0 + */ + export default WrappingType; +} diff --git a/resources/overrides/library/sap.ushell.d.ts b/resources/overrides/library/sap.ushell.d.ts new file mode 100644 index 00000000..1d790906 --- /dev/null +++ b/resources/overrides/library/sap.ushell.d.ts @@ -0,0 +1,21 @@ +declare module "sap/ushell/ContentNodeType" { + import ContentNodeType from "sap/ushell/library"; + + /** + * Denotes the types of the content nodes. + * + * @public + */ + export default ContentNodeType; +} + +declare module "sap/ushell/NavigationState" { + import NavigationState from "sap/ushell/library"; + + /** + * The state of a navigation operation + * + * @public + */ + export default NavigationState; +} diff --git a/resources/overrides/library/sap.uxap.d.ts b/resources/overrides/library/sap.uxap.d.ts new file mode 100644 index 00000000..8b3fe30a --- /dev/null +++ b/resources/overrides/library/sap.uxap.d.ts @@ -0,0 +1,77 @@ +declare module "sap/uxap/BlockBaseFormAdjustment" { + import BlockBaseFormAdjustment from "sap/uxap/library"; + + /** + * Used by the BlockBase control to define if it should do automatic adjustment of its nested forms. + * + * @public + */ + export default BlockBaseFormAdjustment; +} + +declare module "sap/uxap/Importance" { + import Importance from "sap/uxap/library"; + + /** + * Used by the ObjectSectionBase control to define the importance of the content contained in it. + * + * @public + * @since 1.32.0 + */ + export default Importance; +} + +declare module "sap/uxap/ObjectPageConfigurationMode" { + import ObjectPageConfigurationMode from "sap/uxap/library"; + + /** + * Used by the sap.uxap.component.Component how to initialize the ObjectPageLayout sections and subsections. + * + * @public + */ + export default ObjectPageConfigurationMode; +} + +declare module "sap/uxap/ObjectPageHeaderDesign" { + import ObjectPageHeaderDesign from "sap/uxap/library"; + + /** + * Used by the ObjectPageHeader control to define which design to use. + * + * @public + */ + export default ObjectPageHeaderDesign; +} + +declare module "sap/uxap/ObjectPageHeaderPictureShape" { + import ObjectPageHeaderPictureShape from "sap/uxap/library"; + + /** + * Used by the ObjectPageHeader control to define which shape to use for the image. + * + * @public + */ + export default ObjectPageHeaderPictureShape; +} + +declare module "sap/uxap/ObjectPageSubSectionLayout" { + import ObjectPageSubSectionLayout from "sap/uxap/library"; + + /** + * Used by the ObjectPagSubSection control to define which layout to apply. + * + * @public + */ + export default ObjectPageSubSectionLayout; +} + +declare module "sap/uxap/ObjectPageSubSectionMode" { + import ObjectPageSubSectionMode from "sap/uxap/library"; + + /** + * Used by the ObjectPageLayout control to define which layout to use (either Collapsed or Expanded). + * + * @public + */ + export default ObjectPageSubSectionMode; +} diff --git a/resources/overrides/library/sap.viz.d.ts b/resources/overrides/library/sap.viz.d.ts new file mode 100644 index 00000000..673b2a4d --- /dev/null +++ b/resources/overrides/library/sap.viz.d.ts @@ -0,0 +1,737 @@ +declare module "sap/viz/Area_drawingEffect" { + import Area_drawingEffect from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Area_drawingEffect + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Area_drawingEffect; +} + +declare module "sap/viz/Area_marker_shape" { + import Area_marker_shape from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Area_marker_shape + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Area_marker_shape; +} + +declare module "sap/viz/Area_mode" { + import Area_mode from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Area_mode + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Area_mode; +} + +declare module "sap/viz/Area_orientation" { + import Area_orientation from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Area_orientation + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Area_orientation; +} + +declare module "sap/viz/Axis_gridline_type" { + import Axis_gridline_type from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Axis_gridline_type + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Axis_gridline_type; +} + +declare module "sap/viz/Axis_label_unitFormatType" { + import Axis_label_unitFormatType from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Axis_label_unitFormatType + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Axis_label_unitFormatType; +} + +declare module "sap/viz/Axis_position" { + import Axis_position from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Axis_position + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Axis_position; +} + +declare module "sap/viz/Axis_type" { + import Axis_type from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Axis_type + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Axis_type; +} + +declare module "sap/viz/Background_direction" { + import Background_direction from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Background_direction + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Background_direction; +} + +declare module "sap/viz/Background_drawingEffect" { + import Background_drawingEffect from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Background_drawingEffect + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Background_drawingEffect; +} + +declare module "sap/viz/Bar_drawingEffect" { + import Bar_drawingEffect from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Bar_drawingEffect + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Bar_drawingEffect; +} + +declare module "sap/viz/Bar_orientation" { + import Bar_orientation from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Bar_orientation + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Bar_orientation; +} + +declare module "sap/viz/Bubble_drawingEffect" { + import Bubble_drawingEffect from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Bubble_drawingEffect + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Bubble_drawingEffect; +} + +declare module "sap/viz/Bullet_drawingEffect" { + import Bullet_drawingEffect from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Bullet_drawingEffect + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Bullet_drawingEffect; +} + +declare module "sap/viz/Bullet_orientation" { + import Bullet_orientation from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Bullet_orientation + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Bullet_orientation; +} + +declare module "sap/viz/Combination_drawingEffect" { + import Combination_drawingEffect from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Combination_drawingEffect + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Combination_drawingEffect; +} + +declare module "sap/viz/Combination_orientation" { + import Combination_orientation from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Combination_orientation + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Combination_orientation; +} + +declare module "sap/viz/Interaction_pan_orientation" { + import Interaction_pan_orientation from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.controller.Interaction_pan_orientation + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Interaction_pan_orientation; +} + +declare module "sap/viz/Interaction_selectability_mode" { + import Interaction_selectability_mode from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.controller.Interaction_selectability_mode + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Interaction_selectability_mode; +} + +declare module "sap/viz/Datalabel_orientation" { + import Datalabel_orientation from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Datalabel_orientation + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Datalabel_orientation; +} + +declare module "sap/viz/Datalabel_outsidePosition" { + import Datalabel_outsidePosition from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Datalabel_outsidePosition + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Datalabel_outsidePosition; +} + +declare module "sap/viz/Datalabel_paintingMode" { + import Datalabel_paintingMode from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Datalabel_paintingMode + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Datalabel_paintingMode; +} + +declare module "sap/viz/Datalabel_position" { + import Datalabel_position from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Datalabel_position + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Datalabel_position; +} + +declare module "sap/viz/Common_alignment" { + import Common_alignment from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.legend.Common_alignment + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Common_alignment; +} + +declare module "sap/viz/Common_drawingEffect" { + import Common_drawingEffect from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.legend.Common_drawingEffect + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Common_drawingEffect; +} + +declare module "sap/viz/Common_position" { + import Common_position from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.legend.Common_position + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Common_position; +} + +declare module "sap/viz/Common_type" { + import Common_type from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.legend.Common_type + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Common_type; +} + +declare module "sap/viz/Legend_layout_position" { + import Legend_layout_position from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Legend_layout_position + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Legend_layout_position; +} + +declare module "sap/viz/Line_drawingEffect" { + import Line_drawingEffect from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Line_drawingEffect + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Line_drawingEffect; +} + +declare module "sap/viz/Line_marker_shape" { + import Line_marker_shape from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Line_marker_shape + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Line_marker_shape; +} + +declare module "sap/viz/Line_orientation" { + import Line_orientation from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Line_orientation + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Line_orientation; +} + +declare module "sap/viz/Pie_drawingEffect" { + import Pie_drawingEffect from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Pie_drawingEffect + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Pie_drawingEffect; +} + +declare module "sap/viz/Pie_valign" { + import Pie_valign from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Pie_valign + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Pie_valign; +} + +declare module "sap/viz/Scatter_drawingEffect" { + import Scatter_drawingEffect from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Scatter_drawingEffect + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Scatter_drawingEffect; +} + +declare module "sap/viz/StackedVerticalBar_drawingEffect" { + import StackedVerticalBar_drawingEffect from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.StackedVerticalBar_drawingEffect + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default StackedVerticalBar_drawingEffect; +} + +declare module "sap/viz/StackedVerticalBar_mode" { + import StackedVerticalBar_mode from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.StackedVerticalBar_mode + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default StackedVerticalBar_mode; +} + +declare module "sap/viz/StackedVerticalBar_orientation" { + import StackedVerticalBar_orientation from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.StackedVerticalBar_orientation + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default StackedVerticalBar_orientation; +} + +declare module "sap/viz/Title_alignment" { + import Title_alignment from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Title_alignment + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Title_alignment; +} + +declare module "sap/viz/Tooltip_drawingEffect" { + import Tooltip_drawingEffect from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.Tooltip_drawingEffect + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default Tooltip_drawingEffect; +} + +declare module "sap/viz/VerticalBar_drawingEffect" { + import VerticalBar_drawingEffect from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.VerticalBar_drawingEffect + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default VerticalBar_drawingEffect; +} + +declare module "sap/viz/VerticalBar_orientation" { + import VerticalBar_orientation from "sap/viz/library"; + + /** + * List (Enum) type sap.viz.ui5.types.VerticalBar_orientation + * + * @experimental (since 1.7.2) - Charting API is not finished yet and might change completely. + * @deprecated (since 1.32.0) - The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility. + +SAP strongly recommends that existing consumers of those controls migrate to the new {@link sap.viz.ui5.controls.VizFrame VizFrame} control to benefit from new charting enhancements and timely support. + +Note: As the feature set, design and API usage of VizFrame might differ from the old chart controls, make sure you evaluate it thoroughly before migration. + * @public + * @since 1.7.2 + */ + export default VerticalBar_orientation; +} From 0e35bfdcca104db57dfefe14992438605fb75599 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Mon, 8 Apr 2024 16:15:25 +0300 Subject: [PATCH 10/33] refactor: Extract sapui5 version --- .../createPseudoModulesInfo.ts | 27 ++++++++++++++----- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index f67dc149..2d463c4b 100644 --- a/scripts/metadataProvider/createPseudoModulesInfo.ts +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -46,11 +46,12 @@ async function extractPseudoModuleNames() { }, Object.create(null) as Record); } -async function transformFiles() { +async function transformFiles(sapui5Version: string) { const metadataProvider = new MetadataProvider(); - await metadataProvider.init(RAW_API_JSON_FILES_FOLDER, "1.120.12" /** TODO: Extract it from URL */); - - const pseudoModuleNames = await extractPseudoModuleNames(); + const [, pseudoModuleNames] = await Promise.all([ + metadataProvider.init(RAW_API_JSON_FILES_FOLDER, sapui5Version), + extractPseudoModuleNames(), + ]); const {enums} = metadataProvider.getModel(); @@ -151,18 +152,30 @@ async function addOverrides(enums: Record) { ); } -async function main(url: string) { +async function main(url: string, sapui5Version: string) { await downloadAPIJsons(url); - await transformFiles(); + await transformFiles(sapui5Version); } try { const url = process.argv[2]; + let sapui5Version: string | null | undefined = process.argv[3]; + if (!url) { throw new Error("second argument \"url\" is missing"); } - await main(url); + + if (!sapui5Version) { + // Try to extract version from url + const versionMatch = url.match(/\/\d{1}\.\d{1,3}\.\d{1,3}\//gi); + sapui5Version = versionMatch?.[0].replaceAll("/", ""); + } + if (!sapui5Version) { + throw new Error("\"sapui5Version\" cannot be determined. Provide it as a second argument"); + } + + await main(url, sapui5Version); } catch (err) { process.stderr.write(String(err)); process.exit(1); From b27a63dfa06348a281373452b17e157302eab4f7 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Tue, 9 Apr 2024 14:27:28 +0300 Subject: [PATCH 11/33] fix: Refactor unzipping of JSON archive --- package-lock.json | 724 ++++++++++++------ package.json | 7 +- .../createPseudoModulesInfo.ts | 38 +- 3 files changed, 539 insertions(+), 230 deletions(-) diff --git a/package-lock.json b/package-lock.json index d804e23b..7ab3a3ad 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,8 +21,8 @@ "json-source-map": "^0.6.1", "sax-wasm": "^2.2.4", "typescript": "5.3.x", - "update-notifier": "^7.0.0", - "yargs": "^17.7.2" + "yargs": "^17.7.2", + "yauzl-promise": "^4.0.0" }, "bin": { "ui5lint": "bin/ui5lint.js" @@ -37,8 +37,8 @@ "@types/he": "^1.2.3", "@types/node": "^20.12.7", "@types/sinon": "^17.0.3", - "@types/update-notifier": "^6.0.8", "@types/yargs": "^17.0.32", + "@types/yauzl-promise": "^4.0.0", "@ui5-language-assistant/semantic-model": "^3.3.1", "@ui5-language-assistant/semantic-model-types": "^3.3.1", "ava": "^5.3.1", @@ -52,8 +52,7 @@ "semver": "^7.6.0", "sinon": "^17.0.1", "tsx": "^4.7.2", - "typescript-eslint": "^7.6.0", - "unzip-stream": "^0.3.1" + "typescript-eslint": "^7.5.0" }, "engines": { "node": "^18.14.2 || ^20.11.0 || >=21.2.0", @@ -401,6 +400,17 @@ "node": ">=6.0.0" } }, + "node_modules/@babel/runtime": { + "version": "7.24.4", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.4.tgz", + "integrity": "sha512-dkxf7+hn8mFBwKjs9bvBlArzLVxVbS8usaPUDd5p2a9JCL9tB8OaOVN1isD4+Xyk4ns89/xeOmbQvgdK7IIVdA==", + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/template": { "version": "7.24.0", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.24.0.tgz", @@ -697,6 +707,24 @@ "node": ">=v18" } }, + "node_modules/@emnapi/core": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.1.1.tgz", + "integrity": "sha512-eu4KjHfXg3I+UUR7vSuwZXpRo4c8h4Rtb5Lu2F7Z4JqJFl/eidquONEBiRs6viXKpWBC3BaJBy68xGJ2j56idw==", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.1.1.tgz", + "integrity": "sha512-3bfqkzuR1KLx57nZfjr2NLnFOobvyS0aTszaEGCGqmYMVDRaGvgIZbjGSV/MHSSmLgQ/b9JFHQ5xm5WRZYd+XQ==", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, "node_modules/@esbuild/aix-ppc64": { "version": "0.19.12", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.19.12.tgz", @@ -1473,6 +1501,255 @@ "node": ">=v12.0.0" } }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-0.1.2.tgz", + "integrity": "sha512-8JuczewTFIZ/XIjHQ+YlQUydHvlKx2hkcxtuGwh+t/t5zWyZct6YG4+xjHcq8xyc/e7FmFwf42Zj2YgICwmlvA==", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.1.0", + "@emnapi/runtime": "^1.1.0", + "@tybys/wasm-util": "^0.8.1" + } + }, + "node_modules/@node-rs/crc32": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@node-rs/crc32/-/crc32-1.10.0.tgz", + "integrity": "sha512-SFvU8PGZexRMRPUhi+4a9LW4oqFuK5CLEElysrKoRtNkJ+LcRFL+b3wfuzbcDq/ea0rS0nzRLFZwVsNVyWaGew==", + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "optionalDependencies": { + "@node-rs/crc32-android-arm-eabi": "1.10.0", + "@node-rs/crc32-android-arm64": "1.10.0", + "@node-rs/crc32-darwin-arm64": "1.10.0", + "@node-rs/crc32-darwin-x64": "1.10.0", + "@node-rs/crc32-freebsd-x64": "1.10.0", + "@node-rs/crc32-linux-arm-gnueabihf": "1.10.0", + "@node-rs/crc32-linux-arm64-gnu": "1.10.0", + "@node-rs/crc32-linux-arm64-musl": "1.10.0", + "@node-rs/crc32-linux-x64-gnu": "1.10.0", + "@node-rs/crc32-linux-x64-musl": "1.10.0", + "@node-rs/crc32-wasm32-wasi": "1.10.0", + "@node-rs/crc32-win32-arm64-msvc": "1.10.0", + "@node-rs/crc32-win32-ia32-msvc": "1.10.0", + "@node-rs/crc32-win32-x64-msvc": "1.10.0" + } + }, + "node_modules/@node-rs/crc32-android-arm-eabi": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@node-rs/crc32-android-arm-eabi/-/crc32-android-arm-eabi-1.10.0.tgz", + "integrity": "sha512-IRas7ylc8nB3988nnaT4PC5ZuaK3VOrLbTyg1Y/5ZHlxsYpqLpCb7VMf/oRrHxkSzSTlluD+inv3J8UE3i5Ojg==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/crc32-android-arm64": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@node-rs/crc32-android-arm64/-/crc32-android-arm64-1.10.0.tgz", + "integrity": "sha512-4vX1gB+rf3sYma/LLycmYsuFKolWdZX7tQOwLQ6PDwE7dAoN3mWAgS3RBw2G6PerGD9r90vSXWXPLJnF3OAhlw==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/crc32-darwin-arm64": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@node-rs/crc32-darwin-arm64/-/crc32-darwin-arm64-1.10.0.tgz", + "integrity": "sha512-nAAdxZqxFBxqhI3ZMEGi7QDwg44N4laYO4iGIGhjLvsUDqJlYeIlqZ39Lh2gOK3D2uF/TaT4b0bU5EPHWnKMOQ==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/crc32-darwin-x64": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@node-rs/crc32-darwin-x64/-/crc32-darwin-x64-1.10.0.tgz", + "integrity": "sha512-0YhLJFDY7VAKlJ4+SdfZFY+u0X18tkuD3NCtPp1SYh1o9pWpFVBbTKWvdjjx/Ihqw0ozkfc3iewFJU7vlrDQJg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/crc32-freebsd-x64": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@node-rs/crc32-freebsd-x64/-/crc32-freebsd-x64-1.10.0.tgz", + "integrity": "sha512-BE0IeHn59GzaebTM85Dpe+ErPV8E+WuXd/sNyLLS8jZUuNoOJwFUKotm8CUFG+MI40N0U9PzvZjQSwaeMsyMsQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/crc32-linux-arm-gnueabihf": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@node-rs/crc32-linux-arm-gnueabihf/-/crc32-linux-arm-gnueabihf-1.10.0.tgz", + "integrity": "sha512-R3mN3uSZaslJtXW3NXdropB9tHCnOgbrvq7MtmCRpHi2Ie3E46Ohi8cW0HgHjihptafTf8NWsoYzErm39BTY0Q==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/crc32-linux-arm64-gnu": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@node-rs/crc32-linux-arm64-gnu/-/crc32-linux-arm64-gnu-1.10.0.tgz", + "integrity": "sha512-2zZ2RQLVhjCWRWiLvz/CoP5BFld/zE/uD2Z9Nk+Y5zmJ11CD1RC3lqKG1M3MgEiQq9CnWJxwyy5kM2q4jDeXkg==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/crc32-linux-arm64-musl": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@node-rs/crc32-linux-arm64-musl/-/crc32-linux-arm64-musl-1.10.0.tgz", + "integrity": "sha512-WEIavGFHMAFe8NIKhbYnM6k2x7y6M/NQewXE8cqeV03Q8mLzCDBr34i/MzpW+M42NvEYgcM8c3Ayn2FijHb64Q==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/crc32-linux-x64-gnu": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@node-rs/crc32-linux-x64-gnu/-/crc32-linux-x64-gnu-1.10.0.tgz", + "integrity": "sha512-K/7aY/h8QngsLk0KsalQ3AlZ8ljXRisZgc20RcbB4UZkjl5AN6TeHQlVbx9U2MSBE5f6ViiZEr8c8CcID3W2Mg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/crc32-linux-x64-musl": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@node-rs/crc32-linux-x64-musl/-/crc32-linux-x64-musl-1.10.0.tgz", + "integrity": "sha512-GyCSm+Dp96qUvqrsxKgfd3TFrE8v5sRUYiMgNKK6G1m7nQb/VXvab9UoBSKeFw131odt3LlIuBAuhMnbb4za5w==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/crc32-wasm32-wasi": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@node-rs/crc32-wasm32-wasi/-/crc32-wasm32-wasi-1.10.0.tgz", + "integrity": "sha512-C+2IK5HwNUz2aiMGiN0RTijb80X5V1jo/o8bsHqi8ukoRyO6HLMhVn+xptqY+RRSf4VUzzNR5eHqD+WLcLId0g==", + "cpu": [ + "wasm32" + ], + "optional": true, + "dependencies": { + "@napi-rs/wasm-runtime": "^0.1.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@node-rs/crc32-win32-arm64-msvc": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@node-rs/crc32-win32-arm64-msvc/-/crc32-win32-arm64-msvc-1.10.0.tgz", + "integrity": "sha512-RaVo4edbEM3DyQkvXGKdPizUmr2A4NjLMk/1x9b/tz/k2rdd+QaPAauDwWAzs7SKoDBV9H4qc3hNFuKGjjRhjA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/crc32-win32-ia32-msvc": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@node-rs/crc32-win32-ia32-msvc/-/crc32-win32-ia32-msvc-1.10.0.tgz", + "integrity": "sha512-5KqJFdzRXELpXcdNgahafjkc9MxZJfKDVkFPBMkQIjjkv8PQ49DVw15/7yuhAN0pyYccNaUil4vtVoo7WTIVgQ==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@node-rs/crc32-win32-x64-msvc": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@node-rs/crc32-win32-x64-msvc/-/crc32-win32-x64-msvc-1.10.0.tgz", + "integrity": "sha512-6b99QpwNCQube1xleD+9IcF6foEWHYQYjuZrHAR5diuP/uqM7i+KCgMU9fbCFLs5zmssYHO3CQSZ8G+V0eC59g==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -2265,6 +2542,18 @@ "node": "*" } }, + "node_modules/@npmcli/move-file/node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/@npmcli/move-file/node_modules/rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", @@ -2696,11 +2985,14 @@ "node": "^16.14.0 || >=18.0.0" } }, - "node_modules/@types/configstore": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/@types/configstore/-/configstore-6.0.2.tgz", - "integrity": "sha512-OS//b51j9uyR3zvwD04Kfs5kHpve2qalQ18JhY/ho3voGYUTPLEG90/ocfKPI48hyHH8T04f7KEEbK6Ue60oZQ==", - "dev": true + "node_modules/@tybys/wasm-util": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.8.1.tgz", + "integrity": "sha512-GSsTwyBl4pIzsxAY5wroZdyQKyhXk0d8PCRZtrSZ2WEB1cBdrp2EgGBwHOGCZtIIPun/DL3+AykCv+J6fyRH4Q==", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } }, "node_modules/@types/conventional-commits-parser": { "version": "5.0.0", @@ -2838,16 +3130,6 @@ "resolved": "https://registry.npmjs.org/@types/three/-/three-0.125.3.tgz", "integrity": "sha512-tUPMzKooKDvMOhqcNVUPwkt+JNnF8ASgWSsrLgleVd0SjLj4boJhteSsF9f6YDjye0mmUjO+BDMWW83F97ehXA==" }, - "node_modules/@types/update-notifier": { - "version": "6.0.8", - "resolved": "https://registry.npmjs.org/@types/update-notifier/-/update-notifier-6.0.8.tgz", - "integrity": "sha512-IlDFnfSVfYQD+cKIg63DEXn3RFmd7W1iYtKQsJodcHK9R1yr8aKbKaPKfBxzPpcHCq2DU8zUq4PIPmy19Thjfg==", - "dev": true, - "dependencies": { - "@types/configstore": "*", - "boxen": "^7.1.1" - } - }, "node_modules/@types/yargs": { "version": "17.0.32", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", @@ -2863,6 +3145,15 @@ "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", "dev": true }, + "node_modules/@types/yauzl-promise": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/yauzl-promise/-/yauzl-promise-4.0.0.tgz", + "integrity": "sha512-0ZUmYerNiqTWGOKEkU5sBlSthzJV5EwUezOaL6a7ZD2bGG9uRmjkpNaS4DyMzKHkQkvVKYXnVuUXtWAfRj3iPw==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, "node_modules/@typescript-eslint/eslint-plugin": { "version": "7.6.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.6.0.tgz", @@ -4226,19 +4517,6 @@ "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "node_modules/binary": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/binary/-/binary-0.3.0.tgz", - "integrity": "sha512-D4H1y5KYwpJgK8wk1Cue5LLPgmwHKYSChkbspQg5JtVuR5ulGckxfR62H3AE9UDkdMC8yyXlqYihuz3Aqg2XZg==", - "dev": true, - "dependencies": { - "buffers": "~0.1.1", - "chainsaw": "~0.1.0" - }, - "engines": { - "node": "*" - } - }, "node_modules/binary-extensions": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", @@ -4355,15 +4633,6 @@ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" }, - "node_modules/buffers": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/buffers/-/buffers-0.1.1.tgz", - "integrity": "sha512-9q/rDEGSb/Qsvv2qvzIzdluL5k7AaJOTrw23z9reQthrbF7is4CtlT0DXyO1oei2DCp4uojjzQ7igaSHp1kAEQ==", - "dev": true, - "engines": { - "node": ">=0.2.0" - } - }, "node_modules/builtins": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/builtins/-/builtins-5.1.0.tgz", @@ -4592,18 +4861,6 @@ "node": ">=12.19" } }, - "node_modules/chainsaw": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/chainsaw/-/chainsaw-0.1.0.tgz", - "integrity": "sha512-75kWfWt6MEKNC8xYXIdRpDehRYY/tNSgwKaJq+dbbDcxORuVrrQ+SEHoWsniVn9XPYfP4gmdWIeDk/4YNp1rNQ==", - "dev": true, - "dependencies": { - "traverse": ">=0.3.0 <0.4" - }, - "engines": { - "node": "*" - } - }, "node_modules/chalk": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", @@ -5438,12 +5695,36 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/defer-to-connect": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", - "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, "engines": { - "node": ">=10" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dependencies": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/delegates": { @@ -5858,6 +6139,25 @@ "is-arrayish": "^0.2.1" } }, + "node_modules/es-define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", + "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "dependencies": { + "get-intrinsic": "^1.2.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "engines": { + "node": ">= 0.4" + } + }, "node_modules/es6-error": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", @@ -6811,6 +7111,24 @@ "node": "6.* || 8.* || >= 10.*" } }, + "node_modules/get-intrinsic": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", + "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/get-package-type": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", @@ -6996,6 +7314,20 @@ "node": ">=4" } }, + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/globby": { "version": "11.1.0", "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", @@ -7016,39 +7348,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/got": { - "version": "12.6.1", - "resolved": "https://registry.npmjs.org/got/-/got-12.6.1.tgz", - "integrity": "sha512-mThBblvlAF1d4O5oqyvN+ZxLAYwIJK7bpMxgYqPD9okW0C3qm5FFn7k811QrcuEBwaogR3ngOFoCfs6mRv7teQ==", + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", "dependencies": { - "@sindresorhus/is": "^5.2.0", - "@szmarczak/http-timer": "^5.0.1", - "cacheable-lookup": "^7.0.0", - "cacheable-request": "^10.2.8", - "decompress-response": "^6.0.0", - "form-data-encoder": "^2.1.2", - "get-stream": "^6.0.1", - "http2-wrapper": "^2.1.10", - "lowercase-keys": "^3.0.0", - "p-cancelable": "^3.0.0", - "responselike": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sindresorhus/got?sponsor=1" - } - }, - "node_modules/got/node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "engines": { - "node": ">=10" + "get-intrinsic": "^1.1.3" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/graceful-fs": { @@ -7080,6 +7388,39 @@ "node": ">=8" } }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", + "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/has-unicode": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", @@ -7497,33 +7838,16 @@ "node": ">=0.10.0" } }, - "node_modules/is-in-ci": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/is-in-ci/-/is-in-ci-0.1.0.tgz", - "integrity": "sha512-d9PXLEY0v1iJ64xLiQMJ51J128EYHAaOR4yZqQi8aHGfw6KgifM3/Viw1oZZ1GCVmb3gBuyhLyHj0HgR2DhSXQ==", - "bin": { - "is-in-ci": "cli.js" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-installed-globally": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz", - "integrity": "sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==", + "node_modules/is-it-type": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/is-it-type/-/is-it-type-5.1.2.tgz", + "integrity": "sha512-q/gOZQTNYABAxaXWnBKZjTFH4yACvWEFtgVOj+LbgxYIgAJG1xVmUZOsECSrZPIemYUQvaQWVilSFVbh4Eyt8A==", "dependencies": { - "global-dirs": "^3.0.0", - "is-path-inside": "^3.0.2" + "@babel/runtime": "^7.16.7", + "globalthis": "^1.0.2" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=12" } }, "node_modules/is-lambda": { @@ -7956,6 +8280,17 @@ "node": ">=8" } }, + "node_modules/jsdoc/node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", @@ -8860,17 +9195,6 @@ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, - "node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -9330,6 +9654,18 @@ "encoding": "^0.1.13" } }, + "node_modules/node-gyp/node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/node-gyp/node_modules/nopt": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/nopt/-/nopt-6.0.0.tgz", @@ -10211,6 +10547,14 @@ "node": ">=6" } }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "engines": { + "node": ">= 0.4" + } + }, "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -11480,30 +11824,10 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/registry-auth-token": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-5.0.2.tgz", - "integrity": "sha512-o/3ikDxtXaA59BmZuZrJZDJv8NMDGSj+6j6XaeBmHw8eY1i1qd9+6H+LjVvQXx3HN6aRCGa1cUdJ9RaJZUugnQ==", - "dependencies": { - "@pnpm/npm-conf": "^2.1.0" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/registry-url": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-6.0.1.tgz", - "integrity": "sha512-+crtS5QjFRqFCoQmvGduwYWEBng99ZvmFvF+cUJkGYF1L1BfU8C6Zp9T7f5vPAwyLkUExpvK+ANVZmGU49qi4Q==", - "dependencies": { - "rc": "1.2.8" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } + "node_modules/regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" }, "node_modules/release-zalgo": { "version": "1.0.0", @@ -11852,6 +12176,14 @@ "node": "^16.14.0 || >=18.0.0" } }, + "node_modules/simple-invariant": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/simple-invariant/-/simple-invariant-2.0.1.tgz", + "integrity": "sha512-1sbhsxqI+I2tqlmjbz99GXNmZtr6tKIyEgGGnJw/MKGblalqk/XoOYYFJlBzTKZCxx8kLaD3FD5s9BEEjx5Pyg==", + "engines": { + "node": ">=10" + } + }, "node_modules/sinon": { "version": "17.0.1", "resolved": "https://registry.npmjs.org/sinon/-/sinon-17.0.1.tgz", @@ -12387,6 +12719,17 @@ "node": ">=8" } }, + "node_modules/tar/node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/tar/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", @@ -12527,15 +12870,6 @@ "node": ">=8.0" } }, - "node_modules/traverse": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.3.9.tgz", - "integrity": "sha512-iawgk0hLP3SxGKDfnDJf8wTz4p2qImnyihM5Hh/sGvQ3K37dPi/w8sRhdNIxYA1TwFwc5mDhIJq+O0RsvXBKdQ==", - "dev": true, - "engines": { - "node": "*" - } - }, "node_modules/treeverse": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/treeverse/-/treeverse-3.0.0.tgz", @@ -12557,6 +12891,12 @@ "typescript": ">=4.2.0" } }, + "node_modules/tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "optional": true + }, "node_modules/tsx": { "version": "4.7.2", "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.7.2.tgz", @@ -12855,28 +13195,6 @@ "node": ">= 10.0.0" } }, - "node_modules/unzip-stream": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/unzip-stream/-/unzip-stream-0.3.1.tgz", - "integrity": "sha512-RzaGXLNt+CW+T41h1zl6pGz3EaeVhYlK+rdAap+7DxW5kqsqePO8kRtWPaCiVqdhZc86EctSPVYNix30YOMzmw==", - "dev": true, - "dependencies": { - "binary": "^0.3.0", - "mkdirp": "^0.5.1" - } - }, - "node_modules/unzip-stream/node_modules/mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "dev": true, - "dependencies": { - "minimist": "^1.2.6" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, "node_modules/update-browserslist-db": { "version": "1.0.13", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", @@ -13298,49 +13616,17 @@ "node": ">=12" } }, - "node_modules/yargs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/yargs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/yargs/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/yargs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/yargs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "node_modules/yauzl-promise": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yauzl-promise/-/yauzl-promise-4.0.0.tgz", + "integrity": "sha512-/HCXpyHXJQQHvFq9noqrjfa/WpQC2XYs3vI7tBiAi4QiIU1knvYhZGaO1QPjwIVMdqflxbmwgMXtYeaRiAE0CA==", "dependencies": { - "ansi-regex": "^5.0.1" + "@node-rs/crc32": "^1.7.0", + "is-it-type": "^5.1.2", + "simple-invariant": "^2.0.1" }, "engines": { - "node": ">=8" + "node": ">=16" } }, "node_modules/yesno": { diff --git a/package.json b/package.json index 6bbdca72..f2f4e0fa 100644 --- a/package.json +++ b/package.json @@ -72,8 +72,9 @@ "json-source-map": "^0.6.1", "sax-wasm": "^2.2.4", "typescript": "5.3.x", + "yargs": "^17.7.2", "update-notifier": "^7.0.0", - "yargs": "^17.7.2" + "yauzl-promise": "^4.0.0" }, "devDependencies": { "@commitlint/cli": "^19.2.1", @@ -87,6 +88,7 @@ "@types/sinon": "^17.0.3", "@types/update-notifier": "^6.0.8", "@types/yargs": "^17.0.32", + "@types/yauzl-promise": "^4.0.0", "@ui5-language-assistant/semantic-model": "^3.3.1", "@ui5-language-assistant/semantic-model-types": "^3.3.1", "ava": "^5.3.1", @@ -100,7 +102,6 @@ "semver": "^7.6.0", "sinon": "^17.0.1", "tsx": "^4.7.2", - "typescript-eslint": "^7.6.0", - "unzip-stream": "^0.3.1" + "typescript-eslint": "^7.5.0" } } diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index 2d463c4b..0c8520f2 100644 --- a/scripts/metadataProvider/createPseudoModulesInfo.ts +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -1,29 +1,51 @@ import {pipeline} from "node:stream/promises"; -import {Extract} from "unzip-stream"; +import yauzl from "yauzl-promise"; +import path from "node:path"; import MetadataProvider from "./MetadataProvider.js"; -import {writeFile, readdir} from "node:fs/promises"; +import {writeFile, readdir, mkdir, unlink} from "node:fs/promises"; +import {createWriteStream} from "node:fs"; import {createRequire} from "module"; const require = createRequire(import.meta.url); import type {UI5Enum, UI5EnumValue} from "@ui5-language-assistant/semantic-model-types"; -import path from "node:path"; const RAW_API_JSON_FILES_FOLDER = "tmp/apiJson"; -async function downloadAPIJsons(url: string) { +async function fetchAndExtractAPIJsons(url: string) { const response = await fetch(url); if (!response.ok) { throw new Error(`unexpected response ${response.statusText}`); } if (response.body && response.body instanceof ReadableStream) { - await pipeline(response.body, Extract({path: RAW_API_JSON_FILES_FOLDER})); + const zipFileName: string = url.split("/").pop() ?? ""; + const zipFile = path.resolve(RAW_API_JSON_FILES_FOLDER, zipFileName); + await mkdir(path.resolve(RAW_API_JSON_FILES_FOLDER), {recursive: true}); + await pipeline(response.body, createWriteStream(zipFile)); + + const zip = await yauzl.open(zipFile); + try { + for await (const entry of zip) { + if (entry.filename.endsWith("/")) { + await mkdir(path.resolve(RAW_API_JSON_FILES_FOLDER, entry.filename)); + } else { + const readEntry = await entry.openReadStream(); + const writeEntry = createWriteStream(path.resolve(RAW_API_JSON_FILES_FOLDER, entry.filename)); + await pipeline(readEntry, writeEntry); + } + } + } finally { + await zip.close(); + } + + // Cleanup the ZIP file, so that the folder will contain only JSON files + await unlink(zipFile); } else { throw new Error("Malformed response"); } } -async function extractPseudoModuleNames() { +async function getPseudoModuleNames() { const apiJsonList = await readdir(RAW_API_JSON_FILES_FOLDER); interface apiJSON { @@ -50,7 +72,7 @@ async function transformFiles(sapui5Version: string) { const metadataProvider = new MetadataProvider(); const [, pseudoModuleNames] = await Promise.all([ metadataProvider.init(RAW_API_JSON_FILES_FOLDER, sapui5Version), - extractPseudoModuleNames(), + getPseudoModuleNames(), ]); const {enums} = metadataProvider.getModel(); @@ -153,7 +175,7 @@ async function addOverrides(enums: Record) { } async function main(url: string, sapui5Version: string) { - await downloadAPIJsons(url); + await fetchAndExtractAPIJsons(url); await transformFiles(sapui5Version); } From 0b8023eed4613af4a232b0bcf84d5f450dc71b32 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Tue, 9 Apr 2024 15:25:04 +0300 Subject: [PATCH 12/33] refactor: Rewrite file downloader --- scripts/metadataProvider/createPseudoModulesInfo.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index 0c8520f2..7ab48e56 100644 --- a/scripts/metadataProvider/createPseudoModulesInfo.ts +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -1,4 +1,5 @@ import {pipeline} from "node:stream/promises"; +import https from "node:https"; import yauzl from "yauzl-promise"; import path from "node:path"; import MetadataProvider from "./MetadataProvider.js"; @@ -21,7 +22,12 @@ async function fetchAndExtractAPIJsons(url: string) { const zipFileName: string = url.split("/").pop() ?? ""; const zipFile = path.resolve(RAW_API_JSON_FILES_FOLDER, zipFileName); await mkdir(path.resolve(RAW_API_JSON_FILES_FOLDER), {recursive: true}); - await pipeline(response.body, createWriteStream(zipFile)); + + await new Promise((resolve) => { + https.get(url, (res) => { + resolve(pipeline(res, createWriteStream(zipFile))); + }); + }); const zip = await yauzl.open(zipFile); try { From e4678be6c0a16252629e7fce28069fff93f4f439 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Tue, 9 Apr 2024 15:35:12 +0300 Subject: [PATCH 13/33] refactor: Add empty last line to autogenerate files --- resources/overrides/index.d.ts | 2 +- resources/overrides/library/index.d.ts | 2 +- scripts/metadataProvider/createPseudoModulesInfo.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/overrides/index.d.ts b/resources/overrides/index.d.ts index a05c44fa..acba277e 100644 --- a/resources/overrides/index.d.ts +++ b/resources/overrides/index.d.ts @@ -1,3 +1,3 @@ import "./jquery.sap.mobile"; import "./jquery.sap"; -import "./library/index" \ No newline at end of file +import "./library/index" diff --git a/resources/overrides/library/index.d.ts b/resources/overrides/library/index.d.ts index 2d0c5cd0..b1cbf418 100644 --- a/resources/overrides/library/index.d.ts +++ b/resources/overrides/library/index.d.ts @@ -30,4 +30,4 @@ import "./sap.ui.webc.fiori"; import "./sap.ui.webc.main"; import "./sap.ushell"; import "./sap.uxap"; -import "./sap.viz"; \ No newline at end of file +import "./sap.viz"; diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index 7ab48e56..8ae66114 100644 --- a/scripts/metadataProvider/createPseudoModulesInfo.ts +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -176,7 +176,7 @@ async function addOverrides(enums: Record) { await writeFile( new URL(`../../resources/overrides/library/index.d.ts`, import.meta.url), - indexFilesImports.join("\n") + indexFilesImports.join("\n") + "\n" ); } From d63cdd4620c9e35e29b416af67ecfb1d62420792 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Tue, 9 Apr 2024 15:38:55 +0300 Subject: [PATCH 14/33] refactor: Reorder modules --- scripts/metadataProvider/createPseudoModulesInfo.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index 8ae66114..913bf91d 100644 --- a/scripts/metadataProvider/createPseudoModulesInfo.ts +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -1,15 +1,15 @@ -import {pipeline} from "node:stream/promises"; +import {createRequire} from "module"; +import {createWriteStream} from "node:fs"; +import {writeFile, readdir, mkdir, unlink} from "node:fs/promises"; import https from "node:https"; -import yauzl from "yauzl-promise"; import path from "node:path"; +import {pipeline} from "node:stream/promises"; +import yauzl from "yauzl-promise"; import MetadataProvider from "./MetadataProvider.js"; -import {writeFile, readdir, mkdir, unlink} from "node:fs/promises"; -import {createWriteStream} from "node:fs"; -import {createRequire} from "module"; -const require = createRequire(import.meta.url); import type {UI5Enum, UI5EnumValue} from "@ui5-language-assistant/semantic-model-types"; +const require = createRequire(import.meta.url); const RAW_API_JSON_FILES_FOLDER = "tmp/apiJson"; async function fetchAndExtractAPIJsons(url: string) { From aacdcafc73c4434b52e4ae6d5a2e7470f1472341 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Wed, 10 Apr 2024 10:25:45 +0300 Subject: [PATCH 15/33] fix: Merge conflicts --- package-lock.json | 241 +++++++++++++++++++++++++++++++++++----------- 1 file changed, 183 insertions(+), 58 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7ab3a3ad..df718aa5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,6 +21,7 @@ "json-source-map": "^0.6.1", "sax-wasm": "^2.2.4", "typescript": "5.3.x", + "update-notifier": "^7.0.0", "yargs": "^17.7.2", "yauzl-promise": "^4.0.0" }, @@ -37,6 +38,7 @@ "@types/he": "^1.2.3", "@types/node": "^20.12.7", "@types/sinon": "^17.0.3", + "@types/update-notifier": "^6.0.8", "@types/yargs": "^17.0.32", "@types/yauzl-promise": "^4.0.0", "@ui5-language-assistant/semantic-model": "^3.3.1", @@ -2542,18 +2544,6 @@ "node": "*" } }, - "node_modules/@npmcli/move-file/node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true, - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@npmcli/move-file/node_modules/rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", @@ -2994,6 +2984,12 @@ "tslib": "^2.4.0" } }, + "node_modules/@types/configstore": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@types/configstore/-/configstore-6.0.2.tgz", + "integrity": "sha512-OS//b51j9uyR3zvwD04Kfs5kHpve2qalQ18JhY/ho3voGYUTPLEG90/ocfKPI48hyHH8T04f7KEEbK6Ue60oZQ==", + "dev": true + }, "node_modules/@types/conventional-commits-parser": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/@types/conventional-commits-parser/-/conventional-commits-parser-5.0.0.tgz", @@ -3130,6 +3126,16 @@ "resolved": "https://registry.npmjs.org/@types/three/-/three-0.125.3.tgz", "integrity": "sha512-tUPMzKooKDvMOhqcNVUPwkt+JNnF8ASgWSsrLgleVd0SjLj4boJhteSsF9f6YDjye0mmUjO+BDMWW83F97ehXA==" }, + "node_modules/@types/update-notifier": { + "version": "6.0.8", + "resolved": "https://registry.npmjs.org/@types/update-notifier/-/update-notifier-6.0.8.tgz", + "integrity": "sha512-IlDFnfSVfYQD+cKIg63DEXn3RFmd7W1iYtKQsJodcHK9R1yr8aKbKaPKfBxzPpcHCq2DU8zUq4PIPmy19Thjfg==", + "dev": true, + "dependencies": { + "@types/configstore": "*", + "boxen": "^7.1.1" + } + }, "node_modules/@types/yargs": { "version": "17.0.32", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", @@ -4819,9 +4825,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001609", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001609.tgz", - "integrity": "sha512-JFPQs34lHKx1B5t1EpQpWH4c+29zIyn/haGsbpfq3suuV9v56enjFt23zqijxGTMwy1p/4H2tjnQMY+p1WoAyA==", + "version": "1.0.30001608", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001608.tgz", + "integrity": "sha512-cjUJTQkk9fQlJR2s4HMuPMvTiRggl0rAVMtthQuyOlDWuqHXqN8azLq+pi8B2TjwKJ32diHjUqRIKeFX4z1FoA==", "dev": true, "funding": [ { @@ -5695,6 +5701,14 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/defer-to-connect": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", + "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", + "engines": { + "node": ">=10" + } + }, "node_modules/define-data-property": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", @@ -6076,9 +6090,9 @@ "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" }, "node_modules/electron-to-chromium": { - "version": "1.4.736", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.736.tgz", - "integrity": "sha512-Rer6wc3ynLelKNM4lOCg7/zPQj8tPOCB2hzD32PX9wd3hgRRi9MxEbmkFCokzcEhRVMiOVLjnL9ig9cefJ+6+Q==", + "version": "1.4.731", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.731.tgz", + "integrity": "sha512-+TqVfZjpRz2V/5SPpmJxq9qK620SC5SqCnxQIOi7i/U08ZDcTpKbT7Xjj9FU5CbXTMUb4fywbIr8C7cGv4hcjw==", "dev": true }, "node_modules/emittery": { @@ -7359,6 +7373,41 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/got": { + "version": "12.6.1", + "resolved": "https://registry.npmjs.org/got/-/got-12.6.1.tgz", + "integrity": "sha512-mThBblvlAF1d4O5oqyvN+ZxLAYwIJK7bpMxgYqPD9okW0C3qm5FFn7k811QrcuEBwaogR3ngOFoCfs6mRv7teQ==", + "dependencies": { + "@sindresorhus/is": "^5.2.0", + "@szmarczak/http-timer": "^5.0.1", + "cacheable-lookup": "^7.0.0", + "cacheable-request": "^10.2.8", + "decompress-response": "^6.0.0", + "form-data-encoder": "^2.1.2", + "get-stream": "^6.0.1", + "http2-wrapper": "^2.1.10", + "lowercase-keys": "^3.0.0", + "p-cancelable": "^3.0.0", + "responselike": "^3.0.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sindresorhus/got?sponsor=1" + } + }, + "node_modules/got/node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", @@ -7838,6 +7887,35 @@ "node": ">=0.10.0" } }, + "node_modules/is-in-ci": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-in-ci/-/is-in-ci-0.1.0.tgz", + "integrity": "sha512-d9PXLEY0v1iJ64xLiQMJ51J128EYHAaOR4yZqQi8aHGfw6KgifM3/Viw1oZZ1GCVmb3gBuyhLyHj0HgR2DhSXQ==", + "bin": { + "is-in-ci": "cli.js" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-installed-globally": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz", + "integrity": "sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==", + "dependencies": { + "global-dirs": "^3.0.0", + "is-path-inside": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-it-type": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/is-it-type/-/is-it-type-5.1.2.tgz", @@ -8280,17 +8358,6 @@ "node": ">=8" } }, - "node_modules/jsdoc/node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", @@ -9195,6 +9262,17 @@ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -9654,18 +9732,6 @@ "encoding": "^0.1.13" } }, - "node_modules/node-gyp/node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true, - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/node-gyp/node_modules/nopt": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/nopt/-/nopt-6.0.0.tgz", @@ -10756,9 +10822,9 @@ } }, "node_modules/pacote/node_modules/@npmcli/git": { - "version": "5.0.6", - "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-5.0.6.tgz", - "integrity": "sha512-4x/182sKXmQkf0EtXxT26GEsaOATpD7WVtza5hrYivWZeo6QefC6xq9KAXrnjtFKBZ4rZwR7aX/zClYYXgtwLw==", + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-5.0.5.tgz", + "integrity": "sha512-x8hXItC8OFOwdgERzRIxg0ic1lQqW6kSZFFQtZTCNYOeGb9UqzVcod02TYljI9UBl4RtfcyQ0A7ygmcGFvEqWw==", "dependencies": { "@npmcli/promise-spawn": "^7.0.0", "lru-cache": "^10.0.1", @@ -10774,9 +10840,9 @@ } }, "node_modules/pacote/node_modules/@npmcli/package-json": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/@npmcli/package-json/-/package-json-5.0.3.tgz", - "integrity": "sha512-cgsjCvld2wMqkUqvY+SZI+1ZJ7umGBYc9IAKfqJRKJCcs7hCQYxScUgdsyrRINk3VmdCYf9TXiLBHQ6ECTxhtg==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@npmcli/package-json/-/package-json-5.0.1.tgz", + "integrity": "sha512-WdwGsRP/do+94IXEgfD/oGGVn0VDS+wYM8MoXU5tJ+02Ke8ePSobMwnfcCHAfcvU/pFwZxyZYWaJdOBsqXRAbA==", "dependencies": { "@npmcli/git": "^5.0.0", "glob": "^10.2.2", @@ -11829,6 +11895,31 @@ "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" }, + "node_modules/registry-auth-token": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-5.0.2.tgz", + "integrity": "sha512-o/3ikDxtXaA59BmZuZrJZDJv8NMDGSj+6j6XaeBmHw8eY1i1qd9+6H+LjVvQXx3HN6aRCGa1cUdJ9RaJZUugnQ==", + "dependencies": { + "@pnpm/npm-conf": "^2.1.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/registry-url": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-6.0.1.tgz", + "integrity": "sha512-+crtS5QjFRqFCoQmvGduwYWEBng99ZvmFvF+cUJkGYF1L1BfU8C6Zp9T7f5vPAwyLkUExpvK+ANVZmGU49qi4Q==", + "dependencies": { + "rc": "1.2.8" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/release-zalgo": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/release-zalgo/-/release-zalgo-1.0.0.tgz", @@ -12719,17 +12810,6 @@ "node": ">=8" } }, - "node_modules/tar/node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/tar/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", @@ -13616,6 +13696,51 @@ "node": ">=12" } }, + "node_modules/yargs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/yargs/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/yauzl-promise": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yauzl-promise/-/yauzl-promise-4.0.0.tgz", From c774091b81fc8435aebba22be7a2cb973dd01133 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Wed, 10 Apr 2024 13:48:05 +0300 Subject: [PATCH 16/33] fix: Update imports --- resources/overrides/library/sap.ca.ui.d.ts | 18 +- resources/overrides/library/sap.chart.d.ts | 36 +-- .../overrides/library/sap.collaboration.d.ts | 6 +- resources/overrides/library/sap.f.d.ts | 22 +- resources/overrides/library/sap.gantt.d.ts | 148 +++++------ resources/overrides/library/sap.m.d.ts | 220 ++++++++-------- resources/overrides/library/sap.makit.d.ts | 10 +- resources/overrides/library/sap.me.d.ts | 6 +- resources/overrides/library/sap.rules.ui.d.ts | 10 +- .../library/sap.suite.ui.commons.d.ts | 202 +++++++------- .../sap.suite.ui.generic.template.d.ts | 2 +- .../library/sap.suite.ui.microchart.d.ts | 14 +- resources/overrides/library/sap.tnt.d.ts | 2 +- .../overrides/library/sap.ui.commons.d.ts | 84 +++--- resources/overrides/library/sap.ui.comp.d.ts | 170 ++++++------ resources/overrides/library/sap.ui.core.d.ts | 84 +++--- .../overrides/library/sap.ui.export.d.ts | 4 +- .../overrides/library/sap.ui.generic.app.d.ts | 18 +- .../overrides/library/sap.ui.integration.d.ts | 16 +- .../overrides/library/sap.ui.layout.d.ts | 30 +-- resources/overrides/library/sap.ui.mdc.d.ts | 20 +- .../library/sap.ui.richtexteditor.d.ts | 2 +- resources/overrides/library/sap.ui.suite.d.ts | 2 +- .../overrides/library/sap.ui.support.d.ts | 10 +- resources/overrides/library/sap.ui.table.d.ts | 18 +- .../overrides/library/sap.ui.unified.d.ts | 18 +- resources/overrides/library/sap.ui.ux3.d.ts | 18 +- resources/overrides/library/sap.ui.vbm.d.ts | 6 +- .../overrides/library/sap.ui.webc.fiori.d.ts | 32 +-- .../overrides/library/sap.ui.webc.main.d.ts | 90 +++---- resources/overrides/library/sap.ushell.d.ts | 4 +- resources/overrides/library/sap.uxap.d.ts | 14 +- resources/overrides/library/sap.viz.d.ts | 246 +++++++++--------- .../createPseudoModulesInfo.ts | 26 +- 34 files changed, 806 insertions(+), 802 deletions(-) diff --git a/resources/overrides/library/sap.ca.ui.d.ts b/resources/overrides/library/sap.ca.ui.d.ts index 6e79e140..db3a9d40 100644 --- a/resources/overrides/library/sap.ca.ui.d.ts +++ b/resources/overrides/library/sap.ca.ui.d.ts @@ -1,5 +1,5 @@ -declare module "sap/ca/ui/ChartColor" { - import ChartColor from "sap/ca/ui/library"; +declare module "sap/ca/ui/charts/ChartColor" { + import {charts} from "sap/ca/ui/library"; /** * Enumeration of available color to be used in sap.ca.ui charts. @@ -7,11 +7,11 @@ declare module "sap/ca/ui/ChartColor" { * @deprecated (since 1.24) - Sap.ca charts have been replaced with sap.viz and VizFrame in 1.24. The UI5 control "sap.viz.ui5.controls.VizFrame" serves as a single point of entry for all the new charts. Now that 1.24 is available you are asked to use sap.viz charts and the VizFrame instead! This control will not be supported anymore from 1.24. * @public */ - export default ChartColor; + export default charts.ChartColor; } -declare module "sap/ca/ui/ChartSelectionMode" { - import ChartSelectionMode from "sap/ca/ui/library"; +declare module "sap/ca/ui/charts/ChartSelectionMode" { + import {charts} from "sap/ca/ui/library"; /** * Determines the selection mode of a Chart. @@ -19,11 +19,11 @@ declare module "sap/ca/ui/ChartSelectionMode" { * @deprecated (since 1.24) - Sap.ca charts have been replaced with sap.viz and VizFrame in 1.24. The UI5 control "sap.viz.ui5.controls.VizFrame" serves as a single point of entry for all the new charts. Now that 1.24 is available you are asked to use sap.viz charts and the VizFrame instead! This control will not be supported anymore from 1.24. * @public */ - export default ChartSelectionMode; + export default charts.ChartSelectionMode; } -declare module "sap/ca/ui/ChartSemanticColor" { - import ChartSemanticColor from "sap/ca/ui/library"; +declare module "sap/ca/ui/charts/ChartSemanticColor" { + import {charts} from "sap/ca/ui/library"; /** * Enumeration of available semantic color to be used in sap.Ca.ui @@ -31,5 +31,5 @@ declare module "sap/ca/ui/ChartSemanticColor" { * @deprecated (since 1.24) - Sap.ca charts have been replaced with sap.viz and VizFrame in 1.24. The UI5 control "sap.viz.ui5.controls.VizFrame" serves as a single point of entry for all the new charts. Now that 1.24 is available you are asked to use sap.viz charts and the VizFrame instead! This control will not be supported anymore from 1.24. * @public */ - export default ChartSemanticColor; + export default charts.ChartSemanticColor; } diff --git a/resources/overrides/library/sap.chart.d.ts b/resources/overrides/library/sap.chart.d.ts index 7346f12c..8320f698 100644 --- a/resources/overrides/library/sap.chart.d.ts +++ b/resources/overrides/library/sap.chart.d.ts @@ -1,60 +1,60 @@ -declare module "sap/chart/GradationDivergingColorScheme" { - import GradationDivergingColorScheme from "sap/chart/library"; +declare module "sap/chart/coloring/GradationDivergingColorScheme" { + import {coloring} from "sap/chart/library"; /** * Enumeration for supported Gradation diverging color scheme in analytical chart * * @public */ - export default GradationDivergingColorScheme; + export default coloring.GradationDivergingColorScheme; } -declare module "sap/chart/GradationSaturation" { - import GradationSaturation from "sap/chart/library"; +declare module "sap/chart/coloring/GradationSaturation" { + import {coloring} from "sap/chart/library"; /** * Enumeration for supported Gradation color saturation in analytical chart * * @public */ - export default GradationSaturation; + export default coloring.GradationSaturation; } -declare module "sap/chart/GradationSingleColorScheme" { - import GradationSingleColorScheme from "sap/chart/library"; +declare module "sap/chart/coloring/GradationSingleColorScheme" { + import {coloring} from "sap/chart/library"; /** * Enumeration for supported Gradation single color scheme in analytical chart * * @public */ - export default GradationSingleColorScheme; + export default coloring.GradationSingleColorScheme; } -declare module "sap/chart/GradationTargetColorScheme" { - import GradationTargetColorScheme from "sap/chart/library"; +declare module "sap/chart/coloring/GradationTargetColorScheme" { + import {coloring} from "sap/chart/library"; /** * Enumeration for supported Gradation target color scheme in analytical chart * * @public */ - export default GradationTargetColorScheme; + export default coloring.GradationTargetColorScheme; } -declare module "sap/chart/ImprovementDirectionType" { - import ImprovementDirectionType from "sap/chart/library"; +declare module "sap/chart/coloring/ImprovementDirectionType" { + import {coloring} from "sap/chart/library"; /** * Enumeration for supported ImprovementDirection types in analytical chart * * @public */ - export default ImprovementDirectionType; + export default coloring.ImprovementDirectionType; } declare module "sap/chart/MessageId" { - import MessageId from "sap/chart/library"; + import {MessageId} from "sap/chart/library"; /** * Enumeration for supported message types in analytical chart. @@ -65,7 +65,7 @@ declare module "sap/chart/MessageId" { } declare module "sap/chart/SelectionBehavior" { - import SelectionBehavior from "sap/chart/library"; + import {SelectionBehavior} from "sap/chart/library"; /** * Enumeration for supported selection behavior in analytical chart @@ -76,7 +76,7 @@ declare module "sap/chart/SelectionBehavior" { } declare module "sap/chart/SelectionMode" { - import SelectionMode from "sap/chart/library"; + import {SelectionMode} from "sap/chart/library"; /** * Enumeration for supported selection mode in analytical chart diff --git a/resources/overrides/library/sap.collaboration.d.ts b/resources/overrides/library/sap.collaboration.d.ts index 2d8acbdc..6926fccd 100644 --- a/resources/overrides/library/sap.collaboration.d.ts +++ b/resources/overrides/library/sap.collaboration.d.ts @@ -1,5 +1,5 @@ declare module "sap/collaboration/AppType" { - import AppType from "sap/collaboration/library"; + import {AppType} from "sap/collaboration/library"; /** * Application Type (Mode) @@ -10,7 +10,7 @@ declare module "sap/collaboration/AppType" { } declare module "sap/collaboration/DisplayFeedType" { - import DisplayFeedType from "sap/collaboration/library"; + import {DisplayFeedType} from "sap/collaboration/library"; /** * Feed Types to be displayed by the Social Timeline @@ -21,7 +21,7 @@ declare module "sap/collaboration/DisplayFeedType" { } declare module "sap/collaboration/FeedType" { - import FeedType from "sap/collaboration/library"; + import {FeedType} from "sap/collaboration/library"; /** * Feed Types diff --git a/resources/overrides/library/sap.f.d.ts b/resources/overrides/library/sap.f.d.ts index c1088af8..7056730d 100644 --- a/resources/overrides/library/sap.f.d.ts +++ b/resources/overrides/library/sap.f.d.ts @@ -1,5 +1,5 @@ declare module "sap/f/AvatarGroupType" { - import AvatarGroupType from "sap/f/library"; + import {AvatarGroupType} from "sap/f/library"; /** * Group modes for the {@link sap.f.AvatarGroup} control. @@ -11,8 +11,8 @@ declare module "sap/f/AvatarGroupType" { export default AvatarGroupType; } -declare module "sap/f/HeaderPosition" { - import HeaderPosition from "sap/f/library"; +declare module "sap/f/cards/HeaderPosition" { + import {cards} from "sap/f/library"; /** * Different options for the position of the header in controls that implement the {@link sap.f.ICard} interface. @@ -20,11 +20,11 @@ declare module "sap/f/HeaderPosition" { * @public * @since 1.65 */ - export default HeaderPosition; + export default cards.HeaderPosition; } -declare module "sap/f/NumericHeaderSideIndicatorsAlignment" { - import NumericHeaderSideIndicatorsAlignment from "sap/f/library"; +declare module "sap/f/cards/NumericHeaderSideIndicatorsAlignment" { + import {cards} from "sap/f/library"; /** * Different options for the alignment of the side indicators in the numeric header. @@ -32,11 +32,11 @@ declare module "sap/f/NumericHeaderSideIndicatorsAlignment" { * @public * @since 1.96 */ - export default NumericHeaderSideIndicatorsAlignment; + export default cards.NumericHeaderSideIndicatorsAlignment; } declare module "sap/f/DynamicPageTitleArea" { - import DynamicPageTitleArea from "sap/f/library"; + import {DynamicPageTitleArea} from "sap/f/library"; /** * Defines the areas within the sap.f.DynamicPageTitle control. @@ -49,7 +49,7 @@ declare module "sap/f/DynamicPageTitleArea" { } declare module "sap/f/LayoutType" { - import LayoutType from "sap/f/library"; + import {LayoutType} from "sap/f/library"; /** * Layouts, representing the number of columns to be displayed and their relative widths for a {@link sap.f.FlexibleColumnLayout} control. @@ -67,7 +67,7 @@ declare module "sap/f/LayoutType" { } declare module "sap/f/NavigationDirection" { - import NavigationDirection from "sap/f/library"; + import {NavigationDirection} from "sap/f/library"; /** * Enumeration for different navigation directions. @@ -79,7 +79,7 @@ declare module "sap/f/NavigationDirection" { } declare module "sap/f/SidePanelPosition" { - import SidePanelPosition from "sap/f/library"; + import {SidePanelPosition} from "sap/f/library"; /** * Enumeration for different SidePanel position. diff --git a/resources/overrides/library/sap.gantt.d.ts b/resources/overrides/library/sap.gantt.d.ts index a072a9ad..cee107ea 100644 --- a/resources/overrides/library/sap.gantt.d.ts +++ b/resources/overrides/library/sap.gantt.d.ts @@ -1,5 +1,5 @@ declare module "sap/gantt/AdhocLineLayer" { - import AdhocLineLayer from "sap/gantt/library"; + import {AdhocLineLayer} from "sap/gantt/library"; /** * The layer of adhoc line in chart area @@ -9,52 +9,52 @@ declare module "sap/gantt/AdhocLineLayer" { export default AdhocLineLayer; } -declare module "sap/gantt/BirdEyeRange" { - import BirdEyeRange from "sap/gantt/library"; +declare module "sap/gantt/config/BirdEyeRange" { + import {config} from "sap/gantt/library"; /** * Define the range of data that bird eye would use to calculate visibleHorizon * * @public */ - export default BirdEyeRange; + export default config.BirdEyeRange; } -declare module "sap/gantt/FindMode" { - import FindMode from "sap/gantt/library"; +declare module "sap/gantt/config/FindMode" { + import {config} from "sap/gantt/library"; /** * Defines the control where find and select search box will appear * * @public */ - export default FindMode; + export default config.FindMode; } -declare module "sap/gantt/TimeUnit" { - import TimeUnit from "sap/gantt/library"; +declare module "sap/gantt/config/TimeUnit" { + import {config} from "sap/gantt/library"; /** * Different time units used as part of the zoom level. They are names of d3 time unit classes. * * @public */ - export default TimeUnit; + export default config.TimeUnit; } -declare module "sap/gantt/ZoomControlType" { - import ZoomControlType from "sap/gantt/library"; +declare module "sap/gantt/config/ZoomControlType" { + import {config} from "sap/gantt/library"; /** * Define the type of zoom control in global tool bar * * @public */ - export default ZoomControlType; + export default config.ZoomControlType; } -declare module "sap/gantt/ColorMatrixValue" { - import ColorMatrixValue from "sap/gantt/library"; +declare module "sap/gantt/def/filter/ColorMatrixValue" { + import {def} from "sap/gantt/library"; /** * Color Matrix Values. @@ -63,11 +63,11 @@ declare module "sap/gantt/ColorMatrixValue" { * * @public */ - export default ColorMatrixValue; + export default def.filter.ColorMatrixValue; } -declare module "sap/gantt/MorphologyOperator" { - import MorphologyOperator from "sap/gantt/library"; +declare module "sap/gantt/def/filter/MorphologyOperator" { + import {def} from "sap/gantt/library"; /** * Morphology Operators. @@ -76,11 +76,11 @@ declare module "sap/gantt/MorphologyOperator" { * * @public */ - export default MorphologyOperator; + export default def.filter.MorphologyOperator; } declare module "sap/gantt/DeltaLineLayer" { - import DeltaLineLayer from "sap/gantt/library"; + import {DeltaLineLayer} from "sap/gantt/library"; /** * The layer of delta line in chart area @@ -91,19 +91,19 @@ declare module "sap/gantt/DeltaLineLayer" { export default DeltaLineLayer; } -declare module "sap/gantt/GhostAlignment" { - import GhostAlignment from "sap/gantt/library"; +declare module "sap/gantt/dragdrop/GhostAlignment" { + import {dragdrop} from "sap/gantt/library"; /** * Defines how Gantt Chart aligns a draggable shape to the mouse pointer before dragging. * * @public */ - export default GhostAlignment; + export default dragdrop.GhostAlignment; } -declare module "sap/gantt/SnapMode" { - import SnapMode from "sap/gantt/library"; +declare module "sap/gantt/dragdrop/SnapMode" { + import {dragdrop} from "sap/gantt/library"; /** * Defines the side of the shape that gets attached to the nearest visual element. @@ -111,11 +111,11 @@ declare module "sap/gantt/SnapMode" { * @public * @since 1.91 */ - export default SnapMode; + export default dragdrop.SnapMode; } declare module "sap/gantt/DragOrientation" { - import DragOrientation from "sap/gantt/library"; + import {DragOrientation} from "sap/gantt/library"; /** * Defines how dragged ghost moves when dragging. @@ -126,7 +126,7 @@ declare module "sap/gantt/DragOrientation" { } declare module "sap/gantt/MouseWheelZoomType" { - import MouseWheelZoomType from "sap/gantt/library"; + import {MouseWheelZoomType} from "sap/gantt/library"; /** * Different zoom type for mouse wheel zooming @@ -137,7 +137,7 @@ declare module "sap/gantt/MouseWheelZoomType" { } declare module "sap/gantt/SelectionMode" { - import SelectionMode from "sap/gantt/library"; + import {SelectionMode} from "sap/gantt/library"; /** * Different selection mode for GanttChart @@ -147,19 +147,19 @@ declare module "sap/gantt/SelectionMode" { export default SelectionMode; } -declare module "sap/gantt/RelationshipType" { - import RelationshipType from "sap/gantt/library"; +declare module "sap/gantt/shape/ext/rls/RelationshipType" { + import {shape} from "sap/gantt/library"; /** * Type of relationships * * @public */ - export default RelationshipType; + export default shape.ext.rls.RelationshipType; } -declare module "sap/gantt/ShapeCategory" { - import ShapeCategory from "sap/gantt/library"; +declare module "sap/gantt/shape/ShapeCategory" { + import {shape} from "sap/gantt/library"; /** * Shape Categories. @@ -168,11 +168,11 @@ declare module "sap/gantt/ShapeCategory" { * * @public */ - export default ShapeCategory; + export default shape.ShapeCategory; } -declare module "sap/gantt/connectorType" { - import connectorType from "sap/gantt/library"; +declare module "sap/gantt/simple/connectorType" { + import {simple} from "sap/gantt/library"; /** * Type connector shapes for relationship @@ -180,22 +180,22 @@ declare module "sap/gantt/connectorType" { * @public * @since 1.86 */ - export default connectorType; + export default simple.connectorType; } -declare module "sap/gantt/ContainerToolbarPlaceholderType" { - import ContainerToolbarPlaceholderType from "sap/gantt/library"; +declare module "sap/gantt/simple/ContainerToolbarPlaceholderType" { + import {simple} from "sap/gantt/library"; /** * Toolbar placeholders for a Gantt chart container. * * @public */ - export default ContainerToolbarPlaceholderType; + export default simple.ContainerToolbarPlaceholderType; } -declare module "sap/gantt/findByOperator" { - import findByOperator from "sap/gantt/library"; +declare module "sap/gantt/simple/findByOperator" { + import {simple} from "sap/gantt/library"; /** * Defines the relationship between the operator and the property names using the findAll method @@ -203,22 +203,22 @@ declare module "sap/gantt/findByOperator" { * @public * @since 1.100 */ - export default findByOperator; + export default simple.findByOperator; } -declare module "sap/gantt/GanttChartWithTableDisplayType" { - import GanttChartWithTableDisplayType from "sap/gantt/library"; +declare module "sap/gantt/simple/GanttChartWithTableDisplayType" { + import {simple} from "sap/gantt/library"; /** * Gantt chart display types. * * @public */ - export default GanttChartWithTableDisplayType; + export default simple.GanttChartWithTableDisplayType; } -declare module "sap/gantt/horizontalTextAlignment" { - import horizontalTextAlignment from "sap/gantt/library"; +declare module "sap/gantt/simple/horizontalTextAlignment" { + import {simple} from "sap/gantt/library"; /** * Configuration options for horizontal alignment of title of the shape representing a Task. @@ -226,11 +226,11 @@ declare module "sap/gantt/horizontalTextAlignment" { * @public * @since 1.81 */ - export default horizontalTextAlignment; + export default simple.horizontalTextAlignment; } -declare module "sap/gantt/relationshipShapeSize" { - import relationshipShapeSize from "sap/gantt/library"; +declare module "sap/gantt/simple/relationshipShapeSize" { + import {simple} from "sap/gantt/library"; /** * Size of shapes in the relationship @@ -238,11 +238,11 @@ declare module "sap/gantt/relationshipShapeSize" { * @public * @since 1.96 */ - export default relationshipShapeSize; + export default simple.relationshipShapeSize; } -declare module "sap/gantt/RelationshipType" { - import RelationshipType from "sap/gantt/library"; +declare module "sap/gantt/simple/RelationshipType" { + import {simple} from "sap/gantt/library"; /** * Type of relationship shape. sap.gantt.simple.RelationshipType shall be used to define property type on class sap.gantt.simple.Relationship @@ -250,11 +250,11 @@ declare module "sap/gantt/RelationshipType" { * @public * @since 1.60.0 */ - export default RelationshipType; + export default simple.RelationshipType; } -declare module "sap/gantt/ShapeAlignment" { - import ShapeAlignment from "sap/gantt/library"; +declare module "sap/gantt/simple/shapes/ShapeAlignment" { + import {simple} from "sap/gantt/library"; /** * Configuration options for vertical alignment of shape representing a Task. This is only applicable for Tasks. @@ -262,11 +262,11 @@ declare module "sap/gantt/ShapeAlignment" { * @public * @since 1.81 */ - export default ShapeAlignment; + export default simple.shapes.ShapeAlignment; } -declare module "sap/gantt/TaskType" { - import TaskType from "sap/gantt/library"; +declare module "sap/gantt/simple/shapes/TaskType" { + import {simple} from "sap/gantt/library"; /** * Type of task shape. @@ -274,11 +274,11 @@ declare module "sap/gantt/TaskType" { * @public * @since 1.69 */ - export default TaskType; + export default simple.shapes.TaskType; } -declare module "sap/gantt/verticalTextAlignment" { - import verticalTextAlignment from "sap/gantt/library"; +declare module "sap/gantt/simple/verticalTextAlignment" { + import {simple} from "sap/gantt/library"; /** * Configuration options for vertical alignment of title of the shape representing a Task. @@ -286,11 +286,11 @@ declare module "sap/gantt/verticalTextAlignment" { * @public * @since 1.81 */ - export default verticalTextAlignment; + export default simple.verticalTextAlignment; } -declare module "sap/gantt/VisibleHorizonUpdateSubType" { - import VisibleHorizonUpdateSubType from "sap/gantt/library"; +declare module "sap/gantt/simple/VisibleHorizonUpdateSubType" { + import {simple} from "sap/gantt/library"; /** * This specifies the sub reason detailing why the visible horizon is changing @@ -298,11 +298,11 @@ declare module "sap/gantt/VisibleHorizonUpdateSubType" { * @public * @since 1.100 */ - export default VisibleHorizonUpdateSubType; + export default simple.VisibleHorizonUpdateSubType; } -declare module "sap/gantt/VisibleHorizonUpdateType" { - import VisibleHorizonUpdateType from "sap/gantt/library"; +declare module "sap/gantt/simple/VisibleHorizonUpdateType" { + import {simple} from "sap/gantt/library"; /** * This type specifies the reason why visible horizon is changing. @@ -310,11 +310,11 @@ declare module "sap/gantt/VisibleHorizonUpdateType" { * @public * @since 1.68 */ - export default VisibleHorizonUpdateType; + export default simple.VisibleHorizonUpdateType; } -declare module "sap/gantt/yAxisColumnContent" { - import yAxisColumnContent from "sap/gantt/library"; +declare module "sap/gantt/simple/yAxisColumnContent" { + import {simple} from "sap/gantt/library"; /** * Configaration option for yAxis Column. @@ -322,5 +322,5 @@ declare module "sap/gantt/yAxisColumnContent" { * @public * @since 1.102 */ - export default yAxisColumnContent; + export default simple.yAxisColumnContent; } diff --git a/resources/overrides/library/sap.m.d.ts b/resources/overrides/library/sap.m.d.ts index 23d0da87..c8b65d4b 100644 --- a/resources/overrides/library/sap.m.d.ts +++ b/resources/overrides/library/sap.m.d.ts @@ -1,5 +1,5 @@ declare module "sap/m/BackgroundDesign" { - import BackgroundDesign from "sap/m/library"; + import {BackgroundDesign} from "sap/m/library"; /** * Available Background Design. @@ -10,7 +10,7 @@ declare module "sap/m/BackgroundDesign" { } declare module "sap/m/BadgeAnimationType" { - import BadgeAnimationType from "sap/m/library"; + import {BadgeAnimationType} from "sap/m/library"; /** * Types of animation performed by {@link sap.m.BadgeEnabler}. @@ -22,7 +22,7 @@ declare module "sap/m/BadgeAnimationType" { } declare module "sap/m/BadgeState" { - import BadgeState from "sap/m/library"; + import {BadgeState} from "sap/m/library"; /** * Types of state of {@link sap.m.BadgeEnabler} to expose its current state. @@ -34,7 +34,7 @@ declare module "sap/m/BadgeState" { } declare module "sap/m/BarDesign" { - import BarDesign from "sap/m/library"; + import {BarDesign} from "sap/m/library"; /** * Types of the Bar design. @@ -46,7 +46,7 @@ declare module "sap/m/BarDesign" { } declare module "sap/m/BorderDesign" { - import BorderDesign from "sap/m/library"; + import {BorderDesign} from "sap/m/library"; /** * Available Border Design. @@ -57,7 +57,7 @@ declare module "sap/m/BorderDesign" { } declare module "sap/m/BreadcrumbsSeparatorStyle" { - import BreadcrumbsSeparatorStyle from "sap/m/library"; + import {BreadcrumbsSeparatorStyle} from "sap/m/library"; /** * Variations of the {@link sap.m.Breadcrumbs} separators. @@ -69,7 +69,7 @@ declare module "sap/m/BreadcrumbsSeparatorStyle" { } declare module "sap/m/ButtonAccessibleRole" { - import ButtonAccessibleRole from "sap/m/library"; + import {ButtonAccessibleRole} from "sap/m/library"; /** * Enumeration for possible Button accessibility roles. @@ -81,7 +81,7 @@ declare module "sap/m/ButtonAccessibleRole" { } declare module "sap/m/ButtonType" { - import ButtonType from "sap/m/library"; + import {ButtonType} from "sap/m/library"; /** * Different predefined button types for the {@link sap.m.Button sap.m.Button}. @@ -92,7 +92,7 @@ declare module "sap/m/ButtonType" { } declare module "sap/m/CarouselArrowsPlacement" { - import CarouselArrowsPlacement from "sap/m/library"; + import {CarouselArrowsPlacement} from "sap/m/library"; /** * Carousel arrows align. @@ -103,7 +103,7 @@ declare module "sap/m/CarouselArrowsPlacement" { } declare module "sap/m/DateTimeInputType" { - import DateTimeInputType from "sap/m/library"; + import {DateTimeInputType} from "sap/m/library"; /** * A subset of DateTimeInput types that fit to a simple API returning one string. @@ -115,7 +115,7 @@ declare module "sap/m/DateTimeInputType" { } declare module "sap/m/DeviationIndicator" { - import DeviationIndicator from "sap/m/library"; + import {DeviationIndicator} from "sap/m/library"; /** * Enum of the available deviation markers for the NumericContent control. @@ -127,7 +127,7 @@ declare module "sap/m/DeviationIndicator" { } declare module "sap/m/DialogRoleType" { - import DialogRoleType from "sap/m/library"; + import {DialogRoleType} from "sap/m/library"; /** * Enum for the ARIA role of {@link sap.m.Dialog} control. @@ -139,7 +139,7 @@ declare module "sap/m/DialogRoleType" { } declare module "sap/m/DialogType" { - import DialogType from "sap/m/library"; + import {DialogType} from "sap/m/library"; /** * Enum for the type of {@link sap.m.Dialog} control. @@ -150,7 +150,7 @@ declare module "sap/m/DialogType" { } declare module "sap/m/DraftIndicatorState" { - import DraftIndicatorState from "sap/m/library"; + import {DraftIndicatorState} from "sap/m/library"; /** * Enum for the state of {@link sap.m.DraftIndicator} control. @@ -161,7 +161,7 @@ declare module "sap/m/DraftIndicatorState" { } declare module "sap/m/DynamicDateRangeGroups" { - import DynamicDateRangeGroups from "sap/m/library"; + import {DynamicDateRangeGroups} from "sap/m/library"; /** * Defines the groups in {@link sap.m.DynamicDateRange}. @@ -173,7 +173,7 @@ declare module "sap/m/DynamicDateRangeGroups" { } declare module "sap/m/EmptyIndicatorMode" { - import EmptyIndicatorMode from "sap/m/library"; + import {EmptyIndicatorMode} from "sap/m/library"; /** * Modes in which a control will render empty indicator if its content is empty. @@ -185,7 +185,7 @@ declare module "sap/m/EmptyIndicatorMode" { } declare module "sap/m/ExpandableTextOverflowMode" { - import ExpandableTextOverflowMode from "sap/m/library"; + import {ExpandableTextOverflowMode} from "sap/m/library"; /** * Expandable text overflow mode @@ -196,7 +196,7 @@ declare module "sap/m/ExpandableTextOverflowMode" { } declare module "sap/m/FacetFilterListDataType" { - import FacetFilterListDataType from "sap/m/library"; + import {FacetFilterListDataType} from "sap/m/library"; /** * FacetFilterList data types. @@ -207,7 +207,7 @@ declare module "sap/m/FacetFilterListDataType" { } declare module "sap/m/FacetFilterType" { - import FacetFilterType from "sap/m/library"; + import {FacetFilterType} from "sap/m/library"; /** * Used by the FacetFilter control to adapt its design according to type. @@ -218,7 +218,7 @@ declare module "sap/m/FacetFilterType" { } declare module "sap/m/FlexAlignContent" { - import FlexAlignContent from "sap/m/library"; + import {FlexAlignContent} from "sap/m/library"; /** * Available options for the layout of container lines along the cross axis of the flexbox layout. @@ -229,7 +229,7 @@ declare module "sap/m/FlexAlignContent" { } declare module "sap/m/FlexAlignItems" { - import FlexAlignItems from "sap/m/library"; + import {FlexAlignItems} from "sap/m/library"; /** * Available options for the layout of all elements along the cross axis of the flexbox layout. @@ -240,7 +240,7 @@ declare module "sap/m/FlexAlignItems" { } declare module "sap/m/FlexAlignSelf" { - import FlexAlignSelf from "sap/m/library"; + import {FlexAlignSelf} from "sap/m/library"; /** * Available options for the layout of individual elements along the cross axis of the flexbox layout overriding the default alignment. @@ -251,7 +251,7 @@ declare module "sap/m/FlexAlignSelf" { } declare module "sap/m/FlexDirection" { - import FlexDirection from "sap/m/library"; + import {FlexDirection} from "sap/m/library"; /** * Available directions for flex layouts. @@ -262,7 +262,7 @@ declare module "sap/m/FlexDirection" { } declare module "sap/m/FlexJustifyContent" { - import FlexJustifyContent from "sap/m/library"; + import {FlexJustifyContent} from "sap/m/library"; /** * Available options for the layout of elements along the main axis of the flexbox layout. @@ -273,7 +273,7 @@ declare module "sap/m/FlexJustifyContent" { } declare module "sap/m/FlexRendertype" { - import FlexRendertype from "sap/m/library"; + import {FlexRendertype} from "sap/m/library"; /** * Determines the type of HTML elements used for rendering controls. @@ -284,7 +284,7 @@ declare module "sap/m/FlexRendertype" { } declare module "sap/m/FlexWrap" { - import FlexWrap from "sap/m/library"; + import {FlexWrap} from "sap/m/library"; /** * Available options for the wrapping behavior of a flex container. @@ -295,7 +295,7 @@ declare module "sap/m/FlexWrap" { } declare module "sap/m/FrameType" { - import FrameType from "sap/m/library"; + import {FrameType} from "sap/m/library"; /** * Enum for possible frame size types for sap.m.TileContent and sap.m.GenericTile control. @@ -307,7 +307,7 @@ declare module "sap/m/FrameType" { } declare module "sap/m/GenericTagDesign" { - import GenericTagDesign from "sap/m/library"; + import {GenericTagDesign} from "sap/m/library"; /** * Design modes for the GenericTag control. @@ -319,7 +319,7 @@ declare module "sap/m/GenericTagDesign" { } declare module "sap/m/GenericTagValueState" { - import GenericTagValueState from "sap/m/library"; + import {GenericTagValueState} from "sap/m/library"; /** * Value states for the GenericTag control. @@ -331,7 +331,7 @@ declare module "sap/m/GenericTagValueState" { } declare module "sap/m/GenericTileMode" { - import GenericTileMode from "sap/m/library"; + import {GenericTileMode} from "sap/m/library"; /** * Defines the mode of GenericTile. @@ -343,7 +343,7 @@ declare module "sap/m/GenericTileMode" { } declare module "sap/m/GenericTileScope" { - import GenericTileScope from "sap/m/library"; + import {GenericTileScope} from "sap/m/library"; /** * Defines the scopes of GenericTile enabling the developer to implement different "flavors" of tiles. @@ -355,7 +355,7 @@ declare module "sap/m/GenericTileScope" { } declare module "sap/m/HeaderLevel" { - import HeaderLevel from "sap/m/library"; + import {HeaderLevel} from "sap/m/library"; /** * Different levels for headers. @@ -366,7 +366,7 @@ declare module "sap/m/HeaderLevel" { } declare module "sap/m/IBarHTMLTag" { - import IBarHTMLTag from "sap/m/library"; + import {IBarHTMLTag} from "sap/m/library"; /** * Allowed tags for the implementation of the IBar interface. @@ -378,7 +378,7 @@ declare module "sap/m/IBarHTMLTag" { } declare module "sap/m/IconTabDensityMode" { - import IconTabDensityMode from "sap/m/library"; + import {IconTabDensityMode} from "sap/m/library"; /** * Specifies IconTabBar tab density mode. @@ -389,7 +389,7 @@ declare module "sap/m/IconTabDensityMode" { } declare module "sap/m/IconTabFilterDesign" { - import IconTabFilterDesign from "sap/m/library"; + import {IconTabFilterDesign} from "sap/m/library"; /** * Available Filter Item Design. @@ -400,7 +400,7 @@ declare module "sap/m/IconTabFilterDesign" { } declare module "sap/m/IconTabHeaderMode" { - import IconTabHeaderMode from "sap/m/library"; + import {IconTabHeaderMode} from "sap/m/library"; /** * Specifies IconTabBar header mode. @@ -411,7 +411,7 @@ declare module "sap/m/IconTabHeaderMode" { } declare module "sap/m/ImageMode" { - import ImageMode from "sap/m/library"; + import {ImageMode} from "sap/m/library"; /** * Determines how the source image is used on the output DOM element. @@ -423,7 +423,7 @@ declare module "sap/m/ImageMode" { } declare module "sap/m/InputTextFormatMode" { - import InputTextFormatMode from "sap/m/library"; + import {InputTextFormatMode} from "sap/m/library"; /** * Defines how the input display text should be formatted. @@ -435,7 +435,7 @@ declare module "sap/m/InputTextFormatMode" { } declare module "sap/m/InputType" { - import InputType from "sap/m/library"; + import {InputType} from "sap/m/library"; /** * A subset of input types that fits to a simple API returning one string. @@ -448,7 +448,7 @@ declare module "sap/m/InputType" { } declare module "sap/m/LabelDesign" { - import LabelDesign from "sap/m/library"; + import {LabelDesign} from "sap/m/library"; /** * Available label display modes. @@ -459,7 +459,7 @@ declare module "sap/m/LabelDesign" { } declare module "sap/m/LightBoxLoadingStates" { - import LightBoxLoadingStates from "sap/m/library"; + import {LightBoxLoadingStates} from "sap/m/library"; /** * Types of LightBox loading stages. @@ -471,7 +471,7 @@ declare module "sap/m/LightBoxLoadingStates" { } declare module "sap/m/LinkAccessibleRole" { - import LinkAccessibleRole from "sap/m/library"; + import {LinkAccessibleRole} from "sap/m/library"; /** * Enumeration for possible Link accessibility roles. @@ -483,7 +483,7 @@ declare module "sap/m/LinkAccessibleRole" { } declare module "sap/m/LinkConversion" { - import LinkConversion from "sap/m/library"; + import {LinkConversion} from "sap/m/library"; /** * Enumeration for possible link-to-anchor conversion strategy. @@ -495,7 +495,7 @@ declare module "sap/m/LinkConversion" { } declare module "sap/m/ListGrowingDirection" { - import ListGrowingDirection from "sap/m/library"; + import {ListGrowingDirection} from "sap/m/library"; /** * Defines the growing direction of the sap.m.List or sap.m.Table. @@ -507,7 +507,7 @@ declare module "sap/m/ListGrowingDirection" { } declare module "sap/m/ListHeaderDesign" { - import ListHeaderDesign from "sap/m/library"; + import {ListHeaderDesign} from "sap/m/library"; /** * Defines the different header styles. @@ -519,7 +519,7 @@ declare module "sap/m/ListHeaderDesign" { } declare module "sap/m/ListKeyboardMode" { - import ListKeyboardMode from "sap/m/library"; + import {ListKeyboardMode} from "sap/m/library"; /** * Defines the keyboard handling behavior of the sap.m.List or sap.m.Table. @@ -531,7 +531,7 @@ declare module "sap/m/ListKeyboardMode" { } declare module "sap/m/ListMode" { - import ListMode from "sap/m/library"; + import {ListMode} from "sap/m/library"; /** * Defines the mode of the list. @@ -542,7 +542,7 @@ declare module "sap/m/ListMode" { } declare module "sap/m/ListSeparators" { - import ListSeparators from "sap/m/library"; + import {ListSeparators} from "sap/m/library"; /** * Defines which separator style will be applied for the items. @@ -553,7 +553,7 @@ declare module "sap/m/ListSeparators" { } declare module "sap/m/ListType" { - import ListType from "sap/m/library"; + import {ListType} from "sap/m/library"; /** * Defines the visual indication and behaviour of the list items. @@ -564,7 +564,7 @@ declare module "sap/m/ListType" { } declare module "sap/m/LoadState" { - import LoadState from "sap/m/library"; + import {LoadState} from "sap/m/library"; /** * Enumeration of possible load statuses. @@ -576,7 +576,7 @@ declare module "sap/m/LoadState" { } declare module "sap/m/MenuButtonMode" { - import MenuButtonMode from "sap/m/library"; + import {MenuButtonMode} from "sap/m/library"; /** * Different modes for a MenuButton (predefined types). @@ -588,7 +588,7 @@ declare module "sap/m/MenuButtonMode" { } declare module "sap/m/MultiSelectMode" { - import MultiSelectMode from "sap/m/library"; + import {MultiSelectMode} from "sap/m/library"; /** * Enumeration of the multiSelectMode>/code> in ListBase. @@ -600,7 +600,7 @@ declare module "sap/m/MultiSelectMode" { } declare module "sap/m/ObjectHeaderPictureShape" { - import ObjectHeaderPictureShape from "sap/m/library"; + import {ObjectHeaderPictureShape} from "sap/m/library"; /** * Used by the ObjectHeader control to define which shape to use for the image. @@ -612,7 +612,7 @@ declare module "sap/m/ObjectHeaderPictureShape" { } declare module "sap/m/ObjectMarkerType" { - import ObjectMarkerType from "sap/m/library"; + import {ObjectMarkerType} from "sap/m/library"; /** * Predefined types for ObjectMarker. @@ -623,7 +623,7 @@ declare module "sap/m/ObjectMarkerType" { } declare module "sap/m/ObjectMarkerVisibility" { - import ObjectMarkerVisibility from "sap/m/library"; + import {ObjectMarkerVisibility} from "sap/m/library"; /** * Predefined visibility for ObjectMarker. @@ -634,7 +634,7 @@ declare module "sap/m/ObjectMarkerVisibility" { } declare module "sap/m/OverflowToolbarPriority" { - import OverflowToolbarPriority from "sap/m/library"; + import {OverflowToolbarPriority} from "sap/m/library"; /** * Defines the priorities of the controls within {@link sap.m.OverflowToolbar}. @@ -646,7 +646,7 @@ declare module "sap/m/OverflowToolbarPriority" { } declare module "sap/m/P13nConditionOperation" { - import P13nConditionOperation from "sap/m/library"; + import {P13nConditionOperation} from "sap/m/library"; /** * @experimental (since 1.26) - !!! THIS TYPE IS ONLY FOR INTERNAL USE !!! @@ -656,7 +656,7 @@ declare module "sap/m/P13nConditionOperation" { } declare module "sap/m/P13nPanelType" { - import P13nPanelType from "sap/m/library"; + import {P13nPanelType} from "sap/m/library"; /** * Type of panels used in the personalization dialog. @@ -667,7 +667,7 @@ declare module "sap/m/P13nPanelType" { } declare module "sap/m/P13nPopupMode" { - import P13nPopupMode from "sap/m/library"; + import {P13nPopupMode} from "sap/m/library"; /** * Type of popup used in the sap.m.p13n.Popup. @@ -678,7 +678,7 @@ declare module "sap/m/P13nPopupMode" { } declare module "sap/m/PageBackgroundDesign" { - import PageBackgroundDesign from "sap/m/library"; + import {PageBackgroundDesign} from "sap/m/library"; /** * Available Page Background Design. @@ -689,7 +689,7 @@ declare module "sap/m/PageBackgroundDesign" { } declare module "sap/m/PanelAccessibleRole" { - import PanelAccessibleRole from "sap/m/library"; + import {PanelAccessibleRole} from "sap/m/library"; /** * Available Panel Accessible Landmark Roles. @@ -700,7 +700,7 @@ declare module "sap/m/PanelAccessibleRole" { } declare module "sap/m/PDFViewerDisplayType" { - import PDFViewerDisplayType from "sap/m/library"; + import {PDFViewerDisplayType} from "sap/m/library"; /** * PDF viewer display types. @@ -711,7 +711,7 @@ declare module "sap/m/PDFViewerDisplayType" { } declare module "sap/m/PlacementType" { - import PlacementType from "sap/m/library"; + import {PlacementType} from "sap/m/library"; /** * Types for the placement of Popover control. @@ -722,7 +722,7 @@ declare module "sap/m/PlacementType" { } declare module "sap/m/PlanningCalendarBuiltInView" { - import PlanningCalendarBuiltInView from "sap/m/library"; + import {PlanningCalendarBuiltInView} from "sap/m/library"; /** * A list of the default built-in views in a {@link sap.m.PlanningCalendar}, described by their keys. @@ -734,7 +734,7 @@ declare module "sap/m/PlanningCalendarBuiltInView" { } declare module "sap/m/PlanningCalendarStickyMode" { - import PlanningCalendarStickyMode from "sap/m/library"; + import {PlanningCalendarStickyMode} from "sap/m/library"; /** * Available sticky modes for the {@link sap.m.SinglePlanningCalendar} @@ -745,8 +745,8 @@ declare module "sap/m/PlanningCalendarStickyMode" { export default PlanningCalendarStickyMode; } -declare module "sap/m/CopyPreference" { - import CopyPreference from "sap/m/library"; +declare module "sap/m/plugins/CopyPreference" { + import {plugins} from "sap/m/library"; /** * Enumeration of the copyPreference in CopyProvider. Determines what is copied during a copy operation. @@ -754,11 +754,11 @@ declare module "sap/m/CopyPreference" { * @public * @since 1.119 */ - export default CopyPreference; + export default plugins.CopyPreference; } declare module "sap/m/PopinDisplay" { - import PopinDisplay from "sap/m/library"; + import {PopinDisplay} from "sap/m/library"; /** * Defines the display of table pop-ins. @@ -770,7 +770,7 @@ declare module "sap/m/PopinDisplay" { } declare module "sap/m/PopinLayout" { - import PopinLayout from "sap/m/library"; + import {PopinLayout} from "sap/m/library"; /** * Defines the layout options of the table popins. @@ -782,7 +782,7 @@ declare module "sap/m/PopinLayout" { } declare module "sap/m/Priority" { - import Priority from "sap/m/library"; + import {Priority} from "sap/m/library"; /** * Defines the priority for the TileContent in ActionMode @@ -793,7 +793,7 @@ declare module "sap/m/Priority" { } declare module "sap/m/QuickViewGroupElementType" { - import QuickViewGroupElementType from "sap/m/library"; + import {QuickViewGroupElementType} from "sap/m/library"; /** * QuickViewGroupElement is a combination of one label and another control (Link or Text) associated to this label. @@ -804,7 +804,7 @@ declare module "sap/m/QuickViewGroupElementType" { } declare module "sap/m/RatingIndicatorVisualMode" { - import RatingIndicatorVisualMode from "sap/m/library"; + import {RatingIndicatorVisualMode} from "sap/m/library"; /** * Possible values for the visualization of float values in the RatingIndicator control. @@ -815,7 +815,7 @@ declare module "sap/m/RatingIndicatorVisualMode" { } declare module "sap/m/ResetAllMode" { - import ResetAllMode from "sap/m/library"; + import {ResetAllMode} from "sap/m/library"; /** * Enumeration of the ResetAllMode>/code> that can be used in a TablePersoController. @@ -826,7 +826,7 @@ declare module "sap/m/ResetAllMode" { } declare module "sap/m/ScreenSize" { - import ScreenSize from "sap/m/library"; + import {ScreenSize} from "sap/m/library"; /** * Breakpoint names for different screen sizes. @@ -837,7 +837,7 @@ declare module "sap/m/ScreenSize" { } declare module "sap/m/SelectDialogInitialFocus" { - import SelectDialogInitialFocus from "sap/m/library"; + import {SelectDialogInitialFocus} from "sap/m/library"; /** * Defines the control that will receive the initial focus in the sap.m.SelectDialog or sap.m.TableSelectDialog. @@ -849,7 +849,7 @@ declare module "sap/m/SelectDialogInitialFocus" { } declare module "sap/m/SelectionDetailsActionLevel" { - import SelectionDetailsActionLevel from "sap/m/library"; + import {SelectionDetailsActionLevel} from "sap/m/library"; /** * Enumeration for different action levels in sap.m.SelectionDetails control. @@ -861,7 +861,7 @@ declare module "sap/m/SelectionDetailsActionLevel" { } declare module "sap/m/SelectListKeyboardNavigationMode" { - import SelectListKeyboardNavigationMode from "sap/m/library"; + import {SelectListKeyboardNavigationMode} from "sap/m/library"; /** * Defines the keyboard navigation mode. @@ -873,7 +873,7 @@ declare module "sap/m/SelectListKeyboardNavigationMode" { } declare module "sap/m/SelectType" { - import SelectType from "sap/m/library"; + import {SelectType} from "sap/m/library"; /** * Enumeration for different Select types. @@ -884,8 +884,8 @@ declare module "sap/m/SelectType" { export default SelectType; } -declare module "sap/m/SemanticRuleSetType" { - import SemanticRuleSetType from "sap/m/library"; +declare module "sap/m/semantic/SemanticRuleSetType" { + import {semantic} from "sap/m/library"; /** * Declares the type of semantic ruleset that will govern the styling and positioning of semantic content. @@ -893,11 +893,11 @@ declare module "sap/m/SemanticRuleSetType" { * @public * @since 1.44 */ - export default SemanticRuleSetType; + export default semantic.SemanticRuleSetType; } declare module "sap/m/SinglePlanningCalendarSelectionMode" { - import SinglePlanningCalendarSelectionMode from "sap/m/library"; + import {SinglePlanningCalendarSelectionMode} from "sap/m/library"; /** * Available selection modes for the {@link sap.m.SinglePlanningCalendar} @@ -909,7 +909,7 @@ declare module "sap/m/SinglePlanningCalendarSelectionMode" { } declare module "sap/m/Size" { - import Size from "sap/m/library"; + import {Size} from "sap/m/library"; /** * Enumeration of possible size settings. @@ -921,7 +921,7 @@ declare module "sap/m/Size" { } declare module "sap/m/SplitAppMode" { - import SplitAppMode from "sap/m/library"; + import {SplitAppMode} from "sap/m/library"; /** * The mode of SplitContainer or SplitApp control to show/hide the master area. @@ -932,7 +932,7 @@ declare module "sap/m/SplitAppMode" { } declare module "sap/m/StandardDynamicDateRangeKeys" { - import StandardDynamicDateRangeKeys from "sap/m/library"; + import {StandardDynamicDateRangeKeys} from "sap/m/library"; /** * The option keys of all the standard options of a DynamicDateRange control. @@ -943,7 +943,7 @@ declare module "sap/m/StandardDynamicDateRangeKeys" { } declare module "sap/m/StandardTileType" { - import StandardTileType from "sap/m/library"; + import {StandardTileType} from "sap/m/library"; /** * Types for StandardTile. @@ -954,7 +954,7 @@ declare module "sap/m/StandardTileType" { } declare module "sap/m/StepInputStepModeType" { - import StepInputStepModeType from "sap/m/library"; + import {StepInputStepModeType} from "sap/m/library"; /** * Available step modes for {@link sap.m.StepInput}. @@ -966,7 +966,7 @@ declare module "sap/m/StepInputStepModeType" { } declare module "sap/m/StepInputValidationMode" { - import StepInputValidationMode from "sap/m/library"; + import {StepInputValidationMode} from "sap/m/library"; /** * Available validation modes for {@link sap.m.StepInput}. @@ -977,7 +977,7 @@ declare module "sap/m/StepInputValidationMode" { } declare module "sap/m/Sticky" { - import Sticky from "sap/m/library"; + import {Sticky} from "sap/m/library"; /** * Defines which area of the control remains fixed at the top of the page during vertical scrolling as long as the control is in the viewport. @@ -989,7 +989,7 @@ declare module "sap/m/Sticky" { } declare module "sap/m/StringFilterOperator" { - import StringFilterOperator from "sap/m/library"; + import {StringFilterOperator} from "sap/m/library"; /** * Types of string filter operators. @@ -1001,7 +1001,7 @@ declare module "sap/m/StringFilterOperator" { } declare module "sap/m/SwipeDirection" { - import SwipeDirection from "sap/m/library"; + import {SwipeDirection} from "sap/m/library"; /** * Directions for swipe event. @@ -1012,7 +1012,7 @@ declare module "sap/m/SwipeDirection" { } declare module "sap/m/SwitchType" { - import SwitchType from "sap/m/library"; + import {SwitchType} from "sap/m/library"; /** * Enumeration for different switch types. @@ -1022,8 +1022,8 @@ declare module "sap/m/SwitchType" { export default SwitchType; } -declare module "sap/m/Category" { - import Category from "sap/m/library"; +declare module "sap/m/table/columnmenu/Category" { + import {table} from "sap/m/library"; /** * Categories of column menu entries. @@ -1031,11 +1031,11 @@ declare module "sap/m/Category" { * @public * @since 1.110 */ - export default Category; + export default table.columnmenu.Category; } declare module "sap/m/TabsOverflowMode" { - import TabsOverflowMode from "sap/m/library"; + import {TabsOverflowMode} from "sap/m/library"; /** * Specifies IconTabBar tab overflow mode. @@ -1047,7 +1047,7 @@ declare module "sap/m/TabsOverflowMode" { } declare module "sap/m/TileSizeBehavior" { - import TileSizeBehavior from "sap/m/library"; + import {TileSizeBehavior} from "sap/m/library"; /** * Describes the behavior of tiles when displayed on a small-screened phone (374px wide and lower). @@ -1059,7 +1059,7 @@ declare module "sap/m/TileSizeBehavior" { } declare module "sap/m/TimePickerMaskMode" { - import TimePickerMaskMode from "sap/m/library"; + import {TimePickerMaskMode} from "sap/m/library"; /** * Different modes for the sap.m.TimePicker mask. @@ -1071,7 +1071,7 @@ declare module "sap/m/TimePickerMaskMode" { } declare module "sap/m/TitleAlignment" { - import TitleAlignment from "sap/m/library"; + import {TitleAlignment} from "sap/m/library"; /** * Declares the type of title alignment for some controls @@ -1082,7 +1082,7 @@ declare module "sap/m/TitleAlignment" { } declare module "sap/m/TokenizerRenderMode" { - import TokenizerRenderMode from "sap/m/library"; + import {TokenizerRenderMode} from "sap/m/library"; /** * Types of the sap.m.Tokenizer responsive modes. @@ -1094,7 +1094,7 @@ declare module "sap/m/TokenizerRenderMode" { } declare module "sap/m/ToolbarDesign" { - import ToolbarDesign from "sap/m/library"; + import {ToolbarDesign} from "sap/m/library"; /** * Types of the Toolbar Design. @@ -1108,7 +1108,7 @@ declare module "sap/m/ToolbarDesign" { } declare module "sap/m/ToolbarStyle" { - import ToolbarStyle from "sap/m/library"; + import {ToolbarStyle} from "sap/m/library"; /** * Types of visual styles for the {@link sap.m.Toolbar}. @@ -1124,7 +1124,7 @@ declare module "sap/m/ToolbarStyle" { } declare module "sap/m/UploadSetwithTableActionPlaceHolder" { - import UploadSetwithTableActionPlaceHolder from "sap/m/library"; + import {UploadSetwithTableActionPlaceHolder} from "sap/m/library"; /** * Defines the placeholder type for the control to be replaced. @@ -1136,7 +1136,7 @@ declare module "sap/m/UploadSetwithTableActionPlaceHolder" { } declare module "sap/m/UploadState" { - import UploadState from "sap/m/library"; + import {UploadState} from "sap/m/library"; /** * States of the upload process of {@link sap.m.UploadCollectionItem}. @@ -1147,7 +1147,7 @@ declare module "sap/m/UploadState" { } declare module "sap/m/UploadType" { - import UploadType from "sap/m/library"; + import {UploadType} from "sap/m/library"; /** * Type of the upload {@link sap.m.UploadSetItem}. @@ -1158,7 +1158,7 @@ declare module "sap/m/UploadType" { } declare module "sap/m/ValueColor" { - import ValueColor from "sap/m/library"; + import {ValueColor} from "sap/m/library"; /** * Enumeration of possible value color settings. @@ -1169,7 +1169,7 @@ declare module "sap/m/ValueColor" { } declare module "sap/m/VerticalPlacementType" { - import VerticalPlacementType from "sap/m/library"; + import {VerticalPlacementType} from "sap/m/library"; /** * Types for the placement of message Popover control. @@ -1180,7 +1180,7 @@ declare module "sap/m/VerticalPlacementType" { } declare module "sap/m/WizardRenderMode" { - import WizardRenderMode from "sap/m/library"; + import {WizardRenderMode} from "sap/m/library"; /** * Wizard rendering mode. @@ -1192,7 +1192,7 @@ declare module "sap/m/WizardRenderMode" { } declare module "sap/m/WrappingType" { - import WrappingType from "sap/m/library"; + import {WrappingType} from "sap/m/library"; /** * Available wrapping types for text controls that can be wrapped that enable you to display the text as hyphenated. diff --git a/resources/overrides/library/sap.makit.d.ts b/resources/overrides/library/sap.makit.d.ts index 8c912dc2..9a3b9983 100644 --- a/resources/overrides/library/sap.makit.d.ts +++ b/resources/overrides/library/sap.makit.d.ts @@ -1,5 +1,5 @@ declare module "sap/makit/ChartType" { - import ChartType from "sap/makit/library"; + import {ChartType} from "sap/makit/library"; /** * Enumeration for chart type @@ -12,7 +12,7 @@ declare module "sap/makit/ChartType" { } declare module "sap/makit/LegendPosition" { - import LegendPosition from "sap/makit/library"; + import {LegendPosition} from "sap/makit/library"; /** * Enumeration for legend position. @@ -24,7 +24,7 @@ declare module "sap/makit/LegendPosition" { } declare module "sap/makit/SortOrder" { - import SortOrder from "sap/makit/library"; + import {SortOrder} from "sap/makit/library"; /** * Enumeration for sort order @@ -37,7 +37,7 @@ declare module "sap/makit/SortOrder" { } declare module "sap/makit/ValueBubblePosition" { - import ValueBubblePosition from "sap/makit/library"; + import {ValueBubblePosition} from "sap/makit/library"; /** * Position for Value Bubble only applies to Pie/Donut Chart. @@ -50,7 +50,7 @@ declare module "sap/makit/ValueBubblePosition" { } declare module "sap/makit/ValueBubbleStyle" { - import ValueBubbleStyle from "sap/makit/library"; + import {ValueBubbleStyle} from "sap/makit/library"; /** * Enumeration for Value Bubble's positioning style. This applies all chart types except Pie/Donut/HBar chart. diff --git a/resources/overrides/library/sap.me.d.ts b/resources/overrides/library/sap.me.d.ts index 098a2f11..269814ff 100644 --- a/resources/overrides/library/sap.me.d.ts +++ b/resources/overrides/library/sap.me.d.ts @@ -1,5 +1,5 @@ declare module "sap/me/CalendarDesign" { - import CalendarDesign from "sap/me/library"; + import {CalendarDesign} from "sap/me/library"; /** * Type of Design for the Calendar @@ -12,7 +12,7 @@ declare module "sap/me/CalendarDesign" { } declare module "sap/me/CalendarEventType" { - import CalendarEventType from "sap/me/library"; + import {CalendarEventType} from "sap/me/library"; /** * Type code for a calendar event @@ -25,7 +25,7 @@ declare module "sap/me/CalendarEventType" { } declare module "sap/me/CalendarSelectionMode" { - import CalendarSelectionMode from "sap/me/library"; + import {CalendarSelectionMode} from "sap/me/library"; /** * Selection Mode for the Calendar diff --git a/resources/overrides/library/sap.rules.ui.d.ts b/resources/overrides/library/sap.rules.ui.d.ts index bf8a312c..18691256 100644 --- a/resources/overrides/library/sap.rules.ui.d.ts +++ b/resources/overrides/library/sap.rules.ui.d.ts @@ -1,5 +1,5 @@ declare module "sap/rules/ui/DecisionTableCellFormat" { - import DecisionTableCellFormat from "sap/rules/ui/library"; + import {DecisionTableCellFormat} from "sap/rules/ui/library"; /** * An enumeration that defines how a cell in a decision table is formulated by the rule creator. @@ -11,7 +11,7 @@ declare module "sap/rules/ui/DecisionTableCellFormat" { } declare module "sap/rules/ui/DecisionTableFormat" { - import DecisionTableFormat from "sap/rules/ui/library"; + import {DecisionTableFormat} from "sap/rules/ui/library"; /** * An enumeration that decides the rendering format for decisionTable. @@ -22,7 +22,7 @@ declare module "sap/rules/ui/DecisionTableFormat" { } declare module "sap/rules/ui/ExpressionType" { - import ExpressionType from "sap/rules/ui/library"; + import {ExpressionType} from "sap/rules/ui/library"; /** * An enumeration that defines the different business data types for an expression @@ -33,7 +33,7 @@ declare module "sap/rules/ui/ExpressionType" { } declare module "sap/rules/ui/RuleHitPolicy" { - import RuleHitPolicy from "sap/rules/ui/library"; + import {RuleHitPolicy} from "sap/rules/ui/library"; /** * An enumeration that defines the output when more than one rule in the decision table is matched for a given set of inputs. @@ -45,7 +45,7 @@ declare module "sap/rules/ui/RuleHitPolicy" { } declare module "sap/rules/ui/RuleType" { - import RuleType from "sap/rules/ui/library"; + import {RuleType} from "sap/rules/ui/library"; /** * An enumeration that defines whether the rule is formulated as a table with multiple rules instead of a rule with a single associated condition. diff --git a/resources/overrides/library/sap.suite.ui.commons.d.ts b/resources/overrides/library/sap.suite.ui.commons.d.ts index ca0b04c9..913e4146 100644 --- a/resources/overrides/library/sap.suite.ui.commons.d.ts +++ b/resources/overrides/library/sap.suite.ui.commons.d.ts @@ -1,5 +1,5 @@ declare module "sap/suite/ui/commons/BulletChartMode" { - import BulletChartMode from "sap/suite/ui/commons/library"; + import {BulletChartMode} from "sap/suite/ui/commons/library"; /** * Enumeration of possible BulletChart display modes. @@ -11,7 +11,7 @@ declare module "sap/suite/ui/commons/BulletChartMode" { } declare module "sap/suite/ui/commons/CalculationBuilderComparisonOperatorType" { - import CalculationBuilderComparisonOperatorType from "sap/suite/ui/commons/library"; + import {CalculationBuilderComparisonOperatorType} from "sap/suite/ui/commons/library"; /** * Comparison operators supported by the calculation builder. @@ -22,7 +22,7 @@ declare module "sap/suite/ui/commons/CalculationBuilderComparisonOperatorType" { } declare module "sap/suite/ui/commons/CalculationBuilderFunctionType" { - import CalculationBuilderFunctionType from "sap/suite/ui/commons/library"; + import {CalculationBuilderFunctionType} from "sap/suite/ui/commons/library"; /** * Functions supported by the calculation builder.
To add a custom function, use {@link sap.suite.ui.commons.CalculationBuilderFunction}. @@ -33,7 +33,7 @@ declare module "sap/suite/ui/commons/CalculationBuilderFunctionType" { } declare module "sap/suite/ui/commons/CalculationBuilderItemType" { - import CalculationBuilderItemType from "sap/suite/ui/commons/library"; + import {CalculationBuilderItemType} from "sap/suite/ui/commons/library"; /** * The types of items (operands) that can be used in a calculation builder expression. @@ -44,7 +44,7 @@ declare module "sap/suite/ui/commons/CalculationBuilderItemType" { } declare module "sap/suite/ui/commons/CalculationBuilderLayoutType" { - import CalculationBuilderLayoutType from "sap/suite/ui/commons/library"; + import {CalculationBuilderLayoutType} from "sap/suite/ui/commons/library"; /** * Layout of the calculation builder. @@ -55,7 +55,7 @@ declare module "sap/suite/ui/commons/CalculationBuilderLayoutType" { } declare module "sap/suite/ui/commons/CalculationBuilderLogicalOperatorType" { - import CalculationBuilderLogicalOperatorType from "sap/suite/ui/commons/library"; + import {CalculationBuilderLogicalOperatorType} from "sap/suite/ui/commons/library"; /** * Logical operators supported by the calculation builder. @@ -66,7 +66,7 @@ declare module "sap/suite/ui/commons/CalculationBuilderLogicalOperatorType" { } declare module "sap/suite/ui/commons/CalculationBuilderOperatorType" { - import CalculationBuilderOperatorType from "sap/suite/ui/commons/library"; + import {CalculationBuilderOperatorType} from "sap/suite/ui/commons/library"; /** * Arithmetic operators supported by the calculation builder. @@ -77,7 +77,7 @@ declare module "sap/suite/ui/commons/CalculationBuilderOperatorType" { } declare module "sap/suite/ui/commons/CalculationBuilderValidationMode" { - import CalculationBuilderValidationMode from "sap/suite/ui/commons/library"; + import {CalculationBuilderValidationMode} from "sap/suite/ui/commons/library"; /** * Types of expression validation that define when the expression entered into the {@link sap.suite.ui.commons.CalculationBuilder} is validated. @@ -88,7 +88,7 @@ declare module "sap/suite/ui/commons/CalculationBuilderValidationMode" { } declare module "sap/suite/ui/commons/CommonBackground" { - import CommonBackground from "sap/suite/ui/commons/library"; + import {CommonBackground} from "sap/suite/ui/commons/library"; /** * Enumeration of possible theme specific background colors. @@ -100,7 +100,7 @@ declare module "sap/suite/ui/commons/CommonBackground" { } declare module "sap/suite/ui/commons/ComparisonChartView" { - import ComparisonChartView from "sap/suite/ui/commons/library"; + import {ComparisonChartView} from "sap/suite/ui/commons/library"; /** * The view of the ComparisonChart. @@ -112,7 +112,7 @@ declare module "sap/suite/ui/commons/ComparisonChartView" { } declare module "sap/suite/ui/commons/DeviationIndicator" { - import DeviationIndicator from "sap/suite/ui/commons/library"; + import {DeviationIndicator} from "sap/suite/ui/commons/library"; /** * The marker for the deviation trend. @@ -124,7 +124,7 @@ declare module "sap/suite/ui/commons/DeviationIndicator" { } declare module "sap/suite/ui/commons/FacetOverviewHeight" { - import FacetOverviewHeight from "sap/suite/ui/commons/library"; + import {FacetOverviewHeight} from "sap/suite/ui/commons/library"; /** * Enumeration of possible FacetOverview height settings. @@ -136,7 +136,7 @@ declare module "sap/suite/ui/commons/FacetOverviewHeight" { } declare module "sap/suite/ui/commons/FilePickerModes" { - import FilePickerModes from "sap/suite/ui/commons/library"; + import {FilePickerModes} from "sap/suite/ui/commons/library"; /** * Modes for the {@link sap.suite.ui.commons.CloudFilePicker}. @@ -147,7 +147,7 @@ declare module "sap/suite/ui/commons/FilePickerModes" { } declare module "sap/suite/ui/commons/FilePickerType" { - import FilePickerType from "sap/suite/ui/commons/library"; + import {FilePickerType} from "sap/suite/ui/commons/library"; /** * Runtime mode for the {@link sap.suite.ui.commons.CloudFilePicker}. @@ -158,7 +158,7 @@ declare module "sap/suite/ui/commons/FilePickerType" { } declare module "sap/suite/ui/commons/FrameType" { - import FrameType from "sap/suite/ui/commons/library"; + import {FrameType} from "sap/suite/ui/commons/library"; /** * Enumeration of possible frame types. @@ -170,7 +170,7 @@ declare module "sap/suite/ui/commons/FrameType" { } declare module "sap/suite/ui/commons/HeaderContainerView" { - import HeaderContainerView from "sap/suite/ui/commons/library"; + import {HeaderContainerView} from "sap/suite/ui/commons/library"; /** * The list of possible HeaderContainer views. @@ -182,7 +182,7 @@ declare module "sap/suite/ui/commons/HeaderContainerView" { } declare module "sap/suite/ui/commons/ImageEditorContainerButton" { - import ImageEditorContainerButton from "sap/suite/ui/commons/library"; + import {ImageEditorContainerButton} from "sap/suite/ui/commons/library"; /** * Action buttons for the {@link sap.suite.ui.commons.imageeditor.ImageEditorContainer}. @@ -193,7 +193,7 @@ declare module "sap/suite/ui/commons/ImageEditorContainerButton" { } declare module "sap/suite/ui/commons/ImageEditorContainerMode" { - import ImageEditorContainerMode from "sap/suite/ui/commons/library"; + import {ImageEditorContainerMode} from "sap/suite/ui/commons/library"; /** * Mode types for {@link sap.suite.ui.commons.imageeditor.ImageEditorContainer}. @@ -204,7 +204,7 @@ declare module "sap/suite/ui/commons/ImageEditorContainerMode" { } declare module "sap/suite/ui/commons/ImageEditorMode" { - import ImageEditorMode from "sap/suite/ui/commons/library"; + import {ImageEditorMode} from "sap/suite/ui/commons/library"; /** * Mode types for {@link sap.suite.ui.commons.imageeditor.ImageEditor}. @@ -215,7 +215,7 @@ declare module "sap/suite/ui/commons/ImageEditorMode" { } declare module "sap/suite/ui/commons/ImageFormat" { - import ImageFormat from "sap/suite/ui/commons/library"; + import {ImageFormat} from "sap/suite/ui/commons/library"; /** * Image file format. @@ -226,7 +226,7 @@ declare module "sap/suite/ui/commons/ImageFormat" { } declare module "sap/suite/ui/commons/InfoTileSize" { - import InfoTileSize from "sap/suite/ui/commons/library"; + import {InfoTileSize} from "sap/suite/ui/commons/library"; /** * Enumeration of possible PointTile size settings. @@ -238,7 +238,7 @@ declare module "sap/suite/ui/commons/InfoTileSize" { } declare module "sap/suite/ui/commons/InfoTileTextColor" { - import InfoTileTextColor from "sap/suite/ui/commons/library"; + import {InfoTileTextColor} from "sap/suite/ui/commons/library"; /** * Enumeration of possible InfoTile text color settings. @@ -250,7 +250,7 @@ declare module "sap/suite/ui/commons/InfoTileTextColor" { } declare module "sap/suite/ui/commons/InfoTileValueColor" { - import InfoTileValueColor from "sap/suite/ui/commons/library"; + import {InfoTileValueColor} from "sap/suite/ui/commons/library"; /** * Enumeration of possible InfoTile value color settings. @@ -262,7 +262,7 @@ declare module "sap/suite/ui/commons/InfoTileValueColor" { } declare module "sap/suite/ui/commons/LayoutType" { - import LayoutType from "sap/suite/ui/commons/library"; + import {LayoutType} from "sap/suite/ui/commons/library"; /** * Supported Layout Types for {@link sap.suite.ui.commons.BaseContainer}. @@ -273,7 +273,7 @@ declare module "sap/suite/ui/commons/LayoutType" { } declare module "sap/suite/ui/commons/LoadState" { - import LoadState from "sap/suite/ui/commons/library"; + import {LoadState} from "sap/suite/ui/commons/library"; /** * Enumeration of possible load states for LoadableView. @@ -285,7 +285,7 @@ declare module "sap/suite/ui/commons/LoadState" { } declare module "sap/suite/ui/commons/MicroAreaChartView" { - import MicroAreaChartView from "sap/suite/ui/commons/library"; + import {MicroAreaChartView} from "sap/suite/ui/commons/library"; /** * The list of possible MicroAreaChart views. @@ -297,7 +297,7 @@ declare module "sap/suite/ui/commons/MicroAreaChartView" { } declare module "sap/suite/ui/commons/MicroProcessFlowRenderType" { - import MicroProcessFlowRenderType from "sap/suite/ui/commons/library"; + import {MicroProcessFlowRenderType} from "sap/suite/ui/commons/library"; /** * Options that define how the micro process flow should be rendered inside its parent container.
These options can be useful when the width of the parent container does not allow for all nodes in the micro process flow to be displayed on the same line. @@ -307,140 +307,140 @@ declare module "sap/suite/ui/commons/MicroProcessFlowRenderType" { export default MicroProcessFlowRenderType; } -declare module "sap/suite/ui/commons/ActionButtonPosition" { - import ActionButtonPosition from "sap/suite/ui/commons/library"; +declare module "sap/suite/ui/commons/networkgraph/ActionButtonPosition" { + import {networkgraph} from "sap/suite/ui/commons/library"; /** * Position of a custom action button. * * @public */ - export default ActionButtonPosition; + export default networkgraph.ActionButtonPosition; } -declare module "sap/suite/ui/commons/BackgroundColor" { - import BackgroundColor from "sap/suite/ui/commons/library"; +declare module "sap/suite/ui/commons/networkgraph/BackgroundColor" { + import {networkgraph} from "sap/suite/ui/commons/library"; /** * Background color for the network graph. * * @public */ - export default BackgroundColor; + export default networkgraph.BackgroundColor; } -declare module "sap/suite/ui/commons/ElementStatus" { - import ElementStatus from "sap/suite/ui/commons/library"; +declare module "sap/suite/ui/commons/networkgraph/ElementStatus" { + import {networkgraph} from "sap/suite/ui/commons/library"; /** * Semantic type of the node status. * * @public */ - export default ElementStatus; + export default networkgraph.ElementStatus; } -declare module "sap/suite/ui/commons/HeaderCheckboxState" { - import HeaderCheckboxState from "sap/suite/ui/commons/library"; +declare module "sap/suite/ui/commons/networkgraph/HeaderCheckboxState" { + import {networkgraph} from "sap/suite/ui/commons/library"; /** * States of the Header checkbox. * * @public */ - export default HeaderCheckboxState; + export default networkgraph.HeaderCheckboxState; } -declare module "sap/suite/ui/commons/LayoutRenderType" { - import LayoutRenderType from "sap/suite/ui/commons/library"; +declare module "sap/suite/ui/commons/networkgraph/LayoutRenderType" { + import {networkgraph} from "sap/suite/ui/commons/library"; /** * Types of layout algorithms that define the visual features and layout of the network graph. * * @public */ - export default LayoutRenderType; + export default networkgraph.LayoutRenderType; } -declare module "sap/suite/ui/commons/LineArrowOrientation" { - import LineArrowOrientation from "sap/suite/ui/commons/library"; +declare module "sap/suite/ui/commons/networkgraph/LineArrowOrientation" { + import {networkgraph} from "sap/suite/ui/commons/library"; /** * Direction of the arrow on the connector line. * * @public */ - export default LineArrowOrientation; + export default networkgraph.LineArrowOrientation; } -declare module "sap/suite/ui/commons/LineArrowPosition" { - import LineArrowPosition from "sap/suite/ui/commons/library"; +declare module "sap/suite/ui/commons/networkgraph/LineArrowPosition" { + import {networkgraph} from "sap/suite/ui/commons/library"; /** * Position of the arrow on a connector line. * * @public */ - export default LineArrowPosition; + export default networkgraph.LineArrowPosition; } -declare module "sap/suite/ui/commons/LineType" { - import LineType from "sap/suite/ui/commons/library"; +declare module "sap/suite/ui/commons/networkgraph/LineType" { + import {networkgraph} from "sap/suite/ui/commons/library"; /** * Type of connector line used in the network graph. * * @public */ - export default LineType; + export default networkgraph.LineType; } -declare module "sap/suite/ui/commons/NodePlacement" { - import NodePlacement from "sap/suite/ui/commons/library"; +declare module "sap/suite/ui/commons/networkgraph/NodePlacement" { + import {networkgraph} from "sap/suite/ui/commons/library"; /** * Type of node placement for Layered Algorithm. See {@link https://rtsys.informatik.uni-kiel.de/confluence/display/KIELER/KLay+Layered+Layout+Options#KLayLayeredLayoutOptions-nodePlacement} * * @public */ - export default NodePlacement; + export default networkgraph.NodePlacement; } -declare module "sap/suite/ui/commons/NodeShape" { - import NodeShape from "sap/suite/ui/commons/library"; +declare module "sap/suite/ui/commons/networkgraph/NodeShape" { + import {networkgraph} from "sap/suite/ui/commons/library"; /** * Shape of a node in a network graph. * * @public */ - export default NodeShape; + export default networkgraph.NodeShape; } -declare module "sap/suite/ui/commons/Orientation" { - import Orientation from "sap/suite/ui/commons/library"; +declare module "sap/suite/ui/commons/networkgraph/Orientation" { + import {networkgraph} from "sap/suite/ui/commons/library"; /** * Orientation of layered layout. * * @public */ - export default Orientation; + export default networkgraph.Orientation; } -declare module "sap/suite/ui/commons/RenderType" { - import RenderType from "sap/suite/ui/commons/library"; +declare module "sap/suite/ui/commons/networkgraph/RenderType" { + import {networkgraph} from "sap/suite/ui/commons/library"; /** * Determines how nodes are rendered. For optimal performance and usability, it is recommended that you use HTML, which allows you to avoid dealing with SVG limitations. * * @public */ - export default RenderType; + export default networkgraph.RenderType; } declare module "sap/suite/ui/commons/ProcessFlowConnectionLabelState" { - import ProcessFlowConnectionLabelState from "sap/suite/ui/commons/library"; + import {ProcessFlowConnectionLabelState} from "sap/suite/ui/commons/library"; /** * Describes the state of a connection label. @@ -451,7 +451,7 @@ declare module "sap/suite/ui/commons/ProcessFlowConnectionLabelState" { } declare module "sap/suite/ui/commons/ProcessFlowConnectionState" { - import ProcessFlowConnectionState from "sap/suite/ui/commons/library"; + import {ProcessFlowConnectionState} from "sap/suite/ui/commons/library"; /** * Describes the state of a connection. @@ -462,7 +462,7 @@ declare module "sap/suite/ui/commons/ProcessFlowConnectionState" { } declare module "sap/suite/ui/commons/ProcessFlowConnectionType" { - import ProcessFlowConnectionType from "sap/suite/ui/commons/library"; + import {ProcessFlowConnectionType} from "sap/suite/ui/commons/library"; /** * Describes the type of a connection. @@ -473,7 +473,7 @@ declare module "sap/suite/ui/commons/ProcessFlowConnectionType" { } declare module "sap/suite/ui/commons/ProcessFlowDisplayState" { - import ProcessFlowDisplayState from "sap/suite/ui/commons/library"; + import {ProcessFlowDisplayState} from "sap/suite/ui/commons/library"; /** * The ProcessFlow calculates the ProcessFlowDisplayState based on the 'focused' and 'highlighted' properties of each node. @@ -484,7 +484,7 @@ declare module "sap/suite/ui/commons/ProcessFlowDisplayState" { } declare module "sap/suite/ui/commons/ProcessFlowLaneState" { - import ProcessFlowLaneState from "sap/suite/ui/commons/library"; + import {ProcessFlowLaneState} from "sap/suite/ui/commons/library"; /** * This type is used in the 'state' property of the ProcessFlowLaneHeader. For example, app developers can set the status of the lane header if lanes are displayed without documents. If the complete process flow is displayed (that is, if the lane header is displayed with documents underneath), the given state values of the lane header are ignored and will be calculated in the ProcessFlow according to the current state of the documents. @@ -495,7 +495,7 @@ declare module "sap/suite/ui/commons/ProcessFlowLaneState" { } declare module "sap/suite/ui/commons/ProcessFlowNodeState" { - import ProcessFlowNodeState from "sap/suite/ui/commons/library"; + import {ProcessFlowNodeState} from "sap/suite/ui/commons/library"; /** * Describes the state connected to the content it is representing in the Process Flow Node. The state is also displayed in the Process Flow Lane Header as a color segment of the donut. @@ -506,7 +506,7 @@ declare module "sap/suite/ui/commons/ProcessFlowNodeState" { } declare module "sap/suite/ui/commons/ProcessFlowNodeType" { - import ProcessFlowNodeType from "sap/suite/ui/commons/library"; + import {ProcessFlowNodeType} from "sap/suite/ui/commons/library"; /** * Describes the type of a node. The type value could be single or aggregated. With this type, the application can define if several nodes should be displayed as one aggregated node in a path per column to represent a grouping of semantically equal nodes. @@ -517,7 +517,7 @@ declare module "sap/suite/ui/commons/ProcessFlowNodeType" { } declare module "sap/suite/ui/commons/ProcessFlowZoomLevel" { - import ProcessFlowZoomLevel from "sap/suite/ui/commons/library"; + import {ProcessFlowZoomLevel} from "sap/suite/ui/commons/library"; /** * The zoom level defines level of details for the node and how much space the process flow requires. @@ -528,7 +528,7 @@ declare module "sap/suite/ui/commons/ProcessFlowZoomLevel" { } declare module "sap/suite/ui/commons/SelectionModes" { - import SelectionModes from "sap/suite/ui/commons/library"; + import {SelectionModes} from "sap/suite/ui/commons/library"; /** * File selection mode(Upload) for the {@link sap.suite.ui.commons.CloudFilePicker}. @@ -539,7 +539,7 @@ declare module "sap/suite/ui/commons/SelectionModes" { } declare module "sap/suite/ui/commons/SelectionState" { - import SelectionState from "sap/suite/ui/commons/library"; + import {SelectionState} from "sap/suite/ui/commons/library"; /** * SelectionState @@ -550,8 +550,8 @@ declare module "sap/suite/ui/commons/SelectionState" { export default SelectionState; } -declare module "sap/suite/ui/commons/FillingDirectionType" { - import FillingDirectionType from "sap/suite/ui/commons/library"; +declare module "sap/suite/ui/commons/statusindicator/FillingDirectionType" { + import {statusindicator} from "sap/suite/ui/commons/library"; /** * The direction of animation.
@@ -560,77 +560,77 @@ declare module "sap/suite/ui/commons/FillingDirectionType" { * * @public */ - export default FillingDirectionType; + export default statusindicator.FillingDirectionType; } -declare module "sap/suite/ui/commons/FillingType" { - import FillingType from "sap/suite/ui/commons/library"; +declare module "sap/suite/ui/commons/statusindicator/FillingType" { + import {statusindicator} from "sap/suite/ui/commons/library"; /** * The type of filling. * * @public */ - export default FillingType; + export default statusindicator.FillingType; } -declare module "sap/suite/ui/commons/HorizontalAlignmentType" { - import HorizontalAlignmentType from "sap/suite/ui/commons/library"; +declare module "sap/suite/ui/commons/statusindicator/HorizontalAlignmentType" { + import {statusindicator} from "sap/suite/ui/commons/library"; /** * The horizontal alignment of the status indicator within its parent container. * * @public */ - export default HorizontalAlignmentType; + export default statusindicator.HorizontalAlignmentType; } -declare module "sap/suite/ui/commons/LabelPositionType" { - import LabelPositionType from "sap/suite/ui/commons/library"; +declare module "sap/suite/ui/commons/statusindicator/LabelPositionType" { + import {statusindicator} from "sap/suite/ui/commons/library"; /** * Position of the label, relative to the status indicator. * * @public */ - export default LabelPositionType; + export default statusindicator.LabelPositionType; } -declare module "sap/suite/ui/commons/SizeType" { - import SizeType from "sap/suite/ui/commons/library"; +declare module "sap/suite/ui/commons/statusindicator/SizeType" { + import {statusindicator} from "sap/suite/ui/commons/library"; /** * Predefined sizes of the status indicator. * * @public */ - export default SizeType; + export default statusindicator.SizeType; } -declare module "sap/suite/ui/commons/VerticalAlignmentType" { - import VerticalAlignmentType from "sap/suite/ui/commons/library"; +declare module "sap/suite/ui/commons/statusindicator/VerticalAlignmentType" { + import {statusindicator} from "sap/suite/ui/commons/library"; /** * The vertical alignment of the status indicator within its parent container. * * @public */ - export default VerticalAlignmentType; + export default statusindicator.VerticalAlignmentType; } -declare module "sap/suite/ui/commons/TAccountPanelState" { - import TAccountPanelState from "sap/suite/ui/commons/library"; +declare module "sap/suite/ui/commons/taccount/TAccountPanelState" { + import {taccount} from "sap/suite/ui/commons/library"; /** * The state of the {@link sap.suite.ui.commons.taccount.TAccountPanel} that defines how T accounts included in the panel are displayed. * * @public */ - export default TAccountPanelState; + export default taccount.TAccountPanelState; } declare module "sap/suite/ui/commons/ThingGroupDesign" { - import ThingGroupDesign from "sap/suite/ui/commons/library"; + import {ThingGroupDesign} from "sap/suite/ui/commons/library"; /** * Defines the way how UnifiedThingGroup control is rendered. @@ -642,7 +642,7 @@ declare module "sap/suite/ui/commons/ThingGroupDesign" { } declare module "sap/suite/ui/commons/TimelineAlignment" { - import TimelineAlignment from "sap/suite/ui/commons/library"; + import {TimelineAlignment} from "sap/suite/ui/commons/library"; /** * The alignment of timeline posts relative to the timeline axis. @@ -653,7 +653,7 @@ declare module "sap/suite/ui/commons/TimelineAlignment" { } declare module "sap/suite/ui/commons/TimelineAxisOrientation" { - import TimelineAxisOrientation from "sap/suite/ui/commons/library"; + import {TimelineAxisOrientation} from "sap/suite/ui/commons/library"; /** * Defines the orientation of the timeline axis. @@ -664,7 +664,7 @@ declare module "sap/suite/ui/commons/TimelineAxisOrientation" { } declare module "sap/suite/ui/commons/TimelineFilterType" { - import TimelineFilterType from "sap/suite/ui/commons/library"; + import {TimelineFilterType} from "sap/suite/ui/commons/library"; /** * Filter type for the timeline. @@ -675,7 +675,7 @@ declare module "sap/suite/ui/commons/TimelineFilterType" { } declare module "sap/suite/ui/commons/TimelineGroupType" { - import TimelineGroupType from "sap/suite/ui/commons/library"; + import {TimelineGroupType} from "sap/suite/ui/commons/library"; /** * Type of grouping for timeline entries. @@ -686,7 +686,7 @@ declare module "sap/suite/ui/commons/TimelineGroupType" { } declare module "sap/suite/ui/commons/TimelineScrollingFadeout" { - import TimelineScrollingFadeout from "sap/suite/ui/commons/library"; + import {TimelineScrollingFadeout} from "sap/suite/ui/commons/library"; /** * Type of the fadeout effect applied to the upper and lower margins of the visible timeline area. @@ -698,7 +698,7 @@ declare module "sap/suite/ui/commons/TimelineScrollingFadeout" { } declare module "sap/suite/ui/commons/ValueStatus" { - import ValueStatus from "sap/suite/ui/commons/library"; + import {ValueStatus} from "sap/suite/ui/commons/library"; /** * Marker for the key value status. diff --git a/resources/overrides/library/sap.suite.ui.generic.template.d.ts b/resources/overrides/library/sap.suite.ui.generic.template.d.ts index 7ac155bc..8f59704f 100644 --- a/resources/overrides/library/sap.suite.ui.generic.template.d.ts +++ b/resources/overrides/library/sap.suite.ui.generic.template.d.ts @@ -1,5 +1,5 @@ declare module "sap/suite/ui/generic/template/displayMode" { - import displayMode from "sap/suite/ui/generic/template/library"; + import {displayMode} from "sap/suite/ui/generic/template/library"; /** * A static enumeration type which indicates the mode of targeted page while using navigateInternal extensionAPI diff --git a/resources/overrides/library/sap.suite.ui.microchart.d.ts b/resources/overrides/library/sap.suite.ui.microchart.d.ts index 526df35c..38d6491a 100644 --- a/resources/overrides/library/sap.suite.ui.microchart.d.ts +++ b/resources/overrides/library/sap.suite.ui.microchart.d.ts @@ -1,5 +1,5 @@ declare module "sap/suite/ui/microchart/AreaMicroChartViewType" { - import AreaMicroChartViewType from "sap/suite/ui/microchart/library"; + import {AreaMicroChartViewType} from "sap/suite/ui/microchart/library"; /** * Enum of available views for the area micro chart concerning the position of the labels. @@ -11,7 +11,7 @@ declare module "sap/suite/ui/microchart/AreaMicroChartViewType" { } declare module "sap/suite/ui/microchart/BulletMicroChartModeType" { - import BulletMicroChartModeType from "sap/suite/ui/microchart/library"; + import {BulletMicroChartModeType} from "sap/suite/ui/microchart/library"; /** * Defines if the horizontal bar represents a current value only or if it represents the delta between a current value and a threshold value. @@ -23,7 +23,7 @@ declare module "sap/suite/ui/microchart/BulletMicroChartModeType" { } declare module "sap/suite/ui/microchart/CommonBackgroundType" { - import CommonBackgroundType from "sap/suite/ui/microchart/library"; + import {CommonBackgroundType} from "sap/suite/ui/microchart/library"; /** * Lists the available theme-specific background colors. @@ -35,7 +35,7 @@ declare module "sap/suite/ui/microchart/CommonBackgroundType" { } declare module "sap/suite/ui/microchart/ComparisonMicroChartViewType" { - import ComparisonMicroChartViewType from "sap/suite/ui/microchart/library"; + import {ComparisonMicroChartViewType} from "sap/suite/ui/microchart/library"; /** * Lists the views of the comparison micro chart concerning the position of titles and labels. @@ -47,7 +47,7 @@ declare module "sap/suite/ui/microchart/ComparisonMicroChartViewType" { } declare module "sap/suite/ui/microchart/DeltaMicroChartViewType" { - import DeltaMicroChartViewType from "sap/suite/ui/microchart/library"; + import {DeltaMicroChartViewType} from "sap/suite/ui/microchart/library"; /** * Lists the views of the delta micro chart concerning the position of titles. @@ -59,7 +59,7 @@ declare module "sap/suite/ui/microchart/DeltaMicroChartViewType" { } declare module "sap/suite/ui/microchart/HorizontalAlignmentType" { - import HorizontalAlignmentType from "sap/suite/ui/microchart/library"; + import {HorizontalAlignmentType} from "sap/suite/ui/microchart/library"; /** * Alignment type for the microchart content. @@ -71,7 +71,7 @@ declare module "sap/suite/ui/microchart/HorizontalAlignmentType" { } declare module "sap/suite/ui/microchart/LineType" { - import LineType from "sap/suite/ui/microchart/library"; + import {LineType} from "sap/suite/ui/microchart/library"; /** * Type of the microchart line. diff --git a/resources/overrides/library/sap.tnt.d.ts b/resources/overrides/library/sap.tnt.d.ts index a2a123b3..5e289f2d 100644 --- a/resources/overrides/library/sap.tnt.d.ts +++ b/resources/overrides/library/sap.tnt.d.ts @@ -1,5 +1,5 @@ declare module "sap/tnt/RenderMode" { - import RenderMode from "sap/tnt/library"; + import {RenderMode} from "sap/tnt/library"; /** * Predefined types of InfoLabel diff --git a/resources/overrides/library/sap.ui.commons.d.ts b/resources/overrides/library/sap.ui.commons.d.ts index adc63927..0d078779 100644 --- a/resources/overrides/library/sap.ui.commons.d.ts +++ b/resources/overrides/library/sap.ui.commons.d.ts @@ -1,5 +1,5 @@ declare module "sap/ui/commons/ButtonStyle" { - import ButtonStyle from "sap/ui/commons/library"; + import {ButtonStyle} from "sap/ui/commons/library"; /** * different styles for a button. @@ -10,8 +10,8 @@ declare module "sap/ui/commons/ButtonStyle" { export default ButtonStyle; } -declare module "sap/ui/commons/AreaDesign" { - import AreaDesign from "sap/ui/commons/library"; +declare module "sap/ui/commons/enums/AreaDesign" { + import {enums} from "sap/ui/commons/library"; /** * Value set for the background design of areas @@ -19,11 +19,11 @@ declare module "sap/ui/commons/AreaDesign" { * @deprecated (since 1.38) * @public */ - export default AreaDesign; + export default enums.AreaDesign; } -declare module "sap/ui/commons/BorderDesign" { - import BorderDesign from "sap/ui/commons/library"; +declare module "sap/ui/commons/enums/BorderDesign" { + import {enums} from "sap/ui/commons/library"; /** * Value set for the border design of areas @@ -31,11 +31,11 @@ declare module "sap/ui/commons/BorderDesign" { * @deprecated (since 1.38) * @public */ - export default BorderDesign; + export default enums.BorderDesign; } -declare module "sap/ui/commons/Orientation" { - import Orientation from "sap/ui/commons/library"; +declare module "sap/ui/commons/enums/Orientation" { + import {enums} from "sap/ui/commons/library"; /** * Orientation of a UI element @@ -43,11 +43,11 @@ declare module "sap/ui/commons/Orientation" { * @deprecated (since 1.38) * @public */ - export default Orientation; + export default enums.Orientation; } declare module "sap/ui/commons/HorizontalDividerHeight" { - import HorizontalDividerHeight from "sap/ui/commons/library"; + import {HorizontalDividerHeight} from "sap/ui/commons/library"; /** * Enumeration of possible HorizontalDivider height settings. @@ -59,7 +59,7 @@ declare module "sap/ui/commons/HorizontalDividerHeight" { } declare module "sap/ui/commons/HorizontalDividerType" { - import HorizontalDividerType from "sap/ui/commons/library"; + import {HorizontalDividerType} from "sap/ui/commons/library"; /** * Enumeration of possible HorizontalDivider types. @@ -71,7 +71,7 @@ declare module "sap/ui/commons/HorizontalDividerType" { } declare module "sap/ui/commons/LabelDesign" { - import LabelDesign from "sap/ui/commons/library"; + import {LabelDesign} from "sap/ui/commons/library"; /** * Available label display modes. @@ -82,8 +82,8 @@ declare module "sap/ui/commons/LabelDesign" { export default LabelDesign; } -declare module "sap/ui/commons/BackgroundDesign" { - import BackgroundDesign from "sap/ui/commons/library"; +declare module "sap/ui/commons/layout/BackgroundDesign" { + import {layout} from "sap/ui/commons/library"; /** * Background design (i.e. color), e.g. of a layout cell. @@ -91,11 +91,11 @@ declare module "sap/ui/commons/BackgroundDesign" { * @deprecated (since 1.38) * @public */ - export default BackgroundDesign; + export default layout.BackgroundDesign; } -declare module "sap/ui/commons/BorderLayoutAreaTypes" { - import BorderLayoutAreaTypes from "sap/ui/commons/library"; +declare module "sap/ui/commons/layout/BorderLayoutAreaTypes" { + import {layout} from "sap/ui/commons/library"; /** * The type (=position) of a BorderLayoutArea @@ -103,11 +103,11 @@ declare module "sap/ui/commons/BorderLayoutAreaTypes" { * @deprecated (since 1.38) * @public */ - export default BorderLayoutAreaTypes; + export default layout.BorderLayoutAreaTypes; } -declare module "sap/ui/commons/HAlign" { - import HAlign from "sap/ui/commons/library"; +declare module "sap/ui/commons/layout/HAlign" { + import {layout} from "sap/ui/commons/library"; /** * Horizontal alignment, e.g. of a layout cell's content within the cell's borders. Note that some values depend on the current locale's writing direction while others do not. @@ -115,11 +115,11 @@ declare module "sap/ui/commons/HAlign" { * @deprecated (since 1.38) * @public */ - export default HAlign; + export default layout.HAlign; } -declare module "sap/ui/commons/Padding" { - import Padding from "sap/ui/commons/library"; +declare module "sap/ui/commons/layout/Padding" { + import {layout} from "sap/ui/commons/library"; /** * Padding, e.g. of a layout cell's content within the cell's borders. Note that all options except "None" include a padding of 2px at the top and bottom, and differ only in the presence of a 4px padding towards the beginning or end of a line, in the current locale's writing direction. @@ -127,11 +127,11 @@ declare module "sap/ui/commons/Padding" { * @deprecated (since 1.38) * @public */ - export default Padding; + export default layout.Padding; } -declare module "sap/ui/commons/Separation" { - import Separation from "sap/ui/commons/library"; +declare module "sap/ui/commons/layout/Separation" { + import {layout} from "sap/ui/commons/library"; /** * Separation, e.g. of a layout cell from its neighbor, via a vertical gutter of defined width, with or without a vertical line in its middle. @@ -139,11 +139,11 @@ declare module "sap/ui/commons/Separation" { * @deprecated (since 1.38) * @public */ - export default Separation; + export default layout.Separation; } -declare module "sap/ui/commons/VAlign" { - import VAlign from "sap/ui/commons/library"; +declare module "sap/ui/commons/layout/VAlign" { + import {layout} from "sap/ui/commons/library"; /** * Vertical alignment, e.g. of a layout cell's content within the cell's borders. @@ -151,11 +151,11 @@ declare module "sap/ui/commons/VAlign" { * @deprecated (since 1.38) * @public */ - export default VAlign; + export default layout.VAlign; } declare module "sap/ui/commons/MenuBarDesign" { - import MenuBarDesign from "sap/ui/commons/library"; + import {MenuBarDesign} from "sap/ui/commons/library"; /** * Determines the visual design of a MenuBar. The feature might be not supported by all themes. @@ -167,7 +167,7 @@ declare module "sap/ui/commons/MenuBarDesign" { } declare module "sap/ui/commons/MessageType" { - import MessageType from "sap/ui/commons/library"; + import {MessageType} from "sap/ui/commons/library"; /** * [Enter description for MessageType] @@ -179,7 +179,7 @@ declare module "sap/ui/commons/MessageType" { } declare module "sap/ui/commons/PaginatorEvent" { - import PaginatorEvent from "sap/ui/commons/library"; + import {PaginatorEvent} from "sap/ui/commons/library"; /** * Distinct paginator event types @@ -191,7 +191,7 @@ declare module "sap/ui/commons/PaginatorEvent" { } declare module "sap/ui/commons/RatingIndicatorVisualMode" { - import RatingIndicatorVisualMode from "sap/ui/commons/library"; + import {RatingIndicatorVisualMode} from "sap/ui/commons/library"; /** * Possible values for the visualization of float values in the RatingIndicator Control. @@ -203,7 +203,7 @@ declare module "sap/ui/commons/RatingIndicatorVisualMode" { } declare module "sap/ui/commons/RowRepeaterDesign" { - import RowRepeaterDesign from "sap/ui/commons/library"; + import {RowRepeaterDesign} from "sap/ui/commons/library"; /** * Determines the visual design of a RowRepeater. @@ -215,7 +215,7 @@ declare module "sap/ui/commons/RowRepeaterDesign" { } declare module "sap/ui/commons/TextViewColor" { - import TextViewColor from "sap/ui/commons/library"; + import {TextViewColor} from "sap/ui/commons/library"; /** * Semantic Colors of a text. @@ -227,7 +227,7 @@ declare module "sap/ui/commons/TextViewColor" { } declare module "sap/ui/commons/TextViewDesign" { - import TextViewDesign from "sap/ui/commons/library"; + import {TextViewDesign} from "sap/ui/commons/library"; /** * Designs for TextView. @@ -239,7 +239,7 @@ declare module "sap/ui/commons/TextViewDesign" { } declare module "sap/ui/commons/ToolbarDesign" { - import ToolbarDesign from "sap/ui/commons/library"; + import {ToolbarDesign} from "sap/ui/commons/library"; /** * Determines the visual design of a Toolbar. @@ -251,7 +251,7 @@ declare module "sap/ui/commons/ToolbarDesign" { } declare module "sap/ui/commons/ToolbarSeparatorDesign" { - import ToolbarSeparatorDesign from "sap/ui/commons/library"; + import {ToolbarSeparatorDesign} from "sap/ui/commons/library"; /** * Design of the Toolbar Separator. @@ -263,7 +263,7 @@ declare module "sap/ui/commons/ToolbarSeparatorDesign" { } declare module "sap/ui/commons/TreeSelectionMode" { - import TreeSelectionMode from "sap/ui/commons/library"; + import {TreeSelectionMode} from "sap/ui/commons/library"; /** * Selection mode of the tree @@ -275,7 +275,7 @@ declare module "sap/ui/commons/TreeSelectionMode" { } declare module "sap/ui/commons/TriStateCheckBoxState" { - import TriStateCheckBoxState from "sap/ui/commons/library"; + import {TriStateCheckBoxState} from "sap/ui/commons/library"; /** * States for TriStateCheckBox diff --git a/resources/overrides/library/sap.ui.comp.d.ts b/resources/overrides/library/sap.ui.comp.d.ts index a4b1d984..2e6e5468 100644 --- a/resources/overrides/library/sap.ui.comp.d.ts +++ b/resources/overrides/library/sap.ui.comp.d.ts @@ -1,137 +1,137 @@ -declare module "sap/ui/comp/ChangeHandlerType" { - import ChangeHandlerType from "sap/ui/comp/library"; +declare module "sap/ui/comp/navpopover/ChangeHandlerType" { + import {navpopover} from "sap/ui/comp/library"; /** * Type of change handler type for link personalization. * * @public */ - export default ChangeHandlerType; + export default navpopover.ChangeHandlerType; } -declare module "sap/ui/comp/AggregationRole" { - import AggregationRole from "sap/ui/comp/library"; +declare module "sap/ui/comp/personalization/AggregationRole" { + import {personalization} from "sap/ui/comp/library"; /** * Provides enumeration sap.ui.comp.personalization.AggregationRole. A subset of aggregation roles used in table personalization. * * @public */ - export default AggregationRole; + export default personalization.AggregationRole; } -declare module "sap/ui/comp/ChangeType" { - import ChangeType from "sap/ui/comp/library"; +declare module "sap/ui/comp/personalization/ChangeType" { + import {personalization} from "sap/ui/comp/library"; /** * Provides enumeration sap.ui.comp.personalization.ChangeType. A subset of changes done during table personalization. * * @public */ - export default ChangeType; + export default personalization.ChangeType; } -declare module "sap/ui/comp/ColumnType" { - import ColumnType from "sap/ui/comp/library"; +declare module "sap/ui/comp/personalization/ColumnType" { + import {personalization} from "sap/ui/comp/library"; /** * Provides enumeration sap.ui.comp.personalization.ColumnType. A subset of column types that fit for table personalization. * * @public */ - export default ColumnType; + export default personalization.ColumnType; } -declare module "sap/ui/comp/ResetType" { - import ResetType from "sap/ui/comp/library"; +declare module "sap/ui/comp/personalization/ResetType" { + import {personalization} from "sap/ui/comp/library"; /** * Provides enumeration sap.ui.comp.personalization.ResetType. A subset of reset types used in table personalization. * * @public */ - export default ResetType; + export default personalization.ResetType; } -declare module "sap/ui/comp/TableType" { - import TableType from "sap/ui/comp/library"; +declare module "sap/ui/comp/personalization/TableType" { + import {personalization} from "sap/ui/comp/library"; /** * Provides enumeration sap.ui.comp.personalization.TableType. A subset of table types that fit for table personalization. * * @public */ - export default TableType; + export default personalization.TableType; } -declare module "sap/ui/comp/SelectionMode" { - import SelectionMode from "sap/ui/comp/library"; +declare module "sap/ui/comp/smartchart/SelectionMode" { + import {smartchart} from "sap/ui/comp/library"; /** * Enumeration for supported selection mode in SmartChart * * @public */ - export default SelectionMode; + export default smartchart.SelectionMode; } -declare module "sap/ui/comp/ControlContextType" { - import ControlContextType from "sap/ui/comp/library"; +declare module "sap/ui/comp/smartfield/ControlContextType" { + import {smartfield} from "sap/ui/comp/library"; /** * Enumeration of the different contexts supported by the SmartField, if it is using an OData model. * * @public */ - export default ControlContextType; + export default smartfield.ControlContextType; } -declare module "sap/ui/comp/ControlProposalType" { - import ControlProposalType from "sap/ui/comp/library"; +declare module "sap/ui/comp/smartfield/ControlProposalType" { + import {smartfield} from "sap/ui/comp/library"; /** * Enumeration of the different control proposals supported by the Smart Field, if it is using an OData model. * * @public */ - export default ControlProposalType; + export default smartfield.ControlProposalType; } -declare module "sap/ui/comp/ControlType" { - import ControlType from "sap/ui/comp/library"; +declare module "sap/ui/comp/smartfield/ControlType" { + import {smartfield} from "sap/ui/comp/library"; /** * The available control types to configure the internal control selection of a SmartField control. * * @public */ - export default ControlType; + export default smartfield.ControlType; } -declare module "sap/ui/comp/CriticalityRepresentationType" { - import CriticalityRepresentationType from "sap/ui/comp/library"; +declare module "sap/ui/comp/smartfield/CriticalityRepresentationType" { + import {smartfield} from "sap/ui/comp/library"; /** * The different options to visualize the ObjectStatus control. * * @public */ - export default CriticalityRepresentationType; + export default smartfield.CriticalityRepresentationType; } -declare module "sap/ui/comp/DisplayBehaviour" { - import DisplayBehaviour from "sap/ui/comp/library"; +declare module "sap/ui/comp/smartfield/DisplayBehaviour" { + import {smartfield} from "sap/ui/comp/library"; /** * The different options to define display behavior for the value help of a SmartField control. * * @public */ - export default DisplayBehaviour; + export default smartfield.DisplayBehaviour; } -declare module "sap/ui/comp/Importance" { - import Importance from "sap/ui/comp/library"; +declare module "sap/ui/comp/smartfield/Importance" { + import {smartfield} from "sap/ui/comp/library"; /** * Provides information about the importance of the field @@ -139,22 +139,22 @@ declare module "sap/ui/comp/Importance" { * @public * @since 1.87 */ - export default Importance; + export default smartfield.Importance; } -declare module "sap/ui/comp/JSONType" { - import JSONType from "sap/ui/comp/library"; +declare module "sap/ui/comp/smartfield/JSONType" { + import {smartfield} from "sap/ui/comp/library"; /** * Enumeration of the different data types supported by the SmartField control, if it is using a JSON model. * * @public */ - export default JSONType; + export default smartfield.JSONType; } -declare module "sap/ui/comp/TextInEditModeSource" { - import TextInEditModeSource from "sap/ui/comp/library"; +declare module "sap/ui/comp/smartfield/TextInEditModeSource" { + import {smartfield} from "sap/ui/comp/library"; /** * Enumeration of sources from which text values for Codes/IDs are fetched in edit mode. The text is usually visualized as description/text value for IDs, for example, for LT (Laptop). @@ -162,66 +162,66 @@ declare module "sap/ui/comp/TextInEditModeSource" { * @public * @since 1.54 */ - export default TextInEditModeSource; + export default smartfield.TextInEditModeSource; } -declare module "sap/ui/comp/ControlType" { - import ControlType from "sap/ui/comp/library"; +declare module "sap/ui/comp/smartfilterbar/ControlType" { + import {smartfilterbar} from "sap/ui/comp/library"; /** * The available control types to configure the internal control selection of a SmartFilterBar control. * * @public */ - export default ControlType; + export default smartfilterbar.ControlType; } -declare module "sap/ui/comp/DisplayBehaviour" { - import DisplayBehaviour from "sap/ui/comp/library"; +declare module "sap/ui/comp/smartfilterbar/DisplayBehaviour" { + import {smartfilterbar} from "sap/ui/comp/library"; /** * The different options to define display behavior for fields in the SmartFilter control. * * @public */ - export default DisplayBehaviour; + export default smartfilterbar.DisplayBehaviour; } -declare module "sap/ui/comp/FilterType" { - import FilterType from "sap/ui/comp/library"; +declare module "sap/ui/comp/smartfilterbar/FilterType" { + import {smartfilterbar} from "sap/ui/comp/library"; /** * The available filter types to configure the internal control of a SmartFilterBar control. * * @public */ - export default FilterType; + export default smartfilterbar.FilterType; } -declare module "sap/ui/comp/MandatoryType" { - import MandatoryType from "sap/ui/comp/library"; +declare module "sap/ui/comp/smartfilterbar/MandatoryType" { + import {smartfilterbar} from "sap/ui/comp/library"; /** * The different options to define mandatory state for fields in the SmartFilter control. * * @public */ - export default MandatoryType; + export default smartfilterbar.MandatoryType; } -declare module "sap/ui/comp/SelectOptionSign" { - import SelectOptionSign from "sap/ui/comp/library"; +declare module "sap/ui/comp/smartfilterbar/SelectOptionSign" { + import {smartfilterbar} from "sap/ui/comp/library"; /** * The different options to define Sign for Select Options used in SmartFilter control. * * @public */ - export default SelectOptionSign; + export default smartfilterbar.SelectOptionSign; } -declare module "sap/ui/comp/Importance" { - import Importance from "sap/ui/comp/library"; +declare module "sap/ui/comp/smartform/Importance" { + import {smartform} from "sap/ui/comp/library"; /** * Enumeration of SmartForm Importance types @@ -229,11 +229,11 @@ declare module "sap/ui/comp/Importance" { * @public * @since 1.87 */ - export default Importance; + export default smartform.Importance; } -declare module "sap/ui/comp/SmartFormValidationMode" { - import SmartFormValidationMode from "sap/ui/comp/library"; +declare module "sap/ui/comp/smartform/SmartFormValidationMode" { + import {smartform} from "sap/ui/comp/library"; /** * Enumeration of SmartForm validation mode. @@ -241,11 +241,11 @@ declare module "sap/ui/comp/SmartFormValidationMode" { * @public * @since 1.81 */ - export default SmartFormValidationMode; + export default smartform.SmartFormValidationMode; } -declare module "sap/ui/comp/ListType" { - import ListType from "sap/ui/comp/library"; +declare module "sap/ui/comp/smartlist/ListType" { + import {smartlist} from "sap/ui/comp/library"; /** * Provides enumeration sap.ui.comp.smartlist.ListType. A subset of list types that fit to a simple API returning one string. @@ -253,22 +253,22 @@ declare module "sap/ui/comp/ListType" { * @public * @since 1.48 */ - export default ListType; + export default smartlist.ListType; } -declare module "sap/ui/comp/ExportType" { - import ExportType from "sap/ui/comp/library"; +declare module "sap/ui/comp/smarttable/ExportType" { + import {smarttable} from "sap/ui/comp/library"; /** * Provides the type of services available for export in the SmartTable control. * * @public */ - export default ExportType; + export default smarttable.ExportType; } -declare module "sap/ui/comp/InfoToolbarBehavior" { - import InfoToolbarBehavior from "sap/ui/comp/library"; +declare module "sap/ui/comp/smarttable/InfoToolbarBehavior" { + import {smarttable} from "sap/ui/comp/library"; /** * Enumeration sap.ui.comp.smarttable.InfoToolbarBehavior determines the behavior of the info toolbar in the SmartTable control. @@ -278,33 +278,33 @@ declare module "sap/ui/comp/InfoToolbarBehavior" { * @public * @since 1.70 */ - export default InfoToolbarBehavior; + export default smarttable.InfoToolbarBehavior; } -declare module "sap/ui/comp/TableType" { - import TableType from "sap/ui/comp/library"; +declare module "sap/ui/comp/smarttable/TableType" { + import {smarttable} from "sap/ui/comp/library"; /** * Provides enumeration sap.ui.comp.smarttable.TableType. A subset of table types that fit to a simple API returning one string. * * @public */ - export default TableType; + export default smarttable.TableType; } -declare module "sap/ui/comp/ChangeHandlerType" { - import ChangeHandlerType from "sap/ui/comp/library"; +declare module "sap/ui/comp/smartvariants/ChangeHandlerType" { + import {smartvariants} from "sap/ui/comp/library"; /** * Enumeration for changes for personalization of variant favorites. * * @public */ - export default ChangeHandlerType; + export default smartvariants.ChangeHandlerType; } declare module "sap/ui/comp/TextArrangementType" { - import TextArrangementType from "sap/ui/comp/library"; + import {TextArrangementType} from "sap/ui/comp/library"; /** * Enumeration of text arrangement types. @@ -315,13 +315,13 @@ declare module "sap/ui/comp/TextArrangementType" { export default TextArrangementType; } -declare module "sap/ui/comp/ValueHelpRangeOperation" { - import ValueHelpRangeOperation from "sap/ui/comp/library"; +declare module "sap/ui/comp/valuehelpdialog/ValueHelpRangeOperation" { + import {valuehelpdialog} from "sap/ui/comp/library"; /** * The range operations supported by the ValueHelpDialog control. * * @public */ - export default ValueHelpRangeOperation; + export default valuehelpdialog.ValueHelpRangeOperation; } diff --git a/resources/overrides/library/sap.ui.core.d.ts b/resources/overrides/library/sap.ui.core.d.ts index da8f810c..aa9edc7d 100644 --- a/resources/overrides/library/sap.ui.core.d.ts +++ b/resources/overrides/library/sap.ui.core.d.ts @@ -1,5 +1,5 @@ declare module "sap/ui/core/AccessibleLandmarkRole" { - import AccessibleLandmarkRole from "sap/ui/core/library"; + import {AccessibleLandmarkRole} from "sap/ui/core/library"; /** * Defines the accessible landmark roles for ARIA support. This enumeration is used with the AccessibleRole control property. For more information, go to "Roles for Accessible Rich Internet Applications (WAI-ARIA Roles)" at the www.w3.org homepage. @@ -10,7 +10,7 @@ declare module "sap/ui/core/AccessibleLandmarkRole" { } declare module "sap/ui/core/AccessibleRole" { - import AccessibleRole from "sap/ui/core/library"; + import {AccessibleRole} from "sap/ui/core/library"; /** * Defines the accessible roles for ARIA support. This enumeration is used with the AccessibleRole control property. For more information, goto "Roles for Accessible Rich Internet Applications (WAI-ARIA Roles)" at the www.w3.org homepage. @@ -20,8 +20,8 @@ declare module "sap/ui/core/AccessibleRole" { export default AccessibleRole; } -declare module "sap/ui/core/HasPopup" { - import HasPopup from "sap/ui/core/library"; +declare module "sap/ui/core/aria/HasPopup" { + import {aria} from "sap/ui/core/library"; /** * Types of popups to set as aria-haspopup attribute. Most of the values (except "None") of the enumeration are taken from the ARIA specification: https://www.w3.org/TR/wai-aria/#aria-haspopup @@ -29,11 +29,11 @@ declare module "sap/ui/core/HasPopup" { * @public * @since 1.84 */ - export default HasPopup; + export default aria.HasPopup; } declare module "sap/ui/core/BarColor" { - import BarColor from "sap/ui/core/library"; + import {BarColor} from "sap/ui/core/library"; /** * Configuration options for the colors of a progress bar. @@ -44,7 +44,7 @@ declare module "sap/ui/core/BarColor" { } declare module "sap/ui/core/BusyIndicatorSize" { - import BusyIndicatorSize from "sap/ui/core/library"; + import {BusyIndicatorSize} from "sap/ui/core/library"; /** * Configuration options for the BusyIndicator size. @@ -55,7 +55,7 @@ declare module "sap/ui/core/BusyIndicatorSize" { } declare module "sap/ui/core/ComponentLifecycle" { - import ComponentLifecycle from "sap/ui/core/library"; + import {ComponentLifecycle} from "sap/ui/core/library"; /** * Enumeration for different lifecycle behaviors of components created by the ComponentContainer. @@ -66,7 +66,7 @@ declare module "sap/ui/core/ComponentLifecycle" { } declare module "sap/ui/core/Design" { - import Design from "sap/ui/core/library"; + import {Design} from "sap/ui/core/library"; /** * Font design for texts. @@ -76,8 +76,8 @@ declare module "sap/ui/core/Design" { export default Design; } -declare module "sap/ui/core/DropEffect" { - import DropEffect from "sap/ui/core/library"; +declare module "sap/ui/core/dnd/DropEffect" { + import {dnd} from "sap/ui/core/library"; /** * Configuration options for visual drop effects that are given during a drag and drop operation. @@ -85,11 +85,11 @@ declare module "sap/ui/core/DropEffect" { * @public * @since 1.52.0 */ - export default DropEffect; + export default dnd.DropEffect; } -declare module "sap/ui/core/DropLayout" { - import DropLayout from "sap/ui/core/library"; +declare module "sap/ui/core/dnd/DropLayout" { + import {dnd} from "sap/ui/core/library"; /** * Configuration options for the layout of the droppable controls. @@ -97,11 +97,11 @@ declare module "sap/ui/core/DropLayout" { * @public * @since 1.52.0 */ - export default DropLayout; + export default dnd.DropLayout; } -declare module "sap/ui/core/DropPosition" { - import DropPosition from "sap/ui/core/library"; +declare module "sap/ui/core/dnd/DropPosition" { + import {dnd} from "sap/ui/core/library"; /** * Configuration options for drop positions. @@ -109,11 +109,11 @@ declare module "sap/ui/core/DropPosition" { * @public * @since 1.52.0 */ - export default DropPosition; + export default dnd.DropPosition; } -declare module "sap/ui/core/RelativeDropPosition" { - import RelativeDropPosition from "sap/ui/core/library"; +declare module "sap/ui/core/dnd/RelativeDropPosition" { + import {dnd} from "sap/ui/core/library"; /** * Drop positions relative to a dropped element. @@ -121,11 +121,11 @@ declare module "sap/ui/core/RelativeDropPosition" { * @public * @since 1.100.0 */ - export default RelativeDropPosition; + export default dnd.RelativeDropPosition; } declare module "sap/ui/core/HorizontalAlign" { - import HorizontalAlign from "sap/ui/core/library"; + import {HorizontalAlign} from "sap/ui/core/library"; /** * Configuration options for horizontal alignments of controls. @@ -136,7 +136,7 @@ declare module "sap/ui/core/HorizontalAlign" { } declare module "sap/ui/core/IconColor" { - import IconColor from "sap/ui/core/library"; + import {IconColor} from "sap/ui/core/library"; /** * Semantic Colors of an icon. @@ -147,7 +147,7 @@ declare module "sap/ui/core/IconColor" { } declare module "sap/ui/core/ImeMode" { - import ImeMode from "sap/ui/core/library"; + import {ImeMode} from "sap/ui/core/library"; /** * State of the Input Method Editor (IME) for the control. @@ -160,7 +160,7 @@ declare module "sap/ui/core/ImeMode" { } declare module "sap/ui/core/IndicationColor" { - import IndicationColor from "sap/ui/core/library"; + import {IndicationColor} from "sap/ui/core/library"; /** * Colors to highlight certain UI elements. @@ -174,7 +174,7 @@ declare module "sap/ui/core/IndicationColor" { } declare module "sap/ui/core/InvisibleMessageMode" { - import InvisibleMessageMode from "sap/ui/core/library"; + import {InvisibleMessageMode} from "sap/ui/core/library"; /** * Enumeration for different mode behaviors of the InvisibleMessage. @@ -187,7 +187,7 @@ declare module "sap/ui/core/InvisibleMessageMode" { } declare module "sap/ui/core/MessageType" { - import MessageType from "sap/ui/core/library"; + import {MessageType} from "sap/ui/core/library"; /** * Specifies possible message types. @@ -199,7 +199,7 @@ declare module "sap/ui/core/MessageType" { } declare module "sap/ui/core/OpenState" { - import OpenState from "sap/ui/core/library"; + import {OpenState} from "sap/ui/core/library"; /** * Defines the different possible states of an element that can be open or closed and does not only toggle between these states, but also spends some time in between (e.g. because of an animation). @@ -210,7 +210,7 @@ declare module "sap/ui/core/OpenState" { } declare module "sap/ui/core/Orientation" { - import Orientation from "sap/ui/core/library"; + import {Orientation} from "sap/ui/core/library"; /** * Orientation of a UI element. @@ -222,7 +222,7 @@ declare module "sap/ui/core/Orientation" { } declare module "sap/ui/core/Priority" { - import Priority from "sap/ui/core/library"; + import {Priority} from "sap/ui/core/library"; /** * Priorities for general use. @@ -232,19 +232,19 @@ declare module "sap/ui/core/Priority" { export default Priority; } -declare module "sap/ui/core/HistoryDirection" { - import HistoryDirection from "sap/ui/core/library"; +declare module "sap/ui/core/routing/HistoryDirection" { + import {routing} from "sap/ui/core/library"; /** * Enumeration for different HistoryDirections. * * @public */ - export default HistoryDirection; + export default routing.HistoryDirection; } declare module "sap/ui/core/ScrollBarAction" { - import ScrollBarAction from "sap/ui/core/library"; + import {ScrollBarAction} from "sap/ui/core/library"; /** * Actions are: Click on track, button, drag of thumb, or mouse wheel click. @@ -255,7 +255,7 @@ declare module "sap/ui/core/ScrollBarAction" { } declare module "sap/ui/core/Scrolling" { - import Scrolling from "sap/ui/core/library"; + import {Scrolling} from "sap/ui/core/library"; /** * Defines the possible values for horizontal and vertical scrolling behavior. @@ -266,7 +266,7 @@ declare module "sap/ui/core/Scrolling" { } declare module "sap/ui/core/SortOrder" { - import SortOrder from "sap/ui/core/library"; + import {SortOrder} from "sap/ui/core/library"; /** * Sort order of a column. @@ -278,7 +278,7 @@ declare module "sap/ui/core/SortOrder" { } declare module "sap/ui/core/TextAlign" { - import TextAlign from "sap/ui/core/library"; + import {TextAlign} from "sap/ui/core/library"; /** * Configuration options for text alignments. @@ -289,7 +289,7 @@ declare module "sap/ui/core/TextAlign" { } declare module "sap/ui/core/TextDirection" { - import TextDirection from "sap/ui/core/library"; + import {TextDirection} from "sap/ui/core/library"; /** * Configuration options for the direction of texts. @@ -300,7 +300,7 @@ declare module "sap/ui/core/TextDirection" { } declare module "sap/ui/core/TitleLevel" { - import TitleLevel from "sap/ui/core/library"; + import {TitleLevel} from "sap/ui/core/library"; /** * Level of a title. @@ -312,7 +312,7 @@ declare module "sap/ui/core/TitleLevel" { } declare module "sap/ui/core/ValueState" { - import ValueState from "sap/ui/core/library"; + import {ValueState} from "sap/ui/core/library"; /** * Marker for the correctness of the current value. @@ -324,7 +324,7 @@ declare module "sap/ui/core/ValueState" { } declare module "sap/ui/core/VerticalAlign" { - import VerticalAlign from "sap/ui/core/library"; + import {VerticalAlign} from "sap/ui/core/library"; /** * Configuration options for vertical alignments, for example of a layout cell content within the borders. @@ -335,7 +335,7 @@ declare module "sap/ui/core/VerticalAlign" { } declare module "sap/ui/core/Wrapping" { - import Wrapping from "sap/ui/core/library"; + import {Wrapping} from "sap/ui/core/library"; /** * Configuration options for text wrapping. diff --git a/resources/overrides/library/sap.ui.export.d.ts b/resources/overrides/library/sap.ui.export.d.ts index fb58a177..42dbb58b 100644 --- a/resources/overrides/library/sap.ui.export.d.ts +++ b/resources/overrides/library/sap.ui.export.d.ts @@ -1,5 +1,5 @@ declare module "sap/ui/export/EdmType" { - import EdmType from "sap/ui/export/library"; + import {EdmType} from "sap/ui/export/library"; /** * EDM data types for document export. @@ -11,7 +11,7 @@ declare module "sap/ui/export/EdmType" { } declare module "sap/ui/export/FileType" { - import FileType from "sap/ui/export/library"; + import {FileType} from "sap/ui/export/library"; /** * File types for document export. diff --git a/resources/overrides/library/sap.ui.generic.app.d.ts b/resources/overrides/library/sap.ui.generic.app.d.ts index 500d2bec..8d73df08 100644 --- a/resources/overrides/library/sap.ui.generic.app.d.ts +++ b/resources/overrides/library/sap.ui.generic.app.d.ts @@ -1,5 +1,5 @@ -declare module "sap/ui/generic/app/NavType" { - import NavType from "sap/ui/generic/app/library"; +declare module "sap/ui/generic/app/navigation/service/NavType" { + import {navigation} from "sap/ui/generic/app/library"; /** * A static enumeration type which indicates the type of inbound navigation @@ -7,11 +7,11 @@ declare module "sap/ui/generic/app/NavType" { * @deprecated (since 1.83.0) - Please use {@link sap.fe.navigation.NavType} instead. * @public */ - export default NavType; + export default navigation.service.NavType; } -declare module "sap/ui/generic/app/ParamHandlingMode" { - import ParamHandlingMode from "sap/ui/generic/app/library"; +declare module "sap/ui/generic/app/navigation/service/ParamHandlingMode" { + import {navigation} from "sap/ui/generic/app/library"; /** * A static enumeration type which indicates the conflict resolution method when merging URL parameters into select options @@ -19,11 +19,11 @@ declare module "sap/ui/generic/app/ParamHandlingMode" { * @deprecated (since 1.83.0) - Please use {@link sap.fe.navigation.ParamHandlingMode} instead. * @public */ - export default ParamHandlingMode; + export default navigation.service.ParamHandlingMode; } -declare module "sap/ui/generic/app/SuppressionBehavior" { - import SuppressionBehavior from "sap/ui/generic/app/library"; +declare module "sap/ui/generic/app/navigation/service/SuppressionBehavior" { + import {navigation} from "sap/ui/generic/app/library"; /** * A static enumeration type which indicates whether semantic attributes with values null, undefined or "" (empty string) shall be suppressed, before they are mixed in to the selection variant in the method {@link sap.ui.generic.app.navigation.service.NavigationHandler.mixAttributesAndSelectionVariant mixAttributesAndSelectionVariant} of the {@link sap.ui.generic.app.navigation.service.NavigationHandler NavigationHandler} @@ -31,5 +31,5 @@ declare module "sap/ui/generic/app/SuppressionBehavior" { * @deprecated (since 1.83.0) - Please use {@link sap.fe.navigation.SuppressionBehavior} instead. * @public */ - export default SuppressionBehavior; + export default navigation.service.SuppressionBehavior; } diff --git a/resources/overrides/library/sap.ui.integration.d.ts b/resources/overrides/library/sap.ui.integration.d.ts index d3a0bec6..0e33f17b 100644 --- a/resources/overrides/library/sap.ui.integration.d.ts +++ b/resources/overrides/library/sap.ui.integration.d.ts @@ -1,5 +1,5 @@ declare module "sap/ui/integration/AttributesLayoutType" { - import AttributesLayoutType from "sap/ui/integration/library"; + import {AttributesLayoutType} from "sap/ui/integration/library"; /** * Defines the layout type of the List card attributes. @@ -11,7 +11,7 @@ declare module "sap/ui/integration/AttributesLayoutType" { } declare module "sap/ui/integration/CardActionType" { - import CardActionType from "sap/ui/integration/library"; + import {CardActionType} from "sap/ui/integration/library"; /** * Enumeration of possible card action types. @@ -23,7 +23,7 @@ declare module "sap/ui/integration/CardActionType" { } declare module "sap/ui/integration/CardArea" { - import CardArea from "sap/ui/integration/library"; + import {CardArea} from "sap/ui/integration/library"; /** * Defines the areas in a card. @@ -35,7 +35,7 @@ declare module "sap/ui/integration/CardArea" { } declare module "sap/ui/integration/CardBlockingMessageType" { - import CardBlockingMessageType from "sap/ui/integration/library"; + import {CardBlockingMessageType} from "sap/ui/integration/library"; /** * Card blocking message types. @@ -47,7 +47,7 @@ declare module "sap/ui/integration/CardBlockingMessageType" { } declare module "sap/ui/integration/CardDataMode" { - import CardDataMode from "sap/ui/integration/library"; + import {CardDataMode} from "sap/ui/integration/library"; /** * Possible data modes for {@link sap.ui.integration.widgets.Card}. @@ -60,7 +60,7 @@ declare module "sap/ui/integration/CardDataMode" { } declare module "sap/ui/integration/CardDesign" { - import CardDesign from "sap/ui/integration/library"; + import {CardDesign} from "sap/ui/integration/library"; /** * Possible designs for {@link sap.ui.integration.widgets.Card}. @@ -73,7 +73,7 @@ declare module "sap/ui/integration/CardDesign" { } declare module "sap/ui/integration/CardDisplayVariant" { - import CardDisplayVariant from "sap/ui/integration/library"; + import {CardDisplayVariant} from "sap/ui/integration/library"; /** * Possible variants for {@link sap.ui.integration.widgets.Card} rendering and behavior. @@ -86,7 +86,7 @@ declare module "sap/ui/integration/CardDisplayVariant" { } declare module "sap/ui/integration/CardPreviewMode" { - import CardPreviewMode from "sap/ui/integration/library"; + import {CardPreviewMode} from "sap/ui/integration/library"; /** * Preview modes for {@link sap.ui.integration.widgets.Card}. Helpful in scenarios when the end user is choosing or configuring a card. diff --git a/resources/overrides/library/sap.ui.layout.d.ts b/resources/overrides/library/sap.ui.layout.d.ts index 87534fc9..87377424 100644 --- a/resources/overrides/library/sap.ui.layout.d.ts +++ b/resources/overrides/library/sap.ui.layout.d.ts @@ -1,5 +1,5 @@ declare module "sap/ui/layout/BackgroundDesign" { - import BackgroundDesign from "sap/ui/layout/library"; + import {BackgroundDesign} from "sap/ui/layout/library"; /** * Available Background Design. @@ -11,7 +11,7 @@ declare module "sap/ui/layout/BackgroundDesign" { } declare module "sap/ui/layout/BlockBackgroundType" { - import BlockBackgroundType from "sap/ui/layout/library"; + import {BlockBackgroundType} from "sap/ui/layout/library"; /** * A string type that is used inside the BlockLayout to set predefined background color to the cells inside the control. @@ -22,7 +22,7 @@ declare module "sap/ui/layout/BlockBackgroundType" { } declare module "sap/ui/layout/BlockLayoutCellColorSet" { - import BlockLayoutCellColorSet from "sap/ui/layout/library"; + import {BlockLayoutCellColorSet} from "sap/ui/layout/library"; /** * A string type that is used inside the BlockLayoutCell to set a predefined set of colors for the cells. @@ -34,7 +34,7 @@ declare module "sap/ui/layout/BlockLayoutCellColorSet" { } declare module "sap/ui/layout/BlockLayoutCellColorShade" { - import BlockLayoutCellColorShade from "sap/ui/layout/library"; + import {BlockLayoutCellColorShade} from "sap/ui/layout/library"; /** * A string type that is used inside the BlockLayoutCell to set a predefined set of color shades for the cells. The colors are defined with sap.ui.layout.BlockLayoutCellColorSet. And this is for the shades only. @@ -46,7 +46,7 @@ declare module "sap/ui/layout/BlockLayoutCellColorShade" { } declare module "sap/ui/layout/BlockRowColorSets" { - import BlockRowColorSets from "sap/ui/layout/library"; + import {BlockRowColorSets} from "sap/ui/layout/library"; /** * A string type that is used inside the BlockLayoutRow to set predefined set of colors the cells inside the control. Color sets depend on sap.ui.layout.BlockBackgroundType @@ -56,8 +56,8 @@ declare module "sap/ui/layout/BlockRowColorSets" { export default BlockRowColorSets; } -declare module "sap/ui/layout/CSSGridAutoFlow" { - import CSSGridAutoFlow from "sap/ui/layout/library"; +declare module "sap/ui/layout/cssgrid/CSSGridAutoFlow" { + import {cssgrid} from "sap/ui/layout/library"; /** * A string type that is used for CSS grid to control how the auto-placement algorithm works, specifying exactly how auto-placed items get flowed into the grid. @@ -65,11 +65,11 @@ declare module "sap/ui/layout/CSSGridAutoFlow" { * @public * @since 1.60.0 */ - export default CSSGridAutoFlow; + export default cssgrid.CSSGridAutoFlow; } -declare module "sap/ui/layout/SimpleFormLayout" { - import SimpleFormLayout from "sap/ui/layout/library"; +declare module "sap/ui/layout/form/SimpleFormLayout" { + import {form} from "sap/ui/layout/library"; /** * Available FormLayouts used to render a SimpleForm. @@ -77,11 +77,11 @@ declare module "sap/ui/layout/SimpleFormLayout" { * @public * @since 1.16.0 */ - export default SimpleFormLayout; + export default form.SimpleFormLayout; } declare module "sap/ui/layout/GridPosition" { - import GridPosition from "sap/ui/layout/library"; + import {GridPosition} from "sap/ui/layout/library"; /** * The position of the {@link sap.ui.layout.Grid}. Can be Left (default), Center or Right. @@ -92,7 +92,7 @@ declare module "sap/ui/layout/GridPosition" { } declare module "sap/ui/layout/SideContentFallDown" { - import SideContentFallDown from "sap/ui/layout/library"; + import {SideContentFallDown} from "sap/ui/layout/library"; /** * Types of the DynamicSideContent FallDown options @@ -104,7 +104,7 @@ declare module "sap/ui/layout/SideContentFallDown" { } declare module "sap/ui/layout/SideContentPosition" { - import SideContentPosition from "sap/ui/layout/library"; + import {SideContentPosition} from "sap/ui/layout/library"; /** * The position of the side content - End (default) and Begin. @@ -115,7 +115,7 @@ declare module "sap/ui/layout/SideContentPosition" { } declare module "sap/ui/layout/SideContentVisibility" { - import SideContentVisibility from "sap/ui/layout/library"; + import {SideContentVisibility} from "sap/ui/layout/library"; /** * Types of the DynamicSideContent Visibility options diff --git a/resources/overrides/library/sap.ui.mdc.d.ts b/resources/overrides/library/sap.ui.mdc.d.ts index 12e1b4fe..b6348cb2 100644 --- a/resources/overrides/library/sap.ui.mdc.d.ts +++ b/resources/overrides/library/sap.ui.mdc.d.ts @@ -1,5 +1,5 @@ declare module "sap/ui/mdc/ChartP13nMode" { - import ChartP13nMode from "sap/ui/mdc/library"; + import {ChartP13nMode} from "sap/ui/mdc/library"; /** * Defines the personalization mode of the chart. @@ -12,7 +12,7 @@ declare module "sap/ui/mdc/ChartP13nMode" { } declare module "sap/ui/mdc/ChartToolbarActionType" { - import ChartToolbarActionType from "sap/ui/mdc/library"; + import {ChartToolbarActionType} from "sap/ui/mdc/library"; /** * Defines the types of chart actions in the toolbar.
Can be used to remove some of the default ToolbarAction. For more information, see @link sap.ui.mdc.Chart#ignoreToolbarActions}. @@ -25,7 +25,7 @@ declare module "sap/ui/mdc/ChartToolbarActionType" { } declare module "sap/ui/mdc/FilterBarP13nMode" { - import FilterBarP13nMode from "sap/ui/mdc/library"; + import {FilterBarP13nMode} from "sap/ui/mdc/library"; /** * Defines the personalization mode of the filter bar. @@ -38,7 +38,7 @@ declare module "sap/ui/mdc/FilterBarP13nMode" { } declare module "sap/ui/mdc/GrowingMode" { - import GrowingMode from "sap/ui/mdc/library"; + import {GrowingMode} from "sap/ui/mdc/library"; /** * Defines the growing options of the responsive table. @@ -51,7 +51,7 @@ declare module "sap/ui/mdc/GrowingMode" { } declare module "sap/ui/mdc/MultiSelectMode" { - import MultiSelectMode from "sap/ui/mdc/library"; + import {MultiSelectMode} from "sap/ui/mdc/library"; /** * Enumeration of the multiSelectMode in ListBase. @@ -63,7 +63,7 @@ declare module "sap/ui/mdc/MultiSelectMode" { } declare module "sap/ui/mdc/RowAction" { - import RowAction from "sap/ui/mdc/library"; + import {RowAction} from "sap/ui/mdc/library"; /** * Defines the actions that can be used in the table. @@ -76,7 +76,7 @@ declare module "sap/ui/mdc/RowAction" { } declare module "sap/ui/mdc/RowCountMode" { - import RowCountMode from "sap/ui/mdc/library"; + import {RowCountMode} from "sap/ui/mdc/library"; /** * Defines the row count mode of the GridTable. @@ -89,7 +89,7 @@ declare module "sap/ui/mdc/RowCountMode" { } declare module "sap/ui/mdc/SelectionMode" { - import SelectionMode from "sap/ui/mdc/library"; + import {SelectionMode} from "sap/ui/mdc/library"; /** * Defines the mode of the table. @@ -102,7 +102,7 @@ declare module "sap/ui/mdc/SelectionMode" { } declare module "sap/ui/mdc/TableP13nMode" { - import TableP13nMode from "sap/ui/mdc/library"; + import {TableP13nMode} from "sap/ui/mdc/library"; /** * Defines the personalization mode of the table. @@ -115,7 +115,7 @@ declare module "sap/ui/mdc/TableP13nMode" { } declare module "sap/ui/mdc/TableType" { - import TableType from "sap/ui/mdc/library"; + import {TableType} from "sap/ui/mdc/library"; /** * Defines the type of table used in the MDC table. diff --git a/resources/overrides/library/sap.ui.richtexteditor.d.ts b/resources/overrides/library/sap.ui.richtexteditor.d.ts index 91714b15..77073b34 100644 --- a/resources/overrides/library/sap.ui.richtexteditor.d.ts +++ b/resources/overrides/library/sap.ui.richtexteditor.d.ts @@ -1,5 +1,5 @@ declare module "sap/ui/richtexteditor/EditorType" { - import EditorType from "sap/ui/richtexteditor/library"; + import {EditorType} from "sap/ui/richtexteditor/library"; /** * Determines which editor component should be used for editing the text. diff --git a/resources/overrides/library/sap.ui.suite.d.ts b/resources/overrides/library/sap.ui.suite.d.ts index d41c6868..a80bceac 100644 --- a/resources/overrides/library/sap.ui.suite.d.ts +++ b/resources/overrides/library/sap.ui.suite.d.ts @@ -1,5 +1,5 @@ declare module "sap/ui/suite/TaskCircleColor" { - import TaskCircleColor from "sap/ui/suite/library"; + import {TaskCircleColor} from "sap/ui/suite/library"; /** * Defined color values for the Task Circle Control diff --git a/resources/overrides/library/sap.ui.support.d.ts b/resources/overrides/library/sap.ui.support.d.ts index 9c7b4485..e4fcdea6 100644 --- a/resources/overrides/library/sap.ui.support.d.ts +++ b/resources/overrides/library/sap.ui.support.d.ts @@ -1,5 +1,5 @@ declare module "sap/ui/support/Audiences" { - import Audiences from "sap/ui/support/library"; + import {Audiences} from "sap/ui/support/library"; /** * Defines the Audiences. @@ -11,7 +11,7 @@ declare module "sap/ui/support/Audiences" { } declare module "sap/ui/support/Categories" { - import Categories from "sap/ui/support/library"; + import {Categories} from "sap/ui/support/library"; /** * Issue Categories. @@ -23,7 +23,7 @@ declare module "sap/ui/support/Categories" { } declare module "sap/ui/support/HistoryFormats" { - import HistoryFormats from "sap/ui/support/library"; + import {HistoryFormats} from "sap/ui/support/library"; /** * Analysis history formats. @@ -35,7 +35,7 @@ declare module "sap/ui/support/HistoryFormats" { } declare module "sap/ui/support/Severity" { - import Severity from "sap/ui/support/library"; + import {Severity} from "sap/ui/support/library"; /** * Defines severity types. @@ -47,7 +47,7 @@ declare module "sap/ui/support/Severity" { } declare module "sap/ui/support/SystemPresets" { - import SystemPresets from "sap/ui/support/library"; + import {SystemPresets} from "sap/ui/support/library"; /** * Contains the available system presets. diff --git a/resources/overrides/library/sap.ui.table.d.ts b/resources/overrides/library/sap.ui.table.d.ts index 3fc8fc01..3b64ca3e 100644 --- a/resources/overrides/library/sap.ui.table.d.ts +++ b/resources/overrides/library/sap.ui.table.d.ts @@ -1,5 +1,5 @@ declare module "sap/ui/table/GroupEventType" { - import GroupEventType from "sap/ui/table/library"; + import {GroupEventType} from "sap/ui/table/library"; /** * Details about the group event to distinguish between different actions associated with grouping @@ -10,7 +10,7 @@ declare module "sap/ui/table/GroupEventType" { } declare module "sap/ui/table/NavigationMode" { - import NavigationMode from "sap/ui/table/library"; + import {NavigationMode} from "sap/ui/table/library"; /** * Navigation mode of the table @@ -22,7 +22,7 @@ declare module "sap/ui/table/NavigationMode" { } declare module "sap/ui/table/ResetAllMode" { - import ResetAllMode from "sap/ui/table/library"; + import {ResetAllMode} from "sap/ui/table/library"; /** * Enumeration of the ResetAllMode that can be used in a TablePersoController. @@ -34,7 +34,7 @@ declare module "sap/ui/table/ResetAllMode" { } declare module "sap/ui/table/RowActionType" { - import RowActionType from "sap/ui/table/library"; + import {RowActionType} from "sap/ui/table/library"; /** * Row Action types. @@ -45,7 +45,7 @@ declare module "sap/ui/table/RowActionType" { } declare module "sap/ui/table/SelectionBehavior" { - import SelectionBehavior from "sap/ui/table/library"; + import {SelectionBehavior} from "sap/ui/table/library"; /** * Selection behavior of the table @@ -56,7 +56,7 @@ declare module "sap/ui/table/SelectionBehavior" { } declare module "sap/ui/table/SelectionMode" { - import SelectionMode from "sap/ui/table/library"; + import {SelectionMode} from "sap/ui/table/library"; /** * Selection mode of the table @@ -67,7 +67,7 @@ declare module "sap/ui/table/SelectionMode" { } declare module "sap/ui/table/SharedDomRef" { - import SharedDomRef from "sap/ui/table/library"; + import {SharedDomRef} from "sap/ui/table/library"; /** * Shared DOM Reference IDs of the table. @@ -80,7 +80,7 @@ declare module "sap/ui/table/SharedDomRef" { } declare module "sap/ui/table/SortOrder" { - import SortOrder from "sap/ui/table/library"; + import {SortOrder} from "sap/ui/table/library"; /** * Sort order of a column @@ -92,7 +92,7 @@ declare module "sap/ui/table/SortOrder" { } declare module "sap/ui/table/VisibleRowCountMode" { - import VisibleRowCountMode from "sap/ui/table/library"; + import {VisibleRowCountMode} from "sap/ui/table/library"; /** * VisibleRowCountMode of the table diff --git a/resources/overrides/library/sap.ui.unified.d.ts b/resources/overrides/library/sap.ui.unified.d.ts index 2c96a003..224cd7c6 100644 --- a/resources/overrides/library/sap.ui.unified.d.ts +++ b/resources/overrides/library/sap.ui.unified.d.ts @@ -1,5 +1,5 @@ declare module "sap/ui/unified/CalendarAppointmentHeight" { - import CalendarAppointmentHeight from "sap/ui/unified/library"; + import {CalendarAppointmentHeight} from "sap/ui/unified/library"; /** * Types of a calendar appointment display mode @@ -11,7 +11,7 @@ declare module "sap/ui/unified/CalendarAppointmentHeight" { } declare module "sap/ui/unified/CalendarAppointmentRoundWidth" { - import CalendarAppointmentRoundWidth from "sap/ui/unified/library"; + import {CalendarAppointmentRoundWidth} from "sap/ui/unified/library"; /** * Types of a calendar appointment display mode @@ -24,7 +24,7 @@ declare module "sap/ui/unified/CalendarAppointmentRoundWidth" { } declare module "sap/ui/unified/CalendarAppointmentVisualization" { - import CalendarAppointmentVisualization from "sap/ui/unified/library"; + import {CalendarAppointmentVisualization} from "sap/ui/unified/library"; /** * Visualization types for {@link sap.ui.unified.CalendarAppointment}. @@ -36,7 +36,7 @@ declare module "sap/ui/unified/CalendarAppointmentVisualization" { } declare module "sap/ui/unified/CalendarDayType" { - import CalendarDayType from "sap/ui/unified/library"; + import {CalendarDayType} from "sap/ui/unified/library"; /** * Types of a calendar day used for visualization. @@ -48,7 +48,7 @@ declare module "sap/ui/unified/CalendarDayType" { } declare module "sap/ui/unified/CalendarIntervalType" { - import CalendarIntervalType from "sap/ui/unified/library"; + import {CalendarIntervalType} from "sap/ui/unified/library"; /** * Interval types in a CalendarRow. @@ -60,7 +60,7 @@ declare module "sap/ui/unified/CalendarIntervalType" { } declare module "sap/ui/unified/ColorPickerMode" { - import ColorPickerMode from "sap/ui/unified/library"; + import {ColorPickerMode} from "sap/ui/unified/library"; /** * different styles for a ColorPicker. @@ -71,7 +71,7 @@ declare module "sap/ui/unified/ColorPickerMode" { } declare module "sap/ui/unified/ContentSwitcherAnimation" { - import ContentSwitcherAnimation from "sap/ui/unified/library"; + import {ContentSwitcherAnimation} from "sap/ui/unified/library"; /** * Predefined animations for the ContentSwitcher @@ -84,7 +84,7 @@ declare module "sap/ui/unified/ContentSwitcherAnimation" { } declare module "sap/ui/unified/GroupAppointmentsMode" { - import GroupAppointmentsMode from "sap/ui/unified/library"; + import {GroupAppointmentsMode} from "sap/ui/unified/library"; /** * Types of display mode for overlapping appointments. @@ -96,7 +96,7 @@ declare module "sap/ui/unified/GroupAppointmentsMode" { } declare module "sap/ui/unified/StandardCalendarLegendItem" { - import StandardCalendarLegendItem from "sap/ui/unified/library"; + import {StandardCalendarLegendItem} from "sap/ui/unified/library"; /** * Standard day types visualized in a {@link sap.m.PlanningCalendarLegend}, which correspond to days in a {@link sap.ui.unified.Calendar}. diff --git a/resources/overrides/library/sap.ui.ux3.d.ts b/resources/overrides/library/sap.ui.ux3.d.ts index bb6e2a8e..a9f06550 100644 --- a/resources/overrides/library/sap.ui.ux3.d.ts +++ b/resources/overrides/library/sap.ui.ux3.d.ts @@ -1,5 +1,5 @@ declare module "sap/ui/ux3/ActionBarSocialActions" { - import ActionBarSocialActions from "sap/ui/ux3/library"; + import {ActionBarSocialActions} from "sap/ui/ux3/library"; /** * Enumeration of available standard actions for 'sap.ui.ux3.ActionBar'. To be used as parameters for function 'sap.ui.ux3.ActionBar.getSocialAction'. @@ -12,7 +12,7 @@ declare module "sap/ui/ux3/ActionBarSocialActions" { } declare module "sap/ui/ux3/ExactOrder" { - import ExactOrder from "sap/ui/ux3/library"; + import {ExactOrder} from "sap/ui/ux3/library"; /** * Defines the order of the sub lists of a list in the ExactBrowser. @@ -25,7 +25,7 @@ declare module "sap/ui/ux3/ExactOrder" { } declare module "sap/ui/ux3/FeederType" { - import FeederType from "sap/ui/ux3/library"; + import {FeederType} from "sap/ui/ux3/library"; /** * Type of a Feeder. @@ -38,7 +38,7 @@ declare module "sap/ui/ux3/FeederType" { } declare module "sap/ui/ux3/FollowActionState" { - import FollowActionState from "sap/ui/ux3/library"; + import {FollowActionState} from "sap/ui/ux3/library"; /** * Defines the states of the follow action @@ -50,7 +50,7 @@ declare module "sap/ui/ux3/FollowActionState" { } declare module "sap/ui/ux3/NotificationBarStatus" { - import NotificationBarStatus from "sap/ui/ux3/library"; + import {NotificationBarStatus} from "sap/ui/ux3/library"; /** * This entries are used to set the visibility status of a NotificationBar @@ -62,7 +62,7 @@ declare module "sap/ui/ux3/NotificationBarStatus" { } declare module "sap/ui/ux3/ShellDesignType" { - import ShellDesignType from "sap/ui/ux3/library"; + import {ShellDesignType} from "sap/ui/ux3/library"; /** * Available shell design types. @@ -75,7 +75,7 @@ declare module "sap/ui/ux3/ShellDesignType" { } declare module "sap/ui/ux3/ShellHeaderType" { - import ShellHeaderType from "sap/ui/ux3/library"; + import {ShellHeaderType} from "sap/ui/ux3/library"; /** * Available shell header display types. @@ -87,7 +87,7 @@ declare module "sap/ui/ux3/ShellHeaderType" { } declare module "sap/ui/ux3/ThingViewerHeaderType" { - import ThingViewerHeaderType from "sap/ui/ux3/library"; + import {ThingViewerHeaderType} from "sap/ui/ux3/library"; /** * Available ThingViewer header display types. @@ -100,7 +100,7 @@ declare module "sap/ui/ux3/ThingViewerHeaderType" { } declare module "sap/ui/ux3/VisibleItemCountMode" { - import VisibleItemCountMode from "sap/ui/ux3/library"; + import {VisibleItemCountMode} from "sap/ui/ux3/library"; /** * VisibleItemCountMode of the FacetFilter defines if the FacetFilter takes the whole available height (Auto) in the surrounding container, or is so high as needed to show 5 Items ("Fixed " - default). diff --git a/resources/overrides/library/sap.ui.vbm.d.ts b/resources/overrides/library/sap.ui.vbm.d.ts index d389aca9..dc1930d4 100644 --- a/resources/overrides/library/sap.ui.vbm.d.ts +++ b/resources/overrides/library/sap.ui.vbm.d.ts @@ -1,5 +1,5 @@ declare module "sap/ui/vbm/ClusterInfoType" { - import ClusterInfoType from "sap/ui/vbm/library"; + import {ClusterInfoType} from "sap/ui/vbm/library"; /** * Cluster Info Type @@ -10,7 +10,7 @@ declare module "sap/ui/vbm/ClusterInfoType" { } declare module "sap/ui/vbm/RouteType" { - import RouteType from "sap/ui/vbm/library"; + import {RouteType} from "sap/ui/vbm/library"; /** * Route type, determining how line between start and endpoint should be drawn. @@ -21,7 +21,7 @@ declare module "sap/ui/vbm/RouteType" { } declare module "sap/ui/vbm/SemanticType" { - import SemanticType from "sap/ui/vbm/library"; + import {SemanticType} from "sap/ui/vbm/library"; /** * Semantic type with pre-defined display properties, like colors, icon, pin image, and so on. Semantic types enforce to fiori guidelines. diff --git a/resources/overrides/library/sap.ui.webc.fiori.d.ts b/resources/overrides/library/sap.ui.webc.fiori.d.ts index 4069dc62..d4b7f8dd 100644 --- a/resources/overrides/library/sap.ui.webc.fiori.d.ts +++ b/resources/overrides/library/sap.ui.webc.fiori.d.ts @@ -1,5 +1,5 @@ declare module "sap/ui/webc/fiori/BarDesign" { - import BarDesign from "sap/ui/webc/fiori/library"; + import {BarDesign} from "sap/ui/webc/fiori/library"; /** * Different types of Bar design @@ -12,7 +12,7 @@ declare module "sap/ui/webc/fiori/BarDesign" { } declare module "sap/ui/webc/fiori/FCLLayout" { - import FCLLayout from "sap/ui/webc/fiori/library"; + import {FCLLayout} from "sap/ui/webc/fiori/library"; /** * Different types of FCLLayout. @@ -25,7 +25,7 @@ declare module "sap/ui/webc/fiori/FCLLayout" { } declare module "sap/ui/webc/fiori/IllustrationMessageSize" { - import IllustrationMessageSize from "sap/ui/webc/fiori/library"; + import {IllustrationMessageSize} from "sap/ui/webc/fiori/library"; /** * Different types of IllustrationMessageSize. @@ -38,7 +38,7 @@ declare module "sap/ui/webc/fiori/IllustrationMessageSize" { } declare module "sap/ui/webc/fiori/IllustrationMessageType" { - import IllustrationMessageType from "sap/ui/webc/fiori/library"; + import {IllustrationMessageType} from "sap/ui/webc/fiori/library"; /** * Different illustration types of Illustrated Message. @@ -51,7 +51,7 @@ declare module "sap/ui/webc/fiori/IllustrationMessageType" { } declare module "sap/ui/webc/fiori/MediaGalleryItemLayout" { - import MediaGalleryItemLayout from "sap/ui/webc/fiori/library"; + import {MediaGalleryItemLayout} from "sap/ui/webc/fiori/library"; /** * Defines the layout of the content displayed in the ui5-media-gallery-item. @@ -64,7 +64,7 @@ declare module "sap/ui/webc/fiori/MediaGalleryItemLayout" { } declare module "sap/ui/webc/fiori/MediaGalleryLayout" { - import MediaGalleryLayout from "sap/ui/webc/fiori/library"; + import {MediaGalleryLayout} from "sap/ui/webc/fiori/library"; /** * Defines the layout type of the thumbnails list of the ui5-media-gallery component. @@ -77,7 +77,7 @@ declare module "sap/ui/webc/fiori/MediaGalleryLayout" { } declare module "sap/ui/webc/fiori/MediaGalleryMenuHorizontalAlign" { - import MediaGalleryMenuHorizontalAlign from "sap/ui/webc/fiori/library"; + import {MediaGalleryMenuHorizontalAlign} from "sap/ui/webc/fiori/library"; /** * Defines the horizontal alignment of the thumbnails menu of the ui5-media-gallery component. @@ -90,7 +90,7 @@ declare module "sap/ui/webc/fiori/MediaGalleryMenuHorizontalAlign" { } declare module "sap/ui/webc/fiori/MediaGalleryMenuVerticalAlign" { - import MediaGalleryMenuVerticalAlign from "sap/ui/webc/fiori/library"; + import {MediaGalleryMenuVerticalAlign} from "sap/ui/webc/fiori/library"; /** * Types for the vertical alignment of the thumbnails menu of the ui5-media-gallery component. @@ -103,7 +103,7 @@ declare module "sap/ui/webc/fiori/MediaGalleryMenuVerticalAlign" { } declare module "sap/ui/webc/fiori/PageBackgroundDesign" { - import PageBackgroundDesign from "sap/ui/webc/fiori/library"; + import {PageBackgroundDesign} from "sap/ui/webc/fiori/library"; /** * Available Page Background Design. @@ -116,7 +116,7 @@ declare module "sap/ui/webc/fiori/PageBackgroundDesign" { } declare module "sap/ui/webc/fiori/SideContentFallDown" { - import SideContentFallDown from "sap/ui/webc/fiori/library"; + import {SideContentFallDown} from "sap/ui/webc/fiori/library"; /** * SideContent FallDown options. @@ -129,7 +129,7 @@ declare module "sap/ui/webc/fiori/SideContentFallDown" { } declare module "sap/ui/webc/fiori/SideContentPosition" { - import SideContentPosition from "sap/ui/webc/fiori/library"; + import {SideContentPosition} from "sap/ui/webc/fiori/library"; /** * Side Content position options. @@ -142,7 +142,7 @@ declare module "sap/ui/webc/fiori/SideContentPosition" { } declare module "sap/ui/webc/fiori/SideContentVisibility" { - import SideContentVisibility from "sap/ui/webc/fiori/library"; + import {SideContentVisibility} from "sap/ui/webc/fiori/library"; /** * Side Content visibility options. @@ -155,7 +155,7 @@ declare module "sap/ui/webc/fiori/SideContentVisibility" { } declare module "sap/ui/webc/fiori/TimelineLayout" { - import TimelineLayout from "sap/ui/webc/fiori/library"; + import {TimelineLayout} from "sap/ui/webc/fiori/library"; /** * Available Timeline layout orientation @@ -168,7 +168,7 @@ declare module "sap/ui/webc/fiori/TimelineLayout" { } declare module "sap/ui/webc/fiori/UploadState" { - import UploadState from "sap/ui/webc/fiori/library"; + import {UploadState} from "sap/ui/webc/fiori/library"; /** * Different types of UploadState. @@ -181,7 +181,7 @@ declare module "sap/ui/webc/fiori/UploadState" { } declare module "sap/ui/webc/fiori/ViewSettingsDialogMode" { - import ViewSettingsDialogMode from "sap/ui/webc/fiori/library"; + import {ViewSettingsDialogMode} from "sap/ui/webc/fiori/library"; /** * Different types of Bar. @@ -194,7 +194,7 @@ declare module "sap/ui/webc/fiori/ViewSettingsDialogMode" { } declare module "sap/ui/webc/fiori/WizardContentLayout" { - import WizardContentLayout from "sap/ui/webc/fiori/library"; + import {WizardContentLayout} from "sap/ui/webc/fiori/library"; /** * Enumeration for different content layouts of the ui5-wizard. diff --git a/resources/overrides/library/sap.ui.webc.main.d.ts b/resources/overrides/library/sap.ui.webc.main.d.ts index ad02ac3d..6cfbaf64 100644 --- a/resources/overrides/library/sap.ui.webc.main.d.ts +++ b/resources/overrides/library/sap.ui.webc.main.d.ts @@ -1,5 +1,5 @@ declare module "sap/ui/webc/main/AvatarColorScheme" { - import AvatarColorScheme from "sap/ui/webc/main/library"; + import {AvatarColorScheme} from "sap/ui/webc/main/library"; /** * Different types of AvatarColorScheme. @@ -12,7 +12,7 @@ declare module "sap/ui/webc/main/AvatarColorScheme" { } declare module "sap/ui/webc/main/AvatarGroupType" { - import AvatarGroupType from "sap/ui/webc/main/library"; + import {AvatarGroupType} from "sap/ui/webc/main/library"; /** * Different types of AvatarGroupType. @@ -25,7 +25,7 @@ declare module "sap/ui/webc/main/AvatarGroupType" { } declare module "sap/ui/webc/main/AvatarShape" { - import AvatarShape from "sap/ui/webc/main/library"; + import {AvatarShape} from "sap/ui/webc/main/library"; /** * Different types of AvatarShape. @@ -38,7 +38,7 @@ declare module "sap/ui/webc/main/AvatarShape" { } declare module "sap/ui/webc/main/AvatarSize" { - import AvatarSize from "sap/ui/webc/main/library"; + import {AvatarSize} from "sap/ui/webc/main/library"; /** * Different types of AvatarSize. @@ -51,7 +51,7 @@ declare module "sap/ui/webc/main/AvatarSize" { } declare module "sap/ui/webc/main/BackgroundDesign" { - import BackgroundDesign from "sap/ui/webc/main/library"; + import {BackgroundDesign} from "sap/ui/webc/main/library"; /** * Defines background designs. @@ -64,7 +64,7 @@ declare module "sap/ui/webc/main/BackgroundDesign" { } declare module "sap/ui/webc/main/BorderDesign" { - import BorderDesign from "sap/ui/webc/main/library"; + import {BorderDesign} from "sap/ui/webc/main/library"; /** * Defines border designs. @@ -77,7 +77,7 @@ declare module "sap/ui/webc/main/BorderDesign" { } declare module "sap/ui/webc/main/BreadcrumbsDesign" { - import BreadcrumbsDesign from "sap/ui/webc/main/library"; + import {BreadcrumbsDesign} from "sap/ui/webc/main/library"; /** * Different Breadcrumbs designs. @@ -90,7 +90,7 @@ declare module "sap/ui/webc/main/BreadcrumbsDesign" { } declare module "sap/ui/webc/main/BreadcrumbsSeparatorStyle" { - import BreadcrumbsSeparatorStyle from "sap/ui/webc/main/library"; + import {BreadcrumbsSeparatorStyle} from "sap/ui/webc/main/library"; /** * Different Breadcrumbs separator styles. @@ -103,7 +103,7 @@ declare module "sap/ui/webc/main/BreadcrumbsSeparatorStyle" { } declare module "sap/ui/webc/main/BusyIndicatorSize" { - import BusyIndicatorSize from "sap/ui/webc/main/library"; + import {BusyIndicatorSize} from "sap/ui/webc/main/library"; /** * Different BusyIndicator sizes. @@ -116,7 +116,7 @@ declare module "sap/ui/webc/main/BusyIndicatorSize" { } declare module "sap/ui/webc/main/ButtonDesign" { - import ButtonDesign from "sap/ui/webc/main/library"; + import {ButtonDesign} from "sap/ui/webc/main/library"; /** * Different Button designs. @@ -129,7 +129,7 @@ declare module "sap/ui/webc/main/ButtonDesign" { } declare module "sap/ui/webc/main/ButtonType" { - import ButtonType from "sap/ui/webc/main/library"; + import {ButtonType} from "sap/ui/webc/main/library"; /** * Determines if the button has special form-related functionality. @@ -142,7 +142,7 @@ declare module "sap/ui/webc/main/ButtonType" { } declare module "sap/ui/webc/main/CalendarSelectionMode" { - import CalendarSelectionMode from "sap/ui/webc/main/library"; + import {CalendarSelectionMode} from "sap/ui/webc/main/library"; /** * Different Calendar selection mode. @@ -155,7 +155,7 @@ declare module "sap/ui/webc/main/CalendarSelectionMode" { } declare module "sap/ui/webc/main/CarouselArrowsPlacement" { - import CarouselArrowsPlacement from "sap/ui/webc/main/library"; + import {CarouselArrowsPlacement} from "sap/ui/webc/main/library"; /** * Different Carousel arrows placement. @@ -168,7 +168,7 @@ declare module "sap/ui/webc/main/CarouselArrowsPlacement" { } declare module "sap/ui/webc/main/CarouselPageIndicatorStyle" { - import CarouselPageIndicatorStyle from "sap/ui/webc/main/library"; + import {CarouselPageIndicatorStyle} from "sap/ui/webc/main/library"; /** * Different Carousel page indicator styles. @@ -181,7 +181,7 @@ declare module "sap/ui/webc/main/CarouselPageIndicatorStyle" { } declare module "sap/ui/webc/main/ComboBoxFilter" { - import ComboBoxFilter from "sap/ui/webc/main/library"; + import {ComboBoxFilter} from "sap/ui/webc/main/library"; /** * Different filtering types of the ComboBox. @@ -194,7 +194,7 @@ declare module "sap/ui/webc/main/ComboBoxFilter" { } declare module "sap/ui/webc/main/HasPopup" { - import HasPopup from "sap/ui/webc/main/library"; + import {HasPopup} from "sap/ui/webc/main/library"; /** * Different types of HasPopup. @@ -207,7 +207,7 @@ declare module "sap/ui/webc/main/HasPopup" { } declare module "sap/ui/webc/main/IconDesign" { - import IconDesign from "sap/ui/webc/main/library"; + import {IconDesign} from "sap/ui/webc/main/library"; /** * Different Icon semantic designs. @@ -220,7 +220,7 @@ declare module "sap/ui/webc/main/IconDesign" { } declare module "sap/ui/webc/main/InputType" { - import InputType from "sap/ui/webc/main/library"; + import {InputType} from "sap/ui/webc/main/library"; /** * Different input types. @@ -233,7 +233,7 @@ declare module "sap/ui/webc/main/InputType" { } declare module "sap/ui/webc/main/LinkDesign" { - import LinkDesign from "sap/ui/webc/main/library"; + import {LinkDesign} from "sap/ui/webc/main/library"; /** * Different link designs. @@ -246,7 +246,7 @@ declare module "sap/ui/webc/main/LinkDesign" { } declare module "sap/ui/webc/main/ListGrowingMode" { - import ListGrowingMode from "sap/ui/webc/main/library"; + import {ListGrowingMode} from "sap/ui/webc/main/library"; /** * Different list growing modes. @@ -259,7 +259,7 @@ declare module "sap/ui/webc/main/ListGrowingMode" { } declare module "sap/ui/webc/main/ListItemType" { - import ListItemType from "sap/ui/webc/main/library"; + import {ListItemType} from "sap/ui/webc/main/library"; /** * Different list item types. @@ -272,7 +272,7 @@ declare module "sap/ui/webc/main/ListItemType" { } declare module "sap/ui/webc/main/ListMode" { - import ListMode from "sap/ui/webc/main/library"; + import {ListMode} from "sap/ui/webc/main/library"; /** * Different list modes. @@ -285,7 +285,7 @@ declare module "sap/ui/webc/main/ListMode" { } declare module "sap/ui/webc/main/ListSeparators" { - import ListSeparators from "sap/ui/webc/main/library"; + import {ListSeparators} from "sap/ui/webc/main/library"; /** * Different types of list items separators. @@ -298,7 +298,7 @@ declare module "sap/ui/webc/main/ListSeparators" { } declare module "sap/ui/webc/main/MessageStripDesign" { - import MessageStripDesign from "sap/ui/webc/main/library"; + import {MessageStripDesign} from "sap/ui/webc/main/library"; /** * MessageStrip designs. @@ -311,7 +311,7 @@ declare module "sap/ui/webc/main/MessageStripDesign" { } declare module "sap/ui/webc/main/PanelAccessibleRole" { - import PanelAccessibleRole from "sap/ui/webc/main/library"; + import {PanelAccessibleRole} from "sap/ui/webc/main/library"; /** * Panel accessible roles. @@ -324,7 +324,7 @@ declare module "sap/ui/webc/main/PanelAccessibleRole" { } declare module "sap/ui/webc/main/PopoverHorizontalAlign" { - import PopoverHorizontalAlign from "sap/ui/webc/main/library"; + import {PopoverHorizontalAlign} from "sap/ui/webc/main/library"; /** * Popover horizontal align types. @@ -337,7 +337,7 @@ declare module "sap/ui/webc/main/PopoverHorizontalAlign" { } declare module "sap/ui/webc/main/PopoverPlacementType" { - import PopoverPlacementType from "sap/ui/webc/main/library"; + import {PopoverPlacementType} from "sap/ui/webc/main/library"; /** * Popover placement types. @@ -350,7 +350,7 @@ declare module "sap/ui/webc/main/PopoverPlacementType" { } declare module "sap/ui/webc/main/PopoverVerticalAlign" { - import PopoverVerticalAlign from "sap/ui/webc/main/library"; + import {PopoverVerticalAlign} from "sap/ui/webc/main/library"; /** * Popover vertical align types. @@ -363,7 +363,7 @@ declare module "sap/ui/webc/main/PopoverVerticalAlign" { } declare module "sap/ui/webc/main/PopupAccessibleRole" { - import PopupAccessibleRole from "sap/ui/webc/main/library"; + import {PopupAccessibleRole} from "sap/ui/webc/main/library"; /** * Popup accessible roles. @@ -376,7 +376,7 @@ declare module "sap/ui/webc/main/PopupAccessibleRole" { } declare module "sap/ui/webc/main/Priority" { - import Priority from "sap/ui/webc/main/library"; + import {Priority} from "sap/ui/webc/main/library"; /** * Different types of Priority. @@ -389,7 +389,7 @@ declare module "sap/ui/webc/main/Priority" { } declare module "sap/ui/webc/main/SegmentedButtonMode" { - import SegmentedButtonMode from "sap/ui/webc/main/library"; + import {SegmentedButtonMode} from "sap/ui/webc/main/library"; /** * Different SegmentedButton modes. @@ -402,7 +402,7 @@ declare module "sap/ui/webc/main/SegmentedButtonMode" { } declare module "sap/ui/webc/main/SemanticColor" { - import SemanticColor from "sap/ui/webc/main/library"; + import {SemanticColor} from "sap/ui/webc/main/library"; /** * Different types of SemanticColor. @@ -415,7 +415,7 @@ declare module "sap/ui/webc/main/SemanticColor" { } declare module "sap/ui/webc/main/SwitchDesign" { - import SwitchDesign from "sap/ui/webc/main/library"; + import {SwitchDesign} from "sap/ui/webc/main/library"; /** * Different types of Switch designs. @@ -428,7 +428,7 @@ declare module "sap/ui/webc/main/SwitchDesign" { } declare module "sap/ui/webc/main/TabContainerBackgroundDesign" { - import TabContainerBackgroundDesign from "sap/ui/webc/main/library"; + import {TabContainerBackgroundDesign} from "sap/ui/webc/main/library"; /** * Background design for the header and content of TabContainer. @@ -441,7 +441,7 @@ declare module "sap/ui/webc/main/TabContainerBackgroundDesign" { } declare module "sap/ui/webc/main/TabLayout" { - import TabLayout from "sap/ui/webc/main/library"; + import {TabLayout} from "sap/ui/webc/main/library"; /** * Tab layout of TabContainer. @@ -454,7 +454,7 @@ declare module "sap/ui/webc/main/TabLayout" { } declare module "sap/ui/webc/main/TableColumnPopinDisplay" { - import TableColumnPopinDisplay from "sap/ui/webc/main/library"; + import {TableColumnPopinDisplay} from "sap/ui/webc/main/library"; /** * Table cell popin display. @@ -467,7 +467,7 @@ declare module "sap/ui/webc/main/TableColumnPopinDisplay" { } declare module "sap/ui/webc/main/TableGrowingMode" { - import TableGrowingMode from "sap/ui/webc/main/library"; + import {TableGrowingMode} from "sap/ui/webc/main/library"; /** * Different table growing modes. @@ -480,7 +480,7 @@ declare module "sap/ui/webc/main/TableGrowingMode" { } declare module "sap/ui/webc/main/TableMode" { - import TableMode from "sap/ui/webc/main/library"; + import {TableMode} from "sap/ui/webc/main/library"; /** * Different table modes. @@ -493,7 +493,7 @@ declare module "sap/ui/webc/main/TableMode" { } declare module "sap/ui/webc/main/TableRowType" { - import TableRowType from "sap/ui/webc/main/library"; + import {TableRowType} from "sap/ui/webc/main/library"; /** * Different table row types. @@ -506,7 +506,7 @@ declare module "sap/ui/webc/main/TableRowType" { } declare module "sap/ui/webc/main/TabsOverflowMode" { - import TabsOverflowMode from "sap/ui/webc/main/library"; + import {TabsOverflowMode} from "sap/ui/webc/main/library"; /** * Tabs overflow mode in TabContainer. @@ -519,7 +519,7 @@ declare module "sap/ui/webc/main/TabsOverflowMode" { } declare module "sap/ui/webc/main/TitleLevel" { - import TitleLevel from "sap/ui/webc/main/library"; + import {TitleLevel} from "sap/ui/webc/main/library"; /** * Different types of Title level. @@ -532,7 +532,7 @@ declare module "sap/ui/webc/main/TitleLevel" { } declare module "sap/ui/webc/main/ToastPlacement" { - import ToastPlacement from "sap/ui/webc/main/library"; + import {ToastPlacement} from "sap/ui/webc/main/library"; /** * Toast placement. @@ -545,7 +545,7 @@ declare module "sap/ui/webc/main/ToastPlacement" { } declare module "sap/ui/webc/main/ToolbarAlign" { - import ToolbarAlign from "sap/ui/webc/main/library"; + import {ToolbarAlign} from "sap/ui/webc/main/library"; /** * Defines which direction the items of ui5-toolbar will be aligned. @@ -558,7 +558,7 @@ declare module "sap/ui/webc/main/ToolbarAlign" { } declare module "sap/ui/webc/main/ToolbarItemOverflowBehavior" { - import ToolbarItemOverflowBehavior from "sap/ui/webc/main/library"; + import {ToolbarItemOverflowBehavior} from "sap/ui/webc/main/library"; /** * Defines the priority of the toolbar item to go inside overflow popover. @@ -571,7 +571,7 @@ declare module "sap/ui/webc/main/ToolbarItemOverflowBehavior" { } declare module "sap/ui/webc/main/WrappingType" { - import WrappingType from "sap/ui/webc/main/library"; + import {WrappingType} from "sap/ui/webc/main/library"; /** * Different types of wrapping. diff --git a/resources/overrides/library/sap.ushell.d.ts b/resources/overrides/library/sap.ushell.d.ts index 1d790906..18473bd9 100644 --- a/resources/overrides/library/sap.ushell.d.ts +++ b/resources/overrides/library/sap.ushell.d.ts @@ -1,5 +1,5 @@ declare module "sap/ushell/ContentNodeType" { - import ContentNodeType from "sap/ushell/library"; + import {ContentNodeType} from "sap/ushell/library"; /** * Denotes the types of the content nodes. @@ -10,7 +10,7 @@ declare module "sap/ushell/ContentNodeType" { } declare module "sap/ushell/NavigationState" { - import NavigationState from "sap/ushell/library"; + import {NavigationState} from "sap/ushell/library"; /** * The state of a navigation operation diff --git a/resources/overrides/library/sap.uxap.d.ts b/resources/overrides/library/sap.uxap.d.ts index 8b3fe30a..009ff555 100644 --- a/resources/overrides/library/sap.uxap.d.ts +++ b/resources/overrides/library/sap.uxap.d.ts @@ -1,5 +1,5 @@ declare module "sap/uxap/BlockBaseFormAdjustment" { - import BlockBaseFormAdjustment from "sap/uxap/library"; + import {BlockBaseFormAdjustment} from "sap/uxap/library"; /** * Used by the BlockBase control to define if it should do automatic adjustment of its nested forms. @@ -10,7 +10,7 @@ declare module "sap/uxap/BlockBaseFormAdjustment" { } declare module "sap/uxap/Importance" { - import Importance from "sap/uxap/library"; + import {Importance} from "sap/uxap/library"; /** * Used by the ObjectSectionBase control to define the importance of the content contained in it. @@ -22,7 +22,7 @@ declare module "sap/uxap/Importance" { } declare module "sap/uxap/ObjectPageConfigurationMode" { - import ObjectPageConfigurationMode from "sap/uxap/library"; + import {ObjectPageConfigurationMode} from "sap/uxap/library"; /** * Used by the sap.uxap.component.Component how to initialize the ObjectPageLayout sections and subsections. @@ -33,7 +33,7 @@ declare module "sap/uxap/ObjectPageConfigurationMode" { } declare module "sap/uxap/ObjectPageHeaderDesign" { - import ObjectPageHeaderDesign from "sap/uxap/library"; + import {ObjectPageHeaderDesign} from "sap/uxap/library"; /** * Used by the ObjectPageHeader control to define which design to use. @@ -44,7 +44,7 @@ declare module "sap/uxap/ObjectPageHeaderDesign" { } declare module "sap/uxap/ObjectPageHeaderPictureShape" { - import ObjectPageHeaderPictureShape from "sap/uxap/library"; + import {ObjectPageHeaderPictureShape} from "sap/uxap/library"; /** * Used by the ObjectPageHeader control to define which shape to use for the image. @@ -55,7 +55,7 @@ declare module "sap/uxap/ObjectPageHeaderPictureShape" { } declare module "sap/uxap/ObjectPageSubSectionLayout" { - import ObjectPageSubSectionLayout from "sap/uxap/library"; + import {ObjectPageSubSectionLayout} from "sap/uxap/library"; /** * Used by the ObjectPagSubSection control to define which layout to apply. @@ -66,7 +66,7 @@ declare module "sap/uxap/ObjectPageSubSectionLayout" { } declare module "sap/uxap/ObjectPageSubSectionMode" { - import ObjectPageSubSectionMode from "sap/uxap/library"; + import {ObjectPageSubSectionMode} from "sap/uxap/library"; /** * Used by the ObjectPageLayout control to define which layout to use (either Collapsed or Expanded). diff --git a/resources/overrides/library/sap.viz.d.ts b/resources/overrides/library/sap.viz.d.ts index 673b2a4d..42c2a5e6 100644 --- a/resources/overrides/library/sap.viz.d.ts +++ b/resources/overrides/library/sap.viz.d.ts @@ -1,5 +1,5 @@ -declare module "sap/viz/Area_drawingEffect" { - import Area_drawingEffect from "sap/viz/library"; +declare module "sap/viz/ui5/types/Area_drawingEffect" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Area_drawingEffect @@ -13,11 +13,11 @@ declare module "sap/viz/Area_drawingEffect" { * @public * @since 1.7.2 */ - export default Area_drawingEffect; + export default ui5.types.Area_drawingEffect; } -declare module "sap/viz/Area_marker_shape" { - import Area_marker_shape from "sap/viz/library"; +declare module "sap/viz/ui5/types/Area_marker_shape" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Area_marker_shape @@ -31,11 +31,11 @@ declare module "sap/viz/Area_marker_shape" { * @public * @since 1.7.2 */ - export default Area_marker_shape; + export default ui5.types.Area_marker_shape; } -declare module "sap/viz/Area_mode" { - import Area_mode from "sap/viz/library"; +declare module "sap/viz/ui5/types/Area_mode" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Area_mode @@ -49,11 +49,11 @@ declare module "sap/viz/Area_mode" { * @public * @since 1.7.2 */ - export default Area_mode; + export default ui5.types.Area_mode; } -declare module "sap/viz/Area_orientation" { - import Area_orientation from "sap/viz/library"; +declare module "sap/viz/ui5/types/Area_orientation" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Area_orientation @@ -67,11 +67,11 @@ declare module "sap/viz/Area_orientation" { * @public * @since 1.7.2 */ - export default Area_orientation; + export default ui5.types.Area_orientation; } -declare module "sap/viz/Axis_gridline_type" { - import Axis_gridline_type from "sap/viz/library"; +declare module "sap/viz/ui5/types/Axis_gridline_type" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Axis_gridline_type @@ -85,11 +85,11 @@ declare module "sap/viz/Axis_gridline_type" { * @public * @since 1.7.2 */ - export default Axis_gridline_type; + export default ui5.types.Axis_gridline_type; } -declare module "sap/viz/Axis_label_unitFormatType" { - import Axis_label_unitFormatType from "sap/viz/library"; +declare module "sap/viz/ui5/types/Axis_label_unitFormatType" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Axis_label_unitFormatType @@ -103,11 +103,11 @@ declare module "sap/viz/Axis_label_unitFormatType" { * @public * @since 1.7.2 */ - export default Axis_label_unitFormatType; + export default ui5.types.Axis_label_unitFormatType; } -declare module "sap/viz/Axis_position" { - import Axis_position from "sap/viz/library"; +declare module "sap/viz/ui5/types/Axis_position" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Axis_position @@ -121,11 +121,11 @@ declare module "sap/viz/Axis_position" { * @public * @since 1.7.2 */ - export default Axis_position; + export default ui5.types.Axis_position; } -declare module "sap/viz/Axis_type" { - import Axis_type from "sap/viz/library"; +declare module "sap/viz/ui5/types/Axis_type" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Axis_type @@ -139,11 +139,11 @@ declare module "sap/viz/Axis_type" { * @public * @since 1.7.2 */ - export default Axis_type; + export default ui5.types.Axis_type; } -declare module "sap/viz/Background_direction" { - import Background_direction from "sap/viz/library"; +declare module "sap/viz/ui5/types/Background_direction" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Background_direction @@ -157,11 +157,11 @@ declare module "sap/viz/Background_direction" { * @public * @since 1.7.2 */ - export default Background_direction; + export default ui5.types.Background_direction; } -declare module "sap/viz/Background_drawingEffect" { - import Background_drawingEffect from "sap/viz/library"; +declare module "sap/viz/ui5/types/Background_drawingEffect" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Background_drawingEffect @@ -175,11 +175,11 @@ declare module "sap/viz/Background_drawingEffect" { * @public * @since 1.7.2 */ - export default Background_drawingEffect; + export default ui5.types.Background_drawingEffect; } -declare module "sap/viz/Bar_drawingEffect" { - import Bar_drawingEffect from "sap/viz/library"; +declare module "sap/viz/ui5/types/Bar_drawingEffect" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Bar_drawingEffect @@ -193,11 +193,11 @@ declare module "sap/viz/Bar_drawingEffect" { * @public * @since 1.7.2 */ - export default Bar_drawingEffect; + export default ui5.types.Bar_drawingEffect; } -declare module "sap/viz/Bar_orientation" { - import Bar_orientation from "sap/viz/library"; +declare module "sap/viz/ui5/types/Bar_orientation" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Bar_orientation @@ -211,11 +211,11 @@ declare module "sap/viz/Bar_orientation" { * @public * @since 1.7.2 */ - export default Bar_orientation; + export default ui5.types.Bar_orientation; } -declare module "sap/viz/Bubble_drawingEffect" { - import Bubble_drawingEffect from "sap/viz/library"; +declare module "sap/viz/ui5/types/Bubble_drawingEffect" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Bubble_drawingEffect @@ -229,11 +229,11 @@ declare module "sap/viz/Bubble_drawingEffect" { * @public * @since 1.7.2 */ - export default Bubble_drawingEffect; + export default ui5.types.Bubble_drawingEffect; } -declare module "sap/viz/Bullet_drawingEffect" { - import Bullet_drawingEffect from "sap/viz/library"; +declare module "sap/viz/ui5/types/Bullet_drawingEffect" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Bullet_drawingEffect @@ -247,11 +247,11 @@ declare module "sap/viz/Bullet_drawingEffect" { * @public * @since 1.7.2 */ - export default Bullet_drawingEffect; + export default ui5.types.Bullet_drawingEffect; } -declare module "sap/viz/Bullet_orientation" { - import Bullet_orientation from "sap/viz/library"; +declare module "sap/viz/ui5/types/Bullet_orientation" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Bullet_orientation @@ -265,11 +265,11 @@ declare module "sap/viz/Bullet_orientation" { * @public * @since 1.7.2 */ - export default Bullet_orientation; + export default ui5.types.Bullet_orientation; } -declare module "sap/viz/Combination_drawingEffect" { - import Combination_drawingEffect from "sap/viz/library"; +declare module "sap/viz/ui5/types/Combination_drawingEffect" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Combination_drawingEffect @@ -283,11 +283,11 @@ declare module "sap/viz/Combination_drawingEffect" { * @public * @since 1.7.2 */ - export default Combination_drawingEffect; + export default ui5.types.Combination_drawingEffect; } -declare module "sap/viz/Combination_orientation" { - import Combination_orientation from "sap/viz/library"; +declare module "sap/viz/ui5/types/Combination_orientation" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Combination_orientation @@ -301,11 +301,11 @@ declare module "sap/viz/Combination_orientation" { * @public * @since 1.7.2 */ - export default Combination_orientation; + export default ui5.types.Combination_orientation; } -declare module "sap/viz/Interaction_pan_orientation" { - import Interaction_pan_orientation from "sap/viz/library"; +declare module "sap/viz/ui5/types/controller/Interaction_pan_orientation" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.controller.Interaction_pan_orientation @@ -319,11 +319,11 @@ declare module "sap/viz/Interaction_pan_orientation" { * @public * @since 1.7.2 */ - export default Interaction_pan_orientation; + export default ui5.types.controller.Interaction_pan_orientation; } -declare module "sap/viz/Interaction_selectability_mode" { - import Interaction_selectability_mode from "sap/viz/library"; +declare module "sap/viz/ui5/types/controller/Interaction_selectability_mode" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.controller.Interaction_selectability_mode @@ -337,11 +337,11 @@ declare module "sap/viz/Interaction_selectability_mode" { * @public * @since 1.7.2 */ - export default Interaction_selectability_mode; + export default ui5.types.controller.Interaction_selectability_mode; } -declare module "sap/viz/Datalabel_orientation" { - import Datalabel_orientation from "sap/viz/library"; +declare module "sap/viz/ui5/types/Datalabel_orientation" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Datalabel_orientation @@ -355,11 +355,11 @@ declare module "sap/viz/Datalabel_orientation" { * @public * @since 1.7.2 */ - export default Datalabel_orientation; + export default ui5.types.Datalabel_orientation; } -declare module "sap/viz/Datalabel_outsidePosition" { - import Datalabel_outsidePosition from "sap/viz/library"; +declare module "sap/viz/ui5/types/Datalabel_outsidePosition" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Datalabel_outsidePosition @@ -373,11 +373,11 @@ declare module "sap/viz/Datalabel_outsidePosition" { * @public * @since 1.7.2 */ - export default Datalabel_outsidePosition; + export default ui5.types.Datalabel_outsidePosition; } -declare module "sap/viz/Datalabel_paintingMode" { - import Datalabel_paintingMode from "sap/viz/library"; +declare module "sap/viz/ui5/types/Datalabel_paintingMode" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Datalabel_paintingMode @@ -391,11 +391,11 @@ declare module "sap/viz/Datalabel_paintingMode" { * @public * @since 1.7.2 */ - export default Datalabel_paintingMode; + export default ui5.types.Datalabel_paintingMode; } -declare module "sap/viz/Datalabel_position" { - import Datalabel_position from "sap/viz/library"; +declare module "sap/viz/ui5/types/Datalabel_position" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Datalabel_position @@ -409,11 +409,11 @@ declare module "sap/viz/Datalabel_position" { * @public * @since 1.7.2 */ - export default Datalabel_position; + export default ui5.types.Datalabel_position; } -declare module "sap/viz/Common_alignment" { - import Common_alignment from "sap/viz/library"; +declare module "sap/viz/ui5/types/legend/Common_alignment" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.legend.Common_alignment @@ -427,11 +427,11 @@ declare module "sap/viz/Common_alignment" { * @public * @since 1.7.2 */ - export default Common_alignment; + export default ui5.types.legend.Common_alignment; } -declare module "sap/viz/Common_drawingEffect" { - import Common_drawingEffect from "sap/viz/library"; +declare module "sap/viz/ui5/types/legend/Common_drawingEffect" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.legend.Common_drawingEffect @@ -445,11 +445,11 @@ declare module "sap/viz/Common_drawingEffect" { * @public * @since 1.7.2 */ - export default Common_drawingEffect; + export default ui5.types.legend.Common_drawingEffect; } -declare module "sap/viz/Common_position" { - import Common_position from "sap/viz/library"; +declare module "sap/viz/ui5/types/legend/Common_position" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.legend.Common_position @@ -463,11 +463,11 @@ declare module "sap/viz/Common_position" { * @public * @since 1.7.2 */ - export default Common_position; + export default ui5.types.legend.Common_position; } -declare module "sap/viz/Common_type" { - import Common_type from "sap/viz/library"; +declare module "sap/viz/ui5/types/legend/Common_type" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.legend.Common_type @@ -481,11 +481,11 @@ declare module "sap/viz/Common_type" { * @public * @since 1.7.2 */ - export default Common_type; + export default ui5.types.legend.Common_type; } -declare module "sap/viz/Legend_layout_position" { - import Legend_layout_position from "sap/viz/library"; +declare module "sap/viz/ui5/types/Legend_layout_position" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Legend_layout_position @@ -499,11 +499,11 @@ declare module "sap/viz/Legend_layout_position" { * @public * @since 1.7.2 */ - export default Legend_layout_position; + export default ui5.types.Legend_layout_position; } -declare module "sap/viz/Line_drawingEffect" { - import Line_drawingEffect from "sap/viz/library"; +declare module "sap/viz/ui5/types/Line_drawingEffect" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Line_drawingEffect @@ -517,11 +517,11 @@ declare module "sap/viz/Line_drawingEffect" { * @public * @since 1.7.2 */ - export default Line_drawingEffect; + export default ui5.types.Line_drawingEffect; } -declare module "sap/viz/Line_marker_shape" { - import Line_marker_shape from "sap/viz/library"; +declare module "sap/viz/ui5/types/Line_marker_shape" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Line_marker_shape @@ -535,11 +535,11 @@ declare module "sap/viz/Line_marker_shape" { * @public * @since 1.7.2 */ - export default Line_marker_shape; + export default ui5.types.Line_marker_shape; } -declare module "sap/viz/Line_orientation" { - import Line_orientation from "sap/viz/library"; +declare module "sap/viz/ui5/types/Line_orientation" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Line_orientation @@ -553,11 +553,11 @@ declare module "sap/viz/Line_orientation" { * @public * @since 1.7.2 */ - export default Line_orientation; + export default ui5.types.Line_orientation; } -declare module "sap/viz/Pie_drawingEffect" { - import Pie_drawingEffect from "sap/viz/library"; +declare module "sap/viz/ui5/types/Pie_drawingEffect" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Pie_drawingEffect @@ -571,11 +571,11 @@ declare module "sap/viz/Pie_drawingEffect" { * @public * @since 1.7.2 */ - export default Pie_drawingEffect; + export default ui5.types.Pie_drawingEffect; } -declare module "sap/viz/Pie_valign" { - import Pie_valign from "sap/viz/library"; +declare module "sap/viz/ui5/types/Pie_valign" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Pie_valign @@ -589,11 +589,11 @@ declare module "sap/viz/Pie_valign" { * @public * @since 1.7.2 */ - export default Pie_valign; + export default ui5.types.Pie_valign; } -declare module "sap/viz/Scatter_drawingEffect" { - import Scatter_drawingEffect from "sap/viz/library"; +declare module "sap/viz/ui5/types/Scatter_drawingEffect" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Scatter_drawingEffect @@ -607,11 +607,11 @@ declare module "sap/viz/Scatter_drawingEffect" { * @public * @since 1.7.2 */ - export default Scatter_drawingEffect; + export default ui5.types.Scatter_drawingEffect; } -declare module "sap/viz/StackedVerticalBar_drawingEffect" { - import StackedVerticalBar_drawingEffect from "sap/viz/library"; +declare module "sap/viz/ui5/types/StackedVerticalBar_drawingEffect" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.StackedVerticalBar_drawingEffect @@ -625,11 +625,11 @@ declare module "sap/viz/StackedVerticalBar_drawingEffect" { * @public * @since 1.7.2 */ - export default StackedVerticalBar_drawingEffect; + export default ui5.types.StackedVerticalBar_drawingEffect; } -declare module "sap/viz/StackedVerticalBar_mode" { - import StackedVerticalBar_mode from "sap/viz/library"; +declare module "sap/viz/ui5/types/StackedVerticalBar_mode" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.StackedVerticalBar_mode @@ -643,11 +643,11 @@ declare module "sap/viz/StackedVerticalBar_mode" { * @public * @since 1.7.2 */ - export default StackedVerticalBar_mode; + export default ui5.types.StackedVerticalBar_mode; } -declare module "sap/viz/StackedVerticalBar_orientation" { - import StackedVerticalBar_orientation from "sap/viz/library"; +declare module "sap/viz/ui5/types/StackedVerticalBar_orientation" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.StackedVerticalBar_orientation @@ -661,11 +661,11 @@ declare module "sap/viz/StackedVerticalBar_orientation" { * @public * @since 1.7.2 */ - export default StackedVerticalBar_orientation; + export default ui5.types.StackedVerticalBar_orientation; } -declare module "sap/viz/Title_alignment" { - import Title_alignment from "sap/viz/library"; +declare module "sap/viz/ui5/types/Title_alignment" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Title_alignment @@ -679,11 +679,11 @@ declare module "sap/viz/Title_alignment" { * @public * @since 1.7.2 */ - export default Title_alignment; + export default ui5.types.Title_alignment; } -declare module "sap/viz/Tooltip_drawingEffect" { - import Tooltip_drawingEffect from "sap/viz/library"; +declare module "sap/viz/ui5/types/Tooltip_drawingEffect" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.Tooltip_drawingEffect @@ -697,11 +697,11 @@ declare module "sap/viz/Tooltip_drawingEffect" { * @public * @since 1.7.2 */ - export default Tooltip_drawingEffect; + export default ui5.types.Tooltip_drawingEffect; } -declare module "sap/viz/VerticalBar_drawingEffect" { - import VerticalBar_drawingEffect from "sap/viz/library"; +declare module "sap/viz/ui5/types/VerticalBar_drawingEffect" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.VerticalBar_drawingEffect @@ -715,11 +715,11 @@ declare module "sap/viz/VerticalBar_drawingEffect" { * @public * @since 1.7.2 */ - export default VerticalBar_drawingEffect; + export default ui5.types.VerticalBar_drawingEffect; } -declare module "sap/viz/VerticalBar_orientation" { - import VerticalBar_orientation from "sap/viz/library"; +declare module "sap/viz/ui5/types/VerticalBar_orientation" { + import {ui5} from "sap/viz/library"; /** * List (Enum) type sap.viz.ui5.types.VerticalBar_orientation @@ -733,5 +733,5 @@ declare module "sap/viz/VerticalBar_orientation" { * @public * @since 1.7.2 */ - export default VerticalBar_orientation; + export default ui5.types.VerticalBar_orientation; } diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index 913bf91d..85ade193 100644 --- a/scripts/metadataProvider/createPseudoModulesInfo.ts +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -59,19 +59,20 @@ async function getPseudoModuleNames() { name: string; kind: string; resource: string; + export: string; }; } return apiJsonList.flatMap((library) => { const libApiJson = require(path.resolve(RAW_API_JSON_FILES_FOLDER, library)) as apiJSON; return libApiJson.symbols; - }).reduce((acc: Record, symbol) => { + }).reduce((acc: Record, symbol) => { if (symbol.kind === "enum" && symbol.resource.endsWith("library.js")) { - acc[symbol.name] = true; + acc[symbol.name] = symbol.export ?? symbol.name; } return acc; - }, Object.create(null) as Record); + }, Object.create(null) as Record); } async function transformFiles(sapui5Version: string) { @@ -83,7 +84,7 @@ async function transformFiles(sapui5Version: string) { const {enums} = metadataProvider.getModel(); - const groupedEnums = Object.keys(enums).reduce((acc: Record, enumKey: string) => { + const groupedEnums = Object.keys(enums).reduce((acc: Record, enumKey: string) => { // Filter only real pseudo modules i.e. defined within library.js files if (!pseudoModuleNames[enumKey]) { return acc; @@ -92,10 +93,10 @@ async function transformFiles(sapui5Version: string) { const curEnum = enums[enumKey]; acc[curEnum.library] = acc[curEnum.library] ?? []; - acc[curEnum.library].push(curEnum); + acc[curEnum.library].push({enum: curEnum, export: pseudoModuleNames[enumKey]}); return acc; - }, Object.create(null) as Record); + }, Object.create(null) as Record); await addOverrides(groupedEnums); } @@ -142,24 +143,27 @@ function buildJSDoc(enumEntry: UI5Enum | UI5EnumValue, indent = "") { return jsDocBuilder.join("\n"); } -async function addOverrides(enums: Record) { +async function addOverrides(enums: Record) { const indexFilesImports: string[] = []; for (const libName of Object.keys(enums)) { const enumEntries = enums[libName]; const stringBuilder: string[] = []; - enumEntries.forEach((enumEntry) => { + enumEntries.forEach(({enum: enumEntry, export: exportName}) => { if (enumEntry.kind !== "UI5Enum") { return; } - stringBuilder.push(`declare module "${libName.replaceAll(".", "/")}/${enumEntry.name}" {`); + const exportNameChunks = exportName.split("."); + const name = exportNameChunks[0]; // Always import the first chunk and then export the whole thing; - stringBuilder.push(`\timport ${enumEntry.name} from "${libName.replaceAll(".", "/")}/library";`); + stringBuilder.push(`declare module "${libName.replaceAll(".", "/")}/${exportName.replaceAll(".", "/")}" {`); + + stringBuilder.push(`\timport {${name}} from "${libName.replaceAll(".", "/")}/library";`); stringBuilder.push(""); stringBuilder.push(buildJSDoc(enumEntry, "\t")); - stringBuilder.push(`\texport default ${enumEntry.name};`); + stringBuilder.push(`\texport default ${exportName};`); stringBuilder.push(`}`); stringBuilder.push(""); From ccfe3f34dca364c95aedad0b0bf38eeca5ff80d3 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Wed, 10 Apr 2024 13:49:49 +0300 Subject: [PATCH 17/33] fix: Eslint --- .../createPseudoModulesInfo.ts | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index 85ade193..8fbbe9eb 100644 --- a/scripts/metadataProvider/createPseudoModulesInfo.ts +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -84,19 +84,21 @@ async function transformFiles(sapui5Version: string) { const {enums} = metadataProvider.getModel(); - const groupedEnums = Object.keys(enums).reduce((acc: Record, enumKey: string) => { + const groupedEnums = Object.keys(enums) + .reduce((acc: Record, enumKey: string) => { // Filter only real pseudo modules i.e. defined within library.js files - if (!pseudoModuleNames[enumKey]) { - return acc; - } + if (!pseudoModuleNames[enumKey]) { + return acc; + } - const curEnum = enums[enumKey]; + const curEnum = enums[enumKey]; - acc[curEnum.library] = acc[curEnum.library] ?? []; - acc[curEnum.library].push({enum: curEnum, export: pseudoModuleNames[enumKey]}); + acc[curEnum.library] = acc[curEnum.library] ?? []; + acc[curEnum.library].push( + {enum: curEnum, export: pseudoModuleNames[enumKey]}); - return acc; - }, Object.create(null) as Record); + return acc; + }, Object.create(null) as Record); await addOverrides(groupedEnums); } @@ -143,7 +145,7 @@ function buildJSDoc(enumEntry: UI5Enum | UI5EnumValue, indent = "") { return jsDocBuilder.join("\n"); } -async function addOverrides(enums: Record) { +async function addOverrides(enums: Record) { const indexFilesImports: string[] = []; for (const libName of Object.keys(enums)) { From 8a20b1aed980d74a1ea8b55e02ebbf724b7157c1 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Wed, 10 Apr 2024 15:01:59 +0300 Subject: [PATCH 18/33] feat: Cleanup temp files --- scripts/metadataProvider/createPseudoModulesInfo.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index 8fbbe9eb..9ac43c0e 100644 --- a/scripts/metadataProvider/createPseudoModulesInfo.ts +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -158,7 +158,7 @@ async function addOverrides(enums: Record unlink(path.resolve(RAW_API_JSON_FILES_FOLDER, library)))); +} + async function main(url: string, sapui5Version: string) { await fetchAndExtractAPIJsons(url); await transformFiles(sapui5Version); + + await cleanup(); } try { From 935ae1bf9046aa6a6cf48eaf8432ad59ea0a931a Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Wed, 10 Apr 2024 15:08:30 +0300 Subject: [PATCH 19/33] feat: Cleanup after definitions import --- scripts/metadataProvider/createPseudoModulesInfo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index 9ac43c0e..45aede03 100644 --- a/scripts/metadataProvider/createPseudoModulesInfo.ts +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -196,7 +196,7 @@ async function main(url: string, sapui5Version: string) { await fetchAndExtractAPIJsons(url); await transformFiles(sapui5Version); - + await cleanup(); } From 4336707d42c24024bf027f8fff72c9d93b2acf3c Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Wed, 10 Apr 2024 15:08:51 +0300 Subject: [PATCH 20/33] feat: Add tests --- .../webapp/controller/App.controller.js | 4 +-- test/lib/linter/snapshots/linter.ts.md | 32 ++++++++++++++++++- 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/test/fixtures/linter/projects/com.ui5.troublesome.app/webapp/controller/App.controller.js b/test/fixtures/linter/projects/com.ui5.troublesome.app/webapp/controller/App.controller.js index 4b7e552c..9cae36cf 100644 --- a/test/fixtures/linter/projects/com.ui5.troublesome.app/webapp/controller/App.controller.js +++ b/test/fixtures/linter/projects/com.ui5.troublesome.app/webapp/controller/App.controller.js @@ -1,5 +1,5 @@ -sap.ui.define(["./BaseController"], - function (BaseController) { +sap.ui.define(["./BaseController", "sap/m/BackgroundDesign"], + function (BaseController, BackgroundDesign) { "use strict"; return BaseController.extend("com.ui5.troublesome.app.controller.App", { diff --git a/test/lib/linter/snapshots/linter.ts.md b/test/lib/linter/snapshots/linter.ts.md index ab8fd7ad..9d2fb2ec 100644 --- a/test/lib/linter/snapshots/linter.ts.md +++ b/test/lib/linter/snapshots/linter.ts.md @@ -283,10 +283,19 @@ Generated by [AVA](https://avajs.dev). message: 'Unable to analyze this method call because the type of identifier "getContentDensityClass" in "this.getOwnerComponent().getContentDensityClass()"" could not be determined', }, ], - errorCount: 1, + errorCount: 2, fatalErrorCount: 0, filePath: 'webapp/controller/App.controller.js', messages: [ + { + column: 36, + fatal: undefined, + line: 1, + message: 'Import of pseudo module \'sap/m/BackgroundDesign\'', + messageDetails: 'Import library and reuse the enum from there', + ruleId: 'ui5-linter-no-deprecated-api', + severity: 2, + }, { column: 4, fatal: undefined, @@ -747,10 +756,31 @@ Generated by [AVA](https://avajs.dev). [ { coverageInfo: [], +<<<<<<< HEAD errorCount: 1, +======= + errorCount: 0, + fatalErrorCount: 0, + filePath: 'webapp/Component.js', + messages: [], + warningCount: 0, + }, + { + coverageInfo: [], + errorCount: 2, +>>>>>>> 97ea3f8 (feat: Add tests) fatalErrorCount: 0, filePath: 'webapp/controller/App.controller.js', messages: [ + { + column: 36, + fatal: undefined, + line: 1, + message: 'Import of pseudo module \'sap/m/BackgroundDesign\'', + messageDetails: 'Import library and reuse the enum from there', + ruleId: 'ui5-linter-no-deprecated-api', + severity: 2, + }, { column: 4, fatal: undefined, From 5bf40187a6db04f8a0e2f3e54c8e156fc0933dc9 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Fri, 12 Apr 2024 13:56:21 +0300 Subject: [PATCH 21/33] fix: Merge conflicts --- test/lib/linter/snapshots/linter.ts.md | 12 ------------ test/lib/linter/snapshots/linter.ts.snap | Bin 7687 -> 7834 bytes 2 files changed, 12 deletions(-) diff --git a/test/lib/linter/snapshots/linter.ts.md b/test/lib/linter/snapshots/linter.ts.md index 9d2fb2ec..507a1094 100644 --- a/test/lib/linter/snapshots/linter.ts.md +++ b/test/lib/linter/snapshots/linter.ts.md @@ -756,19 +756,7 @@ Generated by [AVA](https://avajs.dev). [ { coverageInfo: [], -<<<<<<< HEAD - errorCount: 1, -======= - errorCount: 0, - fatalErrorCount: 0, - filePath: 'webapp/Component.js', - messages: [], - warningCount: 0, - }, - { - coverageInfo: [], errorCount: 2, ->>>>>>> 97ea3f8 (feat: Add tests) fatalErrorCount: 0, filePath: 'webapp/controller/App.controller.js', messages: [ diff --git a/test/lib/linter/snapshots/linter.ts.snap b/test/lib/linter/snapshots/linter.ts.snap index 4dafd76ffe5b70ac11a33cdd6e61d4296789e683..671489ea830036f212199ef4e38611dfe0d18c81 100644 GIT binary patch literal 7834 zcmV;L9%bP{RzVx+QnZQVSWd{?O-k-Ft4`^SkGsd+OeE&%L8_UrdkeH?F!LD9=I2ZqVQ4G$`1k8ivxP8bU1ctnCHC3s$f zmnHbQ1izEuO=%#$-U0Xq2jo?V*avOw{T>_pa!Fe5A=@GQt)$0J-ex7ecJc))>9dnQ zFGzknxy(ui?Bpd@vczh+|5h*D<%K7`@Dne*+*>J- z1YIQOSHZ3y&Ta~v8Wu^O?jUxM^#fz_Goc6S_GIx>Rgxt1z?&g6#=GBJ-J?qbRQ3@@WJ#G zBb+H13S|p5$g9ql50}X~e_E&PWQPxGhGw;H)v8r;rxG*N2BEa|r)<)qQ8m6N`<6t? z=5NcF-(V-y zXn&^ACC$xpN4F|>>am#KtHrxyd#;v^ZX2~kQjex0s;tP_$xqJk(UMz3Y5jTa=?b>|a15$*^fy?X+HP>h?P$dNQd-OgW}U6jRgV zR^`_7Od~B@zXN3oddO_Dk&7rjYAm7{ z>Hvy}nT%bW8Nn@b$QF;mV!b2{qJk(duw0N7*D*GnI_Xvqc4^#Urs)R5e1b{>l)KvR;~* zM=y;ppqE}K!h~U|qf=t}4vXceN>p7QiJDkIqOL2FrRMZ<#ttbc3!{q2>^z7}E`Z3j zMM5MiczFTom(EeeLzIGCJf;-Dt2k}LUB$5$EsC*>6U^dcH%A@* z8cx3D8OeLi+ZEp+!EM4ij!#55y%zKLQg*H8S5kVdCMX3Lc%aDx=X#*a10VCi%O05G zg$iKu{#8<$XM9!X zA79ea-G)6}qG}?kTBF+j@JXmivrk@Ne-EkA1y+GbOfd|3!8s|@)Z+_;TB|a(u2W4# ziy7I+Q`Ys@YO02r{eTiVO{QXMTQvJ~dP-YjnJK24Y>Mkm{Vi)!5}GJ(hV`+enSK32 zTM$Z7nGF@naRs1U(Q4@;Q_sb+GZl~6-!}^s(^Mke9ZKTegl0zB8IH2s5mU7I=Jr9= zUEl+wqVC?AMQhih+c4E#SwBK{gStjZ;rT3OcasEnOYmSJrI%iH{)(gY-jJLH>gAaQ z>Yxb}>R zfPT?$b(kb`+j<5?(myg&Vx^1uy*T+mqEiA4Gg`+gMrM zrSG$$If`1Y{QWm)WE5S}QFI;cTeSUydy4qJHY&QVQi26T)peW4TGy320NL&794&Qs ztpqnpaQo2I-TjWbd#zvHg**`Uz!nd5d*I_9_`V0GdZE3rx--1c=Y^wQIOc_KdLiV4 z&bJNjJH|@g6&jh7SU?smtm<<^L)Mh8`S-jY#qj;oPi;ZRlH)-iUD zs~mul-K69Q+~Yji<S=KUXtKH-&UEEJaC#Pzt`G`HyOll(%eBM z>NRnb;o)LzGB{%|y~VK4jE9{^A!mq&L@yu9yFrhs;h5ePs_#$|2{l@uv(KJyyF4>+ z4lT4sUW>do7PB2E414VBJ>itLBy1-2)V`Q%=sjv!NhI8(>AZi+8BOD3Koa;6a3yd( za4T>ha13}1cn0_m@FU>Yz@KblD3@Te1hb_Aqj8)qD~-> zyGyov9CyiUJdV5MGoG}&WY(WD?U1?JN|xHmORZ#?oqX6zmfOkSTgeJLxyTv_m3Gpa zN~J10c}IFATFD<+NqY`1nc{~Tepu;;|KW#^`r#k^@Ga5J(j!jaC4cn88-AD)fE59_ zH~@DI=5Fbl`AdErfL{c_R|4}(U`q-7uM)VwB)_X-P%3$@1ioDYe<*?RL0BGyBSAPC z6iCOrNWT(<$Aj=n5dIp3d8KfEDHx>!=_D8F-XgSw*qEV2&8jdq-!c*Lj^=D z;1d<_Kn47?0{$$LE^v{~s)Tu!&{_%6O1P>LUaW-Qhz_m`U8L1jFsTa8sDj;9aJUMd zs)8Shj;<{(QcpDmt6_dMY^;W!YB*L6&xsDNt6ikOuZI7qhKV(>qy{dmftzaJOQPfJ z1{di|HSoh4`0pB+J`TT>CXVfF zKcQFMrz8^1t$I&Fk6Ui1nK}Q)iNl@q9p1h;T;7WH@ir&JTtttXNj(-*lg(=riE#hV zEVJJoIkSH~37I`dG1OKUv!O{NW_IVKv6b4nZeF)4T6~b6?HM_ zA4!(Cdq&RN*T$H)*%{ut)mTDJ8qMq5m$q7;mf`e+ET=ylIj3(7ms6LCKTK99W?1b} z;##L_Sc+DU+fAD^dBogpo;KpVY8Tbzb(%eTTt@&YoWY$;7Vga+_0Ne z3)5<0o=`9-7F=8lOKV|`P_RNQcy2B1tc44Og4KE2J|R!u#5{SE^W;s*lUJK3uP#sC zbb;AGXD!5P;b1LXUJHLy3r7XUXNVnhXD!?(6q=jot@HEbh4SPz2rsUBs1_cng(qs^ zxmx&ME&Qw&ep?G~)Pk=Ls_USx4(8Rt;yPGaH?X0L^1N_Gp1hT!oNTCrEp@O*c)?jh zLBCQ5U3GAv4n9-|R|*7c^1OAu_}1&|;P2|-PN9;Gc`DhQCvQuhysdfiwu=q>Tpb*% zgRcq=+mWY|jy!q0^W^OnU;cC*JYNUj6JCDa;G0-KtFt#IoNfHc)3O^CyQif$Dx9nv zoUCt%S#LU7E2cYH>5Yp+)3aH}raL8)+ zy8JWyeR^j)b?u+&)OFiTXBXv#na(bXZ1-G2 z1&iT>i{ZnI;ikp#4~rpu8fd2pr1kFjB&Wf(r@@1#!Ed6p}Z9qwL)7fsI3CY zG8f62>!4*FT(Axft%DoZ2_(y1`eNmJSi2rBUJr-Y!_oEdyYc?8{yDKIJQwBKik#dZ*PQ`H^LhmVag^rW0OF#)Si1!-+9Hs&x=1eG2I@BW#5TBV8~mSb0?9fT$+DfWYA0N@ z6Atf$qdNtXO)iqiF3@(tr*^@;yWq)P0!f<-@EhCV=63jUJN#Qa{GlD%I^fC3!#=nc8Jt;dQmV={8Q_qs~diqp@s|2OEO0D|dvt?9`c{F;`yi!!tqI?SKa~HXYQICM(@;i`u&#+uU6#jwRpeRm?ECR-IFV}%`5 zVktG8^LUhljfq>{CxU?KDNX>$jCWF~zC9gER!^wu@TRt(mK@cTnBG<2*l&}BHfjge zc%!_x+xp+pt;Vy*gqoXWYl|wL4mWJr&+Nist=&|T=GMO5ZT*)2;hdnUnP;tfyi@CH z5l$V&l^(T4u0PHxq5gohM=~)xS2~Tc8=P*3)!MKg@90)7pMV`!sCI2fQZRZ9ck3sRkfpAwJTX?0~R{*R&3v&et(;l?XG30P1&ZK`C8K& zQFWmN{({W(|m{D3N1CgR*Ydkh%lyy{}{;Xm?2#t)>?7m zwjXDNrO`f-5jkcs6$-<9UvUI-a3zw)>4db-m;oi)ogz?QD5^XSqALpv)u0M?%m6DC zO!V_bl&rz#ghIkK_&hRZa7`-!*A+#9YrtHXgOE5$j+s>`h71>Bm_15XVI-z!2;T2z z;VBa?|3H;bnQ-qA(uMXbPML6aUg(r%a$T_A@tYr~lb4JS90BO9Li;4HMH^s!>x zywG1gc?snZ?wo}GNry7 zL}&ZCj+|sJPs>d8CzF)SC?F+2Ia#D6gWYkYBo&FMhS4G)Ka5-MUvsnEtICFI+AX$3 zLf)4$`Wj_Jw=&{t`r5t&DK*(=7fC2dHEw$`+V}A#634B2dqPVK&ZF|>z$RlqZs|3&pk%Dx2EmgMYZTWe#n zP<_}?5?eE4sv&IM2x)fPH=Qm%A-O!kfj9W**rpG4aJH^R^ms4h}9Rz2&+61ONNBl=zI(n zy3^#;mt_&bd{2H^=7&-osm1c@ZSFtpG0>|k=fFqChOtKDyILHF>ttTw`px&8lX*4- z@}_hMnYPxw^sY*X6K6U26uqu;EOo{lD&(8rNEj(A;;4P(a$A& z5d8|W2hmHu27Ci}6)2IQNrD3sTwNggcu*?&yaZp8;6(}kp9FOt_<#oviQ%=~7i6Vl z$yj%LWzjrYB47?4?(-i#BMzMNTT_td*7*pF7oT222 z5_q}CZ~O!+4zBC)wU5!tsusMH>yX zsd12-BQgUyY#B-6NXjtvo^V1jy9c?6MSdv9G%B%7q7A?f;6k7iIFPwZBCn~Gjy`my zV=6s?6B_6(oX|ka`|pD=Bqx%QWe{0{9F$6|OO}2oL1pHKr4A2V=Ya=A+sJKJJ^yy` z?|9&KtEd-Nc)_|@?y7an2mkJ~ z`Cz#pc8PP|WEW}54~PBmX+J#bhoAUiW&oCpbDsNxgbM?p1mGh9xFZ1H2*6(gFjbuM zW*x_bTv;-<@fN2W$w+gLqQ#ppF`Cn3WrJd^JUXFo_m+&F>& z|J}&h`_gdPbD0^#jr=+Yf4kIpR8969#czz9Ps=JB(=UJl{g_p)8U9*=BjztMZ2pSW zkM>}+qr4t(Fn(m@T;4s_Tu#pAQW%ZT4V%9aL_d8!2>%rvIIjjy;FGS*QwqUS7+(rA zN+DDVXOzO(rO;Li9i?z_>A)A1iLJP#6cR$Ad;v|Th#!`hmcnJFaFtNW)DwtO>bbEL zZWbyKqmp{>DTN10;bEbmEY|jTDSTZhG-vQYk>4uK#$rr|NA#9uEtsWcjs>HYITp+< zWsU{&%`(S=@svBU7?+egu^79{omh-Fm#1SfI`4hHd|-ge%8KlJw^TUa+v%cLR}3ur zFHX_7#G;EUvv;@Ym5{208!O>hC45u7#K;vW(Z9b64phN)Rq$XHJS$#atc5ic#OaFHCSf!-Q8S_2Q)zzgDKMecxzmyd%h$HBeh;Hh!&6Y-KFS3pGn zC&$Azo&X=80C!J-Cnmrv;-y5cxQYHdC&GOb;pvI+i;3Ww zR47)W-?~cVfl2V}BzSES_$L>-zRUla$?)09@b$^?^U1&zfntp>G0v{@a5@+LQ48yo(?~n4u72v zGiJbw8HIv6`qi0W1zEj%Cj9+Ocxq;$V2;6kv!HtxTrmsooCS}~f?65&%5c3bkk2i0 zR5J0SKlfX9Re^8W4;5h>wNp!~w&PQdGllbP3|)>3c`ALf7<Rje$6_A2!iy;M({xE#W zp0NEZRNvFLMccO{sdj3IG6v=*t*bkxb#{*cy4>5+}s5s&e5sy)ZA)j)XQ(#OS zERt?mACC^u4C~|3F;t1-PK4O`cNHaIh(R_7j#%Z>ep^N|Kg7I=XKOK zSROSka=pAr&QTb4p@y*wa90SUj}|GwU55kH@!%O%2%3fufpoao2)Md`%tpw(0<8BI zMLX)*SUR?L)D1OlD~!y0tZJD19R&`JOB)I~JZ(uYf(?wx_@4458?FOXf%qW>wvx2C zmc{lInnOVIlxJSij?cYU<86+f$8v!!bWeFP&c!5RN<>|onKZ2fM;Svpb7;Xbwp!%+ ztaY9Cz>ioTU@h5__UBmG`4CALNhAfAeD$CjH*@{+m6)0|(~qrjla5pvYRI_VA1OQ1 z5YDtMWKZT+sDaU)#6=g5+`bScf0RCW(108o}qYWN>+&<~Vj<;B_23KkbFvz3^2pyzGTP zd118=j`-ja(LW~WS||UW4_@)XpM5aZ4`*ilL7())Uqm07QkPthjV-jWpwjGYUVBh6 smE_5*BS#TFar?m)XL|^TJk}|u+M)HRZSh3PJb6+4|ChV^w*0dI07Bq8K>z>% literal 7687 zcmV+i9{AxwRzVf!yyr*BeC&5Ww% zX=+SODA88AO+TO}lx{V2zM&a0C2sWSrt!%mk%(d{d#kVYQjGN{1td=sa1t;{Dyo+J z>k7|^qUuh?>`6Z;%RtC(&}T9l6zEkAL+Mrxp_U2#N+PDkx`)0fAeDSwf;%O+UxM#T z@T3IKOYk2Oyeh$;q@nnFhu|9+k~cxbK44?-_t@B%Nzw`r=?>X%B|UcX1}o{clTTYo zpPlr1LGs(l;RXzv6|Pz3_c6yy%6uy+Q~2hIU{;^8b?${>29``yk+l zd47S!?;<&;2*O2hQ4t&|f`^I(k|Gz$8>R48DNHYem1VHIOdu(Ck(^cz+sdK09Ihyb z+sXx!fQw{r1)Ns_AFqI~RKNoj0!fLBM5_e760WR-Z&t!%l>$kri{!7X;L0kvs|uc| zf|sfUk}}sQ@reQ)R!p^9PYfi*&g%am`9)zp+SeOP<<1pyeNio@rt-W(UU5p;Q@=f5 zV|Ps17gc3bmz9_j9k@`H%^uB=dsVYXkH}#q8kP5{VWrQoGE~_dh^w;RC2J8iW@=rU znvmy&Ts2q7gZ!oAN$Yj;N-Z=+$CsBo8o&)R{09<$!6Lln0o)^u$Ib+;cRj zLI;vhj8LjzFqkgXD6jsAe5h2;_|v*%Cp&aNGc>Dpt5>g9@rDjGn-X>?7Cz#p~Q?XJ<+R1tk>3`9SVickyp#XL$aN$m-{ud zC$rX=E*pAZBCN{2N?cZBW@13@(i8Selt@I4$ompXc)w~Ia?sGMfvuTxL{|-4c+`WM zVOmHh>u3xOg-|o(xNfM11yzp{jjFM3)vkS)8rKu1nh2SO)lTcxrf$D8tS1s`*p#Ds zSTQv{W>s!IPc_n73pnox>oLQWjg-(2s-D%tcxh>oRU@j!%;tz@SY6T_QxBTWHgaL5 zSB-`hLmfg9HWShFQX{xk4%*@|oZMI%F!lP)kziwEQy$-YUbshzb*s5vpH{}f#*h{f z8ZfdNMErt{jf2YK?4uC1Yf-gxAg%@*&sh@+W+ga@6zQHI`B2klbNYv-@v{G|=IkgVSDGLQfWKI@D zYH}cQWu6d83tm=02Bov0c!*MviO19&cziX#65Gka(lNY%NX(txqiDh>|e#@ zS;kjo_VFbx+ilpxC8EX?sx_+Z51+W2FbCuY`+G=@G*|_~QN=LihV^}>smB_GS}Rhu zZct4{iyG<2Q#TCOYO02r{(urWP4q?8&5`ua8GYJPYnfuIiRPHzJlL{kC9a9$W>_Cf znmI5iv^k*^mDxz4tj+=D$~H?EnR+IcU45~z{e9D*n5Gi$=~UwHCp1&a&Ty37&Zwfr zwsZ`u?uyPWh`M`kHmzNoZlhFprGp6B4eBnC!t+_m?#mL~BEem`lwNYz`P+`t`=jJ+ zP_IaBPzR(yzXuL`;5rZ7=YeND(BuVcGy2xt`tMOMJnn^;yx{l293NchgZq8(dJg>; zkOGtZQ0s@~e(3On?uSSH;4OlWh`Z6n$EZHV-W}@2; zaKm`5x=TJ}L$iQduI$4%XQUKe!clac9b2{i!+VPO9w~^fE0>^Qq`Gd)cG2S4wcT1YaGQy8DKs?p_*HcR>$?Jh0URJs!B&1OMuQXOjU9(8xXQFpsz)^=;yR3pQxJa2J9oa3q_SU6IZ zw{4uA2KP8mdi!*wE^z+g5xzl6A?$xzg6AaofA6ZyDIQqj$?ml_W+Q|6 zO`18VM7<^&8Sc%8k--^zNfX09GZu0l1)U)p6uo>b?*=`phN60Ru)b4?$JI!EhMhf| zxjZ#+4lcAtUaPz=8nqoK414VBy`esBX~<0Iefy%Sq4%mGB_4N=rZXpJjHZcEAOZXp za2aqF@D-nsF;CK6GVM>9bjVy|B}?q&g;uiEPTp%J%k1QTS;+}@a*;I< z%I%~zl}Z(M@Eb{zbS@q6zB48EPkRGo+*a^E{2H#SP_83 z0k|e0kXE}$za4;w1MsT=yc2-=C9t;yj1qx#vWxVKC2)NSe7gjGUSi`6WCGkV0e(FJ{!b)b;3Az}4)e>QtsEld@ab~+NjbbCI=D8vNGmH~N(G!;0lO>U zPz5|%0WXM-t}9)no=ON*!h%XTtrB`G;hsu(LUefjh>P^UD&c=CVR98Lt%9?w;LBC; zEz$9Hql@&pD)?m;yj2A=s$qRKTu}|TRtuzCT%`Y84Nq3XE7edj5l)#12PeW+69v+3 zF4B7^!h;jx`HAqSi6Bpcy_3M0B#`cM3*scWeiD3p68vHkcqYTClVQ(ffpqs#X8VE3 z<2&0=>R0zE@pwy{-W%6rmfLA+&cAx{Xy<%~x4$1PZ?5@xl+4XdF&EZjW zcsw-tGtKNz$Ik3qqh>ZwU#i0}yIwKWHW#z=ri_`{ZBxcqYUjCm-KJ=K>(erne30h!`LT2Q#%MWp zE%8Um>f{uwy-G~$QVmPd>M^@%)iq=0uDxb_`>{67oE}l5EtdbdVw!{fw}0#$UN+7g z)(qj${%@q&yLs&FeRrJMYe=zYZOpV-yDi-b+k3uclNyccTlBs}OdUw`J9+Au`CUA9 zoTtmiqcN<ROm86bgt|y*ahePzy_hf@NaCQ)^*;Eo>DER%B`S#4LG}vgA$4l2?-@ zZ(5eT+AMj~1!jxRtc7!Gp}Q6mwQ#r=E*BV|A>#e{TDVpyG&jpz=V!@l$dVTnUR-f= zE!b3c(xW^sD+nn;f-3L4$A7FrVi%RK~vq(hAzzV!WCKaT17coUI(k| z;56X{tAv97U3G9)9qg-v-a0ra5Uk1a)(zrYFRFvTez$_p3zf8Isbq7OywkJfZOxLm zU2ND5b#O}^+$l6{N0v%DvgCDU$=f5o{DC_7ZXG-(y!_1J4Oq|C*+vQHck%S}@1#+p zeR|qxF)%%8v~aTi*2((M!K|dEV&RN*mO8^Rb=)|^F?IZWhGXienVB?oI4wA1X1WDQ z>%_$~({WqdmSZ-VG21bl?3nGCO+Gby z&}=f>F`N8;cG7I(us&T*x9Ov@!+P??*E(50lAY$hBRkDKX-=}aPF?DpG{KkV2nav! zWR=znS)1$AS(n$RT`l}StcNG+;ScptHWwP^<_b^|cx^7cITvc?!AbLA`#iX99{gq= z$n$eXo>)5{+UG;pe7JZ%+$fSvaFOg@0B0|NLkr;A1#s^Ifu!8k$Vda6-vF04z%32% za0Ao?p)&|q1_km;7x`U5xHkyT1mV>nlr=)65pHUPUp5NlRj%Fiw;RE`5auj|)eB+o zLb!P${Cc54I@4{hSOkGZuwW6aUj*kag1Z*M%ZmikSuWDjCa7wHP!nuvg03cbs|l7h z3#7AMq@Yo7?X$2Iogt;pPlEp5P*H*%tD`8qIENg{btpdps7s(%6;hk2Py$V*Z zg1xH*l9OB{*R6<KpH=@WN_%YqdafvWvvO2FljJqBXF24XA4bl2cqHO>5z#wXka~ z#Mi=S)(Rv`-9dZSL3kZpv<{A}gNN1$B+FbRpIHxAt%tkU!;ja)E9(W4LUNQ4e;9y;M)lDMmTjNT(uE?yb;RU1@hId1}|!d zCGBuVJLv6jg-Ej2MbfefmTrRGo50uvS8ftW*15It7C3tg9NGfcZh?EZ2qf!WB=>EF zhql5mx58UnVd^%4q|HTgC1d>fI z!2fUtynY5$?}FxCuz438*#$4`g1QcYe5Z@NwFB06z_}f8VF!G%177KXg`J>w3gl)HD>~u!PI$BvUhIU$yCJq4Zr?4CpXDNdY&Sf$8~(5xO7_6~J#c6bJg^7;XOBR> zH_tvq*$%b`a`+H^BTomFEmNQxGdHL)Lo)|#J4@1`$g0dbq`ad)rY0OqaIi5nJWciGAb8@@(o94b%F~t%n;!d0FaLgK&rkxfFLqDQV>?<0AWeC(V0YHX-gud zXN;Efb74_vVVE*X95&^^p>HHOBn|p4y5+dseBhK8Lp4n;)@`&H1F>*VLXT+|+Qw2# zLED2cB}O(~$R-ONI3={hif(Bu@%JZ|+jC5Q7c&Yln-6G8vz6|!MeY5L?P!(Ot{ifD zmK$0df#d>WSa4gctkw0y;57(VeZhxy;X+*Hio^QJe5}PxeRn*rCfXDuwF*0+MElfG z#^VA9u@X(G$AWjz zJ=Xuu9yOLee$vt+Tjq~gGK{TZKeG#mv<_2AnA-++ZysFvAIb>EnR?cy$GWucR^c>D zOzBly<@%$XJ{b&jdN>sea+T8%*q)R9E3LsdI_RJ)Q5HekVHZ^e%N$@g!zvfZ_ev?<$lGh1ugqN)<> ziw{}hY`l)@E-?R9XF(N#PG^bJn*B8 zuq4{YG9t$frd;7&zn&j~9A1eeaXKcgGj2eM>rN4+Vq5aoSV4D2h3$z!L%JW5^94SOzjP)9yA``P>yYQW`i@=meNJ}xY4U$ z(aiSr#SylrL+VM;ef^g8r$t)j`ksvGv}xF4)`^(yS(hWpLo=3!JW3Txa&ac?b@8~} z?0VNb3cOMpLzH#Tt>YmBspERq-4Ly^ZOQ2kWt9d)RTANz9dR|5gx+YC%|xI2eh{4< zr#o_zx|Az5)gMn%GBbyiym-7wNea88NJ(EftQtnEeDv^OnSU)Ua=$7Ys%f{_5(#-< zpE1xR8@iPdQDRO2Wc5m_`Vb&V6$&!soUvKX~le}3zzt1q` zekEqw7xJm${f>M!$^AWQLX|hmVI`JQQpq8{V_Qhxnb7ws`=Yk&Bvh-*6?va(g@};* zmE?VaioAW}Y3n*S@7b7Kas;>UNOfYyrGP_PY`uS^0-m~5E~1C~?8`N6Nlstlv@RMA z)`tuwzAZJT8bj7igJzF?gXZF6lFMTpc*Bp5?fOUu$9pZ;W3g4=k(XGAk%+Y=X?+PM zWjlGUKjU%Guzi*fn$|gEd68T{>>=?Uvo~5`FVk#Ti60FjR)0TESY?TXF(SkY^D&g` zu8b33mU#s81Nmi{9ZGSe=F6+MWpl4}O|9Fjt1p`L=xXV0Nv&b5(fGa=$I&{O=eXAK z1LtI(4z0T>8CthP?^Scg)|G?St;>3!X{lSQ{c?+Qb#$XU@NV(KjKI6z#lSLPZLUz( z$@9*qlRoc!De3dh#g70#1bzb)OVBLA1rl75BdT>kD!x;KZ%ObI3I0cdIuD%dfrDb$ zW_L*WWQ-E)&Zsn+$9EXX`#fU~$nuL(Gy7hLk$iL1%x1p|!86CY+|WBzR()9lGZc$~ z8J2iqxfj+6l>~+l%&^rvG!VmO-t++Yp4S-wZ+pR;x_NB15BB=tZXf(Xycoe9UAf$f z-Ry@Ye%R&*%@5!8!=J>M&aOlM#dSp>r!Fb`Xb~JJf~Sh0G)G|OoIcFQ{TaOX*r)sW zJ|XoUgK^xSaVo@g+%!z2`_vhqkTv;+!hMFR_lDw%*)z<|5%S#`Q*N;})wTmWfwO@w z;DS`_`>a!NGI+{m&J_GToX93`<3u)DF&Mwzkeom))h4;_;0SH^WGTTY42O)^fhlk{m1TinXKVgz7xAc+5)@W1N|+ z$z*clL8Ui77y|iAV`uMMqh&8&%gb5A@V85iMbyOLV(X7%=W|wIoL81Z`Z29qQ~b3C z#>`)M)cobCAML?tN2NU4VEp*lxx8h(xva_LQW%X-jGDhOL~DF40B;6{&Z|XPDiDJ- zmU>DcPy!Q6U}gyfOW@=Z_(%zCE`iPxIIm>r3rfXSoL>TQq0rD!s}CE?=-k(8vJCMKt9DC@oyTuISp!R;iOvFUJJL?!f$Fpt`o>> zUF2))puG+vb?}KgxV{cvtAoYUVgK}8w-p7hm=2$t4tGt5$EU;Zro-A9@Ua>2z>Hi` z@%+!vfEQ-KJ2PPBOjtQHXIwgU7VMt|SImOjXThVha@~s**f$$`X2Yek;ilQ}o!L+; z!)?6Mim*>MaX<4;x z|NJELiQbU&Bv>EO4%9cLT@nflglN<_hGRC;;e5sAil!YkQY?qkPYWysB6TM7vvWwn zmHCi@@L&+KL~qFc6|Cfp>cK&6X#EIUq0lT{&}sdsU$=el zd7T^2>a1_HJT+S7dU=tYp)l-1jpG+MEf+?g%2VL9P6wu=!BbEOnnw?TbSU2lxVnGb zM#%getoP?dJL>5eEw*;l4K=w|7@Jp8#VG9^ISwOB?YSIjwk9{hhQ|8)K=~+**0Cl> zT#6i~BrT?;u|0w22+%y?@s+n@Ss&Cmj)n7t&0#|Kl;z{RMLep6)pe;!(>lnKT1cmy z;jP71t6ZO6T_-)e!`25_Yr3TUITmt0M3P0~3BlD{J)p+SOn+}BswT|jV{6?H>3`(fPse+D}Z{*e)8a4_=-O-cv0Tn`y3O_2$J3MP8^9{0WPPm*?q@|KLX*|G~hu zUihjP9`eHTUU;`OkdtDgHIy&pdun{Qr;XtFo-H006+b B3Vi?o From 2f827800438e4f386f0ea08981ce97372f8fd974 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Mon, 15 Apr 2024 07:16:32 +0300 Subject: [PATCH 22/33] refactor: Address GH comments --- scripts/metadataProvider/createPseudoModulesInfo.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index 45aede03..cfdede54 100644 --- a/scripts/metadataProvider/createPseudoModulesInfo.ts +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -15,11 +15,11 @@ const RAW_API_JSON_FILES_FOLDER = "tmp/apiJson"; async function fetchAndExtractAPIJsons(url: string) { const response = await fetch(url); if (!response.ok) { - throw new Error(`unexpected response ${response.statusText}`); + throw new Error(`Unexpected response ${response.statusText}`); } if (response.body && response.body instanceof ReadableStream) { - const zipFileName: string = url.split("/").pop() ?? ""; + const zipFileName: string = url.split("/").pop() as string; const zipFile = path.resolve(RAW_API_JSON_FILES_FOLDER, zipFileName); await mkdir(path.resolve(RAW_API_JSON_FILES_FOLDER), {recursive: true}); @@ -44,10 +44,10 @@ async function fetchAndExtractAPIJsons(url: string) { await zip.close(); } - // Cleanup the ZIP file, so that the folder will contain only JSON files + // Remove the ZIP file, so that the folder will contain only JSON files await unlink(zipFile); } else { - throw new Error("Malformed response"); + throw new Error(`The request to "${url}" returned a malformed response that cannot be parsed.`); } } @@ -86,7 +86,7 @@ async function transformFiles(sapui5Version: string) { const groupedEnums = Object.keys(enums) .reduce((acc: Record, enumKey: string) => { - // Filter only real pseudo modules i.e. defined within library.js files + // Filter only real pseudo modules i.e. defined within library.js files if (!pseudoModuleNames[enumKey]) { return acc; } @@ -205,7 +205,7 @@ try { let sapui5Version: string | null | undefined = process.argv[3]; if (!url) { - throw new Error("second argument \"url\" is missing"); + throw new Error("Second argument \"url\" is missing"); } if (!sapui5Version) { From 91821b6627a7b6b5d0e00cefe9040b5c82262eb7 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Mon, 15 Apr 2024 10:35:48 +0300 Subject: [PATCH 23/33] refactor: Address GH comments --- src/linter/ui5Types/SourceFileLinter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/linter/ui5Types/SourceFileLinter.ts b/src/linter/ui5Types/SourceFileLinter.ts index 34772fe3..a638163a 100644 --- a/src/linter/ui5Types/SourceFileLinter.ts +++ b/src/linter/ui5Types/SourceFileLinter.ts @@ -440,7 +440,7 @@ export default class SourceFileLinter { this.#reporter.addMessage({ node: moduleSpecifierNode, severity: LintMessageSeverity.Error, - ruleId: "ui5-linter-no-deprecated-api", + ruleId: "ui5-linter-no-pseudo-modules", message: `Import of pseudo module ` + `'${moduleSpecifierNode.text}'`, @@ -478,7 +478,7 @@ export default class SourceFileLinter { } isSymbolOfPseudoType(symbol: ts.Symbol | undefined) { - return symbol?.valueDeclaration?.getSourceFile().fileName.includes("/types/@ui5/linter/overrides/library/"); + return symbol?.valueDeclaration?.getSourceFile().fileName.startsWith("/types/@ui5/linter/overrides/library/"); } findClassOrInterface(node: ts.Node): ts.Type | undefined { From f74051a38d1507ac7f14508e3033289deab47b8f Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Mon, 15 Apr 2024 10:59:18 +0300 Subject: [PATCH 24/33] refactor: Update texts --- scripts/metadataProvider/createPseudoModulesInfo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index cfdede54..9df34a1c 100644 --- a/scripts/metadataProvider/createPseudoModulesInfo.ts +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -205,7 +205,7 @@ try { let sapui5Version: string | null | undefined = process.argv[3]; if (!url) { - throw new Error("Second argument \"url\" is missing"); + throw new Error("First argument \"url\" is missing"); } if (!sapui5Version) { From 87177eaf919ec33a1826ea3a799259667b6d18e4 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Mon, 15 Apr 2024 11:05:06 +0300 Subject: [PATCH 25/33] fix: Merge conflicts --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index df718aa5..84f7e844 100644 --- a/package-lock.json +++ b/package-lock.json @@ -54,7 +54,7 @@ "semver": "^7.6.0", "sinon": "^17.0.1", "tsx": "^4.7.2", - "typescript-eslint": "^7.5.0" + "typescript-eslint": "^7.6.0" }, "engines": { "node": "^18.14.2 || ^20.11.0 || >=21.2.0", diff --git a/package.json b/package.json index f2f4e0fa..5d0c86bf 100644 --- a/package.json +++ b/package.json @@ -102,6 +102,6 @@ "semver": "^7.6.0", "sinon": "^17.0.1", "tsx": "^4.7.2", - "typescript-eslint": "^7.5.0" + "typescript-eslint": "^7.6.0" } } From 417bd2ca7037a42e120509a5ccf728c6709ddf03 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Mon, 15 Apr 2024 11:27:02 +0300 Subject: [PATCH 26/33] feat: Add section for the scripts in README --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index a22e15e3..acf59634 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,22 @@ npm install --global @ui5/linter npm install --save-dev @ui5/linter ``` +## Preparation + +The UI5 Linter requires metadata to accurately identify certain issues within the codebase. While the absence of this metadata does not hinder the linter's basic functionality, it may result in incomplete findings. + +The extracted and generated metadata is stored within the repository under the `/resources` folder. This metadata plays a crucial role in enhancing the accuracy of the linter's analysis. + +Regular updates to the metadata are necessary to ensure that the data is compatible with the corresponding UI5 type definitions. + +```sh +npm run update-pseudo-modules-info -- $DOMAIN_NAME/com/sap/ui5/dist/sapui5-sdk-dist/1.120.12/sapui5-sdk-dist-1.120.12-api-jsons.zip 1.120.12 +``` + +```sh +npm run update-semantic-model-info -- $URL 1.120.12 +``` + ## Usage Run the `ui5lint` command in your project root folder From 9fc911a43bfde0f3b947ed8a3a517a6570c7005b Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Mon, 15 Apr 2024 11:32:31 +0300 Subject: [PATCH 27/33] fix: Update test snapshots & eslint findings --- .../createPseudoModulesInfo.ts | 2 +- test/lib/linter/snapshots/linter.ts.md | 4 ++-- test/lib/linter/snapshots/linter.ts.snap | Bin 7834 -> 7850 bytes .../xmlTemplate/snapshots/transpiler.ts.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index 9df34a1c..0d13c986 100644 --- a/scripts/metadataProvider/createPseudoModulesInfo.ts +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -19,7 +19,7 @@ async function fetchAndExtractAPIJsons(url: string) { } if (response.body && response.body instanceof ReadableStream) { - const zipFileName: string = url.split("/").pop() as string; + const zipFileName: string = url.split("/").pop()!; const zipFile = path.resolve(RAW_API_JSON_FILES_FOLDER, zipFileName); await mkdir(path.resolve(RAW_API_JSON_FILES_FOLDER), {recursive: true}); diff --git a/test/lib/linter/snapshots/linter.ts.md b/test/lib/linter/snapshots/linter.ts.md index 507a1094..d333f62e 100644 --- a/test/lib/linter/snapshots/linter.ts.md +++ b/test/lib/linter/snapshots/linter.ts.md @@ -293,7 +293,7 @@ Generated by [AVA](https://avajs.dev). line: 1, message: 'Import of pseudo module \'sap/m/BackgroundDesign\'', messageDetails: 'Import library and reuse the enum from there', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'ui5-linter-no-pseudo-modules', severity: 2, }, { @@ -766,7 +766,7 @@ Generated by [AVA](https://avajs.dev). line: 1, message: 'Import of pseudo module \'sap/m/BackgroundDesign\'', messageDetails: 'Import library and reuse the enum from there', - ruleId: 'ui5-linter-no-deprecated-api', + ruleId: 'ui5-linter-no-pseudo-modules', severity: 2, }, { diff --git a/test/lib/linter/snapshots/linter.ts.snap b/test/lib/linter/snapshots/linter.ts.snap index 671489ea830036f212199ef4e38611dfe0d18c81..8341c582af937663412a1a2b99f651be9fb6b49e 100644 GIT binary patch delta 1808 zcmV+r2k-crJ*qu2K~_N^Q*L2!b7*gLAa*kf0{~D&$RVrFH=QGX!DX>eDM8U|ukun}UOm}g|Vl}+hZifbhAq@Sr6zv+G8XIg|IEgk{RMRb0FA$>!U zhV)izSF7+Kwu^=8wbPcz>qj@dgXsO83yLTWA}H4s36x!GI&#!GsdzM&4f0?^5O(E` zP?w!L6Ex;d^0PP+1_pmanhAz+Rx-b@`AL6P@*VcQKemV!)$6CfER$#humiXd=mZXA?vluBDy5?jUFn!gPvC?G zdJ88s(DMHKAPmWgWMmmcmLLbE66=zs-$_uJxnZfp1J`-r0nvXpa+_7pzg_%09(dg< z>V*|vur8Lns^Eo8C7;V&#Pos}{^*5TADridq<9&VD?CuijXt>92VeHVzx!-HSnh{i z;+!|xMVj)%VLyD@50CocCw`b2faT(x=e{7}!T=}%_(%Zm2*5W2@RtBg73aKJ$1x#S zmW*w@#py;e(%gTeXz}JtjOO%M*`Qb}k51^@y(J?y9gQ(&a&j({>klbCiT;q{e>ZaW zzBF9+TxP~_Bfk#9-!3&CRg?Wj@f#!O)3VCO^b24>KW0^HhQF5Ji1~{Qo4+FUqdgey zD6hvGj2{^}mv@gfmy>h36h`B7!{%=U(NA9w!hZz^&Z~cc6ZoVn^OQoc6vmgrj8X`d z!WpG-b}6)#LPsfFTsrUtWnwEXDTRbkC|^L+DdLCarKNCLDO@E~GW7(alzMI~g`0&6 z#Hgg+drIMfQg~P>D2uf{UJ73q3e6cjP~^8tv#}V{;Ss%MSqo-qnPb6dWsU`NOPOQA ze6!54U_5{2PAtYHzsZZF(i7D&fXTI93VY6fZGy1xobquYviz-|s2Wp_V29DOi!!_`Ncv+D#}`22YI*YWTx@p7VS7s-bwz{e-R-4o!63Gj+|DUmB~qW{i`aNk6DdLsN{B6ubh zik0ZMt`d1*5>-4QqIz>1w4t%J+z z;Fdag-3rz_4fanH$m?9>S5JfMron^L;Mr;L%W1G?I(&FKe0h4IkdpqFr^An?!(XSv zj2WXTv!GUny)s-c3*>W) z9FBlj%i)p<|unscytU^qPPeq(WkB}9z&e8=P){pwN+s?nZWBqv@ z^$nIsO^aMFFOqW;l{s!svgaMGA1&;lOk}ct#b1rr|>%9WFKkuI?YR5i+j; z>%B$Mj(Rqhj;$SaLrvQXBl8}s8s>gSfkWfchC&WcThfbQ17kA2r+mqV>i|_Cen^3> zBrUFGu|0+65YRm3nOC&qbMMu7o1^EkTwn{`Q(la7F^QNGQP*ZBP3yo>#*lx`99po9 ztrodHYh9;3@FUg-SWC8~{W%tPK19+*5=p@&Up=VC&0N2HC8j3L^kZw>q$3rE8ZvJ8 zN6L;ggfndm*^{{yYG8CHanXe%w=YD=AEgi8Gz#g?a6vPosr-Ub@)%lK(BU?vWv*IH z2T<&flX&tD?5yiU^YL9DWXpf`!H%2RX-BRw5=umMdp`tbj;3R1K!QdIq7r<#uw&>Q z65K1nQxg0#;{>t610NKfAN;QM#PlB9$A;@GS)>i`Db^O7B~zWvTkNjwNMFBfH}3Y4 z`+`0?*1n)q?ft{!arn~cIDih>=hJm{B3=l1p+@leEE!y$r#X(D7kF$P$IefC;dU>4 z)eA3s;ZI&z?SmsectrG%3A)zFzvqKjeDG%)>Vg0L%hgu3k1nV>OOUb93J z1_pnlHL2$JH9zUkO1{H*oZKhb-X+5Ej-5pt4YR3nkeeei137FNN#RJ!F!i2rLNU7s zxrs%7D91D^u}q>3zz*O-pc6Qdxl1Cisg#aBbfse|J%JM%=q;SkK+F5@gD@l~l96Q) zS%MstN~}wkekVa?=7yyX4_xPg2SnS*ZB~Ch|90{3c;I!bs25gv!Ma%Ps)83Xm3%I9 z5z`A^_@ftUeQ=%+lHz4duJAx5H~QdaAAH#d|L(K-V7VW5iF4j$7ir25hyCzrKRoJ( zpZH;B0G5k$p8JA?3j?48;3EOJBLLqBz+VC|Rh;u?9mj-RSu(cq7N;A@NOO;(#hZUG zF`Cn3WrJd^JUXFo_m+&F>&|J}&h`_gdPbD0^#jr=+Yf4kIp zR8969#czz9Ps=JB(=UJl{g_p)8U9*=BjztMZ2pSWkM>}+qr4t(Fn(m@T;4s_Tu#pA zQW%ZT4V%9aL_d8!2>%rvIIjjy;FEu@%u@=%QW#$fGfE*;3TKqU*`?4{3LT|zap}Mp zl!>jlq!bcDp?m>Nr-&bxmzKh1rErx{$?0dIVIN#gpqE}Z8Ec!1_(YM5+iz~Btx9OFTs)QRW z;aDYnQ@q5;6)4fazX}di!F5&eU==(oUS8z7l*(^b!==@5Q#CwN4c`$jEvj&l9H@cb z8aP@557)p8;$=ndfQXlmgDZc>!M)?)sd4ZV@sc7}Kt%s1$HO(_;q&9+U&q6*#LJ1Q zT_hi#03V+KcTa#PCcrD=r9`f{iT*n$!hI9r>51@*iQt)3C|081x=Q4MN$~6>cx@8+ zCl|WD%m10l@Y%`m^~vz_$-oqWWP&SZ*3l_&>lAo&3cNH0{x}8Bp9+6Rr^1U<3*Gt^ ze0?hX*HoBX3#Zq@wpzHi7GA9dxlSOjbw}K+11olJv<@z-gInt0bt_o!G}u2)Ag^tp>G0v{@a5@+LQ48yo(?~n4u72vGiJbw8HIv6`qi0W1zEj% zCj9+Ocxq;$V2;6kv!H)_7F;n4?wkdW&4OAP_R4U*ERfGFa#S+$qd)gsc2$9I*$)+A z8?{qQsI!hOHSU>95Zae?tj`int)HhfjH7#S1rCi%8wxo*ZAmYJ4UEb7p7JFdt^-to_#p+hlC-#%#r71MLqPMCXI{~c z&%IaUZH}JDa)B*$PkAxU#Ux@%L|vPiG_3ioTU@h5_ z_UBmG`4CALNhAfAeD$CjH*@{+m6)0|(~qrjla5pvYRI_VA1OQ15YDtMWKZT+sDaU) z#6=g5+`bScf0RCW(}+0pP%)L{$*Utr5k7JI i!4+qF2!}k@DW=+?^{8#}M9MsQQT+dxyZW~Lvj716&~Kdp diff --git a/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.md b/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.md index 614d94ea..9882dca2 100644 --- a/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.md +++ b/test/lib/linter/xmlTemplate/snapshots/transpiler.ts.md @@ -1,4 +1,4 @@ -# Snapshot report for `test/lib/linter/xml/transpiler.ts` +# Snapshot report for `test/lib/linter/xmlTemplate/transpiler.ts` The actual snapshot is saved in `transpiler.ts.snap`. From 10677947f5edcc2aa7ad892e17225c6e1b81fbef Mon Sep 17 00:00:00 2001 From: Matthias Osswald Date: Tue, 26 Mar 2024 09:38:09 +0100 Subject: [PATCH 28/33] test: Add fixtures for pseudo modules --- .../rules/NoPseudoModules/NoPseudoModules.js | 6 ++ .../NoPseudoModules_negative.js | 6 ++ test/lib/linter/rules/NoPseudoModules.ts | 10 ++++ .../rules/snapshots/NoPseudoModules.ts.md | 54 ++++++++++++++++++ .../rules/snapshots/NoPseudoModules.ts.snap | Bin 0 -> 657 bytes 5 files changed, 76 insertions(+) create mode 100644 test/fixtures/linter/rules/NoPseudoModules/NoPseudoModules.js create mode 100644 test/fixtures/linter/rules/NoPseudoModules/NoPseudoModules_negative.js create mode 100644 test/lib/linter/rules/NoPseudoModules.ts create mode 100644 test/lib/linter/rules/snapshots/NoPseudoModules.ts.md create mode 100644 test/lib/linter/rules/snapshots/NoPseudoModules.ts.snap diff --git a/test/fixtures/linter/rules/NoPseudoModules/NoPseudoModules.js b/test/fixtures/linter/rules/NoPseudoModules/NoPseudoModules.js new file mode 100644 index 00000000..b0622383 --- /dev/null +++ b/test/fixtures/linter/rules/NoPseudoModules/NoPseudoModules.js @@ -0,0 +1,6 @@ +sap.ui.define([ + "sap/ui/core/BarColor", // TODO detect: BarColor is defined in sap/ui/core/library + "sap/m/ListSeparators" // TODO detect: ListSeparators is defined in sap/m/library +], function() { + +}); diff --git a/test/fixtures/linter/rules/NoPseudoModules/NoPseudoModules_negative.js b/test/fixtures/linter/rules/NoPseudoModules/NoPseudoModules_negative.js new file mode 100644 index 00000000..b7f0fc79 --- /dev/null +++ b/test/fixtures/linter/rules/NoPseudoModules/NoPseudoModules_negative.js @@ -0,0 +1,6 @@ +sap.ui.define([ + "sap/base/i18n/date/CalendarType", // OK: CalendarType is defined in sap/base/i18n/date/CalendarType + "sap/m/AvatarColor" // OK: AvatarColor is defined in sap/m/AvatarColor +], function() { + +}); diff --git a/test/lib/linter/rules/NoPseudoModules.ts b/test/lib/linter/rules/NoPseudoModules.ts new file mode 100644 index 00000000..57b18a4f --- /dev/null +++ b/test/lib/linter/rules/NoPseudoModules.ts @@ -0,0 +1,10 @@ +import path from "node:path"; +import {fileURLToPath} from "node:url"; +import {createTestsForFixtures} from "../_linterHelper.js"; + +const filePath = fileURLToPath(import.meta.url); +const __dirname = path.dirname(filePath); +const fileName = path.basename(filePath, ".ts"); +const fixturesPath = path.join(__dirname, "..", "..", "..", "fixtures", "linter", "rules", fileName); + +createTestsForFixtures(fixturesPath); diff --git a/test/lib/linter/rules/snapshots/NoPseudoModules.ts.md b/test/lib/linter/rules/snapshots/NoPseudoModules.ts.md new file mode 100644 index 00000000..0b645c4f --- /dev/null +++ b/test/lib/linter/rules/snapshots/NoPseudoModules.ts.md @@ -0,0 +1,54 @@ +# Snapshot report for `test/lib/linter/rules/NoPseudoModules.ts` + +The actual snapshot is saved in `NoPseudoModules.ts.snap`. + +Generated by [AVA](https://avajs.dev). + +## General: NoPseudoModules.js + +> Snapshot 1 + + [ + { + coverageInfo: [], + errorCount: 2, + fatalErrorCount: 0, + filePath: 'NoPseudoModules.js', + messages: [ + { + column: 2, + fatal: undefined, + line: 2, + message: 'Import of pseudo module \'sap/ui/core/BarColor\'', + messageDetails: 'Import library and reuse the enum from there', + ruleId: 'ui5-linter-no-pseudo-modules', + severity: 2, + }, + { + column: 2, + fatal: undefined, + line: 3, + message: 'Import of pseudo module \'sap/m/ListSeparators\'', + messageDetails: 'Import library and reuse the enum from there', + ruleId: 'ui5-linter-no-pseudo-modules', + severity: 2, + }, + ], + warningCount: 0, + }, + ] + +## General: NoPseudoModules_negative.js + +> Snapshot 1 + + [ + { + coverageInfo: [], + errorCount: 0, + fatalErrorCount: 0, + filePath: 'NoPseudoModules_negative.js', + messages: [], + warningCount: 0, + }, + ] diff --git a/test/lib/linter/rules/snapshots/NoPseudoModules.ts.snap b/test/lib/linter/rules/snapshots/NoPseudoModules.ts.snap new file mode 100644 index 0000000000000000000000000000000000000000..7c19573fcf8e1f2eec3b7d8f169fe6f1a9d4779a GIT binary patch literal 657 zcmV;C0&e|5RzVzx&?dQ?)~;NuvAMa&xHK4v zc7~-a7axlV00000000Bkls#_~K@f)DxjWmZeAyw0CJ0@DlqQb(5CS0@2na>uBT__x zDA2|p+Z*n7&F-E<3JNHYC=dk=5)x9VXsBqRpyW4D0pbtv3s5dTz!!{AAO%Y_G<;dCT5^!A`oE@629g#YV)ZqbqvZa@x|Dbt{e8F05H;mFU^7cJ|(8t0kPc z9(?ps!PZA1dGi2{0hpokG?mU8BQ}WgRkd0Lje!U>PIM+eR9Odb7r-+BZvlJ;aDad# zG-y=5y1K?qN8a~ktyTj~g36#Nq7?%6lMgCQ(?nDE*@zA=skR1HF+*OyH^#)l93dhSkl&cgll$$zE6E#AYQl?85RVE92K`a%I zI9C}!&*O!qq^FIGbUW&0f<;NDSTtuvuaU||QyXra6J}Az+RPQYO%1x8XD4KA^Yr|n zX)ITbFdLCjt;ld{IdWZ&SfxqSHagjg3>Tkm(wLW8d3Z3DC+e|Oj!j+Z`u2?V?HP+d zPH4H$M!Jn3Z{IVn{$FuT8keMXE8G)CIBo2I#x*y_!=sGxrs9rpvd_PCNP6;59r6u; rPXG=PaOzJT^2Tl*vS@v~G|1WC5X%N!-y5eKX^!6jqok)B_67g|fUquK literal 0 HcmV?d00001 From b9ea00ea5ec74bf7163bf4cece66de3d3f769da8 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Tue, 16 Apr 2024 08:50:07 +0300 Subject: [PATCH 29/33] refactor: Extract scripts' common functionality into a helper module --- .../metadataProvider/createMetadataInfo.ts | 24 +++--- .../createPseudoModulesInfo.ts | 81 ++----------------- scripts/metadataProvider/helpers.ts | 78 ++++++++++++++++++ 3 files changed, 93 insertions(+), 90 deletions(-) create mode 100644 scripts/metadataProvider/helpers.ts diff --git a/scripts/metadataProvider/createMetadataInfo.ts b/scripts/metadataProvider/createMetadataInfo.ts index a73463f5..c43ba47c 100644 --- a/scripts/metadataProvider/createMetadataInfo.ts +++ b/scripts/metadataProvider/createMetadataInfo.ts @@ -1,5 +1,7 @@ import {writeFile} from "node:fs/promises"; import MetadataProvider from "./MetadataProvider.js"; +import path from "node:path"; +import {fetchAndExtractAPIJsons, handleCli, cleanup, RAW_API_JSON_FILES_FOLDER} from "./helpers.js"; import { forEachSymbol, @@ -33,17 +35,11 @@ async function main(apiJsonsRoot: string, sapui5Version: string) { ); } -try { - const apiJsonsRoot = process.argv[2]; - if (!apiJsonsRoot) { - throw new Error("first argument 'apiJsonsRoot' is missing"); - } - const sapui5Version = process.argv[3]; - if (!sapui5Version) { - throw new Error("second argument 'sapui5Version' is missing"); - } - await main(apiJsonsRoot, sapui5Version); -} catch (err) { - process.stderr.write(String(err)); - process.exit(1); -} +// Entrypoint +await handleCli(async (url, sapui5Version) => { + await fetchAndExtractAPIJsons(url); + + await main(path.resolve(RAW_API_JSON_FILES_FOLDER), sapui5Version); + + await cleanup(); +}); diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index 0d13c986..5e652d7b 100644 --- a/scripts/metadataProvider/createPseudoModulesInfo.ts +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -1,55 +1,12 @@ import {createRequire} from "module"; -import {createWriteStream} from "node:fs"; -import {writeFile, readdir, mkdir, unlink} from "node:fs/promises"; -import https from "node:https"; +import {writeFile, readdir} from "node:fs/promises"; import path from "node:path"; -import {pipeline} from "node:stream/promises"; -import yauzl from "yauzl-promise"; import MetadataProvider from "./MetadataProvider.js"; +import {fetchAndExtractAPIJsons, handleCli, cleanup, RAW_API_JSON_FILES_FOLDER} from "./helpers.js"; import type {UI5Enum, UI5EnumValue} from "@ui5-language-assistant/semantic-model-types"; const require = createRequire(import.meta.url); -const RAW_API_JSON_FILES_FOLDER = "tmp/apiJson"; - -async function fetchAndExtractAPIJsons(url: string) { - const response = await fetch(url); - if (!response.ok) { - throw new Error(`Unexpected response ${response.statusText}`); - } - - if (response.body && response.body instanceof ReadableStream) { - const zipFileName: string = url.split("/").pop()!; - const zipFile = path.resolve(RAW_API_JSON_FILES_FOLDER, zipFileName); - await mkdir(path.resolve(RAW_API_JSON_FILES_FOLDER), {recursive: true}); - - await new Promise((resolve) => { - https.get(url, (res) => { - resolve(pipeline(res, createWriteStream(zipFile))); - }); - }); - - const zip = await yauzl.open(zipFile); - try { - for await (const entry of zip) { - if (entry.filename.endsWith("/")) { - await mkdir(path.resolve(RAW_API_JSON_FILES_FOLDER, entry.filename)); - } else { - const readEntry = await entry.openReadStream(); - const writeEntry = createWriteStream(path.resolve(RAW_API_JSON_FILES_FOLDER, entry.filename)); - await pipeline(readEntry, writeEntry); - } - } - } finally { - await zip.close(); - } - - // Remove the ZIP file, so that the folder will contain only JSON files - await unlink(zipFile); - } else { - throw new Error(`The request to "${url}" returned a malformed response that cannot be parsed.`); - } -} async function getPseudoModuleNames() { const apiJsonList = await readdir(RAW_API_JSON_FILES_FOLDER); @@ -186,39 +143,11 @@ async function addOverrides(enums: Record unlink(path.resolve(RAW_API_JSON_FILES_FOLDER, library)))); -} - -async function main(url: string, sapui5Version: string) { +// Entrypoint +await handleCli(async (url, sapui5Version) => { await fetchAndExtractAPIJsons(url); await transformFiles(sapui5Version); await cleanup(); -} - -try { - const url = process.argv[2]; - let sapui5Version: string | null | undefined = process.argv[3]; - - if (!url) { - throw new Error("First argument \"url\" is missing"); - } - - if (!sapui5Version) { - // Try to extract version from url - const versionMatch = url.match(/\/\d{1}\.\d{1,3}\.\d{1,3}\//gi); - sapui5Version = versionMatch?.[0].replaceAll("/", ""); - } - if (!sapui5Version) { - throw new Error("\"sapui5Version\" cannot be determined. Provide it as a second argument"); - } - - await main(url, sapui5Version); -} catch (err) { - process.stderr.write(String(err)); - process.exit(1); -} +}); diff --git a/scripts/metadataProvider/helpers.ts b/scripts/metadataProvider/helpers.ts new file mode 100644 index 00000000..0a102287 --- /dev/null +++ b/scripts/metadataProvider/helpers.ts @@ -0,0 +1,78 @@ +import {mkdir, unlink, readdir} from "node:fs/promises"; +import {createWriteStream} from "node:fs"; +import https from "node:https"; +import {pipeline} from "node:stream/promises"; +import path from "node:path"; +import yauzl from "yauzl-promise"; + +export const RAW_API_JSON_FILES_FOLDER = "tmp/apiJson"; + +export async function fetchAndExtractAPIJsons(url: string) { + const response = await fetch(url); + if (!response.ok) { + throw new Error(`Unexpected response ${response.statusText}`); + } + + if (response.body && response.body instanceof ReadableStream) { + const zipFileName: string = url.split("/").pop()!; + const zipFile = path.resolve(RAW_API_JSON_FILES_FOLDER, zipFileName); + await mkdir(path.resolve(RAW_API_JSON_FILES_FOLDER), {recursive: true}); + + await new Promise((resolve) => { + https.get(url, (res) => { + resolve(pipeline(res, createWriteStream(zipFile))); + }); + }); + + const zip = await yauzl.open(zipFile); + try { + for await (const entry of zip) { + if (entry.filename.endsWith("/")) { + await mkdir(path.resolve(RAW_API_JSON_FILES_FOLDER, entry.filename)); + } else { + const readEntry = await entry.openReadStream(); + const writeEntry = createWriteStream(path.resolve(RAW_API_JSON_FILES_FOLDER, entry.filename)); + await pipeline(readEntry, writeEntry); + } + } + } finally { + await zip.close(); + } + + // Remove the ZIP file, so that the folder will contain only JSON files + await unlink(zipFile); + } else { + throw new Error(`The request to "${url}" returned a malformed response and cannot be read.`); + } +} + +export async function cleanup() { + const apiJsonList = await readdir(RAW_API_JSON_FILES_FOLDER); + + await Promise.all(apiJsonList.map((library) => unlink(path.resolve(RAW_API_JSON_FILES_FOLDER, library)))); +} + +export async function handleCli(cb: (url: string, sapui5Version: string) => Promise) { + try { + const url = process.argv[2]; + let sapui5Version: string | null | undefined = process.argv[3]; + + if (!url) { + throw new Error("First argument \"url\" is missing"); + } + + if (!sapui5Version) { + // Try to extract version from url + const versionMatch = url.match(/\/\d{1}\.\d{1,3}\.\d{1,3}\//gi); + sapui5Version = versionMatch?.[0].replaceAll("/", ""); + } + if (!sapui5Version) { + throw new Error("\"sapui5Version\" cannot be determined. Provide it as a second argument"); + } + + await cb(url, sapui5Version); + } catch (err) { + process.stderr.write(String(err)); + process.exit(1); + } +} From 09abf36b2f8b476940d177e732007ec93e3f28df Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Tue, 16 Apr 2024 08:54:23 +0300 Subject: [PATCH 30/33] fix: Reposition metadata generation section in README --- README.md | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index acf59634..bfe59cc3 100644 --- a/README.md +++ b/README.md @@ -36,22 +36,6 @@ npm install --global @ui5/linter npm install --save-dev @ui5/linter ``` -## Preparation - -The UI5 Linter requires metadata to accurately identify certain issues within the codebase. While the absence of this metadata does not hinder the linter's basic functionality, it may result in incomplete findings. - -The extracted and generated metadata is stored within the repository under the `/resources` folder. This metadata plays a crucial role in enhancing the accuracy of the linter's analysis. - -Regular updates to the metadata are necessary to ensure that the data is compatible with the corresponding UI5 type definitions. - -```sh -npm run update-pseudo-modules-info -- $DOMAIN_NAME/com/sap/ui5/dist/sapui5-sdk-dist/1.120.12/sapui5-sdk-dist-1.120.12-api-jsons.zip 1.120.12 -``` - -```sh -npm run update-semantic-model-info -- $URL 1.120.12 -``` - ## Usage Run the `ui5lint` command in your project root folder @@ -101,6 +85,25 @@ Choose the output format. Currently, `stylish` (default) and `json` are supporte ui5lint --format json ``` +## Metadata generation + +**Note:** This section is intended to support UI5 Linter developers, but is not meant for end users of the linter! + +The UI5 Linter requires metadata to accurately identify certain issues within the codebase. While the absence of this metadata does not hinder the linter's basic functionality, it may result in incomplete findings. + +The extracted and generated metadata is stored within the repository under the `/resources` folder. This metadata plays a crucial role in enhancing the accuracy of the linter's analysis. + +Regular updates to the metadata are necessary to ensure that the data is compatible with the corresponding UI5 type definitions. + +```sh +npm run update-pseudo-modules-info -- $DOMAIN_NAME/com/sap/ui5/dist/sapui5-sdk-dist/1.120.12/sapui5-sdk-dist-1.120.12-api-jsons.zip 1.120.12 +``` + +```sh +npm run update-semantic-model-info -- $URL 1.120.12 +``` + + ## Support, Feedback, Contributing This project is open to feature requests/suggestions, bug reports etc. via [GitHub issues](https://github.com/SAP/ui5-linter/issues). Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our [Contribution Guidelines](CONTRIBUTING.md). From 3d775014a586a0a521934632921d8934d86596be Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Tue, 16 Apr 2024 08:54:47 +0300 Subject: [PATCH 31/33] fix: Typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bfe59cc3..360e3462 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ ui5lint --format json ## Metadata generation -**Note:** This section is intended to support UI5 Linter developers, but is not meant for end users of the linter! +**Note:** This section is intended to support UI5 Linter developers and is not meant for end users of the linter! The UI5 Linter requires metadata to accurately identify certain issues within the codebase. While the absence of this metadata does not hinder the linter's basic functionality, it may result in incomplete findings. From 3c9c0731be9ba59634f1f0a3016a735d8605e916 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Tue, 16 Apr 2024 08:59:14 +0300 Subject: [PATCH 32/33] fix: Update metadata generation docs with the correct CLI commands --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 360e3462..ac2ba664 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ npm run update-pseudo-modules-info -- $DOMAIN_NAME/com/sap/ui5/dist/sapui5-sdk-d ``` ```sh -npm run update-semantic-model-info -- $URL 1.120.12 +npm run update-semantic-model-info -- $DOMAIN_NAME/com/sap/ui5/dist/sapui5-sdk-dist/1.120.12/sapui5-sdk-dist-1.120.12-api-jsons.zip 1.120.12 ``` From 8604d810491858a2a7e5b199c3701c52d78c2a80 Mon Sep 17 00:00:00 2001 From: Matthias Osswald Date: Tue, 16 Apr 2024 09:06:43 +0200 Subject: [PATCH 33/33] test: Add DataType fixture (not covered yet) --- .../fixtures/linter/rules/NoPseudoModules/NoPseudoModules.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/fixtures/linter/rules/NoPseudoModules/NoPseudoModules.js b/test/fixtures/linter/rules/NoPseudoModules/NoPseudoModules.js index b0622383..9b7c92b0 100644 --- a/test/fixtures/linter/rules/NoPseudoModules/NoPseudoModules.js +++ b/test/fixtures/linter/rules/NoPseudoModules/NoPseudoModules.js @@ -1,6 +1,7 @@ sap.ui.define([ - "sap/ui/core/BarColor", // TODO detect: BarColor is defined in sap/ui/core/library - "sap/m/ListSeparators" // TODO detect: ListSeparators is defined in sap/m/library + "sap/ui/core/BarColor", // BarColor is defined in sap/ui/core/library + "sap/m/ListSeparators", // ListSeparators is defined in sap/m/library + "sap/ui/core/CSSSize" // TODO detect: CSSSize is defined in sap/ui/core/library ], function() { });