@koi-design/uxd-ui 14.0.39 → 14.0.41

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.
Files changed (95) hide show
  1. package/es/components/Calendar/Calendar.vue.d.ts +3 -3
  2. package/es/components/Calendar/Header.vue.d.ts +3 -3
  3. package/es/components/Calendar/index.d.ts +6 -6
  4. package/es/components/Cascader/Cascader.d.ts +1 -1
  5. package/es/components/DatePicker/DatePicker.vue.d.ts +3 -3
  6. package/es/components/DatePicker/Panel/DatePickerPanel.vue.d.ts +3 -3
  7. package/es/components/DatePicker/index.d.ts +6 -6
  8. package/es/components/Select/RefSelect.vue.d.ts +59 -1017
  9. package/es/components/Select/Select.d.ts +4 -4
  10. package/es/components/Select/Select.type.d.ts +1 -1
  11. package/es/components/Select/Select.type.mjs +1 -1
  12. package/es/components/Select/Select.type.mjs.map +1 -1
  13. package/es/components/Select/Selection/Multiple.vue.d.ts +2 -2
  14. package/es/components/Select/Selection/Multiple.vue_vue_type_script_lang.mjs +1 -1
  15. package/es/components/Select/Selection/Multiple.vue_vue_type_script_lang.mjs.map +1 -1
  16. package/es/components/Select/Selection/MultipleBase.d.ts +253 -0
  17. package/es/components/Select/Selection/MultipleBase.mjs +317 -0
  18. package/es/components/Select/Selection/MultipleBase.mjs.map +1 -0
  19. package/es/components/Select/Selection/MultipleOverFlow.mjs +202 -0
  20. package/es/components/Select/Selection/MultipleOverFlow.mjs.map +1 -0
  21. package/es/components/Select/Selection/MultipleOverFlow.vue.d.ts +1191 -0
  22. package/es/components/Select/Selection/MultipleOverFlow.vue_vue_type_script_lang.mjs +265 -0
  23. package/es/components/Select/Selection/MultipleOverFlow.vue_vue_type_script_lang.mjs.map +1 -0
  24. package/es/components/Select/Selection/Selection.mjs +90 -67
  25. package/es/components/Select/Selection/Selection.mjs.map +1 -1
  26. package/es/components/Select/Selection/Selection.vue.d.ts +57 -1015
  27. package/es/components/Select/hooks/useMultipleBase.d.ts +32 -0
  28. package/es/components/Select/hooks/useMultipleBase.mjs +211 -0
  29. package/es/components/Select/hooks/useMultipleBase.mjs.map +1 -0
  30. package/es/components/Select/index.d.ts +3 -3
  31. package/es/components/TreeSelect/TreeSelect.vue.d.ts +57 -1015
  32. package/es/components/TreeSelect/index.d.ts +1065 -2981
  33. package/lib/components/Calendar/Calendar.vue.d.ts +3 -3
  34. package/lib/components/Calendar/Header.vue.d.ts +3 -3
  35. package/lib/components/Calendar/index.d.ts +6 -6
  36. package/lib/components/Cascader/Cascader.d.ts +1 -1
  37. package/lib/components/DatePicker/DatePicker.vue.d.ts +3 -3
  38. package/lib/components/DatePicker/Panel/DatePickerPanel.vue.d.ts +3 -3
  39. package/lib/components/DatePicker/index.d.ts +6 -6
  40. package/lib/components/Select/RefSelect.vue.d.ts +59 -1017
  41. package/lib/components/Select/Select.d.ts +4 -4
  42. package/lib/components/Select/Select.type.d.ts +1 -1
  43. package/lib/components/Select/Select.type.js +1 -1
  44. package/lib/components/Select/Select.type.js.map +1 -1
  45. package/lib/components/Select/Selection/Multiple.vue.d.ts +2 -2
  46. package/lib/components/Select/Selection/Multiple.vue_vue_type_script_lang.js +1 -1
  47. package/lib/components/Select/Selection/Multiple.vue_vue_type_script_lang.js.map +1 -1
  48. package/lib/components/Select/Selection/MultipleBase.d.ts +253 -0
  49. package/lib/components/Select/Selection/MultipleBase.js +326 -0
  50. package/lib/components/Select/Selection/MultipleBase.js.map +1 -0
  51. package/lib/components/Select/Selection/MultipleOverFlow.js +206 -0
  52. package/lib/components/Select/Selection/MultipleOverFlow.js.map +1 -0
  53. package/lib/components/Select/Selection/MultipleOverFlow.vue.d.ts +1191 -0
  54. package/lib/components/Select/Selection/MultipleOverFlow.vue_vue_type_script_lang.js +269 -0
  55. package/lib/components/Select/Selection/MultipleOverFlow.vue_vue_type_script_lang.js.map +1 -0
  56. package/lib/components/Select/Selection/Selection.js +89 -66
  57. package/lib/components/Select/Selection/Selection.js.map +1 -1
  58. package/lib/components/Select/Selection/Selection.vue.d.ts +57 -1015
  59. package/lib/components/Select/hooks/useMultipleBase.d.ts +32 -0
  60. package/lib/components/Select/hooks/useMultipleBase.js +216 -0
  61. package/lib/components/Select/hooks/useMultipleBase.js.map +1 -0
  62. package/lib/components/Select/index.d.ts +3 -3
  63. package/lib/components/TreeSelect/TreeSelect.vue.d.ts +57 -1015
  64. package/lib/components/TreeSelect/index.d.ts +1065 -2981
  65. package/package.json +1 -1
  66. package/styles/components/cascader/index.css +1 -1
  67. package/styles/components/form/index.css +1 -1
  68. package/styles/components/form/index.less +12 -1
  69. package/styles/components/form/var.less +1 -1
  70. package/styles/components/select/index.css +1 -1
  71. package/styles/components/select/index.less +10 -0
  72. package/styles/index.css +1 -1
  73. package/types/components/Calendar/Calendar.vue.d.ts +3 -3
  74. package/types/components/Calendar/Header.vue.d.ts +3 -3
  75. package/types/components/Calendar/index.d.ts +6 -6
  76. package/types/components/Cascader/Cascader.d.ts +1 -1
  77. package/types/components/DatePicker/DatePicker.vue.d.ts +3 -3
  78. package/types/components/DatePicker/Panel/DatePickerPanel.vue.d.ts +3 -3
  79. package/types/components/DatePicker/index.d.ts +6 -6
  80. package/types/components/Select/RefSelect.vue.d.ts +59 -1017
  81. package/types/components/Select/Select.d.ts +4 -4
  82. package/types/components/Select/Select.type.d.ts +1 -1
  83. package/types/components/Select/Selection/Multiple.vue.d.ts +2 -2
  84. package/types/components/Select/Selection/MultipleBase.d.ts +253 -0
  85. package/types/components/Select/Selection/MultipleOverFlow.vue.d.ts +1191 -0
  86. package/types/components/Select/Selection/Selection.vue.d.ts +57 -1015
  87. package/types/components/Select/hooks/useMultipleBase.d.ts +32 -0
  88. package/types/components/Select/index.d.ts +3 -3
  89. package/types/components/TreeSelect/TreeSelect.vue.d.ts +57 -1015
  90. package/types/components/TreeSelect/index.d.ts +1065 -2981
  91. package/uxd-ui.css +1 -1
  92. package/uxd-ui.esm.min.mjs +7 -7
  93. package/uxd-ui.esm.mjs +722 -535
  94. package/uxd-ui.umd.js +722 -535
  95. package/uxd-ui.umd.min.js +7 -7
@@ -65,7 +65,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
65
65
  type: import("vue").PropType<(rest: import("./Select.type").DisplayOption[]) => string | import("vue").VNodeChild | import("vue/jsx-runtime").JSX.Element>;
66
66
  };
67
67
  maxTagTextLength: {
68
- type: NumberConstructor;
68
+ type: import("vue").PropType<number | "responsive">;
69
69
  };
70
70
  tagRender: {
71
71
  type: import("vue").PropType<import("./Select.type").TagRenderFunction>;
@@ -288,7 +288,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
288
288
  type: import("vue").PropType<(rest: import("./Select.type").DisplayOption[]) => string | import("vue").VNodeChild | import("vue/jsx-runtime").JSX.Element>;
289
289
  };
