@onivoro/server-html 0.1.1 → 24.24.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 (174) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +281 -0
  3. package/package.json +25 -39
  4. package/{dist/cjs → src}/index.d.ts +2 -0
  5. package/src/index.js +25 -0
  6. package/src/index.js.map +1 -0
  7. package/{dist/esm → src}/lib/deprecated/a.function.d.ts +1 -0
  8. package/{dist/esm → src}/lib/deprecated/a.function.js +2 -2
  9. package/src/lib/deprecated/a.function.js.map +1 -0
  10. package/{dist/cjs → src}/lib/deprecated/html-element-renderer.type.d.ts +1 -0
  11. package/{dist/esm → src}/lib/deprecated/html-element-renderer.type.js +1 -0
  12. package/src/lib/deprecated/html-element-renderer.type.js.map +1 -0
  13. package/{dist/cjs → src}/lib/deprecated/html.function.d.ts +1 -0
  14. package/{dist/cjs → src}/lib/deprecated/html.function.js +2 -2
  15. package/src/lib/deprecated/html.function.js.map +1 -0
  16. package/{dist/cjs → src}/lib/deprecated/login-button.function.d.ts +1 -0
  17. package/{dist/cjs → src}/lib/deprecated/login-button.function.js +2 -2
  18. package/src/lib/deprecated/login-button.function.js.map +1 -0
  19. package/{dist/cjs → src}/lib/deprecated/self-closing-html-element-renderer.type.d.ts +1 -0
  20. package/{dist/esm → src}/lib/deprecated/self-closing-html-element-renderer.type.js +1 -0
  21. package/src/lib/deprecated/self-closing-html-element-renderer.type.js.map +1 -0
  22. package/{dist/cjs → src}/lib/deprecated/self-closing-tag.function.d.ts +1 -0
  23. package/{dist/esm → src}/lib/deprecated/self-closing-tag.function.js +2 -2
  24. package/src/lib/deprecated/self-closing-tag.function.js.map +1 -0
  25. package/{dist/cjs → src}/lib/deprecated/tag.function.d.ts +1 -0
  26. package/{dist/esm → src}/lib/deprecated/tag.function.js +2 -2
  27. package/src/lib/deprecated/tag.function.js.map +1 -0
  28. package/{dist/cjs → src}/lib/deprecated/tags.d.ts +2 -1
  29. package/{dist/esm → src}/lib/deprecated/tags.js +1 -0
  30. package/src/lib/deprecated/tags.js.map +1 -0
  31. package/src/lib/dom/index.d.ts +139 -0
  32. package/src/lib/dom/index.js +142 -0
  33. package/src/lib/dom/index.js.map +1 -0
  34. package/src/lib/dom/lib/constants/style-manager.constant.d.ts +12 -0
  35. package/src/lib/dom/lib/constants/style-manager.constant.js +28 -0
  36. package/src/lib/dom/lib/constants/style-manager.constant.js.map +1 -0
  37. package/src/lib/dom/lib/functions/as-element-factory.function.d.ts +4 -0
  38. package/src/lib/dom/lib/functions/as-element-factory.function.js +22 -0
  39. package/src/lib/dom/lib/functions/as-element-factory.function.js.map +1 -0
  40. package/src/lib/dom/lib/functions/as-id.function.d.ts +2 -0
  41. package/src/lib/dom/lib/functions/as-id.function.js +9 -0
  42. package/src/lib/dom/lib/functions/as-id.function.js.map +1 -0
  43. package/src/lib/dom/lib/functions/extract-style.function.d.ts +2 -0
  44. package/src/lib/dom/lib/functions/extract-style.function.js +7 -0
  45. package/src/lib/dom/lib/functions/extract-style.function.js.map +1 -0
  46. package/src/lib/dom/lib/functions/set-element-attributes.function.d.ts +2 -0
  47. package/src/lib/dom/lib/functions/set-element-attributes.function.js +6 -0
  48. package/src/lib/dom/lib/functions/set-element-attributes.function.js.map +1 -0
  49. package/src/lib/dom/lib/functions/set-element-style.function.d.ts +2 -0
  50. package/src/lib/dom/lib/functions/set-element-style.function.js +6 -0
  51. package/src/lib/dom/lib/functions/set-element-style.function.js.map +1 -0
  52. package/src/lib/dom/lib/functions/set-element-styles.function.d.ts +2 -0
  53. package/src/lib/dom/lib/functions/set-element-styles.function.js +6 -0
  54. package/src/lib/dom/lib/functions/set-element-styles.function.js.map +1 -0
  55. package/src/lib/dom/lib/functions/style-on-focus.function.d.ts +2 -0
  56. package/src/lib/dom/lib/functions/style-on-focus.function.js +8 -0
  57. package/src/lib/dom/lib/functions/style-on-focus.function.js.map +1 -0
  58. package/src/lib/dom/lib/functions/style-on-pointer-enter.function.d.ts +2 -0
  59. package/src/lib/dom/lib/functions/style-on-pointer-enter.function.js +8 -0
  60. package/src/lib/dom/lib/functions/style-on-pointer-enter.function.js.map +1 -0
  61. package/src/lib/dom/lib/functions/style-on.function.d.ts +2 -0
  62. package/src/lib/dom/lib/functions/style-on.function.js +6 -0
  63. package/src/lib/dom/lib/functions/style-on.function.js.map +1 -0
  64. package/src/lib/dom/lib/functions/styled.function.d.ts +2 -0
  65. package/src/lib/dom/lib/functions/styled.function.js +16 -0
  66. package/src/lib/dom/lib/functions/styled.function.js.map +1 -0
  67. package/src/lib/dom/lib/types/css-properties.type.d.ts +5 -0
  68. package/{dist/cjs/lib/deprecated/self-closing-html-element-renderer.type.js → src/lib/dom/lib/types/css-properties.type.js} +1 -0
  69. package/src/lib/dom/lib/types/css-properties.type.js.map +1 -0
  70. package/src/lib/dom/lib/types/element-props.type.d.ts +10 -0
  71. package/{dist/cjs/lib/deprecated/html-element-renderer.type.js → src/lib/dom/lib/types/element-props.type.js} +1 -0
  72. package/src/lib/dom/lib/types/element-props.type.js.map +1 -0
  73. package/{dist/cjs → src}/lib/email-body.function.d.ts +1 -0
  74. package/{dist/esm → src}/lib/email-body.function.js +2 -2
  75. package/src/lib/email-body.function.js.map +1 -0
  76. package/{dist/cjs → src}/lib/primitives/element.function.d.ts +1 -0
  77. package/{dist/esm → src}/lib/primitives/element.function.js +2 -2
  78. package/src/lib/primitives/element.function.js.map +1 -0
  79. package/{dist/cjs → src}/lib/primitives/elements.d.ts +2 -1
  80. package/{dist/esm → src}/lib/primitives/elements.js +1 -2
  81. package/src/lib/primitives/elements.js.map +1 -0
  82. package/src/lib/primitives/format-attributes.function.d.ts +2 -0
  83. package/{dist/esm → src}/lib/primitives/format-attributes.function.js +5 -2
  84. package/src/lib/primitives/format-attributes.function.js.map +1 -0
  85. package/src/lib/primitives/inline-style.function.d.ts +3 -0
  86. package/src/lib/primitives/inline-style.function.js +14 -0
  87. package/src/lib/primitives/inline-style.function.js.map +1 -0
  88. package/{dist/types → src}/lib/primitives/self-closing-element.function.d.ts +2 -1
  89. package/{dist/cjs → src}/lib/primitives/self-closing-element.function.js +2 -2
  90. package/src/lib/primitives/self-closing-element.function.js.map +1 -0
  91. package/{dist/cjs → src}/lib/styles/button-styles.constant.d.ts +1 -0
  92. package/{dist/cjs → src}/lib/styles/button-styles.constant.js +1 -0
  93. package/src/lib/styles/button-styles.constant.js.map +1 -0
  94. package/{dist/types → src}/lib/styles/font-styles.constant.d.ts +1 -0
  95. package/{dist/cjs → src}/lib/styles/font-styles.constant.js +1 -0
  96. package/src/lib/styles/font-styles.constant.js.map +1 -0
  97. package/{dist/cjs → src}/lib/table.function.d.ts +1 -0
  98. package/{dist/cjs → src}/lib/table.function.js +2 -2
  99. package/src/lib/table.function.js.map +1 -0
  100. package/src/lib/types/attributes.type.d.ts +7 -0
  101. package/{dist/esm → src}/lib/types/attributes.type.js +1 -0
  102. package/src/lib/types/attributes.type.js.map +1 -0
  103. package/{dist/cjs → src}/lib/types/element-renderer.type.d.ts +1 -0
  104. package/{dist/esm → src}/lib/types/element-renderer.type.js +1 -0
  105. package/src/lib/types/element-renderer.type.js.map +1 -0
  106. package/{dist/types → src}/lib/types/self-closing-element-renderer.type.d.ts +1 -0
  107. package/{dist/cjs → src}/lib/types/self-closing-element-renderer.type.js +1 -0
  108. package/src/lib/types/self-closing-element-renderer.type.js.map +1 -0
  109. package/dist/cjs/index.js +0 -36
  110. package/dist/cjs/lib/deprecated/a.function.d.ts +0 -1
  111. package/dist/cjs/lib/deprecated/a.function.js +0 -8
  112. package/dist/cjs/lib/deprecated/self-closing-tag.function.js +0 -8
  113. package/dist/cjs/lib/deprecated/tag.function.js +0 -12
  114. package/dist/cjs/lib/deprecated/tags.js +0 -27
  115. package/dist/cjs/lib/email-body.function.js +0 -25
  116. package/dist/cjs/lib/primitives/element.function.js +0 -13
  117. package/dist/cjs/lib/primitives/elements.js +0 -34
  118. package/dist/cjs/lib/primitives/format-attributes.function.d.ts +0 -1
  119. package/dist/cjs/lib/primitives/format-attributes.function.js +0 -9
  120. package/dist/cjs/lib/primitives/inline-style.function.d.ts +0 -1
  121. package/dist/cjs/lib/primitives/inline-style.function.js +0 -10
  122. package/dist/cjs/lib/primitives/self-closing-element.function.d.ts +0 -2
  123. package/dist/cjs/lib/styles/font-styles.constant.d.ts +0 -7
  124. package/dist/cjs/lib/types/attributes.type.d.ts +0 -4
  125. package/dist/cjs/lib/types/attributes.type.js +0 -2
  126. package/dist/cjs/lib/types/element-renderer.type.js +0 -2
  127. package/dist/cjs/lib/types/self-closing-element-renderer.type.d.ts +0 -2
  128. package/dist/esm/index.d.ts +0 -20
  129. package/dist/esm/index.js +0 -36
  130. package/dist/esm/lib/deprecated/html-element-renderer.type.d.ts +0 -1
  131. package/dist/esm/lib/deprecated/html.function.d.ts +0 -1
  132. package/dist/esm/lib/deprecated/html.function.js +0 -43
  133. package/dist/esm/lib/deprecated/login-button.function.d.ts +0 -1
  134. package/dist/esm/lib/deprecated/login-button.function.js +0 -15
  135. package/dist/esm/lib/deprecated/self-closing-html-element-renderer.type.d.ts +0 -1
  136. package/dist/esm/lib/deprecated/self-closing-tag.function.d.ts +0 -1
  137. package/dist/esm/lib/deprecated/tag.function.d.ts +0 -1
  138. package/dist/esm/lib/deprecated/tags.d.ts +0 -24
  139. package/dist/esm/lib/email-body.function.d.ts +0 -2
  140. package/dist/esm/lib/primitives/element.function.d.ts +0 -2
  141. package/dist/esm/lib/primitives/elements.d.ts +0 -26
  142. package/dist/esm/lib/primitives/format-attributes.function.d.ts +0 -1
  143. package/dist/esm/lib/primitives/inline-style.function.d.ts +0 -1
  144. package/dist/esm/lib/primitives/inline-style.function.js +0 -10
  145. package/dist/esm/lib/primitives/self-closing-element.function.d.ts +0 -2
  146. package/dist/esm/lib/primitives/self-closing-element.function.js +0 -8
  147. package/dist/esm/lib/styles/button-styles.constant.d.ts +0 -11
  148. package/dist/esm/lib/styles/button-styles.constant.js +0 -14
  149. package/dist/esm/lib/styles/font-styles.constant.d.ts +0 -7
  150. package/dist/esm/lib/styles/font-styles.constant.js +0 -10
  151. package/dist/esm/lib/table.function.d.ts +0 -1
  152. package/dist/esm/lib/table.function.js +0 -13
  153. package/dist/esm/lib/types/attributes.type.d.ts +0 -4
  154. package/dist/esm/lib/types/element-renderer.type.d.ts +0 -2
  155. package/dist/esm/lib/types/self-closing-element-renderer.type.d.ts +0 -2
  156. package/dist/esm/lib/types/self-closing-element-renderer.type.js +0 -2
  157. package/dist/types/index.d.ts +0 -20
  158. package/dist/types/lib/deprecated/a.function.d.ts +0 -1
  159. package/dist/types/lib/deprecated/html-element-renderer.type.d.ts +0 -1
  160. package/dist/types/lib/deprecated/html.function.d.ts +0 -1
  161. package/dist/types/lib/deprecated/login-button.function.d.ts +0 -1
  162. package/dist/types/lib/deprecated/self-closing-html-element-renderer.type.d.ts +0 -1
  163. package/dist/types/lib/deprecated/self-closing-tag.function.d.ts +0 -1
  164. package/dist/types/lib/deprecated/tag.function.d.ts +0 -1
  165. package/dist/types/lib/deprecated/tags.d.ts +0 -24
  166. package/dist/types/lib/email-body.function.d.ts +0 -2
  167. package/dist/types/lib/primitives/element.function.d.ts +0 -2
  168. package/dist/types/lib/primitives/elements.d.ts +0 -26
  169. package/dist/types/lib/primitives/format-attributes.function.d.ts +0 -1
  170. package/dist/types/lib/primitives/inline-style.function.d.ts +0 -1
  171. package/dist/types/lib/styles/button-styles.constant.d.ts +0 -11
  172. package/dist/types/lib/table.function.d.ts +0 -1
  173. package/dist/types/lib/types/attributes.type.d.ts +0 -4
  174. package/dist/types/lib/types/element-renderer.type.d.ts +0 -2
