@kerfjs/ui 5.0.0-beta.130 → 5.0.0-beta.131

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 (95) hide show
  1. package/README.md +1 -0
  2. package/ai/component-catalog.json +15 -5
  3. package/ai/component-composition.json +7 -2
  4. package/ai/component-props-overlay.json +19 -1
  5. package/ai/component-props.json +89 -3
  6. package/ai/components/column-track.md +5 -3
  7. package/ai/components/tabs.md +2 -1
  8. package/ai/public-api-signatures-v1.md +52 -9
  9. package/ai/skill.md +2 -2
  10. package/ai/webawesome-jsx-signatures-v1.md +1 -1
  11. package/dist/catalog.js +4 -3
  12. package/dist/catalog.js.map +1 -1
  13. package/dist/{chunk-73LC3JAL.js → chunk-2GEGIPDR.js} +2 -2
  14. package/dist/{chunk-73LC3JAL.js.map → chunk-2GEGIPDR.js.map} +1 -1
  15. package/dist/{chunk-ASU4ODOH.js → chunk-2RDWKN3Y.js} +39 -8
  16. package/dist/chunk-2RDWKN3Y.js.map +1 -0
  17. package/dist/{chunk-ALBFHXMZ.js → chunk-3UEMBHBK.js} +87 -2
  18. package/dist/chunk-3UEMBHBK.js.map +1 -0
  19. package/dist/{chunk-ECJHCPBN.js → chunk-4OH6JSGU.js} +7 -2
  20. package/dist/chunk-4OH6JSGU.js.map +1 -0
  21. package/dist/{chunk-LETAE6SX.js → chunk-CAB5IWV7.js} +2 -2
  22. package/dist/{chunk-LETAE6SX.js.map → chunk-CAB5IWV7.js.map} +1 -1
  23. package/dist/{chunk-WUVHP3UC.js → chunk-CUUW57WB.js} +11 -2
  24. package/dist/chunk-CUUW57WB.js.map +1 -0
  25. package/dist/{chunk-HHEBNP6Z.js → chunk-FCO7BT4P.js} +4 -4
  26. package/dist/{chunk-HHEBNP6Z.js.map → chunk-FCO7BT4P.js.map} +1 -1
  27. package/dist/{chunk-UD5KHQOH.js → chunk-LJV2FNOC.js} +26 -2
  28. package/dist/chunk-LJV2FNOC.js.map +1 -0
  29. package/dist/chunk-LK3QJHVX.js +19 -0
  30. package/dist/chunk-LK3QJHVX.js.map +1 -0
  31. package/dist/{chunk-Q7RILH2D.js → chunk-OQFWF7Q7.js} +30 -4
  32. package/dist/chunk-OQFWF7Q7.js.map +1 -0
  33. package/dist/chunk-QYOPZ2XS.js +124 -0
  34. package/dist/chunk-QYOPZ2XS.js.map +1 -0
  35. package/dist/{chunk-OSL4LQ7T.js → chunk-QZA75NOK.js} +2 -2
  36. package/dist/{chunk-OSL4LQ7T.js.map → chunk-QZA75NOK.js.map} +1 -1
  37. package/dist/{chunk-F34LHBQI.js → chunk-UOBC36FL.js} +8 -16
  38. package/dist/chunk-UOBC36FL.js.map +1 -0
  39. package/dist/{chunk-BMUYZKXW.js → chunk-YA6OAJY6.js} +3 -3
  40. package/dist/{chunk-BMUYZKXW.js.map → chunk-YA6OAJY6.js.map} +1 -1
  41. package/dist/column-explorer.js +2 -1
  42. package/dist/column-track.d.ts +20 -2
  43. package/dist/column-track.js +1 -1
  44. package/dist/editor.js +17 -13
  45. package/dist/editor.js.map +1 -1
  46. package/dist/index.d.ts +4 -2
  47. package/dist/index.js +11 -9
  48. package/dist/list-header.js +2 -1
  49. package/dist/message-composer.js +2 -1
  50. package/dist/popup-menu-register.js +1 -1
  51. package/dist/{search-field-5lNIszda.d.ts → search-field-7wLt3Bd5.d.ts} +10 -1
  52. package/dist/search-field-model.d.ts +1 -1
  53. package/dist/search-field.d.ts +1 -1
  54. package/dist/search-field.js +1 -1
  55. package/dist/select-register.js +1 -1
  56. package/dist/split-middle-De745N2j.d.ts +7 -0
  57. package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +9 -1
  58. package/dist/styles/components/collections/framed-list/framed-list.css +7 -3
  59. package/dist/styles/components/collections/list-action-row/list-action-row.css +5 -1
  60. package/dist/styles/components/forms/radio-group/radio-group.css +8 -4
  61. package/dist/styles/components/forms/search-field/search-field.css +98 -0
  62. package/dist/styles/components/navigation/tab-bar-item/tab-bar-item.css +33 -3
  63. package/dist/styles/components/typography/text/text.css +2 -2
  64. package/dist/styles/framed-list.css +7 -3
  65. package/dist/styles/list-action-row.css +5 -1
  66. package/dist/styles/radio-group.css +8 -4
  67. package/dist/styles/search-field.css +98 -0
  68. package/dist/styles/tab-bar-item.css +33 -3
  69. package/dist/styles/text.css +2 -2
  70. package/dist/styles/toolbar-control-group.css +9 -1
  71. package/dist/tab-bar-item.d.ts +26 -2
  72. package/dist/tab-bar-item.js +2 -1
  73. package/dist/tag-field.js +1 -1
  74. package/dist/text.d.ts +2 -1
  75. package/dist/text.js +2 -1
  76. package/dist/wire-catalog.js +1 -1
  77. package/dist/wire-column-tracks.d.ts +13 -0
  78. package/dist/wire-column-tracks.js +4 -0
  79. package/dist/wire-column-tracks.js.map +1 -0
  80. package/dist/wire-search-fields.d.ts +1 -1
  81. package/dist/wire-search-fields.js +1 -1
  82. package/dist/wire-tab-bars.js +1 -1
  83. package/dist/wire-tag-fields.js +1 -1
  84. package/docs/accessibility.md +17 -4
  85. package/docs/component-selection.md +13 -4
  86. package/docs/layout.md +11 -0
  87. package/llms.txt +7 -2
  88. package/package.json +5 -1
  89. package/dist/chunk-ALBFHXMZ.js.map +0 -1
  90. package/dist/chunk-ASU4ODOH.js.map +0 -1
  91. package/dist/chunk-ECJHCPBN.js.map +0 -1
  92. package/dist/chunk-F34LHBQI.js.map +0 -1
  93. package/dist/chunk-Q7RILH2D.js.map +0 -1
  94. package/dist/chunk-UD5KHQOH.js.map +0 -1
  95. package/dist/chunk-WUVHP3UC.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/collections/list-header/list-header.tsx"],"names":[],"mappings":";;;;;;;;AAcA,IAAM,8BAAA,uBAAqC,GAAA,CAAI;AAAA,EAC7C,gBAAA;AAAA,EACA,aAAA;AAAA,EACA,gBAAA;AAAA,EACA,gBAAA;AAAA,EACA,cAAA;AAAA,EACA,WAAA;AAAA,EACA,cAAA;AAAA,EACA,aAAA;AAAA,EACA,YA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AAkB,WAAA,IAAe,MAAA;AAAA,YAC3C,mBAAA,EAAmB,iBAAiB,MAAA,GAAS,MAAA;AAAA,YAE5C,QAAA,EAAA;AAAA;AAAA;AACH;AAAA;AAAA,GAEJ;AAEJ","file":"chunk-OSL4LQ7T.js","sourcesContent":["import type { SafeHtml } from 'kerfjs';\n\nimport {\n filterControlAttributes,\n filterDataAttributes,\n} from '../../../shared/dom/extension-attributes.js';\nimport { em } from '../../../shared/styles/css-values.js';\nimport type { SemanticTone } from '../../../shared/styles/semantic-tone.js';\nimport type { HeadingLevel } from '../../actions/toolbar-text/toolbar-text.js';\nimport { Badge } from '../../feedback/badge/badge.js';\nimport { Skeleton } from '../../feedback/skeleton/skeleton.js';\nimport { DisclosureArrow } from '../../navigation/disclosure-arrow/disclosure-arrow.js';\nimport { Text } from '../../typography/text/text.js';\n\nconst PROTECTED_ROOT_DATA_ATTRIBUTES = new Set([\n 'data-component',\n 'data-action',\n 'data-has-badge',\n 'data-has-count',\n 'data-density',\n 'data-size',\n 'data-divider',\n 'data-inline',\n 'data-width',\n 'data-wrap',\n 'data-indicator-tone',\n 'data-toggle',\n 'data-leading-edge',\n]);\nconst PROTECTED_TRIGGER_DATA_ATTRIBUTES = new Set([\n 'data-action',\n 'data-kui-disabled',\n]);\n\ntype ListHeaderRootAttributes = Readonly<\n Record<`data-${string}`, string | undefined> & {\n 'data-component'?: never;\n 'data-action'?: never;\n 'data-has-badge'?: never;\n 'data-has-count'?: never;\n 'data-density'?: never;\n 'data-size'?: never;\n 'data-divider'?: never;\n 'data-inline'?: never;\n 'data-width'?: never;\n 'data-wrap'?: never;\n 'data-indicator-tone'?: never;\n 'data-toggle'?: never;\n 'data-leading-edge'?: never;\n }\n>;\n\ntype ListHeaderTriggerAttributes = Readonly<\n Record<`data-${string}`, string | undefined> & {\n 'data-action'?: never;\n 'data-kui-disabled'?: never;\n popoverTarget?: string;\n popoverTargetAction?: 'toggle' | 'show' | 'hide';\n 'aria-controls'?: string;\n 'aria-haspopup'?: 'dialog' | 'menu' | 'listbox' | 'tree' | 'grid' | 'true';\n }\n>;\n\ninterface ListHeaderBaseProps {\n label: string;\n /** Visual label size, independent of the native heading level. Default `sm`. */\n size?: 'xs' | 'sm' | 'm' | 'l' | 'xl';\n density?: 'default' | 'compact' | /** @deprecated Use default. */ 'standard';\n divider?: 'none' | 'before' | 'after' | 'both';\n /** Shrink-wrap the header without its default outer margin, border, or padding. */\n inline?: boolean;\n /** Fill the available row or shrink-wrap while retaining normal header geometry. */\n width?: 'fill' | 'content';\n /**\n * Wrap a long label onto further lines instead of truncating it to one\n * ellipsized line. Default false. Use it where the whole label must stay\n * readable in a narrow column, such as a specimen or form-section heading.\n */\n wrap?: boolean;\n /**\n * Start the label on another component's leading-content edge (KF-J8GMA2).\n * `summary-row` spans the full width as `SummaryRow`s do and starts the\n * label where their leading content starts, compacting with them at the\n * same width; for a fill-width header directly above summary rows.\n */\n leadingEdge?: 'default' | 'summary-row';\n indicatorTone?: 'neutral' | 'accent' | 'pop' | 'danger';\n /** Render as an unanimated loading skeleton: keep the label and action affordance, disable interaction. */\n placeholder?: boolean;\n rootAttributes?: ListHeaderRootAttributes;\n triggerAttributes?: ListHeaderTriggerAttributes;\n /**\n * The id of the region the header's toggle or action shows or hides,\n * reported as `aria-controls` on its trigger.\n */\n controls?: string;\n /** Native named-slot assignment when composed inside a web component. */\n slot?: string;\n}\n\n/**\n * A toggle header's one trailing overflow button (KF-X2MRCT): its own focus\n * stop at the logical end, outside the disclosure button, opening the\n * section's commands. The label and arrow toggle the section; the overflow\n * button never does.\n */\ntype ListHeaderOverflowProps =\n | {\n /** The overflow button's `data-action`. */\n overflowAction: string;\n /** Its accessible name and tooltip (\"Group actions\"). */\n overflowLabel: string;\n /** Its icon, typically an `Ellipsis` `LucideIcon`. */\n overflowIcon: SafeHtml;\n overflowDisabled?: boolean;\n /**\n * Popup metadata for the overflow button (`popoverTarget`,\n * `aria-haspopup`, `aria-controls`, `data-*`).\n */\n overflowTriggerAttributes?: ListHeaderTriggerAttributes;\n }\n | {\n overflowAction?: never;\n overflowLabel?: never;\n overflowIcon?: never;\n overflowDisabled?: never;\n overflowTriggerAttributes?: never;\n };\n\n/** The non-toggle modes take no overflow button. */\ntype ListHeaderNoOverflow = {\n overflowAction?: never;\n overflowLabel?: never;\n overflowIcon?: never;\n overflowDisabled?: never;\n overflowTriggerAttributes?: never;\n};\n\ntype ListHeaderModeProps =\n | ({\n /** Render the title as a controlled disclosure trigger. */\n toggle: true;\n /** A toggle's label is its button text, not a heading. */\n headingLevel?: never;\n action: string;\n expanded: boolean;\n actionIcon?: SafeHtml;\n actionLabel?: never;\n actionDisabled?: boolean;\n disabledReason?: string;\n } & ListHeaderOverflowProps)\n | ({\n /** Render a separately named trailing action. */\n toggle?: false;\n /**\n * Native heading level (`h1`–`h6`) of the label. Default `2`. Match the\n * document outline; the visual treatment does not change.\n */\n headingLevel?: HeadingLevel;\n action: string;\n actionLabel: string;\n actionIcon: SafeHtml;\n expanded?: never;\n actionDisabled?: boolean;\n disabledReason?: string;\n } & ListHeaderNoOverflow)\n | ({\n /** Render a passive section heading. */\n toggle?: false;\n /**\n * Native heading level (`h1`–`h6`) of the label. Default `2`. Match the\n * document outline; the visual treatment does not change.\n */\n headingLevel?: HeadingLevel;\n action?: never;\n actionLabel?: never;\n actionIcon?: never;\n expanded?: never;\n actionDisabled?: never;\n disabledReason?: never;\n } & ListHeaderNoOverflow);\n\ntype ListHeaderIndicatorProps =\n | { count: number; countLabel: string; badge?: never; status?: never }\n | {\n count?: never;\n countLabel?: never;\n /** Non-count indicator text or content; ListHeader wraps it in its own compact Badge. */\n badge?: string | SafeHtml | undefined;\n /** Status text or content, wrapped in its own compact Badge after `badge`. */\n status?: string | SafeHtml | undefined;\n };\n\nexport type ListHeaderProps = ListHeaderBaseProps &\n ListHeaderIndicatorProps &\n ListHeaderModeProps;\n\nexport function ListHeader({\n label,\n size = 'sm',\n headingLevel = 2,\n count,\n countLabel,\n badge,\n status,\n density = 'default',\n divider = 'none',\n inline = false,\n width = 'fill',\n wrap = false,\n leadingEdge = 'default',\n indicatorTone = 'neutral',\n action,\n actionLabel,\n actionIcon,\n actionDisabled = false,\n disabledReason,\n expanded,\n toggle = false,\n overflowAction,\n overflowLabel,\n overflowIcon,\n overflowDisabled = false,\n overflowTriggerAttributes = {},\n placeholder = false,\n rootAttributes = {},\n triggerAttributes = {},\n controls,\n slot,\n}: ListHeaderProps) {\n const extensionRootAttributes = filterDataAttributes(\n rootAttributes,\n PROTECTED_ROOT_DATA_ATTRIBUTES,\n );\n const extensionTriggerAttributes = {\n ...filterControlAttributes(\n triggerAttributes,\n PROTECTED_TRIGGER_DATA_ATTRIBUTES,\n ),\n ...(controls === undefined ? {} : { 'aria-controls': controls }),\n };\n const normalizedCount =\n typeof count === 'number' && Number.isSafeInteger(count) && count >= 0\n ? count\n : undefined;\n const normalizedCountLabel =\n normalizedCount === undefined\n ? undefined\n : typeof countLabel === 'string' && countLabel.trim()\n ? countLabel\n : String(normalizedCount);\n const renderedBadge = normalizedCount === undefined ? badge : undefined;\n const renderedStatus = normalizedCount === undefined ? status : undefined;\n const hasBadge = Boolean(renderedBadge || renderedStatus);\n const renderedActionIcon =\n actionIcon ??\n (toggle ? <DisclosureArrow open={Boolean(expanded)} /> : undefined);\n const accessibleLabel =\n normalizedCount === undefined\n ? undefined\n : `${label}, ${normalizedCountLabel}`;\n const badgeTone: SemanticTone =\n indicatorTone === 'accent' ? 'info' : indicatorTone;\n const indicator =\n normalizedCount !== undefined ? (\n <Badge size=\"compact\" tone={badgeTone} ariaHidden={!placeholder}>\n {placeholder ? <Skeleton width={em(1.75)} /> : normalizedCount}\n </Badge>\n ) : (\n <>\n {renderedBadge && (\n <Badge size=\"compact\" tone={badgeTone}>\n {placeholder ? <Skeleton width={em(1.75)} /> : renderedBadge}\n </Badge>\n )}\n {renderedStatus && (\n <Badge size=\"compact\" tone={badgeTone}>\n {placeholder ? <Skeleton width={em(1.75)} /> : renderedStatus}\n </Badge>\n )}\n </>\n );\n const busy = placeholder ? ('true' as const) : undefined;\n if (toggle) {\n return (\n <header\n {...extensionRootAttributes}\n class=\"kui-list-header\"\n data-component=\"list-header\"\n data-has-badge={String(hasBadge)}\n data-has-count={String(normalizedCount !== undefined)}\n data-density={density === 'standard' ? 'default' : density}\n data-size={size}\n data-divider={divider}\n data-inline={String(inline)}\n data-width={width}\n data-wrap={wrap ? 'true' : undefined}\n data-leading-edge={\n leadingEdge === 'summary-row' ? 'summary-row' : undefined\n }\n data-indicator-tone={indicatorTone}\n data-toggle=\"true\"\n data-placeholder={placeholder ? 'true' : undefined}\n aria-busy={busy}\n slot={slot}\n >\n <button\n {...extensionTriggerAttributes}\n type=\"button\"\n class=\"kui-list-header__title kui-list-header__toggle\"\n data-action={placeholder ? undefined : action}\n title={actionDisabled ? disabledReason : undefined}\n disabled={actionDisabled || placeholder || undefined}\n data-kui-disabled={actionDisabled ? 'true' : undefined}\n aria-label={accessibleLabel}\n aria-expanded={String(Boolean(expanded))}\n >\n <Text variant=\"span\">{label}</Text>\n {indicator}\n {renderedActionIcon && (\n <span class=\"kui-list-header__action-layer\">\n {renderedActionIcon}\n </span>\n )}\n </button>\n {overflowAction && (\n <button\n {...filterControlAttributes(\n overflowTriggerAttributes,\n PROTECTED_TRIGGER_DATA_ATTRIBUTES,\n )}\n type=\"button\"\n class=\"kui-list-header__action\"\n data-list-header-overflow=\"true\"\n data-action={placeholder ? undefined : overflowAction}\n aria-label={overflowLabel}\n title={overflowLabel}\n disabled={overflowDisabled || placeholder || undefined}\n data-kui-disabled={overflowDisabled ? 'true' : undefined}\n >\n {overflowIcon}\n </button>\n )}\n </header>\n );\n }\n return (\n <header\n {...extensionRootAttributes}\n class=\"kui-list-header\"\n data-component=\"list-header\"\n data-has-badge={String(hasBadge)}\n data-has-count={String(normalizedCount !== undefined)}\n data-density={density === 'standard' ? 'default' : density}\n data-size={size}\n data-divider={divider}\n data-inline={String(inline)}\n data-width={width}\n data-wrap={wrap ? 'true' : undefined}\n data-leading-edge={\n leadingEdge === 'summary-row' ? 'summary-row' : undefined\n }\n data-indicator-tone={indicatorTone}\n data-toggle=\"false\"\n data-placeholder={placeholder ? 'true' : undefined}\n aria-busy={busy}\n slot={slot}\n >\n <div class=\"kui-list-header__title\">\n <Text\n variant={`h${headingLevel}`}\n border=\"none\"\n aria-label={accessibleLabel}\n >\n {label}\n </Text>\n {indicator}\n </div>\n {action && (\n <button\n {...extensionTriggerAttributes}\n type=\"button\"\n class=\"kui-list-header__action\"\n data-action={placeholder ? undefined : action}\n aria-label={actionLabel}\n title={actionDisabled ? disabledReason : actionLabel}\n disabled={actionDisabled || placeholder || undefined}\n data-kui-disabled={actionDisabled ? 'true' : undefined}\n >\n {renderedActionIcon}\n </button>\n )}\n </header>\n );\n}\n"]}
