@sme.up/ketchup 10.3.8 → 10.3.9
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-bfafefb3.js → f-button-c084046d.js} +1 -1
- package/dist/cjs/{f-cell-9a77e09a.js → f-cell-2e939ef8.js} +12 -8
- package/dist/cjs/{f-checkbox-aaa6d45c.js → f-checkbox-e59d6bda.js} +3 -3
- package/dist/cjs/{f-chip-f1b14141.js → f-chip-b0b4b0d9.js} +2 -2
- package/dist/cjs/{f-image-db10b066.js → f-image-7457eb26.js} +18 -15
- package/dist/cjs/{f-object-field-7c1ea180.js → f-object-field-db5613ef.js} +3 -3
- package/dist/cjs/{f-paginator-utils-49cf707b.js → f-paginator-utils-2fcf4642.js} +2 -2
- package/dist/cjs/{f-text-field-f5b2163a.js → f-text-field-ee6120c5.js} +60 -3
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +2 -2
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +3 -3
- package/dist/cjs/kup-autocomplete_30.cjs.entry.js +429 -206
- package/dist/cjs/kup-box.cjs.entry.js +10 -10
- package/dist/cjs/kup-calendar.cjs.entry.js +4 -4
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +8 -8
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +7 -7
- package/dist/cjs/kup-dashboard.cjs.entry.js +5 -5
- package/dist/cjs/{kup-data-table-helper-63e5d7a2.js → kup-data-table-helper-0705294e.js} +1 -1
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +1 -1
- package/dist/cjs/kup-editor.cjs.entry.js +1 -1
- package/dist/cjs/kup-family-tree.cjs.entry.js +3 -3
- package/dist/cjs/kup-gantt_10.cjs.entry.js +23 -23
- package/dist/cjs/kup-grid.cjs.entry.js +1 -1
- package/dist/cjs/kup-htm.cjs.entry.js +6 -3
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-input-panel.cjs.entry.js +79 -24
- package/dist/cjs/kup-lazy.cjs.entry.js +12 -12
- package/dist/cjs/kup-magic-box.cjs.entry.js +5 -5
- package/dist/cjs/{kup-manager-15f30f03.js → kup-manager-0ce9fd30.js} +18 -6
- package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +4 -4
- package/dist/cjs/kup-object-field.cjs.entry.js +6 -6
- package/dist/cjs/kup-pdf.cjs.entry.js +2 -2
- package/dist/cjs/kup-planner-renderer.cjs.entry.js +2 -2
- package/dist/cjs/kup-planner.cjs.entry.js +4 -4
- package/dist/cjs/kup-probe.cjs.entry.js +2 -2
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
- package/dist/cjs/kup-txt.cjs.entry.js +2 -2
- package/dist/cjs/kup-typography-list.cjs.entry.js +2 -2
- package/dist/cjs/kup-typography.cjs.entry.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +5 -2
- package/dist/collection/components/kup-data-table/kup-data-table.js +231 -118
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +8 -8
- package/dist/collection/components/kup-file-upload/kup-file-upload-declarations.js +3 -0
- package/dist/collection/components/kup-file-upload/kup-file-upload.css +9 -0
- package/dist/collection/components/kup-file-upload/kup-file-upload.js +101 -27
- package/dist/collection/components/kup-form/kup-form.js +2 -2
- package/dist/collection/components/kup-htm/kup-htm.css +0 -3
- package/dist/collection/components/kup-htm/kup-htm.js +4 -1
- package/dist/collection/components/kup-image-list/kup-image-list.js +3 -3
- package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js +1 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel.css +9 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +89 -15
- package/dist/collection/components/kup-lazy/kup-lazy.js +11 -11
- 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-object-field/kup-object-field.js +1 -1
- package/dist/collection/components/kup-pdf/kup-pdf.js +1 -1
- package/dist/collection/components/kup-planner/kup-planner.js +1 -1
- package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +3 -3
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +5 -5
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +2 -2
- 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 +1 -1
- 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-text-field/kup-text-field-declarations.js +1 -0
- package/dist/collection/components/kup-text-field/kup-text-field.js +27 -4
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +1 -1
- package/dist/collection/components/kup-txt/kup-txt.js +1 -1
- package/dist/collection/components/kup-typography/kup-typography.js +2 -2
- package/dist/collection/components/kup-typography-list/kup-typography-list.js +1 -1
- package/dist/collection/f-components/f-cell/f-cell.js +5 -1
- package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -1
- package/dist/collection/f-components/f-image/f-image.js +18 -15
- package/dist/collection/f-components/f-text-field/f-text-field.js +55 -1
- package/dist/collection/managers/kup-data/kup-data.js +4 -3
- package/dist/collection/managers/kup-language/kup-language-declarations.js +2 -0
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +5 -0
- package/dist/collection/utils/cell-utils.js +1 -1
- package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +2 -0
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +57 -7
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.js +2 -2
- package/dist/components/kup-activity-timeline.js +2 -2
- package/dist/components/kup-autocomplete.js +1 -1
- package/dist/components/kup-badge.js +1 -1
- package/dist/components/kup-box.js +1 -1
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +2 -2
- package/dist/components/kup-card-list.js +3 -3
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +2 -2
- package/dist/components/kup-chart.js +1 -1
- package/dist/components/kup-checkbox.js +1 -1
- package/dist/components/kup-chip.js +1 -1
- package/dist/components/kup-color-picker.js +1 -1
- package/dist/components/kup-combobox.js +1 -1
- package/dist/components/kup-custom-task-list-header.js +1 -1
- package/dist/components/kup-dashboard.js +2 -2
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dialog.js +1 -1
- package/dist/components/kup-drawer.js +2 -2
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart.js +1 -1
- package/dist/components/kup-editor.js +1 -1
- package/dist/components/kup-family-tree.js +3 -3
- package/dist/components/kup-file-upload.js +1 -1
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gantt-calendar.js +1 -1
- package/dist/components/kup-gantt.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid-renderer.js +1 -1
- package/dist/components/kup-grid.js +1 -1
- package/dist/components/kup-horizontal-scroll.js +1 -1
- package/dist/components/kup-htm.js +7 -4
- package/dist/components/kup-iframe.js +2 -2
- package/dist/components/kup-image-list.js +1 -1
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +75 -19
- package/dist/components/kup-lazy.js +13 -13
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +7 -7
- package/dist/components/kup-nav-bar.js +3 -3
- package/dist/components/kup-numeric-picker.js +3 -3
- package/dist/components/kup-object-field.js +3 -3
- package/dist/components/kup-pdf.js +3 -3
- package/dist/components/kup-planner-renderer.js +1 -1
- package/dist/components/kup-planner.js +17 -17
- package/dist/components/kup-probe.js +3 -3
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +3 -3
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +3 -3
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-standard-tooltip.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-switcher.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-task-gantt.js +1 -1
- package/dist/components/kup-task-list-header.js +1 -1
- package/dist/components/kup-task-list-table.js +1 -1
- package/dist/components/kup-task-list.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-toolbar.js +1 -1
- package/dist/components/kup-tooltip.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/components/kup-txt.js +3 -3
- package/dist/components/kup-typography-list.js +3 -3
- package/dist/components/kup-typography.js +4 -4
- package/dist/components/kup-vertical-scroll.js +1 -1
- package/dist/components/{p-168b2e98.js → p-23d0f0c7.js} +1 -1
- package/dist/components/{p-d5573b9a.js → p-2670bfd5.js} +13 -13
- package/dist/components/{p-f0de2fa5.js → p-5b1056e4.js} +7 -7
- package/dist/components/{p-57069e5c.js → p-767fcf91.js} +1 -1
- package/dist/components/{p-5aea1707.js → p-7e706919.js} +509 -217
- package/dist/components/{p-fbaf1165.js → p-85852162.js} +18 -6
- package/dist/components/{p-46440124.js → p-89b9a949.js} +2 -2
- package/dist/components/{p-47eafd24.js → p-9a502c5d.js} +2 -2
- package/dist/components/{p-bba3ee8c.js → p-9a617844.js} +3 -3
- package/dist/components/{p-73b82fab.js → p-9d13f3da.js} +4 -4
- package/dist/components/{p-f836c3ed.js → p-aa882232.js} +2 -2
- package/dist/components/{p-91cbfbb1.js → p-b057cba1.js} +2 -2
- package/dist/components/{p-78086e86.js → p-bbb25c58.js} +1 -1
- package/dist/components/{p-96d517a7.js → p-bdecbc93.js} +5 -5
- package/dist/components/{p-7fa7072d.js → p-cbc6b3d5.js} +2 -2
- package/dist/components/{p-75cc2a0e.js → p-cde4d6c3.js} +2 -2
- package/dist/components/{p-e74c4841.js → p-d9bec7c8.js} +2 -2
- package/dist/components/{p-7b80651f.js → p-dc1ce1b4.js} +1 -1
- package/dist/components/{p-0886650d.js → p-e72fb07b.js} +2 -2
- package/dist/components/{p-dbfe7218.js → p-f9afe0c9.js} +15 -15
- package/dist/esm/{f-button-3c8f4506.js → f-button-6298565d.js} +1 -1
- package/dist/esm/{f-cell-0a43dfd3.js → f-cell-b3f0782c.js} +12 -8
- package/dist/esm/{f-checkbox-5cdd1cad.js → f-checkbox-191ec2e7.js} +3 -3
- package/dist/esm/{f-chip-d5f27ee2.js → f-chip-3ed440ef.js} +2 -2
- package/dist/esm/{f-image-a2ecd7c3.js → f-image-96ea1421.js} +18 -15
- package/dist/esm/{f-object-field-6f759bf9.js → f-object-field-23935da4.js} +3 -3
- package/dist/esm/{f-paginator-utils-6d124369.js → f-paginator-utils-a9d5c2d3.js} +2 -2
- package/dist/esm/{f-text-field-86dd8534.js → f-text-field-4934ff74.js} +60 -3
- package/dist/esm/index.js +1 -1
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +2 -2
- package/dist/esm/kup-activity-timeline.entry.js +3 -3
- package/dist/esm/kup-autocomplete_30.entry.js +429 -206
- package/dist/esm/kup-box.entry.js +10 -10
- package/dist/esm/kup-calendar.entry.js +4 -4
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +8 -8
- package/dist/esm/kup-custom-task-list-header_4.entry.js +7 -7
- package/dist/esm/kup-dashboard.entry.js +5 -5
- package/dist/esm/{kup-data-table-helper-7d5e4260.js → kup-data-table-helper-de9421a0.js} +1 -1
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +1 -1
- package/dist/esm/kup-editor.entry.js +1 -1
- package/dist/esm/kup-family-tree.entry.js +3 -3
- package/dist/esm/kup-gantt_10.entry.js +23 -23
- package/dist/esm/kup-grid.entry.js +1 -1
- package/dist/esm/kup-htm.entry.js +6 -3
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-input-panel.entry.js +79 -24
- package/dist/esm/kup-lazy.entry.js +12 -12
- package/dist/esm/kup-magic-box.entry.js +5 -5
- package/dist/esm/{kup-manager-2b06d829.js → kup-manager-5c23bae7.js} +18 -6
- package/dist/esm/kup-nav-bar.entry.js +2 -2
- package/dist/esm/kup-numeric-picker.entry.js +4 -4
- package/dist/esm/kup-object-field.entry.js +6 -6
- package/dist/esm/kup-pdf.entry.js +2 -2
- package/dist/esm/kup-planner-renderer.entry.js +2 -2
- package/dist/esm/kup-planner.entry.js +4 -4
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +4 -4
- package/dist/esm/kup-txt.entry.js +2 -2
- package/dist/esm/kup-typography-list.entry.js +2 -2
- package/dist/esm/kup-typography.entry.js +4 -4
- 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-179d9c32.entry.js → p-001755a5.entry.js} +1 -1
- package/dist/ketchup/{p-a186678f.js → p-02e22635.js} +1 -1
- package/dist/ketchup/p-03d049e3.js +21 -0
- package/dist/ketchup/p-0bb6bfb4.entry.js +1 -0
- package/dist/ketchup/{p-fd855732.entry.js → p-137158e4.entry.js} +1 -1
- package/dist/ketchup/{p-b1a9f499.entry.js → p-143617b6.entry.js} +1 -1
- package/dist/ketchup/{p-e5022c5b.entry.js → p-27f26f4b.entry.js} +1 -1
- package/dist/ketchup/{p-f9c3699f.entry.js → p-29af64ff.entry.js} +1 -1
- package/dist/ketchup/{p-8a95b2a0.entry.js → p-33a6e698.entry.js} +1 -1
- package/dist/ketchup/{p-74035126.entry.js → p-424c2f64.entry.js} +1 -1
- package/dist/ketchup/{p-d022b77e.entry.js → p-4632e407.entry.js} +2 -2
- package/dist/ketchup/{p-0a93321f.entry.js → p-6741f3f6.entry.js} +1 -1
- package/dist/ketchup/p-687b7642.entry.js +8 -0
- package/dist/ketchup/{p-beacc7fd.entry.js → p-68835d71.entry.js} +1 -1
- package/dist/ketchup/{p-39472246.entry.js → p-6c1e1780.entry.js} +1 -1
- package/dist/ketchup/{p-2f626d6c.entry.js → p-6ce64af5.entry.js} +1 -1
- package/dist/ketchup/{p-1015f35b.entry.js → p-7775e947.entry.js} +1 -1
- package/dist/ketchup/p-7d25580b.entry.js +1 -0
- package/dist/ketchup/{p-2bb6c663.js → p-95346c81.js} +1 -1
- package/dist/ketchup/{p-b1371652.js → p-a3394095.js} +1 -1
- package/dist/ketchup/{p-a301cd89.entry.js → p-a76b0d93.entry.js} +1 -1
- package/dist/ketchup/{p-425fab24.entry.js → p-ae1f69c7.entry.js} +1 -1
- package/dist/ketchup/{p-98fb85e5.entry.js → p-b47dc6ac.entry.js} +1 -1
- package/dist/ketchup/{p-00963efe.entry.js → p-b509455c.entry.js} +1 -1
- package/dist/ketchup/{p-d83f2153.entry.js → p-b67d94a0.entry.js} +1 -1
- package/dist/ketchup/{p-3f7fec03.entry.js → p-bc75c526.entry.js} +1 -1
- package/dist/ketchup/{p-f9d6a629.entry.js → p-c3eca951.entry.js} +2 -2
- package/dist/ketchup/{p-4c8480a1.entry.js → p-cc9d71a7.entry.js} +1 -1
- package/dist/ketchup/p-cc9db65d.js +1 -0
- package/dist/ketchup/p-cf5e1d07.js +1 -0
- package/dist/ketchup/{p-43246def.js → p-da273b4d.js} +1 -1
- package/dist/ketchup/p-da5d5eea.js +1 -0
- package/dist/ketchup/p-dba5100a.entry.js +1 -0
- package/dist/ketchup/{p-4f380f49.entry.js → p-dc425c68.entry.js} +1 -1
- package/dist/ketchup/p-e18d9110.entry.js +1 -0
- package/dist/ketchup/{p-9432bc02.entry.js → p-e755042e.entry.js} +1 -1
- package/dist/ketchup/{p-b5575d63.entry.js → p-ec66f939.entry.js} +1 -1
- package/dist/ketchup/{p-e6cad40c.entry.js → p-ece991ba.entry.js} +1 -1
- package/dist/ketchup/{p-9f9428d1.js → p-ef3112d4.js} +1 -1
- package/dist/ketchup/{p-bf5abe49.entry.js → p-f3319227.entry.js} +1 -1
- package/dist/ketchup/{p-045e7306.entry.js → p-f7da2ca7.entry.js} +1 -1
- package/dist/ketchup/{p-c4224227.js → p-ff735e62.js} +1 -1
- 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 +2 -0
- package/dist/types/components/kup-file-upload/kup-file-upload-declarations.d.ts +4 -1
- package/dist/types/components/kup-file-upload/kup-file-upload.d.ts +4 -2
- package/dist/types/components/kup-htm/kup-htm.d.ts +1 -0
- package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +1 -0
- package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +5 -0
- package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +1 -0
- package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
- package/dist/types/components.d.ts +23 -2
- package/dist/types/f-components/f-cell/f-cell.d.ts +5 -0
- package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +3 -1
- package/dist/types/utils/cell-utils.d.ts +1 -0
- package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +3 -1
- package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +3 -2
- package/package.json +1 -1
- package/dist/ketchup/p-17f69e68.entry.js +0 -1
- package/dist/ketchup/p-3cab6420.js +0 -1
- package/dist/ketchup/p-4d3ae43b.entry.js +0 -8
- package/dist/ketchup/p-514a0dfd.js +0 -1
- package/dist/ketchup/p-5f35bc3e.js +0 -1
- package/dist/ketchup/p-62b0efc0.js +0 -21
- package/dist/ketchup/p-68929471.entry.js +0 -1
- package/dist/ketchup/p-a34c1e3c.entry.js +0 -1
- package/dist/ketchup/p-e5f2da82.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, f as forceUpdate, h, d as Host } from './p-ef8cbd35.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, u as KupDebugCategory } from './p-
|
|
3
|
-
import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t, E as defineCustomElement$u } from './p-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, u as KupDebugCategory } from './p-85852162.js';
|
|
3
|
+
import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t, E as defineCustomElement$u } from './p-7e706919.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Props of the kup-grid component.
|
|
@@ -14,11 +14,11 @@ const KupCustomTaskListHeader = /*@__PURE__*/ proxyCustomElement(class KupCustom
|
|
|
14
14
|
this.fontSize = undefined;
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h("div", { key: '
|
|
17
|
+
return (h("div", { key: '23f119a1f4df86a9c9518014672600827ef3946a', class: "custom-task-list-wrapper", style: {
|
|
18
18
|
height: '25px',
|
|
19
19
|
fontFamily: this.fontFamily,
|
|
20
20
|
fontSize: this.fontSize,
|
|
21
|
-
} }, h("div", { key: '
|
|
21
|
+
} }, h("div", { key: 'be428c1fa53e5d20c10b7841ed711678ca46ca50', class: "title" }, h("span", { key: '5c6742dd5a63dbf837e1df3f7daa422925be102b' }, this.label)), this.setDoubleView !== undefined && (h("div", { key: '7dee3b1d2c665d5360b85a59fdafc2902f1fec01', class: "toggler" }, h("label", { key: '2ff7fb287c8901f60018d57a3f91e4827d49fc0a', htmlFor: "ch2", class: "switch" }, h("input", { key: '3b8df0b5b2b66b34ffa0151c2b62523d9b756885', class: "input", id: "ch2", type: "checkbox", checked: this.doubleView, onClick: () => this.setDoubleView(!this.doubleView) }), h("span", { key: 'f38b848a394283807290d19c2188d8255745ea89', class: "slider" })), h("span", { key: '03870d86ee67071fc114da83ffc4fe3a8abc897d', class: "label" }, "Previsioni")))));
|
|
22
22
|
}
|
|
23
23
|
static get style() { return KupCustomTaskListHeaderStyle0; }
|
|
24
24
|
}, [0, "kup-custom-task-list-header", {
|
|
@@ -1402,13 +1402,13 @@ const KupGridRenderer = /*@__PURE__*/ proxyCustomElement(class KupGridRenderer e
|
|
|
1402
1402
|
// }
|
|
1403
1403
|
tickX += this.columnWidth;
|
|
1404
1404
|
}
|
|
1405
|
-
return (h("svg", { key: '
|
|
1405
|
+
return (h("svg", { key: '380a83d730b9c011e576a588f689e88bf6bd1814', 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) }, h("g", { key: 'a9a83e3ec574b36a1ce9d012f6f1e13bffe8eed5', class: "grid" }, h("g", { key: '10d5b31ee258f91aac82ce3dc441871f57fe76f6', class: "rows" }, gridRows), h("g", { key: 'ddae99458fa1c0ce5b96ac9846bfb167d0f6d7a5', class: "rowLines" }, rowLines), h("g", { key: '3a30ca604d25216ecfcea251bced32d9ac211932', class: "ticks" }, ticks)), h("g", { key: '46d90e500351f11ffda906eb5c31fea195cc0223', class: "content" }, this.currentDateIndicator && (h("rect", { key: '167a7fa6be1cccaea4d57a2c687a0628e91c00d7', fill: this.currentDateIndicator.color, x: this.currentDateIndicator.x + 1.5, y: "0", width: "2", height: "100%" })), this.projection && (h("rect", { key: '310e6996cddec5650662b08289bb42c1715dcba5', fill: this.projection.color, x: this.projection.x0, y: "0", width: this.projection.xf - this.projection.x0, height: "100%", "fill-opacity": "0.35" })), h("g", { key: '48d1b6330012fc1cb1bbdd87a25afc9e3e868867', class: "arrows", fill: this.arrowColor, stroke: this.arrowColor }, this.tasks.map((task) => {
|
|
1406
1406
|
return task.barChildren.map((child) => {
|
|
1407
1407
|
if (task.type !== 'timeline') {
|
|
1408
1408
|
this.renderKupArrow(task, child);
|
|
1409
1409
|
}
|
|
1410
1410
|
});
|
|
1411
|
-
})), h("g", { key: '
|
|
1411
|
+
})), h("g", { key: '92d9c57208504e793e94742c5d0a718b2a1ffa5e', class: "bar", "font-family": this.fontFamily, "font-size": this.fontSize }, this.tasks.map((task) => {
|
|
1412
1412
|
const forbidResize = task.type === 'project';
|
|
1413
1413
|
return (h("g", { onKeyDown: (e) => {
|
|
1414
1414
|
switch (e.key) {
|
|
@@ -1468,7 +1468,7 @@ const KupGridRenderer = /*@__PURE__*/ proxyCustomElement(class KupGridRenderer e
|
|
|
1468
1468
|
return this.renderKupBar(task, props.isSelected, isDateResizable, isProgressChangeable);
|
|
1469
1469
|
}
|
|
1470
1470
|
})()));
|
|
1471
|
-
}), this.currentTarget && this.ganttEvent.changedTask && (h("g", { key: '
|
|
1471
|
+
}), this.currentTarget && this.ganttEvent.changedTask && (h("g", { key: 'e42b2b38135aab0c22be661f29774c02341c3f87', class: "task-wrapper" }, this.renderKupBar(this.ganttEvent.changedTask, false, false, false)))))));
|
|
1472
1472
|
}
|
|
1473
1473
|
static get watchers() { return {
|
|
1474
1474
|
"columnWidth": ["updateXStep"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, h } from './p-ef8cbd35.js';
|
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
|
3
|
-
import { d as defineCustomElement$1 } from './p-
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-aa882232.js';
|
|
3
|
+
import { d as defineCustomElement$1 } from './p-9a617844.js';
|
|
4
4
|
|
|
5
5
|
const TaskGantt = /*@__PURE__*/ proxyCustomElement(class TaskGantt extends H {
|
|
6
6
|
constructor() {
|
|
@@ -39,12 +39,12 @@ const TaskGantt = /*@__PURE__*/ proxyCustomElement(class TaskGantt extends H {
|
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
41
|
const newBarProps = Object.assign(Object.assign({}, this.barProps), { gridProps: this.gridProps, phaseDragScroll: this.phaseDragScroll });
|
|
42
|
-
return (h("div", { key: '
|
|
42
|
+
return (h("div", { key: 'e2b4a8dff37cb823329dd6cbf6ea4ed7a9b81e33', class: "ganttVerticalContainer", ref: (el) => (this.verticalGanttContainerRef = el), dir: "ltr" }, h("kup-gantt-calendar", { key: '156ef3dc8e066fa143ca2b27c945e5487299b87b', dateSetup: this.calendarProps.dateSetup, locale: this.calendarProps.locale, rtl: this.calendarProps.rtl, headerHeight: this.calendarProps.headerHeight, columnWidth: this.calendarProps.columnWidth, fontFamily: this.calendarProps.fontFamily, fontSize: this.calendarProps.fontSize, dateTimeFormatters: this.calendarProps.dateTimeFormatters, singleLineHeader: this.calendarProps.singleLineHeader, currentDateIndicator: this.calendarProps.currentDateIndicator, svgWidth: this.gridProps.svgWidth }), h("div", { key: '994c441039334c518f9c45bcb1b197ecc0ca5073', ref: (el) => (this.horizontalContainerRef = el), class: "horizontalContainer", style: this.ganttHeight
|
|
43
43
|
? {
|
|
44
44
|
height: `${this.ganttHeight}px`,
|
|
45
45
|
width: `${this.gridProps.svgWidth}px`,
|
|
46
46
|
}
|
|
47
|
-
: { width: `${this.gridProps.svgWidth}px` } }, h("kup-grid-renderer", Object.assign({ key: '
|
|
47
|
+
: { width: `${this.gridProps.svgWidth}px` } }, h("kup-grid-renderer", Object.assign({ key: 'f7b9656624c914819676bebc1891d9d388c7bfe7' }, newBarProps)))));
|
|
48
48
|
}
|
|
49
49
|
get rootElement() { return this; }
|
|
50
50
|
static get watchers() { return {
|
|
@@ -316,11 +316,11 @@ const KupGanttCalendar = /*@__PURE__*/ proxyCustomElement(class KupGanttCalendar
|
|
|
316
316
|
this.simplifiedHeader =
|
|
317
317
|
this.singleLineHeader && this.dateSetup.viewMode !== 'year';
|
|
318
318
|
const [topValues, bottomValues] = this.getTopAndBottomValues();
|
|
319
|
-
return (h("svg", { key: '
|
|
319
|
+
return (h("svg", { key: '4bca0e060f56a7fe37e05b75d5d6869f040704a6', xmlns: "http://www.w3.org/2000/svg", width: this.svgWidth, height: this.headerHeight }, h("g", { key: '7d8e96b34aeb2d6fda64ca62c8f85669609d6dbb', class: "calendar", "font-size": this.fontSize, "font-family": this.fontFamily }, h("rect", { key: '8e7726a396d3f38f4b264acaeb6b28e998bfb60c', x: 0, y: 0, width: this.columnWidth * this.dateSetup.dates.length, height: this.headerHeight, class: "calendarHeader" }), this.simplifiedHeader ? null : bottomValues, this.simplifiedHeader
|
|
320
320
|
? 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))))
|
|
321
321
|
: 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 && (
|
|
322
322
|
// current date indicator
|
|
323
|
-
h("circle", { key: '
|
|
323
|
+
h("circle", { key: '8a301e27afb5737f85421156a63ce577096846a7', fill: this.currentDateIndicator.color, cx: this.currentDateIndicator.x + 2.5, cy: this.headerHeight - 8, r: "8" })))));
|
|
324
324
|
}
|
|
325
325
|
static get style() { return KupGanttCalendarStyle0; }
|
|
326
326
|
}, [0, "kup-gantt-calendar", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, f as forceUpdate, h, d as Host } from './p-ef8cbd35.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps } from './p-
|
|
3
|
-
import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t, E as defineCustomElement$u } from './p-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps } from './p-85852162.js';
|
|
3
|
+
import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t, E as defineCustomElement$u } from './p-7e706919.js';
|
|
4
4
|
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './p-5882e117.js';
|
|
5
5
|
|
|
6
6
|
var toastuiEditor = {exports: {}};
|
|
@@ -22,7 +22,7 @@ const KupSwitcher = /*@__PURE__*/ proxyCustomElement(class KupSwitcher extends H
|
|
|
22
22
|
this.activeButton = mode;
|
|
23
23
|
this.timeUnitChange(mode);
|
|
24
24
|
};
|
|
25
|
-
return (h("div", { key: '
|
|
25
|
+
return (h("div", { key: 'd24d4bc2fd86820f8ec6970387020b7d2b6088d1', class: "switcher" }, this.buttonLabels.map((label) => (h("button", { type: "button", class: {
|
|
26
26
|
button: true,
|
|
27
27
|
buttonActive: this.activeButton === label,
|
|
28
28
|
}, onClick: () => handleButtonClick(label) }, h("span", { class: "label" }, label.charAt(0).toUpperCase() + label.slice(1)))))));
|
|
@@ -60,20 +60,20 @@ const HorizontalScroll = /*@__PURE__*/ proxyCustomElement(class HorizontalScroll
|
|
|
60
60
|
var _a, _b;
|
|
61
61
|
const w = (_b = ((_a = this.taskListTrueRef) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width) + 24 * 1.5) !== null && _b !== void 0 ? _b : 0; // 24 * 2 is the sum of padding and margin for both list and gantt, multiplied by 1.5 cause we need to add the other half to the right
|
|
62
62
|
const width = +this.listCellWidth.replace('px', '');
|
|
63
|
-
return (h(Fragment, { key: '
|
|
64
|
-
this.taskListScrollWidth > width && (h("div", { key: '
|
|
63
|
+
return (h(Fragment, { key: '1cb5cc72c0e08db314e6ead1a39180e6a20ed6f9' }, h("div", { key: 'da412f0efab8374f0bbc7cf4ab125d7e113543ee', class: "scroll-container" }, this.scrollableTaskList &&
|
|
64
|
+
this.taskListScrollWidth > width && (h("div", { key: '40344cef778d4b9051cf1d321b7b49e82e3bb35c', dir: "ltr", style: {
|
|
65
65
|
margin: this.rtl
|
|
66
66
|
? `0px 20px 0px 20px`
|
|
67
67
|
: `0px 20px 0px 20px`,
|
|
68
68
|
maxWidth: `${width + 20}px`,
|
|
69
69
|
minWidth: `${width + 20}px`,
|
|
70
|
-
}, class: "scrollWrapper", "data-scrollx": "true", onScroll: this.horizontalTaskListScroll }, h("div", { key: '
|
|
70
|
+
}, class: "scrollWrapper", "data-scrollx": "true", onScroll: this.horizontalTaskListScroll }, h("div", { key: 'f39845955cc68e1900c597bc13966e2daf6e336c', style: {
|
|
71
71
|
width: `${this.taskListScrollWidth}px`,
|
|
72
|
-
}, class: "scroll" }))), h("div", { key: '
|
|
72
|
+
}, class: "scroll" }))), h("div", { key: '8aa6d6fbbd7fea960479851a816d93b31c971269', dir: "ltr", style: {
|
|
73
73
|
margin: this.rtl
|
|
74
74
|
? `0px ${this.scrollableTaskList && this.taskListScrollWidth > width ? 40 : w}px 0px 12px`
|
|
75
75
|
: `0px 12px 0px ${this.scrollableTaskList && this.taskListScrollWidth > width ? 40 : w}px`,
|
|
76
|
-
}, class: "scrollWrapper", "data-scrollx": "true", onScroll: this.horizontalScroll }, h("div", { key: '
|
|
76
|
+
}, class: "scrollWrapper", "data-scrollx": "true", onScroll: this.horizontalScroll }, h("div", { key: 'd0502cab3f7a0e3cb145f903b4ce5c708ec5917e', style: { width: `${this.svgWidth}px` }, class: "scroll" })))));
|
|
77
77
|
}
|
|
78
78
|
get rootElement() { return this; }
|
|
79
79
|
static get watchers() { return {
|
|
@@ -37,11 +37,11 @@ const KupVerticalScroll = /*@__PURE__*/ proxyCustomElement(class KupVerticalScro
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h("div", { key: '
|
|
40
|
+
return (h("div", { key: '8e3600213a2d21a94dbb232a0dd2b83c332fc093', style: {
|
|
41
41
|
height: `${this.ganttHeight}px`,
|
|
42
42
|
marginTop: `${this.headerHeight}px`,
|
|
43
43
|
marginLeft: this.rtl ? '' : '-1rem',
|
|
44
|
-
}, class: "scroll", onScroll: this.verticalScroll, ref: (el) => (this.scrollRef = el) }, h("div", { key: '
|
|
44
|
+
}, class: "scroll", onScroll: this.verticalScroll, ref: (el) => (this.scrollRef = el) }, h("div", { key: 'f11b5279bb0fafa024cf92df8a9960fb4fdaa8d5', style: {
|
|
45
45
|
height: `${this.ganttFullHeight}px`,
|
|
46
46
|
width: '1px',
|
|
47
47
|
} })));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, h } from './p-ef8cbd35.js';
|
|
2
2
|
import { K as KUP_PLANNER_MAIN_GANTT_ID } from './p-a0eeacbd.js';
|
|
3
3
|
import { a as KupDates } from './p-9d9181cf.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './p-
|
|
4
|
+
import { d as defineCustomElement$2 } from './p-9a502c5d.js';
|
|
5
5
|
import { d as defineCustomElement$1 } from './p-a52b0e92.js';
|
|
6
6
|
|
|
7
7
|
const columnWidthForTimeUnit = (timeUnit) => {
|
|
@@ -519,7 +519,7 @@ const TaskList = /*@__PURE__*/ proxyCustomElement(class TaskList extends H {
|
|
|
519
519
|
if (TaskListTable && TaskListTable['$attrs$']) {
|
|
520
520
|
Object.assign(TaskListTable['$attrs$'], Object.assign({}, tableProps));
|
|
521
521
|
}
|
|
522
|
-
return (h("div", { key: '
|
|
522
|
+
return (h("div", { key: 'f934b78d05a4851af330799a723b9afe0a2be36d', ref: (el) => (this.taskListRef = el) }, TaskListHeader && TaskListHeader['$attrs$'] ? (TaskListHeader) : (h("kup-custom-task-list-header", Object.assign({ label: this.label, doubleView: (_a = this.doubleView) !== null && _a !== void 0 ? _a : false, setDoubleView: this.setDoubleView }, headerProps))), h("div", { key: '0ee50961a474dac562d97548df584e98c07360fa', class: `${this.horizontalContainerClass} ${this.scrollableTaskList ? 'horizontalContainerScrollable' : ''}`, style: this.ganttHeight
|
|
523
523
|
? { height: this.ganttHeight + 'px' }
|
|
524
524
|
: {}, ref: (el) => (this.horizontalContainerRef = el) }, TaskListTable && TaskListTable['$attrs$'] ? (TaskListTable) : (h("kup-custom-task-list-table", Object.assign({}, tableProps, { onclickTaskList: (id) => {
|
|
525
525
|
let row = getProjectById(id, this.currentTasks);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, f as forceUpdate, h, d as Host, g as getAssetPath } from './p-ef8cbd35.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, c as KupThemeColorValues, u as KupDebugCategory, L as getColumnByName, D as KupDataNewColumnTypes } from './p-
|
|
3
|
-
import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t, E as defineCustomElement$u } from './p-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, c as KupThemeColorValues, u as KupDebugCategory, L as getColumnByName, D as KupDataNewColumnTypes } from './p-85852162.js';
|
|
3
|
+
import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t, E as defineCustomElement$u } from './p-7e706919.js';
|
|
4
4
|
|
|
5
5
|
/*! *****************************************************************************
|
|
6
6
|
Copyright (c) Microsoft Corporation.
|
|
@@ -13,7 +13,7 @@ const StandardTooltipContent = /*@__PURE__*/ proxyCustomElement(class StandardTo
|
|
|
13
13
|
this.fontFamily = undefined;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h("div", { key: '
|
|
16
|
+
return (h("div", { key: '7427840d8808ed3ebbc8b57f8bd4653243a6e9a1', class: "tooltipDefaultContainer", style: { fontSize: this.fontSize, fontFamily: this.fontFamily } }, h("b", { key: '1d7aaa16b5fa91322952d235ac8a6ba90d4a3083', style: { fontSize: `${parseInt(this.fontSize) + 6}px` } }, `${this.task.name}: ${this.task.start.getDate()}-${this.task.start.getMonth() + 1}-${this.task.start.getFullYear()} - ${this.task.end.getDate()}-${this.task.end.getMonth() + 1}-${this.task.end.getFullYear()}`), this.task.end.getTime() - this.task.start.getTime() !== 0 && (h("p", { key: 'a30ef9c69dc7091d0f935d64d76ce6aa5eb32d4c', class: "tooltipDefaultContainerParagraph" }, `Duration: ${~~((this.task.end.getTime() - this.task.start.getTime()) / (1000 * 60 * 60 * 24))} day(s)`)), h("p", { key: '2cbb86c782ec3c4e87e2ddfaf2717bada396f664', class: "tooltipDefaultContainerParagraph" }, !!this.task.progress && `Progress: ${this.task.progress} %`)));
|
|
17
17
|
}
|
|
18
18
|
static get style() { return KupStandardTooltipStyle0; }
|
|
19
19
|
}, [1, "kup-standard-tooltip", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, f as forceUpdate, h, d as Host } from './p-ef8cbd35.js';
|
|
2
|
-
import { k as kupManagerInstance, a9 as identify, g as getProps, s as setProps, Y as SortMode, L as getColumnByName, e as KupLanguageGeneric, b as KupThemeIconValues, u as KupDebugCategory, a7 as KupPointerEventTypes, aj as KupDragEffect, aA as kupDraggableAttr, al as KupDropEventTypes, J as KupLanguageSearch } from './p-
|
|
3
|
-
import { I as filterRows, J as paginateRows, G as sortRows, L as pageChange, N as rowsPerPageChange, F as FImage, O as FCell, P as FChip, Q as FTextFieldMDC, c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t, E as defineCustomElement$u, R as FPaginator } from './p-
|
|
2
|
+
import { k as kupManagerInstance, a9 as identify, g as getProps, s as setProps, Y as SortMode, L as getColumnByName, e as KupLanguageGeneric, b as KupThemeIconValues, u as KupDebugCategory, a7 as KupPointerEventTypes, aj as KupDragEffect, aA as kupDraggableAttr, al as KupDropEventTypes, J as KupLanguageSearch } from './p-85852162.js';
|
|
3
|
+
import { I as filterRows, J as paginateRows, G as sortRows, L as pageChange, N as rowsPerPageChange, F as FImage, O as FCell, P as FChip, Q as FTextFieldMDC, c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t, E as defineCustomElement$u, R as FPaginator } from './p-7e706919.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Props of the kup-box component.
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, h as h$1 } from './p-ef8cbd35.js';
|
|
2
|
-
import { c as calculateDisplayedDateRange, a as convertProjectToTasks, b as getPhaseById, m as mergeTaskIntoProjects, e as getProjectById, f as mergeTaskIntoPhases, h as columnWidthForTimeUnit, d as defineCustomElement$5 } from './p-
|
|
2
|
+
import { c as calculateDisplayedDateRange, a as convertProjectToTasks, b as getPhaseById, m as mergeTaskIntoProjects, e as getProjectById, f as mergeTaskIntoPhases, h as columnWidthForTimeUnit, d as defineCustomElement$5 } from './p-cde4d6c3.js';
|
|
3
3
|
import { K as KUP_PLANNER_MAIN_GANTT_ID, f as KUP_PLANNER_SECONDARY_GANTT_ID } from './p-a0eeacbd.js';
|
|
4
4
|
import { a as KupDates } from './p-9d9181cf.js';
|
|
5
|
-
import { g as ganttDateTimeFormatters, d as defineCustomElement$b } from './p-
|
|
5
|
+
import { g as ganttDateTimeFormatters, d as defineCustomElement$b } from './p-aa882232.js';
|
|
6
6
|
import { h } from './p-3aae989f.js';
|
|
7
|
-
import { d as defineCustomElement$e } from './p-
|
|
7
|
+
import { d as defineCustomElement$e } from './p-9a502c5d.js';
|
|
8
8
|
import { d as defineCustomElement$d } from './p-a52b0e92.js';
|
|
9
|
-
import { d as defineCustomElement$c } from './p-
|
|
10
|
-
import { d as defineCustomElement$a } from './p-
|
|
11
|
-
import { d as defineCustomElement$9 } from './p-
|
|
12
|
-
import { d as defineCustomElement$8 } from './p-
|
|
13
|
-
import { d as defineCustomElement$7 } from './p-
|
|
14
|
-
import { d as defineCustomElement$6 } from './p-
|
|
15
|
-
import { d as defineCustomElement$4 } from './p-
|
|
16
|
-
import { d as defineCustomElement$3 } from './p-
|
|
17
|
-
import { d as defineCustomElement$2 } from './p-
|
|
18
|
-
import { d as defineCustomElement$1 } from './p-
|
|
9
|
+
import { d as defineCustomElement$c } from './p-2670bfd5.js';
|
|
10
|
+
import { d as defineCustomElement$a } from './p-9a617844.js';
|
|
11
|
+
import { d as defineCustomElement$9 } from './p-bdecbc93.js';
|
|
12
|
+
import { d as defineCustomElement$8 } from './p-dc1ce1b4.js';
|
|
13
|
+
import { d as defineCustomElement$7 } from './p-bbb25c58.js';
|
|
14
|
+
import { d as defineCustomElement$6 } from './p-9d13f3da.js';
|
|
15
|
+
import { d as defineCustomElement$4 } from './p-5b1056e4.js';
|
|
16
|
+
import { d as defineCustomElement$3 } from './p-23d0f0c7.js';
|
|
17
|
+
import { d as defineCustomElement$2 } from './p-767fcf91.js';
|
|
18
|
+
import { d as defineCustomElement$1 } from './p-cbc6b3d5.js';
|
|
19
19
|
|
|
20
20
|
const CustomTooltipHOC = () => {
|
|
21
21
|
const CustomTooltip = () => h("div", null);
|
|
@@ -240,13 +240,13 @@ const KupPlannerRenderer = /*@__PURE__*/ proxyCustomElement(class KupPlannerRend
|
|
|
240
240
|
}
|
|
241
241
|
render() {
|
|
242
242
|
var _a, _b, _c;
|
|
243
|
-
return (h$1("div", { key: '
|
|
243
|
+
return (h$1("div", { key: 'c1cc0fe4d44331b5b75fb35b0afbd913caf7f622', class: "planner-render" }, h$1("kup-switcher", { key: '3c125419b5912ff9c9b9c24adba71dda785fa01d', timeUnitChange: (timeUnit) => {
|
|
244
244
|
var _a, _b;
|
|
245
245
|
(_b = (_a = this.props).onSetViewMode) === null || _b === void 0 ? void 0 : _b.call(_a, timeUnit);
|
|
246
246
|
this.timeUnit = timeUnit;
|
|
247
247
|
this.viewDate = undefined;
|
|
248
248
|
this.scrollX = -1;
|
|
249
|
-
} }), this.props && (h$1("div", { key: '
|
|
249
|
+
} }), this.props && (h$1("div", { key: 'cf92a3212f97ec496aa30ff6b7eec91e831e4b14', style: {
|
|
250
250
|
display: 'flex',
|
|
251
251
|
flexDirection: 'column',
|
|
252
252
|
} }, h$1("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) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from './index-9b0f4a0d.js';
|
|
2
2
|
import { a as FButtonStyling } from './f-button-declarations-6c8f8abe.js';
|
|
3
|
-
import { F as FImage } from './f-image-
|
|
3
|
+
import { F as FImage } from './f-image-96ea1421.js';
|
|
4
4
|
|
|
5
5
|
/*-------------------------------------------------*/
|
|
6
6
|
/* C o m p o n e n t */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { h, F as Fragment } from './index-9b0f4a0d.js';
|
|
2
|
-
import { aq as editableTypes, ar as kupTypes, R as FCellClasses, ad as FCellTypes, f as KupThemeColorValues, ao as CHIAdapter, am as RADAdapter, al as CMBandACPAdapter, as as KupTagNames, F as FCellShapes, ai as getCellValueForDisplay, a as KupComponentSizing, at as fullWidthFieldsComps, I as ItemsDisplayMode, au as autoCenterComps, av as adaptContentToDisplayMode, aw as FCellEvents, ax as isForceUppercase, ay as isForceLowercase, h as KupDebugCategory } from './kup-manager-
|
|
3
|
-
import { F as FButton } from './f-button-
|
|
4
|
-
import { F as FCheckbox } from './f-checkbox-
|
|
5
|
-
import { F as FChipType, d as FChip } from './f-chip-
|
|
6
|
-
import { F as FImage } from './f-image-
|
|
7
|
-
import { F as FObjectField } from './f-object-field-
|
|
8
|
-
import { F as FTextField } from './f-text-field-
|
|
2
|
+
import { aq as editableTypes, ar as kupTypes, R as FCellClasses, ad as FCellTypes, f as KupThemeColorValues, ao as CHIAdapter, am as RADAdapter, al as CMBandACPAdapter, as as KupTagNames, F as FCellShapes, ai as getCellValueForDisplay, a as KupComponentSizing, at as fullWidthFieldsComps, I as ItemsDisplayMode, au as autoCenterComps, av as adaptContentToDisplayMode, aw as FCellEvents, ax as isForceUppercase, ay as isForceLowercase, h as KupDebugCategory } from './kup-manager-5c23bae7.js';
|
|
3
|
+
import { F as FButton } from './f-button-6298565d.js';
|
|
4
|
+
import { F as FCheckbox } from './f-checkbox-191ec2e7.js';
|
|
5
|
+
import { F as FChipType, d as FChip } from './f-chip-3ed440ef.js';
|
|
6
|
+
import { F as FImage } from './f-image-96ea1421.js';
|
|
7
|
+
import { F as FObjectField } from './f-object-field-23935da4.js';
|
|
8
|
+
import { F as FTextField } from './f-text-field-4934ff74.js';
|
|
9
9
|
|
|
10
10
|
var FRadioType;
|
|
11
11
|
(function (FRadioType) {
|
|
@@ -581,6 +581,7 @@ const mapData = (cell, column) => {
|
|
|
581
581
|
[FCellTypes.CHECKBOX, MainCHKAdapter.bind(undefined)],
|
|
582
582
|
[FCellTypes.OBJECT, MainObjectAdapter.bind(undefined)],
|
|
583
583
|
[FCellTypes.CHIP, MainCHIAdapter.bind(undefined)],
|
|
584
|
+
[FCellTypes.FILE_UPLOAD, MainFUPAdapter.bind(undefined)],
|
|
584
585
|
]);
|
|
585
586
|
const adapter = dataAdapterMap.get(cellType);
|
|
586
587
|
return adapter ? adapter(options, fieldLabel, currentValue, cell) : null;
|
|
@@ -625,6 +626,9 @@ const MainCMBandACPAdapter = (options, fieldLabel, currentValue, cell, _id) => {
|
|
|
625
626
|
return Object.assign(Object.assign({}, configCMBandACP), cell.data);
|
|
626
627
|
}
|
|
627
628
|
};
|
|
629
|
+
const MainFUPAdapter = (_options, _fieldLabel, currentValue, cell) => {
|
|
630
|
+
return Object.assign(Object.assign({}, cell.data), { pathString: currentValue });
|
|
631
|
+
};
|
|
628
632
|
const optionsTreeComboAdapter = (options, currentValue) => {
|
|
629
633
|
const adapter = optionsAdapterMap.get(options.type);
|
|
630
634
|
if (adapter) {
|
|
@@ -1026,7 +1030,7 @@ function setKupCell(cellType, classObj, subcomponentProps, cell, row, column, pr
|
|
|
1026
1030
|
if (isAutoCentered(props)) {
|
|
1027
1031
|
classObj[FCellClasses.C_CENTERED] = true;
|
|
1028
1032
|
}
|
|
1029
|
-
const buttonProps = Object.assign({ label: cell.value, icon: cell.icon, placeholderIcon: cell.placeholderIcon }, subcomponentProps);
|
|
1033
|
+
const buttonProps = Object.assign({ label: cell.value, icon: cell.icon, placeholderIcon: cell.placeholderIcon, title: column.title }, subcomponentProps);
|
|
1030
1034
|
return (h(FButton, Object.assign({}, buttonProps, { onClick: (e) => cellEvent(e, props, cellType, FCellEvents.CLICK) })));
|
|
1031
1035
|
case FCellTypes.BUTTON_LIST:
|
|
1032
1036
|
if (isAutoCentered(props)) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FImage } from './f-image-
|
|
1
|
+
import { F as FImage } from './f-image-96ea1421.js';
|
|
2
2
|
import { h } from './index-9b0f4a0d.js';
|
|
3
3
|
|
|
4
4
|
/*-------------------------------------------------*/
|
|
@@ -28,12 +28,12 @@ const FCheckbox = (props) => {
|
|
|
28
28
|
return (h("div", Object.assign({ class: `f-checkbox ${props.danger ? 'kup-danger' : ''} ${props.error ? 'checkbox--error' : ''} ${props.info ? 'kup-info' : ''} ${props.secondary ? 'kup-secondary' : ''} ${props.success ? 'kup-success' : ''} ${props.warning ? 'kup-warning' : ''} ${props.wrapperClass ? props.wrapperClass : ''}` }, props.dataSet, { id: props.id, title: props.title }),
|
|
29
29
|
h("div", { class: `form-field ${props.leadingLabel ? 'form-field--align-end' : ''}` },
|
|
30
30
|
h("div", { class: classObj },
|
|
31
|
-
h("input", Object.assign({ type: "checkbox", class: "checkbox__native-control", checked: props.checked, disabled: props.disabled, onBlur: props.onBlur, onChange: props.onChange, onFocus: props.onFocus }, indeterminateAttr, { value: props.checked ? 'on' : 'off' })),
|
|
31
|
+
h("input", Object.assign({ id: `${props.id}_inputEl`, type: "checkbox", class: "checkbox__native-control", checked: props.checked, disabled: props.disabled, onBlur: props.onBlur, onChange: props.onChange, onFocus: props.onFocus }, indeterminateAttr, { value: props.checked ? 'on' : 'off' })),
|
|
32
32
|
h("div", { class: "checkbox__background", onClick: props.onChange },
|
|
33
33
|
h("svg", { class: "checkbox__checkmark", viewBox: "0 0 24 24" },
|
|
34
34
|
h("path", { class: "checkbox__checkmark-path", fill: "none", d: "M1.73,12.91 8.1,19.28 22.79,4.59" })),
|
|
35
35
|
h("div", { class: "checkbox__mixedmark" }))),
|
|
36
|
-
props.label ? (h("label", { htmlFor: props.id
|
|
36
|
+
props.label ? (h("label", { htmlFor: `${props.id}_inputEl` }, props.label)) : undefined),
|
|
37
37
|
props.error ? (h("div", { class: "checkbox__error-message" },
|
|
38
38
|
h(FImage, Object.assign({}, propsFImage)),
|
|
39
39
|
props.error)) : props.alert ? (h("div", { class: "checkbox__alert-message" },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from './index-9b0f4a0d.js';
|
|
2
|
-
import { F as FImage } from './f-image-
|
|
3
|
-
import { I as ItemsDisplayMode, d as KupThemeIconValues, b as KupLanguageGeneric } from './kup-manager-
|
|
2
|
+
import { F as FImage } from './f-image-96ea1421.js';
|
|
3
|
+
import { I as ItemsDisplayMode, d as KupThemeIconValues, b as KupLanguageGeneric } from './kup-manager-5c23bae7.js';
|
|
4
4
|
|
|
5
5
|
function getIdOfItemByDisplayMode(item, mode, separator) {
|
|
6
6
|
const { id, value } = item;
|
|
@@ -91,19 +91,21 @@ function createIcon(icon, color, iconClass = 'f-image__icon') {
|
|
|
91
91
|
function createImage(props) {
|
|
92
92
|
return (h("img", { class: props.placeholderResource ? HIDDEN_CLASS : '', onLoad: (e) => {
|
|
93
93
|
const img = e.currentTarget;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
props.onLoad
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
placeholder
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
iconWrapper
|
|
106
|
-
|
|
94
|
+
if (img && img.parentElement) {
|
|
95
|
+
const placeholder = img.parentElement.querySelector('.f-image__placeholder');
|
|
96
|
+
const iconWrapper = img.parentElement.querySelector('.iconWrapper');
|
|
97
|
+
const fWrapper = img.parentElement.parentElement.querySelector('.f-image');
|
|
98
|
+
if (props.onLoad) {
|
|
99
|
+
props.onLoad(e);
|
|
100
|
+
}
|
|
101
|
+
if (placeholder) {
|
|
102
|
+
placeholder.classList.add(HIDDEN_CLASS);
|
|
103
|
+
img.classList.remove(HIDDEN_CLASS);
|
|
104
|
+
}
|
|
105
|
+
if (iconWrapper) {
|
|
106
|
+
iconWrapper.classList.add(HIDDEN_CLASS);
|
|
107
|
+
fWrapper.classList.add('noIcon');
|
|
108
|
+
}
|
|
107
109
|
}
|
|
108
110
|
}, onError: (e) => {
|
|
109
111
|
const img = e.currentTarget;
|
|
@@ -139,13 +141,14 @@ function createBar(data) {
|
|
|
139
141
|
}
|
|
140
142
|
const stepId = 'step-' + i;
|
|
141
143
|
const stepClass = 'css-step bottom-aligned';
|
|
144
|
+
const withPercentage = Number(data[i].width.replace(/%$/, '')) - leftProgression;
|
|
142
145
|
const stepStyle = {
|
|
143
146
|
backgroundColor: data[i].color,
|
|
144
147
|
left: leftProgression + '%',
|
|
145
148
|
height: data[i].height,
|
|
146
|
-
width:
|
|
149
|
+
width: withPercentage + '%',
|
|
147
150
|
};
|
|
148
|
-
leftProgression +=
|
|
151
|
+
leftProgression += withPercentage;
|
|
149
152
|
drawStep = (h("span", { id: stepId, class: stepClass, style: stepStyle }));
|
|
150
153
|
steps.push(drawStep);
|
|
151
154
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from './index-9b0f4a0d.js';
|
|
2
|
-
import { a as KupComponentSizing, k as kupManagerInstance, e as KupDynamicPositionPlacement } from './kup-manager-
|
|
3
|
-
import { F as FButton } from './f-button-
|
|
2
|
+
import { a as KupComponentSizing, k as kupManagerInstance, e as KupDynamicPositionPlacement } from './kup-manager-5c23bae7.js';
|
|
3
|
+
import { F as FButton } from './f-button-6298565d.js';
|
|
4
4
|
import { a as FButtonStyling } from './f-button-declarations-6c8f8abe.js';
|
|
5
|
-
import { F as FTextField } from './f-text-field-
|
|
5
|
+
import { F as FTextField } from './f-text-field-4934ff74.js';
|
|
6
6
|
|
|
7
7
|
const STATE = new WeakMap();
|
|
8
8
|
const FObjectField = (props) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from './index-9b0f4a0d.js';
|
|
2
|
-
import { I as ItemsDisplayMode, az as KupLanguagePage, t as KupLanguageRow, a as KupComponentSizing, b as KupLanguageGeneric } from './kup-manager-
|
|
3
|
-
import { F as FButton } from './f-button-
|
|
2
|
+
import { I as ItemsDisplayMode, az as KupLanguagePage, t as KupLanguageRow, a as KupComponentSizing, b as KupLanguageGeneric } from './kup-manager-5c23bae7.js';
|
|
3
|
+
import { F as FButton } from './f-button-6298565d.js';
|
|
4
4
|
import { a as FButtonStyling } from './f-button-declarations-6c8f8abe.js';
|
|
5
5
|
|
|
6
6
|
var FPaginatorMode;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { h, g as getAssetPath } from './index-9b0f4a0d.js';
|
|
2
|
-
import { d as KupThemeIconValues } from './kup-manager-
|
|
3
|
-
import { F as FImage } from './f-image-
|
|
2
|
+
import { d as KupThemeIconValues } from './kup-manager-5c23bae7.js';
|
|
3
|
+
import { F as FImage } from './f-image-96ea1421.js';
|
|
4
4
|
|
|
5
5
|
const dom = document.documentElement;
|
|
6
|
+
let helperEl = null;
|
|
6
7
|
/*-------------------------------------------------*/
|
|
7
8
|
/* C o m p o n e n t */
|
|
8
9
|
/*-------------------------------------------------*/
|
|
@@ -48,7 +49,10 @@ function setContent(props) {
|
|
|
48
49
|
!props.legacyLook // do not show label in input panel absolute ( legacy mode )
|
|
49
50
|
) {
|
|
50
51
|
labelEl = (h("div", { class: "mdc-text-field__label-container" },
|
|
51
|
-
h("label", { class: "mdc-label", htmlFor: "kup-input" },
|
|
52
|
+
h("label", { class: "mdc-label", htmlFor: "kup-input" },
|
|
53
|
+
props.label,
|
|
54
|
+
props.labelHelper && (h("span", { onPointerMove: (e) => showHelper(e, props.labelHelper), onPointerDown: (e) => showHelper(e, props.labelHelper), onPointerOut: () => hideHelper() },
|
|
55
|
+
h(FImage, { resource: "info_outline", wrapperClass: "helper-icon" })))),
|
|
52
56
|
props.maxLength && props.showCounter ? (h("div", { class: "mdc-text-field__label-character-counter" },
|
|
53
57
|
props.value.length,
|
|
54
58
|
" / ",
|
|
@@ -304,5 +308,58 @@ const formatValue = function (value, options, inputIsLocalized) {
|
|
|
304
308
|
}
|
|
305
309
|
return dom.ketchup.math.format(formatedValue, dom.ketchup.math.createFormatPattern(options.group, options.decimal), inputIsLocalized);
|
|
306
310
|
};
|
|
311
|
+
const hideHelper = () => {
|
|
312
|
+
if (helperEl) {
|
|
313
|
+
helperEl.remove();
|
|
314
|
+
helperEl = null;
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
const showHelper = (e, text) => {
|
|
318
|
+
if (!text || text.length === 0) {
|
|
319
|
+
return;
|
|
320
|
+
}
|
|
321
|
+
if (helperEl) {
|
|
322
|
+
helperEl.innerText = text;
|
|
323
|
+
positionHelper(helperEl, e);
|
|
324
|
+
}
|
|
325
|
+
else {
|
|
326
|
+
helperEl = document.createElement('div');
|
|
327
|
+
helperEl.className = 'kup-helper-tooltip';
|
|
328
|
+
helperEl.innerText = text;
|
|
329
|
+
document.body.appendChild(helperEl);
|
|
330
|
+
positionHelper(helperEl, e);
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
const positionHelper = (element, e) => {
|
|
334
|
+
const padding = 10;
|
|
335
|
+
const viewportWidth = window.innerWidth;
|
|
336
|
+
const viewportHeight = window.innerHeight;
|
|
337
|
+
const rect = element.getBoundingClientRect();
|
|
338
|
+
const elementWidth = rect.width;
|
|
339
|
+
const elementHeight = rect.height;
|
|
340
|
+
let left = e.clientX + padding;
|
|
341
|
+
let top = e.clientY + padding;
|
|
342
|
+
// Check right edge overflow
|
|
343
|
+
if (left + elementWidth > viewportWidth) {
|
|
344
|
+
left = e.clientX - elementWidth - padding;
|
|
345
|
+
// If still overflowing on the left, align to the right edge
|
|
346
|
+
if (left < 0) {
|
|
347
|
+
left = viewportWidth - elementWidth - padding;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
// Check bottom edge overflow
|
|
351
|
+
if (top + elementHeight > viewportHeight) {
|
|
352
|
+
top = e.clientY - elementHeight - padding;
|
|
353
|
+
// If still overflowing on the top, align to the bottom edge
|
|
354
|
+
if (top < 0) {
|
|
355
|
+
top = viewportHeight - elementHeight - padding;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
// Ensure minimum padding from edges
|
|
359
|
+
left = Math.max(padding, Math.min(left, viewportWidth - elementWidth - padding));
|
|
360
|
+
top = Math.max(padding, Math.min(top, viewportHeight - elementHeight - padding));
|
|
361
|
+
element.style.left = `${left}px`;
|
|
362
|
+
element.style.top = `${top}px`;
|
|
363
|
+
};
|
|
307
364
|
|
|
308
365
|
export { FTextField as F };
|
package/dist/esm/index.js
CHANGED