@next-bricks/visual-builder 1.13.1 → 1.14.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.
Files changed (88) hide show
  1. package/dist/bricks.json +10 -7
  2. package/dist/chunks/1045.3cfb5ba7.js +2 -0
  3. package/dist/chunks/{1045.8b4d10c4.js.map → 1045.3cfb5ba7.js.map} +1 -1
  4. package/dist/chunks/114.0be1e4c4.js +2 -0
  5. package/dist/chunks/{114.a9e98b1b.js.map → 114.0be1e4c4.js.map} +1 -1
  6. package/dist/chunks/{2252.d5b6e180.js → 2252.0c3cb8ac.js} +3 -3
  7. package/dist/chunks/{2252.d5b6e180.js.map → 2252.0c3cb8ac.js.map} +1 -1
  8. package/dist/chunks/2652.f0b2f28c.js +2 -0
  9. package/dist/chunks/2652.f0b2f28c.js.map +1 -0
  10. package/dist/chunks/{2980.17f0a298.js → 2980.86396d3b.js} +2 -2
  11. package/dist/chunks/{2980.17f0a298.js.map → 2980.86396d3b.js.map} +1 -1
  12. package/dist/chunks/{3171.e940cbee.js → 3171.b08430df.js} +2 -2
  13. package/dist/chunks/{3171.e940cbee.js.map → 3171.b08430df.js.map} +1 -1
  14. package/dist/chunks/{3933.ebc8e8f2.js → 3933.e03c2b23.js} +2 -2
  15. package/dist/chunks/{6314.b4d1e3d8.js.map → 3933.e03c2b23.js.map} +1 -1
  16. package/dist/chunks/{5552.a2515c4d.js → 5552.c7215ea8.js} +2 -2
  17. package/dist/chunks/{5552.a2515c4d.js.map → 5552.c7215ea8.js.map} +1 -1
  18. package/dist/chunks/{6314.b4d1e3d8.js → 6314.6b069355.js} +2 -2
  19. package/dist/chunks/{3933.ebc8e8f2.js.map → 6314.6b069355.js.map} +1 -1
  20. package/dist/chunks/7115.06a979c3.js +2 -0
  21. package/dist/chunks/7115.06a979c3.js.map +1 -0
  22. package/dist/chunks/7733.a6c1c97f.js +2 -0
  23. package/dist/chunks/{7733.b04ef47a.js.map → 7733.a6c1c97f.js.map} +1 -1
  24. package/dist/chunks/{790.3507adfd.js → 790.751cea2b.js} +2 -2
  25. package/dist/chunks/{790.3507adfd.js.map → 790.751cea2b.js.map} +1 -1
  26. package/dist/chunks/8708.1ea15d61.js +3 -0
  27. package/dist/chunks/8708.1ea15d61.js.map +1 -0
  28. package/dist/chunks/9027.901c70c3.js +2 -0
  29. package/dist/chunks/9027.901c70c3.js.map +1 -0
  30. package/dist/chunks/9496.a22edebd.js +2 -0
  31. package/dist/chunks/9496.a22edebd.js.map +1 -0
  32. package/dist/chunks/{chat-preview.f53383e4.js → chat-preview.93091ff7.js} +3 -3
  33. package/dist/chunks/{chat-preview.f53383e4.js.map → chat-preview.93091ff7.js.map} +1 -1
  34. package/dist/chunks/{contract-select.ad0fba9a.js → contract-select.f1ab9ac5.js} +3 -3
  35. package/dist/chunks/{contract-select.ad0fba9a.js.map → contract-select.f1ab9ac5.js.map} +1 -1
  36. package/dist/chunks/{inject-chat-preview-agent.da30e6ca.js → inject-chat-preview-agent.fa33d2da.js} +2 -2
  37. package/dist/chunks/{inject-chat-preview-agent.da30e6ca.js.map → inject-chat-preview-agent.fa33d2da.js.map} +1 -1
  38. package/dist/chunks/{inject-preview-agent.ef222436.js → inject-preview-agent.f5b2e43f.js} +2 -2
  39. package/dist/chunks/{inject-preview-agent.ef222436.js.map → inject-preview-agent.f5b2e43f.js.map} +1 -1
  40. package/dist/chunks/main.dc3cb140.js +2 -0
  41. package/dist/chunks/main.dc3cb140.js.map +1 -0
  42. package/dist/chunks/pre-generated-container.a4753ca8.js +2 -0
  43. package/dist/chunks/pre-generated-container.a4753ca8.js.map +1 -0
  44. package/dist/chunks/pre-generated-preview.3f7df187.js +3 -0
  45. package/dist/chunks/pre-generated-preview.3f7df187.js.LICENSE.txt +5 -0
  46. package/dist/chunks/pre-generated-preview.3f7df187.js.map +1 -0
  47. package/dist/chunks/pre-generated-table-view.cf8a978d.js +2 -0
  48. package/dist/chunks/pre-generated-table-view.cf8a978d.js.map +1 -0
  49. package/dist/chunks/{workbench-action-list.384f5582.js → workbench-action-list.92325154.js} +2 -2
  50. package/dist/chunks/{workbench-action-list.384f5582.js.map → workbench-action-list.92325154.js.map} +1 -1
  51. package/dist/chunks/{workbench-history-action.881387c9.js → workbench-history-action.2c7308db.js} +3 -3
  52. package/dist/chunks/{workbench-history-action.881387c9.js.map → workbench-history-action.2c7308db.js.map} +1 -1
  53. package/dist/index.86992f43.js +2 -0
  54. package/dist/index.86992f43.js.map +1 -0
  55. package/dist/manifest.json +109 -47
  56. package/dist/types.json +311 -57
  57. package/dist-types/bootstrap.d.ts +3 -0
  58. package/dist-types/pre-generated-container/index.d.ts +19 -0
  59. package/dist-types/pre-generated-container/index.spec.d.ts +1 -0
  60. package/dist-types/pre-generated-preview/index.d.ts +42 -0
  61. package/dist-types/pre-generated-preview/index.spec.d.ts +1 -0
  62. package/dist-types/pre-generated-table-view/index.d.ts +12 -0
  63. package/dist-types/pre-generated-table-view/index.spec.d.ts +1 -0
  64. package/package.json +3 -3
  65. package/dist/chunks/1045.8b4d10c4.js +0 -2
  66. package/dist/chunks/114.a9e98b1b.js +0 -2
  67. package/dist/chunks/2154.142671d1.js +0 -3
  68. package/dist/chunks/2154.142671d1.js.map +0 -1
  69. package/dist/chunks/2652.8b225b3b.js +0 -2
  70. package/dist/chunks/2652.8b225b3b.js.map +0 -1
  71. package/dist/chunks/3426.10d61df1.js +0 -2
  72. package/dist/chunks/3426.10d61df1.js.map +0 -1
  73. package/dist/chunks/7115.ae98e709.js +0 -2
  74. package/dist/chunks/7115.ae98e709.js.map +0 -1
  75. package/dist/chunks/7733.b04ef47a.js +0 -2
  76. package/dist/chunks/9027.cff50414.js +0 -2
  77. package/dist/chunks/9027.cff50414.js.map +0 -1
  78. package/dist/chunks/9496.1ec84446.js +0 -2
  79. package/dist/chunks/9496.1ec84446.js.map +0 -1
  80. package/dist/chunks/main.8fa72e42.js +0 -2
  81. package/dist/chunks/main.8fa72e42.js.map +0 -1
  82. package/dist/index.7872073f.js +0 -2
  83. package/dist/index.7872073f.js.map +0 -1
  84. /package/dist/chunks/{2252.d5b6e180.js.LICENSE.txt → 2252.0c3cb8ac.js.LICENSE.txt} +0 -0
  85. /package/dist/chunks/{2154.142671d1.js.LICENSE.txt → 8708.1ea15d61.js.LICENSE.txt} +0 -0
  86. /package/dist/chunks/{chat-preview.f53383e4.js.LICENSE.txt → chat-preview.93091ff7.js.LICENSE.txt} +0 -0
  87. /package/dist/chunks/{contract-select.ad0fba9a.js.LICENSE.txt → contract-select.f1ab9ac5.js.LICENSE.txt} +0 -0
  88. /package/dist/chunks/{workbench-history-action.881387c9.js.LICENSE.txt → workbench-history-action.2c7308db.js.LICENSE.txt} +0 -0
