amotify 0.0.65 → 0.0.67

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 (275) hide show
  1. package/dist/amotify.js +3 -2
  2. package/dist/amotify.min.css +2 -2
  3. package/dist/coreVender.js +14 -2
  4. package/dist/node_modules/@fortawesome/free-regular-svg-icons/faCalendarAlt.d.ts +7 -0
  5. package/dist/node_modules/@fortawesome/free-regular-svg-icons/faCalendarDays.d.ts +14 -0
  6. package/dist/node_modules/@fortawesome/free-regular-svg-icons/faClock.d.ts +14 -0
  7. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faAngleDown.d.ts +14 -0
  8. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faAngleLeft.d.ts +14 -0
  9. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faAngleRight.d.ts +14 -0
  10. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faAngleUp.d.ts +14 -0
  11. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faArrowDown.d.ts +14 -0
  12. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faArrowLeft.d.ts +14 -0
  13. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faArrowRight.d.ts +14 -0
  14. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faArrowRotateRight.d.ts +14 -0
  15. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faArrowUp.d.ts +14 -0
  16. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faBars.d.ts +14 -0
  17. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faBarsStaggered.d.ts +14 -0
  18. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCaretDown.d.ts +14 -0
  19. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCaretLeft.d.ts +14 -0
  20. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCaretRight.d.ts +14 -0
  21. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCaretUp.d.ts +14 -0
  22. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCheck.d.ts +14 -0
  23. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCheckCircle.d.ts +7 -0
  24. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faChevronDown.d.ts +14 -0
  25. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faChevronLeft.d.ts +14 -0
  26. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faChevronRight.d.ts +14 -0
  27. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faChevronUp.d.ts +14 -0
  28. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCircleCheck.d.ts +14 -0
  29. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCircleQuestion.d.ts +14 -0
  30. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCloudArrowUp.d.ts +14 -0
  31. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCopy.d.ts +14 -0
  32. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faDownload.d.ts +14 -0
  33. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faEdit.d.ts +7 -0
  34. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faEllipsis.d.ts +14 -0
  35. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faEllipsisH.d.ts +7 -0
  36. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faEllipsisV.d.ts +7 -0
  37. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faEllipsisVertical.d.ts +14 -0
  38. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faExclamation.d.ts +14 -0
  39. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faExclamationTriangle.d.ts +7 -0
  40. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faExternalLinkAlt.d.ts +7 -0
  41. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faEye.d.ts +14 -0
  42. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faFile.d.ts +14 -0
  43. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faFilter.d.ts +14 -0
  44. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faGear.d.ts +14 -0
  45. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faGripVertical.d.ts +14 -0
  46. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faHeart.d.ts +14 -0
  47. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faHome.d.ts +7 -0
  48. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faHouse.d.ts +14 -0
  49. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faImage.d.ts +14 -0
  50. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faLink.d.ts +14 -0
  51. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faLinkSlash.d.ts +14 -0
  52. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faMagnifyingGlass.d.ts +14 -0
  53. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faMinus.d.ts +14 -0
  54. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faPalette.d.ts +14 -0
  55. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faPaperPlane.d.ts +14 -0
  56. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faPen.d.ts +14 -0
  57. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faPenToSquare.d.ts +14 -0
  58. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faPlus.d.ts +14 -0
  59. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faQuestion.d.ts +14 -0
  60. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faQuestionCircle.d.ts +7 -0
  61. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faRedo.d.ts +7 -0
  62. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faRotate.d.ts +14 -0
  63. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faRotateLeft.d.ts +14 -0
  64. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faRotateRight.d.ts +14 -0
  65. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faSearch.d.ts +7 -0
  66. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faShare.d.ts +14 -0
  67. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faStar.d.ts +14 -0
  68. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faTimes.d.ts +7 -0
  69. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faTrashAlt.d.ts +7 -0
  70. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faTrashCan.d.ts +14 -0
  71. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faTriangleExclamation.d.ts +14 -0
  72. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faUpRightFromSquare.d.ts +14 -0
  73. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faUser.d.ts +14 -0
  74. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faXmark.d.ts +14 -0
  75. package/dist/node_modules/@fortawesome/free-solid-svg-icons/faYenSign.d.ts +14 -0
  76. package/dist/node_modules/@fortawesome/react-fontawesome/index.es.d.ts +2 -0
  77. package/dist/node_modules/@remix-run/router/dist/router.d.ts +317 -0
  78. package/dist/node_modules/css-loader/dist/runtime/api.d.ts +2 -0
  79. package/dist/node_modules/css-loader/dist/runtime/noSourceMaps.d.ts +2 -0
  80. package/dist/node_modules/jsmin-front/dist/jsmin.d.ts +3 -0
  81. package/dist/node_modules/prop-types/factoryWithThrowingShims.d.ts +86 -0
  82. package/dist/node_modules/prop-types/index.d.ts +2 -0
  83. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.d.ts +2 -0
  84. package/dist/node_modules/react/cjs/react.production.min.d.ts +116 -0
  85. package/dist/node_modules/react/index.d.ts +2 -0
  86. package/dist/node_modules/react-dom/cjs/react-dom.production.min.d.ts +37 -0
  87. package/dist/node_modules/react-dom/client.d.ts +2 -0
  88. package/dist/node_modules/react-dom/index.d.ts +2 -0
  89. package/dist/node_modules/react-router/dist/index.d.ts +241 -0
  90. package/dist/node_modules/react-router-dom/dist/index.d.ts +139 -0
  91. package/dist/node_modules/scheduler/cjs/scheduler.production.min.d.ts +20 -0
  92. package/dist/node_modules/scheduler/index.d.ts +2 -0
  93. package/dist/src/@atoms.d.ts +4 -0
  94. package/dist/src/@declations/_.d.ts +23 -0
  95. package/dist/src/@declations/amotify.d.ts +1358 -0
  96. package/dist/src/@declations/jsminAmotifyExtension.d.ts +132 -0
  97. package/dist/src/@declations/module.d.ts +1 -0
  98. package/dist/src/@declations/styles.d.ts +145 -0
  99. package/dist/src/@functions.d.ts +12 -0
  100. package/dist/src/@global.d.ts +23 -0
  101. package/dist/src/@jsminAmotifyExtension/_.d.ts +4 -0
  102. package/dist/src/@jsminAmotifyExtension/fetch.d.ts +1 -0
  103. package/dist/src/@jsminAmotifyExtension/formCollect.d.ts +1 -0
  104. package/dist/src/@jsminAmotifyExtension/spreadSheet.d.ts +4 -0
  105. package/dist/src/@jsminAmotifyExtension/variables.d.ts +1 -0
  106. package/dist/src/@molecules.d.ts +23 -0
  107. package/dist/src/@organisms.d.ts +1 -0
  108. package/dist/src/@templates.d.ts +2 -0
  109. package/dist/src/@variables.d.ts +8 -0
  110. package/dist/src/atoms/FAI/parts.d.ts +3 -0
  111. package/dist/src/atoms/Logo/parts.d.ts +2 -0
  112. package/dist/src/atoms/Various/parts.d.ts +11 -0
  113. package/dist/src/config.d.ts +19 -0
  114. package/dist/src/functions/Button/_.d.ts +2 -0
  115. package/dist/src/functions/Cropper/parts.d.ts +2 -0
  116. package/dist/src/functions/Effects/Fade.d.ts +2 -0
  117. package/dist/src/functions/Effects/Ripple.d.ts +1 -0
  118. package/dist/src/functions/Effects/_.d.ts +4 -0
  119. package/dist/src/functions/Input/Chips/Selector.d.ts +2 -0
  120. package/dist/src/functions/Input/Chips/_.d.ts +3 -0
  121. package/dist/src/functions/Input/Contenteditable.d.ts +4 -0
  122. package/dist/src/functions/Input/DigitCharacters.d.ts +4 -0
  123. package/dist/src/functions/Input/File/_.d.ts +3 -0
  124. package/dist/src/functions/Input/Hidden.d.ts +3 -0
  125. package/dist/src/functions/Input/List/_.d.ts +4 -0
  126. package/dist/src/functions/Input/RichSelect/_.d.ts +4 -0
  127. package/dist/src/functions/Input/Segmented/_.d.ts +2 -0
  128. package/dist/src/functions/Input/Select/_.d.ts +4 -0
  129. package/dist/src/functions/Input/Slider/_.d.ts +4 -0
  130. package/dist/src/functions/Input/Switch/_.d.ts +4 -0
  131. package/dist/src/functions/Input/Text.d.ts +8 -0
  132. package/dist/src/functions/Input/TextArea.d.ts +4 -0
  133. package/dist/src/functions/Input/Time/Picker.d.ts +4 -0
  134. package/dist/src/functions/Input/Time/_.d.ts +5 -0
  135. package/dist/src/functions/Input/_.d.ts +6 -0
  136. package/dist/src/functions/Input/core.d.ts +36 -0
  137. package/dist/src/functions/Inputs/_.d.ts +4 -0
  138. package/dist/src/functions/Inputs/text.d.ts +3 -0
  139. package/dist/src/functions/Layout/PageNotFound.d.ts +2 -0
  140. package/dist/src/functions/Layout/PageRouter.d.ts +4 -0
  141. package/dist/src/functions/Layout/PageViewController/parts.d.ts +4 -0
  142. package/dist/src/functions/Layout/Plate.d.ts +3 -0
  143. package/dist/src/functions/Layout/RootViewController/parts.d.ts +2 -0
  144. package/dist/src/functions/Layout/SwipeView/parts.d.ts +5 -0
  145. package/dist/src/functions/Layout/TabBar.d.ts +4 -0
  146. package/dist/src/functions/Layout/_.d.ts +3 -0
  147. package/dist/src/functions/Loader/corner.d.ts +3 -0
  148. package/dist/src/functions/Loader/mini.d.ts +7 -0
  149. package/dist/src/functions/Loader/parts.d.ts +4 -0
  150. package/dist/src/functions/Loader/top.d.ts +3 -0
  151. package/dist/src/functions/Sheet/parts.d.ts +3 -0
  152. package/dist/src/functions/SnackBar/parts.d.ts +3 -0
  153. package/dist/src/functions/Table/Data/parts.d.ts +6 -0
  154. package/dist/src/functions/Table/Drag/parts.d.ts +4 -0
  155. package/dist/src/functions/Table/Normal/parts.d.ts +3 -0
  156. package/dist/src/functions/Table/_.d.ts +10 -0
  157. package/dist/src/functions/Tooltips/parts.d.ts +3 -0
  158. package/dist/src/global/LaunchReactApplication.d.ts +3 -0
  159. package/dist/src/global/styleConverter.d.ts +3 -0
  160. package/dist/src/launch.d.ts +10 -0
  161. package/dist/src/molecules/Accordion/parts.d.ts +3 -0
  162. package/dist/src/molecules/LinkifyText/parts.d.ts +3 -0
  163. package/dist/src/molecules/List.d.ts +3 -0
  164. package/dist/src/templates/PlayGround/parts.d.ts +2 -0
  165. package/package.json +10 -10
  166. package/tsconfig.json +14 -7
  167. package/@types/_.tsx +0 -7
  168. package/@types/amot.tsx +0 -355
  169. package/@types/fn.tsx +0 -1280
  170. package/@types/jsminAmotifyExtension.tsx +0 -137
  171. package/@types/module.tsx +0 -1
  172. package/@types/state.tsx +0 -231
  173. package/src/@atoms.tsx +0 -34
  174. package/src/@functions.tsx +0 -29
  175. package/src/@global.tsx +0 -145
  176. package/src/@jsminAmotifyExtension/_.tsx +0 -4
  177. package/src/@jsminAmotifyExtension/fetch.tsx +0 -110
  178. package/src/@jsminAmotifyExtension/formCollect.tsx +0 -94
  179. package/src/@jsminAmotifyExtension/spreadSheet.tsx +0 -165
  180. package/src/@jsminAmotifyExtension/variables.tsx +0 -137
  181. package/src/@molecules.tsx +0 -96
  182. package/src/@organisms.tsx +0 -1
  183. package/src/@reactPacks/reactProduction@18.2.0.js +0 -79
  184. package/src/@reactPacks/reactRouterDomProduction@18.2.0.js +0 -31
  185. package/src/@styles/@app.scss +0 -4
  186. package/src/@styles/UniStyling.scss +0 -1028
  187. package/src/@styles/init.scss +0 -94
  188. package/src/@styles/props.scss +0 -109
  189. package/src/@styles/styleSet.scss +0 -38
  190. package/src/@styles/themeColor.scss +0 -71
  191. package/src/@styles/var.scss +0 -182
  192. package/src/@templates.tsx +0 -7
  193. package/src/@variables.tsx +0 -74
  194. package/src/atoms/FAI/parts.tsx +0 -139
  195. package/src/atoms/Logo/parts.tsx +0 -335
  196. package/src/atoms/Logo/style.module.scss +0 -96
  197. package/src/atoms/Various/parts.tsx +0 -159
  198. package/src/atoms/Various/style.module.scss +0 -46
  199. package/src/config.tsx +0 -191
  200. package/src/functions/Button/_.tsx +0 -331
  201. package/src/functions/Button/style.module.scss +0 -157
  202. package/src/functions/Cropper/parts.tsx +0 -1084
  203. package/src/functions/Cropper/style.module.scss +0 -64
  204. package/src/functions/Effects/Fade.tsx +0 -76
  205. package/src/functions/Effects/Ripple.tsx +0 -141
  206. package/src/functions/Effects/_.tsx +0 -33
  207. package/src/functions/Effects/style.module.scss +0 -91
  208. package/src/functions/Input/Chips/Selector.tsx +0 -445
  209. package/src/functions/Input/Chips/_.tsx +0 -289
  210. package/src/functions/Input/Chips/style.module.scss +0 -6
  211. package/src/functions/Input/Contenteditable.tsx +0 -114
  212. package/src/functions/Input/DigitCharacters.tsx +0 -235
  213. package/src/functions/Input/File/_.tsx +0 -553
  214. package/src/functions/Input/File/style.module.scss +0 -34
  215. package/src/functions/Input/Hidden.tsx +0 -21
  216. package/src/functions/Input/List/_.tsx +0 -383
  217. package/src/functions/Input/List/style.module.scss +0 -84
  218. package/src/functions/Input/RichSelect/_.tsx +0 -230
  219. package/src/functions/Input/RichSelect/style.module.scss +0 -11
  220. package/src/functions/Input/Segmented/_.tsx +0 -246
  221. package/src/functions/Input/Segmented/style.module.scss +0 -81
  222. package/src/functions/Input/Select/_.tsx +0 -218
  223. package/src/functions/Input/Select/style.module.scss +0 -11
  224. package/src/functions/Input/Slider/_.tsx +0 -524
  225. package/src/functions/Input/Slider/style.module.scss +0 -67
  226. package/src/functions/Input/Switch/_.tsx +0 -176
  227. package/src/functions/Input/Switch/style.module.scss +0 -18
  228. package/src/functions/Input/Text.tsx +0 -487
  229. package/src/functions/Input/TextArea.tsx +0 -109
  230. package/src/functions/Input/Time/Picker.tsx +0 -1361
  231. package/src/functions/Input/Time/_.tsx +0 -749
  232. package/src/functions/Input/Time/style.module.scss +0 -79
  233. package/src/functions/Input/_.tsx +0 -881
  234. package/src/functions/Input/core.tsx +0 -473
  235. package/src/functions/Input/style.module.scss +0 -102
  236. package/src/functions/Inputs/_.tsx +0 -5
  237. package/src/functions/Inputs/style.module.scss +0 -15
  238. package/src/functions/Inputs/text.tsx +0 -53
  239. package/src/functions/Inputs/types.d.ts +0 -13
  240. package/src/functions/Layout/PageNotFound.tsx +0 -78
  241. package/src/functions/Layout/PageRouter.tsx +0 -89
  242. package/src/functions/Layout/PageViewController/parts.tsx +0 -27
  243. package/src/functions/Layout/Plate.tsx +0 -30
  244. package/src/functions/Layout/RootViewController/parts.tsx +0 -300
  245. package/src/functions/Layout/RootViewController/style.module.scss +0 -23
  246. package/src/functions/Layout/SwipeView/parts.tsx +0 -375
  247. package/src/functions/Layout/SwipeView/style.module.scss +0 -20
  248. package/src/functions/Layout/TabBar.tsx +0 -60
  249. package/src/functions/Layout/_.tsx +0 -20
  250. package/src/functions/Loader/corner.tsx +0 -74
  251. package/src/functions/Loader/mini.tsx +0 -114
  252. package/src/functions/Loader/parts.tsx +0 -103
  253. package/src/functions/Loader/style.module.scss +0 -223
  254. package/src/functions/Loader/top.tsx +0 -84
  255. package/src/functions/Sheet/parts.tsx +0 -994
  256. package/src/functions/Sheet/style.module.scss +0 -208
  257. package/src/functions/SnackBar/parts.tsx +0 -215
  258. package/src/functions/SnackBar/style.module.scss +0 -25
  259. package/src/functions/Table/Data/parts.tsx +0 -965
  260. package/src/functions/Table/Drag/parts.tsx +0 -442
  261. package/src/functions/Table/Normal/parts.tsx +0 -124
  262. package/src/functions/Table/_.tsx +0 -177
  263. package/src/functions/Table/style.module.scss +0 -93
  264. package/src/functions/Tooltips/parts.tsx +0 -53
  265. package/src/global/LaunchReactApplication.tsx +0 -40
  266. package/src/global/styleConverter.tsx +0 -465
  267. package/src/launch.tsx +0 -117
  268. package/src/molecules/Accordion/parts.tsx +0 -146
  269. package/src/molecules/Accordion/style.module.scss +0 -13
  270. package/src/molecules/LinkifyText/parts.tsx +0 -52
  271. package/src/molecules/List.tsx +0 -31
  272. package/src/preload.tsx +0 -31
  273. package/src/templates/PlayGround/parts.tsx +0 -96
  274. package/src/templates/PlayGround/style.module.scss +0 -38
  275. package/webpack.config.js +0 -146
