@bryntum/scheduler-vue-3-thin 7.2.3 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/lib/chunks/{C7ZFK2B7.js → 5o-YjSb7.js} +16 -10
- package/lib/chunks/5o-YjSb7.js.map +1 -0
- package/lib/chunks/BXIuEgYD.js +265 -0
- package/lib/chunks/BXIuEgYD.js.map +1 -0
- package/lib/chunks/{BD-Hg3lY.js → DB0UHrA3.js} +17 -24
- package/lib/chunks/DB0UHrA3.js.map +1 -0
- package/lib/chunks/{DmQj0tBi.js → DP61St-u.js} +14 -6
- package/lib/chunks/DP61St-u.js.map +1 -0
- package/lib/chunks/{B0m0r-NV.js → DVFhf2Ma.js} +11 -11
- package/lib/chunks/DVFhf2Ma.js.map +1 -0
- package/lib/chunks/{DerP_qo7.js → DhhzgoYL.js} +16 -10
- package/lib/chunks/DhhzgoYL.js.map +1 -0
- package/lib/chunks/{BNGLBrCN.js → OJaN5ZWK.js} +6 -6
- package/lib/chunks/OJaN5ZWK.js.map +1 -0
- package/lib/chunks/{CP1Mm_Ak.js → R69sJLmF.js} +16 -17
- package/lib/chunks/R69sJLmF.js.map +1 -0
- package/lib/chunks/{mKqb8_2f.js → ZkU6CtWX.js} +6 -6
- package/lib/chunks/ZkU6CtWX.js.map +1 -0
- package/lib/chunks/{C0UqC4Uj.js → eUISgYXE.js} +9 -9
- package/lib/chunks/eUISgYXE.js.map +1 -0
- package/lib/chunks/{CsoS615B.js → kN-s_8Na.js} +6 -6
- package/lib/chunks/kN-s_8Na.js.map +1 -0
- package/lib/chunks/{C2PT-Ukt.js → t8aiH3XL.js} +13 -14
- package/lib/chunks/t8aiH3XL.js.map +1 -0
- package/lib/components/BryntumEventColorField.js +1 -1
- package/lib/components/BryntumProjectCombo.js +1 -1
- package/lib/components/BryntumResourceCombo.js +1 -1
- package/lib/components/BryntumResourceFilter.js +1 -1
- package/lib/components/BryntumScheduler.js +1 -1
- package/lib/components/BryntumSchedulerBase.js +1 -1
- package/lib/components/BryntumSchedulerDatePicker.js +1 -1
- package/lib/components/BryntumSchedulerProjectModel.js +1 -1
- package/lib/components/BryntumThemeCombo.js +57 -0
- package/lib/components/BryntumThemeCombo.js.map +1 -0
- package/lib/components/BryntumTimeZoomSlider.js +5 -0
- package/lib/components/BryntumTimeZoomSlider.js.map +1 -0
- package/lib/components/BryntumTimelineHistogram.js +1 -1
- package/lib/components/BryntumUndoRedo.js +1 -1
- package/lib/components/BryntumViewPresetCombo.js +1 -1
- package/lib/index.js +18 -16
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/BryntumEventColorField.vue +72 -116
- package/src/components/BryntumEventColorFieldProps.ts +68 -108
- package/src/components/BryntumProjectCombo.vue +90 -149
- package/src/components/BryntumProjectComboProps.ts +86 -141
- package/src/components/BryntumResourceCombo.vue +91 -151
- package/src/components/BryntumResourceComboProps.ts +87 -143
- package/src/components/BryntumResourceFilter.vue +63 -104
- package/src/components/BryntumResourceFilterProps.ts +60 -98
- package/src/components/BryntumScheduler.vue +429 -600
- package/src/components/BryntumSchedulerBase.vue +429 -600
- package/src/components/BryntumSchedulerBaseProps.ts +367 -522
- package/src/components/BryntumSchedulerDatePicker.vue +120 -196
- package/src/components/BryntumSchedulerDatePickerProps.ts +116 -187
- package/src/components/BryntumSchedulerProjectModel.vue +12 -31
- package/src/components/BryntumSchedulerProjectModelProps.ts +10 -20
- package/src/components/BryntumSchedulerProps.ts +367 -522
- package/src/components/BryntumThemeCombo.vue +60 -0
- package/src/components/BryntumTimeZoomSlider.vue +859 -0
- package/src/components/BryntumTimeZoomSliderProps.ts +482 -0
- package/src/components/BryntumTimelineHistogram.vue +325 -444
- package/src/components/BryntumTimelineHistogramProps.ts +275 -388
- package/src/components/BryntumUndoRedo.vue +78 -125
- package/src/components/BryntumUndoRedoProps.ts +74 -116
- package/src/components/BryntumViewPresetCombo.vue +67 -107
- package/src/components/BryntumViewPresetComboProps.ts +63 -99
- package/src/index.ts +2 -0
- package/lib/chunks/B0m0r-NV.js.map +0 -1
- package/lib/chunks/BD-Hg3lY.js.map +0 -1
- package/lib/chunks/BNGLBrCN.js.map +0 -1
- package/lib/chunks/C0UqC4Uj.js.map +0 -1
- package/lib/chunks/C2PT-Ukt.js.map +0 -1
- package/lib/chunks/C7ZFK2B7.js.map +0 -1
- package/lib/chunks/CP1Mm_Ak.js.map +0 -1
- package/lib/chunks/CsoS615B.js.map +0 -1
- package/lib/chunks/DerP_qo7.js.map +0 -1
- package/lib/chunks/DmQj0tBi.js.map +0 -1
- package/lib/chunks/mKqb8_2f.js.map +0 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div ref="refElement" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script setup lang="ts">
|
|
6
|
+
import { onBeforeUnmount, onMounted, ref } from 'vue';
|
|
7
|
+
import { Combo, DomHelper, BrowserHelper } from '@bryntum/core-thin';
|
|
8
|
+
|
|
9
|
+
const refElement = ref<HTMLElement | null>(null);
|
|
10
|
+
let combo: Combo | null = null;
|
|
11
|
+
|
|
12
|
+
onMounted(() => {
|
|
13
|
+
combo = new Combo({
|
|
14
|
+
appendTo : refElement.value as HTMLElement,
|
|
15
|
+
store : {
|
|
16
|
+
data : [
|
|
17
|
+
{ id : 'svalbard-light', text : 'Svalbard Light' },
|
|
18
|
+
{ id : 'svalbard-dark', text : 'Svalbard Dark' },
|
|
19
|
+
{ id : 'visby-light', text : 'Visby Light' },
|
|
20
|
+
{ id : 'visby-dark', text : 'Visby Dark' },
|
|
21
|
+
{ id : 'stockholm-light', text : 'Stockholm Light' },
|
|
22
|
+
{ id : 'stockholm-dark', text : 'Stockholm Dark' },
|
|
23
|
+
{ id : 'material3-light', text : 'Material3 Light' },
|
|
24
|
+
{ id : 'material3-dark', text : 'Material3 Dark' },
|
|
25
|
+
{ id : 'fluent2-light', text : 'Fluent2 Light' },
|
|
26
|
+
{ id : 'fluent2-dark', text : 'Fluent2 Dark' },
|
|
27
|
+
{ id : 'high-contrast-light', text : 'High Contrast Light' },
|
|
28
|
+
{ id : 'high-contrast-dark', text : 'High Contrast Dark' }
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
label : 'Theme',
|
|
32
|
+
width : '16em',
|
|
33
|
+
value : 'svalbard-light',
|
|
34
|
+
editable : false,
|
|
35
|
+
labelPosition : 'before',
|
|
36
|
+
ref : 'themeCombo',
|
|
37
|
+
listeners : {
|
|
38
|
+
change({ value }: { value: string }) {
|
|
39
|
+
DomHelper.setTheme(value).then((context: any) => {
|
|
40
|
+
if (context) {
|
|
41
|
+
const { theme, prev } = context;
|
|
42
|
+
document.body.classList.remove(`b-theme-${prev}`);
|
|
43
|
+
document.body.classList.add(`b-theme-${theme}`);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
// Apply from search param
|
|
51
|
+
const theme = BrowserHelper.searchParam('theme');
|
|
52
|
+
if (theme) {
|
|
53
|
+
combo.value = theme;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
onBeforeUnmount(() => {
|
|
58
|
+
combo?.destroy();
|
|
59
|
+
});
|
|
60
|
+
</script>
|