@sme.up/ketchup 11.0.0-SNAPSHOT-20241017090851 → 11.0.0-SNAPSHOT-20241017151034
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/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +1 -1
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +6 -6
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js.map +1 -1
- package/dist/cjs/kup-box.cjs.entry.js +1 -1
- package/dist/cjs/kup-calendar.cjs.entry.js +26 -25
- package/dist/cjs/kup-calendar.cjs.entry.js.map +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +43 -3
- package/dist/cjs/kup-cell.cjs.entry.js.map +1 -1
- package/dist/cjs/{kup-data-table-helper-cf31cb4e.js → kup-data-table-helper-52444d44.js} +2 -2
- package/dist/cjs/{kup-data-table-helper-cf31cb4e.js.map → kup-data-table-helper-52444d44.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/calendar.js +30 -29
- package/dist/collection/components/kup-calendar/kup-calendar-declarations.js.map +1 -1
- package/dist/collection/components/kup-calendar/kup-calendar.js +51 -25
- package/dist/collection/components/kup-calendar/kup-calendar.js.map +1 -1
- package/dist/collection/components/kup-tree/kup-tree-declarations.js +1 -1
- package/dist/collection/components/kup-tree/kup-tree-declarations.js.map +1 -1
- package/dist/collection/components/kup-tree/kup-tree.js +5 -5
- package/dist/collection/components/kup-tree/kup-tree.js.map +1 -1
- package/dist/collection/f-components/f-cell-options.tsx/f-cell-options.js +42 -4
- package/dist/collection/f-components/f-cell-options.tsx/f-cell-options.js.map +1 -1
- package/dist/components/kup-autocomplete2.js +6 -6
- package/dist/components/kup-autocomplete2.js.map +1 -1
- package/dist/components/kup-calendar.js +27 -25
- package/dist/components/kup-calendar.js.map +1 -1
- package/dist/components/kup-cell.js +44 -4
- package/dist/components/kup-cell.js.map +1 -1
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-activity-timeline.entry.js +1 -1
- package/dist/esm/kup-autocomplete_27.entry.js +6 -6
- package/dist/esm/kup-autocomplete_27.entry.js.map +1 -1
- package/dist/esm/kup-box.entry.js +1 -1
- package/dist/esm/kup-calendar.entry.js +26 -25
- package/dist/esm/kup-calendar.entry.js.map +1 -1
- package/dist/esm/kup-cell.entry.js +44 -4
- package/dist/esm/kup-cell.entry.js.map +1 -1
- package/dist/esm/{kup-data-table-helper-6b828446.js → kup-data-table-helper-74b29c0e.js} +2 -2
- package/dist/esm/{kup-data-table-helper-6b828446.js.map → kup-data-table-helper-74b29c0e.js.map} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js.map +1 -1
- package/dist/ketchup/{p-556618b0.entry.js → p-1b4dda8d.entry.js} +2 -2
- package/dist/ketchup/{p-f57c4edf.entry.js → p-40b3c165.entry.js} +3 -3
- package/dist/ketchup/{p-f57c4edf.entry.js.map → p-40b3c165.entry.js.map} +1 -1
- package/dist/ketchup/{p-35802f68.entry.js → p-6f138b8c.entry.js} +2 -2
- package/dist/ketchup/{p-c8ec502a.entry.js → p-aadfd358.entry.js} +2 -2
- package/dist/ketchup/p-aadfd358.entry.js.map +1 -0
- package/dist/ketchup/{p-454b6065.js → p-e9aaa7d5.js} +2 -2
- package/dist/ketchup/p-e9aaa7d5.js.map +1 -0
- package/dist/ketchup/p-f0f42ad4.entry.js +2 -0
- package/dist/ketchup/p-f0f42ad4.entry.js.map +1 -0
- package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +5 -5
- package/dist/types/components/kup-calendar/kup-calendar.d.ts +6 -1
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +3 -3
- package/dist/types/components.d.ts +12 -2
- package/package.json +1 -1
- package/dist/ketchup/p-454b6065.js.map +0 -1
- package/dist/ketchup/p-c8ec502a.entry.js.map +0 -1
- package/dist/ketchup/p-deea2b0f.entry.js +0 -2
- package/dist/ketchup/p-deea2b0f.entry.js.map +0 -1
- /package/dist/ketchup/{p-556618b0.entry.js.map → p-1b4dda8d.entry.js.map} +0 -0
- /package/dist/ketchup/{p-35802f68.entry.js.map → p-6f138b8c.entry.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-191ee7cb.js';
|
|
2
2
|
import { k as kupManagerInstance, y as identify, g as getProps, s as setProps, a1 as SortMode, v as getColumnByName, h as KupLanguageGeneric, b as KupThemeIconValues, e as KupDebugCategory, N as KupPointerEventTypes, R as KupDragEffect, ar as kupDraggableAttr, V as KupDropEventTypes, E as KupLanguageSearch } from './kup-manager-84ac466d.js';
|
|
3
|
-
import { f as filterRows, p as paginateRows, s as sortRows } from './kup-data-table-helper-
|
|
3
|
+
import { f as filterRows, p as paginateRows, s as sortRows } from './kup-data-table-helper-74b29c0e.js';
|
|
4
4
|
import { F as FImage } from './f-image-feab9f36.js';
|
|
5
5
|
import { c as FChip } from './f-chip-6fa3ec06.js';
|
|
6
6
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
@@ -13979,6 +13979,15 @@ const KupCalendar = class {
|
|
|
13979
13979
|
this.currentDate = null;
|
|
13980
13980
|
this.customStyle = '';
|
|
13981
13981
|
this.data = null;
|
|
13982
|
+
this.calendarColumns = {
|
|
13983
|
+
[KupCalendarOptions.DATE]: false,
|
|
13984
|
+
[KupCalendarOptions.DESCR]: false,
|
|
13985
|
+
[KupCalendarOptions.END]: false,
|
|
13986
|
+
[KupCalendarOptions.ICON]: false,
|
|
13987
|
+
[KupCalendarOptions.IMAGE]: false,
|
|
13988
|
+
[KupCalendarOptions.START]: false,
|
|
13989
|
+
[KupCalendarOptions.STYLE]: false,
|
|
13990
|
+
};
|
|
13982
13991
|
this.hideNavigation = false;
|
|
13983
13992
|
this.editableEvents = true;
|
|
13984
13993
|
this.viewType = KupCalendarViewTypes.MONTH;
|
|
@@ -13995,29 +14004,21 @@ const KupCalendar = class {
|
|
|
13995
14004
|
}
|
|
13996
14005
|
for (let index = 0; this.data && this.data.columns && index < this.data.columns.length; index++) {
|
|
13997
14006
|
const column = this.data.columns[index];
|
|
13998
|
-
|
|
13999
|
-
|
|
14000
|
-
|
|
14001
|
-
|
|
14002
|
-
|
|
14003
|
-
|
|
14004
|
-
|
|
14005
|
-
|
|
14006
|
-
|
|
14007
|
-
|
|
14008
|
-
|
|
14009
|
-
|
|
14010
|
-
|
|
14011
|
-
|
|
14012
|
-
|
|
14013
|
-
break;
|
|
14014
|
-
case KupCalendarOptions.START:
|
|
14015
|
-
this.startCol = column.name;
|
|
14016
|
-
break;
|
|
14017
|
-
case KupCalendarOptions.STYLE:
|
|
14018
|
-
this.styleCol = column.name;
|
|
14019
|
-
break;
|
|
14020
|
-
}
|
|
14007
|
+
const columnOptionsMap = {
|
|
14008
|
+
date: { option: KupCalendarOptions.DATE, prop: 'dateCol' },
|
|
14009
|
+
descr: { option: KupCalendarOptions.DESCR, prop: 'descrCol' },
|
|
14010
|
+
end: { option: KupCalendarOptions.END, prop: 'endCol' },
|
|
14011
|
+
icon: { option: KupCalendarOptions.ICON, prop: 'iconCol' },
|
|
14012
|
+
image: { option: KupCalendarOptions.IMAGE, prop: 'imageCol' },
|
|
14013
|
+
start: { option: KupCalendarOptions.START, prop: 'startCol' },
|
|
14014
|
+
style: { option: KupCalendarOptions.STYLE, prop: 'styleCol' }
|
|
14015
|
+
};
|
|
14016
|
+
Object.entries(this.calendarColumns).forEach(([key, value]) => {
|
|
14017
|
+
const optionConfig = columnOptionsMap[key];
|
|
14018
|
+
if (value && column.name === optionConfig.option) {
|
|
14019
|
+
this[optionConfig.prop] = column.name;
|
|
14020
|
+
}
|
|
14021
|
+
});
|
|
14021
14022
|
}
|
|
14022
14023
|
this.calendar = new Calendar(this.calendarContainer, {
|
|
14023
14024
|
dateClick: ({ date }) => {
|
|
@@ -14300,11 +14301,11 @@ const KupCalendar = class {
|
|
|
14300
14301
|
this.kupManager.debug.logRender(this, true);
|
|
14301
14302
|
}
|
|
14302
14303
|
render() {
|
|
14303
|
-
return (h$1(Host, { key: '
|
|
14304
|
+
return (h$1(Host, { key: 'bd44f85a6837a0e1a144860e8321bbd0ea6129a9' }, h$1("style", { key: '71ff726c1acf1f52aa35b5255f73f3cc71657579' }, this.kupManager.theme.setKupStyle(this.rootElement)), h$1("div", { key: '8520d07509ab405acdcbd89c60960d036870d578', id: componentWrapperId }, h$1("div", { key: '83c56a2e01d4e1a265fdbaebbfb3637794696b82', 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: '8ba20fcdbae46c9ef9551696c014be38a241a098', class: `navigation__title ${this.hideNavigation
|
|
14304
14305
|
? 'navigation__title--centered'
|
|
14305
14306
|
: ''}`, ref: (el) => {
|
|
14306
14307
|
this.navTitle = el;
|
|
14307
|
-
} }), !this.hideNavigation ? (h$1("div", { class: "navigation__right" }, h$1(FChip, Object.assign({}, this.setChipProps())))) : null), h$1("div", { key: '
|
|
14308
|
+
} }), !this.hideNavigation ? (h$1("div", { class: "navigation__right" }, h$1(FChip, Object.assign({}, this.setChipProps())))) : null), h$1("div", { key: 'e5f2cd9bdeae16d38a511a494f0dbcbc4cfade72', class: "calendar", ref: (el) => (this.calendarContainer = el) }))));
|
|
14308
14309
|
}
|
|
14309
14310
|
disconnectedCallback() {
|
|
14310
14311
|
if (this.calendar) {
|