@sme.up/ketchup 10.4.10 → 10.4.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{f-cell-34af9b5c.js → f-cell-05f3233c.js} +4 -4
- package/dist/cjs/{f-chip-0f6c163f.js → f-chip-b4db804b.js} +1 -1
- package/dist/cjs/{f-object-field-51d22c3c.js → f-object-field-8dd8fc0e.js} +2 -2
- package/dist/cjs/{f-paginator-utils-85d4a027.js → f-paginator-utils-37c9a1cb.js} +1 -1
- package/dist/cjs/{f-text-field-dd61a24a.js → f-text-field-e780da48.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +1 -1
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
- package/dist/cjs/kup-autocomplete_30.cjs.entry.js +7 -7
- package/dist/cjs/kup-box.cjs.entry.js +7 -7
- package/dist/cjs/kup-calendar.cjs.entry.js +118 -6
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +5 -5
- package/dist/cjs/kup-dashboard.cjs.entry.js +2 -2
- package/dist/cjs/{kup-data-table-helper-8ff2d35e.js → kup-data-table-helper-5daa5c82.js} +1 -1
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +22 -9
- package/dist/cjs/kup-editor.cjs.entry.js +1 -1
- package/dist/cjs/kup-family-tree.cjs.entry.js +1 -1
- package/dist/cjs/kup-grid.cjs.entry.js +1 -1
- package/dist/cjs/kup-htm.cjs.entry.js +1 -1
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-input-panel.cjs.entry.js +5 -5
- package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
- package/dist/cjs/kup-magic-box.cjs.entry.js +1 -1
- package/dist/cjs/{kup-manager-8a2eb175.js → kup-manager-3ab94bba.js} +1 -1
- package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
- package/dist/cjs/kup-object-field.cjs.entry.js +3 -3
- package/dist/cjs/kup-planner.cjs.entry.js +2 -2
- package/dist/cjs/kup-probe.cjs.entry.js +1 -1
- package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
- package/dist/cjs/kup-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/kup-txt.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/calendar.js +136 -24
- package/dist/collection/components/kup-calendar/kup-calendar-declarations.js +1 -0
- package/dist/collection/components/kup-calendar/kup-calendar.css +19 -0
- package/dist/collection/components/kup-calendar/kup-calendar.js +136 -2
- package/dist/collection/components/kup-echart/kup-echart.js +21 -8
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.js +2 -2
- package/dist/components/kup-activity-timeline.js +2 -2
- package/dist/components/kup-autocomplete.js +1 -1
- package/dist/components/kup-badge.js +1 -1
- package/dist/components/kup-box.js +1 -1
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +121 -7
- package/dist/components/kup-card-list.js +3 -3
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +2 -2
- package/dist/components/kup-chart.js +1 -1
- package/dist/components/kup-checkbox.js +1 -1
- package/dist/components/kup-chip.js +1 -1
- package/dist/components/kup-color-picker.js +1 -1
- package/dist/components/kup-combobox.js +1 -1
- package/dist/components/kup-dashboard.js +2 -2
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dialog.js +1 -1
- package/dist/components/kup-drawer.js +2 -2
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart.js +1 -1
- package/dist/components/kup-editor.js +1 -1
- package/dist/components/kup-family-tree.js +3 -3
- package/dist/components/kup-file-upload.js +1 -1
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid.js +1 -1
- package/dist/components/kup-htm.js +2 -2
- package/dist/components/kup-iframe.js +2 -2
- package/dist/components/kup-image-list.js +1 -1
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +3 -3
- package/dist/components/kup-lazy.js +2 -2
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +4 -4
- package/dist/components/kup-nav-bar.js +2 -2
- package/dist/components/kup-numeric-picker.js +2 -2
- package/dist/components/kup-object-field.js +2 -2
- package/dist/components/kup-planner.js +2 -2
- package/dist/components/kup-probe.js +2 -2
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +2 -2
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +2 -2
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-toolbar.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/components/kup-txt.js +2 -2
- package/dist/components/kup-typography-list.js +2 -2
- package/dist/components/kup-typography.js +2 -2
- package/dist/components/{p-625763b6.js → p-05b01a8c.js} +23 -10
- package/dist/components/{p-3353919d.js → p-0c45cb9d.js} +2 -2
- package/dist/components/{p-984fea54.js → p-22770377.js} +2 -2
- package/dist/components/{p-118fa840.js → p-41c8d9eb.js} +1 -1
- package/dist/components/{p-0b0a24a5.js → p-4f899661.js} +1 -1
- package/dist/components/{p-30d33a81.js → p-eb55f5ed.js} +2 -2
- package/dist/esm/{f-cell-6428839d.js → f-cell-3491806c.js} +4 -4
- package/dist/esm/{f-chip-19922fc0.js → f-chip-bd823a3f.js} +1 -1
- package/dist/esm/{f-object-field-6e450be4.js → f-object-field-89d2049a.js} +2 -2
- package/dist/esm/{f-paginator-utils-50d88733.js → f-paginator-utils-946c53e2.js} +1 -1
- package/dist/esm/{f-text-field-12ece8b0.js → f-text-field-3e176c29.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +1 -1
- package/dist/esm/kup-activity-timeline.entry.js +2 -2
- package/dist/esm/kup-autocomplete_30.entry.js +7 -7
- package/dist/esm/kup-box.entry.js +7 -7
- package/dist/esm/kup-calendar.entry.js +118 -6
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +5 -5
- package/dist/esm/kup-dashboard.entry.js +2 -2
- package/dist/esm/{kup-data-table-helper-e006ef28.js → kup-data-table-helper-537ea105.js} +1 -1
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +22 -9
- package/dist/esm/kup-editor.entry.js +1 -1
- package/dist/esm/kup-family-tree.entry.js +1 -1
- package/dist/esm/kup-grid.entry.js +1 -1
- package/dist/esm/kup-htm.entry.js +1 -1
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-input-panel.entry.js +5 -5
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-2538de17.js → kup-manager-408fac87.js} +1 -1
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- package/dist/esm/kup-object-field.entry.js +3 -3
- package/dist/esm/kup-planner.entry.js +2 -2
- package/dist/esm/kup-probe.entry.js +1 -1
- package/dist/esm/kup-qlik.entry.js +1 -1
- package/dist/esm/kup-snackbar.entry.js +1 -1
- package/dist/esm/kup-txt.entry.js +1 -1
- package/dist/esm/kup-typography-list.entry.js +1 -1
- package/dist/esm/kup-typography.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-028b51a2.js +1 -0
- package/dist/ketchup/{p-ee148d3a.entry.js → p-20abd2d1.entry.js} +1 -1
- package/dist/ketchup/{p-908ee4e3.entry.js → p-23a8c8db.entry.js} +1 -1
- package/dist/ketchup/p-23c54a8e.entry.js +1 -0
- package/dist/ketchup/{p-ea19a99f.js → p-240eb11a.js} +1 -1
- package/dist/ketchup/{p-381ccf39.entry.js → p-309e6dc8.entry.js} +1 -1
- package/dist/ketchup/{p-2aa635d7.js → p-33b2e604.js} +1 -1
- package/dist/ketchup/{p-f420d42e.entry.js → p-489df979.entry.js} +1 -1
- package/dist/ketchup/{p-a40cfeb3.entry.js → p-527bc998.entry.js} +1 -1
- package/dist/ketchup/{p-e499761b.entry.js → p-62bba00f.entry.js} +1 -1
- package/dist/ketchup/{p-faa4ae0b.js → p-67358173.js} +1 -1
- package/dist/ketchup/{p-eee31725.entry.js → p-6cbe8817.entry.js} +1 -1
- package/dist/ketchup/{p-869d5146.js → p-6f19471c.js} +1 -1
- package/dist/ketchup/{p-2a0cf04a.entry.js → p-7f34b0f8.entry.js} +1 -1
- package/dist/ketchup/{p-8a55df25.entry.js → p-848bb2a2.entry.js} +1 -1
- package/dist/ketchup/{p-854ac6a9.entry.js → p-876c925b.entry.js} +1 -1
- package/dist/ketchup/{p-59d08a05.entry.js → p-8a9e8dcb.entry.js} +1 -1
- package/dist/ketchup/{p-0298a281.entry.js → p-9013fe3c.entry.js} +1 -1
- package/dist/ketchup/{p-19309d65.entry.js → p-a182a401.entry.js} +1 -1
- package/dist/ketchup/{p-5ede6476.js → p-ab58e222.js} +1 -1
- package/dist/ketchup/{p-51d50796.entry.js → p-b8796ad4.entry.js} +1 -1
- package/dist/ketchup/{p-0e0f50d7.entry.js → p-bc67dea1.entry.js} +1 -1
- package/dist/ketchup/{p-5c19f18f.entry.js → p-c346ce06.entry.js} +1 -1
- package/dist/ketchup/{p-adc108ba.js → p-c7245604.js} +1 -1
- package/dist/ketchup/{p-d8a174d1.entry.js → p-caaf60af.entry.js} +1 -1
- package/dist/ketchup/{p-e7b0d802.entry.js → p-cc57c356.entry.js} +1 -1
- package/dist/ketchup/{p-ab7a7b39.entry.js → p-cf17fa03.entry.js} +1 -1
- package/dist/ketchup/{p-5b3527dd.entry.js → p-d07fbb31.entry.js} +1 -1
- package/dist/ketchup/{p-2900dfb6.entry.js → p-da566c60.entry.js} +1 -1
- package/dist/ketchup/{p-2ad43847.entry.js → p-da764d68.entry.js} +1 -1
- package/dist/ketchup/{p-b910ece1.entry.js → p-da81990d.entry.js} +1 -1
- package/dist/ketchup/{p-95835175.entry.js → p-e3601415.entry.js} +4 -4
- package/dist/ketchup/{p-ac415f31.entry.js → p-f04e9ca2.entry.js} +1 -1
- package/dist/ketchup/{p-8ca36863.entry.js → p-f2d71f07.entry.js} +1 -1
- package/dist/ketchup/{p-65e59d3b.entry.js → p-fe7a60ec.entry.js} +1 -1
- package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +1 -0
- package/dist/types/components/kup-calendar/kup-calendar.d.ts +13 -0
- package/dist/types/components.d.ts +10 -0
- package/package.json +1 -1
- package/dist/ketchup/p-09c2d8dc.entry.js +0 -1
- package/dist/ketchup/p-9b8f40ce.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h as h$1, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, b as KupLanguageGeneric, x as getColumnByName, h as KupDebugCategory } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, b as KupLanguageGeneric, x as getColumnByName, h as KupDebugCategory } from './kup-manager-408fac87.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
4
|
import { F as FButton } from './f-button-3e022953.js';
|
|
5
|
-
import { d as FChip, F as FChipType } from './f-chip-
|
|
5
|
+
import { d as FChip, F as FChipType } from './f-chip-bd823a3f.js';
|
|
6
6
|
import { b as KupDatesLocales, K as KupDatesFormats } from './kup-dates-bf500166.js';
|
|
7
7
|
import './f-button-declarations-6c8f8abe.js';
|
|
8
8
|
import './f-image-40b4e64b.js';
|
|
@@ -14768,6 +14768,7 @@ var KupCalendarProps;
|
|
|
14768
14768
|
KupCalendarProps["currentDate"] = "Sets the date of the calendar. Must be in ISO format (YYYY-MM-DD).";
|
|
14769
14769
|
KupCalendarProps["customStyle"] = "Custom style of the component.";
|
|
14770
14770
|
KupCalendarProps["data"] = "Actual data of the calendar.";
|
|
14771
|
+
KupCalendarProps["totals"] = "Formula to calculate and display totals on each cell. Format: OPERATION(columnName) where OPERATION is SUM, AVG, COUNT, MAX, or MIN.";
|
|
14771
14772
|
KupCalendarProps["editableEvents"] = "When true, events are editable.";
|
|
14772
14773
|
KupCalendarProps["hideNavigation"] = "When disabled, the navigation toolbar won't be displayed.";
|
|
14773
14774
|
KupCalendarProps["viewType"] = "Type of the view.";
|
|
@@ -14803,7 +14804,7 @@ class KupCalendarState {
|
|
|
14803
14804
|
}
|
|
14804
14805
|
}
|
|
14805
14806
|
|
|
14806
|
-
const kupCalendarCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:var(--kup-label-01-font-size, 12px);line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-compact-01-font-size, 14px);line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-01-font-size, 14px);line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{--kup_calendar_background_color:var(\n --kup-calendar-background-color,\n var(--kup-layer-1)\n );--kup_calendar_border_color:var(\n --kup-calendar-border-color,\n var(--kup-border-subtle)\n );--kup_calendar_event_background_color:var(\n --kup-calendar-event-background-color,\n var(--kup-gray-color-30)\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-secondary)\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-layer-2)\n );--kup_calendar_header_color:var(\n --kup-calendar-header-color,\n var(--kup-text-secondary)\n );--kup_calendar_navigator_border:var(\n --kup-calendar-navigator-border,\n 1px solid var(--kup-border-subtle)\n );--kup_calendar_no_work_day_background_color:var(\n --kup-calendar-no-work-day-background-color,\n var(--kup-layer-0)\n );--kup_calendar_no_work_day_color:var(\n --kup-calendar-no-work-day-color,\n var(--kup-text-secondary)\n );--kup_calendar_today_background_color:var(\n --kup-calendar-today-background-color,\n var(--kup-layer-2)\n );--kup_calendar_border_top_color:var(\n --kup-calendar-border-top-color,\n var(--kup-border-interactive)\n );--fc-border-color:var(--kup_calendar_border_color);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;display:flex;justify-content:space-between;background-color:var(--kup_calendar_background_color)}.navigation__left{--kup-font-size:0.875em;display:flex;margin-left:var(--kup-space-03)}.navigation__right{display:flex;margin-right:var(--kup-space-03)}.navigation__title{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0;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-event-title{white-space:normal;word-break:break-word}#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);font-family:var(--kup-font-family);font-size:var(--kup-heading-01-font-size, 14px);line-height:20px;font-weight:600;letter-spacing:0.16px}#kup-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:none;border-color:var(--kup_calendar_event_background_color);color:var(--kup_calendar_event_color)}#kup-component .fc-event{padding:0.5rem}#kup-component .fc-event-main{color:inherit;display:flex}#kup-component .fc-event-title .fc-event-time{padding:0.25em}#kup-component .fc-event-time{white-space:pre}#kup-component td.fc-day-today{background-color:var(--kup_calendar_today_background_color);border-top:2px solid var(--kup_calendar_border_top_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);opacity:0.7}@media (max-width: 599px){.navigation{flex-direction:column}.calendar{height:100%}.calendar .fc-view-harness{min-height:450px}.fc-event{display:flex;flex-direction:column;padding:0.2rem;gap:var(--kup-space-03)}.fc-event .fc-event-main{display:flex;flex-direction:column}.fc-event .fc-daygrid-event-dot{display:none}.navigation .navigation__left{font-size:20px;gap:8px}.navigation .navigation__right .f-chip .chip-set .chip-set__item{font-size:16px}}@media (min-width: 599px){#kup-component .fc-daygrid-event{align-items:baseline;white-space:pre-line}}";
|
|
14807
|
+
const kupCalendarCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:var(--kup-label-01-font-size, 12px);line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-compact-01-font-size, 14px);line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-01-font-size, 14px);line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{--kup_calendar_background_color:var(\n --kup-calendar-background-color,\n var(--kup-layer-1)\n );--kup_calendar_border_color:var(\n --kup-calendar-border-color,\n var(--kup-border-subtle)\n );--kup_calendar_event_background_color:var(\n --kup-calendar-event-background-color,\n var(--kup-gray-color-30)\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-secondary)\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-layer-2)\n );--kup_calendar_header_color:var(\n --kup-calendar-header-color,\n var(--kup-text-secondary)\n );--kup_calendar_navigator_border:var(\n --kup-calendar-navigator-border,\n 1px solid var(--kup-border-subtle)\n );--kup_calendar_no_work_day_background_color:var(\n --kup-calendar-no-work-day-background-color,\n var(--kup-layer-0)\n );--kup_calendar_no_work_day_color:var(\n --kup-calendar-no-work-day-color,\n var(--kup-text-secondary)\n );--kup_calendar_today_background_color:var(\n --kup-calendar-today-background-color,\n var(--kup-layer-2)\n );--kup_calendar_border_top_color:var(\n --kup-calendar-border-top-color,\n var(--kup-border-interactive)\n );--fc-border-color:var(--kup_calendar_border_color);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;display:flex;justify-content:space-between;background-color:var(--kup_calendar_background_color)}.navigation__left{--kup-font-size:0.875em;display:flex;margin-left:var(--kup-space-03)}.navigation__right{display:flex;margin-right:var(--kup-space-03)}.navigation__title{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0;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-event-title{white-space:normal;word-break:break-word}#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);font-family:var(--kup-font-family);font-size:var(--kup-heading-01-font-size, 14px);line-height:20px;font-weight:600;letter-spacing:0.16px}#kup-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:none;border-color:var(--kup_calendar_event_background_color);color:var(--kup_calendar_event_color)}#kup-component .fc-event{padding:0.5rem}#kup-component .fc-event-main{color:inherit;display:flex}#kup-component .fc-event-title .fc-event-time{padding:0.25em}#kup-component .fc-event-time{white-space:pre}#kup-component td.fc-day-today{background-color:var(--kup_calendar_today_background_color);border-top:2px solid var(--kup_calendar_border_top_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);opacity:0.7}#kup-component .fc-daygrid-day-frame{display:flex;flex-direction:column;min-height:100%}#kup-component .fc-daygrid-day-events{flex:1}#kup-component .kup-calendar-formula-result{align-self:flex-end;font-size:0.85em;font-weight:bold;color:var(--kup-primary-color);padding:0.25em 0.5em;margin-top:auto}#kup-component .fc-daygrid-day-top{width:100%}@media (max-width: 599px){.navigation{flex-direction:column}.calendar{height:100%}.calendar .fc-view-harness{min-height:450px}.fc-event{display:flex;flex-direction:column;padding:0.2rem;gap:var(--kup-space-03)}.fc-event .fc-event-main{display:flex;flex-direction:column}.fc-event .fc-daygrid-event-dot{display:none}.navigation .navigation__left{font-size:20px;gap:8px}.navigation .navigation__right .f-chip .chip-set .chip-set__item{font-size:16px}}@media (min-width: 599px){#kup-component .fc-daygrid-event{align-items:baseline;white-space:pre-line}}";
|
|
14807
14808
|
const KupCalendarStyle0 = kupCalendarCss;
|
|
14808
14809
|
|
|
14809
14810
|
const KupCalendar = class {
|
|
@@ -14829,9 +14830,12 @@ const KupCalendar = class {
|
|
|
14829
14830
|
this.imageCol = null;
|
|
14830
14831
|
this.startCol = null;
|
|
14831
14832
|
this.styleCol = null;
|
|
14833
|
+
this.formulaOperation = null;
|
|
14834
|
+
this.formulaColumn = null;
|
|
14832
14835
|
this.currentDate = null;
|
|
14833
14836
|
this.customStyle = '';
|
|
14834
14837
|
this.data = null;
|
|
14838
|
+
this.totals = null;
|
|
14835
14839
|
this.calendarColumns = {
|
|
14836
14840
|
[KupCalendarOptions.DATE]: '',
|
|
14837
14841
|
[KupCalendarOptions.DESCR]: '',
|
|
@@ -14893,6 +14897,8 @@ const KupCalendar = class {
|
|
|
14893
14897
|
if (this.calendar) {
|
|
14894
14898
|
this.calendar.destroy();
|
|
14895
14899
|
}
|
|
14900
|
+
// Parse formula if provided
|
|
14901
|
+
this.parseFormula();
|
|
14896
14902
|
if ((_a = this.data) === null || _a === void 0 ? void 0 : _a.columns) {
|
|
14897
14903
|
this.data.columns.forEach((column) => {
|
|
14898
14904
|
for (const key in this.calendarColumns) {
|
|
@@ -14918,6 +14924,9 @@ const KupCalendar = class {
|
|
|
14918
14924
|
}
|
|
14919
14925
|
this.persistState();
|
|
14920
14926
|
},
|
|
14927
|
+
dayCellDidMount: this.formulaOperation
|
|
14928
|
+
? (arg) => this.renderDayCellFormula(arg)
|
|
14929
|
+
: undefined,
|
|
14921
14930
|
dateClick: ({ date }) => {
|
|
14922
14931
|
this.kupCalendarDateClick.emit({
|
|
14923
14932
|
comp: this,
|
|
@@ -15245,6 +15254,108 @@ const KupCalendar = class {
|
|
|
15245
15254
|
this.calendar.updateSize();
|
|
15246
15255
|
}
|
|
15247
15256
|
}
|
|
15257
|
+
parseFormula() {
|
|
15258
|
+
this.formulaOperation = null;
|
|
15259
|
+
this.formulaColumn = null;
|
|
15260
|
+
if (!this.totals) {
|
|
15261
|
+
return;
|
|
15262
|
+
}
|
|
15263
|
+
const formulaRegex = /^(SUM|AVG|COUNT|MAX|MIN)\(([^)]+)\)$/i;
|
|
15264
|
+
const match = this.totals.trim().match(formulaRegex);
|
|
15265
|
+
if (match) {
|
|
15266
|
+
this.formulaOperation = match[1].toUpperCase();
|
|
15267
|
+
this.formulaColumn = match[2].trim();
|
|
15268
|
+
}
|
|
15269
|
+
else {
|
|
15270
|
+
this.kupManager.debug.logMessage(this, `Invalid totals format: ${this.totals}. Expected format: OPERATION(columnName)`, KupDebugCategory.WARNING);
|
|
15271
|
+
}
|
|
15272
|
+
}
|
|
15273
|
+
calculateFormulaForDay(date) {
|
|
15274
|
+
var _a;
|
|
15275
|
+
if (!this.formulaOperation || !this.formulaColumn) {
|
|
15276
|
+
return null;
|
|
15277
|
+
}
|
|
15278
|
+
if (!((_a = this.data) === null || _a === void 0 ? void 0 : _a.rows) || !this.dateCol) {
|
|
15279
|
+
return null;
|
|
15280
|
+
}
|
|
15281
|
+
// Get the date as ISO string (YYYY-MM-DD) for comparison
|
|
15282
|
+
const targetDate = this.kupManager.dates
|
|
15283
|
+
.toDayjs(date)
|
|
15284
|
+
.format('YYYY-MM-DD');
|
|
15285
|
+
// Filter rows for the specific day
|
|
15286
|
+
const dayRows = this.data.rows.filter((row) => {
|
|
15287
|
+
const cell = row.cells[this.dateCol];
|
|
15288
|
+
if (!cell || !cell.value) {
|
|
15289
|
+
return false;
|
|
15290
|
+
}
|
|
15291
|
+
const rowDate = this.kupManager.dates
|
|
15292
|
+
.toDayjs(cell.value)
|
|
15293
|
+
.format('YYYY-MM-DD');
|
|
15294
|
+
return rowDate === targetDate;
|
|
15295
|
+
});
|
|
15296
|
+
if (dayRows.length === 0) {
|
|
15297
|
+
return null;
|
|
15298
|
+
}
|
|
15299
|
+
// For COUNT operation, count all non-null values (numeric or not)
|
|
15300
|
+
if (this.formulaOperation === 'COUNT') {
|
|
15301
|
+
let count = 0;
|
|
15302
|
+
dayRows.forEach((row) => {
|
|
15303
|
+
const cell = row.cells[this.formulaColumn];
|
|
15304
|
+
if (cell && cell.value !== null && cell.value !== undefined) {
|
|
15305
|
+
count++;
|
|
15306
|
+
}
|
|
15307
|
+
});
|
|
15308
|
+
return count > 0 ? count : null;
|
|
15309
|
+
}
|
|
15310
|
+
// For SUM and AVG, extract only numeric values
|
|
15311
|
+
const values = [];
|
|
15312
|
+
dayRows.forEach((row) => {
|
|
15313
|
+
const cell = row.cells[this.formulaColumn];
|
|
15314
|
+
if (cell && cell.value !== null && cell.value !== undefined) {
|
|
15315
|
+
const numValue = parseFloat(cell.value);
|
|
15316
|
+
if (!isNaN(numValue)) {
|
|
15317
|
+
values.push(numValue);
|
|
15318
|
+
}
|
|
15319
|
+
}
|
|
15320
|
+
});
|
|
15321
|
+
if (values.length === 0) {
|
|
15322
|
+
return null;
|
|
15323
|
+
}
|
|
15324
|
+
// Calculate based on operation
|
|
15325
|
+
switch (this.formulaOperation) {
|
|
15326
|
+
case 'SUM':
|
|
15327
|
+
return values.reduce((acc, val) => acc + val, 0);
|
|
15328
|
+
case 'AVG':
|
|
15329
|
+
return (values.reduce((acc, val) => acc + val, 0) / values.length);
|
|
15330
|
+
case 'MAX':
|
|
15331
|
+
return Math.max(...values);
|
|
15332
|
+
case 'MIN':
|
|
15333
|
+
return Math.min(...values);
|
|
15334
|
+
default:
|
|
15335
|
+
return null;
|
|
15336
|
+
}
|
|
15337
|
+
}
|
|
15338
|
+
renderDayCellFormula(arg) {
|
|
15339
|
+
const date = arg.date;
|
|
15340
|
+
const formulaResult = this.calculateFormulaForDay(date);
|
|
15341
|
+
if (formulaResult !== null) {
|
|
15342
|
+
// Find the day frame container
|
|
15343
|
+
const dayFrame = arg.el.querySelector('.fc-daygrid-day-frame');
|
|
15344
|
+
if (dayFrame) {
|
|
15345
|
+
// Create formula result element
|
|
15346
|
+
const resultDiv = document.createElement('div');
|
|
15347
|
+
resultDiv.classList.add('kup-calendar-formula-result');
|
|
15348
|
+
resultDiv.textContent = this.formatFormulaResult(formulaResult);
|
|
15349
|
+
// Append to day frame
|
|
15350
|
+
dayFrame.appendChild(resultDiv);
|
|
15351
|
+
}
|
|
15352
|
+
}
|
|
15353
|
+
}
|
|
15354
|
+
formatFormulaResult(value) {
|
|
15355
|
+
// Use KupManager to format numbers with locale-specific separators
|
|
15356
|
+
const decimals = this.formulaOperation === 'COUNT' ? 0 : 2;
|
|
15357
|
+
return this.kupManager.math.numberToFormattedString(value, decimals, '');
|
|
15358
|
+
}
|
|
15248
15359
|
/*-------------------------------------------------*/
|
|
15249
15360
|
/* L i f e c y c l e H o o k s */
|
|
15250
15361
|
/*-------------------------------------------------*/
|
|
@@ -15269,11 +15380,11 @@ const KupCalendar = class {
|
|
|
15269
15380
|
this.kupManager.debug.logRender(this, true);
|
|
15270
15381
|
}
|
|
15271
15382
|
render() {
|
|
15272
|
-
return (h$1(Host, { key: '
|
|
15383
|
+
return (h$1(Host, { key: '7998e6f8c76632a6703738efa59767e6b2bf04b6' }, h$1("style", { key: '48f322043b150fb757efd18b7b5f2dfbf6fff512' }, this.kupManager.theme.setKupStyle(this.rootElement)), h$1("div", { key: '3db3413823be3d4a49f5ebe3b7c58883f05f608d', id: componentWrapperId }, h$1("div", { key: 'f56ad6c224c581252e12a370a4fcb50ab2abda7c', 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: '443d8e7206c9244c5c5fc2d1584d495d26265c03', class: `navigation__title ${this.hideNavigation
|
|
15273
15384
|
? 'navigation__title--centered'
|
|
15274
15385
|
: ''}`, ref: (el) => {
|
|
15275
15386
|
this.navTitle = el;
|
|
15276
|
-
} }), h$1("div", { key: '
|
|
15387
|
+
} }), h$1("div", { key: '48bc7f6e9fbe40cccea4599ee9df5b9b2b1bfa3c', class: "navigation__right" }, this.enableChangeView ? (h$1(FChip, Object.assign({}, this.setChipProps()))) : null)), h$1("div", { key: '94cee398522dd36799665989b52d4c75fd77ca1d', class: "calendar", ref: (el) => (this.calendarContainer = el) }))));
|
|
15277
15388
|
}
|
|
15278
15389
|
disconnectedCallback() {
|
|
15279
15390
|
if (this.calendar) {
|
|
@@ -15287,7 +15398,8 @@ const KupCalendar = class {
|
|
|
15287
15398
|
get rootElement() { return getElement(this); }
|
|
15288
15399
|
static get watchers() { return {
|
|
15289
15400
|
"data": ["setCalendarData"],
|
|
15290
|
-
"currentDate": ["setCalendarData"]
|
|
15401
|
+
"currentDate": ["setCalendarData"],
|
|
15402
|
+
"totals": ["setCalendarData"]
|
|
15291
15403
|
}; }
|
|
15292
15404
|
};
|
|
15293
15405
|
KupCalendar.style = KupCalendarStyle0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, v as KupCardFamily, aj as getCellValueForDisplay } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, v as KupCardFamily, aj as getCellValueForDisplay } from './kup-manager-408fac87.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
4
|
import './kup-dates-bf500166.js';
|
|
5
5
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, i as FCellPadding, aB as KupCellElementsPosition, g as getProps, s as setProps, Z as KupDragEffect, aC as submitPositionAdapter, b as KupLanguageGeneric, aD as KupCellProps } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, i as FCellPadding, aB as KupCellElementsPosition, g as getProps, s as setProps, Z as KupDragEffect, aC as submitPositionAdapter, b as KupLanguageGeneric, aD as KupCellProps } from './kup-manager-408fac87.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
4
|
import { F as FButton } from './f-button-3e022953.js';
|
|
5
|
-
import { F as FCell } from './f-cell-
|
|
5
|
+
import { F as FCell } from './f-cell-3491806c.js';
|
|
6
6
|
import './kup-dates-bf500166.js';
|
|
7
7
|
import './f-button-declarations-6c8f8abe.js';
|
|
8
8
|
import './f-image-40b4e64b.js';
|
|
9
9
|
import './f-checkbox-9912e1a4.js';
|
|
10
|
-
import './f-chip-
|
|
11
|
-
import './f-object-field-
|
|
12
|
-
import './f-text-field-
|
|
10
|
+
import './f-chip-bd823a3f.js';
|
|
11
|
+
import './f-object-field-89d2049a.js';
|
|
12
|
+
import './f-text-field-3e176c29.js';
|
|
13
13
|
|
|
14
14
|
const kupCellCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:var(--kup-label-01-font-size, 12px);line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-compact-01-font-size, 14px);line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-01-font-size, 14px);line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{display:block;height:fit-content;width:100%}#kup-component{height:fit-content;width:100%}";
|
|
15
15
|
const KupCellStyle0 = kupCellCss;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
2
|
import { F as FButton } from './f-button-3e022953.js';
|
|
3
3
|
import { F as FCheckbox } from './f-checkbox-9912e1a4.js';
|
|
4
|
-
import { F as FTextField } from './f-text-field-
|
|
4
|
+
import { F as FTextField } from './f-text-field-3e176c29.js';
|
|
5
5
|
import { F as FTextFieldMDC } from './f-text-field-mdc-81ce6c7c.js';
|
|
6
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, aE as KupLanguageDashboard, b as KupLanguageGeneric, Z as KupDragEffect, h as KupDebugCategory } from './kup-manager-
|
|
6
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, aE as KupLanguageDashboard, b as KupLanguageGeneric, Z as KupDragEffect, h as KupDebugCategory } from './kup-manager-408fac87.js';
|
|
7
7
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
8
8
|
import './f-button-declarations-6c8f8abe.js';
|
|
9
9
|
import './f-image-40b4e64b.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as Filters, H as getValueForDisplay, D as getValueForDisplay2, aj as getCellValueForDisplay, x as getColumnByName, z as KupObjects, ak as KupData, al as compareCell, O as TotalMode, Q as getRegExpFromString, F as FCellShapes, am as CMBandACPAdapter, an as RADAdapter, ao as CHKAdapter, ap as CHIAdapter, aq as SWTAdapter, a9 as SortMode } from './kup-manager-
|
|
1
|
+
import { E as Filters, H as getValueForDisplay, D as getValueForDisplay2, aj as getCellValueForDisplay, x as getColumnByName, z as KupObjects, ak as KupData, al as compareCell, O as TotalMode, Q as getRegExpFromString, F as FCellShapes, am as CMBandACPAdapter, an as RADAdapter, ao as CHKAdapter, ap as CHIAdapter, aq as SWTAdapter, a9 as SortMode } from './kup-manager-408fac87.js';
|
|
2
2
|
import { K as KupDatesFormats } from './kup-dates-bf500166.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-408fac87.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
4
|
import './kup-dates-bf500166.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement, g as getAssetPath } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, f as KupThemeColorValues, h as KupDebugCategory, x as getColumnByName, p as KupDataNewColumnTypes } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, f as KupThemeColorValues, h as KupDebugCategory, x as getColumnByName, p as KupDataNewColumnTypes } from './kup-manager-408fac87.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
4
|
import './kup-dates-bf500166.js';
|
|
5
5
|
|
|
@@ -84689,7 +84689,7 @@ const KupEchart = class {
|
|
|
84689
84689
|
'--kup_echart_height': this.sizeY ? this.sizeY : '100%',
|
|
84690
84690
|
'--kup_echart_width': this.sizeX ? this.sizeX : '100%',
|
|
84691
84691
|
};
|
|
84692
|
-
return (h(Host, { key: '
|
|
84692
|
+
return (h(Host, { key: 'ee4d5709d66552bb8922d9fb1967ba32185b7051', style: style }, h("style", { key: '9684ebc783c37de3da380a036c5fc6f84016bf3e' }, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '86eab75fec62dd2cd1a205ba6fac8bf91b3f8399', id: componentWrapperId, ref: (chartContainer) => (__classPrivateFieldSet(this, _KupEchart_chartContainer, chartContainer, "f")) })));
|
|
84693
84693
|
}
|
|
84694
84694
|
disconnectedCallback() {
|
|
84695
84695
|
var _a;
|
|
@@ -84778,6 +84778,13 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
84778
84778
|
else if (__classPrivateFieldGet(this, _KupEchart_sortedDataset, "f") && e.seriesType === 'bar') {
|
|
84779
84779
|
row = __classPrivateFieldGet(this, _KupEchart_sortedDataset, "f").rows[e.dataIndex];
|
|
84780
84780
|
}
|
|
84781
|
+
else if (e.seriesType === 'pie') {
|
|
84782
|
+
// Data are grouped than i need to return a right row not obtained by using dataIndex.
|
|
84783
|
+
row = structuredClone(this.data.rows.find((r) => { var _a; return ((_a = r.cells[this.axis]) === null || _a === void 0 ? void 0 : _a.value) === e.name; }));
|
|
84784
|
+
// I need to set the value of the cell related to the series, by using the value calculated
|
|
84785
|
+
// inside #setPieOptions method
|
|
84786
|
+
row.cells[this.series[0]].obj.k = row.cells[this.series[0]].value = e.value.toString();
|
|
84787
|
+
}
|
|
84781
84788
|
else if (!Array.isArray(e.data)) {
|
|
84782
84789
|
row = this.data.rows[e.dataIndex];
|
|
84783
84790
|
}
|
|
@@ -85750,6 +85757,7 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
85750
85757
|
data: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.normalDistribution(values),
|
|
85751
85758
|
label: {
|
|
85752
85759
|
show: this.showMarks,
|
|
85760
|
+
formatter: (params) => __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_formatTooltipValue).call(this, params.value),
|
|
85753
85761
|
},
|
|
85754
85762
|
name: key,
|
|
85755
85763
|
showSymbol: false,
|
|
@@ -85765,6 +85773,7 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
85765
85773
|
data: values,
|
|
85766
85774
|
label: {
|
|
85767
85775
|
show: this.showMarks,
|
|
85776
|
+
formatter: (params) => __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_formatTooltipValue).call(this, params.value),
|
|
85768
85777
|
},
|
|
85769
85778
|
name: key,
|
|
85770
85779
|
stack: this.stacked ? 'total' : undefined,
|
|
@@ -85777,6 +85786,7 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
85777
85786
|
data: values,
|
|
85778
85787
|
label: {
|
|
85779
85788
|
show: this.showMarks,
|
|
85789
|
+
formatter: (params) => __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_formatTooltipValue).call(this, params.value),
|
|
85780
85790
|
},
|
|
85781
85791
|
name: key,
|
|
85782
85792
|
type: 'scatter',
|
|
@@ -85789,6 +85799,7 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
85789
85799
|
data: values.map((value) => __classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.numberifySafe(value)),
|
|
85790
85800
|
label: {
|
|
85791
85801
|
show: this.showMarks,
|
|
85802
|
+
formatter: (params) => __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_formatTooltipValue).call(this, params.value),
|
|
85792
85803
|
},
|
|
85793
85804
|
name: key,
|
|
85794
85805
|
type: 'line',
|
|
@@ -85897,14 +85908,14 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
85897
85908
|
*/
|
|
85898
85909
|
const renamedSeries = series.map((s) => (Object.assign(Object.assign({}, s), { name: this.data.columns.find((col) => col.name === s.name).title })));
|
|
85899
85910
|
const yAxis = (multipleYAxes === null || multipleYAxes === void 0 ? void 0 : multipleYAxes.length) === renamedSeries.length
|
|
85900
|
-
? Array.from({ length: renamedSeries.length }, (_el, i) => (Object.assign(Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { data: isHorizontal ? x : undefined, type: isHorizontal ? 'category' : 'value', axisLabel: {
|
|
85901
|
-
|
|
85902
|
-
|
|
85911
|
+
? Array.from({ length: renamedSeries.length }, (_el, i) => (Object.assign(Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { data: isHorizontal ? x : undefined, type: isHorizontal ? 'category' : 'value', axisLabel: Object.assign({}, (isHorizontal
|
|
85912
|
+
? {}
|
|
85913
|
+
: { formatter: axisLabelFormatter })), min: this.axisYMin, max: this.axisYMax, offset: Math.floor(i / 2) * 60 }), this.yAxis), { splitLine: i === 0
|
|
85903
85914
|
? __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this).splitLine
|
|
85904
85915
|
: { show: false } })))
|
|
85905
|
-
: Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { data: isHorizontal ? x : undefined, type: isHorizontal ? 'category' : 'value', axisLabel: {
|
|
85906
|
-
|
|
85907
|
-
|
|
85916
|
+
: Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { data: isHorizontal ? x : undefined, type: isHorizontal ? 'category' : 'value', axisLabel: Object.assign({}, (isHorizontal
|
|
85917
|
+
? {}
|
|
85918
|
+
: { formatter: axisLabelFormatter })), min: this.axisYMin, max: this.axisYMax }), this.yAxis);
|
|
85908
85919
|
return {
|
|
85909
85920
|
color,
|
|
85910
85921
|
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
@@ -85913,7 +85924,9 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
85913
85924
|
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: (params) => {
|
|
85914
85925
|
return `<b>${params.name}</b><br/>${params.seriesName}: <b>${__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_formatTooltipValue).call(this, params.value)}</b>`;
|
|
85915
85926
|
} }),
|
|
85916
|
-
xAxis: Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { data: isHorizontal ? undefined : x, type: isHorizontal ? 'value' : 'category', axisLabel: Object.assign({
|
|
85927
|
+
xAxis: Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { data: isHorizontal ? undefined : x, type: isHorizontal ? 'value' : 'category', axisLabel: Object.assign(Object.assign({}, (isHorizontal
|
|
85928
|
+
? { formatter: axisLabelFormatter }
|
|
85929
|
+
: {})), __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_buildResponsiveAxisLabel).call(this, x)) }), this.xAxis),
|
|
85917
85930
|
yAxis,
|
|
85918
85931
|
grid: { show: true, containLabel: true },
|
|
85919
85932
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-408fac87.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
4
|
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './kup-dates-bf500166.js';
|
|
5
5
|
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host
|
|
|
2
2
|
import { F as FButton } from './f-button-3e022953.js';
|
|
3
3
|
import { a as FButtonStyling } from './f-button-declarations-6c8f8abe.js';
|
|
4
4
|
import { F as FImage } from './f-image-40b4e64b.js';
|
|
5
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, b as KupLanguageGeneric, W as KupPointerEventTypes } from './kup-manager-
|
|
5
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, b as KupLanguageGeneric, W as KupPointerEventTypes } from './kup-manager-408fac87.js';
|
|
6
6
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
7
7
|
import './kup-dates-bf500166.js';
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, h as KupDebugCategory } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, h as KupDebugCategory } from './kup-manager-408fac87.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
4
|
import './kup-dates-bf500166.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, F as Fragment, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, b as KupLanguageGeneric } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, b as KupLanguageGeneric } from './kup-manager-408fac87.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
4
|
import './kup-dates-bf500166.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, h as KupDebugCategory } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, h as KupDebugCategory } from './kup-manager-408fac87.js';
|
|
3
3
|
import './kup-dates-bf500166.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
2
|
import { F as FButton } from './f-button-3e022953.js';
|
|
3
|
-
import { F as FCell, e as FLabel } from './f-cell-
|
|
4
|
-
import { F as FCellShapes, k as kupManagerInstance, ae as FCellTypes, g as getProps, s as setProps, b as KupLanguageGeneric, aj as getCellValueForDisplay, a8 as UseAsValue, ap as CHIAdapter, am as CMBandACPAdapter, ao as CHKAdapter, an as RADAdapter, aq as SWTAdapter, h as KupDebugCategory, W as KupPointerEventTypes } from './kup-manager-
|
|
3
|
+
import { F as FCell, e as FLabel } from './f-cell-3491806c.js';
|
|
4
|
+
import { F as FCellShapes, k as kupManagerInstance, ae as FCellTypes, g as getProps, s as setProps, b as KupLanguageGeneric, aj as getCellValueForDisplay, a8 as UseAsValue, ap as CHIAdapter, am as CMBandACPAdapter, ao as CHKAdapter, an as RADAdapter, aq as SWTAdapter, h as KupDebugCategory, W as KupPointerEventTypes } from './kup-manager-408fac87.js';
|
|
5
5
|
import { F as FTextFieldMDC } from './f-text-field-mdc-81ce6c7c.js';
|
|
6
6
|
import { F as FTypography, a as FTypographyType } from './f-typography-8c914ec6.js';
|
|
7
7
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
8
8
|
import './f-button-declarations-6c8f8abe.js';
|
|
9
9
|
import './f-image-40b4e64b.js';
|
|
10
10
|
import './f-checkbox-9912e1a4.js';
|
|
11
|
-
import './f-chip-
|
|
12
|
-
import './f-object-field-
|
|
13
|
-
import './f-text-field-
|
|
11
|
+
import './f-chip-bd823a3f.js';
|
|
12
|
+
import './f-object-field-89d2049a.js';
|
|
13
|
+
import './f-text-field-3e176c29.js';
|
|
14
14
|
import './kup-dates-bf500166.js';
|
|
15
15
|
import './component-a35bc7f1.js';
|
|
16
16
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps } from './kup-manager-408fac87.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
4
|
import './kup-dates-bf500166.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, b as KupLanguageGeneric, h as KupDebugCategory, aF as kupDropEvent, X as kupDraggableColumnAttr, aG as kupDraggableRowAttr, $ as KupDropEventTypes, f as KupThemeColorValues } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, b as KupLanguageGeneric, h as KupDebugCategory, aF as kupDropEvent, X as kupDraggableColumnAttr, aG as kupDraggableRowAttr, $ as KupDropEventTypes, f as KupThemeColorValues } from './kup-manager-408fac87.js';
|
|
3
3
|
import { a as FButtonStyling } from './f-button-declarations-6c8f8abe.js';
|
|
4
4
|
import { F as FImage } from './f-image-40b4e64b.js';
|
|
5
5
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|