@bryntum/schedulerpro-vue-3-thin 7.1.1

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.
Files changed (144) hide show
  1. package/README.md +53 -0
  2. package/lib/chunks/B12rdbvL.js +380 -0
  3. package/lib/chunks/B12rdbvL.js.map +1 -0
  4. package/lib/chunks/BBN-5eeI.js +380 -0
  5. package/lib/chunks/BBN-5eeI.js.map +1 -0
  6. package/lib/chunks/BaiH7rub.js +591 -0
  7. package/lib/chunks/BaiH7rub.js.map +1 -0
  8. package/lib/chunks/BrUxjEMx.js +380 -0
  9. package/lib/chunks/BrUxjEMx.js.map +1 -0
  10. package/lib/chunks/BtVT0xgl.js +344 -0
  11. package/lib/chunks/BtVT0xgl.js.map +1 -0
  12. package/lib/chunks/C0N8aq7Y.js +340 -0
  13. package/lib/chunks/C0N8aq7Y.js.map +1 -0
  14. package/lib/chunks/C9qY739P.js +380 -0
  15. package/lib/chunks/C9qY739P.js.map +1 -0
  16. package/lib/chunks/CB9cdxRl.js +935 -0
  17. package/lib/chunks/CB9cdxRl.js.map +1 -0
  18. package/lib/chunks/CDbPwyl3.js +326 -0
  19. package/lib/chunks/CDbPwyl3.js.map +1 -0
  20. package/lib/chunks/Ct_m9O9h.js +380 -0
  21. package/lib/chunks/Ct_m9O9h.js.map +1 -0
  22. package/lib/chunks/D45V9XRN.js +308 -0
  23. package/lib/chunks/D45V9XRN.js.map +1 -0
  24. package/lib/chunks/D6AiSClA.js +1139 -0
  25. package/lib/chunks/D6AiSClA.js.map +1 -0
  26. package/lib/chunks/DQYJMaQ_.js +350 -0
  27. package/lib/chunks/DQYJMaQ_.js.map +1 -0
  28. package/lib/chunks/DT6XYs9d.js +1356 -0
  29. package/lib/chunks/DT6XYs9d.js.map +1 -0
  30. package/lib/chunks/DgESZupU.js +380 -0
  31. package/lib/chunks/DgESZupU.js.map +1 -0
  32. package/lib/chunks/DvFm-5Hh.js +382 -0
  33. package/lib/chunks/DvFm-5Hh.js.map +1 -0
  34. package/lib/chunks/DzO9n33e.js +939 -0
  35. package/lib/chunks/DzO9n33e.js.map +1 -0
  36. package/lib/chunks/H51_wkdg.js +1358 -0
  37. package/lib/chunks/H51_wkdg.js.map +1 -0
  38. package/lib/chunks/ggN9GDPJ.js +384 -0
  39. package/lib/chunks/ggN9GDPJ.js.map +1 -0
  40. package/lib/chunks/qKNUUeE0.js +380 -0
  41. package/lib/chunks/qKNUUeE0.js.map +1 -0
  42. package/lib/chunks/xk_S9thL.js +578 -0
  43. package/lib/chunks/xk_S9thL.js.map +1 -0
  44. package/lib/chunks/yCHi3rZC.js +336 -0
  45. package/lib/chunks/yCHi3rZC.js.map +1 -0
  46. package/lib/components/BryntumCalendarEditor.js +5 -0
  47. package/lib/components/BryntumCalendarEditor.js.map +1 -0
  48. package/lib/components/BryntumCalendarField.js +5 -0
  49. package/lib/components/BryntumCalendarField.js.map +1 -0
  50. package/lib/components/BryntumConstraintTypePicker.js +5 -0
  51. package/lib/components/BryntumConstraintTypePicker.js.map +1 -0
  52. package/lib/components/BryntumCostAccrualField.js +5 -0
  53. package/lib/components/BryntumCostAccrualField.js.map +1 -0
  54. package/lib/components/BryntumDependencyTypePicker.js +5 -0
  55. package/lib/components/BryntumDependencyTypePicker.js.map +1 -0
  56. package/lib/components/BryntumEffortField.js +5 -0
  57. package/lib/components/BryntumEffortField.js.map +1 -0
  58. package/lib/components/BryntumEndDateField.js +5 -0
  59. package/lib/components/BryntumEndDateField.js.map +1 -0
  60. package/lib/components/BryntumModelCombo.js +5 -0
  61. package/lib/components/BryntumModelCombo.js.map +1 -0
  62. package/lib/components/BryntumRateTableField.js +5 -0
  63. package/lib/components/BryntumRateTableField.js.map +1 -0
  64. package/lib/components/BryntumResourceEditor.js +5 -0
  65. package/lib/components/BryntumResourceEditor.js.map +1 -0
  66. package/lib/components/BryntumResourceGrid.js +5 -0
  67. package/lib/components/BryntumResourceGrid.js.map +1 -0
  68. package/lib/components/BryntumResourceHistogram.js +5 -0
  69. package/lib/components/BryntumResourceHistogram.js.map +1 -0
  70. package/lib/components/BryntumResourceTypeField.js +5 -0
  71. package/lib/components/BryntumResourceTypeField.js.map +1 -0
  72. package/lib/components/BryntumResourceUtilization.js +5 -0
  73. package/lib/components/BryntumResourceUtilization.js.map +1 -0
  74. package/lib/components/BryntumSchedulerPro.js +5 -0
  75. package/lib/components/BryntumSchedulerPro.js.map +1 -0
  76. package/lib/components/BryntumSchedulerProBase.js +5 -0
  77. package/lib/components/BryntumSchedulerProBase.js.map +1 -0
  78. package/lib/components/BryntumSchedulerProProjectModel.js +5 -0
  79. package/lib/components/BryntumSchedulerProProjectModel.js.map +1 -0
  80. package/lib/components/BryntumSchedulingDirectionPicker.js +5 -0
  81. package/lib/components/BryntumSchedulingDirectionPicker.js.map +1 -0
  82. package/lib/components/BryntumSchedulingModePicker.js +5 -0
  83. package/lib/components/BryntumSchedulingModePicker.js.map +1 -0
  84. package/lib/components/BryntumStartDateField.js +5 -0
  85. package/lib/components/BryntumStartDateField.js.map +1 -0
  86. package/lib/components/BryntumTimeline.js +5 -0
  87. package/lib/components/BryntumTimeline.js.map +1 -0
  88. package/lib/components/BryntumVersionGrid.js +5 -0
  89. package/lib/components/BryntumVersionGrid.js.map +1 -0
  90. package/lib/helper/WrapperHelper.js +291 -0
  91. package/lib/helper/WrapperHelper.js.map +1 -0
  92. package/lib/index.d.ts +5 -0
  93. package/lib/index.js +47 -0
  94. package/lib/index.js.map +1 -0
  95. package/license.pdf +0 -0
  96. package/licenses.md +310 -0
  97. package/package.json +27 -0
  98. package/src/components/BryntumCalendarEditor.vue +1268 -0
  99. package/src/components/BryntumCalendarEditorProps.ts +776 -0
  100. package/src/components/BryntumCalendarField.vue +1350 -0
  101. package/src/components/BryntumCalendarFieldProps.ts +849 -0
  102. package/src/components/BryntumConstraintTypePicker.vue +1337 -0
  103. package/src/components/BryntumConstraintTypePickerProps.ts +838 -0
  104. package/src/components/BryntumCostAccrualField.vue +1337 -0
  105. package/src/components/BryntumCostAccrualFieldProps.ts +838 -0
  106. package/src/components/BryntumDependencyTypePicker.vue +1337 -0
  107. package/src/components/BryntumDependencyTypePickerProps.ts +838 -0
  108. package/src/components/BryntumEffortField.vue +1140 -0
  109. package/src/components/BryntumEffortFieldProps.ts +683 -0
  110. package/src/components/BryntumEndDateField.vue +1167 -0
  111. package/src/components/BryntumEndDateFieldProps.ts +701 -0
  112. package/src/components/BryntumModelCombo.vue +1337 -0
  113. package/src/components/BryntumModelComboProps.ts +838 -0
  114. package/src/components/BryntumRateTableField.vue +1337 -0
  115. package/src/components/BryntumRateTableFieldProps.ts +838 -0
  116. package/src/components/BryntumResourceEditor.vue +1247 -0
  117. package/src/components/BryntumResourceEditorProps.ts +758 -0
  118. package/src/components/BryntumResourceGrid.vue +2924 -0
  119. package/src/components/BryntumResourceGridProps.ts +1040 -0
  120. package/src/components/BryntumResourceHistogram.vue +4495 -0
  121. package/src/components/BryntumResourceHistogramProps.ts +1697 -0
  122. package/src/components/BryntumResourceTypeField.vue +1337 -0
  123. package/src/components/BryntumResourceTypeFieldProps.ts +838 -0
  124. package/src/components/BryntumResourceUtilization.vue +4525 -0
  125. package/src/components/BryntumResourceUtilizationProps.ts +1683 -0
  126. package/src/components/BryntumSchedulerPro.vue +7153 -0
  127. package/src/components/BryntumSchedulerProBase.vue +7151 -0
  128. package/src/components/BryntumSchedulerProBaseProps.ts +2169 -0
  129. package/src/components/BryntumSchedulerProProjectModel.vue +1192 -0
  130. package/src/components/BryntumSchedulerProProjectModelProps.ts +597 -0
  131. package/src/components/BryntumSchedulerProProps.ts +2170 -0
  132. package/src/components/BryntumSchedulingDirectionPicker.vue +1337 -0
  133. package/src/components/BryntumSchedulingDirectionPickerProps.ts +838 -0
  134. package/src/components/BryntumSchedulingModePicker.vue +1345 -0
  135. package/src/components/BryntumSchedulingModePickerProps.ts +845 -0
  136. package/src/components/BryntumStartDateField.vue +1185 -0
  137. package/src/components/BryntumStartDateFieldProps.ts +717 -0
  138. package/src/components/BryntumTimeline.vue +6311 -0
  139. package/src/components/BryntumTimelineProps.ts +2041 -0
  140. package/src/components/BryntumVersionGrid.vue +2970 -0
  141. package/src/components/BryntumVersionGridProps.ts +1053 -0
  142. package/src/helper/WrapperHelper.ts +573 -0
  143. package/src/index.ts +48 -0
  144. package/src/vite-env.d.ts +1 -0
