@vizejs/fresco 0.720.0 → 0.721.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -218,8 +218,8 @@ declare const Box: import("vue").DefineComponent<import("vue").ExtractPropTypes<
218
218
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
219
219
  //#endregion
220
220
  //#region src/components/FrescoSpacer.vue.d.ts
221
- declare const __VLS_export$23: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
222
- declare const _default$23: typeof __VLS_export$23;
221
+ declare const __VLS_export$28: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
222
+ declare const _default$28: typeof __VLS_export$28;
223
223
  //#endregion
224
224
  //#region src/components/layout-primitive-types.d.ts
225
225
  interface DividerProps {
@@ -249,8 +249,8 @@ interface StackProps {
249
249
  type ConvenienceStackProps = Pick<StackProps, "gap" | "align" | "justify">;
250
250
  //#endregion
251
251
  //#region src/components/FrescoDivider.vue.d.ts
252
- declare const __VLS_export$22: import("@vue/runtime-core").DefineComponent<DividerProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<DividerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
253
- declare const _default$22: typeof __VLS_export$22;
252
+ declare const __VLS_export$27: import("@vue/runtime-core").DefineComponent<DividerProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<DividerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
253
+ declare const _default$27: typeof __VLS_export$27;
254
254
  //#endregion
255
255
  //#region src/components/FrescoStack.vue.d.ts
256
256
  declare const __VLS_template$3: () => {
@@ -260,8 +260,8 @@ declare const __VLS_template$3: () => {
260
260
  };
261
261
  type __VLS_Slots$9 = ReturnType<typeof __VLS_template$3>['__VLS_Slots'];
262
262
  declare const __VLS_base$9: import("@vue/runtime-core").DefineComponent<StackProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<StackProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
263
- declare const __VLS_export$21: __VLS_WithSlots$9<typeof __VLS_base$9, __VLS_Slots$9>;
264
- declare const _default$21: typeof __VLS_export$21;
263
+ declare const __VLS_export$26: __VLS_WithSlots$9<typeof __VLS_base$9, __VLS_Slots$9>;
264
+ declare const _default$26: typeof __VLS_export$26;
265
265
  type __VLS_WithSlots$9<T, S> = T & {
266
266
  new (): {
267
267
  $slots: S;
@@ -276,8 +276,8 @@ declare const __VLS_template$2: () => {
276
276
  };
277
277
  type __VLS_Slots$8 = ReturnType<typeof __VLS_template$2>['__VLS_Slots'];
278
278
  declare const __VLS_base$8: import("@vue/runtime-core").DefineComponent<ConvenienceStackProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<ConvenienceStackProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
279
- declare const __VLS_export$20: __VLS_WithSlots$8<typeof __VLS_base$8, __VLS_Slots$8>;
280
- declare const _default$20: typeof __VLS_export$20;
279
+ declare const __VLS_export$25: __VLS_WithSlots$8<typeof __VLS_base$8, __VLS_Slots$8>;
280
+ declare const _default$25: typeof __VLS_export$25;
281
281
  type __VLS_WithSlots$8<T, S> = T & {
282
282
  new (): {
283
283
  $slots: S;
@@ -292,8 +292,8 @@ declare const __VLS_template$1: () => {
292
292
  };
293
293
  type __VLS_Slots$7 = ReturnType<typeof __VLS_template$1>['__VLS_Slots'];
294
294
  declare const __VLS_base$7: import("@vue/runtime-core").DefineComponent<ConvenienceStackProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<ConvenienceStackProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
295
- declare const __VLS_export$19: __VLS_WithSlots$7<typeof __VLS_base$7, __VLS_Slots$7>;
296
- declare const _default$19: typeof __VLS_export$19;
295
+ declare const __VLS_export$24: __VLS_WithSlots$7<typeof __VLS_base$7, __VLS_Slots$7>;
296
+ declare const _default$24: typeof __VLS_export$24;
297
297
  type __VLS_WithSlots$7<T, S> = T & {
298
298
  new (): {
299
299
  $slots: S;
@@ -451,8 +451,8 @@ type __VLS_Slots$6 = {
451
451
  footer?(): unknown;
452
452
  };
453
453
  declare const __VLS_base$6: import("@vue/runtime-core").DefineComponent<CardProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<CardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
454
- declare const __VLS_export$18: __VLS_WithSlots$6<typeof __VLS_base$6, __VLS_Slots$6>;
455
- declare const _default$18: typeof __VLS_export$18;
454
+ declare const __VLS_export$23: __VLS_WithSlots$6<typeof __VLS_base$6, __VLS_Slots$6>;
455
+ declare const _default$23: typeof __VLS_export$23;
456
456
  type __VLS_WithSlots$6<T, S> = T & {
457
457
  new (): {
458
458
  $slots: S;
@@ -516,8 +516,8 @@ declare const __VLS_base$5: import("@vue/runtime-core").DefineComponent<ScrollBo
516
516
  onScroll?: ((range: VirtualViewportRange) => any) | undefined;
517
517
  "onUpdate:modelValue"?: ((offset: number) => any) | undefined;
518
518
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
519
- declare const __VLS_export$17: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
520
- declare const _default$17: typeof __VLS_export$17;
519
+ declare const __VLS_export$22: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
520
+ declare const _default$22: typeof __VLS_export$22;
521
521
  type __VLS_WithSlots$5<T, S> = T & {
522
522
  new (): {
523
523
  $slots: S;
@@ -525,12 +525,12 @@ type __VLS_WithSlots$5<T, S> = T & {
525
525
  }; //# sourceMappingURL=ScrollBox.vue.d.ts.map
526
526
  //#endregion
527
527
  //#region src/components/ScrollBar.vue.d.ts
528
- declare const __VLS_export$16: import("@vue/runtime-core").DefineComponent<ScrollBarProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
528
+ declare const __VLS_export$21: import("@vue/runtime-core").DefineComponent<ScrollBarProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
529
529
  "update:offset": (offset: number) => any;
530
530
  }, string, import("@vue/runtime-core").PublicProps, Readonly<ScrollBarProps> & Readonly<{
531
531
  "onUpdate:offset"?: ((offset: number) => any) | undefined;
532
532
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
533
- declare const _default$16: typeof __VLS_export$16;
533
+ declare const _default$21: typeof __VLS_export$21;
534
534
  //#endregion
535
535
  //#region src/components/Text.d.ts
536
536
  type TextWrap = boolean | "wrap" | "hard" | "truncate" | "truncate-start" | "truncate-middle" | "truncate-end" | "end" | "middle";
@@ -593,12 +593,12 @@ declare const Text: import("vue").DefineComponent<import("vue").ExtractPropTypes
593
593
  hidden: boolean;
594
594
  ariaHidden: boolean;
595
595
  dim: boolean;
596
- blink: boolean;
597
596
  italic: boolean;
598
597
  underline: boolean;
599
598
  inverse: boolean;
600
599
  dimColor: boolean;
601
600
  strikethrough: boolean;
601
+ blink: boolean;
602
602
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
603
603
  //#endregion
604
604
  //#region src/components/text-utility-types.d.ts
@@ -616,12 +616,12 @@ interface TransformProps {
616
616
  }
617
617
  //#endregion
618
618
  //#region src/components/FrescoNewline.vue.d.ts
619
- declare const __VLS_export$15: import("@vue/runtime-core").DefineComponent<NewlineProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<NewlineProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
620
- declare const _default$15: typeof __VLS_export$15;
619
+ declare const __VLS_export$20: import("@vue/runtime-core").DefineComponent<NewlineProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<NewlineProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
620
+ declare const _default$20: typeof __VLS_export$20;
621
621
  //#endregion
622
622
  //#region src/components/FrescoStatic.vue.d.ts
623
- declare const __VLS_export$14: <T = unknown>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
624
- props: import("vue").PublicProps & __VLS_PrettifyLocal<{
623
+ declare const __VLS_export$19: <T = unknown>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$5<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
624
+ props: import("vue").PublicProps & __VLS_PrettifyLocal$5<{
625
625
  items?: T[];
626
626
  style?: FrescoStyle;
627
627
  }> & (typeof globalThis extends {
@@ -639,8 +639,8 @@ declare const __VLS_export$14: <T = unknown>(__VLS_props: NonNullable<Awaited<ty
639
639
  }>) => import("vue").VNode & {
640
640
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
641
641
  };
642
- declare const _default$14: typeof __VLS_export$14;
643
- type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {}; //# sourceMappingURL=FrescoStatic.vue.d.ts.map
642
+ declare const _default$19: typeof __VLS_export$19;
643
+ type __VLS_PrettifyLocal$5<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {}; //# sourceMappingURL=FrescoStatic.vue.d.ts.map
644
644
  //#endregion
645
645
  //#region src/components/display-primitive-types.d.ts
646
646
  /** Public props for the Static output component. */
@@ -715,8 +715,8 @@ type __VLS_Slots$4 = {
715
715
  default?: () => unknown;
716
716
  };
717
717
  declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<TransformProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<TransformProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
718
- declare const __VLS_export$13: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
719
- declare const _default$13: typeof __VLS_export$13;
718
+ declare const __VLS_export$18: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
719
+ declare const _default$18: typeof __VLS_export$18;
720
720
  type __VLS_WithSlots$4<T, S> = T & {
721
721
  new (): {
722
722
  $slots: S;
@@ -854,7 +854,7 @@ declare const Code: import("vue").DefineComponent<import("vue").ExtractPropTypes
854
854
  };
855
855
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
856
856
  [key: string]: any;
857
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selection" | "update:offset" | "select")[], "update:selection" | "update:offset" | "select", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
857
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:offset" | "select" | "update:selection")[], "update:offset" | "select" | "update:selection", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
858
858
  code: {
859
859
  type: StringConstructor;
860
860
  default: string;
@@ -917,24 +917,24 @@ declare const Code: import("vue").DefineComponent<import("vue").ExtractPropTypes
917
917
  default: number;
918
918
  };
919
919
  }>> & Readonly<{
920
- "onUpdate:selection"?: ((...args: any[]) => any) | undefined;
921
920
  "onUpdate:offset"?: ((...args: any[]) => any) | undefined;
922
921
  onSelect?: ((...args: any[]) => any) | undefined;
922
+ "onUpdate:selection"?: ((...args: any[]) => any) | undefined;
923
923
  }>, {
924
924
  fg: string;
925
925
  focused: boolean;
926
926
  border: "none" | "single" | "double" | "rounded" | undefined;
927
+ overscan: number;
928
+ offset: number;
929
+ lineNumberFg: string;
927
930
  code: string;
928
931
  lineNumbers: boolean;
929
932
  startLine: number;
930
933
  highlightLines: readonly number[];
931
- lineNumberFg: string;
932
934
  highlightBg: string;
933
935
  selectionBg: string;
934
936
  diagnostics: readonly CodeDiagnostic[];
935
937
  selectable: boolean;
936
- offset: number;
937
- overscan: number;
938
938
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
939
939
  //#endregion
940
940
  //#region src/components/markdown-types.d.ts
@@ -1061,8 +1061,8 @@ interface MarkdownProps extends MarkdownRenderOptions {
1061
1061
  }
1062
1062
  //#endregion
1063
1063
  //#region src/components/FrescoMarkdown.vue.d.ts
1064
- declare const __VLS_export$12: import("@vue/runtime-core").DefineComponent<MarkdownProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<MarkdownProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
1065
- declare const _default$12: typeof __VLS_export$12;
1064
+ declare const __VLS_export$17: import("@vue/runtime-core").DefineComponent<MarkdownProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<MarkdownProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
1065
+ declare const _default$17: typeof __VLS_export$17;
1066
1066
  //#endregion
1067
1067
  //#region src/components/markdown.d.ts
1068
1068
  /** Parse the block-level subset of CommonMark used by Fresco Markdown. */
@@ -1098,8 +1098,8 @@ interface FrameBufferProps {
1098
1098
  }
1099
1099
  //#endregion
1100
1100
  //#region src/components/FrescoFrameBuffer.vue.d.ts
1101
- declare const __VLS_export$11: import("@vue/runtime-core").DefineComponent<FrameBufferProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<FrameBufferProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
1102
- declare const _default$11: typeof __VLS_export$11;
1101
+ declare const __VLS_export$16: import("@vue/runtime-core").DefineComponent<FrameBufferProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<FrameBufferProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
1102
+ declare const _default$16: typeof __VLS_export$16;
1103
1103
  //#endregion
1104
1104
  //#region src/components/Diff.d.ts
1105
1105
  type DiffView = "unified" | "split";
@@ -1251,7 +1251,6 @@ declare const Diff: import("vue").DefineComponent<import("vue").ExtractPropTypes
1251
1251
  default: string;
1252
1252
  };
1253
1253
  }>> & Readonly<{}>, {
1254
- lineNumberFg: string;
1255
1254
  overscan: number;
1256
1255
  view: DiffView;
1257
1256
  context: number;
@@ -1261,6 +1260,7 @@ declare const Diff: import("vue").DefineComponent<import("vue").ExtractPropTypes
1261
1260
  addedFg: string;
1262
1261
  removedFg: string;
1263
1262
  hunkFg: string;
1263
+ lineNumberFg: string;
1264
1264
  addedHighlightBg: string;
1265
1265
  removedHighlightBg: string;
1266
1266
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1353,8 +1353,8 @@ declare const LineNumber: import("vue").DefineComponent<import("vue").ExtractPro
1353
1353
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1354
1354
  //#endregion
1355
1355
  //#region src/components/FrescoLink.vue.d.ts
1356
- declare const __VLS_export$10: import("@vue/runtime-core").DefineComponent<LinkProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<LinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
1357
- declare const _default$10: typeof __VLS_export$10;
1356
+ declare const __VLS_export$15: import("@vue/runtime-core").DefineComponent<LinkProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<LinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
1357
+ declare const _default$15: typeof __VLS_export$15;
1358
1358
  //#endregion
1359
1359
  //#region src/components/TextInput.d.ts
1360
1360
  interface TextInputProps {
@@ -1482,10 +1482,10 @@ declare const TextInput: import("vue").DefineComponent<import("vue").ExtractProp
1482
1482
  onValidationChange?: ((...args: any[]) => any) | undefined;
1483
1483
  }>, {
1484
1484
  focused: boolean;
1485
- focus: boolean;
1486
1485
  modelValue: string;
1487
- defaultValue: string;
1488
1486
  placeholder: string;
1487
+ focus: boolean;
1488
+ defaultValue: string;
1489
1489
  mask: boolean;
1490
1490
  maskChar: string;
1491
1491
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1634,26 +1634,36 @@ declare const TextArea: import("vue").DefineComponent<import("vue").ExtractPropT
1634
1634
  focused: boolean;
1635
1635
  cursor: string;
1636
1636
  border: "none" | "single" | "double" | "rounded" | undefined;
1637
- lineNumbers: boolean;
1638
- lineNumberFg: string;
1639
1637
  modelValue: string;
1640
1638
  disabled: boolean;
1639
+ lineNumberFg: string;
1640
+ lineNumbers: boolean;
1641
1641
  defaultValue: string;
1642
1642
  rows: number;
1643
1643
  placeholderFg: string;
1644
1644
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1645
1645
  //#endregion
1646
+ //#region src/components/collection-values.d.ts
1647
+ type CollectionValueKey<Value> = Value extends object ? Extract<keyof Value, string | number | symbol> : never;
1648
+ type CollectionBy<Value> = CollectionValueKey<Value> | ((left: Value, right: Value) => boolean);
1649
+ //#endregion
1646
1650
  //#region src/components/Select.d.ts
1647
- interface SelectOption {
1651
+ interface SelectOption<Value = string> {
1652
+ /** Stable render identity when the value is not a Vue vnode key. */
1653
+ key?: string | number | symbol;
1648
1654
  label: string;
1649
- value: string;
1655
+ value: Value;
1650
1656
  disabled?: boolean;
1651
1657
  }
1652
- interface SelectProps {
1658
+ type SelectValueKey<Value> = CollectionValueKey<Value>;
1659
+ type SelectBy<Value> = CollectionBy<Value>;
1660
+ interface SelectProps<Value = string> {
1653
1661
  /** Options to display */
1654
- options: SelectOption[];
1662
+ options: readonly SelectOption<Value>[];
1655
1663
  /** Currently selected value */
1656
- modelValue?: string;
1664
+ modelValue?: Value;
1665
+ /** Compare values by an object key or a custom equality function */
1666
+ by?: SelectBy<Value>;
1657
1667
  /** Placeholder text */
1658
1668
  placeholder?: string;
1659
1669
  /** Maximum visible options before the selection window scrolls */
@@ -1673,78 +1683,24 @@ interface SelectProps {
1673
1683
  /** Selected item background color */
1674
1684
  selectedBg?: string;
1675
1685
  }
1676
- declare const Select: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1677
- options: {
1678
- type: PropType<SelectOption[]>;
1679
- required: true;
1680
- };
1681
- modelValue: StringConstructor;
1682
- placeholder: {
1683
- type: StringConstructor;
1684
- default: string;
1685
- };
1686
- maxHeight: NumberConstructor;
1687
- focused: {
1688
- type: BooleanConstructor;
1689
- default: boolean;
1690
- };
1691
- indicator: {
1692
- type: StringConstructor;
1693
- default: string;
1694
- };
1695
- indicatorEmpty: {
1696
- type: StringConstructor;
1697
- default: string;
1698
- };
1699
- fg: StringConstructor;
1700
- bg: StringConstructor;
1701
- selectedFg: {
1702
- type: StringConstructor;
1703
- default: string;
1704
- };
1705
- selectedBg: StringConstructor;
1706
- }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
1707
- [key: string]: any;
1708
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:modelValue")[], "select" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1709
- options: {
1710
- type: PropType<SelectOption[]>;
1711
- required: true;
1712
- };
1713
- modelValue: StringConstructor;
1714
- placeholder: {
1715
- type: StringConstructor;
1716
- default: string;
1717
- };
1718
- maxHeight: NumberConstructor;
1719
- focused: {
1720
- type: BooleanConstructor;
1721
- default: boolean;
1722
- };
1723
- indicator: {
1724
- type: StringConstructor;
1725
- default: string;
1726
- };
1727
- indicatorEmpty: {
1728
- type: StringConstructor;
1729
- default: string;
1730
- };
1731
- fg: StringConstructor;
1732
- bg: StringConstructor;
1733
- selectedFg: {
1734
- type: StringConstructor;
1735
- default: string;
1736
- };
1737
- selectedBg: StringConstructor;
1738
- }>> & Readonly<{
1739
- onSelect?: ((...args: any[]) => any) | undefined;
1740
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1741
- }>, {
1742
- focused: boolean;
1743
- indicator: string;
1744
- indicatorEmpty: string;
1745
- selectedFg: string;
1746
- placeholder: string;
1747
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1686
+ //#endregion
1687
+ //#region src/components/FrescoSelect.vue.d.ts
1688
+ declare const __VLS_export$14: <Value = string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$4<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
1689
+ props: import("vue").PublicProps & __VLS_PrettifyLocal$4<SelectProps<Value> & {
1690
+ "onUpdate:modelValue"?: ((value: Value) => any) | undefined;
1691
+ onSelect?: ((value: Value) => any) | undefined;
1692
+ }> & (typeof globalThis extends {
1693
+ __VLS_PROPS_FALLBACK: infer P;
1694
+ } ? P : {});
1695
+ expose: (exposed: {}) => void;
1696
+ attrs: any;
1697
+ slots: {};
1698
+ emit: ((evt: "update:modelValue", value: Value) => void) & ((evt: "select", value: Value) => void);
1699
+ }>) => import("vue").VNode & {
1700
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
1701
+ };
1702
+ declare const _default$14: typeof __VLS_export$14;
1703
+ type __VLS_PrettifyLocal$4<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {}; //# sourceMappingURL=FrescoSelect.vue.d.ts.map
1748
1704
  //#endregion
1749
1705
  //#region src/components/Checkbox.d.ts
1750
1706
  /**
@@ -2084,14 +2040,14 @@ interface SliderRange {
2084
2040
  }
2085
2041
  //#endregion
2086
2042
  //#region src/components/FrescoSlider.vue.d.ts
2087
- declare const __VLS_export$9: import("@vue/runtime-core").DefineComponent<SliderProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
2043
+ declare const __VLS_export$13: import("@vue/runtime-core").DefineComponent<SliderProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
2088
2044
  "update:modelValue": (value: number) => any;
2089
2045
  change: (value: number) => any;
2090
2046
  }, string, import("@vue/runtime-core").PublicProps, Readonly<SliderProps> & Readonly<{
2091
2047
  "onUpdate:modelValue"?: ((value: number) => any) | undefined;
2092
2048
  onChange?: ((value: number) => any) | undefined;
2093
2049
  }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2094
- declare const _default$9: typeof __VLS_export$9;
2050
+ declare const _default$13: typeof __VLS_export$13;
2095
2051
  //#endregion
2096
2052
  //#region src/components/Form.d.ts
2097
2053
  /** Values submitted and validated by Form, keyed by field key. */
@@ -2235,8 +2191,8 @@ declare const Form: import("vue").DefineComponent<import("vue").ExtractPropTypes
2235
2191
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2236
2192
  //#endregion
2237
2193
  //#region src/components/FrescoSpinner.vue.d.ts
2238
- declare const __VLS_export$8: import("@vue/runtime-core").DefineComponent<SpinnerProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<SpinnerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2239
- declare const _default$8: typeof __VLS_export$8;
2194
+ declare const __VLS_export$12: import("@vue/runtime-core").DefineComponent<SpinnerProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<SpinnerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2195
+ declare const _default$12: typeof __VLS_export$12;
2240
2196
  //#endregion
2241
2197
  //#region src/components/ProgressBar.d.ts
2242
2198
  interface ProgressBarProps {
@@ -2349,23 +2305,23 @@ declare const ProgressBar: import("vue").DefineComponent<import("vue").ExtractPr
2349
2305
  };
2350
2306
  }>> & Readonly<{}>, {
2351
2307
  width: number;
2352
- filledFg: string;
2353
2308
  labelPosition: "right" | "left" | "inside";
2354
2309
  showLabel: boolean;
2355
2310
  filledChar: string;
2356
2311
  emptyChar: string;
2357
2312
  leftBorder: string;
2358
2313
  rightBorder: string;
2314
+ filledFg: string;
2359
2315
  emptyFg: string;
2360
2316
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2361
2317
  //#endregion
2362
2318
  //#region src/components/FrescoAlert.vue.d.ts
2363
- declare const __VLS_export$7: import("@vue/runtime-core").DefineComponent<AlertProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<AlertProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2364
- declare const _default$7: typeof __VLS_export$7;
2319
+ declare const __VLS_export$11: import("@vue/runtime-core").DefineComponent<AlertProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<AlertProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2320
+ declare const _default$11: typeof __VLS_export$11;
2365
2321
  //#endregion
2366
2322
  //#region src/components/FrescoBadge.vue.d.ts
2367
- declare const __VLS_export$6: import("@vue/runtime-core").DefineComponent<BadgeProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2368
- declare const _default$6: typeof __VLS_export$6;
2323
+ declare const __VLS_export$10: import("@vue/runtime-core").DefineComponent<BadgeProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2324
+ declare const _default$10: typeof __VLS_export$10;
2369
2325
  //#endregion
2370
2326
  //#region src/components/Timer.d.ts
2371
2327
  type TimerMode = "countdown" | "stopwatch";
@@ -2474,8 +2430,8 @@ type __VLS_Slots$3 = {
2474
2430
  default?: () => unknown;
2475
2431
  };
2476
2432
  declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<TooltipProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<TooltipProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
2477
- declare const __VLS_export$5: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
2478
- declare const _default$5: typeof __VLS_export$5;
2433
+ declare const __VLS_export$9: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
2434
+ declare const _default$9: typeof __VLS_export$9;
2479
2435
  type __VLS_WithSlots$3<T, S> = T & {
2480
2436
  new (): {
2481
2437
  $slots: S;
@@ -2483,16 +2439,25 @@ type __VLS_WithSlots$3<T, S> = T & {
2483
2439
  }; //# sourceMappingURL=FrescoTooltip.vue.d.ts.map
2484
2440
  //#endregion
2485
2441
  //#region src/components/List.d.ts
2486
- interface ListItem {
2442
+ interface ListItemBase {
2487
2443
  key: string;
2488
2444
  label: string;
2489
2445
  disabled?: boolean;
2490
2446
  }
2491
- interface ListProps {
2447
+ type ListItem<Value = string> = ListItemBase & ([Value] extends [string] ? {
2448
+ value?: Value;
2449
+ } : {
2450
+ value: Value;
2451
+ });
2452
+ type ListValueKey<Value> = CollectionValueKey<Value>;
2453
+ type ListBy<Value> = CollectionBy<Value>;
2454
+ interface ListProps<Value = string> {
2492
2455
  /** List items */
2493
- items: ListItem[];
2494
- /** Currently selected key */
2495
- modelValue?: string;
2456
+ items: readonly ListItem<Value>[];
2457
+ /** Currently selected value */
2458
+ modelValue?: Value;
2459
+ /** Compare values by an object key or a custom equality function */
2460
+ by?: ListBy<Value>;
2496
2461
  /** Maximum visible items (enables scrolling) */
2497
2462
  maxHeight?: number;
2498
2463
  /** Whether the list is focused */
@@ -2508,67 +2473,24 @@ interface ListProps {
2508
2473
  /** Selected background color */
2509
2474
  selectedBg?: string;
2510
2475
  }
2511
- declare const List: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2512
- items: {
2513
- type: PropType<ListItem[]>;
2514
- required: true;
2515
- };
2516
- modelValue: StringConstructor;
2517
- maxHeight: NumberConstructor;
2518
- focused: {
2519
- type: BooleanConstructor;
2520
- default: boolean;
2521
- };
2522
- indicator: {
2523
- type: StringConstructor;
2524
- default: string;
2525
- };
2526
- indicatorEmpty: {
2527
- type: StringConstructor;
2528
- default: string;
2529
- };
2530
- fg: StringConstructor;
2531
- selectedFg: {
2532
- type: StringConstructor;
2533
- default: string;
2534
- };
2535
- selectedBg: StringConstructor;
2536
- }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
2537
- [key: string]: any;
2538
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:modelValue")[], "select" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
2539
- items: {
2540
- type: PropType<ListItem[]>;
2541
- required: true;
2542
- };
2543
- modelValue: StringConstructor;
2544
- maxHeight: NumberConstructor;
2545
- focused: {
2546
- type: BooleanConstructor;
2547
- default: boolean;
2548
- };
2549
- indicator: {
2550
- type: StringConstructor;
2551
- default: string;
2552
- };
2553
- indicatorEmpty: {
2554
- type: StringConstructor;
2555
- default: string;
2556
- };
2557
- fg: StringConstructor;
2558
- selectedFg: {
2559
- type: StringConstructor;
2560
- default: string;
2561
- };
2562
- selectedBg: StringConstructor;
2563
- }>> & Readonly<{
2564
- onSelect?: ((...args: any[]) => any) | undefined;
2565
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2566
- }>, {
2567
- focused: boolean;
2568
- indicator: string;
2569
- indicatorEmpty: string;
2570
- selectedFg: string;
2571
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2476
+ //#endregion
2477
+ //#region src/components/FrescoList.vue.d.ts
2478
+ declare const __VLS_export$8: <Value = string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$3<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2479
+ props: import("vue").PublicProps & __VLS_PrettifyLocal$3<ListProps<Value> & {
2480
+ "onUpdate:modelValue"?: ((value: Value) => any) | undefined;
2481
+ onSelect?: ((value: Value) => any) | undefined;
2482
+ }> & (typeof globalThis extends {
2483
+ __VLS_PROPS_FALLBACK: infer P;
2484
+ } ? P : {});
2485
+ expose: (exposed: {}) => void;
2486
+ attrs: any;
2487
+ slots: {};
2488
+ emit: ((evt: "update:modelValue", value: Value) => void) & ((evt: "select", value: Value) => void);
2489
+ }>) => import("vue").VNode & {
2490
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
2491
+ };
2492
+ declare const _default$8: typeof __VLS_export$8;
2493
+ type __VLS_PrettifyLocal$3<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {}; //# sourceMappingURL=FrescoList.vue.d.ts.map
2572
2494
  //#endregion
2573
2495
  //#region src/components/table-types.d.ts
2574
2496
  /** One table row addressable by string column keys. */
@@ -2758,8 +2680,8 @@ declare const Table: import("vue").DefineComponent<import("vue").ExtractPropType
2758
2680
  }>, {
2759
2681
  focused: boolean;
2760
2682
  border: "none" | "single" | "double" | "rounded" | undefined;
2761
- offset: number;
2762
2683
  overscan: number;
2684
+ offset: number;
2763
2685
  showHeader: boolean;
2764
2686
  headerFg: string;
2765
2687
  cellPadding: number;
@@ -2768,22 +2690,33 @@ declare const Table: import("vue").DefineComponent<import("vue").ExtractPropType
2768
2690
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2769
2691
  //#endregion
2770
2692
  //#region src/components/Tree.d.ts
2771
- interface TreeNode {
2693
+ interface TreeNodeBase<Value> {
2772
2694
  key: string;
2773
2695
  label: string;
2774
- children?: TreeNode[];
2696
+ children?: readonly TreeNode<Value>[];
2775
2697
  icon?: string;
2776
2698
  disabled?: boolean;
2777
2699
  }
2778
- interface TreeProps {
2700
+ type TreeNode<Value = string> = TreeNodeBase<Value> & ([Value] extends [string] ? {
2701
+ value?: Value;
2702
+ } : {
2703
+ value: Value;
2704
+ });
2705
+ type TreeValueKey<Value> = CollectionValueKey<Value>;
2706
+ type TreeBy<Value> = CollectionBy<Value>;
2707
+ interface TreeProps<Value = string> {
2779
2708
  /** Tree data */
2780
- data: TreeNode[];
2709
+ data: readonly TreeNode<Value>[];
2781
2710
  /** Expanded node keys */
2782
- expanded?: string[];
2783
- /** Selected node key */
2784
- selected?: string;
2711
+ expanded?: readonly string[];
2712
+ /** Selected node value */
2713
+ selected?: Value;
2714
+ /** Compare selected values by an object key or a custom equality function */
2715
+ by?: TreeBy<Value>;
2785
2716
  /** Whether the tree owns keyboard input */
2786
2717
  focused?: boolean;
2718
+ /** Maximum visible flattened nodes before the tree window scrolls */
2719
+ maxHeight?: number;
2787
2720
  /** Show lines */
2788
2721
  showLines?: boolean;
2789
2722
  /** Indent size */
@@ -2799,104 +2732,29 @@ interface TreeProps {
2799
2732
  /** Selected foreground color */
2800
2733
  selectedFg?: string;
2801
2734
  }
2802
- declare const Tree: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2803
- data: {
2804
- type: PropType<TreeNode[]>;
2805
- required: true;
2806
- };
2807
- expanded: {
2808
- type: PropType<string[]>;
2809
- default: () => never[];
2810
- };
2811
- selected: StringConstructor;
2812
- focused: {
2813
- type: BooleanConstructor;
2814
- default: boolean;
2815
- };
2816
- showLines: {
2817
- type: BooleanConstructor;
2818
- default: boolean;
2819
- };
2820
- indent: {
2821
- type: NumberConstructor;
2822
- default: number;
2823
- };
2824
- expandedIcon: {
2825
- type: StringConstructor;
2826
- default: string;
2827
- };
2828
- collapsedIcon: {
2829
- type: StringConstructor;
2830
- default: string;
2831
- };
2832
- leafIcon: {
2833
- type: StringConstructor;
2834
- default: string;
2835
- };
2836
- fg: StringConstructor;
2837
- selectedFg: {
2838
- type: StringConstructor;
2839
- default: string;
2840
- };
2841
- }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
2842
- [key: string]: any;
2843
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "toggle" | "update:selected" | "update:expanded")[], "select" | "toggle" | "update:selected" | "update:expanded", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
2844
- data: {
2845
- type: PropType<TreeNode[]>;
2846
- required: true;
2847
- };
2848
- expanded: {
2849
- type: PropType<string[]>;
2850
- default: () => never[];
2851
- };
2852
- selected: StringConstructor;
2853
- focused: {
2854
- type: BooleanConstructor;
2855
- default: boolean;
2856
- };
2857
- showLines: {
2858
- type: BooleanConstructor;
2859
- default: boolean;
2860
- };
2861
- indent: {
2862
- type: NumberConstructor;
2863
- default: number;
2864
- };
2865
- expandedIcon: {
2866
- type: StringConstructor;
2867
- default: string;
2868
- };
2869
- collapsedIcon: {
2870
- type: StringConstructor;
2871
- default: string;
2872
- };
2873
- leafIcon: {
2874
- type: StringConstructor;
2875
- default: string;
2876
- };
2877
- fg: StringConstructor;
2878
- selectedFg: {
2879
- type: StringConstructor;
2880
- default: string;
2881
- };
2882
- }>> & Readonly<{
2883
- onSelect?: ((...args: any[]) => any) | undefined;
2884
- onToggle?: ((...args: any[]) => any) | undefined;
2885
- "onUpdate:selected"?: ((...args: any[]) => any) | undefined;
2886
- "onUpdate:expanded"?: ((...args: any[]) => any) | undefined;
2887
- }>, {
2888
- focused: boolean;
2889
- selectedFg: string;
2890
- expanded: string[];
2891
- showLines: boolean;
2892
- indent: number;
2893
- expandedIcon: string;
2894
- collapsedIcon: string;
2895
- leafIcon: string;
2896
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2735
+ //#endregion
2736
+ //#region src/components/FrescoTree.vue.d.ts
2737
+ declare const __VLS_export$7: <Value = string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$2<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2738
+ props: import("vue").PublicProps & __VLS_PrettifyLocal$2<TreeProps<Value> & {
2739
+ onSelect?: ((value: Value) => any) | undefined;
2740
+ "onUpdate:selected"?: ((value: Value) => any) | undefined;
2741
+ onToggle?: ((key: string, expanded: boolean) => any) | undefined;
2742
+ "onUpdate:expanded"?: ((keys: string[]) => any) | undefined;
2743
+ }> & (typeof globalThis extends {
2744
+ __VLS_PROPS_FALLBACK: infer P;
2745
+ } ? P : {});
2746
+ expose: (exposed: {}) => void;
2747
+ attrs: any;
2748
+ slots: {};
2749
+ emit: ((evt: "select", value: Value) => void) & ((evt: "update:selected", value: Value) => void) & ((evt: "toggle", key: string, expanded: boolean) => void) & ((evt: "update:expanded", keys: string[]) => void);
2750
+ }>) => import("vue").VNode & {
2751
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
2752
+ };
2753
+ declare const _default$7: typeof __VLS_export$7;
2754
+ type __VLS_PrettifyLocal$2<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {}; //# sourceMappingURL=FrescoTree.vue.d.ts.map
2897
2755
  //#endregion
2898
2756
  //#region src/components/Menu.d.ts
2899
- interface MenuItem {
2757
+ interface MenuItemBase {
2900
2758
  key: string;
2901
2759
  label: string;
2902
2760
  shortcut?: string;
@@ -2904,13 +2762,20 @@ interface MenuItem {
2904
2762
  disabled?: boolean;
2905
2763
  separator?: boolean;
2906
2764
  }
2907
- interface MenuProps {
2765
+ type MenuItem<Value = string> = MenuItemBase & ([Value] extends [string] ? {
2766
+ value?: Value;
2767
+ } : {
2768
+ value: Value;
2769
+ });
2770
+ interface MenuProps<Value = string> {
2908
2771
  /** Menu items */
2909
- items: MenuItem[];
2772
+ items: readonly MenuItem<Value>[];
2910
2773
  /** Focused item index */
2911
2774
  focusedIndex?: number;
2912
2775
  /** Whether the menu owns keyboard input */
2913
2776
  focused?: boolean;
2777
+ /** Maximum visible items before the command window scrolls */
2778
+ maxHeight?: number;
2914
2779
  /** Show border */
2915
2780
  border?: "single" | "double" | "rounded" | "none";
2916
2781
  /** Width */
@@ -2924,95 +2789,49 @@ interface MenuProps {
2924
2789
  /** Shortcut foreground color */
2925
2790
  shortcutFg?: string;
2926
2791
  }
2927
- declare const Menu: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2928
- items: {
2929
- type: PropType<MenuItem[]>;
2930
- required: true;
2931
- };
2932
- focusedIndex: {
2933
- type: NumberConstructor;
2934
- default: number;
2935
- };
2936
- focused: {
2937
- type: BooleanConstructor;
2938
- default: boolean;
2939
- };
2940
- border: {
2941
- type: PropType<MenuProps["border"]>;
2942
- default: string;
2943
- };
2944
- width: NumberConstructor;
2945
- fg: StringConstructor;
2946
- focusedFg: {
2947
- type: StringConstructor;
2948
- default: string;
2949
- };
2950
- focusedBg: {
2951
- type: StringConstructor;
2952
- default: string;
2953
- };
2954
- shortcutFg: {
2955
- type: StringConstructor;
2956
- default: string;
2957
- };
2958
- }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
2959
- [key: string]: any;
2960
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:focusedIndex")[], "select" | "update:focusedIndex", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
2961
- items: {
2962
- type: PropType<MenuItem[]>;
2963
- required: true;
2964
- };
2965
- focusedIndex: {
2966
- type: NumberConstructor;
2967
- default: number;
2968
- };
2969
- focused: {
2970
- type: BooleanConstructor;
2971
- default: boolean;
2972
- };
2973
- border: {
2974
- type: PropType<MenuProps["border"]>;
2975
- default: string;
2976
- };
2977
- width: NumberConstructor;
2978
- fg: StringConstructor;
2979
- focusedFg: {
2980
- type: StringConstructor;
2981
- default: string;
2982
- };
2983
- focusedBg: {
2984
- type: StringConstructor;
2985
- default: string;
2986
- };
2987
- shortcutFg: {
2988
- type: StringConstructor;
2989
- default: string;
2990
- };
2991
- }>> & Readonly<{
2992
- onSelect?: ((...args: any[]) => any) | undefined;
2993
- "onUpdate:focusedIndex"?: ((...args: any[]) => any) | undefined;
2994
- }>, {
2995
- focused: boolean;
2996
- border: "none" | "single" | "double" | "rounded" | undefined;
2997
- focusedIndex: number;
2998
- focusedFg: string;
2999
- focusedBg: string;
3000
- shortcutFg: string;
3001
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2792
+ //#endregion
2793
+ //#region src/components/FrescoMenu.vue.d.ts
2794
+ declare const __VLS_export$6: <Value = string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$1<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2795
+ props: import("vue").PublicProps & __VLS_PrettifyLocal$1<MenuProps<Value> & {
2796
+ onSelect?: ((value: Value) => any) | undefined;
2797
+ "onUpdate:focusedIndex"?: ((index: number) => any) | undefined;
2798
+ }> & (typeof globalThis extends {
2799
+ __VLS_PROPS_FALLBACK: infer P;
2800
+ } ? P : {});
2801
+ expose: (exposed: {}) => void;
2802
+ attrs: any;
2803
+ slots: {};
2804
+ emit: ((evt: "select", value: Value) => void) & ((evt: "update:focusedIndex", index: number) => void);
2805
+ }>) => import("vue").VNode & {
2806
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
2807
+ };
2808
+ declare const _default$6: typeof __VLS_export$6;
2809
+ type __VLS_PrettifyLocal$1<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {}; //# sourceMappingURL=FrescoMenu.vue.d.ts.map
3002
2810
  //#endregion
3003
2811
  //#region src/components/Tabs.d.ts
3004
- interface Tab {
2812
+ interface TabBase {
3005
2813
  key: string;
3006
2814
  label: string;
3007
2815
  disabled?: boolean;
3008
2816
  }
3009
- interface TabsProps {
2817
+ type Tab<Value = string> = TabBase & ([Value] extends [string] ? {
2818
+ value?: Value;
2819
+ } : {
2820
+ value: Value;
2821
+ });
2822
+ type TabsValueKey<Value> = CollectionValueKey<Value>;
2823
+ type TabsBy<Value> = CollectionBy<Value>;
2824
+ interface TabsProps<Value = string> {
3010
2825
  /** Tab definitions */
3011
- tabs: Tab[];
3012
- /** Currently active tab key */
3013
- modelValue?: string;
2826
+ tabs: readonly Tab<Value>[];
2827
+ /** Currently active tab value */
2828
+ modelValue?: Value;
2829
+ /** Compare active values by an object key or a custom equality function */
2830
+ by?: TabsBy<Value>;
3014
2831
  /** Whether the tab list owns keyboard input */
3015
2832
  focused?: boolean;
2833
+ /** Maximum visible tabs before the tab strip scrolls */
2834
+ maxItems?: number;
3016
2835
  /** Tab bar position */
3017
2836
  position?: "top" | "bottom";
3018
2837
  /** Separator between tabs */
@@ -3026,74 +2845,26 @@ interface TabsProps {
3026
2845
  /** Show underline for active tab */
3027
2846
  underline?: boolean;
3028
2847
  }
3029
- declare const Tabs: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3030
- tabs: {
3031
- type: PropType<Tab[]>;
3032
- required: true;
3033
- };
3034
- modelValue: StringConstructor;
3035
- focused: {
3036
- type: BooleanConstructor;
3037
- default: boolean;
3038
- };
3039
- position: {
3040
- type: PropType<"top" | "bottom">;
3041
- default: string;
3042
- };
3043
- separator: {
3044
- type: StringConstructor;
3045
- default: string;
3046
- };
3047
- activeFg: {
3048
- type: StringConstructor;
3049
- default: string;
3050
- };
3051
- activeBg: StringConstructor;
3052
- inactiveFg: StringConstructor;
3053
- underline: {
3054
- type: BooleanConstructor;
3055
- default: boolean;
3056
- };
3057
- }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
3058
- [key: string]: any;
3059
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
3060
- tabs: {
3061
- type: PropType<Tab[]>;
3062
- required: true;
3063
- };
3064
- modelValue: StringConstructor;
3065
- focused: {
3066
- type: BooleanConstructor;
3067
- default: boolean;
3068
- };
3069
- position: {
3070
- type: PropType<"top" | "bottom">;
3071
- default: string;
3072
- };
3073
- separator: {
3074
- type: StringConstructor;
3075
- default: string;
3076
- };
3077
- activeFg: {
3078
- type: StringConstructor;
3079
- default: string;
3080
- };
3081
- activeBg: StringConstructor;
3082
- inactiveFg: StringConstructor;
3083
- underline: {
3084
- type: BooleanConstructor;
3085
- default: boolean;
2848
+ //#endregion
2849
+ //#region src/components/FrescoTabs.vue.d.ts
2850
+ declare const __VLS_export$5: <Value = string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2851
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<TabsProps<Value> & {
2852
+ "onUpdate:modelValue"?: ((value: Value) => any) | undefined;
2853
+ onChange?: ((value: Value) => any) | undefined;
2854
+ }> & (typeof globalThis extends {
2855
+ __VLS_PROPS_FALLBACK: infer P;
2856
+ } ? P : {});
2857
+ expose: (exposed: {}) => void;
2858
+ attrs: any;
2859
+ slots: {
2860
+ default?: () => unknown;
3086
2861
  };
3087
- }>> & Readonly<{
3088
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
3089
- onChange?: ((...args: any[]) => any) | undefined;
3090
- }>, {
3091
- focused: boolean;
3092
- position: "top" | "bottom";
3093
- separator: string;
3094
- activeFg: string;
3095
- underline: boolean;
3096
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2862
+ emit: ((evt: "update:modelValue", value: Value) => void) & ((evt: "change", value: Value) => void);
2863
+ }>) => import("vue").VNode & {
2864
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
2865
+ };
2866
+ declare const _default$5: typeof __VLS_export$5;
2867
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {}; //# sourceMappingURL=FrescoTabs.vue.d.ts.map
3097
2868
  //#endregion
3098
2869
  //#region src/components/FrescoBreadcrumb.vue.d.ts
3099
2870
  declare const __VLS_export$4: import("@vue/runtime-core").DefineComponent<BreadcrumbProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
@@ -3495,5 +3266,5 @@ declare const KeyHint: import("vue").DefineComponent<import("vue").ExtractPropTy
3495
3266
  declare const __VLS_export: import("@vue/runtime-core").DefineComponent<AvatarProps, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
3496
3267
  declare const _default: typeof __VLS_export;
3497
3268
  //#endregion
3498
- export { FormValues as $, CodeSyntaxProvider as $t, TableCellSlotProps as A, Grid as An, MarkdownBlock as At, Timer as B, BoxProps as Bn, MarkdownRenderOptions as Bt, MenuItem as C, AvatarProps as Cn, DiffView as Ct, TreeProps as D, HeaderProps as Dn, parseMarkdown as Dt, TreeNode as E, CardProps as En, defaultMarkdownRenderer as Et, TableViewportRange as F, _default$22 as Fn, MarkdownListItem as Ft, ProgressBar as G, createCodeBuffer as Gt, TimerProps as H, MarkdownSpan as Ht, List as I, DividerProps as In, MarkdownParagraphBlock as It, Form as J, CodeDiagnosticSeverity as Jt, ProgressBarProps as K, CodeBuffer as Kt, ListItem as L, StackProps as Ln, MarkdownProps as Lt, TableProps as M, _default$19 as Mn, MarkdownCodeBlock as Mt, TableRow as N, _default$20 as Nn, MarkdownHeadingBlock as Nt, Table as O, TooltipPosition as On, renderMarkdown as Ot, TableSortDirection as P, _default$21 as Pn, MarkdownListBlock as Pt, FormSlotProps as Q, CodeSyntaxContext as Qt, ListProps as R, _default$23 as Rn, MarkdownQuoteBlock as Rt, Menu as S, AlertType as Sn, DiffProps as St, Tree as T, BreadcrumbProps as Tn, FrameBufferProps as Tt, _default$6 as U, MarkdownThematicBreakBlock as Ut, TimerMode as V, MarkdownRenderer as Vt, _default$7 as W, Code as Wt, FormField as X, CodeProps as Xt, FormErrors as Y, CodePosition as Yt, FormProps as Z, CodeSelection as Zt, StepperProps as _, ScrollBoxExposed as _n, TextInputProps as _t, _default$1 as a, SpinnerProps as an, ConfirmProps as at, Tabs as b, _default$18 as bn, LineNumberProps as bt, StatusBarProps as c, _default$15 as cn, RadioOption as ct, PopoverProps as d, Text as dn, Select as dt, CodeSyntaxToken as en, _default$9 as et, _default$3 as f, TextProps as fn, SelectOption as ft, Stepper as g, ScrollBarProps as gn, TextInput as gt, StepStatus as h, ScrollBarOrientation as hn, TextAreaProps as ht, KeyHintProps as i, LinkProps as in, Confirm as it, TableColumn as j, GridProps as jn, MarkdownBlockProvider as jt, TableAlignment as k, TooltipProps as kn, _default$12 as kt, _default$2 as l, NewlineProps as ln, Checkbox as lt, Step as m, _default$17 as mn, TextArea as mt, KeyBinding as n, BadgeProps as nn, SliderProps as nt, StatusBar as o, StaticProps as on, RadioGroup as ot, ModalProps as p, _default$16 as pn, SelectProps as pt, _default$8 as q, CodeDiagnostic as qt, KeyHint as r, BadgeVariant as rn, SliderRange as rt, StatusBarItem as s, _default$14 as sn, RadioGroupProps as st, _default as t, _default$13 as tn, SliderOrientation as tt, PopoverPlacement as u, TransformProps as un, CheckboxProps as ut, _default$4 as v, ScrollBoxItemSlot as vn, _default$10 as vt, MenuProps as w, BreadcrumbItem as wn, _default$11 as wt, TabsProps as x, AlertProps as xn, Diff as xt, Tab as y, ScrollBoxProps as yn, LineNumber as yt, _default$5 as z, Box as zn, MarkdownRenderLine as zt };
3499
- //# sourceMappingURL=index-DAhTRsXN.d.mts.map
3269
+ export { _default$12 as $, createCodeBuffer as $t, TreeProps as A, AlertType as An, DiffProps as At, _default$8 as B, _default$24 as Bn, MarkdownCodeBlock as Bt, TabsValueKey as C, ScrollBarOrientation as Cn, TextAreaProps as Ct, _default$7 as D, ScrollBoxProps as Dn, LineNumber as Dt, MenuProps as E, ScrollBoxItemSlot as En, _default$15 as Et, TableColumn as F, HeaderProps as Fn, parseMarkdown as Ft, _default$9 as G, StackProps as Gn, MarkdownProps as Gt, ListItem as H, _default$26 as Hn, MarkdownListBlock as Ht, TableProps as I, TooltipPosition as In, renderMarkdown as It, TimerProps as J, BoxProps as Jn, MarkdownRenderOptions as Jt, Timer as K, _default$28 as Kn, MarkdownQuoteBlock as Kt, TableRow as L, TooltipProps as Ln, _default$17 as Lt, Table as M, BreadcrumbItem as Mn, _default$16 as Mt, TableAlignment as N, BreadcrumbProps as Nn, FrameBufferProps as Nt, TreeBy as O, _default$23 as On, LineNumberProps as Ot, TableCellSlotProps as P, CardProps as Pn, defaultMarkdownRenderer as Pt, ProgressBarProps as Q, Code as Qt, TableSortDirection as R, Grid as Rn, MarkdownBlock as Rt, TabsProps as S, _default$22 as Sn, TextArea as St, MenuItem as T, ScrollBoxExposed as Tn, TextInputProps as Tt, ListProps as U, _default$27 as Un, MarkdownListItem as Ut, ListBy as V, _default$25 as Vn, MarkdownHeadingBlock as Vt, ListValueKey as W, DividerProps as Wn, MarkdownParagraphBlock as Wt, _default$11 as X, MarkdownSpan as Xt, _default$10 as Y, MarkdownRenderer as Yt, ProgressBar as Z, MarkdownThematicBreakBlock as Zt, StepperProps as _, NewlineProps as _n, _default$14 as _t, _default$1 as a, CodeSelection as an, FormValues as at, Tab as b, TextProps as bn, SelectProps as bt, StatusBarProps as c, CodeSyntaxToken as cn, SliderProps as ct, PopoverProps as d, BadgeVariant as dn, ConfirmProps as dt, CodeBuffer as en, Form as et, _default$3 as f, LinkProps as fn, RadioGroup as ft, Stepper as g, _default$20 as gn, CheckboxProps as gt, StepStatus as h, _default$19 as hn, Checkbox as ht, KeyHintProps as i, CodeProps as in, FormSlotProps as it, TreeValueKey as j, AvatarProps as jn, DiffView as jt, TreeNode as k, AlertProps as kn, Diff as kt, _default$2 as l, _default$18 as ln, SliderRange as lt, Step as m, StaticProps as mn, RadioOption as mt, KeyBinding as n, CodeDiagnosticSeverity as nn, FormField as nt, StatusBar as o, CodeSyntaxContext as on, _default$13 as ot, ModalProps as p, SpinnerProps as pn, RadioGroupProps as pt, TimerMode as q, Box as qn, MarkdownRenderLine as qt, KeyHint as r, CodePosition as rn, FormProps as rt, StatusBarItem as s, CodeSyntaxProvider as sn, SliderOrientation as st, _default as t, CodeDiagnostic as tn, FormErrors as tt, PopoverPlacement as u, BadgeProps as un, Confirm as ut, _default$4 as v, TransformProps as vn, SelectBy as vt, _default$6 as w, ScrollBarProps as wn, TextInput as wt, TabsBy as x, _default$21 as xn, SelectValueKey as xt, _default$5 as y, Text as yn, SelectOption as yt, TableViewportRange as z, GridProps as zn, MarkdownBlockProvider as zt };
3270
+ //# sourceMappingURL=index-C0U_GDW-.d.mts.map