@wow-two-beta/fe 0.0.46 → 0.0.48
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/dist/presentation/display/dotsIndicator/DotsIndicator.vue.js +2 -2
- package/dist/presentation/display/dotsIndicator/DotsIndicator.vue.js.map +1 -1
- package/dist/presentation/forms/toggleGroup/ToggleGroup.vue.d.ts +2 -1
- package/dist/presentation/forms/toggleGroup/ToggleGroup.vue.js +20 -1
- package/dist/presentation/forms/toggleGroup/ToggleGroup.vue.js.map +1 -1
- package/dist/presentation/layout/navbar/Navbar.vue.js.map +1 -1
- package/package.json +1 -1
|
@@ -46,9 +46,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
role: "img",
|
|
47
47
|
"aria-label": label.value
|
|
48
48
|
}, rest.value, { class: classes.value }), [
|
|
49
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(dots.value, (dot) => {
|
|
49
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(dots.value, (dot, slot) => {
|
|
50
50
|
return openBlock(), createElementBlock("span", mergeProps({
|
|
51
|
-
key:
|
|
51
|
+
key: slot,
|
|
52
52
|
class: dotClasses(dot),
|
|
53
53
|
"aria-hidden": "true"
|
|
54
54
|
}, { ref_for: true }, { "data-dot": "", "data-active": dot.isActive || void 0, "data-edge": dot.edge }), null, 16);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DotsIndicator.vue.js","sources":["../../../../src/presentation/display/dotsIndicator/DotsIndicator.vue"],"sourcesContent":["<script lang=\"ts\">\nexport interface DotsIndicatorProps {\n /** The total number of items the dots stand for. */\n readonly count: number;\n\n /** The current item, zero-based; clamped into range. */\n readonly index: number;\n\n /** The most dots shown; every item when there are fewer. Default 5. */\n readonly visibleCount?: number;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { useLocale } from '../../../foundation/i18n';\nimport { cn } from '../../../foundation/styles';\nimport { dotsIndicatorWindowOf, type DotsIndicatorDot } from './DotsIndicatorWindow';\n\nconst locale = useLocale();\n\n/**\n * Renders a row of dots for a position in a longer series, such as the image a card shows. It calculates its own\n * window: with more items than `visibleCount` it shows that many dots, keeps the current item's dot highlighted on\n * the centre while it can, slides along as `index` moves, and draws the edge dot smaller when more items lie beyond it.\n *\n * The dots are drawn in the current text colour, so a text colour utility such as `text-white` on a photograph
|
|
1
|
+
{"version":3,"file":"DotsIndicator.vue.js","sources":["../../../../src/presentation/display/dotsIndicator/DotsIndicator.vue"],"sourcesContent":["<script lang=\"ts\">\nexport interface DotsIndicatorProps {\n /** The total number of items the dots stand for. */\n readonly count: number;\n\n /** The current item, zero-based; clamped into range. */\n readonly index: number;\n\n /** The most dots shown; every item when there are fewer. Default 5. */\n readonly visibleCount?: number;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { useLocale } from '../../../foundation/i18n';\nimport { cn } from '../../../foundation/styles';\nimport { dotsIndicatorWindowOf, type DotsIndicatorDot } from './DotsIndicatorWindow';\n\nconst locale = useLocale();\n\n/**\n * Renders a row of dots for a position in a longer series, such as the image a card shows. It calculates its own\n * window: with more items than `visibleCount` it shows that many dots, keeps the current item's dot highlighted on\n * the centre while it can, slides along as `index` moves, and draws the edge dot smaller when more items lie beyond it.\n *\n * The dots are drawn in the current text colour, so a text colour utility such as `text-white` on a photograph\n * colours them; the current dot is solid and the rest are faded. Each dot is a slot of the row, not an item: when the\n * window slides and the current dot stays on the same slot, that dot does nothing at all, and only a slot whose state\n * changes animates. It is presentational: the row is one image named by its position, `3 of 10`.\n */\ndefineOptions({ name: 'DotsIndicator', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DotsIndicatorProps>(), { visibleCount: 5 });\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\nconst dots = computed(() => dotsIndicatorWindowOf(props.count, props.index, props.visibleCount));\nconst current = computed(() => dots.value.find((dot) => dot.isActive)?.position ?? 0);\nconst label = computed(() =>\n locale.t(\n 'DotsIndicator.position',\n { index: current.value + 1, total: Math.max(0, props.count) },\n '{index} of {total}',\n ),\n);\n\nconst classes = computed(() => cn('inline-flex items-center gap-1', attrs.class as string | undefined));\n\n/** One dot's size and fade: the current one solid, a window edge with more beyond it small and faint. */\nfunction dotClasses(dot: DotsIndicatorDot): string {\n return cn(\n 'shrink-0 rounded-full bg-current transition-all duration-200 motion-reduce:transition-none',\n dot.edge ? 'size-1 opacity-35' : 'size-1.5',\n dot.isActive ? 'opacity-100' : dot.edge ? '' : 'opacity-50',\n );\n}\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div v-if=\"dots.length\" ref=\"el\" role=\"img\" :aria-label=\"label\" v-bind=\"rest\" :class=\"classes\">\n <span\n v-for=\"(dot, slot) in dots\"\n :key=\"slot\"\n :class=\"dotClasses(dot)\"\n aria-hidden=\"true\"\n v-bind=\"{ 'data-dot': '', 'data-active': dot.isActive || undefined, 'data-edge': dot.edge }\"\n ></span>\n </div>\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_Fragment","_renderList"],"mappings":";;;;;;;;;;;;;;AAmBA,UAAM,SAAS,UAAA;AAcf,UAAM,QAAQ;AACd,UAAM,QAAQ,SAAA;AACd,UAAM,KAAK,eAA+B,IAAI;AAE9C,UAAM,OAAO,SAAS,MAAM,sBAAsB,MAAM,OAAO,MAAM,OAAO,MAAM,YAAY,CAAC;AAC/F,UAAM,UAAU,SAAS,MAAM,KAAK,MAAM,KAAK,CAAC,QAAQ,IAAI,QAAQ,GAAG,YAAY,CAAC;AACpF,UAAM,QAAQ;AAAA,MAAS,MACrB,OAAO;AAAA,QACL;AAAA,QACA,EAAE,OAAO,QAAQ,QAAQ,GAAG,OAAO,KAAK,IAAI,GAAG,MAAM,KAAK,EAAA;AAAA,QAC1D;AAAA,MAAA;AAAA,IACF;AAGF,UAAM,UAAU,SAAS,MAAM,GAAG,kCAAkC,MAAM,KAA2B,CAAC;AAGtG,aAAS,WAAW,KAA+B;AACjD,aAAO;AAAA,QACL;AAAA,QACA,IAAI,OAAO,sBAAsB;AAAA,QACjC,IAAI,WAAW,gBAAgB,IAAI,OAAO,KAAK;AAAA,MAAA;AAAA,IAEnD;AAGA,UAAM,OAAO,SAAS,MAAM;AAC1B,YAAM,EAAE,OAAO,QAAQ,GAAG,WAAW;AACrC,aAAO;AAAA,IACT,CAAC;AAED,aAAa,EAAE,IAAI;;AAIN,aAAA,KAAA,MAAK,UAAhBA,aAAAC,mBAQM,OARNC,WAQM;AAAA;iBARsB;AAAA,QAAJ,KAAI;AAAA,QAAK,MAAK;AAAA,QAAO,cAAY,MAAA;AAAA,MAAA,GAAe,KAAA,OAAI,EAAG,OAAO,QAAA,MAAA,CAAO,GAAA;AAAA,SAC3FF,UAAA,IAAA,GAAAC,mBAMQE,UAAA,MAAAC,WALgB,KAAA,OAAI,CAAlB,KAAK,SAAI;AADnB,iBAAAJ,UAAA,GAAAC,mBAMQ,QANRC,WAMQ;AAAA,YAJL,KAAK;AAAA,YACL,OAAO,WAAW,GAAG;AAAA,YACtB,eAAY;AAAA,UAAA,GAC6B,EAAA,SAAA,QAAA,EAAA,YAAA,IAAA,eAAA,IAAI,YAAY,QAAS,aAAe,IAAI,MAAI,GAAA,MAAA,EAAA;AAAA;;;;;"}
|
|
@@ -32,7 +32,8 @@ export interface ToggleGroupProps<T extends string = string> extends /* @vue-ign
|
|
|
32
32
|
* - `segmented` — iOS-style connected pill row on a muted track; the active
|
|
33
33
|
* segment lifts to a `background` surface. Forces `isAttached`.
|
|
34
34
|
* - `pill` — individually-separated rounded pills (each item its own detached
|
|
35
|
-
* chip). Forces detached (never attaches).
|
|
35
|
+
* chip). Forces detached (never attaches). Mark a label with `data-toggle-label`
|
|
36
|
+
* to show it beside the pressed icon or on hover and keyboard focus.
|
|
36
37
|
*/
|
|
37
38
|
readonly variant?: ToggleGroupVariant;
|
|
38
39
|
/**
|
|
@@ -90,7 +90,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
90
90
|
// Segmented skeleton: every segment lifts like the active one, so its label bar reads against the muted track.
|
|
91
91
|
isSegmented.value && skeleton.isSkeleton.value && "[&>*]:bg-background!",
|
|
92
92
|
// Pill: fully-rounded detached chips (gap already applied via the non-attached branch above).
|
|
93
|
-
isPill.value &&
|
|
93
|
+
isPill.value && [
|
|
94
|
+
"[&>*]:rounded-full!",
|
|
95
|
+
// Only pills that opt in with a label marker change. On touch, their labels stay inline.
|
|
96
|
+
"[@media(hover:hover)]:[&>[data-pressed=false]:has([data-toggle-label])]:relative",
|
|
97
|
+
"[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:pointer-events-none",
|
|
98
|
+
"[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:invisible",
|
|
99
|
+
"[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:absolute",
|
|
100
|
+
"[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:start-0",
|
|
101
|
+
"[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:top-full",
|
|
102
|
+
"[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:z-10",
|
|
103
|
+
"[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:mt-1",
|
|
104
|
+
"[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:whitespace-nowrap",
|
|
105
|
+
"[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:rounded-md",
|
|
106
|
+
"[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:bg-popover",
|
|
107
|
+
"[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:px-2",
|
|
108
|
+
"[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:py-1",
|
|
109
|
+
"[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:text-popover-foreground",
|
|
110
|
+
"[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:shadow-md",
|
|
111
|
+
"[@media(hover:hover)]:[&>[data-pressed=false]:is(:hover,:focus-visible)_[data-toggle-label]]:visible"
|
|
112
|
+
],
|
|
94
113
|
// Equal-width tiles: every item shares the row/column extent (icon category strip).
|
|
95
114
|
props.equalWidth && "[&>*]:flex-1 [&>*]:basis-0",
|
|
96
115
|
attrs.class
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleGroup.vue.js","sources":["../../../../src/presentation/forms/toggleGroup/ToggleGroup.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\nimport type { Orientation } from '../../../foundation/styles';\nimport type { ToggleGroupVariant, ToggleItemRole, ToggleMode } from './ToggleGroup.variants';\n\n/**\n * Props for the group, generic over the value type `T`.\n *\n * `T` defaults to `string`, so untyped usage keeps the historical `string | null`\n * shape. Pass a string-literal union or string enum\n * (`<ToggleGroup<GradientType> …>`) to have `modelValue` / `@update:modelValue` emit\n * that narrowed type instead — no cast needed at the call site.\n *\n * Divergence from the React original: there, `type` discriminated a `SingleProps<T>`\n * / `MultiProps` union, so single mode saw `T | null` and multi mode `readonly\n * string[]`. Vue's prop compiler flattens a union type into one merged prop set, so\n * `modelValue` / `defaultValue` carry both shapes and the mode still decides which is\n * live at runtime.\n */\nexport interface ToggleGroupProps<T extends string = string> extends /* @vue-ignore */ Omit<\n HTMLAttributes,\n 'defaultValue' | 'onChange'\n> {\n /** The selection cardinality — `Single` for at-most-one, `Multi` for any number. */\n readonly type?: ToggleMode;\n\n /** The controlled value — `T | null` in single mode, a string array in multi mode. */\n readonly modelValue?: T | null | ReadonlyArray<string>;\n\n /** The uncontrolled initial value. Ignored once `modelValue` is set. */\n readonly defaultValue?: T | null | ReadonlyArray<string>;\n\n /** The layout axis of the button row/column. @default Orientation.Horizontal */\n readonly orientation?: Orientation;\n\n /** The attached state — collapses inner radii into a connected row/column. @default true */\n readonly isAttached?: boolean;\n\n /**\n * The visual style.\n * - `default` — standard button row/column (borders + attached radii).\n * - `segmented` — iOS-style connected pill row on a muted track; the active\n * segment lifts to a `background` surface. Forces `isAttached`.\n * - `pill` — individually-separated rounded pills (each item its own detached\n * chip). Forces detached (never attaches).\n */\n readonly variant?: ToggleGroupVariant;\n\n /**\n * The ARIA role wiring.\n * - `group` (default) — `role=\"group\"` of independent toggle buttons.\n * - `tab` — opt into tablist semantics: root renders `role=\"tablist\"` and each\n * item `role=\"tab\"` + `aria-selected`. Pairs naturally with single-select.\n * @default ToggleItemRole.Group\n */\n readonly itemRole?: ToggleItemRole;\n\n /**\n * The equal-width state — lays items out as equal-width tiles (each `flex-1 basis-0`)\n * for an icon category strip where every cell should share the row width. Additive;\n * the default keeps intrinsic item widths.\n * @default false\n */\n readonly equalWidth?: boolean;\n /** Keeps every segment's box and draws their labels as bars, inert; defaults to the nearest `DataRegion`. */\n readonly isSkeleton?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\" generic=\"T extends string = string\">\nimport { useNativeFormReset } from '../UseNativeFormReset';\nimport { computed, provide, useAttrs, useTemplateRef } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn, Orientation as OrientationValue } from '../../../foundation/styles';\nimport { useControlled } from '../../../foundation/state';\nimport { provideSkeletonState, useSkeletonState } from '../../feedback/skeletonState/SkeletonStateContext';\nimport { ToggleGroupKey } from './ToggleGroupContext';\nimport {\n ToggleGroupVariant as ToggleGroupVariantValue,\n ToggleItemRole as ToggleItemRoleValue,\n ToggleMode as ToggleModeValue,\n} from './ToggleGroup.variants';\n\n/* `inheritAttrs: false` so `class` folds into the component's own `cn()` call — plain fallthrough\n appends outside it and loses tailwind-merge conflict resolution. */\n/** Renders a row of toggle buttons sharing one selection — at most one active, or any number. */\ndefineOptions({ name: 'ToggleGroup', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<ToggleGroupProps<T>>(), {\n orientation: OrientationValue.Horizontal,\n isAttached: true,\n variant: ToggleGroupVariantValue.Default,\n itemRole: ToggleItemRoleValue.Group,\n equalWidth: false,\n type: undefined,\n modelValue: undefined,\n defaultValue: undefined,\n isSkeleton: undefined,\n});\n\n/* One flag switches every segment: each keeps its box and draws its label as a bar. */\nconst skeleton = useSkeletonState(() => props.isSkeleton);\nprovideSkeletonState(skeleton);\n\nconst emit = defineEmits<{\n /** Fires when the reader changes the selection — `T | null` in single mode, the array in multi mode. */\n 'update:modelValue': [value: T | null | ReadonlyArray<string>];\n}>();\n\ndefineSlots<{\n /** The `ToggleInput` children whose selection this group coordinates. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\n\nconst mode = computed(() => (props.type === ToggleModeValue.Multi ? ToggleModeValue.Multi : ToggleModeValue.Single));\nconst isSegmented = computed(() => props.variant === ToggleGroupVariantValue.Segmented);\nconst isPill = computed(() => props.variant === ToggleGroupVariantValue.Pill);\nconst isTablist = computed(() => props.itemRole === ToggleItemRoleValue.Tab);\nconst isHorizontal = computed(() => props.orientation === OrientationValue.Horizontal);\n// Segmented is inherently an attached pill row — the muted track only reads as one control when its\n// segments touch. Pill is the inverse — always detached chips, never attached.\nconst attached = computed(() => (isPill.value ? false : isSegmented.value || props.isAttached));\n\nconst singleCtl = useControlled<string | null>({\n controlled: () =>\n mode.value === ToggleModeValue.Single ? (props.modelValue as string | null | undefined) : undefined,\n default: props.type !== ToggleModeValue.Multi ? ((props.defaultValue as string | null | undefined) ?? null) : null,\n onChange: (next) => {\n if (mode.value === ToggleModeValue.Single) emit('update:modelValue', next as T | null);\n },\n});\nconst { value: singleValue, setValue: setSingleValue } = singleCtl;\n\nconst multiCtl = useControlled<ReadonlyArray<string>>({\n controlled: () =>\n mode.value === ToggleModeValue.Multi ? (props.modelValue as ReadonlyArray<string> | undefined) : undefined,\n default:\n props.type === ToggleModeValue.Multi ? ((props.defaultValue as ReadonlyArray<string> | undefined) ?? []) : [],\n onChange: (next) => {\n if (mode.value === ToggleModeValue.Multi) emit('update:modelValue', next);\n },\n});\nconst { value: multiValue, setValue: setMultiValue } = multiCtl;\n\nfunction isPressed(childValue: string | undefined): boolean {\n if (childValue === undefined) return false;\n return mode.value === ToggleModeValue.Single\n ? singleValue.value === childValue\n : multiValue.value.includes(childValue);\n}\n\nfunction togglePressed(childValue: string | undefined): void {\n if (childValue === undefined) return;\n if (mode.value === ToggleModeValue.Single) {\n setSingleValue(singleValue.value === childValue ? null : childValue);\n } else {\n setMultiValue(\n multiValue.value.includes(childValue)\n ? multiValue.value.filter((entry) => entry !== childValue)\n : [...multiValue.value, childValue],\n );\n }\n}\n\n/* Each `ToggleInput` child reads its own slice off this — the provide/inject replacement for the\n original's `Children.map` + `cloneElement`. `itemRole` is a live getter, not a snapshot. */\nprovide(ToggleGroupKey, {\n isPressed,\n toggle: togglePressed,\n get itemRole() {\n return props.itemRole;\n },\n});\n\nconst OwnedAttributes: ReadonlySet<string> = new Set(['class']);\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key))),\n);\n\nconst rootClass = computed(() =>\n cn(\n 'inline-flex',\n isHorizontal.value ? 'flex-row' : 'flex-col',\n attached.value\n ? isHorizontal.value\n ? '[&>*]:rounded-none [&>*:first-child]:rounded-l-md [&>*:last-child]:rounded-r-md [&>*:not(:first-child)]:-ml-px'\n : '[&>*]:rounded-none [&>*:first-child]:rounded-t-md [&>*:last-child]:rounded-b-md [&>*:not(:first-child)]:-mt-px'\n : 'gap-2',\n // Segmented: muted track + reset segment chrome; active segment lifts to a `background` surface.\n isSegmented.value && [\n 'rounded-md bg-muted p-1',\n '[&>*]:rounded-md! [&>*]:!ml-0 [&>*]:border-transparent! [&>*]:bg-transparent!',\n '[&>*[data-pressed=true]]:bg-background! [&>*[data-pressed=true]]:text-foreground! [&>*[data-pressed=true]]:shadow-sm',\n ],\n // Segmented skeleton: every segment lifts like the active one, so its label bar reads against the muted track.\n isSegmented.value && skeleton.isSkeleton.value && '[&>*]:bg-background!',\n // Pill: fully-rounded detached chips (gap already applied via the non-attached branch above).\n isPill.value && '[&>*]:rounded-full!',\n // Equal-width tiles: every item shares the row/column extent (icon category strip).\n props.equalWidth && '[&>*]:flex-1 [&>*]:basis-0',\n attrs.class as ClassValue,\n ),\n);\n\nconst root = useTemplateRef<HTMLDivElement>('root');\n\n/** The rendered element — the Vue stand-in for the React original's forwarded ref. */\ndefineExpose({ el: root });\n\nconst formResetAnchor = useTemplateRef<HTMLInputElement>('formResetAnchor');\nconst formResetRevision = useNativeFormReset(formResetAnchor, () => {\n if (props.type === ToggleModeValue.Multi) multiCtl.reset();\n else singleCtl.reset();\n});\n</script>\n\n<template>\n <!-- Coordinates a row/column of ToggleInput children — `type=\"single\" | \"multi\"`. -->\n <div\n :key=\"formResetRevision\"\n ref=\"root\"\n :role=\"isTablist ? 'tablist' : 'group'\"\n :aria-orientation=\"isTablist ? orientation : undefined\"\n :data-orientation=\"orientation\"\n :data-skeleton=\"skeleton.isSkeleton.value || undefined\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n >\n <slot />\n <input\n ref=\"formResetAnchor\"\n type=\"hidden\"\n :form=\"typeof $attrs.form === 'string' ? $attrs.form : undefined\"\n aria-hidden=\"true\"\n />\n </div>\n</template>\n"],"names":["ToggleModeValue","ToggleGroupVariantValue","ToggleItemRoleValue","OrientationValue","_openBlock","_createElementBlock","_mergeProps","_unref","_renderSlot","_createElementVNode","$attrs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAwFA,UAAM,QAAQ;AAad,UAAM,WAAW,iBAAiB,MAAM,MAAM,UAAU;AACxD,yBAAqB,QAAQ;AAE7B,UAAM,OAAO;AAUb,UAAM,QAAQ,SAAA;AAEd,UAAM,OAAO,SAAS,MAAO,MAAM,SAASA,WAAgB,QAAQA,WAAgB,QAAQA,WAAgB,MAAO;AAC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QAAS,YAAA;AAAA,QACf,oBAAkB,UAAA,QAAY,QAAA,cAAc;AAAA,QAC5C,oBAAkB,QAAA;AAAA,QAClB,iBAAeA,MAAA,QAAA,EAAS,WAAW,SAAS;AAAA,QAC5C,OAAO,UAAA;AAAA,MAAA,GACA,iBAAA,KAAgB,GAAA;AAAA,QAExBC,WAAQ,KAAA,QAAA,SAAA;AAAA,QACRC,mBAKE,SAAA;AAAA,mBAJI;AAAA,UAAJ,KAAI;AAAA,UACJ,MAAK;AAAA,UACJ,MAAI,OAASC,YAAO,oBAAoBA,KAAAA,OAAO,OAAO;AAAA,UACvD,eAAY;AAAA,QAAA;;;;;"}
|
|
1
|
+
{"version":3,"file":"ToggleGroup.vue.js","sources":["../../../../src/presentation/forms/toggleGroup/ToggleGroup.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\nimport type { Orientation } from '../../../foundation/styles';\nimport type { ToggleGroupVariant, ToggleItemRole, ToggleMode } from './ToggleGroup.variants';\n\n/**\n * Props for the group, generic over the value type `T`.\n *\n * `T` defaults to `string`, so untyped usage keeps the historical `string | null`\n * shape. Pass a string-literal union or string enum\n * (`<ToggleGroup<GradientType> …>`) to have `modelValue` / `@update:modelValue` emit\n * that narrowed type instead — no cast needed at the call site.\n *\n * Divergence from the React original: there, `type` discriminated a `SingleProps<T>`\n * / `MultiProps` union, so single mode saw `T | null` and multi mode `readonly\n * string[]`. Vue's prop compiler flattens a union type into one merged prop set, so\n * `modelValue` / `defaultValue` carry both shapes and the mode still decides which is\n * live at runtime.\n */\nexport interface ToggleGroupProps<T extends string = string> extends /* @vue-ignore */ Omit<\n HTMLAttributes,\n 'defaultValue' | 'onChange'\n> {\n /** The selection cardinality — `Single` for at-most-one, `Multi` for any number. */\n readonly type?: ToggleMode;\n\n /** The controlled value — `T | null` in single mode, a string array in multi mode. */\n readonly modelValue?: T | null | ReadonlyArray<string>;\n\n /** The uncontrolled initial value. Ignored once `modelValue` is set. */\n readonly defaultValue?: T | null | ReadonlyArray<string>;\n\n /** The layout axis of the button row/column. @default Orientation.Horizontal */\n readonly orientation?: Orientation;\n\n /** The attached state — collapses inner radii into a connected row/column. @default true */\n readonly isAttached?: boolean;\n\n /**\n * The visual style.\n * - `default` — standard button row/column (borders + attached radii).\n * - `segmented` — iOS-style connected pill row on a muted track; the active\n * segment lifts to a `background` surface. Forces `isAttached`.\n * - `pill` — individually-separated rounded pills (each item its own detached\n * chip). Forces detached (never attaches). Mark a label with `data-toggle-label`\n * to show it beside the pressed icon or on hover and keyboard focus.\n */\n readonly variant?: ToggleGroupVariant;\n\n /**\n * The ARIA role wiring.\n * - `group` (default) — `role=\"group\"` of independent toggle buttons.\n * - `tab` — opt into tablist semantics: root renders `role=\"tablist\"` and each\n * item `role=\"tab\"` + `aria-selected`. Pairs naturally with single-select.\n * @default ToggleItemRole.Group\n */\n readonly itemRole?: ToggleItemRole;\n\n /**\n * The equal-width state — lays items out as equal-width tiles (each `flex-1 basis-0`)\n * for an icon category strip where every cell should share the row width. Additive;\n * the default keeps intrinsic item widths.\n * @default false\n */\n readonly equalWidth?: boolean;\n /** Keeps every segment's box and draws their labels as bars, inert; defaults to the nearest `DataRegion`. */\n readonly isSkeleton?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\" generic=\"T extends string = string\">\nimport { useNativeFormReset } from '../UseNativeFormReset';\nimport { computed, provide, useAttrs, useTemplateRef } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn, Orientation as OrientationValue } from '../../../foundation/styles';\nimport { useControlled } from '../../../foundation/state';\nimport { provideSkeletonState, useSkeletonState } from '../../feedback/skeletonState/SkeletonStateContext';\nimport { ToggleGroupKey } from './ToggleGroupContext';\nimport {\n ToggleGroupVariant as ToggleGroupVariantValue,\n ToggleItemRole as ToggleItemRoleValue,\n ToggleMode as ToggleModeValue,\n} from './ToggleGroup.variants';\n\n/* `inheritAttrs: false` so `class` folds into the component's own `cn()` call — plain fallthrough\n appends outside it and loses tailwind-merge conflict resolution. */\n/** Renders a row of toggle buttons sharing one selection — at most one active, or any number. */\ndefineOptions({ name: 'ToggleGroup', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<ToggleGroupProps<T>>(), {\n orientation: OrientationValue.Horizontal,\n isAttached: true,\n variant: ToggleGroupVariantValue.Default,\n itemRole: ToggleItemRoleValue.Group,\n equalWidth: false,\n type: undefined,\n modelValue: undefined,\n defaultValue: undefined,\n isSkeleton: undefined,\n});\n\n/* One flag switches every segment: each keeps its box and draws its label as a bar. */\nconst skeleton = useSkeletonState(() => props.isSkeleton);\nprovideSkeletonState(skeleton);\n\nconst emit = defineEmits<{\n /** Fires when the reader changes the selection — `T | null` in single mode, the array in multi mode. */\n 'update:modelValue': [value: T | null | ReadonlyArray<string>];\n}>();\n\ndefineSlots<{\n /** The `ToggleInput` children whose selection this group coordinates. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\n\nconst mode = computed(() => (props.type === ToggleModeValue.Multi ? ToggleModeValue.Multi : ToggleModeValue.Single));\nconst isSegmented = computed(() => props.variant === ToggleGroupVariantValue.Segmented);\nconst isPill = computed(() => props.variant === ToggleGroupVariantValue.Pill);\nconst isTablist = computed(() => props.itemRole === ToggleItemRoleValue.Tab);\nconst isHorizontal = computed(() => props.orientation === OrientationValue.Horizontal);\n// Segmented is inherently an attached pill row — the muted track only reads as one control when its\n// segments touch. Pill is the inverse — always detached chips, never attached.\nconst attached = computed(() => (isPill.value ? false : isSegmented.value || props.isAttached));\n\nconst singleCtl = useControlled<string | null>({\n controlled: () =>\n mode.value === ToggleModeValue.Single ? (props.modelValue as string | null | undefined) : undefined,\n default: props.type !== ToggleModeValue.Multi ? ((props.defaultValue as string | null | undefined) ?? null) : null,\n onChange: (next) => {\n if (mode.value === ToggleModeValue.Single) emit('update:modelValue', next as T | null);\n },\n});\nconst { value: singleValue, setValue: setSingleValue } = singleCtl;\n\nconst multiCtl = useControlled<ReadonlyArray<string>>({\n controlled: () =>\n mode.value === ToggleModeValue.Multi ? (props.modelValue as ReadonlyArray<string> | undefined) : undefined,\n default:\n props.type === ToggleModeValue.Multi ? ((props.defaultValue as ReadonlyArray<string> | undefined) ?? []) : [],\n onChange: (next) => {\n if (mode.value === ToggleModeValue.Multi) emit('update:modelValue', next);\n },\n});\nconst { value: multiValue, setValue: setMultiValue } = multiCtl;\n\nfunction isPressed(childValue: string | undefined): boolean {\n if (childValue === undefined) return false;\n return mode.value === ToggleModeValue.Single\n ? singleValue.value === childValue\n : multiValue.value.includes(childValue);\n}\n\nfunction togglePressed(childValue: string | undefined): void {\n if (childValue === undefined) return;\n if (mode.value === ToggleModeValue.Single) {\n setSingleValue(singleValue.value === childValue ? null : childValue);\n } else {\n setMultiValue(\n multiValue.value.includes(childValue)\n ? multiValue.value.filter((entry) => entry !== childValue)\n : [...multiValue.value, childValue],\n );\n }\n}\n\n/* Each `ToggleInput` child reads its own slice off this — the provide/inject replacement for the\n original's `Children.map` + `cloneElement`. `itemRole` is a live getter, not a snapshot. */\nprovide(ToggleGroupKey, {\n isPressed,\n toggle: togglePressed,\n get itemRole() {\n return props.itemRole;\n },\n});\n\nconst OwnedAttributes: ReadonlySet<string> = new Set(['class']);\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key))),\n);\n\nconst rootClass = computed(() =>\n cn(\n 'inline-flex',\n isHorizontal.value ? 'flex-row' : 'flex-col',\n attached.value\n ? isHorizontal.value\n ? '[&>*]:rounded-none [&>*:first-child]:rounded-l-md [&>*:last-child]:rounded-r-md [&>*:not(:first-child)]:-ml-px'\n : '[&>*]:rounded-none [&>*:first-child]:rounded-t-md [&>*:last-child]:rounded-b-md [&>*:not(:first-child)]:-mt-px'\n : 'gap-2',\n // Segmented: muted track + reset segment chrome; active segment lifts to a `background` surface.\n isSegmented.value && [\n 'rounded-md bg-muted p-1',\n '[&>*]:rounded-md! [&>*]:!ml-0 [&>*]:border-transparent! [&>*]:bg-transparent!',\n '[&>*[data-pressed=true]]:bg-background! [&>*[data-pressed=true]]:text-foreground! [&>*[data-pressed=true]]:shadow-sm',\n ],\n // Segmented skeleton: every segment lifts like the active one, so its label bar reads against the muted track.\n isSegmented.value && skeleton.isSkeleton.value && '[&>*]:bg-background!',\n // Pill: fully-rounded detached chips (gap already applied via the non-attached branch above).\n isPill.value && [\n '[&>*]:rounded-full!',\n // Only pills that opt in with a label marker change. On touch, their labels stay inline.\n '[@media(hover:hover)]:[&>[data-pressed=false]:has([data-toggle-label])]:relative',\n '[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:pointer-events-none',\n '[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:invisible',\n '[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:absolute',\n '[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:start-0',\n '[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:top-full',\n '[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:z-10',\n '[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:mt-1',\n '[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:whitespace-nowrap',\n '[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:rounded-md',\n '[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:bg-popover',\n '[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:px-2',\n '[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:py-1',\n '[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:text-popover-foreground',\n '[@media(hover:hover)]:[&>[data-pressed=false]_[data-toggle-label]]:shadow-md',\n '[@media(hover:hover)]:[&>[data-pressed=false]:is(:hover,:focus-visible)_[data-toggle-label]]:visible',\n ],\n // Equal-width tiles: every item shares the row/column extent (icon category strip).\n props.equalWidth && '[&>*]:flex-1 [&>*]:basis-0',\n attrs.class as ClassValue,\n ),\n);\n\nconst root = useTemplateRef<HTMLDivElement>('root');\n\n/** The rendered element — the Vue stand-in for the React original's forwarded ref. */\ndefineExpose({ el: root });\n\nconst formResetAnchor = useTemplateRef<HTMLInputElement>('formResetAnchor');\nconst formResetRevision = useNativeFormReset(formResetAnchor, () => {\n if (props.type === ToggleModeValue.Multi) multiCtl.reset();\n else singleCtl.reset();\n});\n</script>\n\n<template>\n <!-- Coordinates a row/column of ToggleInput children — `type=\"single\" | \"multi\"`. -->\n <div\n :key=\"formResetRevision\"\n ref=\"root\"\n :role=\"isTablist ? 'tablist' : 'group'\"\n :aria-orientation=\"isTablist ? orientation : undefined\"\n :data-orientation=\"orientation\"\n :data-skeleton=\"skeleton.isSkeleton.value || undefined\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n >\n <slot />\n <input\n ref=\"formResetAnchor\"\n type=\"hidden\"\n :form=\"typeof $attrs.form === 'string' ? $attrs.form : undefined\"\n aria-hidden=\"true\"\n />\n </div>\n</template>\n"],"names":["ToggleModeValue","ToggleGroupVariantValue","ToggleItemRoleValue","OrientationValue","_openBlock","_createElementBlock","_mergeProps","_unref","_renderSlot","_createElementVNode","$attrs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAyFA,UAAM,QAAQ;AAad,UAAM,WAAW,iBAAiB,MAAM,MAAM,UAAU;AACxD,yBAAqB,QAAQ;AAE7B,UAAM,OAAO;AAUb,UAAM,QAAQ,SAAA;AAEd,UAAM,OAAO,SAAS,MAAO,MAAM,SAASA,WAAgB,QAAQA,WAAgB,QAAQA,WAAgB,MAAO;AACnH,UAAM,cAAc,SAAS,MAAM,MAAM,YAAYC,mBAAwB,SAAS;AACtF,UAAM,SAAS,SAAS,MAAM,MAAM,YAAYA,mBAAwB,IAAI;AAC5E,UAAM,YAAY,SAAS,MAAM,MAAM,aAAaC,eAAoB,GAAG;AAC3E,UAAM,eAAe,SAAS,MAAM,MAAM,gBAAgBC,YAAiB,UAAU;AAGrF,UAA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AY,QAAA,cAAc;AAAA,QAC5C,oBAAkB,QAAA;AAAA,QAClB,iBAAeA,MAAA,QAAA,EAAS,WAAW,SAAS;AAAA,QAC5C,OAAO,UAAA;AAAA,MAAA,GACA,iBAAA,KAAgB,GAAA;AAAA,QAExBC,WAAQ,KAAA,QAAA,SAAA;AAAA,QACRC,mBAKE,SAAA;AAAA,mBAJI;AAAA,UAAJ,KAAI;AAAA,UACJ,MAAK;AAAA,UACJ,MAAI,OAASC,YAAO,oBAAoBA,KAAAA,OAAO,OAAO;AAAA,UACvD,eAAY;AAAA,QAAA;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navbar.vue.js","sources":["../../../../src/presentation/layout/navbar/Navbar.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\nimport type { SurfaceTone } from '../../../foundation/styles';\nimport type { ContainerLayoutProps } from '../containerLayout';\nimport type { NavbarElement, NavbarHeight, NavbarOrientation, NavbarVariant } from './Navbar.variants';\n\nexport interface NavbarProps {\n /**\n * The element: `header` (a banner landmark) or `div` (none). Default: `div` inside an `AppShellHeader`, which is\n * already the banner, and `header` elsewhere.\n */\n readonly as?: NavbarElement;\n /** Native attributes forwarded to the inner `ContainerLayout`; its `class` is merged last. */\n readonly containerAttrs?: HTMLAttributes;\n /** Convenience class for the inner `ContainerLayout`, merged after `containerAttrs.class`. */\n readonly containerClass?: HTMLAttributes['class'];\n /** The max-width of the inner centered `ContainerLayout`. Passthrough to `ContainerLayout.size`. Default `lg`. */\n readonly containerSize?: ContainerLayoutProps['size'];\n /** The band height. Default `md`. */\n readonly height?: NavbarHeight;\n /** The sticky pinning of the bar to the top of the scroll container. Default `false` (non-sticky). */\n readonly isSticky?: boolean;\n /** @deprecated Use `isSticky`; this alias is removed next release. */\n readonly sticky?: boolean;\n /**\n * The tinted background tone for the band — applies the shadow-less `subtle`\n * surface treatment. Omit for a transparent bar (relies on `hasBorder` / page bg).\n */\n readonly tone?: SurfaceTone;\n /** The bottom border under the bar. Default `true`. */\n readonly hasBorder?: boolean;\n /** @deprecated Use `hasBorder`; this alias is removed next release. */\n readonly bordered?: boolean;\n /** Which way the bar runs: a full-width top bar or a full-height side rail. Default `horizontal`. */\n readonly orientation?: NavbarOrientation;\n /** The surface: `solid`, `glass` or `transparent`. A `tone` overrides it. Default `solid`. */\n readonly variant?: NavbarVariant;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, inject, provide, useAttrs, useSlots, useTemplateRef } from 'vue';\nimport { cn, surfaceVariants } from '../../../foundation/styles';\nimport ContainerLayout from '../containerLayout/ContainerLayout.vue';\nimport {\n NavbarElement as Element,\n NavbarOrientation as Orientation,\n NavbarSurfaceClass,\n navbarVariants,\n} from './Navbar.variants';\nimport { bannerHostKey, navbarContextKey } from './NavbarContext';\n\n/**\n * Renders a lightweight header band (`<header>`) with `start` / `center` / `end` slots\n * laid out in a row inside a centered `ContainerLayout`. The everyday \"navbar +\n * centered content\" need that `AppShell` (a 5-slot dashboard grid w/ sidebar)\n * overshoots. Non-sticky by default; pass `isSticky` to pin it.\n *\n * Inside an `AppShellHeader` it renders a plain row filling the bar: the host is the banner and owns the band's\n * height, border and surface, so the bar adds none of its own unless the props ask for them.\n */\ndefineOptions({ name: 'Navbar', inheritAttrs: false });\n\n/** React's `start` / `center` / `end` / `children` ReactNode props are content regions — slots in Vue. */\ndefineSlots<{\n /** The leading slot — laid out at the start of the row (brand / logo / nav links). */\n start?(): unknown;\n /** The centre slot — laid out in the middle of the row (search / primary nav). */\n center?(): unknown;\n /** The trailing slot — laid out at the end of the row (actions / avatar / CTA). */\n end?(): unknown;\n /**\n * The raw row content — replaces the `start` / `center` / `end` slot layout when\n * provided. Use for fully custom bars.\n */\n default?(): unknown;\n}>();\n\nconst props = withDefaults(defineProps<NavbarProps>(), {\n as: undefined,\n isSticky: undefined,\n sticky: undefined,\n hasBorder: undefined,\n bordered: undefined,\n orientation: Orientation.Horizontal,\n variant: undefined,\n});\n\nconst isVertical = computed(() => props.orientation === Orientation.Vertical);\n\n/** True inside a host that already is the banner — `AppShellHeader`. */\nconst isHosted = inject(bannerHostKey, false);\n\nconst tag = computed<Element>(() => props.as ?? (isHosted ? Element.Div : Element.Header));\n\nprovide(navbarContextKey, { orientation: computed(() => props.orientation) });\n\nconst attrs = useAttrs();\nconst slots = useSlots();\nconst el = useTemplateRef<HTMLElement>('el');\n\nconst classes = computed(() =>\n cn(\n navbarVariants({\n orientation: props.orientation,\n sticky: props.isSticky ?? props.sticky ?? false,\n height: props.height,\n }),\n /* A hosted bar fills the host's row at the host's height. */\n isHosted && 'min-w-0 flex-1 self-stretch',\n isHosted && props.height === undefined && 'h-auto',\n (props.hasBorder ?? props.bordered ?? !isHosted) &&\n (isVertical.value ? 'border-e border-border' : 'border-b border-border'),\n props.tone\n ? surfaceVariants({ variant: 'subtle', tone: props.tone, radius: 'none' })\n : NavbarSurfaceClass[props.variant ?? (isHosted ? 'transparent' : 'solid')],\n attrs.class as string | undefined,\n ),\n);\n\n/** Push `end` to the trailing edge when there's no centre slot to absorb the slack. */\nconst endClasses = computed(() => cn('flex min-w-0 items-center gap-3', !slots.center && 'ml-auto'));\n\n/** Inner-container classes with consumer spacing taking precedence. */\nconst containerClasses = computed(() =>\n cn('flex h-full items-center gap-3', props.containerAttrs?.class as string | undefined, props.containerClass),\n);\n\n/** Rail classes: a column from the brand at the top to the account at the foot, consumer spacing last. */\nconst railClasses = computed(() =>\n cn(\n 'flex h-full min-h-0 flex-col items-stretch gap-3 p-3',\n props.containerAttrs?.class as string | undefined,\n props.containerClass,\n ),\n);\n\n/** Inner-container attributes except `class`, which is merged through `cn`. */\nconst containerRest = computed(() => {\n const { class: _class, ...others } = props.containerAttrs ?? {};\n return others;\n});\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <component :is=\"tag\" v-if=\"isVertical\" ref=\"el\" v-bind=\"rest\" :class=\"classes\">\n <div v-bind=\"containerRest\" :class=\"railClasses\">\n <slot v-if=\"$slots.default\" />\n <template v-else>\n <div v-if=\"$slots.start\" class=\"flex min-w-0 shrink-0 items-center gap-3\">\n <slot name=\"start\" />\n </div>\n <div v-if=\"$slots.center\" class=\"flex min-h-0 flex-1 flex-col gap-1 overflow-y-auto\">\n <slot name=\"center\" />\n </div>\n <div v-if=\"$slots.end\" class=\"mt-auto flex min-w-0 shrink-0 items-center gap-3\">\n <slot name=\"end\" />\n </div>\n </template>\n </div>\n </component>\n <component :is=\"tag\" v-else ref=\"el\" v-bind=\"rest\" :class=\"classes\">\n <ContainerLayout v-bind=\"containerRest\" :size=\"props.containerSize\" :class=\"containerClasses\">\n <slot v-if=\"$slots.default\" />\n <template v-else>\n <div v-if=\"$slots.start\" class=\"flex min-w-0 items-center gap-3\">\n <slot name=\"start\" />\n </div>\n <div v-if=\"$slots.center\" class=\"flex min-w-0 flex-1 items-center justify-center gap-3\">\n <slot name=\"center\" />\n </div>\n <div v-if=\"$slots.end\" :class=\"endClasses\">\n <slot name=\"end\" />\n </div>\n </template>\n </ContainerLayout>\n </component>\n</template>\n"],"names":["Orientation","Element","_createBlock","_resolveDynamicComponent","_mergeProps","_createElementVNode","$slots","_renderSlot","_createElementBlock","_Fragment","_openBlock","_createVNode","ContainerLayout"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8EA,UAAM,QAAQ;AAUd,UAAM,aAAa,SAAS,MAAM,MAAM,gBAAgBA,kBAAY,QAAQ;AAG5E,UAAM,WAAW,OAAO,eAAe,KAAK;AAE5C,UAAM,MAAM,SAAkB,MAAM,MAAM,OAAO,WAAWC,cAAQ,MAAMA,cAAQ,OAAO;AAEzF,YAAQ,kBAAkB,EAAE,aAAa,SAAS,MAAM,MAAM,WAAW,GAAG;AAE5E,UAAM,QAAQ,SAAA;AACd,UAAM,QAAQ,SAAA;AACd,UAAM,K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;AAAA,gBAAA;kBACvCD,WAAmB,KAAA,QAAA,KAAA;AAAA,gBAAA;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"Navbar.vue.js","sources":["../../../../src/presentation/layout/navbar/Navbar.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\nimport type { SurfaceTone } from '../../../foundation/styles';\nimport type { ContainerLayoutProps } from '../containerLayout';\nimport type { NavbarElement, NavbarHeight, NavbarOrientation, NavbarVariant } from './Navbar.variants';\n\nexport interface NavbarProps {\n /**\n * The element: `header` (a banner landmark) or `div` (none). Default: `div` inside an `AppShellHeader`, which is\n * already the banner, and `header` elsewhere.\n */\n readonly as?: NavbarElement;\n /** Native attributes forwarded to the inner `ContainerLayout`; its `class` is merged last. */\n readonly containerAttrs?: HTMLAttributes;\n /** Convenience class for the inner `ContainerLayout`, merged after `containerAttrs.class`. */\n readonly containerClass?: HTMLAttributes['class'];\n /** The max-width of the inner centered `ContainerLayout`. Passthrough to `ContainerLayout.size`. Default `lg`. */\n readonly containerSize?: ContainerLayoutProps['size'];\n /** The band height. Default `md`. */\n readonly height?: NavbarHeight;\n /** The sticky pinning of the bar to the top of the scroll container. Default `false` (non-sticky). */\n readonly isSticky?: boolean;\n /** @deprecated Use `isSticky`; this alias is removed next release. */\n readonly sticky?: boolean;\n /**\n * The tinted background tone for the band — applies the shadow-less `subtle`\n * surface treatment. Omit for a transparent bar (relies on `hasBorder` / page bg).\n */\n readonly tone?: SurfaceTone;\n /** The bottom border under the bar. Default `true`. */\n readonly hasBorder?: boolean;\n /** @deprecated Use `hasBorder`; this alias is removed next release. */\n readonly bordered?: boolean;\n /** Which way the bar runs: a full-width top bar or a full-height side rail. Default `horizontal`. */\n readonly orientation?: NavbarOrientation;\n /** The surface: `solid`, `glass` or `transparent`. A `tone` overrides it. Default `solid`. */\n readonly variant?: NavbarVariant;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, inject, provide, useAttrs, useSlots, useTemplateRef } from 'vue';\nimport { cn, surfaceVariants } from '../../../foundation/styles';\nimport ContainerLayout from '../containerLayout/ContainerLayout.vue';\nimport {\n NavbarElement as Element,\n NavbarOrientation as Orientation,\n NavbarSurfaceClass,\n navbarVariants,\n} from './Navbar.variants';\nimport { bannerHostKey, navbarContextKey } from './NavbarContext';\n\n/**\n * Renders a lightweight header band (`<header>`) with `start` / `center` / `end` slots\n * laid out in a row inside a centered `ContainerLayout`. The everyday \"navbar +\n * centered content\" need that `AppShell` (a 5-slot dashboard grid w/ sidebar)\n * overshoots. Non-sticky by default; pass `isSticky` to pin it.\n *\n * Inside an `AppShellHeader` it renders a plain row filling the bar: the host is the banner and owns the band's\n * height, border and surface, so the bar adds none of its own unless the props ask for them.\n */\ndefineOptions({ name: 'Navbar', inheritAttrs: false });\n\n/** React's `start` / `center` / `end` / `children` ReactNode props are content regions — slots in Vue. */\ndefineSlots<{\n /** The leading slot — laid out at the start of the row (brand / logo / nav links). */\n start?(): unknown;\n /** The centre slot — laid out in the middle of the row (search / primary nav). */\n center?(): unknown;\n /** The trailing slot — laid out at the end of the row (actions / avatar / CTA). */\n end?(): unknown;\n /**\n * The raw row content — replaces the `start` / `center` / `end` slot layout when\n * provided. Use for fully custom bars.\n */\n default?(): unknown;\n}>();\n\nconst props = withDefaults(defineProps<NavbarProps>(), {\n as: undefined,\n isSticky: undefined,\n sticky: undefined,\n hasBorder: undefined,\n bordered: undefined,\n orientation: Orientation.Horizontal,\n variant: undefined,\n});\n\nconst isVertical = computed(() => props.orientation === Orientation.Vertical);\n\n/** True inside a host that already is the banner — `AppShellHeader`. */\nconst isHosted = inject(bannerHostKey, false);\n\nconst tag = computed<Element>(() => props.as ?? (isHosted ? Element.Div : Element.Header));\n\nprovide(navbarContextKey, { orientation: computed(() => props.orientation) });\n\nconst attrs = useAttrs();\nconst slots = useSlots();\nconst el = useTemplateRef<HTMLElement>('el');\n\nconst classes = computed(() =>\n cn(\n navbarVariants({\n orientation: props.orientation,\n sticky: props.isSticky ?? props.sticky ?? false,\n height: props.height,\n }),\n /* A hosted bar fills the host's row at the host's height. */\n isHosted && 'min-w-0 flex-1 self-stretch',\n isHosted && props.height === undefined && 'h-auto',\n (props.hasBorder ?? props.bordered ?? !isHosted) &&\n (isVertical.value ? 'border-e border-border' : 'border-b border-border'),\n props.tone\n ? surfaceVariants({ variant: 'subtle', tone: props.tone, radius: 'none' })\n : NavbarSurfaceClass[props.variant ?? (isHosted ? 'transparent' : 'solid')],\n attrs.class as string | undefined,\n ),\n);\n\n/** Push `end` to the trailing edge when there's no centre slot to absorb the slack. */\nconst endClasses = computed(() => cn('flex min-w-0 items-center gap-3', !slots.center && 'ml-auto'));\n\n/** Inner-container classes with consumer spacing taking precedence. */\nconst containerClasses = computed(() =>\n cn('flex h-full items-center gap-3', props.containerAttrs?.class as string | undefined, props.containerClass),\n);\n\n/** Rail classes: a column from the brand at the top to the account at the foot, consumer spacing last. */\nconst railClasses = computed(() =>\n cn(\n 'flex h-full min-h-0 flex-col items-stretch gap-3 p-3',\n props.containerAttrs?.class as string | undefined,\n props.containerClass,\n ),\n);\n\n/** Inner-container attributes except `class`, which is merged through `cn`. */\nconst containerRest = computed(() => {\n const { class: _class, ...others } = props.containerAttrs ?? {};\n return others;\n});\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <component :is=\"tag\" v-if=\"isVertical\" ref=\"el\" v-bind=\"rest\" :class=\"classes\">\n <div v-bind=\"containerRest\" :class=\"railClasses\">\n <slot v-if=\"$slots.default\" />\n <template v-else>\n <div v-if=\"$slots.start\" class=\"flex min-w-0 shrink-0 items-center gap-3\">\n <slot name=\"start\" />\n </div>\n <div v-if=\"$slots.center\" class=\"flex min-h-0 flex-1 flex-col gap-1 overflow-y-auto\">\n <slot name=\"center\" />\n </div>\n <div v-if=\"$slots.end\" class=\"mt-auto flex min-w-0 shrink-0 items-center gap-3\">\n <slot name=\"end\" />\n </div>\n </template>\n </div>\n </component>\n <component :is=\"tag\" v-else ref=\"el\" v-bind=\"rest\" :class=\"classes\">\n <ContainerLayout v-bind=\"containerRest\" :size=\"props.containerSize\" :class=\"containerClasses\">\n <slot v-if=\"$slots.default\" />\n <template v-else>\n <div v-if=\"$slots.start\" class=\"flex min-w-0 items-center gap-3\">\n <slot name=\"start\" />\n </div>\n <div v-if=\"$slots.center\" class=\"flex min-w-0 flex-1 items-center justify-center gap-3\">\n <slot name=\"center\" />\n </div>\n <div v-if=\"$slots.end\" :class=\"endClasses\">\n <slot name=\"end\" />\n </div>\n </template>\n </ContainerLayout>\n </component>\n</template>\n"],"names":["Orientation","Element","_createBlock","_resolveDynamicComponent","_mergeProps","_createElementVNode","$slots","_renderSlot","_createElementBlock","_Fragment","_openBlock","_createVNode","ContainerLayout"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8EA,UAAM,QAAQ;AAUd,UAAM,aAAa,SAAS,MAAM,MAAM,gBAAgBA,kBAAY,QAAQ;AAG5E,UAAM,WAAW,OAAO,eAAe,KAAK;AAE5C,UAAM,MAAM,SAAkB,MAAM,MAAM,OAAO,WAAWC,cAAQ,MAAMA,cAAQ,OAAO;AAEzF,YAAQ,kBAAkB,EAAE,aAAa,SAAS,MAAM,MAAM,WAAW,GAAG;AAE5E,UAAM,QAAQ,SAAA;AACd,UAAM,QAAQ,SAAA;AACd,UAAM,KAAK,eAA4B,IAAI;AAE3C,UAAM,UAAU;AAAA,MAAS,MACvB;AAAA,QACE,eAAe;AAAA,UACb,aAAa,MAAM;AAAA,UACnB,QAAQ,MAAM,YAAY,MAAM,UAAU;AAAA,UAC1C,QAAQ,MAAM;AAAA,QAAA,CACf;AAAA;AAAA,QAED,YAAY;AAAA,QACZ,YAAY,MAAM,WAAW,UAAa;AAAA,SACzC,MAAM,aAAa,MAAM,YAAY,CAAC,cACpC,WAAW,QAAQ,2BAA2B;AA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