@sme.up/ketchup 4.3.0-SNAPSHOT → 5.1.0-SNAPSHOT
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/README.md +107 -3
- package/dist/cjs/{cell-utils-dc0884a3.js → cell-utils-9b1d6563.js} +4 -4
- package/dist/cjs/{component-8fbc31a2.js → component-d1496215.js} +203 -174
- package/dist/cjs/{f-button-2ba74fb5.js → f-button-02a7cde4.js} +2 -2
- package/dist/cjs/{f-cell-fe60a08d.js → f-cell-4d1450a8.js} +38 -28
- package/dist/cjs/f-chip-a50b9f00.js +130 -0
- package/dist/cjs/{f-image-d3bd4e08.js → f-image-db55ac49.js} +3 -3
- package/dist/cjs/{index-0416afab.js → index-ab119fad.js} +23 -0
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +7 -7
- package/dist/cjs/{kup-autocomplete_28.cjs.entry.js → kup-autocomplete_27.cjs.entry.js} +4636 -4073
- package/dist/cjs/kup-calendar.cjs.entry.js +626 -359
- package/dist/cjs/kup-cell.cjs.entry.js +15 -13
- package/dist/cjs/kup-dash-list.cjs.entry.js +4 -4
- package/dist/cjs/kup-dash_2.cjs.entry.js +8 -7
- package/dist/cjs/kup-drawer.cjs.entry.js +3 -3
- package/dist/cjs/kup-echart.cjs.entry.js +93039 -0
- package/dist/cjs/kup-field.cjs.entry.js +2 -2
- package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
- package/dist/cjs/kup-lazy.cjs.entry.js +22 -5
- package/dist/cjs/kup-magic-box.cjs.entry.js +95 -42
- package/dist/cjs/{kup-manager-1a2688ca.js → kup-manager-5877b2ee.js} +3392 -753
- package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
- package/dist/cjs/kup-probe.cjs.entry.js +2 -2
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{tslib.es6-4360c099.js → tslib.es6-0ee02c67.js} +13 -0
- package/dist/cjs/utils-1b5c8c70.js +482 -0
- package/dist/collection/assets/calendar.js +46 -1
- package/dist/collection/assets/card.js +15 -15
- package/dist/collection/assets/data-table.js +18 -6
- package/dist/collection/assets/index.js +8 -0
- package/dist/collection/assets/kupdata.js +937 -0
- package/dist/collection/collection-manifest.json +4 -4
- package/dist/collection/components/kup-accordion/kup-accordion.css +0 -1
- package/dist/collection/components/kup-accordion/kup-accordion.js +2 -2
- package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +2 -0
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +148 -52
- package/dist/collection/components/kup-badge/kup-badge.js +2 -2
- package/dist/collection/components/kup-box/kup-box.js +31 -17
- package/dist/collection/components/kup-button/kup-button.js +2 -2
- package/dist/collection/components/kup-button-list/kup-button-list.js +26 -8
- package/dist/collection/components/kup-calendar/kup-calendar-declarations.js +14 -8
- package/dist/collection/components/kup-calendar/kup-calendar.css +2 -2
- package/dist/collection/components/kup-calendar/kup-calendar.js +185 -315
- package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +38 -0
- package/dist/collection/components/kup-card/{builtin → built-in}/kup-card-calendar.js +1 -1
- package/dist/collection/components/kup-card/{builtin → built-in}/kup-card-clock.js +32 -32
- package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +167 -0
- package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +1 -1
- package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +2 -2
- package/dist/collection/components/kup-card/free/kup-card-free.js +11 -2
- package/dist/collection/components/kup-card/kup-card-declarations.js +14 -14
- package/dist/collection/components/kup-card/kup-card-helper.js +3 -3
- package/dist/collection/components/kup-card/kup-card.css +423 -137
- package/dist/collection/components/kup-card/kup-card.js +62 -11
- package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +1 -1
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +18 -5
- package/dist/collection/components/kup-cell/kup-cell.js +15 -13
- package/dist/collection/components/kup-chart/kup-chart-builder.js +3 -4
- package/dist/collection/components/kup-chart/kup-chart.js +7 -7
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +1 -1
- package/dist/collection/components/kup-chip/kup-chip.css +1 -0
- package/dist/collection/components/kup-chip/kup-chip.js +51 -92
- package/dist/collection/components/kup-color-picker/kup-color-picker.css +1 -265
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +93 -48
- package/dist/collection/components/kup-combobox/kup-combobox.js +148 -115
- package/dist/collection/components/kup-dash/kup-dash.js +1 -1
- package/dist/collection/components/kup-dash-list/kup-dash-list.js +5 -5
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +3 -1
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +28 -56
- package/dist/collection/components/kup-data-table/kup-data-table.css +4 -0
- package/dist/collection/components/kup-data-table/kup-data-table.js +345 -158
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +8 -5
- package/dist/collection/components/kup-drawer/kup-drawer.js +1 -1
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +2 -2
- package/dist/collection/components/kup-echart/assets/maps/africa.json +6116 -0
- package/dist/collection/components/kup-echart/assets/maps/america.json +5416 -0
- package/dist/collection/components/kup-echart/assets/maps/asia.json +6053 -0
- package/dist/collection/components/kup-echart/assets/maps/europe.json +5051 -0
- package/dist/collection/components/kup-echart/assets/maps/italy.json +3562 -0
- package/dist/collection/components/kup-echart/assets/maps/oceania.json +1069 -0
- package/dist/collection/components/kup-echart/assets/maps/world.json +23685 -0
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +45 -0
- package/dist/collection/components/kup-echart/kup-echart.css +13 -0
- package/dist/collection/components/kup-echart/kup-echart.js +1165 -0
- package/dist/collection/components/kup-field/kup-field.js +2 -2
- package/dist/collection/components/kup-gauge/kup-gauge.js +3 -3
- package/dist/collection/components/kup-grid/kup-grid.css +2 -2
- package/dist/collection/components/kup-grid/kup-grid.js +6 -5
- package/dist/collection/components/kup-iframe/kup-iframe.js +2 -2
- package/dist/collection/components/kup-image/assets/svg/science.svg +1 -0
- package/dist/collection/components/kup-image/kup-image.js +3 -3
- package/dist/collection/components/kup-lazy/kup-lazy.css +21 -11
- package/dist/collection/components/kup-lazy/kup-lazy.js +62 -3
- package/dist/collection/components/kup-list/kup-list-helper.js +7 -1
- package/dist/collection/components/kup-list/kup-list.css +3 -0
- package/dist/collection/components/kup-list/kup-list.js +219 -288
- package/dist/collection/components/kup-magic-box/kup-magic-box-declarations.js +11 -7
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +90 -41
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
- 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-radio/kup-radio.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 +1 -1
- package/dist/collection/components/kup-state/mock-store.js +1 -1
- package/dist/collection/components/kup-switch/kup-switch.js +1 -1
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +3 -3
- package/dist/collection/components/kup-text-field/kup-text-field.css +2 -0
- package/dist/collection/components/kup-text-field/kup-text-field.js +2 -2
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +8 -5
- package/dist/collection/components/kup-tooltip/kup-tooltip.js +3 -3
- package/dist/collection/components/kup-tree/kup-tree-declarations.js +0 -5
- package/dist/collection/components/kup-tree/kup-tree-faker.js +2 -3
- package/dist/collection/components/kup-tree/kup-tree.css +2 -0
- package/dist/collection/components/kup-tree/kup-tree.js +145 -70
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +3 -1
- package/dist/collection/f-components/f-cell/f-cell.js +29 -19
- package/dist/collection/f-components/f-chip/f-chip.js +76 -87
- package/dist/collection/f-components/f-image/f-image.js +2 -2
- package/dist/collection/f-components/f-paginator/f-paginator-declarations.js +5 -0
- package/dist/collection/f-components/f-paginator/f-paginator-utils.js +28 -0
- package/dist/collection/f-components/f-paginator/f-paginator.js +91 -0
- package/dist/collection/f-components/f-text-field/f-text-field.js +4 -4
- package/dist/collection/managers/kup-data/kup-data-cell-helper.js +52 -0
- package/dist/collection/managers/kup-data/kup-data-column-helper.js +272 -0
- package/dist/collection/managers/kup-data/kup-data-declarations.js +9 -0
- package/dist/collection/managers/kup-data/kup-data-node-helper.js +72 -0
- package/dist/collection/managers/kup-data/kup-data-row-helper.js +28 -0
- package/dist/collection/managers/kup-data/kup-data.js +382 -0
- package/dist/collection/{utils → managers}/kup-dates/kup-dates-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-dates/kup-dates.js +53 -19
- package/dist/collection/{utils → managers}/kup-debug/kup-debug-browser-utils.js +1 -1
- package/dist/collection/{utils → managers}/kup-debug/kup-debug-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-debug/kup-debug.js +79 -124
- package/dist/collection/{utils → managers}/kup-dynamic-position/kup-dynamic-position-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-dynamic-position/kup-dynamic-position.js +10 -1
- package/dist/collection/{utils → managers}/kup-interact/kup-interact-declarations.js +1 -0
- package/dist/collection/{utils → managers}/kup-interact/kup-interact.js +22 -13
- package/dist/collection/{utils → managers}/kup-language/kup-language-declarations.js +10 -0
- package/dist/collection/{utils → managers}/kup-language/kup-language.js +5 -5
- package/dist/collection/{utils → managers}/kup-manager/kup-manager-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-manager/kup-manager.js +45 -4
- package/dist/collection/managers/kup-math/kup-math-declarations.js +13 -0
- package/dist/collection/managers/kup-math/kup-math-helper.js +39 -0
- package/dist/collection/managers/kup-math/kup-math.js +151 -0
- package/dist/collection/{utils → managers}/kup-objects/kup-objects-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-objects/kup-objects.js +15 -0
- package/dist/collection/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover.js +0 -0
- package/dist/collection/{utils → managers}/kup-search/kup-search-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-search/kup-search.js +0 -0
- package/dist/collection/{utils → managers}/kup-theme/kup-theme-declarations.js +99 -0
- package/dist/collection/{utils → managers}/kup-theme/kup-theme.js +117 -68
- package/dist/collection/{utils → managers}/kup-toolbar/kup-toolbar-declarations.js +0 -0
- package/dist/collection/{utils → managers}/kup-toolbar/kup-toolbar.js +0 -0
- package/dist/collection/types/GenericTypes.js +48 -1
- package/dist/collection/utils/cell-utils.js +3 -4
- package/dist/collection/utils/filters/filters-column-menu.js +7 -7
- package/dist/collection/utils/filters/filters-rows.js +2 -2
- package/dist/collection/utils/filters/filters-tree-items.js +12 -12
- package/dist/collection/utils/filters/filters.js +3 -2
- package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +1 -0
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +100 -68
- package/dist/collection/utils/utils.js +4 -4
- package/dist/esm/{cell-utils-8f512ea9.js → cell-utils-571978d6.js} +4 -4
- package/dist/esm/{component-d2803feb.js → component-c4eb6153.js} +204 -170
- package/dist/esm/{f-button-30dbcaa9.js → f-button-b3011cc2.js} +2 -2
- package/dist/esm/{f-cell-95c186c6.js → f-cell-b88b2731.js} +38 -28
- package/dist/esm/f-chip-a52489ec.js +128 -0
- package/dist/esm/{f-image-3bc8b24f.js → f-image-5e5ed7e2.js} +3 -3
- package/dist/esm/{index-e0e67c23.js → index-78f3699d.js} +23 -0
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +7 -7
- package/dist/esm/{kup-autocomplete_28.entry.js → kup-autocomplete_27.entry.js} +4420 -3856
- package/dist/esm/kup-calendar.entry.js +626 -359
- package/dist/esm/kup-cell.entry.js +15 -13
- package/dist/esm/kup-dash-list.entry.js +4 -4
- package/dist/esm/kup-dash_2.entry.js +8 -7
- package/dist/esm/kup-drawer.entry.js +3 -3
- package/dist/esm/kup-echart.entry.js +93035 -0
- package/dist/esm/kup-field.entry.js +2 -2
- package/dist/esm/kup-iframe.entry.js +3 -3
- package/dist/esm/kup-lazy.entry.js +22 -5
- package/dist/esm/kup-magic-box.entry.js +95 -42
- package/dist/esm/{kup-manager-7fc234da.js → kup-manager-1f76a3ef.js} +3388 -753
- package/dist/esm/kup-nav-bar.entry.js +3 -3
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +5 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{tslib.es6-e6137777.js → tslib.es6-8f2d44b6.js} +13 -1
- package/dist/esm/utils-93ae800f.js +461 -0
- package/dist/ketchup/assets/maps/africa.json +6116 -0
- package/dist/ketchup/assets/maps/america.json +5416 -0
- package/dist/ketchup/assets/maps/asia.json +6053 -0
- package/dist/ketchup/assets/maps/europe.json +5051 -0
- package/dist/ketchup/assets/maps/italy.json +3562 -0
- package/dist/ketchup/assets/maps/oceania.json +1069 -0
- package/dist/ketchup/assets/maps/world.json +23685 -0
- package/dist/ketchup/assets/svg/science.svg +1 -0
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-a878016f.entry.js → p-088a886c.entry.js} +1 -1
- package/dist/ketchup/p-135cabdc.entry.js +1 -0
- package/dist/ketchup/{p-1c6178e4.entry.js → p-1c1e830f.entry.js} +1 -1
- package/dist/ketchup/{p-62816d0b.entry.js → p-29208220.entry.js} +1 -1
- package/dist/ketchup/{p-ca0ca27f.entry.js → p-2b9f2019.entry.js} +1 -1
- package/dist/ketchup/p-52d0582a.js +1 -0
- package/dist/ketchup/p-554bd5f0.entry.js +39 -0
- package/dist/ketchup/{p-de83f2f6.js → p-5f52e313.js} +1 -1
- package/dist/ketchup/{p-ccda584a.entry.js → p-65449480.entry.js} +1 -1
- package/dist/ketchup/p-79cf3874.entry.js +1 -0
- package/dist/ketchup/p-7a85cda4.js +1 -0
- package/dist/ketchup/p-84cce555.entry.js +27 -0
- package/dist/ketchup/p-8c44c3b9.js +135 -0
- package/dist/ketchup/{p-65adc15b.entry.js → p-9d49cdb2.entry.js} +1 -1
- package/dist/ketchup/{p-5a4a5fdc.js → p-a0b1d769.js} +1 -1
- package/dist/ketchup/{p-dbb6998b.entry.js → p-a2b6672e.entry.js} +1 -1
- package/dist/ketchup/{p-a378ba56.entry.js → p-a4be630b.entry.js} +1 -1
- package/dist/ketchup/p-c072b270.js +1 -0
- package/dist/ketchup/{p-1baf1205.entry.js → p-c648972c.entry.js} +1 -1
- package/dist/ketchup/{p-af4a6191.entry.js → p-d67d39c0.entry.js} +1 -1
- package/dist/ketchup/p-d6e2f2b0.entry.js +1 -0
- package/dist/ketchup/{p-44375e49.js → p-da387e0e.js} +1 -1
- package/dist/ketchup/p-e5c9ec9e.js +1 -0
- package/dist/ketchup/{p-cb5f4994.js → p-ed0b8666.js} +0 -0
- package/dist/ketchup/p-ef539eda.js +9 -0
- package/dist/ketchup/p-f316234c.entry.js +143 -0
- package/dist/types/components/kup-accordion/kup-accordion-declarations.d.ts +2 -2
- package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +6 -0
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +29 -22
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +7 -11
- package/dist/types/components/kup-box/kup-box.d.ts +4 -4
- package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +6 -1
- package/dist/types/components/kup-button-list/kup-button-list.d.ts +4 -3
- package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +28 -10
- package/dist/types/components/kup-calendar/kup-calendar.d.ts +19 -47
- package/dist/types/components/kup-card/built-in/kup-card-built-in.d.ts +27 -0
- package/dist/types/components/kup-card/{builtin → built-in}/kup-card-calendar.d.ts +0 -0
- package/dist/types/components/kup-card/{builtin → built-in}/kup-card-clock.d.ts +0 -0
- package/dist/types/components/kup-card/built-in/kup-card-column-drop-menu.d.ts +3 -0
- package/dist/types/components/kup-card/free/kup-card-free.d.ts +7 -1
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +46 -21
- package/dist/types/components/kup-card/kup-card.d.ts +9 -2
- package/dist/types/components/kup-cell/kup-cell.d.ts +3 -3
- package/dist/types/components/kup-chart/kup-chart-builder.d.ts +5 -5
- package/dist/types/components/kup-chart/kup-chart-declarations.d.ts +3 -3
- package/dist/types/components/kup-chart/kup-chart.d.ts +2 -2
- package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +6 -3
- package/dist/types/components/kup-chip/kup-chip.d.ts +9 -13
- package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +7 -3
- package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +4 -0
- package/dist/types/components/kup-combobox/kup-combobox.d.ts +11 -33
- package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +2 -2
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +45 -104
- package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +8 -11
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +49 -27
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +55 -0
- package/dist/types/components/kup-echart/kup-echart.d.ts +100 -0
- package/dist/types/components/kup-lazy/kup-lazy.d.ts +13 -1
- package/dist/types/components/kup-list/kup-list-declarations.d.ts +2 -1
- package/dist/types/components/kup-list/kup-list.d.ts +4 -35
- package/dist/types/components/kup-magic-box/kup-magic-box-declarations.d.ts +6 -10
- package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +7 -11
- package/dist/types/components/kup-tooltip/kup-tooltip-declarations.d.ts +11 -13
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +14 -35
- package/dist/types/components/kup-tree/kup-tree-faker.d.ts +10 -10
- package/dist/types/components/kup-tree/kup-tree.d.ts +45 -35
- package/dist/types/components.d.ts +305 -186
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +11 -10
- package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +7 -22
- package/dist/types/f-components/f-paginator/f-paginator-declarations.d.ts +22 -0
- package/dist/types/f-components/f-paginator/f-paginator-utils.d.ts +2 -0
- package/dist/types/f-components/f-paginator/f-paginator.d.ts +3 -0
- package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +24 -0
- package/dist/types/managers/kup-data/kup-data-column-helper.d.ts +31 -0
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +160 -0
- package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +23 -0
- package/dist/types/managers/kup-data/kup-data-row-helper.d.ts +14 -0
- package/dist/types/managers/kup-data/kup-data.d.ts +77 -0
- package/dist/types/{utils → managers}/kup-dates/kup-dates-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-dates/kup-dates.d.ts +24 -2
- package/dist/types/{utils → managers}/kup-debug/kup-debug-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-debug/kup-debug.d.ts +6 -13
- package/dist/types/{utils → managers}/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -0
- package/dist/types/{utils → managers}/kup-dynamic-position/kup-dynamic-position.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-interact/kup-interact-declarations.d.ts +9 -8
- package/dist/types/{utils → managers}/kup-interact/kup-interact.d.ts +7 -6
- package/dist/types/{utils → managers}/kup-language/kup-language-declarations.d.ts +11 -1
- package/dist/types/{utils → managers}/kup-language/kup-language.d.ts +3 -3
- package/dist/types/{utils → managers}/kup-manager/kup-manager-declarations.d.ts +21 -2
- package/dist/types/{utils → managers}/kup-manager/kup-manager.d.ts +4 -0
- package/dist/types/managers/kup-math/kup-math-declarations.d.ts +21 -0
- package/dist/types/managers/kup-math/kup-math-helper.d.ts +17 -0
- package/dist/types/managers/kup-math/kup-math.d.ts +60 -0
- package/dist/types/{utils → managers}/kup-objects/kup-objects-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-objects/kup-objects.d.ts +6 -0
- package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-search/kup-search-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-search/kup-search.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-theme/kup-theme-declarations.d.ts +37 -1
- package/dist/types/{utils → managers}/kup-theme/kup-theme.d.ts +19 -19
- package/dist/types/{utils → managers}/kup-toolbar/kup-toolbar-declarations.d.ts +0 -0
- package/dist/types/{utils → managers}/kup-toolbar/kup-toolbar.d.ts +0 -0
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/dist/types/types/GenericTypes.d.ts +53 -6
- package/dist/types/utils/cell-utils.d.ts +7 -6
- package/dist/types/utils/filters/filters-column-menu.d.ts +16 -16
- package/dist/types/utils/filters/filters-rows.d.ts +10 -10
- package/dist/types/utils/filters/filters-tree-items.d.ts +7 -7
- package/dist/types/utils/helpers.d.ts +2 -2
- package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +1 -0
- package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +27 -33
- package/dist/types/utils/utils.d.ts +4 -2
- package/package.json +31 -26
- package/dist/cjs/f-chip-90d95d22.js +0 -141
- package/dist/cjs/utils-0cc466b9.js +0 -1492
- package/dist/collection/components/kup-card/builtin/kup-card-builtin.js +0 -20
- package/dist/collection/components/kup-paginator/kup-paginator-declarations.js +0 -5
- package/dist/collection/components/kup-paginator/kup-paginator.css +0 -46
- package/dist/collection/components/kup-paginator/kup-paginator.js +0 -408
- package/dist/esm/f-chip-c0e9c0ff.js +0 -139
- package/dist/esm/utils-6c73709d.js +0 -1470
- package/dist/ketchup/p-15321eae.js +0 -1
- package/dist/ketchup/p-5a5f2a53.js +0 -1
- package/dist/ketchup/p-61faaa38.js +0 -8
- package/dist/ketchup/p-7e23ea7c.entry.js +0 -1
- package/dist/ketchup/p-9d02a676.js +0 -134
- package/dist/ketchup/p-a96e6e32.entry.js +0 -1
- package/dist/ketchup/p-ad32821e.entry.js +0 -1
- package/dist/ketchup/p-c18c7bb0.entry.js +0 -27
- package/dist/ketchup/p-d4aa4922.js +0 -1
- package/dist/ketchup/p-ec3a3db9.js +0 -1
- package/dist/ketchup/p-ecccb3a4.entry.js +0 -45
- package/dist/types/components/kup-card/builtin/kup-card-builtin.d.ts +0 -14
- package/dist/types/components/kup-paginator/kup-paginator-declarations.d.ts +0 -11
- package/dist/types/components/kup-paginator/kup-paginator.d.ts +0 -48
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Element, Event, forceUpdate, getAssetPath, h, Host, Method, Prop, } from '@stencil/core';
|
|
1
|
+
import { Component, Element, Event, forceUpdate, getAssetPath, h, Host, Method, Prop, Watch, } from '@stencil/core';
|
|
2
2
|
import { Calendar, } from '@fullcalendar/core';
|
|
3
3
|
import dayGridPlugin from '@fullcalendar/daygrid';
|
|
4
4
|
import interactionPlugin from '@fullcalendar/interaction';
|
|
@@ -11,21 +11,26 @@ import itLocale from '@fullcalendar/core/locales/it';
|
|
|
11
11
|
import plLocale from '@fullcalendar/core/locales/pl';
|
|
12
12
|
import ruLocale from '@fullcalendar/core/locales/ru';
|
|
13
13
|
import zhLocale from '@fullcalendar/core/locales/zh-cn';
|
|
14
|
-
import { kupManagerInstance, } from '../../
|
|
14
|
+
import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
15
15
|
import { getColumnByName } from '../../utils/cell-utils';
|
|
16
16
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
17
17
|
import { FButton } from '../../f-components/f-button/f-button';
|
|
18
18
|
import { getProps, setProps } from '../../utils/utils';
|
|
19
|
-
import { KupCalendarProps, KupCalendarViewTypes, } from './kup-calendar-declarations';
|
|
19
|
+
import { KupCalendarOptions, KupCalendarProps, KupCalendarViewTypes, } from './kup-calendar-declarations';
|
|
20
20
|
import { FChip } from '../../f-components/f-chip/f-chip';
|
|
21
21
|
import { FChipType, } from '../../f-components/f-chip/f-chip-declarations';
|
|
22
|
-
import { KupLanguageGeneric } from '../../
|
|
23
|
-
import { KupDatesLocales } from '../../
|
|
22
|
+
import { KupLanguageGeneric } from '../../managers/kup-language/kup-language-declarations';
|
|
23
|
+
import { KupDatesLocales } from '../../managers/kup-dates/kup-dates-declarations';
|
|
24
24
|
export class KupCalendar {
|
|
25
25
|
constructor() {
|
|
26
26
|
/*-------------------------------------------------*/
|
|
27
27
|
/* P r o p s */
|
|
28
28
|
/*-------------------------------------------------*/
|
|
29
|
+
/**
|
|
30
|
+
* Sets the initial date of the calendar. Must be in ISO format (YYYY-MM-DD).
|
|
31
|
+
* @default null
|
|
32
|
+
*/
|
|
33
|
+
this.currentDate = null;
|
|
29
34
|
/**
|
|
30
35
|
* Custom style of the component.
|
|
31
36
|
* @default ""
|
|
@@ -37,51 +42,11 @@ export class KupCalendar {
|
|
|
37
42
|
* @default null
|
|
38
43
|
*/
|
|
39
44
|
this.data = null;
|
|
40
|
-
/**
|
|
41
|
-
* Column containing events' dates.
|
|
42
|
-
* @default null
|
|
43
|
-
*/
|
|
44
|
-
this.dateCol = null;
|
|
45
|
-
/**
|
|
46
|
-
* Column containing events' descriptions.
|
|
47
|
-
* @default null
|
|
48
|
-
*/
|
|
49
|
-
this.descrCol = null;
|
|
50
|
-
/**
|
|
51
|
-
* Column containing events' ending time.
|
|
52
|
-
* @default null
|
|
53
|
-
*/
|
|
54
|
-
this.endCol = null;
|
|
55
45
|
/**
|
|
56
46
|
* When disabled, the navigation toolbar won't be displayed.
|
|
57
47
|
* @default false
|
|
58
48
|
*/
|
|
59
49
|
this.hideNavigation = false;
|
|
60
|
-
/**
|
|
61
|
-
* Column containing events' icons. There can be multiple icons, divided by ";".
|
|
62
|
-
* @default null
|
|
63
|
-
*/
|
|
64
|
-
this.iconCol = null;
|
|
65
|
-
/**
|
|
66
|
-
* Column containing events' images. There can be multiple images, divided by ";".
|
|
67
|
-
* @default null
|
|
68
|
-
*/
|
|
69
|
-
this.imageCol = null;
|
|
70
|
-
/**
|
|
71
|
-
* Sets the initial date of the calendar. Must be in ISO format (YYYY-MM-DD).
|
|
72
|
-
* @default null
|
|
73
|
-
*/
|
|
74
|
-
this.initialDate = null;
|
|
75
|
-
/**
|
|
76
|
-
* Column containing events' starting time.
|
|
77
|
-
* @default null
|
|
78
|
-
*/
|
|
79
|
-
this.startCol = null;
|
|
80
|
-
/**
|
|
81
|
-
* Column containing events' CSS styles.
|
|
82
|
-
* @default null
|
|
83
|
-
*/
|
|
84
|
-
this.styleCol = null;
|
|
85
50
|
/**
|
|
86
51
|
* Type of the view.
|
|
87
52
|
* @default KupCalendarViewTypes.MONTH
|
|
@@ -91,6 +56,142 @@ export class KupCalendar {
|
|
|
91
56
|
this.kupManager = kupManagerInstance();
|
|
92
57
|
this.navTitle = null;
|
|
93
58
|
this.resizeTimeout = null;
|
|
59
|
+
this.dateCol = null;
|
|
60
|
+
this.descrCol = null;
|
|
61
|
+
this.endCol = null;
|
|
62
|
+
this.iconCol = null;
|
|
63
|
+
this.imageCol = null;
|
|
64
|
+
this.startCol = null;
|
|
65
|
+
this.styleCol = null;
|
|
66
|
+
}
|
|
67
|
+
/*-------------------------------------------------*/
|
|
68
|
+
/* W a t c h e r s */
|
|
69
|
+
/*-------------------------------------------------*/
|
|
70
|
+
setCalendarData() {
|
|
71
|
+
if (this.calendar) {
|
|
72
|
+
this.calendar.destroy();
|
|
73
|
+
}
|
|
74
|
+
for (let index = 0; this.data && this.data.columns && index < this.data.columns.length; index++) {
|
|
75
|
+
const column = this.data.columns[index];
|
|
76
|
+
switch (column.calendarOption) {
|
|
77
|
+
case KupCalendarOptions.DATE:
|
|
78
|
+
this.dateCol = column.name;
|
|
79
|
+
break;
|
|
80
|
+
case KupCalendarOptions.DESCR:
|
|
81
|
+
this.descrCol = column.name;
|
|
82
|
+
break;
|
|
83
|
+
case KupCalendarOptions.END:
|
|
84
|
+
this.endCol = column.name;
|
|
85
|
+
break;
|
|
86
|
+
case KupCalendarOptions.ICON:
|
|
87
|
+
this.iconCol = column.name;
|
|
88
|
+
break;
|
|
89
|
+
case KupCalendarOptions.IMAGE:
|
|
90
|
+
this.imageCol = column.name;
|
|
91
|
+
break;
|
|
92
|
+
case KupCalendarOptions.START:
|
|
93
|
+
this.startCol = column.name;
|
|
94
|
+
break;
|
|
95
|
+
case KupCalendarOptions.STYLE:
|
|
96
|
+
this.styleCol = column.name;
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
this.calendar = new Calendar(this.calendarContainer, {
|
|
101
|
+
dateClick: ({ date }) => {
|
|
102
|
+
this.kupCalendarDateClick.emit({
|
|
103
|
+
comp: this,
|
|
104
|
+
id: this.rootElement.id,
|
|
105
|
+
date: date,
|
|
106
|
+
});
|
|
107
|
+
},
|
|
108
|
+
editable: true,
|
|
109
|
+
eventClick: ({ event }) => {
|
|
110
|
+
this.kupCalendarEventClick.emit({
|
|
111
|
+
comp: this,
|
|
112
|
+
id: this.rootElement.id,
|
|
113
|
+
row: event.extendedProps.row,
|
|
114
|
+
});
|
|
115
|
+
},
|
|
116
|
+
eventDidMount: (info) => {
|
|
117
|
+
if (this.iconCol) {
|
|
118
|
+
const row = info.event.extendedProps.row;
|
|
119
|
+
const cell = row.cells[this.iconCol];
|
|
120
|
+
if (cell && cell.value) {
|
|
121
|
+
const wrapper = document.createElement('div');
|
|
122
|
+
wrapper.classList.add('icon-wrapper');
|
|
123
|
+
cell.value.split(';').forEach((icon) => {
|
|
124
|
+
const span = document.createElement('span');
|
|
125
|
+
span.className = 'custom-icon';
|
|
126
|
+
const path = getAssetPath(`./assets/svg/${icon}.svg`);
|
|
127
|
+
span.style.mask = `url('${path}') no-repeat center`;
|
|
128
|
+
span.style.webkitMask = `url('${path}') no-repeat center`;
|
|
129
|
+
wrapper.appendChild(span);
|
|
130
|
+
});
|
|
131
|
+
info.el.appendChild(wrapper);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
if (this.imageCol) {
|
|
135
|
+
const row = info.event.extendedProps.row;
|
|
136
|
+
const cell = row.cells[this.imageCol];
|
|
137
|
+
if (cell && cell.value) {
|
|
138
|
+
const wrapper = document.createElement('div');
|
|
139
|
+
wrapper.classList.add('image-wrapper');
|
|
140
|
+
cell.value.split(';').forEach((icon) => {
|
|
141
|
+
const img = document.createElement('img');
|
|
142
|
+
img.src = icon;
|
|
143
|
+
wrapper.appendChild(img);
|
|
144
|
+
});
|
|
145
|
+
info.el.appendChild(wrapper);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
if (this.styleCol) {
|
|
149
|
+
const row = info.event.extendedProps.row;
|
|
150
|
+
const cell = row.cells[this.styleCol];
|
|
151
|
+
const eventCell = info.el.children[0];
|
|
152
|
+
const parent = eventCell.parentElement;
|
|
153
|
+
if (cell && cell.style) {
|
|
154
|
+
Object.keys(cell.style).forEach((k) => {
|
|
155
|
+
parent.style[k] = cell.style[k];
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
eventDrop: ({ event, oldEvent }) => {
|
|
161
|
+
this.kupCalendarEventDrop.emit({
|
|
162
|
+
comp: this,
|
|
163
|
+
id: this.rootElement.id,
|
|
164
|
+
fromDate: {
|
|
165
|
+
start: oldEvent.start,
|
|
166
|
+
end: oldEvent.end,
|
|
167
|
+
},
|
|
168
|
+
toDate: {
|
|
169
|
+
start: event.start,
|
|
170
|
+
end: event.end,
|
|
171
|
+
},
|
|
172
|
+
});
|
|
173
|
+
},
|
|
174
|
+
events: this.getEvents(),
|
|
175
|
+
headerToolbar: false,
|
|
176
|
+
initialDate: this.currentDate,
|
|
177
|
+
initialView: this.viewType,
|
|
178
|
+
locale: this.getLocale(),
|
|
179
|
+
locales: [
|
|
180
|
+
esLocale,
|
|
181
|
+
frLocale,
|
|
182
|
+
itLocale,
|
|
183
|
+
plLocale,
|
|
184
|
+
ruLocale,
|
|
185
|
+
zhLocale,
|
|
186
|
+
],
|
|
187
|
+
plugins: [
|
|
188
|
+
dayGridPlugin,
|
|
189
|
+
interactionPlugin,
|
|
190
|
+
listPlugin,
|
|
191
|
+
timeGridPlugin,
|
|
192
|
+
],
|
|
193
|
+
});
|
|
194
|
+
this.calendar.render();
|
|
94
195
|
}
|
|
95
196
|
/*-------------------------------------------------*/
|
|
96
197
|
/* P u b l i c M e t h o d s */
|
|
@@ -173,9 +274,9 @@ export class KupCalendar {
|
|
|
173
274
|
for (const key in KupCalendarViewTypes) {
|
|
174
275
|
const view = KupCalendarViewTypes[key];
|
|
175
276
|
const chipData = {
|
|
176
|
-
value: key,
|
|
177
|
-
label: this.kupManager.language.translate(KupLanguageGeneric[key]),
|
|
178
277
|
checked: this.viewType === view ? true : false,
|
|
278
|
+
value: this.kupManager.language.translate(KupLanguageGeneric[key]),
|
|
279
|
+
id: key,
|
|
179
280
|
};
|
|
180
281
|
props.data.push(chipData);
|
|
181
282
|
props.onClick.push(() => this.changeView(view));
|
|
@@ -236,7 +337,7 @@ export class KupCalendar {
|
|
|
236
337
|
const to = this.kupManager.dates
|
|
237
338
|
.subtract(this.calendar.view.currentEnd, 1, 'day')
|
|
238
339
|
.toDate();
|
|
239
|
-
this.
|
|
340
|
+
this.kupCalendarViewChange.emit({
|
|
240
341
|
comp: this,
|
|
241
342
|
id: this.rootElement.id,
|
|
242
343
|
from: this.calendar.view.currentStart,
|
|
@@ -254,105 +355,13 @@ export class KupCalendar {
|
|
|
254
355
|
/* L i f e c y c l e H o o k s */
|
|
255
356
|
/*-------------------------------------------------*/
|
|
256
357
|
componentWillLoad() {
|
|
358
|
+
this.kupManager.dates.register(this);
|
|
257
359
|
this.kupManager.debug.logLoad(this, false);
|
|
258
360
|
this.kupManager.language.register(this);
|
|
259
361
|
this.kupManager.theme.register(this);
|
|
260
362
|
}
|
|
261
363
|
componentDidLoad() {
|
|
262
|
-
this.
|
|
263
|
-
dateClick: ({ date }) => {
|
|
264
|
-
this.kupCalendarDateClicked.emit({
|
|
265
|
-
comp: this,
|
|
266
|
-
id: this.rootElement.id,
|
|
267
|
-
date: date,
|
|
268
|
-
});
|
|
269
|
-
},
|
|
270
|
-
editable: true,
|
|
271
|
-
eventClick: ({ event }) => {
|
|
272
|
-
this.kupCalendarEventClicked.emit({
|
|
273
|
-
comp: this,
|
|
274
|
-
id: this.rootElement.id,
|
|
275
|
-
row: event.extendedProps.row,
|
|
276
|
-
});
|
|
277
|
-
},
|
|
278
|
-
eventDidMount: (info) => {
|
|
279
|
-
if (this.styleCol) {
|
|
280
|
-
const row = info.event.extendedProps.row;
|
|
281
|
-
const cell = row.cells[this.styleCol];
|
|
282
|
-
const eventCell = info.el.children[0];
|
|
283
|
-
if (cell && cell.style) {
|
|
284
|
-
Object.keys(cell.style).forEach((k) => {
|
|
285
|
-
eventCell.style[k] = cell.style[k];
|
|
286
|
-
});
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
if (this.iconCol) {
|
|
290
|
-
const row = info.event.extendedProps.row;
|
|
291
|
-
const cell = row.cells[this.iconCol];
|
|
292
|
-
if (cell && cell.value) {
|
|
293
|
-
const wrapper = document.createElement('div');
|
|
294
|
-
wrapper.classList.add('icon-wrapper');
|
|
295
|
-
cell.value.split(';').forEach((icon) => {
|
|
296
|
-
const span = document.createElement('span');
|
|
297
|
-
span.className = 'custom-icon';
|
|
298
|
-
const path = getAssetPath(`./assets/svg/${icon}.svg`);
|
|
299
|
-
span.style.mask = `url('${path}') no-repeat center`;
|
|
300
|
-
span.style.webkitMask = `url('${path}') no-repeat center`;
|
|
301
|
-
wrapper.appendChild(span);
|
|
302
|
-
});
|
|
303
|
-
info.el.appendChild(wrapper);
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
if (this.imageCol) {
|
|
307
|
-
const row = info.event.extendedProps.row;
|
|
308
|
-
const cell = row.cells[this.imageCol];
|
|
309
|
-
if (cell && cell.value) {
|
|
310
|
-
const wrapper = document.createElement('div');
|
|
311
|
-
wrapper.classList.add('image-wrapper');
|
|
312
|
-
cell.value.split(';').forEach((icon) => {
|
|
313
|
-
const img = document.createElement('img');
|
|
314
|
-
img.src = icon;
|
|
315
|
-
wrapper.appendChild(img);
|
|
316
|
-
});
|
|
317
|
-
info.el.appendChild(wrapper);
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
},
|
|
321
|
-
eventDrop: ({ event, oldEvent }) => {
|
|
322
|
-
this.kupCalendarEventDropped.emit({
|
|
323
|
-
comp: this,
|
|
324
|
-
id: this.rootElement.id,
|
|
325
|
-
fromDate: {
|
|
326
|
-
start: oldEvent.start,
|
|
327
|
-
end: oldEvent.end,
|
|
328
|
-
},
|
|
329
|
-
toDate: {
|
|
330
|
-
start: event.start,
|
|
331
|
-
end: event.end,
|
|
332
|
-
},
|
|
333
|
-
});
|
|
334
|
-
},
|
|
335
|
-
events: this.getEvents(),
|
|
336
|
-
headerToolbar: false,
|
|
337
|
-
initialDate: this.initialDate,
|
|
338
|
-
initialView: this.viewType,
|
|
339
|
-
locale: this.getLocale(),
|
|
340
|
-
locales: [
|
|
341
|
-
esLocale,
|
|
342
|
-
frLocale,
|
|
343
|
-
itLocale,
|
|
344
|
-
plLocale,
|
|
345
|
-
ruLocale,
|
|
346
|
-
zhLocale,
|
|
347
|
-
],
|
|
348
|
-
plugins: [
|
|
349
|
-
dayGridPlugin,
|
|
350
|
-
interactionPlugin,
|
|
351
|
-
listPlugin,
|
|
352
|
-
timeGridPlugin,
|
|
353
|
-
],
|
|
354
|
-
});
|
|
355
|
-
this.calendar.render();
|
|
364
|
+
this.setCalendarData();
|
|
356
365
|
this.updateCalendar();
|
|
357
366
|
this.kupManager.resize.observe(this.rootElement);
|
|
358
367
|
this.kupManager.debug.logLoad(this, true);
|
|
@@ -386,6 +395,7 @@ export class KupCalendar {
|
|
|
386
395
|
if (this.calendar) {
|
|
387
396
|
this.calendar.destroy();
|
|
388
397
|
}
|
|
398
|
+
this.kupManager.dates.unregister(this);
|
|
389
399
|
this.kupManager.language.unregister(this);
|
|
390
400
|
this.kupManager.resize.unobserve(this.rootElement);
|
|
391
401
|
this.kupManager.theme.unregister(this);
|
|
@@ -399,55 +409,7 @@ export class KupCalendar {
|
|
|
399
409
|
"$": ["kup-calendar.css"]
|
|
400
410
|
}; }
|
|
401
411
|
static get properties() { return {
|
|
402
|
-
"
|
|
403
|
-
"type": "string",
|
|
404
|
-
"mutable": false,
|
|
405
|
-
"complexType": {
|
|
406
|
-
"original": "string",
|
|
407
|
-
"resolved": "string",
|
|
408
|
-
"references": {}
|
|
409
|
-
},
|
|
410
|
-
"required": false,
|
|
411
|
-
"optional": false,
|
|
412
|
-
"docs": {
|
|
413
|
-
"tags": [{
|
|
414
|
-
"name": "default",
|
|
415
|
-
"text": "\"\""
|
|
416
|
-
}, {
|
|
417
|
-
"name": "see",
|
|
418
|
-
"text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
|
|
419
|
-
}],
|
|
420
|
-
"text": "Custom style of the component."
|
|
421
|
-
},
|
|
422
|
-
"attribute": "custom-style",
|
|
423
|
-
"reflect": false,
|
|
424
|
-
"defaultValue": "''"
|
|
425
|
-
},
|
|
426
|
-
"data": {
|
|
427
|
-
"type": "unknown",
|
|
428
|
-
"mutable": false,
|
|
429
|
-
"complexType": {
|
|
430
|
-
"original": "TableData",
|
|
431
|
-
"resolved": "TableData",
|
|
432
|
-
"references": {
|
|
433
|
-
"TableData": {
|
|
434
|
-
"location": "import",
|
|
435
|
-
"path": "../kup-data-table/kup-data-table-declarations"
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
},
|
|
439
|
-
"required": false,
|
|
440
|
-
"optional": false,
|
|
441
|
-
"docs": {
|
|
442
|
-
"tags": [{
|
|
443
|
-
"name": "default",
|
|
444
|
-
"text": "null"
|
|
445
|
-
}],
|
|
446
|
-
"text": "Actual data of the calendar."
|
|
447
|
-
},
|
|
448
|
-
"defaultValue": "null"
|
|
449
|
-
},
|
|
450
|
-
"dateCol": {
|
|
412
|
+
"currentDate": {
|
|
451
413
|
"type": "string",
|
|
452
414
|
"mutable": false,
|
|
453
415
|
"complexType": {
|
|
@@ -462,13 +424,13 @@ export class KupCalendar {
|
|
|
462
424
|
"name": "default",
|
|
463
425
|
"text": "null"
|
|
464
426
|
}],
|
|
465
|
-
"text": "
|
|
427
|
+
"text": "Sets the initial date of the calendar. Must be in ISO format (YYYY-MM-DD)."
|
|
466
428
|
},
|
|
467
|
-
"attribute": "date
|
|
429
|
+
"attribute": "current-date",
|
|
468
430
|
"reflect": false,
|
|
469
431
|
"defaultValue": "null"
|
|
470
432
|
},
|
|
471
|
-
"
|
|
433
|
+
"customStyle": {
|
|
472
434
|
"type": "string",
|
|
473
435
|
"mutable": false,
|
|
474
436
|
"complexType": {
|
|
@@ -481,21 +443,29 @@ export class KupCalendar {
|
|
|
481
443
|
"docs": {
|
|
482
444
|
"tags": [{
|
|
483
445
|
"name": "default",
|
|
484
|
-
"text": "
|
|
446
|
+
"text": "\"\""
|
|
447
|
+
}, {
|
|
448
|
+
"name": "see",
|
|
449
|
+
"text": "https://ketchup.smeup.com/ketchup-showcase/#/customization"
|
|
485
450
|
}],
|
|
486
|
-
"text": "
|
|
451
|
+
"text": "Custom style of the component."
|
|
487
452
|
},
|
|
488
|
-
"attribute": "
|
|
453
|
+
"attribute": "custom-style",
|
|
489
454
|
"reflect": false,
|
|
490
|
-
"defaultValue": "
|
|
455
|
+
"defaultValue": "''"
|
|
491
456
|
},
|
|
492
|
-
"
|
|
493
|
-
"type": "
|
|
457
|
+
"data": {
|
|
458
|
+
"type": "unknown",
|
|
494
459
|
"mutable": false,
|
|
495
460
|
"complexType": {
|
|
496
|
-
"original": "
|
|
497
|
-
"resolved": "
|
|
498
|
-
"references": {
|
|
461
|
+
"original": "KupCalendarData",
|
|
462
|
+
"resolved": "KupCalendarData",
|
|
463
|
+
"references": {
|
|
464
|
+
"KupCalendarData": {
|
|
465
|
+
"location": "import",
|
|
466
|
+
"path": "./kup-calendar-declarations"
|
|
467
|
+
}
|
|
468
|
+
}
|
|
499
469
|
},
|
|
500
470
|
"required": false,
|
|
501
471
|
"optional": false,
|
|
@@ -504,10 +474,8 @@ export class KupCalendar {
|
|
|
504
474
|
"name": "default",
|
|
505
475
|
"text": "null"
|
|
506
476
|
}],
|
|
507
|
-
"text": "
|
|
477
|
+
"text": "Actual data of the calendar."
|
|
508
478
|
},
|
|
509
|
-
"attribute": "end-col",
|
|
510
|
-
"reflect": false,
|
|
511
479
|
"defaultValue": "null"
|
|
512
480
|
},
|
|
513
481
|
"hideNavigation": {
|
|
@@ -531,111 +499,6 @@ export class KupCalendar {
|
|
|
531
499
|
"reflect": false,
|
|
532
500
|
"defaultValue": "false"
|
|
533
501
|
},
|
|
534
|
-
"iconCol": {
|
|
535
|
-
"type": "string",
|
|
536
|
-
"mutable": false,
|
|
537
|
-
"complexType": {
|
|
538
|
-
"original": "string",
|
|
539
|
-
"resolved": "string",
|
|
540
|
-
"references": {}
|
|
541
|
-
},
|
|
542
|
-
"required": false,
|
|
543
|
-
"optional": false,
|
|
544
|
-
"docs": {
|
|
545
|
-
"tags": [{
|
|
546
|
-
"name": "default",
|
|
547
|
-
"text": "null"
|
|
548
|
-
}],
|
|
549
|
-
"text": "Column containing events' icons. There can be multiple icons, divided by \";\"."
|
|
550
|
-
},
|
|
551
|
-
"attribute": "icon-col",
|
|
552
|
-
"reflect": false,
|
|
553
|
-
"defaultValue": "null"
|
|
554
|
-
},
|
|
555
|
-
"imageCol": {
|
|
556
|
-
"type": "string",
|
|
557
|
-
"mutable": false,
|
|
558
|
-
"complexType": {
|
|
559
|
-
"original": "string",
|
|
560
|
-
"resolved": "string",
|
|
561
|
-
"references": {}
|
|
562
|
-
},
|
|
563
|
-
"required": false,
|
|
564
|
-
"optional": false,
|
|
565
|
-
"docs": {
|
|
566
|
-
"tags": [{
|
|
567
|
-
"name": "default",
|
|
568
|
-
"text": "null"
|
|
569
|
-
}],
|
|
570
|
-
"text": "Column containing events' images. There can be multiple images, divided by \";\"."
|
|
571
|
-
},
|
|
572
|
-
"attribute": "image-col",
|
|
573
|
-
"reflect": false,
|
|
574
|
-
"defaultValue": "null"
|
|
575
|
-
},
|
|
576
|
-
"initialDate": {
|
|
577
|
-
"type": "string",
|
|
578
|
-
"mutable": false,
|
|
579
|
-
"complexType": {
|
|
580
|
-
"original": "string",
|
|
581
|
-
"resolved": "string",
|
|
582
|
-
"references": {}
|
|
583
|
-
},
|
|
584
|
-
"required": false,
|
|
585
|
-
"optional": false,
|
|
586
|
-
"docs": {
|
|
587
|
-
"tags": [{
|
|
588
|
-
"name": "default",
|
|
589
|
-
"text": "null"
|
|
590
|
-
}],
|
|
591
|
-
"text": "Sets the initial date of the calendar. Must be in ISO format (YYYY-MM-DD)."
|
|
592
|
-
},
|
|
593
|
-
"attribute": "initial-date",
|
|
594
|
-
"reflect": false,
|
|
595
|
-
"defaultValue": "null"
|
|
596
|
-
},
|
|
597
|
-
"startCol": {
|
|
598
|
-
"type": "string",
|
|
599
|
-
"mutable": false,
|
|
600
|
-
"complexType": {
|
|
601
|
-
"original": "string",
|
|
602
|
-
"resolved": "string",
|
|
603
|
-
"references": {}
|
|
604
|
-
},
|
|
605
|
-
"required": false,
|
|
606
|
-
"optional": false,
|
|
607
|
-
"docs": {
|
|
608
|
-
"tags": [{
|
|
609
|
-
"name": "default",
|
|
610
|
-
"text": "null"
|
|
611
|
-
}],
|
|
612
|
-
"text": "Column containing events' starting time."
|
|
613
|
-
},
|
|
614
|
-
"attribute": "start-col",
|
|
615
|
-
"reflect": false,
|
|
616
|
-
"defaultValue": "null"
|
|
617
|
-
},
|
|
618
|
-
"styleCol": {
|
|
619
|
-
"type": "string",
|
|
620
|
-
"mutable": false,
|
|
621
|
-
"complexType": {
|
|
622
|
-
"original": "string",
|
|
623
|
-
"resolved": "string",
|
|
624
|
-
"references": {}
|
|
625
|
-
},
|
|
626
|
-
"required": false,
|
|
627
|
-
"optional": false,
|
|
628
|
-
"docs": {
|
|
629
|
-
"tags": [{
|
|
630
|
-
"name": "default",
|
|
631
|
-
"text": "null"
|
|
632
|
-
}],
|
|
633
|
-
"text": "Column containing events' CSS styles."
|
|
634
|
-
},
|
|
635
|
-
"attribute": "style-col",
|
|
636
|
-
"reflect": false,
|
|
637
|
-
"defaultValue": "null"
|
|
638
|
-
},
|
|
639
502
|
"viewType": {
|
|
640
503
|
"type": "string",
|
|
641
504
|
"mutable": true,
|
|
@@ -664,7 +527,7 @@ export class KupCalendar {
|
|
|
664
527
|
}
|
|
665
528
|
}; }
|
|
666
529
|
static get events() { return [{
|
|
667
|
-
"method": "
|
|
530
|
+
"method": "kupCalendarEventClick",
|
|
668
531
|
"name": "kup-calendar-eventclick",
|
|
669
532
|
"bubbles": true,
|
|
670
533
|
"cancelable": false,
|
|
@@ -684,7 +547,7 @@ export class KupCalendar {
|
|
|
684
547
|
}
|
|
685
548
|
}
|
|
686
549
|
}, {
|
|
687
|
-
"method": "
|
|
550
|
+
"method": "kupCalendarDateClick",
|
|
688
551
|
"name": "kup-calendar-dateclick",
|
|
689
552
|
"bubbles": true,
|
|
690
553
|
"cancelable": false,
|
|
@@ -704,7 +567,7 @@ export class KupCalendar {
|
|
|
704
567
|
}
|
|
705
568
|
}
|
|
706
569
|
}, {
|
|
707
|
-
"method": "
|
|
570
|
+
"method": "kupCalendarEventDrop",
|
|
708
571
|
"name": "kup-calendar-eventdrop",
|
|
709
572
|
"bubbles": true,
|
|
710
573
|
"cancelable": false,
|
|
@@ -724,7 +587,7 @@ export class KupCalendar {
|
|
|
724
587
|
}
|
|
725
588
|
}
|
|
726
589
|
}, {
|
|
727
|
-
"method": "
|
|
590
|
+
"method": "kupCalendarViewChange",
|
|
728
591
|
"name": "kup-calendar-viewchange",
|
|
729
592
|
"bubbles": true,
|
|
730
593
|
"cancelable": false,
|
|
@@ -840,4 +703,11 @@ export class KupCalendar {
|
|
|
840
703
|
}
|
|
841
704
|
}; }
|
|
842
705
|
static get elementRef() { return "rootElement"; }
|
|
706
|
+
static get watchers() { return [{
|
|
707
|
+
"propName": "data",
|
|
708
|
+
"methodName": "setCalendarData"
|
|
709
|
+
}, {
|
|
710
|
+
"propName": "currentDate",
|
|
711
|
+
"methodName": "setCalendarData"
|
|
712
|
+
}]; }
|
|
843
713
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
|
+
import { KupCardCSSClasses } from '../kup-card-declarations';
|
|
3
|
+
import { prepareCalendar } from './kup-card-calendar';
|
|
4
|
+
import { prepareClock } from './kup-card-clock';
|
|
5
|
+
import { prepareColumnDropMenu } from './kup-card-column-drop-menu';
|
|
6
|
+
/**
|
|
7
|
+
* 1st built-in layout, calendar view.
|
|
8
|
+
* @param {KupCard} component - Card component.
|
|
9
|
+
* @returns {VNode} 1st built-in layout virtual node.
|
|
10
|
+
*/
|
|
11
|
+
export function create1(component) {
|
|
12
|
+
return (h("div", { class: `built-in-layout-${component.layoutNumber} ${KupCardCSSClasses.BUILT_IN_CARD}` }, prepareCalendar(component)));
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 2nd built-in layout, clock view.
|
|
16
|
+
* @param {KupCard} component - Card component.
|
|
17
|
+
* @returns {VNode} 2st built-in layout virtual node.
|
|
18
|
+
*/
|
|
19
|
+
export function create2(component) {
|
|
20
|
+
return (h("div", { class: `built-in-layout-${component.layoutNumber} ${KupCardCSSClasses.BUILT_IN_CARD}` }, prepareClock(component)));
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* 3rd built-in layout, column drop menu - used in data table when a column is dropped onto another one.
|
|
24
|
+
* @param {KupCard} component - Card component.
|
|
25
|
+
* @returns {VNode} 3rd built-in layout virtual node.
|
|
26
|
+
*/
|
|
27
|
+
export function create3(component) {
|
|
28
|
+
return (h("div", { class: `built-in-layout-${component.layoutNumber} ${KupCardCSSClasses.BUILT_IN_CARD}` }, prepareColumnDropMenu(component)));
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 4th built-in layout, color picker.
|
|
32
|
+
* This layout is rendered after the render cycle completes.
|
|
33
|
+
* @param {KupCard} component - Card component.
|
|
34
|
+
* @returns {VNode} 4th built-in layout virtual node.
|
|
35
|
+
*/
|
|
36
|
+
export function create4(component) {
|
|
37
|
+
return (h("div", { class: `built-in-layout-${component.layoutNumber} ${KupCardCSSClasses.BUILT_IN_CARD}` }));
|
|
38
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from '@stencil/core';
|
|
2
2
|
import { FButton } from '../../../f-components/f-button/f-button';
|
|
3
3
|
import { FButtonStyling, } from '../../../f-components/f-button/f-button-declarations';
|
|
4
|
-
import { KupDatesFormats } from '../../../
|
|
4
|
+
import { KupDatesFormats } from '../../../managers/kup-dates/kup-dates-declarations';
|
|
5
5
|
import { DateTimeFormatOptionsMonth, getMonthsAsStringByLocale, } from '../../../utils/utils';
|
|
6
6
|
import { SourceEvent } from '../../kup-date-picker/kup-date-picker-declarations';
|
|
7
7
|
const dom = document.documentElement;
|