@thatopen/services 0.37.1 → 0.37.3
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/package.json
CHANGED
package/src/built-in/index.ts
CHANGED
|
@@ -2957,6 +2957,22 @@ declare class _TopicsManager extends OBC.Component {
|
|
|
2957
2957
|
* backfilling viewpoint worlds by hand.
|
|
2958
2958
|
*/
|
|
2959
2959
|
init(client: PlatformClient): Promise<void>;
|
|
2960
|
+
/**
|
|
2961
|
+
* Saving is the app's: the issues panel keeps what is made or changed as a draft, marks each such issue as not saved
|
|
2962
|
+
* yet, and writes nothing to the project until the app calls this — from its own Save, or its Ctrl+S, together with
|
|
2963
|
+
* whatever else it saves. A set never saved before needs a name the first time.
|
|
2964
|
+
*/
|
|
2965
|
+
persist(name?: string): Promise<void>;
|
|
2966
|
+
/** Whether there is something to save (the topics changed since the project last kept them). */
|
|
2967
|
+
get dirty(): boolean;
|
|
2968
|
+
/** Whether leaving the page now would lose work: for an app's «leave the page?» warning. */
|
|
2969
|
+
get unsavedWork(): boolean;
|
|
2970
|
+
/** The issues made or changed and not saved yet, by guid (the panel marks them with a grey sign). */
|
|
2971
|
+
unsavedTopics(): ReadonlySet<string>;
|
|
2972
|
+
/** Fired when the topics or the set change, a change kept or the set saved: an app's Save button can follow `dirty` by it. */
|
|
2973
|
+
readonly onSetChanged: OBC.Event<void>;
|
|
2974
|
+
/** The open set: its folder (null until saved the first time) and its name. */
|
|
2975
|
+
get set(): { folderId: string | null; name: string } | null;
|
|
2960
2976
|
private _firstWorld;
|
|
2961
2977
|
}
|
|
2962
2978
|
|
|
@@ -113,20 +113,20 @@ async function main() {
|
|
|
113
113
|
tree: () => BUI.html`<top-model-tree></top-model-tree>`,
|
|
114
114
|
properties: () => BUI.html`<top-properties-panel></top-properties-panel>`,
|
|
115
115
|
// The project's documents, as every platform app lists them: a click opens one in the viewer.
|
|
116
|
-
files: () => BUI.html`<top-documents-panel reads-project></top-documents-panel>`,
|
|
116
|
+
files: () => BUI.html`<top-documents-panel reads-project opens-drops></top-documents-panel>`,
|
|
117
117
|
dataTable: () => BUI.html`<top-data-table-panel></top-data-table-panel>`,
|
|
118
118
|
settings: () => BUI.html`<top-settings-panel></top-settings-panel>`,
|
|
119
119
|
history: () => BUI.html`<top-git-history></top-git-history>`,
|
|
120
120
|
};
|
|
121
121
|
app.layouts = {
|
|
122
|
-
Explorer: {
|
|
123
|
-
icon: "mdi:file-tree",
|
|
124
|
-
template: `"tree viewer" 1fr "properties viewer" 1fr / 22rem 1fr`,
|
|
125
|
-
},
|
|
126
122
|
Assets: {
|
|
127
123
|
icon: "mdi:folder-multiple-outline",
|
|
128
124
|
template: `"files viewer" 1fr "properties viewer" 1fr / 22rem 1fr`,
|
|
129
125
|
},
|
|
126
|
+
Explorer: {
|
|
127
|
+
icon: "mdi:file-tree",
|
|
128
|
+
template: `"tree viewer" 1fr "properties viewer" 1fr / 22rem 1fr`,
|
|
129
|
+
},
|
|
130
130
|
Data: {
|
|
131
131
|
icon: "mdi:table",
|
|
132
132
|
template: `"dataTable viewer" 1fr / 22rem 1fr`,
|
|
@@ -122,21 +122,21 @@ async function main() {
|
|
|
122
122
|
tree: () => BUI.html`<top-model-tree></top-model-tree>`,
|
|
123
123
|
properties: () => BUI.html`<top-properties-panel></top-properties-panel>`,
|
|
124
124
|
// The project's documents, as every platform app lists them: a click opens one in the viewer.
|
|
125
|
-
files: () => BUI.html`<top-documents-panel reads-project></top-documents-panel>`,
|
|
125
|
+
files: () => BUI.html`<top-documents-panel reads-project opens-drops></top-documents-panel>`,
|
|
126
126
|
dataTable: () => BUI.html`<top-data-table-panel></top-data-table-panel>`,
|
|
127
127
|
settings: () => BUI.html`<top-settings-panel></top-settings-panel>`,
|
|
128
128
|
};
|
|
129
129
|
// No `label` → the sidebar renders icon-only activity-bar buttons (matching
|
|
130
130
|
// the pre-A2 look), background only on the active one.
|
|
131
131
|
app.layouts = {
|
|
132
|
-
Explorer: {
|
|
133
|
-
icon: "mdi:file-tree",
|
|
134
|
-
template: `"tree viewer" 1fr "properties viewer" 1fr / 22rem 1fr`,
|
|
135
|
-
},
|
|
136
132
|
Assets: {
|
|
137
133
|
icon: "mdi:folder-multiple-outline",
|
|
138
134
|
template: `"files viewer" 1fr "properties viewer" 1fr / 22rem 1fr`,
|
|
139
135
|
},
|
|
136
|
+
Explorer: {
|
|
137
|
+
icon: "mdi:file-tree",
|
|
138
|
+
template: `"tree viewer" 1fr "properties viewer" 1fr / 22rem 1fr`,
|
|
139
|
+
},
|
|
140
140
|
Data: {
|
|
141
141
|
icon: "mdi:table",
|
|
142
142
|
template: `"dataTable viewer" 1fr / 22rem 1fr`,
|
|
@@ -146,7 +146,8 @@ async function main() {
|
|
|
146
146
|
template: `"settings viewer" 1fr / 22rem 1fr`,
|
|
147
147
|
},
|
|
148
148
|
};
|
|
149
|
-
app.
|
|
149
|
+
// (The project's documents first: where a file dropped on the app goes and opens. Antonio 24-11.)
|
|
150
|
+
app.layout = "Assets";
|
|
150
151
|
app.sidebar = true;
|
|
151
152
|
|
|
152
153
|
// No auto-load: the viewer opens empty. A document clicked in the Assets panel opens in it.
|