openxiangda 1.0.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.
- package/README.md +58 -0
- package/bin/openxiangda.js +11 -0
- package/lib/cli.js +2423 -0
- package/lib/config.js +121 -0
- package/lib/http.js +47 -0
- package/lib/skills.js +371 -0
- package/lib/utils.js +87 -0
- package/lib/workspace-init.js +139 -0
- package/openxiangda-skills/SKILL.md +128 -0
- package/openxiangda-skills/references/architecture-patterns.md +242 -0
- package/openxiangda-skills/references/automation-v3.md +129 -0
- package/openxiangda-skills/references/component-guide.md +198 -0
- package/openxiangda-skills/references/forms/component-registry.md +53 -0
- package/openxiangda-skills/references/forms/form-schema.md +109 -0
- package/openxiangda-skills/references/forms/layout-and-rules.md +24 -0
- package/openxiangda-skills/references/openxiangda-api.md +466 -0
- package/openxiangda-skills/references/pages/page-sdk.md +13 -0
- package/openxiangda-skills/references/pages/publish-flow.md +36 -0
- package/openxiangda-skills/references/pages/workspace-structure.md +38 -0
- package/openxiangda-skills/references/permissions-settings.md +147 -0
- package/openxiangda-skills/references/platform-data-model.md +305 -0
- package/openxiangda-skills/references/style-system.md +492 -0
- package/openxiangda-skills/references/troubleshooting.md +246 -0
- package/openxiangda-skills/references/workflow-v3.md +105 -0
- package/openxiangda-skills/references/workspace-state.md +45 -0
- package/openxiangda-skills/skills/openxiangda-app/SKILL.md +64 -0
- package/openxiangda-skills/skills/openxiangda-core/SKILL.md +143 -0
- package/openxiangda-skills/skills/openxiangda-form/SKILL.md +76 -0
- package/openxiangda-skills/skills/openxiangda-inspect/SKILL.md +40 -0
- package/openxiangda-skills/skills/openxiangda-page/SKILL.md +62 -0
- package/openxiangda-skills/skills/openxiangda-permission-settings/SKILL.md +95 -0
- package/openxiangda-skills/skills/openxiangda-workflow-automation/SKILL.md +97 -0
- package/package.json +126 -0
- package/packages/sdk/bin/lowcode-workspace.mjs +4 -0
- package/packages/sdk/dist/build/index.cjs +33 -0
- package/packages/sdk/dist/build/index.cjs.map +1 -0
- package/packages/sdk/dist/build/index.d.mts +40 -0
- package/packages/sdk/dist/build/index.d.ts +40 -0
- package/packages/sdk/dist/build/index.mjs +8 -0
- package/packages/sdk/dist/build/index.mjs.map +1 -0
- package/packages/sdk/dist/components/index.cjs +18700 -0
- package/packages/sdk/dist/components/index.cjs.map +1 -0
- package/packages/sdk/dist/components/index.d.mts +2094 -0
- package/packages/sdk/dist/components/index.d.ts +2094 -0
- package/packages/sdk/dist/components/index.mjs +18649 -0
- package/packages/sdk/dist/components/index.mjs.map +1 -0
- package/packages/sdk/dist/runtime/index.cjs +1469 -0
- package/packages/sdk/dist/runtime/index.cjs.map +1 -0
- package/packages/sdk/dist/runtime/index.d.mts +831 -0
- package/packages/sdk/dist/runtime/index.d.ts +831 -0
- package/packages/sdk/dist/runtime/index.mjs +1420 -0
- package/packages/sdk/dist/runtime/index.mjs.map +1 -0
- package/packages/sdk/dist/styles/antd-theme.cjs +60 -0
- package/packages/sdk/dist/styles/antd-theme.cjs.map +1 -0
- package/packages/sdk/dist/styles/antd-theme.d.mts +5 -0
- package/packages/sdk/dist/styles/antd-theme.d.ts +5 -0
- package/packages/sdk/dist/styles/antd-theme.mjs +35 -0
- package/packages/sdk/dist/styles/antd-theme.mjs.map +1 -0
- package/packages/sdk/dist/styles/tailwind-preset.cjs +2641 -0
- package/packages/sdk/dist/styles/tailwind-preset.cjs.map +1 -0
- package/packages/sdk/dist/styles/tailwind-preset.d.mts +75 -0
- package/packages/sdk/dist/styles/tailwind-preset.d.ts +75 -0
- package/packages/sdk/dist/styles/tailwind-preset.mjs +2618 -0
- package/packages/sdk/dist/styles/tailwind-preset.mjs.map +1 -0
- package/packages/sdk/dist/styles/tokens.css +73 -0
- package/packages/sdk/src/build-source/README.md +9 -0
- package/packages/sdk/src/build-source/bin/lowcode-workspace.mjs +7 -0
- package/packages/sdk/src/build-source/package.json +34 -0
- package/packages/sdk/src/build-source/scripts/build-forms.mjs +824 -0
- package/packages/sdk/src/build-source/scripts/build-forms.runtime-entry.test.ts +18 -0
- package/packages/sdk/src/build-source/scripts/build-pages.mjs +793 -0
- package/packages/sdk/src/build-source/scripts/build-workspace.mjs +64 -0
- package/packages/sdk/src/build-source/scripts/publish-all.mjs +127 -0
- package/packages/sdk/src/build-source/scripts/publish-oss.mjs +149 -0
- package/packages/sdk/src/build-source/scripts/register-bundle.mjs +1 -0
- package/packages/sdk/src/build-source/scripts/register.mjs +329 -0
- package/packages/sdk/src/build-source/scripts/sync-schema.mjs +301 -0
- package/packages/sdk/src/build-source/scripts/utils/form-api.mjs +639 -0
- package/packages/sdk/src/build-source/scripts/utils/form-api.test.ts +244 -0
- package/packages/sdk/src/build-source/scripts/utils/form-runtime-assets.mjs +57 -0
- package/packages/sdk/src/build-source/scripts/utils/form-runtime-assets.test.ts +135 -0
- package/packages/sdk/src/build-source/scripts/utils/incremental.mjs +210 -0
- package/packages/sdk/src/build-source/scripts/utils/load-config.mjs +257 -0
- package/packages/sdk/src/build-source/scripts/utils/load-config.test.ts +44 -0
- package/packages/sdk/src/build-source/scripts/utils/mime-types.mjs +70 -0
- package/packages/sdk/src/build-source/scripts/utils/namespace-css.mjs +61 -0
- package/packages/sdk/src/build-source/scripts/utils/oss-client.mjs +128 -0
- package/packages/sdk/src/build-source/scripts/utils/pages.mjs +80 -0
- package/packages/sdk/src/build-source/scripts/utils/progress.mjs +57 -0
- package/packages/sdk/src/build-source/scripts/utils/register-payload.mjs +89 -0
- package/packages/sdk/src/build-source/scripts/utils/register-payload.test.ts +76 -0
- package/packages/sdk/src/build-source/scripts/utils/runtime-css-check.mjs +44 -0
- package/packages/sdk/src/build-source/scripts/utils/runtime-css-check.test.ts +54 -0
- package/packages/sdk/src/build-source/scripts/utils/schema-transform.mjs +130 -0
- package/packages/sdk/src/build-source/scripts/utils/schema-transform.test.ts +141 -0
- package/packages/sdk/src/build-source/scripts/utils/tailwind-config.mjs +227 -0
- package/packages/sdk/src/build-source/scripts/utils/tailwind-config.test.ts +187 -0
- package/packages/sdk/src/build-source/src/cli.mjs +679 -0
- package/templates/sy-lowcode-app-workspace/app-workspace.config.ts +34 -0
- package/templates/sy-lowcode-app-workspace/examples/forms/customer/page.tsx +1 -0
- package/templates/sy-lowcode-app-workspace/examples/forms/customer/schema.ts +35 -0
- package/templates/sy-lowcode-app-workspace/index.html +12 -0
- package/templates/sy-lowcode-app-workspace/package.json +49 -0
- package/templates/sy-lowcode-app-workspace/postcss.config.cjs +6 -0
- package/templates/sy-lowcode-app-workspace/scripts/build-js-code.mjs +100 -0
- package/templates/sy-lowcode-app-workspace/src/dev/App.tsx +26 -0
- package/templates/sy-lowcode-app-workspace/src/forms/.gitkeep +1 -0
- package/templates/sy-lowcode-app-workspace/src/forms/README.md +48 -0
- package/templates/sy-lowcode-app-workspace/src/index.css +28 -0
- package/templates/sy-lowcode-app-workspace/src/js-code-nodes/.gitkeep +1 -0
- package/templates/sy-lowcode-app-workspace/src/js-code-nodes/types.d.ts +3 -0
- package/templates/sy-lowcode-app-workspace/src/main.tsx +36 -0
- package/templates/sy-lowcode-app-workspace/src/pages/.gitkeep +1 -0
- package/templates/sy-lowcode-app-workspace/src/shared/form-schema.ts +128 -0
- package/templates/sy-lowcode-app-workspace/src/types/app-workspace.types.ts +31 -0
- package/templates/sy-lowcode-app-workspace/tailwind.config.cjs +30 -0
- package/templates/sy-lowcode-app-workspace/tsconfig.app.json +24 -0
- package/templates/sy-lowcode-app-workspace/tsconfig.js-code-nodes.json +15 -0
- package/templates/sy-lowcode-app-workspace/tsconfig.json +7 -0
- package/templates/sy-lowcode-app-workspace/tsconfig.node.json +10 -0
- package/templates/sy-lowcode-app-workspace/vite.config.ts +32 -0
|
@@ -0,0 +1,2618 @@
|
|
|
1
|
+
// packages/sdk/src/components/tailwind.preset.ts
|
|
2
|
+
var syComponentSafelist = [
|
|
3
|
+
"sy-grid",
|
|
4
|
+
"sy-flex",
|
|
5
|
+
"sy-gap-3",
|
|
6
|
+
"sy-gap-4",
|
|
7
|
+
"sy-gap-y-3",
|
|
8
|
+
"sy-gap-y-4",
|
|
9
|
+
"sy-gap-y-5",
|
|
10
|
+
"sy-gap-y-6",
|
|
11
|
+
"sy-gap-y-8",
|
|
12
|
+
"sy-gap-x-4",
|
|
13
|
+
"sy-gap-x-6",
|
|
14
|
+
"sy-gap-x-8",
|
|
15
|
+
"sy-pt-4",
|
|
16
|
+
"sy-mr-2",
|
|
17
|
+
"sy-grid-cols-1",
|
|
18
|
+
"sy-grid-cell",
|
|
19
|
+
"md:sy-grid-cols-2",
|
|
20
|
+
"lg:sy-grid-cols-3",
|
|
21
|
+
"lg:sy-grid-cols-4",
|
|
22
|
+
"sy-form-actions",
|
|
23
|
+
"sy-form-renderer",
|
|
24
|
+
"sy-form-layout",
|
|
25
|
+
"sy-form-section",
|
|
26
|
+
"sy-form-section-plain",
|
|
27
|
+
"sy-form-section-card",
|
|
28
|
+
"sy-form-section-accent-blue",
|
|
29
|
+
"sy-form-section-accent-green",
|
|
30
|
+
"sy-form-section-header",
|
|
31
|
+
"sy-form-section-heading",
|
|
32
|
+
"sy-form-section-marker",
|
|
33
|
+
"sy-form-section-icon",
|
|
34
|
+
"sy-form-section-title-block",
|
|
35
|
+
"sy-form-section-title",
|
|
36
|
+
"sy-form-section-description",
|
|
37
|
+
"sy-form-section-arrow",
|
|
38
|
+
"sy-form-section-content",
|
|
39
|
+
"sy-layout-field",
|
|
40
|
+
"sy-field-wrapper",
|
|
41
|
+
"sy-field-label",
|
|
42
|
+
"sy-field-control",
|
|
43
|
+
"sy-field-readonly-value",
|
|
44
|
+
"sy-field-required",
|
|
45
|
+
"sy-field-tips",
|
|
46
|
+
"sy-field-error",
|
|
47
|
+
"sy-option-color-tag",
|
|
48
|
+
"sy-option-group-colored",
|
|
49
|
+
"sy-option-readonly-list",
|
|
50
|
+
"sy-form-container",
|
|
51
|
+
"sy-form-container-sm",
|
|
52
|
+
"sy-form-container-md",
|
|
53
|
+
"sy-form-container-lg",
|
|
54
|
+
"sy-form-container-xl",
|
|
55
|
+
"sy-form-container-full",
|
|
56
|
+
"sy-form-header",
|
|
57
|
+
"sy-form-title",
|
|
58
|
+
"sy-form-description",
|
|
59
|
+
"sy-form-body",
|
|
60
|
+
"sy-submit-runtime-page",
|
|
61
|
+
"sy-submit-page",
|
|
62
|
+
"sy-submit-card",
|
|
63
|
+
"sy-submit-form-shell",
|
|
64
|
+
"sy-lowcode-page",
|
|
65
|
+
"sy-page-section",
|
|
66
|
+
"sy-page-section-header",
|
|
67
|
+
"sy-page-section-title",
|
|
68
|
+
"sy-page-section-description",
|
|
69
|
+
"sy-page-section-body",
|
|
70
|
+
"sy-page-grid",
|
|
71
|
+
"sy-page-heading",
|
|
72
|
+
"sy-page-text",
|
|
73
|
+
"sy-page-unknown-node",
|
|
74
|
+
"sy-select-with-picker",
|
|
75
|
+
"sy-picker-trigger",
|
|
76
|
+
"sy-org-picker",
|
|
77
|
+
"sy-user-picker",
|
|
78
|
+
"sy-file-list",
|
|
79
|
+
"sy-image-grid",
|
|
80
|
+
"sy-attachment-upload-inline",
|
|
81
|
+
"sy-image-upload-inline",
|
|
82
|
+
"sy-upload-paste-zone",
|
|
83
|
+
"sy-mobile-field-trigger",
|
|
84
|
+
"sy-mobile-line-input",
|
|
85
|
+
"sy-mobile-text-input",
|
|
86
|
+
"sy-mobile-textarea-input",
|
|
87
|
+
"sy-mobile-number-input",
|
|
88
|
+
"sy-mobile-bottom-sheet",
|
|
89
|
+
"sy-mobile-bottom-sheet-content",
|
|
90
|
+
"sy-mobile-option-sheet",
|
|
91
|
+
"sy-mobile-choice-group",
|
|
92
|
+
"sy-mobile-image-grid",
|
|
93
|
+
"sy-mobile-date-sheet",
|
|
94
|
+
"sy-mobile-date-time-picker",
|
|
95
|
+
"sy-mobile-date-range-value",
|
|
96
|
+
"sy-editor",
|
|
97
|
+
"sy-editor-file-input",
|
|
98
|
+
"sy-detail-page",
|
|
99
|
+
"sy-detail-header",
|
|
100
|
+
"sy-detail-header-inner",
|
|
101
|
+
"sy-detail-main",
|
|
102
|
+
"sy-detail-card",
|
|
103
|
+
"sy-detail-summary-panel",
|
|
104
|
+
"sy-summary-panel-content",
|
|
105
|
+
"sy-summary-status-row",
|
|
106
|
+
"sy-summary-title",
|
|
107
|
+
"sy-summary-mobile-identity",
|
|
108
|
+
"sy-summary-mobile-person",
|
|
109
|
+
"sy-summary-mobile-avatar",
|
|
110
|
+
"sy-summary-mobile-person-name",
|
|
111
|
+
"sy-summary-mobile-time",
|
|
112
|
+
"sy-summary-meta-list",
|
|
113
|
+
"sy-summary-meta-item",
|
|
114
|
+
"sy-summary-meta-icon",
|
|
115
|
+
"sy-summary-meta-body",
|
|
116
|
+
"sy-summary-meta-label",
|
|
117
|
+
"sy-summary-meta-value",
|
|
118
|
+
"sy-process-summary",
|
|
119
|
+
"sy-process-summary-with-stamp",
|
|
120
|
+
"sy-process-status-stamp",
|
|
121
|
+
"sy-process-status-stamp-ring",
|
|
122
|
+
"sy-process-status-stamp-text",
|
|
123
|
+
"sy-process-status-stamp-star",
|
|
124
|
+
"sy-process-status-stamp-running",
|
|
125
|
+
"sy-process-status-stamp-approved",
|
|
126
|
+
"sy-process-status-stamp-rejected",
|
|
127
|
+
"sy-process-status-stamp-danger",
|
|
128
|
+
"sy-process-status-stamp-neutral",
|
|
129
|
+
"sy-readonly-files",
|
|
130
|
+
"sy-readonly-images",
|
|
131
|
+
"sy-readonly-attachments",
|
|
132
|
+
"sy-readonly-file-header",
|
|
133
|
+
"sy-readonly-bundle-download",
|
|
134
|
+
"sy-readonly-file-list",
|
|
135
|
+
"sy-readonly-file-item",
|
|
136
|
+
"sy-readonly-image-grid",
|
|
137
|
+
"sy-readonly-image-card",
|
|
138
|
+
"sy-readonly-image-thumb",
|
|
139
|
+
"sy-readonly-image-name",
|
|
140
|
+
"sy-image-preview-overlay",
|
|
141
|
+
"sy-image-preview-mask",
|
|
142
|
+
"sy-image-preview-dialog",
|
|
143
|
+
"sy-image-preview-close",
|
|
144
|
+
"sy-file-size-inline",
|
|
145
|
+
"sy-association-selector",
|
|
146
|
+
"sy-address-mobile",
|
|
147
|
+
"sy-location-field",
|
|
148
|
+
"sy-signature-field",
|
|
149
|
+
"sy-subform"
|
|
150
|
+
];
|
|
151
|
+
var internalUtilitySafelist = [
|
|
152
|
+
"absolute",
|
|
153
|
+
"after:absolute",
|
|
154
|
+
"after:bg-transparent",
|
|
155
|
+
"after:h-5",
|
|
156
|
+
"after:rounded",
|
|
157
|
+
"after:right-1",
|
|
158
|
+
"after:top-1/2",
|
|
159
|
+
"after:w-0.5",
|
|
160
|
+
"after:-translate-y-1/2",
|
|
161
|
+
"animate-pulse",
|
|
162
|
+
"backdrop-blur",
|
|
163
|
+
"backdrop-blur-lg",
|
|
164
|
+
"bg-amber-50",
|
|
165
|
+
"bg-ant-bg-container",
|
|
166
|
+
"bg-ant-bg-container/95",
|
|
167
|
+
"bg-ant-bg-elevated",
|
|
168
|
+
"bg-ant-bg-layout",
|
|
169
|
+
"bg-blue-50",
|
|
170
|
+
"bg-blue-50/60",
|
|
171
|
+
"bg-blue-100",
|
|
172
|
+
"bg-blue-500",
|
|
173
|
+
"bg-emerald-50",
|
|
174
|
+
"bg-gray-50/70",
|
|
175
|
+
"bg-gray-100",
|
|
176
|
+
"bg-gray-200",
|
|
177
|
+
"bg-green-100",
|
|
178
|
+
"bg-green-500",
|
|
179
|
+
"bg-red-50",
|
|
180
|
+
"bg-white",
|
|
181
|
+
"bg-white/80",
|
|
182
|
+
"block",
|
|
183
|
+
"border",
|
|
184
|
+
"border-2",
|
|
185
|
+
"border-amber-300",
|
|
186
|
+
"border-ant-border-secondary",
|
|
187
|
+
"border-b",
|
|
188
|
+
"border-blue-200",
|
|
189
|
+
"border-blue-300",
|
|
190
|
+
"border-blue-400",
|
|
191
|
+
"border-dashed",
|
|
192
|
+
"border-gray-100",
|
|
193
|
+
"border-gray-200",
|
|
194
|
+
"border-l",
|
|
195
|
+
"border-l-2",
|
|
196
|
+
"border-red-300",
|
|
197
|
+
"border-t",
|
|
198
|
+
"bottom-0",
|
|
199
|
+
"break-words",
|
|
200
|
+
"cursor-col-resize",
|
|
201
|
+
"cursor-pointer",
|
|
202
|
+
"duration-150",
|
|
203
|
+
"duration-1000",
|
|
204
|
+
"fixed",
|
|
205
|
+
"flex",
|
|
206
|
+
"flex-1",
|
|
207
|
+
"flex-col",
|
|
208
|
+
"flex-shrink-0",
|
|
209
|
+
"flex-wrap",
|
|
210
|
+
"font-medium",
|
|
211
|
+
"font-normal",
|
|
212
|
+
"font-semibold",
|
|
213
|
+
"gap-1",
|
|
214
|
+
"gap-1.5",
|
|
215
|
+
"gap-2",
|
|
216
|
+
"gap-3",
|
|
217
|
+
"gap-4",
|
|
218
|
+
"gap-5",
|
|
219
|
+
"grid",
|
|
220
|
+
"grid-cols-1",
|
|
221
|
+
"grid-cols-2",
|
|
222
|
+
"grid-cols-[1fr_auto_1fr]",
|
|
223
|
+
"grid-cols-[minmax(120px,1fr)_120px_minmax(160px,1fr)_auto]",
|
|
224
|
+
"h-0.5",
|
|
225
|
+
"h-1",
|
|
226
|
+
"h-3",
|
|
227
|
+
"h-6",
|
|
228
|
+
"h-7",
|
|
229
|
+
"h-8",
|
|
230
|
+
"h-10",
|
|
231
|
+
"h-11",
|
|
232
|
+
"h-12",
|
|
233
|
+
"h-16",
|
|
234
|
+
"h-full",
|
|
235
|
+
"hidden",
|
|
236
|
+
"hover:after:bg-ant-color-primary",
|
|
237
|
+
"inline-block",
|
|
238
|
+
"inline-flex",
|
|
239
|
+
"items-center",
|
|
240
|
+
"items-end",
|
|
241
|
+
"items-start",
|
|
242
|
+
"justify-between",
|
|
243
|
+
"justify-center",
|
|
244
|
+
"justify-end",
|
|
245
|
+
"justify-start",
|
|
246
|
+
"leading-5",
|
|
247
|
+
"leading-6",
|
|
248
|
+
"leading-9",
|
|
249
|
+
"left-0",
|
|
250
|
+
"left-[21px]",
|
|
251
|
+
"m-0",
|
|
252
|
+
"max-w-4xl",
|
|
253
|
+
"max-w-[1440px]",
|
|
254
|
+
"max-w-[180px]",
|
|
255
|
+
"mb-1",
|
|
256
|
+
"mb-2",
|
|
257
|
+
"mb-3",
|
|
258
|
+
"mb-4",
|
|
259
|
+
"mb-5",
|
|
260
|
+
"mb-6",
|
|
261
|
+
"md:flex-nowrap",
|
|
262
|
+
"md:flex-row",
|
|
263
|
+
"md:grid-cols-2",
|
|
264
|
+
"md:grid-cols-3",
|
|
265
|
+
"md:grid-cols-4",
|
|
266
|
+
"md:grid-cols-[160px_1fr]",
|
|
267
|
+
"md:items-center",
|
|
268
|
+
"md:justify-between",
|
|
269
|
+
"md:-mb-5",
|
|
270
|
+
"md:-mb-6",
|
|
271
|
+
"md:-mx-5",
|
|
272
|
+
"md:-mx-6",
|
|
273
|
+
"md:p-5",
|
|
274
|
+
"md:p-6",
|
|
275
|
+
"md:pb-8",
|
|
276
|
+
"md:px-4",
|
|
277
|
+
"md:px-5",
|
|
278
|
+
"md:px-6",
|
|
279
|
+
"md:py-4",
|
|
280
|
+
"md:py-6",
|
|
281
|
+
"md:text-[28px]",
|
|
282
|
+
"md:w-auto",
|
|
283
|
+
"min-h-0",
|
|
284
|
+
"min-h-6",
|
|
285
|
+
"min-h-[360px]",
|
|
286
|
+
"min-w-0",
|
|
287
|
+
"min-w-[88px]",
|
|
288
|
+
"ml-1",
|
|
289
|
+
"ml-2",
|
|
290
|
+
"ml-4",
|
|
291
|
+
"mr-2",
|
|
292
|
+
"mt-0.5",
|
|
293
|
+
"mt-1",
|
|
294
|
+
"mt-2",
|
|
295
|
+
"mt-3",
|
|
296
|
+
"mt-4",
|
|
297
|
+
"mt-5",
|
|
298
|
+
"mt-6",
|
|
299
|
+
"mx-4",
|
|
300
|
+
"mx-auto",
|
|
301
|
+
"my-1",
|
|
302
|
+
"object-cover",
|
|
303
|
+
"overflow-hidden",
|
|
304
|
+
"overflow-x-auto",
|
|
305
|
+
"p-0",
|
|
306
|
+
"p-4",
|
|
307
|
+
"p-5",
|
|
308
|
+
"p-6",
|
|
309
|
+
"pb-0",
|
|
310
|
+
"pb-4",
|
|
311
|
+
"pb-5",
|
|
312
|
+
"pb-8",
|
|
313
|
+
"pb-24",
|
|
314
|
+
"pl-3",
|
|
315
|
+
"pl-4",
|
|
316
|
+
"pr-3",
|
|
317
|
+
"pt-4",
|
|
318
|
+
"px-1.5",
|
|
319
|
+
"px-2",
|
|
320
|
+
"px-2.5",
|
|
321
|
+
"px-3",
|
|
322
|
+
"px-4",
|
|
323
|
+
"px-5",
|
|
324
|
+
"px-6",
|
|
325
|
+
"py-0.5",
|
|
326
|
+
"py-1",
|
|
327
|
+
"py-2",
|
|
328
|
+
"py-3",
|
|
329
|
+
"py-4",
|
|
330
|
+
"py-6",
|
|
331
|
+
"py-8",
|
|
332
|
+
"py-16",
|
|
333
|
+
"relative",
|
|
334
|
+
"right-0",
|
|
335
|
+
"rounded",
|
|
336
|
+
"rounded-b-lg",
|
|
337
|
+
"rounded-full",
|
|
338
|
+
"rounded-lg",
|
|
339
|
+
"rounded-md",
|
|
340
|
+
"rounded-xl",
|
|
341
|
+
"shadow-[0_-8px_24px_rgba(15,23,42,0.06)]",
|
|
342
|
+
"shadow-[0_0_0_4px_var(--ant-color-bg-layout,#f5f5f5)]",
|
|
343
|
+
"shadow-sm",
|
|
344
|
+
"shrink-0",
|
|
345
|
+
"sm:block",
|
|
346
|
+
"space-y-2",
|
|
347
|
+
"space-y-3",
|
|
348
|
+
"space-y-4",
|
|
349
|
+
"space-y-5",
|
|
350
|
+
"space-y-6",
|
|
351
|
+
"supports-[padding:max(0px)]:pb-[max(0.75rem,env(safe-area-inset-bottom))]",
|
|
352
|
+
"text-2xl",
|
|
353
|
+
"text-amber-700",
|
|
354
|
+
"text-ant-color-text",
|
|
355
|
+
"text-ant-color-text-quaternary",
|
|
356
|
+
"text-ant-color-text-secondary",
|
|
357
|
+
"text-ant-color-text-tertiary",
|
|
358
|
+
"text-ant-primary",
|
|
359
|
+
"text-ant-text",
|
|
360
|
+
"text-ant-text-secondary",
|
|
361
|
+
"text-ant-text-tertiary",
|
|
362
|
+
"text-base",
|
|
363
|
+
"text-blue-500",
|
|
364
|
+
"text-blue-600",
|
|
365
|
+
"text-blue-700",
|
|
366
|
+
"text-center",
|
|
367
|
+
"text-emerald-700",
|
|
368
|
+
"text-gray-300",
|
|
369
|
+
"text-gray-400",
|
|
370
|
+
"text-gray-500",
|
|
371
|
+
"text-gray-600",
|
|
372
|
+
"text-gray-900",
|
|
373
|
+
"text-green-500",
|
|
374
|
+
"text-red-700",
|
|
375
|
+
"text-left",
|
|
376
|
+
"text-lg",
|
|
377
|
+
"text-sm",
|
|
378
|
+
"text-xl",
|
|
379
|
+
"text-xs",
|
|
380
|
+
"top-0",
|
|
381
|
+
"top-11",
|
|
382
|
+
"transition-all",
|
|
383
|
+
"truncate",
|
|
384
|
+
"w-0.5",
|
|
385
|
+
"w-3",
|
|
386
|
+
"w-4",
|
|
387
|
+
"w-6",
|
|
388
|
+
"w-7",
|
|
389
|
+
"w-8",
|
|
390
|
+
"w-10",
|
|
391
|
+
"w-11",
|
|
392
|
+
"w-12",
|
|
393
|
+
"w-48",
|
|
394
|
+
"w-[260px]",
|
|
395
|
+
"w-full",
|
|
396
|
+
"whitespace-nowrap",
|
|
397
|
+
"z-10",
|
|
398
|
+
"z-20",
|
|
399
|
+
"-mb-4",
|
|
400
|
+
"-mx-4",
|
|
401
|
+
"-right-3"
|
|
402
|
+
];
|
|
403
|
+
var sySafelist = Array.from(/* @__PURE__ */ new Set([...syComponentSafelist, ...internalUtilitySafelist]));
|
|
404
|
+
var tailwind_preset_default = {
|
|
405
|
+
important: ".sy-app-workspace",
|
|
406
|
+
safelist: sySafelist,
|
|
407
|
+
theme: {
|
|
408
|
+
extend: {
|
|
409
|
+
colors: {
|
|
410
|
+
primary: "var(--sy-color-primary)",
|
|
411
|
+
success: "var(--sy-color-success)",
|
|
412
|
+
warning: "var(--sy-color-warning)",
|
|
413
|
+
error: "var(--sy-color-error)",
|
|
414
|
+
default: "var(--sy-color-text)",
|
|
415
|
+
secondary: "var(--sy-color-text-secondary)",
|
|
416
|
+
tertiary: "var(--sy-color-text-tertiary)",
|
|
417
|
+
disabled: "var(--sy-color-text-disabled)",
|
|
418
|
+
container: "var(--sy-color-bg-container)",
|
|
419
|
+
layout: "var(--sy-color-bg-layout)",
|
|
420
|
+
elevated: "var(--sy-color-bg-elevated)",
|
|
421
|
+
border: "var(--sy-color-border)",
|
|
422
|
+
"ant-primary": "var(--ant-color-primary, #1677ff)",
|
|
423
|
+
"ant-text": "var(--ant-color-text, rgba(0,0,0,0.88))",
|
|
424
|
+
"ant-text-secondary": "var(--ant-color-text-secondary, rgba(0,0,0,0.65))",
|
|
425
|
+
"ant-text-tertiary": "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))",
|
|
426
|
+
"ant-text-quaternary": "var(--ant-color-text-quaternary, rgba(0,0,0,0.25))",
|
|
427
|
+
"ant-color-primary": "var(--ant-color-primary, #1677ff)",
|
|
428
|
+
"ant-color-text": "var(--ant-color-text, rgba(0,0,0,0.88))",
|
|
429
|
+
"ant-color-text-secondary": "var(--ant-color-text-secondary, rgba(0,0,0,0.65))",
|
|
430
|
+
"ant-color-text-tertiary": "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))",
|
|
431
|
+
"ant-color-text-quaternary": "var(--ant-color-text-quaternary, rgba(0,0,0,0.25))",
|
|
432
|
+
"ant-border": "var(--ant-color-border, #d9d9d9)",
|
|
433
|
+
"ant-border-secondary": "var(--ant-color-border-secondary, #f0f0f0)",
|
|
434
|
+
"ant-error": "var(--ant-color-error, #ff4d4f)",
|
|
435
|
+
"ant-success": "var(--ant-color-success, #52c41a)",
|
|
436
|
+
"ant-warning": "var(--ant-color-warning, #faad14)",
|
|
437
|
+
"ant-bg-container": "var(--ant-color-bg-container, #ffffff)",
|
|
438
|
+
"ant-bg-elevated": "var(--ant-color-bg-elevated, #ffffff)",
|
|
439
|
+
"ant-bg-layout": "var(--ant-color-bg-layout, #f5f5f5)",
|
|
440
|
+
"ant-split": "var(--ant-color-split, rgba(0,0,0,0.06))"
|
|
441
|
+
},
|
|
442
|
+
spacing: {
|
|
443
|
+
xs: "var(--sy-spacing-xs)",
|
|
444
|
+
sm: "var(--sy-spacing-sm)",
|
|
445
|
+
md: "var(--sy-spacing-md)",
|
|
446
|
+
lg: "var(--sy-spacing-lg)",
|
|
447
|
+
xl: "var(--sy-spacing-xl)",
|
|
448
|
+
"form-gap": "var(--sy-form-gap, 16px)",
|
|
449
|
+
"form-padding": "var(--sy-form-padding, 24px)",
|
|
450
|
+
"form-field-height": "var(--sy-form-field-height, 32px)"
|
|
451
|
+
},
|
|
452
|
+
borderRadius: {
|
|
453
|
+
sm: "var(--sy-radius-sm)",
|
|
454
|
+
md: "var(--sy-radius-md)",
|
|
455
|
+
lg: "var(--sy-radius-lg)",
|
|
456
|
+
form: "var(--sy-form-radius, 6px)"
|
|
457
|
+
},
|
|
458
|
+
fontSize: {
|
|
459
|
+
"sm-sy": "var(--sy-font-size-sm)",
|
|
460
|
+
"base-sy": "var(--sy-font-size-base)",
|
|
461
|
+
"lg-sy": "var(--sy-font-size-lg)",
|
|
462
|
+
"xl-sy": "var(--sy-font-size-xl)",
|
|
463
|
+
"2xl-sy": "var(--sy-font-size-2xl)"
|
|
464
|
+
},
|
|
465
|
+
boxShadow: {
|
|
466
|
+
subtle: "var(--sy-shadow-sm)",
|
|
467
|
+
card: "var(--sy-shadow-md)",
|
|
468
|
+
popover: "var(--sy-shadow-lg)"
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
corePlugins: {
|
|
473
|
+
preflight: false
|
|
474
|
+
},
|
|
475
|
+
plugins: [
|
|
476
|
+
({ addUtilities, addComponents }) => {
|
|
477
|
+
addUtilities(
|
|
478
|
+
{
|
|
479
|
+
".sy-grid": { display: "grid" },
|
|
480
|
+
".sy-flex": { display: "flex" },
|
|
481
|
+
".sy-gap-3": { gap: "0.75rem" },
|
|
482
|
+
".sy-gap-4": { gap: "1rem" },
|
|
483
|
+
".sy-gap-y-3": { rowGap: "0.75rem" },
|
|
484
|
+
".sy-gap-y-4": { rowGap: "1rem" },
|
|
485
|
+
".sy-gap-y-5": { rowGap: "1.25rem" },
|
|
486
|
+
".sy-gap-y-6": { rowGap: "1.5rem" },
|
|
487
|
+
".sy-gap-y-8": { rowGap: "2rem" },
|
|
488
|
+
".sy-gap-x-4": { columnGap: "1rem" },
|
|
489
|
+
".sy-gap-x-6": { columnGap: "1.5rem" },
|
|
490
|
+
".sy-gap-x-8": { columnGap: "2rem" },
|
|
491
|
+
".sy-pt-4": { paddingTop: "1rem" },
|
|
492
|
+
".sy-mr-2": { marginRight: "0.5rem" },
|
|
493
|
+
".sy-grid-cols-1": { gridTemplateColumns: "repeat(1, minmax(0, 1fr))" },
|
|
494
|
+
".sy-grid-cols-2": { gridTemplateColumns: "repeat(2, minmax(0, 1fr))" },
|
|
495
|
+
".sy-grid-cols-3": { gridTemplateColumns: "repeat(3, minmax(0, 1fr))" },
|
|
496
|
+
".sy-grid-cols-4": { gridTemplateColumns: "repeat(4, minmax(0, 1fr))" }
|
|
497
|
+
},
|
|
498
|
+
["responsive"]
|
|
499
|
+
);
|
|
500
|
+
addComponents({
|
|
501
|
+
".sy-grid-cell": {
|
|
502
|
+
minWidth: "0"
|
|
503
|
+
},
|
|
504
|
+
".sy-grid-cell > * + *": {
|
|
505
|
+
marginTop: "var(--sy-form-field-row-gap, 24px)"
|
|
506
|
+
},
|
|
507
|
+
".sy-form-layout": {
|
|
508
|
+
display: "flex",
|
|
509
|
+
flexDirection: "column",
|
|
510
|
+
gap: "var(--sy-form-field-row-gap, 24px)"
|
|
511
|
+
},
|
|
512
|
+
".sy-form-renderer": {
|
|
513
|
+
minWidth: "0"
|
|
514
|
+
},
|
|
515
|
+
".sy-runtime-page, .sy-form-container, .sy-form-shell, .sy-form-renderer, .sy-lowcode-page": {
|
|
516
|
+
"--ant-form-item-margin-bottom": "12px !important"
|
|
517
|
+
},
|
|
518
|
+
".sy-runtime-page :where(.ant-form, .ant-form-item), .sy-form-container :where(.ant-form, .ant-form-item), .sy-form-shell :where(.ant-form, .ant-form-item), .sy-form-renderer :where(.ant-form, .ant-form-item), .sy-lowcode-page :where(.ant-form, .ant-form-item)": {
|
|
519
|
+
"--ant-form-item-margin-bottom": "12px !important"
|
|
520
|
+
},
|
|
521
|
+
".sy-form-renderer.sy-grid": {
|
|
522
|
+
rowGap: "0"
|
|
523
|
+
},
|
|
524
|
+
".sy-form-renderer.sy-form-layout, .sy-form-renderer .sy-form-layout": {
|
|
525
|
+
gap: "0"
|
|
526
|
+
},
|
|
527
|
+
".sy-form-renderer .sy-grid-cell > * + *": {
|
|
528
|
+
marginTop: "0"
|
|
529
|
+
},
|
|
530
|
+
".sy-runtime-page__content.sy-detail-page": {
|
|
531
|
+
maxWidth: "100% !important",
|
|
532
|
+
padding: "0 !important"
|
|
533
|
+
},
|
|
534
|
+
".sy-detail-page": {
|
|
535
|
+
width: "100%"
|
|
536
|
+
},
|
|
537
|
+
".sy-detail-header": {
|
|
538
|
+
width: "100%",
|
|
539
|
+
background: "var(--ant-color-bg-container, #ffffff)",
|
|
540
|
+
borderBottom: "0"
|
|
541
|
+
},
|
|
542
|
+
".sy-detail-header-inner": {
|
|
543
|
+
width: "100%",
|
|
544
|
+
maxWidth: "1120px",
|
|
545
|
+
margin: "0 auto",
|
|
546
|
+
padding: "24px 24px 20px"
|
|
547
|
+
},
|
|
548
|
+
".sy-detail-main": {
|
|
549
|
+
width: "100%",
|
|
550
|
+
maxWidth: "1180px",
|
|
551
|
+
margin: "0 auto",
|
|
552
|
+
padding: "24px 24px 96px",
|
|
553
|
+
display: "flex",
|
|
554
|
+
flexDirection: "column",
|
|
555
|
+
gap: "24px"
|
|
556
|
+
},
|
|
557
|
+
".sy-detail-card": {
|
|
558
|
+
width: "100%",
|
|
559
|
+
border: "1px solid var(--ant-color-border-secondary, #f0f0f0)",
|
|
560
|
+
borderRadius: "8px",
|
|
561
|
+
background: "var(--ant-color-bg-container, #ffffff)",
|
|
562
|
+
padding: "24px"
|
|
563
|
+
},
|
|
564
|
+
".sy-detail-summary-panel": {
|
|
565
|
+
border: "0 !important",
|
|
566
|
+
borderRadius: "0 !important",
|
|
567
|
+
boxShadow: "none !important"
|
|
568
|
+
},
|
|
569
|
+
".sy-summary-mobile-identity": {
|
|
570
|
+
display: "none"
|
|
571
|
+
},
|
|
572
|
+
".sy-process-summary": {
|
|
573
|
+
position: "relative"
|
|
574
|
+
},
|
|
575
|
+
".sy-process-summary-with-stamp .sy-summary-panel-content": {
|
|
576
|
+
paddingRight: "168px",
|
|
577
|
+
minHeight: "128px"
|
|
578
|
+
},
|
|
579
|
+
".sy-process-status-stamp": {
|
|
580
|
+
position: "absolute",
|
|
581
|
+
top: "18px",
|
|
582
|
+
right: "24px",
|
|
583
|
+
zIndex: "1",
|
|
584
|
+
width: "116px",
|
|
585
|
+
height: "116px",
|
|
586
|
+
color: "var(--sy-process-status-stamp-color)",
|
|
587
|
+
pointerEvents: "none",
|
|
588
|
+
userSelect: "none",
|
|
589
|
+
opacity: "0.92",
|
|
590
|
+
transform: "rotate(-10deg)"
|
|
591
|
+
},
|
|
592
|
+
".sy-process-status-stamp-running": {
|
|
593
|
+
"--sy-process-status-stamp-color": "#62c8ee"
|
|
594
|
+
},
|
|
595
|
+
".sy-process-status-stamp-approved": {
|
|
596
|
+
"--sy-process-status-stamp-color": "#5fd08f"
|
|
597
|
+
},
|
|
598
|
+
".sy-process-status-stamp-rejected": {
|
|
599
|
+
"--sy-process-status-stamp-color": "#ffc15d"
|
|
600
|
+
},
|
|
601
|
+
".sy-process-status-stamp-danger": {
|
|
602
|
+
"--sy-process-status-stamp-color": "#ff7875"
|
|
603
|
+
},
|
|
604
|
+
".sy-process-status-stamp-neutral": {
|
|
605
|
+
"--sy-process-status-stamp-color": "#9ca3af"
|
|
606
|
+
},
|
|
607
|
+
".sy-process-status-stamp-ring": {
|
|
608
|
+
position: "relative",
|
|
609
|
+
display: "block",
|
|
610
|
+
width: "100%",
|
|
611
|
+
height: "100%",
|
|
612
|
+
border: "3px solid currentColor",
|
|
613
|
+
borderRadius: "9999px"
|
|
614
|
+
},
|
|
615
|
+
".sy-process-status-stamp-ring::before": {
|
|
616
|
+
content: '""',
|
|
617
|
+
position: "absolute",
|
|
618
|
+
inset: "7px",
|
|
619
|
+
border: "2px solid currentColor",
|
|
620
|
+
borderRadius: "9999px"
|
|
621
|
+
},
|
|
622
|
+
".sy-process-status-stamp-text": {
|
|
623
|
+
position: "absolute",
|
|
624
|
+
left: "50%",
|
|
625
|
+
top: "50%",
|
|
626
|
+
transform: "translate(-50%, -50%) rotate(-22deg)",
|
|
627
|
+
zIndex: "2",
|
|
628
|
+
whiteSpace: "nowrap",
|
|
629
|
+
fontSize: "24px",
|
|
630
|
+
lineHeight: "1",
|
|
631
|
+
fontWeight: "700",
|
|
632
|
+
letterSpacing: "0",
|
|
633
|
+
textShadow: "0 0 3px #fff, 0 0 5px #fff"
|
|
634
|
+
},
|
|
635
|
+
".sy-process-status-stamp-star": {
|
|
636
|
+
position: "absolute",
|
|
637
|
+
transform: "translate(-50%, -50%)",
|
|
638
|
+
zIndex: "1",
|
|
639
|
+
fontSize: "9px",
|
|
640
|
+
lineHeight: "1"
|
|
641
|
+
},
|
|
642
|
+
".sy-submit-page": {
|
|
643
|
+
minHeight: "100%"
|
|
644
|
+
},
|
|
645
|
+
".sy-runtime-page.sy-submit-runtime-page": {
|
|
646
|
+
minHeight: "0"
|
|
647
|
+
},
|
|
648
|
+
".sy-submit-card": {
|
|
649
|
+
minHeight: "var(--sy-submit-card-min-height, max(0px, min(640px, calc(100vh - var(--sy-submit-card-viewport-offset, 220px)))))"
|
|
650
|
+
},
|
|
651
|
+
".sy-submit-form-shell": {
|
|
652
|
+
display: "flex !important",
|
|
653
|
+
minHeight: "100%",
|
|
654
|
+
flex: "1 1 auto",
|
|
655
|
+
flexDirection: "column"
|
|
656
|
+
},
|
|
657
|
+
".sy-form-section": {
|
|
658
|
+
width: "100%",
|
|
659
|
+
minWidth: "0",
|
|
660
|
+
marginBottom: "16px",
|
|
661
|
+
"--sy-form-section-accent-color": "var(--ant-color-primary, #1677ff)",
|
|
662
|
+
"--sy-form-section-accent-bg": "var(--ant-color-primary-bg, #e6f4ff)"
|
|
663
|
+
},
|
|
664
|
+
".sy-form-section-accent-blue": {
|
|
665
|
+
"--sy-form-section-accent-color": "var(--ant-color-primary, #1677ff)",
|
|
666
|
+
"--sy-form-section-accent-bg": "var(--ant-color-primary-bg, #e6f4ff)"
|
|
667
|
+
},
|
|
668
|
+
".sy-form-section-accent-green": {
|
|
669
|
+
"--sy-form-section-accent-color": "var(--ant-color-success, #52c41a)",
|
|
670
|
+
"--sy-form-section-accent-bg": "var(--ant-color-success-bg, #f6ffed)"
|
|
671
|
+
},
|
|
672
|
+
".sy-form-section-header": {
|
|
673
|
+
display: "flex",
|
|
674
|
+
alignItems: "center",
|
|
675
|
+
justifyContent: "space-between",
|
|
676
|
+
gap: "12px",
|
|
677
|
+
minWidth: "0",
|
|
678
|
+
outline: "none"
|
|
679
|
+
},
|
|
680
|
+
'.sy-form-section-header[role="button"]': {
|
|
681
|
+
cursor: "pointer"
|
|
682
|
+
},
|
|
683
|
+
'.sy-form-section-header[role="button"]:focus-visible': {
|
|
684
|
+
borderRadius: "6px",
|
|
685
|
+
boxShadow: "0 0 0 3px var(--ant-control-outline, rgba(22,119,255,0.16))"
|
|
686
|
+
},
|
|
687
|
+
".sy-form-section-heading": {
|
|
688
|
+
display: "flex",
|
|
689
|
+
alignItems: "center",
|
|
690
|
+
minWidth: "0"
|
|
691
|
+
},
|
|
692
|
+
".sy-form-section-marker": {
|
|
693
|
+
flex: "0 0 auto",
|
|
694
|
+
width: "4px",
|
|
695
|
+
height: "24px",
|
|
696
|
+
marginRight: "12px",
|
|
697
|
+
borderRadius: "999px",
|
|
698
|
+
backgroundColor: "var(--sy-form-section-accent-color)"
|
|
699
|
+
},
|
|
700
|
+
".sy-form-section-icon": {
|
|
701
|
+
display: "inline-flex",
|
|
702
|
+
alignItems: "center",
|
|
703
|
+
justifyContent: "center",
|
|
704
|
+
flex: "0 0 auto",
|
|
705
|
+
width: "22px",
|
|
706
|
+
height: "22px",
|
|
707
|
+
marginRight: "12px",
|
|
708
|
+
color: "var(--sy-form-section-accent-color)",
|
|
709
|
+
fontSize: "20px",
|
|
710
|
+
lineHeight: "1"
|
|
711
|
+
},
|
|
712
|
+
".sy-form-section-title-block": {
|
|
713
|
+
minWidth: "0"
|
|
714
|
+
},
|
|
715
|
+
".sy-form-section-title": {
|
|
716
|
+
margin: "0",
|
|
717
|
+
fontSize: "16px",
|
|
718
|
+
lineHeight: "24px",
|
|
719
|
+
fontWeight: "600",
|
|
720
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))"
|
|
721
|
+
},
|
|
722
|
+
".sy-form-section-description": {
|
|
723
|
+
margin: "4px 0 0",
|
|
724
|
+
fontSize: "13px",
|
|
725
|
+
lineHeight: "20px",
|
|
726
|
+
color: "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))"
|
|
727
|
+
},
|
|
728
|
+
".sy-form-section-arrow": {
|
|
729
|
+
flex: "0 0 auto",
|
|
730
|
+
color: "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))",
|
|
731
|
+
fontSize: "12px",
|
|
732
|
+
lineHeight: "1",
|
|
733
|
+
transition: "transform 0.2s ease"
|
|
734
|
+
},
|
|
735
|
+
".sy-form-section-content": {
|
|
736
|
+
minWidth: "0",
|
|
737
|
+
padding: "28px 32px",
|
|
738
|
+
border: "1px solid var(--ant-color-border-secondary, #f0f0f0)",
|
|
739
|
+
borderRadius: "8px",
|
|
740
|
+
background: "var(--ant-color-bg-container, #ffffff)",
|
|
741
|
+
boxShadow: "0 1px 2px rgba(15, 23, 42, 0.03)"
|
|
742
|
+
},
|
|
743
|
+
".sy-form-section-plain": {
|
|
744
|
+
background: "transparent",
|
|
745
|
+
border: "0",
|
|
746
|
+
boxShadow: "none"
|
|
747
|
+
},
|
|
748
|
+
".sy-form-section-plain > .sy-form-section-header": {
|
|
749
|
+
marginBottom: "20px"
|
|
750
|
+
},
|
|
751
|
+
'.sy-form-section[data-collapsed="true"] > .sy-form-section-header': {
|
|
752
|
+
marginBottom: "0"
|
|
753
|
+
},
|
|
754
|
+
".sy-form-section-card": {
|
|
755
|
+
overflow: "hidden",
|
|
756
|
+
border: "1px solid var(--ant-color-border-secondary, #f0f0f0)",
|
|
757
|
+
borderRadius: "8px",
|
|
758
|
+
background: "var(--ant-color-bg-container, #ffffff)",
|
|
759
|
+
boxShadow: "0 4px 16px rgba(15, 23, 42, 0.04)"
|
|
760
|
+
},
|
|
761
|
+
".sy-form-section-card > .sy-form-section-header": {
|
|
762
|
+
marginBottom: "0",
|
|
763
|
+
padding: "18px 24px",
|
|
764
|
+
borderBottom: "1px solid var(--ant-color-split, rgba(0,0,0,0.06))",
|
|
765
|
+
background: "var(--sy-form-section-accent-bg)"
|
|
766
|
+
},
|
|
767
|
+
".sy-form-section-card > .sy-form-section-content": {
|
|
768
|
+
padding: "28px 24px 32px",
|
|
769
|
+
border: "0",
|
|
770
|
+
borderRadius: "0",
|
|
771
|
+
boxShadow: "none"
|
|
772
|
+
},
|
|
773
|
+
'.sy-form-section-card[data-collapsed="true"] > .sy-form-section-header': {
|
|
774
|
+
borderBottom: "0"
|
|
775
|
+
},
|
|
776
|
+
"@media (max-width: 640px)": {
|
|
777
|
+
".sy-detail-header": {
|
|
778
|
+
background: "linear-gradient(180deg, var(--ant-color-primary, #3b82f6) 0 118px, var(--ant-color-bg-layout, #f5f5f5) 118px 100%)",
|
|
779
|
+
padding: "18px 20px 20px"
|
|
780
|
+
},
|
|
781
|
+
".sy-detail-header-inner": {
|
|
782
|
+
maxWidth: "100%",
|
|
783
|
+
padding: "0"
|
|
784
|
+
},
|
|
785
|
+
".sy-detail-summary-panel": {
|
|
786
|
+
overflow: "hidden",
|
|
787
|
+
borderRadius: "12px !important",
|
|
788
|
+
background: "var(--ant-color-bg-container, #ffffff)"
|
|
789
|
+
},
|
|
790
|
+
".sy-detail-summary-panel .sy-summary-panel-content": {
|
|
791
|
+
padding: "26px 28px"
|
|
792
|
+
},
|
|
793
|
+
".sy-detail-summary-panel .sy-summary-status-row": {
|
|
794
|
+
display: "none"
|
|
795
|
+
},
|
|
796
|
+
".sy-detail-summary-panel .sy-summary-title": {
|
|
797
|
+
fontSize: "20px",
|
|
798
|
+
lineHeight: "30px",
|
|
799
|
+
fontWeight: "700"
|
|
800
|
+
},
|
|
801
|
+
".sy-detail-summary-panel .sy-summary-mobile-identity": {
|
|
802
|
+
display: "flex",
|
|
803
|
+
flexDirection: "column",
|
|
804
|
+
gap: "8px",
|
|
805
|
+
marginTop: "18px",
|
|
806
|
+
color: "var(--ant-color-text-secondary, rgba(0,0,0,0.65))",
|
|
807
|
+
fontSize: "15px",
|
|
808
|
+
lineHeight: "23px"
|
|
809
|
+
},
|
|
810
|
+
".sy-detail-summary-panel .sy-summary-mobile-person": {
|
|
811
|
+
display: "inline-flex",
|
|
812
|
+
alignItems: "center",
|
|
813
|
+
minWidth: "0",
|
|
814
|
+
gap: "8px"
|
|
815
|
+
},
|
|
816
|
+
".sy-detail-summary-panel .sy-summary-mobile-avatar": {
|
|
817
|
+
display: "inline-flex",
|
|
818
|
+
alignItems: "center",
|
|
819
|
+
justifyContent: "center",
|
|
820
|
+
flex: "0 0 auto"
|
|
821
|
+
},
|
|
822
|
+
".sy-detail-summary-panel .sy-summary-mobile-avatar .ant-avatar": {
|
|
823
|
+
background: "var(--ant-color-fill-secondary, rgba(0,0,0,0.06))",
|
|
824
|
+
color: "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))"
|
|
825
|
+
},
|
|
826
|
+
".sy-detail-summary-panel .sy-summary-mobile-person-name": {
|
|
827
|
+
minWidth: "0",
|
|
828
|
+
overflow: "hidden",
|
|
829
|
+
textOverflow: "ellipsis",
|
|
830
|
+
whiteSpace: "nowrap"
|
|
831
|
+
},
|
|
832
|
+
".sy-detail-summary-panel .sy-summary-mobile-time": {
|
|
833
|
+
color: "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))",
|
|
834
|
+
fontSize: "13px",
|
|
835
|
+
lineHeight: "20px"
|
|
836
|
+
},
|
|
837
|
+
".sy-detail-summary-panel .sy-summary-meta-list": {
|
|
838
|
+
display: "none"
|
|
839
|
+
},
|
|
840
|
+
".sy-detail-main": {
|
|
841
|
+
maxWidth: "100%",
|
|
842
|
+
padding: "0 0 96px"
|
|
843
|
+
},
|
|
844
|
+
".sy-process-summary-with-stamp .sy-summary-panel-content": {
|
|
845
|
+
paddingRight: "112px",
|
|
846
|
+
minHeight: "124px"
|
|
847
|
+
},
|
|
848
|
+
".sy-process-summary-with-stamp .sy-summary-title": {
|
|
849
|
+
maxWidth: "100%"
|
|
850
|
+
},
|
|
851
|
+
".sy-process-status-stamp": {
|
|
852
|
+
top: "16px",
|
|
853
|
+
right: "16px",
|
|
854
|
+
width: "82px",
|
|
855
|
+
height: "82px"
|
|
856
|
+
},
|
|
857
|
+
".sy-process-status-stamp-ring": {
|
|
858
|
+
borderWidth: "2px"
|
|
859
|
+
},
|
|
860
|
+
".sy-process-status-stamp-ring::before": {
|
|
861
|
+
inset: "5px",
|
|
862
|
+
borderWidth: "1.5px"
|
|
863
|
+
},
|
|
864
|
+
".sy-process-status-stamp-text": {
|
|
865
|
+
fontSize: "17px"
|
|
866
|
+
},
|
|
867
|
+
".sy-process-status-stamp-star": {
|
|
868
|
+
fontSize: "6px"
|
|
869
|
+
},
|
|
870
|
+
".sy-form-section-content": {
|
|
871
|
+
padding: "20px 16px"
|
|
872
|
+
},
|
|
873
|
+
".sy-form-section-card > .sy-form-section-header": {
|
|
874
|
+
padding: "16px"
|
|
875
|
+
},
|
|
876
|
+
".sy-form-section-card > .sy-form-section-content": {
|
|
877
|
+
padding: "20px 16px 24px"
|
|
878
|
+
}
|
|
879
|
+
},
|
|
880
|
+
".sy-layout-field, .sy-layout-field-full": {
|
|
881
|
+
width: "100%",
|
|
882
|
+
minWidth: "0"
|
|
883
|
+
},
|
|
884
|
+
"@media (min-width: 768px)": {
|
|
885
|
+
".sy-layout-field": {
|
|
886
|
+
maxWidth: "50%"
|
|
887
|
+
}
|
|
888
|
+
},
|
|
889
|
+
// FieldWrapper
|
|
890
|
+
".sy-field-wrapper": {
|
|
891
|
+
display: "flex",
|
|
892
|
+
flexDirection: "column",
|
|
893
|
+
gap: "8px",
|
|
894
|
+
minWidth: "0"
|
|
895
|
+
},
|
|
896
|
+
".sy-field-label": {
|
|
897
|
+
display: "inline-flex",
|
|
898
|
+
alignItems: "center",
|
|
899
|
+
fontSize: "14px",
|
|
900
|
+
lineHeight: "22px",
|
|
901
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))",
|
|
902
|
+
fontWeight: "400"
|
|
903
|
+
},
|
|
904
|
+
".sy-field-control": {
|
|
905
|
+
"& .ant-input": { width: "100%" },
|
|
906
|
+
"& .ant-select": { width: "100%" },
|
|
907
|
+
"& .ant-picker": { width: "100%" },
|
|
908
|
+
"& .ant-input-number": { width: "100%" }
|
|
909
|
+
},
|
|
910
|
+
".sy-field-readonly-value": {
|
|
911
|
+
fontSize: "14px",
|
|
912
|
+
lineHeight: "32px",
|
|
913
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))",
|
|
914
|
+
minHeight: "32px",
|
|
915
|
+
padding: "0"
|
|
916
|
+
},
|
|
917
|
+
".sy-field-required": {
|
|
918
|
+
color: "var(--ant-color-error, #ff4d4f)",
|
|
919
|
+
marginRight: "4px"
|
|
920
|
+
},
|
|
921
|
+
".sy-field-tips": {
|
|
922
|
+
color: "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))",
|
|
923
|
+
fontSize: "12px",
|
|
924
|
+
lineHeight: "18px",
|
|
925
|
+
marginTop: "4px"
|
|
926
|
+
},
|
|
927
|
+
".sy-field-tips :where(p, ul, ol, blockquote, pre)": {
|
|
928
|
+
marginTop: "0",
|
|
929
|
+
marginBottom: "4px"
|
|
930
|
+
},
|
|
931
|
+
".sy-field-tips :where(p, ul, ol, blockquote, pre):last-child": {
|
|
932
|
+
marginBottom: "0"
|
|
933
|
+
},
|
|
934
|
+
".sy-field-error": {
|
|
935
|
+
color: "var(--ant-color-error, #ff4d4f)",
|
|
936
|
+
fontSize: "12px",
|
|
937
|
+
marginTop: "4px"
|
|
938
|
+
},
|
|
939
|
+
".sy-option-color-tag": {
|
|
940
|
+
display: "inline-flex",
|
|
941
|
+
alignItems: "center",
|
|
942
|
+
justifyContent: "center",
|
|
943
|
+
minHeight: "22px",
|
|
944
|
+
padding: "1px 8px",
|
|
945
|
+
borderRadius: "4px",
|
|
946
|
+
lineHeight: "20px",
|
|
947
|
+
fontSize: "13px",
|
|
948
|
+
fontWeight: "400",
|
|
949
|
+
whiteSpace: "nowrap",
|
|
950
|
+
verticalAlign: "middle",
|
|
951
|
+
marginInlineEnd: "0"
|
|
952
|
+
},
|
|
953
|
+
".sy-option-group-colored .ant-radio-wrapper, .sy-option-group-colored .ant-checkbox-wrapper": {
|
|
954
|
+
alignItems: "center"
|
|
955
|
+
},
|
|
956
|
+
".sy-option-group-colored .ant-radio, .sy-option-group-colored .ant-checkbox": {
|
|
957
|
+
alignSelf: "center"
|
|
958
|
+
},
|
|
959
|
+
".sy-option-readonly-list": {
|
|
960
|
+
display: "inline-flex",
|
|
961
|
+
alignItems: "center",
|
|
962
|
+
flexWrap: "wrap",
|
|
963
|
+
gap: "4px",
|
|
964
|
+
minHeight: "32px"
|
|
965
|
+
},
|
|
966
|
+
// FormActions
|
|
967
|
+
".sy-form-actions": {
|
|
968
|
+
display: "flex",
|
|
969
|
+
justifyContent: "flex-end",
|
|
970
|
+
gap: "12px",
|
|
971
|
+
paddingTop: "24px",
|
|
972
|
+
marginTop: "8px",
|
|
973
|
+
borderTop: "1px solid var(--ant-color-split, rgba(0,0,0,0.06))"
|
|
974
|
+
},
|
|
975
|
+
// FormContainer
|
|
976
|
+
".sy-form-container": {
|
|
977
|
+
margin: "0 auto",
|
|
978
|
+
padding: "24px",
|
|
979
|
+
backgroundColor: "var(--ant-color-bg-container, #ffffff)"
|
|
980
|
+
},
|
|
981
|
+
".sy-form-container-sm": { maxWidth: "480px" },
|
|
982
|
+
".sy-form-container-md": { maxWidth: "640px" },
|
|
983
|
+
".sy-form-container-lg": { maxWidth: "800px" },
|
|
984
|
+
".sy-form-container-xl": { maxWidth: "960px" },
|
|
985
|
+
".sy-form-container-full": { maxWidth: "100%" },
|
|
986
|
+
".sy-form-header": { marginBottom: "24px" },
|
|
987
|
+
".sy-form-title": {
|
|
988
|
+
fontSize: "20px",
|
|
989
|
+
fontWeight: "600",
|
|
990
|
+
lineHeight: "28px",
|
|
991
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))",
|
|
992
|
+
margin: "0"
|
|
993
|
+
},
|
|
994
|
+
".sy-form-description": {
|
|
995
|
+
fontSize: "14px",
|
|
996
|
+
color: "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))",
|
|
997
|
+
marginTop: "4px",
|
|
998
|
+
margin: "4px 0 0 0"
|
|
999
|
+
},
|
|
1000
|
+
".sy-form-body": {},
|
|
1001
|
+
// Lowcode page runtime
|
|
1002
|
+
".sy-lowcode-page": {
|
|
1003
|
+
display: "flex",
|
|
1004
|
+
flexDirection: "column",
|
|
1005
|
+
gap: "16px",
|
|
1006
|
+
minHeight: "100%",
|
|
1007
|
+
padding: "16px 24px",
|
|
1008
|
+
background: "var(--ant-color-bg-layout, #f5f5f5)",
|
|
1009
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))"
|
|
1010
|
+
},
|
|
1011
|
+
".sy-page-section": {
|
|
1012
|
+
width: "100%",
|
|
1013
|
+
minWidth: "0"
|
|
1014
|
+
},
|
|
1015
|
+
".sy-page-section-header": {
|
|
1016
|
+
marginBottom: "12px"
|
|
1017
|
+
},
|
|
1018
|
+
".sy-page-section-title": {
|
|
1019
|
+
margin: "0",
|
|
1020
|
+
fontSize: "16px",
|
|
1021
|
+
lineHeight: "24px",
|
|
1022
|
+
fontWeight: "600",
|
|
1023
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))"
|
|
1024
|
+
},
|
|
1025
|
+
".sy-page-section-description": {
|
|
1026
|
+
margin: "4px 0 0",
|
|
1027
|
+
fontSize: "13px",
|
|
1028
|
+
lineHeight: "20px",
|
|
1029
|
+
color: "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))"
|
|
1030
|
+
},
|
|
1031
|
+
".sy-page-section-body": {
|
|
1032
|
+
display: "flex",
|
|
1033
|
+
flexDirection: "column",
|
|
1034
|
+
gap: "16px",
|
|
1035
|
+
minWidth: "0"
|
|
1036
|
+
},
|
|
1037
|
+
".sy-page-grid": {
|
|
1038
|
+
minWidth: "0"
|
|
1039
|
+
},
|
|
1040
|
+
".sy-page-heading": {
|
|
1041
|
+
margin: "0",
|
|
1042
|
+
fontWeight: "600",
|
|
1043
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))",
|
|
1044
|
+
lineHeight: "1.28"
|
|
1045
|
+
},
|
|
1046
|
+
"h1.sy-page-heading": { fontSize: "28px" },
|
|
1047
|
+
"h2.sy-page-heading": { fontSize: "22px" },
|
|
1048
|
+
"h3.sy-page-heading": { fontSize: "18px" },
|
|
1049
|
+
"h4.sy-page-heading": { fontSize: "16px" },
|
|
1050
|
+
".sy-page-text": {
|
|
1051
|
+
margin: "0",
|
|
1052
|
+
fontSize: "14px",
|
|
1053
|
+
lineHeight: "22px",
|
|
1054
|
+
color: "var(--ant-color-text-secondary, rgba(0,0,0,0.65))"
|
|
1055
|
+
},
|
|
1056
|
+
".sy-page-unknown-node": {
|
|
1057
|
+
minWidth: "0"
|
|
1058
|
+
},
|
|
1059
|
+
// Rich field controls
|
|
1060
|
+
".sy-select-with-picker": {
|
|
1061
|
+
display: "flex",
|
|
1062
|
+
gap: "8px",
|
|
1063
|
+
alignItems: "center",
|
|
1064
|
+
width: "100%",
|
|
1065
|
+
minWidth: "0"
|
|
1066
|
+
},
|
|
1067
|
+
".sy-picker-trigger": {
|
|
1068
|
+
flex: "0 0 auto",
|
|
1069
|
+
height: "32px",
|
|
1070
|
+
minWidth: "56px",
|
|
1071
|
+
padding: "0 12px",
|
|
1072
|
+
border: "1px solid var(--ant-color-border, #d9d9d9)",
|
|
1073
|
+
borderRadius: "6px",
|
|
1074
|
+
background: "var(--ant-color-bg-container, #fff)",
|
|
1075
|
+
color: "var(--ant-color-primary, #1677ff)",
|
|
1076
|
+
fontSize: "14px",
|
|
1077
|
+
lineHeight: "30px",
|
|
1078
|
+
cursor: "pointer",
|
|
1079
|
+
transition: "all 0.2s"
|
|
1080
|
+
},
|
|
1081
|
+
".sy-picker-trigger:hover:not(:disabled)": {
|
|
1082
|
+
borderColor: "var(--ant-color-primary-hover, #4096ff)",
|
|
1083
|
+
color: "var(--ant-color-primary-hover, #4096ff)",
|
|
1084
|
+
background: "var(--ant-color-primary-bg, #e6f4ff)"
|
|
1085
|
+
},
|
|
1086
|
+
".sy-picker-trigger:disabled": {
|
|
1087
|
+
cursor: "not-allowed",
|
|
1088
|
+
color: "var(--ant-color-text-disabled, rgba(0,0,0,0.25))",
|
|
1089
|
+
borderColor: "var(--ant-color-border, #d9d9d9)",
|
|
1090
|
+
background: "var(--ant-color-fill-quaternary, rgba(0,0,0,0.02))"
|
|
1091
|
+
},
|
|
1092
|
+
".sy-empty": {
|
|
1093
|
+
color: "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))",
|
|
1094
|
+
padding: "16px",
|
|
1095
|
+
textAlign: "center"
|
|
1096
|
+
},
|
|
1097
|
+
// Organization picker
|
|
1098
|
+
".sy-org-picker, .sy-user-picker": {
|
|
1099
|
+
display: "flex",
|
|
1100
|
+
flexDirection: "column",
|
|
1101
|
+
gap: "12px"
|
|
1102
|
+
},
|
|
1103
|
+
".sy-org-picker-main": {
|
|
1104
|
+
display: "grid",
|
|
1105
|
+
gridTemplateColumns: "minmax(320px, 1fr) minmax(150px, 220px)",
|
|
1106
|
+
gap: "12px",
|
|
1107
|
+
height: "min(560px, calc(100vh - 240px))",
|
|
1108
|
+
minHeight: "420px",
|
|
1109
|
+
minWidth: "0"
|
|
1110
|
+
},
|
|
1111
|
+
".sy-user-picker-main": {
|
|
1112
|
+
display: "grid",
|
|
1113
|
+
gridTemplateColumns: "minmax(300px, 38%) minmax(260px, 1fr)",
|
|
1114
|
+
gridTemplateRows: "minmax(420px, 1fr) minmax(96px, 150px)",
|
|
1115
|
+
gap: "12px",
|
|
1116
|
+
height: "min(620px, calc(100vh - 240px))",
|
|
1117
|
+
minHeight: "500px",
|
|
1118
|
+
minWidth: "0"
|
|
1119
|
+
},
|
|
1120
|
+
".sy-org-picker-tree, .sy-user-picker-depts, .sy-user-picker-members": {
|
|
1121
|
+
minWidth: "0",
|
|
1122
|
+
border: "1px solid var(--ant-color-border-secondary, #f0f0f0)",
|
|
1123
|
+
borderRadius: "6px",
|
|
1124
|
+
padding: "8px",
|
|
1125
|
+
overflow: "auto"
|
|
1126
|
+
},
|
|
1127
|
+
".sy-user-picker-depts": {
|
|
1128
|
+
gridColumn: "1",
|
|
1129
|
+
gridRow: "1"
|
|
1130
|
+
},
|
|
1131
|
+
".sy-user-picker-members": {
|
|
1132
|
+
gridColumn: "2",
|
|
1133
|
+
gridRow: "1 / span 2",
|
|
1134
|
+
display: "flex",
|
|
1135
|
+
flexDirection: "column",
|
|
1136
|
+
minHeight: "0",
|
|
1137
|
+
overflow: "hidden"
|
|
1138
|
+
},
|
|
1139
|
+
".sy-user-picker-member-panel": {
|
|
1140
|
+
flex: "1",
|
|
1141
|
+
minHeight: "0",
|
|
1142
|
+
display: "flex",
|
|
1143
|
+
flexDirection: "column",
|
|
1144
|
+
overflow: "hidden"
|
|
1145
|
+
},
|
|
1146
|
+
".sy-user-picker-member-spin": {
|
|
1147
|
+
flex: "1",
|
|
1148
|
+
minHeight: "0",
|
|
1149
|
+
display: "flex",
|
|
1150
|
+
flexDirection: "column",
|
|
1151
|
+
overflow: "hidden"
|
|
1152
|
+
},
|
|
1153
|
+
".sy-user-picker-member-spin > .ant-spin-container": {
|
|
1154
|
+
flex: "1",
|
|
1155
|
+
minHeight: "0",
|
|
1156
|
+
display: "flex",
|
|
1157
|
+
flexDirection: "column",
|
|
1158
|
+
overflow: "hidden"
|
|
1159
|
+
},
|
|
1160
|
+
".sy-user-picker-members > .ant-spin-nested-loading, .sy-user-picker-members > .ant-spin-nested-loading > .ant-spin-container": {
|
|
1161
|
+
minHeight: "0",
|
|
1162
|
+
flex: "1",
|
|
1163
|
+
display: "flex",
|
|
1164
|
+
flexDirection: "column"
|
|
1165
|
+
},
|
|
1166
|
+
".sy-user-picker-list": {
|
|
1167
|
+
flex: "1",
|
|
1168
|
+
minHeight: "0",
|
|
1169
|
+
overflow: "auto"
|
|
1170
|
+
},
|
|
1171
|
+
".sy-user-picker-row": {
|
|
1172
|
+
display: "flex",
|
|
1173
|
+
alignItems: "center",
|
|
1174
|
+
gap: "8px",
|
|
1175
|
+
width: "100%",
|
|
1176
|
+
border: "0",
|
|
1177
|
+
background: "transparent",
|
|
1178
|
+
padding: "8px",
|
|
1179
|
+
textAlign: "left",
|
|
1180
|
+
cursor: "pointer",
|
|
1181
|
+
borderRadius: "4px"
|
|
1182
|
+
},
|
|
1183
|
+
".sy-user-picker-row:hover, .sy-user-picker-row.is-active": {
|
|
1184
|
+
background: "var(--ant-control-item-bg-hover, rgba(0,0,0,0.04))"
|
|
1185
|
+
},
|
|
1186
|
+
".sy-user-picker-pagination": {
|
|
1187
|
+
display: "flex",
|
|
1188
|
+
alignItems: "center",
|
|
1189
|
+
justifyContent: "space-between",
|
|
1190
|
+
gap: "8px",
|
|
1191
|
+
paddingTop: "8px",
|
|
1192
|
+
borderTop: "1px solid var(--ant-color-border-secondary, #f0f0f0)",
|
|
1193
|
+
color: "var(--ant-color-text-secondary, rgba(0,0,0,0.65))",
|
|
1194
|
+
fontSize: "12px"
|
|
1195
|
+
},
|
|
1196
|
+
".sy-org-picker-selected, .sy-user-picker-selected": {
|
|
1197
|
+
border: "1px solid var(--ant-color-border-secondary, #f0f0f0)",
|
|
1198
|
+
borderRadius: "6px",
|
|
1199
|
+
padding: "8px",
|
|
1200
|
+
minWidth: "0",
|
|
1201
|
+
overflow: "auto"
|
|
1202
|
+
},
|
|
1203
|
+
".sy-user-picker-selected": {
|
|
1204
|
+
gridColumn: "1",
|
|
1205
|
+
gridRow: "2",
|
|
1206
|
+
maxHeight: "150px"
|
|
1207
|
+
},
|
|
1208
|
+
".sy-org-picker-selected-head": {
|
|
1209
|
+
display: "flex",
|
|
1210
|
+
justifyContent: "space-between",
|
|
1211
|
+
alignItems: "center",
|
|
1212
|
+
marginBottom: "8px"
|
|
1213
|
+
},
|
|
1214
|
+
".sy-org-picker-tags": {
|
|
1215
|
+
display: "flex",
|
|
1216
|
+
flexWrap: "wrap",
|
|
1217
|
+
gap: "6px"
|
|
1218
|
+
},
|
|
1219
|
+
".sy-org-picker-footer": {
|
|
1220
|
+
display: "flex",
|
|
1221
|
+
justifyContent: "flex-end",
|
|
1222
|
+
gap: "8px"
|
|
1223
|
+
},
|
|
1224
|
+
".sy-org-picker-mobile, .sy-user-picker-mobile, .sy-address-mobile": {
|
|
1225
|
+
height: "100%",
|
|
1226
|
+
display: "flex",
|
|
1227
|
+
flexDirection: "column",
|
|
1228
|
+
background: "var(--ant-color-bg-container, #fff)",
|
|
1229
|
+
minWidth: "0"
|
|
1230
|
+
},
|
|
1231
|
+
".sy-org-picker-mobile-head, .sy-address-mobile-head": {
|
|
1232
|
+
display: "flex",
|
|
1233
|
+
alignItems: "center",
|
|
1234
|
+
justifyContent: "space-between",
|
|
1235
|
+
padding: "12px",
|
|
1236
|
+
borderBottom: "1px solid var(--ant-color-split, rgba(0,0,0,0.06))"
|
|
1237
|
+
},
|
|
1238
|
+
".sy-org-picker-mobile-head button, .sy-address-mobile-head button, .sy-address-mobile-path button": {
|
|
1239
|
+
border: "0",
|
|
1240
|
+
background: "transparent",
|
|
1241
|
+
color: "var(--ant-color-primary, #1677ff)",
|
|
1242
|
+
cursor: "pointer"
|
|
1243
|
+
},
|
|
1244
|
+
".sy-org-picker-breadcrumb, .sy-address-mobile-path": {
|
|
1245
|
+
display: "flex",
|
|
1246
|
+
gap: "6px",
|
|
1247
|
+
flexWrap: "wrap",
|
|
1248
|
+
padding: "8px 12px",
|
|
1249
|
+
borderBottom: "1px solid var(--ant-color-split, rgba(0,0,0,0.06))",
|
|
1250
|
+
maxWidth: "100%",
|
|
1251
|
+
overflowX: "auto"
|
|
1252
|
+
},
|
|
1253
|
+
".sy-address-mobile-path .is-active": {
|
|
1254
|
+
fontWeight: "600",
|
|
1255
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))"
|
|
1256
|
+
},
|
|
1257
|
+
".sy-address-mobile-list": {
|
|
1258
|
+
flex: "1",
|
|
1259
|
+
overflow: "auto",
|
|
1260
|
+
padding: "8px"
|
|
1261
|
+
},
|
|
1262
|
+
".sy-address-mobile-list button": {
|
|
1263
|
+
display: "block",
|
|
1264
|
+
width: "100%",
|
|
1265
|
+
border: "0",
|
|
1266
|
+
background: "transparent",
|
|
1267
|
+
padding: "10px 8px",
|
|
1268
|
+
textAlign: "left",
|
|
1269
|
+
borderRadius: "4px"
|
|
1270
|
+
},
|
|
1271
|
+
".sy-address-mobile-list button.is-active": {
|
|
1272
|
+
background: "var(--ant-control-item-bg-active, #e6f4ff)",
|
|
1273
|
+
color: "var(--ant-color-primary, #1677ff)"
|
|
1274
|
+
},
|
|
1275
|
+
".sy-address-mobile-detail, .sy-address-mobile-footer": {
|
|
1276
|
+
padding: "12px",
|
|
1277
|
+
borderTop: "1px solid var(--ant-color-split, rgba(0,0,0,0.06))"
|
|
1278
|
+
},
|
|
1279
|
+
".sy-address-mobile-trigger": {
|
|
1280
|
+
minWidth: "0",
|
|
1281
|
+
overflow: "hidden",
|
|
1282
|
+
textOverflow: "ellipsis",
|
|
1283
|
+
whiteSpace: "nowrap"
|
|
1284
|
+
},
|
|
1285
|
+
".sy-address-mobile-trigger > span": {
|
|
1286
|
+
display: "block",
|
|
1287
|
+
overflow: "hidden",
|
|
1288
|
+
textOverflow: "ellipsis",
|
|
1289
|
+
whiteSpace: "nowrap"
|
|
1290
|
+
},
|
|
1291
|
+
".sy-address-mobile-footer": {
|
|
1292
|
+
display: "flex",
|
|
1293
|
+
justifyContent: "flex-end",
|
|
1294
|
+
gap: "8px"
|
|
1295
|
+
},
|
|
1296
|
+
// Mobile field primitives
|
|
1297
|
+
".sy-mobile-field-trigger": {
|
|
1298
|
+
width: "100%",
|
|
1299
|
+
minHeight: "64px",
|
|
1300
|
+
display: "flex",
|
|
1301
|
+
alignItems: "center",
|
|
1302
|
+
gap: "10px",
|
|
1303
|
+
border: "0",
|
|
1304
|
+
borderBottom: "1px solid var(--ant-color-border-secondary, #f0f0f0)",
|
|
1305
|
+
background: "transparent",
|
|
1306
|
+
padding: "8px 0 14px",
|
|
1307
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))",
|
|
1308
|
+
fontSize: "18px",
|
|
1309
|
+
lineHeight: "28px",
|
|
1310
|
+
textAlign: "left",
|
|
1311
|
+
cursor: "pointer"
|
|
1312
|
+
},
|
|
1313
|
+
".sy-mobile-field-trigger.is-disabled": {
|
|
1314
|
+
color: "var(--ant-color-text-disabled, rgba(0,0,0,0.25))",
|
|
1315
|
+
cursor: "not-allowed"
|
|
1316
|
+
},
|
|
1317
|
+
".sy-mobile-field-trigger-text": {
|
|
1318
|
+
flex: "1",
|
|
1319
|
+
minWidth: "0",
|
|
1320
|
+
overflow: "hidden",
|
|
1321
|
+
textOverflow: "ellipsis",
|
|
1322
|
+
whiteSpace: "nowrap"
|
|
1323
|
+
},
|
|
1324
|
+
".sy-mobile-field-trigger-text.is-placeholder": {
|
|
1325
|
+
color: "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))"
|
|
1326
|
+
},
|
|
1327
|
+
".sy-mobile-date-range-value": {
|
|
1328
|
+
fontSize: "16px",
|
|
1329
|
+
lineHeight: "24px"
|
|
1330
|
+
},
|
|
1331
|
+
".sy-mobile-field-arrow": {
|
|
1332
|
+
flex: "0 0 auto",
|
|
1333
|
+
color: "var(--ant-color-text-quaternary, rgba(0,0,0,0.25))",
|
|
1334
|
+
fontSize: "18px"
|
|
1335
|
+
},
|
|
1336
|
+
".sy-mobile-field-clear": {
|
|
1337
|
+
flex: "0 0 auto",
|
|
1338
|
+
display: "inline-flex",
|
|
1339
|
+
alignItems: "center",
|
|
1340
|
+
justifyContent: "center",
|
|
1341
|
+
width: "28px",
|
|
1342
|
+
height: "28px",
|
|
1343
|
+
color: "var(--ant-color-text-quaternary, rgba(0,0,0,0.25))"
|
|
1344
|
+
},
|
|
1345
|
+
".sy-mobile-line-input": {
|
|
1346
|
+
width: "100%",
|
|
1347
|
+
minHeight: "56px",
|
|
1348
|
+
display: "flex",
|
|
1349
|
+
alignItems: "center",
|
|
1350
|
+
gap: "8px",
|
|
1351
|
+
borderBottom: "1px solid var(--ant-color-border-secondary, #f0f0f0)",
|
|
1352
|
+
background: "transparent",
|
|
1353
|
+
padding: "6px 0 12px",
|
|
1354
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))"
|
|
1355
|
+
},
|
|
1356
|
+
".sy-mobile-line-input .adm-input, .sy-mobile-line-input .adm-text-area": {
|
|
1357
|
+
flex: "1",
|
|
1358
|
+
minWidth: "0",
|
|
1359
|
+
"--font-size": "16px",
|
|
1360
|
+
"--color": "var(--ant-color-text, rgba(0,0,0,0.88))",
|
|
1361
|
+
"--placeholder-color": "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))"
|
|
1362
|
+
},
|
|
1363
|
+
".sy-mobile-line-input .adm-input-element, .sy-mobile-line-input .adm-text-area-element": {
|
|
1364
|
+
lineHeight: "24px"
|
|
1365
|
+
},
|
|
1366
|
+
".sy-mobile-line-input .adm-input-clear": {
|
|
1367
|
+
color: "var(--ant-color-text-quaternary, rgba(0,0,0,0.25))"
|
|
1368
|
+
},
|
|
1369
|
+
".sy-mobile-textarea-input": {
|
|
1370
|
+
alignItems: "flex-start",
|
|
1371
|
+
minHeight: "92px"
|
|
1372
|
+
},
|
|
1373
|
+
".sy-mobile-textarea-input .adm-text-area-count": {
|
|
1374
|
+
color: "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))",
|
|
1375
|
+
fontSize: "13px",
|
|
1376
|
+
paddingTop: "6px"
|
|
1377
|
+
},
|
|
1378
|
+
".sy-mobile-number-input .sy-number-unit-prefix, .sy-mobile-number-input .sy-number-unit-suffix, .sy-mobile-text-input .sy-input-prefix, .sy-mobile-text-input .sy-input-suffix": {
|
|
1379
|
+
flex: "0 0 auto",
|
|
1380
|
+
color: "var(--ant-color-text-secondary, rgba(0,0,0,0.65))",
|
|
1381
|
+
fontSize: "15px",
|
|
1382
|
+
lineHeight: "22px"
|
|
1383
|
+
},
|
|
1384
|
+
".sy-mobile-text-input .sy-input-count": {
|
|
1385
|
+
flex: "0 0 auto",
|
|
1386
|
+
color: "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))",
|
|
1387
|
+
fontSize: "13px",
|
|
1388
|
+
lineHeight: "20px"
|
|
1389
|
+
},
|
|
1390
|
+
".sy-mobile-bottom-sheet": {
|
|
1391
|
+
overflow: "hidden",
|
|
1392
|
+
borderRadius: "10px 10px 0 0",
|
|
1393
|
+
background: "var(--ant-color-bg-container, #fff)"
|
|
1394
|
+
},
|
|
1395
|
+
".sy-mobile-bottom-sheet-content": {
|
|
1396
|
+
height: "100%",
|
|
1397
|
+
minHeight: "0"
|
|
1398
|
+
},
|
|
1399
|
+
".sy-mobile-sheet-header": {
|
|
1400
|
+
display: "grid",
|
|
1401
|
+
gridTemplateColumns: "88px 1fr 88px",
|
|
1402
|
+
alignItems: "center",
|
|
1403
|
+
minHeight: "58px",
|
|
1404
|
+
padding: "0 12px",
|
|
1405
|
+
borderBottom: "1px solid var(--ant-color-border-secondary, #f0f0f0)"
|
|
1406
|
+
},
|
|
1407
|
+
".sy-mobile-sheet-title": {
|
|
1408
|
+
minWidth: "0",
|
|
1409
|
+
overflow: "hidden",
|
|
1410
|
+
textOverflow: "ellipsis",
|
|
1411
|
+
whiteSpace: "nowrap",
|
|
1412
|
+
textAlign: "center",
|
|
1413
|
+
fontSize: "18px",
|
|
1414
|
+
lineHeight: "26px",
|
|
1415
|
+
fontWeight: "500"
|
|
1416
|
+
},
|
|
1417
|
+
".sy-mobile-sheet-action": {
|
|
1418
|
+
border: "0",
|
|
1419
|
+
background: "transparent",
|
|
1420
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))",
|
|
1421
|
+
fontSize: "17px",
|
|
1422
|
+
lineHeight: "24px",
|
|
1423
|
+
cursor: "pointer",
|
|
1424
|
+
textAlign: "left"
|
|
1425
|
+
},
|
|
1426
|
+
".sy-mobile-sheet-action.is-primary": {
|
|
1427
|
+
color: "var(--ant-color-primary, #1677ff)",
|
|
1428
|
+
textAlign: "right"
|
|
1429
|
+
},
|
|
1430
|
+
".sy-mobile-sheet-action:disabled": {
|
|
1431
|
+
color: "var(--ant-color-text-disabled, rgba(0,0,0,0.25))",
|
|
1432
|
+
cursor: "not-allowed"
|
|
1433
|
+
},
|
|
1434
|
+
".sy-mobile-search": {
|
|
1435
|
+
height: "48px",
|
|
1436
|
+
display: "flex",
|
|
1437
|
+
alignItems: "center",
|
|
1438
|
+
gap: "8px",
|
|
1439
|
+
padding: "0 14px",
|
|
1440
|
+
borderRadius: "6px",
|
|
1441
|
+
background: "var(--ant-color-fill-quaternary, rgba(0,0,0,0.04))",
|
|
1442
|
+
color: "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))"
|
|
1443
|
+
},
|
|
1444
|
+
".sy-mobile-search input": {
|
|
1445
|
+
flex: "1",
|
|
1446
|
+
minWidth: "0",
|
|
1447
|
+
border: "0",
|
|
1448
|
+
outline: "0",
|
|
1449
|
+
background: "transparent",
|
|
1450
|
+
fontSize: "18px",
|
|
1451
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))"
|
|
1452
|
+
},
|
|
1453
|
+
".sy-mobile-option-sheet": {
|
|
1454
|
+
height: "100%",
|
|
1455
|
+
display: "flex",
|
|
1456
|
+
flexDirection: "column",
|
|
1457
|
+
minHeight: "0"
|
|
1458
|
+
},
|
|
1459
|
+
".sy-mobile-option-search": {
|
|
1460
|
+
padding: "14px 14px 16px",
|
|
1461
|
+
borderBottom: "1px solid var(--ant-color-border-secondary, #f0f0f0)"
|
|
1462
|
+
},
|
|
1463
|
+
".sy-mobile-option-list": {
|
|
1464
|
+
flex: "1",
|
|
1465
|
+
minHeight: "0",
|
|
1466
|
+
overflowY: "auto"
|
|
1467
|
+
},
|
|
1468
|
+
".sy-mobile-option-row": {
|
|
1469
|
+
width: "100%",
|
|
1470
|
+
minHeight: "64px",
|
|
1471
|
+
display: "flex",
|
|
1472
|
+
alignItems: "center",
|
|
1473
|
+
gap: "14px",
|
|
1474
|
+
border: "0",
|
|
1475
|
+
borderBottom: "1px solid var(--ant-color-border-secondary, #f0f0f0)",
|
|
1476
|
+
background: "transparent",
|
|
1477
|
+
padding: "0 16px",
|
|
1478
|
+
textAlign: "left",
|
|
1479
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))",
|
|
1480
|
+
fontSize: "18px",
|
|
1481
|
+
cursor: "pointer"
|
|
1482
|
+
},
|
|
1483
|
+
".sy-mobile-option-row:disabled": {
|
|
1484
|
+
color: "var(--ant-color-text-disabled, rgba(0,0,0,0.25))",
|
|
1485
|
+
cursor: "not-allowed"
|
|
1486
|
+
},
|
|
1487
|
+
".sy-mobile-option-check": {
|
|
1488
|
+
flex: "0 0 auto",
|
|
1489
|
+
width: "22px",
|
|
1490
|
+
height: "22px",
|
|
1491
|
+
border: "2px solid #c8cdd2",
|
|
1492
|
+
background: "#fff"
|
|
1493
|
+
},
|
|
1494
|
+
".sy-mobile-option-check.is-radio": {
|
|
1495
|
+
borderRadius: "999px"
|
|
1496
|
+
},
|
|
1497
|
+
".sy-mobile-option-check.is-checkbox": {
|
|
1498
|
+
borderRadius: "5px"
|
|
1499
|
+
},
|
|
1500
|
+
".sy-mobile-option-row.is-active .sy-mobile-option-check": {
|
|
1501
|
+
borderColor: "var(--ant-color-primary, #1677ff)",
|
|
1502
|
+
background: "var(--ant-color-primary, #1677ff)",
|
|
1503
|
+
boxShadow: "inset 0 0 0 4px #fff"
|
|
1504
|
+
},
|
|
1505
|
+
".sy-mobile-option-label": {
|
|
1506
|
+
minWidth: "0",
|
|
1507
|
+
overflow: "hidden",
|
|
1508
|
+
textOverflow: "ellipsis",
|
|
1509
|
+
whiteSpace: "nowrap"
|
|
1510
|
+
},
|
|
1511
|
+
".sy-mobile-sheet-footer": {
|
|
1512
|
+
flex: "0 0 auto",
|
|
1513
|
+
borderTop: "1px solid var(--ant-color-border-secondary, #f0f0f0)",
|
|
1514
|
+
padding: "12px 18px calc(12px + env(safe-area-inset-bottom))",
|
|
1515
|
+
background: "var(--ant-color-bg-container, #fff)"
|
|
1516
|
+
},
|
|
1517
|
+
".sy-mobile-sheet-count": {
|
|
1518
|
+
marginBottom: "12px",
|
|
1519
|
+
fontSize: "18px",
|
|
1520
|
+
lineHeight: "26px",
|
|
1521
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))"
|
|
1522
|
+
},
|
|
1523
|
+
".sy-mobile-sheet-count span": {
|
|
1524
|
+
color: "var(--ant-color-primary, #1677ff)",
|
|
1525
|
+
margin: "0 4px"
|
|
1526
|
+
},
|
|
1527
|
+
".sy-mobile-sheet-footer-actions": {
|
|
1528
|
+
display: "grid",
|
|
1529
|
+
gridTemplateColumns: "1fr 1fr",
|
|
1530
|
+
gap: "12px"
|
|
1531
|
+
},
|
|
1532
|
+
".sy-mobile-sheet-button": {
|
|
1533
|
+
height: "52px",
|
|
1534
|
+
border: "1px solid var(--ant-color-border, #d9d9d9)",
|
|
1535
|
+
borderRadius: "8px",
|
|
1536
|
+
background: "var(--ant-color-bg-container, #fff)",
|
|
1537
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))",
|
|
1538
|
+
fontSize: "18px",
|
|
1539
|
+
cursor: "pointer"
|
|
1540
|
+
},
|
|
1541
|
+
".sy-mobile-sheet-button.is-primary": {
|
|
1542
|
+
borderColor: "var(--ant-color-primary, #1677ff)",
|
|
1543
|
+
background: "var(--ant-color-primary, #1677ff)",
|
|
1544
|
+
color: "#fff"
|
|
1545
|
+
},
|
|
1546
|
+
".sy-mobile-choice-group": {
|
|
1547
|
+
display: "flex",
|
|
1548
|
+
flexWrap: "wrap",
|
|
1549
|
+
gap: "12px 28px",
|
|
1550
|
+
padding: "4px 0 12px",
|
|
1551
|
+
borderBottom: "1px solid var(--ant-color-border-secondary, #f0f0f0)"
|
|
1552
|
+
},
|
|
1553
|
+
".sy-mobile-choice-group.is-vertical": {
|
|
1554
|
+
flexDirection: "column",
|
|
1555
|
+
gap: "10px"
|
|
1556
|
+
},
|
|
1557
|
+
".sy-mobile-choice-item": {
|
|
1558
|
+
display: "inline-flex",
|
|
1559
|
+
alignItems: "center",
|
|
1560
|
+
gap: "8px",
|
|
1561
|
+
minHeight: "32px",
|
|
1562
|
+
border: "0",
|
|
1563
|
+
background: "transparent",
|
|
1564
|
+
padding: "0",
|
|
1565
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))",
|
|
1566
|
+
fontSize: "16px",
|
|
1567
|
+
lineHeight: "24px",
|
|
1568
|
+
cursor: "pointer"
|
|
1569
|
+
},
|
|
1570
|
+
".sy-mobile-choice-item:disabled": {
|
|
1571
|
+
color: "var(--ant-color-text-disabled, rgba(0,0,0,0.25))",
|
|
1572
|
+
cursor: "not-allowed"
|
|
1573
|
+
},
|
|
1574
|
+
".sy-mobile-choice-control": {
|
|
1575
|
+
width: "22px",
|
|
1576
|
+
height: "22px",
|
|
1577
|
+
border: "2px solid #c8cdd2",
|
|
1578
|
+
background: "#fff"
|
|
1579
|
+
},
|
|
1580
|
+
".sy-mobile-choice-item.is-radio .sy-mobile-choice-control": {
|
|
1581
|
+
borderRadius: "999px"
|
|
1582
|
+
},
|
|
1583
|
+
".sy-mobile-choice-item.is-checkbox .sy-mobile-choice-control": {
|
|
1584
|
+
borderRadius: "5px"
|
|
1585
|
+
},
|
|
1586
|
+
".sy-mobile-choice-item.is-active .sy-mobile-choice-control": {
|
|
1587
|
+
borderColor: "var(--ant-color-primary, #1677ff)",
|
|
1588
|
+
background: "var(--ant-color-primary, #1677ff)",
|
|
1589
|
+
boxShadow: "inset 0 0 0 4px #fff"
|
|
1590
|
+
},
|
|
1591
|
+
".sy-mobile-date-sheet .adm-calendar": {
|
|
1592
|
+
"--cell-size": "52px",
|
|
1593
|
+
paddingBottom: "12px"
|
|
1594
|
+
},
|
|
1595
|
+
".sy-mobile-date-sheet .adm-calendar-header": {
|
|
1596
|
+
minHeight: "56px",
|
|
1597
|
+
borderBottom: "1px solid var(--ant-color-border-secondary, #f0f0f0)"
|
|
1598
|
+
},
|
|
1599
|
+
".sy-mobile-date-sheet .adm-calendar-title": {
|
|
1600
|
+
fontSize: "20px",
|
|
1601
|
+
fontWeight: "600"
|
|
1602
|
+
},
|
|
1603
|
+
".sy-mobile-date-time-footer": {
|
|
1604
|
+
display: "flex",
|
|
1605
|
+
alignItems: "center",
|
|
1606
|
+
justifyContent: "space-between",
|
|
1607
|
+
gap: "12px",
|
|
1608
|
+
padding: "10px 28px 20px",
|
|
1609
|
+
fontSize: "18px",
|
|
1610
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))"
|
|
1611
|
+
},
|
|
1612
|
+
".sy-mobile-date-time-label": {
|
|
1613
|
+
border: "0",
|
|
1614
|
+
background: "transparent",
|
|
1615
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))",
|
|
1616
|
+
fontSize: "18px",
|
|
1617
|
+
cursor: "pointer"
|
|
1618
|
+
},
|
|
1619
|
+
".sy-mobile-time-pill": {
|
|
1620
|
+
minWidth: "118px",
|
|
1621
|
+
minHeight: "44px",
|
|
1622
|
+
border: "0",
|
|
1623
|
+
borderRadius: "6px",
|
|
1624
|
+
background: "var(--ant-color-fill-secondary, rgba(0,0,0,0.08))",
|
|
1625
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))",
|
|
1626
|
+
fontSize: "18px",
|
|
1627
|
+
cursor: "pointer"
|
|
1628
|
+
},
|
|
1629
|
+
".sy-mobile-time-pill.is-active": {
|
|
1630
|
+
background: "var(--ant-color-primary, #1677ff)",
|
|
1631
|
+
color: "#fff"
|
|
1632
|
+
},
|
|
1633
|
+
".sy-mobile-time-picker": {
|
|
1634
|
+
"--height": "336px",
|
|
1635
|
+
"--item-height": "58px",
|
|
1636
|
+
"--item-font-size": "22px"
|
|
1637
|
+
},
|
|
1638
|
+
".sy-mobile-date-time-picker": {
|
|
1639
|
+
"--item-font-size": "20px"
|
|
1640
|
+
},
|
|
1641
|
+
".sy-mobile-date-time-picker .adm-picker-view-column:first-child": {
|
|
1642
|
+
flex: "1.55",
|
|
1643
|
+
minWidth: "126px"
|
|
1644
|
+
},
|
|
1645
|
+
".sy-mobile-date-time-picker .adm-picker-view-column:first-child .adm-picker-view-column-item": {
|
|
1646
|
+
padding: "0 2px",
|
|
1647
|
+
fontSize: "17px"
|
|
1648
|
+
},
|
|
1649
|
+
".sy-mobile-date-time-picker .adm-picker-view-column:first-child .adm-picker-view-column-item-label": {
|
|
1650
|
+
overflow: "visible",
|
|
1651
|
+
textOverflow: "clip",
|
|
1652
|
+
whiteSpace: "nowrap"
|
|
1653
|
+
},
|
|
1654
|
+
// Files and images
|
|
1655
|
+
".sy-upload-inline": {
|
|
1656
|
+
display: "inline-flex",
|
|
1657
|
+
alignItems: "center",
|
|
1658
|
+
gap: "12px",
|
|
1659
|
+
minHeight: "40px",
|
|
1660
|
+
maxWidth: "100%",
|
|
1661
|
+
padding: "4px",
|
|
1662
|
+
border: "1px dashed var(--ant-color-border, #d9d9d9)",
|
|
1663
|
+
borderRadius: "8px",
|
|
1664
|
+
background: "var(--ant-color-bg-container, #fff)",
|
|
1665
|
+
color: "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))"
|
|
1666
|
+
},
|
|
1667
|
+
".sy-upload-inline > .ant-upload": {
|
|
1668
|
+
display: "inline-flex",
|
|
1669
|
+
flex: "0 0 auto"
|
|
1670
|
+
},
|
|
1671
|
+
".sy-image-upload-inline, .sy-attachment-upload-inline": {
|
|
1672
|
+
width: "min(100%, 408px)"
|
|
1673
|
+
},
|
|
1674
|
+
".sy-upload-button": {
|
|
1675
|
+
display: "inline-flex",
|
|
1676
|
+
alignItems: "center",
|
|
1677
|
+
justifyContent: "center",
|
|
1678
|
+
gap: "6px",
|
|
1679
|
+
minHeight: "34px",
|
|
1680
|
+
padding: "4px 14px",
|
|
1681
|
+
border: "1px solid var(--ant-color-border, #d9d9d9)",
|
|
1682
|
+
borderRadius: "6px",
|
|
1683
|
+
background: "var(--ant-color-bg-container, #fff)",
|
|
1684
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))",
|
|
1685
|
+
cursor: "pointer",
|
|
1686
|
+
fontSize: "14px"
|
|
1687
|
+
},
|
|
1688
|
+
".sy-upload-button:disabled": {
|
|
1689
|
+
color: "var(--ant-color-text-disabled, rgba(0,0,0,0.25))",
|
|
1690
|
+
cursor: "not-allowed"
|
|
1691
|
+
},
|
|
1692
|
+
".sy-upload-paste-zone": {
|
|
1693
|
+
display: "inline-flex",
|
|
1694
|
+
flex: "1 1 auto",
|
|
1695
|
+
alignItems: "center",
|
|
1696
|
+
minWidth: "210px",
|
|
1697
|
+
minHeight: "34px",
|
|
1698
|
+
padding: "0 10px",
|
|
1699
|
+
borderRadius: "6px",
|
|
1700
|
+
outline: "none",
|
|
1701
|
+
cursor: "text",
|
|
1702
|
+
userSelect: "text",
|
|
1703
|
+
whiteSpace: "nowrap",
|
|
1704
|
+
color: "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))"
|
|
1705
|
+
},
|
|
1706
|
+
".sy-upload-paste-zone:hover, .sy-upload-paste-zone:focus-visible": {
|
|
1707
|
+
background: "var(--ant-control-item-bg-hover, rgba(0,0,0,0.04))"
|
|
1708
|
+
},
|
|
1709
|
+
".sy-upload-paste-zone:focus-visible": {
|
|
1710
|
+
boxShadow: "0 0 0 3px var(--ant-control-outline, rgba(22,119,255,0.16))"
|
|
1711
|
+
},
|
|
1712
|
+
".sy-upload-paste-zone.is-disabled": {
|
|
1713
|
+
cursor: "not-allowed",
|
|
1714
|
+
userSelect: "none",
|
|
1715
|
+
color: "var(--ant-color-text-disabled, rgba(0,0,0,0.25))"
|
|
1716
|
+
},
|
|
1717
|
+
".sy-sr-only": {
|
|
1718
|
+
position: "absolute",
|
|
1719
|
+
width: "1px",
|
|
1720
|
+
height: "1px",
|
|
1721
|
+
padding: "0",
|
|
1722
|
+
margin: "-1px",
|
|
1723
|
+
overflow: "hidden",
|
|
1724
|
+
clip: "rect(0, 0, 0, 0)",
|
|
1725
|
+
whiteSpace: "nowrap",
|
|
1726
|
+
border: "0"
|
|
1727
|
+
},
|
|
1728
|
+
".sy-file-list": {
|
|
1729
|
+
display: "flex",
|
|
1730
|
+
flexDirection: "column",
|
|
1731
|
+
gap: "8px",
|
|
1732
|
+
marginTop: "8px"
|
|
1733
|
+
},
|
|
1734
|
+
".sy-file-item": {
|
|
1735
|
+
display: "flex",
|
|
1736
|
+
alignItems: "center",
|
|
1737
|
+
gap: "10px",
|
|
1738
|
+
minHeight: "76px",
|
|
1739
|
+
padding: "10px 14px",
|
|
1740
|
+
border: "0",
|
|
1741
|
+
borderRadius: "8px",
|
|
1742
|
+
background: "var(--ant-color-fill-quaternary, #f5f5f5)"
|
|
1743
|
+
},
|
|
1744
|
+
".sy-file-icon": {
|
|
1745
|
+
width: "46px",
|
|
1746
|
+
height: "46px",
|
|
1747
|
+
borderRadius: "6px",
|
|
1748
|
+
display: "inline-flex",
|
|
1749
|
+
flexDirection: "column",
|
|
1750
|
+
alignItems: "center",
|
|
1751
|
+
justifyContent: "center",
|
|
1752
|
+
gap: "1px",
|
|
1753
|
+
background: "#9099a3",
|
|
1754
|
+
fontSize: "10px",
|
|
1755
|
+
lineHeight: "12px",
|
|
1756
|
+
color: "#fff",
|
|
1757
|
+
overflow: "hidden"
|
|
1758
|
+
},
|
|
1759
|
+
".sy-file-icon svg": {
|
|
1760
|
+
fontSize: "22px"
|
|
1761
|
+
},
|
|
1762
|
+
".sy-file-icon-pdf": {
|
|
1763
|
+
background: "#e74c3c"
|
|
1764
|
+
},
|
|
1765
|
+
".sy-file-icon-excel": {
|
|
1766
|
+
background: "#38b77a"
|
|
1767
|
+
},
|
|
1768
|
+
".sy-file-icon-word": {
|
|
1769
|
+
background: "#4c8df6"
|
|
1770
|
+
},
|
|
1771
|
+
".sy-file-icon-ppt": {
|
|
1772
|
+
background: "#f08a3e"
|
|
1773
|
+
},
|
|
1774
|
+
".sy-file-icon-image": {
|
|
1775
|
+
background: "#6aa8ff"
|
|
1776
|
+
},
|
|
1777
|
+
".sy-file-meta": {
|
|
1778
|
+
flex: "1",
|
|
1779
|
+
minWidth: "0"
|
|
1780
|
+
},
|
|
1781
|
+
".sy-file-name": {
|
|
1782
|
+
display: "block",
|
|
1783
|
+
fontSize: "16px",
|
|
1784
|
+
lineHeight: "24px",
|
|
1785
|
+
overflow: "hidden",
|
|
1786
|
+
textOverflow: "ellipsis",
|
|
1787
|
+
whiteSpace: "nowrap"
|
|
1788
|
+
},
|
|
1789
|
+
".sy-file-sub": {
|
|
1790
|
+
fontSize: "12px",
|
|
1791
|
+
color: "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))"
|
|
1792
|
+
},
|
|
1793
|
+
".sy-file-size-inline": {
|
|
1794
|
+
marginLeft: "8px",
|
|
1795
|
+
color: "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))",
|
|
1796
|
+
fontWeight: "400"
|
|
1797
|
+
},
|
|
1798
|
+
".sy-file-actions": {
|
|
1799
|
+
display: "flex",
|
|
1800
|
+
alignItems: "center",
|
|
1801
|
+
gap: "12px",
|
|
1802
|
+
flex: "0 0 auto"
|
|
1803
|
+
},
|
|
1804
|
+
".sy-file-action": {
|
|
1805
|
+
border: "0",
|
|
1806
|
+
padding: "0",
|
|
1807
|
+
background: "transparent",
|
|
1808
|
+
color: "var(--ant-color-text-quaternary, rgba(0,0,0,0.35))",
|
|
1809
|
+
cursor: "pointer",
|
|
1810
|
+
whiteSpace: "nowrap",
|
|
1811
|
+
fontSize: "18px"
|
|
1812
|
+
},
|
|
1813
|
+
".sy-file-action:disabled": {
|
|
1814
|
+
color: "var(--ant-color-text-disabled, rgba(0,0,0,0.25))",
|
|
1815
|
+
cursor: "not-allowed"
|
|
1816
|
+
},
|
|
1817
|
+
".sy-readonly-files": {
|
|
1818
|
+
width: "100%",
|
|
1819
|
+
minWidth: "0"
|
|
1820
|
+
},
|
|
1821
|
+
".sy-readonly-file-header": {
|
|
1822
|
+
display: "flex",
|
|
1823
|
+
alignItems: "center",
|
|
1824
|
+
justifyContent: "flex-end",
|
|
1825
|
+
minHeight: "20px",
|
|
1826
|
+
marginBottom: "8px"
|
|
1827
|
+
},
|
|
1828
|
+
".sy-readonly-bundle-download": {
|
|
1829
|
+
border: "0",
|
|
1830
|
+
padding: "0",
|
|
1831
|
+
background: "transparent",
|
|
1832
|
+
color: "var(--ant-color-primary, #1677ff)",
|
|
1833
|
+
cursor: "pointer",
|
|
1834
|
+
fontSize: "14px",
|
|
1835
|
+
lineHeight: "20px"
|
|
1836
|
+
},
|
|
1837
|
+
".sy-readonly-file-list": {
|
|
1838
|
+
marginTop: "0"
|
|
1839
|
+
},
|
|
1840
|
+
".sy-readonly-file-item": {
|
|
1841
|
+
minHeight: "72px",
|
|
1842
|
+
borderRadius: "6px",
|
|
1843
|
+
background: "var(--ant-color-fill-quaternary, #f5f5f5)"
|
|
1844
|
+
},
|
|
1845
|
+
".sy-readonly-file-item .sy-file-icon": {
|
|
1846
|
+
width: "50px",
|
|
1847
|
+
height: "50px"
|
|
1848
|
+
},
|
|
1849
|
+
".sy-readonly-file-item .sy-file-name": {
|
|
1850
|
+
fontSize: "16px",
|
|
1851
|
+
lineHeight: "24px",
|
|
1852
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))",
|
|
1853
|
+
textDecoration: "none"
|
|
1854
|
+
},
|
|
1855
|
+
".sy-readonly-file-item a.sy-file-name:hover": {
|
|
1856
|
+
color: "var(--ant-color-primary, #1677ff)",
|
|
1857
|
+
textDecoration: "underline"
|
|
1858
|
+
},
|
|
1859
|
+
".sy-readonly-file-item .sy-file-actions": {
|
|
1860
|
+
gap: "16px"
|
|
1861
|
+
},
|
|
1862
|
+
".sy-readonly-file-item .sy-file-action": {
|
|
1863
|
+
color: "var(--ant-color-text-quaternary, rgba(0,0,0,0.35))"
|
|
1864
|
+
},
|
|
1865
|
+
".sy-readonly-image-grid": {
|
|
1866
|
+
display: "grid",
|
|
1867
|
+
gridTemplateColumns: "repeat(2, minmax(0, 124px))",
|
|
1868
|
+
gap: "12px 16px"
|
|
1869
|
+
},
|
|
1870
|
+
".sy-readonly-image-card": {
|
|
1871
|
+
minWidth: "0"
|
|
1872
|
+
},
|
|
1873
|
+
".sy-readonly-image-thumb": {
|
|
1874
|
+
width: "100%",
|
|
1875
|
+
aspectRatio: "1 / 1",
|
|
1876
|
+
border: "1px solid var(--ant-color-border-secondary, #f0f0f0)",
|
|
1877
|
+
borderRadius: "8px",
|
|
1878
|
+
padding: "0",
|
|
1879
|
+
overflow: "hidden",
|
|
1880
|
+
background: "var(--ant-color-bg-container, #fff)",
|
|
1881
|
+
cursor: "pointer"
|
|
1882
|
+
},
|
|
1883
|
+
".sy-readonly-image-thumb img": {
|
|
1884
|
+
width: "100%",
|
|
1885
|
+
height: "100%",
|
|
1886
|
+
objectFit: "cover",
|
|
1887
|
+
display: "block"
|
|
1888
|
+
},
|
|
1889
|
+
".sy-readonly-image-name": {
|
|
1890
|
+
marginTop: "6px",
|
|
1891
|
+
overflow: "hidden",
|
|
1892
|
+
textOverflow: "ellipsis",
|
|
1893
|
+
whiteSpace: "nowrap",
|
|
1894
|
+
textAlign: "center",
|
|
1895
|
+
color: "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))",
|
|
1896
|
+
fontSize: "14px",
|
|
1897
|
+
lineHeight: "20px"
|
|
1898
|
+
},
|
|
1899
|
+
".sy-readonly-files.is-mobile .sy-file-list": {
|
|
1900
|
+
gap: "6px",
|
|
1901
|
+
marginTop: "0"
|
|
1902
|
+
},
|
|
1903
|
+
".sy-readonly-files.is-mobile .sy-readonly-file-item": {
|
|
1904
|
+
minHeight: "68px",
|
|
1905
|
+
padding: "10px 12px",
|
|
1906
|
+
gap: "10px"
|
|
1907
|
+
},
|
|
1908
|
+
".sy-readonly-files.is-mobile .sy-file-icon": {
|
|
1909
|
+
width: "48px",
|
|
1910
|
+
height: "48px",
|
|
1911
|
+
borderRadius: "4px"
|
|
1912
|
+
},
|
|
1913
|
+
".sy-readonly-files.is-mobile .sy-file-name": {
|
|
1914
|
+
fontSize: "15px",
|
|
1915
|
+
lineHeight: "22px"
|
|
1916
|
+
},
|
|
1917
|
+
".sy-readonly-files.is-mobile .sy-file-sub, .sy-readonly-files.is-mobile .sy-file-size-inline": {
|
|
1918
|
+
fontSize: "14px"
|
|
1919
|
+
},
|
|
1920
|
+
".sy-readonly-files.is-mobile .sy-file-actions": {
|
|
1921
|
+
gap: "12px"
|
|
1922
|
+
},
|
|
1923
|
+
".sy-readonly-files.is-mobile .sy-file-action": {
|
|
1924
|
+
fontSize: "16px"
|
|
1925
|
+
},
|
|
1926
|
+
".sy-readonly-files.is-mobile .sy-readonly-bundle-download, .sy-readonly-files.is-mobile .sy-readonly-file-header": {
|
|
1927
|
+
display: "none"
|
|
1928
|
+
},
|
|
1929
|
+
".sy-image-preview-overlay": {
|
|
1930
|
+
position: "fixed",
|
|
1931
|
+
inset: "0",
|
|
1932
|
+
zIndex: "1000",
|
|
1933
|
+
display: "flex",
|
|
1934
|
+
alignItems: "center",
|
|
1935
|
+
justifyContent: "center",
|
|
1936
|
+
padding: "24px"
|
|
1937
|
+
},
|
|
1938
|
+
".sy-image-preview-mask": {
|
|
1939
|
+
position: "absolute",
|
|
1940
|
+
inset: "0",
|
|
1941
|
+
border: "0",
|
|
1942
|
+
padding: "0",
|
|
1943
|
+
background: "rgba(0,0,0,0.72)",
|
|
1944
|
+
cursor: "zoom-out"
|
|
1945
|
+
},
|
|
1946
|
+
".sy-image-preview-dialog": {
|
|
1947
|
+
position: "relative",
|
|
1948
|
+
zIndex: "1",
|
|
1949
|
+
maxWidth: "min(920px, 92vw)",
|
|
1950
|
+
maxHeight: "88vh",
|
|
1951
|
+
display: "flex",
|
|
1952
|
+
alignItems: "center",
|
|
1953
|
+
justifyContent: "center"
|
|
1954
|
+
},
|
|
1955
|
+
".sy-image-preview-dialog img": {
|
|
1956
|
+
display: "block",
|
|
1957
|
+
maxWidth: "100%",
|
|
1958
|
+
maxHeight: "88vh",
|
|
1959
|
+
objectFit: "contain",
|
|
1960
|
+
borderRadius: "8px",
|
|
1961
|
+
background: "#fff"
|
|
1962
|
+
},
|
|
1963
|
+
".sy-image-preview-close": {
|
|
1964
|
+
position: "absolute",
|
|
1965
|
+
right: "-14px",
|
|
1966
|
+
top: "-14px",
|
|
1967
|
+
zIndex: "2",
|
|
1968
|
+
width: "32px",
|
|
1969
|
+
height: "32px",
|
|
1970
|
+
border: "0",
|
|
1971
|
+
borderRadius: "999px",
|
|
1972
|
+
background: "rgba(0,0,0,0.68)",
|
|
1973
|
+
color: "#fff",
|
|
1974
|
+
cursor: "pointer",
|
|
1975
|
+
fontSize: "22px",
|
|
1976
|
+
lineHeight: "32px"
|
|
1977
|
+
},
|
|
1978
|
+
".sy-mobile-upload-button": {
|
|
1979
|
+
display: "inline-flex",
|
|
1980
|
+
alignItems: "center",
|
|
1981
|
+
justifyContent: "center",
|
|
1982
|
+
minHeight: "36px",
|
|
1983
|
+
gap: "8px",
|
|
1984
|
+
padding: "6px 12px",
|
|
1985
|
+
border: "1px solid var(--ant-color-border, #d9d9d9)",
|
|
1986
|
+
borderRadius: "8px",
|
|
1987
|
+
background: "var(--ant-color-bg-container, #fff)",
|
|
1988
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))",
|
|
1989
|
+
cursor: "pointer"
|
|
1990
|
+
},
|
|
1991
|
+
".sy-mobile-upload-button.is-disabled": {
|
|
1992
|
+
color: "var(--ant-color-text-disabled, rgba(0,0,0,0.25))",
|
|
1993
|
+
cursor: "not-allowed",
|
|
1994
|
+
background: "var(--ant-color-fill-quaternary, rgba(0,0,0,0.02))"
|
|
1995
|
+
},
|
|
1996
|
+
".sy-mobile-hidden-input": {
|
|
1997
|
+
display: "none"
|
|
1998
|
+
},
|
|
1999
|
+
".sy-image-grid": {
|
|
2000
|
+
display: "grid",
|
|
2001
|
+
gridTemplateColumns: "repeat(auto-fill, minmax(96px, 1fr))",
|
|
2002
|
+
gap: "8px",
|
|
2003
|
+
marginTop: "8px"
|
|
2004
|
+
},
|
|
2005
|
+
".sy-image-file-list": {
|
|
2006
|
+
maxWidth: "516px"
|
|
2007
|
+
},
|
|
2008
|
+
".sy-image-file-thumb": {
|
|
2009
|
+
width: "58px",
|
|
2010
|
+
height: "58px",
|
|
2011
|
+
flex: "0 0 auto",
|
|
2012
|
+
border: "1px solid var(--ant-color-border-secondary, #f0f0f0)",
|
|
2013
|
+
borderRadius: "8px",
|
|
2014
|
+
overflow: "hidden",
|
|
2015
|
+
background: "#fff",
|
|
2016
|
+
padding: "0",
|
|
2017
|
+
cursor: "pointer"
|
|
2018
|
+
},
|
|
2019
|
+
".sy-image-file-thumb img": {
|
|
2020
|
+
width: "100%",
|
|
2021
|
+
height: "100%",
|
|
2022
|
+
objectFit: "cover"
|
|
2023
|
+
},
|
|
2024
|
+
".sy-mobile-image-grid": {
|
|
2025
|
+
display: "grid",
|
|
2026
|
+
gridTemplateColumns: "repeat(3, minmax(0, 1fr))",
|
|
2027
|
+
gap: "10px 12px"
|
|
2028
|
+
},
|
|
2029
|
+
".sy-mobile-image-card": {
|
|
2030
|
+
position: "relative",
|
|
2031
|
+
minWidth: "0"
|
|
2032
|
+
},
|
|
2033
|
+
".sy-mobile-image-thumb": {
|
|
2034
|
+
position: "relative",
|
|
2035
|
+
aspectRatio: "1 / 1",
|
|
2036
|
+
border: "1px solid var(--ant-color-border-secondary, #f0f0f0)",
|
|
2037
|
+
borderRadius: "8px",
|
|
2038
|
+
overflow: "visible",
|
|
2039
|
+
background: "var(--ant-color-fill-quaternary, #f5f5f5)"
|
|
2040
|
+
},
|
|
2041
|
+
".sy-mobile-image-thumb .sy-image-preview": {
|
|
2042
|
+
width: "100%",
|
|
2043
|
+
height: "100%",
|
|
2044
|
+
border: "0",
|
|
2045
|
+
borderRadius: "8px",
|
|
2046
|
+
overflow: "hidden",
|
|
2047
|
+
padding: "0",
|
|
2048
|
+
background: "transparent"
|
|
2049
|
+
},
|
|
2050
|
+
".sy-mobile-image-thumb img": {
|
|
2051
|
+
width: "100%",
|
|
2052
|
+
height: "100%",
|
|
2053
|
+
objectFit: "cover"
|
|
2054
|
+
},
|
|
2055
|
+
".sy-mobile-image-thumb .sy-file-action-remove": {
|
|
2056
|
+
position: "absolute",
|
|
2057
|
+
right: "-9px",
|
|
2058
|
+
top: "-9px",
|
|
2059
|
+
zIndex: "2",
|
|
2060
|
+
width: "22px",
|
|
2061
|
+
height: "22px",
|
|
2062
|
+
borderRadius: "999px",
|
|
2063
|
+
background: "rgba(0,0,0,0.38)",
|
|
2064
|
+
color: "#fff",
|
|
2065
|
+
display: "inline-flex",
|
|
2066
|
+
alignItems: "center",
|
|
2067
|
+
justifyContent: "center",
|
|
2068
|
+
fontSize: "12px"
|
|
2069
|
+
},
|
|
2070
|
+
".sy-mobile-image-name": {
|
|
2071
|
+
marginTop: "6px",
|
|
2072
|
+
minWidth: "0",
|
|
2073
|
+
overflow: "hidden",
|
|
2074
|
+
textOverflow: "ellipsis",
|
|
2075
|
+
whiteSpace: "nowrap",
|
|
2076
|
+
color: "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))",
|
|
2077
|
+
fontSize: "14px",
|
|
2078
|
+
lineHeight: "20px"
|
|
2079
|
+
},
|
|
2080
|
+
".sy-mobile-image-upload-tile": {
|
|
2081
|
+
aspectRatio: "1 / 1",
|
|
2082
|
+
border: "1px dashed var(--ant-color-border, #d9d9d9)",
|
|
2083
|
+
borderRadius: "8px",
|
|
2084
|
+
background: "var(--ant-color-bg-container, #fff)",
|
|
2085
|
+
display: "flex",
|
|
2086
|
+
flexDirection: "column",
|
|
2087
|
+
alignItems: "center",
|
|
2088
|
+
justifyContent: "center",
|
|
2089
|
+
gap: "8px",
|
|
2090
|
+
color: "var(--ant-color-text-secondary, rgba(0,0,0,0.65))",
|
|
2091
|
+
fontSize: "16px",
|
|
2092
|
+
cursor: "pointer"
|
|
2093
|
+
},
|
|
2094
|
+
".sy-mobile-image-upload-tile svg": {
|
|
2095
|
+
color: "var(--ant-color-text-quaternary, rgba(0,0,0,0.35))",
|
|
2096
|
+
fontSize: "30px"
|
|
2097
|
+
},
|
|
2098
|
+
".sy-image-thumb": {
|
|
2099
|
+
position: "relative",
|
|
2100
|
+
aspectRatio: "1 / 1",
|
|
2101
|
+
borderRadius: "6px",
|
|
2102
|
+
overflow: "hidden",
|
|
2103
|
+
border: "1px solid var(--ant-color-border-secondary, #f0f0f0)",
|
|
2104
|
+
background: "var(--ant-color-fill-tertiary, rgba(0,0,0,0.04))"
|
|
2105
|
+
},
|
|
2106
|
+
".sy-image-preview": {
|
|
2107
|
+
width: "100%",
|
|
2108
|
+
height: "100%",
|
|
2109
|
+
border: "0",
|
|
2110
|
+
padding: "0",
|
|
2111
|
+
background: "transparent",
|
|
2112
|
+
cursor: "pointer"
|
|
2113
|
+
},
|
|
2114
|
+
".sy-image-preview:disabled": {
|
|
2115
|
+
cursor: "default"
|
|
2116
|
+
},
|
|
2117
|
+
".sy-image-thumb img": {
|
|
2118
|
+
width: "100%",
|
|
2119
|
+
height: "100%",
|
|
2120
|
+
objectFit: "cover"
|
|
2121
|
+
},
|
|
2122
|
+
".sy-image-state": {
|
|
2123
|
+
position: "absolute",
|
|
2124
|
+
inset: "0",
|
|
2125
|
+
display: "flex",
|
|
2126
|
+
alignItems: "center",
|
|
2127
|
+
justifyContent: "center",
|
|
2128
|
+
padding: "8px",
|
|
2129
|
+
fontSize: "12px",
|
|
2130
|
+
color: "var(--ant-color-text-secondary, rgba(0,0,0,0.65))",
|
|
2131
|
+
textAlign: "center",
|
|
2132
|
+
wordBreak: "break-all",
|
|
2133
|
+
background: "rgba(255,255,255,0.72)"
|
|
2134
|
+
},
|
|
2135
|
+
".sy-image-actions": {
|
|
2136
|
+
position: "absolute",
|
|
2137
|
+
right: "4px",
|
|
2138
|
+
bottom: "4px",
|
|
2139
|
+
zIndex: "2",
|
|
2140
|
+
display: "flex",
|
|
2141
|
+
gap: "4px",
|
|
2142
|
+
padding: "2px 4px",
|
|
2143
|
+
borderRadius: "4px",
|
|
2144
|
+
background: "rgba(255,255,255,0.9)",
|
|
2145
|
+
boxShadow: "0 1px 4px rgba(0,0,0,0.08)"
|
|
2146
|
+
},
|
|
2147
|
+
".sy-image-actions button": {
|
|
2148
|
+
border: "0",
|
|
2149
|
+
padding: "0",
|
|
2150
|
+
background: "transparent",
|
|
2151
|
+
color: "var(--ant-color-primary, #1677ff)",
|
|
2152
|
+
cursor: "pointer",
|
|
2153
|
+
fontSize: "12px",
|
|
2154
|
+
lineHeight: "18px"
|
|
2155
|
+
},
|
|
2156
|
+
".sy-image-actions button:disabled": {
|
|
2157
|
+
color: "var(--ant-color-text-disabled, rgba(0,0,0,0.25))",
|
|
2158
|
+
cursor: "not-allowed"
|
|
2159
|
+
},
|
|
2160
|
+
".sy-image-meta": {
|
|
2161
|
+
position: "absolute",
|
|
2162
|
+
left: "4px",
|
|
2163
|
+
top: "4px",
|
|
2164
|
+
zIndex: "1",
|
|
2165
|
+
maxWidth: "calc(100% - 8px)",
|
|
2166
|
+
padding: "1px 4px",
|
|
2167
|
+
borderRadius: "4px",
|
|
2168
|
+
background: "rgba(0,0,0,0.48)",
|
|
2169
|
+
color: "#fff",
|
|
2170
|
+
fontSize: "11px",
|
|
2171
|
+
lineHeight: "16px",
|
|
2172
|
+
pointerEvents: "none"
|
|
2173
|
+
},
|
|
2174
|
+
// Editor
|
|
2175
|
+
".sy-editor": {
|
|
2176
|
+
border: "1px solid var(--ant-color-border, #d9d9d9)",
|
|
2177
|
+
borderRadius: "6px",
|
|
2178
|
+
background: "var(--ant-color-bg-container, #fff)",
|
|
2179
|
+
overflow: "hidden",
|
|
2180
|
+
transition: "border-color 0.15s ease, box-shadow 0.15s ease"
|
|
2181
|
+
},
|
|
2182
|
+
".sy-editor:focus-within": {
|
|
2183
|
+
borderColor: "var(--ant-color-primary, #1677ff)",
|
|
2184
|
+
boxShadow: "0 0 0 1px var(--ant-color-primary, #1677ff)"
|
|
2185
|
+
},
|
|
2186
|
+
".sy-editor.is-disabled": {
|
|
2187
|
+
background: "var(--ant-color-fill-quaternary, rgba(0,0,0,0.02))"
|
|
2188
|
+
},
|
|
2189
|
+
".sy-editor.is-mobile": {
|
|
2190
|
+
border: "0",
|
|
2191
|
+
borderBottom: "1px solid var(--ant-color-split, rgba(0,0,0,0.06))",
|
|
2192
|
+
borderRadius: "0",
|
|
2193
|
+
background: "transparent",
|
|
2194
|
+
boxShadow: "none"
|
|
2195
|
+
},
|
|
2196
|
+
".sy-editor.is-mobile:focus-within": {
|
|
2197
|
+
borderBottomColor: "var(--ant-color-primary, #1677ff)",
|
|
2198
|
+
boxShadow: "none"
|
|
2199
|
+
},
|
|
2200
|
+
".sy-editor-toolbar": {
|
|
2201
|
+
display: "flex",
|
|
2202
|
+
alignItems: "center",
|
|
2203
|
+
flexWrap: "nowrap",
|
|
2204
|
+
gap: "0",
|
|
2205
|
+
minHeight: "44px",
|
|
2206
|
+
padding: "6px 12px",
|
|
2207
|
+
overflowX: "auto",
|
|
2208
|
+
overflowY: "hidden",
|
|
2209
|
+
scrollbarWidth: "thin",
|
|
2210
|
+
borderBottom: "1px solid var(--ant-color-split, rgba(0,0,0,0.06))",
|
|
2211
|
+
background: "var(--ant-color-fill-quaternary, #f7f8fb)"
|
|
2212
|
+
},
|
|
2213
|
+
".sy-editor-toolbar-group": {
|
|
2214
|
+
display: "inline-flex",
|
|
2215
|
+
alignItems: "center",
|
|
2216
|
+
flexWrap: "nowrap",
|
|
2217
|
+
gap: "2px",
|
|
2218
|
+
padding: "0 8px",
|
|
2219
|
+
borderRight: "1px solid var(--ant-color-split, rgba(0,0,0,0.06))"
|
|
2220
|
+
},
|
|
2221
|
+
".sy-editor-toolbar-group:first-child": {
|
|
2222
|
+
paddingLeft: "0"
|
|
2223
|
+
},
|
|
2224
|
+
".sy-editor-toolbar-group:last-child": {
|
|
2225
|
+
borderRight: "0",
|
|
2226
|
+
paddingRight: "0"
|
|
2227
|
+
},
|
|
2228
|
+
".sy-editor-toolbar .ant-btn": {
|
|
2229
|
+
minWidth: "30px",
|
|
2230
|
+
height: "30px",
|
|
2231
|
+
paddingInline: "7px",
|
|
2232
|
+
borderColor: "transparent",
|
|
2233
|
+
background: "transparent",
|
|
2234
|
+
boxShadow: "none",
|
|
2235
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))"
|
|
2236
|
+
},
|
|
2237
|
+
".sy-editor-toolbar .ant-btn:not(:disabled):hover": {
|
|
2238
|
+
borderColor: "transparent",
|
|
2239
|
+
background: "var(--ant-color-fill-secondary, rgba(0,0,0,0.06))",
|
|
2240
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))"
|
|
2241
|
+
},
|
|
2242
|
+
".sy-editor-toolbar .ant-btn-primary": {
|
|
2243
|
+
borderColor: "transparent",
|
|
2244
|
+
background: "var(--ant-color-primary-bg, #e6f4ff)",
|
|
2245
|
+
color: "var(--ant-color-primary, #1677ff)",
|
|
2246
|
+
boxShadow: "none"
|
|
2247
|
+
},
|
|
2248
|
+
".sy-editor-toolbar-select": {
|
|
2249
|
+
flex: "0 0 auto",
|
|
2250
|
+
minWidth: "72px"
|
|
2251
|
+
},
|
|
2252
|
+
".sy-editor-toolbar-select .ant-select-selector": {
|
|
2253
|
+
borderColor: "transparent !important",
|
|
2254
|
+
background: "transparent !important",
|
|
2255
|
+
boxShadow: "none !important",
|
|
2256
|
+
paddingInline: "4px !important"
|
|
2257
|
+
},
|
|
2258
|
+
".sy-editor-toolbar-select:hover .ant-select-selector": {
|
|
2259
|
+
background: "var(--ant-color-fill-secondary, rgba(0,0,0,0.06)) !important"
|
|
2260
|
+
},
|
|
2261
|
+
".sy-editor-color": {
|
|
2262
|
+
width: "30px",
|
|
2263
|
+
height: "30px",
|
|
2264
|
+
border: "1px solid transparent",
|
|
2265
|
+
borderRadius: "4px",
|
|
2266
|
+
padding: "3px",
|
|
2267
|
+
background: "transparent",
|
|
2268
|
+
cursor: "pointer"
|
|
2269
|
+
},
|
|
2270
|
+
".sy-editor-color:hover": {
|
|
2271
|
+
background: "var(--ant-color-fill-secondary, rgba(0,0,0,0.06))"
|
|
2272
|
+
},
|
|
2273
|
+
".sy-editor-color-presets": {
|
|
2274
|
+
display: "inline-flex",
|
|
2275
|
+
alignItems: "center"
|
|
2276
|
+
},
|
|
2277
|
+
".sy-editor-swatch": {
|
|
2278
|
+
width: "20px",
|
|
2279
|
+
height: "20px",
|
|
2280
|
+
border: "1px solid rgba(0,0,0,0.08)",
|
|
2281
|
+
borderRadius: "4px",
|
|
2282
|
+
cursor: "pointer",
|
|
2283
|
+
padding: "0"
|
|
2284
|
+
},
|
|
2285
|
+
".sy-editor-file-input": {
|
|
2286
|
+
display: "none !important",
|
|
2287
|
+
position: "absolute !important",
|
|
2288
|
+
width: "1px !important",
|
|
2289
|
+
height: "1px !important",
|
|
2290
|
+
opacity: "0 !important",
|
|
2291
|
+
pointerEvents: "none !important"
|
|
2292
|
+
},
|
|
2293
|
+
".sy-editor-body": {
|
|
2294
|
+
padding: "28px 44px",
|
|
2295
|
+
overflow: "auto",
|
|
2296
|
+
cursor: "text"
|
|
2297
|
+
},
|
|
2298
|
+
".sy-editor.is-mobile .sy-editor-body": {
|
|
2299
|
+
padding: "6px 0 12px",
|
|
2300
|
+
minHeight: "120px",
|
|
2301
|
+
overflow: "visible"
|
|
2302
|
+
},
|
|
2303
|
+
".sy-editor-prose": {
|
|
2304
|
+
outline: "none",
|
|
2305
|
+
minHeight: "inherit",
|
|
2306
|
+
whiteSpace: "pre-wrap",
|
|
2307
|
+
fontSize: "14px",
|
|
2308
|
+
lineHeight: "22px",
|
|
2309
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))"
|
|
2310
|
+
},
|
|
2311
|
+
".sy-editor.is-mobile .sy-editor-prose": {
|
|
2312
|
+
fontSize: "16px",
|
|
2313
|
+
lineHeight: "24px"
|
|
2314
|
+
},
|
|
2315
|
+
".sy-editor-readonly": {
|
|
2316
|
+
whiteSpace: "pre-wrap"
|
|
2317
|
+
},
|
|
2318
|
+
".sy-summary-richtext": {
|
|
2319
|
+
display: "block",
|
|
2320
|
+
maxWidth: "100%"
|
|
2321
|
+
},
|
|
2322
|
+
".sy-summary-richtext p": {
|
|
2323
|
+
margin: "0 0 4px"
|
|
2324
|
+
},
|
|
2325
|
+
".sy-summary-json": {
|
|
2326
|
+
margin: "0",
|
|
2327
|
+
whiteSpace: "pre-wrap",
|
|
2328
|
+
wordBreak: "break-word",
|
|
2329
|
+
fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',
|
|
2330
|
+
fontSize: "12px",
|
|
2331
|
+
lineHeight: "1.5"
|
|
2332
|
+
},
|
|
2333
|
+
".sy-editor-prose p": { margin: "0 0 8px" },
|
|
2334
|
+
".sy-editor-prose blockquote, .sy-editor-readonly blockquote": {
|
|
2335
|
+
margin: "8px 0",
|
|
2336
|
+
paddingLeft: "12px",
|
|
2337
|
+
borderLeft: "3px solid var(--ant-color-border, #d9d9d9)",
|
|
2338
|
+
color: "var(--ant-color-text-secondary, rgba(0,0,0,0.65))"
|
|
2339
|
+
},
|
|
2340
|
+
".sy-editor-prose pre, .sy-editor-readonly pre": {
|
|
2341
|
+
margin: "8px 0",
|
|
2342
|
+
padding: "10px 12px",
|
|
2343
|
+
borderRadius: "6px",
|
|
2344
|
+
background: "var(--ant-color-fill-quaternary, rgba(0,0,0,0.02))",
|
|
2345
|
+
overflowX: "auto"
|
|
2346
|
+
},
|
|
2347
|
+
'.sy-editor-prose ul[data-type="taskList"], .sy-editor-readonly ul[data-type="taskList"]': {
|
|
2348
|
+
paddingLeft: "0",
|
|
2349
|
+
listStyle: "none"
|
|
2350
|
+
},
|
|
2351
|
+
'.sy-editor-prose li[data-type="taskItem"], .sy-editor-readonly li[data-type="taskItem"]': {
|
|
2352
|
+
display: "flex",
|
|
2353
|
+
alignItems: "flex-start",
|
|
2354
|
+
gap: "8px"
|
|
2355
|
+
},
|
|
2356
|
+
'.sy-editor-prose li[data-type="taskItem"] > label, .sy-editor-readonly li[data-type="taskItem"] > label': {
|
|
2357
|
+
flex: "0 0 auto",
|
|
2358
|
+
marginTop: "2px"
|
|
2359
|
+
},
|
|
2360
|
+
'.sy-editor-prose li[data-type="taskItem"] > div, .sy-editor-readonly li[data-type="taskItem"] > div': {
|
|
2361
|
+
minWidth: "0",
|
|
2362
|
+
flex: "1"
|
|
2363
|
+
},
|
|
2364
|
+
".sy-editor-prose table, .sy-editor-readonly table": {
|
|
2365
|
+
borderCollapse: "collapse",
|
|
2366
|
+
width: "100%",
|
|
2367
|
+
tableLayout: "fixed",
|
|
2368
|
+
margin: "8px 0"
|
|
2369
|
+
},
|
|
2370
|
+
".sy-editor-prose td, .sy-editor-prose th, .sy-editor-readonly td, .sy-editor-readonly th": {
|
|
2371
|
+
border: "1px solid var(--ant-color-border-secondary, #f0f0f0)",
|
|
2372
|
+
padding: "6px"
|
|
2373
|
+
},
|
|
2374
|
+
".sy-editor-image": {
|
|
2375
|
+
maxWidth: "100%",
|
|
2376
|
+
borderRadius: "4px"
|
|
2377
|
+
},
|
|
2378
|
+
".sy-editor-footer": {
|
|
2379
|
+
display: "flex",
|
|
2380
|
+
justifyContent: "space-between",
|
|
2381
|
+
gap: "8px",
|
|
2382
|
+
marginTop: "4px",
|
|
2383
|
+
fontSize: "12px",
|
|
2384
|
+
color: "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))"
|
|
2385
|
+
},
|
|
2386
|
+
".sy-editor-footer-error": {
|
|
2387
|
+
color: "var(--ant-color-error, #ff4d4f)"
|
|
2388
|
+
},
|
|
2389
|
+
".sy-editor-modal-form": {
|
|
2390
|
+
display: "flex",
|
|
2391
|
+
flexDirection: "column",
|
|
2392
|
+
gap: "12px"
|
|
2393
|
+
},
|
|
2394
|
+
".sy-editor-table-size label": {
|
|
2395
|
+
display: "grid",
|
|
2396
|
+
gridTemplateColumns: "48px minmax(0, 1fr)",
|
|
2397
|
+
alignItems: "center",
|
|
2398
|
+
gap: "12px"
|
|
2399
|
+
},
|
|
2400
|
+
// Association and location/signature
|
|
2401
|
+
".sy-association-selector": {
|
|
2402
|
+
display: "flex",
|
|
2403
|
+
flexDirection: "column",
|
|
2404
|
+
gap: "12px"
|
|
2405
|
+
},
|
|
2406
|
+
".sy-association-selected": {
|
|
2407
|
+
display: "flex",
|
|
2408
|
+
flexWrap: "wrap",
|
|
2409
|
+
gap: "6px",
|
|
2410
|
+
paddingTop: "4px"
|
|
2411
|
+
},
|
|
2412
|
+
".sy-location-field": {
|
|
2413
|
+
display: "flex",
|
|
2414
|
+
flexDirection: "column",
|
|
2415
|
+
gap: "8px"
|
|
2416
|
+
},
|
|
2417
|
+
".sy-location-meta, .sy-signature-hash": {
|
|
2418
|
+
fontSize: "12px",
|
|
2419
|
+
color: "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))"
|
|
2420
|
+
},
|
|
2421
|
+
".sy-signature-field": {
|
|
2422
|
+
display: "flex",
|
|
2423
|
+
flexDirection: "column",
|
|
2424
|
+
alignItems: "flex-start",
|
|
2425
|
+
gap: "8px"
|
|
2426
|
+
},
|
|
2427
|
+
".sy-signature-preview": {
|
|
2428
|
+
border: "1px solid var(--ant-color-border-secondary, #f0f0f0)",
|
|
2429
|
+
background: "var(--ant-color-bg-container, #fff)",
|
|
2430
|
+
padding: "4px",
|
|
2431
|
+
borderRadius: "6px"
|
|
2432
|
+
},
|
|
2433
|
+
".sy-signature-preview img": {
|
|
2434
|
+
display: "block",
|
|
2435
|
+
maxWidth: "240px",
|
|
2436
|
+
maxHeight: "120px"
|
|
2437
|
+
},
|
|
2438
|
+
".sy-signature-canvas-wrap": {
|
|
2439
|
+
display: "flex",
|
|
2440
|
+
flexDirection: "column",
|
|
2441
|
+
gap: "8px"
|
|
2442
|
+
},
|
|
2443
|
+
// Subform
|
|
2444
|
+
".sy-subform": {
|
|
2445
|
+
display: "flex",
|
|
2446
|
+
flexDirection: "column",
|
|
2447
|
+
gap: "12px",
|
|
2448
|
+
width: "100%"
|
|
2449
|
+
},
|
|
2450
|
+
".sy-subform-toolbar": {
|
|
2451
|
+
display: "flex",
|
|
2452
|
+
alignItems: "center",
|
|
2453
|
+
justifyContent: "flex-end",
|
|
2454
|
+
gap: "12px",
|
|
2455
|
+
minHeight: "34px"
|
|
2456
|
+
},
|
|
2457
|
+
".sy-subform-row-count": {
|
|
2458
|
+
color: "var(--ant-color-text-secondary, rgba(0,0,0,0.65))",
|
|
2459
|
+
fontSize: "14px",
|
|
2460
|
+
lineHeight: "22px"
|
|
2461
|
+
},
|
|
2462
|
+
".sy-subform-table-wrap": {
|
|
2463
|
+
overflowX: "auto",
|
|
2464
|
+
border: "1px solid var(--ant-color-border, #d9d9d9)",
|
|
2465
|
+
borderRadius: "8px",
|
|
2466
|
+
background: "var(--ant-color-bg-container, #fff)",
|
|
2467
|
+
boxShadow: "0 4px 14px rgba(15, 23, 42, 0.06)"
|
|
2468
|
+
},
|
|
2469
|
+
".sy-subform-table": {
|
|
2470
|
+
width: "100%",
|
|
2471
|
+
minWidth: "720px",
|
|
2472
|
+
borderCollapse: "separate",
|
|
2473
|
+
borderSpacing: "0"
|
|
2474
|
+
},
|
|
2475
|
+
".sy-subform-table th, .sy-subform-table td": {
|
|
2476
|
+
borderBottom: "1px solid var(--ant-color-border-secondary, #f0f0f0)",
|
|
2477
|
+
borderRight: "1px solid var(--ant-color-border-secondary, #f0f0f0)",
|
|
2478
|
+
textAlign: "left",
|
|
2479
|
+
verticalAlign: "middle"
|
|
2480
|
+
},
|
|
2481
|
+
".sy-subform-table th": {
|
|
2482
|
+
padding: "12px 14px",
|
|
2483
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))",
|
|
2484
|
+
background: "var(--ant-color-fill-quaternary, #fafafa)",
|
|
2485
|
+
fontSize: "14px",
|
|
2486
|
+
fontWeight: "600",
|
|
2487
|
+
lineHeight: "22px",
|
|
2488
|
+
whiteSpace: "nowrap"
|
|
2489
|
+
},
|
|
2490
|
+
".sy-subform-table td": {
|
|
2491
|
+
padding: "14px 10px",
|
|
2492
|
+
background: "var(--ant-color-bg-container, #fff)"
|
|
2493
|
+
},
|
|
2494
|
+
".sy-subform-table th:last-child, .sy-subform-table td:last-child": {
|
|
2495
|
+
borderRight: "0",
|
|
2496
|
+
textAlign: "right",
|
|
2497
|
+
width: "88px"
|
|
2498
|
+
},
|
|
2499
|
+
".sy-subform-table tbody tr:last-child td": {
|
|
2500
|
+
borderBottom: "0"
|
|
2501
|
+
},
|
|
2502
|
+
".sy-subform-table tbody tr:hover td": {
|
|
2503
|
+
background: "var(--ant-control-item-bg-hover, #f5f5f5)"
|
|
2504
|
+
},
|
|
2505
|
+
".sy-subform-table .sy-field-wrapper": {
|
|
2506
|
+
margin: "0"
|
|
2507
|
+
},
|
|
2508
|
+
".sy-subform-table .sy-field-label, .sy-subform-table .sy-field-tips": {
|
|
2509
|
+
display: "none"
|
|
2510
|
+
},
|
|
2511
|
+
".sy-subform-table .sy-field-control > *": {
|
|
2512
|
+
width: "100%"
|
|
2513
|
+
},
|
|
2514
|
+
".sy-subform-card": {
|
|
2515
|
+
overflow: "hidden",
|
|
2516
|
+
border: "1px solid var(--ant-color-border-secondary, #f0f0f0)",
|
|
2517
|
+
borderRadius: "8px",
|
|
2518
|
+
background: "var(--ant-color-bg-container, #fff)",
|
|
2519
|
+
boxShadow: "0 2px 10px rgba(15, 23, 42, 0.04)"
|
|
2520
|
+
},
|
|
2521
|
+
".sy-subform-card-head": {
|
|
2522
|
+
display: "flex",
|
|
2523
|
+
justifyContent: "space-between",
|
|
2524
|
+
alignItems: "center",
|
|
2525
|
+
gap: "10px",
|
|
2526
|
+
padding: "10px 12px",
|
|
2527
|
+
borderBottom: "1px solid var(--ant-color-border-secondary, #f0f0f0)",
|
|
2528
|
+
background: "var(--ant-color-fill-quaternary, #fafafa)"
|
|
2529
|
+
},
|
|
2530
|
+
".sy-subform-card-head strong": {
|
|
2531
|
+
display: "inline-flex",
|
|
2532
|
+
alignItems: "center",
|
|
2533
|
+
borderRadius: "6px",
|
|
2534
|
+
padding: "2px 8px",
|
|
2535
|
+
color: "var(--ant-color-primary, #1677ff)",
|
|
2536
|
+
background: "var(--ant-color-primary-bg, #e6f4ff)",
|
|
2537
|
+
fontSize: "13px",
|
|
2538
|
+
lineHeight: "20px"
|
|
2539
|
+
},
|
|
2540
|
+
".sy-subform-mobile-cell": {
|
|
2541
|
+
display: "grid",
|
|
2542
|
+
gridTemplateColumns: "96px minmax(0, 1fr)",
|
|
2543
|
+
gap: "10px",
|
|
2544
|
+
alignItems: "start",
|
|
2545
|
+
padding: "10px 12px",
|
|
2546
|
+
borderBottom: "1px solid var(--ant-color-border-secondary, #f0f0f0)"
|
|
2547
|
+
},
|
|
2548
|
+
".sy-subform-mobile-cell:last-child": {
|
|
2549
|
+
borderBottom: "0"
|
|
2550
|
+
},
|
|
2551
|
+
".sy-subform-mobile-cell label": {
|
|
2552
|
+
paddingTop: "5px",
|
|
2553
|
+
color: "var(--ant-color-text, rgba(0,0,0,0.88))",
|
|
2554
|
+
fontSize: "14px",
|
|
2555
|
+
lineHeight: "22px"
|
|
2556
|
+
},
|
|
2557
|
+
".sy-subform-link-button": {
|
|
2558
|
+
border: "0",
|
|
2559
|
+
background: "transparent",
|
|
2560
|
+
color: "var(--ant-color-primary, #1677ff)",
|
|
2561
|
+
cursor: "pointer",
|
|
2562
|
+
padding: "0 2px",
|
|
2563
|
+
fontSize: "14px",
|
|
2564
|
+
lineHeight: "22px"
|
|
2565
|
+
},
|
|
2566
|
+
".sy-subform-danger-button": {
|
|
2567
|
+
color: "var(--ant-color-error, #ff4d4f)"
|
|
2568
|
+
},
|
|
2569
|
+
".sy-subform-link-button:disabled": {
|
|
2570
|
+
color: "var(--ant-color-text-quaternary, rgba(0,0,0,0.25))",
|
|
2571
|
+
cursor: "not-allowed"
|
|
2572
|
+
},
|
|
2573
|
+
".sy-subform-add-button": {
|
|
2574
|
+
border: "1px solid var(--ant-color-primary, #1677ff)",
|
|
2575
|
+
borderRadius: "6px",
|
|
2576
|
+
background: "var(--ant-color-primary-bg, #e6f4ff)",
|
|
2577
|
+
color: "var(--ant-color-primary, #1677ff)",
|
|
2578
|
+
cursor: "pointer",
|
|
2579
|
+
padding: "5px 12px",
|
|
2580
|
+
fontSize: "14px",
|
|
2581
|
+
lineHeight: "22px"
|
|
2582
|
+
},
|
|
2583
|
+
".sy-subform-add-button:disabled": {
|
|
2584
|
+
borderColor: "var(--ant-color-border, #d9d9d9)",
|
|
2585
|
+
background: "var(--ant-color-fill-quaternary, #fafafa)",
|
|
2586
|
+
color: "var(--ant-color-text-quaternary, rgba(0,0,0,0.25))",
|
|
2587
|
+
cursor: "not-allowed"
|
|
2588
|
+
},
|
|
2589
|
+
".sy-subform-empty": {
|
|
2590
|
+
color: "var(--ant-color-text-tertiary, rgba(0,0,0,0.45))",
|
|
2591
|
+
padding: "10px 12px",
|
|
2592
|
+
border: "1px dashed var(--ant-color-border, #d9d9d9)",
|
|
2593
|
+
borderRadius: "8px",
|
|
2594
|
+
background: "var(--ant-color-fill-quaternary, #fafafa)",
|
|
2595
|
+
textAlign: "center"
|
|
2596
|
+
},
|
|
2597
|
+
// Spinner (kept for backward compat)
|
|
2598
|
+
".sy-spinner": {
|
|
2599
|
+
width: "14px",
|
|
2600
|
+
height: "14px",
|
|
2601
|
+
border: "2px solid currentColor",
|
|
2602
|
+
borderTopColor: "transparent",
|
|
2603
|
+
borderRadius: "9999px",
|
|
2604
|
+
animation: "sy-spin 0.8s linear infinite"
|
|
2605
|
+
},
|
|
2606
|
+
"@keyframes sy-spin": {
|
|
2607
|
+
to: {
|
|
2608
|
+
transform: "rotate(360deg)"
|
|
2609
|
+
}
|
|
2610
|
+
}
|
|
2611
|
+
});
|
|
2612
|
+
}
|
|
2613
|
+
]
|
|
2614
|
+
};
|
|
2615
|
+
export {
|
|
2616
|
+
tailwind_preset_default as default
|
|
2617
|
+
};
|
|
2618
|
+
//# sourceMappingURL=tailwind-preset.mjs.map
|