@progress/kendo-angular-scheduler 3.0.2-dev.202202251424 → 3.0.3-dev.202204061046

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.
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-scheduler',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1645798871,
12
+ publishDate: 1649241774,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -47,6 +47,9 @@ export declare abstract class BaseView implements OnInit, OnChanges, AfterViewIn
47
47
  hintContainer: HintContainerComponent;
48
48
  readonly eventTemplateRef: TemplateRef<any>;
49
49
  readonly groupHeaderTemplateRef: TemplateRef<any>;
50
+ /**
51
+ * The non-all-day events.
52
+ */
50
53
  items: Subject<any[]>;
51
54
  horizontalResources: any[];
52
55
  verticalResources: any[];
@@ -61,6 +64,9 @@ export declare abstract class BaseView implements OnInit, OnChanges, AfterViewIn
61
64
  protected groupedResources: any[];
62
65
  protected spans: any[];
63
66
  protected contentHeight: any;
67
+ /**
68
+ * All events that the user provided.
69
+ */
64
70
  protected tasks: any[];
65
71
  protected group: any;
66
72
  protected resources: any[];
@@ -33,6 +33,9 @@ export class BaseView {
33
33
  this.pdfService = pdfService;
34
34
  this.localization = localization;
35
35
  this.cdr = cdr;
36
+ /**
37
+ * The non-all-day events.
38
+ */
36
39
  this.items = new BehaviorSubject(null);
37
40
  this.horizontalResources = [];
38
41
  this.verticalResources = [];
@@ -145,7 +145,11 @@ export function eventResources(event, { taskResources, hasGroups, spans, allReso
145
145
  for (let valueIdx = 0; valueIdx < values.length; valueIdx++) {
146
146
  const dataIdx = getDataIdx(values[valueIdx], resource);
147
147
  if (dataIdx < 0) {
148
- return [{ leafIdx: hasGroups ? -1 : 0, resources: [] }];
148
+ if (hasGroups) {
149
+ // No match for this resource, but the event might still match other resources.
150
+ continue;
151
+ }
152
+ return [{ leafIdx: 0, resources: [] }];
149
153
  }
150
154
  const item = resource.data[dataIdx];
151
155
  // has groups - need all copies of the multiple resource
@@ -32,7 +32,7 @@ const packageMetadata = {
32
32
  name: '@progress/kendo-angular-scheduler',
33
33
  productName: 'Kendo UI for Angular',
34
34
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
35
- publishDate: 1645798871,
35
+ publishDate: 1649241774,
36
36
  version: '',
37
37
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
38
38
  };
@@ -1948,7 +1948,11 @@ function eventResources(event, { taskResources, hasGroups, spans, allResources =
1948
1948
  for (let valueIdx = 0; valueIdx < values.length; valueIdx++) {
1949
1949
  const dataIdx = getDataIdx(values[valueIdx], resource);
1950
1950
  if (dataIdx < 0) {
1951
- return [{ leafIdx: hasGroups ? -1 : 0, resources: [] }];
1951
+ if (hasGroups) {
1952
+ // No match for this resource, but the event might still match other resources.
1953
+ continue;
1954
+ }
1955
+ return [{ leafIdx: 0, resources: [] }];
1952
1956
  }
1953
1957
  const item = resource.data[dataIdx];
1954
1958
  // has groups - need all copies of the multiple resource
@@ -6407,6 +6411,9 @@ class BaseView {
6407
6411
  this.pdfService = pdfService;
6408
6412
  this.localization = localization;
6409
6413
  this.cdr = cdr;
6414
+ /**
6415
+ * The non-all-day events.
6416
+ */
6410
6417
  this.items = new BehaviorSubject(null);
6411
6418
  this.horizontalResources = [];
6412
6419
  this.verticalResources = [];
@@ -32,7 +32,7 @@ var packageMetadata = {
32
32
  name: '@progress/kendo-angular-scheduler',
33
33
  productName: 'Kendo UI for Angular',
34
34
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
35
- publishDate: 1645798871,
35
+ publishDate: 1649241774,
36
36
  version: '',
37
37
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
38
38
  };
@@ -2077,7 +2077,11 @@ function eventResources(event, _a) {
2077
2077
  for (var valueIdx = 0; valueIdx < values.length; valueIdx++) {
2078
2078
  var dataIdx = getDataIdx(values[valueIdx], resource);
2079
2079
  if (dataIdx < 0) {
2080
- return [{ leafIdx: hasGroups ? -1 : 0, resources: [] }];
2080
+ if (hasGroups) {
2081
+ // No match for this resource, but the event might still match other resources.
2082
+ continue;
2083
+ }
2084
+ return [{ leafIdx: 0, resources: [] }];
2081
2085
  }
2082
2086
  var item = resource.data[dataIdx];
2083
2087
  // has groups - need all copies of the multiple resource
@@ -6426,6 +6430,9 @@ var BaseView = /** @class */ (function () {
6426
6430
  this.pdfService = pdfService;
6427
6431
  this.localization = localization;
6428
6432
  this.cdr = cdr;
6433
+ /**
6434
+ * The non-all-day events.
6435
+ */
6429
6436
  this.items = new BehaviorSubject(null);
6430
6437
  this.horizontalResources = [];
6431
6438
  this.verticalResources = [];
@@ -11,7 +11,7 @@ exports.packageMetadata = {
11
11
  name: '@progress/kendo-angular-scheduler',
12
12
  productName: 'Kendo UI for Angular',
13
13
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
14
- publishDate: 1645798871,
14
+ publishDate: 1649241774,
15
15
  version: '',
16
16
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
17
17
  };
@@ -35,6 +35,9 @@ var BaseView = /** @class */ (function () {
35
35
  this.pdfService = pdfService;
36
36
  this.localization = localization;
37
37
  this.cdr = cdr;
38
+ /**
39
+ * The non-all-day events.
40
+ */
38
41
  this.items = new rxjs_1.BehaviorSubject(null);
39
42
  this.horizontalResources = [];
40
43
  this.verticalResources = [];
@@ -164,7 +164,11 @@ function eventResources(event, _a) {
164
164
  for (var valueIdx = 0; valueIdx < values.length; valueIdx++) {
165
165
  var dataIdx = getDataIdx(values[valueIdx], resource);
166
166
  if (dataIdx < 0) {
167
- return [{ leafIdx: hasGroups ? -1 : 0, resources: [] }];
167
+ if (hasGroups) {
168
+ // No match for this resource, but the event might still match other resources.
169
+ continue;
170
+ }
171
+ return [{ leafIdx: 0, resources: [] }];
168
172
  }
169
173
  var item = resource.data[dataIdx];
170
174
  // has groups - need all copies of the multiple resource