pome-ui 2.0.0-preview32 → 2.0.0-preview34
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/package.json +1 -1
- package/pome-ui.dev.js +89 -36
- package/pome-ui.dev.min.js +23 -23
- package/pome-ui.js +4 -8
- package/pome-ui.min.js +2 -2
package/package.json
CHANGED
package/pome-ui.dev.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Vue
|
|
2
2
|
/**
|
|
3
|
-
* vue v3.5.
|
|
3
|
+
* vue v3.5.13
|
|
4
4
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5
5
|
* @license MIT
|
|
6
6
|
**/
|
|
@@ -216,10 +216,9 @@ var Vue = (function (exports) {
|
|
|
216
216
|
return ret;
|
|
217
217
|
}
|
|
218
218
|
function stringifyStyle(styles) {
|
|
219
|
+
if (!styles) return "";
|
|
220
|
+
if (isString(styles)) return styles;
|
|
219
221
|
let ret = "";
|
|
220
|
-
if (!styles || isString(styles)) {
|
|
221
|
-
return ret;
|
|
222
|
-
}
|
|
223
222
|
for (const key in styles) {
|
|
224
223
|
const value = styles[key];
|
|
225
224
|
if (isString(value) || typeof value === "number") {
|
|
@@ -482,17 +481,21 @@ var Vue = (function (exports) {
|
|
|
482
481
|
}
|
|
483
482
|
stop(fromParent) {
|
|
484
483
|
if (this._active) {
|
|
484
|
+
this._active = false;
|
|
485
485
|
let i, l;
|
|
486
486
|
for (i = 0, l = this.effects.length; i < l; i++) {
|
|
487
487
|
this.effects[i].stop();
|
|
488
488
|
}
|
|
489
|
+
this.effects.length = 0;
|
|
489
490
|
for (i = 0, l = this.cleanups.length; i < l; i++) {
|
|
490
491
|
this.cleanups[i]();
|
|
491
492
|
}
|
|
493
|
+
this.cleanups.length = 0;
|
|
492
494
|
if (this.scopes) {
|
|
493
495
|
for (i = 0, l = this.scopes.length; i < l; i++) {
|
|
494
496
|
this.scopes[i].stop(true);
|
|
495
497
|
}
|
|
498
|
+
this.scopes.length = 0;
|
|
496
499
|
}
|
|
497
500
|
if (!this.detached && this.parent && !fromParent) {
|
|
498
501
|
const last = this.parent.scopes.pop();
|
|
@@ -502,7 +505,6 @@ var Vue = (function (exports) {
|
|
|
502
505
|
}
|
|
503
506
|
}
|
|
504
507
|
this.parent = void 0;
|
|
505
|
-
this._active = false;
|
|
506
508
|
}
|
|
507
509
|
}
|
|
508
510
|
}
|
|
@@ -1268,6 +1270,7 @@ var Vue = (function (exports) {
|
|
|
1268
1270
|
this._isShallow = _isShallow;
|
|
1269
1271
|
}
|
|
1270
1272
|
get(target, key, receiver) {
|
|
1273
|
+
if (key === "__v_skip") return target["__v_skip"];
|
|
1271
1274
|
const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow;
|
|
1272
1275
|
if (key === "__v_isReactive") {
|
|
1273
1276
|
return !isReadonly2;
|
|
@@ -2104,7 +2107,7 @@ var Vue = (function (exports) {
|
|
|
2104
2107
|
const scope = getCurrentScope();
|
|
2105
2108
|
const watchHandle = () => {
|
|
2106
2109
|
effect.stop();
|
|
2107
|
-
if (scope) {
|
|
2110
|
+
if (scope && scope.active) {
|
|
2108
2111
|
remove(scope.effects, effect);
|
|
2109
2112
|
}
|
|
2110
2113
|
};
|
|
@@ -3064,11 +3067,32 @@ var Vue = (function (exports) {
|
|
|
3064
3067
|
updateCssVars(n2, true);
|
|
3065
3068
|
}
|
|
3066
3069
|
if (isTeleportDeferred(n2.props)) {
|
|
3067
|
-
queuePostRenderEffect(
|
|
3070
|
+
queuePostRenderEffect(() => {
|
|
3071
|
+
mountToTarget();
|
|
3072
|
+
n2.el.__isMounted = true;
|
|
3073
|
+
}, parentSuspense);
|
|
3068
3074
|
} else {
|
|
3069
3075
|
mountToTarget();
|
|
3070
3076
|
}
|
|
3071
3077
|
} else {
|
|
3078
|
+
if (isTeleportDeferred(n2.props) && !n1.el.__isMounted) {
|
|
3079
|
+
queuePostRenderEffect(() => {
|
|
3080
|
+
TeleportImpl.process(
|
|
3081
|
+
n1,
|
|
3082
|
+
n2,
|
|
3083
|
+
container,
|
|
3084
|
+
anchor,
|
|
3085
|
+
parentComponent,
|
|
3086
|
+
parentSuspense,
|
|
3087
|
+
namespace,
|
|
3088
|
+
slotScopeIds,
|
|
3089
|
+
optimized,
|
|
3090
|
+
internals
|
|
3091
|
+
);
|
|
3092
|
+
delete n1.el.__isMounted;
|
|
3093
|
+
}, parentSuspense);
|
|
3094
|
+
return;
|
|
3095
|
+
}
|
|
3072
3096
|
n2.el = n1.el;
|
|
3073
3097
|
n2.targetStart = n1.targetStart;
|
|
3074
3098
|
const mainAnchor = n2.anchor = n1.anchor;
|
|
@@ -3374,10 +3398,9 @@ var Vue = (function (exports) {
|
|
|
3374
3398
|
if (innerChild.type !== Comment) {
|
|
3375
3399
|
setTransitionHooks(innerChild, enterHooks);
|
|
3376
3400
|
}
|
|
3377
|
-
|
|
3378
|
-
const oldInnerChild = oldChild && getInnerChild$1(oldChild);
|
|
3401
|
+
let oldInnerChild = instance.subTree && getInnerChild$1(instance.subTree);
|
|
3379
3402
|
if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild) && recursiveGetSubtree(instance).type !== Comment) {
|
|
3380
|
-
|
|
3403
|
+
let leavingHooks = resolveTransitionHooks(
|
|
3381
3404
|
oldInnerChild,
|
|
3382
3405
|
rawProps,
|
|
3383
3406
|
state,
|
|
@@ -3392,6 +3415,7 @@ var Vue = (function (exports) {
|
|
|
3392
3415
|
instance.update();
|
|
3393
3416
|
}
|
|
3394
3417
|
delete leavingHooks.afterLeave;
|
|
3418
|
+
oldInnerChild = void 0;
|
|
3395
3419
|
};
|
|
3396
3420
|
return emptyPlaceholder(child);
|
|
3397
3421
|
} else if (mode === "in-out" && innerChild.type !== Comment) {
|
|
@@ -3405,10 +3429,19 @@ var Vue = (function (exports) {
|
|
|
3405
3429
|
earlyRemove();
|
|
3406
3430
|
el[leaveCbKey] = void 0;
|
|
3407
3431
|
delete enterHooks.delayedLeave;
|
|
3432
|
+
oldInnerChild = void 0;
|
|
3433
|
+
};
|
|
3434
|
+
enterHooks.delayedLeave = () => {
|
|
3435
|
+
delayedLeave();
|
|
3436
|
+
delete enterHooks.delayedLeave;
|
|
3437
|
+
oldInnerChild = void 0;
|
|
3408
3438
|
};
|
|
3409
|
-
enterHooks.delayedLeave = delayedLeave;
|
|
3410
3439
|
};
|
|
3440
|
+
} else {
|
|
3441
|
+
oldInnerChild = void 0;
|
|
3411
3442
|
}
|
|
3443
|
+
} else if (oldInnerChild) {
|
|
3444
|
+
oldInnerChild = void 0;
|
|
3412
3445
|
}
|
|
3413
3446
|
return child;
|
|
3414
3447
|
};
|
|
@@ -3713,6 +3746,9 @@ var Vue = (function (exports) {
|
|
|
3713
3746
|
return;
|
|
3714
3747
|
}
|
|
3715
3748
|
if (isAsyncWrapper(vnode) && !isUnmount) {
|
|
3749
|
+
if (vnode.shapeFlag & 512 && vnode.type.__asyncResolved && vnode.component.subTree.component) {
|
|
3750
|
+
setRef(rawRef, oldRawRef, parentSuspense, vnode.component.subTree);
|
|
3751
|
+
}
|
|
3716
3752
|
return;
|
|
3717
3753
|
}
|
|
3718
3754
|
const refValue = vnode.shapeFlag & 4 ? getComponentPublicInstance(vnode.component) : vnode.el;
|
|
@@ -3977,7 +4013,7 @@ var Vue = (function (exports) {
|
|
|
3977
4013
|
getContainerType(container),
|
|
3978
4014
|
optimized
|
|
3979
4015
|
);
|
|
3980
|
-
if (isAsyncWrapper(vnode)) {
|
|
4016
|
+
if (isAsyncWrapper(vnode) && !vnode.type.__asyncResolved) {
|
|
3981
4017
|
let subTree;
|
|
3982
4018
|
if (isFragmentStart) {
|
|
3983
4019
|
subTree = createVNode(Fragment);
|
|
@@ -4246,6 +4282,10 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4246
4282
|
getContainerType(container),
|
|
4247
4283
|
slotScopeIds
|
|
4248
4284
|
);
|
|
4285
|
+
if (parentComponent) {
|
|
4286
|
+
parentComponent.vnode.el = vnode.el;
|
|
4287
|
+
updateHOCHostEl(parentComponent, vnode.el);
|
|
4288
|
+
}
|
|
4249
4289
|
return next;
|
|
4250
4290
|
};
|
|
4251
4291
|
const locateClosingAnchor = (node, open = "[", close = "]") => {
|
|
@@ -8659,7 +8699,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8659
8699
|
}
|
|
8660
8700
|
if (extraAttrs.length) {
|
|
8661
8701
|
warn$1(
|
|
8662
|
-
`Extraneous non-props attributes (${extraAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`
|
|
8702
|
+
`Extraneous non-props attributes (${extraAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes.`
|
|
8663
8703
|
);
|
|
8664
8704
|
}
|
|
8665
8705
|
if (eventAttrs.length) {
|
|
@@ -9442,9 +9482,9 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9442
9482
|
currentBlock = blockStack[blockStack.length - 1] || null;
|
|
9443
9483
|
}
|
|
9444
9484
|
let isBlockTreeEnabled = 1;
|
|
9445
|
-
function setBlockTracking(value) {
|
|
9485
|
+
function setBlockTracking(value, inVOnce = false) {
|
|
9446
9486
|
isBlockTreeEnabled += value;
|
|
9447
|
-
if (value < 0 && currentBlock) {
|
|
9487
|
+
if (value < 0 && currentBlock && inVOnce) {
|
|
9448
9488
|
currentBlock.hasOnce = true;
|
|
9449
9489
|
}
|
|
9450
9490
|
}
|
|
@@ -10454,7 +10494,7 @@ Component that was made reactive: `,
|
|
|
10454
10494
|
return true;
|
|
10455
10495
|
}
|
|
10456
10496
|
|
|
10457
|
-
const version = "3.5.
|
|
10497
|
+
const version = "3.5.13";
|
|
10458
10498
|
const warn = warn$1 ;
|
|
10459
10499
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10460
10500
|
const devtools = devtools$1 ;
|
|
@@ -10626,7 +10666,8 @@ Component that was made reactive: `,
|
|
|
10626
10666
|
onAppear = onEnter,
|
|
10627
10667
|
onAppearCancelled = onEnterCancelled
|
|
10628
10668
|
} = baseProps;
|
|
10629
|
-
const finishEnter = (el, isAppear, done) => {
|
|
10669
|
+
const finishEnter = (el, isAppear, done, isCancelled) => {
|
|
10670
|
+
el._enterCancelled = isCancelled;
|
|
10630
10671
|
removeTransitionClass(el, isAppear ? appearToClass : enterToClass);
|
|
10631
10672
|
removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);
|
|
10632
10673
|
done && done();
|
|
@@ -10669,8 +10710,13 @@ Component that was made reactive: `,
|
|
|
10669
10710
|
el._isLeaving = true;
|
|
10670
10711
|
const resolve = () => finishLeave(el, done);
|
|
10671
10712
|
addTransitionClass(el, leaveFromClass);
|
|
10672
|
-
|
|
10673
|
-
|
|
10713
|
+
if (!el._enterCancelled) {
|
|
10714
|
+
forceReflow();
|
|
10715
|
+
addTransitionClass(el, leaveActiveClass);
|
|
10716
|
+
} else {
|
|
10717
|
+
addTransitionClass(el, leaveActiveClass);
|
|
10718
|
+
forceReflow();
|
|
10719
|
+
}
|
|
10674
10720
|
nextFrame(() => {
|
|
10675
10721
|
if (!el._isLeaving) {
|
|
10676
10722
|
return;
|
|
@@ -10684,11 +10730,11 @@ Component that was made reactive: `,
|
|
|
10684
10730
|
callHook(onLeave, [el, resolve]);
|
|
10685
10731
|
},
|
|
10686
10732
|
onEnterCancelled(el) {
|
|
10687
|
-
finishEnter(el, false);
|
|
10733
|
+
finishEnter(el, false, void 0, true);
|
|
10688
10734
|
callHook(onEnterCancelled, [el]);
|
|
10689
10735
|
},
|
|
10690
10736
|
onAppearCancelled(el) {
|
|
10691
|
-
finishEnter(el, true);
|
|
10737
|
+
finishEnter(el, true, void 0, true);
|
|
10692
10738
|
callHook(onAppearCancelled, [el]);
|
|
10693
10739
|
},
|
|
10694
10740
|
onLeaveCancelled(el) {
|
|
@@ -10901,10 +10947,11 @@ Component that was made reactive: `,
|
|
|
10901
10947
|
}
|
|
10902
10948
|
updateTeleports(vars);
|
|
10903
10949
|
};
|
|
10904
|
-
|
|
10905
|
-
|
|
10950
|
+
onBeforeUpdate(() => {
|
|
10951
|
+
queuePostFlushCb(setVars);
|
|
10906
10952
|
});
|
|
10907
10953
|
onMounted(() => {
|
|
10954
|
+
watch(setVars, NOOP, { flush: "post" });
|
|
10908
10955
|
const ob = new MutationObserver(setVars);
|
|
10909
10956
|
ob.observe(instance.subTree.el.parentNode, { childList: true });
|
|
10910
10957
|
onUnmounted(() => ob.disconnect());
|
|
@@ -11511,6 +11558,8 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11511
11558
|
this._update();
|
|
11512
11559
|
}
|
|
11513
11560
|
if (shouldReflect) {
|
|
11561
|
+
const ob = this._ob;
|
|
11562
|
+
ob && ob.disconnect();
|
|
11514
11563
|
if (val === true) {
|
|
11515
11564
|
this.setAttribute(hyphenate(key), "");
|
|
11516
11565
|
} else if (typeof val === "string" || typeof val === "number") {
|
|
@@ -11518,6 +11567,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11518
11567
|
} else if (!val) {
|
|
11519
11568
|
this.removeAttribute(hyphenate(key));
|
|
11520
11569
|
}
|
|
11570
|
+
ob && ob.observe(this, { attributes: true });
|
|
11521
11571
|
}
|
|
11522
11572
|
}
|
|
11523
11573
|
}
|
|
@@ -12491,12 +12541,13 @@ Make sure to use the production build (*.prod.js) when deploying for production.
|
|
|
12491
12541
|
loc: locStub
|
|
12492
12542
|
};
|
|
12493
12543
|
}
|
|
12494
|
-
function createCacheExpression(index, value, needPauseTracking = false) {
|
|
12544
|
+
function createCacheExpression(index, value, needPauseTracking = false, inVOnce = false) {
|
|
12495
12545
|
return {
|
|
12496
12546
|
type: 20,
|
|
12497
12547
|
index,
|
|
12498
12548
|
value,
|
|
12499
12549
|
needPauseTracking,
|
|
12550
|
+
inVOnce,
|
|
12500
12551
|
needArraySpread: false,
|
|
12501
12552
|
loc: locStub
|
|
12502
12553
|
};
|
|
@@ -14730,11 +14781,12 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
14730
14781
|
identifier.hoisted = exp;
|
|
14731
14782
|
return identifier;
|
|
14732
14783
|
},
|
|
14733
|
-
cache(exp, isVNode = false) {
|
|
14784
|
+
cache(exp, isVNode = false, inVOnce = false) {
|
|
14734
14785
|
const cacheExp = createCacheExpression(
|
|
14735
14786
|
context.cached.length,
|
|
14736
14787
|
exp,
|
|
14737
|
-
isVNode
|
|
14788
|
+
isVNode,
|
|
14789
|
+
inVOnce
|
|
14738
14790
|
);
|
|
14739
14791
|
context.cached.push(cacheExp);
|
|
14740
14792
|
return cacheExp;
|
|
@@ -15433,7 +15485,9 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
15433
15485
|
push(`_cache[${node.index}] || (`);
|
|
15434
15486
|
if (needPauseTracking) {
|
|
15435
15487
|
indent();
|
|
15436
|
-
push(`${helper(SET_BLOCK_TRACKING)}(-1)
|
|
15488
|
+
push(`${helper(SET_BLOCK_TRACKING)}(-1`);
|
|
15489
|
+
if (node.inVOnce) push(`, true`);
|
|
15490
|
+
push(`),`);
|
|
15437
15491
|
newline();
|
|
15438
15492
|
push(`(`);
|
|
15439
15493
|
}
|
|
@@ -15490,12 +15544,14 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
15490
15544
|
context
|
|
15491
15545
|
);
|
|
15492
15546
|
} else if (node.type === 1) {
|
|
15547
|
+
const memo = findDir(node, "memo");
|
|
15493
15548
|
for (let i = 0; i < node.props.length; i++) {
|
|
15494
15549
|
const dir = node.props[i];
|
|
15495
15550
|
if (dir.type === 7 && dir.name !== "for") {
|
|
15496
15551
|
const exp = dir.exp;
|
|
15497
15552
|
const arg = dir.arg;
|
|
15498
|
-
if (exp && exp.type === 4 && !(dir.name === "on" && arg))
|
|
15553
|
+
if (exp && exp.type === 4 && !(dir.name === "on" && arg) && // key has been processed in transformFor(vMemo + vFor)
|
|
15554
|
+
!(memo && arg && arg.type === 4 && arg.content === "key")) {
|
|
15499
15555
|
dir.exp = processExpression(
|
|
15500
15556
|
exp,
|
|
15501
15557
|
context,
|
|
@@ -15823,10 +15879,11 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
15823
15879
|
const isTemplate = isTemplateNode(node);
|
|
15824
15880
|
const memo = findDir(node, "memo");
|
|
15825
15881
|
const keyProp = findProp(node, `key`, false, true);
|
|
15826
|
-
|
|
15882
|
+
const isDirKey = keyProp && keyProp.type === 7;
|
|
15883
|
+
if (isDirKey && !keyProp.exp) {
|
|
15827
15884
|
transformBindShorthand(keyProp);
|
|
15828
15885
|
}
|
|
15829
|
-
|
|
15886
|
+
let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
|
|
15830
15887
|
const keyProperty = keyProp && keyExp ? createObjectProperty(`key`, keyExp) : null;
|
|
15831
15888
|
const isStableFragment = forNode.source.type === 4 && forNode.source.constType > 0;
|
|
15832
15889
|
const fragmentFlag = isStableFragment ? 64 : keyProp ? 128 : 256;
|
|
@@ -17023,8 +17080,8 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
17023
17080
|
if (cur.codegenNode) {
|
|
17024
17081
|
cur.codegenNode = context.cache(
|
|
17025
17082
|
cur.codegenNode,
|
|
17083
|
+
true,
|
|
17026
17084
|
true
|
|
17027
|
-
/* isVNode */
|
|
17028
17085
|
);
|
|
17029
17086
|
}
|
|
17030
17087
|
};
|
|
@@ -19384,13 +19441,9 @@ function build(options, exports) {
|
|
|
19384
19441
|
return Promise.all(directives.map(function (c) {
|
|
19385
19442
|
c = resolveRelativePath(parseMacroPath(viewName, c), workingDirectory);
|
|
19386
19443
|
viewName = c;
|
|
19387
|
-
var _html;
|
|
19388
19444
|
var _name;
|
|
19389
19445
|
var _opt;
|
|
19390
|
-
return _httpGet(c + ".
|
|
19391
|
-
_html = comHtml;
|
|
19392
|
-
return _httpGet(c + ".js");
|
|
19393
|
-
}).then(function (comJs) {
|
|
19446
|
+
return _httpGet(c + ".js").then(function (comJs) {
|
|
19394
19447
|
var Directive = function (name, options) {
|
|
19395
19448
|
_opt = options;
|
|
19396
19449
|
_name = name;
|