@commmerce/ui 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist/calendar.js +15 -19
  2. package/dist/cdn.js +1267 -1138
  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 +20 -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 +18 -4
  55. package/dist/components/page.js +22 -7
  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 +929 -160
  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,7 +20525,7 @@
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` it is transparent, so the page sits on the white panel.",
20483
20529
  "name": "CmPage",
20484
20530
  "slots": [
20485
20531
  {
@@ -20496,6 +20542,18 @@
20496
20542
  }
20497
20543
  ],
20498
20544
  "members": [
20545
+ {
20546
+ "kind": "field",
20547
+ "name": "width",
20548
+ "privacy": "public",
20549
+ "type": {
20550
+ "text": "'' | 'form' | 'detail' | 'wide' | 'full'"
20551
+ },
20552
+ "default": "''",
20553
+ "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.",
20554
+ "attribute": "width",
20555
+ "reflects": true
20556
+ },
20499
20557
  {
20500
20558
  "kind": "field",
20501
20559
  "name": "fullWidth",
@@ -20504,7 +20562,7 @@
20504
20562
  "text": "boolean"
20505
20563
  },
20506
20564
  "default": "false",
20507
- "description": "Lets the content use every pixel of width (wide tables, reports). By default it stops at 1600px, centred.",
20565
+ "description": "Same as `width=\"full\"`: the content uses every pixel of width (wide tables, reports).",
20508
20566
  "attribute": "full-width",
20509
20567
  "reflects": true
20510
20568
  },
@@ -20516,19 +20574,28 @@
20516
20574
  "text": "boolean"
20517
20575
  },
20518
20576
  "default": "false",
20519
- "description": "Content at most 800px wide, centred: for settings and single-column forms.",
20577
+ "description": "Content at most 800px wide, centred. Kept from 1.0; prefer `width=\"form\"` (640px) or `width=\"detail\"` (1040px).",
20520
20578
  "attribute": "narrow",
20521
20579
  "reflects": true
20522
20580
  }
20523
20581
  ],
20524
20582
  "attributes": [
20583
+ {
20584
+ "name": "width",
20585
+ "type": {
20586
+ "text": "'' | 'form' | 'detail' | 'wide' | 'full'"
20587
+ },
20588
+ "default": "''",
20589
+ "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.",
20590
+ "fieldName": "width"
20591
+ },
20525
20592
  {
20526
20593
  "name": "full-width",
20527
20594
  "type": {
20528
20595
  "text": "boolean"
20529
20596
  },
20530
20597
  "default": "false",
20531
- "description": "Lets the content use every pixel of width (wide tables, reports). By default it stops at 1600px, centred.",
20598
+ "description": "Same as `width=\"full\"`: the content uses every pixel of width (wide tables, reports).",
20532
20599
  "fieldName": "fullWidth"
20533
20600
  },
20534
20601
  {
@@ -20537,7 +20604,7 @@
20537
20604
  "text": "boolean"
20538
20605
  },
20539
20606
  "default": "false",
20540
- "description": "Content at most 800px wide, centred: for settings and single-column forms.",
20607
+ "description": "Content at most 800px wide, centred. Kept from 1.0; prefer `width=\"form\"` (640px) or `width=\"detail\"` (1040px).",
20541
20608
  "fieldName": "narrow"
20542
20609
  }
20543
20610
  ],