@@ -39,53 +39,6 @@
39
39
  "description": "",
40
40
  "insider": true
41
41
  },
42
- {
43
- "name": "visual-builder.workbench-sidebar",
44
- "properties": [
45
- {
46
- "name": "titleLabel",
47
- "type": "string"
48
- }
49
- ],
50
- "events": [],
51
- "slots": [],
52
- "methods": [],
53
- "parts": [],
54
- "description": "",
55
- "insider": true
56
- },
57
- {
58
- "name": "visual-builder.workbench-action",
59
- "properties": [
60
- {
61
- "name": "icon",
62
- "attribute": false,
63
- "type": "GeneralIconProps"
64
- },
65
- {
66
- "name": "to",
67
- "type": "string"
68
- },
69
- {
70
- "name": "active",
71
- "type": "boolean"
72
- },
73
- {
74
- "name": "href",
75
- "type": "string"
76
- },
77
- {
78
- "name": "target",
79
- "type": "string"
80
- }
81
- ],
82
- "events": [],
83
- "slots": [],
84
- "methods": [],
85
- "parts": [],
86
- "description": "",
87
- "insider": true
88
- },
89
42
  {
90
43
  "name": "visual-builder.workbench-action-list",
91
44
  "properties": [
@@ -474,6 +427,115 @@
474
427
  ],
475
428
  "parts": [],
476
429
  "description": "构件 `visual-builder.chat-preview`"
430
+ },
431
+ {
432
+ "name": "visual-builder.pre-generated-preview",
433
+ "properties": [
434
+ {
435
+ "name": "generations",
436
+ "attribute": false,
437
+ "type": "AttributeGeneration[]"
438
+ },
439
+ {
440
+ "name": "category",
441
+ "description": "",
442
+ "default": "\"value\"",
443
+ "type": "PreviewCategory"
444
+ },
445
+ {
446
+ "name": "theme",
447
+ "type": "string"
448
+ },
449
+ {
450
+ "name": "uiVersion",
451
+ "type": "string"
452
+ },
453
+ {
454
+ "name": "app",
455
+ "type": "MicroApp"
456
+ }
457
+ ],
458
+ "events": [],
459
+ "slots": [],
460
+ "methods": [],
461
+ "parts": [],
462
+ "description": "构件 `visual-builder.pre-generated-preview`"
463
+ },
464
+ {
465
+ "name": "visual-builder.pre-generated-table-view",
466
+ "properties": [],
467
+ "events": [],
468
+ "slots": [],
469
+ "methods": [],
470
+ "parts": [],
471
+ "description": "构件 `visual-builder.pre-generated-table-view`"
472
+ },
473
+ {
474
+ "name": "visual-builder.pre-generated-container",
475
+ "properties": [
476
+ {
477
+ "name": "useBrick",
478
+ "attribute": false,
479
+ "type": "UseBrickConf"
480
+ },
481
+ {
482
+ "name": "dataSource",
483
+ "attribute": false,
484
+ "type": "unknown"
485
+ }
486
+ ],
487
+ "events": [],
488
+ "slots": [],
489
+ "methods": [],
490
+ "parts": [],
491
+ "description": "构件 `visual-builder.pre-generated-container`"
492
+ },
493
+ {
494
+ "name": "visual-builder.workbench-sidebar",
495
+ "properties": [
496
+ {
497
+ "name": "titleLabel",
498
+ "type": "string"
499
+ }
500
+ ],
501
+ "events": [],
502
+ "slots": [],
503
+ "methods": [],
504
+ "parts": [],
505
+ "description": "",
506
+ "insider": true
507
+ },
508
+ {
509
+ "name": "visual-builder.workbench-action",
510
+ "properties": [
511
+ {
512
+ "name": "icon",
513
+ "attribute": false,
514
+ "type": "GeneralIconProps"
515
+ },
516
+ {
517
+ "name": "to",
518
+ "type": "string"
519
+ },
520
+ {
521
+ "name": "active",
522
+ "type": "boolean"
523
+ },
524
+ {
525
+ "name": "href",
526
+ "type": "string"
527
+ },
528
+ {
529
+ "name": "target",
530
+ "type": "string"
531
+ }
532
+ ],
533
+ "events": [],
534
+ "slots": [],
535
+ "methods": [],
536
+ "parts": [],
537
+ "description": "",
538
+ "insider": true
477
539
  }
