@next-bricks/presentational 1.12.1 → 1.12.2

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 (82) hide show
  1. package/dist/bricks.json +13 -13
  2. package/dist/chunks/{114.9e97aa35.js → 114.cf5cec1c.js} +2 -2
  3. package/dist/chunks/{114.9e97aa35.js.map → 114.cf5cec1c.js.map} +1 -1
  4. package/dist/chunks/{1940.582a61f5.js → 1940.a0c08e86.js} +2 -2
  5. package/dist/chunks/{9559.cb94db3b.js.map → 1940.a0c08e86.js.map} +1 -1
  6. package/dist/chunks/{2277.5e3d3ecf.js → 2277.3ce87091.js} +2 -2
  7. package/dist/chunks/{2277.5e3d3ecf.js.map → 2277.3ce87091.js.map} +1 -1
  8. package/dist/chunks/{3171.39e19bf4.js → 3171.c62aa0e4.js} +2 -2
  9. package/dist/chunks/{3171.39e19bf4.js.map → 3171.c62aa0e4.js.map} +1 -1
  10. package/dist/chunks/3933.4b99633a.js +2 -0
  11. package/dist/chunks/{3933.e98e05c3.js.map → 3933.4b99633a.js.map} +1 -1
  12. package/dist/chunks/4185.30183340.js +3 -0
  13. package/dist/chunks/4185.30183340.js.map +1 -0
  14. package/dist/chunks/4196.140b906b.js +2 -0
  15. package/dist/chunks/{4196.2c0cc687.js.map → 4196.140b906b.js.map} +1 -1
  16. package/dist/chunks/{4658.8593fe81.js → 4658.8b92e0e1.js} +2 -2
  17. package/dist/chunks/{4658.8593fe81.js.map → 4658.8b92e0e1.js.map} +1 -1
  18. package/dist/chunks/{4837.46f0f733.js → 4837.755b609f.js} +2 -2
  19. package/dist/chunks/{4837.46f0f733.js.map → 4837.755b609f.js.map} +1 -1
  20. package/dist/chunks/{5552.0a21a220.js → 5552.eb5f4b45.js} +2 -2
  21. package/dist/chunks/{5552.0a21a220.js.map → 5552.eb5f4b45.js.map} +1 -1
  22. package/dist/chunks/6314.e632ecfe.js +2 -0
  23. package/dist/chunks/{6314.b653ccee.js.map → 6314.e632ecfe.js.map} +1 -1
  24. package/dist/chunks/{7218.e9f08213.js → 7218.775396ae.js} +2 -2
  25. package/dist/chunks/{7218.e9f08213.js.map → 7218.775396ae.js.map} +1 -1
  26. package/dist/chunks/{7733.804a2584.js → 7733.cb9f1fcf.js} +2 -2
  27. package/dist/chunks/{7733.804a2584.js.map → 7733.cb9f1fcf.js.map} +1 -1
  28. package/dist/chunks/{8097.5d9a1348.js → 8097.1d069b37.js} +2 -2
  29. package/dist/chunks/{8097.5d9a1348.js.map → 8097.1d069b37.js.map} +1 -1
  30. package/dist/chunks/{9559.cb94db3b.js → 9559.f81514da.js} +2 -2
  31. package/dist/chunks/{1940.582a61f5.js.map → 9559.f81514da.js.map} +1 -1
  32. package/dist/chunks/{eo-alert.5566bccf.js → eo-alert.33bff8eb.js} +3 -3
  33. package/dist/chunks/{eo-alert.5566bccf.js.map → eo-alert.33bff8eb.js.map} +1 -1
  34. package/dist/chunks/{eo-card-item.41025a28.js → eo-card-item.55d97e57.js} +3 -3
  35. package/dist/chunks/{eo-card-item.41025a28.js.map → eo-card-item.55d97e57.js.map} +1 -1
  36. package/dist/chunks/{eo-carousel-text.5ff91835.js → eo-carousel-text.f3749137.js} +2 -2
  37. package/dist/chunks/{eo-carousel-text.5ff91835.js.map → eo-carousel-text.f3749137.js.map} +1 -1
  38. package/dist/chunks/eo-code-display.0f6eb112.js +2 -0
  39. package/dist/chunks/{eo-code-display.1c0e704c.js.map → eo-code-display.0f6eb112.js.map} +1 -1
  40. package/dist/chunks/{eo-current-time.a3880a1a.js → eo-current-time.53d8feac.js} +2 -2
  41. package/dist/chunks/{eo-current-time.a3880a1a.js.map → eo-current-time.53d8feac.js.map} +1 -1
  42. package/dist/chunks/{eo-descriptions.db3abdc1.js → eo-descriptions.588186d3.js} +3 -3
  43. package/dist/chunks/{eo-descriptions.db3abdc1.js.map → eo-descriptions.588186d3.js.map} +1 -1
  44. package/dist/chunks/{eo-divider.83e67961.js → eo-divider.4cfaaef1.js} +3 -3
  45. package/dist/chunks/{eo-divider.83e67961.js.map → eo-divider.4cfaaef1.js.map} +1 -1
  46. package/dist/chunks/{eo-humanize-time.7cd4f824.js → eo-humanize-time.faaba5e7.js} +2 -2
  47. package/dist/chunks/{eo-humanize-time.7cd4f824.js.map → eo-humanize-time.faaba5e7.js.map} +1 -1
  48. package/dist/chunks/{eo-info-card-item.0d079211.js → eo-info-card-item.81d58b38.js} +3 -3
  49. package/dist/chunks/{eo-info-card-item.0d079211.js.map → eo-info-card-item.81d58b38.js.map} +1 -1
  50. package/dist/chunks/eo-loading-step.837b7359.js +3 -0
  51. package/dist/chunks/{eo-loading-step.078a2852.js.map → eo-loading-step.837b7359.js.map} +1 -1
  52. package/dist/chunks/eo-pagination.65c6dc26.js +3 -0
  53. package/dist/chunks/{eo-pagination.8688e852.js.map → eo-pagination.65c6dc26.js.map} +1 -1
  54. package/dist/chunks/{eo-statistics-card.74c7e973.js → eo-statistics-card.2af4f9ba.js} +2 -2
  55. package/dist/chunks/{eo-statistics-card.74c7e973.js.map → eo-statistics-card.2af4f9ba.js.map} +1 -1
  56. package/dist/chunks/main.108db715.js +2 -0
  57. package/dist/chunks/main.108db715.js.map +1 -0
  58. package/dist/examples.json +3 -3
  59. package/dist/index.78d338a8.js +2 -0
  60. package/dist/{index.afbf01cd.js.map → index.78d338a8.js.map} +1 -1
  61. package/dist/manifest.json +57 -57
  62. package/dist/types.json +62 -62
  63. package/package.json +3 -3
  64. package/dist/chunks/3933.e98e05c3.js +0 -2
  65. package/dist/chunks/4185.c2453882.js +0 -3
  66. package/dist/chunks/4185.c2453882.js.map +0 -1
  67. package/dist/chunks/4196.2c0cc687.js +0 -2
  68. package/dist/chunks/6314.b653ccee.js +0 -2
  69. package/dist/chunks/eo-code-display.1c0e704c.js +0 -2
  70. package/dist/chunks/eo-loading-step.078a2852.js +0 -3
  71. package/dist/chunks/eo-pagination.8688e852.js +0 -3
  72. package/dist/chunks/main.68264fbb.js +0 -2
  73. package/dist/chunks/main.68264fbb.js.map +0 -1
  74. package/dist/index.afbf01cd.js +0 -2
  75. /package/dist/chunks/{4185.c2453882.js.LICENSE.txt → 4185.30183340.js.LICENSE.txt} +0 -0
  76. /package/dist/chunks/{eo-alert.5566bccf.js.LICENSE.txt → eo-alert.33bff8eb.js.LICENSE.txt} +0 -0
  77. /package/dist/chunks/{eo-card-item.41025a28.js.LICENSE.txt → eo-card-item.55d97e57.js.LICENSE.txt} +0 -0
  78. /package/dist/chunks/{eo-descriptions.db3abdc1.js.LICENSE.txt → eo-descriptions.588186d3.js.LICENSE.txt} +0 -0
  79. /package/dist/chunks/{eo-divider.83e67961.js.LICENSE.txt → eo-divider.4cfaaef1.js.LICENSE.txt} +0 -0
  80. /package/dist/chunks/{eo-info-card-item.0d079211.js.LICENSE.txt → eo-info-card-item.81d58b38.js.LICENSE.txt} +0 -0
  81. /package/dist/chunks/{eo-loading-step.078a2852.js.LICENSE.txt → eo-loading-step.837b7359.js.LICENSE.txt} +0 -0
  82. /package/dist/chunks/{eo-pagination.8688e852.js.LICENSE.txt → eo-pagination.65c6dc26.js.LICENSE.txt} +0 -0
