@steedos-widgets/amis-object 6.10.48 → 6.10.51-beta.2

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.
@@ -20,9 +20,25 @@ export declare const AmisInputTable: (props: any) => Promise<{
20
20
  pipeOut: (value: any, data: any) => any;
21
21
  required: any;
22
22
  description: any;
23
+ onEvent: {
24
+ change: {
25
+ actions: {
26
+ actionType: string;
27
+ script: (context: any, doAction: any, event: any) => void;
28
+ }[];
29
+ };
30
+ };
23
31
  }[];
24
32
  id: string;
25
33
  className: string;
34
+ onEvent: {
35
+ init: {
36
+ actions: {
37
+ actionType: string;
38
+ script: (context: any, doAction: any, event: any) => void;
39
+ }[];
40
+ };
41
+ };
26
42
  };
27
43
  label: any;
28
44
  labelClassName: any;
@@ -14,7 +14,6 @@ export * from './AmisLogo';
14
14
  export * from './AmisAppMenu';
15
15
  export * from './AmisGlobalFooter';
16
16
  export * from './AmisGlobalHeaderToolbar';
17
- export * from './AmisGlobalHeader';
18
17
  export * from './AmisSteedosField';
19
18
  export * from './AmisSelectFlow';
20
19
  export * from './AmisInstanceDetail';
@@ -491,149 +491,6 @@ fieldset.antd-Collapse > legend{
491
491
  margin-left: 1rem !important;
492
492
  }
493
493
 
