@superblocksteam/library 2.0.0-next.10 → 2.0.0-next.100

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 (108) hide show
  1. package/dist/{allPaths-h7bsheRo.js → allPaths-CcZmxiOk.js} +2 -2
  2. package/dist/{allPaths-h7bsheRo.js.map → allPaths-CcZmxiOk.js.map} +1 -1
  3. package/dist/{allPaths-DXE_RTrt.js → allPaths-D2hMUe-Q.js} +2 -2
  4. package/dist/{allPaths-DXE_RTrt.js.map → allPaths-D2hMUe-Q.js.map} +1 -1
  5. package/dist/{allPathsLoader-16QM90xQ.js → allPathsLoader-BGIPBdhf.js} +3 -3
  6. package/dist/{allPathsLoader-BWX35Jie.js.map → allPathsLoader-BGIPBdhf.js.map} +1 -1
  7. package/dist/{allPathsLoader-BWX35Jie.js → allPathsLoader-CPzLM5jS.js} +3 -3
  8. package/dist/{allPathsLoader-16QM90xQ.js.map → allPathsLoader-CPzLM5jS.js.map} +1 -1
  9. package/dist/{index-tdErpvtu.js → index-jWufYPVw.js} +27083 -20354
  10. package/dist/{index-tdErpvtu.js.map → index-jWufYPVw.js.map} +1 -1
  11. package/dist/index.js +2 -2
  12. package/dist/{splitPathsBySizeLoader-7yhv4gcq.js → splitPathsBySizeLoader-B1uNPKcc.js} +2 -2
  13. package/dist/{splitPathsBySizeLoader-7yhv4gcq.js.map → splitPathsBySizeLoader-B1uNPKcc.js.map} +1 -1
  14. package/dist/{splitPathsBySizeLoader-wQWCogRx.js → splitPathsBySizeLoader-BbdcQ6go.js} +2 -2
  15. package/dist/{splitPathsBySizeLoader-wQWCogRx.js.map → splitPathsBySizeLoader-BbdcQ6go.js.map} +1 -1
  16. package/dist-types/edit-mode/default-table-data.d.ts +71 -0
  17. package/dist-types/edit-mode/dnd/grid-store.d.ts +29 -4
  18. package/dist-types/edit-mode/dnd/utils.d.ts +7 -10
  19. package/dist-types/edit-mode/features/connection-manager.d.ts +1 -2
  20. package/dist-types/edit-mode/features/properties-panel-manager.d.ts +2 -1
  21. package/dist-types/edit-mode/features/resizing-store.d.ts +1 -0
  22. package/dist-types/edit-mode/right-click-menu/right-click-menu.d.ts +2 -1
  23. package/dist-types/edit-mode/source-update-api.d.ts +3 -20
  24. package/dist-types/internal-testing/components/form.d.ts +1 -0
  25. package/dist-types/lib/internal-details/identifier-normalizer.d.ts +0 -1
  26. package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +8 -5
  27. package/dist-types/lib/internal-details/lib/evaluator/compute-engines.d.ts +2 -1
  28. package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +13 -1
  29. package/dist-types/lib/internal-details/lib/evaluator/use-shallow-mobx-observer.d.ts +1 -1
  30. package/dist-types/lib/internal-details/lib/features/api-store.d.ts +1 -0
  31. package/dist-types/lib/internal-details/lib/features/api-utils.d.ts +0 -1
  32. package/dist-types/lib/internal-details/lib/types.d.ts +3 -0
  33. package/dist-types/lib/internal-details/scope/global.d.ts +1 -0
  34. package/dist-types/lib/user-facing/component-base/components/button.d.ts +3 -4
  35. package/dist-types/lib/user-facing/component-base/components/video.d.ts +19 -0
  36. package/dist-types/lib/user-facing/component-base/styles/button-styles.d.ts +3 -11
  37. package/dist-types/lib/user-facing/component-base/utils/input-validation.d.ts +11 -8
  38. package/dist-types/lib/user-facing/components/button/index.d.ts +1 -1
  39. package/dist-types/lib/user-facing/components/button/props.d.ts +4 -10
  40. package/dist-types/lib/user-facing/components/column/index.d.ts +8 -21
  41. package/dist-types/lib/user-facing/components/column/props.d.ts +8 -20
  42. package/dist-types/lib/user-facing/components/container/index.d.ts +12 -24
  43. package/dist-types/lib/user-facing/components/container/props.d.ts +7 -22
  44. package/dist-types/lib/user-facing/components/date-picker/date-picker-component.d.ts +3 -3
  45. package/dist-types/lib/user-facing/components/date-picker/index.d.ts +5 -1
  46. package/dist-types/lib/user-facing/components/date-picker/props.d.ts +5 -1
  47. package/dist-types/lib/user-facing/components/date-picker/types.d.ts +3 -0
  48. package/dist-types/lib/user-facing/components/date-picker/utils.d.ts +1 -1
  49. package/dist-types/lib/user-facing/components/dropdown/dropdown-component.d.ts +1 -1
  50. package/dist-types/lib/user-facing/components/dropdown/index.d.ts +2 -2
  51. package/dist-types/lib/user-facing/components/dropdown/props.d.ts +4 -5
  52. package/dist-types/lib/user-facing/components/dropdown/types.d.ts +1 -1
  53. package/dist-types/lib/user-facing/components/grid/index.d.ts +8 -8
  54. package/dist-types/lib/user-facing/components/image/index.d.ts +1 -1
  55. package/dist-types/lib/user-facing/components/image/props.d.ts +1 -1
  56. package/dist-types/lib/user-facing/components/input/derived-properties.d.ts +1 -1
  57. package/dist-types/lib/user-facing/components/input/index.d.ts +14 -20
  58. package/dist-types/lib/user-facing/components/input/props.d.ts +15 -20
  59. package/dist-types/lib/user-facing/components/modal/index.d.ts +10 -15
  60. package/dist-types/lib/user-facing/components/modal/modal-component.d.ts +2 -2
  61. package/dist-types/lib/user-facing/components/modal/props.d.ts +10 -15
  62. package/dist-types/lib/user-facing/components/pixel-input/index.d.ts +7 -0
  63. package/dist-types/lib/user-facing/components/section/index.d.ts +2 -2
  64. package/dist-types/lib/user-facing/components/section/props.d.ts +2 -2
  65. package/dist-types/lib/user-facing/components/stack/index.d.ts +2 -2
  66. package/dist-types/lib/user-facing/components/switch/index.d.ts +1 -1
  67. package/dist-types/lib/user-facing/components/switch/props.d.ts +1 -1
  68. package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +72 -76
  69. package/dist-types/lib/user-facing/components/table/components/autotooltip-component.d.ts +2 -2
  70. package/dist-types/lib/user-facing/components/table/components/boolean-value-icons.d.ts +5 -5
  71. package/dist-types/lib/user-facing/components/table/components/edit-cell.d.ts +2 -2
  72. package/dist-types/lib/user-facing/components/table/components/edit-checkbox-cell.d.ts +2 -2
  73. package/dist-types/lib/user-facing/components/table/components/edit-date-cell.d.ts +2 -2
  74. package/dist-types/lib/user-facing/components/table/components/edit-input-cell.d.ts +2 -2
  75. package/dist-types/lib/user-facing/components/table/components/edit-multi-select-cell.d.ts +2 -2
  76. package/dist-types/lib/user-facing/components/table/components/edit-single-select-cell.d.ts +2 -2
  77. package/dist-types/lib/user-facing/components/table/components/edit-utils.d.ts +2 -2
  78. package/dist-types/lib/user-facing/components/table/components/editable-link-cell.d.ts +2 -2
  79. package/dist-types/lib/user-facing/components/table/components/popover-video.d.ts +1 -1
  80. package/dist-types/lib/user-facing/components/table/components/table-data-download.d.ts +2 -2
  81. package/dist-types/lib/user-facing/components/table/components/table-footer.d.ts +4 -4
  82. package/dist-types/lib/user-facing/components/table/components/table-header.d.ts +3 -3
  83. package/dist-types/lib/user-facing/components/table/components/table-loading-state.d.ts +3 -3
  84. package/dist-types/lib/user-facing/components/table/components/table-pagination.d.ts +3 -3
  85. package/dist-types/lib/user-facing/components/table/components/table-tag.d.ts +5 -5
  86. package/dist-types/lib/user-facing/components/table/constants.d.ts +4 -24
  87. package/dist-types/lib/user-facing/components/table/derived-properties.d.ts +0 -1
  88. package/dist-types/lib/user-facing/components/table/index.d.ts +91 -95
  89. package/dist-types/lib/user-facing/components/table/props.d.ts +93 -98
  90. package/dist-types/lib/user-facing/components/table/table-component.d.ts +4 -4
  91. package/dist-types/lib/user-facing/components/table/table-styles.d.ts +3 -8
  92. package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +25 -20
  93. package/dist-types/lib/user-facing/components/table/table-widget.d.ts +2 -2
  94. package/dist-types/lib/user-facing/components/table/types.d.ts +47 -73
  95. package/dist-types/lib/user-facing/components/table/utils.d.ts +2 -2
  96. package/dist-types/lib/user-facing/components/text/index.d.ts +8 -7
  97. package/dist-types/lib/user-facing/components/text/props.d.ts +17 -14
  98. package/dist-types/lib/user-facing/components/text/utils.d.ts +6 -6
  99. package/dist-types/lib/user-facing/properties-panel/mixins/appearance-properties.d.ts +1 -0
  100. package/dist-types/lib/user-facing/properties-panel/mixins/appearance.d.ts +4 -8
  101. package/dist-types/lib/user-facing/properties-panel/mixins/form-inputs-properties.d.ts +4 -4
  102. package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +15 -14
  103. package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +5 -4
  104. package/dist-types/lib/user-facing/properties-panel/validators.d.ts +2 -1
  105. package/dist-types/lib/user-facing/state/sb-computed.d.ts +1 -1
  106. package/dist-types/lib/user-facing/themes/constants.d.ts +4 -2
  107. package/dist-types/lib/user-facing/themes/utils.d.ts +1 -2
  108. package/package.json +5 -3