@@ -64,6 +64,63 @@
64
64
  "description": "通用描述列表构件",
65
65
  "category": "text"
66
66
  },
67
+ {
68
+ "name": "eo-code-display",
69
+ "alias": [
70
+ "presentational.code-display"
71
+ ],
72
+ "properties": [
73
+ {
74
+ "name": "value",
75
+ "description": "代码内容",
76
+ "default": "\"\"",
77
+ "type": "string"
78
+ },
79
+ {
80
+ "name": "language",
81
+ "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
82
+ "type": "string"
83
+ },
84
+ {
85
+ "name": "hideLineNumber",
86
+ "description": "是否隐藏行号",
87
+ "type": "boolean"
88
+ },
89
+ {
90
+ "name": "maxLines",
91
+ "description": "最大行数",
92
+ "type": "number"
93
+ },
94
+ {
95
+ "name": "minLines",
96
+ "description": "最小行数",
97
+ "type": "number"
98
+ },
99
+ {
100
+ "name": "showCopyButton",
101
+ "description": "是否显示复制按钮",
102
+ "default": "true",
103
+ "type": "boolean"
104
+ },
105
+ {
106
+ "name": "showExportButton",
107
+ "description": "是否显示导出按钮",
108
+ "type": "boolean"
109
+ },
110
+ {
111
+ "name": "exportFileName",
112
+ "description": "导出的文件名",
113
+ "default": "download.txt",
114
+ "type": "string"
115
+ }
116
+ ],
117
+ "events": [],
118
+ "slots": [],
119
+ "methods": [],
120
+ "parts": [],
121
+ "description": "代码展示",
122
+ "category": "display-component"
123
+ },
67
124
  {
68
125
  "name": "eo-alert",
69
126
  "alias": [
@@ -360,63 +417,6 @@
360
417
  "description": "分割线",
361
418
  "category": "container-display"
362
419
  },
363
- {
364
- "name": "eo-code-display",
365
- "alias": [
366
- "presentational.code-display"
367
- ],
368
- "properties": [
369
- {
370
- "name": "value",
371
- "description": "代码内容",
372
- "default": "\"\"",
373
- "type": "string"
374
- },
375
- {
376
- "name": "language",
377
- "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
378
- "type": "string"
379
- },
380
- {
381
- "name": "hideLineNumber",
382
- "description": "是否隐藏行号",
383
- "type": "boolean"
384
- },
385
- {
386
- "name": "maxLines",
387
- "description": "最大行数",
388
- "type": "number"
389
- },
390
- {
391
- "name": "minLines",
392
- "description": "最小行数",
393
- "type": "number"
394
- },
395
- {
396
- "name": "showCopyButton",
397
- "description": "是否显示复制按钮",
398
- "default": "true",
399
- "type": "boolean"
400
- },
401
- {
402
- "name": "showExportButton",
403
- "description": "是否显示导出按钮",
404
- "type": "boolean"
405
- },
406
- {
407
- "name": "exportFileName",
408
- "description": "导出的文件名",
409
- "default": "download.txt",
410
- "type": "string"
411
- }
412
- ],
413
- "events": [],
414
- "slots": [],
415
- "methods": [],
416
- "parts": [],
417
- "description": "代码展示",
418
- "category": "display-component"
419
- },
420
420
  {
421
421
  "name": "eo-info-card-item",
422
422
  "properties": [
package/dist/types.json CHANGED
@@ -1557,6 +1557,68 @@
1557
1557
  }
1558
1558
  ]
1559
1559
  },
