@sme.up/ketchup 11.0.0-SNAPSHOT-20241017130107 → 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-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/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/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-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/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-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
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4e97f23f.js');
|
|
6
6
|
const kupManager = require('./kup-manager-59aafed4.js');
|
|
7
|
-
const kupDataTableHelper = require('./kup-data-table-helper-
|
|
7
|
+
const kupDataTableHelper = require('./kup-data-table-helper-52444d44.js');
|
|
8
8
|
const fImage = require('./f-image-8dbf27a2.js');
|
|
9
9
|
const fChip = require('./f-chip-a213a741.js');
|
|
10
10
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
@@ -13983,6 +13983,15 @@ const KupCalendar = class {
|
|
|
13983
13983
|
this.currentDate = null;
|
|
13984
13984
|
this.customStyle = '';
|
|
13985
13985
|
this.data = null;
|
|
13986
|
+
this.calendarColumns = {
|
|
13987
|
+
[KupCalendarOptions.DATE]: false,
|
|
13988
|
+
[KupCalendarOptions.DESCR]: false,
|
|
13989
|
+
[KupCalendarOptions.END]: false,
|
|
13990
|
+
[KupCalendarOptions.ICON]: false,
|
|
13991
|
+
[KupCalendarOptions.IMAGE]: false,
|
|
13992
|
+
[KupCalendarOptions.START]: false,
|
|
13993
|
+
[KupCalendarOptions.STYLE]: false,
|
|
13994
|
+
};
|
|
13986
13995
|
this.hideNavigation = false;
|
|
13987
13996
|
this.editableEvents = true;
|
|
13988
13997
|
this.viewType = KupCalendarViewTypes.MONTH;
|
|
@@ -13999,29 +14008,21 @@ const KupCalendar = class {
|
|
|
13999
14008
|
}
|
|
14000
14009
|
for (let index = 0; this.data && this.data.columns && index < this.data.columns.length; index++) {
|
|
14001
14010
|
const column = this.data.columns[index];
|
|
14002
|
-
|
|
14003
|
-
|
|
14004
|
-
|
|
14005
|
-
|
|
14006
|
-
|
|
14007
|
-
|
|
14008
|
-
|
|
14009
|
-
|
|
14010
|
-
|
|
14011
|
-
|
|
14012
|
-
|
|
14013
|
-
|
|
14014
|
-
|
|
14015
|
-
|
|
14016
|
-
|
|
14017
|
-
break;
|
|
14018
|
-
case KupCalendarOptions.START:
|
|
14019
|
-
this.startCol = column.name;
|
|
14020
|
-
break;
|
|
14021
|
-
case KupCalendarOptions.STYLE:
|
|
14022
|
-
this.styleCol = column.name;
|
|
14023
|
-
break;
|
|
14024
|
-
}
|
|
14011
|
+
const columnOptionsMap = {
|
|
14012
|
+
date: { option: KupCalendarOptions.DATE, prop: 'dateCol' },
|
|
14013
|
+
descr: { option: KupCalendarOptions.DESCR, prop: 'descrCol' },
|
|
14014
|
+
end: { option: KupCalendarOptions.END, prop: 'endCol' },
|
|
14015
|
+
icon: { option: KupCalendarOptions.ICON, prop: 'iconCol' },
|
|
14016
|
+
image: { option: KupCalendarOptions.IMAGE, prop: 'imageCol' },
|
|
14017
|
+
start: { option: KupCalendarOptions.START, prop: 'startCol' },
|
|
14018
|
+
style: { option: KupCalendarOptions.STYLE, prop: 'styleCol' }
|
|
14019
|
+
};
|
|
14020
|
+
Object.entries(this.calendarColumns).forEach(([key, value]) => {
|
|
14021
|
+
const optionConfig = columnOptionsMap[key];
|
|
14022
|
+
if (value && column.name === optionConfig.option) {
|
|
14023
|
+
this[optionConfig.prop] = column.name;
|
|
14024
|
+
}
|
|
14025
|
+
});
|
|
14025
14026
|
}
|
|
14026
14027
|
this.calendar = new Calendar(this.calendarContainer, {
|
|
14027
14028
|
dateClick: ({ date }) => {
|
|
@@ -14304,11 +14305,11 @@ const KupCalendar = class {
|
|
|
14304
14305
|
this.kupManager.debug.logRender(this, true);
|
|
14305
14306
|
}
|
|
14306
14307
|
render() {
|
|
14307
|
-
return (index$4.h(index$4.Host, { key: '
|
|
14308
|
+
return (index$4.h(index$4.Host, { key: 'bd44f85a6837a0e1a144860e8321bbd0ea6129a9' }, index$4.h("style", { key: '71ff726c1acf1f52aa35b5255f73f3cc71657579' }, this.kupManager.theme.setKupStyle(this.rootElement)), index$4.h("div", { key: '8520d07509ab405acdcbd89c60960d036870d578', id: GenericVariables.componentWrapperId }, index$4.h("div", { key: '83c56a2e01d4e1a265fdbaebbfb3637794696b82', 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: '8ba20fcdbae46c9ef9551696c014be38a241a098', class: `navigation__title ${this.hideNavigation
|
|
14308
14309
|
? 'navigation__title--centered'
|
|
14309
14310
|
: ''}`, ref: (el) => {
|
|
14310
14311
|
this.navTitle = el;
|
|
14311
|
-
} }), !this.hideNavigation ? (index$4.h("div", { class: "navigation__right" }, index$4.h(fChip.FChip, Object.assign({}, this.setChipProps())))) : null), index$4.h("div", { key: '
|
|
14312
|
+
} }), !this.hideNavigation ? (index$4.h("div", { class: "navigation__right" }, index$4.h(fChip.FChip, Object.assign({}, this.setChipProps())))) : null), index$4.h("div", { key: 'e5f2cd9bdeae16d38a511a494f0dbcbc4cfade72', class: "calendar", ref: (el) => (this.calendarContainer = el) }))));
|
|
14312
14313
|
}
|
|
14313
14314
|
disconnectedCallback() {
|
|
14314
14315
|
if (this.calendar) {
|