tntd 3.0.0-beta.19 → 3.0.0-beta.20

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 (157) hide show
  1. package/es/array-input/index.js +57 -42
  2. package/es/array-input/index.js.map +1 -1
  3. package/es/array-input/index.less +4 -1
  4. package/es/locale/en_US.js +3 -0
  5. package/es/locale/en_US.js.map +1 -1
  6. package/es/locale/zh_CN.js +3 -0
  7. package/es/locale/zh_CN.js.map +1 -1
  8. package/es/table/expand.less +12 -14
  9. package/es/table/hooks/use-expand-fixed.js +4 -2
  10. package/es/table/hooks/use-expand-fixed.js.map +1 -1
  11. package/es/table/table.js +15 -82
  12. package/es/table/table.js.map +1 -1
  13. package/es/tntd-action/Action.js +1 -1
  14. package/es/tntd-action/Action.js.map +1 -1
  15. package/lib/array-input/index.d.ts +1 -12
  16. package/lib/array-input/index.d.ts.map +1 -1
  17. package/lib/array-input/index.js +62 -55
  18. package/lib/array-input/index.js.map +1 -1
  19. package/lib/array-input/index.less +4 -1
  20. package/lib/locale/default.d.ts +3 -0
  21. package/lib/locale/default.d.ts.map +1 -1
  22. package/lib/locale/en_US.d.ts +3 -0
  23. package/lib/locale/en_US.d.ts.map +1 -1
  24. package/lib/locale/en_US.js +3 -0
  25. package/lib/locale/en_US.js.map +1 -1
  26. package/lib/locale/zh_CN.d.ts +3 -0
  27. package/lib/locale/zh_CN.d.ts.map +1 -1
  28. package/lib/locale/zh_CN.js +3 -0
  29. package/lib/locale/zh_CN.js.map +1 -1
  30. package/lib/table/expand.less +12 -14
  31. package/lib/table/hooks/use-expand-fixed.d.ts.map +1 -1
  32. package/lib/table/hooks/use-expand-fixed.js +6 -4
  33. package/lib/table/hooks/use-expand-fixed.js.map +1 -1
  34. package/lib/table/table.d.ts +1 -2
  35. package/lib/table/table.d.ts.map +1 -1
  36. package/lib/table/table.js +15 -78
  37. package/lib/table/table.js.map +1 -1
  38. package/lib/tntd-action/Action.d.ts +1 -1
  39. package/lib/tntd-action/Action.js +1 -1
  40. package/lib/tntd-action/Action.js.map +1 -1
  41. package/package.json +2 -2
  42. package/es/array-input/1.png +0 -1
  43. package/es/array-input/111.gif +0 -0
  44. package/es/array-input/icon.js +0 -25
  45. package/es/array-input/icon.js.map +0 -1
  46. package/es/query-form/Field/Composition/FieldPopover.js +0 -328
  47. package/es/query-form/Field/Composition/FieldPopover.js.map +0 -1
  48. package/es/query-form/Field/Composition/FieldPopover.less +0 -35
  49. package/es/query-form/Field/Composition/Select.js +0 -107
  50. package/es/query-form/Field/Composition/Select.js.map +0 -1
  51. package/es/query-form/Field/Composition/index.js +0 -210
  52. package/es/query-form/Field/Composition/index.js.map +0 -1
  53. package/es/query-form/Field/Composition/index.less +0 -114
  54. package/es/query-form/Field/Composition/utils.js +0 -132
  55. package/es/query-form/Field/Composition/utils.js.map +0 -1
  56. package/es/query-form2/Field/Checkbox.js +0 -23
  57. package/es/query-form2/Field/Checkbox.js.map +0 -1
  58. package/es/query-form2/Field/Composition/FieldPopover.js +0 -308
  59. package/es/query-form2/Field/Composition/FieldPopover.js.map +0 -1
  60. package/es/query-form2/Field/Composition/FieldPopover.less +0 -35
  61. package/es/query-form2/Field/Composition/Select.js +0 -104
  62. package/es/query-form2/Field/Composition/Select.js.map +0 -1
  63. package/es/query-form2/Field/Composition/index.js +0 -299
  64. package/es/query-form2/Field/Composition/index.js.map +0 -1
  65. package/es/query-form2/Field/Composition/index.less +0 -114
  66. package/es/query-form2/Field/Composition/utils.js +0 -19
  67. package/es/query-form2/Field/Composition/utils.js.map +0 -1
  68. package/es/query-form2/Field/Select.js +0 -59
  69. package/es/query-form2/Field/Select.js.map +0 -1
  70. package/es/query-form2/Field/SelectInput.js +0 -87
  71. package/es/query-form2/Field/SelectInput.js.map +0 -1
  72. package/es/query-form2/Field/fieldsMap.js +0 -28
  73. package/es/query-form2/Field/fieldsMap.js.map +0 -1
  74. package/es/query-form2/Field/index.js +0 -117
  75. package/es/query-form2/Field/index.js.map +0 -1
  76. package/es/query-form2/createActions.js +0 -47
  77. package/es/query-form2/createActions.js.map +0 -1
  78. package/es/query-form2/index.js +0 -345
  79. package/es/query-form2/index.js.map +0 -1
  80. package/es/query-form2/index.less +0 -136
  81. package/es/query-form2/useForm.js +0 -6
  82. package/es/query-form2/useForm.js.map +0 -1
  83. package/lib/array-input/1.png +0 -1
  84. package/lib/array-input/111.gif +0 -0
  85. package/lib/array-input/icon.d.ts +0 -4
  86. package/lib/array-input/icon.d.ts.map +0 -1
  87. package/lib/array-input/icon.js +0 -32
  88. package/lib/array-input/icon.js.map +0 -1
  89. package/lib/query-form/Field/Composition/FieldPopover.d.ts +0 -19
  90. package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +0 -1
  91. package/lib/query-form/Field/Composition/FieldPopover.js +0 -368
  92. package/lib/query-form/Field/Composition/FieldPopover.js.map +0 -1
  93. package/lib/query-form/Field/Composition/FieldPopover.less +0 -35
  94. package/lib/query-form/Field/Composition/Select.d.ts +0 -4
  95. package/lib/query-form/Field/Composition/Select.d.ts.map +0 -1
  96. package/lib/query-form/Field/Composition/Select.js +0 -131
  97. package/lib/query-form/Field/Composition/Select.js.map +0 -1
  98. package/lib/query-form/Field/Composition/index.d.ts +0 -10
  99. package/lib/query-form/Field/Composition/index.d.ts.map +0 -1
  100. package/lib/query-form/Field/Composition/index.js +0 -257
  101. package/lib/query-form/Field/Composition/index.js.map +0 -1
  102. package/lib/query-form/Field/Composition/index.less +0 -114
  103. package/lib/query-form/Field/Composition/utils.d.ts +0 -22
  104. package/lib/query-form/Field/Composition/utils.d.ts.map +0 -1
  105. package/lib/query-form/Field/Composition/utils.js +0 -147
  106. package/lib/query-form/Field/Composition/utils.js.map +0 -1
  107. package/lib/query-form2/Field/Checkbox.d.ts +0 -8
  108. package/lib/query-form2/Field/Checkbox.d.ts.map +0 -1
  109. package/lib/query-form2/Field/Checkbox.js +0 -28
  110. package/lib/query-form2/Field/Checkbox.js.map +0 -1
  111. package/lib/query-form2/Field/Composition/FieldPopover.d.ts +0 -19
  112. package/lib/query-form2/Field/Composition/FieldPopover.d.ts.map +0 -1
  113. package/lib/query-form2/Field/Composition/FieldPopover.js +0 -347
  114. package/lib/query-form2/Field/Composition/FieldPopover.js.map +0 -1
  115. package/lib/query-form2/Field/Composition/FieldPopover.less +0 -35
  116. package/lib/query-form2/Field/Composition/Select.d.ts +0 -4
  117. package/lib/query-form2/Field/Composition/Select.d.ts.map +0 -1
  118. package/lib/query-form2/Field/Composition/Select.js +0 -128
  119. package/lib/query-form2/Field/Composition/Select.js.map +0 -1
  120. package/lib/query-form2/Field/Composition/index.d.ts +0 -14
  121. package/lib/query-form2/Field/Composition/index.d.ts.map +0 -1
  122. package/lib/query-form2/Field/Composition/index.js +0 -349
  123. package/lib/query-form2/Field/Composition/index.js.map +0 -1
  124. package/lib/query-form2/Field/Composition/index.less +0 -114
  125. package/lib/query-form2/Field/Composition/utils.d.ts +0 -6
  126. package/lib/query-form2/Field/Composition/utils.d.ts.map +0 -1
  127. package/lib/query-form2/Field/Composition/utils.js +0 -27
  128. package/lib/query-form2/Field/Composition/utils.js.map +0 -1
  129. package/lib/query-form2/Field/Select.d.ts +0 -4
  130. package/lib/query-form2/Field/Select.d.ts.map +0 -1
  131. package/lib/query-form2/Field/Select.js +0 -80
  132. package/lib/query-form2/Field/Select.js.map +0 -1
  133. package/lib/query-form2/Field/SelectInput.d.ts +0 -4
  134. package/lib/query-form2/Field/SelectInput.d.ts.map +0 -1
  135. package/lib/query-form2/Field/SelectInput.js +0 -100
  136. package/lib/query-form2/Field/SelectInput.js.map +0 -1
  137. package/lib/query-form2/Field/fieldsMap.d.ts +0 -27
  138. package/lib/query-form2/Field/fieldsMap.d.ts.map +0 -1
  139. package/lib/query-form2/Field/fieldsMap.js +0 -35
  140. package/lib/query-form2/Field/fieldsMap.js.map +0 -1
  141. package/lib/query-form2/Field/index.d.ts +0 -14
  142. package/lib/query-form2/Field/index.d.ts.map +0 -1
  143. package/lib/query-form2/Field/index.js +0 -147
  144. package/lib/query-form2/Field/index.js.map +0 -1
  145. package/lib/query-form2/createActions.d.ts +0 -14
  146. package/lib/query-form2/createActions.d.ts.map +0 -1
  147. package/lib/query-form2/createActions.js +0 -54
  148. package/lib/query-form2/createActions.js.map +0 -1
  149. package/lib/query-form2/index.d.ts +0 -36
  150. package/lib/query-form2/index.d.ts.map +0 -1
  151. package/lib/query-form2/index.js +0 -385
  152. package/lib/query-form2/index.js.map +0 -1
  153. package/lib/query-form2/index.less +0 -136
  154. package/lib/query-form2/useForm.d.ts +0 -13
  155. package/lib/query-form2/useForm.d.ts.map +0 -1
  156. package/lib/query-form2/useForm.js +0 -13
  157. package/lib/query-form2/useForm.js.map +0 -1
