@wizleap-inc/wiz-ui-next 2.37.0 → 2.38.1

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.
@@ -29,6 +29,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
29
29
  close: () => boolean;
30
30
  currentZIndex: import("vue").ComputedRef<number>;
31
31
  scrollY: number;
32
+ cleanupScrollLock: () => void;
32
33
  readonly ARIA_LABELS: {
33
34
  readonly PASSWORD_VISIBLE_TOGGLE: "パスワードの表示切り替え";
34
35
  readonly YEAR_SELECTOR_PREV: "前の年へ";
@@ -68,9 +69,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
68
69
  readonly CLOSE: "モーダルを閉じる";
69
70
  };
70
71
  };
72
+ readonly dialogMaskStyle: string;
71
73
  readonly dialogStyle: string;
72
74
  readonly dialogVisibleStyle: string;
73
- readonly dialogMaskStyle: string;
74
75
  readonly WizIconButton: import("vue").DefineComponent<{
75
76
  icon: {
76
77
  type: PropType<import('../../../components/icons').TIcon>;
@@ -88,6 +88,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
88
88
  activeItemIndex: import("vue").Ref<number | null>;
89
89
  hasFocus: import("vue").Ref<boolean>;
90
90
  isBorder: import("vue").Ref<boolean>;
91
+ allOptionsHaveChildren: boolean;
91
92
  valueToOption: import("vue").ComputedRef<Map<number, SearchInputOption>>;
92
93
  state: import("vue").ComputedRef<"default" | "active">;
93
94
  computedInputWidth: import("vue").ComputedRef<string>;
@@ -1059,6 +1060,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
1059
1060
  activeItemIndex: import("vue").Ref<number | null>;
1060
1061
  ITEM_HEIGHT: number;
1061
1062
  DIVIDER_HEIGHT: number;
1063
+ allOptionsHaveChildren: (options: SearchInputOption[]) => boolean;
1062
1064
  checkValues: import("vue").WritableComputedRef<number[]>;
1063
1065
  mutableSelectedItem: import("vue").ComputedRef<number[]>;
1064
1066
  optionsRef: import("vue").Ref<HTMLElement[] | undefined>;
@@ -34,6 +34,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
34
34
  activeItemIndex: import("vue").Ref<number | null>;
35
35
  ITEM_HEIGHT: number;
36
36
  DIVIDER_HEIGHT: number;
37
+ allOptionsHaveChildren: (options: SearchInputOption[]) => boolean;
37
38
  checkValues: import("vue").WritableComputedRef<number[]>;
38
39
  mutableSelectedItem: import("vue").ComputedRef<number[]>;
39
40
  optionsRef: import("vue").Ref<HTMLElement[] | undefined>;
@@ -1 +1,3 @@
1
+ import { SelectBoxOption } from "./types";
1
2
  export declare const levenshteinDistance: (s1: string, s2: string) => number;
3
+ export declare function filterOptions(options: SelectBoxOption[], searchText: string, threshold: number): SelectBoxOption[];
@@ -61,6 +61,18 @@ declare const _sfc_main: import("vue").DefineComponent<{
61
61
  type: StringConstructor;
62
62
  required: false;
63
63
  };
64
+ /**
65
+ * 検索対象に含む類似度の閾値を,0から1の範囲で指定します。
66
+ * 類似度は標準化レーベンシュタイン距離に基づいて計算され,0に近いほど類似しています。
67
+ * ただし,類似度の最小値が閾値を上回る場合は部分一致で検索します。
68
+ * @default 0.75
69
+ *
70
+ */
71
+ threshold: {
72
+ type: NumberConstructor;
73
+ required: false;
74
+ default: number;
75
+ };
64
76
  }, {
65
77
  props: any;
66
78
  emit: (event: "add" | "toggle" | "update:modelValue" | "unselect" | "setSearchValue", ...args: any[]) => void;
@@ -68,7 +80,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
68
80
  backspaceUnselectableRef: import("vue").Ref<any>;
69
81
  toggleDropdown: () => void;
70
82
  deepCopy: <T>(ary: T) => T;
71
- selectByLevenshteinAndPartialMatch: (options: SelectBoxOption[], target: string) => SelectBoxOption[];
72
83
  valueToOption: import("vue").ComputedRef<{
73
84
  [value: number]: SelectBoxOption;
74
85
  }>;
@@ -3001,6 +3012,18 @@ declare const _sfc_main: import("vue").DefineComponent<{
3001
3012
  type: StringConstructor;
3002
3013
  required: false;
3003
3014
  };
3015
+ /**
3016
+ * 検索対象に含む類似度の閾値を,0から1の範囲で指定します。
3017
+ * 類似度は標準化レーベンシュタイン距離に基づいて計算され,0に近いほど類似しています。
3018
+ * ただし,類似度の最小値が閾値を上回る場合は部分一致で検索します。
3019
+ * @default 0.75
3020
+ *
3021
+ */
3022
+ threshold: {
3023
+ type: NumberConstructor;
3024
+ required: false;
3025
+ default: number;
3026
+ };
3004
3027
  }>> & {
3005
3028
  onToggle?: ((...args: any[]) => any) | undefined;
3006
3029
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
@@ -3016,5 +3039,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
3016
3039
  multiSelectable: boolean;
3017
3040
  addable: boolean;
3018
3041
  showExLabel: boolean;
3042
+ threshold: number;
3019
3043
  }, {}>;
3020
3044
  export default _sfc_main;