@emuanalytics/flow-rdf-ui 4.1.10 → 4.1.12

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.
@@ -120,7 +120,6 @@ class FlowUiList extends FlowRdfElement {
120
120
  }
121
121
  handleDragStart(ev) {
122
122
  this.draggedItem = ev.target;
123
- console.log(`parent drag start: ${this.draggedItem.value}`, this.draggedItem);
124
123
  }
125
124
  handleDragOver(ev) {
126
125
  ev.stopPropagation();
@@ -133,7 +132,6 @@ class FlowUiList extends FlowRdfElement {
133
132
  }
134
133
  if (target && target !== this.draggedOverItem) {
135
134
  if (this.draggedItem === target.previousElementSibling) {
136
- console.log("moving down");
137
135
  this.insertBefore(this.draggedItem, target.nextSibling);
138
136
  } else if (this.draggedItem === target.nextElementSibling) {
139
137
  this.insertBefore(this.draggedItem, target);
@@ -147,11 +145,8 @@ class FlowUiList extends FlowRdfElement {
147
145
  if (!this.draggedItem || !this.draggedOverItem) {
148
146
  return;
149
147
  }
150
- console.log(`parent drop: ${this.draggedItem.value} onto target: ${this.draggedOverItem.value}`);
151
148
  }
152
- handleDragEnd(ev) {
153
- const target = ev.target.value;
154
- console.log(`parent drag end: target: ${target}`);
149
+ handleDragEnd(_ev) {
155
150
  this.draggedItem = null;
156
151
  this.draggedOverItem = null;
157
152
  }
@@ -104,13 +104,11 @@ class FlowUiListItem extends FlowRdfElement {
104
104
  }
105
105
  handleReorderPointerDown(_ev) {
106
106
  this.addEventListener("dragstart", this.handleDragStart);
107
- console.log("adding dragstart");
108
107
  this.addEventListener("dragend", this.handleDragEnd);
109
108
  this.setAttribute("draggable", "true");
110
109
  }
111
110
  handleReorderPointerUp(_ev) {
112
111
  this.removeEventListener("dragstart", this.handleDragStart);
113
- console.log("removing dragstart");
114
112
  this.removeEventListener("dragend", this.handleDragEnd);
115
113
  this.removeAttribute("draggable");
116
114
  }
@@ -125,7 +123,6 @@ class FlowUiListItem extends FlowRdfElement {
125
123
  handleDragEnd(ev) {
126
124
  ev.stopPropagation();
127
125
  this.removeEventListener("dragstart", this.handleDragStart);
128
- console.log("removing dragstart");
129
126
  this.removeEventListener("dragend", this.handleDragEnd);
130
127
  this.removeAttribute("draggable");
131
128
  this.emit("flow-ui-drag-end");
@@ -44,11 +44,9 @@ class FlowUiSplitView extends FlowRdfElement {
44
44
  const panelsRemoved = mutations.map((m) => Array.from(m.removedNodes.values())).flat().filter((n) => n instanceof FlowUiSplitViewPane);
45
45
  if (panelsAdded.length > 0) {
46
46
  this.handlePanelAdded(panelsAdded[0]);
47
- console.log("Split view panel added:", this._panels.map((panel) => panel.id).join(":"));
48
47
  }
49
48
  if (panelsRemoved.length > 0) {
50
49
  this.handlePanelRemoved(panelsRemoved[0]);
51
- console.log("Split view panel removed:", this._panels.map((panel) => panel.id).join(":"));
52
50
  }
53
51
  this.layoutPanels();
54
52
  });
@@ -201,7 +199,10 @@ class FlowUiSplitView extends FlowRdfElement {
201
199
  let sizeDelta = this.sizeToPixels(panel.size) - this.sizeToPixels(panel.closedSize);
202
200
  sizeDelta -= this.shrinkPanels(panelIndex + 1, 1, false, sizeDelta);
203
201
  if (sizeDelta > 0) {
204
- this.shrinkPanels(panelIndex, -1, false, sizeDelta);
202
+ sizeDelta = this.shrinkPanels(panelIndex, -1, false, sizeDelta);
203
+ }
204
+ if (sizeDelta > 0) {
205
+ panel.size = "auto";
205
206
  }
206
207
  }
207
208
  }
@@ -358,7 +359,6 @@ class FlowUiSplitView extends FlowRdfElement {
358
359
  lastVisiblePanel.divider = false;
359
360
  }
360
361
  this.positions = panelSizes.map((size) => size + "px");
361
- console.log("Panel layouts", this._panelLayouts);
362
362
  }
363
363
  resizePanels() {
364
364
  const boundingRect = this.splitView.getBoundingClientRect();
@@ -497,7 +497,6 @@ class FlowUiSplitView extends FlowRdfElement {
497
497
  (panel) => ({ id: panel.id, size: panel.size, closed: panel.closed })
498
498
  );
499
499
  this._panelLayouts[panelLayoutsKey] = panelLayouts;
500
- console.log("Saving panel layouts:", panelLayoutsKey, panelLayouts);
501
500
  }
502
501
  restorePanelLayouts() {
503
502
  const panelLayoutsKey = this.panelLayoutsKey();
@@ -509,7 +508,6 @@ class FlowUiSplitView extends FlowRdfElement {
509
508
  panel.closed = panelLayout.closed;
510
509
  }
511
510
  });
512
- console.log("Restoring panel layouts:", panelLayoutsKey, this._panelLayouts[panelLayoutsKey]);
513
511
  return true;
514
512
  } else {
515
513
  return false;
@@ -33,7 +33,6 @@ class Ticker {
33
33
  if (!this.timer) {
34
34
  return;
35
35
  }
36
- console.log("Ticker stop");
37
36
  clearInterval(this.timer);
38
37
  this.timer = void 0;
39
38
  this.nextUpdateAt = DateTime.fromMillis(0);
@@ -265,6 +265,191 @@
265
265
  }
266
266
  ]
267
267
  },
