@ui5/webcomponents-base 2.0.0-rc.6 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +1 -4
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/UI5Element.d.ts +9 -8
  5. package/dist/UI5Element.js +111 -108
  6. package/dist/UI5Element.js.map +1 -1
  7. package/dist/UI5ElementMetadata.d.ts +6 -15
  8. package/dist/UI5ElementMetadata.js +3 -71
  9. package/dist/UI5ElementMetadata.js.map +1 -1
  10. package/dist/asset-registries/Icons.d.ts +1 -1
  11. package/dist/asset-registries/Icons.js.map +1 -1
  12. package/dist/converters/DOMReference.d.ts +5 -0
  13. package/dist/converters/DOMReference.js +13 -0
  14. package/dist/converters/DOMReference.js.map +1 -0
  15. package/dist/custom-elements-internal.json +15 -275
  16. package/dist/custom-elements.json +15 -269
  17. package/dist/decorators/property.js +1 -1
  18. package/dist/decorators/property.js.map +1 -1
  19. package/dist/delegate/ItemNavigation.d.ts +1 -1
  20. package/dist/delegate/ItemNavigation.js.map +1 -1
  21. package/dist/features/InputElementsFormSupport.d.ts +1 -1
  22. package/dist/features/InputElementsFormSupport.js.map +1 -1
  23. package/dist/features/OpenUI5Support.js +3 -0
  24. package/dist/features/OpenUI5Support.js.map +1 -1
  25. package/dist/generated/VersionInfo.js +3 -3
  26. package/dist/generated/VersionInfo.js.map +1 -1
  27. package/dist/prod/UI5Element.js +1 -1
  28. package/dist/prod/UI5Element.js.map +3 -3
  29. package/dist/prod/UI5ElementMetadata.js +1 -1
  30. package/dist/prod/UI5ElementMetadata.js.map +3 -3
  31. package/dist/prod/asset-registries/Icons.js +1 -1
  32. package/dist/prod/asset-registries/Icons.js.map +2 -2
  33. package/dist/prod/converters/DOMReference.js +2 -0
  34. package/dist/prod/converters/DOMReference.js.map +7 -0
  35. package/dist/prod/decorators/property.js +1 -1
  36. package/dist/prod/decorators/property.js.map +2 -2
  37. package/dist/prod/delegate/ItemNavigation.js.map +1 -1
  38. package/dist/prod/features/InputElementsFormSupport.js.map +1 -1
  39. package/dist/prod/features/OpenUI5Support.js +1 -1
  40. package/dist/prod/features/OpenUI5Support.js.map +2 -2
  41. package/dist/prod/generated/VersionInfo.js +1 -1
  42. package/dist/prod/generated/VersionInfo.js.map +2 -2
  43. package/dist/prod/util/AriaLabelHelper.js.map +1 -1
  44. package/dist/util/AriaLabelHelper.js.map +1 -1
  45. package/dist/util/getClassCopy.d.ts +5 -2
  46. package/package.json +3 -3
  47. package/dist/prod/types/CSSColor.js +0 -2
  48. package/dist/prod/types/CSSColor.js.map +0 -7
  49. package/dist/prod/types/CSSSize.js +0 -2
  50. package/dist/prod/types/CSSSize.js.map +0 -7
  51. package/dist/prod/types/DOMReference.js +0 -2
  52. package/dist/prod/types/DOMReference.js.map +0 -7
  53. package/dist/prod/types/DataType.js +0 -2
  54. package/dist/prod/types/DataType.js.map +0 -7
  55. package/dist/prod/types/Float.js +0 -2
  56. package/dist/prod/types/Float.js.map +0 -7
  57. package/dist/prod/types/Integer.js +0 -2
  58. package/dist/prod/types/Integer.js.map +0 -7
  59. package/dist/types/CSSColor.d.ts +0 -11
  60. package/dist/types/CSSColor.js +0 -14
  61. package/dist/types/CSSColor.js.map +0 -1
  62. package/dist/types/CSSSize.d.ts +0 -11
  63. package/dist/types/CSSSize.js +0 -14
  64. package/dist/types/CSSSize.js.map +0 -1
  65. package/dist/types/DOMReference.d.ts +0 -13
  66. package/dist/types/DOMReference.js +0 -21
  67. package/dist/types/DOMReference.js.map +0 -1
  68. package/dist/types/DataType.d.ts +0 -20
  69. package/dist/types/DataType.js +0 -39
  70. package/dist/types/DataType.js.map +0 -1
  71. package/dist/types/Float.d.ts +0 -14
  72. package/dist/types/Float.js +0 -18
  73. package/dist/types/Float.js.map +0 -1
  74. package/dist/types/Integer.d.ts +0 -14
  75. package/dist/types/Integer.js +0 -18
  76. package/dist/types/Integer.js.map +0 -1
