@onivoro/server-html 24.23.0 → 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.
- package/README.md +18 -0
- package/package.json +7 -2
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/index.js.map +1 -1
- package/src/lib/dom/index.d.ts +139 -0
- package/src/lib/dom/index.js +142 -0
- package/src/lib/dom/index.js.map +1 -0
- package/src/lib/dom/lib/constants/style-manager.constant.d.ts +12 -0
- package/src/lib/dom/lib/constants/style-manager.constant.js +28 -0
- package/src/lib/dom/lib/constants/style-manager.constant.js.map +1 -0
- package/src/lib/dom/lib/functions/as-element-factory.function.d.ts +4 -0
- package/src/lib/dom/lib/functions/as-element-factory.function.js +22 -0
- package/src/lib/dom/lib/functions/as-element-factory.function.js.map +1 -0
- package/src/lib/dom/lib/functions/as-id.function.d.ts +2 -0
- package/src/lib/dom/lib/functions/as-id.function.js +9 -0
- package/src/lib/dom/lib/functions/as-id.function.js.map +1 -0
- package/src/lib/dom/lib/functions/extract-style.function.d.ts +2 -0
- package/src/lib/dom/lib/functions/extract-style.function.js +7 -0
- package/src/lib/dom/lib/functions/extract-style.function.js.map +1 -0
- package/src/lib/dom/lib/functions/set-element-attributes.function.d.ts +2 -0
- package/src/lib/dom/lib/functions/set-element-attributes.function.js +6 -0
- package/src/lib/dom/lib/functions/set-element-attributes.function.js.map +1 -0
- package/src/lib/dom/lib/functions/set-element-style.function.d.ts +2 -0
- package/src/lib/dom/lib/functions/set-element-style.function.js +6 -0
- package/src/lib/dom/lib/functions/set-element-style.function.js.map +1 -0
- package/src/lib/dom/lib/functions/set-element-styles.function.d.ts +2 -0
- package/src/lib/dom/lib/functions/set-element-styles.function.js +6 -0
- package/src/lib/dom/lib/functions/set-element-styles.function.js.map +1 -0
- package/src/lib/dom/lib/functions/style-on-focus.function.d.ts +2 -0
- package/src/lib/dom/lib/functions/style-on-focus.function.js +8 -0
- package/src/lib/dom/lib/functions/style-on-focus.function.js.map +1 -0
- package/src/lib/dom/lib/functions/style-on-pointer-enter.function.d.ts +2 -0
- package/src/lib/dom/lib/functions/style-on-pointer-enter.function.js +8 -0
- package/src/lib/dom/lib/functions/style-on-pointer-enter.function.js.map +1 -0
- package/src/lib/dom/lib/functions/style-on.function.d.ts +2 -0
- package/src/lib/dom/lib/functions/style-on.function.js +6 -0
- package/src/lib/dom/lib/functions/style-on.function.js.map +1 -0
- package/src/lib/dom/lib/functions/styled.function.d.ts +2 -0
- package/src/lib/dom/lib/functions/styled.function.js +16 -0
- package/src/lib/dom/lib/functions/styled.function.js.map +1 -0
- package/src/lib/dom/lib/types/css-properties.type.d.ts +5 -0
- package/src/lib/dom/lib/types/css-properties.type.js +3 -0
- package/src/lib/dom/lib/types/css-properties.type.js.map +1 -0
- package/src/lib/dom/lib/types/element-props.type.d.ts +10 -0
- package/src/lib/dom/lib/types/element-props.type.js +3 -0
- package/src/lib/dom/lib/types/element-props.type.js.map +1 -0
- package/src/lib/primitives/inline-style.function.d.ts +2 -1
- package/src/lib/primitives/inline-style.function.js +5 -1
- package/src/lib/primitives/inline-style.function.js.map +1 -1
- package/src/lib/types/attributes.type.d.ts +3 -1
package/README.md
CHANGED
|
@@ -42,10 +42,28 @@ const actionButton = button(['Click Me'], {
|
|
|
42
42
|
href: '/action',
|
|
43
43
|
style: { 'background-color': '#007bff', color: 'white' }
|
|
44
44
|
});
|
|
45
|
+
|
|
46
|
+
## DOM API Compatibility
|
|
47
|
+
|
|
48
|
+
Use the familiar $-prefixed element factories from @vanilla-mint/dom for server-side rendering:
|
|
49
|
+
|
|
50
|
+
```typescript
|
|
51
|
+
import { $div, $h1, $p, styled } from '@onivoro/server-html';
|
|
52
|
+
|
|
53
|
+
const html = $div({
|
|
54
|
+
className: 'container',
|
|
55
|
+
style: { display: 'flex', flexDirection: 'column' },
|
|
56
|
+
children: [
|
|
57
|
+
$h1({ textContent: 'Server-Side Rendering', style: { fontWeight: 700 }}),
|
|
58
|
+
$p({ textContent: 'This markup was generated on the server.' })
|
|
59
|
+
]
|
|
60
|
+
});
|
|
45
61
|
```
|
|
46
62
|
|
|
47
63
|
## Core Concepts
|
|
48
64
|
|
|
65
|
+
## Core Concepts
|
|
66
|
+
|
|
49
67
|
### Element Builders
|
|
50
68
|
|
|
51
69
|
The library provides functional element builders for all common HTML elements:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onivoro/server-html",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.24.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -12,7 +12,12 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"tslib": "^2.3.0"
|
|
14
14
|
},
|
|
15
|
-
"peerDependencies": {
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"csstype": "^3.1.3"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"csstype": "^3.1.3"
|
|
20
|
+
},
|
|
16
21
|
"files": [
|
|
17
22
|
"**/*.js",
|
|
18
23
|
"**/*.d.ts",
|
package/src/index.d.ts
CHANGED
|
@@ -18,4 +18,5 @@ export * from './lib/types/element-renderer.type';
|
|
|
18
18
|
export * from './lib/types/self-closing-element-renderer.type';
|
|
19
19
|
export * from './lib/email-body.function';
|
|
20
20
|
export * from './lib/table.function';
|
|
21
|
+
export * from './lib/dom';
|
|
21
22
|
//# sourceMappingURL=index.d.ts.map
|
package/src/index.js
CHANGED
|
@@ -21,4 +21,5 @@ tslib_1.__exportStar(require("./lib/types/element-renderer.type"), exports);
|
|
|
21
21
|
tslib_1.__exportStar(require("./lib/types/self-closing-element-renderer.type"), exports);
|
|
22
22
|
tslib_1.__exportStar(require("./lib/email-body.function"), exports);
|
|
23
23
|
tslib_1.__exportStar(require("./lib/table.function"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./lib/dom"), exports);
|
|
24
25
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/server/html/src/index.ts"],"names":[],"mappings":";;;AAAA,sEAA4C;AAC5C,sFAA4D;AAC5D,yEAA+C;AAC/C,iFAAuD;AACvD,mGAAyE;AACzE,qFAA2D;AAC3D,wEAA8C;AAC9C,gEAAsC;AAEtC,4EAAkD;AAClD,oEAA0C;AAC1C,sFAA4D;AAC5D,iFAAuD;AACvD,yFAA+D;AAE/D,8EAAoD;AACpD,4EAAkD;AAElD,sEAA4C;AAC5C,4EAAkD;AAClD,yFAA+D;AAE/D,oEAA0C;AAC1C,+DAAqC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/server/html/src/index.ts"],"names":[],"mappings":";;;AAAA,sEAA4C;AAC5C,sFAA4D;AAC5D,yEAA+C;AAC/C,iFAAuD;AACvD,mGAAyE;AACzE,qFAA2D;AAC3D,wEAA8C;AAC9C,gEAAsC;AAEtC,4EAAkD;AAClD,oEAA0C;AAC1C,sFAA4D;AAC5D,iFAAuD;AACvD,yFAA+D;AAE/D,8EAAoD;AACpD,4EAAkD;AAElD,sEAA4C;AAC5C,4EAAkD;AAClD,yFAA+D;AAE/D,oEAA0C;AAC1C,+DAAqC;AACrC,oDAA0B"}
|
|
@@ -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;A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AAC,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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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,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,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 @@
|
|
|
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,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 @@
|
|
|
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
|
|
@@ -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":""}
|
|
@@ -3,7 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.inlineStyle = inlineStyle;
|
|
4
4
|
function inlineStyle(styles) {
|
|
5
5
|
const rules = Object.entries(styles)
|
|
6
|
-
.
|
|
6
|
+
.filter(([, v]) => (v != null) && (v != undefined))
|
|
7
|
+
.map(([k, v]) => {
|
|
8
|
+
const prop = k.replace(/([A-Z])/g, '-$1').toLowerCase();
|
|
9
|
+
return `${prop}: ${v};`;
|
|
10
|
+
})
|
|
7
11
|
.join(' ');
|
|
8
12
|
return `style="${rules}"`;
|
|
9
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-style.function.js","sourceRoot":"","sources":["../../../../../../../libs/server/html/src/lib/primitives/inline-style.function.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"inline-style.function.js","sourceRoot":"","sources":["../../../../../../../libs/server/html/src/lib/primitives/inline-style.function.ts"],"names":[],"mappings":";;AAEA,kCAUC;AAVD,SAAgB,WAAW,CAAC,MAAqB;IAC/C,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC;SACjC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC;SAClD,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE;QAEd,MAAM,IAAI,GAAG,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;QACxD,OAAO,GAAG,IAAI,KAAK,CAAC,GAAG,CAAC;IAC1B,CAAC,CAAC;SACD,IAAI,CAAC,GAAG,CAAC,CAAC;IACb,OAAO,UAAU,KAAK,GAAG,CAAC;AAC5B,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { CSSProperties } from '../dom/lib/types/css-properties.type';
|
|
2
|
+
export { CSSProperties };
|
|
1
3
|
export type TAttributes = Record<string, any> & {
|
|
2
4
|
cssClass?: string;
|
|
3
|
-
style?:
|
|
5
|
+
style?: CSSProperties;
|
|
4
6
|
};
|
|
5
7
|
//# sourceMappingURL=attributes.type.d.ts.map
|