478
540
  ],
479
541
  "providers": [
package/dist/types.json CHANGED
@@ -45,63 +45,6 @@
45
45
  ],
46
46
  "methods": []
47
47
  },
48
- "visual-builder.workbench-sidebar": {
49
- "properties": [
50
- {
51
- "name": "titleLabel",
52
- "annotation": {
53
- "type": "keyword",
54
- "value": "string"
55
- }
56
- }
57
- ],
58
- "events": [],
59
- "methods": []
60
- },
61
- "visual-builder.workbench-action": {
62
- "properties": [
63
- {
64
- "name": "icon",
65
- "annotation": {
66
- "type": "reference",
67
- "typeName": {
68
- "type": "identifier",
69
- "name": "GeneralIconProps"
70
- }
71
- }
72
- },
73
- {
74
- "name": "to",
75
- "annotation": {
76
- "type": "keyword",
77
- "value": "string"
78
- }
79
- },
80
- {
81
- "name": "active",
82
- "annotation": {
83
- "type": "keyword",
84
- "value": "boolean"
85
- }
86
- },
87
- {
88
- "name": "href",
89
- "annotation": {
90
- "type": "keyword",
91
- "value": "string"
92
- }
93
- },
94
- {
95
- "name": "target",
96
- "annotation": {
97
- "type": "keyword",
98
- "value": "string"
99
- }
100
- }
101
- ],
102
- "events": [],
103
- "methods": []
104
- },
105
48
  "visual-builder.page-arch-node": {
106
49
  "properties": [
107
50
  {
@@ -379,6 +322,317 @@
379
322
  }
380
323
  ]
381
324
  },
