@reidelsaltres/pureper 0.1.160 → 0.1.163
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/out/foundation/Triplet.d.ts.map +1 -1
- package/out/foundation/Triplet.js +4 -5
- package/out/foundation/Triplet.js.map +1 -1
- package/out/foundation/component_api/Component.d.ts +2 -2
- package/out/foundation/component_api/Component.d.ts.map +1 -1
- package/out/foundation/component_api/Component.js.map +1 -1
- package/out/foundation/component_api/UniHtml.d.ts +4 -10
- package/out/foundation/component_api/UniHtml.d.ts.map +1 -1
- package/out/foundation/component_api/UniHtml.js +7 -15
- package/out/foundation/component_api/UniHtml.js.map +1 -1
- package/out/foundation/engine/Rule.d.ts +2 -0
- package/out/foundation/engine/Rule.d.ts.map +1 -1
- package/out/foundation/engine/Rule.js.map +1 -1
- package/out/foundation/engine/Scope.d.ts +5 -1
- package/out/foundation/engine/Scope.d.ts.map +1 -1
- package/out/foundation/engine/Scope.js +12 -3
- package/out/foundation/engine/Scope.js.map +1 -1
- package/out/foundation/engine/TemplateEngine.d.ts +17 -0
- package/out/foundation/engine/TemplateEngine.d.ts.map +1 -1
- package/out/foundation/engine/TemplateEngine.js +51 -3
- package/out/foundation/engine/TemplateEngine.js.map +1 -1
- package/out/foundation/engine/TemplateInstance.d.ts +167 -47
- package/out/foundation/engine/TemplateInstance.d.ts.map +1 -1
- package/out/foundation/engine/TemplateInstance.js +500 -118
- package/out/foundation/engine/TemplateInstance.js.map +1 -1
- package/out/foundation/engine/TemplateInstance.old.d.ts +219 -0
- package/out/foundation/engine/TemplateInstance.old.d.ts.map +1 -0
- package/out/foundation/engine/TemplateInstance.old.js +487 -0
- package/out/foundation/engine/TemplateInstance.old.js.map +1 -0
- package/out/foundation/engine/rules/attribute/RefRule.d.ts.map +1 -1
- package/out/foundation/engine/rules/attribute/RefRule.js +7 -1
- package/out/foundation/engine/rules/attribute/RefRule.js.map +1 -1
- package/out/index.d.ts +0 -2
- package/out/index.d.ts.map +1 -1
- package/out/index.js +0 -2
- package/out/index.js.map +1 -1
- package/package.json +1 -1
- package/src/foundation/Triplet.ts +6 -6
- package/src/foundation/component_api/Component.ts +2 -1
- package/src/foundation/component_api/UniHtml.ts +12 -22
- package/src/foundation/engine/Rule.ts +2 -0
- package/src/foundation/engine/Scope.ts +13 -3
- package/src/foundation/engine/TemplateEngine.ts +79 -4
- package/src/foundation/engine/TemplateInstance.md +110 -0
- package/src/foundation/engine/TemplateInstance.old.ts +673 -0
- package/src/foundation/engine/TemplateInstance.ts +635 -147
- package/src/foundation/engine/rules/attribute/RefRule.ts +8 -1
- package/src/index.ts +0 -6
|
@@ -89,11 +89,18 @@ export default class RefRule extends AttributeRule {
|
|
|
89
89
|
return { output: '' };
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
// Сразу регистрируем ref в scope с null значением
|
|
93
|
+
// Будет заполнен реальным элементом при bindRefs()
|
|
94
|
+
if (!scope.has(refName)) {
|
|
95
|
+
scope.set(refName, null);
|
|
96
|
+
}
|
|
97
|
+
|
|
92
98
|
// Store placeholder - actual element will be set during DOM processing
|
|
93
99
|
// For now, return the attribute without the @[ref] syntax
|
|
94
100
|
return {
|
|
95
101
|
output: `data-ref="${refName}"`,
|
|
96
|
-
observables: []
|
|
102
|
+
observables: [],
|
|
103
|
+
data: { refName } // Сохраняем имя ref для быстрого доступа
|
|
97
104
|
};
|
|
98
105
|
}
|
|
99
106
|
|
package/src/index.ts
CHANGED
|
@@ -16,14 +16,8 @@ export { ReComponent, RePage } from './foundation/TripletDecorator.js';
|
|
|
16
16
|
export { default as Fetcher } from './foundation/Fetcher.js';
|
|
17
17
|
export { default as HMLEParser } from './foundation/HMLEParser.js';
|
|
18
18
|
|
|
19
|
-
export * from './foundation/engine/TemplateInstance.js';
|
|
20
19
|
export * from './foundation/engine/TemplateEngine.js';
|
|
21
20
|
|
|
22
|
-
export {
|
|
23
|
-
InvalidDynamicRuleUsage,
|
|
24
|
-
InvalidTemplateEngineSyntaxException
|
|
25
|
-
} from './foundation/engine/exceptions/TemplateExceptions.js';
|
|
26
|
-
|
|
27
21
|
export { Router } from './foundation/worker/Router.js';
|
|
28
22
|
export { default as ServiceWorker } from './foundation/worker/ServiceWorker.js';
|
|
29
23
|
|