@vtj/pro 0.17.8 → 0.18.1

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.
Files changed (78) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  6. package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
  7. package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
  8. package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
  9. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +3 -3
  10. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  11. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +3 -3
  12. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +5 -5
  13. package/dist/@vtj/materials/deps/uni-app/index.umd.js +1 -1
  14. package/dist/@vtj/materials/deps/uni-h5/index.umd.js +8 -8
  15. package/dist/@vtj/materials/deps/uni-h5/style.css +1 -1
  16. package/dist/@vtj/materials/deps/uni-h5-vue/index.umd.js +3 -3
  17. package/dist/@vtj/materials/deps/uni-h5-vue/uni-h5-vue.js +237 -35
  18. package/dist/@vtj/materials/deps/uni-h5-vue/uni-h5-vue.prod.js +3 -3
  19. package/dist/@vtj/materials/deps/uni-ui/index.umd.js +1 -1
  20. package/dist/@vtj/materials/deps/uni-ui/style.css +1 -1
  21. package/dist/@vtj/materials/deps/vue/vue.global.js +35 -12
  22. package/dist/@vtj/materials/deps/vue/vue.global.prod.js +5 -5
  23. package/dist/assets/{@element-plus-icons-vue-CXRJnQYo.js → @element-plus-icons-vue-DA02k83P.js} +1 -1
  24. package/dist/assets/{@vueuse-w7qmHU3H.js → @vueuse-SvwMwBjL.js} +1 -1
  25. package/dist/assets/Editor-Cp4OJwRP-BArfNxqi.js +437 -0
  26. package/dist/assets/{Editor-CPtl6CLF-NMmAvvAr.css → Editor-Cp4OJwRP-C4uXNc6V.css} +1 -1
  27. package/dist/assets/auth-DOpi_Pep.js +1 -0
  28. package/dist/assets/axios-Cc-15rbk.js +9 -0
  29. package/dist/assets/{element-plus-Bgelixwu.js → element-plus-_gYoEp33.js} +1 -1
  30. package/dist/assets/index-C14303GT.js +1 -0
  31. package/dist/assets/index-_h8C4pLC.js +2 -0
  32. package/dist/assets/{mockjs-C_1w07tn.js → mockjs-Cu-wxkKz.js} +5 -5
  33. package/dist/assets/page-Biw6vpZo.js +2 -0
  34. package/dist/assets/preview-DO5IPc9_.js +2 -0
  35. package/dist/assets/{uni-page-BrivKbVY.js → uni-page--udw_bNq.js} +1 -1
  36. package/dist/assets/utils-BDATXCnf.js +1 -0
  37. package/dist/assets/vue-fMktb-5o.js +35 -0
  38. package/dist/assets/{vue-router-B2eGcVGj.js → vue-router-CDqTjrgM.js} +1 -1
  39. package/dist/assets/{vxe-C7ZzhQxY.js → vxe-BulginLS.js} +1 -1
  40. package/dist/index.html +8 -8
  41. package/dist/uni/assets/@dcloudio-uni-h5-vue-DC2wuYrq.js +5 -0
  42. package/dist/uni/assets/@dcloudio-uni-shared-BN07FyFa.js +1 -0
  43. package/dist/uni/assets/axios-Cc-15rbk.js +9 -0
  44. package/dist/uni/assets/index-kFtL2kyW.js +89 -0
  45. package/dist/uni/assets/{vue-router-BuyipnGj.js → vue-router-Br7a6pVO.js} +1 -1
  46. package/dist/uni/index.html +5 -4
  47. package/package.json +16 -14
  48. package/src/.vtj/files/2kychh4s.json +25 -0
  49. package/src/.vtj/files/bkz0vptc.json +42 -0
  50. package/src/.vtj/histories/bkz0vptc/1kz1e16d.json +35 -0
  51. package/src/.vtj/histories/bkz0vptc/1kz1mo20.json +35 -0
  52. package/src/.vtj/histories/bkz0vptc/1kz1t7kp.json +35 -0
  53. package/src/.vtj/histories/bkz0vptc/2kz1evp1.json +35 -0
  54. package/src/.vtj/histories/bkz0vptc/2kz1tzul.json +35 -0
  55. package/src/.vtj/histories/bkz0vptc/2l41me17.json +47 -0
  56. package/src/.vtj/histories/bkz0vptc/3l41mi91.json +47 -0
  57. package/src/.vtj/histories/bkz0vptc/4l41ml44.json +47 -0
  58. package/src/.vtj/histories/bkz0vptc/ckz0wst3.json +35 -0
  59. package/src/.vtj/histories/bkz0vptc.json +50 -0
  60. package/src/.vtj/materials/@vtj/pro.json +2 -2
  61. package/src/.vtj/projects/@vtj/pro.json +53 -15
  62. package/src/App.vue +1 -7
  63. package/src/manifest.json +1 -1
  64. package/src/pages/2kychh4s.vue +12 -0
  65. package/src/pages/bkz0vptc.vue +20 -0
  66. package/src/pages.json +10 -1
  67. package/dist/assets/Editor-CPtl6CLF-CZK-iRjd.js +0 -546
  68. package/dist/assets/auth-DPcwTwML.js +0 -1
  69. package/dist/assets/index-B4KQg9YW.js +0 -1
  70. package/dist/assets/index-DoeCvv0h.js +0 -2
  71. package/dist/assets/page-DC0UpU2I.js +0 -2
  72. package/dist/assets/preview-BPqKBjpN.js +0 -2
  73. package/dist/assets/utils-BjOPfXIU.js +0 -1
  74. package/dist/assets/vue-BaPf1eHv.js +0 -35
  75. package/dist/uni/assets/@dcloudio-uni-h5-vue-CKVTfNUF.js +0 -5
  76. package/dist/uni/assets/@dcloudio-uni-shared-bWpOwtAM.js +0 -1
  77. package/dist/uni/assets/index-n3NvAQNA.js +0 -91
  78. package/src/.vtj/files/1kv36oys.json +0 -114
