@redseed/redseed-ui-vue3 2.13.13 → 2.13.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redseed/redseed-ui-vue3",
3
- "version": "2.13.13",
3
+ "version": "2.13.14",
4
4
  "description": "RedSeed UI Vue 3 components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -16,6 +16,10 @@ const props = defineProps({
16
16
  type: Number,
17
17
  default: 0
18
18
  },
19
+ controlApplied: {
20
+ type: Boolean,
21
+ default: false
22
+ },
19
23
  })
20
24
 
21
25
  const emit = defineEmits([
@@ -25,18 +29,18 @@ const emit = defineEmits([
25
29
  'clickTertiaryEmptyAction',
26
30
  ])
27
31
 
28
- const controlApplied = ref(false)
32
+ const controlAppliedRef = ref(props.controlApplied)
29
33
 
30
- const showControl = computed(() => props.control && (controlApplied.value || props.totalItems > 0))
34
+ const showControl = computed(() => props.control && (controlAppliedRef.value || props.totalItems > 0))
31
35
 
32
- const showEmptyMessage = computed(() => !props.totalItems && !controlApplied.value)
36
+ const showEmptyMessage = computed(() => !props.totalItems && !controlAppliedRef.value)
33
37
 
34
- const showControlEmptyMessage = computed(() => !props.totalItems && controlApplied.value)
38
+ const showControlEmptyMessage = computed(() => !props.totalItems && controlAppliedRef.value)
35
39
 
36
40
  const showItems = computed(() => props.totalItems > 0)
37
41
 
38
42
  function controlChanged(event) {
39
- controlApplied.value = true
43
+ controlAppliedRef.value = true
40
44
 
41
45
  emit('change', event)
42
46
  }