@opentiny/vue-renderless 3.20.2 → 3.21.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.
Files changed (94) hide show
  1. package/anchor/index.js +1 -1
  2. package/badge/vue.js +1 -1
  3. package/base-select/index.js +3 -0
  4. package/bulletin-board/index.js +1 -1
  5. package/button/index.js +1 -1
  6. package/cascader/index.js +10 -8
  7. package/cascader-panel/vue.js +1 -1
  8. package/cascader-select/column-index.js +3 -0
  9. package/chart-core/deps/utils.js +1 -1
  10. package/chart-core/index.js +1 -1
  11. package/common/browser.js +2 -0
  12. package/common/deps/eSpaceCtrl.js +3 -2
  13. package/common/deps/fastdom/singleton.js +9 -1
  14. package/common/deps/fullscreen/screenfull.js +54 -25
  15. package/common/deps/popper.js +18 -18
  16. package/common/deps/touch-emulator.js +15 -10
  17. package/common/deps/upload-ajax.js +1 -1
  18. package/common/index.js +2 -2
  19. package/common/runtime.js +1 -1
  20. package/common/string.js +5 -2
  21. package/common/validate/util.js +1 -1
  22. package/dialog-box/index.js +6 -3
  23. package/divider/index.js +47 -0
  24. package/divider/vue.js +24 -3
  25. package/dropdown/index.js +7 -6
  26. package/dropdown/vue.js +7 -3
  27. package/espace/index.js +1 -1
  28. package/fall-menu/index.js +1 -1
  29. package/file-upload/index.js +71 -67
  30. package/file-upload/vue.js +6 -6
  31. package/floatbar/index.js +1 -1
  32. package/fluent-editor/index.js +25 -9
  33. package/form/vue.js +1 -1
  34. package/grid/plugins/export.js +1 -1
  35. package/guide/index.js +1 -1
  36. package/image/index.js +1 -1
  37. package/image-viewer/index.js +3 -2
  38. package/input/vue.js +3 -0
  39. package/link/vue.js +1 -1
  40. package/locales/index.js +1 -1
  41. package/logout/index.js +1 -1
  42. package/menu/index.js +1 -1
  43. package/milestone/index.js +2 -1
  44. package/modal/index.js +0 -1
  45. package/nav-menu/index.js +80 -11
  46. package/nav-menu/vue.js +13 -1
  47. package/package.json +2 -2
  48. package/picker/index.js +10 -0
  49. package/rich-text/index.js +1 -1
  50. package/rich-text/module/file-upload.js +1 -1
  51. package/rich-text/module/image-upload.js +1 -1
  52. package/rich-text-editor/vue.js +11 -10
  53. package/roles/index.js +1 -1
  54. package/select/index.js +27 -17
  55. package/select/vue.js +33 -5
  56. package/select-dropdown/vue.js +2 -1
  57. package/split/index.js +2 -1
  58. package/statistic/index.js +5 -2
  59. package/tabbar-item/vue.js +1 -1
  60. package/tabs-mf/wheel.js +14 -9
  61. package/time-panel/index.js +8 -1
  62. package/time-panel/vue.js +2 -0
  63. package/time-spinner/index.js +2 -1
  64. package/toggle-menu/index.js +1 -1
  65. package/transfer/index.js +1 -5
  66. package/tree-menu/index.js +5 -1
  67. package/tree-menu/vue.js +5 -2
  68. package/types/alert.type.d.ts +4 -0
  69. package/types/date-picker.type.d.ts +1 -1
  70. package/types/dialog-box.type.d.ts +10 -0
  71. package/types/divider.type.d.ts +94 -0
  72. package/types/dropdown.type.d.ts +2 -0
  73. package/types/file-upload.type.d.ts +1 -1
  74. package/types/float-button.type.d.ts +2 -2
  75. package/types/form-item.type.d.ts +1 -1
  76. package/types/{form.type-f6fb4c38.d.ts → form.type-4e0ec0a1.d.ts} +2 -1
  77. package/types/form.type.d.ts +1 -1
  78. package/types/image.type.d.ts +1 -1
  79. package/types/nav-menu.type.d.ts +1 -0
  80. package/types/statistic.type.d.ts +2 -5
  81. package/types/tree-menu.type.d.ts +19 -0
  82. package/types/upload-dragger.type.d.ts +2 -2
  83. package/types/{upload-list.type-6189e4c9.d.ts → upload-list.type-eaf82b7a.d.ts} +4 -8
  84. package/types/upload-list.type.d.ts +1 -1
  85. package/types/upload.type.d.ts +1 -1
  86. package/types/user-contact.type.d.ts +1 -1
  87. package/upload-dragger/index.js +49 -24
  88. package/upload-dragger/vue.js +1 -0
  89. package/upload-list/index.js +1 -1
  90. package/upload-list/vue.js +2 -1
  91. package/user/index.js +1 -1
  92. package/user-contact/index.js +1 -1
  93. package/year-table/index.js +2 -2
  94. package/common/xss.js +0 -191
