dtable-ui-component 0.1.74 → 0.1.75-beta3

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 (238) hide show
  1. package/es/AutoNumberFormatter/index.css +1 -0
  2. package/es/{components/cell-formatter/auto-number-formatter.js → AutoNumberFormatter/index.js} +1 -0
  3. package/es/ButtonFormatter/index.css +13 -0
  4. package/es/{components/cell-formatter/button-formatter.js → ButtonFormatter/index.js} +1 -0
  5. package/es/CTimeFormatter/index.css +1 -0
  6. package/es/{components/cell-formatter/ctime-formatter.js → CTimeFormatter/index.js} +1 -0
  7. package/es/CheckboxFormatter/index.css +1 -0
  8. package/es/{components/cell-formatter/checkbox-formatter.js → CheckboxFormatter/index.js} +1 -0
  9. package/es/CollaboratorFormatter/index.css +1 -0
  10. package/es/{components/cell-formatter/collaborator-formatter.js → CollaboratorFormatter/index.js} +3 -2
  11. package/es/CollaboratorItem/index.css +49 -0
  12. package/es/CollaboratorItem/index.js +64 -0
  13. package/es/CreatorFormatter/index.css +1 -0
  14. package/es/{components/cell-formatter/creator-formatter.js → CreatorFormatter/index.js} +3 -2
  15. package/es/DateFormatter/index.css +1 -0
  16. package/es/{components/cell-formatter/date-formatter.js → DateFormatter/index.js} +2 -1
  17. package/es/DurationFormatter/index.css +1 -0
  18. package/es/{components/cell-formatter/duration-formatter.js → DurationFormatter/index.js} +2 -1
  19. package/es/EmailFormatter/index.css +5 -0
  20. package/es/{components/cell-formatter/email-formatter.js → EmailFormatter/index.js} +1 -0
  21. package/es/FileFormatter/index.css +29 -0
  22. package/es/{components/cell-formatter/file-formatter.js → FileFormatter/index.js} +2 -1
  23. package/es/{components/cell-formatter/widgets/file-item-formatter.js → FileItemFormatter/index.js} +2 -2
  24. package/es/{components/file-uploader → FileUploader}/index.js +0 -0
  25. package/es/FormulaFormatter/index.css +19 -0
  26. package/es/{components/cell-formatter/formula-formatter.js → FormulaFormatter/index.js} +8 -8
  27. package/es/GeolocationFormatter/index.css +1 -0
  28. package/es/{components/cell-formatter/geolocation-formatter.js → GeolocationFormatter/index.js} +2 -1
  29. package/es/{components/common → ImageFormatter}/images-lazy-load.js +2 -2
  30. package/es/ImageFormatter/index.css +34 -0
  31. package/es/{components/cell-formatter/image-formatter.js → ImageFormatter/index.js} +4 -3
  32. package/es/{css/image-previewer-ligntbox.css → ImagePreviewerLightbox/index.css} +0 -0
  33. package/es/{components/cell-formatter/widgets/image-previewer-lightbox.js → ImagePreviewerLightbox/index.js} +3 -3
  34. package/es/LastModifierFormatter/index.css +1 -0
  35. package/es/{components/cell-formatter/last-modifier-formatter.js → LastModifierFormatter/index.js} +5 -4
  36. package/es/LinkFormatter/index.css +27 -0
  37. package/es/{components/cell-formatter/link-formatter.js → LinkFormatter/index.js} +2 -2
  38. package/es/{css/loading.css → Loading/index.css} +0 -0
  39. package/es/{components/loading.js → Loading/index.js} +1 -1
  40. package/es/{components/cell-formatter/widgets/long-text-formatter → LongTextFormatter}/html-long-text-formatter.js +1 -1
  41. package/es/LongTextFormatter/index.css +63 -0
  42. package/es/{components/cell-formatter/long-text-formatter.js → LongTextFormatter/index.js} +3 -2
  43. package/es/{components/cell-formatter/widgets/long-text-formatter → LongTextFormatter}/simple-long-text-formatter.js +1 -1
  44. package/es/MTimeFormatter/index.css +1 -0
  45. package/es/{components/cell-formatter/mtime-formatter.js → MTimeFormatter/index.js} +1 -0
  46. package/es/{components/common/modal-portal.js → ModalPortal/index.js} +0 -0
  47. package/es/MultipleSelectFormatter/index.css +1 -0
  48. package/es/{components/cell-formatter/multiple-select-formatter.js → MultipleSelectFormatter/index.js} +2 -1
  49. package/es/NumberFormatter/index.css +1 -0
  50. package/es/{components/cell-formatter/number-formatter.js → NumberFormatter/index.js} +2 -1
  51. package/es/RateFormatter/index.css +1 -0
  52. package/es/{components/cell-formatter/rate-formatter.js → RateFormatter/index.js} +1 -0
  53. package/es/{components/common/select-item.js → SelectItem/index.js} +0 -0
  54. package/es/SingleSelectFormatter/index.css +1 -0
  55. package/es/{components/cell-formatter/single-select-formatter.js → SingleSelectFormatter/index.js} +2 -1
  56. package/es/TextFormatter/index.css +1 -0
  57. package/es/{components/cell-formatter/text-formatter.js → TextFormatter/index.js} +1 -0
  58. package/es/UrlFormatter/index.css +5 -0
  59. package/es/{components/cell-formatter/url-formatter.js → UrlFormatter/index.js} +1 -0
  60. package/es/app.js +1 -1
  61. package/es/{components/cell-factory/cell-formatter-factory.js → cellFormatterFactory/index.js} +3 -3
  62. package/es/components/cell-editor/checkbox-editor.js +104 -0
  63. package/es/components/cell-editor/collaborator-editor.js +236 -0
  64. package/es/components/cell-editor/date-editor.js +151 -0
  65. package/es/components/cell-editor/index.js +9 -0
  66. package/es/components/cell-editor/link-editor.js +303 -0
  67. package/es/components/cell-editor/multiple-select-editor.js +237 -0
  68. package/es/components/cell-editor/number-editor.js +154 -0
  69. package/es/components/cell-editor/single-select-editor.js +202 -0
  70. package/es/components/cell-editor/text-editor.js +122 -0
  71. package/es/components/cell-editor-dialog/pc-file-editor-dialog.js +46 -0
  72. package/es/components/cell-editor-dialog/pc-files-addition/index.js +0 -0
  73. package/es/components/cell-editor-dialog/pc-files-addition/pc-file-uploaded-item.js +0 -0
  74. package/es/components/cell-editor-dialog/pc-files-preview/index.js +0 -0
  75. package/es/components/cell-editor-dialog/pc-files-preview/pc-file-item-preview.js +0 -0
  76. package/es/components/cell-editor-popover/mb-collaborator-editor-popover.js +177 -0
  77. package/es/components/cell-editor-popover/mb-date-editor-popover.js +245 -0
  78. package/es/components/cell-editor-popover/mb-link-editor-popover.js +170 -0
  79. package/es/components/cell-editor-popover/mb-select-editor-popover.js +230 -0
  80. package/es/components/cell-editor-popover/pc-collaborator-editor-popover.js +109 -0
  81. package/es/components/cell-editor-popover/pc-date-editor-popover.js +142 -0
  82. package/es/components/cell-editor-popover/pc-link-editor-popover.js +114 -0
  83. package/es/components/cell-editor-popover/pc-select-editor-popover.js +143 -0
  84. package/es/constants/index.js +15 -14
  85. package/es/css/cell-formatter.css +0 -243
  86. package/es/formatterConfig/index.js +31 -0
  87. package/es/index.js +29 -3
  88. package/es/{components/toast → toaster}/alert.js +0 -0
  89. package/es/{components/toast → toaster}/index.js +0 -0
  90. package/es/{components/toast → toaster}/toast.js +0 -0
  91. package/es/{components/toast → toaster}/toastManager.js +0 -0
  92. package/es/{components/toast → toaster}/toaster.js +0 -0
  93. package/es/utils/cell-value-validator.js +1 -2
  94. package/es/utils/editor-utils.js +71 -0
  95. package/es/utils/normalize-long-text-value.js +2 -2
  96. package/es/utils/number-precision.js +1 -0
  97. package/es/utils/value-format-utils.js +2 -0
  98. package/lib/AutoNumberFormatter/index.css +1 -0
  99. package/lib/AutoNumberFormatter/index.js +47 -0
  100. package/lib/ButtonFormatter/index.css +13 -0
  101. package/lib/ButtonFormatter/index.js +68 -0
  102. package/lib/CTimeFormatter/index.css +1 -0
  103. package/lib/CTimeFormatter/index.js +72 -0
  104. package/lib/CheckboxFormatter/index.css +1 -0
  105. package/lib/CheckboxFormatter/index.js +58 -0
  106. package/lib/CollaboratorFormatter/index.css +1 -0
  107. package/lib/CollaboratorFormatter/index.js +113 -0
  108. package/lib/CollaboratorItem/index.css +49 -0
  109. package/lib/CollaboratorItem/index.js +81 -0
  110. package/lib/CreatorFormatter/index.css +1 -0
  111. package/lib/CreatorFormatter/index.js +107 -0
  112. package/lib/DateFormatter/index.css +1 -0
  113. package/lib/DateFormatter/index.js +75 -0
  114. package/lib/DurationFormatter/index.css +1 -0
  115. package/lib/DurationFormatter/index.js +51 -0
  116. package/lib/EmailFormatter/index.css +5 -0
  117. package/lib/EmailFormatter/index.js +47 -0
  118. package/lib/FileFormatter/index.css +29 -0
  119. package/lib/FileFormatter/index.js +79 -0
  120. package/lib/FileItemFormatter/index.js +63 -0
  121. package/lib/FileUploader/index.js +63 -0
  122. package/lib/FormulaFormatter/index.css +19 -0
  123. package/lib/FormulaFormatter/index.js +185 -0
  124. package/lib/GeolocationFormatter/index.css +1 -0
  125. package/lib/GeolocationFormatter/index.js +68 -0
  126. package/lib/ImageFormatter/images-lazy-load.js +158 -0
  127. package/lib/ImageFormatter/index.css +34 -0
  128. package/lib/ImageFormatter/index.js +173 -0
  129. package/lib/ImagePreviewerLightbox/index.css +87 -0
  130. package/lib/ImagePreviewerLightbox/index.js +152 -0
  131. package/lib/LastModifierFormatter/index.css +1 -0
  132. package/lib/LastModifierFormatter/index.js +107 -0
  133. package/lib/LinkFormatter/index.css +27 -0
  134. package/lib/LinkFormatter/index.js +165 -0
  135. package/lib/Loading/index.css +54 -0
  136. package/lib/Loading/index.js +16 -0
  137. package/lib/LongTextFormatter/html-long-text-formatter.js +107 -0
  138. package/lib/LongTextFormatter/index.css +63 -0
  139. package/lib/LongTextFormatter/index.js +48 -0
  140. package/lib/LongTextFormatter/simple-long-text-formatter.js +110 -0
  141. package/lib/MTimeFormatter/index.css +1 -0
  142. package/lib/MTimeFormatter/index.js +72 -0
  143. package/lib/ModalPortal/index.js +51 -0
  144. package/lib/MultipleSelectFormatter/index.css +1 -0
  145. package/lib/MultipleSelectFormatter/index.js +86 -0
  146. package/lib/NumberFormatter/index.css +1 -0
  147. package/lib/NumberFormatter/index.js +62 -0
  148. package/lib/RateFormatter/index.css +1 -0
  149. package/lib/RateFormatter/index.js +95 -0
  150. package/lib/SelectItem/index.js +73 -0
  151. package/lib/SingleSelectFormatter/index.css +1 -0
  152. package/lib/SingleSelectFormatter/index.js +86 -0
  153. package/lib/TextFormatter/index.css +1 -0
  154. package/lib/TextFormatter/index.js +69 -0
  155. package/lib/UrlFormatter/index.css +5 -0
  156. package/lib/UrlFormatter/index.js +47 -0
  157. package/lib/app.css +20 -0
  158. package/lib/app.js +96 -0
  159. package/lib/assets/images/avatar/default_avatar.png +0 -0
  160. package/lib/assets/images/file/192/excel.png +0 -0
  161. package/lib/assets/images/file/192/file.png +0 -0
  162. package/lib/assets/images/file/192/music.png +0 -0
  163. package/lib/assets/images/file/192/pdf.png +0 -0
  164. package/lib/assets/images/file/192/pic.png +0 -0
  165. package/lib/assets/images/file/192/ppt.png +0 -0
  166. package/lib/assets/images/file/192/txt.png +0 -0
  167. package/lib/assets/images/file/192/video.png +0 -0
  168. package/lib/assets/images/file/192/word.png +0 -0
  169. package/lib/assets/images/file/24/excel.png +0 -0
  170. package/lib/assets/images/file/24/file.png +0 -0
  171. package/lib/assets/images/file/24/music.png +0 -0
  172. package/lib/assets/images/file/24/pdf.png +0 -0
  173. package/lib/assets/images/file/24/pic.png +0 -0
  174. package/lib/assets/images/file/24/ppt.png +0 -0
  175. package/lib/assets/images/file/24/txt.png +0 -0
  176. package/lib/assets/images/file/24/video.png +0 -0
  177. package/lib/assets/images/file/24/word.png +0 -0
  178. package/lib/assets/images/folder/folder-192.png +0 -0
  179. package/lib/assets/images/folder/folder-24.png +0 -0
  180. package/lib/cellFormatterFactory/index.js +28 -0
  181. package/lib/components/cell-editor/checkbox-editor.js +111 -0
  182. package/lib/components/cell-editor/collaborator-editor.js +249 -0
  183. package/lib/components/cell-editor/date-editor.js +171 -0
  184. package/lib/components/cell-editor/index.js +40 -0
  185. package/lib/components/cell-editor/link-editor.js +321 -0
  186. package/lib/components/cell-editor/multiple-select-editor.js +250 -0
  187. package/lib/components/cell-editor/number-editor.js +162 -0
  188. package/lib/components/cell-editor/single-select-editor.js +216 -0
  189. package/lib/components/cell-editor/text-editor.js +129 -0
  190. package/lib/components/cell-editor-dialog/pc-file-editor-dialog.js +66 -0
  191. package/lib/components/cell-editor-dialog/pc-files-addition/index.js +1 -0
  192. package/lib/components/cell-editor-dialog/pc-files-addition/pc-file-uploaded-item.js +1 -0
  193. package/lib/components/cell-editor-dialog/pc-files-preview/index.js +1 -0
  194. package/lib/components/cell-editor-dialog/pc-files-preview/pc-file-item-preview.js +1 -0
  195. package/lib/components/cell-editor-popover/mb-collaborator-editor-popover.js +183 -0
  196. package/lib/components/cell-editor-popover/mb-date-editor-popover.js +262 -0
  197. package/lib/components/cell-editor-popover/mb-link-editor-popover.js +176 -0
  198. package/lib/components/cell-editor-popover/mb-select-editor-popover.js +243 -0
  199. package/lib/components/cell-editor-popover/pc-collaborator-editor-popover.js +124 -0
  200. package/lib/components/cell-editor-popover/pc-date-editor-popover.js +156 -0
  201. package/lib/components/cell-editor-popover/pc-link-editor-popover.js +128 -0
  202. package/lib/components/cell-editor-popover/pc-select-editor-popover.js +157 -0
  203. package/lib/components/common/collaborator-item.js +79 -0
  204. package/lib/components/common/edit-editor-button.js +67 -0
  205. package/lib/components/common/link-editor-option.js +121 -0
  206. package/lib/components/common/mobile/mb-editor-header.js +61 -0
  207. package/lib/components/common/select-editor-option.js +122 -0
  208. package/lib/constants/cell-types.js +54 -0
  209. package/lib/constants/index.js +72 -0
  210. package/lib/css/cell-editor.css +614 -0
  211. package/lib/css/cell-formatter.css +4 -0
  212. package/lib/css/custom-rc-calendar.css +118 -0
  213. package/lib/formatterConfig/index.js +62 -0
  214. package/lib/index.js +139 -0
  215. package/lib/lang/index.js +66 -0
  216. package/lib/locals/de.js +7 -0
  217. package/lib/locals/en.js +22 -0
  218. package/lib/locals/fr.js +7 -0
  219. package/lib/locals/zh-CN.js +22 -0
  220. package/lib/toaster/alert.js +164 -0
  221. package/lib/toaster/index.js +12 -0
  222. package/lib/toaster/toast.js +223 -0
  223. package/lib/toaster/toastManager.js +189 -0
  224. package/lib/toaster/toaster.js +92 -0
  225. package/lib/utils/cell-value-validator.js +35 -0
  226. package/lib/utils/column-utils.js +15 -0
  227. package/lib/utils/editor-utils.js +81 -0
  228. package/lib/utils/markdown2html.js +68 -0
  229. package/lib/utils/normalize-long-text-value.js +74 -0
  230. package/lib/utils/number-precision.js +182 -0
  231. package/lib/utils/unified/index.js +470 -0
  232. package/lib/utils/utils.js +141 -0
  233. package/lib/utils/value-format-utils.js +547 -0
  234. package/lib/utils/vfile/core.js +172 -0
  235. package/lib/utils/vfile/index.js +48 -0
  236. package/package.json +5 -3
  237. package/es/components/cell-formatter/formatter-config.js +0 -31
  238. package/es/components/cell-formatter/index.js +0 -27
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.SIMPLE_CELL_FORMULA_RESULTS = exports.SIMPLE_CELL_COLUMNS = exports.NUMBER_TYPES = exports.FORMULA_RESULT_TYPE = exports.DURATION_ZERO_DISPLAY = exports.DURATION_FORMATS_MAP = exports.DURATION_FORMATS = exports.DURATION_DECIMAL_DIGITS = exports.DEFAULT_NUMBER_FORMAT = exports.DEFAULT_DATE_FORMAT = exports.DATE_TYPES = exports.CellType = exports.COLLABORATOR_COLUMN_TYPES = exports.ARRAY_FORMAL_COLUMNS_TYPES = exports.ARRAY_FORMAL_COLUMNS = void 0;
5
+
6
+ var CellType = _interopRequireWildcard(require("./cell-types"));
7
+
8
+ exports.CellType = CellType;
9
+
10
+ var _DURATION_ZERO_DISPLA, _DURATION_DECIMAL_DIG;
11
+
12
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
+
14
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
+
16
+ var NUMBER_TYPES = {
17
+ 'NUMBER': 'number',
18
+ 'NUMBER_WITH_COMMAS': 'number-with-commas',
19
+ 'PERCENT': 'percent',
20
+ 'YUAN': 'yuan',
21
+ 'EURO': 'euro',
22
+ 'DOLLAR': 'dollar'
23
+ };
24
+ exports.NUMBER_TYPES = NUMBER_TYPES;
25
+ var DATE_TYPES = {
26
+ 'D/M/YYYY': 'D/M/YYYY',
27
+ 'D/M/YYYY HH:mm': 'D/M/YYYY HH:mm',
28
+ 'M/D/YYYY': 'M/D/YY',
29
+ 'M/D/YYYY HH:mm': 'M/D/YYYY HH:mm',
30
+ 'YYYY-MM-DD': 'YYYY-MM-DD',
31
+ 'YYYY-MM-DD HH:mm': 'YYYY-MM-DD HH:mm'
32
+ };
33
+ exports.DATE_TYPES = DATE_TYPES;
34
+ var FORMULA_RESULT_TYPE = {
35
+ NUMBER: 'number',
36
+ STRING: 'string',
37
+ DATE: 'date',
38
+ BOOL: 'bool',
39
+ ARRAY: 'array'
40
+ };
41
+ exports.FORMULA_RESULT_TYPE = FORMULA_RESULT_TYPE;
42
+ var SIMPLE_CELL_COLUMNS = [CellType.TEXT, CellType.NUMBER, CellType.DATE, CellType.CTIME, CellType.MTIME, CellType.GEOLOCATION, CellType.AUTO_NUMBER, CellType.URL, CellType.EMAIL, CellType.DURATION, CellType.CHECKBOX, CellType.RATE];
43
+ exports.SIMPLE_CELL_COLUMNS = SIMPLE_CELL_COLUMNS;
44
+ var ARRAY_FORMAL_COLUMNS = [CellType.IMAGE, CellType.FILE, CellType.MULTIPLE_SELECT, CellType.COLLABORATOR];
45
+ exports.ARRAY_FORMAL_COLUMNS = ARRAY_FORMAL_COLUMNS;
46
+ var SIMPLE_CELL_FORMULA_RESULTS = [FORMULA_RESULT_TYPE.NUMBER, FORMULA_RESULT_TYPE.STRING, FORMULA_RESULT_TYPE.DATE, FORMULA_RESULT_TYPE.BOOL];
47
+ exports.SIMPLE_CELL_FORMULA_RESULTS = SIMPLE_CELL_FORMULA_RESULTS;
48
+ var COLLABORATOR_COLUMN_TYPES = [CellType.COLLABORATOR, CellType.CREATOR, CellType.LAST_MODIFIER];
49
+ exports.COLLABORATOR_COLUMN_TYPES = COLLABORATOR_COLUMN_TYPES;
50
+ var ARRAY_FORMAL_COLUMNS_TYPES = [CellType.IMAGE, CellType.FILE, CellType.MULTIPLE_SELECT, CellType.COLLABORATOR];
51
+ exports.ARRAY_FORMAL_COLUMNS_TYPES = ARRAY_FORMAL_COLUMNS_TYPES;
52
+ var DEFAULT_NUMBER_FORMAT = 'number';
53
+ exports.DEFAULT_NUMBER_FORMAT = DEFAULT_NUMBER_FORMAT;
54
+ var DEFAULT_DATE_FORMAT = 'YYYY-MM-DD';
55
+ exports.DEFAULT_DATE_FORMAT = DEFAULT_DATE_FORMAT;
56
+ var DURATION_FORMATS_MAP = {
57
+ H_MM: 'h:mm',
58
+ H_MM_SS: 'h:mm:ss'
59
+ };
60
+ exports.DURATION_FORMATS_MAP = DURATION_FORMATS_MAP;
61
+ var DURATION_FORMATS = [{
62
+ name: DURATION_FORMATS_MAP.H_MM,
63
+ type: DURATION_FORMATS_MAP.H_MM
64
+ }, {
65
+ name: DURATION_FORMATS_MAP.H_MM_SS,
66
+ type: DURATION_FORMATS_MAP.H_MM_SS
67
+ }];
68
+ exports.DURATION_FORMATS = DURATION_FORMATS;
69
+ var DURATION_ZERO_DISPLAY = (_DURATION_ZERO_DISPLA = {}, _DURATION_ZERO_DISPLA[DURATION_FORMATS_MAP.H_MM] = '0:00', _DURATION_ZERO_DISPLA[DURATION_FORMATS_MAP.H_MM_SS] = '0:00', _DURATION_ZERO_DISPLA);
70
+ exports.DURATION_ZERO_DISPLAY = DURATION_ZERO_DISPLAY;
71
+ var DURATION_DECIMAL_DIGITS = (_DURATION_DECIMAL_DIG = {}, _DURATION_DECIMAL_DIG[DURATION_FORMATS_MAP.H_MM] = 0, _DURATION_DECIMAL_DIG[DURATION_FORMATS_MAP.H_MM_SS] = 0, _DURATION_DECIMAL_DIG);
72
+ exports.DURATION_DECIMAL_DIGITS = DURATION_DECIMAL_DIGITS;
@@ -0,0 +1,614 @@
1
+ /* common */
2
+ .dtable-ui-editor-popover {
3
+ width: 320px;
4
+ box-shadow: 0 0 5px #ccc;
5
+ background-color: #fff;
6
+ z-index: 10;
7
+ }
8
+
9
+ @media screen and (max-width: 767.8px) {
10
+ .dtable-ui-mb-editor-popover {
11
+ position: fixed;
12
+ top: 0;
13
+ left: 0;
14
+ right: 0;
15
+ bottom: 0;
16
+ display: flex;
17
+ background-color: #f5f5f5;
18
+ z-index: 9;
19
+ }
20
+
21
+ .dtable-ui-mb-editor-header {
22
+ position: fixed;
23
+ left: 0;
24
+ top: 0;
25
+ width: 100%;
26
+ height: 50px;
27
+ display: flex;
28
+ align-items: center;
29
+ background-color: #fff;
30
+ }
31
+
32
+ .dtable-ui-mb-editor-header .editor-header-left-content {
33
+ min-width: 50px;
34
+ padding: 13px 16px;
35
+ font-size: 14px;
36
+ color: #888;
37
+ }
38
+
39
+ .dtable-ui-mb-editor-header .editor-header-title {
40
+ flex: 1;
41
+ font-size: 18px;
42
+ text-align: center;
43
+ text-overflow: ellipsis;
44
+ color: #333;
45
+ overflow: hidden;
46
+ white-space: nowrap;
47
+ }
48
+
49
+ .dtable-ui-mb-editor-header .editor-header-right-content {
50
+ min-width: 50px;
51
+ padding: 13px 16px;
52
+ font-size: 14px;
53
+ color: #888;
54
+ }
55
+
56
+ .dtable-ui-mb-editor-body {
57
+ flex: 1;
58
+ display: flex;
59
+ flex-direction: column;
60
+ margin-top: 50px;
61
+ overflow: auto;
62
+ }
63
+ }
64
+
65
+ /* pc-single-select */
66
+ /* pc-multiple-select */
67
+ .dtable-ui-single-select-editor,
68
+ .dtable-ui-multiple-select-editor {
69
+ position: relative;
70
+ }
71
+
72
+ .dtable-ui-select-editor-container {
73
+ display: inline-block;
74
+ height: 30px;
75
+ padding: 0 10px;
76
+ }
77
+
78
+ .dtable-ui-select-editor-popover .select-options-search {
79
+ padding: 10px 10px 0 10px;
80
+ }
81
+
82
+ .dtable-ui-select-editor-popover .select-options-search input {
83
+ height: 28px;
84
+ }
85
+
86
+ .dtable-ui-select-editor-popover .select-options-container {
87
+ min-height: 160px;
88
+ max-height: 200px;
89
+ margin: 10px 0;
90
+ padding: 0 10px;
91
+ overflow: auto;
92
+ }
93
+
94
+ /* option item */
95
+ .dtable-ui-select-editor-popover .select-option-item {
96
+ display: flex;
97
+ height: 30px;
98
+ padding-left: 12px;
99
+ font-size: 14px;
100
+ line-height: 30px;
101
+ margin-left: 10px;
102
+ cursor: pointer;
103
+ }
104
+
105
+ .dtable-ui-select-editor-popover .select-option-item:hover {
106
+ background-color: #f5f5f5;
107
+ }
108
+
109
+ .dtable-ui-select-editor-popover .option-info {
110
+ flex: 1;
111
+ display: flex;
112
+ align-items: center;
113
+ }
114
+
115
+ .dtable-ui-select-editor-popover .option-checked {
116
+ width: 20px;
117
+ text-align: center;
118
+ }
119
+
120
+ .dtable-ui-select-editor-popover .option-checked .dtable-font {
121
+ font-size: 12px;
122
+ color: #798d99;
123
+ }
124
+
125
+ .dtable-ui-select-editor-popover .select-options-add {
126
+ display: flex;
127
+ align-items: center;
128
+ padding: 0 10px;
129
+ height: 30px;
130
+ border-top: 1px solid #ccc;
131
+ }
132
+
133
+ .dtable-ui-select-editor-popover .select-options-add .dtable-font {
134
+ margin-right: 5px;
135
+ font-size: 12px;
136
+ font-weight: 600;
137
+ }
138
+
139
+ .dtable-ui-select-editor-popover .select-options-add > span {
140
+ display: inline-block;
141
+ font-size: 14px;
142
+ font-weight: 500;
143
+ color: #212529;
144
+ white-space: nowrap;
145
+ overflow: hidden;
146
+ text-overflow: ellipsis;
147
+ }
148
+
149
+ /* mobile select-editor */
150
+ @media screen and (max-width: 767.8px) {
151
+ .dtable-ui-mb-select-editor-body .mb-selected-item {
152
+ margin-top: 10px;
153
+ display: flex;
154
+ flex-direction: column;
155
+ }
156
+
157
+ .dtable-ui-mb-select-editor-body .mb-selected-item .title {
158
+ padding: 6px 16px;
159
+ border-bottom: 1px solid #e9e9e9;
160
+ }
161
+
162
+ .dtable-ui-mb-select-editor-body .mb-selected-item .content {
163
+ display: flex;
164
+ flex-wrap: wrap;
165
+ align-items: center;
166
+ min-height: 50px;
167
+ padding: 8px 16px;
168
+ border-bottom: 1px solid #e9e9e9;
169
+ overflow: auto;
170
+ background-color: #fff;
171
+ }
172
+
173
+ .dtable-ui-mb-select-editor-body .mb-selected-item .content .select-option-item {
174
+ margin: 3px 10px 3px 0;
175
+ }
176
+
177
+ .dtable-ui-mb-select-editor-body .mb-search-select-items {
178
+ padding: 8px 16px;
179
+ margin-top: 20px;
180
+ border-top: 1px solid #e9e9e9;
181
+ border-bottom: 1px solid #e9e9e9;
182
+ background-color: #fff;
183
+ }
184
+
185
+ .dtable-ui-mb-select-editor-body .mb-search-select-items > input {
186
+ outline: none;
187
+ height: 30px;
188
+ padding: 0;
189
+ line-height: 30px;
190
+ border: none;
191
+ }
192
+ .dtable-ui-mb-select-editor-body .mb-search-select-items > input:focus,
193
+ .dtable-ui-mb-select-editor-body .mb-search-select-items > input:active {
194
+ outline: none;
195
+ box-shadow: none;
196
+ }
197
+
198
+ .dtable-ui-mb-select-editor-body .mb-select-options-container {
199
+ display: flex;
200
+ flex-direction: column;
201
+ margin-top: 10px;
202
+ }
203
+
204
+ .dtable-ui-mb-select-editor-body .mb-select-options-container .title {
205
+ padding: 6px 16px;
206
+ border-bottom: 1px solid #e9e9e9;
207
+ }
208
+
209
+ .dtable-ui-mb-select-editor-body .mb-select-options-container .content {
210
+ display: flex;
211
+ flex-direction: column;
212
+ border-bottom: 1px solid #e9e9e9;
213
+ }
214
+
215
+ .dtable-ui-mb-select-editor-body .mb-select-options-container .search-result-none {
216
+ padding: 16px 0;
217
+ }
218
+
219
+ .dtable-ui-mb-select-editor-body .mb-select-options-container .mb-select-option-item {
220
+ display: flex;
221
+ align-items: center;
222
+ justify-content: space-between;
223
+ height: 50px;
224
+ padding: 10px 10px 10px 16px;
225
+ font-size: 13px;
226
+ background-color: #fff;
227
+ color: #202428;
228
+ }
229
+
230
+ .dtable-ui-mb-select-editor-body .mb-select-options-container .mb-select-option-item + .mb-select-option-item {
231
+ border-top: 1px solid #e9e9e9;
232
+ }
233
+
234
+ .dtable-ui-mb-select-editor-body .mb-select-options-container .mb-select-option-item .item-name {
235
+ display: inline-block;
236
+ padding: 0 10px;
237
+ margin-top: 5px;
238
+ height: 20px;
239
+ line-height: 20px;
240
+ text-align: center;
241
+ text-overflow: ellipsis;
242
+ border-radius: 10px;
243
+ overflow: hidden;
244
+ }
245
+
246
+ .dtable-ui-mb-select-editor-body .mb-select-options-container .mb-select-option-item .dtable-font {
247
+ font-size: 12px;
248
+ color: #798d99;
249
+ }
250
+
251
+ .dtable-ui-mb-select-editor-body .mb-create-select-item {
252
+ display: flex;
253
+ align-items: center;
254
+ height: 50px;
255
+ padding: 0 10px;
256
+ margin-top: 20px;
257
+ border-top: 1px solid #dedede;
258
+ border-bottom: 1px solid #e9e9e9;
259
+ background-color: #fff;
260
+ }
261
+
262
+ .dtable-ui-mb-select-editor-body .mb-create-select-item .dtable-font {
263
+ margin-right: 10px;
264
+ font-size: 12px;
265
+ font-weight: 600px;
266
+ transition: translateY(1px);
267
+ }
268
+
269
+ .dtable-ui-mb-select-editor-body .mb-create-select-item .add-new-option {
270
+ font-size: 14px;
271
+ font-weight: 500px;
272
+ }
273
+
274
+ }
275
+
276
+ /* collaborator-editor */
277
+ .dtable-ui-collaborator-editor {
278
+ position: relative;
279
+ }
280
+
281
+ .dtable-ui-collaborator-editor-container .collaborators-container {
282
+ margin-top: 8px;
283
+ }
284
+
285
+ .dtable-ui-collaborator-editor-popover .collaborator-search-container {
286
+ padding: 10px 10px 0 10px;
287
+ }
288
+
289
+ .dtable-ui-collaborator-editor-popover .collaborator-search-container input {
290
+ height: 28px;
291
+ }
292
+
293
+ .dtable-ui-collaborator-editor-popover .collaborator-list-container {
294
+ min-height: 160px;
295
+ max-height: 200px;
296
+ margin: 10px 0;
297
+ padding: 0 10px;
298
+ overflow: auto;
299
+ }
300
+
301
+ .dtable-ui-collaborator-editor-popover .collaborator-list-container .collaborator-item-container {
302
+ display: flex;
303
+ align-items: center;
304
+ justify-content: space-between;
305
+ height: 30px;
306
+ padding-left: 12px;
307
+ font-size: 14px;
308
+ margin-left: 10px;
309
+ cursor: pointer;
310
+ }
311
+
312
+ .dtable-ui-collaborator-editor-popover .collaborator-list-container .collaborator-item-container:hover {
313
+ background-color: #f5f5f5;
314
+ }
315
+
316
+ .dtable-ui-collaborator-editor-popover .collaborator-checked {
317
+ width: 20px;
318
+ text-align: center;
319
+ }
320
+
321
+ .dtable-ui-collaborator-editor-popover .collaborator-checked .dtable-font {
322
+ font-size: 12px;
323
+ color: #798d99;
324
+ }
325
+
326
+ @media screen and (max-width: 767.8px) {
327
+ .dtable-ui-mb-collaborator-editor-body .mb-search-collaborator-items {
328
+ padding: 8px 16px;
329
+ margin-top: 20px;
330
+ border-top: 1px solid #e9e9e9;
331
+ border-bottom: 1px solid #e9e9e9;
332
+ background-color: #fff;
333
+ }
334
+
335
+ .dtable-ui-mb-collaborator-editor-body .mb-search-collaborator-items > input {
336
+ outline: none;
337
+ height: 30px;
338
+ padding: 0;
339
+ line-height: 30px;
340
+ border: none;
341
+ }
342
+
343
+ .dtable-ui-mb-collaborator-editor-body .mb-search-collaborator-items > input:focus,
344
+ .dtable-ui-mb-collaborator-editor-body .mb-search-collaborator-items > input:active {
345
+ outline: none;
346
+ box-shadow: none;
347
+ }
348
+
349
+ .dtable-ui-mb-collaborator-editor-body .mb-collaborators-container {
350
+ flex: 1;
351
+ display: flex;
352
+ flex-direction: column;
353
+ margin-top: 10px;
354
+ min-height: 0;
355
+ }
356
+
357
+ .dtable-ui-mb-collaborator-editor-body .mb-collaborators-container .title {
358
+ padding: 6px 16px;
359
+ border-bottom: 1px solid #e9e9e9;
360
+ }
361
+
362
+ .dtable-ui-mb-collaborator-editor-body .mb-collaborators-container .content {
363
+ flex: 1;
364
+ overflow: auto;
365
+ display: flex;
366
+ flex-direction: column;
367
+ border-bottom: 1px solid #e9e9e9;
368
+ }
369
+
370
+ .dtable-ui-mb-collaborator-editor-body .search-result-none {
371
+ padding: 16px 0 16px 16px;
372
+ }
373
+
374
+ .dtable-ui-mb-collaborator-editor-body .mb-collaborator-option-item {
375
+ display: flex;
376
+ align-items: center;
377
+ justify-content: space-between;
378
+ height: 50px;
379
+ padding: 10px 10px 10px 16px;
380
+ font-size: 13px;
381
+ background-color: #fff;
382
+ color: #202428;
383
+ }
384
+
385
+ .dtable-ui-mb-collaborator-editor-body .mb-collaborator-option-item {
386
+ border-bottom: 1px solid #e9e9e9;
387
+ }
388
+
389
+ .dtable-ui-mb-collaborator-editor-body .mb-collaborator-option-item .mb-collaborator-info {
390
+ display: flex;
391
+ align-items: center;
392
+ }
393
+
394
+ .dtable-ui-mb-collaborator-editor-body .mb-collaborator-option-item .collaborator-avatar img {
395
+ width: 24px;
396
+ height: 24px;
397
+ border-radius: 50%;
398
+ }
399
+
400
+ .dtable-ui-mb-collaborator-editor-body .mb-collaborator-option-item .collaborator-name {
401
+ padding: 0 10px;
402
+ overflow: hidden;
403
+ }
404
+
405
+ .dtable-ui-mb-collaborator-editor-body .mb-collaborator-option-item .dtable-font {
406
+ font-size: 12px;
407
+ color: #798d99;
408
+ }
409
+ }
410
+
411
+ /* link-editor */
412
+ .dtable-ui-link-editor {
413
+ position: relative;
414
+ }
415
+
416
+ .dtable-ui-link-editor-container {
417
+ display: inline-block;
418
+ height: 30px;
419
+ padding: 0 10px;
420
+ }
421
+
422
+ .dtable-ui-link-editor-popover .link-options-search {
423
+ padding: 10px 10px 0 10px;
424
+ }
425
+
426
+ .dtable-ui-link-editor-popover .link-options-search input {
427
+ height: 28px;
428
+ }
429
+
430
+ .dtable-ui-link-editor-popover .link-options-container {
431
+ min-height: 160px;
432
+ max-height: 200px;
433
+ margin: 10px 0;
434
+ padding: 0 10px;
435
+ overflow: auto;
436
+ }
437
+
438
+ /* option item */
439
+ .dtable-ui-link-editor-popover .link-option-item {
440
+ display: flex;
441
+ height: 30px;
442
+ padding-left: 12px;
443
+ font-size: 14px;
444
+ line-height: 30px;
445
+ margin-left: 10px;
446
+ cursor: pointer;
447
+ }
448
+
449
+ .dtable-ui-link-editor-popover .link-option-item:hover {
450
+ background-color: #f5f5f5;
451
+ }
452
+
453
+ .dtable-ui-link-editor-popover .option-info {
454
+ flex: 1;
455
+ display: flex;
456
+ align-items: center;
457
+ }
458
+
459
+ .dtable-ui-link-editor-popover .option-info .option-name {
460
+ max-width: 250px;
461
+ white-space: nowrap;
462
+ overflow: hidden;
463
+ text-overflow: ellipsis;
464
+ }
465
+
466
+ .dtable-ui-link-editor-popover .option-checked {
467
+ width: 20px;
468
+ text-align: center;
469
+ }
470
+
471
+ .dtable-ui-link-editor-popover .option-checked .dtable-font {
472
+ font-size: 12px;
473
+ color: #798d99;
474
+ }
475
+
476
+ .dtable-ui-link-editor-popover .select-options-add {
477
+ display: flex;
478
+ align-items: center;
479
+ padding: 0 10px;
480
+ height: 30px;
481
+ border-top: 1px solid #ccc;
482
+ }
483
+
484
+ @media screen and (max-width: 767.8px) {
485
+ .dtable-ui-mb-link-editor-body .mb-search-link-items {
486
+ padding: 8px 16px;
487
+ margin-top: 20px;
488
+ border-top: 1px solid #e9e9e9;
489
+ border-bottom: 1px solid #e9e9e9;
490
+ background-color: #fff;
491
+ }
492
+
493
+ .dtable-ui-mb-link-editor-body .mb-search-link-items > input {
494
+ outline: none;
495
+ height: 30px;
496
+ padding: 0;
497
+ line-height: 30px;
498
+ border: none;
499
+ }
500
+
501
+ .dtable-ui-mb-link-editor-body .mb-search-link-items > input:focus,
502
+ .dtable-ui-mb-link-editor-body .mb-search-link-items > input:active {
503
+ outline: none;
504
+ box-shadow: none;
505
+ }
506
+
507
+ .dtable-ui-mb-link-editor-body .mb-link-container {
508
+ flex: 1;
509
+ display: flex;
510
+ flex-direction: column;
511
+ margin-top: 10px;
512
+ min-height: 0;
513
+ }
514
+
515
+ .dtable-ui-mb-link-editor-body .mb-link-container .title {
516
+ padding: 6px 16px;
517
+ border-bottom: 1px solid #e9e9e9;
518
+ }
519
+
520
+ .dtable-ui-mb-link-editor-body .mb-link-container .content {
521
+ flex: 1;
522
+ overflow: auto;
523
+ display: flex;
524
+ flex-direction: column;
525
+ border-bottom: 1px solid #e9e9e9;
526
+ }
527
+
528
+ .dtable-ui-mb-link-editor-body .search-result-none {
529
+ padding: 16px 0 16px 16px;
530
+ }
531
+
532
+ .dtable-ui-mb-link-editor-body .mb-link-option-item {
533
+ display: flex;
534
+ align-items: center;
535
+ justify-content: space-between;
536
+ height: 50px;
537
+ padding: 10px 10px 10px 16px;
538
+ font-size: 13px;
539
+ color: #202428;
540
+ background-color: #fff;
541
+ }
542
+
543
+ .dtable-ui-mb-link-editor-body .mb-link-option-item {
544
+ border-bottom: 1px solid #e9e9e9;
545
+ }
546
+
547
+ .dtable-ui-mb-link-editor-body .mb-link-option-item .mb-option-info {
548
+ display: flex;
549
+ align-items: center;
550
+ }
551
+
552
+ .dtable-ui-mb-link-editor-body .mb-link-option-item .option-name {
553
+ padding: 0 10px;
554
+ max-width: 250px;
555
+ white-space: nowrap;
556
+ overflow: hidden;
557
+ text-overflow: ellipsis;
558
+ background: #eceff4;
559
+ border-radius: 3px;
560
+ }
561
+
562
+ .dtable-ui-mb-link-editor-body .mb-link-option-item .dtable-font {
563
+ font-size: 12px;
564
+ color: #798d99;
565
+ }
566
+ }
567
+
568
+ .dtable-ui-date-editor .dtable-ui-date-editor-container {
569
+ display: flex;
570
+ width: 400px;
571
+ }
572
+
573
+ @media screen and (max-width: 767.8px) {
574
+ .dtable-ui-mb-date-editor-body .mb-date-editor-input {
575
+ display: flex;
576
+ border-top: 1px solid #e9e9e9;
577
+ border-bottom: 1px solid #e9e9e9;
578
+ }
579
+
580
+ .dtable-ui-mb-date-editor-body .mb-date-editor-input .date-input {
581
+ flex: 1;
582
+ background-color: #fff;
583
+ }
584
+
585
+ .dtable-ui-mb-date-editor-body .mb-date-editor-input .date-input .date-input-day {
586
+ background-color: #f5f5f5;
587
+ border: 1px solid #e9e9e9;
588
+ margin: 10px;
589
+ padding: 3px 5px;
590
+ border-radius: 3px;
591
+ }
592
+
593
+ .dtable-ui-mb-date-editor-body .dtable-ui.mb-date-editor-picker {
594
+ display: block;
595
+ position: relative;
596
+ margin-top: 20px;
597
+ line-height: 1.5;
598
+ box-sizing: border-box;
599
+ }
600
+
601
+ .dtable-ui-mb-date-editor-body .mb-date-editor-clear {
602
+ padding: 10px 0;
603
+ margin-top: 20px;
604
+ border-bottom: 1px solid #e9e9e9;
605
+ border-top: 1px solid #e9e9e9;
606
+ text-align: center;
607
+ color: #d27053;
608
+ background-color: #fff;
609
+ }
610
+
611
+ .dtable-ui .am-picker-popup-header .am-picker-popup-item {
612
+ color: #E5A252;
613
+ }
614
+ }
@@ -0,0 +1,4 @@
1
+ .dtable-ui.cell-formatter-container {
2
+ overflow: hidden;
3
+ line-height: 1;
4
+ }