@sme.up/ketchup 11.0.0-SNAPSHOT-20241023143330 → 11.0.0-SNAPSHOT-20241024071006
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-fe25710c.js → f-cell-dc1c25c5.js} +20 -1
- package/dist/cjs/f-cell-dc1c25c5.js.map +1 -0
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +1 -1
- package/dist/cjs/kup-box.cjs.entry.js +1 -1
- package/dist/cjs/kup-calendar.cjs.entry.js +21 -27
- package/dist/cjs/kup-calendar.cjs.entry.js.map +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +1 -1
- package/dist/cjs/kup-image-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-input-panel.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/calendar.js +219 -36
- package/dist/collection/components/kup-calendar/kup-calendar-declarations.js.map +1 -1
- package/dist/collection/components/kup-calendar/kup-calendar.js +46 -27
- package/dist/collection/components/kup-calendar/kup-calendar.js.map +1 -1
- package/dist/collection/f-components/f-cell/f-cell.js +19 -0
- package/dist/collection/f-components/f-cell/f-cell.js.map +1 -1
- package/dist/components/kup-autocomplete2.js +19 -0
- package/dist/components/kup-autocomplete2.js.map +1 -1
- package/dist/components/kup-calendar.js +22 -27
- package/dist/components/kup-calendar.js.map +1 -1
- package/dist/esm/{f-cell-809f676d.js → f-cell-51df0212.js} +20 -1
- package/dist/esm/f-cell-51df0212.js.map +1 -0
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-autocomplete_27.entry.js +1 -1
- package/dist/esm/kup-box.entry.js +1 -1
- package/dist/esm/kup-calendar.entry.js +21 -27
- package/dist/esm/kup-calendar.entry.js.map +1 -1
- package/dist/esm/kup-cell.entry.js +1 -1
- package/dist/esm/kup-image-list.entry.js +1 -1
- package/dist/esm/kup-input-panel.entry.js +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-05a7120a.entry.js → p-1ffcc364.entry.js} +2 -2
- package/dist/ketchup/p-1ffcc364.entry.js.map +1 -0
- package/dist/ketchup/{p-b2266861.entry.js → p-96276a2b.entry.js} +2 -2
- package/dist/ketchup/{p-794c420d.entry.js → p-992fd3e1.entry.js} +2 -2
- package/dist/ketchup/p-aa1b84ce.js +2 -0
- package/dist/ketchup/p-aa1b84ce.js.map +1 -0
- package/dist/ketchup/{p-88464ed1.entry.js → p-bd5d3adb.entry.js} +2 -2
- package/dist/ketchup/{p-cb2697f0.entry.js → p-c9168d92.entry.js} +2 -2
- package/dist/ketchup/{p-e34f289a.entry.js → p-edde6aec.entry.js} +2 -2
- package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +4 -4
- package/dist/types/components/kup-calendar/kup-calendar.d.ts +7 -1
- package/dist/types/components.d.ts +12 -2
- package/package.json +1 -1
- package/dist/cjs/f-cell-fe25710c.js.map +0 -1
- package/dist/esm/f-cell-809f676d.js.map +0 -1
- package/dist/ketchup/p-05a7120a.entry.js.map +0 -1
- package/dist/ketchup/p-b89da9c4.js +0 -2
- package/dist/ketchup/p-b89da9c4.js.map +0 -1
- /package/dist/ketchup/{p-b2266861.entry.js.map → p-96276a2b.entry.js.map} +0 -0
- /package/dist/ketchup/{p-794c420d.entry.js.map → p-992fd3e1.entry.js.map} +0 -0
- /package/dist/ketchup/{p-88464ed1.entry.js.map → p-bd5d3adb.entry.js.map} +0 -0
- /package/dist/ketchup/{p-cb2697f0.entry.js.map → p-c9168d92.entry.js.map} +0 -0
- /package/dist/ketchup/{p-e34f289a.entry.js.map → p-edde6aec.entry.js.map} +0 -0
|
@@ -13977,6 +13977,15 @@ const KupCalendar$1 = /*@__PURE__*/ proxyCustomElement(class KupCalendar extends
|
|
|
13977
13977
|
this.currentDate = null;
|
|
13978
13978
|
this.customStyle = '';
|
|
13979
13979
|
this.data = null;
|
|
13980
|
+
this.calendarColumns = {
|
|
13981
|
+
[KupCalendarOptions.DATE]: '',
|
|
13982
|
+
[KupCalendarOptions.DESCR]: '',
|
|
13983
|
+
[KupCalendarOptions.END]: '',
|
|
13984
|
+
[KupCalendarOptions.ICON]: '',
|
|
13985
|
+
[KupCalendarOptions.IMAGE]: '',
|
|
13986
|
+
[KupCalendarOptions.START]: '',
|
|
13987
|
+
[KupCalendarOptions.STYLE]: '',
|
|
13988
|
+
};
|
|
13980
13989
|
this.hideNavigation = false;
|
|
13981
13990
|
this.editableEvents = true;
|
|
13982
13991
|
this.viewType = KupCalendarViewTypes.MONTH;
|
|
@@ -13985,37 +13994,22 @@ const KupCalendar$1 = /*@__PURE__*/ proxyCustomElement(class KupCalendar extends
|
|
|
13985
13994
|
/* W a t c h e r s */
|
|
13986
13995
|
/*-------------------------------------------------*/
|
|
13987
13996
|
setCalendarData() {
|
|
13997
|
+
var _a;
|
|
13988
13998
|
if (!this.calendarContainer) {
|
|
13989
13999
|
return;
|
|
13990
14000
|
}
|
|
13991
14001
|
if (this.calendar) {
|
|
13992
14002
|
this.calendar.destroy();
|
|
13993
14003
|
}
|
|
13994
|
-
|
|
13995
|
-
|
|
13996
|
-
|
|
13997
|
-
|
|
13998
|
-
|
|
13999
|
-
|
|
14000
|
-
|
|
14001
|
-
|
|
14002
|
-
|
|
14003
|
-
case KupCalendarOptions.END:
|
|
14004
|
-
this.endCol = column.name;
|
|
14005
|
-
break;
|
|
14006
|
-
case KupCalendarOptions.ICON:
|
|
14007
|
-
this.iconCol = column.name;
|
|
14008
|
-
break;
|
|
14009
|
-
case KupCalendarOptions.IMAGE:
|
|
14010
|
-
this.imageCol = column.name;
|
|
14011
|
-
break;
|
|
14012
|
-
case KupCalendarOptions.START:
|
|
14013
|
-
this.startCol = column.name;
|
|
14014
|
-
break;
|
|
14015
|
-
case KupCalendarOptions.STYLE:
|
|
14016
|
-
this.styleCol = column.name;
|
|
14017
|
-
break;
|
|
14018
|
-
}
|
|
14004
|
+
if ((_a = this.data) === null || _a === void 0 ? void 0 : _a.columns) {
|
|
14005
|
+
this.data.columns.forEach((column) => {
|
|
14006
|
+
for (const key in this.calendarColumns) {
|
|
14007
|
+
if (this.calendarColumns[key] === column.name) {
|
|
14008
|
+
this[`${key}Col`] = column.name;
|
|
14009
|
+
break;
|
|
14010
|
+
}
|
|
14011
|
+
}
|
|
14012
|
+
});
|
|
14019
14013
|
}
|
|
14020
14014
|
this.calendar = new Calendar(this.calendarContainer, {
|
|
14021
14015
|
dateClick: ({ date }) => {
|
|
@@ -14298,11 +14292,11 @@ const KupCalendar$1 = /*@__PURE__*/ proxyCustomElement(class KupCalendar extends
|
|
|
14298
14292
|
this.kupManager.debug.logRender(this, true);
|
|
14299
14293
|
}
|
|
14300
14294
|
render() {
|
|
14301
|
-
return (h$1(Host, { key: '
|
|
14295
|
+
return (h$1(Host, { key: 'bdd424eed81973543ce0456b76729821e630de31' }, h$1("style", { key: '390d5a2a2d06f5119d1e03c7fd00271983ebcce4' }, this.kupManager.theme.setKupStyle(this.rootElement)), h$1("div", { key: '7b24bb47c6b934f5fe47289790ee717ce261d9b9', id: componentWrapperId }, h$1("div", { key: '2f72c647d22945a38bce0073729ffbd3f28dec9e', 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: '35a9b8aa076db1e723de96fcd9a5eb8b6b7dcf40', class: `navigation__title ${this.hideNavigation
|
|
14302
14296
|
? 'navigation__title--centered'
|
|
14303
14297
|
: ''}`, ref: (el) => {
|
|
14304
14298
|
this.navTitle = el;
|
|
14305
|
-
} }), !this.hideNavigation ? (h$1("div", { class: "navigation__right" }, h$1(FChip, Object.assign({}, this.setChipProps())))) : null), h$1("div", { key: '
|
|
14299
|
+
} }), !this.hideNavigation ? (h$1("div", { class: "navigation__right" }, h$1(FChip, Object.assign({}, this.setChipProps())))) : null), h$1("div", { key: '4ade88713da0e92a1c21b62922db53c23f0e6e0a', class: "calendar", ref: (el) => (this.calendarContainer = el) }))));
|
|
14306
14300
|
}
|
|
14307
14301
|
disconnectedCallback() {
|
|
14308
14302
|
if (this.calendar) {
|
|
@@ -14323,6 +14317,7 @@ const KupCalendar$1 = /*@__PURE__*/ proxyCustomElement(class KupCalendar extends
|
|
|
14323
14317
|
"currentDate": [1, "current-date"],
|
|
14324
14318
|
"customStyle": [1, "custom-style"],
|
|
14325
14319
|
"data": [16],
|
|
14320
|
+
"calendarColumns": [16],
|
|
14326
14321
|
"hideNavigation": [4, "hide-navigation"],
|
|
14327
14322
|
"editableEvents": [4, "editable-events"],
|
|
14328
14323
|
"viewType": [1025, "view-type"],
|