@qaecy/cue-ui 0.0.4 → 0.0.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.
package/README.md CHANGED
@@ -5,12 +5,12 @@ Drop them into any HTML page — no build step required.
5
5
 
6
6
  ## Components
7
7
 
8
- | Custom element | Import path | Description |
9
- | ----------------------- | ------------------------------- | --------------------------------------------------------------------------------- |
10
- | `<cue-card>` | `@qaecy/cue-ui/card` | Reusable card container with variants, padding, and optional shadow |
11
- | `<cue-logo>` | `@qaecy/cue-ui/logo` | Animated QAECY logo |
12
- | `<cue-document-list>` | `@qaecy/cue-ui/document-list` | Lazy document list that fetches metadata internally from Cue SDK state |
13
- | `<cue-document-viewer>` | `@qaecy/cue-ui/document-viewer` | Document viewer with Cue SDK integration (PDF, BIM, CAD, images, spreadsheets, …) |
8
+ | Custom element | Import path | Description |
9
+ | ------------------------ | ------------------------------- | --------------------------------------------------------------------------------- |
10
+ | `<cue-card>` | `@qaecy/cue-ui/card` | Reusable card container with variants, padding, and optional shadow |
11
+ | `<cue-logo>` | `@qaecy/cue-ui/logo` | Animated QAECY logo |
12
+ | `<cue-document-list-wc>` | `@qaecy/cue-ui/document-list` | Lazy document list that fetches metadata internally from Cue SDK state |
13
+ | `<cue-document-viewer>` | `@qaecy/cue-ui/document-viewer` | Document viewer with Cue SDK integration (PDF, BIM, CAD, images, spreadsheets, …) |
14
14
 
15
15
  ---
16
16
 
@@ -177,7 +177,7 @@ Supported file types: PDF, IFC/BIM, DXF/CAD, images (PNG, JPG, SVG, …), Markdo
177
177
 
178
178
  ---
179
179
 
180
- ## `<cue-document-list>`
180
+ ## `<cue-document-list-wc>`
181
181
 
182
182
  Renders a lazy-loaded document table. Pass a `projectId`, `uuids`, and `sdkState`; the component requests metadata and categories internally.
183
183
 
@@ -202,7 +202,7 @@ The component emits the same row click outputs as the internal document list (`c
202
202
  Custom menu items are appended after the standard ones:
203
203
 
204
204
  ```js
205
- const list = document.querySelector('cue-document-list');
205
+ const list = document.querySelector('cue-document-list-wc');
206
206
 
207
207
  list.customMenuItems = [
208
208
  {
@@ -273,7 +273,7 @@
273
273
  overflow: auto;
274
274
  }
275
275
 
276
- cue-document-list {
276
+ cue-document-list-wc {
277
277
  display: block;
278
278
  width: 100%;
279
279
  min-height: 480px;
@@ -350,7 +350,7 @@
350
350
  <main id="list-area">
351
351
  <div id="toolbar">Select a project to load documents.</div>
352
352
  <div id="list-wrapper">
353
- <cue-document-list id="doc-list"></cue-document-list>
353
+ <cue-document-list-wc id="doc-list"></cue-document-list-wc>
354
354
  </div>
355
355
  </main>
356
356
  </div>
@@ -358,11 +358,11 @@
358
358
  <script type="module">
359
359
  window.addEventListener('load', () => {
360
360
  setTimeout(() => {
361
- if (customElements.get('cue-document-list')) {
362
- console.log('[demo] cue-document-list registered OK');
361
+ if (customElements.get('cue-document-list-wc')) {
362
+ console.log('[demo] cue-document-list-wc registered OK');
363
363
  } else {
364
364
  console.error(
365
- '[demo] cue-document-list NOT registered after 4 s. Check runtime.js/polyfills.js/main.js loads.'
365
+ '[demo] cue-document-list-wc NOT registered after 4 s. Check runtime.js/polyfills.js/main.js loads.'
366
366
  );
367
367
  }
368
368
  }, 4000);
@@ -423,7 +423,7 @@
423
423
  const list = $('doc-list');
424
424
  if (!list || !activeProjectId) return;
425
425
 
426
- await customElements.whenDefined('cue-document-list');
426
+ await customElements.whenDefined('cue-document-list-wc');
427
427
  list.projectId = activeProjectId;
428
428
  list.uuids = shownDocs.map((doc) => doc.uuid);
429
429
  list.sdkState = { cue, language: cue.api.language || 'en' };