268
+ {
269
+ "kind": "javascript-module",
270
+ "path": "components/avatar/avatar.component.js",
271
+ "declarations": [
272
+ {
273
+ "kind": "class",
274
+ "description": "",
275
+ "name": "FlowUiAvatar",
276
+ "cssProperties": [
277
+ {
278
+ "description": "The size of the avatar.",
279
+ "name": "--size"
280
+ }
281
+ ],
282
+ "cssParts": [
283
+ {
284
+ "description": "The component's base wrapper.",
285
+ "name": "base"
286
+ },
287
+ {
288
+ "description": "The container that wraps the avatar's icon.",
289
+ "name": "icon"
290
+ },
291
+ {
292
+ "description": "The container that wraps the avatar's initials.",
293
+ "name": "initials"
294
+ },
295
+ {
296
+ "description": "The avatar image. Only shown when the `image` attribute is set.",
297
+ "name": "image"
298
+ }
299
+ ],
300
+ "slots": [
301
+ {
302
+ "description": "The default icon to use when no image or initials are present. Works best with `<flow-ui-icon>`.",
303
+ "name": "icon"
304
+ }
305
+ ],
306
+ "members": [
307
+ {
308
+ "kind": "field",
309
+ "name": "hasError",
310
+ "type": {
311
+ "text": "boolean"
312
+ },
313
+ "privacy": "private",
314
+ "default": "false"
315
+ },
316
+ {
317
+ "kind": "field",
318
+ "name": "image",
319
+ "type": {
320
+ "text": "string"
321
+ },
322
+ "default": "''",
323
+ "description": "The image source to use for the avatar.",
324
+ "attribute": "image"
325
+ },
326
+ {
327
+ "kind": "field",
328
+ "name": "label",
329
+ "type": {
330
+ "text": "string"
331
+ },
332
+ "default": "''",
333
+ "description": "A label to use to describe the avatar to assistive devices.",
334
+ "attribute": "label"
335
+ },
336
+ {
337
+ "kind": "field",
338
+ "name": "initials",
339
+ "type": {
340
+ "text": "string"
341
+ },
342
+ "default": "''",
343
+ "description": "Initials to use as a fallback when no image is available (1-2 characters max recommended).",
344
+ "attribute": "initials"
345
+ },
346
+ {
347
+ "kind": "field",
348
+ "name": "loading",
349
+ "type": {
350
+ "text": "'eager' | 'lazy'"
351
+ },
352
+ "default": "'eager'",
353
+ "description": "Indicates how the browser should load the image.",
354
+ "attribute": "loading"
355
+ },
356
+ {
357
+ "kind": "field",
358
+ "name": "shape",
359
+ "type": {
360
+ "text": "'circle' | 'square' | 'rounded'"
361
+ },
362
+ "default": "'circle'",
363
+ "description": "The shape of the avatar.",
364
+ "attribute": "shape",
365
+ "reflects": true
366
+ }
367
+ ],
368
+ "attributes": [
369
+ {
370
+ "name": "image",
371
+ "type": {
372
+ "text": "string"
373
+ },
374
+ "default": "''",
375
+ "description": "The image source to use for the avatar.",
376
+ "fieldName": "image"
377
+ },
378
+ {
379
+ "name": "label",
380
+ "type": {
381
+ "text": "string"
382
+ },
383
+ "default": "''",
384
+ "description": "A label to use to describe the avatar to assistive devices.",
385
+ "fieldName": "label"
386
+ },
387
+ {
388
+ "name": "initials",
389
+ "type": {
390
+ "text": "string"
391
+ },
392
+ "default": "''",
393
+ "description": "Initials to use as a fallback when no image is available (1-2 characters max recommended).",
394
+ "fieldName": "initials"
395
+ },
396
+ {
397
+ "name": "loading",
398
+ "type": {
399
+ "text": "'eager' | 'lazy'"
400
+ },
401
+ "default": "'eager'",
402
+ "description": "Indicates how the browser should load the image.",
403
+ "fieldName": "loading"
404
+ },
405
+ {
406
+ "name": "shape",
407
+ "type": {
408
+ "text": "'circle' | 'square' | 'rounded'"
409
+ },
410
+ "default": "'circle'",
411
+ "description": "The shape of the avatar.",
412
+ "fieldName": "shape"
413
+ }
414
+ ],
415
+ "superclass": {
416
+ "name": "FlowRdfElement",
417
+ "module": "/src/internal/flow-ui-rdf-element"
418
+ },
419
+ "tagName": "flow-ui-avatar",
420
+ "summary": "Avatars are used to represent a person or object.",
421
+ "dependencies": [
422
+ "flow-ui-icon"
423
+ ],
424
+ "customElement": true
425
+ }
426
+ ],
427
+ "exports": [
428
+ {
429
+ "kind": "js",
430
+ "name": "default",
431
+ "declaration": {
432
+ "name": "FlowUiAvatar",
433
+ "module": "components/avatar/avatar.component.js"
434
+ }
435
+ }
436
+ ]
437
+ },
438
+ {
439
+ "kind": "javascript-module",
440
+ "path": "components/avatar/avatar.js",
441
+ "declarations": [],
442
+ "exports": [
443
+ {
444
+ "kind": "js",
445
+ "name": "default",
446
+ "declaration": {
447
+ "name": "FlowUiAvatar",
448
+ "module": "components/avatar/avatar.js"
449
+ }
450
+ }
451
+ ]
452
+ },
268
453
  {
269
454
  "kind": "javascript-module",
270
455
  "path": "components/animation/animation.component.js",
@@ -1417,191 +1602,6 @@
1417
1602
  }
