@sme.up/ketchup 10.3.0 → 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-cfdd6703.js → f-cell-7a2faf7a.js} +9 -7
- package/dist/cjs/{f-chip-24b1eb58.js → f-chip-f2d6124b.js} +1 -1
- package/dist/cjs/{f-object-field-2ffc49c1.js → f-object-field-3810f288.js} +2 -2
- package/dist/cjs/{f-paginator-utils-51bb9317.js → f-paginator-utils-3855e84c.js} +1 -1
- package/dist/cjs/{f-text-field-5face063.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 +952 -901
- package/dist/cjs/kup-box.cjs.entry.js +86 -71
- package/dist/cjs/kup-calendar.cjs.entry.js +1036 -180
- 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-6f4d86ea.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 +10 -9
- package/dist/cjs/kup-input-panel.cjs.entry.js +60 -36
- 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-49d2d8fe.js → kup-manager-c70d3188.js} +171 -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-box/kup-box.js +92 -62
- package/dist/collection/components/kup-calendar/kup-calendar.css +18 -1
- package/dist/collection/components/kup-calendar/kup-calendar.js +32 -14
- 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 +63 -52
- 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-image/assets/svg/bullseye-arrow.svg +1 -0
- package/dist/collection/components/kup-image/assets/svg/email-stacked.svg +1 -0
- package/dist/collection/components/kup-image/assets/svg/filter-off.svg +1 -0
- package/dist/collection/components/kup-image/assets/svg/status.svg +9 -0
- package/dist/collection/components/kup-image-list/kup-image-list.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 +55 -18
- 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 +14 -11
- package/dist/collection/f-components/f-cell/f-cell.js +3 -2
- 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 +51 -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 +1037 -181
- 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 +6 -5
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +57 -32
- 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-2a4abe21.js → p-286915d4.js} +2 -2
- package/dist/components/{p-c45e24b0.js → p-3ba7c133.js} +80 -64
- package/dist/components/{p-1ee81222.js → p-55fda958.js} +2049 -1989
- package/dist/components/{p-66d53743.js → p-7bdb5142.js} +4 -4
- package/dist/components/{p-7550d08c.js → p-9859e801.js} +171 -25
- package/dist/components/{p-7dd33834.js → p-a22e5ee4.js} +6 -5
- package/dist/esm/{component-879e99bf.js → component-a35bc7f1.js} +1 -1
- package/dist/esm/{f-cell-fbe84498.js → f-cell-ae0c965d.js} +9 -7
- package/dist/esm/{f-chip-35dfafdb.js → f-chip-29242e70.js} +1 -1
- package/dist/esm/{f-object-field-fa368c87.js → f-object-field-75069ac2.js} +2 -2
- package/dist/esm/{f-paginator-utils-d7e6b742.js → f-paginator-utils-212f93c3.js} +1 -1
- package/dist/esm/{f-text-field-dcf09b57.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 +189 -138
- package/dist/esm/kup-box.entry.js +86 -71
- package/dist/esm/kup-calendar.entry.js +1037 -181
- 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-537035b9.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 +10 -9
- package/dist/esm/kup-input-panel.entry.js +60 -36
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-2b2b7c68.js → kup-manager-63a8048f.js} +171 -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/assets/svg/bullseye-arrow.svg +1 -0
- package/dist/ketchup/assets/svg/email-stacked.svg +1 -0
- package/dist/ketchup/assets/svg/filter-off.svg +1 -0
- package/dist/ketchup/assets/svg/status.svg +9 -0
- 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-7b45a31b.entry.js → p-260587c5.entry.js} +1 -1
- package/dist/ketchup/p-3533879b.entry.js +1 -0
- package/dist/ketchup/{p-4a6c6bf4.entry.js → p-434f2c39.entry.js} +1 -1
- package/dist/ketchup/{p-8932614c.entry.js → p-4365fbd3.entry.js} +1 -1
- package/dist/ketchup/p-43f12940.entry.js +1 -0
- package/dist/ketchup/p-4a64f9f2.entry.js +1 -0
- package/dist/ketchup/p-4cfa35bc.js +1 -0
- package/dist/ketchup/{p-d7d84da0.entry.js → p-5bf3d60d.entry.js} +2 -2
- package/dist/ketchup/p-5d28e8e0.entry.js +8 -0
- package/dist/ketchup/{p-e78670d8.js → p-610faea9.js} +1 -1
- package/dist/ketchup/{p-3aa35543.entry.js → p-6c41cd20.entry.js} +1 -1
- package/dist/ketchup/{p-19689040.entry.js → p-6f1dec16.entry.js} +1 -1
- package/dist/ketchup/{p-0a60f2ec.js → p-7375d456.js} +1 -1
- package/dist/ketchup/{p-f69679df.entry.js → p-7b326bde.entry.js} +1 -1
- package/dist/ketchup/{p-c4054aba.js → p-7db300e0.js} +1 -1
- package/dist/ketchup/{p-446fedb6.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-3c882916.entry.js → p-8ba1d444.entry.js} +1 -1
- package/dist/ketchup/p-93541362.entry.js +1 -0
- package/dist/ketchup/{p-bce5be1c.entry.js → p-9b200a90.entry.js} +1 -1
- package/dist/ketchup/{p-7722245b.entry.js → p-9baa1d6d.entry.js} +1 -1
- package/dist/ketchup/{p-058d9f3a.entry.js → p-a2d40711.entry.js} +1 -1
- package/dist/ketchup/{p-e695fd91.entry.js → p-b068a383.entry.js} +1 -1
- package/dist/ketchup/p-b6beace3.entry.js +1 -0
- package/dist/ketchup/{p-8a8da47d.entry.js → p-b91e3bae.entry.js} +1 -1
- package/dist/ketchup/{p-3eb4daa3.entry.js → p-bc789017.entry.js} +1 -1
- package/dist/ketchup/{p-63117858.entry.js → p-c8cd012e.entry.js} +1 -1
- package/dist/ketchup/{p-328896f0.entry.js → p-d84e4e90.entry.js} +1 -1
- package/dist/ketchup/{p-0f7a8165.js → p-da694791.js} +1 -1
- package/dist/ketchup/{p-eaabc269.js → p-e705eb4a.js} +1 -1
- package/dist/ketchup/{p-35e03e2f.entry.js → p-e7293ae8.entry.js} +1 -1
- package/dist/ketchup/{p-13f159d6.entry.js → p-eb090acd.entry.js} +1 -1
- package/dist/ketchup/{p-6714d68a.entry.js → p-fb7c0958.entry.js} +1 -1
- package/dist/ketchup/p-fb82cad9.entry.js +1 -0
- package/dist/ketchup/{p-4418988a.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-box/kup-box.d.ts +4 -5
- 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 +94 -21
- package/dist/types/f-components/f-radio/f-radio-declarations.d.ts +1 -0
- package/dist/types/managers/kup-data/kup-data.d.ts +11 -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-0866ddcf.entry.js +0 -1
- package/dist/ketchup/p-1f32300c.entry.js +0 -1
- package/dist/ketchup/p-2020fbaf.entry.js +0 -1
- package/dist/ketchup/p-32aa082e.entry.js +0 -1
- package/dist/ketchup/p-45d34ba7.js +0 -1
- package/dist/ketchup/p-4a44bef2.entry.js +0 -1
- package/dist/ketchup/p-6eb5f3da.js +0 -1
- package/dist/ketchup/p-8feabbf8.entry.js +0 -1
- package/dist/ketchup/p-97d8720e.entry.js +0 -1
- package/dist/ketchup/p-cd73eaec.js +0 -21
- package/dist/ketchup/p-e6be6193.entry.js +0 -9
- package/dist/ketchup/p-f69923dd.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
|
};
|
|
@@ -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 _KupBox_instances, _KupBox_checkUpdateState, _KupBox_intObserver, _KupBox_rowsRefs, _KupBox_navBarHeight, _KupBox_loadMoreEventCounter, _KupBox_loadMoreEventPreviousQuantity, _KupBox_didRenderObservers, _KupBox_setObserver, _KupBox_onLoadMoreClick;
|
|
17
|
+
var _KupBox_instances, _KupBox_checkUpdateState, _KupBox_kupManager, _KupBox_intObserver, _KupBox_rowsRefs, _KupBox_navBarHeight, _KupBox_loadMoreEventCounter, _KupBox_loadMoreEventPreviousQuantity, _KupBox_didRenderObservers, _KupBox_setObserver, _KupBox_onLoadMoreClick;
|
|
18
18
|
import { forceUpdate, h, Host, } from "@stencil/core";
|
|
19
19
|
import { SortMode, } from "../kup-data-table/kup-data-table-declarations";
|
|
20
20
|
import { KupBoxProps, LoadMoreMode, } from "./kup-box-declarations";
|
|
@@ -44,8 +44,7 @@ export class KupBox {
|
|
|
44
44
|
/**
|
|
45
45
|
* Instance of the KupManager class.
|
|
46
46
|
*/
|
|
47
|
-
this
|
|
48
|
-
this.visibleColumns = [];
|
|
47
|
+
_KupBox_kupManager.set(this, kupManagerInstance());
|
|
49
48
|
this.rows = [];
|
|
50
49
|
this.filteredRows = [];
|
|
51
50
|
this.sectionRef = null;
|
|
@@ -95,13 +94,14 @@ export class KupBox {
|
|
|
95
94
|
this.stateId = '';
|
|
96
95
|
this.store = undefined;
|
|
97
96
|
this.swipeDisabled = false;
|
|
97
|
+
this.visibleColumns = undefined;
|
|
98
98
|
}
|
|
99
99
|
initWithPersistedState() {
|
|
100
100
|
if (this.store && this.stateId) {
|
|
101
101
|
this.state.load = true;
|
|
102
102
|
const state = this.store.getState(this.stateId);
|
|
103
103
|
if (state != null) {
|
|
104
|
-
this.
|
|
104
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, 'Initialize with state for stateId ' +
|
|
105
105
|
this.stateId +
|
|
106
106
|
': ' +
|
|
107
107
|
state);
|
|
@@ -124,7 +124,7 @@ export class KupBox {
|
|
|
124
124
|
return;
|
|
125
125
|
}
|
|
126
126
|
if (somethingChanged) {
|
|
127
|
-
this.
|
|
127
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, 'Persisting stateId ' + this.stateId);
|
|
128
128
|
this.store.persistState(this.stateId, this.state);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
@@ -140,7 +140,6 @@ export class KupBox {
|
|
|
140
140
|
}
|
|
141
141
|
onDataChanged() {
|
|
142
142
|
identify(this.getRows());
|
|
143
|
-
this.initVisibleColumns();
|
|
144
143
|
this.initRows();
|
|
145
144
|
this.checkLayout();
|
|
146
145
|
}
|
|
@@ -187,13 +186,24 @@ export class KupBox {
|
|
|
187
186
|
? this.data.columns
|
|
188
187
|
: [{ title: '', name: '', size: undefined }];
|
|
189
188
|
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
189
|
+
getVisibleColumns() {
|
|
190
|
+
// Starting columns filter
|
|
191
|
+
let resultVisibleColumns = this.getColumns().filter((col) => {
|
|
192
|
+
const isNotCodVer = !__classPrivateFieldGet(this, _KupBox_kupManager, "f").data.column.isCodVer(col);
|
|
193
|
+
if (this.visibleColumns) {
|
|
194
|
+
// if visible columns is specified, include only those columns
|
|
195
|
+
return isNotCodVer && this.visibleColumns.includes(col.name);
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
return isNotCodVer && (!('visible' in col) || col.visible);
|
|
194
199
|
}
|
|
195
|
-
return true;
|
|
196
200
|
});
|
|
201
|
+
// order based on `visibleColumns`
|
|
202
|
+
if (this.visibleColumns) {
|
|
203
|
+
resultVisibleColumns = resultVisibleColumns.sort((a, b) => this.visibleColumns.indexOf(a.name) -
|
|
204
|
+
this.visibleColumns.indexOf(b.name));
|
|
205
|
+
}
|
|
206
|
+
return resultVisibleColumns;
|
|
197
207
|
}
|
|
198
208
|
getRows() {
|
|
199
209
|
return this.data && this.data.rows ? this.data.rows : [];
|
|
@@ -202,7 +212,7 @@ export class KupBox {
|
|
|
202
212
|
this.filteredRows = this.getRows();
|
|
203
213
|
if (this.globalFilter && this.globalFilterValue) {
|
|
204
214
|
// filtering rows
|
|
205
|
-
this.filteredRows = filterRows(this.filteredRows, null, this.globalFilterValue, this.visibleColumns);
|
|
215
|
+
this.filteredRows = filterRows(this.filteredRows, null, this.globalFilterValue, this.getColumns(), undefined, undefined, this.visibleColumns);
|
|
206
216
|
}
|
|
207
217
|
this.rows = this.sortRows(this.filteredRows);
|
|
208
218
|
if (this.pagination) {
|
|
@@ -231,14 +241,14 @@ export class KupBox {
|
|
|
231
241
|
}
|
|
232
242
|
checkScrollOnHover() {
|
|
233
243
|
if (this.boxContainer) {
|
|
234
|
-
if (!this.
|
|
244
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").scrollOnHover.isRegistered(this.boxContainer)) {
|
|
235
245
|
if (this.scrollOnHover) {
|
|
236
|
-
this.
|
|
246
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").scrollOnHover.register(this.boxContainer);
|
|
237
247
|
}
|
|
238
248
|
}
|
|
239
249
|
else {
|
|
240
250
|
if (!this.scrollOnHover) {
|
|
241
|
-
this.
|
|
251
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").scrollOnHover.unregister(this.boxContainer);
|
|
242
252
|
}
|
|
243
253
|
}
|
|
244
254
|
}
|
|
@@ -256,7 +266,7 @@ export class KupBox {
|
|
|
256
266
|
sections: [],
|
|
257
267
|
};
|
|
258
268
|
// adding box objects to section
|
|
259
|
-
const visibleColumns = this.
|
|
269
|
+
const visibleColumns = this.getVisibleColumns();
|
|
260
270
|
let size = visibleColumns.length;
|
|
261
271
|
let content = [];
|
|
262
272
|
let cnt = 0;
|
|
@@ -272,7 +282,7 @@ export class KupBox {
|
|
|
272
282
|
};
|
|
273
283
|
}
|
|
274
284
|
onSortChange(e) {
|
|
275
|
-
let column = getColumnByName(this.
|
|
285
|
+
let column = getColumnByName(this.getVisibleColumns(), e.detail.value);
|
|
276
286
|
this.sortBy = column.name;
|
|
277
287
|
}
|
|
278
288
|
onGlobalFilterChange({ detail }) {
|
|
@@ -341,7 +351,7 @@ export class KupBox {
|
|
|
341
351
|
else {
|
|
342
352
|
cell = boxObject['data-cell'];
|
|
343
353
|
row = boxObject['data-row'];
|
|
344
|
-
column = getColumnByName(this.
|
|
354
|
+
column = getColumnByName(this.getVisibleColumns(), boxObject.dataset.column);
|
|
345
355
|
}
|
|
346
356
|
}
|
|
347
357
|
else {
|
|
@@ -355,7 +365,7 @@ export class KupBox {
|
|
|
355
365
|
};
|
|
356
366
|
}
|
|
357
367
|
clickHandler(e) {
|
|
358
|
-
const details = this.getEventDetails(this.
|
|
368
|
+
const details = this.getEventDetails(__classPrivateFieldGet(this, _KupBox_kupManager, "f").getEventPath(e.target, this.rootElement), e);
|
|
359
369
|
if (details.row) {
|
|
360
370
|
if (this.multiSelection) {
|
|
361
371
|
this.onSelectionCheckChange(details.row);
|
|
@@ -367,7 +377,7 @@ export class KupBox {
|
|
|
367
377
|
return details;
|
|
368
378
|
}
|
|
369
379
|
contextMenuHandler(e) {
|
|
370
|
-
const details = this.getEventDetails(this.
|
|
380
|
+
const details = this.getEventDetails(__classPrivateFieldGet(this, _KupBox_kupManager, "f").getEventPath(e.target, this.rootElement), e);
|
|
371
381
|
return details;
|
|
372
382
|
}
|
|
373
383
|
/**
|
|
@@ -518,8 +528,9 @@ export class KupBox {
|
|
|
518
528
|
progressbar: [],
|
|
519
529
|
text: [],
|
|
520
530
|
};
|
|
521
|
-
|
|
522
|
-
|
|
531
|
+
const visibleColumns = this.getVisibleColumns();
|
|
532
|
+
for (let index = 0; index < visibleColumns.length; index++) {
|
|
533
|
+
const column = visibleColumns[index];
|
|
523
534
|
if (column.visible !== false) {
|
|
524
535
|
cardData.cell.push(row.cells[column.name]);
|
|
525
536
|
cardData.columns.push(column);
|
|
@@ -648,7 +659,7 @@ export class KupBox {
|
|
|
648
659
|
return h("kup-card", Object.assign({ data: cardData }, this.cardData));
|
|
649
660
|
}
|
|
650
661
|
renderRow(row) {
|
|
651
|
-
const visibleColumns = [...this.
|
|
662
|
+
const visibleColumns = [...this.getVisibleColumns()];
|
|
652
663
|
let boxContent = null;
|
|
653
664
|
// if layout in row, use that one
|
|
654
665
|
let rowLayout = row.layout;
|
|
@@ -798,10 +809,10 @@ export class KupBox {
|
|
|
798
809
|
headerTitle = section.title;
|
|
799
810
|
}
|
|
800
811
|
else if (sectionExpanded) {
|
|
801
|
-
headerTitle = this.
|
|
812
|
+
headerTitle = __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(KupLanguageGeneric.COLLAPSE);
|
|
802
813
|
}
|
|
803
814
|
else {
|
|
804
|
-
headerTitle = this.
|
|
815
|
+
headerTitle = __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(KupLanguageGeneric.EXPAND);
|
|
805
816
|
}
|
|
806
817
|
sectionContainer = (h("div", { class: sectionClass, style: sectionStyle }, h("div", { class: contentClass }, sectionContent), h("div", { class: "header", role: "button", onClick: (e) => {
|
|
807
818
|
e.stopPropagation();
|
|
@@ -837,12 +848,16 @@ export class KupBox {
|
|
|
837
848
|
}
|
|
838
849
|
const cell = row.cells[boxObject.column];
|
|
839
850
|
let title = undefined;
|
|
840
|
-
if (cell && !this.
|
|
851
|
+
if (cell && !__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.isEmptyKupObj(cell.obj)) {
|
|
841
852
|
classObj['is-obj'] = true;
|
|
842
|
-
if (this.
|
|
853
|
+
if (__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.isDebug()) {
|
|
843
854
|
title =
|
|
844
855
|
cell.obj.t + '; ' + cell.obj.p + '; ' + cell.obj.k + ';';
|
|
845
856
|
}
|
|
857
|
+
if (!cell.isEditable) {
|
|
858
|
+
cell.cssClass =
|
|
859
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").data.cell.getObjectRelatedStyleClasses(cell.obj, cell.cssClass);
|
|
860
|
+
}
|
|
846
861
|
}
|
|
847
862
|
const cellProps = {
|
|
848
863
|
cell: cell,
|
|
@@ -863,9 +878,9 @@ export class KupBox {
|
|
|
863
878
|
kanbanMode() {
|
|
864
879
|
// Testing whether there are columns to group by
|
|
865
880
|
if (!this.kanban.columns || this.kanban.columns.length === 0) {
|
|
866
|
-
this.
|
|
881
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, 'No columns to group by detected.', KupDebugCategory.ERROR);
|
|
867
882
|
return {
|
|
868
|
-
jsx: (h("div", { id: "empty-data-message", class: "box-wrapper" }, h("div", { ref: (el) => this.rowsRefs.push(el) }), this.
|
|
883
|
+
jsx: (h("div", { id: "empty-data-message", class: "box-wrapper" }, h("div", { ref: (el) => this.rowsRefs.push(el) }), __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA))),
|
|
869
884
|
style: { 'grid-template-columns': `repeat(1, 1fr)` },
|
|
870
885
|
};
|
|
871
886
|
}
|
|
@@ -886,7 +901,7 @@ export class KupBox {
|
|
|
886
901
|
key.push(this.rows[index].cells[this.kanban.columns[j]].value);
|
|
887
902
|
}
|
|
888
903
|
catch (error) {
|
|
889
|
-
this.
|
|
904
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, error, KupDebugCategory.WARNING);
|
|
890
905
|
}
|
|
891
906
|
}
|
|
892
907
|
const check = {
|
|
@@ -991,8 +1006,8 @@ export class KupBox {
|
|
|
991
1006
|
});
|
|
992
1007
|
}
|
|
993
1008
|
};
|
|
994
|
-
this.
|
|
995
|
-
this.
|
|
1009
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.on(this.boxContainer, KupPointerEventTypes.TAP, tapCb);
|
|
1010
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.on(this.boxContainer, KupPointerEventTypes.HOLD, holdCb);
|
|
996
1011
|
}
|
|
997
1012
|
didRenderInteractables() {
|
|
998
1013
|
if (this.dragEnabled) {
|
|
@@ -1002,7 +1017,7 @@ export class KupBox {
|
|
|
1002
1017
|
const cellEl = this.rootElement.shadowRoot.querySelector('.box-object:hover');
|
|
1003
1018
|
return {
|
|
1004
1019
|
cell: cellEl['data-cell'],
|
|
1005
|
-
column: getColumnByName(this.
|
|
1020
|
+
column: getColumnByName(this.getVisibleColumns(), cellEl.dataset.column),
|
|
1006
1021
|
id: this.rootElement.id,
|
|
1007
1022
|
multiple: this.multiSelection,
|
|
1008
1023
|
row: cellEl['data-row'],
|
|
@@ -1011,7 +1026,7 @@ export class KupBox {
|
|
|
1011
1026
|
};
|
|
1012
1027
|
if (row && !this.interactableDrag.includes(row)) {
|
|
1013
1028
|
this.interactableDrag.push(row);
|
|
1014
|
-
this.
|
|
1029
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.draggable(row, {
|
|
1015
1030
|
allowFrom: '.box-object',
|
|
1016
1031
|
cursorChecker() {
|
|
1017
1032
|
return null;
|
|
@@ -1026,10 +1041,10 @@ export class KupBox {
|
|
|
1026
1041
|
const dataCb = () => {
|
|
1027
1042
|
const cell = this.rootElement.shadowRoot.querySelector('.box:hover');
|
|
1028
1043
|
if (!cell) {
|
|
1029
|
-
this.
|
|
1044
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, "Couldn't find cell hovered to retrieve dropzone informations!", KupDebugCategory.WARNING);
|
|
1030
1045
|
return;
|
|
1031
1046
|
}
|
|
1032
|
-
const path = this.
|
|
1047
|
+
const path = __classPrivateFieldGet(this, _KupBox_kupManager, "f").getEventPath(cell, this.rootElement);
|
|
1033
1048
|
const receivingDetails = this.getEventDetails(path);
|
|
1034
1049
|
return {
|
|
1035
1050
|
cell: receivingDetails.cell,
|
|
@@ -1040,7 +1055,7 @@ export class KupBox {
|
|
|
1040
1055
|
};
|
|
1041
1056
|
if (!this.interactableDrop.includes(this.sectionRef)) {
|
|
1042
1057
|
this.interactableDrop.push(this.sectionRef);
|
|
1043
|
-
this.
|
|
1058
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.dropzone(this.sectionRef, {
|
|
1044
1059
|
accept: `[${kupDraggableAttr}]`,
|
|
1045
1060
|
}, {
|
|
1046
1061
|
dispatcher: this.rootElement,
|
|
@@ -1051,7 +1066,7 @@ export class KupBox {
|
|
|
1051
1066
|
const row = this.rowsRefs[index];
|
|
1052
1067
|
if (row && !this.interactableDrop.includes(row)) {
|
|
1053
1068
|
this.interactableDrop.push(row);
|
|
1054
|
-
this.
|
|
1069
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.dropzone(row, {
|
|
1055
1070
|
accept: `[${kupDraggableAttr}]`,
|
|
1056
1071
|
}, {
|
|
1057
1072
|
callback: dataCb,
|
|
@@ -1066,7 +1081,7 @@ export class KupBox {
|
|
|
1066
1081
|
/* L i f e c y c l e H o o k s */
|
|
1067
1082
|
/*-------------------------------------------------*/
|
|
1068
1083
|
componentWillLoad() {
|
|
1069
|
-
this.
|
|
1084
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logLoad(this, false);
|
|
1070
1085
|
if (this.rowsPerPage) {
|
|
1071
1086
|
this.currentRowsPerPage = this.rowsPerPage;
|
|
1072
1087
|
}
|
|
@@ -1075,8 +1090,8 @@ export class KupBox {
|
|
|
1075
1090
|
this.currentRowsPerPage > this.data.rows.length) {
|
|
1076
1091
|
this.currentRowsPerPage = this.data.rows.length;
|
|
1077
1092
|
}
|
|
1078
|
-
this.
|
|
1079
|
-
this.
|
|
1093
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").language.register(this);
|
|
1094
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").theme.register(this);
|
|
1080
1095
|
this.initWithPersistedState();
|
|
1081
1096
|
this.onDataChanged();
|
|
1082
1097
|
this.adjustPaginator();
|
|
@@ -1105,10 +1120,10 @@ export class KupBox {
|
|
|
1105
1120
|
}
|
|
1106
1121
|
this.didLoadInteractables();
|
|
1107
1122
|
this.kupDidLoad.emit({ comp: this, id: this.rootElement.id });
|
|
1108
|
-
this.
|
|
1123
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logLoad(this, true);
|
|
1109
1124
|
}
|
|
1110
1125
|
componentWillRender() {
|
|
1111
|
-
this.
|
|
1126
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logRender(this, false);
|
|
1112
1127
|
}
|
|
1113
1128
|
componentDidRender() {
|
|
1114
1129
|
const root = this.rootElement.shadowRoot;
|
|
@@ -1122,7 +1137,7 @@ export class KupBox {
|
|
|
1122
1137
|
this.persistState();
|
|
1123
1138
|
this.didRenderInteractables();
|
|
1124
1139
|
__classPrivateFieldGet(this, _KupBox_instances, "m", _KupBox_didRenderObservers).call(this);
|
|
1125
|
-
this.
|
|
1140
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logRender(this, true);
|
|
1126
1141
|
}
|
|
1127
1142
|
render() {
|
|
1128
1143
|
__classPrivateFieldSet(this, _KupBox_rowsRefs, [], "f");
|
|
@@ -1130,7 +1145,7 @@ export class KupBox {
|
|
|
1130
1145
|
let sortPanel = null;
|
|
1131
1146
|
if (this.sortEnabled) {
|
|
1132
1147
|
// creating items
|
|
1133
|
-
const visibleColumnsItems = this.
|
|
1148
|
+
const visibleColumnsItems = this.getVisibleColumns().map((column) => {
|
|
1134
1149
|
const item = {
|
|
1135
1150
|
value: column.title,
|
|
1136
1151
|
id: column.name,
|
|
@@ -1140,7 +1155,7 @@ export class KupBox {
|
|
|
1140
1155
|
});
|
|
1141
1156
|
const items = [{ value: '', id: '' }, ...visibleColumnsItems];
|
|
1142
1157
|
let textfieldData = {
|
|
1143
|
-
label: this.
|
|
1158
|
+
label: __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(KupLanguageGeneric.SORT_BY),
|
|
1144
1159
|
trailingIcon: true,
|
|
1145
1160
|
};
|
|
1146
1161
|
let listData = {
|
|
@@ -1155,7 +1170,7 @@ export class KupBox {
|
|
|
1155
1170
|
}
|
|
1156
1171
|
let filterPanel = null;
|
|
1157
1172
|
if (this.globalFilter) {
|
|
1158
|
-
filterPanel = (h("div", { id: "global-filter" }, h("kup-text-field", { fullWidth: true, label: this.
|
|
1173
|
+
filterPanel = (h("div", { id: "global-filter" }, h("kup-text-field", { fullWidth: true, label: __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), icon: KupThemeIconValues.SEARCH, initialValue: this.globalFilterValue, "onkup-textfield-input": (event) => {
|
|
1159
1174
|
window.clearTimeout(this.globalFilterTimeout);
|
|
1160
1175
|
this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
|
|
1161
1176
|
} })));
|
|
@@ -1177,7 +1192,7 @@ export class KupBox {
|
|
|
1177
1192
|
let boxContent = null;
|
|
1178
1193
|
let containerStyle = {};
|
|
1179
1194
|
if (this.rows.length === 0) {
|
|
1180
|
-
boxContent = (h("div", { id: "empty-data-message", class: "box-wrapper" }, h("div", { class: "box", ref: (el) => this.rowsRefs.push(el) }, this.
|
|
1195
|
+
boxContent = (h("div", { id: "empty-data-message", class: "box-wrapper" }, h("div", { class: "box", ref: (el) => this.rowsRefs.push(el) }, __classPrivateFieldGet(this, _KupBox_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA))));
|
|
1181
1196
|
containerStyle = { 'grid-template-columns': `repeat(1, 1fr)` };
|
|
1182
1197
|
}
|
|
1183
1198
|
else if (isKanban) {
|
|
@@ -1199,17 +1214,17 @@ export class KupBox {
|
|
|
1199
1214
|
}
|
|
1200
1215
|
return (h(Host, { "onKup-cell-click": (e) => {
|
|
1201
1216
|
this.kupBoxCellClick.emit(e.detail);
|
|
1202
|
-
} }, h("style", null, this.
|
|
1217
|
+
} }, h("style", null, __classPrivateFieldGet(this, _KupBox_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, h("div", { class: 'box-component', ref: (el) => (this.sectionRef = el) }, sortPanel, filterPanel, paginator, h("div", { class: isKanban ? 'is-kanban' : '', id: 'box-container', style: containerStyle, onContextMenu: (e) => {
|
|
1203
1218
|
e.preventDefault();
|
|
1204
1219
|
}, ref: (el) => (this.boxContainer =
|
|
1205
1220
|
el) }, boxContent)))));
|
|
1206
1221
|
}
|
|
1207
1222
|
disconnectedCallback() {
|
|
1208
|
-
this.
|
|
1209
|
-
this.
|
|
1210
|
-
this.
|
|
1223
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").interact.unregister(this.interactableDrag.concat(this.interactableDrop));
|
|
1224
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").language.unregister(this);
|
|
1225
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").theme.unregister(this);
|
|
1211
1226
|
if (this.scrollOnHover) {
|
|
1212
|
-
this.
|
|
1227
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").scrollOnHover.unregister(this.boxContainer);
|
|
1213
1228
|
}
|
|
1214
1229
|
// When component is destroyed, then the listener is removed. @See clickFunction for more details
|
|
1215
1230
|
document.removeEventListener('click', this.clickFunction.bind(this));
|
|
@@ -1893,6 +1908,21 @@ export class KupBox {
|
|
|
1893
1908
|
"attribute": "swipe-disabled",
|
|
1894
1909
|
"reflect": false,
|
|
1895
1910
|
"defaultValue": "false"
|
|
1911
|
+
},
|
|
1912
|
+
"visibleColumns": {
|
|
1913
|
+
"type": "unknown",
|
|
1914
|
+
"mutable": false,
|
|
1915
|
+
"complexType": {
|
|
1916
|
+
"original": "string[]",
|
|
1917
|
+
"resolved": "string[]",
|
|
1918
|
+
"references": {}
|
|
1919
|
+
},
|
|
1920
|
+
"required": false,
|
|
1921
|
+
"optional": false,
|
|
1922
|
+
"docs": {
|
|
1923
|
+
"tags": [],
|
|
1924
|
+
"text": "List of the visible columns"
|
|
1925
|
+
}
|
|
1896
1926
|
}
|
|
1897
1927
|
};
|
|
1898
1928
|
}
|
|
@@ -2270,21 +2300,21 @@ export class KupBox {
|
|
|
2270
2300
|
}];
|
|
2271
2301
|
}
|
|
2272
2302
|
}
|
|
2273
|
-
_KupBox_intObserver = new WeakMap(), _KupBox_rowsRefs = new WeakMap(), _KupBox_navBarHeight = new WeakMap(), _KupBox_loadMoreEventCounter = new WeakMap(), _KupBox_loadMoreEventPreviousQuantity = new WeakMap(), _KupBox_instances = new WeakSet(), _KupBox_checkUpdateState = function _KupBox_checkUpdateState() {
|
|
2303
|
+
_KupBox_kupManager = new WeakMap(), _KupBox_intObserver = new WeakMap(), _KupBox_rowsRefs = new WeakMap(), _KupBox_navBarHeight = new WeakMap(), _KupBox_loadMoreEventCounter = new WeakMap(), _KupBox_loadMoreEventPreviousQuantity = new WeakMap(), _KupBox_instances = new WeakSet(), _KupBox_checkUpdateState = function _KupBox_checkUpdateState() {
|
|
2274
2304
|
let somethingChanged = false;
|
|
2275
|
-
if (!this.
|
|
2305
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.sortBy, this.sortBy)) {
|
|
2276
2306
|
this.state.sortBy = this.sortBy;
|
|
2277
2307
|
somethingChanged = true;
|
|
2278
2308
|
}
|
|
2279
|
-
if (!this.
|
|
2309
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
|
|
2280
2310
|
this.state.globalFilterValue = this.globalFilterValue;
|
|
2281
2311
|
somethingChanged = true;
|
|
2282
2312
|
}
|
|
2283
|
-
if (!this.
|
|
2313
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.pageSelected, this.currentPage)) {
|
|
2284
2314
|
this.state.pageSelected = this.currentPage;
|
|
2285
2315
|
somethingChanged = true;
|
|
2286
2316
|
}
|
|
2287
|
-
if (!this.
|
|
2317
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.rowsPerPage, this.currentRowsPerPage)) {
|
|
2288
2318
|
this.state.rowsPerPage = this.currentRowsPerPage;
|
|
2289
2319
|
somethingChanged = true;
|
|
2290
2320
|
}
|
|
@@ -2292,15 +2322,15 @@ _KupBox_intObserver = new WeakMap(), _KupBox_rowsRefs = new WeakMap(), _KupBox_n
|
|
|
2292
2322
|
const prefix = currentIndex > 0 ? ';' : '';
|
|
2293
2323
|
return accumulator + prefix + row.id;
|
|
2294
2324
|
}, '');
|
|
2295
|
-
if (!this.
|
|
2325
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.selectedRowsState, selectedRowsState)) {
|
|
2296
2326
|
this.state.selectedRowsState = selectedRowsState;
|
|
2297
2327
|
somethingChanged = true;
|
|
2298
2328
|
}
|
|
2299
|
-
if (!this.
|
|
2329
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.loadMoreLimit, this.loadMoreLimit)) {
|
|
2300
2330
|
this.state.loadMoreLimit = this.loadMoreLimit;
|
|
2301
2331
|
somethingChanged = true;
|
|
2302
2332
|
}
|
|
2303
|
-
if (!this.
|
|
2333
|
+
if (!__classPrivateFieldGet(this, _KupBox_kupManager, "f").objects.deepEqual(this.state.showLoadMore, this.showLoadMore)) {
|
|
2304
2334
|
this.state.showLoadMore = this.showLoadMore;
|
|
2305
2335
|
somethingChanged = true;
|
|
2306
2336
|
}
|
|
@@ -2314,7 +2344,7 @@ _KupBox_intObserver = new WeakMap(), _KupBox_rowsRefs = new WeakMap(), _KupBox_n
|
|
|
2314
2344
|
const callback = (entries) => {
|
|
2315
2345
|
entries.forEach((entry) => {
|
|
2316
2346
|
if (entry.isIntersecting) {
|
|
2317
|
-
this.
|
|
2347
|
+
__classPrivateFieldGet(this, _KupBox_kupManager, "f").debug.logMessage(this, 'Last row entering the viewport, loading more elements.');
|
|
2318
2348
|
const delta = this.data.rows.length - this.currentRowsPerPage;
|
|
2319
2349
|
if (delta < this.loadMoreStep) {
|
|
2320
2350
|
this.currentRowsPerPage += delta;
|
|
@@ -316,10 +316,14 @@
|
|
|
316
316
|
border-color: var(--kup_calendar_event_background_color);
|
|
317
317
|
color: var(--kup_calendar_event_color);
|
|
318
318
|
}
|
|
319
|
+
#kup-component .fc-event {
|
|
320
|
+
padding: 0.5rem;
|
|
321
|
+
}
|
|
319
322
|
#kup-component .fc-event-main {
|
|
320
323
|
color: inherit;
|
|
324
|
+
display: flex;
|
|
321
325
|
}
|
|
322
|
-
#kup-component .fc-event-title {
|
|
326
|
+
#kup-component .fc-event-title .fc-event-time {
|
|
323
327
|
padding: 0.25em;
|
|
324
328
|
}
|
|
325
329
|
#kup-component .fc-event-time {
|
|
@@ -346,6 +350,19 @@
|
|
|
346
350
|
.calendar .fc-view-harness {
|
|
347
351
|
min-height: 450px;
|
|
348
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
|
+
}
|
|
349
366
|
.navigation .navigation__left {
|
|
350
367
|
font-size: 20px;
|
|
351
368
|
gap: 8px;
|