@coreui/vue-pro 4.10.0 → 4.10.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/index.js CHANGED
@@ -6965,12 +6965,12 @@ const CTimePicker = vue.defineComponent({
6965
6965
  listOfSeconds: [],
6966
6966
  hour12: false,
6967
6967
  });
6968
- const isValid = vue.ref(props.valid || (props.invalid && false));
6968
+ const isValid = vue.ref(props.valid ?? (props.invalid === true ? false : undefined));
6969
6969
  vue.watch(() => props.time, () => {
6970
6970
  date.value = convertTimeToDate(props.time);
6971
6971
  });
6972
6972
  vue.watch(() => [props.valid, props.invalid], () => {
6973
- isValid.value = props.valid || (props.invalid && false);
6973
+ isValid.value = props.valid ?? (props.invalid === true ? false : undefined);
6974
6974
  });
6975
6975
  vue.watch(date, () => {
6976
6976
  localizedTimePartials.value = getLocalizedTimePartials(props.locale, props.ampm);
@@ -7740,13 +7740,13 @@ const CDateRangePicker = vue.defineComponent({
7740
7740
  const maxDate = vue.ref(props.maxDate && new Date(props.maxDate));
7741
7741
  const minDate = vue.ref(props.minDate && new Date(props.minDate));
7742
7742
  const selectEndDate = vue.ref(false);
7743
- const isValid = vue.ref(props.valid || (props.invalid && false));
7743
+ const isValid = vue.ref(props.valid ?? (props.invalid === true ? false : undefined));
7744
7744
  const isMobile = vue.ref(false);
7745
7745
  vue.onMounted(() => {
7746
7746
  isMobile.value = window.innerWidth < 768;
7747
7747
  });
7748
7748
  vue.watch(() => [props.valid, props.invalid], () => {
7749
- isValid.value = props.valid || (props.invalid && false);
7749
+ isValid.value = props.valid ?? (props.invalid === true ? false : undefined);
7750
7750
  });
7751
7751
  vue.watch(() => props.startDate, () => {
7752
7752
  if (props.startDate) {
@@ -13405,9 +13405,13 @@ const CSmartPagination = vue.defineComponent({
13405
13405
  const activePage = vue.ref(props.activePage);
13406
13406
  const limit = vue.ref(props.limit);
13407
13407
  const pages = vue.ref(props.pages);
13408
- vue.watch(props, () => {
13408
+ vue.watch(() => props.activePage, () => {
13409
13409
  activePage.value = props.activePage;
13410
+ });
13411
+ vue.watch(() => props.limit, () => {
13410
13412
  limit.value = props.limit;
13413
+ });
13414
+ vue.watch(() => props.pages, () => {
13411
13415
  pages.value = props.pages;
13412
13416
  });
13413
13417
  const showDots = vue.computed(() => {
@@ -15053,6 +15057,9 @@ const CSmartTable = vue.defineComponent({
15053
15057
  const filteredColumns = vue.computed(() => filterColumns(items.value, props.columnFilter, columnFilterState.value, itemsDataColumns.value));
15054
15058
  const filteredTable = vue.computed(() => filterTable(filteredColumns.value, props.tableFilter, tableFilterState.value, itemsDataColumns.value));
15055
15059
  const sortedItems = vue.computed(() => sortItems(props.columnSorter, filteredTable.value, itemsDataColumns.value, sorterState.value));
15060
+ vue.watch(sortedItems, () => {
15061
+ emit('filteredItemsChange', sortedItems.value);
15062
+ });
15056
15063
  const numberOfPages = vue.computed(() => itemsPerPage.value ? Math.ceil(sortedItems.value.length / itemsPerPage.value) : 1);
15057
15064
  const firstItemOnActivePageIndex = vue.computed(() => activePage.value ? (activePage.value - 1) * itemsPerPage.value : 0);
15058
15065
  const currentItems = vue.computed(() => activePage.value