vuesp-components 2.0.4 → 2.0.5

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.
package/README.md CHANGED
@@ -55,7 +55,7 @@ app.mount('#app')
55
55
  <div>
56
56
  <VButton color="primary" @click="handleClick">Click me</VButton>
57
57
  <VTextField v-model="text" label="Input text" />
58
- <VSelect v-model="selected" :items="options" />
58
+ <VSelect :model-value="select" :items="options" />
59
59
  <VCheckbox v-model="checked" />
60
60
  </div>
61
61
  </template>
@@ -5,8 +5,8 @@ declare const _default: <T extends {
5
5
  value: string | number;
6
6
  }>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
7
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
8
- readonly onSelect?: ((item: T) => any) | undefined;
9
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect"> & IVSelectProps<T> & Partial<{}>> & import('vue').PublicProps;
8
+ readonly onChange?: ((item: T) => any) | undefined;
9
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange"> & IVSelectProps<T> & Partial<{}>> & import('vue').PublicProps;
10
10
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
11
11
  attrs: any;
12
12
  slots: {
@@ -1 +1 @@
1
- {"version":3,"file":"VSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/select/VSelect.vue"],"names":[],"mappings":"AAqDA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;yBAMlD,CAAC,SAAS;IAAE,IAAI,E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AAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAkLO,mBAAmB,CAAC;;iKAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;;YAjCoB,GAAG;;;YACP,GAAG;;;EAoC1B,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA7LzE,wBA6L4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,9 +1,10 @@
1
1
  export interface IVSelectProps<T> {
2
2
  modelValue: string | number;
3
3
  label?: string;
4
+ disabled?: boolean;
4
5
  items: T[];
5
6
  }
6
7
  export interface IVSelectEmits<T> {
7
- (e: 'select', item: T): void;
8
+ (e: 'change', item: T): void;
8
9
  }
9
10
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/select/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,CAAC,EAAE,CAAC;CACZ;AAED,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;CAC9B"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/select/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,CAAC,EAAE,CAAC;CACZ;AAED,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;CAC9B"}
package/dist/index.es.js CHANGED
@@ -1523,13 +1523,14 @@ const us = F({ name: "ri-arrow-up-s-line", render: ds }), fs = { class: "bg-whit
1523
1523
  props: {
1524
1524
  modelValue: {},
1525
1525
  label: {},
1526
+ disabled: { type: Boolean },
1526
1527
  items: {}
1527
1528
  },
1528
- emits: ["select"],
1529
+ emits: ["change"],
1529
1530
  setup(e, { emit: s }) {
1530
1531
  const n = s;
1531
1532
  function u(t, c) {
1532
- n("select", t), c == null || c.set(!1);
1533
+ n("change", t), c == null || c.set(!1);
1533
1534
  }
1534
1535
  return (t, c) => {
1535
1536
  const i = us;
@@ -1541,6 +1542,7 @@ const us = F({ name: "ri-arrow-up-s-line", render: ds }), fs = { class: "bg-whit
1541
1542
  k(t.$slots, "activator", W(q({ on: m, isShow: d })), () => [
1542
1543
  g(R, {
1543
1544
  "model-value": e.modelValue,
1545
+ disabled: e.disabled,
1544
1546
  readonly: "",
1545
1547
  hideMessage: "",
1546
1548
  active: "",
@@ -1553,7 +1555,7 @@ const us = F({ name: "ri-arrow-up-s-line", render: ds }), fs = { class: "bg-whit
1553
1555
  }, null, 8, ["class"])
1554
1556
  ]),
1555
1557
  _: 2
1556
- }, 1032, ["model-value", "onClick", "onOnIcon"])
1558
+ }, 1032, ["model-value", "disabled", "onClick", "onOnIcon"])
1557
1559
  ])
1558
1560
  ]),
1559
1561
  default: h(({ on: m }) => [
@@ -1601,7 +1603,7 @@ const us = F({ name: "ri-arrow-up-s-line", render: ds }), fs = { class: "bg-whit
1601
1603
  return Array.isArray(d == null ? void 0 : d.items) && ((o = d == null ? void 0 : d.items.find((p) => p.value === r)) == null ? void 0 : o.name) || r;
1602
1604
  }, m = ({ name: d, value: r, opts: o = {} }) => {
1603
1605
  const { items: p = [], disabled: w } = o;
1604
- return { label: d, modelValue: r, items: p, disabled: w };
1606
+ return { label: d, modelValue: r, items: p, disabled: !!w };
1605
1607
  };
1606
1608
  return (d, r) => (a(), T(J, N(n, { onClick: t }), {
1607
1609
  value: h((o) => [
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.0.4",
2
+ "version": "2.0.5",
3
3
  "name": "vuesp-components",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",