tntd 2.8.35 → 2.8.36

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 (137) hide show
  1. package/es/query-form/Field/SelectInput.js +14 -3
  2. package/es/query-form/Field/SelectInput.js.map +1 -1
  3. package/es/query-form/Field/index.js +1 -0
  4. package/es/query-form/Field/index.js.map +1 -1
  5. package/lib/query-form/Field/SelectInput.d.ts.map +1 -1
  6. package/lib/query-form/Field/SelectInput.js +14 -3
  7. package/lib/query-form/Field/SelectInput.js.map +1 -1
  8. package/lib/query-form/Field/index.d.ts.map +1 -1
  9. package/lib/query-form/Field/index.js +1 -0
  10. package/lib/query-form/Field/index.js.map +1 -1
  11. package/package.json +1 -1
  12. package/CHANGELOG.json +0 -1034
  13. package/CHANGELOG.md +0 -605
  14. package/lib/alert/alert.d.ts +0 -12
  15. package/lib/alert/alert.d.ts.map +0 -1
  16. package/lib/alert/alert.js +0 -147
  17. package/lib/alert/alert.js.map +0 -1
  18. package/lib/alert/alert.less +0 -128
  19. package/lib/cascader/cascader.d.ts +0 -10
  20. package/lib/cascader/cascader.d.ts.map +0 -1
  21. package/lib/cascader/cascader.js +0 -84
  22. package/lib/cascader/cascader.js.map +0 -1
  23. package/lib/cascader/cascader.less +0 -16
  24. package/lib/checkbox/check.png +0 -0
  25. package/lib/checkbox/checkbox.d.ts +0 -16
  26. package/lib/checkbox/checkbox.d.ts.map +0 -1
  27. package/lib/checkbox/checkbox.js +0 -100
  28. package/lib/checkbox/checkbox.js.map +0 -1
  29. package/lib/checkbox/checkbox.less +0 -69
  30. package/lib/date-picker/DatePicker.d.ts +0 -21
  31. package/lib/date-picker/DatePicker.d.ts.map +0 -1
  32. package/lib/date-picker/DatePicker.js +0 -163
  33. package/lib/date-picker/DatePicker.js.map +0 -1
  34. package/lib/date-picker/index.less +0 -294
  35. package/lib/input-number/inputNumber.d.ts +0 -10
  36. package/lib/input-number/inputNumber.d.ts.map +0 -1
  37. package/lib/input-number/inputNumber.js +0 -89
  38. package/lib/input-number/inputNumber.js.map +0 -1
  39. package/lib/input-number/inputNumber.less +0 -12
  40. package/lib/modal/index.less +0 -36
  41. package/lib/popconfirm/index.less +0 -32
  42. package/lib/popconfirm/popconfirm.d.ts +0 -8
  43. package/lib/popconfirm/popconfirm.d.ts.map +0 -1
  44. package/lib/popconfirm/popconfirm.js +0 -96
  45. package/lib/popconfirm/popconfirm.js.map +0 -1
  46. package/lib/popover/index.less +0 -57
  47. package/lib/popover/popover.d.ts +0 -14
  48. package/lib/popover/popover.d.ts.map +0 -1
  49. package/lib/popover/popover.js +0 -90
  50. package/lib/popover/popover.js.map +0 -1
  51. package/lib/progress/progress.d.ts +0 -12
  52. package/lib/progress/progress.d.ts.map +0 -1
  53. package/lib/progress/progress.js +0 -179
  54. package/lib/progress/progress.js.map +0 -1
  55. package/lib/progress/progress.less +0 -82
  56. package/lib/query-form/Field/Composition/FieldPopover.d.ts +0 -19
  57. package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +0 -1
  58. package/lib/query-form/Field/Composition/FieldPopover.js +0 -419
  59. package/lib/query-form/Field/Composition/FieldPopover.js.map +0 -1
  60. package/lib/query-form/Field/Composition/FieldPopover.less +0 -35
  61. package/lib/query-form/Field/Composition/Select.d.ts +0 -4
  62. package/lib/query-form/Field/Composition/Select.d.ts.map +0 -1
  63. package/lib/query-form/Field/Composition/Select.js +0 -253
  64. package/lib/query-form/Field/Composition/Select.js.map +0 -1
  65. package/lib/query-form/Field/Composition/ValueTag.d.ts +0 -13
  66. package/lib/query-form/Field/Composition/ValueTag.d.ts.map +0 -1
  67. package/lib/query-form/Field/Composition/ValueTag.js +0 -236
  68. package/lib/query-form/Field/Composition/ValueTag.js.map +0 -1
  69. package/lib/query-form/Field/Composition/index.d.ts +0 -13
  70. package/lib/query-form/Field/Composition/index.d.ts.map +0 -1
  71. package/lib/query-form/Field/Composition/index.js +0 -425
  72. package/lib/query-form/Field/Composition/index.js.map +0 -1
  73. package/lib/query-form/Field/Composition/index.less +0 -145
  74. package/lib/query-form/Field/Composition/utils.d.ts +0 -21
  75. package/lib/query-form/Field/Composition/utils.d.ts.map +0 -1
  76. package/lib/query-form/Field/Composition/utils.js +0 -172
  77. package/lib/query-form/Field/Composition/utils.js.map +0 -1
  78. package/lib/query-form-backup/Field/Composition/FieldPopover.less +0 -35
  79. package/lib/query-form-backup/Field/Composition/index.less +0 -114
  80. package/lib/query-form-backup/index.less +0 -90
  81. package/lib/query-form-v2/index.less +0 -133
  82. package/lib/radio/radio.d.ts +0 -17
  83. package/lib/radio/radio.d.ts.map +0 -1
  84. package/lib/radio/radio.js +0 -110
  85. package/lib/radio/radio.js.map +0 -1
  86. package/lib/radio/radio.less +0 -43
  87. package/lib/scroll-bar/Bar.d.ts +0 -4
  88. package/lib/scroll-bar/Bar.d.ts.map +0 -1
  89. package/lib/scroll-bar/Bar.js +0 -168
  90. package/lib/scroll-bar/Bar.js.map +0 -1
  91. package/lib/scroll-bar/Context.d.ts +0 -7
  92. package/lib/scroll-bar/Context.d.ts.map +0 -1
  93. package/lib/scroll-bar/Context.js +0 -17
  94. package/lib/scroll-bar/Context.js.map +0 -1
  95. package/lib/scroll-bar/ScrollBar.d.ts +0 -4
  96. package/lib/scroll-bar/ScrollBar.d.ts.map +0 -1
  97. package/lib/scroll-bar/ScrollBar.js +0 -132
  98. package/lib/scroll-bar/ScrollBar.js.map +0 -1
  99. package/lib/scroll-bar/Thumb.d.ts +0 -3
  100. package/lib/scroll-bar/Thumb.d.ts.map +0 -1
  101. package/lib/scroll-bar/Thumb.js +0 -202
  102. package/lib/scroll-bar/Thumb.js.map +0 -1
  103. package/lib/scroll-bar/index.d.ts +0 -3
  104. package/lib/scroll-bar/index.d.ts.map +0 -1
  105. package/lib/scroll-bar/index.js +0 -14
  106. package/lib/scroll-bar/index.js.map +0 -1
  107. package/lib/scroll-bar/scrollBar.less +0 -59
  108. package/lib/scroll-bar/util.d.ts +0 -40
  109. package/lib/scroll-bar/util.d.ts.map +0 -1
  110. package/lib/scroll-bar/util.js +0 -66
  111. package/lib/scroll-bar/util.js.map +0 -1
  112. package/lib/spin/spin.d.ts +0 -9
  113. package/lib/spin/spin.d.ts.map +0 -1
  114. package/lib/spin/spin.js +0 -79
  115. package/lib/spin/spin.js.map +0 -1
  116. package/lib/spin/spin.less +0 -9
  117. package/lib/steps/assets/background_left.svg +0 -12
  118. package/lib/steps/assets/background_right.svg +0 -12
  119. package/lib/steps/assets/horizontal_line.svg +0 -3
  120. package/lib/steps/assets/vertical_line.svg +0 -3
  121. package/lib/steps/stepStyle/icon.less +0 -51
  122. package/lib/steps/stepStyle/progress-dot.less +0 -10
  123. package/lib/steps/stepStyle/variables.less +0 -8
  124. package/lib/steps/stepStyle/vertical.less +0 -41
  125. package/lib/switch/index.less +0 -45
  126. package/lib/tabs/tabs.less +0 -125
  127. package/lib/time-picker/TimePicker.d.ts +0 -9
  128. package/lib/time-picker/TimePicker.d.ts.map +0 -1
  129. package/lib/time-picker/TimePicker.js +0 -90
  130. package/lib/time-picker/TimePicker.js.map +0 -1
  131. package/lib/time-picker/index.less +0 -38
  132. package/lib/tntd-action/Action.d.ts +0 -6
  133. package/lib/tntd-action/Action.d.ts.map +0 -1
  134. package/lib/tntd-action/Action.js +0 -218
  135. package/lib/tntd-action/Action.js.map +0 -1
  136. package/lib/tntd-action/index.less +0 -61
  137. package/lib/tntd-select/index.less +0 -7
