@sme.up/ketchup 9.6.4 → 9.6.5
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/{bar.helpers-f46a5a83.js → bar.helpers-c481a535.js} +45 -13
- package/dist/cjs/{f-button-89de2403.js → f-button-23ec3db5.js} +1 -1
- package/dist/cjs/{f-cell-75dbd6eb.js → f-cell-bcc51c0f.js} +5 -5
- package/dist/cjs/{f-chip-08857345.js → f-chip-63363ecf.js} +2 -2
- package/dist/cjs/{f-image-a41d7f1e.js → f-image-f3944c01.js} +2 -5
- package/dist/cjs/{f-paginator-utils-ff07301e.js → f-paginator-utils-60e05759.js} +2 -2
- package/dist/cjs/{f-text-field-eb207a83.js → f-text-field-354b6c78.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 +2 -2
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +46 -46
- package/dist/cjs/kup-box.cjs.entry.js +7 -7
- package/dist/cjs/kup-calendar.cjs.entry.js +4 -4
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +6 -6
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +253 -37
- package/dist/cjs/kup-dashboard.cjs.entry.js +4 -4
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +1 -1
- package/dist/cjs/kup-editor.cjs.entry.js +1 -1
- package/dist/cjs/kup-family-tree.cjs.entry.js +3 -3
- package/dist/cjs/kup-gantt_10.cjs.entry.js +104 -38
- package/dist/cjs/kup-grid.cjs.entry.js +1 -1
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-image-list.cjs.entry.js +20 -13
- package/dist/cjs/kup-input-panel.cjs.entry.js +199 -53
- package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
- package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
- package/dist/cjs/{kup-manager-abfe4ddd.js → kup-manager-e1bfd4f8.js} +647 -120
- 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-pdf.cjs.entry.js +1 -1
- package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
- package/dist/cjs/{kup-planner-declarations-d3dec885.js → kup-planner-declarations-cb33663d.js} +3 -0
- package/dist/cjs/{kup-planner-renderer-helper-9f776d6e.js → kup-planner-renderer-helper-f001fad7.js} +55 -7
- package/dist/cjs/kup-planner-renderer.cjs.entry.js +43 -10
- package/dist/cjs/{kup-planner-time-formatter-a74e70f0.js → kup-planner-time-formatter-b7dca3ea.js} +3 -0
- package/dist/cjs/kup-planner.cjs.entry.js +80 -8
- package/dist/cjs/kup-probe.cjs.entry.js +2 -2
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/image-list.js +332 -2
- package/dist/collection/assets/input-panel.js +307 -76
- package/dist/collection/assets/planner-example-5.js +19 -7
- package/dist/collection/assets/planner-example-6.js +3 -0
- package/dist/collection/assets/planner.js +4 -3
- package/dist/collection/components/kup-badge/kup-badge.css +4 -4
- package/dist/collection/components/kup-image-list/kup-image-list.css +37 -4
- package/dist/collection/components/kup-image-list/kup-image-list.js +15 -8
- package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js +1 -1
- package/dist/collection/components/kup-input-panel/kup-input-panel.css +38 -1
- package/dist/collection/components/kup-input-panel/kup-input-panel.e2e.js +69 -28
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +206 -59
- package/dist/collection/components/kup-planner/kup-planner-declarations.js +3 -0
- package/dist/collection/components/kup-planner/kup-planner-helper.js +42 -1
- package/dist/collection/components/kup-planner/kup-planner.js +191 -5
- package/dist/collection/components/kup-planner/utils/custom-task-list-table.js +103 -11
- package/dist/collection/components/kup-planner/utils/gantt-table.module.css +80 -2
- package/dist/collection/components/kup-planner/utils/helpers/bar.helpers.js +41 -13
- package/dist/collection/components/kup-planner/utils/helpers/other.helpers.js +3 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.css +10 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +61 -6
- package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +32 -2
- package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.css +4 -0
- package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +208 -24
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css +4 -0
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +131 -7
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer-helper.js +55 -6
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +40 -7
- package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.css +22 -15
- package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +21 -5
- package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +19 -3
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +76 -2
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
- package/dist/collection/components/kup-probe/kup-probe.js +1 -1
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
- package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
- package/dist/collection/components/kup-rating/kup-rating.js +1 -1
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
- package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
- package/dist/collection/components/kup-switch/kup-switch.js +1 -1
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +1 -1
- package/dist/collection/f-components/f-image/f-image.js +2 -5
- package/dist/components/_commonjsHelpers.js +26 -0
- package/dist/components/custom-task-list-table.js +58 -13
- package/dist/components/kup-autocomplete2.js +43 -45
- package/dist/components/kup-calendar.js +1 -1
- package/dist/components/kup-dates.js +2 -25
- package/dist/components/kup-editor.js +1 -1
- package/dist/components/kup-gantt-calendar2.js +31 -1
- package/dist/components/kup-gantt2.js +26 -7
- package/dist/components/kup-grid-renderer2.js +219 -81
- package/dist/components/kup-horizontal-scroll2.js +48 -10
- package/dist/components/kup-image-list.js +14 -7
- package/dist/components/kup-input-panel.js +192 -46
- package/dist/components/kup-manager.js +649 -121
- package/dist/components/kup-pdf.js +1 -1
- package/dist/components/kup-planner-declarations.js +91 -0
- package/dist/components/kup-planner-renderer2.js +42 -9
- package/dist/components/kup-planner.js +86 -6
- package/dist/components/kup-probe.js +1 -1
- package/dist/components/kup-qlik.js +1 -1
- package/dist/components/kup-snackbar.js +1 -1
- package/dist/components/kup-standard-tooltip2.js +1 -1
- package/dist/components/kup-switcher2.js +19 -7
- package/dist/components/kup-task-gantt2.js +6 -4
- package/dist/components/kup-task-list-header2.js +7 -7
- package/dist/components/kup-task-list-table2.js +1 -1
- package/dist/components/kup-task-list2.js +434 -84
- package/dist/components/kup-tooltip2.js +1 -1
- package/dist/components/kup-vertical-scroll2.js +2 -2
- package/dist/components/other.helpers.js +47 -0
- package/dist/esm/{bar.helpers-0898efb9.js → bar.helpers-23a51579.js} +45 -14
- package/dist/esm/{f-button-1eebd42e.js → f-button-d6dbcfd6.js} +1 -1
- package/dist/esm/{f-cell-af19d5c7.js → f-cell-7b41415c.js} +5 -5
- package/dist/esm/{f-chip-9e5fdb25.js → f-chip-68d27d7a.js} +2 -2
- package/dist/esm/{f-image-1e1ed567.js → f-image-a67229e5.js} +2 -5
- package/dist/esm/{f-paginator-utils-dede029b.js → f-paginator-utils-8773e358.js} +2 -2
- package/dist/esm/{f-text-field-802b45fb.js → f-text-field-d364ffd2.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +2 -2
- package/dist/esm/kup-autocomplete_27.entry.js +46 -46
- package/dist/esm/kup-box.entry.js +7 -7
- package/dist/esm/kup-calendar.entry.js +4 -4
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +6 -6
- package/dist/esm/kup-custom-task-list-header_4.entry.js +253 -37
- package/dist/esm/kup-dashboard.entry.js +4 -4
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +1 -1
- package/dist/esm/kup-editor.entry.js +1 -1
- package/dist/esm/kup-family-tree.entry.js +3 -3
- package/dist/esm/kup-gantt_10.entry.js +105 -39
- package/dist/esm/kup-grid.entry.js +1 -1
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-image-list.entry.js +20 -13
- package/dist/esm/kup-input-panel.entry.js +199 -53
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +2 -2
- package/dist/esm/{kup-manager-dd24fb5a.js → kup-manager-a316a70e.js} +647 -120
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- package/dist/esm/kup-pdf.entry.js +1 -1
- package/dist/esm/kup-photo-frame.entry.js +1 -1
- package/dist/esm/{kup-planner-declarations-b9345758.js → kup-planner-declarations-398babf9.js} +3 -0
- package/dist/esm/{kup-planner-renderer-helper-b4727e44.js → kup-planner-renderer-helper-a2ec9a1c.js} +56 -7
- package/dist/esm/kup-planner-renderer.entry.js +43 -10
- package/dist/esm/{kup-planner-time-formatter-a68e05ba.js → kup-planner-time-formatter-ddf84f9b.js} +1 -1
- package/dist/esm/kup-planner.entry.js +80 -8
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +4 -4
- 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-008bdcdc.js +1 -0
- package/dist/ketchup/p-042e874a.entry.js +1 -0
- package/dist/ketchup/{p-b3b50bb5.entry.js → p-074ccd53.entry.js} +1 -1
- package/dist/ketchup/{p-26d42b88.entry.js → p-1088ab22.entry.js} +1 -1
- package/dist/ketchup/{p-201f8d7b.entry.js → p-1bcac01f.entry.js} +1 -1
- package/dist/ketchup/{p-3b544027.entry.js → p-1e028d95.entry.js} +1 -1
- package/dist/ketchup/p-25058baa.js +1 -0
- package/dist/ketchup/{p-dcf7e9b6.entry.js → p-2932e7e8.entry.js} +1 -1
- package/dist/ketchup/{p-b238cde7.entry.js → p-2b84db7b.entry.js} +1 -1
- package/dist/ketchup/{p-f998ff28.entry.js → p-2ef90f60.entry.js} +1 -1
- package/dist/ketchup/{p-8fcdf454.js → p-339bbeae.js} +1 -1
- package/dist/ketchup/{p-cd7fec02.entry.js → p-48e45ac0.entry.js} +1 -1
- package/dist/ketchup/p-53af4c87.js +1 -0
- package/dist/ketchup/{p-6972fa0c.entry.js → p-556f7ddc.entry.js} +1 -1
- package/dist/ketchup/{p-e7507dd6.entry.js → p-5f7d8c21.entry.js} +1 -1
- package/dist/ketchup/{p-e0e47ca9.entry.js → p-6362738c.entry.js} +1 -1
- package/dist/ketchup/{p-a2e14d8b.entry.js → p-65e363c6.entry.js} +1 -1
- package/dist/ketchup/p-6921bc81.entry.js +16 -0
- package/dist/ketchup/p-6961e0ce.entry.js +1 -0
- package/dist/ketchup/p-7123d2a4.entry.js +1 -0
- package/dist/ketchup/{p-6c888179.js → p-801776bc.js} +1 -1
- package/dist/ketchup/{p-4f69f6f9.entry.js → p-81645576.entry.js} +1 -1
- package/dist/ketchup/p-838dea62.js +1 -0
- package/dist/ketchup/{p-924b841b.js → p-84b511e1.js} +1 -1
- package/dist/ketchup/{p-8229b97a.js → p-8d4050ec.js} +4 -4
- package/dist/ketchup/{p-79f4dc5b.entry.js → p-9e2533e1.entry.js} +1 -1
- package/dist/ketchup/{p-158076de.entry.js → p-a06974a3.entry.js} +1 -1
- package/dist/ketchup/p-a6beb822.js +1 -0
- package/dist/ketchup/p-abe181d0.entry.js +1 -0
- package/dist/ketchup/{p-61e8d573.js → p-b3540f83.js} +1 -1
- package/dist/ketchup/{p-19a13672.entry.js → p-c702eb45.entry.js} +1 -1
- package/dist/ketchup/{p-2e04042b.entry.js → p-ccb6dbb0.entry.js} +1 -1
- package/dist/ketchup/{p-a2e691b8.entry.js → p-cf44485a.entry.js} +2 -2
- package/dist/ketchup/{p-8f3d400a.entry.js → p-d2001dec.entry.js} +1 -1
- package/dist/ketchup/{p-34d70475.entry.js → p-dbb6cd8d.entry.js} +1 -1
- package/dist/ketchup/{p-2d4a9235.js → p-f6c8f006.js} +1 -1
- package/dist/ketchup/{p-43ce397b.entry.js → p-f79ffe77.entry.js} +1 -1
- package/dist/ketchup/{p-489af77f.entry.js → p-fdcfaedd.entry.js} +1 -1
- package/dist/ketchup/p-fe75ede2.entry.js +1 -0
- package/dist/types/components/kup-image-list/kup-image-list.d.ts +1 -1
- package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +9 -7
- package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +4 -4
- package/dist/types/components/kup-planner/kup-planner-declarations.d.ts +29 -2
- package/dist/types/components/kup-planner/kup-planner-helper.d.ts +2 -1
- package/dist/types/components/kup-planner/kup-planner.d.ts +38 -0
- package/dist/types/components/kup-planner/utils/custom-task-list-table.d.ts +7 -0
- package/dist/types/components/kup-planner/utils/helpers/bar.helpers.d.ts +1 -1
- package/dist/types/components/kup-planner/utils/helpers/other.helpers.d.ts +1 -0
- package/dist/types/components/kup-planner/utils/kup-gantt/kup-gantt.d.ts +6 -0
- package/dist/types/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.d.ts +1 -0
- package/dist/types/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.d.ts +13 -1
- package/dist/types/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.d.ts +7 -0
- package/dist/types/components/kup-planner/utils/kup-planner-renderer-helper.d.ts +6 -2
- package/dist/types/components/kup-planner/utils/kup-planner-renderer.d.ts +1 -0
- package/dist/types/components/kup-planner/utils/kup-switcher/kup-switcher.d.ts +3 -1
- package/dist/types/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.d.ts +1 -0
- package/dist/types/components/kup-planner/utils/kup-task-list/kup-task-list.d.ts +4 -0
- package/dist/types/components.d.ts +122 -16
- package/package.json +1 -1
- package/dist/components/kup-planner-renderer-helper.js +0 -379
- package/dist/ketchup/p-14943de9.entry.js +0 -1
- package/dist/ketchup/p-180cd7ab.entry.js +0 -1
- package/dist/ketchup/p-636be6f1.entry.js +0 -16
- package/dist/ketchup/p-63c141d9.entry.js +0 -1
- package/dist/ketchup/p-818e61d5.entry.js +0 -1
- package/dist/ketchup/p-8e3b6de8.js +0 -1
- package/dist/ketchup/p-a46f99d4.js +0 -1
- package/dist/ketchup/p-c0f660d6.js +0 -1
- package/dist/ketchup/p-e4c63684.js +0 -1
- package/dist/ketchup/p-e841c2ae.js +0 -1
- package/dist/ketchup/p-f9a7c21c.entry.js +0 -1
|
@@ -69,7 +69,7 @@ export class KupImageList {
|
|
|
69
69
|
_KupImageList_interactableTouch.set(this, []);
|
|
70
70
|
this.currentNode = null;
|
|
71
71
|
this.navigationBarToggled = false;
|
|
72
|
-
this.columns =
|
|
72
|
+
this.columns = null;
|
|
73
73
|
this.customStyle = '';
|
|
74
74
|
this.data = [];
|
|
75
75
|
this.ripple = true;
|
|
@@ -180,14 +180,14 @@ export class KupImageList {
|
|
|
180
180
|
};
|
|
181
181
|
combinedGridStyle = Object.assign(Object.assign({}, combinedGridStyle), gridRowsStyle);
|
|
182
182
|
}
|
|
183
|
-
return (h(Host, { key: '
|
|
183
|
+
return (h(Host, { key: 'b62094a90858c7c5f36a9f76b3b4372b506ace67' }, h("style", { key: 'eeb8ad09387f7aaad846441e1d7c28554c6996e2' }, __classPrivateFieldGet(this, _KupImageList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'd908bdbb3d41f6cedaa6e905cc6be9aa4eb4e27b', id: componentWrapperId, ref: (el) => {
|
|
184
184
|
__classPrivateFieldSet(this, _KupImageList_el, el, "f");
|
|
185
|
-
} }, h("div", { key: '
|
|
185
|
+
} }, h("div", { key: 'e3852ae5ff9a61857cc70f9ebd83f5f317d596da', class: "navigation-bar" }, hasNavigation ? (h("div", { class: `navigation-bar__wrapper ${this.navigationBarToggled
|
|
186
186
|
? 'navigation-bar__wrapper--active'
|
|
187
187
|
: ''}` }, h("div", { class: `navigation-bar__title`, onClick: () => {
|
|
188
188
|
this.navigationBarToggled =
|
|
189
189
|
!this.navigationBarToggled;
|
|
190
|
-
} }, h(FImage, { fit: true, resource: this.currentNode.icon, sizeX: "1.25em", sizeY: "1.25em", wrapperClass: "navigation-bar__title__image" }), h("div", { class: "navigation-bar__title__label" }, this.currentNode.value)), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_backProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.BACK) })), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_topProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.TOP) })))) : null), h("div", { key: '
|
|
190
|
+
} }, h(FImage, { fit: true, resource: this.currentNode.icon, sizeX: "1.25em", sizeY: "1.25em", wrapperClass: "navigation-bar__title__image" }), h("div", { class: "navigation-bar__title__label" }, this.currentNode.value)), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_backProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.BACK) })), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_topProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.TOP) })))) : null), h("div", { key: '1726193b158b8cefb9a445acc5b75ae1d07061a3', class: "image-list", style: combinedGridStyle }, ...__classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_createList).call(this)))));
|
|
191
191
|
}
|
|
192
192
|
disconnectedCallback() {
|
|
193
193
|
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").interact.unregister(__classPrivateFieldGet(this, _KupImageList_interactableTouch, "f"));
|
|
@@ -221,13 +221,13 @@ export class KupImageList {
|
|
|
221
221
|
"docs": {
|
|
222
222
|
"tags": [{
|
|
223
223
|
"name": "default",
|
|
224
|
-
"text": "
|
|
224
|
+
"text": "null"
|
|
225
225
|
}],
|
|
226
226
|
"text": "Number of columns to display in the grid layout."
|
|
227
227
|
},
|
|
228
228
|
"attribute": "columns",
|
|
229
229
|
"reflect": false,
|
|
230
|
-
"defaultValue": "
|
|
230
|
+
"defaultValue": "null"
|
|
231
231
|
},
|
|
232
232
|
"customStyle": {
|
|
233
233
|
"type": "string",
|
|
@@ -555,7 +555,10 @@ _KupImageList_clickTimeout = new WeakMap(), _KupImageList_kupManager = new WeakM
|
|
|
555
555
|
};
|
|
556
556
|
const image = h(FImage, Object.assign({}, props));
|
|
557
557
|
const label = h("div", { class: "image-list__label" }, node.value);
|
|
558
|
-
|
|
558
|
+
const hasExternalResource = props.resource.indexOf('.') > -1 ||
|
|
559
|
+
props.resource.indexOf('/') > -1 ||
|
|
560
|
+
props.resource.indexOf('\\') > -1;
|
|
561
|
+
return (h(FCell, { cell: { value: node.value, icon: node.icon, obj: node.obj }, column: { name: 'IMAGE', title: 'Image' }, component: this, density: FCellPadding.NONE, row: Object.assign({}, node) }, h("div", { class: `image-list__wrapper${hasExternalResource ? ' images' : ''}` }, !hasExternalResource && (h("svg", { xmlns: "http://www.w3.org/2000/svg", version: "1.1", viewBox: "0 0 24 24" })), image, label)));
|
|
559
562
|
}, _KupImageList_createList = function _KupImageList_createList() {
|
|
560
563
|
const nodes = [];
|
|
561
564
|
const items = this.currentNode ? this.currentNode.children : this.data;
|
|
@@ -660,10 +663,14 @@ _KupImageList_clickTimeout = new WeakMap(), _KupImageList_kupManager = new WeakM
|
|
|
660
663
|
const holdCb = (e) => {
|
|
661
664
|
if (e.pointerType === 'pen' || e.pointerType === 'touch') {
|
|
662
665
|
__classPrivateFieldSet(this, _KupImageList_hold, true, "f");
|
|
666
|
+
this.kupContextMenu.emit({
|
|
667
|
+
comp: this,
|
|
668
|
+
id: this.rootElement.id,
|
|
669
|
+
details: __classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_contextMenuHandler).call(this, e),
|
|
670
|
+
});
|
|
663
671
|
}
|
|
664
672
|
};
|
|
665
673
|
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").interact.on(__classPrivateFieldGet(this, _KupImageList_el, "f"), KupPointerEventTypes.HOLD, holdCb);
|
|
666
674
|
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").interact.on(__classPrivateFieldGet(this, _KupImageList_el, "f"), KupPointerEventTypes.TAP, tapCb);
|
|
667
675
|
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").interact.on(__classPrivateFieldGet(this, _KupImageList_el, "f"), KupPointerEventTypes.DOUBLETAP, doubletapCb);
|
|
668
|
-
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").interact.on(__classPrivateFieldGet(this, _KupImageList_el, "f"), KupPointerEventTypes.HOLD, holdCb);
|
|
669
676
|
};
|
|
@@ -4,5 +4,5 @@ export var KupInputPanelProps;
|
|
|
4
4
|
KupInputPanelProps["data"] = "Actual data of the input panel.";
|
|
5
5
|
KupInputPanelProps["hiddenSubmitButton"] = "Creates a hidden submit button in order to submit the form with enter.";
|
|
6
6
|
KupInputPanelProps["submitCb"] = "Sets the callback function on submit form";
|
|
7
|
-
KupInputPanelProps["
|
|
7
|
+
KupInputPanelProps["optionsHandler"] = "Sets the callback function to recieve options";
|
|
8
8
|
})(KupInputPanelProps || (KupInputPanelProps = {}));
|
|
@@ -126,7 +126,44 @@
|
|
|
126
126
|
letter-spacing: 0;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
|
|
129
|
+
/**
|
|
130
|
+
* @prop --kup-input-panel-background-color: Sets background of the component.
|
|
131
|
+
* @prop --kup-input-panel-color: Sets text color of the component.
|
|
132
|
+
* @prop --kup-input-panel-font-family: Sets font family of the component.
|
|
133
|
+
* @prop --kup-input-panel-font-size: Sets font size of the component.
|
|
134
|
+
* @prop --kup-input-panel-label-alignment: Sets the text alignment of labels.
|
|
135
|
+
* @prop --kup-input-panel-label-width: Sets the width of labels.
|
|
136
|
+
* @prop --kup-input-panel-padding: Sets the padding of the input panel.
|
|
137
|
+
*/
|
|
138
|
+
:host {
|
|
139
|
+
--kup_input_panel_background_color: var(--kup-input-panel-background-color,
|
|
140
|
+
var(--kup-background-color));
|
|
141
|
+
--kup_input_panel_color: var(--kup-input-panel-color, var(--kup-text-color));
|
|
142
|
+
--kup_input_panel_font_family: var(--kup-input-panel-font-family, var(--kup-font-family));
|
|
143
|
+
--kup_input_panel_font_size: var(--kup-input-panel-font-size, var(--kup-font-size));
|
|
144
|
+
--kup_input_panel_label_alignment: var(--kup-input-panel-label-alignment);
|
|
145
|
+
--kup_input_panel_label_width: var(--kup-input-panel-label-width);
|
|
146
|
+
--kup_input_panel_padding: var(--kup-input-panel-padding, 1em 0);
|
|
147
|
+
}
|
|
148
|
+
:host .input-panel {
|
|
149
|
+
background: var(--kup_input_panel_background_color);
|
|
150
|
+
color: var(--kup_input_panel_color);
|
|
151
|
+
display: flex;
|
|
152
|
+
flex-grow: 1;
|
|
153
|
+
overflow: auto;
|
|
154
|
+
padding: var(--kup_input_panel_padding);
|
|
155
|
+
position: relative;
|
|
156
|
+
}
|
|
157
|
+
:host .input-panel--column {
|
|
158
|
+
flex-direction: column;
|
|
159
|
+
}
|
|
160
|
+
:host .input-panel__section {
|
|
161
|
+
display: grid;
|
|
162
|
+
}
|
|
163
|
+
:host .input-panel__horizontal-section {
|
|
164
|
+
display: inline-grid;
|
|
165
|
+
}
|
|
166
|
+
:host .input-panel .f-cell .f-checkbox .checkbox .checkbox__native-control {
|
|
130
167
|
height: 40px;
|
|
131
168
|
width: 40px;
|
|
132
169
|
}
|
|
@@ -90,24 +90,30 @@ describe('kup-input-panel', () => {
|
|
|
90
90
|
editable: true,
|
|
91
91
|
mandatory: true,
|
|
92
92
|
options: [
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
93
|
+
{
|
|
94
|
+
id: 'FLO',
|
|
95
|
+
label: 'Florence',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
id: 'VEN',
|
|
99
|
+
label: 'Venice',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
id: 'ROM',
|
|
103
|
+
label: 'Rome',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
id: 'MAD',
|
|
107
|
+
label: 'Madrid',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
id: 'BAR',
|
|
111
|
+
label: 'Barcelona',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: 'SEV',
|
|
115
|
+
label: 'Seville',
|
|
116
|
+
},
|
|
111
117
|
],
|
|
112
118
|
shape: 'ACP',
|
|
113
119
|
},
|
|
@@ -139,7 +145,7 @@ describe('kup-input-panel', () => {
|
|
|
139
145
|
expect(list).not.toBeNull();
|
|
140
146
|
const listOptions = await page.findAll('kup-list >>> ul.list li');
|
|
141
147
|
expect(listOptions).not.toBeNull();
|
|
142
|
-
expect(listOptions).toHaveLength(
|
|
148
|
+
expect(listOptions).toHaveLength(1);
|
|
143
149
|
const firstOptionValue = await listOptions[0].find('span');
|
|
144
150
|
expect(firstOptionValue).toEqualText('Rome');
|
|
145
151
|
await firstOptionValue.click();
|
|
@@ -164,12 +170,30 @@ describe('kup-input-panel', () => {
|
|
|
164
170
|
NAT: {
|
|
165
171
|
value: '',
|
|
166
172
|
options: [
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
+
{
|
|
174
|
+
id: 'ITA',
|
|
175
|
+
label: 'Italy',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
id: 'SPA',
|
|
179
|
+
label: 'Spain',
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
id: 'GER',
|
|
183
|
+
label: 'Germany',
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
id: 'FRA',
|
|
187
|
+
label: 'France',
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
id: 'POR',
|
|
191
|
+
label: 'Portugal',
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
id: 'ENG',
|
|
195
|
+
label: 'England',
|
|
196
|
+
},
|
|
173
197
|
],
|
|
174
198
|
editable: true,
|
|
175
199
|
shape: 'CMB',
|
|
@@ -265,7 +289,24 @@ describe('kup-input-panel', () => {
|
|
|
265
289
|
cells: {
|
|
266
290
|
RAD: {
|
|
267
291
|
value: '1',
|
|
268
|
-
options: [
|
|
292
|
+
options: [
|
|
293
|
+
{
|
|
294
|
+
id: '1',
|
|
295
|
+
label: 'One',
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
id: '2',
|
|
299
|
+
label: 'Two',
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
id: '3',
|
|
303
|
+
label: 'Three',
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
id: '4',
|
|
307
|
+
label: 'Four',
|
|
308
|
+
},
|
|
309
|
+
],
|
|
269
310
|
editable: true,
|
|
270
311
|
shape: 'RAD',
|
|
271
312
|
},
|
|
@@ -285,11 +326,11 @@ describe('kup-input-panel', () => {
|
|
|
285
326
|
for (const [i, radioButton] of radioButtons.entries()) {
|
|
286
327
|
const label = await radioButton.find('label');
|
|
287
328
|
expect(label).not.toBeNull();
|
|
288
|
-
expect(label).toEqualText(radioOptions[i]);
|
|
329
|
+
expect(label).toEqualText(radioOptions[i].label);
|
|
289
330
|
const input = await radioButton.find('input');
|
|
290
331
|
expect(input).not.toBeNull();
|
|
291
332
|
const value = await input.getProperty('value');
|
|
292
|
-
expect(value).toBe(radioOptions[i]);
|
|
333
|
+
expect(value).toBe(radioOptions[i].id);
|
|
293
334
|
if (data.rows[0].cells.RAD.value === value) {
|
|
294
335
|
const radioButtonCircle = await radioButton.find('div.radio');
|
|
295
336
|
expect(radioButtonCircle).toHaveClass('radio--checked');
|