@coreui/vue-pro 4.10.0 → 4.10.1

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
@@ -6961,12 +6961,12 @@ const CTimePicker = defineComponent({
6961
6961
  listOfSeconds: [],
6962
6962
  hour12: false,
6963
6963
  });
6964
- const isValid = ref(props.valid || (props.invalid && false));
6964
+ const isValid = ref(props.valid ?? (props.invalid === true ? false : undefined));
6965
6965
  watch(() => props.time, () => {
6966
6966
  date.value = convertTimeToDate(props.time);
6967
6967
  });
6968
6968
  watch(() => [props.valid, props.invalid], () => {
6969
- isValid.value = props.valid || (props.invalid && false);
6969
+ isValid.value = props.valid ?? (props.invalid === true ? false : undefined);
6970
6970
  });
6971
6971
  watch(date, () => {
6972
6972
  localizedTimePartials.value = getLocalizedTimePartials(props.locale, props.ampm);
@@ -7736,13 +7736,13 @@ const CDateRangePicker = defineComponent({
7736
7736
  const maxDate = ref(props.maxDate && new Date(props.maxDate));
7737
7737
  const minDate = ref(props.minDate && new Date(props.minDate));
7738
7738
  const selectEndDate = ref(false);
7739
- const isValid = ref(props.valid || (props.invalid && false));
7739
+ const isValid = ref(props.valid ?? (props.invalid === true ? false : undefined));
7740
7740
  const isMobile = ref(false);
7741
7741
  onMounted(() => {
7742
7742
  isMobile.value = window.innerWidth < 768;
7743
7743
  });
7744
7744
  watch(() => [props.valid, props.invalid], () => {
7745
- isValid.value = props.valid || (props.invalid && false);
7745
+ isValid.value = props.valid ?? (props.invalid === true ? false : undefined);
7746
7746
  });
7747
7747
  watch(() => props.startDate, () => {
7748
7748
  if (props.startDate) {
@@ -13401,9 +13401,13 @@ const CSmartPagination = defineComponent({
13401
13401
  const activePage = ref(props.activePage);
13402
13402
  const limit = ref(props.limit);
13403
13403
  const pages = ref(props.pages);
13404
- watch(props, () => {
13404
+ watch(() => props.activePage, () => {
13405
13405
  activePage.value = props.activePage;
13406
+ });
13407
+ watch(() => props.limit, () => {
13406
13408
  limit.value = props.limit;
13409
+ });
13410
+ watch(() => props.pages, () => {
13407
13411
  pages.value = props.pages;
13408
13412
  });
13409
13413
  const showDots = computed(() => {