494
- :root, .antd-Nav-Menu {
495
- --Menu-width--collapsed: 32px;
496
- --Menu-light-fontColor: var(--Layout-light-fontColor);
497
- --Menu-light-fontColor-onHover: var(--link-color);
498
- --Menu-light-fontColor-onActive: var(--link-color);
499
- --Menu-light-active-backgroundColor: rgb(240, 240, 240);
500
- --Menu-light-backgroundColor-onHover: rgb(240, 240, 240);
501
- --Menu-light-selectedIndicator-color: transparent;
502
- --Nav-Item-height: 2.25rem;
503
- /* --Nav-Item-height--horizontal: 2.5rem; */
504
- --Nav-item-borderRadius: 0.5rem;
505
- --Nav-item-onHover-bg: rgba(21,137,238,.1);
506
- --Nav-item-onActive-bg: rgba(21,137,238,.1);
507
- --Nav-item-onActive-color: var(--link-color);
508
- --Nav-Item-maxWidth--tabs: 200px;
509
- }
510
- .antd-Nav-Menu.antd-Nav-Menu-horizontal {
511
- --Menu-light-backgroundColor-onHover: rgba(151, 151, 151, 0.1);
512
- --Menu-light-fontColor-onHover: var(--Layout-fontColor--onHover);
513
- }
514
-
515
- .antd-Nav-Menu-item {
516
- border-radius: 0.375rem;
517
- margin-top: 3px;
518
- margin-left: 0rem;
519
- }
520
-
521
- .antd-Nav-Menu-collapsed
522
- .antd-Nav-Menu-item {
523
- border-radius: 0;
524
- margin-top: 0;
525
- margin-left: 0rem;
526
- }
527
-
528
- .antd-Nav-Menu-item-dragBar {
529
- left: 0px;
530
- height: 16px;
531
- }
532
-
533
- .antd-Nav-Menu-item-active {
534
- /* line-height: var(--Nav-Item-height); */
535
- background: var(--Menu-light-backgroundColor-onHover);
536
- }
537
-
538
- .antd-Nav-item.is-active {
539
- box-shadow:var(--link-color) 4px 0 0 inset;
540
- }
541
-
542
-
543
- .antd-Nav-Menu-submenu-arrow > svg {
544
- display: initial;
545
- }
546
-
547
- .antd-Nav-Menu-horizontal .antd-Nav-Menu-item.antd-Nav-Menu-item-selected:after {
548
- height: 8px;
549
- top: 0;
550
- bottom: unset;
551
- background: rgb(14 165 233);
552
- }
553
-
554
- .antd-Nav-Menu-light .antd-Nav-Menu-item, .antd-Nav-Menu-light .antd-Nav-Menu-submenu-title {
555
- padding-right: 4px;
556
- }
557
-
558
- .antd-Nav-Menu-horizontal.antd-Nav-Menu-light .antd-Nav-Menu-item.antd-Nav-Menu-item-selected {
559
- background: rgba(21,137,238,.1);
560
- }
561
-
562
- .antd-Nav-Menu-horizontal.antd-Nav-Menu-light .antd-Nav-Menu-item.antd-Nav-Menu-item-selected.antd-Nav-Menu-item-active {
563
- background: var(--Menu-light-backgroundColor-onHover);
564
- }
565
-
566
- .antd-Nav-Menu-horizontal.antd-Nav-Menu-light .antd-Nav-Menu-item.antd-Nav-Menu-item-selected .antd-Nav-Menu-item-label{
567
- color: var(--Menu-light-fontColor-onHover);
568
- }
569
-
570
- .antd-Nav-Menu-horizontal.antd-Nav-Menu-light .antd-Nav-Menu-item.antd-Nav-Menu-item-active .antd-Nav-Menu-item-label{
571
- color: var(--Menu-light-fontColor-onHover);
572
- }
573
-
574
- .antd-Nav-Menu-horizontal > .antd-Nav-Menu-item-tooltip-wrap > .antd-Nav-Menu-item {
575
- padding: 0 15px;
576
- }
577
-
578
-
579
- /* nav下配置itemBadge属性后item不会自动撑开 */
580
- .antd-Nav-Menu-item-wrap .antd-Badge{
581
- width: -webkit-fill-available;
582
- }
583
-
584
-
585
-
586
- /* TODO: amis3.2.0 .antd-Nav-Menu-item-link类中缺少flex,影响nav样式 */
587
- .antd-Nav-Menu-item-link{
588
- display: flex;
589
- align-items: center;
590
- }
591
-
592
- /* TODO: amis3.2.0 .antd-Nav类中多了background属性,影响nav样式 */
593
- .antd-Nav {
594
- background-color: unset;
595
- }
596
-
597
- /*
598
- .steedos-header-container .antd-Nav-Menu {
599
- --Menu-light-backgroundColor: transparent;
600
- } */
601
- .antd-Nav-Menu .antd-Nav-Menu-submenu > .antd-Nav-Menu-submenu-title .antd-Nav-Menu-item-label {
602
- color: var(--Menu-light-fontColor);
603
- }
604
- /*
605
- .antd-Nav-Menu .antd-Nav-Menu-submenu-selected > .antd-Nav-Menu-submenu-title .antd-Nav-Menu-item-label {
606
- color: var(--Menu-light-fontColor);
607
- padding-left: 6px;
608
- }
609
- .antd-Nav-Menu .antd-Nav-Menu-submenu-active > .antd-Nav-Menu-submenu-title .antd-Nav-Menu-item-label {
610
- color: var(--Menu-light-fontColor);
611
- padding-left: 6px;
612
- } */
613
- /*
614
- .antd-Nav-Menu a, a:hover, a:active, a:focus {
615
- color: var(--Menu-light-fontColor);
616
- }
617
- .antd-Nav-Menu-item-active .antd-Nav-Menu-item-label, .antd-Nav-Menu-item-active .antd-Nav-Menu-item-icon, .antd-Nav-Menu-item-active .antd-Nav-Menu-item-icon-after, .antd-Nav-Menu-item-active .antd-Nav-Menu-submenu-arrow {
618
- color: var(--Menu-light-fontColor);
619
- } */
620
-
621
- /* .antd-Nav-Menu .antd-Nav-Menu-submenu-title a, .antd-Nav-Menu .antd-Nav-Menu-submenu-title a:hover {
622
- padding-left: 6px;
623
- font-weight: bold;
624
- } */
625
-
626
- .antd-Nav .antd-Nav-dropIndicator {
627
- position: absolute;
628
- background: gray;
629
- height: 0.125rem;
630
- }
631
-
632
-
633
- .antd-Nav .antd-Nav-Menu-item-link{
634
- min-height:var(--Nav-Item-height);
635
- height: unset;
636
- }
637
494
  .ant-dropdown{
638
495
  z-index: 1400;
639
496
  }
