ember-power-calendar 0.18.0 → 0.19.0
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/addon/components/power-calendar/days.js +3 -2
- package/addon/components/power-calendar/nav.js +3 -2
- package/addon/components/power-calendar-multiple.js +2 -1
- package/addon/components/power-calendar-range.js +2 -1
- package/addon/components/power-calendar.js +7 -4
- package/addon/templates/components/power-calendar.hbs +2 -2
- package/package.json +8 -10
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { layout, tagName } from "@ember-decorators/component";
|
|
2
1
|
import Component from '@ember/component';
|
|
3
2
|
import { computed, action } from '@ember/object';
|
|
4
3
|
import { scheduleOnce } from '@ember/runloop';
|
|
@@ -34,7 +33,9 @@ const WEEK_DAYS = [
|
|
|
34
33
|
'Sun'
|
|
35
34
|
];
|
|
36
35
|
|
|
37
|
-
export default
|
|
36
|
+
export default class extends Component {
|
|
37
|
+
layout = templateLayout
|
|
38
|
+
tagName = ''
|
|
38
39
|
focusedId = undefined
|
|
39
40
|
showDaysAround = true
|
|
40
41
|
weekdayFormat = 'short' // "min" | "short" | "long"
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import Component from '@ember/component';
|
|
2
|
-
import { layout, tagName } from "@ember-decorators/component";
|
|
3
2
|
import templateLayout from '../../templates/components/power-calendar/nav';
|
|
4
3
|
|
|
5
|
-
export default
|
|
4
|
+
export default class extends Component {
|
|
5
|
+
layout = templateLayout
|
|
6
|
+
tagName = ''
|
|
6
7
|
unit = 'month'
|
|
7
8
|
format = 'MMMM YYYY'
|
|
8
9
|
}
|
|
@@ -7,9 +7,10 @@ import {
|
|
|
7
7
|
} from 'ember-power-calendar-utils';
|
|
8
8
|
import { assert } from '@ember/debug';
|
|
9
9
|
import { isArray } from '@ember/array';
|
|
10
|
+
import PowerCalendarMultipleDaysComponent from './power-calendar-multiple/days'
|
|
10
11
|
|
|
11
12
|
export default class extends CalendarComponent {
|
|
12
|
-
daysComponent =
|
|
13
|
+
daysComponent = PowerCalendarMultipleDaysComponent
|
|
13
14
|
_calendarType = 'multiple'
|
|
14
15
|
|
|
15
16
|
// CPs
|
|
@@ -12,10 +12,11 @@ import {
|
|
|
12
12
|
import { assert } from '@ember/debug';
|
|
13
13
|
|
|
14
14
|
import ownProp from 'ember-power-calendar/-private/utils/own-prop';
|
|
15
|
+
import PowerCalendarRangeComponent from './power-calendar-range/days'
|
|
15
16
|
|
|
16
17
|
export default class extends CalendarComponent {
|
|
17
18
|
@fallbackIfUndefined(false) proximitySelection
|
|
18
|
-
daysComponent =
|
|
19
|
+
daysComponent = PowerCalendarRangeComponent
|
|
19
20
|
_calendarType = 'range'
|
|
20
21
|
|
|
21
22
|
// CPs
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { layout, tagName } from "@ember-decorators/component";
|
|
2
1
|
import Component from '@ember/component';
|
|
3
2
|
import { computed, action } from '@ember/object';
|
|
4
3
|
import { guidFor } from '@ember/object/internals';
|
|
@@ -11,13 +10,17 @@ import {
|
|
|
11
10
|
normalizeDate,
|
|
12
11
|
normalizeCalendarValue
|
|
13
12
|
} from 'ember-power-calendar-utils';
|
|
13
|
+
import PowerCalendarNavComponent from './power-calendar/nav'
|
|
14
|
+
import PowerCalendarDaysComponent from './power-calendar/days'
|
|
14
15
|
|
|
15
|
-
export default
|
|
16
|
+
export default class extends Component {
|
|
16
17
|
@service('power-calendar') powerCalendarService
|
|
17
|
-
navComponent =
|
|
18
|
-
daysComponent =
|
|
18
|
+
navComponent = PowerCalendarNavComponent
|
|
19
|
+
daysComponent = PowerCalendarDaysComponent
|
|
19
20
|
center = null
|
|
20
21
|
_calendarType = 'single'
|
|
22
|
+
layout = templateLayout
|
|
23
|
+
tagName = ''
|
|
21
24
|
|
|
22
25
|
// Lifecycle hooks
|
|
23
26
|
init() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{{#let (assign this.publicAPI (hash
|
|
2
|
-
Nav=(component this.navComponent calendar=(readonly this.publicAPI))
|
|
3
|
-
Days=(component this.daysComponent calendar=(readonly this.publicAPI))
|
|
2
|
+
Nav=(component (ensure-safe-component this.navComponent) calendar=(readonly this.publicAPI))
|
|
3
|
+
Days=(component (ensure-safe-component this.daysComponent) calendar=(readonly this.publicAPI))
|
|
4
4
|
)) as |calendar|}}
|
|
5
5
|
{{#let (element this.tagWithDefault) as |Tag|}}
|
|
6
6
|
<Tag class="ember-power-calendar" ...attributes id={{calendar.uniqueId}}>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-power-calendar",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Powerful and customizable calendar component for Ember",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "ember build --environment=production",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"index.js"
|
|
24
24
|
],
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@ember/optional-features": "^
|
|
27
|
-
"@glimmer/component": "^1.
|
|
28
|
-
"@glimmer/tracking": "^1.
|
|
26
|
+
"@ember/optional-features": "^2.0.0",
|
|
27
|
+
"@glimmer/component": "^1.1.0",
|
|
28
|
+
"@glimmer/tracking": "^1.1.0",
|
|
29
29
|
"babel-eslint": "^10.1.0",
|
|
30
30
|
"broccoli-asset-rev": "^3.0.0",
|
|
31
31
|
"ember-auto-import": "^2.4.0",
|
|
32
|
-
"ember-basic-dropdown": "^
|
|
32
|
+
"ember-basic-dropdown": "^6.0.0",
|
|
33
33
|
"ember-cli": "~3.17.0",
|
|
34
34
|
"ember-cli-app-version": "^3.2.0",
|
|
35
35
|
"ember-cli-custom-assertions": "^0.1.1",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"ember-load-initializers": "^2.1.1",
|
|
48
48
|
"ember-maybe-import-regenerator": "^0.1.6",
|
|
49
49
|
"ember-power-calendar-moment": "^0.2.0",
|
|
50
|
-
"ember-power-select": "^
|
|
50
|
+
"ember-power-select": "^6.0.0",
|
|
51
51
|
"ember-resolver": "^7.0.0",
|
|
52
52
|
"ember-source": "~3.17.0",
|
|
53
53
|
"ember-source-channel-url": "^2.0.1",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"eslint-plugin-node": "^11.0.0",
|
|
59
59
|
"loader.js": "^4.7.0",
|
|
60
60
|
"memory-scroll": "^1.0.0",
|
|
61
|
-
"moment": "^2.29.
|
|
61
|
+
"moment": "^2.29.4",
|
|
62
62
|
"npm-run-all": "^4.1.5",
|
|
63
63
|
"qunit-dom": "^1.1.0",
|
|
64
64
|
"sass": "^1.15.2",
|
|
@@ -83,10 +83,8 @@
|
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"ember-assign-helper": "^0.3.0 || ^0.4.0",
|
|
85
85
|
"ember-cli-babel": "^7.18.0",
|
|
86
|
-
"ember-cli-element-closest-polyfill": "^0.0.2",
|
|
87
86
|
"ember-cli-htmlbars": "^4.2.3 || ^5.0.0 || ^6.0.0",
|
|
88
|
-
"ember-concurrency": "^0.8.27 || ^0.9.0 || ^0.10.0 || ^1.0.0 || ^2.0.0
|
|
89
|
-
"ember-decorators": "^6.1.1",
|
|
87
|
+
"ember-concurrency": "^0.8.27 || ^0.9.0 || ^0.10.0 || ^1.0.0 || ^2.0.0",
|
|
90
88
|
"ember-element-helper": "^0.5.0 || ^0.6.0",
|
|
91
89
|
"ember-truth-helpers": "^2.1.0 || ^3.0.0"
|
|
92
90
|
},
|