@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
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-958d0399.js');
|
|
6
|
-
const kupDates = require('./kup-dates-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
6
|
+
const kupDates = require('./kup-dates-e22ee32c.js');
|
|
7
|
+
const bar_helpers = require('./bar.helpers-c481a535.js');
|
|
8
|
+
const kupPlannerTimeFormatter = require('./kup-planner-time-formatter-b7dca3ea.js');
|
|
9
|
+
const kupPlannerDeclarations = require('./kup-planner-declarations-cb33663d.js');
|
|
10
10
|
|
|
11
11
|
const customTaskListHeaderModuleCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.custom-task-list-wrapper{display:flex;justify-content:space-around;max-width:330px;place-items:\"center\";text-align:center;align-items:center}.title{font-weight:bold;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toggler{max-width:max-content;padding:0 4px;text-align:right}.switch{position:relative;display:inline-block;width:30px;height:17px}.input{opacity:0;width:0;height:0}.input:checked+.slider{background-color:#003b77}.input:checked+.slider:before{-webkit-transform:translateX(13px);-ms-transform:translateX(13px);transform:translateX(13px)}.input:focus+.slider{box-shadow:0 0 1px #003b77}.slider{-webkit-transition:0.4s;cursor:pointer;background-color:#ccc;bottom:0;border-radius:17px;left:0;position:absolute;right:0;top:0;transition:0.4s}.slider:before{-webkit-transition:0.1s;background-color:white;border-radius:50%;bottom:2px;content:\"\";height:13px;left:2px;position:absolute;transition:0.1s;width:13px}.label{font-size:12px;padding:6px}.filter{font-size:12px}";
|
|
12
12
|
const KupCustomTaskListHeaderStyle0 = customTaskListHeaderModuleCss;
|
|
@@ -21,16 +21,16 @@ const KupCustomTaskListHeader = class {
|
|
|
21
21
|
this.fontSize = undefined;
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (index.h("div", { key: '
|
|
24
|
+
return (index.h("div", { key: '777c24c612e5d8c93b74a4a8466248cd9a84cd31', class: "custom-task-list-wrapper", style: {
|
|
25
25
|
height: '50px',
|
|
26
26
|
fontFamily: this.fontFamily,
|
|
27
27
|
fontSize: this.fontSize,
|
|
28
|
-
} }, index.h("div", { key: '
|
|
28
|
+
} }, index.h("div", { key: '8a00184f85811656ea2f4c6e69fee0db3ef85f48', class: "title" }, index.h("span", { key: '170a1bef8a7663064ebaaa600a3aaa40beb84243' }, this.label)), this.setDoubleView !== undefined && (index.h("div", { class: "toggler" }, index.h("label", { htmlFor: "ch2", class: "switch" }, index.h("input", { class: "input", id: "ch2", type: "checkbox", checked: this.doubleView, onClick: () => this.setDoubleView(!this.doubleView) }), index.h("span", { class: "slider" })), index.h("span", { class: "label" }, "Previsioni")))));
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
KupCustomTaskListHeader.style = KupCustomTaskListHeaderStyle0;
|
|
32
32
|
|
|
33
|
-
const ganttTableModuleCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.container{padding:0 10px;margin-right:10px}.project{background:var(--kup-background-color, #ffffff);border:1px solid var(--kup-border-color, #acacac);border-radius:4px;box-sizing:border-box;color:var(--kup-text-color, #595959);cursor:pointer;display:grid;font-weight:400;grid-template-columns:var(--grid-project-columns, 1fr 1fr 1fr);place-items:center}.project>*{font-size:14px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.project .main{font-weight:700;width:100%;padding-left:4px}.subrow{cursor:pointer;display:grid;border-width:1px;border-style:solid;border-color:#acacac;border-bottom-left-radius:4px;border-bottom-right-radius:4px;box-sizing:border-box;grid-template-columns:var(--grid-fasi-columns, 1fr 1fr 1fr);place-items:center;background:#ffffff;color:#595959;font-weight:400}.subrow>*{font-size:12px;line-height:14px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.subrow:has(+.subrow),.project:has(+.subrow){border-bottom-left-radius:0;border-bottom-right-radius:0}.timeline{cursor:pointer;display:grid;border-width:1px;border-style:solid;border-color:#cbcbcb;border-radius:4px;grid-template-columns:var(--grid-fasi-columns, 1fr 1fr 1fr);place-items:center;background:#fff;color:#595959;font-weight:400;box-sizing:border-box}.timeline>*{font-size:14px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.timeline .main{font-weight:700;width:100%;padding-left:4px}";
|
|
33
|
+
const ganttTableModuleCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.container{padding:0 10px;margin-right:10px}.scrollable{overflow-x:auto;scrollbar-width:0}.scrollable .project-wrapper{display:table}.scrollable .project{width:100% !important;display:table-row}.scrollable .project>*{overflow:unset;padding-right:10px;display:table-cell;vertical-align:middle;border-bottom:1px solid var(--kup-border-color, #acacac);border-top:1px solid var(--kup-border-color, #acacac);padding-left:12px}.scrollable .project>*:first-child{border-left:1px solid var(--kup-border-color, #acacac);border-bottom-left-radius:4px;border-top-left-radius:4px}.scrollable .project>*:last-child{border-right:1px solid var(--kup-border-color, #acacac);border-bottom-right-radius:4px;border-top-right-radius:4px}.scrollable .subrow{width:100% !important;display:table-row}.scrollable .subrow>*{overflow:unset;padding-right:10px;display:table-cell;vertical-align:middle;border-bottom:1px solid #acacac;border-top:1px solid #acacac;padding-left:12px}.scrollable .subrow>*:first-child{border-left:1px solid #acacac}.scrollable .subrow>*:last-child{border-right:1px solid #acacac}.scrollable .timeline{width:100% !important;display:table-row}.scrollable .timeline>*{overflow:unset;padding-right:10px;display:table-cell;vertical-align:middle;border-bottom:1px solid #acacac;border-top:1px solid #acacac;padding-left:12px}.scrollable .timeline>*:first-child{border-left:1px solid #acacac}.scrollable .timeline>*:last-child{border-right:1px solid #acacac}.scrollable .project:has(+.subrow)>*{border-bottom-left-radius:0;border-bottom-right-radius:0}.scrollable::-webkit-scrollbar{width:0;height:0}.project{background:var(--kup-background-color, #ffffff);border:1px solid var(--kup-border-color, #acacac);border-radius:4px;box-sizing:border-box;color:var(--kup-text-color, #595959);cursor:pointer;display:grid;font-weight:400;grid-template-columns:var(--grid-project-columns, 1fr 1fr 1fr);place-items:center}.project>*{font-size:14px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.project .main{font-weight:700;width:100%;padding-left:4px}.subrow{cursor:pointer;display:grid;border-width:1px;border-style:solid;border-color:#acacac;border-bottom-left-radius:4px;border-bottom-right-radius:4px;box-sizing:border-box;grid-template-columns:var(--grid-fasi-columns, 1fr 1fr 1fr);place-items:center;background:#ffffff;color:#595959;font-weight:400}.subrow>*{font-size:12px;line-height:14px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.subrow:has(+.subrow),.project:has(+.subrow){border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important}.timeline{cursor:pointer;display:grid;border-width:1px;border-style:solid;border-color:#cbcbcb;border-radius:4px;grid-template-columns:var(--grid-fasi-columns, 1fr 1fr 1fr);place-items:center;background:#fff;color:#595959;font-weight:400;box-sizing:border-box}.timeline>*{font-size:14px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.timeline .main{font-weight:700;width:100%;padding-left:4px}";
|
|
34
34
|
const KupCustomTaskListTableStyle0 = ganttTableModuleCss;
|
|
35
35
|
|
|
36
36
|
const KupCustomTaskListTable = class {
|
|
@@ -42,15 +42,37 @@ const KupCustomTaskListTable = class {
|
|
|
42
42
|
this.rowWidth = '';
|
|
43
43
|
this.fontFamily = '';
|
|
44
44
|
this.fontSize = '';
|
|
45
|
+
this.scrollableTaskList = undefined;
|
|
46
|
+
this.taskListScrollX = undefined;
|
|
45
47
|
this.setSelectedTask = undefined;
|
|
46
48
|
this.onclickTaskList = undefined;
|
|
47
49
|
this.ondblclickTaskList = undefined;
|
|
48
50
|
this.oncontextmenuTaskList = undefined;
|
|
51
|
+
this.ontaskListScrollWidth = undefined;
|
|
52
|
+
}
|
|
53
|
+
componentDidLoad() {
|
|
54
|
+
var _a;
|
|
55
|
+
this.ontaskListScrollWidth((_a = this.projectWrapperRef) === null || _a === void 0 ? void 0 : _a.clientWidth);
|
|
56
|
+
}
|
|
57
|
+
componentDidUpdate() {
|
|
58
|
+
var _a;
|
|
59
|
+
this.ontaskListScrollWidth((_a = this.projectWrapperRef) === null || _a === void 0 ? void 0 : _a.clientWidth);
|
|
60
|
+
}
|
|
61
|
+
updateTaskListScroll() {
|
|
62
|
+
this.projectWrapperRef &&
|
|
63
|
+
(this.projectWrapperRef.parentElement.scrollLeft = this.taskListScrollX);
|
|
49
64
|
}
|
|
50
65
|
render() {
|
|
51
66
|
const kupDates$1 = new kupDates.KupDates();
|
|
52
|
-
|
|
53
|
-
|
|
67
|
+
const scrollableStyle = {};
|
|
68
|
+
if (this.scrollableTaskList) {
|
|
69
|
+
scrollableStyle['width'] = this.rowWidth;
|
|
70
|
+
}
|
|
71
|
+
const spansToShow = this.tasks.reduce((prev, curr) => {
|
|
72
|
+
return prev.valuesToShow.length > curr.valuesToShow.length ? prev : curr;
|
|
73
|
+
}).valuesToShow.length + 1;
|
|
74
|
+
return (index.h("div", { class: `container ${this.scrollableTaskList ? 'scrollable' : ''}`, style: scrollableStyle }, index.h("div", { class: "project-wrapper", ref: (el) => (this.projectWrapperRef = el) }, this.tasks.map((task) => {
|
|
75
|
+
var _a, _b, _c, _d;
|
|
54
76
|
return (index.h(index.Fragment, null, task.type === 'project' ? (index.h("div", { class: "project", style: {
|
|
55
77
|
height: `${this.rowHeight}px`,
|
|
56
78
|
width: this.rowWidth,
|
|
@@ -67,11 +89,15 @@ const KupCustomTaskListTable = class {
|
|
|
67
89
|
e.preventDefault();
|
|
68
90
|
this.setSelectedTask(task.id);
|
|
69
91
|
this.oncontextmenuTaskList(e, task.id);
|
|
70
|
-
} }, (_a = task.valuesToShow) === null || _a === void 0 ? void 0 :
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
92
|
+
} }, (_a = task.valuesToShow) === null || _a === void 0 ? void 0 :
|
|
93
|
+
_a.map((v, index$1) => (index.h("span", { class: index$1 === 0 ? 'main' : undefined, title: v.length > 10 ? v : undefined, key: `task_${task.id}_valuesToShow_${index$1}` }, v === '#START#'
|
|
94
|
+
? kupDates$1.formatToLocaleSimple(task.start)
|
|
95
|
+
: v === '#END#'
|
|
96
|
+
? kupDates$1.formatToLocaleSimple(task.end)
|
|
97
|
+
: v))), this.scrollableTaskList && spansToShow > task.valuesToShow.length && ((() => {
|
|
98
|
+
const spansToIterate = bar_helpers.createArrayFromNum(spansToShow - task.valuesToShow.length);
|
|
99
|
+
return (spansToIterate.map((element) => (index.h("span", { key: element }))));
|
|
100
|
+
})()))) : task.type === 'task' ? (index.h("div", { class: "subrow", style: {
|
|
75
101
|
height: `${this.rowHeight}px`,
|
|
76
102
|
width: this.rowWidth,
|
|
77
103
|
fontFamily: this.fontFamily,
|
|
@@ -87,16 +113,26 @@ const KupCustomTaskListTable = class {
|
|
|
87
113
|
e.preventDefault();
|
|
88
114
|
this.setSelectedTask(task.id);
|
|
89
115
|
this.oncontextmenuTaskList(e, task.id);
|
|
116
|
+
} }, this.scrollableTaskList ? (index.h("div", { style: {
|
|
117
|
+
textAlign: 'end',
|
|
90
118
|
} }, index.h("span", { key: `phase_${task.id}_valuesToShow_color`, style: {
|
|
91
119
|
height: '16px',
|
|
92
120
|
width: '16px',
|
|
121
|
+
display: 'inline-block',
|
|
93
122
|
backgroundColor: (_b = task.styles) === null || _b === void 0 ? void 0 : _b.backgroundColor,
|
|
94
|
-
} })
|
|
95
|
-
|
|
123
|
+
} }))) : (index.h("span", { key: `phase_${task.id}_valuesToShow_color`, style: {
|
|
124
|
+
height: '16px',
|
|
125
|
+
width: '16px',
|
|
126
|
+
backgroundColor: (_c = task.styles) === null || _c === void 0 ? void 0 : _c.backgroundColor,
|
|
127
|
+
} })), (_d = task.valuesToShow) === null || _d === void 0 ? void 0 :
|
|
128
|
+
_d.map((v, index$1) => (index.h("span", { class: index$1 === 0 ? 'main' : undefined, title: v.length > 10 ? v : undefined, key: `phase_${task.id}_valuesToShow_${index$1}` }, v === '#START#'
|
|
96
129
|
? kupDates$1.formatToLocaleSimple(task.start)
|
|
97
130
|
: v === '#END#'
|
|
98
131
|
? kupDates$1.formatToLocaleSimple(task.end)
|
|
99
|
-
: v)))
|
|
132
|
+
: v))), this.scrollableTaskList && spansToShow > task.valuesToShow.length && ((() => {
|
|
133
|
+
const spansToIterate = bar_helpers.createArrayFromNum(spansToShow - task.valuesToShow.length - 1);
|
|
134
|
+
return (spansToIterate.map((element) => (index.h("span", { key: element }))));
|
|
135
|
+
})()))) : ((() => {
|
|
100
136
|
var _a;
|
|
101
137
|
let str = '';
|
|
102
138
|
for (let i = 0; i < task.valuesToShow.length; i++) {
|
|
@@ -118,8 +154,11 @@ const KupCustomTaskListTable = class {
|
|
|
118
154
|
? v
|
|
119
155
|
: undefined, key: `detail_${task.id}_valuesToShow_${index$1}` }, v)))));
|
|
120
156
|
})())));
|
|
121
|
-
})));
|
|
157
|
+
}))));
|
|
122
158
|
}
|
|
159
|
+
static get watchers() { return {
|
|
160
|
+
"taskListScrollX": ["updateTaskListScroll"]
|
|
161
|
+
}; }
|
|
123
162
|
};
|
|
124
163
|
KupCustomTaskListTable.style = KupCustomTaskListTableStyle0;
|
|
125
164
|
|
|
@@ -304,8 +343,38 @@ const KupGanttCalendar = class {
|
|
|
304
343
|
}
|
|
305
344
|
return [topValues, bottomValues];
|
|
306
345
|
}
|
|
346
|
+
getCalendarValuesForHour() {
|
|
347
|
+
const topValues = [];
|
|
348
|
+
const bottomValues = [];
|
|
349
|
+
const topDefaultHeight = this.headerHeight * 0.5;
|
|
350
|
+
const dates = this.dateSetup.dates;
|
|
351
|
+
for (let i = 0; i < dates.length; i++) {
|
|
352
|
+
const date = dates[i];
|
|
353
|
+
const bottomValue = kupPlannerTimeFormatter.getCachedDateTimeFormat(this.locale, {
|
|
354
|
+
hour: 'numeric',
|
|
355
|
+
}).format(date);
|
|
356
|
+
bottomValues.push(index.h("text", { key: date.getTime(), y: this.headerHeight * 0.8, x: this.columnWidth * (i + +this.rtl), class: "calendarBottomText" }, bottomValue));
|
|
357
|
+
if (i !== 0 && date.getDate() !== dates[i - 1].getDate()) {
|
|
358
|
+
const displayDate = dates[i - 1];
|
|
359
|
+
const topValue = `${kupPlannerTimeFormatter.getLocalDayOfWeek(displayDate, this.locale, 'long')}, ${displayDate.getDate()} ${kupPlannerTimeFormatter.getLocaleMonth(displayDate, this.locale)}`;
|
|
360
|
+
const topPosition = (date.getHours() - 24) / 2;
|
|
361
|
+
topValues.push({
|
|
362
|
+
key: topValue + date.getFullYear(),
|
|
363
|
+
value: topValue,
|
|
364
|
+
x1Line: this.columnWidth * i,
|
|
365
|
+
y1Line: 0,
|
|
366
|
+
y2Line: topDefaultHeight,
|
|
367
|
+
xText: this.columnWidth * (i + topPosition),
|
|
368
|
+
yText: topDefaultHeight * 0.9,
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
return [topValues, bottomValues];
|
|
373
|
+
}
|
|
307
374
|
getTopAndBottomValues() {
|
|
308
375
|
switch (this.dateSetup.viewMode) {
|
|
376
|
+
case 'hour':
|
|
377
|
+
return this.getCalendarValuesForHour();
|
|
309
378
|
case 'day':
|
|
310
379
|
return this.getCalendarValuesForDay();
|
|
311
380
|
case 'week':
|
|
@@ -320,7 +389,7 @@ const KupGanttCalendar = class {
|
|
|
320
389
|
this.simplifiedHeader =
|
|
321
390
|
this.singleLineHeader && this.dateSetup.viewMode !== 'year';
|
|
322
391
|
const [topValues, bottomValues] = this.getTopAndBottomValues();
|
|
323
|
-
return (index.h("svg", { key: '
|
|
392
|
+
return (index.h("svg", { key: '7a19cec75e555a4fd92acca667c464df43370468', xmlns: "http://www.w3.org/2000/svg", width: this.svgWidth, height: this.headerHeight }, index.h("g", { key: 'a7e72bfedfefae5813d339b99d78bf7138354ff5', class: "calendar", "font-size": this.fontSize, "font-family": this.fontFamily }, index.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
|
|
324
393
|
? topValues.map((topValue) => (index.h("g", { class: "calendarTop" }, index.h("line", { x1: topValue.x1Line, y1: topValue.y2Line * 2, x2: topValue.x1Line, y2: topValue.y2Line, class: "calendarTopTick", key: topValue.value + 'line' }), index.h("text", { key: topValue.value + 'text', y: topValue.yText, x: topValue.xText, class: "calendarTopText" }, topValue.value))))
|
|
325
394
|
: topValues.map((topValue) => (index.h("g", { class: "calendarTop" }, index.h("line", { x1: topValue.x1Line, y1: topValue.y1Line, x2: topValue.x1Line, y2: topValue.y2Line, class: "calendarTopTick", key: topValue.value + 'line' }), index.h("text", { key: topValue.value + 'text', y: topValue.yText, x: topValue.xText, class: "calendarTopText" }, topValue.value)))), this.currentDateIndicator && (
|
|
326
395
|
// current date indicator
|
|
@@ -870,7 +939,7 @@ var hexToCssFilter = {exports: {}};
|
|
|
870
939
|
})));
|
|
871
940
|
}(hexToCssFilter, hexToCssFilter.exports));
|
|
872
941
|
|
|
873
|
-
const kupGridRendererCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.gridRow{fill:#fff}.gridRowLine{stroke:transparent}.gridTick{stroke:#e6e4e4}.barHandle{fill:#ddd;cursor:ew-resize;opacity:0;visibility:hidden}.barBackground{user-select:none;stroke-width:0}.barWrapper{cursor:pointer;outline:none}.task-wrapper{outline:none !important}.barWrapper:hover .barHandle{visibility:visible;opacity:1}.barLabel{fill:#fff;text-anchor:middle;font-weight:lighter;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.barLabelOutside{fill:#555;text-anchor:start;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}";
|
|
942
|
+
const kupGridRendererCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}.gridRow{fill:#fff}.gridRowLine{stroke:transparent}.gridTick{stroke:#e6e4e4}.barHandle{fill:#ddd;cursor:ew-resize;opacity:0;visibility:hidden}.barBackground{user-select:none;stroke-width:0}.barWrapper{cursor:pointer;outline:none}.task-wrapper{outline:none !important}.barWrapper:hover .barHandle{visibility:visible;opacity:1}.barLabel{fill:#fff;text-anchor:middle;font-weight:lighter;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.barLabelOutside{fill:#555;text-anchor:start;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.ghost-preview{opacity:0.5}";
|
|
874
943
|
const KupGridRendererStyle0 = kupGridRendererCss;
|
|
875
944
|
|
|
876
945
|
const KupGridRenderer = class {
|
|
@@ -906,13 +975,18 @@ const KupGridRenderer = class {
|
|
|
906
975
|
this.setSelectedTask = undefined;
|
|
907
976
|
this.eventStart = undefined;
|
|
908
977
|
this.eMouseDown = undefined;
|
|
978
|
+
this.phaseDrop = undefined;
|
|
909
979
|
this.setGanttEvent = undefined;
|
|
980
|
+
this.phaseDragScroll = undefined;
|
|
910
981
|
this.xStep = 0;
|
|
911
982
|
this.initEventX1Delta = 0;
|
|
912
983
|
this.initEventXClick = 0;
|
|
913
984
|
this.isMoving = false;
|
|
914
985
|
this.point = undefined;
|
|
915
986
|
this.svg = undefined;
|
|
987
|
+
this.currentTarget = undefined;
|
|
988
|
+
this.dragScrollInterval = undefined;
|
|
989
|
+
this.dropZoneTask = undefined;
|
|
916
990
|
}
|
|
917
991
|
//---- Lifecycle hooks ----
|
|
918
992
|
componentDidLoad() {
|
|
@@ -944,14 +1018,22 @@ const KupGridRenderer = class {
|
|
|
944
1018
|
return;
|
|
945
1019
|
event.preventDefault();
|
|
946
1020
|
this.point.x = event.clientX;
|
|
1021
|
+
this.point.y = event.clientY;
|
|
947
1022
|
const cursor = this.point.matrixTransform((_b = (_a = this.svg) === null || _a === void 0 ? void 0 : _a.getScreenCTM()) === null || _b === void 0 ? void 0 : _b.inverse());
|
|
948
|
-
const { isChanged, changedTask } = bar_helpers.handleTaskBySVGMouseEvent(cursor.x, this.ganttEvent.action, this.ganttEvent.changedTask, this.xStep, this.timeStep, this.initEventX1Delta, this.rtl);
|
|
1023
|
+
const { isChanged, changedTask } = bar_helpers.handleTaskBySVGMouseEvent(cursor.x, this.ganttEvent.action, this.ganttEvent.changedTask, this.xStep, this.timeStep, this.initEventX1Delta, this.rtl, cursor.y);
|
|
1024
|
+
if (this.currentTarget) {
|
|
1025
|
+
this.addGhostPreview(event);
|
|
1026
|
+
this.handleAutoScrollForPhaseDrag(event);
|
|
1027
|
+
this.addDropzoneVisualization();
|
|
1028
|
+
}
|
|
949
1029
|
if (isChanged) {
|
|
950
1030
|
this.setGanttEvent(Object.assign(Object.assign({}, this.ganttEvent), { action: this.ganttEvent.action, changedTask }));
|
|
951
1031
|
}
|
|
952
1032
|
};
|
|
953
1033
|
const handleMouseUp = async (event) => {
|
|
954
|
-
var _a, _b;
|
|
1034
|
+
var _a, _b, _c;
|
|
1035
|
+
clearInterval(this.dragScrollInterval);
|
|
1036
|
+
this.resetDropzoneVisualization();
|
|
955
1037
|
const { action, originalSelectedTask, changedTask } = this.ganttEvent;
|
|
956
1038
|
if (!changedTask ||
|
|
957
1039
|
!this.point ||
|
|
@@ -961,18 +1043,33 @@ const KupGridRenderer = class {
|
|
|
961
1043
|
event.preventDefault();
|
|
962
1044
|
this.point.x = event.clientX;
|
|
963
1045
|
const cursor = this.point.matrixTransform((_b = (_a = this.svg) === null || _a === void 0 ? void 0 : _a.getScreenCTM()) === null || _b === void 0 ? void 0 : _b.inverse());
|
|
964
|
-
|
|
1046
|
+
this.currentTarget = null;
|
|
1047
|
+
const { changedTask: newChangedTask } = bar_helpers.handleTaskBySVGMouseEvent(cursor.x, action, changedTask, this.xStep, this.timeStep, this.initEventX1Delta, this.rtl, cursor.y);
|
|
965
1048
|
const isNotLikeOriginal = originalSelectedTask.start !== newChangedTask.start ||
|
|
966
1049
|
originalSelectedTask.end !== newChangedTask.end ||
|
|
967
|
-
originalSelectedTask.progress !== newChangedTask.progress
|
|
1050
|
+
originalSelectedTask.progress !== newChangedTask.progress ||
|
|
1051
|
+
originalSelectedTask.y !== newChangedTask.y;
|
|
968
1052
|
// remove listeners
|
|
969
1053
|
this.svg.removeEventListener('mousemove', handleMouseMove);
|
|
970
1054
|
this.svg.removeEventListener('mouseup', handleMouseUp);
|
|
1055
|
+
(_c = this.svg.querySelector('.ghost-preview')) === null || _c === void 0 ? void 0 : _c.remove();
|
|
971
1056
|
this.setGanttEvent({ action: '' });
|
|
972
1057
|
this.isMoving = false;
|
|
973
1058
|
// custom operation start
|
|
974
1059
|
let operationSuccess = true;
|
|
975
|
-
|
|
1060
|
+
let droppedOn = undefined;
|
|
1061
|
+
let originalTaskData = undefined;
|
|
1062
|
+
if (action === 'move' &&
|
|
1063
|
+
isNotLikeOriginal &&
|
|
1064
|
+
newChangedTask.type === 'task') {
|
|
1065
|
+
droppedOn = this.tasks.find((task) => this.isPhaseWithinTaskArea(changedTask, task) &&
|
|
1066
|
+
task.type === 'project');
|
|
1067
|
+
originalTaskData = this.tasks.find((task) => task.id == originalSelectedTask.id.split('_').shift());
|
|
1068
|
+
}
|
|
1069
|
+
if ((droppedOn === null || droppedOn === void 0 ? void 0 : droppedOn.id) && (originalTaskData === null || originalTaskData === void 0 ? void 0 : originalTaskData.id) !== (droppedOn === null || droppedOn === void 0 ? void 0 : droppedOn.id)) {
|
|
1070
|
+
this.phaseDrop(originalSelectedTask, originalTaskData, newChangedTask, droppedOn);
|
|
1071
|
+
}
|
|
1072
|
+
else if ((action === 'move' || action === 'end' || action === 'start') &&
|
|
976
1073
|
this.dateChange &&
|
|
977
1074
|
isNotLikeOriginal) {
|
|
978
1075
|
try {
|
|
@@ -1018,6 +1115,110 @@ const KupGridRenderer = class {
|
|
|
1018
1115
|
}
|
|
1019
1116
|
return this.initEventXClick !== event.clientX;
|
|
1020
1117
|
}
|
|
1118
|
+
addGhostPreview(event) {
|
|
1119
|
+
var _a;
|
|
1120
|
+
(_a = this.svg.querySelector('.ghost-preview')) === null || _a === void 0 ? void 0 : _a.remove();
|
|
1121
|
+
const mockEvent = Object.assign(Object.assign({}, event), { dataTransfer: new DataTransfer() });
|
|
1122
|
+
const dragEle = this.currentTarget;
|
|
1123
|
+
dragEle.classList.add('ghost-preview');
|
|
1124
|
+
this.svg.appendChild(dragEle.cloneNode(true));
|
|
1125
|
+
const nodeRect = dragEle.getBoundingClientRect();
|
|
1126
|
+
mockEvent.dataTransfer.setDragImage(dragEle, mockEvent.clientX - nodeRect.left, mockEvent.clientY - nodeRect.top);
|
|
1127
|
+
}
|
|
1128
|
+
handleAutoScrollForPhaseDrag(event) {
|
|
1129
|
+
var _a, _b;
|
|
1130
|
+
const list = (_b = (_a = this.svg) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.parentElement;
|
|
1131
|
+
if (!list)
|
|
1132
|
+
return;
|
|
1133
|
+
clearInterval(this.dragScrollInterval);
|
|
1134
|
+
const isOverFlowing = list.clientHeight < list.scrollHeight;
|
|
1135
|
+
if (isOverFlowing) {
|
|
1136
|
+
// if container is overflowing we need to scroll within the container
|
|
1137
|
+
const containerRect = list.getBoundingClientRect();
|
|
1138
|
+
const offsetY = event.clientY - containerRect.top;
|
|
1139
|
+
const diff = 5;
|
|
1140
|
+
if (offsetY - 20 < diff) {
|
|
1141
|
+
this.dragScrollInterval = setInterval(() => {
|
|
1142
|
+
this.phaseDragScroll((list.scrollTop -= diff));
|
|
1143
|
+
}, 1);
|
|
1144
|
+
}
|
|
1145
|
+
else if (offsetY + 20 > containerRect.height - diff) {
|
|
1146
|
+
this.dragScrollInterval = setInterval(() => {
|
|
1147
|
+
this.phaseDragScroll((list.scrollTop += diff));
|
|
1148
|
+
}, 1);
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
else {
|
|
1152
|
+
// else we need to scroll the window when viewport exceeds
|
|
1153
|
+
const scrollOffset = 20;
|
|
1154
|
+
const windowHeight = window.innerHeight;
|
|
1155
|
+
const y = event.clientY;
|
|
1156
|
+
if (y < scrollOffset) {
|
|
1157
|
+
window.scrollBy(0, -scrollOffset);
|
|
1158
|
+
}
|
|
1159
|
+
else if (y > windowHeight - scrollOffset) {
|
|
1160
|
+
window.scrollBy(0, scrollOffset);
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
isPhaseWithinTaskArea(phase, task) {
|
|
1165
|
+
return (phase.y + phase.height >= task.ySecondary &&
|
|
1166
|
+
phase.y <= task.ySecondary + task.height &&
|
|
1167
|
+
phase.x2 >= task.x1 &&
|
|
1168
|
+
phase.x1 <= task.x2);
|
|
1169
|
+
}
|
|
1170
|
+
addDropzoneVisualization() {
|
|
1171
|
+
var _a;
|
|
1172
|
+
this.resetDropzoneVisualization();
|
|
1173
|
+
// find the tasks where drop is allowed, includes all projects except parent project also includes current phase
|
|
1174
|
+
const dropAllowedOn = this.tasks.filter((task) => {
|
|
1175
|
+
var _a, _b, _c;
|
|
1176
|
+
return task.type == 'project' &&
|
|
1177
|
+
((_c = (_b = (_a = this.ganttEvent.originalSelectedTask) === null || _a === void 0 ? void 0 : _a.id) === null || _b === void 0 ? void 0 : _b.split('_')) === null || _c === void 0 ? void 0 : _c.shift()) !=
|
|
1178
|
+
task.id;
|
|
1179
|
+
});
|
|
1180
|
+
const changedTask = this.ganttEvent.changedTask;
|
|
1181
|
+
// to determine whether the phase is in some another project y and x area
|
|
1182
|
+
this.dropZoneTask = dropAllowedOn.find((task) => this.isPhaseWithinTaskArea(changedTask, task));
|
|
1183
|
+
if ((_a = this.dropZoneTask) === null || _a === void 0 ? void 0 : _a.ySecondary) {
|
|
1184
|
+
const rects = this.getBarRectsForDropzoneVisualization();
|
|
1185
|
+
rects.forEach((rect) => {
|
|
1186
|
+
rect.setAttribute('fill', kupPlannerDeclarations.defaultStylingOptions.barDropZoneColor);
|
|
1187
|
+
});
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
resetDropzoneVisualization() {
|
|
1191
|
+
if (!this.dropZoneTask)
|
|
1192
|
+
return;
|
|
1193
|
+
const rects = this.getBarRectsForDropzoneVisualization();
|
|
1194
|
+
const isSelected = !!this.selectedTask &&
|
|
1195
|
+
this.dropZoneTask.id === this.selectedTask.id;
|
|
1196
|
+
rects.forEach((rect) => {
|
|
1197
|
+
rect.setAttribute('fill', this.getBarColor(isSelected, this.dropZoneTask.styles));
|
|
1198
|
+
});
|
|
1199
|
+
}
|
|
1200
|
+
getBarRectsForDropzoneVisualization() {
|
|
1201
|
+
let rects;
|
|
1202
|
+
if (!this.showSecondaryDates) {
|
|
1203
|
+
rects = this.svg.querySelectorAll(`.barWrapper[data-type="${this.dropZoneTask.type}"] rect[y='${this.dropZoneTask.ySecondary}']`);
|
|
1204
|
+
}
|
|
1205
|
+
else {
|
|
1206
|
+
const rect = this.svg.querySelector(`.barWrapper[data-type="${this.dropZoneTask.type}"] rect[y='${this.dropZoneTask.ySecondary}']`);
|
|
1207
|
+
const siblings = [rect];
|
|
1208
|
+
let nextSibling = rect.nextElementSibling;
|
|
1209
|
+
while (nextSibling !== null) {
|
|
1210
|
+
siblings.push(nextSibling);
|
|
1211
|
+
nextSibling = nextSibling.nextElementSibling;
|
|
1212
|
+
}
|
|
1213
|
+
let prevSibling = rect.previousElementSibling;
|
|
1214
|
+
while (prevSibling !== null) {
|
|
1215
|
+
siblings.unshift(prevSibling);
|
|
1216
|
+
prevSibling = prevSibling.previousElementSibling;
|
|
1217
|
+
}
|
|
1218
|
+
rects = siblings;
|
|
1219
|
+
}
|
|
1220
|
+
return rects;
|
|
1221
|
+
}
|
|
1021
1222
|
handleBarEventStart(action, task, event) {
|
|
1022
1223
|
var _a;
|
|
1023
1224
|
if (!event) {
|
|
@@ -1073,7 +1274,14 @@ const KupGridRenderer = class {
|
|
|
1073
1274
|
return;
|
|
1074
1275
|
this.point.x = event.clientX;
|
|
1075
1276
|
const cursor = this.point.matrixTransform((_a = this.svg.getScreenCTM()) === null || _a === void 0 ? void 0 : _a.inverse());
|
|
1277
|
+
if (task.type === 'task') {
|
|
1278
|
+
this.currentTarget = event.currentTarget.cloneNode(true);
|
|
1279
|
+
}
|
|
1280
|
+
else {
|
|
1281
|
+
this.currentTarget = null;
|
|
1282
|
+
}
|
|
1076
1283
|
this.initEventX1Delta = cursor.x - task.x1;
|
|
1284
|
+
this.point.y = event.clientY;
|
|
1077
1285
|
this.initEventXClick = event.clientX;
|
|
1078
1286
|
this.setGanttEvent({
|
|
1079
1287
|
action,
|
|
@@ -1095,7 +1303,7 @@ const KupGridRenderer = class {
|
|
|
1095
1303
|
}
|
|
1096
1304
|
renderKupBar(task, isSelected, isDateResizable, isProgressChangeable) {
|
|
1097
1305
|
var _a, _b, _c;
|
|
1098
|
-
return (index.h("g", { class: "barWrapper", "tab-index": 0 }, this.renderKupBarDisplay(task.x1, task.y, task.x2 - task.x1, task.height, task.progressX, task.progressWidth, task.barCornerRadius, task.styles, isSelected, !this.readOnly && !!this.dateChange && !task.isDisabled, task, task.x1secondary, ((_a = task.x2secondary) !== null && _a !== void 0 ? _a : 0) - ((_b = task.x1secondary) !== null && _b !== void 0 ? _b : 0)), index.h("g", { class: "handleGroup" }, isDateResizable && (index.h("g", null, this.renderKupBarDateHandle(task.x1 + 1, task.y + 1, task.handleWidth, task.height - 2, task.barCornerRadius, task, 'start'), this.renderKupBarDateHandle(task.x2 - task.handleWidth - 1, task.y + 1, task.handleWidth, task.height - 2, task.barCornerRadius, task, 'end'))), isProgressChangeable && (index.h("polygon", { class: "barHandle", points: this.calculateProgressPoint(task), onMouseDown: (e) => {
|
|
1306
|
+
return (index.h("g", { class: "barWrapper", "tab-index": 0, "data-type": task.type }, this.renderKupBarDisplay(task.x1, task.y, task.x2 - task.x1, task.height, task.progressX, task.progressWidth, task.barCornerRadius, task.styles, isSelected, !this.readOnly && !!this.dateChange && !task.isDisabled, task, task.x1secondary, ((_a = task.x2secondary) !== null && _a !== void 0 ? _a : 0) - ((_b = task.x1secondary) !== null && _b !== void 0 ? _b : 0), task.ySecondary), index.h("g", { class: "handleGroup" }, isDateResizable && (index.h("g", null, this.renderKupBarDateHandle(task.x1 + 1, task.y + 1, task.handleWidth, task.height - 2, task.barCornerRadius, task, 'start'), this.renderKupBarDateHandle(task.x2 - task.handleWidth - 1, task.y + 1, task.handleWidth, task.height - 2, task.barCornerRadius, task, 'end'))), isProgressChangeable && (index.h("polygon", { class: "barHandle", points: this.calculateProgressPoint(task), onMouseDown: (e) => {
|
|
1099
1307
|
this.handleBarEventStart('progress', task, e);
|
|
1100
1308
|
} }))), task.icon &&
|
|
1101
1309
|
task.icon.url &&
|
|
@@ -1110,11 +1318,11 @@ const KupGridRenderer = class {
|
|
|
1110
1318
|
(this.showSecondaryDates ? task.height / 2 : 0),
|
|
1111
1319
|
})));
|
|
1112
1320
|
}
|
|
1113
|
-
renderKupBarDisplay(x, y, width, height, progressX, progressWidth, barCornerRadius, styles, isSelected, isDateMovable, task, xSecondary, widthSecondary) {
|
|
1321
|
+
renderKupBarDisplay(x, y, width, height, progressX, progressWidth, barCornerRadius, styles, isSelected, isDateMovable, task, xSecondary, widthSecondary, ySecondary) {
|
|
1114
1322
|
if (this.showSecondaryDates && typeof xSecondary !== 'undefined') {
|
|
1115
1323
|
const halfHeight = height / 2;
|
|
1116
1324
|
return (index.h("g", { onMouseDown: (e) => isDateMovable &&
|
|
1117
|
-
this.handleBarEventStart('move', task, e) }, index.h("rect", { key: "top semi-transparent bar", x: xSecondary, width: widthSecondary, y: y, height: halfHeight, ry: barCornerRadius, rx: barCornerRadius, fill: this.getBarColor(isSelected, styles), opacity: 0.5, class: 'barBackground' }), index.h("rect", { key: "main bar", x: x, width: width, y: y + halfHeight, height: halfHeight, ry: barCornerRadius, rx: barCornerRadius, fill: this.getBarColor(isSelected, styles), class: 'barBackground' }), index.h("rect", { key: "progress bar", x: progressX, width: progressWidth, y: y + halfHeight, height: halfHeight, ry: barCornerRadius, rx: barCornerRadius, fill: this.getProcessColor(isSelected, styles) })));
|
|
1325
|
+
this.handleBarEventStart('move', task, e) }, index.h("rect", { key: "top semi-transparent bar", x: xSecondary, width: widthSecondary, y: ySecondary !== null && ySecondary !== void 0 ? ySecondary : y, height: halfHeight, ry: barCornerRadius, rx: barCornerRadius, fill: this.getBarColor(isSelected, styles), opacity: 0.5, class: 'barBackground' }), index.h("rect", { key: "main bar", x: x, width: width, y: y + halfHeight, height: halfHeight, ry: barCornerRadius, rx: barCornerRadius, fill: this.getBarColor(isSelected, styles), class: 'barBackground' }), index.h("rect", { key: "progress bar", x: progressX, width: progressWidth, y: y + halfHeight, height: halfHeight, ry: barCornerRadius, rx: barCornerRadius, fill: this.getProcessColor(isSelected, styles) })));
|
|
1118
1326
|
}
|
|
1119
1327
|
return (index.h("g", { onMouseDown: (e) => {
|
|
1120
1328
|
isDateMovable && this.handleBarEventStart('move', task, e);
|
|
@@ -1217,29 +1425,37 @@ const KupGridRenderer = class {
|
|
|
1217
1425
|
rowLines.push(index.h("line", { key: 'RowLine' + task.id, x1: 0, y1: y + this.rowHeight, x2: this.gridProps.svgWidth, y2: y + this.rowHeight, class: "gridRowLine" }));
|
|
1218
1426
|
y += this.rowHeight;
|
|
1219
1427
|
}
|
|
1220
|
-
const now = new Date();
|
|
1428
|
+
// const now = new Date();
|
|
1221
1429
|
let tickX = 0;
|
|
1222
1430
|
const ticks = [];
|
|
1223
1431
|
for (let i = 0; i < this.dates.length; i++) {
|
|
1224
1432
|
const date = this.dates[i];
|
|
1225
1433
|
ticks.push(index.h("line", { key: date.getTime(), x1: tickX, y1: 0, x2: tickX, y2: y, class: "gridTick" }));
|
|
1226
|
-
if (
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1434
|
+
// if (
|
|
1435
|
+
// (i + 1 !== this.dates.length &&
|
|
1436
|
+
// date.getTime() < now.getTime() &&
|
|
1437
|
+
// this.dates[i + 1].getTime() >= now.getTime()) ||
|
|
1438
|
+
// // if current date is last
|
|
1439
|
+
// (i !== 0 &&
|
|
1440
|
+
// i + 1 === this.dates.length &&
|
|
1441
|
+
// date.getTime() < now.getTime() &&
|
|
1442
|
+
// addToDate(
|
|
1443
|
+
// date,
|
|
1444
|
+
// date.getTime() - this.dates[i - 1].getTime(),
|
|
1445
|
+
// 'millisecond'
|
|
1446
|
+
// ).getTime() >= now.getTime())
|
|
1447
|
+
// ) {
|
|
1448
|
+
// // Add custom logic here if needed
|
|
1449
|
+
// }
|
|
1234
1450
|
tickX += this.columnWidth;
|
|
1235
1451
|
}
|
|
1236
|
-
return (index.h("svg", { key: '
|
|
1452
|
+
return (index.h("svg", { key: '95b5c0ebccd9d472507328baa068f9d75daa4a6e', xmlns: "http://www.w3.org/2000/svg", width: this.gridProps.svgWidth, height: `${this.rowHeight * this.tasks.length}px`, "font-family": this.fontFamily, ref: (el) => (this.svg = el) }, index.h("g", { key: 'bd6598993c35c69c6aadca0d41c50b028a283b70', class: "grid" }, index.h("g", { key: 'c52a1de5fa57cc5fdd4b80ff84b3a09b13e3b199', class: "rows" }, gridRows), index.h("g", { key: 'd8747275b307b05c7a5c4ab1ab3efa5956c95f25', class: "rowLines" }, rowLines), index.h("g", { key: '000d0b2ec6253da9d23096a7cfa3564a2a3a173d', class: "ticks" }, ticks)), index.h("g", { key: 'fc0d6cc1b4f60e84b77082b7c47d68eb364fbb7b', class: "content" }, this.currentDateIndicator && (index.h("rect", { fill: this.currentDateIndicator.color, x: this.currentDateIndicator.x + 1.5, y: "0", width: "2", height: "100%" })), this.projection && (index.h("rect", { fill: this.projection.color, x: this.projection.x0, y: "0", width: this.projection.xf - this.projection.x0, height: "100%", "fill-opacity": "0.35" })), index.h("g", { key: '04162e3432a56f08c1ea29e69503fe97e1fb84d2', class: "arrows", fill: this.arrowColor, stroke: this.arrowColor }, this.tasks.map((task) => {
|
|
1237
1453
|
return task.barChildren.map((child) => {
|
|
1238
1454
|
if (task.type !== 'timeline') {
|
|
1239
1455
|
this.renderKupArrow(task, child);
|
|
1240
1456
|
}
|
|
1241
1457
|
});
|
|
1242
|
-
})), index.h("g", { key: '
|
|
1458
|
+
})), index.h("g", { key: '4e5888f0a6335480ee0f32df3844982e355f4e39', class: "bar", "font-family": this.fontFamily, "font-size": this.fontSize }, this.tasks.map((task) => {
|
|
1243
1459
|
const forbidResize = task.type === 'project';
|
|
1244
1460
|
return (index.h("g", { onKeyDown: (e) => {
|
|
1245
1461
|
switch (e.key) {
|
|
@@ -1299,7 +1515,7 @@ const KupGridRenderer = class {
|
|
|
1299
1515
|
return this.renderKupBar(task, props.isSelected, isDateResizable, isProgressChangeable);
|
|
1300
1516
|
}
|
|
1301
1517
|
})()));
|
|
1302
|
-
})))));
|
|
1518
|
+
}), this.currentTarget && this.ganttEvent.changedTask && (index.h("g", { class: "task-wrapper" }, this.renderKupBar(this.ganttEvent.changedTask, false, false, false)))))));
|
|
1303
1519
|
}
|
|
1304
1520
|
static get watchers() { return {
|
|
1305
1521
|
"columnWidth": ["updateXStep"],
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-958d0399.js');
|
|
6
|
-
const fButton = require('./f-button-
|
|
6
|
+
const fButton = require('./f-button-23ec3db5.js');
|
|
7
7
|
const fCheckbox = require('./f-checkbox-1fa28e76.js');
|
|
8
|
-
const fTextField = require('./f-text-field-
|
|
8
|
+
const fTextField = require('./f-text-field-354b6c78.js');
|
|
9
9
|
const fTextFieldMdc = require('./f-text-field-mdc-08a06162.js');
|
|
10
|
-
const kupManager = require('./kup-manager-
|
|
10
|
+
const kupManager = require('./kup-manager-e1bfd4f8.js');
|
|
11
11
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
12
12
|
require('./f-button-declarations-51ef6d9a.js');
|
|
13
|
-
require('./f-image-
|
|
13
|
+
require('./f-image-f3944c01.js');
|
|
14
14
|
require('./component-cb3b32f5.js');
|
|
15
|
-
require('./kup-dates-
|
|
15
|
+
require('./kup-dates-e22ee32c.js');
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Props of the kup-dashboard component.
|
|
@@ -6,6 +6,25 @@ function getDefaultExportFromCjs (x) {
|
|
|
6
6
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
function getAugmentedNamespace(n) {
|
|
10
|
+
if (n.__esModule) return n;
|
|
11
|
+
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
12
|
+
Object.keys(n).forEach(function (k) {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
14
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () {
|
|
17
|
+
return n[k];
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
return a;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function commonjsRequire (path) {
|
|
25
|
+
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
26
|
+
}
|
|
27
|
+
|
|
9
28
|
/**
|
|
10
29
|
* Normalization types.
|
|
11
30
|
*/
|
|
@@ -809,4 +828,6 @@ class KupDates {
|
|
|
809
828
|
|
|
810
829
|
exports.KupDates = KupDates;
|
|
811
830
|
exports.commonjsGlobal = commonjsGlobal;
|
|
831
|
+
exports.commonjsRequire = commonjsRequire;
|
|
832
|
+
exports.getAugmentedNamespace = getAugmentedNamespace;
|
|
812
833
|
exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-958d0399.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-e1bfd4f8.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
|
-
require('./kup-dates-
|
|
8
|
+
require('./kup-dates-e22ee32c.js');
|
|
9
9
|
|
|
10
10
|
const drawerClass = 'drawer';
|
|
11
11
|
/**
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-958d0399.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-e1bfd4f8.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
|
-
require('./kup-dates-
|
|
8
|
+
require('./kup-dates-e22ee32c.js');
|
|
9
9
|
|
|
10
10
|
/*! *****************************************************************************
|
|
11
11
|
Copyright (c) Microsoft Corporation.
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-958d0399.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-e1bfd4f8.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
|
-
const kupDates = require('./kup-dates-
|
|
8
|
+
const kupDates = require('./kup-dates-e22ee32c.js');
|
|
9
9
|
|
|
10
10
|
var toastuiEditor = {exports: {}};
|
|
11
11
|
|