@@ -282,6 +282,10 @@
282
282
  const ON_UNLOAD = "onUnload";
283
283
  const ON_INIT = "onInit";
284
284
  const ON_SAVE_EXIT_STATE = "onSaveExitState";
285
+ const ON_UPLOAD_DOUYIN_VIDEO = "onUploadDouyinVideo";
286
+ const ON_LIVE_MOUNT = "onLiveMount";
287
+ const ON_TITLE_CLICK = "onTitleClick";
288
+ const ON_RESIZE = "onResize";
285
289
  const ON_BACK_PRESS = "onBackPress";
286
290
  const ON_PAGE_SCROLL = "onPageScroll";
287
291
  const ON_TAB_ITEM_TAP = "onTabItemTap";
@@ -289,6 +293,7 @@
289
293
  const ON_PULL_DOWN_REFRESH = "onPullDownRefresh";
290
294
  const ON_SHARE_TIMELINE = "onShareTimeline";
291
295
  const ON_SHARE_CHAT = "onShareChat";
296
+ const ON_COPY_URL = "onCopyUrl";
292
297
  const ON_ADD_TO_FAVORITES = "onAddToFavorites";
293
298
  const ON_SHARE_APP_MESSAGE = "onShareAppMessage";
294
299
  const ON_NAVIGATION_BAR_BUTTON_TAP = "onNavigationBarButtonTap";
@@ -296,39 +301,213 @@
296
301
  const ON_NAVIGATION_BAR_SEARCH_INPUT_CHANGED = "onNavigationBarSearchInputChanged";
297
302
  const ON_NAVIGATION_BAR_SEARCH_INPUT_CONFIRMED = "onNavigationBarSearchInputConfirmed";
298
303
  const ON_NAVIGATION_BAR_SEARCH_INPUT_FOCUS_CHANGED = "onNavigationBarSearchInputFocusChanged";
