@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
|
@@ -4,7 +4,7 @@ import { f as filterRows, p as paginateRows, s as sortRows } from './kup-data-ta
|
|
|
4
4
|
import { F as FImage } from './f-image-feab9f36.js';
|
|
5
5
|
import { c as FChip } from './f-chip-4eb4d42d.js';
|
|
6
6
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
7
|
-
import { F as FCell } from './f-cell-
|
|
7
|
+
import { F as FCell } from './f-cell-51df0212.js';
|
|
8
8
|
import { p as pageChange, r as rowsPerPageChange, F as FPaginator } from './f-paginator-utils-ae1c08f2.js';
|
|
9
9
|
import { F as FTextFieldMDC } from './f-text-field-mdc-9a862967.js';
|
|
10
10
|
import './kup-dates-b90227c6.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]: '',
|
|
13984
|
+
[KupCalendarOptions.DESCR]: '',
|
|
13985
|
+
[KupCalendarOptions.END]: '',
|
|
13986
|
+
[KupCalendarOptions.ICON]: '',
|
|
13987
|
+
[KupCalendarOptions.IMAGE]: '',
|
|
13988
|
+
[KupCalendarOptions.START]: '',
|
|
13989
|
+
[KupCalendarOptions.STYLE]: '',
|
|
13990
|
+
};
|
|
13982
13991
|
this.hideNavigation = false;
|
|
13983
13992
|
this.editableEvents = true;
|
|
13984
13993
|
this.viewType = KupCalendarViewTypes.MONTH;
|
|
@@ -13987,37 +13996,22 @@ const KupCalendar = class {
|
|
|
13987
13996
|
/* W a t c h e r s */
|
|
13988
13997
|
/*-------------------------------------------------*/
|
|
13989
13998
|
setCalendarData() {
|
|
13999
|
+
var _a;
|
|
13990
14000
|
if (!this.calendarContainer) {
|
|
13991
14001
|
return;
|
|
13992
14002
|
}
|
|
13993
14003
|
if (this.calendar) {
|
|
13994
14004
|
this.calendar.destroy();
|
|
13995
14005
|
}
|
|
13996
|
-
|
|
13997
|
-
|
|
13998
|
-
|
|
13999
|
-
|
|
14000
|
-
|
|
14001
|
-
|
|
14002
|
-
|
|
14003
|
-
|
|
14004
|
-
|
|
14005
|
-
case KupCalendarOptions.END:
|
|
14006
|
-
this.endCol = column.name;
|
|
14007
|
-
break;
|
|
14008
|
-
case KupCalendarOptions.ICON:
|
|
14009
|
-
this.iconCol = column.name;
|
|
14010
|
-
break;
|
|
14011
|
-
case KupCalendarOptions.IMAGE:
|
|
14012
|
-
this.imageCol = column.name;
|
|
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
|
-
}
|
|
14006
|
+
if ((_a = this.data) === null || _a === void 0 ? void 0 : _a.columns) {
|
|
14007
|
+
this.data.columns.forEach((column) => {
|
|
14008
|
+
for (const key in this.calendarColumns) {
|
|
14009
|
+
if (this.calendarColumns[key] === column.name) {
|
|
14010
|
+
this[`${key}Col`] = column.name;
|
|
14011
|
+
break;
|
|
14012
|
+
}
|
|
14013
|
+
}
|
|
14014
|
+
});
|
|
14021
14015
|
}
|
|
14022
14016
|
this.calendar = new Calendar(this.calendarContainer, {
|
|
14023
14017
|
dateClick: ({ date }) => {
|
|
@@ -14300,11 +14294,11 @@ const KupCalendar = class {
|
|
|
14300
14294
|
this.kupManager.debug.logRender(this, true);
|
|
14301
14295
|
}
|
|
14302
14296
|
render() {
|
|
14303
|
-
return (h$1(Host, { key: '
|
|
14297
|
+
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
|
|
14304
14298
|
? 'navigation__title--centered'
|
|
14305
14299
|
: ''}`, ref: (el) => {
|
|
14306
14300
|
this.navTitle = el;
|
|
14307
|
-
} }), !this.hideNavigation ? (h$1("div", { class: "navigation__right" }, h$1(FChip, Object.assign({}, this.setChipProps())))) : null), h$1("div", { key: '
|
|
14301
|
+
} }), !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) }))));
|
|
14308
14302
|
}
|
|
14309
14303
|
disconnectedCallback() {
|
|
14310
14304
|
if (this.calendar) {
|