@@ -766,7 +623,7 @@ fieldset.antd-Collapse > legend{
766
623
  height: 1rem !important;
767
624
  }
768
625
  .steedos-record-related-list .min-w-56 {
769
- min-width: 220px;
626
+ min-width: 250px;
770
627
  }
771
628
  .steedos-record-related-list .textarea span {
772
629
  -webkit-line-clamp: 3;
@@ -786,7 +643,7 @@ fieldset.antd-Collapse > legend{
786
643
  }
787
644
  .steedos-listview .min-w-56,
788
645
  .steedos-object-table .min-w-56 {
789
- min-width: 220px;
646
+ min-width: 250px;
790
647
  }
791
648
  .steedos-listview .textarea span,
792
649
  .steedos-object-table .textarea span {
@@ -2022,13 +1879,23 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
2022
1879
  .steedos-record-tabs.steedos-record-tabs--single .antd-Tabs-content {
2023
1880
  margin-top: -1rem;
2024
1881
  }
1882
+ @media (min-width: 768px) {
1883
+ .steedos-record-tabs {
1884
+ overflow-y: auto;
1885
+ max-height: calc(100vh - 180px);
1886
+ }
1887
+ .steedos-record-detail-drawer .steedos-record-tabs {
1888
+ overflow-y: unset;
1889
+ max-height: unset;
1890
+ }
1891
+ }
2025
1892
 
2026
1893
  .sidebar-wrapper {
2027
1894
  overflow-x: hidden;
2028
1895
  width: 50px;
2029
1896
  }
2030
1897
  .sidebar.sidebar-open .sidebar-wrapper {
2031
- width: 220px;
1898
+ width: 250px;
2032
1899
  }
2033
1900
  .sidebar .toggle-sidebar {
2034
1901
  display: block;
@@ -2055,7 +1922,7 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
2055
1922
  }
2056
1923
  @media (min-width: 768px) {
2057
1924
  body.sidebar.sidebar-open #main {
2058
- margin-left: 220px;
1925
+ margin-left: 250px;
2059
1926
  }
2060
1927
  body.sidebar #main {
2061
1928
  margin-left: 50px;
@@ -2108,10 +1975,10 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
2108
1975
  position: fixed;
2109
1976
  top: 50px;
2110
1977
  bottom: 0;
2111
- width: 220px;
1978
+ width: 250px;
2112
1979
  background: #fff;
2113
1980
  z-index: 1001;
2114
- left: -220px;
1981
+ left: -250px;
2115
1982
  }
2116
1983
  }
2117
1984
  .antd-Nav .antd-Nav-list--stacked .antd-Nav-item .antd-Nav-itemToggler,
@@ -2133,6 +2000,10 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
2133
2000
  .antd-Nav-Menu-submenu-active .antd-Nav-Menu-item .hover-inline-flex {
2134
2001
  display: none !important;
2135
2002
  }
2003
+ .steedos-app-service.steedos-app-service-readonly .steedos-app-menu.stacked {
2004
+ margin-top: -8px;
2005
+ min-height: 0px;
2006
+ }
2136
2007
 
2137
2008
  #steedosGlobalFooterRoot .steedos-global-footer {
2138
2009
  height: 4rem;
@@ -2529,8 +2400,8 @@ div[name="instanceForm"] .sfield-item {
2529
2400
  overflow: hidden;
2530
2401
  }
2531
2402
  .steedos-listview-split-max-height .steedos-object-listview .steedos-object-table .antd-Table-contentWrap .antd-Table-content {
2532
- max-height: calc(100vh - 190px);
2403
+ max-height: calc(100vh - 207px);
2533
2404
  }
2534
2405
  .steedos-listview-split-max-height .steedos-object-listview .steedos-object-table .antd-Table-contentWrap:not(:has(~ .antd-Table-toolbar)) .antd-Table-content {
2535
- max-height: calc(100vh - 160px);
2406
+ max-height: calc(100vh - 177px);
2536
2407
  }