@sme.up/ketchup 9.5.2 → 9.6.1
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-357a3dff.js → f-button-623dfcc3.js} +2 -2
- package/dist/cjs/{f-cell-1de0ea69.js → f-cell-9c718d83.js} +9 -8
- package/dist/cjs/{f-checkbox-41864e53.js → f-checkbox-bfa92ebe.js} +1 -1
- package/dist/cjs/{f-chip-bd5882a0.js → f-chip-c8efad5b.js} +3 -3
- package/dist/cjs/{f-image-30531fd0.js → f-image-b61cc967.js} +2 -2
- package/dist/cjs/{f-paginator-utils-ad8a4635.js → f-paginator-utils-f32382f6.js} +8 -8
- package/dist/cjs/{f-text-field-be758970.js → f-text-field-a09b1705.js} +2 -2
- package/dist/cjs/{index-8f2f4159.js → index-db0a6be6.js} +79 -38
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +7 -6
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +141 -112
- package/dist/cjs/kup-box.cjs.entry.js +82 -19
- package/dist/cjs/kup-calendar.cjs.entry.js +78 -11
- package/dist/cjs/kup-card-list.cjs.entry.js +5 -4
- package/dist/cjs/kup-cell.cjs.entry.js +12 -11
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +22 -16
- package/dist/cjs/kup-dashboard.cjs.entry.js +10 -9
- package/dist/cjs/{kup-dates-0e59b05d.js → kup-dates-4aa560f0.js} +80 -67
- package/dist/cjs/kup-drawer.cjs.entry.js +7 -6
- package/dist/cjs/kup-echart.cjs.entry.js +1504 -1025
- package/dist/cjs/kup-editor.cjs.entry.js +46260 -0
- package/dist/cjs/kup-family-tree.cjs.entry.js +9 -8
- package/dist/cjs/kup-gantt_10.cjs.entry.js +58 -42
- package/dist/cjs/kup-grid.cjs.entry.js +5 -4
- package/dist/cjs/kup-iframe.cjs.entry.js +5 -4
- package/dist/cjs/kup-image-list.cjs.entry.js +13 -12
- package/dist/cjs/kup-lazy.cjs.entry.js +16 -15
- package/dist/cjs/kup-magic-box.cjs.entry.js +9 -8
- package/dist/cjs/{kup-manager-cefb1999.js → kup-manager-227c4be2.js} +121 -79
- package/dist/cjs/kup-nav-bar.cjs.entry.js +6 -5
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +7 -6
- package/dist/cjs/kup-photo-frame.cjs.entry.js +7 -6
- package/dist/cjs/{kup-planner-renderer-helper-c2394940.js → kup-planner-renderer-helper-f0c869d7.js} +1 -1
- package/dist/cjs/kup-planner-renderer.cjs.entry.js +4 -4
- package/dist/cjs/kup-planner.cjs.entry.js +7 -6
- package/dist/cjs/kup-probe.cjs.entry.js +4 -4
- package/dist/cjs/kup-qlik.cjs.entry.js +6 -5
- package/dist/cjs/kup-snackbar.cjs.entry.js +8 -7
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/editor-example-1.js +52 -0
- package/dist/collection/assets/editor.js +60 -0
- package/dist/collection/assets/index.js +12 -0
- package/dist/collection/assets/planner-example-4.js +4 -4
- package/dist/collection/assets/planner-example-5.js +3175 -0
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/kup-accordion/kup-accordion.js +10 -16
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +10 -16
- package/dist/collection/components/kup-badge/kup-badge.js +8 -12
- package/dist/collection/components/kup-box/kup-box-declarations.js +11 -0
- package/dist/collection/components/kup-box/kup-box-state.js +2 -0
- package/dist/collection/components/kup-box/kup-box.css +1 -1
- package/dist/collection/components/kup-box/kup-box.js +181 -23
- package/dist/collection/components/kup-button/kup-button.js +6 -10
- package/dist/collection/components/kup-button-list/kup-button-list.js +7 -11
- package/dist/collection/components/kup-calendar/kup-calendar.js +10 -12
- package/dist/collection/components/kup-card/kup-card.js +6 -10
- package/dist/collection/components/kup-card-list/kup-card-list.js +6 -10
- package/dist/collection/components/kup-cell/kup-cell.js +13 -21
- package/dist/collection/components/kup-chart/kup-chart.js +7 -11
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +7 -11
- package/dist/collection/components/kup-chip/kup-chip.js +8 -12
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +11 -17
- package/dist/collection/components/kup-combobox/kup-combobox.js +10 -16
- package/dist/collection/components/kup-dashboard/kup-dashboard.js +7 -11
- package/dist/collection/components/kup-data-table/kup-data-table.js +72 -95
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +7 -11
- package/dist/collection/components/kup-dialog/kup-dialog.css +2 -2
- package/dist/collection/components/kup-dialog/kup-dialog.js +9 -13
- package/dist/collection/components/kup-drawer/kup-drawer.js +8 -12
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +10 -13
- package/dist/collection/components/kup-echart/kup-echart.js +7 -11
- package/dist/collection/components/kup-editor/kup-editor-declarations.js +15 -0
- package/dist/collection/components/kup-editor/kup-editor.js +774 -0
- package/dist/collection/components/kup-family-tree/kup-family-tree.js +14 -16
- package/dist/collection/components/kup-form/kup-form.js +14 -22
- package/dist/collection/components/kup-gauge/kup-gauge.js +6 -10
- package/dist/collection/components/kup-grid/kup-grid.js +6 -10
- package/dist/collection/components/kup-iframe/kup-iframe.js +6 -10
- package/dist/collection/components/kup-image/kup-image.js +6 -10
- package/dist/collection/components/kup-image-list/kup-image-list.js +8 -12
- package/dist/collection/components/kup-lazy/kup-lazy.js +17 -21
- package/dist/collection/components/kup-list/kup-list.js +10 -16
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +9 -13
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +7 -11
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +7 -11
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +8 -12
- package/dist/collection/components/kup-planner/kup-planner.js +13 -21
- package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
- package/dist/collection/components/kup-planner/utils/custom-task-list-table.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +2 -1
- 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.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css +0 -2
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +13 -14
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +1 -1
- 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 +6 -4
- 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 +6 -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.css +0 -2
- 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 +7 -11
- package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
- package/dist/collection/components/kup-radio/kup-radio.js +6 -10
- package/dist/collection/components/kup-rating/kup-rating.js +7 -11
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +7 -11
- package/dist/collection/components/kup-spinner/kup-spinner.js +40 -44
- package/dist/collection/components/kup-switch/kup-switch.js +7 -11
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +6 -10
- package/dist/collection/components/kup-text-field/kup-text-field.js +10 -13
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +10 -13
- package/dist/collection/components/kup-tree/kup-tree-faker.js +1 -1
- package/dist/collection/components/kup-tree/kup-tree.js +24 -33
- package/dist/collection/f-components/f-cell/f-cell.js +2 -1
- package/dist/collection/managers/kup-manager/kup-manager.js +5 -0
- package/dist/collection/managers/kup-openai/kup-openai.js +11 -8
- package/dist/components/custom-task-list-header.js +4 -3
- package/dist/components/custom-task-list-table.js +4 -3
- package/dist/components/kup-accordion.js +3 -2
- package/dist/components/kup-autocomplete2.js +136 -106
- package/dist/components/kup-box2.js +78 -11
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +74 -7
- package/dist/components/kup-card-list.js +2 -1
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +3 -2
- package/dist/components/kup-chart.js +1 -1
- package/dist/components/kup-checkbox.js +1 -1
- package/dist/components/kup-chip.js +1 -1
- package/dist/components/kup-color-picker.js +1 -1
- package/dist/components/kup-combobox.js +1 -1
- package/dist/components/kup-dashboard.js +4 -3
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dates.js +81 -67
- package/dist/components/kup-dialog.js +1 -1
- package/dist/components/kup-drawer.js +4 -3
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart2.js +1501 -1022
- package/dist/components/kup-editor.d.ts +11 -0
- package/dist/components/kup-editor.js +46434 -0
- package/dist/components/kup-family-tree.js +5 -4
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gantt-calendar2.js +3 -2
- package/dist/components/kup-gantt2.js +4 -2
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid-renderer2.js +10 -7
- package/dist/components/kup-grid2.js +2 -1
- package/dist/components/kup-horizontal-scroll2.js +12 -12
- package/dist/components/kup-iframe.js +2 -1
- package/dist/components/kup-image-list.js +5 -4
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-lazy.js +13 -12
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +6 -5
- package/dist/components/kup-manager.js +121 -79
- package/dist/components/kup-nav-bar.js +3 -2
- package/dist/components/kup-numeric-picker.js +4 -3
- package/dist/components/kup-photo-frame.js +4 -3
- package/dist/components/kup-planner-renderer-helper.js +2 -2
- package/dist/components/kup-planner-renderer2.js +3 -3
- package/dist/components/kup-planner.js +5 -4
- package/dist/components/kup-probe.js +1 -1
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +3 -2
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +4 -3
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-standard-tooltip2.js +3 -2
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-switcher2.js +3 -2
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-task-gantt2.js +6 -4
- package/dist/components/kup-task-list-header2.js +9 -8
- package/dist/components/kup-task-list-table2.js +3 -2
- package/dist/components/kup-task-list2.js +9 -3
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-tooltip2.js +3 -2
- package/dist/components/kup-tree.js +1 -1
- package/dist/components/kup-vertical-scroll2.js +5 -4
- package/dist/esm/{f-button-856a189a.js → f-button-121958b3.js} +2 -2
- package/dist/esm/{f-cell-6324d838.js → f-cell-959b83db.js} +9 -8
- package/dist/esm/{f-checkbox-43481de2.js → f-checkbox-fdf27ce9.js} +1 -1
- package/dist/esm/{f-chip-e15fba8a.js → f-chip-915ddf53.js} +3 -3
- package/dist/esm/{f-image-26b1bc14.js → f-image-98371dac.js} +2 -2
- package/dist/esm/{f-paginator-utils-e8f62783.js → f-paginator-utils-10fa5a7d.js} +5 -5
- package/dist/esm/{f-text-field-bbe1f236.js → f-text-field-0df308e4.js} +2 -2
- package/dist/esm/{index-59f83f91.js → index-bbef9f2a.js} +79 -38
- package/dist/esm/index.js +3 -3
- package/dist/esm/ketchup.js +4 -4
- package/dist/esm/kup-accordion.entry.js +7 -6
- package/dist/esm/kup-autocomplete_27.entry.js +141 -112
- package/dist/esm/kup-box.entry.js +82 -19
- package/dist/esm/kup-calendar.entry.js +78 -11
- package/dist/esm/kup-card-list.entry.js +5 -4
- package/dist/esm/kup-cell.entry.js +12 -11
- package/dist/esm/kup-custom-task-list-header_4.entry.js +22 -16
- package/dist/esm/kup-dashboard.entry.js +10 -9
- package/dist/esm/{kup-dates-15f89ea2.js → kup-dates-172954df.js} +81 -67
- package/dist/esm/kup-drawer.entry.js +7 -6
- package/dist/esm/kup-echart.entry.js +1504 -1025
- package/dist/esm/kup-editor.entry.js +46256 -0
- package/dist/esm/kup-family-tree.entry.js +9 -8
- package/dist/esm/kup-gantt_10.entry.js +58 -42
- package/dist/esm/kup-grid.entry.js +5 -4
- package/dist/esm/kup-iframe.entry.js +5 -4
- package/dist/esm/kup-image-list.entry.js +13 -12
- package/dist/esm/kup-lazy.entry.js +16 -15
- package/dist/esm/kup-magic-box.entry.js +9 -8
- package/dist/esm/{kup-manager-8d1df189.js → kup-manager-33b051d6.js} +122 -80
- package/dist/esm/kup-nav-bar.entry.js +6 -5
- package/dist/esm/kup-numeric-picker.entry.js +7 -6
- package/dist/esm/kup-photo-frame.entry.js +7 -6
- package/dist/esm/{kup-planner-renderer-helper-2143d119.js → kup-planner-renderer-helper-5d97e075.js} +2 -2
- package/dist/esm/kup-planner-renderer.entry.js +4 -4
- package/dist/esm/kup-planner.entry.js +8 -7
- package/dist/esm/kup-probe.entry.js +4 -4
- package/dist/esm/kup-qlik.entry.js +6 -5
- package/dist/esm/kup-snackbar.entry.js +8 -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-060ae996.entry.js +1 -0
- package/dist/ketchup/{p-0c124f99.entry.js → p-0a4595bd.entry.js} +1 -1
- package/dist/ketchup/{p-dc370227.entry.js → p-0dd0ae49.entry.js} +1 -1
- package/dist/ketchup/p-102866cd.js +1 -0
- package/dist/ketchup/{p-d300948a.entry.js → p-11d5400a.entry.js} +1 -1
- package/dist/ketchup/p-1ad7fea0.js +2 -0
- package/dist/ketchup/{p-01a0b54c.js → p-2778f948.js} +1 -1
- package/dist/ketchup/p-2f4055ba.entry.js +1 -0
- package/dist/ketchup/p-3c9ac0fd.entry.js +1 -0
- package/dist/ketchup/p-3ce8ce77.entry.js +49 -0
- package/dist/ketchup/p-3ff9a661.entry.js +1 -0
- package/dist/ketchup/p-41d6466e.entry.js +1 -0
- package/dist/ketchup/p-4bf5e04f.entry.js +1 -0
- package/dist/ketchup/p-610a03d4.js +28 -0
- package/dist/ketchup/{p-d9a1e5a4.entry.js → p-662d2f9b.entry.js} +1 -1
- package/dist/ketchup/p-773bcc69.entry.js +1 -0
- package/dist/ketchup/{p-caeed3c3.js → p-7bda0684.js} +1 -1
- package/dist/ketchup/p-81996620.entry.js +1 -0
- package/dist/ketchup/p-9d8d5070.entry.js +1 -0
- package/dist/ketchup/{p-8042dcd5.entry.js → p-9e63f56b.entry.js} +1 -1
- package/dist/ketchup/p-9f31a129.entry.js +38 -0
- package/dist/ketchup/p-a9b06bb8.js +1 -0
- package/dist/ketchup/p-b3067fd0.entry.js +9 -0
- package/dist/ketchup/p-b5d3c24d.entry.js +1 -0
- package/dist/ketchup/p-babbffa4.entry.js +1 -0
- package/dist/ketchup/p-c1ade766.entry.js +1 -0
- package/dist/ketchup/{p-9ba8f169.js → p-ccc637ee.js} +1 -1
- package/dist/ketchup/p-d15d1083.entry.js +1 -0
- package/dist/ketchup/p-d5254caf.entry.js +1 -0
- package/dist/ketchup/{p-d76cd8d6.js → p-dba484b8.js} +1 -1
- package/dist/ketchup/{p-f51dbf68.js → p-dc18691c.js} +1 -1
- package/dist/ketchup/p-de07d17e.js +1 -0
- package/dist/ketchup/p-df450df9.entry.js +16 -0
- package/dist/ketchup/{p-269a9af8.js → p-e43d4ccc.js} +1 -1
- package/dist/ketchup/p-ea625b2a.entry.js +1 -0
- package/dist/ketchup/{p-81c1d557.entry.js → p-eb37ea7e.entry.js} +1 -1
- package/dist/ketchup/p-f0b882f4.entry.js +1 -0
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +13 -0
- package/dist/types/components/kup-box/kup-box-state.d.ts +2 -0
- package/dist/types/components/kup-box/kup-box.d.ts +26 -1
- package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +1 -0
- package/dist/types/components/kup-dashboard/kup-dashboard.d.ts +1 -0
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +1 -0
- package/dist/types/components/kup-editor/kup-editor-declarations.d.ts +21 -0
- package/dist/types/components/kup-editor/kup-editor.d.ts +128 -0
- package/dist/types/components/kup-planner/utils/kup-gantt/kup-gantt.d.ts +1 -0
- package/dist/types/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.d.ts +1 -1
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +1 -0
- package/dist/types/components.d.ts +197 -8
- package/dist/types/managers/kup-data/kup-data.d.ts +1 -1
- package/dist/types/managers/kup-interact/kup-interact-declarations.d.ts +1 -0
- package/dist/types/managers/kup-interact/kup-interact.d.ts +1 -0
- package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +3 -0
- package/dist/types/managers/kup-manager/kup-manager.d.ts +1 -0
- package/dist/types/managers/kup-toolbar/kup-toolbar-declarations.d.ts +1 -1
- package/package.json +4 -3
- package/dist/ketchup/p-07bed934.entry.js +0 -1
- package/dist/ketchup/p-0f6cb6e4.entry.js +0 -1
- package/dist/ketchup/p-177f8008.entry.js +0 -9
- package/dist/ketchup/p-2ab02da0.entry.js +0 -1
- package/dist/ketchup/p-3f028a71.entry.js +0 -1
- package/dist/ketchup/p-4a18db68.entry.js +0 -39
- package/dist/ketchup/p-4eb6d4e8.entry.js +0 -1
- package/dist/ketchup/p-63031c77.js +0 -1
- package/dist/ketchup/p-71acfd3c.entry.js +0 -1
- package/dist/ketchup/p-753f30d8.entry.js +0 -1
- package/dist/ketchup/p-8c3ad5ef.entry.js +0 -1
- package/dist/ketchup/p-937a322f.js +0 -29
- package/dist/ketchup/p-a2d3aec9.entry.js +0 -1
- package/dist/ketchup/p-b07ffd18.entry.js +0 -16
- package/dist/ketchup/p-b115e1ec.entry.js +0 -1
- package/dist/ketchup/p-b396d0f8.js +0 -1
- package/dist/ketchup/p-c12a9759.entry.js +0 -1
- package/dist/ketchup/p-c23731ca.js +0 -1
- package/dist/ketchup/p-cadeb53d.entry.js +0 -1
- package/dist/ketchup/p-cd9a4274.js +0 -2
- package/dist/ketchup/p-f1cae1e1.entry.js +0 -1
- package/dist/ketchup/p-f417e794.entry.js +0 -1
- package/dist/ketchup/p-f753c13f.entry.js +0 -1
- package/dist/ketchup/p-f7980061.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { k as kupManagerInstance, _ as identify, g as getProps, s as setProps, z as getColumnByName, c as KupLanguageGeneric, b as KupThemeIconValues, P as KupDebugCategory, X as KupPointerEventTypes, a4 as KupDragEffect, ah as kupDraggableAttr, a6 as KupDropEventTypes, Q as KupLanguageSearch
|
|
3
|
-
import { D as filterRows, E as paginateRows, G as sortRows, H as pageChange, I as rowsPerPageChange, F as FImage, J as FCell, L as FChip, N as FTextFieldMDC, O as FPaginator,
|
|
2
|
+
import { k as kupManagerInstance, _ as identify, g as getProps, s as setProps, S as SortMode, z as getColumnByName, c as KupLanguageGeneric, b as KupThemeIconValues, P as KupDebugCategory, X as KupPointerEventTypes, a4 as KupDragEffect, ah as kupDraggableAttr, a6 as KupDropEventTypes, Q as KupLanguageSearch } from './kup-manager.js';
|
|
3
|
+
import { D as filterRows, E as paginateRows, G as sortRows, H as pageChange, I as rowsPerPageChange, F as FImage, J as FCell, L as FChip, N as FTextFieldMDC, O as FPaginator, c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r } from './kup-autocomplete2.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Props of the kup-box component.
|
|
@@ -21,6 +21,9 @@ var KupBoxProps;
|
|
|
21
21
|
KupBoxProps["kanban"] = "Displays the boxlist as a Kanban.";
|
|
22
22
|
KupBoxProps["layout"] = "How the field will be displayed. If not present, a default one will be created.";
|
|
23
23
|
KupBoxProps["lazyLoadRows"] = "When set to true, extra rows will be automatically loaded once the last row enters the viewport.";
|
|
24
|
+
KupBoxProps["loadMoreLimit"] = "Sets a maximum limit of new records which can be required by the load more functionality.";
|
|
25
|
+
KupBoxProps["loadMoreMode"] = "Establish the modality of how many new records will be downloaded. This property is regulated also by loadMoreStep.";
|
|
26
|
+
KupBoxProps["loadMoreStep"] = "The number of records which will be requested to be downloaded when clicking on the load more button. This property is regulated also by loadMoreMode.";
|
|
24
27
|
KupBoxProps["multiSelection"] = "Enable multi selection.";
|
|
25
28
|
KupBoxProps["pageSelected"] = "Current page number.";
|
|
26
29
|
KupBoxProps["pagination"] = "Enables pagination.";
|
|
@@ -28,6 +31,7 @@ var KupBoxProps;
|
|
|
28
31
|
KupBoxProps["scrollOnHover"] = "Activates the scroll on hover function.";
|
|
29
32
|
KupBoxProps["selectBox"] = "Automatically selects the box at the specified index.";
|
|
30
33
|
KupBoxProps["selectedRowsState"] = "Multiple selection.";
|
|
34
|
+
KupBoxProps["showLoadMore"] = "If set to true, displays the button to load more records.";
|
|
31
35
|
KupBoxProps["showSelection"] = "If enabled, highlights the selected box/boxes.";
|
|
32
36
|
KupBoxProps["sortBy"] = "If sorting is enabled, specifies which column to sort.";
|
|
33
37
|
KupBoxProps["sortEnabled"] = "Enable sorting.";
|
|
@@ -35,6 +39,13 @@ var KupBoxProps;
|
|
|
35
39
|
KupBoxProps["store"] = "";
|
|
36
40
|
KupBoxProps["swipeDisabled"] = "Disable swipe.";
|
|
37
41
|
})(KupBoxProps || (KupBoxProps = {}));
|
|
42
|
+
//---- *NEXT functionality AKA load more ----
|
|
43
|
+
var LoadMoreMode;
|
|
44
|
+
(function (LoadMoreMode) {
|
|
45
|
+
LoadMoreMode["CONSTANT"] = "constant";
|
|
46
|
+
LoadMoreMode["CONSTANT_INCREMENT"] = "constant_increment";
|
|
47
|
+
LoadMoreMode["PROGRESSIVE_THRESHOLD"] = "progressive_threshold";
|
|
48
|
+
})(LoadMoreMode || (LoadMoreMode = {}));
|
|
38
49
|
|
|
39
50
|
class KupBoxState {
|
|
40
51
|
constructor() {
|
|
@@ -44,6 +55,8 @@ class KupBoxState {
|
|
|
44
55
|
this.pageSelected = 1;
|
|
45
56
|
this.rowsPerPage = 0;
|
|
46
57
|
this.load = false;
|
|
58
|
+
this.loadMoreLimit = 1000;
|
|
59
|
+
this.showLoadMore = false;
|
|
47
60
|
}
|
|
48
61
|
/*Add attribute*/
|
|
49
62
|
toDebugString() {
|
|
@@ -52,7 +65,8 @@ class KupBoxState {
|
|
|
52
65
|
}
|
|
53
66
|
}
|
|
54
67
|
|
|
55
|
-
const kupBoxCss = ":host{--kup_box_background_color:var(\n --kup-box-background-color,\n var(--kup-background-color)\n );--kup_box_color:var(--kup-box-color, var(--kup-text-color));--kup_box_font_family:var(--kup-box-font-family, var(--kup-font-family));--kup_box_font_size:var(--kup-box-font-size, var(--kup-font-size));--kup_box_grid_gap:var(--kup-box-grid-gap, 1em);--kup_box_hover_box_shadow:var(\n --kup-box-hover-box-shadow,\n 0px 0px 7.5px 0px rgba(128, 128, 128, 0.5)\n );--kup_box_primary_color_rgb:var(\n --kup-box-primary-color-rgb,\n var(--kup-primary-color-rgb)\n );--kup_box_transition:var(--kup-box-transition, 0.25s);display:block;font-family:var(--kup_box_font_family);font-size:var(--kup_box_font_size)}.box-component{background:var(--kup_box_background_color);transition:border var(--kup_box_transition) ease}.box-component[kup-drag-over]{position:relative;border:3px dashed var(--kup-border-color)}#box-container{display:grid;grid-gap:var(--kup_box_grid_gap);color:var(--kup_box_color);overflow:auto}#box-container.is-kanban .kanban-section{overflow:auto}#box-container.is-kanban .box-wrapper{padding-top:1em}#box-container.is-kanban .box-wrapper .box{overflow:auto}#box-container
|
|
68
|
+
const kupBoxCss = ":host{--kup_box_background_color:var(\n --kup-box-background-color,\n var(--kup-background-color)\n );--kup_box_color:var(--kup-box-color, var(--kup-text-color));--kup_box_font_family:var(--kup-box-font-family, var(--kup-font-family));--kup_box_font_size:var(--kup-box-font-size, var(--kup-font-size));--kup_box_grid_gap:var(--kup-box-grid-gap, 1em);--kup_box_hover_box_shadow:var(\n --kup-box-hover-box-shadow,\n 0px 0px 7.5px 0px rgba(128, 128, 128, 0.5)\n );--kup_box_primary_color_rgb:var(\n --kup-box-primary-color-rgb,\n var(--kup-primary-color-rgb)\n );--kup_box_transition:var(--kup-box-transition, 0.25s);display:block;font-family:var(--kup_box_font_family);font-size:var(--kup_box_font_size)}.box-component{background:var(--kup_box_background_color);transition:border var(--kup_box_transition) ease}.box-component[kup-drag-over]{position:relative;border:3px dashed var(--kup-border-color)}#box-container{display:grid;grid-gap:var(--kup_box_grid_gap);color:var(--kup_box_color);overflow:auto}#box-container.is-kanban .kanban-section{overflow:auto}#box-container.is-kanban .box-wrapper{padding-top:1em}#box-container.is-kanban .box-wrapper .box{overflow:auto}#box-container *:not(.progress-bar-percentage){box-sizing:border-box}#box-container .box-wrapper{display:flex;align-items:center}#box-container .box-wrapper .box{flex-grow:1;cursor:pointer;position:relative;display:flex;transition:background-color var(--kup_box_transition) ease, box-shadow var(--kup_box_transition) ease, border var(--kup_box_transition) ease}#box-container .box-wrapper .box.draggable{touch-action:none;user-select:none}#box-container .box-wrapper .box.column{flex-direction:column}#box-container .box-wrapper .box:hover{box-shadow:var(--kup_box_hover_box_shadow)}#box-container .box-wrapper .box.selected{background-color:rgba(var(--kup_box_primary_color_rgb), 0.175)}#box-container .box-wrapper .box.selected .box-section.titled>h3{background-color:transparent}#box-container .box-wrapper .box[kup-draggable]{opacity:0.5}#box-container .box-wrapper .box[kup-drag-over]{border:3px dashed var(--kup-border-color);position:relative;z-index:2}#box-container .box-wrapper .box .box-section{display:flex;flex-direction:row;flex:1 1 1%;flex-wrap:wrap}#box-container .box-wrapper .box .box-section.column{flex-direction:column;justify-content:center;flex-wrap:unset}#box-container .box-wrapper .box .box-section.column>.box-section{flex:0 0 auto}#box-container .box-wrapper .box .box-section.grid{display:grid}#box-container .box-wrapper .box .box-section .box-object{min-height:16px}#box-container .box-wrapper .box .box-section .box-object img{height:auto}#box-container .box-wrapper .box .box-section.collapse-section .header{border-top:1px solid var(--kup-border-color);color:rgba(var(--kup-text-color-rgb), 0.75);display:flex;justify-content:space-around;width:100%}#box-container .box-wrapper .box .box-section.collapse-section .header .header-content{margin:0.5em;display:flex;align-items:center}#box-container .box-wrapper .box .box-section.collapse-section .header .header-content .f-image{transition:transform 0.15s}#box-container .box-wrapper .box .box-section.collapse-section .header .header-content .f-image.toggled{transform:rotate(-180deg)}#box-container .box-wrapper .box .box-section.collapse-section .header .header-content .kup-icon.kup-dropdown-icon{margin:0;-webkit-mask:var(--kup-dropdown-icon);mask:var(--kup-dropdown-icon)}#box-container .box-wrapper .box .box-section.collapse-section .content{display:none;width:100%}#box-container .box-wrapper .box .box-section.collapse-section.open .content{display:block}#box-container .box-wrapper .box .box-section.titled{border:1px solid var(--kup-border-color);padding-top:5px;position:relative;margin:10px}#box-container .box-wrapper .box .box-section.titled>h3{background:var(--kup-background-color);font-size:calc(var(--kup-font-size) * 1.15);position:absolute;margin:0px;padding:0 8px;top:-11px;left:5px;transition:background-color 0.25s ease}#box-container .box-wrapper .box .box-selection{position:absolute;top:0.5em;right:0.5em;z-index:1}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler{position:relative;width:24px;height:24px;margin-left:3px}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler svg{cursor:pointer;opacity:0;fill:var(--kup-text-color);transition:opacity 500ms ease-out}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu{background:var(--kup-background-color);border:1px solid var(--kup-border-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);position:absolute;top:0;right:24px;display:none;z-index:10}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu ul{list-style-type:none;margin:0;padding:0}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu ul>li{cursor:pointer;white-space:nowrap;padding:0 12px;display:flex;align-items:center;line-height:30px}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu ul>li:not(:last-child){border-bottom:1px solid var(--kup-border-color)}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu.open{display:block}#box-container .box-wrapper:hover .row-actions-wrapper .row-actions-toggler svg{opacity:1}#sort-panel,#global-filter{margin-bottom:1em}:host(.kup-center-aligned) #kup-component .box-section{text-align:center}:host(.kup-center-aligned) #kup-component .box-section .f-cell{justify-content:center;margin:auto;text-align:center}:host(.kup-center-aligned) #kup-component .box-section .f-cell .f-cell__content{justify-content:center;margin:auto;text-align:center}:host(.kup-center-aligned) #kup-component .box-section .f-cell img{margin:auto}:host(.kup-right-aligned) #kup-component .box-section{text-align:right}:host(.kup-right-aligned) #kup-component .box-section .f-cell{justify-content:flex-end;margin-left:auto;margin-right:0;text-align:right}:host(.kup-right-aligned) #kup-component .box-section .f-cell .f-cell__content{justify-content:flex-end;margin-left:auto;margin-right:0;text-align:right}:host(.kup-right-aligned) #kup-component .box-section .f-cell img{margin-left:auto;margin-right:0}:host(.kup-top-aligned) #box-container .box-wrapper .box .box-section .column{justify-content:flex-start}:host(.kup-bottom-aligned) #box-container .box-wrapper .box .box-section .column{justify-content:flex-end}:host(:not(.kup-borderless)) .box{border:1px solid var(--kup-border-color)}:host(.kup-flat-on-hover) #box-container .box-wrapper .box:hover{box-shadow:none}:host(.kup-shaped) .box{border-radius:10px}:host(.kup-round) .box{border-radius:25px}:host(.kup-dashed-sections) .box-section{border:2px dashed var(--kup-text-color)}:host(:not(.kup-paddingless)) #box-container .box{padding:3px}:host(:not(.kup-paddingless)) #box-container .box .box-section .box-object{padding:1px 4px}:host(:not(.kup-paddingless)) #box-container .box .box-section.last-child{margin:3px 4px}:host(.kup-danger){--kup-box-primary-color-rgb:var(--kup-danger-color-rgb)}:host(.kup-info){--kup-box-primary-color-rgb:var(--kup-info-color-rgb)}:host(.kup-secondary){--kup-box-primary-color-rgb:var(--kup-secondary-color-rgb)}:host(.kup-success){--kup-box-primary-color-rgb:var(--kup-success-color-rgb)}:host(.kup-warning){--kup-box-primary-color-rgb:var(--kup-warning-color-rgb)}";
|
|
69
|
+
const KupBoxStyle0 = kupBoxCss;
|
|
56
70
|
|
|
57
71
|
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
58
72
|
if (kind === "a" && !f)
|
|
@@ -70,7 +84,7 @@ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) ||
|
|
|
70
84
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
71
85
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
72
86
|
};
|
|
73
|
-
var _KupBox_instances, _KupBox_intObserver, _KupBox_rowsRefs, _KupBox_navBarHeight, _KupBox_didRenderObservers, _KupBox_setObserver;
|
|
87
|
+
var _KupBox_instances, _KupBox_intObserver, _KupBox_rowsRefs, _KupBox_navBarHeight, _KupBox_loadMoreEventCounter, _KupBox_loadMoreEventPreviousQuantity, _KupBox_didRenderObservers, _KupBox_setObserver, _KupBox_onLoadMoreClick;
|
|
74
88
|
const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends HTMLElement {
|
|
75
89
|
constructor() {
|
|
76
90
|
super();
|
|
@@ -84,6 +98,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends HTMLElement
|
|
|
84
98
|
this.kupDidLoad = createEvent(this, "kup-box-didload", 6);
|
|
85
99
|
this.kupDidUnload = createEvent(this, "kup-box-didunload", 6);
|
|
86
100
|
this.kupBoxContextMenu = createEvent(this, "kup-box-contextmenu", 6);
|
|
101
|
+
this.kupLoadMoreClick = createEvent(this, "kup-box-loadmoreclick", 6);
|
|
87
102
|
_KupBox_instances.add(this);
|
|
88
103
|
this.state = new KupBoxState();
|
|
89
104
|
/*-------------------------------------------------*/
|
|
@@ -105,6 +120,8 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends HTMLElement
|
|
|
105
120
|
_KupBox_intObserver.set(this, undefined);
|
|
106
121
|
_KupBox_rowsRefs.set(this, []);
|
|
107
122
|
_KupBox_navBarHeight.set(this, 0);
|
|
123
|
+
_KupBox_loadMoreEventCounter.set(this, 0);
|
|
124
|
+
_KupBox_loadMoreEventPreviousQuantity.set(this, 0);
|
|
108
125
|
this.collapsedSection = {};
|
|
109
126
|
this.selectedRows = [];
|
|
110
127
|
this.rowActionMenuOpened = undefined;
|
|
@@ -124,6 +141,9 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends HTMLElement
|
|
|
124
141
|
this.kanban = null;
|
|
125
142
|
this.layout = undefined;
|
|
126
143
|
this.lazyLoadRows = false;
|
|
144
|
+
this.loadMoreLimit = 1000;
|
|
145
|
+
this.loadMoreMode = LoadMoreMode.PROGRESSIVE_THRESHOLD;
|
|
146
|
+
this.loadMoreStep = 60;
|
|
127
147
|
this.multiSelection = false;
|
|
128
148
|
this.pageSelected = 1;
|
|
129
149
|
this.pagination = false;
|
|
@@ -131,6 +151,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends HTMLElement
|
|
|
131
151
|
this.scrollOnHover = false;
|
|
132
152
|
this.selectBox = undefined;
|
|
133
153
|
this.selectedRowsState = undefined;
|
|
154
|
+
this.showLoadMore = false;
|
|
134
155
|
this.showSelection = true;
|
|
135
156
|
this.sortBy = undefined;
|
|
136
157
|
this.sortEnabled = false;
|
|
@@ -152,6 +173,8 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends HTMLElement
|
|
|
152
173
|
this.selectedRowsState = this.state.selectedRowsState;
|
|
153
174
|
this.pageSelected = this.state.pageSelected;
|
|
154
175
|
this.rowsPerPage = this.state.rowsPerPage;
|
|
176
|
+
this.loadMoreLimit = state.loadMoreLimit;
|
|
177
|
+
this.showLoadMore = state.showLoadMore;
|
|
155
178
|
}
|
|
156
179
|
}
|
|
157
180
|
}
|
|
@@ -182,6 +205,14 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends HTMLElement
|
|
|
182
205
|
this.state.selectedRowsState = selectedRowsState;
|
|
183
206
|
somethingChanged = true;
|
|
184
207
|
}
|
|
208
|
+
if (!this.kupManager.objects.deepEqual(this.state.loadMoreLimit, this.loadMoreLimit)) {
|
|
209
|
+
this.state.loadMoreLimit = this.loadMoreLimit;
|
|
210
|
+
somethingChanged = true;
|
|
211
|
+
}
|
|
212
|
+
if (!this.kupManager.objects.deepEqual(this.state.showLoadMore, this.showLoadMore)) {
|
|
213
|
+
this.state.showLoadMore = this.showLoadMore;
|
|
214
|
+
somethingChanged = true;
|
|
215
|
+
}
|
|
185
216
|
if (!this.state.load) {
|
|
186
217
|
this.state.load = true;
|
|
187
218
|
return;
|
|
@@ -1209,10 +1240,16 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends HTMLElement
|
|
|
1209
1240
|
} })));
|
|
1210
1241
|
}
|
|
1211
1242
|
let paginator = null;
|
|
1212
|
-
if (!this.lazyLoadRows && this.pagination) {
|
|
1213
|
-
paginator = (h(FPaginator, { id:
|
|
1243
|
+
if (this.showLoadMore || (!this.lazyLoadRows && this.pagination)) {
|
|
1244
|
+
paginator = (h(FPaginator, { id: 'top-paginator' , currentPage: this.currentPage, max: this.filteredRows.length,
|
|
1245
|
+
// mode={FPaginatorMode.SIMPLE}
|
|
1246
|
+
perPage: this.currentRowsPerPage
|
|
1214
1247
|
? this.currentRowsPerPage
|
|
1215
|
-
: this.rowsPerPage,
|
|
1248
|
+
: this.rowsPerPage, onLoadMore: this.showLoadMore
|
|
1249
|
+
? () => {
|
|
1250
|
+
__classPrivateFieldGet(this, _KupBox_instances, "m", _KupBox_onLoadMoreClick).call(this);
|
|
1251
|
+
}
|
|
1252
|
+
: null, onNextPage: () => this.handlePageChange(this.currentPage + 1), onPrevPage: () => this.handlePageChange(this.currentPage - 1), onPageChange: (e) => this.handlePageChange(e.detail.value), onRowsChange: (e) => this.handleRowsPerPageChange(e.detail.value) }));
|
|
1216
1253
|
}
|
|
1217
1254
|
let boxContent = null;
|
|
1218
1255
|
let containerStyle = {};
|
|
@@ -1265,7 +1302,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends HTMLElement
|
|
|
1265
1302
|
"layout": ["onLayoutChanged"],
|
|
1266
1303
|
"selectBox": ["onSelectBoxChanged"]
|
|
1267
1304
|
}; }
|
|
1268
|
-
static get style() { return
|
|
1305
|
+
static get style() { return KupBoxStyle0; }
|
|
1269
1306
|
}, [1, "kup-box", {
|
|
1270
1307
|
"cardData": [16],
|
|
1271
1308
|
"columns": [2],
|
|
@@ -1281,6 +1318,9 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends HTMLElement
|
|
|
1281
1318
|
"kanban": [16],
|
|
1282
1319
|
"layout": [16],
|
|
1283
1320
|
"lazyLoadRows": [4, "lazy-load-rows"],
|
|
1321
|
+
"loadMoreLimit": [2, "load-more-limit"],
|
|
1322
|
+
"loadMoreMode": [1, "load-more-mode"],
|
|
1323
|
+
"loadMoreStep": [2, "load-more-step"],
|
|
1284
1324
|
"multiSelection": [4, "multi-selection"],
|
|
1285
1325
|
"pageSelected": [2, "page-selected"],
|
|
1286
1326
|
"pagination": [4],
|
|
@@ -1288,6 +1328,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends HTMLElement
|
|
|
1288
1328
|
"scrollOnHover": [4, "scroll-on-hover"],
|
|
1289
1329
|
"selectBox": [2, "select-box"],
|
|
1290
1330
|
"selectedRowsState": [1025, "selected-rows-state"],
|
|
1331
|
+
"showLoadMore": [4, "show-load-more"],
|
|
1291
1332
|
"showSelection": [4, "show-selection"],
|
|
1292
1333
|
"sortBy": [1025, "sort-by"],
|
|
1293
1334
|
"sortEnabled": [4, "sort-enabled"],
|
|
@@ -1314,7 +1355,7 @@ const KupBox = /*@__PURE__*/ proxyCustomElement(class KupBox extends HTMLElement
|
|
|
1314
1355
|
"layout": ["onLayoutChanged"],
|
|
1315
1356
|
"selectBox": ["onSelectBoxChanged"]
|
|
1316
1357
|
}]);
|
|
1317
|
-
_KupBox_intObserver = new WeakMap(), _KupBox_rowsRefs = new WeakMap(), _KupBox_navBarHeight = new WeakMap(), _KupBox_instances = new WeakSet(), _KupBox_didRenderObservers = function _KupBox_didRenderObservers() {
|
|
1358
|
+
_KupBox_intObserver = new WeakMap(), _KupBox_rowsRefs = new WeakMap(), _KupBox_navBarHeight = new WeakMap(), _KupBox_loadMoreEventCounter = new WeakMap(), _KupBox_loadMoreEventPreviousQuantity = new WeakMap(), _KupBox_instances = new WeakSet(), _KupBox_didRenderObservers = function _KupBox_didRenderObservers() {
|
|
1318
1359
|
if (this.lazyLoadRows &&
|
|
1319
1360
|
this.currentRowsPerPage < this.data.rows.length) {
|
|
1320
1361
|
__classPrivateFieldGet(this, _KupBox_intObserver, "f").observe(__classPrivateFieldGet(this, _KupBox_rowsRefs, "f")[__classPrivateFieldGet(this, _KupBox_rowsRefs, "f").length - 1]);
|
|
@@ -1325,11 +1366,11 @@ _KupBox_intObserver = new WeakMap(), _KupBox_rowsRefs = new WeakMap(), _KupBox_n
|
|
|
1325
1366
|
if (entry.isIntersecting) {
|
|
1326
1367
|
this.kupManager.debug.logMessage(this, 'Last row entering the viewport, loading more elements.');
|
|
1327
1368
|
const delta = this.data.rows.length - this.currentRowsPerPage;
|
|
1328
|
-
if (delta <
|
|
1369
|
+
if (delta < this.loadMoreStep) {
|
|
1329
1370
|
this.currentRowsPerPage += delta;
|
|
1330
1371
|
}
|
|
1331
1372
|
else {
|
|
1332
|
-
this.currentRowsPerPage +=
|
|
1373
|
+
this.currentRowsPerPage += this.loadMoreStep;
|
|
1333
1374
|
}
|
|
1334
1375
|
entry.target.classList.remove('last-row');
|
|
1335
1376
|
__classPrivateFieldGet(this, _KupBox_intObserver, "f").unobserve(entry.target);
|
|
@@ -1341,6 +1382,32 @@ _KupBox_intObserver = new WeakMap(), _KupBox_rowsRefs = new WeakMap(), _KupBox_n
|
|
|
1341
1382
|
rootMargin: '-' + __classPrivateFieldGet(this, _KupBox_navBarHeight, "f") + 'px 0px 0px 0px',
|
|
1342
1383
|
};
|
|
1343
1384
|
__classPrivateFieldSet(this, _KupBox_intObserver, new IntersectionObserver(callback, options), "f");
|
|
1385
|
+
}, _KupBox_onLoadMoreClick = function _KupBox_onLoadMoreClick() {
|
|
1386
|
+
var _a;
|
|
1387
|
+
let loadItems = 0;
|
|
1388
|
+
switch (this.loadMoreMode) {
|
|
1389
|
+
case LoadMoreMode.CONSTANT:
|
|
1390
|
+
loadItems = this.loadMoreStep;
|
|
1391
|
+
break;
|
|
1392
|
+
case LoadMoreMode.CONSTANT_INCREMENT:
|
|
1393
|
+
loadItems =
|
|
1394
|
+
this.loadMoreStep * (__classPrivateFieldGet(this, _KupBox_loadMoreEventCounter, "f") + 1);
|
|
1395
|
+
break;
|
|
1396
|
+
case LoadMoreMode.PROGRESSIVE_THRESHOLD:
|
|
1397
|
+
loadItems =
|
|
1398
|
+
Math.max(__classPrivateFieldGet(this, _KupBox_loadMoreEventPreviousQuantity, "f"), this.loadMoreStep) * Math.min(__classPrivateFieldGet(this, _KupBox_loadMoreEventCounter, "f") + 1, 2);
|
|
1399
|
+
break;
|
|
1400
|
+
}
|
|
1401
|
+
if (loadItems > this.loadMoreLimit) {
|
|
1402
|
+
loadItems = this.loadMoreLimit;
|
|
1403
|
+
}
|
|
1404
|
+
this.kupLoadMoreClick.emit({
|
|
1405
|
+
comp: this,
|
|
1406
|
+
id: this.rootElement.id,
|
|
1407
|
+
loadItems: loadItems,
|
|
1408
|
+
});
|
|
1409
|
+
__classPrivateFieldSet(this, _KupBox_loadMoreEventPreviousQuantity, loadItems, "f");
|
|
1410
|
+
__classPrivateFieldSet(this, _KupBox_loadMoreEventCounter, (_a = __classPrivateFieldGet(this, _KupBox_loadMoreEventCounter, "f"), _a++, _a), "f");
|
|
1344
1411
|
};
|
|
1345
1412
|
function defineCustomElement() {
|
|
1346
1413
|
if (typeof customElements === "undefined") {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Q as KupButtonList$1, y as defineCustomElement$1 } from './kup-autocomplete2.js';
|
|
2
2
|
|
|
3
3
|
const KupButtonList = KupButtonList$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement as HTMLElement$1, createEvent, getAssetPath, forceUpdate, h as h$1, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { k as kupManagerInstance, g as getProps, s as setProps, c as KupLanguageGeneric, z as getColumnByName } from './kup-manager.js';
|
|
3
|
-
import { c as componentWrapperId,
|
|
4
|
-
import {
|
|
3
|
+
import { c as componentWrapperId, R as FButton, L as FChip, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s, S as FChipType } from './kup-autocomplete2.js';
|
|
4
|
+
import { d as KupDatesLocales } from './kup-dates.js';
|
|
5
5
|
|
|
6
6
|
var n,l$1,u$1,i$1,t,r$1,o,f$1,e$1,c$1={},s=[],a$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(n,l){for(var u in l)n[u]=l[u];return n}function v$1(n){var l=n.parentNode;l&&l.removeChild(n);}function y(l,u,i){var t,r,o,f={};for(o in u)"key"==o?t=u[o]:"ref"==o?r=u[o]:f[o]=u[o];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps)void 0===f[o]&&(f[o]=l.defaultProps[o]);return p(l,f,t,r,null)}function p(n,i,t,r,o){var f={type:n,props:i,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++u$1:o};return null==o&&null!=l$1.vnode&&l$1.vnode(f),f}function d(){return {current:null}}function _(n){return n.children}function k$1(n,l,u,i,t){var r;for(r in u)"children"===r||"key"===r||r in l||g$2(n,r,null,u[r],i);for(r in l)t&&"function"!=typeof l[r]||"children"===r||"key"===r||"value"===r||"checked"===r||u[r]===l[r]||g$2(n,r,l[r],u[r],i);}function b$1(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a$1.test(l)?u:u+"px";}function g$2(n,l,u,i,t){var r;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||b$1(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||b$1(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])r=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?i||n.addEventListener(l,r?w$2:m$1,r):n.removeEventListener(l,r?w$2:m$1,r);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&-1==l.indexOf("-")?n.removeAttribute(l):n.setAttribute(l,u));}}function m$1(n){t=!0;try{return this.l[n.type+!1](l$1.event?l$1.event(n):n)}finally{t=!1;}}function w$2(n){t=!0;try{return this.l[n.type+!0](l$1.event?l$1.event(n):n)}finally{t=!1;}}function x$1(n,l){this.props=n,this.context=l;}function A(n,l){if(null==l)return n.__?A(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?A(n):null}function P$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return P$1(n)}}function C$1(n){t?setTimeout(n):f$1(n);}function T$1(n){(!n.__d&&(n.__d=!0)&&r$1.push(n)&&!$$1.__r++||o!==l$1.debounceRendering)&&((o=l$1.debounceRendering)||C$1)($$1);}function $$1(){var n,l,u,i,t,o,f,e;for(r$1.sort(function(n,l){return n.__v.__b-l.__v.__b});n=r$1.shift();)n.__d&&(l=r$1.length,i=void 0,t=void 0,f=(o=(u=n).__v).__e,(e=u.__P)&&(i=[],(t=h({},o)).__v=o.__v+1,M(e,o,t,u.__n,void 0!==e.ownerSVGElement,null!=o.__h?[f]:null,i,null==f?A(o):f,o.__h),N(i,o),o.__e!=f&&P$1(o)),r$1.length>l&&r$1.sort(function(n,l){return n.__v.__b-l.__v.__b}));$$1.__r=0;}function H$1(n,l,u,i,t,r,o,f,e,a){var h,v,y,d,k,b,g,m=i&&i.__k||s,w=m.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(d=u.__k[h]=null==(d=l[h])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?p(null,d,null,null,d):Array.isArray(d)?p(_,{children:d},null,null,null):d.__b>0?p(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)){if(d.__=u,d.__b=u.__b+1,null===(y=m[h])||y&&d.key==y.key&&d.type===y.type)m[h]=void 0;else for(v=0;v<w;v++){if((y=m[v])&&d.key==y.key&&d.type===y.type){m[v]=void 0;break}y=null;}M(n,d,y=y||c$1,t,r,o,f,e,a),k=d.__e,(v=d.ref)&&y.ref!=v&&(g||(g=[]),y.ref&&g.push(y.ref,null,d),g.push(v,d.__c||k,d)),null!=k?(null==b&&(b=k),"function"==typeof d.type&&d.__k===y.__k?d.__d=e=I$1(d,e,n):e=z$1(n,d,y,m,k,e),"function"==typeof u.type&&(u.__d=e)):e&&y.__e==e&&e.parentNode!=n&&(e=A(y));}for(u.__e=b,h=w;h--;)null!=m[h]&&("function"==typeof u.type&&null!=m[h].__e&&m[h].__e==u.__d&&(u.__d=L$1(i).nextSibling),q(m[h],m[h]));if(g)for(h=0;h<g.length;h++)S(g[h],g[++h],g[++h]);}function I$1(n,l,u){for(var i,t=n.__k,r=0;t&&r<t.length;r++)(i=t[r])&&(i.__=n,l="function"==typeof i.type?I$1(i,l,u):z$1(u,i,i,t,i.__e,l));return l}function j$2(n,l){return l=l||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some(function(n){j$2(n,l);}):l.push(n)),l}function z$1(n,l,u,i,t,r){var o,f,e;if(void 0!==l.__d)o=l.__d,l.__d=void 0;else if(null==u||t!=r||null==t.parentNode)n:if(null==r||r.parentNode!==n)n.appendChild(t),o=null;else {for(f=r,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,r),o=r;}return void 0!==o?o:t.nextSibling}function L$1(n){var l,u,i;if(null==n.type||"string"==typeof n.type)return n.__e;if(n.__k)for(l=n.__k.length-1;l>=0;l--)if((u=n.__k[l])&&(i=L$1(u)))return i;return null}function M(n,u,i,t,r,o,f,e,c){var s,a,v,y,p,d,k,b,g,m,w,A,P,C,T,$=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,o=[e]),(s=l$1.__b)&&s(u);try{n:if("function"==typeof $){if(b=u.props,g=(s=$.contextType)&&t[s.__c],m=s?g?g.props.value:s.__:t,i.__c?k=(a=u.__c=i.__c).__=a.__E:("prototype"in $&&$.prototype.render?u.__c=a=new $(b,m):(u.__c=a=new x$1(b,m),a.constructor=$,a.render=B$1),g&&g.sub(a),a.props=b,a.state||(a.state={}),a.context=m,a.__n=t,v=a.__d=!0,a.__h=[],a._sb=[]),null==a.__s&&(a.__s=a.state),null!=$.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=h({},a.__s)),h(a.__s,$.getDerivedStateFromProps(b,a.__s))),y=a.props,p=a.state,a.__v=u,v)null==$.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else {if(null==$.getDerivedStateFromProps&&b!==y&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(b,m),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(b,a.__s,m)||u.__v===i.__v){for(u.__v!==i.__v&&(a.props=b,a.state=a.__s,a.__d=!1),u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),w=0;w<a._sb.length;w++)a.__h.push(a._sb[w]);a._sb=[],a.__h.length&&f.push(a);break n}null!=a.componentWillUpdate&&a.componentWillUpdate(b,a.__s,m),null!=a.componentDidUpdate&&a.__h.push(function(){a.componentDidUpdate(y,p,d);});}if(a.context=m,a.props=b,a.__P=n,A=l$1.__r,P=0,"prototype"in $&&$.prototype.render){for(a.state=a.__s,a.__d=!1,A&&A(u),s=a.render(a.props,a.state,a.context),C=0;C<a._sb.length;C++)a.__h.push(a._sb[C]);a._sb=[];}else do{a.__d=!1,A&&A(u),s=a.render(a.props,a.state,a.context),a.state=a.__s;}while(a.__d&&++P<25);a.state=a.__s,null!=a.getChildContext&&(t=h(h({},t),a.getChildContext())),v||null==a.getSnapshotBeforeUpdate||(d=a.getSnapshotBeforeUpdate(y,p)),T=null!=s&&s.type===_&&null==s.key?s.props.children:s,H$1(n,Array.isArray(T)?T:[T],u,i,t,r,o,f,e,c),a.base=u.__e,u.__h=null,a.__h.length&&f.push(a),k&&(a.__E=a.__=null),a.__e=!1;}else null==o&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=O(i.__e,u,i,t,r,o,f,c);(s=l$1.diffed)&&s(u);}catch(n){u.__v=null,(c||null!=o)&&(u.__e=e,u.__h=!!c,o[o.indexOf(e)]=null),l$1.__e(n,u,i);}}function N(n,u){l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function O(l,u,i,t,r,o,f,e){var s,a,h,y=i.props,p=u.props,d=u.type,_=0;if("svg"===d&&(r=!0),null!=o)for(;_<o.length;_++)if((s=o[_])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,o[_]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=r?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),o=null,e=!1;}if(null===d)y===p||e&&l.data===p||(l.data=p);else {if(o=o&&n.call(l.childNodes),a=(y=i.props||c$1).dangerouslySetInnerHTML,h=p.dangerouslySetInnerHTML,!e){if(null!=o)for(y={},_=0;_<l.attributes.length;_++)y[l.attributes[_].name]=l.attributes[_].value;(h||a)&&(h&&(a&&h.__html==a.__html||h.__html===l.innerHTML)||(l.innerHTML=h&&h.__html||""));}if(k$1(l,p,y,r,e),h)u.__k=[];else if(_=u.props.children,H$1(l,Array.isArray(_)?_:[_],u,i,t,r&&"foreignObject"!==d,o,f,o?o[0]:i.__k&&A(i,0),e),null!=o)for(_=o.length;_--;)null!=o[_]&&v$1(o[_]);e||("value"in p&&void 0!==(_=p.value)&&(_!==l.value||"progress"===d&&!_||"option"===d&&_!==y.value)&&g$2(l,"value",_,y.value,!1),"checked"in p&&void 0!==(_=p.checked)&&_!==l.checked&&g$2(l,"checked",_,y.checked,!1));}return l}function S(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,i);}}function q(n,u,i){var t,r;if(l$1.unmount&&l$1.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||S(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$1.__e(n,u);}t.base=t.__P=null,n.__c=void 0;}if(t=n.__k)for(r=0;r<t.length;r++)t[r]&&q(t[r],u,i||"function"!=typeof n.type);i||null==n.__e||v$1(n.__e),n.__=n.__e=n.__d=void 0;}function B$1(n,l,u){return this.constructor(n,u)}function D$1(u,i,t){var r,o,f;l$1.__&&l$1.__(u,i),o=(r="function"==typeof t)?null:t&&t.__k||i.__k,f=[],M(i,u=(!r&&t||i).__k=y(_,null,[u]),o||c$1,c$1,void 0!==i.ownerSVGElement,!r&&t?[t]:o?null:i.firstChild?n.call(i.childNodes):null,f,!r&&t?t:o?o.__e:i.firstChild,r),N(f,u);}function G$1(n,l){var u={__c:l="__cC"+e$1++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,T$1(n);});},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=s.slice,l$1={__e:function(n,l,u,i){for(var t,r,o;l=l.__;)if((t=l.__c)&&!t.__)try{if((r=t.constructor)&&null!=r.getDerivedStateFromError&&(t.setState(r.getDerivedStateFromError(n)),o=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),o=t.__d),o)return t.__E=t}catch(l){n=l;}throw n}},u$1=0,i$1=function(n){return null!=n&&void 0===n.constructor},t=!1,x$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof n&&(n=n(h({},u),this.props)),n&&h(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),T$1(this));},x$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),T$1(this));},x$1.prototype.render=_,r$1=[],f$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,$$1.__r=0,e$1=0;
|
|
7
7
|
|
|
8
|
-
var r,u,i,f=[],c=[],e=l$1.__b,a=l$1.__r,v=l$1.diffed,l=l$1.__c,m=l$1.unmount;function b(){for(var t;t=f.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k),t.__H.__h.forEach(w$1),t.__H.__h=[];}catch(r){t.__H.__h=[],l$1.__e(r,t.__v);}}l$1.__b=function(n){r=null,e&&e(n);},l$1.__r=function(n){a&&a(n)
|
|
8
|
+
var r,u,i,f=[],c=[],e=l$1.__b,a=l$1.__r,v=l$1.diffed,l=l$1.__c,m=l$1.unmount;function b(){for(var t;t=f.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k),t.__H.__h.forEach(w$1),t.__H.__h=[];}catch(r){t.__H.__h=[],l$1.__e(r,t.__v);}}l$1.__b=function(n){r=null,e&&e(n);},l$1.__r=function(n){a&&a(n);var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0;})):(i.__h.forEach(k),i.__h.forEach(w$1),i.__h=[])),u=r;},l$1.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f.push(o)&&i===l$1.requestAnimationFrame||((i=l$1.requestAnimationFrame)||j$1)(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c;})),u=r=null;},l$1.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k),t.__h=t.__h.filter(function(n){return !n.__||w$1(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$1.__e(u,t.__v);}}),l&&l(t,r);},l$1.unmount=function(t){m&&m(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k(n);}catch(n){r=n;}}),u.__H=void 0,r&&l$1.__e(r,u.__v));};var g$1="function"==typeof requestAnimationFrame;function j$1(n){var t,r=function(){clearTimeout(u),g$1&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g$1&&(t=requestAnimationFrame(r));}function k(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function w$1(n){var t=r;n.__c=n.__(),r=t;}
|
|
9
9
|
|
|
10
|
-
function g(n,t){for(var e in t)n[e]=t[e];return n}function C(n,t){for(var e in n)if("__source"!==e&&!(e in t))return !0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return !0;return !1}function w(n){this.props=n;}(w.prototype=new x$1).isPureReactComponent=!0,w.prototype.shouldComponentUpdate=function(n,t){return C(this.props,n)||C(this.state,t)};var x=l$1.__b;l$1.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),x&&x(n);};var T=l$1.__e;l$1.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);T(n,t,e,r);};var I=l$1.unmount;function L(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c();}),n.__c.__H=null),null!=(n=g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return L(n,t,e)})),n}function U(n,t,e){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return U(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=e)),n}function D(){this.__u=0,this.t=null,this.__b=null;}function F(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function V(){this.u=null,this.o=null;}l$1.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),I&&I(n);},(D.prototype=new x$1).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=F(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l());};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=U(n,n.__c.__P,n.__c.__O);}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate();}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i);},D.prototype.componentWillUnmount=function(){this.t=[];},D.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=L(this.__b,r,o.__O=o.__P);}this.__b=null;}var i=e.__a&&y(_,null,n.fallback);return i&&(i.__h=null),[y(_,null,e.__a?null:n.children),i]};var W=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2];}};function P(n){return this.getChildContext=function(){return n.context},n.children}function $(n){var e=this,r=n.i;e.componentWillUnmount=function(){D$1(null,e.l),e.l=null,e.i=null;},e.i&&e.i!==r&&e.componentWillUnmount(),n.__v?(e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n);},insertBefore:function(n,t){this.childNodes.push(n),e.i.appendChild(n);},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n);}}),D$1(y(P,{context:e.context},n.__v),e.l)):e.l&&e.componentWillUnmount();}function j(n,e){var r=y($,{__v:n,i:e});return r.containerInfo=e,r}(V.prototype=new x$1).__a=function(n){var t=this,e=F(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),W(t,n,r)):u();};e?e(o):o();}},V.prototype.render=function(n){this.u=null,this.o=new Map;var t=j$2(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},V.prototype.componentDidUpdate=V.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){W(n,e,t);});};var z="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,B=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,H="undefined"!=typeof document,Z=function(n){return ("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};x$1.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(x$1.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n});}});});var G=l$1.event;function J(){}function K(){return this.cancelBubble}function Q(){return this.defaultPrevented}l$1.event=function(n){return G&&(n=G(n)),n.persist=J,n.isPropagationStopped=K,n.isDefaultPrevented=Q,n.nativeEvent=n};var nn={configurable:!0,get:function(){return this.class}},tn=l$1.vnode;l$1.vnode=function(n){var t=n.type,e=n.props,u=e;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in u={},e){var l=e[i];H&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in e&&null==l||("defaultValue"===i&&"value"in e&&null==e.value?i="value":"download"===i&&!0===l?l="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Z(e.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&B.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===l&&(l=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),u[i]&&(i="oninputCapture")),u[i]=l);}"select"==t&&u.multiple&&Array.isArray(u.value)&&(u.value=j$2(e.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value);})),"select"==t&&null!=u.defaultValue&&(u.value=j$2(e.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value;})),n.props=u,e.class!=e.className&&(nn.enumerable="className"in e,null!=e.className&&(u.class=e.className),Object.defineProperty(u,"className",nn));}n.$$typeof=z,tn&&tn(n);};var en=l$1.__r;l$1.__r=function(n){en&&en(n)
|
|
10
|
+
function g(n,t){for(var e in t)n[e]=t[e];return n}function C(n,t){for(var e in n)if("__source"!==e&&!(e in t))return !0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return !0;return !1}function w(n){this.props=n;}(w.prototype=new x$1).isPureReactComponent=!0,w.prototype.shouldComponentUpdate=function(n,t){return C(this.props,n)||C(this.state,t)};var x=l$1.__b;l$1.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),x&&x(n);};var T=l$1.__e;l$1.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);T(n,t,e,r);};var I=l$1.unmount;function L(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c();}),n.__c.__H=null),null!=(n=g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return L(n,t,e)})),n}function U(n,t,e){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return U(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=e)),n}function D(){this.__u=0,this.t=null,this.__b=null;}function F(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function V(){this.u=null,this.o=null;}l$1.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),I&&I(n);},(D.prototype=new x$1).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=F(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l());};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=U(n,n.__c.__P,n.__c.__O);}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate();}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i);},D.prototype.componentWillUnmount=function(){this.t=[];},D.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=L(this.__b,r,o.__O=o.__P);}this.__b=null;}var i=e.__a&&y(_,null,n.fallback);return i&&(i.__h=null),[y(_,null,e.__a?null:n.children),i]};var W=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2];}};function P(n){return this.getChildContext=function(){return n.context},n.children}function $(n){var e=this,r=n.i;e.componentWillUnmount=function(){D$1(null,e.l),e.l=null,e.i=null;},e.i&&e.i!==r&&e.componentWillUnmount(),n.__v?(e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n);},insertBefore:function(n,t){this.childNodes.push(n),e.i.appendChild(n);},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n);}}),D$1(y(P,{context:e.context},n.__v),e.l)):e.l&&e.componentWillUnmount();}function j(n,e){var r=y($,{__v:n,i:e});return r.containerInfo=e,r}(V.prototype=new x$1).__a=function(n){var t=this,e=F(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),W(t,n,r)):u();};e?e(o):o();}},V.prototype.render=function(n){this.u=null,this.o=new Map;var t=j$2(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},V.prototype.componentDidUpdate=V.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){W(n,e,t);});};var z="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,B=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,H="undefined"!=typeof document,Z=function(n){return ("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};x$1.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(x$1.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n});}});});var G=l$1.event;function J(){}function K(){return this.cancelBubble}function Q(){return this.defaultPrevented}l$1.event=function(n){return G&&(n=G(n)),n.persist=J,n.isPropagationStopped=K,n.isDefaultPrevented=Q,n.nativeEvent=n};var nn={configurable:!0,get:function(){return this.class}},tn=l$1.vnode;l$1.vnode=function(n){var t=n.type,e=n.props,u=e;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in u={},e){var l=e[i];H&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in e&&null==l||("defaultValue"===i&&"value"in e&&null==e.value?i="value":"download"===i&&!0===l?l="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Z(e.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&B.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===l&&(l=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),u[i]&&(i="oninputCapture")),u[i]=l);}"select"==t&&u.multiple&&Array.isArray(u.value)&&(u.value=j$2(e.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value);})),"select"==t&&null!=u.defaultValue&&(u.value=j$2(e.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value;})),n.props=u,e.class!=e.className&&(nn.enumerable="className"in e,null!=e.className&&(u.class=e.className),Object.defineProperty(u,"className",nn));}n.$$typeof=z,tn&&tn(n);};var en=l$1.__r;l$1.__r=function(n){en&&en(n);};
|
|
11
11
|
|
|
12
12
|
const styleTexts = [];
|
|
13
13
|
const styleEls = new Map();
|
|
@@ -12143,6 +12143,70 @@ const LISTENER_REFINERS = {
|
|
|
12143
12143
|
};
|
|
12144
12144
|
config.dataAttrPrefix = '';
|
|
12145
12145
|
|
|
12146
|
+
/*
|
|
12147
|
+
Detects when a *THIRD-PARTY* drag-n-drop system interacts with elements.
|
|
12148
|
+
The third-party system is responsible for drawing the visuals effects of the drag.
|
|
12149
|
+
This class simply monitors for pointer movements and fires events.
|
|
12150
|
+
It also has the ability to hide the moving element (the "mirror") during the drag.
|
|
12151
|
+
*/
|
|
12152
|
+
class InferredElementDragging extends ElementDragging {
|
|
12153
|
+
constructor(containerEl) {
|
|
12154
|
+
super(containerEl);
|
|
12155
|
+
this.shouldIgnoreMove = false;
|
|
12156
|
+
this.mirrorSelector = '';
|
|
12157
|
+
this.currentMirrorEl = null;
|
|
12158
|
+
this.handlePointerDown = (ev) => {
|
|
12159
|
+
this.emitter.trigger('pointerdown', ev);
|
|
12160
|
+
if (!this.shouldIgnoreMove) {
|
|
12161
|
+
// fire dragstart right away. does not support delay or min-distance
|
|
12162
|
+
this.emitter.trigger('dragstart', ev);
|
|
12163
|
+
}
|
|
12164
|
+
};
|
|
12165
|
+
this.handlePointerMove = (ev) => {
|
|
12166
|
+
if (!this.shouldIgnoreMove) {
|
|
12167
|
+
this.emitter.trigger('dragmove', ev);
|
|
12168
|
+
}
|
|
12169
|
+
};
|
|
12170
|
+
this.handlePointerUp = (ev) => {
|
|
12171
|
+
this.emitter.trigger('pointerup', ev);
|
|
12172
|
+
if (!this.shouldIgnoreMove) {
|
|
12173
|
+
// fire dragend right away. does not support a revert animation
|
|
12174
|
+
this.emitter.trigger('dragend', ev);
|
|
12175
|
+
}
|
|
12176
|
+
};
|
|
12177
|
+
let pointer = this.pointer = new PointerDragging(containerEl);
|
|
12178
|
+
pointer.emitter.on('pointerdown', this.handlePointerDown);
|
|
12179
|
+
pointer.emitter.on('pointermove', this.handlePointerMove);
|
|
12180
|
+
pointer.emitter.on('pointerup', this.handlePointerUp);
|
|
12181
|
+
}
|
|
12182
|
+
destroy() {
|
|
12183
|
+
this.pointer.destroy();
|
|
12184
|
+
}
|
|
12185
|
+
setIgnoreMove(bool) {
|
|
12186
|
+
this.shouldIgnoreMove = bool;
|
|
12187
|
+
}
|
|
12188
|
+
setMirrorIsVisible(bool) {
|
|
12189
|
+
if (bool) {
|
|
12190
|
+
// restore a previously hidden element.
|
|
12191
|
+
// use the reference in case the selector class has already been removed.
|
|
12192
|
+
if (this.currentMirrorEl) {
|
|
12193
|
+
this.currentMirrorEl.style.visibility = '';
|
|
12194
|
+
this.currentMirrorEl = null;
|
|
12195
|
+
}
|
|
12196
|
+
}
|
|
12197
|
+
else {
|
|
12198
|
+
let mirrorEl = this.mirrorSelector
|
|
12199
|
+
// TODO: somehow query FullCalendars WITHIN shadow-roots
|
|
12200
|
+
? document.querySelector(this.mirrorSelector)
|
|
12201
|
+
: null;
|
|
12202
|
+
if (mirrorEl) {
|
|
12203
|
+
this.currentMirrorEl = mirrorEl;
|
|
12204
|
+
mirrorEl.style.visibility = 'hidden';
|
|
12205
|
+
}
|
|
12206
|
+
}
|
|
12207
|
+
}
|
|
12208
|
+
}
|
|
12209
|
+
|
|
12146
12210
|
var index$2 = createPlugin({
|
|
12147
12211
|
name: '@fullcalendar/interaction',
|
|
12148
12212
|
componentInteractions: [DateClicking, DateSelecting, EventDragging, EventResizing],
|
|
@@ -13843,6 +13907,7 @@ var KupCalendarOptions;
|
|
|
13843
13907
|
})(KupCalendarOptions || (KupCalendarOptions = {}));
|
|
13844
13908
|
|
|
13845
13909
|
const kupCalendarCss = ":host{--kup_calendar_background_color:var(\n --kup-calendar-background-color,\n var(--kup-background-color)\n );--kup_calendar_border_color:var(\n --kup-calendar-border-color,\n var(--kup-border-color)\n );--kup_calendar_event_background_color:var(\n --kup-calendar-event-background-color,\n var(--kup-primary-color)\n );--kup_calendar_event_border_radius:var(\n --kup-calendar-event-border-radius,\n 4px\n );--kup_calendar_event_color:var(\n --kup-calendar-event-color,\n var(--kup-text-on-primary-color)\n );--kup_calendar_font_family:var(\n --kup-calendar-font-family,\n var(--kup-font-family)\n );--kup_calendar_font_size:var(--kup-calendar-font-size, var(--kup-font-size));--kup_calendar_header_background_color:var(\n --kup-calendar-header-background-color,\n var(--kup-title-background-color)\n );--kup_calendar_header_color:var(\n --kup-calendar-header-color,\n var(--kup-title-color)\n );--kup_calendar_navigator_border:var(\n --kup-calendar-navigator-border,\n 2px solid var(--kup-border-color)\n );--kup_calendar_no_work_day_background_color:var(\n --kup-calendar-no-work-day-background-color,\n rgba(var(--kup-disabled-background-color-rgb), 0.5)\n );--kup_calendar_no_work_day_color:var(\n --kup-calendar-no-work-day-color,\n var(--kup-disabled-color)\n );--kup_calendar_today_background_color:var(\n --kup-calendar-today-background-color,\n rgba(var(--kup-primary-color-rgb), 0.125)\n );background-color:var(--kup_calendar_background_color);display:block;font-family:var(--kup_calendar_font_family);font-size:var(--kup_calendar_font_size);height:100%;width:100%}.navigation{align-items:center;border-left:var(--kup_calendar_navigator_border);border-right:var(--kup_calendar_navigator_border);border-top:var(--kup_calendar_navigator_border);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;justify-content:space-between}.navigation__left{--kup-font-size:0.875em;display:flex}.navigation__right{display:flex}.navigation__title{font-size:1.25em;font-weight:400;letter-spacing:0.1892857em;margin:0px;padding:0px 0.5em}.navigation__title--centered{padding:0.35em 0;text-align:center;width:100%}.icon-wrapper{display:flex;justify-content:flex-end;flex-wrap:wrap}.image-wrapper{display:flex;justify-content:space-between;flex-wrap:wrap}.image-wrapper img{width:20px;height:20px}.custom-icon{background-color:var(--kup_calendar_event_color);height:1.5em;width:1.5em}#kup-component .fc-toolbar.fc-header-toolbar{margin-top:1.5rem}#kup-component .fc-ltr .fc-dayGrid-view .fc-day-top{text-align:center;padding:0.5rem}#kup-component .fc-ltr .fc-dayGrid-view .fc-day-top .fc-day-number{float:none}#kup-component .fc-content{padding:0.25rem}#kup-component .fc-content,#kup-component .fc-divider,#kup-component .fc-list-heading td,#kup-component .fc-list-view,#kup-component .fc-popover,#kup-component .fc-row,#kup-component .fc-scrollgrid,#kup-component tbody,#kup-component td{border-color:var(--kup_calendar_border_color)}#kup-component .fc-col-header-cell{background:var(--kup_calendar_header_background_color);color:var(--kup_calendar_header_color)}#kup-component .fc-h-event{background:none;border:none}#kup-component .fc-list-event-dot{border-color:var(--kup_calendar_event_background_color)}#kup-component .fc-list-day-cushion{background:var(--kup_calendar_header_background_color);color:var(--kup_calendar_header_color)}#kup-component .fc-list-event:hover td{background:var(--kup-hover-background-color);color:var(--kup-hover-color)}#kup-component .fc-daygrid-event,#kup-component .fc-timegrid-event{background:var(--kup_calendar_event_background_color);border-radius:var(--kup_calendar_event_border_radius);border:none;border-color:var(--kup_calendar_event_background_color);color:var(--kup_calendar_event_color)}#kup-component .fc-event-main{color:inherit}#kup-component .fc-event-title{padding:0.25em}#kup-component td.fc-day-today{background-color:var(--kup_calendar_today_background_color)}#kup-component td.fc-day-sun,#kup-component td.fc-day-sat{background-color:var(--kup_calendar_no_work_day_background_color);color:var(--kup_calendar_no_work_day_color)}@media (max-width: 599px){.navigation{flex-direction:column}.calendar{height:100%}.calendar .fc-view-harness{min-height:450px}.navigation .navigation__left{font-size:20px;gap:8px}.navigation .navigation__right .f-chip .chip-set .chip-set__item{font-size:16px}}";
|
|
13910
|
+
const KupCalendarStyle0 = kupCalendarCss;
|
|
13846
13911
|
|
|
13847
13912
|
const KupCalendar$1 = /*@__PURE__*/ proxyCustomElement(class KupCalendar extends HTMLElement$1 {
|
|
13848
13913
|
constructor() {
|
|
@@ -13968,6 +14033,7 @@ const KupCalendar$1 = /*@__PURE__*/ proxyCustomElement(class KupCalendar extends
|
|
|
13968
14033
|
}
|
|
13969
14034
|
},
|
|
13970
14035
|
eventDrop: ({ event, oldEvent }) => {
|
|
14036
|
+
var _a;
|
|
13971
14037
|
this.kupCalendarEventDrop.emit({
|
|
13972
14038
|
comp: this,
|
|
13973
14039
|
id: this.rootElement.id,
|
|
@@ -13979,6 +14045,7 @@ const KupCalendar$1 = /*@__PURE__*/ proxyCustomElement(class KupCalendar extends
|
|
|
13979
14045
|
start: event.start,
|
|
13980
14046
|
end: event.end,
|
|
13981
14047
|
},
|
|
14048
|
+
row: (_a = oldEvent.extendedProps) === null || _a === void 0 ? void 0 : _a.row,
|
|
13982
14049
|
});
|
|
13983
14050
|
},
|
|
13984
14051
|
events: this.getEvents(),
|
|
@@ -14185,11 +14252,11 @@ const KupCalendar$1 = /*@__PURE__*/ proxyCustomElement(class KupCalendar extends
|
|
|
14185
14252
|
this.kupManager.debug.logRender(this, true);
|
|
14186
14253
|
}
|
|
14187
14254
|
render() {
|
|
14188
|
-
return (h$1(Host,
|
|
14255
|
+
return (h$1(Host, { key: '256712f0367d8a4979fbe5cf01230ef6919cbe30' }, h$1("style", { key: '483bc12677fbf0feb94f0322d050d3e92b76aa96' }, this.kupManager.theme.setKupStyle(this.rootElement)), h$1("div", { key: 'd396f95087febb8439ba747250dbde5c966664a9', id: componentWrapperId }, h$1("div", { key: '218107d205ccc74759b902682fbb4ffc38b4e6af', class: "navigation" }, !this.hideNavigation ? (h$1("div", { class: "navigation__left" }, h$1(FButton, { icon: "chevron_left", onClick: () => this.onPrev(), title: this.kupManager.language.translate(KupLanguageGeneric.PREVIOUS), wrapperClass: "navigation__prev" }), h$1(FButton, { icon: "calendar", onClick: () => this.onToday(), title: this.kupManager.language.translate(KupLanguageGeneric.TODAY), wrapperClass: "navigation__today" }), h$1(FButton, { icon: "chevron_right", onClick: () => this.onNext(), title: this.kupManager.language.translate(KupLanguageGeneric.NEXT), wrapperClass: "navigation__next" }))) : null, h$1("div", { key: '35207cde78644377b8a90dc0798da7cb3a8fb028', class: `navigation__title ${this.hideNavigation
|
|
14189
14256
|
? 'navigation__title--centered'
|
|
14190
14257
|
: ''}`, ref: (el) => {
|
|
14191
14258
|
this.navTitle = el;
|
|
14192
|
-
} }), !this.hideNavigation ? (h$1("div", { class: "navigation__right" }, h$1(FChip, Object.assign({}, this.setChipProps())))) : null), h$1("div", { class: "calendar", ref: (el) => (this.calendarContainer = el) }))));
|
|
14259
|
+
} }), !this.hideNavigation ? (h$1("div", { class: "navigation__right" }, h$1(FChip, Object.assign({}, this.setChipProps())))) : null), h$1("div", { key: '0cc18bfc6befd69d45d4ba0c119fc5a4c2437d36', class: "calendar", ref: (el) => (this.calendarContainer = el) }))));
|
|
14193
14260
|
}
|
|
14194
14261
|
disconnectedCallback() {
|
|
14195
14262
|
if (this.calendar) {
|
|
@@ -14205,7 +14272,7 @@ const KupCalendar$1 = /*@__PURE__*/ proxyCustomElement(class KupCalendar extends
|
|
|
14205
14272
|
"data": ["setCalendarData"],
|
|
14206
14273
|
"currentDate": ["setCalendarData"]
|
|
14207
14274
|
}; }
|
|
14208
|
-
static get style() { return
|
|
14275
|
+
static get style() { return KupCalendarStyle0; }
|
|
14209
14276
|
}, [1, "kup-calendar", {
|
|
14210
14277
|
"currentDate": [1, "current-date"],
|
|
14211
14278
|
"customStyle": [1, "custom-style"],
|
|
@@ -28,6 +28,7 @@ var KupCardListProps;
|
|
|
28
28
|
})(KupCardListProps || (KupCardListProps = {}));
|
|
29
29
|
|
|
30
30
|
const kupCardListCss = ":host{--kup_cardlist_cards_max_height:var(--kup-cardlist-cards-max-height, unset);--kup_cardlist_cards_min_height:var(--kup-cardlist-cards-min-height, unset);--kup_cardlist_cards_max_width:var(--kup-cardlist-cards-max-width, unset);--kup_cardlist_cards_min_width:var(--kup-cardlist-cards-min-width, unset);display:block;height:100%;width:100%}#kup-component{height:100%;width:100%}kup-card{max-height:var(--kup_cardlist_cards_max_height);min-height:var(--kup_cardlist_cards_min_height);max-width:var(--kup_cardlist_cards_max_width);min-width:var(--kup_cardlist_cards_min_width)}kup-card.is-clickable{cursor:pointer}kup-grid{--kup-grid-padding:0}";
|
|
31
|
+
const KupCardListStyle0 = kupCardListCss;
|
|
31
32
|
|
|
32
33
|
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
33
34
|
if (kind === "a" && !f)
|
|
@@ -256,7 +257,7 @@ const KupCardList$1 = /*@__PURE__*/ proxyCustomElement(class KupCardList extends
|
|
|
256
257
|
__classPrivateFieldGet(this, _KupCardList_kupManager, "f").theme.unregister(this);
|
|
257
258
|
}
|
|
258
259
|
get rootElement() { return this; }
|
|
259
|
-
static get style() { return
|
|
260
|
+
static get style() { return KupCardListStyle0; }
|
|
260
261
|
}, [1, "kup-card-list", {
|
|
261
262
|
"columnsNumber": [2, "columns-number"],
|
|
262
263
|
"customStyle": [1, "custom-style"],
|
|
@@ -15,6 +15,7 @@ var KupCellProps;
|
|
|
15
15
|
})(KupCellProps || (KupCellProps = {}));
|
|
16
16
|
|
|
17
17
|
const kupCellCss = ":host{display:block;height:100%;width:100%}#kup-component{height:100%;width:100%}";
|
|
18
|
+
const KupCellStyle0 = kupCellCss;
|
|
18
19
|
|
|
19
20
|
const KupCell$1 = /*@__PURE__*/ proxyCustomElement(class KupCell extends HTMLElement {
|
|
20
21
|
constructor() {
|
|
@@ -163,7 +164,7 @@ const KupCell$1 = /*@__PURE__*/ proxyCustomElement(class KupCell extends HTMLEle
|
|
|
163
164
|
renderKup: true,
|
|
164
165
|
row: this.generateRow(),
|
|
165
166
|
};
|
|
166
|
-
return (h(Host,
|
|
167
|
+
return (h(Host, { key: '6eae5c64c3c22889f6d67c79150bb109e2a27c83' }, h("style", { key: 'a807aece995466845f8699d51e5d78ddba19cb5d' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '759dc36e0a82552f49238ada3906634c7ff032ea', id: componentWrapperId }, h(FCell, Object.assign({ key: '1f45b43d0dd416c935f1c2963806c3f90bf1f61d' }, props)))));
|
|
167
168
|
}
|
|
168
169
|
disconnectedCallback() {
|
|
169
170
|
this.kupManager.dates.unregister(this);
|
|
@@ -171,7 +172,7 @@ const KupCell$1 = /*@__PURE__*/ proxyCustomElement(class KupCell extends HTMLEle
|
|
|
171
172
|
this.kupManager.theme.unregister(this);
|
|
172
173
|
}
|
|
173
174
|
get rootElement() { return this; }
|
|
174
|
-
static get style() { return
|
|
175
|
+
static get style() { return KupCellStyle0; }
|
|
175
176
|
}, [1, "kup-cell", {
|
|
176
177
|
"customStyle": [1, "custom-style"],
|
|
177
178
|
"data": [16],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { X as KupColorPicker$1, t as defineCustomElement$1 } from './kup-autocomplete2.js';
|
|
2
2
|
|
|
3
3
|
const KupColorPicker = KupColorPicker$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { R as FButton, Z as FTextField, _ as FCheckbox, N as FTextFieldMDC, c as componentWrapperId, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s } from './kup-autocomplete2.js';
|
|
3
3
|
import { k as kupManagerInstance, g as getProps, s as setProps, ai as KupLanguageDashboard, c as KupLanguageGeneric, a4 as KupDragEffect, P as KupDebugCategory } from './kup-manager.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -14,6 +14,7 @@ var KupDashboardProps;
|
|
|
14
14
|
})(KupDashboardProps || (KupDashboardProps = {}));
|
|
15
15
|
|
|
16
16
|
const kupDashboardCss = ":host{width:100%;height:100%}#kup-component{height:100%}.header{display:flex;flex-direction:row;justify-content:center}.header>*{margin-left:0.5em}.form{display:grid;height:100%}.form-dropzone{padding:1em;grid-gap:0.5em;border:1px solid var(--kup-primary-color);height:auto}.section{display:flex;flex-direction:column;overflow:auto}.section-header{display:flex;flex-direction:column}.section-header>*{width:100%;display:flex;flex-direction:row}.section-header>*>.section-header-actions{display:flex;justify-content:end}.section-header>*>.section-header-actions>*{margin-top:auto;margin-bottom:auto}.section-body{display:grid}.section-dropzone{border:1px solid var(--kup-primary-color)}.section-draggable{border:1px solid var(--kup-secondary-color);padding:1em}.section-placeholder{background-color:rgba(var(--kup-secondary-color-rgb), 0.5);min-height:1em;min-width:1em}.component{height:fit-content;padding:1em;margin:0.5em}.layout-row{grid-auto-flow:column;grid-template-columns:min-content}.layout-column{grid-auto-flow:row;grid-template-rows:min-content}";
|
|
17
|
+
const KupDashboardStyle0 = kupDashboardCss;
|
|
17
18
|
|
|
18
19
|
const KupDashboard$1 = /*@__PURE__*/ proxyCustomElement(class KupDashboard extends HTMLElement {
|
|
19
20
|
constructor() {
|
|
@@ -385,7 +386,7 @@ const KupDashboard$1 = /*@__PURE__*/ proxyCustomElement(class KupDashboard exten
|
|
|
385
386
|
this.didRenderInteractables();
|
|
386
387
|
}
|
|
387
388
|
render() {
|
|
388
|
-
return (h(Host,
|
|
389
|
+
return (h(Host, { key: 'd137a4cd1fe9f41d4b3b26bd9ea21661b005e824' }, h("style", { key: '97e692c9fde917dc863029428329b4a08cbed122' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '7e48783550fee1e317c77b3ff5edab3d4cbc0274', id: componentWrapperId }, this.buildHeader(), this.buildForm(this.internalData, null))));
|
|
389
390
|
}
|
|
390
391
|
disconnectedCallback() {
|
|
391
392
|
this.unregisterInteractables();
|
|
@@ -397,7 +398,7 @@ const KupDashboard$1 = /*@__PURE__*/ proxyCustomElement(class KupDashboard exten
|
|
|
397
398
|
static get watchers() { return {
|
|
398
399
|
"data": ["dataChanged"]
|
|
399
400
|
}; }
|
|
400
|
-
static get style() { return
|
|
401
|
+
static get style() { return KupDashboardStyle0; }
|
|
401
402
|
}, [1, "kup-dashboard", {
|
|
402
403
|
"customStyle": [1, "custom-style"],
|
|
403
404
|
"data": [16],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as KupDataTable$1, r as defineCustomElement$1 } from './kup-autocomplete2.js';
|
|
2
2
|
|
|
3
3
|
const KupDataTable = KupDataTable$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|