290
290
  maxTagTextLength: {
291
- type: NumberConstructor;
291
+ type: import("vue").PropType<number | "responsive">;
292
292
  };
293
293
  tagRender: {
294
294
  type: import("vue").PropType<import("./Select.type").TagRenderFunction>;
@@ -444,10 +444,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
444
444
  loading: boolean;
445
445
  filterable: boolean;
446
446
  titleKey: string;
447
- tagTransitionName: string;
448
447
  maxTagTooltip: boolean;
449
- isShowTagTooltip: boolean;
450
448
  popoverProps: import("@uxd-ui/index").PopoverProps;
449
+ isShowTagTooltip: boolean;
450
+ tagTransitionName: string;
451
451
  allowCreate: boolean;
452
452
  allowEmptyValue: boolean;
453
453
  showEmpty: boolean;
@@ -108,7 +108,7 @@ export declare const selectProps: {
108
108
  type: PropType<(rest: DisplayOption[]) => string | VNodeChild | JSX.Element>;
109
109
  };
110
110
  maxTagTextLength: {
111
- type: NumberConstructor;
111
+ type: PropType<number | "responsive">;
112
112
  };
113
113
  tagRender: {
114
114
  type: PropType<TagRenderFunction>;
@@ -69,7 +69,7 @@ const selectProps = {
69
69
  type: Function
70
70
  },
71
71
  maxTagTextLength: {
72
- type: Number
72
+ type: [Number, String]
73
73
  },
74
74
  tagRender: {
75
75
  type: Function
@@ -1 +1 @@
1
- {"version":3,"file":"Select.type.mjs","sources":["../../../../src/components/Select/Select.type.ts"],"sourcesContent":["import type { Component, CSSProperties, ExtractPropTypes, PropType, VNodeChild } from 'vue';\nimport type { JSX } from 'vue/jsx-runtime';\nimport { normalSizeMap } from '../../utils/globalType';\nimport type { IconPropType, NormalSizeMap } from '../../utils/globalType';\nimport { oneOf } from '../../utils/propsValidators';\nimport type Select from './Select';\nimport type { PopoverProps } from '../Popover';\nimport type { Placements } from '../../utils';\nimport placements from '../../utils/placements';\n\nexport interface SelectOption {\n value: string | number;\n label?: string;\n // slot?: any\n disabled?: boolean;\n group?: boolean;\n children?: SelectOption[];\n [key: string]: any;\n}\n\nexport type InnerSelectOption = SelectOption & {\n selected: boolean;\n children?: InnerSelectOption[];\n};\n\nexport interface DisplayOption {\n value: any;\n [key: string]: any;\n displayLabel: string | VNodeChild | JSX.Element;\n}\n\nexport type OptionFilterMethod = (option: SelectOption, searchText: string) => boolean;\n\nexport type SingleValueType = string | number;\n\nexport type SelectValueType = SingleValueType | SingleValueType[];\n\nexport type SelectOptionGroupComponent = Component & {\n isSelectOptionGroup?: boolean;\n};\n\nexport type SelectOptionComponent = Component & { isSelectOption?: boolean };\n\nexport interface SelectBaseProps {\n options?: SelectOption[];\n filterable?: boolean;\n filterProp?: string;\n filterMethod?: OptionFilterMethod;\n}\n\nexport interface TagRenderParam extends SelectOption {\n closable: boolean;\n onClose: (e: any) => void;\n}\n\nexport type TagRenderFunction = (param: TagRenderParam) => VNodeChild;\n\nexport const selectProps = {\n modelValue: {\n type: [String, Number, Array] as PropType<SelectValueType>\n },\n options: {\n type: Array as PropType<SelectOption[]>\n },\n size: {\n type: String as PropType<NormalSizeMap>,\n default: 'default',\n validator: oneOf(normalSizeMap)\n },\n placeholder: {\n type: String\n },\n notFoundText: {\n type: String\n },\n dropdownMenuClass: {\n type: String\n },\n dropdownMenuStyle: {\n type: Object as PropType<CSSProperties>\n },\n\n prefixIcon: {\n type: [String, Object, Function] as PropType<IconPropType>\n },\n suffixIcon: {\n type: [String, Object, Function] as PropType<IconPropType>\n },\n clearIcon: {\n type: [String, Object, Function] as PropType<IconPropType>\n },\n removeIcon: {\n type: [String, Object, Function] as PropType<IconPropType>\n },\n allowCreate: {\n type: Boolean,\n default: false\n },\n allowEmptyValue: {\n type: Boolean,\n default: false\n },\n showEmpty: {\n type: Boolean,\n default: true\n },\n loading: {\n type: Boolean,\n default: undefined as undefined\n },\n showArrow: {\n type: Boolean,\n default: true\n },\n multiple: {\n type: Boolean,\n default: false\n },\n maxTagCount: {\n type: Number\n },\n maxTagPlaceholder: {\n type: Function as PropType<(rest: DisplayOption[]) => string | VNodeChild | JSX.Element>\n },\n maxTagTextLength: {\n type: Number\n },\n tagRender: {\n type: Function as PropType<TagRenderFunction>\n },\n filterable: {\n type: Boolean,\n default: false\n },\n filterMethod: {\n type: [Function, Boolean] as PropType<boolean | OptionFilterMethod>,\n default: undefined as undefined\n },\n filterProp: {\n type: String\n },\n displayProp: {\n type: String,\n default: 'slot'\n },\n disabled: {\n type: Boolean,\n default: false\n },\n clearable: {\n type: Boolean,\n default: false\n },\n open: {\n type: Boolean,\n default: undefined as undefined\n },\n tagTransitionName: {\n type: String,\n default: 'fade'\n },\n defaultActiveFirst: {\n type: Boolean,\n default: true\n },\n tokenSeparators: {\n type: Array as PropType<string[]>\n },\n autoClearSearchValue: {\n type: Boolean,\n default: true\n },\n dropdownHeight: {\n type: Number,\n default: 288\n },\n dropdownItemHeight: {\n type: Number,\n default: 36\n },\n selectAll: {\n type: Boolean,\n default: false\n },\n multipleLimit: {\n type: Number,\n default: 0\n },\n maxTagTooltip: {\n type: Boolean,\n default: false\n },\n isShowTagTooltip: {\n type: Boolean,\n default: false\n },\n maxTagTooltipWidth: {\n type: Number\n },\n disabledTriggerForm: {\n type: Boolean,\n default: false\n },\n sortByOption: {\n type: Boolean,\n default: false\n },\n loadingText: {\n type: String\n },\n popoverProps: {\n type: Object as PropType<PopoverProps>,\n default: () => ({})\n },\n dropdownMenuWidth: {\n type: [Number, String] as PropType<number | 'container'>,\n default: 'container'\n },\n variant: {\n type: String as PropType<'surface' | 'soft' | 'borderless' | 'underline'>,\n default: 'surface',\n validator: oneOf(['surface', 'soft', 'borderless', 'underline'])\n },\n label: {\n type: String\n },\n labelColon: {\n type: Boolean,\n default: true\n },\n required: {\n type: Boolean,\n default: false\n },\n placement: {\n type: String as PropType<Placements>,\n validator: oneOf(placements)\n },\n arrowRotate: {\n type: Boolean,\n default: true\n },\n direction: {\n type: String as PropType<'ltr' | 'rtl'>\n },\n showNoOptionValue: {\n type: Boolean,\n default: false\n },\n titleKey: {\n type: String,\n default: 'title'\n }\n};\n\nexport type SelectProps = ExtractPropTypes<typeof selectProps>;\n\nexport const selectEmits = {\n focus: (ev: Event) => ev instanceof Event,\n blur: (ev: Event) => ev instanceof Event,\n change: (val: SelectValueType, options: SelectOption[] | SelectOption) => {\n if (Array.isArray(val)) {\n if (val.length === 0) {\n return true;\n }\n return val.every((x) => val === undefined || typeof x === 'string' || typeof x === 'number') && Array.isArray(options);\n }\n if (val === undefined) {\n return true;\n }\n return (typeof val === 'string' || typeof val === 'number') && !Array.isArray(options) && typeof options === 'object';\n },\n mousedown: (ev: Event) => ev instanceof Event,\n 'dropdown-visible-change': (val: boolean) => typeof val === 'boolean',\n 'update:modelValue': (val: SelectValueType) => {\n if (Array.isArray(val)) {\n if (val.length === 0) {\n return true;\n }\n return val.every((x) => typeof x === 'string' || typeof x === 'number');\n }\n if (val === undefined) {\n return true;\n }\n return typeof val === 'string' || typeof val === 'number';\n },\n search: (val: string) => typeof val === 'string',\n clear: () => true,\n keydown: (ev: KeyboardEvent) => ev instanceof KeyboardEvent,\n create: (val: string) => typeof val === 'string',\n 'scroll-at-top': () => true,\n 'scroll-at-bottom': () => true,\n 'click-outside': (e: Event) => e instanceof Event\n};\n\nexport type SelectEmits = typeof selectEmits;\n\nexport interface SelectContext {\n focus: (arg: any) => void;\n blur: (arg: any) => void;\n}\n\nexport type SelectInstanceType = InstanceType<typeof Select>;\n\nexport const optionProps = {\n value: {\n type: [String, Number] as PropType<string | number>\n },\n label: {\n type: [String, Number] as PropType<string | number>\n },\n disabled: {\n type: Boolean,\n default: undefined as undefined\n },\n title: {\n type: [String, Number] as PropType<string | number>\n }\n};\n\nexport type SelectOptionProps = ExtractPropTypes<typeof optionProps>;\n"],"names":[],"mappings":";;;;MAyDa,cAAc;AAAA,EACzB,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,QAAQ,KAAK;AAAA;AAC9B,EACA,SAAS;AAAA,IACP,MAAM;AAAA;AACR,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW,MAAM,aAAa;AAAA;AAChC,EACA,aAAa;AAAA,IACX,MAAM;AAAA;AACR,EACA,cAAc;AAAA,IACZ,MAAM;AAAA;AACR,EACA,mBAAmB;AAAA,IACjB,MAAM;AAAA;AACR,EACA,mBAAmB;AAAA,IACjB,MAAM;AAAA;AACR,EAEA,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,QAAQ,QAAQ;AAAA;AACjC,EACA,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,QAAQ,QAAQ;AAAA;AACjC,EACA,WAAW;AAAA,IACT,MAAM,CAAC,QAAQ,QAAQ,QAAQ;AAAA;AACjC,EACA,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,QAAQ,QAAQ;AAAA;AACjC,EACA,aAAa;AAAA,IACX,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,WAAW;AAAA,IACT,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,WAAW;AAAA,IACT,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;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O,YAAY;AAAA;AAC/G,EACA,WAAW,CAAC,OAAc,cAAc;AAAA,EACxC,2BAA2B,CAAC,QAAiB,OAAO,QAAQ;AAAA,EAC5D,qBAAqB,CAAC,QAAyB;AAC7C,QAAI,MAAM,QAAQ,GAAG,GAAG;AACtB,UAAI,IAAI,WAAW,GAAG;AACpB,eAAO;AAAA;AAET,aAAO,IAAI,MAAM,CAAC,MAAM,OAAO,MAAM,YAAY,OAAO,MAAM,QAAQ;AAAA;AAExE,QAAI,QAAQ,QAAW;AACrB,aAAO;AAAA;AAET,WAAO,OAAO,QAAQ,YAAY,OAAO,QAAQ;AAAA;AACnD,EACA,QAAQ,CAAC,QAAgB,OAAO,QAAQ;AAAA,EACxC,OAAO,MAAM;AAAA,EACb,SAAS,CAAC,OAAsB,cAAc;AAAA,EAC9C,QAAQ,CAAC,QAAgB,OAAO,QAAQ;AAAA,EACxC,iBAAiB,MAAM;AAAA,EACvB,oBAAoB,MAAM;AAAA,EAC1B,iBAAiB,CAAC,MAAa,aAAa;AAC9C;MAWa,cAAc;AAAA,EACzB,OAAO;AAAA,IACL,MAAM,CAAC,QAAQ,MAAM;AAAA;AACvB,EACA,OAAO;AAAA,IACL,MAAM,CAAC,QAAQ,MAAM;AAAA;AACvB,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,OAAO;AAAA,IACL,MAAM,CAAC,QAAQ,MAAM;AAAA;AAEzB;;;;"}
1
+ {"version":3,"file":"Select.type.mjs","sources":["../../../../src/components/Select/Select.type.ts"],"sourcesContent":["import type { Component, CSSProperties, ExtractPropTypes, PropType, VNodeChild } from 'vue';\nimport type { JSX } from 'vue/jsx-runtime';\nimport { normalSizeMap } from '../../utils/globalType';\nimport type { IconPropType, NormalSizeMap } from '../../utils/globalType';\nimport { oneOf } from '../../utils/propsValidators';\nimport type Select from './Select';\nimport type { PopoverProps } from '../Popover';\nimport type { Placements } from '../../utils';\nimport placements from '../../utils/placements';\n\nexport interface SelectOption {\n value: string | number;\n label?: string;\n // slot?: any\n disabled?: boolean;\n group?: boolean;\n children?: SelectOption[];\n [key: string]: any;\n}\n\nexport type InnerSelectOption = SelectOption & {\n selected: boolean;\n children?: InnerSelectOption[];\n};\n\nexport interface DisplayOption {\n value: any;\n [key: string]: any;\n displayLabel: string | VNodeChild | JSX.Element;\n}\n\nexport type OptionFilterMethod = (option: SelectOption, searchText: string) => boolean;\n\nexport type SingleValueType = string | number;\n\nexport type SelectValueType = SingleValueType | SingleValueType[];\n\nexport type SelectOptionGroupComponent = Component & {\n isSelectOptionGroup?: boolean;\n};\n\nexport type SelectOptionComponent = Component & { isSelectOption?: boolean };\n\nexport interface SelectBaseProps {\n options?: SelectOption[];\n filterable?: boolean;\n filterProp?: string;\n filterMethod?: OptionFilterMethod;\n}\n\nexport interface TagRenderParam extends SelectOption {\n closable: boolean;\n onClose: (e: any) => void;\n}\n\nexport type TagRenderFunction = (param: TagRenderParam) => VNodeChild;\n\nexport const selectProps = {\n modelValue: {\n type: [String, Number, Array] as PropType<SelectValueType>\n },\n options: {\n type: Array as PropType<SelectOption[]>\n },\n size: {\n type: String as PropType<NormalSizeMap>,\n default: 'default',\n validator: oneOf(normalSizeMap)\n },\n placeholder: {\n type: String\n },\n notFoundText: {\n type: String\n },\n dropdownMenuClass: {\n type: String\n },\n dropdownMenuStyle: {\n type: Object as PropType<CSSProperties>\n },\n\n prefixIcon: {\n type: [String, Object, Function] as PropType<IconPropType>\n },\n suffixIcon: {\n type: [String, Object, Function] as PropType<IconPropType>\n },\n clearIcon: {\n type: [String, Object, Function] as PropType<IconPropType>\n },\n removeIcon: {\n type: [String, Object, Function] as PropType<IconPropType>\n },\n allowCreate: {\n type: Boolean,\n default: false\n },\n allowEmptyValue: {\n type: Boolean,\n default: false\n },\n showEmpty: {\n type: Boolean,\n default: true\n },\n loading: {\n type: Boolean,\n default: undefined as undefined\n },\n showArrow: {\n type: Boolean,\n default: true\n },\n multiple: {\n type: Boolean,\n default: false\n },\n maxTagCount: {\n type: Number\n },\n maxTagPlaceholder: {\n type: Function as PropType<(rest: DisplayOption[]) => string | VNodeChild | JSX.Element>\n },\n maxTagTextLength: {\n type: [Number, String] as PropType<number | 'responsive'>\n },\n tagRender: {\n type: Function as PropType<TagRenderFunction>\n },\n filterable: {\n type: Boolean,\n default: false\n },\n filterMethod: {\n type: [Function, Boolean] as PropType<boolean | OptionFilterMethod>,\n default: undefined as undefined\n },\n filterProp: {\n type: String\n },\n displayProp: {\n type: String,\n default: 'slot'\n },\n disabled: {\n type: Boolean,\n default: false\n },\n clearable: {\n type: Boolean,\n default: false\n },\n open: {\n type: Boolean,\n default: undefined as undefined\n },\n tagTransitionName: {\n type: String,\n default: 'fade'\n },\n defaultActiveFirst: {\n type: Boolean,\n default: true\n },\n tokenSeparators: {\n type: Array as PropType<string[]>\n },\n autoClearSearchValue: {\n type: Boolean,\n default: true\n },\n dropdownHeight: {\n type: Number,\n default: 288\n },\n dropdownItemHeight: {\n type: Number,\n default: 36\n },\n selectAll: {\n type: Boolean,\n default: false\n },\n multipleLimit: {\n type: Number,\n default: 0\n },\n maxTagTooltip: {\n type: Boolean,\n default: false\n },\n isShowTagTooltip: {\n type: Boolean,\n default: false\n },\n maxTagTooltipWidth: {\n type: Number\n },\n disabledTriggerForm: {\n type: Boolean,\n default: false\n },\n sortByOption: {\n type: Boolean,\n default: false\n },\n loadingText: {\n type: String\n },\n popoverProps: {\n type: Object as PropType<PopoverProps>,\n default: () => ({})\n },\n dropdownMenuWidth: {\n type: [Number, String] as PropType<number | 'container'>,\n default: 'container'\n },\n variant: {\n type: String as PropType<'surface' | 'soft' | 'borderless' | 'underline'>,\n default: 'surface',\n validator: oneOf(['surface', 'soft', 'borderless', 'underline'])\n },\n label: {\n type: String\n },\n labelColon: {\n type: Boolean,\n default: true\n },\n required: {\n type: Boolean,\n default: false\n },\n placement: {\n type: String as PropType<Placements>,\n validator: oneOf(placements)\n },\n arrowRotate: {\n type: Boolean,\n default: true\n },\n direction: {\n type: String as PropType<'ltr' | 'rtl'>\n },\n showNoOptionValue: {\n type: Boolean,\n default: false\n },\n titleKey: {\n type: String,\n default: 'title'\n }\n};\n\nexport type SelectProps = ExtractPropTypes<typeof selectProps>;\n\nexport const selectEmits = {\n focus: (ev: Event) => ev instanceof Event,\n blur: (ev: Event) => ev instanceof Event,\n change: (val: SelectValueType, options: SelectOption[] | SelectOption) => {\n if (Array.isArray(val)) {\n if (val.length === 0) {\n return true;\n }\n return val.every((x) => val === undefined || typeof x === 'string' || typeof x === 'number') && Array.isArray(options);\n }\n if (val === undefined) {\n return true;\n }\n return (typeof val === 'string' || typeof val === 'number') && !Array.isArray(options) && typeof options === 'object';\n },\n mousedown: (ev: Event) => ev instanceof Event,\n 'dropdown-visible-change': (val: boolean) => typeof val === 'boolean',\n 'update:modelValue': (val: SelectValueType) => {\n if (Array.isArray(val)) {\n if (val.length === 0) {\n return true;\n }\n return val.every((x) => typeof x === 'string' || typeof x === 'number');\n }\n if (val === undefined) {\n return true;\n }\n return typeof val === 'string' || typeof val === 'number';\n },\n search: (val: string) => typeof val === 'string',\n clear: () => true,\n keydown: (ev: KeyboardEvent) => ev instanceof KeyboardEvent,\n create: (val: string) => typeof val === 'string',\n 'scroll-at-top': () => true,\n 'scroll-at-bottom': () => true,\n 'click-outside': (e: Event) => e instanceof Event\n};\n\nexport type SelectEmits = typeof selectEmits;\n\nexport interface SelectContext {\n focus: (arg: any) => void;\n blur: (arg: any) => void;\n}\n\nexport type SelectInstanceType = InstanceType<typeof Select>;\n\nexport const optionProps = {\n value: {\n type: [String, Number] as PropType<string | number>\n },\n label: {\n type: [String, Number] as PropType<string | number>\n },\n disabled: {\n type: Boolean,\n default: undefined as undefined\n },\n title: {\n type: [String, Number] as PropType<string | number>\n }\n};\n\nexport type SelectOptionProps = ExtractPropTypes<typeof optionProps>;\n"],"names":[],"mappings":";;;;MAyDa,cAAc;AAAA,EACzB,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,QAAQ,K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AQ,QAAW;AACrB,aAAO;AAAA;AAET,WAAO,OAAO,QAAQ,YAAY,OAAO,QAAQ;AAAA;AACnD,EACA,QAAQ,CAAC,QAAgB,OAAO,QAAQ;AAAA,EACxC,OAAO,MAAM;AAAA,EACb,SAAS,CAAC,OAAsB,cAAc;AAAA,EAC9C,QAAQ,CAAC,QAAgB,OAAO,QAAQ;AAAA,EACxC,iBAAiB,MAAM;AAAA,EACvB,oBAAoB,MAAM;AAAA,EAC1B,iBAAiB,CAAC,MAAa,aAAa;AAC9C;MAWa,cAAc;AAAA,EACzB,OAAO;AAAA,IACL,MAAM,CAAC,QAAQ,MAAM;AAAA;AACvB,EACA,OAAO;AAAA,IACL,MAAM,CAAC,QAAQ,MAAM;AAAA;AACvB,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,OAAO;AAAA,IACL,MAAM,CAAC,QAAQ,MAAM;AAAA;AAEzB;;;;"}
@@ -36,7 +36,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
36
36
  type: NumberConstructor;
37
37
  };
38
38
  maxTagTextLength: {
39
- type: NumberConstructor;
39
+ type: (StringConstructor | NumberConstructor)[];
40
40
  };
41
41
  maxTagPlaceholder: {
42
42
  type: PropType<(rest: DisplayOption[]) => string | VNodeChild | JSX.Element>;
@@ -118,7 +118,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
118
118
  type: NumberConstructor;
119
119
  };
120
120
  maxTagTextLength: {
121
- type: NumberConstructor;
121
+ type: (StringConstructor | NumberConstructor)[];
122
122
  };
123
123
  maxTagPlaceholder: {
124
124
  type: PropType<(rest: DisplayOption[]) => string | VNodeChild | JSX.Element>;
@@ -51,7 +51,7 @@ var _sfc_main = defineComponent({
51
51
  type: Number
52
52
  },
53
53
  maxTagTextLength: {
54
- type: Number
54
+ type: [Number, String]
55
55
  },
56
56
  maxTagPlaceholder: {
57
57
  type: Function,
@@ -1 +1 @@
1
- {"version":3,"file":"Multiple.vue_vue_type_script_lang.mjs","sources":["../../../../../src/components/Select/Selection/Multiple.vue"],"sourcesContent":["<template>\n <!-- <transition-group :appear=\"motionAppear\" :name=\"tagTransitionName\"> -->\n <template v-for=\"item in displayValues\" :key=\"item.key\">\n <span\n v-if=\"isNotRender\"\n :class=\"{\n [`${item.class}`]: item.class,\n [`${prefixCls}-selection-item`]: true,\n [`${prefixCls}-selection-item-disabled`]: item.disabled\n }\"\n >\n <template v-if=\"item.key === REST_TAG_KEY || isShowTagTooltip\">\n <UPopover\n :disabled=\"!maxTagTooltip\"\n trigger=\"hover\"\n :dropdown-class=\"`${prefixCls}-dropdown-tooltip`\"\n :show-arrow=\"true\"\n placement=\"top\"\n v-bind=\"popoverProps\"\n >\n <span :class=\"`${prefixCls}-selection-item-content`\" :title=\"item.title\">\n <Render :render=\"getRender(item.displayLabel)\" />\n </span>\n <template #content>\n <div :class=\"`${prefixCls}-selection-tooltip`\" :style=\"{ maxWidth: `${maxTagTooltipWidth}px` }\">\n <span\n v-for=\"tipItem in values\"\n :key=\"tipItem.key\"\n :class=\"{\n [`${prefixCls}-selection-item`]: true\n }\"\n >\n <span :class=\"`${prefixCls}-selection-item-content`\" :title=\"tipItem.title\">\n <Render :render=\"getRender(tipItem.displayLabel)\" />\n </span>\n <UIcon\n v-if=\"closable(tipItem)\"\n :class=\"`${prefixCls}-selection-item-remove`\"\n @mousedown.stop.prevent\n @click=\"(e:any) => onClose(tipItem.value, e)\"\n >\n <X />\n </UIcon>\n </span>\n </div>\n </template>\n </UPopover>\n </template>\n <template v-else>\n <span :class=\"`${prefixCls}-selection-item-content`\" :title=\"item.title\">\n <!-- {{ item.displayLabel }} -->\n <Render :render=\"getRender(item.displayLabel)\" />\n </span>\n <UIcon\n v-if=\"closable(item)\"\n :class=\"`${prefixCls}-selection-item-remove`\"\n @mousedown.stop.prevent\n @click=\"(e: any) => onClose(item.value, e)\"\n >\n <component :is=\"removeIcon\" v-if=\"removeIcon\" />\n <X v-else />\n </UIcon>\n </template>\n </span>\n <span v-else :class=\"item.class\" @mousedown.stop.prevent>\n <Render\n :render=\"\n () => {\n return tagRender?.({\n ...item,\n closable: closable(item),\n onClose: (e: any) => {\n onClose(item.value, e);\n }\n });\n }\n \"\n />\n </span>\n </template>\n <!-- </transition-group> -->\n <span :class=\"`${prefixCls}-selection-search`\" :style=\"{ width: `${inputWidth}px` }\">\n <SelectInput\n :input-ref=\"inputRef\"\n :prefix-cls=\"prefixCls\"\n autocomplete=\"off\"\n :disabled=\"disabled\"\n :editable=\"inputEditable\"\n :value=\"inputValue\"\n @mousedown=\"onInputMouseDown\"\n @change=\"onInputChange\"\n @keydown=\"onInputKeydown\"\n @compositionstart=\"onInputCompositionStart\"\n @compositionend=\"onInputCompositionEnd\"\n @paste=\"onInputPaste\"\n />\n <span ref=\"measureRef\" :class=\"`${prefixCls}-selection-search-mirror`\" aria-hidden> {{ inputValue }}&nbsp; </span>\n </span>\n <div v-show=\"showPlaceholder\" :class=\"`${prefixCls}-selection-placeholder`\">\n <slot name=\"placeholder\" />\n </div>\n</template>\n\n<script lang=\"tsx\">\nimport { defineComponent, ref, computed, watch, onMounted } from 'vue';\nimport type { PropType, ComponentPublicInstance, VNodeChild } from 'vue';\nimport UIcon from '@uxd-ui/components/Icon';\nimport UPopover from '@uxd-ui/components/Popover';\nimport { X } from 'lucide-vue-next';\nimport type { JSX } from 'vue/jsx-runtime';\nimport Render from '../../base/Render';\nimport { getRender } from '../../../utils/slots';\nimport SelectInput from './Input.vue';\nimport type { DisplayOption, SingleValueType, TagRenderFunction } from '../Select.type';\nimport type { IconPropType } from '../../../utils/globalType';\nimport type { PopoverProps } from '../../Popover';\n\nconst REST_TAG_KEY = '__UUI_SELECT_MAX_REST_COUNT__';\nconst defaultMaxTagPlaceholder = (ommittedValus: string[]) => `+ ${ommittedValus.length}`;\n\nexport default defineComponent({\n name: 'MutipleSelector',\n components: {\n SelectInput,\n Render,\n UPopover,\n UIcon,\n X\n },\n inheritAttrs: false,\n props: {\n prefixCls: {\n type: String\n },\n values: {\n type: Array as PropType<DisplayOption[]>,\n default: () => [] as DisplayOption[]\n },\n searchValue: {\n type: String\n },\n filterable: {\n type: Boolean,\n default: false\n },\n disabled: {\n type: Boolean,\n default: undefined as undefined\n },\n open: {\n type: Boolean,\n default: undefined as undefined\n },\n inputRef: {\n type: Function as PropType<(el: Element | ComponentPublicInstance | null) => void>\n },\n tagTransitionName: {\n type: String\n },\n maxTagCount: {\n type: Number\n },\n maxTagTextLength: {\n type: Number\n },\n maxTagPlaceholder: {\n type: Function as PropType<(rest: DisplayOption[]) => string | VNodeChild | JSX.Element>,\n default: defaultMaxTagPlaceholder\n },\n maxTagTooltip: {\n type: Boolean,\n default: false\n },\n maxTagTooltipWidth: {\n type: Number,\n default: 99900\n },\n tagRender: {\n type: Function as PropType<TagRenderFunction>\n },\n removeIcon: {\n type: [String, Object] as PropType<IconPropType>\n },\n isShowTagTooltip: {\n type: Boolean,\n default: false\n },\n popoverProps: {\n type: Object as PropType<PopoverProps>,\n default: () => ({})\n }\n },\n emits: ['select', 'input-mousedown', 'input-change', 'input-keydown', 'input-compositionstart', 'input-compositionend', 'input-paste'],\n setup(props, { emit }) {\n const motionAppear = ref(false);\n const measureRef = ref();\n const inputWidth = ref(0);\n\n const inputValue = computed(() => {\n return props.searchValue;\n });\n const inputEditable = computed(() => {\n return props.filterable && props.open;\n });\n\n const showPlaceholder = computed(() => {\n return !props.values.length && !inputValue.value;\n });\n\n onMounted(() => {\n motionAppear.value = true;\n watch(\n inputValue,\n () => {\n inputWidth.value = measureRef.value.scrollWidth;\n },\n { flush: 'post' }\n );\n });\n\n const isNotRender = computed(() => {\n return !props.tagRender;\n });\n\n const displayValues = computed(() => {\n const { values, maxTagCount, maxTagTextLength, maxTagPlaceholder } = props;\n let restCount = 0;\n let _display = values;\n if (typeof maxTagCount === 'number') {\n restCount = values.length - maxTagCount;\n _display = values.slice(0, maxTagCount);\n }\n\n if (typeof maxTagTextLength === 'number') {\n _display = _display.map(({ displayLabel, ...rest }) => {\n let _label = displayLabel;\n if (typeof displayLabel === 'string' || typeof displayLabel === 'number') {\n const strLabel = String(_label);\n if (strLabel.length > maxTagTextLength) {\n _label = `${strLabel.slice(0, maxTagTextLength)}...`;\n }\n }\n return {\n ...rest,\n displayLabel: _label\n };\n });\n }\n\n if (restCount > 0) {\n const rest = values.slice(maxTagCount);\n _display.push({\n key: REST_TAG_KEY,\n value: REST_TAG_KEY,\n displayLabel: maxTagPlaceholder(rest)\n });\n }\n return _display;\n });\n\n const closable = (item: DisplayOption) => {\n return item.key !== REST_TAG_KEY && !item.disabled;\n };\n\n const onClose = (value: SingleValueType, e: any) => {\n if (e && e.stopPropagation) {\n e.stopPropagation();\n }\n emit('select', value, { selected: false });\n };\n\n return {\n getRender,\n REST_TAG_KEY,\n motionAppear,\n measureRef,\n inputWidth,\n inputValue,\n inputEditable,\n showPlaceholder,\n isNotRender,\n displayValues,\n closable,\n onClose,\n onInputMouseDown: () => {\n emit('input-mousedown');\n },\n onInputChange: (val: any) => {\n emit('input-change', val);\n },\n onInputKeydown: (e: KeyboardEvent) => {\n emit('input-keydown', e);\n },\n onInputCompositionStart: (e: CompositionEvent) => {\n emit('input-compositionstart', e);\n },\n onInputCompositionEnd: (e: CompositionEvent) => {\n emit('input-compositionend', e);\n },\n onInputPaste: (e: ClipboardEvent) => {\n emit('input-paste', e);\n }\n };\n }\n});\n</script>\n"],"names":["REST_TAG_KEY","defaultMaxTagPlaceholder","ommittedValus","length","defineComponent","name","components","SelectInput","Render","UPopover","UIcon","X","inheritAttrs","props","prefixCls","type","String","values","Array","default","searchValue","filterable","Boolean","disabled","undefined","open","inputRef","Function","tagTransitionName","maxTagCount","Number","maxTagTextLength","maxTagPlaceholder","maxTagTooltip","maxTagTooltipWidth","tagRender","removeIcon","Object","isShowTagTooltip","popoverProps","emits","setup","emit","motionAppear","ref","measureRef","inputWidth","inputValue","computed","inputEditable","showPlaceholder","value","onMounted","watch","scrollWidth","flush","isNotRender","displayValues","restCount","_display","slice","map","displayLabel","rest","_label","strLabel","push","key","closable","item","onClose","e","stopPropagation","selected","getRender","onInputMouseDown","onInputChange","val","onInputKeydown","onInputCompositionStart","onInputCompositionEnd","onInputPaste"],"mappings":";;;;;;;;AAqHA,MAAMA,eAAe;AACrB,MAAMC,2BAA4BC,mBAA4B,KAAKA,cAAcC;AAEjF,gBAAeC,gBAAgB;AAAA,EAC7BC,MAAM;AAAA,EACNC,YAAY;AAAA,IACVC;AAAAA,IACAC;AAAAA,IACAC;AAAAA,IACAC;AAAAA,IACAC;AAAAA;AACF,EACAC,cAAc;AAAA,EACdC,OAAO;AAAA,IACLC,WAAW;AAAA,MACTC,MAAMC;AAAAA;AACR,IACAC,QAAQ;AAAA,MACNF,MAAMG;AAAAA,MACNC,SAASA,MAAM;;AACjB,IACAC,aAAa;AAAA,MACXL,MAAMC;AAAAA;AACR,IACAK,YAAY;AAAA,MACVN,MAAMO;AAAAA,MACNH,SAAS;AAAA;AACX,IACAI,UAAU;AAAA,MACRR,MAAMO;AAAAA,MACNH,SAASK;AAAAA;AACX,IACAC,MAAM;AAAA,MACJV,MAAMO;AAAAA,MACNH,SAASK;AAAAA;AACX,IACAE,UAAU;AAAA,MACRX,MAAMY;AAAAA;AACR,IACAC,mBAAmB;AAAA,MACjBb,MAAMC;AAAAA;AACR,IACAa,aAAa;AAAA,MACXd,MAAMe;AAAAA;AACR,IACAC,kBAAkB;AAAA,MAChBhB,MAAMe;AAAAA;AACR,IACAE,mBAAmB;AAAA,MACjBjB,MAAMY;AAAAA,MACNR,SAASlB;AAAAA;AACX,IACAgC,eAAe;AAAA,MACblB,MAAMO;AAAAA,MACNH,SAAS;AAAA;AACX,IACAe,oBAAoB;AAAA,MAClBnB,MAAMe;AAAAA,MACNX,SAAS;AAAA;AACX,IACAgB,WAAW;AAAA,MACTpB,MAAMY;AAAAA;AACR,IACAS,YAAY;AAAA,MACVrB,MAAM,CAACC,QAAQqB,MAAM;AAAA;AACvB,IAC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AAwB;AAC9C7B,aAAK,wBAAwB6B,CAAC;AAAA;AAChC,MACAU,cAAeV,OAAsB;AACnC7B,aAAK,eAAe6B,CAAC;AAAA;AACvB;AACF;AAEJ,CAAC;;;;"}
1
+ {"version":3,"file":"Multiple.vue_vue_type_script_lang.mjs","sources":["../../../../../src/components/Select/Selection/Multiple.vue"],"sourcesContent":["<template>\n <!-- <transition-group :appear=\"motionAppear\" :name=\"tagTransitionName\"> -->\n <template v-for=\"item in displayValues\" :key=\"item.key\">\n <span\n v-if=\"isNotRender\"\n :class=\"{\n [`${item.class}`]: item.class,\n [`${prefixCls}-selection-item`]: true,\n [`${prefixCls}-selection-item-disabled`]: item.disabled\n }\"\n >\n <template v-if=\"item.key === REST_TAG_KEY || isShowTagTooltip\">\n <UPopover\n :disabled=\"!maxTagTooltip\"\n trigger=\"hover\"\n :dropdown-class=\"`${prefixCls}-dropdown-tooltip`\"\n :show-arrow=\"true\"\n placement=\"top\"\n v-bind=\"popoverProps\"\n >\n <span :class=\"`${prefixCls}-selection-item-content`\" :title=\"item.title\">\n <Render :render=\"getRender(item.displayLabel)\" />\n </span>\n <template #content>\n <div :class=\"`${prefixCls}-selection-tooltip`\" :style=\"{ maxWidth: `${maxTagTooltipWidth}px` }\">\n <span\n v-for=\"tipItem in values\"\n :key=\"tipItem.key\"\n :class=\"{\n [`${prefixCls}-selection-item`]: true\n }\"\n >\n <span :class=\"`${prefixCls}-selection-item-content`\" :title=\"tipItem.title\">\n <Render :render=\"getRender(tipItem.displayLabel)\" />\n </span>\n <UIcon\n v-if=\"closable(tipItem)\"\n :class=\"`${prefixCls}-selection-item-remove`\"\n @mousedown.stop.prevent\n @click=\"(e:any) => onClose(tipItem.value, e)\"\n >\n <X />\n </UIcon>\n </span>\n </div>\n </template>\n </UPopover>\n </template>\n <template v-else>\n <span :class=\"`${prefixCls}-selection-item-content`\" :title=\"item.title\">\n <!-- {{ item.displayLabel }} -->\n <Render :render=\"getRender(item.displayLabel)\" />\n </span>\n <UIcon\n v-if=\"closable(item)\"\n :class=\"`${prefixCls}-selection-item-remove`\"\n @mousedown.stop.prevent\n @click=\"(e: any) => onClose(item.value, e)\"\n >\n <component :is=\"removeIcon\" v-if=\"removeIcon\" />\n <X v-else />\n </UIcon>\n </template>\n </span>\n <span v-else :class=\"item.class\" @mousedown.stop.prevent>\n <Render\n :render=\"\n () => {\n return tagRender?.({\n ...item,\n closable: closable(item),\n onClose: (e: any) => {\n onClose(item.value, e);\n }\n });\n }\n \"\n />\n </span>\n </template>\n <!-- </transition-group> -->\n <span :class=\"`${prefixCls}-selection-search`\" :style=\"{ width: `${inputWidth}px` }\">\n <SelectInput\n :input-ref=\"inputRef\"\n :prefix-cls=\"prefixCls\"\n autocomplete=\"off\"\n :disabled=\"disabled\"\n :editable=\"inputEditable\"\n :value=\"inputValue\"\n @mousedown=\"onInputMouseDown\"\n @change=\"onInputChange\"\n @keydown=\"onInputKeydown\"\n @compositionstart=\"onInputCompositionStart\"\n @compositionend=\"onInputCompositionEnd\"\n @paste=\"onInputPaste\"\n />\n <span ref=\"measureRef\" :class=\"`${prefixCls}-selection-search-mirror`\" aria-hidden> {{ inputValue }}&nbsp; </span>\n </span>\n <div v-show=\"showPlaceholder\" :class=\"`${prefixCls}-selection-placeholder`\">\n <slot name=\"placeholder\" />\n </div>\n</template>\n\n<script lang=\"tsx\">\nimport { defineComponent, ref, computed, watch, onMounted } from 'vue';\nimport type { PropType, ComponentPublicInstance, VNodeChild } from 'vue';\nimport UIcon from '@uxd-ui/components/Icon';\nimport UPopover from '@uxd-ui/components/Popover';\nimport { X } from 'lucide-vue-next';\nimport type { JSX } from 'vue/jsx-runtime';\nimport Render from '../../base/Render';\nimport { getRender } from '../../../utils/slots';\nimport SelectInput from './Input.vue';\nimport type { DisplayOption, SingleValueType, TagRenderFunction } from '../Select.type';\nimport type { IconPropType } from '../../../utils/globalType';\nimport type { PopoverProps } from '../../Popover';\n\nconst REST_TAG_KEY = '__UUI_SELECT_MAX_REST_COUNT__';\nconst defaultMaxTagPlaceholder = (ommittedValus: string[]) => `+ ${ommittedValus.length}`;\n\nexport default defineComponent({\n name: 'MutipleSelector',\n components: {\n SelectInput,\n Render,\n UPopover,\n UIcon,\n X\n },\n inheritAttrs: false,\n props: {\n prefixCls: {\n type: String\n },\n values: {\n type: Array as PropType<DisplayOption[]>,\n default: () => [] as DisplayOption[]\n },\n searchValue: {\n type: String\n },\n filterable: {\n type: Boolean,\n default: false\n },\n disabled: {\n type: Boolean,\n default: undefined as undefined\n },\n open: {\n type: Boolean,\n default: undefined as undefined\n },\n inputRef: {\n type: Function as PropType<(el: Element | ComponentPublicInstance | null) => void>\n },\n tagTransitionName: {\n type: String\n },\n maxTagCount: {\n type: Number\n },\n maxTagTextLength: {\n type: [Number, String]\n },\n maxTagPlaceholder: {\n type: Function as PropType<(rest: DisplayOption[]) => string | VNodeChild | JSX.Element>,\n default: defaultMaxTagPlaceholder\n },\n maxTagTooltip: {\n type: Boolean,\n default: false\n },\n maxTagTooltipWidth: {\n type: Number,\n default: 99900\n },\n tagRender: {\n type: Function as PropType<TagRenderFunction>\n },\n removeIcon: {\n type: [String, Object] as PropType<IconPropType>\n },\n isShowTagTooltip: {\n type: Boolean,\n default: false\n },\n popoverProps: {\n type: Object as PropType<PopoverProps>,\n default: () => ({})\n }\n },\n emits: ['select', 'input-mousedown', 'input-change', 'input-keydown', 'input-compositionstart', 'input-compositionend', 'input-paste'],\n setup(props, { emit }) {\n const motionAppear = ref(false);\n const measureRef = ref();\n const inputWidth = ref(0);\n\n const inputValue = computed(() => {\n return props.searchValue;\n });\n const inputEditable = computed(() => {\n return props.filterable && props.open;\n });\n\n const showPlaceholder = computed(() => {\n return !props.values.length && !inputValue.value;\n });\n\n onMounted(() => {\n motionAppear.value = true;\n watch(\n inputValue,\n () => {\n inputWidth.value = measureRef.value.scrollWidth;\n },\n { flush: 'post' }\n );\n });\n\n const isNotRender = computed(() => {\n return !props.tagRender;\n });\n\n const displayValues = computed(() => {\n const { values, maxTagCount, maxTagTextLength, maxTagPlaceholder } = props;\n let restCount = 0;\n let _display = values;\n if (typeof maxTagCount === 'number') {\n restCount = values.length - maxTagCount;\n _display = values.slice(0, maxTagCount);\n }\n\n if (typeof maxTagTextLength === 'number') {\n _display = _display.map(({ displayLabel, ...rest }) => {\n let _label = displayLabel;\n if (typeof displayLabel === 'string' || typeof displayLabel === 'number') {\n const strLabel = String(_label);\n if (strLabel.length > maxTagTextLength) {\n _label = `${strLabel.slice(0, maxTagTextLength)}...`;\n }\n }\n return {\n ...rest,\n displayLabel: _label\n };\n });\n }\n\n if (restCount > 0) {\n const rest = values.slice(maxTagCount);\n _display.push({\n key: REST_TAG_KEY,\n value: REST_TAG_KEY,\n displayLabel: maxTagPlaceholder(rest)\n });\n }\n return _display;\n });\n\n const closable = (item: DisplayOption) => {\n return item.key !== REST_TAG_KEY && !item.disabled;\n };\n\n const onClose = (value: SingleValueType, e: any) => {\n if (e && e.stopPropagation) {\n e.stopPropagation();\n }\n emit('select', value, { selected: false });\n };\n\n return {\n getRender,\n REST_TAG_KEY,\n motionAppear,\n measureRef,\n inputWidth,\n inputValue,\n inputEditable,\n showPlaceholder,\n isNotRender,\n displayValues,\n closable,\n onClose,\n onInputMouseDown: () => {\n emit('input-mousedown');\n },\n onInputChange: (val: any) => {\n emit('input-change', val);\n },\n onInputKeydown: (e: KeyboardEvent) => {\n emit('input-keydown', e);\n },\n onInputCompositionStart: (e: CompositionEvent) => {\n emit('input-compositionstart', e);\n },\n onInputCompositionEnd: (e: CompositionEvent) => {\n emit('input-compositionend', e);\n },\n onInputPaste: (e: ClipboardEvent) => {\n emit('input-paste', e);\n }\n };\n }\n});\n</script>\n"],"names":["REST_TAG_KEY","defaultMaxTagPlaceholder","ommittedValus","length","defineComponent","name","components","SelectInput","Render","UPopover","UIcon","X","inheritAttrs","props","prefixCls","type","String","values","Array","default","searchValue","filterable","Boolean","disabled","undefined","open","inputRef","Function","tagTransitionName","maxTagCount","Number","maxTagTextLength","maxTagPlaceholder","maxTagTooltip","maxTagTooltipWidth","tagRender","removeIcon","Object","isShowTagTooltip","popoverProps","emits","setup","emit","motionAppear","ref","measureRef","inputWidth","inputValue","computed","inputEditable","showPlaceholder","value","onMounted","watch","scrollWidth","flush","isNotRender","displayValues","restCount","_display","slice","map","displayLabel","rest","_label","strLabel","push","key","closable","item","onClose","e","stopPropagation","selected","getRender","onInputMouseDown","onInputChange","val","onInputKeydown","onInputCompositionStart","onInputCompositionEnd","onInputPaste"],"mappings":";;;;;;;;AAqHA,MAAMA,eAAe;AACrB,MAAMC,2BAA4BC,mBAA4B,KAAKA,cAAcC;AAEjF,gBAAeC,gBAAgB;AAAA,EAC7BC,MAAM;AAAA,EACNC,YAAY;AAAA,IACVC;AAAAA,IACAC;AAAAA,IACAC;AAAAA,IACAC;AAAAA,IACAC;AAAAA;AACF,EACAC,cAAc;AAAA,EACdC,OAAO;AAAA,IACLC,WAAW;AAAA,MACTC,MAAMC;AAAAA;AACR,IACAC,QAAQ;AAAA,MACNF,MAAMG;AAAAA,MACNC,SAASA,MAAM;;AACjB,IACAC,aAAa;AAAA,MACXL,MAAMC;AAAAA;AACR,IACAK,YAAY;AAAA,MACVN,MAAMO;AAAAA,MACNH,SAAS;AAAA;AACX,IACAI,UAAU;AAAA,MACRR,MAAMO;AAAAA,MACNH,SAASK;AAAAA;AACX,IACAC,MAAM;AAAA,MACJV,MAAMO;AAAAA,MACNH,SAASK;AAAAA;AACX,IACAE,UAAU;AAAA,MACRX,MAAMY;AAAAA;AACR,IACAC,mBAAmB;AAAA,MACjBb,MAAMC;AAAAA;AACR,IACAa,aAAa;AAAA,MACXd,MAAMe;AAAAA;AACR,IACAC,kBAAkB;AAAA,MAChBhB,MAAM,CAACe,QAAQd,MAAM;AAAA;AACvB,IACAgB,mBAAmB;AAAA,MACjBjB,MAAMY;AAAAA,MACNR,SAASlB;AAAAA;AACX,IACAgC,eAAe;AAAA,MACblB,MAAMO;AAAAA,MACNH,SAAS;AAAA;AAC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gBAAgBmC,GAAG;AAAA;AAC1B,MACAC,gBAAiBP,OAAqB;AACpC7B,aAAK,iBAAiB6B,CAAC;AAAA;AACzB,MACAQ,yBAA0BR,OAAwB;AAChD7B,aAAK,0BAA0B6B,CAAC;AAAA;AAClC,MACAS,uBAAwBT,OAAwB;AAC9C7B,aAAK,wBAAwB6B,CAAC;AAAA;AAChC,MACAU,cAAeV,OAAsB;AACnC7B,aAAK,eAAe6B,CAAC;AAAA;AACvB;AACF;AAEJ,CAAC;;;;"}
@@ -0,0 +1,253 @@
1
+ import type { PropType, ComponentPublicInstance, VNodeChild } from 'vue';
2
+ import type { JSX } from 'vue/jsx-runtime';
3
+ import type { DisplayOption, SingleValueType, TagRenderFunction } from '../Select.type';
4
+ import type { IconPropType } from '../../../utils/globalType';
5
+ import type { PopoverProps } from '../../Popover';
6
+ export declare const multipleBaseProps: {
7
+ prefixCls: {
8
+ type: StringConstructor;
9
+ };
10
+ values: {
11
+ type: PropType<DisplayOption[]>;
12
+ default: () => DisplayOption[];
13
+ };
14
+ searchValue: {
15
+ type: StringConstructor;
16
+ };
17
+ filterable: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ disabled: {
22
+ type: BooleanConstructor;
23
+ default: undefined;
24
+ };
25
+ open: {
26
+ type: BooleanConstructor;
27
+ default: undefined;
28
+ };
29
+ inputRef: {
30
+ type: PropType<(el: Element | ComponentPublicInstance | null) => void>;
31
+ };
32
+ tagTransitionName: {
33
+ type: StringConstructor;
34
+ };
35
+ maxTagCount: {
36
+ type: NumberConstructor;
37
+ };
38
+ maxTagTextLength: {
39
+ type: PropType<number | "responsive">;
40
+ };
41
+ maxTagPlaceholder: {
42
+ type: PropType<(rest: DisplayOption[]) => string | VNodeChild | JSX.Element>;
43
+ default: (ommittedValus: string[]) => string;
44
+ };
45
+ maxTagTooltip: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ maxTagTooltipWidth: {
50
+ type: NumberConstructor;
51
+ default: number;
52
+ };
53
+ tagRender: {
54
+ type: PropType<TagRenderFunction>;
55
+ };
56
+ removeIcon: {
57
+ type: PropType<IconPropType>;
58
+ };
59
+ isShowTagTooltip: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ };
63
+ popoverProps: {
64
+ type: PropType<PopoverProps>;
65
+ default: () => {};
66
+ };
67
+ itemWidth: {
68
+ type: NumberConstructor;
69
+ default: number;
70
+ };
71
+ containerWrapperWidth: {
72
+ type: PropType<number | null>;
73
+ default: null;
74
+ };
75
+ enableOverflow: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ };
80
+ export declare const multipleBaseEmits: string[];
81
+ export declare function renderSelectionItem(item: DisplayOption, props: any, { prefixCls, isNotRender, closable, onClose, values }: {
82
+ prefixCls: string;
83
+ isNotRender: boolean;
84
+ closable: (displayItem: DisplayOption) => boolean;
85
+ onClose: (value: SingleValueType, e: any) => void;
86
+ values: DisplayOption[];
87
+ displayRest: boolean;
88
+ }): JSX.Element;
89
+ export declare function renderSearchInput(props: any, { prefixCls, inputRef, disabled, inputEditable, inputValue, inputWidth, measureRef, onInputMouseDown, onInputChange, onInputKeydown, onInputCompositionStart, onInputCompositionEnd, onInputPaste }: any): JSX.Element;
90
+ export declare function renderPlaceholder(showPlaceholder: boolean, prefixCls: string, slots: any): JSX.Element;
91
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
92
+ prefixCls: {
93
+ type: StringConstructor;
94
+ };
95
+ values: {
96
+ type: PropType<DisplayOption[]>;
97
+ default: () => DisplayOption[];
98
+ };
99
+ searchValue: {
100
+ type: StringConstructor;
101
+ };
102
+ filterable: {
103
+ type: BooleanConstructor;
104
+ default: boolean;
105
+ };
106
+ disabled: {
107
+ type: BooleanConstructor;
108
+ default: undefined;
109
+ };
110
+ open: {
111
+ type: BooleanConstructor;
112
+ default: undefined;
113
+ };
114
+ inputRef: {
115
+ type: PropType<(el: Element | ComponentPublicInstance | null) => void>;
116
+ };
117
+ tagTransitionName: {
118
+ type: StringConstructor;
119
+ };
120
+ maxTagCount: {
121
+ type: NumberConstructor;
122
+ };
123
+ maxTagTextLength: {
124
+ type: PropType<number | "responsive">;
125
+ };
126
+ maxTagPlaceholder: {
127
+ type: PropType<(rest: DisplayOption[]) => string | VNodeChild | JSX.Element>;
128
+ default: (ommittedValus: string[]) => string;
129
+ };
130
+ maxTagTooltip: {
131
+ type: BooleanConstructor;
132
+ default: boolean;
133
+ };
134
+ maxTagTooltipWidth: {
135
+ type: NumberConstructor;
136
+ default: number;
137
+ };
138
+ tagRender: {
139
+ type: PropType<TagRenderFunction>;
140
+ };
141
+ removeIcon: {
142
+ type: PropType<IconPropType>;
143
+ };
144
+ isShowTagTooltip: {
145
+ type: BooleanConstructor;
146
+ default: boolean;
147
+ };
148
+ popoverProps: {
149
+ type: PropType<PopoverProps>;
150
+ default: () => {};
151
+ };
152
+ itemWidth: {
153
+ type: NumberConstructor;
154
+ default: number;
155
+ };
156
+ containerWrapperWidth: {
157
+ type: PropType<number | null>;
158
+ default: null;
159
+ };
160
+ enableOverflow: {
161
+ type: BooleanConstructor;
162
+ default: boolean;
163
+ };
164
+ }>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
165
+ prefixCls: {
166
+ type: StringConstructor;
167
+ };
168
+ values: {
169
+ type: PropType<DisplayOption[]>;
170
+ default: () => DisplayOption[];
171
+ };
172
+ searchValue: {
173
+ type: StringConstructor;
174
+ };
175
+ filterable: {
176
+ type: BooleanConstructor;
177
+ default: boolean;
178
+ };
179
+ disabled: {
180
+ type: BooleanConstructor;
181
+ default: undefined;
182
+ };
183
+ open: {
184
+ type: BooleanConstructor;
185
+ default: undefined;
186
+ };
187
+ inputRef: {
188
+ type: PropType<(el: Element | ComponentPublicInstance | null) => void>;
189
+ };
190
+ tagTransitionName: {
191
+ type: StringConstructor;
192
+ };
193
+ maxTagCount: {
194
+ type: NumberConstructor;
195
+ };
196
+ maxTagTextLength: {
197
+ type: PropType<number | "responsive">;
198
+ };
199
+ maxTagPlaceholder: {
200
+ type: PropType<(rest: DisplayOption[]) => string | VNodeChild | JSX.Element>;
201
+ default: (ommittedValus: string[]) => string;
202
+ };
203
+ maxTagTooltip: {
204
+ type: BooleanConstructor;
205
+ default: boolean;
206
+ };
207
+ maxTagTooltipWidth: {
208
+ type: NumberConstructor;
209
+ default: number;
210
+ };
211
+ tagRender: {
212
+ type: PropType<TagRenderFunction>;
213
+ };
214
+ removeIcon: {
215
+ type: PropType<IconPropType>;
216
+ };
217
+ isShowTagTooltip: {
218
+ type: BooleanConstructor;
219
+ default: boolean;
220
+ };
221
+ popoverProps: {
222
+ type: PropType<PopoverProps>;
223
+ default: () => {};
224
+ };
225
+ itemWidth: {
226
+ type: NumberConstructor;
227
+ default: number;
228
+ };
229
+ containerWrapperWidth: {
230
+ type: PropType<number | null>;
231
+ default: null;
232
+ };
233
+ enableOverflow: {
234
+ type: BooleanConstructor;
235
+ default: boolean;
236
+ };
237
+ }>> & Readonly<{
238
+ [x: `on${Capitalize<string>}`]: (...args: any[]) => any;
239
+ }>, {
240
+ values: DisplayOption[];
241
+ disabled: boolean;
242
+ open: boolean;
243
+ filterable: boolean;
244
+ maxTagPlaceholder: (rest: DisplayOption[]) => string | VNodeChild | JSX.Element;
245
+ maxTagTooltip: boolean;
246
+ maxTagTooltipWidth: number;
247
+ popoverProps: PopoverProps;
248
+ isShowTagTooltip: boolean;
249
+ itemWidth: number;
250
+ containerWrapperWidth: number;
251
+ enableOverflow: boolean;
252
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
253
+ export default _default;