@ui5/webcomponents-tools 0.0.0-38861c872 → 0.0.0-38f83ffef

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 (48) hide show
  1. package/CHANGELOG.md +1121 -0
  2. package/README.md +2 -5
  3. package/assets-meta.js +3 -11
  4. package/components-package/eslint.js +59 -31
  5. package/components-package/nps.js +48 -26
  6. package/components-package/vite.config.js +7 -11
  7. package/components-package/wdio.js +415 -405
  8. package/icons-collection/nps.js +2 -2
  9. package/lib/amd-to-es6/index.js +102 -0
  10. package/lib/amd-to-es6/no-remaining-require.js +33 -0
  11. package/lib/cem/custom-elements-manifest.config.mjs +129 -55
  12. package/lib/cem/event.mjs +75 -21
  13. package/lib/cem/schema-internal.json +71 -0
  14. package/lib/cem/types-internal.d.ts +564 -785
  15. package/lib/cem/types.d.ts +520 -655
  16. package/lib/cem/utils.mjs +115 -47
  17. package/lib/cem/validate.js +41 -37
  18. package/lib/create-icons/index.js +13 -10
  19. package/lib/create-illustrations/index.js +44 -9
  20. package/lib/create-new-component/{tsFileContentTemplate.js → Component.js} +13 -10
  21. package/lib/create-new-component/ComponentTemplate.js +12 -0
  22. package/lib/create-new-component/index.js +14 -22
  23. package/lib/css-processors/css-processor-components.mjs +3 -2
  24. package/lib/css-processors/css-processor-themes.mjs +2 -7
  25. package/lib/css-processors/scope-variables.mjs +3 -0
  26. package/lib/css-processors/shared.mjs +2 -22
  27. package/lib/dev-server/{dev-server.js → dev-server.mjs} +4 -4
  28. package/lib/dev-server/virtual-index-html-plugin.js +24 -20
  29. package/lib/generate-json-imports/i18n.js +46 -62
  30. package/lib/generate-json-imports/themes.js +13 -32
  31. package/lib/hbs2ui5/RenderTemplates/LitRenderer.js +12 -7
  32. package/lib/hbs2ui5/index.js +3 -3
  33. package/lib/i18n/defaults.js +3 -2
  34. package/lib/remove-dev-mode/remove-dev-mode.mjs +37 -0
  35. package/lib/scoping/get-all-tags.js +9 -2
  36. package/lib/scoping/lint-src.js +8 -7
  37. package/package.json +11 -8
  38. package/tsconfig.json +18 -0
  39. package/components-package/wdio.sync.js +0 -368
  40. package/lib/create-new-component/jsFileContentTemplate.js +0 -73
  41. package/lib/esm-abs-to-rel/index.js +0 -61
  42. package/lib/generate-custom-elements-manifest/index.js +0 -327
  43. package/lib/jsdoc/config.json +0 -29
  44. package/lib/jsdoc/configTypescript.json +0 -29
  45. package/lib/jsdoc/plugin.js +0 -2468
  46. package/lib/jsdoc/preprocess.js +0 -146
  47. package/lib/jsdoc/template/publish.js +0 -4120
  48. package/lib/replace-global-core/index.js +0 -25