1560
+ "eo-code-display": {
1561
+ "properties": [
1562
+ {
1563
+ "name": "value",
1564
+ "annotation": {
1565
+ "type": "keyword",
1566
+ "value": "string"
1567
+ }
1568
+ },
1569
+ {
1570
+ "name": "language",
1571
+ "annotation": {
1572
+ "type": "keyword",
1573
+ "value": "string"
1574
+ }
1575
+ },
1576
+ {
1577
+ "name": "hideLineNumber",
1578
+ "annotation": {
1579
+ "type": "keyword",
1580
+ "value": "boolean"
1581
+ }
1582
+ },
1583
+ {
1584
+ "name": "maxLines",
1585
+ "annotation": {
1586
+ "type": "keyword",
1587
+ "value": "number"
1588
+ }
1589
+ },
1590
+ {
1591
+ "name": "minLines",
1592
+ "annotation": {
1593
+ "type": "keyword",
1594
+ "value": "number"
1595
+ }
1596
+ },
1597
+ {
1598
+ "name": "showCopyButton",
1599
+ "annotation": {
1600
+ "type": "keyword",
1601
+ "value": "boolean"
1602
+ }
1603
+ },
1604
+ {
1605
+ "name": "showExportButton",
1606
+ "annotation": {
1607
+ "type": "keyword",
1608
+ "value": "boolean"
1609
+ }
1610
+ },
1611
+ {
1612
+ "name": "exportFileName",
1613
+ "annotation": {
1614
+ "type": "keyword",
1615
+ "value": "string"
1616
+ }
1617
+ }
1618
+ ],
1619
+ "events": [],
1620
+ "methods": []
1621
+ },
1560
1622
  "eo-alert": {
1561
1623
  "properties": [
1562
1624
  {
@@ -1860,68 +1922,6 @@
1860
1922
  }
1861
1923
  ]
1862
1924
  },
