proto-ikons-wc 0.0.97 → 0.0.98
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/acura-ikon_119.cjs.entry.js +1 -1
- package/dist/cjs/{index-a05e070d.js → index-606cf529.js} +52 -16
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/proto-ikons-wc.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/acura-ikon_119.entry.js +1 -1
- package/dist/esm/{index-abf2be46.js → index-432107bf.js} +52 -16
- package/dist/esm/loader.js +3 -3
- package/dist/esm/proto-ikons-wc.js +3 -3
- package/dist/proto-ikons-wc/{p-c6044d8c.entry.js → p-d350166b.entry.js} +1 -1
- package/dist/proto-ikons-wc/p-d5c7882f.js +2 -0
- package/dist/proto-ikons-wc/proto-ikons-wc.esm.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +1 -0
- package/package.json +2 -2
- package/dist/proto-ikons-wc/p-39292043.js +0 -2
|
@@ -492,15 +492,16 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
|
|
|
492
492
|
* @param vnodes a list of virtual DOM nodes to remove
|
|
493
493
|
* @param startIdx the index at which to start removing nodes (inclusive)
|
|
494
494
|
* @param endIdx the index at which to stop removing nodes (inclusive)
|
|
495
|
-
* @param vnode a VNode
|
|
496
|
-
* @param elm an element
|
|
497
495
|
*/
|
|
498
|
-
const removeVnodes = (vnodes, startIdx, endIdx
|
|
499
|
-
for (
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
elm
|
|
496
|
+
const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
497
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
|
498
|
+
const vnode = vnodes[index];
|
|
499
|
+
if (vnode) {
|
|
500
|
+
const elm = vnode.$elm$;
|
|
501
|
+
if (elm) {
|
|
502
|
+
// remove the vnode's element from the dom
|
|
503
|
+
elm.remove();
|
|
504
|
+
}
|
|
504
505
|
}
|
|
505
506
|
}
|
|
506
507
|
};
|
|
@@ -800,15 +801,53 @@ const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
800
801
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
801
802
|
return writeTask(dispatch) ;
|
|
802
803
|
};
|
|
804
|
+
/**
|
|
805
|
+
* Dispatch initial-render and update lifecycle hooks, enqueuing calls to
|
|
806
|
+
* component lifecycle methods like `componentWillLoad` as well as
|
|
807
|
+
* {@link updateComponent}, which will kick off the virtual DOM re-render.
|
|
808
|
+
*
|
|
809
|
+
* @param hostRef a reference to a host DOM node
|
|
810
|
+
* @param isInitialLoad whether we're on the initial load or not
|
|
811
|
+
* @returns an empty Promise which is used to enqueue a series of operations for
|
|
812
|
+
* the component
|
|
813
|
+
*/
|
|
803
814
|
const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
804
815
|
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
|
|
805
816
|
const instance = hostRef.$lazyInstance$ ;
|
|
806
|
-
|
|
817
|
+
// We're going to use this variable together with `enqueue` to implement a
|
|
818
|
+
// little promise-based queue. We start out with it `undefined`. When we add
|
|
819
|
+
// the first function to the queue we'll set this variable to be that
|
|
820
|
+
// function's return value. When we attempt to add subsequent values to the
|
|
821
|
+
// queue we'll check that value and, if it was a `Promise`, we'll then chain
|
|
822
|
+
// the new function off of that `Promise` using `.then()`. This will give our
|
|
823
|
+
// queue two nice properties:
|
|
824
|
+
//
|
|
825
|
+
// 1. If all functions added to the queue are synchronous they'll be called
|
|
826
|
+
// synchronously right away.
|
|
827
|
+
// 2. If all functions added to the queue are asynchronous they'll all be
|
|
828
|
+
// called in order after `dispatchHooks` exits.
|
|
829
|
+
let maybePromise;
|
|
807
830
|
endSchedule();
|
|
808
|
-
return
|
|
831
|
+
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
809
832
|
};
|
|
833
|
+
/**
|
|
834
|
+
* This function uses a Promise to implement a simple first-in, first-out queue
|
|
835
|
+
* of functions to be called.
|
|
836
|
+
*
|
|
837
|
+
* The queue is ordered on the basis of the first argument. If it's
|
|
838
|
+
* `undefined`, then nothing is on the queue yet, so the provided function can
|
|
839
|
+
* be called synchronously (although note that this function may return a
|
|
840
|
+
* `Promise`). The idea is that then the return value of that enqueueing
|
|
841
|
+
* operation is kept around, so that if it was a `Promise` then subsequent
|
|
842
|
+
* functions can be enqueued by calling this function again with that `Promise`
|
|
843
|
+
* as the first argument.
|
|
844
|
+
*
|
|
845
|
+
* @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
|
|
846
|
+
* @param fn a function to enqueue
|
|
847
|
+
* @returns either a `Promise` or the return value of the provided function
|
|
848
|
+
*/
|
|
849
|
+
const enqueue = (maybePromise, fn) => maybePromise instanceof Promise ? maybePromise.then(fn) : fn();
|
|
810
850
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
811
|
-
// updateComponent
|
|
812
851
|
const elm = hostRef.$hostElement$;
|
|
813
852
|
const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
|
|
814
853
|
const rc = elm['s-rc'];
|
|
@@ -913,9 +952,6 @@ const appDidLoad = (who) => {
|
|
|
913
952
|
}
|
|
914
953
|
nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
|
|
915
954
|
};
|
|
916
|
-
const then = (promise, thenFn) => {
|
|
917
|
-
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
918
|
-
};
|
|
919
955
|
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
920
956
|
;
|
|
921
957
|
const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
@@ -1046,9 +1082,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1046
1082
|
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
1047
1083
|
// initializeComponent
|
|
1048
1084
|
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1085
|
+
// Let the runtime know that the component has been initialized
|
|
1086
|
+
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1049
1087
|
{
|
|
1050
|
-
// we haven't initialized this element yet
|
|
1051
|
-
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1052
1088
|
// lazy loaded components
|
|
1053
1089
|
// request the component's implementation to be
|
|
1054
1090
|
// wired up with the host element
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-606cf529.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v3.2.
|
|
8
|
+
Stencil Client Patch Esm v3.2.2 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return index.promiseResolve();
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-606cf529.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v3.2.
|
|
8
|
+
Stencil Client Patch Browser v3.2.2 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchBrowser = () => {
|
|
11
11
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('proto-ikons-wc.cjs.js', document.baseURI).href));
|
|
@@ -470,15 +470,16 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
|
|
|
470
470
|
* @param vnodes a list of virtual DOM nodes to remove
|
|
471
471
|
* @param startIdx the index at which to start removing nodes (inclusive)
|
|
472
472
|
* @param endIdx the index at which to stop removing nodes (inclusive)
|
|
473
|
-
* @param vnode a VNode
|
|
474
|
-
* @param elm an element
|
|
475
473
|
*/
|
|
476
|
-
const removeVnodes = (vnodes, startIdx, endIdx
|
|
477
|
-
for (
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
elm
|
|
474
|
+
const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
475
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
|
476
|
+
const vnode = vnodes[index];
|
|
477
|
+
if (vnode) {
|
|
478
|
+
const elm = vnode.$elm$;
|
|
479
|
+
if (elm) {
|
|
480
|
+
// remove the vnode's element from the dom
|
|
481
|
+
elm.remove();
|
|
482
|
+
}
|
|
482
483
|
}
|
|
483
484
|
}
|
|
484
485
|
};
|
|
@@ -778,15 +779,53 @@ const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
778
779
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
779
780
|
return writeTask(dispatch) ;
|
|
780
781
|
};
|
|
782
|
+
/**
|
|
783
|
+
* Dispatch initial-render and update lifecycle hooks, enqueuing calls to
|
|
784
|
+
* component lifecycle methods like `componentWillLoad` as well as
|
|
785
|
+
* {@link updateComponent}, which will kick off the virtual DOM re-render.
|
|
786
|
+
*
|
|
787
|
+
* @param hostRef a reference to a host DOM node
|
|
788
|
+
* @param isInitialLoad whether we're on the initial load or not
|
|
789
|
+
* @returns an empty Promise which is used to enqueue a series of operations for
|
|
790
|
+
* the component
|
|
791
|
+
*/
|
|
781
792
|
const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
782
793
|
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
|
|
783
794
|
const instance = hostRef.$lazyInstance$ ;
|
|
784
|
-
|
|
795
|
+
// We're going to use this variable together with `enqueue` to implement a
|
|
796
|
+
// little promise-based queue. We start out with it `undefined`. When we add
|
|
797
|
+
// the first function to the queue we'll set this variable to be that
|
|
798
|
+
// function's return value. When we attempt to add subsequent values to the
|
|
799
|
+
// queue we'll check that value and, if it was a `Promise`, we'll then chain
|
|
800
|
+
// the new function off of that `Promise` using `.then()`. This will give our
|
|
801
|
+
// queue two nice properties:
|
|
802
|
+
//
|
|
803
|
+
// 1. If all functions added to the queue are synchronous they'll be called
|
|
804
|
+
// synchronously right away.
|
|
805
|
+
// 2. If all functions added to the queue are asynchronous they'll all be
|
|
806
|
+
// called in order after `dispatchHooks` exits.
|
|
807
|
+
let maybePromise;
|
|
785
808
|
endSchedule();
|
|
786
|
-
return
|
|
809
|
+
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
787
810
|
};
|
|
811
|
+
/**
|
|
812
|
+
* This function uses a Promise to implement a simple first-in, first-out queue
|
|
813
|
+
* of functions to be called.
|
|
814
|
+
*
|
|
815
|
+
* The queue is ordered on the basis of the first argument. If it's
|
|
816
|
+
* `undefined`, then nothing is on the queue yet, so the provided function can
|
|
817
|
+
* be called synchronously (although note that this function may return a
|
|
818
|
+
* `Promise`). The idea is that then the return value of that enqueueing
|
|
819
|
+
* operation is kept around, so that if it was a `Promise` then subsequent
|
|
820
|
+
* functions can be enqueued by calling this function again with that `Promise`
|
|
821
|
+
* as the first argument.
|
|
822
|
+
*
|
|
823
|
+
* @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
|
|
824
|
+
* @param fn a function to enqueue
|
|
825
|
+
* @returns either a `Promise` or the return value of the provided function
|
|
826
|
+
*/
|
|
827
|
+
const enqueue = (maybePromise, fn) => maybePromise instanceof Promise ? maybePromise.then(fn) : fn();
|
|
788
828
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
789
|
-
// updateComponent
|
|
790
829
|
const elm = hostRef.$hostElement$;
|
|
791
830
|
const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
|
|
792
831
|
const rc = elm['s-rc'];
|
|
@@ -891,9 +930,6 @@ const appDidLoad = (who) => {
|
|
|
891
930
|
}
|
|
892
931
|
nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
|
|
893
932
|
};
|
|
894
|
-
const then = (promise, thenFn) => {
|
|
895
|
-
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
896
|
-
};
|
|
897
933
|
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
898
934
|
;
|
|
899
935
|
const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
@@ -1024,9 +1060,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1024
1060
|
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
1025
1061
|
// initializeComponent
|
|
1026
1062
|
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1063
|
+
// Let the runtime know that the component has been initialized
|
|
1064
|
+
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1027
1065
|
{
|
|
1028
|
-
// we haven't initialized this element yet
|
|
1029
|
-
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1030
1066
|
// lazy loaded components
|
|
1031
1067
|
// request the component's implementation to be
|
|
1032
1068
|
// wired up with the host element
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-432107bf.js';
|
|
2
|
+
export { s as setNonce } from './index-432107bf.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Esm v3.2.
|
|
5
|
+
Stencil Client Patch Esm v3.2.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchEsm = () => {
|
|
8
8
|
return promiseResolve();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-432107bf.js';
|
|
2
|
+
export { s as setNonce } from './index-432107bf.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Browser v3.2.
|
|
5
|
+
Stencil Client Patch Browser v3.2.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchBrowser = () => {
|
|
8
8
|
const importMeta = import.meta.url;
|