@superblocksteam/library 2.0.6-next.89 → 2.0.6-next.9

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 (111) hide show
  1. package/dist/{allPaths-CrtDGuNf.js → allPaths-BbwLOFSN.js} +2 -2
  2. package/dist/{allPaths-CrtDGuNf.js.map → allPaths-BbwLOFSN.js.map} +1 -1
  3. package/dist/{allPaths-CgvYrNUw.js → allPaths-YpR_xtpv.js} +2 -2
  4. package/dist/{allPaths-CgvYrNUw.js.map → allPaths-YpR_xtpv.js.map} +1 -1
  5. package/dist/{allPathsLoader-LUVVWlgN.js → allPathsLoader-CTr7XzYS.js} +3 -3
  6. package/dist/{allPathsLoader-LUVVWlgN.js.map → allPathsLoader-CTr7XzYS.js.map} +1 -1
  7. package/dist/{allPathsLoader-DhgvyPfz.js → allPathsLoader-DjBKQsij.js} +3 -3
  8. package/dist/{allPathsLoader-DhgvyPfz.js.map → allPathsLoader-DjBKQsij.js.map} +1 -1
  9. package/dist/{devtools-consolidated-DrBc1h4m.js → devtools-consolidated-B2GVETCf.js} +2 -2
  10. package/dist/{devtools-consolidated-DrBc1h4m.js.map → devtools-consolidated-B2GVETCf.js.map} +1 -1
  11. package/dist/{icons-lSlfQ50w.js → icons-NrNO8p_u.js} +14 -10
  12. package/dist/icons-NrNO8p_u.js.map +1 -0
  13. package/dist/{index-2ihBTDX4.js → index-snr_jI8a.js} +22121 -24008
  14. package/dist/{index-2ihBTDX4.js.map → index-snr_jI8a.js.map} +1 -1
  15. package/dist/index.js +149 -150
  16. package/dist/{splitPathsBySizeLoader-mxO24EVV.js → splitPathsBySizeLoader-Blv6tUe4.js} +2 -2
  17. package/dist/{splitPathsBySizeLoader-mxO24EVV.js.map → splitPathsBySizeLoader-Blv6tUe4.js.map} +1 -1
  18. package/dist/{splitPathsBySizeLoader-BS08Me-9.js → splitPathsBySizeLoader-DbNFtg9G.js} +2 -2
  19. package/dist/{splitPathsBySizeLoader-BS08Me-9.js.map → splitPathsBySizeLoader-DbNFtg9G.js.map} +1 -1
  20. package/dist-types/edit-mode/dnd/utils.d.ts +0 -4
  21. package/dist-types/edit-mode/features/ui-store.d.ts +1 -1
  22. package/dist-types/edit-mode/iframe-wrappers.d.ts +0 -1
  23. package/dist-types/edit-mode/source-update-api.d.ts +0 -5
  24. package/dist-types/edit-mode/superblocks-editor-bridge.d.ts +1 -7
  25. package/dist-types/lib/index.d.ts +0 -1
  26. package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +14 -16
  27. package/dist-types/lib/internal-details/lib/evaluator/compute-engines.d.ts +1 -2
  28. package/dist-types/lib/internal-details/lib/evaluator/create-scope-proxy.d.ts +1 -1
  29. package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +7 -7
  30. package/dist-types/lib/internal-details/lib/evaluator/lazy-function.d.ts +1 -2
  31. package/dist-types/lib/internal-details/lib/evaluator/pretty-print-function.d.ts +1 -1
  32. package/dist-types/lib/internal-details/lib/evaluator/use-shallow-mobx-observer.d.ts +1 -1
  33. package/dist-types/lib/internal-details/lib/features/component-registry.d.ts +0 -14
  34. package/dist-types/lib/internal-details/lib/root-store.d.ts +0 -2
  35. package/dist-types/lib/internal-details/lib/types.d.ts +1 -34
  36. package/dist-types/lib/internal-details/scope/global.d.ts +1 -1
  37. package/dist-types/lib/internal-details/scope/types.d.ts +2 -2
  38. package/dist-types/lib/triggers/implementations/components/control-slideout.d.ts +3 -4
  39. package/dist-types/lib/triggers/implementations/show-alert.d.ts +1 -1
  40. package/dist-types/lib/triggers/implementations/state/reset-state-var.d.ts +3 -3
  41. package/dist-types/lib/triggers/implementations/state/set-state-var.d.ts +3 -3
  42. package/dist-types/lib/triggers/implementations/timers/control-timer.d.ts +3 -4
  43. package/dist-types/lib/triggers/registry.d.ts +9 -9
  44. package/dist-types/lib/user-facing/component-base/sb-component.d.ts +1 -5
  45. package/dist-types/lib/user-facing/components/button/index.d.ts +26 -26
  46. package/dist-types/lib/user-facing/components/button/props.d.ts +26 -26
  47. package/dist-types/lib/user-facing/components/checkbox/index.d.ts +31 -31
  48. package/dist-types/lib/user-facing/components/checkbox/props.d.ts +31 -31
  49. package/dist-types/lib/user-facing/components/column/index.d.ts +19 -19
  50. package/dist-types/lib/user-facing/components/column/props.d.ts +19 -19
  51. package/dist-types/lib/user-facing/components/container/index.d.ts +21 -21
  52. package/dist-types/lib/user-facing/components/container/props.d.ts +21 -21
  53. package/dist-types/lib/user-facing/components/custom/register-custom-component.d.ts +11 -14
  54. package/dist-types/lib/user-facing/components/date-picker/index.d.ts +48 -48
  55. package/dist-types/lib/user-facing/components/date-picker/props.d.ts +48 -48
  56. package/dist-types/lib/user-facing/components/dropdown/index.d.ts +54 -54
  57. package/dist-types/lib/user-facing/components/dropdown/props.d.ts +54 -54
  58. package/dist-types/lib/user-facing/components/grid/index.d.ts +13 -13
  59. package/dist-types/lib/user-facing/components/icon/index.d.ts +13 -11
  60. package/dist-types/lib/user-facing/components/icon/props.d.ts +13 -11
  61. package/dist-types/lib/user-facing/components/image/index.d.ts +20 -20
  62. package/dist-types/lib/user-facing/components/image/props.d.ts +23 -23
  63. package/dist-types/lib/user-facing/components/input/index.d.ts +63 -63
  64. package/dist-types/lib/user-facing/components/input/input-component.d.ts +0 -1
  65. package/dist-types/lib/user-facing/components/input/props.d.ts +63 -63
  66. package/dist-types/lib/user-facing/components/key-value/properties-props.d.ts +21 -21
  67. package/dist-types/lib/user-facing/components/key-value/props.d.ts +27 -27
  68. package/dist-types/lib/user-facing/components/modal/index.d.ts +31 -27
  69. package/dist-types/lib/user-facing/components/modal/props.d.ts +27 -27
  70. package/dist-types/lib/user-facing/components/page/index.d.ts +13 -13
  71. package/dist-types/lib/user-facing/components/page/props.d.ts +13 -13
  72. package/dist-types/lib/user-facing/components/section/index.d.ts +16 -16
  73. package/dist-types/lib/user-facing/components/section/props.d.ts +16 -16
  74. package/dist-types/lib/user-facing/components/slideout/index.d.ts +1 -41
  75. package/dist-types/lib/user-facing/components/slideout/props.d.ts +19 -39
  76. package/dist-types/lib/user-facing/components/stack/index.d.ts +38 -38
  77. package/dist-types/lib/user-facing/components/switch/index.d.ts +32 -32
  78. package/dist-types/lib/user-facing/components/switch/props.d.ts +32 -32
  79. package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +161 -262
  80. package/dist-types/lib/user-facing/components/table/index.d.ts +205 -305
  81. package/dist-types/lib/user-facing/components/table/props.d.ts +205 -305
  82. package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +4 -4
  83. package/dist-types/lib/user-facing/components/table/table-widget.d.ts +4 -5
  84. package/dist-types/lib/user-facing/components/table/types.d.ts +31 -33
  85. package/dist-types/lib/user-facing/components/text/index.d.ts +35 -35
  86. package/dist-types/lib/user-facing/components/text/props.d.ts +35 -35
  87. package/dist-types/lib/user-facing/constants.d.ts +1 -1
  88. package/dist-types/lib/user-facing/entities/api/props.d.ts +11 -20
  89. package/dist-types/lib/user-facing/entities/timer/props.d.ts +12 -12
  90. package/dist-types/lib/user-facing/entities/variable/props.d.ts +7 -7
  91. package/dist-types/lib/user-facing/layers.d.ts +2 -1
  92. package/dist-types/lib/user-facing/properties-panel/create-managed-props-list.d.ts +0 -4
  93. package/dist-types/lib/user-facing/properties-panel/mixins/appearance-properties.d.ts +12 -12
  94. package/dist-types/lib/user-facing/properties-panel/mixins/appearance.d.ts +2 -2
  95. package/dist-types/lib/user-facing/properties-panel/mixins/form-inputs-properties.d.ts +10 -10
  96. package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +45 -45
  97. package/dist-types/lib/user-facing/properties-panel/mixins/loading.d.ts +1 -1
  98. package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +9 -28
  99. package/dist-types/lib/user-facing/sb-event-flow.d.ts +4 -4
  100. package/dist-types/lib/user-facing/sb-provider.d.ts +2 -1
  101. package/package.json +3 -4
  102. package/dist/icons-lSlfQ50w.js.map +0 -1
  103. package/dist-types/internal-testing/components/slideout.d.ts +0 -3
  104. package/dist-types/lib/internal-details/lib/evaluator/sanitize-object.d.ts +0 -6
  105. package/dist-types/lib/internal-details/lib/evaluator/suspense-helpers.d.ts +0 -8
  106. package/dist-types/lib/internal-details/location-store.d.ts +0 -18
  107. package/dist-types/lib/user-facing/build-manifest.d.ts +0 -2
  108. package/dist-types/lib/user-facing/components/slideout/constants.d.ts +0 -10
  109. package/dist-types/lib/user-facing/components/slideout/slideout-component.d.ts +0 -31
  110. package/dist-types/lib/user-facing/entities/api/suspensible-api.d.ts +0 -20
  111. package/dist-types/lib/user-facing/hooks/use-dialog-editing.d.ts +0 -14
