@sme.up/ketchup 11.0.0-SNAPSHOT-20250806071842 → 11.0.0-SNAPSHOT-20250806091734
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{f-cell-507025b3.js → f-cell-33ab64fa.js} +4 -4
- package/dist/cjs/{f-chip-f1b14141.js → f-chip-9388f1ee.js} +1 -1
- package/dist/cjs/{f-object-field-7c1ea180.js → f-object-field-40d6b74a.js} +2 -2
- package/dist/cjs/{f-paginator-utils-49cf707b.js → f-paginator-utils-badb719b.js} +1 -1
- package/dist/cjs/{f-text-field-f5b2163a.js → f-text-field-94d19f8d.js} +59 -2
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +1 -1
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
- package/dist/cjs/kup-autocomplete_30.cjs.entry.js +12 -9
- package/dist/cjs/kup-box.cjs.entry.js +7 -7
- package/dist/cjs/kup-calendar.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/{kup-data-table-helper-63e5d7a2.js → kup-data-table-helper-778673d3.js} +1 -1
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +1 -1
- package/dist/cjs/kup-editor.cjs.entry.js +1 -1
- package/dist/cjs/kup-family-tree.cjs.entry.js +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-input-panel.cjs.entry.js +71 -15
- 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-15f30f03.js → kup-manager-36fc5b46.js} +8 -3
- package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
- package/dist/cjs/kup-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 +2 -2
- 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/components/kup-date-picker/kup-date-picker.js +8 -8
- package/dist/collection/components/kup-input-panel/kup-input-panel.css +9 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +65 -9
- package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +1 -0
- package/dist/collection/components/kup-text-field/kup-text-field.js +27 -4
- package/dist/collection/f-components/f-text-field/f-text-field.js +55 -1
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +5 -0
- package/dist/collection/utils/cell-utils.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.js +2 -2
- 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 +2 -2
- 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 +1 -1
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +69 -13
- 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-90f25b3f.js → p-3bcad563.js} +2 -2
- package/dist/components/{p-1e55c9d9.js → p-49dfbbc8.js} +65 -4
- package/dist/components/{p-fbaf1165.js → p-593b5f6a.js} +8 -3
- package/dist/components/{p-45535b3a.js → p-929c6b00.js} +2 -2
- package/dist/components/{p-e6ff41f1.js → p-994fdcd7.js} +2 -2
- package/dist/components/{p-eaaa8901.js → p-bba3e418.js} +2 -2
- package/dist/esm/{f-cell-74347dce.js → f-cell-0b2928ea.js} +4 -4
- package/dist/esm/{f-chip-d5f27ee2.js → f-chip-c50d00c2.js} +1 -1
- package/dist/esm/{f-object-field-6f759bf9.js → f-object-field-b0881912.js} +2 -2
- package/dist/esm/{f-paginator-utils-6d124369.js → f-paginator-utils-0532200f.js} +1 -1
- package/dist/esm/{f-text-field-86dd8534.js → f-text-field-edc3dd8d.js} +59 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +1 -1
- package/dist/esm/kup-activity-timeline.entry.js +2 -2
- package/dist/esm/kup-autocomplete_30.entry.js +12 -9
- package/dist/esm/kup-box.entry.js +7 -7
- package/dist/esm/kup-calendar.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/{kup-data-table-helper-7d5e4260.js → kup-data-table-helper-82685eae.js} +1 -1
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +1 -1
- package/dist/esm/kup-editor.entry.js +1 -1
- package/dist/esm/kup-family-tree.entry.js +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-input-panel.entry.js +71 -15
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-2b06d829.js → kup-manager-61330c8b.js} +8 -3
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- 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 +2 -2
- 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-b3ab3b46.entry.js → p-10207a5d.entry.js} +1 -1
- package/dist/ketchup/p-17339f19.entry.js +1 -0
- package/dist/ketchup/{p-00963efe.entry.js → p-1dac10f4.entry.js} +1 -1
- package/dist/ketchup/{p-0d4f7e56.entry.js → p-2b10974f.entry.js} +1 -1
- package/dist/ketchup/{p-62b0efc0.js → p-2b230b86.js} +1 -1
- package/dist/ketchup/{p-3bdd6c6c.entry.js → p-4717c8ae.entry.js} +1 -1
- package/dist/ketchup/{p-7bc9db2e.entry.js → p-67957897.entry.js} +1 -1
- package/dist/ketchup/{p-6a822f80.entry.js → p-68317d50.entry.js} +1 -1
- package/dist/ketchup/{p-ebf38e37.entry.js → p-6dc2ee29.entry.js} +1 -1
- package/dist/ketchup/{p-8d68c939.entry.js → p-6ed28e26.entry.js} +1 -1
- package/dist/ketchup/{p-df012d8b.js → p-72ae6899.js} +1 -1
- package/dist/ketchup/{p-93f419c8.entry.js → p-75b50183.entry.js} +1 -1
- package/dist/ketchup/{p-514a0dfd.js → p-7be5a9ad.js} +1 -1
- package/dist/ketchup/{p-43246def.js → p-88abb4b6.js} +1 -1
- package/dist/ketchup/{p-7b7d2c56.entry.js → p-8b44f84f.entry.js} +1 -1
- package/dist/ketchup/{p-c611bb93.entry.js → p-8b6f8d01.entry.js} +1 -1
- package/dist/ketchup/{p-1f6d5a98.entry.js → p-8bfd822d.entry.js} +1 -1
- package/dist/ketchup/p-8d415e9e.js +1 -0
- package/dist/ketchup/p-94572bd0.js +1 -0
- package/dist/ketchup/{p-4159b799.entry.js → p-9bb644c5.entry.js} +2 -2
- package/dist/ketchup/{p-ba0497d4.entry.js → p-a5ca2dee.entry.js} +1 -1
- package/dist/ketchup/{p-4992a7f2.entry.js → p-a8c6c7da.entry.js} +1 -1
- package/dist/ketchup/{p-1c1395de.entry.js → p-aab40f5d.entry.js} +1 -1
- package/dist/ketchup/{p-0224f595.entry.js → p-b6aaaf93.entry.js} +1 -1
- package/dist/ketchup/{p-4f380f49.entry.js → p-b7927772.entry.js} +1 -1
- package/dist/ketchup/{p-a186678f.js → p-bfaddd95.js} +1 -1
- package/dist/ketchup/{p-8664f2d6.entry.js → p-c135b6e6.entry.js} +1 -1
- package/dist/ketchup/{p-c662be76.entry.js → p-c39d0cf1.entry.js} +1 -1
- package/dist/ketchup/{p-e04629d5.entry.js → p-c3a87466.entry.js} +1 -1
- package/dist/ketchup/{p-1833f1df.entry.js → p-c6216df7.entry.js} +1 -1
- package/dist/ketchup/{p-96904611.entry.js → p-c7f9692d.entry.js} +1 -1
- package/dist/ketchup/{p-66d8c28a.entry.js → p-d7b60877.entry.js} +1 -1
- package/dist/ketchup/{p-9c35165c.entry.js → p-dbddd625.entry.js} +1 -1
- package/dist/ketchup/{p-ca669fe4.entry.js → p-f4b8b34b.entry.js} +1 -1
- package/dist/ketchup/{p-e6cad40c.entry.js → p-fb2f22ba.entry.js} +1 -1
- package/dist/ketchup/{p-b1a9f499.entry.js → p-fec42e34.entry.js} +1 -1
- package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +1 -0
- package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
- package/dist/types/components.d.ts +10 -0
- package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
- package/dist/types/utils/cell-utils.d.ts +1 -0
- package/package.json +1 -1
- package/dist/ketchup/p-2bb6c663.js +0 -1
- package/dist/ketchup/p-5f35bc3e.js +0 -1
- package/dist/ketchup/p-63a686bc.entry.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, f as forceUpdate, h as h$1, d as Host, F as Fragment$1 } from './p-ef8cbd35.js';
|
|
2
|
-
import { b as KupThemeIconValues, I as ItemsDisplayMode, e as KupLanguageGeneric, a as KupComponentSizing, k as kupManagerInstance, d as KupDynamicPositionPlacement, f as editableTypes, h as kupTypes, F as FCellClasses, i as FCellTypes, c as KupThemeColorValues, C as CHIAdapter, R as RADAdapter, j as CMBandACPAdapter, l as KupTagNames, m as FCellShapes, n as getCellValueForDisplay, o as fullWidthFieldsComps, p as autoCenterComps, q as FCellEvents, r as isForceUppercase, t as isForceLowercase, u as KupDebugCategory, v as adaptContentToDisplayMode, w as FCellPadding, x as fillString, y as KupCardBuiltInClockElements, z as KupCardCSSClasses, A as KupLanguageTotals, B as KupLanguageColumn, D as KupDataNewColumnTypes, E as KupCardSubEvents, G as KupCardIds, H as KupLanguageRow, J as KupLanguageSearch, L as getColumnByName, M as KupObjects, N as formatToNumber, O as Filters, P as getValueForDisplay, Q as getValueForDisplay2, S as KupData, T as compareCell, U as TotalMode, V as getRegExpFromString, W as CHKAdapter, X as SWTAdapter, Y as SortMode, Z as GroupLabelDisplayMode, _ as SelectionMode, $ as KupLanguageGrouping, a0 as KupLanguageCheckbox, a1 as FILTER_ANALYZER, a2 as KupLanguagePage, a3 as addColumnValueFromRow, a4 as KupGlobalFilterMode, g as getProps, s as setProps, a5 as TotalLabel, a6 as isNegativeNumber, a7 as KupPointerEventTypes, a8 as kupDynamicPositionAttribute, a9 as identify, aa as KupListProps, ab as KupCardFamily, ac as KupListRole, ad as KupLanguageUpload, ae as LoadMoreMode, af as PaginatorPos, ag as ShowGrid, ah as kupDraggableColumnAttr, ai as kupDragActiveAttr, aj as KupDragEffect, ak as kupDraggableCellAttr, al as KupDropEventTypes, am as DataTableAreasEnum, an as TypesToDuplicate, ao as FixedCellsClasses, ap as FixedCellsCSSVarsBase, aq as KupLanguageFontsize, ar as KupLanguageDensity, as as KupLanguageGrid, at as KupDataTableProps, au as UseAsValue, av as iconColumn, aw as keyColumn, ax as fieldColumn, ay as getSizeOfInputElement, az as KupCardProps } from './p-
|
|
2
|
+
import { b as KupThemeIconValues, I as ItemsDisplayMode, e as KupLanguageGeneric, a as KupComponentSizing, k as kupManagerInstance, d as KupDynamicPositionPlacement, f as editableTypes, h as kupTypes, F as FCellClasses, i as FCellTypes, c as KupThemeColorValues, C as CHIAdapter, R as RADAdapter, j as CMBandACPAdapter, l as KupTagNames, m as FCellShapes, n as getCellValueForDisplay, o as fullWidthFieldsComps, p as autoCenterComps, q as FCellEvents, r as isForceUppercase, t as isForceLowercase, u as KupDebugCategory, v as adaptContentToDisplayMode, w as FCellPadding, x as fillString, y as KupCardBuiltInClockElements, z as KupCardCSSClasses, A as KupLanguageTotals, B as KupLanguageColumn, D as KupDataNewColumnTypes, E as KupCardSubEvents, G as KupCardIds, H as KupLanguageRow, J as KupLanguageSearch, L as getColumnByName, M as KupObjects, N as formatToNumber, O as Filters, P as getValueForDisplay, Q as getValueForDisplay2, S as KupData, T as compareCell, U as TotalMode, V as getRegExpFromString, W as CHKAdapter, X as SWTAdapter, Y as SortMode, Z as GroupLabelDisplayMode, _ as SelectionMode, $ as KupLanguageGrouping, a0 as KupLanguageCheckbox, a1 as FILTER_ANALYZER, a2 as KupLanguagePage, a3 as addColumnValueFromRow, a4 as KupGlobalFilterMode, g as getProps, s as setProps, a5 as TotalLabel, a6 as isNegativeNumber, a7 as KupPointerEventTypes, a8 as kupDynamicPositionAttribute, a9 as identify, aa as KupListProps, ab as KupCardFamily, ac as KupListRole, ad as KupLanguageUpload, ae as LoadMoreMode, af as PaginatorPos, ag as ShowGrid, ah as kupDraggableColumnAttr, ai as kupDragActiveAttr, aj as KupDragEffect, ak as kupDraggableCellAttr, al as KupDropEventTypes, am as DataTableAreasEnum, an as TypesToDuplicate, ao as FixedCellsClasses, ap as FixedCellsCSSVarsBase, aq as KupLanguageFontsize, ar as KupLanguageDensity, as as KupLanguageGrid, at as KupDataTableProps, au as UseAsValue, av as iconColumn, aw as keyColumn, ax as fieldColumn, ay as getSizeOfInputElement, az as KupCardProps } from './p-593b5f6a.js';
|
|
3
3
|
import { h, g as getAssetPath, F as Fragment } from './p-3aae989f.js';
|
|
4
4
|
import { c as KupDateTimeFormatOptionsMonth, K as KupDatesFormats, a as KupDates } from './p-9d9181cf.js';
|
|
5
5
|
|
|
@@ -1262,6 +1262,7 @@ function createBar(data) {
|
|
|
1262
1262
|
const componentWrapperId = 'kup-component';
|
|
1263
1263
|
|
|
1264
1264
|
const dom$k = document.documentElement;
|
|
1265
|
+
let helperEl = null;
|
|
1265
1266
|
/*-------------------------------------------------*/
|
|
1266
1267
|
/* C o m p o n e n t */
|
|
1267
1268
|
/*-------------------------------------------------*/
|
|
@@ -1307,7 +1308,10 @@ function setContent(props) {
|
|
|
1307
1308
|
!props.legacyLook // do not show label in input panel absolute ( legacy mode )
|
|
1308
1309
|
) {
|
|
1309
1310
|
labelEl = (h("div", { class: "mdc-text-field__label-container" },
|
|
1310
|
-
h("label", { class: "mdc-label", htmlFor: "kup-input" },
|
|
1311
|
+
h("label", { class: "mdc-label", htmlFor: "kup-input" },
|
|
1312
|
+
props.label,
|
|
1313
|
+
props.labelHelper && (h("span", { onPointerMove: (e) => showHelper(e, props.labelHelper), onPointerDown: (e) => showHelper(e, props.labelHelper), onPointerOut: () => hideHelper() },
|
|
1314
|
+
h(FImage, { resource: "info_outline", wrapperClass: "helper-icon" })))),
|
|
1311
1315
|
props.maxLength && props.showCounter ? (h("div", { class: "mdc-text-field__label-character-counter" },
|
|
1312
1316
|
props.value.length,
|
|
1313
1317
|
" / ",
|
|
@@ -1563,6 +1567,59 @@ const formatValue = function (value, options, inputIsLocalized) {
|
|
|
1563
1567
|
}
|
|
1564
1568
|
return dom$k.ketchup.math.format(formatedValue, dom$k.ketchup.math.createFormatPattern(options.group, options.decimal), inputIsLocalized);
|
|
1565
1569
|
};
|
|
1570
|
+
const hideHelper = () => {
|
|
1571
|
+
if (helperEl) {
|
|
1572
|
+
helperEl.remove();
|
|
1573
|
+
helperEl = null;
|
|
1574
|
+
}
|
|
1575
|
+
};
|
|
1576
|
+
const showHelper = (e, text) => {
|
|
1577
|
+
if (!text || text.length === 0) {
|
|
1578
|
+
return;
|
|
1579
|
+
}
|
|
1580
|
+
if (helperEl) {
|
|
1581
|
+
helperEl.innerText = text;
|
|
1582
|
+
positionHelper(helperEl, e);
|
|
1583
|
+
}
|
|
1584
|
+
else {
|
|
1585
|
+
helperEl = document.createElement('div');
|
|
1586
|
+
helperEl.className = 'kup-helper-tooltip';
|
|
1587
|
+
helperEl.innerText = text;
|
|
1588
|
+
document.body.appendChild(helperEl);
|
|
1589
|
+
positionHelper(helperEl, e);
|
|
1590
|
+
}
|
|
1591
|
+
};
|
|
1592
|
+
const positionHelper = (element, e) => {
|
|
1593
|
+
const padding = 10;
|
|
1594
|
+
const viewportWidth = window.innerWidth;
|
|
1595
|
+
const viewportHeight = window.innerHeight;
|
|
1596
|
+
const rect = element.getBoundingClientRect();
|
|
1597
|
+
const elementWidth = rect.width;
|
|
1598
|
+
const elementHeight = rect.height;
|
|
1599
|
+
let left = e.clientX + padding;
|
|
1600
|
+
let top = e.clientY + padding;
|
|
1601
|
+
// Check right edge overflow
|
|
1602
|
+
if (left + elementWidth > viewportWidth) {
|
|
1603
|
+
left = e.clientX - elementWidth - padding;
|
|
1604
|
+
// If still overflowing on the left, align to the right edge
|
|
1605
|
+
if (left < 0) {
|
|
1606
|
+
left = viewportWidth - elementWidth - padding;
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
// Check bottom edge overflow
|
|
1610
|
+
if (top + elementHeight > viewportHeight) {
|
|
1611
|
+
top = e.clientY - elementHeight - padding;
|
|
1612
|
+
// If still overflowing on the top, align to the bottom edge
|
|
1613
|
+
if (top < 0) {
|
|
1614
|
+
top = viewportHeight - elementHeight - padding;
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
// Ensure minimum padding from edges
|
|
1618
|
+
left = Math.max(padding, Math.min(left, viewportWidth - elementWidth - padding));
|
|
1619
|
+
top = Math.max(padding, Math.min(top, viewportHeight - elementHeight - padding));
|
|
1620
|
+
element.style.left = `${left}px`;
|
|
1621
|
+
element.style.top = `${top}px`;
|
|
1622
|
+
};
|
|
1566
1623
|
|
|
1567
1624
|
/**
|
|
1568
1625
|
* @license
|
|
@@ -14312,6 +14369,7 @@ var KupTextFieldProps;
|
|
|
14312
14369
|
KupTextFieldProps["integers"] = "Number of integers (should be used when inputType is number).";
|
|
14313
14370
|
KupTextFieldProps["isClearable"] = "Enables a clear trailing icon.";
|
|
14314
14371
|
KupTextFieldProps["label"] = "When set, its content will be shown as a label.";
|
|
14372
|
+
KupTextFieldProps["labelHelper"] = "When set, the label will be accompanied by a helper text displayed on hover.";
|
|
14315
14373
|
KupTextFieldProps["leadingLabel"] = "When set to true, the label will be on the left of the component.";
|
|
14316
14374
|
KupTextFieldProps["max"] = "The HTML max attribute specifies the maximum value for the input element. Works with the following input types: number, range, date, datetime-local, month, time and week.";
|
|
14317
14375
|
KupTextFieldProps["maxLength"] = "When set, the helper will display a character counter.";
|
|
@@ -17763,6 +17821,7 @@ const KupTextField = /*@__PURE__*/ proxyCustomElement(class KupTextField extends
|
|
|
17763
17821
|
this.integers = null;
|
|
17764
17822
|
this.isClearable = false;
|
|
17765
17823
|
this.label = null;
|
|
17824
|
+
this.labelHelper = '';
|
|
17766
17825
|
this.lightMode = false;
|
|
17767
17826
|
this.leadingLabel = false;
|
|
17768
17827
|
this.max = null;
|
|
@@ -18000,6 +18059,7 @@ const KupTextField = /*@__PURE__*/ proxyCustomElement(class KupTextField extends
|
|
|
18000
18059
|
integers: this.integers,
|
|
18001
18060
|
isClearable: this.isClearable,
|
|
18002
18061
|
label: this.label,
|
|
18062
|
+
labelHelper: this.labelHelper,
|
|
18003
18063
|
leadingLabel: this.leadingLabel,
|
|
18004
18064
|
lightMode: this.lightMode,
|
|
18005
18065
|
max: this.max,
|
|
@@ -18040,7 +18100,7 @@ const KupTextField = /*@__PURE__*/ proxyCustomElement(class KupTextField extends
|
|
|
18040
18100
|
onMinusClick: (e) => this.onKupMinusClick(e),
|
|
18041
18101
|
onPlusClick: (e) => this.onKupPlusClick(e),
|
|
18042
18102
|
};
|
|
18043
|
-
return (h$1(Host, { key: '
|
|
18103
|
+
return (h$1(Host, { key: '18e06100494e2ea81d427de84d97e1f6674e2d17' }, h$1("style", { key: 'ab2ac80c5f3557f9b88d50c000d011bd3b88c169' }, this.kupManager.theme.setKupStyle(this.rootElement)), h$1("div", { key: '07e5298b796e91e17e5ad48f4a15cf6eebd348db', id: componentWrapperId }, h$1(FTextField, Object.assign({ key: 'f933036f6ce0975caff1d10dad34bcccf3f681b2' }, props)))));
|
|
18044
18104
|
}
|
|
18045
18105
|
disconnectedCallback() {
|
|
18046
18106
|
this.kupManager.theme.unregister(this);
|
|
@@ -18069,6 +18129,7 @@ const KupTextField = /*@__PURE__*/ proxyCustomElement(class KupTextField extends
|
|
|
18069
18129
|
"integers": [2],
|
|
18070
18130
|
"isClearable": [4, "is-clearable"],
|
|
18071
18131
|
"label": [1],
|
|
18132
|
+
"labelHelper": [1, "label-helper"],
|
|
18072
18133
|
"lightMode": [4, "light-mode"],
|
|
18073
18134
|
"leadingLabel": [4, "leading-label"],
|
|
18074
18135
|
"max": [2],
|
|
@@ -24118,7 +24179,7 @@ const KupDatePicker = /*@__PURE__*/ proxyCustomElement(class KupDatePicker exten
|
|
|
24118
24179
|
showPreviousNextMonthDays: this.showPreviousNextMonthDays,
|
|
24119
24180
|
},
|
|
24120
24181
|
};
|
|
24121
|
-
return (h$1(Host, { key: '
|
|
24182
|
+
return (h$1(Host, { key: '8bcb6f197235c9cd0203a9fecaab37dc0ae5a2bf' }, h$1("style", { key: 'e6a9099066aae81d1bc39077c517d03f5b6031a5' }, this.kupManager.theme.setKupStyle(this.rootElement)), h$1("div", { key: '6c61534fc0b5c81468d15287a692632cd6e121ba', id: componentWrapperId }, h$1(FTextField, Object.assign({ key: 'f3bdeef877245f6da44dbca089d0c7a5f364c2b8' }, textfieldData, { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, maxLength: (_a = textfieldData.maxLength) !== null && _a !== void 0 ? _a : 10, size: 10, id: this.rootElement.id + '_text-field', value: this.getDateForOutput(), onBlur: () => this.onKupBlur(), onChange: (e) => this.onKupChange(e), onClearIconClick: () => this.onKupClearIconClick(), onClick: () => this.onKupClick(), onFocus: () => this.onKupFocus(), onIconClick: () => this.onKupIconClick(), onKeyDown: (e) => this.onKupTextFieldSubmit(e), onInput: (e) => this.onKupInput(e) }), h$1("div", { key: '3ffa90677062a6ee2978d875eb7f78c1497147fb', id: this.rootElement.id + '_card', class: "kup-date-picker-card" }, h$1("kup-card", { key: '5d5e36d3034754d36b7c4fbd4bb992a337d32e6b', ref: (el) => (this.pickerContainerEl = el), data: cardData, layoutFamily: KupCardFamily.BUILT_IN, sizeX: "300px", sizeY: "auto", isMenu: true, "onkup-card-click": (ev) => {
|
|
24122
24183
|
if (ev.detail.value != null &&
|
|
24123
24184
|
ev.detail.value != '')
|
|
24124
24185
|
this.onKupDatePickerItemClick(ev.detail.value);
|