@@ -0,0 +1,139 @@
1
+ import { CSSProperties } from './lib/types/css-properties.type';
2
+ import { TElementProps } from './lib/types/element-props.type';
3
+ import { styleManager } from './lib/constants/style-manager.constant';
4
+ import { asId } from './lib/functions/as-id.function';
5
+ import { asElementFactory } from './lib/functions/as-element-factory.function';
6
+ import { extractStyle } from './lib/functions/extract-style.function';
7
+ import { setAttrs } from './lib/functions/set-element-attributes.function';
8
+ import { setElementStyle } from './lib/functions/set-element-style.function';
9
+ import { setElementStyles } from './lib/functions/set-element-styles.function';
10
+ import { styleOn } from './lib/functions/style-on.function';
11
+ import { styleOnFocus } from './lib/functions/style-on-focus.function';
12
+ import { styleOnPointerEnter } from './lib/functions/style-on-pointer-enter.function';
13
+ import { styled } from './lib/functions/styled.function';
14
+ export { CSSProperties };
15
+ export { TElementProps };
16
+ export { styleManager };
17
+ export { asId };
18
+ export { asElementFactory };
19
+ export { extractStyle };
20
+ export { setAttrs };
21
+ export { setElementStyle };
22
+ export { setElementStyles };
23
+ export { styleOn };
24
+ export { styleOnFocus };
25
+ export { styleOnPointerEnter };
26
+ export { styled };
27
+ export declare const $a: (props?: TElementProps) => string;
28
+ export declare const $abbr: (props?: TElementProps) => string;
29
+ export declare const $address: (props?: TElementProps) => string;
30
+ export declare const $area: (props?: TElementProps) => string;
31
+ export declare const $article: (props?: TElementProps) => string;
32
+ export declare const $aside: (props?: TElementProps) => string;
33
+ export declare const $audio: (props?: TElementProps) => string;
34
+ export declare const $b: (props?: TElementProps) => string;
35
+ export declare const $base: (props?: TElementProps) => string;
36
+ export declare const $bdi: (props?: TElementProps) => string;
37
+ export declare const $bdo: (props?: TElementProps) => string;
38
+ export declare const $blockquote: (props?: TElementProps) => string;
39
+ export declare const $body: (props?: TElementProps) => string;
40
+ export declare const $br: (props?: TElementProps) => string;
41
+ export declare const $button: (props?: TElementProps) => string;
42
+ export declare const $canvas: (props?: TElementProps) => string;
43
+ export declare const $caption: (props?: TElementProps) => string;
44
+ export declare const $cite: (props?: TElementProps) => string;
45
+ export declare const $code: (props?: TElementProps) => string;
46
+ export declare const $col: (props?: TElementProps) => string;
47
+ export declare const $colgroup: (props?: TElementProps) => string;
48
+ export declare const $data: (props?: TElementProps) => string;
49
+ export declare const $datalist: (props?: TElementProps) => string;
50
+ export declare const $dd: (props?: TElementProps) => string;
51
+ export declare const $del: (props?: TElementProps) => string;
52
+ export declare const $details: (props?: TElementProps) => string;
53
+ export declare const $dfn: (props?: TElementProps) => string;
54
+ export declare const $dialog: (props?: TElementProps) => string;
55
+ export declare const $div: (props?: TElementProps) => string;
56
+ export declare const $dl: (props?: TElementProps) => string;
57
+ export declare const $dt: (props?: TElementProps) => string;
58
+ export declare const $em: (props?: TElementProps) => string;
59
+ export declare const $embed: (props?: TElementProps) => string;
60
+ export declare const $fieldset: (props?: TElementProps) => string;
61
+ export declare const $figcaption: (props?: TElementProps) => string;
62
+ export declare const $figure: (props?: TElementProps) => string;
63
+ export declare const $footer: (props?: TElementProps) => string;
64
+ export declare const $form: (props?: TElementProps) => string;
65
+ export declare const $h1: (props?: TElementProps) => string;
66
+ export declare const $h2: (props?: TElementProps) => string;
67
+ export declare const $h3: (props?: TElementProps) => string;
68
+ export declare const $h4: (props?: TElementProps) => string;
69
+ export declare const $h5: (props?: TElementProps) => string;
70
+ export declare const $h6: (props?: TElementProps) => string;
71
+ export declare const $head: (props?: TElementProps) => string;
72
+ export declare const $header: (props?: TElementProps) => string;
73
+ export declare const $hgroup: (props?: TElementProps) => string;
74
+ export declare const $hr: (props?: TElementProps) => string;
75
+ export declare const $html: (props?: TElementProps) => string;
76
+ export declare const $i: (props?: TElementProps) => string;
77
+ export declare const $iframe: (props?: TElementProps) => string;
78
+ export declare const $img: (props?: TElementProps) => string;
79
+ export declare const $input: (props?: TElementProps) => string;
80
+ export declare const $ins: (props?: TElementProps) => string;
81
+ export declare const $kbd: (props?: TElementProps) => string;
82
+ export declare const $label: (props?: TElementProps) => string;
83
+ export declare const $legend: (props?: TElementProps) => string;
84
+ export declare const $li: (props?: TElementProps) => string;
85
+ export declare const $link: (props?: TElementProps) => string;
86
+ export declare const $main: (props?: TElementProps) => string;
87
+ export declare const $map: (props?: TElementProps) => string;
88
+ export declare const $mark: (props?: TElementProps) => string;
89
+ export declare const $math: (props?: TElementProps) => string;
90
+ export declare const $menu: (props?: TElementProps) => string;
91
+ export declare const $meta: (props?: TElementProps) => string;
92
+ export declare const $meter: (props?: TElementProps) => string;
93
+ export declare const $nav: (props?: TElementProps) => string;
94
+ export declare const $noscript: (props?: TElementProps) => string;
95
+ export declare const $object: (props?: TElementProps) => string;
96
+ export declare const $ol: (props?: TElementProps) => string;
97
+ export declare const $optgroup: (props?: TElementProps) => string;
98
+ export declare const $option: (props?: TElementProps) => string;
99
+ export declare const $output: (props?: TElementProps) => string;
100
+ export declare const $p: (props?: TElementProps) => string;
101
+ export declare const $picture: (props?: TElementProps) => string;
102
+ export declare const $pre: (props?: TElementProps) => string;
103
+ export declare const $progress: (props?: TElementProps) => string;
104
+ export declare const $q: (props?: TElementProps) => string;
105
+ export declare const $rp: (props?: TElementProps) => string;
106
+ export declare const $rt: (props?: TElementProps) => string;
107
+ export declare const $ruby: (props?: TElementProps) => string;
108
+ export declare const $s: (props?: TElementProps) => string;
109
+ export declare const $samp: (props?: TElementProps) => string;
110
+ export declare const $script: (props?: TElementProps) => string;
111
+ export declare const $section: (props?: TElementProps) => string;
112
+ export declare const $select: (props?: TElementProps) => string;
113
+ export declare const $slot: (props?: TElementProps) => string;
114
+ export declare const $small: (props?: TElementProps) => string;
115
+ export declare const $source: (props?: TElementProps) => string;
116
+ export declare const $span: (props?: TElementProps) => string;
117
+ export declare const $strong: (props?: TElementProps) => string;
118
+ export declare const $style: (props?: TElementProps) => string;
119
+ export declare const $sub: (props?: TElementProps) => string;
120
+ export declare const $summary: (props?: TElementProps) => string;
121
+ export declare const $sup: (props?: TElementProps) => string;
122
+ export declare const $table: (props?: TElementProps) => string;
123
+ export declare const $tbody: (props?: TElementProps) => string;
124
+ export declare const $td: (props?: TElementProps) => string;
125
+ export declare const $template: (props?: TElementProps) => string;
126
+ export declare const $textarea: (props?: TElementProps) => string;
127
+ export declare const $tfoot: (props?: TElementProps) => string;
128
+ export declare const $th: (props?: TElementProps) => string;
129
+ export declare const $thead: (props?: TElementProps) => string;
130
+ export declare const $time: (props?: TElementProps) => string;
131
+ export declare const $title: (props?: TElementProps) => string;
132
+ export declare const $tr: (props?: TElementProps) => string;
133
+ export declare const $track: (props?: TElementProps) => string;
134
+ export declare const $u: (props?: TElementProps) => string;
135
+ export declare const $ul: (props?: TElementProps) => string;
136
+ export declare const $var: (props?: TElementProps) => string;
137
+ export declare const $video: (props?: TElementProps) => string;
138
+ export declare const $wbr: (props?: TElementProps) => string;
139
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,142 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.$h1 = exports.$form = exports.$footer = exports.$figure = exports.$figcaption = exports.$fieldset = exports.$embed = exports.$em = exports.$dt = exports.$dl = exports.$div = exports.$dialog = exports.$dfn = exports.$details = exports.$del = exports.$dd = exports.$datalist = exports.$data = exports.$colgroup = exports.$col = exports.$code = exports.$cite = exports.$caption = exports.$canvas = exports.$button = exports.$br = exports.$body = exports.$blockquote = exports.$bdo = exports.$bdi = exports.$base = exports.$b = exports.$audio = exports.$aside = exports.$article = exports.$area = exports.$address = exports.$abbr = exports.$a = exports.styled = exports.styleOnPointerEnter = exports.styleOnFocus = exports.styleOn = exports.setElementStyles = exports.setElementStyle = exports.setAttrs = exports.extractStyle = exports.asElementFactory = exports.asId = exports.styleManager = void 0;
4
+ exports.$source = exports.$small = exports.$slot = exports.$select = exports.$section = exports.$script = exports.$samp = exports.$s = exports.$ruby = exports.$rt = exports.$rp = exports.$q = exports.$progress = exports.$pre = exports.$picture = exports.$p = exports.$output = exports.$option = exports.$optgroup = exports.$ol = exports.$object = exports.$noscript = exports.$nav = exports.$meter = exports.$meta = exports.$menu = exports.$math = exports.$mark = exports.$map = exports.$main = exports.$link = exports.$li = exports.$legend = exports.$label = exports.$kbd = exports.$ins = exports.$input = exports.$img = exports.$iframe = exports.$i = exports.$html = exports.$hr = exports.$hgroup = exports.$header = exports.$head = exports.$h6 = exports.$h5 = exports.$h4 = exports.$h3 = exports.$h2 = void 0;
5
+ exports.$wbr = exports.$video = exports.$var = exports.$ul = exports.$u = exports.$track = exports.$tr = exports.$title = exports.$time = exports.$thead = exports.$th = exports.$tfoot = exports.$textarea = exports.$template = exports.$td = exports.$tbody = exports.$table = exports.$sup = exports.$summary = exports.$sub = exports.$style = exports.$strong = exports.$span = void 0;
6
+ const element_function_1 = require("../primitives/element.function");
7
+ const self_closing_element_function_1 = require("../primitives/self-closing-element.function");
8
+ const style_manager_constant_1 = require("./lib/constants/style-manager.constant");
9
+ Object.defineProperty(exports, "styleManager", { enumerable: true, get: function () { return style_manager_constant_1.styleManager; } });
10
+ const as_id_function_1 = require("./lib/functions/as-id.function");
11
+ Object.defineProperty(exports, "asId", { enumerable: true, get: function () { return as_id_function_1.asId; } });
12
+ const as_element_factory_function_1 = require("./lib/functions/as-element-factory.function");
13
+ Object.defineProperty(exports, "asElementFactory", { enumerable: true, get: function () { return as_element_factory_function_1.asElementFactory; } });
14
+ const extract_style_function_1 = require("./lib/functions/extract-style.function");
15
+ Object.defineProperty(exports, "extractStyle", { enumerable: true, get: function () { return extract_style_function_1.extractStyle; } });
16
+ const set_element_attributes_function_1 = require("./lib/functions/set-element-attributes.function");
17
+ Object.defineProperty(exports, "setAttrs", { enumerable: true, get: function () { return set_element_attributes_function_1.setAttrs; } });
18
+ const set_element_style_function_1 = require("./lib/functions/set-element-style.function");
19
+ Object.defineProperty(exports, "setElementStyle", { enumerable: true, get: function () { return set_element_style_function_1.setElementStyle; } });
20
+ const set_element_styles_function_1 = require("./lib/functions/set-element-styles.function");
21
+ Object.defineProperty(exports, "setElementStyles", { enumerable: true, get: function () { return set_element_styles_function_1.setElementStyles; } });
22
+ const style_on_function_1 = require("./lib/functions/style-on.function");
23
+ Object.defineProperty(exports, "styleOn", { enumerable: true, get: function () { return style_on_function_1.styleOn; } });
24
+ const style_on_focus_function_1 = require("./lib/functions/style-on-focus.function");
25
+ Object.defineProperty(exports, "styleOnFocus", { enumerable: true, get: function () { return style_on_focus_function_1.styleOnFocus; } });
26
+ const style_on_pointer_enter_function_1 = require("./lib/functions/style-on-pointer-enter.function");
27
+ Object.defineProperty(exports, "styleOnPointerEnter", { enumerable: true, get: function () { return style_on_pointer_enter_function_1.styleOnPointerEnter; } });
28
+ const styled_function_1 = require("./lib/functions/styled.function");
29
+ Object.defineProperty(exports, "styled", { enumerable: true, get: function () { return styled_function_1.styled; } });
30
+ exports.$a = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'a'));
31
+ exports.$abbr = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'abbr'));
32
+ exports.$address = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'address'));
33
+ exports.$area = (0, as_element_factory_function_1.asElementFactory)((_, attrs) => (0, self_closing_element_function_1.selfClosingElement)('area', attrs));
34
+ exports.$article = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'article'));
35
+ exports.$aside = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'aside'));
36
+ exports.$audio = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'audio'));
37
+ exports.$b = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'b'));
38
+ exports.$base = (0, as_element_factory_function_1.asElementFactory)((_, attrs) => (0, self_closing_element_function_1.selfClosingElement)('base', attrs));
39
+ exports.$bdi = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'bdi'));
40
+ exports.$bdo = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'bdo'));
41
+ exports.$blockquote = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'blockquote'));
42
+ exports.$body = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'body'));
43
+ exports.$br = (0, as_element_factory_function_1.asElementFactory)((_, attrs) => (0, self_closing_element_function_1.selfClosingElement)('br', attrs));
44
+ exports.$button = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'button'));
45
+ exports.$canvas = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'canvas'));
46
+ exports.$caption = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'caption'));
47
+ exports.$cite = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'cite'));
48
+ exports.$code = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'code'));
49
+ exports.$col = (0, as_element_factory_function_1.asElementFactory)((_, attrs) => (0, self_closing_element_function_1.selfClosingElement)('col', attrs));
50
+ exports.$colgroup = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'colgroup'));
51
+ exports.$data = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'data'));
52
+ exports.$datalist = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'datalist'));
53
+ exports.$dd = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'dd'));
54
+ exports.$del = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'del'));
55
+ exports.$details = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'details'));
56
+ exports.$dfn = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'dfn'));
57
+ exports.$dialog = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'dialog'));
58
+ exports.$div = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'div'));
59
+ exports.$dl = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'dl'));
60
+ exports.$dt = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'dt'));
61
+ exports.$em = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'em'));
62
+ exports.$embed = (0, as_element_factory_function_1.asElementFactory)((_, attrs) => (0, self_closing_element_function_1.selfClosingElement)('embed', attrs));
63
+ exports.$fieldset = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'fieldset'));
64
+ exports.$figcaption = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'figcaption'));
65
+ exports.$figure = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'figure'));
66
+ exports.$footer = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'footer'));
67
+ exports.$form = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'form'));
68
+ exports.$h1 = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'h1'));
69
+ exports.$h2 = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'h2'));
70
+ exports.$h3 = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'h3'));
71
+ exports.$h4 = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'h4'));
72
+ exports.$h5 = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'h5'));
73
+ exports.$h6 = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'h6'));
74
+ exports.$head = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'head'));
75
+ exports.$header = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'header'));
76
+ exports.$hgroup = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'hgroup'));
77
+ exports.$hr = (0, as_element_factory_function_1.asElementFactory)((_, attrs) => (0, self_closing_element_function_1.selfClosingElement)('hr', attrs));
78
+ exports.$html = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'html'));
79
+ exports.$i = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'i'));
80
+ exports.$iframe = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'iframe'));
81
+ exports.$img = (0, as_element_factory_function_1.asElementFactory)((_, attrs) => (0, self_closing_element_function_1.selfClosingElement)('img', attrs));
82
+ exports.$input = (0, as_element_factory_function_1.asElementFactory)((_, attrs) => (0, self_closing_element_function_1.selfClosingElement)('input', attrs));
83
+ exports.$ins = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'ins'));
84
+ exports.$kbd = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'kbd'));
85
+ exports.$label = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'label'));
86
+ exports.$legend = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'legend'));
87
+ exports.$li = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'li'));
88
+ exports.$link = (0, as_element_factory_function_1.asElementFactory)((_, attrs) => (0, self_closing_element_function_1.selfClosingElement)('link', attrs));
89
+ exports.$main = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'main'));
90
+ exports.$map = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'map'));
91
+ exports.$mark = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'mark'));
92
+ exports.$math = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'math'));
93
+ exports.$menu = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'menu'));
94
+ exports.$meta = (0, as_element_factory_function_1.asElementFactory)((_, attrs) => (0, self_closing_element_function_1.selfClosingElement)('meta', attrs));
95
+ exports.$meter = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'meter'));
96
+ exports.$nav = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'nav'));
97
+ exports.$noscript = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'noscript'));
98
+ exports.$object = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'object'));
99
+ exports.$ol = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'ol'));
100
+ exports.$optgroup = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'optgroup'));
101
+ exports.$option = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'option'));
102
+ exports.$output = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'output'));
103
+ exports.$p = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'p'));
104
+ exports.$picture = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'picture'));
105
+ exports.$pre = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'pre'));
106
+ exports.$progress = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'progress'));
107
+ exports.$q = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'q'));
108
+ exports.$rp = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'rp'));
109
+ exports.$rt = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'rt'));
110
+ exports.$ruby = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'ruby'));
111
+ exports.$s = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 's'));
112
+ exports.$samp = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'samp'));
113
+ exports.$script = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'script'));
114
+ exports.$section = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'section'));
115
+ exports.$select = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'select'));
116
+ exports.$slot = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'slot'));
117
+ exports.$small = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'small'));
118
+ exports.$source = (0, as_element_factory_function_1.asElementFactory)((_, attrs) => (0, self_closing_element_function_1.selfClosingElement)('source', attrs));
119
+ exports.$span = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'span'));
120
+ exports.$strong = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'strong'));
121
+ exports.$style = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'style'));
122
+ exports.$sub = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'sub'));
123
+ exports.$summary = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'summary'));
124
+ exports.$sup = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'sup'));
125
+ exports.$table = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'table'));
126
+ exports.$tbody = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'tbody'));
127
+ exports.$td = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'td'));
128
+ exports.$template = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'template'));
129
+ exports.$textarea = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'textarea'));
130
+ exports.$tfoot = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'tfoot'));
131
+ exports.$th = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'th'));
132
+ exports.$thead = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'thead'));
133
+ exports.$time = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'time'));
134
+ exports.$title = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'title'));
135
+ exports.$tr = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'tr'));
136
+ exports.$track = (0, as_element_factory_function_1.asElementFactory)((_, attrs) => (0, self_closing_element_function_1.selfClosingElement)('track', attrs));
137
+ exports.$u = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'u'));
138
+ exports.$ul = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'ul'));
139
+ exports.$var = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'var'));
140
+ exports.$video = (0, as_element_factory_function_1.asElementFactory)(element_function_1.element.bind(null, 'video'));
141
+ exports.$wbr = (0, as_element_factory_function_1.asElementFactory)((_, attrs) => (0, self_closing_element_function_1.selfClosingElement)('wbr', attrs));
142
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/server/html/src/lib/dom/index.ts"],"names":[],"mappings":";;;;;AAAA,qEAAyD;AACzD,+FAAiF;AAOjF,mFAAsE;AAc7D,6FAdA,qCAAY,OAcA;AAbrB,mEAAsD;AAc7C,qFAdA,qBAAI,OAcA;AAbb,6FAA+E;AActE,iGAdA,8CAAgB,OAcA;AAbzB,mFAAsE;AAc7D,6FAdA,qCAAY,OAcA;AAbrB,qGAA2E;AAclE,yFAdA,0CAAQ,OAcA;AAbjB,2FAA6E;AAcpE,gGAdA,4CAAe,OAcA;AAbxB,6FAA+E;AActE,iGAdA,8CAAgB,OAcA;AAbzB,yEAA4D;AAcnD,wFAdA,2BAAO,OAcA;AAbhB,qFAAuE;AAc9D,6FAdA,sCAAY,OAcA;AAbrB,qGAAsF;AAc7E,oGAdA,qDAAmB,OAcA;AAb5B,qEAAyD;AAchD,uFAdA,wBAAM,OAcA;AAGF,QAAA,EAAE,GAAG,IAAA,8CAAgB,EAAC,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;AAC/C,QAAA,KAAK,GAAG,IAAA,8CAAgB,EAAC,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;AACrD,QAAA,QAAQ,GAAG,IAAA,8CAAgB,EAAC,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;AAC3D,QAAA,KAAK,GAAG,IAAA,8CAAgB,EAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,IAA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,GAAG,IAAA,8CAAgB,EAAC,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;AACvD,QAAA,GAAG,GAAG,IAAA,8CAAgB,EAAC,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AACjD,QAAA,MAAM,GAAG,IAAA,8CAAgB,EAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,IAAA,kDAAkB,EAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;AAC5E,QAAA,EAAE,GAAG,IAAA,8CAAgB,EAAC,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;AAC/C,QAAA,GAAG,GAAG,IAAA,8CAAgB,EAAC,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AACjD,QAAA,IAAI,GAAG,IAAA,8CAAgB,EAAC,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;AACnD,QAAA,MAAM,GAAG,IAAA,8CAAgB,EAAC,0BAAO,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;AACvD,QAAA,IAAI,GAAG,IAAA,8CAAgB,EAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,IAAA,kDAAkB,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ export interface TStyleManager {
2
+ applyStyle(css: string): string | null;
3
+ getStyles(): string;
4
+ }
5
+ export declare class StyleManager {
6
+ private static styleCache;
7
+ private static styles;
8
+ static applyStyle(css: string): string | null;
9
+ static getStyles(): string;
10
+ }
11
+ export declare const styleManager: typeof StyleManager;
12
+ //# sourceMappingURL=style-manager.constant.d.ts.map
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.styleManager = exports.StyleManager = void 0;
4
+ class StyleManager {
5
+ static styleCache = new Map();
6
+ static styles = [];
7
+ static applyStyle(css) {
8
+ if (!css)
9
+ return null;
10
+ const normalized = css.replace(/\s+/g, ' ').trim();
11
+ if (StyleManager.styleCache.has(normalized)) {
12
+ return StyleManager.styleCache.get(normalized);
13
+ }
14
+ const className = 'sc-' +
15
+ Buffer.from(normalized).toString('base64').slice(0, 8).replace(/[^a-zA-Z0-9]/g, '') +
16
+ '-' +
17
+ Math.random().toString(36).slice(2, 6);
18
+ StyleManager.styleCache.set(normalized, className);
19
+ StyleManager.styles.push(`.${className} { ${normalized} }`);
20
+ return className;
21
+ }
22
+ static getStyles() {
23
+ return StyleManager.styles.join('\n');
24
+ }
25
+ }
26
+ exports.StyleManager = StyleManager;
27
+ exports.styleManager = StyleManager;
28
+ //# sourceMappingURL=style-manager.constant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-manager.constant.js","sourceRoot":"","sources":["../../../../../../../../../libs/server/html/src/lib/dom/lib/constants/style-manager.constant.ts"],"names":[],"mappings":";;;AAKA,MAAa,YAAY;IACf,MAAM,CAAC,UAAU,GAAG,IAAI,GAAG,EAAkB,CAAC;IAC9C,MAAM,CAAC,MAAM,GAAa,EAAE,CAAC;IAErC,MAAM,CAAC,UAAU,CAAC,GAAW;QAC3B,IAAI,CAAC,GAAG;YAAE,OAAO,IAAI,CAAC;QACtB,MAAM,UAAU,GAAG,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;QACnD,IAAI,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC;YAC5C,OAAO,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,UAAU,CAAE,CAAC;QAClD,CAAC;QACD,MAAM,SAAS,GACb,KAAK;YACL,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC;YACnF,GAAG;YACH,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACzC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;QACnD,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,SAAS,MAAM,UAAU,IAAI,CAAC,CAAC;QAC5D,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,CAAC,SAAS;QACd,OAAO,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;;AAtBH,oCAuBC;AAEY,QAAA,YAAY,GAAG,YAAY,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { TElementRenderer } from '../../../types/element-renderer.type';
2
+ import { TElementProps } from '../types/element-props.type';
3
+ export declare function asElementFactory(renderer: TElementRenderer): (props?: TElementProps) => string;
4
+ //# sourceMappingURL=as-element-factory.function.d.ts.map
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.asElementFactory = asElementFactory;
4
+ function asElementFactory(renderer) {
5
+ return (props = {}) => {
6
+ const { style, className, children, textContent, innerHTML, ...attrs } = props;
7
+ const attributes = {
8
+ cssClass: className,
9
+ style,
10
+ ...attrs,
11
+ };
12
+ let content = [];
13
+ if (children && children.length)
14
+ content = children;
15
+ if (textContent != null)
16
+ content = [textContent];
17
+ if (innerHTML != null)
18
+ content = [innerHTML];
19
+ return renderer(content, attributes);
20
+ };
21
+ }
22
+ //# sourceMappingURL=as-element-factory.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"as-element-factory.function.js","sourceRoot":"","sources":["../../../../../../../../../libs/server/html/src/lib/dom/lib/functions/as-element-factory.function.ts"],"names":[],"mappings":";;AAIA,4CAgBC;AAhBD,SAAgB,gBAAgB,CAC9B,QAA0B;IAE1B,OAAO,CAAC,KAAK,GAAG,EAAE,EAAE,EAAE;QACpB,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;QAC/E,MAAM,UAAU,GAAgB;YAC9B,QAAQ,EAAE,SAAS;YACnB,KAAK;YACL,GAAG,KAAK;SACT,CAAC;QACF,IAAI,OAAO,GAA2B,EAAE,CAAC;QACzC,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM;YAAE,OAAO,GAAG,QAAQ,CAAC;QACpD,IAAI,WAAW,IAAI,IAAI;YAAE,OAAO,GAAG,CAAC,WAAW,CAAC,CAAC;QACjD,IAAI,SAAS,IAAI,IAAI;YAAE,OAAO,GAAG,CAAC,SAAS,CAAC,CAAC;QAC7C,OAAO,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IACvC,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function asId(prefix?: string): string;
2
+ //# sourceMappingURL=as-id.function.d.ts.map
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.asId = asId;
4
+ let idCounter = 0;
5
+ function asId(prefix = 'id') {
6
+ idCounter += 1;
7
+ return `${prefix}_${idCounter}`;
8
+ }
9
+ //# sourceMappingURL=as-id.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"as-id.function.js","sourceRoot":"","sources":["../../../../../../../../../libs/server/html/src/lib/dom/lib/functions/as-id.function.ts"],"names":[],"mappings":";;AAEA,oBAGC;AALD,IAAI,SAAS,GAAG,CAAC,CAAC;AAElB,SAAgB,IAAI,CAAC,MAAM,GAAG,IAAI;IAChC,SAAS,IAAI,CAAC,CAAC;IACf,OAAO,GAAG,MAAM,IAAI,SAAS,EAAE,CAAC;AAClC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function extractStyle(element: any, style: any): any;
2
+ //# sourceMappingURL=extract-style.function.d.ts.map
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.extractStyle = extractStyle;
4
+ function extractStyle(element, style) {
5
+ return undefined;
6
+ }
7
+ //# sourceMappingURL=extract-style.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extract-style.function.js","sourceRoot":"","sources":["../../../../../../../../../libs/server/html/src/lib/dom/lib/functions/extract-style.function.ts"],"names":[],"mappings":";;AAAA,oCAEC;AAFD,SAAgB,YAAY,CAAC,OAAY,EAAE,KAAU;IACnD,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function setAttrs(target: any, attrs: Record<string, any>): void;
2
+ //# sourceMappingURL=set-element-attributes.function.d.ts.map
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setAttrs = setAttrs;
4
+ function setAttrs(target, attrs) {
5
+ }
6
+ //# sourceMappingURL=set-element-attributes.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-element-attributes.function.js","sourceRoot":"","sources":["../../../../../../../../../libs/server/html/src/lib/dom/lib/functions/set-element-attributes.function.ts"],"names":[],"mappings":";;AAAA,4BACC;AADD,SAAgB,QAAQ,CAAC,MAAW,EAAE,KAA0B;AAChE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function setElementStyle(target: any, key: string, value: string): void;
2
+ //# sourceMappingURL=set-element-style.function.d.ts.map
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setElementStyle = setElementStyle;
4
+ function setElementStyle(target, key, value) {
5
+ }
6
+ //# sourceMappingURL=set-element-style.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-element-style.function.js","sourceRoot":"","sources":["../../../../../../../../../libs/server/html/src/lib/dom/lib/functions/set-element-style.function.ts"],"names":[],"mappings":";;AAAA,0CACC;AADD,SAAgB,eAAe,CAAC,MAAW,EAAE,GAAW,EAAE,KAAa;AACvE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function setElementStyles(target: any, styles: Record<string, any>): void;
2
+ //# sourceMappingURL=set-element-styles.function.d.ts.map
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setElementStyles = setElementStyles;
4
+ function setElementStyles(target, styles) {
5
+ }
6
+ //# sourceMappingURL=set-element-styles.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-element-styles.function.js","sourceRoot":"","sources":["../../../../../../../../../libs/server/html/src/lib/dom/lib/functions/set-element-styles.function.ts"],"names":[],"mappings":";;AAAA,4CACC;AADD,SAAgB,gBAAgB,CAAC,MAAW,EAAE,MAA2B;AACzE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function styleOnFocus(element: any, style: any, elementToStyle?: any, onlyIf?: () => boolean): void;
2
+ //# sourceMappingURL=style-on-focus.function.d.ts.map
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.styleOnFocus = styleOnFocus;
4
+ const style_on_function_1 = require("./style-on.function");
5
+ function styleOnFocus(element, style, elementToStyle, onlyIf) {
6
+ (0, style_on_function_1.styleOn)(element, 'focus', style, elementToStyle, onlyIf);
7
+ }
8
+ //# sourceMappingURL=style-on-focus.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-on-focus.function.js","sourceRoot":"","sources":["../../../../../../../../../libs/server/html/src/lib/dom/lib/functions/style-on-focus.function.ts"],"names":[],"mappings":";;AAEA,oCAOC;AATD,2DAA8C;AAE9C,SAAgB,YAAY,CAC1B,OAAY,EACZ,KAAU,EACV,cAAoB,EACpB,MAAsB;IAEtB,IAAA,2BAAO,EAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,CAAC,CAAC;AAC3D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function styleOnPointerEnter(element: any, style: any, elementToStyle?: any, onlyIf?: () => boolean): void;
2
+ //# sourceMappingURL=style-on-pointer-enter.function.d.ts.map
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.styleOnPointerEnter = styleOnPointerEnter;
4
+ const style_on_function_1 = require("./style-on.function");
5
+ function styleOnPointerEnter(element, style, elementToStyle, onlyIf) {
6
+ (0, style_on_function_1.styleOn)(element, 'mouseenter', style, elementToStyle, onlyIf);
7
+ }
8
+ //# sourceMappingURL=style-on-pointer-enter.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-on-pointer-enter.function.js","sourceRoot":"","sources":["../../../../../../../../../libs/server/html/src/lib/dom/lib/functions/style-on-pointer-enter.function.ts"],"names":[],"mappings":";;AAEA,kDAOC;AATD,2DAA8C;AAE9C,SAAgB,mBAAmB,CACjC,OAAY,EACZ,KAAU,EACV,cAAoB,EACpB,MAAsB;IAEtB,IAAA,2BAAO,EAAC,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,CAAC,CAAC;AAChE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function styleOn(element: any, event: string, style: any, elementToStyle?: any, onlyIf?: () => boolean): void;
2
+ //# sourceMappingURL=style-on.function.d.ts.map
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.styleOn = styleOn;
4
+ function styleOn(element, event, style, elementToStyle, onlyIf) {
5
+ }
6
+ //# sourceMappingURL=style-on.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-on.function.js","sourceRoot":"","sources":["../../../../../../../../../libs/server/html/src/lib/dom/lib/functions/style-on.function.ts"],"names":[],"mappings":";;AAAA,0BAQC;AARD,SAAgB,OAAO,CACrB,OAAY,EACZ,KAAa,EACb,KAAU,EACV,cAAoB,EACpB,MAAsB;AAGxB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function styled<T>(creator: (props?: any) => string): (css: TemplateStringsArray, ...values: any[]) => (props?: any) => string;
2
+ //# sourceMappingURL=styled.function.d.ts.map
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.styled = styled;
4
+ const style_manager_constant_1 = require("../constants/style-manager.constant");
5
+ function styled(creator) {
6
+ return (css, ...values) => (props = {}) => {
7
+ const raw = css.reduce((acc, part, i) => acc + part + (values[i] || ''), '').trim();
8
+ const className = style_manager_constant_1.styleManager.applyStyle(raw) || '';
9
+ const propsWithClass = {
10
+ ...props,
11
+ className: [className, props.className].filter(Boolean).join(' '),
12
+ };
13
+ return creator(propsWithClass);
14
+ };
15
+ }
16
+ //# sourceMappingURL=styled.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styled.function.js","sourceRoot":"","sources":["../../../../../../../../../libs/server/html/src/lib/dom/lib/functions/styled.function.ts"],"names":[],"mappings":";;AAEA,wBAeC;AAjBD,gFAAmE;AAEnE,SAAgB,MAAM,CACpB,OAAgC;IAEhC,OAAO,CAAC,GAAG,EAAE,GAAG,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,GAAG,EAAE,EAAE,EAAE;QACxC,MAAM,GAAG,GAAG,GAAG,CAAC,MAAM,CACpB,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,EAChD,EAAE,CACH,CAAC,IAAI,EAAE,CAAC;QACT,MAAM,SAAS,GAAG,qCAAY,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;QACrD,MAAM,cAAc,GAAG;YACrB,GAAG,KAAK;YACR,SAAS,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;SAClE,CAAC;QACF,OAAO,OAAO,CAAC,cAAc,CAAC,CAAC;IACjC,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { Properties } from 'csstype';
2
+ export interface CSSProperties extends Properties<string | number> {
3
+ [key: string]: string | number | undefined;
4
+ }
5
+ //# sourceMappingURL=css-properties.type.d.ts.map
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=css-properties.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css-properties.type.js","sourceRoot":"","sources":["../../../../../../../../../libs/server/html/src/lib/dom/lib/types/css-properties.type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { CSSProperties } from '../types/css-properties.type';
2
+ export interface TElementProps {
3
+ style?: CSSProperties;
4
+ className?: string;
5
+ children?: Array<string | number>;
6
+ textContent?: string;
7
+ innerHTML?: string;
8
+ [key: string]: any;
9
+ }
10
+ //# sourceMappingURL=element-props.type.d.ts.map
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=element-props.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"element-props.type.js","sourceRoot":"","sources":["../../../../../../../../../libs/server/html/src/lib/dom/lib/types/element-props.type.ts"],"names":[],"mappings":""}