tntd 3.0.61 → 3.0.63

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 (49) hide show
  1. package/es/checkbox/checkbox-group.js +16 -0
  2. package/es/checkbox/checkbox-group.js.map +1 -0
  3. package/es/modal/index.less +16 -0
  4. package/es/modal/modal.js +5 -3
  5. package/es/modal/modal.js.map +1 -1
  6. package/es/modal/modal.less +1 -0
  7. package/es/query-form/Field/Composition/FieldPopover.js +31 -24
  8. package/es/query-form/Field/Composition/Select.js +31 -24
  9. package/es/query-form/Field/Composition/SelectInput.js +18 -17
  10. package/es/query-form/Field/Composition/ValueTag.js +18 -17
  11. package/es/query-form/Field/Composition/index.js +37 -30
  12. package/es/query-form/Field/Composition/utils.js +3 -3
  13. package/es/radio/radio-group.js +16 -0
  14. package/es/radio/radio-group.js.map +1 -0
  15. package/es/steps/stepStyle/small.less +5 -0
  16. package/es/table/total-shower.js +20 -0
  17. package/es/table/total-shower.js.map +1 -0
  18. package/es/utils/simple-template.js +19 -0
  19. package/es/utils/simple-template.js.map +1 -0
  20. package/lib/checkbox/checkbox-group.d.ts +8 -0
  21. package/lib/checkbox/checkbox-group.d.ts.map +1 -0
  22. package/lib/checkbox/checkbox-group.js +16 -0
  23. package/lib/checkbox/checkbox-group.js.map +1 -0
  24. package/lib/modal/index.less +16 -0
  25. package/lib/modal/modal.d.ts +1 -0
  26. package/lib/modal/modal.d.ts.map +1 -1
  27. package/lib/modal/modal.js +5 -3
  28. package/lib/modal/modal.js.map +1 -1
  29. package/lib/modal/modal.less +1 -0
  30. package/lib/query-form/Field/Composition/FieldPopover.js +31 -24
  31. package/lib/query-form/Field/Composition/Select.js +31 -24
  32. package/lib/query-form/Field/Composition/SelectInput.js +18 -17
  33. package/lib/query-form/Field/Composition/ValueTag.js +18 -17
  34. package/lib/query-form/Field/Composition/index.js +37 -30
  35. package/lib/query-form/Field/Composition/utils.js +3 -3
  36. package/lib/radio/radio-group.d.ts +8 -0
  37. package/lib/radio/radio-group.d.ts.map +1 -0
  38. package/lib/radio/radio-group.js +16 -0
  39. package/lib/radio/radio-group.js.map +1 -0
  40. package/lib/steps/stepStyle/small.less +5 -0
  41. package/lib/table/total-shower.d.ts +9 -0
  42. package/lib/table/total-shower.d.ts.map +1 -0
  43. package/lib/table/total-shower.js +20 -0
  44. package/lib/table/total-shower.js.map +1 -0
  45. package/lib/utils/simple-template.d.ts +9 -0
  46. package/lib/utils/simple-template.d.ts.map +1 -0
  47. package/lib/utils/simple-template.js +19 -0
  48. package/lib/utils/simple-template.js.map +1 -0
  49. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"total-shower.js","sourceRoot":"","sources":["../../src/table/total-shower.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAGzB,oCAAyC;AAElC,MAAM,WAAW,GAAG,CAAC,EAC1B,KAAK,EACL,MAAM,GAMP,EAAE,EAAE;IACH,OAAO,8DAAG,IAAA,sBAAc,EAAC,MAAM,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAI,CAAA;AACvD,CAAC,CAAA;AAVY,QAAA,WAAW,eAUvB","sourcesContent":["import React from 'react'\n\nimport type { TableProps as AntdTableProps } from 'antd/lib/table'\nimport { simpleTemplate } from '../utils'\n\nexport const TotalShower = ({\n total,\n locale,\n}: {\n total: number\n locale: AntdTableProps<unknown>['locale'] & {\n total?: string\n }\n}) => {\n return <>{simpleTemplate(locale.total, { total })}</>\n}\n"]}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 简单的模板替换
3
+ *
4
+ * @param template
5
+ * @param data
6
+ * @returns
7
+ */
8
+ export declare function simpleTemplate(template?: string, data?: Record<string, string | number>): string | undefined;
9
+ //# sourceMappingURL=simple-template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simple-template.d.ts","sourceRoot":"","sources":["../../src/utils/simple-template.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAM,sBAE3F"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.simpleTemplate = simpleTemplate;
7
+ /**
8
+ * 简单的模板替换
9
+ *
10
+ * @param template
11
+ * @param data
12
+ * @returns
13
+ */
14
+ function simpleTemplate(template) {
15
+ var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
16
+ return template === null || template === void 0 ? void 0 : template.replace(/\${(.*?)}/g, function (match, key) {
17
+ return data[key.trim()].toString();
18
+ });
19
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simple-template.js","sourceRoot":"","sources":["../../src/utils/simple-template.ts"],"names":[],"mappings":";;;AAAA;;;;;;GAMG;AACH,SAAgB,cAAc,CAAC,QAAiB,EAAE,OAAwC,EAAE;IAC1F,OAAO,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,OAAO,CAAC,YAAY,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAA;AACrF,CAAC;AAFD,wCAEC","sourcesContent":["/**\n * 简单的模板替换\n *\n * @param template\n * @param data\n * @returns\n */\nexport function simpleTemplate(template?: string, data: Record<string, string | number> = {}) {\n return template?.replace(/\\${(.*?)}/g, (match, key) => data[key.trim()].toString())\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tntd",
3
- "version": "3.0.61",
3
+ "version": "3.0.63",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "start": "heft start --storybook",
@@ -113,4 +113,4 @@
113
113
  "main": "lib/index.js",
114
114
  "module": "es/index.js",
115
115
  "typings": "lib/index.d.ts"
116
- }
116
+ }