@@ -1,10 +1,9 @@
1
1
  import { Section, Prop } from "../../properties-panel/props-builder.js";
2
- import { PaginationTypes } from "./types.js";
3
- import { CompactMode } from "./types.js";
4
- import type { UnknownRow } from "./types.js";
2
+ import { RowDensity } from "./types.js";
3
+ import type { UnknownRow, PaginationType } from "./types.js";
5
4
  export declare const propertiesDefinition: {
6
5
  general: Section<Record<string, Prop<any, any>> & {
7
- tableHeader: Prop<string, true>;
6
+ header: Prop<string, true>;
8
7
  tableData: Prop<UnknownRow[], false>;
9
8
  columns: import("../../properties-panel/props-builder.js").RecordProp<{
10
9
  general: Section<(Record<string, Prop<any, any>> & ({
@@ -12,57 +11,50 @@ export declare const propertiesDefinition: {
12
11
  } & (Omit<{
13
12
  columnType: Prop<import("./types.js").ColumnType, true>;
14
13
  }, "columnType"> & ({
15
- computedValue: Prop<string, false>;
14
+ displayedValue: Prop<string, false>;
15
+ columnType: Prop<undefined, false>;
16
+ } | {
16
17
  displayedValue: Prop<string, false>;
17
18
  columnType: Prop<"text", true>;
18
19
  } | {
19
- computedValue: Prop<string, false>;
20
20
  notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
21
21
  minimumFractionDigits: Prop<number, false>;
22
22
  maximumFractionDigits: Prop<number, false>;
23
23
  columnType: Prop<"number", true>;
24
24
  } | {
25
- computedValue: Prop<string, false>;
26
25
  notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
27
26
  minimumFractionDigits: Prop<number, false>;
28
27
  maximumFractionDigits: Prop<number, false>;
29
- currency: Prop<string, false>;
28
+ currency: Prop<string, true>;
30
29
  columnType: Prop<"currency", true>;
31
30
  } | {
32
- computedValue: Prop<string, false>;
33
31
  minimumFractionDigits: Prop<number, false>;
34
32
  maximumFractionDigits: Prop<number, false>;
35
33
  columnType: Prop<"percentage", true>;
36
34
  } | {
37
- openImageUrl: Prop<boolean, false>;
35
+ openImageUrl: Prop<boolean, true>;
38
36
  columnType: Prop<"image", true>;
39
37
  } | {
40
- computedValue: Prop<string, false>;
41
38
  columnType: Prop<"video", true>;
42
39
  } | {
43
- valueFormat: Prop<string, false>;
44
- displayFormat: Prop<string, false>;
40
+ inputFormat: Prop<string, false>;
41
+ outputFormat: Prop<string, false>;
45
42
  manageTimezone: Prop<boolean, false>;
46
43
  valueTimezone: Prop<string, false>;
47
44
  displayTimezone: Prop<string, false>;
48
45
  columnType: Prop<"date", true>;
49
46
  } | {
50
- buttonLabel: Prop<string, false>;
47
+ buttonLabel: Prop<string, true>;
51
48
  isDisabled: Prop<boolean, false>;
52
49
  columnType: Prop<"button", true>;
53
50
  } | {
54
- linkUrl: Prop<string, false>;
55
51
  linkLabel: Prop<string, false>;
56
- openInNewTab: Prop<boolean, false>;
57
52
  columnType: Prop<"link", true>;
58
53
  } | {
59
- computedValue: Prop<string, false>;
60
54
  columnType: Prop<"boolean", true>;
61
55
  } | {
62
- computedValue: Prop<string, false>;
63
56
  columnType: Prop<"tags", true>;
64
57
  } | {
65
- computedValue: Prop<string, false>;
66
58
  displayedValue: Prop<string, false>;
67
59
  columnType: Prop<"email", true>;
68
60
  })))) & {
@@ -70,107 +62,111 @@ export declare const propertiesDefinition: {
70
62
  }>;
71
63
  presentation: Section<(Record<string, Prop<any, any>> & ({
72
64
  headerIcon: Prop<string, false>;
73
- headerIconPosition: Prop<import("../../icons/constants.js").IconPosition, false>;
65
+ headerIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
74
66
  } & (Omit<{
75
67
  columnType: Prop<import("./types.js").ColumnType, false>;
76
68
  }, "columnType"> & ({
77
- horizontalAlign: Prop<"center" | "left" | "right", false>;
78
- verticalAlign: Prop<"center" | "bottom" | "top", false>;
79
- "cellProps.textStyle": Prop<any, false>;
80
- cellBackground: Prop<string, false>;
69
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
70
+ verticalAlign: Prop<"center" | "bottom" | "top", true>;
71
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
72
+ cellBackground: Prop<string, true>;
73
+ textWrap: Prop<boolean, false>;
74
+ cellIcon: Prop<string, false>;
75
+ cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
76
+ columnType: Prop<undefined, false>;
77
+ } | {
78
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
79
+ verticalAlign: Prop<"center" | "bottom" | "top", true>;
80
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
81
+ cellBackground: Prop<string, true>;
81
82
  textWrap: Prop<boolean, false>;
82
83
  cellIcon: Prop<string, false>;
83
- cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, false>;
84
+ cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
84
85
  columnType: Prop<"text", true>;
85
86
  } | {
86
- horizontalAlign: Prop<"center" | "left" | "right", false>;
87
- verticalAlign: Prop<"center" | "bottom" | "top", false>;
88
- "cellProps.textStyle": Prop<any, false>;
89
- cellBackground: Prop<string, false>;
87
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
88
+ verticalAlign: Prop<"center" | "bottom" | "top", true>;
89
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
90
+ cellBackground: Prop<string, true>;
90
91
  textWrap: Prop<boolean, false>;
91
92
  cellIcon: Prop<string, false>;
92
- cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, false>;
93
+ cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
93
94
  columnType: Prop<"number", true>;
94
95
  } | {
95
- horizontalAlign: Prop<"center" | "left" | "right", false>;
96
- verticalAlign: Prop<"center" | "bottom" | "top", false>;
97
- "cellProps.textStyle": Prop<any, false>;
98
- cellBackground: Prop<string, false>;
96
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
97
+ verticalAlign: Prop<"center" | "bottom" | "top", true>;
98
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
99
+ cellBackground: Prop<string, true>;
99
100
  textWrap: Prop<boolean, false>;
100
101
  cellIcon: Prop<string, false>;
101
- cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, false>;
102
+ cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
102
103
  columnType: Prop<"currency", true>;
103
104
  } | {
104
- horizontalAlign: Prop<"center" | "left" | "right", false>;
105
- verticalAlign: Prop<"center" | "bottom" | "top", false>;
106
- "cellProps.textStyle": Prop<any, false>;
107
- cellBackground: Prop<string, false>;
105
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
106
+ verticalAlign: Prop<"center" | "bottom" | "top", true>;
107
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
108
+ cellBackground: Prop<string, true>;
108
109
  textWrap: Prop<boolean, false>;
109
110
  cellIcon: Prop<string, false>;
110
- cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, false>;
111
+ cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
111
112
  columnType: Prop<"percentage", true>;
112
113
  } | {
113
- horizontalAlign: Prop<"center" | "left" | "right", false>;
114
- verticalAlign: Prop<"center" | "bottom" | "top", false>;
115
- "cellProps.textStyle": Prop<any, false>;
116
- cellBackground: Prop<string, false>;
117
114
  imageSize: Prop<import("./types.js").ImageSize, false>;
118
- imageBorderRadius: Prop<import("@superblocksteam/library-shared").Dim, false>;
115
+ imageBorderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
116
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
117
+ cellBackground: Prop<string, true>;
119
118
  columnType: Prop<"image", true>;
120
119
  } | {
121
- horizontalAlign: Prop<"center" | "left" | "right", false>;
122
- verticalAlign: Prop<"center" | "bottom" | "top", false>;
123
- "cellProps.textStyle": Prop<any, false>;
124
- cellBackground: Prop<string, false>;
120
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
121
+ cellBackground: Prop<string, true>;
125
122
  columnType: Prop<"video", true>;
126
123
  } | {
127
- horizontalAlign: Prop<"center" | "left" | "right", false>;
128
- verticalAlign: Prop<"center" | "bottom" | "top", false>;
129
- "cellProps.textStyle": Prop<any, false>;
130
- cellBackground: Prop<string, false>;
124
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
125
+ verticalAlign: Prop<"center" | "bottom" | "top", true>;
126
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
127
+ cellBackground: Prop<string, true>;
131
128
  textWrap: Prop<boolean, false>;
132
129
  cellIcon: Prop<string, false>;
133
- cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, false>;
130
+ cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
134
131
  columnType: Prop<"date", true>;
135
132
  } | {
136
- buttonVariant: Prop<import("../button/props.js").ButtonVariant, false>;
133
+ buttonIcon: Prop<string, false>;
134
+ buttonIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
135
+ buttonVariant: Prop<import("../button/props.js").ButtonVariant, true>;
136
+ buttonTextStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
137
137
  buttonBackgroundColor: Prop<string, false>;
138
- buttonLabelColor: Prop<string, false>;
139
- backgroundColor: Prop<string, false>;
140
- cellIcon: Prop<string, false>;
141
- cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, false>;
138
+ buttonBorder: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
142
139
  columnType: Prop<"button", true>;
143
140
  } | {
144
- horizontalAlign: Prop<"center" | "left" | "right", false>;
145
- verticalAlign: Prop<"center" | "bottom" | "top", false>;
146
- "cellProps.textStyle": Prop<any, false>;
147
- cellBackground: Prop<string, false>;
141
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
142
+ verticalAlign: Prop<"center" | "bottom" | "top", true>;
143
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
144
+ cellBackground: Prop<string, true>;
148
145
  columnType: Prop<"link", true>;
149
146
  } | {
150
- booleanStyleFalse: Prop<import("./types.js").BooleanStyleFalse, false>;
151
- horizontalAlign: Prop<"center" | "left" | "right", false>;
152
- verticalAlign: Prop<"center" | "bottom" | "top", false>;
153
- "cellProps.textStyle": Prop<any, false>;
154
- cellBackground: Prop<string, false>;
147
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
148
+ verticalAlign: Prop<"center" | "bottom" | "top", true>;
149
+ cellBackground: Prop<string, true>;
150
+ booleanStyleFalse: Prop<import("./types.js").BooleanStyleFalse, true>;
155
151
  columnType: Prop<"boolean", true>;
156
152
  } | {
153
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
154
+ verticalAlign: Prop<"center" | "bottom" | "top", true>;
155
+ cellBackground: Prop<string, true>;
156
+ tagsWrap: Prop<boolean, false>;
157
157
  tagDisplayConfig: Prop<any, false>;
158
- horizontalAlign: Prop<"center" | "left" | "right", false>;
159
- verticalAlign: Prop<"center" | "bottom" | "top", false>;
160
- "cellProps.textStyle": Prop<any, false>;
161
- cellBackground: Prop<string, false>;
162
158
  columnType: Prop<"tags", true>;
163
159
  } | {
164
- horizontalAlign: Prop<"center" | "left" | "right", false>;
165
- verticalAlign: Prop<"center" | "bottom" | "top", false>;
166
- "cellProps.textStyle": Prop<any, false>;
167
- cellBackground: Prop<string, false>;
160
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
161
+ verticalAlign: Prop<"center" | "bottom" | "top", true>;
162
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
163
+ cellBackground: Prop<string, true>;
168
164
  textWrap: Prop<boolean, false>;
169
165
  cellIcon: Prop<string, false>;
170
- cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, false>;
166
+ cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
171
167
  columnType: Prop<"email", true>;
172
168
  })))) & {
173
- frozen: Prop<boolean, false>;
169
+ isFrozen: Prop<boolean, false>;
174
170
  }>;
175
171
  interaction: Section<Record<string, Prop<any, any>> & Omit<{
176
172
  columnType: Prop<import("./types.js").ColumnType, false>;
@@ -198,10 +194,10 @@ export declare const propertiesDefinition: {
198
194
  multiRowSelection: Prop<boolean, true>;
199
195
  isSearchable: Prop<boolean, true>;
200
196
  isDownloadable: Prop<boolean, true>;
201
- pageType: Prop<PaginationTypes, true>;
202
- configuredPageSize: Prop<number, false>;
197
+ paginationType: Prop<PaginationType, true>;
198
+ configuredPageSize: Prop<any, false>;
203
199
  defaultSort: import("../../properties-panel/props-builder.js").CompositeProp<{
204
- column: Prop<string, true>;
200
+ column: Prop<string, false>;
205
201
  asc: Prop<boolean, true>;
206
202
  }>;
207
203
  defaultSearchText: Prop<string, false>;
@@ -210,21 +206,21 @@ export declare const propertiesDefinition: {
210
206
  appearance: Section<Record<string, Prop<any, any>> & {
211
207
  defaultSelectedRow: Prop<number, false>;
212
208
  showColumnBorders: Prop<boolean, false>;
213
- "headerProps.textStyle": Prop<any, false>;
214
- "columnHeaderProps.textStyle": Prop<any, false>;
215
- "cellProps.textStyle": Prop<any, false>;
216
- backgroundColor: Prop<string, false>;
217
- selectedRowBackgroundColor: Prop<string, false>;
218
- border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
209
+ "headerProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
210
+ "columnHeaderProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
211
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
212
+ backgroundColor: Prop<string, true>;
213
+ selectedRowBackgroundColor: Prop<string, true>;
214
+ border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
219
215
  borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
220
- compactMode: Prop<CompactMode, false>;
221
- maxLinesPerRow: Prop<number, false>;
216
+ rowDensity: Prop<RowDensity, true>;
217
+ maxLinesPerRow: Prop<number, true>;
222
218
  animateLoading: Prop<boolean, false>;
223
219
  isVisible: Prop<boolean, false>;
224
220
  collapseWhenHidden: Prop<boolean, false>;
225
- "searchProps.textStyle": Prop<any, false>;
226
- "searchProps.backgroundColor": Prop<string, false>;
227
- "searchProps.border": Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
221
+ "searchProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
222
+ "searchProps.backgroundColor": Prop<string, true>;
223
+ "searchProps.border": Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
228
224
  "searchProps.borderRadius": Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
229
225
  }>;
230
226
  events: Section<Record<string, Prop<any, any>> & {
@@ -240,19 +236,18 @@ export declare const propertiesDefinition: {
240
236
  selectedRow: Prop<any, true>;
241
237
  selectedRowSchema: Prop<any, true>;
242
238
  selectedRows: Prop<any, true>;
243
- pageSize: Prop<number, true>;
244
239
  filteredTableData: Prop<any[], true>;
245
240
  filteredOrderMap: Prop<number[], true>;
246
241
  }>;
247
242
  meta: Section<Record<string, Prop<any, any>> & {
248
- selectedRowIndex: Prop<number, false>;
243
+ selectedRowIndex: Prop<number, true>;
249
244
  selectedRowIndices: Prop<any, false>;
250
- pageNo: Prop<number, true>;
251
- sortedColumn: Prop<any, false>;
252
- searchText: Prop<string, false>;
253
- filters: Prop<any, false>;
245
+ sortedColumn: Prop<any, true>;
246
+ searchText: Prop<string, true>;
247
+ filters: Prop<any, true>;
254
248
  hiddenColumns: Prop<any, false>;
255
249
  columnFreezes: Prop<any, false>;
256
250
  tagsColorAssignment: Prop<any, false>;
251
+ pageNo: Prop<number, true>;
257
252
  }>;
258
253
  };
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import type { InsertRowOptions } from "./constants.js";
3
- import type { ColumnFilter, CompactMode, Pagination, ReactTableColumnProps, TableFilters } from "./types.js";
3
+ import type { ColumnFilter, RowDensity, PaginationType, ReactTableColumnProps, TableFilters } from "./types.js";
4
4
  import type { Dim, DimModes } from "@superblocksteam/library-shared";
5
5
  import type { TextStyleWithVariant, UserAccessibleTheme, PerCornerBorderRadius, PerSideBorder } from "@superblocksteam/library-shared/types";
6
6
  export interface TableProps {
@@ -40,7 +40,7 @@ export interface TableProps {
40
40
  prevPageClick: () => void;
41
41
  pageNo: number;
42
42
  pageSize: number;
43
- pageType: Pagination;
43
+ paginationType: PaginationType;
44
44
  selectedRowIndex: number;
45
45
  selectedRowIndices: number[];
46
46
  multiRowSelection?: boolean;
@@ -55,13 +55,13 @@ export interface TableProps {
55
55
  filters?: TableFilters;
56
56
  setColumnFilter: (columnId: string, filter: ColumnFilter) => void;
57
57
  columns: ReactTableColumnProps[];
58
- compactMode?: CompactMode;
58
+ rowDensity?: RowDensity;
59
59
  isDownloadable: boolean;
60
60
  isFilterable: boolean;
61
61
  showColumnBorders: boolean;
62
62
  isSortable: boolean;
63
63
  isSearchable: boolean;
64
- tableHeader: string;
64
+ header: string;
65
65
  hiddenColumns?: string[];
66
66
  numEdits: number;
67
67
  numEditErrors: number;
@@ -1,4 +1,4 @@
1
- import { CompactMode } from "./types.js";
1
+ import { RowDensity } from "./types.js";
2
2
  import type { TableSizes } from "./constants.js";
3
3
  import type { SingleCellProperties, ColumnProperties } from "./types.js";
4
4
  import type { UserAccessibleTheme } from "@superblocksteam/library-shared/types";
@@ -17,19 +17,15 @@ export declare const TableCSSVariables: {
17
17
  rowHoverBgColor: string;
18
18
  };
19
19
  export declare const TableWrapper: import("styled-components").StyledComponent<"div", any, TableWrapperProps, never>;
20
- export declare const buildCellStyles: ({ cellTextStyle, fontStyle, textColor, horizontalAlign, verticalAlign, textSize, compactMode, }: {
20
+ export declare const buildCellStyles: ({ cellTextStyle, horizontalAlign, verticalAlign, }: {
21
21
  cellTextStyle?: SingleCellProperties["cellTextStyle"];
22
- fontStyle?: SingleCellProperties["fontStyle"];
23
- textColor?: SingleCellProperties["textColor"];
24
22
  horizontalAlign?: SingleCellProperties["horizontalAlign"];
25
23
  verticalAlign?: SingleCellProperties["verticalAlign"];
26
- textSize?: SingleCellProperties["textSize"];
27
- compactMode: CompactMode;
28
24
  }) => CSSProperties;
29
25
  export declare const CELL_WRAPPER_HOR_MARGIN = 8;
30
26
  interface CellWrapperProps {
31
27
  cellProperties: SingleCellProperties;
32
- compactMode: CompactMode;
28
+ rowDensity: RowDensity;
33
29
  hasLeftIcon?: boolean;
34
30
  hasRightIcon?: boolean;
35
31
  isDropdownType?: boolean;
@@ -61,7 +57,6 @@ export declare const ColumnHeaderWrapper: import("styled-components").StyledComp
61
57
  export declare const ColumnHeaderTitleWrapper: import("styled-components").StyledComponent<"span", any, {}, never>;
62
58
  export declare const HeaderCellContentWrapper: import("styled-components").StyledComponent<"div", any, {
63
59
  columnProperties: ColumnProperties;
64
- shouldCapitalize: boolean;
65
60
  }, never>;
66
61
  interface TableIconWrapperProps {
67
62
  selected?: boolean;
@@ -1,12 +1,11 @@
1
- import { Dim } from "@superblocksteam/library-shared";
2
1
  import React from "react";
3
- import { BooleanStyleFalse } from "./types.js";
4
- import type { CompactMode } from "./types.js";
5
- import type { ColumnProperties, TableWidgetProps, EditProps, SingleCellProperties, TableStyles, TagDisplayConfig, TagsColorAssignment, ColumnPropertyFunctionArgs } from "./types.js";
2
+ import { HorizontalAlignment, VerticalAlignment } from "./types.js";
3
+ import type { ColumnProperties, EditProps, SingleCellProperties, TagDisplayConfig, TagsColorAssignment, RowDensity, BooleanStyleFalse, UnknownRow } from "./types.js";
6
4
  import type { IconPosition } from "../../icons/constants.js";
7
5
  import type { ButtonVariant } from "../button/props.js";
6
+ import type { Dim } from "@superblocksteam/library-shared";
8
7
  import type { DimModes } from "@superblocksteam/library-shared";
9
- import type { TextStyleWithVariant, UserAccessibleTheme } from "@superblocksteam/library-shared/types";
8
+ import type { TextStyleWithVariant, UserAccessibleTheme, PerSideBorder } from "@superblocksteam/library-shared/types";
10
9
  export declare const getAllTableColumnKeys: (tableData: Readonly<Array<Record<string, unknown>>>, additionalColumnKeys?: string[]) => string[];
11
10
  interface TableTagsProps {
12
11
  theme: UserAccessibleTheme;
@@ -15,7 +14,7 @@ interface TableTagsProps {
15
14
  tagValues: unknown[];
16
15
  tagsColorAssignment?: TagsColorAssignment;
17
16
  tagsCustomColorAssignment?: Record<string, TagDisplayConfig>;
18
- compactMode: CompactMode;
17
+ rowDensity: RowDensity;
19
18
  handleCellFocus?: () => void;
20
19
  maxWidth?: number;
21
20
  maxLinesPerRow?: number;
@@ -26,7 +25,7 @@ export type TableCellProps = SingleCellProperties & {
26
25
  tagsColorAssignment?: TagsColorAssignment;
27
26
  tagsCustomColorAssignment?: Record<string, TagDisplayConfig>;
28
27
  booleanStyleFalse?: BooleanStyleFalse;
29
- compactMode: CompactMode;
28
+ rowDensity: RowDensity;
30
29
  isFocused: boolean;
31
30
  isMultiselecting: boolean;
32
31
  };
@@ -36,11 +35,11 @@ interface CellPosition {
36
35
  columnId: string;
37
36
  }
38
37
  export declare const sanitizeCellValue: (cellValue: any) => string;
39
- export declare const TagsCell: ({ isHidden, cellProperties, tagValues, tagsColorAssignment, tagsCustomColorAssignment, compactMode, handleCellFocus, maxWidth, maxLinesPerRow, theme, }: TableTagsProps) => React.JSX.Element;
38
+ export declare const TagsCell: ({ isHidden, cellProperties, tagValues, tagsColorAssignment, tagsCustomColorAssignment, rowDensity, handleCellFocus, maxWidth, maxLinesPerRow, theme, }: TableTagsProps) => React.JSX.Element;
40
39
  interface ColumnAction {
41
40
  label: string;
42
41
  id: string;
43
- actions: (args: ColumnPropertyFunctionArgs) => void;
42
+ actions: () => void;
44
43
  }
45
44
  export declare const formatByType: (value: unknown, type: string, options: {
46
45
  maxLen?: number;
@@ -62,7 +61,7 @@ export declare const EditableCell: (props: {
62
61
  cellProps: TableCellProps;
63
62
  editProps: EditProps;
64
63
  tableName: string;
65
- compactMode: CompactMode;
64
+ rowDensity: RowDensity;
66
65
  position: CellPosition;
67
66
  isInserted: boolean;
68
67
  columnName: string;
@@ -70,7 +69,7 @@ export declare const EditableCell: (props: {
70
69
  theme: UserAccessibleTheme;
71
70
  }) => React.JSX.Element;
72
71
  export declare function getCellProperties(tableCellTextStyle: TextStyleWithVariant | undefined, columnProperties: ColumnProperties, rowIndex: number): SingleCellProperties;
73
- export declare function getPropertyValue(value: any, index: number, preserveCase?: boolean, preserveDataType?: boolean): any;
72
+ export declare function getPropertyValue(value: any, index: number, preserveDataType?: boolean): any;
74
73
  export declare function getFirstPropertyValue(value: string | string[] | undefined): string | undefined;
75
74
  export declare const renderCell: ({ value, columnType, editInputType, cellProps, defaultValue, maxLinesPerRow, tableCellTextStyle, typographies, theme, }: {
76
75
  value: any;
@@ -84,28 +83,32 @@ export declare const renderCell: ({ value, columnType, editInputType, cellProps,
84
83
  typographies?: UserAccessibleTheme["typographies"];
85
84
  theme: UserAccessibleTheme;
86
85
  }) => React.JSX.Element;
87
- interface RenderActionProps {
86
+ interface TableButtonProps {
88
87
  rowIndex: number;
89
88
  isSelected: boolean;
90
89
  isDisabled?: boolean;
91
90
  columnActions?: ColumnAction[];
92
91
  backgroundColor?: string;
92
+ buttonBorder?: PerSideBorder;
93
93
  buttonVariant: ButtonVariant;
94
- buttonLabelColor: string | undefined;
94
+ buttonTextStyle?: TextStyleWithVariant;
95
95
  cellIcon?: string;
96
96
  cellIconPosition: IconPosition;
97
- onCommandClick: (args: ColumnPropertyFunctionArgs) => void;
98
97
  handleRowSelect: (rowIndex: number) => void;
99
- compactMode: CompactMode;
98
+ rowDensity: RowDensity;
99
+ theme: UserAccessibleTheme;
100
+ buttonLabel: string;
101
+ onClick: (onComplete: () => void) => void;
100
102
  }
101
- export declare const renderActions: (props: RenderActionProps, isHidden: boolean, cellProperties: SingleCellProperties, compactMode: CompactMode, theme: UserAccessibleTheme) => React.JSX.Element;
103
+ export declare const TableButton: (props: TableButtonProps) => React.JSX.Element;
102
104
  export declare const renderLink: (props: {
103
105
  isHidden: boolean;
104
106
  cellProperties: SingleCellProperties;
105
- compactMode: CompactMode;
107
+ rowDensity: RowDensity;
106
108
  position: CellPosition;
107
109
  maxLinesPerRow?: number;
108
110
  tableCellTextStyle?: TextStyleWithVariant;
111
+ value?: string;
109
112
  }) => React.JSX.Element;
110
113
  export declare const renderEmptyRow: (columns: any, page: any, prepareRow: any, index: number, columnSizeMap: undefined | {
111
114
  [key: string]: number;
@@ -117,8 +120,6 @@ export declare const getVisibleOrderedColumnIds: (columns: Record<string, Column
117
120
  export declare const reorderColumns: (columns: Record<string, ColumnProperties>, columnOrder: string[], columnFreezes?: Record<string, boolean>) => Record<string, ColumnProperties>;
118
121
  export declare function getDefaultColumnProperties(accessor: string, index: number, widgetName: string, isDerived?: boolean): ColumnProperties;
119
122
  export declare function getDefaultComputedValue(accessor: string, widgetName: string, isDerived: boolean): string;
120
- export declare function columnHasNonDefaultProps(columnProperties: ColumnProperties, widgetName: string): boolean;
121
- export declare function getTableStyles(props: any): TableStyles;
122
123
  export declare const getColumnWidthStyle: ({ column, columnSizeMap, resizingColumnIdRef, canvasScaleFactor, }: {
123
124
  column: any;
124
125
  columnSizeMap: {
@@ -143,5 +144,9 @@ export declare const getColumnWidth: (colId: string, columnSizeMap: {
143
144
  actualFlexWidth: number;
144
145
  };
145
146
  export declare function collapseTableData(data: unknown[][], largestRow?: number): unknown[][];
146
- export declare function createTableColumns(props: TableWidgetProps): Record<string, ColumnProperties> | undefined;
147
+ export declare function createTableColumns(columns: Record<string, any> | undefined, tableData: UnknownRow[] | undefined, tableStyles: {
148
+ cellBackground?: string;
149
+ verticalAlign?: VerticalAlignment;
150
+ horizontalAlign?: HorizontalAlignment;
151
+ }, widgetName: string): Record<string, ColumnProperties> | undefined;
147
152
  export {};
@@ -25,7 +25,6 @@ export declare class TableWidget extends React.Component<TableWidgetProps, Table
25
25
  }[];
26
26
  eventListenerController: AbortController | undefined;
27
27
  componentDidMount(): void;
28
- componentDidUpdate(): void;
29
28
  addEventListeners(): void;
30
29
  componentWillUnmount(): void;
31
30
  getDisplayedValueForEditCell: ({ columnId, rawValue, displayedValue, useLabelAsDisplayValue, }: {
@@ -36,6 +35,7 @@ export declare class TableWidget extends React.Component<TableWidgetProps, Table
36
35
  }) => string | undefined;
37
36
  previousColumnsString: string;
38
37
  previousColumns: ReactTableColumnProps[];
38
+ handleTableButtonClick: (columnId: string, onComplete: () => void) => void;
39
39
  getReactTableColumns(): ReactTableColumnProps[];
40
40
  static transformData: (tableData: Array<Record<string, unknown>>, filteredOrderMap: Array<number>, columns: ReactTableColumnProps[], editOverrides: Record<number, Record<string, {
41
41
  value: unknown;
@@ -111,7 +111,7 @@ export declare class TableWidget extends React.Component<TableWidgetProps, Table
111
111
  label: string;
112
112
  value: string;
113
113
  }) => void;
114
- onEditStop: (columnProperties: ColumnProperties, currentRowIndex: number, editStopProps: {
114
+ onEditStop: (columnProperties: ColumnProperties, _currentRowIndex: number, editStopProps: {
115
115
  shouldSave: boolean;
116
116
  value?: any;
117
117
  validationErrors?: Array<string>;