@rocketui/vue 0.2.48 → 0.2.50

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.
@@ -2296,6 +2296,7 @@ export declare const RDropdown: __VLS_WithTemplateSlots_6<DefineComponent<__VLS_
2296
2296
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2297
2297
  "update:modelValue": (...args: any[]) => void;
2298
2298
  clear: (...args: any[]) => void;
2299
+ removeOption: (...args: any[]) => void;
2299
2300
  }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToRuntimeProps_8<SelectProps>, {
2300
2301
  options: () => never[];
2301
2302
  modelValue: any;
@@ -2325,6 +2326,7 @@ export declare const RDropdown: __VLS_WithTemplateSlots_6<DefineComponent<__VLS_
2325
2326
  }>>> & {
2326
2327
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2327
2328
  onClear?: ((...args: any[]) => any) | undefined;
2329
+ onRemoveOption?: ((...args: any[]) => any) | undefined;
2328
2330
  }, {
2329
2331
  disabled: boolean;
2330
2332
  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", "clear"],
8901
+ emits: ["update:modelValue", "clear", "removeOption"],
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) {
@@ -8958,7 +8958,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
8958
8958
  }
8959
8959
  function k(a, s) {
8960
8960
  if (i.value.value === s.value) {
8961
- i.value = {}, e.value = "", M("update:modelValue", "");
8961
+ i.value = {}, e.value = "", M("update:modelValue", ""), M("removeOption", s);
8962
8962
  return;
8963
8963
  }
8964
8964
  e.value = s.label, i.value = s, M("update:modelValue", s);
@@ -8968,7 +8968,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
8968
8968
  return;
8969
8969
  a.stopPropagation(), P();
8970
8970
  const T = L.value.findIndex((c) => c.value === s.value);
8971
- L.value.splice(T, 1);
8971
+ L.value.splice(T, 1), M("removeOption", s);
8972
8972
  }
8973
8973
  function F(a, s) {
8974
8974
  var c;
@@ -8989,7 +8989,7 @@ const N5 = ["aria-disabled"], I5 = ["innerHTML"], Q5 = ["id"], G5 = /* @__PURE__
8989
8989
  n.value ? C.multiple ? L.value = n.value : (i.value = n.value, e.value = n.value.label) : (i.value = {}, L.value.splice(0, L.value.length));
8990
8990
  }
8991
8991
  function h(a) {
8992
- C.searchable && a(), !C.multiple && e.value === "" && (i.value = {}, M("update:modelValue", ""));
8992
+ C.searchable && a(), !C.multiple && e.value === "" && (i.value = {}, M("update:modelValue", ""), M("removeOption", i.value));
8993
8993
  }
8994
8994
  function I(a, s) {
8995
8995
  a.stopPropagation(), s(), C.multiple && L.value.splice(0, L.value.length), i.value = {}, e.value = "", M("update:modelValue", ""), M("clear");