pome-ui 2.0.0-preview19 → 2.0.0-preview20
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 +66 -34
- package/pome-ui.dev.min.js +24 -24
- package/pome-ui.js +15 -15
- package/pome-ui.min.js +1 -1
package/package.json
CHANGED
package/pome-ui.dev.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Vue
|
|
2
2
|
/**
|
|
3
|
-
* vue v3.4.
|
|
3
|
+
* vue v3.4.15
|
|
4
4
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5
5
|
* @license MIT
|
|
6
6
|
**/
|
|
@@ -269,6 +269,13 @@ var Vue = (function (exports) {
|
|
|
269
269
|
const isKnownSvgAttr = /* @__PURE__ */ makeMap(
|
|
270
270
|
`xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`
|
|
271
271
|
);
|
|
272
|
+
function isRenderableAttrValue(value) {
|
|
273
|
+
if (value == null) {
|
|
274
|
+
return false;
|
|
275
|
+
}
|
|
276
|
+
const type = typeof value;
|
|
277
|
+
return type === "string" || type === "number" || type === "boolean";
|
|
278
|
+
}
|
|
272
279
|
|
|
273
280
|
function looseCompareArrays(a, b) {
|
|
274
281
|
if (a.length !== b.length)
|
|
@@ -631,10 +638,7 @@ var Vue = (function (exports) {
|
|
|
631
638
|
var _a;
|
|
632
639
|
pauseScheduling();
|
|
633
640
|
for (const effect2 of dep.keys()) {
|
|
634
|
-
if (dep.get(effect2)
|
|
635
|
-
continue;
|
|
636
|
-
}
|
|
637
|
-
if (effect2._dirtyLevel < dirtyLevel && !(effect2._runnings && !effect2.allowRecurse)) {
|
|
641
|
+
if (effect2._dirtyLevel < dirtyLevel && dep.get(effect2) === effect2._trackId) {
|
|
638
642
|
const lastDirtyLevel = effect2._dirtyLevel;
|
|
639
643
|
effect2._dirtyLevel = dirtyLevel;
|
|
640
644
|
if (lastDirtyLevel === 0) {
|
|
@@ -645,12 +649,17 @@ var Vue = (function (exports) {
|
|
|
645
649
|
effect2.trigger();
|
|
646
650
|
}
|
|
647
651
|
}
|
|
648
|
-
|
|
652
|
+
}
|
|
653
|
+
scheduleEffects(dep);
|
|
654
|
+
resetScheduling();
|
|
655
|
+
}
|
|
656
|
+
function scheduleEffects(dep) {
|
|
657
|
+
for (const effect2 of dep.keys()) {
|
|
658
|
+
if (effect2.scheduler && effect2._shouldSchedule && (!effect2._runnings || effect2.allowRecurse) && dep.get(effect2) === effect2._trackId) {
|
|
649
659
|
effect2._shouldSchedule = false;
|
|
650
660
|
queueEffectSchedulers.push(effect2.scheduler);
|
|
651
661
|
}
|
|
652
662
|
}
|
|
653
|
-
resetScheduling();
|
|
654
663
|
}
|
|
655
664
|
|
|
656
665
|
const createDep = (cleanup, computed) => {
|
|
@@ -1333,7 +1342,8 @@ var Vue = (function (exports) {
|
|
|
1333
1342
|
this["__v_isReadonly"] = false;
|
|
1334
1343
|
this.effect = new ReactiveEffect(
|
|
1335
1344
|
() => getter(this._value),
|
|
1336
|
-
() => triggerRefValue(this, 1)
|
|
1345
|
+
() => triggerRefValue(this, 1),
|
|
1346
|
+
() => this.dep && scheduleEffects(this.dep)
|
|
1337
1347
|
);
|
|
1338
1348
|
this.effect.computed = this;
|
|
1339
1349
|
this.effect.active = this._cacheable = !isSSR;
|
|
@@ -1347,6 +1357,9 @@ var Vue = (function (exports) {
|
|
|
1347
1357
|
}
|
|
1348
1358
|
}
|
|
1349
1359
|
trackRefValue(self);
|
|
1360
|
+
if (self.effect._dirtyLevel >= 1) {
|
|
1361
|
+
triggerRefValue(self, 1);
|
|
1362
|
+
}
|
|
1350
1363
|
return self._value;
|
|
1351
1364
|
}
|
|
1352
1365
|
set value(newValue) {
|
|
@@ -5938,7 +5951,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
5938
5951
|
return rawSlot;
|
|
5939
5952
|
}
|
|
5940
5953
|
const normalized = withCtx((...args) => {
|
|
5941
|
-
if (currentInstance) {
|
|
5954
|
+
if (currentInstance && (!ctx || ctx.root === currentInstance.root)) {
|
|
5942
5955
|
warn$1(
|
|
5943
5956
|
`Slot "${key}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`
|
|
5944
5957
|
);
|
|
@@ -6074,9 +6087,10 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
6074
6087
|
} else {
|
|
6075
6088
|
const _isString = isString(ref);
|
|
6076
6089
|
const _isRef = isRef(ref);
|
|
6090
|
+
const isVFor = rawRef.f;
|
|
6077
6091
|
if (_isString || _isRef) {
|
|
6078
6092
|
const doSet = () => {
|
|
6079
|
-
if (
|
|
6093
|
+
if (isVFor) {
|
|
6080
6094
|
const existing = _isString ? hasOwn(setupState, ref) ? setupState[ref] : refs[ref] : ref.value;
|
|
6081
6095
|
if (isUnmount) {
|
|
6082
6096
|
isArray(existing) && remove(existing, refValue);
|
|
@@ -6109,11 +6123,11 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
6109
6123
|
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
6110
6124
|
}
|
|
6111
6125
|
};
|
|
6112
|
-
if (
|
|
6126
|
+
if (isUnmount || isVFor) {
|
|
6127
|
+
doSet();
|
|
6128
|
+
} else {
|
|
6113
6129
|
doSet.id = -1;
|
|
6114
6130
|
queuePostRenderEffect(doSet, parentSuspense);
|
|
6115
|
-
} else {
|
|
6116
|
-
doSet();
|
|
6117
6131
|
}
|
|
6118
6132
|
} else {
|
|
6119
6133
|
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
@@ -6623,11 +6637,12 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
6623
6637
|
} else {
|
|
6624
6638
|
if (el.hasAttribute(key)) {
|
|
6625
6639
|
actual = el.getAttribute(key);
|
|
6640
|
+
} else if (key === "value" && el.tagName === "TEXTAREA") {
|
|
6641
|
+
actual = el.value;
|
|
6626
6642
|
} else {
|
|
6627
|
-
|
|
6628
|
-
actual = isObject(serverValue) || serverValue == null ? "" : String(serverValue);
|
|
6643
|
+
actual = false;
|
|
6629
6644
|
}
|
|
6630
|
-
expected =
|
|
6645
|
+
expected = isRenderableAttrValue(clientValue) ? String(clientValue) : false;
|
|
6631
6646
|
}
|
|
6632
6647
|
if (actual !== expected) {
|
|
6633
6648
|
mismatchType = `attribute`;
|
|
@@ -9575,7 +9590,7 @@ Component that was made reactive: `,
|
|
|
9575
9590
|
return true;
|
|
9576
9591
|
}
|
|
9577
9592
|
|
|
9578
|
-
const version = "3.4.
|
|
9593
|
+
const version = "3.4.15";
|
|
9579
9594
|
const warn = warn$1 ;
|
|
9580
9595
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9581
9596
|
const devtools = devtools$1 ;
|
|
@@ -10826,35 +10841,52 @@ Component that was made reactive: `,
|
|
|
10826
10841
|
el[assignKey](
|
|
10827
10842
|
el.multiple ? isSetModel ? new Set(selectedVal) : selectedVal : selectedVal[0]
|
|
10828
10843
|
);
|
|
10844
|
+
el._assigning = true;
|
|
10845
|
+
nextTick(() => {
|
|
10846
|
+
el._assigning = false;
|
|
10847
|
+
});
|
|
10829
10848
|
});
|
|
10830
10849
|
el[assignKey] = getModelAssigner(vnode);
|
|
10831
10850
|
},
|
|
10832
10851
|
// set value in mounted & updated because <select> relies on its children
|
|
10833
10852
|
// <option>s.
|
|
10834
|
-
mounted(el, { value }) {
|
|
10835
|
-
setSelected(el, value);
|
|
10853
|
+
mounted(el, { value, oldValue, modifiers: { number } }) {
|
|
10854
|
+
setSelected(el, value, oldValue, number);
|
|
10836
10855
|
},
|
|
10837
10856
|
beforeUpdate(el, _binding, vnode) {
|
|
10838
10857
|
el[assignKey] = getModelAssigner(vnode);
|
|
10839
10858
|
},
|
|
10840
|
-
updated(el, { value }) {
|
|
10841
|
-
|
|
10859
|
+
updated(el, { value, oldValue, modifiers: { number } }) {
|
|
10860
|
+
if (!el._assigning) {
|
|
10861
|
+
setSelected(el, value, oldValue, number);
|
|
10862
|
+
}
|
|
10842
10863
|
}
|
|
10843
10864
|
};
|
|
10844
|
-
function setSelected(el, value) {
|
|
10865
|
+
function setSelected(el, value, oldValue, number) {
|
|
10845
10866
|
const isMultiple = el.multiple;
|
|
10846
|
-
|
|
10867
|
+
const isArrayValue = isArray(value);
|
|
10868
|
+
if (isMultiple && !isArrayValue && !isSet(value)) {
|
|
10847
10869
|
warn(
|
|
10848
10870
|
`<select multiple v-model> expects an Array or Set value for its binding, but got ${Object.prototype.toString.call(value).slice(8, -1)}.`
|
|
10849
10871
|
);
|
|
10850
10872
|
return;
|
|
10851
10873
|
}
|
|
10874
|
+
if (isArrayValue && looseEqual(value, oldValue)) {
|
|
10875
|
+
return;
|
|
10876
|
+
}
|
|
10852
10877
|
for (let i = 0, l = el.options.length; i < l; i++) {
|
|
10853
10878
|
const option = el.options[i];
|
|
10854
10879
|
const optionValue = getValue(option);
|
|
10855
10880
|
if (isMultiple) {
|
|
10856
|
-
if (
|
|
10857
|
-
|
|
10881
|
+
if (isArrayValue) {
|
|
10882
|
+
const optionType = typeof optionValue;
|
|
10883
|
+
if (optionType === "string" || optionType === "number") {
|
|
10884
|
+
option.selected = value.includes(
|
|
10885
|
+
number ? looseToNumber(optionValue) : optionValue
|
|
10886
|
+
);
|
|
10887
|
+
} else {
|
|
10888
|
+
option.selected = looseIndexOf(value, optionValue) > -1;
|
|
10889
|
+
}
|
|
10858
10890
|
} else {
|
|
10859
10891
|
option.selected = value.has(optionValue);
|
|
10860
10892
|
}
|
|
@@ -17925,7 +17957,7 @@ function build(options, exports) {
|
|
|
17925
17957
|
opt.computed = {};
|
|
17926
17958
|
}
|
|
17927
17959
|
|
|
17928
|
-
|
|
17960
|
+
let func1 = opt.data;
|
|
17929
17961
|
opt.data = function (app) {
|
|
17930
17962
|
var data = func1.call(this, app);
|
|
17931
17963
|
var data2 = { pomeUiSubTitles: [] };
|
|
@@ -17948,7 +17980,7 @@ function build(options, exports) {
|
|
|
17948
17980
|
}
|
|
17949
17981
|
|
|
17950
17982
|
|
|
17951
|
-
|
|
17983
|
+
let func9 = opt.watch.title;
|
|
17952
17984
|
opt.watch.title = async function () {
|
|
17953
17985
|
var p1 = func9.call(this);
|
|
17954
17986
|
if (!p1 || !p1 instanceof Promise) {
|
|
@@ -17971,7 +18003,7 @@ function build(options, exports) {
|
|
|
17971
18003
|
}
|
|
17972
18004
|
|
|
17973
18005
|
if (addin.data) {
|
|
17974
|
-
|
|
18006
|
+
let func2 = opt.data;
|
|
17975
18007
|
opt.data = function (app) {
|
|
17976
18008
|
var data = func2.call(this, app);
|
|
17977
18009
|
var data2 = {};
|
|
@@ -18069,7 +18101,7 @@ function build(options, exports) {
|
|
|
18069
18101
|
}
|
|
18070
18102
|
|
|
18071
18103
|
if (addin.created) {
|
|
18072
|
-
|
|
18104
|
+
let func3 = opt.created;
|
|
18073
18105
|
opt.created = async function () {
|
|
18074
18106
|
var p1 = func3.call(this);
|
|
18075
18107
|
if (!p1 || !p1 instanceof Promise) {
|
|
@@ -18093,7 +18125,7 @@ function build(options, exports) {
|
|
|
18093
18125
|
}
|
|
18094
18126
|
|
|
18095
18127
|
if (addin.mounted) {
|
|
18096
|
-
|
|
18128
|
+
let func4 = opt.mounted;
|
|
18097
18129
|
opt.mounted = async function () {
|
|
18098
18130
|
var p1 = func4.call(this);
|
|
18099
18131
|
if (!p1 || !p1 instanceof Promise) {
|
|
@@ -18117,7 +18149,7 @@ function build(options, exports) {
|
|
|
18117
18149
|
}
|
|
18118
18150
|
|
|
18119
18151
|
if (addin.unmounted) {
|
|
18120
|
-
|
|
18152
|
+
let func5 = opt.unmounted;
|
|
18121
18153
|
opt.unmounted = async function () {
|
|
18122
18154
|
var p1 = func5.call(this);
|
|
18123
18155
|
if (!p1 || !p1 instanceof Promise) {
|
|
@@ -18141,7 +18173,7 @@ function build(options, exports) {
|
|
|
18141
18173
|
}
|
|
18142
18174
|
|
|
18143
18175
|
if (addin.destroyed) {
|
|
18144
|
-
|
|
18176
|
+
let func6 = opt.destroyed;
|
|
18145
18177
|
opt.destroyed = async function () {
|
|
18146
18178
|
var p1 = func6.call(this);
|
|
18147
18179
|
if (!p1 || !p1 instanceof Promise) {
|
|
@@ -18181,7 +18213,7 @@ function build(options, exports) {
|
|
|
18181
18213
|
}
|
|
18182
18214
|
}
|
|
18183
18215
|
|
|
18184
|
-
|
|
18216
|
+
let func7 = opt.created;
|
|
18185
18217
|
opt.created = async function () {
|
|
18186
18218
|
var p1 = func7.call(this);
|
|
18187
18219
|
if (!p1 || !p1 instanceof Promise) {
|
|
@@ -18196,7 +18228,7 @@ function build(options, exports) {
|
|
|
18196
18228
|
});
|
|
18197
18229
|
};
|
|
18198
18230
|
|
|
18199
|
-
|
|
18231
|
+
let func8 = opt.unmounted;
|
|
18200
18232
|
opt.unmounted = async function () {
|
|
18201
18233
|
var p1 = func8.call(this);
|
|
18202
18234
|
if (!p1 || !p1 instanceof Promise) {
|