@commmerce/ui 1.4.0 → 1.5.1

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.
Files changed (103) hide show
  1. package/dist/calendar.js +15 -19
  2. package/dist/cdn.js +1270 -1139
  3. package/dist/components/accordion.js +9 -8
  4. package/dist/components/action-bar.js +15 -15
  5. package/dist/components/action-menu.js +10 -9
  6. package/dist/components/app-card.js +15 -14
  7. package/dist/components/app-frame.d.ts +14 -0
  8. package/dist/components/app-frame.js +22 -1
  9. package/dist/components/badge.d.ts +2 -1
  10. package/dist/components/badge.js +4 -3
  11. package/dist/components/banner.js +6 -5
  12. package/dist/components/board.js +18 -18
  13. package/dist/components/bottom-navigation.d.ts +1 -1
  14. package/dist/components/bottom-navigation.js +9 -7
  15. package/dist/components/bottom-sheet.d.ts +1 -1
  16. package/dist/components/bottom-sheet.js +9 -8
  17. package/dist/components/button.d.ts +3 -3
  18. package/dist/components/button.js +22 -19
  19. package/dist/components/calendar.js +29 -28
  20. package/dist/components/card.d.ts +1 -1
  21. package/dist/components/card.js +18 -12
  22. package/dist/components/checkbox.js +8 -7
  23. package/dist/components/color-field.js +9 -13
  24. package/dist/components/combobox.d.ts +8 -0
  25. package/dist/components/combobox.js +18 -18
  26. package/dist/components/comment.d.ts +1 -1
  27. package/dist/components/comment.js +12 -13
  28. package/dist/components/data-table.js +12 -11
  29. package/dist/components/date-picker.js +1 -1
  30. package/dist/components/date-range-picker.js +7 -7
  31. package/dist/components/empty-state.d.ts +1 -1
  32. package/dist/components/empty-state.js +16 -16
  33. package/dist/components/file-upload.js +18 -16
  34. package/dist/components/filter-panel.js +1 -1
  35. package/dist/components/flash-offer-bar.js +8 -7
  36. package/dist/components/global-search.d.ts +1 -1
  37. package/dist/components/global-search.js +12 -9
  38. package/dist/components/grid.d.ts +1 -1
  39. package/dist/components/grid.js +1 -1
  40. package/dist/components/header-bar.js +38 -31
  41. package/dist/components/info-panel.d.ts +1 -1
  42. package/dist/components/info-panel.js +11 -10
  43. package/dist/components/layout.d.ts +1 -1
  44. package/dist/components/layout.js +1 -1
  45. package/dist/components/link-tabs.js +8 -7
  46. package/dist/components/metric.js +4 -4
  47. package/dist/components/mobile-menu.js +16 -15
  48. package/dist/components/modal.js +2 -1
  49. package/dist/components/nested-list.d.ts +2 -2
  50. package/dist/components/nested-list.js +21 -22
  51. package/dist/components/notification-panel.js +12 -11
  52. package/dist/components/option-group.js +10 -11
  53. package/dist/components/page-header.js +16 -15
  54. package/dist/components/page.d.ts +19 -4
  55. package/dist/components/page.js +24 -8
  56. package/dist/components/pagination.d.ts +1 -1
  57. package/dist/components/pagination.js +16 -9
  58. package/dist/components/progress-bar.js +4 -3
  59. package/dist/components/radio.js +12 -12
  60. package/dist/components/report-tile.d.ts +2 -2
  61. package/dist/components/report-tile.js +18 -18
  62. package/dist/components/resource-list.d.ts +22 -6
  63. package/dist/components/resource-list.js +92 -52
  64. package/dist/components/save-bar.js +8 -8
  65. package/dist/components/search.d.ts +5 -2
  66. package/dist/components/search.js +20 -14
  67. package/dist/components/segmented-control.d.ts +67 -0
  68. package/dist/components/segmented-control.js +76 -0
  69. package/dist/components/select.d.ts +8 -0
  70. package/dist/components/select.js +18 -18
  71. package/dist/components/side-navigation.js +20 -17
  72. package/dist/components/side-panel.js +4 -3
  73. package/dist/components/signature-field.js +20 -18
  74. package/dist/components/skeleton-display.js +4 -4
  75. package/dist/components/skeleton.d.ts +1 -1
  76. package/dist/components/skeleton.js +2 -2
  77. package/dist/components/smart-tip.d.ts +1 -1
  78. package/dist/components/smart-tip.js +16 -16
  79. package/dist/components/spinner.js +1 -1
  80. package/dist/components/stack.d.ts +1 -1
  81. package/dist/components/stack.js +1 -1
  82. package/dist/components/status-tabs.d.ts +4 -3
  83. package/dist/components/status-tabs.js +26 -12
  84. package/dist/components/table-header.d.ts +4 -3
  85. package/dist/components/table-header.js +22 -15
  86. package/dist/components/tag.js +3 -4
  87. package/dist/components/text-field.d.ts +1 -1
  88. package/dist/components/text-field.js +8 -15
  89. package/dist/components/thumbnail.js +1 -1
  90. package/dist/components/timeline.js +12 -11
  91. package/dist/components/toast.js +6 -6
  92. package/dist/components/toggle.js +12 -11
  93. package/dist/components/tooltip.js +4 -3
  94. package/dist/custom-elements.json +933 -158
  95. package/dist/field.d.ts +15 -0
  96. package/dist/field.js +47 -0
  97. package/dist/index.d.ts +1 -0
  98. package/dist/index.js +1 -0
  99. package/dist/overlay.js +5 -4
  100. package/dist/popover.js +8 -8
  101. package/dist/spacing.d.ts +14 -4
  102. package/dist/spacing.js +13 -4
  103. package/package.json +3 -3
@@ -1306,6 +1306,10 @@
1306
1306
  "description": "The admin's frame: puts the Header bar, the Side navigation, the page, the Bottom navigation and the Mobile\nmenu in their places, so every Commmerce product gets the same grid. For Commmerce products only, not for apps:\napps run inside the admin, which already has this frame.\n\nWhen the frame is 1024px wide or more, the side navigation sits on the start side under the header; narrower,\nit is hidden and the bottom navigation is fixed to the bottom of the window. The frame follows its own width\n(normally the window's). The header sticks to the top (below the device's notch or status bar), the side\nnavigation sticks under it and scrolls on its own when it is taller than the window, and the page scrolls with\nthe window. The page gets bottom padding as tall as the bottom navigation, so nothing hides behind it.\n\nThe mobile menu is a full-screen layer above the page and below the bottom navigation, shown while\n`menu-open` is set. Set `menu-item` to the value of the bottom navigation item that opens it (usually `more`)\nand the frame opens and closes it for you; otherwise listen for `cm-navigate` and set `menu-open` yourself.\n\nThe frame adds one landmark, `main`, around the page. The header bar (`banner`) and the navigations (`nav`)\nbring their own, so don't wrap them, and don't put another `main` in the page.",
1307
1307
  "name": "CmAppFrame",
1308
1308
  "cssProperties": [
1309
+ {
1310
+ "description": "Gap around the panel (`panel`) and around the side navigation. Default `var(--cm-space-20)`.",
1311
+ "name": "--cm-app-frame-gutter"
1312
+ },
1309
1313
  {
1310
1314
  "description": "Extra space at the end of the page, for a bar of your own fixed to the bottom of the window (e.g. a field app's own bottom navigation). Added to the frame's padding for its bottom navigation. Default `0px`.",
1311
1315
  "name": "--cm-app-frame-bottom-offset"
@@ -1361,6 +1365,18 @@
1361
1365
  "description": "Value of the bottom navigation item that opens and closes the mobile menu, e.g. `more` for\n`<cm-nav-item label=\"More\" value=\"more\">`. When set, choosing it toggles `menu-open`, Escape closes the\nmenu, and choosing a row in the menu closes it. Empty: you wire the menu yourself.",
1362
1366
  "attribute": "menu-item"
1363
1367
  },
1368
+ {
1369
+ "kind": "field",
1370
+ "name": "panel",
1371
+ "privacy": "public",
1372
+ "type": {
1373
+ "text": "boolean"
1374
+ },
1375
+ "default": "false",
1376
+ "description": "Shows the page in a white rounded panel beside the side navigation, with a gutter around it, on the grey page:\nthe merchant dashboard frame. A `cm-page` inside gets a transparent background. Phones: the panel is edge to edge.",
1377
+ "attribute": "panel",
1378
+ "reflects": true
1379
+ },
1364
1380
  {
1365
1381
  "kind": "field",
1366
1382
  "name": "_wide",
@@ -1461,7 +1477,7 @@
1461
1477
  "type": {
1462
1478
  "text": "CustomEvent"
1463
1479
  },
1464
- "description": "When the frame opens or closes the mobile menu itself: from the `menu-item` in the bottom navigation, Escape, or a choice in the menu. `detail: { open }`. Not fired when you set `menu-open` yourself."
1480
+ "description": "When the frame opens or closes the mobile menu itself: from the `menu-item` in the bottom navigation, Escape, or a choice in the menu. `detail: { open }`. Not fired when you set `menu-open` yourself. With `panel` the frame takes the merchant dashboard's look: the page sits in a white rounded panel (`bg-surface`, `radius-lg`, a 1px `border-subtle`) with a `space-20` gutter beside and below the side navigation card, on the grey `bg-page` under the white header. A `cm-page` inside drops its own grey background. Narrower than 1024px (bottom navigation) the panel runs edge to edge, white, without a gutter or corners, so phones keep every pixel of width."
1465
1481
  }
1466
1482
  ],
1467
1483
  "attributes": [
@@ -1483,6 +1499,15 @@
1483
1499
  "description": "Value of the bottom navigation item that opens and closes the mobile menu, e.g. `more` for\n`<cm-nav-item label=\"More\" value=\"more\">`. When set, choosing it toggles `menu-open`, Escape closes the\nmenu, and choosing a row in the menu closes it. Empty: you wire the menu yourself.",
1484
1500
  "fieldName": "menuItem"
1485
1501
  },
