@haiilo/catalyst 3.0.2 → 4.0.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/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/p-0a46696e.entry.js +10 -0
- package/dist/catalyst/p-0a46696e.entry.js.map +1 -0
- package/dist/catalyst/p-919eea27.js +3 -0
- package/dist/catalyst/p-919eea27.js.map +1 -0
- package/dist/cjs/cat-alert_24.cjs.entry.js +21 -8
- package/dist/cjs/cat-alert_24.cjs.entry.js.map +1 -1
- package/dist/cjs/catalyst.cjs.js +2 -2
- package/dist/cjs/{index-22e41d18.js → index-c4542095.js} +65 -4
- package/dist/cjs/index-c4542095.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/cat-button/cat-button.js +17 -2
- package/dist/collection/components/cat-button/cat-button.js.map +1 -1
- package/dist/collection/components/cat-form-hint/cat-form-hint.js +2 -1
- package/dist/collection/components/cat-form-hint/cat-form-hint.js.map +1 -1
- package/dist/collection/components/cat-input/cat-input.css +243 -7
- package/dist/collection/components/cat-input/cat-input.js +87 -6
- package/dist/collection/components/cat-input/cat-input.js.map +1 -1
- package/dist/components/cat-button2.js +3 -2
- package/dist/components/cat-button2.js.map +1 -1
- package/dist/components/cat-form-hint.js +2 -1
- package/dist/components/cat-form-hint.js.map +1 -1
- package/dist/components/cat-input.js +20 -4
- package/dist/components/cat-input.js.map +1 -1
- package/dist/esm/cat-alert_24.entry.js +21 -8
- package/dist/esm/cat-alert_24.entry.js.map +1 -1
- package/dist/esm/catalyst.js +2 -2
- package/dist/esm/{index-7b85fb91.js → index-524906f7.js} +65 -4
- package/dist/esm/index-524906f7.js.map +1 -0
- package/dist/esm/loader.js +2 -2
- package/dist/types/components/cat-button/cat-button.d.ts +6 -0
- package/dist/types/components/cat-form-hint/cat-form-hint.d.ts +1 -0
- package/dist/types/components/cat-input/cat-input.d.ts +20 -0
- package/dist/types/components.d.ts +40 -0
- package/package.json +3 -2
- package/dist/catalyst/p-1c6eace6.js +0 -3
- package/dist/catalyst/p-1c6eace6.js.map +0 -1
- package/dist/catalyst/p-6865acc8.entry.js +0 -10
- package/dist/catalyst/p-6865acc8.entry.js.map +0 -1
- package/dist/cjs/index-22e41d18.js.map +0 -1
- package/dist/esm/index-7b85fb91.js.map +0 -1
package/dist/esm/catalyst.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-524906f7.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
Stencil Client Patch Browser v2.17.4 | MIT Licensed | https://stenciljs.com
|
|
@@ -13,7 +13,7 @@ const patchBrowser = () => {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
patchBrowser().then(options => {
|
|
16
|
-
return bootstrapLazy([["cat-alert_24",[[1,"cat-select-demo"],[1,"cat-input",{"requiredMarker":[1,"required-marker"],"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[8],"maxLength":[2,"max-length"],"min":[8],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"round":[4],"type":[1],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64],"clear":[64]}],[1,"cat-pagination",{"page":[1026],"pageCount":[2,"page-count"],"activePadding":[2,"active-padding"],"sidePadding":[2,"side-padding"],"size":[1],"variant":[1],"round":[4],"compact":[4],"iconPrev":[1,"icon-prev"],"iconNext":[1,"icon-next"]}],[1,"cat-tabs",{"activeTab":[1,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"activeTabId":[32]},[[0,"keydown","onKeydown"]]],[1,"cat-alert",{"color":[513],"icon":[1],"noIcon":[4,"no-icon"]}],[1,"cat-badge",{"variant":[513],"color":[513],"size":[513],"round":[516],"pulse":[516]}],[1,"cat-card"],[1,"cat-form-group",{"requiredMarker":[1,"required-marker"]}],[1,"cat-label",{"requiredMarker":[1,"required-marker"],"for":[1],"required":[4]}],[1,"cat-radio",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-radio-group",{"name":[1],"value":[1025],"disabled":[4],"a11yLabel":[1,"a11y-label"],"labelLeft":[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"blur","onBlur"]]],[1,"cat-tab",{"label":[513],"icon":[513],"iconOnly":[520,"icon-only"],"iconRight":[516,"icon-right"],"url":[513],"urlTarget":[513,"url-target"],"deactivated":[516]},[[0,"click","onClick"]]],[1,"cat-textarea",{"requiredMarker":[1,"required-marker"],"disabled":[4],"hint":[1],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-toggle",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[1],"round":[4],"size":[1],"showDelay":[2,"show-delay"],"hideDelay":[2,"hide-delay"],"longTouchDuration":[2,"long-touch-duration"]},[[0,"keydown","handleKeyDown"]]],[1,"cat-select",{"requiredMarker":[1,"required-marker"],"multiple":[4],"debounce":[2],"placement":[1],"value":[1025],"disabled":[4],"placeholder":[1],"hint":[1],"identifier":[1],"label":[1],"name":[1],"labelHidden":[4,"label-hidden"],"required":[4],"clearable":[4],"tags":[4],"tagHint":[1,"tag-hint"],"noItems":[1,"no-items"],"connector":[32],"state":[32],"hasSlottedLabel":[32],"connect":[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]]],[1,"cat-dropdown",{"placement":[1],"noAutoClose":[4,"no-auto-close"],"overflow":[4],"close":[64]},[[0,"catClick","clickHandler"]]],[1,"cat-avatar",{"size":[1],"round":[4],"label":[1],"initials":[1],"src":[1],"icon":[1],"url":[1],"urlTarget":[1,"url-target"],"backgroundImage":[32]}],[1,"cat-checkbox",{"checked":[1028],"disabled":[4],"identifier":[1],"indeterminate":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-scrollable",{"noShadowX":[4,"no-shadow-x"],"noShadowY":[4,"no-shadow-y"],"noOverflowX":[4,"no-overflow-x"],"noOverflowY":[4,"no-overflow-y"],"noOverscroll":[4,"no-overscroll"],"noScrolledInit":[4,"no-scrolled-init"],"scrolledBuffer":[2,"scrolled-buffer"]}],[1,"cat-skeleton",{"effect":[1],"variant":[1],"size":[1],"lines":[2]}],[1,"cat-button",{"variant":[1],"color":[1],"active":[4],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"noEllipsis":[4,"no-ellipsis"],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconSrc":[1,"icon-src"],"iconOnly":[8,"icon-only"],"iconRight":[4,"icon-right"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"a11yCurrent":[1,"a11y-current"],"_iconOnly":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]},[[0,"click","haltDisabledEvents"]]],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"iconSrc":[1,"icon-src"],"size":[1],"a11yLabel":[1,"a11y-label"]}]]]], options);
|
|
16
|
+
return bootstrapLazy([["cat-alert_24",[[1,"cat-select-demo"],[1,"cat-input",{"requiredMarker":[1,"required-marker"],"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[8],"maxLength":[2,"max-length"],"min":[8],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"round":[4],"type":[1],"value":[1032],"invalid":[1028],"errors":[1040],"disableValidation":[4,"disable-validation"],"nativeAttributes":[16],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64],"clear":[64]}],[1,"cat-pagination",{"page":[1026],"pageCount":[2,"page-count"],"activePadding":[2,"active-padding"],"sidePadding":[2,"side-padding"],"size":[1],"variant":[1],"round":[4],"compact":[4],"iconPrev":[1,"icon-prev"],"iconNext":[1,"icon-next"]}],[1,"cat-tabs",{"activeTab":[1,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"activeTabId":[32]},[[0,"keydown","onKeydown"]]],[1,"cat-alert",{"color":[513],"icon":[1],"noIcon":[4,"no-icon"]}],[1,"cat-badge",{"variant":[513],"color":[513],"size":[513],"round":[516],"pulse":[516]}],[1,"cat-card"],[1,"cat-form-group",{"requiredMarker":[1,"required-marker"]}],[1,"cat-label",{"requiredMarker":[1,"required-marker"],"for":[1],"required":[4]}],[1,"cat-radio",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-radio-group",{"name":[1],"value":[1025],"disabled":[4],"a11yLabel":[1,"a11y-label"],"labelLeft":[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"blur","onBlur"]]],[1,"cat-tab",{"label":[513],"icon":[513],"iconOnly":[520,"icon-only"],"iconRight":[516,"icon-right"],"url":[513],"urlTarget":[513,"url-target"],"deactivated":[516]},[[0,"click","onClick"]]],[1,"cat-textarea",{"requiredMarker":[1,"required-marker"],"disabled":[4],"hint":[1],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-toggle",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[1],"round":[4],"size":[1],"showDelay":[2,"show-delay"],"hideDelay":[2,"hide-delay"],"longTouchDuration":[2,"long-touch-duration"]},[[0,"keydown","handleKeyDown"]]],[1,"cat-select",{"requiredMarker":[1,"required-marker"],"multiple":[4],"debounce":[2],"placement":[1],"value":[1025],"disabled":[4],"placeholder":[1],"hint":[1],"identifier":[1],"label":[1],"name":[1],"labelHidden":[4,"label-hidden"],"required":[4],"clearable":[4],"tags":[4],"tagHint":[1,"tag-hint"],"noItems":[1,"no-items"],"connector":[32],"state":[32],"hasSlottedLabel":[32],"connect":[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]]],[1,"cat-dropdown",{"placement":[1],"noAutoClose":[4,"no-auto-close"],"overflow":[4],"close":[64]},[[0,"catClick","clickHandler"]]],[1,"cat-avatar",{"size":[1],"round":[4],"label":[1],"initials":[1],"src":[1],"icon":[1],"url":[1],"urlTarget":[1,"url-target"],"backgroundImage":[32]}],[1,"cat-checkbox",{"checked":[1028],"disabled":[4],"identifier":[1],"indeterminate":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-scrollable",{"noShadowX":[4,"no-shadow-x"],"noShadowY":[4,"no-shadow-y"],"noOverflowX":[4,"no-overflow-x"],"noOverflowY":[4,"no-overflow-y"],"noOverscroll":[4,"no-overscroll"],"noScrolledInit":[4,"no-scrolled-init"],"scrolledBuffer":[2,"scrolled-buffer"]}],[1,"cat-skeleton",{"effect":[1],"variant":[1],"size":[1],"lines":[2]}],[1,"cat-button",{"variant":[1],"color":[1],"active":[4],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"noEllipsis":[4,"no-ellipsis"],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconSrc":[1,"icon-src"],"iconOnly":[8,"icon-only"],"iconRight":[4,"icon-right"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"a11yCurrent":[1,"a11y-current"],"nativeAttributes":[16],"_iconOnly":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]},[[0,"click","haltDisabledEvents"]]],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"iconSrc":[1,"icon-src"],"size":[1],"a11yLabel":[1,"a11y-label"]}]]]], options);
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
//# sourceMappingURL=catalyst.js.map
|
|
@@ -55,6 +55,7 @@ const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
55
55
|
// prettier-ignore
|
|
56
56
|
const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
|
|
57
57
|
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
58
|
+
const XLINK_NS = 'http://www.w3.org/1999/xlink';
|
|
58
59
|
const createTime = (fnName, tagName = '') => {
|
|
59
60
|
{
|
|
60
61
|
return () => {
|
|
@@ -171,6 +172,7 @@ const isComplexType = (o) => {
|
|
|
171
172
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
|
|
172
173
|
const h = (nodeName, vnodeData, ...children) => {
|
|
173
174
|
let child = null;
|
|
175
|
+
let key = null;
|
|
174
176
|
let simple = false;
|
|
175
177
|
let lastSimple = false;
|
|
176
178
|
const vNodeChildren = [];
|
|
@@ -198,6 +200,10 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
198
200
|
};
|
|
199
201
|
walk(children);
|
|
200
202
|
if (vnodeData) {
|
|
203
|
+
// normalize class / classname attributes
|
|
204
|
+
if (vnodeData.key) {
|
|
205
|
+
key = vnodeData.key;
|
|
206
|
+
}
|
|
201
207
|
{
|
|
202
208
|
const classData = vnodeData.className || vnodeData.class;
|
|
203
209
|
if (classData) {
|
|
@@ -219,6 +225,9 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
219
225
|
if (vNodeChildren.length > 0) {
|
|
220
226
|
vnode.$children$ = vNodeChildren;
|
|
221
227
|
}
|
|
228
|
+
{
|
|
229
|
+
vnode.$key$ = key;
|
|
230
|
+
}
|
|
222
231
|
return vnode;
|
|
223
232
|
};
|
|
224
233
|
const newVNode = (tag, text) => {
|
|
@@ -232,6 +241,9 @@ const newVNode = (tag, text) => {
|
|
|
232
241
|
{
|
|
233
242
|
vnode.$attrs$ = null;
|
|
234
243
|
}
|
|
244
|
+
{
|
|
245
|
+
vnode.$key$ = null;
|
|
246
|
+
}
|
|
235
247
|
return vnode;
|
|
236
248
|
};
|
|
237
249
|
const Host = {};
|
|
@@ -310,6 +322,8 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
310
322
|
}
|
|
311
323
|
}
|
|
312
324
|
}
|
|
325
|
+
else if (memberName === 'key')
|
|
326
|
+
;
|
|
313
327
|
else if (memberName === 'ref') {
|
|
314
328
|
// minifier will clean this up
|
|
315
329
|
if (newValue) {
|
|
@@ -376,16 +390,36 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
376
390
|
}
|
|
377
391
|
catch (e) { }
|
|
378
392
|
}
|
|
393
|
+
/**
|
|
394
|
+
* Need to manually update attribute if:
|
|
395
|
+
* - memberName is not an attribute
|
|
396
|
+
* - if we are rendering the host element in order to reflect attribute
|
|
397
|
+
* - if it's a SVG, since properties might not work in <svg>
|
|
398
|
+
* - if the newValue is null/undefined or 'false'.
|
|
399
|
+
*/
|
|
400
|
+
let xlink = false;
|
|
401
|
+
{
|
|
402
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
|
|
403
|
+
memberName = ln;
|
|
404
|
+
xlink = true;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
379
407
|
if (newValue == null || newValue === false) {
|
|
380
408
|
if (newValue !== false || elm.getAttribute(memberName) === '') {
|
|
381
|
-
{
|
|
409
|
+
if (xlink) {
|
|
410
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
411
|
+
}
|
|
412
|
+
else {
|
|
382
413
|
elm.removeAttribute(memberName);
|
|
383
414
|
}
|
|
384
415
|
}
|
|
385
416
|
}
|
|
386
417
|
else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
387
418
|
newValue = newValue === true ? '' : newValue;
|
|
388
|
-
{
|
|
419
|
+
if (xlink) {
|
|
420
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
421
|
+
}
|
|
422
|
+
else {
|
|
389
423
|
elm.setAttribute(memberName, newValue);
|
|
390
424
|
}
|
|
391
425
|
}
|
|
@@ -498,6 +532,8 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
|
498
532
|
const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
499
533
|
let oldStartIdx = 0;
|
|
500
534
|
let newStartIdx = 0;
|
|
535
|
+
let idxInOld = 0;
|
|
536
|
+
let i = 0;
|
|
501
537
|
let oldEndIdx = oldCh.length - 1;
|
|
502
538
|
let oldStartVnode = oldCh[0];
|
|
503
539
|
let oldEndVnode = oldCh[oldEndIdx];
|
|
@@ -505,6 +541,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
505
541
|
let newStartVnode = newCh[0];
|
|
506
542
|
let newEndVnode = newCh[newEndIdx];
|
|
507
543
|
let node;
|
|
544
|
+
let elmToMove;
|
|
508
545
|
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
509
546
|
if (oldStartVnode == null) {
|
|
510
547
|
// Vnode might have been moved left
|
|
@@ -542,7 +579,29 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
542
579
|
newStartVnode = newCh[++newStartIdx];
|
|
543
580
|
}
|
|
544
581
|
else {
|
|
582
|
+
// createKeyToOldIdx
|
|
583
|
+
idxInOld = -1;
|
|
545
584
|
{
|
|
585
|
+
for (i = oldStartIdx; i <= oldEndIdx; ++i) {
|
|
586
|
+
if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
|
|
587
|
+
idxInOld = i;
|
|
588
|
+
break;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
if (idxInOld >= 0) {
|
|
593
|
+
elmToMove = oldCh[idxInOld];
|
|
594
|
+
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
595
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
|
|
596
|
+
}
|
|
597
|
+
else {
|
|
598
|
+
patch(elmToMove, newStartVnode);
|
|
599
|
+
oldCh[idxInOld] = undefined;
|
|
600
|
+
node = elmToMove.$elm$;
|
|
601
|
+
}
|
|
602
|
+
newStartVnode = newCh[++newStartIdx];
|
|
603
|
+
}
|
|
604
|
+
else {
|
|
546
605
|
// new element
|
|
547
606
|
node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
|
|
548
607
|
newStartVnode = newCh[++newStartIdx];
|
|
@@ -565,7 +624,9 @@ const isSameVnode = (vnode1, vnode2) => {
|
|
|
565
624
|
// compare if two vnode to see if they're "technically" the same
|
|
566
625
|
// need to have the same element tag, and same key to be the same
|
|
567
626
|
if (vnode1.$tag$ === vnode2.$tag$) {
|
|
568
|
-
|
|
627
|
+
{
|
|
628
|
+
return vnode1.$key$ === vnode2.$key$;
|
|
629
|
+
}
|
|
569
630
|
}
|
|
570
631
|
return false;
|
|
571
632
|
};
|
|
@@ -1377,4 +1438,4 @@ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
|
1377
1438
|
|
|
1378
1439
|
export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r };
|
|
1379
1440
|
|
|
1380
|
-
//# sourceMappingURL=index-
|
|
1441
|
+
//# sourceMappingURL=index-524906f7.js.map
|