@rocketui/vue 0.2.47-alpha276 → 0.2.48

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.
@@ -2295,6 +2295,7 @@ export declare const RDropdown: __VLS_WithTemplateSlots_6<DefineComponent<__VLS_
2295
2295
  selectAllText: string;
2296
2296
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2297
2297
  "update:modelValue": (...args: any[]) => void;
2298
+ clear: (...args: any[]) => void;
2298
2299
  }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToRuntimeProps_8<SelectProps>, {
2299
2300
  options: () => never[];
2300
2301
  modelValue: any;
@@ -2323,6 +2324,7 @@ export declare const RDropdown: __VLS_WithTemplateSlots_6<DefineComponent<__VLS_
2323
2324
  selectAllText: string;
2324
2325
  }>>> & {
2325
2326
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2327
+ onClear?: ((...args: any[]) => any) | undefined;
2326
2328
  }, {
2327
2329
  disabled: boolean;
2328
2330
  prependIcon: string;
@@ -8898,7 +8898,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
8898
8898
  showSelectAll: { type: Boolean, default: !1 },
8899
8899
  selectAllText: { default: "Select all" }
8900
8900
  },
8901
- emits: ["update:modelValue"],
8901
+ emits: ["update:modelValue", "clear"],
8902
8902
  setup(H, { emit: V }) {
8903
8903
  const C = H, M = V, i = N({}), L = N([]), A = N(!1), e = N("");
8904
8904
  function d(a) {
@@ -8992,11 +8992,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
8992
8992
  C.searchable && a(), !C.multiple && e.value === "" && (i.value = {}, M("update:modelValue", ""));
8993
8993
  }
8994
8994
  function I(a, s) {
8995
- if (a.stopPropagation(), s(), C.multiple) {
8996
- L.value.splice(0, L.value.length);
8997
- return;
8998
- }
8999
- i.value = {}, e.value = "", M("update:modelValue", "");
8995
+ a.stopPropagation(), s(), C.multiple && L.value.splice(0, L.value.length), i.value = {}, e.value = "", M("update:modelValue", ""), M("clear");
9000
8996
  }
9001
8997
  function M1() {
9002
8998
  if (L.value.length === y.value.length) {
@@ -9147,7 +9143,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
9147
9143
  S("ul", {
9148
9144
  class: p(["r-dropdown-options", {
9149
9145
  "r-dropdown-options--active": A.value,
9150
- [C.optionsClass]: !0
9146
+ [C.optionsClass]: C.optionsClass
9151
9147
  }])
9152
9148
  }, [
9153
9149
  C.showSelectAll && C.multiple && y.value.length > 0 ? (m(), Z("li", {