1502
+ {
1503
+ "name": "panel",
1504
+ "type": {
1505
+ "text": "boolean"
1506
+ },
1507
+ "default": "false",
1508
+ "description": "Shows the page in a white rounded panel beside the side navigation, with a gutter around it, on the grey page:\nthe merchant dashboard frame. A `cm-page` inside gets a transparent background. Phones: the panel is edge to edge.",
1509
+ "fieldName": "panel"
1510
+ },
1486
1511
  {
1487
1512
  "name": "_wide",
1488
1513
  "type": {
@@ -1695,7 +1720,7 @@
1695
1720
  "declarations": [
1696
1721
  {
1697
1722
  "kind": "class",
1698
- "description": "Uppercase status pill (\"ORDER PLACED\", \"ACCEPTED\").",
1723
+ "description": "Status pill in sentence case (\"Order placed\", \"5 open\"): 12px medium text on a tinted 20px pill. Write the text in\nsentence case; since 1.5 it is shown as written (it was upper-cased with wide letter-spacing before).",
1699
1724
  "name": "CmBadge",
1700
1725
  "slots": [
1701
1726
  {
@@ -3629,7 +3654,7 @@
3629
3654
  "declarations": [
3630
3655
  {
3631
3656
  "kind": "class",
3632
- "description": "The admin's tab bar on phones and small tablets: up to five destinations with an icon over an uppercase\nlabel, in a white bar with rounded top corners. The last item (\"More\") usually opens the Mobile menu.\nFor Commmerce products only, not for apps.\n\nItems come from `cm-nav-item` children or the `items` property. Mark the main action `primary`\n(Quick add) to draw its icon as a black square.",
3657
+ "description": "The admin's tab bar on phones and small tablets: up to five destinations with an icon over a short\nlabel, in a white bar with rounded top corners. The last item (\"More\") usually opens the Mobile menu.\nFor Commmerce products only, not for apps.\n\nItems come from `cm-nav-item` children or the `items` property. Mark the main action `primary`\n(Quick add) to draw its icon as a black square.",
3633
3658
  "name": "CmBottomNavigation",
3634
3659
  "slots": [
3635
3660
  {
@@ -3892,7 +3917,7 @@
3892
3917
  "declarations": [
3893
3918
  {
3894
3919
  "kind": "class",
3895
- "description": "A sheet that rises from the bottom of a phone screen with a few actions (\"Mark as paid\", \"Generate invoice\")\nor shortcuts (\"Orders\", \"Add orders\"). White with 20px top corners, a round black close button on its top\nedge, and rows split by thin lines. Rows without icons are centred; rows with icons line up left and end in a\nchevron. Use `cm-menu-item` children (or `items`); anything else in the sheet is shown as it is.\n\nA native modal `<dialog>`: the page behind is inert, Esc and the backdrop ask to close through `cm-close`,\nscrolling is locked, and focus returns to the opener.",
3920
+ "description": "A sheet that rises from the bottom of a phone screen with a few actions (\"Mark as paid\", \"Generate invoice\")\nor shortcuts (\"Orders\", \"Add orders\"). White with 12px top corners, a round black close button on its top\nedge, and rows split by thin lines. Rows without icons are centred; rows with icons line up left and end in a\nchevron. Use `cm-menu-item` children (or `items`); anything else in the sheet is shown as it is.\n\nA native modal `<dialog>`: the page behind is inert, Esc and the backdrop ask to close through `cm-close`,\nscrolling is locked, and focus returns to the opener.",
3896
3921
  "name": "CmBottomSheet",
3897
3922
  "slots": [
3898
3923
  {
@@ -4086,7 +4111,7 @@
4086
4111
  "text": "array"
4087
4112
  },
4088
4113
  "static": true,
4089
- "default": "[ base, css` :host { display: contents; } dialog { padding: 0; border: 0; margin: 0; max-width: none; max-height: none; background: transparent; color: inherit; font: inherit; overflow: visible; } dialog::backdrop { background: var(--cm-overlay, rgba(0, 0, 0, 0.4)); } .panel { display: flex; flex-direction: column; background: var(--cm-bg-surface); color: var(--cm-text-default); overflow: hidden; outline: none; } .head { display: flex; align-items: center; gap: var(--cm-space-10); flex: none; min-height: 40px; padding-block: 8px; padding-inline: 15px 10px; background: var(--cm-bg-panel-header); color: var(--cm-text-on-dark); } .head h2 { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; } .x { display: grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--cm-radius-sm); background: none; color: inherit; cursor: pointer; } .x:focus-visible { outline: 2px solid var(--cm-text-on-dark); outline-offset: 0; } .body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: var(--cm-space-20); font-size: 14px; line-height: 20px; } .foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--cm-space-10); flex: none; padding: var(--cm-space-15) var(--cm-space-20); border-top: var(--cm-border-1) solid var(--cm-border-default); } .foot[hidden] { display: none; } @media (prefers-reduced-motion: no-preference) { dialog[open] .panel { animation: cm-ovl-in 160ms ease-out; } } @keyframes cm-ovl-in { from { opacity: 0; } to { opacity: 1; } } `, ]",
4114
+ "default": "[ base, css` :host { display: contents; } dialog { padding: 0; border: 0; margin: 0; max-width: none; max-height: none; background: transparent; color: inherit; font: inherit; overflow: visible; } dialog::backdrop { background: var(--cm-overlay, rgba(0, 0, 0, 0.4)); } .panel { display: flex; flex-direction: column; background: var(--cm-bg-surface); color: var(--cm-text-default); overflow: hidden; outline: none; } .head { display: flex; align-items: center; gap: var(--cm-space-8); flex: none; min-height: 40px; padding-block: var(--cm-space-8); padding-inline: var(--cm-space-16) var(--cm-space-8); background: var(--cm-bg-panel-header); color: var(--cm-text-on-dark); } .head h2 { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; } .x { display: grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--cm-radius-sm); background: none; color: inherit; cursor: pointer; } .x:focus-visible { outline: 2px solid var(--cm-text-on-dark); outline-offset: 0; } .body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: var(--cm-space-20); font-size: 14px; line-height: 20px; } .foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--cm-space-8); flex: none; padding: var(--cm-space-12) var(--cm-space-20); border-top: var(--cm-border-1) solid var(--cm-border-subtle); } .foot[hidden] { display: none; } @media (prefers-reduced-motion: no-preference) { dialog[open] .panel { animation: cm-ovl-in var(--cm-duration-base) var(--cm-easing-standard); } } @keyframes cm-ovl-in { from { opacity: 0; } to { opacity: 1; } } `, ]",
4090
4115
  "inheritedFrom": {
4091
4116
  "name": "CmOverlay",
4092
4117
  "module": "src/overlay.ts"
@@ -4546,7 +4571,7 @@
4546
4571
  "text": "'primary' | 'secondary'"
4547
4572
  },
4548
4573
  "default": "'secondary'",
4549
- "description": "`primary` = black fill (one per group); `secondary` = light fill, black outline.",
4574
+ "description": "`primary` = black fill (one per group); `secondary` = white fill with a grey outline, like a field (since 1.5; was a black outline).",
4550
4575
  "attribute": "variant",
4551
4576
  "reflects": true
4552
4577
  },
@@ -4558,7 +4583,7 @@
4558
4583
  "text": "'large' | 'medium' | 'slim'"
4559
4584
  },
4560
4585
  "default": "'medium'",
4561
- "description": "`large` 46px (save bars), `medium` 32px, `slim` 24px.",
4586
+ "description": "`large` 40px (save bars, page actions), `medium` 36px (default), `slim` 32px (toolbars, table rows). Text is 14px (13px on slim). On touch screens every size is at least 44px tall. Sizes changed in 1.5 (were 46, 32 and 24px).",
4562
4587
  "attribute": "size",
4563
4588
  "reflects": true
4564
4589
  },
@@ -4802,7 +4827,7 @@
4802
4827
  "text": "'primary' | 'secondary'"
4803
4828
  },
4804
4829
  "default": "'secondary'",
4805
- "description": "`primary` = black fill (one per group); `secondary` = light fill, black outline.",
4830
+ "description": "`primary` = black fill (one per group); `secondary` = white fill with a grey outline, like a field (since 1.5; was a black outline).",
4806
4831
  "fieldName": "variant"
4807
4832
  },
4808
4833
  {
@@ -4811,7 +4836,7 @@
4811
4836
  "text": "'large' | 'medium' | 'slim'"
4812
4837
  },
4813
4838
  "default": "'medium'",
4814
- "description": "`large` 46px (save bars), `medium` 32px, `slim` 24px.",
4839
+ "description": "`large` 40px (save bars, page actions), `medium` 36px (default), `slim` 32px (toolbars, table rows). Text is 14px (13px on slim). On touch screens every size is at least 44px tall. Sizes changed in 1.5 (were 46, 32 and 24px).",
4815
4840
  "fieldName": "size"
4816
4841
  },
4817
4842
  {
@@ -7185,7 +7210,7 @@
7185
7210
  "text": "string"
7186
7211
  },
7187
7212
  "default": "''",
7188
- "description": "One sentence under the title in text-tertiary.",
7213
+ "description": "One sentence under the title, 13px in text-tertiary.",
7189
7214
  "attribute": "description"
7190
7215
  },
7191
7216
  {
@@ -7272,7 +7297,7 @@
7272
7297
  "text": "string"
7273
7298
  },
7274
7299
  "default": "''",
7275
- "description": "One sentence under the title in text-tertiary.",
7300
+ "description": "One sentence under the title, 13px in text-tertiary.",
7276
7301
  "fieldName": "description"
7277
7302
  },
7278
7303
  {
@@ -8540,6 +8565,18 @@
8540
8565
  "attribute": "multiple",
8541
8566
  "reflects": true
8542
8567
  },
8568
+ {
8569
+ "kind": "field",
8570
+ "name": "size",
8571
+ "privacy": "public",
8572
+ "type": {
8573
+ "text": "'default' | 'small'"
8574
+ },
8575
+ "default": "'default'",
8576
+ "description": "`small`: a 32px box with a 13px label, for toolbars, filter rows and filter panels. Default: a 36px box. On touch\nscreens both are 44px. Since 1.5.",
8577
+ "attribute": "size",
8578
+ "reflects": true
8579
+ },
8543
8580
  {
8544
8581
  "kind": "field",
8545
8582
  "name": "allowCustom",
@@ -9168,6 +9205,15 @@
9168
9205
  "description": "Lets the merchant choose several options, shown as removable tags. Backspace in the empty box removes the last one.",
9169
9206
  "fieldName": "multiple"
9170
9207
  },
9208
+ {
9209
+ "name": "size",
9210
+ "type": {
9211
+ "text": "'default' | 'small'"
9212
+ },
9213
+ "default": "'default'",
9214
+ "description": "`small`: a 32px box with a 13px label, for toolbars, filter rows and filter panels. Default: a 36px box. On touch\nscreens both are 44px. Since 1.5.",
9215
+ "fieldName": "size"
9216
+ },
9171
9217
  {
9172
9218
  "name": "allow-custom",
9173
9219
  "type": {
@@ -9318,7 +9364,7 @@
9318
9364
  "declarations": [
9319
9365
  {
9320
9366
  "kind": "class",
9321
- "description": "One entry in an order or customer timeline: when it was written, what it says and who wrote it.\nStack several inside any container, `space-10` apart; put a `cm-comment-box` above or below to add new ones.",
9367
+ "description": "One entry in an order or customer timeline: when it was written, what it says and who wrote it.\nStack several inside any container, `space-8` apart; put a `cm-comment-box` above or below to add new ones.",
9322
9368
  "name": "CmComment",
9323
9369
  "slots": [
9324
9370
  {
@@ -12538,7 +12584,7 @@
12538
12584
  "text": "'large' | 'small' | 'inline'"
12539
12585
  },
12540
12586
  "default": "'large'",
12541
- "description": "`large` (250px circle, page-level), `small` (200px circle, inside a card or on mobile) or `inline`\n(since 1.2: no circle, a 20px icon, heading and text on one or two left-aligned lines; for an empty list\ninside a card, panel or table). Inline shows the `icon` (default `box`); set `icon=\"\"` for text only.",
12587
+ "description": "`large` (160px circle, page-level), `small` (120px circle, inside a card or on mobile) or `inline`\n(since 1.2: no circle, a 20px icon, heading and text on one or two left-aligned lines; for an empty list\ninside a card, panel or table). Inline shows the `icon` (default `box`); set `icon=\"\"` for text only.",
12542
12588
  "attribute": "size",
12543
12589
  "reflects": true
12544
12590
  },
@@ -12654,7 +12700,7 @@
12654
12700
  "text": "'large' | 'small' | 'inline'"
12655
12701
  },
12656
12702
  "default": "'large'",
12657
- "description": "`large` (250px circle, page-level), `small` (200px circle, inside a card or on mobile) or `inline`\n(since 1.2: no circle, a 20px icon, heading and text on one or two left-aligned lines; for an empty list\ninside a card, panel or table). Inline shows the `icon` (default `box`); set `icon=\"\"` for text only.",
12703
+ "description": "`large` (160px circle, page-level), `small` (120px circle, inside a card or on mobile) or `inline`\n(since 1.2: no circle, a 20px icon, heading and text on one or two left-aligned lines; for an empty list\ninside a card, panel or table). Inline shows the `icon` (default `box`); set `icon=\"\"` for text only.",
12658
12704
  "fieldName": "size"
12659
12705
  },
12660
12706
  {
@@ -13644,7 +13690,7 @@
13644
13690
  "text": "array"
13645
13691
  },
13646
13692
  "static": true,
13647
- "default": "[ base, css` :host { display: contents; } dialog { padding: 0; border: 0; margin: 0; max-width: none; max-height: none; background: transparent; color: inherit; font: inherit; overflow: visible; } dialog::backdrop { background: var(--cm-overlay, rgba(0, 0, 0, 0.4)); } .panel { display: flex; flex-direction: column; background: var(--cm-bg-surface); color: var(--cm-text-default); overflow: hidden; outline: none; } .head { display: flex; align-items: center; gap: var(--cm-space-10); flex: none; min-height: 40px; padding-block: 8px; padding-inline: 15px 10px; background: var(--cm-bg-panel-header); color: var(--cm-text-on-dark); } .head h2 { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; } .x { display: grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--cm-radius-sm); background: none; color: inherit; cursor: pointer; } .x:focus-visible { outline: 2px solid var(--cm-text-on-dark); outline-offset: 0; } .body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: var(--cm-space-20); font-size: 14px; line-height: 20px; } .foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--cm-space-10); flex: none; padding: var(--cm-space-15) var(--cm-space-20); border-top: var(--cm-border-1) solid var(--cm-border-default); } .foot[hidden] { display: none; } @media (prefers-reduced-motion: no-preference) { dialog[open] .panel { animation: cm-ovl-in 160ms ease-out; } } @keyframes cm-ovl-in { from { opacity: 0; } to { opacity: 1; } } `, ]",
13693
+ "default": "[ base, css` :host { display: contents; } dialog { padding: 0; border: 0; margin: 0; max-width: none; max-height: none; background: transparent; color: inherit; font: inherit; overflow: visible; } dialog::backdrop { background: var(--cm-overlay, rgba(0, 0, 0, 0.4)); } .panel { display: flex; flex-direction: column; background: var(--cm-bg-surface); color: var(--cm-text-default); overflow: hidden; outline: none; } .head { display: flex; align-items: center; gap: var(--cm-space-8); flex: none; min-height: 40px; padding-block: var(--cm-space-8); padding-inline: var(--cm-space-16) var(--cm-space-8); background: var(--cm-bg-panel-header); color: var(--cm-text-on-dark); } .head h2 { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; } .x { display: grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--cm-radius-sm); background: none; color: inherit; cursor: pointer; } .x:focus-visible { outline: 2px solid var(--cm-text-on-dark); outline-offset: 0; } .body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: var(--cm-space-20); font-size: 14px; line-height: 20px; } .foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--cm-space-8); flex: none; padding: var(--cm-space-12) var(--cm-space-20); border-top: var(--cm-border-1) solid var(--cm-border-subtle); } .foot[hidden] { display: none; } @media (prefers-reduced-motion: no-preference) { dialog[open] .panel { animation: cm-ovl-in var(--cm-duration-base) var(--cm-easing-standard); } } @keyframes cm-ovl-in { from { opacity: 0; } to { opacity: 1; } } `, ]",
13648
13694
  "inheritedFrom": {
13649
13695
  "name": "CmOverlay",
13650
13696
  "module": "src/overlay.ts"
@@ -14357,7 +14403,7 @@
14357
14403
  "name": "--cm-global-search-results-max-height"
14358
14404
  },
14359
14405
  {
14360
- "description": "Shadow of the results panel. Default `var(--cm-shadow-100)`.",
14406
+ "description": "Shadow of the results panel. Default `var(--cm-shadow-md)`.",
14361
14407
  "name": "--cm-global-search-results-shadow"
14362
14408
  }
14363
14409
  ],
@@ -14889,7 +14935,7 @@
14889
14935
  "text": "SpaceStep"
14890
14936
  },
14891
14937
  "default": "'20'",
14892
- "description": "Space between items: a spacing step (`0`, `10`, `12`, `15`, `20`, `22`, `30`). Default `20`.",
14938
+ "description": "Space between items: a spacing step on the 4px grid (`0`, `4`, `8`, `12`, `16`, `20`, `24`, `32`, `40`, `48`, `64`; the pre-1.5 steps `10`, `15`, `22` and `30` still work and draw as 8, 16, 24 and 32). Default `20`.",
14893
14939
  "attribute": "gap",
14894
14940
  "reflects": true
14895
14941
  }
@@ -14918,7 +14964,7 @@
14918
14964
  "text": "SpaceStep"
14919
14965
  },
14920
14966
  "default": "'20'",
14921
- "description": "Space between items: a spacing step (`0`, `10`, `12`, `15`, `20`, `22`, `30`). Default `20`.",
14967
+ "description": "Space between items: a spacing step on the 4px grid (`0`, `4`, `8`, `12`, `16`, `20`, `24`, `32`, `40`, `48`, `64`; the pre-1.5 steps `10`, `15`, `22` and `30` still work and draw as 8, 16, 24 and 32). Default `20`.",
14922
14968
  "fieldName": "gap"
14923
14969
  }
14924
14970
  ],
@@ -15540,7 +15586,7 @@
15540
15586
  "text": "string"
15541
15587
  },