@@ -1,136 +0,0 @@
1
- .tnt-queryform {
2
- display: flex;
3
-
4
- &-extra {
5
- line-height: 32px;
6
- margin-left: @margin-sm;
7
- & > * {
8
- margin-left: @margin-xs;
9
- }
10
- }
11
-
12
- &-actions {
13
- align-items: center;
14
- display: inline-block;
15
- height: 32px;
16
- line-height: 32px;
17
- position: absolute;
18
- right: 0;
19
-
20
- & > *:not(.expand-link) {
21
- margin-right: 10px;
22
- }
23
- & > .expand-link {
24
- padding: 0;
25
- margin-right: 0;
26
- }
27
- & > .ant-badge {
28
- .tnt-icon {
29
- margin-right: @margin-xs;
30
- }
31
- }
32
- }
33
-
34
- .ant-form {
35
- display: inline-block;
36
- margin-bottom: @margin-sm;
37
- display: flex;
38
- flex: 1;
39
- &.ant-form-inline {
40
- flex-wrap: unset;
41
- position: relative;
42
- }
43
-
44
- & > div:nth-child(1) {
45
- height: 32px;
46
- overflow: hidden;
47
- .ant-form-item-label {
48
- label {
49
- // bottom: 4px;
50
- }
51
- }
52
- }
53
-
54
- &.expanded {
55
- & > div:nth-child(1) {
56
- height: auto !important;
57
- }
58
- }
59
-
60
- &.showMore {
61
- & > div:nth-child(1) {
62
- .ant-form-item {
63
- margin-bottom: @margin-sm;
64
- }
65
- }
66
- }
67
-
68
- & > div:nth-child(2) {
69
- display: flex;
70
- }
71
-
72
- &.ant-form-inline .ant-form-item {
73
- margin-right: 10px;
74
- display: inline-block;
75
- }
76
-
77
- .ant-form-item-control {
78
- // min-width: 160px;
79
- line-height: unset;
80
- .ant-calendar-picker-input {
81
- padding: 0 @padding-sm;
82
- }
83
- .ant-form-item-children {
84
- & > .ant-input,
85
- & > .ant-input-affix-wrapper {
86
- width: 160px;
87
- // width: 200px;
88
- }
89
- }
90
- }
91
- }
92
-
93
- &-drawer {
94
- margin-top: @margin-xxl;
95
- &.large-size {
96
- margin-top: 60px;
97
- }
98
-
99
- &.ant-drawer.ant-drawer-open {
100
- .ant-drawer-mask {
101
- opacity: 0;
102
- background: unset;
103
- }
104
- }
105
- .ant-drawer-body {
106
- .ant-form-item {
107
- display: block;
108
- margin-right: 0;
109
- margin-bottom: @margin-md;
110
- width: 100%;
111
- }
112
- .ant-form-item-label {
113
- display: block;
114
- text-align: left;
115
- line-height: 22px;
116
- margin-bottom: 10px;
117
- }
118
- .ant-form-item-control-wrapper,
119
- .ant-form-item-control,
120
- .ant-calendar-picker,
121
- .ant-input {
122
- min-width: 100%;
123
- width: 100%;
124
- }
125
-
126
- & > .ant-btn {
127
- display: block;
128
- width: 100%;
129
- margin-bottom: 10px;
130
- &.ant-btn-primary {
131
- margin-top: @margin-md;
132
- }
133
- }
134
- }
135
- }
136
- }
@@ -1,13 +0,0 @@
1
- export default function useForm(): {
2
- setData(key: any, value: any): void;
3
- getData(key: any): void;
4
- setValues(values: any): void;
5
- getValues(): {};
6
- resetValues(): void;
7
- setValue(name: any, value: any): void;
8
- getValue(name: any): any;
9
- on: (eventName: any, callback: any) => void;
10
- emit: (...args: any[]) => void;
11
- off: (...args: any[]) => void;
12
- }[];
13
- //# sourceMappingURL=useForm.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../src/query-form2/useForm.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;IAIC"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = useForm;
7
- var _react = require("react");
8
- var _createActions = _interopRequireDefault(require("./createActions"));
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
- function useForm() {
11
- var form = (0, _react.useRef)((0, _createActions["default"])());
12
- return [form.current];
13
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"useForm.js","sourceRoot":"","sources":["../../src/query-form2/useForm.js"],"names":[],"mappings":";;;;;AAAA,iCAA8B;AAC9B,oEAA2C;AAE3C,SAAwB,OAAO;IAC7B,MAAM,IAAI,GAAG,IAAA,cAAM,EAAC,IAAA,uBAAa,GAAE,CAAC,CAAA;IAEpC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;AACvB,CAAC;AAJD,0BAIC","sourcesContent":["import { useRef } from 'react'\nimport createActions from './createActions'\n\nexport default function useForm() {\n const form = useRef(createActions())\n\n return [form.current]\n}\n"]}