@htmlplus/element 0.3.3 → 0.4.2

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 (111) hide show
  1. package/client/decorators/attributes.js +3 -3
  2. package/client/decorators/element.js +11 -4
  3. package/client/decorators/event.js +4 -4
  4. package/client/decorators/listen.js +2 -1
  5. package/client/decorators/method.js +4 -5
  6. package/client/decorators/property.d.ts +0 -4
  7. package/client/decorators/property.js +38 -43
  8. package/client/decorators/state.js +17 -26
  9. package/client/decorators/watch.d.ts +7 -1
  10. package/client/decorators/watch.js +24 -10
  11. package/client/helpers/classes.d.ts +1 -1
  12. package/client/helpers/index.d.ts +3 -3
  13. package/client/helpers/index.js +3 -3
  14. package/client/helpers/{is-rtl.d.ts → isRTL.d.ts} +0 -0
  15. package/client/helpers/{is-rtl.js → isRTL.js} +0 -0
  16. package/client/helpers/{query-all.d.ts → queryAll.d.ts} +0 -0
  17. package/client/helpers/{query-all.js → queryAll.js} +0 -0
  18. package/client/helpers/slots.js +1 -1
  19. package/client/helpers/styles.js +2 -1
  20. package/client/helpers/{to-unit.d.ts → toUnit.d.ts} +0 -0
  21. package/client/helpers/{to-unit.js → toUnit.js} +0 -0
  22. package/client/utils/{append-to-method.d.ts → appendToMethod.d.ts} +0 -0
  23. package/client/utils/{append-to-method.js → appendToMethod.js} +0 -0
  24. package/client/utils/config.d.ts +10 -0
  25. package/client/utils/config.js +8 -0
  26. package/client/utils/{define-property.d.ts → defineProperty.d.ts} +0 -0
  27. package/client/utils/{define-property.js → defineProperty.js} +0 -0
  28. package/client/utils/event.d.ts +5 -2
  29. package/client/utils/event.js +9 -4
  30. package/client/utils/{get-members.d.ts → getMembers.d.ts} +0 -0
  31. package/client/utils/{get-members.js → getMembers.js} +0 -0
  32. package/client/utils/{get-styles.d.ts → getStyles.d.ts} +0 -0
  33. package/client/utils/{get-styles.js → getStyles.js} +0 -0
  34. package/client/utils/index.d.ts +12 -14
  35. package/client/utils/index.js +12 -14
  36. package/client/utils/{is-event.d.ts → isEvent.d.ts} +0 -0
  37. package/client/utils/{is-event.js → isEvent.js} +0 -0
  38. package/client/utils/{is-server.d.ts → isServer.d.ts} +0 -0
  39. package/client/utils/{is-server.js → isServer.js} +0 -0
  40. package/client/utils/{parse-value.d.ts → parseValue.d.ts} +0 -0
  41. package/client/utils/{parse-value.js → parseValue.js} +2 -2
  42. package/client/utils/request.d.ts +3 -1
  43. package/client/utils/request.js +15 -5
  44. package/client/utils/sync.js +3 -3
  45. package/client/utils/{to-boolean.d.ts → toBoolean.d.ts} +0 -0
  46. package/client/utils/{to-boolean.js → toBoolean.js} +0 -0
  47. package/client/utils/{to-event.d.ts → toEvent.d.ts} +0 -0
  48. package/client/utils/{to-event.js → toEvent.js} +0 -0
  49. package/client/utils/{type-of.d.ts → typeOf.d.ts} +0 -0
  50. package/client/utils/{type-of.js → typeOf.js} +0 -0
  51. package/client/utils/{update-attribute.d.ts → updateAttribute.d.ts} +0 -0
  52. package/client/utils/{update-attribute.js → updateAttribute.js} +0 -0
  53. package/client/vendor/uhtml.d.ts +22 -0
  54. package/client/vendor/uhtml.js +700 -0
  55. package/compiler/compiler.js +42 -22
  56. package/compiler/plugins/customElement.d.ts +4 -1
  57. package/compiler/plugins/customElement.js +96 -77
  58. package/compiler/plugins/customElementReact/customElementReact.d.ts +1 -1
  59. package/compiler/plugins/customElementReact/customElementReact.js +13 -9
  60. package/compiler/plugins/customElementReact/templates/package.json.hbs +2 -2
  61. package/compiler/plugins/customElementReact/templates/src/components/{{fileName}}.compact.ts.hbs +4 -4
  62. package/compiler/plugins/customElementReact/templates/src/components/{{fileName}}.ts.hbs +1 -1
  63. package/compiler/plugins/{docs.d.ts → document.d.ts} +3 -4
  64. package/compiler/plugins/document.js +254 -0
  65. package/compiler/plugins/external.d.ts +9 -0
  66. package/compiler/plugins/external.js +25 -0
  67. package/compiler/plugins/extract.d.ts +1 -1
  68. package/compiler/plugins/extract.js +14 -12
  69. package/compiler/plugins/index.d.ts +2 -0
  70. package/compiler/plugins/index.js +2 -0
  71. package/compiler/plugins/style.js +1 -1
  72. package/compiler/utils/{get-initializer.d.ts → getInitializer.d.ts} +0 -0
  73. package/compiler/utils/{get-initializer.js → getInitializer.js} +0 -0
  74. package/compiler/utils/{get-type.d.ts → getType.d.ts} +0 -0
  75. package/compiler/utils/{get-type.js → getType.js} +0 -0
  76. package/compiler/utils/getTypeReference.d.ts +2 -0
  77. package/compiler/utils/getTypeReference.js +33 -0
  78. package/compiler/utils/{has-decorator.d.ts → hasDecorator.d.ts} +0 -0
  79. package/compiler/utils/{has-decorator.js → hasDecorator.js} +0 -0
  80. package/compiler/utils/index.d.ts +8 -7
  81. package/compiler/utils/index.js +8 -7
  82. package/compiler/utils/{is-directory-empty.d.ts → isDirectoryEmpty.d.ts} +0 -0
  83. package/compiler/utils/{is-directory-empty.js → isDirectoryEmpty.js} +0 -0
  84. package/compiler/utils/{print-type.d.ts → printType.d.ts} +0 -0
  85. package/compiler/utils/{print-type.js → printType.js} +0 -0
  86. package/compiler/utils/{render-template.d.ts → renderTemplate.d.ts} +0 -0
  87. package/compiler/utils/{render-template.js → renderTemplate.js} +0 -0
  88. package/compiler/utils/tags.d.ts +13 -0
  89. package/compiler/utils/tags.js +53 -0
  90. package/constants/index.d.ts +1 -2
  91. package/constants/index.js +2 -2
  92. package/package.json +22 -27
  93. package/types/context.d.ts +7 -0
  94. package/types/index.d.ts +1 -1
  95. package/types/index.js +1 -1
  96. package/types/plugin.d.ts +4 -3
  97. package/types/{plus-element.d.ts → plusElement.d.ts} +0 -0
  98. package/types/{plus-element.js → plusElement.js} +0 -0
  99. package/client/utils/is-ready.d.ts +0 -2
  100. package/client/utils/is-ready.js +0 -4
  101. package/client/utils/on-ready.d.ts +0 -2
  102. package/client/utils/on-ready.js +0 -6
  103. package/client/utils/render.d.ts +0 -2
  104. package/client/utils/render.js +0 -19
  105. package/compiler/plugins/componentDependencyResolver.d.ts +0 -5
  106. package/compiler/plugins/componentDependencyResolver.js +0 -40
  107. package/compiler/plugins/docs.js +0 -320
  108. package/compiler/utils/get-tags.d.ts +0 -6
  109. package/compiler/utils/get-tags.js +0 -34
  110. package/runtime/index.d.ts +0 -1
  111. package/runtime/index.js +0 -4
File without changes
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Holds all details wrappers needed to render the content further on.
3
+ * @constructor
4
+ * @param {string} type The hole type, either `html` or `svg`.
5
+ * @param {string[]} template The template literals used to the define the content.
6
+ * @param {Array} values Zero, one, or more interpolated values to render.
7
+ */
8
+ export class Hole {
9
+ constructor(type: any, template: any, values: any);
10
+ type: any;
11
+ template: any;
12
+ values: any;
13
+ }
14
+ export const html: ((template: any, ...values: any[]) => Hole) & {
15
+ for(ref: any, id: any): any;
16
+ node: (template: any, ...values: any[]) => any;
17
+ };
18
+ export function render(where: any, what: any): any;
19
+ export const svg: ((template: any, ...values: any[]) => Hole) & {
20
+ for(ref: any, id: any): any;
21
+ node: (template: any, ...values: any[]) => any;
22
+ };