@mindfusion/scheduling 2.3.2 → 2.3.4

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/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "email": "info@mindfusion.eu",
5
5
  "url": "https://mindfusion.dev"
6
6
  },
7
- "version": "2.3.2",
7
+ "version": "2.3.4",
8
8
  "description": "Scheduling library",
9
9
  "keywords": [
10
10
  "scheduling library"
@@ -14,22 +14,10 @@
14
14
  "module": "./dist/esm/scheduling.js",
15
15
  "exports": {
16
16
  ".": {
17
- "import": {
18
- "types": "./scheduling.d.mts",
19
- "default": "./dist/esm/scheduling.mjs"
20
- },
21
- "require": {
22
- "types": "./scheduling.d.ts",
23
- "default": "./dist/cjs/scheduling.js"
24
- },
25
- "node": {
26
- "types": "./scheduling.d.mts",
27
- "default": "./dist/esm/scheduling.mjs"
28
- },
29
- "default": {
30
- "types": "./scheduling.d.ts",
31
- "default": "./dist/cjs/scheduling.js"
32
- }
17
+ "types": "./scheduling.d.ts",
18
+ "import": "./dist/esm/scheduling.mjs",
19
+ "require": "./dist/cjs/scheduling.js",
20
+ "default": "./dist/cjs/scheduling.js"
33
21
  },
34
22
  "./localization/bg": "./localization/bg.js",
35
23
  "./localization/cn": "./localization/cn.js",
@@ -73,6 +61,6 @@
73
61
  "license": "SEE LICENSE IN LICENSE.txt",
74
62
  "types": "scheduling.d.ts",
75
63
  "dependencies": {
76
- "@mindfusion/common-collections": "^1.2.2"
64
+ "@mindfusion/common-collections": "^1.2.3"
77
65
  }
78
66
  }
package/scheduling.d.ts CHANGED
@@ -2469,6 +2469,63 @@ declare module "Scheduling/jsplanner/src/Task" {
2469
2469
  import { DateTime } from "Scheduling/jsplanner/src/DateTime";
2470
2470
  import { Reminder } from "Scheduling/jsplanner/src/Reminder";
2471
2471
  }
2472
+ declare module "Scheduling/jsplanner/src/Contact" {
2473
+ /**
2474
+ * @class Represents an object that holds contact data for a person.
2475
+ * @augments Resource
2476
+ */
2477
+ export class Contact extends Resource {
2478
+ _firstName: string;
2479
+ _middleName: string;
2480
+ _lastName: string;
2481
+ _address: string;
2482
+ _phone: string;
2483
+ _email: string;
2484
+ set firstName(arg: string);
2485
+ /**
2486
+ * Gets or sets the first name of the contact.
2487
+ * @type {String}
2488
+ * @summary The first name.
2489
+ */
2490
+ get firstName(): string;
2491
+ set middleName(arg: string);
2492
+ /**
2493
+ * Gets or sets the middle name of the contact.
2494
+ * @type {String}
2495
+ * @summary The middle name.
2496
+ */
2497
+ get middleName(): string;
2498
+ set lastName(arg: string);
2499
+ /**
2500
+ * Gets or sets the last name of the contact.
2501
+ * @type {String}
2502
+ * @summary The last name.
2503
+ */
2504
+ get lastName(): string;
2505
+ set address(arg: string);
2506
+ /**
2507
+ * Gets or sets the address of the contact.
2508
+ * @type {String}
2509
+ * @summary The address.
2510
+ */
2511
+ get address(): string;
2512
+ set phone(arg: string);
2513
+ /**
2514
+ * Gets or sets the phone of the contact.
2515
+ * @type {String}
2516
+ * @summary The phone.
2517
+ */
2518
+ get phone(): string;
2519
+ set email(arg: string);
2520
+ /**
2521
+ * Gets or sets the e-mail of the contact.
2522
+ * @type {String}
2523
+ * @summary The e-mail.
2524
+ */
2525
+ get email(): string;
2526
+ }
2527
+ import { Resource } from "Scheduling/jsplanner/src/Resource";
2528
+ }
2472
2529
  declare module "Scheduling/jsplanner/src/Item" {
2473
2530
  /**
2474
2531
  * @class Represents appointments within a schedule.
@@ -2739,6 +2796,7 @@ declare module "Scheduling/jsplanner/src/Item" {
2739
2796
  * @private
2740
2797
  */
2741
2798
  private setResource;
2799
+ addResource(resource: any): void;
2742
2800
  /**
2743
2801
  * @private
2744
2802
  */
@@ -5708,63 +5766,6 @@ declare module "Scheduling/jsplanner/src/ItemSettings" {
5708
5766
  }
5709
5767
  import { EventDispatcher } from "@mindfusion/controls";
5710
5768
  }
5711
- declare module "Scheduling/jsplanner/src/Contact" {
5712
- /**
5713
- * @class Represents an object that holds contact data for a person.
5714
- * @augments Resource
5715
- */
5716
- export class Contact extends Resource {
5717
- _firstName: string;
5718
- _middleName: string;
5719
- _lastName: string;
5720
- _address: string;
5721
- _phone: string;
5722
- _email: string;
5723
- set firstName(arg: string);
5724
- /**
5725
- * Gets or sets the first name of the contact.
5726
- * @type {String}
5727
- * @summary The first name.
5728
- */
5729
- get firstName(): string;
5730
- set middleName(arg: string);
5731
- /**
5732
- * Gets or sets the middle name of the contact.
5733
- * @type {String}
5734
- * @summary The middle name.
5735
- */
5736
- get middleName(): string;
5737
- set lastName(arg: string);
5738
- /**
5739
- * Gets or sets the last name of the contact.
5740
- * @type {String}
5741
- * @summary The last name.
5742
- */
5743
- get lastName(): string;
5744
- set address(arg: string);
5745
- /**
5746
- * Gets or sets the address of the contact.
5747
- * @type {String}
5748
- * @summary The address.
5749
- */
5750
- get address(): string;
5751
- set phone(arg: string);
5752
- /**
5753
- * Gets or sets the phone of the contact.
5754
- * @type {String}
5755
- * @summary The phone.
5756
- */
5757
- get phone(): string;
5758
- set email(arg: string);
5759
- /**
5760
- * Gets or sets the e-mail of the contact.
5761
- * @type {String}
5762
- * @summary The e-mail.
5763
- */
5764
- get email(): string;
5765
- }
5766
- import { Resource } from "Scheduling/jsplanner/src/Resource";
5767
- }
5768
5769
  declare module "Scheduling/jsplanner/src/XmlPersistContext" {
5769
5770
  /**
5770
5771
  * @class Provides methods that read/write schedule data to and from XML.
@@ -6100,16 +6101,22 @@ declare module "Scheduling/jsplanner/src/Schedule" {
6100
6101
  */
6101
6102
  fromXmlDocument(document: Document): void;
6102
6103
  /**
6104
+ * Serializes the schedule into a JSON object.
6105
+ * @returns {Object} An object containing the schedule's JSON representation.
6106
+ */
6107
+ toJsonObject(): any;
6108
+ /**
6103
6109
  * Serializes the schedule into a JSON string.
6104
6110
  * @returns {String} A string containing the schedule's JSON representation.
6105
6111
  */
6106
6112
  toJson(): string;
6107
6113
  /**
6108
- * Deserializes the diagram from a JSON string.
6109
- * @param {String} json A string created by the toJson method.
6110
- */
6114
+ * Deserializes the schedule from a JSON string.
6115
+ * @param {String} json A string created by the toJson method.
6116
+ */
6111
6117
  fromJson(json: string): void;
6112
6118
  _loading: boolean;
6119
+ fromJsonObject(obj: any): void;
6113
6120
  }
6114
6121
  export namespace Schedule {
6115
6122
  /**
@@ -6825,6 +6832,8 @@ declare module "Scheduling/jsplanner/src/Calendar" {
6825
6832
  _itemDeleting: EventDispatcher;
6826
6833
  _itemDeleted: EventDispatcher;
6827
6834
  _recurringItemDeleting: EventDispatcher;
6835
+ _itemPasting: EventDispatcher;
6836
+ _itemPasted: EventDispatcher;
6828
6837
  _itemReminderTriggered: EventDispatcher;
6829
6838
  _taskReminderTriggered: EventDispatcher;
6830
6839
  _itemDraw: EventDispatcher;
@@ -7211,6 +7220,32 @@ declare module "Scheduling/jsplanner/src/Calendar" {
7211
7220
  */
7212
7221
  get recurringItemDeleting(): EventDispatcher;
7213
7222
  /**
7223
+ * Raises the itemPasting event.
7224
+ * @private
7225
+ */
7226
+ private onItemPasting;
7227
+ /**
7228
+ * Raised while an item is being pasted.
7229
+ * @event itemPasting
7230
+ * @type {EventDispatcher}
7231
+ * @property {Calendar} sender
7232
+ * @property {ItemModifyingEventArgs} args
7233
+ */
7234
+ get itemPasting(): EventDispatcher;
7235
+ /**
7236
+ * Raises the itemPasted event.
7237
+ * @private
7238
+ */
7239
+ private onItemPasted;
7240
+ /**
7241
+ * Raised when an item is pasted.
7242
+ * @event itemPasted
7243
+ * @type {EventDispatcher}
7244
+ * @property {Calendar} sender
7245
+ * @property {ItemModifiedEventArgs} args
7246
+ */
7247
+ get itemPasted(): EventDispatcher;
7248
+ /**
7214
7249
  * Raises the itemReminderTriggered event.
7215
7250
  * @private
7216
7251
  */
@@ -7547,6 +7582,27 @@ declare module "Scheduling/jsplanner/src/Calendar" {
7547
7582
  */
7548
7583
  private isReminderOutdated;
7549
7584
  /**
7585
+ * Copies the currently selected items to the clipboard.
7586
+ */
7587
+ copyToClipboard(): void;
7588
+ /**
7589
+ ** Cuts the currently selected items to the clipboard.
7590
+ */
7591
+ cutToClipboard(): void;
7592
+ removeGroupResource(item: any): void;
7593
+ /**
7594
+ ** Pastes items from the clipboard at the specified date and resource.
7595
+ * @param {Boolean} [toSelection] True to paste to the current selection's date and resource.
7596
+ * @param {DateTime} [date] The date to paste to, if toSelection is false.
7597
+ * @param {Resource} [resource] The resource to paste to, if toSelection is false.
7598
+ */
7599
+ pasteFromClipboard(toSelection?: boolean, date?: DateTime, resource?: Resource): void;
7600
+ /**
7601
+ * Invoked to confirm an item paste from the clipboard.
7602
+ * @returns {Boolean} true to confirm, false to cancel.
7603
+ **/
7604
+ confirmItemPaste(item: any): boolean;
7605
+ /**
7550
7606
  * Gets the calendar view cell that corresponds to the specified DateTime and resource.
7551
7607
  * @param {DateTime} time The time to search for.
7552
7608
  * @param {Boolean} [isEndTime] true if the index of the first interval is returned when the time is the boundary between two consecutive intervals;
package/themes/black.css CHANGED
@@ -83,7 +83,7 @@
83
83
  .mfp-popup.black .mfp-popup-content .mfp-date-box .mfp-dropdown-button,
84
84
  .mfp-popup.black .mfp-popup-content .mfp-time-box .mfp-dropdown-button
85
85
  {
86
- background-image: url("icons/white/small.png");
86
+ background-image: url("icons/w_small.png");
87
87
  }
88
88
  .mfp-popup.black .mfp-dtpicker
89
89
  {
@@ -277,13 +277,13 @@
277
277
  .mfp-planner.black .mfp-recurrence .mfp-item .mfp-icons > span::before,
278
278
  .mfp-planner.black .mfp-exception .mfp-item .mfp-icons > span::before
279
279
  {
280
- background-image: url("icons/white/small.png");
280
+ background-image: url("icons/w_small.png");
281
281
  }
282
282
  .mfp-planner.black .mfp-selected.mfp-reminder .mfp-item .mfp-icons > span::after,
283
283
  .mfp-planner.black .mfp-selected.mfp-recurrence .mfp-item .mfp-icons > span::before,
284
284
  .mfp-planner.black .mfp-selected.mfp-exception .mfp-item .mfp-icons > span::before
285
285
  {
286
- background-image: url("icons/black/small.png");
286
+ background-image: url("icons/b_small.png");
287
287
  }
288
288
  .mfp-planner.black .mfp-item-horizontal .mfp-resize-start,
289
289
  .mfp-planner.black .mfp-item-horizontal-detail .mfp-resize-start,
package/themes/blue.css CHANGED
@@ -55,7 +55,7 @@
55
55
  .mfp-popup.blue .mfp-popup-content .mfp-date-box .mfp-dropdown-button,
56
56
  .mfp-popup.blue .mfp-popup-content .mfp-time-box .mfp-dropdown-button
57
57
  {
58
- background-image: url("icons/black/small.png");
58
+ background-image: url("icons/b_small.png");
59
59
  }
60
60
  .mfp-popup.blue .mfp-dtpicker
61
61
  {
@@ -228,13 +228,13 @@
228
228
  .mfp-planner.blue .mfp-recurrence .mfp-item .mfp-icons > span::before,
229
229
  .mfp-planner.blue .mfp-exception .mfp-item .mfp-icons > span::before
230
230
  {
231
- background-image: url("icons/white/small.png");
231
+ background-image: url("icons/w_small.png");
232
232
  }
233
233
  .mfp-planner.blue .mfp-selected.mfp-reminder .mfp-item .mfp-icons > span::after,
234
234
  .mfp-planner.blue .mfp-selected.mfp-recurrence .mfp-item .mfp-icons > span::before,
235
235
  .mfp-planner.blue .mfp-selected.mfp-exception .mfp-item .mfp-icons > span::before
236
236
  {
237
- background-image: url("icons/black/small.png");
237
+ background-image: url("icons/b_small.png");
238
238
  }/**
239
239
  * Vertical list view styles
240
240
  */
@@ -55,7 +55,7 @@
55
55
  .mfp-popup.business .mfp-popup-content .mfp-date-box .mfp-dropdown-button,
56
56
  .mfp-popup.business .mfp-popup-content .mfp-time-box .mfp-dropdown-button
57
57
  {
58
- background-image: url("icons/color/small.png");
58
+ background-image: url("icons/c_small.png");
59
59
  }
60
60
  .mfp-popup.business .mfp-dtpicker
61
61
  {
@@ -229,7 +229,7 @@
229
229
  .mfp-planner.business .mfp-recurrence .mfp-item .mfp-icons > span::before,
230
230
  .mfp-planner.business .mfp-exception .mfp-item .mfp-icons > span::before
231
231
  {
232
- background-image: url("icons/color/small.png");
232
+ background-image: url("icons/c_small.png");
233
233
  }
234
234
  /**
235
235
  * Vertical list view styles
package/themes/earth.css CHANGED
@@ -52,7 +52,7 @@
52
52
  .mfp-popup.earth .mfp-popup-content .mfp-recurrence-info > span.mfp-recurrence::before
53
53
  {
54
54
  content: " ";
55
- background-image: url("icons/white/small.png");
55
+ background-image: url("icons/w_small.png");
56
56
  background-position: -48px 0;
57
57
  height:16px;
58
58
  width:16px;
@@ -64,7 +64,7 @@
64
64
  .mfp-popup.earth .mfp-popup-content .mfp-recurrence-info > span.mfp-exception::before
65
65
  {
66
66
  content: " ";
67
- background-image: url("icons/white/small.png");
67
+ background-image: url("icons/w_small.png");
68
68
  background-position: -64px 0;
69
69
  height:16px;
70
70
  width:16px;
@@ -105,7 +105,7 @@
105
105
  .mfp-popup.earth .mfp-popup-content .mfp-time-box .mfp-dropdown-button
106
106
  {
107
107
  background-color: #46697d;
108
- background-image: url("icons/white/small.png");
108
+ background-image: url("icons/w_small.png");
109
109
  }
110
110
  .mfp-popup.earth .mfp-popup-content .mfp-time-box .mfp-dropdown-button
111
111
  {
@@ -268,7 +268,7 @@
268
268
  .mfp-planner.earth .mfp-recurrence .mfp-item .mfp-icons > span::before,
269
269
  .mfp-planner.earth .mfp-exception .mfp-item .mfp-icons > span::before
270
270
  {
271
- background-image: url("icons/white/small.png");
271
+ background-image: url("icons/w_small.png");
272
272
  }
273
273
  .mfp-planner.earth .mfp-item-horizontal .mfp-resize-start,
274
274
  .mfp-planner.earth .mfp-item-horizontal-detail .mfp-resize-start,
package/themes/gray.css CHANGED
@@ -80,7 +80,7 @@
80
80
  .mfp-popup.gray .mfp-popup-content .mfp-date-box .mfp-dropdown-button,
81
81
  .mfp-popup.gray .mfp-popup-content .mfp-time-box .mfp-dropdown-button
82
82
  {
83
- background-image: url("icons/white/small.png");
83
+ background-image: url("icons/w_small.png");
84
84
  }
85
85
  .mfp-popup.gray .mfp-dtpicker
86
86
  {
@@ -265,13 +265,13 @@
265
265
  .mfp-planner.gray .mfp-recurrence .mfp-item .mfp-icons > span::before,
266
266
  .mfp-planner.gray .mfp-exception .mfp-item .mfp-icons > span::before
267
267
  {
268
- background-image: url("icons/white/small.png");
268
+ background-image: url("icons/w_small.png");
269
269
  }
270
270
  .mfp-planner.gray .mfp-selected.mfp-reminder .mfp-item .mfp-icons > span::after,
271
271
  .mfp-planner.gray .mfp-selected.mfp-recurrence .mfp-item .mfp-icons > span::before,
272
272
  .mfp-planner.gray .mfp-selected.mfp-exception .mfp-item .mfp-icons > span::before
273
273
  {
274
- background-image: url("icons/black/small.png");
274
+ background-image: url("icons/b_small.png");
275
275
  }
276
276
  .mfp-planner.gray .mfp-item-horizontal .mfp-resize-start,
277
277
  .mfp-planner.gray .mfp-item-horizontal-detail .mfp-resize-start,
package/themes/green.css CHANGED
@@ -115,7 +115,7 @@
115
115
  .mfp-popup.green .mfp-popup-content .mfp-date-box .mfp-dropdown-button,
116
116
  .mfp-popup.green .mfp-popup-content .mfp-time-box .mfp-dropdown-button
117
117
  {
118
- background-image: url("icons/black/small.png");
118
+ background-image: url("icons/b_small.png");
119
119
  }
120
120
  .mfp-popup.green .mfp-dtpicker
121
121
  {
@@ -279,13 +279,13 @@
279
279
  .mfp-planner.green .mfp-recurrence .mfp-item .mfp-icons > span::before,
280
280
  .mfp-planner.green .mfp-exception .mfp-item .mfp-icons > span::before
281
281
  {
282
- background-image: url("icons/white/small.png");
282
+ background-image: url("icons/w_small.png");
283
283
  }
284
284
  .mfp-planner.green .mfp-selected.mfp-reminder .mfp-item .mfp-icons > span::after,
285
285
  .mfp-planner.green .mfp-selected.mfp-recurrence .mfp-item .mfp-icons > span::before,
286
286
  .mfp-planner.green .mfp-selected.mfp-exception .mfp-item .mfp-icons > span::before
287
287
  {
288
- background-image: url("icons/black/small.png");
288
+ background-image: url("icons/b_small.png");
289
289
  }/**
290
290
  * Vertical list view styles
291
291
  */
Binary file
Binary file
Binary file
package/themes/light.css CHANGED
@@ -99,7 +99,7 @@
99
99
  .mfp-popup.light .mfp-popup-content .mfp-date-box .mfp-dropdown-button,
100
100
  .mfp-popup.light .mfp-popup-content .mfp-time-box .mfp-dropdown-button
101
101
  {
102
- background-image: url("icons/color/small.png");
102
+ background-image: url("icons/c_small.png");
103
103
  }
104
104
  .mfp-popup.light .mfp-dtpicker
105
105
  {
@@ -256,7 +256,7 @@
256
256
  .mfp-planner.light .mfp-recurrence .mfp-item .mfp-icons > span::before,
257
257
  .mfp-planner.light .mfp-exception .mfp-item .mfp-icons > span::before
258
258
  {
259
- background-image: url("icons/color/small.png");
259
+ background-image: url("icons/c_small.png");
260
260
  }
261
261
  /**
262
262
  * Vertical list view styles
package/themes/pastel.css CHANGED
@@ -96,7 +96,7 @@
96
96
  .mfp-popup.pastel .mfp-popup-content .mfp-date-box .mfp-dropdown-button,
97
97
  .mfp-popup.pastel .mfp-popup-content .mfp-time-box .mfp-dropdown-button
98
98
  {
99
- background-image: url("icons/black/small.png");
99
+ background-image: url("icons/b_small.png");
100
100
  }
101
101
  .mfp-popup.pastel .mfp-popup-content label
102
102
  {
@@ -289,7 +289,7 @@
289
289
  .mfp-planner.pastel .mfp-recurrence .mfp-item .mfp-icons > span::before,
290
290
  .mfp-planner.pastel .mfp-exception .mfp-item .mfp-icons > span::before
291
291
  {
292
- background-image: url("icons/black/small.png");
292
+ background-image: url("icons/b_small.png");
293
293
  }
294
294
  /**
295
295
  * Vertical list view styles
package/themes/peach.css CHANGED
@@ -115,7 +115,7 @@
115
115
  .mfp-popup.peach .mfp-popup-content .mfp-date-box .mfp-dropdown-button,
116
116
  .mfp-popup.peach .mfp-popup-content .mfp-time-box .mfp-dropdown-button
117
117
  {
118
- background-image: url("icons/color/small.png");
118
+ background-image: url("icons/c_small.png");
119
119
  }
120
120
  .mfp-popup.peach .mfp-dtpicker
121
121
  {
@@ -275,7 +275,7 @@
275
275
  .mfp-planner.peach .mfp-recurrence .mfp-item .mfp-icons > span::before,
276
276
  .mfp-planner.peach .mfp-exception .mfp-item .mfp-icons > span::before
277
277
  {
278
- background-image: url("icons/color/small.png");
278
+ background-image: url("icons/c_small.png");
279
279
  }
280
280
  /**
281
281
  * Vertical list view styles
@@ -98,7 +98,7 @@
98
98
  .mfp-popup.standard .mfp-popup-content .mfp-date-box .mfp-dropdown-button,
99
99
  .mfp-popup.standard .mfp-popup-content .mfp-time-box .mfp-dropdown-button
100
100
  {
101
- background-image: url("icons/black/small.png");
101
+ background-image: url("icons/b_small.png");
102
102
  }
103
103
  .mfp-popup.standard .mfp-dtpicker
104
104
  {
@@ -260,7 +260,7 @@
260
260
  .mfp-planner.standard .mfp-recurrence .mfp-item .mfp-icons > span::before,
261
261
  .mfp-planner.standard .mfp-exception .mfp-item .mfp-icons > span::before
262
262
  {
263
- background-image: url("icons/white/small.png");
263
+ background-image: url("icons/w_small.png");
264
264
  }
265
265
  /**
266
266
  * Vertical list view styles