@@ -0,0 +1,5 @@
1
+ import { _ as f } from "../chunks/DT6XYs9d.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=BryntumSchedulerProBase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BryntumSchedulerProBase.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,5 @@
1
+ import { _ as f } from "../chunks/D45V9XRN.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=BryntumSchedulerProProjectModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BryntumSchedulerProProjectModel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,5 @@
1
+ import { _ as f } from "../chunks/qKNUUeE0.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=BryntumSchedulingDirectionPicker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BryntumSchedulingDirectionPicker.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,5 @@
1
+ import { _ as f } from "../chunks/DvFm-5Hh.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=BryntumSchedulingModePicker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BryntumSchedulingModePicker.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,5 @@
1
+ import { _ as f } from "../chunks/C0N8aq7Y.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=BryntumStartDateField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BryntumStartDateField.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,5 @@
1
+ import { _ as f } from "../chunks/D6AiSClA.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=BryntumTimeline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BryntumTimeline.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,5 @@
1
+ import { _ as f } from "../chunks/BaiH7rub.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=BryntumVersionGrid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BryntumVersionGrid.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,291 @@
1
+ import { nextTick as b } from "vue";
2
+ import { Widget as N } from "@bryntum/core-thin";
3
+ class c {
4
+ /**
5
+ * Development warning. Showed when environment is set to 'development'
6
+ * @param {String} clsName vue component instance
7
+ * @param {String} msg console message
8
+ */
9
+ static devWarning(t, e) {
10
+ (window.bryntum?.isTestEnv || process.env.NODE_ENV === "development") && console.warn(
11
+ `Bryntum${t}Component development warning!
12
+ ${e}
13
+ Please check Vue integration guide: https://bryntum.com/products/grid/docs/guide/Grid/integration/vue/guide`
14
+ );
15
+ }
16
+ static devWarningContainer(t, e) {
17
+ c.devWarning(
18
+ t,
19
+ `Using "${e}" parameter for configuration is not recommended.
20
+ Widget is placed automatically inside it's container element.
21
+ Solution: remove "${e}" parameter from configuration.`
22
+ );
23
+ }
24
+ static devWarningConfigProp(t, e) {
25
+ c.devWarning(
26
+ t,
27
+ `Using "${e}" parameter for configuration is not recommended.
28
+ Solution: Use separate parameter for each "${e}" value to enable reactive updates of the API instance`
29
+ );
30
+ }
31
+ static devWarningUpdateProp(t, e) {
32
+ c.devWarning(
33
+ t,
34
+ `"${e}" is a static config option for component constructor only. No runtime changes are supported!`
35
+ );
36
+ }
37
+ static camelize(t) {
38
+ return t.replace(/-./g, (e) => (e[1] || "").toUpperCase());
39
+ }
40
+ static capitalize(t) {
41
+ return t.charAt(0).toUpperCase() + t.slice(1);
42
+ }
43
+ /**
44
+ * Returns `true` if the provided configuration object is valid for Vue processing.
45
+ * @param {*} config
46
+ * @returns {Boolean}
47
+ */
48
+ static isVueConfig(t) {
49
+ return !!t?.vue;
50
+ }
51
+ /**
52
+ * Creates bryntum component config from vue component
53
+ * @param {Object} context
54
+ * @param {Object} context.me vue component instance
55
+ * @param {Object} context.widgetData reference to data
56
+ * @param {Function} context.emit reference to emit
57
+ * @param {Object} context.element HTML element
58
+ * @param {Function} context.processCellContent cell renderer method
59
+ * @param {Function} context.processEventContent event renderer method
60
+ * @param {Function} context.processWidgetContent widget renderer method
61
+ * @param {Function} context.hasFrameworkRenderer checks presence of vue renderer
62
+ * @param {Function} context.toRaw Vue fn to unwrap reactive object
63
+ * @returns {Object} config object
64
+ */
65
+ static createConfig({
66
+ me: t,
67
+ widgetData: e,
68
+ emit: n,
69
+ element: i,
70
+ processCellContent: s,
71
+ processEventContent: o,
72
+ processWidgetContent: l,
73
+ hasFrameworkRenderer: r,
74
+ toRaw: d
75
+ }) {
76
+ const f = {}, u = t.vnode.props || {};
77
+ for (const a of Object.keys(u))
78
+ f[this.camelize(a)] = u[a];
79
+ const {
80
+ instanceClass: y,
81
+ instanceName: v
82
+ } = e, m = (a) => f[a] !== void 0, p = (e.configNames || []).filter(m), C = (e.propertyConfigNames || []).filter(m), h = (e.propertyNames || []).filter(m), $ = (e.featureNames || []).filter(m), E = e.eventNames.filter((a) => !m(a) && !f[`on${this.capitalize(a)}`]), g = {
83
+ vueComponent: t,
84
+ listeners: {},
85
+ features: {},
86
+ processCellContent: s,
87
+ processEventContent: o,
88
+ processWidgetContent: l,
89
+ hasFrameworkRenderer: r
90
+ };
91
+ E.forEach((a) => g.listeners[a] = (P) => n(a, P)), [
92
+ ...p,
93
+ ...C,
94
+ ...$
95
+ ].forEach((a) => {
96
+ c.applyPropValue(g, a, f[a], !0, d), ["features", "config"].includes(a) && c.devWarningConfigProp(y.$name, a);
97
+ }), g.cls = (g.cls || "") + ` b-vue-${y.$name.toLowerCase()}-container`, e.configNames = p, e.propertyNames = [
98
+ ...p,
99
+ ...h,
100
+ ...C,
101
+ ...$
102
+ ], e.eventNames = [], e.propertyConfigNames = [], e.featureNames = [];
103
+ const V = [
104
+ "adopt",
105
+ "appendTo",
106
+ "insertAfter",
107
+ "insertBefore"
108
+ ].find((a) => g[a]);
109
+ return V ? c.devWarningContainer(y.$name, V) : v === "Button" ? g.appendTo = i : g.adopt = i, g;
110
+ }
111
+ /**
112
+ * Setup store events relay
113
+ * @param {Object} data reference to data
114
+ * @param {Object} instance bryntum widget instance
115
+ */
116
+ static relayStores(t, e) {
117
+ const { dataStores: n, projectStores: i } = t;
118
+ n && (Object.keys(n).forEach((s) => {
119
+ const o = i ? e.project[s] : e[s];
120
+ o && (o.syncDataOnLoad == null && !o.readUrl && !o.lazyLoad && (!o.crudManager || !o.crudManager.loadUrl) && (o.syncDataOnLoad = !0), e && e.relayStoreEvents && o.relayAll(e, n[s]));
121
+ }), delete t.dataStores);
122
+ }
123
+ /**
124
+ * Creates bryntum Widget from vue component
125
+ * @param {Object} config
126
+ * @param {Object} config.me vue component instance
127
+ * @param {Object} config.widgetData reference to data
128
+ * @param {Function} config.emit reference to emit
129
+ * @param {Object} config.element HTML element
130
+ * @param {Function} config.processCellContent cell renderer method
131
+ * @param {Function} config.hasFrameworkRenderer check the presence of vue renderer
132
+ * @param {Function} config.toRaw Vue fn to unwrap reactive object
133
+ * @returns {Object} widget object
134
+ */
135
+ static createWidget(t) {
136
+ const { instanceClass: e } = t.widgetData, n = c.createConfig(t);
137
+ return e.$name === "Widget" ? N.create(n) : new e(n);
138
+ }
139
+ /**
140
+ * Applies property value to Bryntum config or instance.
141
+ * @param {Object} configOrInstance target object
142
+ * @param {String} prop property name
143
+ * @param {Object} value value
144
+ * @param {Boolean} [isConfig] config setting mode
145
+ * @param {Function} [toRaw] Vue fn to unwrap reactive object
146
+ */
147
+ static applyPropValue(t, e, n, i = !0, s) {
148
+ if (e === "project")
149
+ n && typeof n == "object" && (t[e] = n.instance ? n.instance.value || n.instance : n);
150
+ else if (e === "features" && typeof n == "object")
151
+ Object.keys(n).forEach((o) => c.applyPropValue(t, `${o}Feature`, n[o], i, s));
152
+ else if (e === "config" && typeof n == "object")
153
+ Object.keys(n).forEach((o) => c.applyPropValue(t, o, n[o], i, s));
154
+ else if (e === "columns" && !i)
155
+ t.columns.data = n;
156
+ else if (e.endsWith("Feature")) {
157
+ const o = t.features, l = e.replace("Feature", "");
158
+ if (i)
159
+ o[l] = n;
160
+ else {
161
+ const r = o[l];
162
+ r && r.setConfig(n);
163
+ }
164
+ } else
165
+ t[e] = s ? s(n) : n;
166
+ }
167
+ /**
168
+ * Creates watches for vue component properties
169
+ * @param {Object} me vue component instance
170
+ * @param {Object} instance bryntum widget instance
171
+ * @param {Object} props reference to props
172
+ * @param {Object} data reference to data
173
+ * @param {Function} watcher watch method reference (Accepts: prop and newValue)
174
+ */
175
+ static watchProps(t, e, n) {
176
+ const {
177
+ configNames: i,
178
+ propertyNames: s,
179
+ instanceClass: o
180
+ } = e;
181
+ s.forEach((l) => n(l, (r) => {
182
+ const d = Array.isArray(r) ? r.slice() : r;
183
+ c.applyPropValue(t, l, d, !1), i.includes(l) && c.devWarningUpdateProp(o.$name, l);
184
+ })), e.configNames = [], e.propertyNames = [];
185
+ }
186
+ /**
187
+ * Called from Widget.js to add the Vue component to teleports
188
+ * @param {Object} context
189
+ * @param {Widget} context.widget Widget which content is rendered by the Vue component
190
+ * @param {Object} context.html Object containing the Vue component properties and event listeners
191
+ */
192
+ static processWidgetContent({ widget: t, html: e }) {
193
+ const { is: n, bind: i = {}, vue: s, on: o = {} } = e, { vueComponent: l } = this, { teleports: { value: r } } = l.provides, { contentElement: d, id: f } = t;
194
+ if (s) {
195
+ const u = `key-${f}`;
196
+ r.has(u) && r.delete(u), b(() => {
197
+ r.set(u, { bind: i, on: o, key: u, is: n, to: d });
198
+ });
199
+ }
200
+ }
201
+ /**
202
+ * Handles the content provided by a Vue component for the widget.
203
+ * @param {Widget} widget Owner widget
204
+ * @param {String} html The HTML content to be processed
205
+ */
206
+ static handleVueContent(t, e) {
207
+ const n = (o) => !!o.vueComponent?.provides?.teleports, i = t.closest(n);
208
+ (i?.vueComponent ? i : N.query(n))?.processWidgetContent?.({ widget: t, html: e });
209
+ }
210
+ /**
211
+ * Event renderer method
212
+ * @param {Object} context
213
+ * @param {*} context.jsx
214
+ * @param {DomConfig} context.domConfig
215
+ * @param {HTMLElement} context.targetElement
216
+ * @param {Boolean} context.isRelease
217
+ * @returns {Boolean}
218
+ */
219
+ static processEventContent({
220
+ // Core passes it as jsx for React wrappers.
221
+ // Let's rename it to a more appropriate name.
222
+ jsx: t,
223
+ domConfig: e,
224
+ targetElement: n,
225
+ isRelease: i
226
+ }) {
227
+ let s = n, o = !1;
228
+ const l = this.isVertical ? e?.elementData?.renderData : e?.elementData;
229
+ if (c.isVueConfig(t) && t?.is) {
230
+ e?.dataset?.isMilestone ? s = n.parentElement.parentElement.parentElement : s = n.parentElement.parentElement;
231
+ const r = this.isVertical ? s.elementData.renderData : s.elementData, { assignmentRecord: d } = i ? l : r, { eventRecord: f } = r, { vueComponent: u } = this, { teleports: { value: y } } = u.provides, v = f.isRecurring || f.isOccurrence, m = `assignment-${d?.id}${v ? "-" + f.id : ""}`;
232
+ s.vueKey && y.delete(s.vueKey);
233
+ const p = { ...t }, { is: C, on: h = {} } = p;
234
+ delete p.is, delete p.on, b(() => {
235
+ y.set(m, {
236
+ bind: p,
237
+ key: m,
238
+ is: C,
239
+ on: h,
240
+ to: n,
241
+ generation: d.generation
242
+ });
243
+ }), s.vueKey = m, o = !0;
244
+ }
245
+ return o;
246
+ }
247
+ /**
248
+ * Cell renderer method
249
+ * @param {Object} context
250
+ * @param {RenderData} context.rendererData
251
+ * @param {*} context.rendererHtml
252
+ * @returns {Boolean}
253
+ */
254
+ static processCellContent({ rendererData: t, rendererHtml: e }) {
255
+ const { record: n, column: i, cellElement: s, row: o } = t;
256
+ if (c.isVueConfig(i.data) && i.data?.renderer) {
257
+ const { vueComponent: l } = this, { teleports: { value: r } } = l.provides, d = `${i.id}-${n.id}`, f = i.tree ? s.querySelector(".b-tree-cell-value") : s;
258
+ s.vueKey && r.delete(s.vueKey);
259
+ const u = { ...e }, { is: y, on: v = {} } = u;
260
+ delete u.is, delete u.on, b(() => {
261
+ o.id === n.id && r.set(d, {
262
+ bind: u,
263
+ key: d,
264
+ is: y,
265
+ on: v,
266
+ to: f,
267
+ generation: n.generation
268
+ });
269
+ }), s.vueKey = d;
270
+ }
271
+ }
272
+ /**
273
+ *
274
+ * @param {Object} context
275
+ * @param {*} context.cellContent Content to be rendered in cell (set by renderer)
276
+ * @param {*} context.column Column being rendered
277
+ * @returns {Boolean} `true` if there is a Vue Renderer in this cell, `false` otherwise
278
+ */
279
+ static hasFrameworkRenderer({ cellContent: t, column: e }) {
280
+ return t && typeof t == "object" && c.isVueConfig(e?.data);
281
+ }
282
+ }
283
+ window.bryntum = window.bryntum || {};
284
+ window.bryntum.vue = {
285
+ isVueConfig: c.isVueConfig,
286
+ handleVueContent: c.handleVueContent
287
+ };
288
+ export {
289
+ c as WrapperHelper
290
+ };
291
+ //# sourceMappingURL=WrapperHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WrapperHelper.js","sources":["../../src/helper/WrapperHelper.ts"],"sourcesContent":["/**\n * Vue 3 widget helper\n */\n\nimport { type ComponentInternalInstance, nextTick } from 'vue';\nimport { type VueConfig, Widget } from '@bryntum/core-thin';\n\ndeclare global {\n interface Window {\n bryntum: {\n isTestEnv?: boolean;\n vue?: {\n isVueConfig?: (config: any) => boolean;\n handleVueContent?: (widget: Widget, html: VueConfig) => void;\n };\n };\n }\n}\n\ninterface RenderElement extends HTMLElement {\n vueKey: string;\n}\n\nexport type Data = Record<string, unknown>;\n\ntype SuppressNew<T> = { [K in keyof T]: T[ K ] }\n\ntype AnyConstructor<\n Instance extends object = object,\n Static extends object = object\n> = (new (...input: any[]) => Instance) & SuppressNew<Static>\n\ntype AnyWidget = AnyConstructor<any, any>;\n\ntype RenderData = {\n record: any,\n row: any,\n column: any,\n cellElement: RenderElement\n}\n\ntype VueTeleportConfig = {\n vue: boolean,\n is: string,\n bind?: object\n on?: object\n}\n\nexport type WidgetData<T extends AnyWidget> = {\n instanceClass: T,\n instanceName: string\n isView?: boolean,\n dataStores?: object,\n projectStores?: boolean,\n configNames: string[]\n propertyConfigNames: string[]\n propertyNames: string[]\n eventNames: string[]\n featureNames?: string[]\n}\n\nexport type WidgetConfig<T extends AnyWidget> = {\n me?: ComponentInternalInstance;\n widgetData: WidgetData<T>,\n emit: (...args: any[]) => any\n element: HTMLDivElement;\n processCellContent?: Function;\n processEventContent?: Function;\n processWidgetContent?: Function;\n hasFrameworkRenderer?: Function;\n toRaw?: Function\n}\n\nexport type BryntumConfig = Record<string, any> & {\n vueComponent?: Object,\n listeners: Record<string, Function>,\n features: {},\n processCellContent: Function,\n processEventContent: Function,\n processWidgetContent: Function;\n hasFrameworkRenderer: Function\n};\n\nexport class WrapperHelper {\n\n /**\n * Development warning. Showed when environment is set to 'development'\n * @param {String} clsName vue component instance\n * @param {String} msg console message\n */\n static devWarning(clsName: string, msg: string) {\n // @ts-ignore\n if (window.bryntum?.isTestEnv || process.env.NODE_ENV === 'development') {\n console.warn(`Bryntum${clsName}Component development warning!\\n${msg}\\n` +\n 'Please check Vue integration guide: https://bryntum.com/products/grid/docs/guide/Grid/integration/vue/guide'\n );\n }\n }\n\n static devWarningContainer(clsName: string, containerParam: string) {\n WrapperHelper.devWarning(clsName,\n `Using \"${containerParam}\" parameter for configuration is not recommended.\\n` +\n 'Widget is placed automatically inside it\\'s container element.\\n' +\n `Solution: remove \"${containerParam}\" parameter from configuration.`\n );\n }\n\n static devWarningConfigProp(clsName: string, prop: string) {\n WrapperHelper.devWarning(clsName,\n `Using \"${prop}\" parameter for configuration is not recommended.\\n` +\n `Solution: Use separate parameter for each \"${prop}\" value to enable reactive updates of the API instance`\n );\n }\n\n static devWarningUpdateProp(clsName: string, prop: string) {\n WrapperHelper.devWarning(clsName,\n `\"${prop}\" is a static config option for component constructor only. No runtime changes are supported!`\n );\n }\n\n static camelize(str: string) {\n return str.replace(/-./g, s => (s[1] || '').toUpperCase());\n }\n\n static capitalize(str: string) {\n return str.charAt(0).toUpperCase() + str.slice(1);\n }\n\n /**\n * Returns `true` if the provided configuration object is valid for Vue processing.\n * @param {*} config\n * @returns {Boolean}\n */\n static isVueConfig(config: any): boolean {\n return Boolean(config?.vue);\n }\n\n /**\n * Creates bryntum component config from vue component\n * @param {Object} context\n * @param {Object} context.me vue component instance\n * @param {Object} context.widgetData reference to data\n * @param {Function} context.emit reference to emit\n * @param {Object} context.element HTML element\n * @param {Function} context.processCellContent cell renderer method\n * @param {Function} context.processEventContent event renderer method\n * @param {Function} context.processWidgetContent widget renderer method\n * @param {Function} context.hasFrameworkRenderer checks presence of vue renderer\n * @param {Function} context.toRaw Vue fn to unwrap reactive object\n * @returns {Object} config object\n */\n static createConfig<T extends AnyWidget>({\n me,\n widgetData,\n emit,\n element,\n processCellContent,\n processEventContent,\n processWidgetContent,\n hasFrameworkRenderer,\n toRaw\n }: WidgetConfig<T>) {\n\n const\n props: Record<string, any> = {},\n vProps = me!.vnode!.props! || {};\n\n for (const key of Object.keys(vProps)) {\n // Convert possible kebab keys to camelCase\n props[this.camelize(key)] = vProps[key];\n }\n\n const\n {\n instanceClass,\n instanceName\n } = widgetData,\n isValidProp = (propName: string) => props[propName] !== undefined,\n configNames = (widgetData.configNames || []).filter(isValidProp),\n propertyConfigNames = (widgetData.propertyConfigNames || []).filter(isValidProp),\n propertyNames = (widgetData.propertyNames || []).filter(isValidProp),\n featureNames = (widgetData.featureNames || []).filter(isValidProp),\n // Disable event listeners for onProps, which are duplicating functions with preventable result support\n eventNames = widgetData.eventNames.filter(eventName => !isValidProp(eventName) && !props[`on${this.capitalize(eventName)}`]),\n bryntumConfig = {\n vueComponent : me,\n listeners : {},\n features : {},\n processCellContent,\n processEventContent,\n processWidgetContent,\n hasFrameworkRenderer\n } as BryntumConfig;\n\n // Setup events listeners\n eventNames.forEach(eventName => bryntumConfig.listeners[eventName] = (params: any) => emit(eventName, params));\n\n // Setup configs\n [\n ...configNames,\n ...propertyConfigNames,\n ...featureNames\n ].forEach(propName => {\n WrapperHelper.applyPropValue(bryntumConfig, propName, props[propName], true, toRaw);\n if (['features', 'config'].includes(propName)) {\n WrapperHelper.devWarningConfigProp(instanceClass.$name, propName);\n }\n });\n\n // Add vue wrapper class name\n bryntumConfig.cls = (bryntumConfig.cls || '') + ` b-vue-${instanceClass.$name.toLowerCase()}-container`;\n\n // Prepare watch arrays\n widgetData.configNames = configNames;\n widgetData.propertyNames = [\n ...configNames,\n ...propertyNames,\n ...propertyConfigNames,\n ...featureNames\n ];\n\n // Cleanup unused instance arrays\n widgetData.eventNames = [];\n widgetData.propertyConfigNames = [];\n widgetData.featureNames = [];\n\n // If component has no container specified in config then use adopt to Wrapper's element\n const\n containerParam = [\n 'adopt',\n 'appendTo',\n 'insertAfter',\n 'insertBefore'\n ].find((prop: string) => bryntumConfig[prop]);\n\n if (!containerParam) {\n if (instanceName === 'Button') {\n // Button should always be <a> or <button> inside owner element\n bryntumConfig.appendTo = element;\n }\n else {\n bryntumConfig.adopt = element;\n }\n }\n else {\n WrapperHelper.devWarningContainer(instanceClass.$name, containerParam);\n }\n return bryntumConfig;\n }\n\n /**\n * Setup store events relay\n * @param {Object} data reference to data\n * @param {Object} instance bryntum widget instance\n */\n static relayStores(data: any, instance: any) {\n const { dataStores, projectStores } = data;\n\n if (dataStores) {\n Object.keys(dataStores).forEach(storeName => {\n const store = projectStores ? instance.project[storeName] : instance[storeName];\n if (store) {\n\n\n if (store.syncDataOnLoad == null && !store.readUrl && !store.lazyLoad && (!store.crudManager || !store.crudManager.loadUrl)) {\n store.syncDataOnLoad = true;\n }\n\n\n\n // Makes relaying store events configurable but off by default\n if (instance && instance.relayStoreEvents) {\n store.relayAll(instance, dataStores[storeName]);\n }\n }\n });\n delete data.dataStores;\n }\n }\n\n /**\n * Creates bryntum Widget from vue component\n * @param {Object} config\n * @param {Object} config.me vue component instance\n * @param {Object} config.widgetData reference to data\n * @param {Function} config.emit reference to emit\n * @param {Object} config.element HTML element\n * @param {Function} config.processCellContent cell renderer method\n * @param {Function} config.hasFrameworkRenderer check the presence of vue renderer\n * @param {Function} config.toRaw Vue fn to unwrap reactive object\n * @returns {Object} widget object\n */\n static createWidget<T extends AnyWidget>(config: WidgetConfig<T>): InstanceType<T> {\n const\n { instanceClass } = config.widgetData,\n cfg = WrapperHelper.createConfig(config);\n return (instanceClass.$name === 'Widget' ? Widget.create(cfg) : new instanceClass(cfg)) as InstanceType<T>;\n }\n\n /**\n * Applies property value to Bryntum config or instance.\n * @param {Object} configOrInstance target object\n * @param {String} prop property name\n * @param {Object} value value\n * @param {Boolean} [isConfig] config setting mode\n * @param {Function} [toRaw] Vue fn to unwrap reactive object\n */\n static applyPropValue(configOrInstance: any, prop: string, value: any, isConfig = true, toRaw?: Function) {\n\n if (prop === 'project') {\n // Allow use ProjectModel component as project\n if (value && typeof value === 'object') {\n configOrInstance[prop] = value.instance ? value.instance.value || value.instance : value;\n }\n }\n else if (prop === 'features' && typeof value === 'object') {\n Object.keys(value).forEach(key => WrapperHelper.applyPropValue(configOrInstance, `${key}Feature`, value[key], isConfig, toRaw));\n }\n else if (prop === 'config' && typeof value === 'object') {\n Object.keys(value).forEach(key => WrapperHelper.applyPropValue(configOrInstance, key, value[key], isConfig, toRaw));\n }\n else if (prop === 'columns' && !isConfig) {\n configOrInstance['columns'].data = value;\n }\n else if (prop.endsWith('Feature')) {\n const\n features = configOrInstance['features'],\n featureName = prop.replace('Feature', '');\n if (isConfig) {\n features[featureName] = value;\n }\n else {\n const feature = features[featureName];\n if (feature) {\n feature.setConfig(value);\n }\n }\n }\n else {\n configOrInstance[prop] = toRaw ? toRaw(value) : value;\n }\n }\n\n /**\n * Creates watches for vue component properties\n * @param {Object} me vue component instance\n * @param {Object} instance bryntum widget instance\n * @param {Object} props reference to props\n * @param {Object} data reference to data\n * @param {Function} watcher watch method reference (Accepts: prop and newValue)\n */\n static watchProps<T extends AnyWidget>(\n instance: InstanceType<T>,\n data: WidgetData<T>,\n watcher: (prop: string, callback: (value: any) => void) => void) {\n const\n {\n configNames,\n propertyNames,\n instanceClass\n } = data;\n\n propertyNames.forEach(prop => watcher(prop, newValue => {\n const value = Array.isArray(newValue) ? newValue.slice() : newValue;\n WrapperHelper.applyPropValue(instance, prop, value, false);\n\n // Check if property is a config and notify\n if (configNames.includes(prop)) {\n WrapperHelper.devWarningUpdateProp(instanceClass.$name, prop);\n }\n }));\n\n // Cleanup unused instance arrays\n data.configNames = [];\n data.propertyNames = [];\n }\n\n /**\n * Called from Widget.js to add the Vue component to teleports\n * @param {Object} context\n * @param {Widget} context.widget Widget which content is rendered by the Vue component\n * @param {Object} context.html Object containing the Vue component properties and event listeners\n */\n static processWidgetContent({ widget, html }: { widget: Widget; html: VueTeleportConfig }) {\n const\n { is, bind = {}, vue, on = {} } = html,\n // @ts-ignore\n { vueComponent } = this,\n { teleports : { value : teleports } } = vueComponent.provides,\n { contentElement : to, id } = widget;\n\n if (vue) {\n const key = `key-${id}`;\n\n // delete the teleport with the same key if any\n if (teleports.has(key)) {\n teleports.delete(key);\n }\n\n nextTick(() => {\n teleports.set(key, { bind, on, key, is, to });\n });\n }\n }\n\n /**\n * Handles the content provided by a Vue component for the widget.\n * @param {Widget} widget Owner widget\n * @param {String} html The HTML content to be processed\n */\n static handleVueContent(widget: Widget, html: VueConfig): void {\n // Called when a Vue component is to provide the widget content\n const\n hasTeleports = (element: any) => Boolean(element.vueComponent?.provides?.teleports),\n parentView = widget.closest(hasTeleports) as any,\n // Find a view (grid, scheduler, etc.) which has `teleports` defined. It also has `processWidgetContent`\n view = parentView?.vueComponent ? parentView : Widget.query(hasTeleports);\n\n view?.processWidgetContent?.({ widget, html });\n }\n\n /**\n * Event renderer method\n * @param {Object} context\n * @param {*} context.jsx\n * @param {DomConfig} context.domConfig\n * @param {HTMLElement} context.targetElement\n * @param {Boolean} context.isRelease\n * @returns {Boolean}\n */\n static processEventContent({\n // Core passes it as jsx for React wrappers.\n // Let's rename it to a more appropriate name.\n jsx : rendererConfig,\n domConfig,\n targetElement,\n isRelease\n }: {\n jsx: { [key: string]: any },\n domConfig: any;\n isRelease: boolean;\n targetElement: HTMLElement & { vueKey: string }\n scrolling: boolean\n }) {\n\n let wrap: any = targetElement,\n returnValue = false;\n\n // @ts-ignore\n const domConfigData = this.isVertical ? domConfig?.elementData?.renderData : domConfig?.elementData;\n\n if (WrapperHelper.isVueConfig(rendererConfig) && rendererConfig?.is) {\n if (domConfig?.dataset?.isMilestone) {\n wrap = targetElement.parentElement!.parentElement!.parentElement!;\n }\n else {\n wrap = targetElement.parentElement!.parentElement!;\n }\n const\n // Vertical nests renderData, while horizontal does not\n // @ts-ignore\n wrapData = this.isVertical ? wrap.elementData.renderData : wrap.elementData,\n { assignmentRecord } = isRelease ? domConfigData : wrapData,\n { eventRecord } = wrapData,\n { vueComponent } = this as any,\n { teleports : { value : teleports } } = vueComponent.provides,\n\n // Recurring events are handled a bit differently so get the flag\n isRecurring = eventRecord.isRecurring || eventRecord.isOccurrence,\n key = `assignment-${assignmentRecord?.id}${isRecurring ? '-' + eventRecord.id : ''}`;\n\n if (wrap.vueKey) {\n teleports.delete(wrap.vueKey);\n }\n const\n bind = { ...rendererConfig },\n { is, on = {} } = bind;\n\n delete bind.is;\n delete bind.on;\n\n nextTick(() => {\n teleports.set(key, {\n bind,\n key,\n is,\n on,\n to : targetElement,\n generation : assignmentRecord.generation\n });\n\n });\n\n wrap.vueKey = key;\n returnValue = true;\n }\n\n return returnValue;\n }\n\n /**\n * Cell renderer method\n * @param {Object} context\n * @param {RenderData} context.rendererData\n * @param {*} context.rendererHtml\n * @returns {Boolean}\n */\n static processCellContent({ rendererData, rendererHtml }: { rendererData: RenderData, rendererHtml: any }) {\n const { record, column, cellElement, row } = rendererData;\n\n // Only run for cells with vue renderers\n if (WrapperHelper.isVueConfig(column.data) && column.data?.renderer) {\n const\n // `this` is a caller component\n { vueComponent } = this as any,\n // `teleports` is javascript Map object\n { teleports : { value : teleports } } = vueComponent.provides,\n key = `${column.id}-${record.id}`,\n renderElement = column.tree\n ? cellElement.querySelector('.b-tree-cell-value')\n : cellElement;\n\n // If the cell already has a teleport, release it\n if (cellElement.vueKey) {\n teleports.delete(cellElement.vueKey);\n }\n\n const\n bind = { ...rendererHtml },\n { is, on = {} } = bind;\n\n delete bind.is;\n delete bind.on;\n\n // Create new teleport\n nextTick(() => {\n // Only teleport if the row is still used for the same record. Since this happens async, we might have\n // scrolled over the entire block of rows since the render\n if (row.id === record.id) {\n teleports.set(key, {\n bind,\n key,\n is,\n on,\n to : renderElement,\n generation : record.generation\n });\n }\n });\n\n // Link cell to the teleport, to be able to release it above\n cellElement.vueKey = key;\n }\n }\n\n /**\n *\n * @param {Object} context\n * @param {*} context.cellContent Content to be rendered in cell (set by renderer)\n * @param {*} context.column Column being rendered\n * @returns {Boolean} `true` if there is a Vue Renderer in this cell, `false` otherwise\n */\n static hasFrameworkRenderer({ cellContent, column }: { cellContent: any, column: any }) {\n return cellContent && typeof cellContent === 'object' && WrapperHelper.isVueConfig(column?.data);\n }\n}\n\n// Expose wrapper methods on window.bryntum\nwindow.bryntum = window.bryntum || {};\nwindow.bryntum.vue = {\n isVueConfig : WrapperHelper.isVueConfig,\n handleVueContent : WrapperHelper.handleVueContent\n};\n"],"names":["WrapperHelper","clsName","msg","containerParam","prop","str","s","config","me","widgetData","emit","element","processCellContent","processEventContent","processWidgetContent","hasFrameworkRenderer","toRaw","props","vProps","key","instanceClass","instanceName","isValidProp","propName","configNames","propertyConfigNames","propertyNames","featureNames","eventNames","eventName","bryntumConfig","params","data","instance","dataStores","projectStores","storeName","store","cfg","Widget","configOrInstance","value","isConfig","features","featureName","feature","watcher","newValue","widget","html","is","bind","vue","on","vueComponent","teleports","to","id","nextTick","hasTeleports","parentView","rendererConfig","domConfig","targetElement","isRelease","wrap","returnValue","domConfigData","wrapData","assignmentRecord","eventRecord","isRecurring","rendererData","rendererHtml","record","column","cellElement","row","renderElement","cellContent"],"mappings":";;AAmFO,MAAMA,EAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOvB,OAAO,WAAWC,GAAiBC,GAAa;AAE5C,KAAI,OAAO,SAAS,aAAa,QAAQ,IAAI,aAAa,kBACtD,QAAQ;AAAA,MAAK,UAAUD,CAAO;AAAA,EAAmCC,CAAG;AAAA;AAAA,IAAA;AAAA,EAI5E;AAAA,EAEA,OAAO,oBAAoBD,GAAiBE,GAAwB;AAChE,IAAAH,EAAc;AAAA,MAAWC;AAAA,MACrB,UAAUE,CAAc;AAAA;AAAA,oBAEHA,CAAc;AAAA,IAAA;AAAA,EAE3C;AAAA,EAEA,OAAO,qBAAqBF,GAAiBG,GAAc;AACvD,IAAAJ,EAAc;AAAA,MAAWC;AAAA,MACrB,UAAUG,CAAI;AAAA,6CACgCA,CAAI;AAAA,IAAA;AAAA,EAE1D;AAAA,EAEA,OAAO,qBAAqBH,GAAiBG,GAAc;AACvD,IAAAJ,EAAc;AAAA,MAAWC;AAAA,MACrB,IAAIG,CAAI;AAAA,IAAA;AAAA,EAEhB;AAAA,EAEA,OAAO,SAASC,GAAa;AACzB,WAAOA,EAAI,QAAQ,OAAO,CAAAC,OAAMA,EAAE,CAAC,KAAK,IAAI,aAAa;AAAA,EAC7D;AAAA,EAEA,OAAO,WAAWD,GAAa;AAC3B,WAAOA,EAAI,OAAO,CAAC,EAAE,gBAAgBA,EAAI,MAAM,CAAC;AAAA,EACpD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,OAAO,YAAYE,GAAsB;AACrC,WAAO,EAAQA,GAAQ;AAAA,EAC3B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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A;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,OAAO,qBAAqB,EAAE,aAAA4D,GAAa,QAAAJ,KAA6C;AACpF,WAAOI,KAAe,OAAOA,KAAgB,YAAY/E,EAAc,YAAY2E,GAAQ,IAAI;AAAA,EACnG;AACJ;AAGA,OAAO,UAAc,OAAO,WAAW,CAAA;AACvC,OAAO,QAAQ,MAAM;AAAA,EACjB,aAAmB3E,EAAc;AAAA,EACjC,kBAAmBA,EAAc;AACrC;"}
package/lib/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Vue 3 wrappers
3
+ */
4
+
5
+ export * from '../src/index';
package/lib/index.js ADDED
@@ -0,0 +1,47 @@
1
+ import { _ as o } from "./chunks/DQYJMaQ_.js";
2
+ import { _ as m } from "./chunks/ggN9GDPJ.js";
3
+ import { _ as n } from "./chunks/BBN-5eeI.js";
4
+ import { _ as s } from "./chunks/BrUxjEMx.js";
5
+ import { _ as p } from "./chunks/C9qY739P.js";
6
+ import { _ as f } from "./chunks/CDbPwyl3.js";
7
+ import { _ as B } from "./chunks/yCHi3rZC.js";
8
+ import { _ } from "./chunks/DgESZupU.js";
9
+ import { _ as c } from "./chunks/D45V9XRN.js";
10
+ import { _ as F } from "./chunks/B12rdbvL.js";
11
+ import { _ as S } from "./chunks/BtVT0xgl.js";
12
+ import { _ as C } from "./chunks/xk_S9thL.js";
13
+ import { _ as k } from "./chunks/CB9cdxRl.js";
14
+ import { _ as E } from "./chunks/Ct_m9O9h.js";
15
+ import { _ as M } from "./chunks/DzO9n33e.js";
16
+ import { _ as G } from "./chunks/H51_wkdg.js";
17
+ import { _ as z } from "./chunks/DT6XYs9d.js";
18
+ import { _ as H } from "./chunks/qKNUUeE0.js";
19
+ import { _ as V } from "./chunks/DvFm-5Hh.js";
20
+ import { _ as v } from "./chunks/C0N8aq7Y.js";
21
+ import { _ as I } from "./chunks/D6AiSClA.js";
22
+ import { _ as K } from "./chunks/BaiH7rub.js";
23
+ export {
24
+ o as BryntumCalendarEditor,
25
+ m as BryntumCalendarField,
26
+ n as BryntumConstraintTypePicker,
27
+ s as BryntumCostAccrualField,
28
+ p as BryntumDependencyTypePicker,
29
+ f as BryntumEffortField,
30
+ B as BryntumEndDateField,
31
+ _ as BryntumModelCombo,
32
+ F as BryntumRateTableField,
33
+ S as BryntumResourceEditor,
34
+ C as BryntumResourceGrid,
35
+ k as BryntumResourceHistogram,
36
+ E as BryntumResourceTypeField,
37
+ M as BryntumResourceUtilization,
38
+ G as BryntumSchedulerPro,
39
+ z as BryntumSchedulerProBase,
40
+ c as BryntumSchedulerProProjectModel,
41
+ H as BryntumSchedulingDirectionPicker,
42
+ V as BryntumSchedulingModePicker,
43
+ v as BryntumStartDateField,
44
+ I as BryntumTimeline,
45
+ K as BryntumVersionGrid
46
+ };
47
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
package/license.pdf ADDED
Binary file