@dao-style/core 1.11.0 → 1.11.1-beta.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.
@@ -12,3 +12,6 @@ export interface DaoVirtualSelectState {
12
12
  searchText: string;
13
13
  visible: boolean;
14
14
  }
15
+ export type SymbolOptionType = OptionType & {
16
+ [key: symbol]: Option;
17
+ };
@@ -3,3 +3,4 @@ import { type virtualSelectProps } from './props';
3
3
  export declare const getLabel: (option: OptionType, key: string) => import("./types").Option;
4
4
  export declare const getValue: (option: OptionType, key: string) => import("./types").Option;
5
5
  export declare const getShowLabel: (option: OptionType, { labelKey, valueKey }: Pick<virtualSelectProps, 'labelKey' | 'valueKey'>) => import("./types").Option;
6
+ export declare const OptionLoadingFlag: unique symbol;
@@ -609,7 +609,8 @@ declare const DaoVirtualSelect: {
609
609
  selectedOptions: import("vue").ComputedRef<OptionType[]>;
610
610
  selectedOptionsLabels: import("vue").ComputedRef<import("./types").Option[]>;
611
611
  isActive: (item: OptionType) => boolean;
612
- computedOptions: import("vue").ComputedRef<OptionType[]>;
612
+ computedOptions: import("vue").ComputedRef<import("./types").SymbolOptionType[]>;
613
+ OptionLoadingFlag: symbol;
613
614
  selectableOptions: import("vue").ComputedRef<OptionType[]>;
614
615
  isCheckedAllChecked: import("vue").ComputedRef<boolean>;
615
616
  isCheckedAllIndeterminate: import("vue").ComputedRef<boolean>;
@@ -618,6 +619,7 @@ declare const DaoVirtualSelect: {
618
619
  optionsShowLabelMap: import("vue").ComputedRef<WeakMap<OptionType, import("./types").Option>>;
619
620
  onSelect: (option: OptionType) => void;
620
621
  handleCheckAll: (checked: boolean) => void;
622
+ isDisabled: import("vue").ComputedRef<boolean>;
621
623
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "change" | "update:modelValue" | "search-change")[], string, {
622
624
  search: boolean | import("./types").DaoVirtualSelectSearchFn;
623
625
  modelValue: string | number | boolean | unknown[];
@@ -1142,7 +1144,8 @@ declare const DaoVirtualSelect: {
1142
1144
  selectedOptions: import("vue").ComputedRef<OptionType[]>;
1143
1145
  selectedOptionsLabels: import("vue").ComputedRef<import("./types").Option[]>;
1144
1146
  isActive: (item: OptionType) => boolean;
1145
- computedOptions: import("vue").ComputedRef<OptionType[]>;
1147
+ computedOptions: import("vue").ComputedRef<import("./types").SymbolOptionType[]>;
1148
+ OptionLoadingFlag: symbol;
1146
1149
  selectableOptions: import("vue").ComputedRef<OptionType[]>;
1147
1150
  isCheckedAllChecked: import("vue").ComputedRef<boolean>;
1148
1151
  isCheckedAllIndeterminate: import("vue").ComputedRef<boolean>;
@@ -1151,6 +1154,7 @@ declare const DaoVirtualSelect: {
1151
1154
  optionsShowLabelMap: import("vue").ComputedRef<WeakMap<OptionType, import("./types").Option>>;
1152
1155
  onSelect: (option: OptionType) => void;
1153
1156
  handleCheckAll: (checked: boolean) => void;
1157
+ isDisabled: import("vue").ComputedRef<boolean>;
1154
1158
  }> & {} & import("vue").ComponentCustomProperties & {};
1155
1159
  __isFragment?: undefined;
1156
1160
  __isTeleport?: undefined;
@@ -1639,7 +1643,8 @@ declare const DaoVirtualSelect: {
1639
1643
  selectedOptions: import("vue").ComputedRef<OptionType[]>;
1640
1644
  selectedOptionsLabels: import("vue").ComputedRef<import("./types").Option[]>;
1641
1645
  isActive: (item: OptionType) => boolean;
1642
- computedOptions: import("vue").ComputedRef<OptionType[]>;
1646
+ computedOptions: import("vue").ComputedRef<import("./types").SymbolOptionType[]>;
1647
+ OptionLoadingFlag: symbol;
1643
1648
  selectableOptions: import("vue").ComputedRef<OptionType[]>;
1644
1649
  isCheckedAllChecked: import("vue").ComputedRef<boolean>;
1645
1650
  isCheckedAllIndeterminate: import("vue").ComputedRef<boolean>;
@@ -1648,6 +1653,7 @@ declare const DaoVirtualSelect: {
1648
1653
  optionsShowLabelMap: import("vue").ComputedRef<WeakMap<OptionType, import("./types").Option>>;
1649
1654
  onSelect: (option: OptionType) => void;
1650
1655
  handleCheckAll: (checked: boolean) => void;
1656
+ isDisabled: import("vue").ComputedRef<boolean>;
1651
1657
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "change" | "update:modelValue" | "search-change")[], "open" | "close" | "change" | "update:modelValue" | "search-change", {
1652
1658
  search: boolean | import("./types").DaoVirtualSelectSearchFn;
1653
1659
  modelValue: string | number | boolean | unknown[];
@@ -1,6 +1,6 @@
1
1
  import type { Options as PopperOptions } from '@popperjs/core';
2
2
  import 'vue-virtual-scroller/dist/vue-virtual-scroller.css';
3
- import type { OptionType, Option } from './types';
3
+ import type { OptionType, Option, SymbolOptionType } from './types';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  search: {
6
6
  type: import("vue").PropType<boolean | import("./types").DaoVirtualSelectSearchFn>;
@@ -479,7 +479,8 @@ declare const _default: import("vue").DefineComponent<{
479
479
  selectedOptions: import("vue").ComputedRef<OptionType[]>;
480
480
  selectedOptionsLabels: import("vue").ComputedRef<Option[]>;
481
481
  isActive: (item: OptionType) => boolean;
482
- computedOptions: import("vue").ComputedRef<OptionType[]>;
482
+ computedOptions: import("vue").ComputedRef<SymbolOptionType[]>;
483
+ OptionLoadingFlag: symbol;
483
484
  selectableOptions: import("vue").ComputedRef<OptionType[]>;
484
485
  isCheckedAllChecked: import("vue").ComputedRef<boolean>;
485
486
  isCheckedAllIndeterminate: import("vue").ComputedRef<boolean>;
@@ -488,6 +489,7 @@ declare const _default: import("vue").DefineComponent<{
488
489
  optionsShowLabelMap: import("vue").ComputedRef<WeakMap<OptionType, Option>>;
489
490
  onSelect: (option: OptionType) => void;
490
491
  handleCheckAll: (checked: boolean) => void;
492
+ isDisabled: import("vue").ComputedRef<boolean>;
491
493
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "change" | "update:modelValue" | "search-change")[], "open" | "close" | "change" | "update:modelValue" | "search-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
492
494
  search: {
493
495
  type: import("vue").PropType<boolean | import("./types").DaoVirtualSelectSearchFn>;