@sme.up/ketchup 10.3.1 → 10.3.2
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/{component-cb3b32f5.js → component-a6dd6c14.js} +1 -1
- package/dist/cjs/{f-cell-be0c55ac.js → f-cell-7a2faf7a.js} +8 -6
- package/dist/cjs/{f-chip-dc085b9b.js → f-chip-f2d6124b.js} +1 -1
- package/dist/cjs/{f-object-field-96e1c599.js → f-object-field-3810f288.js} +2 -2
- package/dist/cjs/{f-paginator-utils-3f233ebe.js → f-paginator-utils-3855e84c.js} +1 -1
- package/dist/cjs/{f-text-field-d91ab1e8.js → f-text-field-a34a5979.js} +2 -2
- package/dist/cjs/{f-text-field-mdc-2a3c8c01.js → f-text-field-mdc-29aae9c9.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 +247 -44
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
- package/dist/cjs/kup-autocomplete_29.cjs.entry.js +927 -894
- package/dist/cjs/kup-box.cjs.entry.js +9 -9
- package/dist/cjs/kup-calendar.cjs.entry.js +925 -87
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +5 -5
- package/dist/cjs/kup-dashboard.cjs.entry.js +4 -4
- package/dist/cjs/{kup-data-table-helper-ff263f4f.js → kup-data-table-helper-f53032e7.js} +1 -1
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +5 -4
- package/dist/cjs/kup-editor.cjs.entry.js +3 -3
- package/dist/cjs/kup-family-tree.cjs.entry.js +1 -1
- package/dist/cjs/kup-grid.cjs.entry.js +1 -1
- package/dist/cjs/kup-htm.cjs.entry.js +1 -1
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-image-list.cjs.entry.js +6 -6
- package/dist/cjs/kup-input-panel.cjs.entry.js +58 -31
- package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
- package/dist/cjs/kup-magic-box.cjs.entry.js +1 -1
- package/dist/cjs/{kup-manager-ecc44384.js → kup-manager-c70d3188.js} +122 -24
- package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +4 -4
- package/dist/cjs/kup-object-field.cjs.entry.js +3 -3
- package/dist/cjs/kup-pdf.cjs.entry.js +1 -1
- package/dist/cjs/kup-planner.cjs.entry.js +4 -4
- package/dist/cjs/kup-probe.cjs.entry.js +1 -1
- package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
- package/dist/cjs/kup-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/kup-txt.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/accordion.js +73 -18
- package/dist/collection/assets/dashboard.js +3 -9
- package/dist/collection/components/kup-accordion/kup-accordion-declarations.js +6 -1
- package/dist/collection/components/kup-accordion/kup-accordion.css +10 -2
- package/dist/collection/components/kup-accordion/kup-accordion.js +432 -54
- package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +2 -0
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +44 -28
- package/dist/collection/components/kup-calendar/kup-calendar.css +13 -0
- package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +3 -3
- package/dist/collection/components/kup-card/kup-card-helper.js +3 -2
- package/dist/collection/components/kup-card/kup-card.css +16 -0
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +10 -3
- package/dist/collection/components/kup-chip/kup-chip.js +5 -5
- package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +1 -0
- package/dist/collection/components/kup-combobox/kup-combobox.js +37 -2
- package/dist/collection/components/kup-data-table/kup-data-table.js +45 -46
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +1 -1
- package/dist/collection/components/kup-echart/kup-echart.js +4 -3
- package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js +1 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel-utils.js +20 -14
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +53 -13
- package/dist/collection/components/kup-tab-bar/kup-tab-bar-declarations.js +4 -0
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +26 -43
- package/dist/collection/components/kup-toolbar/kup-toolbar.css +17 -6
- package/dist/collection/components/kup-tree/kup-tree.js +7 -10
- package/dist/collection/f-components/f-cell/f-cell.js +2 -1
- package/dist/collection/f-components/f-radio/f-radio.js +1 -1
- package/dist/collection/f-components/f-text-field/f-text-field.js +1 -1
- package/dist/collection/managers/kup-data/kup-data.js +2 -0
- package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +45 -1
- package/dist/collection/managers/kup-language/kup-language-declarations.js +2 -0
- package/dist/collection/managers/kup-manager/kup-manager.js +3 -2
- package/dist/collection/managers/kup-perf-tuning/kup-perf-tuning-declarations.js +1 -0
- package/dist/collection/managers/kup-perf-tuning/kup-perf-tuning.js +25 -0
- package/dist/collection/utils/cell-utils.js +21 -0
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.js +253 -45
- package/dist/components/kup-activity-timeline.js +2 -2
- package/dist/components/kup-autocomplete.js +1 -1
- package/dist/components/kup-badge.js +1 -1
- package/dist/components/kup-box.js +1 -1
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +925 -87
- package/dist/components/kup-card-list.js +3 -3
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +2 -2
- package/dist/components/kup-chart.js +1 -1
- package/dist/components/kup-checkbox.js +1 -1
- package/dist/components/kup-chip.js +1 -1
- package/dist/components/kup-color-picker.js +1 -1
- package/dist/components/kup-combobox.js +1 -1
- package/dist/components/kup-dashboard.js +2 -2
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dialog.js +1 -1
- package/dist/components/kup-drawer.js +2 -2
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart.js +1 -1
- package/dist/components/kup-editor.js +1 -1
- package/dist/components/kup-family-tree.js +3 -3
- package/dist/components/kup-file-upload.js +1 -1
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid.js +1 -1
- package/dist/components/kup-htm.js +2 -2
- package/dist/components/kup-iframe.js +2 -2
- package/dist/components/kup-image-list.js +2 -2
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +55 -27
- package/dist/components/kup-lazy.js +2 -2
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +4 -4
- package/dist/components/kup-nav-bar.js +2 -2
- package/dist/components/kup-numeric-picker.js +2 -2
- package/dist/components/kup-object-field.js +2 -2
- package/dist/components/kup-pdf.js +2 -2
- package/dist/components/kup-planner.js +2 -2
- package/dist/components/kup-probe.js +2 -2
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +2 -2
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +2 -2
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-toolbar.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/components/kup-txt.js +2 -2
- package/dist/components/kup-typography-list.js +2 -2
- package/dist/components/kup-typography.js +2 -2
- package/dist/components/{p-680ee680.js → p-286915d4.js} +2 -2
- package/dist/components/{p-685106b4.js → p-3ba7c133.js} +2 -2
- package/dist/components/{p-e0031e17.js → p-55fda958.js} +2025 -1983
- package/dist/components/{p-8037ef07.js → p-7bdb5142.js} +4 -4
- package/dist/components/{p-73922583.js → p-9859e801.js} +122 -25
- package/dist/components/{p-39e807bc.js → p-a22e5ee4.js} +6 -5
- package/dist/esm/{component-879e99bf.js → component-a35bc7f1.js} +1 -1
- package/dist/esm/{f-cell-eea4e836.js → f-cell-ae0c965d.js} +8 -6
- package/dist/esm/{f-chip-72bcea75.js → f-chip-29242e70.js} +1 -1
- package/dist/esm/{f-object-field-1827746c.js → f-object-field-75069ac2.js} +2 -2
- package/dist/esm/{f-paginator-utils-e785d34e.js → f-paginator-utils-212f93c3.js} +1 -1
- package/dist/esm/{f-text-field-591dc383.js → f-text-field-ebe023fb.js} +2 -2
- package/dist/esm/{f-text-field-mdc-9a862967.js → f-text-field-mdc-81ce6c7c.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +247 -44
- package/dist/esm/kup-activity-timeline.entry.js +2 -2
- package/dist/esm/kup-autocomplete_29.entry.js +164 -131
- package/dist/esm/kup-box.entry.js +9 -9
- package/dist/esm/kup-calendar.entry.js +925 -87
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +5 -5
- package/dist/esm/kup-dashboard.entry.js +4 -4
- package/dist/esm/{kup-data-table-helper-0fbe9df1.js → kup-data-table-helper-ca11e6e9.js} +1 -1
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +5 -4
- package/dist/esm/kup-editor.entry.js +3 -3
- package/dist/esm/kup-family-tree.entry.js +1 -1
- package/dist/esm/kup-grid.entry.js +1 -1
- package/dist/esm/kup-htm.entry.js +1 -1
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-image-list.entry.js +6 -6
- package/dist/esm/kup-input-panel.entry.js +58 -31
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-a3f8ee8f.js → kup-manager-63a8048f.js} +122 -25
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +4 -4
- package/dist/esm/kup-object-field.entry.js +3 -3
- package/dist/esm/kup-pdf.entry.js +1 -1
- package/dist/esm/kup-planner.entry.js +4 -4
- package/dist/esm/kup-probe.entry.js +1 -1
- package/dist/esm/kup-qlik.entry.js +1 -1
- package/dist/esm/kup-snackbar.entry.js +1 -1
- package/dist/esm/kup-txt.entry.js +1 -1
- package/dist/esm/kup-typography-list.entry.js +1 -1
- package/dist/esm/kup-typography.entry.js +1 -1
- 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-102d35b1.js +1 -0
- package/dist/ketchup/p-11e54526.entry.js +1 -0
- package/dist/ketchup/{p-5e55604b.entry.js → p-260587c5.entry.js} +1 -1
- package/dist/ketchup/p-3533879b.entry.js +1 -0
- package/dist/ketchup/{p-8cf7b4a6.entry.js → p-434f2c39.entry.js} +1 -1
- package/dist/ketchup/{p-cd5db3b1.entry.js → p-4365fbd3.entry.js} +1 -1
- package/dist/ketchup/p-43f12940.entry.js +1 -0
- package/dist/ketchup/{p-442a16b1.entry.js → p-4a64f9f2.entry.js} +1 -1
- package/dist/ketchup/{p-64e064f0.js → p-4cfa35bc.js} +1 -1
- package/dist/ketchup/{p-d2e3f987.entry.js → p-5bf3d60d.entry.js} +2 -2
- package/dist/ketchup/p-5d28e8e0.entry.js +8 -0
- package/dist/ketchup/{p-932940cb.js → p-610faea9.js} +1 -1
- package/dist/ketchup/{p-2faa7118.entry.js → p-6c41cd20.entry.js} +1 -1
- package/dist/ketchup/{p-dcf2c5c0.entry.js → p-6f1dec16.entry.js} +1 -1
- package/dist/ketchup/{p-f1886258.js → p-7375d456.js} +1 -1
- package/dist/ketchup/{p-2f0664cb.entry.js → p-7b326bde.entry.js} +1 -1
- package/dist/ketchup/{p-c4054aba.js → p-7db300e0.js} +1 -1
- package/dist/ketchup/{p-36ec5bc3.entry.js → p-7dfc42f0.entry.js} +1 -1
- package/dist/ketchup/p-81743364.entry.js +1 -0
- package/dist/ketchup/p-8610d5b5.js +21 -0
- package/dist/ketchup/{p-beef4fe9.entry.js → p-8ba1d444.entry.js} +1 -1
- package/dist/ketchup/{p-a4168ce9.entry.js → p-93541362.entry.js} +1 -1
- package/dist/ketchup/{p-ee0836a4.entry.js → p-9b200a90.entry.js} +1 -1
- package/dist/ketchup/{p-43dc9f87.entry.js → p-9baa1d6d.entry.js} +1 -1
- package/dist/ketchup/{p-57a93686.entry.js → p-a2d40711.entry.js} +1 -1
- package/dist/ketchup/{p-0f9ae966.entry.js → p-b068a383.entry.js} +1 -1
- package/dist/ketchup/{p-2c11b778.entry.js → p-b6beace3.entry.js} +1 -1
- package/dist/ketchup/{p-5340f777.entry.js → p-b91e3bae.entry.js} +1 -1
- package/dist/ketchup/{p-4c5b911e.entry.js → p-bc789017.entry.js} +1 -1
- package/dist/ketchup/{p-79e580bc.entry.js → p-c8cd012e.entry.js} +1 -1
- package/dist/ketchup/{p-d9ae70bb.entry.js → p-d84e4e90.entry.js} +1 -1
- package/dist/ketchup/{p-d1fa33e0.js → p-da694791.js} +1 -1
- package/dist/ketchup/{p-8140c1d2.js → p-e705eb4a.js} +1 -1
- package/dist/ketchup/{p-21a2d25a.entry.js → p-e7293ae8.entry.js} +1 -1
- package/dist/ketchup/{p-283f7bfc.entry.js → p-eb090acd.entry.js} +1 -1
- package/dist/ketchup/{p-d03527d8.entry.js → p-fb7c0958.entry.js} +1 -1
- package/dist/ketchup/p-fb82cad9.entry.js +1 -0
- package/dist/ketchup/{p-6fe57b1a.entry.js → p-fe42ae2d.entry.js} +1 -1
- package/dist/types/components/kup-accordion/kup-accordion-declarations.d.ts +14 -7
- package/dist/types/components/kup-accordion/kup-accordion.d.ts +62 -6
- package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +3 -1
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +7 -2
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +1 -1
- package/dist/types/components/kup-card/kup-card-helper.d.ts +2 -1
- package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +2 -1
- package/dist/types/components/kup-combobox/kup-combobox.d.ts +5 -0
- package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +2 -1
- package/dist/types/components/kup-input-panel/kup-input-panel-utils.d.ts +1 -1
- package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +6 -0
- package/dist/types/components/kup-tab-bar/kup-tab-bar-declarations.d.ts +6 -1
- package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +1 -5
- package/dist/types/components.d.ts +86 -21
- package/dist/types/f-components/f-radio/f-radio-declarations.d.ts +1 -0
- package/dist/types/managers/kup-dynamic-position/kup-dynamic-position.d.ts +1 -0
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +3 -1
- package/dist/types/managers/kup-perf-tuning/kup-perf-tuning-declarations.d.ts +3 -1
- package/dist/types/managers/kup-perf-tuning/kup-perf-tuning.d.ts +1 -0
- package/dist/types/utils/cell-utils.d.ts +2 -0
- package/package.json +2 -2
- package/dist/ketchup/p-0eea54ac.js +0 -1
- package/dist/ketchup/p-1a9fb6e7.entry.js +0 -1
- package/dist/ketchup/p-32a6feed.entry.js +0 -9
- package/dist/ketchup/p-4c16edda.entry.js +0 -1
- package/dist/ketchup/p-e1281898.entry.js +0 -1
- package/dist/ketchup/p-ec86f88f.entry.js +0 -1
- package/dist/ketchup/p-fb4f10d5.js +0 -21
- package/dist/ketchup/p-fc750bff.entry.js +0 -1
- /package/dist/ketchup/{p-d4a879fc.js → p-c56195a0.js} +0 -0
|
@@ -14,7 +14,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
14
14
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
15
15
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
16
16
|
};
|
|
17
|
-
var _KupAutocomplete_instances, _KupAutocomplete_elStyle, _KupAutocomplete_listEl, _KupAutocomplete_kupManager, _KupAutocomplete_textfieldWrapper, _KupAutocomplete_textfieldEl, _KupAutocomplete_clickCb, _KupAutocomplete_inputTimeout, _KupAutocomplete_openList, _KupAutocomplete_closeList, _KupAutocomplete_isListOpened, _KupAutocomplete_consistencyCheck, _KupAutocomplete_prepList
|
|
17
|
+
var _KupAutocomplete_instances, _KupAutocomplete_elStyle, _KupAutocomplete_listEl, _KupAutocomplete_kupManager, _KupAutocomplete_textfieldWrapper, _KupAutocomplete_textfieldEl, _KupAutocomplete_clickCb, _KupAutocomplete_inputTimeout, _KupAutocomplete_openList, _KupAutocomplete_closeList, _KupAutocomplete_isListOpened, _KupAutocomplete_consistencyCheck, _KupAutocomplete_prepList;
|
|
18
18
|
import { forceUpdate, h, Host, } from "@stencil/core";
|
|
19
19
|
import { kupManagerInstance, } from "../../managers/kup-manager/kup-manager";
|
|
20
20
|
import { FTextField } from "../../f-components/f-text-field/f-text-field";
|
|
@@ -27,6 +27,8 @@ import { KupThemeIconValues } from "../../managers/kup-theme/kup-theme-declarati
|
|
|
27
27
|
import { getProps, setProps } from "../../utils/utils";
|
|
28
28
|
import { componentWrapperId } from "../../variables/GenericVariables";
|
|
29
29
|
import { KupDynamicPositionPlacement } from "../../managers/kup-dynamic-position/kup-dynamic-position-declarations";
|
|
30
|
+
import { getSizeOfInputElement } from "../../utils/cell-utils";
|
|
31
|
+
import { KupLanguageGeneric } from "../../managers/kup-language/kup-language-declarations";
|
|
30
32
|
export class KupAutocomplete {
|
|
31
33
|
constructor() {
|
|
32
34
|
_KupAutocomplete_instances.add(this);
|
|
@@ -68,8 +70,9 @@ export class KupAutocomplete {
|
|
|
68
70
|
this.showMarker = false;
|
|
69
71
|
this.sizing = KupComponentSizing.SMALL;
|
|
70
72
|
this.trailingIcon = false;
|
|
71
|
-
this.placeholder =
|
|
73
|
+
this.placeholder = null;
|
|
72
74
|
this.legacyLook = false;
|
|
75
|
+
this.size = undefined;
|
|
73
76
|
}
|
|
74
77
|
onKupBlur() {
|
|
75
78
|
if (!__classPrivateFieldGet(this, _KupAutocomplete_instances, "m", _KupAutocomplete_isListOpened).call(this)) {
|
|
@@ -168,6 +171,19 @@ export class KupAutocomplete {
|
|
|
168
171
|
node: e.detail.selected,
|
|
169
172
|
});
|
|
170
173
|
}
|
|
174
|
+
onKupClearIconClick() {
|
|
175
|
+
this.value = '';
|
|
176
|
+
this.displayedValue = '';
|
|
177
|
+
__classPrivateFieldGet(this, _KupAutocomplete_textfieldEl, "f").value = '';
|
|
178
|
+
this.kupChange.emit({
|
|
179
|
+
comp: this,
|
|
180
|
+
id: this.rootElement.id,
|
|
181
|
+
value: this.value,
|
|
182
|
+
inputValue: __classPrivateFieldGet(this, _KupAutocomplete_textfieldEl, "f").value,
|
|
183
|
+
node: { value: '' },
|
|
184
|
+
});
|
|
185
|
+
__classPrivateFieldGet(this, _KupAutocomplete_instances, "m", _KupAutocomplete_closeList).call(this);
|
|
186
|
+
}
|
|
171
187
|
/*-------------------------------------------------*/
|
|
172
188
|
/* W a t c h e r s */
|
|
173
189
|
/*-------------------------------------------------*/
|
|
@@ -290,6 +306,7 @@ export class KupAutocomplete {
|
|
|
290
306
|
'kup-text-field': {},
|
|
291
307
|
};
|
|
292
308
|
}
|
|
309
|
+
this.placeholder || (this.placeholder = __classPrivateFieldGet(this, _KupAutocomplete_kupManager, "f").language.translate(KupLanguageGeneric.TYPE_CODE_OR_DESCR));
|
|
293
310
|
}
|
|
294
311
|
componentDidLoad() {
|
|
295
312
|
__classPrivateFieldGet(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, this.value, this.initialValueDecode, true);
|
|
@@ -311,6 +328,7 @@ export class KupAutocomplete {
|
|
|
311
328
|
__classPrivateFieldGet(this, _KupAutocomplete_kupManager, "f").debug.logRender(this, true);
|
|
312
329
|
}
|
|
313
330
|
render() {
|
|
331
|
+
var _a;
|
|
314
332
|
const props = {
|
|
315
333
|
alert: this.alert,
|
|
316
334
|
danger: this.rootElement.classList.contains('kup-danger')
|
|
@@ -336,17 +354,18 @@ export class KupAutocomplete {
|
|
|
336
354
|
? true
|
|
337
355
|
: false,
|
|
338
356
|
showMarker: this.showMarker,
|
|
339
|
-
size: __classPrivateFieldGet(this, _KupAutocomplete_instances, "m", _KupAutocomplete_calcSize).call(this),
|
|
340
357
|
legacyLook: this.legacyLook,
|
|
358
|
+
size: getSizeOfInputElement(this.data, this.displayMode, this.size),
|
|
359
|
+
title: (_a = this.displayedValue) !== null && _a !== void 0 ? _a : '',
|
|
341
360
|
};
|
|
342
361
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
343
362
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
344
|
-
return (h(Host, { key: '
|
|
363
|
+
return (h(Host, { key: '93b9a4c6870519581ca37bf96fbeaa12d8e6d31a', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet(this, _KupAutocomplete_elStyle, "f") }, h("style", { key: 'f441e0889173a7152678b0e09b4ab236d3262888' }, __classPrivateFieldGet(this, _KupAutocomplete_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '72c71c7890ec8574916f9a7f9ef977036776ce01', id: componentWrapperId, style: __classPrivateFieldGet(this, _KupAutocomplete_elStyle, "f") }, h(FTextField, Object.assign({ key: '8db16287e57a8b2d025326913945e89092a2b0c7' }, props, { icon: this.showDropDownIcon
|
|
345
364
|
? KupThemeIconValues.SEARCH
|
|
346
365
|
: null, trailingIcon: true }, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupClick(), onChange: (e) => this.onKupChange(e.target.value), onFocus: () => this.onKupFocus(), onInput: () => {
|
|
347
366
|
window.clearTimeout(__classPrivateFieldGet(this, _KupAutocomplete_inputTimeout, "f"));
|
|
348
367
|
__classPrivateFieldSet(this, _KupAutocomplete_inputTimeout, window.setTimeout(() => this.onKupInput(), this.inputDelay), "f");
|
|
349
|
-
}, onIconClick: () => this.onKupIconClick() }))), __classPrivateFieldGet(this, _KupAutocomplete_instances, "m", _KupAutocomplete_prepList).call(this)));
|
|
368
|
+
}, onIconClick: () => this.onKupIconClick(), onClearIconClick: () => this.onKupClearIconClick() }))), __classPrivateFieldGet(this, _KupAutocomplete_instances, "m", _KupAutocomplete_prepList).call(this)));
|
|
350
369
|
}
|
|
351
370
|
disconnectedCallback() {
|
|
352
371
|
if (__classPrivateFieldGet(this, _KupAutocomplete_listEl, "f")) {
|
|
@@ -889,13 +908,13 @@ export class KupAutocomplete {
|
|
|
889
908
|
"docs": {
|
|
890
909
|
"tags": [{
|
|
891
910
|
"name": "default",
|
|
892
|
-
"text": "
|
|
911
|
+
"text": "'Type code or description'"
|
|
893
912
|
}],
|
|
894
|
-
"text": "Set custom placeholder / watermark for text field"
|
|
913
|
+
"text": "Set custom placeholder / watermark for text field, if not set the default one will be taken on component load."
|
|
895
914
|
},
|
|
896
915
|
"attribute": "placeholder",
|
|
897
916
|
"reflect": false,
|
|
898
|
-
"defaultValue": "
|
|
917
|
+
"defaultValue": "null"
|
|
899
918
|
},
|
|
900
919
|
"legacyLook": {
|
|
901
920
|
"type": "boolean",
|
|
@@ -917,6 +936,23 @@ export class KupAutocomplete {
|
|
|
917
936
|
"attribute": "legacy-look",
|
|
918
937
|
"reflect": false,
|
|
919
938
|
"defaultValue": "false"
|
|
939
|
+
},
|
|
940
|
+
"size": {
|
|
941
|
+
"type": "number",
|
|
942
|
+
"mutable": false,
|
|
943
|
+
"complexType": {
|
|
944
|
+
"original": "number",
|
|
945
|
+
"resolved": "number",
|
|
946
|
+
"references": {}
|
|
947
|
+
},
|
|
948
|
+
"required": false,
|
|
949
|
+
"optional": false,
|
|
950
|
+
"docs": {
|
|
951
|
+
"tags": [],
|
|
952
|
+
"text": "Sets the size of the input element"
|
|
953
|
+
},
|
|
954
|
+
"attribute": "size",
|
|
955
|
+
"reflect": false
|
|
920
956
|
}
|
|
921
957
|
};
|
|
922
958
|
}
|
|
@@ -1333,24 +1369,4 @@ _KupAutocomplete_elStyle = new WeakMap(), _KupAutocomplete_listEl = new WeakMap(
|
|
|
1333
1369
|
}
|
|
1334
1370
|
}, _KupAutocomplete_prepList = function _KupAutocomplete_prepList() {
|
|
1335
1371
|
return (h("kup-list", Object.assign({ displayMode: this.listDisplayMode }, this.data['kup-list'], { isMenu: true, "onkup-list-click": (e) => this.onKupItemClick(e), ref: (el) => (__classPrivateFieldSet(this, _KupAutocomplete_listEl, el, "f")) })));
|
|
1336
|
-
}, _KupAutocomplete_calcSize = function _KupAutocomplete_calcSize() {
|
|
1337
|
-
var _a, _b;
|
|
1338
|
-
// Explicitly setting size from sub-components props, if present
|
|
1339
|
-
if ((_a = this.data['kup-text-field']) === null || _a === void 0 ? void 0 : _a.size) {
|
|
1340
|
-
return (_b = this.data['kup-text-field']) === null || _b === void 0 ? void 0 : _b.size;
|
|
1341
|
-
}
|
|
1342
|
-
else {
|
|
1343
|
-
switch (this.displayMode) {
|
|
1344
|
-
case ItemsDisplayMode.CODE:
|
|
1345
|
-
return 15;
|
|
1346
|
-
case ItemsDisplayMode.DESCRIPTION:
|
|
1347
|
-
return 35;
|
|
1348
|
-
case ItemsDisplayMode.CODE_AND_DESC:
|
|
1349
|
-
case ItemsDisplayMode.CODE_AND_DESC_ALIAS:
|
|
1350
|
-
case ItemsDisplayMode.DESC_AND_CODE:
|
|
1351
|
-
return 50;
|
|
1352
|
-
default:
|
|
1353
|
-
return 35;
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
1372
|
};
|
|
@@ -350,6 +350,19 @@
|
|
|
350
350
|
.calendar .fc-view-harness {
|
|
351
351
|
min-height: 450px;
|
|
352
352
|
}
|
|
353
|
+
.fc-event {
|
|
354
|
+
display: flex;
|
|
355
|
+
flex-direction: column;
|
|
356
|
+
padding: 0.2rem;
|
|
357
|
+
gap: var(--kup-space-03);
|
|
358
|
+
}
|
|
359
|
+
.fc-event .fc-event-main {
|
|
360
|
+
display: flex;
|
|
361
|
+
flex-direction: column;
|
|
362
|
+
}
|
|
363
|
+
.fc-event .fc-daygrid-event-dot {
|
|
364
|
+
display: none;
|
|
365
|
+
}
|
|
353
366
|
.navigation .navigation__left {
|
|
354
367
|
font-size: 20px;
|
|
355
368
|
gap: 8px;
|
|
@@ -143,7 +143,7 @@ async function applyFormula(component) {
|
|
|
143
143
|
? parts[1].trim()
|
|
144
144
|
: valueString;
|
|
145
145
|
if (premadeFormulas.includes(value)) {
|
|
146
|
-
dom.ketchup.data.column.new(options.data, KupDataNewColumnTypes.MATH, {
|
|
146
|
+
const result = dom.ketchup.data.column.new(options.data, KupDataNewColumnTypes.MATH, {
|
|
147
147
|
columns: [
|
|
148
148
|
options.receivingColumn.name,
|
|
149
149
|
options.starterColumn.name,
|
|
@@ -154,7 +154,7 @@ async function applyFormula(component) {
|
|
|
154
154
|
operation: value,
|
|
155
155
|
});
|
|
156
156
|
if (options.formulaCb !== undefined) {
|
|
157
|
-
options.formulaCb();
|
|
157
|
+
options.formulaCb(result);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
else {
|
|
@@ -170,7 +170,7 @@ async function applyFormula(component) {
|
|
|
170
170
|
combobox.refresh();
|
|
171
171
|
}
|
|
172
172
|
else if (options.formulaCb !== undefined) {
|
|
173
|
-
options.formulaCb();
|
|
173
|
+
options.formulaCb(result);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
}
|
|
@@ -7,11 +7,12 @@ import { KupThemeColorValues } from "../../managers/kup-theme/kup-theme-declarat
|
|
|
7
7
|
* This function returns a list of components.
|
|
8
8
|
* @param {GenericObject[]} compArray - Components' props.
|
|
9
9
|
* @param {string} compType - Components' type.
|
|
10
|
+
* @param {number} maxLength - Maximum number of components to return.
|
|
10
11
|
* @returns {JSX.Element[]} List of components.
|
|
11
12
|
*/
|
|
12
|
-
export function compList(compArray, compType) {
|
|
13
|
+
export function compList(compArray, compType, maxLength = compArray.length) {
|
|
13
14
|
let list = [];
|
|
14
|
-
for (let index = 0; index < compArray.length; index++) {
|
|
15
|
+
for (let index = 0; index < Math.min(maxLength, compArray.length); index++) {
|
|
15
16
|
if (typeof compArray[0] !== 'string' &&
|
|
16
17
|
!compArray[index].id) {
|
|
17
18
|
compArray[index]['id'] = compType + index;
|
|
@@ -3128,6 +3128,14 @@
|
|
|
3128
3128
|
margin-left: 0;
|
|
3129
3129
|
margin-right: auto;
|
|
3130
3130
|
}
|
|
3131
|
+
.standard-layout-12 .sub-filters-warning {
|
|
3132
|
+
display: flex;
|
|
3133
|
+
justify-content: center;
|
|
3134
|
+
padding-top: var(--kup-space-05);
|
|
3135
|
+
}
|
|
3136
|
+
.standard-layout-12 .sub-filters-warning label {
|
|
3137
|
+
font-size: var(--kup-label-01-font-size, 12px);
|
|
3138
|
+
}
|
|
3131
3139
|
|
|
3132
3140
|
.standard-layout-13 {
|
|
3133
3141
|
background-color: var(--kup-background-color);
|
|
@@ -3303,6 +3311,14 @@
|
|
|
3303
3311
|
margin-left: 0;
|
|
3304
3312
|
margin-right: auto;
|
|
3305
3313
|
}
|
|
3314
|
+
.standard-layout-14 .sub-filters-warning {
|
|
3315
|
+
display: flex;
|
|
3316
|
+
justify-content: center;
|
|
3317
|
+
padding-top: var(--kup-space-05);
|
|
3318
|
+
}
|
|
3319
|
+
.standard-layout-14 .sub-filters-warning label {
|
|
3320
|
+
font-size: var(--kup-label-01-font-size, 12px);
|
|
3321
|
+
}
|
|
3306
3322
|
.standard-layout-14 .sub-formula {
|
|
3307
3323
|
padding: 0.5em 0;
|
|
3308
3324
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
1
|
+
import { Fragment, h } from "@stencil/core";
|
|
2
2
|
import { FImage } from "../../../f-components/f-image/f-image";
|
|
3
3
|
import { compList } from "../kup-card-helper";
|
|
4
4
|
import { KupLanguageColumn, KupLanguageGeneric, KupLanguageSearch, } from "../../../managers/kup-language/kup-language-declarations";
|
|
@@ -7,7 +7,9 @@ import { KupCardCSSClasses, KupCardIds } from "../kup-card-declarations";
|
|
|
7
7
|
import { KupColumnMenuIds } from "../../../utils/kup-column-menu/kup-column-menu-declarations";
|
|
8
8
|
import { KupThemeColorValues } from "../../../managers/kup-theme/kup-theme-declarations";
|
|
9
9
|
import { FButtonStyling } from "../../../f-components/f-button/f-button-declarations";
|
|
10
|
+
import { kupManagerInstance } from "../../../managers/kup-manager/kup-manager";
|
|
10
11
|
const dom = document.documentElement;
|
|
12
|
+
const kupManager = kupManagerInstance();
|
|
11
13
|
/**
|
|
12
14
|
* 1st standard card layout, inspired by Material Design.
|
|
13
15
|
* @param {KupCard} component - Card component.
|
|
@@ -370,6 +372,7 @@ export function create12(component) {
|
|
|
370
372
|
buttonsIds.push(button['id']);
|
|
371
373
|
}
|
|
372
374
|
}
|
|
375
|
+
const filtersMaxLen = kupManager.perfTuning.data.filtersMaxLength;
|
|
373
376
|
return (h("div", { class: `standard-layout-${component.layoutNumber} ` }, buttonsIds.includes(KupColumnMenuIds.BUTTON_REMOVE) ||
|
|
374
377
|
buttonsIds.includes(KupColumnMenuIds.BUTTON_GROUP) ||
|
|
375
378
|
buttonsIds.includes(KupColumnMenuIds.BUTTON_ADD_COLUMNS) ? (h("div", { class: "section-1" }, buttonsIds.includes(KupColumnMenuIds.BUTTON_REMOVE) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id === KupColumnMenuIds.BUTTON_REMOVE)))) : null, buttonsIds.includes(KupColumnMenuIds.BUTTON_GROUP) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id === KupColumnMenuIds.BUTTON_GROUP)))) : null, buttonsIds.includes(KupColumnMenuIds.BUTTON_ADD_COLUMNS) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id === KupColumnMenuIds.BUTTON_ADD_COLUMNS)))) : null)) : null, h("div", { class: `section-2 ${textfieldArray.length > 0 ||
|
|
@@ -382,7 +385,7 @@ export function create12(component) {
|
|
|
382
385
|
? compList(textfieldArray, 'textfield')
|
|
383
386
|
: null, timepickerArray.length > 0
|
|
384
387
|
? compList(timepickerArray, 'timepicker')
|
|
385
|
-
: null), checkboxArray.length > 0 ? (h("div", { class: "section-3" }, compList(checkboxArray, 'checkbox'))) : null));
|
|
388
|
+
: null), checkboxArray.length > 0 ? (h(Fragment, null, getFiltersWarningElement(checkboxArray, filtersMaxLen), h("div", { class: "section-3" }, compList(checkboxArray, 'checkbox', filtersMaxLen)))) : null));
|
|
386
389
|
}
|
|
387
390
|
/**
|
|
388
391
|
* 13th standard card layout, buttons and text lines, used for debug window.
|
|
@@ -491,6 +494,7 @@ export function create14(component) {
|
|
|
491
494
|
}
|
|
492
495
|
}
|
|
493
496
|
const tooltipText = dom.ketchup.language.translate(KupLanguageSearch.TOOLTIP);
|
|
497
|
+
const filtersMaxLen = kupManager.perfTuning.data.filtersMaxLength;
|
|
494
498
|
return (h("div", { class: `standard-layout-${component.layoutNumber} ` }, objectArray[0] ? (h("div", { class: "section-1" }, imageArray[0] ? (h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "84px", sizeY: "84px" }))) : (h("div", { class: "sub-spinner" }, h("kup-spinner", { active: true, dimensions: "7px", layout: 14 }))), h("div", { class: "sub-1" }, textArray[0] ||
|
|
495
499
|
buttonsIds.includes(KupColumnMenuIds.BUTTON_OPEN_IN_NEW) ||
|
|
496
500
|
buttonsIds.includes(KupColumnMenuIds.BUTTON_SEARCH) ? (h("div", { class: "top" }, textArray[0] ? (h("div", { class: "title" }, h("span", { class: `label ${KupCardCSSClasses.CLICKABLE_LINK}`, id: "title-link" }, textArray[0]))) : null, buttonsIds.includes(KupColumnMenuIds.BUTTON_OPEN_IN_NEW) ||
|
|
@@ -510,7 +514,7 @@ export function create14(component) {
|
|
|
510
514
|
? compList(textfieldArray, 'textfield')
|
|
511
515
|
: null, timepickerArray.length > 0
|
|
512
516
|
? compList(timepickerArray, 'timepicker')
|
|
513
|
-
: null), checkboxArray.length > 0 ? (h("div", { class: "sub-checkbox" }, compList(checkboxArray, 'checkbox'))) : null)) : null, tabsValues.includes(KupLanguageColumn.COLUMNS) ? (h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex} ${visibleView === viewIndex++
|
|
517
|
+
: null), checkboxArray.length > 0 ? (h(Fragment, null, getFiltersWarningElement(checkboxArray, filtersMaxLen), h("div", { class: "sub-checkbox" }, compList(checkboxArray, 'checkbox', filtersMaxLen)))) : null)) : null, tabsValues.includes(KupLanguageColumn.COLUMNS) ? (h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex} ${visibleView === viewIndex++
|
|
514
518
|
? KupCardCSSClasses.VISIBLE
|
|
515
519
|
: ''}` }, h("div", { class: "sub-button" }, buttonsIds.includes(KupColumnMenuIds.BUTTON_REMOVE) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
|
|
516
520
|
KupColumnMenuIds.BUTTON_REMOVE)))) : null, buttonsIds.includes(KupColumnMenuIds.BUTTON_GROUP) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
|
|
@@ -650,3 +654,6 @@ export function create17(component) {
|
|
|
650
654
|
return h("kup-list", Object.assign({}, b));
|
|
651
655
|
}))) : null)));
|
|
652
656
|
}
|
|
657
|
+
function getFiltersWarningElement(checkboxArray, filtersMaxLength) {
|
|
658
|
+
return checkboxArray.length > filtersMaxLength ? (h("div", { class: 'sub-filters-warning' }, h("label", null, kupManager.language.translate(KupLanguageGeneric.PARTIAL_FILTERS_LIST)))) : null;
|
|
659
|
+
}
|
|
@@ -196,13 +196,15 @@ export class KupChip {
|
|
|
196
196
|
props.onFocus.push((chip) => this.onKupFocus(chip));
|
|
197
197
|
props.onIconClick.push((chip) => this.onKupIconClick(chip));
|
|
198
198
|
}
|
|
199
|
-
return (h(Host, { key: '
|
|
199
|
+
return (h(Host, { key: 'd8cfebdb07ba8edd6dc3537932d0bc0af691f35b', "onKup-autocomplete-itemclick": (e) => {
|
|
200
200
|
__classPrivateFieldGet(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
201
201
|
}, "onKup-combobox-itemclick": (e) => {
|
|
202
202
|
__classPrivateFieldGet(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
203
203
|
}, "onKup-textfield-change": (e) => {
|
|
204
204
|
__classPrivateFieldGet(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
205
|
-
}
|
|
205
|
+
}, "onKup-textfield-submit": (e) => {
|
|
206
|
+
__classPrivateFieldGet(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
207
|
+
} }, h("style", { key: '752eb1a7d0ac346204c4c1cf05c02a7d4d95fd7d' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '70df2afbe8e3a484cb6894607fe6e951bf60679d', id: componentWrapperId }, this.label ? (h("div", { class: "mdc-text-field__label-container" }, h("label", { class: "mdc-label" }, this.label))) : null, ((_a = this.data) === null || _a === void 0 ? void 0 : _a.length) > 0 ? h(FChip, Object.assign({}, props)) : null, h("slot", { key: 'f3c578d5f21090cd839b4048e4a5996d96c36eb0', name: "field" }))));
|
|
206
208
|
}
|
|
207
209
|
disconnectedCallback() {
|
|
208
210
|
this.kupManager.theme.unregister(this);
|
|
@@ -692,7 +694,5 @@ _KupChip_instances = new WeakSet(), _KupChip_changeHandler =
|
|
|
692
694
|
stringifiedValues: __classPrivateFieldGet(this, _KupChip_instances, "m", _KupChip_stringifiedValues).call(this),
|
|
693
695
|
});
|
|
694
696
|
}, _KupChip_stringifiedValues = function _KupChip_stringifiedValues() {
|
|
695
|
-
|
|
696
|
-
this.data.forEach((node) => (stringifiedValues += node.id + ';'));
|
|
697
|
-
return stringifiedValues;
|
|
697
|
+
return this.data.map((node) => node.id).join(';');
|
|
698
698
|
};
|
|
@@ -18,4 +18,5 @@ export var KupComboboxProps;
|
|
|
18
18
|
KupComboboxProps["leadingLabel"] = "When set to true, the label will be on the left of the component.";
|
|
19
19
|
KupComboboxProps["showMarker"] = "When true shows a small marker on the component";
|
|
20
20
|
KupComboboxProps["legacyLook"] = "When true enables the monospaced look for the CMB component";
|
|
21
|
+
KupComboboxProps["size"] = "Sets the size of the input element";
|
|
21
22
|
})(KupComboboxProps || (KupComboboxProps = {}));
|
|
@@ -27,6 +27,7 @@ import { KupThemeIconValues } from "../../managers/kup-theme/kup-theme-declarati
|
|
|
27
27
|
import { getProps, setProps } from "../../utils/utils";
|
|
28
28
|
import { componentWrapperId } from "../../variables/GenericVariables";
|
|
29
29
|
import { KupDynamicPositionPlacement } from "../../managers/kup-dynamic-position/kup-dynamic-position-declarations";
|
|
30
|
+
import { getSizeOfInputElement } from "../../utils/cell-utils";
|
|
30
31
|
export class KupCombobox {
|
|
31
32
|
constructor() {
|
|
32
33
|
_KupCombobox_instances.add(this);
|
|
@@ -63,6 +64,7 @@ export class KupCombobox {
|
|
|
63
64
|
this.trailingIcon = false;
|
|
64
65
|
this.showMarker = false;
|
|
65
66
|
this.legacyLook = false;
|
|
67
|
+
this.size = undefined;
|
|
66
68
|
}
|
|
67
69
|
onKupBlur() {
|
|
68
70
|
if (!__classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_isListOpened).call(this)) {
|
|
@@ -139,6 +141,19 @@ export class KupCombobox {
|
|
|
139
141
|
inputValue: __classPrivateFieldGet(this, _KupCombobox_textfieldEl, "f").value,
|
|
140
142
|
});
|
|
141
143
|
}
|
|
144
|
+
onKupClearIconClick() {
|
|
145
|
+
this.value = '';
|
|
146
|
+
this.displayedValue = '';
|
|
147
|
+
__classPrivateFieldGet(this, _KupCombobox_textfieldEl, "f").value = '';
|
|
148
|
+
this.kupChange.emit({
|
|
149
|
+
comp: this,
|
|
150
|
+
id: this.rootElement.id,
|
|
151
|
+
value: this.value,
|
|
152
|
+
inputValue: __classPrivateFieldGet(this, _KupCombobox_textfieldEl, "f").value,
|
|
153
|
+
node: { value: '' },
|
|
154
|
+
});
|
|
155
|
+
__classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_closeList).call(this);
|
|
156
|
+
}
|
|
142
157
|
/*-------------------------------------------------*/
|
|
143
158
|
/* W a t c h e r s */
|
|
144
159
|
/*-------------------------------------------------*/
|
|
@@ -282,6 +297,7 @@ export class KupCombobox {
|
|
|
282
297
|
__classPrivateFieldGet(this, _KupCombobox_kupManager, "f").debug.logRender(this, true);
|
|
283
298
|
}
|
|
284
299
|
render() {
|
|
300
|
+
var _a;
|
|
285
301
|
const props = {
|
|
286
302
|
alert: this.alert,
|
|
287
303
|
danger: this.rootElement.classList.contains('kup-danger')
|
|
@@ -308,12 +324,14 @@ export class KupCombobox {
|
|
|
308
324
|
: false,
|
|
309
325
|
showMarker: this.showMarker,
|
|
310
326
|
legacyLook: this.legacyLook,
|
|
327
|
+
size: getSizeOfInputElement(this.data, this.displayMode, this.size),
|
|
328
|
+
title: (_a = this.displayedValue) !== null && _a !== void 0 ? _a : '',
|
|
311
329
|
};
|
|
312
330
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
313
331
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
314
|
-
return (h(Host, { key: '
|
|
332
|
+
return (h(Host, { key: '3a668e909d00508d820581ceb71cec02bf640fa6', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet(this, _KupCombobox_elStyle, "f") }, h("style", { key: '8fe26ceec376d17b2fb81825d9e7c3ed9839d8a4' }, __classPrivateFieldGet(this, _KupCombobox_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '56d4ec7e7dc9ec8d95082d7f0f53830c0cd66170', id: componentWrapperId, style: __classPrivateFieldGet(this, _KupCombobox_elStyle, "f") }, h(FTextField, Object.assign({ key: '61a0a16cb31b1dcdb5d91d5ebe4be550c81a93f2' }, props, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, trailingIcon: true, icon: this.showDropDownIcon
|
|
315
333
|
? KupThemeIconValues.DROPDOWN
|
|
316
|
-
: null, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupIconClick(), onChange: (e) => this.onKupChange(e.target.value), onFocus: () => this.onKupFocus(), onInput: () => this.onKupInput(), onIconClick: () => this.onKupIconClick() }))), __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_prepList).call(this)));
|
|
334
|
+
: null, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupIconClick(), onChange: (e) => this.onKupChange(e.target.value), onFocus: () => this.onKupFocus(), onInput: () => this.onKupInput(), onIconClick: () => this.onKupIconClick(), onClearIconClick: () => this.onKupClearIconClick() }))), __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_prepList).call(this)));
|
|
317
335
|
}
|
|
318
336
|
disconnectedCallback() {
|
|
319
337
|
if (__classPrivateFieldGet(this, _KupCombobox_listEl, "f")) {
|
|
@@ -779,6 +797,23 @@ export class KupCombobox {
|
|
|
779
797
|
"attribute": "legacy-look",
|
|
780
798
|
"reflect": false,
|
|
781
799
|
"defaultValue": "false"
|
|
800
|
+
},
|
|
801
|
+
"size": {
|
|
802
|
+
"type": "number",
|
|
803
|
+
"mutable": false,
|
|
804
|
+
"complexType": {
|
|
805
|
+
"original": "number",
|
|
806
|
+
"resolved": "number",
|
|
807
|
+
"references": {}
|
|
808
|
+
},
|
|
809
|
+
"required": false,
|
|
810
|
+
"optional": false,
|
|
811
|
+
"docs": {
|
|
812
|
+
"tags": [],
|
|
813
|
+
"text": "Sets the size of the input element"
|
|
814
|
+
},
|
|
815
|
+
"attribute": "size",
|
|
816
|
+
"reflect": false
|
|
782
817
|
}
|
|
783
818
|
};
|
|
784
819
|
}
|