@macrostrat/data-sheet 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +19 -0
- package/dist/actions.5740e8e2.js +21 -0
- package/dist/actions.5740e8e2.js.map +1 -0
- package/dist/actions.module.6ec06797.css +11 -0
- package/dist/actions.module.6ec06797.css.map +1 -0
- package/dist/actions.module.ea96403b.js +16 -0
- package/dist/actions.module.ea96403b.js.map +1 -0
- package/dist/cell-renderers.de70f471.js +31 -0
- package/dist/cell-renderers.de70f471.js.map +1 -0
- package/dist/colors.41c3ed7a.js +83 -0
- package/dist/colors.41c3ed7a.js.map +1 -0
- package/dist/column-spec.4710da93.js +70 -0
- package/dist/column-spec.4710da93.js.map +1 -0
- package/dist/components.c3ad66e9.js +11 -0
- package/dist/components.c3ad66e9.js.map +1 -0
- package/dist/core.d8d80480.js +356 -0
- package/dist/core.d8d80480.js.map +1 -0
- package/dist/data-loaders.5302dedd.js +196 -0
- package/dist/data-loaders.5302dedd.js.map +1 -0
- package/dist/editor-popup.9259608f.js +68 -0
- package/dist/editor-popup.9259608f.js.map +1 -0
- package/dist/index.d.ts +202 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/main.module.846377cd.css +35 -0
- package/dist/main.module.846377cd.css.map +1 -0
- package/dist/main.module.914caa19.css +91 -0
- package/dist/main.module.914caa19.css.map +1 -0
- package/dist/main.module.93f91ad4.js +25 -0
- package/dist/main.module.93f91ad4.js.map +1 -0
- package/dist/main.module.dc8f6293.css +62 -0
- package/dist/main.module.dc8f6293.css.map +1 -0
- package/dist/main.module.de002429.js +43 -0
- package/dist/main.module.de002429.js.map +1 -0
- package/dist/main.module.ff717a08.js +37 -0
- package/dist/main.module.ff717a08.js.map +1 -0
- package/dist/postgrest-table.15ded3c1.js +173 -0
- package/dist/postgrest-table.15ded3c1.js.map +1 -0
- package/dist/provider.67e982b8.js +232 -0
- package/dist/provider.67e982b8.js.map +1 -0
- package/dist/text-areas.079e8b15.js +78 -0
- package/dist/text-areas.079e8b15.js.map +1 -0
- package/dist/utils.a37ed786.js +14 -0
- package/dist/utils.a37ed786.js.map +1 -0
- package/package.json +50 -0
- package/src/__archive/base.ts +55 -0
- package/src/__archive/components/column-utils.ts +126 -0
- package/src/__archive/components/index.ts +115 -0
- package/src/__archive/components/toolbar.ts +79 -0
- package/src/__archive/editors/index.ts +78 -0
- package/src/__archive/editors/styles.module.scss +10 -0
- package/src/__archive/enhancers.ts +36 -0
- package/src/__archive/index.ts +8 -0
- package/src/__archive/main.ts +180 -0
- package/src/__archive/provider.ts +179 -0
- package/src/__archive/styles.module.scss +56 -0
- package/src/__archive/test-sheet/attitude-sheet.old.styl +53 -0
- package/src/__archive/test-sheet/attitude-sheet.scss +60 -0
- package/src/__archive/test-sheet/index.ts +210 -0
- package/src/__archive/virtualized.ts +82 -0
- package/src/components/actions.module.sass +8 -0
- package/src/components/actions.ts +11 -0
- package/src/components/colors.ts +90 -0
- package/src/components/editor-popup.ts +69 -0
- package/src/components/index.ts +3 -0
- package/src/components/main.module.sass +35 -0
- package/src/components/text-areas.ts +88 -0
- package/src/core.ts +481 -0
- package/src/index.ts +2 -0
- package/src/main.module.sass +77 -0
- package/src/postgrest-table/cell-renderers.ts +24 -0
- package/src/postgrest-table/data-loaders.ts +287 -0
- package/src/postgrest-table/index.ts +172 -0
- package/src/postgrest-table/main.module.sass +52 -0
- package/src/provider.ts +282 -0
- package/src/utils/column-spec.ts +97 -0
- package/src/utils/index.ts +7 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import $aKJXJ$mainmodule93f91ad4js from "./main.module.93f91ad4.js";
|
|
2
|
+
import "./main.module.846377cd.css";
|
|
3
|
+
import $aKJXJ$macrostrathyper from "@macrostrat/hyper";
|
|
4
|
+
import {ErrorBoundary as $aKJXJ$ErrorBoundary} from "@macrostrat/ui-components";
|
|
5
|
+
import {Popover as $aKJXJ$Popover} from "@blueprintjs/core";
|
|
6
|
+
import {useState as $aKJXJ$useState, useRef as $aKJXJ$useRef} from "react";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
function $parcel$interopDefault(a) {
|
|
10
|
+
return a && a.__esModule ? a.default : a;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
const $88e63ff6e4eea209$var$h = (0, $aKJXJ$macrostrathyper).styled((0, ($parcel$interopDefault($aKJXJ$mainmodule93f91ad4js))));
|
|
18
|
+
function $88e63ff6e4eea209$export$2a7e60c8443c1751(props) {
|
|
19
|
+
const { children: children, content: content, targetClassName: targetClassName, autoFocus: autoFocus, valueViewer: valueViewer, inlineEditor: inlineEditor } = props;
|
|
20
|
+
const [isOpen, setIsOpen] = (0, $aKJXJ$useState)(autoFocus);
|
|
21
|
+
const ref = (0, $aKJXJ$useRef)(null);
|
|
22
|
+
return $88e63ff6e4eea209$var$h((0, $aKJXJ$Popover), {
|
|
23
|
+
content: $88e63ff6e4eea209$var$h("div.interaction-barrier", {
|
|
24
|
+
onMouseDown (evt) {
|
|
25
|
+
evt.nativeEvent.stopImmediatePropagation();
|
|
26
|
+
},
|
|
27
|
+
onKeyDown (evt) {
|
|
28
|
+
if (evt.key === "Escape") {
|
|
29
|
+
setIsOpen(false);
|
|
30
|
+
evt.preventDefault();
|
|
31
|
+
}
|
|
32
|
+
// Climb over the interaction barrier to propagate the key event to the table
|
|
33
|
+
ref.current.dispatchEvent(new KeyboardEvent("keydown", evt));
|
|
34
|
+
}
|
|
35
|
+
}, $88e63ff6e4eea209$var$h((0, $aKJXJ$ErrorBoundary), null, content)),
|
|
36
|
+
enforceFocus: false,
|
|
37
|
+
autoFocus: false,
|
|
38
|
+
minimal: true,
|
|
39
|
+
modifiers: {
|
|
40
|
+
offset: {
|
|
41
|
+
enabled: true,
|
|
42
|
+
options: {
|
|
43
|
+
offset: [
|
|
44
|
+
0,
|
|
45
|
+
8
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
interactionKind: "hover-target",
|
|
51
|
+
isOpen: isOpen,
|
|
52
|
+
onClose (evt) {
|
|
53
|
+
//props.onKeyDown?.(evt);
|
|
54
|
+
//setIsOpen(false);
|
|
55
|
+
},
|
|
56
|
+
// Portal must be used to avoid issues with the editor being clipped to the bounds of the cell
|
|
57
|
+
usePortal: true
|
|
58
|
+
}, $88e63ff6e4eea209$var$h("span.editor-popup-target", {
|
|
59
|
+
className: targetClassName,
|
|
60
|
+
onClick: ()=>setIsOpen(!isOpen),
|
|
61
|
+
ref: ref
|
|
62
|
+
}, // If the editor is open, show the inline editor, otherwise show the value viewer
|
|
63
|
+
isOpen ? valueViewer : inlineEditor ?? valueViewer));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
export {$88e63ff6e4eea209$export$2a7e60c8443c1751 as EditorPopup};
|
|
68
|
+
//# sourceMappingURL=editor-popup.9259608f.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;AAMA,MAAM,0BAAI,CAAA,GAAA,sBAAI,EAAE,MAAM,CAAC,CAAA,GAAA,sEAAK;AAErB,SAAS,0CAAY,KAAK;IAC/B,MAAM,YACJ,QAAQ,WACR,OAAO,mBACP,eAAe,aACf,SAAS,eACT,WAAW,gBACX,YAAY,EACb,GAAG;IAEJ,MAAM,CAAC,QAAQ,UAAU,GAAG,CAAA,GAAA,eAAO,EAAE;IAErC,MAAM,MAAM,CAAA,GAAA,aAAK,EAAE;IAEnB,OAAO,wBACL,CAAA,GAAA,cAAM,GACN;QACE,SAAS,wBACP,2BACA;YACE,aAAY,GAAG;gBACb,IAAI,WAAW,CAAC,wBAAwB;YAC1C;YACA,WAAU,GAAG;gBACX,IAAI,IAAI,GAAG,KAAK,UAAU;oBACxB,UAAU;oBACV,IAAI,cAAc;gBACpB;gBACA,6EAA6E;gBAC7E,IAAI,OAAO,CAAC,aAAa,CAAC,IAAI,cAAc,WAAW;YACzD;QACF,GACA,wBAAE,CAAA,GAAA,oBAAY,GAAG,MAAM;QAEzB,cAAc;QACd,WAAW;QACX,SAAS;QACT,WAAW;YACT,QAAQ;gBAAE,SAAS;gBAAM,SAAS;oBAAE,QAAQ;wBAAC;wBAAG;qBAAE;gBAAC;YAAE;QACvD;QACA,iBAAiB;gBACjB;QACA,SAAQ,GAAG;QACT,yBAAyB;QACzB,mBAAmB;QACrB;QACA,8FAA8F;QAC9F,WAAW;IACb,GACA,wBACE,4BACA;QACE,WAAW;QACX,SAAS,IAAM,UAAU,CAAC;aAC1B;IACF,GACA,iFAAiF;IACjF,SAAS,cAAc,gBAAgB;AAG7C","sources":["packages/data-sheet/src/components/editor-popup.ts"],"sourcesContent":["import hyper from \"@macrostrat/hyper\";\nimport { ErrorBoundary } from \"@macrostrat/ui-components\";\nimport { Popover } from \"@blueprintjs/core\";\nimport styles from \"./main.module.sass\";\nimport { useRef, useState } from \"react\";\n\nconst h = hyper.styled(styles);\n\nexport function EditorPopup(props) {\n const {\n children,\n content,\n targetClassName,\n autoFocus,\n valueViewer,\n inlineEditor,\n } = props;\n\n const [isOpen, setIsOpen] = useState(autoFocus);\n\n const ref = useRef(null);\n\n return h(\n Popover,\n {\n content: h(\n \"div.interaction-barrier\",\n {\n onMouseDown(evt) {\n evt.nativeEvent.stopImmediatePropagation();\n },\n onKeyDown(evt) {\n if (evt.key === \"Escape\") {\n setIsOpen(false);\n evt.preventDefault();\n }\n // Climb over the interaction barrier to propagate the key event to the table\n ref.current.dispatchEvent(new KeyboardEvent(\"keydown\", evt));\n },\n },\n h(ErrorBoundary, null, content)\n ),\n enforceFocus: false,\n autoFocus: false,\n minimal: true,\n modifiers: {\n offset: { enabled: true, options: { offset: [0, 8] } },\n },\n interactionKind: \"hover-target\",\n isOpen,\n onClose(evt) {\n //props.onKeyDown?.(evt);\n //setIsOpen(false);\n },\n // Portal must be used to avoid issues with the editor being clipped to the bounds of the cell\n usePortal: true,\n },\n h(\n \"span.editor-popup-target\",\n {\n className: targetClassName,\n onClick: () => setIsOpen(!isOpen),\n ref,\n },\n // If the editor is open, show the inline editor, otherwise show the value viewer\n isOpen ? valueViewer : inlineEditor ?? valueViewer\n )\n );\n}\n"],"names":[],"version":3,"file":"editor-popup.9259608f.js.map"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import React, { Component, ReactNode, ComponentElement, KeyboardEvent, MutableRefObject, DOMElement, DOMAttributes, PropsWithChildren, FunctionComponentElement, Dispatch } from "react";
|
|
2
|
+
import { Popover, DefaultPopoverTargetHTMLProps, PopoverProps, HotkeysProviderProps } from "@blueprintjs/core";
|
|
3
|
+
import { Cell as _Cell1, CellProps, Cell, Region } from "@blueprintjs/table";
|
|
4
|
+
import { Spec } from "immutability-helper";
|
|
5
|
+
import { PostgrestQueryBuilder } from "@supabase/postgrest-js";
|
|
6
|
+
import { Cancelable } from "underscore";
|
|
7
|
+
declare namespace InfiniteScrollView {
|
|
8
|
+
var defaultProps: {
|
|
9
|
+
hasMore(res: any): boolean;
|
|
10
|
+
getItems(d: any): any;
|
|
11
|
+
getCount(d: any): any;
|
|
12
|
+
getNextParams(response: any, params: any): any;
|
|
13
|
+
placeholder: (p: APIPlaceholderProps) => React.ComponentElement<$$parcel$import$202<HTMLElement>, Spinner>;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
type ErrorBoundaryProps = {
|
|
17
|
+
description?: string;
|
|
18
|
+
title?: string;
|
|
19
|
+
fallback?: ReactNode;
|
|
20
|
+
override?: boolean;
|
|
21
|
+
onCatch?(error: Error, info: any): void;
|
|
22
|
+
};
|
|
23
|
+
type ErrorBoundaryState = {
|
|
24
|
+
error: Error | null;
|
|
25
|
+
};
|
|
26
|
+
declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
27
|
+
constructor(props: any);
|
|
28
|
+
static getDerivedStateFromError(error: any): {
|
|
29
|
+
error: any;
|
|
30
|
+
};
|
|
31
|
+
componentDidCatch(error: any, info: any): void;
|
|
32
|
+
render(): any;
|
|
33
|
+
}
|
|
34
|
+
declare namespace ThreeColumnLayout {
|
|
35
|
+
var Panels: typeof SidePanel;
|
|
36
|
+
}
|
|
37
|
+
export function EditorPopup(props: any): ComponentElement<PopoverProps<DefaultPopoverTargetHTMLProps>, Popover<DefaultPopoverTargetHTMLProps>>;
|
|
38
|
+
export function ColorCell({ value, children, style, intent, ...rest }: {
|
|
39
|
+
[x: string]: any;
|
|
40
|
+
value: any;
|
|
41
|
+
children: any;
|
|
42
|
+
style: any;
|
|
43
|
+
intent: any;
|
|
44
|
+
}): ComponentElement<CellProps, _Cell1>;
|
|
45
|
+
export function pleasantCombination(color: any, { luminance, backgroundAlpha, darkMode }?: {
|
|
46
|
+
luminance?: any;
|
|
47
|
+
backgroundAlpha?: number;
|
|
48
|
+
darkMode?: boolean;
|
|
49
|
+
}): {
|
|
50
|
+
color?: undefined;
|
|
51
|
+
backgroundColor?: undefined;
|
|
52
|
+
} | {
|
|
53
|
+
color: any;
|
|
54
|
+
backgroundColor: any;
|
|
55
|
+
};
|
|
56
|
+
enum ColorConversionType {
|
|
57
|
+
HEX = "hex",
|
|
58
|
+
RGB = "rgb",
|
|
59
|
+
HSL = "hsl",
|
|
60
|
+
CSS = "css"
|
|
61
|
+
}
|
|
62
|
+
export function ColorPicker({ value, onChange, type, }: {
|
|
63
|
+
value: any;
|
|
64
|
+
onChange: any;
|
|
65
|
+
type?: ColorConversionType;
|
|
66
|
+
}): DOMElement<{
|
|
67
|
+
onKeyDown(evt: KeyboardEvent<any>): void;
|
|
68
|
+
ref: MutableRefObject<any>;
|
|
69
|
+
tabIndex: number;
|
|
70
|
+
}, any>;
|
|
71
|
+
export function EditableTextArea({ value, onChange }: {
|
|
72
|
+
value: any;
|
|
73
|
+
onChange: any;
|
|
74
|
+
}): DOMElement<DOMAttributes<Element>, Element>;
|
|
75
|
+
export function handleSpecialKeys(evt: any, target: any): boolean;
|
|
76
|
+
export interface ColumnSpec {
|
|
77
|
+
name: string;
|
|
78
|
+
key: string;
|
|
79
|
+
required?: boolean;
|
|
80
|
+
isValid?: (d: any) => boolean;
|
|
81
|
+
transformValue?: (d: any) => any;
|
|
82
|
+
valueRenderer?: (d: any) => string | React.ReactNode;
|
|
83
|
+
dataEditor?: any;
|
|
84
|
+
cellComponent?: any;
|
|
85
|
+
category?: string;
|
|
86
|
+
editable?: boolean;
|
|
87
|
+
inlineEditor?: boolean | React.ComponentType<any> | string | null;
|
|
88
|
+
style?: React.CSSProperties;
|
|
89
|
+
}
|
|
90
|
+
export interface ColumnSpecOptions {
|
|
91
|
+
overrides: Record<string, Partial<ColumnSpec> | string>;
|
|
92
|
+
data?: any[];
|
|
93
|
+
nRows?: number;
|
|
94
|
+
omitColumns?: string[];
|
|
95
|
+
includeColumns?: string[];
|
|
96
|
+
}
|
|
97
|
+
interface DataSheetCoreProps<T> {
|
|
98
|
+
data: T[];
|
|
99
|
+
columnSpec?: ColumnSpec[];
|
|
100
|
+
editable?: boolean;
|
|
101
|
+
enableColumnReordering: boolean;
|
|
102
|
+
}
|
|
103
|
+
type DataSheetProviderProps<T> = DataSheetCoreProps<T> & {
|
|
104
|
+
children: React.ReactNode;
|
|
105
|
+
columnSpecOptions?: ColumnSpecOptions;
|
|
106
|
+
};
|
|
107
|
+
interface VisibleCells {
|
|
108
|
+
rowIndexStart: number;
|
|
109
|
+
rowIndexEnd: number;
|
|
110
|
+
}
|
|
111
|
+
interface DataSheetInternalProps<T> {
|
|
112
|
+
onVisibleCellsChange?: (visibleCells: VisibleCells) => void;
|
|
113
|
+
onSaveData: (updatedData: any[], data: any[]) => void;
|
|
114
|
+
onDeleteRows?: (selection: Region[]) => void;
|
|
115
|
+
verbose?: boolean;
|
|
116
|
+
enableColumnReordering?: boolean;
|
|
117
|
+
dataSheetActions?: ReactNode | null;
|
|
118
|
+
}
|
|
119
|
+
type DataSheetProps<T> = DataSheetProviderProps<T> & DataSheetInternalProps<T>;
|
|
120
|
+
export function DataSheet<T>(props: DataSheetProps<T>): FunctionComponentElement<PropsWithChildren<HotkeysProviderProps>>;
|
|
121
|
+
export function ScrollToRowControl(): FunctionComponentElement<any>;
|
|
122
|
+
export function BaseCell({ children, value, ...rest }: {
|
|
123
|
+
[x: string]: any;
|
|
124
|
+
children: any;
|
|
125
|
+
value: any;
|
|
126
|
+
}): ComponentElement<CellProps, Cell>;
|
|
127
|
+
export { Cell };
|
|
128
|
+
export function getRowsToDelete(selection: any): number[];
|
|
129
|
+
type LazyLoaderAction<T> = {
|
|
130
|
+
type: "start-loading";
|
|
131
|
+
} | {
|
|
132
|
+
type: "loaded";
|
|
133
|
+
data: T[];
|
|
134
|
+
offset: number;
|
|
135
|
+
totalSize: number;
|
|
136
|
+
} | {
|
|
137
|
+
type: "error";
|
|
138
|
+
error: Error;
|
|
139
|
+
} | {
|
|
140
|
+
type: "set-visible";
|
|
141
|
+
region: RowRegion;
|
|
142
|
+
} | {
|
|
143
|
+
type: "update-data";
|
|
144
|
+
changes: Spec<T[]>;
|
|
145
|
+
};
|
|
146
|
+
interface RowRegion {
|
|
147
|
+
rowIndexStart: number;
|
|
148
|
+
rowIndexEnd: number;
|
|
149
|
+
}
|
|
150
|
+
interface QueryConfig {
|
|
151
|
+
columns?: string;
|
|
152
|
+
count?: "exact" | "estimated";
|
|
153
|
+
limit?: number;
|
|
154
|
+
offset?: number;
|
|
155
|
+
order?: {
|
|
156
|
+
key: string;
|
|
157
|
+
ascending: boolean;
|
|
158
|
+
};
|
|
159
|
+
after?: any;
|
|
160
|
+
}
|
|
161
|
+
type LazyLoaderOptions = Omit<QueryConfig, "count" | "offset" | "limit"> & {
|
|
162
|
+
chunkSize?: number;
|
|
163
|
+
sortKey?: string;
|
|
164
|
+
};
|
|
165
|
+
export function usePostgRESTLazyLoader(endpoint: string, table: string, config?: LazyLoaderOptions): {
|
|
166
|
+
data: unknown[];
|
|
167
|
+
loading: boolean;
|
|
168
|
+
onScroll: ((visibleCells: RowRegion) => void) & Cancelable;
|
|
169
|
+
dispatch: Dispatch<LazyLoaderAction<unknown>>;
|
|
170
|
+
client: PostgrestQueryBuilder<any, any, string, unknown>;
|
|
171
|
+
};
|
|
172
|
+
interface PostgRESTTableViewProps<T> extends DataSheetProviderProps<T> {
|
|
173
|
+
endpoint: string;
|
|
174
|
+
table: string;
|
|
175
|
+
columnOptions?: any;
|
|
176
|
+
order?: any;
|
|
177
|
+
columns?: string;
|
|
178
|
+
editable?: boolean;
|
|
179
|
+
}
|
|
180
|
+
export function PostgRESTTableView<T>(props: PostgRESTTableViewProps<T>): ComponentElement<any, ErrorBoundary>;
|
|
181
|
+
export function LongTextViewer({ value, onChange }: {
|
|
182
|
+
value: any;
|
|
183
|
+
onChange: any;
|
|
184
|
+
}): DOMElement<any, Element>;
|
|
185
|
+
export function IntervalCell({ value, children, ...rest }: {
|
|
186
|
+
[x: string]: any;
|
|
187
|
+
value: any;
|
|
188
|
+
children: any;
|
|
189
|
+
}): FunctionComponentElement<{
|
|
190
|
+
[x: string]: any;
|
|
191
|
+
value: any;
|
|
192
|
+
children: any;
|
|
193
|
+
style: any;
|
|
194
|
+
intent: any;
|
|
195
|
+
}>;
|
|
196
|
+
export function lithologyRenderer(value: any): DOMElement<DOMAttributes<Element>, Element>;
|
|
197
|
+
export function ExpandedLithologies({ value, onChange }: {
|
|
198
|
+
value: any;
|
|
199
|
+
onChange: any;
|
|
200
|
+
}): DOMElement<DOMAttributes<Element>, Element>;
|
|
201
|
+
|
|
202
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;kBmByKS,kBAAkB;;;;;;yBA2KR,mBAAmB;;;AkB7TtC,0BAA0B;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ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EAAE,OAAO,CAAA;KAAE,CAAC;IAC5C,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAsFD,yBAAyB,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC,GAAG;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,uCACE,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,MAAM,GAAE,iBAAsB;;;8BA0BJ,SAAS;;;EAgBpC;AC1PD,kCAAkC,CAAC,CAAE,SAAQ,uBAAuB,CAAC,CAAC;IACpE,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,mCAAmC,CAAC,EAAE,KAAK,EAAE,wBAAwB,CAAC,CAAC,wCAEtE;AAqGD,+BAA+B,EAAE,KAAK,EAAE,QAAQ,EAAE;;;CAAA,4BAEjD;AAED,6BAA6B,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE;;;;CAAA;;;;;;GAExD;AAED,kCAAkC,KAAK,KAAA,+CAItC;AAED,oCAAoC,EAAE,KAAK,EAAE,QAAQ,EAAE;;;CAAA,+CAyBtD","sources":["packages/data-sheet/ui-components/src/api/types.ts","packages/data-sheet/ui-components/src/util/query-string.ts","packages/data-sheet/ui-components/src/util/state-hooks.ts","packages/data-sheet/ui-components/src/util/layout-hooks.ts","packages/data-sheet/ui-components/src/util/local-storage.ts","packages/data-sheet/ui-components/src/util/json-view.ts","packages/data-sheet/ui-components/src/util/scroll-helpers.ts","packages/data-sheet/ui-components/src/util/migration-helpers.ts","packages/data-sheet/ui-components/src/util/box-model.ts","packages/data-sheet/ui-components/src/util/event-hooks.ts","packages/data-sheet/ui-components/src/util/flexbox.ts","packages/data-sheet/ui-components/src/util/size-aware-label.ts","packages/data-sheet/ui-components/src/util/index.ts","packages/data-sheet/ui-components/src/api/provider.ts","packages/data-sheet/ui-components/src/api/data-provider.ts","packages/data-sheet/ui-components/src/api/indexing.ts","packages/data-sheet/ui-components/src/api/frontend.ts","packages/data-sheet/ui-components/src/api/paged.ts","packages/data-sheet/ui-components/src/api/index.ts","packages/data-sheet/ui-components/src/infinite-scroll.ts","packages/data-sheet/ui-components/src/buttons/delete-button.ts","packages/data-sheet/ui-components/src/buttons/index.ts","packages/data-sheet/ui-components/src/collapse-panel/index.ts","packages/data-sheet/ui-components/src/link-card.ts","packages/data-sheet/ui-components/src/file-upload/index.ts","packages/data-sheet/ui-components/src/image.ts","packages/data-sheet/ui-components/src/model-editor.ts","packages/data-sheet/ui-components/src/toaster.ts","packages/data-sheet/ui-components/src/citations/author-list.ts","packages/data-sheet/ui-components/src/citations/index.ts","packages/data-sheet/ui-components/src/geodeepdive/reference-card.ts","packages/data-sheet/ui-components/src/geodeepdive/index.ts","packages/data-sheet/ui-components/src/text.ts","packages/data-sheet/ui-components/src/dark-mode.ts","packages/data-sheet/ui-components/src/form-controls/slider.ts","packages/data-sheet/ui-components/src/form-controls/index.ts","packages/data-sheet/ui-components/src/settings/index.ts","packages/data-sheet/ui-components/src/error-boundary.ts","packages/data-sheet/ui-components/src/patterns/composite-image.ts","packages/data-sheet/ui-components/src/patterns/index.ts","packages/data-sheet/ui-components/src/collapse-card.ts","packages/data-sheet/ui-components/src/modal-panel/draggable-overlay.ts","packages/data-sheet/ui-components/src/modal-panel/index.ts","packages/data-sheet/ui-components/src/page-layouts/index.ts","packages/data-sheet/ui-components/src/dev-panel/_inner.ts","packages/data-sheet/ui-components/src/dev-panel/index.ts","packages/data-sheet/ui-components/src/data/index.ts","packages/data-sheet/ui-components/src/index.ts","packages/data-sheet/src/src/components/editor-popup.ts","packages/data-sheet/color-utils/src/index.ts","packages/data-sheet/src/src/components/colors.ts","packages/data-sheet/src/src/components/text-areas.ts","packages/data-sheet/src/src/components/index.ts","packages/data-sheet/src/src/utils/column-spec.ts","packages/data-sheet/src/src/utils/index.ts","packages/data-sheet/src/src/provider.ts","packages/data-sheet/src/src/components/actions.ts","packages/data-sheet/src/src/core.ts","packages/data-sheet/src/src/postgrest-table/cell-renderers.ts","packages/data-sheet/src/src/postgrest-table/data-loaders.ts","packages/data-sheet/src/src/postgrest-table/index.ts","packages/data-sheet/src/src/index.ts","packages/data-sheet/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"export * from \"./core\";\nexport * from \"./postgrest-table\";\n"],"names":[],"version":3,"file":"index.d.ts.map"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import {DataSheet as $8bdde5bf56f8afde$export$dea56b0125f0282d, getRowsToDelete as $8bdde5bf56f8afde$export$222fa1b971ddc36, BaseCell as $8bdde5bf56f8afde$export$41ad0bbfa4755cac, ScrollToRowControl as $8bdde5bf56f8afde$export$e7db3202e96fc463, Cell as $8bdde5bf56f8afde$import$5573889ca4ff9ca2$f6f0c3fe4ec306ea, EditorPopup as $88e63ff6e4eea209$export$2a7e60c8443c1751, ColorCell as $423bf54b4879ebeb$export$24aecfe8a925020d, pleasantCombination as $423bf54b4879ebeb$export$ba6491245befce5c, ColorPicker as $423bf54b4879ebeb$export$9feb1bc2e5f1ccb3, EditableTextArea as $0aa421c11d2af971$export$b8e68c321a6269f1, handleSpecialKeys as $0aa421c11d2af971$export$52c8c5a1aad17e2a} from "./core.d8d80480.js";
|
|
2
|
+
import {PostgRESTTableView as $ea3fc6a8962e0e3d$export$34ce2a614f5dd320, LongTextViewer as $ea3fc6a8962e0e3d$export$85a23c82145eafdb, IntervalCell as $ea3fc6a8962e0e3d$export$8d4d3113a9b124d2, lithologyRenderer as $ea3fc6a8962e0e3d$export$2ad73a796d2d3eb, ExpandedLithologies as $ea3fc6a8962e0e3d$export$5da000845ac52c4f, usePostgRESTLazyLoader as $4c00def725e3d600$export$4dffb9bb65ef8b2} from "./postgrest-table.15ded3c1.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export {$8bdde5bf56f8afde$export$dea56b0125f0282d as DataSheet, $8bdde5bf56f8afde$export$222fa1b971ddc36 as getRowsToDelete, $8bdde5bf56f8afde$export$41ad0bbfa4755cac as BaseCell, $8bdde5bf56f8afde$export$e7db3202e96fc463 as ScrollToRowControl, $8bdde5bf56f8afde$import$5573889ca4ff9ca2$f6f0c3fe4ec306ea as Cell, $88e63ff6e4eea209$export$2a7e60c8443c1751 as EditorPopup, $423bf54b4879ebeb$export$24aecfe8a925020d as ColorCell, $423bf54b4879ebeb$export$ba6491245befce5c as pleasantCombination, $423bf54b4879ebeb$export$9feb1bc2e5f1ccb3 as ColorPicker, $0aa421c11d2af971$export$b8e68c321a6269f1 as EditableTextArea, $0aa421c11d2af971$export$52c8c5a1aad17e2a as handleSpecialKeys, $ea3fc6a8962e0e3d$export$34ce2a614f5dd320 as PostgRESTTableView, $ea3fc6a8962e0e3d$export$85a23c82145eafdb as LongTextViewer, $ea3fc6a8962e0e3d$export$8d4d3113a9b124d2 as IntervalCell, $ea3fc6a8962e0e3d$export$2ad73a796d2d3eb as lithologyRenderer, $ea3fc6a8962e0e3d$export$5da000845ac52c4f as ExpandedLithologies, $4c00def725e3d600$export$4dffb9bb65ef8b2 as usePostgRESTLazyLoader};
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"","sources":["packages/data-sheet/src/index.ts"],"sourcesContent":["export * from \"./core\";\nexport * from \"./postgrest-table\";\n"],"names":[],"version":3,"file":"index.js.map"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.interaction-barrier_c65904 {
|
|
2
|
+
pointer-events: all;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.editor-popup-target_c65904 {
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
|
+
display: block;
|
|
9
|
+
position: absolute;
|
|
10
|
+
top: 0;
|
|
11
|
+
left: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.editable-text-area_c65904 {
|
|
15
|
+
position: relative;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.editable-text-area_c65904 textarea {
|
|
19
|
+
min-width: var(--data-editor-width, 15em);
|
|
20
|
+
min-height: var(--data-editor-height, 10em);
|
|
21
|
+
font-family: inherit;
|
|
22
|
+
font-size: inherit;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.editable-text-area_c65904 .tools_c65904 {
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: .2em;
|
|
28
|
+
right: .2em;
|
|
29
|
+
transform: scale(.8);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.color-picker-container_c65904 .react-colorful__saturation, .color-picker-container_c65904 .react-colorful__hue {
|
|
33
|
+
border-radius: 0;
|
|
34
|
+
}
|
|
35
|
+
/*# sourceMappingURL=main.module.846377cd.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA;;;;AAGA;;;;;;;;;AAQA;;;;AAII;;;;;;;AAOA","sources":["packages/data-sheet/src/components/main.module.sass"],"sourcesContent":[".interaction-barrier\n pointer-events: all\n\n.editor-popup-target\n position: absolute\n display: block\n top: 0\n left: 0\n width: 100%\n height: 100%\n\n.editable-text-area\n position: relative\n\n textarea\n min-width: var(--data-editor-width, 15em)\n min-height: var(--data-editor-height, 10em)\n font-family: inherit\n font-size: inherit\n\n .tools\n position: absolute\n top: 0.2em\n right: 0.2em\n transform: scale(0.8)\n\n// Color picker\n.color-picker-container\n :global\n .react-colorful__saturation\n border-radius: 0\n\n .react-colorful__hue\n border-radius: 0\n\n"],"names":[],"version":3,"file":"main.module.846377cd.css.map"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
._ev3EW_data-sheet-container, ._ev3EW_data-sheet-holder {
|
|
2
|
+
flex: 1;
|
|
3
|
+
min-height: 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
._ev3EW_data-sheet-container {
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
max-width: 100%;
|
|
9
|
+
height: 100%;
|
|
10
|
+
min-height: 0;
|
|
11
|
+
display: flex;
|
|
12
|
+
position: relative;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
._ev3EW_data-sheet {
|
|
16
|
+
height: 100%;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
._ev3EW_data-sheet .bp5-table-quadrant {
|
|
20
|
+
background-color: var(--panel-secondary-background-color);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
._ev3EW_input-cell {
|
|
24
|
+
padding: 0 2px !important;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
._ev3EW_input-cell input {
|
|
28
|
+
z-index: 0;
|
|
29
|
+
pointer-events: all;
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 100%;
|
|
32
|
+
font-family: inherit;
|
|
33
|
+
font-size: inherit;
|
|
34
|
+
background: none;
|
|
35
|
+
border: none;
|
|
36
|
+
margin: 0;
|
|
37
|
+
padding: 0 8px;
|
|
38
|
+
position: relative;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
._ev3EW_input-cell input:focus {
|
|
42
|
+
outline: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
._ev3EW_editor-cell .bp5-popover-target {
|
|
46
|
+
width: 100%;
|
|
47
|
+
height: 100%;
|
|
48
|
+
position: absolute;
|
|
49
|
+
top: 0;
|
|
50
|
+
left: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
._ev3EW_hidden-input {
|
|
54
|
+
opacity: 0;
|
|
55
|
+
width: 0;
|
|
56
|
+
position: absolute;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
._ev3EW_data-editor-anchor {
|
|
60
|
+
pointer-events: none;
|
|
61
|
+
width: 100%;
|
|
62
|
+
height: 100%;
|
|
63
|
+
margin: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
._ev3EW_corner-drag-handle {
|
|
67
|
+
cursor: ns-resize;
|
|
68
|
+
background-color: #1e90ff;
|
|
69
|
+
width: 8px;
|
|
70
|
+
height: 8px;
|
|
71
|
+
position: absolute;
|
|
72
|
+
bottom: 0;
|
|
73
|
+
right: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
._ev3EW_data-sheet-toolbar {
|
|
77
|
+
flex-direction: row;
|
|
78
|
+
margin-bottom: 4px;
|
|
79
|
+
display: flex;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
._ev3EW_spacer {
|
|
83
|
+
flex-grow: 1;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
._ev3EW_table-control {
|
|
87
|
+
flex-direction: row;
|
|
88
|
+
margin-bottom: .25em;
|
|
89
|
+
display: flex;
|
|
90
|
+
}
|
|
91
|
+
/*# sourceMappingURL=main.module.914caa19.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA;;;;;AAIA;;;;;;;;;AAQA;;;;AAEE;;;;AAGF;;;;AAGE;;;;;;;;;;;;;;AAaE;;;;AAIJ;;;;;;;;AAQA;;;;;;AAKA;;;;;;;AAMA;;;;;;;;;;AASA;;;;;;AAKA;;;;AAGA","sources":["packages/data-sheet/src/main.module.sass"],"sourcesContent":[".data-sheet-container, .data-sheet-holder\n flex: 1\n min-height: 0\n\n.data-sheet-container\n display: flex\n position: relative\n height: 100%\n flex-direction: column\n min-height: 0\n max-width: 100%\n\n.data-sheet\n height: 100%\n :global(.bp5-table-quadrant)\n background-color: var(--panel-secondary-background-color)\n\n.input-cell\n padding: 0 2px !important\n\n input\n width: 100%\n height: 100%\n padding: 0 8px\n z-index: 0\n position: relative\n border: none\n margin: 0\n pointer-events: all\n background: transparent\n font-family: inherit\n font-size: inherit\n\n &:focus\n outline: none\n\n// Make sure popover target fills the entire cell\n.editor-cell :global(.bp5-popover-target)\n //pointer-events: none\n position: absolute\n top: 0\n left: 0\n width: 100%\n height: 100%\n\n.hidden-input\n opacity: 0\n position: absolute\n width: 0\n\n.data-editor-anchor\n width: 100%\n height: 100%\n margin: 0\n pointer-events: none\n\n.corner-drag-handle\n position: absolute\n bottom: 0\n right: 0\n width: 8px\n height: 8px\n cursor: ns-resize\n background-color: dodgerblue\n\n.data-sheet-toolbar\n display: flex\n flex-direction: row\n margin-bottom: 4px\n\n.spacer\n flex-grow: 1\n\n.table-control\n display: flex\n flex-direction: row\n margin-bottom: 0.25em\n"],"names":[],"version":3,"file":"main.module.914caa19.css.map"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
function $parcel$export(e, n, v, s) {
|
|
3
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
4
|
+
}
|
|
5
|
+
var $8a595c5428132d53$exports = {};
|
|
6
|
+
|
|
7
|
+
$parcel$export($8a595c5428132d53$exports, "interaction-barrier", () => $8a595c5428132d53$export$5b5c76d17d76c73a, (v) => $8a595c5428132d53$export$5b5c76d17d76c73a = v);
|
|
8
|
+
$parcel$export($8a595c5428132d53$exports, "editor-popup-target", () => $8a595c5428132d53$export$9f1b5764c7eee880, (v) => $8a595c5428132d53$export$9f1b5764c7eee880 = v);
|
|
9
|
+
$parcel$export($8a595c5428132d53$exports, "editable-text-area", () => $8a595c5428132d53$export$5b6e9a3f68799075, (v) => $8a595c5428132d53$export$5b6e9a3f68799075 = v);
|
|
10
|
+
$parcel$export($8a595c5428132d53$exports, "tools", () => $8a595c5428132d53$export$904054328df186b, (v) => $8a595c5428132d53$export$904054328df186b = v);
|
|
11
|
+
$parcel$export($8a595c5428132d53$exports, "color-picker-container", () => $8a595c5428132d53$export$41f8318b16f973bb, (v) => $8a595c5428132d53$export$41f8318b16f973bb = v);
|
|
12
|
+
var $8a595c5428132d53$export$5b5c76d17d76c73a;
|
|
13
|
+
var $8a595c5428132d53$export$9f1b5764c7eee880;
|
|
14
|
+
var $8a595c5428132d53$export$5b6e9a3f68799075;
|
|
15
|
+
var $8a595c5428132d53$export$904054328df186b;
|
|
16
|
+
var $8a595c5428132d53$export$41f8318b16f973bb;
|
|
17
|
+
$8a595c5428132d53$export$5b5c76d17d76c73a = "interaction-barrier_c65904";
|
|
18
|
+
$8a595c5428132d53$export$9f1b5764c7eee880 = "editor-popup-target_c65904";
|
|
19
|
+
$8a595c5428132d53$export$5b6e9a3f68799075 = "editable-text-area_c65904";
|
|
20
|
+
$8a595c5428132d53$export$904054328df186b = "tools_c65904";
|
|
21
|
+
$8a595c5428132d53$export$41f8318b16f973bb = "color-picker-container_c65904";
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
export {$8a595c5428132d53$exports as default};
|
|
25
|
+
//# sourceMappingURL=main.module.93f91ad4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAJA,4CAAwC;AACxC,4CAAwC;AACxC,4CAAuC;AACvC,2CAA0B;AAC1B,4CAA2C","sources":["packages/data-sheet/src/components/main.module.sass"],"sourcesContent":[".interaction-barrier\n pointer-events: all\n\n.editor-popup-target\n position: absolute\n display: block\n top: 0\n left: 0\n width: 100%\n height: 100%\n\n.editable-text-area\n position: relative\n\n textarea\n min-width: var(--data-editor-width, 15em)\n min-height: var(--data-editor-height, 10em)\n font-family: inherit\n font-size: inherit\n\n .tools\n position: absolute\n top: 0.2em\n right: 0.2em\n transform: scale(0.8)\n\n// Color picker\n.color-picker-container\n :global\n .react-colorful__saturation\n border-radius: 0\n\n .react-colorful__hue\n border-radius: 0\n\n"],"names":[],"version":3,"file":"main.module.93f91ad4.js.map"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
.h0RamW_lithology {
|
|
2
|
+
border-radius: .5em;
|
|
3
|
+
padding: 0 .5em;
|
|
4
|
+
font-weight: bold;
|
|
5
|
+
display: inline-block;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.h0RamW_inline-lithology .h0RamW_lithology {
|
|
9
|
+
line-height: 1.2em;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.h0RamW_basis-panel .bp5-tag {
|
|
13
|
+
margin: 0 .5em .5em 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.h0RamW_basis-panel td {
|
|
17
|
+
vertical-align: top;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.h0RamW_basis-panel th {
|
|
21
|
+
text-align: left;
|
|
22
|
+
color: var(--secondary-color);
|
|
23
|
+
font-size: .9em;
|
|
24
|
+
font-style: italic;
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.h0RamW_basis-panel, .h0RamW_long-text {
|
|
29
|
+
pointer-events: all;
|
|
30
|
+
max-width: 20em;
|
|
31
|
+
max-height: 30em;
|
|
32
|
+
padding: 8px;
|
|
33
|
+
overflow-y: scroll;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.h0RamW_description {
|
|
37
|
+
font-style: italic;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.h0RamW_tag-header {
|
|
41
|
+
text-transform: small-caps;
|
|
42
|
+
color: var(--secondary-color);
|
|
43
|
+
font-size: .8em;
|
|
44
|
+
font-weight: bold;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.h0RamW_basis-col {
|
|
48
|
+
max-width: 15em;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.h0RamW_liths .bp5-tag {
|
|
52
|
+
min-height: 16px;
|
|
53
|
+
padding: 0 4px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.h0RamW_data-sheet-outer {
|
|
57
|
+
flex: 1;
|
|
58
|
+
min-height: 0;
|
|
59
|
+
display: flex;
|
|
60
|
+
position: relative;
|
|
61
|
+
}
|
|
62
|
+
/*# sourceMappingURL=main.module.dc8f6293.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA;;;;;;;AAMA;;;;AAIE;;;;AAGA;;;;AAGA;;;;;;;;AAOF;;;;;;;;AAOA;;;;AAIA;;;;;;;AAMA;;;;AAGA;;;;;AAIA","sources":["packages/data-sheet/src/postgrest-table/main.module.sass"],"sourcesContent":[".lithology\n font-weight: bold\n display: inline-block\n padding: 0 0.5em\n border-radius: 0.5em\n\n.inline-lithology .lithology\n line-height: 1.2em\n\n.basis-panel\n :global(.bp5-tag)\n margin: 0 0.5em 0.5em 0\n\n td\n vertical-align: top\n\n th\n text-align: left\n font-weight: 400\n font-size: 0.9em\n font-style: italic\n color: var(--secondary-color)\n\n.basis-panel, .long-text\n max-width: 20em\n padding: 8px\n max-height: 30em\n overflow-y: scroll\n pointer-events: all\n\n.description\n font-style: italic\n\n\n.tag-header\n font-weight: bold\n text-transform: small-caps\n font-size: 0.8em\n color: var(--secondary-color)\n\n.basis-col\n max-width: 15em\n\n.liths :global(.bp5-tag)\n padding: 0px 4px\n min-height: 16px\n\n.data-sheet-outer\n position: relative\n flex: 1\n display: flex\n min-height: 0\n"],"names":[],"version":3,"file":"main.module.dc8f6293.css.map"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
function $parcel$export(e, n, v, s) {
|
|
3
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
4
|
+
}
|
|
5
|
+
var $8ca36c3df472058f$exports = {};
|
|
6
|
+
|
|
7
|
+
$parcel$export($8ca36c3df472058f$exports, "corner-drag-handle", () => $8ca36c3df472058f$export$d075ced02cd1e4fe, (v) => $8ca36c3df472058f$export$d075ced02cd1e4fe = v);
|
|
8
|
+
$parcel$export($8ca36c3df472058f$exports, "data-editor-anchor", () => $8ca36c3df472058f$export$a251737fe850e043, (v) => $8ca36c3df472058f$export$a251737fe850e043 = v);
|
|
9
|
+
$parcel$export($8ca36c3df472058f$exports, "data-sheet", () => $8ca36c3df472058f$export$8daa6567688fa382, (v) => $8ca36c3df472058f$export$8daa6567688fa382 = v);
|
|
10
|
+
$parcel$export($8ca36c3df472058f$exports, "data-sheet-container", () => $8ca36c3df472058f$export$87b178d26387adcb, (v) => $8ca36c3df472058f$export$87b178d26387adcb = v);
|
|
11
|
+
$parcel$export($8ca36c3df472058f$exports, "data-sheet-holder", () => $8ca36c3df472058f$export$5281813577cb4d82, (v) => $8ca36c3df472058f$export$5281813577cb4d82 = v);
|
|
12
|
+
$parcel$export($8ca36c3df472058f$exports, "data-sheet-toolbar", () => $8ca36c3df472058f$export$f87720b660d74d41, (v) => $8ca36c3df472058f$export$f87720b660d74d41 = v);
|
|
13
|
+
$parcel$export($8ca36c3df472058f$exports, "editor-cell", () => $8ca36c3df472058f$export$23ab95b6c8437cbf, (v) => $8ca36c3df472058f$export$23ab95b6c8437cbf = v);
|
|
14
|
+
$parcel$export($8ca36c3df472058f$exports, "hidden-input", () => $8ca36c3df472058f$export$4493809ef6fd890f, (v) => $8ca36c3df472058f$export$4493809ef6fd890f = v);
|
|
15
|
+
$parcel$export($8ca36c3df472058f$exports, "input-cell", () => $8ca36c3df472058f$export$751e93e0ddf1a61b, (v) => $8ca36c3df472058f$export$751e93e0ddf1a61b = v);
|
|
16
|
+
$parcel$export($8ca36c3df472058f$exports, "spacer", () => $8ca36c3df472058f$export$8cc075c801fd6817, (v) => $8ca36c3df472058f$export$8cc075c801fd6817 = v);
|
|
17
|
+
$parcel$export($8ca36c3df472058f$exports, "table-control", () => $8ca36c3df472058f$export$bba64b62756ac8de, (v) => $8ca36c3df472058f$export$bba64b62756ac8de = v);
|
|
18
|
+
var $8ca36c3df472058f$export$d075ced02cd1e4fe;
|
|
19
|
+
var $8ca36c3df472058f$export$a251737fe850e043;
|
|
20
|
+
var $8ca36c3df472058f$export$8daa6567688fa382;
|
|
21
|
+
var $8ca36c3df472058f$export$87b178d26387adcb;
|
|
22
|
+
var $8ca36c3df472058f$export$5281813577cb4d82;
|
|
23
|
+
var $8ca36c3df472058f$export$f87720b660d74d41;
|
|
24
|
+
var $8ca36c3df472058f$export$23ab95b6c8437cbf;
|
|
25
|
+
var $8ca36c3df472058f$export$4493809ef6fd890f;
|
|
26
|
+
var $8ca36c3df472058f$export$751e93e0ddf1a61b;
|
|
27
|
+
var $8ca36c3df472058f$export$8cc075c801fd6817;
|
|
28
|
+
var $8ca36c3df472058f$export$bba64b62756ac8de;
|
|
29
|
+
$8ca36c3df472058f$export$d075ced02cd1e4fe = `_ev3EW_corner-drag-handle`;
|
|
30
|
+
$8ca36c3df472058f$export$a251737fe850e043 = `_ev3EW_data-editor-anchor`;
|
|
31
|
+
$8ca36c3df472058f$export$8daa6567688fa382 = `_ev3EW_data-sheet`;
|
|
32
|
+
$8ca36c3df472058f$export$87b178d26387adcb = `_ev3EW_data-sheet-container`;
|
|
33
|
+
$8ca36c3df472058f$export$5281813577cb4d82 = `_ev3EW_data-sheet-holder`;
|
|
34
|
+
$8ca36c3df472058f$export$f87720b660d74d41 = `_ev3EW_data-sheet-toolbar`;
|
|
35
|
+
$8ca36c3df472058f$export$23ab95b6c8437cbf = `_ev3EW_editor-cell`;
|
|
36
|
+
$8ca36c3df472058f$export$4493809ef6fd890f = `_ev3EW_hidden-input`;
|
|
37
|
+
$8ca36c3df472058f$export$751e93e0ddf1a61b = `_ev3EW_input-cell`;
|
|
38
|
+
$8ca36c3df472058f$export$8cc075c801fd6817 = `_ev3EW_spacer`;
|
|
39
|
+
$8ca36c3df472058f$export$bba64b62756ac8de = `_ev3EW_table-control`;
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
export {$8ca36c3df472058f$exports as default};
|
|
43
|
+
//# sourceMappingURL=main.module.de002429.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAVA,4CAAuC,CAAC,yBAAyB,CAAC;AAClE,4CAAuC,CAAC,yBAAyB,CAAC;AAClE,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAAsC,CAAC,wBAAwB,CAAC;AAChE,4CAAuC,CAAC,yBAAyB,CAAC;AAClE,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAAiC,CAAC,mBAAmB,CAAC;AACtD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAA2B,CAAC,aAAa,CAAC;AAC1C,4CAAkC,CAAC,oBAAoB,CAAC","sources":["packages/data-sheet/src/main.module.sass"],"sourcesContent":[".data-sheet-container, .data-sheet-holder\n flex: 1\n min-height: 0\n\n.data-sheet-container\n display: flex\n position: relative\n height: 100%\n flex-direction: column\n min-height: 0\n max-width: 100%\n\n.data-sheet\n height: 100%\n :global(.bp5-table-quadrant)\n background-color: var(--panel-secondary-background-color)\n\n.input-cell\n padding: 0 2px !important\n\n input\n width: 100%\n height: 100%\n padding: 0 8px\n z-index: 0\n position: relative\n border: none\n margin: 0\n pointer-events: all\n background: transparent\n font-family: inherit\n font-size: inherit\n\n &:focus\n outline: none\n\n// Make sure popover target fills the entire cell\n.editor-cell :global(.bp5-popover-target)\n //pointer-events: none\n position: absolute\n top: 0\n left: 0\n width: 100%\n height: 100%\n\n.hidden-input\n opacity: 0\n position: absolute\n width: 0\n\n.data-editor-anchor\n width: 100%\n height: 100%\n margin: 0\n pointer-events: none\n\n.corner-drag-handle\n position: absolute\n bottom: 0\n right: 0\n width: 8px\n height: 8px\n cursor: ns-resize\n background-color: dodgerblue\n\n.data-sheet-toolbar\n display: flex\n flex-direction: row\n margin-bottom: 4px\n\n.spacer\n flex-grow: 1\n\n.table-control\n display: flex\n flex-direction: row\n margin-bottom: 0.25em\n"],"names":[],"version":3,"file":"main.module.de002429.js.map"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
|
|
2
|
+
function $parcel$export(e, n, v, s) {
|
|
3
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
4
|
+
}
|
|
5
|
+
var $4829e0f8e57759e3$exports = {};
|
|
6
|
+
|
|
7
|
+
$parcel$export($4829e0f8e57759e3$exports, "basis-col", () => $4829e0f8e57759e3$export$1ed47493f461348b, (v) => $4829e0f8e57759e3$export$1ed47493f461348b = v);
|
|
8
|
+
$parcel$export($4829e0f8e57759e3$exports, "basis-panel", () => $4829e0f8e57759e3$export$c7bc816036885da1, (v) => $4829e0f8e57759e3$export$c7bc816036885da1 = v);
|
|
9
|
+
$parcel$export($4829e0f8e57759e3$exports, "data-sheet-outer", () => $4829e0f8e57759e3$export$a41cc5b8098038de, (v) => $4829e0f8e57759e3$export$a41cc5b8098038de = v);
|
|
10
|
+
$parcel$export($4829e0f8e57759e3$exports, "description", () => $4829e0f8e57759e3$export$6d59db4903f20f7d, (v) => $4829e0f8e57759e3$export$6d59db4903f20f7d = v);
|
|
11
|
+
$parcel$export($4829e0f8e57759e3$exports, "inline-lithology", () => $4829e0f8e57759e3$export$1ec8789066e3d6bc, (v) => $4829e0f8e57759e3$export$1ec8789066e3d6bc = v);
|
|
12
|
+
$parcel$export($4829e0f8e57759e3$exports, "lithology", () => $4829e0f8e57759e3$export$5c23751bce3f0807, (v) => $4829e0f8e57759e3$export$5c23751bce3f0807 = v);
|
|
13
|
+
$parcel$export($4829e0f8e57759e3$exports, "liths", () => $4829e0f8e57759e3$export$edffc8ad17c72de6, (v) => $4829e0f8e57759e3$export$edffc8ad17c72de6 = v);
|
|
14
|
+
$parcel$export($4829e0f8e57759e3$exports, "long-text", () => $4829e0f8e57759e3$export$617db6d5463a006, (v) => $4829e0f8e57759e3$export$617db6d5463a006 = v);
|
|
15
|
+
$parcel$export($4829e0f8e57759e3$exports, "tag-header", () => $4829e0f8e57759e3$export$3a7d1f90484c84e1, (v) => $4829e0f8e57759e3$export$3a7d1f90484c84e1 = v);
|
|
16
|
+
var $4829e0f8e57759e3$export$1ed47493f461348b;
|
|
17
|
+
var $4829e0f8e57759e3$export$c7bc816036885da1;
|
|
18
|
+
var $4829e0f8e57759e3$export$a41cc5b8098038de;
|
|
19
|
+
var $4829e0f8e57759e3$export$6d59db4903f20f7d;
|
|
20
|
+
var $4829e0f8e57759e3$export$1ec8789066e3d6bc;
|
|
21
|
+
var $4829e0f8e57759e3$export$5c23751bce3f0807;
|
|
22
|
+
var $4829e0f8e57759e3$export$edffc8ad17c72de6;
|
|
23
|
+
var $4829e0f8e57759e3$export$617db6d5463a006;
|
|
24
|
+
var $4829e0f8e57759e3$export$3a7d1f90484c84e1;
|
|
25
|
+
$4829e0f8e57759e3$export$1ed47493f461348b = `h0RamW_basis-col`;
|
|
26
|
+
$4829e0f8e57759e3$export$c7bc816036885da1 = `h0RamW_basis-panel`;
|
|
27
|
+
$4829e0f8e57759e3$export$a41cc5b8098038de = `h0RamW_data-sheet-outer`;
|
|
28
|
+
$4829e0f8e57759e3$export$6d59db4903f20f7d = `h0RamW_description`;
|
|
29
|
+
$4829e0f8e57759e3$export$1ec8789066e3d6bc = `h0RamW_inline-lithology`;
|
|
30
|
+
$4829e0f8e57759e3$export$5c23751bce3f0807 = `h0RamW_lithology`;
|
|
31
|
+
$4829e0f8e57759e3$export$edffc8ad17c72de6 = `h0RamW_liths`;
|
|
32
|
+
$4829e0f8e57759e3$export$617db6d5463a006 = `h0RamW_long-text`;
|
|
33
|
+
$4829e0f8e57759e3$export$3a7d1f90484c84e1 = `h0RamW_tag-header`;
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
export {$4829e0f8e57759e3$exports as default};
|
|
37
|
+
//# sourceMappingURL=main.module.ff717a08.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AARA,4CAA8B,CAAC,gBAAgB,CAAC;AAChD,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAAqC,CAAC,uBAAuB,CAAC;AAC9D,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAAqC,CAAC,uBAAuB,CAAC;AAC9D,4CAA8B,CAAC,gBAAgB,CAAC;AAChD,4CAA0B,CAAC,YAAY,CAAC;AACxC,2CAA8B,CAAC,gBAAgB,CAAC;AAChD,4CAA+B,CAAC,iBAAiB,CAAC","sources":["packages/data-sheet/src/postgrest-table/main.module.sass"],"sourcesContent":[".lithology\n font-weight: bold\n display: inline-block\n padding: 0 0.5em\n border-radius: 0.5em\n\n.inline-lithology .lithology\n line-height: 1.2em\n\n.basis-panel\n :global(.bp5-tag)\n margin: 0 0.5em 0.5em 0\n\n td\n vertical-align: top\n\n th\n text-align: left\n font-weight: 400\n font-size: 0.9em\n font-style: italic\n color: var(--secondary-color)\n\n.basis-panel, .long-text\n max-width: 20em\n padding: 8px\n max-height: 30em\n overflow-y: scroll\n pointer-events: all\n\n.description\n font-style: italic\n\n\n.tag-header\n font-weight: bold\n text-transform: small-caps\n font-size: 0.8em\n color: var(--secondary-color)\n\n.basis-col\n max-width: 15em\n\n.liths :global(.bp5-tag)\n padding: 0px 4px\n min-height: 16px\n\n.data-sheet-outer\n position: relative\n flex: 1\n display: flex\n min-height: 0\n"],"names":[],"version":3,"file":"main.module.ff717a08.js.map"}
|