@coreui/vue-pro 4.10.1 → 4.10.3

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/index.es.js CHANGED
@@ -9375,7 +9375,7 @@ const CFormCheck = defineComponent({
9375
9375
  const formControl = () => {
9376
9376
  return h$1('input', {
9377
9377
  ...attrs,
9378
- ...(props.modelValue && props.value && { checked: isChecked.value }),
9378
+ ...((props.modelValue || props.value) && { checked: isChecked.value }),
9379
9379
  class: inputClassName,
9380
9380
  id: props.id,
9381
9381
  indeterminate: props.indeterminate,
@@ -15053,6 +15053,9 @@ const CSmartTable = defineComponent({
15053
15053
  const filteredColumns = computed(() => filterColumns(items.value, props.columnFilter, columnFilterState.value, itemsDataColumns.value));
15054
15054
  const filteredTable = computed(() => filterTable(filteredColumns.value, props.tableFilter, tableFilterState.value, itemsDataColumns.value));
15055
15055
  const sortedItems = computed(() => sortItems(props.columnSorter, filteredTable.value, itemsDataColumns.value, sorterState.value));
15056
+ watch(sortedItems, () => {
15057
+ emit('filteredItemsChange', sortedItems.value);
15058
+ });
15056
15059
  const numberOfPages = computed(() => itemsPerPage.value ? Math.ceil(sortedItems.value.length / itemsPerPage.value) : 1);
15057
15060
  const firstItemOnActivePageIndex = computed(() => activePage.value ? (activePage.value - 1) * itemsPerPage.value : 0);
15058
15061
  const currentItems = computed(() => activePage.value