@things-factory/board-ui 10.1.46 → 10.1.47

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.
@@ -192,7 +192,7 @@ let ThemeListPage = class ThemeListPage extends localize(i18next)(ScopedElements
192
192
  };
193
193
  }
194
194
  async _deleteTheme() {
195
- if (confirm(i18next.t('text.sure_to_x', { x: i18next.t('text.delete') }))) {
195
+ if (confirm(i18next.t('text.sure_to_x', { x: i18next.t('button.delete') }))) {
196
196
  const ids = this.grist.selected.map(record => record.id);
197
197
  if (ids && ids.length > 0) {
198
198
  const [mutateFunction, { error }] = useMutation(`
@@ -203,7 +203,7 @@ mutation ($ids: [String!]!) { deleteThemes(ids: $ids)
203
203
  });
204
204
  if (!error) {
205
205
  this.grist.fetch();
206
- notify({ message: i18next.t('text.info_x_successfully', { x: i18next.t('text.delete') })
206
+ notify({ message: i18next.t('text.info_x_successfully', { x: i18next.t('button.delete') })
207
207
  });
208
208
  }
209
209
  }
@@ -1 +1 @@
1
- {"version":3,"file":"theme-list-page.js","sourceRoot":"","sources":["../../../client/pages/theme/theme-list-page.ts"],"names":[],"mappings":";AAAA,OAAO,qBAAqB,CAAA;AAE5B,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AACnI,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAE5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAClE,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAe,SAAS,EAAE,WAA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AAiB,CAAC;GACpB,aAAa,CAqNzB","sourcesContent":["import '@operato/data-grist'\n\nimport { CommonButtonStyles, CommonGristStyles, CommonHeaderStyles, ScrollbarStyles, WorkSurfacePageStyles } from '@operato/styles'\nimport { PageView } from '@operato/shell'\nimport { css, html } from 'lit'\nimport { useMutation } from '@apollo/client'\n\nimport { customElement, property, query } from 'lit/decorators.js'\nimport gql from 'graphql-tag'\nimport { ScopedElementsMixin } from '@open-wc/scoped-elements'\nimport { DataGrist, FetchOption, getEditor, getRenderer } from '@operato/data-grist'\n\nimport { client } from '@operato/graphql'\nimport { i18next, localize } from '@operato/i18n'\nimport { notify } from '@operato/layout'\nimport { isMobileDevice } from '@operato/utils'\n\n// export interface ThemeType { // name: string\n// propType: string\n// }\n\n// var ThemeTypes: { [name: string]: ThemeType } = { // Legend: { // name: 'Legend',\n// propType: 'legend'\n// }\n// }\n\n@customElement('theme-list-page')\nexport class ThemeListPage extends localize(i18next)(ScopedElementsMixin(PageView)) { static styles = [\n /* The work surface frame for a list screen (ADR-0060 decision 8). */\n WorkSurfacePageStyles,\n ScrollbarStyles,\n CommonGristStyles,\n CommonHeaderStyles,\n css`\n :host {\n --grid-record-emphasized-background-color: #8b0000;\n --grid-record-emphasized-color: #ff6b6b;\n }\n\n ox-filters-form { flex: 1;\n }\n `\n ]\n\n @property({ type: Object }) gristConfig: any\n @property({ type: String }) mode: 'CARD' | 'GRID' | 'LIST' = isMobileDevice() ? 'CARD' : 'GRID'\n\n @query('ox-grist') private grist!: DataGrist\n\n get context() { return { title: i18next.t('title.theme list'),\n search: { handler: (search: string) => { this.grist.searchText = search\n },\n value: this.grist?.searchText || ''\n },\n filter: { handler: () => { this.grist.toggleHeadroom()\n }\n },\n help: 'board-service/theme',\n actions: [\n { title: i18next.t('button.save'),\n action: this._updateTheme.bind(this),\n ...CommonButtonStyles.save\n },\n { title: i18next.t('button.delete'),\n action: this._deleteTheme.bind(this),\n ...CommonButtonStyles.delete\n }\n ]\n }\n }\n\n render() { const mode = this.mode || (isMobileDevice() ? 'CARD' : 'GRID')\n\n return html`\n <ox-grist class=\"page-fill\" .mode=${mode} .config=${this.gristConfig} .fetchHandler=${this.fetchHandler.bind(this)}>\n <div slot=\"headroom\" class=\"header\">\n <div class=\"filters\">\n <ox-filters-form autofocus without-search></ox-filters-form>\n\n <div id=\"modes\">\n <md-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>grid_on</md-icon>\n <md-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>format_list_bulleted</md-icon>\n <md-icon @click=${() => (this.mode = 'CARD')} ?active=${mode == 'CARD'}>apps</md-icon>\n </div>\n </div>\n </div>\n </ox-grist>\n `\n }\n\n async pageInitialized(lifecycle: any) { this.gristConfig = { list: { fields: ['name', 'description'],\n details: ['type', 'updatedAt']\n },\n columns: [\n { type: 'gutter', gutterName: 'sequence' },\n { type: 'gutter', gutterName: 'row-selector', multiple: true },\n { type: 'string',\n name: 'name',\n header: i18next.t('field.name'),\n record: { editable: true\n },\n filter: 'search',\n sortable: true,\n width: 150\n },\n { type: 'string',\n name: 'description',\n header: i18next.t('field.description'),\n record: { editable: true\n },\n filter: 'search',\n width: 200\n },\n { type: 'checkbox',\n name: 'active',\n header: i18next.t('field.active'),\n record: { editable: true\n },\n width: 60\n },\n { type: 'select',\n name: 'type',\n header: i18next.t('field.type'),\n record: { options: ['', 'color-map', 'color-ranges', 'color', 'text'],\n editable: true\n },\n width: 120\n },\n { type: 'object',\n name: 'value',\n header: i18next.t('field.value'),\n record: { editor: function (value, column, record, rowIndex, field) { return getEditor(record.type || 'text')(value, column, record, rowIndex, field)\n },\n renderer: function (value, column, record, rowIndex, field) { return getRenderer(record.type || 'text')(value, column, record, rowIndex, field)\n },\n editable: true,\n options: { objectified: true\n }\n },\n sortable: true,\n width: 180\n },\n { type: 'resource-object',\n name: 'updater',\n header: i18next.t('field.updater'),\n record: { editable: false\n },\n sortable: true,\n width: 120\n },\n { type: 'datetime',\n name: 'updatedAt',\n header: i18next.t('field.updated_at'),\n record: { editable: false\n },\n sortable: true,\n width: 180\n }\n ],\n rows: { selectable: { multiple: true\n }\n },\n sorters: [\n { name: 'name'\n }\n ]\n }\n }\n\n async pageUpdated(changes: any, lifecycle: any) { if (this.active) { // do something here when this page just became as active\n }\n }\n\n async fetchHandler({ page = 1, limit = 100, sortings = [], filters = [] }: FetchOption) { const response = await client.query({ query: gql`\n query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) { responses: themes(filters: $filters, pagination: $pagination, sortings: $sortings) { items { id\n name\n description\n active\n type\n value\n updater { id\n name\n }\n updatedAt\n }\n total\n }\n }\n `,\n variables: { filters,\n pagination: { page, limit },\n sortings\n }\n })\n\n return { total: response.data.responses.total || 0,\n records: response.data.responses.items || []\n }\n }\n\n async _deleteTheme() { if (confirm(i18next.t('text.sure_to_x', { x: i18next.t('text.delete') }))) { const ids = this.grist.selected.map(record => record.id)\n if (ids && ids.length > 0) { const [mutateFunction, { error }] = useMutation(`\nmutation ($ids: [String!]!) { deleteThemes(ids: $ids)\n}`)\n\n useMutation({ variables: { ids\n }\n })\n\n if (!error) { this.grist.fetch()\n notify({ message: i18next.t('text.info_x_successfully', { x: i18next.t('text.delete') })\n })\n }\n }\n }\n }\n\n async _updateTheme() { let patches = this.grist.dirtyRecords\n if (patches && patches.length) { patches = patches.map(patch => { let patchField: any = patch.id ? { id: patch.id } : {}\n const dirtyFields = patch.__dirtyfields__\n for (let key in dirtyFields) { patchField[key] = dirtyFields[key].after\n }\n patchField.cuFlag = patch.__dirty__\n\n return patchField\n })\n\n const [mutateFunction, { error }] = useMutation(`\nmutation ($patches: [ThemePatch!]!) { updateMultipleTheme(patches: $patches) { name\n }\n}`)\n\n mutateFunction({ variables: { patches\n }\n })\n\n if (!error) { this.grist.fetch()\n }\n }\n }\n}\n"]}
1
+ {"version":3,"file":"theme-list-page.js","sourceRoot":"","sources":["../../../client/pages/theme/theme-list-page.ts"],"names":[],"mappings":";AAA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AAc,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,WAAW,CAAC;;;EAGpD,CAAC,CAAA;YAEG,cAAc,CAAC,EAAU,SAAS,EAAE,EAAY,OAAO;iBAC3D;aACA,CAAC,CAAA;YAEG,IAAI,CAAC,KAAK,EAAE,CAAC;gBAAS,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAA;YAC7C,CAAC;QACD,CAAC;IACD,CAAC;;AAnM4B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDAAiB;AAChB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2CAAoE;AAEpE;IAA1B,KAAK,CAAC,UAAU,CAAC;8BAAiB,SAAS;4CAAA;AApBjC,aAAa;IADzB,aAAa,CAAC,iBAAiB,CAAC;GACpB,aAAa,CAqNzB","sourcesContent":["import '@operato/data-grist'\n\nimport { CommonButtonStyles, CommonGristStyles, CommonHeaderStyles, ScrollbarStyles, WorkSurfacePageStyles } from '@operato/styles'\nimport { PageView } from '@operato/shell'\nimport { css, html } from 'lit'\nimport { useMutation } from '@apollo/client'\n\nimport { customElement, property, query } from 'lit/decorators.js'\nimport gql from 'graphql-tag'\nimport { ScopedElementsMixin } from '@open-wc/scoped-elements'\nimport { DataGrist, FetchOption, getEditor, getRenderer } from '@operato/data-grist'\n\nimport { client } from '@operato/graphql'\nimport { i18next, localize } from '@operato/i18n'\nimport { notify } from '@operato/layout'\nimport { isMobileDevice } from '@operato/utils'\n\n// export interface ThemeType { // name: string\n// propType: string\n// }\n\n// var ThemeTypes: { [name: string]: ThemeType } = { // Legend: { // name: 'Legend',\n// propType: 'legend'\n// }\n// }\n\n@customElement('theme-list-page')\nexport class ThemeListPage extends localize(i18next)(ScopedElementsMixin(PageView)) { static styles = [\n /* The work surface frame for a list screen (ADR-0060 decision 8). */\n WorkSurfacePageStyles,\n ScrollbarStyles,\n CommonGristStyles,\n CommonHeaderStyles,\n css`\n :host {\n --grid-record-emphasized-background-color: #8b0000;\n --grid-record-emphasized-color: #ff6b6b;\n }\n\n ox-filters-form { flex: 1;\n }\n `\n ]\n\n @property({ type: Object }) gristConfig: any\n @property({ type: String }) mode: 'CARD' | 'GRID' | 'LIST' = isMobileDevice() ? 'CARD' : 'GRID'\n\n @query('ox-grist') private grist!: DataGrist\n\n get context() { return { title: i18next.t('title.theme list'),\n search: { handler: (search: string) => { this.grist.searchText = search\n },\n value: this.grist?.searchText || ''\n },\n filter: { handler: () => { this.grist.toggleHeadroom()\n }\n },\n help: 'board-service/theme',\n actions: [\n { title: i18next.t('button.save'),\n action: this._updateTheme.bind(this),\n ...CommonButtonStyles.save\n },\n { title: i18next.t('button.delete'),\n action: this._deleteTheme.bind(this),\n ...CommonButtonStyles.delete\n }\n ]\n }\n }\n\n render() { const mode = this.mode || (isMobileDevice() ? 'CARD' : 'GRID')\n\n return html`\n <ox-grist class=\"page-fill\" .mode=${mode} .config=${this.gristConfig} .fetchHandler=${this.fetchHandler.bind(this)}>\n <div slot=\"headroom\" class=\"header\">\n <div class=\"filters\">\n <ox-filters-form autofocus without-search></ox-filters-form>\n\n <div id=\"modes\">\n <md-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>grid_on</md-icon>\n <md-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>format_list_bulleted</md-icon>\n <md-icon @click=${() => (this.mode = 'CARD')} ?active=${mode == 'CARD'}>apps</md-icon>\n </div>\n </div>\n </div>\n </ox-grist>\n `\n }\n\n async pageInitialized(lifecycle: any) { this.gristConfig = { list: { fields: ['name', 'description'],\n details: ['type', 'updatedAt']\n },\n columns: [\n { type: 'gutter', gutterName: 'sequence' },\n { type: 'gutter', gutterName: 'row-selector', multiple: true },\n { type: 'string',\n name: 'name',\n header: i18next.t('field.name'),\n record: { editable: true\n },\n filter: 'search',\n sortable: true,\n width: 150\n },\n { type: 'string',\n name: 'description',\n header: i18next.t('field.description'),\n record: { editable: true\n },\n filter: 'search',\n width: 200\n },\n { type: 'checkbox',\n name: 'active',\n header: i18next.t('field.active'),\n record: { editable: true\n },\n width: 60\n },\n { type: 'select',\n name: 'type',\n header: i18next.t('field.type'),\n record: { options: ['', 'color-map', 'color-ranges', 'color', 'text'],\n editable: true\n },\n width: 120\n },\n { type: 'object',\n name: 'value',\n header: i18next.t('field.value'),\n record: { editor: function (value, column, record, rowIndex, field) { return getEditor(record.type || 'text')(value, column, record, rowIndex, field)\n },\n renderer: function (value, column, record, rowIndex, field) { return getRenderer(record.type || 'text')(value, column, record, rowIndex, field)\n },\n editable: true,\n options: { objectified: true\n }\n },\n sortable: true,\n width: 180\n },\n { type: 'resource-object',\n name: 'updater',\n header: i18next.t('field.updater'),\n record: { editable: false\n },\n sortable: true,\n width: 120\n },\n { type: 'datetime',\n name: 'updatedAt',\n header: i18next.t('field.updated_at'),\n record: { editable: false\n },\n sortable: true,\n width: 180\n }\n ],\n rows: { selectable: { multiple: true\n }\n },\n sorters: [\n { name: 'name'\n }\n ]\n }\n }\n\n async pageUpdated(changes: any, lifecycle: any) { if (this.active) { // do something here when this page just became as active\n }\n }\n\n async fetchHandler({ page = 1, limit = 100, sortings = [], filters = [] }: FetchOption) { const response = await client.query({ query: gql`\n query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) { responses: themes(filters: $filters, pagination: $pagination, sortings: $sortings) { items { id\n name\n description\n active\n type\n value\n updater { id\n name\n }\n updatedAt\n }\n total\n }\n }\n `,\n variables: { filters,\n pagination: { page, limit },\n sortings\n }\n })\n\n return { total: response.data.responses.total || 0,\n records: response.data.responses.items || []\n }\n }\n\n async _deleteTheme() { if (confirm(i18next.t('text.sure_to_x', { x: i18next.t('button.delete') }))) { const ids = this.grist.selected.map(record => record.id)\n if (ids && ids.length > 0) { const [mutateFunction, { error }] = useMutation(`\nmutation ($ids: [String!]!) { deleteThemes(ids: $ids)\n}`)\n\n useMutation({ variables: { ids\n }\n })\n\n if (!error) { this.grist.fetch()\n notify({ message: i18next.t('text.info_x_successfully', { x: i18next.t('button.delete') })\n })\n }\n }\n }\n }\n\n async _updateTheme() { let patches = this.grist.dirtyRecords\n if (patches && patches.length) { patches = patches.map(patch => { let patchField: any = patch.id ? { id: patch.id } : {}\n const dirtyFields = patch.__dirtyfields__\n for (let key in dirtyFields) { patchField[key] = dirtyFields[key].after\n }\n patchField.cuFlag = patch.__dirty__\n\n return patchField\n })\n\n const [mutateFunction, { error }] = useMutation(`\nmutation ($patches: [ThemePatch!]!) { updateMultipleTheme(patches: $patches) { name\n }\n}`)\n\n mutateFunction({ variables: { patches\n }\n })\n\n if (!error) { this.grist.fetch()\n }\n }\n }\n}\n"]}
@@ -11,12 +11,9 @@ import { css } from 'lit';
11
11
  */
12
12
  export const BoardCardStyles = css `
13
13
  :host {
14
- display: flex;
15
- flex-direction: column;
14
+ /* The frame (WorkSurfacePageStyles) lays the page out; this only anchors the FAB. */
16
15
  position: relative;
17
16
 
18
- overflow: hidden;
19
-
20
17
  --data-card-min-width: 240px;
21
18
  --data-card-record-card-border-radius: 6px;
22
19
  --data-card-record-card-padding: 0;
@@ -1 +1 @@
1
- {"version":3,"file":"board-card-styles.js","sourceRoot":"","sources":["../../client/styles/board-card-styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzB;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6EjC,CAAA","sourcesContent":["import { css } from 'lit'\n\n/**\n * The one card look for every board catalog - board list, play list, template list.\n *\n * Each page hosts an `ox-grist` in CARD mode and sets the card by `--data-card-*` variables. The\n * three pages used to carry the same forty lines apiece (2026-09-23); a drift between them is\n * exactly the \"why does this page look different\" complaint this suite keeps hearing, so the\n * tokens now live once, here, and a page adds only what is its own (a FAB, a chip strip).\n *\n * Sized and typed after figure-ui's figure-list-page.ts, so board and figure read as one product.\n */\nexport const BoardCardStyles = css`\n :host {\n display: flex;\n flex-direction: column;\n position: relative;\n\n overflow: hidden;\n\n --data-card-min-width: 240px;\n --data-card-record-card-border-radius: 6px;\n --data-card-record-card-padding: 0;\n --data-card-thumbnail-aspect: 16 / 9;\n --data-card-thumbnail-padding: 0;\n --data-card-thumbnail-radius: 6px 6px 0 0;\n /* The card's two surfaces. The theme raises both in dark (--board-card-surface / -plate in\n * operato-board's board-accent.css): the light defaults - white card, light plate - become\n * black on black there, and a card that does not lift off its page is not a card. */\n --data-card-record-card-background-color: var(--board-card-surface, var(--md-sys-color-surface-container-lowest));\n --data-card-thumbnail-background: var(--board-card-plate, var(--md-sys-color-surface-container));\n /* The right margin clears the corner where the action icons sit (below). */\n --data-card-item-margin: 10px 52px 10px 12px;\n --data-card-item-name-font: 500 0.9rem/1.35 var(--theme-font, 'Roboto');\n --data-card-item-name-color: var(--md-sys-color-on-surface);\n --data-card-item-etc-font: normal 0.72rem/1.2 var(--theme-font, 'Roboto');\n /* The second line under the name is a side note, not a rival to it. */\n --data-card-item-disc-font: normal 0.72rem/1.2 var(--theme-font, 'Roboto');\n --data-card-item-disc-color: var(--md-sys-color-on-surface-variant, var(--md-sys-color-on-surface));\n /* A page's own FAB and the grid's scroll-to-top FAB share the bottom-right corner by default;\n * push the scroll button up so the two never collide. */\n --data-card-fab-position-vertical: 64px;\n /* record-card.ts reads these two with no fallback - unset means no hover feedback at all. */\n --data-card-record-card-border-hover: 1px solid var(--md-sys-color-outline-variant);\n --data-card-record-card-boxshadow-hover: 0 2px 8px rgba(0, 0, 0, 0.16);\n /* Card actions are secondary to the picture and the name: small, in the quiet outline tone. */\n --data-card-gutter-icon-size: 16px;\n --data-card-gutter-icon-color: var(--md-sys-color-outline);\n /* One or two small icons do not deserve a row of their own under the text: park them in the\n * bottom-right corner, level with the meta line, so the information area stays two lines tall. */\n --data-card-gutters-position: absolute;\n --data-card-gutters-inset: auto 8px 9px auto;\n --data-card-gutters-margin: 0;\n }\n\n /* .page-fill is WorkSurfacePageStyles' own class (flex: 1; min-height: 0) - the min-height half\n * is what lets ox-grist's internal scroller, not the page, be the thing that scrolls. */\n\n /* The extended FAB every catalog uses for its one primary action - a pill with an icon and a\n * label, not a bare circle, so a first-time visitor does not have to guess what the + makes. */\n button[fab] {\n position: absolute;\n right: var(--spacing-large, 12px);\n bottom: var(--spacing-large, 12px);\n z-index: 10;\n\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 10px 18px 10px 14px;\n font: var(--label-font, inherit);\n font-size: 0.82rem;\n font-weight: 600;\n color: var(--md-sys-color-on-primary-container);\n background-color: var(--md-sys-color-primary-container);\n border: none;\n border-radius: var(--md-sys-shape-corner-full, 999px);\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);\n cursor: pointer;\n }\n\n button[fab]:hover {\n color: var(--md-sys-color-on-primary, #fff);\n background-color: var(--md-sys-color-primary);\n }\n\n button[fab] md-icon {\n --md-icon-size: 20px;\n }\n`\n"]}
1
+ {"version":3,"file":"board-card-styles.js","sourceRoot":"","sources":["../../client/styles/board-card-styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAEzB;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0EjC,CAAA","sourcesContent":["import { css } from 'lit'\n\n/**\n * The one card look for every board catalog - board list, play list, template list.\n *\n * Each page hosts an `ox-grist` in CARD mode and sets the card by `--data-card-*` variables. The\n * three pages used to carry the same forty lines apiece (2026-09-23); a drift between them is\n * exactly the \"why does this page look different\" complaint this suite keeps hearing, so the\n * tokens now live once, here, and a page adds only what is its own (a FAB, a chip strip).\n *\n * Sized and typed after figure-ui's figure-list-page.ts, so board and figure read as one product.\n */\nexport const BoardCardStyles = css`\n :host {\n /* The frame (WorkSurfacePageStyles) lays the page out; this only anchors the FAB. */\n position: relative;\n\n --data-card-min-width: 240px;\n --data-card-record-card-border-radius: 6px;\n --data-card-record-card-padding: 0;\n --data-card-thumbnail-aspect: 16 / 9;\n --data-card-thumbnail-padding: 0;\n --data-card-thumbnail-radius: 6px 6px 0 0;\n /* The card's two surfaces. The theme raises both in dark (--board-card-surface / -plate in\n * operato-board's board-accent.css): the light defaults - white card, light plate - become\n * black on black there, and a card that does not lift off its page is not a card. */\n --data-card-record-card-background-color: var(--board-card-surface, var(--md-sys-color-surface-container-lowest));\n --data-card-thumbnail-background: var(--board-card-plate, var(--md-sys-color-surface-container));\n /* The right margin clears the corner where the action icons sit (below). */\n --data-card-item-margin: 10px 52px 10px 12px;\n --data-card-item-name-font: 500 0.9rem/1.35 var(--theme-font, 'Roboto');\n --data-card-item-name-color: var(--md-sys-color-on-surface);\n --data-card-item-etc-font: normal 0.72rem/1.2 var(--theme-font, 'Roboto');\n /* The second line under the name is a side note, not a rival to it. */\n --data-card-item-disc-font: normal 0.72rem/1.2 var(--theme-font, 'Roboto');\n --data-card-item-disc-color: var(--md-sys-color-on-surface-variant, var(--md-sys-color-on-surface));\n /* A page's own FAB and the grid's scroll-to-top FAB share the bottom-right corner by default;\n * push the scroll button up so the two never collide. */\n --data-card-fab-position-vertical: 64px;\n /* record-card.ts reads these two with no fallback - unset means no hover feedback at all. */\n --data-card-record-card-border-hover: 1px solid var(--md-sys-color-outline-variant);\n --data-card-record-card-boxshadow-hover: 0 2px 8px rgba(0, 0, 0, 0.16);\n /* Card actions are secondary to the picture and the name: small, in the quiet outline tone. */\n --data-card-gutter-icon-size: 16px;\n --data-card-gutter-icon-color: var(--md-sys-color-outline);\n /* One or two small icons do not deserve a row of their own under the text: park them in the\n * bottom-right corner, level with the meta line, so the information area stays two lines tall. */\n --data-card-gutters-position: absolute;\n --data-card-gutters-inset: auto 8px 9px auto;\n --data-card-gutters-margin: 0;\n }\n\n /* .page-fill is WorkSurfacePageStyles' own class (flex: 1; min-height: 0) - the min-height half\n * is what lets ox-grist's internal scroller, not the page, be the thing that scrolls. */\n\n /* The extended FAB every catalog uses for its one primary action - a pill with an icon and a\n * label, not a bare circle, so a first-time visitor does not have to guess what the + makes. */\n button[fab] {\n position: absolute;\n right: var(--spacing-large, 12px);\n bottom: var(--spacing-large, 12px);\n z-index: 10;\n\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 10px 18px 10px 14px;\n font: var(--label-font, inherit);\n font-size: 0.82rem;\n font-weight: 600;\n color: var(--md-sys-color-on-primary-container);\n background-color: var(--md-sys-color-primary-container);\n border: none;\n border-radius: var(--md-sys-shape-corner-full, 999px);\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);\n cursor: pointer;\n }\n\n button[fab]:hover {\n color: var(--md-sys-color-on-primary, #fff);\n background-color: var(--md-sys-color-primary);\n }\n\n button[fab] md-icon {\n --md-icon-size: 20px;\n }\n`\n"]}