@kerfjs/ui 5.0.0-beta.125 → 5.0.0-beta.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/ai/application-ui-diagnostic-ids-v1.json +1 -0
- package/ai/component-catalog.json +77 -6
- package/ai/component-catalog.schema.json +14 -1
- package/ai/component-composition.json +27 -6
- package/ai/component-props.json +265 -40
- package/ai/components/combobox.md +1 -1
- package/ai/components/surface-scaffold.md +19 -5
- package/ai/components/tab-bar.md +2 -0
- package/ai/components/toolbar.md +1 -0
- package/ai/public-api-signatures-v1.md +251 -298
- package/ai/skill.md +10 -4
- package/ai/view-document.schema.json +55 -2
- package/ai/webawesome-jsx-signatures-v1.md +1 -1
- package/analyzer/cli.mjs +60 -24
- package/analyzer/index.mjs +331 -58
- package/catalog-projection-cli.mjs +86 -50
- package/dist/anchored-surface.js +2 -1
- package/dist/browser/editor.js +12 -7
- package/dist/catalog-resources.d.ts +1 -1
- package/dist/catalog.d.ts +1 -1
- package/dist/catalog.js +6 -6
- package/dist/{chunk-VX3YF2UD.js → chunk-3K5V3ZSD.js} +3 -3
- package/dist/{chunk-VX3YF2UD.js.map → chunk-3K5V3ZSD.js.map} +1 -1
- package/dist/{chunk-NHQOX7T4.js → chunk-3ZKUXWAV.js} +4 -4
- package/dist/chunk-3ZKUXWAV.js.map +1 -0
- package/dist/{chunk-ADMWT7FX.js → chunk-3ZWYGGEC.js} +136 -8
- package/dist/chunk-3ZWYGGEC.js.map +1 -0
- package/dist/{chunk-KLR3DCHH.js → chunk-4L5ZIKDZ.js} +1 -1
- package/dist/chunk-4L5ZIKDZ.js.map +1 -0
- package/dist/{chunk-2E7S5C4D.js → chunk-4UWLHKNU.js} +5 -5
- package/dist/chunk-4UWLHKNU.js.map +1 -0
- package/dist/{chunk-EXGDKG7B.js → chunk-5A2DN3LR.js} +5 -5
- package/dist/chunk-5A2DN3LR.js.map +1 -0
- package/dist/{chunk-DJ65XFVN.js → chunk-63TJH2RF.js} +4 -4
- package/dist/chunk-63TJH2RF.js.map +1 -0
- package/dist/{chunk-Q2CLQ3IJ.js → chunk-6PHG2DMG.js} +1 -1
- package/dist/chunk-6PHG2DMG.js.map +1 -0
- package/dist/{chunk-SPI6VMIY.js → chunk-6T7AX365.js} +4 -4
- package/dist/chunk-6T7AX365.js.map +1 -0
- package/dist/{chunk-GVII4JSD.js → chunk-6V6UHPJD.js} +4 -4
- package/dist/chunk-6V6UHPJD.js.map +1 -0
- package/dist/{chunk-NR3ZO4LK.js → chunk-7U65KLDL.js} +1 -1
- package/dist/chunk-7U65KLDL.js.map +1 -0
- package/dist/chunk-BMOZSNDU.js +133 -0
- package/dist/chunk-BMOZSNDU.js.map +1 -0
- package/dist/{chunk-2LM3PYHA.js → chunk-C2TY5DJC.js} +11 -8
- package/dist/chunk-C2TY5DJC.js.map +1 -0
- package/dist/{chunk-3WYREXW4.js → chunk-COMEWURO.js} +8 -6
- package/dist/chunk-COMEWURO.js.map +1 -0
- package/dist/{chunk-VPDSPD76.js → chunk-DB64I3DB.js} +4 -3
- package/dist/chunk-DB64I3DB.js.map +1 -0
- package/dist/{chunk-SBCXWGNP.js → chunk-DBCDYBZP.js} +2 -2
- package/dist/{chunk-SBCXWGNP.js.map → chunk-DBCDYBZP.js.map} +1 -1
- package/dist/{chunk-CNM6ZWP2.js → chunk-DJWBXEF4.js} +4 -2
- package/dist/chunk-DJWBXEF4.js.map +1 -0
- package/dist/{chunk-SVUJIVMR.js → chunk-E2MTHHLS.js} +3 -3
- package/dist/{chunk-SVUJIVMR.js.map → chunk-E2MTHHLS.js.map} +1 -1
- package/dist/{chunk-JG4ONAOI.js → chunk-EI55KWHP.js} +2 -2
- package/dist/chunk-EI55KWHP.js.map +1 -0
- package/dist/{chunk-MVKHSAKE.js → chunk-GE2BQXB3.js} +41 -4
- package/dist/chunk-GE2BQXB3.js.map +1 -0
- package/dist/chunk-GHV36C6I.js +94 -0
- package/dist/chunk-GHV36C6I.js.map +1 -0
- package/dist/{chunk-BCO673YW.js → chunk-GQUDCWOD.js} +10 -4
- package/dist/chunk-GQUDCWOD.js.map +1 -0
- package/dist/chunk-HD7ZLISK.js +808 -0
- package/dist/chunk-HD7ZLISK.js.map +1 -0
- package/dist/{chunk-KELWWCMX.js → chunk-I2K4OQKB.js} +4 -4
- package/dist/chunk-I2K4OQKB.js.map +1 -0
- package/dist/chunk-IFDTSVE6.js +9 -0
- package/dist/chunk-IFDTSVE6.js.map +1 -0
- package/dist/{chunk-TPLVC5BE.js → chunk-IR32NI2O.js} +336 -247
- package/dist/chunk-IR32NI2O.js.map +1 -0
- package/dist/{chunk-ZKKO4MHC.js → chunk-JYKP7TBZ.js} +4 -2
- package/dist/chunk-JYKP7TBZ.js.map +1 -0
- package/dist/{chunk-6OT7FOSA.js → chunk-K3C35KGR.js} +4 -4
- package/dist/chunk-K3C35KGR.js.map +1 -0
- package/dist/{chunk-4RECPEHI.js → chunk-KBS3GP6S.js} +4 -3
- package/dist/chunk-KBS3GP6S.js.map +1 -0
- package/dist/{chunk-YHRJNKD5.js → chunk-KS7EXW4P.js} +6 -4
- package/dist/chunk-KS7EXW4P.js.map +1 -0
- package/dist/{chunk-V6N3YLTM.js → chunk-LTOTL5AS.js} +3 -3
- package/dist/chunk-LTOTL5AS.js.map +1 -0
- package/dist/chunk-M64TAGZY.js +590 -0
- package/dist/chunk-M64TAGZY.js.map +1 -0
- package/dist/{chunk-JZZVWTUB.js → chunk-MMOQR426.js} +2 -2
- package/dist/chunk-MMOQR426.js.map +1 -0
- package/dist/{chunk-SJBMKA4X.js → chunk-OHT2AXER.js} +11 -10
- package/dist/chunk-OHT2AXER.js.map +1 -0
- package/dist/{chunk-TTFW6E6C.js → chunk-OZKBIPXU.js} +2 -2
- package/dist/chunk-OZKBIPXU.js.map +1 -0
- package/dist/{chunk-Q2SLOMN6.js → chunk-RHMY45DK.js} +4 -4
- package/dist/chunk-RHMY45DK.js.map +1 -0
- package/dist/{chunk-BZXA5SSA.js → chunk-S7QB5KMM.js} +2 -2
- package/dist/{chunk-BZXA5SSA.js.map → chunk-S7QB5KMM.js.map} +1 -1
- package/dist/{chunk-HDXUHLTQ.js → chunk-SHECA2N4.js} +8 -2
- package/dist/chunk-SHECA2N4.js.map +1 -0
- package/dist/{chunk-R6FIXYAE.js → chunk-SJEPM5ZU.js} +2 -2
- package/dist/{chunk-R6FIXYAE.js.map → chunk-SJEPM5ZU.js.map} +1 -1
- package/dist/{chunk-FJMABKKV.js → chunk-UQ4FRQ6M.js} +35 -17
- package/dist/chunk-UQ4FRQ6M.js.map +1 -0
- package/dist/{chunk-S4ZGTDSG.js → chunk-UU37OR3D.js} +2 -2
- package/dist/chunk-UU37OR3D.js.map +1 -0
- package/dist/{chunk-SWXWLSUD.js → chunk-WEQNPYVA.js} +1 -1
- package/dist/{chunk-SWXWLSUD.js.map → chunk-WEQNPYVA.js.map} +1 -1
- package/dist/{chunk-5SFHBYEY.js → chunk-WUVHP3UC.js} +97 -24
- package/dist/chunk-WUVHP3UC.js.map +1 -0
- package/dist/{chunk-3S3WXAZ5.js → chunk-X43QQWVC.js} +3 -2
- package/dist/chunk-X43QQWVC.js.map +1 -0
- package/dist/{chunk-Z3T24FX3.js → chunk-YE6KCAIN.js} +3 -2
- package/dist/chunk-YE6KCAIN.js.map +1 -0
- package/dist/{chunk-KQZIC5CA.js → chunk-ZC4KSRAF.js} +7 -7
- package/dist/chunk-ZC4KSRAF.js.map +1 -0
- package/dist/collapsible-panel.d.ts +2 -2
- package/dist/collapsible-panel.js +2 -2
- package/dist/collapsible-panel.js.map +1 -1
- package/dist/column-explorer.d.ts +3 -3
- package/dist/column-explorer.js +16 -138
- package/dist/column-explorer.js.map +1 -1
- package/dist/dialog-surface-controller-BeKZ3e8Z.d.ts +251 -0
- package/dist/editor-frame.d.ts +1 -1
- package/dist/editor-frame.js +1 -1
- package/dist/editor.d.ts +38 -20
- package/dist/editor.js +11651 -7052
- package/dist/editor.js.map +1 -1
- package/dist/file-picker.js +1 -1
- package/dist/help-tags-register.js +2 -1
- package/dist/help-tags-register.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +24 -23
- package/dist/list-action-row.d.ts +1 -1
- package/dist/list-action-row.js +1 -1
- package/dist/list-detail-dialog.d.ts +7 -7
- package/dist/list-detail-dialog.js +6 -5
- package/dist/list-detail-dialog.js.map +1 -1
- package/dist/list-header.d.ts +1 -1
- package/dist/list-header.js +1 -1
- package/dist/list-item.d.ts +1 -1
- package/dist/list-item.js +1 -1
- package/dist/message-composer.js +1 -1
- package/dist/nav-stack.d.ts +6 -6
- package/dist/nav-stack.js +1 -1
- package/dist/popup-menu-register.js +1 -7
- package/dist/popup-menu-register.js.map +1 -1
- package/dist/popup-menu.d.ts +2 -2
- package/dist/popup-menu.js +1 -1
- package/dist/resizable-region.js +1 -1
- package/dist/segmented-control.d.ts +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/select-register.js +17 -23
- package/dist/select-register.js.map +1 -1
- package/dist/split-view.d.ts +6 -6
- package/dist/split-view.js +1 -1
- package/dist/styles/collapsible-panel.css +34 -25
- package/dist/styles/components/actions/popup-menu/popup-menu.css +4 -4
- package/dist/styles/components/actions/toolbar/toolbar.css +34 -1
- package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +1 -1
- package/dist/styles/components/forms/segmented-control/segmented-control.css +1 -1
- package/dist/styles/components/layout/collapsible-panel/collapsible-panel.css +34 -25
- package/dist/styles/components/layout/split-view/split-view.css +19 -33
- package/dist/styles/components/navigation/nav-stack/nav-stack.css +15 -19
- package/dist/styles/components/navigation/tab-navigator/tab-navigator.css +30 -29
- package/dist/styles/components/surfaces/editor-frame/editor-frame.css +10 -3
- package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +291 -4
- package/dist/styles/editor/editor.css +78 -0
- package/dist/styles/editor-frame.css +10 -3
- package/dist/styles/nav-stack.css +15 -19
- package/dist/styles/popup-menu.css +4 -4
- package/dist/styles/segmented-control.css +1 -1
- package/dist/styles/split-view.css +19 -33
- package/dist/styles/surface-scaffold.css +291 -4
- package/dist/styles/tab-navigator.css +30 -29
- package/dist/styles/toolbar-control-group.css +1 -1
- package/dist/styles/toolbar.css +34 -1
- package/dist/styles/webawesome.css +4 -5
- package/dist/surface-scaffold-register.js +2 -1
- package/dist/surface-scaffold-register.js.map +1 -1
- package/dist/surface-scaffold.d.ts +155 -246
- package/dist/surface-scaffold.js +3 -2
- package/dist/toolbar-control-group.d.ts +2 -2
- package/dist/toolbar-control-group.js +1 -1
- package/dist/toolbar.d.ts +6 -1
- package/dist/toolbar.js +1 -1
- package/dist/tree-list.d.ts +4 -4
- package/dist/tree-list.js +2 -2
- package/dist/{tree-rows-eHnnGLGM.d.ts → tree-rows-Bms5QJvG.d.ts} +3 -0
- package/dist/wire-catalog.d.ts +1 -1
- package/dist/wire-catalog.js +3 -2
- package/dist/wire-catalog.js.map +1 -1
- package/dist/wire-checkboxes.js +2 -1
- package/dist/wire-choice-chips.js +2 -1
- package/dist/wire-color-fields.js +2 -1
- package/dist/wire-color-pickers.js +2 -1
- package/dist/wire-column-explorer.js +1 -92
- package/dist/wire-column-explorer.js.map +1 -1
- package/dist/wire-comboboxes.d.ts +2 -0
- package/dist/wire-comboboxes.js +2 -1
- package/dist/wire-content-items.js +2 -1
- package/dist/wire-corner-status.js +2 -1
- package/dist/wire-nav-stack.js +2 -1
- package/dist/wire-overlay-sheets.js +2 -1
- package/dist/wire-paged-views.js +2 -2
- package/dist/wire-paged-views.js.map +1 -1
- package/dist/wire-resizable-regions.js +2 -1
- package/dist/wire-scroll-dividers.js +1 -1
- package/dist/wire-search-fields.js +2 -1
- package/dist/wire-sidebar.js +2 -1
- package/dist/wire-tab-bars.d.ts +41 -2
- package/dist/wire-tab-bars.js +1 -1
- package/dist/wire-tab-navigator.js +2 -1
- package/dist/wire-tag-fields.js +2 -1
- package/dist/wire-workbench.js +2 -1
- package/dist/workbench-dialog.d.ts +7 -7
- package/dist/workbench-dialog.js +5 -4
- package/dist/workbench-dialog.js.map +1 -1
- package/dist/workbench.d.ts +1 -1
- package/dist/workbench.js +1 -1
- package/docs/accessibility.md +3 -6
- package/docs/component-contract.md +47 -7
- package/docs/component-selection.md +90 -80
- package/docs/design/templates.md +5 -4
- package/docs/editor-frame.md +1 -1
- package/docs/editor-host.md +15 -2
- package/docs/overlay-tooltip.md +1 -1
- package/docs/recipes.md +1 -1
- package/docs/surface-scaffold.md +63 -2
- package/docs/ui-analyzer.md +42 -0
- package/docs/ui-doctor.md +45 -1
- package/docs/ui-evaluator.md +35 -0
- package/docs/ux-demo.md +1 -1
- package/docs/view.md +314 -0
- package/docs/webawesome-theme.md +16 -0
- package/doctor/cli.mjs +36 -31
- package/doctor/index.mjs +349 -162
- package/evaluator/cli.mjs +36 -30
- package/llms.txt +17 -4
- package/package.json +6 -2
- package/props/cli.mjs +47 -21
- package/scripts/lib/cli-args.mjs +98 -0
- package/ux-demo/recipes/app-shell.tsx +48 -141
- package/ux-demo/recipes/collapsible-sidebar.tsx +43 -169
- package/ux-demo/recipes/compact-toolbar.tsx +22 -114
- package/ux-demo/recipes/composer-form.tsx +14 -104
- package/ux-demo/recipes/list-detail-dialog.tsx +38 -84
- package/ux-demo/recipes/list-workspace-states.tsx +29 -152
- package/ux-demo/recipes/loading-inspector.tsx +30 -174
- package/ux-demo/recipes/media-detail.tsx +29 -146
- package/ux-demo/recipes/navigation-sidebar.tsx +24 -113
- package/ux-demo/recipes/navigation-stack.tsx +7 -43
- package/ux-demo/recipes/workspace-header.tsx +2 -66
- package/view/catalog.mjs +229 -0
- package/view/child-kind.mjs +22 -0
- package/view/cli.mjs +142 -119
- package/view/contract.mjs +84 -11
- package/view/css-grammar.mjs +93 -0
- package/view/generate.d.mts +16 -0
- package/view/generate.mjs +155 -56
- package/view/index.d.mts +80 -14
- package/view/index.mjs +5 -9
- package/view/interpret.mjs +104 -36
- package/view/types.mjs +161 -0
- package/view/validate-move.mjs +66 -30
- package/view/validate.mjs +420 -654
- package/vite-editor.d.mts +16 -1
- package/vite-editor.mjs +74 -4
- package/dist/chunk-2E7S5C4D.js.map +0 -1
- package/dist/chunk-2LM3PYHA.js.map +0 -1
- package/dist/chunk-3S3WXAZ5.js.map +0 -1
- package/dist/chunk-3WYREXW4.js.map +0 -1
- package/dist/chunk-4RECPEHI.js.map +0 -1
- package/dist/chunk-5SFHBYEY.js.map +0 -1
- package/dist/chunk-6OT7FOSA.js.map +0 -1
- package/dist/chunk-ADMWT7FX.js.map +0 -1
- package/dist/chunk-BCO673YW.js.map +0 -1
- package/dist/chunk-CNM6ZWP2.js.map +0 -1
- package/dist/chunk-DJ65XFVN.js.map +0 -1
- package/dist/chunk-EXGDKG7B.js.map +0 -1
- package/dist/chunk-FJMABKKV.js.map +0 -1
- package/dist/chunk-GVII4JSD.js.map +0 -1
- package/dist/chunk-HDXUHLTQ.js.map +0 -1
- package/dist/chunk-JG4ONAOI.js.map +0 -1
- package/dist/chunk-JZZVWTUB.js.map +0 -1
- package/dist/chunk-KELWWCMX.js.map +0 -1
- package/dist/chunk-KLR3DCHH.js.map +0 -1
- package/dist/chunk-KQZIC5CA.js.map +0 -1
- package/dist/chunk-LD6A6PYB.js +0 -268
- package/dist/chunk-LD6A6PYB.js.map +0 -1
- package/dist/chunk-MVKHSAKE.js.map +0 -1
- package/dist/chunk-NHQOX7T4.js.map +0 -1
- package/dist/chunk-NR3ZO4LK.js.map +0 -1
- package/dist/chunk-Q2CLQ3IJ.js.map +0 -1
- package/dist/chunk-Q2SLOMN6.js.map +0 -1
- package/dist/chunk-S4ZGTDSG.js.map +0 -1
- package/dist/chunk-SJBMKA4X.js.map +0 -1
- package/dist/chunk-SPI6VMIY.js.map +0 -1
- package/dist/chunk-TPLVC5BE.js.map +0 -1
- package/dist/chunk-TTFW6E6C.js.map +0 -1
- package/dist/chunk-V6N3YLTM.js.map +0 -1
- package/dist/chunk-VNT4MXR5.js +0 -548
- package/dist/chunk-VNT4MXR5.js.map +0 -1
- package/dist/chunk-VPDSPD76.js.map +0 -1
- package/dist/chunk-YHRJNKD5.js.map +0 -1
- package/dist/chunk-Z3T24FX3.js.map +0 -1
- package/dist/chunk-ZKKO4MHC.js.map +0 -1
- package/dist/{nav-stack-DwxpXxqJ.d.ts → nav-stack-vQ3ieerq.d.ts} +3 -3
|
@@ -2,29 +2,18 @@ import '@kerfjs/ui/layout.css';
|
|
|
2
2
|
import '@kerfjs/ui/collapsible-panel.css';
|
|
3
3
|
import '@kerfjs/ui/floating-toolbar.css';
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
CollapsiblePanel,
|
|
7
|
-
CollapsiblePanelRelocated,
|
|
8
|
-
type CollapsiblePanelToolbar,
|
|
9
|
-
} from '@kerfjs/ui/collapsible-panel';
|
|
10
|
-
import { ContentItem } from '@kerfjs/ui/content-item';
|
|
5
|
+
import { type CollapsiblePanelToolbar } from '@kerfjs/ui/collapsible-panel';
|
|
11
6
|
import { deviceClass } from '@kerfjs/ui/device-class';
|
|
12
|
-
import { FloatingToolbar } from '@kerfjs/ui/floating-toolbar';
|
|
13
|
-
import { Grid } from '@kerfjs/ui/grid';
|
|
14
|
-
import { List } from '@kerfjs/ui/list';
|
|
15
|
-
import { ListHeader } from '@kerfjs/ui/list-header';
|
|
16
|
-
import { ListItem } from '@kerfjs/ui/list-item';
|
|
17
|
-
import { LucideIcon } from '@kerfjs/ui/lucide-icon';
|
|
18
|
-
import { Pane } from '@kerfjs/ui/pane';
|
|
19
|
-
import { Row } from '@kerfjs/ui/row';
|
|
20
|
-
import { Text } from '@kerfjs/ui/text';
|
|
21
|
-
import { Toolbar } from '@kerfjs/ui/toolbar';
|
|
22
|
-
import { ToolbarText } from '@kerfjs/ui/toolbar-text';
|
|
23
|
-
import { ValueTable, ValueTableRow } from '@kerfjs/ui/value-table';
|
|
24
7
|
import { type SidebarStorage, wireSidebar } from '@kerfjs/ui/wire-sidebar';
|
|
25
8
|
import { signal } from 'kerfjs';
|
|
26
|
-
import { Bell, Folder, Inbox, Users } from 'lucide';
|
|
27
9
|
|
|
10
|
+
import { renderRecipeCollapsibleSidebar } from '../views/recipe-collapsible-sidebar.view.js';
|
|
11
|
+
import { renderRecipeSidebarDrawerTitle } from '../views/recipe-sidebar-drawer-title.view.js';
|
|
12
|
+
import { renderRecipeSidebarNavHeader } from '../views/recipe-sidebar-nav-header.view.js';
|
|
13
|
+
import { renderRecipeSidebarNavInbox } from '../views/recipe-sidebar-nav-inbox.view.js';
|
|
14
|
+
import { renderRecipeSidebarNavProjects } from '../views/recipe-sidebar-nav-projects.view.js';
|
|
15
|
+
import { renderRecipeSidebarNavShared } from '../views/recipe-sidebar-nav-shared.view.js';
|
|
16
|
+
import { renderRecipeSidebarRailTitle } from '../views/recipe-sidebar-rail-title.view.js';
|
|
28
17
|
import type { RecipeFactory, RecipePresentation } from './types.js';
|
|
29
18
|
|
|
30
19
|
const RAIL_ACTION = 'recipe-sidebar-rail';
|
|
@@ -42,10 +31,7 @@ export const presentation: RecipePresentation = {
|
|
|
42
31
|
note: "The app owns each panel's collapsed signal, sizes, and content; wireSidebar owns the toggle, focus move/restore, the compact overlay, and persistence.",
|
|
43
32
|
};
|
|
44
33
|
|
|
45
|
-
/**
|
|
46
|
-
* A memory-backed store so the recipe demonstrates the persistence hook without
|
|
47
|
-
* writing to the shared `localStorage` the catalog page runs in.
|
|
48
|
-
*/
|
|
34
|
+
/** Memory storage demonstrates persistence without changing the catalog page. */
|
|
49
35
|
function memoryStorage(): SidebarStorage {
|
|
50
36
|
const map = new Map<string, string>();
|
|
51
37
|
return {
|
|
@@ -64,166 +50,54 @@ const labels: Record<string, string> = {
|
|
|
64
50
|
|
|
65
51
|
export const createRecipe: RecipeFactory = (announce) => {
|
|
66
52
|
const selected = signal('inbox');
|
|
67
|
-
// A shared window-backed device class: when the viewport is compact the wire
|
|
68
|
-
// switches the rail/drawer to a dismissable overlay presentation.
|
|
69
53
|
const device = deviceClass();
|
|
70
|
-
// A compact overlay only opens on a user action, so the first render already
|
|
71
|
-
// matches: collapsed on a compact device, open inline otherwise. The wire's
|
|
72
|
-
// `inlineCollapsed` keeps the open inline default for a later wide crossing.
|
|
73
54
|
const railCollapsed = signal(device.value.compact);
|
|
74
55
|
const drawerCollapsed = signal(true);
|
|
75
56
|
const storage = memoryStorage();
|
|
76
57
|
|
|
77
|
-
// Each panel composes its own toolbar with the standard toggle last. While a
|
|
78
|
-
// panel is collapsed, CollapsiblePanelRelocated carries that toggle: the
|
|
79
|
-
// rail's leads the main toolbar, the drawer's floats in its container's
|
|
80
|
-
// bottom-end corner. wireSidebar hands focus between the two positions.
|
|
81
58
|
const railToolbar: CollapsiblePanelToolbar = {
|
|
82
59
|
label: 'Workspace Navigation',
|
|
83
|
-
title:
|
|
60
|
+
title: renderRecipeSidebarRailTitle({}),
|
|
84
61
|
toggle: { action: RAIL_ACTION, name: 'Navigation' },
|
|
85
62
|
};
|
|
86
63
|
const drawerToolbar: CollapsiblePanelToolbar = {
|
|
87
64
|
label: 'Activity',
|
|
88
|
-
title:
|
|
65
|
+
title: renderRecipeSidebarDrawerTitle({}),
|
|
89
66
|
toggle: { action: DRAWER_ACTION, name: 'Activity' },
|
|
90
67
|
};
|
|
91
68
|
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
selected={selected.value === 'shared'}
|
|
125
|
-
/>
|
|
126
|
-
</section>
|
|
127
|
-
</nav>
|
|
128
|
-
</CollapsiblePanel>
|
|
129
|
-
);
|
|
130
|
-
|
|
131
|
-
const main = () => (
|
|
132
|
-
<Pane
|
|
133
|
-
element="main"
|
|
134
|
-
header={
|
|
135
|
-
<Toolbar
|
|
136
|
-
label="Current Navigation View"
|
|
137
|
-
leading={
|
|
138
|
-
<>
|
|
139
|
-
<CollapsiblePanelRelocated
|
|
140
|
-
panelId="sidebar-rail"
|
|
141
|
-
side="left"
|
|
142
|
-
collapsed={railCollapsed.value}
|
|
143
|
-
toolbar={railToolbar}
|
|
144
|
-
/>
|
|
145
|
-
<ToolbarText
|
|
146
|
-
text={labels[selected.value] ?? 'Inbox'}
|
|
147
|
-
size="xlarge"
|
|
148
|
-
id="recipe-collapsible-main-title"
|
|
149
|
-
/>
|
|
150
|
-
</>
|
|
151
|
-
}
|
|
152
|
-
/>
|
|
153
|
-
}
|
|
154
|
-
>
|
|
155
|
-
<ContentItem>
|
|
156
|
-
<List gap="2xs">
|
|
157
|
-
<Text variant="span" weight="strong">
|
|
158
|
-
Compact Width
|
|
159
|
-
</Text>
|
|
160
|
-
<Text variant="span" tone="quiet" size="compact">
|
|
161
|
-
Narrow the window to a compact width: the rail and drawer start
|
|
162
|
-
closed and open as a dismissable overlay, with a backdrop, Escape,
|
|
163
|
-
and a trapped Tab ring, all managed by the wire.
|
|
164
|
-
</Text>
|
|
165
|
-
</List>
|
|
166
|
-
</ContentItem>
|
|
167
|
-
</Pane>
|
|
168
|
-
);
|
|
169
|
-
|
|
170
|
-
const drawer = () => (
|
|
171
|
-
<CollapsiblePanel
|
|
172
|
-
id="sidebar-console"
|
|
173
|
-
side="bottom"
|
|
174
|
-
size={168}
|
|
175
|
-
collapsed={drawerCollapsed.value}
|
|
176
|
-
label="Activity"
|
|
177
|
-
toolbar={drawerToolbar}
|
|
178
|
-
restoreControl={
|
|
179
|
-
<FloatingToolbar label="Activity Drawer">
|
|
180
|
-
<CollapsiblePanelRelocated
|
|
181
|
-
panelId="sidebar-console"
|
|
182
|
-
side="bottom"
|
|
183
|
-
collapsed={drawerCollapsed.value}
|
|
184
|
-
toolbar={drawerToolbar}
|
|
185
|
-
/>
|
|
186
|
-
</FloatingToolbar>
|
|
187
|
-
}
|
|
188
|
-
>
|
|
189
|
-
<ValueTable label="Recent Activity">
|
|
190
|
-
<ValueTableRow
|
|
191
|
-
label="Deploy finished"
|
|
192
|
-
value="2m ago"
|
|
193
|
-
icon={<LucideIcon icon={Bell} name="bell" />}
|
|
194
|
-
/>
|
|
195
|
-
<ValueTableRow
|
|
196
|
-
label="Review requested"
|
|
197
|
-
value="9m ago"
|
|
198
|
-
icon={<LucideIcon icon={Bell} name="bell" />}
|
|
199
|
-
/>
|
|
200
|
-
</ValueTable>
|
|
201
|
-
</CollapsiblePanel>
|
|
202
|
-
);
|
|
203
|
-
|
|
204
|
-
// The root Row fills the frame's definite height with the rail beside a
|
|
205
|
-
// column whose main pane grows above the bottom drawer. Each CollapsiblePanel
|
|
206
|
-
// docks to a real frame edge, so it paints through that edge's safe area and
|
|
207
|
-
// hands the edge back to its siblings when it collapses.
|
|
208
|
-
const render = () => (
|
|
209
|
-
<Row
|
|
210
|
-
gap="none"
|
|
211
|
-
fill
|
|
212
|
-
rootAttributes={{
|
|
213
|
-
'data-recipe': 'recipe-collapsible-sidebar',
|
|
214
|
-
'data-rail-collapsed': String(railCollapsed.value),
|
|
215
|
-
'data-drawer-collapsed': String(drawerCollapsed.value),
|
|
216
|
-
}}
|
|
217
|
-
>
|
|
218
|
-
{rail()}
|
|
219
|
-
<List flex>
|
|
220
|
-
<Grid columns={1} gap="none" flex>
|
|
221
|
-
{main()}
|
|
222
|
-
</Grid>
|
|
223
|
-
{drawer()}
|
|
224
|
-
</List>
|
|
225
|
-
</Row>
|
|
226
|
-
);
|
|
69
|
+
const render = () => {
|
|
70
|
+
const rail = railCollapsed.value;
|
|
71
|
+
const drawer = drawerCollapsed.value;
|
|
72
|
+
const item = selected.value;
|
|
73
|
+
return renderRecipeCollapsibleSidebar(
|
|
74
|
+
{
|
|
75
|
+
railCollapsed: rail,
|
|
76
|
+
drawerCollapsed: drawer,
|
|
77
|
+
railCollapsedText: String(rail),
|
|
78
|
+
drawerCollapsedText: String(drawer),
|
|
79
|
+
railToolbar,
|
|
80
|
+
railRelocatedToolbar: railToolbar,
|
|
81
|
+
drawerToolbar,
|
|
82
|
+
drawerRelocatedToolbar: drawerToolbar,
|
|
83
|
+
selectedLabel: labels[item] ?? 'Inbox',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
navigation: () => (
|
|
87
|
+
<nav aria-label="Workspace">
|
|
88
|
+
<section>
|
|
89
|
+
{renderRecipeSidebarNavHeader({})}
|
|
90
|
+
{renderRecipeSidebarNavInbox({ selected: item === 'inbox' })}
|
|
91
|
+
{renderRecipeSidebarNavProjects({
|
|
92
|
+
selected: item === 'projects',
|
|
93
|
+
})}
|
|
94
|
+
{renderRecipeSidebarNavShared({ selected: item === 'shared' })}
|
|
95
|
+
</section>
|
|
96
|
+
</nav>
|
|
97
|
+
),
|
|
98
|
+
},
|
|
99
|
+
);
|
|
100
|
+
};
|
|
227
101
|
|
|
228
102
|
return {
|
|
229
103
|
render,
|
|
@@ -2,31 +2,11 @@ import '@kerfjs/ui/layout.css';
|
|
|
2
2
|
import '@kerfjs/ui/select/register';
|
|
3
3
|
|
|
4
4
|
import { deviceClass } from '@kerfjs/ui/device-class';
|
|
5
|
-
import { Grid } from '@kerfjs/ui/grid';
|
|
6
|
-
import { List } from '@kerfjs/ui/list';
|
|
7
|
-
import { ListInsetText } from '@kerfjs/ui/list-inset-text';
|
|
8
|
-
import { LucideIcon } from '@kerfjs/ui/lucide-icon';
|
|
9
|
-
import { SegmentedControl } from '@kerfjs/ui/segmented-control';
|
|
10
|
-
import { Select } from '@kerfjs/ui/select';
|
|
11
|
-
import { Text } from '@kerfjs/ui/text';
|
|
12
|
-
import { Toolbar } from '@kerfjs/ui/toolbar';
|
|
13
|
-
import {
|
|
14
|
-
ToolbarButton,
|
|
15
|
-
ToolbarControlGroup,
|
|
16
|
-
} from '@kerfjs/ui/toolbar-control-group';
|
|
17
|
-
import { ToolbarText } from '@kerfjs/ui/toolbar-text';
|
|
18
5
|
import { signal } from 'kerfjs';
|
|
19
|
-
import { Ellipsis, Funnel, RefreshCw } from 'lucide';
|
|
20
6
|
|
|
7
|
+
import { renderRecipeCompactToolbar } from '../views/recipe-compact-toolbar.view.js';
|
|
21
8
|
import type { RecipeFactory, RecipePresentation } from './types.js';
|
|
22
9
|
|
|
23
|
-
const guide = [
|
|
24
|
-
['ToolbarControlGroup', 'Related commands or pressed tools.'],
|
|
25
|
-
['SegmentedControl', 'A few visible exclusive choices.'],
|
|
26
|
-
['Select', 'A longer controlled value list.'],
|
|
27
|
-
['Ordinary button', 'One independent command.'],
|
|
28
|
-
] as const;
|
|
29
|
-
|
|
30
10
|
export const presentation: RecipePresentation = {
|
|
31
11
|
viewport: {
|
|
32
12
|
width: 'full',
|
|
@@ -39,108 +19,30 @@ export const presentation: RecipePresentation = {
|
|
|
39
19
|
};
|
|
40
20
|
|
|
41
21
|
export const createRecipe: RecipeFactory = (announce) => {
|
|
42
|
-
const view = signal('list');
|
|
43
|
-
const sort = signal('updated');
|
|
22
|
+
const view = signal<'list' | 'board' | 'timeline'>('list');
|
|
23
|
+
const sort = signal<'updated' | 'priority' | 'owner' | 'created'>('updated');
|
|
44
24
|
const filtered = signal(false);
|
|
45
25
|
const device = deviceClass();
|
|
46
26
|
const render = () => (
|
|
47
27
|
<section data-recipe="recipe-compact-toolbar" aria-label="Task Workspace">
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
label="View"
|
|
59
|
-
value={view.value}
|
|
60
|
-
action="recipe-action"
|
|
61
|
-
appearance="toolbar"
|
|
62
|
-
shape="pill"
|
|
63
|
-
size="small"
|
|
64
|
-
choices={[
|
|
65
|
-
{ value: 'list', label: 'List' },
|
|
66
|
-
{ value: 'board', label: 'Board' },
|
|
67
|
-
{ value: 'timeline', label: 'Timeline' },
|
|
68
|
-
]}
|
|
69
|
-
/>
|
|
70
|
-
</ToolbarControlGroup>
|
|
71
|
-
}
|
|
72
|
-
trailing={
|
|
73
|
-
<>
|
|
74
|
-
<ToolbarControlGroup single focusRing="outline">
|
|
75
|
-
<Select<string>
|
|
76
|
-
name="recipe-sort"
|
|
77
|
-
value={sort.value}
|
|
78
|
-
ariaLabel="Sort Tasks"
|
|
79
|
-
fitMenu
|
|
80
|
-
presentation="toolbar-borderless"
|
|
81
|
-
size="compact"
|
|
82
|
-
focusRingOwner="group"
|
|
83
|
-
choices={[
|
|
84
|
-
{ value: 'updated', label: 'Recently Updated' },
|
|
85
|
-
{ value: 'priority', label: 'Priority' },
|
|
86
|
-
{ value: 'owner', label: 'Owner' },
|
|
87
|
-
{ value: 'created', label: 'Created Date' },
|
|
88
|
-
]}
|
|
89
|
-
/>
|
|
90
|
-
</ToolbarControlGroup>
|
|
91
|
-
<ToolbarControlGroup label="Task Actions" buttonAppearance="push">
|
|
92
|
-
<ToolbarButton
|
|
93
|
-
ariaLabel="Toggle Filters"
|
|
94
|
-
pressed={filtered.value}
|
|
95
|
-
action="recipe-action"
|
|
96
|
-
rootAttributes={{ 'data-recipe-command': 'filter' }}
|
|
97
|
-
icon={<LucideIcon icon={Funnel} name="funnel" />}
|
|
98
|
-
/>
|
|
99
|
-
<ToolbarButton
|
|
100
|
-
ariaLabel="Refresh Tasks"
|
|
101
|
-
action="recipe-action"
|
|
102
|
-
rootAttributes={{ 'data-recipe-command': 'refresh' }}
|
|
103
|
-
icon={<LucideIcon icon={RefreshCw} name="refresh-cw" />}
|
|
104
|
-
/>
|
|
105
|
-
</ToolbarControlGroup>
|
|
106
|
-
<ToolbarControlGroup label="More Task Actions" single>
|
|
107
|
-
<ToolbarButton
|
|
108
|
-
ariaLabel="More Task Actions"
|
|
109
|
-
action="recipe-action"
|
|
110
|
-
rootAttributes={{ 'data-recipe-command': 'more' }}
|
|
111
|
-
icon={<LucideIcon icon={Ellipsis} name="ellipsis" />}
|
|
112
|
-
/>
|
|
113
|
-
</ToolbarControlGroup>
|
|
114
|
-
</>
|
|
115
|
-
}
|
|
116
|
-
/>
|
|
117
|
-
<Grid
|
|
118
|
-
columns={
|
|
119
|
-
device.value.compact ? 1 : device.value.atLeast('desktop') ? 4 : 2
|
|
120
|
-
}
|
|
121
|
-
gap="none"
|
|
122
|
-
>
|
|
123
|
-
{guide.map(([name, use]) => (
|
|
124
|
-
<ListInsetText>
|
|
125
|
-
<List gap="2xs">
|
|
126
|
-
<Text variant="span" weight="strong">
|
|
127
|
-
{name}
|
|
128
|
-
</Text>
|
|
129
|
-
<Text variant="span" tone="quiet" size="compact">
|
|
130
|
-
{use}
|
|
131
|
-
</Text>
|
|
132
|
-
</List>
|
|
133
|
-
</ListInsetText>
|
|
134
|
-
))}
|
|
135
|
-
</Grid>
|
|
136
|
-
</List>
|
|
28
|
+
{renderRecipeCompactToolbar({
|
|
29
|
+
view: view.value,
|
|
30
|
+
sort: sort.value,
|
|
31
|
+
filtered: filtered.value,
|
|
32
|
+
columns: device.value.compact
|
|
33
|
+
? 1
|
|
34
|
+
: device.value.atLeast('desktop')
|
|
35
|
+
? 4
|
|
36
|
+
: 2,
|
|
37
|
+
})}
|
|
137
38
|
</section>
|
|
138
39
|
);
|
|
139
40
|
return {
|
|
140
41
|
render,
|
|
141
42
|
action(command, element) {
|
|
142
43
|
const value = element.dataset.segmentValue;
|
|
143
|
-
if (value
|
|
44
|
+
if (value === 'list' || value === 'board' || value === 'timeline')
|
|
45
|
+
view.value = value;
|
|
144
46
|
if (command === 'filter') filtered.value = !filtered.value;
|
|
145
47
|
announce(
|
|
146
48
|
value
|
|
@@ -152,7 +54,13 @@ export const createRecipe: RecipeFactory = (announce) => {
|
|
|
152
54
|
},
|
|
153
55
|
change(element) {
|
|
154
56
|
const value = (element as HTMLElement & { value?: string }).value;
|
|
155
|
-
if (
|
|
57
|
+
if (
|
|
58
|
+
element.getAttribute('name') === 'recipe-sort' &&
|
|
59
|
+
(value === 'updated' ||
|
|
60
|
+
value === 'priority' ||
|
|
61
|
+
value === 'owner' ||
|
|
62
|
+
value === 'created')
|
|
63
|
+
) {
|
|
156
64
|
sort.value = value;
|
|
157
65
|
announce(`Sort: ${value}`);
|
|
158
66
|
}
|
|
@@ -2,20 +2,9 @@ import '@kerfjs/ui/layout.css';
|
|
|
2
2
|
import '@kerfjs/ui/select/register';
|
|
3
3
|
import '@kerfjs/ui/webawesome.css';
|
|
4
4
|
|
|
5
|
-
import { Spacer } from '@kerfjs/ui';
|
|
6
|
-
import { Button } from '@kerfjs/ui/button';
|
|
7
|
-
import { Form } from '@kerfjs/ui/form';
|
|
8
|
-
import { List } from '@kerfjs/ui/list';
|
|
9
|
-
import { ListInsetText } from '@kerfjs/ui/list-inset-text';
|
|
10
|
-
import { Row } from '@kerfjs/ui/row';
|
|
11
|
-
import { Select } from '@kerfjs/ui/select';
|
|
12
|
-
import { StateBanner } from '@kerfjs/ui/state-banner';
|
|
13
|
-
import { Text } from '@kerfjs/ui/text';
|
|
14
|
-
import { TextField } from '@kerfjs/ui/text-field';
|
|
15
|
-
import { Toolbar } from '@kerfjs/ui/toolbar';
|
|
16
|
-
import { ToolbarText } from '@kerfjs/ui/toolbar-text';
|
|
17
5
|
import { signal } from 'kerfjs';
|
|
18
6
|
|
|
7
|
+
import { renderRecipeComposerForm } from '../views/recipe-composer-form.view.js';
|
|
19
8
|
import type { RecipeFactory, RecipePresentation } from './types.js';
|
|
20
9
|
|
|
21
10
|
export const presentation: RecipePresentation = {
|
|
@@ -50,98 +39,16 @@ export const createRecipe: RecipeFactory = (announce) => {
|
|
|
50
39
|
const body = signal(
|
|
51
40
|
'The tablet layout now keeps navigation, content, and inspector focus order aligned.',
|
|
52
41
|
);
|
|
53
|
-
const audience = signal('team');
|
|
42
|
+
const audience = signal<'team' | 'reviewers' | 'organization'>('team');
|
|
54
43
|
const status = signal<'idle' | 'error' | 'saved'>('idle');
|
|
55
|
-
const render = () =>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
{/* The title and its supporting line are one heading unit. */}
|
|
64
|
-
<List>
|
|
65
|
-
<Toolbar
|
|
66
|
-
label="Publish Workspace Update"
|
|
67
|
-
leading={
|
|
68
|
-
<ToolbarText
|
|
69
|
-
text="Publish Workspace Update"
|
|
70
|
-
size="xlarge"
|
|
71
|
-
id="recipe-composer-title"
|
|
72
|
-
/>
|
|
73
|
-
}
|
|
74
|
-
/>
|
|
75
|
-
<ListInsetText sides="rl">
|
|
76
|
-
<Text variant="span" tone="quiet" id="recipe-composer-summary">
|
|
77
|
-
Share a concise, actionable update with collaborators.
|
|
78
|
-
</Text>
|
|
79
|
-
</ListInsetText>
|
|
80
|
-
</List>
|
|
81
|
-
{status.value === 'error' && (
|
|
82
|
-
<StateBanner
|
|
83
|
-
title="Add a Title Before Publishing"
|
|
84
|
-
detail="The update body and audience are preserved."
|
|
85
|
-
tone="danger"
|
|
86
|
-
urgency="alert"
|
|
87
|
-
/>
|
|
88
|
-
)}
|
|
89
|
-
{status.value === 'saved' && (
|
|
90
|
-
<StateBanner
|
|
91
|
-
title="Update Published"
|
|
92
|
-
detail="The team audience can now read it."
|
|
93
|
-
tone="success"
|
|
94
|
-
/>
|
|
95
|
-
)}
|
|
96
|
-
<List gap="xs" controlInsets="rl">
|
|
97
|
-
<TextField
|
|
98
|
-
name="recipe-title"
|
|
99
|
-
label="Update Title"
|
|
100
|
-
hint="Summarize the outcome in one line."
|
|
101
|
-
required
|
|
102
|
-
value={title.value}
|
|
103
|
-
/>
|
|
104
|
-
<TextField
|
|
105
|
-
multiline
|
|
106
|
-
name="recipe-body"
|
|
107
|
-
label="Details"
|
|
108
|
-
hint="Include decisions, owners, and the next checkpoint."
|
|
109
|
-
rows={5}
|
|
110
|
-
maxLength={400}
|
|
111
|
-
showCount
|
|
112
|
-
value={body.value}
|
|
113
|
-
/>
|
|
114
|
-
<Select<string>
|
|
115
|
-
name="recipe-audience"
|
|
116
|
-
value={audience.value}
|
|
117
|
-
label="Audience"
|
|
118
|
-
choices={[
|
|
119
|
-
{ value: 'team', label: 'Workspace Team' },
|
|
120
|
-
{ value: 'reviewers', label: 'Reviewers' },
|
|
121
|
-
{ value: 'organization', label: 'Entire Organization' },
|
|
122
|
-
]}
|
|
123
|
-
/>
|
|
124
|
-
</List>
|
|
125
|
-
<Row gap="xs" wrap controlInsets="rl">
|
|
126
|
-
<Spacer flex />
|
|
127
|
-
<Button
|
|
128
|
-
emphasis="secondary"
|
|
129
|
-
action="recipe-action"
|
|
130
|
-
rootAttributes={{ 'data-recipe-command': 'reset' }}
|
|
131
|
-
>
|
|
132
|
-
Reset
|
|
133
|
-
</Button>
|
|
134
|
-
<Button
|
|
135
|
-
tone="brand"
|
|
136
|
-
action="recipe-action"
|
|
137
|
-
rootAttributes={{ 'data-recipe-command': 'submit' }}
|
|
138
|
-
>
|
|
139
|
-
Publish Update
|
|
140
|
-
</Button>
|
|
141
|
-
</Row>
|
|
142
|
-
</List>
|
|
143
|
-
</Form>
|
|
144
|
-
);
|
|
44
|
+
const render = () =>
|
|
45
|
+
renderRecipeComposerForm({
|
|
46
|
+
title: title.value,
|
|
47
|
+
body: body.value,
|
|
48
|
+
audience: audience.value,
|
|
49
|
+
error: status.value === 'error',
|
|
50
|
+
saved: status.value === 'saved',
|
|
51
|
+
});
|
|
145
52
|
return {
|
|
146
53
|
render,
|
|
147
54
|
action(command, element) {
|
|
@@ -168,7 +75,10 @@ export const createRecipe: RecipeFactory = (announce) => {
|
|
|
168
75
|
(element as HTMLElement & { value?: string | null }).value ?? '';
|
|
169
76
|
if (element.getAttribute('name') === 'recipe-title') title.value = value;
|
|
170
77
|
if (element.getAttribute('name') === 'recipe-body') body.value = value;
|
|
171
|
-
if (
|
|
78
|
+
if (
|
|
79
|
+
element.getAttribute('name') === 'recipe-audience' &&
|
|
80
|
+
(value === 'team' || value === 'reviewers' || value === 'organization')
|
|
81
|
+
)
|
|
172
82
|
audience.value = value;
|
|
173
83
|
},
|
|
174
84
|
};
|