11/* eslint-disable indent, multiline-ternary */
22/**
33 * --------------------------------------------------------------------------
4- * CoreUI PRO (v4.5.0): calendar.js
4+ * CoreUI PRO calendar.js
55 * License (https://coreui.io/pro/license-new/)
66 * --------------------------------------------------------------------------
77 */
88
9- import { defineJQueryPlugin } from './util/index'
10- import EventHandler from './dom/event-handler'
11- import Manipulator from './dom/manipulator'
9+ import BaseComponent from './base-component.js'
10+ import EventHandler from './dom/event-handler.js'
11+ import Manipulator from './dom/manipulator.js'
12+ import { defineJQueryPlugin } from './util/index.js'
1213import {
1314 createGroupsInArray ,
1415 getMonthDetails ,
@@ -20,14 +21,12 @@ import {
2021 isLastDayOfMonth ,
2122 isToday ,
2223 isStartDate ,
23- isEndDate } from './util/calendar'
24- import BaseComponent from './base-component '
24+ isEndDate
25+ } from './util/calendar.js '
2526
2627/**
27- * ------------------------------------------------------------------------
28- * Constants
29- * ------------------------------------------------------------------------
30- */
28+ * Constants
29+ */
3130
3231const NAME = 'calendar'
3332const DATA_KEY = 'coreui.calendar'
@@ -82,10 +81,8 @@ const DefaultType = {
8281}
8382
8483/**
85- * ------------------------------------------------------------------------
86- * Class Definition
87- * ------------------------------------------------------------------------
88- */
84+ * Class definition
85+ */
8986
9087class Calendar extends BaseComponent {
9188 constructor ( element , config ) {
@@ -477,10 +474,8 @@ class Calendar extends BaseComponent {
477474}
478475
479476/**
480- * ------------------------------------------------------------------------
481- * Data Api implementation
482- * ------------------------------------------------------------------------
483- */
477+ * Data API implementation
478+ */
484479
485480EventHandler . on ( window , EVENT_LOAD_DATA_API , ( ) => {
486481 for ( const element of Array . from ( document . querySelectorAll ( SELECTOR_CALENDAR ) ) ) {
@@ -489,11 +484,8 @@ EventHandler.on(window, EVENT_LOAD_DATA_API, () => {
489484} )
490485
491486/**
492- * ------------------------------------------------------------------------
493- * jQuery
494- * ------------------------------------------------------------------------
495- * add .Calendar to jQuery only if jQuery is present
496- */
487+ * jQuery
488+ */
497489
498490defineJQueryPlugin ( Calendar )
499491
0 commit comments