@geode/opengeodeweb-front 12.1.0-rc.3 → 12.1.0-rc.5

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.
@@ -102,8 +102,12 @@ async function hideAllComponentLeafRows(window, categoryName) {
102
102
  const leafRows = tree.getByTestId("treeRowWrapper").filter({ hasText: "00000000-" });
103
103
  const count = await leafRows.count();
104
104
  for (let i = 0; i < count; i += 1) {
105
- const eyeBtn = leafRows.nth(i).getByTestId("visibleObjectEyeButton").first();
106
- if (await eyeBtn.isVisible()) await eyeBtn.click({ force: true });
105
+ const row = leafRows.nth(i);
106
+ const eyeBtn = row.getByTestId("visibleObjectEyeButton").first();
107
+ if (await eyeBtn.isVisible()) {
108
+ await eyeBtn.click({ force: true });
109
+ await row.getByTestId("hiddenObjectEyeButton").first().waitFor({ state: "attached" });
110
+ }
107
111
  }
108
112
  await waitForActionSettled(window);
109
113
  }
@@ -40,7 +40,7 @@ function row_props({ item }: { item: CRS }): Record<string, unknown> {
40
40
  class: ["crs-row", { "bg-primary": selected }],
41
41
  tabindex: 0,
42
42
  "aria-selected": selected,
43
- onKeydown: (event: KeyboardEvent) => {
43
+ onKeydown: (event: KeyboardEvent): void => {
44
44
  if (event.key === "Enter") {
45
45
  select_crs(item);
46
46
  }
@@ -128,7 +128,6 @@ function handleNormalClick(item: DisplayItem, index: number | undefined): void {
128
128
  if (index !== undefined) {
129
129
  lastActiveIndex.value = index;
130
130
  }
131
- toggleSelect(item.raw);
132
131
  emit("click:item", item.raw);
133
132
  }
134
133
 
@@ -242,7 +242,6 @@ function getLeafViewerIds(item: CollectionTreeItem): number[] {
242
242
  :scroll-top="currentView?.scrollTop || 0"
243
243
  class="transparent-treeview virtual-tree-height"
244
244
  @update:selected="(val) => onUpdateSelection(val as string[])"
245
- @click:item="onUpdateSelection([$event.id as string, ...visibleComponents])"
246
245
  @update:scroll-top="treeviewStore.setScrollTop(id, $event)"
247
246
  @hover:enter="
248
247
  ({ item, immediate }) =>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geode/opengeodeweb-front",
3
- "version": "12.1.0-rc.3",
3
+ "version": "12.1.0-rc.5",
4
4
  "description": "OpenSource Vue/Nuxt/Pinia/Vuetify framework for web applications",
5
5
  "homepage": "https://github.com/Geode-solutions/OpenGeodeWeb-Front",
6
6
  "bugs": {
@@ -171,7 +171,7 @@ function createServerWsRpcClient(baseUrl: string): ServerWsRpcClient {
171
171
  function getConnection(): ReturnType<ServerWsRpcClient["getConnection"]> {
172
172
  return {
173
173
  getSession: () => ({
174
- call: async (rpc: string, [params]: readonly [object]) => {
174
+ call: async (rpc: string, [params]: readonly [object]): Promise<unknown> => {
175
175
  const result = await call(rpc, params);
176
176
  return result;
177
177
  },
@@ -187,10 +187,13 @@ async function hideAllComponentLeafRows(window: Page, categoryName: string): Pro
187
187
  const leafRows = tree.getByTestId("treeRowWrapper").filter({ hasText: "00000000-" });
188
188
  const count = await leafRows.count();
189
189
  for (let i = 0; i < count; i += 1) {
190
- const eyeBtn = leafRows.nth(i).getByTestId("visibleObjectEyeButton").first();
190
+ const row = leafRows.nth(i);
191
+ const eyeBtn = row.getByTestId("visibleObjectEyeButton").first();
191
192
  // oxlint-disable no-await-in-loop
192
193
  if (await eyeBtn.isVisible()) {
193
194
  await eyeBtn.click({ force: true });
195
+ // The shim clicks through a positional selector (nth among the tree's eye buttons): wait for this row to flip before the next click, or the index shifts under it
196
+ await row.getByTestId("hiddenObjectEyeButton").first().waitFor({ state: "attached" });
194
197
  }
195
198
  }
196
199
  await waitForActionSettled(window);