@@ -46,6 +46,12 @@
46
46
  "ClassDeclaration": {
47
47
  "additionalProperties": false,
48
48
  "properties": {
49
+ "_ui5experimental": {
50
+ "type": [
51
+ "string",
52
+ "boolean"
53
+ ]
54
+ },
49
55
  "_ui5package": {
50
56
  "type": "string"
51
57
  },
@@ -123,6 +129,12 @@
123
129
  "EnumDeclaration": {
124
130
  "additionalProperties": false,
125
131
  "properties": {
132
+ "_ui5experimental": {
133
+ "type": [
134
+ "string",
135
+ "boolean"
136
+ ]
137
+ },
126
138
  "_ui5package": {
127
139
  "type": "string"
128
140
  },
@@ -187,6 +199,12 @@
187
199
  "InterfaceDeclaration": {
188
200
  "additionalProperties": false,
189
201
  "properties": {
202
+ "_ui5experimental": {
203
+ "type": [
204
+ "string",
205
+ "boolean"
206
+ ]
207
+ },
190
208
  "_ui5package": {
191
209
  "type": "string"
192
210
  },
@@ -245,6 +263,9 @@
245
263
  "ClassField": {
246
264
  "additionalProperties": false,
247
265
  "properties": {
266
+ "_ui5noAttribute": {
267
+ "type": "boolean"
268
+ },
248
269
  "_ui5validator": {
249
270
  "type": "string"
250
271
  },
@@ -386,6 +407,9 @@
386
407
  "CssCustomProperty": {
387
408
  "additionalProperties": false,
388
409
  "properties": {
410
+ "inheritedFrom": {
411
+ "$ref": "#/definitions/Reference"
412
+ },
389
413
  "default": {
390
414
  "type": "string"
391
415
  },
@@ -422,6 +446,9 @@
422
446
  "additionalProperties": false,
423
447
  "description": "The description of a CSS Part",
424
448
  "properties": {
449
+ "inheritedFrom": {
450
+ "$ref": "#/definitions/Reference"
451
+ },
425
452
  "deprecated": {
426
453
  "description": "Whether the CSS shadow part is deprecated.\nIf the value is a string, it's the reason for the deprecation.",
427
454
  "type": [
@@ -450,6 +477,12 @@
450
477
  "additionalProperties": false,
451
478
  "description": "A description of a custom element class.\n\nCustom elements are JavaScript classes, so this extends from\n`ClassDeclaration` and adds custom-element-specific features like\nattributes, events, and slots.\n\nNote that `tagName` in this interface is optional. Tag names are not\nneccessarily part of a custom element class, but belong to the definition\n(often called the \"registration\") or the `customElements.define()` call.\n\nBecause classes and tag names can only be registered once, there's a\none-to-one relationship between classes and tag names. For ease of use,\nwe allow the tag name here.\n\nSome packages define and register custom elements in separate modules. In\nthese cases one `Module` should contain the `CustomElement` without a\ntagName, and another `Module` should contain the\n`CustomElementExport`.",
452
479
  "properties": {
480
+ "_ui5experimental": {
481
+ "type": [
482
+ "string",
483
+ "boolean"
484
+ ]
485
+ },
453
486
  "_ui5package": {
454
487
  "type": "string"
455
488
  },
@@ -615,6 +648,12 @@
615
648
  "additionalProperties": false,
616
649
  "description": "A class mixin that also adds custom element related properties.",
617
650
  "properties": {
651
+ "_ui5experimental": {
652
+ "type": [
653
+ "string",
654
+ "boolean"
655
+ ]
656
+ },
618
657
  "_ui5package": {
619
658
  "type": "string"
620
659
  },
@@ -785,6 +824,14 @@
785
824
  "description": "Whether the parameter is optional. Undefined implies non-optional.",
786
825
  "type": "boolean"
787
826
  },
827
+ "_ui5Cancelable": {
828
+ "description": "Whether the event is cancelable or not.",
829
+ "type": "boolean"
830
+ },
831
+ "_ui5Bubbles": {
832
+ "description": "Whether the event bubbles or not.",
833
+ "type": "boolean"
834
+ },
788
835
  "_ui5since": {
789
836
  "description": "Marks when the field was introduced",
790
837
  "type": "string"
@@ -824,6 +871,12 @@
824
871
  "FunctionDeclaration": {
825
872
  "additionalProperties": false,
826
873
  "properties": {
874
+ "_ui5experimental": {
875
+ "type": [
876
+ "string",
877
+ "boolean"
878
+ ]
879
+ },
827
880
  "_ui5package": {
828
881
  "type": "string"
829
882
  },
@@ -1004,6 +1057,12 @@
1004
1057
  "additionalProperties": false,
1005
1058
  "description": "A description of a class mixin.\n\nMixins are functions which generate a new subclass of a given superclass.\nThis interfaces describes the class and custom element features that\nare added by the mixin. As such, it extends the CustomElement interface and\nClassLike interface.\n\nSince mixins are functions, it also extends the FunctionLike interface. This\nmeans a mixin is callable, and has parameters and a return type.\n\nThe return type is often hard or impossible to accurately describe in type\nsystems like TypeScript. It requires generics and an `extends` operator\nthat TypeScript lacks. Therefore it's recommended that the return type is\nleft empty. The most common form of a mixin function takes a single\nargument, so consumers of this interface should assume that the return type\nis the single argument subclassed by this declaration.\n\nA mixin should not have a superclass. If a mixins composes other mixins,\nthey should be listed in the `mixins` field.\n\nSee [this article]{@link https://justinfagnani.com/2015/12/21/real-mixins-with-javascript-classes/}\nfor more information on the classmixin pattern in JavaScript.",
1006
1059
  "properties": {
1060
+ "_ui5experimental": {
1061
+ "type": [
1062
+ "string",
1063
+ "boolean"
1064
+ ]
1065
+ },
1007
1066
  "_ui5package": {
1008
1067
  "type": "string"
1009
1068
  },
@@ -1151,6 +1210,9 @@
1151
1210
  "additionalProperties": false,
1152
1211
  "description": "A reference to an export of a module.\n\nAll references are required to be publically accessible, so the canonical\nrepresentation of a reference is the export it's available from.\n\n`package` should generally refer to an npm package name. If `package` is\nundefined then the reference is local to this package. If `module` is\nundefined the reference is local to the containing module.\n\nReferences to global symbols like `Array`, `HTMLElement`, or `Event` should\nuse a `package` name of `\"global:\"`.",
1153
1212
  "properties": {
1213
+ "inheritedFrom": {
1214
+ "$ref": "#/definitions/Reference"
1215
+ },
1154
1216
  "module": {
1155
1217
  "type": "string"
1156
1218
  },
@@ -1169,6 +1231,9 @@
1169
1231
  "Slot": {
1170
1232
  "additionalProperties": false,
1171
1233
  "properties": {
1234
+ "inheritedFrom": {
1235
+ "$ref": "#/definitions/Reference"
1236
+ },
1172
1237
  "_ui5propertyName": {
1173
1238
  "type": "string"
1174
1239
  },
@@ -1272,6 +1337,12 @@
1272
1337
  "VariableDeclaration": {
1273
1338
  "additionalProperties": false,
1274
1339
  "properties": {
1340
+ "_ui5experimental": {
1341
+ "type": [
1342
+ "string",
1343
+ "boolean"
1344
+ ]
1345
+ },
1275
1346
  "_ui5package": {
1276
1347
  "type": "string"
1277
1348
  },