@tunghtml/strapi-plugin-composite-field 1.1.9 → 1.2.0

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.
@@ -1,125 +0,0 @@
1
- "use strict";
2
- const React = require("react");
3
- const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
4
- const React__default = /* @__PURE__ */ _interopDefault(React);
5
- const CompositeIcon = () => React__default.default.createElement(
6
- "div",
7
- {
8
- style: {
9
- display: "flex",
10
- justifyContent: "center",
11
- alignItems: "center",
12
- width: "32px",
13
- height: "24px",
14
- borderRadius: "4px",
15
- border: "1px solid #b8e1ff",
16
- background: "#eafbff",
17
- fontSize: "14px",
18
- fontWeight: "600",
19
- color: "#0c75af"
20
- }
21
- },
22
- "Aa"
23
- );
24
- const index = {
25
- register(app) {
26
- app.customFields.register({
27
- name: "composite",
28
- pluginId: "composite-field",
29
- type: "string",
30
- icon: CompositeIcon,
31
- intlLabel: {
32
- id: "composite-field.label",
33
- defaultMessage: "Composite"
34
- },
35
- intlDescription: {
36
- id: "composite-field.description",
37
- defaultMessage: "Combine multiple fields into one display value"
38
- },
39
- components: {
40
- Input: async () => Promise.resolve().then(() => require("../_chunks/CompositeInput-B27rDvur.js"))
41
- },
42
- options: {
43
- base: [
44
- {
45
- sectionTitle: {
46
- id: "composite-field.section.title",
47
- defaultMessage: "Settings"
48
- },
49
- items: [
50
- {
51
- name: "options.fields",
52
- type: "textarea",
53
- intlLabel: {
54
- id: "composite-field.fields.label",
55
- defaultMessage: "Fields to combine"
56
- },
57
- description: {
58
- id: "composite-field.fields.description",
59
- defaultMessage: "Enter field names (one per line). Only text/string fields are supported."
60
- },
61
- placeholder: {
62
- id: "composite-field.fields.placeholder",
63
- defaultMessage: "salutation\nfirstName\nlastName\nemail"
64
- }
65
- },
66
- {
67
- name: "options.separator",
68
- type: "text",
69
- intlLabel: {
70
- id: "composite-field.separator.label",
71
- defaultMessage: "Separator"
72
- },
73
- description: {
74
- id: "composite-field.separator.description",
75
- defaultMessage: 'Separator between fields (default: " - ")'
76
- },
77
- placeholder: {
78
- id: "composite-field.separator.placeholder",
79
- defaultMessage: " - "
80
- }
81
- }
82
- ]
83
- }
84
- ],
85
- advanced: [
86
- {
87
- sectionTitle: {
88
- id: "composite-field.advanced.title",
89
- defaultMessage: "Settings"
90
- },
91
- items: [
92
- {
93
- name: "options.editable",
94
- type: "checkbox",
95
- intlLabel: {
96
- id: "composite-field.editable.label",
97
- defaultMessage: "Editable"
98
- },
99
- description: {
100
- id: "composite-field.editable.description",
101
- defaultMessage: "Allow manual editing of the composite field value"
102
- }
103
- },
104
- {
105
- name: "options.autoGenerate",
106
- type: "checkbox",
107
- intlLabel: {
108
- id: "composite-field.autoGenerate.label",
109
- defaultMessage: "Auto-generate"
110
- },
111
- description: {
112
- id: "composite-field.autoGenerate.description",
113
- defaultMessage: "Automatically generate value when source fields change"
114
- }
115
- }
116
- ]
117
- }
118
- ]
119
- }
120
- });
121
- },
122
- bootstrap() {
123
- }
124
- };
125
- module.exports = index;
@@ -1,124 +0,0 @@
1
- import React__default from "react";
2
- const CompositeIcon = () => React__default.createElement(
3
- "div",
4
- {
5
- style: {
6
- display: "flex",
7
- justifyContent: "center",
8
- alignItems: "center",
9
- width: "32px",
10
- height: "24px",
11
- borderRadius: "4px",
12
- border: "1px solid #b8e1ff",
13
- background: "#eafbff",
14
- fontSize: "14px",
15
- fontWeight: "600",
16
- color: "#0c75af"
17
- }
18
- },
19
- "Aa"
20
- );
21
- const index = {
22
- register(app) {
23
- app.customFields.register({
24
- name: "composite",
25
- pluginId: "composite-field",
26
- type: "string",
27
- icon: CompositeIcon,
28
- intlLabel: {
29
- id: "composite-field.label",
30
- defaultMessage: "Composite"
31
- },
32
- intlDescription: {
33
- id: "composite-field.description",
34
- defaultMessage: "Combine multiple fields into one display value"
35
- },
36
- components: {
37
- Input: async () => import("../_chunks/CompositeInput-L5-14cJV.mjs")
38
- },
39
- options: {
40
- base: [
41
- {
42
- sectionTitle: {
43
- id: "composite-field.section.title",
44
- defaultMessage: "Settings"
45
- },
46
- items: [
47
- {
48
- name: "options.fields",
49
- type: "textarea",
50
- intlLabel: {
51
- id: "composite-field.fields.label",
52
- defaultMessage: "Fields to combine"
53
- },
54
- description: {
55
- id: "composite-field.fields.description",
56
- defaultMessage: "Enter field names (one per line). Only text/string fields are supported."
57
- },
58
- placeholder: {
59
- id: "composite-field.fields.placeholder",
60
- defaultMessage: "salutation\nfirstName\nlastName\nemail"
61
- }
62
- },
63
- {
64
- name: "options.separator",
65
- type: "text",
66
- intlLabel: {
67
- id: "composite-field.separator.label",
68
- defaultMessage: "Separator"
69
- },
70
- description: {
71
- id: "composite-field.separator.description",
72
- defaultMessage: 'Separator between fields (default: " - ")'
73
- },
74
- placeholder: {
75
- id: "composite-field.separator.placeholder",
76
- defaultMessage: " - "
77
- }
78
- }
79
- ]
80
- }
81
- ],
82
- advanced: [
83
- {
84
- sectionTitle: {
85
- id: "composite-field.advanced.title",
86
- defaultMessage: "Settings"
87
- },
88
- items: [
89
- {
90
- name: "options.editable",
91
- type: "checkbox",
92
- intlLabel: {
93
- id: "composite-field.editable.label",
94
- defaultMessage: "Editable"
95
- },
96
- description: {
97
- id: "composite-field.editable.description",
98
- defaultMessage: "Allow manual editing of the composite field value"
99
- }
100
- },
101
- {
102
- name: "options.autoGenerate",
103
- type: "checkbox",
104
- intlLabel: {
105
- id: "composite-field.autoGenerate.label",
106
- defaultMessage: "Auto-generate"
107
- },
108
- description: {
109
- id: "composite-field.autoGenerate.description",
110
- defaultMessage: "Automatically generate value when source fields change"
111
- }
112
- }
113
- ]
114
- }
115
- ]
116
- }
117
- });
118
- },
119
- bootstrap() {
120
- }
121
- };
122
- export {
123
- index as default
124
- };
@@ -1,17 +0,0 @@
1
- "use strict";
2
- function getDefaultExportFromCjs(x) {
3
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
4
- }
5
- var register$1 = ({ strapi }) => {
6
- strapi.customFields.register({
7
- name: "composite",
8
- plugin: "composite-field",
9
- type: "string"
10
- });
11
- };
12
- const register = register$1;
13
- var src = {
14
- register
15
- };
16
- const index = /* @__PURE__ */ getDefaultExportFromCjs(src);
17
- module.exports = index;
@@ -1,18 +0,0 @@
1
- function getDefaultExportFromCjs(x) {
2
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
3
- }
4
- var register$1 = ({ strapi }) => {
5
- strapi.customFields.register({
6
- name: "composite",
7
- plugin: "composite-field",
8
- type: "string"
9
- });
10
- };
11
- const register = register$1;
12
- var src = {
13
- register
14
- };
15
- const index = /* @__PURE__ */ getDefaultExportFromCjs(src);
16
- export {
17
- index as default
18
- };