@@ -1,177 +0,0 @@
1
- import {
2
- StyleConverter,
3
- React
4
- } from '@global'
5
-
6
- import {
7
- Box,
8
- FAI
9
- } from '@atoms'
10
-
11
- export const Comps: amotify.fn.Tables.CompsMethods = {
12
- Table: ( params ) => {
13
- let Params = StyleConverter.ToClassName( params )
14
- return <table
15
- { ...Params }
16
- border={ Params.border as any }
17
- />
18
- },
19
- Head: ( params ) => ( <thead { ...StyleConverter.ToClassName( params ) } /> ),
20
- Body: ( params ) => ( <tbody { ...StyleConverter.ToClassName( params ) } /> ),
21
- Row: ( params ) => ( <tr { ...StyleConverter.ToClassName( params ) } /> ),
22
-
23
- TH: ( params ) => ( <th { ...StyleConverter.ToClassName( params ) } /> ),
24
- TD: ( params ) => ( <td { ...StyleConverter.ToClassName( params ) } /> ),
25
-
26
- RightIndicator: {
27
- type: 'td',
28
- unitWidth: 4,
29
- // data: '',
30
- children: <FAI.AngleRight
31
- fontColor={ 'theme' }
32
- fontSize={ '4.thirdTitle' }
33
- />
34
- }
35
- }
36
-
37
- import { NormalTable } from './Normal/parts'
38
- import {
39
- DataTable,
40
- DataFNs,
41
- DataComps
42
- } from './Data/parts'
43
- import { DragTable } from './Drag/parts'
44
-
45
- import style from './style.module.scss'
46
-
47
- const Wrapper: React.FC<amotify.fn.Tables.Uni.Params & {
48
- type: amotify.fn.Tables.Types
49
- }> = ( params ) => {
50
- let {
51
- tone,
52
- type,
53
- } = params
54
- params = { ...params }
55
- params.tableID = params.tableID || $.uuidGen()
56
- tone = tone || 'auto'
57
-
58
- if ( tone == 'auto' ) {
59
- if ( type == 'drag' ) {
60
- tone = 'rowBorder'
61
- } else {
62
- tone = 'border'
63
- }
64
- }
65
-
66
- let Params = {
67
- ...tone != 'plain' ? {
68
- backgroundColor: '1.layer.base',
69
- borderRadius: '1.tone.primary',
70
- } as amotifyUniStyleParams : {},
71
- ...params,
72
- cellStyles: {
73
- padding: '3/4',
74
- backgroundColor: '1.layer.base',
75
- transition: 'short',
76
- textAlign: 'center',
77
- ...DefaultCellStyles( type,tone! ),
78
- ...params.cellStyles
79
- },
80
- tone
81
- }
82
-
83
- let {
84
- className,
85
- style: freeCSS,
86
- ...others
87
- } = StyleConverter.ToClassName( Params as any )
88
-
89
- let ClassName = [
90
- className,
91
- style.Wrap,
92
- style[ 'TableType_' + type ],
93
- style[ 'RowClickable_' + !!( params as any ).onRowClick ]
94
- ].join( ' ' )
95
-
96
- let TableComponent = {
97
- 'normal': NormalTable,
98
- 'data': DataTable,
99
- 'drag': DragTable,
100
- 'spread': ''
101
- }[ type ]
102
-
103
- return <Box
104
- className={ ClassName }
105
- style={ freeCSS }
106
- >
107
- <TableComponent { ...others as any } />
108
- </Box>
109
- }
110
-
111
- let DataComponent: any = ( props: any ) => ( <Wrapper type='data' { ...props } /> )
112
- Object.entries( DataFNs ).forEach( ( [ key,value ] ) => {
113
- DataComponent[ key ] = value
114
- } )
115
- Object.entries( DataComps ).forEach( ( [ key,value ] ) => {
116
- DataComponent[ key ] = value
117
- } )
118
-
119
- export const Table: amotify.fn.Tables.Methods = {
120
- Normal: ( props ) => ( <Wrapper type='normal' { ...props } /> ),
121
- Data: DataComponent as amotify.fn.Tables.Data.Methods,
122
- Drag: ( props ) => ( <Wrapper type='drag' { ...props } /> ),
123
- Spread: () => ( <>Table.Spread ( in Progress )</> ),
124
-
125
- Comps
126
- }
127
-
128
- export const DefaultCellStyles = ( type: amotify.fn.Tables.Types,tone: amotify.fn.Tables.Tones ) => {
129
- if ( tone == 'plain' ) return {}
130
-
131
- let Styles: amotifyUniStyleParams = {}
132
- if ( type == 'drag' ) {
133
- Styles.padding = 1
134
- }
135
-
136
- if ( [ 'border','rowBorder','cellBorder' ].includes( tone ) ) {
137
- Styles.borderBottom = '2.normal'
138
- }
139
-
140
- if ( [ 'border','cellBorder' ].includes( tone ) ) {
141
- Styles.borderRight = '2.normal'
142
- }
143
-
144
- return Styles
145
- }
146
-
147
- export const DefaultCellSystemStyles = ( args: {
148
- top: boolean
149
- bottom: boolean
150
- left: boolean
151
- right: boolean
152
- } ) => {
153
- let Styles: amotifyUniStyleParams = {}
154
- if ( args.right ) {
155
- Styles.borderRight = 'unset'
156
- }
157
-
158
- if ( args.top ) {
159
- if ( args.left ) {
160
- Styles.borderTopLeftRadius = 'inherit'
161
- }
162
- if ( args.right ) {
163
- Styles.borderTopRightRadius = 'inherit'
164
- }
165
- }
166
- if ( args.bottom ) {
167
- Styles.borderBottom = 'unset'
168
- if ( args.left ) {
169
- Styles.borderBottomLeftRadius = 'inherit'
170
- }
171
- if ( args.right ) {
172
- Styles.borderBottomRightRadius = 'inherit'
173
- }
174
- }
175
-
176
- return Styles
177
- }
@@ -1,93 +0,0 @@
1
- @use '@props' as *;
2
- @use'@styleSet' as *;
3
-
4
- .Wrap {
5
- &.RowClickable_true {
6
- .Row {
7
- &.BodyRow:not(.DataNotFound) {
8
- cursor: pointer;
9
- &:hover .Cell {
10
- background-color: $color-layer2;
11
- }
12
- &:active .Cell {
13
- background-color: $color-layer3;
14
- }
15
- }
16
- }
17
- }
18
- .Table {
19
- @include pureTable();
20
- height: 100%;
21
- border-radius: inherit;
22
- .Row {
23
- border-radius: inherit;
24
- }
25
- }
26
- }
27
- .TableType_ {
28
- &drag {
29
- * {
30
- @include DisableduserSelect();
31
- }
32
- .DraggerOrigin {
33
- .Cell {
34
- transition: $animation-time-middle;
35
- background-color: $color-layer4;
36
- opacity: .8;
37
- pointer-events: none;
38
- }
39
- }
40
- .DragableButton {
41
- cursor: grab;
42
- &:hover {
43
- color: $color-theme;
44
- }
45
- &:active {
46
- color: $color-theme;
47
- }
48
- }
49
- }
50
- &data {
51
- .Console {
52
- width: 100%;
53
- border-bottom: $border-normal;
54
- position: relative;
55
- z-index: 2;
56
- flex: none;
57
- + .TableBase {
58
- border-top-left-radius: 0;
59
- border-top-right-radius: 0;
60
- }
61
- }
62
- .TableBase {
63
- border-radius: inherit;
64
- .Table {
65
- border-radius: inherit;
66
- .HeadRow {
67
- border-radius: inherit;
68
- position: relative;
69
- z-index: 2 !important;
70
- min-width: 100%;
71
- .Cell {
72
- .FilterRegion {
73
- font-size: inherit;
74
- .Filtering_true {
75
- border: none;
76
- background-color: $color-theme !important;
77
- color: #fff !important;
78
- box-shadow: $shadow2;
79
- }
80
- }
81
- }
82
- }
83
- .BodyRow {
84
- position: relative;
85
- z-index: 1;
86
- }
87
- }
88
- }
89
- }
90
- }
91
- .Cell {
92
- font-weight: normal;
93
- }
@@ -1,53 +0,0 @@
1
- import React from 'react'
2
- import {
3
- Box
4
- } from '@atoms'
5
- import {
6
- Sheet
7
- } from '@fn'
8
-
9
- const Tooltips: amotify.fn.Tooltips.Methods = {
10
- __memoryID: $.uuidGen(),
11
- open: ( params ) => {
12
- let {
13
- tipsID = $.uuidGen(),
14
- tipsGroups = [],
15
- ...sheetParams
16
- } = params
17
-
18
- Sheet.open( {
19
- sheetID: tipsID!,
20
- sheetGroups: [
21
- 'tooltips',
22
- ...tipsGroups,
23
- ],
24
- close_option: {
25
- aroundClick: true,
26
- elementBlur: params.parent,
27
- escapeKeyDown: true,
28
- pageTransit: true,
29
- ...params.close_option,
30
- },
31
- type: 'custom',
32
- ...sheetParams
33
- } )
34
- },
35
- close: ( tipsID ) => {
36
- Sheet.close( tipsID )
37
- },
38
- closeALL: () => {
39
- Sheet.closeGroup( 'tooltips' )
40
- },
41
- Comps: {
42
- Body: ( params ) => ( <Box
43
- padding={ '1/2' }
44
- backgroundColor='dark'
45
- borderRadius={ '2.tone.secondary' }
46
- fontColor='white'
47
- boxShadow={ '0.normal' }
48
- { ...params }
49
- /> )
50
- }
51
- }
52
-
53
- export { Tooltips }
@@ -1,40 +0,0 @@
1
- import { launchID } from '@global'
2
- import React from 'react'
3
- import ReactDOMCLient from 'react-dom/client'
4
- import * as ReactRouterDom from 'react-router-dom'
5
-
6
- export const LaunchReactApplication = ( props: amotify.global.LaunchReactApplicationInput ) => {
7
- let {
8
- baseElement = '#' + launchID + ' .AMOTIFY_be_root',
9
- reactElement,
10
- nonRouter = false,
11
- isRoot = true,
12
- appearances
13
- } = props
14
- let base = $( baseElement )
15
- // let base = $( '#' + launchID + ' .AMOTIFY_be_root' )
16
-
17
- if ( !base[ 0 ] || !reactElement ) return
18
- if ( appearances ) {
19
- let {
20
- roundness,
21
- tone,
22
- themeColor,
23
- darkMode
24
- } = appearances
25
-
26
- if ( $.is.exist( roundness ) ) amotify.config.update.roundness( roundness! )
27
- if ( $.is.exist( tone ) ) amotify.config.update.tone( tone! )
28
- if ( $.is.exist( themeColor ) ) amotify.config.update.themeColor( themeColor! )
29
- if ( $.is.exist( darkMode ) ) amotify.config.update.darkMode( darkMode! )
30
- }
31
-
32
- let reactDom = nonRouter ? reactElement : <ReactRouterDom.BrowserRouter children={ reactElement } />
33
-
34
- if ( isRoot ) {
35
- $( 'body' ).addClass( 'AMOTIFY_be_body' )
36
- base.addClass( 'AMOTIFY_be AMOTIFY_be_root AMOTIFY_be_origin' )
37
- }
38
-
39
- ReactDOMCLient.createRoot( base[ 0 ] ).render( <>{ reactDom }</> )
40
- }