1418
1603
  ]
1419
1604
  },
1420
- {
1421
- "kind": "javascript-module",
1422
- "path": "components/avatar/avatar.component.js",
1423
- "declarations": [
1424
- {
1425
- "kind": "class",
1426
- "description": "",
1427
- "name": "FlowUiAvatar",
1428
- "cssProperties": [
1429
- {
1430
- "description": "The size of the avatar.",
1431
- "name": "--size"
1432
- }
1433
- ],
1434
- "cssParts": [
1435
- {
1436
- "description": "The component's base wrapper.",
1437
- "name": "base"
1438
- },
1439
- {
1440
- "description": "The container that wraps the avatar's icon.",
1441
- "name": "icon"
1442
- },
1443
- {
1444
- "description": "The container that wraps the avatar's initials.",
1445
- "name": "initials"
1446
- },
1447
- {
1448
- "description": "The avatar image. Only shown when the `image` attribute is set.",
1449
- "name": "image"
1450
- }
1451
- ],
1452
- "slots": [
1453
- {
1454
- "description": "The default icon to use when no image or initials are present. Works best with `<flow-ui-icon>`.",
1455
- "name": "icon"
1456
- }
1457
- ],
1458
- "members": [
1459
- {
1460
- "kind": "field",
1461
- "name": "hasError",
1462
- "type": {
1463
- "text": "boolean"
1464
- },
1465
- "privacy": "private",
1466
- "default": "false"
1467
- },
1468
- {
1469
- "kind": "field",
1470
- "name": "image",
1471
- "type": {
1472
- "text": "string"
1473
- },
1474
- "default": "''",
1475
- "description": "The image source to use for the avatar.",
1476
- "attribute": "image"
1477
- },
1478
- {
1479
- "kind": "field",
1480
- "name": "label",
1481
- "type": {
1482
- "text": "string"
1483
- },
1484
- "default": "''",
1485
- "description": "A label to use to describe the avatar to assistive devices.",
1486
- "attribute": "label"
1487
- },
1488
- {
1489
- "kind": "field",
1490
- "name": "initials",
1491
- "type": {
1492
- "text": "string"
1493
- },
1494
- "default": "''",
1495
- "description": "Initials to use as a fallback when no image is available (1-2 characters max recommended).",
1496
- "attribute": "initials"
1497
- },
1498
- {
1499
- "kind": "field",
1500
- "name": "loading",
1501
- "type": {
1502
- "text": "'eager' | 'lazy'"
1503
- },
1504
- "default": "'eager'",
1505
- "description": "Indicates how the browser should load the image.",
1506
- "attribute": "loading"
1507
- },
1508
- {
1509
- "kind": "field",
1510
- "name": "shape",
1511
- "type": {
1512
- "text": "'circle' | 'square' | 'rounded'"
1513
- },
1514
- "default": "'circle'",
1515
- "description": "The shape of the avatar.",
1516
- "attribute": "shape",
1517
- "reflects": true
1518
- }
1519
- ],
1520
- "attributes": [
1521
- {
1522
- "name": "image",
1523
- "type": {
1524
- "text": "string"
1525
- },
1526
- "default": "''",
1527
- "description": "The image source to use for the avatar.",
1528
- "fieldName": "image"
1529
- },
1530
- {
1531
- "name": "label",
1532
- "type": {
1533
- "text": "string"
1534
- },
1535
- "default": "''",
1536
- "description": "A label to use to describe the avatar to assistive devices.",
1537
- "fieldName": "label"
1538
- },
1539
- {
1540
- "name": "initials",
1541
- "type": {
1542
- "text": "string"
1543
- },
1544
- "default": "''",
1545
- "description": "Initials to use as a fallback when no image is available (1-2 characters max recommended).",
1546
- "fieldName": "initials"
1547
- },
1548
- {
1549
- "name": "loading",
1550
- "type": {
1551
- "text": "'eager' | 'lazy'"
1552
- },
1553
- "default": "'eager'",
1554
- "description": "Indicates how the browser should load the image.",
1555
- "fieldName": "loading"
1556
- },
1557
- {
1558
- "name": "shape",
1559
- "type": {
1560
- "text": "'circle' | 'square' | 'rounded'"
1561
- },
1562
- "default": "'circle'",
1563
- "description": "The shape of the avatar.",
1564
- "fieldName": "shape"
1565
- }
1566
- ],
1567
- "superclass": {
1568
- "name": "FlowRdfElement",
1569
- "module": "/src/internal/flow-ui-rdf-element"
1570
- },
1571
- "tagName": "flow-ui-avatar",
1572
- "summary": "Avatars are used to represent a person or object.",
1573
- "dependencies": [
1574
- "flow-ui-icon"
1575
- ],
1576
- "customElement": true
1577
- }
1578
- ],
1579
- "exports": [
1580
- {
1581
- "kind": "js",
1582
- "name": "default",
1583
- "declaration": {
1584
- "name": "FlowUiAvatar",
1585
- "module": "components/avatar/avatar.component.js"
1586
- }
1587
- }
1588
- ]
1589
- },
1590
- {
1591
- "kind": "javascript-module",
1592
- "path": "components/avatar/avatar.js",
1593
- "declarations": [],
1594
- "exports": [
1595
- {
1596
- "kind": "js",
1597
- "name": "default",
1598
- "declaration": {
1599
- "name": "FlowUiAvatar",
1600
- "module": "components/avatar/avatar.js"
1601
- }
1602
- }
1603
- ]
1604
- },
1605
1605
  {
1606
1606
  "kind": "javascript-module",
1607
1607
  "path": "components/badge/badge.component.js",
@@ -12654,7 +12654,7 @@
12654
12654
  "privacy": "private",
12655
12655
  "parameters": [
12656
12656
  {
12657
- "name": "ev",
12657
+ "name": "_ev",
12658
12658
  "type": {
12659
12659
  "text": "DragEvent"
12660
12660
  }
@@ -25838,6 +25838,6 @@
25838
25838
  ],
25839
25839
  "package": {
25840
25840
  "name": "@emuanalytics/flow-rdf-ui",
25841
- "version": "4.1.10"
25841
+ "version": "4.1.12"
25842
25842
  }
25843
25843
  }
@@ -1,3 +1,3 @@
1
- const version = "4.1.10";
1
+ const version = "4.1.12";
2
2
 
3
3
  export { version };
@@ -35,6 +35,42 @@
35
35
  ],
