@sme.up/ketchup 10.3.10 → 10.3.12
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-cell-9c556447.js → f-cell-5e876dc1.js} +4 -4
- package/dist/cjs/{f-chip-29f981f7.js → f-chip-1f1a9829.js} +1 -1
- package/dist/cjs/{f-object-field-ae0e860d.js → f-object-field-7264b902.js} +2 -2
- package/dist/cjs/{f-paginator-utils-806868eb.js → f-paginator-utils-0b88eb98.js} +1 -1
- package/dist/cjs/{f-text-field-025f9ff3.js → f-text-field-2f9c646d.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +7 -8
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +3 -3
- package/dist/cjs/kup-autocomplete_30.cjs.entry.js +119 -347
- package/dist/cjs/kup-box.cjs.entry.js +8 -8
- package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
- package/dist/cjs/kup-card-list.cjs.entry.js +2 -2
- package/dist/cjs/kup-cell.cjs.entry.js +8 -8
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +8 -8
- package/dist/cjs/kup-dashboard.cjs.entry.js +4 -4
- package/dist/cjs/{kup-data-table-helper-d3b9b899.js → kup-data-table-helper-292af776.js} +2 -2
- package/dist/cjs/{kup-dates-8619368a.js → kup-dates-6feda954.js} +127 -7
- package/dist/cjs/kup-drawer.cjs.entry.js +4 -4
- package/dist/cjs/kup-echart.cjs.entry.js +3 -3
- package/dist/cjs/kup-editor.cjs.entry.js +3 -3
- package/dist/cjs/kup-family-tree.cjs.entry.js +21 -26
- package/dist/cjs/kup-gantt_10.cjs.entry.js +25 -25
- package/dist/cjs/kup-grid.cjs.entry.js +2 -2
- package/dist/cjs/kup-htm.cjs.entry.js +3 -3
- package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
- package/dist/cjs/kup-input-panel.cjs.entry.js +8 -8
- package/dist/cjs/kup-lazy.cjs.entry.js +13 -13
- package/dist/cjs/kup-magic-box.cjs.entry.js +5 -5
- package/dist/cjs/{kup-manager-dbf73b5f.js → kup-manager-af4de85d.js} +4 -4
- package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +4 -4
- package/dist/cjs/kup-object-field.cjs.entry.js +5 -5
- package/dist/cjs/kup-pdf.cjs.entry.js +3 -3
- package/dist/cjs/{kup-planner-renderer-helper-eaca3f99.js → kup-planner-renderer-helper-593796c6.js} +1 -1
- package/dist/cjs/kup-planner-renderer.cjs.entry.js +4 -4
- package/dist/cjs/kup-planner.cjs.entry.js +4 -4
- package/dist/cjs/kup-probe.cjs.entry.js +3 -3
- package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
- package/dist/cjs/kup-snackbar.cjs.entry.js +3 -3
- package/dist/cjs/kup-txt.cjs.entry.js +3 -3
- package/dist/cjs/kup-typography-list.cjs.entry.js +3 -3
- package/dist/cjs/kup-typography.cjs.entry.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/kup-accordion/kup-accordion.js +5 -27
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +1 -1
- package/dist/collection/components/kup-badge/kup-badge.js +2 -2
- package/dist/collection/components/kup-button-list/kup-button-list.js +1 -1
- package/dist/collection/components/kup-calendar/kup-calendar.js +2 -2
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +2 -4
- package/dist/collection/components/kup-cell/kup-cell.js +2 -2
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +1 -1
- package/dist/collection/components/kup-chip/kup-chip.js +2 -2
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +2 -2
- package/dist/collection/components/kup-combobox/kup-combobox.js +1 -1
- package/dist/collection/components/kup-dashboard/kup-dashboard.js +1 -1
- package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -0
- package/dist/collection/components/kup-data-table/kup-data-table.css +15 -1
- package/dist/collection/components/kup-data-table/kup-data-table.js +49 -266
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +1 -1
- package/dist/collection/components/kup-dialog/kup-dialog.css +2 -0
- package/dist/collection/components/kup-dialog/kup-dialog.js +1 -1
- package/dist/collection/components/kup-drawer/kup-drawer.js +2 -2
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +1 -1
- package/dist/collection/components/kup-echart/kup-echart.js +1 -1
- package/dist/collection/components/kup-editor/kup-editor.js +1 -1
- package/dist/collection/components/kup-family-tree/kup-family-tree.css +1 -1
- package/dist/collection/components/kup-family-tree/kup-family-tree.js +18 -23
- package/dist/collection/components/kup-file-upload/kup-file-upload.js +2 -2
- package/dist/collection/components/kup-form/kup-form.js +2 -2
- package/dist/collection/components/kup-htm/kup-htm.js +1 -1
- package/dist/collection/components/kup-image-list/kup-image-list.js +3 -3
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +2 -2
- 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-tab-bar/kup-tab-bar.js +2 -23
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +1 -1
- package/dist/collection/components/kup-tree/kup-tree.css +3 -0
- 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/managers/kup-dates/kup-dates.js +127 -7
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +12 -33
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.js +7 -9
- 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 +5 -5
- package/dist/components/kup-card-list.js +3 -3
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +4 -4
- 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-custom-task-list-table.js +1 -1
- package/dist/components/kup-dashboard.js +3 -3
- 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 +4 -4
- 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 +22 -27
- 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 +3 -3
- 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 +5 -5
- 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 +18 -18
- 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-40202dad.js → p-0497ebe5.js} +4 -4
- package/dist/components/{p-5155623a.js → p-1817b952.js} +2 -2
- package/dist/components/{p-f4797086.js → p-23d0f0c7.js} +1 -1
- package/dist/components/{p-3a56a01b.js → p-2cb9fa58.js} +4 -4
- package/dist/components/{p-a52b0e92.js → p-3757ff31.js} +1 -1
- package/dist/components/{p-e02d95bf.js → p-4e8ed6dd.js} +3 -3
- package/dist/components/{p-c9135ac0.js → p-5b1056e4.js} +7 -7
- package/dist/components/{p-9d9181cf.js → p-60e697f5.js} +127 -7
- package/dist/components/{p-a1390144.js → p-668ff297.js} +113 -345
- package/dist/components/{p-28f6440c.js → p-767fcf91.js} +1 -1
- package/dist/components/{p-a1ae4c21.js → p-97fceaf7.js} +17 -17
- package/dist/components/{p-1bb114b8.js → p-980686db.js} +14 -14
- package/dist/components/{p-9471f708.js → p-9a502c5d.js} +2 -2
- package/dist/components/{p-43275b92.js → p-9a617844.js} +3 -3
- package/dist/components/{p-7a243c51.js → p-9d13f3da.js} +4 -4
- package/dist/components/{p-32c28a10.js → p-aa882232.js} +2 -2
- package/dist/components/{p-ca202cfa.js → p-bbb25c58.js} +1 -1
- package/dist/components/{p-86464a43.js → p-bdecbc93.js} +5 -5
- package/dist/components/{p-0b4e99fd.js → p-cbc6b3d5.js} +2 -2
- package/dist/components/{p-395ac5ac.js → p-dc1ce1b4.js} +1 -1
- package/dist/components/{p-6cc3382e.js → p-e51305d5.js} +3 -3
- package/dist/components/{p-fdb5e8d3.js → p-fb1d46cf.js} +2 -2
- package/dist/esm/{f-cell-f31f34a8.js → f-cell-c0987685.js} +4 -4
- package/dist/esm/{f-chip-9d6113fe.js → f-chip-2b1b3544.js} +1 -1
- package/dist/esm/{f-object-field-0c2013c8.js → f-object-field-a234558f.js} +2 -2
- package/dist/esm/{f-paginator-utils-8314bf54.js → f-paginator-utils-7f69eaa3.js} +1 -1
- package/dist/esm/{f-text-field-371b1b43.js → f-text-field-4ef83a74.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +7 -8
- package/dist/esm/kup-activity-timeline.entry.js +3 -3
- package/dist/esm/kup-autocomplete_30.entry.js +119 -347
- package/dist/esm/kup-box.entry.js +8 -8
- package/dist/esm/kup-calendar.entry.js +5 -5
- package/dist/esm/kup-card-list.entry.js +2 -2
- package/dist/esm/kup-cell.entry.js +8 -8
- package/dist/esm/kup-custom-task-list-header_4.entry.js +8 -8
- package/dist/esm/kup-dashboard.entry.js +4 -4
- package/dist/esm/{kup-data-table-helper-04404034.js → kup-data-table-helper-3832776d.js} +2 -2
- package/dist/esm/{kup-dates-77f1a451.js → kup-dates-964cc4dd.js} +127 -7
- package/dist/esm/kup-drawer.entry.js +4 -4
- package/dist/esm/kup-echart.entry.js +3 -3
- package/dist/esm/kup-editor.entry.js +3 -3
- package/dist/esm/kup-family-tree.entry.js +21 -26
- package/dist/esm/kup-gantt_10.entry.js +25 -25
- package/dist/esm/kup-grid.entry.js +2 -2
- package/dist/esm/kup-htm.entry.js +3 -3
- package/dist/esm/kup-iframe.entry.js +2 -2
- package/dist/esm/kup-input-panel.entry.js +8 -8
- package/dist/esm/kup-lazy.entry.js +13 -13
- package/dist/esm/kup-magic-box.entry.js +5 -5
- package/dist/esm/{kup-manager-9ccdaa27.js → kup-manager-53906723.js} +4 -4
- package/dist/esm/kup-nav-bar.entry.js +3 -3
- package/dist/esm/kup-numeric-picker.entry.js +4 -4
- package/dist/esm/kup-object-field.entry.js +5 -5
- package/dist/esm/kup-pdf.entry.js +3 -3
- package/dist/esm/{kup-planner-renderer-helper-373880b5.js → kup-planner-renderer-helper-64388bf8.js} +1 -1
- package/dist/esm/kup-planner-renderer.entry.js +4 -4
- package/dist/esm/kup-planner.entry.js +4 -4
- package/dist/esm/kup-probe.entry.js +3 -3
- package/dist/esm/kup-qlik.entry.js +3 -3
- package/dist/esm/kup-snackbar.entry.js +3 -3
- package/dist/esm/kup-txt.entry.js +3 -3
- package/dist/esm/kup-typography-list.entry.js +3 -3
- 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-c8b6b65c.entry.js → p-0066799e.entry.js} +1 -1
- package/dist/ketchup/{p-ecf63f95.entry.js → p-07ae656f.entry.js} +1 -1
- package/dist/ketchup/{p-da6ecaf5.entry.js → p-09337603.entry.js} +1 -1
- package/dist/ketchup/p-0b6a9193.entry.js +8 -0
- package/dist/ketchup/{p-37d0e9e4.entry.js → p-13ddab94.entry.js} +1 -1
- package/dist/ketchup/{p-8a291991.entry.js → p-177051c7.entry.js} +1 -1
- package/dist/ketchup/{p-6a59894e.entry.js → p-17fe09b5.entry.js} +1 -1
- package/dist/ketchup/{p-9249bf18.entry.js → p-1e51d41f.entry.js} +1 -1
- package/dist/ketchup/{p-74c6c382.js → p-1e5b567e.js} +1 -1
- package/dist/ketchup/{p-26c10598.entry.js → p-1fb04c24.entry.js} +1 -1
- package/dist/ketchup/{p-43f50ba7.entry.js → p-226777c0.entry.js} +2 -2
- package/dist/ketchup/p-22e5d270.js +1 -0
- package/dist/ketchup/{p-b83c852d.entry.js → p-234c9924.entry.js} +1 -1
- package/dist/ketchup/p-2882a664.entry.js +1 -0
- package/dist/ketchup/{p-cabebabc.js → p-36edcc02.js} +1 -1
- package/dist/ketchup/{p-5f645f29.js → p-37390512.js} +1 -1
- package/dist/ketchup/p-3f7c9647.entry.js +1 -0
- package/dist/ketchup/{p-b6647af5.entry.js → p-40f3e8d1.entry.js} +1 -1
- package/dist/ketchup/p-4d732dde.entry.js +1 -0
- package/dist/ketchup/p-50c4d059.entry.js +1 -0
- package/dist/ketchup/{p-6bf3ff2f.js → p-65240069.js} +1 -1
- package/dist/ketchup/p-6e8b9c5a.entry.js +1 -0
- package/dist/ketchup/{p-c1257bb0.entry.js → p-6e8db402.entry.js} +1 -1
- package/dist/ketchup/{p-d3baddb1.entry.js → p-774c3c21.entry.js} +1 -1
- package/dist/ketchup/{p-885d0dd0.js → p-7e2316a5.js} +1 -1
- package/dist/ketchup/{p-6766ca18.entry.js → p-87ab01df.entry.js} +2 -2
- package/dist/ketchup/{p-43e37416.js → p-8b5ab195.js} +1 -1
- package/dist/ketchup/{p-17c33bed.entry.js → p-985764b2.entry.js} +1 -1
- package/dist/ketchup/{p-3357aa91.entry.js → p-a59d51fe.entry.js} +1 -1
- package/dist/ketchup/{p-a14160c1.entry.js → p-a9994a05.entry.js} +1 -1
- package/dist/ketchup/{p-8655b58a.entry.js → p-aa0aac90.entry.js} +1 -1
- package/dist/ketchup/{p-be04cb85.entry.js → p-adc2e8e7.entry.js} +1 -1
- package/dist/ketchup/{p-f8aefe67.js → p-af914cdf.js} +1 -1
- package/dist/ketchup/{p-01fd9784.entry.js → p-b07bbe03.entry.js} +1 -1
- package/dist/ketchup/{p-63dd560e.entry.js → p-b142abf4.entry.js} +1 -1
- package/dist/ketchup/{p-6ae996e1.entry.js → p-b9cf4d0d.entry.js} +2 -2
- package/dist/ketchup/p-d6bf9d14.js +1 -0
- package/dist/ketchup/{p-346b17b4.entry.js → p-e333d2e1.entry.js} +1 -1
- package/dist/ketchup/p-e61e216d.entry.js +1 -0
- package/dist/ketchup/{p-da6e388e.entry.js → p-e667d522.entry.js} +1 -1
- package/dist/ketchup/{p-b803bf4b.entry.js → p-e849006c.entry.js} +2 -2
- package/dist/types/components/kup-accordion/kup-accordion.d.ts +0 -5
- package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +2 -0
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +2 -4
- package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +0 -5
- package/dist/types/components.d.ts +4 -23
- package/dist/types/managers/kup-dates/kup-dates.d.ts +10 -2
- package/package.json +1 -1
- package/dist/ketchup/p-87d242df.js +0 -1
- package/dist/ketchup/p-91846c17.entry.js +0 -1
- package/dist/ketchup/p-93dcbb39.js +0 -1
- package/dist/ketchup/p-99ff9e9c.entry.js +0 -1
- package/dist/ketchup/p-a6a12568.entry.js +0 -1
- package/dist/ketchup/p-b0c9b55c.entry.js +0 -1
- package/dist/ketchup/p-b780f3c6.entry.js +0 -1
- package/dist/ketchup/p-cfe822a5.entry.js +0 -1
- package/dist/ketchup/p-dcb80cbc.entry.js +0 -8
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
7
|
-
const kupDataTableHelper = require('./kup-data-table-helper-
|
|
6
|
+
const kupManager = require('./kup-manager-af4de85d.js');
|
|
7
|
+
const kupDataTableHelper = require('./kup-data-table-helper-292af776.js');
|
|
8
8
|
const fImage = require('./f-image-7457eb26.js');
|
|
9
|
-
const fChip = require('./f-chip-
|
|
9
|
+
const fChip = require('./f-chip-1f1a9829.js');
|
|
10
10
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
11
|
-
const fCell = require('./f-cell-
|
|
12
|
-
const fPaginatorUtils = require('./f-paginator-utils-
|
|
11
|
+
const fCell = require('./f-cell-5e876dc1.js');
|
|
12
|
+
const fPaginatorUtils = require('./f-paginator-utils-0b88eb98.js');
|
|
13
13
|
const fTextFieldMdc = require('./f-text-field-mdc-29aae9c9.js');
|
|
14
|
-
require('./kup-dates-
|
|
14
|
+
require('./kup-dates-6feda954.js');
|
|
15
15
|
require('./f-button-c084046d.js');
|
|
16
16
|
require('./f-button-declarations-76ef9f87.js');
|
|
17
17
|
require('./f-checkbox-e59d6bda.js');
|
|
18
|
-
require('./f-object-field-
|
|
19
|
-
require('./f-text-field-
|
|
18
|
+
require('./f-object-field-7264b902.js');
|
|
19
|
+
require('./f-text-field-2f9c646d.js');
|
|
20
20
|
require('./component-a6dd6c14.js');
|
|
21
21
|
|
|
22
22
|
/**
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index$4 = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-af4de85d.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
const fButton = require('./f-button-c084046d.js');
|
|
9
|
-
const fChip = require('./f-chip-
|
|
10
|
-
const kupDates = require('./kup-dates-
|
|
9
|
+
const fChip = require('./f-chip-1f1a9829.js');
|
|
10
|
+
const kupDates = require('./kup-dates-6feda954.js');
|
|
11
11
|
require('./f-button-declarations-76ef9f87.js');
|
|
12
12
|
require('./f-image-7457eb26.js');
|
|
13
13
|
|
|
@@ -15257,11 +15257,11 @@ const KupCalendar = class {
|
|
|
15257
15257
|
this.kupManager.debug.logRender(this, true);
|
|
15258
15258
|
}
|
|
15259
15259
|
render() {
|
|
15260
|
-
return (index$4.h(index$4.Host, { key: '
|
|
15260
|
+
return (index$4.h(index$4.Host, { key: '84b96d480944784ba43b426e8d01e536f1bafc67' }, index$4.h("style", { key: 'bdaf0c3a8ee5cc6bdc7dc9e9cbc13529ea611e28' }, this.kupManager.theme.setKupStyle(this.rootElement)), index$4.h("div", { key: '3ae0c2d73d9d70be0cf3a13f56eaf09fc5b29126', id: GenericVariables.componentWrapperId }, index$4.h("div", { key: '06aa3eea99f3c49e88509c4393231fd47d7eeace', class: "navigation" }, !this.hideNavigation ? (index$4.h("div", { class: "navigation__left" }, index$4.h(fButton.FButton, { icon: "chevron_left", onClick: () => this.onPrev(), title: this.kupManager.language.translate(kupManager.KupLanguageGeneric.PREVIOUS), wrapperClass: "navigation__prev" }), index$4.h(fButton.FButton, { icon: "calendar", onClick: () => this.onToday(), title: this.kupManager.language.translate(kupManager.KupLanguageGeneric.TODAY), wrapperClass: "navigation__today" }), index$4.h(fButton.FButton, { icon: "chevron_right", onClick: () => this.onNext(), title: this.kupManager.language.translate(kupManager.KupLanguageGeneric.NEXT), wrapperClass: "navigation__next" }))) : null, index$4.h("div", { key: 'bcf1061ef340154ce810504963c635677d7b08ec', class: `navigation__title ${this.hideNavigation
|
|
15261
15261
|
? 'navigation__title--centered'
|
|
15262
15262
|
: ''}`, ref: (el) => {
|
|
15263
15263
|
this.navTitle = el;
|
|
15264
|
-
} }), index$4.h("div", { key: '
|
|
15264
|
+
} }), index$4.h("div", { key: 'd0da3cdd51e56c4d707789af64e55c1d19a24973', class: "navigation__right" }, this.enableChangeView ? (index$4.h(fChip.FChip, Object.assign({}, this.setChipProps()))) : null)), index$4.h("div", { key: 'c8cd358bceae781d6add7ff26cc09878ef0b5834', class: "calendar", ref: (el) => (this.calendarContainer = el) }))));
|
|
15265
15265
|
}
|
|
15266
15266
|
disconnectedCallback() {
|
|
15267
15267
|
if (this.calendar) {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-af4de85d.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
|
-
require('./kup-dates-
|
|
8
|
+
require('./kup-dates-6feda954.js');
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Props of the kup-card-list component.
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-af4de85d.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
const fButton = require('./f-button-c084046d.js');
|
|
9
|
-
const fCell = require('./f-cell-
|
|
10
|
-
require('./kup-dates-
|
|
9
|
+
const fCell = require('./f-cell-5e876dc1.js');
|
|
10
|
+
require('./kup-dates-6feda954.js');
|
|
11
11
|
require('./f-button-declarations-76ef9f87.js');
|
|
12
12
|
require('./f-image-7457eb26.js');
|
|
13
13
|
require('./f-checkbox-e59d6bda.js');
|
|
14
|
-
require('./f-chip-
|
|
15
|
-
require('./f-object-field-
|
|
16
|
-
require('./f-text-field-
|
|
14
|
+
require('./f-chip-1f1a9829.js');
|
|
15
|
+
require('./f-object-field-7264b902.js');
|
|
16
|
+
require('./f-text-field-2f9c646d.js');
|
|
17
17
|
|
|
18
18
|
const kupCellCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:var(--kup-label-01-font-size, 12px);line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-compact-01-font-size, 14px);line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-01-font-size, 14px);line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{display:block;height:fit-content;width:100%}#kup-component{height:fit-content;width:100%}";
|
|
19
19
|
const KupCellStyle0 = kupCellCss;
|
|
@@ -180,14 +180,14 @@ const KupCell = class {
|
|
|
180
180
|
renderKup: true,
|
|
181
181
|
row: this.generateRow(),
|
|
182
182
|
};
|
|
183
|
-
return (index.h(index.Host, { key: '
|
|
183
|
+
return (index.h(index.Host, { key: '01c0f9dc1d970c0da37687dd07ecf95cf0cb0279', "onKup-file-upload-upload": this.upload.bind(this) }, index.h("style", { key: '4ad06f4bbbb2cfebee565fee5606194d2e68d871' }, __classPrivateFieldGet(this, _KupCell_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: '2d06ac608cd5eaa25b014dbc2420e2dec44ea89b', id: GenericVariables.componentWrapperId, style: this.showSubmit
|
|
184
184
|
? {
|
|
185
185
|
display: 'flex',
|
|
186
186
|
'flex-direction': kupManager.submitPositionAdapter(this.submitPosition),
|
|
187
187
|
'align-items': 'center',
|
|
188
188
|
gap: '0.5rem',
|
|
189
189
|
}
|
|
190
|
-
: {} }, index.h(fCell.FCell, Object.assign({ key: '
|
|
190
|
+
: {} }, index.h(fCell.FCell, Object.assign({ key: '393bd349a7310e9e9f8fbefac85c6ef733799a3f' }, props)), this.showSubmit ? (index.h(fButton.FButton, { buttonType: "submit", label: __classPrivateFieldGet(this, _KupCell_kupManager, "f").language.translate(kupManager.KupLanguageGeneric.CONFIRM), wrapperClass: "form__submit", onClick: (e) => {
|
|
191
191
|
this.submitClick(e);
|
|
192
192
|
} })) : null)));
|
|
193
193
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupDates = require('./kup-dates-
|
|
6
|
+
const kupDates = require('./kup-dates-6feda954.js');
|
|
7
7
|
const bar_helpers = require('./bar.helpers-c481a535.js');
|
|
8
8
|
const kupPlannerTimeFormatter = require('./kup-planner-time-formatter-b7dca3ea.js');
|
|
9
9
|
const kupPlannerDeclarations = require('./kup-planner-declarations-7291d01c.js');
|
|
@@ -21,11 +21,11 @@ const KupCustomTaskListHeader = class {
|
|
|
21
21
|
this.fontSize = undefined;
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (index.h("div", { key: '
|
|
24
|
+
return (index.h("div", { key: '23f119a1f4df86a9c9518014672600827ef3946a', class: "custom-task-list-wrapper", style: {
|
|
25
25
|
height: '25px',
|
|
26
26
|
fontFamily: this.fontFamily,
|
|
27
27
|
fontSize: this.fontSize,
|
|
28
|
-
} }, index.h("div", { key: '
|
|
28
|
+
} }, index.h("div", { key: 'be428c1fa53e5d20c10b7841ed711678ca46ca50', class: "title" }, index.h("span", { key: '5c6742dd5a63dbf837e1df3f7daa422925be102b' }, this.label)), this.setDoubleView !== undefined && (index.h("div", { key: '7dee3b1d2c665d5360b85a59fdafc2902f1fec01', class: "toggler" }, index.h("label", { key: '2ff7fb287c8901f60018d57a3f91e4827d49fc0a', htmlFor: "ch2", class: "switch" }, index.h("input", { key: '3b8df0b5b2b66b34ffa0151c2b62523d9b756885', class: "input", id: "ch2", type: "checkbox", checked: this.doubleView, onClick: () => this.setDoubleView(!this.doubleView) }), index.h("span", { key: 'f38b848a394283807290d19c2188d8255745ea89', class: "slider" })), index.h("span", { key: '03870d86ee67071fc114da83ffc4fe3a8abc897d', class: "label" }, "Previsioni")))));
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
KupCustomTaskListHeader.style = KupCustomTaskListHeaderStyle0;
|
|
@@ -407,11 +407,11 @@ const KupGanttCalendar = class {
|
|
|
407
407
|
this.simplifiedHeader =
|
|
408
408
|
this.singleLineHeader && this.dateSetup.viewMode !== 'year';
|
|
409
409
|
const [topValues, bottomValues] = this.getTopAndBottomValues();
|
|
410
|
-
return (index.h("svg", { key: '
|
|
410
|
+
return (index.h("svg", { key: '4bca0e060f56a7fe37e05b75d5d6869f040704a6', xmlns: "http://www.w3.org/2000/svg", width: this.svgWidth, height: this.headerHeight }, index.h("g", { key: '7d8e96b34aeb2d6fda64ca62c8f85669609d6dbb', class: "calendar", "font-size": this.fontSize, "font-family": this.fontFamily }, index.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
|
|
411
411
|
? topValues.map((topValue) => (index.h("g", { class: "calendarTop" }, index.h("line", { x1: topValue.x1Line, y1: topValue.y2Line * 2, x2: topValue.x1Line, y2: topValue.y2Line, class: "calendarTopTick", key: topValue.value + 'line' }), index.h("text", { key: topValue.value + 'text', y: topValue.yText, x: topValue.xText, class: "calendarTopText" }, topValue.value))))
|
|
412
412
|
: topValues.map((topValue) => (index.h("g", { class: "calendarTop" }, index.h("line", { x1: topValue.x1Line, y1: topValue.y1Line, x2: topValue.x1Line, y2: topValue.y2Line, class: "calendarTopTick", key: topValue.value + 'line' }), index.h("text", { key: topValue.value + 'text', y: topValue.yText, x: topValue.xText, class: "calendarTopText" }, topValue.value)))), this.currentDateIndicator && (
|
|
413
413
|
// current date indicator
|
|
414
|
-
index.h("circle", { key: '
|
|
414
|
+
index.h("circle", { key: '8a301e27afb5737f85421156a63ce577096846a7', fill: this.currentDateIndicator.color, cx: this.currentDateIndicator.x + 2.5, cy: this.headerHeight - 8, r: "8" })))));
|
|
415
415
|
}
|
|
416
416
|
};
|
|
417
417
|
KupGanttCalendar.style = KupGanttCalendarStyle0;
|
|
@@ -1467,13 +1467,13 @@ const KupGridRenderer = class {
|
|
|
1467
1467
|
// }
|
|
1468
1468
|
tickX += this.columnWidth;
|
|
1469
1469
|
}
|
|
1470
|
-
return (index.h("svg", { key: '
|
|
1470
|
+
return (index.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) }, index.h("g", { key: 'a9a83e3ec574b36a1ce9d012f6f1e13bffe8eed5', class: "grid" }, index.h("g", { key: '10d5b31ee258f91aac82ce3dc441871f57fe76f6', class: "rows" }, gridRows), index.h("g", { key: 'ddae99458fa1c0ce5b96ac9846bfb167d0f6d7a5', class: "rowLines" }, rowLines), index.h("g", { key: '3a30ca604d25216ecfcea251bced32d9ac211932', class: "ticks" }, ticks)), index.h("g", { key: '46d90e500351f11ffda906eb5c31fea195cc0223', class: "content" }, this.currentDateIndicator && (index.h("rect", { key: '167a7fa6be1cccaea4d57a2c687a0628e91c00d7', fill: this.currentDateIndicator.color, x: this.currentDateIndicator.x + 1.5, y: "0", width: "2", height: "100%" })), this.projection && (index.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" })), index.h("g", { key: '48d1b6330012fc1cb1bbdd87a25afc9e3e868867', class: "arrows", fill: this.arrowColor, stroke: this.arrowColor }, this.tasks.map((task) => {
|
|
1471
1471
|
return task.barChildren.map((child) => {
|
|
1472
1472
|
if (task.type !== 'timeline') {
|
|
1473
1473
|
this.renderKupArrow(task, child);
|
|
1474
1474
|
}
|
|
1475
1475
|
});
|
|
1476
|
-
})), index.h("g", { key: '
|
|
1476
|
+
})), index.h("g", { key: '92d9c57208504e793e94742c5d0a718b2a1ffa5e', class: "bar", "font-family": this.fontFamily, "font-size": this.fontSize }, this.tasks.map((task) => {
|
|
1477
1477
|
const forbidResize = task.type === 'project';
|
|
1478
1478
|
return (index.h("g", { onKeyDown: (e) => {
|
|
1479
1479
|
switch (e.key) {
|
|
@@ -1533,7 +1533,7 @@ const KupGridRenderer = class {
|
|
|
1533
1533
|
return this.renderKupBar(task, props.isSelected, isDateResizable, isProgressChangeable);
|
|
1534
1534
|
}
|
|
1535
1535
|
})()));
|
|
1536
|
-
}), this.currentTarget && this.ganttEvent.changedTask && (index.h("g", { key: '
|
|
1536
|
+
}), this.currentTarget && this.ganttEvent.changedTask && (index.h("g", { key: 'e42b2b38135aab0c22be661f29774c02341c3f87', class: "task-wrapper" }, this.renderKupBar(this.ganttEvent.changedTask, false, false, false)))))));
|
|
1537
1537
|
}
|
|
1538
1538
|
static get watchers() { return {
|
|
1539
1539
|
"columnWidth": ["updateXStep"],
|
|
@@ -5,14 +5,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
6
|
const fButton = require('./f-button-c084046d.js');
|
|
7
7
|
const fCheckbox = require('./f-checkbox-e59d6bda.js');
|
|
8
|
-
const fTextField = require('./f-text-field-
|
|
8
|
+
const fTextField = require('./f-text-field-2f9c646d.js');
|
|
9
9
|
const fTextFieldMdc = require('./f-text-field-mdc-29aae9c9.js');
|
|
10
|
-
const kupManager = require('./kup-manager-
|
|
10
|
+
const kupManager = require('./kup-manager-af4de85d.js');
|
|
11
11
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
12
12
|
require('./f-button-declarations-76ef9f87.js');
|
|
13
13
|
require('./f-image-7457eb26.js');
|
|
14
14
|
require('./component-a6dd6c14.js');
|
|
15
|
-
require('./kup-dates-
|
|
15
|
+
require('./kup-dates-6feda954.js');
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Props of the kup-dashboard component.
|
|
@@ -396,7 +396,7 @@ const KupDashboard = class {
|
|
|
396
396
|
this.didRenderInteractables();
|
|
397
397
|
}
|
|
398
398
|
render() {
|
|
399
|
-
return (index.h(index.Host, { key: '
|
|
399
|
+
return (index.h(index.Host, { key: '66aa2a555cd5b7d4d56a4a13387450ede89c4355' }, index.h("style", { key: '11060323270040d3dd52a1011103024c0741085e' }, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { key: 'e784ba520f411aa8f05b73a4b2a9343507272595', id: GenericVariables.componentWrapperId }, this.buildHeader(), this.buildForm(this.internalData, null))));
|
|
400
400
|
}
|
|
401
401
|
disconnectedCallback() {
|
|
402
402
|
this.unregisterInteractables();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const kupManager = require('./kup-manager-
|
|
4
|
-
const kupDates = require('./kup-dates-
|
|
3
|
+
const kupManager = require('./kup-manager-af4de85d.js');
|
|
4
|
+
const kupDates = require('./kup-dates-6feda954.js');
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Filtering algorithms related to column menus.
|
|
@@ -381,7 +381,6 @@ class KupDates {
|
|
|
381
381
|
*/
|
|
382
382
|
isValidFormattedStringDate(date, format, strict, isJustTime = false, manageSeconds = false) {
|
|
383
383
|
let isValidDate = false;
|
|
384
|
-
const cleanedDate = this.cleanInputDateString(date);
|
|
385
384
|
let parsedDate = null;
|
|
386
385
|
if (format) {
|
|
387
386
|
const nDate = strict ? date : this.normalize(date, format);
|
|
@@ -394,13 +393,14 @@ class KupDates {
|
|
|
394
393
|
}
|
|
395
394
|
}
|
|
396
395
|
else {
|
|
397
|
-
parsedDate = this.normalize(
|
|
396
|
+
parsedDate = this.normalize(date);
|
|
398
397
|
isValidDate = parsedDate.isValid();
|
|
399
398
|
}
|
|
400
399
|
if (!isValidDate) {
|
|
401
400
|
return false;
|
|
402
401
|
}
|
|
403
402
|
let formattedDate = null;
|
|
403
|
+
const cleanedDate = this.cleanInputDateString(date);
|
|
404
404
|
if (format) {
|
|
405
405
|
formattedDate = dayjs(parsedDate).format(format);
|
|
406
406
|
}
|
|
@@ -418,7 +418,7 @@ class KupDates {
|
|
|
418
418
|
}
|
|
419
419
|
if (format != exports.KupDatesFormats.ISO_TIME &&
|
|
420
420
|
format != exports.KupDatesFormats.ISO_TIME_WITHOUT_SECONDS) {
|
|
421
|
-
options.year =
|
|
421
|
+
options.year = 'numeric'; // Always use 4-digit year for consistency
|
|
422
422
|
options.month = '2-digit';
|
|
423
423
|
options.day = '2-digit';
|
|
424
424
|
}
|
|
@@ -426,7 +426,21 @@ class KupDates {
|
|
|
426
426
|
formattedDate = formatObj.format(parsedDate.toDate());
|
|
427
427
|
}
|
|
428
428
|
const cleanedDateNew = this.cleanInputDateString(formattedDate);
|
|
429
|
-
|
|
429
|
+
// For dates with 2-digit years, we need to expand the original cleaned date for comparison
|
|
430
|
+
// But only for date formats, not time formats
|
|
431
|
+
let expandedCleanedDate = cleanedDate;
|
|
432
|
+
if (!isJustTime &&
|
|
433
|
+
cleanedDate.length === 6 &&
|
|
434
|
+
/^\d{6}$/.test(cleanedDate)) {
|
|
435
|
+
// This is likely DDMMYY format, expand the year part
|
|
436
|
+
const day = cleanedDate.substring(0, 2);
|
|
437
|
+
const month = cleanedDate.substring(2, 4);
|
|
438
|
+
const year = cleanedDate.substring(4, 6);
|
|
439
|
+
const yearNum = parseInt(year);
|
|
440
|
+
const fullYear = yearNum > 50 ? '19' + year : '20' + year;
|
|
441
|
+
expandedCleanedDate = day + month + fullYear;
|
|
442
|
+
}
|
|
443
|
+
isValidDate = cleanedDateNew == expandedCleanedDate;
|
|
430
444
|
return isValidDate;
|
|
431
445
|
}
|
|
432
446
|
/**
|
|
@@ -461,14 +475,120 @@ class KupDates {
|
|
|
461
475
|
}
|
|
462
476
|
/**
|
|
463
477
|
* Removes undesired characters in input string, for manage as date
|
|
464
|
-
*
|
|
465
|
-
*
|
|
478
|
+
* Handles dates with or without leading zeros by standardizing the format
|
|
479
|
+
* based on current locale (D/MM/YYYY, DD/MM/YYYY, etc.)
|
|
480
|
+
* @param input - Input date string (e.g., "1/12/2023", "01/12/2023", "1/1/23")
|
|
481
|
+
* @returns Cleaned string with standardized format for further processing
|
|
466
482
|
*/
|
|
467
483
|
cleanInputDateString(input) {
|
|
468
484
|
if (!input) {
|
|
469
485
|
return '';
|
|
470
486
|
}
|
|
471
|
-
|
|
487
|
+
if (this.isIsoDate(input)) {
|
|
488
|
+
return input;
|
|
489
|
+
}
|
|
490
|
+
// Get browser locale format to understand expected structure
|
|
491
|
+
const localeFormat = this.getDateFormat();
|
|
492
|
+
// Check if input contains separators (slash, dash, dot)
|
|
493
|
+
const separatorRegex = /[\/\-\.]/;
|
|
494
|
+
const hasSeparators = separatorRegex.test(input);
|
|
495
|
+
if (hasSeparators) {
|
|
496
|
+
// Split by separators to get individual parts
|
|
497
|
+
const parts = input.split(separatorRegex);
|
|
498
|
+
if (parts.length >= 2) {
|
|
499
|
+
// We have at least day and month (and possibly year)
|
|
500
|
+
const dayIndex = localeFormat.indexOf('DD');
|
|
501
|
+
const monthIndex = localeFormat.indexOf('MM');
|
|
502
|
+
const yearIndex = localeFormat.indexOf('YYYY');
|
|
503
|
+
// Create array to hold [day, month, year] in correct order based on locale
|
|
504
|
+
let orderedParts = ['', '', ''];
|
|
505
|
+
// Determine the order based on locale format positions
|
|
506
|
+
const positions = [
|
|
507
|
+
{ type: 'day', index: dayIndex, pos: 0 },
|
|
508
|
+
{ type: 'month', index: monthIndex, pos: 1 },
|
|
509
|
+
{ type: 'year', index: yearIndex, pos: 2 },
|
|
510
|
+
].sort((a, b) => a.index - b.index);
|
|
511
|
+
// Map input parts to correct positions
|
|
512
|
+
for (let i = 0; i < Math.min(parts.length, 3); i++) {
|
|
513
|
+
const targetPos = positions[i].pos;
|
|
514
|
+
orderedParts[targetPos] = parts[i].replace(/[^0-9]/g, '');
|
|
515
|
+
}
|
|
516
|
+
let [day, month, year] = orderedParts;
|
|
517
|
+
// Pad day and month with leading zeros if necessary
|
|
518
|
+
if (day && day.length === 1) {
|
|
519
|
+
day = '0' + day;
|
|
520
|
+
}
|
|
521
|
+
if (month && month.length === 1) {
|
|
522
|
+
month = '0' + month;
|
|
523
|
+
}
|
|
524
|
+
// Handle 2-digit years (convert to 4-digit)
|
|
525
|
+
if (year && year.length === 2) {
|
|
526
|
+
const yearNum = parseInt(year);
|
|
527
|
+
if (yearNum > 50) {
|
|
528
|
+
year = '19' + year;
|
|
529
|
+
}
|
|
530
|
+
else {
|
|
531
|
+
year = '20' + year;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
// Build result string based on locale format order, not logical order
|
|
535
|
+
let result = '';
|
|
536
|
+
// Create a map of components for easy access
|
|
537
|
+
const componentMap = {
|
|
538
|
+
day: day || '',
|
|
539
|
+
month: month || '',
|
|
540
|
+
year: year || '',
|
|
541
|
+
};
|
|
542
|
+
// Rebuild the string in the order they appear in locale format
|
|
543
|
+
for (let i = 0; i < positions.length; i++) {
|
|
544
|
+
const position = positions[i];
|
|
545
|
+
const component = componentMap[position.type];
|
|
546
|
+
if (component) {
|
|
547
|
+
result += component;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
return result;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
// If no separators found, clean and return as before
|
|
554
|
+
const cleanedNumbers = input.replace(/[^0-9]/g, '').trim();
|
|
555
|
+
// For unseparated input, try to add padding based on common patterns
|
|
556
|
+
if (cleanedNumbers.length >= 3 && cleanedNumbers.length <= 8) {
|
|
557
|
+
// This handles cases like "1122023" -> should become "01122023"
|
|
558
|
+
// or "112023" -> should become "011203" (with 2-digit year handling)
|
|
559
|
+
return this.padUnseparatedDate(cleanedNumbers);
|
|
560
|
+
}
|
|
561
|
+
return cleanedNumbers;
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
* Helper method to pad unseparated date strings (e.g., "1122023" -> "01122023")
|
|
565
|
+
* @param input - Clean numeric string
|
|
566
|
+
* @returns Padded string with leading zeros where appropriate
|
|
567
|
+
*/
|
|
568
|
+
padUnseparatedDate(input) {
|
|
569
|
+
const length = input.length;
|
|
570
|
+
switch (length) {
|
|
571
|
+
case 3: // e.g., "123" -> "0123" (day=01, month=23 - invalid, but let validation handle it)
|
|
572
|
+
return '0' + input;
|
|
573
|
+
case 5: // e.g., "11223" -> "011223" (day=01, month=12, year=23)
|
|
574
|
+
return '0' + input;
|
|
575
|
+
case 6: // e.g., "112023" -> "01122023" OR "300924" -> "300924" (DDMMYY format, don't pad)
|
|
576
|
+
// Check if the last 4 characters could be a year (19xx or 20xx)
|
|
577
|
+
const lastFour = input.substring(2);
|
|
578
|
+
const yearCandidate = parseInt(lastFour);
|
|
579
|
+
if (yearCandidate >= 1900 && yearCandidate <= 2099) {
|
|
580
|
+
// This looks like DMYYYY format (e.g., "112023" = 1-12-2023)
|
|
581
|
+
return '0' + input;
|
|
582
|
+
}
|
|
583
|
+
else {
|
|
584
|
+
// This looks like DDMMYY format (e.g., "300924" = 30-09-24)
|
|
585
|
+
return input;
|
|
586
|
+
}
|
|
587
|
+
case 7: // e.g., "1122023" -> "01122023" (day=01, month=12, year=2023)
|
|
588
|
+
return '0' + input;
|
|
589
|
+
default:
|
|
590
|
+
return input;
|
|
591
|
+
}
|
|
472
592
|
}
|
|
473
593
|
/**
|
|
474
594
|
* Returns a computed ISO date/time from a partial string.
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-af4de85d.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
|
-
require('./kup-dates-
|
|
8
|
+
require('./kup-dates-6feda954.js');
|
|
9
9
|
|
|
10
10
|
const drawerClass = 'drawer';
|
|
11
11
|
/**
|
|
@@ -130,7 +130,7 @@ const KupDrawer = class {
|
|
|
130
130
|
this.kupManager.debug.logRender(this, true);
|
|
131
131
|
}
|
|
132
132
|
render() {
|
|
133
|
-
return (index.h(index.Host, { key: '
|
|
133
|
+
return (index.h(index.Host, { key: 'cb722152a9c72d4666072540e0beb7c2f89431c1', "kup-opened": this.opened }, index.h("style", { key: '70c686002caabb6245f90d62769ad8e4e950e517' }, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { key: 'c139fac36ae489ef49a3fede40d8d13d84ac0f2c', class: "backdrop", onClick: (e) => {
|
|
134
134
|
e.preventDefault();
|
|
135
135
|
e.stopPropagation();
|
|
136
136
|
}, onPointerDown: (e) => {
|
|
@@ -140,7 +140,7 @@ const KupDrawer = class {
|
|
|
140
140
|
}, onTouchStart: (e) => {
|
|
141
141
|
e.preventDefault();
|
|
142
142
|
e.stopPropagation();
|
|
143
|
-
} }), index.h("div", { key: '
|
|
143
|
+
} }), index.h("div", { key: '9e1b72e748dfa8b0db962e80e0e2a7d88a6aecac', id: GenericVariables.componentWrapperId }, index.h("div", { key: '58eca77c2213e03d95ab440b328f5fe61abdf603', class: drawerClass }, this.content()))));
|
|
144
144
|
}
|
|
145
145
|
disconnectedCallback() {
|
|
146
146
|
this.kupManager.theme.unregister(this);
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-af4de85d.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
|
-
require('./kup-dates-
|
|
8
|
+
require('./kup-dates-6feda954.js');
|
|
9
9
|
|
|
10
10
|
/*! *****************************************************************************
|
|
11
11
|
Copyright (c) Microsoft Corporation.
|
|
@@ -84692,7 +84692,7 @@ const KupEchart = class {
|
|
|
84692
84692
|
'--kup_echart_height': this.sizeY ? this.sizeY : '100%',
|
|
84693
84693
|
'--kup_echart_width': this.sizeX ? this.sizeX : '100%',
|
|
84694
84694
|
};
|
|
84695
|
-
return (index.h(index.Host, { key: '
|
|
84695
|
+
return (index.h(index.Host, { key: '6695df3d157839e237b73df89f56dd438240739a', style: style }, index.h("style", { key: 'f645db394d2d0fc02d027e7958eaf9266be71a1d' }, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: '8cc220551d3cee74babf45104cfa3409b2107ec1', id: GenericVariables.componentWrapperId, ref: (chartContainer) => (__classPrivateFieldSet(this, _KupEchart_chartContainer, chartContainer, "f")) })));
|
|
84696
84696
|
}
|
|
84697
84697
|
disconnectedCallback() {
|
|
84698
84698
|
var _a;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-af4de85d.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
|
-
const kupDates = require('./kup-dates-
|
|
8
|
+
const kupDates = require('./kup-dates-6feda954.js');
|
|
9
9
|
|
|
10
10
|
var toastuiEditor = {exports: {}};
|
|
11
11
|
|
|
@@ -46258,7 +46258,7 @@ const KupEditor = class {
|
|
|
46258
46258
|
__classPrivateFieldGet(this, _KupEditor_kupManager, "f").debug.logRender(this, true);
|
|
46259
46259
|
}
|
|
46260
46260
|
render() {
|
|
46261
|
-
return (index.h(index.Host, { key: '
|
|
46261
|
+
return (index.h(index.Host, { key: '031333deffb0732e544076f155555bb62bc53190' }, index.h("div", { key: '0f312ec339138f3a62afdf742660606526d11e70', id: GenericVariables.componentWrapperId }, index.h("div", { key: this.rootElement.id, ref: (el) => (this.editorRef = el), class: "kup-editor" }), __classPrivateFieldGet(this, _KupEditor_instances, "m", _KupEditor_isPlainTextEditor).call(this) && (index.h("textarea", { key: '0e2bc200ff30a15f624299a9577ec910134dc3d1', id: '' + this.rootElement.id + '-textarea', value: this.initialValue, ref: (el) => (__classPrivateFieldSet(this, _KupEditor_textareaRef, el, "f")), onInput: (e) => __classPrivateFieldGet(this, _KupEditor_instances, "m", _KupEditor_handleUnsavedChanges).call(this, e.target.value), placeholder: "Type your text here...", readOnly: this.isReadOnly, style: {
|
|
46262
46262
|
height: this.editorHeight || 'auto',
|
|
46263
46263
|
}, class: "kup-editor-textarea" })))));
|
|
46264
46264
|
}
|
|
@@ -6,9 +6,9 @@ const index = require('./index-c7d441d8.js');
|
|
|
6
6
|
const fButton = require('./f-button-c084046d.js');
|
|
7
7
|
const fButtonDeclarations = require('./f-button-declarations-76ef9f87.js');
|
|
8
8
|
const fImage = require('./f-image-7457eb26.js');
|
|
9
|
-
const kupManager = require('./kup-manager-
|
|
9
|
+
const kupManager = require('./kup-manager-af4de85d.js');
|
|
10
10
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
11
|
-
require('./kup-dates-
|
|
11
|
+
require('./kup-dates-6feda954.js');
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Props of the kup-family-tree component.
|
|
@@ -26,7 +26,7 @@ var KupFamilyTreeProps;
|
|
|
26
26
|
KupFamilyTreeProps["stackedLeaves"] = "Child nodes that have no children are arranged vertically.";
|
|
27
27
|
})(KupFamilyTreeProps || (KupFamilyTreeProps = {}));
|
|
28
28
|
|
|
29
|
-
const kupFamilyTreeCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:var(--kup-label-01-font-size, 12px);line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-compact-01-font-size, 14px);line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-01-font-size, 14px);line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{--kup_familytree_item_background_color:var(\n --kup-layer-1,\n var(--kup-layer-1)\n );--kup_familytree_border_color:var(\n --kup-familytree-border-color,\n var(--kup-info-color-50)\n );--kup_familytree_item_color:var(\n --kup-familytree-item-color,\n var(--kup-text-color)\n );--kup_familytree_item_minheight:var(--kup-familytree-item-minheight, 32px);--kup_familytree_item_height:var(--kup-familytree-item-height, 100%);--kup_familytree_item_h_padding:var(\n --kup-familytree-item-h-padding,\n var(--kup-space-00)\n );--kup_familytree_item_v_padding:var(\n --kup-familytree-item-v-padding,\n var(--kup-space-03)\n );--kup_familytree_item_width:var(--kup-familytree-item-width, 280px);--kup_familytree_lines_color:var(\n --kup-familytree-lines-color,\n var(--kup-border-subtle)\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_minheight) + 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_minheight) / 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:32px}.family-tree__line--staff{height:calc(var(--kup_familytree_staffchildren) * var(--kup_familytree_item_minheight) + 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;display:flex;flex-direction:column}.family-tree__item__wrapper kup-box{margin:0 auto;overflow:hidden;padding:0 var(--kup-space-05);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);box-sizing:border-box;display:flex;height
|
|
29
|
+
const kupFamilyTreeCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:var(--kup-label-01-font-size, 12px);line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-compact-01-font-size, 14px);line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-01-font-size, 14px);line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{--kup_familytree_item_background_color:var(\n --kup-layer-1,\n var(--kup-layer-1)\n );--kup_familytree_border_color:var(\n --kup-familytree-border-color,\n var(--kup-info-color-50)\n );--kup_familytree_item_color:var(\n --kup-familytree-item-color,\n var(--kup-text-color)\n );--kup_familytree_item_minheight:var(--kup-familytree-item-minheight, 32px);--kup_familytree_item_height:var(--kup-familytree-item-height, 100%);--kup_familytree_item_h_padding:var(\n --kup-familytree-item-h-padding,\n var(--kup-space-00)\n );--kup_familytree_item_v_padding:var(\n --kup-familytree-item-v-padding,\n var(--kup-space-03)\n );--kup_familytree_item_width:var(--kup-familytree-item-width, 280px);--kup_familytree_lines_color:var(\n --kup-familytree-lines-color,\n var(--kup-border-subtle)\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_minheight) + 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_minheight) / 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:32px}.family-tree__line--staff{height:calc(var(--kup_familytree_staffchildren) * var(--kup_familytree_item_minheight) + 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;display:flex;flex-direction:column}.family-tree__item__wrapper kup-box{margin:0 auto;overflow:hidden;padding:0 var(--kup-space-05);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);box-sizing:border-box;display:flex;height:var(--kup_familytree_item_minheight);min-height:32px;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_familytree_border_color);height:100%;width:10px}.family-tree__item__layout__image{display:flex;margin:auto var(--kup-space-03)}.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}";
|
|
30
30
|
const KupFamilyTreeStyle0 = kupFamilyTreeCss;
|
|
31
31
|
|
|
32
32
|
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
@@ -116,30 +116,25 @@ const KupFamilyTree = class {
|
|
|
116
116
|
* This method causes the component to autofit its container's width.
|
|
117
117
|
*/
|
|
118
118
|
async runAutofit() {
|
|
119
|
+
if (!__classPrivateFieldGet(this, _KupFamilyTree_wrapperEl, "f")) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
119
122
|
const parentWidth = __classPrivateFieldGet(this, _KupFamilyTree_wrapperEl, "f").clientWidth;
|
|
120
|
-
const
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
123
|
+
const contentWidth = __classPrivateFieldGet(this, _KupFamilyTree_wrapperEl, "f").scrollWidth;
|
|
124
|
+
if (!parentWidth || !contentWidth) {
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
const minWidth = 0.85 * parentWidth;
|
|
128
|
+
const maxWidth = 0.95 * parentWidth;
|
|
124
129
|
let multiplier = 1;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
multiplier
|
|
130
|
-
tooManyAttempts--;
|
|
131
|
-
if (tempWidth < minWidth) {
|
|
132
|
-
multiplier = multiplier + multiplierStep;
|
|
133
|
-
}
|
|
134
|
-
else if (tempWidth > maxWidth) {
|
|
135
|
-
multiplier = multiplier - multiplierStep;
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
tooManyAttempts = 0;
|
|
139
|
-
}
|
|
140
|
-
tempWidth = childWidth * multiplier;
|
|
130
|
+
if (contentWidth > maxWidth) {
|
|
131
|
+
multiplier = maxWidth / contentWidth;
|
|
132
|
+
}
|
|
133
|
+
else if (contentWidth < minWidth) {
|
|
134
|
+
multiplier = Math.min(1, minWidth / contentWidth);
|
|
141
135
|
}
|
|
142
|
-
|
|
136
|
+
multiplier = Math.max(0.01, Math.min(1, multiplier));
|
|
137
|
+
__classPrivateFieldGet(this, _KupFamilyTree_wrapperEl, "f").style.setProperty('--kup_familytree_scale', multiplier.toFixed(2));
|
|
143
138
|
}
|
|
144
139
|
/**
|
|
145
140
|
* Sets the props to the component.
|
|
@@ -174,12 +169,12 @@ const KupFamilyTree = class {
|
|
|
174
169
|
__classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").debug.logRender(this, true);
|
|
175
170
|
}
|
|
176
171
|
render() {
|
|
177
|
-
return (index.h(index.Host, { key: '
|
|
172
|
+
return (index.h(index.Host, { key: 'ccc4705cc3e64180d9f8939db0b396be72f98278', onDrag: (e) => e.preventDefault(), onPointerDown: (e) => {
|
|
178
173
|
e.preventDefault();
|
|
179
174
|
__classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_startPanning).call(this, e);
|
|
180
175
|
}, onWheel: (e) => {
|
|
181
176
|
__classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_zoomTree).call(this, e);
|
|
182
|
-
} }, index.h("style", { key: '
|
|
177
|
+
} }, index.h("style", { key: 'b1b58e49d16afcecfa7ba436860d0badb7f6cb07' }, __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: '882699f46b8a0f0fc4b2ca6b0c5bb73d643dac7f', id: GenericVariables.componentWrapperId }, __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_createTree).call(this))));
|
|
183
178
|
}
|
|
184
179
|
disconnectedCallback() {
|
|
185
180
|
__classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").language.unregister(this);
|