@hostlink/nuxt-light 1.67.0 → 1.67.2

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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "1.67.0",
4
+ "version": "1.67.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -172,7 +172,7 @@ const table = ref();
172
172
  const rows = ref(props.rows ?? []);
173
173
  const resolvedSearchOptions = ref({});
174
174
  const localSearchOptions = ref({});
175
- let resolveSeq = 0;
175
+ const resolveSeqs = /* @__PURE__ */ new Map();
176
176
  const resolveColumnOptions = async (col) => {
177
177
  if (!col.searchOptions || !col.name) return;
178
178
  if (Array.isArray(col.searchOptions)) {
@@ -185,10 +185,11 @@ const resolveColumnOptions = async (col) => {
185
185
  columnValue: filters.value[col.name],
186
186
  column: col
187
187
  };
188
- const seq = ++resolveSeq;
188
+ const seq = (resolveSeqs.get(col.name) ?? 0) + 1;
189
+ resolveSeqs.set(col.name, seq);
189
190
  try {
190
191
  const result = await col.searchOptions(ctx);
191
- if (seq !== resolveSeq) return;
192
+ if (seq !== resolveSeqs.get(col.name)) return;
192
193
  resolvedSearchOptions.value[col.name] = result;
193
194
  localSearchOptions.value[col.name] = result;
194
195
  } catch {
@@ -723,12 +724,12 @@ const hasFilters = computed(() => {
723
724
  :options="localSearchOptions[col.name]" emit-value map-options
724
725
  :multiple="col.searchMultiple" use-input input-debounce="0" @filter="(val, update) => {
725
726
  searchSelectFilter(val, update, col.name);
726
- }" :style="col.searchStyle" />
727
+ }" :style="col.searchStyle" :placeholder="col.searchPlaceholder" />
727
728
  </template>
728
729
 
729
730
  <template v-if="col.searchType == 'date'">
730
731
  <l-date-picker dense clearable filled square :outlined="false" hide-bottom-space
731
- v-model="filters[col.name]" range :style="col.searchStyle" />
732
+ v-model="filters[col.name]" range :style="col.searchStyle" :placeholder="col.searchPlaceholder" />
732
733
  </template>
733
734
 
734
735
  <template v-if="col.searchType == 'boolean'">
@@ -226,7 +226,6 @@ declare const light: {
226
226
  label: {
227
227
  create: string;
228
228
  set: string;
229
- clear: string;
230
229
  filter: string;
231
230
  remove: string;
232
231
  cancel: string;
@@ -234,6 +233,7 @@ declare const light: {
234
233
  reset: string;
235
234
  select: string;
236
235
  search: string;
236
+ clear: string;
237
237
  ok: string;
238
238
  update: string;
239
239
  refresh: string;
@@ -360,11 +360,11 @@ declare const light: {
360
360
  today: string;
361
361
  };
362
362
  editor: {
363
- size: string;
364
363
  bold: string;
365
364
  left: string;
366
365
  right: string;
367
366
  center: string;
367
+ size: string;
368
368
  align: string;
369
369
  italic: string;
370
370
  strikethrough: string;
@@ -448,8 +448,8 @@ declare const light: {
448
448
  icon: string;
449
449
  };
450
450
  uploader: {
451
- clear: string;
452
451
  done: string;
452
+ clear: string;
453
453
  add: string;
454
454
  upload: string;
455
455
  removeQueue: string;
@@ -823,7 +823,6 @@ declare const _default: () => {
823
823
  label: {
824
824
  create: string;
825
825
  set: string;
826
- clear: string;
827
826
  filter: string;
828
827
  remove: string;
829
828
  cancel: string;
@@ -831,6 +830,7 @@ declare const _default: () => {
831
830
  reset: string;
832
831
  select: string;
833
832
  search: string;
833
+ clear: string;
834
834
  ok: string;
835
835
  update: string;
836
836
  refresh: string;
@@ -957,11 +957,11 @@ declare const _default: () => {
957
957
  today: string;
958
958
  };
959
959
  editor: {
960
- size: string;
961
960
  bold: string;
962
961
  left: string;
963
962
  right: string;
964
963
  center: string;
964
+ size: string;
965
965
  align: string;
966
966
  italic: string;
967
967
  strikethrough: string;
@@ -1045,8 +1045,8 @@ declare const _default: () => {
1045
1045
  icon: string;
1046
1046
  };
1047
1047
  uploader: {
1048
- clear: string;
1049
1048
  done: string;
1049
+ clear: string;
1050
1050
  add: string;
1051
1051
  upload: string;
1052
1052
  removeQueue: string;
@@ -17,6 +17,7 @@ export default defineLightModel({
17
17
  label: "Username",
18
18
  sortable: true,
19
19
  searchable: true,
20
+ searchPlaceholder: "Search by username...",
20
21
  required: true
21
22
  },
22
23
  first_name: {
@@ -43,7 +44,8 @@ export default defineLightModel({
43
44
  label: "Join date",
44
45
  sortable: true,
45
46
  searchable: true,
46
- searchType: "date"
47
+ searchType: "date",
48
+ searchPlaceholder: "Pick a date range..."
47
49
  },
48
50
  roles: {
49
51
  label: "Roles"
@@ -52,6 +54,7 @@ export default defineLightModel({
52
54
  label: "Status",
53
55
  searchable: true,
54
56
  searchType: "select",
57
+ searchPlaceholder: "Filter by status...",
55
58
  searchOptions: [
56
59
  { label: "Active", value: 0 },
57
60
  { label: "Inactive", value: 1 }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.67.0",
3
+ "version": "1.67.2",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": {
6
6
  "type": "git",