@pantograph/vue 0.33.9 → 0.33.11

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.
@@ -86,7 +86,7 @@ export interface ChipProps {
86
86
  /**
87
87
  * Props passed to slots in the Chip component
88
88
  */
89
- interface SlotProps {
89
+ export interface ChipSlotProps {
90
90
  /**
91
91
  * The chip props
92
92
  */
@@ -107,23 +107,23 @@ export interface ChipSlots {
107
107
  /**
108
108
  * Text slot
109
109
  */
110
- text?: (data: SlotProps) => never;
110
+ text?: (data: ChipSlotProps) => never;
111
111
  /**
112
112
  * Leading slot
113
113
  */
114
- leading?: (data: SlotProps) => never;
114
+ leading?: (data: ChipSlotProps) => never;
115
115
  /**
116
116
  * Trailing slot
117
117
  */
118
- trailing?: (data: SlotProps) => never;
118
+ trailing?: (data: ChipSlotProps) => never;
119
119
  /**
120
120
  * Close slot
121
121
  */
122
- close?: (data: SlotProps) => never;
122
+ close?: (data: ChipSlotProps) => never;
123
123
  /**
124
124
  * Overlay actions slot
125
125
  */
126
- overlayActions?: (data: SlotProps) => never;
126
+ overlayActions?: (data: ChipSlotProps) => never;
127
127
  }
128
128
  /**
129
129
  * Emits for the Chip component
@@ -1,6 +1,6 @@
1
- import { default as Chip, ChipProps, ChipSlots, ChipEmits, CHIP_DEFAULT_PROPS } from './Chip';
1
+ import { default as Chip, ChipProps, ChipSlotProps, ChipSlots, ChipEmits, CHIP_DEFAULT_PROPS } from './Chip';
2
2
  import { DefineComponent } from '../types';
3
- export { Chip, type ChipProps, type ChipSlots, type ChipEmits, CHIP_DEFAULT_PROPS };
3
+ export { Chip, type ChipProps, type ChipSlotProps, type ChipSlots, type ChipEmits, CHIP_DEFAULT_PROPS };
4
4
  declare module 'vue' {
5
5
  interface GlobalComponents {
6
6
  Chip: DefineComponent<ChipProps, ChipSlots, ChipEmits>;
@@ -0,0 +1,6 @@
1
+ import { _ as a } from "./index-DxYYNIAb.js";
2
+ import { C as f } from "./index-DxYYNIAb.js";
3
+ export {
4
+ f as COLOR_SWATCH_DEFAULT_PROPS,
5
+ a as default
6
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D3c2WIzm.js");exports.COLOR_SWATCH_DEFAULT_PROPS=e.COLOR_SWATCH_DEFAULT_PROPS;exports.default=e._sfc_main;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-RbtrbGtd.js");exports.COLOR_SWATCH_DEFAULT_PROPS=e.COLOR_SWATCH_DEFAULT_PROPS;exports.default=e._sfc_main;
@@ -4,6 +4,7 @@ import { TreeProps } from '../Tree';
4
4
  export declare const COMBO_BOX_DEFAULT_PROPS: {
5
5
  readonly open: undefined;
6
6
  readonly defaultOpen: undefined;
7
+ readonly noValueOnPlaceholder: undefined;
7
8
  readonly multiple: undefined;
8
9
  readonly disabled: undefined;
9
10
  readonly prioritizePosition: false;
@@ -112,6 +113,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
112
113
  popupHeight: string | number;
113
114
  resetSearchTermOnBlur: boolean;
114
115
  resetSearchTermOnSelect: boolean;
116
+ noValueOnPlaceholder: boolean;
115
117
  tagRenderMode: "go" | "avatar" | "chip";
116
118
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
117
119
  scrollContainerRef: ({
@@ -11,6 +11,7 @@ import { FlattenItem } from '../Tree/utils';
11
11
  import { MenuItemLeadingProps } from '../MenuItem/MenuItemContent';
12
12
  import { MenuItemProps } from '../MenuItem';
13
13
  import { ComboboxInputProps } from './ComboboxInput';
14
+ import { ChipSlotProps } from '../Chip';
14
15
  export type ComboboxDefOptionType = {
15
16
  disabled?: boolean;
16
17
  label?: string;
@@ -137,14 +138,18 @@ export interface ComboboxOptionSlotPropsBase {
137
138
  export interface ComboboxOptionSlotProps extends MenuItemLeadingProps, ComboboxOptionSlotPropsBase {
138
139
  }
139
140
  export interface ComboboxTriggerDefSlotProps {
140
- modelValue: string | string[] | undefined;
141
- open: boolean;
141
+ modelValue: string | string[] | null | undefined;
142
+ open: boolean | null | undefined;
142
143
  option?: ComboboxFlattenOptionType;
143
144
  options?: ComboboxFlattenOptionType[];
144
145
  }
146
+ export interface ComboboxTriggerTagSlotProps extends ComboboxTriggerDefSlotProps, ChipSlotProps {
147
+ option: ComboboxFlattenOptionType;
148
+ }
145
149
  export interface ComboboxSlots {
146
150
  trigger?: (data: Omit<ComboboxTriggerDefSlotProps, 'option'>) => never;
147
151
  triggerTrailing?: (data: Omit<ComboboxTriggerDefSlotProps, 'option'>) => never;
152
+ tagLeading?: (data: ComboboxTriggerTagSlotProps) => never;
148
153
  empty?: (data?: object) => never;
149
154
  loading?: (data?: object) => never;
150
155
  header?: (data?: {
@@ -27,6 +27,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
27
27
  popupHeight: string | number;
28
28
  resetSearchTermOnBlur: boolean;
29
29
  resetSearchTermOnSelect: boolean;
30
+ noValueOnPlaceholder: boolean;
30
31
  tagRenderMode: "go" | "avatar" | "chip";
31
32
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
32
33
  comboboxRef: ({
@@ -728,6 +729,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
728
729
  popupHeight: string | number;
729
730
  resetSearchTermOnBlur: boolean;
730
731
  resetSearchTermOnSelect: boolean;
732
+ noValueOnPlaceholder: boolean;
731
733
  tagRenderMode: "go" | "avatar" | "chip";
732
734
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
733
735
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
@@ -771,6 +773,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
771
773
  popupHeight: string | number;
772
774
  resetSearchTermOnBlur: boolean;
773
775
  resetSearchTermOnSelect: boolean;
776
+ noValueOnPlaceholder: boolean;
774
777
  tagRenderMode: "go" | "avatar" | "chip";
775
778
  }> & Omit<Readonly<ComboboxProps> & Readonly<{
776
779
  onSearch?: ((value?: string | null | undefined) => any) | undefined;
@@ -789,7 +792,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
789
792
  onKeydownEscape?: ((event: import('../Combobox').ComboboxKeydownEvent, search?: string | undefined, isEmpty?: boolean | undefined) => any) | undefined;
790
793
  "onUpdate:search"?: ((value?: string | null | undefined) => any) | undefined;
791
794
  onFetch?: (() => any) | undefined;
792
- }>, "props" | "placeholder" | "slots" | "emit" | "getIconSize" | "getDisabled" | "getStatus" | "getSize" | "triggerRef" | "openModel" | "model" | "inputRef" | "onKeyDown" | "getItems" | "focusOnInput" | "getOptionDataset" | ("disabled" | "bordered" | "multiple" | "open" | "defaultOpen" | "prioritizePosition" | "placement" | "sideOffset" | "avoidCollisions" | "disableOutsidePointerEvents" | "zIndex" | "checkbox" | "trailingIcon" | "selectedItemIconAsTrailingIcon" | "indicatorIcon" | "loadingRowCount" | "clearOnChangeMultiple" | "samePopupWidth" | "popupHeight" | "resetSearchTermOnBlur" | "resetSearchTermOnSelect" | "tagRenderMode") | "isOptionSelected" | "getOptionByValue" | "getLabelByValue" | "getSingleByValue" | "getFlattenOption" | "getTagSize" | "comboboxInputBinding" | "comboboxTriggerBinding" | "searchModel" | "valuePlaceholder" | "selectOption" | "itemMap" | "highlightedOptionKey" | "comboboxInputFocused"> & import('vue').ShallowUnwrapRef<{
795
+ }>, "props" | "placeholder" | "slots" | "emit" | "getIconSize" | "getDisabled" | "getStatus" | "getSize" | "triggerRef" | "openModel" | "model" | "inputRef" | "onKeyDown" | "getItems" | "focusOnInput" | "getOptionDataset" | ("disabled" | "bordered" | "multiple" | "open" | "defaultOpen" | "prioritizePosition" | "placement" | "sideOffset" | "avoidCollisions" | "disableOutsidePointerEvents" | "zIndex" | "checkbox" | "trailingIcon" | "selectedItemIconAsTrailingIcon" | "indicatorIcon" | "loadingRowCount" | "clearOnChangeMultiple" | "samePopupWidth" | "popupHeight" | "resetSearchTermOnBlur" | "resetSearchTermOnSelect" | "noValueOnPlaceholder" | "tagRenderMode") | "isOptionSelected" | "getOptionByValue" | "getLabelByValue" | "getSingleByValue" | "getFlattenOption" | "getTagSize" | "comboboxInputBinding" | "comboboxTriggerBinding" | "searchModel" | "valuePlaceholder" | "selectOption" | "itemMap" | "highlightedOptionKey" | "comboboxInputFocused"> & import('vue').ShallowUnwrapRef<{
793
796
  isOptionSelected: (value?: string | undefined) => boolean;
794
797
  getOptionByValue: (value: string) => import('../Combobox').ComboboxFlattenOptionType | undefined;
795
798
  getLabelByValue: (value: string) => string | undefined;