36
36
  "references": []
37
37
  },
38
+ {
39
+ "name": "flow-ui-avatar",
40
+ "description": "Avatars are used to represent a person or object.\n\n\n---\n\n\n\n\n### **Slots:**\n - **icon** - The default icon to use when no image or initials are present. Works best with `<flow-ui-icon>`.\n\n### **CSS Properties:**\n - **--size** - The size of the avatar. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **icon** - The container that wraps the avatar's icon.\n- **initials** - The container that wraps the avatar's initials.\n- **image** - The avatar image. Only shown when the `image` attribute is set.",
41
+ "attributes": [
42
+ {
43
+ "name": "image",
44
+ "description": "The image source to use for the avatar.",
45
+ "values": []
46
+ },
47
+ {
48
+ "name": "label",
49
+ "description": "A label to use to describe the avatar to assistive devices.",
50
+ "values": []
51
+ },
52
+ {
53
+ "name": "initials",
54
+ "description": "Initials to use as a fallback when no image is available (1-2 characters max recommended).",
55
+ "values": []
56
+ },
57
+ {
58
+ "name": "loading",
59
+ "description": "Indicates how the browser should load the image.",
60
+ "values": [{ "name": "eager" }, { "name": "lazy" }]
61
+ },
62
+ {
63
+ "name": "shape",
64
+ "description": "The shape of the avatar.",
65
+ "values": [
66
+ { "name": "circle" },
67
+ { "name": "square" },
68
+ { "name": "rounded" }
69
+ ]
70
+ }
71
+ ],
72
+ "references": []
73
+ },
38
74
  {
39
75
  "name": "flow-ui-animation",
40
76
  "description": "Animate elements declaratively with over 100 animation presets. Powered by the [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API).\n\n\n---\n\n\n\n\n### **Events:**\n - **flow-ui-cancel** - Emitted when the animation is canceled.\n- **flow-ui-finish** - Emitted when the animation finishes.\n- **flow-ui-start** - Emitted when the animation starts or restarts.\n\n### **Methods:**\n - **cancel()** - Clears all keyframe effects caused by this animation and aborts its playback.\n- **finish()** - Sets the playback time to the end of the animation corresponding to the current playback direction.\n\n### **Slots:**\n - _default_ - The element to animate. Avoid slotting in more than one element, as subsequent ones will be ignored. To animate multiple elements, either wrap them in a single container or use multiple `<flow-ui-animation>` elements.",
@@ -201,42 +237,6 @@
201
237
  ],
