@sme.up/ketchup 9.6.3 → 9.6.5
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/dist/cjs/{bar.helpers-f46a5a83.js → bar.helpers-c481a535.js} +45 -13
- package/dist/cjs/{f-button-9a0eba42.js → f-button-23ec3db5.js} +1 -1
- package/dist/cjs/{f-cell-1ad41071.js → f-cell-bcc51c0f.js} +9 -29
- package/dist/cjs/{f-chip-48851b4f.js → f-chip-63363ecf.js} +2 -2
- package/dist/cjs/{f-image-541e5f4d.js → f-image-f3944c01.js} +2 -5
- package/dist/cjs/{f-paginator-utils-8ff2a9b4.js → f-paginator-utils-60e05759.js} +3 -3
- package/dist/cjs/{f-text-field-ac5d6497.js → f-text-field-354b6c78.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +48 -48
- package/dist/cjs/kup-box.cjs.entry.js +8 -8
- package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
- package/dist/cjs/kup-card-list.cjs.entry.js +2 -2
- package/dist/cjs/kup-cell.cjs.entry.js +7 -7
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +256 -40
- package/dist/cjs/kup-dashboard.cjs.entry.js +5 -5
- package/dist/cjs/{kup-dates-b7d53b4d.js → kup-dates-e22ee32c.js} +21 -0
- package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
- package/dist/cjs/kup-echart.cjs.entry.js +2 -2
- package/dist/cjs/kup-editor.cjs.entry.js +2 -2
- package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
- package/dist/cjs/kup-gantt_10.cjs.entry.js +105 -39
- package/dist/cjs/kup-grid.cjs.entry.js +2 -2
- package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
- package/dist/cjs/kup-image-list.cjs.entry.js +21 -14
- package/dist/cjs/kup-input-panel.cjs.entry.js +444 -0
- package/dist/cjs/kup-lazy.cjs.entry.js +13 -13
- package/dist/cjs/kup-magic-box.cjs.entry.js +6 -6
- package/dist/cjs/{kup-manager-26a9154b.js → kup-manager-e1bfd4f8.js} +656 -121
- package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +4 -4
- package/dist/cjs/kup-pdf.cjs.entry.js +76600 -0
- package/dist/cjs/kup-photo-frame.cjs.entry.js +4 -4
- package/dist/cjs/{kup-planner-declarations-d3dec885.js → kup-planner-declarations-cb33663d.js} +3 -0
- package/dist/cjs/{kup-planner-renderer-helper-680bbd5a.js → kup-planner-renderer-helper-f001fad7.js} +56 -8
- package/dist/cjs/kup-planner-renderer.cjs.entry.js +44 -11
- package/dist/cjs/{kup-planner-time-formatter-a74e70f0.js → kup-planner-time-formatter-b7dca3ea.js} +3 -0
- package/dist/cjs/kup-planner.cjs.entry.js +81 -9
- package/dist/cjs/kup-probe.cjs.entry.js +3 -3
- package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
- package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/image-list.js +332 -2
- package/dist/collection/assets/index.js +8 -0
- package/dist/collection/assets/input-panel.js +480 -0
- package/dist/collection/assets/pdf.js +15 -0
- package/dist/collection/assets/planner-example-5.js +19 -7
- package/dist/collection/assets/planner-example-6.js +3 -0
- package/dist/collection/assets/planner.js +4 -3
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/kup-badge/kup-badge.css +4 -4
- package/dist/collection/components/kup-image-list/kup-image-list.css +37 -4
- package/dist/collection/components/kup-image-list/kup-image-list.js +15 -8
- package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js +8 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel.css +169 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel.e2e.js +346 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +669 -0
- package/dist/collection/components/kup-lazy/kup-lazy.js +11 -11
- package/dist/collection/components/kup-list/kup-list.js +1 -1
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +1 -1
- package/dist/collection/components/kup-pdf/kup-pdf-declarations.js +8 -0
- package/dist/collection/components/kup-pdf/kup-pdf.css +169 -0
- package/dist/collection/components/kup-pdf/kup-pdf.js +262 -0
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +2 -2
- package/dist/collection/components/kup-planner/kup-planner-declarations.js +3 -0
- package/dist/collection/components/kup-planner/kup-planner-helper.js +42 -1
- package/dist/collection/components/kup-planner/kup-planner.js +191 -5
- package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
- package/dist/collection/components/kup-planner/utils/custom-task-list-table.js +103 -11
- package/dist/collection/components/kup-planner/utils/gantt-table.module.css +80 -2
- package/dist/collection/components/kup-planner/utils/helpers/bar.helpers.js +41 -13
- package/dist/collection/components/kup-planner/utils/helpers/other.helpers.js +3 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.css +10 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +61 -6
- package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +32 -2
- package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.css +4 -0
- package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +208 -24
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css +4 -0
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +131 -7
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer-helper.js +55 -6
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +40 -7
- package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.css +22 -15
- package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +21 -5
- package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +19 -3
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +76 -2
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
- package/dist/collection/components/kup-probe/kup-probe.js +1 -1
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
- package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
- package/dist/collection/components/kup-rating/kup-rating.js +1 -1
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
- package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
- package/dist/collection/components/kup-switch/kup-switch.js +1 -1
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +1 -1
- package/dist/collection/f-components/f-cell/f-cell.js +5 -24
- package/dist/collection/f-components/f-image/f-image.js +2 -5
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +7 -0
- package/dist/collection/types/GenericTypes.js +1 -0
- package/dist/components/_commonjsHelpers.js +26 -0
- package/dist/components/custom-task-list-header.js +2 -2
- package/dist/components/custom-task-list-table.js +58 -13
- package/dist/components/kup-autocomplete2.js +48 -70
- package/dist/components/kup-box2.js +1 -1
- package/dist/components/kup-calendar.js +2 -2
- package/dist/components/kup-cell.js +1 -1
- package/dist/components/kup-dashboard.js +1 -1
- package/dist/components/kup-dates.js +2 -6
- package/dist/components/kup-echart2.js +1 -1
- package/dist/components/kup-editor.js +1 -1
- package/dist/components/kup-gantt-calendar2.js +31 -1
- package/dist/components/kup-gantt2.js +26 -7
- package/dist/components/kup-grid-renderer2.js +219 -81
- package/dist/components/kup-grid2.js +1 -1
- package/dist/components/kup-horizontal-scroll2.js +48 -10
- package/dist/components/kup-iframe.js +1 -1
- package/dist/components/kup-image-list.js +15 -8
- package/dist/components/kup-input-panel.d.ts +11 -0
- package/dist/components/kup-input-panel.js +595 -0
- package/dist/components/kup-lazy.js +11 -11
- package/dist/components/kup-magic-box.js +4 -4
- package/dist/components/kup-manager.js +658 -122
- package/dist/components/kup-nav-bar.js +1 -1
- package/dist/components/kup-numeric-picker.js +2 -2
- package/dist/components/kup-pdf.d.ts +11 -0
- package/dist/components/kup-pdf.js +76756 -0
- package/dist/components/kup-photo-frame.js +2 -2
- package/dist/components/kup-planner-declarations.js +91 -0
- package/dist/components/kup-planner-renderer2.js +42 -9
- package/dist/components/kup-planner.js +86 -6
- package/dist/components/kup-probe.js +1 -1
- package/dist/components/kup-qlik.js +1 -1
- package/dist/components/kup-snackbar.js +1 -1
- package/dist/components/kup-standard-tooltip2.js +1 -1
- package/dist/components/kup-switcher2.js +19 -7
- package/dist/components/kup-task-gantt2.js +6 -4
- package/dist/components/kup-task-list-header2.js +7 -7
- package/dist/components/kup-task-list-table2.js +1 -1
- package/dist/components/kup-task-list2.js +434 -84
- package/dist/components/kup-tooltip2.js +1 -1
- package/dist/components/kup-vertical-scroll2.js +2 -2
- package/dist/components/other.helpers.js +47 -0
- package/dist/esm/{bar.helpers-0898efb9.js → bar.helpers-23a51579.js} +45 -14
- package/dist/esm/{f-button-45d690a5.js → f-button-d6dbcfd6.js} +1 -1
- package/dist/esm/{f-cell-63db06db.js → f-cell-7b41415c.js} +9 -29
- package/dist/esm/{f-chip-f1ab6c5e.js → f-chip-68d27d7a.js} +2 -2
- package/dist/esm/{f-image-8b382cc5.js → f-image-a67229e5.js} +2 -5
- package/dist/esm/{f-paginator-utils-ae563cd5.js → f-paginator-utils-8773e358.js} +3 -3
- package/dist/esm/{f-text-field-b5fcb598.js → f-text-field-d364ffd2.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +3 -3
- package/dist/esm/kup-autocomplete_27.entry.js +48 -48
- package/dist/esm/kup-box.entry.js +8 -8
- package/dist/esm/kup-calendar.entry.js +5 -5
- package/dist/esm/kup-card-list.entry.js +2 -2
- package/dist/esm/kup-cell.entry.js +7 -7
- package/dist/esm/kup-custom-task-list-header_4.entry.js +256 -40
- package/dist/esm/kup-dashboard.entry.js +5 -5
- package/dist/esm/{kup-dates-4ad48be7.js → kup-dates-26a56bf7.js} +20 -1
- package/dist/esm/kup-drawer.entry.js +2 -2
- package/dist/esm/kup-echart.entry.js +2 -2
- package/dist/esm/kup-editor.entry.js +2 -2
- package/dist/esm/kup-family-tree.entry.js +4 -4
- package/dist/esm/kup-gantt_10.entry.js +106 -40
- package/dist/esm/kup-grid.entry.js +2 -2
- package/dist/esm/kup-iframe.entry.js +2 -2
- package/dist/esm/kup-image-list.entry.js +21 -14
- package/dist/esm/kup-input-panel.entry.js +440 -0
- package/dist/esm/kup-lazy.entry.js +13 -13
- package/dist/esm/kup-magic-box.entry.js +6 -6
- package/dist/esm/{kup-manager-cdb4f21a.js → kup-manager-a316a70e.js} +656 -121
- package/dist/esm/kup-nav-bar.entry.js +3 -3
- package/dist/esm/kup-numeric-picker.entry.js +4 -4
- package/dist/esm/kup-pdf.entry.js +76596 -0
- package/dist/esm/kup-photo-frame.entry.js +4 -4
- package/dist/esm/{kup-planner-declarations-b9345758.js → kup-planner-declarations-398babf9.js} +3 -0
- package/dist/esm/{kup-planner-renderer-helper-da0518be.js → kup-planner-renderer-helper-a2ec9a1c.js} +57 -8
- package/dist/esm/kup-planner-renderer.entry.js +44 -11
- package/dist/esm/{kup-planner-time-formatter-a68e05ba.js → kup-planner-time-formatter-ddf84f9b.js} +1 -1
- package/dist/esm/kup-planner.entry.js +81 -9
- package/dist/esm/kup-probe.entry.js +3 -3
- package/dist/esm/kup-qlik.entry.js +3 -3
- package/dist/esm/kup-snackbar.entry.js +5 -5
- package/dist/esm/loader.js +1 -1
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-008bdcdc.js +1 -0
- package/dist/ketchup/p-042e874a.entry.js +1 -0
- package/dist/ketchup/{p-837bd0a6.entry.js → p-074ccd53.entry.js} +1 -1
- package/dist/ketchup/{p-41e8402e.entry.js → p-1088ab22.entry.js} +1 -1
- package/dist/ketchup/{p-d9284d98.entry.js → p-1bcac01f.entry.js} +1 -1
- package/dist/ketchup/{p-e0a1fbe7.entry.js → p-1e028d95.entry.js} +1 -1
- package/dist/ketchup/p-25058baa.js +1 -0
- package/dist/ketchup/{p-cbe42afd.entry.js → p-2932e7e8.entry.js} +1 -1
- package/dist/ketchup/{p-1cd48eea.entry.js → p-2b84db7b.entry.js} +1 -1
- package/dist/ketchup/{p-d608f866.entry.js → p-2ef90f60.entry.js} +1 -1
- package/dist/ketchup/{p-bedabdb5.js → p-339bbeae.js} +1 -1
- package/dist/ketchup/{p-157f0e89.entry.js → p-48e45ac0.entry.js} +1 -1
- package/dist/ketchup/p-53af4c87.js +1 -0
- package/dist/ketchup/{p-4dfc5927.entry.js → p-556f7ddc.entry.js} +1 -1
- package/dist/ketchup/{p-cc7352a8.entry.js → p-5f7d8c21.entry.js} +1 -1
- package/dist/ketchup/{p-e0c10de2.entry.js → p-6362738c.entry.js} +1 -1
- package/dist/ketchup/{p-ad6a3c2a.entry.js → p-65e363c6.entry.js} +1 -1
- package/dist/ketchup/p-6921bc81.entry.js +16 -0
- package/dist/ketchup/p-6961e0ce.entry.js +1 -0
- package/dist/ketchup/p-7123d2a4.entry.js +1 -0
- package/dist/ketchup/{p-a5074ce4.js → p-801776bc.js} +1 -1
- package/dist/ketchup/{p-ca8a1f53.entry.js → p-81645576.entry.js} +1 -1
- package/dist/ketchup/p-838dea62.js +1 -0
- package/dist/ketchup/{p-924b841b.js → p-84b511e1.js} +1 -1
- package/dist/ketchup/{p-9a856951.js → p-8d4050ec.js} +4 -4
- package/dist/ketchup/{p-1474852d.entry.js → p-9e2533e1.entry.js} +1 -1
- package/dist/ketchup/{p-c6b34763.entry.js → p-a06974a3.entry.js} +1 -1
- package/dist/ketchup/p-a6beb822.js +1 -0
- package/dist/ketchup/p-abe181d0.entry.js +1 -0
- package/dist/ketchup/{p-ba0f28b7.js → p-b3540f83.js} +1 -1
- package/dist/ketchup/{p-b6a21b6a.entry.js → p-c702eb45.entry.js} +1 -1
- package/dist/ketchup/{p-090e5097.entry.js → p-ccb6dbb0.entry.js} +1 -1
- package/dist/ketchup/{p-d839ce21.entry.js → p-cf44485a.entry.js} +2 -2
- package/dist/ketchup/p-d2001dec.entry.js +44 -0
- package/dist/ketchup/{p-e508b2fd.entry.js → p-dbb6cd8d.entry.js} +1 -1
- package/dist/ketchup/p-eb8ea3a6.js +1 -0
- package/dist/ketchup/{p-590c34bc.js → p-f6c8f006.js} +1 -1
- package/dist/ketchup/{p-4c100286.entry.js → p-f79ffe77.entry.js} +1 -1
- package/dist/ketchup/{p-31c0cfc0.entry.js → p-fdcfaedd.entry.js} +1 -1
- package/dist/ketchup/p-fe75ede2.entry.js +1 -0
- package/dist/types/components/kup-image-list/kup-image-list.d.ts +1 -1
- package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +81 -0
- package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +67 -0
- package/dist/types/components/kup-pdf/kup-pdf-declarations.d.ts +7 -0
- package/dist/types/components/kup-pdf/kup-pdf.d.ts +42 -0
- package/dist/types/components/kup-planner/kup-planner-declarations.d.ts +29 -2
- package/dist/types/components/kup-planner/kup-planner-helper.d.ts +2 -1
- package/dist/types/components/kup-planner/kup-planner.d.ts +38 -0
- package/dist/types/components/kup-planner/utils/custom-task-list-table.d.ts +7 -0
- package/dist/types/components/kup-planner/utils/helpers/bar.helpers.d.ts +1 -1
- package/dist/types/components/kup-planner/utils/helpers/other.helpers.d.ts +1 -0
- package/dist/types/components/kup-planner/utils/kup-gantt/kup-gantt.d.ts +6 -0
- package/dist/types/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.d.ts +1 -0
- package/dist/types/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.d.ts +13 -1
- package/dist/types/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.d.ts +7 -0
- package/dist/types/components/kup-planner/utils/kup-planner-renderer-helper.d.ts +6 -2
- package/dist/types/components/kup-planner/utils/kup-planner-renderer.d.ts +1 -0
- package/dist/types/components/kup-planner/utils/kup-switcher/kup-switcher.d.ts +3 -1
- package/dist/types/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.d.ts +1 -0
- package/dist/types/components/kup-planner/utils/kup-task-list/kup-task-list.d.ts +4 -0
- package/dist/types/components.d.ts +266 -2
- package/dist/types/types/GenericTypes.d.ts +1 -0
- package/package.json +2 -1
- package/dist/components/kup-planner-renderer-helper.js +0 -379
- package/dist/ketchup/p-21351b19.entry.js +0 -1
- package/dist/ketchup/p-2b40d9b9.entry.js +0 -1
- package/dist/ketchup/p-5c79cb74.js +0 -1
- package/dist/ketchup/p-670354ef.entry.js +0 -1
- package/dist/ketchup/p-8e3b6de8.js +0 -1
- package/dist/ketchup/p-935f58fc.js +0 -1
- package/dist/ketchup/p-9852b1e9.js +0 -1
- package/dist/ketchup/p-ca42a421.entry.js +0 -16
- package/dist/ketchup/p-d50515f7.js +0 -1
- package/dist/ketchup/p-e841c2ae.js +0 -1
- package/dist/ketchup/p-ec4050e1.entry.js +0 -1
|
@@ -131,6 +131,84 @@
|
|
|
131
131
|
margin-right: 10px;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
+
.scrollable {
|
|
135
|
+
overflow-x: auto;
|
|
136
|
+
scrollbar-width: 0;
|
|
137
|
+
}
|
|
138
|
+
.scrollable .project-wrapper {
|
|
139
|
+
display: table;
|
|
140
|
+
}
|
|
141
|
+
.scrollable .project {
|
|
142
|
+
width: 100% !important;
|
|
143
|
+
display: table-row;
|
|
144
|
+
}
|
|
145
|
+
.scrollable .project > * {
|
|
146
|
+
overflow: unset;
|
|
147
|
+
padding-right: 10px;
|
|
148
|
+
display: table-cell;
|
|
149
|
+
vertical-align: middle;
|
|
150
|
+
border-bottom: 1px solid var(--kup-border-color, #acacac);
|
|
151
|
+
border-top: 1px solid var(--kup-border-color, #acacac);
|
|
152
|
+
padding-left: 12px;
|
|
153
|
+
}
|
|
154
|
+
.scrollable .project > *:first-child {
|
|
155
|
+
border-left: 1px solid var(--kup-border-color, #acacac);
|
|
156
|
+
border-bottom-left-radius: 4px;
|
|
157
|
+
border-top-left-radius: 4px;
|
|
158
|
+
}
|
|
159
|
+
.scrollable .project > *:last-child {
|
|
160
|
+
border-right: 1px solid var(--kup-border-color, #acacac);
|
|
161
|
+
border-bottom-right-radius: 4px;
|
|
162
|
+
border-top-right-radius: 4px;
|
|
163
|
+
}
|
|
164
|
+
.scrollable .subrow {
|
|
165
|
+
width: 100% !important;
|
|
166
|
+
display: table-row;
|
|
167
|
+
}
|
|
168
|
+
.scrollable .subrow > * {
|
|
169
|
+
overflow: unset;
|
|
170
|
+
padding-right: 10px;
|
|
171
|
+
display: table-cell;
|
|
172
|
+
vertical-align: middle;
|
|
173
|
+
border-bottom: 1px solid #acacac;
|
|
174
|
+
border-top: 1px solid #acacac;
|
|
175
|
+
padding-left: 12px;
|
|
176
|
+
}
|
|
177
|
+
.scrollable .subrow > *:first-child {
|
|
178
|
+
border-left: 1px solid #acacac;
|
|
179
|
+
}
|
|
180
|
+
.scrollable .subrow > *:last-child {
|
|
181
|
+
border-right: 1px solid #acacac;
|
|
182
|
+
}
|
|
183
|
+
.scrollable .timeline {
|
|
184
|
+
width: 100% !important;
|
|
185
|
+
display: table-row;
|
|
186
|
+
}
|
|
187
|
+
.scrollable .timeline > * {
|
|
188
|
+
overflow: unset;
|
|
189
|
+
padding-right: 10px;
|
|
190
|
+
display: table-cell;
|
|
191
|
+
vertical-align: middle;
|
|
192
|
+
border-bottom: 1px solid #acacac;
|
|
193
|
+
border-top: 1px solid #acacac;
|
|
194
|
+
padding-left: 12px;
|
|
195
|
+
}
|
|
196
|
+
.scrollable .timeline > *:first-child {
|
|
197
|
+
border-left: 1px solid #acacac;
|
|
198
|
+
}
|
|
199
|
+
.scrollable .timeline > *:last-child {
|
|
200
|
+
border-right: 1px solid #acacac;
|
|
201
|
+
}
|
|
202
|
+
.scrollable .project:has(+ .subrow) > * {
|
|
203
|
+
border-bottom-left-radius: 0;
|
|
204
|
+
border-bottom-right-radius: 0;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.scrollable::-webkit-scrollbar {
|
|
208
|
+
width: 0;
|
|
209
|
+
height: 0;
|
|
210
|
+
}
|
|
211
|
+
|
|
134
212
|
.project {
|
|
135
213
|
background: var(--kup-background-color, #ffffff);
|
|
136
214
|
border: 1px solid var(--kup-border-color, #acacac);
|
|
@@ -183,8 +261,8 @@
|
|
|
183
261
|
|
|
184
262
|
.subrow:has(+ .subrow),
|
|
185
263
|
.project:has(+ .subrow) {
|
|
186
|
-
border-bottom-left-radius: 0;
|
|
187
|
-
border-bottom-right-radius: 0;
|
|
264
|
+
border-bottom-left-radius: 0 !important;
|
|
265
|
+
border-bottom-right-radius: 0 !important;
|
|
188
266
|
}
|
|
189
267
|
|
|
190
268
|
.timeline {
|
|
@@ -29,16 +29,16 @@ const convertToBarTask = (task, index, dates, columnWidth, rowHeight, taskHeight
|
|
|
29
29
|
}
|
|
30
30
|
return barTask;
|
|
31
31
|
};
|
|
32
|
-
function computeTypeAndXs(start, end, type, dates, columnWidth, handleWidth, rtl) {
|
|
32
|
+
function computeTypeAndXs(start, end, type, dates, columnWidth, handleWidth, rtl, startHour, endHour) {
|
|
33
33
|
let x1;
|
|
34
34
|
let x2;
|
|
35
35
|
if (rtl) {
|
|
36
|
-
x2 = taskXCoordinateRTL(start, dates, columnWidth);
|
|
37
|
-
x1 = taskXCoordinateRTL(end, dates, columnWidth);
|
|
36
|
+
x2 = taskXCoordinateRTL(start, dates, columnWidth, startHour);
|
|
37
|
+
x1 = taskXCoordinateRTL(end, dates, columnWidth, endHour);
|
|
38
38
|
}
|
|
39
39
|
else {
|
|
40
|
-
x1 = taskXCoordinate(start, dates, columnWidth);
|
|
41
|
-
x2 = taskXCoordinate(end, dates, columnWidth);
|
|
40
|
+
x1 = taskXCoordinate(start, dates, columnWidth, startHour);
|
|
41
|
+
x2 = taskXCoordinate(end, dates, columnWidth, endHour);
|
|
42
42
|
}
|
|
43
43
|
let typeInternal = type;
|
|
44
44
|
if (typeInternal === 'task' && x2 - x1 < handleWidth * 2) {
|
|
@@ -48,9 +48,9 @@ function computeTypeAndXs(start, end, type, dates, columnWidth, handleWidth, rtl
|
|
|
48
48
|
return { x1, x2, typeInternal };
|
|
49
49
|
}
|
|
50
50
|
const convertToBar = (task, index, dates, columnWidth, rowHeight, taskHeight, barCornerRadius, handleWidth, rtl, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, showSecondaryDates) => {
|
|
51
|
-
const { x1, x2, typeInternal } = computeTypeAndXs(task.start, task.end, task.type, dates, columnWidth, handleWidth, rtl);
|
|
51
|
+
const { x1, x2, typeInternal } = computeTypeAndXs(task.start, task.end, task.type, dates, columnWidth, handleWidth, rtl, task.startHour, task.endHour);
|
|
52
52
|
const { x1: x1secondary, x2: x2secondary } = showSecondaryDates && task.secondaryStart && task.secondaryEnd
|
|
53
|
-
? computeTypeAndXs(task.secondaryStart, task.secondaryEnd, task.type, dates, columnWidth, handleWidth, rtl)
|
|
53
|
+
? computeTypeAndXs(task.secondaryStart, task.secondaryEnd, task.type, dates, columnWidth, handleWidth, rtl, task.secondaryStartHour, task.secondaryEndHour)
|
|
54
54
|
: { x1: undefined, x2: undefined };
|
|
55
55
|
const [progressWidth, progressX] = progressWithByParams(x1, x2, task.progress, rtl);
|
|
56
56
|
const y = taskYCoordinate(index, rowHeight, taskHeight);
|
|
@@ -67,7 +67,7 @@ const convertToBar = (task, index, dates, columnWidth, rowHeight, taskHeight, ba
|
|
|
67
67
|
progressWidth,
|
|
68
68
|
barCornerRadius,
|
|
69
69
|
handleWidth,
|
|
70
|
-
hideChildren, height: taskHeight, barChildren: [], styles });
|
|
70
|
+
hideChildren, height: taskHeight, barChildren: [], styles, ySecondary: y });
|
|
71
71
|
};
|
|
72
72
|
const defaultStyles = (styles) => {
|
|
73
73
|
var _a, _b, _c, _d;
|
|
@@ -124,7 +124,13 @@ const convertToTimeline = (task, index, dates, columnWidth, rowHeight, taskHeigh
|
|
|
124
124
|
index, progressX: 0, progressWidth: 0, barCornerRadius,
|
|
125
125
|
handleWidth, typeInternal: task.type, progress: 0, height: taskHeight, hideChildren: undefined, barChildren: children !== null && children !== void 0 ? children : [], styles: defaultStyles(task.styles) });
|
|
126
126
|
};
|
|
127
|
-
const taskXCoordinate = (xDate, dates, columnWidth) => {
|
|
127
|
+
const taskXCoordinate = (xDate, dates, columnWidth, hourString) => {
|
|
128
|
+
if (hourString) {
|
|
129
|
+
const [hours, minutes, seconds] = hourString.split(':').map(Number);
|
|
130
|
+
xDate.setHours(hours !== null && hours !== void 0 ? hours : 0);
|
|
131
|
+
xDate.setMinutes(minutes !== null && minutes !== void 0 ? minutes : 0);
|
|
132
|
+
xDate.setSeconds(seconds !== null && seconds !== void 0 ? seconds : 0);
|
|
133
|
+
}
|
|
128
134
|
const index = dates.findIndex((d) => d.getTime() >= xDate.getTime()) - 1;
|
|
129
135
|
if (index < 0) {
|
|
130
136
|
return 0;
|
|
@@ -134,8 +140,8 @@ const taskXCoordinate = (xDate, dates, columnWidth) => {
|
|
|
134
140
|
const x = index * columnWidth + percentOfInterval * columnWidth;
|
|
135
141
|
return x;
|
|
136
142
|
};
|
|
137
|
-
const taskXCoordinateRTL = (xDate, dates, columnWidth) => {
|
|
138
|
-
let x = taskXCoordinate(xDate, dates, columnWidth);
|
|
143
|
+
const taskXCoordinateRTL = (xDate, dates, columnWidth, hourString) => {
|
|
144
|
+
let x = taskXCoordinate(xDate, dates, columnWidth, hourString);
|
|
139
145
|
x += columnWidth;
|
|
140
146
|
return x;
|
|
141
147
|
};
|
|
@@ -228,11 +234,24 @@ const dateByX = (x, taskX, taskDate, xStep, timeStep) => {
|
|
|
228
234
|
(newDate.getTimezoneOffset() - taskDate.getTimezoneOffset()) * 60000);
|
|
229
235
|
return newDate;
|
|
230
236
|
};
|
|
237
|
+
const hourStringFromDate = (date, withSeconds) => {
|
|
238
|
+
const hours = date.getHours();
|
|
239
|
+
const minutes = date.getMinutes();
|
|
240
|
+
const seconds = date.getSeconds();
|
|
241
|
+
const formattedHours = hours < 10 ? '0' + hours : hours;
|
|
242
|
+
const formattedMinutes = minutes < 10 ? '0' + minutes : minutes;
|
|
243
|
+
const formattedSeconds = seconds < 10 ? '0' + seconds : seconds;
|
|
244
|
+
const hourString = withSeconds ? `${formattedHours}:${formattedMinutes}:${formattedSeconds}` : `${formattedHours}:${formattedMinutes}`;
|
|
245
|
+
return hourString;
|
|
246
|
+
};
|
|
247
|
+
const hasSeconds = (hourString) => {
|
|
248
|
+
return hourString.split(":").length === 3;
|
|
249
|
+
};
|
|
231
250
|
/**
|
|
232
251
|
* Method handles event in real time(mousemove) and on finish(mouseup)
|
|
233
252
|
*/
|
|
234
|
-
export const handleTaskBySVGMouseEvent = (svgX, action, selectedTask, xStep, timeStep, initEventX1Delta, rtl) => handleTaskBySVGMouseEventForBar(svgX, action, selectedTask, xStep, timeStep, initEventX1Delta, rtl);
|
|
235
|
-
const handleTaskBySVGMouseEventForBar = (svgX, action, selectedTask, xStep, timeStep, initEventX1Delta, rtl) => {
|
|
253
|
+
export const handleTaskBySVGMouseEvent = (svgX, action, selectedTask, xStep, timeStep, initEventX1Delta, rtl, svgY) => handleTaskBySVGMouseEventForBar(svgX, action, selectedTask, xStep, timeStep, initEventX1Delta, rtl, svgY);
|
|
254
|
+
const handleTaskBySVGMouseEventForBar = (svgX, action, selectedTask, xStep, timeStep, initEventX1Delta, rtl, svgY) => {
|
|
236
255
|
const changedTask = Object.assign({}, selectedTask);
|
|
237
256
|
let isChanged = false;
|
|
238
257
|
switch (action) {
|
|
@@ -257,9 +276,11 @@ const handleTaskBySVGMouseEventForBar = (svgX, action, selectedTask, xStep, time
|
|
|
257
276
|
if (isChanged) {
|
|
258
277
|
if (rtl) {
|
|
259
278
|
changedTask.end = dateByX(newX1, selectedTask.x1, selectedTask.end, xStep, timeStep);
|
|
279
|
+
changedTask.endHour && (changedTask.endHour = hourStringFromDate(changedTask.end, hasSeconds(changedTask.endHour)));
|
|
260
280
|
}
|
|
261
281
|
else {
|
|
262
282
|
changedTask.start = dateByX(newX1, selectedTask.x1, selectedTask.start, xStep, timeStep);
|
|
283
|
+
changedTask.startHour && (changedTask.startHour = hourStringFromDate(changedTask.start, hasSeconds(changedTask.startHour)));
|
|
263
284
|
}
|
|
264
285
|
const [progressWidth, progressX] = progressWithByParams(changedTask.x1, changedTask.x2, changedTask.progress, rtl);
|
|
265
286
|
changedTask.progressWidth = progressWidth;
|
|
@@ -274,9 +295,11 @@ const handleTaskBySVGMouseEventForBar = (svgX, action, selectedTask, xStep, time
|
|
|
274
295
|
if (isChanged) {
|
|
275
296
|
if (rtl) {
|
|
276
297
|
changedTask.start = dateByX(newX2, selectedTask.x2, selectedTask.start, xStep, timeStep);
|
|
298
|
+
changedTask.startHour && (changedTask.startHour = hourStringFromDate(changedTask.start, hasSeconds(changedTask.startHour)));
|
|
277
299
|
}
|
|
278
300
|
else {
|
|
279
301
|
changedTask.end = dateByX(newX2, selectedTask.x2, selectedTask.end, xStep, timeStep);
|
|
302
|
+
changedTask.endHour && (changedTask.endHour = hourStringFromDate(changedTask.end, hasSeconds(changedTask.endHour)));
|
|
280
303
|
}
|
|
281
304
|
const [progressWidth, progressX] = progressWithByParams(changedTask.x1, changedTask.x2, changedTask.progress, rtl);
|
|
282
305
|
changedTask.progressWidth = progressWidth;
|
|
@@ -290,11 +313,16 @@ const handleTaskBySVGMouseEventForBar = (svgX, action, selectedTask, xStep, time
|
|
|
290
313
|
if (isChanged) {
|
|
291
314
|
changedTask.start = dateByX(newMoveX1, selectedTask.x1, selectedTask.start, xStep, timeStep);
|
|
292
315
|
changedTask.end = dateByX(newMoveX2, selectedTask.x2, selectedTask.end, xStep, timeStep);
|
|
316
|
+
changedTask.startHour && (changedTask.startHour = hourStringFromDate(changedTask.start, hasSeconds(changedTask.startHour)));
|
|
317
|
+
changedTask.endHour && (changedTask.endHour = hourStringFromDate(changedTask.end, hasSeconds(changedTask.endHour)));
|
|
293
318
|
changedTask.x1 = newMoveX1;
|
|
294
319
|
changedTask.x2 = newMoveX2;
|
|
295
320
|
const [progressWidth, progressX] = progressWithByParams(changedTask.x1, changedTask.x2, changedTask.progress, rtl);
|
|
296
321
|
changedTask.progressWidth = progressWidth;
|
|
297
322
|
changedTask.progressX = progressX;
|
|
323
|
+
if (changedTask.type === 'task') {
|
|
324
|
+
changedTask.y = svgY;
|
|
325
|
+
}
|
|
298
326
|
}
|
|
299
327
|
break;
|
|
300
328
|
}
|
|
@@ -156,6 +156,16 @@
|
|
|
156
156
|
overflow: hidden;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
+
.horizontalContainerScrollable {
|
|
160
|
+
overflow: auto !important;
|
|
161
|
+
scrollbar-width: 0;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.horizontalContainerScrollable::-webkit-scrollbar {
|
|
165
|
+
width: 0;
|
|
166
|
+
height: 0;
|
|
167
|
+
}
|
|
168
|
+
|
|
159
169
|
.task-gantt {
|
|
160
170
|
overflow: hidden;
|
|
161
171
|
}
|
|
@@ -9,7 +9,7 @@ export class KupGantt {
|
|
|
9
9
|
this.tasks = undefined;
|
|
10
10
|
this.headerHeight = 114;
|
|
11
11
|
this.columnWidth = 60;
|
|
12
|
-
this.listCellWidth = '
|
|
12
|
+
this.listCellWidth = '300px';
|
|
13
13
|
this.rowHeight = 50;
|
|
14
14
|
this.filter = undefined;
|
|
15
15
|
this.ganttHeight = 0;
|
|
@@ -54,6 +54,7 @@ export class KupGantt {
|
|
|
54
54
|
this.currentTasks = [];
|
|
55
55
|
this.label = undefined;
|
|
56
56
|
this.doubleView = undefined;
|
|
57
|
+
this.scrollableTaskList = undefined;
|
|
57
58
|
this.setDoubleView = undefined;
|
|
58
59
|
this.barContextMenu = undefined;
|
|
59
60
|
this.scrollXChange = undefined;
|
|
@@ -72,6 +73,7 @@ export class KupGantt {
|
|
|
72
73
|
this.doubleClick = undefined;
|
|
73
74
|
this.delete = undefined;
|
|
74
75
|
this.expanderClick = undefined;
|
|
76
|
+
this.phaseDrop = undefined;
|
|
75
77
|
this.wrapperRef = undefined;
|
|
76
78
|
this.taskGanttRef = null;
|
|
77
79
|
this.taskListRef = undefined;
|
|
@@ -93,6 +95,8 @@ export class KupGantt {
|
|
|
93
95
|
this.ignoreScrollEvent = false;
|
|
94
96
|
this.currentDateIndicatorContent = undefined;
|
|
95
97
|
this.projectionContent = undefined;
|
|
98
|
+
this.taskListScrollWidth = undefined;
|
|
99
|
+
this.taskListScrollX = 0;
|
|
96
100
|
}
|
|
97
101
|
//---- Lifecycle hooks ----
|
|
98
102
|
componentWillLoad() {
|
|
@@ -271,6 +275,7 @@ export class KupGantt {
|
|
|
271
275
|
newScrollX = this.svgWidth;
|
|
272
276
|
}
|
|
273
277
|
this.scrollX = newScrollX;
|
|
278
|
+
// this.taskListScrollX = newScrollX;
|
|
274
279
|
window.dispatchEvent(new CustomEvent('gantt-sync-scroll-event', {
|
|
275
280
|
detail: {
|
|
276
281
|
componentId: this.ganttId,
|
|
@@ -469,6 +474,13 @@ export class KupGantt {
|
|
|
469
474
|
this.expanderClick(Object.assign(Object.assign({}, task), { hideChildren: !task.hideChildren }));
|
|
470
475
|
}
|
|
471
476
|
}
|
|
477
|
+
handleTaskListScrollX(event) {
|
|
478
|
+
const currentTarget = event.currentTarget;
|
|
479
|
+
this.taskListScrollX = currentTarget.scrollLeft;
|
|
480
|
+
}
|
|
481
|
+
handlePhaseDragScroll(scrollY) {
|
|
482
|
+
this.scrollY = scrollY;
|
|
483
|
+
}
|
|
472
484
|
setFailedTask(task) {
|
|
473
485
|
this.failedTask = task;
|
|
474
486
|
}
|
|
@@ -530,6 +542,7 @@ export class KupGantt {
|
|
|
530
542
|
barDblClick: this.barDblClick,
|
|
531
543
|
barContextMenu: this.barContextMenu,
|
|
532
544
|
delete: this.delete,
|
|
545
|
+
phaseDrop: this.phaseDrop
|
|
533
546
|
};
|
|
534
547
|
const tableProps = {
|
|
535
548
|
rowHeight: this.rowHeight,
|
|
@@ -548,9 +561,11 @@ export class KupGantt {
|
|
|
548
561
|
setSelectedTask: this.handleSelectedTask.bind(this),
|
|
549
562
|
expanderClick: this.handleExpanderClick.bind(this),
|
|
550
563
|
TaskListHeader: this.TaskListHeader,
|
|
551
|
-
TaskListTable: this.TaskListTable
|
|
564
|
+
TaskListTable: this.TaskListTable
|
|
552
565
|
};
|
|
553
|
-
return (h("div", { key: '
|
|
566
|
+
return (h("div", { key: 'd2628cb4c523eadcbfa97d83cad48ca0aa817fcb', class: "gannt-wrapper-main" }, h("div", { key: '3b336bd6595402bbb1b3ff87524d74286f63b1bc', class: "wrapper", onKeyDown: this.handleKeyDown.bind(this), tabIndex: 0, ref: (el) => (this.wrapperRef = el) }, this.listCellWidth && (h("kup-task-list", Object.assign({ currentTasks: this.currentTasks, handleClick: this.handleClick, handleDblClick: this.handleDblClick, handleContextMenu: this.handleContextMenu, ganttOnClick: this.ganttOnClick, ganttOnDblClick: this.ganttOnDblClick, ganttonOnContextMenu: this.ganttonOnContextMenu, label: this.label, doubleView: this.doubleView, setDoubleView: this.setDoubleView }, tableProps, { class: "tasks", scrollableTaskList: this.scrollableTaskList, updateTaskListScrollX: this.ignoreScrollEvent, ontaskListScrollWidth: (width) => {
|
|
567
|
+
this.taskListScrollWidth = width;
|
|
568
|
+
}, taskListScrollX: this.taskListScrollX, ref: (el) => (this.taskListTrueRef = el) }))), h("kup-task-gantt", { key: 'b887edfe9460338576ccc2868f39eef9f8c41e2a', gridProps: gridProps, calendarProps: calendarProps, barProps: barProps, ganttHeight: this.ganttHeight, taskGanttRef: this.taskGanttRef, scrollY: this.scrollY, scrollX: this.scrollX, phaseDragScroll: this.handlePhaseDragScroll.bind(this), class: "ganttContainer" }), this.ganttEvent.changedTask && (h("kup-tooltip", { arrowIndent: this.arrowIndent, rowHeight: this.rowHeight, svgContainerHeight: this.svgContainerHeight, svgContainerWidth: this.svgContainerWidth, fontFamily: this.fontFamily, fontSize: this.fontSize, scrollX: this.scrollX, scrollY: this.scrollY, task: this.ganttEvent.changedTask, headerHeight: this.headerHeight, taskListWidth: this.taskListWidth, TooltipContent: this.TooltipContent, rtl: this.rtl, svgWidth: this.svgWidth })), h("kup-vertical-scroll", { key: 'ab50bf33585da01c741255df86328c9fd3c10a4a', ganttFullHeight: this.ganttFullHeight, ganttHeight: this.ganttHeight, headerHeight: this.headerHeight, scrollNumber: this.scrollY, verticalScroll: this.handleScrollY.bind(this), rtl: this.rtl })), this.taskGanttRef && (h("kup-horizontal-scroll", { svgWidth: this.svgWidth, taskListTrueRef: this.taskListTrueRef, taskListWidth: this.taskListWidth, scrollNumber: this.scrollX, rtl: this.rtl, horizontalScroll: this.handleScrollX.bind(this), horizontalTaskListScroll: this.handleTaskListScrollX.bind(this), listCellWidth: this.listCellWidth, scrollableTaskList: this.scrollableTaskList, taskListScrollWidth: this.taskListScrollWidth, taskListScrollNumber: this.taskListScrollX }))));
|
|
554
569
|
}
|
|
555
570
|
static get is() { return "kup-gantt"; }
|
|
556
571
|
static get originalStyleUrls() {
|
|
@@ -679,7 +694,7 @@ export class KupGantt {
|
|
|
679
694
|
},
|
|
680
695
|
"attribute": "list-cell-width",
|
|
681
696
|
"reflect": false,
|
|
682
|
-
"defaultValue": "'
|
|
697
|
+
"defaultValue": "'300px'"
|
|
683
698
|
},
|
|
684
699
|
"rowHeight": {
|
|
685
700
|
"type": "number",
|
|
@@ -755,7 +770,7 @@ export class KupGantt {
|
|
|
755
770
|
"mutable": false,
|
|
756
771
|
"complexType": {
|
|
757
772
|
"original": "KupPlannerGanttProps['viewMode']",
|
|
758
|
-
"resolved": "\"day\" | \"month\" | \"week\" | \"year\"",
|
|
773
|
+
"resolved": "\"day\" | \"hour\" | \"month\" | \"week\" | \"year\"",
|
|
759
774
|
"references": {
|
|
760
775
|
"KupPlannerGanttProps": {
|
|
761
776
|
"location": "import",
|
|
@@ -1701,6 +1716,23 @@ export class KupGantt {
|
|
|
1701
1716
|
"attribute": "double-view",
|
|
1702
1717
|
"reflect": false
|
|
1703
1718
|
},
|
|
1719
|
+
"scrollableTaskList": {
|
|
1720
|
+
"type": "boolean",
|
|
1721
|
+
"mutable": false,
|
|
1722
|
+
"complexType": {
|
|
1723
|
+
"original": "boolean",
|
|
1724
|
+
"resolved": "boolean",
|
|
1725
|
+
"references": {}
|
|
1726
|
+
},
|
|
1727
|
+
"required": false,
|
|
1728
|
+
"optional": true,
|
|
1729
|
+
"docs": {
|
|
1730
|
+
"tags": [],
|
|
1731
|
+
"text": ""
|
|
1732
|
+
},
|
|
1733
|
+
"attribute": "scrollable-task-list",
|
|
1734
|
+
"reflect": false
|
|
1735
|
+
},
|
|
1704
1736
|
"setDoubleView": {
|
|
1705
1737
|
"type": "unknown",
|
|
1706
1738
|
"mutable": false,
|
|
@@ -2076,6 +2108,27 @@ export class KupGantt {
|
|
|
2076
2108
|
"tags": [],
|
|
2077
2109
|
"text": ""
|
|
2078
2110
|
}
|
|
2111
|
+
},
|
|
2112
|
+
"phaseDrop": {
|
|
2113
|
+
"type": "unknown",
|
|
2114
|
+
"mutable": false,
|
|
2115
|
+
"complexType": {
|
|
2116
|
+
"original": "KupPlannerGanttProps['phaseDrop']",
|
|
2117
|
+
"resolved": "(originalPhaseData: KupPlannerTask, originalTaskData: KupPlannerTask, finalPhaseData: KupPlannerTask, destinationData: KupPlannerTask) => boolean | void | Promise<boolean> | Promise<void>",
|
|
2118
|
+
"references": {
|
|
2119
|
+
"KupPlannerGanttProps": {
|
|
2120
|
+
"location": "import",
|
|
2121
|
+
"path": "../../kup-planner-declarations",
|
|
2122
|
+
"id": "src/components/kup-planner/kup-planner-declarations.ts::KupPlannerGanttProps"
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
},
|
|
2126
|
+
"required": false,
|
|
2127
|
+
"optional": false,
|
|
2128
|
+
"docs": {
|
|
2129
|
+
"tags": [],
|
|
2130
|
+
"text": ""
|
|
2131
|
+
}
|
|
2079
2132
|
}
|
|
2080
2133
|
};
|
|
2081
2134
|
}
|
|
@@ -2101,7 +2154,9 @@ export class KupGantt {
|
|
|
2101
2154
|
"scrollY": {},
|
|
2102
2155
|
"ignoreScrollEvent": {},
|
|
2103
2156
|
"currentDateIndicatorContent": {},
|
|
2104
|
-
"projectionContent": {}
|
|
2157
|
+
"projectionContent": {},
|
|
2158
|
+
"taskListScrollWidth": {},
|
|
2159
|
+
"taskListScrollX": {}
|
|
2105
2160
|
};
|
|
2106
2161
|
}
|
|
2107
2162
|
static get methods() {
|
package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { getDaysInMonth, defaultDateTimeFormatters, } from "../kup-planner-time-formatter";
|
|
2
|
+
import { getDaysInMonth, defaultDateTimeFormatters, getCachedDateTimeFormat, getLocalDayOfWeek, getLocaleMonth, } from "../kup-planner-time-formatter";
|
|
3
3
|
export class KupGanttCalendar {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.dateSetup = undefined;
|
|
@@ -177,8 +177,38 @@ export class KupGanttCalendar {
|
|
|
177
177
|
}
|
|
178
178
|
return [topValues, bottomValues];
|
|
179
179
|
}
|
|
180
|
+
getCalendarValuesForHour() {
|
|
181
|
+
const topValues = [];
|
|
182
|
+
const bottomValues = [];
|
|
183
|
+
const topDefaultHeight = this.headerHeight * 0.5;
|
|
184
|
+
const dates = this.dateSetup.dates;
|
|
185
|
+
for (let i = 0; i < dates.length; i++) {
|
|
186
|
+
const date = dates[i];
|
|
187
|
+
const bottomValue = getCachedDateTimeFormat(this.locale, {
|
|
188
|
+
hour: 'numeric',
|
|
189
|
+
}).format(date);
|
|
190
|
+
bottomValues.push(h("text", { key: date.getTime(), y: this.headerHeight * 0.8, x: this.columnWidth * (i + +this.rtl), class: "calendarBottomText" }, bottomValue));
|
|
191
|
+
if (i !== 0 && date.getDate() !== dates[i - 1].getDate()) {
|
|
192
|
+
const displayDate = dates[i - 1];
|
|
193
|
+
const topValue = `${getLocalDayOfWeek(displayDate, this.locale, 'long')}, ${displayDate.getDate()} ${getLocaleMonth(displayDate, this.locale)}`;
|
|
194
|
+
const topPosition = (date.getHours() - 24) / 2;
|
|
195
|
+
topValues.push({
|
|
196
|
+
key: topValue + date.getFullYear(),
|
|
197
|
+
value: topValue,
|
|
198
|
+
x1Line: this.columnWidth * i,
|
|
199
|
+
y1Line: 0,
|
|
200
|
+
y2Line: topDefaultHeight,
|
|
201
|
+
xText: this.columnWidth * (i + topPosition),
|
|
202
|
+
yText: topDefaultHeight * 0.9,
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
return [topValues, bottomValues];
|
|
207
|
+
}
|
|
180
208
|
getTopAndBottomValues() {
|
|
181
209
|
switch (this.dateSetup.viewMode) {
|
|
210
|
+
case 'hour':
|
|
211
|
+
return this.getCalendarValuesForHour();
|
|
182
212
|
case 'day':
|
|
183
213
|
return this.getCalendarValuesForDay();
|
|
184
214
|
case 'week':
|
|
@@ -195,7 +225,7 @@ export class KupGanttCalendar {
|
|
|
195
225
|
this.simplifiedHeader =
|
|
196
226
|
this.singleLineHeader && this.dateSetup.viewMode !== 'year';
|
|
197
227
|
const [topValues, bottomValues] = this.getTopAndBottomValues();
|
|
198
|
-
return (h("svg", { key: '
|
|
228
|
+
return (h("svg", { key: '7a19cec75e555a4fd92acca667c464df43370468', xmlns: "http://www.w3.org/2000/svg", width: this.svgWidth, height: this.headerHeight }, h("g", { key: 'a7e72bfedfefae5813d339b99d78bf7138354ff5', class: "calendar", "font-size": this.fontSize, "font-family": this.fontFamily }, h("rect", { key: '34f50e350bd20b69fe0a7bfc4744b27dfeb27a12', x: 0, y: 0, width: this.columnWidth * this.dateSetup.dates.length, height: this.headerHeight, class: "calendarHeader" }), this.simplifiedHeader ? null : bottomValues, this.simplifiedHeader
|
|
199
229
|
? topValues.map((topValue) => (h("g", { class: "calendarTop" }, h("line", { x1: topValue.x1Line, y1: topValue.y2Line * 2, x2: topValue.x1Line, y2: topValue.y2Line, class: "calendarTopTick", key: topValue.value + 'line' }), h("text", { key: topValue.value + 'text', y: topValue.yText, x: topValue.xText, class: "calendarTopText" }, topValue.value))))
|
|
200
230
|
: topValues.map((topValue) => (h("g", { class: "calendarTop" }, h("line", { x1: topValue.x1Line, y1: topValue.y1Line, x2: topValue.x1Line, y2: topValue.y2Line, class: "calendarTopTick", key: topValue.value + 'line' }), h("text", { key: topValue.value + 'text', y: topValue.yText, x: topValue.xText, class: "calendarTopText" }, topValue.value)))), this.currentDateIndicator && (
|
|
201
231
|
// current date indicator
|