@sme.up/ketchup 9.6.2 → 9.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{f-button-4c346ca8.js → f-button-9a0eba42.js} +2 -2
- package/dist/cjs/{f-cell-8f3d12fd.js → f-cell-1ad41071.js} +51 -9
- package/dist/cjs/{f-checkbox-bfa92ebe.js → f-checkbox-1fa28e76.js} +1 -1
- package/dist/cjs/{f-chip-a6c800be.js → f-chip-48851b4f.js} +3 -3
- package/dist/cjs/{f-image-40476fa6.js → f-image-541e5f4d.js} +2 -2
- package/dist/cjs/{f-paginator-utils-c652ceaa.js → f-paginator-utils-8ff2a9b4.js} +7 -4
- package/dist/cjs/{f-text-field-1f77ef23.js → f-text-field-ac5d6497.js} +2 -2
- package/dist/cjs/{index-db0a6be6.js → index-958d0399.js} +21 -26
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +47 -46
- package/dist/cjs/kup-box.cjs.entry.js +60 -20
- package/dist/cjs/kup-calendar.cjs.entry.js +7 -7
- package/dist/cjs/kup-card-list.cjs.entry.js +4 -4
- package/dist/cjs/kup-cell.cjs.entry.js +10 -10
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +8 -8
- package/dist/cjs/kup-dashboard.cjs.entry.js +8 -8
- package/dist/cjs/{kup-dates-4aa560f0.js → kup-dates-b7d53b4d.js} +25 -8
- package/dist/cjs/kup-drawer.cjs.entry.js +4 -4
- package/dist/cjs/kup-echart.cjs.entry.js +4 -4
- package/dist/cjs/kup-editor.cjs.entry.js +3 -3
- package/dist/cjs/kup-family-tree.cjs.entry.js +6 -6
- package/dist/cjs/kup-gantt_10.cjs.entry.js +20 -14
- package/dist/cjs/kup-grid.cjs.entry.js +4 -4
- package/dist/cjs/kup-iframe.cjs.entry.js +4 -4
- package/dist/cjs/kup-image-list.cjs.entry.js +138 -50
- package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
- package/dist/cjs/kup-magic-box.cjs.entry.js +5 -5
- package/dist/cjs/{kup-manager-08f1585b.js → kup-manager-26a9154b.js} +631 -33
- package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -4
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +5 -5
- package/dist/cjs/kup-photo-frame.cjs.entry.js +4 -4
- package/dist/cjs/{kup-planner-renderer-helper-f0c869d7.js → kup-planner-renderer-helper-680bbd5a.js} +3 -23
- package/dist/cjs/kup-planner-renderer.cjs.entry.js +13 -6
- package/dist/cjs/kup-planner.cjs.entry.js +12 -6
- package/dist/cjs/kup-probe.cjs.entry.js +3 -3
- package/dist/cjs/kup-qlik.cjs.entry.js +4 -4
- package/dist/cjs/kup-snackbar.cjs.entry.js +6 -6
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/data-table.js +7 -2
- package/dist/collection/assets/image-list.js +20 -0
- package/dist/collection/assets/index.js +4 -0
- package/dist/collection/assets/planner-example-6.js +983 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/kup-accordion/kup-accordion.css +128 -0
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.css +128 -0
- package/dist/collection/components/kup-badge/kup-badge.css +128 -0
- package/dist/collection/components/kup-box/kup-box.css +128 -0
- package/dist/collection/components/kup-box/kup-box.js +49 -9
- package/dist/collection/components/kup-button/kup-button.css +128 -0
- package/dist/collection/components/kup-button-list/kup-button-list.css +128 -0
- package/dist/collection/components/kup-calendar/kup-calendar.css +128 -0
- package/dist/collection/components/kup-card/kup-card.css +128 -0
- package/dist/collection/components/kup-card-list/kup-card-list.css +128 -0
- package/dist/collection/components/kup-cell/kup-cell.css +128 -0
- package/dist/collection/components/kup-chart/kup-chart.css +128 -0
- package/dist/collection/components/kup-checkbox/kup-checkbox.css +128 -0
- package/dist/collection/components/kup-chip/kup-chip.css +128 -0
- package/dist/collection/components/kup-color-picker/kup-color-picker.css +128 -0
- package/dist/collection/components/kup-combobox/kup-combobox.css +128 -0
- package/dist/collection/components/kup-dashboard/kup-dashboard.css +128 -0
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -0
- package/dist/collection/components/kup-data-table/kup-data-table.css +133 -0
- package/dist/collection/components/kup-data-table/kup-data-table.js +28 -9
- package/dist/collection/components/kup-date-picker/kup-date-picker.css +128 -0
- package/dist/collection/components/kup-dialog/kup-dialog.css +128 -0
- package/dist/collection/components/kup-drawer/kup-drawer.css +128 -0
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +128 -0
- package/dist/collection/components/kup-echart/kup-echart.css +128 -0
- package/dist/collection/components/kup-family-tree/kup-family-tree.css +128 -0
- package/dist/collection/components/kup-form/kup-form.css +128 -0
- package/dist/collection/components/kup-gauge/kup-gauge.css +128 -0
- package/dist/collection/components/kup-grid/kup-grid.css +128 -0
- package/dist/collection/components/kup-iframe/kup-iframe.css +128 -0
- package/dist/collection/components/kup-image/kup-image.css +128 -0
- package/dist/collection/components/kup-image-list/kup-image-list-declarations.js +2 -0
- package/dist/collection/components/kup-image-list/kup-image-list.css +158 -18
- package/dist/collection/components/kup-image-list/kup-image-list.js +175 -46
- package/dist/collection/components/kup-lazy/kup-lazy.css +128 -0
- package/dist/collection/components/kup-list/kup-list.css +128 -0
- package/dist/collection/components/kup-magic-box/kup-magic-box.css +128 -0
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.css +128 -0
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.css +128 -0
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +128 -0
- package/dist/collection/components/kup-planner/kup-planner.css +128 -0
- package/dist/collection/components/kup-planner/kup-planner.js +7 -1
- package/dist/collection/components/kup-planner/utils/custom-task-list-header.module.css +128 -0
- package/dist/collection/components/kup-planner/utils/gantt-table.module.css +128 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.css +128 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +29 -2
- package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.css +128 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.css +128 -0
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css +128 -0
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer-helper.js +2 -22
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +37 -4
- package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.css +128 -0
- 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.css +128 -0
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.css +128 -0
- package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.css +128 -0
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.css +128 -0
- package/dist/collection/components/kup-qlik/kup-qlik.css +128 -0
- package/dist/collection/components/kup-radio/kup-radio.css +128 -0
- package/dist/collection/components/kup-rating/kup-rating.css +128 -0
- package/dist/collection/components/kup-snackbar/kup-snackbar.css +128 -0
- package/dist/collection/components/kup-spinner/kup-spinner.css +128 -0
- package/dist/collection/components/kup-switch/kup-switch.css +128 -0
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +128 -0
- package/dist/collection/components/kup-text-field/kup-text-field.css +128 -0
- package/dist/collection/components/kup-time-picker/kup-time-picker.css +128 -0
- package/dist/collection/components/kup-tree/kup-tree.css +128 -0
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +1 -0
- package/dist/collection/f-components/f-cell/f-cell.js +44 -2
- package/dist/collection/f-components/f-paginator/f-paginator.js +3 -0
- package/dist/collection/managers/kup-dates/kup-dates.js +18 -8
- package/dist/collection/managers/kup-interact/kup-interact.js +7 -0
- package/dist/collection/utils/cell-utils.js +2 -2
- package/dist/components/custom-task-list-header.js +1 -1
- package/dist/components/custom-task-list-table.js +1 -1
- package/dist/components/kup-accordion.js +1 -1
- package/dist/components/kup-autocomplete2.js +85 -38
- package/dist/components/kup-box2.js +50 -10
- package/dist/components/kup-calendar.js +1 -1
- package/dist/components/kup-card-list.js +1 -1
- package/dist/components/kup-cell.js +1 -1
- package/dist/components/kup-dashboard.js +1 -1
- package/dist/components/kup-dates.js +25 -8
- package/dist/components/kup-drawer.js +1 -1
- package/dist/components/kup-echart2.js +1 -1
- package/dist/components/kup-family-tree.js +1 -1
- package/dist/components/kup-gantt-calendar2.js +2 -2
- package/dist/components/kup-gantt2.js +11 -4
- package/dist/components/kup-grid-renderer2.js +1 -1
- package/dist/components/kup-grid2.js +1 -1
- package/dist/components/kup-horizontal-scroll2.js +1 -1
- package/dist/components/kup-iframe.js +1 -1
- package/dist/components/kup-image-list.js +132 -42
- package/dist/components/kup-lazy.js +1 -1
- package/dist/components/kup-magic-box.js +1 -1
- package/dist/components/kup-manager.js +629 -31
- package/dist/components/kup-nav-bar.js +1 -1
- package/dist/components/kup-numeric-picker.js +1 -1
- package/dist/components/kup-photo-frame.js +1 -1
- package/dist/components/kup-planner-renderer-helper.js +2 -22
- package/dist/components/kup-planner-renderer2.js +12 -4
- package/dist/components/kup-planner.js +8 -2
- 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 +1 -1
- package/dist/components/kup-task-list-header2.js +1 -1
- package/dist/components/kup-task-list-table2.js +2 -2
- package/dist/components/kup-task-list2.js +1 -1
- package/dist/components/kup-tooltip2.js +1 -1
- package/dist/components/kup-vertical-scroll2.js +1 -1
- package/dist/esm/{f-button-90a7ea86.js → f-button-45d690a5.js} +2 -2
- package/dist/esm/{f-cell-fdd338c5.js → f-cell-63db06db.js} +51 -9
- package/dist/esm/{f-checkbox-fdf27ce9.js → f-checkbox-ddb6234e.js} +1 -1
- package/dist/esm/{f-chip-4e6341a6.js → f-chip-f1ab6c5e.js} +3 -3
- package/dist/esm/{f-image-5210f0b3.js → f-image-8b382cc5.js} +2 -2
- package/dist/esm/{f-paginator-utils-3f179999.js → f-paginator-utils-ae563cd5.js} +7 -4
- package/dist/esm/{f-text-field-8429a853.js → f-text-field-b5fcb598.js} +2 -2
- package/dist/esm/{index-bbef9f2a.js → index-460631fd.js} +21 -26
- package/dist/esm/index.js +3 -3
- package/dist/esm/ketchup.js +4 -4
- package/dist/esm/kup-accordion.entry.js +5 -5
- package/dist/esm/kup-autocomplete_27.entry.js +47 -46
- package/dist/esm/kup-box.entry.js +60 -20
- package/dist/esm/kup-calendar.entry.js +7 -7
- package/dist/esm/kup-card-list.entry.js +4 -4
- package/dist/esm/kup-cell.entry.js +10 -10
- package/dist/esm/kup-custom-task-list-header_4.entry.js +8 -8
- package/dist/esm/kup-dashboard.entry.js +8 -8
- package/dist/esm/{kup-dates-172954df.js → kup-dates-4ad48be7.js} +25 -8
- package/dist/esm/kup-drawer.entry.js +4 -4
- package/dist/esm/kup-echart.entry.js +4 -4
- package/dist/esm/kup-editor.entry.js +3 -3
- package/dist/esm/kup-family-tree.entry.js +6 -6
- package/dist/esm/kup-gantt_10.entry.js +20 -14
- package/dist/esm/kup-grid.entry.js +4 -4
- package/dist/esm/kup-iframe.entry.js +4 -4
- package/dist/esm/kup-image-list.entry.js +138 -50
- package/dist/esm/kup-lazy.entry.js +4 -4
- package/dist/esm/kup-magic-box.entry.js +5 -5
- package/dist/esm/{kup-manager-8b39f876.js → kup-manager-cdb4f21a.js} +631 -33
- package/dist/esm/kup-nav-bar.entry.js +4 -4
- package/dist/esm/kup-numeric-picker.entry.js +5 -5
- package/dist/esm/kup-photo-frame.entry.js +4 -4
- package/dist/esm/{kup-planner-renderer-helper-5d97e075.js → kup-planner-renderer-helper-da0518be.js} +3 -23
- package/dist/esm/kup-planner-renderer.entry.js +13 -6
- package/dist/esm/kup-planner.entry.js +12 -6
- package/dist/esm/kup-probe.entry.js +3 -3
- package/dist/esm/kup-qlik.entry.js +4 -4
- package/dist/esm/kup-snackbar.entry.js +6 -6
- package/dist/esm/loader.js +3 -3
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-090e5097.entry.js +1 -0
- package/dist/ketchup/p-1474852d.entry.js +1 -0
- package/dist/ketchup/{p-ee30e274.entry.js → p-157f0e89.entry.js} +1 -1
- package/dist/ketchup/p-1cd48eea.entry.js +1 -0
- package/dist/ketchup/p-21351b19.entry.js +1 -0
- package/dist/ketchup/p-2b40d9b9.entry.js +1 -0
- package/dist/ketchup/p-31c0cfc0.entry.js +1 -0
- package/dist/ketchup/p-41e8402e.entry.js +1 -0
- package/dist/ketchup/p-47040db6.js +2 -0
- package/dist/ketchup/{p-82694fad.entry.js → p-4c100286.entry.js} +1 -1
- package/dist/ketchup/p-4dfc5927.entry.js +1 -0
- package/dist/ketchup/{p-35d503e2.js → p-590c34bc.js} +1 -1
- package/dist/ketchup/p-5c79cb74.js +1 -0
- package/dist/ketchup/p-670354ef.entry.js +1 -0
- package/dist/ketchup/p-837bd0a6.entry.js +1 -0
- package/dist/ketchup/p-935f58fc.js +1 -0
- package/dist/ketchup/{p-2778f948.js → p-9852b1e9.js} +1 -1
- package/dist/ketchup/p-9a856951.js +28 -0
- package/dist/ketchup/{p-86f9b0d9.js → p-a5074ce4.js} +1 -1
- package/dist/ketchup/p-ad6a3c2a.entry.js +1 -0
- package/dist/ketchup/p-b6a21b6a.entry.js +1 -0
- package/dist/ketchup/{p-5e16c9d3.js → p-ba0f28b7.js} +1 -1
- package/dist/ketchup/{p-f9766625.js → p-bedabdb5.js} +1 -1
- package/dist/ketchup/p-c6b34763.entry.js +1 -0
- package/dist/ketchup/p-ca42a421.entry.js +16 -0
- package/dist/ketchup/{p-4eb70dd2.entry.js → p-ca8a1f53.entry.js} +4 -4
- package/dist/ketchup/p-cbe42afd.entry.js +1 -0
- package/dist/ketchup/p-cc7352a8.entry.js +1 -0
- package/dist/ketchup/{p-c089b961.js → p-d50515f7.js} +1 -1
- package/dist/ketchup/p-d608f866.entry.js +1 -0
- package/dist/ketchup/p-d839ce21.entry.js +9 -0
- package/dist/ketchup/p-d9284d98.entry.js +1 -0
- package/dist/ketchup/p-e0a1fbe7.entry.js +1 -0
- package/dist/ketchup/p-e0c10de2.entry.js +1 -0
- package/dist/ketchup/{p-dc18691c.js → p-e2bf2bb6.js} +1 -1
- package/dist/ketchup/{p-4c20fefd.entry.js → p-e508b2fd.entry.js} +1 -1
- package/dist/ketchup/p-ec4050e1.entry.js +1 -0
- package/dist/types/components/kup-box/kup-box.d.ts +1 -0
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +1 -0
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +4 -0
- package/dist/types/components/kup-image-list/kup-image-list-declarations.d.ts +19 -4
- package/dist/types/components/kup-image-list/kup-image-list.d.ts +13 -11
- package/dist/types/components/kup-planner/kup-planner.d.ts +1 -0
- package/dist/types/components/kup-planner/utils/kup-gantt/kup-gantt.d.ts +4 -0
- package/dist/types/components/kup-planner/utils/kup-planner-renderer.d.ts +6 -0
- package/dist/types/components.d.ts +44 -8
- package/dist/types/f-components/f-image/f-image-declarations.d.ts +3 -4
- package/dist/types/managers/kup-dates/kup-dates.d.ts +2 -2
- package/dist/types/managers/kup-interact/kup-interact.d.ts +5 -0
- package/package.json +1 -1
- package/dist/ketchup/p-02820c2b.entry.js +0 -1
- package/dist/ketchup/p-09d853c3.entry.js +0 -1
- package/dist/ketchup/p-14e1a36b.entry.js +0 -1
- package/dist/ketchup/p-1936c6cd.entry.js +0 -1
- package/dist/ketchup/p-1ad7fea0.js +0 -2
- package/dist/ketchup/p-318c9ecd.entry.js +0 -1
- package/dist/ketchup/p-35dce86e.entry.js +0 -1
- package/dist/ketchup/p-3c9ac0fd.entry.js +0 -1
- package/dist/ketchup/p-5739cdc2.entry.js +0 -1
- package/dist/ketchup/p-5ab3a88a.entry.js +0 -1
- package/dist/ketchup/p-6780a391.js +0 -1
- package/dist/ketchup/p-67930d7c.entry.js +0 -1
- package/dist/ketchup/p-6953f769.entry.js +0 -1
- package/dist/ketchup/p-7d2fd8bd.entry.js +0 -1
- package/dist/ketchup/p-8257141a.entry.js +0 -1
- package/dist/ketchup/p-8ea68d14.entry.js +0 -1
- package/dist/ketchup/p-98c72335.entry.js +0 -1
- package/dist/ketchup/p-ab8cac45.entry.js +0 -1
- package/dist/ketchup/p-b5d3c24d.entry.js +0 -1
- package/dist/ketchup/p-cdb24584.entry.js +0 -1
- package/dist/ketchup/p-d466d6d1.entry.js +0 -1
- package/dist/ketchup/p-de07d17e.js +0 -1
- package/dist/ketchup/p-df450df9.entry.js +0 -16
- package/dist/ketchup/p-f31530fc.js +0 -28
- package/dist/ketchup/p-f353805e.entry.js +0 -1
- package/dist/ketchup/p-f515308d.entry.js +0 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, } from "@stencil/core";
|
|
1
|
+
import { h, forceUpdate, } from "@stencil/core";
|
|
2
2
|
import { ganttDateRangeFromTask, seedDates, } from "../kup-planner-renderer-helper";
|
|
3
3
|
import { removeHiddenTasks, sortTasks } from "../helpers/other.helpers";
|
|
4
4
|
import { calculateCurrentDateCalculator, calculateProjection, convertToBarTasks, } from "../helpers/bar.helpers";
|
|
@@ -120,6 +120,12 @@ export class KupGantt {
|
|
|
120
120
|
this.updateScrollLeftAndScrollTop();
|
|
121
121
|
window.addEventListener('gantt-sync-scroll-event', this.onGanttSyncScrollEvent.bind(this));
|
|
122
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* This method is used to trigger a new render of the component.
|
|
125
|
+
*/
|
|
126
|
+
async refresh() {
|
|
127
|
+
forceUpdate(this);
|
|
128
|
+
}
|
|
123
129
|
/*-------------------------------------------------*/
|
|
124
130
|
/* W A T C H E R S */
|
|
125
131
|
/*-------------------------------------------------*/
|
|
@@ -544,7 +550,7 @@ export class KupGantt {
|
|
|
544
550
|
TaskListHeader: this.TaskListHeader,
|
|
545
551
|
TaskListTable: this.TaskListTable,
|
|
546
552
|
};
|
|
547
|
-
return (h("div", { key: '
|
|
553
|
+
return (h("div", { key: 'f7f84291517b74796502599d7005f0902432da84', class: "gannt-wrapper-main" }, h("div", { key: 'bbf2af26ac05a9c67a82eddedbeb7641c9b75e04', 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", ref: (el) => (this.taskListTrueRef = el) }))), h("kup-task-gantt", { key: '138391819549ea113ba52f3d218afbc74e4e92bb', gridProps: gridProps, calendarProps: calendarProps, barProps: barProps, ganttHeight: this.ganttHeight, taskGanttRef: this.taskGanttRef, scrollY: this.scrollY, scrollX: this.scrollX, 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: 'da4e17e28991a3fbc7793c90d17d42cdb3f29383', 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) }))));
|
|
548
554
|
}
|
|
549
555
|
static get is() { return "kup-gantt"; }
|
|
550
556
|
static get originalStyleUrls() {
|
|
@@ -2098,6 +2104,27 @@ export class KupGantt {
|
|
|
2098
2104
|
"projectionContent": {}
|
|
2099
2105
|
};
|
|
2100
2106
|
}
|
|
2107
|
+
static get methods() {
|
|
2108
|
+
return {
|
|
2109
|
+
"refresh": {
|
|
2110
|
+
"complexType": {
|
|
2111
|
+
"signature": "() => Promise<void>",
|
|
2112
|
+
"parameters": [],
|
|
2113
|
+
"references": {
|
|
2114
|
+
"Promise": {
|
|
2115
|
+
"location": "global",
|
|
2116
|
+
"id": "global::Promise"
|
|
2117
|
+
}
|
|
2118
|
+
},
|
|
2119
|
+
"return": "Promise<void>"
|
|
2120
|
+
},
|
|
2121
|
+
"docs": {
|
|
2122
|
+
"text": "This method is used to trigger a new render of the component.",
|
|
2123
|
+
"tags": []
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
};
|
|
2127
|
+
}
|
|
2101
2128
|
static get elementRef() { return "rootElement"; }
|
|
2102
2129
|
static get watchers() {
|
|
2103
2130
|
return [{
|
package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.css
CHANGED
|
@@ -1,3 +1,131 @@
|
|
|
1
|
+
.kup-body-compact-01 {
|
|
2
|
+
font-family: var(--kup-font-family);
|
|
3
|
+
font-size: 14px;
|
|
4
|
+
line-height: 18px;
|
|
5
|
+
font-weight: 400;
|
|
6
|
+
letter-spacing: 0.16px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.kup-body-01 {
|
|
10
|
+
font-family: var(--kup-font-family);
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
line-height: 20px;
|
|
13
|
+
font-weight: 400;
|
|
14
|
+
letter-spacing: 0.16px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.kup-code-01 {
|
|
18
|
+
font-family: var(--kup-font-family-monospace);
|
|
19
|
+
font-size: 12px;
|
|
20
|
+
line-height: 16px;
|
|
21
|
+
font-weight: 400;
|
|
22
|
+
letter-spacing: 0.32px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.kup-label-01 {
|
|
26
|
+
font-family: var(--kup-font-family);
|
|
27
|
+
font-size: 12px;
|
|
28
|
+
line-height: 16px;
|
|
29
|
+
font-weight: 400;
|
|
30
|
+
letter-spacing: 0.32px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.kup-caption-02 {
|
|
34
|
+
font-family: var(--kup-font-family);
|
|
35
|
+
font-size: 12px;
|
|
36
|
+
line-height: 15px;
|
|
37
|
+
font-weight: 500;
|
|
38
|
+
letter-spacing: 1px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.kup-caption-01 {
|
|
42
|
+
font-family: var(--kup-font-family);
|
|
43
|
+
font-size: 10px;
|
|
44
|
+
line-height: 13px;
|
|
45
|
+
font-weight: 400;
|
|
46
|
+
letter-spacing: 1px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.kup-small-label-01 {
|
|
50
|
+
font-family: var(--kup-font-family);
|
|
51
|
+
font-size: 6px;
|
|
52
|
+
line-height: 9px;
|
|
53
|
+
font-weight: 400;
|
|
54
|
+
letter-spacing: 1px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.kup-heading-compact-01 {
|
|
58
|
+
font-family: var(--kup-font-family);
|
|
59
|
+
font-size: 14px;
|
|
60
|
+
line-height: 18px;
|
|
61
|
+
font-weight: 600;
|
|
62
|
+
letter-spacing: 0.16px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.kup-heading-01 {
|
|
66
|
+
font-family: var(--kup-font-family);
|
|
67
|
+
font-size: 14px;
|
|
68
|
+
line-height: 20px;
|
|
69
|
+
font-weight: 600;
|
|
70
|
+
letter-spacing: 0.16px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.kup-heading-02 {
|
|
74
|
+
font-family: var(--kup-font-family);
|
|
75
|
+
font-size: 16px;
|
|
76
|
+
line-height: 24px;
|
|
77
|
+
font-weight: 500;
|
|
78
|
+
letter-spacing: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.kup-heading-03 {
|
|
82
|
+
font-family: var(--kup-font-family);
|
|
83
|
+
font-size: 20px;
|
|
84
|
+
line-height: 28px;
|
|
85
|
+
font-weight: 400;
|
|
86
|
+
letter-spacing: 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.kup-heading-04 {
|
|
90
|
+
font-family: var(--kup-font-family);
|
|
91
|
+
font-size: 28px;
|
|
92
|
+
line-height: 36px;
|
|
93
|
+
font-weight: 400;
|
|
94
|
+
letter-spacing: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.kup-heading-05 {
|
|
98
|
+
font-family: var(--kup-font-family);
|
|
99
|
+
font-size: 32px;
|
|
100
|
+
line-height: 40px;
|
|
101
|
+
font-weight: 300;
|
|
102
|
+
letter-spacing: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.kup-heading-06 {
|
|
106
|
+
font-family: var(--kup-font-family);
|
|
107
|
+
font-size: 42px;
|
|
108
|
+
line-height: 50px;
|
|
109
|
+
font-weight: 300;
|
|
110
|
+
letter-spacing: 0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.kup-heading-07 {
|
|
114
|
+
font-family: var(--kup-font-family);
|
|
115
|
+
font-size: 54px;
|
|
116
|
+
line-height: 64px;
|
|
117
|
+
font-weight: 300;
|
|
118
|
+
letter-spacing: 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.kup-heading-08 {
|
|
122
|
+
font-family: var(--kup-font-family);
|
|
123
|
+
font-size: 54px;
|
|
124
|
+
line-height: 64px;
|
|
125
|
+
font-weight: 600;
|
|
126
|
+
letter-spacing: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
1
129
|
.calendarBottomText {
|
|
2
130
|
text-anchor: middle;
|
|
3
131
|
fill: #333;
|
package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js
CHANGED
|
@@ -195,7 +195,7 @@ export class KupGanttCalendar {
|
|
|
195
195
|
this.simplifiedHeader =
|
|
196
196
|
this.singleLineHeader && this.dateSetup.viewMode !== 'year';
|
|
197
197
|
const [topValues, bottomValues] = this.getTopAndBottomValues();
|
|
198
|
-
return (h("svg", { key: '
|
|
198
|
+
return (h("svg", { key: '171a0a61231f0c68b1df22766f06d5c6a6ee6488', xmlns: "http://www.w3.org/2000/svg", width: this.svgWidth, height: this.headerHeight }, h("g", { key: 'bb77cf35555bfe7e4e9dffe476de550b06253235', class: "calendar", "font-size": this.fontSize, "font-family": this.fontFamily }, h("rect", { key: 'b99cc1d617b4ad05fa319423ac985a078d53794d', x: 0, y: 0, width: this.columnWidth * this.dateSetup.dates.length, height: this.headerHeight, class: "calendarHeader" }), this.simplifiedHeader ? null : bottomValues, this.simplifiedHeader
|
|
199
199
|
? 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
200
|
: 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
201
|
// current date indicator
|
package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.css
CHANGED
|
@@ -1,3 +1,131 @@
|
|
|
1
|
+
.kup-body-compact-01 {
|
|
2
|
+
font-family: var(--kup-font-family);
|
|
3
|
+
font-size: 14px;
|
|
4
|
+
line-height: 18px;
|
|
5
|
+
font-weight: 400;
|
|
6
|
+
letter-spacing: 0.16px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.kup-body-01 {
|
|
10
|
+
font-family: var(--kup-font-family);
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
line-height: 20px;
|
|
13
|
+
font-weight: 400;
|
|
14
|
+
letter-spacing: 0.16px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.kup-code-01 {
|
|
18
|
+
font-family: var(--kup-font-family-monospace);
|
|
19
|
+
font-size: 12px;
|
|
20
|
+
line-height: 16px;
|
|
21
|
+
font-weight: 400;
|
|
22
|
+
letter-spacing: 0.32px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.kup-label-01 {
|
|
26
|
+
font-family: var(--kup-font-family);
|
|
27
|
+
font-size: 12px;
|
|
28
|
+
line-height: 16px;
|
|
29
|
+
font-weight: 400;
|
|
30
|
+
letter-spacing: 0.32px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.kup-caption-02 {
|
|
34
|
+
font-family: var(--kup-font-family);
|
|
35
|
+
font-size: 12px;
|
|
36
|
+
line-height: 15px;
|
|
37
|
+
font-weight: 500;
|
|
38
|
+
letter-spacing: 1px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.kup-caption-01 {
|
|
42
|
+
font-family: var(--kup-font-family);
|
|
43
|
+
font-size: 10px;
|
|
44
|
+
line-height: 13px;
|
|
45
|
+
font-weight: 400;
|
|
46
|
+
letter-spacing: 1px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.kup-small-label-01 {
|
|
50
|
+
font-family: var(--kup-font-family);
|
|
51
|
+
font-size: 6px;
|
|
52
|
+
line-height: 9px;
|
|
53
|
+
font-weight: 400;
|
|
54
|
+
letter-spacing: 1px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.kup-heading-compact-01 {
|
|
58
|
+
font-family: var(--kup-font-family);
|
|
59
|
+
font-size: 14px;
|
|
60
|
+
line-height: 18px;
|
|
61
|
+
font-weight: 600;
|
|
62
|
+
letter-spacing: 0.16px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.kup-heading-01 {
|
|
66
|
+
font-family: var(--kup-font-family);
|
|
67
|
+
font-size: 14px;
|
|
68
|
+
line-height: 20px;
|
|
69
|
+
font-weight: 600;
|
|
70
|
+
letter-spacing: 0.16px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.kup-heading-02 {
|
|
74
|
+
font-family: var(--kup-font-family);
|
|
75
|
+
font-size: 16px;
|
|
76
|
+
line-height: 24px;
|
|
77
|
+
font-weight: 500;
|
|
78
|
+
letter-spacing: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.kup-heading-03 {
|
|
82
|
+
font-family: var(--kup-font-family);
|
|
83
|
+
font-size: 20px;
|
|
84
|
+
line-height: 28px;
|
|
85
|
+
font-weight: 400;
|
|
86
|
+
letter-spacing: 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.kup-heading-04 {
|
|
90
|
+
font-family: var(--kup-font-family);
|
|
91
|
+
font-size: 28px;
|
|
92
|
+
line-height: 36px;
|
|
93
|
+
font-weight: 400;
|
|
94
|
+
letter-spacing: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.kup-heading-05 {
|
|
98
|
+
font-family: var(--kup-font-family);
|
|
99
|
+
font-size: 32px;
|
|
100
|
+
line-height: 40px;
|
|
101
|
+
font-weight: 300;
|
|
102
|
+
letter-spacing: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.kup-heading-06 {
|
|
106
|
+
font-family: var(--kup-font-family);
|
|
107
|
+
font-size: 42px;
|
|
108
|
+
line-height: 50px;
|
|
109
|
+
font-weight: 300;
|
|
110
|
+
letter-spacing: 0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.kup-heading-07 {
|
|
114
|
+
font-family: var(--kup-font-family);
|
|
115
|
+
font-size: 54px;
|
|
116
|
+
line-height: 64px;
|
|
117
|
+
font-weight: 300;
|
|
118
|
+
letter-spacing: 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.kup-heading-08 {
|
|
122
|
+
font-family: var(--kup-font-family);
|
|
123
|
+
font-size: 54px;
|
|
124
|
+
line-height: 64px;
|
|
125
|
+
font-weight: 600;
|
|
126
|
+
letter-spacing: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
1
129
|
.gridRow {
|
|
2
130
|
fill: #fff;
|
|
3
131
|
}
|
package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css
CHANGED
|
@@ -1,3 +1,131 @@
|
|
|
1
|
+
.kup-body-compact-01 {
|
|
2
|
+
font-family: var(--kup-font-family);
|
|
3
|
+
font-size: 14px;
|
|
4
|
+
line-height: 18px;
|
|
5
|
+
font-weight: 400;
|
|
6
|
+
letter-spacing: 0.16px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.kup-body-01 {
|
|
10
|
+
font-family: var(--kup-font-family);
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
line-height: 20px;
|
|
13
|
+
font-weight: 400;
|
|
14
|
+
letter-spacing: 0.16px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.kup-code-01 {
|
|
18
|
+
font-family: var(--kup-font-family-monospace);
|
|
19
|
+
font-size: 12px;
|
|
20
|
+
line-height: 16px;
|
|
21
|
+
font-weight: 400;
|
|
22
|
+
letter-spacing: 0.32px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.kup-label-01 {
|
|
26
|
+
font-family: var(--kup-font-family);
|
|
27
|
+
font-size: 12px;
|
|
28
|
+
line-height: 16px;
|
|
29
|
+
font-weight: 400;
|
|
30
|
+
letter-spacing: 0.32px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.kup-caption-02 {
|
|
34
|
+
font-family: var(--kup-font-family);
|
|
35
|
+
font-size: 12px;
|
|
36
|
+
line-height: 15px;
|
|
37
|
+
font-weight: 500;
|
|
38
|
+
letter-spacing: 1px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.kup-caption-01 {
|
|
42
|
+
font-family: var(--kup-font-family);
|
|
43
|
+
font-size: 10px;
|
|
44
|
+
line-height: 13px;
|
|
45
|
+
font-weight: 400;
|
|
46
|
+
letter-spacing: 1px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.kup-small-label-01 {
|
|
50
|
+
font-family: var(--kup-font-family);
|
|
51
|
+
font-size: 6px;
|
|
52
|
+
line-height: 9px;
|
|
53
|
+
font-weight: 400;
|
|
54
|
+
letter-spacing: 1px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.kup-heading-compact-01 {
|
|
58
|
+
font-family: var(--kup-font-family);
|
|
59
|
+
font-size: 14px;
|
|
60
|
+
line-height: 18px;
|
|
61
|
+
font-weight: 600;
|
|
62
|
+
letter-spacing: 0.16px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.kup-heading-01 {
|
|
66
|
+
font-family: var(--kup-font-family);
|
|
67
|
+
font-size: 14px;
|
|
68
|
+
line-height: 20px;
|
|
69
|
+
font-weight: 600;
|
|
70
|
+
letter-spacing: 0.16px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.kup-heading-02 {
|
|
74
|
+
font-family: var(--kup-font-family);
|
|
75
|
+
font-size: 16px;
|
|
76
|
+
line-height: 24px;
|
|
77
|
+
font-weight: 500;
|
|
78
|
+
letter-spacing: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.kup-heading-03 {
|
|
82
|
+
font-family: var(--kup-font-family);
|
|
83
|
+
font-size: 20px;
|
|
84
|
+
line-height: 28px;
|
|
85
|
+
font-weight: 400;
|
|
86
|
+
letter-spacing: 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.kup-heading-04 {
|
|
90
|
+
font-family: var(--kup-font-family);
|
|
91
|
+
font-size: 28px;
|
|
92
|
+
line-height: 36px;
|
|
93
|
+
font-weight: 400;
|
|
94
|
+
letter-spacing: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.kup-heading-05 {
|
|
98
|
+
font-family: var(--kup-font-family);
|
|
99
|
+
font-size: 32px;
|
|
100
|
+
line-height: 40px;
|
|
101
|
+
font-weight: 300;
|
|
102
|
+
letter-spacing: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.kup-heading-06 {
|
|
106
|
+
font-family: var(--kup-font-family);
|
|
107
|
+
font-size: 42px;
|
|
108
|
+
line-height: 50px;
|
|
109
|
+
font-weight: 300;
|
|
110
|
+
letter-spacing: 0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.kup-heading-07 {
|
|
114
|
+
font-family: var(--kup-font-family);
|
|
115
|
+
font-size: 54px;
|
|
116
|
+
line-height: 64px;
|
|
117
|
+
font-weight: 300;
|
|
118
|
+
letter-spacing: 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.kup-heading-08 {
|
|
122
|
+
font-family: var(--kup-font-family);
|
|
123
|
+
font-size: 54px;
|
|
124
|
+
line-height: 64px;
|
|
125
|
+
font-weight: 600;
|
|
126
|
+
letter-spacing: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
1
129
|
.scrollWrapper {
|
|
2
130
|
overflow: auto;
|
|
3
131
|
max-width: 100%;
|
|
@@ -255,8 +255,8 @@ export const ganttDateRangeGeneric = (dates, viewMode, preStepsCount, showSecond
|
|
|
255
255
|
case 'month':
|
|
256
256
|
newStartDate = addToDate(newStartDate, -1 * preStepsCount, 'month');
|
|
257
257
|
newStartDate = startOfDate(newStartDate, 'month');
|
|
258
|
-
newEndDate = addToDate(newEndDate, 1, '
|
|
259
|
-
newEndDate = startOfDate(newEndDate, '
|
|
258
|
+
newEndDate = addToDate(newEndDate, 1, 'month');
|
|
259
|
+
newEndDate = startOfDate(newEndDate, 'month');
|
|
260
260
|
break;
|
|
261
261
|
case 'week':
|
|
262
262
|
newStartDate = startOfDate(newStartDate, 'day');
|
|
@@ -270,26 +270,6 @@ export const ganttDateRangeGeneric = (dates, viewMode, preStepsCount, showSecond
|
|
|
270
270
|
newEndDate = startOfDate(newEndDate, 'day');
|
|
271
271
|
newEndDate = addToDate(newEndDate, 19, 'day');
|
|
272
272
|
break;
|
|
273
|
-
/*
|
|
274
|
-
case ViewMode.QuarterDay:
|
|
275
|
-
newStartDate = startOfDate(newStartDate, "day");
|
|
276
|
-
newStartDate = addToDate(newStartDate, -1 * preStepsCount, "day");
|
|
277
|
-
newEndDate = startOfDate(newEndDate, "day");
|
|
278
|
-
newEndDate = addToDate(newEndDate, 66, "hour"); // 24(1 day)*3 - 6
|
|
279
|
-
break;
|
|
280
|
-
case ViewMode.HalfDay:
|
|
281
|
-
newStartDate = startOfDate(newStartDate, "day");
|
|
282
|
-
newStartDate = addToDate(newStartDate, -1 * preStepsCount, "day");
|
|
283
|
-
newEndDate = startOfDate(newEndDate, "day");
|
|
284
|
-
newEndDate = addToDate(newEndDate, 108, "hour"); // 24(1 day)*5 - 12
|
|
285
|
-
break;
|
|
286
|
-
case ViewMode.Hour:
|
|
287
|
-
newStartDate = startOfDate(newStartDate, "hour");
|
|
288
|
-
newStartDate = addToDate(newStartDate, -1 * preStepsCount, "hour");
|
|
289
|
-
newEndDate = startOfDate(newEndDate, "day");
|
|
290
|
-
newEndDate = addToDate(newEndDate, 1, "day");
|
|
291
|
-
break;
|
|
292
|
-
*/
|
|
293
273
|
}
|
|
294
274
|
return [newStartDate, newEndDate];
|
|
295
275
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
1
|
+
import { h, } from "@stencil/core";
|
|
2
2
|
import { calculateDisplayedDateRange, columnWidthForTimeUnit, convertProjectToTasks, getPhaseById, getProjectById, mergeTaskIntoPhases, mergeTaskIntoProjects, } from "./kup-planner-renderer-helper";
|
|
3
3
|
import { KUP_PLANNER_MAIN_GANTT_ID, KUP_PLANNER_SECONDARY_GANTT_ID, } from "../kup-planner-declarations";
|
|
4
4
|
import { KupDates } from "../../../managers/kup-dates/kup-dates";
|
|
@@ -74,6 +74,13 @@ export class KupPlannerRenderer {
|
|
|
74
74
|
/*-------------------------------------------------*/
|
|
75
75
|
/* P u b l i c M e t h o d s */
|
|
76
76
|
/*-------------------------------------------------*/
|
|
77
|
+
/**
|
|
78
|
+
* This method is used to trigger a new render of the component.
|
|
79
|
+
*/
|
|
80
|
+
async refresh() {
|
|
81
|
+
var _a;
|
|
82
|
+
this.displayedDates = calculateDisplayedDateRange(this.currentTasks, this.timeUnit, this.mainGanttDoubleView, this.currentDetails, (_a = this.props) === null || _a === void 0 ? void 0 : _a.preStepsCount);
|
|
83
|
+
}
|
|
77
84
|
// Handle click event
|
|
78
85
|
handleClick(row, onClick) {
|
|
79
86
|
if (!row) {
|
|
@@ -188,7 +195,7 @@ export class KupPlannerRenderer {
|
|
|
188
195
|
}
|
|
189
196
|
render() {
|
|
190
197
|
var _a, _b, _c;
|
|
191
|
-
return (h("div", { key: '
|
|
198
|
+
return (h("div", { key: '819b9d89b953274cacccee9bf2022575743e0d27', class: "planner-render" }, h("kup-switcher", { key: 'eebcce029f98a9f08cab9c96be0bad01999b7f95', timeUnitChange: (timeUnit) => {
|
|
192
199
|
var _a, _b;
|
|
193
200
|
(_b = (_a = this.props).onSetViewMode) === null || _b === void 0 ? void 0 : _b.call(_a, timeUnit);
|
|
194
201
|
this.timeUnit = timeUnit;
|
|
@@ -197,7 +204,7 @@ export class KupPlannerRenderer {
|
|
|
197
204
|
} }), this.props && (h("div", { style: {
|
|
198
205
|
display: 'flex',
|
|
199
206
|
flexDirection: 'column',
|
|
200
|
-
} }, h("kup-gantt", Object.assign({ ganttId: KUP_PLANNER_MAIN_GANTT_ID, key:
|
|
207
|
+
} }, h("kup-gantt", Object.assign({ ref: (el) => (this.mainGantt = el), ganttId: KUP_PLANNER_MAIN_GANTT_ID, key: KUP_PLANNER_MAIN_GANTT_ID, filter: this.props.mainGantt.filter, hideLabel: this.props.mainGantt.hideLabel, showSecondaryDates: this.mainGanttDoubleView, hideDependencies: this.props.mainGantt.hideDependencies, ganttHeight: this.props.mainGantt.ganttHeight, displayedStartDate: this.displayedDates.displayedStartDate, displayedEndDate: this.displayedDates.displayedEndDate, viewDate: this.viewDate, tasks: this.tasks, columnWidth: columnWidthForTimeUnit(this.timeUnit), viewMode: this.timeUnit }, this.props.mainGantt.stylingOptions, { TaskListHeader: this.props.mainGantt.taskListHeaderProject, TaskListTable: this.props.mainGantt.taskListTableProject, TooltipContent: (_a = this.props.mainGantt.tooltipContent) !== null && _a !== void 0 ? _a : CustomTooltipHOC(), barClick: (task) => {
|
|
201
208
|
let row = getProjectById(task.id, this.currentTasks);
|
|
202
209
|
if (!row) {
|
|
203
210
|
row = getPhaseById(task.id, this.currentTasks);
|
|
@@ -221,7 +228,7 @@ export class KupPlannerRenderer {
|
|
|
221
228
|
if (row) {
|
|
222
229
|
this.handleContextMenu(event, row, this.props.mainGantt.onContextMenu);
|
|
223
230
|
}
|
|
224
|
-
}, dateChange: (task) => this.handleDateChange(task, this.currentTasks, this.props.mainGantt.onDateChange), locale: this.locale, dateTimeFormatters: ganttDateTimeFormatters, initialScrollX: this.scrollX, initialScrollY: this.props.mainGantt.initialScrollY, readOnly: this.props.mainGantt.readOnly, scrollXChange: this.props.onScrollX, scrollYChange: this.props.mainGantt.onScrollY, currentTasks: this.currentTasks, handleClick: this.handleClick.bind(this), handleDblClick: this.handleDblClick.bind(this), handleContextMenu: this.handleContextMenu.bind(this), ganttOnClick: this.props.mainGantt.onClick, ganttOnDblClick: this.props.mainGantt.onDblClick, ganttonOnContextMenu: this.props.mainGantt.onContextMenu, label: this.props.mainGantt.title, doubleView: (_b = this.mainGanttDoubleView) !== null && _b !== void 0 ? _b : false, setDoubleView: this.handleSetDoubleView.bind(this) })), this.props.secondaryGantt && (h("kup-gantt", Object.assign({ ganttId: KUP_PLANNER_SECONDARY_GANTT_ID, key: KUP_PLANNER_SECONDARY_GANTT_ID, filter: this.props.secondaryGantt.filter, hideLabel: this.props.secondaryGantt.hideLabel, showSecondaryDates: this.mainGanttDoubleView, hideDependencies: this.props.secondaryGantt.hideDependencies, ganttHeight: this.props.secondaryGantt.ganttHeight, displayedStartDate: this.displayedDates.displayedStartDate, displayedEndDate: this.displayedDates.displayedEndDate, viewDate: this.viewDate, tasks: this.details, columnWidth: columnWidthForTimeUnit(this.timeUnit), viewMode: this.timeUnit }, this.props.secondaryGantt.stylingOptions, { TaskListHeader: this.props.secondaryGantt
|
|
231
|
+
}, dateChange: (task) => this.handleDateChange(task, this.currentTasks, this.props.mainGantt.onDateChange), locale: this.locale, dateTimeFormatters: ganttDateTimeFormatters, initialScrollX: this.scrollX, initialScrollY: this.props.mainGantt.initialScrollY, readOnly: this.props.mainGantt.readOnly, scrollXChange: this.props.onScrollX, scrollYChange: this.props.mainGantt.onScrollY, currentTasks: this.currentTasks, handleClick: this.handleClick.bind(this), handleDblClick: this.handleDblClick.bind(this), handleContextMenu: this.handleContextMenu.bind(this), ganttOnClick: this.props.mainGantt.onClick, ganttOnDblClick: this.props.mainGantt.onDblClick, ganttonOnContextMenu: this.props.mainGantt.onContextMenu, label: this.props.mainGantt.title, doubleView: (_b = this.mainGanttDoubleView) !== null && _b !== void 0 ? _b : false, setDoubleView: this.handleSetDoubleView.bind(this) })), this.props.secondaryGantt && (h("kup-gantt", Object.assign({ ref: (el) => (this.secondaryGantt = el), ganttId: KUP_PLANNER_SECONDARY_GANTT_ID, key: KUP_PLANNER_SECONDARY_GANTT_ID, filter: this.props.secondaryGantt.filter, hideLabel: this.props.secondaryGantt.hideLabel, showSecondaryDates: this.mainGanttDoubleView, hideDependencies: this.props.secondaryGantt.hideDependencies, ganttHeight: this.props.secondaryGantt.ganttHeight, displayedStartDate: this.displayedDates.displayedStartDate, displayedEndDate: this.displayedDates.displayedEndDate, viewDate: this.viewDate, tasks: this.details, columnWidth: columnWidthForTimeUnit(this.timeUnit), viewMode: this.timeUnit }, this.props.secondaryGantt.stylingOptions, { TaskListHeader: this.props.secondaryGantt
|
|
225
232
|
.taskListHeaderProject, TaskListTable: this.props.secondaryGantt
|
|
226
233
|
.taskListTableProject, TooltipContent: (_c = this.props.secondaryGantt.tooltipContent) !== null && _c !== void 0 ? _c : CustomTooltipHOC(), projection: this.projection, barClick: (task) => {
|
|
227
234
|
if (this.props.secondaryGantt) {
|
|
@@ -293,6 +300,32 @@ export class KupPlannerRenderer {
|
|
|
293
300
|
"details": {}
|
|
294
301
|
};
|
|
295
302
|
}
|
|
303
|
+
static get methods() {
|
|
304
|
+
return {
|
|
305
|
+
"refresh": {
|
|
306
|
+
"complexType": {
|
|
307
|
+
"signature": "() => Promise<void>",
|
|
308
|
+
"parameters": [],
|
|
309
|
+
"references": {
|
|
310
|
+
"Promise": {
|
|
311
|
+
"location": "global",
|
|
312
|
+
"id": "global::Promise"
|
|
313
|
+
},
|
|
314
|
+
"KupPlannerGanttTask": {
|
|
315
|
+
"location": "import",
|
|
316
|
+
"path": "../kup-planner-declarations",
|
|
317
|
+
"id": "src/components/kup-planner/kup-planner-declarations.ts::KupPlannerGanttTask"
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"return": "Promise<void>"
|
|
321
|
+
},
|
|
322
|
+
"docs": {
|
|
323
|
+
"text": "This method is used to trigger a new render of the component.",
|
|
324
|
+
"tags": []
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
}
|
|
296
329
|
static get elementRef() { return "rootElement"; }
|
|
297
330
|
static get watchers() {
|
|
298
331
|
return [{
|