@@ -1,172 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.formatLabel = formatLabel;
7
- exports.getLabel = getLabel;
8
- exports.getLabelByValue = getLabelByValue;
9
- exports.highlightSubstring = highlightSubstring;
10
- exports.isInput = void 0;
11
- exports.parseArrayToObject = parseArrayToObject;
12
- exports.parseObjectToArray = parseObjectToArray;
13
- var _flatten2 = _interopRequireDefault(require("lodash/flatten"));
14
- var _isString2 = _interopRequireDefault(require("lodash/isString"));
15
- var _isArray2 = _interopRequireDefault(require("lodash/isArray"));
16
- var _react = _interopRequireDefault(require("react"));
17
- var _moment = _interopRequireDefault(require("moment"));
18
- function _interopRequireDefault(e) {
19
- return e && e.__esModule ? e : {
20
- "default": e
21
- };
22
- }
23
- function highlightSubstring(str, substring) {
24
- var highlighted = "<span class=\"tnt-highlight\">".concat(substring, "</span>");
25
- return str.replace(new RegExp(substring, 'g'), highlighted);
26
- }
27
- function getLabelByValue(_ref) {
28
- var value = _ref.value,
29
- options = _ref.options,
30
- _ref$fieldNames = _ref.fieldNames,
31
- fieldNames = _ref$fieldNames === void 0 ? {
32
- label: 'label',
33
- value: 'value'
34
- } : _ref$fieldNames;
35
- var getLabel = function getLabel(value) {
36
- var target = options === null || options === void 0 ? void 0 : options.find(function (item) {
37
- var valueKey = fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.value;
38
- var itemValue = item instanceof Object ? item[valueKey] : item;
39
- return itemValue === value;
40
- });
41
- if (target) {
42
- return target instanceof Object ? target === null || target === void 0 ? void 0 : target[fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.label] : target;
43
- } else {
44
- return value;
45
- }
46
- };
47
- if ((0, _isArray2["default"])(value)) {
48
- return value.map(getLabel).join(' | ');
49
- } else {
50
- return getLabel(value);
51
- }
52
- }
53
- function formatLabel(reactDom) {
54
- return (0, _flatten2["default"])(_react["default"].Children.map(reactDom.props.children, function (child) {
55
- if (_react["default"].isValidElement(child)) {
56
- return formatLabel(child);
57
- } else if ((0, _isString2["default"])(child)) {
58
- return child;
59
- }
60
- return '';
61
- })).join('');
62
- }
63
- function parseObjectToArray(value, data) {
64
- var _a, _b;
65
- return (_b = (_a = Object.keys(value || {})) === null || _a === void 0 ? void 0 : _a.map(function (key) {
66
- var _a;
67
- var target = data === null || data === void 0 ? void 0 : data.find(function (item) {
68
- var _a;
69
- return ((_a = item.props) === null || _a === void 0 ? void 0 : _a.name) === key;
70
- });
71
- if (!target) return null;
72
- var dataItem = (target === null || target === void 0 ? void 0 : target.props) || {};
73
- var _ref2 = dataItem || {},
74
- _ref2$type = _ref2.type,
75
- type = _ref2$type === void 0 ? 'input' : _ref2$type,
76
- component = _ref2.component,
77
- setLabel = _ref2.setLabel,
78
- fieldProps = _ref2.props;
79
- var _ref3 = fieldProps || {},
80
- options = _ref3.options;
81
- if (!type && component) {
82
- if (!setLabel) {
83
- console.error('自定义组件需要传入setLabel()方法');
84
- }
85
- } else if (options) {
86
- if (type === 'selectInput') {
87
- var selectKey = (_a = Object.keys(value[key] || {})) === null || _a === void 0 ? void 0 : _a[0];
88
- if (!selectKey) {
89
- // 17. inputSelect组件,初始值{},展示undefined:undefined
90
- return false;
91
- }
92
- return {
93
- key: key,
94
- value: value[key]
95
- };
96
- }
97
- }
98
- return {
99
- key: key,
100
- value: value[key]
101
- };
102
- })) === null || _b === void 0 ? void 0 : _b.filter(function (item) {
103
- return !!item;
104
- });
105
- }
106
- function parseArrayToObject(value) {
107
- return value === null || value === void 0 ? void 0 : value.reduce(function (acc, v) {
108
- acc[v.key] = v.value;
109
- return acc;
110
- }, {});
111
- }
112
- function getLabel(_ref4, data, locale) {
113
- var key = _ref4.key,
114
- value = _ref4.value;
115
- var _a, _b, _c;
116
- var target = data === null || data === void 0 ? void 0 : data.find(function (item) {
117
- var _a;
118
- return ((_a = item.props) === null || _a === void 0 ? void 0 : _a.name) === key;
119
- });
120
- if (!target) return null;
121
- var dataItem = (target === null || target === void 0 ? void 0 : target.props) || {};
122
- var _ref5 = dataItem || {},
123
- _ref5$type = _ref5.type,
124
- type = _ref5$type === void 0 ? 'input' : _ref5$type,
125
- setLabel = _ref5.setLabel,
126
- fieldProps = _ref5.props,
127
- propsTitle = _ref5.propsTitle,
128
- title = _ref5.title,
129
- name = _ref5.name;
130
- var _propsTitle = propsTitle || title || name;
131
- var _ref6 = fieldProps || {},
132
- options = _ref6.options,
133
- format = _ref6.format;
134
- var labelValue = value;
135
- if (setLabel) {
136
- // setLabel: 对于自定义组件,无法控制label的显示,可以通过setLabel方法控制
137
- labelValue = setLabel(value);
138
- } else if (options) {
139
- if (type === 'selectInput') {
140
- var selectKey = (_a = Object.keys(value || {})) === null || _a === void 0 ? void 0 : _a[0];
141
- if (!selectKey) {
142
- // 17. inputSelect组件,初始值{},展示undefined:undefined
143
- return false;
144
- }
145
- var inputValue = value[selectKey];
146
- var selectLabel = (_b = options === null || options === void 0 ? void 0 : options.find(function (v) {
147
- return v.value === selectKey;
148
- })) === null || _b === void 0 ? void 0 : _b.label;
149
- return selectLabel + ':' + inputValue;
150
- }
151
- labelValue = getLabelByValue({
152
- value: value,
153
- options: options,
154
- fieldNames: ((_c = dataItem === null || dataItem === void 0 ? void 0 : dataItem.props) === null || _c === void 0 ? void 0 : _c.fieldNames) || {
155
- label: 'label',
156
- value: 'value'
157
- }
158
- });
159
- } else if (type === 'checkbox') {
160
- labelValue = value ? locale.yes : locale.no;
161
- } else if (type === 'dateRange' && format) {
162
- if (value === null || value === void 0 ? void 0 : value.length) {
163
- labelValue = [(0, _moment["default"])(value === null || value === void 0 ? void 0 : value[0]).format(format), (0, _moment["default"])(value === null || value === void 0 ? void 0 : value[1]).format(format)].join('~');
164
- }
165
- } else if (type === 'date' && format) {
166
- labelValue = value ? (0, _moment["default"])(value).format(format) : undefined;
167
- }
168
- return _propsTitle + ':' + (labelValue === undefined ? '' : labelValue);
169
- }
170
- var isInput = exports.isInput = function isInput(type) {
171
- return ['input', 'string', 'search', 'aloneSearch', 'number', 'inputNumber'].includes(type);
172
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/query-form/Field/Composition/utils.js"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AACzB,mCAAmD;AACnD,oDAA2B;AAE3B,SAAgB,kBAAkB,CAAC,GAAG,EAAE,SAAS;IAC/C,MAAM,WAAW,GAAG,+BAA+B,SAAS,SAAS,CAAA;IACrE,OAAO,GAAG,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,SAAS,EAAE,GAAG,C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AK,uBAAL,KAAK,CAAE,MAAM,EAAE;YACjB,UAAU,GAAG,CAAC,IAAA,gBAAM,EAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,IAAA,gBAAM,EAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;SAC9F;KACF;SAAM,IAAI,IAAI,KAAK,MAAM,IAAI,MAAM,EAAE;QACpC,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,IAAA,gBAAM,EAAC,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;KAC9D;IACD,OAAO,WAAW,GAAG,GAAG,GAAG,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAA;AACzE,CAAC;AAxCD,4BAwCC;AAEM,MAAM,OAAO,GAAG,CAAC,IAAI,EAAE,EAAE,CAC9B,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;AADzE,QAAA,OAAO,WACkE","sourcesContent":["import React from 'react'\nimport { isArray, isString, flatten } from 'lodash'\nimport moment from 'moment'\n\nexport function highlightSubstring(str, substring) {\n const highlighted = `<span class=\"tnt-highlight\">${substring}</span>`\n return str.replace(new RegExp(substring, 'g'), highlighted)\n}\n\nexport function getLabelByValue({\n value,\n options,\n fieldNames = {\n label: 'label',\n value: 'value',\n },\n}) {\n const getLabel = (value) => {\n const target = options?.find((item) => {\n const valueKey = fieldNames?.value\n const itemValue = item instanceof Object ? item[valueKey] : item\n return itemValue === value\n })\n if (target) {\n return target instanceof Object ? target?.[fieldNames?.label] : target\n } else {\n return value\n }\n }\n if (isArray(value)) {\n return value.map(getLabel).join(' | ')\n } else {\n return getLabel(value)\n }\n}\n\nexport function formatLabel(reactDom) {\n return flatten(\n React.Children.map(reactDom.props.children, (child) => {\n if (React.isValidElement(child)) {\n return formatLabel(child)\n } else if (isString(child)) {\n return child\n }\n return ''\n })\n ).join('')\n}\n\nexport function parseObjectToArray(value, data) {\n return Object.keys(value || {})\n ?.map((key) => {\n const target = data?.find((item) => item.props?.name === key)\n if (!target) return null\n const dataItem = target?.props || {}\n const { type = 'input', component, setLabel, props: fieldProps } = dataItem || {}\n const { options } = fieldProps || {}\n\n if (!type && component) {\n if (!setLabel) {\n console.error('自定义组件需要传入setLabel()方法')\n }\n } else if (options) {\n if (type === 'selectInput') {\n const selectKey = Object.keys(value[key] || {})?.[0]\n if (!selectKey) {\n // 17. inputSelect组件,初始值{},展示undefined:undefined\n return false\n }\n return {\n key,\n value: value[key],\n }\n }\n }\n return {\n key,\n value: value[key],\n }\n })\n ?.filter((item) => !!item)\n}\n\nexport function parseArrayToObject(value) {\n return value?.reduce((acc, v) => {\n acc[v.key] = v.value\n return acc\n }, {})\n}\n\nexport function getLabel({ key, value }, data, locale) {\n const target = data?.find((item) => item.props?.name === key)\n if (!target) return null\n const dataItem = target?.props || {}\n const { type = 'input', setLabel, props: fieldProps, propsTitle, title, name } = dataItem || {}\n const _propsTitle = propsTitle || title || name\n const { options, format } = fieldProps || {}\n let labelValue = value\n if (setLabel) {\n // setLabel: 对于自定义组件,无法控制label的显示,可以通过setLabel方法控制\n labelValue = setLabel(value)\n } else if (options) {\n if (type === 'selectInput') {\n const selectKey = Object.keys(value || {})?.[0]\n if (!selectKey) {\n // 17. inputSelect组件,初始值{},展示undefined:undefined\n return false\n }\n const inputValue = value[selectKey]\n const selectLabel = options?.find((v) => v.value === selectKey)?.label\n return selectLabel + ':' + inputValue\n }\n labelValue = getLabelByValue({\n value,\n options,\n fieldNames: dataItem?.props?.fieldNames || {\n label: 'label',\n value: 'value',\n },\n })\n } else if (type === 'checkbox') {\n labelValue = value ? locale.yes : locale.no\n } else if (type === 'dateRange' && format) {\n if (value?.length) {\n labelValue = [moment(value?.[0]).format(format), moment(value?.[1]).format(format)].join('~')\n }\n } else if (type === 'date' && format) {\n labelValue = value ? moment(value).format(format) : undefined\n }\n return _propsTitle + ':' + (labelValue === undefined ? '' : labelValue)\n}\n\nexport const isInput = (type) =>\n ['input', 'string', 'search', 'aloneSearch', 'number', 'inputNumber'].includes(type)\n"]}
@@ -1,35 +0,0 @@
1
- .tnt-queryform-field-popover {
2
- min-width: 280px;
3
- .ant-popover-inner-content {
4
- padding: @padding-sm 0;
5
- }
6
- .ant-calendar-picker {
7
- margin: @margin-xxs 0;
8
- }
9
- label {
10
- color: tint(@text-color, 50%);
11
- margin-bottom: @margin-xs;
12
- display: block;
13
- padding: 0 @padding-sm;
14
- }
15
- .ant-select-dropdown-menu {
16
- &-item {
17
- padding: @padding-xxs @padding-sm;
18
- &:hover {
19
- background-color: @bg-color-quaternary;
20
- }
21
- }
22
- }
23
- &-content {
24
- padding: @padding-xxs @padding-sm;
25
- }
26
- .ant-select-selected-icon {
27
- position: absolute;
28
- right: @margin-base;
29
- top: @margin-xs;
30
- color: @blue-6;
31
- }
32
- .tnt-highlight {
33
- color: @blue-6;
34
- }
35
- }
@@ -1,114 +0,0 @@
1
- @import '../../../style/themes/index';
2
- @import '../../../style/mixins/index';
3
- @import '../../../input/style/mixin';
4
-
5
- .tnt-queryform-composition-input {
6
- // width: 100%;
7
- max-height: 162px;
8
- overflow-x: hidden;
9
- cursor: text;
10
- padding: 2px @padding-xl;
11
- position: relative;
12
- box-sizing: border-box;
13
- background-color: @select-background;
14
- border: @border-width-base @border-style-base @select-border-color;
15
- border-top-width: calc(@border-width-base + 0.02px);
16
- border-radius: @border-radius-base;
17
- outline: none;
18
- transition: all 0.3s @ease-in-out;
19
- user-select: none;
20
- margin-bottom: @margin-sm;
21
-
22
- &-prefix {
23
- position: absolute;
24
- left: @padding-sm;
25
- top: 50%;
26
- transform: translateY(-50%);
27
- i.anticon {
28
- color: tint(@bg-color-spotilight, 50%);
29
- }
30
- }
31
-
32
- &-width {
33
- height: 0;
34
- opacity: 0;
35
- width: auto;
36
- position: absolute;
37
- max-width: 100%;
38
- }
39
-
40
- &-items {
41
- float: left;
42
- padding: 0;
43
- list-style: none;
44
- margin: 0;
45
- width: 100%;
46
- &-item {
47
- padding: 3px 0;
48
- }
49
- li {
50
- float: left;
51
- line-height: 1;
52
- }
53
- &-input {
54
- .inputClass {
55
- background: none;
56
- border: none !important;
57
- outline: none;
58
- box-shadow: none !important;
59
- width: 150px !important;
60
- height: 26px;
61
- line-height: 26px;
62
- padding: 0;
63
- input {
64
- border: none !important;
65
- outline: none !important;
66
- box-shadow: none !important;
67
- height: 26px;
68
- line-height: 26px;
69
- padding: 0;
70
- }
71
- textarea {
72
- padding: 0;
73
- }
74
- }
75
- .inputClass-with-placeholder {
76
- min-width: 398px !important;
77
- }
78
- }
79
- }
80
- &-clear {
81
- position: absolute;
82
- right: @margin-sm;
83
- top: 50%;
84
- transform: translateY(-50%);
85
- display: none;
86
- i.anticon {
87
- color: tint(@bg-color-spotilight, 50%);
88
- }
89
- &:hover {
90
- .anticon {
91
- color: @text-color-secondary !important;
92
- }
93
- }
94
- }
95
- &:hover {
96
- border-color: @blue-6;
97
- outline: 0;
98
- .tnt-queryform-composition-input-clear {
99
- display: block;
100
- }
101
- // box-shadow: 0 0 0 2px rgb(18 107 251 / 20%);
102
- }
103
- &:focus,
104
- &:active {
105
- border-color: @blue-5;
106
- outline: 0;
107
- // box-shadow: 0 0 0 2px rgb(18 107 251 / 20%);
108
- }
109
- .ant-tag {
110
- padding: 0 @padding-xs;
111
- border: none;
112
- background: @fill-color-tertiary;
113
- }
114
- }
@@ -1,90 +0,0 @@
1
- .tnt-queryform {
2
- &-top {
3
- display: flex;
4
- &-body {
5
- flex: 1;
6
- .ant-btn {
7
- margin-right: 10px;
8
- }
9
- }
10
- }
11
-
12
- &-extra {
13
- & > * {
14
- margin-left: 10px;
15
- }
16
- }
17
-
18
- .ant-form {
19
- // margin-bottom: @margin-sm;
20
- &.ant-form-inline {
21
- flex-wrap: unset;
22
- position: relative;
23
- }
24
-
25
- &.ant-form-inline .ant-form-item {
26
- margin-right: 10px;
27
- margin-bottom: @margin-sm;
28
- display: inline-block;
29
- }
30
-
31
- .ant-form-item-control {
32
- // min-width: 160px;
33
- line-height: unset;
34
- .ant-calendar-picker-input {
35
- padding: 0 @padding-sm;
36
- }
37
- .ant-form-item-children {
38
- & > .ant-input,
39
- & > .ant-input-affix-wrapper {
40
- width: 160px;
41
- // width: 200px;
42
- }
43
- }
44
- }
45
- }
46
-
47
- &-drawer {
48
- margin-top: @margin-xxl;
49
- &.large-size {
50
- margin-top: 60px;
51
- }
52
-
53
- &.ant-drawer.ant-drawer-open {
54
- .ant-drawer-mask {
55
- opacity: 0;
56
- background: unset;
57
- }
58
- }
59
- .ant-drawer-body {
60
- .ant-form-item {
61
- display: block;
62
- margin-right: 0;
63
- margin-bottom: @margin-md;
64
- width: 100%;
65
- }
66
- .ant-form-item-label {
67
- display: block;
68
- text-align: left;
69
- line-height: 22px;
70
- margin-bottom: 10px;
71
- }
72
- .ant-form-item-control-wrapper,
73
- .ant-form-item-control,
74
- .ant-calendar-picker,
75
- .ant-input {
76
- min-width: 100%;
77
- width: 100%;
78
- }
79
-
80
- & > .ant-btn {
81
- display: block;
82
- width: 100%;
83
- margin-bottom: 10px;
84
- &.ant-btn-primary {
85
- margin-top: @margin-md;
86
- }
87
- }
88
- }
89
- }
90
- }
@@ -1,133 +0,0 @@
1
- .tnt-queryform {
2
- display: flex;
3
-
4
- &-extra {
5
- line-height: 32px;
6
- margin-left: 12px;
7
- & > * {
8
- margin-left: 8px;
9
- }
10
- }
11
-
12
- &-actions {
13
- align-items: center;
14
- display: inline-block;
15
- height: 32px;
16
- line-height: 32px;
17
-
18
- & > *:not(.expand-link) {
19
- margin-right: 10px;
20
- }
21
- & > .expand-link {
22
- padding: 0;
23
- margin-right: 0;
24
- }
25
- & > .ant-badge {
26
- .tnt-icon {
27
- margin-right: 8px;
28
- }
29
- }
30
- }
31
-
32
- .ant-form {
33
- display: inline-block;
34
- margin-bottom: 12px;
35
- display: flex;
36
- flex: 1;
37
- &.ant-form-inline {
38
- flex-wrap: unset;
39
- }
40
-
41
- & > div:nth-child(1) {
42
- height: 32px;
43
- overflow: hidden;
44
- .ant-form-item-label {
45
- label {
46
- // bottom: 4px;
47
- }
48
- }
49
- }
50
-
51
- &.expanded {
52
- & > div:nth-child(1) {
53
- height: auto !important;
54
- }
55
- }
56
-
57
- &.showMore {
58
- & > div:nth-child(1) {
59
- .ant-form-item {
60
- margin-bottom: 12px;
61
- }
62
- }
63
- }
64
-
65
- & > div:nth-child(2) {
66
- display: flex;
67
- }
68
-
69
- &.ant-form-inline .ant-form-item {
70
- margin-right: 10px;
71
- display: inline-block;
72
- }
73
-
74
- .ant-form-item-control {
75
- // min-width: 160px;
76
- line-height: unset;
77
- .ant-calendar-picker-input {
78
- padding: 0 11px;
79
- }
80
- .ant-form-item-children {
81
- & > .ant-input,
82
- & > .ant-input-affix-wrapper {
83
- width: 160px;
84
- // width: 200px;
85
- }
86
- }
87
- }
88
- }
89
-
90
- &-drawer {
91
- margin-top: 50px;
92
- &.large-size {
93
- margin-top: 60px;
94
- }
95
-
96
- &.ant-drawer.ant-drawer-open {
97
- .ant-drawer-mask {
98
- opacity: 0;
99
- background: unset;
100
- }
101
- }
102
- .ant-drawer-body {
103
- .ant-form-item {
104
- display: block;
105
- margin-right: 0;
106
- margin-bottom: 20px;
107
- width: 100%;
108
- }
109
- .ant-form-item-label {
110
- display: block;
111
- text-align: left;
112
- line-height: 22px;
113
- margin-bottom: 10px;
114
- }
115
- .ant-form-item-control-wrapper,
116
- .ant-form-item-control,
117
- .ant-calendar-picker,
118
- .ant-input {
119
- min-width: 100%;
120
- width: 100%;
121
- }
122
-
123
- & > .ant-btn {
124
- display: block;
125
- width: 100%;
126
- margin-bottom: 10px;
127
- &.ant-btn-primary {
128
- margin-top: 20px;
129
- }
130
- }
131
- }
132
- }
133
- }
@@ -1,17 +0,0 @@
1
- import type { RadioGroupProps as AntdRadioGroupProps, RadioProps as AntdRadioProps } from 'antd/lib/radio';
2
- import AntdRadio from 'antd/lib/radio';
3
- import React from 'react';
4
- export * from 'antd/lib/radio';
5
- export declare type RadioProps = AntdRadioProps & {
6
- desc?: string | React.ReactNode;
7
- };
8
- export declare type RadioGroupProps = AntdRadioGroupProps & {
9
- readonly?: boolean;
10
- };
11
- interface RadioComponent extends React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<AntdRadio>> {
12
- Group: React.FC<RadioGroupProps>;
13
- Button: typeof AntdRadio.Button;
14
- }
15
- declare const Radio: RadioComponent;
16
- export default Radio;
17
- //# sourceMappingURL=radio.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../src/radio/radio.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,eAAe,IAAI,mBAAmB,EACtC,UAAU,IAAI,cAAc,EAC7B,MAAM,eAAe,CAAA;AACtB,OAAO,SAAS,MAAM,eAAe,CAAA;AAGrC,OAAO,KAAqB,MAAM,OAAO,CAAA;AAIzC,cAAc,eAAe,CAAA;AAE7B,oBAAY,UAAU,GAAG,cAAc,GAAG;IACxC,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;CAChC,CAAA;AACD,oBAAY,eAAe,GAAG,mBAAmB,GAAG;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,UAAU,cACR,SAAQ,KAAK,CAAC,yBAAyB,CAAC,UAAU,GAAG,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACpF,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,CAAA;IAChC,MAAM,EAAE,OAAO,SAAS,CAAC,MAAM,CAAA;CAChC;AAID,QAAA,MAAM,KAAK,gBAiBS,CAAA;AAqBpB,eAAe,KAAK,CAAA"}
@@ -1,110 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) {
4
- "@babel/helpers - typeof";
5
-
6
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
7
- return typeof o;
8
- } : function (o) {
9
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
10
- }, _typeof(o);
11
- }
12
- Object.defineProperty(exports, "__esModule", {
13
- value: true
14
- });
15
- var _exportNames = {};
16
- exports["default"] = void 0;
17
- var _configProvider = require("antd/lib/config-provider");
18
- var _radio = _interopRequireWildcard(require("antd/lib/radio"));
19
- Object.keys(_radio).forEach(function (key) {
20
- if (key === "default" || key === "__esModule") return;
21
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
22
- if (key in exports && exports[key] === _radio[key]) return;
23
- Object.defineProperty(exports, key, {
24
- enumerable: true,
25
- get: function get() {
26
- return _radio[key];
27
- }
28
- });
29
- });
30
- var _classnames = _interopRequireDefault(require("classnames"));
31
- var _react = _interopRequireWildcard(require("react"));
32
- var _connect = require("../connect");
33
- var _previewText = require("../preview-text");
34
- function _interopRequireDefault(e) {
35
- return e && e.__esModule ? e : {
36
- "default": e
37
- };
38
- }
39
- function _getRequireWildcardCache(e) {
40
- if ("function" != typeof WeakMap) return null;
41
- var r = new WeakMap(),
42
- t = new WeakMap();
43
- return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
44
- return e ? t : r;
45
- })(e);
46
- }
47
- function _interopRequireWildcard(e, r) {
48
- if (!r && e && e.__esModule) return e;
49
- if (null === e || "object" != _typeof(e) && "function" != typeof e) return {
50
- "default": e
51
- };
52
- var t = _getRequireWildcardCache(r);
53
- if (t && t.has(e)) return t.get(e);
54
- var n = {
55
- __proto__: null
56
- },
57
- a = Object.defineProperty && Object.getOwnPropertyDescriptor;
58
- for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
59
- var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
60
- i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
61
- }
62
- return n["default"] = e, t && t.set(e, n), n;
63
- }
64
- var __rest = void 0 && (void 0).__rest || function (s, e) {
65
- var t = {};
66
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
67
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
68
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
69
- }
70
- return t;
71
- };
72
- /*
73
- * @Author: 周泽飞 zefei.zhou@tongdun.net
74
- * @Date: 2024-03-14 16:55:05
75
- * @LastEditors: 周泽飞 zefei.zhou@tongdun.net
76
- * @LastEditTime: 2024-03-14 17:00:03
77
- * @FilePath: /tntd/packages/tntd/src/radio/radio.tsx
78
- * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
79
- */
80
-
81
- var tntPrefixCls = 'tnt-radio';
82
- var Radio = (0, _react.forwardRef)(function (_a, ref) {
83
- var className = _a.className,
84
- children = _a.children,
85
- desc = _a.desc,
86
- rest = __rest(_a, ["className", "children", "desc"]);
87
- return _react["default"].createElement(_configProvider.ConfigConsumer, null, function () {
88
- return _react["default"].createElement(_radio["default"], Object.assign({}, rest, {
89
- ref: ref,
90
- className: (0, _classnames["default"])(className, tntPrefixCls)
91
- }), children ? _react["default"].createElement("span", {
92
- className: "".concat(tntPrefixCls, "-children")
93
- }, _react["default"].createElement("span", null, children), !!desc && _react["default"].createElement("span", {
94
- className: "".concat(tntPrefixCls, "-desc")
95
- }, desc)) : undefined);
96
- });
97
- });
98
- var RadioGroup = (0, _react.forwardRef)(function (_a, ref) {
99
- var className = _a.className,
100
- rest = __rest(_a, ["className"]);
101
- return _react["default"].createElement(_configProvider.ConfigConsumer, null, function () {
102
- return _react["default"].createElement(_radio["default"].Group, Object.assign({}, rest, {
103
- ref: ref,
104
- className: (0, _classnames["default"])(className, "".concat(tntPrefixCls, "-group"))
105
- }));
106
- });
107
- });
108
- Radio.Group = (0, _connect.connectReadonlyComponent)(RadioGroup, _previewText.PreviewText.Select);
109
- Radio.Button = _radio["default"].Button;
110
- var _default = exports["default"] = Radio;