1863
- "eo-code-display": {
1864
- "properties": [
1865
- {
1866
- "name": "value",
1867
- "annotation": {
1868
- "type": "keyword",
1869
- "value": "string"
1870
- }
1871
- },
1872
- {
1873
- "name": "language",
1874
- "annotation": {
1875
- "type": "keyword",
1876
- "value": "string"
1877
- }
1878
- },
1879
- {
1880
- "name": "hideLineNumber",
1881
- "annotation": {
1882
- "type": "keyword",
1883
- "value": "boolean"
1884
- }
1885
- },
1886
- {
1887
- "name": "maxLines",
1888
- "annotation": {
1889
- "type": "keyword",
1890
- "value": "number"
1891
- }
1892
- },
1893
- {
1894
- "name": "minLines",
1895
- "annotation": {
1896
- "type": "keyword",
1897
- "value": "number"
1898
- }
1899
- },
1900
- {
1901
- "name": "showCopyButton",
1902
- "annotation": {
1903
- "type": "keyword",
1904
- "value": "boolean"
1905
- }
1906
- },
1907
- {
1908
- "name": "showExportButton",
1909
- "annotation": {
1910
- "type": "keyword",
1911
- "value": "boolean"
1912
- }
1913
- },
1914
- {
1915
- "name": "exportFileName",
1916
- "annotation": {
1917
- "type": "keyword",
1918
- "value": "string"
1919
- }
1920
- }
1921
- ],
1922
- "events": [],
1923
- "methods": []
1924
- },
1925
1925
  "eo-humanize-time": {
1926
1926
  "properties": [
1927
1927
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/presentational",
3
- "version": "1.12.1",
3
+ "version": "1.12.2",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/presentational",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,7 +35,7 @@
35
35
  "postpublish": "mv package.json.bak package.json"
36
36
  },
37
37
  "devDependencies": {
38
- "@next-core/build-next-bricks": "^1.23.7",
38
+ "@next-core/build-next-bricks": "^1.23.8",
39
39
  "@next-core/test-next": "^1.1.7",
40
40
  "babel-plugin-prismjs": "^2.1.0"
41
41
  },
@@ -44,5 +44,5 @@
44
44
  "@next-bricks/containers": "*",
45
45
  "@next-bricks/icons": "*"
46
46
  },
