@enos5/enos-vue-default 1.5.6 → 1.5.8

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
@@ -54,6 +54,16 @@ Or import individual components:
54
54
  import { Button, TextInput } from '@enos5/enos-vue-default'
55
55
  ```
56
56
 
57
+ Styles are loaded automatically when you import the package entrypoint, so consumers do not have to remember a separate CSS import.
58
+
59
+ If a consuming app wants earlier stylesheet loading during `npm run dev`, it can opt into the stable stylesheet entry explicitly:
60
+
61
+ ```ts
62
+ import '@enos5/enos-vue-default/styles.css'
63
+ ```
64
+
65
+ That explicit import is optional. It mainly improves dev-mode first paint and avoids importing from `dist` directly.
66
+
57
67
  ## Publish To npm
58
68
 
59
69
  Before publishing, build the package and verify the tarball:
@@ -63,6 +63,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
63
63
  type: StringConstructor;
64
64
  default: string;
65
65
  };
66
+ searchCount: {
67
+ type: NumberConstructor;
68
+ default: null;
69
+ };
66
70
  searchQueryLabel: {
67
71
  type: StringConstructor;
68
72
  default: string;
@@ -141,6 +145,10 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
141
145
  type: StringConstructor;
142
146
  default: string;
143
147
  };
148
+ searchCount: {
149
+ type: NumberConstructor;
150
+ default: null;
151
+ };
144
152
  searchQueryLabel: {
145
153
  type: StringConstructor;
146
154
  default: string;
@@ -172,6 +180,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
172
180
  deletedLabel: string;
173
181
  searchPlaceholder: string;
174
182
  searchCountLabel: string;
183
+ searchCount: number;
175
184
  searchQueryLabel: string;
176
185
  searchShowDeleted: boolean;
177
186
  searchShowDeletedToggle: boolean;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import './styles.css';
2
- import { _, a, b, c, d, e, f, g, h, i, j, k, D, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, S, B, C, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W, X, Y, Z, $, a0, a1 } from "./plugin-CtVat25d.js";
2
+ import { _, a, b, c, d, e, f, g, h, i, j, k, D, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, S, B, C, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W, X, Y, Z, $, a0, a1 } from "./plugin-sa3VYroS.js";
3
3
  export {
4
4
  _ as ActionCard,
5
5
  a as ActionMessage,
@@ -1,4 +1,4 @@
1
- import { _, a, b, c, d, e, f, g, h, i, j, k, D, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, S, B, C, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W, X, Y, Z, $, a0, a1 } from "./plugin-CtVat25d.js";
1
+ import { _, a, b, c, d, e, f, g, h, i, j, k, D, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, S, B, C, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W, X, Y, Z, $, a0, a1 } from "./plugin-sa3VYroS.js";
2
2
  export {
3
3
  _ as ActionCard,
4
4
  a as ActionMessage,
@@ -3722,6 +3722,10 @@ const _sfc_main$3 = {
3722
3722
  type: String,
3723
3723
  default: "results"
3724
3724
  },
3725
+ searchCount: {
3726
+ type: Number,
3727
+ default: null
3728
+ },
3725
3729
  searchQueryLabel: {
3726
3730
  type: String,
3727
3731
  default: "for"
@@ -3765,6 +3769,9 @@ const _sfc_main$3 = {
3765
3769
  });
3766
3770
  });
3767
3771
  const hasData = computed(() => filteredData.value && filteredData.value.length > 0);
3772
+ const resolvedSearchCount = computed(() => {
3773
+ return props.searchCount ?? filteredData.value.length;
3774
+ });
3768
3775
  const sortBy = (field) => {
3769
3776
  emit("sort", field);
3770
3777
  };
@@ -3820,7 +3827,7 @@ const _sfc_main$3 = {
3820
3827
  key: 0,
3821
3828
  "model-value": searchQuery.value,
3822
3829
  placeholder: __props.searchPlaceholder,
3823
- count: filteredData.value.length,
3830
+ count: resolvedSearchCount.value,
3824
3831
  "count-label": __props.searchCountLabel,
3825
3832
  "query-label": __props.searchQueryLabel,
3826
3833
  "show-deleted": __props.searchShowDeleted,
@@ -4759,4 +4766,4 @@ export {
4759
4766
  _sfc_main$z as y,
4760
4767
  _sfc_main$x as z
4761
4768
  };
4762
- //# sourceMappingURL=plugin-CtVat25d.js.map
4769
+ //# sourceMappingURL=plugin-sa3VYroS.js.map