@macrostrat/data-sheet 3.1.0 → 4.0.0-dev2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/actions/builtin.cjs +56 -0
- package/dist/actions/builtin.cjs.map +1 -0
- package/dist/actions/builtin.d.ts +15 -0
- package/dist/actions/builtin.js +56 -0
- package/dist/actions/builtin.js.map +1 -0
- package/dist/actions/clipboard.cjs +250 -0
- package/dist/actions/clipboard.cjs.map +1 -0
- package/dist/actions/clipboard.d.ts +42 -0
- package/dist/actions/clipboard.js +250 -0
- package/dist/actions/clipboard.js.map +1 -0
- package/dist/actions/filters.cjs +123 -0
- package/dist/actions/filters.cjs.map +1 -0
- package/dist/actions/filters.d.ts +6 -0
- package/dist/actions/filters.js +123 -0
- package/dist/actions/filters.js.map +1 -0
- package/dist/actions/index.d.ts +6 -0
- package/dist/actions/selection.cjs +194 -0
- package/dist/actions/selection.cjs.map +1 -0
- package/dist/actions/selection.d.ts +40 -0
- package/dist/actions/selection.js +192 -0
- package/dist/actions/selection.js.map +1 -0
- package/dist/actions/toolbar.cjs +171 -0
- package/dist/actions/toolbar.cjs.map +1 -0
- package/dist/actions/toolbar.d.ts +10 -0
- package/dist/actions/toolbar.js +171 -0
- package/dist/actions/toolbar.js.map +1 -0
- package/dist/actions/toolbar.module.sass.cjs +22 -0
- package/dist/actions/toolbar.module.sass.cjs.map +1 -0
- package/dist/actions/toolbar.module.sass.js +20 -0
- package/dist/actions/toolbar.module.sass.js.map +1 -0
- package/dist/actions/types.d.ts +143 -0
- package/dist/cell-renderer.cjs +44 -41
- package/dist/cell-renderer.cjs.map +1 -1
- package/dist/cell-renderer.d.ts +1 -6
- package/dist/cell-renderer.js +45 -42
- package/dist/cell-renderer.js.map +1 -1
- package/dist/components/actions.module.sass.cjs +3 -3
- package/dist/components/actions.module.sass.js +2 -2
- package/dist/components/colors.cjs +20 -16
- package/dist/components/colors.cjs.map +1 -1
- package/dist/components/colors.d.ts +3 -2
- package/dist/components/colors.js +20 -16
- package/dist/components/colors.js.map +1 -1
- package/dist/components/editor-popup.cjs +4 -3
- package/dist/components/editor-popup.cjs.map +1 -1
- package/dist/components/editor-popup.js +4 -3
- package/dist/components/editor-popup.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/main.module.sass.cjs +12 -12
- package/dist/components/main.module.sass.js +11 -11
- package/dist/components/text-areas.cjs +23 -18
- package/dist/components/text-areas.cjs.map +1 -1
- package/dist/components/text-areas.d.ts +8 -4
- package/dist/components/text-areas.js +20 -13
- package/dist/components/text-areas.js.map +1 -1
- package/dist/components/view-info.cjs +18 -0
- package/dist/components/view-info.cjs.map +1 -0
- package/dist/components/view-info.d.ts +1 -0
- package/dist/components/view-info.js +18 -0
- package/dist/components/view-info.js.map +1 -0
- package/dist/core.cjs +184 -156
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.ts +14 -1
- package/dist/core.js +187 -157
- package/dist/core.js.map +1 -1
- package/dist/data-sheet.css +181 -43
- package/dist/index.cjs +43 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +43 -10
- package/dist/index.js.map +1 -1
- package/dist/main.module.sass.cjs +15 -14
- package/dist/main.module.sass.cjs.map +1 -1
- package/dist/main.module.sass.js +14 -13
- package/dist/main.module.sass.js.map +1 -1
- package/dist/notifications.cjs +19 -0
- package/dist/notifications.cjs.map +1 -0
- package/dist/notifications.d.ts +9 -0
- package/dist/notifications.js +19 -0
- package/dist/notifications.js.map +1 -0
- package/dist/postgrest-table/data-loaders.cjs +181 -104
- package/dist/postgrest-table/data-loaders.cjs.map +1 -1
- package/dist/postgrest-table/data-loaders.d.ts +52 -28
- package/dist/postgrest-table/data-loaders.js +181 -104
- package/dist/postgrest-table/data-loaders.js.map +1 -1
- package/dist/postgrest-table/index.cjs +205 -79
- package/dist/postgrest-table/index.cjs.map +1 -1
- package/dist/postgrest-table/index.d.ts +13 -16
- package/dist/postgrest-table/index.js +186 -58
- package/dist/postgrest-table/index.js.map +1 -1
- package/dist/postgrest-table/lazy-loader-table.cjs +18 -17
- package/dist/postgrest-table/lazy-loader-table.cjs.map +1 -1
- package/dist/postgrest-table/lazy-loader-table.d.ts +1 -1
- package/dist/postgrest-table/lazy-loader-table.js +17 -14
- package/dist/postgrest-table/lazy-loader-table.js.map +1 -1
- package/dist/postgrest-table/loading-utils.cjs +16 -0
- package/dist/postgrest-table/loading-utils.cjs.map +1 -0
- package/dist/postgrest-table/loading-utils.d.ts +13 -0
- package/dist/postgrest-table/loading-utils.js +16 -0
- package/dist/postgrest-table/loading-utils.js.map +1 -0
- package/dist/postgrest-table/main.module.sass.cjs +18 -13
- package/dist/postgrest-table/main.module.sass.cjs.map +1 -1
- package/dist/postgrest-table/main.module.sass.js +18 -13
- package/dist/postgrest-table/main.module.sass.js.map +1 -1
- package/dist/provider.cjs +58 -26
- package/dist/provider.cjs.map +1 -1
- package/dist/provider.js +57 -23
- package/dist/provider.js.map +1 -1
- package/dist/renderers/column-header-cell-postgrest.cjs +216 -0
- package/dist/renderers/column-header-cell-postgrest.cjs.map +1 -0
- package/dist/renderers/column-header-cell-postgrest.d.ts +13 -0
- package/dist/renderers/column-header-cell-postgrest.js +216 -0
- package/dist/renderers/column-header-cell-postgrest.js.map +1 -0
- package/dist/renderers/column-header-cell-postgrest.module.sass.cjs +23 -0
- package/dist/renderers/column-header-cell-postgrest.module.sass.cjs.map +1 -0
- package/dist/renderers/column-header-cell-postgrest.module.sass.js +22 -0
- package/dist/renderers/column-header-cell-postgrest.module.sass.js.map +1 -0
- package/dist/renderers/column-header-cell.cjs +103 -0
- package/dist/renderers/column-header-cell.cjs.map +1 -0
- package/dist/renderers/column-header-cell.d.ts +30 -0
- package/dist/renderers/column-header-cell.js +101 -0
- package/dist/renderers/column-header-cell.js.map +1 -0
- package/dist/renderers/index.d.ts +2 -0
- package/dist/table-updates/data-parameter.d.ts +14 -0
- package/dist/table-updates/filter.d.ts +16 -0
- package/dist/table-updates/index.d.ts +19 -0
- package/dist/types.cjs +9 -0
- package/dist/types.cjs.map +1 -0
- package/dist/types.d.ts +58 -4
- package/dist/types.js +9 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/column-spec.cjs +9 -1
- package/dist/utils/column-spec.cjs.map +1 -1
- package/dist/utils/column-spec.d.ts +21 -0
- package/dist/utils/column-spec.js +9 -1
- package/dist/utils/column-spec.js.map +1 -1
- package/dist/utils/key-handling.cjs +141 -52
- package/dist/utils/key-handling.cjs.map +1 -1
- package/dist/utils/key-handling.d.ts +2 -3
- package/dist/utils/key-handling.js +142 -53
- package/dist/utils/key-handling.js.map +1 -1
- package/dist/zustand-store.cjs +216 -51
- package/dist/zustand-store.cjs.map +1 -1
- package/dist/zustand-store.js +197 -32
- package/dist/zustand-store.js.map +1 -1
- package/package.json +5 -5
- package/src/actions/builtin.ts +65 -0
- package/src/actions/clipboard.ts +350 -0
- package/src/actions/filters.ts +150 -0
- package/src/actions/index.ts +6 -0
- package/src/actions/selection.ts +271 -0
- package/src/actions/toolbar.module.sass +30 -0
- package/src/actions/toolbar.ts +212 -0
- package/src/actions/types.ts +159 -0
- package/src/cell-renderer.ts +55 -51
- package/src/components/colors.ts +22 -19
- package/src/components/editor-popup.ts +3 -2
- package/src/components/index.ts +1 -0
- package/src/components/main.module.sass +1 -0
- package/src/components/text-areas.ts +34 -19
- package/src/components/view-info.ts +17 -0
- package/src/core.ts +243 -170
- package/src/index.ts +1 -0
- package/src/main.module.sass +14 -2
- package/src/notifications.ts +22 -0
- package/src/postgrest-table/data-loaders.ts +300 -201
- package/src/postgrest-table/index.ts +258 -84
- package/src/postgrest-table/lazy-loader-table.ts +18 -17
- package/src/postgrest-table/loading-utils.ts +49 -0
- package/src/postgrest-table/main.module.sass +16 -0
- package/src/provider.ts +63 -20
- package/src/renderers/column-header-cell-postgrest.module.sass +71 -0
- package/src/renderers/column-header-cell-postgrest.ts +282 -0
- package/src/renderers/column-header-cell.ts +388 -0
- package/src/renderers/index.ts +2 -0
- package/src/table-updates/data-parameter.ts +44 -0
- package/src/table-updates/filter.ts +124 -0
- package/src/table-updates/index.ts +239 -0
- package/src/types.ts +58 -3
- package/src/utils/column-spec.ts +47 -0
- package/src/utils/key-handling.ts +181 -72
- package/src/zustand-store.ts +241 -36
- package/dist/provider.d.ts +0 -15
package/dist/data-sheet.css
CHANGED
|
@@ -1094,27 +1094,31 @@
|
|
|
1094
1094
|
.bp6-table-no-layout{
|
|
1095
1095
|
display:inline-block;
|
|
1096
1096
|
position:absolute;
|
|
1097
|
-
}._data-sheet-
|
|
1097
|
+
}._data-sheet-container_11hm8_1, ._data-sheet-holder_11hm8_1 {
|
|
1098
1098
|
flex: 1;
|
|
1099
1099
|
min-height: 0;
|
|
1100
1100
|
font-size: var(--data-sheet-font-size, 12px);
|
|
1101
1101
|
line-height: var(--data-sheet-row-height, 20px);
|
|
1102
|
+
--data-sheet-cell-padding: 0px 8px;
|
|
1102
1103
|
}
|
|
1103
|
-
._data-sheet-
|
|
1104
|
+
._data-sheet-container_11hm8_1 .bp6-table-cell, ._data-sheet-holder_11hm8_1 .bp6-table-cell {
|
|
1105
|
+
padding: var(--data-sheet-cell-padding);
|
|
1106
|
+
}
|
|
1107
|
+
._data-sheet-container_11hm8_1 .bp6-table-cell:not([class*=bp6-intent-]):not(.bp6-loading), ._data-sheet-holder_11hm8_1 .bp6-table-cell:not([class*=bp6-intent-]):not(.bp6-loading) {
|
|
1104
1108
|
color: var(--text-color);
|
|
1105
1109
|
}
|
|
1106
|
-
._data-sheet-
|
|
1110
|
+
._data-sheet-container_11hm8_1 .bp6-table-cell, ._data-sheet-container_11hm8_1 .bp6-table-row-name, ._data-sheet-holder_11hm8_1 .bp6-table-cell, ._data-sheet-holder_11hm8_1 .bp6-table-row-name {
|
|
1107
1111
|
font-size: var(--data-sheet-font-size);
|
|
1108
1112
|
line-height: var(--data-sheet-row-height);
|
|
1109
1113
|
}
|
|
1110
|
-
._data-sheet-
|
|
1114
|
+
._data-sheet-container_11hm8_1 .bp6-table-row-name, ._data-sheet-holder_11hm8_1 .bp6-table-row-name {
|
|
1111
1115
|
color: var(--secondary-color);
|
|
1112
1116
|
}
|
|
1113
|
-
._data-sheet-
|
|
1117
|
+
._data-sheet-container_11hm8_1 .bp6-table-column-name, ._data-sheet-holder_11hm8_1 .bp6-table-column-name {
|
|
1114
1118
|
font-size: 1.2em;
|
|
1115
1119
|
}
|
|
1116
1120
|
|
|
1117
|
-
._data-sheet-
|
|
1121
|
+
._data-sheet-container_11hm8_1 {
|
|
1118
1122
|
display: flex;
|
|
1119
1123
|
position: relative;
|
|
1120
1124
|
height: 100%;
|
|
@@ -1123,20 +1127,17 @@
|
|
|
1123
1127
|
max-width: 100%;
|
|
1124
1128
|
}
|
|
1125
1129
|
|
|
1126
|
-
._data-
|
|
1130
|
+
._data-sheet_11hm8_1 {
|
|
1127
1131
|
height: 100%;
|
|
1128
1132
|
}
|
|
1129
|
-
._data-
|
|
1133
|
+
._data-sheet_11hm8_1 .bp6-table-quadrant {
|
|
1130
1134
|
background-color: var(--panel-secondary-background-color);
|
|
1131
1135
|
}
|
|
1132
1136
|
|
|
1133
|
-
._input-
|
|
1134
|
-
padding: 0 2px !important;
|
|
1135
|
-
}
|
|
1136
|
-
._input-cell_tr5j5_37 input {
|
|
1137
|
+
._input-cell_11hm8_41 input {
|
|
1137
1138
|
width: 100%;
|
|
1138
1139
|
height: 100%;
|
|
1139
|
-
padding: 0
|
|
1140
|
+
padding: 0;
|
|
1140
1141
|
z-index: 0;
|
|
1141
1142
|
position: relative;
|
|
1142
1143
|
border: none;
|
|
@@ -1146,11 +1147,19 @@
|
|
|
1146
1147
|
font-family: inherit;
|
|
1147
1148
|
font-size: inherit;
|
|
1148
1149
|
}
|
|
1149
|
-
._input-
|
|
1150
|
+
._input-cell_11hm8_41 input:focus {
|
|
1150
1151
|
outline: none;
|
|
1151
1152
|
}
|
|
1152
1153
|
|
|
1153
|
-
.
|
|
1154
|
+
._value-viewer-cell_11hm8_58 .bp6-popover-target {
|
|
1155
|
+
width: 100%;
|
|
1156
|
+
height: var(--data-sheet-row-height);
|
|
1157
|
+
position: relative;
|
|
1158
|
+
padding: var(--data-sheet-cell-padding);
|
|
1159
|
+
margin: calc(var(--data-sheet-cell-padding) * -1);
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
._editor-cell_11hm8_66 .bp6-popover-target {
|
|
1154
1163
|
position: absolute;
|
|
1155
1164
|
top: 0;
|
|
1156
1165
|
left: 0;
|
|
@@ -1158,20 +1167,20 @@
|
|
|
1158
1167
|
height: 100%;
|
|
1159
1168
|
}
|
|
1160
1169
|
|
|
1161
|
-
._hidden-
|
|
1170
|
+
._hidden-input_11hm8_74 {
|
|
1162
1171
|
opacity: 0;
|
|
1163
1172
|
position: absolute;
|
|
1164
1173
|
width: 0;
|
|
1165
1174
|
}
|
|
1166
1175
|
|
|
1167
|
-
._data-editor-
|
|
1176
|
+
._data-editor-anchor_11hm8_80 {
|
|
1168
1177
|
width: 100%;
|
|
1169
1178
|
height: 100%;
|
|
1170
1179
|
margin: 0;
|
|
1171
1180
|
pointer-events: none;
|
|
1172
1181
|
}
|
|
1173
1182
|
|
|
1174
|
-
._corner-drag-
|
|
1183
|
+
._corner-drag-handle_11hm8_87 {
|
|
1175
1184
|
position: absolute;
|
|
1176
1185
|
bottom: 0;
|
|
1177
1186
|
right: 0;
|
|
@@ -1181,54 +1190,55 @@
|
|
|
1181
1190
|
background-color: dodgerblue;
|
|
1182
1191
|
}
|
|
1183
1192
|
|
|
1184
|
-
._data-sheet-
|
|
1193
|
+
._data-sheet-toolbar_11hm8_97 {
|
|
1185
1194
|
display: flex;
|
|
1186
1195
|
flex-direction: row;
|
|
1187
1196
|
margin-bottom: 4px;
|
|
1188
1197
|
}
|
|
1189
1198
|
|
|
1190
|
-
.
|
|
1199
|
+
._spacer_11hm8_103 {
|
|
1191
1200
|
flex-grow: 1;
|
|
1192
1201
|
}
|
|
1193
1202
|
|
|
1194
|
-
._table-
|
|
1203
|
+
._table-control_11hm8_107 {
|
|
1195
1204
|
display: flex;
|
|
1196
1205
|
flex-direction: row;
|
|
1197
1206
|
margin-bottom: 0.25em;
|
|
1198
|
-
}._interaction-
|
|
1207
|
+
}._interaction-barrier_19ibd_1 {
|
|
1199
1208
|
pointer-events: all;
|
|
1200
1209
|
}
|
|
1201
1210
|
|
|
1202
|
-
._editor-popup-
|
|
1211
|
+
._editor-popup-target_19ibd_5 {
|
|
1203
1212
|
position: absolute;
|
|
1204
1213
|
display: block;
|
|
1205
1214
|
top: 0;
|
|
1206
1215
|
left: 0;
|
|
1207
1216
|
width: 100%;
|
|
1208
1217
|
height: 100%;
|
|
1218
|
+
padding: var(--data-sheet-cell-padding);
|
|
1209
1219
|
}
|
|
1210
1220
|
|
|
1211
|
-
._editable-text-
|
|
1221
|
+
._editable-text-area_19ibd_15 {
|
|
1212
1222
|
position: relative;
|
|
1213
1223
|
}
|
|
1214
|
-
._editable-text-
|
|
1224
|
+
._editable-text-area_19ibd_15 textarea {
|
|
1215
1225
|
min-width: var(--data-editor-width, 15em);
|
|
1216
1226
|
min-height: var(--data-editor-height, 10em);
|
|
1217
1227
|
font-family: inherit;
|
|
1218
1228
|
font-size: inherit;
|
|
1219
1229
|
}
|
|
1220
|
-
._editable-text-
|
|
1230
|
+
._editable-text-area_19ibd_15 ._tools_19ibd_24 {
|
|
1221
1231
|
position: absolute;
|
|
1222
1232
|
top: 0.2em;
|
|
1223
1233
|
right: 0.2em;
|
|
1224
1234
|
transform: scale(0.8);
|
|
1225
1235
|
}
|
|
1226
1236
|
|
|
1227
|
-
._hidden-
|
|
1237
|
+
._hidden-editor_19ibd_31 {
|
|
1228
1238
|
opacity: 0;
|
|
1229
1239
|
}
|
|
1230
1240
|
|
|
1231
|
-
._editor-
|
|
1241
|
+
._editor-value_19ibd_35 {
|
|
1232
1242
|
position: absolute;
|
|
1233
1243
|
top: 0;
|
|
1234
1244
|
left: 0;
|
|
@@ -1236,14 +1246,14 @@
|
|
|
1236
1246
|
height: 100%;
|
|
1237
1247
|
}
|
|
1238
1248
|
|
|
1239
|
-
._color-
|
|
1249
|
+
._color-swatch_19ibd_43 {
|
|
1240
1250
|
width: 18px;
|
|
1241
1251
|
height: 18px;
|
|
1242
1252
|
display: inline-block;
|
|
1243
1253
|
margin-right: 0.5em;
|
|
1244
1254
|
}
|
|
1245
1255
|
|
|
1246
|
-
._color-swatch-
|
|
1256
|
+
._color-swatch-container_19ibd_50 {
|
|
1247
1257
|
position: absolute;
|
|
1248
1258
|
top: 0;
|
|
1249
1259
|
left: 0;
|
|
@@ -1255,10 +1265,44 @@
|
|
|
1255
1265
|
gap: 0.3em;
|
|
1256
1266
|
}
|
|
1257
1267
|
|
|
1258
|
-
._color-
|
|
1268
|
+
._color-name_19ibd_62 {
|
|
1259
1269
|
position: relative;
|
|
1260
1270
|
flex-grow: 1;
|
|
1261
1271
|
display: block;
|
|
1272
|
+
}._actions-toolbar_ja9qu_1 {
|
|
1273
|
+
display: flex;
|
|
1274
|
+
flex-direction: row;
|
|
1275
|
+
gap: 4px;
|
|
1276
|
+
margin-bottom: 4px;
|
|
1277
|
+
align-items: center;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
._spacer_ja9qu_9 {
|
|
1281
|
+
flex-grow: 1;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
._action-popover-content_ja9qu_13, ._filter-config_ja9qu_13 {
|
|
1285
|
+
padding: 12px;
|
|
1286
|
+
max-width: 300px;
|
|
1287
|
+
}
|
|
1288
|
+
._action-popover-content_ja9qu_13 p._description_ja9qu_17, ._filter-config_ja9qu_13 p._description_ja9qu_17 {
|
|
1289
|
+
margin: 0 0 8px 0;
|
|
1290
|
+
color: var(--secondary-color);
|
|
1291
|
+
font-size: 0.9em;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
._run-button_ja9qu_23 {
|
|
1295
|
+
margin-top: 8px;
|
|
1296
|
+
width: 100%;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
._filter-bar_ja9qu_28 {
|
|
1300
|
+
display: flex;
|
|
1301
|
+
flex-direction: row;
|
|
1302
|
+
flex-wrap: wrap;
|
|
1303
|
+
gap: 4px;
|
|
1304
|
+
margin-bottom: 4px;
|
|
1305
|
+
align-items: center;
|
|
1262
1306
|
}._table-actions_1xz9a_1, ._table-action_1xz9a_1 {
|
|
1263
1307
|
display: flex;
|
|
1264
1308
|
flex-direction: row;
|
|
@@ -1268,24 +1312,24 @@
|
|
|
1268
1312
|
._table-actions_1xz9a_1 {
|
|
1269
1313
|
margin-bottom: 0.5em;
|
|
1270
1314
|
gap: 1em;
|
|
1271
|
-
}.
|
|
1315
|
+
}._lithology_1w24u_1 {
|
|
1272
1316
|
font-weight: bold;
|
|
1273
1317
|
display: inline-block;
|
|
1274
1318
|
padding: 0 0.5em;
|
|
1275
1319
|
border-radius: 0.5em;
|
|
1276
1320
|
}
|
|
1277
1321
|
|
|
1278
|
-
._inline-
|
|
1322
|
+
._inline-lithology_1w24u_8 ._lithology_1w24u_1 {
|
|
1279
1323
|
line-height: 1em;
|
|
1280
1324
|
}
|
|
1281
1325
|
|
|
1282
|
-
._basis-
|
|
1326
|
+
._basis-panel_1w24u_12 .bp6-tag {
|
|
1283
1327
|
margin: 0 0.5em 0.5em 0;
|
|
1284
1328
|
}
|
|
1285
|
-
._basis-
|
|
1329
|
+
._basis-panel_1w24u_12 td {
|
|
1286
1330
|
vertical-align: top;
|
|
1287
1331
|
}
|
|
1288
|
-
._basis-
|
|
1332
|
+
._basis-panel_1w24u_12 th {
|
|
1289
1333
|
text-align: left;
|
|
1290
1334
|
font-weight: 400;
|
|
1291
1335
|
font-size: 0.9em;
|
|
@@ -1293,7 +1337,7 @@
|
|
|
1293
1337
|
color: var(--secondary-color);
|
|
1294
1338
|
}
|
|
1295
1339
|
|
|
1296
|
-
._basis-
|
|
1340
|
+
._basis-panel_1w24u_12, ._long-text_1w24u_26 {
|
|
1297
1341
|
max-width: 20em;
|
|
1298
1342
|
padding: 8px;
|
|
1299
1343
|
max-height: 30em;
|
|
@@ -1301,32 +1345,126 @@
|
|
|
1301
1345
|
pointer-events: all;
|
|
1302
1346
|
}
|
|
1303
1347
|
|
|
1304
|
-
.
|
|
1348
|
+
._description_1w24u_34 {
|
|
1305
1349
|
font-style: italic;
|
|
1306
1350
|
}
|
|
1307
1351
|
|
|
1308
|
-
._tag-
|
|
1352
|
+
._tag-header_1w24u_38 {
|
|
1309
1353
|
font-weight: bold;
|
|
1310
1354
|
text-transform: small-caps;
|
|
1311
1355
|
font-size: 0.8em;
|
|
1312
1356
|
color: var(--secondary-color);
|
|
1313
1357
|
}
|
|
1314
1358
|
|
|
1315
|
-
._basis-
|
|
1359
|
+
._basis-col_1w24u_45 {
|
|
1316
1360
|
max-width: 15em;
|
|
1317
1361
|
}
|
|
1318
1362
|
|
|
1319
|
-
.
|
|
1363
|
+
._liths_1w24u_49 > * {
|
|
1320
1364
|
margin-right: 0.5em;
|
|
1321
1365
|
}
|
|
1322
1366
|
|
|
1323
|
-
._data-sheet-
|
|
1367
|
+
._data-sheet-outer_1w24u_53 {
|
|
1324
1368
|
position: relative;
|
|
1325
1369
|
flex: 1;
|
|
1326
1370
|
display: flex;
|
|
1371
|
+
flex-direction: column;
|
|
1327
1372
|
min-height: 0;
|
|
1328
1373
|
}
|
|
1329
1374
|
|
|
1330
|
-
.
|
|
1375
|
+
._toolbar_1w24u_61, ._info-bar_1w24u_61, ._server-filter-bar_1w24u_61 {
|
|
1376
|
+
display: flex;
|
|
1377
|
+
flex-direction: row;
|
|
1378
|
+
flex-wrap: wrap;
|
|
1379
|
+
gap: var(--data-sheet-toolbar-gap, 4px);
|
|
1380
|
+
padding: var(--data-sheet-toolbar-gap, 4px) 0;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
._info-bar_1w24u_61 {
|
|
1384
|
+
order: 10;
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
._tag-cell-content_1w24u_73 {
|
|
1331
1388
|
line-height: 1;
|
|
1389
|
+
}._column-header-cell_it1ds_1 {
|
|
1390
|
+
display: flex;
|
|
1391
|
+
align-items: center;
|
|
1392
|
+
width: 100%;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
._column-name_it1ds_7 {
|
|
1396
|
+
flex: 1;
|
|
1397
|
+
overflow: hidden;
|
|
1398
|
+
text-overflow: ellipsis;
|
|
1399
|
+
white-space: nowrap;
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
._column-indicators_it1ds_14 {
|
|
1403
|
+
display: flex;
|
|
1404
|
+
align-items: center;
|
|
1405
|
+
gap: 2px;
|
|
1406
|
+
margin-left: 4px;
|
|
1407
|
+
flex-shrink: 0;
|
|
1408
|
+
}
|
|
1409
|
+
._column-indicators_it1ds_14 .bp6-icon {
|
|
1410
|
+
opacity: 0.7;
|
|
1411
|
+
color: var(--text-color);
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
._sort-indicator_it1ds_26 .bp6-icon {
|
|
1415
|
+
color: var(--intent-primary, #2965cc);
|
|
1416
|
+
opacity: 1;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
._filter-indicator_it1ds_31 .bp6-icon {
|
|
1420
|
+
color: var(--intent-warning, #d99e0b);
|
|
1421
|
+
opacity: 1;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
._column-actions-popover_it1ds_36 {
|
|
1425
|
+
padding: 12px;
|
|
1426
|
+
min-width: 220px;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
._popover-section_it1ds_41 {
|
|
1430
|
+
margin-bottom: 12px;
|
|
1431
|
+
}
|
|
1432
|
+
._popover-section_it1ds_41:last-child {
|
|
1433
|
+
margin-bottom: 0;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
._popover-section-title_it1ds_48 {
|
|
1437
|
+
font-weight: 600;
|
|
1438
|
+
font-size: 11px;
|
|
1439
|
+
text-transform: uppercase;
|
|
1440
|
+
letter-spacing: 0.5px;
|
|
1441
|
+
color: var(--secondary-color, #5c7080);
|
|
1442
|
+
margin-bottom: 6px;
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
._sort-buttons_it1ds_57 {
|
|
1446
|
+
display: flex;
|
|
1447
|
+
gap: 4px;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
._filter-row_it1ds_62 {
|
|
1451
|
+
display: flex;
|
|
1452
|
+
gap: 4px;
|
|
1453
|
+
align-items: center;
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
._filter-operator-select_it1ds_68 {
|
|
1457
|
+
flex-shrink: 0;
|
|
1458
|
+
width: 80px;
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
._filter-value-input_it1ds_73 {
|
|
1462
|
+
flex: 1;
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
._clear-section_it1ds_77 {
|
|
1466
|
+
display: flex;
|
|
1467
|
+
justify-content: flex-end;
|
|
1468
|
+
padding-top: 4px;
|
|
1469
|
+
border-top: 1px solid var(--divider-color, rgba(16, 22, 26, 0.15));
|
|
1332
1470
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -4,16 +4,22 @@ const core = require("./core.cjs");
|
|
|
4
4
|
const index = require("./postgrest-table/index.cjs");
|
|
5
5
|
const provider = require("./provider.cjs");
|
|
6
6
|
const index$1 = require("./utils/index.cjs");
|
|
7
|
+
const types = require("./types.cjs");
|
|
7
8
|
const table = require("@blueprintjs/table");
|
|
9
|
+
const toolbar = require("./actions/toolbar.cjs");
|
|
8
10
|
const colors = require("./components/colors.cjs");
|
|
9
11
|
const actions = require("./components/actions.cjs");
|
|
10
12
|
const textAreas = require("./components/text-areas.cjs");
|
|
11
13
|
const editorPopup = require("./components/editor-popup.cjs");
|
|
14
|
+
const filters = require("./actions/filters.cjs");
|
|
15
|
+
const viewInfo = require("./components/view-info.cjs");
|
|
16
|
+
const clipboard = require("./actions/clipboard.cjs");
|
|
12
17
|
const lazyLoaderTable = require("./postgrest-table/lazy-loader-table.cjs");
|
|
13
|
-
const
|
|
18
|
+
const builtin = require("./actions/builtin.cjs");
|
|
19
|
+
const dataLoaders = require("./postgrest-table/data-loaders.cjs");
|
|
20
|
+
const selection = require("./actions/selection.cjs");
|
|
14
21
|
const keyHandling = require("./utils/key-handling.cjs");
|
|
15
22
|
const columnSpec = require("./utils/column-spec.cjs");
|
|
16
|
-
const dataLoaders = require("./postgrest-table/data-loaders.cjs");
|
|
17
23
|
exports.DataSheet = core.DataSheet;
|
|
18
24
|
exports.DataSheetDensity = core.DataSheetDensity;
|
|
19
25
|
exports.ScrollToRowControl = core.ScrollToRowControl;
|
|
@@ -28,18 +34,22 @@ exports.notifyOnError = index.notifyOnError;
|
|
|
28
34
|
exports.wrapWithErrorHandling = index.wrapWithErrorHandling;
|
|
29
35
|
exports.DataSheetProvider = provider.DataSheetProvider;
|
|
30
36
|
exports.DataSheetProviderInner = provider.DataSheetProviderInner;
|
|
37
|
+
exports.columnSpecAtom = provider.columnSpecAtom;
|
|
38
|
+
exports.ctx = provider.ctx;
|
|
31
39
|
exports.storeAPIAtom = provider.storeAPIAtom;
|
|
32
40
|
exports.storeAtom = provider.storeAtom;
|
|
33
|
-
exports.
|
|
34
|
-
exports.
|
|
41
|
+
exports.tableActionsAtom = provider.tableActionsAtom;
|
|
42
|
+
exports.tableDataAtom = provider.tableDataAtom;
|
|
35
43
|
exports.useSelector = provider.useSelector;
|
|
36
|
-
exports.useSetAtom = provider.useSetAtom;
|
|
37
44
|
exports.useStoreAPI = provider.useStoreAPI;
|
|
38
45
|
exports.range = index$1.range;
|
|
46
|
+
exports.TableElementStatus = types.TableElementStatus;
|
|
39
47
|
Object.defineProperty(exports, "Cell", {
|
|
40
48
|
enumerable: true,
|
|
41
49
|
get: () => table.Cell
|
|
42
50
|
});
|
|
51
|
+
exports.ActionsToolbar = toolbar.ActionsToolbar;
|
|
52
|
+
exports.runActionWrapper = toolbar.runActionWrapper;
|
|
43
53
|
exports.ColorCell = colors.ColorCell;
|
|
44
54
|
exports.ColorPicker = colors.ColorPicker;
|
|
45
55
|
exports.colorSwatchRenderer = colors.colorSwatchRenderer;
|
|
@@ -47,17 +57,37 @@ exports.DataSheetAction = actions.DataSheetAction;
|
|
|
47
57
|
exports.DataSheetActionsRow = actions.DataSheetActionsRow;
|
|
48
58
|
exports.EditableTextArea = textAreas.EditableTextArea;
|
|
49
59
|
exports.EditorPopup = editorPopup.EditorPopup;
|
|
60
|
+
exports.FilterBar = filters.FilterBar;
|
|
61
|
+
exports.InfoBar = viewInfo.InfoBar;
|
|
62
|
+
exports.PasteShape = clipboard.PasteShape;
|
|
63
|
+
exports.clipboardActions = clipboard.clipboardActions;
|
|
64
|
+
exports.copyAction = clipboard.copyAction;
|
|
65
|
+
exports.cutAction = clipboard.cutAction;
|
|
66
|
+
exports.pasteAction = clipboard.pasteAction;
|
|
67
|
+
exports.serializeSelectionToTSV = clipboard.serializeSelectionToTSV;
|
|
50
68
|
exports.TestLazyLoaderTableView = lazyLoaderTable.TestLazyLoaderTableView;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
69
|
+
exports.addRowAction = builtin.addRowAction;
|
|
70
|
+
exports.defaultTableActions = builtin.defaultTableActions;
|
|
71
|
+
exports.deleteRowsAction = builtin.deleteRowsAction;
|
|
72
|
+
exports.resetChangesAction = builtin.resetChangesAction;
|
|
73
|
+
exports.applyColumnFilters = dataLoaders.applyColumnFilters;
|
|
74
|
+
exports.standardizeFilter = dataLoaders.standardizeFilter;
|
|
75
|
+
exports.usePostgRESTLazyLoader = dataLoaders.usePostgRESTLazyLoader;
|
|
76
|
+
exports.useScrollHandler = dataLoaders.useScrollHandler;
|
|
77
|
+
exports.useTestLazyLoader = dataLoaders.useTestLazyLoader;
|
|
78
|
+
exports.viewInfoAtom = dataLoaders.viewInfoAtom;
|
|
79
|
+
exports.buildActionContext = selection.buildActionContext;
|
|
80
|
+
exports.collectAllFilters = selection.collectAllFilters;
|
|
81
|
+
exports.computeFilteredRowIndices = selection.computeFilteredRowIndices;
|
|
82
|
+
exports.computeTransformedRowIndices = selection.computeTransformedRowIndices;
|
|
83
|
+
exports.getApplicableActions = selection.getApplicableActions;
|
|
84
|
+
exports.getSelectedColumnKeys = selection.getSelectedColumnKeys;
|
|
85
|
+
exports.getSelectedRowIndices = selection.getSelectedRowIndices;
|
|
86
|
+
exports.getSelectionCardinality = selection.getSelectionCardinality;
|
|
87
|
+
exports.mergeColumnActions = selection.mergeColumnActions;
|
|
55
88
|
exports.editorKeyHandlerAtom = keyHandling.editorKeyHandlerAtom;
|
|
56
89
|
exports.multiLineTextKeyHandler = keyHandling.multiLineTextKeyHandler;
|
|
57
|
-
exports.
|
|
58
|
-
exports.tableKeyHandlerAtom = keyHandling.tableKeyHandlerAtom;
|
|
90
|
+
exports.tableHotkeysAtom = keyHandling.tableHotkeysAtom;
|
|
59
91
|
exports.generateColumnSpec = columnSpec.generateColumnSpec;
|
|
60
92
|
exports.generateDefaultColumnSpec = columnSpec.generateDefaultColumnSpec;
|
|
61
|
-
exports.usePostgRESTLazyLoader = dataLoaders.usePostgRESTLazyLoader;
|
|
62
|
-
exports.useTestLazyLoader = dataLoaders.useTestLazyLoader;
|
|
63
93
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
import { DataSheet, DataSheetDensity, ScrollToRowControl, getRowsToDelete } from "./core.js";
|
|
2
2
|
import { ExpandedLithologies, IntervalCell, LongTextViewer, PostgRESTTableView, SearchAction, lithologyRenderer, notifyOnError, wrapWithErrorHandling } from "./postgrest-table/index.js";
|
|
3
|
-
import { DataSheetProvider, DataSheetProviderInner, storeAPIAtom, storeAtom,
|
|
3
|
+
import { DataSheetProvider, DataSheetProviderInner, columnSpecAtom, ctx, storeAPIAtom, storeAtom, tableActionsAtom, tableDataAtom, useSelector, useStoreAPI } from "./provider.js";
|
|
4
4
|
import { range } from "./utils/index.js";
|
|
5
|
+
import { TableElementStatus } from "./types.js";
|
|
5
6
|
import { Cell } from "@blueprintjs/table";
|
|
7
|
+
import { ActionsToolbar, runActionWrapper } from "./actions/toolbar.js";
|
|
6
8
|
import { ColorCell, ColorPicker, colorSwatchRenderer } from "./components/colors.js";
|
|
7
9
|
import { DataSheetAction, DataSheetActionsRow } from "./components/actions.js";
|
|
8
10
|
import { EditableTextArea } from "./components/text-areas.js";
|
|
9
11
|
import { EditorPopup } from "./components/editor-popup.js";
|
|
12
|
+
import { FilterBar } from "./actions/filters.js";
|
|
13
|
+
import { InfoBar } from "./components/view-info.js";
|
|
14
|
+
import { PasteShape, clipboardActions, copyAction, cutAction, pasteAction, serializeSelectionToTSV } from "./actions/clipboard.js";
|
|
10
15
|
import { TestLazyLoaderTableView } from "./postgrest-table/lazy-loader-table.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
16
|
+
import { addRowAction, defaultTableActions, deleteRowsAction, resetChangesAction } from "./actions/builtin.js";
|
|
17
|
+
import { applyColumnFilters, standardizeFilter, usePostgRESTLazyLoader, useScrollHandler, useTestLazyLoader, viewInfoAtom } from "./postgrest-table/data-loaders.js";
|
|
18
|
+
import { buildActionContext, collectAllFilters, computeFilteredRowIndices, computeTransformedRowIndices, getApplicableActions, getSelectedColumnKeys, getSelectedRowIndices, getSelectionCardinality, mergeColumnActions } from "./actions/selection.js";
|
|
19
|
+
import { editorKeyHandlerAtom, multiLineTextKeyHandler, tableHotkeysAtom } from "./utils/key-handling.js";
|
|
13
20
|
import { generateColumnSpec, generateDefaultColumnSpec } from "./utils/column-spec.js";
|
|
14
|
-
import { usePostgRESTLazyLoader, useTestLazyLoader } from "./postgrest-table/data-loaders.js";
|
|
15
21
|
export {
|
|
22
|
+
ActionsToolbar,
|
|
16
23
|
Cell,
|
|
17
24
|
ColorCell,
|
|
18
25
|
ColorPicker,
|
|
@@ -25,33 +32,59 @@ export {
|
|
|
25
32
|
EditableTextArea,
|
|
26
33
|
EditorPopup,
|
|
27
34
|
ExpandedLithologies,
|
|
35
|
+
FilterBar,
|
|
36
|
+
InfoBar,
|
|
28
37
|
IntervalCell,
|
|
29
38
|
LongTextViewer,
|
|
39
|
+
PasteShape,
|
|
30
40
|
PostgRESTTableView,
|
|
31
41
|
ScrollToRowControl,
|
|
32
42
|
SearchAction,
|
|
43
|
+
TableElementStatus,
|
|
33
44
|
TestLazyLoaderTableView,
|
|
34
|
-
|
|
45
|
+
addRowAction,
|
|
46
|
+
applyColumnFilters,
|
|
47
|
+
buildActionContext,
|
|
48
|
+
clipboardActions,
|
|
49
|
+
collectAllFilters,
|
|
35
50
|
colorSwatchRenderer,
|
|
51
|
+
columnSpecAtom,
|
|
52
|
+
computeFilteredRowIndices,
|
|
53
|
+
computeTransformedRowIndices,
|
|
54
|
+
copyAction,
|
|
55
|
+
ctx,
|
|
56
|
+
cutAction,
|
|
57
|
+
defaultTableActions,
|
|
58
|
+
deleteRowsAction,
|
|
36
59
|
editorKeyHandlerAtom,
|
|
37
60
|
generateColumnSpec,
|
|
38
61
|
generateDefaultColumnSpec,
|
|
62
|
+
getApplicableActions,
|
|
39
63
|
getRowsToDelete,
|
|
64
|
+
getSelectedColumnKeys,
|
|
65
|
+
getSelectedRowIndices,
|
|
66
|
+
getSelectionCardinality,
|
|
40
67
|
lithologyRenderer,
|
|
68
|
+
mergeColumnActions,
|
|
41
69
|
multiLineTextKeyHandler,
|
|
42
70
|
notifyOnError,
|
|
71
|
+
pasteAction,
|
|
43
72
|
range,
|
|
73
|
+
resetChangesAction,
|
|
74
|
+
runActionWrapper,
|
|
75
|
+
serializeSelectionToTSV,
|
|
76
|
+
standardizeFilter,
|
|
44
77
|
storeAPIAtom,
|
|
45
78
|
storeAtom,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
useAtomValue,
|
|
79
|
+
tableActionsAtom,
|
|
80
|
+
tableDataAtom,
|
|
81
|
+
tableHotkeysAtom,
|
|
50
82
|
usePostgRESTLazyLoader,
|
|
83
|
+
useScrollHandler,
|
|
51
84
|
useSelector,
|
|
52
|
-
useSetAtom,
|
|
53
85
|
useStoreAPI,
|
|
54
86
|
useTestLazyLoader,
|
|
87
|
+
viewInfoAtom,
|
|
55
88
|
wrapWithErrorHandling
|
|
56
89
|
};
|
|
57
90
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const h$1 = require("@macrostrat/hyper");
|
|
4
4
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
5
|
-
const
|
|
6
|
-
const spacer = "
|
|
5
|
+
const h__default = /* @__PURE__ */ _interopDefault(h$1);
|
|
6
|
+
const spacer = "_spacer_11hm8_103";
|
|
7
7
|
const styles = {
|
|
8
|
-
"data-sheet-container": "_data-sheet-
|
|
9
|
-
"data-sheet-holder": "_data-sheet-
|
|
10
|
-
"data-sheet": "_data-
|
|
11
|
-
"input-cell": "_input-
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
8
|
+
"data-sheet-container": "_data-sheet-container_11hm8_1",
|
|
9
|
+
"data-sheet-holder": "_data-sheet-holder_11hm8_1",
|
|
10
|
+
"data-sheet": "_data-sheet_11hm8_1",
|
|
11
|
+
"input-cell": "_input-cell_11hm8_41",
|
|
12
|
+
"value-viewer-cell": "_value-viewer-cell_11hm8_58",
|
|
13
|
+
"editor-cell": "_editor-cell_11hm8_66",
|
|
14
|
+
"hidden-input": "_hidden-input_11hm8_74",
|
|
15
|
+
"data-editor-anchor": "_data-editor-anchor_11hm8_80",
|
|
16
|
+
"corner-drag-handle": "_corner-drag-handle_11hm8_87",
|
|
17
|
+
"data-sheet-toolbar": "_data-sheet-toolbar_11hm8_97",
|
|
17
18
|
spacer,
|
|
18
|
-
"table-control": "_table-
|
|
19
|
+
"table-control": "_table-control_11hm8_107"
|
|
19
20
|
};
|
|
20
|
-
let h =
|
|
21
|
+
let h = h__default.default.styled(styles);
|
|
21
22
|
Object.assign(h, styles);
|
|
22
23
|
exports.default = h;
|
|
23
24
|
exports.spacer = spacer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.module.sass.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.module.sass.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
|