47
- "gitHead": "ebb8ee2660f7d9417c2a96d40a216a576d772842"
47
+ "gitHead": "61f7df5abe941b15ae1fed6a231764fedb105db7"
48
48
  }
@@ -1,2 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_presentational=globalThis.webpackChunk_next_bricks_presentational||[]).push([[3933,6314],{13933:(e,t,o)=>{function n(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(r,s){if("string"==typeof t?r.name===t:t.includes(r.name)){const t=[];for(let i=1;i<=o;i++){const o=s[s.length-i];if("MemberExpression"===(null==o?void 0:o.node.type)&&"object"===o.key){const s=o.node;s.computed||"Identifier"!==s.property.type?s.computed&&"Literal"===s.property.type&&"string"==typeof s.property.value?t.push(n?`${r.name}.${s.property.value}`:s.property.value):e.hasNonStaticUsage=!0:t.push(n?`${r.name}.${s.property.name}`:s.property.name)}else e.hasNonStaticUsage=!0}t.length===o&&e.usedProperties.add(t.join("."))}}}function r(e,t){return function(o,n,r){if(n.name===e){const e=r[r.length-1],n=r[r.length-2];if("CallExpression"===(null==n?void 0:n.node.type)&&"callee"===(null==n?void 0:n.key)&&"MemberExpression"===(null==e?void 0:e.node.type)&&"object"===e.key&&(e.node.computed?"Literal"===e.node.property.type&&e.node.property.value===t:"Identifier"===e.node.property.type&&e.node.property.name===t)){const e=n.node.arguments;if(e.length>0){const t=e[0];"Literal"===t.type&&"string"==typeof t.value?o.usedArgs.add(t.value):o.hasNonStaticUsage=!0}}}}}o.r(t),o.d(t,{beforeVisitGlobalMember:()=>n,collectAppGetMenuUsage:()=>s,collectInstalledAppsHasUsage:()=>i,collectMemberUsage:()=>p,collectMemberUsageInFunction:()=>S,createProviderClass:()=>c.createProviderClass,scanPermissionActionsInAny:()=>P,scanPermissionActionsInStoryboard:()=>v,strictCollectMemberUsage:()=>u,track:()=>f,trackAll:()=>y,traverseStoryboardExpressions:()=>l,traverseStoryboardFunction:()=>g,traverseStoryboardFunctions:()=>h,unwrapProvider:()=>c.unwrapProvider});const s=r("APP","getMenu"),i=r("INSTALLED_APPS","has");var a=o(28256),c=o(532);function l(e,t,o){const n=new WeakSet,{matchExpressionString:r,visitNotMatchedExpressionString:s,visitNonExpressionString:i,visitObject:l}="string"==typeof o?{matchExpressionString:e=>e.includes(o)}:o;!function e(o){if("string"==typeof o)if((0,a.isEvaluable)(o))if(r(o))try{(0,a.preevaluate)(o,{cache:!0,withParent:!0,hooks:{beforeVisitGlobal(e,n){t(e,n,o)}}})}catch(e){console.error("Parse storyboard expression failed:",e)}else null==s||s(o);else null==i||i(o);else if((0,c.isObject)(o)){if(n.has(o))return;n.add(o),null==l||l(o);for(const t of Array.isArray(o)?o:Object.values(o))e(t)}}(e)}function u(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const{hasNonStaticUsage:n,nonStaticUsage:r,usedProperties:s}=p(e,t,o);if(n)throw new Error(`Non-static usage of ${t} is prohibited, check your expression: "${r}"`);return s}function p(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r={usedProperties:new Set,hasNonStaticUsage:!1},s=n(r,t,o);return l(e,((e,t,o)=>{s(e,t),r.hasNonStaticUsage&&(r.nonStaticUsage=o)}),t),r}const d=["CTX","STATE","FORM_STATE"];function f(e,t,o){if(e.includes(t)){const r={usedProperties:new Set,hasNonStaticUsage:!1},{expression:s}=(0,a.preevaluate)(e,{cache:!0,withParent:!0,hooks:{beforeVisitGlobal:n(r,o)}});let i;if("SequenceExpression"===s.type&&(i=s.expressions[0])&&"Literal"===i.type&&i.value===t){if(r.usedProperties.size>0)return r.usedProperties;console.warn(`You are using "${t}" but no \`${o}\` usage found in your expression: ${JSON.stringify(e)}`)}}return!1}function y(e){if(d.some((t=>e.includes(t)))){const t={usedProperties:new Set,hasNonStaticUsage:!1};if((0,a.preevaluate)(e,{cache:!0,withParent:!0,hooks:{beforeVisitGlobal:n(t,d,1,!0)}}),t.usedProperties.size>0){const e=[...t.usedProperties],o={context:!1,state:!1,formState:!1},n={CTX:"context",STATE:"state",FORM_STATE:"formState"};return e.forEach((e=>{const[t,r]=e.split(".");o[n[t]]||(o[n[t]]=[]),o[n[t]].push(r)})),o}console.warn(`You are using track all but no "CTX" or "STATE" or "FORM_STATE" usage found in your expression: ${JSON.stringify(e)}`)}return!1}function h(e,t,o){if(Array.isArray(e))for(const n of e)null!=o&&o.matchSource&&!o.matchSource(n.source)||g(n,t)}function g(e,t,o){try{(0,a.precookFunction)(e.source,{typescript:e.typescript,withParent:!0,hooks:{beforeVisitGlobal:t},cacheKey:e})}catch(t){o||console.error(`Parse storyboard function "${e.name}" failed:`,t)}}function S(e,t,o){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const s={usedProperties:new Set,hasNonStaticUsage:!1};if(e.source.includes(t)&&g(e,n(s,t,r),o),s.hasNonStaticUsage&&!o)throw new Error(`Non-static usage of ${t} is prohibited, check your function: "${e.name}"`);return s.usedProperties.delete(e.name),s.usedProperties}const m="PERMISSIONS",b="check";function v(e){var t;const o=new Set,n=k(o),{customTemplates:r,functions:s}=null!==(t=e.meta)&&void 0!==t?t:{};return l([e.routes,r],n,m),h(s,n,{matchSource:e=>e.includes(m)}),Array.from(o)}function P(e){const t=new Set;return l(e,k(t),m),Array.from(t)}function k(e){return function(t,o){if(t.name===m){const t=o[o.length-1],n=o[o.length-2];if("CallExpression"===(null==n?void 0:n.node.type)&&"callee"===(null==n?void 0:n.key)&&"MemberExpression"===(null==t?void 0:t.node.type)&&"object"===t.key&&(t.node.computed?"Literal"===t.node.property.type&&t.node.property.value===b:"Identifier"===t.node.property.type&&t.node.property.name===b))for(const t of n.node.arguments)"Literal"===t.type&&"string"==typeof t.value&&e.add(t.value)}}}}}]);
2
- //# sourceMappingURL=3933.e98e05c3.js.map