202
238
  "references": []
203
239
  },
204
- {
205
- "name": "flow-ui-avatar",
206
- "description": "Avatars are used to represent a person or object.\n\n\n---\n\n\n\n\n### **Slots:**\n - **icon** - The default icon to use when no image or initials are present. Works best with `<flow-ui-icon>`.\n\n### **CSS Properties:**\n - **--size** - The size of the avatar. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **icon** - The container that wraps the avatar's icon.\n- **initials** - The container that wraps the avatar's initials.\n- **image** - The avatar image. Only shown when the `image` attribute is set.",
207
- "attributes": [
208
- {
209
- "name": "image",
210
- "description": "The image source to use for the avatar.",
211
- "values": []
212
- },
213
- {
214
- "name": "label",
215
- "description": "A label to use to describe the avatar to assistive devices.",
216
- "values": []
217
- },
218
- {
219
- "name": "initials",
220
- "description": "Initials to use as a fallback when no image is available (1-2 characters max recommended).",
221
- "values": []
222
- },
223
- {
224
- "name": "loading",
225
- "description": "Indicates how the browser should load the image.",
226
- "values": [{ "name": "eager" }, { "name": "lazy" }]
227
- },
228
- {
229
- "name": "shape",
230
- "description": "The shape of the avatar.",
231
- "values": [
232
- { "name": "circle" },
233
- { "name": "square" },
234
- { "name": "rounded" }
235
- ]
236
- }
237
- ],
238
- "references": []
239
- },
240
240
  {
241
241
  "name": "flow-ui-badge",
242
242
  "description": "Badges are used to draw attention and display statuses or counts.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The badge's content.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emuanalytics/flow-rdf-ui",
3
- "version": "4.1.10",
3
+ "version": "4.1.12",
4
4
  "type": "module",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",