@coreui/vue-pro 4.11.1 → 4.11.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.js CHANGED
@@ -8070,7 +8070,9 @@ const CDateRangePicker = vue.defineComponent({
8070
8070
  onClick: () => {
8071
8071
  const date = new Date();
8072
8072
  startDate.value = date;
8073
- endDate.value = date;
8073
+ if (props.range) {
8074
+ endDate.value = date;
8075
+ }
8074
8076
  calendarDate.value = date;
8075
8077
  },
8076
8078
  }, () => props.todayButton),
@@ -8079,7 +8081,9 @@ const CDateRangePicker = vue.defineComponent({
8079
8081
  color: props.cancelButtonColor,
8080
8082
  onClick: () => {
8081
8083
  startDate.value = initialStartDate.value;
8082
- endDate.value = initialEndDate.value;
8084
+ if (props.range) {
8085
+ endDate.value = initialEndDate.value;
8086
+ }
8083
8087
  visible.value = false;
8084
8088
  },
8085
8089
  size: props.cancelButtonSize,
@@ -12384,6 +12388,7 @@ const CNavbarPlugin = {
12384
12388
 
12385
12389
  const COffcanvas = vue.defineComponent({
12386
12390
  name: 'COffcanvas',
12391
+ inheritAttrs: false,
12387
12392
  props: {
12388
12393
  /**
12389
12394
  * Apply a backdrop on body while offcanvas is open.
@@ -12466,7 +12471,7 @@ const COffcanvas = vue.defineComponent({
12466
12471
  */
12467
12472
  'show',
12468
12473
  ],
12469
- setup(props, { slots, emit }) {
12474
+ setup(props, { attrs, emit, slots }) {
12470
12475
  const offcanvasRef = vue.ref();
12471
12476
  const visible = vue.ref(props.visible);
12472
12477
  vue.watch(() => props.visible, () => {
@@ -12524,11 +12529,13 @@ const COffcanvas = vue.defineComponent({
12524
12529
  onLeave: (el, done) => handleLeave(el, done),
12525
12530
  onAfterLeave: (el) => handleAfterLeave(el),
12526
12531
  }, () => vue.withDirectives(vue.h('div', {
12532
+ ...attrs,
12527
12533
  class: [
12528
12534
  {
12529
12535
  [`offcanvas${typeof props.responsive === 'boolean' ? '' : '-' + props.responsive}`]: props.responsive,
12530
12536
  [`offcanvas-${props.placement}`]: props.placement,
12531
12537
  },
12538
+ attrs.class,
12532
12539
  ],
12533
12540
  onKeydown: (event) => handleKeyDown(event),
12534
12541
  ref: offcanvasRef,