marko 5.37.46 → 5.37.48
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/node_modules/@internal/components-entry/index.js +17 -10
- package/dist/node_modules/@internal/components-entry-legacy/index-browser.js +3 -3
- package/dist/node_modules/@internal/components-registry/index-browser.js +33 -33
- package/dist/node_modules/@internal/components-registry/index.js +2 -2
- package/dist/node_modules/@internal/components-util/index-browser.js +16 -16
- package/dist/node_modules/@internal/components-util/index.js +4 -4
- package/dist/node_modules/@internal/create-readable/index-browser.js +1 -1
- package/dist/node_modules/@internal/create-readable/index.js +9 -9
- package/dist/node_modules/@internal/preserve-tag/index-browser.js +5 -5
- package/dist/node_modules/@internal/preserve-tag/index.js +1 -1
- package/dist/node_modules/@internal/set-immediate/index-browser.js +1 -1
- package/dist/node_modules/@internal/set-immediate/index-worker.js +2 -2
- package/dist/node_modules/@internal/set-immediate/index.js +2 -2
- package/dist/runtime/RenderResult.js +3 -3
- package/dist/runtime/components/Component.js +95 -95
- package/dist/runtime/components/ComponentDef.js +18 -18
- package/dist/runtime/components/ComponentsContext.js +3 -3
- package/dist/runtime/components/GlobalComponentsContext.js +3 -3
- package/dist/runtime/components/KeySequence.js +3 -3
- package/dist/runtime/components/ServerComponent.js +1 -1
- package/dist/runtime/components/State.js +19 -19
- package/dist/runtime/components/attach-detach.js +7 -7
- package/dist/runtime/components/dom-data.js +5 -5
- package/dist/runtime/components/event-delegation.js +9 -9
- package/dist/runtime/components/legacy/defineRenderer-legacy.js +11 -11
- package/dist/runtime/components/legacy/dependencies/index.js +7 -7
- package/dist/runtime/components/legacy/renderer-legacy.js +28 -28
- package/dist/runtime/components/renderer.js +27 -27
- package/dist/runtime/components/update-manager.js +4 -4
- package/dist/runtime/createOut.js +1 -1
- package/dist/runtime/dom-insert.js +5 -5
- package/dist/runtime/helpers/_change-case.js +2 -2
- package/dist/runtime/helpers/dynamic-tag.js +9 -9
- package/dist/runtime/helpers/render-tag.js +1 -1
- package/dist/runtime/helpers/serialize-noop.js +1 -1
- package/dist/runtime/helpers/style-value.js +1 -1
- package/dist/runtime/helpers/tags-compat/runtime-dom.js +23 -23
- package/dist/runtime/helpers/tags-compat/runtime-html.js +67 -24
- package/dist/runtime/html/AsyncStream.js +20 -20
- package/dist/runtime/html/BufferedWriter.js +2 -2
- package/dist/runtime/html/helpers/_dynamic-attr.js +2 -2
- package/dist/runtime/html/helpers/attr.js +2 -2
- package/dist/runtime/html/helpers/data-marko.js +1 -1
- package/dist/runtime/html/helpers/escape-xml.js +1 -1
- package/dist/runtime/html/index.js +1 -1
- package/dist/runtime/renderable.js +3 -3
- package/dist/runtime/vdom/AsyncVDOMBuilder.js +83 -83
- package/dist/runtime/vdom/VComment.js +7 -7
- package/dist/runtime/vdom/VComponent.js +4 -4
- package/dist/runtime/vdom/VDocumentFragment.js +6 -6
- package/dist/runtime/vdom/VElement.js +36 -36
- package/dist/runtime/vdom/VFragment.js +9 -9
- package/dist/runtime/vdom/VNode.js +33 -33
- package/dist/runtime/vdom/VText.js +8 -8
- package/dist/runtime/vdom/helpers/const-element.js +3 -3
- package/dist/runtime/vdom/hot-reload.js +14 -14
- package/dist/runtime/vdom/index.js +1 -1
- package/dist/runtime/vdom/morphdom/fragment.js +5 -5
- package/dist/runtime/vdom/morphdom/helpers.js +5 -5
- package/dist/runtime/vdom/morphdom/index.js +68 -68
- package/dist/runtime/vdom/vdom.js +15 -15
- package/dist/translator/util/get-component-files.js +1 -1
- package/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/node_modules/@internal/components-entry/index.js +19 -12
- package/src/runtime/helpers/tags-compat/runtime-dom.js +3 -3
- package/src/runtime/helpers/tags-compat/runtime-html.js +66 -23
- package/tags-html.d.ts +1 -1
@@ -6,8 +6,8 @@ var EventEmitter = require("events-light");
|
|
6
6
|
var SubscriptionTracker = require("listener-tracker");
|
7
7
|
var inherit = require("raptor-util/inherit");
|
8
8
|
var componentsUtil = require("@internal/components-util");
|
9
|
-
var componentLookup = componentsUtil.
|
10
|
-
var destroyNodeRecursive = componentsUtil.
|
9
|
+
var componentLookup = componentsUtil._m_;
|
10
|
+
var destroyNodeRecursive = componentsUtil._S_;
|
11
11
|
var defaultCreateOut = require("../createOut");
|
12
12
|
var domInsert = require("../dom-insert");
|
13
13
|
var RenderResult = require("../RenderResult");
|
@@ -17,8 +17,8 @@ require("./ComponentsContext").S_;
|
|
17
17
|
var domData = require("./dom-data");
|
18
18
|
var eventDelegation = require("./event-delegation");
|
19
19
|
var updateManager = require("./update-manager");
|
20
|
-
var componentsByDOMNode = domData.
|
21
|
-
var keyedElementsByComponentId = domData.
|
20
|
+
var componentsByDOMNode = domData._q_;
|
21
|
+
var keyedElementsByComponentId = domData._p_;
|
22
22
|
var CONTEXT_KEY = "__subtree_context__";
|
23
23
|
|
24
24
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
@@ -127,8 +127,8 @@ function processUpdateHandlers(component, stateChanges, oldState) {
|
|
127
127
|
handlerMethod.call(component, newValue, oldValue);
|
128
128
|
});
|
129
129
|
|
130
|
-
component.
|
131
|
-
component.
|
130
|
+
component._z_();
|
131
|
+
component._u_();
|
132
132
|
}
|
133
133
|
|
134
134
|
return true;
|
@@ -169,20 +169,20 @@ function Component(id) {
|
|
169
169
|
EventEmitter.call(this);
|
170
170
|
this.id = id;
|
171
171
|
this.z_ = null;
|
172
|
-
this.
|
173
|
-
this.
|
174
|
-
this.
|
172
|
+
this._F_ = null;
|
173
|
+
this.aj_ = null;
|
174
|
+
this._x_ = null;
|
175
175
|
this.Y_ = null; // Used to keep track of bubbling DOM events for components rendered on the server
|
176
176
|
this.W_ = null;
|
177
177
|
this.X_ = null;
|
178
|
-
this.
|
178
|
+
this.ak_ = null;
|
179
179
|
this.O_ = undefined;
|
180
|
-
this.
|
181
|
-
this.
|
180
|
+
this._y_ = false;
|
181
|
+
this.al_ = undefined;
|
182
182
|
this.I_ = false;
|
183
183
|
this._b_ = false;
|
184
|
-
this.al_ = false;
|
185
184
|
this.am_ = false;
|
185
|
+
this.an_ = false;
|
186
186
|
this.B_ = undefined;
|
187
187
|
|
188
188
|
var ssrKeyedElements = keyedElementsByComponentId[id];
|
@@ -204,8 +204,8 @@ Component.prototype = componentProto = {
|
|
204
204
|
}
|
205
205
|
|
206
206
|
var subscriptions =
|
207
|
-
this.
|
208
|
-
this.
|
207
|
+
this.aj_ || (
|
208
|
+
this.aj_ = new SubscriptionTracker());
|
209
209
|
|
210
210
|
var subscribeToOptions = target.x_ ?
|
211
211
|
COMPONENT_SUBSCRIBE_TO_OPTIONS :
|
@@ -304,16 +304,16 @@ Component.prototype = componentProto = {
|
|
304
304
|
return;
|
305
305
|
}
|
306
306
|
|
307
|
-
var root = this.
|
307
|
+
var root = this._F_;
|
308
308
|
|
309
|
-
this.
|
309
|
+
this._O_();
|
310
310
|
|
311
311
|
var nodes = root.nodes;
|
312
312
|
|
313
313
|
nodes.forEach(function (node) {
|
314
314
|
destroyNodeRecursive(node);
|
315
315
|
|
316
|
-
if (eventDelegation.
|
316
|
+
if (eventDelegation.ao_(node) !== false) {
|
317
317
|
node.parentNode.removeChild(node);
|
318
318
|
}
|
319
319
|
});
|
@@ -324,25 +324,25 @@ Component.prototype = componentProto = {
|
|
324
324
|
this.K_ = {};
|
325
325
|
},
|
326
326
|
|
327
|
-
|
327
|
+
_O_: function () {
|
328
328
|
if (this.I_) {
|
329
329
|
return;
|
330
330
|
}
|
331
331
|
|
332
|
-
this.
|
332
|
+
this.ap_();
|
333
333
|
this.I_ = true;
|
334
334
|
|
335
|
-
componentsByDOMNode.set(this.
|
335
|
+
componentsByDOMNode.set(this._F_, undefined);
|
336
336
|
|
337
|
-
this.
|
337
|
+
this._F_ = null;
|
338
338
|
|
339
339
|
// Unsubscribe from all DOM events
|
340
|
-
this.
|
340
|
+
this._w_();
|
341
341
|
|
342
|
-
var subscriptions = this.
|
342
|
+
var subscriptions = this.aj_;
|
343
343
|
if (subscriptions) {
|
344
344
|
subscriptions.removeAllListeners();
|
345
|
-
this.
|
345
|
+
this.aj_ = null;
|
346
346
|
}
|
347
347
|
},
|
348
348
|
|
@@ -362,10 +362,10 @@ Component.prototype = componentProto = {
|
|
362
362
|
state = this.z_ = new this.P_(this);
|
363
363
|
}
|
364
364
|
|
365
|
-
state.
|
365
|
+
state.aq_(newState || {});
|
366
366
|
|
367
|
-
if (state.
|
368
|
-
this.
|
367
|
+
if (state.am_) {
|
368
|
+
this.ar_();
|
369
369
|
}
|
370
370
|
|
371
371
|
if (!newState) {
|
@@ -383,11 +383,11 @@ Component.prototype = componentProto = {
|
|
383
383
|
var newState = name;
|
384
384
|
for (var k in newState) {
|
385
385
|
if (hasOwnProperty.call(newState, k)) {
|
386
|
-
state.
|
386
|
+
state.as_(k, newState[k], true /* ensure:true */);
|
387
387
|
}
|
388
388
|
}
|
389
389
|
} else {
|
390
|
-
state.
|
390
|
+
state.as_(name, value, true /* ensure:true */);
|
391
391
|
}
|
392
392
|
},
|
393
393
|
|
@@ -398,7 +398,7 @@ Component.prototype = componentProto = {
|
|
398
398
|
value = state[name];
|
399
399
|
}
|
400
400
|
|
401
|
-
state.
|
401
|
+
state.as_(
|
402
402
|
name,
|
403
403
|
value,
|
404
404
|
true /* ensure:true */,
|
@@ -407,46 +407,46 @@ Component.prototype = componentProto = {
|
|
407
407
|
},
|
408
408
|
|
409
409
|
replaceState: function (newState) {
|
410
|
-
this.z_.
|
410
|
+
this.z_.aq_(newState);
|
411
411
|
},
|
412
412
|
|
413
413
|
get input() {
|
414
414
|
return this.O_;
|
415
415
|
},
|
416
416
|
set input(newInput) {
|
417
|
-
if (this.
|
417
|
+
if (this.an_) {
|
418
418
|
this.O_ = newInput;
|
419
419
|
} else {
|
420
|
-
this.
|
420
|
+
this._j_(newInput);
|
421
421
|
}
|
422
422
|
},
|
423
423
|
|
424
|
-
|
424
|
+
_j_: function (newInput, onInput, out) {
|
425
425
|
onInput = onInput || this.onInput;
|
426
426
|
var updatedInput;
|
427
427
|
|
428
428
|
var oldInput = this.O_;
|
429
429
|
this.O_ = undefined;
|
430
|
-
this.
|
430
|
+
this.at_ = out && out[CONTEXT_KEY] || this.at_;
|
431
431
|
|
432
432
|
if (onInput) {
|
433
433
|
// We need to set a flag to preview `this.input = foo` inside
|
434
434
|
// onInput causing infinite recursion
|
435
|
-
this.
|
435
|
+
this.an_ = true;
|
436
436
|
updatedInput = onInput.call(this, newInput || {}, out);
|
437
|
-
this.
|
437
|
+
this.an_ = false;
|
438
438
|
}
|
439
439
|
|
440
|
-
newInput = this.
|
440
|
+
newInput = this.ak_ = updatedInput || newInput;
|
441
441
|
|
442
|
-
if (this.
|
443
|
-
this.
|
442
|
+
if (this.am_ = checkInputChanged(this, oldInput, newInput)) {
|
443
|
+
this.ar_();
|
444
444
|
}
|
445
445
|
|
446
446
|
if (this.O_ === undefined) {
|
447
447
|
this.O_ = newInput;
|
448
448
|
if (newInput && newInput.$global) {
|
449
|
-
this.
|
449
|
+
this.al_ = newInput.$global;
|
450
450
|
}
|
451
451
|
}
|
452
452
|
|
@@ -454,57 +454,57 @@ Component.prototype = componentProto = {
|
|
454
454
|
},
|
455
455
|
|
456
456
|
forceUpdate: function () {
|
457
|
-
this.
|
458
|
-
this.
|
457
|
+
this.am_ = true;
|
458
|
+
this.ar_();
|
459
459
|
},
|
460
460
|
|
461
|
-
|
461
|
+
ar_: function () {
|
462
462
|
if (!this._b_) {
|
463
463
|
this._b_ = true;
|
464
|
-
updateManager.
|
464
|
+
updateManager.au_(this);
|
465
465
|
}
|
466
466
|
},
|
467
467
|
|
468
468
|
update: function () {
|
469
|
-
if (this.I_ === true || this.
|
469
|
+
if (this.I_ === true || this.av_ === false) {
|
470
470
|
return;
|
471
471
|
}
|
472
472
|
|
473
473
|
var input = this.O_;
|
474
474
|
var state = this.z_;
|
475
475
|
|
476
|
-
if (this.
|
477
|
-
if (processUpdateHandlers(this, state.
|
478
|
-
state.
|
476
|
+
if (this.am_ === false && state !== null && state.am_ === true) {
|
477
|
+
if (processUpdateHandlers(this, state.aw_, state.ax_, state)) {
|
478
|
+
state.am_ = false;
|
479
479
|
}
|
480
480
|
}
|
481
481
|
|
482
|
-
if (this.
|
482
|
+
if (this.av_ === true) {
|
483
483
|
// The UI component is still dirty after process state handlers
|
484
484
|
// then we should rerender
|
485
485
|
|
486
486
|
if (this.shouldUpdate(input, state) !== false) {
|
487
|
-
this.
|
487
|
+
this.ay_();
|
488
488
|
}
|
489
489
|
}
|
490
490
|
|
491
|
-
this.
|
491
|
+
this._u_();
|
492
492
|
},
|
493
493
|
|
494
|
-
get
|
494
|
+
get av_() {
|
495
495
|
return (
|
496
|
-
this.
|
497
|
-
this.z_ !== null && this.z_.
|
496
|
+
this.am_ === true ||
|
497
|
+
this.z_ !== null && this.z_.am_ === true);
|
498
498
|
|
499
499
|
},
|
500
500
|
|
501
|
-
|
502
|
-
this.
|
501
|
+
_u_: function () {
|
502
|
+
this.am_ = false;
|
503
503
|
this._b_ = false;
|
504
|
-
this.
|
504
|
+
this.ak_ = null;
|
505
505
|
var state = this.z_;
|
506
506
|
if (state) {
|
507
|
-
state.
|
507
|
+
state._u_();
|
508
508
|
}
|
509
509
|
},
|
510
510
|
|
@@ -512,7 +512,7 @@ Component.prototype = componentProto = {
|
|
512
512
|
return true;
|
513
513
|
},
|
514
514
|
|
515
|
-
|
515
|
+
ay_: function () {
|
516
516
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
517
517
|
var self = this;
|
518
518
|
var renderer = self.Q_;
|
@@ -521,62 +521,62 @@ Component.prototype = componentProto = {
|
|
521
521
|
throw TypeError();
|
522
522
|
}
|
523
523
|
|
524
|
-
var input = this.
|
524
|
+
var input = this.ak_ || this.O_;
|
525
525
|
|
526
|
-
updateManager.
|
527
|
-
self.
|
526
|
+
updateManager.az_(function () {
|
527
|
+
self._G_(input, false).afterInsert(self.B_);
|
528
528
|
});
|
529
529
|
|
530
|
-
this.
|
530
|
+
this._u_();
|
531
531
|
},
|
532
532
|
|
533
|
-
|
533
|
+
_G_: function (input, isHydrate) {
|
534
534
|
var host = this.B_;
|
535
|
-
var globalData = this.
|
536
|
-
var rootNode = this.
|
535
|
+
var globalData = this.al_;
|
536
|
+
var rootNode = this._F_;
|
537
537
|
var renderer = this.Q_;
|
538
538
|
var createOut = renderer.createOut || defaultCreateOut;
|
539
539
|
var out = createOut(globalData);
|
540
540
|
out.sync();
|
541
541
|
out.B_ = this.B_;
|
542
|
-
out[CONTEXT_KEY] = this.
|
542
|
+
out[CONTEXT_KEY] = this.at_;
|
543
543
|
|
544
544
|
var componentsContext = getComponentsContext(out);
|
545
545
|
var globalComponentsContext = componentsContext.p_;
|
546
|
-
globalComponentsContext.
|
547
|
-
globalComponentsContext.
|
546
|
+
globalComponentsContext.aA_ = this;
|
547
|
+
globalComponentsContext.a__ = isHydrate;
|
548
548
|
|
549
549
|
renderer(input, out);
|
550
550
|
|
551
551
|
var result = new RenderResult(out);
|
552
552
|
|
553
|
-
var targetNode = out.
|
553
|
+
var targetNode = out.ai_().aB_;
|
554
554
|
|
555
555
|
morphdom(rootNode, targetNode, host, componentsContext);
|
556
556
|
|
557
557
|
return result;
|
558
558
|
},
|
559
559
|
|
560
|
-
|
561
|
-
var root = this.
|
560
|
+
aC_: function () {
|
561
|
+
var root = this._F_;
|
562
562
|
root.remove();
|
563
563
|
return root;
|
564
564
|
},
|
565
565
|
|
566
|
-
|
567
|
-
var eventListenerHandles = this.
|
566
|
+
_w_: function () {
|
567
|
+
var eventListenerHandles = this._x_;
|
568
568
|
if (eventListenerHandles) {
|
569
569
|
eventListenerHandles.forEach(removeListener);
|
570
|
-
this.
|
570
|
+
this._x_ = null;
|
571
571
|
}
|
572
572
|
},
|
573
573
|
|
574
|
-
get
|
574
|
+
get aD_() {
|
575
575
|
var state = this.z_;
|
576
576
|
return state && state.A_;
|
577
577
|
},
|
578
578
|
|
579
|
-
|
579
|
+
aE_: function (customEvents, scope) {
|
580
580
|
var finalCustomEvents = this.W_ = {};
|
581
581
|
this.X_ = scope;
|
582
582
|
|
@@ -593,7 +593,7 @@ Component.prototype = componentProto = {
|
|
593
593
|
},
|
594
594
|
|
595
595
|
get el() {
|
596
|
-
return walkFragments(this.
|
596
|
+
return walkFragments(this._F_);
|
597
597
|
},
|
598
598
|
|
599
599
|
get els() {
|
@@ -603,43 +603,43 @@ Component.prototype = componentProto = {
|
|
603
603
|
|
604
604
|
|
605
605
|
|
606
|
-
return (this.
|
606
|
+
return (this._F_ ? this._F_.nodes : []).filter(
|
607
607
|
function (el) {
|
608
608
|
return el.nodeType === ELEMENT_NODE;
|
609
609
|
}
|
610
610
|
);
|
611
611
|
},
|
612
612
|
|
613
|
-
|
614
|
-
|
613
|
+
aF_: emit,
|
614
|
+
aG_(input, out) {
|
615
615
|
this.onCreate && this.onCreate(input, out);
|
616
|
-
this.
|
616
|
+
this.aF_("create", input, out);
|
617
617
|
},
|
618
618
|
|
619
|
-
|
619
|
+
aH_(out) {
|
620
620
|
this.onRender && this.onRender(out);
|
621
|
-
this.
|
621
|
+
this.aF_("render", out);
|
622
622
|
},
|
623
623
|
|
624
|
-
|
624
|
+
_z_() {
|
625
625
|
this.onUpdate && this.onUpdate();
|
626
|
-
this.
|
626
|
+
this.aF_("update");
|
627
627
|
},
|
628
628
|
|
629
|
-
|
629
|
+
_A_() {
|
630
630
|
this.onMount && this.onMount();
|
631
|
-
this.
|
631
|
+
this.aF_("mount");
|
632
632
|
},
|
633
633
|
|
634
|
-
|
634
|
+
ap_() {
|
635
635
|
this.onDestroy && this.onDestroy();
|
636
|
-
this.
|
636
|
+
this.aF_("destroy");
|
637
637
|
}
|
638
638
|
};
|
639
639
|
|
640
640
|
componentProto.elId = componentProto.getElId;
|
641
|
-
componentProto.
|
642
|
-
componentProto.
|
641
|
+
componentProto.aI_ = componentProto.update;
|
642
|
+
componentProto.aJ_ = componentProto.destroy;
|
643
643
|
|
644
644
|
// Add all of the following DOM methods to Component.prototype:
|
645
645
|
// - appendTo(referenceEl)
|
@@ -651,7 +651,7 @@ componentProto.aI_ = componentProto.destroy;
|
|
651
651
|
domInsert(
|
652
652
|
componentProto,
|
653
653
|
function getEl(component) {
|
654
|
-
return component.
|
654
|
+
return component.aC_();
|
655
655
|
},
|
656
656
|
function afterInsert(component) {
|
657
657
|
return component;
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
var extend = require("raptor-util/extend");
|
5
5
|
var componentUtil = require("@internal/components-util");
|
6
|
-
var w10NOOP = require("../helpers/serialize-noop").
|
7
|
-
var attachBubblingEvent = componentUtil.
|
6
|
+
var w10NOOP = require("../helpers/serialize-noop").aK_;
|
7
|
+
var attachBubblingEvent = componentUtil._U_;
|
8
8
|
var addDelegatedEventHandler =
|
9
|
-
require("./event-delegation").
|
9
|
+
require("./event-delegation")._t_;
|
10
10
|
var KeySequence = require("./KeySequence");
|
11
11
|
var EMPTY_OBJECT = {};
|
12
12
|
|
@@ -21,25 +21,25 @@ var FLAG_OLD_HYDRATE_NO_CREATE = 8;
|
|
21
21
|
* later (after the rendered HTML has been added to the DOM)
|
22
22
|
*/
|
23
23
|
function ComponentDef(component, componentId, componentsContext) {
|
24
|
-
this.
|
24
|
+
this.aL_ = componentsContext; // The AsyncWriter that this component is associated with
|
25
25
|
this.s_ = component;
|
26
26
|
this.id = componentId;
|
27
27
|
|
28
28
|
this._c_ = undefined; // An array of DOM events that need to be added (in sets of three)
|
29
29
|
|
30
|
-
this.
|
30
|
+
this._v_ = false;
|
31
31
|
|
32
32
|
this.t_ = false;
|
33
33
|
this.u_ = 0;
|
34
34
|
|
35
|
-
this.
|
36
|
-
this.
|
35
|
+
this.aM_ = 0; // The unique integer to use for the next scoped ID
|
36
|
+
this.aN_ = null;
|
37
37
|
}
|
38
38
|
|
39
39
|
ComponentDef.prototype = {
|
40
|
-
|
40
|
+
aO_: function (key) {
|
41
41
|
return (
|
42
|
-
this.
|
42
|
+
this.aN_ || (this.aN_ = new KeySequence())).aO_(
|
43
43
|
key);
|
44
44
|
},
|
45
45
|
|
@@ -73,8 +73,8 @@ ComponentDef.prototype = {
|
|
73
73
|
/**
|
74
74
|
* Returns the next auto generated unique ID for a nested DOM element or nested DOM component
|
75
75
|
*/
|
76
|
-
|
77
|
-
return this.id + "-c" + this.
|
76
|
+
aP_: function () {
|
77
|
+
return this.id + "-c" + this.aM_++;
|
78
78
|
},
|
79
79
|
|
80
80
|
d: function (eventName, handlerMethodName, isOnce, extraArgs) {
|
@@ -82,14 +82,14 @@ ComponentDef.prototype = {
|
|
82
82
|
return attachBubblingEvent(this, handlerMethodName, isOnce, extraArgs);
|
83
83
|
},
|
84
84
|
|
85
|
-
get
|
86
|
-
return this.s_.
|
85
|
+
get _r_() {
|
86
|
+
return this.s_._r_;
|
87
87
|
}
|
88
88
|
};
|
89
89
|
|
90
|
-
ComponentDef.prototype.nk = ComponentDef.prototype.
|
90
|
+
ComponentDef.prototype.nk = ComponentDef.prototype.aO_;
|
91
91
|
|
92
|
-
ComponentDef.
|
92
|
+
ComponentDef._E_ = function (o, types, global, registry) {
|
93
93
|
var id = o[0];
|
94
94
|
var typeName = types[o[1]];
|
95
95
|
var input = o[2] || null;
|
@@ -103,12 +103,12 @@ ComponentDef._D_ = function (o, types, global, registry) {
|
|
103
103
|
|
104
104
|
var component =
|
105
105
|
typeName /* legacy */ &&
|
106
|
-
registry.
|
106
|
+
registry._H_(typeName, id, isLegacy);
|
107
107
|
|
108
108
|
// Prevent newly created component from being queued for update since we area
|
109
109
|
// just building it from the server info
|
110
110
|
component._b_ = true;
|
111
|
-
component.
|
111
|
+
component.al_ = global;
|
112
112
|
|
113
113
|
if (isLegacy) {
|
114
114
|
component.widgetConfig = componentProps;
|
@@ -155,7 +155,7 @@ ComponentDef._D_ = function (o, types, global, registry) {
|
|
155
155
|
var scope = extra.p;
|
156
156
|
var customEvents = extra.e;
|
157
157
|
if (customEvents) {
|
158
|
-
component.
|
158
|
+
component.aE_(customEvents, scope);
|
159
159
|
}
|
160
160
|
|
161
161
|
return {
|
@@ -35,12 +35,12 @@ function ComponentsContext(out, parentComponentsContext) {
|
|
35
35
|
}
|
36
36
|
|
37
37
|
ComponentsContext.prototype = {
|
38
|
-
|
38
|
+
ag_: function (host) {
|
39
39
|
var componentDefs = this.b_;
|
40
40
|
|
41
|
-
ComponentsContext.
|
41
|
+
ComponentsContext._J_(componentDefs, host);
|
42
42
|
|
43
|
-
this.r_.emit("
|
43
|
+
this.r_.emit("aQ_");
|
44
44
|
|
45
45
|
// Reset things stored in global since global is retained for
|
46
46
|
// future renders
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use strict";var nextComponentIdProvider =
|
2
|
-
require("@internal/components-util").
|
2
|
+
require("@internal/components-util")._T_;
|
3
3
|
|
4
4
|
function GlobalComponentsContext(out) {
|
5
5
|
this.q_ = {};
|
6
|
-
this.
|
7
|
-
this.
|
6
|
+
this.aA_ = undefined;
|
7
|
+
this.aP_ = nextComponentIdProvider(out);
|
8
8
|
}
|
9
9
|
|
10
10
|
module.exports = GlobalComponentsContext;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";function KeySequence() {
|
2
|
-
this.
|
2
|
+
this.aR_ = Object.create(null);
|
3
3
|
}
|
4
4
|
|
5
|
-
KeySequence.prototype.
|
6
|
-
var lookup = this.
|
5
|
+
KeySequence.prototype.aO_ = function (key) {
|
6
|
+
var lookup = this.aR_;
|
7
7
|
|
8
8
|
if (lookup[key]) {
|
9
9
|
return key + "_" + lookup[key]++;
|