@@ -2,361 +2,261 @@ import { Section, Prop } from "../../properties-panel/props-builder.js";
2
2
  import { RowDensity } from "./types.js";
3
3
  import type { UnknownRow, PaginationType } from "./types.js";
4
4
  export declare const propertiesDefinition: {
5
- general: Section<Record<string, Prop<any, any, undefined>> & {
6
- header: Prop<string, true, undefined>;
7
- tableData: Prop<UnknownRow[], false, undefined>;
5
+ general: Section<Record<string, Prop<any, any>> & {
6
+ header: Prop<string, true>;
7
+ tableData: Prop<UnknownRow[], false>;
8
8
  columns: import("../../properties-panel/props-builder.js").RecordProp<{
9
- general: Section<(Record<string, Prop<any, any, undefined>> & ({
10
- label: Prop<string, false, undefined>;
9
+ general: Section<(Record<string, Prop<any, any>> & ({
10
+ label: Prop<string, false>;
11
11
  } & (Omit<{
12
- columnType: Prop<import("./types.js").ColumnType, true, undefined>;
12
+ columnType: Prop<import("./types.js").ColumnType, true>;
13
13
  }, "columnType"> & ({
14
- displayedValue: Prop<string, false, [{
15
- currentRow: Record<string, unknown>;
16
- }]>;
17
- isDerived: Prop<boolean, true, undefined>;
18
- columnType: Prop<undefined, false, undefined>;
14
+ displayedValue: Prop<string, false>;
15
+ isDerived: Prop<boolean, true>;
16
+ columnType: Prop<undefined, false>;
19
17
  } | {
20
- displayedValue: Prop<string, false, [{
21
- currentRow: Record<string, unknown>;
22
- }]>;
23
- isDerived: Prop<boolean, true, undefined>;
24
- columnType: Prop<"text", true, undefined>;
18
+ displayedValue: Prop<string, false>;
19
+ isDerived: Prop<boolean, true>;
20
+ columnType: Prop<"text", true>;
25
21
  } | {
26
- notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false, [{
27
- currentRow: Record<string, unknown>;
28
- }]>;
29
- minimumFractionDigits: Prop<number, false, [{
30
- currentRow: Record<string, unknown>;
31
- }]>;
32
- maximumFractionDigits: Prop<number, false, [{
33
- currentRow: Record<string, unknown>;
34
- }]>;
35
- isDerived: Prop<boolean, true, undefined>;
36
- columnType: Prop<"number", true, undefined>;
22
+ notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
23
+ minimumFractionDigits: Prop<number, false>;
24
+ maximumFractionDigits: Prop<number, false>;
25
+ isDerived: Prop<boolean, true>;
26
+ columnType: Prop<"number", true>;
37
27
  } | {
38
- notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false, [{
39
- currentRow: Record<string, unknown>;
40
- }]>;
41
- minimumFractionDigits: Prop<number, false, [{
42
- currentRow: Record<string, unknown>;
43
- }]>;
44
- maximumFractionDigits: Prop<number, false, [{
45
- currentRow: Record<string, unknown>;
46
- }]>;
47
- currency: Prop<string, true, [{
48
- currentRow: Record<string, unknown>;
49
- }]>;
50
- isDerived: Prop<boolean, true, undefined>;
51
- columnType: Prop<"currency", true, undefined>;
28
+ notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
29
+ minimumFractionDigits: Prop<number, false>;
30
+ maximumFractionDigits: Prop<number, false>;
31
+ currency: Prop<string, true>;
32
+ isDerived: Prop<boolean, true>;
33
+ columnType: Prop<"currency", true>;
52
34
  } | {
53
- minimumFractionDigits: Prop<number, false, [{
54
- currentRow: Record<string, unknown>;
55
- }]>;
56
- maximumFractionDigits: Prop<number, false, [{
57
- currentRow: Record<string, unknown>;
58
- }]>;
59
- isDerived: Prop<boolean, true, undefined>;
60
- columnType: Prop<"percentage", true, undefined>;
35
+ minimumFractionDigits: Prop<number, false>;
36
+ maximumFractionDigits: Prop<number, false>;
37
+ isDerived: Prop<boolean, true>;
38
+ columnType: Prop<"percentage", true>;
61
39
  } | {
62
- openImageUrl: Prop<boolean, true, undefined>;
63
- isDerived: Prop<boolean, true, undefined>;
64
- columnType: Prop<"image", true, undefined>;
40
+ openImageUrl: Prop<boolean, true>;
41
+ isDerived: Prop<boolean, true>;
42
+ columnType: Prop<"image", true>;
65
43
  } | {
66
- isDerived: Prop<boolean, true, undefined>;
67
- columnType: Prop<"video", true, undefined>;
44
+ isDerived: Prop<boolean, true>;
45
+ columnType: Prop<"video", true>;
68
46
  } | {
69
- manageTimezone: Prop<boolean, true, [{
70
- currentRow: Record<string, unknown>;
71
- }]>;
72
- inputFormat: Prop<string, false, [{
73
- currentRow: Record<string, unknown>;
74
- }]>;
75
- outputFormat: Prop<string, false, [{
76
- currentRow: Record<string, unknown>;
77
- }]>;
78
- isDerived: Prop<boolean, true, undefined>;
79
- columnType: Prop<"date", true, undefined>;
47
+ manageTimezone: Prop<boolean, true>;
48
+ inputFormat: Prop<string, false>;
49
+ outputFormat: Prop<string, false>;
50
+ isDerived: Prop<boolean, true>;
51
+ columnType: Prop<"date", true>;
80
52
  } | {
81
- buttonLabel: Prop<string, true, [{
82
- currentRow: Record<string, unknown>;
83
- }]>;
84
- isDisabled: Prop<boolean, false, [{
85
- currentRow: Record<string, unknown>;
86
- }]>;
87
- columnType: Prop<"button", true, undefined>;
53
+ buttonLabel: Prop<string, true>;
54
+ isDisabled: Prop<boolean, false>;
55
+ columnType: Prop<"button", true>;
88
56
  } | {
89
- linkUrl: Prop<string, false, [{
90
- currentRow: Record<string, unknown>;
91
- }]>;
92
- linkLabel: Prop<string, false, [{
93
- currentRow: Record<string, unknown>;
94
- }]>;
95
- columnType: Prop<"link", true, undefined>;
57
+ linkLabel: Prop<string, false>;
58
+ columnType: Prop<"link", true>;
96
59
  } | {
97
- isDerived: Prop<boolean, true, undefined>;
98
- columnType: Prop<"boolean", true, undefined>;
60
+ isDerived: Prop<boolean, true>;
61
+ columnType: Prop<"boolean", true>;
99
62
  } | {
100
- isDerived: Prop<boolean, true, undefined>;
101
- columnType: Prop<"tags", true, undefined>;
63
+ isDerived: Prop<boolean, true>;
64
+ columnType: Prop<"tags", true>;
102
65
  } | {
103
- displayedValue: Prop<string, false, [{
104
- currentRow: Record<string, unknown>;
105
- }]>;
106
- isDerived: Prop<boolean, true, undefined>;
107
- columnType: Prop<"email", true, undefined>;
66
+ displayedValue: Prop<string, false>;
67
+ isDerived: Prop<boolean, true>;
68
+ columnType: Prop<"email", true>;
108
69
  })))) & {
109
- isVisible: Prop<boolean, true, undefined>;
70
+ isVisible: Prop<boolean, true>;
110
71
  }>;
111
- presentation: Section<(Record<string, Prop<any, any, undefined>> & ({
112
- headerIcon: Prop<string, false, undefined>;
113
- headerIconPosition: Prop<import("../../icons/constants.js").IconPosition, true, undefined>;
72
+ presentation: Section<(Record<string, Prop<any, any>> & ({
73
+ headerIcon: Prop<string, false>;
74
+ headerIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
114
75
  } & (Omit<{
115
- columnType: Prop<import("./types.js").ColumnType, false, undefined>;
76
+ columnType: Prop<import("./types.js").ColumnType, false>;
116
77
  }, "columnType"> & ({
117
- horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
118
- verticalAlign: Prop<"center" | "top" | "bottom", true, undefined>;
119
- "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
120
- cellBackground: Prop<string, true, undefined>;
121
- textWrap: Prop<boolean, false, [{
122
- currentRow: Record<string, unknown>;
123
- }]>;
124
- cellIcon: Prop<string, false, [{
125
- currentRow: Record<string, unknown>;
126
- }]>;
127
- cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true, [{
128
- currentRow: Record<string, unknown>;
129
- }]>;
130
- columnType: Prop<undefined, false, undefined>;
78
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
79
+ verticalAlign: Prop<"center" | "top" | "bottom", true>;
80
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
81
+ cellBackground: Prop<string, true>;
82
+ textWrap: Prop<boolean, false>;
83
+ columnType: Prop<undefined, false>;
131
84
  } | {
132
- horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
133
- verticalAlign: Prop<"center" | "top" | "bottom", true, undefined>;
134
- "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
135
- cellBackground: Prop<string, true, undefined>;
136
- textWrap: Prop<boolean, false, [{
137
- currentRow: Record<string, unknown>;
138
- }]>;
139
- cellIcon: Prop<string, false, [{
140
- currentRow: Record<string, unknown>;
141
- }]>;
142
- cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true, [{
143
- currentRow: Record<string, unknown>;
144
- }]>;
145
- columnType: Prop<"text", true, undefined>;
85
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
86
+ verticalAlign: Prop<"center" | "top" | "bottom", true>;
87
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
88
+ cellBackground: Prop<string, true>;
89
+ textWrap: Prop<boolean, false>;
90
+ columnType: Prop<"text", true>;
146
91
  } | {
147
- horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
148
- verticalAlign: Prop<"center" | "top" | "bottom", true, undefined>;
149
- "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
150
- cellBackground: Prop<string, true, undefined>;
151
- textWrap: Prop<boolean, false, [{
152
- currentRow: Record<string, unknown>;
153
- }]>;
154
- cellIcon: Prop<string, false, [{
155
- currentRow: Record<string, unknown>;
156
- }]>;
157
- cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true, [{
158
- currentRow: Record<string, unknown>;
159
- }]>;
160
- columnType: Prop<"number", true, undefined>;
92
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
93
+ verticalAlign: Prop<"center" | "top" | "bottom", true>;
94
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
95
+ cellBackground: Prop<string, true>;
96
+ textWrap: Prop<boolean, false>;
97
+ cellIcon: Prop<string, false>;
98
+ cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
99
+ columnType: Prop<"number", true>;
161
100
  } | {
162
- horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
163
- verticalAlign: Prop<"center" | "top" | "bottom", true, undefined>;
164
- "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
165
- cellBackground: Prop<string, true, undefined>;
166
- textWrap: Prop<boolean, false, [{
167
- currentRow: Record<string, unknown>;
168
- }]>;
169
- cellIcon: Prop<string, false, [{
170
- currentRow: Record<string, unknown>;
171
- }]>;
172
- cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true, [{
173
- currentRow: Record<string, unknown>;
174
- }]>;
175
- columnType: Prop<"currency", true, undefined>;
101
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
102
+ verticalAlign: Prop<"center" | "top" | "bottom", true>;
103
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
104
+ cellBackground: Prop<string, true>;
105
+ textWrap: Prop<boolean, false>;
106
+ cellIcon: Prop<string, false>;
107
+ cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
108
+ columnType: Prop<"currency", true>;
176
109
  } | {
177
- horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
178
- verticalAlign: Prop<"center" | "top" | "bottom", true, undefined>;
179
- "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
180
- cellBackground: Prop<string, true, undefined>;
181
- textWrap: Prop<boolean, false, [{
182
- currentRow: Record<string, unknown>;
183
- }]>;
184
- cellIcon: Prop<string, false, [{
185
- currentRow: Record<string, unknown>;
186
- }]>;
187
- cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true, [{
188
- currentRow: Record<string, unknown>;
189
- }]>;
190
- columnType: Prop<"percentage", true, undefined>;
110
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
111
+ verticalAlign: Prop<"center" | "top" | "bottom", true>;
112
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
113
+ cellBackground: Prop<string, true>;
114
+ textWrap: Prop<boolean, false>;
115
+ cellIcon: Prop<string, false>;
116
+ cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
117
+ columnType: Prop<"percentage", true>;
191
118
  } | {
192
- imageSize: Prop<import("./types.js").ImageSize, false, [{
193
- currentRow: Record<string, unknown>;
194
- }]>;
195
- imageBorderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true, [{
196
- currentRow: Record<string, unknown>;
197
- }]>;
198
- horizontalAlign: Prop<"center" | "left" | "right", true, [{
199
- currentRow: Record<string, unknown>;
200
- }]>;
201
- cellBackground: Prop<string, true, undefined>;
202
- columnType: Prop<"image", true, undefined>;
119
+ imageSize: Prop<import("./types.js").ImageSize, false>;
120
+ imageBorderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
121
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
122
+ cellBackground: Prop<string, true>;
123
+ columnType: Prop<"image", true>;
203
124
  } | {
204
- horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
205
- cellBackground: Prop<string, true, undefined>;
206
- columnType: Prop<"video", true, undefined>;
125
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
126
+ cellBackground: Prop<string, true>;
127
+ columnType: Prop<"video", true>;
207
128
  } | {
208
- horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
209
- verticalAlign: Prop<"center" | "top" | "bottom", true, undefined>;
210
- "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
211
- cellBackground: Prop<string, true, undefined>;
212
- textWrap: Prop<boolean, false, [{
213
- currentRow: Record<string, unknown>;
214
- }]>;
215
- cellIcon: Prop<string, false, [{
216
- currentRow: Record<string, unknown>;
217
- }]>;
218
- cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true, [{
219
- currentRow: Record<string, unknown>;
220
- }]>;
221
- columnType: Prop<"date", true, undefined>;
129
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
130
+ verticalAlign: Prop<"center" | "top" | "bottom", true>;
131
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
132
+ cellBackground: Prop<string, true>;
133
+ textWrap: Prop<boolean, false>;
134
+ cellIcon: Prop<string, false>;
135
+ cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
136
+ columnType: Prop<"date", true>;
222
137
  } | {
223
- buttonIcon: Prop<string, false, [{
224
- currentRow: Record<string, unknown>;
225
- }]>;
226
- buttonIconPosition: Prop<import("../../icons/constants.js").IconPosition, true, undefined>;
227
- buttonVariant: Prop<import("../button/props.js").ButtonVariant, true, [{
228
- currentRow: Record<string, unknown>;
229
- }]>;
230
- buttonTextStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
231
- buttonBackgroundColor: Prop<string, false, [{
232
- currentRow: Record<string, unknown>;
233
- }]>;
234
- buttonBorder: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true, undefined>;
235
- columnType: Prop<"button", true, undefined>;
138
+ buttonIcon: Prop<string, false>;
139
+ buttonIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
140
+ buttonVariant: Prop<import("../button/props.js").ButtonVariant, true>;
141
+ buttonTextStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
142
+ buttonBackgroundColor: Prop<string, false>;
143
+ buttonBorder: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
144
+ columnType: Prop<"button", true>;
236
145
  } | {
237
- horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
238
- verticalAlign: Prop<"center" | "top" | "bottom", true, undefined>;
239
- "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
240
- cellBackground: Prop<string, true, undefined>;
241
- columnType: Prop<"link", true, undefined>;
146
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
147
+ verticalAlign: Prop<"center" | "top" | "bottom", true>;
148
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
149
+ cellBackground: Prop<string, true>;
150
+ columnType: Prop<"link", true>;
242
151
  } | {
243
- horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
244
- verticalAlign: Prop<"center" | "top" | "bottom", true, undefined>;
245
- cellBackground: Prop<string, true, undefined>;
246
- booleanStyleFalse: Prop<import("./types.js").BooleanStyleFalse, true, undefined>;
247
- columnType: Prop<"boolean", true, undefined>;
152
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
153
+ verticalAlign: Prop<"center" | "top" | "bottom", true>;
154
+ cellBackground: Prop<string, true>;
155
+ booleanStyleFalse: Prop<import("./types.js").BooleanStyleFalse, true>;
156
+ columnType: Prop<"boolean", true>;
248
157
  } | {
249
- horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
250
- verticalAlign: Prop<"center" | "top" | "bottom", true, undefined>;
251
- cellBackground: Prop<string, true, undefined>;
252
- tagsWrap: Prop<boolean, false, [{
253
- currentRow: Record<string, unknown>;
254
- }]>;
255
- tagDisplayConfig: Prop<any, false, undefined>;
256
- columnType: Prop<"tags", true, undefined>;
158
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
159
+ verticalAlign: Prop<"center" | "top" | "bottom", true>;
160
+ cellBackground: Prop<string, true>;
161
+ tagsWrap: Prop<boolean, false>;
162
+ tagDisplayConfig: Prop<any, false>;
163
+ columnType: Prop<"tags", true>;
257
164
  } | {
258
- horizontalAlign: Prop<"center" | "left" | "right", true, undefined>;
259
- verticalAlign: Prop<"center" | "top" | "bottom", true, undefined>;
260
- "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
261
- cellBackground: Prop<string, true, undefined>;
262
- textWrap: Prop<boolean, false, [{
263
- currentRow: Record<string, unknown>;
264
- }]>;
265
- cellIcon: Prop<string, false, [{
266
- currentRow: Record<string, unknown>;
267
- }]>;
268
- cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true, [{
269
- currentRow: Record<string, unknown>;
270
- }]>;
271
- columnType: Prop<"email", true, undefined>;
165
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
166
+ verticalAlign: Prop<"center" | "top" | "bottom", true>;
167
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
168
+ cellBackground: Prop<string, true>;
169
+ textWrap: Prop<boolean, false>;
170
+ columnType: Prop<"email", true>;
272
171
  })))) & {
273
- isFrozen: Prop<boolean, false, undefined>;
172
+ isFrozen: Prop<boolean, false>;
274
173
  }>;
275
- interaction: Section<Record<string, Prop<any, any, undefined>> & Omit<{
276
- columnType: Prop<import("./types.js").ColumnType, false, undefined>;
174
+ interaction: Section<Record<string, Prop<any, any>> & Omit<{
175
+ columnType: Prop<import("./types.js").ColumnType, false>;
277
176
  }, "onClick" | "columnType"> & {
278
- columnType: Prop<"button", true, undefined>;
279
- onClick: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
177
+ columnType: Prop<"button", true>;
178
+ onClick: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
280
179
  }>;
281
180
  }>;
282
181
  }>;
283
- layout: Section<Record<string, Prop<any, any, undefined>> & {
284
- maxHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
285
- minHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
286
- maxWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
287
- minWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
288
- width: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
289
- height: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
182
+ layout: Section<Record<string, Prop<any, any>> & {
183
+ maxHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
184
+ minHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
185
+ maxWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
186
+ minWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
187
+ width: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
188
+ height: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
290
189
  } & {
291
190
  margin: Prop<{
292
191
  top: import("@superblocksteam/library-shared").Dim<"px">;
293
192
  bottom: import("@superblocksteam/library-shared").Dim<"px">;
294
193
  left: import("@superblocksteam/library-shared").Dim<"px">;
295
194
  right: import("@superblocksteam/library-shared").Dim<"px">;
296
- } | undefined, true, undefined>;
195
+ } | undefined, true>;
297
196
  } & {
298
- isVisible: Prop<boolean, true, undefined>;
197
+ isVisible: Prop<boolean, true>;
299
198
  }>;
300
- interaction: Section<Record<string, Prop<any, any, undefined>> & {
301
- isFilterable: Prop<boolean, true, undefined>;
302
- defaultFilters: Prop<any, false, undefined>;
303
- multiRowSelection: Prop<boolean, true, undefined>;
304
- isSearchable: Prop<boolean, true, undefined>;
305
- isDownloadable: Prop<boolean, true, undefined>;
306
- paginationType: Prop<PaginationType, true, undefined>;
307
- configuredPageSize: Prop<any, false, undefined>;
199
+ interaction: Section<Record<string, Prop<any, any>> & {
200
+ isFilterable: Prop<boolean, true>;
201
+ defaultFilters: Prop<any, false>;
202
+ multiRowSelection: Prop<boolean, true>;
203
+ isSearchable: Prop<boolean, true>;
204
+ isDownloadable: Prop<boolean, true>;
205
+ paginationType: Prop<PaginationType, true>;
206
+ configuredPageSize: Prop<any, false>;
308
207
  defaultSort: import("../../properties-panel/props-builder.js").CompositeProp<{
309
- column: Prop<string, false, undefined>;
310
- asc: Prop<boolean, true, undefined>;
208
+ column: Prop<string, false>;
209
+ asc: Prop<boolean, true>;
311
210
  }>;
312
- defaultSearchText: Prop<string, false, undefined>;
313
- searchPlaceholder: Prop<string, false, undefined>;
211
+ defaultSearchText: Prop<string, false>;
212
+ searchPlaceholder: Prop<string, false>;
314
213
  }>;
315
- appearance: Section<Record<string, Prop<any, any, undefined>> & {
316
- defaultSelectedRow: Prop<number, false, undefined>;
317
- showColumnBorders: Prop<boolean, false, undefined>;
318
- "headerProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
319
- "columnHeaderProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
320
- columnHeaderTextWrap: Prop<boolean, true, undefined>;
321
- "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
322
- backgroundColor: Prop<string, true, undefined>;
323
- selectedRowBackgroundColor: Prop<string, true, undefined>;
324
- border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false, undefined>;
325
- borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true, undefined>;
326
- rowDensity: Prop<RowDensity, true, undefined>;
327
- maxLinesPerRow: Prop<number, true, undefined>;
328
- loading: Prop<boolean, true, undefined>;
329
- isVisible: Prop<boolean, false, undefined>;
330
- "searchProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
331
- "searchProps.backgroundColor": Prop<string, true, undefined>;
332
- "searchProps.border": Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false, undefined>;
333
- "searchProps.borderRadius": Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true, undefined>;
214
+ appearance: Section<Record<string, Prop<any, any>> & {
215
+ defaultSelectedRow: Prop<number, false>;
216
+ showColumnBorders: Prop<boolean, false>;
217
+ "headerProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
218
+ "columnHeaderProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
219
+ columnHeaderTextWrap: Prop<boolean, true>;
220
+ "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
221
+ backgroundColor: Prop<string, true>;
222
+ selectedRowBackgroundColor: Prop<string, true>;
223
+ border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
224
+ borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
225
+ rowDensity: Prop<RowDensity, true>;
226
+ maxLinesPerRow: Prop<number, true>;
227
+ loading: Prop<boolean, true>;
228
+ isVisible: Prop<boolean, false>;
229
+ collapseWhenHidden: Prop<boolean, false>;
230
+ "searchProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
231
+ "searchProps.backgroundColor": Prop<string, true>;
232
+ "searchProps.border": Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
233
+ "searchProps.borderRadius": Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
334
234
  }>;
335
- events: Section<Record<string, Prop<any, any, undefined>> & {
336
- onRowClick: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
337
- onRowSelect: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
338
- onPageChange: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
339
- onFiltersChange: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
340
- onSearchTextChange: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
235
+ events: Section<Record<string, Prop<any, any>> & {
236
+ onRowClick: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
237
+ onRowSelected: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
238
+ onPageChange: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
239
+ onFiltersChanged: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
240
+ onSearchTextChanged: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
341
241
  }>;
342
- derived: Section<Record<string, Prop<any, any, undefined>> & {
343
- tableDataWithInserts: Prop<any[], true, undefined>;
344
- tableDataWithInsertsOrderMap: Prop<number[], true, undefined>;
345
- selectedRow: Prop<any, true, undefined>;
346
- selectedRowSchema: Prop<any, true, undefined>;
347
- selectedRows: Prop<any, true, undefined>;
348
- filteredTableData: Prop<any[], true, undefined>;
349
- filteredOrderMap: Prop<number[], true, undefined>;
242
+ derived: Section<Record<string, Prop<any, any>> & {
243
+ tableDataWithInserts: Prop<any[], true>;
244
+ tableDataWithInsertsOrderMap: Prop<number[], true>;
245
+ selectedRow: Prop<any, true>;
246
+ selectedRowSchema: Prop<any, true>;
247
+ selectedRows: Prop<any, true>;
248
+ filteredTableData: Prop<any[], true>;
249
+ filteredOrderMap: Prop<number[], true>;
350
250
  }>;
351
- meta: Section<Record<string, Prop<any, any, undefined>> & {
352
- selectedRowIndex: Prop<number, true, undefined>;
353
- selectedRowIndices: Prop<any, false, undefined>;
354
- sortedColumn: Prop<any, true, undefined>;
355
- searchText: Prop<string, true, undefined>;
356
- filters: Prop<any, true, undefined>;
357
- hiddenColumns: Prop<any, false, undefined>;
358
- columnFreezes: Prop<any, false, undefined>;
359
- tagsColorAssignment: Prop<any, false, undefined>;
360
- pageNo: Prop<number, true, undefined>;
251
+ meta: Section<Record<string, Prop<any, any>> & {
252
+ selectedRowIndex: Prop<number, true>;
253
+ selectedRowIndices: Prop<any, false>;
254
+ sortedColumn: Prop<any, true>;
255
+ searchText: Prop<string, true>;
256
+ filters: Prop<any, true>;
257
+ hiddenColumns: Prop<any, false>;
258
+ columnFreezes: Prop<any, false>;
259
+ tagsColorAssignment: Prop<any, false>;
260
+ pageNo: Prop<number, true>;
361
261
  }>;
362
262
  };
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { HorizontalAlignment, VerticalAlignment } from "./types.js";
3
- import type { ColumnProperties, EditProps, SingleCellProperties, TagDisplayConfig, RowDensity, BooleanStyleFalse, UnknownRow, ContextualColumnProperty } from "./types.js";
3
+ import type { ColumnProperties, EditProps, SingleCellProperties, TagDisplayConfig, RowDensity, BooleanStyleFalse, UnknownRow } from "./types.js";
4
4
  import type { IconPosition } from "../../icons/constants.js";
5
5
  import type { ButtonVariant } from "../button/props.js";
6
6
  import type { Dim } from "@superblocksteam/library-shared";
@@ -65,9 +65,9 @@ export declare const EditableCell: (props: {
65
65
  maxLinesPerRow?: number;
66
66
  theme: UserAccessibleTheme;
67
67
  }) => React.JSX.Element;
68
- export declare function getCellProperties(tableCellTextStyle: TextStyleWithVariant | undefined, columnProperties: ColumnProperties, currentRow?: UnknownRow): SingleCellProperties;
69
- export declare function getPropertyValue<T>(value: ContextualColumnProperty<T>, currentRow?: UnknownRow): T | undefined;
70
- export declare function getFirstPropertyValue<T>(value: ContextualColumnProperty<T>): T;
68
+ export declare function getCellProperties(tableCellTextStyle: TextStyleWithVariant | undefined, columnProperties: ColumnProperties, rowIndex: number): SingleCellProperties;
69
+ export declare function getPropertyValue(value: any, index: number, preserveDataType?: boolean): any;
70
+ export declare function getFirstPropertyValue(value: string | string[] | undefined): string | undefined;
71
71
  export declare const renderCell: ({ value, columnType, editInputType, cellProps, defaultValue, maxLinesPerRow, tableCellTextStyle, typographies, theme, }: {
72
72
  value: any;
73
73
  columnType: string;