@sme.up/ketchup 9.6.2 → 9.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{f-button-4c346ca8.js → f-button-89de2403.js} +2 -2
- package/dist/cjs/{f-cell-8f3d12fd.js → f-cell-75dbd6eb.js} +31 -9
- package/dist/cjs/{f-checkbox-bfa92ebe.js → f-checkbox-1fa28e76.js} +1 -1
- package/dist/cjs/{f-chip-a6c800be.js → f-chip-08857345.js} +3 -3
- package/dist/cjs/{f-image-40476fa6.js → f-image-a41d7f1e.js} +2 -2
- package/dist/cjs/{f-paginator-utils-c652ceaa.js → f-paginator-utils-ff07301e.js} +7 -4
- package/dist/cjs/{f-text-field-1f77ef23.js → f-text-field-eb207a83.js} +2 -2
- package/dist/cjs/{index-db0a6be6.js → index-958d0399.js} +21 -26
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +86 -85
- package/dist/cjs/kup-box.cjs.entry.js +60 -20
- package/dist/cjs/kup-calendar.cjs.entry.js +7 -7
- package/dist/cjs/kup-card-list.cjs.entry.js +4 -4
- package/dist/cjs/kup-cell.cjs.entry.js +10 -10
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +13 -13
- package/dist/cjs/kup-dashboard.cjs.entry.js +8 -8
- package/dist/cjs/{kup-dates-4aa560f0.js → kup-dates-e22ee32c.js} +46 -8
- package/dist/cjs/kup-drawer.cjs.entry.js +4 -4
- package/dist/cjs/kup-echart.cjs.entry.js +4 -4
- package/dist/cjs/kup-editor.cjs.entry.js +3 -3
- package/dist/cjs/kup-family-tree.cjs.entry.js +6 -6
- package/dist/cjs/kup-gantt_10.cjs.entry.js +37 -31
- package/dist/cjs/kup-grid.cjs.entry.js +4 -4
- package/dist/cjs/kup-iframe.cjs.entry.js +4 -4
- package/dist/cjs/kup-image-list.cjs.entry.js +138 -50
- package/dist/cjs/kup-input-panel.cjs.entry.js +298 -0
- package/dist/cjs/kup-lazy.cjs.entry.js +15 -15
- package/dist/cjs/kup-magic-box.cjs.entry.js +8 -8
- package/dist/cjs/{kup-manager-08f1585b.js → kup-manager-abfe4ddd.js} +639 -33
- package/dist/cjs/kup-nav-bar.cjs.entry.js +5 -5
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +6 -6
- package/dist/cjs/kup-pdf.cjs.entry.js +76600 -0
- package/dist/cjs/kup-photo-frame.cjs.entry.js +6 -6
- package/dist/cjs/{kup-planner-renderer-helper-f0c869d7.js → kup-planner-renderer-helper-9f776d6e.js} +3 -23
- package/dist/cjs/kup-planner-renderer.cjs.entry.js +13 -6
- package/dist/cjs/kup-planner.cjs.entry.js +12 -6
- package/dist/cjs/kup-probe.cjs.entry.js +4 -4
- package/dist/cjs/kup-qlik.cjs.entry.js +5 -5
- package/dist/cjs/kup-snackbar.cjs.entry.js +7 -7
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/data-table.js +7 -2
- package/dist/collection/assets/image-list.js +20 -0
- package/dist/collection/assets/index.js +12 -0
- package/dist/collection/assets/input-panel.js +249 -0
- package/dist/collection/assets/pdf.js +15 -0
- package/dist/collection/assets/planner-example-6.js +983 -0
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/kup-accordion/kup-accordion.css +128 -0
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.css +128 -0
- package/dist/collection/components/kup-badge/kup-badge.css +128 -0
- package/dist/collection/components/kup-box/kup-box.css +128 -0
- package/dist/collection/components/kup-box/kup-box.js +49 -9
- package/dist/collection/components/kup-button/kup-button.css +128 -0
- package/dist/collection/components/kup-button-list/kup-button-list.css +128 -0
- package/dist/collection/components/kup-calendar/kup-calendar.css +128 -0
- package/dist/collection/components/kup-card/kup-card.css +128 -0
- package/dist/collection/components/kup-card-list/kup-card-list.css +128 -0
- package/dist/collection/components/kup-cell/kup-cell.css +128 -0
- package/dist/collection/components/kup-chart/kup-chart.css +128 -0
- package/dist/collection/components/kup-checkbox/kup-checkbox.css +128 -0
- package/dist/collection/components/kup-chip/kup-chip.css +128 -0
- package/dist/collection/components/kup-color-picker/kup-color-picker.css +128 -0
- package/dist/collection/components/kup-combobox/kup-combobox.css +128 -0
- package/dist/collection/components/kup-dashboard/kup-dashboard.css +128 -0
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -0
- package/dist/collection/components/kup-data-table/kup-data-table.css +133 -0
- package/dist/collection/components/kup-data-table/kup-data-table.js +28 -9
- package/dist/collection/components/kup-date-picker/kup-date-picker.css +128 -0
- package/dist/collection/components/kup-dialog/kup-dialog.css +128 -0
- package/dist/collection/components/kup-drawer/kup-drawer.css +128 -0
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +128 -0
- package/dist/collection/components/kup-echart/kup-echart.css +128 -0
- package/dist/collection/components/kup-family-tree/kup-family-tree.css +128 -0
- package/dist/collection/components/kup-form/kup-form.css +128 -0
- package/dist/collection/components/kup-gauge/kup-gauge.css +128 -0
- package/dist/collection/components/kup-grid/kup-grid.css +128 -0
- package/dist/collection/components/kup-iframe/kup-iframe.css +128 -0
- package/dist/collection/components/kup-image/kup-image.css +128 -0
- package/dist/collection/components/kup-image-list/kup-image-list-declarations.js +2 -0
- package/dist/collection/components/kup-image-list/kup-image-list.css +158 -18
- package/dist/collection/components/kup-image-list/kup-image-list.js +175 -46
- package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js +8 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel.css +132 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel.e2e.js +305 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +522 -0
- package/dist/collection/components/kup-lazy/kup-lazy.css +128 -0
- package/dist/collection/components/kup-lazy/kup-lazy.js +11 -11
- package/dist/collection/components/kup-list/kup-list.css +128 -0
- package/dist/collection/components/kup-list/kup-list.js +1 -1
- package/dist/collection/components/kup-magic-box/kup-magic-box.css +128 -0
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.css +128 -0
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.css +128 -0
- 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.css +128 -0
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +2 -2
- package/dist/collection/components/kup-planner/kup-planner.css +128 -0
- package/dist/collection/components/kup-planner/kup-planner.js +7 -1
- package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
- package/dist/collection/components/kup-planner/utils/custom-task-list-header.module.css +128 -0
- package/dist/collection/components/kup-planner/utils/custom-task-list-table.js +1 -1
- package/dist/collection/components/kup-planner/utils/gantt-table.module.css +128 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.css +128 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +29 -2
- package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.css +128 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.css +128 -0
- package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css +128 -0
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer-helper.js +2 -22
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +37 -4
- package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.css +128 -0
- package/dist/collection/components/kup-planner/utils/kup-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.css +128 -0
- 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.css +128 -0
- 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.css +128 -0
- 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.css +128 -0
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
- package/dist/collection/components/kup-qlik/kup-qlik.css +128 -0
- package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
- package/dist/collection/components/kup-radio/kup-radio.css +128 -0
- package/dist/collection/components/kup-rating/kup-rating.css +128 -0
- package/dist/collection/components/kup-rating/kup-rating.js +1 -1
- package/dist/collection/components/kup-snackbar/kup-snackbar.css +128 -0
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
- package/dist/collection/components/kup-spinner/kup-spinner.css +128 -0
- package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
- package/dist/collection/components/kup-switch/kup-switch.css +128 -0
- package/dist/collection/components/kup-switch/kup-switch.js +1 -1
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +128 -0
- package/dist/collection/components/kup-text-field/kup-text-field.css +128 -0
- package/dist/collection/components/kup-time-picker/kup-time-picker.css +128 -0
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +1 -1
- package/dist/collection/components/kup-tree/kup-tree.css +128 -0
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +1 -0
- package/dist/collection/f-components/f-cell/f-cell.js +25 -2
- package/dist/collection/f-components/f-paginator/f-paginator.js +3 -0
- package/dist/collection/managers/kup-dates/kup-dates.js +18 -8
- package/dist/collection/managers/kup-interact/kup-interact.js +7 -0
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +7 -0
- package/dist/collection/types/GenericTypes.js +1 -0
- package/dist/collection/utils/cell-utils.js +2 -2
- package/dist/components/custom-task-list-header.js +3 -3
- package/dist/components/custom-task-list-table.js +2 -2
- package/dist/components/kup-accordion.js +1 -1
- package/dist/components/kup-autocomplete2.js +105 -78
- package/dist/components/kup-box2.js +51 -11
- package/dist/components/kup-calendar.js +2 -2
- package/dist/components/kup-card-list.js +1 -1
- package/dist/components/kup-cell.js +2 -2
- package/dist/components/kup-dashboard.js +2 -2
- package/dist/components/kup-dates.js +45 -9
- package/dist/components/kup-drawer.js +1 -1
- package/dist/components/kup-echart2.js +2 -2
- package/dist/components/kup-family-tree.js +1 -1
- package/dist/components/kup-gantt-calendar2.js +2 -2
- package/dist/components/kup-gantt2.js +11 -4
- package/dist/components/kup-grid-renderer2.js +3 -3
- package/dist/components/kup-grid2.js +2 -2
- package/dist/components/kup-horizontal-scroll2.js +3 -3
- package/dist/components/kup-iframe.js +2 -2
- package/dist/components/kup-image-list.js +132 -42
- package/dist/components/kup-input-panel.d.ts +11 -0
- package/dist/components/kup-input-panel.js +449 -0
- package/dist/components/kup-lazy.js +12 -12
- package/dist/components/kup-magic-box.js +5 -5
- package/dist/components/kup-manager.js +638 -32
- package/dist/components/kup-nav-bar.js +2 -2
- package/dist/components/kup-numeric-picker.js +3 -3
- package/dist/components/kup-pdf.d.ts +11 -0
- package/dist/components/kup-pdf.js +76756 -0
- package/dist/components/kup-photo-frame.js +3 -3
- package/dist/components/kup-planner-renderer-helper.js +2 -22
- package/dist/components/kup-planner-renderer2.js +12 -4
- package/dist/components/kup-planner.js +8 -2
- package/dist/components/kup-probe.js +1 -1
- package/dist/components/kup-qlik.js +2 -2
- package/dist/components/kup-snackbar.js +2 -2
- package/dist/components/kup-standard-tooltip2.js +2 -2
- package/dist/components/kup-switcher2.js +2 -2
- package/dist/components/kup-task-gantt2.js +2 -2
- package/dist/components/kup-task-list-header2.js +8 -8
- package/dist/components/kup-task-list-table2.js +2 -2
- package/dist/components/kup-task-list2.js +2 -2
- package/dist/components/kup-tooltip2.js +2 -2
- package/dist/components/kup-vertical-scroll2.js +3 -3
- package/dist/esm/{f-button-90a7ea86.js → f-button-1eebd42e.js} +2 -2
- package/dist/esm/{f-cell-fdd338c5.js → f-cell-af19d5c7.js} +31 -9
- package/dist/esm/{f-checkbox-fdf27ce9.js → f-checkbox-ddb6234e.js} +1 -1
- package/dist/esm/{f-chip-4e6341a6.js → f-chip-9e5fdb25.js} +3 -3
- package/dist/esm/{f-image-5210f0b3.js → f-image-1e1ed567.js} +2 -2
- package/dist/esm/{f-paginator-utils-3f179999.js → f-paginator-utils-dede029b.js} +7 -4
- package/dist/esm/{f-text-field-8429a853.js → f-text-field-802b45fb.js} +2 -2
- package/dist/esm/{index-bbef9f2a.js → index-460631fd.js} +21 -26
- package/dist/esm/index.js +3 -3
- package/dist/esm/ketchup.js +4 -4
- package/dist/esm/kup-accordion.entry.js +5 -5
- package/dist/esm/kup-autocomplete_27.entry.js +86 -85
- package/dist/esm/kup-box.entry.js +60 -20
- package/dist/esm/kup-calendar.entry.js +7 -7
- package/dist/esm/kup-card-list.entry.js +4 -4
- package/dist/esm/kup-cell.entry.js +10 -10
- package/dist/esm/kup-custom-task-list-header_4.entry.js +13 -13
- package/dist/esm/kup-dashboard.entry.js +8 -8
- package/dist/esm/{kup-dates-172954df.js → kup-dates-26a56bf7.js} +45 -9
- package/dist/esm/kup-drawer.entry.js +4 -4
- package/dist/esm/kup-echart.entry.js +4 -4
- package/dist/esm/kup-editor.entry.js +3 -3
- package/dist/esm/kup-family-tree.entry.js +6 -6
- package/dist/esm/kup-gantt_10.entry.js +37 -31
- package/dist/esm/kup-grid.entry.js +4 -4
- package/dist/esm/kup-iframe.entry.js +4 -4
- package/dist/esm/kup-image-list.entry.js +138 -50
- package/dist/esm/kup-input-panel.entry.js +294 -0
- package/dist/esm/kup-lazy.entry.js +15 -15
- package/dist/esm/kup-magic-box.entry.js +8 -8
- package/dist/esm/{kup-manager-8b39f876.js → kup-manager-dd24fb5a.js} +639 -33
- package/dist/esm/kup-nav-bar.entry.js +5 -5
- package/dist/esm/kup-numeric-picker.entry.js +6 -6
- package/dist/esm/kup-pdf.entry.js +76596 -0
- package/dist/esm/kup-photo-frame.entry.js +6 -6
- package/dist/esm/{kup-planner-renderer-helper-5d97e075.js → kup-planner-renderer-helper-b4727e44.js} +3 -23
- package/dist/esm/kup-planner-renderer.entry.js +13 -6
- package/dist/esm/kup-planner.entry.js +12 -6
- package/dist/esm/kup-probe.entry.js +4 -4
- package/dist/esm/kup-qlik.entry.js +5 -5
- package/dist/esm/kup-snackbar.entry.js +7 -7
- package/dist/esm/loader.js +3 -3
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-14943de9.entry.js +1 -0
- package/dist/ketchup/p-158076de.entry.js +1 -0
- package/dist/ketchup/p-180cd7ab.entry.js +1 -0
- package/dist/ketchup/p-19a13672.entry.js +1 -0
- package/dist/ketchup/p-201f8d7b.entry.js +1 -0
- package/dist/ketchup/p-26d42b88.entry.js +1 -0
- package/dist/ketchup/{p-35d503e2.js → p-2d4a9235.js} +1 -1
- package/dist/ketchup/p-2e04042b.entry.js +1 -0
- package/dist/ketchup/{p-4c20fefd.entry.js → p-34d70475.entry.js} +1 -1
- package/dist/ketchup/p-3b544027.entry.js +1 -0
- package/dist/ketchup/{p-82694fad.entry.js → p-43ce397b.entry.js} +1 -1
- package/dist/ketchup/p-47040db6.js +2 -0
- package/dist/ketchup/p-489af77f.entry.js +1 -0
- package/dist/ketchup/{p-4eb70dd2.entry.js → p-4f69f6f9.entry.js} +4 -4
- package/dist/ketchup/{p-5e16c9d3.js → p-61e8d573.js} +1 -1
- package/dist/ketchup/p-636be6f1.entry.js +16 -0
- package/dist/ketchup/p-63c141d9.entry.js +1 -0
- package/dist/ketchup/p-6972fa0c.entry.js +1 -0
- package/dist/ketchup/{p-86f9b0d9.js → p-6c888179.js} +1 -1
- package/dist/ketchup/p-79f4dc5b.entry.js +1 -0
- package/dist/ketchup/p-818e61d5.entry.js +1 -0
- package/dist/ketchup/p-8229b97a.js +28 -0
- package/dist/ketchup/p-8f3d400a.entry.js +44 -0
- package/dist/ketchup/{p-f9766625.js → p-8fcdf454.js} +1 -1
- package/dist/ketchup/p-a2e14d8b.entry.js +1 -0
- package/dist/ketchup/p-a2e691b8.entry.js +9 -0
- package/dist/ketchup/p-a46f99d4.js +1 -0
- package/dist/ketchup/p-b238cde7.entry.js +1 -0
- package/dist/ketchup/p-b3b50bb5.entry.js +1 -0
- package/dist/ketchup/{p-c089b961.js → p-c0f660d6.js} +1 -1
- package/dist/ketchup/{p-ee30e274.entry.js → p-cd7fec02.entry.js} +1 -1
- package/dist/ketchup/p-dcf7e9b6.entry.js +1 -0
- package/dist/ketchup/p-e0e47ca9.entry.js +1 -0
- package/dist/ketchup/{p-dc18691c.js → p-e2bf2bb6.js} +1 -1
- package/dist/ketchup/{p-2778f948.js → p-e4c63684.js} +1 -1
- package/dist/ketchup/p-e7507dd6.entry.js +1 -0
- package/dist/ketchup/p-eb8ea3a6.js +1 -0
- package/dist/ketchup/p-f998ff28.entry.js +1 -0
- package/dist/ketchup/p-f9a7c21c.entry.js +1 -0
- package/dist/types/components/kup-box/kup-box.d.ts +1 -0
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +1 -0
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +4 -0
- package/dist/types/components/kup-image-list/kup-image-list-declarations.d.ts +19 -4
- package/dist/types/components/kup-image-list/kup-image-list.d.ts +13 -11
- package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +79 -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.d.ts +1 -0
- package/dist/types/components/kup-planner/utils/kup-gantt/kup-gantt.d.ts +4 -0
- package/dist/types/components/kup-planner/utils/kup-planner-renderer.d.ts +6 -0
- package/dist/types/components.d.ts +202 -8
- package/dist/types/f-components/f-image/f-image-declarations.d.ts +3 -4
- package/dist/types/managers/kup-dates/kup-dates.d.ts +2 -2
- package/dist/types/managers/kup-interact/kup-interact.d.ts +5 -0
- package/dist/types/types/GenericTypes.d.ts +1 -0
- package/package.json +2 -1
- package/dist/ketchup/p-02820c2b.entry.js +0 -1
- package/dist/ketchup/p-09d853c3.entry.js +0 -1
- package/dist/ketchup/p-14e1a36b.entry.js +0 -1
- package/dist/ketchup/p-1936c6cd.entry.js +0 -1
- package/dist/ketchup/p-1ad7fea0.js +0 -2
- package/dist/ketchup/p-318c9ecd.entry.js +0 -1
- package/dist/ketchup/p-35dce86e.entry.js +0 -1
- package/dist/ketchup/p-3c9ac0fd.entry.js +0 -1
- package/dist/ketchup/p-5739cdc2.entry.js +0 -1
- package/dist/ketchup/p-5ab3a88a.entry.js +0 -1
- package/dist/ketchup/p-6780a391.js +0 -1
- package/dist/ketchup/p-67930d7c.entry.js +0 -1
- package/dist/ketchup/p-6953f769.entry.js +0 -1
- package/dist/ketchup/p-7d2fd8bd.entry.js +0 -1
- package/dist/ketchup/p-8257141a.entry.js +0 -1
- package/dist/ketchup/p-8ea68d14.entry.js +0 -1
- package/dist/ketchup/p-98c72335.entry.js +0 -1
- package/dist/ketchup/p-ab8cac45.entry.js +0 -1
- package/dist/ketchup/p-b5d3c24d.entry.js +0 -1
- package/dist/ketchup/p-cdb24584.entry.js +0 -1
- package/dist/ketchup/p-d466d6d1.entry.js +0 -1
- package/dist/ketchup/p-de07d17e.js +0 -1
- package/dist/ketchup/p-df450df9.entry.js +0 -16
- package/dist/ketchup/p-f31530fc.js +0 -28
- package/dist/ketchup/p-f353805e.entry.js +0 -1
- package/dist/ketchup/p-f515308d.entry.js +0 -9
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,f as i,h as a,H as r,d as l}from"./p-1ad7fea0.js";import{F as o}from"./p-35d503e2.js";import{F as s}from"./p-c634eb82.js";import{F as _}from"./p-c089b961.js";import{k as n,g as m,s as f,l as h,M as c}from"./p-f31530fc.js";import{c as p}from"./p-635bb4b3.js";import"./p-de07d17e.js";var u;!function(t){t.autofitOnExpand="The component will autofit everytime a node is expanded.",t.autofitOnLoad="The component's initial render will fit the container by invoking the runAutofit method.",t.cardData="Used to render the family tree boxes as kup-cards (through kup-box).",t.collapsible="Nodes can be expanded/collapsed.",t.customStyle="Custom style of the component.",t.data="Actual data of the component",t.layout="Layout of the boxes.",t.stackedLeaves="Child nodes that have no children are arranged vertically."}(u||(u={}));var d,y,k,v,g,b,x,w,j,C,E,T,W,M,S,z,D,L,O,P,A,F,R,X,Y,H=function(t,e,i,a){if("a"===i&&!a)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!a:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?a:"a"===i?a.call(t):a?a.value:e.get(t)},$=function(t,e,i,a,r){if("m"===a)throw new TypeError("Private method is not writable");if("a"===a&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===a?r.call(t,i):r?r.value=i:e.set(t,i),i};const B=class{constructor(i){t(this,i),this.kupClick=e(this,"kup-familytree-click",6),this.kupContextMenu=e(this,"kup-familytree-contextmenu",6),this.kupDblClick=e(this,"kup-familytree-dblclick",6),d.add(this),y.set(this,[]),k.set(this,!1),v.set(this,0),g.set(this,0),b.set(this,[]),x.set(this,n()),w.set(this,(t=>{const e=t.clientX-H(this,v,"f"),i=t.clientY-H(this,g,"f");this.rootElement.scrollTop-=i,this.rootElement.scrollLeft-=e,$(this,v,t.clientX,"f"),$(this,g,t.clientY,"f")})),j.set(this,!1),C.set(this,null),this.autofitOnExpand=!0,this.autofitOnLoad=!0,this.cardData=null,this.collapsible=!0,this.customStyle="",this.data=null,this.layout=null,this.stackedLeaves=!1}async collapseAll(t=this.data.rows){H(this,x,"f").data.node.setProperties(t,{isExpanded:!1},!0),this.refresh()}async expandAll(t=this.data.rows){H(this,x,"f").data.node.setProperties(t,{isExpanded:!0},!0),this.refresh()}async getProps(t){return m(this,u,t)}async refresh(){i(this)}async runAutofit(){const t=H(this,C,"f").clientWidth,e=H(this,C,"f").children[0].clientWidth,i=.01,a=.85*t,r=.95*t;let l=1,o=2e3,s=e;for(;(s<a||s>r)&&o>0&&l>i;)o--,s<a?l+=i:s>r?l-=i:o=0,s=e*l;H(this,C,"f").style.setProperty("--kup_familytree_scale",l<=1?l.toFixed(2):"1")}async setProps(t){f(this,u,t)}componentWillLoad(){H(this,x,"f").debug.logLoad(this,!1),H(this,x,"f").language.register(this),H(this,x,"f").theme.register(this)}componentDidLoad(){H(this,d,"m",X).call(this),this.autofitOnLoad&&this.runAutofit(),H(this,x,"f").debug.logLoad(this,!0)}componentWillRender(){H(this,x,"f").debug.logRender(this,!1)}componentDidRender(){H(this,j,"f")&&($(this,j,!1,"f"),this.runAutofit()),H(this,x,"f").debug.logRender(this,!0)}render(){return a(r,{key:"84ce528e459f5a79624e5e9fc5787477ff623746",onDrag:t=>t.preventDefault(),onPointerDown:t=>{t.preventDefault(),H(this,d,"m",O).call(this,t)},onWheel:t=>{H(this,d,"m",Y).call(this,t)}},a("style",{key:"1fe47674c65a2cd4929f907d8a2a7ae0c7d21f73"},H(this,x,"f").theme.setKupStyle(this.rootElement)),a("div",{key:"253190ac263c49f65981919ad5bdc26388832d66",id:p},H(this,d,"m",D).call(this)))}disconnectedCallback(){H(this,x,"f").language.unregister(this),H(this,x,"f").theme.unregister(this)}get rootElement(){return l(this)}};y=new WeakMap,k=new WeakMap,v=new WeakMap,g=new WeakMap,b=new WeakMap,x=new WeakMap,w=new WeakMap,j=new WeakMap,C=new WeakMap,d=new WeakSet,E=function(t,e,i,r){const l=[];return l.push(a("td",{class:{"family-tree__line":!0,"family-tree__line--right":!t,"family-tree__line--top":!t}},a("div",{class:"family-tree__line--placeholder"}))),l.push(a("td",{class:{"family-tree__line":!0,"family-tree__line--left":t,"family-tree__line--top":t&&!i||r&&!e}},a("div",{class:"family-tree__line--placeholder"}))),l},T=function t(e){var i;let r=null,l=null;(!this.collapsible||this.collapsible&&e.isExpanded)&&(null===(i=e.children)||void 0===i||i.forEach((t=>{t.isStaff?(l||(l=[]),l.push(t)):(r||(r=[]),r.push(t))})));const _=this.stackedLeaves&&r&&r.every((t=>!t.children||0==t.children.length)),n=r?2*r.length:1,m={"family-tree__line":!0,"family-tree__line--placeholder":!(!r&&!l),"family-tree__line--vertical":!(!r&&!l)},f={columns:[{name:"*TREECOL",title:"Fake column",visible:!1},...this.data.columns],rows:[{cells:Object.assign({"*TREECOL":e},e.cells)}]},c=e.layout||this.layout||1,p={icon:e.isExpanded?"remove":"plus",shaped:!0,slim:!0,styling:s.OUTLINED,title:`${H(this,x,"f").language.translate(h.EXPAND)}/${H(this,x,"f").language.translate(h.COLLAPSE)} (CTRL + Click)`,onClick:t=>{t.ctrlKey&&e.children&&e.children.length>0&&(e.isExpanded?this.collapseAll(e.children):this.expandAll(e.children)),e.isExpanded=!e.isExpanded,this.autofitOnExpand&&$(this,j,!0,"f"),this.refresh()},wrapperClass:"family-tree__item__expand"};let u=null;H(this,d,"m",L).call(this,c)&&(u=a("kup-box",{class:"kup-borderless kup-paddingless",customStyle:"#kup-component { background: var(--kup_familytree_item_background_color); border: 2px solid var(--kup_familytree_lines_color); box-sizing: border-box; height: var(--kup_familytree_item_height); padding: 0 var(--kup_familytree_item_h_padding); } #kup-component .box-component { background: var(--kup_familytree_item_background_color); box-sizing: border-box; height: 100%;} #kup-component .f-cell__text { color: var(--kup_familytree_item_color); }",data:f,cardData:this.cardData,layout:this.cardData?null:c,showSelection:!1}));const y=a("div",{class:"family-tree__item"},a("div",{class:"family-tree__item__wrapper"},H(this,d,"m",L).call(this,c)?u:H(this,d,"m",W).call(this,e,c),this.collapsible&&e.children&&e.children.length>0?a(o,Object.assign({},p)):void 0)),k={"--kup_familytree_staffchildren":(null==l?void 0:l.length.toString())||"0"};return a("table",{class:{"family-tree__node":!0,"family-tree__node--stacked":this.stackedLeaves&&!e.isStaff&&(!e.children||0==e.children.length)}},a("tr",null,a("td",{"data-row":e,colSpan:n},y)),a("tr",null,a("td",{colSpan:n},a("div",{class:m}))),l?[a("tr",null,a("td",{colSpan:n},a("div",{class:Object.assign(Object.assign({},m),{"family-tree__line--staff":!0}),style:k}),a("div",{class:"family-tree__node__staff",style:k},l.map((e=>[a("div",{class:"family-tree__node__staff__item"},H(this,d,"m",t).call(this,e))])))))]:null,l&&r?[a("tr",null,a("td",{colSpan:n},a("div",{class:m})))]:null,r?[a("tr",null,_?a("td",{colSpan:n},a("div",{class:m})):r.map((t=>H(this,d,"m",E).call(this,0==r.indexOf(t),r.indexOf(t)==r.length-1,1==r.length,r.length>2)))),a("tr",null,_?a("td",{colSpan:n},r.map((e=>H(this,d,"m",t).call(this,e)))):r.map((e=>a("td",{colSpan:2},H(this,d,"m",t).call(this,e)))))]:void 0)},W=function(t,e){return 2===e?H(this,d,"m",S).call(this,t):H(this,d,"m",M).call(this,t)},M=function(t){return a("div",{class:"family-tree__item__layout family-tree__item__layout--1"},a("div",{class:"family-tree__item__layout__text__title"},t.value))},S=function(t){return a("div",{class:"family-tree__item__layout family-tree__item__layout--2"},a("div",{class:"family-tree__item__layout__color"}),a("div",{class:"family-tree__item__layout__image"},a(_,{resource:t.icon,sizeX:"48px",sizeY:"48px"})),a("div",{class:"family-tree__item__layout__text"},a("div",{class:"family-tree__item__layout__text__title"},t.value),t.title?a("div",{class:"family-tree__item__layout__text__subtitle"},t.title):null))},z=function(t){return t.map((t=>H(this,d,"m",T).call(this,t)))},D=function(){return a("div",{class:"family-tree",onContextMenu:t=>{t.preventDefault()},ref:t=>$(this,C,t,"f")},this.data&&this.data.rows&&this.data.rows.length?H(this,d,"m",z).call(this,this.data.rows):a("div",null,H(this,x,"f").language.translate(h.EMPTY_DATA)))},L=function(t){return!!this.cardData||t&&t.sections&&t.sections.length>0},O=function(t){$(this,v,t.clientX,"f"),$(this,g,t.clientY,"f"),H(this,C,"f").classList.add("family-tree--dragging");const e=()=>{document.removeEventListener("pointermove",H(this,w,"f")),document.removeEventListener("pointerup",e),H(this,C,"f").classList.remove("family-tree--dragging")};document.addEventListener("pointermove",H(this,w,"f")),document.addEventListener("pointerup",e)},P=function(t,e){let i,a;if(t)for(let e=t.length-1;e>=0;e--){const r=t[e];r.tagName&&(r.classList.contains("family-tree__item__expand")&&(i=r),"TD"===r.tagName.toUpperCase())&&(a=r)}let r=null,l=null,o=null;return a&&(r=a["data-cell"],l=a["data-column"],o=a["data-row"]),{cell:r||null,column:l||null,expandButton:i||null,originalEvent:e,row:o||null,td:a||null}},A=function(t){return H(this,d,"m",P).call(this,H(this,x,"f").getEventPath(t.target,this.rootElement),t)},F=function(t){return H(this,d,"m",P).call(this,H(this,x,"f").getEventPath(t.target,this.rootElement),t)},R=function(t){return H(this,d,"m",P).call(this,H(this,x,"f").getEventPath(t.target,this.rootElement),t)},X=function(){H(this,b,"f").push(this.rootElement),H(this,x,"f").interact.on(this.rootElement,c.TAP,(t=>{if(H(this,k,"f"))$(this,k,!1,"f");else switch(t.button){case 0:const e={};for(const i in t)e[i]=t[i];H(this,y,"f").push(setTimeout((()=>{this.kupClick.emit({comp:this,id:this.rootElement.id,details:H(this,d,"m",A).call(this,e)})}),300));break;case 2:this.kupContextMenu.emit({comp:this,id:this.rootElement.id,details:H(this,d,"m",F).call(this,t)})}})),H(this,x,"f").interact.on(this.rootElement,c.DOUBLETAP,(t=>{if(0===t.button){for(let t=0;t<H(this,y,"f").length;t++)clearTimeout(H(this,y,"f")[t]),H(this,x,"f").debug.logMessage(this,"Cleared clickHandler timeout("+H(this,y,"f")[t]+").");$(this,y,[],"f"),this.kupDblClick.emit({comp:this,id:this.rootElement.id,details:H(this,d,"m",R).call(this,t)})}})),H(this,x,"f").interact.on(this.rootElement,c.HOLD,(t=>{"pen"!==t.pointerType&&"touch"!==t.pointerType||($(this,k,!0,"f"),this.kupContextMenu.emit({comp:this,id:this.rootElement.id,details:H(this,d,"m",F).call(this,t)}))}))},Y=function(t){if(t.ctrlKey){t.preventDefault();const e=parseFloat(H(this,C,"f").style.getPropertyValue("--kup_familytree_scale"))||1,i=.05;let a=t.deltaY>0?e-i:e+i;a<i&&(a=i),H(this,C,"f").style.setProperty("--kup_familytree_scale",a.toFixed(2))}},B.style=':host{--kup_familytree_item_background_color:var(\n --kup-familytree-item-background-color,\n var(--kup-background-color)\n );--kup_familytree_item_color:var(\n --kup-familytree-item-color,\n var(--kup-text-color)\n );--kup_familytree_item_height:var(--kup-familytree-item-height, 80px);--kup_familytree_item_h_padding:var(--kup-familytree-item-h-padding, 8px);--kup_familytree_item_v_padding:var(--kup-familytree-item-v-padding, 10px);--kup_familytree_item_width:var(--kup-familytree-item-width, 280px);--kup_familytree_lines_color:var(\n --kup-familytree-lines-color,\n var(--kup-border-color)\n );display:block;overflow:hidden}.family-tree{cursor:grab;display:flex;transform:scale(var(--kup_familytree_scale, 1));transform-origin:0px 0px}.family-tree--dragging{cursor:grabbing}.family-tree__node{border-collapse:collapse;margin:auto}.family-tree__node--stacked{margin-bottom:4px}.family-tree__node__staff{align-items:center;display:flex;flex-direction:column;height:0;transform:translateX(calc((var(--kup_familytree_item_width) + var(--kup_familytree_item_h_padding) * 2) / 2)) translateY(calc(0px - (var(--kup_familytree_staffchildren) * var(--kup_familytree_item_height) + var(--kup_familytree_staffchildren) * var(--kup_familytree_item_v_padding) * 2)))}.family-tree__node__staff__item{padding:var(--kup_familytree_item_v_padding);text-align:left}.family-tree__node__staff__item:before{border-top:2px solid var(--kup_familytree_lines_color);content:"";position:absolute;transform:translateX(calc(100% + 2px)) translateY(calc(var(--kup_familytree_item_height) / 2));width:var(--kup_familytree_item_h_padding)}.family-tree__node td{vertical-align:top;padding:0}.family-tree__line--left{border-left:2px solid var(--kup_familytree_lines_color)}.family-tree__line--placeholder{height:calc(var(--kup_familytree_item_height) / 2)}.family-tree__line--staff{height:calc(var(--kup_familytree_staffchildren) * var(--kup_familytree_item_height) + var(--kup_familytree_staffchildren) * var(--kup_familytree_item_v_padding) * 2)}.family-tree__line--right{border-right:2px solid var(--kup_familytree_lines_color)}.family-tree__line--top{border-top:2px solid var(--kup_familytree_lines_color)}.family-tree__line--vertical{background-color:var(--kup_familytree_lines_color);margin-left:auto;margin-right:auto;width:2px}.family-tree__item{display:flex}.family-tree__item__wrapper{margin:auto}.family-tree__item__wrapper kup-box{margin:0 auto;overflow:hidden;padding:0 18px;width:var(--kup_familytree_item_width);z-index:1}.family-tree__item__wrapper .f-button{--kup-button-primary-color:var(--kup-text-color);--kup-button-primary-color-rgb:var(--kup-text-color-rgb);--kup-button-primary-color-h:var(--kup-text-color-h);--kup-button-primary-color-s:var(--kup-text-color-s);--kup-button-primary-color-l:var(--kup-text-color-l);margin:0 auto;width:max-content}.family-tree__item__wrapper .f-button button{height:32px;width:32px}.family-tree__item__layout{background-color:var(--kup_familytree_item_background_color);border:1px solid var(--kup_familytree_lines_color);border-radius:8px;box-sizing:border-box;display:flex;height:var(--kup_familytree_item_height);margin:0 18px;width:var(--kup_familytree_item_width)}.family-tree__item__layout--1{justify-content:center;color:var(--kup_familytree_item_color)}.family-tree__item__layout--1>.family-tree__item__layout__text__title{margin-top:auto;margin-bottom:auto}.family-tree__item__layout--2{background-color:var(--kup_familytree_item_background_color);justify-content:flex-start}.family-tree__item__layout__color{background-color:var(--kup-secondary-color);border-bottom-left-radius:8px;border-top-left-radius:8px;height:100%;width:10px}.family-tree__item__layout__image{display:flex;margin:auto 10px}.family-tree__item__layout__image img{border-radius:50px;object-fit:cover}.family-tree__item__layout__text{display:flex;flex-direction:column;justify-content:center}.family-tree__item__layout__text__title{font-size:18px;margin-bottom:5px}.family-tree__item__layout__text__subtitle{font-size:14px}.family-tree__item__layout__text__title,.family-tree__item__layout__text__subtitle{max-width:calc(var(--kup_familytree_item_width) - 30%);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}';export{B as kup_family_tree}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t,e,r,n,i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}!function(t){t.DATE="date",t.TIME="time",t.TIMESTAMP="timestamp"}(t||(t={})),function(t){t.CHINESE="cn",t.ENGLISH="en",t.FRENCH="fr",t.ITALIAN="it",t.POLISH="pl",t.RUSSIAN="ru",t.SPANISH="es"}(e||(e={})),function(t){t.NUMERIC="numeric",t.DIGIT2="2-digit",t.LONG="long",t.SHORT="short",t.NARROW="narrow"}(r||(r={})),function(t){t.ISO_DATE="YYYY-MM-DD",t.ISO_DATE_TIME="YYYY-MM-DD HH:mm:ss",t.ISO_TIME="HH:mm:ss",t.ISO_TIME_WITHOUT_SECONDS="HH:mm"}(n||(n={}));var a={exports:{}};a.exports=function(){var t=6e4,e=36e5,r="millisecond",n="second",i="minute",s="hour",a="day",u="week",o="month",_="quarter",c="year",d="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},Y=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},l={s:Y,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+Y(n,2,"0")+":"+Y(i,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,o),s=r-i<0,a=e.clone().add(n+(s?-1:1),o);return+(-(n+(r-i)/(s?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:o,y:c,w:u,d:a,D:d,h:s,m:i,s:n,ms:r,Q:_}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},v="en",D={};D[v]=M;var y="$isDayjsObject",L=function(t){return t instanceof S||!(!t||!t[y])},g=function t(e,r,n){var i;if(!e)return v;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),r&&(D[s]=r,i=s);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var u=e.name;D[u]=e,i=u}return!n&&i&&(v=i),i||!n&&v},w=function(t,e){if(L(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new S(r)},p=l;p.l=g,p.i=L,p.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function M(t){this.$L=g(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[y]=!0}var Y=M.prototype;return Y.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(p.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(m);if(n){var i=n[2]-1||0,s=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)}}return new Date(e)}(t),this.init()},Y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},Y.$utils=function(){return p},Y.isValid=function(){return!(this.$d.toString()===h)},Y.isSame=function(t,e){var r=w(t);return this.startOf(e)<=r&&r<=this.endOf(e)},Y.isAfter=function(t,e){return w(t)<this.startOf(e)},Y.isBefore=function(t,e){return this.endOf(e)<w(t)},Y.$g=function(t,e,r){return p.u(t)?this[e]:this.set(r,t)},Y.unix=function(){return Math.floor(this.valueOf()/1e3)},Y.valueOf=function(){return this.$d.getTime()},Y.startOf=function(t,e){var r=this,_=!!p.u(e)||e,h=p.p(t),m=function(t,e){var n=p.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return _?n:n.endOf(a)},f=function(t,e){return p.w(r.toDate()[t].apply(r.toDate("s"),(_?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},M=this.$W,Y=this.$M,l=this.$D,v="set"+(this.$u?"UTC":"");switch(h){case c:return _?m(1,0):m(31,11);case o:return _?m(1,Y):m(0,Y+1);case u:var D=this.$locale().weekStart||0,y=(M<D?M+7:M)-D;return m(_?l-y:l+(6-y),Y);case a:case d:return f(v+"Hours",0);case s:return f(v+"Minutes",1);case i:return f(v+"Seconds",2);case n:return f(v+"Milliseconds",3);default:return this.clone()}},Y.endOf=function(t){return this.startOf(t,!1)},Y.$set=function(t,e){var u,_=p.p(t),h="set"+(this.$u?"UTC":""),m=(u={},u[a]=h+"Date",u[d]=h+"Date",u[o]=h+"Month",u[c]=h+"FullYear",u[s]=h+"Hours",u[i]=h+"Minutes",u[n]=h+"Seconds",u[r]=h+"Milliseconds",u)[_],f=_===a?this.$D+(e-this.$W):e;if(_===o||_===c){var M=this.clone().set(d,1);M.$d[m](f),M.init(),this.$d=M.set(d,Math.min(this.$D,M.daysInMonth())).$d}else m&&this.$d[m](f);return this.init(),this},Y.set=function(t,e){return this.clone().$set(t,e)},Y.get=function(t){return this[p.p(t)]()},Y.add=function(r,_){var d,h=this;r=Number(r);var m=p.p(_),f=function(t){var e=w(h);return p.w(e.date(e.date()+Math.round(t*r)),h)};if(m===o)return this.set(o,this.$M+r);if(m===c)return this.set(c,this.$y+r);if(m===a)return f(1);if(m===u)return f(7);var M=(d={},d[i]=t,d[s]=e,d[n]=1e3,d)[m]||1,Y=this.$d.getTime()+r*M;return p.w(Y,this)},Y.subtract=function(t,e){return this.add(-1*t,e)},Y.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=p.z(this),s=this.$H,a=this.$m,u=this.$M,o=r.weekdays,_=r.months,c=function(t,r,i,s){return t&&(t[r]||t(e,n))||i[r].slice(0,s)},d=function(t){return p.s(s%12||12,t,"0")},m=r.meridiem||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(f,(function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return p.s(e.$y,4,"0");case"M":return u+1;case"MM":return p.s(u+1,2,"0");case"MMM":return c(r.monthsShort,u,_,3);case"MMMM":return c(_,u);case"D":return e.$D;case"DD":return p.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return c(r.weekdaysMin,e.$W,o,2);case"ddd":return c(r.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return p.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return m(s,a,!0);case"A":return m(s,a,!1);case"m":return String(a);case"mm":return p.s(a,2,"0");case"s":return String(e.$s);case"ss":return p.s(e.$s,2,"0");case"SSS":return p.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},Y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Y.diff=function(r,d,h){var m,f=this,M=p.p(d),Y=w(r),l=(Y.utcOffset()-this.utcOffset())*t,v=this-Y,D=function(){return p.m(f,Y)};switch(M){case c:m=D()/12;break;case o:m=D();break;case _:m=D()/3;break;case u:m=(v-l)/6048e5;break;case a:m=(v-l)/864e5;break;case s:m=v/e;break;case i:m=v/t;break;case n:m=v/1e3;break;default:m=v}return h?m:p.a(m)},Y.daysInMonth=function(){return this.endOf(o).$D},Y.$locale=function(){return D[this.$L]},Y.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=g(t,e,!0);return n&&(r.$L=n),r},Y.clone=function(){return p.w(this.$d,this)},Y.toDate=function(){return new Date(this.valueOf())},Y.toJSON=function(){return this.isValid()?this.toISOString():null},Y.toISOString=function(){return this.$d.toISOString()},Y.toString=function(){return this.$d.toUTCString()},M}(),b=S.prototype;return w.prototype=b,[["$ms",r],["$s",n],["$m",i],["$H",s],["$W",a],["$M",o],["$y",c],["$D",d]].forEach((function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),w.extend=function(t,e){return t.$i||(t(e,S,w),t.$i=!0),w},w.locale=g,w.isDayjs=L,w.unix=function(t){return w(1e3*t)},w.en=D[v],w.Ls=D,w.p={},w}();const u=a.exports;var o={exports:{}};o.exports=function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,n=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},a=function(t){return(t=+t)+(t>68?1900:2e3)},u=function(t){return function(e){this[t]=+e}},o=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),r=60*e[1]+(+e[2]||0);return 0===r?0:"+"===e[0]?-r:r}(t)}],_=function(t){var e=s[t];return e&&(e.indexOf?e:e.s.concat(e.f))},c=function(t,e){var r,n=s.meridiem;if(n){for(var i=1;i<=24;i+=1)if(t.indexOf(n(i,0,e))>-1){r=i>12;break}}else r=t===(e?"pm":"PM");return r},d={A:[i,function(t){this.afternoon=c(t,!1)}],a:[i,function(t){this.afternoon=c(t,!0)}],S:[/\d/,function(t){this.milliseconds=100*+t}],SS:[r,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[n,u("seconds")],ss:[n,u("seconds")],m:[n,u("minutes")],mm:[n,u("minutes")],H:[n,u("hours")],h:[n,u("hours")],HH:[n,u("hours")],hh:[n,u("hours")],D:[n,u("day")],DD:[r,u("day")],Do:[i,function(t){var e=s.ordinal,r=t.match(/\d+/);if(this.day=r[0],e)for(var n=1;n<=31;n+=1)e(n).replace(/\[|\]/g,"")===t&&(this.day=n)}],M:[n,u("month")],MM:[r,u("month")],MMM:[i,function(t){var e=_("months"),r=(_("monthsShort")||e.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(r<1)throw new Error;this.month=r%12||r}],MMMM:[i,function(t){var e=_("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,u("year")],YY:[r,function(t){this.year=a(t)}],YYYY:[/\d{4}/,u("year")],Z:o,ZZ:o};function h(r){var n;n=s&&s.formats;for(var i=(r=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,r,i){var s=i&&i.toUpperCase();return r||n[i]||t[i]||n[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,r){return e||r.slice(1)}))}))).match(e),a=i.length,u=0;u<a;u+=1){var o=i[u],_=d[o],c=_&&_[1];i[u]=c?{regex:_&&_[0],parser:c}:o.replace(/^\[|\]$/g,"")}return function(t){for(var e={},r=0,n=0;r<a;r+=1){var s=i[r];if("string"==typeof s)n+=s.length;else{var u=s.regex,o=s.parser,_=t.slice(n),c=u.exec(_)[0];o.call(e,c),t=t.replace(c,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var r=t.hours;e?r<12&&(t.hours+=12):12===r&&(t.hours=0),delete t.afternoon}}(e),e}}return function(t,e,r){r.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(a=t.parseTwoDigitYear);var n=e.prototype,i=n.parse;n.parse=function(t){var e=t.date,n=t.utc,a=t.args;this.$u=n;var u=a[1];if("string"==typeof u){var o=!0===a[2],_=!0===a[3],c=o||_,d=a[2];_&&(d=a[2]),s=this.$locale(),!o&&d&&(s=r.Ls[d]),this.$d=function(t,e,r){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var n=h(e)(t),i=n.year,s=n.month,a=n.day,u=n.hours,o=n.minutes,_=n.seconds,c=n.milliseconds,d=n.zone,m=new Date,f=a||(i||s?1:m.getDate()),M=i||m.getFullYear(),Y=0;i&&!s||(Y=s>0?s-1:m.getMonth());var l=u||0,v=o||0,D=_||0,y=c||0;return d?new Date(Date.UTC(M,Y,f,l,v,D,y+60*d.offset*1e3)):r?new Date(Date.UTC(M,Y,f,l,v,D,y)):new Date(M,Y,f,l,v,D,y)}catch(t){return new Date("")}}(e,u,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),c&&e!=this.format(u)&&(this.$d=new Date("")),s={}}else if(u instanceof Array)for(var m=u.length,f=1;f<=m;f+=1){a[1]=u[f-1];var M=r.apply(this,a);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}f===m&&(this.$d=new Date(""))}else i.call(this,t)}}}();const _=o.exports;var c;const d={exports:{}}.exports=(c={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},function(t,e,r){var n=e.prototype,i=n.format;r.en.formats=c,n.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var e=this.$locale().formats,r=function(t,e){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,n){var i=n&&n.toUpperCase();return r||e[n]||c[n]||e[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,r){return e||r.slice(1)}))}))}(t,void 0===e?{}:e);return i.call(this,r)}});var h={exports:function(t,e,r){var n=function(t,e){if(!e||!e.length||1===e.length&&!e[0]||1===e.length&&Array.isArray(e[0])&&!e[0].length)return null;var r;1===e.length&&e[0].length>0&&(e=e[0]),r=(e=e.filter((function(t){return t})))[0];for(var n=1;n<e.length;n+=1)e[n].isValid()&&!e[n][t](r)||(r=e[n]);return r};r.max=function(){var t=[].slice.call(arguments,0);return n("isAfter",t)},r.min=function(){var t=[].slice.call(arguments,0);return n("isBefore",t)}}};const m=h.exports;var f,M,Y,l;f=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(a.exports),M={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(t){return t+"º"}},f.default.locale(M,null,!0),Y=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(a.exports),l={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(t){return t+(1===t?"er":"")}},Y.default.locale(l,null,!0),function(){var t=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(a.exports),e={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(t){return t+"º"}};t.default.locale(e,null,!0)}(),function(){var t=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(a.exports);function e(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function r(t,r,n){var i=t+" ";switch(n){case"m":return r?"minuta":"minutę";case"mm":return i+(e(t)?"minuty":"minut");case"h":return r?"godzina":"godzinę";case"hh":return i+(e(t)?"godziny":"godzin");case"MM":return i+(e(t)?"miesiące":"miesięcy");case"yy":return i+(e(t)?"lata":"lat")}}var n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),i="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),s=/D MMMM/,u=function(t,e){return s.test(e)?n[t.month()]:i[t.month()]};u.s=i,u.f=n;var o={name:"pl",weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),months:u,monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),ordinal:function(t){return t+"."},weekStart:1,yearStart:4,relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:r,mm:r,h:r,hh:r,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:r,y:"rok",yy:r},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};t.default.locale(o,null,!0)}(),function(){var t=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(a.exports),e="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),r="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),n="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),i="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),s=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function u(t,e,r){var n,i;return"m"===r?e?"минута":"минуту":t+" "+(n=+t,i={mm:e?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[r].split("_"),n%10==1&&n%100!=11?i[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?i[1]:i[2])}var o=function(t,n){return s.test(n)?e[t.month()]:r[t.month()]};o.s=r,o.f=e;var _=function(t,e){return s.test(e)?n[t.month()]:i[t.month()]};_.s=i,_.f=n;var c={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:o,monthsShort:_,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:u,mm:u,h:"час",hh:u,d:"день",dd:u,M:"месяц",MM:u,y:"год",yy:u},ordinal:function(t){return t},meridiem:function(t){return t<4?"ночи":t<12?"утра":t<17?"дня":"вечера"}};t.default.locale(c,null,!0)}(),function(){var t=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(a.exports),e={name:"zh",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(t,e){return"W"===e?t+"周":t+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s后",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(t,e){var r=100*t+e;return r<600?"凌晨":r<900?"早上":r<1100?"上午":r<1300?"中午":r<1800?"下午":"晚上"}};t.default.locale(e,null,!0)}();class v{constructor(t){this.formatToIsoDate=t=>{var e;return null!==(e=u(t).toISOString())&&void 0!==e?e:void 0},this.parseToDayStart=t=>u(t).toDate(),this.parseToDayEnd=t=>u(t).add(23,"hour").add(59,"minute").add(59,"second").toDate(),this.validDates=(t,e)=>{let r=this.parseToDayStart(t);const n=this.parseToDayEnd(e);return(null==r?void 0:r.getTime())>(null==n?void 0:n.getTime())&&(r=this.parseToDayStart(e)),{start:r,end:n}},this.formatToLocaleSimple=t=>u(t).format("DD/MM/YYYY"),this.managedComponents=new Set,this.setLocale(t),this.dayjs=u,u.extend(_),u.extend(d),u.extend(m)}setLocale(t){if(t)this.locale=t;else{const t=navigator.languages||!!navigator.language&&[navigator.language];if(!t||!t.length)return"en";this.locale=t[0].split("-")[0].toLowerCase();let r=!1;for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t]==this.locale){r=!0;break}r||(console.log("set forced locale: en"),this.locale=e.ENGLISH)}u.locale(this.locale),this.managedComponents.forEach((function(t){t.isConnected&&t.refresh()})),document.dispatchEvent(new CustomEvent("kup-dates-localechange"))}getLocale(){return this.locale}getLocales(){return Object.keys(e).map((t=>e[t])).filter((t=>"string"==typeof t))}getDateFormat(){return new Intl.DateTimeFormat(this.getLocale()).formatToParts(new Date).map((t=>{switch(t.type){case"day":return"DD";case"month":return"MM";case"year":return"YYYY";default:return t.value}})).join("")}getTimeFormat(t){const e={hour:"2-digit",minute:"2-digit",hour12:!1};return 1==t&&(e.second="2-digit"),new Intl.DateTimeFormat(this.getLocale()+"-u-hc-h23",e).formatToParts(new Date).map((t=>{switch(t.type){case"hour":return"HH";case"minute":return"mm";case"second":return"ss";default:return t.value}})).join("")}format(t,e){return e||(e="L"),u(t).format(e)}formatTime(t,e){const r={hour:"2-digit",minute:"2-digit",hour12:!1};return 1==e&&(r.second="2-digit"),t.toLocaleTimeString(this.getLocale()+"-u-hc-h23",r)}isValid(t,e,r){return e&&null!=e?u(t,e,r).isValid():u(t,void 0,r).isValid()}isValidFormattedStringTime(t,e){let r=this.getTimeFormat(e);return this.isValid(t,r,!0)}toDate(t,e){return e&&null!=e?u(t,e).toDate():u(t).toDate()}toDayjs(t,e){return e?u(t,e):u(t)}normalize(e,r){const n=u.Ls[this.locale].formats.L,i=["0","1","2","3","4","5","6","7","8","9"];let s="";for(let t=0;t<e.length;t++){let r=e.charAt(t);i.includes(r)&&(s+=r)}switch(e=s,r){case t.TIME:const r=function(){const t=new Date;let r=0,n=0,i=0,s=0;switch(e.length){case 1:case 2:r=parseInt(e),t.setHours(r,0,0,0);break;case 3:case 4:r=parseInt(e.substring(0,2)),n=parseInt(e.substring(2,4)),t.setHours(r,n,0,0);break;case 5:case 6:r=parseInt(e.substring(0,2)),n=parseInt(e.substring(2,4)),i=parseInt(e.substring(4,6)),t.setHours(r,n,i,0);break;case 7:case 8:r=parseInt(e.substring(0,2)),n=parseInt(e.substring(2,4)),i=parseInt(e.substring(4,6)),s=parseInt(e.substring(6,8)),t.setHours(r,n,i,s)}return t}();return u(r);case t.TIMESTAMP:return u(e);default:const i=function(){const t=new Date,r=n.indexOf("DD"),i=n.indexOf("MM");let s=0,a=0,u="";switch(e.length){case 1:case 2:s=parseInt(e),t.setDate(s);break;case 3:case 4:s=parseInt(e.substring(0,2)),a=parseInt(e.substring(2,4)),0===i?(t.setDate(a),t.setMonth(s-1)):0===r&&(t.setDate(s),t.setMonth(a-1));break;case 5:case 6:s=parseInt(e.substring(0,2)),a=parseInt(e.substring(2,4)),u=t.getFullYear().toString(),u=u.substring(0,2)+e.substring(4),0===i?t.setFullYear(parseInt(u),s-1,a):0===r&&t.setFullYear(parseInt(u),a-1,s);break;case 7:case 8:s=parseInt(e.substring(0,2)),a=parseInt(e.substring(2,4)),u=e.substring(4),0===i?t.setFullYear(parseInt(u),s-1,a):0===r&&t.setFullYear(parseInt(u),a-1,s)}return t}();return u(i)}}min(t){const e=[];for(let r=0;r<t.length;r++)e.push(u(t[r]));return u.min(e)}max(t){const e=[];for(let r=0;r<t.length;r++)e.push(u(t[r]));return u.max(e)}add(t,e,r){return u(t).add(e,r)}subtract(t,e,r){return u(t).subtract(e,r)}getMonthAsString(t,e){if(null==t)return"";const r=new Date;r.setDate(1),r.setMonth(t-1);const n={month:e};return new Intl.DateTimeFormat(this.getLocale(),n).format(r)}getMonthsAsString(t){null!=t&&""!=t.trim()||(t=r.LONG);for(var e=[],n=0;n<12;n++)e[n]=this.getMonthAsString(n+1,t);return e}getDayAsString(t){return null==t?"":new Intl.DateTimeFormat(this.getLocale(),{weekday:"narrow"}).format(t)}firstDayThisWeek(t){var e=new Date;const r=e.getDay();return e.setDate(e.getDate()-r),e.setDate(e.getDate()+t),e}thisWeek(t){const e=this.firstDayThisWeek(t);return{startDate:e,endDate:function(t){const e=new Date(t);return e.setDate(t.getDate()+6),e}(e)}}getDaysOfWeekAsString(t){for(var e=this.thisWeek(t).startDate,r=[],n=0;n<7;n++){var i=new Date(e.toISOString());i.setDate(i.getDate()+n),r[n]=this.getDayAsString(i)}return r}timestampStringToFormattedString(e){return this.toDate(this.normalize(e,t.TIMESTAMP)).toLocaleString(this.getLocale()+"-u-hc-h23",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}formattedStringToTimestampString(t){return this.formattedStringToCustomDateTime(t,n.ISO_DATE_TIME,!0)}formattedStringToCustomDateTime(e,r,n){let i=this.getTimeFormat(n);return this.isValid(e,i)?this.format(this.normalize(e,t.TIME),r):""}timeStringToFormattedString(e,r,n){const i={hour:"2-digit",minute:"2-digit",hour12:!1};return 1==r&&(i.second="2-digit"),function(t,e,r,n,i){if(null==n)return e.toLocaleTimeString(i.getLocale()+"-u-hc-h23",r);switch(n){case"I13":case"I12":break;case"I11":case"I14":case"I1H":case"I1M":case"I21":case"I22":case"I23":case"I24":case"I2H":case"I2D":case"I2M":return t}return e.toLocaleTimeString(i.getLocale()+"-u-hc-h23",r)}(e,this.toDate(this.normalize(e,t.TIME)),i,n,this)}register(t){this.managedComponents.add(t.rootElement?t.rootElement:t)}unregister(t){this.managedComponents&&this.managedComponents.delete(t.rootElement?t.rootElement:t)}}export{n as K,t as a,v as b,i as c,e as d,r as e,s as g}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{r as t,h as i,F as e}from"./p-1ad7fea0.js";import{b as s,c as o}from"./p-de07d17e.js";import{d as r,a as h}from"./p-e841c2ae.js";import{h as n}from"./p-2778f948.js";import{i as a,g as l,h as c}from"./p-8e3b6de8.js";const d=class{constructor(i){t(this,i),this.label="",this.doubleView=!1,this.setDoubleView=void 0,this.fontFamily=void 0,this.fontSize=void 0}render(){return i("div",{key:"25542e1e426f9f035bdd3b894acf915100609cec",class:"custom-task-list-wrapper",style:{height:"50px",fontFamily:this.fontFamily,fontSize:this.fontSize}},i("div",{key:"b64868e8a15fda0a259e30e77a1572fef34cf9a9",class:"title"},i("span",{key:"4bb87686a421a211ff7caa2c53105764f2e15c0a"},this.label)),void 0!==this.setDoubleView&&i("div",{class:"toggler"},i("label",{htmlFor:"ch2",class:"switch"},i("input",{class:"input",id:"ch2",type:"checkbox",checked:this.doubleView,onClick:()=>this.setDoubleView(!this.doubleView)}),i("span",{class:"slider"})),i("span",{class:"label"},"Previsioni")))}};d.style='.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}';const u=class{constructor(i){t(this,i),this.ganttId=void 0,this.tasks=[],this.rowHeight=0,this.rowWidth="",this.fontFamily="",this.fontSize="",this.setSelectedTask=void 0,this.onclickTaskList=void 0,this.ondblclickTaskList=void 0,this.oncontextmenuTaskList=void 0}render(){const t=new s;return i("div",{key:"aa6299da80dde8682f3fe8c1a8e244d6c15e5c5c",class:"container"},this.tasks.map((s=>{var o,r,h;return i(e,null,"project"===s.type?i("div",{class:"project",style:{height:`${this.rowHeight}px`,width:this.rowWidth,fontFamily:this.fontFamily,fontSize:this.fontSize,gridTemplateColumns:`repeat(${s.valuesToShow.length}, 1fr)`},onClick:()=>{this.setSelectedTask(s.id),this.onclickTaskList(s.id)},onDblClick:()=>{this.setSelectedTask(s.id),this.ondblclickTaskList(s.id)},onContextMenu:t=>{t.preventDefault(),this.setSelectedTask(s.id),this.oncontextmenuTaskList(t,s.id)}},null===(o=s.valuesToShow)||void 0===o?void 0:o.map(((e,o)=>i("span",{class:0===o?"main":void 0,title:e.length>10?e:void 0,key:`task_${s.id}_valuesToShow_${o}`},"#START#"===e?t.formatToLocaleSimple(s.start):"#END#"===e?t.formatToLocaleSimple(s.end):e)))):"task"===s.type?i("div",{class:"subrow",style:{height:`${this.rowHeight}px`,width:this.rowWidth,fontFamily:this.fontFamily,fontSize:this.fontSize,gridTemplateColumns:`repeat(${s.valuesToShow.length+1}, 1fr)`},onClick:()=>{this.setSelectedTask(s.id),this.onclickTaskList(s.id)},onDblClick:()=>{this.setSelectedTask(s.id),this.ondblclickTaskList(s.id)},onContextMenu:t=>{t.preventDefault(),this.setSelectedTask(s.id),this.oncontextmenuTaskList(t,s.id)}},i("span",{key:`phase_${s.id}_valuesToShow_color`,style:{height:"16px",width:"16px",backgroundColor:null===(r=s.styles)||void 0===r?void 0:r.backgroundColor}}),null===(h=s.valuesToShow)||void 0===h?void 0:h.map(((e,o)=>i("span",{class:0===o?"main":void 0,title:e.length>10?e:void 0,key:`phase_${s.id}_valuesToShow_${o}`},"#START#"===e?t.formatToLocaleSimple(s.start):"#END#"===e?t.formatToLocaleSimple(s.end):e)))):(()=>{var t;let e="";for(let t=0;t<s.valuesToShow.length;t++)e+="1fr ";return i("div",{class:"timeline",style:{height:`${this.rowHeight}px`,width:this.rowWidth,fontFamily:this.fontFamily,fontSize:this.fontSize,"--grid-fasi-columns":e},onContextMenu:t=>{t.preventDefault(),this.setSelectedTask(s.id),this.oncontextmenuTaskList(t,s.id)}},null===(t=s.valuesToShow)||void 0===t?void 0:t.map(((t,e)=>i("span",{class:0===e?"main":void 0,title:t.length>10?t:void 0,key:`detail_${s.id}_valuesToShow_${e}`},t))))})())})))}};u.style=".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}";const f=class{constructor(i){t(this,i),this.dateSetup=void 0,this.locale=void 0,this.rtl=void 0,this.headerHeight=void 0,this.columnWidth=void 0,this.fontFamily=void 0,this.fontSize=void 0,this.dateTimeFormatters=void 0,this.singleLineHeader=!1,this.currentDateIndicator=void 0,this.svgWidth=void 0,this.simplifiedHeader=void 0}componentWillLoad(){this.simplifiedHeader=this.singleLineHeader&&"year"!==this.dateSetup.viewMode}formatYear(t){var i,e;return(null===(i=this.dateTimeFormatters)||void 0===i?void 0:i.year)?null===(e=this.dateTimeFormatters)||void 0===e?void 0:e.year(t,this.locale):r.year(t,this.locale)}formatMonth(t){var i,e;return(null===(i=this.dateTimeFormatters)||void 0===i?void 0:i.month)?null===(e=this.dateTimeFormatters)||void 0===e?void 0:e.month(t,this.locale):r.month(t,this.locale)}formatMonthAndYear(t){var i,e;return(null===(i=this.dateTimeFormatters)||void 0===i?void 0:i.monthAndYear)?null===(e=this.dateTimeFormatters)||void 0===e?void 0:e.monthAndYear(t,this.locale):r.monthAndYear(t,this.locale)}formatWeek(t){var i,e;return(null===(i=this.dateTimeFormatters)||void 0===i?void 0:i.week)?null===(e=this.dateTimeFormatters)||void 0===e?void 0:e.week(t,this.locale):r.week(t,this.locale)}formatDay(t){var i,e;return(null===(i=this.dateTimeFormatters)||void 0===i?void 0:i.day)?null===(e=this.dateTimeFormatters)||void 0===e?void 0:e.day(t,this.locale):r.day(t,this.locale)}getCalendarValuesForYear(){const t=[],e=[],s=.5*this.headerHeight,o=this.dateSetup.dates;for(let r=0;r<o.length;r++){const h=o[r],n=this.formatYear(h);if(e.push(i("text",{key:n,y:.8*this.headerHeight,x:this.columnWidth*r+.5*this.columnWidth,class:"calendarBottomText"},n)),0===r||h.getFullYear()!==o[r-1].getFullYear()){const i=h.getFullYear().toString();let e;e=this.rtl?(6+r+h.getFullYear()+1)*this.columnWidth:(6+r-h.getFullYear())*this.columnWidth,t.push({key:i,value:i,x1Line:this.columnWidth*r,y1Line:0,y2Line:this.headerHeight,xText:e,yText:.9*s})}}return[t,e]}getCalendarValuesForMonth(){const t=[],e=[],s=.5*this.headerHeight,o=this.dateSetup.dates;for(let r=0;r<o.length;r++){const h=o[r],n=this.formatMonth(h);if(e.push(i("text",{key:n+h.getFullYear(),y:.8*this.headerHeight,x:this.columnWidth*r+.5*this.columnWidth,class:"calendarBottomText"},n)),0===r||h.getFullYear()!==o[r-1].getFullYear()){const i=this.formatYear(h);let e;e=this.rtl?(6+r+h.getMonth()+1)*this.columnWidth:(6+r-h.getMonth())*this.columnWidth,t.push({key:i,value:i,x1Line:this.columnWidth*r,y1Line:0,y2Line:s,xText:e,yText:.9*s})}}return[t,e]}getCalendarValuesForWeek(){const t=[],e=[];let s=1;const o=.5*this.headerHeight,r=this.dateSetup.dates;for(let h=r.length-1;h>=0;h--){const n=r[h];let a="";0!==h&&n.getMonth()===r[h-1].getMonth()||(a=this.formatMonthAndYear(n));const l=this.formatWeek(n);e.push(i("text",{key:n.getTime(),y:.8*this.headerHeight,x:this.columnWidth*(h+ +this.rtl),class:"calendarBottomText"},l)),a&&(h!==r.length-1&&t.push({key:a,value:a,x1Line:this.columnWidth*h+s*this.columnWidth,y1Line:0,y2Line:o,xText:this.columnWidth*h+this.columnWidth*s*.5,yText:.9*o}),s=0),s++}return[t,e]}getCalendarValuesForDay(){const t=[],e=[],s=.5*this.headerHeight,o=this.dateSetup.dates;for(let r=0;r<o.length;r++){const n=o[r],a=this.formatDay(n);if(e.push(i("text",{key:n.getTime(),y:.8*this.headerHeight,x:this.columnWidth*r+.5*this.columnWidth,class:"calendarBottomText"},a)),r+1!==o.length&&n.getMonth()!==o[r+1].getMonth()){const i=this.formatMonth(n);t.push({key:i+n.getFullYear(),value:i,x1Line:this.columnWidth*(r+1),y1Line:0,y2Line:s,xText:this.columnWidth*(r+1)-h(n.getMonth(),n.getFullYear())*this.columnWidth*.5,yText:.9*s})}}return[t,e]}getTopAndBottomValues(){switch(this.dateSetup.viewMode){case"day":return this.getCalendarValuesForDay();case"week":return this.getCalendarValuesForWeek();case"month":return this.getCalendarValuesForMonth();case"year":return this.getCalendarValuesForYear()}}render(){this.simplifiedHeader=this.singleLineHeader&&"year"!==this.dateSetup.viewMode;const[t,e]=this.getTopAndBottomValues();return i("svg",{key:"972519efa36c109961fdd368de96b3dc1b1d8d7e",xmlns:"http://www.w3.org/2000/svg",width:this.svgWidth,height:this.headerHeight},i("g",{key:"14edca5a67b8fcd35ea5ff959fbac1cd6f0e225b",class:"calendar","font-size":this.fontSize,"font-family":this.fontFamily},i("rect",{key:"8555e690efb9858ecfb9502526b6185706082889",x:0,y:0,width:this.columnWidth*this.dateSetup.dates.length,height:this.headerHeight,class:"calendarHeader"}),this.simplifiedHeader?null:e,t.map(this.simplifiedHeader?t=>i("g",{class:"calendarTop"},i("line",{x1:t.x1Line,y1:2*t.y2Line,x2:t.x1Line,y2:t.y2Line,class:"calendarTopTick",key:t.value+"line"}),i("text",{key:t.value+"text",y:t.yText,x:t.xText,class:"calendarTopText"},t.value)):t=>i("g",{class:"calendarTop"},i("line",{x1:t.x1Line,y1:t.y1Line,x2:t.x1Line,y2:t.y2Line,class:"calendarTopTick",key:t.value+"line"}),i("text",{key:t.value+"text",y:t.yText,x:t.xText,class:"calendarTopText"},t.value))),this.currentDateIndicator&&i("circle",{fill:this.currentDateIndicator.color,cx:this.currentDateIndicator.x+2.5,cy:this.headerHeight-8,r:"8"})))}};f.style=".calendarBottomText{text-anchor:middle;fill:#333;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.calendarTopTick{stroke:#e6e4e4}.calendarTopText{text-anchor:middle;fill:#555;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.calendarHeader{fill:#ffffff;stroke:#e0e0e0;stroke-width:1.4}";var p,v,g,x,b,y={exports:{}};p=y.exports,v=function(){function t(t,i,e){this.r=0,this.g=0,this.b=0,this.set(t,i,e)}return t.prototype.set=function(t,i,e){this.r=this.clamp(t),this.g=this.clamp(i),this.b=this.clamp(e)},t.prototype.hueRotate=function(t){void 0===t&&(t=0),t=t/180*Math.PI;var i=Math.sin(t),e=Math.cos(t);this.multiply([.213+.787*e-.213*i,.715-.715*e-.715*i,.072-.072*e+.928*i,.213-.213*e+.143*i,.715+.285*e+.14*i,.072-.072*e-.283*i,.213-.213*e-.787*i,.715-.715*e+.715*i,.072+.928*e+.072*i])},t.prototype.grayscale=function(t){void 0===t&&(t=1),this.multiply([.2126+.7874*(1-t),.7152-.7152*(1-t),.0722-.0722*(1-t),.2126-.2126*(1-t),.7152+.2848*(1-t),.0722-.0722*(1-t),.2126-.2126*(1-t),.7152-.7152*(1-t),.0722+.9278*(1-t)])},t.prototype.sepia=function(t){void 0===t&&(t=1),this.multiply([.393+.607*(1-t),.769-.769*(1-t),.189-.189*(1-t),.349-.349*(1-t),.686+.314*(1-t),.168-.168*(1-t),.272-.272*(1-t),.534-.534*(1-t),.131+.869*(1-t)])},t.prototype.saturate=function(t){void 0===t&&(t=1),this.multiply([.213+.787*t,.715-.715*t,.072-.072*t,.213-.213*t,.715+.285*t,.072-.072*t,.213-.213*t,.715-.715*t,.072+.928*t])},t.prototype.multiply=function(t){var i=this.clamp(this.r*t[0]+this.g*t[1]+this.b*t[2]),e=this.clamp(this.r*t[3]+this.g*t[4]+this.b*t[5]),s=this.clamp(this.r*t[6]+this.g*t[7]+this.b*t[8]);this.r=i,this.g=e,this.b=s},t.prototype.brightness=function(t){void 0===t&&(t=1),this.linear(t)},t.prototype.contrast=function(t){void 0===t&&(t=1),this.linear(t,-.5*t+.5)},t.prototype.linear=function(t,i){void 0===t&&(t=1),void 0===i&&(i=0),this.r=this.clamp(this.r*t+255*i),this.g=this.clamp(this.g*t+255*i),this.b=this.clamp(this.b*t+255*i)},t.prototype.invert=function(t){void 0===t&&(t=1),this.r=this.clamp(255*(t+this.r/255*(1-2*t))),this.g=this.clamp(255*(t+this.g/255*(1-2*t))),this.b=this.clamp(255*(t+this.b/255*(1-2*t)))},t.prototype.hsl=function(){var t=this.r/255,i=this.g/255,e=this.b/255,s=Math.max(t,i,e),o=Math.min(t,i,e),r=0,h=(s+o)/2;if(s===o)return{h:0,s:0,l:100*h};var n=s-o;return s===t?r=(i-e)/n+(i<e?6:0):s===i?r=(e-t)/n+2:s===e&&(r=(t-i)/n+4),{h:100*(r/=6),s:100*(h>.5?n/(2-s-o):n/(s+o)),l:100*h}},t.prototype.clamp=function(t){return Math.min(Math.max(t,0),255)},t}(),g=function(){function t(t,i){this.target=t,this.targetHSL=t.hsl(),this.options=Object.assign({},{acceptanceLossPercentage:5,maxChecks:15},i),this.reusedColor=new v(0,0,0)}return t.prototype.solve=function(){var t=this.solveNarrow(this.solveWide());return{values:t.values,called:t.called,loss:t.loss,filter:this.css(t.values)}},t.prototype.solveWide=function(){for(var t=[60,180,18e3,600,1.2,1.2],i={loss:1/0},e=0;i.loss>this.options.acceptanceLossPercentage;){var s=this.spsa({A:5,a:t,c:15,values:[50,20,3750,50,100,100],maxTriesInLoop:1e3});if(s.loss<i.loss&&(i=s),(e+=1)>=this.options.maxChecks)break}return Object.assign({},i,{called:e})},t.prototype.solveNarrow=function(t){var i=t.loss,e=i+1;return this.spsa({A:i,a:[.25*e,.25*e,e,.25*e,.2*e,.2*e],c:2,values:t.values,maxTriesInLoop:500,called:t.called})},t.prototype.fixValueByFilterIDX=function(t,i){var e=100;return 2===i?e=7500:4!==i&&5!==i||(e=200),3===i?t>e?t%=e:t<0&&(t=e+t%e):t<0?t=0:t>e&&(t=e),t},t.prototype.spsa=function(t){for(var i=t.A,e=t.a,s=t.c,o=t.values,r=t.maxTriesInLoop,h=void 0===r?500:r,n=t.called,a=void 0===n?0:n,l=null,c=1/0,d=new Array(6),u=new Array(6),f=new Array(6),p=0;p<h;p++){for(var v=s/Math.pow(p+1,.16666666666666666),g=0;g<6;g++)d[g]=Math.random()>.5?1:-1,u[g]=o[g]+v*d[g],f[g]=o[g]-v*d[g];var x=this.loss(u)-this.loss(f);for(g=0;g<6;g++){var b=x/(2*v)*d[g],y=e[g]/Math.pow(i+p+1,1);o[g]=this.fixValueByFilterIDX(o[g]-y*b,g)}var w=this.loss(o);w<c&&(l=o.slice(0),c=w)}return{values:l,loss:c,called:a}},t.prototype.loss=function(t){var i=this.reusedColor;i.set(0,0,0),i.invert(t[0]/100),i.sepia(t[1]/100),i.saturate(t[2]/100),i.hueRotate(3.6*t[3]),i.brightness(t[4]/100),i.contrast(t[5]/100);var e=i.hsl();return Math.abs(i.r-this.target.r)+Math.abs(i.g-this.target.g)+Math.abs(i.b-this.target.b)+Math.abs(e.h-this.targetHSL.h)+Math.abs(e.s-this.targetHSL.s)+Math.abs(e.l-this.targetHSL.l)},t.prototype.css=function(t){var i=function(i,e){return void 0===e&&(e=1),Math.round(t[i]*e)};return["invert("+i(0)+"%)","sepia("+i(1)+"%)","saturate("+i(2)+"%)","hue-rotate("+i(3,3.6)+"deg)","brightness("+i(4)+"%)","contrast("+i(5)+"%);"].join(" ")},t}(),x=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},b={},p.clearCache=function(t){t?b[t]&&delete b[t]:b={}},p.hexToCSSFilter=function(t,i){var e,s,o,r,h,n;if(void 0===i&&(i={}),b[t]&&!i.forceFilterRecalculation)return Object.assign({},b[t],{cache:!0});try{if(o=(e=
|
|
2
|
-
/*! *****************************************************************************
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted.
|
|
7
|
-
|
|
8
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */
|
|
16
|
-
function(t,i){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var s,o,r=e.call(t),h=[];try{for(;(void 0===i||i-- >0)&&!(s=r.next()).done;)h.push(s.value)}catch(t){o={error:t}}finally{try{s&&!s.done&&(e=r.return)&&e.call(r)}finally{if(o)throw o.error}}return h}((n=t,4===n.length?[parseInt("0x"+n[1]+n[1]),parseInt("0x"+n[2]+n[2]),parseInt("0x"+n[3]+n[3])]:7===n.length?[parseInt("0x"+n[1]+n[2]),parseInt("0x"+n[3]+n[4]),parseInt("0x"+n[5]+n[6])]:[]),3))[1],r=e[2],!x(s=e[0])||!x(o)||!x(r))throw new Error("hextToRgb returned an invalid value for '"+t+"'");h=new v(Number(s),Number(o),Number(r))}catch(t){throw new Error("Color value should be in HEX format. "+t)}var a=new g(h,Object.assign({},{acceptanceLossPercentage:5,maxChecks:30,forceFilterRecalculation:!1},i));return b[t]=Object.assign({},a.solve(),{hex:t,rgb:[s,o,r],cache:!1})},Object.defineProperty(p,"__esModule",{value:!0});const w=class{constructor(i){t(this,i),this.tasks=void 0,this.dates=void 0,this.ganttEvent=void 0,this.selectedTask=void 0,this.rowHeight=0,this.columnWidth=0,this.timeStep=0,this.taskHeight=0,this.arrowColor="",this.arrowIndent=0,this.fontFamily="",this.fontSize="",this.rtl=!1,this.hideLabel=!1,this.showSecondaryDates=!1,this.currentDateIndicator=void 0,this.projection=void 0,this.readOnly=!1,this.gridProps=void 0,this.dateChange=void 0,this.progressChange=void 0,this.doubleClick=void 0,this.barClick=void 0,this.barDblClick=void 0,this.barContextMenu=void 0,this.delete=void 0,this.setFailedTask=void 0,this.setSelectedTask=void 0,this.eventStart=void 0,this.eMouseDown=void 0,this.setGanttEvent=void 0,this.xStep=0,this.initEventX1Delta=0,this.initEventXClick=0,this.isMoving=!1,this.point=void 0,this.svg=void 0}componentDidLoad(){this.point=this.createSVGPoint(),this.updateXStep()}createSVGPoint(){if(this.svg)return this.svg.createSVGPoint()}updateXStep(){const t=this.dates[1].getTime()-this.dates[0].getTime()-60*this.dates[1].getTimezoneOffset()*1e3+60*this.dates[0].getTimezoneOffset()*1e3;this.xStep=this.timeStep*this.columnWidth/t}updateSvgMove(){const t=async t=>{var i,e;if(!this.ganttEvent.changedTask||!this.point||!this.svg)return;t.preventDefault(),this.point.x=t.clientX;const s=this.point.matrixTransform(null===(e=null===(i=this.svg)||void 0===i?void 0:i.getScreenCTM())||void 0===e?void 0:e.inverse()),{isChanged:o,changedTask:r}=c(s.x,this.ganttEvent.action,this.ganttEvent.changedTask,this.xStep,this.timeStep,this.initEventX1Delta,this.rtl);o&&this.setGanttEvent(Object.assign(Object.assign({},this.ganttEvent),{action:this.ganttEvent.action,changedTask:r}))},i=async e=>{var s,o;const{action:r,originalSelectedTask:h,changedTask:n}=this.ganttEvent;if(!(n&&this.point&&this.svg&&h))return;e.preventDefault(),this.point.x=e.clientX;const a=this.point.matrixTransform(null===(o=null===(s=this.svg)||void 0===s?void 0:s.getScreenCTM())||void 0===o?void 0:o.inverse()),{changedTask:l}=c(a.x,r,n,this.xStep,this.timeStep,this.initEventX1Delta,this.rtl),d=h.start!==l.start||h.end!==l.end||h.progress!==l.progress;this.svg.removeEventListener("mousemove",t),this.svg.removeEventListener("mouseup",i),this.setGanttEvent({action:""}),this.isMoving=!1;let u=!0;if(("move"===r||"end"===r||"start"===r)&&this.dateChange&&d)try{const t=await this.dateChange(l,l.barChildren);void 0!==t&&(u=t)}catch(t){u=!1}else if(this.progressChange&&d)try{const t=this.progressChange(l,l.barChildren);void 0!==t&&(u=t)}catch(t){u=!1}u||this.setFailedTask(h)};this.isMoving||"move"!==this.ganttEvent.action&&"end"!==this.ganttEvent.action&&"start"!==this.ganttEvent.action&&"progress"!==this.ganttEvent.action||!this.svg||(this.svg.addEventListener("mousemove",t),this.svg.addEventListener("mouseup",i),this.isMoving=!0)}hasMovedHorizontally(t){return!this.readOnly&&this.initEventXClick!==t.clientX}handleBarEventStart(t,i,e){var s;if(e)if(a(e)){if("delete"===t&&this.delete)try{const e=this.delete(i);void 0!==e&&e&&this.setGanttEvent({action:t,changedTask:i})}catch(t){console.error("Error on Delete. "+t)}}else if("mouseenter"===t)this.ganttEvent.action||this.setGanttEvent({action:t,changedTask:i,originalSelectedTask:i});else if("mouseleave"===t)"mouseenter"===this.ganttEvent.action&&this.setGanttEvent({action:""});else if("dblclick"===t)this.doubleClick&&this.doubleClick(i);else if("click"===t)!this.hasMovedHorizontally(e)&&this.barClick&&this.barClick(i);else if("contextmenu"===t)e.preventDefault(),this.barContextMenu&&this.barContextMenu(e,i);else if("move"===t){if(!this.svg||!this.point)return;this.point.x=e.clientX;const o=this.point.matrixTransform(null===(s=this.svg.getScreenCTM())||void 0===s?void 0:s.inverse());this.initEventX1Delta=o.x-i.x1,this.initEventXClick=e.clientX,this.setGanttEvent({action:t,changedTask:i,originalSelectedTask:i})}else this.setGanttEvent({action:t,changedTask:i,originalSelectedTask:i});else"select"===t&&this.setSelectedTask(i.id)}getTaskIcon(t){const e=y.exports.hexToCSSFilter(t.color);return i("image",{href:t.url,filter:e.filter.replace(";",""),x:t.x,y:t.y,width:t.width,height:t.height})}renderKupBar(t,e,s,o){var r,h,n;return i("g",{class:"barWrapper","tab-index":0},this.renderKupBarDisplay(t.x1,t.y,t.x2-t.x1,t.height,t.progressX,t.progressWidth,t.barCornerRadius,t.styles,e,!this.readOnly&&!!this.dateChange&&!t.isDisabled,t,t.x1secondary,(null!==(r=t.x2secondary)&&void 0!==r?r:0)-(null!==(h=t.x1secondary)&&void 0!==h?h:0)),i("g",{class:"handleGroup"},s&&i("g",null,this.renderKupBarDateHandle(t.x1+1,t.y+1,t.handleWidth,t.height-2,t.barCornerRadius,t,"start"),this.renderKupBarDateHandle(t.x2-t.handleWidth-1,t.y+1,t.handleWidth,t.height-2,t.barCornerRadius,t,"end")),o&&i("polygon",{class:"barHandle",points:this.calculateProgressPoint(t),onMouseDown:i=>{this.handleBarEventStart("progress",t,i)}})),t.icon&&t.icon.url&&this.getTaskIcon({color:null!==(n=t.icon.color)&&void 0!==n?n:"#000000",url:t.icon.url,width:t.height/2+"px",height:t.height/2+"px",x:t.x1+(t.x2-t.x1)-t.height/2/2,y:t.y-t.height/2/2/2+(this.showSecondaryDates?t.height/2:0)}))}renderKupBarDisplay(t,e,s,o,r,h,n,a,l,c,d,u,f){if(this.showSecondaryDates&&void 0!==u){const p=o/2;return i("g",{onMouseDown:t=>c&&this.handleBarEventStart("move",d,t)},i("rect",{key:"top semi-transparent bar",x:u,width:f,y:e,height:p,ry:n,rx:n,fill:this.getBarColor(l,a),opacity:.5,class:"barBackground"}),i("rect",{key:"main bar",x:t,width:s,y:e+p,height:p,ry:n,rx:n,fill:this.getBarColor(l,a),class:"barBackground"}),i("rect",{key:"progress bar",x:r,width:h,y:e+p,height:p,ry:n,rx:n,fill:this.getProcessColor(l,a)}))}return i("g",{onMouseDown:t=>{c&&this.handleBarEventStart("move",d,t)}},i("rect",{x:t,width:s,y:e,height:o,ry:n,rx:n,fill:this.getBarColor(l,a),class:"barBackground"}),i("rect",{x:r,width:h,y:e,height:o,ry:n,rx:n,fill:this.getProcessColor(l,a)}))}renderKupBarDateHandle(t,e,s,o,r,h,n){return i("rect",{x:t,y:e,width:s,height:o,class:"barHandle",ry:r,rx:r,onMouseDown:t=>this.handleBarEventStart(n,h,t)})}renderKupBarSmall(t,e,s,o){return i("g",{class:"barWrapper","tab-index":0},this.renderKupBarDisplay(t.x1,t.y,t.x2-t.x1,t.height,t.progressX,t.progressWidth,t.barCornerRadius,t.styles,e,s,t),i("g",{class:"handleGroup"},o&&i("polygon",{class:"barHandle",points:this.calculateProgressPoint(t,"small"),onMouseDown:i=>{this.handleBarEventStart("progress",t,i)}})))}renderKupBarTimeLine(t,s){return i("g",{"tab-index":0},i("rect",{fill:s,x:"0",width:"100%",y:t.y,height:t.height,rx:0,ry:0}),t.barChildren.map((t=>{var s;return i(e,null,i("rect",{style:{cursor:"pointer"},key:t.id,fill:t.styles.backgroundColor,x:t.x1,width:t.x2-t.x1,y:t.y,height:t.height,rx:t.barCornerRadius,ry:t.barCornerRadius}),t.icon&&t.icon.url&&this.getTaskIcon({color:null!==(s=t.icon.color)&&void 0!==s?s:"#000000",url:t.icon.url,width:t.height+"px",height:t.height+"px",x:t.x1+(t.x2-t.x1)-t.height/2,y:t.y-t.height/2/2}))})))}renderKupArrow(t,e){const[s,o]=this.rtl?this.drownPathAndTriangleRTL(t,this.tasks[e.index],this.rowHeight,this.taskHeight,this.arrowIndent):this.drownPathAndTriangle(t,this.tasks[e.index],this.rowHeight,this.taskHeight,this.arrowIndent);return i("g",{class:"arrow"},i("path",{"stroke-width":"1.5",d:s,fill:"none"}),i("polygon",{points:o}))}drownPathAndTriangle(t,i,e,s,o){const r=i.y+s/2,h=t.x2+2*o;return[`M ${t.x2} ${t.y+s/2}\n h ${o}\n v ${(t.index>i.index?-1:1)*e/2}\n ${h<i.x1?"":"H "+(i.x1-o)}\n V ${r}\n h ${h>i.x1?o:i.x1-t.x2-o}`,`${i.x1},${r}\n ${i.x1-5},${r-5}\n ${i.x1-5},${r+5}`]}drownPathAndTriangleRTL(t,i,e,s,o){const r=i.y+s/2,h=t.x1-2*o;return[`M ${t.x1} ${t.y+s/2}\n h ${-o}\n v ${(t.index>i.index?-1:1)*e/2}\n ${h>i.x2?"":`H ${i.x2+o}`}\n V ${r}\n h ${h<i.x2?-o:i.x2-t.x1+o}`,`${i.x2},${r}\n ${i.x2+5},${r+5}\n ${i.x2+5},${r-5}`]}getBarColor(t,i){return t?i.backgroundSelectedColor:i.backgroundColor}getProcessColor(t,i){return t?i.progressSelectedColor:i.progressColor}calculateProgressPoint(t,i="bar"){return l("bar"==i?+!this.rtl*t.progressWidth+t.progressX:t.progressWidth+t.x1,t.y,t.height)}render(){let t=0;const e=[],s=[i("line",{key:"RowLineFirst",x1:0,y1:0,x2:this.gridProps.svgWidth,y2:0,class:"gridRowLine"})];for(const o of this.tasks)e.push(i("rect",{key:"Row"+o.id,x:0,y:t,width:this.gridProps.svgWidth,height:this.rowHeight,class:"gridRow"})),s.push(i("line",{key:"RowLine"+o.id,x1:0,y1:t+this.rowHeight,x2:this.gridProps.svgWidth,y2:t+this.rowHeight,class:"gridRowLine"})),t+=this.rowHeight;const o=new Date;let r=0;const h=[];for(let e=0;e<this.dates.length;e++){const s=this.dates[e];h.push(i("line",{key:s.getTime(),x1:r,y1:0,x2:r,y2:t,class:"gridTick"})),e+1!==this.dates.length&&s.getTime()<o.getTime()&&this.dates[e+1].getTime()>=o.getTime()||0!==e&&e+1===this.dates.length&&s.getTime()<o.getTime()&&(n(s,s.getTime()-this.dates[e-1].getTime(),"millisecond").getTime(),o.getTime()),r+=this.columnWidth}return i("svg",{key:"453f06f9849218010409d444adb13500f22b6cfa",xmlns:"http://www.w3.org/2000/svg",width:this.gridProps.svgWidth,height:this.rowHeight*this.tasks.length+"px","font-family":this.fontFamily,ref:t=>this.svg=t},i("g",{key:"a671a9e0c1c44ef1b3d86d679d68dda934246e59",class:"grid"},i("g",{key:"3741633c839e757fa4d4cc0999d9e34ad5284173",class:"rows"},e),i("g",{key:"34bdba123cff205d0769e6492055a72f51b85bd7",class:"rowLines"},s),i("g",{key:"0d2b321b587e8cc4a65ac356ea1a5903c1fa61f6",class:"ticks"},h)),i("g",{key:"891e706099f2c83dcabf5a0bb62a2c8139c10ac1",class:"content"},this.currentDateIndicator&&i("rect",{fill:this.currentDateIndicator.color,x:this.currentDateIndicator.x+1.5,y:"0",width:"2",height:"100%"}),this.projection&&i("rect",{fill:this.projection.color,x:this.projection.x0,y:"0",width:this.projection.xf-this.projection.x0,height:"100%","fill-opacity":"0.35"}),i("g",{key:"6e36b71942a8619b800210d189629c0856cb57f6",class:"arrows",fill:this.arrowColor,stroke:this.arrowColor},this.tasks.map((t=>t.barChildren.map((i=>{"timeline"!==t.type&&this.renderKupArrow(t,i)}))))),i("g",{key:"38643adf911e2b0ff25b0ffe4f8c8c645171c55d",class:"bar","font-family":this.fontFamily,"font-size":this.fontSize},this.tasks.map((t=>{const e="project"===t.type;return i("g",{onKeyDown:i=>{"Delete"===i.key&&(t.isDisabled||this.handleBarEventStart("delete",t,i)),i.stopPropagation()},onMouseEnter:i=>{this.handleBarEventStart("mouseenter",t,i)},onMouseLeave:i=>{this.handleBarEventStart("mouseleave",t,i)},onDblClick:()=>{this.barDblClick(t)},onClick:i=>{this.handleBarEventStart("click",t,i)},onContextMenu:i=>{this.handleBarEventStart("contextmenu",t,i)},onFocus:()=>{this.handleBarEventStart("select",t)},class:"task-wrapper"},(()=>{const i={task:t,arrowIndent:this.arrowIndent,isDelete:!t.isDisabled,taskHeight:this.taskHeight,isSelected:!!this.selectedTask&&t.id===this.selectedTask.id,rtl:this.rtl,hideLabel:this.hideLabel},s=t.styles,o=i.isSelected?s.backgroundSelectedColor:s.backgroundColor,r=!(this.readOnly||!this.dateChange||t.isDisabled||e),h=!this.readOnly&&!!this.progressChange&&!t.isDisabled,n=!this.readOnly&&!!this.dateChange&&!t.isDisabled;switch(t.typeInternal){case"project":default:return this.renderKupBar(t,i.isSelected,r,h);case"smalltask":return this.renderKupBarSmall(t,i.isSelected,n,h);case"timeline":return this.renderKupBarTimeLine(t,o)}})())})))))}static get watchers(){return{columnWidth:["updateXStep"],dates:["updateXStep"],timeStep:["updateXStep","updateSvgMove"],ganttEvent:["updateSvgMove"],xStep:["updateSvgMove"],svg:["updateSvgMove"],initEventX1Delta:["updateSvgMove"],point:["updateSvgMove"],rtl:["updateSvgMove"],onProgressChange:["updateSvgMove"],onDateChange:["updateSvgMove"]}}};w.style=".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}";export{d as kup_custom_task_list_header,u as kup_custom_task_list_table,f as kup_gantt_calendar,w as kup_grid_renderer}
|