@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
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index$4 = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-3ab94bba.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
const fButton = require('./f-button-9aca7812.js');
|
|
9
|
-
const fChip = require('./f-chip-
|
|
9
|
+
const fChip = require('./f-chip-b4db804b.js');
|
|
10
10
|
const kupDates = require('./kup-dates-2ff08e4f.js');
|
|
11
11
|
require('./f-button-declarations-76ef9f87.js');
|
|
12
12
|
require('./f-image-5a33fd05.js');
|
|
@@ -14772,6 +14772,7 @@ var KupCalendarProps;
|
|
|
14772
14772
|
KupCalendarProps["currentDate"] = "Sets the date of the calendar. Must be in ISO format (YYYY-MM-DD).";
|
|
14773
14773
|
KupCalendarProps["customStyle"] = "Custom style of the component.";
|
|
14774
14774
|
KupCalendarProps["data"] = "Actual data of the calendar.";
|
|
14775
|
+
KupCalendarProps["totals"] = "Formula to calculate and display totals on each cell. Format: OPERATION(columnName) where OPERATION is SUM, AVG, COUNT, MAX, or MIN.";
|
|
14775
14776
|
KupCalendarProps["editableEvents"] = "When true, events are editable.";
|
|
14776
14777
|
KupCalendarProps["hideNavigation"] = "When disabled, the navigation toolbar won't be displayed.";
|
|
14777
14778
|
KupCalendarProps["viewType"] = "Type of the view.";
|
|
@@ -14807,7 +14808,7 @@ class KupCalendarState {
|
|
|
14807
14808
|
}
|
|
14808
14809
|
}
|
|
14809
14810
|
|
|
14810
|
-
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}}";
|
|
14811
|
+
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}}";
|
|
14811
14812
|
const KupCalendarStyle0 = kupCalendarCss;
|
|
14812
14813
|
|
|
14813
14814
|
const KupCalendar = class {
|
|
@@ -14833,9 +14834,12 @@ const KupCalendar = class {
|
|
|
14833
14834
|
this.imageCol = null;
|
|
14834
14835
|
this.startCol = null;
|
|
14835
14836
|
this.styleCol = null;
|
|
14837
|
+
this.formulaOperation = null;
|
|
14838
|
+
this.formulaColumn = null;
|
|
14836
14839
|
this.currentDate = null;
|
|
14837
14840
|
this.customStyle = '';
|
|
14838
14841
|
this.data = null;
|
|
14842
|
+
this.totals = null;
|
|
14839
14843
|
this.calendarColumns = {
|
|
14840
14844
|
[KupCalendarOptions.DATE]: '',
|
|
14841
14845
|
[KupCalendarOptions.DESCR]: '',
|
|
@@ -14897,6 +14901,8 @@ const KupCalendar = class {
|
|
|
14897
14901
|
if (this.calendar) {
|
|
14898
14902
|
this.calendar.destroy();
|
|
14899
14903
|
}
|
|
14904
|
+
// Parse formula if provided
|
|
14905
|
+
this.parseFormula();
|
|
14900
14906
|
if ((_a = this.data) === null || _a === void 0 ? void 0 : _a.columns) {
|
|
14901
14907
|
this.data.columns.forEach((column) => {
|
|
14902
14908
|
for (const key in this.calendarColumns) {
|
|
@@ -14922,6 +14928,9 @@ const KupCalendar = class {
|
|
|
14922
14928
|
}
|
|
14923
14929
|
this.persistState();
|
|
14924
14930
|
},
|
|
14931
|
+
dayCellDidMount: this.formulaOperation
|
|
14932
|
+
? (arg) => this.renderDayCellFormula(arg)
|
|
14933
|
+
: undefined,
|
|
14925
14934
|
dateClick: ({ date }) => {
|
|
14926
14935
|
this.kupCalendarDateClick.emit({
|
|
14927
14936
|
comp: this,
|
|
@@ -15249,6 +15258,108 @@ const KupCalendar = class {
|
|
|
15249
15258
|
this.calendar.updateSize();
|
|
15250
15259
|
}
|
|
15251
15260
|
}
|
|
15261
|
+
parseFormula() {
|
|
15262
|
+
this.formulaOperation = null;
|
|
15263
|
+
this.formulaColumn = null;
|
|
15264
|
+
if (!this.totals) {
|
|
15265
|
+
return;
|
|
15266
|
+
}
|
|
15267
|
+
const formulaRegex = /^(SUM|AVG|COUNT|MAX|MIN)\(([^)]+)\)$/i;
|
|
15268
|
+
const match = this.totals.trim().match(formulaRegex);
|
|
15269
|
+
if (match) {
|
|
15270
|
+
this.formulaOperation = match[1].toUpperCase();
|
|
15271
|
+
this.formulaColumn = match[2].trim();
|
|
15272
|
+
}
|
|
15273
|
+
else {
|
|
15274
|
+
this.kupManager.debug.logMessage(this, `Invalid totals format: ${this.totals}. Expected format: OPERATION(columnName)`, kupManager.KupDebugCategory.WARNING);
|
|
15275
|
+
}
|
|
15276
|
+
}
|
|
15277
|
+
calculateFormulaForDay(date) {
|
|
15278
|
+
var _a;
|
|
15279
|
+
if (!this.formulaOperation || !this.formulaColumn) {
|
|
15280
|
+
return null;
|
|
15281
|
+
}
|
|
15282
|
+
if (!((_a = this.data) === null || _a === void 0 ? void 0 : _a.rows) || !this.dateCol) {
|
|
15283
|
+
return null;
|
|
15284
|
+
}
|
|
15285
|
+
// Get the date as ISO string (YYYY-MM-DD) for comparison
|
|
15286
|
+
const targetDate = this.kupManager.dates
|
|
15287
|
+
.toDayjs(date)
|
|
15288
|
+
.format('YYYY-MM-DD');
|
|
15289
|
+
// Filter rows for the specific day
|
|
15290
|
+
const dayRows = this.data.rows.filter((row) => {
|
|
15291
|
+
const cell = row.cells[this.dateCol];
|
|
15292
|
+
if (!cell || !cell.value) {
|
|
15293
|
+
return false;
|
|
15294
|
+
}
|
|
15295
|
+
const rowDate = this.kupManager.dates
|
|
15296
|
+
.toDayjs(cell.value)
|
|
15297
|
+
.format('YYYY-MM-DD');
|
|
15298
|
+
return rowDate === targetDate;
|
|
15299
|
+
});
|
|
15300
|
+
if (dayRows.length === 0) {
|
|
15301
|
+
return null;
|
|
15302
|
+
}
|
|
15303
|
+
// For COUNT operation, count all non-null values (numeric or not)
|
|
15304
|
+
if (this.formulaOperation === 'COUNT') {
|
|
15305
|
+
let count = 0;
|
|
15306
|
+
dayRows.forEach((row) => {
|
|
15307
|
+
const cell = row.cells[this.formulaColumn];
|
|
15308
|
+
if (cell && cell.value !== null && cell.value !== undefined) {
|
|
15309
|
+
count++;
|
|
15310
|
+
}
|
|
15311
|
+
});
|
|
15312
|
+
return count > 0 ? count : null;
|
|
15313
|
+
}
|
|
15314
|
+
// For SUM and AVG, extract only numeric values
|
|
15315
|
+
const values = [];
|
|
15316
|
+
dayRows.forEach((row) => {
|
|
15317
|
+
const cell = row.cells[this.formulaColumn];
|
|
15318
|
+
if (cell && cell.value !== null && cell.value !== undefined) {
|
|
15319
|
+
const numValue = parseFloat(cell.value);
|
|
15320
|
+
if (!isNaN(numValue)) {
|
|
15321
|
+
values.push(numValue);
|
|
15322
|
+
}
|
|
15323
|
+
}
|
|
15324
|
+
});
|
|
15325
|
+
if (values.length === 0) {
|
|
15326
|
+
return null;
|
|
15327
|
+
}
|
|
15328
|
+
// Calculate based on operation
|
|
15329
|
+
switch (this.formulaOperation) {
|
|
15330
|
+
case 'SUM':
|
|
15331
|
+
return values.reduce((acc, val) => acc + val, 0);
|
|
15332
|
+
case 'AVG':
|
|
15333
|
+
return (values.reduce((acc, val) => acc + val, 0) / values.length);
|
|
15334
|
+
case 'MAX':
|
|
15335
|
+
return Math.max(...values);
|
|
15336
|
+
case 'MIN':
|
|
15337
|
+
return Math.min(...values);
|
|
15338
|
+
default:
|
|
15339
|
+
return null;
|
|
15340
|
+
}
|
|
15341
|
+
}
|
|
15342
|
+
renderDayCellFormula(arg) {
|
|
15343
|
+
const date = arg.date;
|
|
15344
|
+
const formulaResult = this.calculateFormulaForDay(date);
|
|
15345
|
+
if (formulaResult !== null) {
|
|
15346
|
+
// Find the day frame container
|
|
15347
|
+
const dayFrame = arg.el.querySelector('.fc-daygrid-day-frame');
|
|
15348
|
+
if (dayFrame) {
|
|
15349
|
+
// Create formula result element
|
|
15350
|
+
const resultDiv = document.createElement('div');
|
|
15351
|
+
resultDiv.classList.add('kup-calendar-formula-result');
|
|
15352
|
+
resultDiv.textContent = this.formatFormulaResult(formulaResult);
|
|
15353
|
+
// Append to day frame
|
|
15354
|
+
dayFrame.appendChild(resultDiv);
|
|
15355
|
+
}
|
|
15356
|
+
}
|
|
15357
|
+
}
|
|
15358
|
+
formatFormulaResult(value) {
|
|
15359
|
+
// Use KupManager to format numbers with locale-specific separators
|
|
15360
|
+
const decimals = this.formulaOperation === 'COUNT' ? 0 : 2;
|
|
15361
|
+
return this.kupManager.math.numberToFormattedString(value, decimals, '');
|
|
15362
|
+
}
|
|
15252
15363
|
/*-------------------------------------------------*/
|
|
15253
15364
|
/* L i f e c y c l e H o o k s */
|
|
15254
15365
|
/*-------------------------------------------------*/
|
|
@@ -15273,11 +15384,11 @@ const KupCalendar = class {
|
|
|
15273
15384
|
this.kupManager.debug.logRender(this, true);
|
|
15274
15385
|
}
|
|
15275
15386
|
render() {
|
|
15276
|
-
return (index$4.h(index$4.Host, { key: '
|
|
15387
|
+
return (index$4.h(index$4.Host, { key: '7998e6f8c76632a6703738efa59767e6b2bf04b6' }, index$4.h("style", { key: '48f322043b150fb757efd18b7b5f2dfbf6fff512' }, this.kupManager.theme.setKupStyle(this.rootElement)), index$4.h("div", { key: '3db3413823be3d4a49f5ebe3b7c58883f05f608d', id: GenericVariables.componentWrapperId }, index$4.h("div", { key: 'f56ad6c224c581252e12a370a4fcb50ab2abda7c', class: "navigation" }, !this.hideNavigation ? (index$4.h("div", { class: "navigation__left" }, index$4.h(fButton.FButton, { icon: "chevron_left", onClick: () => this.onPrev(), title: this.kupManager.language.translate(kupManager.KupLanguageGeneric.PREVIOUS), wrapperClass: "navigation__prev" }), index$4.h(fButton.FButton, { icon: "calendar", onClick: () => this.onToday(), title: this.kupManager.language.translate(kupManager.KupLanguageGeneric.TODAY), wrapperClass: "navigation__today" }), index$4.h(fButton.FButton, { icon: "chevron_right", onClick: () => this.onNext(), title: this.kupManager.language.translate(kupManager.KupLanguageGeneric.NEXT), wrapperClass: "navigation__next" }))) : null, index$4.h("div", { key: '443d8e7206c9244c5c5fc2d1584d495d26265c03', class: `navigation__title ${this.hideNavigation
|
|
15277
15388
|
? 'navigation__title--centered'
|
|
15278
15389
|
: ''}`, ref: (el) => {
|
|
15279
15390
|
this.navTitle = el;
|
|
15280
|
-
} }), index$4.h("div", { key: '
|
|
15391
|
+
} }), index$4.h("div", { key: '48bc7f6e9fbe40cccea4599ee9df5b9b2b1bfa3c', class: "navigation__right" }, this.enableChangeView ? (index$4.h(fChip.FChip, Object.assign({}, this.setChipProps()))) : null)), index$4.h("div", { key: '94cee398522dd36799665989b52d4c75fd77ca1d', class: "calendar", ref: (el) => (this.calendarContainer = el) }))));
|
|
15281
15392
|
}
|
|
15282
15393
|
disconnectedCallback() {
|
|
15283
15394
|
if (this.calendar) {
|
|
@@ -15291,7 +15402,8 @@ const KupCalendar = class {
|
|
|
15291
15402
|
get rootElement() { return index$4.getElement(this); }
|
|
15292
15403
|
static get watchers() { return {
|
|
15293
15404
|
"data": ["setCalendarData"],
|
|
15294
|
-
"currentDate": ["setCalendarData"]
|
|
15405
|
+
"currentDate": ["setCalendarData"],
|
|
15406
|
+
"totals": ["setCalendarData"]
|
|
15295
15407
|
}; }
|
|
15296
15408
|
};
|
|
15297
15409
|
KupCalendar.style = KupCalendarStyle0;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-3ab94bba.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-2ff08e4f.js');
|
|
9
9
|
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-3ab94bba.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
const fButton = require('./f-button-9aca7812.js');
|
|
9
|
-
const fCell = require('./f-cell-
|
|
9
|
+
const fCell = require('./f-cell-05f3233c.js');
|
|
10
10
|
require('./kup-dates-2ff08e4f.js');
|
|
11
11
|
require('./f-button-declarations-76ef9f87.js');
|
|
12
12
|
require('./f-image-5a33fd05.js');
|
|
13
13
|
require('./f-checkbox-a3461c4d.js');
|
|
14
|
-
require('./f-chip-
|
|
15
|
-
require('./f-object-field-
|
|
16
|
-
require('./f-text-field-
|
|
14
|
+
require('./f-chip-b4db804b.js');
|
|
15
|
+
require('./f-object-field-8dd8fc0e.js');
|
|
16
|
+
require('./f-text-field-e780da48.js');
|
|
17
17
|
|
|
18
18
|
const kupCellCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:var(--kup-label-01-font-size, 12px);line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-compact-01-font-size, 14px);line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:var(--kup-heading-01-font-size, 14px);line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{display:block;height:fit-content;width:100%}#kup-component{height:fit-content;width:100%}";
|
|
19
19
|
const KupCellStyle0 = kupCellCss;
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
6
|
const fButton = require('./f-button-9aca7812.js');
|
|
7
7
|
const fCheckbox = require('./f-checkbox-a3461c4d.js');
|
|
8
|
-
const fTextField = require('./f-text-field-
|
|
8
|
+
const fTextField = require('./f-text-field-e780da48.js');
|
|
9
9
|
const fTextFieldMdc = require('./f-text-field-mdc-29aae9c9.js');
|
|
10
|
-
const kupManager = require('./kup-manager-
|
|
10
|
+
const kupManager = require('./kup-manager-3ab94bba.js');
|
|
11
11
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
12
12
|
require('./f-button-declarations-76ef9f87.js');
|
|
13
13
|
require('./f-image-5a33fd05.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-3ab94bba.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-2ff08e4f.js');
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-3ab94bba.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-2ff08e4f.js');
|
|
9
9
|
|
|
@@ -84693,7 +84693,7 @@ const KupEchart = class {
|
|
|
84693
84693
|
'--kup_echart_height': this.sizeY ? this.sizeY : '100%',
|
|
84694
84694
|
'--kup_echart_width': this.sizeX ? this.sizeX : '100%',
|
|
84695
84695
|
};
|
|
84696
|
-
return (index.h(index.Host, { key: '
|
|
84696
|
+
return (index.h(index.Host, { key: 'ee4d5709d66552bb8922d9fb1967ba32185b7051', style: style }, index.h("style", { key: '9684ebc783c37de3da380a036c5fc6f84016bf3e' }, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: '86eab75fec62dd2cd1a205ba6fac8bf91b3f8399', id: GenericVariables.componentWrapperId, ref: (chartContainer) => (__classPrivateFieldSet(this, _KupEchart_chartContainer, chartContainer, "f")) })));
|
|
84697
84697
|
}
|
|
84698
84698
|
disconnectedCallback() {
|
|
84699
84699
|
var _a;
|
|
@@ -84782,6 +84782,13 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
84782
84782
|
else if (__classPrivateFieldGet(this, _KupEchart_sortedDataset, "f") && e.seriesType === 'bar') {
|
|
84783
84783
|
row = __classPrivateFieldGet(this, _KupEchart_sortedDataset, "f").rows[e.dataIndex];
|
|
84784
84784
|
}
|
|
84785
|
+
else if (e.seriesType === 'pie') {
|
|
84786
|
+
// Data are grouped than i need to return a right row not obtained by using dataIndex.
|
|
84787
|
+
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; }));
|
|
84788
|
+
// I need to set the value of the cell related to the series, by using the value calculated
|
|
84789
|
+
// inside #setPieOptions method
|
|
84790
|
+
row.cells[this.series[0]].obj.k = row.cells[this.series[0]].value = e.value.toString();
|
|
84791
|
+
}
|
|
84785
84792
|
else if (!Array.isArray(e.data)) {
|
|
84786
84793
|
row = this.data.rows[e.dataIndex];
|
|
84787
84794
|
}
|
|
@@ -85754,6 +85761,7 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
85754
85761
|
data: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.normalDistribution(values),
|
|
85755
85762
|
label: {
|
|
85756
85763
|
show: this.showMarks,
|
|
85764
|
+
formatter: (params) => __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_formatTooltipValue).call(this, params.value),
|
|
85757
85765
|
},
|
|
85758
85766
|
name: key,
|
|
85759
85767
|
showSymbol: false,
|
|
@@ -85769,6 +85777,7 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
85769
85777
|
data: values,
|
|
85770
85778
|
label: {
|
|
85771
85779
|
show: this.showMarks,
|
|
85780
|
+
formatter: (params) => __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_formatTooltipValue).call(this, params.value),
|
|
85772
85781
|
},
|
|
85773
85782
|
name: key,
|
|
85774
85783
|
stack: this.stacked ? 'total' : undefined,
|
|
@@ -85781,6 +85790,7 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
85781
85790
|
data: values,
|
|
85782
85791
|
label: {
|
|
85783
85792
|
show: this.showMarks,
|
|
85793
|
+
formatter: (params) => __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_formatTooltipValue).call(this, params.value),
|
|
85784
85794
|
},
|
|
85785
85795
|
name: key,
|
|
85786
85796
|
type: 'scatter',
|
|
@@ -85793,6 +85803,7 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
85793
85803
|
data: values.map((value) => __classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.numberifySafe(value)),
|
|
85794
85804
|
label: {
|
|
85795
85805
|
show: this.showMarks,
|
|
85806
|
+
formatter: (params) => __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_formatTooltipValue).call(this, params.value),
|
|
85796
85807
|
},
|
|
85797
85808
|
name: key,
|
|
85798
85809
|
type: 'line',
|
|
@@ -85901,14 +85912,14 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
85901
85912
|
*/
|
|
85902
85913
|
const renamedSeries = series.map((s) => (Object.assign(Object.assign({}, s), { name: this.data.columns.find((col) => col.name === s.name).title })));
|
|
85903
85914
|
const yAxis = (multipleYAxes === null || multipleYAxes === void 0 ? void 0 : multipleYAxes.length) === renamedSeries.length
|
|
85904
|
-
? 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: {
|
|
85905
|
-
|
|
85906
|
-
|
|
85915
|
+
? 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
|
|
85916
|
+
? {}
|
|
85917
|
+
: { formatter: axisLabelFormatter })), min: this.axisYMin, max: this.axisYMax, offset: Math.floor(i / 2) * 60 }), this.yAxis), { splitLine: i === 0
|
|
85907
85918
|
? __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this).splitLine
|
|
85908
85919
|
: { show: false } })))
|
|
85909
|
-
: Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { data: isHorizontal ? x : undefined, type: isHorizontal ? 'category' : 'value', axisLabel: {
|
|
85910
|
-
|
|
85911
|
-
|
|
85920
|
+
: 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
|
|
85921
|
+
? {}
|
|
85922
|
+
: { formatter: axisLabelFormatter })), min: this.axisYMin, max: this.axisYMax }), this.yAxis);
|
|
85912
85923
|
return {
|
|
85913
85924
|
color,
|
|
85914
85925
|
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
@@ -85917,7 +85928,9 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
85917
85928
|
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: (params) => {
|
|
85918
85929
|
return `<b>${params.name}</b><br/>${params.seriesName}: <b>${__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_formatTooltipValue).call(this, params.value)}</b>`;
|
|
85919
85930
|
} }),
|
|
85920
|
-
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({
|
|
85931
|
+
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
|
|
85932
|
+
? { formatter: axisLabelFormatter }
|
|
85933
|
+
: {})), __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_buildResponsiveAxisLabel).call(this, x)) }), this.xAxis),
|
|
85921
85934
|
yAxis,
|
|
85922
85935
|
grid: { show: true, containLabel: true },
|
|
85923
85936
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-3ab94bba.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
const kupDates = require('./kup-dates-2ff08e4f.js');
|
|
9
9
|
|
|
@@ -6,7 +6,7 @@ const index = require('./index-c7d441d8.js');
|
|
|
6
6
|
const fButton = require('./f-button-9aca7812.js');
|
|
7
7
|
const fButtonDeclarations = require('./f-button-declarations-76ef9f87.js');
|
|
8
8
|
const fImage = require('./f-image-5a33fd05.js');
|
|
9
|
-
const kupManager = require('./kup-manager-
|
|
9
|
+
const kupManager = require('./kup-manager-3ab94bba.js');
|
|
10
10
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
11
11
|
require('./kup-dates-2ff08e4f.js');
|
|
12
12
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-3ab94bba.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-2ff08e4f.js');
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-3ab94bba.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-2ff08e4f.js');
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-3ab94bba.js');
|
|
7
7
|
require('./kup-dates-2ff08e4f.js');
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -4,17 +4,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
6
|
const fButton = require('./f-button-9aca7812.js');
|
|
7
|
-
const fCell = require('./f-cell-
|
|
8
|
-
const kupManager = require('./kup-manager-
|
|
7
|
+
const fCell = require('./f-cell-05f3233c.js');
|
|
8
|
+
const kupManager = require('./kup-manager-3ab94bba.js');
|
|
9
9
|
const fTextFieldMdc = require('./f-text-field-mdc-29aae9c9.js');
|
|
10
10
|
const fTypography = require('./f-typography-85d8238a.js');
|
|
11
11
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
12
12
|
require('./f-button-declarations-76ef9f87.js');
|
|
13
13
|
require('./f-image-5a33fd05.js');
|
|
14
14
|
require('./f-checkbox-a3461c4d.js');
|
|
15
|
-
require('./f-chip-
|
|
16
|
-
require('./f-object-field-
|
|
17
|
-
require('./f-text-field-
|
|
15
|
+
require('./f-chip-b4db804b.js');
|
|
16
|
+
require('./f-object-field-8dd8fc0e.js');
|
|
17
|
+
require('./f-text-field-e780da48.js');
|
|
18
18
|
require('./kup-dates-2ff08e4f.js');
|
|
19
19
|
require('./component-a6dd6c14.js');
|
|
20
20
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-3ab94bba.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-2ff08e4f.js');
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c7d441d8.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-3ab94bba.js');
|
|
7
7
|
const fButtonDeclarations = require('./f-button-declarations-76ef9f87.js');
|
|
8
8
|
const fImage = require('./f-image-5a33fd05.js');
|
|
9
9
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|