1
+ {"version":3,"sources":["../src/components/collections/list-header/list-header.tsx"],"names":[],"mappings":";;;;;;;;AAcA,IAAM,8BAAA,uBAAqC,GAAA,CAAI;AAAA,EAC7C,gBAAA;AAAA,EACA,aAAA;AAAA,EACA,gBAAA;AAAA,EACA,gBAAA;AAAA,EACA,cAAA;AAAA,EACA,WAAA;AAAA,EACA,cAAA;AAAA,EACA,aAAA;AAAA,EACA,YAAA;AAAA,EACA,WAAA;AAAA,EACA,qBAAA;AAAA,EACA,aAAA;AAAA,EACA;AACF,CAAC,CAAA;AACD,IAAM,iCAAA,uBAAwC,GAAA,CAAI;AAAA,EAChD,aAAA;AAAA,EACA;AACF,CAAC,CAAA;AAqKM,SAAS,UAAA,CAAW;AAAA,EACzB,KAAA;AAAA,EACA,IAAA,GAAO,IAAA;AAAA,EACP,YAAA,GAAe,CAAA;AAAA,EACf,KAAA;AAAA,EACA,UAAA;AAAA,EACA,KAAA;AAAA,EACA,MAAA;AAAA,EACA,OAAA,GAAU,SAAA;AAAA,EACV,OAAA,GAAU,MAAA;AAAA,EACV,MAAA,GAAS,KAAA;AAAA,EACT,KAAA,GAAQ,MAAA;AAAA,EACR,IAAA,GA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,aAAA;AAAA,MACrB,aAAA,EAAY,OAAA;AAAA,MACZ,kBAAA,EAAkB,cAAc,MAAA,GAAS,MAAA;AAAA,MACzC,WAAA,EAAW,IAAA;AAAA,MACX,IAAA;AAAA,MAEA,QAAA,EAAA;AAAA,wBAAA,IAAA,CAAC,KAAA,EAAA,EAAI,OAAM,wBAAA,EACT,QAAA,EAAA;AAAA,0BAAA,GAAA;AAAA,YAAC,IAAA;AAAA,YAAA;AAAA,cACC,OAAA,EAAS,IAAI,YAAY,CAAA,CAAA;AAAA,cACzB,MAAA,EAAO,MAAA;AAAA,cACP,YAAA,EAAY,eAAA;AAAA,cAEX,QAAA,EAAA;AAAA;AAAA,WACH;AAAA,UACC;AAAA,SAAA,EACH,CAAA;AAAA,QACC,MAAA,oBACC,GAAA;AAAA,UAAC,QAAA;AAAA,UAAA;AAAA,YACE,GAAG,0BAAA;AAAA,YACJ,IAAA,EAAK,QAAA;AAAA,YACL,KAAA,EAAM,yBAAA;AAAA,YACN,aAAA,EAAa,cAAc,MAAA,GAAY,MAAA;AAAA,YACvC,YAAA,EAAY,WAAA;AAAA,YACZ,KAAA,EAAO,iBAAiB,cAAA,GAAiB,WAAA;AAAA,YACzC,QAAA,EAAU,kBAAkB,WAAA,IAAe,MAAA;AAAA,YAC3C,mBAAA,EAAmB,iBAAiB,MAAA,GAAS,MAAA;AAAA,YAE5C,QAAA,EAAA;AAAA;AAAA;AACH;AAAA;AAAA,GAEJ;AAEJ","file":"chunk-QZA75NOK.js","sourcesContent":["import type { SafeHtml } from 'kerfjs';\n\nimport {\n filterControlAttributes,\n filterDataAttributes,\n} from '../../../shared/dom/extension-attributes.js';\nimport { em } from '../../../shared/styles/css-values.js';\nimport type { SemanticTone } from '../../../shared/styles/semantic-tone.js';\nimport type { HeadingLevel } from '../../actions/toolbar-text/toolbar-text.js';\nimport { Badge } from '../../feedback/badge/badge.js';\nimport { Skeleton } from '../../feedback/skeleton/skeleton.js';\nimport { DisclosureArrow } from '../../navigation/disclosure-arrow/disclosure-arrow.js';\nimport { Text } from '../../typography/text/text.js';\n\nconst PROTECTED_ROOT_DATA_ATTRIBUTES = new Set([\n 'data-component',\n 'data-action',\n 'data-has-badge',\n 'data-has-count',\n 'data-density',\n 'data-size',\n 'data-divider',\n 'data-inline',\n 'data-width',\n 'data-wrap',\n 'data-indicator-tone',\n 'data-toggle',\n 'data-leading-edge',\n]);\nconst PROTECTED_TRIGGER_DATA_ATTRIBUTES = new Set([\n 'data-action',\n 'data-kui-disabled',\n]);\n\ntype ListHeaderRootAttributes = Readonly<\n Record<`data-${string}`, string | undefined> & {\n 'data-component'?: never;\n 'data-action'?: never;\n 'data-has-badge'?: never;\n 'data-has-count'?: never;\n 'data-density'?: never;\n 'data-size'?: never;\n 'data-divider'?: never;\n 'data-inline'?: never;\n 'data-width'?: never;\n 'data-wrap'?: never;\n 'data-indicator-tone'?: never;\n 'data-toggle'?: never;\n 'data-leading-edge'?: never;\n }\n>;\n\ntype ListHeaderTriggerAttributes = Readonly<\n Record<`data-${string}`, string | undefined> & {\n 'data-action'?: never;\n 'data-kui-disabled'?: never;\n popoverTarget?: string;\n popoverTargetAction?: 'toggle' | 'show' | 'hide';\n 'aria-controls'?: string;\n 'aria-haspopup'?: 'dialog' | 'menu' | 'listbox' | 'tree' | 'grid' | 'true';\n }\n>;\n\ninterface ListHeaderBaseProps {\n label: string;\n /** Visual label size, independent of the native heading level. Default `sm`. */\n size?: 'xs' | 'sm' | 'm' | 'l' | 'xl';\n density?: 'default' | 'compact' | /** @deprecated Use default. */ 'standard';\n divider?: 'none' | 'before' | 'after' | 'both';\n /** Shrink-wrap the header without its default outer margin, border, or padding. */\n inline?: boolean;\n /** Fill the available row or shrink-wrap while retaining normal header geometry. */\n width?: 'fill' | 'content';\n /**\n * Wrap a long label onto further lines instead of truncating it to one\n * ellipsized line. Default false. Use it where the whole label must stay\n * readable in a narrow column, such as a specimen or form-section heading.\n */\n wrap?: boolean;\n /**\n * Start the label on another component's leading-content edge (KF-J8GMA2).\n * `summary-row` spans the full width as `SummaryRow`s do and starts the\n * label where their leading content starts, compacting with them at the\n * same width; for a fill-width header directly above summary rows.\n */\n leadingEdge?: 'default' | 'summary-row';\n indicatorTone?: 'neutral' | 'accent' | 'pop' | 'danger';\n /** Render as an unanimated loading skeleton: keep the label and action affordance, disable interaction. */\n placeholder?: boolean;\n rootAttributes?: ListHeaderRootAttributes;\n triggerAttributes?: ListHeaderTriggerAttributes;\n /**\n * The id of the region the header's toggle or action shows or hides,\n * reported as `aria-controls` on its trigger.\n */\n controls?: string;\n /** Native named-slot assignment when composed inside a web component. */\n slot?: string;\n}\n\n/**\n * A toggle header's one trailing overflow button (KF-X2MRCT): its own focus\n * stop at the logical end, outside the disclosure button, opening the\n * section's commands. The label and arrow toggle the section; the overflow\n * button never does.\n */\ntype ListHeaderOverflowProps =\n | {\n /** The overflow button's `data-action`. */\n overflowAction: string;\n /** Its accessible name and tooltip (\"Group actions\"). */\n overflowLabel: string;\n /** Its icon, typically an `Ellipsis` `LucideIcon`. */\n overflowIcon: SafeHtml;\n overflowDisabled?: boolean;\n /**\n * Popup metadata for the overflow button (`popoverTarget`,\n * `aria-haspopup`, `aria-controls`, `data-*`).\n */\n overflowTriggerAttributes?: ListHeaderTriggerAttributes;\n }\n | {\n overflowAction?: never;\n overflowLabel?: never;\n overflowIcon?: never;\n overflowDisabled?: never;\n overflowTriggerAttributes?: never;\n };\n\n/** The non-toggle modes take no overflow button. */\ntype ListHeaderNoOverflow = {\n overflowAction?: never;\n overflowLabel?: never;\n overflowIcon?: never;\n overflowDisabled?: never;\n overflowTriggerAttributes?: never;\n};\n\ntype ListHeaderModeProps =\n | ({\n /** Render the title as a controlled disclosure trigger. */\n toggle: true;\n /** A toggle's label is its button text, not a heading. */\n headingLevel?: never;\n action: string;\n expanded: boolean;\n actionIcon?: SafeHtml;\n actionLabel?: never;\n actionDisabled?: boolean;\n disabledReason?: string;\n } & ListHeaderOverflowProps)\n | ({\n /** Render a separately named trailing action. */\n toggle?: false;\n /**\n * Native heading level (`h1`–`h6`) of the label. Default `2`. Match the\n * document outline; the visual treatment does not change.\n */\n headingLevel?: HeadingLevel;\n action: string;\n actionLabel: string;\n actionIcon: SafeHtml;\n expanded?: never;\n actionDisabled?: boolean;\n disabledReason?: string;\n } & ListHeaderNoOverflow)\n | ({\n /** Render a passive section heading. */\n toggle?: false;\n /**\n * Native heading level (`h1`–`h6`) of the label. Default `2`. Match the\n * document outline; the visual treatment does not change.\n */\n headingLevel?: HeadingLevel;\n action?: never;\n actionLabel?: never;\n actionIcon?: never;\n expanded?: never;\n actionDisabled?: never;\n disabledReason?: never;\n } & ListHeaderNoOverflow);\n\ntype ListHeaderIndicatorProps =\n | { count: number; countLabel: string; badge?: never; status?: never }\n | {\n count?: never;\n countLabel?: never;\n /** Non-count indicator text or content; ListHeader wraps it in its own compact Badge. */\n badge?: string | SafeHtml | undefined;\n /** Status text or content, wrapped in its own compact Badge after `badge`. */\n status?: string | SafeHtml | undefined;\n };\n\nexport type ListHeaderProps = ListHeaderBaseProps &\n ListHeaderIndicatorProps &\n ListHeaderModeProps;\n\nexport function ListHeader({\n label,\n size = 'sm',\n headingLevel = 2,\n count,\n countLabel,\n badge,\n status,\n density = 'default',\n divider = 'none',\n inline = false,\n width = 'fill',\n wrap = false,\n leadingEdge = 'default',\n indicatorTone = 'neutral',\n action,\n actionLabel,\n actionIcon,\n actionDisabled = false,\n disabledReason,\n expanded,\n toggle = false,\n overflowAction,\n overflowLabel,\n overflowIcon,\n overflowDisabled = false,\n overflowTriggerAttributes = {},\n placeholder = false,\n rootAttributes = {},\n triggerAttributes = {},\n controls,\n slot,\n}: ListHeaderProps) {\n const extensionRootAttributes = filterDataAttributes(\n rootAttributes,\n PROTECTED_ROOT_DATA_ATTRIBUTES,\n );\n const extensionTriggerAttributes = {\n ...filterControlAttributes(\n triggerAttributes,\n PROTECTED_TRIGGER_DATA_ATTRIBUTES,\n ),\n ...(controls === undefined ? {} : { 'aria-controls': controls }),\n };\n const normalizedCount =\n typeof count === 'number' && Number.isSafeInteger(count) && count >= 0\n ? count\n : undefined;\n const normalizedCountLabel =\n normalizedCount === undefined\n ? undefined\n : typeof countLabel === 'string' && countLabel.trim()\n ? countLabel\n : String(normalizedCount);\n const renderedBadge = normalizedCount === undefined ? badge : undefined;\n const renderedStatus = normalizedCount === undefined ? status : undefined;\n const hasBadge = Boolean(renderedBadge || renderedStatus);\n const renderedActionIcon =\n actionIcon ??\n (toggle ? <DisclosureArrow open={Boolean(expanded)} /> : undefined);\n const accessibleLabel =\n normalizedCount === undefined\n ? undefined\n : `${label}, ${normalizedCountLabel}`;\n const badgeTone: SemanticTone =\n indicatorTone === 'accent' ? 'info' : indicatorTone;\n const indicator =\n normalizedCount !== undefined ? (\n <Badge size=\"compact\" tone={badgeTone} ariaHidden={!placeholder}>\n {placeholder ? <Skeleton width={em(1.75)} /> : normalizedCount}\n </Badge>\n ) : (\n <>\n {renderedBadge && (\n <Badge size=\"compact\" tone={badgeTone}>\n {placeholder ? <Skeleton width={em(1.75)} /> : renderedBadge}\n </Badge>\n )}\n {renderedStatus && (\n <Badge size=\"compact\" tone={badgeTone}>\n {placeholder ? <Skeleton width={em(1.75)} /> : renderedStatus}\n </Badge>\n )}\n </>\n );\n const busy = placeholder ? ('true' as const) : undefined;\n if (toggle) {\n return (\n <header\n {...extensionRootAttributes}\n class=\"kui-list-header\"\n data-component=\"list-header\"\n data-has-badge={String(hasBadge)}\n data-has-count={String(normalizedCount !== undefined)}\n data-density={density === 'standard' ? 'default' : density}\n data-size={size}\n data-divider={divider}\n data-inline={String(inline)}\n data-width={width}\n data-wrap={wrap ? 'true' : undefined}\n data-leading-edge={\n leadingEdge === 'summary-row' ? 'summary-row' : undefined\n }\n data-indicator-tone={indicatorTone}\n data-toggle=\"true\"\n data-placeholder={placeholder ? 'true' : undefined}\n aria-busy={busy}\n slot={slot}\n >\n <button\n {...extensionTriggerAttributes}\n type=\"button\"\n class=\"kui-list-header__title kui-list-header__toggle\"\n data-action={placeholder ? undefined : action}\n title={actionDisabled ? disabledReason : undefined}\n disabled={actionDisabled || placeholder || undefined}\n data-kui-disabled={actionDisabled ? 'true' : undefined}\n aria-label={accessibleLabel}\n aria-expanded={String(Boolean(expanded))}\n >\n <Text variant=\"span\">{label}</Text>\n {indicator}\n {renderedActionIcon && (\n <span class=\"kui-list-header__action-layer\">\n {renderedActionIcon}\n </span>\n )}\n </button>\n {overflowAction && (\n <button\n {...filterControlAttributes(\n overflowTriggerAttributes,\n PROTECTED_TRIGGER_DATA_ATTRIBUTES,\n )}\n type=\"button\"\n class=\"kui-list-header__action\"\n data-list-header-overflow=\"true\"\n data-action={placeholder ? undefined : overflowAction}\n aria-label={overflowLabel}\n title={overflowLabel}\n disabled={overflowDisabled || placeholder || undefined}\n data-kui-disabled={overflowDisabled ? 'true' : undefined}\n >\n {overflowIcon}\n </button>\n )}\n </header>\n );\n }\n return (\n <header\n {...extensionRootAttributes}\n class=\"kui-list-header\"\n data-component=\"list-header\"\n data-has-badge={String(hasBadge)}\n data-has-count={String(normalizedCount !== undefined)}\n data-density={density === 'standard' ? 'default' : density}\n data-size={size}\n data-divider={divider}\n data-inline={String(inline)}\n data-width={width}\n data-wrap={wrap ? 'true' : undefined}\n data-leading-edge={\n leadingEdge === 'summary-row' ? 'summary-row' : undefined\n }\n data-indicator-tone={indicatorTone}\n data-toggle=\"false\"\n data-placeholder={placeholder ? 'true' : undefined}\n aria-busy={busy}\n slot={slot}\n >\n <div class=\"kui-list-header__title\">\n <Text\n variant={`h${headingLevel}`}\n border=\"none\"\n aria-label={accessibleLabel}\n >\n {label}\n </Text>\n {indicator}\n </div>\n {action && (\n <button\n {...extensionTriggerAttributes}\n type=\"button\"\n class=\"kui-list-header__action\"\n data-action={placeholder ? undefined : action}\n aria-label={actionLabel}\n title={actionDisabled ? disabledReason : actionLabel}\n disabled={actionDisabled || placeholder || undefined}\n data-kui-disabled={actionDisabled ? 'true' : undefined}\n >\n {renderedActionIcon}\n </button>\n )}\n </header>\n );\n}\n"]}
@@ -1,3 +1,4 @@
1
+ import { splitMiddle } from './chunk-LK3QJHVX.js';
1
2
  import { filterDataAttributes } from './chunk-COQI4OMZ.js';
