@bryntum/engine-thin-trial 7.1.1 → 7.1.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/README.md
CHANGED
|
@@ -1,52 +1,144 @@
|
|
|
1
|
-
|
|
1
|
+
<br>
|
|
2
|
+
<br>
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
<p align="center">
|
|
5
|
+
<a href="https://bryntum.com/" rel="noopener" target="_blank"><img width="350" src="https://bryntum.com/resources/bryntum_logo_blue.svg" alt="Bryntum logo"></a>
|
|
6
|
+
</p>
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
<br>
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
# Bryntum Engine Thin (Trial)
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
Bryntum Scheduling Engine. It integrates smoothly with React, Vue, Angular, or plain vanilla JS.
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
Bryntum Engine provides foundational functionality used by other Bryntum components (Grid, Scheduler, Gantt, Calendar,
|
|
15
|
+
TaskBoard).
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
In **regular packages**, Bryntum Engine is bundled within each product package. In **thin packages**, it must be
|
|
18
|
+
installed separately as a dependency, giving you precise control over which packages are included in your application.
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
## What is the Thin Package?
|
|
20
21
|
|
|
21
|
-
The
|
|
22
|
-
command depends on the package manager used by the application.
|
|
22
|
+
The **Thin package** contains only product-specific code and styling, making it ideal for:
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
* **Combining multiple Bryntum products** in a single application
|
|
25
|
+
* **Reducing bundle size** - no duplicated code when using multiple products
|
|
26
|
+
* **Avoiding runtime conflicts** - prevents duplicate class registrations
|
|
27
|
+
|
|
28
|
+
## Package Contents
|
|
29
|
+
|
|
30
|
+
| Path | Description |
|
|
31
|
+
|---------------------------------------|------------------------------------------------|
|
|
32
|
+
| `engine.module.js`, `engine.umd.js` | JavaScript bundles (ES module and UMD formats) |
|
|
33
|
+
| `engine.css` | Structural CSS (required) |
|
|
34
|
+
| `*.d.ts` | TypeScript type definitions |
|
|
35
|
+
| `*.css` | Theme stylesheets |
|
|
36
|
+
|
|
37
|
+
**Note:** Trial packages do not include minified bundles or source maps.
|
|
38
|
+
|
|
39
|
+
## Installation
|
|
40
|
+
|
|
41
|
+
This is a **trial package** with limited functionality.
|
|
42
|
+
|
|
43
|
+
### Why Use npm Aliasing?
|
|
44
|
+
|
|
45
|
+
Trial packages use npm aliasing to install `@bryntum/engine-thin-trial` under the `@bryntum/engine-thin` name. This
|
|
46
|
+
approach provides a seamless upgrade path - when you purchase a license, you only need to update the alias in
|
|
47
|
+
`package.json` without changing any application code.
|
|
25
48
|
|
|
26
49
|
Install using `npm`:
|
|
27
50
|
|
|
28
51
|
```shell
|
|
29
|
-
npm install @bryntum/engine-thin@npm
|
|
52
|
+
npm install @bryntum/engine-thin@npm:@bryntum/engine-thin-trial@latest
|
|
30
53
|
```
|
|
31
54
|
|
|
32
|
-
|
|
55
|
+
Or using `yarn`:
|
|
56
|
+
|
|
57
|
+
```shell
|
|
58
|
+
yarn add @bryntum/engine-thin@npm:@bryntum/engine-thin-trial@latest
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Alternatively, add to `package.json` dependencies:
|
|
62
|
+
|
|
63
|
+
```json
|
|
64
|
+
"dependencies": {
|
|
65
|
+
"@bryntum/engine-thin": "npm:@bryntum/engine-thin-trial@latest"
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Combining Multiple Products
|
|
70
|
+
|
|
71
|
+
When combining multiple Bryntum products, install all needed thin packages with aliasing:
|
|
33
72
|
|
|
34
73
|
```shell
|
|
35
|
-
|
|
74
|
+
# Example: Using Grid and Scheduler together
|
|
75
|
+
npm install @bryntum/grid-thin@npm:@bryntum/grid-thin-trial@latest
|
|
76
|
+
npm install @bryntum/scheduler-thin@npm:@bryntum/scheduler-thin-trial@latest
|
|
77
|
+
npm install @bryntum/scheduler-react-thin@latest
|
|
36
78
|
```
|
|
37
79
|
|
|
38
|
-
|
|
80
|
+
## Required Dependencies
|
|
81
|
+
|
|
82
|
+
Thin packages contain only product-specific code and **do not automatically install dependencies**. You must manually
|
|
83
|
+
install all required API packages for the underlying products.
|
|
84
|
+
|
|
85
|
+
### Dependency Chain Overview
|
|
86
|
+
|
|
87
|
+
The following table shows which thin API packages are required for each Bryntum product:
|
|
88
|
+
|
|
89
|
+
| Product | Core | Engine | Grid | Scheduler | Scheduler Pro | Product Package |
|
|
90
|
+
|-------------------|:----:|:------:|:----:|:---------:|:-------------:|:----------------------------:|
|
|
91
|
+
| **Grid** | ✓ | | ✓ | | | `@bryntum/grid-thin` |
|
|
92
|
+
| **Scheduler** | ✓ | ✓ | ✓ | ✓ | | `@bryntum/scheduler-thin` |
|
|
93
|
+
| **Scheduler Pro** | ✓ | ✓ | ✓ | ✓ | ✓ | `@bryntum/schedulerpro-thin` |
|
|
94
|
+
| **Gantt** | ✓ | ✓ | ✓ | ✓ | ✓ | `@bryntum/gantt-thin` |
|
|
95
|
+
| **Calendar** | ✓ | ✓ | ✓ | ✓ | | `@bryntum/calendar-thin` |
|
|
96
|
+
| **TaskBoard** | ✓ | ✓ | | | | `@bryntum/taskboard-thin` |
|
|
97
|
+
|
|
98
|
+
### Important Notes
|
|
99
|
+
|
|
100
|
+
**About Core Framework Wrappers:**
|
|
101
|
+
|
|
102
|
+
`@bryntum/core-[framework]-thin` packages (e.g., `@bryntum/core-react-thin`) are **optional** and only needed if you use
|
|
103
|
+
Bryntum Core UI widgets directly in your app, such as:
|
|
104
|
+
|
|
105
|
+
- `BryntumButton`
|
|
106
|
+
- `BryntumCombo`
|
|
107
|
+
- `BryntumTextField`
|
|
108
|
+
- Other Core widgets
|
|
109
|
+
|
|
110
|
+
If you only use the main product component (Grid, Scheduler, etc.), you don't need the Core framework wrapper.
|
|
111
|
+
|
|
112
|
+
## Explore All Bryntum Products
|
|
113
|
+
|
|
114
|
+
* [Bryntum Grid](https://bryntum.com/products/grid/) - High-performance data grid
|
|
115
|
+
* [Bryntum Scheduler](https://bryntum.com/products/scheduler/) - Resource scheduling component
|
|
116
|
+
* [Bryntum Scheduler Pro](https://bryntum.com/products/schedulerpro/) - Advanced scheduling with dependencies
|
|
117
|
+
* [Bryntum Gantt](https://bryntum.com/products/gantt/) - Project planning and management
|
|
118
|
+
* [Bryntum Calendar](https://bryntum.com/products/calendar/) - Full-featured calendar component
|
|
119
|
+
* [Bryntum TaskBoard](https://bryntum.com/products/taskboard/) - Kanban-style task management
|
|
120
|
+
|
|
121
|
+
Explore our comprehensive collection of demos:
|
|
122
|
+
|
|
123
|
+
| Product | <img src="https://bryntum.com/products/grid/docs/data/Core/images/logo/js.svg" alt="JavaScript" width="30"><br>JavaScript | <img src="https://bryntum.com/products/grid/docs/data/Core/images/logo/react.svg" alt="React" width="30"><br>React | <img src="https://bryntum.com/products/grid/docs/data/Core/images/logo/vue.svg" alt="Vue" width="30"><br>Vue | <img src="https://bryntum.com/products/grid/docs/data/Core/images/logo/angular.svg" alt="Angular" width="30"><br>Angular |
|
|
124
|
+
|-------------------|:------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------:|:----------------------------------------------------------------------:|:------------------------------------------------------------------------------:|
|
|
125
|
+
| **Grid** | [Grid JavaScript demos](https://bryntum.com/products/grid/examples/?framework=javascript) | [Grid React demos](https://bryntum.com/products/grid/examples/?framework=react) | [Grid Vue demos](https://bryntum.com/products/grid/examples/?framework=vue) | [Grid Angular demos](https://bryntum.com/products/grid/examples/?framework=angular) |
|
|
126
|
+
| **Scheduler** | [Scheduler JavaScript demos](https://bryntum.com/products/scheduler/examples/?framework=javascript) | [Scheduler React demos](https://bryntum.com/products/scheduler/examples/?framework=react) | [Scheduler Vue demos](https://bryntum.com/products/scheduler/examples/?framework=vue) | [Scheduler Angular demos](https://bryntum.com/products/scheduler/examples/?framework=angular) |
|
|
127
|
+
| **Scheduler Pro** | [Scheduler Pro JavaScript demos](https://bryntum.com/products/schedulerpro/examples/?framework=javascript) | [Scheduler Pro React demos](https://bryntum.com/products/schedulerpro/examples/?framework=react) | [Scheduler Pro Vue demos](https://bryntum.com/products/schedulerpro/examples/?framework=vue) | [Scheduler Pro Angular demos](https://bryntum.com/products/schedulerpro/examples/?framework=angular) |
|
|
128
|
+
| **Gantt** | [Gantt JavaScript demos](https://bryntum.com/products/gantt/examples/?framework=javascript) | [Gantt React demos](https://bryntum.com/products/gantt/examples/?framework=react) | [Gantt Vue demos](https://bryntum.com/products/gantt/examples/?framework=vue) | [Gantt Angular demos](https://bryntum.com/products/gantt/examples/?framework=angular) |
|
|
129
|
+
| **Calendar** | [Calendar JavaScript demos](https://bryntum.com/products/calendar/examples/?framework=javascript) | [Calendar React demos](https://bryntum.com/products/calendar/examples/?framework=react) | [Calendar Vue demos](https://bryntum.com/products/calendar/examples/?framework=vue) | [Calendar Angular demos](https://bryntum.com/products/calendar/examples/?framework=angular) |
|
|
130
|
+
| **TaskBoard** | [TaskBoard JavaScript demos](https://bryntum.com/products/taskboard/examples/?framework=javascript) | [TaskBoard React demos](https://bryntum.com/products/taskboard/examples/?framework=react) | [TaskBoard Vue demos](https://bryntum.com/products/taskboard/examples/?framework=vue) | [TaskBoard Angular demos](https://bryntum.com/products/taskboard/examples/?framework=angular) |
|
|
131
|
+
|
|
132
|
+
## Online references
|
|
39
133
|
|
|
40
|
-
* [Bryntum npm repository guide](https://bryntum.com/products/engine/docs/guide/Engine/npm-repository)
|
|
41
|
-
* [Bryntum Engine documentation](https://bryntum.com/products/engine/docs/)
|
|
42
|
-
* [Bryntum Engine examples](https://bryntum.com/products/engine/examples/)
|
|
43
134
|
* [Bryntum Support Forum](https://forum.bryntum.com/)
|
|
44
135
|
* [Contact us](https://bryntum.com/contact/)
|
|
45
136
|
|
|
46
|
-
|
|
137
|
+
## License and copyright
|
|
47
138
|
|
|
48
139
|
Bryntum Engine is commercial software and requires a paid license.
|
|
49
140
|
Please visit the [Bryntum Engine End User License](https://bryntum.com/products/engine/license/) for the full text of the license.
|
|
50
141
|
|
|
51
142
|
Copyright © 2009-2026, Bryntum
|
|
52
143
|
All rights reserved.
|
|
144
|
+
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){const c=a();function p(a,b){return _enb(a- -0x170,b);}while(!![]){try{const d=parseInt(p(-0xb,0x18))/0x1+parseInt(p(-0x2b,-0x32))/0x2*(parseInt(p(-0x59,-0x55))/0x3)+parseInt(p(-0x3f,-0x5c))/0x4+-parseInt(p(-0x35,-0x37))/0x5*(-parseInt(p(-0x10,-0x27))/0x6)+-parseInt(p(-0x1d,-0x3a))/0x7*(parseInt(p(-0x1b,-0x1c))/0x8)+parseInt(p(-0x5b,-0x3f))/0x9+parseInt(p(-0x47,-0x4d))/0xa*(-parseInt(p(-0x50,-0x51))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0x5bd16));var __decorate=function(a,b,e,f){function q(a,b){return _enb(a-0xb7,b);}var g=arguments[q(0x1d2,0x1b3)],h=g<0x3?b:f===null?f=Object[q(0x205,0x1fb)](b,e):f,j;if(typeof Reflect==='object'&&typeof Reflect[q(0x1db,0x209)]===q(0x204,0x1d9))h=Reflect[q(0x1db,0x1d7)](a,b,e,f);else for(var k=a[q(0x1d2,0x1a7)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[q(0x1da,0x203)](b,e,h),h;};function _ena(){const T=['isDateConstraintInterval','891OnFFKP','concat','Implement\x20me','defineProperty','decorate','add','startDateConstraintIntervals','hasSubEvents','isManuallyScheduled','197690knbfYs','endDateConstraintIntervals','direction','StartNoLaterThan','isInfinite','maxChildrenEndDate','map','parentId','294484qsVOlE','isIntervalEmpty','calculateEarlyStartDateConstraintIntervals','filter','pick','shouldRollupChildEndDate','event','onNonEmptyEffectiveInterval','StartNoEarlierThan','shouldRollupChildEarlyStartDate','730AceQPz','calculateEarlyEndDateConstraintIntervals','calculateStartDate','resolved','isConstrained','endDateIsFinite','prototype','shouldRollupChildEarlyEndDate','phase','shouldSkipNonWorkingTime','34462nyfpPM','setupFields','subEventsIterable','calculateLateStartDateConstraintIntervals','isDependencyConstraintInterval','expanded','end','containsDate','function','getOwnPropertyDescriptor','constraintType','onEmptyEffectiveInterval','parentIndex','calculateStartDateConstraintIntervals','147ElIGxS','kind','904IIBaCz','FinishNoEarlierThan','endDate','readOnly','shouldRollupChildStartDate','date','calculateEffectiveConstraintInterval','copyWith','start','minChildrenStartDate','calculateMaxChildrenEndDate','23406mDMcIq','changeDateConstraintIntervalOnConflict','startDateIsFinite','value','shouldRollupChildLateStartDate','728148WioHHV','startDate','shouldRollupChildLateEndDate','Forward','new','calculateMinChildrenStartDate','project','calculateLateEndDateConstraintIntervals','calculateEffectiveDuration','calculateProjectedXDateWithDuration','doCalculateEffectiveEndDateInterval','removeField','calculateEndDateConstraintIntervals','getDateShifter','intersectionOf','isFirstPass','autoScheduleManualTasksOnSecondPass','effectiveDirection','earlyPreSchedule','5320818LQIhbI','calculateEndDate','3QtGYtx','End','Start','getTime','length','maybeSkipNonWorkingTime','return','skipNonWorkingTime'];_ena=function(){return T;};return _ena();}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{ConstraintInterval}from'../../../chrono/Conflict.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';function _enr(a,b){return _enb(b- -0x17d,a);}import{intersectIntervals}from'../../../scheduling/DateInterval.js';import{ConstraintIntervalSide,ConstraintType,Direction}from'../../../scheduling/Types.js';import{isDateFinite,MAX_DATE,MIN_DATE}from'../../../util/Constants.js';import{ChronoPartOfProjectModelMixin}from'../mixin/ChronoPartOfProjectModelMixin.js';const isForwardInterval=a=>a[_enr(-0x42,-0x1b)](),isBackwardInterval=a=>a['endDateIsFinite'](),isInflexibleInterval=a=>{function s(a,b){return _enr(b,a-0x50d);}return a[s(0x4f2,0x514)]()&&a[s(0x4d0,0x4b6)]()&&a[s(0x4f6,0x50e)][s(0x4aa,0x4d6)]()===a[s(0x4e7,0x4ee)][s(0x4aa,0x4a7)]();};const calculateEffectiveStartDateConstraintInterval=function*(a,b,c,d,e,f){if(c[t(-0xee,-0x100)]())return c;if(e&&c['intersectionOf']){const i=new Set();for(const j of c[t(-0x110,-0x129)]){if(j['isInfinite']()){i['add'](j);}else{const k=j[t(-0xbe,-0x94)]()?yield*a[t(-0x115,-0x13b)](j[t(-0xba,-0xa3)],![],d):j[t(-0xba,-0xcf)];const l=j['endDateIsFinite']()?yield*a[t(-0x115,-0x10d)](j[t(-0xc9,-0xcc)],![],d):j[t(-0xc9,-0xee)];const m=j;i[t(-0xfb,-0x10c)](m[t(-0xc4,-0xd1)]({'reflectionOf':m,'side':m['side']===ConstraintIntervalSide[t(-0x107,-0x136)]?ConstraintIntervalSide['End']:ConstraintIntervalSide[t(-0x107,-0x116)],'startDate':k,'endDate':l}));}}c[t(-0x110,-0x10b)]=i;}const g=c[t(-0xbe,-0xcb)]()?yield*f(c[t(-0xba,-0xab)]):null;const h=c[t(-0xe0,-0xcb)]()?yield*f(c[t(-0xc9,-0xa0)]):null;function t(a,b){return _enr(b,a- -0xa3);}return intersectIntervals([b,ConstraintInterval[t(-0xb7,-0x98)]({'intersectionOf':c[t(-0x110,-0x115)],'startDate':g,'endDate':h})],e);};const calculateEffectiveEndDateConstraintInterval=function*(a,b,c,d,e,f){function u(a,b){return _enr(b,a-0x45d);}if(b['isIntervalEmpty']())return b;if(e&&b['intersectionOf']){const i=new Set();for(const j of b[u(0x3f0,0x40a)]){if(j[u(0x40d,0x3df)]()){i[u(0x405,0x422)](j);}else{const k=j[u(0x442,0x46e)]()?yield*a['calculateProjectedXDateWithDuration'](j[u(0x446,0x43a)],!![],d):j['startDate'];const l=j[u(0x420,0x445)]()?yield*a[u(0x3eb,0x404)](j[u(0x437,0x410)],!![],d):j['endDate'];const m=j;i[u(0x405,0x3f4)](m[u(0x43c,0x42f)]({'reflectionOf':m,'side':m['side']===ConstraintIntervalSide[u(0x3f9,0x41e)]?ConstraintIntervalSide[u(0x3f8,0x409)]:ConstraintIntervalSide[u(0x3f9,0x41e)],'startDate':k,'endDate':l}));}}b[u(0x3f0,0x3e5)]=i;}const g=b[u(0x442,0x429)]()?yield*f(b[u(0x446,0x415)]):null;const h=b['endDateIsFinite']()?yield*f(b[u(0x437,0x457)]):null;return intersectIntervals([c,ConstraintInterval[u(0x449,0x42e)]({'reflectionOf':g||h?b:void 0x0,'intersectionOf':g||h?b['intersectionOf']:void 0x0,'startDate':g,'endDate':h})],e);};function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x10a;let f=c[d];return f;};return _enb(a,b);}class EventScheduleMixin extends Mixin([ChronoPartOfProjectModelMixin],a=>{class b extends a{constructor(){super(...arguments);this['direction']=void 0x0;function v(a,b){return _enb(a- -0x162,b);}this[v(-0x1f,-0x43)]='phase1';this[v(-0x2b,-0x2c)]=void 0x0;}get['project'](){function w(a,b){return _enb(b- -0x1e6,a);}return this[w(-0xce,-0xaf)]?.[w(-0x71,-0x7b)];}[x(0x182,0x177)](c){throw new Error('Implement\x20me');}*[x(0x18a,0x171)](){function y(a,b){return x(b-0x2e2,a);}throw new Error(y(0x431,0x451));}*[x(0x163,0x171)](){function z(a,b){return x(a- -0x37c,b);}throw new Error(z(-0x20d,-0x1e1));}static[x(0x193,0x167)](c,d){super[A(0x294,0x29f)](c,d);this[A(0x25b,0x236)](A(0x29f,0x279));this[A(0x25b,0x268)]('orderedParentIndex');this[A(0x25b,0x22b)](A(0x27e,0x28d));this[A(0x25b,0x229)](A(0x298,0x2b6));function A(a,b){return x(a-0x101,b);}this[A(0x25b,0x23d)](A(0x2a6,0x2b2));}}function x(a,b){return _enr(b,a-0x1ca);}__decorate([model_field({'type':'date','persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],b['prototype'],'startDate',void 0x0);__decorate([model_field({'type':x(0x1a7,0x1a3),'persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],b[x(0x18e,0x1b0)],'endDate',void 0x0);__decorate([calculate(x(0x1b3,0x1bf))],b[x(0x18e,0x1b0)],x(0x18a,0x1ac),null);__decorate([calculate(x(0x1a4,0x182))],b['prototype'],x(0x163,0x186),null);return b;}){}class ConstrainedScheduleMixin extends Mixin([EventScheduleMixin],a=>{class b extends a{constructor(){function B(a,b){return _enb(a-0x80,b);}super(...arguments);this['direction']=Direction[B(0x1e8,0x20f)];this[B(0x1b7,0x1c0)]=void 0x0;}[C(0x151,0x147)](c){function D(a,b){return C(a- -0x2a2,b);}return c[D(-0x172,-0x180)];}*[C(0x138,0x160)](c,d=!![],e=null){function E(a,b){return C(b-0x11f,a);}if(yield*this['event'][E(0x234,0x262)]())return c;let f=c;if(c&&(yield*this[E(0x289,0x272)][E(0x2a4,0x27f)]())){f=yield*this[E(0x24a,0x272)][E(0x260,0x259)](c,d);if(f&&e&&!e[E(0x270,0x287)](f)){f=c;}}return f;}['changeDateConstraintIntervalOnConflict'](c,d,e){const {isDateConstraintInterval:f,owner:g}=c;function F(a,b){return C(a-0xe9,b);}if(f&&g===e){if(this[F(0x230,0x236)]===Direction['Forward']){if(d===F(0x262,0x270)&&g[F(0x254,0x230)]===ConstraintType[F(0x231,0x23e)]){return c[F(0x261,0x264)]({'startDate':c[F(0x25c,0x25d)],'endDate':null});}if(d==='end'&&g[F(0x254,0x25f)]===ConstraintType['FinishNoLaterThan']){return c[F(0x261,0x25d)]({'startDate':c[F(0x25c,0x265)],'endDate':null});}}else{if(d==='start'&&g[F(0x254,0x234)]===ConstraintType[F(0x23e,0x236)]){return c[F(0x261,0x289)]({'startDate':null,'endDate':c['startDate']});}if(d===F(0x250,0x26a)&&g[F(0x254,0x25f)]===ConstraintType[F(0x25b,0x275)]){return c[F(0x261,0x270)]({'startDate':null,'endDate':c[F(0x26b,0x245)]});}}}return c;}*[C(0x177,0x1a2)](c,d,e,f=![],g=![]){function G(a,b){return C(b- -0x2b5,a);}const {event:h}=this;const i=yield*h[G(-0x196,-0x18a)](c?![]:!![]);if(i==null){return null;}const j=f?yield*h[G(-0x16b,-0x18f)]():0x0;if(j==null){return null;}if(g){if(this[G(-0x15b,-0x12e)]['bwcConflictPostpone']){if(yield*this[G(-0x178,-0x188)]()){d=d[G(-0x140,-0x165)](m=>!m[G(-0x181,-0x150)])[G(-0x13c,-0x16a)](m=>this[G(-0x150,-0x138)](m,G(-0x152,-0x13c),h));e=e[G(-0x190,-0x165)](m=>!m['isDependencyConstraintInterval'])[G(-0x174,-0x16a)](m=>this[G(-0x12a,-0x138)](m,G(-0x161,-0x14e),h));}else{d=d[G(-0x17e,-0x165)](m=>!m[G(-0x177,-0x17a)]);e=e[G(-0x15a,-0x165)](m=>!m[G(-0x16f,-0x17a)]);}}else{const m=this[G(-0x19d,-0x16e)]===Direction[G(-0x147,-0x131)]?isForwardInterval:isBackwardInterval,n=d[G(-0x151,-0x165)](isInflexibleInterval);d=n[G(-0x1ae,-0x17e)]?n:d[G(-0x191,-0x165)](m);const o=e[G(-0x16a,-0x165)](isInflexibleInterval);e=o[G(-0x15c,-0x17e)]?o:e[G(-0x14a,-0x165)](m);}}const k=c?calculateEffectiveStartDateConstraintInterval:calculateEffectiveEndDateConstraintInterval;const l=yield*k(h,intersectIntervals(d,f),intersectIntervals(e,f),j,f,i);return l;}*[C(0x16e,0x194)](){function H(a,b){return C(b- -0x23a,a);}return this[H(-0x118,-0xf3)]===Direction['Forward']?yield*this[H(-0x10b,-0xe7)][H(-0xbf,-0xeb)]():yield*this[H(-0xd1,-0xe7)][H(-0xb6,-0xd6)]();}*['calculateEndDateConstraintIntervals'](){function I(a,b){return C(a-0x23,b);}return this['direction']===Direction[I(0x1a7,0x1d3)]?yield*this[I(0x176,0x177)][I(0x17b,0x187)]():yield*this[I(0x176,0x1a4)][I(0x1ab,0x191)]();}*['doCalculateEffectiveStartDateInterval'](c=![],d=![]){const e=yield this['$'][J(0x187,0x19b)];const f=yield this['$'][J(0x18b,0x1b1)];function J(a,b){return C(a-0x45,b);}return yield*this[J(0x1bc,0x1e7)](!![],e[J(0x182,0x169)](yield this[J(0x198,0x19c)]['$'][J(0x187,0x16c)]),f['concat'](yield this[J(0x198,0x185)]['$'][J(0x18b,0x18d)]),c,d);}*[C(0x128,0x109)](c=![],d=![]){function K(a,b){return C(b-0x23b,a);}const e=yield this['$']['startDateConstraintIntervals'];const f=yield this['$'][K(0x377,0x381)];return yield*this[K(0x3bc,0x3b2)](![],e[K(0x367,0x378)](yield this[K(0x3b9,0x38e)]['$'][K(0x363,0x37d)]),f[K(0x39d,0x378)](yield this['event']['$'][K(0x394,0x381)]),c,d);}*[C(0x175,0x17f)](c){function L(a,b){return C(a-0x31b,b);}return this[L(0x462,0x46e)]===Direction[L(0x49f,0x4c6)]?yield*this[L(0x46e,0x477)][L(0x471,0x478)](c):yield*this[L(0x46e,0x484)][L(0x49b,0x490)](c);}*['calculateMinChildrenStartDate'](){let c=MAX_DATE;const d=yield*this[M(-0x263,-0x25a)][M(-0x253,-0x25f)]();function M(a,b){return C(a- -0x3b6,b);}for(const e of d){if(!(yield*this[M(-0x241,-0x227)](e)))continue;let f;if((yield*e[M(-0x272,-0x252)]())&&(yield*e['hasSubEvents']())){f=yield this[M(-0x265,-0x251)](e)['$'][M(-0x23c,-0x20d)];}f=f||(yield this[M(-0x265,-0x28c)](e)['$'][M(-0x234,-0x23e)]);if(f&&f<c)c=f;}return c[M(-0x280,-0x25f)]()-MAX_DATE[M(-0x280,-0x270)]()?c:null;}*[C(0x152,0x125)](c){function N(a,b){return C(a-0x170,b);}return this['direction']===Direction[N(0x2f4,0x2cf)]?yield*this[N(0x2c3,0x29a)][N(0x2ce,0x29d)](c):yield*this[N(0x2c3,0x2cb)][N(0x2f3,0x2e8)](c);}*[C(0x17b,0x174)](){let c=MIN_DATE;const d=yield*this[O(0x86,0x9f)][O(0x96,0x92)]();for(const e of d){if(!(yield*this[O(0x85,0xb2)](e)))continue;let f;if((yield*e[O(0x77,0x53)]())&&(yield*e[O(0x76,0x9a)]())){f=yield this[O(0x84,0x96)](e)['$'][O(0x7d,0x5e)];}f=f||(yield this[O(0x84,0xa7)](e)['$'][O(0xa6,0xd3)]);if(f&&f>c)c=f;}function O(a,b){return C(a- -0xcd,b);}return c[O(0x69,0x78)]()-MIN_DATE[O(0x69,0x56)]()?c:null;}*[C(0x159,0x155)](){let c;let d;function P(a,b){return C(a-0x23b,b);}if((yield*this[P(0x38e,0x39e)][P(0x37f,0x3ae)]())&&(!(yield this[P(0x3c2,0x3d0)]['$'][P(0x369,0x35c)])||(yield this[P(0x38e,0x3bb)]['$']['effectiveDirection'])[P(0x382,0x38e)]===this[P(0x382,0x35d)])){c=yield this[P(0x38e,0x398)]['$'][P(0x3bd,0x3e0)];}else if(yield*this[P(0x38e,0x37d)]['hasSubEvents']()){c=yield this['$'][P(0x3b5,0x3c0)];}else if(!(yield*this['isConstrained']())){c=yield this[P(0x38e,0x3a5)]['$'][P(0x3bd,0x38f)];}else{d=yield*this['doCalculateEffectiveStartDateInterval']();if(d===null){return null;}else if(d[P(0x389,0x39d)]()){const e=yield*this[P(0x38e,0x3a8)]['onEmptyEffectiveInterval'](P(0x3b4,0x3e6),this);if(e['kind']===P(0x374,0x36a)){return e['value'];}else if(e[P(0x3ab,0x3c7)]==='resolved'){d=e[P(0x3ba,0x3cf)];}}else{yield*this['event'][P(0x38f,0x3a9)](P(0x3b4,0x3c7),this);}c=this[P(0x382,0x3ac)]===Direction[P(0x3bf,0x3ea)]?isDateFinite(d[P(0x3bd,0x3bc)])?d[P(0x3bd,0x390)]:null:isDateFinite(d['endDate'])?d[P(0x3ae,0x390)]:null;}return yield*this['maybeSkipNonWorkingTime'](c,!![],d);}*[C(0x132,0x132)](){function Q(a,b){return C(a-0x27a,b);}let c;let d;if((yield*this[Q(0x3cd,0x3e0)][Q(0x3be,0x3ed)]())&&(!(yield this[Q(0x401,0x402)]['$'][Q(0x3a8,0x383)])||(yield this['event']['$'][Q(0x3a9,0x3a1)])[Q(0x3c1,0x3c7)]===this[Q(0x3c1,0x3c7)])){c=yield this[Q(0x3cd,0x3b3)]['$']['endDate'];}else if(yield*this['event'][Q(0x3bd,0x3bd)]()){c=yield this['$']['maxChildrenEndDate'];}else if(!(yield*this[Q(0x3d5,0x3f1)]())){c=yield this[Q(0x3cd,0x3b4)]['$']['endDate'];}else{d=yield*this['doCalculateEffectiveEndDateInterval']();if(d===null){return null;}else if(d[Q(0x3c8,0x3c9)]()){const e=yield*this['event'][Q(0x3e6,0x3c2)](Q(0x3e1,0x3bc),this);if(e[Q(0x3ea,0x3b8)]===Q(0x3b3,0x397)){return e['value'];}else if(e['kind']===Q(0x3d4,0x3df)){d=e[Q(0x3f9,0x3d3)];}}else{yield*this['event'][Q(0x3ce,0x3da)](Q(0x3e1,0x3b1),this);}c=this[Q(0x3c1,0x392)]===Direction[Q(0x3fe,0x3d6)]?isDateFinite(d[Q(0x3fc,0x3d6)])?d[Q(0x3fc,0x418)]:null:isDateFinite(d[Q(0x3ed,0x3f3)])?d[Q(0x3ed,0x3fa)]:null;}return yield*this[Q(0x3b2,0x392)](c,![],d);}*[C(0x15b,0x177)](){const c=yield this['event']['$'][R(0x453,0x456)];const d=yield this[R(0x440,0x467)]['$'][R(0x475,0x45a)];const e=yield this['$'][R(0x45d,0x456)];const f=yield this['$'][R(0x437,0x45a)];function R(a,b){return C(b-0x314,a);}return e?.[R(0x47b,0x44b)]>0x0||f?.['length']>0x0||c?.[R(0x41f,0x44b)]>0x0||d?.['length']>0x0;}*[C(0x12d,0x128)](){function S(a,b){return C(a-0x2c0,b);}const c=yield this['getProject']()['$'][S(0x3ef,0x3eb)];return c[S(0x407,0x3f8)]===this['direction'];}}__decorate([field({'lazy':!![]})],b[C(0x15d,0x134)],C(0x17a,0x169),void 0x0);__decorate([field({'lazy':!![]})],b[C(0x15d,0x133)],C(0x14a,0x164),void 0x0);__decorate([field({'lazy':!![],'ignoreEdgesFlow':!![]})],b[C(0x15d,0x177)],'startDateConstraintIntervals',void 0x0);function C(a,b){return _enr(b,a-0x199);}__decorate([field({'lazy':!![],'ignoreEdgesFlow':!![]})],b[C(0x15d,0x144)],C(0x146,0x16e),void 0x0);__decorate([calculate(C(0x142,0x135))],b['prototype'],C(0x16e,0x193),null);__decorate([calculate('endDateConstraintIntervals')],b[C(0x15d,0x17b)],C(0x12a,0x10b),null);__decorate([calculate(C(0x17a,0x181))],b[C(0x15d,0x136)],C(0x186,0x19e),null);__decorate([calculate(C(0x14a,0x160))],b[C(0x15d,0x17a)],'calculateMaxChildrenEndDate',null);__decorate([calculate(C(0x182,0x179))],b[C(0x15d,0x13a)],'calculateStartDate',null);__decorate([calculate(C(0x173,0x173))],b[C(0x15d,0x166)],C(0x132,0x13b),null);return b;}){}export{ConstrainedScheduleMixin,EventScheduleMixin,calculateEffectiveEndDateConstraintInterval,calculateEffectiveStartDateConstraintInterval,isBackwardInterval,isForwardInterval,isInflexibleInterval};
|
|
1
|
+
function _ena(){const S=['shouldRollupChildEarlyStartDate','maybeSkipNonWorkingTime','calculateMinChildrenStartDate','onNonEmptyEffectiveInterval','Start','getTime','End','startDateConstraintIntervals','20crKBPm','1141657UcJxlX','autoScheduleManualTasksOnSecondPass','resolved','endDate','constraintType','pick','concat','calculateLateStartDateConstraintIntervals','shouldRollupChildLateStartDate','calculateEndDate','minChildrenStartDate','removeField','decorate','end','defineProperty','value','isDateConstraintInterval','project','direction','changeDateConstraintIntervalOnConflict','add','84wwrzfn','event','shouldRollupChildEarlyEndDate','return','function','startDateIsFinite','doCalculateEffectiveEndDateInterval','isIntervalEmpty','kind','phase1','40HAltge','doCalculateEffectiveStartDateInterval','onEmptyEffectiveInterval','effectiveDirection','object','1688wyWWqX','start','isInfinite','endDateIsFinite','calculateStartDate','endDateConstraintIntervals','isManuallyScheduled','setupFields','shouldRollupChildEndDate','14670PfsUNN','3BNkBOU','FinishNoLaterThan','map','copyWith','side','isConstrained','33266PSgSqA','maxChildrenEndDate','783965PGYRql','skipNonWorkingTime','3679962kgnoWK','calculateEndDateConstraintIntervals','shouldSkipNonWorkingTime','calculateMaxChildrenEndDate','prototype','intersectionOf','409056tuzBDX','hasSubEvents','StartNoLaterThan','length','Forward','calculateStartDateConstraintIntervals','shouldRollupChildStartDate','Implement\x20me','containsDate','getOwnPropertyDescriptor','startDate','7076404yZFmZm','1NYtxyc','filter','new','calculateEffectiveConstraintInterval','date','getProject','orderedParentIndex','isDependencyConstraintInterval','FinishNoEarlierThan','StartNoEarlierThan','calculateProjectedXDateWithDuration','calculateLateEndDateConstraintIntervals','earlyPreSchedule','subEventsIterable'];_ena=function(){return S;};return _ena();}function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x118;let f=c[d];return f;};return _enb(a,b);}(function(a,b){function p(a,b){return _enb(a-0x2ab,b);}const c=a();while(!![]){try{const d=parseInt(p(0x3fd,0x3fe))/0x1*(-parseInt(p(0x3e7,0x409))/0x2)+-parseInt(p(0x3e1,0x3e6))/0x3*(-parseInt(p(0x3fc,0x3e3))/0x4)+parseInt(p(0x3d2,0x3ad))/0x5*(parseInt(p(0x3f1,0x3d6))/0x6)+parseInt(p(0x3e9,0x3df))/0x7+-parseInt(p(0x3d7,0x3be))/0x8*(-parseInt(p(0x3e0,0x401))/0x9)+parseInt(p(0x413,0x3e9))/0xa*(parseInt(p(0x414,0x43c))/0xb)+-parseInt(p(0x3c8,0x3a3))/0xc*(parseInt(p(0x3eb,0x400))/0xd);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xef391));var __decorate=function(a,b,e,f){function q(a,b){return _enb(a-0x2a,b);}var g=arguments[q(0x173,0x170)],h=g<0x3?b:f===null?f=Object[q(0x179,0x154)](b,e):f,j;if(typeof Reflect===q(0x155,0x14c)&&typeof Reflect[q(0x19f,0x1c7)]===q(0x14b,0x13f))h=Reflect[q(0x19f,0x1ad)](a,b,e,f);else for(var k=a[q(0x173,0x198)]-0x1;k>=0x0;k--)if(j=a[k])h=(g<0x3?j(h):g>0x3?j(b,e,h):j(b,e))||h;return g>0x3&&h&&Object[q(0x1a1,0x1a4)](b,e,h),h;};import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{calculate,field}from'@bryntum/engine-thin/lib/ChronoGraph/replica/Entity.js';import{ConstraintInterval}from'../../../chrono/Conflict.js';import{dateConverter,model_field}from'../../../chrono/ModelFieldAtom.js';function _enr(a,b){return _enb(b- -0x2dc,a);}import{intersectIntervals}from'../../../scheduling/DateInterval.js';import{ConstraintIntervalSide,ConstraintType,Direction}from'../../../scheduling/Types.js';import{isDateFinite,MAX_DATE,MIN_DATE}from'../../../util/Constants.js';import{EdgeInclusion}from'../../../util/Types.js';import{ChronoPartOfProjectModelMixin}from'../mixin/ChronoPartOfProjectModelMixin.js';const isForwardInterval=a=>a['startDateIsFinite'](),isBackwardInterval=a=>a[_enr(-0x1a8,-0x1ad)](),isInflexibleInterval=a=>{function s(a,b){return _enr(a,b-0x246);}return a[s(0xb8,0x8c)]()&&a[s(0x8a,0x99)]()&&a['startDate'][s(0xf2,0xcf)]()===a[s(0xf1,0xd6)]['getTime']();};const calculateEffectiveStartDateConstraintInterval=function*(a,b,c,d,e,f){if(c[t(-0x88,-0x90)]())return c;function t(a,b){return _enr(b,a-0x130);}if(e&&c[t(-0x67,-0x3a)]){const i=new Set();for(const j of c[t(-0x67,-0x76)]){if(j['isInfinite']()){i[t(-0x90,-0x81)](j);}else{const k=j[t(-0x8a,-0xba)]()?yield*a['calculateProjectedXDateWithDuration'](j['startDate'],![],d):j[t(-0x5c,-0x6b)];const l=j[t(-0x7d,-0x50)]()?yield*a[t(-0x50,-0x5f)](j[t(-0x40,-0x60)],![],d):j[t(-0x40,-0x30)];const m=j;i[t(-0x90,-0x86)](m[t(-0x73,-0x72)]({'reflectionOf':m,'side':m[t(-0x72,-0x54)]===ConstraintIntervalSide[t(-0x48,-0x42)]?ConstraintIntervalSide[t(-0x46,-0x3b)]:ConstraintIntervalSide[t(-0x48,-0x34)],'startDate':k,'endDate':l}));}}c[t(-0x67,-0x41)]=i;}const g=c[t(-0x8a,-0xaa)]()?yield*f(c[t(-0x5c,-0x39)]):null;const h=c['endDateIsFinite']()?yield*f(c['endDate']):null;return intersectIntervals([b,ConstraintInterval[t(-0x58,-0x5c)]({'intersectionOf':c[t(-0x67,-0x81)],'startDate':g,'endDate':h})],e);};const calculateEffectiveEndDateConstraintInterval=function*(a,b,c,d,e,f){if(b['isIntervalEmpty']())return b;if(e&&b[u(0x3a9,0x3a0)]){const i=new Set();for(const j of b[u(0x3a9,0x37e)]){if(j[u(0x392,0x3b3)]()){i['add'](j);}else{const k=j['startDateIsFinite']()?yield*a[u(0x3c0,0x395)](j[u(0x3b4,0x3bc)],!![],d):j['startDate'];const l=j[u(0x393,0x3b8)]()?yield*a[u(0x3c0,0x3db)](j[u(0x3d0,0x3be)],!![],d):j[u(0x3d0,0x3d5)];const m=j;i[u(0x380,0x38e)](m[u(0x39d,0x38a)]({'reflectionOf':m,'side':m['side']===ConstraintIntervalSide['Start']?ConstraintIntervalSide['End']:ConstraintIntervalSide[u(0x3c8,0x3b0)],'startDate':k,'endDate':l}));}}b[u(0x3a9,0x3d8)]=i;}const g=b[u(0x386,0x3af)]()?yield*f(b[u(0x3b4,0x3b7)]):null;function u(a,b){return _enr(b,a-0x540);}const h=b[u(0x393,0x378)]()?yield*f(b[u(0x3d0,0x3fc)]):null;return intersectIntervals([c,ConstraintInterval[u(0x3b8,0x3e8)]({'reflectionOf':g||h?b:void 0x0,'intersectionOf':g||h?b[u(0x3a9,0x3b5)]:void 0x0,'startDate':g,'endDate':h})],e);};class EventScheduleMixin extends Mixin([ChronoPartOfProjectModelMixin],a=>{function w(a,b){return _enr(a,b-0x46f);}class b extends a{constructor(){super(...arguments);this[v(0x4c,0x22)]=void 0x0;function v(a,b){return _enb(a- -0xce,b);}this['phase']=v(0x58,0x57);this[v(0x50,0x67)]=void 0x0;}get[w(0x297,0x2ac)](){function x(a,b){return w(a,b-0x106);}return this['event']?.[x(0x3b6,0x3b2)];}[w(0x306,0x301)](c){throw new Error('Implement\x20me');}*['calculateStartDate'](){function y(a,b){return w(b,a- -0x54d);}throw new Error(y(-0x26d,-0x28f));}*['calculateEndDate'](){throw new Error('Implement\x20me');}static[w(0x2c0,0x2c6)](c,d){function z(a,b){return w(a,b- -0x43e);}super[z(-0x162,-0x178)](c,d);this[z(-0x108,-0x137)]('parentIndex');this[z(-0x12c,-0x137)](z(-0x165,-0x153));this[z(-0x109,-0x137)]('parentId');this[z(-0x127,-0x137)]('expanded');this[z(-0x129,-0x137)]('readOnly');}}__decorate([model_field({'type':w(0x2e4,0x2e9),'persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],b[w(0x2f2,0x2d7)],w(0x2bb,0x2e3),void 0x0);__decorate([model_field({'type':w(0x2dc,0x2e9),'persist':![],'calculated':!![]},{'lazy':!![],'converter':dateConverter,'persistent':![]})],b[w(0x2a6,0x2d7)],w(0x2d3,0x2ff),void 0x0);__decorate([calculate(w(0x307,0x2e3))],b[w(0x2b1,0x2d7)],'calculateStartDate',null);__decorate([calculate(w(0x302,0x2ff))],b[w(0x2d5,0x2d7)],w(0x321,0x305),null);return b;}){}class ConstrainedScheduleMixin extends Mixin([EventScheduleMixin],a=>{class b extends a{constructor(){super(...arguments);this[A(0x496,0x4bf)]=Direction[A(0x4c6,0x4d8)];function A(a,b){return _enb(a-0x37c,b);}this[A(0x49a,0x472)]=void 0x0;}[B(-0x47,-0x64)](c){function C(a,b){return B(a,b-0x3ef);}return c[C(0x37a,0x37b)];}*['maybeSkipNonWorkingTime'](c,d=!![],e=null){if(yield*this[D(0x1db,0x1c1)]['hasSubEvents']())return c;let f=c;if(c&&(yield*this[D(0x1aa,0x1c1)][D(0x1f9,0x1e5)]())){f=yield*this[D(0x1e6,0x1c1)][D(0x20f,0x1e2)](c,d);if(f&&e&&!e[D(0x219,0x1f1)](f,EdgeInclusion['LeftAndRight'])){f=c;}}function D(a,b){return B(a,b-0x275);}return f;}['changeDateConstraintIntervalOnConflict'](c,d,e){const {isDateConstraintInterval:f,owner:g}=c;function E(a,b){return B(b,a-0x4ed);}if(f&&g===e){if(this[E(0x435,0x45d)]===Direction[E(0x465,0x445)]){if(d==='start'&&g['constraintType']===ConstraintType[E(0x463,0x48c)]){return c['copyWith']({'startDate':c[E(0x487,0x4a8)],'endDate':null});}if(d===E(0x491,0x4a7)&&g['constraintType']===ConstraintType[E(0x452,0x450)]){return c[E(0x454,0x47a)]({'startDate':c[E(0x487,0x46d)],'endDate':null});}}else{if(d===E(0x448,0x465)&&g[E(0x488,0x4ae)]===ConstraintType[E(0x476,0x44c)]){return c[E(0x454,0x432)]({'startDate':null,'endDate':c[E(0x46b,0x458)]});}if(d===E(0x491,0x4a1)&&g['constraintType']===ConstraintType[E(0x475,0x446)]){return c[E(0x454,0x42e)]({'startDate':null,'endDate':c['startDate']});}}}return c;}*['calculateEffectiveConstraintInterval'](c,d,e,f=![],g=![]){function F(a,b){return B(a,b-0x212);}const {event:h}=this;const i=yield*h['getDateShifter'](c?![]:!![]);if(i==null){return null;}const j=f?yield*h['calculateEffectiveDuration']():0x0;if(j==null){return null;}if(g){if(this[F(0x15b,0x159)]['bwcConflictPostpone']){if(yield*this['isFirstPass']()){d=d[F(0x163,0x193)](m=>!m[F(0x16e,0x199)])[F(0x18d,0x178)](m=>this[F(0x151,0x15b)](m,F(0x194,0x16d),h));e=e[F(0x18a,0x193)](m=>!m[F(0x18b,0x199)])['map'](m=>this[F(0x160,0x15b)](m,F(0x1b9,0x1b6),h));}else{d=d[F(0x19a,0x193)](m=>!m['isDateConstraintInterval']);e=e[F(0x1a5,0x193)](m=>!m[F(0x138,0x158)]);}}else{const m=this['direction']===Direction[F(0x1a6,0x18a)]?isForwardInterval:isBackwardInterval,n=d[F(0x1b4,0x193)](isInflexibleInterval);d=n[F(0x15c,0x189)]?n:d[F(0x190,0x193)](m);const o=e['filter'](isInflexibleInterval);e=o[F(0x16b,0x189)]?o:e['filter'](m);}}const k=c?calculateEffectiveStartDateConstraintInterval:calculateEffectiveEndDateConstraintInterval;const l=yield*k(h,intersectIntervals(d,f),intersectIntervals(e,f),j,f,i);return l;}*['calculateStartDateConstraintIntervals'](){function G(a,b){return B(b,a-0x79);}return this[G(-0x3f,-0x30)]===Direction['Forward']?yield*this['event']['calculateEarlyStartDateConstraintIntervals']():yield*this['event'][G(0x17,0x13)]();}*[B(-0x7f,-0x91)](){function H(a,b){return B(b,a- -0x1d7);}return this[H(-0x28f,-0x288)]===Direction[H(-0x25f,-0x281)]?yield*this[H(-0x28b,-0x28d)]['calculateEarlyEndDateConstraintIntervals']():yield*this[H(-0x28b,-0x264)][H(-0x24c,-0x24b)]();}*[B(-0xb7,-0xaa)](c=![],d=![]){const e=yield this['$'][I(-0xe9,-0xe7)];const f=yield this['$']['endDateConstraintIntervals'];function I(a,b){return B(b,a- -0x7e);}return yield*this['calculateEffectiveConstraintInterval'](!![],e[I(-0xe1,-0xb2)](yield this[I(-0x132,-0x105)]['$'][I(-0xe9,-0xcd)]),f['concat'](yield this['event']['$'][I(-0x11f,-0x120)]),c,d);}*[B(-0xdb,-0xaf)](c=![],d=![]){function J(a,b){return B(b,a-0x199);}const e=yield this['$'][J(0x12e,0x104)];const f=yield this['$'][J(0xf8,0xf2)];return yield*this[J(0x11c,0x104)](![],e[J(0x136,0x11c)](yield this[J(0xe5,0xd1)]['$'][J(0x12e,0x151)]),f[J(0x136,0x148)](yield this[J(0xe5,0xd3)]['$'][J(0xf8,0xe0)]),c,d);}*[B(-0x56,-0x86)](c){function K(a,b){return B(b,a-0x575);}return this['direction']===Direction[K(0x4ed,0x4ea)]?yield*this[K(0x4c1,0x4bd)][K(0x503,0x4fb)](c):yield*this[K(0x4c1,0x4f2)][K(0x514,0x4f5)](c);}*[B(-0x51,-0x70)](){let c=MAX_DATE;const d=yield*this[L(0x21c,0x22f)]['subEventsIterable']();function L(a,b){return B(a,b-0x2e3);}for(const e of d){if(!(yield*this[L(0x278,0x25d)](e)))continue;let f;if((yield*e[L(0x26b,0x243)]())&&(yield*e[L(0x26a,0x258)]())){f=yield this[L(0x257,0x27f)](e)['$'][L(0x29a,0x284)];}f=f||(yield this[L(0x277,0x27f)](e)['$'][L(0x254,0x261)]);if(f&&f<c)c=f;}return c[L(0x2a1,0x276)]()-MAX_DATE[L(0x265,0x276)]()?c:null;}*[B(-0xc0,-0x9e)](c){function M(a,b){return B(a,b-0x3ca);}return this[M(0x33f,0x312)]===Direction[M(0x328,0x342)]?yield*this[M(0x32b,0x316)][M(0x331,0x317)](c):yield*this['event']['shouldRollupChildLateEndDate'](c);}*[B(-0xab,-0x8f)](){let c=MIN_DATE;const d=yield*this[N(0x4ce,0x4db)][N(0x50f,0x52a)]();for(const e of d){if(!(yield*this[N(0x4e4,0x4bc)](e)))continue;let f;if((yield*e[N(0x4e2,0x4b5)]())&&(yield*e[N(0x4f7,0x4f6)]())){f=yield this['pick'](e)['$'][N(0x4ed,0x4c7)];}f=f||(yield this[N(0x51e,0x52c)](e)['$']['endDate']);if(f&&f>c)c=f;}function N(a,b){return B(b,a-0x582);}return c[N(0x515,0x509)]()-MIN_DATE[N(0x515,0x4f7)]()?c:null;}*['calculateStartDate'](){function O(a,b){return B(a,b-0x177);}let c;let d;if((yield*this['event']['isManuallyScheduled']())&&(!(yield this[O(0xd2,0xbe)]['$']['autoScheduleManualTasksOnSecondPass'])||(yield this[O(0xb1,0xc3)]['$'][O(0xc3,0xcf)])[O(0xe0,0xbf)]===this[O(0xb5,0xbf)])){c=yield this[O(0xb6,0xc3)]['$'][O(0xd3,0xf5)];}else if(yield*this[O(0xae,0xc3)][O(0x11b,0xec)]()){c=yield this['$'][O(0xf2,0x118)];}else if(!(yield*this[O(0xf0,0xe0)]())){c=yield this[O(0xea,0xc3)]['$'][O(0x124,0xf5)];}else{d=yield*this[O(0xe0,0xcd)]();if(d===null){return null;}else if(d[O(0xd5,0xc9)]()){const e=yield*this[O(0xaf,0xc3)][O(0xf4,0xce)](O(0xbb,0xd2),this);if(e['kind']===O(0xde,0xc5)){return e[O(0xf7,0x11d)];}else if(e[O(0xb0,0xca)]===O(0x138,0x110)){d=e[O(0x13c,0x11d)];}}else{yield*this['event'][O(0x100,0x108)]('start',this);}c=this[O(0xef,0xbf)]===Direction['Forward']?isDateFinite(d['startDate'])?d[O(0xe9,0xf5)]:null:isDateFinite(d['endDate'])?d['endDate']:null;}return yield*this[O(0x132,0x106)](c,!![],d);}*['calculateEndDate'](){let c;let d;function P(a,b){return B(a,b-0x3d);}if((yield*this[P(-0x9f,-0x77)]['isManuallyScheduled']())&&(!(yield this[P(-0x5e,-0x7c)]['$'][P(-0x45,-0x2b)])||(yield this[P(-0x6a,-0x77)]['$']['effectiveDirection'])[P(-0x75,-0x7b)]===this[P(-0x83,-0x7b)])){c=yield this[P(-0xa6,-0x77)]['$'][P(-0x4c,-0x29)];}else if(yield*this[P(-0x8f,-0x77)][P(-0x39,-0x4e)]()){c=yield this['$'][P(-0x2a,-0x58)];}else if(!(yield*this[P(-0x35,-0x5a)]())){c=yield this[P(-0x50,-0x77)]['$'][P(-0x45,-0x29)];}else{d=yield*this['doCalculateEffectiveEndDateInterval']();if(d===null){return null;}else if(d[P(-0x94,-0x71)]()){const e=yield*this['event']['onEmptyEffectiveInterval'](P(0x1,-0x1f),this);if(e[P(-0x41,-0x70)]==='return'){return e[P(-0x3b,-0x1d)];}else if(e['kind']===P(-0x14,-0x2a)){d=e[P(-0x49,-0x1d)];}}else{yield*this[P(-0x96,-0x77)][P(-0x13,-0x32)](P(-0x48,-0x1f),this);}c=this['direction']===Direction['Forward']?isDateFinite(d['startDate'])?d[P(-0x46,-0x45)]:null:isDateFinite(d[P(0x7,-0x29)])?d[P(-0xb,-0x29)]:null;}return yield*this[P(-0x50,-0x34)](c,![],d);}*[B(-0x69,-0x97)](){const c=yield this[Q(0x9a,0x98)]['$'][Q(0x102,0xe1)];const d=yield this[Q(0xb3,0x98)]['$'][Q(0x9c,0xab)];function Q(a,b){return B(a,b-0x14c);}const e=yield this['$'][Q(0xf7,0xe1)];const f=yield this['$'][Q(0xd9,0xab)];return e?.[Q(0xc4,0xc3)]>0x0||f?.[Q(0xaa,0xc3)]>0x0||c?.[Q(0xce,0xc3)]>0x0||d?.[Q(0xd5,0xc3)]>0x0;}*['isFirstPass'](){const c=yield this[R(0x3a7,0x389)]()['$'][R(0x337,0x35c)];function R(a,b){return B(a,b-0x404);}return c['direction']===this[R(0x35a,0x34c)];}}__decorate([field({'lazy':!![]})],b[B(-0xbb,-0x8e)],B(-0x31,-0x5f),void 0x0);__decorate([field({'lazy':!![]})],b[B(-0x7c,-0x8e)],B(-0xa7,-0x95),void 0x0);__decorate([field({'lazy':!![],'ignoreEdgesFlow':!![]})],b[B(-0x8c,-0x8e)],B(-0x74,-0x6b),void 0x0);__decorate([field({'lazy':!![],'ignoreEdgesFlow':!![]})],b[B(-0x6e,-0x8e)],'endDateConstraintIntervals',void 0x0);__decorate([calculate(B(-0x77,-0x6b))],b[B(-0x81,-0x8e)],B(-0x76,-0x87),null);function B(a,b){return _enr(a,b-0x10a);}__decorate([calculate(B(-0xcb,-0xa1))],b[B(-0xb8,-0x8e)],B(-0x89,-0x91),null);__decorate([calculate(B(-0x3c,-0x5f))],b[B(-0x82,-0x8e)],B(-0x4a,-0x70),null);__decorate([calculate(B(-0xaf,-0x95))],b[B(-0x87,-0x8e)],B(-0x91,-0x8f),null);__decorate([calculate('startDate')],b[B(-0x7a,-0x8e)],B(-0xa1,-0xa2),null);__decorate([calculate(B(-0x62,-0x66))],b[B(-0xb4,-0x8e)],B(-0x80,-0x60),null);return b;}){}export{ConstrainedScheduleMixin,EventScheduleMixin,calculateEffectiveEndDateConstraintInterval,calculateEffectiveStartDateConstraintInterval,isBackwardInterval,isForwardInterval,isInflexibleInterval};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){function f(a,b){return _enb(
|
|
1
|
+
function _enb(a,b){var c=_ena();_enb=function(d,e){d=d-0x177;var f=c[d];return f;};return _enb(a,b);}(function(a,b){function f(a,b){return _enb(b-0x10d,a);}var c=a();while(!![]){try{var d=parseInt(f(0x27e,0x286))/0x1+parseInt(f(0x299,0x293))/0x2+parseInt(f(0x293,0x292))/0x3*(-parseInt(f(0x28c,0x285))/0x4)+parseInt(f(0x284,0x287))/0x5+-parseInt(f(0x292,0x290))/0x6+parseInt(f(0x28a,0x28d))/0x7*(-parseInt(f(0x288,0x28e))/0x8)+parseInt(f(0x284,0x28b))/0x9*(parseInt(f(0x283,0x28a))/0xa);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xecc3c));function _ena(){var k=['$name','14rHziwj','798752VVUvOs','buildRootNode','281850hLcoic','configurable','6spKLHJ','1013420NPRitA','ChronoEventStoreMixin','3500636DxLCzr','404971HBRHRq','8625740kqMJJX','removalOrder','getProject','18330TDUVfM','1620XyVmzU'];_ena=function(){return k;};return _ena();}import{Mixin}from'@bryntum/engine-thin/lib/ChronoGraph/class/BetterMixin.js';import{SchedulerBasicEvent}from'../model/scheduler_basic/SchedulerBasicEvent.js';import{ChronoPartOfProjectStoreMixin}from'./mixin/ChronoPartOfProjectStoreMixin.js';import{AbstractEventStoreMixin}from'./AbstractEventStoreMixin.js';class ChronoEventStoreMixin extends Mixin([AbstractEventStoreMixin,ChronoPartOfProjectStoreMixin],a=>{class b extends a{constructor(){function g(a,b){return _enb(b- -0x1a8,a);}super(...arguments);this[g(-0x29,-0x2d)]=0x190;}[h(0x43e,0x43d)](){function i(a,b){return h(a,b- -0x37);}return this[i(0x3fb,0x400)]()||{};}set['data'](c){super['data']=c;this['afterEventRemoval']();}}function h(a,b){return _enb(b-0x2bb,a);}b[h(0x433,0x43a)]=h(0x434,0x432);b[h(0x43f,0x43f)]={'modelClass':SchedulerBasicEvent};return b;}){}class ChronoEventTreeStoreMixin extends Mixin([ChronoEventStoreMixin],a=>{function j(a,b){return _enb(a- -0x3c1,b);}class b extends a{}b[j(-0x23d,-0x242)]={'tree':!![]};return b;}){}export{ChronoEventStoreMixin,ChronoEventTreeStoreMixin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _eni(a,b){return _enb(b-0x1e5,a);}(function(a,b){const c=a();function h(a,b){return _enb(b- -0x25f,a);}while(!![]){try{const d=parseInt(h(-0x94,-0xa1))/0x1*(-parseInt(h(-0xa8,-0xb8))/0x2)+-parseInt(h(-0xb5,-0xa4))/0x3+parseInt(h(-0xb2,-0xbc))/0x4+-parseInt(h(-0xa7,-0x9c))/0x5+parseInt(h(-0xbb,-0xb3))/0x6*(-parseInt(h(-0xa2,-0xac))/0x7)+-parseInt(h(-0x9d,-0xa3))/0x8*(parseInt(h(-0xc0,-0xb1))/0x9)+parseInt(h(-0x9f,-0xa8))/0xa*(parseInt(h(-0xbd,-0xb4))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xe34b6));function _ena(){const u=['new','3064965WYNKEm','14107760xHiNig','intersectedAsEmpty','1jPeWcu','intersectMut','constructor','min','max','8870700skrqjt','add','initialize','endDateIsFinite','6405608ydYXOk','getTime','reduce','Left','1100446HpICPA','getCopyProperties','startDate','equalTo','48962859HUafNh','72510YHwPGR','startDateIsFinite','9MgsHKq','size','intersectionOf','endDate','LeftAndRight','7WAqqVI','containsDate','copyWith','Right','10xMmIRm','isIntervalEmpty','intersect'];_ena=function(){return u;};return _ena();}import{MAX_DATE,MIN_DATE}from'../util/Constants.js';import{EdgeInclusion}from'../util/Types.js';import{Base}from'@bryntum/engine-thin/lib/ChronoGraph/class/Base.js';class DateInterval extends Base{[_eni(0x389,0x386)](...a){super['initialize'](...a);function j(a,b){return _eni(a,b-0x149);}if(!this['startDate'])this[j(0x4e1,0x4d7)]=MIN_DATE;if(!this['endDate'])this[j(0x4ed,0x4df)]=MAX_DATE;}[_eni(0x38b,0x38f)](a){function k(a,b){return _eni(b,a- -0x105);}return this['startDate'][k(0x284,0x289)]()===a[k(0x289,0x27a)][k(0x284,0x284)]()&&this[k(0x291,0x295)][k(0x284,0x289)]()===a[k(0x291,0x288)][k(0x284,0x294)]();}['isInfinite'](){function l(a,b){return _eni(b,a- -0x2c3);}return this['startDate'][l(0xc6,0xcb)]()===MIN_DATE['getTime']()&&this[l(0xd3,0xcc)][l(0xc6,0xcb)]()===MAX_DATE[l(0xc6,0xba)]();}[_eni(0x398,0x392)](){function m(a,b){return _eni(a,b-0xc4);}return!this[m(0x45f,0x461)]()&&this['startDate'][m(0x45b,0x44d)]()!==MIN_DATE['getTime']();}[_eni(0x379,0x387)](){function n(a,b){return _eni(b,a- -0x55b);}return!this['isIntervalEmpty']()&&this['endDate'][n(-0x1d2,-0x1c4)]()!==MAX_DATE[n(-0x1d2,-0x1da)]();}[_eni(0x38f,0x399)](a,b=EdgeInclusion[_eni(0x37f,0x38b)]){function o(a,b){return _eni(b,a-0x1de);}return b===EdgeInclusion[o(0x569,0x560)]&&(a>=this[o(0x56c,0x55b)]&&a<this['endDate'])||b===EdgeInclusion[o(0x579,0x57a)]&&(a>this['startDate']&&a<=this[o(0x574,0x565)])||b===EdgeInclusion[o(0x575,0x585)]&&(a>=this[o(0x56c,0x55d)]&&a<=this[o(0x574,0x577)]);}[_eni(0x396,0x39d)](){function p(a,b){return _eni(b,a- -0x197);}return this[p(0x1f7,0x1e7)]>this[p(0x1ff,0x1fa)];}[_eni(0x3a9,0x39e)](a){const b=a[q(-0x12c,-0x134)];const c=a['endDate'];const d=this['startDate'];const e=this[q(-0x12f,-0x12c)];function q(a,b){return _eni(a,b- -0x4c2);}if(e<b||d>c){return EMPTY_INTERVAL;}const f=new Date(Math[q(-0x118,-0x11b)](d[q(-0x14a,-0x139)](),b[q(-0x138,-0x139)]()));const g=new Date(Math[q(-0x11b,-0x11c)](e[q(-0x129,-0x139)](),c['getTime']()));return this[q(-0x123,-0x11d)][q(-0x113,-0x123)]({'startDate':f,'endDate':g});}[_eni(0x3ae,0x3a4)](a,b=![]){const c=a[r(-0x17a,-0x17d)];const d=a['endDate'];const e=this[r(-0x17a,-0x18c)];const f=this['endDate'];if(b){if(!this[r(-0x173,-0x17d)])this[r(-0x173,-0x178)]=new Set();if(a[r(-0x173,-0x17f)]?.[r(-0x174,-0x164)]>0x0){a[r(-0x173,-0x17b)]['forEach'](this[r(-0x173,-0x167)]['add'],this[r(-0x173,-0x161)]);this[r(-0x166,-0x161)]=a[r(-0x166,-0x172)];}else{this['intersectionOf'][r(-0x15f,-0x165)](a);}}if(!this['isIntervalEmpty']()){if(f<c||e>d){this[r(-0x17a,-0x186)]=MAX_DATE;this[r(-0x172,-0x175)]=MIN_DATE;if(b){this['intersectedAsEmpty']=a;}return this;}this['startDate']=new Date(Math[r(-0x161,-0x164)](e['getTime'](),c[r(-0x17f,-0x177)]()));this['endDate']=new Date(Math[r(-0x162,-0x15f)](f['getTime'](),d['getTime']()));}function r(a,b){return _eni(b,a- -0x508);}return this;}[_eni(0x397,0x38d)](a){return a;}[_eni(0x3a5,0x39a)](a){const b=this[s(-0x13f,-0x135)](a);function s(a,b){return _eni(a,b- -0x4c2);}return this[s(-0x120,-0x11d)][s(-0x12f,-0x123)](b);}}const EMPTY_INTERVAL=DateInterval[_eni(0x3a7,0x39f)]({'startDate':MAX_DATE,'endDate':MIN_DATE});const intersectIntervals=(a,b=![])=>{function t(a,b){return _eni(b,a-0x12e);}return a[t(0x4b8,0x4c2)]((c,d)=>c['intersectMut'](d,b),DateInterval[t(0x4cd,0x4d1)]());};function _enb(a,b){const c=_ena();_enb=function(d,e){d=d-0x1a1;let f=c[d];return f;};return _enb(a,b);}export{DateInterval,EMPTY_INTERVAL,intersectIntervals};
|
package/lib/util/Types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(a,b){var c=a();function f(a,b){return _enb(a-0x21a,b);}while(!![]){try{var d=-parseInt(f(0x35f,0x35b))/0x1*(parseInt(f(0x356,0x358))/0x2)+-parseInt(f(0x358,0x354))/0x3+-parseInt(f(0x35b,0x356))/0x4*(-parseInt(f(0x357,0x35a))/0x5)+-parseInt(f(0x35d,0x362))/0x6+parseInt(f(0x362,0x35f))/0x7+parseInt(f(0x360,0x35d))/0x8*(parseInt(f(0x35a,0x35d))/0x9)+parseInt(f(0x35e,0x360))/0xa*(-parseInt(f(0x359,0x357))/0xb);if(d===b){break;}else{c['push'](c['shift']());}}catch(e){c['push'](c['shift']());}}}(_ena,0xedf03));var EdgeInclusion;function _enb(a,b){var c=_ena();_enb=function(d,e){d=d-0x13c;var f=c[d];return f;};return _enb(a,b);}(function(a){function g(a,b){return _enb(a-0x2d2,b);}a[a['Left']=0x0]=g(0x419,0x41a);a[a[g(0x414,0x415)]=0x1]=g(0x414,0x418);a[a[g(0x41b,0x41d)]=0x2]=g(0x41b,0x422);}(EdgeInclusion||(EdgeInclusion={})));export{EdgeInclusion};function _ena(){var h=['13103768XHBJCH','Left','6715562yfDMGh','LeftAndRight','2414978QsLjSU','257105UQAKtN','539619VZdbHP','3091yyFHLu','9EVnRFU','124FmxPfI','Right','2821404JroqvX','48370rcEryl','1hbncUm'];_ena=function(){return h;};return _ena();}
|
package/package.json
CHANGED
package/postinstall.cjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
const
|
|
2
|
-
{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
script = `${pkg}/build.js`;
|
|
2
|
+
{ spawnSync } = require('child_process'),
|
|
3
|
+
pkg = '@bryntum/engine-trial-lib',
|
|
4
|
+
script = `${pkg}/build.js`;
|
|
6
5
|
try {
|
|
7
|
-
|
|
6
|
+
spawnSync('node', [require.resolve(script)], { cwd : process.cwd(), stdio : 'inherit' });
|
|
8
7
|
}
|
|
9
8
|
catch (error) {
|
|
10
9
|
console.log(`${pkg} is not installed\n${error.message}`.red);
|