@cratis/scene.blueprint.default 4.32.0 → 4.33.0
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/ComponentName.ts +12 -0
- package/defaultBlueprintComponents.ts +5 -1
- package/dist/cjs/ComponentName.js +4 -0
- package/dist/cjs/ComponentName.js.map +1 -1
- package/dist/cjs/defaultBlueprint.js +1 -1
- package/dist/cjs/defaultBlueprintComponentMetadata.js +2 -2
- package/dist/cjs/defaultBlueprintComponents.js +10 -2
- package/dist/cjs/defaultBlueprintComponents.js.map +1 -1
- package/dist/cjs/foundation/ChartWrapper.js +520 -0
- package/dist/cjs/foundation/ChartWrapper.js.map +1 -0
- package/dist/cjs/foundation/ColumnChooser.js +156 -0
- package/dist/cjs/foundation/ColumnChooser.js.map +1 -0
- package/dist/cjs/foundation/FilterBuilder.js +307 -0
- package/dist/cjs/foundation/FilterBuilder.js.map +1 -0
- package/dist/cjs/foundation/SavedViewsMenu.js +199 -0
- package/dist/cjs/foundation/SavedViewsMenu.js.map +1 -0
- package/dist/cjs/foundation/chartGeometry.js +101 -0
- package/dist/cjs/foundation/chartGeometry.js.map +1 -0
- package/dist/cjs/foundation/columnModel.js +43 -0
- package/dist/cjs/foundation/columnModel.js.map +1 -0
- package/dist/cjs/foundation/filterModel.js +123 -0
- package/dist/cjs/foundation/filterModel.js.map +1 -0
- package/dist/cjs/foundation/foundationComponentMetadata.js +28 -0
- package/dist/cjs/foundation/foundationComponentMetadata.js.map +1 -1
- package/dist/cjs/foundation/foundationDescriptors.js +153 -0
- package/dist/cjs/foundation/foundationDescriptors.js.map +1 -1
- package/dist/cjs/foundation/foundationSamples.js +130 -0
- package/dist/cjs/foundation/foundationSamples.js.map +1 -1
- package/dist/cjs/foundation/foundationStrings.js +25 -0
- package/dist/cjs/foundation/foundationStrings.js.map +1 -1
- package/dist/cjs/foundation/useElementWidth.js +31 -0
- package/dist/cjs/foundation/useElementWidth.js.map +1 -0
- package/dist/cjs/foundation/viewModel.js +24 -0
- package/dist/cjs/foundation/viewModel.js.map +1 -0
- package/dist/cjs/index.js +38 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/ComponentName.d.ts +5 -1
- package/dist/esm/ComponentName.d.ts.map +1 -1
- package/dist/esm/ComponentName.js +4 -0
- package/dist/esm/ComponentName.js.map +1 -1
- package/dist/esm/defaultBlueprint.js +1 -1
- package/dist/esm/defaultBlueprintComponentMetadata.js +2 -2
- package/dist/esm/defaultBlueprintComponents.d.ts.map +1 -1
- package/dist/esm/defaultBlueprintComponents.js +10 -2
- package/dist/esm/defaultBlueprintComponents.js.map +1 -1
- package/dist/esm/foundation/ChartWrapper.d.ts +5 -0
- package/dist/esm/foundation/ChartWrapper.d.ts.map +1 -0
- package/dist/esm/foundation/ChartWrapper.js +517 -0
- package/dist/esm/foundation/ChartWrapper.js.map +1 -0
- package/dist/esm/foundation/ColumnChooser.d.ts +3 -0
- package/dist/esm/foundation/ColumnChooser.d.ts.map +1 -0
- package/dist/esm/foundation/ColumnChooser.js +154 -0
- package/dist/esm/foundation/ColumnChooser.js.map +1 -0
- package/dist/esm/foundation/FilterBuilder.d.ts +3 -0
- package/dist/esm/foundation/FilterBuilder.d.ts.map +1 -0
- package/dist/esm/foundation/FilterBuilder.js +305 -0
- package/dist/esm/foundation/FilterBuilder.js.map +1 -0
- package/dist/esm/foundation/Foundation.stories.d.ts +16 -0
- package/dist/esm/foundation/Foundation.stories.d.ts.map +1 -1
- package/dist/esm/foundation/Foundation.stories.js +16 -0
- package/dist/esm/foundation/Foundation.stories.js.map +1 -1
- package/dist/esm/foundation/SavedViewsMenu.d.ts +4 -0
- package/dist/esm/foundation/SavedViewsMenu.d.ts.map +1 -0
- package/dist/esm/foundation/SavedViewsMenu.js +196 -0
- package/dist/esm/foundation/SavedViewsMenu.js.map +1 -0
- package/dist/esm/foundation/chartGeometry.d.ts +34 -0
- package/dist/esm/foundation/chartGeometry.d.ts.map +1 -0
- package/dist/esm/foundation/chartGeometry.js +93 -0
- package/dist/esm/foundation/chartGeometry.js.map +1 -0
- package/dist/esm/foundation/columnModel.d.ts +11 -0
- package/dist/esm/foundation/columnModel.d.ts.map +1 -0
- package/dist/esm/foundation/columnModel.js +38 -0
- package/dist/esm/foundation/columnModel.js.map +1 -0
- package/dist/esm/foundation/filterModel.d.ts +33 -0
- package/dist/esm/foundation/filterModel.d.ts.map +1 -0
- package/dist/esm/foundation/filterModel.js +112 -0
- package/dist/esm/foundation/filterModel.js.map +1 -0
- package/dist/esm/foundation/foundationComponentMetadata.d.ts.map +1 -1
- package/dist/esm/foundation/foundationComponentMetadata.js +28 -0
- package/dist/esm/foundation/foundationComponentMetadata.js.map +1 -1
- package/dist/esm/foundation/foundationDescriptors.d.ts.map +1 -1
- package/dist/esm/foundation/foundationDescriptors.js +154 -1
- package/dist/esm/foundation/foundationDescriptors.js.map +1 -1
- package/dist/esm/foundation/foundationSamples.d.ts.map +1 -1
- package/dist/esm/foundation/foundationSamples.js +130 -0
- package/dist/esm/foundation/foundationSamples.js.map +1 -1
- package/dist/esm/foundation/foundationStrings.d.ts +25 -0
- package/dist/esm/foundation/foundationStrings.d.ts.map +1 -1
- package/dist/esm/foundation/foundationStrings.js +25 -0
- package/dist/esm/foundation/foundationStrings.js.map +1 -1
- package/dist/esm/foundation/index.d.ts +9 -0
- package/dist/esm/foundation/index.d.ts.map +1 -1
- package/dist/esm/foundation/index.js +9 -0
- package/dist/esm/foundation/index.js.map +1 -1
- package/dist/esm/foundation/useElementWidth.d.ts +3 -0
- package/dist/esm/foundation/useElementWidth.d.ts.map +1 -0
- package/dist/esm/foundation/useElementWidth.js +29 -0
- package/dist/esm/foundation/useElementWidth.js.map +1 -0
- package/dist/esm/foundation/viewModel.d.ts +7 -0
- package/dist/esm/foundation/viewModel.d.ts.map +1 -0
- package/dist/esm/foundation/viewModel.js +22 -0
- package/dist/esm/foundation/viewModel.js.map +1 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/foundation/ChartWrapper.tsx +252 -0
- package/foundation/ColumnChooser.tsx +73 -0
- package/foundation/FilterBuilder.tsx +144 -0
- package/foundation/Foundation.stories.tsx +16 -0
- package/foundation/SavedViewsMenu.tsx +94 -0
- package/foundation/chartGeometry.ts +108 -0
- package/foundation/columnModel.ts +39 -0
- package/foundation/filterModel.ts +111 -0
- package/foundation/foundationComponentMetadata.ts +4 -0
- package/foundation/foundationDescriptors.ts +86 -1
- package/foundation/foundationSamples.ts +19 -0
- package/foundation/foundationStrings.ts +25 -0
- package/foundation/index.ts +9 -0
- package/foundation/useElementWidth.ts +31 -0
- package/foundation/viewModel.ts +21 -0
- package/package.json +8 -8
- package/shell/layout.css +285 -0
package/shell/layout.css
CHANGED
|
@@ -1300,3 +1300,288 @@
|
|
|
1300
1300
|
border-radius: var(--foundation-radius);
|
|
1301
1301
|
background: var(--foundation-surface);
|
|
1302
1302
|
}
|
|
1303
|
+
|
|
1304
|
+
/* Chart wrapper. */
|
|
1305
|
+
.foundation-chart {
|
|
1306
|
+
padding: var(--foundation-space-4);
|
|
1307
|
+
border: 1px solid var(--foundation-border);
|
|
1308
|
+
border-radius: var(--foundation-radius);
|
|
1309
|
+
background: var(--foundation-surface);
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
.foundation-chart-figure {
|
|
1313
|
+
display: flex;
|
|
1314
|
+
flex-direction: column;
|
|
1315
|
+
gap: var(--foundation-space-3);
|
|
1316
|
+
margin: 0;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
.foundation-chart-title {
|
|
1320
|
+
font-weight: 600;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
.foundation-chart-canvas {
|
|
1324
|
+
inline-size: 100%;
|
|
1325
|
+
min-inline-size: 0;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
.foundation-chart-plot {
|
|
1329
|
+
display: block;
|
|
1330
|
+
max-inline-size: 100%;
|
|
1331
|
+
margin-inline: auto;
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
.foundation-chart-grid {
|
|
1335
|
+
stroke: var(--foundation-border);
|
|
1336
|
+
stroke-width: 1;
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
.foundation-chart-tick {
|
|
1340
|
+
fill: var(--foundation-muted);
|
|
1341
|
+
font-size: 0.75rem;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
.foundation-chart-stage {
|
|
1345
|
+
fill: var(--foundation-text);
|
|
1346
|
+
font-size: 0.8125rem;
|
|
1347
|
+
font-weight: 600;
|
|
1348
|
+
paint-order: stroke;
|
|
1349
|
+
stroke: var(--foundation-surface);
|
|
1350
|
+
stroke-width: 3px;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
.foundation-chart-legend {
|
|
1354
|
+
display: flex;
|
|
1355
|
+
flex-wrap: wrap;
|
|
1356
|
+
gap: var(--foundation-space-2) var(--foundation-space-4);
|
|
1357
|
+
margin: 0;
|
|
1358
|
+
padding: 0;
|
|
1359
|
+
list-style: none;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
.foundation-chart-legend li {
|
|
1363
|
+
display: inline-flex;
|
|
1364
|
+
align-items: center;
|
|
1365
|
+
gap: var(--foundation-space-2);
|
|
1366
|
+
font-size: 0.875rem;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
.foundation-chart-data summary {
|
|
1370
|
+
cursor: pointer;
|
|
1371
|
+
color: var(--foundation-primary);
|
|
1372
|
+
font-size: 0.875rem;
|
|
1373
|
+
font-weight: 600;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
.foundation-chart-data table {
|
|
1377
|
+
inline-size: 100%;
|
|
1378
|
+
margin-block-start: var(--foundation-space-2);
|
|
1379
|
+
border-collapse: collapse;
|
|
1380
|
+
font-size: 0.875rem;
|
|
1381
|
+
font-variant-numeric: tabular-nums;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
.foundation-chart-data th,
|
|
1385
|
+
.foundation-chart-data td {
|
|
1386
|
+
padding: var(--foundation-space-1) var(--foundation-space-2);
|
|
1387
|
+
border-block-end: 1px solid var(--foundation-border);
|
|
1388
|
+
text-align: start;
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
/* Shared form controls, links, popovers and lists. */
|
|
1392
|
+
.foundation select,
|
|
1393
|
+
.foundation input[type='text'],
|
|
1394
|
+
.foundation input[type='number'],
|
|
1395
|
+
.foundation input[type='date'] {
|
|
1396
|
+
min-block-size: 2.25rem;
|
|
1397
|
+
padding-inline: var(--foundation-space-2);
|
|
1398
|
+
border: 1px solid var(--foundation-border);
|
|
1399
|
+
border-radius: var(--foundation-radius);
|
|
1400
|
+
background: var(--foundation-surface);
|
|
1401
|
+
color: var(--foundation-text);
|
|
1402
|
+
font: inherit;
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
.foundation-link {
|
|
1406
|
+
padding: var(--foundation-space-1) var(--foundation-space-2);
|
|
1407
|
+
border: 0;
|
|
1408
|
+
background: transparent;
|
|
1409
|
+
color: var(--foundation-primary);
|
|
1410
|
+
font: inherit;
|
|
1411
|
+
font-weight: 600;
|
|
1412
|
+
text-decoration: underline;
|
|
1413
|
+
cursor: pointer;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
.foundation-icon-button {
|
|
1417
|
+
display: inline-flex;
|
|
1418
|
+
align-items: center;
|
|
1419
|
+
justify-content: center;
|
|
1420
|
+
min-inline-size: 2.25rem;
|
|
1421
|
+
min-block-size: 2.25rem;
|
|
1422
|
+
padding: 0;
|
|
1423
|
+
border: 1px solid transparent;
|
|
1424
|
+
border-radius: var(--foundation-radius);
|
|
1425
|
+
background: transparent;
|
|
1426
|
+
color: var(--foundation-text);
|
|
1427
|
+
font: inherit;
|
|
1428
|
+
cursor: pointer;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
.foundation-icon-button:hover:not(:disabled) {
|
|
1432
|
+
background: var(--foundation-hover);
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
.foundation-icon-button:disabled {
|
|
1436
|
+
opacity: 0.4;
|
|
1437
|
+
cursor: not-allowed;
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
.foundation-count {
|
|
1441
|
+
color: var(--foundation-muted);
|
|
1442
|
+
font-size: 0.875rem;
|
|
1443
|
+
font-weight: 400;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
.foundation-popover-host {
|
|
1447
|
+
position: relative;
|
|
1448
|
+
display: inline-block;
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
.foundation-popover {
|
|
1452
|
+
position: absolute;
|
|
1453
|
+
inset-block-start: 100%;
|
|
1454
|
+
inset-inline-start: 0;
|
|
1455
|
+
z-index: 10;
|
|
1456
|
+
display: flex;
|
|
1457
|
+
flex-direction: column;
|
|
1458
|
+
gap: var(--foundation-space-1);
|
|
1459
|
+
min-inline-size: 16rem;
|
|
1460
|
+
margin-block-start: var(--foundation-space-1);
|
|
1461
|
+
padding: var(--foundation-space-2);
|
|
1462
|
+
border: 1px solid var(--foundation-border);
|
|
1463
|
+
border-radius: var(--foundation-radius);
|
|
1464
|
+
background: var(--scene-surface-overlay, var(--foundation-surface));
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
.foundation-popover[hidden] {
|
|
1468
|
+
display: none;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
.foundation-list {
|
|
1472
|
+
display: flex;
|
|
1473
|
+
flex-direction: column;
|
|
1474
|
+
margin: 0;
|
|
1475
|
+
padding: 0;
|
|
1476
|
+
list-style: none;
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
.foundation-list-row {
|
|
1480
|
+
display: flex;
|
|
1481
|
+
align-items: center;
|
|
1482
|
+
gap: var(--foundation-space-1);
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
.foundation-check {
|
|
1486
|
+
display: inline-flex;
|
|
1487
|
+
flex: 1;
|
|
1488
|
+
align-items: center;
|
|
1489
|
+
gap: var(--foundation-space-2);
|
|
1490
|
+
min-block-size: var(--foundation-row-height);
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
.foundation-menu-item {
|
|
1494
|
+
display: flex;
|
|
1495
|
+
align-items: center;
|
|
1496
|
+
gap: var(--foundation-space-2);
|
|
1497
|
+
min-block-size: var(--foundation-row-height);
|
|
1498
|
+
padding-inline: var(--foundation-space-2);
|
|
1499
|
+
border: 0;
|
|
1500
|
+
border-radius: var(--foundation-radius);
|
|
1501
|
+
background: transparent;
|
|
1502
|
+
color: var(--foundation-text);
|
|
1503
|
+
font: inherit;
|
|
1504
|
+
text-align: start;
|
|
1505
|
+
cursor: pointer;
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
.foundation-menu-item:hover,
|
|
1509
|
+
.foundation-menu-item:focus-visible {
|
|
1510
|
+
background: var(--foundation-hover);
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
.foundation-menu-item[aria-disabled='true'] {
|
|
1514
|
+
opacity: 0.6;
|
|
1515
|
+
cursor: not-allowed;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
.foundation-menu-check {
|
|
1519
|
+
display: inline-flex;
|
|
1520
|
+
inline-size: 1em;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
.foundation-separator {
|
|
1524
|
+
inline-size: 100%;
|
|
1525
|
+
margin-block: var(--foundation-space-1);
|
|
1526
|
+
border: 0;
|
|
1527
|
+
border-block-start: 1px solid var(--foundation-border);
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
/* Filter builder. */
|
|
1531
|
+
.foundation-filter-builder {
|
|
1532
|
+
padding: var(--foundation-space-3);
|
|
1533
|
+
border: 1px solid var(--foundation-border);
|
|
1534
|
+
border-radius: var(--foundation-radius);
|
|
1535
|
+
background: var(--foundation-surface);
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
.foundation-filter-group {
|
|
1539
|
+
display: flex;
|
|
1540
|
+
flex-direction: column;
|
|
1541
|
+
gap: var(--foundation-space-2);
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
.foundation-filter-group .foundation-filter-group {
|
|
1545
|
+
padding: var(--foundation-space-3);
|
|
1546
|
+
border: 1px dashed var(--foundation-border);
|
|
1547
|
+
border-radius: var(--foundation-radius);
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
.foundation-filter-match,
|
|
1551
|
+
.foundation-filter-actions,
|
|
1552
|
+
.foundation-filter-footer {
|
|
1553
|
+
display: flex;
|
|
1554
|
+
flex-wrap: wrap;
|
|
1555
|
+
align-items: center;
|
|
1556
|
+
gap: var(--foundation-space-2);
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
.foundation-filter-footer {
|
|
1560
|
+
justify-content: space-between;
|
|
1561
|
+
margin-block-start: var(--foundation-space-2);
|
|
1562
|
+
color: var(--foundation-muted);
|
|
1563
|
+
font-size: 0.875rem;
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
.foundation-filter-row {
|
|
1567
|
+
display: grid;
|
|
1568
|
+
grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
|
|
1569
|
+
gap: var(--foundation-space-2);
|
|
1570
|
+
align-items: center;
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
@media (max-width: 40rem) {
|
|
1574
|
+
.foundation-filter-row {
|
|
1575
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
.foundation-filter-row > select,
|
|
1579
|
+
.foundation-filter-row > input {
|
|
1580
|
+
grid-column: 1;
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
.foundation-filter-row > button {
|
|
1584
|
+
grid-column: 2;
|
|
1585
|
+
grid-row: 1;
|
|
1586
|
+
}
|
|
1587
|
+
}
|