@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.es.js +12 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +12 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/date-range-picker/CDateRangePicker.ts +4 -2
- package/src/components/smart-pagination/CSmartPagination.ts +20 -5
- package/src/components/smart-table/CSmartTable.ts +4 -0
- package/src/components/time-picker/CTimePicker.ts +4 -2
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
|
|
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
|
|
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
|
|
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
|
|
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(() => {
|
|
@@ -15049,6 +15053,9 @@ const CSmartTable = defineComponent({
|
|
|
15049
15053
|
const filteredColumns = computed(() => filterColumns(items.value, props.columnFilter, columnFilterState.value, itemsDataColumns.value));
|
|
15050
15054
|
const filteredTable = computed(() => filterTable(filteredColumns.value, props.tableFilter, tableFilterState.value, itemsDataColumns.value));
|
|
15051
15055
|
const sortedItems = computed(() => sortItems(props.columnSorter, filteredTable.value, itemsDataColumns.value, sorterState.value));
|
|
15056
|
+
watch(sortedItems, () => {
|
|
15057
|
+
emit('filteredItemsChange', sortedItems.value);
|
|
15058
|
+
});
|
|
15052
15059
|
const numberOfPages = computed(() => itemsPerPage.value ? Math.ceil(sortedItems.value.length / itemsPerPage.value) : 1);
|
|
15053
15060
|
const firstItemOnActivePageIndex = computed(() => activePage.value ? (activePage.value - 1) * itemsPerPage.value : 0);
|
|
15054
15061
|
const currentItems = computed(() => activePage.value
|