299
- function getGlobalOnce() {
300
- if (typeof globalThis !== "undefined") {
301
- return globalThis;
304
+ function initUTSJSONObjectProperties(obj) {
305
+ const propertyList = [
306
+ "_resolveKeyPath",
307
+ "_getValue",
308
+ "toJSON",
309
+ "get",
310
+ "set",
311
+ "getAny",
312
+ "getString",
313
+ "getNumber",
314
+ "getBoolean",
315
+ "getJSON",
316
+ "getArray",
317
+ "toMap",
318
+ "forEach"
319
+ ];
320
+ const propertyDescriptorMap = {};
321
+ for (let i = 0; i < propertyList.length; i++) {
322
+ const property = propertyList[i];
323
+ propertyDescriptorMap[property] = {
324
+ enumerable: false,
325
+ value: obj[property]
326
+ };
302
327
  }
303
- if (typeof self !== "undefined") {
304
- return self;
328
+ Object.defineProperties(obj, propertyDescriptorMap);
329
+ }
330
+ function getRealDefaultValue(defaultValue) {
331
+ return defaultValue === void 0 ? null : defaultValue;
332
+ }
333
+ class UTSJSONObject {
334
+ static keys(obj) {
335
+ return Object.keys(obj);
305
336
  }
306
- if (typeof window !== "undefined") {
307
- return window;
337
+ static assign(target, ...sources) {
338
+ for (let i = 0; i < sources.length; i++) {
339
+ const source = sources[i];
340
+ for (let key in source) {
341
+ target[key] = source[key];
342
+ }
343
+ }
344
+ return target;
308
345
  }
309
- function g2() {
310
- return this;
346
+ constructor(content = {}) {
347
+ if (content instanceof Map) {
348
+ content.forEach((value, key) => {
349
+ this[key] = value;
350
+ });
351
+ } else {
352
+ for (const key in content) {
353
+ if (Object.prototype.hasOwnProperty.call(content, key)) {
354
+ this[key] = content[key];
355
+ }
356
+ }
357
+ }
358
+ initUTSJSONObjectProperties(this);
311
359
  }
312
- if (typeof g2() !== "undefined") {
313
- return g2();
360
+ _resolveKeyPath(keyPath) {
361
+ let token = "";
362
+ const keyPathArr = [];
363
+ let inOpenParentheses = false;
364
+ for (let i = 0; i < keyPath.length; i++) {
365
+ const word = keyPath[i];
366
+ switch (word) {
367
+ case ".":
368
+ if (token.length > 0) {
369
+ keyPathArr.push(token);
370
+ token = "";
371
+ }
372
+ break;
373
+ case "[": {
374
+ inOpenParentheses = true;
375
+ if (token.length > 0) {
376
+ keyPathArr.push(token);
377
+ token = "";
378
+ }
379
+ break;
380
+ }
381
+ case "]":
382
+ if (inOpenParentheses) {
383
+ if (token.length > 0) {
384
+ const tokenFirstChar = token[0];
385
+ const tokenLastChar = token[token.length - 1];
386
+ if (tokenFirstChar === '"' && tokenLastChar === '"' || tokenFirstChar === "'" && tokenLastChar === "'" || tokenFirstChar === "`" && tokenLastChar === "`") {
387
+ if (token.length > 2) {
388
+ token = token.slice(1, -1);
389
+ } else {
390
+ return [];
391
+ }
392
+ } else if (!/^\d+$/.test(token)) {
393
+ return [];
394
+ }
395
+ keyPathArr.push(token);
396
+ token = "";
397
+ } else {
398
+ return [];
399
+ }
400
+ inOpenParentheses = false;
401
+ } else {
402
+ return [];
403
+ }
404
+ break;
405
+ default:
406
+ token += word;
407
+ break;
408
+ }
409
+ if (i === keyPath.length - 1) {
410
+ if (token.length > 0) {
411
+ keyPathArr.push(token);
412
+ token = "";
413
+ }
414
+ }
415
+ }
416
+ return keyPathArr;
314
417
  }
315
- return (function() {
316
- return new Function("return this")();
317
- })();
318
- }
319
- let g = void 0;
320
- function getGlobal() {
321
- if (g) {
322
- return g;
418
+ _getValue(keyPath, defaultValue) {
419
+ const keyPathArr = this._resolveKeyPath(keyPath);
420
+ const realDefaultValue = getRealDefaultValue(defaultValue);
421
+ if (keyPathArr.length === 0) {
422
+ return realDefaultValue;
423
+ }
424
+ let value = this;
425
+ for (let i = 0; i < keyPathArr.length; i++) {
426
+ const key = keyPathArr[i];
427
+ if (value instanceof Object) {
428
+ if (key in value) {
429
+ value = value[key];
430
+ } else {
431
+ return realDefaultValue;
432
+ }
433
+ } else {
434
+ return realDefaultValue;
435
+ }
436
+ }
437
+ return value;
438
+ }
439
+ get(key) {
440
+ return this._getValue(key);
441
+ }
442
+ set(key, value) {
443
+ this[key] = value;
444
+ }
445
+ getAny(key, defaultValue) {
446
+ const realDefaultValue = getRealDefaultValue(defaultValue);
447
+ return this._getValue(key, realDefaultValue);
448
+ }
449
+ getString(key, defaultValue) {
450
+ const realDefaultValue = getRealDefaultValue(defaultValue);
451
+ const value = this._getValue(key, realDefaultValue);
452
+ if (typeof value === "string") {
453
+ return value;
454
+ } else {
455
+ return realDefaultValue;
456
+ }
457
+ }
458
+ getNumber(key, defaultValue) {
459
+ const realDefaultValue = getRealDefaultValue(defaultValue);
460
+ const value = this._getValue(key, realDefaultValue);
461
+ if (typeof value === "number") {
462
+ return value;
463
+ } else {
464
+ return realDefaultValue;
465
+ }
466
+ }
467
+ getBoolean(key, defaultValue) {
468
+ const realDefaultValue = getRealDefaultValue(defaultValue);
469
+ const boolean = this._getValue(key, realDefaultValue);
470
+ if (typeof boolean === "boolean") {
471
+ return boolean;
472
+ } else {
473
+ return realDefaultValue;
474
+ }
475
+ }
476
+ getJSON(key, defaultValue) {
477
+ const realDefaultValue = getRealDefaultValue(defaultValue);
478
+ let value = this._getValue(key, realDefaultValue);
479
+ if (value instanceof Object) {
480
+ return value;
481
+ } else {
482
+ return realDefaultValue;
483
+ }
484
+ }
485
+ getArray(key, defaultValue) {
486
+ const realDefaultValue = getRealDefaultValue(defaultValue);
487
+ let value = this._getValue(key, realDefaultValue);
488
+ if (value instanceof Array) {
489
+ return value;
490
+ } else {
491
+ return realDefaultValue;
492
+ }
493
+ }
494
+ toMap() {
495
+ let map2 = /* @__PURE__ */ new Map();
496
+ for (let key in this) {
497
+ map2.set(key, this[key]);
498
+ }
499
+ return map2;
500
+ }
501
+ forEach(callback) {
502
+ for (let key in this) {
503
+ callback(this[key], key);
504
+ }
323
505
  }
324
- g = getGlobalOnce();
325
- return g;
326
506
  }
327
507
  function normalizeStyle(value) {
328
- const g2 = getGlobal();
329
- if (g2 && g2.UTSJSONObject && value instanceof g2.UTSJSONObject) {
508
+ if (value instanceof UTSJSONObject) {
330
509
  const styleObject = {};
331
- g2.UTSJSONObject.keys(value).forEach((key) => {
510
+ UTSJSONObject.keys(value).forEach((key) => {
332
511
  styleObject[key] = value[key];
333
512
  });
334
513
  return normalizeStyle$1(styleObject);
@@ -358,9 +537,8 @@
358
537
  }
359
538
  function normalizeClass(value) {
360
539
  let res = "";
361
- const g2 = getGlobal();
362
- if (g2 && g2.UTSJSONObject && value instanceof g2.UTSJSONObject) {
363
- g2.UTSJSONObject.keys(value).forEach((key) => {
540
+ if (value instanceof UTSJSONObject) {
541
+ UTSJSONObject.keys(value).forEach((key) => {
364
542
  if (value[key]) {
365
543
  res += key + " ";
366
544
  }
@@ -421,6 +599,7 @@
421
599
  ON_SHOW,
422
600
  ON_HIDE,
423
601
  ON_UNLOAD,
602
+ ON_RESIZE,
424
603
  ON_BACK_PRESS,
425
604
  ON_PAGE_SCROLL,
426
605
  ON_TAB_ITEM_TAP,
@@ -429,6 +608,10 @@
429
608
  ON_SHARE_TIMELINE,
430
609
  ON_SHARE_APP_MESSAGE,
431
610
  ON_SHARE_CHAT,
611
+ ON_COPY_URL,
612
+ ON_UPLOAD_DOUYIN_VIDEO,
613
+ ON_LIVE_MOUNT,
614
+ ON_TITLE_CLICK,
432
615
  ON_ADD_TO_FAVORITES,
433
616
  ON_SAVE_EXIT_STATE,
434
617
  ON_NAVIGATION_BAR_BUTTON_TAP,
@@ -5798,7 +5981,7 @@ If you want to remount the same app, move your app creation logic into a factory
5798
5981
  if (options) {
5799
5982
  if (hasOwn(attrs, key)) {
5800
5983
  if (value !== attrs[key]) {
5801
- attrs[key] = value;
5984
+ attrs[key] = normalizeInheritAttrsValue(instance, key, value);
5802
5985
  hasAttrsChanged = true;
5803
5986
  }
5804
5987
  } else {
@@ -5814,7 +5997,7 @@ If you want to remount the same app, move your app creation logic into a factory
5814
5997
  }
5815
5998
  } else {
5816
5999
  if (value !== attrs[key]) {
5817
- attrs[key] = value;
6000
+ attrs[key] = normalizeInheritAttrsValue(instance, key, value);
5818
6001
  hasAttrsChanged = true;
5819
6002
  }
5820
6003
  }
@@ -5877,13 +6060,15 @@ If you want to remount the same app, move your app creation logic into a factory
5877
6060
  let camelKey;
5878
6061
  if (options && hasOwn(options, camelKey = camelize(key))) {
5879
6062
  if (!needCastKeys || !needCastKeys.includes(camelKey)) {
5880
- props[camelKey] = value;
6063
+ {
6064
+ props[camelKey] = value;
6065
+ }
5881
6066
  } else {
5882
6067
  (rawCastValues || (rawCastValues = {}))[camelKey] = value;
5883
6068
  }
5884
6069
  } else if (!isEmitListener(instance.emitsOptions, key)) {
5885
6070
  if (!(key in attrs) || value !== attrs[key]) {
5886
- attrs[key] = value;
6071
+ attrs[key] = normalizeInheritAttrsValue(instance, key, value);
5887
6072
  hasAttrsChanged = true;
5888
6073
  }
5889
6074
  }
@@ -5906,7 +6091,21 @@ If you want to remount the same app, move your app creation logic into a factory
5906
6091
  }
5907
6092
  return hasAttrsChanged;
5908
6093
  }
6094
+ function normalizeInheritAttrsValue(instance, key, value) {
6095
+ return value;
6096
+ }
5909
6097
  function resolvePropValue(options, props, key, value, instance, isAbsent) {
6098
+ const result = _resolvePropValue(
6099
+ options,
6100
+ props,
6101
+ key,
6102
+ value,
6103
+ instance,
6104
+ isAbsent
6105
+ );
6106
+ return result;
6107
+ }
6108
+ function _resolvePropValue(options, props, key, value, instance, isAbsent) {
5910
6109
  const opt = options[key];
5911
6110
  if (opt != null) {
5912
6111
  const hasDefault = hasOwn(opt, "default");
@@ -9243,11 +9442,11 @@ Component that was made reactive: `,
9243
9442
  let internalSetCurrentInstance;
9244
9443
  let setInSSRSetupState;
9245
9444
  {
9246
- const g2 = getGlobalThis();
9445
+ const g = getGlobalThis();
9247
9446
  const registerGlobalSetter = (key, setter) => {
9248
9447
  let setters;
9249
- if (!(setters = g2[key]))
9250
- setters = g2[key] = [];
9448
+ if (!(setters = g[key]))
9449
+ setters = g[key] = [];
9251
9450
  setters.push(setter);
9252
9451
  return (v) => {
9253
9452
  if (setters.length > 1)
@@ -10227,7 +10426,9 @@ Component that was made reactive: `,
10227
10426
  } else if (isSVG) {
10228
10427
  el.setAttribute("class", value);
10229
10428
  } else {
10230
- el.className = value;
10429
+ {
10430
+ el.className = value;
10431
+ }
10231
10432
  }
10232
10433
  }
10233
10434
  const vShowOriginalDisplay = Symbol("_vod");
@@ -11609,6 +11810,7 @@ Component that was made reactive: `,
11609
11810
  exports2.effectScope = effectScope;
11610
11811
  exports2.getCurrentInstance = getCurrentInstance;
11611
11812
  exports2.getCurrentScope = getCurrentScope;
11813
+ exports2.getExposeProxy = getExposeProxy;
11612
11814
  exports2.getTransitionRawChildren = getTransitionRawChildren;
11613
11815
  exports2.guardReactiveProps = guardReactiveProps;
11614
11816
  exports2.h = h;