quasar-factory-lib 0.0.10 → 0.0.12

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.
@@ -827,6 +827,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
827
827
  localStore: Record<string, any>;
828
828
  }, {}, {
829
829
  inputFocus(): void;
830
+ cleanTableFilter(): void;
830
831
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
831
832
  store: {
832
833
  type: ObjectConstructor;
@@ -7,6 +7,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
7
7
  localStore: Record<string, any>;
8
8
  }, {}, {
9
9
  inputFocus(): void;
10
+ cleanTableFilter(): void;
10
11
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
12
  store: {
12
13
  type: ObjectConstructor;
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ import TranslateKeys from './i18n/translateKeys.ts';
4
4
  export { KMyButton, MyTable } from './components/index.ts';
5
5
  export type { TranslateKeys };
6
6
  export * from './i18n/messages.js';
7
+ export * from './utils';
7
8
  import './css/app.css';
8
9
  declare const plugin: Plugin;
9
10
  export declare function updatePackageLanguage(lang: 'es' | 'en'): void;
@@ -1112,6 +1112,7 @@ declare const _default: import("vue").DefineComponent<{}, {}, {
1112
1112
  localStore: Record<string, any>;
1113
1113
  }, {}, {
1114
1114
  inputFocus(): void;
1115
+ cleanTableFilter(): void;
1115
1116
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1116
1117
  store: {
1117
1118
  type: ObjectConstructor;
@@ -7355,9 +7355,6 @@ const Uv = /* @__PURE__ */ yt(Mv, [["render", qv]]), $v = {
7355
7355
  localStore: this.store
7356
7356
  };
7357
7357
  },
7358
- beforeMount() {
7359
- this.localStore.cleanTableFilter();
7360
- },
7361
7358
  mounted() {
7362
7359
  },
7363
7360
  methods: {
@@ -7365,6 +7362,9 @@ const Uv = /* @__PURE__ */ yt(Mv, [["render", qv]]), $v = {
7365
7362
  setTimeout(() => {
7366
7363
  this.$refs.filterRef.focus();
7367
7364
  }, 10);
7365
+ },
7366
+ cleanTableFilter() {
7367
+ this.localStore.cleanTableFilter();
7368
7368
  }
7369
7369
  }
7370
7370
  };
@@ -7373,8 +7373,8 @@ function Hv(e, t, n, o, l, r) {
7373
7373
  ref: "filterRef",
7374
7374
  modelValue: l.localStore.filterValue,
7375
7375
  "onUpdate:modelValue": [
7376
- t[1] || (t[1] = (a) => l.localStore.filterValue = a),
7377
- t[2] || (t[2] = (a) => {
7376
+ t[0] || (t[0] = (a) => l.localStore.filterValue = a),
7377
+ t[1] || (t[1] = (a) => {
7378
7378
  l.localStore.setFilterValue(a);
7379
7379
  })
7380
7380
  ],
@@ -7394,10 +7394,8 @@ function Hv(e, t, n, o, l, r) {
7394
7394
  key: 1,
7395
7395
  name: "clear",
7396
7396
  class: "cursor-pointer",
7397
- onClick: t[0] || (t[0] = () => {
7398
- l.localStore.cleanTableFilter();
7399
- })
7400
- }))
7397
+ onClick: r.cleanTableFilter
7398
+ }, null, 8, ["onClick"]))
7401
7399
  ]),
7402
7400
  _: 1
7403
7401
  }, 8, ["modelValue"]);