15542
15588
  "default": "''",
15543
- "description": "Text of the header action, shown uppercase (\"Remove\", \"Edit\"). Leave empty for none.",
15589
+ "description": "Text of the header action, in sentence case (\"Remove\", \"Edit\"). Leave empty for none.",
15544
15590
  "attribute": "action"
15545
15591
  },
15546
15592
  {
@@ -15602,7 +15648,7 @@
15602
15648
  "text": "string"
15603
15649
  },
15604
15650
  "default": "''",
15605
- "description": "Text of the header action, shown uppercase (\"Remove\", \"Edit\"). Leave empty for none.",
15651
+ "description": "Text of the header action, in sentence case (\"Remove\", \"Edit\"). Leave empty for none.",
15606
15652
  "fieldName": "action"
15607
15653
  },
15608
15654
  {
@@ -15745,7 +15791,7 @@
15745
15791
  "text": "SpaceStep"
15746
15792
  },
15747
15793
  "default": "'20'",
15748
- "description": "Space between sections, across and down: a spacing step (`0`, `10`, `12`, `15`, `20`, `22`, `30`). Default `20`.",
15794
+ "description": "Space between sections, across and down: a spacing step on the 4px grid (`0`, `4`, `8`, `12`, `16`, `20`, `24`, `32`, `40`, `48`, `64`; the pre-1.5 steps `10`, `15`, `22` and `30` still work and draw as 8, 16, 24 and 32). Default `20`.",
15749
15795
  "attribute": "gap",
15750
15796
  "reflects": true
15751
15797
  }
@@ -15757,7 +15803,7 @@
15757
15803
  "text": "SpaceStep"
15758
15804
  },
15759
15805
  "default": "'20'",
15760
- "description": "Space between sections, across and down: a spacing step (`0`, `10`, `12`, `15`, `20`, `22`, `30`). Default `20`.",
15806
+ "description": "Space between sections, across and down: a spacing step on the 4px grid (`0`, `4`, `8`, `12`, `16`, `20`, `24`, `32`, `40`, `48`, `64`; the pre-1.5 steps `10`, `15`, `22` and `30` still work and draw as 8, 16, 24 and 32). Default `20`.",
15761
15807
  "fieldName": "gap"
15762
15808
  }
15763
15809
  ],
@@ -17200,7 +17246,7 @@
17200
17246
  "text": "array"
17201
17247
  },
17202
17248
  "static": true,
