@siemens/ix 1.5.0-beta.3 → 1.5.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/dist/cjs/{index-478a4b66.js → index-931d1fb5.js} +82 -34
- package/dist/cjs/index-931d1fb5.js.map +1 -0
- package/dist/cjs/ix-animated-tab_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-application-header.cjs.entry.js +1 -1
- package/dist/cjs/ix-basic-navigation.cjs.entry.js +1 -1
- package/dist/cjs/ix-blind.cjs.entry.js +1 -1
- package/dist/cjs/ix-breadcrumb_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-burger-menu.cjs.entry.js +1 -1
- package/dist/cjs/ix-button.cjs.entry.js +1 -1
- package/dist/cjs/ix-category-filter.cjs.entry.js +1 -1
- package/dist/cjs/ix-chip.cjs.entry.js +1 -1
- package/dist/cjs/ix-counter-pill.cjs.entry.js +1 -1
- package/dist/cjs/ix-date-picker_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-date-time-card.cjs.entry.js +1 -1
- package/dist/cjs/ix-datetime-picker.cjs.entry.js +1 -1
- package/dist/cjs/ix-divider.cjs.entry.js +1 -1
- package/dist/cjs/ix-drawer.cjs.entry.js +1 -1
- package/dist/cjs/ix-dropdown-button.cjs.entry.js +1 -1
- package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +1 -1
- package/dist/cjs/ix-dropdown_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-event-list_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-expanding-search.cjs.entry.js +1 -1
- package/dist/cjs/ix-filter-chip.cjs.entry.js +1 -1
- package/dist/cjs/ix-flip-tile_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-group-context-menu.cjs.entry.js +1 -1
- package/dist/cjs/ix-group_3.cjs.entry.js +1 -1
- package/dist/cjs/ix-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/ix-icon.cjs.entry.js +1 -1
- package/dist/cjs/ix-index-button.cjs.entry.js +1 -1
- package/dist/cjs/ix-input-group.cjs.entry.js +1 -1
- package/dist/cjs/ix-kpi.cjs.entry.js +1 -1
- package/dist/cjs/ix-map-navigation_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-menu_9.cjs.entry.js +1 -1
- package/dist/cjs/ix-message-bar.cjs.entry.js +1 -1
- package/dist/cjs/ix-modal-example.cjs.entry.js +1 -1
- package/dist/cjs/ix-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-pagination.cjs.entry.js +1 -1
- package/dist/cjs/ix-pill.cjs.entry.js +1 -1
- package/dist/cjs/ix-select_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ix-split-button_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-tab-item.cjs.entry.js +1 -1
- package/dist/cjs/ix-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ix-tile.cjs.entry.js +1 -1
- package/dist/cjs/ix-toast_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-toggle.cjs.entry.js +1 -1
- package/dist/cjs/ix-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/ix-tree_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-typography.cjs.entry.js +1 -1
- package/dist/cjs/ix-upload.cjs.entry.js +1 -1
- package/dist/cjs/ix-validation-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/ix-workflow-step_2.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/cjs/siemens-ix.cjs.js +2 -2
- package/dist/cjs/siemens-ix.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/{index-3d163acd.js → index-57424926.js} +82 -34
- package/dist/esm/index-57424926.js.map +1 -0
- package/dist/esm/ix-animated-tab_2.entry.js +1 -1
- package/dist/esm/ix-application-header.entry.js +1 -1
- package/dist/esm/ix-basic-navigation.entry.js +1 -1
- package/dist/esm/ix-blind.entry.js +1 -1
- package/dist/esm/ix-breadcrumb_2.entry.js +1 -1
- package/dist/esm/ix-burger-menu.entry.js +1 -1
- package/dist/esm/ix-button.entry.js +1 -1
- package/dist/esm/ix-category-filter.entry.js +1 -1
- package/dist/esm/ix-chip.entry.js +1 -1
- package/dist/esm/ix-counter-pill.entry.js +1 -1
- package/dist/esm/ix-date-picker_2.entry.js +1 -1
- package/dist/esm/ix-date-time-card.entry.js +1 -1
- package/dist/esm/ix-datetime-picker.entry.js +1 -1
- package/dist/esm/ix-divider.entry.js +1 -1
- package/dist/esm/ix-drawer.entry.js +1 -1
- package/dist/esm/ix-dropdown-button.entry.js +1 -1
- package/dist/esm/ix-dropdown-quick-actions.entry.js +1 -1
- package/dist/esm/ix-dropdown_2.entry.js +1 -1
- package/dist/esm/ix-event-list_2.entry.js +1 -1
- package/dist/esm/ix-expanding-search.entry.js +1 -1
- package/dist/esm/ix-filter-chip.entry.js +1 -1
- package/dist/esm/ix-flip-tile_2.entry.js +1 -1
- package/dist/esm/ix-group-context-menu.entry.js +1 -1
- package/dist/esm/ix-group_3.entry.js +1 -1
- package/dist/esm/ix-icon-button.entry.js +1 -1
- package/dist/esm/ix-icon.entry.js +1 -1
- package/dist/esm/ix-index-button.entry.js +1 -1
- package/dist/esm/ix-input-group.entry.js +1 -1
- package/dist/esm/ix-kpi.entry.js +1 -1
- package/dist/esm/ix-map-navigation_2.entry.js +1 -1
- package/dist/esm/ix-menu_9.entry.js +1 -1
- package/dist/esm/ix-message-bar.entry.js +1 -1
- package/dist/esm/ix-modal-example.entry.js +1 -1
- package/dist/esm/ix-modal_2.entry.js +1 -1
- package/dist/esm/ix-pagination.entry.js +1 -1
- package/dist/esm/ix-pill.entry.js +1 -1
- package/dist/esm/ix-select_2.entry.js +1 -1
- package/dist/esm/ix-spinner.entry.js +1 -1
- package/dist/esm/ix-split-button_2.entry.js +1 -1
- package/dist/esm/ix-tab-item.entry.js +1 -1
- package/dist/esm/ix-tabs.entry.js +1 -1
- package/dist/esm/ix-tile.entry.js +1 -1
- package/dist/esm/ix-toast_2.entry.js +1 -1
- package/dist/esm/ix-toggle.entry.js +1 -1
- package/dist/esm/ix-tooltip.entry.js +1 -1
- package/dist/esm/ix-tree_2.entry.js +1 -1
- package/dist/esm/ix-typography.entry.js +1 -1
- package/dist/esm/ix-upload.entry.js +1 -1
- package/dist/esm/ix-validation-tooltip.entry.js +1 -1
- package/dist/esm/ix-workflow-step_2.entry.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/siemens-ix.js +3 -3
- package/dist/esm/siemens-ix.js.map +1 -1
- package/dist/siemens-ix/{p-7fb5fa79.entry.js → p-091accfc.entry.js} +2 -2
- package/dist/siemens-ix/{p-63666529.entry.js → p-0dd51d53.entry.js} +2 -2
- package/dist/siemens-ix/{p-c9c9f2b5.entry.js → p-0fcfac90.entry.js} +2 -2
- package/dist/siemens-ix/{p-0f864265.entry.js → p-15335e01.entry.js} +2 -2
- package/dist/siemens-ix/{p-5d7e1440.entry.js → p-189cdc59.entry.js} +2 -2
- package/dist/siemens-ix/{p-c19c2492.entry.js → p-1c1dd6d6.entry.js} +2 -2
- package/dist/siemens-ix/{p-dbcf33de.entry.js → p-2149ce72.entry.js} +2 -2
- package/dist/siemens-ix/p-2206924a.entry.js +2 -0
- package/dist/siemens-ix/{p-1666b0e2.entry.js.map → p-2206924a.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-a30c7b5a.entry.js → p-272b771c.entry.js} +2 -2
- package/dist/siemens-ix/{p-3776a37f.entry.js → p-2850e6b1.entry.js} +2 -2
- package/dist/siemens-ix/{p-d7cf7a1a.entry.js → p-2e2fca5f.entry.js} +2 -2
- package/dist/siemens-ix/{p-2ea2fc07.entry.js → p-2ecb0ffd.entry.js} +2 -2
- package/dist/siemens-ix/{p-9546cbdd.entry.js → p-3b4c5e4b.entry.js} +2 -2
- package/dist/siemens-ix/{p-eb799bdd.entry.js → p-46e468af.entry.js} +2 -2
- package/dist/siemens-ix/p-57a5d3d0.js +3 -0
- package/dist/siemens-ix/p-57a5d3d0.js.map +1 -0
- package/dist/siemens-ix/{p-65b6330a.entry.js → p-63663ccd.entry.js} +2 -2
- package/dist/siemens-ix/{p-b998abe4.entry.js → p-65d38367.entry.js} +2 -2
- package/dist/siemens-ix/{p-f6509805.entry.js → p-69c4d72b.entry.js} +2 -2
- package/dist/siemens-ix/{p-6bdfaf91.entry.js → p-729c8d31.entry.js} +2 -2
- package/dist/siemens-ix/{p-63e1264b.entry.js → p-75045a73.entry.js} +2 -2
- package/dist/siemens-ix/{p-62b4d696.entry.js → p-77c1e1e7.entry.js} +2 -2
- package/dist/siemens-ix/{p-a4a16daa.entry.js → p-7cdbc92b.entry.js} +2 -2
- package/dist/siemens-ix/{p-042b490c.entry.js → p-7ed22ba1.entry.js} +2 -2
- package/dist/siemens-ix/{p-16ec6f50.entry.js → p-7f7657ec.entry.js} +2 -2
- package/dist/siemens-ix/{p-1a87eb66.entry.js → p-89b7ae4c.entry.js} +2 -2
- package/dist/siemens-ix/{p-283686d7.entry.js → p-8cf56736.entry.js} +2 -2
- package/dist/siemens-ix/{p-0e8a6997.entry.js → p-908afbed.entry.js} +2 -2
- package/dist/siemens-ix/{p-b9fbd029.entry.js → p-925b7d63.entry.js} +2 -2
- package/dist/siemens-ix/{p-eb301ea2.entry.js → p-93d6bfe1.entry.js} +2 -2
- package/dist/siemens-ix/{p-55d0fabf.entry.js → p-9a4a825a.entry.js} +2 -2
- package/dist/siemens-ix/{p-caae2fa5.entry.js → p-9c2ae88d.entry.js} +2 -2
- package/dist/siemens-ix/{p-fef2f9e0.entry.js → p-9da2881b.entry.js} +2 -2
- package/dist/siemens-ix/{p-78f2b858.entry.js → p-a36c0c05.entry.js} +2 -2
- package/dist/siemens-ix/{p-34e3a10e.entry.js → p-a6e443df.entry.js} +2 -2
- package/dist/siemens-ix/{p-4ec66090.entry.js → p-ae29d220.entry.js} +2 -2
- package/dist/siemens-ix/{p-53c69375.entry.js → p-af533e73.entry.js} +2 -2
- package/dist/siemens-ix/{p-d7a3acce.entry.js → p-b46713aa.entry.js} +2 -2
- package/dist/siemens-ix/{p-43965bd0.entry.js → p-b54c8bba.entry.js} +2 -2
- package/dist/siemens-ix/{p-aa4141e4.entry.js → p-bbda3133.entry.js} +2 -2
- package/dist/siemens-ix/{p-2dafa048.entry.js → p-bdaae206.entry.js} +2 -2
- package/dist/siemens-ix/{p-13adcf62.entry.js → p-c11ebe2f.entry.js} +2 -2
- package/dist/siemens-ix/{p-07fd8298.entry.js → p-c29d31ea.entry.js} +2 -2
- package/dist/siemens-ix/{p-7d4a7388.entry.js → p-c4b1210b.entry.js} +2 -2
- package/dist/siemens-ix/{p-f6c54047.entry.js → p-d57afc21.entry.js} +2 -2
- package/dist/siemens-ix/{p-909ccf09.entry.js → p-d985e147.entry.js} +2 -2
- package/dist/siemens-ix/{p-33160fe4.entry.js → p-dae58ef8.entry.js} +2 -2
- package/dist/siemens-ix/{p-4c8d5207.entry.js → p-de1e7c64.entry.js} +2 -2
- package/dist/siemens-ix/{p-20bed29f.entry.js → p-e4f9db28.entry.js} +2 -2
- package/dist/siemens-ix/{p-afd1f351.entry.js → p-f20dc192.entry.js} +2 -2
- package/dist/siemens-ix/{p-626b3af5.entry.js → p-f2355beb.entry.js} +2 -2
- package/dist/siemens-ix/{p-88a47c9b.entry.js → p-f72d10e6.entry.js} +2 -2
- package/dist/siemens-ix/{p-663724a8.entry.js → p-f7f07386.entry.js} +2 -2
- package/dist/siemens-ix/siemens-ix.esm.js +1 -1
- package/dist/siemens-ix/siemens-ix.esm.js.map +1 -1
- package/dist/types/stencil-public-runtime.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/index-478a4b66.js.map +0 -1
- package/dist/esm/index-3d163acd.js.map +0 -1
- package/dist/siemens-ix/p-1666b0e2.entry.js +0 -2
- package/dist/siemens-ix/p-8fcd6f85.js +0 -3
- package/dist/siemens-ix/p-8fcd6f85.js.map +0 -1
- /package/dist/siemens-ix/{p-7fb5fa79.entry.js.map → p-091accfc.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-63666529.entry.js.map → p-0dd51d53.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-c9c9f2b5.entry.js.map → p-0fcfac90.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-0f864265.entry.js.map → p-15335e01.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-5d7e1440.entry.js.map → p-189cdc59.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-c19c2492.entry.js.map → p-1c1dd6d6.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-dbcf33de.entry.js.map → p-2149ce72.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-a30c7b5a.entry.js.map → p-272b771c.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-3776a37f.entry.js.map → p-2850e6b1.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-d7cf7a1a.entry.js.map → p-2e2fca5f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-2ea2fc07.entry.js.map → p-2ecb0ffd.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-9546cbdd.entry.js.map → p-3b4c5e4b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-eb799bdd.entry.js.map → p-46e468af.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-65b6330a.entry.js.map → p-63663ccd.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-b998abe4.entry.js.map → p-65d38367.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-f6509805.entry.js.map → p-69c4d72b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-6bdfaf91.entry.js.map → p-729c8d31.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-63e1264b.entry.js.map → p-75045a73.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-62b4d696.entry.js.map → p-77c1e1e7.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-a4a16daa.entry.js.map → p-7cdbc92b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-042b490c.entry.js.map → p-7ed22ba1.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-16ec6f50.entry.js.map → p-7f7657ec.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1a87eb66.entry.js.map → p-89b7ae4c.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-283686d7.entry.js.map → p-8cf56736.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-0e8a6997.entry.js.map → p-908afbed.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-b9fbd029.entry.js.map → p-925b7d63.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-eb301ea2.entry.js.map → p-93d6bfe1.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-55d0fabf.entry.js.map → p-9a4a825a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-caae2fa5.entry.js.map → p-9c2ae88d.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-fef2f9e0.entry.js.map → p-9da2881b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-78f2b858.entry.js.map → p-a36c0c05.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-34e3a10e.entry.js.map → p-a6e443df.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-4ec66090.entry.js.map → p-ae29d220.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-53c69375.entry.js.map → p-af533e73.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-d7a3acce.entry.js.map → p-b46713aa.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-43965bd0.entry.js.map → p-b54c8bba.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-aa4141e4.entry.js.map → p-bbda3133.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-2dafa048.entry.js.map → p-bdaae206.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-13adcf62.entry.js.map → p-c11ebe2f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-07fd8298.entry.js.map → p-c29d31ea.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-7d4a7388.entry.js.map → p-c4b1210b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-f6c54047.entry.js.map → p-d57afc21.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-909ccf09.entry.js.map → p-d985e147.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-33160fe4.entry.js.map → p-dae58ef8.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-4c8d5207.entry.js.map → p-de1e7c64.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-20bed29f.entry.js.map → p-e4f9db28.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-afd1f351.entry.js.map → p-f20dc192.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-626b3af5.entry.js.map → p-f2355beb.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-88a47c9b.entry.js.map → p-f72d10e6.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-663724a8.entry.js.map → p-f7f07386.entry.js.map} +0 -0
|
@@ -731,30 +731,31 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
|
|
|
731
731
|
* @param vnodes a list of virtual DOM nodes to remove
|
|
732
732
|
* @param startIdx the index at which to start removing nodes (inclusive)
|
|
733
733
|
* @param endIdx the index at which to stop removing nodes (inclusive)
|
|
734
|
-
* @param vnode a VNode
|
|
735
|
-
* @param elm an element
|
|
736
734
|
*/
|
|
737
|
-
const removeVnodes = (vnodes, startIdx, endIdx
|
|
738
|
-
for (
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
elm['s-ol']
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
735
|
+
const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
736
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
|
737
|
+
const vnode = vnodes[index];
|
|
738
|
+
if (vnode) {
|
|
739
|
+
const elm = vnode.$elm$;
|
|
740
|
+
nullifyVNodeRefs(vnode);
|
|
741
|
+
if (elm) {
|
|
742
|
+
{
|
|
743
|
+
// we're removing this element
|
|
744
|
+
// so it's possible we need to show slot fallback content now
|
|
745
|
+
checkSlotFallbackVisibility = true;
|
|
746
|
+
if (elm['s-ol']) {
|
|
747
|
+
// remove the original location comment
|
|
748
|
+
elm['s-ol'].remove();
|
|
749
|
+
}
|
|
750
|
+
else {
|
|
751
|
+
// it's possible that child nodes of the node
|
|
752
|
+
// that's being removed are slot nodes
|
|
753
|
+
putBackInOriginalLocation(elm, true);
|
|
754
|
+
}
|
|
754
755
|
}
|
|
756
|
+
// remove the vnode's element from the dom
|
|
757
|
+
elm.remove();
|
|
755
758
|
}
|
|
756
|
-
// remove the vnode's element from the dom
|
|
757
|
-
elm.remove();
|
|
758
759
|
}
|
|
759
760
|
}
|
|
760
761
|
};
|
|
@@ -1235,10 +1236,17 @@ const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
|
|
|
1235
1236
|
}
|
|
1236
1237
|
return slotNameAttr === '';
|
|
1237
1238
|
};
|
|
1238
|
-
|
|
1239
|
+
/**
|
|
1240
|
+
* 'Nullify' any VDom `ref` callbacks on a VDom node or its children by
|
|
1241
|
+
* calling them with `null`. This signals that the DOM element corresponding to
|
|
1242
|
+
* the VDom node has been removed from the DOM.
|
|
1243
|
+
*
|
|
1244
|
+
* @param vNode a virtual DOM node
|
|
1245
|
+
*/
|
|
1246
|
+
const nullifyVNodeRefs = (vNode) => {
|
|
1239
1247
|
{
|
|
1240
1248
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
1241
|
-
vNode.$children$ && vNode.$children$.map(
|
|
1249
|
+
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
1242
1250
|
}
|
|
1243
1251
|
};
|
|
1244
1252
|
/**
|
|
@@ -1375,10 +1383,32 @@ const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
1375
1383
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1376
1384
|
return writeTask(dispatch) ;
|
|
1377
1385
|
};
|
|
1386
|
+
/**
|
|
1387
|
+
* Dispatch initial-render and update lifecycle hooks, enqueuing calls to
|
|
1388
|
+
* component lifecycle methods like `componentWillLoad` as well as
|
|
1389
|
+
* {@link updateComponent}, which will kick off the virtual DOM re-render.
|
|
1390
|
+
*
|
|
1391
|
+
* @param hostRef a reference to a host DOM node
|
|
1392
|
+
* @param isInitialLoad whether we're on the initial load or not
|
|
1393
|
+
* @returns an empty Promise which is used to enqueue a series of operations for
|
|
1394
|
+
* the component
|
|
1395
|
+
*/
|
|
1378
1396
|
const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
1379
1397
|
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
|
|
1380
1398
|
const instance = hostRef.$lazyInstance$ ;
|
|
1381
|
-
|
|
1399
|
+
// We're going to use this variable together with `enqueue` to implement a
|
|
1400
|
+
// little promise-based queue. We start out with it `undefined`. When we add
|
|
1401
|
+
// the first function to the queue we'll set this variable to be that
|
|
1402
|
+
// function's return value. When we attempt to add subsequent values to the
|
|
1403
|
+
// queue we'll check that value and, if it was a `Promise`, we'll then chain
|
|
1404
|
+
// the new function off of that `Promise` using `.then()`. This will give our
|
|
1405
|
+
// queue two nice properties:
|
|
1406
|
+
//
|
|
1407
|
+
// 1. If all functions added to the queue are synchronous they'll be called
|
|
1408
|
+
// synchronously right away.
|
|
1409
|
+
// 2. If all functions added to the queue are asynchronous they'll all be
|
|
1410
|
+
// called in order after `dispatchHooks` exits.
|
|
1411
|
+
let maybePromise;
|
|
1382
1412
|
if (isInitialLoad) {
|
|
1383
1413
|
{
|
|
1384
1414
|
hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
|
|
@@ -1388,17 +1418,38 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1388
1418
|
}
|
|
1389
1419
|
}
|
|
1390
1420
|
{
|
|
1391
|
-
|
|
1421
|
+
// If `componentWillLoad` returns a `Promise` then we want to wait on
|
|
1422
|
+
// whatever's going on in that `Promise` before we launch into
|
|
1423
|
+
// rendering the component, doing other lifecycle stuff, etc. So
|
|
1424
|
+
// in that case we assign the returned promise to the variable we
|
|
1425
|
+
// declared above to hold a possible 'queueing' Promise
|
|
1426
|
+
maybePromise = safeCall(instance, 'componentWillLoad');
|
|
1392
1427
|
}
|
|
1393
1428
|
}
|
|
1394
1429
|
{
|
|
1395
|
-
|
|
1430
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, 'componentWillRender'));
|
|
1396
1431
|
}
|
|
1397
1432
|
endSchedule();
|
|
1398
|
-
return
|
|
1433
|
+
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1399
1434
|
};
|
|
1435
|
+
/**
|
|
1436
|
+
* This function uses a Promise to implement a simple first-in, first-out queue
|
|
1437
|
+
* of functions to be called.
|
|
1438
|
+
*
|
|
1439
|
+
* The queue is ordered on the basis of the first argument. If it's
|
|
1440
|
+
* `undefined`, then nothing is on the queue yet, so the provided function can
|
|
1441
|
+
* be called synchronously (although note that this function may return a
|
|
1442
|
+
* `Promise`). The idea is that then the return value of that enqueueing
|
|
1443
|
+
* operation is kept around, so that if it was a `Promise` then subsequent
|
|
1444
|
+
* functions can be enqueued by calling this function again with that `Promise`
|
|
1445
|
+
* as the first argument.
|
|
1446
|
+
*
|
|
1447
|
+
* @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
|
|
1448
|
+
* @param fn a function to enqueue
|
|
1449
|
+
* @returns either a `Promise` or the return value of the provided function
|
|
1450
|
+
*/
|
|
1451
|
+
const enqueue = (maybePromise, fn) => maybePromise instanceof Promise ? maybePromise.then(fn) : fn();
|
|
1400
1452
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
1401
|
-
// updateComponent
|
|
1402
1453
|
const elm = hostRef.$hostElement$;
|
|
1403
1454
|
const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
|
|
1404
1455
|
const rc = elm['s-rc'];
|
|
@@ -1536,9 +1587,6 @@ const safeCall = (instance, method, arg) => {
|
|
|
1536
1587
|
}
|
|
1537
1588
|
return undefined;
|
|
1538
1589
|
};
|
|
1539
|
-
const then = (promise, thenFn) => {
|
|
1540
|
-
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
1541
|
-
};
|
|
1542
1590
|
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
1543
1591
|
;
|
|
1544
1592
|
const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
@@ -1702,9 +1750,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1702
1750
|
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
1703
1751
|
// initializeComponent
|
|
1704
1752
|
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1753
|
+
// Let the runtime know that the component has been initialized
|
|
1754
|
+
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1705
1755
|
{
|
|
1706
|
-
// we haven't initialized this element yet
|
|
1707
|
-
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1708
1756
|
// lazy loaded components
|
|
1709
1757
|
// request the component's implementation to be
|
|
1710
1758
|
// wired up with the host element
|
|
@@ -2485,4 +2533,4 @@ exports.promiseResolve = promiseResolve;
|
|
|
2485
2533
|
exports.registerInstance = registerInstance;
|
|
2486
2534
|
exports.setNonce = setNonce;
|
|
2487
2535
|
|
|
2488
|
-
//# sourceMappingURL=index-
|
|
2536
|
+
//# sourceMappingURL=index-931d1fb5.js.map
|