325
+ "visual-builder.pre-generated-preview": {
326
+ "properties": [
327
+ {
328
+ "name": "generations",
329
+ "annotation": {
330
+ "type": "array",
331
+ "elementType": {
332
+ "type": "reference",
333
+ "typeName": {
334
+ "type": "identifier",
335
+ "name": "AttributeGeneration"
336
+ }
337
+ }
338
+ }
339
+ },
340
+ {
341
+ "name": "category",
342
+ "annotation": {
343
+ "type": "reference",
344
+ "typeName": {
345
+ "type": "identifier",
346
+ "name": "PreviewCategory"
347
+ }
348
+ }
349
+ },
350
+ {
351
+ "name": "theme",
352
+ "annotation": {
353
+ "type": "keyword",
354
+ "value": "string"
355
+ }
356
+ },
357
+ {
358
+ "name": "uiVersion",
359
+ "annotation": {
360
+ "type": "keyword",
361
+ "value": "string"
362
+ }
363
+ },
364
+ {
365
+ "name": "app",
366
+ "annotation": {
367
+ "type": "reference",
368
+ "typeName": {
369
+ "type": "identifier",
370
+ "name": "MicroApp"
371
+ }
372
+ }
373
+ }
374
+ ],
375
+ "events": [],
376
+ "methods": [],
377
+ "types": [
378
+ {
379
+ "type": "interface",
380
+ "name": "AttributeGeneration",
381
+ "body": [
382
+ {
383
+ "type": "propertySignature",
384
+ "key": {
385
+ "type": "identifier",
386
+ "name": "instanceId"
387
+ },
388
+ "annotation": {
389
+ "type": "keyword",
390
+ "value": "string"
391
+ },
392
+ "computed": false
393
+ },
394
+ {
395
+ "type": "propertySignature",
396
+ "key": {
397
+ "type": "identifier",
398
+ "name": "objectId"
399
+ },
400
+ "annotation": {
401
+ "type": "keyword",
402
+ "value": "string"
403
+ },
404
+ "computed": false
405
+ },
406
+ {
407
+ "type": "propertySignature",
408
+ "key": {
409
+ "type": "identifier",
410
+ "name": "propertyId"
411
+ },
412
+ "annotation": {
413
+ "type": "keyword",
414
+ "value": "string"
415
+ },
416
+ "computed": false
417
+ },
418
+ {
419
+ "type": "propertySignature",
420
+ "key": {
421
+ "type": "identifier",
422
+ "name": "propertyName"
423
+ },
424
+ "annotation": {
425
+ "type": "keyword",
426
+ "value": "string"
427
+ },
428
+ "computed": false
429
+ },
430
+ {
431
+ "type": "propertySignature",
432
+ "key": {
433
+ "type": "identifier",
434
+ "name": "displayLevel"
435
+ },
436
+ "annotation": {
437
+ "type": "keyword",
438
+ "value": "number"
439
+ },
440
+ "computed": false
441
+ },
442
+ {
443
+ "type": "propertySignature",
444
+ "key": {
445
+ "type": "identifier",
446
+ "name": "rwType"
447
+ },
448
+ "annotation": {
449
+ "type": "keyword",
450
+ "value": "string"
451
+ },
452
+ "computed": false
453
+ },
454
+ {
455
+ "type": "propertySignature",
456
+ "key": {
457
+ "type": "identifier",
458
+ "name": "category"
459
+ },
460
+ "annotation": {
461
+ "type": "reference",
462
+ "typeName": {
463
+ "type": "identifier",
464
+ "name": "PreviewCategory"
465
+ }
466
+ },
467
+ "computed": false
468
+ },
469
+ {
470
+ "type": "propertySignature",
471
+ "key": {
472
+ "type": "identifier",
473
+ "name": "storyboard"
474
+ },
475
+ "annotation": {
476
+ "type": "union",
477
+ "types": [
478
+ {
479
+ "type": "reference",
480
+ "typeName": {
481
+ "type": "identifier",
482
+ "name": "BrickConf"
483
+ }
484
+ },
485
+ {
486
+ "type": "array",
487
+ "elementType": {
488
+ "type": "reference",
489
+ "typeName": {
490
+ "type": "identifier",
491
+ "name": "BrickConf"
492
+ }
493
+ }
494
+ }
495
+ ]
496
+ },
497
+ "computed": false
498
+ },
499
+ {
500
+ "type": "propertySignature",
501
+ "key": {
502
+ "type": "identifier",
503
+ "name": "mockData"
504
+ },
505
+ "annotation": {
506
+ "type": "array",
507
+ "elementType": {
508
+ "type": "keyword",
509
+ "value": "unknown"
510
+ }
511
+ },
512
+ "computed": false
513
+ }
514
+ ]
515
+ },
516
+ {
517
+ "type": "typeAlias",
518
+ "name": "PreviewCategory",
519
+ "annotation": {
520
+ "type": "union",
521
+ "types": [
522
+ {
523
+ "type": "jsLiteral",
524
+ "value": "detail-item"
525
+ },
526
+ {
527
+ "type": "jsLiteral",
528
+ "value": "form-item"
529
+ },
530
+ {
531
+ "type": "jsLiteral",
532
+ "value": "table-column"
533
+ },
534
+ {
535
+ "type": "jsLiteral",
536
+ "value": "card-item"
537
+ },
538
+ {
539
+ "type": "jsLiteral",
540
+ "value": "metric-item"
541
+ },
542
+ {
543
+ "type": "jsLiteral",
544
+ "value": "value"
545
+ }
546
+ ]
547
+ }
548
+ }
549
+ ]
550
+ },
551
+ "visual-builder.pre-generated-table-view": {
552
+ "properties": [],
553
+ "events": [],
554
+ "methods": []
555
+ },
556
+ "visual-builder.pre-generated-container": {
557
+ "properties": [
558
+ {
559
+ "name": "useBrick",
560
+ "annotation": {
561
+ "type": "reference",
562
+ "typeName": {
563
+ "type": "identifier",
564
+ "name": "UseBrickConf"
565
+ }
566
+ }
567
+ },
568
+ {
569
+ "name": "dataSource",
570
+ "annotation": {
571
+ "type": "keyword",
572
+ "value": "unknown"
573
+ }
574
+ }
575
+ ],
576
+ "events": [],
577
+ "methods": []
578
+ },
579
+ "visual-builder.workbench-sidebar": {
580
+ "properties": [
581
+ {
582
+ "name": "titleLabel",
583
+ "annotation": {
584
+ "type": "keyword",
585
+ "value": "string"
586
+ }
587
+ }
588
+ ],
589
+ "events": [],
590
+ "methods": []
591
+ },
592
+ "visual-builder.workbench-action": {
593
+ "properties": [
594
+ {
595
+ "name": "icon",
596
+ "annotation": {
597
+ "type": "reference",
598
+ "typeName": {
599
+ "type": "identifier",
600
+ "name": "GeneralIconProps"
601
+ }
602
+ }
603
+ },
604
+ {
605
+ "name": "to",
606
+ "annotation": {
607
+ "type": "keyword",
608
+ "value": "string"
609
+ }
610
+ },
611
+ {
612
+ "name": "active",
613
+ "annotation": {
614
+ "type": "keyword",
615
+ "value": "boolean"
616
+ }
617
+ },
618
+ {
619
+ "name": "href",
620
+ "annotation": {
621
+ "type": "keyword",
622
+ "value": "string"
623
+ }
624
+ },
625
+ {
626
+ "name": "target",
627
+ "annotation": {
628
+ "type": "keyword",
629
+ "value": "string"
630
+ }
631
+ }
632
+ ],
633
+ "events": [],
634
+ "methods": []
635
+ },
382
636
  "visual-builder.workbench-action-list": {
383
637
  "properties": [
384
638
  {
@@ -10,3 +10,6 @@ import "./contract-select/index.js";
10
10
  import "./chat-conversation/index.js";
11
11
  import "./chat-preview/index.js";
12
12
  import "./data-providers/inject-chat-preview-agent.js";
13
+ import "./pre-generated-preview/index.js";
14
+ import "./pre-generated-table-view/index.js";
15
+ import "./pre-generated-container/index.js";
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ import { ReactNextElement } from "@next-core/react-element";
3
+ import type { UseBrickConf } from "@next-core/types";
4
+ import "@next-core/theme";
5
+ /**
6
+ * 构件 `visual-builder.pre-generated-container`
7
+ *
8
+ * @internal
9
+ */
10
+ export declare class PreGeneratedContainer extends ReactNextElement {
11
+ accessor useBrick: UseBrickConf | undefined;
12
+ accessor dataSource: unknown | undefined;
13
+ render(): React.JSX.Element;
14
+ }
15
+ export interface PreGeneratedContainerProps {
16
+ useBrick?: UseBrickConf;
17
+ dataSource?: unknown;
18
+ }
19
+ export declare function PreGeneratedContainerComponent({ useBrick, dataSource, }: PreGeneratedContainerProps): React.JSX.Element;
@@ -0,0 +1 @@
1
+ import "./";
@@ -0,0 +1,42 @@
1
+ import React from "react";
2
+ import { ReactNextElement } from "@next-core/react-element";
3
+ import "@next-core/theme";
4
+ import type { BrickConf, MicroApp } from "@next-core/types";
5
+ export interface PreGeneratedPreviewProps {
6
+ generations?: AttributeGeneration[];
7
+ category?: PreviewCategory;
8
+ theme?: string;
9
+ uiVersion?: string;
10
+ app?: MicroApp;
11
+ }
12
+ export interface AttributeGeneration {
13
+ instanceId: string;
14
+ objectId: string;
15
+ propertyId: string;
16
+ propertyName: string;
17
+ displayLevel: number;
18
+ rwType: string;
19
+ category: PreviewCategory;
20
+ storyboard: BrickConf | BrickConf[];
21
+ mockData: unknown[];
22
+ }
23
+ export type PreviewCategory = "detail-item" | "form-item" | "table-column" | "card-item" | "metric-item" | "value";
24
+ /**
25
+ * 构件 `visual-builder.pre-generated-preview`
26
+ *
27
+ * @internal
28
+ */
29
+ export declare class PreGeneratedPreview extends ReactNextElement {
30
+ accessor generations: AttributeGeneration[] | undefined;
31
+ /**
32
+ * @default "value"
33
+ */
34
+ accessor category: PreviewCategory | undefined;
35
+ accessor theme: string | undefined;
36
+ accessor uiVersion: string | undefined;
37
+ accessor app: MicroApp | undefined;
38
+ render(): React.JSX.Element;
39
+ }
40
+ export interface PreGeneratedPreviewComponentProps extends PreGeneratedPreviewProps {
41
+ }
42
+ export declare function PreGeneratedPreviewComponent({ generations, category, theme, uiVersion, app, }: PreGeneratedPreviewComponentProps): React.JSX.Element;
@@ -0,0 +1 @@
1
+ import "./";
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { ReactNextElement } from "@next-core/react-element";
3
+ import "@next-core/theme";
4
+ /**
5
+ * 构件 `visual-builder.pre-generated-table-view`
6
+ *
7
+ * @internal
8
+ */
9
+ export declare class PreGeneratedTableView extends ReactNextElement {
10
+ render(): React.JSX.Element;
11
+ }
12
+ export declare function PreGeneratedTableViewComponent(): React.JSX.Element;
@@ -0,0 +1 @@
1
+ import "./";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/visual-builder",
3
- "version": "1.13.1",
3
+ "version": "1.14.0",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/visual-builder",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,7 +34,7 @@
34
34
  "postpublish": "mv package.json.bak package.json"
35
35
  },
36
36
  "devDependencies": {
37
- "@next-core/build-next-bricks": "^1.20.9",
37
+ "@next-core/build-next-bricks": "^1.21.0",
38
38
  "@next-core/test-next": "^1.1.1"
39
39
  },
40
40
  "peerDependencies": {
@@ -42,5 +42,5 @@
42
42
  "@next-bricks/form": "*",
43
43
  "@next-bricks/icons": "*"
44
44
  },
45
- "gitHead": "5eb7b76a27f0f60068247d4dfbd00a088f5abe59"
45
+ "gitHead": "f0b4f8320d268b3c38f7b38a4a44951698862965"
46
46
  }
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[1045,1369,3426],{2559:(t,e,r)=>{function n(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}r.d(e,{A:()=>n})},2016:(t,e,r)=>{function n(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}r.d(e,{A:()=>n})},829:(t,e,r)=>{r.d(e,{A:()=>i});var n=r(2559);function i(t,e){return t.get((0,n.A)(t,e))}},918:(t,e,r)=>{r.d(e,{A:()=>i});var n=r(2016);function i(t,e,r){(0,n.A)(t,e),e.set(t,r)}},6121:(t,e,r)=>{r.d(e,{A:()=>i});var n=r(2559);function i(t,e,r){return t.set((0,n.A)(t,e),r),r}},4586:(t,e,r)=>{r.d(e,{A:()=>i});var n=r(1369);function i(t,e,r){return(e=(0,n.A)(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},9740:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(4586);function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){(0,n.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}},4223:(t,e,r)=>{function n(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}r.d(e,{A:()=>n})},1369:(t,e,r)=>{r.d(e,{A:()=>i});var n=r(7545);function i(t){var e=function(t,e){if("object"!=(0,n.A)(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,"string");if("object"!=(0,n.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,n.A)(e)?e:e+""}},7545:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}r.d(e,{A:()=>n})},1045:(t,e,r)=>{r.r(e),r.d(e,{NextElement:()=>g,createDecorators:()=>c,supportsAdoptingStyleSheets:()=>O});var n=r(4223),i=r(9740),o=Symbol.for("attributeHasBeenSet"),s=Symbol.for("markAttributeHasBeenSet"),a=Symbol.for("stopAttributeChangedCallback"),u=["type"],l={attribute:!0,type:String,converter:{toAttribute:(t,e)=>e===Boolean?t?"":null:t,fromAttribute(t,e){switch(e){case Boolean:return null!==t&&"false"!==t;case Number:return null===t?null:Number(t)}return t}},render:!0,hasChanged:(t,e)=>e!==t&&(e==e||t==t)};function c(){var t=new Map,e=new Set,r=new Set,c=new Set;return{defineElement:function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(s,a)=>{var{kind:u,name:l,addInitializer:h}=a;h((function(){var a,u,l,h,v,b=Object.getPrototypeOf(this);if(d(this,"observedAttributes",f(null!==(a=b.observedAttributes)&&void 0!==a?a:[],t.keys())),d(this,"__attributeReflections",new Map([...null!==(u=b.__attributeReflections)&&void 0!==u?u:[],...t])),d(this,"styleTexts",o.styleTexts),d(this,"shadowOptions",!1!==o.shadowOptions?(0,i.A)({mode:"open"},o.shadowOptions):null),d(this,"__tagName",n),d(this,"_dev_only_definedProperties",f(null!==(l=b._dev_only_definedProperties)&&void 0!==l?l:[],e)),d(this,"_dev_only_definedMethods",f(null!==(h=b._dev_only_definedMethods)&&void 0!==h?h:[],r)),d(this,"_dev_only_definedEvents",f(null!==(v=b._dev_only_definedEvents)&&void 0!==v?v:[],c)),customElements.define(n,this),Array.isArray(o.alias))for(var p of o.alias){var y=class extends s{};d(y,"__tagName",p),customElements.define(p,y)}}))}},property:function(r){return function(n,u){var{get:c,set:d}=n,{kind:f,name:h,static:v,private:b}=u;e.add(h);var p=Object.assign({},l,r),y=function(t,e){var r=e.attribute;return!1===r?void 0:"string"==typeof r?r:t.replace(/[A-Z]/g,(t=>"-".concat(t.toLowerCase())))}(h,p);return void 0!==y&&t.set(y,(0,i.A)((0,i.A)({},p),{},{property:h})),{get(){return void 0!==y&&this[o](y)?p.converter.fromAttribute(this.getAttribute(y),p.type):c.call(this)},set(t){var e=c.call(this);if(d.call(this,t),p.hasChanged(t,e)){if(void 0!==y){var r=p.converter.toAttribute(t,p.type);this[a](!0),null==r?this.removeAttribute(y):this.setAttribute(y,r),this[s](y),this[a](!1)}p.render&&this._requestRender()}},init(t){if(void 0!==y&&p.hasChanged(t,void 0)){var e=p.converter.toAttribute(t,p.type);null!=e&&requestAnimationFrame((()=>{this[o](y)||(this[a](!0),this.setAttribute(y,e),this[a](!1))}))}return t}}}},method:function(t){return function(e,n){var{kind:i,name:o,static:s,private:a,addInitializer:u}=n;null!=t&&t.bound&&u((function(){this[o]=this[o].bind(this)})),r.add(o)}},event:function(t){return function(e,r){var{get:o}=e,{kind:s,name:a,static:l,private:d}=r,{type:f}=t,h=(0,n.A)(t,u);return c.add(f),{get(){return o.call(this)},set(){throw new Error("Decorated events are readonly")},init(t){return Object.freeze({emit:t=>this.dispatchEvent(new CustomEvent(f,(0,i.A)((0,i.A)({},h),{},{detail:t})))})}}}}}}function d(t,e,r){Object.defineProperty(t,e,{get:()=>r,configurable:!0})}function f(t,e){var r=new Set(t);for(var n of e)r.add(n);return[...r]}new Set(["prefix"]);var h,v=r(918),b=r(4586),p=r(829),y=r(6121),A=new WeakMap,m=new WeakMap,_=new WeakMap,w=new WeakMap;class g extends HTMLElement{constructor(){super(...arguments),(0,v.A)(this,A,!1),(0,v.A)(this,m,!1),(0,v.A)(this,_,!1),(0,v.A)(this,w,new Set)}_markConnectedCallbackCalled(){(0,y.A)(m,this,!0)}connectedCallback(){this._markConnectedCallbackCalled(),this._render()}[o](t){return(0,p.A)(w,this).has(t)}[s](t){(0,p.A)(w,this).add(t)}[a](t){(0,y.A)(_,this,t)}attributeChangedCallback(t,e,r){if((0,p.A)(w,this).add(t),!(0,p.A)(_,this)&&e!==r){var n=this.constructor.__attributeReflections.get(t),i=n.converter.fromAttribute(r,n.type);this[n.property]=i}}_requestRender(){this.isConnected&&(0,p.A)(m,this)&&!(0,p.A)(A,this)&&((0,y.A)(A,this,!0),Promise.resolve().then((()=>{(0,y.A)(A,this,!1),this._render()})))}}function O(){return void 0===h&&(h=!!(window.ShadowRoot&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype)),h}(0,b.A)(g,"styleTexts",void 0),(0,b.A)(g,"shadowOptions",void 0),(0,b.A)(g,"__attributeReflections",void 0),(0,b.A)(g,"__tagName",void 0)}}]);
2
- //# sourceMappingURL=1045.8b4d10c4.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_next_bricks_visual_builder=self.webpackChunk_next_bricks_visual_builder||[]).push([[114,7733],{5873:(e,t,n)=>{var r=n(454);t.H=r.createRoot,r.hydrateRoot},2559:(e,t,n)=>{function r(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{A:()=>r})},2016:(e,t,n)=>{function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{A:()=>r})},829:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2559);function i(e,t){return e.get((0,r.A)(e,t))}},918:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2016);function i(e,t,n){(0,r.A)(e,t),t.set(e,n)}},6121:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2559);function i(e,t,n){return e.set((0,r.A)(e,t),n),n}},4635:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2016);function i(e,t){(0,r.A)(e,t),t.add(e)}},9575:(e,t,n)=>{function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},4223:(e,t,n)=>{function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{A:()=>r})},114:(e,t,n)=>{n.r(t),n.d(t,{ReactNextElement:()=>p,wrapBrick:()=>O,wrapLocalBrick:()=>S});var r=n(4635),i=n(918),o=n(2559),s=n(6121),a=n(829),l=n(8769),c=n(5873),u=n(9435),h=n(3741),d=new WeakMap,f=new WeakSet;class p extends h.NextElement{constructor(){super(...arguments),(0,r.A)(this,f),(0,i.A)(this,d,void 0)}connectedCallback(){super._markConnectedCallbackCalled(),(0,o.A)(f,this,v).call(this),this._render()}disconnectedCallback(){var e;null===(e=(0,a.A)(d,this))||void 0===e||e.render(null)}_render(){var e=()=>{if(this.isConnected&&(0,a.A)(d,this)){var e,t=this.constructor;t.shadowOptions?(0,a.A)(d,this).render((0,h.supportsAdoptingStyleSheets)()||null===(e=t.styleTexts)||void 0===e||!e.length?this.render():l.createElement(l.Fragment,null,l.createElement("style",null,t.styleTexts.join("\n")),this.render())):(0,a.A)(d,this).render(this.render())}};window.BRICK_NEXT_VERSIONS&&!window.DISABLE_REACT_FLUSH_SYNC?(0,u.flushSync)(e):e()}}function v(){if(!(0,a.A)(d,this)){var e=this.constructor;if(e.shadowOptions){var t,n=this.attachShadow(e.shadowOptions);if((0,h.supportsAdoptingStyleSheets)()&&null!==(t=e.styleTexts)&&void 0!==t&&t.length){var r=new CSSStyleSheet;r.replaceSync(e.styleTexts.join("")),n.adoptedStyleSheets=[r]}(0,s.A)(d,this,(0,c.H)(n))}else(0,s.A)(d,this,(0,c.H)(this))}}var A=n(9575),y=n(4223),w=["children"],b=["children"];function S(e,t){return(0,l.forwardRef)((function(n,r){var{children:i}=n,o=(0,y.A)(n,w),s="string"==typeof e?e:e.__tagName,a=_(o,t);return l.createElement(s,(0,A.A)({},a,{ref:r}),i)}))}function O(e,t){return(0,l.forwardRef)((function(n,r){var{children:i}=n,o=_((0,y.A)(n,b),t);return l.createElement(e,(0,A.A)({},o,{ref:r}),i)}))}function _(e,t){var n;if(t)for(var[r,i]of(n={},Object.entries(e)))Object.prototype.hasOwnProperty.call(t,r)?n["on".concat(t[r])]=i:n[r]=i;else n=e;return n}}}]);
2
- //# sourceMappingURL=114.a9e98b1b.js.map