2
3
  import { jsx, jsxs } from 'kerfjs/jsx-runtime';
3
4
 
@@ -25,20 +26,6 @@ var textProtectedAttributes = /* @__PURE__ */ new Set([
25
26
  "data-max-lines",
26
27
  "data-truncate"
27
28
  ]);
28
- var MIDDLE_FALLBACK_KEEP = 10;
29
- function splitMiddle(text, keep) {
30
- let tailLength;
31
- if (keep === "segment") {
32
- const searchEnd = /[/\\]$/.test(text) ? text.length - 1 : text.length;
33
- const separator = Math.max(
34
- text.lastIndexOf("/", searchEnd - 1),
35
- text.lastIndexOf("\\", searchEnd - 1)
36
- );
37
- tailLength = separator > 0 ? text.length - separator : MIDDLE_FALLBACK_KEEP;
38
- } else tailLength = keep;
39
- if (tailLength >= text.length) return [text, ""];
40
- return [text.slice(0, -tailLength), text.slice(-tailLength)];
41
- }
42
29
  function Text({
43
30
  variant: Variant = "p",
44
31
  tone = "default",
@@ -117,11 +104,16 @@ function Text({
117
104
  }
118
105
  );
119
106
  }
107
+ var LRM = "\u200E";
120
108
  function textBody(position, children, textValue, truncateKeep, maxLines, strong) {
121
109
  const content = strong ? /* @__PURE__ */ jsx("strong", { children }) : children;
122
110
  switch (position) {
123
111
  case "start":
124
- return /* @__PURE__ */ jsx("span", { class: "kui-text__truncate-start", children: /* @__PURE__ */ jsx("span", { dir: "ltr", children: content }) });
112
+ return /* @__PURE__ */ jsxs("span", { class: "kui-text__truncate-start", children: [
113
+ LRM,
114
+ content,
115
+ LRM
116
+ ] });
125
117
  case "middle":
126
118
  return /* @__PURE__ */ jsx(
127
119
  TruncateMiddle,
@@ -154,4 +146,4 @@ function TruncateMiddle({
154
146
 
155
147
  export { FieldLabel, Text };
156
148
 
157
- //# sourceMappingURL=chunk-F34LHBQI.js.map
149
+ //# sourceMappingURL=chunk-UOBC36FL.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/forms/field-label/field-label.tsx","../src/components/typography/text/text.tsx"],"names":["jsx"],"mappings":";;;;AAiBO,SAAS,UAAA,CAAW;AAAA,EACzB,QAAA;AAAA,EACA,EAAA;AAAA,EACA,OAAO,UAAA,GAAa,EAAA;AAAA,EACpB,SAAA,GAAY,EAAA;AAAA,EACZ,GAAG;AACL,CAAA,EAAoB;AAClB,EAAA,MAAM,OAAA,GAAU,CAAC,uBAAA,EAAyB,UAAA,EAAY,SAAS,EAC5D,MAAA,CAAO,OAAO,CAAA,CACd,IAAA,CAAK,GAAG,CAAA;AACX,EAAA,uBACE,GAAA,CAAC,SAAK,GAAG,UAAA,EAAY,IAAQ,KAAA,EAAO,OAAA,EAAS,gBAAA,EAAe,aAAA,EACzD,QAAA,EACH,CAAA;AAEJ;AC6GA,IAAM,uBAAA,uBAA8B,GAAA,CAAI;AAAA,EACtC,gBAAA;AAAA,EACA,WAAA;AAAA,EACA,WAAA;AAAA,EACA,WAAA;AAAA,EACA,aAAA;AAAA,EACA,sBAAA;AAAA,EACA,YAAA;AAAA,EACA,kBAAA;AAAA,EACA,YAAA;AAAA,EACA,WAAA;AAAA,EACA,gBAAA;AAAA,EACA;AACF,CAAC,CAAA;AAOM,SAAS,IAAA,CAAK;AAAA,EACnB,SAAS,OAAA,GAAU,GAAA;AAAA,EACnB,IAAA,GAAO,SAAA;AAAA,EACP,MAAA,GAAS,SAAA;AAAA,EACT,KAAA;AAAA,EACA,IAAA,GAAO,SAAA;AAAA,EACP,IAAA,GAAO,SAAA;AAAA,EACP,MAAA,GAAS,aAAA;AAAA,EACT,KAAA,GAAQ,KAAA;AAAA,EACR,cAAA,GAAiB,EAAA;AAAA,EACjB,UAAA,GAAa,SAAA;AAAA,EACb,KAAA,GAAQ,OAAA;AAAA,EACR,IAAA;AAAA,EACA,SAAA;AAAA,EACA,iBAAiB,EAAC;AAAA,EAClB,IAAA,GAAO,QAAA;AAAA,EACP,QAAA;AAAA,E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A,IAAC,MAAA,EAAA,EAAK,KAAA,EAAM,yBAAA,EAA2B,QAAA,EAAA,IAAA,CAAK,IAAI,CAAA,EAAE,CAAA;AAAA,IACjD,IAAA,mBAAOA,GAAAA,CAAC,MAAA,EAAA,EAAK,OAAM,yBAAA,EAA2B,QAAA,EAAA,IAAA,CAAK,IAAI,CAAA,EAAE,CAAA,GAAU;AAAA,GAAA,EACtE,CAAA;AAEJ","file":"chunk-UOBC36FL.js","sourcesContent":["import type { KerfBaseAttrs } from 'kerfjs/jsx-runtime';\n\nexport type FieldLabelProps = Omit<\n KerfBaseAttrs,\n 'children' | 'class' | 'className' | 'id'\n> & {\n children: string;\n /**\n * The label's id: what a group's `labelledBy` (a ChoiceChips or a preview\n * group's `aria-labelledby`) names, so the label is that group's name.\n */\n id?: string;\n class?: string;\n className?: string;\n};\n\n/** Visible field heading for a read-only preview; use its id with aria-labelledby on the preview group. */\nexport function FieldLabel({\n children,\n id,\n class: classValue = '',\n className = '',\n ...attributes\n}: FieldLabelProps) {\n const classes = ['kui-text__field-label', classValue, className]\n .filter(Boolean)\n .join(' ');\n return (\n <div {...attributes} id={id} class={classes} data-component=\"field-label\">\n {children}\n </div>\n );\n}\n","import type { KerfBaseAttrs } from 'kerfjs/jsx-runtime';\n\nimport type { KerfUiContent } from '../../../shared/content/semantic-content.js';\nimport {\n filterDataAttributes,\n type RootDataAttributes,\n} from '../../../shared/dom/extension-attributes.js';\nimport type { Sides } from '../../../shared/layout/sides.js';\nimport type { CssForegroundColor } from '../../../shared/styles/css-values.js';\n\nexport {\n FieldLabel,\n type FieldLabelProps,\n} from '../../forms/field-label/field-label.js';\nimport {\n type MiddleTruncateKeep,\n splitMiddle,\n} from '../../../shared/text/split-middle.js';\n\nexport type TextVariant =\n 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';\nexport type TextTone = 'default' | 'quiet' | 'danger';\n/** `strong` marks the text as important with a `<strong>` element. */\nexport type TextWeight = 'regular' | 'strong';\n/**\n * `compact` (xs), `default` (the element's own size), `medium` (the 16px\n * body size, for a heading such as an in-list group title), `large`, or\n * `xlarge`.\n */\nexport type TextSize = 'compact' | 'default' | 'medium' | 'large' | 'xlarge';\nexport type TextFont = 'default' | 'monospace';\nexport type TextBorder = 'transparent' | 'none';\nexport type TextLineHeight = 'default' | 'tight';\nexport type TextWrap = 'normal' | 'anywhere' | 'nowrap' | 'truncate';\n/** Inline alignment of the text's lines, in logical (writing-direction) terms. */\nexport type TextAlign = 'start' | 'center' | 'end';\n/**\n * Where `wrap=\"truncate\"` places its ellipsis: `end` (default) keeps the\n * start, `start` keeps the tail (branch names, the end of an identifier), and\n * `middle` keeps both the start and a suffix (file paths).\n */\nexport type TextTruncate = 'end' | 'middle' | 'start';\n/**\n * The suffix `truncate=\"middle\"` always keeps: a number of trailing\n * characters, or `segment` for the last path segment with its separator.\n */\nexport type TextTruncateKeep = MiddleTruncateKeep;\n\nexport type TextContent =\n KerfUiContent | string | number | readonly TextContent[];\n\ntype TextCommonProps = Omit<\n KerfBaseAttrs,\n 'children' | 'class' | 'className' | 'id' | 'lang'\n> & {\n /**\n * The element's id, for a link or `aria-*` reference to target (a\n * `ListItemLink href=\"#…\"` destination, for example).\n */\n id?: string;\n /** The text's language (`lang`), when it differs from the page's (KF-AC7AFR). */\n lang?: string;\n /**\n * An accessible name for the element (`aria-label`), such as a named\n * example paragraph (KF-AC7AFR). Visible text names most Text already.\n */\n ariaLabel?: string;\n /** Native heading, paragraph, or inline span element to render. Defaults to `p`. */\n variant?: TextVariant;\n /** Semantic foreground treatment. Defaults to the inherited foreground. */\n tone?: TextTone;\n /**\n * `strong` wraps the text in `<strong>`, for a title or key phrase that\n * matters more than its neighbors. Defaults to `regular`.\n */\n weight?: TextWeight;\n /** Foreground color; overrides tone when supplied, or inherits when omitted. */\n color?: CssForegroundColor;\n /** Text sizing independent of the native semantic element. */\n size?: TextSize;\n /** Font family independent of the native semantic element. */\n font?: TextFont;\n /** Transparent alignment border or no border when embedded in owner chrome. */\n border?: TextBorder;\n /** Add the shared control gutter outside selected physical edges. */\n controlMargins?: Sides;\n /** Remove the block variant's item padding and border in compact content. */\n flush?: boolean;\n /** Use compact leading for short dialog or metadata copy. */\n lineHeight?: TextLineHeight;\n /** Inline alignment of the lines (default `start`), for centered status copy. */\n align?: TextAlign;\n /**\n * Announce changes to this text as a live region (`aria-live`), for a\n * status or result readout that updates without moving focus.\n */\n live?: 'polite' | 'assertive';\n /** Application `data-*` metadata (test hooks, row keys); Text's own stay protected. */\n rootAttributes?: RootDataAttributes;\n children: TextContent;\n class?: string;\n className?: string;\n};\n\nexport type TextProps = TextCommonProps &\n (\n | {\n /** Wrap normally or break long unbroken strings. Defaults to normal. */\n wrap?: 'normal' | 'anywhere';\n /** Cap wrapped text to this positive number of lines. */\n maxLines?: number;\n truncate?: never;\n truncateKeep?: never;\n }\n | {\n /** Keep one line without an ellipsis. */\n wrap: 'nowrap';\n maxLines?: never;\n truncate?: never;\n truncateKeep?: never;\n }\n | {\n /** Keep one line with an ellipsis. */\n wrap: 'truncate';\n maxLines?: never;\n /**\n * Where the ellipsis goes (default `end`). `start` and `middle` are\n * for left-to-right identifiers and paths, and `middle` requires\n * string or number children so it can split them.\n */\n truncate?: TextTruncate;\n /**\n * The suffix `truncate=\"middle\"` keeps (default `segment`: the last\n * path segment, or the last 10 characters when there is no `/` or\n * `\\\\` separator).\n */\n truncateKeep?: TextTruncateKeep;\n }\n );\n\n/** Attributes Text writes itself, which `rootAttributes` cannot replace. */\nconst textProtectedAttributes = new Set([\n 'data-component',\n 'data-tone',\n 'data-size',\n 'data-font',\n 'data-border',\n 'data-control-margins',\n 'data-flush',\n 'data-line-height',\n 'data-align',\n 'data-wrap',\n 'data-max-lines',\n 'data-truncate',\n]);\n\n/**\n * Semantic heading, paragraph, or inline text. Block variants use the standard\n * content-item padding; `span` adds no box geometry.\n * All ordinary native heading/paragraph attributes pass through to the element.\n */\nexport function Text({\n variant: Variant = 'p',\n tone = 'default',\n weight = 'regular',\n color,\n size = 'default',\n font = 'default',\n border = 'transparent',\n flush = false,\n controlMargins = '',\n lineHeight = 'default',\n align = 'start',\n live,\n ariaLabel,\n rootAttributes = {},\n wrap = 'normal',\n maxLines,\n truncate,\n truncateKeep,\n children,\n class: classValue = '',\n className = '',\n style,\n ...attributes\n}: TextProps) {\n if (\n maxLines !== undefined &&\n (!Number.isSafeInteger(maxLines) ||\n maxLines < 1 ||\n wrap === 'nowrap' ||\n wrap === 'truncate')\n )\n throw new RangeError(\n 'Text maxLines requires a positive integer and wrapping',\n );\n const position = truncate ?? 'end';\n if (\n (truncate !== undefined && wrap !== 'truncate') ||\n !['end', 'middle', 'start'].includes(position)\n )\n throw new RangeError(\n 'Text truncate requires wrap=\"truncate\" and one of end, middle, or start',\n );\n if (\n truncateKeep !== undefined &&\n (position !== 'middle' ||\n (truncateKeep !== 'segment' &&\n (!Number.isSafeInteger(truncateKeep) || truncateKeep < 1)))\n )\n throw new RangeError(\n 'Text truncateKeep requires truncate=\"middle\" and a positive integer or \"segment\"',\n );\n const textValue =\n typeof children === 'string' || typeof children === 'number'\n ? String(children)\n : undefined;\n if (position === 'middle' && textValue === undefined)\n throw new TypeError(\n 'Text truncate=\"middle\" requires string or number children',\n );\n // Visually clipped start/middle text keeps its full value in the DOM; the\n // title shows it to pointer users unless the app supplied its own.\n const title =\n attributes.title === undefined && position !== 'end'\n ? textValue\n : attributes.title;\n const classes = ['kui-text', classValue, className].filter(Boolean).join(' ');\n return (\n <Variant\n {...filterDataAttributes(rootAttributes, textProtectedAttributes)}\n {...attributes}\n aria-live={live ?? attributes['aria-live']}\n aria-label={ariaLabel ?? attributes['aria-label']}\n class={classes}\n data-component=\"text\"\n data-tone={tone}\n data-size={size}\n data-font={font}\n data-border={border}\n data-control-margins={controlMargins || undefined}\n data-flush={flush ? 'true' : undefined}\n data-line-height={lineHeight === 'tight' ? 'tight' : undefined}\n data-align={align === 'start' ? undefined : align}\n data-wrap={wrap === 'normal' ? undefined : wrap}\n data-max-lines={maxLines === undefined ? undefined : String(maxLines)}\n data-truncate={position === 'end' ? undefined : position}\n title={title}\n style={\n color === undefined\n ? style\n : `${style === undefined || style === null ? '' : `${style};`}color:${color}`\n }\n >\n {textBody(\n position,\n children,\n textValue,\n truncateKeep,\n maxLines,\n weight === 'strong',\n )}\n </Variant>\n );\n}\n\n/** U+200E LEFT-TO-RIGHT MARK. */\nconst LRM = '\\u200E';\n\n/** The element's content for its truncation position or line cap. */\nfunction textBody(\n position: TextTruncate,\n children: TextContent,\n textValue: string | undefined,\n truncateKeep: TextTruncateKeep | undefined,\n maxLines: number | undefined,\n strong: boolean,\n): TextContent {\n const content = strong ? <strong>{children}</strong> : children;\n switch (position) {\n case 'start':\n // KF-FM2NWN: left-to-right marks keep the text's own order and edge\n // punctuation in the right-to-left clip box. An isolating `dir=\"ltr\"`\n // span would too, but WebKit then draws no leading ellipsis once the\n // text has a space.\n return (\n <span class=\"kui-text__truncate-start\">\n {LRM}\n {content}\n {LRM}\n </span>\n );\n case 'middle':\n return (\n <TruncateMiddle\n parts={splitMiddle(textValue!, truncateKeep ?? 'segment')}\n strong={strong}\n />\n );\n case 'end':\n return maxLines === undefined ? (\n content\n ) : (\n <span\n class=\"kui-text__clamp\"\n style={`--_kui-text-max-lines:${maxLines}`}\n >\n {content}\n </span>\n );\n }\n}\n\nfunction TruncateMiddle({\n parts: [head, tail],\n strong,\n}: {\n parts: [string, string];\n strong: boolean;\n}) {\n // A strong middle truncation keeps its two shrinking parts and marks each.\n const mark = (part: string) => (strong ? <strong>{part}</strong> : part);\n return (\n <span class=\"kui-text__truncate-middle\">\n <span class=\"kui-text__truncate-head\">{mark(head)}</span>\n {tail ? <span class=\"kui-text__truncate-tail\">{mark(tail)}</span> : ''}\n </span>\n );\n}\n\nexport type { Sides } from '../../../shared/layout/sides.js';\n"]}
@@ -1,7 +1,7 @@
1
1
  import { isExpandable } from './chunk-7U65KLDL.js';
2
- import { ColumnTrack } from './chunk-ECJHCPBN.js';
2
+ import { ColumnTrack } from './chunk-4OH6JSGU.js';
3
3
  import { ListItem } from './chunk-4UWLHKNU.js';
4
- import { ListHeader } from './chunk-OSL4LQ7T.js';
4
+ import { ListHeader } from './chunk-QZA75NOK.js';
5
5
  import { List } from './chunk-WVQDIOD7.js';
6
6
  import { LucideIcon } from './chunk-CMG4OZPV.js';
7
7
  import { filterDataAttributes } from './chunk-COQI4OMZ.js';
@@ -152,4 +152,4 @@ function ColumnExplorer({
152
152
 
153
153
  export { ColumnExplorer, explorerChosen, explorerColumns };
154
154
 
155
- //# sourceMappingURL=chunk-BMUYZKXW.js.map
155
+ //# sourceMappingURL=chunk-YA6OAJY6.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/collections/column-explorer/model/columns.ts","../src/components/collections/column-explorer/column-explorer.tsx"],"names":[],"mappings":";;;;;;;;;;;AAuBO,SAAS,eAAA,CACd,OACA,IAAA,EACkB;AAClB,EAAA,MAAM,UAA4B,EAAC;AACnC,EAAA,IAAI,QAAA,GAAoC,KAAA;AACxC,EAAA,IAAI,MAAA;AACJ,EAAA,KAAA,IAAS,KAAA,GAAQ,CAAA,IAAK,KAAA,IAAS,CAAA,EAAG;AAChC,IAAA,MAAM,MAAA,GAAS,SAAS,IAAA,CAAK,CAAC,SAAS,IAAA,CAAK,EAAA,KAAO,IAAA,CAAK,KAAK,CAAC,CAAA;AAC9D,IAAA,OAAA,CAAQ,IAAA,CAAK;AAAA,MACX,KAAA;AAAA,MACA,GAAI,MAAA,GAAS,EAAE,MAAA,KAAW,EAAC;AAAA,MAC3B,KAAA,EAAO,QAAA;AAAA,MACP,GAAI,MAAA,GAAS,EAAE,QAAQ,MAAA,CAAO,EAAA,KAAO;AAAC,KACvC,CAAA;AACD,IAAA,IAAI,CAAC,MAAA,IAAU,CAAC,YAAA,CAAa,MAAM,GAAG,OAAO,OAAA;AAC7C,IAAA,MAAA,GAAS,MAAA;AACT,IAAA,QAAA,GAAW,MAAA,CAAO,YAAY,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C;AAAA,gBAEC,QAAA,EAAA;AAAA;AAAA,aACH,GACE;AAAA;AAAA;AAAA;AACN;AAAA,GACF;AAEJ","file":"chunk-BMUYZKXW.js","sourcesContent":["// KF-JY68DQ: the columns a column explorer shows for a chosen path through a\n// hierarchy. It walks the same TreeListNode model as TreeList, DOM-free.\nimport {\n isExpandable,\n type TreeListNode,\n} from '../../tree-list/model/tree-rows.js';\n\n/** One column: the children of the node chosen in the column before it. */\nexport interface ExplorerColumn {\n /** 0 for the top level. */\n readonly level: number;\n /** The node whose children this column lists, or undefined at the top. */\n readonly parent?: TreeListNode;\n readonly nodes: readonly TreeListNode[];\n /** The id chosen in this column, when the path reaches it. */\n readonly chosen?: string;\n}\n\n/**\n * The columns for `path` (ids from the top level down): the top level, then\n * the children of each chosen node that can expand. A path id that is not a\n * child of the column before it ends the walk there.\n */\nexport function explorerColumns(\n nodes: readonly TreeListNode[],\n path: readonly string[],\n): ExplorerColumn[] {\n const columns: ExplorerColumn[] = [];\n let siblings: readonly TreeListNode[] = nodes;\n let parent: TreeListNode | undefined;\n for (let level = 0; ; level += 1) {\n const chosen = siblings.find((node) => node.id === path[level]);\n columns.push({\n level,\n ...(parent ? { parent } : {}),\n nodes: siblings,\n ...(chosen ? { chosen: chosen.id } : {}),\n });\n if (!chosen || !isExpandable(chosen)) return columns;\n parent = chosen;\n siblings = chosen.children ?? [];\n }\n}\n\n/** The node at the end of `path`, when the whole path resolves. */\nexport function explorerChosen(\n nodes: readonly TreeListNode[],\n path: readonly string[],\n): TreeListNode | undefined {\n let siblings: readonly TreeListNode[] = nodes;\n let node: TreeListNode | undefined;\n for (const id of path) {\n node = siblings.find((candidate) => candidate.id === id);\n if (!node) return undefined;\n siblings = node.children ?? [];\n }\n return node;\n}\n","import type { SafeHtml } from 'kerfjs';\nimport { ChevronRight } from 'lucide';\n\nimport {\n filterDataAttributes,\n type RootDataAttributes,\n} from '../../../shared/dom/extension-attributes.js';\nimport type { CssLength } from '../../../shared/styles/css-values.js';\nimport { ColumnTrack } from '../../layout/column-track/column-track.js';\nimport { LucideIcon } from '../../media/lucide-icon/lucide-icon.js';\nimport { List } from '../list/list.js';\nimport { ListHeader } from '../list-header/list-header.js';\nimport { ListItem } from '../list-item/list-item.js';\nimport {\n isExpandable,\n type TreeListNode,\n} from '../tree-list/model/tree-rows.js';\nimport { explorerChosen, explorerColumns } from './model/columns.js';\n\nexport {\n explorerChosen,\n type ExplorerColumn,\n explorerColumns,\n} from './model/columns.js';\n\nconst COLUMN_EXPLORER_PROTECTED = new Set([\n 'data-component',\n 'data-column-explorer-id',\n]);\n\nexport interface ColumnExplorerProps {\n /** Identifies the explorer for `wireColumnExplorer` and in tests. */\n id: string;\n /** The explorer's accessible name, such as \"Files\". */\n label: string;\n /** The hierarchy, as TreeList's nodes. The application owns it. */\n nodes: readonly TreeListNode[];\n /**\n * The chosen ids from the top level down, one per column. The application\n * owns it: set it to `treeListPath(nodes, id)` when `action` reports a row.\n */\n path: readonly string[];\n /** Delegated action for choosing a row; the row's `data-item-id` names it. */\n action: string;\n /**\n * Content for a last column when the chosen node is a leaf, such as a\n * file's details.\n */\n preview?: SafeHtml;\n /** ColumnTrack's layout: `scroll` (default) or `paged` for a phone. */\n layout?: 'scroll' | 'paged';\n /** ColumnTrack inline clearance; none clips columns at the explorer edges. */\n inset?: 'default' | 'none';\n /** Each column's minimum width (ColumnTrack's default 250px). */\n minColumnWidth?: CssLength;\n /** How much of the next column a paged layout shows. */\n peek?: CssLength;\n /** Show a quiet parent heading in every column, starting with this root name. */\n rootHeading?: string;\n /** Row density: `default` or `compact`. */\n density?: 'default' | 'compact' | /** @deprecated Use default. */ 'standard';\n className?: string;\n /** Safe `data-*` metadata for the explorer element. */\n rootAttributes?: RootDataAttributes;\n /** Native named-slot assignment when composed inside a web component. */\n slot?: string;\n}\n\nconst chevron = LucideIcon({ icon: ChevronRight, name: 'chevron-right' });\n\n/**\n * A macOS-style column explorer for a hierarchy: one column per level in a\n * ColumnTrack, where choosing a row with children opens the next column of\n * its children. The application owns the nodes and the chosen path and\n * handles `action`; wire the keyboard with `wireColumnExplorer`.\n */\nexport function ColumnExplorer({\n id,\n label,\n nodes,\n path,\n action,\n preview,\n layout,\n inset,\n minColumnWidth,\n peek,\n rootHeading,\n density = 'default',\n className = '',\n rootAttributes = {},\n slot,\n}: ColumnExplorerProps) {\n const columns = explorerColumns(nodes, path);\n const chosen = explorerChosen(nodes, path);\n const showPreview =\n preview !== undefined && chosen !== undefined && !isExpandable(chosen);\n return (\n <div\n {...filterDataAttributes(rootAttributes, COLUMN_EXPLORER_PROTECTED)}\n id={id}\n role=\"region\"\n class={`kui-column-explorer ${className}`.trim()}\n aria-label={label}\n data-component=\"column-explorer\"\n data-column-explorer-id={id}\n slot={slot}\n >\n <ColumnTrack\n layout={layout}\n inset={inset}\n minColumnWidth={minColumnWidth}\n peek={peek}\n >\n {columns.map((column) => {\n // One Tab stop per column: its chosen row, else its first.\n const stop = column.chosen ?? column.nodes[0]?.id;\n return (\n <List\n scrollable\n fill\n rootAttributes={{\n role: 'group',\n 'aria-label': column.parent\n ? String(column.parent.label)\n : label,\n 'data-column-explorer-level': String(column.level),\n }}\n >\n {rootHeading !== undefined ? (\n <ListHeader\n label={\n column.parent ? String(column.parent.label) : rootHeading\n }\n size=\"xs\"\n density=\"compact\"\n />\n ) : null}\n {column.nodes.map((node) => (\n <ListItem\n action={action}\n itemId={node.id}\n label={node.label}\n description={node.description}\n icon={node.icon}\n trailing={\n isExpandable(node) ? (\n <>\n {node.trailing}\n {chevron}\n </>\n ) : (\n node.trailing\n )\n }\n selected={node.id === column.chosen}\n disabled={node.disabled}\n draggable={node.draggable}\n density={density}\n tabIndex={node.id === stop ? 0 : -1}\n rootAttributes={{\n ...node.rootAttributes,\n 'data-key': node.id,\n 'data-column-explorer-level': String(column.level),\n 'data-expandable': isExpandable(node) ? 'true' : undefined,\n }}\n />\n ))}\n </List>\n );\n })}\n {showPreview ? (\n <List\n scrollable\n fill\n rootAttributes={{\n role: 'group',\n 'aria-label': `${String(chosen.label)} preview`,\n 'data-column-explorer-preview': 'true',\n }}\n >\n {preview}\n </List>\n ) : null}\n </ColumnTrack>\n </div>\n );\n}\n"]}
1
+ {"version":3,"sources":["../src/components/collections/column-explorer/model/columns.ts","../src/components/collections/column-explorer/column-explorer.tsx"],"names":[],"mappings":";;;;;;;;;;;AAuBO,SAAS,eAAA,CACd,OACA,IAAA,EACkB;AAClB,EAAA,MAAM,UAA4B,EAAC;AACnC,EAAA,IAAI,QAAA,GAAoC,KAAA;AACxC,EAAA,IAAI,MAAA;AACJ,EAAA,KAAA,IAAS,KAAA,GAAQ,CAAA,IAAK,KAAA,IAAS,CAAA,EAAG;AAChC,IAAA,MAAM,MAAA,GAAS,SAAS,IAAA,CAAK,CAAC,SAAS,IAAA,CAAK,EAAA,KAAO,IAAA,CAAK,KAAK,CAAC,CAAA;AAC9D,IAAA,OAAA,CAAQ,IAAA,CAAK;AAAA,MACX,KAAA;AAAA,MACA,GAAI,MAAA,GAAS,EAAE,MAAA,KAAW,EAAC;AAAA,MAC3B,KAAA,EAAO,QAAA;AAAA,MACP,GAAI,MAAA,GAAS,EAAE,QAAQ,MAAA,CAAO,EAAA,KAAO;AAAC,KACvC,CAAA;AACD,IAAA,IAAI,CAAC,MAAA,IAAU,CAAC,YAAA,CAAa,MAAM,GAAG,OAAO,OAAA;AAC7C,IAAA,MAAA,GAAS,MAAA;AACT,IAAA,QAAA,GAAW,MAAA,CAAO,YAAY,EAAC;AAAA,EACjC;AACF;AAGO,SAAS,cAAA,CACd,OACA,IAAA,EAC0B;AAC1B,EAAA,IAAI,QAAA,GAAoC,KAAA;AACxC,EAAA,IAAI,IAAA;AACJ,EAAA,KAAA,MAAW,MAAM,IAAA,EAAM;AACrB,IAAA,IAAA,GAAO,SAAS,IAAA,CAAK,CAAC,SAAA,KAAc,SAAA,CAAU,OAAO,EAAE,CAAA;AACvD,IAAA,IAAI,CAAC,MAAM,OAAO,MAAA;AAClB,IAAA,QA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,CAAK,QAAA;AAAA,0BACL;AAAA,yBAAA,EACH,IAEA,IAAA,CAAK,QAAA;AAAA,wBAGT,QAAA,EAAU,IAAA,CAAK,EAAA,KAAO,MAAA,CAAO,MAAA;AAAA,wBAC7B,UAAU,IAAA,CAAK,QAAA;AAAA,wBACf,WAAW,IAAA,CAAK,SAAA;AAAA,wBAChB,OAAA;AAAA,wBACA,QAAA,EAAU,IAAA,CAAK,EAAA,KAAO,IAAA,GAAO,CAAA,GAAI,EAAA;AAAA,wBACjC,cAAA,EAAgB;AAAA,0BACd,GAAG,IAAA,CAAK,cAAA;AAAA,0BACR,YAAY,IAAA,CAAK,EAAA;AAAA,0BACjB,4BAAA,EAA8B,MAAA,CAAO,MAAA,CAAO,KAAK,CAAA;AAAA,0BACjD,iBAAA,EAAmB,YAAA,CAAa,IAAI,CAAA,GAAI,MAAA,GAAS;AAAA;AACnD;AAAA,qBAEH;AAAA;AAAA;AAAA,eACH;AAAA,YAEJ,CAAC,CAAA;AAAA,YACA,WAAA,mBACC,GAAA;AAAA,cAAC,IAAA;AAAA,cAAA;AAAA,gBACC,UAAA,EAAU,IAAA;AAAA,gBACV,IAAA,EAAI,IAAA;AAAA,gBACJ,cAAA,EAAgB;AAAA,kBACd,IAAA,EAAM,OAAA;AAAA,kBACN,YAAA,EAAc,CAAA,EAAG,MAAA,CAAO,MAAA,CAAO,KAAK,CAAC,CAAA,QAAA,CAAA;AAAA,kBACrC,8BAAA,EAAgC;AAAA,iBAClC;AAAA,gBAEC,QAAA,EAAA;AAAA;AAAA,aACH,GACE;AAAA;AAAA;AAAA;AACN;AAAA,GACF;AAEJ","file":"chunk-YA6OAJY6.js","sourcesContent":["// KF-JY68DQ: the columns a column explorer shows for a chosen path through a\n// hierarchy. It walks the same TreeListNode model as TreeList, DOM-free.\nimport {\n isExpandable,\n type TreeListNode,\n} from '../../tree-list/model/tree-rows.js';\n\n/** One column: the children of the node chosen in the column before it. */\nexport interface ExplorerColumn {\n /** 0 for the top level. */\n readonly level: number;\n /** The node whose children this column lists, or undefined at the top. */\n readonly parent?: TreeListNode;\n readonly nodes: readonly TreeListNode[];\n /** The id chosen in this column, when the path reaches it. */\n readonly chosen?: string;\n}\n\n/**\n * The columns for `path` (ids from the top level down): the top level, then\n * the children of each chosen node that can expand. A path id that is not a\n * child of the column before it ends the walk there.\n */\nexport function explorerColumns(\n nodes: readonly TreeListNode[],\n path: readonly string[],\n): ExplorerColumn[] {\n const columns: ExplorerColumn[] = [];\n let siblings: readonly TreeListNode[] = nodes;\n let parent: TreeListNode | undefined;\n for (let level = 0; ; level += 1) {\n const chosen = siblings.find((node) => node.id === path[level]);\n columns.push({\n level,\n ...(parent ? { parent } : {}),\n nodes: siblings,\n ...(chosen ? { chosen: chosen.id } : {}),\n });\n if (!chosen || !isExpandable(chosen)) return columns;\n parent = chosen;\n siblings = chosen.children ?? [];\n }\n}\n\n/** The node at the end of `path`, when the whole path resolves. */\nexport function explorerChosen(\n nodes: readonly TreeListNode[],\n path: readonly string[],\n): TreeListNode | undefined {\n let siblings: readonly TreeListNode[] = nodes;\n let node: TreeListNode | undefined;\n for (const id of path) {\n node = siblings.find((candidate) => candidate.id === id);\n if (!node) return undefined;\n siblings = node.children ?? [];\n }\n return node;\n}\n","import type { SafeHtml } from 'kerfjs';\nimport { ChevronRight } from 'lucide';\n\nimport {\n filterDataAttributes,\n type RootDataAttributes,\n} from '../../../shared/dom/extension-attributes.js';\nimport type { CssLength } from '../../../shared/styles/css-values.js';\nimport { ColumnTrack } from '../../layout/column-track/column-track.js';\nimport { LucideIcon } from '../../media/lucide-icon/lucide-icon.js';\nimport { List } from '../list/list.js';\nimport { ListHeader } from '../list-header/list-header.js';\nimport { ListItem } from '../list-item/list-item.js';\nimport {\n isExpandable,\n type TreeListNode,\n} from '../tree-list/model/tree-rows.js';\nimport { explorerChosen, explorerColumns } from './model/columns.js';\n\nexport {\n explorerChosen,\n type ExplorerColumn,\n explorerColumns,\n} from './model/columns.js';\n\nconst COLUMN_EXPLORER_PROTECTED = new Set([\n 'data-component',\n 'data-column-explorer-id',\n]);\n\nexport interface ColumnExplorerProps {\n /** Identifies the explorer for `wireColumnExplorer` and in tests. */\n id: string;\n /** The explorer's accessible name, such as \"Files\". */\n label: string;\n /** The hierarchy, as TreeList's nodes. The application owns it. */\n nodes: readonly TreeListNode[];\n /**\n * The chosen ids from the top level down, one per column. The application\n * owns it: set it to `treeListPath(nodes, id)` when `action` reports a row.\n */\n path: readonly string[];\n /** Delegated action for choosing a row; the row's `data-item-id` names it. */\n action: string;\n /**\n * Content for a last column when the chosen node is a leaf, such as a\n * file's details.\n */\n preview?: SafeHtml;\n /** ColumnTrack's layout: `scroll` (default) or `paged` for a phone. */\n layout?: 'scroll' | 'paged';\n /** ColumnTrack inline clearance; none clips columns at the explorer edges. */\n inset?: 'default' | 'none';\n /** Each column's minimum width (ColumnTrack's default 250px). */\n minColumnWidth?: CssLength;\n /** How much of the next column a paged layout shows. */\n peek?: CssLength;\n /** Show a quiet parent heading in every column, starting with this root name. */\n rootHeading?: string;\n /** Row density: `default` or `compact`. */\n density?: 'default' | 'compact' | /** @deprecated Use default. */ 'standard';\n className?: string;\n /** Safe `data-*` metadata for the explorer element. */\n rootAttributes?: RootDataAttributes;\n /** Native named-slot assignment when composed inside a web component. */\n slot?: string;\n}\n\nconst chevron = LucideIcon({ icon: ChevronRight, name: 'chevron-right' });\n\n/**\n * A macOS-style column explorer for a hierarchy: one column per level in a\n * ColumnTrack, where choosing a row with children opens the next column of\n * its children. The application owns the nodes and the chosen path and\n * handles `action`; wire the keyboard with `wireColumnExplorer`.\n */\nexport function ColumnExplorer({\n id,\n label,\n nodes,\n path,\n action,\n preview,\n layout,\n inset,\n minColumnWidth,\n peek,\n rootHeading,\n density = 'default',\n className = '',\n rootAttributes = {},\n slot,\n}: ColumnExplorerProps) {\n const columns = explorerColumns(nodes, path);\n const chosen = explorerChosen(nodes, path);\n const showPreview =\n preview !== undefined && chosen !== undefined && !isExpandable(chosen);\n return (\n <div\n {...filterDataAttributes(rootAttributes, COLUMN_EXPLORER_PROTECTED)}\n id={id}\n role=\"region\"\n class={`kui-column-explorer ${className}`.trim()}\n aria-label={label}\n data-component=\"column-explorer\"\n data-column-explorer-id={id}\n slot={slot}\n >\n <ColumnTrack\n layout={layout}\n inset={inset}\n minColumnWidth={minColumnWidth}\n peek={peek}\n >\n {columns.map((column) => {\n // One Tab stop per column: its chosen row, else its first.\n const stop = column.chosen ?? column.nodes[0]?.id;\n return (\n <List\n scrollable\n fill\n rootAttributes={{\n role: 'group',\n 'aria-label': column.parent\n ? String(column.parent.label)\n : label,\n 'data-column-explorer-level': String(column.level),\n }}\n >\n {rootHeading !== undefined ? (\n <ListHeader\n label={\n column.parent ? String(column.parent.label) : rootHeading\n }\n size=\"xs\"\n density=\"compact\"\n />\n ) : null}\n {column.nodes.map((node) => (\n <ListItem\n action={action}\n itemId={node.id}\n label={node.label}\n description={node.description}\n icon={node.icon}\n trailing={\n isExpandable(node) ? (\n <>\n {node.trailing}\n {chevron}\n </>\n ) : (\n node.trailing\n )\n }\n selected={node.id === column.chosen}\n disabled={node.disabled}\n draggable={node.draggable}\n density={density}\n tabIndex={node.id === stop ? 0 : -1}\n rootAttributes={{\n ...node.rootAttributes,\n 'data-key': node.id,\n 'data-column-explorer-level': String(column.level),\n 'data-expandable': isExpandable(node) ? 'true' : undefined,\n }}\n />\n ))}\n </List>\n );\n })}\n {showPreview ? (\n <List\n scrollable\n fill\n rootAttributes={{\n role: 'group',\n 'aria-label': `${String(chosen.label)} preview`,\n 'data-column-explorer-preview': 'true',\n }}\n >\n {preview}\n </List>\n ) : null}\n </ColumnTrack>\n </div>\n );\n}\n"]}
@@ -1,4 +1,5 @@
1
- export { ColumnExplorer, explorerChosen, explorerColumns } from './chunk-BMUYZKXW.js';
1
+ export { ColumnExplorer, explorerChosen, explorerColumns } from './chunk-YA6OAJY6.js';
2
+
2
3
 
3
4
 
4
5
 
@@ -5,9 +5,18 @@ import { CssLength } from './css-values.js';
5
5
 
6
6
  /** `scroll` keeps equal min-width columns; `paged` shows one near-full-width column per page. */
7
7
  type ColumnTrackLayout = 'scroll' | 'paged';
8
+ /**
9
+ * Where the track opens: its first column (default), its far `end`, or the
10
+ * column whose `data-column-id` is `column`.
11
+ */
12
+ type ColumnTrackStart = 'start' | 'end' | Readonly<{
13
+ column: string;
14
+ }>;
8
15
  type ColumnTrackRootAttributes = StructuralRootAttributes & Readonly<{
9
16
  'data-component'?: never;
10
17
  'data-layout'?: never;
18
+ 'data-start'?: never;
19
+ 'data-start-column'?: never;
11
20
  }>;
12
21
  interface ColumnTrackProps {
13
22
  /** The columns, in order; each owns its own inset and scrolling. */
@@ -21,6 +30,15 @@ interface ColumnTrackProps {
21
30
  layout?: ColumnTrackLayout;
22
31
  /** Inline edge clearance: default uses the layout margin; none clips columns at the track edges. */
23
32
  inset?: 'default' | 'none';
33
+ /**
34
+ * Where the track opens: `start` (default, the first column), `end` (a
35
+ * board whose newest column is last), or `{ column }`, the column whose
36
+ * `data-column-id` matches (a paged phone board opening on its current
37
+ * column). It applies when the track first renders and whenever its
38
+ * column ids change, and holds across width changes until the person
39
+ * scrolls the track. Requires `wireColumnTracks`.
40
+ */
41
+ start?: ColumnTrackStart;
24
42
  /** Narrowest a `scroll` column gets before the track scrolls; default 250px. */
25
43
  minColumnWidth?: CssLength;
26
44
  /** How much of the next column a `paged` track shows; default 24px. */
@@ -47,6 +65,6 @@ interface ColumnTrackProps {
47
65
  * insets and vertical scrolling. Kerf owns the overflow, the paged snapping,
48
66
  * and reduced motion.
49
67
  */
50
- declare function ColumnTrack({ children, layout, inset, minColumnWidth, peek, ariaLabel, id, className, rootAttributes, slot, }: ColumnTrackProps): kerfjs.SafeHtml;
68
+ declare function ColumnTrack({ children, layout, inset, start, minColumnWidth, peek, ariaLabel, id, className, rootAttributes, slot, }: ColumnTrackProps): kerfjs.SafeHtml;
51
69
 
52
- export { ColumnTrack, type ColumnTrackLayout, type ColumnTrackProps };
70
+ export { ColumnTrack, type ColumnTrackLayout, type ColumnTrackProps, type ColumnTrackStart };
@@ -1,4 +1,4 @@
1
- export { ColumnTrack } from './chunk-ECJHCPBN.js';
1
+ export { ColumnTrack } from './chunk-4OH6JSGU.js';
2
2
 
3
3
 
4
4
  //# sourceMappingURL=column-track.js.map
package/dist/editor.js CHANGED
@@ -1,21 +1,21 @@
1
+ import { wireTreeList, treeListExternalDrop } from './chunk-HPOXLOVC.js';
2
+ import { wireSidebar } from './chunk-63TJH2RF.js';
1
3
  import { wireSliders } from './chunk-TXBNPEIJ.js';
2
4
  import { wireTabNavigator } from './chunk-6V6UHPJD.js';
3
- import { wireTagFields } from './chunk-HHEBNP6Z.js';
4
- import { wireTreeList, treeListExternalDrop } from './chunk-HPOXLOVC.js';
5
+ import { wireTagFields } from './chunk-FCO7BT4P.js';
5
6
  import { wireNavStack } from './chunk-I2K4OQKB.js';
6
- import { wireSidebar } from './chunk-63TJH2RF.js';
7
7
  import { wireContentItems } from './chunk-X43QQWVC.js';
8
8
  import { wireWorkbench } from './chunk-QSJAIXLM.js';
9
9
  import { wireColorFields } from './chunk-3K5V3ZSD.js';
10
10
  import { wireColorPickers } from './chunk-YE6KCAIN.js';
11
11
  import { wireColumnExplorer } from './chunk-GHV36C6I.js';
12
12
  import { TreeList } from './chunk-D2KHQNJ6.js';
13
- import { TagField } from './chunk-73LC3JAL.js';
13
+ import { TagField } from './chunk-2GEGIPDR.js';
14
14
  import { wireSummaryRows } from './chunk-CKPI4WIN.js';
15
- import { wireTabBars, reorderTabs } from './chunk-ASU4ODOH.js';
15
+ import { wireTabBars, reorderTabs } from './chunk-2RDWKN3Y.js';
16
16
  import { wireTextFields } from './chunk-KC6WUSNS.js';
17
17
  import { wireResizableRegions } from './chunk-MMOQR426.js';
18
- import { wireSearchFields } from './chunk-ALBFHXMZ.js';
18
+ import { wireSearchFields } from './chunk-3UEMBHBK.js';
19
19
  import { wireComboboxes } from './chunk-GE2BQXB3.js';
20
20
 
21
21
  import { wireFilePickers } from './chunk-KK3S5OTW.js';
@@ -27,7 +27,7 @@ import { wireCheckboxes } from './chunk-DJWBXEF4.js';
27
27
  import { wireChoiceChips, readChoiceChips } from './chunk-DB64I3DB.js';
28
28
  import { TextField } from './chunk-RGB4DPMN.js';
29
29
  import { ValueTable, ValueTableRow } from './chunk-WSPXSWFG.js';
30
- import { TabBarItem } from './chunk-Q7RILH2D.js';
30
+ import { TabBarItem } from './chunk-OQFWF7Q7.js';
31
31
  import { TabBar } from './chunk-4IXG6XCT.js';
32
32
  import { StateBanner } from './chunk-LOW7J7SE.js';
33
33
  import { SummaryRow } from './chunk-JHUEYWWI.js';
@@ -49,7 +49,7 @@ import { deviceClass } from './chunk-WCMGPAY2.js';
49
49
 
50
50
 
51
51
 
52
- import { ColumnExplorer } from './chunk-BMUYZKXW.js';
52
+ import { ColumnExplorer } from './chunk-YA6OAJY6.js';
53
53
  import { treeListPath } from './chunk-7U65KLDL.js';
54
54
 
55
55
  import { openAnchoredSurface } from './chunk-COMEWURO.js';
@@ -60,7 +60,7 @@ import { Button } from './chunk-QXXLDY6I.js';
60
60
  import { Workbench } from './chunk-4CYCJ3NY.js';
61
61
  import { workbenchRegionId } from './chunk-UU37OR3D.js';
62
62
  import { Switch } from './chunk-C4FBYP2D.js';
63
- import { SearchField, readSearchField } from './chunk-UD5KHQOH.js';
63
+ import { SearchField, readSearchField } from './chunk-LJV2FNOC.js';
64
64
  import { Row } from './chunk-CCPWJDRW.js';
65
65
  import { ListInsetText } from './chunk-CJAKN2KZ.js';
66
66
  import { PopupMenu, openPopupMenuAt } from './chunk-S7QB5KMM.js';
@@ -84,8 +84,9 @@ import { ListItem } from './chunk-4UWLHKNU.js';
84
84
 
85
85
 
86
86
 
87
- import { ListHeader } from './chunk-OSL4LQ7T.js';
88
- import { Text } from './chunk-F34LHBQI.js';
87
+ import { ListHeader } from './chunk-QZA75NOK.js';
88
+ import { Text } from './chunk-UOBC36FL.js';
89
+
89
90
 
90
91
 
91
92
  import { List } from './chunk-WVQDIOD7.js';
@@ -10154,11 +10155,14 @@ function createParameterEditor(options) {
10154
10155
  autocorrect: "off",
10155
10156
  autocomplete: "off",
10156
10157
  error: !value.type ? value.error || void 0 : void 0,
10157
- rootAttributes: input("type")
10158
+ rootAttributes: {
10159
+ ...input("type"),
10160
+ "data-pending": value.pending ? "" : void 0
10161
+ }
10158
10162
  }
10159
10163
  ),
10160
10164
  value.type && value.error ? /* @__PURE__ */ jsx(StateBanner, { tone: "warning", title: value.error }) : void 0,
10161
- value.pending ? /* @__PURE__ */ jsx(Text, { tone: "quiet", children: "Checking type\u2026" }) : void 0,
10165
+ value.pending && !value.type ? /* @__PURE__ */ jsx(Text, { tone: "quiet", children: "Checking type\u2026" }) : void 0,
10162
10166
  value.suggestions.length ? /* @__PURE__ */ jsx(List, { children: value.suggestions.map((item, index) => /* @__PURE__ */ jsx(
10163
10167
  ListItem,
10164
10168
  {