@crediblemark/build 0.24.5 → 0.24.7
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/dist/ArrayField-2HGRARI2.mjs +19 -0
- package/dist/{ArrayField-ZD5UTLNU.css → ArrayField-SEWJV5GB.css} +53 -36
- package/dist/{Editor-HOZVZZIZ.mjs → Editor-3EPLDK4J.mjs} +7 -7
- package/dist/ObjectField-2JSLQM7O.mjs +19 -0
- package/dist/{ObjectField-SQKROKJM.css → ObjectField-KBWPA5AV.css} +53 -36
- package/dist/{chunk-VBNE6GK2.mjs → chunk-5JSNFZKX.mjs} +7 -7
- package/dist/chunk-7EY2S46B.mjs +92 -0
- package/dist/{chunk-WKMRHPOM.mjs → chunk-KUWVOWUV.mjs} +1 -1
- package/dist/{chunk-LBMMY5IM.mjs → chunk-MFTVX2ME.mjs} +1 -1
- package/dist/{ArrayField-F7OLZF6U.mjs → chunk-N2NNRJDJ.mjs} +364 -45
- package/dist/{chunk-H2LU4EW3.mjs → chunk-QV6ANL5D.mjs} +209 -156
- package/dist/{chunk-5VWWS4RS.mjs → chunk-TROD5OXC.mjs} +737 -373
- package/dist/{chunk-5OK3IPVN.mjs → chunk-VE6BIQKS.mjs} +1 -1
- package/dist/{chunk-2VS2BST6.mjs → chunk-WH3A7FAR.mjs} +1 -1
- package/dist/{chunk-GIUKL443.mjs → chunk-XLNVCM4Q.mjs} +30 -30
- package/dist/{chunk-6RPYD5IO.mjs → chunk-YE4FXNJW.mjs} +2 -2
- package/dist/{full-65U7W6EN.mjs → full-SYDEKGLJ.mjs} +5 -5
- package/dist/index.css +71 -54
- package/dist/index.d.mts +37 -1
- package/dist/index.d.ts +37 -1
- package/dist/index.js +1096 -697
- package/dist/index.mjs +17 -10
- package/dist/{loaded-3NNC6Q35.mjs → loaded-5JH76RZT.mjs} +2 -2
- package/dist/{loaded-2CPFB62H.mjs → loaded-NHGZU7V3.mjs} +2 -2
- package/dist/{loaded-GYA4OMNE.mjs → loaded-ON5OAY2P.mjs} +2 -2
- package/dist/no-external.css +71 -54
- package/dist/no-external.d.mts +1 -1
- package/dist/no-external.d.ts +1 -1
- package/dist/no-external.js +1096 -697
- package/dist/no-external.mjs +17 -10
- package/package.json +1 -1
- package/dist/ObjectField-4SN4ZYFF.mjs +0 -87
- package/dist/chunk-BQW2NTNG.mjs +0 -339
- package/dist/chunk-IRJS3HWQ.mjs +0 -60
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ArrayField
|
|
3
|
+
} from "./chunk-N2NNRJDJ.mjs";
|
|
4
|
+
import "./chunk-QV6ANL5D.mjs";
|
|
5
|
+
import "./chunk-WH3A7FAR.mjs";
|
|
6
|
+
import "./chunk-AL77I3BV.mjs";
|
|
7
|
+
import "./chunk-5JSNFZKX.mjs";
|
|
8
|
+
import "./chunk-MFTVX2ME.mjs";
|
|
9
|
+
import "./chunk-KUWVOWUV.mjs";
|
|
10
|
+
import "./chunk-VE6BIQKS.mjs";
|
|
11
|
+
import "./chunk-XLNVCM4Q.mjs";
|
|
12
|
+
import "./chunk-64A37UUC.mjs";
|
|
13
|
+
import "./chunk-SMAWAXVX.mjs";
|
|
14
|
+
import "./chunk-BFHV72KK.mjs";
|
|
15
|
+
import "./chunk-7LXZOPYT.mjs";
|
|
16
|
+
import "./chunk-AFVEAZTD.mjs";
|
|
17
|
+
export {
|
|
18
|
+
ArrayField
|
|
19
|
+
};
|
|
@@ -258,28 +258,31 @@
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
/* css-module:/home/crediblemark/Project/Credibuild/components/AutoField/styles.module.css/#css-module-data */
|
|
261
|
-
.
|
|
262
|
-
margin-top:
|
|
261
|
+
._InputWrapper_1bq9u_1 + ._InputWrapper_1bq9u_1 {
|
|
262
|
+
margin-top: 5px;
|
|
263
263
|
}
|
|
264
|
-
._Input-
|
|
264
|
+
._Input-label_1bq9u_5 {
|
|
265
265
|
align-items: center;
|
|
266
266
|
color: var(--credbuild-color-grey-04);
|
|
267
267
|
display: flex;
|
|
268
|
-
padding-bottom:
|
|
268
|
+
padding-bottom: 4px;
|
|
269
269
|
font-size: var(--credbuild-font-size-xxs);
|
|
270
270
|
font-weight: 600;
|
|
271
271
|
}
|
|
272
|
-
._Input-
|
|
272
|
+
._Input-label--noChildren_1bq9u_14 {
|
|
273
|
+
padding-bottom: 0;
|
|
274
|
+
}
|
|
275
|
+
._Input-labelIcon_1bq9u_18 {
|
|
273
276
|
color: var(--credbuild-color-grey-07);
|
|
274
277
|
display: flex;
|
|
275
278
|
margin-inline-end: 4px;
|
|
276
279
|
padding-inline-start: 4px;
|
|
277
280
|
}
|
|
278
|
-
._Input-
|
|
281
|
+
._Input-disabledIcon_1bq9u_25 {
|
|
279
282
|
color: var(--credbuild-color-grey-05);
|
|
280
283
|
margin-inline-start: auto;
|
|
281
284
|
}
|
|
282
|
-
._Input-
|
|
285
|
+
._Input-input_1bq9u_30 {
|
|
283
286
|
background: var(--credbuild-color-white);
|
|
284
287
|
border-width: 1px;
|
|
285
288
|
border-style: solid;
|
|
@@ -288,17 +291,17 @@
|
|
|
288
291
|
box-sizing: border-box;
|
|
289
292
|
font-family: inherit;
|
|
290
293
|
font-size: 16px;
|
|
291
|
-
padding:
|
|
294
|
+
padding: 6px 10px;
|
|
292
295
|
transition: border-color 50ms ease-in;
|
|
293
296
|
width: 100%;
|
|
294
297
|
max-width: 100%;
|
|
295
298
|
}
|
|
296
299
|
@media (min-width: 458px) {
|
|
297
|
-
._Input-
|
|
300
|
+
._Input-input_1bq9u_30 {
|
|
298
301
|
font-size: 14px;
|
|
299
302
|
}
|
|
300
303
|
}
|
|
301
|
-
select._Input-
|
|
304
|
+
select._Input-input_1bq9u_30 {
|
|
302
305
|
appearance: none;
|
|
303
306
|
background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23c3c3c3'><polygon points='0,0 100,0 50,50'/></svg>") no-repeat;
|
|
304
307
|
background-size: 12px;
|
|
@@ -307,29 +310,29 @@ select._Input-input_1q7gk_26 {
|
|
|
307
310
|
background-color: var(--credbuild-color-white);
|
|
308
311
|
cursor: pointer;
|
|
309
312
|
}
|
|
310
|
-
select._Input-
|
|
313
|
+
select._Input-input_1bq9u_30:dir(rtl) {
|
|
311
314
|
background-position: 12px calc(50% + 3px);
|
|
312
315
|
}
|
|
313
316
|
@media (hover: hover) and (pointer: fine) {
|
|
314
|
-
.
|
|
315
|
-
.
|
|
317
|
+
._Input_1bq9u_1:has(> input):hover ._Input-input_1bq9u_30:not([readonly]),
|
|
318
|
+
._Input_1bq9u_1:has(> textarea):hover ._Input-input_1bq9u_30:not([readonly]) {
|
|
316
319
|
border-color: var(--credbuild-color-grey-05);
|
|
317
320
|
transition: none;
|
|
318
321
|
}
|
|
319
|
-
.
|
|
322
|
+
._Input_1bq9u_1:has(> select):hover ._Input-input_1bq9u_30:not([disabled]) {
|
|
320
323
|
background-color: var(--credbuild-color-azure-12);
|
|
321
324
|
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%235a5a5a'><polygon points='0,0 100,0 50,50'/></svg>");
|
|
322
325
|
border-color: var(--credbuild-color-grey-05);
|
|
323
326
|
transition: none;
|
|
324
327
|
}
|
|
325
328
|
}
|
|
326
|
-
._Input-
|
|
329
|
+
._Input-input_1bq9u_30:focus {
|
|
327
330
|
border-color: var(--credbuild-color-grey-05);
|
|
328
331
|
outline: 2px solid var(--credbuild-color-azure-05);
|
|
329
332
|
transition: none;
|
|
330
333
|
}
|
|
331
|
-
._Input--
|
|
332
|
-
._Input--
|
|
334
|
+
._Input--readOnly_1bq9u_86 > ._Input-input_1bq9u_30,
|
|
335
|
+
._Input--readOnly_1bq9u_86 > select._Input-input_1bq9u_30 {
|
|
333
336
|
background-color: var(--credbuild-color-grey-11);
|
|
334
337
|
border-color: var(--credbuild-color-grey-09);
|
|
335
338
|
color: var(--credbuild-color-grey-04);
|
|
@@ -338,34 +341,34 @@ select._Input-input_1q7gk_26:dir(rtl) {
|
|
|
338
341
|
outline: 0;
|
|
339
342
|
transition: none;
|
|
340
343
|
}
|
|
341
|
-
._Input-
|
|
344
|
+
._Input-radioGroupItems_1bq9u_97 {
|
|
342
345
|
display: flex;
|
|
343
346
|
border: 1px solid var(--credbuild-color-grey-09);
|
|
344
347
|
border-radius: 4px;
|
|
345
348
|
flex-wrap: wrap;
|
|
346
349
|
}
|
|
347
|
-
._Input-
|
|
350
|
+
._Input-radio_1bq9u_97 {
|
|
348
351
|
border-inline-end: 1px solid var(--credbuild-color-grey-09);
|
|
349
352
|
flex-grow: 1;
|
|
350
353
|
}
|
|
351
|
-
._Input-
|
|
354
|
+
._Input-radio_1bq9u_97:first-of-type {
|
|
352
355
|
border-bottom-left-radius: 4px;
|
|
353
356
|
border-top-left-radius: 4px;
|
|
354
357
|
}
|
|
355
|
-
._Input-
|
|
358
|
+
._Input-radio_1bq9u_97:first-of-type ._Input-radioInner_1bq9u_114 {
|
|
356
359
|
border-bottom-left-radius: 3px;
|
|
357
360
|
border-top-left-radius: 3px;
|
|
358
361
|
}
|
|
359
|
-
._Input-
|
|
362
|
+
._Input-radio_1bq9u_97:last-of-type {
|
|
360
363
|
border-bottom-right-radius: 4px;
|
|
361
364
|
border-inline-end: 0;
|
|
362
365
|
border-top-right-radius: 4px;
|
|
363
366
|
}
|
|
364
|
-
._Input-
|
|
367
|
+
._Input-radio_1bq9u_97:last-of-type ._Input-radioInner_1bq9u_114 {
|
|
365
368
|
border-bottom-right-radius: 3px;
|
|
366
369
|
border-top-right-radius: 3px;
|
|
367
370
|
}
|
|
368
|
-
._Input-
|
|
371
|
+
._Input-radioInner_1bq9u_114 {
|
|
369
372
|
background-color: var(--credbuild-color-white);
|
|
370
373
|
color: var(--credbuild-color-grey-04);
|
|
371
374
|
cursor: pointer;
|
|
@@ -374,32 +377,32 @@ select._Input-input_1q7gk_26:dir(rtl) {
|
|
|
374
377
|
text-align: center;
|
|
375
378
|
transition: background-color 50ms ease-in;
|
|
376
379
|
}
|
|
377
|
-
._Input-
|
|
380
|
+
._Input-radio_1bq9u_97:has(:focus-visible) {
|
|
378
381
|
outline: 2px solid var(--credbuild-color-azure-05);
|
|
379
382
|
outline-offset: 2px;
|
|
380
383
|
position: relative;
|
|
381
384
|
}
|
|
382
385
|
@media (hover: hover) and (pointer: fine) {
|
|
383
|
-
._Input-
|
|
386
|
+
._Input-radioInner_1bq9u_114:hover {
|
|
384
387
|
background-color: var(--credbuild-color-azure-12);
|
|
385
388
|
transition: none;
|
|
386
389
|
}
|
|
387
390
|
}
|
|
388
|
-
._Input--
|
|
391
|
+
._Input--readOnly_1bq9u_86 ._Input-radioInner_1bq9u_114 {
|
|
389
392
|
background-color: var(--credbuild-color-white);
|
|
390
393
|
color: var(--credbuild-color-grey-04);
|
|
391
394
|
cursor: default;
|
|
392
395
|
}
|
|
393
|
-
._Input-
|
|
396
|
+
._Input-radio_1bq9u_97 ._Input-radioInput_1bq9u_159:checked ~ ._Input-radioInner_1bq9u_114 {
|
|
394
397
|
background-color: var(--credbuild-color-azure-11);
|
|
395
398
|
color: var(--credbuild-color-azure-04);
|
|
396
399
|
font-weight: 500;
|
|
397
400
|
}
|
|
398
|
-
._Input--
|
|
401
|
+
._Input--readOnly_1bq9u_86 ._Input-radioInput_1bq9u_159:checked ~ ._Input-radioInner_1bq9u_114 {
|
|
399
402
|
background-color: var(--credbuild-color-grey-11);
|
|
400
403
|
color: var(--credbuild-color-grey-04);
|
|
401
404
|
}
|
|
402
|
-
._Input-
|
|
405
|
+
._Input-radio_1bq9u_97 ._Input-radioInput_1bq9u_159 {
|
|
403
406
|
clip: rect(0 0 0 0);
|
|
404
407
|
clip-path: inset(100%);
|
|
405
408
|
height: 1px;
|
|
@@ -408,7 +411,7 @@ select._Input-input_1q7gk_26:dir(rtl) {
|
|
|
408
411
|
white-space: nowrap;
|
|
409
412
|
width: 1px;
|
|
410
413
|
}
|
|
411
|
-
textarea._Input-
|
|
414
|
+
textarea._Input-input_1bq9u_30 {
|
|
412
415
|
margin-bottom: -4px;
|
|
413
416
|
}
|
|
414
417
|
|
|
@@ -1201,16 +1204,30 @@ textarea._Input-input_1q7gk_26 {
|
|
|
1201
1204
|
}
|
|
1202
1205
|
|
|
1203
1206
|
/* css-module:/home/crediblemark/Project/Credibuild/components/AutoField/fields/ObjectField/styles.module.css/#css-module-data */
|
|
1204
|
-
.
|
|
1207
|
+
._ObjectField_1vrf5_1 {
|
|
1205
1208
|
display: flex;
|
|
1206
1209
|
flex-direction: column;
|
|
1207
|
-
background-color:
|
|
1210
|
+
background-color: transparent;
|
|
1208
1211
|
border: 1px solid var(--credbuild-color-grey-09);
|
|
1209
|
-
border-radius:
|
|
1212
|
+
border-radius: 6px;
|
|
1213
|
+
margin-bottom: 8px;
|
|
1214
|
+
overflow: hidden;
|
|
1215
|
+
transition: all 0.2s ease;
|
|
1216
|
+
}
|
|
1217
|
+
._ObjectField--isOpen_1vrf5_12 {
|
|
1218
|
+
border-color: var(--credbuild-color-azure-09);
|
|
1219
|
+
background-color: var(--credbuild-color-grey-11);
|
|
1220
|
+
}
|
|
1221
|
+
._ObjectField-content_1vrf5_17 {
|
|
1222
|
+
border-top: 1px solid var(--credbuild-color-grey-09);
|
|
1223
|
+
background-color: var(--credbuild-color-white);
|
|
1210
1224
|
}
|
|
1211
|
-
._ObjectField-
|
|
1225
|
+
._ObjectField-fieldset_1vrf5_22 {
|
|
1212
1226
|
border: none;
|
|
1213
1227
|
margin: 0;
|
|
1214
1228
|
min-width: 0;
|
|
1215
|
-
padding:
|
|
1229
|
+
padding: 12px 12px;
|
|
1230
|
+
display: flex;
|
|
1231
|
+
flex-direction: column;
|
|
1232
|
+
gap: 12px;
|
|
1216
1233
|
}
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
} from "./chunk-DEUK76GN.mjs";
|
|
4
4
|
import {
|
|
5
5
|
LoadedRichTextMenu
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YE4FXNJW.mjs";
|
|
7
7
|
import {
|
|
8
8
|
EditorInner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WH3A7FAR.mjs";
|
|
10
10
|
import "./chunk-AL77I3BV.mjs";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-5JSNFZKX.mjs";
|
|
12
|
+
import "./chunk-MFTVX2ME.mjs";
|
|
13
|
+
import "./chunk-KUWVOWUV.mjs";
|
|
14
|
+
import "./chunk-VE6BIQKS.mjs";
|
|
15
15
|
import {
|
|
16
16
|
useAppStore,
|
|
17
17
|
useAppStoreApi
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XLNVCM4Q.mjs";
|
|
19
19
|
import "./chunk-64A37UUC.mjs";
|
|
20
20
|
import "./chunk-SMAWAXVX.mjs";
|
|
21
21
|
import "./chunk-BFHV72KK.mjs";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ObjectField
|
|
3
|
+
} from "./chunk-7EY2S46B.mjs";
|
|
4
|
+
import "./chunk-QV6ANL5D.mjs";
|
|
5
|
+
import "./chunk-WH3A7FAR.mjs";
|
|
6
|
+
import "./chunk-AL77I3BV.mjs";
|
|
7
|
+
import "./chunk-5JSNFZKX.mjs";
|
|
8
|
+
import "./chunk-MFTVX2ME.mjs";
|
|
9
|
+
import "./chunk-KUWVOWUV.mjs";
|
|
10
|
+
import "./chunk-VE6BIQKS.mjs";
|
|
11
|
+
import "./chunk-XLNVCM4Q.mjs";
|
|
12
|
+
import "./chunk-64A37UUC.mjs";
|
|
13
|
+
import "./chunk-SMAWAXVX.mjs";
|
|
14
|
+
import "./chunk-BFHV72KK.mjs";
|
|
15
|
+
import "./chunk-7LXZOPYT.mjs";
|
|
16
|
+
import "./chunk-AFVEAZTD.mjs";
|
|
17
|
+
export {
|
|
18
|
+
ObjectField
|
|
19
|
+
};
|
|
@@ -1,41 +1,58 @@
|
|
|
1
1
|
/* css-module:/home/crediblemark/Project/Credibuild/components/AutoField/fields/ObjectField/styles.module.css/#css-module-data */
|
|
2
|
-
.
|
|
2
|
+
._ObjectField_1vrf5_1 {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
|
-
background-color:
|
|
5
|
+
background-color: transparent;
|
|
6
6
|
border: 1px solid var(--credbuild-color-grey-09);
|
|
7
|
-
border-radius:
|
|
7
|
+
border-radius: 6px;
|
|
8
|
+
margin-bottom: 8px;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
transition: all 0.2s ease;
|
|
11
|
+
}
|
|
12
|
+
._ObjectField--isOpen_1vrf5_12 {
|
|
13
|
+
border-color: var(--credbuild-color-azure-09);
|
|
14
|
+
background-color: var(--credbuild-color-grey-11);
|
|
15
|
+
}
|
|
16
|
+
._ObjectField-content_1vrf5_17 {
|
|
17
|
+
border-top: 1px solid var(--credbuild-color-grey-09);
|
|
18
|
+
background-color: var(--credbuild-color-white);
|
|
8
19
|
}
|
|
9
|
-
._ObjectField-
|
|
20
|
+
._ObjectField-fieldset_1vrf5_22 {
|
|
10
21
|
border: none;
|
|
11
22
|
margin: 0;
|
|
12
23
|
min-width: 0;
|
|
13
|
-
padding:
|
|
24
|
+
padding: 12px 12px;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
gap: 12px;
|
|
14
28
|
}
|
|
15
29
|
|
|
16
30
|
/* css-module:/home/crediblemark/Project/Credibuild/components/AutoField/styles.module.css/#css-module-data */
|
|
17
|
-
.
|
|
18
|
-
margin-top:
|
|
31
|
+
._InputWrapper_1bq9u_1 + ._InputWrapper_1bq9u_1 {
|
|
32
|
+
margin-top: 5px;
|
|
19
33
|
}
|
|
20
|
-
._Input-
|
|
34
|
+
._Input-label_1bq9u_5 {
|
|
21
35
|
align-items: center;
|
|
22
36
|
color: var(--credbuild-color-grey-04);
|
|
23
37
|
display: flex;
|
|
24
|
-
padding-bottom:
|
|
38
|
+
padding-bottom: 4px;
|
|
25
39
|
font-size: var(--credbuild-font-size-xxs);
|
|
26
40
|
font-weight: 600;
|
|
27
41
|
}
|
|
28
|
-
._Input-
|
|
42
|
+
._Input-label--noChildren_1bq9u_14 {
|
|
43
|
+
padding-bottom: 0;
|
|
44
|
+
}
|
|
45
|
+
._Input-labelIcon_1bq9u_18 {
|
|
29
46
|
color: var(--credbuild-color-grey-07);
|
|
30
47
|
display: flex;
|
|
31
48
|
margin-inline-end: 4px;
|
|
32
49
|
padding-inline-start: 4px;
|
|
33
50
|
}
|
|
34
|
-
._Input-
|
|
51
|
+
._Input-disabledIcon_1bq9u_25 {
|
|
35
52
|
color: var(--credbuild-color-grey-05);
|
|
36
53
|
margin-inline-start: auto;
|
|
37
54
|
}
|
|
38
|
-
._Input-
|
|
55
|
+
._Input-input_1bq9u_30 {
|
|
39
56
|
background: var(--credbuild-color-white);
|
|
40
57
|
border-width: 1px;
|
|
41
58
|
border-style: solid;
|
|
@@ -44,17 +61,17 @@
|
|
|
44
61
|
box-sizing: border-box;
|
|
45
62
|
font-family: inherit;
|
|
46
63
|
font-size: 16px;
|
|
47
|
-
padding:
|
|
64
|
+
padding: 6px 10px;
|
|
48
65
|
transition: border-color 50ms ease-in;
|
|
49
66
|
width: 100%;
|
|
50
67
|
max-width: 100%;
|
|
51
68
|
}
|
|
52
69
|
@media (min-width: 458px) {
|
|
53
|
-
._Input-
|
|
70
|
+
._Input-input_1bq9u_30 {
|
|
54
71
|
font-size: 14px;
|
|
55
72
|
}
|
|
56
73
|
}
|
|
57
|
-
select._Input-
|
|
74
|
+
select._Input-input_1bq9u_30 {
|
|
58
75
|
appearance: none;
|
|
59
76
|
background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23c3c3c3'><polygon points='0,0 100,0 50,50'/></svg>") no-repeat;
|
|
60
77
|
background-size: 12px;
|
|
@@ -63,29 +80,29 @@ select._Input-input_1q7gk_26 {
|
|
|
63
80
|
background-color: var(--credbuild-color-white);
|
|
64
81
|
cursor: pointer;
|
|
65
82
|
}
|
|
66
|
-
select._Input-
|
|
83
|
+
select._Input-input_1bq9u_30:dir(rtl) {
|
|
67
84
|
background-position: 12px calc(50% + 3px);
|
|
68
85
|
}
|
|
69
86
|
@media (hover: hover) and (pointer: fine) {
|
|
70
|
-
.
|
|
71
|
-
.
|
|
87
|
+
._Input_1bq9u_1:has(> input):hover ._Input-input_1bq9u_30:not([readonly]),
|
|
88
|
+
._Input_1bq9u_1:has(> textarea):hover ._Input-input_1bq9u_30:not([readonly]) {
|
|
72
89
|
border-color: var(--credbuild-color-grey-05);
|
|
73
90
|
transition: none;
|
|
74
91
|
}
|
|
75
|
-
.
|
|
92
|
+
._Input_1bq9u_1:has(> select):hover ._Input-input_1bq9u_30:not([disabled]) {
|
|
76
93
|
background-color: var(--credbuild-color-azure-12);
|
|
77
94
|
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%235a5a5a'><polygon points='0,0 100,0 50,50'/></svg>");
|
|
78
95
|
border-color: var(--credbuild-color-grey-05);
|
|
79
96
|
transition: none;
|
|
80
97
|
}
|
|
81
98
|
}
|
|
82
|
-
._Input-
|
|
99
|
+
._Input-input_1bq9u_30:focus {
|
|
83
100
|
border-color: var(--credbuild-color-grey-05);
|
|
84
101
|
outline: 2px solid var(--credbuild-color-azure-05);
|
|
85
102
|
transition: none;
|
|
86
103
|
}
|
|
87
|
-
._Input--
|
|
88
|
-
._Input--
|
|
104
|
+
._Input--readOnly_1bq9u_86 > ._Input-input_1bq9u_30,
|
|
105
|
+
._Input--readOnly_1bq9u_86 > select._Input-input_1bq9u_30 {
|
|
89
106
|
background-color: var(--credbuild-color-grey-11);
|
|
90
107
|
border-color: var(--credbuild-color-grey-09);
|
|
91
108
|
color: var(--credbuild-color-grey-04);
|
|
@@ -94,34 +111,34 @@ select._Input-input_1q7gk_26:dir(rtl) {
|
|
|
94
111
|
outline: 0;
|
|
95
112
|
transition: none;
|
|
96
113
|
}
|
|
97
|
-
._Input-
|
|
114
|
+
._Input-radioGroupItems_1bq9u_97 {
|
|
98
115
|
display: flex;
|
|
99
116
|
border: 1px solid var(--credbuild-color-grey-09);
|
|
100
117
|
border-radius: 4px;
|
|
101
118
|
flex-wrap: wrap;
|
|
102
119
|
}
|
|
103
|
-
._Input-
|
|
120
|
+
._Input-radio_1bq9u_97 {
|
|
104
121
|
border-inline-end: 1px solid var(--credbuild-color-grey-09);
|
|
105
122
|
flex-grow: 1;
|
|
106
123
|
}
|
|
107
|
-
._Input-
|
|
124
|
+
._Input-radio_1bq9u_97:first-of-type {
|
|
108
125
|
border-bottom-left-radius: 4px;
|
|
109
126
|
border-top-left-radius: 4px;
|
|
110
127
|
}
|
|
111
|
-
._Input-
|
|
128
|
+
._Input-radio_1bq9u_97:first-of-type ._Input-radioInner_1bq9u_114 {
|
|
112
129
|
border-bottom-left-radius: 3px;
|
|
113
130
|
border-top-left-radius: 3px;
|
|
114
131
|
}
|
|
115
|
-
._Input-
|
|
132
|
+
._Input-radio_1bq9u_97:last-of-type {
|
|
116
133
|
border-bottom-right-radius: 4px;
|
|
117
134
|
border-inline-end: 0;
|
|
118
135
|
border-top-right-radius: 4px;
|
|
119
136
|
}
|
|
120
|
-
._Input-
|
|
137
|
+
._Input-radio_1bq9u_97:last-of-type ._Input-radioInner_1bq9u_114 {
|
|
121
138
|
border-bottom-right-radius: 3px;
|
|
122
139
|
border-top-right-radius: 3px;
|
|
123
140
|
}
|
|
124
|
-
._Input-
|
|
141
|
+
._Input-radioInner_1bq9u_114 {
|
|
125
142
|
background-color: var(--credbuild-color-white);
|
|
126
143
|
color: var(--credbuild-color-grey-04);
|
|
127
144
|
cursor: pointer;
|
|
@@ -130,32 +147,32 @@ select._Input-input_1q7gk_26:dir(rtl) {
|
|
|
130
147
|
text-align: center;
|
|
131
148
|
transition: background-color 50ms ease-in;
|
|
132
149
|
}
|
|
133
|
-
._Input-
|
|
150
|
+
._Input-radio_1bq9u_97:has(:focus-visible) {
|
|
134
151
|
outline: 2px solid var(--credbuild-color-azure-05);
|
|
135
152
|
outline-offset: 2px;
|
|
136
153
|
position: relative;
|
|
137
154
|
}
|
|
138
155
|
@media (hover: hover) and (pointer: fine) {
|
|
139
|
-
._Input-
|
|
156
|
+
._Input-radioInner_1bq9u_114:hover {
|
|
140
157
|
background-color: var(--credbuild-color-azure-12);
|
|
141
158
|
transition: none;
|
|
142
159
|
}
|
|
143
160
|
}
|
|
144
|
-
._Input--
|
|
161
|
+
._Input--readOnly_1bq9u_86 ._Input-radioInner_1bq9u_114 {
|
|
145
162
|
background-color: var(--credbuild-color-white);
|
|
146
163
|
color: var(--credbuild-color-grey-04);
|
|
147
164
|
cursor: default;
|
|
148
165
|
}
|
|
149
|
-
._Input-
|
|
166
|
+
._Input-radio_1bq9u_97 ._Input-radioInput_1bq9u_159:checked ~ ._Input-radioInner_1bq9u_114 {
|
|
150
167
|
background-color: var(--credbuild-color-azure-11);
|
|
151
168
|
color: var(--credbuild-color-azure-04);
|
|
152
169
|
font-weight: 500;
|
|
153
170
|
}
|
|
154
|
-
._Input--
|
|
171
|
+
._Input--readOnly_1bq9u_86 ._Input-radioInput_1bq9u_159:checked ~ ._Input-radioInner_1bq9u_114 {
|
|
155
172
|
background-color: var(--credbuild-color-grey-11);
|
|
156
173
|
color: var(--credbuild-color-grey-04);
|
|
157
174
|
}
|
|
158
|
-
._Input-
|
|
175
|
+
._Input-radio_1bq9u_97 ._Input-radioInput_1bq9u_159 {
|
|
159
176
|
clip: rect(0 0 0 0);
|
|
160
177
|
clip-path: inset(100%);
|
|
161
178
|
height: 1px;
|
|
@@ -164,7 +181,7 @@ select._Input-input_1q7gk_26:dir(rtl) {
|
|
|
164
181
|
white-space: nowrap;
|
|
165
182
|
width: 1px;
|
|
166
183
|
}
|
|
167
|
-
textarea._Input-
|
|
184
|
+
textarea._Input-input_1bq9u_30 {
|
|
168
185
|
margin-bottom: -4px;
|
|
169
186
|
}
|
|
170
187
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAlignOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MFTVX2ME.mjs";
|
|
4
4
|
import {
|
|
5
5
|
useHeadingOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KUWVOWUV.mjs";
|
|
7
7
|
import {
|
|
8
8
|
useListOptions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VE6BIQKS.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Bold,
|
|
12
12
|
Code,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
TextAlignStart,
|
|
27
27
|
Underline,
|
|
28
28
|
useControlContext
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XLNVCM4Q.mjs";
|
|
30
30
|
import {
|
|
31
31
|
get_class_name_factory_default
|
|
32
32
|
} from "./chunk-BFHV72KK.mjs";
|
|
@@ -310,7 +310,7 @@ function AlignSelectFallback() {
|
|
|
310
310
|
// components/RichTextMenu/controls/AlignSelect/index.tsx
|
|
311
311
|
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
312
312
|
var AlignSelectLoaded = lazy(
|
|
313
|
-
() => import("./loaded-
|
|
313
|
+
() => import("./loaded-ON5OAY2P.mjs").then((m) => ({
|
|
314
314
|
default: m.AlignSelectLoaded
|
|
315
315
|
}))
|
|
316
316
|
);
|
|
@@ -529,7 +529,7 @@ function HeadingSelectFallback() {
|
|
|
529
529
|
// components/RichTextMenu/controls/HeadingSelect/index.tsx
|
|
530
530
|
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
531
531
|
var HeadingSelectLoaded = lazy2(
|
|
532
|
-
() => import("./loaded-
|
|
532
|
+
() => import("./loaded-NHGZU7V3.mjs").then((m) => ({
|
|
533
533
|
default: m.HeadingSelectLoaded
|
|
534
534
|
}))
|
|
535
535
|
);
|
|
@@ -559,7 +559,7 @@ function ListSelectFallback() {
|
|
|
559
559
|
// components/RichTextMenu/controls/ListSelect/index.tsx
|
|
560
560
|
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
561
561
|
var ListSelectLoaded = lazy3(
|
|
562
|
-
() => import("./loaded-
|
|
562
|
+
() => import("./loaded-5JH76RZT.mjs").then((m) => ({
|
|
563
563
|
default: m.ListSelectLoaded
|
|
564
564
|
}))
|
|
565
565
|
);
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SubField,
|
|
3
|
+
getDeep,
|
|
4
|
+
useFieldStoreApi,
|
|
5
|
+
useNestedFieldContext
|
|
6
|
+
} from "./chunk-QV6ANL5D.mjs";
|
|
7
|
+
import {
|
|
8
|
+
ChevronDown,
|
|
9
|
+
ChevronRight,
|
|
10
|
+
EllipsisVertical,
|
|
11
|
+
useAppStore
|
|
12
|
+
} from "./chunk-XLNVCM4Q.mjs";
|
|
13
|
+
import {
|
|
14
|
+
get_class_name_factory_default
|
|
15
|
+
} from "./chunk-BFHV72KK.mjs";
|
|
16
|
+
|
|
17
|
+
// css-module:/home/crediblemark/Project/Credibuild/components/AutoField/fields/ObjectField/styles.module.css#css-module
|
|
18
|
+
var styles_module_default = { "ObjectField": "_ObjectField_1vrf5_1", "ObjectField--isOpen": "_ObjectField--isOpen_1vrf5_12", "ObjectField-content": "_ObjectField-content_1vrf5_17", "ObjectField-fieldset": "_ObjectField-fieldset_1vrf5_22" };
|
|
19
|
+
|
|
20
|
+
// components/AutoField/fields/ObjectField/index.tsx
|
|
21
|
+
import { useState } from "react";
|
|
22
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
23
|
+
var getClassName = get_class_name_factory_default("ObjectField", styles_module_default);
|
|
24
|
+
var ObjectField = ({
|
|
25
|
+
field,
|
|
26
|
+
onChange,
|
|
27
|
+
id,
|
|
28
|
+
name = id,
|
|
29
|
+
label,
|
|
30
|
+
labelIcon,
|
|
31
|
+
Label,
|
|
32
|
+
readOnly
|
|
33
|
+
}) => {
|
|
34
|
+
const { localName = name } = useNestedFieldContext();
|
|
35
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
36
|
+
const fieldStore = useFieldStoreApi();
|
|
37
|
+
const canEdit = useAppStore(
|
|
38
|
+
(s) => s.permissions.getPermissions({ item: s.selectedItem }).edit
|
|
39
|
+
);
|
|
40
|
+
const getValue = () => getDeep(fieldStore.getState(), name) ?? {};
|
|
41
|
+
if (field.type !== "object" || !field.objectFields) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return /* @__PURE__ */ jsxs("div", { className: getClassName({ isOpen }), children: [
|
|
45
|
+
/* @__PURE__ */ jsx(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
onClick: () => setIsOpen(!isOpen),
|
|
49
|
+
style: { cursor: "pointer" },
|
|
50
|
+
children: /* @__PURE__ */ jsx(
|
|
51
|
+
Label,
|
|
52
|
+
{
|
|
53
|
+
label: label || name,
|
|
54
|
+
icon: /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
55
|
+
isOpen ? /* @__PURE__ */ jsx(ChevronDown, { size: 14 }) : /* @__PURE__ */ jsx(ChevronRight, { size: 14 }),
|
|
56
|
+
labelIcon || /* @__PURE__ */ jsx(EllipsisVertical, { size: 16 })
|
|
57
|
+
] }),
|
|
58
|
+
el: "div",
|
|
59
|
+
readOnly
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
isOpen && /* @__PURE__ */ jsx("div", { className: getClassName("content"), children: /* @__PURE__ */ jsx("fieldset", { className: getClassName("fieldset"), children: Object.keys(field.objectFields).map((subName) => {
|
|
65
|
+
const subField = field.objectFields[subName];
|
|
66
|
+
const subPath = `${localName}.${subName}`;
|
|
67
|
+
return /* @__PURE__ */ jsx(
|
|
68
|
+
SubField,
|
|
69
|
+
{
|
|
70
|
+
id: `${id}_${subName}`,
|
|
71
|
+
name,
|
|
72
|
+
subName,
|
|
73
|
+
localName,
|
|
74
|
+
field: subField,
|
|
75
|
+
forceReadOnly: !canEdit,
|
|
76
|
+
onChange: (subValue, ui, subName2) => {
|
|
77
|
+
const value = getValue();
|
|
78
|
+
if (value[subName2] === subValue) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
onChange({ ...value, [subName2]: subValue }, ui);
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
subPath
|
|
85
|
+
);
|
|
86
|
+
}) }) })
|
|
87
|
+
] });
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export {
|
|
91
|
+
ObjectField
|
|
92
|
+
};
|