@jqhtml/core 2.3.59 → 2.3.61
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/dist/boot.d.ts +0 -0
- package/dist/boot.d.ts.map +0 -0
- package/dist/cache-key-serializer.d.ts +0 -0
- package/dist/cache-key-serializer.d.ts.map +0 -0
- package/dist/component-cache.d.ts +0 -0
- package/dist/component-cache.d.ts.map +0 -0
- package/dist/component-events.d.ts +0 -0
- package/dist/component-events.d.ts.map +0 -0
- package/dist/component-queue.d.ts +0 -0
- package/dist/component-queue.d.ts.map +0 -0
- package/dist/component-registry.d.ts +0 -0
- package/dist/component-registry.d.ts.map +0 -0
- package/dist/component.d.ts +0 -5
- package/dist/component.d.ts.map +1 -1
- package/dist/config.d.ts +0 -0
- package/dist/config.d.ts.map +0 -0
- package/dist/data-proxy.d.ts +0 -0
- package/dist/data-proxy.d.ts.map +0 -0
- package/dist/debug-entry.d.ts +0 -0
- package/dist/debug-entry.d.ts.map +0 -0
- package/dist/debug.d.ts +0 -0
- package/dist/debug.d.ts.map +0 -0
- package/dist/index.cjs +22 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -0
- package/dist/index.d.ts.map +0 -0
- package/dist/index.js +22 -31
- package/dist/index.js.map +1 -1
- package/dist/instruction-processor.d.ts +2 -1
- package/dist/instruction-processor.d.ts.map +1 -1
- package/dist/jqhtml-core.esm.js +23 -32
- package/dist/jqhtml-core.esm.js.map +1 -1
- package/dist/jqhtml-debug.esm.js +0 -0
- package/dist/jqhtml-debug.esm.js.map +0 -0
- package/dist/jquery-plugin.d.ts +0 -0
- package/dist/jquery-plugin.d.ts.map +0 -0
- package/dist/lifecycle-manager.d.ts +0 -0
- package/dist/lifecycle-manager.d.ts.map +0 -0
- package/dist/load-coordinator.d.ts +0 -0
- package/dist/load-coordinator.d.ts.map +0 -0
- package/dist/local-storage.d.ts +0 -0
- package/dist/local-storage.d.ts.map +0 -0
- package/dist/preload-data.d.ts +0 -0
- package/dist/preload-data.d.ts.map +0 -0
- package/dist/template-renderer.d.ts +0 -0
- package/dist/template-renderer.d.ts.map +0 -0
- package/dist/viewport.d.ts +0 -0
- package/dist/viewport.d.ts.map +0 -0
- package/package.json +1 -1
- package/dist/boot.js +0 -130
- package/dist/boot.js.map +0 -1
- package/dist/cache-key-serializer.js +0 -140
- package/dist/cache-key-serializer.js.map +0 -1
- package/dist/component-cache.js +0 -270
- package/dist/component-cache.js.map +0 -1
- package/dist/component-events.js +0 -141
- package/dist/component-events.js.map +0 -1
- package/dist/component-queue.js +0 -118
- package/dist/component-queue.js.map +0 -1
- package/dist/component-registry.js +0 -298
- package/dist/component-registry.js.map +0 -1
- package/dist/component.js +0 -1892
- package/dist/component.js.map +0 -1
- package/dist/config.js +0 -64
- package/dist/config.js.map +0 -1
- package/dist/data-proxy.js +0 -223
- package/dist/data-proxy.js.map +0 -1
- package/dist/debug-entry.js +0 -8
- package/dist/debug-entry.js.map +0 -1
- package/dist/debug.js +0 -203
- package/dist/debug.js.map +0 -1
- package/dist/instruction-processor.js +0 -563
- package/dist/instruction-processor.js.map +0 -1
- package/dist/jquery-plugin.js +0 -472
- package/dist/jquery-plugin.js.map +0 -1
- package/dist/lifecycle-manager.js +0 -201
- package/dist/lifecycle-manager.js.map +0 -1
- package/dist/load-coordinator.js +0 -309
- package/dist/load-coordinator.js.map +0 -1
- package/dist/local-storage.js +0 -699
- package/dist/local-storage.js.map +0 -1
- package/dist/preload-data.js +0 -136
- package/dist/preload-data.js.map +0 -1
- package/dist/template-renderer.js +0 -278
- package/dist/template-renderer.js.map +0 -1
- package/dist/viewport.js +0 -69
- package/dist/viewport.js.map +0 -1
package/dist/boot.d.ts
CHANGED
|
File without changes
|
package/dist/boot.d.ts.map
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/component.d.ts
CHANGED
|
@@ -497,11 +497,6 @@ export declare class Jqhtml_Component {
|
|
|
497
497
|
*/
|
|
498
498
|
static get_class_hierarchy(): string[];
|
|
499
499
|
private _generate_cid;
|
|
500
|
-
/**
|
|
501
|
-
* Flatten instruction array - converts ['_content', [...]] markers to flat array
|
|
502
|
-
* Recursively flattens nested content from content() calls
|
|
503
|
-
*/
|
|
504
|
-
private _flatten_instructions;
|
|
505
500
|
private _apply_css_classes;
|
|
506
501
|
private _apply_default_attributes;
|
|
507
502
|
private _set_attributes;
|
package/dist/component.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAuBH,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,YAAY,CAAC,EAAE;YACb,GAAG,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;YACjF,UAAU,EAAE,MAAM,IAAI,CAAC;SACxB,CAAC;KACH;CACF;AAED,qBAAa,gBAAgB;IAE3B,MAAM,CAAC,kBAAkB,UAAQ;IACjC,MAAM,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC;IAGtB,MAAM,CAAC,QAAQ,CAAC,sBAAsB,SAA0B;IAGhE,CAAC,EAAE,GAAG,CAAC;IACP,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAK;IAGzB,OAAO,CAAC,kBAAkB,CAAmB;IAC7C,OAAO,CAAC,aAAa,CAAi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AAG,IAAI;IAI3F;;;OAGG;IACH,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,IAAI;IAI7C;;OAEG;IACH,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAI3C;;;OAGG;IACH,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAIpC;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG;IAgB3B;;;;;;;;;;;;;;;OAeG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI;IAgB9C;;;OAGG;IACH,YAAY,IAAI,gBAAgB,GAAG,IAAI;IAIvC;;OAEG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,EAAE;IAa1C;;;;;;;;;OASG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI;IAwBlD;;OAEG;IACH,MAAM,CAAC,mBAAmB,IAAI,MAAM,EAAE;IA0CtC,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,kBAAkB;IA4B1B,OAAO,CAAC,yBAAyB;IAuHjC,OAAO,CAAC,eAAe;IAevB,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,gBAAgB;IAcxB;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IA+BzB,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,UAAU;CAUnB"}
|
package/dist/config.d.ts
CHANGED
|
File without changes
|
package/dist/config.d.ts.map
CHANGED
|
File without changes
|
package/dist/data-proxy.d.ts
CHANGED
|
File without changes
|
package/dist/data-proxy.d.ts.map
CHANGED
|
File without changes
|
package/dist/debug-entry.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/debug.d.ts
CHANGED
|
File without changes
|
package/dist/debug.d.ts.map
CHANGED
|
File without changes
|
package/dist/index.cjs
CHANGED
|
@@ -638,7 +638,9 @@ function process_instructions(instructions, target, context, slots) {
|
|
|
638
638
|
if (el) {
|
|
639
639
|
const element = $(el);
|
|
640
640
|
el.removeAttribute('data-tid');
|
|
641
|
-
|
|
641
|
+
// Bind to the component whose template wrote this element, which for
|
|
642
|
+
// spliced content is not the component being rendered.
|
|
643
|
+
apply_attributes(element, tagData.attrs, tagData.context);
|
|
642
644
|
}
|
|
643
645
|
}
|
|
644
646
|
// Third pass: initialize and boot components in parallel
|
|
@@ -664,6 +666,16 @@ function process_instruction_to_html(instruction, html, tagElements, components,
|
|
|
664
666
|
// Raw HTML/text - no escaping, as requested
|
|
665
667
|
html.push(instruction);
|
|
666
668
|
}
|
|
669
|
+
else if (Array.isArray(instruction)) {
|
|
670
|
+
if (instruction[0] !== '_content' || !Array.isArray(instruction[1])) {
|
|
671
|
+
return;
|
|
672
|
+
}
|
|
673
|
+
// Content written in another template renders in that template's component.
|
|
674
|
+
const definer = instruction[2] || context;
|
|
675
|
+
for (const item of instruction[1]) {
|
|
676
|
+
process_instruction_to_html(item, html, tagElements, components, definer, slots);
|
|
677
|
+
}
|
|
678
|
+
}
|
|
667
679
|
else if ('tag' in instruction) {
|
|
668
680
|
// HTML tag
|
|
669
681
|
process_tag_to_html(instruction, html, tagElements, components, context);
|
|
@@ -1839,7 +1851,7 @@ Load_Coordinator._registry = new Map();
|
|
|
1839
1851
|
const class_registry = Object.create(null);
|
|
1840
1852
|
// Markers for serialized class instances (unique to avoid collisions with user data)
|
|
1841
1853
|
// Replaced at build time by rollup (see rollup.config.js).
|
|
1842
|
-
const CORE_VERSION = '2.3.
|
|
1854
|
+
const CORE_VERSION = '2.3.61';
|
|
1843
1855
|
const CLASS_MARKER = '__jqhtml_class__';
|
|
1844
1856
|
const PROPS_MARKER = '__jqhtml_props__';
|
|
1845
1857
|
/**
|
|
@@ -3848,10 +3860,10 @@ class Jqhtml_Component {
|
|
|
3848
3860
|
// Create a content function that invokes child slots
|
|
3849
3861
|
// When parent calls content('slotName'), it invokes the child's slot function
|
|
3850
3862
|
const childSlots = instructions._slots;
|
|
3851
|
-
const contentFunction = (slotName,
|
|
3863
|
+
const contentFunction = (slotName, ...slotArgs) => {
|
|
3852
3864
|
if (childSlots[slotName] && typeof childSlots[slotName] === 'function') {
|
|
3853
|
-
// Invoke the slot function with
|
|
3854
|
-
const [slotInstructions, slotContext] = childSlots[slotName](
|
|
3865
|
+
// Invoke the slot function with everything content() was given
|
|
3866
|
+
const [slotInstructions, slotContext] = childSlots[slotName](...slotArgs);
|
|
3855
3867
|
// Return in render function format: [instructions, context]
|
|
3856
3868
|
// The template expression handler expects this format
|
|
3857
3869
|
return [slotInstructions, slotContext];
|
|
@@ -3876,12 +3888,11 @@ class Jqhtml_Component {
|
|
|
3876
3888
|
instructions = [];
|
|
3877
3889
|
}
|
|
3878
3890
|
}
|
|
3879
|
-
//
|
|
3880
|
-
//
|
|
3881
|
-
|
|
3882
|
-
// Process instructions to generate DOM
|
|
3891
|
+
// Process instructions to generate DOM. ['_content', ...] markers from
|
|
3892
|
+
// content() are handled by the processor, which renders them in the
|
|
3893
|
+
// component that wrote them.
|
|
3883
3894
|
// This kicks off child component boots but doesn't wait for them
|
|
3884
|
-
process_instructions(
|
|
3895
|
+
process_instructions(instructions, this.$, this);
|
|
3885
3896
|
}
|
|
3886
3897
|
// Don't update ready state here - let phases complete in order
|
|
3887
3898
|
this._update_debug_attrs();
|
|
@@ -5041,26 +5052,6 @@ class Jqhtml_Component {
|
|
|
5041
5052
|
_generate_cid() {
|
|
5042
5053
|
return uid();
|
|
5043
5054
|
}
|
|
5044
|
-
/**
|
|
5045
|
-
* Flatten instruction array - converts ['_content', [...]] markers to flat array
|
|
5046
|
-
* Recursively flattens nested content from content() calls
|
|
5047
|
-
*/
|
|
5048
|
-
_flatten_instructions(instructions) {
|
|
5049
|
-
const result = [];
|
|
5050
|
-
for (const instruction of instructions) {
|
|
5051
|
-
// Check if this is a _content marker: ['_content', [...]]
|
|
5052
|
-
if (Array.isArray(instruction) && instruction[0] === '_content' && Array.isArray(instruction[1])) {
|
|
5053
|
-
// Recursively flatten the content instructions
|
|
5054
|
-
const contentInstructions = this._flatten_instructions(instruction[1]);
|
|
5055
|
-
result.push(...contentInstructions);
|
|
5056
|
-
}
|
|
5057
|
-
else {
|
|
5058
|
-
// Regular instruction - keep as is
|
|
5059
|
-
result.push(instruction);
|
|
5060
|
-
}
|
|
5061
|
-
}
|
|
5062
|
-
return result;
|
|
5063
|
-
}
|
|
5064
5055
|
_apply_css_classes() {
|
|
5065
5056
|
const hierarchy = this.constructor.get_class_hierarchy();
|
|
5066
5057
|
// If component name differs from class name, add component name to hierarchy
|
|
@@ -6182,7 +6173,7 @@ function init(jQuery, config) {
|
|
|
6182
6173
|
}
|
|
6183
6174
|
}
|
|
6184
6175
|
// Version - will be replaced during build with actual version from package.json
|
|
6185
|
-
const version = '2.3.
|
|
6176
|
+
const version = '2.3.61';
|
|
6186
6177
|
// Default export with all functionality
|
|
6187
6178
|
const jqhtml = {
|
|
6188
6179
|
// Core
|