@medyll/idae-machine 0.136.5 → 0.136.6

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.
@@ -314,28 +314,32 @@ undefined client-side. publishModel writes both the flags and the equivalent
314
314
  <space-main>
315
315
  <space-header>
316
316
  {#if schemeInfo?.icon}<Icon icon={schemeInfo.icon} class="space-header-icon" />{/if}
317
- <h2 style={schemeInfo?.color ? `color: ${schemeInfo.color};` : undefined}>
318
- {schemeInfo?.name ?? collection}
319
- </h2>
320
- {#if collectionId != null}<span class="space-record">{collectionId}</span>{/if}
321
- {#if canCreate}
322
- <button type="button" class="btn-primary" onclick={openCreate}>
323
- Créer {schemeInfo?.name ?? collection}
324
- </button>
325
- {/if}
326
- <DataCount {collection} label="Total" />
317
+ <space-header-content>
318
+ <h2 style={schemeInfo?.color ? `color: ${schemeInfo.color};` : undefined}>
319
+ Gestion {schemeInfo?.name ?? collection}
320
+ </h2>
321
+ {#if collectionId != null}<span class="space-record">{collectionId}</span>{/if}
322
+ <group-action>
323
+ {#if canCreate}
324
+ <button type="button" class="btn-primary" onclick={openCreate}>
325
+ Créer {schemeInfo?.name ?? collection}
326
+ </button>
327
+ {/if}
328
+ <DataCount {collection} label="Total" />
329
+ </group-action>
330
+
331
+ {#if recentHistory.length}
332
+ <space-header-recent>
333
+ {#each recentHistory as entry (entry.id)}
334
+ <button type="button" class="space-recent-item" onclick={() => openRecord(entry.collection_value)}>
335
+ {entry.label ?? entry.collection_value}
336
+ </button>
337
+ {/each}
338
+ </space-header-recent>
339
+ {/if}
340
+ </space-header-content>
327
341
  </space-header>
328
342
 
329
- {#if recentHistory.length}
330
- <space-header-recent>
331
- {#each recentHistory as entry (entry.id)}
332
- <button type="button" class="space-recent-item" onclick={() => openRecord(entry.collection_value)}>
333
- {entry.label ?? entry.collection_value}
334
- </button>
335
- {/each}
336
- </space-header-recent>
337
- {/if}
338
-
339
343
  <space-overview>
340
344
  {#if classificationPanels.some((p) => p.options.length)}
341
345
  <space-classifications>
@@ -447,29 +451,49 @@ undefined client-side. publishModel writes both the flags and the equivalent
447
451
  @layer components {
448
452
  space-component {
449
453
  display: grid;
450
- grid-template-columns: 1fr minmax(calc(var(--gutter-3xl) * 4), calc(var(--gutter-3xl) * 5.5));
451
- gap: var(--gutter-sm);
452
- padding: var(--pad-sm);
454
+ grid-template-columns:
455
+ clamp(calc(var(--gutter-3xl) * 3), 16vw, calc(var(--gutter-3xl) * 4))
456
+ minmax(0, 1fr);
457
+ grid-template-areas: 'search main';
453
458
  min-block-size: 100%;
454
459
  overflow: hidden;
455
460
  }
456
461
  space-main {
457
462
  display: flex;
463
+ grid-area: main;
458
464
  flex-direction: column;
459
- gap: var(--gutter-sm);
460
465
  min-width: 0;
461
466
  min-block-size: 0;
462
467
  }
463
468
  space-header {
469
+ display: grid;
470
+ grid-template-columns: var(--gutter-3xl) minmax(0, 1fr);
471
+ grid-template-areas: 'icon content';
472
+ min-block-size: calc(var(--gutter-3xl) + var(--gutter-2xl));
473
+ }
474
+ space-header :global(.space-header-icon) {
475
+ grid-area: icon;
476
+ align-self: center;
477
+ justify-self: center;
478
+ }
479
+ space-header-content {
464
480
  display: flex;
465
- align-items: center;
466
- gap: var(--gutter-sm);
467
- flex-wrap: wrap;
481
+ grid-area: content;
482
+ flex-direction: column;
483
+ align-items: flex-start;
484
+ gap: var(--gutter-xs);
485
+ padding: var(--pad-xs);
486
+ min-width: 0;
468
487
  }
469
- space-header h2 {
488
+ space-header-content h2 {
470
489
  margin: 0;
471
490
  text-transform: capitalize;
472
491
  }
492
+ group-action {
493
+ display: flex;
494
+ align-items: center;
495
+ gap: var(--gutter-sm);
496
+ }
473
497
  .space-record {
474
498
  color: var(--color-text-muted);
475
499
  font-size: var(--text-sm);
@@ -515,11 +539,16 @@ undefined client-side. publishModel writes both the flags and the equivalent
515
539
  }
516
540
  space-workspace {
517
541
  display: grid;
518
- grid-template-columns: minmax(0, 1fr) minmax(calc(var(--gutter-3xl) * 4), calc(var(--gutter-3xl) * 5.5));
542
+ grid-template-columns:
543
+ minmax(0, 1fr)
544
+ clamp(calc(var(--gutter-3xl) * 3), 16vw, calc(var(--gutter-3xl) * 4));
519
545
  gap: var(--gutter-sm);
520
546
  flex: 1;
521
547
  min-block-size: 0;
522
548
  }
549
+ space-list:only-child {
550
+ grid-column: 1 / -1;
551
+ }
523
552
  space-related {
524
553
  display: block;
525
554
  overflow: auto;
@@ -557,13 +586,13 @@ undefined client-side. publishModel writes both the flags and the equivalent
557
586
  }
558
587
  space-search {
559
588
  display: flex;
589
+ grid-area: search;
560
590
  flex-direction: column;
561
591
  gap: var(--gutter-sm);
562
592
  position: sticky;
563
593
  top: 0;
564
594
  padding: var(--pad-sm);
565
- border: var(--border-width) solid var(--color-border);
566
- border-radius: var(--radius-xs);
595
+ border-inline-end: var(--border-width) solid var(--color-border);
567
596
  background: var(--color-surface-alt);
568
597
  overflow: auto;
569
598
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "bin": {
5
5
  "idae-machine": "./cli.cjs"
6
6
  },
7
- "version": "0.136.5",
7
+ "version": "0.136.6",
8
8
  "files": [
9
9
  "dist",
10
10
  "!dist/**/*.test.*",
@@ -62,10 +62,10 @@
62
62
  "vite": "^8.2.0",
63
63
  "vitest": "^4.1.10",
64
64
  "@medyll/idae-eslint-config": "0.1.6",
65
- "@medyll/idae-shared": "1.0.5",
66
- "@medyll/qoolie": "0.0.3",
65
+ "@medyll/idae-router": "0.1.1",
67
66
  "@medyll/idae-socket": "0.0.5",
68
- "@medyll/idae-router": "0.1.1"
67
+ "@medyll/idae-shared": "1.0.5",
68
+ "@medyll/qoolie": "0.0.4"
69
69
  },
70
70
  "scope": "medyll",
71
71
  "keywords": [
@@ -83,9 +83,9 @@
83
83
  "command": "^1.1.1",
84
84
  "commander": "^15.0.0",
85
85
  "@medyll/idae-api": "0.187.3",
86
- "@medyll/idae-idbql": "0.185.3",
87
86
  "@medyll/idae-be": "1.96.3",
88
- "@medyll/qoolie": "0.0.3"
87
+ "@medyll/idae-idbql": "0.185.3",
88
+ "@medyll/qoolie": "0.0.4"
89
89
  },
90
90
  "scripts": {
91
91
  "dev": "vite dev --host",