@@ -20566,7 +20633,7 @@
20566
20633
  "declarations": [
20567
20634
  {
20568
20635
  "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.",
20636
+ "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
20637
  "name": "CmPagination",
20571
20638
  "members": [
20572
20639
  {
@@ -21854,7 +21921,7 @@
21854
21921
  "name": "CmReportTile",
21855
21922
  "slots": [
21856
21923
  {
21857
- "description": "Your own 58px illustration, used instead of `icon`.",
21924
+ "description": "Your own 40px illustration, used instead of `icon`.",
21858
21925
  "name": "icon"
21859
21926
  }
21860
21927
  ],
@@ -22075,7 +22142,7 @@
22075
22142
  },
22076
22143
  {
22077
22144
  "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.",
22145
+ "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
22146
  "name": "CmReportTiles",
22080
22147
  "slots": [
22081
22148
  {
@@ -22168,7 +22235,7 @@
22168
22235
  "name": ""
22169
22236
  },
22170
22237
  {
22171
- "description": "A 50px thumbnail (34px on phones): a `cm-thumbnail` (recommended; `alt=\"\"` when the row names the product) or an `<img>`.",
22238
+ "description": "A 40px thumbnail (32px on phones): a `cm-thumbnail` (recommended; `alt=\"\"` when the row names the product) or an `<img>`.",
22172
22239
  "name": "media"
22173
22240
  },
22174
22241
  {
@@ -22497,7 +22564,7 @@
22497
22564
  },
22498
22565
  {
22499
22566
  "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.",
22567
+ "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
22568
  "name": "CmResourceList",
22502
22569
  "slots": [
22503
22570
  {
@@ -22505,15 +22572,15 @@
22505
22572
  "name": ""
22506
22573
  },
22507
22574
  {
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.",
22575
+ "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
22576
  "name": "header"
22510
22577
  },
22511
22578
  {
22512
- "description": "Buttons that act on the selection, e.g. \"Bulk orders\". Shown once a row is selected.",
22579
+ "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
22580
  "name": "bulk-actions"
22514
22581
  },
22515
22582
  {
22516
- "description": "Buttons at the end of the toolbar, e.g. \"Customise columns\".",
22583
+ "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
22584
  "name": "actions"
22518
22585
  },
22519
22586
  {
@@ -22632,6 +22699,36 @@
22632
22699
  "default": "0",
22633
22700
  "attribute": "_rows"
22634
22701
  },
22702
+ {
22703
+ "kind": "field",
22704
+ "name": "_hasHeader",
22705
+ "privacy": "public",
22706
+ "type": {
22707
+ "text": "boolean"
22708
+ },
22709
+ "default": "false",
22710
+ "attribute": "_hasHeader"
22711
+ },
22712
+ {
22713
+ "kind": "field",
22714
+ "name": "_hasTable",
22715
+ "privacy": "public",
22716
+ "type": {
22717
+ "text": "boolean"
22718
+ },
22719
+ "default": "false",
22720
+ "attribute": "_hasTable"
22721
+ },
22722
+ {
22723
+ "kind": "field",
22724
+ "name": "_hasActions",
22725
+ "privacy": "public",
22726
+ "type": {
22727
+ "text": "boolean"
22728
+ },
22729
+ "default": "false",
22730
+ "attribute": "_hasActions"
22731
+ },
22635
22732
  {
22636
22733
  "kind": "field",
22637
22734
  "name": "#id",
@@ -22683,6 +22780,11 @@
22683
22780
  "name": "#onHeaderSlot",
22684
22781
  "privacy": "private"
22685
22782
  },
22783
+ {
22784
+ "kind": "field",
22785
+ "name": "#onActionsSlot",
22786
+ "privacy": "private"
22787
+ },
22686
22788
  {
22687
22789
  "kind": "method",
22688
22790
  "name": "#sync",
@@ -22913,6 +23015,30 @@
22913
23015
  "default": "0",
22914
23016
  "fieldName": "_rows"
22915
23017
  },
23018
+ {
23019
+ "name": "_hasHeader",
23020
+ "type": {
23021
+ "text": "boolean"
23022
+ },
23023
+ "default": "false",
23024
+ "fieldName": "_hasHeader"
23025
+ },
23026
+ {
23027
+ "name": "_hasTable",
23028
+ "type": {
23029
+ "text": "boolean"
23030
+ },
23031
+ "default": "false",
23032
+ "fieldName": "_hasTable"
23033
+ },
23034
+ {
23035
+ "name": "_hasActions",
23036
+ "type": {
23037
+ "text": "boolean"
23038
+ },
23039
+ "default": "false",
23040
+ "fieldName": "_hasActions"
23041
+ },
22916
23042
  {
22917
23043
  "name": "strings",
22918
23044
  "type": {
@@ -23403,10 +23529,10 @@
23403
23529
  "name": "size",
23404
23530
  "privacy": "public",
23405
23531
  "type": {
23406
- "text": "'default' | 'large'"
23532
+ "text": "'default' | 'small' | 'large'"
23407
23533
  },
23408
23534
  "default": "'default'",
23409
- "description": "`default` is 42px (table headers, mobile); `large` is 46px (page-level search).",
23535
+ "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
23536
  "attribute": "size",
23411
23537
  "reflects": true
23412
23538
  },
@@ -23708,10 +23834,10 @@
23708
23834
  {
23709
23835
  "name": "size",
23710
23836
  "type": {
23711
- "text": "'default' | 'large'"
23837
+ "text": "'default' | 'small' | 'large'"
23712
23838
  },
23713
23839
  "default": "'default'",
23714
- "description": "`default` is 42px (table headers, mobile); `large` is 46px (page-level search).",
23840
+ "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
23841
  "fieldName": "size"
23716
23842
  },
23717
23843
  {
@@ -23757,36 +23883,61 @@
23757
23883
  },
23758
23884
  {
23759
23885
  "kind": "javascript-module",
23760
- "path": "src/components/select.ts",
23886
+ "path": "src/components/segmented-control.ts",
23761
23887
  "declarations": [
23762
23888
  {
23763
23889
  "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",
23890
+ "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.",
23891
+ "name": "CmSegmentedControl",
23892
+ "cssParts": [
23893
+ {
23894
+ "description": "The track (`role=\"radiogroup\"`).",
23895
+ "name": "options"
23896
+ },
23897
+ {
23898
+ "description": "Each option (`role=\"radio\"`).",
23899
+ "name": "option"
23900
+ },
23901
+ {
23902
+ "description": "The visible label, when `label` is set.",
23903
+ "name": "label"
23904
+ }
23905
+ ],
23766
23906
  "slots": [
23767
23907
  {
23768
- "description": "`<option value=\"…\">Label</option>` elements, optionally inside `<optgroup label=\"…\">`. `disabled` (also on an optgroup) and `selected` are honoured.",
23769
- "name": ""
23908
+ "description": "`<option value=\"…\">Label</option>` elements. `disabled` and `selected` are honoured.",
23909
+ "name": "",
23910
+ "inheritedFrom": {
23911
+ "name": "CmOptionGroup",
23912
+ "module": "src/components/option-group.ts"
23913
+ }
23770
23914
  }
23771
23915
  ],
23772
23916
  "members": [
23773
23917
  {
23774
23918
  "kind": "field",
23775
- "name": "formAssociated",
23919
+ "name": "size",
23920
+ "privacy": "public",
23776
23921
  "type": {
23777
- "text": "boolean"
23922
+ "text": "'default' | 'small'"
23778
23923
  },
23779
- "static": true,
23780
- "default": "true"
23924
+ "default": "'default'",
23925
+ "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.",
23926
+ "attribute": "size",
23927
+ "reflects": true
23781
23928
  },
23782
23929
  {
23783
23930
  "kind": "field",
23784
- "name": "shadowRootOptions",
23931
+ "name": "formAssociated",
23785
23932
  "type": {
23786
- "text": "object"
23933
+ "text": "boolean"
23787
23934
  },
23788
23935
  "static": true,
23789
- "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true }"
23936
+ "default": "true",
23937
+ "inheritedFrom": {
23938
+ "name": "CmOptionGroup",
23939
+ "module": "src/components/option-group.ts"
23940
+ }
23790
23941
  },
23791
23942
  {
23792
23943
  "kind": "field",
@@ -23796,31 +23947,12 @@
23796
23947
  "text": "string"
23797
23948
  },
23798
23949
  "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
23950
+ "description": "Heading above the options, e.g. \"Select offer type\". Without one, give the element an `aria-label`.",
23951
+ "attribute": "label",
23952
+ "inheritedFrom": {
23953
+ "name": "CmOptionGroup",
23954
+ "module": "src/components/option-group.ts"
23955
+ }
23824
23956
  },
23825
23957
  {
23826
23958
  "kind": "field",
@@ -23832,7 +23964,11 @@
23832
23964
  "default": "''",
23833
23965
  "description": "Form field name.",
23834
23966
  "attribute": "name",
23835
- "reflects": true
23967
+ "reflects": true,
23968
+ "inheritedFrom": {
23969
+ "name": "CmOptionGroup",
23970
+ "module": "src/components/option-group.ts"
23971
+ }
23836
23972
  },
23837
23973
  {
23838
23974
  "kind": "field",
@@ -23842,30 +23978,27 @@
23842
23978
  "text": "string"
23843
23979
  },
23844
23980
  "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"
23981
+ "description": "Value of the selected option; empty when nothing is selected.",
23982
+ "attribute": "value",
23983
+ "inheritedFrom": {
23984
+ "name": "CmOptionGroup",
23985
+ "module": "src/components/option-group.ts"
23986
+ }
23858
23987
  },
23859
23988
  {
23860
23989
  "kind": "field",
23861
23990
  "name": "options",
23862
23991
  "privacy": "public",
23863
23992
  "type": {
23864
- "text": "Array<string | SelectOption>"
23993
+ "text": "Array<string | OptionGroupOption>"
23865
23994
  },
23866
23995
  "default": "[]",
23867
- "description": "Options as strings or `{ value, label, disabled, group }`. Used instead of `<option>` children when set.",
23868
- "attribute": "options"
23996
+ "description": "Options as strings or `{ value, label, disabled, tone }`. Used instead of `<option>` children when set.",
23997
+ "attribute": "options",
23998
+ "inheritedFrom": {
23999
+ "name": "CmOptionGroup",
24000
+ "module": "src/components/option-group.ts"
24001
+ }
23869
24002
  },
23870
24003
  {
23871
24004
  "kind": "field",
@@ -23877,7 +24010,11 @@
23877
24010
  "default": "false",
23878
24011
  "description": "The form will not submit until an option is chosen.",
23879
24012
  "attribute": "required",
23880
- "reflects": true
24013
+ "reflects": true,
24014
+ "inheritedFrom": {
24015
+ "name": "CmOptionGroup",
24016
+ "module": "src/components/option-group.ts"
24017
+ }
23881
24018
  },
23882
24019
  {
23883
24020
  "kind": "field",
@@ -23887,62 +24024,45 @@
23887
24024
  "text": "boolean"
23888
24025
  },
23889
24026
  "default": "false",
23890
- "description": "Blocks interaction. Also set by a disabled `<fieldset>`.",
24027
+ "description": "Blocks every option. Also set by a disabled `<fieldset>`.",
23891
24028
  "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"
24029
+ "reflects": true,
24030
+ "inheritedFrom": {
24031
+ "name": "CmOptionGroup",
24032
+ "module": "src/components/option-group.ts"
24033
+ }
23926
24034
  },
23927
24035
  {
23928
24036
  "kind": "field",
23929
24037
  "name": "_slotted",
23930
24038
  "privacy": "public",
23931
24039
  "type": {
23932
- "text": "SelectOption[]"
24040
+ "text": "OptionGroupOption[]"
23933
24041
  },
23934
24042
  "default": "[]",
23935
- "attribute": "_slotted"
24043
+ "attribute": "_slotted",
24044
+ "inheritedFrom": {
24045
+ "name": "CmOptionGroup",
24046
+ "module": "src/components/option-group.ts"
24047
+ }
23936
24048
  },
23937
24049
  {
23938
24050
  "kind": "field",
23939
24051
  "name": "#internals",
23940
- "privacy": "private"
24052
+ "privacy": "private",
24053
+ "inheritedFrom": {
24054
+ "name": "CmOptionGroup",
24055
+ "module": "src/components/option-group.ts"
24056
+ }
23941
24057
  },
23942
24058
  {
23943
24059
  "kind": "field",
23944
24060
  "name": "#id",
23945
- "privacy": "private"
24061
+ "privacy": "private",
24062
+ "inheritedFrom": {
24063
+ "name": "CmOptionGroup",
24064
+ "module": "src/components/option-group.ts"
24065
+ }
23946
24066
  },
23947
24067
  {
23948
24068
  "kind": "field",
@@ -23951,20 +24071,660 @@
23951
24071
  "type": {
23952
24072
  "text": "string"
23953
24073
  },
23954
- "default": "''"
24074
+ "default": "''",
24075
+ "inheritedFrom": {
24076
+ "name": "CmOptionGroup",
24077
+ "module": "src/components/option-group.ts"
24078
+ }
23955
24079
  },
23956
24080
  {
23957
24081
  "kind": "field",
23958
- "name": "#typed",
24082
+ "name": "#observer",
23959
24083
  "privacy": "private",
23960
- "type": {
23961
- "text": "string"
23962
- },
23963
- "default": "''"
24084
+ "default": "new MutationObserver(() => this.#readChildren())",
24085
+ "inheritedFrom": {
24086
+ "name": "CmOptionGroup",
24087
+ "module": "src/components/option-group.ts"
24088
+ }
23964
24089
  },
23965
24090
  {
23966
24091
  "kind": "field",
23967
- "name": "#typedAt",
24092
+ "name": "form",
24093
+ "readonly": true,
24094
+ "inheritedFrom": {
24095
+ "name": "CmOptionGroup",
24096
+ "module": "src/components/option-group.ts"
24097
+ }
24098
+ },
24099
+ {
24100
+ "kind": "field",
24101
+ "name": "validity",
24102
+ "readonly": true,
24103
+ "inheritedFrom": {
24104
+ "name": "CmOptionGroup",
24105
+ "module": "src/components/option-group.ts"
24106
+ }
24107
+ },
24108
+ {
24109
+ "kind": "field",
24110
+ "name": "validationMessage",
24111
+ "readonly": true,
24112
+ "inheritedFrom": {
24113
+ "name": "CmOptionGroup",
24114
+ "module": "src/components/option-group.ts"
24115
+ }
24116
+ },
24117
+ {
24118
+ "kind": "method",
24119
+ "name": "checkValidity",
24120
+ "inheritedFrom": {
24121
+ "name": "CmOptionGroup",
24122
+ "module": "src/components/option-group.ts"
24123
+ }
24124
+ },
24125
+ {
24126
+ "kind": "method",
24127
+ "name": "reportValidity",
24128
+ "inheritedFrom": {
24129
+ "name": "CmOptionGroup",
24130
+ "module": "src/components/option-group.ts"
24131
+ }
24132
+ },
24133
+ {
24134
+ "kind": "method",
24135
+ "name": "formResetCallback",
24136
+ "inheritedFrom": {
24137
+ "name": "CmOptionGroup",
24138
+ "module": "src/components/option-group.ts"
24139
+ }
24140
+ },
24141
+ {
24142
+ "kind": "method",
24143
+ "name": "formDisabledCallback",
24144
+ "parameters": [
24145
+ {
24146
+ "name": "d",
24147
+ "type": {
24148
+ "text": "boolean"
24149
+ }
24150
+ }
24151
+ ],
24152
+ "inheritedFrom": {
24153
+ "name": "CmOptionGroup",
24154
+ "module": "src/components/option-group.ts"
24155
+ }
24156
+ },
24157
+ {
24158
+ "kind": "method",
24159
+ "name": "formStateRestoreCallback",
24160
+ "parameters": [
24161
+ {
24162
+ "name": "state",
24163
+ "type": {
24164
+ "text": "string"
24165
+ }
24166
+ }
24167
+ ],
24168
+ "inheritedFrom": {
24169
+ "name": "CmOptionGroup",
24170
+ "module": "src/components/option-group.ts"
24171
+ }
24172
+ },
24173
+ {
24174
+ "kind": "method",
24175
+ "name": "focus",
24176
+ "parameters": [
24177
+ {
24178
+ "name": "options",
24179
+ "optional": true,
24180
+ "type": {
24181
+ "text": "FocusOptions"
24182
+ }
24183
+ }
24184
+ ],
24185
+ "description": "Focuses the selected option, or the first one.",
24186
+ "inheritedFrom": {
24187
+ "name": "CmOptionGroup",
24188
+ "module": "src/components/option-group.ts"
24189
+ }
24190
+ },
24191
+ {
24192
+ "kind": "field",
24193
+ "name": "items",
24194
+ "type": {
24195
+ "text": "OptionGroupOption[]"
24196
+ },
24197
+ "description": "The options in use, normalised.",
24198
+ "readonly": true,
24199
+ "inheritedFrom": {
24200
+ "name": "CmOptionGroup",
24201
+ "module": "src/components/option-group.ts"
24202
+ }
24203
+ },
24204
+ {
24205
+ "kind": "method",
24206
+ "name": "#readChildren",
24207
+ "privacy": "private",
24208
+ "inheritedFrom": {
24209
+ "name": "CmOptionGroup",
24210
+ "module": "src/components/option-group.ts"
24211
+ }
24212
+ },
24213
+ {
24214
+ "kind": "method",
24215
+ "name": "#select",
24216
+ "privacy": "private",
24217
+ "parameters": [
24218
+ {
24219
+ "name": "i",
24220
+ "type": {
24221
+ "text": "number"
24222
+ }
24223
+ }
24224
+ ],
24225
+ "inheritedFrom": {
24226
+ "name": "CmOptionGroup",
24227
+ "module": "src/components/option-group.ts"
24228
+ }
24229
+ },
24230
+ {
24231
+ "kind": "method",
24232
+ "name": "#onKeyDown",
24233
+ "privacy": "private",
24234
+ "parameters": [
24235
+ {
24236
+ "name": "e",
24237
+ "type": {
24238
+ "text": "KeyboardEvent"
24239
+ }
24240
+ },
24241
+ {
24242
+ "name": "i",
24243
+ "type": {
24244
+ "text": "number"
24245
+ }
24246
+ }
24247
+ ],
24248
+ "inheritedFrom": {
24249
+ "name": "CmOptionGroup",
24250
+ "module": "src/components/option-group.ts"
24251
+ }
24252
+ },
24253
+ {
24254
+ "kind": "method",
24255
+ "name": "finalize",
24256
+ "static": true,
24257
+ "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.",
24258
+ "inheritedFrom": {
24259
+ "name": "CmLocalizedElement",
24260
+ "module": "src/localize.ts"
24261
+ }
24262
+ },
24263
+ {
24264
+ "kind": "field",
24265
+ "name": "strings",
24266
+ "privacy": "public",
24267
+ "type": {
24268
+ "text": "Record<string, Message> | null | undefined"
24269
+ },
24270
+ "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).",
24271
+ "attribute": "strings",
24272
+ "inheritedFrom": {
24273
+ "name": "CmLocalizedElement",
24274
+ "module": "src/localize.ts"
24275
+ }
24276
+ },
24277
+ {
24278
+ "kind": "field",
24279
+ "name": "stringsNamespace",
24280
+ "privacy": "protected",
24281
+ "description": "The string namespace: the tag name without `cm-`, in camelCase.",
24282
+ "readonly": true,
24283
+ "inheritedFrom": {
24284
+ "name": "CmLocalizedElement",
24285
+ "module": "src/localize.ts"
24286
+ }
24287
+ },
24288
+ {
24289
+ "kind": "method",
24290
+ "name": "t",
24291
+ "privacy": "protected",
24292
+ "parameters": [
24293
+ {
24294
+ "name": "key",
24295
+ "type": {
24296
+ "text": "string"
24297
+ }
24298
+ },
24299
+ {
24300
+ "name": "vars",
24301
+ "optional": true,
24302
+ "type": {
24303
+ "text": "MessageVars"
24304
+ }
24305
+ }
24306
+ ],
24307
+ "description": "The component's text for `key`, in its language, with `{placeholders}` filled from `vars`.",
24308
+ "inheritedFrom": {
24309
+ "name": "CmLocalizedElement",
24310
+ "module": "src/localize.ts"
24311
+ }
24312
+ },
24313
+ {
24314
+ "kind": "field",
24315
+ "name": "locale",
24316
+ "privacy": "protected",
24317
+ "description": "The locale used for numbers, dates and plurals.",
24318
+ "readonly": true,
24319
+ "inheritedFrom": {
24320
+ "name": "CmLocalizedElement",
24321
+ "module": "src/localize.ts"
24322
+ }
24323
+ },
24324
+ {
24325
+ "kind": "method",
24326
+ "name": "formatNumber",
24327
+ "privacy": "protected",
24328
+ "parameters": [
24329
+ {
24330
+ "name": "n",
24331
+ "type": {
24332
+ "text": "number"
24333
+ }
24334
+ },
24335
+ {
24336
+ "name": "options",
24337
+ "optional": true,
24338
+ "type": {
24339
+ "text": "Intl.NumberFormatOptions"
24340
+ }
24341
+ }
24342
+ ],
24343
+ "description": "A number formatted for the component's locale.",
24344
+ "inheritedFrom": {
24345
+ "name": "CmLocalizedElement",
24346
+ "module": "src/localize.ts"
24347
+ }
24348
+ }
24349
+ ],
24350
+ "events": [
24351
+ {
24352
+ "name": "change",
24353
+ "type": {
24354
+ "text": "Event"
24355
+ },
24356
+ "description": "When the merchant picks a different option.",
24357
+ "inheritedFrom": {
24358
+ "name": "CmOptionGroup",
24359
+ "module": "src/components/option-group.ts"
24360
+ }
24361
+ },
24362
+ {
24363
+ "name": "input",
24364
+ "type": {
24365
+ "text": "Event"
24366
+ },
24367
+ "description": "Same moment as `change`.",
24368
+ "inheritedFrom": {
24369
+ "name": "CmOptionGroup",
24370
+ "module": "src/components/option-group.ts"
24371
+ }
24372
+ }
24373
+ ],
24374
+ "attributes": [
24375
+ {
24376
+ "name": "size",
24377
+ "type": {
24378
+ "text": "'default' | 'small'"
24379
+ },
24380
+ "default": "'default'",
24381
+ "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.",
24382
+ "fieldName": "size"
24383
+ },
24384
+ {
24385
+ "name": "label",
24386
+ "type": {
24387
+ "text": "string"
24388
+ },
24389
+ "default": "''",
24390
+ "description": "Heading above the options, e.g. \"Select offer type\". Without one, give the element an `aria-label`.",
24391
+ "fieldName": "label",
24392
+ "inheritedFrom": {
24393
+ "name": "CmOptionGroup",
24394
+ "module": "src/components/option-group.ts"
24395
+ }
24396
+ },
24397
+ {
24398
+ "name": "name",
24399
+ "type": {
24400
+ "text": "string"
24401
+ },
24402
+ "default": "''",
24403
+ "description": "Form field name.",
24404
+ "fieldName": "name",
24405
+ "inheritedFrom": {
24406
+ "name": "CmOptionGroup",
24407
+ "module": "src/components/option-group.ts"
24408
+ }
24409
+ },
24410
+ {
24411
+ "name": "value",
24412
+ "type": {
24413
+ "text": "string"
24414
+ },
24415
+ "default": "''",
24416
+ "description": "Value of the selected option; empty when nothing is selected.",
24417
+ "fieldName": "value",
24418
+ "inheritedFrom": {
24419
+ "name": "CmOptionGroup",
24420
+ "module": "src/components/option-group.ts"
24421
+ }
24422
+ },
24423
+ {
24424
+ "name": "options",
24425
+ "type": {
24426
+ "text": "Array<string | OptionGroupOption>"
24427
+ },
24428
+ "default": "[]",
24429
+ "description": "Options as strings or `{ value, label, disabled, tone }`. Used instead of `<option>` children when set.",
24430
+ "fieldName": "options",
24431
+ "inheritedFrom": {
24432
+ "name": "CmOptionGroup",
24433
+ "module": "src/components/option-group.ts"
24434
+ }
24435
+ },
24436
+ {
24437
+ "name": "required",
24438
+ "type": {
24439
+ "text": "boolean"
24440
+ },
24441
+ "default": "false",
24442
+ "description": "The form will not submit until an option is chosen.",
24443
+ "fieldName": "required",
24444
+ "inheritedFrom": {
24445
+ "name": "CmOptionGroup",
24446
+ "module": "src/components/option-group.ts"
24447
+ }
24448
+ },
24449
+ {
24450
+ "name": "disabled",
24451
+ "type": {
24452
+ "text": "boolean"
24453
+ },
24454
+ "default": "false",
24455
+ "description": "Blocks every option. Also set by a disabled `<fieldset>`.",
24456
+ "fieldName": "disabled",
24457
+ "inheritedFrom": {
24458
+ "name": "CmOptionGroup",
24459
+ "module": "src/components/option-group.ts"
24460
+ }
24461
+ },
24462
+ {
24463
+ "name": "_slotted",
24464
+ "type": {
24465
+ "text": "OptionGroupOption[]"
24466
+ },
24467
+ "default": "[]",
24468
+ "fieldName": "_slotted",
24469
+ "inheritedFrom": {
24470
+ "name": "CmOptionGroup",
24471
+ "module": "src/components/option-group.ts"
24472
+ }
24473
+ },
24474
+ {
24475
+ "name": "strings",
24476
+ "type": {
24477
+ "text": "Record<string, Message> | null | undefined"
24478
+ },
24479
+ "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).",
24480
+ "fieldName": "strings",
24481
+ "inheritedFrom": {
24482
+ "name": "CmLocalizedElement",
24483
+ "module": "src/localize.ts"
24484
+ }
24485
+ }
24486
+ ],
24487
+ "superclass": {
24488
+ "name": "CmOptionGroup",
24489
+ "module": "/src/components/option-group.js"
24490
+ },
24491
+ "tagName": "cm-segmented-control",
24492
+ "customElement": true
24493
+ }
24494
+ ],
24495
+ "exports": [
24496
+ {
24497
+ "kind": "js",
24498
+ "name": "CmSegmentedControl",
24499
+ "declaration": {
24500
+ "name": "CmSegmentedControl",
24501
+ "module": "src/components/segmented-control.ts"
24502
+ }
24503
+ }
24504
+ ]
24505
+ },
24506
+ {
24507
+ "kind": "javascript-module",
24508
+ "path": "src/components/select.ts",
24509
+ "declarations": [
24510
+ {
24511
+ "kind": "class",
24512
+ "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).",
24513
+ "name": "CmSelect",
24514
+ "slots": [
24515
+ {
24516
+ "description": "`<option value=\"…\">Label</option>` elements, optionally inside `<optgroup label=\"…\">`. `disabled` (also on an optgroup) and `selected` are honoured.",
24517
+ "name": ""
24518
+ }
24519
+ ],
24520
+ "members": [
24521
+ {
24522
+ "kind": "field",
24523
+ "name": "formAssociated",
24524
+ "type": {
24525
+ "text": "boolean"
24526
+ },
24527
+ "static": true,
24528
+ "default": "true"
24529
+ },
24530
+ {
24531
+ "kind": "field",
24532
+ "name": "shadowRootOptions",
24533
+ "type": {
24534
+ "text": "object"
24535
+ },
24536
+ "static": true,
24537
+ "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true }"
24538
+ },
24539
+ {
24540
+ "kind": "field",
24541
+ "name": "label",
24542
+ "privacy": "public",
24543
+ "type": {
24544
+ "text": "string"
24545
+ },
24546
+ "default": "''",
24547
+ "description": "Visible label above the box. Required for accessibility unless the element has an aria-label.",
24548
+ "attribute": "label"
24549
+ },
24550
+ {
24551
+ "kind": "field",
24552
+ "name": "helpText",
24553
+ "privacy": "public",
24554
+ "type": {
24555
+ "text": "string"
24556
+ },
24557
+ "default": "''",
24558
+ "description": "One sentence under the box in text-tertiary.",
24559
+ "attribute": "help-text"
24560
+ },
24561
+ {
24562
+ "kind": "field",
24563
+ "name": "error",
24564
+ "privacy": "public",
24565
+ "type": {
24566
+ "text": "string"
24567
+ },
24568
+ "default": "''",
24569
+ "description": "Error message; turns the border critical and sets aria-invalid.",
24570
+ "attribute": "error",
24571
+ "reflects": true
24572
+ },
24573
+ {
24574
+ "kind": "field",
24575
+ "name": "name",
24576
+ "privacy": "public",
24577
+ "type": {
24578
+ "text": "string"
24579
+ },
24580
+ "default": "''",
24581
+ "description": "Form field name.",
24582
+ "attribute": "name",
24583
+ "reflects": true
24584
+ },
24585
+ {
24586
+ "kind": "field",
24587
+ "name": "value",
24588
+ "privacy": "public",
24589
+ "type": {
24590
+ "text": "string"
24591
+ },
24592
+ "default": "''",
24593
+ "description": "Value of the chosen option; empty when nothing is chosen.",
24594
+ "attribute": "value"
24595
+ },
24596
+ {
24597
+ "kind": "field",
24598
+ "name": "placeholder",
24599
+ "privacy": "public",
24600
+ "type": {
24601
+ "text": "string"
24602
+ },
24603
+ "default": "''",
24604
+ "description": "Shown while nothing is chosen, e.g. \"Select customer\".",
24605
+ "attribute": "placeholder"
24606
+ },
24607
+ {
24608
+ "kind": "field",
24609
+ "name": "options",
24610
+ "privacy": "public",
24611
+ "type": {
24612
+ "text": "Array<string | SelectOption>"
24613
+ },
24614
+ "default": "[]",
24615
+ "description": "Options as strings or `{ value, label, disabled, group }`. Used instead of `<option>` children when set.",
24616
+ "attribute": "options"
24617
+ },
24618
+ {
24619
+ "kind": "field",
24620
+ "name": "required",
24621
+ "privacy": "public",
24622
+ "type": {
24623
+ "text": "boolean"
24624
+ },
24625
+ "default": "false",
24626
+ "description": "The form will not submit until an option is chosen.",
24627
+ "attribute": "required",
24628
+ "reflects": true
24629
+ },
24630
+ {
24631
+ "kind": "field",
24632
+ "name": "disabled",
24633
+ "privacy": "public",
24634
+ "type": {
24635
+ "text": "boolean"
24636
+ },
24637
+ "default": "false",
24638
+ "description": "Blocks interaction. Also set by a disabled `<fieldset>`.",
24639
+ "attribute": "disabled",
24640
+ "reflects": true
24641
+ },
24642
+ {
24643
+ "kind": "field",
24644
+ "name": "open",
24645
+ "privacy": "public",
24646
+ "type": {
24647
+ "text": "boolean"
24648
+ },
24649
+ "default": "false",
24650
+ "description": "Whether the list is showing.",
24651
+ "attribute": "open",
24652
+ "reflects": true
24653
+ },
24654
+ {
24655
+ "kind": "field",
24656
+ "name": "showGroup",
24657
+ "privacy": "public",
24658
+ "type": {
24659
+ "text": "boolean"
24660
+ },
24661
+ "default": "false",
24662
+ "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.",
24663
+ "attribute": "show-group"
24664
+ },
24665
+ {
24666
+ "kind": "field",
24667
+ "name": "size",
24668
+ "privacy": "public",
24669
+ "type": {
24670
+ "text": "'default' | 'small'"
24671
+ },
24672
+ "default": "'default'",
24673
+ "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.",
24674
+ "attribute": "size",
24675
+ "reflects": true
24676
+ },
24677
+ {
24678
+ "kind": "field",
24679
+ "name": "_active",
24680
+ "privacy": "public",
24681
+ "type": {
24682
+ "text": "number"
24683
+ },
24684
+ "default": "-1",
24685
+ "attribute": "_active"
24686
+ },
24687
+ {
24688
+ "kind": "field",
24689
+ "name": "_slotted",
24690
+ "privacy": "public",
24691
+ "type": {
24692
+ "text": "SelectOption[]"
24693
+ },
24694
+ "default": "[]",
24695
+ "attribute": "_slotted"
24696
+ },
24697
+ {
24698
+ "kind": "field",
24699
+ "name": "#internals",
24700
+ "privacy": "private"
24701
+ },
24702
+ {
24703
+ "kind": "field",
24704
+ "name": "#id",
24705
+ "privacy": "private"
24706
+ },
24707
+ {
24708
+ "kind": "field",
24709
+ "name": "#defaultValue",
24710
+ "privacy": "private",
24711
+ "type": {
24712
+ "text": "string"
24713
+ },
24714
+ "default": "''"
24715
+ },
24716
+ {
24717
+ "kind": "field",
24718
+ "name": "#typed",
24719
+ "privacy": "private",
24720
+ "type": {
24721
+ "text": "string"
24722
+ },
24723
+ "default": "''"
24724
+ },
24725
+ {
24726
+ "kind": "field",
24727
+ "name": "#typedAt",
23968
24728
  "privacy": "private",
23969
24729
  "type": {
23970
24730
  "text": "number"
@@ -24351,6 +25111,15 @@
24351
25111
  "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
25112
  "fieldName": "showGroup"
24353
25113
  },
25114
+ {
25115
+ "name": "size",
25116
+ "type": {
25117
+ "text": "'default' | 'small'"
25118
+ },
25119
+ "default": "'default'",
25120
+ "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.",
25121
+ "fieldName": "size"
25122
+ },
24354
25123
  {
24355
25124
  "name": "_active",
24356
25125
  "type": {
@@ -25114,7 +25883,7 @@
25114
25883
  "text": "array"
25115
25884
  },
25116
25885
  "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; } } `, ]",
25886
+ "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
25887
  "inheritedFrom": {
25119
25888
  "name": "CmOverlay",
25120
25889
  "module": "src/overlay.ts"
@@ -26662,7 +27431,7 @@
26662
27431
  "text": "keyof typeof THUMB"
26663
27432
  },
26664
27433
  "default": "'large'",
26665
- "description": "Thumbnail size from Figma: `small` 34px, `medium` 40px, `large` 50px, `xlarge` 186px.",
27434
+ "description": "Thumbnail size: `small` 34px, `medium` 40px, `large` 50px, `xlarge` 186px.",
26666
27435
  "attribute": "size",
26667
27436
  "reflects": true
26668
27437
  }
@@ -26692,7 +27461,7 @@
26692
27461
  "text": "keyof typeof THUMB"
26693
27462
  },
26694
27463
  "default": "'large'",
26695
- "description": "Thumbnail size from Figma: `small` 34px, `medium` 40px, `large` 50px, `xlarge` 186px.",
27464
+ "description": "Thumbnail size: `small` 34px, `medium` 40px, `large` 50px, `xlarge` 186px.",
26696
27465
  "fieldName": "size"
26697
27466
  }
26698
27467
  ],
@@ -26926,7 +27695,7 @@
26926
27695
  "type": {
26927
27696
  "text": "string"
26928
27697
  },
26929
- "description": "Title above the tips, shown in capitals. Default: the built-in string `heading` (\"Smart tips\").",
27698
+ "description": "Title above the tips. Default: the built-in string `heading` (\"Smart tips\").",
26930
27699
  "attribute": "heading"
26931
27700
  },
26932
27701
  {
@@ -27073,7 +27842,7 @@
27073
27842
  "type": {
27074
27843
  "text": "string"
27075
27844
  },
27076
- "description": "Title above the tips, shown in capitals. Default: the built-in string `heading` (\"Smart tips\").",
27845
+ "description": "Title above the tips. Default: the built-in string `heading` (\"Smart tips\").",
27077
27846
  "fieldName": "heading"
27078
27847
  },
27079
27848
  {
@@ -27355,7 +28124,7 @@
27355
28124
  "text": "SpaceStep"
27356
28125
  },
27357
28126
  "default": "'20'",
27358
- "description": "Space between items: a spacing step (`0`, `10`, `12`, `15`, `20`, `22`, `30`). Default `20`, the gap between cards.",
28127
+ "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
28128
  "attribute": "gap",
27360
28129
  "reflects": true
27361
28130
  },
@@ -27410,7 +28179,7 @@
27410
28179
  "text": "SpaceStep"
27411
28180
  },
27412
28181
  "default": "'20'",
27413
- "description": "Space between items: a spacing step (`0`, `10`, `12`, `15`, `20`, `22`, `30`). Default `20`, the gap between cards.",
28182
+ "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
28183
  "fieldName": "gap"
27415
28184
  },
27416
28185
  {
@@ -27464,7 +28233,7 @@
27464
28233
  "declarations": [
27465
28234
  {
27466
28235
  "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.",
28236
+ "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
28237
  "name": "CmStatusTabs",
27469
28238
  "slots": [
27470
28239
  {
@@ -27515,7 +28284,7 @@
27515
28284
  "text": "'large' | 'small'"
27516
28285
  },
27517
28286
  "default": "'large'",
27518
- "description": "`large` (18px, page-level order statuses) or `small` (14px, inside a card, e.g. review sorting).",
28287
+ "description": "`large` (the default: 14px labels, page-level statuses) or `small` (13px, tighter, inside a card, e.g. review sorting).",
27519
28288
  "attribute": "size",
27520
28289
  "reflects": true
27521
28290
  },
@@ -27748,7 +28517,7 @@
27748
28517
  "text": "'large' | 'small'"
27749
28518
  },
27750
28519
  "default": "'large'",
27751
- "description": "`large` (18px, page-level order statuses) or `small` (14px, inside a card, e.g. review sorting).",
28520
+ "description": "`large` (the default: 14px labels, page-level statuses) or `small` (13px, tighter, inside a card, e.g. review sorting).",
27752
28521
  "fieldName": "size"
27753
28522
  },
27754
28523
  {
@@ -27797,7 +28566,7 @@
27797
28566
  "declarations": [
27798
28567
  {
27799
28568
  "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.",
28569
+ "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
28570
  "name": "CmTableHeader",
27802
28571
  "cssProperties": [
27803
28572
  {
@@ -27855,7 +28624,7 @@
27855
28624
  "text": "boolean"
27856
28625
  },
27857
28626
  "default": "false",
27858
- "description": "Adds a leading \"select all\" checkbox column (50px, as in Figma).",
28627
+ "description": "Adds a leading \"select all\" checkbox column.",
27859
28628
  "attribute": "selectable",
27860
28629
  "reflects": true
27861
28630
  },
@@ -28112,7 +28881,7 @@
28112
28881
  "text": "boolean"
28113
28882
  },
28114
28883
  "default": "false",
28115
- "description": "Adds a leading \"select all\" checkbox column (50px, as in Figma).",
28884
+ "description": "Adds a leading \"select all\" checkbox column.",
28116
28885
  "fieldName": "selectable"
28117
28886
  },
28118
28887
  {
@@ -28603,7 +29372,7 @@
28603
29372
  "text": "'default' | 'small'"
28604
29373
  },
28605
29374
  "default": "'default'",
28606
- "description": "`small`: 12px label, 14px value (filter panels).",
29375
+ "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
29376
  "attribute": "size",
28608
29377
  "reflects": true
28609
29378
  },
@@ -28993,7 +29762,7 @@
28993
29762
  "text": "'default' | 'small'"
28994
29763
  },
28995
29764
  "default": "'default'",
28996
- "description": "`small`: 12px label, 14px value (filter panels).",
29765
+ "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
29766
  "fieldName": "size"
28998
29767
  },
28999
29768
  {
@@ -31856,7 +32625,7 @@
31856
32625
  "text": "array"
31857
32626
  },
31858
32627
  "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; } } `, ]"
32628
+ "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
32629
  },
31861
32630
  {
31862
32631
  "kind": "method",