@@ -1,21 +0,0 @@
1
- import DataType from "./DataType.js";
2
- /**
3
- * @class
4
- * DOM Element reference or ID.
5
- * **Note:** If an ID is passed, it is expected to be part of the same `document` element as the consuming component.
6
- *
7
- * @public
8
- */
9
- class DOMReference extends DataType {
10
- static isValid(value) {
11
- return (typeof value === "string" || value instanceof HTMLElement);
12
- }
13
- static propertyToAttribute(propertyValue) {
14
- if (propertyValue instanceof HTMLElement) {
15
- return null;
16
- }
17
- return propertyValue;
18
- }
19
- }
20
- export default DOMReference;
21
- //# sourceMappingURL=DOMReference.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DOMReference.js","sourceRoot":"","sources":["../../src/types/DOMReference.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC;;;;;;GAMG;AACH,MAAM,YAAa,SAAQ,QAAQ;IAClC,MAAM,CAAU,OAAO,CAAC,KAA2B;QAClD,OAAO,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,YAAY,WAAW,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,CAAU,mBAAmB,CAAC,aAAmC;QACtE,IAAI,aAAa,YAAY,WAAW,EAAE;YACzC,OAAO,IAAI,CAAC;SACZ;QAED,OAAO,aAAa,CAAC;IACtB,CAAC;CACD;AAED,eAAe,YAAY,CAAC","sourcesContent":["import DataType from \"./DataType.js\";\n\n/**\n * @class\n * DOM Element reference or ID.\n * **Note:** If an ID is passed, it is expected to be part of the same `document` element as the consuming component.\n *\n * @public\n */\nclass DOMReference extends DataType {\n\tstatic override isValid(value: string | HTMLElement) {\n\t\treturn (typeof value === \"string\" || value instanceof HTMLElement);\n\t}\n\n\tstatic override propertyToAttribute(propertyValue: string | HTMLElement) {\n\t\tif (propertyValue instanceof HTMLElement) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn propertyValue;\n\t}\n}\n\nexport default DOMReference;\n"]}
@@ -1,20 +0,0 @@
1
- import type { PropertyValue } from "../UI5ElementMetadata.js";
2
- /**
3
- * @class
4
- * Base class for all data types.
5
- *
6
- * @public
7
- */
8
- declare class DataType {
9
- /**
10
- * Checks if the value is valid for its data type.
11
- * @public
12
- */
13
- static isValid(value: any): boolean;
14
- static attributeToProperty(attributeValue: string | null): PropertyValue;
15
- static propertyToAttribute(propertyValue: PropertyValue): string | null;
16
- static valuesAreEqual(value1: any, value2: any): boolean;
17
- static generateTypeAccessors(types: Record<string, string>): void;
18
- static get isDataTypeClass(): boolean;
19
- }
20
- export default DataType;
@@ -1,39 +0,0 @@
1
- /**
2
- * @class
3
- * Base class for all data types.
4
- *
5
- * @public
6
- */
7
- class DataType {
8
- /**
9
- * Checks if the value is valid for its data type.
10
- * @public
11
- */
12
- // eslint-disable-next-line
13
- static isValid(value) {
14
- return false;
15
- }
16
- static attributeToProperty(attributeValue) {
17
- return attributeValue;
18
- }
19
- static propertyToAttribute(propertyValue) {
20
- return propertyValue === null ? null : String(propertyValue);
21
- }
22
- static valuesAreEqual(value1, value2) {
23
- return value1 === value2;
24
- }
25
- static generateTypeAccessors(types) {
26
- Object.keys(types).forEach(type => {
27
- Object.defineProperty(this, type, {
28
- get() {
29
- return types[type];
30
- },
31
- });
32
- });
33
- }
34
- static get isDataTypeClass() {
35
- return true;
36
- }
37
- }
38
- export default DataType;
39
- //# sourceMappingURL=DataType.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataType.js","sourceRoot":"","sources":["../../src/types/DataType.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,QAAQ;IACb;;;OAGG;IACH,2BAA2B;IAC3B,MAAM,CAAC,OAAO,CAAC,KAAU;QACxB,OAAO,KAAK,CAAC;IACd,CAAC;IAED,MAAM,CAAC,mBAAmB,CAAC,cAA6B;QACvD,OAAO,cAAc,CAAC;IACvB,CAAC;IAED,MAAM,CAAC,mBAAmB,CAAC,aAA4B;QACtD,OAAO,aAAa,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAC9D,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,MAAW,EAAE,MAAW;QAC7C,OAAO,MAAM,KAAK,MAAM,CAAC;IAC1B,CAAC;IAED,MAAM,CAAC,qBAAqB,CAAC,KAA6B;QACzD,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACjC,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE;gBACjC,GAAG;oBACF,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC;gBACpB,CAAC;aACD,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,eAAe;QACzB,OAAO,IAAI,CAAC;IACb,CAAC;CACD;AAED,eAAe,QAAQ,CAAC","sourcesContent":["import type { PropertyValue } from \"../UI5ElementMetadata.js\";\n\n/**\n * @class\n * Base class for all data types.\n *\n * @public\n */\nclass DataType {\n\t/**\n\t * Checks if the value is valid for its data type.\n \t * @public\n\t */\n\t// eslint-disable-next-line\n\tstatic isValid(value: any): boolean {\n\t\treturn false;\n\t}\n\n\tstatic attributeToProperty(attributeValue: string | null): PropertyValue {\n\t\treturn attributeValue;\n\t}\n\n\tstatic propertyToAttribute(propertyValue: PropertyValue): string | null {\n\t\treturn propertyValue === null ? null : String(propertyValue);\n\t}\n\n\tstatic valuesAreEqual(value1: any, value2: any) {\n\t\treturn value1 === value2;\n\t}\n\n\tstatic generateTypeAccessors(types: Record<string, string>) {\n\t\tObject.keys(types).forEach(type => {\n\t\t\tObject.defineProperty(this, type, {\n\t\t\t\tget() {\n\t\t\t\t\treturn types[type];\n\t\t\t\t},\n\t\t\t});\n\t\t});\n\t}\n\n\tstatic get isDataTypeClass() {\n\t\treturn true;\n\t}\n}\n\nexport default DataType;\n"]}
@@ -1,14 +0,0 @@
1
- import type { PropertyValue } from "../UI5ElementMetadata.js";
2
- import DataType from "./DataType.js";
3
- /**
4
- * @class
5
- * Float data type.
6
- *
7
- * @constructor
8
- * @public
9
- */
10
- declare class Float extends DataType {
11
- static isValid(value: any): boolean;
12
- static attributeToProperty(attributeValue: string): PropertyValue;
13
- }
14
- export default Float;
@@ -1,18 +0,0 @@
1
- import DataType from "./DataType.js";
2
- /**
3
- * @class
4
- * Float data type.
5
- *
6
- * @constructor
7
- * @public
8
- */
9
- class Float extends DataType {
10
- static isValid(value) {
11
- return Number(value) === value;
12
- }
13
- static attributeToProperty(attributeValue) {
14
- return parseFloat(attributeValue);
15
- }
16
- }
17
- export default Float;
18
- //# sourceMappingURL=Float.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Float.js","sourceRoot":"","sources":["../../src/types/Float.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC;;;;;;GAMG;AACH,MAAM,KAAM,SAAQ,QAAQ;IAC3B,MAAM,CAAU,OAAO,CAAC,KAAU;QACjC,OAAO,MAAM,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC;IAChC,CAAC;IAED,MAAM,CAAU,mBAAmB,CAAC,cAAsB;QACzD,OAAO,UAAU,CAAC,cAAc,CAAC,CAAC;IACnC,CAAC;CACD;AAED,eAAe,KAAK,CAAC","sourcesContent":["import type { PropertyValue } from \"../UI5ElementMetadata.js\";\nimport DataType from \"./DataType.js\";\n\n/**\n * @class\n * Float data type.\n *\n * @constructor\n * @public\n */\nclass Float extends DataType {\n\tstatic override isValid(value: any) {\n\t\treturn Number(value) === value;\n\t}\n\n\tstatic override attributeToProperty(attributeValue: string): PropertyValue {\n\t\treturn parseFloat(attributeValue);\n\t}\n}\n\nexport default Float;\n"]}
@@ -1,14 +0,0 @@
1
- import type { PropertyValue } from "../UI5ElementMetadata.js";
2
- import DataType from "./DataType.js";
3
- /**
4
- * @class
5
- * Integer data type.
6
- *
7
- * @constructor
8
- * @public
9
- */
10
- declare class Integer extends DataType {
11
- static isValid(value: any): boolean;
12
- static attributeToProperty(attributeValue: string): PropertyValue;
13
- }
14
- export default Integer;
@@ -1,18 +0,0 @@
1
- import DataType from "./DataType.js";
2
- /**
3
- * @class
4
- * Integer data type.
5
- *
6
- * @constructor
7
- * @public
8
- */
9
- class Integer extends DataType {
10
- static isValid(value) {
11
- return Number.isInteger(value);
12
- }
13
- static attributeToProperty(attributeValue) {
14
- return parseInt(attributeValue);
15
- }
16
- }
17
- export default Integer;
18
- //# sourceMappingURL=Integer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Integer.js","sourceRoot":"","sources":["../../src/types/Integer.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC;;;;;;GAMG;AACH,MAAM,OAAQ,SAAQ,QAAQ;IAC7B,MAAM,CAAU,OAAO,CAAC,KAAU;QACjC,OAAO,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAED,MAAM,CAAU,mBAAmB,CAAC,cAAsB;QACzD,OAAO,QAAQ,CAAC,cAAc,CAAC,CAAC;IACjC,CAAC;CACD;AAED,eAAe,OAAO,CAAC","sourcesContent":["import type { PropertyValue } from \"../UI5ElementMetadata.js\";\nimport DataType from \"./DataType.js\";\n\n/**\n * @class\n * Integer data type.\n *\n * @constructor\n * @public\n */\nclass Integer extends DataType {\n\tstatic override isValid(value: any) {\n\t\treturn Number.isInteger(value);\n\t}\n\n\tstatic override attributeToProperty(attributeValue: string): PropertyValue {\n\t\treturn parseInt(attributeValue);\n\t}\n}\n\nexport default Integer;\n"]}