17203
- "default": "[ base, css` :host { display: contents; } dialog { padding: 0; border: 0; margin: 0; max-width: none; max-height: none; background: transparent; color: inherit; font: inherit; overflow: visible; } dialog::backdrop { background: var(--cm-overlay, rgba(0, 0, 0, 0.4)); } .panel { display: flex; flex-direction: column; background: var(--cm-bg-surface); color: var(--cm-text-default); overflow: hidden; outline: none; } .head { display: flex; align-items: center; gap: var(--cm-space-10); flex: none; min-height: 40px; padding-block: 8px; padding-inline: 15px 10px; background: var(--cm-bg-panel-header); color: var(--cm-text-on-dark); } .head h2 { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; } .x { display: grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--cm-radius-sm); background: none; color: inherit; cursor: pointer; } .x:focus-visible { outline: 2px solid var(--cm-text-on-dark); outline-offset: 0; } .body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: var(--cm-space-20); font-size: 14px; line-height: 20px; } .foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--cm-space-10); flex: none; padding: var(--cm-space-15) var(--cm-space-20); border-top: var(--cm-border-1) solid var(--cm-border-default); } .foot[hidden] { display: none; } @media (prefers-reduced-motion: no-preference) { dialog[open] .panel { animation: cm-ovl-in 160ms ease-out; } } @keyframes cm-ovl-in { from { opacity: 0; } to { opacity: 1; } } `, ]",
17249
+ "default": "[ base, css` :host { display: contents; } dialog { padding: 0; border: 0; margin: 0; max-width: none; max-height: none; background: transparent; color: inherit; font: inherit; overflow: visible; } dialog::backdrop { background: var(--cm-overlay, rgba(0, 0, 0, 0.4)); } .panel { display: flex; flex-direction: column; background: var(--cm-bg-surface); color: var(--cm-text-default); overflow: hidden; outline: none; } .head { display: flex; align-items: center; gap: var(--cm-space-8); flex: none; min-height: 40px; padding-block: var(--cm-space-8); padding-inline: var(--cm-space-16) var(--cm-space-8); background: var(--cm-bg-panel-header); color: var(--cm-text-on-dark); } .head h2 { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; } .x { display: grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--cm-radius-sm); background: none; color: inherit; cursor: pointer; } .x:focus-visible { outline: 2px solid var(--cm-text-on-dark); outline-offset: 0; } .body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: var(--cm-space-20); font-size: 14px; line-height: 20px; } .foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--cm-space-8); flex: none; padding: var(--cm-space-12) var(--cm-space-20); border-top: var(--cm-border-1) solid var(--cm-border-subtle); } .foot[hidden] { display: none; } @media (prefers-reduced-motion: no-preference) { dialog[open] .panel { animation: cm-ovl-in var(--cm-duration-base) var(--cm-easing-standard); } } @keyframes cm-ovl-in { from { opacity: 0; } to { opacity: 1; } } `, ]",
17204
17250
  "inheritedFrom": {
17205
17251
  "name": "CmOverlay",
17206
17252
  "module": "src/overlay.ts"
@@ -17955,7 +18001,7 @@
17955
18001
  "declarations": [
17956
18002
  {
17957
18003
  "kind": "class",
17958
- "description": "One row in a `cm-nested-list`: a 60px bordered row with a label and actions (toggle, edit, delete).\nPut more `cm-nested-item`s inside it to nest them; each level is indented.",
18004
+ "description": "One row in a `cm-nested-list`: a 48px bordered row with a label and actions (toggle, edit, delete).\nPut more `cm-nested-item`s inside it to nest them; each level is indented.",
17959
18005
  "name": "CmNestedItem",
17960
18006
  "slots": [
17961
18007
  {
@@ -18379,7 +18425,7 @@
18379
18425
  },
18380
18426
  {
18381
18427
  "kind": "class",
18382
- "description": "A titled group of rows that nest inside each other, such as a navigation menu with links and\nsub-links, or categories and sub-categories. The heading sits in a 90px grey bar with its own\nactions; rows below are indented one step per level. With `sortable`, each row gets a drag\nhandle that also works from the keyboard (↑/↓, Home/End). With `collapsible`, the bar gets a\nround button that shows and hides the rows. Give sortable lists the same `group` to let top-level rows move\nbetween them, by drag and drop or from the keyboard (since 1.3).",
18428
+ "description": "A titled group of rows that nest inside each other, such as a navigation menu with links and\nsub-links, or categories and sub-categories. The heading sits in a 64px grey bar with its own\nactions; rows below are indented one step per level. With `sortable`, each row gets a drag\nhandle that also works from the keyboard (↑/↓, Home/End). With `collapsible`, the bar gets a\nround button that shows and hides the rows. Give sortable lists the same `group` to let top-level rows move\nbetween them, by drag and drop or from the keyboard (since 1.3).",
18383
18429
  "name": "CmNestedList",
18384
18430
  "slots": [
18385
18431
  {
@@ -19259,7 +19305,7 @@
19259
19305
  "text": "array"
19260
19306
  },
19261
19307
  "static": true,
19262
- "default": "[ base, css` :host { display: contents; } dialog { padding: 0; border: 0; margin: 0; max-width: none; max-height: none; background: transparent; color: inherit; font: inherit; overflow: visible; } dialog::backdrop { background: var(--cm-overlay, rgba(0, 0, 0, 0.4)); } .panel { display: flex; flex-direction: column; background: var(--cm-bg-surface); color: var(--cm-text-default); overflow: hidden; outline: none; } .head { display: flex; align-items: center; gap: var(--cm-space-10); flex: none; min-height: 40px; padding-block: 8px; padding-inline: 15px 10px; background: var(--cm-bg-panel-header); color: var(--cm-text-on-dark); } .head h2 { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; } .x { display: grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--cm-radius-sm); background: none; color: inherit; cursor: pointer; } .x:focus-visible { outline: 2px solid var(--cm-text-on-dark); outline-offset: 0; } .body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: var(--cm-space-20); font-size: 14px; line-height: 20px; } .foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--cm-space-10); flex: none; padding: var(--cm-space-15) var(--cm-space-20); border-top: var(--cm-border-1) solid var(--cm-border-default); } .foot[hidden] { display: none; } @media (prefers-reduced-motion: no-preference) { dialog[open] .panel { animation: cm-ovl-in 160ms ease-out; } } @keyframes cm-ovl-in { from { opacity: 0; } to { opacity: 1; } } `, ]",
19308
+ "default": "[ base, css` :host { display: contents; } dialog { padding: 0; border: 0; margin: 0; max-width: none; max-height: none; background: transparent; color: inherit; font: inherit; overflow: visible; } dialog::backdrop { background: var(--cm-overlay, rgba(0, 0, 0, 0.4)); } .panel { display: flex; flex-direction: column; background: var(--cm-bg-surface); color: var(--cm-text-default); overflow: hidden; outline: none; } .head { display: flex; align-items: center; gap: var(--cm-space-8); flex: none; min-height: 40px; padding-block: var(--cm-space-8); padding-inline: var(--cm-space-16) var(--cm-space-8); background: var(--cm-bg-panel-header); color: var(--cm-text-on-dark); } .head h2 { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; } .x { display: grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--cm-radius-sm); background: none; color: inherit; cursor: pointer; } .x:focus-visible { outline: 2px solid var(--cm-text-on-dark); outline-offset: 0; } .body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: var(--cm-space-20); font-size: 14px; line-height: 20px; } .foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--cm-space-8); flex: none; padding: var(--cm-space-12) var(--cm-space-20); border-top: var(--cm-border-1) solid var(--cm-border-subtle); } .foot[hidden] { display: none; } @media (prefers-reduced-motion: no-preference) { dialog[open] .panel { animation: cm-ovl-in var(--cm-duration-base) var(--cm-easing-standard); } } @keyframes cm-ovl-in { from { opacity: 0; } to { opacity: 1; } } `, ]",
19263
19309
  "inheritedFrom": {
19264
19310
  "name": "CmOverlay",
19265
19311
  "module": "src/overlay.ts"
@@ -20479,8 +20525,14 @@
20479
20525
  "declarations": [
20480
20526
  {
20481
20527
  "kind": "class",
20482
- "description": "A whole admin page: the page header across the top, then the content on `bg-page` with page padding\n(`space-20`, or `space-10` when the page is 640px wide or less).\n`<cm-page><cm-page-header slot=\"header\" heading=\"Orders\"></cm-page-header><cm-layout>…</cm-layout></cm-page>`",
20528
+ "description": "A whole admin page: the page header across the top, then the content with the page padding (`space-24`, or\n`space-16` when the page is 640px wide or less; the same side padding as `cm-page-header`, so titles and content\nline up), centred at a width that suits the page.\n`<cm-page><cm-page-header slot=\"header\" heading=\"Orders\"></cm-page-header><cm-layout>…</cm-layout></cm-page>`\n\nPage anatomy: the header (title, primary action at the end), then a filter or toolbar row, then the content.\nPick the width by what the page holds: `form` (640px) for settings and single-column forms, `detail` (1040px) for\none record (an order, a customer), the default (1600px) for lists and dashboards, `full` for wide tables and reports.\nThe background is `bg-page`; inside `cm-app-frame panel` (at any depth) it is transparent, so the page sits on the white panel.",
20483
20529
  "name": "CmPage",
20530
+ "cssProperties": [
20531
+ {
20532
+ "description": "The page background. Default `bg-page`; `cm-app-frame panel` sets it to `transparent`.",
20533
+ "name": "--cm-page-background"
20534
+ }
20535
+ ],
20484
20536
  "slots": [
20485
20537
  {
20486
20538
  "description": "A `cm-page-header`. Runs edge to edge.",
@@ -20496,6 +20548,18 @@
20496
20548
  }
20497
20549
  ],
20498
20550
  "members": [
20551
+ {
20552
+ "kind": "field",
20553
+ "name": "width",
20554
+ "privacy": "public",
20555
+ "type": {
20556
+ "text": "'' | 'form' | 'detail' | 'wide' | 'full'"
20557
+ },
20558
+ "default": "''",
20559
+ "description": "Largest width of the content, centred: `form` (640px), `detail` (1040px), `wide` (1600px) or `full` (no limit).\nEmpty is `wide`, unless `narrow` or `full-width` is set.",
20560
+ "attribute": "width",
20561
+ "reflects": true
20562
+ },
20499
20563
  {
20500
20564
  "kind": "field",
20501
20565
  "name": "fullWidth",
@@ -20504,7 +20568,7 @@
20504
20568
  "text": "boolean"
20505
20569
  },
20506
20570
  "default": "false",
20507
- "description": "Lets the content use every pixel of width (wide tables, reports). By default it stops at 1600px, centred.",
20571
+ "description": "Same as `width=\"full\"`: the content uses every pixel of width (wide tables, reports).",
20508
20572
  "attribute": "full-width",
20509
20573
  "reflects": true
20510
20574
  },
@@ -20516,19 +20580,28 @@
20516
20580
  "text": "boolean"
20517
20581
  },
20518
20582
  "default": "false",
20519
- "description": "Content at most 800px wide, centred: for settings and single-column forms.",
20583
+ "description": "Content at most 800px wide, centred. Kept from 1.0; prefer `width=\"form\"` (640px) or `width=\"detail\"` (1040px).",
20520
20584
  "attribute": "narrow",
20521
20585
  "reflects": true
20522
20586
  }
20523
20587
  ],
20524
20588
  "attributes": [
20589
+ {
20590
+ "name": "width",
20591
+ "type": {
20592
+ "text": "'' | 'form' | 'detail' | 'wide' | 'full'"
20593
+ },
20594
+ "default": "''",
20595
+ "description": "Largest width of the content, centred: `form` (640px), `detail` (1040px), `wide` (1600px) or `full` (no limit).\nEmpty is `wide`, unless `narrow` or `full-width` is set.",
20596
+ "fieldName": "width"
20597
+ },
20525
20598
  {
20526
20599
  "name": "full-width",
20527
20600
  "type": {
20528
20601
  "text": "boolean"
20529
20602
  },
20530
20603
  "default": "false",
20531
- "description": "Lets the content use every pixel of width (wide tables, reports). By default it stops at 1600px, centred.",
20604
+ "description": "Same as `width=\"full\"`: the content uses every pixel of width (wide tables, reports).",
20532
20605
  "fieldName": "fullWidth"
20533
20606
  },
20534
20607
  {
@@ -20537,7 +20610,7 @@
20537
20610
  "text": "boolean"
20538
20611
  },
20539
20612
  "default": "false",
20540
- "description": "Content at most 800px wide, centred: for settings and single-column forms.",
20613
+ "description": "Content at most 800px wide, centred. Kept from 1.0; prefer `width=\"form\"` (640px) or `width=\"detail\"` (1040px).",
20541
20614
  "fieldName": "narrow"
20542
20615
  }
20543
20616
  ],
@@ -20566,7 +20639,7 @@
20566
20639
  "declarations": [
20567
20640
  {
20568
20641
  "kind": "class",
20569
- "description": "Moves through a long list one page at a time. A 60px bar under a list or table: rows per page on\nthe left, \"Showing 21–40 of 290\" in the middle, and \"Page [n] of N\" with previous/next arrows on\nthe right. On phones only the page field and arrows remain.\n\nThe component does not load data: listen for `cm-page-change` and `cm-page-size-change`, fetch,\nthen set `page` (and `total`) yourself.",
20642
+ "description": "Moves through a long list one page at a time. A 52px bar under a list or table: rows per page on\nthe left, \"Showing 21–40 of 290\" in the middle, and \"Page [n] of N\" with previous/next arrows on\nthe right. On phones only the page field and arrows remain.\n\nThe component does not load data: listen for `cm-page-change` and `cm-page-size-change`, fetch,\nthen set `page` (and `total`) yourself.",
20570
20643
  "name": "CmPagination",
20571
20644
  "members": [
20572
20645
  {
@@ -21854,7 +21927,7 @@
21854
21927
  "name": "CmReportTile",
21855
21928
  "slots": [
21856
21929
  {
21857
- "description": "Your own 58px illustration, used instead of `icon`.",
21930
+ "description": "Your own 40px illustration, used instead of `icon`.",
21858
21931
  "name": "icon"
21859
21932
  }
21860
21933
  ],
@@ -22075,7 +22148,7 @@
22075
22148
  },
22076
22149
  {
22077
22150
  "kind": "class",
22078
- "description": "A titled group of report tiles, e.g. \"Sales\". Tiles are 146px wide, 15px apart, and wrap;\non phones three fit a row.",
22151
+ "description": "A titled group of report tiles, e.g. \"Sales\". Tiles are 146px wide, 12px apart, and wrap;\non phones three fit a row.",
22079
22152
  "name": "CmReportTiles",
22080
22153
  "slots": [
22081
22154
  {
@@ -22168,7 +22241,7 @@
22168
22241
  "name": ""
22169
22242
  },
22170
22243
  {
22171
- "description": "A 50px thumbnail (34px on phones): a `cm-thumbnail` (recommended; `alt=\"\"` when the row names the product) or an `<img>`.",
22244
+ "description": "A 40px thumbnail (32px on phones): a `cm-thumbnail` (recommended; `alt=\"\"` when the row names the product) or an `<img>`.",
22172
22245
  "name": "media"
22173
22246
  },
22174
22247
  {
@@ -22497,7 +22570,7 @@
22497
22570
  },
22498
22571
  {
22499
22572
  "kind": "class",
22500
- "description": "A list of products, orders, customers or other resources, with optional bulk selection.\nWhen `selectable`, a toolbar shows a select-all box with a menu (this page, all matching, none), bulk actions once something is selected,\n\"2 products selected\" and, when there are more results than rows, a button to select all of them.\nPut a `cm-table-header` in the `header` slot for column names and `cm-pagination` under the list.\nThe list lines a slotted `cm-table-header` up with its rows (it sets the header's `resource-rows`): lay each row's\ncontent out as a grid with `grid-template-columns: var(--cm-table-columns)` and `column-gap: var(--cm-space-20)`,\nand set `--cm-table-columns` on the list.",
22573
+ "description": "A list of products, orders, customers or other resources, with optional bulk selection.\nWhen `selectable`, the list's header row (a slim grey bar at the top) has a select-all box lined up with the rows' checkboxes and,\nnext to it, a small chevron menu (this page, all matching, none). Once something is selected the same row shows\n\"2 products selected\", a button to select all matching results when there are more than the rows, and the bulk actions.\nWith a `cm-table-header` in the `header` slot, that header is the row: the box sits in its checkbox column, and the\nselection status and bulk actions cover the column names while rows are selected. (Until something is selected the\nchevron is hidden there, since the column names use its room; the box selects the page.)\nPut a `cm-table-header` in the `header` slot for column names and `cm-pagination` under the list.\nThe list lines a slotted `cm-table-header` up with its rows (it sets the header's `resource-rows`): lay each row's\ncontent out as a grid with `grid-template-columns: var(--cm-table-columns)` and `column-gap: var(--cm-space-20)`,\nand set `--cm-table-columns` on the list.",
22501
22574
  "name": "CmResourceList",
22502
22575
  "slots": [
22503
22576
  {
@@ -22505,15 +22578,15 @@
22505
22578
  "name": ""
22506
22579
  },
22507
22580
  {
22508
- "description": "A `cm-table-header` (or anything) between the toolbar and the rows. A `cm-table-header` here is lined up with the rows, checkbox column included.",
22581
+ "description": "A `cm-table-header` (or anything) above the rows. A `cm-table-header` here is lined up with the rows, checkbox column included, and shares its row with the select-all box.",
22509
22582
  "name": "header"
22510
22583
  },
22511
22584
  {
22512
- "description": "Buttons that act on the selection, e.g. \"Bulk orders\". Shown once a row is selected.",
22585
+ "description": "Buttons that act on the selection, e.g. \"Bulk orders\". Shown once a row is selected, in the header row: use `size=\"slim\"` buttons (32px, the row's height).",
22513
22586
  "name": "bulk-actions"
22514
22587
  },
22515
22588
  {
22516
- "description": "Buttons at the end of the toolbar, e.g. \"Customise columns\".",
22589
+ "description": "Buttons at the end of the header row, e.g. \"Customise columns\". With a slotted header they get a row of their own above it.",
22517
22590
  "name": "actions"
22518
22591
  },
22519
22592
  {
@@ -22632,6 +22705,36 @@
22632
22705
  "default": "0",
22633
22706
  "attribute": "_rows"
22634
22707
  },
22708
+ {
22709
+ "kind": "field",
22710
+ "name": "_hasHeader",
22711
+ "privacy": "public",
22712
+ "type": {
22713
+ "text": "boolean"
22714
+ },
22715
+ "default": "false",
22716
+ "attribute": "_hasHeader"
22717
+ },
22718
+ {
22719
+ "kind": "field",
22720
+ "name": "_hasTable",
22721
+ "privacy": "public",
22722
+ "type": {
22723
+ "text": "boolean"
22724
+ },
22725
+ "default": "false",
22726
+ "attribute": "_hasTable"
22727
+ },
22728
+ {
22729
+ "kind": "field",
22730
+ "name": "_hasActions",
22731
+ "privacy": "public",
22732
+ "type": {
22733
+ "text": "boolean"
22734
+ },
22735
+ "default": "false",
22736
+ "attribute": "_hasActions"
22737
+ },
22635
22738
  {
22636
22739
  "kind": "field",
22637
22740
  "name": "#id",
@@ -22683,6 +22786,11 @@
22683
22786
  "name": "#onHeaderSlot",
22684
22787
  "privacy": "private"
22685
22788
  },
22789
+ {
22790
+ "kind": "field",
22791
+ "name": "#onActionsSlot",
22792
+ "privacy": "private"
22793
+ },
22686
22794
  {
22687
22795
  "kind": "method",
22688
22796
  "name": "#sync",
@@ -22913,6 +23021,30 @@
22913
23021
  "default": "0",
22914
23022
  "fieldName": "_rows"
22915
23023
  },
23024
+ {
23025
+ "name": "_hasHeader",
23026
+ "type": {
23027
+ "text": "boolean"
23028
+ },
23029
+ "default": "false",
23030
+ "fieldName": "_hasHeader"
23031
+ },
23032
+ {
23033
+ "name": "_hasTable",
23034
+ "type": {
23035
+ "text": "boolean"
23036
+ },
23037
+ "default": "false",
23038
+ "fieldName": "_hasTable"
23039
+ },
23040
+ {
23041
+ "name": "_hasActions",
23042
+ "type": {
23043
+ "text": "boolean"
23044
+ },
23045
+ "default": "false",
23046
+ "fieldName": "_hasActions"
23047
+ },
22916
23048
  {
22917
23049
  "name": "strings",
22918
23050
  "type": {
@@ -23403,10 +23535,10 @@
23403
23535
  "name": "size",
23404
23536
  "privacy": "public",
23405
23537
  "type": {
23406
- "text": "'default' | 'large'"
23538
+ "text": "'default' | 'small' | 'large'"
23407
23539
  },
23408
23540
  "default": "'default'",
23409
- "description": "`default` is 42px (table headers, mobile); `large` is 46px (page-level search).",
23541
+ "description": "`default` 36px (lists, table headers); `small` 32px (toolbars and filter rows, since 1.5); `large` 40px (page-level\nsearch). On touch screens every size is 44px.",
23410
23542
  "attribute": "size",
23411
23543
  "reflects": true
23412
23544
  },
@@ -23708,10 +23840,10 @@
23708
23840
  {
23709
23841
  "name": "size",
23710
23842
  "type": {
23711
- "text": "'default' | 'large'"
23843
+ "text": "'default' | 'small' | 'large'"
23712
23844
  },
23713
23845
  "default": "'default'",
23714
- "description": "`default` is 42px (table headers, mobile); `large` is 46px (page-level search).",
23846
+ "description": "`default` 36px (lists, table headers); `small` 32px (toolbars and filter rows, since 1.5); `large` 40px (page-level\nsearch). On touch screens every size is 44px.",
23715
23847
  "fieldName": "size"
23716
23848
  },
23717
23849
  {
@@ -23757,36 +23889,61 @@
23757
23889
  },
23758
23890
  {
23759
23891
  "kind": "javascript-module",
23760
- "path": "src/components/select.ts",
23892
+ "path": "src/components/segmented-control.ts",
23761
23893
  "declarations": [
23762
23894
  {
23763
23895
  "kind": "class",
23764
- "description": "Dropdown field: a labelled box that opens a list of options and shows the chosen one.\nA custom listbox (the WAI-ARIA \"select-only combobox\" pattern) so the open list can match the\ndesign; it keeps native-select keyboard behaviour. Participates in native forms.\n\nOptions come from `<option>` children (easy in plain HTML, PHP and EJS) or the `options` property.\nGroup them under headings with `<optgroup label=\"…\">` or a `group` on each option (since 1.3).",
23765
- "name": "CmSelect",
23896
+ "description": "A compact switch between two to four views or filters of the same content (\"Open / Done\", \"Board / List\"): the\noptions sit side by side in one track and exactly one is selected. Since 1.5.\n\nIt is an option group with a different look, so it behaves exactly like `cm-option-group`: a radio group with one\ntab stop, arrow keys (mirrored in right-to-left text), Home and End move and select, `change` fires on every new\nchoice, and inside a form it submits its `value`. Options come from `<option>` children or the `options` property.\nOption `tone`s are not shown: a view switch has no good or bad answer.\n\nUse it to change what a page or card shows, right away. To pick a setting that is saved with a form, use\n`cm-option-group` (bigger, separate buttons); for five or more choices, `cm-select`; for page sections, tabs.",
23897
+ "name": "CmSegmentedControl",
23898
+ "cssParts": [
23899
+ {
23900
+ "description": "The track (`role=\"radiogroup\"`).",
23901
+ "name": "options"
23902
+ },
23903
+ {
23904
+ "description": "Each option (`role=\"radio\"`).",
23905
+ "name": "option"
23906
+ },
23907
+ {
23908
+ "description": "The visible label, when `label` is set.",
23909
+ "name": "label"
23910
+ }
23911
+ ],
23766
23912
  "slots": [
23767
23913
  {
23768
- "description": "`<option value=\"…\">Label</option>` elements, optionally inside `<optgroup label=\"…\">`. `disabled` (also on an optgroup) and `selected` are honoured.",
23769
- "name": ""
23914
+ "description": "`<option value=\"…\">Label</option>` elements. `disabled` and `selected` are honoured.",
23915
+ "name": "",
23916
+ "inheritedFrom": {
23917
+ "name": "CmOptionGroup",
23918
+ "module": "src/components/option-group.ts"
23919
+ }
23770
23920
  }
23771
23921
  ],
23772
23922
  "members": [
23773
23923
  {
23774
23924
  "kind": "field",
23775
- "name": "formAssociated",
23925
+ "name": "size",
23926
+ "privacy": "public",
23776
23927
  "type": {
23777
- "text": "boolean"
23928
+ "text": "'default' | 'small'"
23778
23929
  },
23779
- "static": true,
23780
- "default": "true"
23930
+ "default": "'default'",
23931
+ "description": "`default`: a 36px track, the height of buttons and fields beside it. `small`: 32px, for toolbars, filter rows and\ncard headers next to small fields and slim buttons. On touch screens both are 44px tall.",
23932
+ "attribute": "size",
23933
+ "reflects": true
23781
23934
  },
23782
23935
  {
23783
23936
  "kind": "field",
23784
- "name": "shadowRootOptions",
23937
+ "name": "formAssociated",
23785
23938
  "type": {
23786
- "text": "object"
23939
+ "text": "boolean"
23787
23940
  },
23788
23941
  "static": true,
23789
- "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true }"
23942
+ "default": "true",
23943
+ "inheritedFrom": {
23944
+ "name": "CmOptionGroup",
23945
+ "module": "src/components/option-group.ts"
23946
+ }
23790
23947
  },
23791
23948
  {
23792
23949
  "kind": "field",
@@ -23796,31 +23953,12 @@
23796
23953
  "text": "string"
23797
23954
  },
23798
23955
  "default": "''",
23799
- "description": "Visible label above the box. Required for accessibility unless the element has an aria-label.",
23800
- "attribute": "label"
23801
- },
23802
- {
23803
- "kind": "field",
23804
- "name": "helpText",
23805
- "privacy": "public",
23806
- "type": {
23807
- "text": "string"
23808
- },
23809
- "default": "''",
23810
- "description": "One sentence under the box in text-tertiary.",
23811
- "attribute": "help-text"
23812
- },
23813
- {
23814
- "kind": "field",
23815
- "name": "error",
23816
- "privacy": "public",
23817
- "type": {
23818
- "text": "string"
23819
- },
23820
- "default": "''",
23821
- "description": "Error message; turns the border critical and sets aria-invalid.",
23822
- "attribute": "error",
23823
- "reflects": true
23956
+ "description": "Heading above the options, e.g. \"Select offer type\". Without one, give the element an `aria-label`.",
23957
+ "attribute": "label",
23958
+ "inheritedFrom": {
23959
+ "name": "CmOptionGroup",
23960
+ "module": "src/components/option-group.ts"
23961
+ }
23824
23962
  },
23825
23963
  {
23826
23964
  "kind": "field",
@@ -23832,7 +23970,11 @@
23832
23970
  "default": "''",
23833
23971
  "description": "Form field name.",
23834
23972
  "attribute": "name",
23835
- "reflects": true
23973
+ "reflects": true,
23974
+ "inheritedFrom": {
23975
+ "name": "CmOptionGroup",
23976
+ "module": "src/components/option-group.ts"
23977
+ }
23836
23978
  },
23837
23979
  {
23838
23980
  "kind": "field",
@@ -23842,30 +23984,27 @@
23842
23984
  "text": "string"
23843
23985
  },
23844
23986
  "default": "''",
23845
- "description": "Value of the chosen option; empty when nothing is chosen.",
23846
- "attribute": "value"
23847
- },
23848
- {
23849
- "kind": "field",
23850
- "name": "placeholder",
23851
- "privacy": "public",
23852
- "type": {
23853
- "text": "string"
23854
- },
23855
- "default": "''",
23856
- "description": "Shown while nothing is chosen, e.g. \"Select customer\".",
23857
- "attribute": "placeholder"
23987
+ "description": "Value of the selected option; empty when nothing is selected.",
23988
+ "attribute": "value",
23989
+ "inheritedFrom": {
23990
+ "name": "CmOptionGroup",
23991
+ "module": "src/components/option-group.ts"
23992
+ }
23858
23993
  },
23859
23994
  {
23860
23995
  "kind": "field",
23861
23996
  "name": "options",
23862
23997
  "privacy": "public",
23863
23998
  "type": {
23864
- "text": "Array<string | SelectOption>"
23999
+ "text": "Array<string | OptionGroupOption>"
23865
24000
  },
23866
24001
  "default": "[]",
23867
- "description": "Options as strings or `{ value, label, disabled, group }`. Used instead of `<option>` children when set.",
23868
- "attribute": "options"
24002
+ "description": "Options as strings or `{ value, label, disabled, tone }`. Used instead of `<option>` children when set.",
24003
+ "attribute": "options",
24004
+ "inheritedFrom": {
24005
+ "name": "CmOptionGroup",
24006
+ "module": "src/components/option-group.ts"
24007
+ }
23869
24008
  },
23870
24009
  {
23871
24010
  "kind": "field",
@@ -23877,7 +24016,11 @@
23877
24016
  "default": "false",
23878
24017
  "description": "The form will not submit until an option is chosen.",
23879
24018
  "attribute": "required",
23880
- "reflects": true
24019
+ "reflects": true,
24020
+ "inheritedFrom": {
24021
+ "name": "CmOptionGroup",
24022
+ "module": "src/components/option-group.ts"
24023
+ }
23881
24024
  },
23882
24025
  {
23883
24026
  "kind": "field",
@@ -23887,62 +24030,45 @@
23887
24030
  "text": "boolean"
23888
24031
  },
23889
24032
  "default": "false",
23890
- "description": "Blocks interaction. Also set by a disabled `<fieldset>`.",
24033
+ "description": "Blocks every option. Also set by a disabled `<fieldset>`.",
23891
24034
  "attribute": "disabled",
23892
- "reflects": true
23893
- },
23894
- {
23895
- "kind": "field",
23896
- "name": "open",
23897
- "privacy": "public",
23898
- "type": {
23899
- "text": "boolean"
23900
- },
23901
- "default": "false",
23902
- "description": "Whether the list is showing.",
23903
- "attribute": "open",
23904
- "reflects": true
23905
- },
23906
- {
23907
- "kind": "field",
23908
- "name": "showGroup",
23909
- "privacy": "public",
23910
- "type": {
23911
- "text": "boolean"
23912
- },
23913
- "default": "false",
23914
- "description": "Shows the chosen option's group before its label in the box (\"Lead: Company\"), for grouped lists where labels\nrepeat across groups. The list itself always shows the bare label under its group heading. Since 1.3.",
23915
- "attribute": "show-group"
23916
- },
23917
- {
23918
- "kind": "field",
23919
- "name": "_active",
23920
- "privacy": "public",
23921
- "type": {
23922
- "text": "number"
23923
- },
23924
- "default": "-1",
23925
- "attribute": "_active"
24035
+ "reflects": true,
24036
+ "inheritedFrom": {
24037
+ "name": "CmOptionGroup",
24038
+ "module": "src/components/option-group.ts"
24039
+ }
23926
24040
  },
23927
24041
  {
23928
24042
  "kind": "field",
23929
24043
  "name": "_slotted",
23930
24044
  "privacy": "public",
23931
24045
  "type": {
23932
- "text": "SelectOption[]"
24046
+ "text": "OptionGroupOption[]"
23933
24047
  },
23934
24048
  "default": "[]",
23935
- "attribute": "_slotted"
24049
+ "attribute": "_slotted",
24050
+ "inheritedFrom": {
24051
+ "name": "CmOptionGroup",
24052
+ "module": "src/components/option-group.ts"
24053
+ }
23936
24054
  },
23937
24055
  {
23938
24056
  "kind": "field",
23939
24057
  "name": "#internals",
23940
- "privacy": "private"
24058
+ "privacy": "private",
24059
+ "inheritedFrom": {
24060
+ "name": "CmOptionGroup",
24061
+ "module": "src/components/option-group.ts"
24062
+ }
23941
24063
  },
23942
24064
  {
23943
24065
  "kind": "field",
23944
24066
  "name": "#id",
23945
- "privacy": "private"
24067
+ "privacy": "private",
24068
+ "inheritedFrom": {
24069
+ "name": "CmOptionGroup",
24070
+ "module": "src/components/option-group.ts"
24071
+ }
23946
24072
  },
23947
24073
  {
23948
24074
  "kind": "field",
@@ -23951,15 +24077,655 @@
23951
24077
  "type": {
23952
24078
  "text": "string"
23953
24079
  },
23954
- "default": "''"
24080
+ "default": "''",
24081
+ "inheritedFrom": {
24082
+ "name": "CmOptionGroup",
24083
+ "module": "src/components/option-group.ts"
24084
+ }
23955
24085
  },
23956
24086
  {
23957
24087
  "kind": "field",
23958
- "name": "#typed",
24088
+ "name": "#observer",
23959
24089
  "privacy": "private",
23960
- "type": {
23961
- "text": "string"
23962
- },
24090
+ "default": "new MutationObserver(() => this.#readChildren())",
24091
+ "inheritedFrom": {
24092
+ "name": "CmOptionGroup",
24093
+ "module": "src/components/option-group.ts"
24094
+ }
24095
+ },
24096
+ {
24097
+ "kind": "field",
24098
+ "name": "form",
24099
+ "readonly": true,
24100
+ "inheritedFrom": {
24101
+ "name": "CmOptionGroup",
24102
+ "module": "src/components/option-group.ts"
24103
+ }
24104
+ },
24105
+ {
24106
+ "kind": "field",
24107
+ "name": "validity",
24108
+ "readonly": true,
24109
+ "inheritedFrom": {
24110
+ "name": "CmOptionGroup",
24111
+ "module": "src/components/option-group.ts"
24112
+ }
24113
+ },
24114
+ {
24115
+ "kind": "field",
24116
+ "name": "validationMessage",
24117
+ "readonly": true,
24118
+ "inheritedFrom": {
24119
+ "name": "CmOptionGroup",
24120
+ "module": "src/components/option-group.ts"
24121
+ }
24122
+ },
24123
+ {
24124
+ "kind": "method",
24125
+ "name": "checkValidity",
24126
+ "inheritedFrom": {
24127
+ "name": "CmOptionGroup",
24128
+ "module": "src/components/option-group.ts"
24129
+ }
24130
+ },
24131
+ {
24132
+ "kind": "method",
24133
+ "name": "reportValidity",
24134
+ "inheritedFrom": {
24135
+ "name": "CmOptionGroup",
24136
+ "module": "src/components/option-group.ts"
24137
+ }
24138
+ },
24139
+ {
24140
+ "kind": "method",
24141
+ "name": "formResetCallback",
24142
+ "inheritedFrom": {
24143
+ "name": "CmOptionGroup",
24144
+ "module": "src/components/option-group.ts"
24145
+ }
24146
+ },
24147
+ {
24148
+ "kind": "method",
24149
+ "name": "formDisabledCallback",
24150
+ "parameters": [
24151
+ {
24152
+ "name": "d",
24153
+ "type": {
24154
+ "text": "boolean"
24155
+ }
24156
+ }
24157
+ ],
24158
+ "inheritedFrom": {
24159
+ "name": "CmOptionGroup",
24160
+ "module": "src/components/option-group.ts"
24161
+ }
24162
+ },
24163
+ {
24164
+ "kind": "method",
24165
+ "name": "formStateRestoreCallback",
24166
+ "parameters": [
24167
+ {
24168
+ "name": "state",
24169
+ "type": {
24170
+ "text": "string"
24171
+ }
24172
+ }
24173
+ ],
24174
+ "inheritedFrom": {
24175
+ "name": "CmOptionGroup",
24176
+ "module": "src/components/option-group.ts"
24177
+ }
24178
+ },
24179
+ {
24180
+ "kind": "method",
24181
+ "name": "focus",
24182
+ "parameters": [
24183
+ {
24184
+ "name": "options",
24185
+ "optional": true,
24186
+ "type": {
24187
+ "text": "FocusOptions"
24188
+ }
24189
+ }
24190
+ ],
24191
+ "description": "Focuses the selected option, or the first one.",
24192
+ "inheritedFrom": {
24193
+ "name": "CmOptionGroup",
24194
+ "module": "src/components/option-group.ts"
24195
+ }
24196
+ },
24197
+ {
24198
+ "kind": "field",
24199
+ "name": "items",
24200
+ "type": {
24201
+ "text": "OptionGroupOption[]"
24202
+ },
24203
+ "description": "The options in use, normalised.",
24204
+ "readonly": true,
24205
+ "inheritedFrom": {
24206
+ "name": "CmOptionGroup",
24207
+ "module": "src/components/option-group.ts"
24208
+ }
24209
+ },
24210
+ {
24211
+ "kind": "method",
24212
+ "name": "#readChildren",
24213
+ "privacy": "private",
24214
+ "inheritedFrom": {
24215
+ "name": "CmOptionGroup",
24216
+ "module": "src/components/option-group.ts"
24217
+ }
24218
+ },
24219
+ {
24220
+ "kind": "method",
24221
+ "name": "#select",
24222
+ "privacy": "private",
24223
+ "parameters": [
24224
+ {
24225
+ "name": "i",
24226
+ "type": {
24227
+ "text": "number"
24228
+ }
24229
+ }
24230
+ ],
24231
+ "inheritedFrom": {
24232
+ "name": "CmOptionGroup",
24233
+ "module": "src/components/option-group.ts"
24234
+ }
24235
+ },
24236
+ {
24237
+ "kind": "method",
24238
+ "name": "#onKeyDown",
24239
+ "privacy": "private",
24240
+ "parameters": [
24241
+ {
24242
+ "name": "e",
24243
+ "type": {
24244
+ "text": "KeyboardEvent"
24245
+ }
24246
+ },
24247
+ {
24248
+ "name": "i",
24249
+ "type": {
24250
+ "text": "number"
24251
+ }
24252
+ }
24253
+ ],
24254
+ "inheritedFrom": {
24255
+ "name": "CmOptionGroup",
24256
+ "module": "src/components/option-group.ts"
24257
+ }
24258
+ },
24259
+ {
24260
+ "kind": "method",
24261
+ "name": "finalize",
24262
+ "static": true,
24263
+ "description": "A property declared with `string: 'key'` (e.g. `saveLabel: { attribute: 'save-label', string: 'save' }`) reads\nas that built-in string until it is set, so `el.saveLabel` is \"Save\" in English and the translation elsewhere.\nSetting it overrides the string for this element; setting `undefined` goes back to the built-in one.",
24264
+ "inheritedFrom": {
24265
+ "name": "CmLocalizedElement",
24266
+ "module": "src/localize.ts"
24267
+ }
24268
+ },
24269
+ {
24270
+ "kind": "field",
24271
+ "name": "strings",
24272
+ "privacy": "public",
24273
+ "type": {
24274
+ "text": "Record<string, Message> | null | undefined"
24275
+ },
24276
+ "description": "Replaces this component's built-in text (labels, accessible names, messages), key by key. In HTML pass JSON:\n`strings='{\"close\":\"Fermer\"}'`. Keys and English defaults are listed under \"Built-in text\" on the component's\npage; set text for every component at once with `configure()` or `setStrings()` (see Localisation).",
24277
+ "attribute": "strings",
24278
+ "inheritedFrom": {
24279
+ "name": "CmLocalizedElement",
24280
+ "module": "src/localize.ts"
24281
+ }
24282
+ },
24283
+ {
24284
+ "kind": "field",
24285
+ "name": "stringsNamespace",
24286
+ "privacy": "protected",
24287
+ "description": "The string namespace: the tag name without `cm-`, in camelCase.",
24288
+ "readonly": true,
24289
+ "inheritedFrom": {
24290
+ "name": "CmLocalizedElement",
24291
+ "module": "src/localize.ts"
24292
+ }
24293
+ },
24294
+ {
24295
+ "kind": "method",
24296
+ "name": "t",
24297
+ "privacy": "protected",
24298
+ "parameters": [
24299
+ {
24300
+ "name": "key",
24301
+ "type": {
24302
+ "text": "string"
24303
+ }
24304
+ },
24305
+ {
24306
+ "name": "vars",
24307
+ "optional": true,
24308
+ "type": {
24309
+ "text": "MessageVars"
24310
+ }
24311
+ }
24312
+ ],
24313
+ "description": "The component's text for `key`, in its language, with `{placeholders}` filled from `vars`.",
24314
+ "inheritedFrom": {
24315
+ "name": "CmLocalizedElement",
24316
+ "module": "src/localize.ts"
24317
+ }
24318
+ },
24319
+ {
24320
+ "kind": "field",
24321
+ "name": "locale",
24322
+ "privacy": "protected",
24323
+ "description": "The locale used for numbers, dates and plurals.",
24324
+ "readonly": true,
24325
+ "inheritedFrom": {
24326
+ "name": "CmLocalizedElement",
24327
+ "module": "src/localize.ts"
24328
+ }
24329
+ },
24330
+ {
24331
+ "kind": "method",
24332
+ "name": "formatNumber",
24333
+ "privacy": "protected",
24334
+ "parameters": [
24335
+ {
24336
+ "name": "n",
24337
+ "type": {
24338
+ "text": "number"
24339
+ }
24340
+ },
24341
+ {
24342
+ "name": "options",
24343
+ "optional": true,
24344
+ "type": {
24345
+ "text": "Intl.NumberFormatOptions"
24346
+ }
24347
+ }
24348
+ ],
24349
+ "description": "A number formatted for the component's locale.",
24350
+ "inheritedFrom": {
24351
+ "name": "CmLocalizedElement",
24352
+ "module": "src/localize.ts"
24353
+ }
24354
+ }
24355
+ ],
24356
+ "events": [
24357
+ {
24358
+ "name": "change",
24359
+ "type": {
24360
+ "text": "Event"
24361
+ },
24362
+ "description": "When the merchant picks a different option.",
24363
+ "inheritedFrom": {
24364
+ "name": "CmOptionGroup",
24365
+ "module": "src/components/option-group.ts"
24366
+ }
24367
+ },
24368
+ {
24369
+ "name": "input",
24370
+ "type": {
24371
+ "text": "Event"
24372
+ },
24373
+ "description": "Same moment as `change`.",
24374
+ "inheritedFrom": {
24375
+ "name": "CmOptionGroup",
24376
+ "module": "src/components/option-group.ts"
24377
+ }
24378
+ }
24379
+ ],
24380
+ "attributes": [
24381
+ {
24382
+ "name": "size",
24383
+ "type": {
24384
+ "text": "'default' | 'small'"
24385
+ },
24386
+ "default": "'default'",
24387
+ "description": "`default`: a 36px track, the height of buttons and fields beside it. `small`: 32px, for toolbars, filter rows and\ncard headers next to small fields and slim buttons. On touch screens both are 44px tall.",
24388
+ "fieldName": "size"
24389
+ },
24390
+ {
24391
+ "name": "label",
24392
+ "type": {
24393
+ "text": "string"
24394
+ },
24395
+ "default": "''",
24396
+ "description": "Heading above the options, e.g. \"Select offer type\". Without one, give the element an `aria-label`.",
24397
+ "fieldName": "label",
24398
+ "inheritedFrom": {
24399
+ "name": "CmOptionGroup",
24400
+ "module": "src/components/option-group.ts"
24401
+ }
24402
+ },
24403
+ {
24404
+ "name": "name",
24405
+ "type": {
24406
+ "text": "string"
24407
+ },
24408
+ "default": "''",
24409
+ "description": "Form field name.",
24410
+ "fieldName": "name",
24411
+ "inheritedFrom": {
24412
+ "name": "CmOptionGroup",
24413
+ "module": "src/components/option-group.ts"
24414
+ }
24415
+ },
24416
+ {
24417
+ "name": "value",
24418
+ "type": {
24419
+ "text": "string"
24420
+ },
24421
+ "default": "''",
24422
+ "description": "Value of the selected option; empty when nothing is selected.",
24423
+ "fieldName": "value",
24424
+ "inheritedFrom": {
24425
+ "name": "CmOptionGroup",
24426
+ "module": "src/components/option-group.ts"
24427
+ }
24428
+ },
24429
+ {
24430
+ "name": "options",
24431
+ "type": {
24432
+ "text": "Array<string | OptionGroupOption>"
24433
+ },
24434
+ "default": "[]",
24435
+ "description": "Options as strings or `{ value, label, disabled, tone }`. Used instead of `<option>` children when set.",
24436
+ "fieldName": "options",
24437
+ "inheritedFrom": {
24438
+ "name": "CmOptionGroup",
24439
+ "module": "src/components/option-group.ts"
24440
+ }
24441
+ },
24442
+ {
24443
+ "name": "required",
24444
+ "type": {
24445
+ "text": "boolean"
24446
+ },
24447
+ "default": "false",
24448
+ "description": "The form will not submit until an option is chosen.",
24449
+ "fieldName": "required",
24450
+ "inheritedFrom": {
24451
+ "name": "CmOptionGroup",
24452
+ "module": "src/components/option-group.ts"
24453
+ }
24454
+ },
24455
+ {
24456
+ "name": "disabled",
24457
+ "type": {
24458
+ "text": "boolean"
24459
+ },
24460
+ "default": "false",
24461
+ "description": "Blocks every option. Also set by a disabled `<fieldset>`.",
24462
+ "fieldName": "disabled",
24463
+ "inheritedFrom": {
24464
+ "name": "CmOptionGroup",
24465
+ "module": "src/components/option-group.ts"
24466
+ }
24467
+ },
24468
+ {
24469
+ "name": "_slotted",
24470
+ "type": {
24471
+ "text": "OptionGroupOption[]"
24472
+ },
24473
+ "default": "[]",
24474
+ "fieldName": "_slotted",
24475
+ "inheritedFrom": {
24476
+ "name": "CmOptionGroup",
24477
+ "module": "src/components/option-group.ts"
24478
+ }
24479
+ },
24480
+ {
24481
+ "name": "strings",
24482
+ "type": {
24483
+ "text": "Record<string, Message> | null | undefined"
24484
+ },
24485
+ "description": "Replaces this component's built-in text (labels, accessible names, messages), key by key. In HTML pass JSON:\n`strings='{\"close\":\"Fermer\"}'`. Keys and English defaults are listed under \"Built-in text\" on the component's\npage; set text for every component at once with `configure()` or `setStrings()` (see Localisation).",
24486
+ "fieldName": "strings",
24487
+ "inheritedFrom": {
24488
+ "name": "CmLocalizedElement",
24489
+ "module": "src/localize.ts"
24490
+ }
24491
+ }
24492
+ ],
24493
+ "superclass": {
24494
+ "name": "CmOptionGroup",
24495
+ "module": "/src/components/option-group.js"
24496
+ },
24497
+ "tagName": "cm-segmented-control",
24498
+ "customElement": true
24499
+ }
24500
+ ],
24501
+ "exports": [
24502
+ {
24503
+ "kind": "js",
24504
+ "name": "CmSegmentedControl",
24505
+ "declaration": {
24506
+ "name": "CmSegmentedControl",
24507
+ "module": "src/components/segmented-control.ts"
24508
+ }
24509
+ }
24510
+ ]
24511
+ },
24512
+ {
24513
+ "kind": "javascript-module",
24514
+ "path": "src/components/select.ts",
24515
+ "declarations": [
24516
+ {
24517
+ "kind": "class",
24518
+ "description": "Dropdown field: a labelled box that opens a list of options and shows the chosen one.\nA custom listbox (the WAI-ARIA \"select-only combobox\" pattern) so the open list can match the\ndesign; it keeps native-select keyboard behaviour. Participates in native forms.\n\nOptions come from `<option>` children (easy in plain HTML, PHP and EJS) or the `options` property.\nGroup them under headings with `<optgroup label=\"…\">` or a `group` on each option (since 1.3).",
24519
+ "name": "CmSelect",
24520
+ "slots": [
24521
+ {
24522
+ "description": "`<option value=\"…\">Label</option>` elements, optionally inside `<optgroup label=\"…\">`. `disabled` (also on an optgroup) and `selected` are honoured.",
24523
+ "name": ""
24524
+ }
24525
+ ],
24526
+ "members": [
24527
+ {
24528
+ "kind": "field",
24529
+ "name": "formAssociated",
24530
+ "type": {
24531
+ "text": "boolean"
24532
+ },
24533
+ "static": true,
24534
+ "default": "true"
24535
+ },
24536
+ {
24537
+ "kind": "field",
24538
+ "name": "shadowRootOptions",
24539
+ "type": {
24540
+ "text": "object"
24541
+ },
24542
+ "static": true,
24543
+ "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true }"
24544
+ },
24545
+ {
24546
+ "kind": "field",
24547
+ "name": "label",
24548
+ "privacy": "public",
24549
+ "type": {
24550
+ "text": "string"
24551
+ },
24552
+ "default": "''",
24553
+ "description": "Visible label above the box. Required for accessibility unless the element has an aria-label.",
24554
+ "attribute": "label"
24555
+ },
24556
+ {
24557
+ "kind": "field",
24558
+ "name": "helpText",
24559
+ "privacy": "public",
24560
+ "type": {
24561
+ "text": "string"
24562
+ },
24563
+ "default": "''",
24564
+ "description": "One sentence under the box in text-tertiary.",
24565
+ "attribute": "help-text"
24566
+ },
24567
+ {
24568
+ "kind": "field",
24569
+ "name": "error",
24570
+ "privacy": "public",
24571
+ "type": {
24572
+ "text": "string"
24573
+ },
24574
+ "default": "''",
24575
+ "description": "Error message; turns the border critical and sets aria-invalid.",
24576
+ "attribute": "error",
24577
+ "reflects": true
24578
+ },
24579
+ {
24580
+ "kind": "field",
24581
+ "name": "name",
24582
+ "privacy": "public",
24583
+ "type": {
24584
+ "text": "string"
24585
+ },
24586
+ "default": "''",
24587
+ "description": "Form field name.",
24588
+ "attribute": "name",
24589
+ "reflects": true
24590
+ },
24591
+ {
24592
+ "kind": "field",
24593
+ "name": "value",
24594
+ "privacy": "public",
24595
+ "type": {
24596
+ "text": "string"
24597
+ },
24598
+ "default": "''",
24599
+ "description": "Value of the chosen option; empty when nothing is chosen.",
24600
+ "attribute": "value"
24601
+ },
24602
+ {
24603
+ "kind": "field",
24604
+ "name": "placeholder",
24605
+ "privacy": "public",
24606
+ "type": {
24607
+ "text": "string"
24608
+ },
24609
+ "default": "''",
24610
+ "description": "Shown while nothing is chosen, e.g. \"Select customer\".",
24611
+ "attribute": "placeholder"
24612
+ },
24613
+ {
24614
+ "kind": "field",
24615
+ "name": "options",
24616
+ "privacy": "public",
24617
+ "type": {
24618
+ "text": "Array<string | SelectOption>"
24619
+ },
24620
+ "default": "[]",
24621
+ "description": "Options as strings or `{ value, label, disabled, group }`. Used instead of `<option>` children when set.",
24622
+ "attribute": "options"
24623
+ },
24624
+ {
24625
+ "kind": "field",
24626
+ "name": "required",
24627
+ "privacy": "public",
24628
+ "type": {
24629
+ "text": "boolean"
24630
+ },
24631
+ "default": "false",
24632
+ "description": "The form will not submit until an option is chosen.",
24633
+ "attribute": "required",
24634
+ "reflects": true
24635
+ },
24636
+ {
24637
+ "kind": "field",
24638
+ "name": "disabled",
24639
+ "privacy": "public",
24640
+ "type": {
24641
+ "text": "boolean"
24642
+ },
24643
+ "default": "false",
24644
+ "description": "Blocks interaction. Also set by a disabled `<fieldset>`.",
24645
+ "attribute": "disabled",
24646
+ "reflects": true
24647
+ },
24648
+ {
24649
+ "kind": "field",
24650
+ "name": "open",
24651
+ "privacy": "public",
24652
+ "type": {
24653
+ "text": "boolean"
24654
+ },
24655
+ "default": "false",
24656
+ "description": "Whether the list is showing.",
24657
+ "attribute": "open",
24658
+ "reflects": true
24659
+ },
24660
+ {
24661
+ "kind": "field",
24662
+ "name": "showGroup",
24663
+ "privacy": "public",
24664
+ "type": {
24665
+ "text": "boolean"
24666
+ },
24667
+ "default": "false",
24668
+ "description": "Shows the chosen option's group before its label in the box (\"Lead: Company\"), for grouped lists where labels\nrepeat across groups. The list itself always shows the bare label under its group heading. Since 1.3.",
24669
+ "attribute": "show-group"
24670
+ },
24671
+ {
24672
+ "kind": "field",
24673
+ "name": "size",
24674
+ "privacy": "public",
24675
+ "type": {
24676
+ "text": "'default' | 'small'"
24677
+ },
24678
+ "default": "'default'",
24679
+ "description": "`small`: a 32px box with a 13px label, for toolbars, filter rows and filter panels. Default: a 36px box. On touch\nscreens both are 44px. Since 1.5.",
24680
+ "attribute": "size",
24681
+ "reflects": true
24682
+ },
24683
+ {
24684
+ "kind": "field",
24685
+ "name": "_active",
24686
+ "privacy": "public",
24687
+ "type": {
24688
+ "text": "number"
24689
+ },
24690
+ "default": "-1",
24691
+ "attribute": "_active"
24692
+ },
24693
+ {
24694
+ "kind": "field",
24695
+ "name": "_slotted",
24696
+ "privacy": "public",
24697
+ "type": {
24698
+ "text": "SelectOption[]"
24699
+ },
24700
+ "default": "[]",
24701
+ "attribute": "_slotted"
24702
+ },
24703
+ {
24704
+ "kind": "field",
24705
+ "name": "#internals",
24706
+ "privacy": "private"
24707
+ },
24708
+ {
24709
+ "kind": "field",
24710
+ "name": "#id",
24711
+ "privacy": "private"
24712
+ },
24713
+ {
24714
+ "kind": "field",
24715
+ "name": "#defaultValue",
24716
+ "privacy": "private",
24717
+ "type": {
24718
+ "text": "string"
24719
+ },
24720
+ "default": "''"
24721
+ },
24722
+ {
24723
+ "kind": "field",
24724
+ "name": "#typed",
24725
+ "privacy": "private",
24726
+ "type": {
24727
+ "text": "string"
24728
+ },
23963
24729
  "default": "''"
23964
24730
  },
23965
24731
  {
@@ -24351,6 +25117,15 @@
24351
25117
  "description": "Shows the chosen option's group before its label in the box (\"Lead: Company\"), for grouped lists where labels\nrepeat across groups. The list itself always shows the bare label under its group heading. Since 1.3.",
24352
25118
  "fieldName": "showGroup"
24353
25119
  },
25120
+ {
25121
+ "name": "size",
25122
+ "type": {
25123
+ "text": "'default' | 'small'"
25124
+ },
25125
+ "default": "'default'",
25126
+ "description": "`small`: a 32px box with a 13px label, for toolbars, filter rows and filter panels. Default: a 36px box. On touch\nscreens both are 44px. Since 1.5.",
25127
+ "fieldName": "size"
25128
+ },
24354
25129
  {
24355
25130
  "name": "_active",
24356
25131
  "type": {
@@ -25114,7 +25889,7 @@
25114
25889
  "text": "array"
25115
25890
  },
25116
25891
  "static": true,
25117
- "default": "[ base, css` :host { display: contents; } dialog { padding: 0; border: 0; margin: 0; max-width: none; max-height: none; background: transparent; color: inherit; font: inherit; overflow: visible; } dialog::backdrop { background: var(--cm-overlay, rgba(0, 0, 0, 0.4)); } .panel { display: flex; flex-direction: column; background: var(--cm-bg-surface); color: var(--cm-text-default); overflow: hidden; outline: none; } .head { display: flex; align-items: center; gap: var(--cm-space-10); flex: none; min-height: 40px; padding-block: 8px; padding-inline: 15px 10px; background: var(--cm-bg-panel-header); color: var(--cm-text-on-dark); } .head h2 { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; } .x { display: grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--cm-radius-sm); background: none; color: inherit; cursor: pointer; } .x:focus-visible { outline: 2px solid var(--cm-text-on-dark); outline-offset: 0; } .body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: var(--cm-space-20); font-size: 14px; line-height: 20px; } .foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--cm-space-10); flex: none; padding: var(--cm-space-15) var(--cm-space-20); border-top: var(--cm-border-1) solid var(--cm-border-default); } .foot[hidden] { display: none; } @media (prefers-reduced-motion: no-preference) { dialog[open] .panel { animation: cm-ovl-in 160ms ease-out; } } @keyframes cm-ovl-in { from { opacity: 0; } to { opacity: 1; } } `, ]",
25892
+ "default": "[ base, css` :host { display: contents; } dialog { padding: 0; border: 0; margin: 0; max-width: none; max-height: none; background: transparent; color: inherit; font: inherit; overflow: visible; } dialog::backdrop { background: var(--cm-overlay, rgba(0, 0, 0, 0.4)); } .panel { display: flex; flex-direction: column; background: var(--cm-bg-surface); color: var(--cm-text-default); overflow: hidden; outline: none; } .head { display: flex; align-items: center; gap: var(--cm-space-8); flex: none; min-height: 40px; padding-block: var(--cm-space-8); padding-inline: var(--cm-space-16) var(--cm-space-8); background: var(--cm-bg-panel-header); color: var(--cm-text-on-dark); } .head h2 { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; } .x { display: grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--cm-radius-sm); background: none; color: inherit; cursor: pointer; } .x:focus-visible { outline: 2px solid var(--cm-text-on-dark); outline-offset: 0; } .body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: var(--cm-space-20); font-size: 14px; line-height: 20px; } .foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--cm-space-8); flex: none; padding: var(--cm-space-12) var(--cm-space-20); border-top: var(--cm-border-1) solid var(--cm-border-subtle); } .foot[hidden] { display: none; } @media (prefers-reduced-motion: no-preference) { dialog[open] .panel { animation: cm-ovl-in var(--cm-duration-base) var(--cm-easing-standard); } } @keyframes cm-ovl-in { from { opacity: 0; } to { opacity: 1; } } `, ]",
25118
25893
  "inheritedFrom": {
25119
25894
  "name": "CmOverlay",
25120
25895
  "module": "src/overlay.ts"
@@ -26662,7 +27437,7 @@
26662
27437
  "text": "keyof typeof THUMB"
26663
27438
  },
26664
27439
  "default": "'large'",
26665
- "description": "Thumbnail size from Figma: `small` 34px, `medium` 40px, `large` 50px, `xlarge` 186px.",
27440
+ "description": "Thumbnail size: `small` 34px, `medium` 40px, `large` 50px, `xlarge` 186px.",
26666
27441
  "attribute": "size",
26667
27442
  "reflects": true
26668
27443
  }
@@ -26692,7 +27467,7 @@
26692
27467
  "text": "keyof typeof THUMB"
26693
27468
  },
26694
27469
  "default": "'large'",
26695
- "description": "Thumbnail size from Figma: `small` 34px, `medium` 40px, `large` 50px, `xlarge` 186px.",
27470
+ "description": "Thumbnail size: `small` 34px, `medium` 40px, `large` 50px, `xlarge` 186px.",
26696
27471
  "fieldName": "size"
26697
27472
  }
26698
27473
  ],
@@ -26926,7 +27701,7 @@
26926
27701
  "type": {
26927
27702
  "text": "string"
26928
27703
  },
26929
- "description": "Title above the tips, shown in capitals. Default: the built-in string `heading` (\"Smart tips\").",
27704
+ "description": "Title above the tips. Default: the built-in string `heading` (\"Smart tips\").",
26930
27705
  "attribute": "heading"
26931
27706
  },
26932
27707
  {
@@ -27073,7 +27848,7 @@
27073
27848
  "type": {
27074
27849
  "text": "string"
27075
27850
  },
27076
- "description": "Title above the tips, shown in capitals. Default: the built-in string `heading` (\"Smart tips\").",
27851
+ "description": "Title above the tips. Default: the built-in string `heading` (\"Smart tips\").",
27077
27852
  "fieldName": "heading"
27078
27853
  },
27079
27854
  {
@@ -27355,7 +28130,7 @@
27355
28130
  "text": "SpaceStep"
27356
28131
  },
27357
28132
  "default": "'20'",
27358
- "description": "Space between items: a spacing step (`0`, `10`, `12`, `15`, `20`, `22`, `30`). Default `20`, the gap between cards.",
28133
+ "description": "Space between items: a spacing step on the 4px grid (`0`, `4`, `8`, `12`, `16`, `20`, `24`, `32`, `40`, `48`, `64`; the pre-1.5 steps `10`, `15`, `22` and `30` still work and draw as 8, 16, 24 and 32). Default `20`, the gap between cards.",
27359
28134
  "attribute": "gap",
27360
28135
  "reflects": true
27361
28136
  },
@@ -27410,7 +28185,7 @@
27410
28185
  "text": "SpaceStep"
27411
28186
  },
27412
28187
  "default": "'20'",
27413
- "description": "Space between items: a spacing step (`0`, `10`, `12`, `15`, `20`, `22`, `30`). Default `20`, the gap between cards.",
28188
+ "description": "Space between items: a spacing step on the 4px grid (`0`, `4`, `8`, `12`, `16`, `20`, `24`, `32`, `40`, `48`, `64`; the pre-1.5 steps `10`, `15`, `22` and `30` still work and draw as 8, 16, 24 and 32). Default `20`, the gap between cards.",
27414
28189
  "fieldName": "gap"
27415
28190
  },
27416
28191
  {
@@ -27464,7 +28239,7 @@
27464
28239
  "declarations": [
27465
28240
  {
27466
28241
  "kind": "class",
27467
- "description": "A row of statuses that filters the list under it, such as All, Unprocessed, Processing, Fulfilled.\nThe chosen status is black and underlined; the others are grey. Each label can carry a count.\nWorks as ARIA tabs: one tab stop, arrow keys move and select, Home/End jump to the ends.\nToo many tabs for the width scroll sideways.\n\nTabs come from `<option>` children (`count` attribute for the number) or the `tabs` property.",
28242
+ "description": "A row of statuses that filters the list under it, such as All, Unprocessed, Processing, Fulfilled.\nThe chosen status is black, semibold and underlined; the others are grey. Each label can carry a count, shown as a\nsmall neutral pill after it (read as \"My tasks, 4\").\nWorks as ARIA tabs: one tab stop, arrow keys move and select, Home/End jump to the ends.\nToo many tabs for the width scroll sideways.\n\nTabs come from `<option>` children (`count` attribute for the number) or the `tabs` property.",
27468
28243
  "name": "CmStatusTabs",
27469
28244
  "slots": [
27470
28245
  {
@@ -27515,7 +28290,7 @@
27515
28290
  "text": "'large' | 'small'"
27516
28291
  },
27517
28292
  "default": "'large'",
27518
- "description": "`large` (18px, page-level order statuses) or `small` (14px, inside a card, e.g. review sorting).",
28293
+ "description": "`large` (the default: 14px labels, page-level statuses) or `small` (13px, tighter, inside a card, e.g. review sorting).",
27519
28294
  "attribute": "size",
27520
28295
  "reflects": true
27521
28296
  },
@@ -27748,7 +28523,7 @@
27748
28523
  "text": "'large' | 'small'"
27749
28524
  },
27750
28525
  "default": "'large'",
27751
- "description": "`large` (18px, page-level order statuses) or `small` (14px, inside a card, e.g. review sorting).",
28526
+ "description": "`large` (the default: 14px labels, page-level statuses) or `small` (13px, tighter, inside a card, e.g. review sorting).",
27752
28527
  "fieldName": "size"
27753
28528
  },
27754
28529
  {
@@ -27797,7 +28572,7 @@
27797
28572
  "declarations": [
27798
28573
  {
27799
28574
  "kind": "class",
27800
- "description": "The grey 34px label bar at the top of a table or resource list: column names in 12px type,\noptional sort buttons and an optional \"select all\" checkbox.\n\nColumns come from `<option>` children or the `columns` property. Lay out the rows with the same\ngrid: set `--cm-table-columns` (a `grid-template-columns` value) on a shared parent.\nInside an element with `role=\"table\"` or `role=\"grid\"` it renders a real header row\n(`row` and `columnheader` roles); elsewhere it is a plain bar whose sort buttons say their state.\n\nIn the `header` slot of a `cm-resource-list`, the list sets `resource-rows` so the column names line up with the\ncells of its `cm-resource-item` rows (including the rows' checkbox column when the list is `selectable`). The\nlist's toolbar has the select-all box there: don't also set `selectable` on the header.",
28575
+ "description": "The grey 32px label bar at the top of a table or resource list: column names in 12px medium type,\noptional sort buttons and an optional \"select all\" checkbox.\n\nColumns come from `<option>` children or the `columns` property. Lay out the rows with the same\ngrid: set `--cm-table-columns` (a `grid-template-columns` value) on a shared parent.\nInside an element with `role=\"table\"` or `role=\"grid\"` it renders a real header row\n(`row` and `columnheader` roles); elsewhere it is a plain bar whose sort buttons say their state.\n\nIn the `header` slot of a `cm-resource-list`, the list sets `resource-rows` so the column names line up with the\ncells of its `cm-resource-item` rows (including the rows' checkbox column when the list is `selectable`). The\nlist puts its select-all box in the header's checkbox column (and its selection status over the names while rows are\nselected): don't also set `selectable` on the header.",
27801
28576
  "name": "CmTableHeader",
27802
28577
  "cssProperties": [
27803
28578
  {
@@ -27855,7 +28630,7 @@
27855
28630
  "text": "boolean"
27856
28631
  },
27857
28632
  "default": "false",
27858
- "description": "Adds a leading \"select all\" checkbox column (50px, as in Figma).",
28633
+ "description": "Adds a leading \"select all\" checkbox column.",
27859
28634
  "attribute": "selectable",
27860
28635
  "reflects": true
27861
28636
  },
@@ -28112,7 +28887,7 @@
28112
28887
  "text": "boolean"
28113
28888
  },
28114
28889
  "default": "false",
28115
- "description": "Adds a leading \"select all\" checkbox column (50px, as in Figma).",
28890
+ "description": "Adds a leading \"select all\" checkbox column.",
28116
28891
  "fieldName": "selectable"
28117
28892
  },
28118
28893
  {
@@ -28603,7 +29378,7 @@
28603
29378
  "text": "'default' | 'small'"
28604
29379
  },
28605
29380
  "default": "'default'",
28606
- "description": "`small`: 12px label, 14px value (filter panels).",
29381
+ "description": "`small`: a 32px box with a 13px label, for toolbars, filter rows and filter panels. Default: a 36px box. On touch screens both are 44px.",
28607
29382
  "attribute": "size",
28608
29383
  "reflects": true
28609
29384
  },
@@ -28993,7 +29768,7 @@
28993
29768
  "text": "'default' | 'small'"
28994
29769
  },
28995
29770
  "default": "'default'",
28996
- "description": "`small`: 12px label, 14px value (filter panels).",
29771
+ "description": "`small`: a 32px box with a 13px label, for toolbars, filter rows and filter panels. Default: a 36px box. On touch screens both are 44px.",
28997
29772
  "fieldName": "size"
28998
29773
  },
28999
29774
  {
@@ -31856,7 +32631,7 @@
31856
32631
  "text": "array"
31857
32632
  },
31858
32633
  "static": true,
31859
- "default": "[ base, css` :host { display: contents; } dialog { padding: 0; border: 0; margin: 0; max-width: none; max-height: none; background: transparent; color: inherit; font: inherit; overflow: visible; } dialog::backdrop { background: var(--cm-overlay, rgba(0, 0, 0, 0.4)); } .panel { display: flex; flex-direction: column; background: var(--cm-bg-surface); color: var(--cm-text-default); overflow: hidden; outline: none; } .head { display: flex; align-items: center; gap: var(--cm-space-10); flex: none; min-height: 40px; padding-block: 8px; padding-inline: 15px 10px; background: var(--cm-bg-panel-header); color: var(--cm-text-on-dark); } .head h2 { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; } .x { display: grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--cm-radius-sm); background: none; color: inherit; cursor: pointer; } .x:focus-visible { outline: 2px solid var(--cm-text-on-dark); outline-offset: 0; } .body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: var(--cm-space-20); font-size: 14px; line-height: 20px; } .foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--cm-space-10); flex: none; padding: var(--cm-space-15) var(--cm-space-20); border-top: var(--cm-border-1) solid var(--cm-border-default); } .foot[hidden] { display: none; } @media (prefers-reduced-motion: no-preference) { dialog[open] .panel { animation: cm-ovl-in 160ms ease-out; } } @keyframes cm-ovl-in { from { opacity: 0; } to { opacity: 1; } } `, ]"
32634
+ "default": "[ base, css` :host { display: contents; } dialog { padding: 0; border: 0; margin: 0; max-width: none; max-height: none; background: transparent; color: inherit; font: inherit; overflow: visible; } dialog::backdrop { background: var(--cm-overlay, rgba(0, 0, 0, 0.4)); } .panel { display: flex; flex-direction: column; background: var(--cm-bg-surface); color: var(--cm-text-default); overflow: hidden; outline: none; } .head { display: flex; align-items: center; gap: var(--cm-space-8); flex: none; min-height: 40px; padding-block: var(--cm-space-8); padding-inline: var(--cm-space-16) var(--cm-space-8); background: var(--cm-bg-panel-header); color: var(--cm-text-on-dark); } .head h2 { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; } .x { display: grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--cm-radius-sm); background: none; color: inherit; cursor: pointer; } .x:focus-visible { outline: 2px solid var(--cm-text-on-dark); outline-offset: 0; } .body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: var(--cm-space-20); font-size: 14px; line-height: 20px; } .foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--cm-space-8); flex: none; padding: var(--cm-space-12) var(--cm-space-20); border-top: var(--cm-border-1) solid var(--cm-border-subtle); } .foot[hidden] { display: none; } @media (prefers-reduced-motion: no-preference) { dialog[open] .panel { animation: cm-ovl-in var(--cm-duration-base) var(--cm-easing-standard); } } @keyframes cm-ovl-in { from { opacity: 0; } to { opacity: 1; } } `, ]"
31860
32635
  },
31861
32636
  {
31862
32637
  "kind": "method",