package/common/xss.js DELETED
@@ -1,191 +0,0 @@
1
- import "../chunk-G2ADBYYC.js";
2
- import * as xss$1 from "xss";
3
- let getWindow = function() {
4
- return typeof window === "undefined" ? global : window;
5
- };
6
- let xssOptions = {
7
- enableAttrs: true,
8
- enableHtml: true,
9
- enableUrl: true,
10
- html: {
11
- whiteList: {
12
- a: ["class", "style", "contenteditable", "data-id", "data-title", "data-size", "data-last-modified", "href"],
13
- address: ["class", "style"],
14
- area: ["class", "style"],
15
- article: ["class", "style"],
16
- aside: ["class", "style"],
17
- audio: ["class", "style"],
18
- b: ["class", "style"],
19
- bdi: ["class", "style"],
20
- bdo: ["class", "style"],
21
- big: ["class", "style"],
22
- blockquote: ["class", "style"],
23
- br: ["class", "style"],
24
- caption: ["class", "style"],
25
- center: ["class", "style"],
26
- cite: ["class", "style"],
27
- code: ["class", "style"],
28
- col: ["class", "style"],
29
- colgroup: ["class", "style"],
30
- dd: ["class", "style"],
31
- del: ["class", "style"],
32
- details: ["class", "style"],
33
- div: [
34
- "class",
35
- "style",
36
- "spellcheck",
37
- "data-gramm",
38
- "spellcheck",
39
- "data-mode",
40
- "data-position",
41
- "data-row",
42
- "data-cell",
43
- "data-rowspan",
44
- "data-colspan",
45
- "data-cell-bg",
46
- "data-parent-bg"
47
- ],
48
- dl: ["class", "style"],
49
- dt: ["class", "style"],
50
- em: ["class", "style"],
51
- figcaption: ["class", "style"],
52
- figure: ["class", "style"],
53
- font: ["class", "style"],
54
- footer: ["class", "style"],
55
- h1: ["class", "style"],
56
- h2: ["class", "style"],
57
- h3: ["class", "style"],
58
- h4: ["class", "style"],
59
- h5: ["class", "style"],
60
- h6: ["class", "style"],
61
- header: ["class", "style"],
62
- hr: ["class", "style"],
63
- i: ["class", "style", "data-image-id", "data-image"],
64
- img: ["class", "style", "devui-editorx-image", "style", "data-image-id", "src"],
65
- input: ["class", "style", "data-formula", "data-link", "data-video"],
66
- ins: ["class", "style"],
67
- li: ["class", "style"],
68
- mark: ["class", "style"],
69
- nav: ["class", "style"],
70
- ol: ["class", "style"],
71
- p: ["class", "style"],
72
- pre: ["class", "style"],
73
- s: ["class", "style"],
74
- section: ["class", "style"],
75
- small: ["class", "style"],
76
- span: ["class", "style", "contenteditable", "color", "style"],
77
- sub: ["class", "style"],
78
- summary: ["class", "style"],
79
- sup: ["class", "style"],
80
- strong: ["class", "style"],
81
- strike: ["class", "style"],
82
- svg: ["class", "style", "t", "viewBox", "version", "xmlns", "p-id", "xmlns:xlink"],
83
- path: ["d", "p-id"],
84
- table: ["class", "style"],
85
- tbody: ["class", "style"],
86
- td: ["class", "style", "data-row", "data-cell", "data-cell-bg", "data-parent-bg"],
87
- tfoot: ["class", "style"],
88
- th: ["class", "style"],
89
- thead: ["class", "style"],
90
- tr: ["class", "style", "data-row"],
91
- tt: ["class", "style"],
92
- u: ["class", "style"],
93
- ul: ["class", "style"],
94
- video: ["class", "style"]
95
- }
96
- }
97
- };
98
- let defaultWhiteList = xss$1.getDefaultWhiteList && xss$1.getDefaultWhiteList() || {};
99
- xssOptions.html.whiteList = Object.assign(defaultWhiteList, xssOptions.html.whiteList);
100
- let xssFilterHtml = new xss$1.FilterXSS(xssOptions.html);
101
- let getXssOption = function() {
102
- return xssOptions;
103
- };
104
- let setXssOption = function(option) {
105
- let _a;
106
- let whiteList;
107
- if ((_a = option === null || option === void 0 ? void 0 : option.html) === null || _a === void 0 ? void 0 : _a.whiteList) {
108
- whiteList = Object.assign(xssOptions.html.whiteList, option.html.whiteList);
109
- }
110
- xssOptions = Object.assign(xssOptions, option);
111
- if (whiteList) {
112
- xssOptions.html.whiteList = whiteList;
113
- }
114
- xssFilterHtml = new xss$1.FilterXSS(xssOptions.html);
115
- };
116
- let filterHtml = function(content) {
117
- if (!xssOptions.enableHtml || typeof content !== "string") {
118
- return content;
119
- }
120
- return xssFilterHtml.process(content);
121
- };
122
- let setFilterHtml = function(filter) {
123
- filterHtml = filter;
124
- };
125
- let filterAttrs = function(content) {
126
- if (!xssOptions.enableAttrs || typeof content !== "string") {
127
- return content;
128
- }
129
- return content.replace(/<.*?>/gi, "").replace(/on[a-z]+=/gi, "");
130
- };
131
- let setFilterAttrs = function(filter) {
132
- filterAttrs = filter;
133
- };
134
- let filterUrl = function(content) {
135
- if (!xssOptions.enableUrl || typeof content !== "string") {
136
- return content;
137
- }
138
- let filteredUrl = content.replace(/&#(\w+)(^\w|;)?/g, (match, dec) => String.fromCharCode(dec)).trim();
139
- if (!filteredUrl) {
140
- return "";
141
- }
142
- if ([".", "/"].includes(filteredUrl[0])) {
143
- return filteredUrl;
144
- }
145
- let urlParse = filteredUrl.match(/^([^:]+):/gm);
146
- if (!urlParse) {
147
- return filteredUrl;
148
- }
149
- if (/^([^\w]*)(javascript|data|vbscript)/im.test(urlParse[0])) {
150
- return "";
151
- }
152
- return filteredUrl;
153
- };
154
- let setFilterUrl = function(filter) {
155
- filterUrl = filter;
156
- };
157
- let index = {
158
- getXssOption,
159
- setXssOption,
160
- filterHtml,
161
- setFilterHtml,
162
- filterAttrs,
163
- setFilterAttrs,
164
- filterUrl,
165
- setFilterUrl
166
- };
167
- let xss = Object.freeze({
168
- __proto__: null,
169
- getXssOption,
170
- setXssOption,
171
- get filterHtml() {
172
- return filterHtml;
173
- },
174
- setFilterHtml,
175
- get filterAttrs() {
176
- return filterAttrs;
177
- },
178
- setFilterAttrs,
179
- get filterUrl() {
180
- return filterUrl;
181
- },
182
- setFilterUrl,
183
- "default": index
184
- });
185
- let log = { logger: getWindow().console };
186
- let def = { xss, log };
187
- export {
188
- def as default,
189
- log,
190
- xss
191
- };